PageSourceSearch

https://www.ballysports.com/_next/static/chunks/5408.479eabd0ebed99e2.js

js ballysports.com collected 2026-10-01 11:37:10 UTC 44,830 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5408],{25595:(e,t,n)=>{n.d(t,{U_:()=>s,sX:()=>i});let r=!1;function i(){r=!0}function s(){let e=r;return r=!1,e}},37491:(e,t,n)=>{n.d(t,{PlayerBackNavigationProvider:()=>a,q:()=>o});var r=n(95155),i=n(12115);let s=(0,i.createContext)(null);function a(e){let{fallbackHref:t,children:n}=e,a=(0,i.useMemo)(()=>({fallbackHref:t}),[t]);return(0,r.jsx)(s.Provider,{value:a,children:n})}function o(){return(0,i.useContext)(s)}},55408:(e,t,n)=>{n.r(t),n.d(t,{default:()=>eh});var r=n(95155),i=n(12115),s=n.t(i,2),a=n(60624),o=n.n(a),l=n(72141),h=n(39062),d=n(35578),u=n(15137),c=n(41116),p=n(96569),m=n(69711),v=n(45374);let y="theoplayermenuclose";var _=n(50779),g=n(49250),f=n(63836),b=n(22498),E=n(89214);let T=(()=>{if("undefined"!=typeof document){for(let e of[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]])if(e[1]in document)return{requestFullscreen_:e[0],exitFullscreen_:e[1],fullscreenElement_:e[2],fullscreenEnabled_:e[3],fullscreenchange_:e[4],fullscreenerror_:e[5]}}})();class x{get left(){return this.x}set left(e){this.x=e}get right(){return this.x+this.width}set right(e){this.x=e-this.width}get top(){return this.y}set top(e){this.y=e}get bottom(){return this.y+this.height}set bottom(e){this.y=e-this.height}static fromRect(e){var t,n,r,i,s,a;return new x(null!=(n=null!=(t=e.left)?t:e.x)?n:0,null!=(i=null!=(r=e.top)?r:e.y)?i:0,null!=(s=e.width)?s:0,null!=(a=e.height)?a:0)}overlaps(e){return this.x<e.right&&this.right>e.x&&this.y<e.bottom&&this.bottom>e.y}contains(e){return this.x<=e.x&&e.right<=this.right&&this.y<=e.y&&e.bottom<=this.bottom}union(e){let t=Math.min(this.x,e.x),n=Math.min(this.y,e.y),r=Math.max(this.right,e.right)-t,i=Math.max(this.bottom,e.bottom)-n;return new x(t,n,r,i)}snapToPixels(){return new x(Math.round(this.x),Math.round(this.y),Math.round(this.width),Math.round(this.height))}clone(){return new x(this.x,this.y,this.width,this.height)}toJSON(){return{x:this.x,y:this.y,width:this.width,height:this.height,left:this.left,right:this.right,top:this.top,bottom:this.bottom}}constructor(e,t,n,r){this.x=e,this.y=t,this.width=n,this.height=r}}var L=n(65111);function k(){let e=(0,_.bq)();return e&&e!==document.body&&(0,_.sb)(e)?e:null}let w="theoplayermenuchange";var C=n(55397);let P="theoplayerready";function R(e){let t=null==e?void 0:e.targetQuality;return void 0===t||Array.isArray(t)||(t=[t]),t}let S="theoplayerUiObservedProperties";function A(e){return S in e&&(0,_.cy)(e[S])}async function M(e,t,n){if(t.contains(e))return;e.nodeName.indexOf("-")>=0&&!A(e)&&(await Promise.resolve(),await customElements.whenDefined(e.nodeName.toLowerCase()),customElements.upgrade(e)),A(e)&&n(e);let r=(0,_.i0)(e);r.length>0&&await Promise.all((0,_.Fe)(r).map(e=>M(e,t,n)))}var I=n(19598),D=n(30865),N=n(2e4);let U="ballys-gesture-reciever",O=(0,N.A)(U,"<style>".concat(":host { display: inline-block; box-sizing: border-box; pointer-events: none !important; }","</style>"));class F extends(0,m.Gy)(HTMLElement,["player"]){_upgradeProperty(e){if(this.hasOwnProperty(e)){let t=this[e];delete this[e],this[e]=t}}connectedCallback(){v.cu(this),this.setAttribute("tabindex","-1"),this.setAttribute("aria-hidden","true")}get player(){return this._player}set player(e){this._player!==e&&(void 0!==this._playerElement&&(this._playerElement.removeEventListener("pointerdown",this._onPointerDown),this._playerElement.removeEventListener("click",this._onClick)),this._player=e,this._playerElement=null==e?void 0:e.element,void 0!==this._playerElement&&(this._playerElement.addEventListener("pointerdown",this._onPointerDown),this._playerElement.addEventListener("click",this._onClick)))}handleTap(e){}handleMouseClick(e){if(void 0!==this._player){var t;void 0!==this._player.source&&(null!=(t=this._player.ads)&&t.playing||(this._player.paused?this._player.play():this._player.pause()))}}constructor(){super(),this._pointerType="",this._onPointerDown=e=>{this._pointerType=e.pointerType},this._onClick=e=>{var t;let n=null!=(t=e.pointerType)?t:this._pointerType;"touch"===n?this.handleTap(e):"mouse"===n&&this.handleMouseClick(e)},this.attachShadow({mode:"open"}).appendChild(O().content.cloneNode(!0)),this._upgradeProperty("player")}}customElements.define(U,F);var j=n(12168);let V="ballys-ui",q=(0,N.A)(V,"<style>".concat("\n:host {\n  box-sizing: border-box;\n  position: relative;\n  display: inline-block;\n  min-width: 300px;\n  height: 0;\n  padding-bottom: min(var(--apollo-max-layer-height),56.25%);\n  background: var(--theoplayer-background, #000);\n  container-name: theoplayer-ui-container;\n  container-type: size;\n\n  /*\n   * The control scrim (WEBZ-123): two gradients that darken the video behind the chrome so the\n   * controls stay legible over any frame.\n   *\n   * Declared here as a default rather than hard-coded into the rule that consumes it, so a surface\n   * can still override the whole treatment by setting this property on the host.\n   *\n   * Both live in ONE property because the element that paints them is a single box\n   * ([part~='vertical-layer']::before), and CSS backgrounds layer: the first is pinned to the top\n   * at a fixed 80px, the second is anchored to the bottom and sized to the full player so its\n   * falloff scales with the video rather than with a fixed band. Earlier layers paint above later\n   * one
1s, which is why the top scrim is written first.\n   *\n   * Values are the prototype's, measured off the reference player, and deliberately stop short of\n   * opaque: the previous treatment ramped to solid #000 and read as a hard band across the bottom\n   * of the frame.\n   */\n  --theoplayer-control-backdrop-background:\n    linear-gradient(to bottom, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.3) 55%, rgba(0, 0, 0, 0) 100%) top / 100% 80px\n      no-repeat,\n    linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 22%, rgba(0, 0, 0, 0) 48%) bottom / 100% 100%\n      no-repeat;\n}\n\n:host([hidden]) {\n    display: none !important;\n}\n\n@define-mixin fullscreen-styles {\n    /* Needs to use !important otherwise easy to break */\n    width: 100% !important;\n    height: 100% !important;\n    padding: 0 !important;\n}\n\n:host([fullscreen]) {\n    @mixin fullscreen-styles;\n}\n\n/* Safari and IE need this to actually make the element fill the window */\n:host(:fullscreen) {\n    @mixin fullscreen-styles;\n}\n\n:host([fluid]) {\n    padding-bottom: calc(100% * var(--theoplayer-video-height, 9) / var(--theoplayer-video-width, 16));\n}\n\n[part~='chrome'] {\n    position: relative;\n}\n\n/* When in fullscreen allow video to occupy the full screen vertically */\n:host([fullscreen]) [part~='layer']{\n    max-height: 100vh;\n}\n\n[part~='layer'] {\n  position: absolute;\n  inset: 0;\n  z-index: 0;\n\n  /* SO IMPORTANT, reads the apolllo-max-layer-height attribute set in resizeHandler */\n  /* Sets the max height for the ACTUAL video component NOT the wrapper around the player */\n  max-height: var(--apollo-max-layer-height, 1170px);\n}\n\n[part~='layer']:not([part~='media-layer']),\n[part~='chrome'] {\n    display: flex;\n}\n\n/*\n * Disable pointer events on all layers,\n * but re-enable them on all elements slotted into those layers.\n */\n[part~='gesture-layer'],\n[part~='vertical-layer'],\n[part~='chrome'] {\n    pointer-events: none;\n}\n\n[part~='chrome'] ::slotted(*) {\n    pointer-events: auto;\n}\n\n[part~='media-layer'] video {\n    border-radius: var(--theoplayer-video-border-radius, 0);\n    object-fit: var(--theoplayer-video-object-fit, contain);\n}\n\n/*\n * Hack: THEOplayer's own linear ad UI is not positioned correctly by default\n * when using the chromeless player.\n */\n[part~='media-layer'] .theoplayer-ad-linear {\n    position: absolute;\n    inset: 0;\n    z-index: 10;\n}\n\n/*\n * Hack: hide THEOplayer's built-in ad UI, so we can use our own components instead\n * such as <theoplayer-ad-countdown> and <theoplayer-ad-skip-button>.\n */\n[part~='media-layer'] .theo-ad-remaining-container,\n[part~='media-layer'] .theoplayer-ad-skip,\n[part~='media-layer'] .theoplayer-ad-touch-clickthrough {\n    display: none !important;\n}\n\n[part~='vertical-layer'],\n[part~='chrome'] {\n    flex-flow: column nowrap;\n    align-items: stretch;\n}\n\n[part~='centered'] {\n    align-items: center;\n    justify-content: center;\n}\n\n[part~='middle'] {\n    flex-grow: 1;\n}\n\n/*\n * The control scrim. Paints behind the chrome, never over it: the chrome parts are\n * position: relative (above), so although both are positioned with an auto z-index, this\n * generated box is the layer's FIRST child and therefore paints underneath them.\n *\n * pointer-events: none is inherited from the layer, but is restated because this box covers the\n * whole player and swallowing taps here would break the tap-to-toggle-controls gesture.\n */\n[part~='vertical-layer']::before {\n    content: '';\n    position: absolute;\n    inset: 0;\n    background: var(--theoplayer-control-backdrop-background, transparent);\n    pointer-events: none;\n}\n\n:host(:not([mobile]):not([tv])) [part~='menu-layer'] {\n    top: var(--theoplayer-menu-offset-top, 0);\n    bottom: var(--theoplayer-menu-offset-bottom, 0);\n    padding: var(--theoplayer-menu-layer-padding, 10px);\n}\n\n[part='menu'] {\n    display: flex;\n    justify-self: stretch;\n    background: var(--theoplayer-menu-backdrop-background, rgba(0, 0, 0, 0.5));\n    backdrop-filter: blur(8px) !important;\n    border-radius: 15px !important;\n}
1\n\n[part='menu'] ::slotted(*) {\n    align-self: stretch;\n    justify-self: stretch;\n    flex-grow: 1;\n}\n\n:host(:not([mobile])) [part='menu'] {\n    /* Align to bottom right by default */\n    margin-top: var(--theoplayer-menu-margin-top, auto);\n    margin-bottom: var(--theoplayer-menu-margin-bottom, 0);\n    margin-left: var(--theoplayer-menu-margin-left, auto);\n    margin-right: var(--theoplayer-menu-margin-right, 0);\n    /* Do not exceed container height */\n    max-height: 100%;\n    /* Avoid narrow menus */\n    min-width: var(--theoplayer-menu-min-width, 200px);\n}\n\n@define-mixin menu-fill-styles {\n    /* Reset styles from desktop */\n    margin: 0;\n    min-width: auto;\n    /* Fill entire player */\n    align-self: stretch;\n    flex-grow: 1;\n    /* Close menu when clicking on empty area of menu */\n    pointer-events: none;\n}\n\n/* On mobile, make menu fill entire player */\n:host([mobile]) [part='menu'] {\n    @mixin menu-fill-styles;\n}\n\n:host([tv]) [part~='menu-layer'] {\n    left: auto;\n}\n\n:host([tv]) [part='menu'] {\n    @mixin menu-fill-styles;\n}\n\n:host(:not([menu-opened])) [part~='menu-layer'],\n:host([menu-opened][tv]) [part~='vertical-layer'],\n:host([menu-opened][mobile]) [part~='vertical-layer'] {\n    display: none !important;\n}\n\n/* When player is small, make menu fill entire player */\n@container theoplayer-ui-container (max-width: 500px) {\n    :host(:not([mobile])) [part~='menu-layer'] {\n        /* Reset styles from desktop */\n        inset: 0;\n        padding: 0;\n    }\n\n    :host(:not([mobile])) [part='menu'] {\n        @mixin menu-fill-styles;\n    }\n\n    :host([menu-opened]) [part~='vertical-layer'] {\n        display: none !important;\n    }\n}\n\n[part~='error-layer'] {\n    align-items: center;\n    justify-content: center;\n    background: var(--theoplayer-error-background, rgba(0, 0, 0, 0.5));\n}\n\n:host(:not([has-error])) [part~='error-layer'],\n:host([has-error]) [part~='layer']:not([part~='media-layer']):not([part~='error-layer']) {\n    display: none !important;\n}\n\n[part~='chrome'] ::slotted(theoplayer-control-bar) {\n    align-self: stretch;\n}\n\ntheoplayer-gesture-receiver {\n    flex-grow: 1;\n}\n\n/*\n * Mobile-only and mobile-hidden elements\n */\n:host([mobile]) [part~='chrome'] ::slotted([mobile-hidden]),\n:host(:not([mobile])) [part~='chrome'] ::slotted([mobile-only]) {\n    display: none !important;\n}\n\n/*\n * TV-only and TV-hidden elements\n */\n:host([tv]) [part~='chrome'] ::slotted([tv-hidden]),\n:host(:not([tv])) [part~='chrome'] ::slotted([tv-only]) {\n    display: none !important;\n}\n\n/*\n * Live-only and live-hidden elements\n */\n:host(:not([stream-type='vod'])) [part~='chrome'] ::slotted([live-hidden]),\n:host([stream-type='vod']) [part~='chrome'] ::slotted([live-only]) {\n    display: none !important;\n}\n\n/*\n * Ad-only and ad-hidden elements\n */\n:host([playing-ad]) [part~='chrome'] ::slotted([ad-hidden]),\n:host(:not([playing-ad])) [part~='chrome'] ::slotted([ad-only]) {\n    display: none !important;\n}\n\n/*\n * Hide cursor when user is idle\n */\n:host([user-idle]:not([paused]):not([casting]):not([menu-opened])) {\n    cursor: none;\n}\n\n/*\n * Auto-hide elements when user is idle\n */\n:host([user-idle]:not([paused]):not([casting]):not([menu-opened])) [part~='chrome'] ::slotted(:not([no-auto-hide])) {\n    opacity: 0;\n    transition: opacity 1s;\n}\n\n/*\n * Hide control background when user is idle\n */\n:host([user-idle]:not([paused]):not([casting]):not([menu-opened])) [part~='vertical-layer']::before {\n    opacity: 0;\n    transition: opacity 1s;\n}","</style>").concat('\n  <div class="" part="layer media-layer"></div>\n  <div part="layer gesture-layer">\n      <theoplayer-gesture-receiver></theoplayer-gesture-receiver>\n  </div>\n  <div part="layer vertical-layer">\n      <div part="top chrome">\n          <slot name="top-chrome"></slot>\n      </div>\n      <div part="middle chrome">\n          <slot name="middle-chrome"></slot>\n      </div>\n      <div part="layer centered-layer centered loading">\n          <slot name="centered-loading"></slot>\n      </div>\n      <div part="layer centered-layer centered chrome">\n          <slot name="centered-chrome"></slot>\n      </div>\n      <div part="bottom chrome">\n          <slot>\x3c!-- default, effectively "bottom-chrome" --\x3e</slot>\n      </div>\n  </div>\n  <div part="layer menu-layer">\n      <theoplayer-menu-group part="menu">\n          <slot name="menu"></slot>\n      </theoplayer-menu-group>\n  </div>\n\n  \x3c!-- COMMENTED OUT ERROR LAYER\n    <div part="layer error-layer">\n    <slot name="error"></slot>\n    </div>\n  --\x3e\n\n')),z="apollo-max-layer-height";class G extends HTMLElement{static get observedAttributes(){return[D.n.CONFIGURATION,D.n.SOURCE,D.n.MUTED,D.n.AUTOPLAY,D.n.FULLSCREEN,D.n.FLUID,D.n.DEVICE_TYPE,D.n.PAUSED,D.n.ENDED,D.n.CASTING,D.n.PLAYING_AD,D.n.HAS_ERROR,D.n.HAS_FIRST_PLAY,D.n.STREAM_TYPE,D.n.DVR_THRESHOLD,D.n.USER_IDLE,D.n.USER_IDLE_TIMEOUT,"calculatedTopPadding",z]}_upgradeProperty(e){if(this.hasOwnProperty(e)){let t=this[e];delete this[e],this[e]=t}}set calculatedTopPadding(e){this._calculatedTopPadding=e}_setMaxLayerHeight(e){let t="number"!=typeof e||isNaN(e)?"":"".concat(Math.max(0,Math.floor(e)),"px");v.MX(this,{"--apollo-max-layer-height":t})}get player(){return this._player}get configuration(){return this._configuration}set configuration(e){this.removeAttribute(D.n.CONFIGURATION),this._setConfiguration(e)}_setConfiguration(e){this._configuration=null!=e?e:{},this.tryInitializePlayer_()}get source(){return this._player?this._player.source:this._source}set source(e){this.removeAttribute(D.n.SOURCE),this._setSource(e)}_setSource(e){this._player?this._player.source=e:this._source=e}
1get fluid(){return this.hasAttribute(D.n.FLUID)}set fluid(e){(0,_.j2)(this,D.n.FLUID,e)}get muted(){return this.hasAttribute(D.n.MUTED)}set muted(e){(0,_.j2)(this,D.n.MUTED,e)}get autoplay(){return this.hasAttribute(D.n.AUTOPLAY)}set autoplay(e){(0,_.j2)(this,D.n.AUTOPLAY,e)}get fullscreen(){return this.hasAttribute(D.n.FULLSCREEN)}get paused(){return this.hasAttribute(D.n.PAUSED)}get ended(){return this.hasAttribute(D.n.ENDED)}get casting(){return this.hasAttribute(D.n.CASTING)}get userIdleTimeout(){var e;let t="tv"===this.deviceType?5:2;return Number(null!=(e=this.getAttribute(D.n.USER_IDLE_TIMEOUT))?e:t)}set userIdleTimeout(e){e=Number(e),this.setAttribute(D.n.USER_IDLE_TIMEOUT,String(isNaN(e)?0:e))}get deviceType(){return this.getAttribute(D.n.DEVICE_TYPE)||"desktop"}get streamType(){return this.getAttribute(D.n.STREAM_TYPE)||"vod"}set streamType(e){this.setAttribute(D.n.STREAM_TYPE,e)}get dvrThreshold(){var e;return Number(null!=(e=this.getAttribute(D.n.DVR_THRESHOLD))?e:60)}set dvrThreshold(e){e=Number(e),this.setAttribute(D.n.DVR_THRESHOLD,String(isNaN(e)?0:e))}connectedCallback(){var e;v.cu(this),this._menuGroup instanceof m.rX||customElements.upgrade(this._menuGroup);let t=this.getAttribute(z);if(null!=t){let e=Number(t);this._setMaxLayerHeight(isNaN(e)?void 0:e)}else{let e=Math.min(window.innerHeight-this._calculatedTopPadding,j.z3);this._setMaxLayerHeight(e)}if(!this.hasAttribute(D.n.DEVICE_TYPE)){let e=(0,f.F)()?"mobile":(0,f.Z)()?"tv":"desktop";this.setAttribute(D.n.DEVICE_TYPE,e)}for(let e of(this.hasAttribute(D.n.PAUSED)||this.setAttribute(D.n.PAUSED,""),this.tryInitializePlayer_(),this._stateReceivers))this.propagateStateToReceiver_(e);M(this,this._playerEl,this.registerStateReceiver_),this._mutationObserver.observe(this,{childList:!0,subtree:!0}),this.shadowRoot.addEventListener("slotchange",this._onSlotChange),null==(e=this._resizeObserver)||e.observe(this),this._updateTextTrackMargins(),this._menuGroup.addEventListener(y,this._onCloseMenu),this._menuGroup.addEventListener(w,this._onMenuChange),void 0!==T&&(document.addEventListener(T.fullscreenchange_,this._onFullscreenChange),document.addEventListener(T.fullscreenerror_,this._onFullscreenChange),this._onFullscreenChange()),this.setUserIdle_(),"tv"===this.deviceType&&window.addEventListener("keydown",this._onTvKeyDown),this.addEventListener("keyup",this._onKeyUp),this.addEventListener("pointerup",this._onPointerUp),this.addEventListener("pointermove",this._onPointerMove),this.addEventListener("mouseleave",this._onMouseLeave)}tryInitializePlayer_(){void 0===this._player&&(void 0!==this._configuration.license||void 0!==this._configuration.licenseUrl)&&(this._player=new I.ChromelessPlayer(this._playerEl,this._configuration),this._source&&(this._player.source=this._source,this._source=void 0),this._player.muted=this.muted,this._player.autoplay=this.autoplay,this._updateAspectRatio(),this._updateError(),this._updatePausedAndEnded(),this._updateCasting(),this.addPlayerListeners_(this._player),this.propagatePlayerToAllReceivers_(),this.dispatchEvent((0,b.y)(P)))}disconnectedCallback(){var e;null==(e=this._resizeObserver)||e.disconnect(),this._mutationObserver.disconnect(),this.shadowRoot.removeEventListener("slotchange",this._onSlotChange),this._menuGroup.removeEventListener(y,this._onCloseMenu),this._menuGroup.removeEventListener(w,this._onMenuChange),void 0!==T&&(document.removeEventListener(T.fullscreenchange_,this._onFullscreenChange),document.removeEventListener(T.fullscreenerror_,this._onFullscreenChange)),window.removeEventListener("keydown",this._onTvKeyDown),this.removeEventListener("keyup",this._onKeyUp),this.removeEventListener("pointerup",this._onPointerUp),this.removeEventListener("click",this._onClickAfterPointerUp,!0),this.removeEventListener("pointermove",this._onPointerMove),this.removeEventListener("mouseleave",this._onMouseLeave),this._player&&(this.removePlayerListeners_(this._player),this._player.destroy(),this._player=void 0,this.propagatePlayerToAllReceivers_()),this._stateReceivers.length=0}attributeChangedCallback(e,t,n){if(n===t)return;if(e===z){let e=null!=n?Number(n):void 0;this._setMaxLayerHeight(isNaN(e)?void 0:e)}let r=null!=n;if(e===D.n.CONFIGURATION)this._setConfiguration(n?JSON.parse(n):{});else if(e===D.n.SOURCE)this._setSource(n?JSON.parse(n):void 0);else if(e===D.n.MUTED)this._player&&(this._player.muted=r);else if(e===D.n.AUTOPLAY)this._player&&(this._player.autoplay=r);else if(e===D.n.FULLSCREEN)for(let e of this._stateReceivers)e[S].indexOf("fullscreen")>=0&&(e.fullscreen=r);else if(e===D.n.DEVICE_TYPE)for(let e of((0,_.j2)(this,D.n.MOBILE,"mobile"===n),(0,_.j2)(this,D.n.TV,"tv"===n),window.removeEventListener("keydown",this._onTvKeyDown),"tv"===n&&window.addEventListener("keydown",this._onTvKeyDown),this._stateReceivers))e[S].indexOf("deviceType")>=0&&(e.deviceType=n);else if(e===D.n.STREAM_TYPE){for(let e of this._stateReceivers)e[S].indexOf("streamType")>=0&&(e.streamType=n);
1let e=(0,b.y)("theoplayerstreamtypechange",{bubbles:!0,composed:!0,detail:{streamType:n}});this.dispatchEvent(e)}else e===D.n.FLUID?this._updateAspectRatio():e===D.n.USER_IDLE||e===D.n.PAUSED||e===D.n.CASTING?this._updateTextTrackMargins():e===D.n.DVR_THRESHOLD&&this._updateStreamType();G.observedAttributes.indexOf(e)>=0&&v.MX(this)}propagateStateToReceiver_(e){let t=e[S];if(t.indexOf("player")>=0&&(e.player=this._player),t.indexOf("fullscreen")>=0&&(e.fullscreen=this.fullscreen),t.indexOf("deviceType")>=0&&(e.deviceType=this.deviceType),t.indexOf("streamType")>=0&&(e.streamType=this.streamType),void 0!==this._player){if(t.indexOf("playbackRate")>=0&&(e.playbackRate=this._player.playbackRate),t.indexOf("error")>=0&&(e.error=this._player.errorObject),t.indexOf("activeVideoQuality")>=0){var n;e.activeVideoQuality=null==(n=this._activeVideoTrack)?void 0:n.activeQuality}t.indexOf("targetVideoQualities")>=0&&(e.targetVideoQualities=R(this._activeVideoTrack))}t.indexOf("previewTime")>=0&&(e.previewTime=this._previewTime)}propagatePlayerToAllReceivers_(){for(let e of this._stateReceivers)e[S].indexOf("player")>=0&&(e.player=this._player)}removeStateFromReceiver_(e){e[S].indexOf("player")>=0&&(e.player=void 0)}openMenu_(e,t){let n=x.fromRect(this._topChromeEl.getBoundingClientRect()),r=x.fromRect(this._bottomChromeEl.getBoundingClientRect()),i=!0,s=!0;if(void 0!==t){let e=x.fromRect(this.getBoundingClientRect()),n=x.fromRect(t.getBoundingClientRect());e.width>0&&e.height>0&&(i=n.top>=e.top+e.height/2,s=n.left>=e.left+e.width/2)}this._menuGroup.openMenu(e,t),this._menuOpener=t;let a={"--theoplayer-menu-offset-top":"".concat(Math.round(n.height),"px"),"--theoplayer-menu-offset-bottom":"".concat(Math.round(r.height),"px"),"--theoplayer-menu-margin-top":i?"auto":"0","--theoplayer-menu-margin-bottom":i?"0":"auto","--theoplayer-menu-margin-left":s?"auto":"0","--theoplayer-menu-margin-right":s?"0":"auto"};v.MX(this,a)}closeMenu_(){var e,t,n;null==(e=(t=this._menuGroup).closeMenu)||e.call(t),null==(n=this._menuOpener)||n.focus(),this._menuOpener=void 0}isUserIdle_(){return this.hasAttribute(D.n.USER_IDLE)&&!this.paused&&!this.casting&&!this._menuGroup.hasCurrentMenu()}setUserActive_(){clearTimeout(this._userIdleTimer),this.removeAttribute(D.n.USER_IDLE)}isPlayerOrMedia_(e){return e===this||this._playerEl.contains(e)}addPlayerListeners_(e){var t,n,r;e.addEventListener("destroy",this._onDestroy),e.addEventListener("resize",this._updateAspectRatio),e.addEventListener(["error","sourcechange","emptied"],e=>{this._updateError()}),e.addEventListener("volumechange",this._updateMuted),e.addEventListener("play",this._onPlay),e.addEventListener("pause",this._onPause),e.addEventListener(["ended","emptied"],this._updatePausedAndEnded),e.addEventListener(["durationchange","sourcechange","emptied"],this._updateStreamType),e.addEventListener("ratechange",this._updatePlaybackRate),e.addEventListener("sourcechange",this._onSourceChange),e.addEventListener(["durationchange","sourcechange","emptied"],this._updatePlayingAd),null==(t=e.theoLive)||t.addEventListener("publicationloadstart",this._onSourceChange),e.videoTracks.addEventListener(["addtrack","removetrack","change"],this._updateActiveVideoTrack),null==(n=e.cast)||n.addEventListener("castingchange",this._updateCasting),null==(r=e.ads)||r.addEventListener(["adbreakbegin","adbreakend","adbegin","adend","adskip"],this._updatePlayingAd)}removePlayerListeners_(e){e.removeEventListener("destroy",this._onDestroy),e.removeEventListener("resize",this._updateAspectRatio),e.removeEventListener(["error","sourcechange","emptied"],this._updateError),e.removeEventListener("volumechange",this._updateMuted),e.removeEventListener("play",this._onPlay),e.removeEventListener("pause",this._onPause),e.removeEventListener(["ended","emptied"],this._updatePausedAndEnded),e.removeEventListener(["durationchange","sourcechange","emptied"],this._updateStreamType),e.removeEventListener("ratechange",this._updatePlaybackRate),e.removeEventListener("sourcechange",this._onSourceChange),e.removeEventListener(["durationchange","sourcechange","emptied"],this._updatePlayingAd);try{var t,n,r;null==(t=e.theoLive)||t.removeEventListener("publicationloadstart",this._onSourceChange),e.videoTracks.removeEventListener(["addtrack","removetrack","change"],this._updateActiveVideoTrack),null==(n=e.cast)||n.removeEventListener("castingchange",this._updateCasting),null==(r=e.ads)||r.removeEventListener(["adbreakbegin","adbreakend","adbegin","adend","adskip"],this._updatePlayingAd)}catch(e){}}constructor(e={}){super(),this._configuration={},this._pointerType="",this._lastPointerUpTime=0,this._stateReceivers=[],this._player=void 0,this._source=void 0,this._userIdleTimer=0,this._previewTime=NaN,this._activeVideoTrack=void 0,this._onMutation=e=>{for(let t of e)if("childList"===t.type){let{addedNodes:e,removedNodes:n}=t;
1for(let t=0;t<e.length;t++){let n=e[t];(0,_.vq)(n)&&M(n,this._playerEl,this.registerStateReceiver_)}for(let e=0;e<n.length;e++){let t=n[e];(0,_.vq)(t)&&M(t,this._playerEl,this.unregisterStateReceiver_)}}},this._onSlotChange=()=>{M(this,this._playerEl,this.registerStateReceiver_),this._updateTextTrackMargins()},this.registerStateReceiver_=e=>{this._stateReceivers.indexOf(e)>=0||(this._stateReceivers.push(e),this.propagateStateToReceiver_(e))},this.unregisterStateReceiver_=e=>{(0,_.C3)(this._stateReceivers,e)&&this.removeStateFromReceiver_(e)},this._onToggleMenu=e=>{e.stopPropagation();let t=e.detail.menu;if(!this._menuGroup.getMenuById(t))return void console.error('<theoplayer-ui>: cannot find menu with ID "'.concat(t,'"'));let n=(0,_.sb)(e.target)?e.target:void 0;this._menuGroup.isMenuOpen(t)?this.closeMenu_():(this.closeMenu_(),this.openMenu_(t,n))},this._onCloseMenu=e=>{e.stopPropagation(),this.closeMenu_()},this._onMenuChange=()=>{this._menuEl.removeEventListener("pointerdown",this._onMenuPointerDown),this._menuEl.removeEventListener("click",this._onMenuClick),this._menuGroup.hasCurrentMenu()?(this._menuEl.addEventListener("pointerdown",this._onMenuPointerDown),this._menuEl.addEventListener("click",this._onMenuClick),this.setAttribute(D.n.MENU_OPENED,"")):this.removeAttribute(D.n.MENU_OPENED)},this._onMenuPointerDown=e=>{this._pointerType=e.pointerType},this._onMenuClick=e=>{var t;let n=null!=(t=e.pointerType)?t:this._pointerType;e.target===this._menuEl&&"mouse"===n&&this._menuGroup.closeCurrentMenu()&&e.preventDefault()},this._onEnterFullscreen=e=>{if(e.stopPropagation(),T&&document[T.fullscreenEnabled_]&&this[T.requestFullscreen_]){let e=this[T.requestFullscreen_]();e&&e.then&&e.then(_.fZ,_.fZ)}else this._player&&this._player.presentation.supportsMode("fullscreen")&&this._player.presentation.requestMode("fullscreen")},this._onExitFullscreen=e=>{if(e.stopPropagation(),T){let e=document[T.exitFullscreen_]();e&&e.then&&e.then(_.fZ,_.fZ)}this._player&&"fullscreen"===this._player.presentation.currentMode&&this._player.presentation.requestMode("inline")},this._onFullscreenChange=()=>{let e=!1;if(void 0!==T){let t=document[T.fullscreenElement_];t&&(e=(0,_.qg)(t,this))}e||void 0===this._player||"fullscreen"!==this._player.presentation.currentMode||(e=!0),(0,_.j2)(this,D.n.FULLSCREEN,e)},this._updateAspectRatio=()=>{if(void 0===this._player)return;let{videoWidth:e,videoHeight:t}=this._player;e>0&&t>0?v.MX(this,{"--theoplayer-video-width":"".concat(e),"--theoplayer-video-height":"".concat(t)}):v.MX(this,{"--theoplayer-video-width":"","--theoplayer-video-height":""})},this._updateError=()=>{var e,t;let n=null==(e=this._player)?void 0:e.errorObject;for(let e of(n=void 0!==n&&(null==(t=this._player)?void 0:t.paused)?n:void 0,(0,_.j2)(this,D.n.HAS_ERROR,void 0!==n),this._stateReceivers))e[S].indexOf("error")>=0&&(e.error=n)},this._onPlay=()=>{this.setAttribute(D.n.HAS_FIRST_PLAY,""),this.removeAttribute(D.n.PAUSED),this._updateEnded()},this._onPause=()=>{this.setAttribute(D.n.PAUSED,""),this._updateEnded()},this._updatePausedAndEnded=()=>{let e=!this._player||this._player.paused;(0,_.j2)(this,D.n.PAUSED,e),this._updateEnded()},this._updateEnded=()=>{let e=!!this._player&&this._player.ended;(0,_.j2)(this,D.n.ENDED,e)},this._updateStreamType=()=>{let e;if(void 0===this._player)return;let t=this._player.duration;if(!isNaN(t)){if(t===1/0){e="live";let t=this.dvrThreshold,n=this._player.seekable;(t<=0||n.length>0&&n.end(n.length-1)-n.start(0)>=t)&&(e="dvr")}else e="vod";this.streamType=e}},this._updatePlaybackRate=()=>{if(void 0===this._player)return;let e=this._player.playbackRate;for(let t of this._stateReceivers)t[S].indexOf("playbackRate")>=0&&(t.playbackRate=e)},this._updateMuted=()=>{void 0!==this._player&&(this.muted=this._player.muted)},this._updateActiveVideoTrack=()=>{if(void 0===this._player)return;let e=(0,_.L9)(this._player.videoTracks,e=>e.enabled);if(this._activeVideoTrack!==e){var t,n,r,i;null==(t=this._activeVideoTrack)||t.removeEventListener("activequalitychanged",this._updateActiveVideoQuality),null==(n=this._activeVideoTrack)||n.removeEventListener("targetqualitychanged",this._updateTargetVideoQualities),this._activeVideoTrack=e,this._updateActiveVideoQuality(),this._updateTargetVideoQualities(),null==(r=this._activeVideoTrack)||r.addEventListener("activequal
1itychanged",this._updateActiveVideoQuality),null==(i=this._activeVideoTrack)||i.addEventListener("targetqualitychanged",this._updateTargetVideoQualities)}},this._updateActiveVideoQuality=()=>{var e;let t=null==(e=this._activeVideoTrack)?void 0:e.activeQuality;for(let e of this._stateReceivers)e[S].indexOf("activeVideoQuality")>=0&&(e.activeVideoQuality=t)},this._updateTargetVideoQualities=()=>{let e=R(this._activeVideoTrack);for(let t of this._stateReceivers)t[S].indexOf("targetVideoQualities")>=0&&(t.targetVideoQualities=e)},this._updateCasting=()=>{var e,t,n;let r=null!=(n=null==(t=this._player)||null==(e=t.cast)?void 0:e.casting)&&n;(0,_.j2)(this,D.n.CASTING,r)},this._updatePlayingAd=()=>{var e,t,n;let r=null!=(n=null==(t=this._player)||null==(e=t.ads)?void 0:e.playing)&&n;(0,_.j2)(this,D.n.PLAYING_AD,r)},this._onSourceChange=()=>{this.closeMenu_();let e=void 0!==this._player&&!this._player.paused;(0,_.j2)(this,D.n.HAS_FIRST_PLAY,e)},this.setUserIdle_=()=>{if(clearTimeout(this._userIdleTimer),this._userIdleTimer=0,!(this.userIdleTimeout<0)&&(this.setAttribute(D.n.USER_IDLE,""),"tv"==this.deviceType&&this.isUserIdle_())){let e=k();null!==e&&e.blur()}},this.scheduleUserIdle_=()=>{if(this.setUserActive_(),clearTimeout(this._userIdleTimer),this.userIdleTimeout<0){this._userIdleTimer=0;return}this._userIdleTimer=setTimeout(this.setUserIdle_,1e3*this.userIdleTimeout)},this._onTvKeyDown=e=>{if((0,L.Nw)(e.keyCode))return void this.setUserIdle_();let t=(0,_.Ow)(this),n=(0,_.qd)(this),r=k();if(!r){let e=null!=t?t:n;e.length>0&&(e[0].focus(),r=e[0])}!this.isUserIdle_()&&(e.keyCode===L.DD.ENTER?void 0!==this._player&&null!==r&&r.click():(0,L.Pn)(e.keyCode)&&function(e,t,n){let r,i=k();if(null===i)return!1;let s=x.fromRect(e.getBoundingClientRect()).snapToPixels(),a=x.fromRect(i.getBoundingClientRect()).snapToPixels(),o=t.map(e=>({child:e,rect:x.fromRect(e.getBoundingClientRect()).snapToPixels()})).filter(e=>e.rect.width>0&&e.rect.height>0);if(n===L.DD.LEFT||n===L.DD.RIGHT){let e=a.clone();n===L.DD.LEFT?(e.left=s.left,e.width=a.left-s.left):(e.left=a.right,e.width=s.right-a.right),0===(r=o.filter(t=>e.overlaps(t.rect))).length&&(e.top=s.top,e.height=s.height,r=o.filter(t=>e.overlaps(t.rect)))}else{let e=a.clone();n===L.DD.UP?(e.top=s.top,e.height=a.top-s.top):(e.top=a.bottom,e.height=s.bottom-a.bottom),0===(r=o.filter(t=>e.overlaps(t.rect))).length&&(e.left=s.left,e.width=s.width,r=o.filter(t=>e.overlaps(t.rect)))}let l=(0,_.in)(r,e=>{var t,n;let r;return t=e.rect,n=a,r=0,t.right<n.left?r+=n.left-t.right:n.right<t.left&&(r+=t.left-n.right),t.bottom<n.top?r+=n.top-t.bottom:n.bottom<t.top&&(r+=t.top-n.bottom),r});return void 0!==l&&(l.child.focus(),!0)}(this,n,e.keyCode)&&(e.preventDefault(),e.stopPropagation()))},this._onKeyUp=e=>{(0,L.Nw)(e.keyCode)||this.scheduleUserIdle_()},this._onPointerUp=e=>{"touch"===e.pointerType&&(this.isPlayerOrMedia_(e.target)&&!this.hasAttribute(D.n.USER_IDLE)?this.setUserIdle_():(this.isUserIdle_()&&(this._lastPointerUpTime=performance.now(),this.addEventListener("click",this._onClickAfterPointerUp,!0)),this.scheduleUserIdle_()))},this._onClickAfterPointerUp=e=>{this.removeEventListener("click",this._onClickAfterPointerUp,!0),performance.now()-this._lastPointerUpTime<10&&(e.preventDefault(),e.stopPropagation())},this._onPointerMove=e=>{"mouse"===e.pointerType&&(this.setUserActive_(),this.isPlayerOrMedia_(e.target)&&this.scheduleUserIdle_())},this._onMouseLeave=()=>{this.setUserIdle_()},this._onChromeSlotTransition=e=>{"opacity"===e.propertyName&&this._updateTextTrackMargins()},this._updateTextTrackMargins=()=>{let e=this._player;if(void 0===e)return;let t=Q(this._topChromeSlot),n=Q(this._bottomChromeSlot);e.textTrackStyle.marginTop=null==t?void 0:t.height,e.textTrackStyle.marginBottom=null==n?void 0:n.height},this._onPreviewTimeChange=e=>{for(let t of(this._previewTime=e.detail.previewTime,this._stateReceivers))t[S].indexOf("previewTime")>=0&&(t.previewTime=this._previewTime)},this._onDestroy=()=>{this._player&&(this.removePlayerListeners_(this._player),this._player=void 0,this.propagatePlayerToAllReceivers_())};let t=this.attachShadow({mode:"open",delegatesFocus:!0});t.appendChild(q().content.cloneNode(!0)),this._configuration=e,this._playerEl=t.querySelector('[part~="media-layer"]'),this._menuEl=t.querySelector('[part~="menu-layer"]'),this._menuGroup=t.querySelector("theoplayer-menu-group"),this._topChromeEl=t.querySelector('[part~="top"]'),this._topChromeSlot=t.querySelector('slot[name="top-chrome"]'),this._bottomChromeEl=t.querySelector('[part~="bottom"]'),this._bottomChromeSlot=t.querySelector("slot:not([name])"),this._mutationObserver=new MutationObserver(this._onMutation),"undefined"!=typeof ResizeObserver&&(this._resizeObserver=new ResizeObserver(this._updateTextTrackMargins)),t.addEventListener("theoplayermenutoggle",this._onToggleMenu),t.addEventListener(g.A,this._onEnterFullscreen),t.addEventListener(E.m,this._onExitFullscreen),t.addEventListener(C.n,this._onPreviewTimeChange),this._topChromeSlot.addEventListener("transitionstart",this._onChromeSlotTransition),this._topChromeSlot.addEventListener("transitionend",this._onChromeSlotTransition),this._bottomChromeSlot.addEventListener("transitionstart",this._onChromeSlotTransition),this._bottomChromeSlot.addEventListener("transitionend",this._onChromeSlotTransition),this._calculatedTopPadding=0,this._upgradeProperty("configuration"),this._upgradeProperty("source"),this._upgradeProperty("fluid"),this._upgradeProperty("calculatedTopPadding"),this._upgradeProperty("muted"),this._upgradeProperty("autoplay"),this._upgradeProperty("userIdleTimeout"),this._upgradeProperty("streamType"),this.tryInitializePlayer_()}}function Q(e){let t;for(let n of(0,_.jf)(e).filter(_.sb))if("0"!==getComputedStyle(n).opacity){let e=x.fromRect(n.getBoundingClientRect());e.width>0&&e.height>0&&(t=t?t.union(e):e)}return t}G.READY_EVENT=P,customElements.define(V,G);let Y=(0,p.a)({tagName:V,displayName:"UIContainer",elementClass:m.Wt,react:s,events:{onReady:"theoplayerready"}}),H=e=>{let{topChrome:t,middleChrome:n,bottomChrome:s,centeredChrome:a,centeredLoading:o,menu:h,error:d,onReady:u,...c}=e,[p,m]=(0,i.useState)(null),v=function(e,t){let n=(0,i.useCallback)(t=>(null==e||e.addEventListener("theoplayerready",t),()=>null==e?void 0:e.removeEventListener("theoplayerready",t)),[e]),r=(0,i.useSyncExternalStore)(n,()=>null==e?void 0:e.player,()=>void 0);return(0,i.useEffect)(()=>{r&&(null==t||t(r))},[r,t]),r}(p,u);return(0,r.jsx)(Y,{...c,ref:m,children:(0,r.jsxs)(l.TI.Provider,{value:v,children:[t&&(0,r.jsx)(l.qk,{slot:"top-chrome",children:t}),n&&(0,r.jsx)(l.qk,{slot:"middle-chrome",children:n}),a&&(0,r.jsx)(l.qk,{slot:"centered-chrome",children:a}),o&&(0,r.jsx)(l.qk,{slot:"centered-loading",children:o}),s,h&&(0,r.jsx)(l.qk,{slot:"menu",children:h}),d&&(0,r.jsx)(l.qk,{slot:"error",children:d})]})})};var K=n(89459),W=n(77718),B=n(15190);function Z(e){let{playerRef:t,handleError:n,isSmallPlayer:s,resumeTimer:a,pauseTimer:o,trackPlayerCallback:h,trackChromecastStartedCallback:d,trackAirplayStartedCallback:u}=e,c=(0,i.useContext)(l.TI),p=(0,i.useRef)(!1);return(0,i.useEffect)(()=>()=>{try{null==c||c.destroy()}catch(e){}},[]),(0,i.useEffect)(()=>{c&&(t.current=c)},[c]),(0,i.useEffect)(()=>
1{if(c&&!p.current){var e;c.addEventListener("error",e=>{let t=c.duration!==1/0;(0,B.r_)(e,n,t)}),c.addEventListener("loadedmetadata",()=>{h(),(0,B.Kr)(c)}),c.addEventListener("play",a),c.addEventListener("play",()=>{let e=document.querySelector("ballys-ui");null==e||e.removeAttribute("has-error")}),null==c||c.cast.chromecast.addEventListener("statechange",e=>{"connected"===e.state&&d(c.cast.chromecast.receiverName)}),null==c||null==(e=c.cast.airplay)||e.addEventListener("statechange",e=>{"connected"===e.state&&d("")}),c.addEventListener("pause",o),c.prepareWithUserAction(),(0,B.gP)(s,c),p.current=!0}},[c,n,s,o,a,h,d]),(0,r.jsx)(r.Fragment,{})}var X=n(43447),J=n(25595),$=n(54599);function ee(e){let{programs:t}=e,n=(0,i.useContext)(l.TI),r=(0,i.useRef)(null);null===r.current&&(r.current=(0,J.U_)());let s=r.current;return(0,i.useEffect)(()=>{if(!s||!n)return;let e=!1,r=()=>{var i;if(e||(null==(i=n.ads)?void 0:i.playing))return;let s=function(e,t){if(0===t.length||0===e.seekable.length)return null;let n=(0,$.l$)(t),r=n===B.qG?void 0:t[n];return r?Math.max(e.seekable.start(0),e.seekable.end(0)-(0,B.gC)(r)):null}(n,t);null!==s&&(e=!0,n.removeEventListener("timeupdate",r),n.currentTime=s)};return n.addEventListener("timeupdate",r),r(),()=>{e=!0,n.removeEventListener("timeupdate",r)}},[n,t,s]),null}var et=n(46805),en=n(96796),er=n(6741),ei=n(99487);function es(){return(0,r.jsx)("div",{className:"flex-1"})}let ea={libraryLocation:"/vendor/theoplayer/",license:"sZP7IYe6T6Pg0lbt3LBt36ke0QhLFSarTuC-TD4gTmkKIuRcCDIKIKPeIDC6FOPlUY3zWokgbgjNIOf9fK3KTu1lCL0cFSR_0La-3QPeCmzr0KI1FSRrTuaoCKxK3QP1CmfVfK4_bQgZCYxNWoryIQXzImf90SbZ0l0L0LCi0u5i0Oi6Io4pIYP1UQgqWgjeCYxgflEc3lRr0ubkTu5i3SetFOPeWok1dDrLYtA1Ioh6TgV6v6fVfKcqCoXVdQjLUOfVfGxEIDjiWQXrIYfpCoj-fgzVfKxqWDXNWG3ybojkbK3gflNWf6E6FOPVWo31WQ1qbta6FOPzdQ4qbQc1sD4ZFK3qWmPUFOPLIQ-LflNWfK1zWDikfgzVfG3gWKxydDkibK4LbogqW6f9UwPkImi6IK41Uw4ZIY06Tg-Uya",allowNativeFullscreen:!0,ads:{googleIma:{useAdUiElementForSsai:!0}}},eo=j.oe+j.R2+j.ph+28,el=j.oe+24;function eh(e){var t;let{source:n,playerRef:s,handleError:a,resumeTimer:p,pauseTimer:m,isSmallPlayer:v,shouldRenderMuted:y,controlsRef:_,offsetRef:g,isMilbZone:f=!1,hideControls:b=!1}=e,E=(0,i.useRef)(!1),T="vod"===n.streamType,[x,L]=(0,i.useState)(!1),[k,w]=(0,i.useState)(void 0),[C,P]=(0,i.useState)(0),[R,S]=(0,i.useState)(f?eo:el),A=(0,i.useRef)(!1),M=(0,i.useRef)({video_id:"",video_title:"",video_player_type:et.Cc.LINEAR,video_player_mode:et.hR.NORMAL,organization:""}),{track:N,isInitialized:U}=(0,en.T)();(0,i.useEffect)(()=>{let e=f?et.Cc.GAME:et.Cc.LINEAR,t=f?et.yb.MILB:"";M.current={video_id:n.metadata.mux.video_id?n.metadata.mux.video_id:"",video_title:n.metadata.mux.video_title?n.metadata.mux.video_title:"",video_player_type:e,video_player_mode:O(),organization:t}},[f,n]);let O=()=>document.fullscreenElement?et.hR.FULL_SCREEN:et.hR.NORMAL;(0,i.useEffect)(()=>{let e=(0,B.vR)(n);w(n.programs),e?L(!0):L(!1)},[n]);let F=(0,i.useCallback)(()=>{""!==M.current.video_id&&U()&&N("Viewing Mode Set",M.current)},[N,M,U]),j=(0,i.useCallback)(e=>{N("Cast Launched",{cast_connected_device:e})},[N]),V=(0,i.useCallback)(()=>{N("Cast Launched",{cast_connected_device:""})},[N]);return(0,i.useEffect)(()=>{},[C]),(0,i.useEffect)(()=>{function e(){""!==M.current.video_id&&(M.current.video_player_mode=O(),N("Viewing Mode Set",M.current))}return document.addEventListener("fullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e)}},[N,M]),(0,i.useEffect)(()=>{let e=document.getElementById("video-settings-button");if(!e)return;let t=()=>{A.current=!A.current,""!==M.current.video_id&&A.current&&N("Video Settings Drawer Viewed",M.current)};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}},[N,M]),(0,r.jsx)(H,{className:"webui-wrapper relative flex w-full flex-col items-center justify-center",style:function(e){if(e)return{"--theoplayer-control-backdrop-background":"transparent"}}(b),muted:y,autoplay:!0,streamType:null!=(t=n.streamType)?t:D.n.LIVE,configuration:ea,fluid:!1,source:n,onReady:e=>{E.current||(E.current=!0,o()(e,{debug:!1,data:{env_key:"f9ja1dqa716h5det7g2tcg0re",...n.metadata}},I))},calculatedTopPadding:R,centeredLoading:(0,r.jsx)(X.A,{}),topChrome:b?void 0:(0,r.jsxs)(l.hf,{className:"px-3 pt-3",children:[(0,r.jsx)(W.A,{}),(0,r.jsx)(l.Yi,{}),(0,r.jsx)(l.RT,{})]}),bottomChrome:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Z,{playerRef:s,handleError:a,resumeTimer:p,pauseTimer:m,isSmallPlayer:v,trackPlayerCallback:F,trackChromecastStartedCallback:j,trackAirplayStartedCallback:V}),(0,r.jsx)(ee,{programs:null!=k?k:[]}),b?null:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.hf,{className:"".concat(x&&k?"dvr-mode":""," dvr-wrapper inline-flex translate-y-5"),children:x&&k&&(0,r.jsx)(c.A,{className:"size-full",programData:k,offsetRef:g,vod:T})}),(0,r.jsxs)(l.hf,{ref:_,"tooltip-bottom":"120%",className:"".concat(x&&k?"dvr-mode":""," bottom-chrome-wrapper px-3 pb-3 text-white"),children:[(0,r.jsx)(u.A,{className:"apollo-play apollo-control-button"}),(0,r.jsx)(d.A,{className:"apollo-control-button"}),(0,r.jsx)(K.A,{className:"apollo-volume-range h-[48px]"}),x&&k&&(0,r.jsxs)("span",{className:"hidden tabletLandscape:inline-flex",children:[!T&&(0,r.jsx)(er.A,{className:"hidden font-bally tabletLandscape:inline-flex"}),(0,r.jsx)(ei.A,{className:"hidden font-bally tabletLandscape:inline-flex",programData:k,vod:T})]}),(0,r.jsx)(es,{}),(0,r.jsx)(l.Dq,{"data-tooltip":"Settings",menu:"settings-menu",className:"apollo-control-button",id:"video-settings-button"}),(0,r.jsx)(l.aS,{"data-tooltip":"Subtitles",menu:"language-menu",className:"apollo-control-button"}),(0,r.jsx)(l.P$,{}),(0,r.jsx)(l.GC,{onClick:()=>{N("Cast Picker Viewed",{device_type:"Chromecast"})}}),(0,r.jsx)(h.A,{className:"apollo-control-button fullscreen"})]}),(0,r.jsx)(l.Jp,{id:"settings-menu",slot:"menu"}),(0,r.jsx)(l.oP,{id:"language-menu",slot:"menu"})]})]})})}},77718:(e,t,n)=>{n.d(t,{A:()=>d});var r=n(95155),i=n(12115),s=n(20063),a=n(41407),o=n(6172),l=n(58561),h=n(37491);function d(){return(0,h.q)()?(0,r.jsx)(u,{}):null}function u(){let e=(0,s.useRouter)(),t=(0,s.usePathname)(),n=function(){let[e,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{function e(){t(null!==document.querySelector("ballys-ui[fullscreen]"))}e();let n=new MutationObserver(e);return n.observe(document.documentElement,{subtree:!0,attributes:!0,attributeFilter:["fullscreen"]}),document.addEventListener("fullscreenchange",e),document.addEventListener("webkitfullscreenchange",e),()=>{n.disconnect(),document.removeEventListener("fullscreenchange",e),document.removeEventListener("webkitfullscreenchange",e)}},[]),e}(),h=(0,a.I)(),d=(0,i.useCallback)(()=>{e.push(!function(e){if(null===e)return!1;let t="".concat(l.JZ.watch,"/milb");return e===t||e.startsWith("".concat(t,"/"))}(t)?l.JZ.home:l.JZ.milb)},[t,e]);return n?null:(0,r.jsx)("button",{type:"button",onClick:d,"aria-label":"Go back",className:"group -m-0.5 flex size-11 items-center justify-center rounded-full",children:(0,r.jsx)("span",{className:"flex size-10 items-center justify-center rounded-full bg-black/55 text-white shadow-[0_2px_10px_rgba(0,0,0,0.45)] backdrop-blur-md transition-[transform,background-color] duration-150 group-hover:bg-black/70 ".concat(h?"":"group-active:scale-95"),children:(0,r.jsx)(o.nrF,{"aria-hidden":"true",className:"size-[22px]"})})})}}}]);
2//# sourceMappingURL=5408.479eabd0ebed99e2.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.