import{az as t,bu as y,aj as f,bw as g,be as x,eb as I,ec as P,aI as w,h6 as R,fd as j,h2 as S,bN as q,bO as C,bp as L,ao as a,h1 as p,hp as M,dc as k,gS as E}from"./app-k0jcl5PQ.js";function U(e){var l;const d=t(y.config()),r=t(f.currentUser()),s=t(g.sharedInteractiveMetadata(e.objectId,e.shareId)),o=t(x.getShareObject(e.shareId)),m=I.createViewKey(e.shareId,P.Share),i=t(m),c=w.useMemo(()=>R(),[]);j(s,{private:S}),q(C.getInteractiveMetadata({content:s.data}));function h(n){n.one("cv-playback-data-loaded",()=>{E.remove()})}const u=L(),b=u.xl&&!u.xxl;function v(n){n?document.body.classList.remove("overflow-hidden"):document.body.classList.add("overflow-hidden")}return s.data&&d.hasCompleted&&r.hasCompleted&&o.hasCompleted&&i.hasCompleted?a.jsxs(a.Fragment,{children:[a.jsx(p,{config:d.data,video:s.data,currentUser:r.data,shareLink:o.data,viewKey:i.data,presentationSlug:null,startTime:e.queryParams.t??e.queryParams.startTime,onShowSummary:v,summaryPortalNode:c,embed:!0,onReady:h,collectAnonResults:!((l=r.data)!=null&&l.isAuthenticated)&&!!M.getAnonUser(e.shareId)}),a.jsx("div",{className:`p-3 ${b?"container-fluid":"container"}`,children:a.jsx(k,{node:c})})]}):a.jsx(a.Fragment,{})}export{U as EmbeddedInteractiveView};
//# sourceMappingURL=BvIsQ0mQ.chunk.js.map
