PageSourceSearch

https://www.skyshowtime.com/ice/_next/static/chunks/1478.4a99a64cbd471a9f.js

js skyshowtime.com collected 2026-10-01 11:38:57 UTC 25,401 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[830,1478,3211,5592,8449],{33158:(e,t,n)=>{var r=n(26024),i=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.addRequest=t.DEFAULT_REQUEST_OPTIONS=t.fetchService=void 0;let o=i(n(60771)),s=i(n(72153)),a={timeout:4e3,retries:0,retryTimeout:1e3};t.DEFAULT_REQUEST_OPTIONS=a;let l=(e="_missing-instance_")=>`${e}`,u=({url:e="",params:t={},headers:n={}}={})=>JSON.stringify({url:e,params:t,headers:n}),c=()=>void 0!==r,d={},h=(e,t,n)=>{let r=l(e),i=u(t),o=d[r]?d[r]:{};o[i]=n,d[r]=o};t.addRequest=h;let p=(e,t)=>{let n=l(e),r=u(t),i=d[n]?d[n]:{};delete i[r]},m=(e,t)=>s.default.interceptors[e].use(e=>(t(e),e),e=>Promise.reject(e)),b=(e,t,n=!1)=>new Promise((r,i)=>{(0,s.default)(e).then(r,o=>{let s=n?!o.response||o.response.status>=500&&o.response.status<=599:"ECONNABORTED"!==o.code&&(!o.response||o.response.status>=500&&o.response.status<=599);if(t<1||!s)return i(o);setTimeout(()=>{b(e,t-1,n).then(r,i)},e.retryTimeout||1e3)})}),v={fetch(e,t={}){let n,r={...a,...t};if(!r.url)throw Error("No url specified");let i=(n=u(r),(d[l(e)]||{})[n]);if(i)return i;let o=b(r,r.retries||0,this.isServer());return h(e,r,o),o.then(()=>{p(e,r)},t=>(this.logger.componentLog("error",t.message,{error:t,component:"@nowtv/iceberg-shared-core/fetchService.ts",requestOptions:(({response:{status:e}={},config:{url:t="none",headers:n={},method:r=""}={}})=>({href:t,method:r.toUpperCase(),statusCode:e,cacheControl:n["cache-control"]?.split("=")[1]}))(t),options:r}),p(e,r))),o},getRequests:e=>Object.values(d[l(e)]||{}),clearRequests(){d={}},_generateResponseMetricsForFetchService(e){let{status:t}=e,{url:n,customStartTime:r}=e.config,{host:i}=n?o.default.parse(n):{host:null},s=r?Date.now()-r:0,a=v?.requestMetrics?.observe||!1;i&&0!==s&&a&&v.requestMetrics?.observe({host:i,statusCode:t},s)},logger:{componentLog:(e="log",t,n)=>{console[e](t,{...n})}},isServer:c,addInterceptor:m};t.fetchService=v,c()&&(m("request",e=>{e.customStartTime=Date.now()}),m("response",v._generateResponseMetricsForFetchService))},37963:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.buildTerritoryLanguageIdentifiers=t.getAllLanguageCodes=t.getDefaultLanguage=t.getDefaultLanguageCode=t.getAvailableLanguages=void 0,t.getAvailableLanguages=e=>{let{languages:t,language:n,hideLanguagePrefix:r}=e,i=void 0===r||r;return t&&Object.keys(t).length>0?Object.entries(t).map(([e,t])=>{let n=t||{};return{code:e,default:n.default,hideLanguagePrefix:void 0!==n.hideLanguagePrefix?n.hideLanguagePrefix:i}}):n?[{code:n,default:!0,hideLanguagePrefix:i}]:[]},t.getDefaultLanguageCode=e=>{let n=(0,t.getAvailableLanguages)(e);if(0===n.length)return"";let r=n.find(e=>!0===e.default)||n[0];return r?.code||""},t.getDefaultLanguage=e=>(0,t.getDefaultLanguageCode)(e)||void 0,t.getAllLanguageCodes=e=>(0,t.getAvailableLanguages)(e).map(e=>e.code),t.buildTerritoryLanguageIdentifiers=e=>Object.values(e).flatMap(e=>{let n=(0,t.getAllLanguageCodes)(e),r=e.name;return n.map(e=>`${r}:${e}`)})},40601:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.actionCreatorHelper=t.ACTION_PREFIX=void 0,t.ACTION_PREFIX="ice::",t.actionCreatorHelper=e=>t=>(n,r)=>({type:`${t}`,payload:n,error:n instanceof Error,meta:{component:e,...r}})},53018:(e,t,n)=>{var r=n(26024);Object.defineProperty(t,"__esModule",{value:!0}),t.gracefulShutdown=function(e){e.app.disable("shutdown");let t=!1,n=new Set,o=e.servers,s=(e,r)=>{n.add(r),r.on("finish",()=>n.delete(r)),r.on("close",()=>n.delete(r)),t&&i(r)};for(let e of o)e.on("request",s);r.on("SIGTERM",()=>{let s;if(t)return;for(let r of(t=!0,e.log?.("SIGTERM received. Starting graceful shutdown."),e.app.enable("shutdown"),e.onStartShutdown?.(),n))i(r);let a=e.inFlightProcessingTimeoutMs??1e4,l=!1,u=()=>{l||(l=!0,s&&clearTimeout(s),Promise.resolve().then(()=>e.onFinishShutdown?.()).finally(()=>{r.exit(0)}).catch(()=>void 0))},c=o.length,d=()=>{(c-=1)<=0&&u()};for(let e of o)e.close(d),e.closeIdleConnections();c>0?(s=setTimeout(()=>{for(let e of o)e.closeAllConnections();u()},a)).unref():u()})};let i=e=>{e.headersSent||e.setHeader("connection","close")}},53465:(e,t,n)=>{n.r(t),n.d(t,{default:()=>q});var r=n(6506),i=n(33506),o=n(58649),s=n(1836),a=n.n(s),l=n(41835),u=n.n(l),c=n(30795),d=n(33461),h=n(34261),p=n(62759),m=n(24366);class b extends o.ui.AirPlayButton{buttonContainer;button;constructor(e,t,n){super(n,t),this.parent=e,this.buttonContainer=n,this.button=this.buttonContainer.firstElementChild,this.button&&(this.button.classList.add("core-peacock-airplay"),this.parent.appendChild(this.button))}static Factory=class{create(e,t){return new b(e,t,this.buttonContainer)}buttonContainer=document.createElement("div")}}class v extends o.ui.CastButton{buttonContainer;button;constructor(e,t,n){super(n,t),this.parent=e,this.buttonContainer=n,this.button=this.buttonContainer.firstElementChild,this.button&&(this.button.classList.add("core-peacock-cast"),this.parent.appendChild(this.button))}static Factory=class{create(e,t){return new v(e,t,this.buttonContainer)}buttonContainer=document.createElement("div")}}class g extends o.ui.RewindButton{buttonContainer;button;constructor(e,t,n){super(n,t),this.parent=e,this.buttonContainer=n,this.button=this.buttonContainer.firstElementChild,this.button&&(this.button.className="
1core-peacock-video-rewind",this.button.classList.add("core-peacock-video-jump-settings"),this.parent.appendChild(this.button),this.eventManager?.unlisten(this.button,"click"),this.eventManager?.listen(this.button,"click",()=>{let e=this.player,t=e?.getMediaElement()||{currentTime:0};t.currentTime-=10,this.player?.cancelTrickPlay()}))}static Factory=class{create(e,t){return new g(e,t,this.buttonContainer)}buttonContainer=document.createElement("div")}}class f extends o.ui.FastForwardButton{buttonContainer;button;constructor(e,t,n){super(n,t),this.parent=e,this.buttonContainer=n,this.button=this.buttonContainer.firstElementChild,this.button&&(this.button.className="core-peacock-video-ffwd",this.button.classList.add("core-peacock-video-jump-settings"),this.parent.appendChild(this.button),this.eventManager?.unlisten(this.button,"click"),this.eventManager?.listen(this.button,"click",()=>{let e=this.player,t=e?.getMediaElement()||{currentTime:0};t.currentTime+=10,this.player?.cancelTrickPlay()}))}static Factory=class{create(e,t){return new f(e,t,this.buttonContainer)}buttonContainer=document.createElement("div")}}class y extends o.ui.Element{titleControl;constructor(e,t){super(e,t),this.parent=e,this.titleControl=document.createElement("p"),this.titleControl.className="core-peacock-video-player--title",this.player&&(this.titleControl.innerText=this.player.getMediaElement()?.title||""),this.parent.appendChild(this.titleControl)}static Factory=class{create(e,t){return new y(e,t)}}}class C extends o.ui.Element{descriptionControl;constructor(e,t){super(e,t),this.parent=e,this.descriptionControl=document.createElement("p"),this.descriptionControl.className="core-peacock-video-player--description";const n=this.player?.getMediaElement()?.getAttribute("data-description");this.player&&n&&(this.descriptionControl.innerText=n,this.parent.appendChild(this.descriptionControl))}static Factory=class{create(e,t){return new C(e,t)}}}class E extends o.ui.PlayButton{buttonContainer;button;playText;pauseText;constructor(e,t,n){super(n,t),this.parent=e,this.buttonContainer=n,this.button=this.buttonContainer.firstElementChild,this.playText="play",this.pauseText="pause",this.updateLocalizedText(),null!==this.button&&(this.button.classList.add("core-peacock-video-button"),this.button.setAttribute("tabindex","-1"),this.button.classList.add("core-peacock-video-jump-settings"),this.button.setAttribute("icon","Play"),this.button.ariaLabel=this.playText,this.button.textContent="play",this.parent.appendChild(this.button),this.eventManager?.listen(this.video,"play",()=>{this.updateIcon(),this.updateAriaLabel()}),this.eventManager?.listen(this.video,"pause",()=>{this.updateIcon(),this.updateAriaLabel()}),this.eventManager?.listen(this.localization,o.ui.Localization.LOCALE_CHANGED,()=>{this.updateLocalizedText(),this.updateAriaLabel()}))}updateLocalizedText(){this.playText=this.localization?.resolve("PLAY")||"play",this.pauseText=this.localization?.resolve("PAUSE")||"pause"}updateIcon(){null!==this.button&&(this.isPaused()?this.button.setAttribute("icon","Play"):this.button.setAttribute("icon","Pause"))}updateAriaLabel(){null!==this.button&&(this.isPaused()?this.button.ariaLabel=this.playText:this.button.ariaLabel=this.pauseText)}static Factory=class{create(e,t){return new E(e,t,this.buttonContainer)}buttonContainer=document.createElement("div")}}class w extends o.ui.VolumeBar{constructor(e,t){super(e,t),this.bar.tabIndex=-1}static Factory=class{create(e,t){return new w(e,t)}}}class L extends o.ui.Element{button;constructor(e,t,n){if(super(n,t),this.parent=e,this.button=document.createElement("button"),this.parent.appendChild(this.button),this.button){this.button.classList.add("core-peacock-video-full-screen"),this.button.classList.add("core-peacock-video-jump-settings"),this.button.classList.remove("material-icons-round"),this.button.classList.remove("shaka-hidden"),this.parent.appendChild(this.button);const e=()=>{document.fullscreenElement?document.exitFullscreen():this.button?.closest('[data-testid="core-peacock-video-player"]')?.requestFullscreen()};this.eventManager?.listen(this.button,"pointerup",t=>{t.preventDefault(),e()}),this.eventManager?.listen(document,"fullscreenchange",()=>{document.fullscreenElement?this.button?.setAttribute("icon","minimise"):this.button?.setAttribute("icon","maximise")})}}static Factory=class{create(e,t){return new L(e,t,this.buttonContainer)}buttonContainer=document.createElement("div")}}class T extends o.ui.Element{container;constructor(e,t,n){super(n,t),this.parent=e,this.container=n,this.container=document.createElement("div"),this.container.className="shaka-pause-overlay";const r=this.parent?.closest(".core-peacock-video-player-wrapper")?.querySelector(".shaka-pause-overlay-wrapper")||this.parent?.closest("#video-modal-root")?.querySelector(".shaka-pause-overlay-wrapper");r instanceof HTMLDivElement&&(this.container.innerHTML=r?.innerHTML),this.parent.appendChild(this.container)}static Factory=class{create(e,t){return new T(e,t,this.container)}container=document.createElement("div")}}class x extends o.ui.Element{button;buttonWrapper;hoverArea;enabled;constructor(e,t){super(e,t),this.parent=e,this.hoverArea=document.createElement("span"),this.parent.appendChild(this.hoverArea),this.buttonWrapper=document.createElement("button"),this.button=document.createElement("span"),this.button.innerHTML="Button",this.buttonWrapper.appendChild(this.button),this.parent.appendChild(this.buttonWrapper),this.enabled=!1,null!==this.button&&(this.hoverArea.classList.add("core-peacock-video-volume-area"),this.button.classList.add("core-peacock-video-mute"),this.button.classList.add("core-peacock-video-jump-settings"),this.button.classList.remove("material-icons-round"),this.button.classList.remove("shaka-mute-button"),this.button.classList.add("core-peacock-shaka-mute-button"),this.buttonWrapper.classList.add("core-peacock-video-mute-wrapper"),this.buttonWrapper.setAttribute("tabindex","-1"),!this.video?.muted&&this.video&&(this.video.volume=.5),this.eventManager?.listen(this.buttonWrapper,"mouseenter",()=>{this.enabled=!0;let t=e.querySelector(".shaka-volume-bar-container");t.classList.add("core-peacock-volume-bar--show"),this.eventManager?.listen(document,"mousemove",e=>{null!==this.hoverArea&&(e.clientX<this.hoverArea.getBoundingClientRect().left||e.clientX>
1this.hoverArea.getBoundingClientRect().right||e.clientY<this.hoverArea.getBoundingClientRect().top||e.clientY>this.hoverArea.getBoundingClientRect().bottom)&&(this.eventManager?.unlisten(document,"mousemove"),t.classList.remove("core-peacock-volume-bar--show"))})}),this.eventManager?.listen(this.buttonWrapper,"click",()=>{if(this.video?.muted){this.video.muted=!1,this.video.volume=window.videoDefaultVolume||.5;try{sessionStorage.removeItem("videoPlayerUserMuted")}catch{}}else if(this.video&&!this.video.muted){this.video.muted=!0,this.video.volume=0;try{sessionStorage.setItem("videoPlayerUserMuted","true")}catch{}}}),this.video?.muted&&this.button?.setAttribute("icon","mute"),this.eventManager?.listen(this.video,"volumechange",()=>{this.video?.muted||this.video?.volume===0?this.button?.setAttribute("icon","mute"):(this.button?.setAttribute("icon","unmute"),window.videoDefaultVolume=this.video?.volume)}))}static Factory=class{create(e,t){return new x(e,t)}buttonContainer=document.createElement("div")}}class A extends o.ui.Element{button;constructor(e,t){super(e,t),this.parent=e,this.button=document.createElement("button"),this.button.classList.add("core-peacock-close"),this.button.setAttribute("title","close video"),this.parent.appendChild(this.button),this.eventManager?.listen(document,"keydown",e=>{"Escape"===e.key&&window.videoPlayerCloseModal&&null===document.fullscreenElement&&window.videoPlayerCloseModal()}),this.eventManager?.listen(this.button,"pointerup",e=>{e.preventDefault(),document.fullscreenElement&&document.exitFullscreen(),window.videoPlayerCloseModal&&window.videoPlayerCloseModal()})}static Factory=class{create(e,t){return new A(e,t)}}}class _ extends o.ui.PlayButton{buttonContainer;button;playText;pauseText;constructor(e,t,n){super(n,t),this.parent=e,this.buttonContainer=n,this.button=this.buttonContainer.firstElementChild,this.playText="play",this.pauseText="pause",this.updateLocalizedText(),null!==this.button&&(this.button.classList.add("core-peacock-video-floating-play-button"),this.button.setAttribute("icon","Play"),this.button.ariaLabel=this.playText,this.button.textContent="play",this.parent.appendChild(this.button),this.eventManager?.listen(this.video,"play",()=>{this.updateIcon(),this.updateAriaLabel()}),this.eventManager?.listen(this.video,"pause",()=>{this.updateIcon(),this.updateAriaLabel()}),this.eventManager?.listen(this.localization,o.ui.Localization.LOCALE_CHANGED,()=>{this.updateLocalizedText(),this.updateAriaLabel()}))}updateLocalizedText(){this.playText=this.localization?.resolve("PLAY")||"play",this.pauseText=this.localization?.resolve("PAUSE")||"pause"}updateIcon(){null!==this.button&&(this.isPaused()?this.button.setAttribute("icon","Play"):this.button.setAttribute("icon","Pause"))}updateAriaLabel(){null!==this.button&&(this.isPaused()?this.button.ariaLabel=this.playText:this.button.ariaLabel=this.pauseText)}static Factory=class{create(e,t){return new _(e,t,this.buttonContainer)}buttonContainer=document.createElement("div")}}o.ui.Controls.registerElement("fast_forward_10",new f.Factory),o.ui.Controls.registerElement("rewind_10",new g.Factory),o.ui.Controls.registerElement("custom_full_screen",new L.Factory),o.ui.Controls.registerElement("custom_play",new E.Factory),o.ui.Controls.registerElement("floating_play",new _.Factory),o.ui.Controls.registerElement("title",new y.Factory),o.ui.Controls.registerElement("description",new C.Factory),o.ui.Controls.registerElement("custom_volume_bar",new w.Factory),o.ui.Controls.registerElement("pause_screen_elements",new T.Factory),o.ui.Controls.registerElement("custom_volume_toggle",new x.Factory),o.ui.Controls.registerElement("custom_airplay",new b.Factory),o.ui.Controls.registerElement("custom_cast",new v.Factory),o.ui.Controls.registerElement("custom_close",new A.Factory);let M={addBigPlayButton:!1,showUnbufferedStart:!0,enableFullscreenOnRotation:!0,doubleClickForFullscreen:!0,autoPlay:!0,autoPlayMuted:!0,fadeDelay:5,controlPanelElements:["time_and_duration","title","description","spacer","rewind_10","custom_play","fast_forward_10","spacer","custom_volume_bar","custom_volume_toggle","custom_full_screen","pause_screen_elements","custom_airplay","custom_cast","custom_close","floating_play"],overflowMenuButtons:["language"],seekBarColors:{base:"rgba(255, 255, 255, 0.3)",buffered:"rgba(255, 255, 255, 0.54)",played:"#fff"},castReceiverAppId:window?.chrome?.cast?.media?.DEFAULT_MEDIA_RECEIVER_APP_ID},k={abr:{defaultBandwidthEstimate:7e5,bandwidthUpgradeTarget:.7,bandwidthDowngradeTarget:.8},streaming:{bufferingGoal:60,bufferBehind:4,rebufferingGoal:4.1}};var P=n(66908),F=n.n(P);let S=({event:e,progress:t=0,duration:n=0,...i})=>{let o=F().param(i);return(0,r.jsx)("div",{...o,"data-testid":"video-analytics","data-event":e,"data-progress":t,"data-vi
1deo-length":n})};var j=n(19954),R=n(38879);let I=({posterImage:e,videoEndFrameLineOne:t,videoEndFrameLineTwo:n,videoEndFrameCtaText:o,videoEndFrameCtaHref:s,videoEndFrameWatchAgain:a,onReload:l})=>{let u=(0,c.w)(e=>(0,j.Cm)(e,["videoPlayer"])),h=a||u.watchAgain||"Watch Again";return(0,r.jsx)(i.Fragment,{children:(0,r.jsxs)(R.Od,{children:[(0,r.jsxs)(R._V,{children:[(0,r.jsx)(R.sk,{}),(0,r.jsx)("img",{src:e,alt:"Video End Frame",loading:"lazy"})]}),(0,r.jsxs)(R.UC,{children:[(0,r.jsx)(R.mp,{children:t}),(0,r.jsx)(R.mp,{children:n}),(0,r.jsx)(R.XA,{children:(0,r.jsx)(d.default,{text:o,mode:"primary",href:s,outline:!0,"aria-label":o})}),(0,r.jsx)(R.Mv,{children:(0,r.jsxs)(R.CU,{onClick:()=>{l()},"aria-label":h,type:"button",children:[(0,r.jsx)("div",{className:"core-peacock-reload-image"}),(0,r.jsx)(R.db,{"data-testid":"core-peacock-video-player-watch-again",children:h})]})})]})]})})};var O=n(66880),D=n.n(O);let N=({totalDuration:e,currentTime:t})=>{let n=e>0?t/e:e;return n?D()(100*n,2):0};var B=n(26356),z=n.n(B);let W=e=>!!(e.currentTime>0&&!e.paused&&!e.ended&&e.readyState>2);z()(()=>{if(window.innerWidth>=768)return;let e=Array.from(document.querySelectorAll('[data-scroll-play="true"]:not([data-scroll-play-carousel="true"]) video, [data-scroll-play="true"][data-scroll-play-carousel="true"]')).filter(e=>{let t;return(t=e.getBoundingClientRect()).top>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)});if(e.length>0){let t=e[e.length-1];if(t.hasAttribute("data-scroll-play-carousel")){let e=Number(t.getAttribute("data-scroll-play-index"))||0,n=Array.from(t.querySelectorAll("video"));W(n[e])||n[e].play()}else W(t)||t.play()}},200);let q=({videoAnalytics:e,srcSet:t,posterImage:n,videoEndFrameLineOne:s,videoEndFrameLineTwo:l,videoEndFrameCtaText:b,videoEndFrameCtaHref:v,videoEndFrameWatchAgain:g,videoPauseCtaText:f,videoPauseCtaHref:y,videoLabel:C,videoDescription:E,external:w,externalVideoUrl:L,mode:T="modal",muted:x=!1,watchAgain:A=!1,hideEndState:_=!1})=>{let P=(0,c.w)(p._e),F=(0,i.useRef)(null),j=(0,i.useRef)(null),R=(0,i.useRef)(!1),O=(0,i.useRef)(null),[D,B]=(0,i.useState)(!1),[z,q]=(0,i.useState)(!1),[V,U]=(0,i.useState)(!1),H=(0,i.useRef)(!1),G=(0,i.useRef)(!1),X=(0,i.useRef)(!1),$=(0,i.useRef)(null),Y=(0,i.useRef)(null),[J,Q]=(0,i.useState)(!1),[K]=(0,i.useState)(!1),[Z,ee]=(0,i.useState)(null),[et,en]=(0,i.useState)(0),[er,ei]=(0,i.useState)(!1),[eo,es]=(0,i.useState)(null),ea=()=>{let e=null!==document.fullscreenElement&&void 0!==document.fullscreenElement;Q(e);let t=screen.orientation;e?t.lock("landscape"):t.unlock(),!document.fullscreenElement&&eu()&&"modal"===T&&window.videoPlayerCloseModal?.()};function el(){let e=Z?.getMediaElement();eu()&&!document.fullscreenElement&&"modal"===T&&e?.closest('[data-testid="core-peacock-video-player"]')?.requestFullscreen()}function eu(){return window.innerWidth<1024}(0,i.useEffect)(()=>{o.polyfill.installAll();let e=new o.Player(j.current);e.configure(k),e.addEventListener("error",e=>(0,h.vV)(e)),addEventListener("fullscreenchange",ea),ee(e);let t=F.current,n=j.current;if(n)try{"true"===sessionStorage.getItem("videoPlayerUserMuted")?(n.muted=!0,n.volume=0):n.volume=window.videoDefaultVolume||.5}catch{}let r=()=>{null!==$.current&&(clearTimeout($.current),$.current=null),null!==Y.current&&(clearTimeout(Y.current),Y.current=null),H.current=!0,q(!0),!1===X.current&&!1===G.current||!1===X.current&&!0===G.current&&(X.current=!0,U(!0))},i=()=>{H.current=!1,q(!1),X.current?(B(!0),G.current=!0):(B(!1),G.current=!1),null!==Y.current&&clearTimeout(Y.current),Y.current=window.setTimeout(()=>{X.current=!1,U(!1),Y.current=null},500)};n&&(n.addEventListener("seeking",r),n.addEventListener("seeked",i));let s=null,a=null;if(!eo&&t&&n){let r=new o.ui.Overlay(e,t,n);r.configure(M),r.getControls()?.getLocalization()?.changeLocale([P]);let i=r.getControls()?.getControlsContainer(),l=1e3*M.fadeDelay;a=()=>{null!==s&&clearTimeout(s),i&&i.setAttribute("shown","true"),s=window.setTimeout(()=>{!n.paused&&i&&i.removeAttribute("shown"),s=null},l)},t.addEventListener("mousemove",a)}return eu()&&window.addEventListener("fullscreenchange",ea),()=>{removeEventListener("fullscreenchange",ea),ee(null),null!==s&&clearTimeout(s),null!==a&&t?.removeEventListener("mousemove",a),n&&(n.removeEventListener("seeking",r),n.removeEventListener("seeked",i)),eu()&&window.removeEventListener("fullscreenchange",ea)}},[]),(0,i.useEffect)(()=>
1{er||!F.current||F.current.classList.contains("shaka-video-container")||F.current.classList.add("shaka-video-container")},[er]),(0,i.useEffect)(()=>{w&&L&&Z?L&&Z?.load(L.startsWith("http")?L:`https://${L}`).then(()=>{el(),es(null)}).catch(e=>{7e3!==e.code&&(es(e),(0,h.vV)(e))}):Z&&(t||[]).length>0&&(eo&&F.current&&j.current&&new o.ui.Overlay(Z,F.current,j.current).configure(M),function e(n=function*(){for(let e of t||[])yield e}()){let{value:r,done:i}=n.next();if(i||!r)return null;Z?.load(r).then(()=>{es(null),el()}).catch(()=>{Z.unload(!!r).then(()=>{es(null),e(n)}).catch(e=>{7e3!==e.code&&(es(e),(0,h.vV)(e))})})}())},[t,Z]);let ec=u()(()=>{document.querySelectorAll("video.shaka-video").forEach(e=>{j?.current!==e&&W(e)&&e.pause()}),B(!0),G.current=!0;let e=Z?.getMediaElement();if(en(a()(e,"currentTime",0)),e){let t=!1;try{t="true"===sessionStorage.getItem("videoPlayerUserMuted")}catch{}t?(e.muted=!0,e.volume=0):(e.muted=!1,e.volume=window.videoDefaultVolume||.5)}},200),ed=Z?.getMediaElement()?a()(Z.getMediaElement(),"duration",0):0;return(0,r.jsx)(i.Fragment,{children:(0,r.jsxs)(m.nD,{"data-testid":"core-peacock-video-player",isPaused:!D&&ed>0&&!1===z,playing:z?V:D,reloaded:K,fullscreen:J,modal:"modal"===T,mode:T,ended:er&&!_,atStart:0===et,seeking:z,children:[er&&!_&&(0,r.jsx)(I,{srcSet:t,posterImage:n||"",videoEndFrameLineOne:s,videoEndFrameLineTwo:l,videoEndFrameCtaText:b,videoEndFrameCtaHref:v,videoEndFrameWatchAgain:g,onReload:()=>{ei(!1),j.current&&(j.current.currentTime=0,j.current.play())}}),(0,r.jsx)(m.Ey,{children:(0,r.jsx)(m.fk,{children:(0,r.jsx)(d.default,{text:f,href:y||"/","aria-label":f,mode:"locked",outline:!0})})}),(0,r.jsxs)(m.bC,{videoEnded:er&&!_,"data-testid":"core-peacock-video-player-container",ref:F,onMouseEnter:()=>{if(er||J||!(window.innerWidth>=1024)||"modal"===T||"large"===T||"medium"===T)return;R.current=!0;let e=Z?.getMediaElement();!e||W(e)||O.current||(O.current=e.play(),O.current&&O.current.then(()=>{O.current=null}).catch(e=>{O.current=null,"AbortError"!==e.name&&(0,h.vV)(e)}))},onMouseLeave:()=>{if(J||"modal"===T||"large"===T||"medium"===T)return;R.current=!1;let e=Z?.getMediaElement();e&&(O.current?O.current.then(()=>{O.current=null,!R.current&&e&&(e.pause(),e.currentTime=0,setTimeout(()=>{R.current||e.load()},50))}).catch(()=>{O.current=null}):W(e)&&(e.pause(),e.currentTime=0,setTimeout(()=>{R.current||e.load()},50)))},children:[(0,r.jsx)(S,{...e,event:(({totalDuration:e,currentTime:t,isPlaying:n,videoEnded:r})=>n?t>0?"resume":"play":r||N({totalDuration:e,currentTime:t})>98||t>0&&t===e?"complete":!n&&t>0?"pause":"play")({totalDuration:ed,currentTime:et,isPlaying:D,videoEnded:er}),progress:N({totalDuration:ed,currentTime:et}),duration:isNaN(ed)?0:ed}),(0,r.jsx)("video",{poster:n,ref:j,width:"100%",onPlay:()=>void(B(!0),G.current=!0,ec()),onPause:()=>{let e;return e=Z?.getMediaElement(),void(G.current=!0,null!==$.current&&clearTimeout($.current),$.current=window.setTimeout(()=>{B(!1),G.current=!1,$.current=null},500),en(a()(e,"currentTime",0)))},onEnded:()=>{ei(!0)},title:C,"data-description":E,muted:x,autoPlay:A,playsInline:!0})]})]})})}},72835:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isValidModuleStatus=t.moduleStatusValues=void 0,t.moduleStatusValues=["beta","live","deprecated","experiment","poc"],t.isValidModuleStatus=e=>"string"==typeof e&&t.moduleStatusValues.includes(e)},81733:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getCompetitionsFromSportsTeamsWidgetJson=t.isSportsTeamsCompetition=t.isTeamInfo=t.isRecord=void 0,t.isRecord=e=>"object"==typeof e&&null!==e,t.isTeamInfo=e=>(0,t.isRecord)(e)&&"string"==typeof e.name&&"string"==typeof e.abbreviation,t.isSportsTeamsCompetition=e=>(0,t.isRecord)(e)&&"string"==typeof e.name&&Array.isArray(e.teams)&&e.teams.every(e=>(0,t.isTeamInfo)(e)),t.getCompetitionsFromSportsTeamsWidgetJson=e=>{if((0,t.isRecord)(e)&&Array.isArray(e.competitions)&&e.competitions.every(e=>(0,t.isSportsTeamsCompetition)(e)))return e.competitions}},88449:(e,t,n)=>{t.Ox=t.eW=t.zL=void 0;var r=n(40601);Object.defineProperty(t,"zL",{enumerable:!0,get:function(){return r.actionCreatorHelper}}),Object.defineProperty(t,"eW",{enumerable:!0,get:function(){return r.ACTION_PREFIX}});var i=n(33158);Object.defineProperty(t,"Ox",{enumerable:!0,get:function(){return i.fetchService}}),n(37963),n(5659),n(72835),n(53018),n(81733)}}]);
2//# sourceMappingURL=1478.4a99a64cbd471a9f.js.map

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.