import{fa as M,p as T,aX as w,ay as A,az as o,aj as R,f0 as P,dK as O,bw as U,fb as F,fc as L,bN as _,bO as B,fd as D,fe as E,ao as s,aZ as N}from"./app-k0jcl5PQ.js";import{u as k}from"./CtFw3Moj.chunk.js";import{u as z}from"./DDxzgH2W.chunk.js";import{u as G}from"./DgW9Cwsn.chunk.js";import{u as H}from"./GqZ33xmI.chunk.js";import{u as K}from"./4IZETxJX.chunk.js";import{u as X}from"./Dw2t5TEb.chunk.js";import{P as Z}from"./axiCUAs6.chunk.js";import"./BAuuQuuB.chunk.js";import"./CCtuxSlD.chunk.js";import"./CPXlV0fg.chunk.js";import"./lKJuB19y.chunk.js";import"./Cukd0Qmt.chunk.js";import"./0f3cnETk.chunk.js";import"./BqNArZps.chunk.js";import"./DWt5Ov1e.chunk.js";import"./BxQFOoIR.chunk.js";import"./DdN4NAtQ.chunk.js";import"./CBiwFpxE.chunk.js";import"./BurIODLh.chunk.js";import"./BYBYoVkn.chunk.js";import"./ZlF_2kui.chunk.js";import"./Bj7bJt_4.chunk.js";import"./DlYrdKHv.chunk.js";import"./D62ACZel.chunk.js";import"./BBUCoOir.chunk.js";import"./BrY2bcAL.chunk.js";import"./BHJbqrq4.chunk.js";import"./Q_WQ5xs9.chunk.js";import"./DRX7tQDY.chunk.js";import"./BNuOjrBr.chunk.js";import"./WCBjpMHJ.chunk.js";import"./DoFMWlew.chunk.js";import"./CGYNvpr2.chunk.js";import"./CW-zLlXC.chunk.js";import"./BhYYYlpK.chunk.js";import"./FGhEvk_q.chunk.js";import"./CMnqIsoM.chunk.js";import"./CIN5bTKK.chunk.js";import"./1YwtoG9U.chunk.js";import"./BZa85bFL.chunk.js";import"./D1WNsOm8.chunk.js";import"./U4M4wGTR.chunk.js";import"./BgZMo0y9.chunk.js";import"./CX9BGBTP.chunk.js";import"./uoUaCILN.chunk.js";import"./DXJ2-V8v.chunk.js";import"./DH1mz64H.chunk.js";import"./BlKMjFEf.chunk.js";import"./CofWDDSQ.chunk.js";import"./DwvfEevL.chunk.js";import"./D9SGbB34.chunk.js";import"./BwBaQklX.chunk.js";import"./ByBCp1MC.chunk.js";import"./eerUhItV.chunk.js";import"./B31bqZwo.chunk.js";import"./f_twTV5Z.chunk.js";import"./BDeUEvb2.chunk.js";import"./Daim1zo7.chunk.js";import"./B3XH0kWB.chunk.js";import"./BRhv_AHY.chunk.js";import"./BDviDDog.chunk.js";import"./wCY37Ze3.chunk.js";import"./BUtU6IOA.chunk.js";import"./DAIetGMf.chunk.js";import"./TReHo2Ua.chunk.js";import"./Bw9otuBi.chunk.js";import"./BvnABNse.chunk.js";import"./Bh7bFXwG.chunk.js";import"./DCdUbbLx.chunk.js";import"./t24_x3Gi.chunk.js";import"./BKsI6eJC.chunk.js";import"./neLjacsa.chunk.js";import"./Bpw1_OdO.chunk.js";import"./DtIulmHQ.chunk.js";function Ce(t){var d,p,n,c,u,l,h;const{hasProduct:f}=M(),{commonVideoProps:C,hasCommonVideoPropsCompleted:V}=z({locationContext:T.VideoThumbnail}),{hasPermissions:I}=w(),{hasTopicDirectories:b,hasPlayPageTranscript:v}=A(null),x=X(),a=H(),r=o(R.currentUser()),e=o(P.sharedClip(t.objectId,t.shareId)),q=o(!!((d=e.data)!=null&&d._parentVideo)&&O.video(e.data._parentVideo.id)),y=o(!!((n=(p=e.data)==null?void 0:p._parentVideo)!=null&&n.id)&&a.canViewClips&&P.videoClips(e.data._parentVideo.id)),g=o(a.canViewInteractives&&U.videoInteractives(t.objectId)),m=F({video:q.data,context:t.queryParams.context,contextId:t.queryParams.contextId,moviesAndTv:t.queryParams.mtv,currentUser:r.data}),j=G(),i=L(t.objectId);_(B.getClipMetadata({content:e.data})),K(m.videos??[]),D(e),E({id:t.objectId,app:"clips",shareId:t.shareId});const S=k({name:(c=e.data)==null?void 0:c.name});return e.data&&r.hasCompleted&&i.hasCompleted&&V?s.jsx(Z,{shareId:t.shareId,clip:e.data,clips:(u=y.data)==null?void 0:u.data,interactives:(l=g.data)==null?void 0:l.data,currentUser:r.data,relatedVideos:m,hasProduct:f,queryParams:t.queryParams,audiences:j.data,canManageVideoAccess:I(N.ManageVideoAccess),pointsOfInterest:i==null?void 0:i.items,featureAccess:a,tableOfContentsId:(h=t.queryParams)==null?void 0:h.tocId,shouldShowSideTableOfContents:x,breadcrumbs:S,commonVideoProps:C,hasTopicDirectories:b,hasTheatreMode:v}):s.jsx(s.Fragment,{})}export{Ce as PlaySharedClipView};
//# sourceMappingURL=AQPLQLM1.chunk.js.map
