import{ax as L,V as M,az as t,aj as x,bu as N,eb as O,ec as _,bN as b,L as w,ao as e,aB as f}from"./app-k0jcl5PQ.js";import{A as S}from"./B39N-_cE.chunk.js";import{I as i}from"./hCTjXXcY.chunk.js";import{u as P}from"./CgoG6iJ6.chunk.js";import{I as T,b as V}from"./CTcVdunE.chunk.js";import{I as j}from"./D64I1S6v.chunk.js";import{D as k}from"./V7wC9s5_.chunk.js";import{e as q,f as C}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"./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"./5Va-i3W_.chunk.js";import"./BzIt8QkE.chunk.js";import"./BEDdXV-K.chunk.js";import"./CssKhUy4.chunk.js";import"./BN6TTvsM.chunk.js";import"./CKctgafI.chunk.js";import"./DCUV69GJ.chunk.js";import"./Crww-RVm.chunk.js";import"./80MCcucU.chunk.js";import"./ZlF_2kui.chunk.js";import"./Bj7bJt_4.chunk.js";import"./CGYNvpr2.chunk.js";import"./Q_WQ5xs9.chunk.js";import"./DdN4NAtQ.chunk.js";import"./CBiwFpxE.chunk.js";import"./BYBYoVkn.chunk.js";import"./CW7x8M-z.chunk.js";import"./CIa53I7v.chunk.js";import"./BhTtYYQR.chunk.js";import"./CCcIOoB4.chunk.js";import"./CovOloHp.chunk.js";import"./Cu7pgtf6.chunk.js";import"./B31bqZwo.chunk.js";import"./uoUaCILN.chunk.js";import"./GA2y9Z4q.chunk.js";import"./kNayOPB1.chunk.js";const G="shared.insightsHeatmap",U=w.encloseNamespace(G);function Wt(r){var g,u,h,l,I;const[y]=L(M.ANONYMISE_USERS);P();const E=t(x.currentUser()),a=t(i.interactiveMetadata()),v=t(N.config()),R=S.getAudienceAppLinkParams(),o=S.getDateRangeAppLinkParams(),s=t(i.aggregateHeatmap()),m=t(i.individualHeatmap()),p=t(i.users()),n=t(i.videoViews()),d=t(a.data&&O.createViewKey(k,_.Share));b({title:a.data?U("pageTitle",{video:(g=a.data)==null?void 0:g.name}):null});const c=!!E.data&&!!n.data&&!!a.data&&!!s.data&&!!d.data&&!!p.data,D=!!m.data;if(!c)return e.jsx(e.Fragment,{});const A={...R,...o},H=r.type===f.Open?q:C;return e.jsxs("div",{className:"px-3",children:[e.jsx(T,{video:a.data,tabs:V((u=a.data)==null?void 0:u.id,"heatmap",A,r.type),dateRangeAppLinkParams:o,share:{...H,objectId:(h=a.data)==null?void 0:h.id},yearGroups:[],markingRequired:r.type!==f.Open,isDemo:!0,hasData:!0}),e.jsx(j,{aggregateEngagement:s.data,individualEngagement:(l=m.data)==null?void 0:l.data,yearGroups:(I=n.data)==null?void 0:I.yearGroupCount,config:v.data,users:p.data,viewKey:d.data,hasDataLoaded:c,tableDataLoaded:D,anonymiseUsers:y,hideStaffResults:!1})]})}export{Wt as InsightsHeatmapDemoView};
//# sourceMappingURL=DD3iz0Bz.chunk.js.map
