import{ao as s,aO as O,aU as e,aP as A,aq as i,L as c,f as n,e as m,bN as R,bc as b,c4 as v,az as u,bu as M,aj as P,c5 as U}from"./app-k0jcl5PQ.js";import{W as I}from"./Dqgyavxf.chunk.js";import{I as T}from"./DXJ2-V8v.chunk.js";import{h as q}from"./DIAJ896Y.chunk.js";import{u as y}from"./CnmbO5oy.chunk.js";import{P as F,C as N}from"./DXiOKSUK.chunk.js";import{C as k}from"./_XP6hjk3.chunk.js";import{S as H}from"./EHuWazu9.chunk.js";import"./CBiwFpxE.chunk.js";import"./CUttQdac.chunk.js";import"./ByBCp1MC.chunk.js";import"./DwvfEevL.chunk.js";import"./BrY2bcAL.chunk.js";import"./BHJbqrq4.chunk.js";import"./C8h-zAW7.chunk.js";import"./BDviDDog.chunk.js";import"./wCY37Ze3.chunk.js";import"./CYwt329T.chunk.js";import"./BEDdXV-K.chunk.js";import"./BUELddOb.chunk.js";import"./B04URh0L.chunk.js";import"./DlQIAsvN.chunk.js";import"./CCtuxSlD.chunk.js";import"./CPXlV0fg.chunk.js";import"./ApI7cEru.chunk.js";import"./DXxHdeNz.chunk.js";import"./CpGXOT1_.chunk.js";import"./DkDkjje4.chunk.js";import"./hKqzfsO4.chunk.js";import"./fstW5ZQE.chunk.js";import"./9ls1F1Ve.chunk.js";import"./DRKUY7jf.chunk.js";const d="settings.archivedClassroomsEmptyState";function D(){return s.jsx(O.Provider,{value:d,children:s.jsxs(e,{children:[s.jsx(e.Image,{src:A.EmptyStates.Classrooms.CLASSROOMS}),s.jsx(e.Heading,{children:s.jsx(i,{phrase:"heading"})}),s.jsx(e.Info,{children:s.jsx(i,{phrase:"info"})}),s.jsx(e.Cta,{appLink:{application:m.CLASSROOMS,action:n.Classrooms.HOME},className:"btn btn-dark",text:c.getPhrase(d,"cta")})]})})}const p="settings.archivedClassrooms",o=c.encloseNamespace(p),V={delete:{application:m.CLASSROOMS,action:n.Classrooms.DELETE_CLASSROOM},retrieve:{application:m.CLASSROOMS,action:n.Classrooms.RETRIEVE_CLASSROOM}};function xs(){R({title:o("pageTitle")});const C=b(),S=v(),l=r=>k.getArchived(r),h=r=>U(S)(l(r)),g=u(M.config()),f=u(P.currentUser()),{items:t,hasMore:x,isFetching:a,nextCursor:j}=y(l,h,E);function E(r,L){if(r===1)return q(L);C.error(c.getPhrase(p,"error"))}return s.jsxs(H,{heading:o("heading"),breadcrumbs:[o("breadcrumb")],children:[!!(t!=null&&t.length)&&s.jsx(I,{children:s.jsx(i,{namespace:p,phrase:"note"})}),!t||!g.hasCompleted?s.jsx(F,{}):t.length?s.jsxs(s.Fragment,{children:[s.jsx(N,{allClassrooms:t,imageCdnUrl:g.data.imageCdnUrl,appLinks:V,refreshTable:a,currentUser:f.data}),(x||a)&&s.jsx(T,{isFetching:a,fetchNext:h,nextCursor:j})]}):s.jsx(D,{})]})}export{xs as ArchivedClassroomsView};
//# sourceMappingURL=CdpWlBqR.chunk.js.map
