import{ax as f,e9 as A,az as a,bu as R,bN as y,L as D,ao as i,aB as u}from"./app-k0jcl5PQ.js";import{A as g}from"./B39N-_cE.chunk.js";import{I as o}from"./hCTjXXcY.chunk.js";import{u as M}from"./CgoG6iJ6.chunk.js";import{I as x,b as L}from"./CTcVdunE.chunk.js";import{I as E}from"./BF1TZQKE.chunk.js";import{e as N,f as O}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"./BwBaQklX.chunk.js";import"./B8qKg3jw.chunk.js";import"./uoUaCILN.chunk.js";import"./CNtKSILN.chunk.js";import"./CG1PE8VW.chunk.js";import"./BzIt8QkE.chunk.js";import"./BEDdXV-K.chunk.js";import"./NRZx5qCo.chunk.js";import"./CX9BGBTP.chunk.js";import"./CCcIOoB4.chunk.js";import"./CMnqIsoM.chunk.js";import"./s-4A5pEU.chunk.js";import"./Bcve7ust.chunk.js";import"./B31bqZwo.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"./BeVEaoiP.chunk.js";import"./CXr58ipf.chunk.js";const P="shared.interactiveInsightsQuestionsView",_=D.encloseNamespace(P);function Et(e){var p,c,d;const[h]=f(A.ANONYMISE_USERS);M();const I=a(R.config()),t=a(o.interactiveMetadata()),r=a(o.interactive()),l=g.getAudienceAppLinkParams(),m=g.getDateRangeAppLinkParams(),s=a(o.interactiveResults());y({title:t.data?_("pageTitle",{video:(p=t.data)==null?void 0:p.name}):null});const n=r.data&&t.data&&!!s.data;if(!n)return i.jsx(i.Fragment,{});const v={...l,...m},S=e.type===u.Open?N:O;return i.jsxs("div",{className:"px-3",children:[i.jsx(x,{tabs:L((c=t.data)==null?void 0:c.id,"questions",v,e.type),video:t.data,dateRangeAppLinkParams:m,share:{...S,objectId:(d=t.data)==null?void 0:d.id},yearGroups:[],markingRequired:e.type!==u.Open,isDemo:!0,hasData:!0}),i.jsx(E,{interactive:r.data,interactiveMetadata:t.data,interactionId:e.interactionId,config:I.data,sortBy:e.sortBy,isFetching:s.isFetching||r.isFetching,anonymiseUsers:h,results:s.data,hasDataLoaded:n,isDemo:!0})]})}export{Et as InteractiveInsightsQuestionsDemoView};
//# sourceMappingURL=n9bFf9Or.chunk.js.map
