1"use strict"; 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="7867885b-e4d0-5247-b498-a56da913c4a0")}catch(e){}}(); 3(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3885],{48219:(e,t,a)=>{a.d(t,{$N:()=>l,Jq:()=>i,L4:()=>d});var r=a(53948),o=a(18368),n=a(50022);let l=(e,t,a)=>async l=>{try{l({type:r.sM,payload:{clubId:e,videoId:t}});let i=new n.A(e,"video",{id:t}),d=await o.A.getPageData(i,a),{related:s,...c}=d.data;return l({type:r.wS,payload:{videoId:t,video:c,related:s}}),l({type:r.Vv,payload:{clubId:e,messages:s,key:d.key.toString()}}),l({type:r.oh,payload:i.toString()}),{accessLevel:d.accessLevel}}catch(o){let a=500;return o&&(a=o.errorStatusCode||a),l({type:r.$3,payload:{clubId:e,videoId:t,statusCode:a,error:o}}),{error:o}}},i=(e,t,a,l,i)=>async d=>{try{d({type:r.P4,payload:{clubId:e,teamId:t,page:a,search:l}}),d({type:r.Tm,payload:{clubId:e}});let s=new n.A(e,"video_list",{teamId:t,page:a,search:l}),c=await o.A.getPageData(s,i),{videos:u,pagination:p}=c.data;return d({type:r.tf,payload:{clubId:e,teamId:t,page:a,videos:u,pagination:p,search:l}}),d({type:r.Vv,payload:{clubId:e,messages:u,key:c.key.toString()}}),d({type:r.oh,payload:s.toString()}),{}}catch(n){let o=500;return n&&(o=n.errorStatusCode||o),d({type:r._u,payload:{clubId:e,teamId:t,page:a,search:l,statusCode:o,error:n}}),{error:n}}},d=e=>t=>{t({type:r.fx,payload:{videoId:e}})}},93885:(e,t,a)=>{a.r(t),a.d(t,{default:()=>k}),a(41730);var r=a(14232),o=a(2171),n=a(48219),l=a(12461),i=a(30842),d=a(33581),s=a(74055),c=a(35027),u=a(56530),p=a(4439),y=a(16006),m=a(95062),h=a.n(m);let w=({duration:e,onComplete:t,render:a,start:o})=>{let[n,l]=(0,r.useState)(e);return(0,r.useEffect)(()=>{let a=null;return o&&(a=setInterval(()=>n>0?l(n-1):(clearInterval(a),t()),1e3)),o||l(e),function(){a&&clearInterval(a)}},[o,n]),a(n)};w.defaultProps={start:!0},w.propTypes={duration:h().number.isRequired,onComplete:h().func.isRequired,render:h().func.isRequired,start:h().bool};var E=a(34917),v=a(31661),g=a.n(v),f=a(2221);a(70470);var b=a(79722);let A=(0,o.Ng)(e=>({club:(0,b.qU)(e)}))(({club:e,nextVideo:t,onClose:a,show:o})=>r.createElement(l.A,{fill:"rgba(0,0,0,0.8)"},r.createElement(i.A,{component:"div",maxWidth:350,style:{position:"absolute",bottom:0,left:0,width:"100%",opacity:+!!o,transition:"opacity 300ms ease-in-out"}},r.createElement(d.A,{style:{overflow:"hidden"}},r.createElement(s.A,{all:"medium"},r.createElement(c.A,{preset:"tab--active",color:"white",component:"div"},r.createElement(w,{start:o,duration:5,onComplete:()=>{g().pushClubRoute(e,"media.video",(0,f.A)({_title:t.title,id:t.video_id}))},render:e=>r.createElement(r.Fragment,null,r.createElement(E.x6,{i18nKey:"media:watch_next",values:{countdown:e}},"Watch next"),r.createElement(l.A,{fill:"primary"},r.createElement(u.A,{top:0,left:o?0:"-100%",style:{height:3,width:"100%",transition:"left linear 5s"}})))})),r.createElement(y.A,{key:t.id,message:t,stacked:"never",messageType:"video",titleColor:"white",dateColor:"white"})),r.createElement(u.A,{top:12,right:12,onClick:a,style:{cursor:"pointer"}},r.createElement(p.A,{name:"cross",color:"white"})))))),P=({coverImage:e,duration:t,nextVideo:a,videoId:o,videoOptions:n,watched:l})=>{let i=(0,r.useRef)(null),[d,s]=(0,r.useState)("IDLE"),{videoUrl:c}=n,[u,p]="16:9".split(":"),y=c.includes("youtube"),m=()=>{window.dataLayer.push({event:"videoEvent",action:"play",videoId:o,duration:t}),l(o),s("PLAYING")},h=()=>{s("PAUSED")},w=()=>{window.dataLayer.push({event:"videoEvent",action:"ended",videoId:o,duration:t}),s("ENDED")};return(0,r.useEffect)(()=>{if(y){window.onYouTubeIframeAPIReady=()=>{new window.YT.Player(o,{events:{onReady(){},onStateChange(e){e.data===window.YT.PlayerState.ENDED?w():e.data===window.YT.PlayerState.PLAYING?m():e.data===window.YT.PlayerState.PAUSED&&h()}}})};let e=document.createElement("script");return e.src="https://www.youtube.com/iframe_api",document.head.appendChild(e),()=>{e.parentNode.removeChild(e),delete window.onYouTubeIframeAPIReady}}return()=>{}},[y]),r.createElement("div",{style:{backgroundColor:"#000",position:"relative"}}
3,y?r.createElement("iframe",{height:p,id:o,src:function(){try{let e=new URL(c.startsWith("//")?`https:${c}`:c);return e.searchParams.set("enablejsapi","1"),e.toString()}catch{return c}}(),style:{aspectRatio:"16 / 9",backgroundColor:"#000",display:"block",height:"auto",visibility:"ENDED"===d?"hidden":"visible",width:"100%"},width:u}):r.createElement("video",{autoPlay:!0,controls:!0,height:p,id:o,onEnded:w,onPause:h,onPlay:m,playsInline:!0,poster:e,ref:i,style:{aspectRatio:"16 / 9",backgroundColor:"#000",height:"auto",width:"100%"},width:u},r.createElement("source",{src:c,type:"video/mp4"})),"ENDED"===d&&r.createElement("div",{style:{position:"absolute",top:0,left:0,bottom:0,right:0,backgroundImage:`url(${e})`,backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"50%"}}),"ENDED"===d&&a&&r.createElement(A,{nextVideo:a,onClose:()=>s("IDLE"),show:!0}))};P.defaultProps={duration:0,nextVideo:null};let k=(0,o.Ng)(null,{watched:n.L4})(P)}}]); 4//# debugId=7867885b-e4d0-5247-b498-a56da913c4a0
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.