1import{o as R,a as J,r as u,K as I,j as e,S as X,i as q,N as Q,n as j,E as z,O as M,G as $,Q as O,C as W,m as ee,F as te}from"./index-kiBD3rev.js";import{B as se,P as ae}from"./PageNavigation-4i4inwhb.js";import"./arrow-left-D8-KqQH5.js";/** 2 * @license lucide-react v0.462.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const ne=R("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);/** 7 * @license lucide-react v0.462.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const P=R("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);function Z(s){const o=s.split(` 12`).filter(h=>h.trim());let c="",x="",m="",g="";const N=[],y=h=>{const r=h.match(/<a[^>]*href="([^"]+)"[^>]*>([\s\S]*?)<\/a>/i);r?(g=r[1],m=r[2].replace(/<[^>]+>/g,"").trim()):m=h.replace(/<[^>]+>/g,"").trim()};for(const h of o){const r=h.trim();if(r.includes("ðï¸"))c=r.replace("ðï¸","").trim();else if(r.includes("ð")){const p=r.replace("ð","").trim();N.push(p),x||(x=p)}else r.includes("ð")?y(r.replace("ð","").trim()):r.includes("ð")?y(r.replace("ð","").trim()):!c&&!x&&!m&&r.length>0&&/Praha|Prague|nám|ul\.|street/i.test(r)&&y(r)}return{dateStr:c,time:x,location:m,locationUrl:g,timeLines:N}}function le(s){const o={};let c="";for(const x of s){const m=x.match(/^(\d{1,2}\/\d{1,2})\s*[:\-â]?\s*(.+)$/);m?o[m[1]]=m[2].trim():c||(c=x)}return{timesByDate:o,generalTime:c}}function re(s){if(!s)return[];const o=new Date,c=o.getFullYear(),x=o.getMonth()+1,m=s.replace(/\s+/g," ").trim();let g=x,N=m;const y=m.match(/^([\d,\s.]+?)[\/.](\d{1,2})\.?$/);y&&(N=y[1],g=parseInt(y[2],10));const h=N.split(/[,\s]+/).map(r=>parseInt(r.replace(/\D/g,""),10)).filter(r=>!isNaN(r)&&r>=1&&r<=31);return h.length===0||g<1||g>12?[]:h.map(r=>new Date(c,g-1,r)).sort((r,p)=>r.getTime()-p.getTime())}function ie(s){const{dateStr:o,location:c,locationUrl:x,timeLines:m}=Z(s.details),g=re(o),{timesByDate:N,generalTime:y}=le(m),h=new Date;h.setHours(0,0,0,0);const r=g.filter(k=>k<h),p=g.filter(k=>k>=h),T=p.length>0?p[0]:null,w=y||Object.keys(N).length===0&&m[0]||"";return{...s,dates:g,nextDate:T,pastDates:r,futureDates:p,time:w,location:c,locationUrl:x,timesByDate:N}}function F(s,o){const c=s.getDate(),x=s.toLocaleDateString(o==="cs"?"cs-CZ":o==="es"?"es-ES":"en-GB",{month:"short"});return`${c} ${x}`}function V(s,o){const c=`${s.getDate()}/${s.getMonth()+1}`;return o[c]||""}function oe(s,o){return new Date(2024,s-1,1).toLocaleDateString(o==="cs"?"cs-CZ":o==="es"?"es-ES":"en-GB",{month:"long"})}const v=[{bg:"#C8102E",text:"#fff",label:"C"},{bg:"#00843D",text:"#fff",label:"A"},{bg:"#FFD100",text:"#1a1a1a",label:"B"},{bg:"#0072CE",text:"#fff",label:"22"},{bg:"#E87722",text:"#fff",label:"9"},{bg:"#6F2DA8",text:"#fff",label:"17"}],G="food-events-cache-v1",ce=1e3*60*30,H="food-events-archive-sync",de=1e3*60*60*12;function me(){try{const s=sessionStorage.getItem(G);if(!s)return null;const o=JSON.parse(s);return!(o!=null&&o.data)||Date.now()-o.ts>ce?null:o.data}catch{return null}}const ue=()=>{const{locale:s}=J(),o=u.useMemo(()=>me(),[]),[c,x]=u.useState(o),[m,g]=u.useState(!o),[N,y]=u.useState([]),[h,r]=u.useState(new Set);u.useEffect(()=>{let t=!1;return(async()=>{try{const{data:a,error:i}=await I.functions.invoke("fetch-shopify-page",{body:{handle:"food-events"}});if(i)throw i;if(t)return;x(a);try{sessionStorage.setItem(G,JSON.stringify({ts:Date.now(),data:a}))}catch{}}catch(a){console.error("Failed to fetch food-events page:",a)}finally{t||g(!1)}})(),()=>{t=!0}},[]),u.useEffect(()=>{let t=!1;return(async()=>{const{data:a}=await I.from("event_archives").select("id,title,image_url,details,info_url,event_month,event_year").order("event_year",{ascending:!1}).order("event_month",{ascending:!1}).limit(200);a&&!t&&y(a)})(),()=>{t=!0}},[]),u.useEffect(()=>{var a;if(!((a=c==null?void 0:c.events)!=null&&a.length))return;let t=0;try{t=Number(localStorage.getItem(H)||0)}catch{}if(Date.now()-t<de)return;const n=window.setTimeout(()=>{try{localStorage.setItem(H,String(Date.now()))}catch{}I.functions.invoke("archive-events",{body:{handle:"food-events"}}).catch(i=>console.error("Archive sync error:",i))},2500);return()=>window.clearTimeout(n)},[c]);const{nextEvent:p,upcomingEvents:T,completedEvents:w,allEnriched:k}=u.useMemo(()=>{var i;if(!((i=c==null?void 0:c.events)!=null&&i.length))return{nextEvent:null,upcomingEvents:[],completedEvents:[],allEnriched:[]};const t=c.events.map(ie),n=t.filter(d=>d.futureDates.length>0),a=t.filter(d=>d.futureDates.length===0&&d.dates.length>0);return n.sort((d,l)=>!d.nextDate||!l.nextDate?0:d.nextDate.getTime()-l.nextDate.getTime()),{nextEvent:n[0]||null,upcomingEvents:n.slice(1),completedEvents:a,allEnriched:t}},[c]),_=t=>{if(!t)return!1;const n=new Date;return t.getDate()===n.getDate()&&t.getMonth()===n.getMonth()&&t.getFullYear()===n.getFullYear()},D=u.useMemo(()=>
12[p,...T].filter(Boolean),[p,T]),U=u.useMemo(()=>k.reduce((t,n)=>t+((n==null?void 0:n.dates.length)||0),0),[k]),L=u.useMemo(()=>k.filter(t=>t.dates.some(n=>_(n))).length,[k]),B=u.useMemo(()=>{const t=new Date,n=t.getMonth()+1,a=t.getFullYear(),i=N.filter(l=>!(l.event_month===n&&l.event_year===a)),d={};for(const l of i){const b=`${l.event_year}-${String(l.event_month).padStart(2,"0")}`;d[b]||(d[b]=[]),d[b].push(l)}return Object.entries(d).sort(([l],[b])=>b.localeCompare(l))},[N]),K=u.useCallback(t=>{r(n=>{const a=new Set(n);return a.has(t)?a.delete(t):a.add(t),a})},[]);return e.jsxs("div",{className:"min-h-screen bg-background",style:{fontFamily:"'Overpass', sans-serif"},children:[e.jsx(X,{...q("events",s),path:"/events"}),e.jsx(Q,{}),e.jsx("section",{className:"relative pt-6 pb-0 px-4 overflow-hidden",children:e.jsxs("div",{className:"relative container mx-auto max-w-5xl",children:[e.jsx("div",{className:"mb-5",children:e.jsx(se,{})}),e.jsx(j.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.4},children:e.jsxs("div",{className:"bg-[#2A2A2A] rounded-2xl p-5 sm:p-6 md:p-8 overflow-hidden relative",children:[e.jsxs("div",{className:"absolute top-4 right-5 hidden sm:flex items-center gap-2 opacity-30",children:[e.jsx("div",{className:"w-5 h-5 rounded-full bg-[#C8102E]"}),e.jsx("div",{className:"w-5 h-5 rounded-full bg-[#00843D]"}),e.jsx("div",{className:"w-5 h-5 rounded-full bg-[#FFD100]"})]}),e.jsxs("div",{className:"flex flex-col gap-4 mb-6 md:mb-8 md:flex-row md:items-end md:justify-between",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2.5 mb-2",children:[e.jsx("div",{className:"w-7 h-7 sm:w-8 sm:h-8 rounded-full bg-[#C8102E] flex items-center justify-center flex-shrink-0",children:e.jsx("span",{className:"text-white text-[10px] sm:text-xs font-black",children:"MA"})}),e.jsxs("span",{className:"text-background/40 text-[9px] sm:text-[10px] font-bold tracking-[0.2em] sm:tracking-[0.3em] uppercase leading-tight",children:["Malá Argenta · ",s==="cs"?"JÃzdnà Åád":s==="es"?"Horario":"Schedule"]})]}),e.jsx("h1",{className:"text-2xl sm:text-3xl md:text-4xl lg:text-5xl font-black text-background tracking-[-0.02em] leading-tight uppercase",children:"Food Events"}),e.jsx("p",{className:"text-xs sm:text-sm text-background/50 mt-1.5 sm:mt-2 max-w-md font-medium",children:s==="cs"?"Potkejte nás na trzÃch a festivalech po celé Praze.":s==="es"?"Encontranos en mercados y festivales por toda Praga.":"Find us at markets & festivals across Prague."})]}),!m&&D.length>0&&e.jsxs(j.div,{className:"flex flex-wrap gap-2 items-center",initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.4,delay:.2},children:[e.jsxs("div",{className:"flex items-center gap-2.5 bg-white/10 backdrop-blur-md border border-white/15 text-white rounded-full px-4 sm:px-5 py-2",children:[e.jsx("span",{className:"text-xl sm:text-2xl md:text-3xl font-bold tabular-nums leading-none",children:U}),e.jsxs("div",{className:"flex flex-col leading-none gap-0.5",children:[e.jsx("span",{className:"text-[10px] sm:text-xs font-semibold uppercase tracking-widest opacity-80",children:U===1?s==="cs"?"Zastávka":s==="es"?"Parada":"Stop":s==="cs"?"Zastávky":s==="es"?"Paradas":"Stops"}),e.jsx("span",{className:"text-[9px] sm:text-[10px] font-medium uppercase tracking-wider opacity-45",children:new Date().toLocaleDateString(s==="cs"?"cs-CZ":s==="es"?"es-ES":"en-GB",{month:"short",year:"numeric"})})]})]}),L>0&&e.jsxs("div",{className:"flex items-center gap-2 bg-[#00843D]/90 backdrop-blur-md text-white rounded-full px-4 sm:px-5 py-2",children:[e.jsxs("span",{className:"relative flex h-2 w-2",children:[e.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-white opacity-50"}),e.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-white"})]}),e.jsx("span",{className:"text-xl sm:text-2xl md:text-3xl font-bold tabular-nums leading-none",children:L}),e.jsx("span",{className:"text-[10px] sm:text-xs font-semibold uppercase tracking-widest opacity-90",children:s==="cs"?"Dnes":s==="es"?"Hoy":"Today"})]})]})]}),!m&&D.length>0&&e.jsxs(j.div,{className:"relative",initial:{opacity:0}
12,animate:{opacity:1},transition:{duration:.5,delay:.3},children:[e.jsxs("div",{className:"flex md:hidden items-center justify-end gap-1 mb-1 animate-pulse",children:[e.jsx("span",{className:"text-[9px] font-semibold text-background/25 uppercase tracking-wider",children:"swipe"}),e.jsx(z,{className:"w-3 h-3 text-background/25"})]}),e.jsx("div",{className:"overflow-x-auto -mx-6 md:mx-0 px-6 md:px-0 scrollbar-hide",children:e.jsxs("div",{className:"relative flex items-center min-w-[500px] md:min-w-0",children:[e.jsx(j.div,{className:"absolute left-0 right-0 h-[4px] rounded-full bg-[#C8102E]/40 top-1/2 -translate-y-1/2",initial:{scaleX:0,originX:0},animate:{scaleX:1},transition:{duration:.8,delay:.4,ease:"easeOut"}}),e.jsx("div",{className:"relative flex justify-between w-full py-6",children:D.map((t,n)=>{const a=v[n%v.length],i=t.dates.some(d=>_(d));return e.jsxs(j.div,{className:"flex flex-col items-center relative group cursor-default",style:{flex:1},initial:{scale:0,opacity:0},animate:{scale:1,opacity:1},transition:{type:"spring",stiffness:300,damping:20,delay:.5+n*.12},children:[e.jsx("span",{className:"text-[9px] md:text-[10px] font-bold text-background/70 mb-2 text-center leading-tight max-w-[80px] md:max-w-[120px] truncate",children:t.title}),e.jsxs("div",{className:"relative z-10",children:[e.jsx("div",{className:`w-7 h-7 md:w-8 md:h-8 rounded-full border-[3px] flex items-center justify-center transition-transform group-hover:scale-125 ${i?"shadow-[0_0_12px_rgba(200,16,46,0.5)]":""}`,style:{borderColor:a.bg,background:i?a.bg:"hsl(var(--foreground))"},children:i?e.jsx(j.div,{className:"w-2 h-2 rounded-full bg-white",animate:{scale:[1,1.3,1]},transition:{duration:1.5,repeat:1/0}}):e.jsx("div",{className:"w-2 h-2 rounded-full",style:{background:a.bg}})}),e.jsx("div",{className:"absolute -bottom-1 -right-1 w-4 h-4 rounded text-[8px] font-black flex items-center justify-center",style:{background:a.bg,color:a.text},children:String(n+1).padStart(2,"0")})]}),e.jsx("span",{className:`text-[9px] md:text-[10px] font-semibold mt-2 ${i?"text-[#C8102E]":"text-background/40"}`,children:t.nextDate?F(t.nextDate,s):"â"})]},n)})})]})}),e.jsxs("div",{className:"flex items-center justify-center gap-4 mt-2 pt-3 border-t border-background/10",children:[D.map((t,n)=>{const a=v[n%v.length];return e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("div",{className:"w-3 h-3 rounded-sm",style:{background:a.bg}}),e.jsx("span",{className:"text-[9px] font-bold text-background/30",children:String(n+1).padStart(2,"0")})]},n)}),e.jsx("span",{className:"text-[9px] text-background/20 font-medium ml-2",children:"pid.cz"})]})]})]})})]})}),(m||D.length>0||w.length>0)&&e.jsx("section",{className:"py-10 md:py-16 px-4",children:e.jsx("div",{className:"container mx-auto max-w-5xl",children:m?e.jsx("div",{className:"space-y-10",children:[...Array(3)].map((t,n)=>e.jsxs("div",{className:"flex gap-6",children:[e.jsxs("div",{className:"hidden md:flex flex-col items-center",children:[e.jsx("div",{className:"w-8 h-8 rounded-lg bg-secondary animate-pulse"}),e.jsx("div",{className:"w-[3px] flex-1 bg-secondary animate-pulse mt-2"})]}),e.jsx("div",{className:"flex-1 h-48 rounded-xl bg-secondary animate-pulse"})]},n))}):e.jsxs("div",{className:"relative",children:[D.map((t,n)=>{const a=v[n%v.length],i=_(t.nextDate),d=n===0;return e.jsxs(j.div,{className:"flex gap-0 md:gap-6 relative",initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0,margin:"-40px"},transition:{duration:.4,delay:n*.1},children:[e.jsxs("div",{className:"hidden md:flex flex-col items-center w-16 flex-shrink-0",children:[e.jsx(j.div,{className:"w-10 h-10 rounded-lg flex items-center justify-center text-xs font-black z-10 shadow-md",style:{background:a.bg,color:a.text},initial:{scale:0},whileInView:{scale:1},viewport:{once:!0},transition:{type:"spring",stiffness:400,damping:15,delay:.2+n*.1},whileHover:{scale:1.15,rotate:5},children:String(n+1).padStart(2,"0")}),(n<D.length-1||w.length>0)&&e.jsx(j.div,{className:"w-[3px] flex-1 my-1 rounded-full min-h-[40px]",style:{background:a.bg,opacity:.3},initial:{scaleY:0,originY:0},whileInView:{scaleY:1},viewport:{once:!0},transition:{duration:.5,delay:.4+n*.1}})]}),e.jsxs("div",{className:"flex-1 mb-8 group",children:[d&&e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[i&&e.jsxs("span",{className:"relative flex h-2 w-2",children:[e.jsx("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full opacity-75",style:{background:a.bg}}),e.jsx("span",{className:"relative inline-flex rounded-full h-2 w-2",style:{background:a.bg}})]}),e.jsx("span",{className:"text-[11px] font-black tracking-[0.2em] uppercase text-muted-foreground",children:s==="cs"?"Dalšà zastávka":s==="es"?"Próxima parada":"Next stop"})]}),e.jsxs("div",{className:"flex md:hidden items-center gap-2 mb-2",children:[e.jsx("div",{className:"w-7 h-7 rounded flex items-center justify-center text-[10px] font-black",style:{background:a.bg,color:a.text},children:String(n+1).padStart(2,"0")}),e.jsx("div",{className:"h-[2px] flex-1 rounded-full",style:{background:a.bg,opacity:.2}})]}),d?e.jsx("div",{className:"rounded-2xl overflow-hidden shadow-2xl transition-all duration-300 relative",style:{background:a.bg},children:e.jsxs("div",{className:"flex flex-col md:flex-row",children:[t.imageUrl&&e.jsxs("div",{className:"relative w-full md:w-[45%] h-56 md:h-auto overflow-hidden flex-shrink-0",children:[e.jsx("img",{src:t.imageUrl,alt:`Malá Argenta en ${t.title}`,loading:"lazy",decoding:"async",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-700"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-transparent to-black/20 hidden md:block"}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/30 to-transparent md:hidden"})]}),e.jsxs("div",{className:"flex-1 p-6 md:p-8 flex flex-col justify-center",style:{color:a.text},children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsx("div",{className:"w-6 h-6 rounded bg-white/20 flex items-center justify-center text-[10px] font-black",children:"01"}),e.jsx("div",{className:"h-[2px] w-8 rounded-full bg-white/20"}),e.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider opacity-60",children:s==="cs"?"PÅÃÅ¡tà odjezd":s==="es"?"Próxima salida":"Next departure"})]}),e.jsx("h3",{className:"text-2xl md:text-3xl font-black mb-4 tracking-[-0.01em]",children:t.title}),e.jsx("div",{className:"flex flex-wrap gap-1.5 mb-5",children:t.dates.map((l,b)=>{var C;const E=t.pastDates.includes(l),f=((C=t.nextDate)==null?void 0:C.getTime())===l.getTime(),A=_(l),S=V(l,t.timesByDate);return e.jsxs("span",{className:`inline-flex items-center gap-1.5 text-xs font-bold rounded-md px-3 py-1.5 transition-all ${E?"opacity-30 line-through":""}`,style:f?{background:"#fff",color:a.bg}:{background:"rgba(255,255,255,0.15)",color:"rgba(255,255,255,0.8)"},children:[e.jsx("span",{className:"w-2 h-2 rounded-full border-[1.5px] flex-shrink-0",style:{borderColor:f?a.bg:"rgba(255,255,255,0.5)",background:f?a.bg:"transparent"}}),F(l,s),S&&e.jsxs("span",{className:"inline-flex items-center gap-1 pl-1.5 ml-0.5 border-l border-current/30 opacity-90 font-semibold",children:[e.jsx(M,{className:"h-3 w-3 opacity-70"}),S]}),A&&e.jsx("span",{className:"text-[9px] uppercase tracking-wider font-black ml-0.5",children:s==="cs"?"dnes!":s==="es"?"¡hoy!":"today!"})]},b)})}),e.jsxs("div",{className:"flex flex-wrap items-center gap-4 mb-4",children:[t.time&&e.jsxs("span",{className:"inline-flex items-center gap-1.5 text-sm font-semibold opacity-80",children:[e.jsx(M,{className:"h-4 w-4 opacity-60"}),t.time]}),t.location&&e.jsxs("a",{href:t.locationUrl||`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(t.location)}`,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 text-sm font-semibold opacity-80 hover:opacity-100 transition-opacity underline-offset-2 hover:underline",children:[e.jsx($,{className:"h-4 w-4 opacity-60"}),t.location]})]}),t.infoUrl&&e.jsxs("a",{href:t.infoUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-sm font-bold rounded-full px-5 py-2.5 bg-white hover:bg-white/90 transition-colors w-fit shadow-lg",style:{color:a.bg},children:[s==="cs"?"VÃce info":s==="es"?"Más info":"More info",e.jsx(z,{className:"h-3.5 w-3.5"})]})]})]})}):e.jsx("div",{className:"rounded-2xl overflow-hidden border-2 transition-all duration-300 hover:shadow-xl bg-card",style:{borderColor:`${a.bg}30`},onMouseEnter:l=>l.currentTarget.style.borderColor=a.bg,onMouseLeave:l=>l.currentTarget.style.borderColor=`${a.bg}30`,children:e.jsxs("div",{className:"flex flex-col sm:flex-row",children:[t.imageUrl&&e.jsxs("div",{className:"relative w-full sm:w-52 h-44 sm:h-auto overflow-hidden flex-shrink-0",children:[e.jsx("img",{src:t.imageUrl,alt:`Malá Argenta en ${t.title}`,loading:"lazy",decoding:"async",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-700"}),e.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-1",style:{background:a.bg}})]}),e.jsxs("div",{className:"flex-1 p-5 md:p-7 flex flex-col justify-center",children:[e.jsx("h3",{className:"text-xl font-bold mb-3 tracking-[-0.01em]",children:t.title}),e.jsx("div",{className:"flex flex-wrap gap-1.5 mb-4",children:t.dates.map((l,b)=>{var C;const E=t.pastDates.includes(l),f=((C=t.nextDate)==null?void 0:C.getTime())===l.getTime(),A=_(l),S=V(l,t.timesByDate);return e.jsxs("span",{className:`inline-flex items-center gap-1.5 text-xs font-bold rounded-md px-2.5 py-1 transition-all ${E?"opacity-30 line-through":""}`,style:f?{background:a.bg,color:a.text}:E?{}:{background:`${a.bg}15`,color:a.bg},children:[e.jsx("span",{className:`w-2 h-2 rounded-full border-[1.5px] flex-shrink-0 ${E?"bg-muted-foreground
12/30 border-muted-foreground/30":""}`,style:E?{}:{borderColor:f?a.text:a.bg,background:f?a.text:"transparent"}}),F(l,s),S&&e.jsxs("span",{className:"inline-flex items-center gap-1 pl-1.5 ml-0.5 border-l border-current/30 opacity-90 font-semibold",children:[e.jsx(M,{className:"h-3 w-3 opacity-70"}),S]}),A&&e.jsx("span",{className:"text-[9px] uppercase tracking-wider font-black ml-0.5",children:s==="cs"?"dnes!":s==="es"?"¡hoy!":"today!"})]},b)})}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3 mb-3",children:[t.time&&e.jsxs("span",{className:"inline-flex items-center gap-1.5 text-xs font-semibold text-muted-foreground",children:[e.jsx(M,{className:"h-3.5 w-3.5",style:{color:a.bg}}),t.time]}),t.location&&e.jsxs("a",{href:t.locationUrl||`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(t.location)}`,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 text-xs font-semibold text-muted-foreground hover:text-foreground transition-colors underline-offset-2 hover:underline",children:[e.jsx($,{className:"h-3.5 w-3.5",style:{color:a.bg}}),t.location]})]}),t.infoUrl&&e.jsxs("a",{href:t.infoUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-xs font-bold rounded-full px-4 py-2 transition-all hover:opacity-80 w-fit",style:{background:a.bg,color:a.text},children:[s==="cs"?"VÃce info":s==="es"?"Más info":"More info",e.jsx(z,{className:"h-3 w-3"})]})]})]})})]})]},n)}),w.length>0&&e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex gap-0 md:gap-6 relative mb-4 mt-2",children:[e.jsxs("div",{className:"hidden md:flex flex-col items-center w-16 flex-shrink-0",children:[e.jsx("div",{className:"w-[3px] h-6 rounded-full bg-foreground
12/10"}),e.jsx("div",{className:"w-10 h-10 rounded-lg bg-foreground/10 flex items-center justify-center z-10",children:e.jsx(P,{className:"w-5 h-5 text-muted-foreground"})})]}),e.jsxs("div",{className:"flex-1 flex items-center gap-3 pt-2",children:[e.jsx("div",{className:"flex md:hidden items-center gap-2",children:e.jsx("div",{className:"w-7 h-7 rounded bg-foreground/10 flex items-center justify-center",children:e.jsx(P,{className:"w-4 h-4 text-muted-foreground"})})}),e.jsx("div",{className:"h-[1px] flex-1 bg-foreground/10"}),e.jsx("span",{className:"text-[11px] font-black tracking-[0.2em] uppercase text-muted-foreground/60 whitespace-nowrap",children:s==="cs"?"PÅÃjezd · DokonÄeno":s==="es"?"Llegada · Completado":"Arrival · Completed"}),e.jsx("div",{className:"h-[1px] flex-1 bg-foreground/10"})]})]}),w.map((t,n)=>{const a=D.length+n,i=v[a%v.length];return e.jsxs(j.div,{className:"flex gap-0 md:gap-6 relative",initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0,margin:"-40px"},transition:{duration:.4,delay:n*.1},children:[e.jsxs("div",{className:"hidden md:flex flex-col items-center w-16 flex-shrink-0",children:[e.jsx(j.div,{className:"w-10 h-10 rounded-lg flex items-center justify-center text-xs font-black z-10 shadow-md opacity-40",style:{background:i.bg,color:i.text},children:e.jsx(P,{className:"w-5 h-5"})}),n<w.length-1&&e.jsx("div",{className:"w-[3px] flex-1 my-1 rounded-full min-h-[40px]",style:{background:i.bg,opacity:.15}})]}),e.jsxs("div",{className:"flex-1 mb-6 group",children:[e.jsxs("div",{className:"flex md:hidden items-center gap-2 mb-2",children:[e.jsx("div",{className:"w-7 h-7 rounded flex items-center justify-center opacity-40",style:{background:i.bg,color:i.text},children:e.jsx(P,{className:"w-4 h-4"})}),e.jsx("div",{className:"h-[2px] flex-1 rounded-full",style:{background:i.bg,opacity:.1}})]}),e.jsx("div",{className:"rounded-2xl overflow-hidden border-2 bg-card opacity-60 hover:opacity-80 transition-all duration-300",style:{borderColor:`${i.bg}20`},children:e.jsxs("div",{className:"flex flex-col sm:flex-row",children:[t.imageUrl&&e.jsxs("div",{className:"relative w-full sm:w-44 h-36 sm:h-auto overflow-hidden flex-shrink-0",children:[e.jsx("img",{src:t.imageUrl,alt:`Malá Argenta en ${t.title}`,loading:"lazy",decoding:"async",className:"w-full h-full object-cover grayscale-[50%]"}),e.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-1",style:{background:i.bg,opacity:.4}})]}),e.jsxs("div",{className:"flex-1 p-5 flex flex-col justify-center",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[e.jsx("h3",{className:"text-lg font-bold tracking-[-0.01em] text-muted-foreground",children:t.title}),e.jsx("span",{className:"text-[9px] font-bold uppercase tracking-wider text-muted-foreground/50 bg-foreground
12/5 rounded-full px-2 py-0.5",children:s==="cs"?"DokonÄeno":s==="es"?"Completado":"Completed"})]}),e.jsx("div",{className:"flex flex-wrap gap-1.5 mb-3",children:t.dates.map((d,l)=>e.jsxs("span",{className:"inline-flex items-center gap-1.5 text-xs font-bold rounded-md px-2.5 py-1 opacity-40 line-through text-muted-foreground",children:[e.jsx("span",{className:"w-2 h-2 rounded-full bg-muted-foreground/30 border-[1.5px] border-muted-foreground/30 flex-shrink-0"}),F(d,s)]},l))}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[t.time&&e.jsxs("span",{className:"inline-flex items-center gap-1.5 text-xs font-semibold text-muted-foreground/50",children:[e.jsx(M,{className:"h-3.5 w-3.5"}),t.time]}),t.location&&e.jsxs("span",{className:"inline-flex items-center gap-1.5 text-xs font-semibold text-muted-foreground/50",children:[e.jsx($,{className:"h-3.5 w-3.5"}),t.location]})]})]})]})})]})]},`completed-${n}`)})]}),e.jsxs("div",{className:"hidden md:flex items-center gap-6",children:[e.jsx("div",{className:"w-16 flex justify-center",children:e.jsx("div",{className:"w-6 h-6 rounded border-[3px] border-foreground
12/20 bg-background"})}),e.jsx("span",{className:"text-[10px] font-bold tracking-[0.2em] uppercase text-muted-foreground/50",children:s==="cs"?"KoneÄná":s==="es"?"Terminal":"Terminus"})]})]})})}),B.length>0&&e.jsx("section",{className:"pb-12 px-4",children:e.jsxs("div",{className:"container mx-auto max-w-5xl",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx(ne,{className:"w-5 h-5 text-muted-foreground"}),e.jsx("h2",{className:"text-lg font-black uppercase tracking-wide text-muted-foreground",children:s==="cs"?"Archiv":s==="es"?"Archivo":"Archive"}),e.jsx("div",{className:"h-[1px] flex-1 bg-foreground/10"})]}),e.jsx("div",{className:"space-y-2",children:B.map(([t,n])=>{const[a,i]=t.split("-"),d=parseInt(a),l=parseInt(i),b=h.has(t),E=oe(l,s);return e.jsxs("div",{className:"rounded-xl border border-foreground/10 overflow-hidden bg-card",children:[e.jsxs("button",{onClick:()=>K(t),className:"w-full flex items-center justify-between p-4 hover:bg-foreground/5 transition-colors text-left",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(O,{className:"w-4 h-4 text-muted-foreground"}),e.jsxs("span",{className:"font-bold capitalize",children:[E," ",d]}),e.jsxs("span",{className:"text-xs text-muted-foreground bg-foreground
12/5 rounded-full px-2 py-0.5",children:[n.length," ",n.length===1?s==="cs"?"událost":s==="es"?"evento":"event":s==="cs"?"událostÃ":s==="es"?"eventos":"events"]})]}),e.jsx(W,{className:`w-4 h-4 text-muted-foreground transition-transform ${b?"rotate-180":""}`})]}),e.jsx(ee,{children:b&&e.jsx(j.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3},className:"overflow-hidden",children:e.jsx("div",{className:"px-4 pb-4 space-y-3 border-t border-foreground/5 pt-3",children:n.map((f,A)=>{const S=v[A%v.length],{time:C,location:Y}=Z(f.details||"");return e.jsxs("div",{className:"flex items-center gap-4 p-3 rounded-lg bg-foreground/[0.02] hover:bg-foreground/5 transition-colors",children:[f.image_url&&e.jsx("img",{src:f.image_url,alt:f.title,className:"w-14 h-14 rounded-lg object-cover flex-shrink-0 grayscale-[30%]",loading:"lazy"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-3 h-3 rounded-sm flex-shrink-0",style:{background:S.bg,opacity:.5}}),e.jsx("h4",{className:"text-sm font-bold truncate text-muted-foreground",children:f.title})]}),e.jsxs("div",{className:"flex items-center gap-3 mt-1",children:[C&&e.jsxs("span",{className:"text-[11px] text-muted-foreground/60 flex items-center gap-1",children:[e.jsx(M,{className:"w-3 h-3"})," ",C]}),Y&&e.jsxs("span",{className:"text-[11px] text-muted-foreground/60 flex items-center gap-1 truncate",children:[e.jsx($,{className:"w-3 h-3"})," ",Y]})]})]})]},f.id)})})})})]},t)})})]})}),!m&&!p&&T.length===0&&w.length===0&&e.jsx("section",{className:"py-20 px-4",children:e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"w-16 h-16 rounded-lg bg-foreground
12/5 flex items-center justify-center mx-auto mb-4",children:e.jsx(O,{className:"h-7 w-7 text-foreground/30"})}),e.jsx("p",{className:"text-muted-foreground text-base font-medium",children:s==="cs"?"Brzy pÅidáme nové události!":s==="es"?"¡Pronto agregamos nuevos eventos!":"New events coming soon!"})]})}),e.jsx(ae,{currentPath:"/events"}),e.jsx(te,{})]})};export{ue 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.