1import{G as P}from"./GameCenterVideoLightbox-D9de7VWi.js";import{ab as B,Q as O,a1 as $,g as z,T as F,o as T,m as H,ax as I,j as g,r as L,au as N,aO as D,t as w,z as E,B as u,C as h,D as v,E as t,F as n,J as C,N as y,aa as M}from"./index-CWmxvvbW.js";import{V as j}from"./VideoRenderer-nCb8BQ-u.js";import{V as x}from"./VideoLockedComponent-C3Muxhg4.js";import{u as G}from"./video-DdazH8QZ.js";import{V as U}from"./VideoThumbnail-CnW7S61b.js";import"./fetch-videos-utils-D45EKYJ1.js";const W=B({name:"SingleVideo",components:{VideoRenderer:j,GameCenterVideoLightbox:P,VideoLockedComponent:x,SdpStreamlineIcon:$,SyHeading:O,VideoThumbnail:U},props:{siteSection:{type:Object,default:()=>{}}},setup(e){const s=z(),l=G(),{siteSection:m}=F(e),r=g(()=>m.value.config.display==="featured"?m.value.config.featuredVideo:l.getPlayPageVideoSpotLight),V=L(!0),_=L(!1),p=g(()=>{var i;return(i=r.value)!=null&&i.mediaString?[r.value]:[]}),S=s.params.mediaString,c=g(()=>D(S)),o=g(()=>l.getVideoByMediaString(c.value)),k=g(()=>{var i,d,a;return((d=(i=o==null?void 0:o.value)==null?void 0:i.renderedMedia)==null?void 0:d.videourl)===""&&((a=o==null?void 0:o.value)==null?void 0:a.locked)}),f=g(()=>{var i,d,a;return w(m.value.config.heading)?w((i=o==null?void 0:o.value)==null?void 0:i.name)?(a=r==null?void 0:r.value)==null?void 0:a.name:(d=o==null?void 0:o.value)==null?void 0:d.name:m.value.config.heading}),b=i=>{N(i,window.location.href,530,530)};return T(async()=>{V.value=!0,await l.getPlayPageVideoList(),V.value=!1,l.getIsFetchingVideo||c.value&&await l.loadVideoUsingMediaString(c.value)}),H(async()=>{try{await l.getPlayPageVideoList()}catch(i){console.error("Could not fetch list of videos",i)}}),{videoFromRoute:o,showLockedModal:k,dateFormatFull:I,shareToSocialMedia:b,mediaString:c,video:r,singleVideoHeading:f,spotlightLightboxOpen:_,spotlightLightboxVideos:p}}}),A={class:"single-video-root"},J={class:"single-video-container"},Q={class:"module-title-container"},R={class:"module-title-toggle module-title-toggle--lg"},q={class:"module-title-toggle module-title-toggle--sm"},K={key:0,class:"video-from-route-container"},X={class:"video-block"},Y={key:0,class:"absolute right-0 z-10"},Z={class:"date background-star main-star-container float-right"},ee={key:1},oe={class:"video-meta"},ie={class:"tag-bar"},te={class:"date"},se={class:"video-title"},ae={class:"video-text"},ne={class:"icon-container"},de={key:1,class:"video-container"},le={class:"video-block"};function re(e,s,l,m,r,V){var f,b,i,d;const _=u("sy-heading"),p=u("sdp-streamline-icon"),S=u("video-renderer"),c=u("video-locked-component"),o=u("video-thumbnail"),k=u("game-center-video-lightbox");return h(),v("div",A,[t("div",J,[t("div",Q,[t("div",R,[n(_,{primary:"","heading-label":e.singleVideoHeading,heading:"heading 3",uppercase:"","is-section-heading":"",class:"module-title"},null,8,["heading-label"])]),t("div",q,[n(_,{primary:"","heading-label":e.singleVideoHeading,heading:"heading 4",uppercase:"","is-section-heading":"",class:"module-title"},null,8,["heading-label"])])]),e.mediaString?(h(),v("div",K,[t("div",X,[(f=e.videoFromRoute)!=null&&f.locked?(h(),v("div",Y,[t("div",Z,[n(p,{icon:"starFilled",size:20,class:"text-white star-icon block"})])])):C("",!0),n(S,{video:e.videoFromRoute,class:"img-video"},null,8,["video"]),e.showLockedModal?(h(),v("div",ee,[n(c)])):C("",!0),t("div",oe,[t("div",ie,[t("p",te,y(e.dateFormatFull((b=e.videoFromRoute)==null?void 0:b.publishedAt)??""),1)]),t("div",se,y((i=e.videoFromRoute)==null?void 0:i.name),1),t("div",ae,y((d=e.videoFromRoute)==null?void 0:d.description),1),t("div",ne,[n(p,{icon:"facebookBoldWhite",size:25,class:M("social-icon cursor-pointer mr-2"),onClick:s[0]||(s[0]=a=>e.shareToSocialMedia("facebook"))}),n(p,{icon:"twitterBoldWhite",size:25,class:M("social-icon cursor-pointer mr-2"),onClick:s[1]||(s[1]=a=>e.shareToSocialMedia("twitter"))})])])])])):(h(),v("div",de,[t("div",le,[n(o,{class:"spotlight-video w-full",video:e.video,"redirect-on-click":!1,"use-lightbox":!0,"item-index":0,onOpenLightbox:s[2]||(s[2]=a=>e.spotlightLightboxOpen=!0)},null,8,["video"])])])),n(k,{modelValue:e.spotlightLightboxOpen,"onUpdate:modelValue":s[3]||(s[3]=a=>e.spotlightLightboxOpen=a),videos:e.spotlightLightboxVideos,"start-index":0},null,8,["modelValue","videos"])])])}const _e=E(W,[["render",re],["__scopeId","data-v-60551fac"]]);export{_e as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.