import{a5 as Ze,a6 as Qe,r as p,a7 as vt,a8 as Ce,G as R,a9 as Ke,a as e,F as B,N as D,ag as ft,ah as _t,ai as mt,m as pt,aj as gt,Z as Xe,d as X,k as ge,ae as bt,x as ht,o as v,c as y,w as l,b as n,t as A,B as _e,j as C,A as $,a4 as Le,n as U,e as x,l as be,a2 as yt,p as $e,g as Te,E as kt,_ as ue,aa as St,H as Q,Y as re,a1 as xt,Q as Z,X as Ie,a3 as wt,W as Ae,u as Vt,J as we,K as Ve,I as j,M as Ft,f as E,O as ee,P as te,R as le,V as me,S as He,T as Ct,U as Ot,s as $t,q as Fe,z as Tt,h as It,$ as At}from"./index-207e8178.js";import{j as Pt,n as Oe}from"./checkTypingFunction-087f80ba.js";import{d as jt}from"./Speechbubble-5374d34d.js";import{u as de,_ as Lt}from"./FundingHeader.vue_vue_type_script_setup_true_lang-3b9f5f09.js";import{a as Et,b as Rt}from"./geld-a471104f.js";import{_ as Ee}from"./ValidationFunctions-a4a127c5.js";import{V as Mt}from"./VChip-0d63d8ef.js";import{q as Je,b as Ye,s as Re,c as Me,d as Ue,o as ze,e as Ne,p as Ut,a as zt,i as Nt}from"./queryParametersUtils-573565cc.js";import{m as qt,u as Dt,a as Bt,V as Gt,b as Wt,T as Zt,_ as Qt,N as Kt}from"./Tooltip-b1f0fbee.js";import{m as Xt,c as et,u as tt,d as pe,e as Ht,f as Jt,g as qe,a as Yt,b as el,V as ae}from"./VTextField-b712f4db.js";import{V as tl}from"./VCheckbox-6837210d.js";import{V as ll}from"./index-d2df2ce1.js";import{a as al,l as nl,i as il,V as sl}from"./VForm-0fd17bdf.js";import{V as ne}from"./VMenu-a5999549.js";import{a as ie,b as se,c as oe,V as ol}from"./VExpansionPanel-21c9898b.js";import{F as De,_ as rl,V as ul,P as dl}from"./VDataIterator-fa50b4b0.js";import{S as cl}from"./Searchbar-7510e744.js";import{g as vl}from"./string-79822fd4.js";import{u as fl}from"./vue.f36acd1f-7e533c43.js";import"./axios-9b9683dd.js";import"./PageHeader.vue_vue_type_style_index_0_lang-d0253047.js";import"./Collapsable-bb9a395e.js";import"./AccreditationChip.vue_vue_type_script_setup_true_lang-c587f4c7.js";import"./InfoToggle-34b6c15c.js";import"./lazy-37150cc6.js";import"./EventActions-9062df64.js";import"./EventNames-6f9cd989.js";const _l=Ze({...Xt(),...qt(),...et(),modelValue:{type:[Number,String],default:0}},"VSlider"),ml=Qe()({name:"VSlider",props:_l(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,start:t=>!0,end:t=>!0},setup(t,b){let{slots:m,emit:a}=b;const s=p(),{rtlClasses:i}=vt(),d=Dt(t),g=Ce(t,"modelValue",void 0,I=>d.roundValue(I??d.min.value)),{min:r,max:h,mousePressed:c,roundValue:u,onSliderMousedown:O,onSliderTouchstart:V,trackContainerRef:k,position:f,hasLabels:M,readonly:S}=Bt({props:t,steps:d,onSliderStart:()=>{a("start",g.value)},onSliderEnd:I=>{let{value:z}=I;const P=u(z);g.value=P,a("end",P)},onSliderMove:I=>{let{value:z}=I;return g.value=u(z)},getActiveThumb:()=>{var I;return(I=s.value)==null?void 0:I.$el}}),{isFocused:F,focus:_,blur:T}=tt(t),W=R(()=>f(g.value));return Ke(()=>{const I=pe.filterProps(t),z=!!(t.label||m.label||m.prepend);return e(pe,D({class:["v-slider",{"v-slider--has-labels":!!m["tick-label"]||M.value,"v-slider--focused":F.value,"v-slider--pressed":c.value,"v-slider--disabled":t.disabled},i.value,t.class],style:t.style},I,{focused:F.value}),{...m,prepend:z?P=>{var N,L;return e(B,null,[((N=m.label)==null?void 0:N.call(m,P))??(t.label?e(Ht,{id:P.id.value,class:"v-slider__label",text:t.label},null):void 0),(L=m.prepend)==null?void 0:L.call(m,P)])}:void 0,default:P=>{let{id:N,messagesId:L}=P;return e("div",{class:"v-slider__container",onMousedown:S.value?void 0:O,onTouchstartPassive:S.value?void 0:V},[e("input",{id:N.value,name:t.name||N.value,disabled:!!t.disabled,readonly:!!t.readonly,tabindex:"-1",value:g.value},null),e(Gt,{ref:k,start:0,stop:W.value},{"tick-label":m["tick-label"]}),e(Wt,{ref:s,"aria-describedby":L.value,focused:F.value,min:r.value,max:h.value,modelValue:g.value,"onUpdate:modelValue":H=>g.value=H,position:W.value,elevation:t.elevation,onFocus:_,onBlur:T,ripple:t.ripple},{"thumb-label":m["thumb-label"]})])}})}),{}}});const pl=Ze({indeterminate:Boolean,inset:Boolean,flat:Boolean,loading:{type:[Boolean,String],default:!1},...et(),...Jt()},"VSwitch"),gl=Qe()({name:"VSwitch",inheritAttrs:!1,props:pl(),emits:{"update:focused":t=>!0,"update:modelValue":t=>!0,"update:indeterminate":t=>!0},setup(t,b){let{attrs:m,slots:a}=b;const s=Ce(t,"indeterminate"),i=Ce(t,"modelValue"),{loaderClasses:d}=ft(t),{isFocused:g,focus:r,blur:h}=tt(t),c=p(),u=R(()=>typeof t.loading=="string"&&t.loading!==""?t.loading:t.color),O=_t(),V=R(()=>t.id||`switch-${O}`);function k(){s.value&&(s.value=!1)}function f(M){var S,F;M.stopPropagation(),M.preventDefault(),(F=(S=c.value)==null?void 0:S.input)==null||F.click()}return Ke(()=>{const[M,S]=mt(m),F=pe.filterProps(t),_=qe.filterProps(t);return e(pe,D({class:["v-switch",{"v-switch--inset":t.inset},{"v-switch--indeterminate":s.value},d.value,t.class]},M,F,{modelValue:i.value,"onUpdate:modelValue":T=>i.value=T,id:V.value,focused:g.value,style:t.style}),{...a,default:T=>{let{id:W,messagesId:I,isDisabled:z,isReadonly:P,isValid:N}=T;return e(qe,D({ref:c},_,{modelValue:i.value,"onUpdate:modelValue":[L=>i.value=L,k],id:W.value,"aria-describedby":I.value,type:"checkbox","aria-checked":s.value?"mixed":void 0,disabled:z.value,readonly:P.value,onFocus:r,onBlur:h},S),{...a,default:L=>{let{backgroundColorClasses:H,backgroundColorStyles:K}=L;return e("div",{class:["v-switch__track",...H.value],style:K.value,onClick:f},null)},input:L=>{let{inputNode:H,icon:K,backgroundColorClasses:he,backgroundColorStyles:ye}=L;return e(B,null,[H,e("div",{class:["v-switch__thumb",{"v-switch__thumb--filled":K||t.loading},t.inset?void 0:he.value],style:t.inset?void 0:ye.value},[e(ll,null,{default:()=>[t.loading?e(gt,{name:"v-switch",active:!0,color:N.value===!1?void 0:u.value},{default:ce=>a.loader?a.loader(ce):e(Xe,{active:ce.isActive,color:ce.color,indeterminate:!0,size:"16",width:"2"},null)}):K&&e(pt,{key:K,icon:K,size:"x-small"},null)]})])])}})}})}),{}}}),bl=t=>($e("data-v-f6cc98a5"),t=t(),Te(),t),hl=["cy-data-cards"],yl=["id"],kl=["id"],Sl=["id"],xl=["id"],wl={key:0,role:"text"},Vl={key:1,role:"text"},Fl={key:0,role:"text",class:"long-description"},Cl={key:1,role:"text"},Ol=["id"],$l=bl(()=>n("div",{class:"card-rule"},null,-1)),Tl=["id","aria-expanded","aria-controls"],Il=["id"],Al={class:"d-sr-only"},Pl=X({__name:"FundingCard",props:{item:{type:Object,required:!0},cardIndex:{type:Number,required:!0},open:{type:Boolean,default:!1}},emits:["toggleOpen"],setup(t,{emit:b}){const m=t,a=ge("$piwik"),s=p(null),i=p(m.cardIndex);bt(()=>{i.value=m.cardIndex});const d=c=>{c&&a("results","navigate",c)},g=()=>{m.open&&s.value&&yt(()=>{s.value.setAttribute("tabindex","-1"),s.value.focus()})},r=c=>{b("toggleOpen",c),a("results","toggle",`result-card-more-info-${c}`)},h=c=>`${c.internal_id}-${encodeURIComponent(c.naam).replace(/%20/g,"+")}`;return(c,u)=>{const O=ht("router-link");return v(),y("div",{class:"card","cy-data-cards":i.value},[e(O,{onClick:u[0]||(u[0]=V=>d(`leren-opleiding-${h(t.item)}`)),class:"card-header-link",to:{name:"geld-financiering",params:{id:h(t.item)}}},{default:l(()=>[n("div",null,[n("h3",{id:`item-title-${i.value}`},A(t.item.naam),9,yl),n("p",{id:`item-organisation-${i.value}`,class:"organisation"},A(Array.from(new Set(t.item.organisaties)).join(", ")),9,kl)])]),_:1},8,["to"]),n("div",{id:`item-content-${i.value}`},[n("p",{id:`item-desc-${i.value}`,ref_key:"itemDesc",ref:s},[t.item.korte_beschrijving===t.item.lange_beschrijving.substring(0,t.item.korte_beschrijving.length)?(v(),y("span",{key:0,role:"text",class:_e(t.open&&"long-description")},[C(A(t.item.korte_beschrijving)+" ",1),e(Le,{name:"fade",mode:"out-in",onAfterEnter:g},{default:l(()=>[t.open?(v(),y("span",wl,A(t.item.lange_beschrijving),1)):$("",!0)]),_:1})],2)):(v(),y("span",Vl,[e(Le,{name:"fade",mode:"out-in",onAfterEnter:g},{default:l(()=>[t.open?(v(),y("span",Fl,A(t.item.lange_beschrijving),1)):(v(),y("span",Cl,A(t.item.korte_beschrijving),1))]),_:1})]))],8,xl)],8,Sl),t.item.status==="Future"?(v(),U(Mt,{key:0,id:`item-future-${i.value}`,class:"chip"},{default:l(()=>[C(" Binnenkort open ")]),_:1},8,["id"])):$("",!0),e(Ee,{rawAttributes:t.item,isOpen:t.open,cardIndex:i.value,"attribute-config":x(Et)},null,8,["rawAttributes","isOpen","cardIndex","attribute-config"]),e(Ee,{rawAttributes:t.item,isOpen:t.open,cardIndex:i.value,"single-column":!0,"attribute-config":x(Rt)},null,8,["rawAttributes","isOpen","cardIndex","attribute-config"]),t.item.links&&t.item.links.length>0&&t.open?(v(!0),y(B,{key:1},be(t.item.links,(V,k)=>(v(),y("div",{id:`link-${i.value}-${k}`,class:_e(["section",t.open?"":"collapsed"]),key:V.uri+k},[e(kt,{externalLink:V.uri,linkText:V.titel,class:"button external item-link",id:`item-link-${i.value}-${k}`},null,8,["externalLink","linkText","id"])],10,Ol))),128)):$("",!0),$l,n("button",{class:"more-detail-button",onClick:u[1]||(u[1]=V=>r(t.item.internal_id)),id:`info-button-${i.value}`,"aria-expanded":t.open,"aria-controls":`item-desc-${i.value}`},[n("span",{id:"info-button-"+i.value+"-text"},A(t.open?"Toon minder informatie":"Meer over deze financiering"),9,Il),n("span",Al,A(t.item.naam),1),n("div",{class:_e(t.open?"chevron-up":"chevron-down")},">",2)],8,Tl)],8,hl)}}});const jl=ue(Pl,[["__scopeId","data-v-f6cc98a5"]]),lt=St("fundingFilters",()=>({filterCounts:p({opleidingsniveau:[],sector:[],status_gebruiker:[],type_aanvrager:[],type_subsidie:[]})})),Ll={class:"filter-flex-container"},El=["id"],Rl={class:"hit-count"},Ml=["id","onClick"],Ul=26,zl=29,Nl=X({__name:"FundingFilterItem",props:{minimumDisplayedItems:Number,categoryTitle:String,filterOptions:{type:Array,default:()=>[]},selectedOptionStoreField:{type:String,required:!0},showFullOption:{type:Boolean,default:!1}},setup(t){const b=t,m=ge("$piwik"),a=de(),s=lt(),{query:i}=Q(a),{filterCounts:d}=Q(s),g=p(!1),r=p(i.value[b.selectedOptionStoreField]),h=p(d.value[b.selectedOptionStoreField]);re(d,S=>{h.value=S[b.selectedOptionStoreField]},{deep:!0}),re(i,()=>{r.value=i.value[b.selectedOptionStoreField]},{deep:!0});const c=S=>(g.value?"opties-alle-":"opties-minder-")+S+"-"+b.categoryTitle,u=S=>S.replace(" ","").length>=zl&&!b.showFullOption,O=(S,F)=>S.substring(0,F)+"...",V=S=>{if(h.value){const F=h.value.find(_=>_.key===S.value||_.key===S.value.toString());return F?`(${F.count})`:"(0)"}else return"(0)"},k=()=>{r.value&&(m("results","filter",`${b.selectedOptionStoreField}-${r.value}`),i.value[b.selectedOptionStoreField]=r.value)},f=R(()=>{if(b.minimumDisplayedItems&&!g.value){const S=[...h.value].sort((_,T)=>_.count-T.count).map(_=>_.key).reverse();return[...b.filterOptions].filter(_=>!_.onlyShowWhenExpanded).sort((_,T)=>S.indexOf(_.value.toString())-S.indexOf(T.value.toString())).slice(0,b.minimumDisplayedItems).sort((_,T)=>_.text.localeCompare(T.text))}else return b.filterOptions}),M=()=>{g.value=!g.value};return(S,F)=>(v(),y("div",Ll,[e(el,null,{default:l(()=>[e(xt,{name:"list",tag:"div"},{default:l(()=>[(v(!0),y(B,null,be(f.value,(_,T)=>(v(),U(Yt,{class:"list-item",density:"compact",lines:"one",key:_.value,id:c(T)},{default:l(()=>[n("div",{class:_e(_.class?_.class:"")},[e(tl,{dense:"",color:"cta_blue",modelValue:r.value,"onUpdate:modelValue":F[0]||(F[0]=W=>r.value=W),value:_.value,onChange:k,id:t.categoryTitle+"-"+_.value},{label:l(()=>[u(_.text)?(v(),U(Zt,{key:0,tooltipText:_.text,tip:O(_.text,Ul),index:T,count:V(_),labelId:"checkboxLabel-"+T+"-"+t.categoryTitle},null,8,["tooltipText","tip","index","count","labelId"])):(v(),y("span",{key:1,class:"mainFilterColor",id:"checkboxLabel-"+T+"-"+t.categoryTitle},[C(A(_.text)+" ",1),n("span",Rl,A(V(_)),1)],8,El))]),_:2},1032,["modelValue","value","id"])],2)]),_:2},1032,["id"]))),128))]),_:1})]),_:1}),t.minimumDisplayedItems?(v(),y("a",{key:0,style:{"z-index":"10"},href:"#",id:t.categoryTitle+"-optionsToggle",class:"expander",onClick:Z(M,["prevent"])},A(g.value?"Minder opties":"Alle opties"),9,Ml)):$("",!0)]))}});const q=ue(Nl,[["__scopeId","data-v-badfd769"]]),ql={class:"switch__label"},Dl=35,Bl=X({__name:"FundingFilterSlider",props:{optionLabel:String,age:Number,min:Number,max:Number},setup(t){const b=ge("$piwik"),m=de(),{query:a}=Q(m);re(a,()=>{i.value=a.value.leeftijd!==-1},{deep:!0});const s=a.value.leeftijd===-1,i=p(!s),d=p(s?Dl:a.value.leeftijd),g=()=>{b("results","filter","filter-by-age-toggle"),i.value?a.value.leeftijd=d.value:a.value.leeftijd=-1},r=h=>{i.value=!0,a.value.leeftijd=h,b("results","filter",`filter-by-age-${h}`)};return(h,c)=>(v(),y("div",null,[e(gl,{id:"input-leeftijd-switch",modelValue:i.value,"onUpdate:modelValue":c[0]||(c[0]=u=>i.value=u),color:"succes",onChange:g,"hide-details":""},{label:l(()=>[n("span",ql,A(t.optionLabel),1)]),_:1},8,["modelValue"]),e(ml,{class:"mt-6",modelValue:d.value,"onUpdate:modelValue":c[1]||(c[1]=u=>d.value=u),"thumb-size":15,"thumb-label":"always",min:t.min,max:t.max,step:1,color:"cta_blue","track-color":"tertiary",onEnd:r,"aria-label":"invoer slider","thumb-color":"cta_blue"},null,8,["modelValue","min","max"])]))}});const Be=ue(Bl,[["__scopeId","data-v-a1275eac"]]),Gl=t=>($e("data-v-52b7f7d3"),t=t(),Te(),t),Wl=Gl(()=>n("label",{for:"input-funding-location",class:"mb-1 font-weight-black"},"Plaats of Postcode",-1)),Zl=X({__name:"FundingFilterLocation",setup(t){const b=ge("$piwik"),m=de(),{query:a}=Q(m),s=p(""),i=p([]),d=p(null),g=p([]);re(a,()=>{s.value=a.value.postcode},{deep:!0}),Ie(async()=>{a.value.postcode!==""&&(s.value=a.value.postcode);try{const c=await Pt.getListOfCityNames();Array.isArray(c)&&(g.value=c)}catch(c){i.value.push(c)}});const r=()=>{var c;(c=d.value)==null||c.resetValidation()},h=async()=>{var u;let c=!1;d.value&&s.value!=""?c=(await d.value.validate()).valid:(u=d.value)==null||u.reset(),c?(b("results","filter","funding-location"),a.value.postcode=s.value):a.value.postcode=""};return(c,u)=>(v(),U(x(sl),{class:"input-filter",onSubmit:u[2]||(u[2]=Z(()=>{},["prevent"])),"fast-fail":"",ref_key:"form",ref:d},{default:l(()=>[Wl,e(al,{placeholder:"1234, 1234AB of Leiden",modelValue:s.value,"onUpdate:modelValue":u[0]||(u[0]=O=>s.value=O),id:"input-funding-location",rules:x(nl),onBlur:h,"onUpdate:focused":r,"validate-on":"blur lazy",onKeyup:u[1]||(u[1]=wt(O=>O.target.blur(),["enter"])),variant:"outlined",flat:"","custom-filter":x(il),items:g.value,"auto-select-first":""},null,8,["modelValue","rules","custom-filter","items"])]),_:1},512))}});const Ge=ue(Zl,[["__scopeId","data-v-52b7f7d3"]]),G=t=>($e("data-v-0116ffed"),t=t(),Te(),t),Ql={key:0,style:{position:"relative"}},Kl={class:"mobile-filters--toggle"},Xl=G(()=>n("span",{class:"btn_text"},"Verfijn je resultaten",-1)),Hl={id:"filter-component",class:"desktop-filters"},Jl=G(()=>n("h2",null,"Kenmerken",-1)),Yl={class:"filter not-selectable",id:"funding-type-filter"},ea=G(()=>n("span",null,"Soort financiering",-1)),ta={key:0},la={"aria-label":"filter formulier type financiering",id:"funding-type-filter-menu"},aa=["onClick"],na={class:"filter not-selectable",id:"applicant-type-filter"},ia=G(()=>n("span",null,"Aanvrager",-1)),sa={key:0},oa={"aria-label":"filter formulier type aanvrager",id:"applicant-type-filter-menu"},ra=["onClick"],ua={class:"filter not-selectable",id:"employment-status-filter"},da=G(()=>n("span",null,"Arbeidssituatie",-1)),ca={key:0},va={"aria-label":"filter formulier arbeidssituatie",id:"employment-status-filter-menu"},fa=G(()=>n("br",null,null,-1)),_a=["onClick"],ma={class:"filter not-selectable",id:"age-filter"},pa=G(()=>n("span",null,"Leeftijd",-1)),ga={key:0},ba={"aria-label":"filter formulier leeftijd",id:"age-filter-menu"},ha=["onClick"],ya={class:"filter not-selectable",id:"education-level-filter"},ka=G(()=>n("span",null,"Opleidingsniveau",-1)),Sa={key:0},xa={"aria-label":"filter formulier opleidingsniveau",id:"education-level-filter-menu"},wa=["onClick"],Va={class:"filter not-selectable",id:"distance-filter"},Fa=G(()=>n("span",null,"Locatie",-1)),Ca={key:0},Oa={"aria-label":"filter formulier locatie",id:"distance-filter-menu"},$a=["onClick"],Ta={class:"filter not-selectable",id:"sector-filter"},Ia=G(()=>n("span",null,"Sector",-1)),Aa={key:0},Pa={"aria-label":"filter formulier sector",id:"sector-filter-menu"},ja=["onClick"],La={key:0,class:"mobile-filters"},Ea=X({__name:"FundingFilter",setup(t){const b=Ae(),m=p(Vt()),a=de(),s=lt(),{page:i,query:d}=Q(a),{filterCounts:g}=Q(s),r=p({}),h=p(!1);re(d,()=>{c()},{deep:!0}),Ie(()=>{if(Je(b.query)){const V=Ye(b.query);d.value=V,i.value=V.page??1}c()});const c=async()=>{try{const V=await Oe.getFilterCounts(d.value);g.value=V}catch{}},u=()=>{Object.keys(r.value).forEach(V=>r.value[V]=!1)},O=()=>{h.value=!h.value};return(V,k)=>m.value?(v(),y("div",Ql,[we(n("div",Kl,[e(Ft,{class:"btn",onClick:k[0]||(k[0]=f=>O()),id:"mobile-filter-btn"},{default:l(()=>[e(j,{icon:"filter"}),Xl]),_:1})],512),[[Ve,m.value.smAndDown]]),we(n("div",Hl,[e(E,null,{default:l(()=>[Jl]),_:1}),e(E,{justify:"space-between"},{default:l(()=>[n("div",Yl,[e(ne,{id:"funding-type-filter-menu",modelValue:r.value.type,"onUpdate:modelValue":k[1]||(k[1]=f=>r.value.type=f),eager:!0,"scroll-strategy":"none",offset:"25","close-on-content-click":!1,"allow-overflow":!0,"content-class":"elevation-0 filter__menu__container",attach:!0},{activator:l(({props:f})=>[n("button",D(f,{class:["filter__expander",{active:r.value.type}],id:"funding-type-button"}),[ea,x(d).type_subsidie.length>0?(v(),y("span",ta,"â—")):$("",!0),e(j,{icon:"caret-down",middle:"",class:"filter__bracket"})],16)]),default:l(()=>[n("form",la,[e(ee,{elevation:"4",class:"filter__menu filter__menu-wide"},{default:l(()=>[e(E,{class:"filter__menu__header"},{default:l(()=>[e(te,{class:"filter__menu__title"},{default:l(()=>[C(" Wat voor soort financiering zoek je? ")]),_:1}),n("button",{onClick:Z(u,["prevent"]),class:"filter__menu__close text-cta_blue pa-4","aria-label":"Sluit filter"},[e(j,{icon:"close"})],8,aa)]),_:1}),e(ae,{class:"mx-4"}),e(le,null,{default:l(()=>[e(q,{id:"subsidietype-filter-list",class:"single-column",categoryTitle:"Type",filterOptions:x(Re),selectedOptionStoreField:"type_subsidie"},null,8,["filterOptions"])]),_:1})]),_:1})])]),_:1},8,["modelValue"])]),n("div",na,[e(ne,{id:"applicant-type-filter-menu",modelValue:r.value.aanvrager,"onUpdate:modelValue":k[2]||(k[2]=f=>r.value.aanvrager=f),eager:!0,"scroll-strategy":"none",offset:"25","close-on-content-click":!1,"allow-overflow":!0,"content-class":"elevation-0 filter__menu__container",attach:!0},{activator:l(({props:f})=>[n("button",D(f,{class:["filter__expander",{active:r.value.aanvrager}],id:"applicant-type-button"}),[ia,x(d).type_aanvrager.length>0?(v(),y("span",sa,"â—")):$("",!0),e(j,{icon:"caret-down",class:"filter__bracket"})],16)]),default:l(()=>[n("form",oa,[e(ee,{elevation:"4",class:"filter__menu filter__menu-wide"},{default:l(()=>[e(E,{class:"filter__menu__header"},{default:l(()=>[e(te,{class:"filter__menu__title"},{default:l(()=>[C(" Wie is de aanvrager? ")]),_:1}),n("button",{onClick:Z(u,["prevent"]),class:"filter__menu__close text-cta_blue pa-4","aria-label":"Sluit filter"},[e(j,{icon:"close"})],8,ra)]),_:1}),e(ae,{class:"mx-4"}),e(le,null,{default:l(()=>[e(q,{id:"aanvrager-filter-list",class:"single-column",categoryTitle:"Aanvrager",filterOptions:x(Me),selectedOptionStoreField:"type_aanvrager"},null,8,["filterOptions"])]),_:1})]),_:1})])]),_:1},8,["modelValue"])]),n("div",ua,[e(ne,{id:"employment-status-filter-menu",modelValue:r.value.arbeidssituatie,"onUpdate:modelValue":k[3]||(k[3]=f=>r.value.arbeidssituatie=f),eager:!0,"scroll-strategy":"none",offset:"25","close-on-content-click":!1,"allow-overflow":!0,"content-class":"elevation-0 filter__menu__container",attach:!0},{activator:l(({props:f})=>[n("button",D(f,{class:["filter__expander",{active:r.value.arbeidssituatie}],id:"employment-status-button"}),[da,x(d).status_gebruiker.length>0?(v(),y("span",ca,"â—")):$("",!0),e(j,{icon:"caret-down",class:"filter__bracket"})],16)]),default:l(()=>[n("form",va,[e(ee,{elevation:"4",class:"filter__menu filter__menu-wide"},{default:l(()=>[e(E,{class:"filter__menu__header"},{default:l(()=>[e(te,{class:"filter__menu__title"},{default:l(()=>[C(" Wat is de situatie die het beste past bij"),fa,C(" degene voor wie je de financiering zoekt? ")]),_:1}),n("button",{onClick:Z(u,["prevent"]),class:"filter__menu__close text-cta_blue pa-4","aria-label":"Sluit filter"},[e(j,{icon:"close"})],8,_a)]),_:1}),e(ae,{class:"mx-4"}),e(le,null,{default:l(()=>[e(q,{id:"workstatus-filter-list",class:"single-column",categoryTitle:"Arbeidssituatie",filterOptions:x(Ue),selectedOptionStoreField:"status_gebruiker"},null,8,["filterOptions"])]),_:1})]),_:1})])]),_:1},8,["modelValue"])]),n("div",ma,[e(ne,{id:"age-filter-menu",modelValue:r.value.leeftijd,"onUpdate:modelValue":k[4]||(k[4]=f=>r.value.leeftijd=f),eager:!0,"scroll-strategy":"none",offset:"25","close-on-content-click":!1,"allow-overflow":!0,"content-class":"elevation-0 filter__menu__container",attach:!0},{activator:l(({props:f})=>[n("button",D(f,{class:["filter__expander",{active:r.value.leeftijd}],id:"age-filter-button"}),[pa,x(d).leeftijd!==-1?(v(),y("span",ga,"â—")):$("",!0),e(j,{icon:"caret-down",class:"filter__bracket"})],16)]),default:l(()=>[n("form",ba,[e(ee,{elevation:"4",class:"filter__menu filter__menu-wide"},{default:l(()=>[e(E,{class:"filter__menu__header"},{default:l(()=>[e(te,{class:"filter__menu__title"},{default:l(()=>[C(" Wat is de leeftijd van degene voor wie je de financiering zoekt? ")]),_:1}),n("button",{onClick:Z(u,["prevent"]),class:"filter__menu__close text-cta_blue pa-4","aria-label":"Sluit filter"},[e(j,{icon:"close"})],8,ha)]),_:1}),e(ae,{class:"mx-4"}),e(le,null,{default:l(()=>[e(Be,{id:"age-filter-list",optionLabel:"Filter op leeftijd",age:x(d).leeftijd,min:16,max:80},null,8,["age"])]),_:1})]),_:1})])]),_:1},8,["modelValue"])]),n("div",ya,[e(ne,{id:"education-level-filter-menu",modelValue:r.value.opleidingsniveau,"onUpdate:modelValue":k[5]||(k[5]=f=>r.value.opleidingsniveau=f),eager:!0,"scroll-strategy":"none",offset:"25","close-on-content-click":!1,"allow-overflow":!0,"content-class":"elevation-0 filter__menu__container",attach:!0},{activator:l(({props:f})=>[n("button",D(f,{class:["filter__expander",{active:r.value.opleidingsniveau}],id:"education-level-filter-button"}),[ka,x(d).opleidingsniveau.length>0?(v(),y("span",Sa,"â—")):$("",!0),e(j,{icon:"caret-down",class:"filter__bracket"})],16)]),default:l(()=>[n("form",xa,[e(ee,{elevation:"4",class:"filter__menu filter__menu-wide"},{default:l(()=>[e(E,{class:"filter__menu__header"},{default:l(()=>[e(te,{class:"filter__menu__title"},{default:l(()=>[C(" Welk opleidingsniveau heeft degene voor wie je de financiering zoekt? ")]),_:1}),n("button",{onClick:Z(u,["prevent"]),class:"filter__menu__close text-cta_blue pa-4","aria-label":"Sluit filter"},[e(j,{icon:"close"})],8,wa)]),_:1}),e(ae,{class:"mx-4"}),e(le,null,{default:l(()=>[e(q,{id:"education-level-filter-list",class:"single-column",categoryTitle:"Opleidingsniveau",filterOptions:x(ze),selectedOptionStoreField:"opleidingsniveau"},null,8,["filterOptions"])]),_:1})]),_:1})])]),_:1},8,["modelValue"])]),n("div",Va,[e(ne,{id:"distance-filter-menu",modelValue:r.value.distance,"onUpdate:modelValue":k[6]||(k[6]=f=>r.value.distance=f),eager:!0,"scroll-strategy":"none",offset:"25","close-on-content-click":!1,"allow-overflow":!0,"content-class":"elevation-0 filter__menu__container",attach:!0},{activator:l(({props:f})=>[n("button",D(f,{class:["filter__expander",{active:r.value.distance}],id:"distance-filter-button"}),[Fa,x(d).postcode!==""?(v(),y("span",Ca,"â—")):$("",!0),e(j,{icon:"caret-down",class:"filter__bracket"})],16)]),default:l(()=>[n("form",Oa,[e(ee,{elevation:"4",class:"filter__menu filter__menu-wide"},{default:l(()=>[e(E,{class:"filter__menu__header"},{default:l(()=>[e(te,{class:"filter__menu__title"},{default:l(()=>[C(" Op welk postcodegebied heeft de aanvraag betrekking? ")]),_:1}),n("button",{onClick:Z(u,["prevent"]),class:"filter__menu__close text-cta_blue pa-4","aria-label":"Sluit filter",id:"close-distance-filter-button"},[e(j,{icon:"close"})],8,$a)]),_:1}),e(ae,{class:"mx-4"}),e(le,null,{default:l(()=>[e(Ge,{id:"distance-funding-filter"})]),_:1})]),_:1})])]),_:1},8,["modelValue"])]),n("div",Ta,[e(ne,{id:"sector-filter-menu",modelValue:r.value.sector,"onUpdate:modelValue":k[7]||(k[7]=f=>r.value.sector=f),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:l(({props:f})=>[n("button",D(f,{class:["filter__expander",{active:r.value.sector}],id:"sector-filter-button"}),[Ia,x(d).sector.length>0?(v(),y("span",Aa,"â—")):$("",!0),e(j,{icon:"caret-down",class:"filter__bracket"})],16)]),default:l(()=>[n("form",Pa,[e(ee,{elevation:"4",class:"filter__menu"},{default:l(()=>[e(E,{class:"filter__menu__header"},{default:l(()=>[e(te,{class:"filter__menu__title"},{default:l(()=>[C(" Wat is de sector waarin je een subsidie zoekt? ")]),_:1}),n("button",{onClick:Z(u,["prevent"]),class:"filter__menu__close text-cta_blue pa-4","aria-label":"Sluit filter"},[e(j,{icon:"close"})],8,ja)]),_:1}),e(ae,{class:"mx-4"}),e(le,null,{default:l(()=>[e(q,{id:"sector-filter-list",class:"triple-column",categoryTitle:"Sector",filterOptions:x(Ne),selectedOptionStoreField:"sector"},null,8,["filterOptions"])]),_:1})]),_:1})])]),_:1},8,["modelValue"])])]),_:1})],512),[[Ve,m.value.mdAndUp]]),h.value?we((v(),y("div",La,[e(ol,null,{default:l(()=>[e(ie,null,{default:l(()=>[e(se,null,{default:l(()=>[C(" Soort financiering ")]),_:1}),e(oe,null,{default:l(()=>[e(q,{categoryTitle:"Type",filterOptions:x(Re),selectedOptionStoreField:"type_subsidie"},null,8,["filterOptions"])]),_:1})]),_:1}),e(ie,null,{default:l(()=>[e(se,null,{default:l(()=>[C(" Aanvrager ")]),_:1}),e(oe,null,{default:l(()=>[e(q,{categoryTitle:"Aanvrager",filterOptions:x(Me),selectedOptionStoreField:"type_aanvrager"},null,8,["filterOptions"])]),_:1})]),_:1}),e(ie,null,{default:l(()=>[e(se,null,{default:l(()=>[C(" Arbeidssituatie ")]),_:1}),e(oe,null,{default:l(()=>[e(q,{categoryTitle:"Arbeidssituatie",filterOptions:x(Ue),selectedOptionStoreField:"status_gebruiker"},null,8,["filterOptions"])]),_:1})]),_:1}),e(ie,null,{default:l(()=>[e(se,null,{default:l(()=>[C(" Leeftijd ")]),_:1}),e(oe,null,{default:l(()=>[e(Be,{optionLabel:"Filter op leeftijd",min:16,max:80})]),_:1})]),_:1}),e(ie,null,{default:l(()=>[e(se,null,{default:l(()=>[C(" Opleidingsniveau ")]),_:1}),e(oe,null,{default:l(()=>[e(q,{categoryTitle:"Opleidingsniveau",filterOptions:x(ze),selectedOptionStoreField:"opleidingsniveau"},null,8,["filterOptions"])]),_:1})]),_:1}),e(ie,null,{default:l(()=>[e(se,null,{default:l(()=>[C(" Locatie ")]),_:1}),e(oe,null,{default:l(()=>[e(Ge)]),_:1})]),_:1}),e(ie,null,{default:l(()=>[e(se,null,{default:l(()=>[C(" Sector ")]),_:1}),e(oe,null,{default:l(()=>[e(q,{categoryTitle:"Sector",filterOptions:x(Ne),selectedOptionStoreField:"sector",minimumDisplayedItems:7,showFullOption:!0},null,8,["filterOptions"])]),_:1})]),_:1})]),_:1})],512)),[[Ve,m.value.smAndDown]]):$("",!0)])):$("",!0)}});const Ra=ue(Ea,[["__scopeId","data-v-0116ffed"]]),Ma={id:"result-and-argument-summary"},Ua={id:"filters-summary"},za={key:0},Na=X({__name:"FundingResultStatus",props:{pageStart:Number,pageStop:Number,total:Number},setup(t,{expose:b}){const m=de(),{query:a}=Q(m),s=p(null),i=[{title:"Relevantie",value:null},{title:"Naam financiering (A-Z)",value:{veld:"naam",type:"asc"}},{title:"Naam financiering (Z-A)",value:{veld:"naam",type:"desc"}},{title:"Naam verstrekker (A-Z)",value:{veld:"organisaties",type:"asc"}},{title:"Naam verstrekker (Z-A)",value:{veld:"organisaties",type:"desc"}}],d=R(()=>[{text:"Soort financiering",id:"chip-type",active:a.value.type_subsidie.length>0,clickMethod:h},{text:"Aanvrager",id:"chip-aanvrager",active:a.value.type_aanvrager.length>0,clickMethod:c},{text:"Arbeidssituatie",id:"chip-arbeidssituatie",active:a.value.status_gebruiker.length>0,clickMethod:k},{text:"Locatie",id:"chip-locatie",active:a.value.postcode!=="",clickMethod:V},{text:"Leeftijd",id:"chip-leeftijd",active:a.value.leeftijd!==-1,clickMethod:O},{text:"Opleidingsniveau",id:"chip-opleidingsniveau",active:a.value.opleidingsniveau.length>0,clickMethod:f},{text:"Sector",id:"chip-sector",active:a.value.sector.length>0,clickMethod:u}]),g=R(()=>({text:a.value.zoekargument.trim(),id:"searchargumentchip",active:!0,clickMethod:()=>a.value.zoekargument=""})),r=R(()=>[a.value.type_subsidie.length>0,a.value.type_aanvrager.length>0,a.value.status_gebruiker.length>0,a.value.postcode!=="",a.value.opleidingsniveau.length>0,a.value.leeftijd!==-1,a.value.sector.length>0].some(F=>F)),h=()=>{a.value.type_subsidie=[]},c=()=>{a.value.type_aanvrager=[]},u=()=>{a.value.sector=[]},O=()=>{a.value.leeftijd=-1},V=()=>{a.value.postcode=""},k=()=>{a.value.status_gebruiker=[]},f=()=>{a.value.opleidingsniveau=[]};return b({scrollTo:()=>{var S;(S=s.value)==null||S.scrollIntoView({behavior:"smooth"})}}),(S,F)=>(v(),U(E,{id:"status-component-financieringen",class:"no-gutters",amount:t.total},{default:l(()=>[e(me,{cols:"12",sm:"12",md:"9",lg:"9"},{default:l(()=>[n("p",{ref_key:"statusComponentP",ref:s,id:"search-query-summary"},[n("span",Ma,[t.total?(v(),y(B,{key:0},[C(" Resultaten "+A(t.pageStart)+" - "+A(t.pageStop)+" van "+A(t.total),1)],64)):(v(),y(B,{key:1},[C(" Geen resultaten ")],64)),x(a).zoekargument.trim()?(v(),y(B,{key:2},[C(" voor "),g.value?(v(),U(De,{key:g.value.id,chip:g.value},null,8,["chip"])):$("",!0)],64)):$("",!0)]),n("span",Ua,[r.value?(v(),y(B,{key:0},[g.value?(v(),y("span",za,"Â ")):$("",!0),C(" gefilterd door ")],64)):$("",!0),(v(!0),y(B,null,be(d.value,_=>(v(),U(De,{key:_.id,chip:_},null,8,["chip"]))),128))])],512)]),_:1}),e(me,{cols:"12",sm:"12",md:"3",lg:"3"},{default:l(()=>[e(rl,{modelValue:x(a).sorteren,"onUpdate:modelValue":F[0]||(F[0]=_=>x(a).sorteren=_),items:i},null,8,["modelValue"])]),_:1})]),_:1},8,["amount"]))}});const qa=ue(Na,[["__scopeId","data-v-9c1195da"]]),Da={class:"background-primary",style:{"min-height":"640px",color:"var(--white)"}},Ba={class:"app-container"},Ga={class:"cards-container"},Wa={class:"loading_state"},Za=500,We=3,Qa=1e5,Ka=X({__name:"FundingResults",setup(t){const b=He(),m=de(),{itemsPerPage:a}=Q(b),{query:s,page:i}=Q(m),d={idle:"idle",loading:"loading",loaded:"loaded",failed:"failed"},g=p([]),r=p(!1),h=p(d.idle),c=p(""),u=p(0),O=p([]),V=p(null),k=p(null),f=p(-1),M=p(Za),S=p(-1),F=p(We),_=p([]),T=p(""),W=p(!1),I=p(s.value.zoekargument),{assertive:z}=Ct(),P=Ae(),N=Ot();Ie(async()=>{if(Je(P.query)){const o=Ye(P.query);s.value=o,I.value=o.zoekargument;const w=Ut(P.query.page,1);await L(w)}else J();fe(),W.value=!0}),re(I,o=>{const w=vl(o,We);if(w===null){_.value=[];return}ct(w)}),re(s,()=>{W.value&&(r.value&&(i.value=1),I.value=s.value.zoekargument,dt(),fe(),J())},{deep:!0});const L=async o=>{o<1||o>=Qa/a.value?(i.value=1,await J()):(i.value=o,await J(),o>ve.value&&(i.value=ve.value),i.value!==o&&J())},H=o=>{T.value=o===T.value?"":o},K=R(()=>u.value===0&&h.value===d.loaded?"Mascot_Sad_Purple_BG":"Mascot_Friendly_Purple_BG"),he=R(()=>u.value===0&&h.value===d.loaded?"Ik heb helaas niks voor je gevonden.":"Dit heb ik voor je gevonden. Teveel resultaten? Gebruik dan de filters!"),ye=R(()=>i.value===1||u.value<a.value?1:(i.value-1)*a.value+1),ce=R(()=>i.value*a.value>=u.value?u.value:i.value===1?a.value:i.value*a.value),ve=R(()=>Math.ceil(u.value/a.value)),at=o=>{const w=o??i.value+1;w<=ve.value&&(i.value=w,z("Nieuwe pagina ingeladen")),fe(),J(),ke(),Se()},nt=o=>{const w=o??i.value-1;w>=1&&(i.value=w,z("Terug naar vorige pagina")),fe(),J(),ke(),Se()},it=o=>{if(o<1||o>ve.value)return"";const w=new URLSearchParams(window.location.search);return w.set("page",o.toString()),`${window.location.origin}${window.location.pathname}?${w.toString()}`},fe=()=>{const o=zt({...s.value,page:i.value});o.query&&!Nt(P.query,o.query)&&N.replace(o)},st=()=>{ke(),Se()},ke=()=>{const o=document.getElementById("resultaten-pagination-container");o&&(o.tabIndex=-1,o.focus({preventScroll:!0}),o.blur())},ot=()=>{V.value&&V.value.focusInput()},rt=()=>{N.push({name:"geld"})},ut=()=>{s.value.zoekargument=c.value},J=async()=>{g.value=[];try{const o=await Oe.search(s.value,i.value);O.value=o.result,u.value=o.result_count,c.value=o.alternative,r.value=!0,h.value=d.loaded,f.value=-1}catch(o){g.value=[o]}},dt=()=>{h.value=d.loaded;const o=[s.value.zoekargument==="",s.value.type_subsidie.length===0,s.value.type_aanvrager.length===0,s.value.sector.length===0,s.value.leeftijd===-1,s.value.postcode==="",s.value.status_gebruiker.length===0,s.value.opleidingsniveau.length===0];r.value=!o.every(w=>w)},Se=()=>{var o;(o=k.value)==null||o.scrollTo()},Pe=()=>{var o;s.value.zoekargument=I.value,(o=V.value)==null||o.scrollIntoView()},ct=async o=>{const w=jt(async()=>{if(!(o.length<F.value))try{_.value=await Oe.getAutoComplete(o)}catch{_.value=[]}},S.value,M.value)();S.value=w.newTimeoutId,await w.debouncedFunction};return(o,w)=>(v(),y("div",Da,[n("div",Ba,[e(Fe,{fluid:""},{default:l(()=>[e(E,{justify:"center"},{default:l(()=>[e(Qt,{mascotText:he.value,mascotImage:x($t)(K.value,"mascotte")},{searchbar:l(()=>[e(cl,{ref_key:"searchbar",ref:V,modelValue:I.value,"onUpdate:modelValue":w[0]||(w[0]=Y=>I.value=Y),placeholder:"Toets hier de naam van een financiering",autocompleteList:_.value,onSearch:Pe,onClear:Pe},null,8,["modelValue","autocompleteList"])]),header:l(()=>[e(Lt)]),filter:l(()=>[e(Ra)]),_:1},8,["mascotText","mascotImage"]),e(me,{class:"mb-4",cols:"12",sm:"12",md:"10",lg:"10"},{default:l(()=>[e(Fe,{fluid:""},{default:l(()=>[e(E,{justify:"center"},{default:l(()=>[e(me,{class:"radar_bg",id:"resultslistgeldhulp",cols:"12",sm:"12",md:"12",lg:"12"},{default:l(()=>[e(qa,{pageStart:ye.value,pageStop:ce.value,total:u.value,ref_key:"filterStatus",ref:k},null,8,["pageStart","pageStop","total"]),O.value.length<=3&&c.value!=""&&h.value===d.loaded?(v(),y("a",{key:0,id:"alternative",class:"alternative",onClick:w[1]||(w[1]=Y=>ut())},[n("p",null,[C(" Zoek in plaats daarvan naar "),n("strong",null,[n("u",null,A(c.value),1)])])])):$("",!0),r.value&&h.value===d.loaded?(v(),U(Fe,{key:1,style:{"max-width":"840px"}},{default:l(()=>[O.value.length===0?(v(),U(Kt,{key:0,style:{width:"100%"},id:"geen-resultaten",onFocusSearchbar:w[2]||(w[2]=Y=>ot()),onRestartDialogue:w[3]||(w[3]=Y=>rt())})):$("",!0)]),_:1})):$("",!0),h.value===d.loaded&&O.value.length>0?(v(),U(ul,{key:2,items:O.value,id:"resultaten-pagination-container",itemsPerPage:x(a),"onUpdate:page":w[4]||(w[4]=Y=>st()),"hide-default-footer":!0},{default:l(({items:Y})=>[n("div",Ga,[(v(!0),y(B,null,be(Y,(xe,je)=>(v(),U(jl,{item:xe.raw,cardIndex:je,isExpanded:je===f.value,key:`funding-card-${xe.raw.internal_id}`,open:T.value===xe.raw.internal_id,onToggleOpen:H},null,8,["item","cardIndex","isExpanded","open"]))),128))])]),footer:l(()=>[e(dl,{page:x(i),getPaginationUrl:it,itemsPerPage:x(a),totalResults:u.value,formerPage:nt,nextPage:at},null,8,["page","itemsPerPage","totalResults"])]),_:1},8,["items","itemsPerPage"])):$("",!0),h.value===d.loading?Tt(o.$slots,"loading",{key:3},()=>[n("div",Wa,[e(Xe,{indeterminate:"",color:"cta_blue",size:90,width:4,"aria-label":"loading","aria-busy":"true"})])],!0):$("",!0)]),_:3})]),_:3})]),_:3})]),_:3})]),_:3})]),_:3})])]))}});const Xa=ue(Ka,[["__scopeId","data-v-edf1a366"]]),Ha={class:"zoek-financieringen"},Fn=X({__name:"SearchFundings",setup(t){const{updateColorValues:b}=It();b("primary"),fl({title:"Leeroverzicht - Geld - Zoek financiering",meta:[{name:"description",content:"Zoek passende financiering. Beantwoord de vragen van de mascotte of zoek op de naam van een subsidie, beurs of regeling. Gebruik de filters om het aantal zoekresultaten te verkleinen."}],link:[{rel:"canonical",href:document.location.origin+"/geld/zoeken"}]});const m=Ae(),a=He();return At(()=>{const s=m.query.loglevel??"";a.updateLogLevel(s)}),(s,i)=>(v(),y("div",Ha,[e(Xa)]))}});export{Fn as default};