import{az as a,aj as l,f0 as h,bu as m,eb as y,ec as g,be as b,h0 as C,bN as f,bO as P,fd as I,h2 as p,ao as r,h1 as q,gS as R}from"./app-k0jcl5PQ.js";function w(e){const s=a(l.currentUser()),t=a(!!s.data&&h.sharedClip(e.objectId,e.shareId)),d=a(m.config()),n=a(y.createViewKey(e.shareId,g.Share)),o=a(b.getShareObject(e.shareId)),i=C(e.objectId);function u(c){c.one("cv-playback-data-loaded",()=>{R.remove()})}return f(P.getClipMetadata({content:t.data})),I(t,{private:p}),t.data&&s.hasCompleted&&d.hasCompleted&&n.hasCompleted&&o.hasCompleted&&i.hasCompleted?r.jsx(q,{config:d.data,video:t.data,currentUser:s.data,shareLink:o.data,viewKey:n.data,presentationSlug:null,embed:!0,showResources:!0,autoplay:e.queryParams.a==="true",startTime:e.queryParams.t??e.queryParams.startTime,onReady:u,playerIntegrations:i.data}):r.jsx(r.Fragment,{})}export{w as EmbeddedClipView};
//# sourceMappingURL=DRWtd4oj.chunk.js.map
