1import{r as c,K as Y,q as I,j as e,F as d,C as h,S as K,I as Q,J as V,Q as N,X as z,B as T,x as J,L as $,g as X,T as U,M as E,A as Z}from"./index-Bcg6ZirZ.js";import{C as y,E as ee,a as F,b as L}from"./public-event-card-pOIjFCee.js";import{C as se}from"./card--vI6b00c.js";import{F as M}from"./funnel-CjLdqv76.js";import{L as te}from"./layout-grid-BG-nyL1O.js";import{L as ae}from"./list-C2kr3QVG.js";import{C as re}from"./chevron-left-BVfK9YPC.js";import{C as le}from"./chevron-right-CgMglcAD.js";import{R as ie}from"./repeat-DO63ehZ_.js";import"./live-status-CZ2oIoTp.js";import"./palette-BFhmM_vv.js";import"./music--mG4vyy3.js";import"./utensils-Zzz3tuYW.js";import"./graduation-cap-DZIq9kTV.js";import"./briefcase-7S0tJACe.js";import"./radio-Dj31-mBx.js";import"./share-2-DW0T3C8l.js";const ne={all:"bg-[var(--public-teal)]",community:"bg-blue-600",arts:"bg-purple-600",music:"bg-pink-600",food:"bg-orange-600",sports:"bg-green-700",education:"bg-indigo-600",charity:"bg-rose-600",business:"bg-slate-600"},oe={community:"bg-blue-500",arts:"bg-purple-500",music:"bg-pink-500",food:"bg-orange-500",sports:"bg-green-500",education:"bg-indigo-500",charity:"bg-rose-500",business:"bg-slate-500"},P=[{value:"all",label:"All Dates"},{value:"today",label:"Today"},{value:"week",label:"This Week"},{value:"weekend",label:"This Weekend"},{value:"month",label:"This Month"}];function de({title:t,icon:g,events:i,color:x}){const n=c.useRef(null),b=r=>{n.current?.scrollBy({left:r*320,behavior:"smooth"})};return i.length===0?null:e.jsxs("div",{className:"py-6",children:[e.jsxs("div",{className:"flex items-center justify-between mb-4",children:[e.jsxs("h2",{className:"flex items-center gap-2.5 text-lg font-bold",children:[e.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary/10 flex items-center justify-center",children:e.jsx(g,{className:`w-4.5 h-4.5 ${x||"text-primary"}`})}),t,e.jsx(d,{variant:"secondary",className:"text-[10px] font-normal",children:i.length})]}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx("button",{onClick:()=>b(-1),"aria-label":`Previous ${t} events`,className:"p-1.5 rounded-lg hover:bg-muted transition-colors border border-transparent hover:border-border",children:e.jsx(re,{className:"w-4 h-4 text-muted-foreground","aria-hidden":"true"})}),e.jsx("button",{onClick:()=>b(1),"aria-label":`Next ${t} events`,className:"p-1.5 rounded-lg hover:bg-muted transition-colors border border-transparent hover:border-border",children:e.jsx(le,{className:"w-4 h-4 text-muted-foreground","aria-hidden":"true"})})]})]}),e.jsx("div",{ref:n,className:"flex gap-4 overflow-x-auto pb-2 -mx-4 px-4 snap-x scrollbar-hide",children:i.map(r=>{const p=y.find(C=>C.value===r.category)?.icon||h;return e.jsx($,{href:r.detailHref||`/events/${r.slug}`,children:e.jsxs("div",{className:"min-w-[300px] max-w-[340px] snap-start border rounded-xl bg-card hover:shadow-lg transition-all duration-300 cursor-pointer group relative overflow-hidden","data-testid":`scroll-event-${r.id}`,children:[e.jsxs("div",{className:"h-28 relative",children:[e.jsx(F,{category:r.category,size:"md",imageUrl:r.imageUrl}),e.jsx("div",{className:"absolute top-2 left-2 flex gap-1.5",children:e.jsxs(d,{className:`text-[10px] ${L[r.category]||""} shadow-sm`,children:[e.jsx(p,{className:"w-2.5 h-2.5 mr-0.5"})," ",r.category]})})]}),e.jsxs("div",{className:"p-4",children:[e.jsx("h3",{className:"font-bold text-sm mb-2 line-clamp-1 group-hover:text-primary transition-colors",children:r.title}),e.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground mb-3",children:[e.jsx(h,{className:"w-3 h-3 shrink-0 text-primary/60"}),new Date(r.startDate).toLocaleDateString("en-US",{month:"short",day:"numeric"}),e.jsx("span",{className:"text-muted-foreground/40",children:"·"}),e.jsx(E,{className:"w-3 h-3 shrink-0 text-primary/60"}),e.jsx("span",{className:"truncate",children:r.location})]}),!r.isFree&&e.jsx("div",{className:"flex justify-end pt-2.5 border-t",children:e.jsxs(d,{variant:"outline",className:"text-[10px]",children:["$",((r.priceCents||0)/100).toFixed(0)]})})]})]})}
1,`${r.source}:${r.id}`)})})]})}function ce({event:t}){const i=y.find(n=>n.value===t.category)?.icon||h,x=(t.viewCount||0)>100;return e.jsx($,{href:t.detailHref||`/events/${t.slug}`,children:e.jsxs("div",{className:"public-card flex gap-4 p-4 border rounded-xl hover:shadow-md hover:border-primary/20 hover:-translate-y-0.5 transition-all duration-300 group cursor-pointer","data-testid":`list-event-${t.id}`,children:[e.jsx("div",{className:`w-1 shrink-0 rounded-full ${oe[t.category]||"bg-primary"}`}),e.jsx("div",{className:"w-16 h-16 rounded-xl overflow-hidden shrink-0",children:e.jsx(F,{category:t.category,size:"sm",imageUrl:t.imageUrl})}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[e.jsx("h4",{className:"font-semibold text-sm truncate group-hover:text-primary transition-colors",children:t.title}),x&&e.jsx(U,{className:"w-3.5 h-3.5 text-red-500 shrink-0"})]}),e.jsxs("div",{className:"flex items-center gap-3 text-xs text-muted-foreground mb-1",children:[e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(N,{className:"w-3 h-3"}),new Date(t.startDate).toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit"})]}),e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(E,{className:"w-3 h-3"}),e.jsx("span",{className:"truncate max-w-[150px]",children:t.location})]})]}),e.jsxs("div",{className:"flex items-center gap-1.5",children:[e.jsxs(d,{className:`text-[10px] px-1.5 py-0 ${L[t.category]||""}`,children:[e.jsx(i,{className:"w-2.5 h-2.5 mr-0.5"})," ",t.category]}),!t.isFree&&e.jsxs(d,{variant:"outline",className:"text-[10px] px-1.5 py-0",children:["$",((t.priceCents||0)/100).toFixed(0)]}),t.isRecurring&&e.jsxs(d,{variant:"outline",className:"text-[10px] px-1.5 py-0",children:[e.jsx(ie,{className:"w-2.5 h-2.5 mr-0.5"})," Recurring"]})]})]})]})})}function me({event:t}){const i=y.find(x=>x.value===t.category)?.icon||h;return e.jsx($,{href:t.detailHref||`/events/${t.slug}`,children:e.jsx(se,{className:"public-card overflow-hidden cursor-pointer group hover:shadow-2xl transition-all duration-300 border-2 border-amber-200/50 hover:border-amber-300/70","data-testid":"card-spotlight-event",children:e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-5",children:[e.jsxs("div",{className:"md:col-span-2 relative h-48 md:h-auto",children:[e.jsx(F,{category:t.category,size:"lg",imageUrl:t.imageUrl}),e.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/20 to-transparent md:bg-gradient-to-r md:from-transparent md:to-transparent"}),e.jsx("div",{className:"absolute top-3 left-3 flex gap-1.5",children:e.jsxs(d,{className:"bg-amber-100/95 text-amber-700 border-amber-200 text-xs shadow-md backdrop-blur-sm",children:[e.jsx(X,{className:"w-3 h-3 mr-1 fill-amber-500"})," Spotlight"]})})]}),e.jsxs("div",{className:"md:col-span-3 p-6 md:p-8 flex flex-col justify-between",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[e.jsxs(d,{className:`text-[10px] ${L[t.category]||""}`,children:[e.jsx(i,{className:"w-3 h-3 mr-1"})," ",t.category]}),(t.viewCount||0)>100&&e.jsxs(d,{className:"text-[10px] bg-red-100 text-red-600 border-red-200",children:[e.jsx(U,{className:"w-3 h-3 mr-1"})," Trending"]})]}),e.jsx("h2",{className:"text-xl md:text-2xl font-display font-extrabold mb-3 group-hover:text-primary transition-colors leading-tight",children:t.title}),e.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2 mb-4",children:t.description}),e.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground mb-4",children:[e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(h,{className:"w-4 h-4 text-primary"}),new Date(t.startDate).toLocaleDateString("en-US",{weekday:"short",month:"short",day:"numeric"})]}),e.jsxs("span",{className:"flex items-center gap-1.5",children:[e.jsx(N,{className:"w-4 h-4 text-primary"}),new Date(t.startDate).toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit"})]})]}),e.jsxs("div",{className:"flex items-center gap-3 p-3 bg-muted/50 rounded-xl mb-4",children:[e.jsx(E,{className:"w-4 h-4 text-primary shrink-0"}),e.jsxs("div",{children:[e.jsx("div",{className:"text-sm font-medium",children:t.location}),t.address&&e.jsx("div",{className:"text-xs text-muted-foreground",children:t.address})]})]})]}),e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsxs("div",{className:"text-center",children:[e.jsx("div",{className:"text-lg font-bold",children:t.viewCount||0}),e.jsx("div",{className:"text-[10px] text-muted-foreground uppercase tracking-wider",children:"Detail views"})]}),!t.isFree&&e.jsxs("div",{className:"text-center",children:[e.jsxs("div",{className:"text-lg font-bold",children:["$",((t.priceCents||0)/100).toFixed(0)]}),e.jsx("div",{className:"text-[10px] text-muted-foreground uppercase tracking-wider",children:"Price"})]})]}),e.jsxs(T,{size:"sm",className:"gap-1.5 bg-primary hover:bg-primary/90 text-xs","data-testid":"button-spotlight-view",children:["View Details ",e.jsx(Z,{className:"w-3.5 h-3.5"})]})]})]})]})})})}function $e(){c.useEffect(()=>{Y("Events")},[]);const[t,g]=c.useState(""),[i,x]=c.useState("all"),[n,b]=c.useState("all"),[r,v]=c.useState("all"),[p,C]=c.useState("date"),[k,A]=c.useState("grid"),[_,W]=c.useState(0);c.useEffect(()=>{const s=setInterval(()=>W(a=>a+1),3e4);return()=>clearInterval(s)},[]);const{data:q,isLoading:O,error:B}=I({queryKey:["/api/public/events"],queryFn:async()=>{const s=await fetch("/api/public/events");if(!s.ok)throw new Error("Failed to load events");return s.json()}}),{data:H}
1=I({queryKey:["/api/public/spotlight-event"],queryFn:async()=>{const s=await fetch("/api/public/spotlight-event");if(!s.ok)throw new Error("Failed to load spotlight event");return s.json()}}),u=q?.events||[],j=c.useMemo(()=>{let s=[...u];if(t){const a=t.toLowerCase();s=s.filter(l=>l.title.toLowerCase().includes(a)||l.description.toLowerCase().includes(a)||l.location.toLowerCase().includes(a))}if(i!=="all"&&(s=s.filter(a=>a.category===i)),r==="free"&&(s=s.filter(a=>a.isFree)),r==="paid"&&(s=s.filter(a=>!a.isFree)),n!=="all"){const a=new Date,l=new Date(a.getFullYear(),a.getMonth(),a.getDate());s=s.filter(S=>{const m=new Date(S.startDate);if(n==="today")return m.toDateString()===l.toDateString();if(n==="week"){const o=new Date(l);return o.setDate(o.getDate()+7),m>=l&&m<=o}if(n==="weekend"){const o=new Date(l);o.setDate(o.getDate()+(6-o.getDay()));const w=new Date(o);return w.setDate(w.getDate()+1),w.setHours(23,59,59),m>=o&&m<=w}if(n==="month"){const o=new Date(l);return o.setMonth(o.getMonth()+1),m>=l&&m<=o}return!0})}return p==="date"&&s.sort((a,l)=>new Date(a.startDate).getTime()-new Date(l.startDate).getTime()),p==="newest"&&s.sort((a,l)=>new Date(l.createdAt).getTime()-new Date(a.createdAt).getTime()),p==="views"&&s.sort((a,l)=>(l.viewCount||0)-(a.viewCount||0)),s},[u,t,i,n,r,p]),D=c.useMemo(()=>{const s=new Date,a=new Date(s.getFullYear(),s.getMonth(),s.getDate()),l=new Date(a);return l.setDate(l.getDate()+7),u.filter(S=>{const m=new Date(S.startDate);return m>=a&&m<=l})},[u]),G=new Set(u.map(s=>s.category)).size,R=H?.event||null,f=t||i!=="all"||n!=="all"||r!=="all";return e.jsxs("div",{className:"public-shell flex flex-col min-h-[calc(100vh-3.5rem)]",children:[e.jsxs("div",{className:"public-hero",children:[e.jsx("div",{className:"absolute inset-0 opacity-10",style:{backgroundImage:"radial-gradient(circle at 30% 40%, rgba(255,255,255,0.12) 1px, transparent 1px)",backgroundSize:"50px 50px"}}),e.jsx("div",{className:"absolute top-0 right-0 w-[500px] h-[500px] bg-[var(--public-honey)]/10 rounded-full blur-[120px]"}),e.jsx("div",{className:"absolute bottom-0 left-0 w-80 h-80 bg-emerald-400/5 rounded-full blur-[80px]"}),e.jsx("div",{className:"absolute top-1/3 left-1/2 w-40 h-40 bg-white/[0.02] rounded-full blur-3xl"}),e.jsxs("div",{className:"public-container px-4 py-14 md:py-20 relative z-10",children:[e.jsxs("div",{className:"max-w-3xl",children:[e.jsxs(d,{className:"mb-5 bg-white/10 text-white/90 border-white/20 px-3.5 py-1.5 text-xs backdrop-blur-sm",children:[e.jsx(h,{className:"w-3.5 h-3.5 mr-1.5 text-[hsl(25,85%,55%)]"}),"Events from every organization"]}),e.jsxs("h1",{className:"text-3xl md:text-5xl lg:text-[3.5rem] font-display font-extrabold text-white mb-4 leading-[1.1] tracking-tight","data-testid":"text-events-title",children:["Discover What's Happening",e.jsx("br",{className:"hidden md:block"})," Across the Community"]}),e.jsx("p",{className:"text-white/60 text-base md:text-lg mb-8 max-w-xl leading-relaxed",children:"Explore festivals, markets, arts, music, sports, and more from organizations across the community."}),e.jsx("div",{className:"flex flex-col sm:flex-row gap-3 max-w-xl",children:e.jsxs("div",{className:"relative flex-1",children:[e.jsx(K,{className:"absolute left-3.5 top-1/2 -translate-y-1/2 w-4 h-4 text-white/40"}),e.jsx(Q,{placeholder:"Search events, locations, categories...",value:t,onChange:s=>g(s.target.value),className:"pl-10 bg-white/10 border-white/15 text-white placeholder:text-white/35 h-12 rounded-xl backdrop-blur-sm focus:bg-white/15 focus:border-white/30 transition-all","data-testid":"input-search-events"})]})})]}),e.jsx("div",{className:"flex w-full flex-wrap gap-2 mt-8","data-testid":"category-filter-chips",children:y.map(s=>{const a=i===s.value;return e.jsxs("button",{type:"button",onClick:()=>x(a?"all":s.value),"aria-pressed":a,className:`inline-flex min-h-9 items-center gap-1.5 rounded-full border-2 px-3.5 py-2 text-xs text-[var(--public-deep)] transition-[background-color,border-color,box-shadow,transform] duration-200 focus-visible:outline-none focus-visible:ring-4 focus-visible:ring-white focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--public-deep)] active:translate-y-
1px ${a?"border-white bg-[var(--public-honey)] font-bold shadow-[0_5px_0_rgba(19,78,74,0.32)] -translate-y-0.5":"border-[rgba(19,78,74,0.38)] bg-[var(--public-cream)] font-semibold shadow-[0_2px_0_rgba(19,78,74,0.22)] hover:border-[var(--public-deep)] hover:bg-white hover:-translate-y-0.5"}`,"data-testid":`chip-category-${s.value}`,children:[e.jsx("span",{className:`grid h-5 w-5 shrink-0 place-items-center rounded-full ${ne[s.value]}`,"aria-hidden":"true",children:e.jsx(s.icon,{className:"h-3 w-3 text-white",strokeWidth:2.5})}),e.jsx("span",{children:s.label}),a&&e.jsx(V,{className:"h-3.5 w-3.5 shrink-0",strokeWidth:3,"aria-hidden":"true"})]},s.value)})})]})]}),e.jsx("div",{className:"bg-white border-b sticky top-14 z-30 shadow-sm",children:e.jsx("div",{className:"container mx-auto px-4",children:e.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 divide-x",children:[{value:u.length,label:"Total Events",icon:h,sub:"approved & upcoming"},{value:D.length,label:"This Week",icon:N,sub:"next 7 days"},{value:G,label:"Categories",icon:M,sub:"event types"}].map(s=>e.jsxs("div",{className:"flex items-center gap-3 py-3.5 px-4",children:[e.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 flex items-center justify-center shrink-0",children:e.jsx(s.icon,{className:"w-4.5 h-4.5 text-primary"})}),e.jsxs("div",{children:[e.jsx("div",{className:"text-xl font-bold leading-none","data-testid":`stat-${s.label.toLowerCase().replace(/\s/g,"-")}`,children:s.value}),e.jsx("div",{className:"text-[10px] text-muted-foreground uppercase tracking-wider font-medium mt-0.5",children:s.label})]})]},s.label))})})}),!f&&R&&e.jsx("div",{className:"container mx-auto px-4 pt-8",children:e.jsx(me,{event:R})}),!f&&e.jsx("div",{className:"container mx-auto px-4",children:D.length>0&&e.jsx(de,{title:"This Week",icon:N,events:D,color:"text-blue-500"})}),e.jsxs("div",{className:"container mx-auto px-4 py-6 flex-1",children:[e.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-3 mb-6",children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[P.map(s=>e.jsx("button",{onClick:()=>b(s.value),className:`px-3 py-1.5 rounded-lg text-xs font-medium transition-all duration-200 ${n===s.value?"bg-primary text-primary-foreground shadow-sm":"bg-muted hover:bg-muted/80 text-muted-foreground"}`,"data-testid":`filter-date-${s.value}`,children:s.label},s.value)),e.jsx("div",{className:"h-5 w-px bg-border mx-1 hidden sm:block"}),e.jsxs("select",{value:r,onChange:s=>v(s.target.value),className:"px-2.5 py-1.5 rounded-lg text-xs bg-muted border-0 text-muted-foreground cursor-pointer","data-testid":"filter-price",children:[e.jsx("option",{value:"all",children:"Any Price"}),e.jsx("option",{value:"free",children:"Free Only"}),e.jsx("option",{value:"paid",children:"Paid Only"})]}),f&&e.jsxs("button",{onClick:()=>{g(""),x("all"),b("all"),v("all")},className:"px-2.5 py-1.5 rounded-lg text-xs text-muted-foreground hover:text-foreground flex items-center gap-1 hover:bg-muted transition-colors","data-testid":"button-clear-filters",children:[e.jsx(z,{className:"w-3 h-3"})," Clear All"]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsxs("select",{value:p,onChange:s=>C(s.target.value),className:"px-2.5 py-1.5 rounded-lg text-xs bg-muted border-0 text-muted-foreground cursor-pointer","data-testid":"sort-events",children:[e.jsx("option",{value:"date",children:"Sort by Date"}),e.jsx("option",{value:"newest",children:"Newest"}),e.jsx("option",{value:"views",children:"Most Viewed"})]}),e.jsxs("div",{className:"flex border rounded-lg overflow-hidden",children:[e.jsx("button",{onClick:()=>A("grid"),className:`p-1.5 transition-colors ${k==="grid"?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground hover:bg-muted/80"}`,"data-testid":"view-grid",children:e.jsx(te,{className:"w-3.5 h-3.5"})}),e.jsx("button",{onClick:()=>A("list"),className:`p-1.5 transition-colors ${k==="list"?"bg-primary text-primary-foreground":"bg-muted text-muted-foreground hover:bg-muted/80"}`,"data-testid":"view-list",children:e.jsx(ae,{className:"w-3.5 h-3.5"})})]})]})]}),f&&e.jsxs("div",{className:"flex items-center gap-2 mb-5 text-xs text-muted-foreground bg-muted/30 rounded-xl px-4 py-2.5",children:[e.jsx(M,{className:"w-3.5 h-3.5"}),e.jsxs("span",{children:["Showing ",e.jsx("strong",{className:"text-foreground",children:j.length})," of ",u.length," events"]}),i!=="all"&&e.jsx(d,{variant:"secondary",className:"text-[10px]",children:i}),n!=="all"&&e.jsx(d,{variant:"secondary",className:"text-[10px]",children:P.find(s=>
1s.value===n)?.label}),r!=="all"&&e.jsx(d,{variant:"secondary",className:"text-[10px]",children:r==="free"?"Free":"Paid"})]}),O?e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5",children:[1,2,3,4,5,6].map(s=>e.jsxs("div",{className:"rounded-xl overflow-hidden border",children:[e.jsx("div",{className:"h-36 bg-muted animate-pulse"}),e.jsxs("div",{className:"p-5 space-y-3",children:[e.jsxs("div",{className:"flex gap-2",children:[e.jsx("div",{className:"h-5 w-16 bg-muted rounded-full animate-pulse"}),e.jsx("div",{className:"h-5 w-12 bg-muted rounded-full animate-pulse"})]}),e.jsx("div",{className:"h-5 w-3/4 bg-muted rounded animate-pulse"}),e.jsx("div",{className:"h-4 w-1/2 bg-muted rounded animate-pulse"}),e.jsx("div",{className:"h-4 w-2/3 bg-muted rounded animate-pulse"}),e.jsx("div",{className:"h-8 bg-muted rounded-lg animate-pulse"})]})]},s))}):B?e.jsxs("div",{className:"text-center py-20",children:[e.jsx("div",{className:"w-20 h-20 rounded-2xl bg-red-50 flex items-center justify-center mx-auto mb-5",children:e.jsx(z,{className:"w-10 h-10 text-red-400"})}),e.jsx("h3",{className:"text-xl font-bold mb-2",children:"Something went wrong"}),e.jsx("p",{className:"text-muted-foreground text-sm mb-6 max-w-sm mx-auto",children:"We couldn't load the events. Please try again."}),e.jsx(T,{variant:"outline",size:"sm",onClick:()=>J.invalidateQueries({queryKey:["/api/public/events"]}),className:"rounded-xl",children:"Try Again"})]}):j.length===0?e.jsxs("div",{className:"text-center py-20",children:[e.jsx("div",{className:"w-20 h-20 rounded-2xl bg-muted flex items-center justify-center mx-auto mb-5",children:e.jsx(h,{className:"w-10 h-10 text-muted-foreground/40"})}),e.jsx("h3",{className:"text-xl font-bold mb-2",children:"No events found"}),e.jsx("p",{className:"text-muted-foreground text-sm mb-6 max-w-sm mx-auto",children:f?"Try adjusting your filters or search terms to find more events.":"There are no upcoming events listed right now."}),f&&e.jsx(T,{variant:"outline",size:"sm",onClick:()=>{g(""),x("all"),b("all"),v("all")},className:"rounded-xl",children:"Clear Filters"})]}):k==="grid"?e.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5",children:j.map(s=>e.jsx(ee,{event:s,nowTick:_},`${s.source}:${s.id}`))}):e.jsx("div",{className:"space-y-2.5",children:j.map(s=>e.jsx(ce,{event:s},`${s.source}:${s.id}`))}),e.jsxs("div",{className:"text-center py-10 text-xs text-muted-foreground",children:["Showing ",j.length," of ",u.length," events"]})]})]})}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.