import{_ as C}from"./CzmuiYdA.js";import{x as I,a as _,b as j,d as z,w as f,u as B,l as p,j as U,k as q,z as k,B as D,as as E,E as O,q as $}from"./CdnR8bhP.js";const A={class:"relative max-w-full mx-8 group max-h-[80dvh] flex w-[80dvw] h-[80dvh] md:max-h-[650px] md:max-w-[900px]"},K=I({__name:"index",props:{match:{}},async setup(y){var d,x,g,w;let s,e;const o=_(),u=()=>{o.showMDT=!1},{$gc:m}=j(),r=B(),a=z(),l=y,T=([s,e]=f(()=>m().football.web().getTeamById(l.match.teamID)),s=await s,e(),s),c=([s,e]=f(()=>m().football.web().getMatch(l.match.matchID,T.slug,l.match.seasonID)),s=await s,e(),s),M=r.public.placeholders.upcomingMatch,h=new Date,t=new Date(c.kickOffUTC);t.setUTCHours(t.getHours());const i=new Date(h);i.setHours(i.getHours()-3);const n=new Date(h);return n.setHours(n.getHours()+4),t>i&&tb===r.public.club.slugs.fixtures))==null?void 0:w.length)<1)&&c.disableMDT!==!0&&r.public.sport.football.disableMDT!==!0&&(o.showMDT=!0),(b,F)=>{const v=C,H=O;return p(o).showMDT?(U(),q("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:u},[k("div",A,[D(v,{data:p(c),style:{},theme:"dark","background-key":p(M)},null,8,["data","background-key"]),k("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:E(u,["stop"])},[D(H,{pack:"navigation",icon:"close",size:16})])])])):$("",!0)}}});export{K as _};