import{j as i,e as l}from"./app-BgLa5dit.js";const o="_presentationFilter_111ua_1",d={presentationFilter:o};function u(e){var r;function s(t){if(!e.disabled){if(!t.target.value){e.setPresentation(null);return}e.setPresentation(e.presentations.find(n=>n.id.toString()===t.target.value).id)}}const a=e.presentations?[...e.presentations].sort((t,n)=>t.description.localeCompare(n.description)):[];return i.jsxs("select",{className:`form-select border border-dark ${d.presentationFilter}`,onChange:s,value:((r=e.selectedPresentation)==null?void 0:r.id)??"",disabled:e.disabled,children:[l.canViewAllPresentations(e.stage)&&i.jsx("option",{value:"",children:"All Presentations"}),a.map(t=>i.jsx("option",{value:t.id,children:t.description},t.id))]})}export{u as P};
//# sourceMappingURL=yL1Poddl.chunk.js.map
