import{_ as C}from"./cbW821l0.js";import{L as I,m as _,u as j,n as z,v as b,l as U,f as u,C as B,D as L,N as D,P as v,at as N,S as O,I as P}from"./DRed5xFw.js";const S={class:"relative max-w-full mx-8 group max-h-[80dvh] flex w-[80dvw] h-[80dvh] md:max-h-[650px] md:max-w-[900px]"},E=I({__name:"index",props:{match:{}},async setup(y){var d,x,g,w;let s,a;const o=_(),p=()=>{o.showMDT=!1},{$gc:m}=j(),l=U(),t=z(),r=y,T=([s,a]=b(()=>m().football.web().getTeamById(r.match.teamID)),s=await s,a(),s),c=([s,a]=b(()=>m().football.web().getMatch(r.match.matchID,T.slug,r.match.seasonID)),s=await s,a(),s),M=l.public.placeholders.upcomingMatch,h=new Date,e=new Date(c.kickOffUTC);e.setUTCHours(e.getHours());const i=new Date(h);i.setHours(i.getHours()-3);const n=new Date(h);return n.setHours(n.getHours()+4),e>i&&e<n&&(((d=t==null?void 0:t.params)==null?void 0:d.slug)===void 0||((w=(g=(x=t==null?void 0:t.params)==null?void 0:x.slug)==null?void 0:g.filter(f=>f===l.public.club.slugs.fixtures))==null?void 0:w.length)<1)&&c.disableMDT!==!0&&l.public.sport.football.disableMDT!==!0&&(o.showMDT=!0),(f,$)=>{const k=C,H=O;return u(o).showMDT?(B(),L("div",{key:0,class:"w-screen h-screen fixed left-0 top-0 bg-primary-950/60 z-[150] flex items-center justify-center",onClick:p},[D("div",S,[v(k,{data:u(c),theme:"club","background-key":u(M)},null,8,["data","background-key"]),D("div",{class:"absolute -top-[25px] -right-[25px] sm:-top-[16px] sm:-right-[16px] text-white bg-slate-800 rounded-full flex items-center justify-center w-[50px] h-[50px] sm:w-[32px] sm:h-[32px] shadow hover:bg-slate-700 cursor-pointer transition duration-150",onClick:N(p,["stop"])},[v(H,{pack:"navigation",icon:"close",size:"16"})])])])):P("",!0)}}});export{E as _};