import{ax as E,e9 as M,az as e,aj as w,bu as x,bN as y,L as D,aB as S,ao as a}from"./app-k0jcl5PQ.js";import{A as f}from"./B39N-_cE.chunk.js";import{I as i}from"./hCTjXXcY.chunk.js";import{u as k}from"./CgoG6iJ6.chunk.js";import{I as N,b as j}from"./CTcVdunE.chunk.js";import{I as H}from"./Ch_Ay6KX.chunk.js";import{e as P,f as _}from"./DnLUOQTx.chunk.js";import{g as b}from"./CYSmAAb3.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"./5Va-i3W_.chunk.js";import"./CnoMMtVD.chunk.js";import"./BzIt8QkE.chunk.js";import"./BEDdXV-K.chunk.js";import"./CssKhUy4.chunk.js";import"./Bcve7ust.chunk.js";import"./CG1PE8VW.chunk.js";import"./CNtKSILN.chunk.js";import"./uoUaCILN.chunk.js";import"./CX9BGBTP.chunk.js";import"./B31bqZwo.chunk.js";const V="insights.interactiveInsightsOverviewView",C=D.encloseNamespace(V);function Lt(s){var v,I,h,l;const[A]=E(M.ANONYMISE_USERS);k();const R=e(w.currentUser()),r=e(x.config()),t=e(i.interactiveMetadata()),o=e(i.interactive()),L=f.getAudienceAppLinkParams(),n=f.getDateRangeAppLinkParams(),m=e(i.interactiveResults()),p=e(i.aggregateHeatmap()),c=e(i.videoViews());y({title:t.data?C("pageTitle",{video:(v=t.data)==null?void 0:v.name}):null});const d=R.data&&r.data&&t.data&&o.data&&m.data&&p.data&&!!c.data,g={...L,...n},O=b("",g,s.type),u=s.type===S.Open?P:_;return d?a.jsxs("div",{className:"px-3",children:[a.jsx(N,{video:t.data,tabs:j((I=t.data)==null?void 0:I.id,"insights",g,s.type),dateRangeAppLinkParams:n,share:{...u,objectId:(h=t.data)==null?void 0:h.id},yearGroups:[],markingRequired:s.type!==S.Open,isDemo:!0,hasData:!0}),a.jsx(H,{aggregateEngagement:p.data,interactive:o.data,interactiveMetadata:t.data,classroomStudents:null,results:m.data,osCount:(l=c.data)==null?void 0:l.osCount,config:r.data,interactiveInsightsAppLinks:O,anonymiseUsers:A,hasDataLoaded:d,share:u})]}):a.jsx(a.Fragment,{})}export{Lt as InteractiveInsightsOverviewDemoView};
//# sourceMappingURL=7hhs-JJH.chunk.js.map
