import{ao as o,ba as i,c8 as l,L as a,ht as n}from"./app-k0jcl5PQ.js";const s="shared.videoSortSelect",c=l.memoize(()=>({[n.RecentlyAdded]:{name:a.getPhrase(s,"recentlyAdded")},[n.AtoZ]:{name:a.getPhrase(s,"atoz")},[n.ZtoA]:{name:a.getPhrase(s,"ztoa")},[n.Newest]:{name:a.getPhrase(s,"newest")},[n.Oldest]:{name:a.getPhrase(s,"oldest")},[n.Series]:{name:a.getPhrase(s,"series")}}));function m(e){let t=c();return e&&(t={[n.ProductionYear]:{name:a.getPhrase(s,"productionYear")},...t}),t}p.defaultProps={variant:"light"};function p(e){const t=e.sortTypes||m(e.includeProductionYear);return o.jsxs("div",{className:"dropdown",children:[o.jsx("button",{className:`btn btn-${e.variant} ms-2 dropdown-toggle`,type:"button",id:"sort-select","data-bs-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",children:t[e.type].name}),o.jsx("ul",{className:"dropdown-menu dropdown-menu-end","aria-labelledby":"sort-select",children:Object.keys(t).map(r=>{let d="dropdown-item";return r===e.type&&(d+=" active"),o.jsx("li",{children:o.jsx(i,{className:d,appLink:e.getSortAppLink(r),analyticsData:{sort:t[r].name},analyticsOptions:e.analyticsOptions,children:t[r].name})},r)})})]})}export{p as V};
//# sourceMappingURL=DF2O22qo.chunk.js.map
