1import{u as H,_ as N,b as P,a as V}from"./BDDa-JUK.js";import{j as $,k as i,f as g,g as R,l as q,o as n,a,b as l,u as e,d as h,F as y,r as z,c as v,e as x,w as G,t as I,_ as J}from"./Dyo3DqEY.js";import{b as K}from"./CITtnNdH.js";import{u as Q}from"./CJ0M6cKV.js";import{e as U,f as W}from"./B4-Iut8U.js";import{u as X}from"./4pgkHzYQ.js";const Y={class:"container-fluid main-grid content-start min-h-svh pt-12 md:pt-28 pb-16"},Z={class:"col-span-full lg:col-span-10 lg:col-start-2"},ee=["innerHTML"],te={class:"col-span-full lg:col-span-10 lg:col-start-2 flex flex-col gap-y-1.5 pt-10"},se={class:"text-xl font-medium"},ne={key:0,class:"col-span-full flex items-center justify-center pt-8"},de={__name:"AgendaPageLayout",props:{eventsFetcher:Function,filterType:String},async setup(u){let t,s;const d=u,b=$(),k=X();k.date=null;const c=([t,s]=i(()=>U()),t=await t,s(),t),A=([t,s]=i(()=>W()),t=await t,s(),t),T=([t,s]=i(()=>d.eventsFetcher()),t=await t,s(),t),C=g(T?.value??[]),p=g(!1);R(()=>{p.value=!0});const{allOpen:_,availableClubsOrdered:w,groupedEventsArray:o,daysToShow:m,loaderStatus:O,loadMore:S,onToggleAccordion:F}=H(C,A,{filterType:()=>d.filterType,isMounted:p});return q({bodyAttrs:{class:K(b.path)}}),Q(c?.value?.seo,c?.value?.title),(B,oe)=>{const L=N,M=P,E=J,j=V;return n(),a("section",Y,[l("header",Z,[l("h1",{class:"col-span-full text-3xl md:text-8xl font-medium",innerHTML:e(c)?.title},null,8,ee),h(L,{onToggleAccordion:e(F),clubs:u.filterType!=="live"?e(w):new Set,allOpen:e(_)},null,8,["onToggleAccordion","clubs","allOpen"])]),l("section",te,[e(o)?.length&&e(o)?.length>0?(n(!0),a(y,{key:0},z(e(o),({events:D,date:f},r)=>(n(),a(y,{key:f+"-"+r},[r<e(m)?(n(),v(M,{key:0,events:D,date:f,allOpen:e(_),index:r},null,8,["events","date","allOpen","index"])):x("",!0)],64))),128)):(n(),v(E,{key:1},{default:G(()=>[l("p",se,I(B.$t("noResults")),1)]),_:1}))]),e(m)<e(o).length?(n(),a("div",ne,[h(j,{color:"black",status:e(O),onClick:e(S)},null,8,["status","onClick"])])):x("",!0)])}}};export{de as _};
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.