Build 533169stable
Module 324269
1,040 characters · in 7147b067215a5e31.js, 6c240bae586c1e46.jsDependencies
Source Raw
function(t,e,i){i.d(e,{default:()=>C});var s=i(627968),r=i(64700),n=i(732955),l=i(397927),d=i(558060),a=i(284683),o=i(985018);function c(t){let{closePopout:e,sortOptionContext:i}=t,{sortOption:n,setSortOption:d,onReset:c}=i,C=r.useMemo(()=>a.aq.map(t=>(0,s.jsx)(l.iDA,{id:`${t}`,group:"sort-by",label:(0,a.Ac)(t),action:()=>d(t),checked:n===t},t)),[d,n]);return(0,s.jsx)("div",{children:(0,s.jsxs)(l.W1t,{"data-menu-migrated":!0,navId:"sort-and-view","aria-label":o.intl.string(o.t["4jfWTK"]),hideScroller:!0,onClose:e,onSelect:e,children:[(0,s.jsx)(l.rXV,{label:o.intl.string(o.t.mBvLev),children:C}),(0,s.jsx)(l.rXV,{children:(0,s.jsx)(l.Drp,{id:"reset-all",label:o.intl.string(o.t["3b//lO"]),action:c})})]})})}function C(){let t=(0,d.R)(),e=(0,a.Ac)(t.sortOption),i=r.useRef(null);return(0,s.jsx)(l.YNO,{targetElementRef:i,renderPopout:e=>{let{closePopout:i}=e;return(0,s.jsx)(c,{closePopout:i,sortOptionContext:t})},position:"bottom",align:"left",children:t=>(0,s.jsx)(n.$nd,{...t,text:e,icon:l.JNJ,variant:"secondary",buttonRef:i})})}}