import{d as h,k as w,H as A,r as O,o,c as _,a as d,w as m,m as F,b,G as S,x as q,n as c,B as P,e as u,t as E,A as v,a4 as B,_ as N,ae as R,z as G,V as D,j as M,F as Q,l as W,J as z,K as U,E as I,f as K}from"./index-207e8178.js";import{_ as H}from"./AccreditationChip.vue_vue_type_script_setup_true_lang-c587f4c7.js";import{u as V}from"./compareProgramsStore-237e142b.js";import{P as j,a as $}from"./EventActions-9062df64.js";import{V as J}from"./VCheckbox-6837210d.js";import{P as X}from"./EventNames-6f9cd989.js";import{f as Y}from"./findCreboCrohoErkenningen-2e90e056.js";import{A as a,V as t,C as n,t as Z,a as y,i as ee,b as L,c as te,T as ae,d as ne,e as ie,h as re,f as le,_ as oe}from"./ValidationFunctions-a4a127c5.js";import{I as T}from"./InfoToggle-34b6c15c.js";import{k as f}from"./checkTypingFunction-087f80ba.js";const se={class:"compare-button"},de=b("div",{class:"compare-button-label"},"Vergelijk",-1),ce=h({__name:"CompareCheckboxButton",props:{program:{type:Object,required:!0}},setup(e){const i=e,r=w("$piwik"),l=V(),{query:g}=A(l),k=O(g.value.programs.some(s=>s.internal_id==i.program.internal_id)),p=s=>{s?(l.addProgram(i.program),r(j.Vergelijken,$.Compare,i.program.internal_id)):l.removeProgram(i.program.internal_id)};return(s,x)=>(o(),_("div",se,[d(J,{density:"compact",modelValue:k.value,"onUpdate:modelValue":[x[0]||(x[0]=C=>k.value=C),p],"true-icon":"mdi-checkbox-outline"},{label:m(()=>[de,d(F,{icon:"mdi-layers"})]),_:1},8,["modelValue"])]))}});const ue={key:0},me=h({__name:"CompareNavButton",setup(e){const i=w("$piwik"),r=V(),{query:l}=A(r),g=()=>{i(j.Vergelijken,$.Click,X.GoToComparison)},k=S(()=>l.value.programs.length>0),p=S(()=>l.value.programs.length<2);return(s,x)=>{const C=q("router-link");return o(),c(B,null,{default:m(()=>[k.value?(o(),_("div",ue,[d(C,{"aria-label":"Ga naar vergelijken",class:P(p.value?"disabled":""),to:{name:"leren-vergelijken",query:{ids:u(r).programIds.join(",")}},onClick:x[0]||(x[0]=_e=>g())},{default:m(()=>[d(F,{size:"small",icon:"mdi-checkbox-marked"}),b("span",null,"Ga naar vergelijken ("+E(u(l).programs.length)+")",1)]),_:1},8,["class","to"])])):v("",!0)]),_:1})}}});const pe=N(me,[["__scopeId","data-v-4eb7ceb0"]]),fe=(e,i)=>{if(!i||!e)return e;const{tijdsbesteding_variants:r}=e;return r[i]?{...e,...r[i],tijdsbesteding_variants:void 0}:e},ge=h({__name:"AttributesVariantWrapper",props:{rawAttributes:{type:Object,required:!0},currentVariant:{type:String,required:!0}},setup(e){const i=e,r=O({});return R(()=>r.value=fe(i.rawAttributes,i.currentVariant)),(l,g)=>G(l.$slots,"default",{attributeConfigWithVariantsApplied:r.value})}}),ke=[{name:"studieduur",config:{type:a.Text,order:1,visibleOnState:[t.Collapsed,t.Expanded],column:n.Left,isList:!1},content:{title:{text:"Studieduur",tooltip:{text:f.studieduur}},valueIsLink:!1,linkIsExternal:!1}},{name:"elearning",config:{type:a.Text,order:2,visibleOnState:[t.Collapsed,t.Expanded],column:n.Left,isList:!1},content:{title:{text:"Beschikbare leervormen"},valueIsLink:!1,linkIsExternal:!1,decoratorFunction:Z}},{name:"opleidingseenheid",config:{type:a.Text,order:3,visibleOnState:[t.Expanded],column:n.Left,isList:!1},content:{title:{text:"Opleidingseenheid"},valueIsLink:!1,linkIsExternal:!1,decoratorFunction:y}},{name:"leertraject",config:{type:a.Text,order:4,visibleOnState:[t.Expanded],column:n.Left,isList:!1},content:{title:{text:"Leerweg",tooltip:{text:f.leertraject}},valueIsLink:!1,linkIsExternal:!1}},{name:"opleider_naam",config:{type:a.Text,order:5,visibleOnState:[t.Expanded],column:n.Left,isList:!1},content:{title:{text:"Opleider"},valueIsLink:!1,linkIsExternal:!1}},{name:"locaties",config:{type:a.Text,order:7,visibleOnState:[t.Expanded],column:n.Left,isList:!1,validationFunctions:[ee]},content:{title:{text:"Locatie"},valueIsLink:!1,linkIsExternal:!1,decoratorFunction:L}},{name:"programma_thema",config:{type:a.Text,order:8,visibleOnState:[t.Expanded],column:n.Left,isList:!1},content:{title:{text:"Thema's"},valueIsLink:!1,linkIsExternal:!1,decoratorFunction:L}},{name:"variants",config:{type:a.Text,order:9,visibleOnState:[t.Expanded],column:n.Left,isList:!0},content:{title:{text:"Varianten"},valueIsLink:!1,linkIsExternal:!1}},{name:"programma_financiering",config:{type:a.Link,order:10,visibleOnState:[t.Expanded,t.Collapsed],column:n.Left,isList:!0},content:{title:{text:"Mogelijke financiering"},valueIsLink:!0,linkIsExternal:!0}},{name:"niveau",config:{type:a.Text,order:11,visibleOnState:[t.Expanded,t.Collapsed],column:n.Right,isList:!1,validationFunctions:[te]},content:{title:{text:"Niveau van de opleiding",tooltip:{text:f.nlqf}},valueIsLink:!1,linkIsExternal:!1,decoratorFunction:ae}},{name:"niveau",config:{type:a.Text,order:11,visibleOnState:[t.Expanded,t.Collapsed],column:n.Right,isList:!1,validationFunctions:[ne]},content:{title:{text:"Werk- en denkniveau"},valueIsLink:!1,linkIsExternal:!1,decoratorFunction:y}},{name:"soort_diploma",config:{type:a.Text,order:12,visibleOnState:[t.Expanded,t.Collapsed],column:n.Right,isList:!1},content:{title:{text:"Soort diploma"},valueIsLink:!1,linkIsExternal:!1,decoratorFunction:y}},{name:"tijdsbesteding",config:{type:a.Text,order:13,visibleOnState:[t.Expanded],column:n.Right,isList:!1},content:{title:{text:"Voltijd, deeltijd of duaal",tooltip:{text:f.tijdsbesteding}},valueIsLink:!1,linkIsExternal:!1,decoratorFunction:L}},{name:"programma_accreditatie",config:{type:a.Chip,order:14,visibleOnState:[t.Expanded],column:n.Right,isList:!1,validationFunctions:[ie]},content:{title:{text:"Keurmerk"},valueIsLink:!1,linkIsExternal:!1}},{name:"instructietaal",config:{type:a.Text,order:15,visibleOnState:[t.Expanded],column:n.Right,isList:!1,validationFunctions:[re]},content:{title:{text:"Taal"},valueIsLink:!1,linkIsExternal:!1,decoratorFunction:L}},{name:"sectoren",config:{type:a.Text,order:16,visibleOnState:[t.Expanded],column:n.Right,isList:!1},content:{title:{text:"Arbeidssector"},valueIsLink:!1,linkIsExternal:!1,decoratorFunction:le}}],xe={class:"mb-3 mt-3"},ve={class:"recognition-chip-label"},be={key:0},Le=h({__name:"ProgramAttributes",props:{program:{type:Object,required:!0},isOpen:{type:Boolean,default:!1},cardIndex:{type:Number,default:0},selectedVariant:{type:String,required:!0}},setup(e){const i=e,r=V(),l=Y(i.program.erkenningen);return(g,k)=>(o(),c(K,{"no-gutters":""},{default:m(()=>[d(D,null,{default:m(()=>{var p;return[b("div",xe,[e.program.overheidserkend?(o(),c(H,{key:0,accreditation:"Overheidserkend",labelId:`keurmerk-overheidserkend-${e.cardIndex}`},null,8,["labelId"])):(p=e.program.nlqf)!=null&&p.label?(o(),c(T,{key:1,id:"NLQF-chip",asChip:!0,alt:"Meer informatie over NLQF",tooltipText:u(f).nlqf,labelId:"nlqf"},{default:m(()=>[M("NLQF "+E(e.program.nlqf.label),1)]),_:1},8,["tooltipText"])):v("",!0),u(l)?(o(!0),_(Q,{key:2},W(u(l),s=>(o(),c(T,{key:s.code,asChip:!0,alt:"Meer informatie over erkenning",tooltipText:u(f).erkenning},{default:m(()=>[b("span",ve,E(s.code),1)]),_:2},1032,["tooltipText"]))),128)):v("",!0)]),d(ge,{currentVariant:e.selectedVariant,rawAttributes:e.program},{default:m(({attributeConfigWithVariantsApplied:s})=>[d(oe,{rawAttributes:s,isOpen:e.isOpen,cardIndex:e.cardIndex,attributeConfig:u(ke)},null,8,["rawAttributes","isOpen","cardIndex","attributeConfig"])]),_:1},8,["currentVariant","rawAttributes"]),b("div",null,[d(ce,{program:e.program},null,8,["program"])]),z(d(pe,null,null,512),[[U,u(r).isComparing(e.program.internal_id)]]),e.selectedVariant&&e.program.tijdsbesteding_variants[e.selectedVariant].web_link||e.program.web_link||e.program.opleider_web_link?(o(),_("div",be,[e.selectedVariant&&e.program.tijdsbesteding_variants[e.selectedVariant].web_link?(o(),c(I,{key:0,externalLink:e.program.tijdsbesteding_variants[e.selectedVariant].web_link,linkText:"Ga naar opleiding",linkAriaLabel:"Ga naar opleiding "+e.program.titel,class:"button item-link"},null,8,["externalLink","linkAriaLabel"])):e.program.web_link?(o(),c(I,{key:1,externalLink:e.program.web_link,linkText:"Ga naar opleiding",linkAriaLabel:"Ga naar opleiding "+e.program.titel,class:"button item-link"},null,8,["externalLink","linkAriaLabel"])):e.program.opleider_web_link?(o(),c(I,{key:2,externalLink:e.program.opleider_web_link,linkText:"Ga naar opleider",linkAriaLabel:"Ga naar opleider "+e.program.opleider_naam,class:"button item-link"},null,8,["externalLink","linkAriaLabel"])):v("",!0)])):v("",!0)]}),_:1})]),_:1}))}});const Oe=N(Le,[["__scopeId","data-v-d65c1e47"]]);export{Oe as P,fe as e};