import{az as r,aj as m,dK as l,bu as f,eb as g,ec as h,fc as y,h0 as P,bN as b,bO as p,bP as C,fd as E,v as q,f as I,e as L,ao as s,h1 as v,h2 as j}from"./app-k0jcl5PQ.js";import{u as w}from"./CAxN5LKv.chunk.js";import{E as x}from"./zAC9fV2a.chunk.js";import"./DIAJ896Y.chunk.js";function T(e){var u,c;const a=r(m.currentUser()),t=r(((u=a.data)==null?void 0:u.isAuthenticated)&&l.video(e.id)),i=r(f.config()),n=r(g.createViewKey(e.id,h.MasterObject)),d=y(((c=a.data)==null?void 0:c.isAuthenticated)&&e.id),o=P(e.id);return b(p.getVideoMetadata({content:t.data,canonicalLink:C.getCanonicalLink(),allowIndexing:!1})),E(t,{private:j}),w(t,x),a.hasCompleted&&!a.data.isAuthenticated?(q.trigger({application:L.EMBED,action:I.Embed.LCS_LOGIN,args:[e.id],params:e.queryParams}),s.jsx(s.Fragment,{})):t.data&&a.hasCompleted&&i.hasCompleted&&n.hasCompleted&&d.hasCompleted&&o.hasCompleted?s.jsx(v,{config:i.data,video:t.data,currentUser:a.data,viewKey:n.data,pointsOfInterest:d.items,presentationSlug:null,embed:!0,showResources:!0,autoplay:e.queryParams.a==="true",startTime:e.queryParams.t??e.queryParams.startTime,endTime:e.queryParams.endTime,playerIntegrations:o.data}):s.jsx(s.Fragment,{})}export{T as EmbeddedLcsVideoView};
//# sourceMappingURL=Cd6GwfML.chunk.js.map
