1import{b as o,j as e}from"./vendor-react-core-_0sZDOLQ.js";import{b as d}from"./index-j07E1qHv.js";import{S as x}from"./skeleton-ClHfYp06.js";import{B as h}from"./badge-BXqwvh8U.js";import{L as p}from"./LiveMatchCard-B_kaMKMB.js";import{m as r}from"./vendor-framer-motion-C1oRD-X5.js";import{c as u,l as c}from"./vendor-lucide-Ddz0eB7N.js";import"./vendor-radix-CFmJ1img.js";import"./vendor-utils-BRu4i-LD.js";import"./vendor-supabase-Ca6cp8v2.js";import"./card-DHmBnTdH.js";import"./tabs-BUF6w8PE.js";import"./input-rti45mgP.js";function L(){const{data:s=[],isLoading:m}=o({queryKey:["live-matches"],queryFn:async()=>await d.entities.Match.filter({status:"live"},"match_date"),refetchInterval:15e3}),{data:n=[]}=o({queryKey:["upcoming-matches-live-page"],queryFn:async()=>{const t=new Date;return(await d.entities.Match.filter({status:"scheduled"})).filter(a=>new Date(a.match_date)>t).sort((a,l)=>new Date(a.match_date).getTime()-new Date(l.match_date).getTime()).slice(0,6)}});return e.jsxs("main",{className:"min-h-screen bg-gradient-to-br from-faf-blue via-faf-blue-light to-faf-blue-dark",children:[e.jsx("section",{className:"py-12 border-b border-white/10",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsxs(r.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:"text-center",children:[e.jsxs("div",{className:"inline-flex items-center gap-3 bg-red-600/20 backdrop-blur-lg px-6 py-3 rounded-full mb-6 border border-red-500/50",children:[e.jsxs("div",{className:"relative",children:[e.jsx(u,{className:"w-6 h-6 text-red-500 animate-pulse"}),e.jsx("span",{className:"absolute -top-1 -right-1 w-3 h-3 bg-red-500 rounded-full animate-ping"})]}),e.jsxs("span",{className:"text-white font-bold text-lg uppercase tracking-wider",children:[s.length," ",s.length===1?"Jogo":"Jogos"," Ao Vivo"]})]}),e.jsx("h1",{className:"text-5xl md:text-6xl font-bold text-white mb-4",children:"Jogos Ao Vivo"}),e.jsx("p",{className:"text-gray-400 max-w-2xl mx-auto text-lg",children:"Acompanhe todos os jogos em tempo real com placares, estatÃsticas e chat comunitário"})]})})}),e.jsx("section",{className:"py-12",children:e.jsx("div",{className:"container mx-auto px-4",children:m?e.jsx("div",{className:"grid grid-cols-1 gap-6",children:[1,2,3].map(t=>e.jsx(x,{className:"h-96 rounded-2xl bg-white/5"},t))}):s.length===0?e.jsxs(r.div,{initial:{opacity:0,scale:.9},animate:{opacity:1,scale:1},className:"text-center py-20",children:[e.jsx("div",{className:"w-32 h-32 bg-white/5 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(c,{className:"w-16 h-16 text-gray-500"})}),e.jsx("h2",{className:"text-3xl font-bold text-white mb-4",children:"Nenhum Jogo Ao Vivo"}),e.jsx("p",{className:"text-gray-400 max-w-md mx-auto",children:"Não há jogos a decorrer neste momento. Volte mais tarde para acompanhar os jogos em direto."})]}):e.jsx("div",{className:"space-y-6",children:s.map((t,i)=>e.jsx(p,{match:t,index:i},t.id))})})}),n.length>0&&e.jsx("section",{className:"py-20 bg-black/30",children:e.jsxs("div",{className:"container mx-auto px-4",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-10",children:[e.jsx("div",{className:"p-2 bg-blue-600/20 rounded-lg",children:e.jsx(c,{className:"w-6 h-6 text-blue-400"})}),e.jsx("h2",{className:"text-3xl font-bold text-white",children:"Próximos Jogos de Angola"})]}),e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:n.map((t,i)=>{var a,l;return e.jsxs(r.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:i*.1},className:"bg-white/5 border border-white/10 hover:border-white/20 p-6 rounded-2xl transition-all group",children:[e.jsxs("div",{className:"flex justify-between items-center mb-6",children:[e.jsx("span",{className:"text-[10px] uppercase font-bold text-gray-500 tracking-widest",children:t.competition}),e.jsx(h,{variant:"outline",className:"text-blue-400 border-blue-400/30",children:"EM BREVE"})]}),e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsxs("div",{className:"text-center flex-1",children:[e.jsx("div",{className:"w-12 h-12 bg-white/5 rounded-full flex items-center justify-center mx-auto mb-2 text-lg font-bold text-white",children:(a=t.home_team)==null?void 0:a[0]}),e.jsx("p",{className:"text-xs font-bold text-white truncate",children:t.home_team})]}),e.jsx("div",{className:"px-4 text-center",children:e.jsx("p",{className:"text-xs font-bold text-gray-600",children:"VS"})}),e.jsxs("div",{className:"text-center flex-1",children:[e.jsx("div",{className:"w-12 h-12 bg-white/5 rounded-full flex items-center justify-center mx-auto mb-2 text-lg font-bold text-white",children:(l=t.away_team)==null?void 0:l[0]}),e.jsx("p",{className:"text-xs font-bold text-white truncate",children:t.away_team})]})]}),e.jsxs("div",{className:"bg-white/5 rounded-xl p-3 flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-2 text-gray-400",children:[e.jsx(c,{className:"w-3.5 h-3.5"}),e.jsx("span",{className:"text-xs font-medium",children:new Date(t.match_date).toLocaleDateString("pt-AO")})]}),e.jsx("span",{className:"text-xs font-black text-white",children:new Date(t.match_date).toLocaleTimeString("pt-AO",{hour:"2-digit",minute:"2-digit"})})]})]},t.id)})})]})})]})}export{L as default};
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.