1import{_ as J}from"./BFU8E5Pn.js";import{_ as X}from"./C2N8MKzS.js";import{_ as Y,u as Z,a as tt}from"./CvK16ZHB.js";import{_ as et}from"./CZJeKUVt.js";import{_ as ot}from"./CKFdxJWr.js";import{_ as ct}from"./DBTYRvKz.js";import{_ as nt}from"./Buv6cspv.js";import{c as at,g as st,u as lt,a as it,M as rt,b as mt}from"./DVO4eZfy.js";import{p as ut}from"./CW85eJBU.js";import{u as dt}from"./B_Xuklnb.js";import{d as pt,ax as _t,r as u,y as ht,k as d,Q as e,t as gt,u as t,n as p,R as V,F as vt,C as xt,x as r,j as $,i as _,h as a,c as v}from"./BJuaAXAn.js";import"./woWIKTc3.js";import"./BDIBPddm.js";import"./CQH4Jm9m.js";import"./JCnP6JpX.js";import"./CRpHSc40.js";import"./5_GdKFEI.js";import"./C1bvThlI.js";import"./M46ZWGjn.js";import"./D_8uPt9Y.js";import"./Ccd49Uss.js";import"./4k_ZYQbx.js";import"./CD69Fqai.js";import"./0SFUmO3b.js";import"./BsZ5KqYl.js";const ft={class:"container mx-auto grid-cols-12 gap-x-5 pt-16 text-dark sm:grid"},yt={class:"col-span-8 mb-6 flex flex-col gap-y-6 lg:mb-16 lg:gap-y-9"},Ct={class:"text-4xl font-bold leading-9 lg:text-[64px] lg:leading-[64px]"},St={class:"text-xl leading-5 lg:leading-6"},bt={class:"col-span-8 mb-6"},kt={class:"relative bg-gray-200 py-[120px]"},At={class:"container mx-auto grid grid-cols-1 gap-x-5 gap-y-11 md:grid-cols-2 lg:grid-cols-3"},Ft={key:0,class:"container mx-auto"},It={class:"mt-12 flex justify-end"},wt=["id"],Et={class:"flex justify-center"},Lt={class:"max-w-[580px]"},Pt=["id"],Vt={class:"col-span-12 md:col-span-8 md:col-start-3"},$t=["id"],zt={key:2,class:"mb-10"},k=15,le=pt({__name:"index",async setup(qt){let x,A;const z=at(),q=st(),{t:N}=lt(),R=u([]);it(rt.SCHOOLOVERVIEWPAGE);const{data:F}=([x,A]=_t(()=>mt("/api/content/school-overview",{notFoundIfEmpty:l=>!l?.page})),x=await x,A(),x),{title:U,subtitle:B,sectionWithImageFullWidth:o,sectionWithImageSmall:c,content:y,contact:n,contactEmail:O}=F.value.page,h=u(1),I=z.query,i=u(null),w=u([]),g=u(F.value.schools??[]),E=v(()=>g.value.map(l=>l.city)??[]),W=v(()=>D(E.value)),j=v(()=>g.value.length?ut(S.value,k,h.value):[]),C=v(()=>g.value.length?W.value.map(l=>({label:l,amount:E.value.filter(m=>m===l).length,value:l})):[]),S=v(()=>Z(g.value,i,w,R));ht(()=>{C.value&&I.city&&(i.value=tt(C,I.city))});function T(){h.value=1,w.value=[],i.value&&q.replace({query:{city:i.value.value}})}function D(l){return Array.from(new Set(l))}const b=u(),M=()=>{b.value&&b.value.scrollIntoView({behavior:"smooth"})};return dt(O),(l,m)=>{const f=J,G=X,H=Y,K=et,L=ot,P=ct,Q=nt;return a(),d("div",null,[e("section",ft,[e("div",yt,[e("h1",Ct,gt(t(U)),1),e("div",St,[p(f,{content:t(B),color:"dark"},null,8,["content"])])]),e("div",bt,[p(G,{"active-filter":t(i),"onUpdate:activeFilter":[m[0]||(m[0]=s=>V(i)?i.value=s:null),T],"all-label":t(N)("location.all_locations"),"total-amount":t(g).length??0,filters:t(C),"active-theme":"beta","inactive-theme":"alpha"},null,8,["active-filter","all-label","total-amount","filters"])])]),e("section",{id:"scholen-overzicht",ref_key:"schoolsContainer",ref:b},[e("div",kt,[e("div",At,[(a(!0),d(vt,null,xt(t(j),s=>(a(),_(H,{key:s.id,accent:{accentColor:"epsilon",accentShade:"700",accentTitle:`${s.streetName} ${s.houseNumber}`},image:s.heroImage?.responsiveImage,subtext:`${s.zipCode} ${s.city}`,url:`/school/${s.slug}`},null,8,["accent","image","subtext","url"]))),128))]),t(S).length>k?(a(),d("div",Ft,[e("div",It,[p(K,{page:t(h),"onUpdate:page":[m[1]||(m[1]=s=>V(h)?h.value=s:null),M],total:t(S).length,"items-per-page":k},null,8,["page","total"])])])):r("",!0)])],512),t(o)?.active?(a(),d("section",{key:0,id:t(o).anchor,class:"mb-[120px]"},[p(P,{"accent-color":t(o).accentColor.color,"accent-shade":t(o).accentColor.shade,"m-color":t(o).mColor.color,"m-shade":t(o).mColor.shade,image:t(o).image?.responsiveImage,size:"xl"},{default:$(()=>[e("div",Et,[e("div",Lt,[t(o).slides.length>1?(a(),_(L,{key:0,slides:t(o).slides},null,8,["slides"])):t(o).slides.length===1?(a(),_(f,{key:1,class:"structured-text",color:t(o).slides[0].color,content:t(o).slides[0].content},null,8,["color","content"])):r("",!0)])])]),_:1},8,["accent-color","accent-shade","m-color","m-shade","image"])],8,wt)):r("",!0),e("section",{id:t(y).anchor,class:"container mx-auto grid grid-cols-12 gap-5"},[e("div",Vt,[p(f,{color:t(y).color,content:t(y).content},null,8,["color","content"])])],8,Pt),t(c)?.active?(a(),d("section",{key:1,id:t(c).anchor,class:"container mx-auto my-[120px]"},[p(P,{"accent-color":t(c).accentColor.color,"accent-shade":t(c).accentColor.shade,"m-color":t(c).mColor.color,"m-shade":t(c).mColor.shade,image:t(c).image?.responsiveImage,size:"base","accent-size":"lg"},{default:$(()=>[t(c).slides.length>1?(a(),_(L,{key:0,slides:t(c).slides},null,8,["slides"])):t(c).slides.length===1?(a(),_(f,{key:1,class:"structured-text",color:t(c).slides[0].c
1olor,content:t(c).slides[0].content},null,8,["color","content"])):r("",!0)]),_:1},8,["accent-color","accent-shade","m-color","m-shade","image"])],8,$t)):r("",!0),t(n)?(a(),d("section",zt,[t(n).contactSection?(a(),_(Q,{key:0,id:t(n).contactSection.anchor,image:t(n).contactSection.image?.responsiveImage,title:t(n).contactSection.title,subtitle:t(n).contactSection.subtitle,"text-color":t(n).contactSection.textColor,"call-to-actions":t(n).contactSection.callToActions,"accent-color":t(n).contactSection.accentColor.color,"accent-shade":t(n).contactSection.accentColor.shade,"m-color":t(n).contactSection.mColor.color,"m-shade":t(n).contactSection.mColor.shade,size:"lg"},null,8,["id","image","title","subtitle","text-color","call-to-actions","accent-color","accent-shade","m-color","m-shade"])):r("",!0)])):r("",!0)])}}});export{le 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.