import{az as i,aj as f,bc as l,c4 as g,c5 as C,L as S,c6 as u}from"./app-k0jcl5PQ.js";import{h as P}from"./DIAJ896Y.chunk.js";import{u as R}from"./CnmbO5oy.chunk.js";import{C as n}from"./_XP6hjk3.chunk.js";const b="classrooms.hooks",E=(t,s)=>{const r=i(f.currentUser()),o=l(),h=g(),a=e=>t?s!=null&&s.withStudentsCount?u.searchClassroomsV4(t,e):u.searchClassrooms(t,r.data.customerId,e):s!=null&&s.withStudentsCount?n.getPublishedWithStudents(r.data.id,e):n.getPublished(r.data.id,e),c=e=>C(h)(a(e));function m(e,d){if(e===1)return P(d);o.error(S.getPhrase(b,"error"))}return{...R(r.data?a:!1,c,m,e=>t?e.results:e.data),fetchNext:c}};export{E as u};
//# sourceMappingURL=C2bYcRga.chunk.js.map
