var lt=Object.defineProperty;var at=(w,y,m)=>y in w?lt(w,y,{enumerable:!0,configurable:!0,writable:!0,value:m}):w[y]=m;var S=(w,y,m)=>(at(w,typeof y!="symbol"?y+"":y,m),m);import{d as ce,k as it,r as h,u as ot,H as ue,o as k,c as O,J as oe,K as ne,b as s,a as e,w as t,I as v,M as nt,f as V,N as P,j as u,e as o,A as b,O as x,P as j,Q as F,R as U,V as W,p as rt,g as st,_ as Ue,S as Ie,T as ut,U as dt,W as Me,X as ct,Y as ge,G as N,s as mt,q as ke,n as re,t as _t,F as ft,l as pt,z as he,Z as vt,h as gt,$ as kt}from"./index-207e8178.js";import{u as ht}from"./vue.f36acd1f-7e533c43.js";import{t as de,l as B,p as be,a as we,e as ye,b as Ve,i as Oe,c as se,g as $e,P as Se}from"./checkTypingFunction-087f80ba.js";import{P as R,a as X,b as Z,S as Te,u as bt,c as wt,d as yt}from"./filterStore-18eb8165.js";import{u as Le}from"./programStore-a9779e15.js";import{d as Vt}from"./Speechbubble-5374d34d.js";import{_ as Ot,N as St}from"./Tooltip-b1f0fbee.js";import{q as Tt,m as Ct,p as Pt,a as xt,i as jt}from"./queryParametersUtils-573565cc.js";import{V as Ft,P as Ut}from"./VDataIterator-fa50b4b0.js";import{l as Ce}from"./VForm-0fd17bdf.js";import{P as Pe}from"./ProgramFilterListUserInput-430f7fad.js";import{V as I}from"./VMenu-a5999549.js";import{V as M}from"./VTextField-b712f4db.js";import{a as $,b as L,c as E,V as It}from"./VExpansionPanel-21c9898b.js";import{_ as Mt}from"./ProgramHeader.vue_vue_type_script_setup_true_lang-6add29ec.js";import{S as $t}from"./Searchbar-7510e744.js";import{g as Lt}from"./string-79822fd4.js";import"./axios-9b9683dd.js";import"./ProgramAttributes-d3a75b34.js";import"./AccreditationChip.vue_vue_type_script_setup_true_lang-c587f4c7.js";import"./InfoToggle-34b6c15c.js";import"./compareProgramsStore-237e142b.js";import"./EventActions-9062df64.js";import"./VCheckbox-6837210d.js";import"./EventNames-6f9cd989.js";import"./findCreboCrohoErkenningen-2e90e056.js";import"./ValidationFunctions-a4a127c5.js";import"./Collapsable-bb9a395e.js";import"./index-d2df2ce1.js";import"./VChip-0d63d8ef.js";import"./lazy-37150cc6.js";import"./PageHeader.vue_vue_type_style_index_0_lang-d0253047.js";const Ee=w=>(rt("data-v-6a2160c1"),w=w(),st(),w),Et={key:0,style:{position:"relative"}},Rt={class:"mobile-filters--toggle"},zt=Ee(()=>s("span",{class:"btn_text"},"Verfijn je resultaten",-1)),qt={id:"filter-component",class:"desktop-filters"},Dt=Ee(()=>s("h2",null,"Kenmerken",-1)),At={class:"filter not-selectable",id:"thema-filter"},Nt={key:0},Bt={"aria-label":"filter formulier opleidingen",id:"thema-filter-menu"},Wt=["onClick"],Gt={class:"filter not-selectable",id:"niveau-filter"},Qt={key:0},Ht={"aria-label":"filter formulier opleidingsniveau",id:"niveau-filter-menu"},Kt=["onClick"],Yt={class:"filter not-selectable",id:"diploma-filter"},Xt={key:0},Zt={"aria-label":"filter formulier diploma",id:"diploma-filter-menu"},Jt=["onClick"],el={class:"filter not-selectable",id:"leertraject-filter"},tl={key:0},ll={"aria-label":"filter formulier leerwegen",id:"leertraject-filter-menu"},al=["onClick"],il={class:"filter not-selectable",id:"leervorm-filter"},ol={key:0},nl={"aria-label":"filter formulier leervormen",id:"leervorm-filter-menu"},rl=["onClick"],sl={class:"filter not-selectable",id:"keurmerk-filter"},ul={key:0},dl={"aria-label":"filter formulier keurmerken",id:"keurmerk-filter-menu"},cl=["onClick"],ml={class:"filter not-selectable",id:"locatie-filter"},_l={key:0},fl={"aria-label":"filter formulier locatie",id:"locatie-filter-menu"},pl=["onClick"],vl={class:"filter not-selectable",id:"tijdsduur-filter"},gl={key:0},kl=["onClick"],hl={class:"filter not-selectable",id:"taal-filter"},bl={key:0},wl={"aria-label":"filter formulier instructietaal",id:"taal-filter-menu"},yl=["onClick"],Vl={key:0,class:"mobile-filters"},Ol=ce({__name:"ProgramFilter",setup(w){const y=it("$piwik"),m=h(ot()),_=Le(),{query:i}=ue(_),n=h({}),f=h(!1),c=C=>{y("results","filter",C)},p=()=>{Object.keys(n.value).forEach(C=>n.value[C]=!1)},G=()=>{f.value=!f.value};return(C,l)=>m.value?(k(),O("div",Et,[oe(s("div",Rt,[e(nt,{class:"btn",onClick:l[0]||(l[0]=a=>G()),id:"mobile-filter-btn"},{default:t(()=>[e(v,{icon:"filter"}),zt]),_:1})],512),[[ne,m.value.smAndDown]]),oe(s("div",qt,[e(V,null,{default:t(()=>[Dt]),_:1}),e(V,{justify:"space-between"},{default:t(()=>[s("div",At,[e(I,{id:"thema-filter-menu",modelValue:n.value.thema,"onUpdate:modelValue":l[3]||(l[3]=a=>n.value.thema=a),eager:!0,"scroll-strategy":"none",offset:"25","close-on-content-click":!1,"allow-overflow":!0,"content-class":"elevation-0 filter__menu__container filter__menu__container-wide",attach:!0},{activator:t(({props:a})=>[s("button",P({onClick:l[1]||(l[1]=g=>c("thema"))},a,{class:["filter__expander",{active:n.value.thema}],id:"ThemaOpleidingen"}),[u(" Thema "),o(i).thema.length>0?(k(),O("span",Nt,"●")):b("",!0),e(v,{icon:"caret-down",class:"filter__bracket"})],16)]),default:t(()=>[s("form",Bt,[e(x,{elevation:"4",class:"filter__menu filter__menu-wide"},{default:t(()=>[e(V,{class:"filter__menu__header"},{default:t(()=>[e(j,{class:"filter__menu__title"},{default:t(()=>[u(" Onder welk thema moet de opleiding vallen? ")]),_:1}),s("button",{onClick:F(p,["prevent"]),class:"filter__menu__close text-cta_blue pa-4","aria-label":"Sluit filter"},[e(v,{icon:"close"})],8,Wt)]),_:1}),e(M,{class:"mx-4"}),e(U,null,{default:t(()=>[e(R,{id:"thema-filter-list",class:"double-column",modelValue:o(i).thema,"onUpdate:modelValue":l[2]||(l[2]=a=>o(i).thema=a),categoryTitle:"Thema",filterOptions:o(de),selectedOptionStoreField:"thema",showFullOption:!0},null,8,["modelValue","filterOptions"])]),_:1})]),_:1})])]),_:1},8,["modelValue"])]),s("div",Gt,[e(I,{id:"niveau-filter-menu","close-on-content-click":!1,"allow-overflow":!0,modelValue:n.value.niveau,"onUpdate:modelValue":l[5]||(l[5]=a=>n.value.niveau=a),eager:!0,"scroll-strategy":"none",offset:"25","content-class":"elevation-0 filter__menu__container filter__menu__container-wide",role:"",attach:!0},{activator:t(({props:a})=>[s("button",P({onClick:l[4]||(l[4]=g=>c("niveau"))},a,{class:["filter__expander",{active:n.value.niveau}],id:"Opleidingsniveau-tree-group"}),[u(" Niveau "),o(i).niveau.length>0?(k(),O("span",Qt,"●")):b("",!0),e(v,{icon:"caret-down",class:"filter__bracket"})],16)]),default:t(()=>[s("form",Ht,[e(x,{elevation:"4",class:"filter__menu"},{default:t(()=>[e(V,{class:"filter__menu__header"},{default:t(()=>[e(j,{class:"filter__menu__title"},{default:t(()=>[u(" Op welk niveau zoek je een opleiding? ")]),_:1}),s("button",{onClick:F(p,["prevent"]),class:"filter__menu__close text-cta_blue pa-4","aria-label":"Sluit filter"},[e(v,{icon:"close"})],8,Kt)]),_:1}),e(M,{class:"mx-4"}),e(U,null,{default:t(()=>[e(V,null,{default:t(()=>[e(W,{cols:"4"},{default:t(()=>[e(X,{id:"niveau-filter-list-1",categoryTitle:"Opleidingsniveau",filterOptions:o(B).slice(0,1),selectedOptionStoreField:"niveau",selectedOptionsStoreUpdater:"changeProgramLevel"},null,8,["filterOptions"])]),_:1}),e(W,{cols:"3"},{default:t(()=>[e(X,{id:"niveau-filter-list-2",categoryTitle:"Opleidingsniveau",filterOptions:o(B).slice(1,2),selectedOptionStoreField:"niveau",selectedOptionsStoreUpdater:"changeProgramLevel"},null,8,["filterOptions"])]),_:1}),e(W,{cols:"3"},{default:t(()=>[e(X,{id:"niveau-filter-list-3",categoryTitle:"Opleidingsniveau",filterOptions:o(B).slice(2,4),selectedOptionStoreField:"niveau",selectedOptionsStoreUpdater:"changeProgramLevel"},null,8,["filterOptions"])]),_:1})]),_:1})]),_:1})]),_:1})])]),_:1},8,["modelValue"])]),s("div",Yt,[e(I,{id:"diploma-filter-menu","close-on-content-click":!1,"allow-overflow":!0,modelValue:n.value.diploma,"onUpdate:modelValue":l[8]||(l[8]=a=>n.value.diploma=a),eager:!0,"scroll-strategy":"none",offset:"25","content-class":"elevation-0 filter__menu__container filter__menu__container-wide",role:"",attach:!0},{activator:t(({props:a})=>[s("button",P({onClick:l[6]||(l[6]=g=>c("soort-diploma")),id:"diploma-filter-list-button"},a,{class:["filter__expander",{active:n.value.diploma}]}),[u(" Soort diploma "),o(i).soort_diploma.length>0?(k(),O("span",Xt,"●")):b("",!0),e(v,{icon:"caret-down",class:"filter__bracket"})],16)]),default:t(()=>[s("form",Zt,[e(x,{elevation:"4",class:"filter__menu"},{default:t(()=>[e(V,{class:"filter__menu__header"},{default:t(()=>[e(j,{class:"filter__menu__title"},{default:t(()=>[u(" Welk soort diploma wil je? ")]),_:1}),s("button",{onClick:F(p,["prevent"]),class:"filter__menu__close text-cta_blue pa-4","aria-label":"Sluit filter"},[e(v,{icon:"close"})],8,Jt)]),_:1}),e(M,{class:"mx-4"}),e(U,null,{default:t(()=>[e(Z,{id:"diploma-filter-list",modelValue:o(i).soort_diploma,"onUpdate:modelValue":l[7]||(l[7]=a=>o(i).soort_diploma=a),filterOptions:o(be),categoryTitle:"Soort diploma",selectedOptionStoreField:"soort_diploma"},null,8,["modelValue","filterOptions"])]),_:1})]),_:1})])]),_:1},8,["modelValue"])]),s("div",el,[e(I,{id:"leertraject-filter-menu","close-on-content-click":!1,"allow-overflow":!0,modelValue:n.value.leertraject,"onUpdate:modelValue":l[11]||(l[11]=a=>n.value.leertraject=a),eager:!0,"scroll-strategy":"none",offset:"25","content-class":"elevation-0 filter__menu__container",class:"filter__menu__container",role:"",attach:!0},{activator:t(({props:a})=>[s("button",P({onClick:l[9]||(l[9]=g=>c("leerweg")),id:"leertraject-filter-list"},a,{class:["filter__expander",{active:n.value.leertraject}]}),[u(" Leerweg "),o(i).leertraject.length>0?(k(),O("span",tl,"●")):b("",!0),e(v,{icon:"caret-down",class:"filter__bracket"})],16)]),default:t(()=>[s("form",ll,[e(x,{elevation:"4",class:"filter__menu"},{default:t(()=>[e(V,{class:"filter__menu__header"},{default:t(()=>[e(j,{class:"filter__menu__title"},{default:t(()=>[u(" Op welke manier wil je de opleiding gaan doen? ")]),_:1}),s("button",{onClick:F(p,["prevent"]),class:"filter__menu__close text-cta_blue pa-4","aria-label":"Sluit filter"},[e(v,{icon:"close"})],8,al)]),_:1}),e(M,{class:"mx-4"}),e(U,null,{default:t(()=>[e(Z,{modelValue:o(i).leertraject,"onUpdate:modelValue":l[10]||(l[10]=a=>o(i).leertraject=a),categoryTitle:"leertraject",selectedOptionStoreField:"leertraject",showFullOption:!0,filterOptions:o(we),class:"single-column"},null,8,["modelValue","filterOptions"])]),_:1})]),_:1})])]),_:1},8,["modelValue"])]),s("div",il,[e(I,{id:"leervorm-filter-menu","close-on-content-click":!1,"allow-overflow":!0,modelValue:n.value.elearning,"onUpdate:modelValue":l[14]||(l[14]=a=>n.value.elearning=a),eager:!0,"scroll-strategy":"none",offset:"25","content-class":"elevation-0 filter__menu__container",class:"filter__menu__container",role:"",attach:!0},{activator:t(({props:a})=>[s("button",P({onClick:l[12]||(l[12]=g=>c("leervorm")),id:"leervorm-filter-list"},a,{class:["filter__expander",{active:n.value.elearning}]}),[u(" Leervorm "),o(i).elearning.length>0?(k(),O("span",ol,"●")):b("",!0),e(v,{icon:"caret-down",class:"filter__bracket"})],16)]),default:t(()=>[s("form",nl,[e(x,{elevation:"4",class:"filter__menu"},{default:t(()=>[e(V,{class:"filter__menu__header"},{default:t(()=>[e(j,{class:"filter__menu__title"},{default:t(()=>[u(" Welke leervorm moet de opleiding hebben? ")]),_:1}),s("button",{onClick:F(p,["prevent"]),class:"filter__menu__close text-cta_blue pa-4","aria-label":"Sluit filter"},[e(v,{icon:"close"})],8,rl)]),_:1}),e(M,{class:"mx-4"}),e(U,null,{default:t(()=>[e(R,{class:"single-column",id:"elearning-filter-list",modelValue:o(i).elearning,"onUpdate:modelValue":l[13]||(l[13]=a=>o(i).elearning=a),categoryTitle:"E-learning mogelijk",filterOptions:o(ye),selectedOptionStoreField:"elearning"},null,8,["modelValue","filterOptions"])]),_:1})]),_:1})])]),_:1},8,["modelValue"])]),s("div",sl,[e(I,{id:"keurmerk-filter-menu","close-on-content-click":!1,"allow-overflow":!0,modelValue:n.value.keurmerk,"onUpdate:modelValue":l[17]||(l[17]=a=>n.value.keurmerk=a),eager:!0,"scroll-strategy":"none",offset:"25","content-class":"elevation-0 filter__menu__container",class:"filter__menu__container",role:"",attach:!0},{activator:t(({props:a})=>[s("button",P({onClick:l[15]||(l[15]=g=>c("keurmerk")),id:"keurmerk-filter-list"},a,{class:["filter__expander",{active:n.value.keurmerk}]}),[u(" Keurmerk "),o(i).keurmerk.length>0?(k(),O("span",ul,"●")):b("",!0),e(v,{icon:"caret-down",class:"filter__bracket"})],16)]),default:t(()=>[s("form",dl,[e(x,{elevation:"4",class:"filter__menu"},{default:t(()=>[e(V,{class:"filter__menu__header"},{default:t(()=>[e(j,{class:"filter__menu__title"},{default:t(()=>[u(" Moet de opleiding door de overheid erkend zijn of een keurmerk hebben? ")]),_:1}),s("button",{onClick:F(p,["prevent"]),class:"filter__menu__close text-cta_blue pa-4","aria-label":"Sluit filter"},[e(v,{icon:"close"})],8,cl)]),_:1}),e(M,{class:"mx-4"}),e(U,null,{default:t(()=>[e(R,{class:"single-column",modelValue:o(i).keurmerk,"onUpdate:modelValue":l[16]||(l[16]=a=>o(i).keurmerk=a),categoryTitle:"accreditatie",filterOptions:o(Ve),selectedOptionStoreField:"keurmerk",showFullOption:!0},null,8,["modelValue","filterOptions"])]),_:1})]),_:1})])]),_:1},8,["modelValue"])]),s("div",ml,[e(I,{id:"locatie-filter-menu","close-on-content-click":!1,"allow-overflow":!0,modelValue:n.value.locatie,"onUpdate:modelValue":l[19]||(l[19]=a=>n.value.locatie=a),eager:!0,"scroll-strategy":"none",offset:"25","content-class":"elevation-0 filter__menu__container",class:"filter__menu__container",role:"",attach:!0},{activator:t(({props:a})=>[s("button",P({onClick:l[18]||(l[18]=g=>c("locatie"))},a,{class:["filter__expander",{active:n.value.locatie}],id:"Afstand-list-group"}),[u(" Locatie "),o(i).location.search_term!==""?(k(),O("span",_l,"●")):b("",!0),e(v,{icon:"caret-down",class:"filter__bracket"})],16)]),default:t(()=>[s("form",fl,[e(x,{elevation:"4",class:"filter__menu"},{default:t(()=>[e(V,{class:"filter__menu__header"},{default:t(()=>[e(j,{class:"filter__menu__title"},{default:t(()=>[u(" In de buurt van welke plaats of postcode zoek je een opleiding? ")]),_:1}),s("button",{onClick:F(p,["prevent"]),class:"filter__menu__close text-cta_blue pa-4","aria-label":"Sluit filter"},[e(v,{icon:"close"})],8,pl)]),_:1}),e(M,{class:"mx-4"}),e(U,null,{default:t(()=>[e(Pe,{id:"distance-programma-dropdown",categoryTitle:"Afstand",rules:o(Ce)},null,8,["rules"])]),_:1})]),_:1})])]),_:1},8,["modelValue"])]),s("div",vl,[e(I,{id:"tijdsduur-filter-menu","close-on-content-click":!1,"allow-overflow":!0,modelValue:n.value.tijdsduur,"onUpdate:modelValue":l[21]||(l[21]=a=>n.value.tijdsduur=a),eager:!0,"scroll-strategy":"none",offset:"25",left:"","content-class":"elevation-0 filter__menu__container",role:"",attach:!0},{activator:t(({props:a})=>[s("button",P({onClick:l[20]||(l[20]=g=>c("tijdsduur"))},a,{class:["filter__expander",{active:n.value.tijdsduur}],id:"TijdsduurOpleidingen"}),[u(" Tijd "),o(i).studieduur_dagen!==null?(k(),O("span",gl,"●")):b("",!0),e(v,{icon:"caret-down",class:"filter__bracket"})],16)]),default:t(()=>[e(x,{elevation:"4",class:"filter__menu",id:"tijdsduur-filter-menu"},{default:t(()=>[e(V,{class:"filter__menu__header"},{default:t(()=>[e(j,{class:"filter__menu__title"},{default:t(()=>[u(" Hoe lang mag de opleiding duren? ")]),_:1}),s("button",{onClick:F(p,["prevent"]),class:"filter__menu__close text-cta_blue pa-4","aria-label":"Sluit filter"},[e(v,{icon:"close"})],8,kl)]),_:1}),e(M,{class:"mx-4"}),e(U,null,{default:t(()=>[e(Te)]),_:1})]),_:1})]),_:1},8,["modelValue"])]),s("div",hl,[e(I,{id:"taal-filter-menu","close-on-content-click":!1,"allow-overflow":!0,modelValue:n.value.taal,"onUpdate:modelValue":l[24]||(l[24]=a=>n.value.taal=a),eager:!0,"scroll-strategy":"none",offset:"25",left:"","content-class":"elevation-0 filter__menu__container",class:"filter__menu__container",role:"",attach:!0},{activator:t(({props:a})=>[s("button",P({onClick:l[22]||(l[22]=g=>c("taal"))},a,{class:["filter__expander",{active:n.value.taal}],id:"InstructieTaalOpleider"}),[u(" Taal "),o(i).instructietaal.length>0?(k(),O("span",bl,"●")):b("",!0),e(v,{icon:"caret-down",class:"filter__bracket"})],16)]),default:t(()=>[s("form",wl,[e(x,{elevation:"4",class:"filter__menu"},{default:t(()=>[e(V,{class:"filter__menu__header"},{default:t(()=>[e(j,{class:"filter__menu__title"},{default:t(()=>[u(" In welke taal moet de opleiding worden gegeven? ")]),_:1}),s("button",{onClick:F(p,["prevent"]),class:"filter__menu__close text-cta_blue pa-4","aria-label":"Sluit filter"},[e(v,{icon:"close"})],8,yl)]),_:1}),e(M,{class:"mx-4"}),e(U,null,{default:t(()=>[e(R,{class:"single-column",id:"instructietaal-filter-list",categoryTitle:"Instructietaal",filterOptions:o(Oe),selectedOptionStoreField:"instructietaal",modelValue:o(i).instructietaal,"onUpdate:modelValue":l[23]||(l[23]=a=>o(i).instructietaal=a)},null,8,["filterOptions","modelValue"])]),_:1})]),_:1})])]),_:1},8,["modelValue"])])]),_:1})],512),[[ne,m.value.mdAndUp]]),f.value?oe((k(),O("div",Vl,[e(It,null,{default:t(()=>[e($,{onClick:l[26]||(l[26]=a=>c("thema"))},{default:t(()=>[e(L,null,{default:t(()=>[u(" Thema ")]),_:1}),e(E,null,{default:t(()=>[e(R,{modelValue:o(i).thema,"onUpdate:modelValue":l[25]||(l[25]=a=>o(i).thema=a),categoryTitle:"Thema",filterOptions:o(de),selectedOptionStoreField:"thema",minimumDisplayedItems:7,showFullOption:!0},null,8,["modelValue","filterOptions"])]),_:1})]),_:1}),e($,{onClick:l[27]||(l[27]=a=>c("niveau"))},{default:t(()=>[e(L,null,{default:t(()=>[u(" Niveau ")]),_:1}),e(E,null,{default:t(()=>[e(X,{categoryTitle:"Opleidingsniveau",filterOptions:o(B),selectedOptionStoreField:"niveau",selectedOptionsStoreUpdater:"changeProgramLevel"},null,8,["filterOptions"])]),_:1})]),_:1}),e($,{onClick:l[29]||(l[29]=a=>c("soort-diploma"))},{default:t(()=>[e(L,null,{default:t(()=>[u(" Soort diploma ")]),_:1}),e(E,null,{default:t(()=>[e(Z,{id:"diploma-filter-list",modelValue:o(i).soort_diploma,"onUpdate:modelValue":l[28]||(l[28]=a=>o(i).soort_diploma=a),filterOptions:o(be),categoryTitle:"Soort diploma",selectedOptionStoreField:"soort_diploma"},null,8,["modelValue","filterOptions"])]),_:1})]),_:1}),e($,{onClick:l[31]||(l[31]=a=>c("leerweg"))},{default:t(()=>[e(L,null,{default:t(()=>[u(" Leerweg ")]),_:1}),e(E,null,{default:t(()=>[e(Z,{modelValue:o(i).leertraject,"onUpdate:modelValue":l[30]||(l[30]=a=>o(i).leertraject=a),categoryTitle:"leertraject",selectedOptionStoreField:"leertraject",showFullOption:!0,filterOptions:o(we),class:"single-column"},null,8,["modelValue","filterOptions"])]),_:1})]),_:1}),e($,{onClick:l[33]||(l[33]=a=>c("leervorm"))},{default:t(()=>[e(L,null,{default:t(()=>[u(" Leervorm ")]),_:1}),e(E,null,{default:t(()=>[e(R,{modelValue:o(i).elearning,"onUpdate:modelValue":l[32]||(l[32]=a=>o(i).elearning=a),categoryTitle:"E-learning mogelijk",filterOptions:o(ye),selectedOptionStoreField:"elearning",showFullOption:!0},null,8,["modelValue","filterOptions"])]),_:1})]),_:1}),e($,{id:"keurmerk-filter-list-mobile",onClick:l[35]||(l[35]=a=>c("keurmerk"))},{default:t(()=>[e(L,null,{default:t(()=>[u(" Keurmerk ")]),_:1}),e(E,null,{default:t(()=>[e(R,{class:"single-column",modelValue:o(i).keurmerk,"onUpdate:modelValue":l[34]||(l[34]=a=>o(i).keurmerk=a),categoryTitle:"accreditatie",filterOptions:o(Ve),selectedOptionStoreField:"keurmerk",showFullOption:!0},null,8,["modelValue","filterOptions"])]),_:1})]),_:1}),e($,{onClick:l[36]||(l[36]=a=>c("locatie"))},{default:t(()=>[e(L,null,{default:t(()=>[u(" Locatie ")]),_:1}),e(E,null,{default:t(()=>[e(Pe,{categoryTitle:"Afstand",rules:o(Ce)},null,8,["rules"])]),_:1})]),_:1}),e($,{onClick:l[37]||(l[37]=a=>c("tijd"))},{default:t(()=>[e(L,null,{default:t(()=>[u(" Tijd ")]),_:1}),e(E,null,{default:t(()=>[e(Te)]),_:1})]),_:1}),e($,{onClick:l[39]||(l[39]=a=>c("taal"))},{default:t(()=>[e(L,null,{default:t(()=>[u(" Taal ")]),_:1}),e(E,null,{default:t(()=>[e(R,{categoryTitle:"Instructietaal",filterOptions:o(Oe),selectedOptionStoreField:"instructietaal",modelValue:o(i).instructietaal,"onUpdate:modelValue":l[38]||(l[38]=a=>o(i).instructietaal=a)},null,8,["filterOptions","modelValue"])]),_:1})]),_:1})]),_:1})],512)),[[ne,m.value.smAndDown]]):b("",!0)])):b("",!0)}});const Sl=Ue(Ol,[["__scopeId","data-v-6a2160c1"]]),Tl={style:{"min-height":"640px"}},Cl={class:"app-container"},Pl={class:"program-cards"},xl={class:"loading_state"},jl=500,xe=3,Fl=1e5,Ul=ce({__name:"ProgramResults",setup(w){bt();const y=Ie(),m=Le(),{itemsPerPage:_}=ue(y),{query:i,page:n,filterCounts:f}=ue(m),c=()=>m.programClearSearch(),p={idle:"idle",loading:"loading",loaded:"loaded",failed:"failed"},G=h([]),C=h(!1),l=h(p.idle),a=h(""),g=h(0),D=h([]),ee=h(null),Re=h(-1),ze=h(jl),me=h(-1),Q=h([]),te=h(""),_e=h(!1),q=h(i.value.zoekargument),{assertive:fe}=ut(),le=dt(),H=Me();ct(async()=>{if(Tt(H.query)){const r=Ct(H.query);i.value=r,q.value=r.zoekargument;const d=Pt(H.query.page,1);await qe(d)}else De(),z();pe(),await Y(),_e.value=!0}),ge(q,r=>{const d=Lt(r,xe);if(d===null){Q.value=[];return}et(d)}),ge(i,()=>{_e.value&&(C.value&&(n.value=1),q.value=i.value.zoekargument,Y(),pe(),Je(),z())},{deep:!0});const qe=async r=>{r<1||r>=Fl/_.value?(n.value=1,await z()):(n.value=r,await z(),r>K.value&&(n.value=K.value),n.value!==r&&z())},De=()=>{c(),l.value="loaded",C.value=!1},Ae=r=>{te.value=r===te.value?"":r},pe=async()=>{const r=await se.getFilterCounts(i.value);f.value=r},Ne=N(()=>g.value===0&&l.value===p.loaded?"Mascot_Sad_Yellow_BG":"Mascot_Friendly_Yellow_BG"),Be=N(()=>g.value===0&&l.value===p.loaded?"Ik heb helaas niks voor je gevonden.":"Dit heb ik voor je gevonden. Teveel resultaten? Gebruik dan de filters!"),We=N(()=>n.value===1||g.value<_.value?1:(n.value-1)*_.value+1),Ge=N(()=>n.value*_.value>=g.value?g.value:n.value===1?_.value:n.value*_.value),K=N(()=>Math.ceil(g.value/_.value)),Qe=r=>{const d=r??n.value+1;d<=K.value&&(n.value=d,fe("Nieuwe pagina ingeladen")),Y(),z(),ae(),ie()},He=r=>{const d=r??n.value-1;d>=1&&(n.value=d,fe("Terug naar vorige pagina")),Y(),z(),ae(),ie()},Ke=r=>{if(r<1||r>K.value)return"";const d=new URLSearchParams(window.location.search);return d.set("page",r.toString()),`${window.location.origin}${window.location.pathname}?${d.toString()}`},Y=async()=>{const r=xt({...i.value,page:n.value});r.query&&!jt(H.query,r.query)&&(await le.isReady(),await le.replace(r))},Ye=()=>{ae(),ie()},ae=()=>{const r=document.getElementById("resultaten-pagination-container");r&&(r.tabIndex=-1,r.focus({preventScroll:!0}),r.blur())},Xe=()=>{le.push({name:"leren"})},Ze=()=>{i.value.zoekargument=a.value},z=async()=>{G.value=[];try{const r=await se.search(i.value,n.value);D.value=r.result,g.value=r.result_count,a.value=r.alternative,C.value=!0,l.value=p.loaded,Re.value=-1}catch(r){l.value=p.failed,G.value=[r]}},Je=()=>{var d,T;const r=[i.value.zoekargument==="",i.value.niveau.length===0,i.value.soort_diploma.length===0,i.value.thema.length===0,i.value.elearning.length===0,i.value.instructietaal.length===0,i.value.location.distance===0,i.value.studieduur_dagen===null||((d=i.value.studieduur_dagen)==null?void 0:d.min)===null&&((T=i.value.studieduur_dagen)==null?void 0:T.max)===null,i.value.keurmerk.length===0,i.value.leertraject.length===0];C.value=!r.every(A=>A)},ie=()=>{var r;(r=document.getElementById("status-component-opleidingen"))==null||r.scrollIntoView({behavior:"smooth"})},ve=()=>{var r;i.value.zoekargument=q.value??"",(r=ee.value)==null||r.scrollIntoView()},et=async r=>{const d=Vt(async()=>{if(!(r.length<xe))try{Q.value=await se.getAutoComplete(r)}catch{Q.value=[]}},me.value,ze.value)();me.value=d.newTimeoutId,await d.debouncedFunction};return(r,d)=>(k(),O("div",Tl,[s("div",Cl,[e(ke,{fluid:""},{default:t(()=>[e(V,{justify:"center"},{default:t(()=>[e(Ot,{mascotText:Be.value,mascotImage:o(mt)(Ne.value,"mascotte")},{searchbar:t(()=>[e($t,{ref_key:"searchbar",ref:ee,modelValue:q.value,"onUpdate:modelValue":d[0]||(d[0]=T=>q.value=T),placeholder:"Kinderopvang, installatietechniek, hovenier, etc.",autocompleteList:Q.value,onSearch:ve,onClear:ve},null,8,["modelValue","autocompleteList"])]),header:t(()=>[e(Mt)]),filter:t(()=>[e(Sl)]),_:1},8,["mascotText","mascotImage"]),e(W,{class:"mb-4",cols:"12",sm:"12",md:"10",lg:"10"},{default:t(()=>[e(ke,{fluid:""},{default:t(()=>[e(V,{justify:"center"},{default:t(()=>[e(W,{class:"radar_bg",id:"resultslist",cols:"12",sm:"12",md:"12",lg:"12"},{default:t(()=>[C.value?(k(),re(wt,{key:0,pageStart:We.value,pageStop:Ge.value,total:g.value},null,8,["pageStart","pageStop","total"])):b("",!0),D.value.length<=3&&a.value!=""&&l.value===p.loaded?(k(),O("a",{key:1,id:"alternative",class:"alternative",onClick:d[1]||(d[1]=T=>Ze())},[s("p",null,[u(" Zoek in plaats daarvan naar "),s("strong",null,[s("u",null,_t(a.value),1)])])])):b("",!0),l.value===p.loaded&&D.value.length>0?(k(),re(Ft,{key:2,id:"resultaten-pagination-container",items:D.value,itemsPerPage:o(_),"onUpdate:page":d[2]||(d[2]=T=>Ye())},{default:t(({items:T})=>[s("div",Pl,[(k(!0),O(ft,null,pt(T,(A,tt)=>(k(),re(yt,{key:A.raw.internal_id,class:"cards-container",program:A.raw,cardIndex:tt,open:te.value===A.raw.internal_id,onToggleOpen:Ae},null,8,["program","cardIndex","open"]))),128))])]),footer:t(()=>[e(Ut,{page:o(n),getPaginationUrl:Ke,itemsPerPage:o(_),totalResults:g.value,formerPage:He,nextPage:Qe},null,8,["page","itemsPerPage","totalResults"])]),_:1},8,["items","itemsPerPage"])):b("",!0),l.value===p.loaded&&D.value.length===0?he(r.$slots,"default",{key:3},()=>[e(V,{justify:"center"},{default:t(()=>{var T;return[e(St,{onRestartDialogue:Xe,onFocusSearchbar:(T=ee.value)==null?void 0:T.focusInput},null,8,["onFocusSearchbar"])]}),_:1})],!0):b("",!0),l.value===p.loading?he(r.$slots,"loading",{key:4},()=>[s("div",xl,[e(vt,{indeterminate:"",color:"cta_blue",size:90,width:4,"aria-label":"loading","aria-busy":"true"})])],!0):b("",!0)]),_:3})]),_:3})]),_:3})]),_:3})]),_:3})]),_:3})])]))}});const Il=Ue(Ul,[["__scopeId","data-v-d88a5da6"]]);class J{constructor(){S(this,"title","Leeroverzicht - Leren - Alle opleidingen");S(this,"description","Op Leeroverzicht vind je zo'n 90.000 opleidingen, cursussen of trainingen en zo'n 300 regelingen om die te betalen. Leeroverzicht is een initiatief van het Ministerie van Onderwijs, Cultuur en Wetenschappen.");S(this,"buildMetaTitle",()=>{throw new Error("Method buildMetaTitle must be implemented.")});S(this,"buildMetaDescription",()=>{throw new Error("Method buildMetaDescription must be implemented.")})}}class je extends J{constructor(m){var _;super();S(this,"query","");S(this,"theme","");S(this,"buildMetaTitle",()=>this.query===Se?this.title:this.theme?this.title+` binnen het thema ${this.theme}`:this.title);S(this,"buildMetaDescription",()=>this.query===Se?this.description:this.theme?`Vind een opleiding, cursus of training binnen het thema ${this.theme}. Leeroverzicht is een initiatief van het Ministerie van Onderwijs, Cultuur en Wetenschappen.`:this.description);if(!m)throw new Error("Query is required");this.query=m.split(",")[0],this.theme=(_=$e(de,this.query))==null?void 0:_.text}}class Fe extends J{constructor(m){var n,f,c;super();S(this,"query","");S(this,"level","");S(this,"buildMetaTitle",()=>this.level?this.title+` op het niveau ${this.level}`:this.title);S(this,"buildMetaDescription",()=>this.level?`Vind een opleiding, cursus of training op het niveau ${this.level}. Leeroverzicht is een initiatief van het Ministerie van Onderwijs, Cultuur en Wetenschappen.`:this.description);if(this.query=m,!m)throw new Error("Query is required");let _="";const i=((n=this.query)==null?void 0:n.match(/_[a-z]*_/g))??"";i?_=i[0]:_=((f=this.query)==null?void 0:f.split(",")[0])??"",this.level=(c=$e(B,_))==null?void 0:c.text}}const Ml={class:"no-padding background-secondary text-primary"},$l={class:"zoek-opleidingen"},pa=ce({__name:"SearchPrograms",setup(w){const{updateColorValues:y}=gt();y("secondary");const m=()=>{if(_("thema")){const f=new URLSearchParams(window.location.search).get("thema");return{title:new je(f).buildMetaTitle(),description:new je(f).buildMetaDescription()}}if(_("niveau")){const f=new URLSearchParams(window.location.search).get("niveau");return{title:new Fe(f).buildMetaTitle(),description:new Fe(f).buildMetaDescription()}}return{title:new J().title,description:new J().description}},_=f=>new URLSearchParams(window.location.search).has(f);ht({title:m().title,meta:[{name:"description",content:m().description},{name:"keywords",content:"Opleidingen, Passende opleiding, Trainingen, Cursussen, Praktijkleren, Omscholing, Bijscholing, Wettelijk goedgekeurd diploma, Een passende opleiding, Opleidingen voor werkenden en werkzoekenden, Informatie over beschikbare opleidingen, Betrouwbare onafhankelijke informatie over opleidingen, Alle opleidingen op 1 plek, Ik wil verder leren, Beter worden in beroep of baan, Vaardigheden en kennis bijhouden of verbeteren"}],link:[{rel:"canonical",href:document.location.origin+"/leren/zoeken"}]});const i=Me(),n=Ie();return kt(()=>{const f=i.query.loglevel??"";n.updateLogLevel(f)}),(f,c)=>(k(),O("div",Ml,[s("div",$l,[e(Il)])]))}});export{pa as default};