import{bp as O,aX as P,ay as j,b$ as k,p as C,az as e,aj as I,bu as V,b4 as N,c2 as U,aB as f,bN as D,L as M,v as q,f as F,e as G,ao as t,aG as B,c3 as E,aH as w}from"./app-k0jcl5PQ.js";import{V as z}from"./BwdPieA0.chunk.js";import{u as X,T as $}from"./BpEsdmda.chunk.js";import{I as J}from"./hCTjXXcY.chunk.js";import{R as K}from"./4jZ12g_A.chunk.js";import{u as Q}from"./BHzuHk-6.chunk.js";import{u as W}from"./DDxzgH2W.chunk.js";import{u as Y}from"./BLYja3A6.chunk.js";import{C as Z}from"./Cp4QKQhL.chunk.js";import{O as _}from"./CLRmrBcZ.chunk.js";import{M as ss}from"./CznAEkX8.chunk.js";import"./BhYYYlpK.chunk.js";import"./FGhEvk_q.chunk.js";import"./WCBjpMHJ.chunk.js";import"./DoFMWlew.chunk.js";import"./CMnqIsoM.chunk.js";import"./DkDkjje4.chunk.js";import"./s-4A5pEU.chunk.js";import"./BAuuQuuB.chunk.js";import"./CnmbO5oy.chunk.js";import"./CT_eJKNn.chunk.js";import"./FIVgBuht.chunk.js";import"./B8hCUVHx.chunk.js";import"./CBHg5Ydb.chunk.js";import"./BNfTlqwB.chunk.js";import"./D8qpyDLF.chunk.js";import"./Bh7bFXwG.chunk.js";import"./wCY37Ze3.chunk.js";import"./BFSC0Mx_.chunk.js";import"./V7wC9s5_.chunk.js";import"./BDviDDog.chunk.js";import"./DwDhXSrj.chunk.js";import"./B7cmFgV1.chunk.js";import"./DXJ2-V8v.chunk.js";import"./Di9d6zcy.chunk.js";import"./DnLUOQTx.chunk.js";import"./Boh3c6zT.chunk.js";const ts="classrooms.openClassrooms",m=M.encloseNamespace(ts);function Fs(){var d,u,g;const p=O(),{hasPermissions:x}=P(),{hasShareFlowV2:a}=j(null),{isPlugin:b}=k(),{experience:H,loading:c}=Q(),{commonVideoProps:L}=W({locationContext:C.VideoThumbnail}),l=e(I.currentUser()),o=e(V.config()),i=e(K.getRostering()),S=((d=i.data)==null?void 0:d.status)&&i.data.status!=="None",r=e(((u=l.data)==null?void 0:u.isAuthenticated)&&N.yearGroups(l.data.customerId)),{appLink:v}=U(),{tutorialVideo:s,hasDismissedVideoHighlight:y,dismissVideoHighlight:A}=X($.OpenClassroom),n=e(J.interactiveMetadata()),T=Y({interactiveInsights:!0,shouldFetch:a,params:{type:[f.Open]}});if(D({title:m("pageTitle")}),!c&&H==="minimal")return q.trigger({application:G.CLASSROOMS,action:F.Classrooms.HOME}),t.jsx(t.Fragment,{});const R=!!o.data&&!!n.data&&!!r.data&&!!i.hasCompleted&&!c;return t.jsxs("div",{className:"px-3",children:[t.jsx(Z,{actions:[],activeTab:"open-classrooms",hasRostering:S,hasShareFlowV2:a}),(s==null?void 0:s.data)&&!y&&t.jsx(z,{video:s==null?void 0:s.data,subtitle:m("videoHighlightSubtitle"),description:m("videoHighlightDescription"),bgColorClassName:"bg-light-green",appLink:E.getAppLink(s==null?void 0:s.data,{},null),locationContext:C.ClassroomsList,commonVideoProps:L,sharedPlaylistAppLink:v,supportArticle:B.getLiteArticle(w.Classrooms),onDismiss:A}),t.jsx(_,{loading:!R,shareData:T,hasShareFlowV2:a,hasPermissions:x,breakpoints:p,isPlugin:b,imageCdnUrl:(g=o.data)==null?void 0:g.imageCdnUrl,yearGroups:r.data,className:"mt-3",demoInteractive:n.data,emptyState:()=>{var h;return t.jsx(ss,{isFirst:!0,demoInteractive:n.data,breakpoints:p,imageCdnUrl:(h=o.data)==null?void 0:h.imageCdnUrl,yearGroups:r.data,className:"mt-3",shareType:f.Open})}})]})}export{Fs as OpenClassroomsView};
//# sourceMappingURL=DBQqne7K.chunk.js.map
