1import{r as i,b as x,j as e,m as r,L as v}from"./index-BGHEU75U.js";import{S as b}from"./Seo-BZCvhWik.js";import{C as g}from"./calendar-CzOxhEXQ.js";import{M as p}from"./map-pin-CSHHlCFo.js";import{C as j}from"./clock-BnK7jL03.js";import{A as y}from"./arrow-left-CFOff0uC.js";const o={hidden:{opacity:0,y:40},visible:{opacity:1,y:0,transition:{duration:.8}}};function N(s){return new Date(s+"T00:00:00").toLocaleDateString("en-US",{weekday:"long",month:"long",day:"numeric",year:"numeric"})}function E(){const[s,l]=i.useState(null),[c,m]=i.useState([]),[u,h]=i.useState(!0);return i.useEffect(()=>{(async()=>{try{const t=await x.entities.KrampusKonventionEvent.list("date",50),a=new Date;a.setHours(0,0,0,0);const d=(t||[]).filter(n=>new Date(n.date+"T00:00:00")>=a).sort((n,f)=>new Date(n.date)-new Date(f.date))[0]||null;if(l(d),d){const n=await x.entities.KrampusKonventionScheduleItem.filter({event_id:d.id},"sort_order",100);m(n||[])}}catch{l(null),m([])}finally{h(!1)}})()},[]),e.jsxs(e.Fragment,{children:[e.jsx(b,{title:"Schedule",description:"Krampus Konvention schedule of events â market hours, Krampus Ball, and all the night's activities.",path:"/krampus-konvention/schedule"}),e.jsx("section",{className:"pt-40 pb-12 px-6 md:px-10",children:e.jsxs("div",{className:"max-w-4xl mx-auto",children:[e.jsx(r.p,{initial:"hidden",animate:"visible",variants:o,className:"font-body text-xs tracking-widest uppercase text-primary mb-4",children:"ð¹ Krampus Konvention"}),e.jsx(r.h1,{initial:"hidden",animate:"visible",variants:o,className:"font-display text-5xl md:text-7xl uppercase tracking-tight text-foreground mb-4",children:"Schedule"}),s&&e.jsxs(r.div,{initial:"hidden",animate:"visible",variants:o,className:"flex flex-col gap-2 mt-4",children:[e.jsxs("div",{className:"flex items-center gap-2 text-primary",children:[e.jsx(g,{size:16}),e.jsx("span",{className:"font-body text-sm tracking-widest uppercase",children:N(s.date)})]}),e.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground",children:[e.jsx(p,{size:16,className:"text-primary"}),e.jsxs("span",{className:"font-body text-sm",children:[s.location_name," · ",s.address]})]})]})]})}),e.jsx("section",{className:"px-6 md:px-10 pb-32",children:e.jsxs("div",{className:"max-w-4xl mx-auto",children:[u?e.jsx("div",{className:"flex justify-center py-24",children:e.jsx("div",{className:"w-8 h-8 border-2 border-border border-t-primary rounded-full animate-spin"})}):c.length===0?e.jsxs("div",{className:"bg-card border border-border p-12 text-center",children:[e.jsx("p",{className:"font-display text-2xl text-muted-foreground mb-3",children:"Schedule Coming Soon"}),e.jsx("p",{className:"font-body text-sm text-muted-foreground",children:"Check back soon for the full night's itinerary."})]}):e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"absolute left-4 md:left-6 top-0 bottom-0 w-px bg-border"}),e.jsx("div",{className:"space-y-6",children:c.map((t,a)=>e.jsxs(r.div,{initial:"hidden",whileInView:"visible",viewport:{once:!0},variants:o,transition:{delay:a*.05},className:"relative pl-12 md:pl-16",children:[e.jsx("div",{className:"absolute left-2.5 md:left-4.5 top-6 w-3 h-3 rounded-full bg-primary ring-4 ring-background"}),e.jsxs("div",{className:"bg-card border border-border p-6 md:p-8",children:[e.jsxs("div",{className:"flex items-center gap-2 text-primary mb-3",children:[e.jsx(j,{size:16}),e.jsx("span",{className:"font-body text-xs tracking-widest uppercase",children:t.time})]}),e.jsx("h3",{className:"font-display text-2xl md:text-3xl uppercase tracking-tight text-foreground mb-2",children:t.title}),t.location&&e.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground mb-3",children:[e.jsx(p,{size:14,className:"text-primary"}),e.jsx("span",{className:"font-body text-sm",children:t.location})]}),t.description&&e.jsx("p",{className:"font-body text-sm text-muted-foreground leading-relaxed",children:t.description})]})]},t.id||a))})]}),e.jsx("div",{className:"mt-12",children:e.jsxs(v,{to:"/krampus-konvention",className:"inline-flex items-center gap-2 font-body text-sm tracking-widest uppercase text-muted-foreground hover:text-foreground transition-colors",children:[e.jsx(y,{size:14})," Back to Krampus Konvention"]})})]})})]})}export{E 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.