1import{p as P,q as j,i as F,D as h,W as b,r as o,j as e,S as q,E as D,C as N,v as E,P as _,ai as M,aj as w,ak as $,al as O,L as v,af as Q,aa as T,am as I}from"./index-BXjvZjW6.js";import{I as R}from"./InstructorInviteCTA-Cou3scsB.js";import{S as B}from"./search-O-FwtoL4.js";const W=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],z=P("funnel",W),k=s=>w({queryKey:["programs",s],queryFn:()=>$({data:{locale:s}})}),S=s=>w({queryKey:["program_filters",s],queryFn:()=>O({data:{locale:s}})});T("/programs")({head:()=>({meta:[{title:"All Dance Programs â Everdance"},{name:"description",content:"Browse 100 dance programs designed for women 30+ at home. Filter by goal, style, audience and body focus â from Better Mood to Less Weight."},{property:"og:title",content:"All Dance Programs â Everdance"},{property:"og:description",content:"100 dance programs for women 30+. Mood, sleep, weight loss, chair dance, ballet, Latin, hip-hop and more."},{property:"og:url",content:"https://everdance.app/en/programs"}],links:[{rel:"canonical",href:"https://everdance.app/en/programs"}]}),loader:({context:s})=>{s.queryClient.ensureQueryData(k(h)),s.queryClient.ensureQueryData(S(h))},component:L});function c({label:s,slug:a,locale:l}){return e.jsx(v,{to:"/$locale/programs/filter/$slug",params:{locale:l,slug:a},className:"rounded-full border border-border bg-card px-3.5 py-1.5 text-sm text-foreground transition hover:border-primary hover:bg-primary/10 hover:text-primary",children:s})}function L(){const{i18n:s}=j(),a=F(s.language)?s.language:h,{data:l}=b(k(a)),{data:i}=b(S(a)),[t,p]=o.useState("featured"),[x,A]=o.useState(""),[g,C]=o.useState(!1),d=o.useMemo(()=>{const r=m=>i.filter(n=>n.kind===m);return{goal:r("goal"),style:r("style"),audience:r("audience"),body:r("body"),time:r("time")}},[i]),f=o.useMemo(()=>{const r=x.trim().toLowerCase(),m=l.filter(n=>!(r&&!n.name.toLowerCase().includes(r)));return t==="featured"?m:[...m].sort((n,y)=>t==="popular"?y.popularity-n.popularity:+new Date(y.content_created_at??0)-+new Date(n.content_created_at??0))},[l,x,t]);return e.jsxs(q,{children:[e.jsx("section",{className:"container-edge pt-6 lg:pt-8",children:e.jsxs("div",{className:"max-w-3xl",children:[e.jsx(D,{children:"All programs"}),e.jsxs("h1",{className:"mt-3 font-display text-4xl leading-[1.02] sm:text-5xl lg:text-5xl",children:[l.length," dance programs ",e.jsx("span",{className:"italic text-primary",children:"for women 30+"}),"."]}),e.jsx("p",{className:"mt-3 text-base text-muted-foreground",children:"Made for home. Less than 15 minutes a day, no equipment."}),e.jsxs("div",{className:"mt-4 flex flex-wrap items-center gap-3",children:[e.jsxs("span",{className:"inline-flex items-center gap-2 rounded-full border border-border bg-card px-3 py-1.5 text-sm",children:[e.jsx(N,{className:"h-4 w-4 text-primary"})," New programs every week"]}),e.jsxs("a",{href:"/go/join",className:"inline-flex items-center gap-2 rounded-full bg-primary px-5 py-2 text-sm font-medium text-primary-foreground shadow-warm",children:["Start Dancing ",e.jsx(E,{className:"h-4 w-4"})]})]})]})}),e.jsxs("section",{className:"container-edge mt-6 lg:mt-8",children:[e.jsxs("div",{className:"flex flex-col gap-3 lg:flex-row lg:items-center lg:justify-between",children:[e.jsxs("div",{className:"relative w-full lg:max-w-sm",children:[e.jsx(B,{className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),e.jsx("input",{type:"search",placeholder:"Search programsâ¦",value:x,onChange:r=>A(r.target.value),className:"w-full rounded-full border border-border bg-background py-2.5 pl-9 pr-4 text-sm outline-none focus:border-primary"})]}),e.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[e.jsxs("div",{className:"inline-flex rounded-full border border-border bg-background p-1",children:[e.jsx("button",{onClick:()=>p("featured"),className:`rounded-full px-4 py-1.5 text-sm transition ${t==="featured"?"bg-primary text-primary-foreground":"text-foreground
1/70"}`,children:"Featured"}),e.jsx("button",{onClick:()=>p("popular"),className:`rounded-full px-4 py-1.5 text-sm transition ${t==="popular"?"bg-primary text-primary-foreground":"text-foreground/70"}`,children:"Popular"}),e.jsx("button",{onClick:()=>p("new"),className:`rounded-full px-4 py-1.5 text-sm transition ${t==="new"?"bg-primary text-primary-foreground":"text-foreground/70"}`,children:"New"})]}),e.jsxs("button",{type:"button",onClick:()=>C(r=>!r),"aria-expanded":g,className:"inline-flex items-center gap-2 rounded-full border border-border bg-card px-4 py-2 text-sm font-medium transition hover:border-primary hover:text-primary",children:[e.jsx(z,{className:"h-4 w-4"}),"Filters",e.jsx("span",{className:"text-muted-foreground",children:g?"â´":"â¾"})]})]})]}),g?e.jsxs("div",{className:"mt-5 space-y-5 rounded-3xl border border-border bg-card p-5 lg:p-6",children:[e.jsx(u,{title:"Goals",children:d.goal.map(r=>e.jsx(c,{label:r.label,slug:r.slug,locale:a},r.slug))}),e.jsx(u,{title:"Styles",children:d.style.map(r=>e.jsx(c,{label:r.label,slug:r.slug,locale:a},r.slug))}),e.jsx(u,{title:"Audience",children:d.audience.map(r=>e.jsx(c,{label:r.label,slug:r.slug,locale:a},r.slug))}),e.jsx(u,{title:"Body focus",children:d.body.map(r=>e.jsx(c,{label:r.label,slug:r.slug,locale:a},r.slug))}),e.jsx(u,{title:"Workout time",children:d.time.map(r=>e.jsx(c,{label:r.label,slug:r.slug,locale:a},r.slug))})]}):null]}),e.jsxs("section",{className:"container-edge mt-6 lg:mt-8",children:[e.jsxs("div",{className:"mb-4 text-sm text-muted-foreground",children:[f.length," program",f.length===1?"":"s"]}),e.jsx("div",{className:"grid gap-5 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",children:f.map(r=>e.jsx(G,{p:r,locale:a},r.slug))})]}),e.jsx(R,{}),e.jsx(_,{title:"Pick a program. Press play. Start today."}),e.jsx(M,{})]})}function u({title:s,children:a}){return e.jsxs("div",{children:[e.jsx("div",{className:"mb-2 text-xs font-medium uppercase tracking-[0.18em] text-muted-foreground",children:s}),e.jsx("div",{className:"flex flex-wrap gap-2",children:a})]})}function G({p:s,locale:a}){const l=s.filters.slice(0,2),i=s.focus[0]??s.intensity??"";return e.jsxs(v,{to:"/$locale/programs/$slug",params:{locale:a,slug:s.slug},className:"group flex h-full flex-col overflow-hidden rounded-3xl bg-card shadow-card transition hover:-translate-y-1 hover:shadow-warm",children:[e.jsxs("div",{className:"relative aspect-[4/5] overflow-hidden",children:[e.jsx("img",{src:Q(s.hero_image),alt:s.name,loading:"lazy",className:"h-full w-full object-cover transition duration-700 group-hover:scale-105"}),s.template==="special"?e.jsxs("span",{className:"absolute left-3 top-3 inline-flex items-center gap-1 rounded-full bg-accent px-2.5 py-1 text-xs font-semibold uppercase tracking-wider text-accent-foreground shadow-warm",children:[e.jsx(N,{className:"h-3 w-3"})," Special"]}):i?e.jsx("span",{className:"absolute left-3 top-3 rounded-full bg-background/90 px-2.5 py-1 text-xs font-medium backdrop-blur",children:i}):null]}),e.jsxs("div",{className:"flex flex-1 flex-col gap-2 p-5",children:[e.jsxs("div",{className:"flex items-center gap-2 text-xs uppercase tracking-wide text-muted-foreground",children:[e.jsx("span",{children:s.duration}),e.jsx("span",{className:"h-1 w-1 rounded-full bg-muted-foreground/50"}),e.jsx("span",{children:s.intensity})]}),e.jsx("div",{className:"font-display text-xl leading-tight",children:s.name}),e.jsx("div",{className:"mt-auto flex flex-wrap gap-1.5 pt-2",children:l.map(t=>e.jsx("span",{className:"rounded-full border border-border px-2 py-0.5 text-[11px] text-muted-foreground",children:t},t))})]})]})}function J(){const{locale:s}=I.useParams(),{i18n:a}=j();return o.useEffect(()=>{a.language!==s&&a.changeLanguage(s)},[s,a]),e.jsx(L,{})}export{J as component};
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.