import{_ as R}from"./Da0dc-Mg.js";import{b as X,r as P,G as C,aW as U,aX as V,x as ee,aY as te,a as ae,d as oe,ab as re,h as L,u as ie,O as se,y as ne,j as c,k as le,B as k,l as t,C as $,z as j,aZ as ue,aB as de,m as p,q as I,n as ce,p as me,aJ as pe,a_ as ge,ao as fe,v as he}from"./BGddUaGe.js";import{_ as ve}from"./BSMixqvd.js";import{_ as ye}from"./8YlKqErn.js";import{_ as be}from"./CqtROrwk.js";import{_ as _e}from"./CCzi3qjv.js";import{_ as we}from"./DQHoam-E.js";import{u as De}from"./BDJD2SfI.js";/* empty css */import"./CztB8fAh.js";import"./B-WcUWF7.js";import"./B01MA1r5.js";import"./DwUSRpqx.js";import"./PeVThC-t.js";import"./7XTyMJIM.js";import"./Bpj9OJhb.js";import"./BWlv5qYC.js";import"./DfWZ8f9u.js";import"./s6mcGMmr.js";import"./CXzLa8Es.js";import"./CDEFoCuH.js";import"./Cp657YoP.js";import"./BF80TLCE.js";import"./CPfO20CH.js";import"./DMMjVHYg.js";function ke(s,l){const d=l/s*100;return 2/Math.PI*100*Math.atan(d/50)}function Ie(s={}){const{duration:l=2e3,throttle:d=200,hideDelay:g=500,resetDelay:b=400}=s,e=s.estimatedProgress||ke,m=X(),i=P(0),n=P(!1),u=P(!1);let a,f,S,F,_=!1;const T=()=>{u.value=!1,x(0)};function x(o=0){if(!m.isHydrating){if(o>=100)return h();v(),i.value=o<0?0:o,d?f=setTimeout(()=>{n.value=!0,A()},d):(n.value=!0,A())}}function h(o={}){i.value=100,_=!0,v(),clearTimeout(S),clearTimeout(F),o.error&&(u.value=!0),o.force?(i.value=0,n.value=!1):S=setTimeout(()=>{n.value=!1,F=setTimeout(()=>{i.value=0},b)},g)}function v(){clearTimeout(f),cancelAnimationFrame(a)}function A(){let o;_=!1,a=requestAnimationFrame(function w(r){if(_)return;o??(o=r);const M=r-o;i.value=Math.max(0,Math.min(100,e(l,M))),a=requestAnimationFrame(w)})}let E=()=>{};{const o=m.hook("page:loading:start",()=>{T()}),w=m.hook("page:loading:end",()=>{h()}),r=m.hook("vue:error",()=>h());E=()=>{r(),o(),w(),v()}}return{_cleanup:E,progress:C(()=>i.value),isLoading:C(()=>n.value),error:C(()=>u.value),start:T,set:x,finish:h,clear:v}}const Fe=ee({name:"NuxtLoadingIndicator",props:{throttle:{type:Number,default:200},duration:{type:Number,default:2e3},height:{type:Number,default:3},color:{type:[String,Boolean],default:"repeating-linear-gradient(to right,#00dc82 0%,#34cdfe 50%,#0047e1 100%)"},errorColor:{type:String,default:"repeating-linear-gradient(to right,#f87171 0%,#ef4444 100%)"},estimatedProgress:{type:Function,required:!1}},setup(s,{slots:l,expose:d}){const{progress:g,isLoading:b,error:e,start:m,finish:i,clear:n}=function(u={}){const a=X(),f=a._loadingIndicator=a._loadingIndicator||Ie(u);return U()&&(a._loadingIndicatorDeps=a._loadingIndicatorDeps||0,a._loadingIndicatorDeps++,V(()=>{a._loadingIndicatorDeps--,a._loadingIndicatorDeps===0&&(f._cleanup(),delete a._loadingIndicator)})),f}({duration:s.duration,throttle:s.throttle,estimatedProgress:s.estimatedProgress});return d({progress:g,isLoading:b,error:e,start:m,finish:i,clear:n}),()=>te("div",{class:"nuxt-loading-indicator",style:{position:"fixed",top:0,right:0,left:0,pointerEvents:"none",width:"auto",height:`${s.height}px`,opacity:b.value?1:0,background:e.value?s.errorColor:s.color||void 0,backgroundSize:100/g.value*100+"% auto",transform:`scaleX(${g.value}%)`,transformOrigin:"left",transition:"transform 0.1s, height 0.4s, opacity 0.4s",zIndex:999999}},l)}}),Te={50:"#FFE1E1",100:"#FFC2C2",200:"#FE8585",300:"#FE4848",400:"#FE0606",500:"#C70101",600:"#9D0101",700:"#7A0101",800:"#510000",900:"#290000",950:"#140000"},Ue={__name:"default",setup(s){var _,T,x,h,v,A,E,o,w;const l=ae(),d=oe(),g=re(),b=De();L({script:[{children:"if (global === undefined) {var global = window;}"}]});const e=ie(),m=(T=(_=e.public.club)==null?void 0:_.features)==null?void 0:T["streaming-site"],i={advertID:(v=(h=(x=e.public)==null?void 0:x.club)==null?void 0:h.managedAds)==null?void 0:v.splash,mobileAdvertID:(o=(E=(A=e.public)==null?void 0:A.club)==null?void 0:E.managedAds)==null?void 0:o.splash,adsLength:1};L({titleTemplate:r=>r?`${r} ${e.public.seo.metaPageTitleAfter}`:`${e.public.seo.metaPageTitleAfter.replace("-","").trim()}`,meta:[{charset:"utf-8"},{name:"viewport",content:"width=device-width, initial-scale=1"}]});const n=P(),u=P(),a=Te[800];u.value=e.public.menus.footer;const f="Footer"+((w=u.value)==null?void 0:w.footerType);n.value=se(f),ne(()=>{var r;(r=d.query)!=null&&r.method&&(l.showSSO=!0)});const S=``;L({link:[{rel:"canonical",href:d.fullPath}]});const F=C(()=>{let r=!1;return e.public.firstTeamFixtures.forEach(M=>{const O=new Date(M.kickOff);if(!isNaN(O)){const D=new Date;D.setHours("0"),D.setMinutes("0");const y=new Date(D);y.setHours("0"),y.setMinutes("0"),y.setDate(y.getDate()+1),O>=D&&O{var N;const O=R,D=Fe,y=ue,G=ve,q=ye,J=be,Y=pe,Z=ge,W=_e,K=we,Q=fe;return c(),le("div",{id:"page",class:he(["relative overflow-hidden page",{"show-sso":t(l).showSSO}])},[k(O,{mode:t(g).mode,class:"z-[100] relative"},null,8,["mode"]),k(q,null,{default:$(()=>[j("main",null,[k(D,{color:t(a)},null,8,["color"]),k(y),k(de,{appear:"",name:"audio-transition"},{default:$(()=>[t(b).modalIsOpen?(c(),p(G,{key:0})):I("",!0)]),_:1})])]),_:1}),t(n)!==void 0?(c(),p(me(t(n)),{key:0,data:{attributes:t(u)},style:ce((N=t(u))==null?void 0:N.style)},null,8,["data","style"])):I("",!0),k(q,null,{default:$(()=>{var z,H,B;return[i.advertID!==void 0?(c(),p(J,{key:0,"ad-length":i.adsLength,"advert-i-d":i.advertID,"mobile-advert-i-d":i.mobileAdvertID,"is-splash":!0,seed:"101"},null,8,["ad-length","advert-i-d","mobile-advert-i-d"])):I("",!0),((H=(z=t(e).public.club)==null?void 0:z.ssoOptions)==null?void 0:H.provider)!=="OIDC"?(c(),p(Y,{key:1})):I("",!0),t(l).showSearch?I("",!0):(c(),p(Z,{key:2})),t(F)&&!t(m)?(c(),p(W,{key:3,match:t(F)},null,8,["match"])):(c(),p(K,{key:4,config:t(e)},null,8,["config"])),(B=t(l))!=null&&B.showMenu?(c(),p(Q,{key:5})):I("",!0),j("div",{innerHTML:S})]}),_:1})],2)}}};export{Ue as default};