1import{j as e}from"./ui-CPD64juL.js";import{e as p,L as h}from"./vendor-CfKk-ojl.js";import{aX as j,L as t,x as r,B as g,A as f,ah as N,p as v,_ as y}from"./index-CL_fWKtB.js";import{E as w}from"./EventCard-CUnQ805c.js";import"./eventCapacity-9M-MIZmu.js";import"./event-Bs4QBeN8.js";import"./ticket-Z8_lBh5t.js";import"./calendar-CipxXjCQ.js";const b=["domingos","lunes","martes","miércoles","jueves","viernes","sábados"],$=()=>{const{slug:c}=p(),{data:n,isLoading:d,isError:u}=j(c);if(d)return e.jsx(t,{title:"Cargando | Enigma Games",noindex:!0,children:e.jsxs("div",{className:"container mx-auto px-4 py-10 max-w-5xl space-y-6",children:[e.jsx(r,{className:"h-10 w-2/3"}),e.jsx(r,{className:"h-4 w-full"}),e.jsx(r,{className:"h-72 w-full rounded-2xl"})]})});if(u||!n)return e.jsx(t,{title:"No encontrado | Enigma Games",noindex:!0,children:e.jsxs("div",{className:"container mx-auto px-4 py-20 text-center space-y-4",children:[e.jsx("h1",{className:"text-2xl font-bold",children:"No encontramos esta página"}),e.jsx("p",{className:"text-muted-foreground",children:"El link no existe o ya no está disponible."}),e.jsx(g,{asChild:!0,children:e.jsxs(h,{to:"/eventos",children:[e.jsx(f,{className:"mr-2 h-4 w-4"})," Ver los eventos"]})})]})});const{series:s,events:o}=n,i=b[s.weekday]??"",l=s.startTime?s.startTime.slice(0,5):"",m=i&&l?`Todos los ${i} a las ${l}`:"",a=N(s.description??"");return e.jsxs(t,{title:`${s.name} | Enigma Games`,description:(a==null?void 0:a.slice(0,160))||s.name,noindex:!0,children:[e.jsx("section",{className:"relative overflow-hidden bg-gradient-to-br from-primary/10 via-background to-accent/10 pt-14 pb-6 sm:pt-18 sm:pb-8",children:e.jsx("div",{className:"container mx-auto px-4 relative",children:e.jsxs("div",{className:"flex flex-col items-center text-center max-w-2xl mx-auto",children:[e.jsx("div",{className:"inline-flex items-center justify-center w-8 h-8 sm:w-10 sm:h-10 rounded-xl bg-primary/10 mb-2",children:e.jsx(v,{className:"w-4 h-4 sm:w-5 sm:h-5 text-primary"})}),e.jsx("h1",{className:"text-xl sm:text-2xl font-bold text-foreground tracking-tight",children:s.name}),m&&e.jsx("p",{className:"mt-1 text-sm font-medium text-primary",children:m}),a&&e.jsx("p",{className:"mt-2 text-muted-foreground text-xs sm:text-sm max-w-lg",children:a}),e.jsx("p",{className:"mt-3 text-sm text-foreground",children:"Elegà a qué jornada te sumás."})]})})}),e.jsx("section",{className:"container mx-auto px-4 py-8 sm:py-12",children:o.length>0?e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 lg:gap-8 max-w-5xl mx-auto",children:o.map(x=>e.jsx(w,{event:x},x.id))}):e.jsxs("div",{className:"text-center py-16 space-y-4",children:[e.jsx(y,{className:"w-12 h-12 text-muted-foreground/40 mx-auto"}),e.jsx("h3",{className:"text-xl font-semibold text-foreground",children:"TodavÃa no hay una próxima jornada publicada"}),e.jsx("p",{className:"text-muted-foreground",children:"Volvé a este mismo link en unos dÃas: acá van a aparecer las próximas fechas."})]})})]})};export{$ 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.