import{gy as j}from"./app-k0jcl5PQ.js";var e=(l=>(l[l.None=0]="None",l[l.AllSubjects=1]="AllSubjects",l[l.AllLevels=2]="AllLevels",l[l.AllSubjectsAndAllLevels=3]="AllSubjectsAndAllLevels",l))(e||{});const n={hasManyPresentationTypes(l=[]){let u=0,s=0;return l==null||l.forEach(t=>{t.type===j.Subject?u++:t.type===j.Curriculum&&s++}),{hasManySubjectPresentations:u>1,hasManyCurriculumPresentations:s>1,hasAnySubjectPresentations:u>=1}},getBulkPreferencesState(l){return l===e.AllSubjectsAndAllLevels?{levels:!0,subjects:!0}:{levels:l===e.AllLevels,subjects:l===e.AllSubjects}},hasBulkSelectedLevels(l){return l===e.AllLevels||l===e.AllSubjectsAndAllLevels},hasBulkSelectedTopics(l){return l===e.AllSubjects||l===e.AllSubjectsAndAllLevels},getNextBulkState(l,u){const{None:s,AllSubjects:t,AllLevels:c,AllSubjectsAndAllLevels:r}=e,A=u==="topics";switch(l){case s:default:return A?t:c;case t:return A?s:r;case c:return A?r:s;case r:return A?c:t}}};export{e as B,n as O};
//# sourceMappingURL=BzSUSuAL.chunk.js.map
