1(()=>{(function(){try{var l=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{},c=new l.Error().stack;c&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[c]="44a57ad2-5e1a-49b3-bcda-204010c7e1fc",l._sentryDebugIdIdentifier="sentry-dbid-44a57ad2-5e1a-49b3-bcda-204010c7e1fc")}catch(t){}})();(self.webpackChunkdice_web=self.webpackChunkdice_web||[]).push([[44640],{23864:((l,c,t)=>{t.r(c),t.d(c,{default:()=>z});var a=t(96540),X=t(76213),h=t(68407),E=t(33559),x=t(87991),L=t(59530),A=t(23127),H=t(96829),N=t(57611),b=t(2275),O=t(71342);const K={colorRed:"#b60e0e",textSecondaryDarkMode:"#c5cad3",alertDarkMode:"#ff6b6b",textDarkModeColor:"#fff",darkGreyDarkModeColor:"#2a2a2a"},P=()=>{const r=document.createElement("link");r.href="https://dfl-sdk.s3.eu-central-1.amazonaws.com/web/latest/static/css/main.css",r.rel="stylesheet",document.head.appendChild(r)},z=({isActive:r})=>{var p,V;const{externalId:k,ready:C,type:I,controls:{on:F,off:j,seekTo:g}}=(0,H.KQ)(),{duration:m,seekable:y}=(0,x.p)(),B=(0,N.W)(),{routes:J}=a.useContext(L.P),U=a.useRef(m),d=a.useRef(y),w=a.useRef(null),{eventId:D}=(0,X.g)();a.useEffect(()=>{U.current=m,d.current=y},[m,y]);let M;const R=I===h.R6.LIVE||I===h.R6.LIVE_EVENT,i=()=>window.tvx,W=()=>{i().initializeTVX({takerId:"HaszJd",videoPlayerId:"tvx-player",appMode:"live",languageUIDefault:"JP",showVideoControls:!0,showTimeline:!0,showSpoilerMode:!0,showGoLive:!1,showEvents:!0,skipForward:15,skipBackwards:15,videoControlsPlayPause:!1,videoControlsFullscreen:!1,videoControlsSound:!1,videoControlsScreencast:!1,videoControlsAirplay:!1,moreMenu:!1,moreMenuAudioSettings:!1,moreMenuVideoSettings:!1,moreMenuOnboarding:!1,menuEntryLineupsAverage:!0})};function G(n,e){var o;switch(n){case"onReady":console.log("TVX: EVENT",n,e);break;case"onMatchesAvailable":const s=(o=e.detail)==null?void 0:o.find(u=>(u==null?void 0:u.customMetadata)===(D==null?void 0:D.toString()));console.log("TVX: EVENT",n,e,{match:s}),s!=null&&s.matchId&&(i().prepareMatch(s.matchId),setTimeout(()=>{i().initializeUI()},1e3));break;case"error":console.error("TVX: EVENT ERROR",n,e);break;case"matchSwitched":console.log({matchSwitched:e,current:i().getCurrentMatch()});break;case"onSeeked":console.log("TVX: seek",d.current.start,e.detail),typeof e.detail=="number"?g(d.current.start+e.detail):g(d.current.end);break;case"playNextHighlight":case"playPreviousHighlight":case"seekToHighlight":console.log("TVX: seek to highlight",d.current.start,e.detail),g(d.current.start+e.detail.tcIn);break;default:console.log("TVX: EVENT UNHANDLED: ",n,e)}}const S=a.useCallback(()=>{console.log("TVX: Loaded video data");const e=document.getElementById(A.DD).querySelector("video");if(!e){console.log("TVX: video not loaded");return}console.log("TVX: setting up handlers"),e.id="tvx-player";const o=document.createElement("div");o.id="tvx-root",document.querySelector(".dice-player-background").appendChild(o),["onReady","onMatchesAvailable","matchSwitched","seekToHighlight","onSeeked"].forEach(f=>o.addEventListener(f,v=>{G(f,v)})),P(),(0,b.jc)("https://dfl-sdk.s3.eu-central-1.amazonaws.com/web/latest/static/js/main.js");const u=function(f,v){window[f]?v():M=setTimeout(function(){console.log("TVX: Waiting for TVXRay ..."),u(f,v)},100)};u("tvx",W)},[]);a.useEffect(()=>{if(C&&R)return F(E.w.LOADED_DATA,S),()=>{j(E.w.LOADED_DATA,S),clearTimeout(M)}},[C,R]),a.useEffect(()=>{const n=document.getElementById("tvx-root"),e=document.querySelector(".menu-shadow"),o=!!document.querySelector(".onboarding-main-container"),s=e&&e.classList.contains("visible");n&&(n.className=r||s||o?"overlay-item--visible":"overlay-item--hidden")},[r]),a.useEffect(()=>{},[k]);const T=(V=(p=i())==null?void 0:p.getCurrentMatch())==null?void 0:V.matchId;return a.useEffect(()=>{var n,e;if(T){if(w.current){const o=(e=(n=i())==null?void 0:n.getCurrentMatch())==null?void 0:e.customMetadata;if(!o){console.log("TVX: Cannot link to event. Missing ID");return}(0,b.mH)((0,O.gk)(h.OF.LIVE,J,{id:o}),B)}w.current=T}},[T]),null}})}]);})(); 2 3//# sourceMappingURL=sptv.84d8e37cfd6dbd170132.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.