PageSourceSearch

https://www.bandyplay.se/commons-7e4d15bd.120439169c686c18ea73.chunk.js

js bandyplay.se collected 2026-09-25 06:46:36 UTC 31,355 bytes, 74 lines download raw bytes

1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f4cb7c4c-0b0a-49cc-a1ab-37e68067a040",e._sentryDebugIdIdentifier="sentry-dbid-f4cb7c4c-0b0a-49cc-a1ab-37e68067a040")}()}catch(e){}!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"d90ac16e0aec0a5eeda665985099a5735ab0bd5b"}}catch(e){}}(),(self.webpackChunkstaylive_partnerplatform=self.webpackChunkstaylive_partnerplatform||[]).push([[1268],{4870:(e,t,r)=>{r.r(t),r.d(t,{default:()=>b});var s=r(74848),n=(r(96540),r(24100)),o=r(26840),i=r(5556),l=r.n(i),a=r(67438),d=r(7444),c=Object.defineProperty,u=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,f=(e,t,r)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>{for(var r in t||(t={}))p.call(t,r)&&f(e,r,t[r]);if(u)for(var r of u(t))m.call(t,r)&&f(e,r,t[r]);return e};function h({start:e}){return new Date((0,n.u4)(e))<new Date?(0,s.jsx)("span",{children:(0,s.jsx)(a.A,x({},d.default.ongoing))}):(0,s.jsx)(o.default,{date:e,time:!1})}h.propTypes={start:l().string};const b=h},7444:(e,t,r)=>{r.r(t),r.d(t,{default:()=>o,scope:()=>n});var s=r(11164);const n="app.components.IsOngoing",o=(0,s.YK)({ongoing:{id:`${n}.ongoing`,defaultMessage:"Ongoing"}})},8376:(e,t,r)=>{r.r(t),r.d(t,{default:()=>c});var s=r(74848),n=r(96540),o=r(5556),i=r.n(o),l=r(88100),a=r(78210);function d(e){const t=(0,n.useRef)(),r=(0,a.Pd)(t,"0px"),[o,i]=(0,n.useState)(!1),d=(0,n.useCallback)((()=>{if(!o){const t=window.lwhble||{cmd:[]};window.innerWidth<980?t.cmd.push((()=>{t.loadAd({tagId:e.small.tagId})})):t.cmd.push((()=>{t.loadAd({tagId:e.large.tagId})})),i(!0)}}),[o,e.large.tagId,e.small.tagId]);return(0,n.useEffect)((()=>{const t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("script");r.type="text/javascript",r.async=!1,r.src="https://lwadm.com/lw/pbjs?pid=537f4767-b611-431a-9db4-57ba7d5bba76",t.insertBefore(r,t.firstChild),r.addEventListener("load",(()=>{e.lazyload||d()}))}),[d,e.lazyload]),(0,n.useEffect)((()=>{e.lazyload&&r&&!o&&d()}),[r,d,e,o]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(l.A,{minWidth:e.large.width,children:(0,s.jsx)("div",{id:e.large.tagId,ref:t,style:{textAlign:"center"}})}),(0,s.jsx)(l.A,{maxWidth:e.large.width,children:(0,s.jsx)("div",{id:e.small.tagId,ref:t,style:{textAlign:"center"}})})]})}d.propTypes={large:i().object,small:i().object,lazyload:i().bool},d.defaultProps={lazyload:!1};const c=d},71570:(e,t,r)=>{r.r(t),r.d(t,{default:()=>b});var s=r(74848),n=(r(96540),r(12870)),o=r(84976),i=r(5556),l=r.n(i),a=Object.defineProperty,d=Object.defineProperties,c=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,f=(e,t,r)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>{for(var r in t||(t={}))p.call(t,r)&&f(e,r,t[r]);if(u)for(var r of u(t))m.call(t,r)&&f(e,r,t[r]);return e};function h(e){return e.href?(0,s.jsx)(n.A,(t=x({},e),r={to:e.href,as:o.N_},d(t,c(r)))):(0,s.jsx)(n.A,x({},e));var t,r}h.propTypes={href:l().string,history:l().object};const b=h},71906:(e,t,r)=>{r.r(t),r.d(t,{Description:()=>W,LabelContainer:()=>M,SubHeader:()=>V,Title:()=>$,default:()=>U});var s=r(74848),n=(r(96540),r(47767)),o=r(84976),i=r(5556),l=r.n(i),a=r(38267),d=r(24100),c=r(21535),u=r(23114),p=r(67438),m=r(60404),f=r(12870),x=r(14294),h=r(23615),b=r(35907),g=r(73574),y=r(64011),w=r(68074),v=r(896),j=r(68087),C=r(68841),A=r(29236),k=r(7399),_=r(13248),N=r(22875),I=r(94686),S=r(39522),T=r(2890),R=Object.defineProperty,P=Object.defineProperties,z=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,O=Object.prototype.hasOwnProperty,D=Object.prototype.propertyIsEnumerable,B=(e,t,r)=>t in e?R(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,F=(e,t)=>{for(var r in t||(t={}))O.call(t,r)&&B(e,r,t[r]);if(E)for(var r of E(t))D.call(t,r)&&B(e,r,t[r]);return e},q=(e,t)=>
1P(e,z(t));const M=a.Ay.span`
2  position: relative;
3  margin-left: 12px;
4  display: inline-block;
5
6  @media screen and (max-width: 390px) {
7    display: block;
8    width: auto;
9    margin-left: 0;
10    margin: 10px auto 0 auto;
11  }
12
13  span:first-child {
14    border-radius: 2px;
15    padding: 4px 14px 4px 14px;
16    border: 1px solid white;
17    color: white;
18    font-size: 0.7em;
19    font-weight: 100;
20  }
21`,L=(0,a.Ay)(f.A)`
22  padding: 10px 10px !important;
23  box-shadow: none !important;
24  width: 320px;
25  max-width: 98% !important;
26  text-align: center;
27  margin-left: 0 !important;
28  font-size: 1.1em !important;
29
30  &.livestream-player-second-button {
31    margin-top: 10px !important;
32    padding: 8px 8px !important;
33  }
34
35  @media screen and (min-width: 820px) {
36    font-size: 1.4em !important;
37    padding: 10px 0 !important;
38
39    &.livestream-player-second-button {
40      margin-left: 10px !important;
41      margin-top: 0px !important;
42      padding: 8px 0px !important;
43    }
44  }
45`,$=(0,a.Ay)(x.A)`
46  color: white !important;
47  font-size: 2em !important;
48
49  @media screen and (min-width: 1200px) {
50    font-size: 3.5em !important;
51  }
52`,W=(0,a.Ay)(w.default)`
53  color: white !important;
54  margin-top: 10px;
55  max-width: 700px;
56  text-align: left;
57`,V=a.Ay.span`
58  color: white !important;
59  font-size: 1.2em !important;
60
61  @media screen and (min-width: 1200px) {
62    font-size: 1.5em !important;
63  }
64`;function H(e){const{loading:t,livestream:r}=e,i=(0,n.Zp)(),{user:l,verifiedlabels:a,subscriptionbutton:f,ppvbutton:R,shadow:P,proceed:z,pressPlay:E,disableSubscriptions:O=!1,useNewCheckout:D=!1,header:B={}}=e,$=(0,m.zh)({to:{opacity:1,top:"0px"},from:{opacity:0,top:"200px"}}),H=!r.playback_url,U=!l,Y=r.geo_restricted&&!r.geo_restricted.allowed,K=new Date((0,d.u4)(r.end)).getTime()<new Date((new Date).getTime()-36e5).getTime(),G=new Date((0,d.u4)(r.start)).getTime()<(new Date).getTime(),Z=r.subscription&&r.subscription.general_access.length?r.subscription.general_access.map((e=>e.id)).toString():"";return(0,c.R)("[[LivestreamPlayer]]","loggedIn",!U),(0,c.R)("[[LivestreamPlayer]]","geoBlocked",Y),(0,c.R)("[[LivestreamPlayer]]","hasEnded",K),t?(0,s.jsx)(I.default,{color:P.color,children:(0,s.jsx)(h.A,{verticalAlign:"middle",style:{height:"100%"},children:(0,s.jsx)(h.A.Row,{children:(0,s.jsx)(h.A.Column,{children:(0,s.jsx)(y.default,{inverted:!0})})})})}):(0,s.jsx)(I.default,{color:P.color,image:r.thumbnail,children:(0,s.jsx)(h.A,{verticalAlign:"bottom",style:{minHeight:"88vh",paddingTop:"120px"},children:(0,s.jsx)(h.A.Row,{children:(0,s.jsx)(h.A.Column,{children:(0,s.jsx)(m.CS.div,{style:q(F({},$),{height:"100%"}),config:{delay:300},children:(0,s.jsxs)(h.A,{style:{width:"2100px",maxWidth:"95%",margin:"0 auto"},children:[(0,s.jsx)(h.A.Row,{textAlign:"center",style:{padding:"0",margin:"0 auto"},children:(0,s.jsxs)(h.A.Column,{children:[!G&&!K&&(0,s.jsx)(x.A,{style:{color:"white"},size:"huge",children:(0,s.jsx)(v.default,{date:(0,d.u4)(r.start)})}),G&&!H&&!K&&!Y&&(0,s.jsx)(j.default,{onClick:()=>E()})]})}),(0,s.jsx)(h.A.Row,{only:"large screen"}),(0,s.jsx)(h.A.Row,{only:"large screen"}),(0,s.jsx)(h.A.Row,{}),(0,s.jsx)(h.A.Row,{}),(0,s.jsx)(h.A.Row,{children:(0,s.jsx)(h.A.Column,{children:(0,s.jsx)(w.default,{as:"h1",style:B,children:r.name})})}),(0,s.jsx)(h.A.Row,{style:{padding:"0 0 10px",margin:"0 auto"},children:(0,s.jsxs)(h.A.Column,{verticalAlign:"middle",className:"styledText",children:[(0,s.jsx)(V,{style:{cursor:"pointer"},onClick:()=>i(`/tournament?name=${r.channelPath}`),children:r.channelName}),(0,s.jsx)("strong",{style:{padding:"0 8px",fontSize:"26px"},children:"·"}),(0,s.jsxs)(V,{children:[(0,s.jsxs)("strong",{children:[(0,s.jsx)(C.default,{date:r.start}),(0,s.jsx)("span",{style:{padding:"0 8px",fontSize:"26px"},children:"·"}),!K&&(0,s.jsx)(A.default,{bold:!1,date:r.start})]}),a.active&&(0,s.jsx)(M,{children:(0,s.jsxs)("span",{children:[(0,s.jsx)(b.A,{name:r.verified?a.verified.icon:a.notverified.icon}),r.verified?(0,s.jsx)(u.default,{text:a.verified.name}):(0,s.jsx)(u.default,{text:a.notverified.name})]})})]})]})}),(0,s.jsx)(h.A.Row,{children:(0,s.jsxs)(h.A.Column,{children:[!K&&!Y&&(0,s.jsxs)(s.Fragment,{children:[!H&&G&&(0,s.jsx)(L,{style:F({color:"white",background:"#FF1A5A"},f.style),onClick:()=>E(),children:(0,s.jsx)("strong",{children:(0,s.jsx)(p.A,F({},S.default.watchLive))})}),!H&&!G&&(0,s.jsx)(k.default,{date:new Date(r.start),className:"flex items-center px-6 py-3 mt-2 mr-2 text-lg font-semibold text-gray-100 uppercase duration-200 border-4 border-solid rounded opacity-75 sm:py-4 sm:text-xl border-primary bg-primary hover:text-gray-100 hover:opacity-75"}),H&&!Y&&(!O||1===r.subscribers_only)&&Z&&(0,s.jsx)(L,{style:F({color:"white",background:"#FF1A5A"},f.style),onClick:()=>D?i(1===r.subscription.general_access.length&&0===r.packages.length?`/checkout?s=${r.subscription.general_access[0].id}&cta=${window.location.pathname+window.location.search}`:`/subscribe?cta=${window.location.pathname+window.location.search}`):z(),children:(0,s.jsx)("strong",{children:(0,s.jsx)(p.A,F({},S.default.startYourSubscription))})}),!l&&!Y&&H&&1===r.requires_login&&0===r.price&&0===r.subscribers_only&&(0,s.jsx)(L,{style:F({color:"white",lineHeight:"1.5",background:"#FF1A5A"},f.style),href:(0,d.dE)(),children:(0,s.jsx)("strong",{children:(0,s.jsx)(p.A,F({},S.default.signInToAccount))})}),H&&!r.subscribers_only&&!Y&&r.price>0&&(0,s.jsx)(L,{className:O?"":"livestream-player-second-button",onClick:()=>
64z(),style:F({color:"white",background:"none",border:"2px solid white"},R.style),children:(0,s.jsx)("strong",{children:(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(p.A,q(F({},S.default.buySeparatelyFor),{values:{price:(0,s.jsx)("span",{className:"ml-2",children:(0,T.O)(r.price_with_discount_applied||r.price,r.currency)})}}))})})}),H&&1===r.subscribers_only&&!Y&&0===r.price&&!Z.length&&(0,s.jsx)(L,{onClick:()=>D?i(r.subscription.general_access.length>0?`/subscribe?cta=${window.location.pathname+window.location.search}`:`/checkout?cta=${window.location.pathname+window.location.search}\n                                        &l=${r.url_string||r.id}`):z(),style:F({color:"white",background:"#FF1A5A"},f.style),children:(0,s.jsx)("strong",{children:(0,s.jsx)(p.A,F({},S.default.unlockNow))})})]}),K&&(0,s.jsx)(L,{className:O?"":"livestream-player-second-button",disabled:!0,style:F({color:"white",background:"none",border:"2px solid white"},R.style),children:(0,s.jsx)("strong",{children:(0,s.jsx)(p.A,F({},S.default.livestreamHasEnded))})}),Y&&(0,s.jsx)(w.default,{children:(0,s.jsx)(p.A,F({},S.default.livestreamIsNotAvailableInCountry))})]})}),!l&&!Y&&(0,s.jsx)(h.A.Row,{children:(0,s.jsx)(h.A.Column,{children:(0,s.jsx)(w.default,{as:"p",children:(0,s.jsx)(o.N_,{role:"button",to:(0,d.dE)(),style:{cursor:"pointer",textDecoration:"underline",display:"inline-block",color:"#fff"},children:(0,s.jsx)(p.A,F({},S.default.signInToAccount))})})})}),r.errorMessage&&(0,s.jsx)(h.A.Row,{children:(0,s.jsx)(h.A.Column,{children:(0,s.jsx)(g.A,{negative:!0,size:"mini",color:"red",compact:!0,children:(0,s.jsx)(w.default,{as:"p",style:{fontSize:"1.1em"},children:r.errorMessage})})})}),(0,s.jsx)(h.A.Row,{children:(0,s.jsx)(h.A.Column,{children:(0,s.jsx)(W,{text:r.description})})}),(0,s.jsx)(h.A.Row,{children:(0,s.jsxs)(h.A.Column,{children:[(0,s.jsx)(_.default,{}),(0,s.jsx)(N.default,{})]})}),(0,s.jsx)(h.A.Row,{})]})})})})})})}H.propTypes={livestream:l().object,loading:l().bool,user:l().object,verifiedlabels:l().object,subscriptionbutton:l().object,ppvbutton:l().object,shadow:l().object,proceed:l().func.isRequired,pressPlay:l().func.isRequired,disableSubscriptions:l().bool,disablePackages:l().bool,header:l().object,useNewCheckout:l().bool};const U=H},53050:(e,t,r)=>{r.r(t),r.d(t,{default:()=>l});
64var s=r(74848),n=(r(96540),r(5556)),o=r.n(n),i=r(88911);function l({feature:e,contentId:t}){return(0,s.jsx)("div",{className:"w-full h-full",children:(0,s.jsx)(i.default,{feature:e,contentId:t})})}l.propTypes={feature:o().shape({config:o().shape({url:o().string.isRequired}).isRequired}).isRequired,contentId:o().number.isRequired}},45559:(e,t,r)=>{r.r(t),r.d(t,{PlayerSidebar:()=>g});var s=r(74848),n=r(96540),o=r(5556),i=r.n(o),l=r(67943),a=r(51848),d=r(96541),c=r(44263),u=r(20058),p=r(74321),m=r(24712),f=r(71232),x=r(39455),h=r(10255),b=r(23114);function g({livestream:e,livescoreEnabled:t,playerRef:r,setSidebarState:o,liveChatClasses:i,cmsData:g,cmsPreview:y}){const w=(0,d.A)(),[v,j]=(0,n.useState)((()=>"undefined"!=typeof window&&window.innerWidth>=1280)),{data:C,isValidating:A}=(0,x.I)({contentType:"LIVESTREAM",id:null==e?void 0:e.id}),k=(0,n.useMemo)((()=>{var n,o,a;const d=[];if((y||(null==e?void 0:e.chat))&&d.push({title:w.formatMessage(l.default.livechat),content:(0,s.jsx)(c.default,{room:`livestream_${e.id}`,liveChatClasses:i,cmsData:g,cmsPreview:y}),priority:10}),t&&d.push({title:w.formatMessage(f.default.livescoring),content:(0,s.jsx)(u.default,{url:null==(n=null==e?void 0:e.livescore)?void 0:n.events_url,currentPlayer:r}),priority:10}),null==(o=null==C?void 0:C.features)?void 0:o.length)for(const t of C.features)"SIDEBAR"===t.placement&&d.push({title:(0,s.jsx)(b.default,{text:t.display_name}),content:(0,s.jsx)(h.default,{feature:t,contentId:e.id}),index:t.id,priority:null!=(a=t.priority)?a:20});return d.sort(((e,t)=>e.priority-t.priority)),d}),[w,t,e,r,C,y,g,i]);return(0,n.useEffect)((()=>{o(v&&k.length>0)}),[o,v,k]),A&&!C?null:k.length?v?(0,s.jsxs)(a.fu,{className:null==i?void 0:i.wrapperClasses,children:[(0,s.jsxs)(a.wb,{className:null==i?void 0:i.headerContainerClasses,children:[(0,s.jsxs)("button",{type:"button",onClick:()=>j(!1),className:null==i?void 0:i.headerBtnClasses,"data-testid":"close-sidebar-btn",children:[(0,s.jsx)(m.default,{icon:["fa","right-from-line"],className:"hidden xl:inline-block"}),(0,s.jsx)(m.default,{icon:["fa","down-from-line"],className:"inline-block xl:hidden"})]}),k.map((({title:e},t)=>(0,s.jsx)(a.oz,{as:n.Fragment,children:({selected:r,hover:n})=>(0,s.jsx)("button",{className:(0,p.x)(null==i?void 0:i.headerTabClasses,n&&(null==i?void 0:i.headerTabHoverClasses),r&&(null==i?void 0:i.headerTabSelectedClasses)),type:"button","data-testid":`tab-${t}`,children:e})},t)))]}),(0,s.jsx)(a.T2,{className:"max-h-full overflow-hidden grow",children:k.map((({content:e,index:t})=>(0,s.jsx)(a.Kp,{className:"h-full",unmount:!1,children:e},t)))})]}):(0,s.jsxs)("button",{onClick:()=>j(!0),type:"button",className:null==i?void 0:i.headerBtnClosedClasses,"data-testid":"open-sidebar-btn",children:[(0,s.jsx)(m.default,{icon:["fa","left-from-line"],className:"hidden xl:inline-block"}),(0,s.jsx)(m.default,{icon:["fa","up-from-line"],className:"inline-block xl:hidden"})]}):null}g.propTypes={livestream:i().object,playerRef:i().object,livescoreEnabled:i().bool,setSidebarState:i().func,liveChatClasses:i().object,cmsData:i().object,cmsPreview:i().bool}},10255:(e,t,r)=>{r.r(t),r.d(t,{default:()=>c});var s=r(74848),n=r(96540),o=r(5556),i=r.n(o),l=r(24712),a=r(49216),d=r(88911);function c({feature:e,contentId:t}){var r;const[o,i]=(0,n.useState)(null),{data:c,isValidating:u}=(0,a.A)({featureId:"locked_iframe"===e.config.provider?e.feature_instance_id:null,contentId:t}),p=(0,n.useMemo)((()=>{var t;if("locked_iframe"===e.config.provider&&(null==(t=null==c?void 0:c.config)?void 0:t.locked_iframe_token))try{const t=new URL(e.config.url);return t.searchParams.append("token",c.config.locked_iframe_token),t.toString()}catch(t){return e.config.url}return e.config.url}),[e,c]),m=!o&&("locked_iframe"!==e.config.provider||!u&&!!(null==(r=null==c?void 0:c.config)?void 0:r.locked_iframe_token));return(0,n.useEffect)((()=>{if(!o)return;const e=setInterval((()=>{o.closed&&i(null)}),500);return()=>clearInterval(e)}),[o]),(0,s.jsxs)("div",{className:"relative w-full h-full",children:[e.config.allowPopOut&&(0,s.jsx)("button",{type:"button","data-testid":"pop-out-button",disabled:!m,onClick:()=>
64{if(!m)return;const e=window.open(p,"_blank",`width=${Math.floor(window.screen.width/2)},height=${window.screen.height}`);e&&i(e)},className:"absolute z-10 flex items-center justify-center w-14 h-14 m-3 text-white/70 bg-zinc-800 backdrop-blur-sm rounded-lg cursor-pointer right-2 bottom-2 transition-all hover:text-white hover:bg-gray-700 hover:border-white/20 hover:scale-105 focus-visible:ring-2 focus-visible:ring-white/40 focus-visible:outline-none disabled:opacity-40 disabled:cursor-not-allowed border-2 border-solid border-white","aria-label":"Pop out",title:"Pop out",children:(0,s.jsx)(l.default,{icon:["fal","arrow-up-right-from-square"]})}),o?(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center w-full h-full gap-4 text-white bg-zinc-900",children:[(0,s.jsx)(l.default,{icon:["fal","arrow-up-right-from-square"],className:"text-3xl"}),(0,s.jsx)("span",{className:"text-lg font-medium",children:"Content is open in another window"})]}):(0,s.jsx)(d.default,{feature:e,contentId:t})]})}c.propTypes={feature:i().shape({config:i().shape({allowPopOut:i().bool,url:i().string.isRequired,provider:i().string.isRequired}).isRequired,feature_instance_id:i().number.isRequired}).isRequired,contentId:i().number.isRequired}},88911:(e,t,r)=>{r.r(t),r.d(t,{default:()=>a});
64var s=r(74848),n=(r(96540),r(5556)),o=r.n(n),i=r(4160),l=r(54182);function a({feature:e,contentId:t}){switch(e.config.provider){case"iframe":return(0,s.jsx)(i.default,{src:e.config.url});case"locked_iframe":return(0,s.jsx)(l.default,{src:e.config.url,featureId:e.feature_instance_id,contentId:t});default:return null}}a.propTypes={feature:o().shape({config:o().shape({provider:o().string.isRequired,allowPopOut:o().bool,url:o().string}).isRequired,feature_instance_id:o().number.isRequired}).isRequired,contentId:o().number.isRequired}},4160:(e,t,r)=>{r.r(t),r.d(t,{default:()=>i});var s=r(74848),n=(r(96540),r(5556)),o=r.n(n);function i({src:e}){return(0,s.jsx)("div",{className:"w-full h-full",children:(0,s.jsx)("iframe",{src:e,className:"w-full h-full border-0",allow:"fullscreen;autoplay;picture-in-picture;accelerometer;gyroscope"})})}i.propTypes={src:o().string.isRequired}},54182:(e,t,r)=>{r.r(t),r.d(t,{default:()=>l});var s=r(74848),n=(r(96540),r(5556)),o=r.n(n),i=r(49216);function l({src:e,featureId:t,contentId:r}){var n;const{data:o,isValidating:l,error:a}=(0,i.A)({featureId:t,contentId:r});if(l)return null;if(!(null==(n=null==o?void 0:o.config)?void 0:n.locked_iframe_token)||a)return(0,s.jsx)("div",{children:"Unable to load content"});let d;try{d=new URL(e)}catch(e){return(0,s.jsx)("div",{children:"Invalid URL"})}return d.searchParams.append("token",o.config.locked_iframe_token),(0,s.jsx)("div",{className:"w-full h-full",children:(0,s.jsx)("iframe",{src:d.toString(),className:"w-full h-full border-0",allow:"fullscreen;autoplay;picture-in-picture;accelerometer;gyroscope"})})}l.propTypes={src:o().string.isRequired,featureId:o().number.isRequired,contentId:o().number.isRequired}},25715:(e,t,r)=>{r.r(t),r.d(t,{default:()=>M});var s=r(74848),n=r(26840),o=r(88744),i=r(23114),l=r(39522),a=r(5556),d=r.n(a),c=r(86663),u=r(96540),p=r(67438),m=r(84976),f=r(24712),x=r(38267),h=r(8406),b=r(33932),g=r(88277),y=r(24100),w=r(74321),v=r(74767),j=r(79409),C=r(71232),A=r(45559),k=r(39455),_=r(53050),N=Object.defineProperty,I=Object.defineProperties,S=Object.getOwnPropertyDescriptors,T=Object.getOwnPropertySymbols,R=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable,z=(e,t,r)=>t in e?N(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,E=(e,t)=>{for(var r in t||(t={}))R.call(t,r)&&z(e,r,t[r]);if(T)for(var r of T(t))P.call(t,r)&&z(e,r,t[r]);return e},O=(e,t)=>I(e,S(t));const D=x.Ay.div`
65  background: ${e=>e.color};
66`,B=x.Ay.div`
67  position: fixed;
68  top: 0;
69  left: 0;
70  width: 100%;
71  height: 100dvh;
72  z-index: 999999;
73  background: black;
74`,F={containerClasses:"inline-block bg-red-700 rounded py-4 px-6 my-2",textClasses:"text-white text-lg font-semibold"};function q({livestream:e,defaultVast:t=null,platformBg:r,cmsData:a,cmsPreview:d,classes:x={containerClasses:"relative px-6 mb-12 md:max-w-screen-xl md:-mt-32 md:mx-auto",titleClasses:"text-3xl text-white sm:text-4xl md:text-5xl xl:text-6xl",loginBtnClasses:"block px-1 py-2 mt-2 text-gray-100 underline cursor-pointer font-base hover:text-gray-400",metaDataClasses:"mt-6 space-x-4 font-semibold text-gray-500",descriptionClasses:"mt-2 leading-6 text-white md:max-w-2xl",informationContainer:{containerClasses:"inline-block mt-2 rounded shadow",textClasses:"text-xl font-medium text-white md:text-2xl"},alreadyWatching:F,actionButtons:{buttonClasses:"flex items-center px-6 py-3 mt-2 mr-2 text-lg font-semibold text-gray-100 uppercase duration-200 border-4 border-solid rounded cursor-pointer sm:py-4 sm:text-xl border-primary bg-primary hover:text-gray-100 hover:opacity-75",secondaryButtonClasses:"flex items-center px-6 py-3 mt-2 mr-2 text-lg font-semibold text-gray-100 uppercase duration-200 bg-transparent border-4 border-gray-100 border-solid rounded cursor-pointer sm:py-4 sm:text-xl hover:text-gray-100 hover:opacity-75",multipleButtonContainerClasses:"flex flex-wrap items-center"}},playerAccentColor:N={color:"",useCustomColor:!1},userLoggedIn:I,livestreamStatus:S,useModal:T,showAddToCalendar:R,geoBlockShowDesc:P,showShareButton:z,loginText:q,customButtons:M={},showLivescoreFeature:L=!1,multipleProductsModal:$={titleColor:"text-white",backgroundColor:"bg-white",textColor:"text-gray-900",buttonClasse
74s:"w-full px-6 py-2 mt-2 text-xl font-medium text-white transition-all duration-300 border-none rounded-md cursor-pointer hover:bg-primaryDarker bg-primary disabled:opacity-50"},liveChatClasses:W={wrapperClasses:"flex flex-col w-full max-h-full overflow-hidden border-t border-solid shadow-inner h-2/3 xl:h-full bg-zinc-900 xl:w-1/3 xl:border-t-0 xl:border-l border-zinc-800",headerContainerClasses:"flex flex-row items-center gap-4 pt-4 pb-4 grow-0 bg-zinc-800",headerTabClasses:"border-none shadow-none rounded-md cursor-pointer text-lg px-4 py-1 bg-transparent font-semibold text-white",headerTabSelectedClasses:"bg-white bg-opacity-20 font-medium",headerTabHoverClasses:"bg-white bg-opacity-10 font-medium",headerBtnClasses:"ml-4 text-lg text-white bg-transparent border-none shadow-none cursor-pointer",headerBtnClosedClasses:"absolute z-50 w-14 h-14 m-3 text-2xl text-white bg-zinc-800 border-none rounded-lg cursor-pointer bottom-6 right-4 hover:bg-zinc-900",announcementClasses:{wrapperClasses:"flex flex-row items-center justify-between mt-1.5 p-1 mb-6 bg-zinc-800 border border-zinc-700 border-solid rounded-md",containerClasses:"flex items-center flex-1 text-zinc-100",textClasses:"text-base font-medium text-zinc-100",linkClasses:"text-blue-600 underline break-words",iconClasses:"px-0 py-1 mb-2 text-sm bg-transparent border-none cursor-pointer w-fit text-zinc-100 hover:text-primaryDarker",innerIconClasses:"p-2 text-xs"},moderatorMessagesClasses:"bg-zinc-700 p-2 py-1 rounded text-zinc-100",chatMessagesClasses:"text-zinc-100",chatInputClasses:"w-full p-4 transition duration-200 border-2 border-transparent rounded-t-none rounded-r-none bg-zinc-700 rounded-l-md placeholder-zinc-300 text-zinc-100 focus:border-primary focus:outline-none",sendButtonClasses:"w-full px-4 py-2 text-sm font-medium text-white border-none rounded-l-none cursor-pointer rounded-r-md bg-primary focus:outline-none hover:opacity-75 disabled:cursor-not-allowed disabled:opacity-50",chatActiveUsersClasses:"flex flex-row items-center self-start my-2 space-x-2 text-sm text-white",scrollButtonClasses:"absolute right-0 z-10 h-10 mr-1 bottom-28 text-sm font-semibold border-none rounded-lg cursor-pointer hover:bg-white bg-zinc-100",timeStamp:{classes:"mr-2 font-medium text-zinc-100 font-mono"}},countdownClasses:V={textClasses:""}}){var H,U;const[Y,K]=(0,u.useState)(!1),[G,Z]=(0,u.useState)({}),[J,Q]=(0,u.useState)(!1),[X,ee]=(0,u.useState)(null),{autoplay:te}=c.parse(window.location.search),{data:re,isValidating:se}=(0,k.I)({contentType:"LIVESTREAM",id:null==e?void 0:e.id}),ne=null==(H=null==re?void 0:re.features)?void 0:H.find((e=>"FULLSCREEN"===e.placement));(0,u.useEffect)((()=>(Y?(document.body.style.overflow="hidden",document.body.style.position="fixed"):(document.body.style.overflow="auto",document.body.style.position="relative"),()=>{document.body.style.overflow="auto",document.body.style.position="relative"})),[Y]),(0,u.useEffect)((()=>{try{Y?window.$crisp.push(["do","chat:hide"]):window.$crisp.push(["do","chat:show"])}catch(e){}return()=>{try{window.$crisp.push(["do","chat:show"])}catch(e){}}}),[Y]),(0,u.useEffect)((()=>{const e=()=>{var e,t;window.screen.orientation?"landscape-primary"===window.screen.orientation.type||"landscape-secondary"===window.screen.orientation.type?(null==(e=null==G?void 0:G.player)?void 0:e.requestFullscreen)&&G.player.requestFullscreen():"portrait-primary"!==window.screen.orientation.type&&"portrait-secondary"!==window.screen.orientation.type||document.fullscreenElement&&document.exitFullscreen():window.innerWidth>window.innerHeight?(null==(t=null==G?void 0:G.player)?void 0:t.requestFullscreen)&&G.player.requestFullscreen():document.fullscreenElement&&document.exitFullscreen()};return window.screen&&window.screen.orientation?window.screen.orientation.addEventListener("change",e):window.addEventListener("resize",e),()=>{window.screen&&window.screen.orientation?window.screen.orientation.removeEventListener("change",e):window.removeEventListener("resize",e)}}),[G]);const oe={element:"staylive_player",type:"stream",dvr:!!e.dvr,objectID:e.id,autoplay:!te||"1"===te,muted:!1,fillMode:!1,debug:!1,livestream:e};!e.advertising&&t&&(oe.livestream.advertising=t),null!==X&&(oe.offset=X);const ie=(null==(U=null==e?void 0:e.livescore)?void 0:U.events_url)&&L;if(Y||d&&a)return(0,s.jsxs)(B,{children:[(0,s.jsx)("button",{type:"button",onClick:()=>K(!1),"aria-label":"Back",title:"Back",className:"absolute z-50 w-10 h-10 m-3 text-lg text-white bg-gray-800 border-none rounded-lg cursor-pointer left-2 top-6 hover:bg-gray-900",children:(0,s.jsx)(f.default,{icon:["fa","chevron-left"],className:"mt-2"})}),(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center w-full h-full xl:flex-row",children:[(0,s.jsx)("div",{className:(0,w.x)("w-full m-auto",d?"flex justify-center items-center":"",J?"xl:w-3/4 xl:h-full h-1/3":"h-full"),children:d&&a?(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center w-full text-xl font-bold text-zinc-100 bg-zinc-800 aspect-video",children:[(0,s.jsx)("span",{children:"Livestream preview"}),(0,s.jsx)(f.default,{icon:["fas","play"],className:"p-6 mt-4 border-2 border-solid rounded-full"})]}):se&&!re?null:ne?(0,s.jsx)(_.default,{feature:ne,contentId:e.id}):(0,s.jsx)(o.default,{setup:O(E({},oe),{fillMode:!1,containMode:!0}),onTimeUpdate:e=>{Z(e)},playerAccentColor:N})}),(0,s.jsx)(A.PlayerSidebar,{setSidebarState:Q,livestream:e,playerRef:G,livescoreEnabled:ie,liveChatClasses:W,cmsD
74ata:a,cmsPreview:d})]})]});const le=e.subscription.general_access.length+e.subscription.specific_access.length;return(0,s.jsxs)(D,{color:r,children:[(0,s.jsx)(g.default,{image:e.thumbnail,backgroundColor:r,startTime:e.start,endTime:e.end,countdownClasses:V}),(0,s.jsxs)("div",{className:x.containerClasses,children:[(0,s.jsx)("h3",{className:x.titleClasses,children:(0,s.jsx)(i.default,{text:e.name})}),S===h.Bu.livestreamEnded&&(0,s.jsx)("div",{className:x.informationContainer.containerClasses,children:(0,s.jsx)("span",{className:x.informationContainer.textClasses,children:(0,s.jsx)(p.A,E({},l.default.livestreamHasEnded))})}),S===h.Bu.isGeoBlocked&&(0,s.jsx)("div",{className:x.informationContainer.containerClasses,children:(0,s.jsx)("span",{className:x.informationContainer.textClasses,children:(0,s.jsx)(p.A,E({},l.default.livestreamIsNotAvailableInCountry))})}),S===h.Bu.watchingOnDifferentSession&&(0,s.jsx)("div",{className:x.alreadyWatching?x.alreadyWatching.containerClasses:F.containerClasses,children:(0,s.jsx)("span",{className:x.alreadyWatching?x.alreadyWatching.textClasses:F.textClasses,children:(0,s.jsx)(p.A,E({},l.default.alreadyWatchingFromDifferentSession))})}),e.errorMessage&&e.errorMessage.length>0&&(0,s.jsx)("p",{className:"text-red-600 text-md",children:e.errorMessage}),(0,s.jsx)(b.default,{contentStatus:S,content:e,classes:x.actionButtons,showPlayer:()=>K(!0),setStartPlayerFrom:ee,isLiveStream:!0,useModal:T,customButtons:M,multipleProductsModal:$,hasFullscreenFeature:se&&!re||!!ne,fullscreenFeatureDisplayName:null==ne?void 0:ne.display_name}),1===le&&!e.packages.length&&!e.discount&&null!==(null==e?void 0:e.price_with_discount_applied)&&(0,s.jsx)("div",{className:"mt-2 text-base text-gray-50",children:(0,s.jsx)(p.A,O(E({},C.default.subscriptionDiscount),{values:{price:null==e?void 0:e.price_with_discount_applied,currency:e.currency.toUpperCase()}}))}),le>1&&!e.packages.length&&!e.discount&&null!==(null==e?void 0:e.price_with_discount_applied)&&(0,s.jsx)("div",{className:"mt-2 text-base text-gray-50",children:(0,s.jsx)(p.A,E({},C.default.multiSubscriptionDiscount))}),!I&&S!==h.Bu.loggedInOnly&&S!==h.Bu.livestreamEnded&&(0,s.jsx)("div",{children:(0,s.jsx)(m.N_,{to:(0,y.dE)(),className:x.loginBtnClasses,children:q&&!Object.values(q).every((e=>""===e))?(0,s.jsx)(i.default,{text:q}):(0,s.jsx)(p.A,E({},l.default.signInToAccount))})}),S!==h.Bu.livestreamEnded&&(S!==h.Bu.isGeoBlocked||P)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:x.metaDataClasses,children:[(0,s.jsx)(n.default,{date:e.start}),(0,s.jsx)("span",{children:e.channelName})]}),(0,s.jsx)("div",{className:x.descriptionClasses,children:(0,s.jsx)(i.default,{text:e.description})}),(0,s.jsxs)("div",{className:"mt-4 space-y-2",children:[z&&(0,s.jsx)(j.default,{}),R&&(0,s.jsx)("div",{children:(0,s.jsx)(v.default,{title:e.name,startTime:e.start,endTime:e.end,description:e.description})})]})]})]})]})}q.propTypes={livestream:d().object,platformBg:d().string,defaultVast:d().string,classes:d().object,userLoggedIn:d().bool,livestreamStatus:d().string,useModal:d().bool,showAddToCalendar:d().bool,geoBlockShowDesc:d().bool,showShareButton:d().bool,loginText:d().object,customButtons:d().shape({startYouSubscriptionText:d().object,buySeparatelyForText:d().object,unlockNowText:d().object,buyNowText:d().object,voucherDescriptionText:d().object}),showLivescoreFeature:d().bool,playerAccentColor:d().shape({color:d().string,useCustomColor:d().bool}),multipleProductsModal:d().object,cmsData:d().object,cmsPreview:d().bool,liveChatClasses:d().object,countdownClasses:d().shape({textClasses:d().string})};const M=q},71232:(e,t,r)=>{r.r(t),r.d(t,{default:()=>o,scope:()=>n});var s=r(11164);const n="app.components.LivestreamPresentation",o=(0,s.YK)({subscriptionDiscount:{id:`${n}.subscriptionDiscount`,defaultMessage:"* Subscribe today and access the livestream for {price} {currency}."},livescoring:{id:`${n}.livescoring`,defaultMessage:"Scoring"},multiSubscriptionDiscount:{id:`${n}.multiSubscriptionDiscount`,defaultMessage:"* Subscribe today and access the livestream with a discounted PPV price."}})}}]);

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.