import{ax as y,e9 as M,az as i,bu as D,bN as L,L as _,ao as a,aB as g,v as N,f as T,e as x}from"./app-k0jcl5PQ.js";import{A as S}from"./B39N-_cE.chunk.js";import{I as r}from"./hCTjXXcY.chunk.js";import{u as O}from"./CgoG6iJ6.chunk.js";import{I as H,b as k}from"./CTcVdunE.chunk.js";import{I as P}from"./BpHTZJFl.chunk.js";import{e as b,f as j}from"./DnLUOQTx.chunk.js";import"./wCY37Ze3.chunk.js";import"./CCtuxSlD.chunk.js";import"./CPXlV0fg.chunk.js";import"./DwDhXSrj.chunk.js";import"./U4M4wGTR.chunk.js";import"./Bw9otuBi.chunk.js";import"./Bh7bFXwG.chunk.js";import"./BmaOJ2e9.chunk.js";import"./DCdUbbLx.chunk.js";import"./BHzuHk-6.chunk.js";import"./bYe0TMNu.chunk.js";import"./UBCV9Jq8.chunk.js";import"./Boh3c6zT.chunk.js";import"./BNfTlqwB.chunk.js";import"./D8qpyDLF.chunk.js";import"./q-a0Zpry.chunk.js";import"./BHfFK47N.chunk.js";import"./DlQIAsvN.chunk.js";import"./B6Awc0tS.chunk.js";import"./CssKhUy4.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"./CBeYA-N4.chunk.js";import"./BzIt8QkE.chunk.js";import"./BEDdXV-K.chunk.js";import"./Bcve7ust.chunk.js";import"./CG1PE8VW.chunk.js";import"./CNtKSILN.chunk.js";import"./uoUaCILN.chunk.js";import"./CX9BGBTP.chunk.js";import"./CnoMMtVD.chunk.js";import"./B31bqZwo.chunk.js";const B="insights.interactiveInsightsStudents",C=_.encloseNamespace(B);function Nt(e){var p,c,d;const[l]=y(M.ANONYMISE_USERS);O();const I=i(D.config()),t=i(r.interactiveMetadata()),o=i(r.interactive()),h=S.getAudienceAppLinkParams(),n=S.getDateRangeAppLinkParams(),s=i(r.interactiveResults()),m=o.data&&t.data&&!!s.data;if(L({title:t.data?C("pageTitle",{video:(p=t.data)==null?void 0:p.name}):null}),!m)return a.jsx(a.Fragment,{});function f(u,R,E){N.trigger({application:x.MY_SHARES,action:T.MyShares.INTERACTIVE_STUDENT_RESULTS_DEMO,params:{studentId:u.id,interactiveMetadataId:R,interactionId:E,sessionId:u.sessionId}})}const v={...h,...n},A=e.type===g.Open?b:j;return a.jsxs("div",{className:"px-3",children:[a.jsx(H,{tabs:k((c=t.data)==null?void 0:c.id,"results",v,e.type),video:t.data,dateRangeAppLinkParams:n,share:{...A,objectId:(d=t.data)==null?void 0:d.id},yearGroups:[],markingRequired:e.type!==g.Open,isDemo:!0,hasData:!0}),a.jsx(P,{interactiveMetadata:t.data,viewStudentResults:f,interactive:o.data,results:s.data,filterBy:e.filterBy,sortBy:e.sortBy,isFetching:s.isFetching,anonymiseUsers:l,hasDataLoaded:m,config:I.data,hideStaffResults:!1})]})}export{Nt as InteractiveInsightsStudentsDemoView};
//# sourceMappingURL=C2-v-wq4.chunk.js.map
