1import{n as e}from"./rolldown-runtime-CbXtAM7H.js";import{t}from"./react-GitiQ0dt.js";import{t as n}from"./jsx-runtime-CznXPbDH.js";import{t as r}from"./createLucideIcon-BBOrQZYu.js";import{t as i}from"./clock-jXoabG6J.js";import{t as a}from"./button-CDjoiE5F.js";import{$ as o,J as s,M as c,S as l,_ as u,b as d,g as f,h as p,i as m,m as h,p as g,r as _,rt as v,tt as y,v as b,y as x}from"./index-CbZ6YYW8.js";var S=r(`mic`,[[`path`,{d:`M12 19v3`,key:`npa21l`}],[`path`,{d:`M19 10v2a7 7 0 0 1-14 0v-2`,key:`1vc78b`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`13`,rx:`3`,key:`s6n7sd`}]]),C=e(t(),1),w=n(),T={category:`All`,location:`All`,band:`All`,pet:`All`,activation:`All`};function E({label:e,options:t,value:n,onChange:r}){return(0,w.jsxs)(`div`,{className:`flex flex-col gap-2 sm:flex-row sm:items-baseline`,children:[(0,w.jsx)(`span`,{className:`min-w-[6rem] font-display text-xs font-bold uppercase tracking-[0.18em] text-muted-foreground`,children:e}),(0,w.jsx)(`div`,{className:`flex flex-wrap gap-1.5`,children:[`All`,...t].map(e=>(0,w.jsx)(`button`,{type:`button`,onClick:()=>r(e),className:`rounded-full border px-3 py-1.5 text-xs font-medium transition-colors ${n===e?`border-transparent bg-secondary text-secondary-foreground`:`border-border bg-background text-muted-foreground hover:border-gold hover:text-foreground`}`,children:e},e))})]})}function D({limit:e,lockCategory:t,showSearch:n=!0,showFilters:r=!0}){let[D,O]=(0,C.useState)(`All`),[k,A]=(0,C.useState)(T),[j,M]=(0,C.useState)(``),N=e=>t=>A(n=>({...n,[e]:t})),P=Object.values(k).filter(e=>e!==`All`).length+(D===`All`?0:1),F=(0,C.useMemo)(()=>{let n=j.trim().toLowerCase(),r=g.filter(e=>(D===`All`||e.day===D)&&(!t||e.category===t)&&(k.category===`All`||e.category===k.category)&&(k.location===`All`||e.location===k.location)&&(k.band===`All`||l(e.start)===k.band)&&(k.pet===`All`||e.petTypes.includes(k.pet)||e.petTypes.includes(`All Pets`))&&(k.activation===`All`||e.activation===k.activation)&&(!n||`${e.title} ${e.presenter} ${e.location} ${e.activation} ${e.description}`.toLowerCase().includes(n)));return e?r.slice(0,e):r},[D,k,j,e,t]),I=(0,C.useMemo)(()=>{let e=new Map;for(let t of F){let n=`${f[t.day].short} · ${t.time}`;e.set(n,[...e.get(n)??[],t])}return[...e.entries()]},[F]);return(0,w.jsxs)(`div`,{children:[(0,w.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[[`All`,...u].map(e=>(0,w.jsx)(a,{size:`sm`,variant:D===e?`hero`:`outline`,className:`rounded-full uppercase tracking-wide`,onClick:()=>O(e),children:e===`All`?`Both days`:f[e].short},e)),P>0?(0,w.jsxs)(`button`,{type:`button`,onClick:()=>{A(T),O(`All`)},className:`inline-flex items-center gap-1 rounded-full border border-gold/60 px-3 py-1.5 text-xs font-medium text-muted-foreground hover:text-foreground`,children:[(0,w.jsx)(s,{className:`h-3.5 w-3.5`}),` Clear `,P,` filter`,P>1?`s`:``]}):null]}),r&&!t?(0,w.jsxs)(`div`,{className:`mt-5 space-y-4 rounded-2xl border border-border bg-card p-5 shadow-warm`,children:[(0,w.jsx)(E,{label:`Attraction`,options:p,value:k.category,onChange:N(`category`)}),(0,w.jsx)(E,{label:`Location`,options:b,value:k.location,onChange:N(`location`)}),(0,w.jsx)(E,{label:`Time`,options:d,value:k.band,onChange:N(`band`)}),(0,w.jsx)(E,{label:`Pet type`,options:x,value:k.pet,onChange:N(`pet`)}),(0,w.jsx)(E,{label:`Activation`,options:h,value:k.activation,onChange:N(`activation`)})]}):null,n?(0,w.jsx)(c,{value:j,onChange:e=>M(e.target.value),placeholder:`Search events, presenters, rings or breedsâ¦`,className:`mt-4 h-11`}):null,(0,w.jsxs)(`p`,{className:`mt-4 text-sm text-muted-foreground`,children:[`Showing `,F.length,` of `,g.length,` scheduled items.`]}),(0,w.jsxs)(`div`,{className:`mt-4 space-y-6`,children:[I.map(([e,t])=>(0,w.jsxs)(`div`,{children:[(0,w.jsxs)(`div`,{className:`mb-2 flex items-center gap-2 font-display text-sm font-bold uppercase tracking-[0.18em] text-primary`,children:[(0,w.jsx)(i,{className:`h-4 w-4`}),` `,e]}),(0,w.jsx)(`ul`,{className:`space-y-3`,children:t.map(e=>(0,w.jsx)(`li`,{className:`group rounded-2xl border border-border bg-card p-5 shadow-warm transition-all hover:border-gold/60`,children:(0,w.jsxs)(`div`,{className:`flex flex-wrap items-start gap-x-4 gap-y-2`,children:[(0,w.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,w.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,w.jsx)(`h3`,{className:`font-display text-lg font-semibold`,children:e.title}),(0,w.jsx)(m,{className:`bg-secondary text-secondary-foreground`,children:e.category}),(0,w.jsx)(m,{variant:`outline`,className:`border-gold/50 text-muted-foreground`,children:e.day})]}),(0,w.jsx)(`p`,{className:`mt-1.5 text-sm text-muted-foreground`,children:e.description}),(0,w.jsxs)(`div`,{className:`mt-3 flex flex-wrap gap-x-5 gap-y-1 text-xs text-muted-foreground`,children:[(0,w.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,w.jsx)(S,{className:`h-3.5 w-3.5 text-gold`}),` `,e.presenter]}),(0,w.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,w.jsx)(v,{className:`h-3.5 w-3.5 text-gold`}),` `,e.location]}),(0,w.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,w.jsx)(o,{className:`h-3.5 w-3.5 text-gold`}),` `,e.activation]}),(0,w.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,w.jsx)(y,{className:`h-3.5 w-3.5 text-gold`}),` `,e.petTypes.join(`, `)]})]})]}),(0,w.jsx)(_,{item:{id:`event-${e.id}`,label:e.title,kind:`event`,meta:`${e.day} · ${e.time} · ${e.location}`}})]})},e.id))})]},e)),F.length===0?(0,w.jsx)(`div`,{className:`rounded-2xl border border-dashed border-border p-10 text-center text-muted-foreground`,children:`No events match those filters yet â try another day, location or pet type.`}):null]})]})}export{D as t};
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.