import{d as m,h as c,o as i,a8 as h,r as f,f as g,ay as C,k as u,i as r,aq as I,t as v,v as V,s as $,ar as O,az as S,al as j,q as B,C as y,_ as L,l as b,E as A,j as q,V as F,m as k,aA as N,D as M,L as z}from"./BUKpINFH.js";const E=["innerHTML"],P=m({__name:"BaseRichText",props:{html:{},variant:{default:"default"}},setup(l){return(t,s)=>(i(),c("div",{class:h(["base-rich-text",`base-rich-text--${t.variant}`]),innerHTML:t.html},null,10,E))}}),D=Object.assign(P,{__name:"BaseRichText"}),x=["open"],H={class:"tapp-accordion__title"},Q={ref:"panel",class:"tapp-accordion__panel","data-testid":"tapp-accordion-panel"},R=["default","small","faq"],W=m({__name:"TappAccordion",props:{attrsButton:{default:void 0},attrsButtonOpen:{default:void 0},attrsButtonClosed:{default:void 0},bordersVisible:{type:Boolean},horizontalPadding:{type:Boolean,default:!1},openOnInit:{type:Boolean},useVisible:{type:Boolean},title:{},buttonTextColor:{default:"default"},variant:{default:R[0]}},setup(l){const t=l,s=f(null),a=f(!1),o=f(),e=C("accordion",null),p=g(()=>({...t.attrsButton,...a.value&&t.attrsButtonOpen,...!a.value&&t.attrsButtonClosed})),_=g(()=>t.useVisible&&e?s.value===e.value.active:a.value);w();function w(){e&&(s.value=e.value.count++),!e&&t.openOnInit&&(a.value=!0),e&&t.openOnInit&&(e.value.active=s.value,a.value=!0)}function T(n){var d;if(n.preventDefault(),(d=o.value)!=null&&d.open){o.value.open=!1,a.value=!1,e&&e.value.active===s.value&&(e.value.active=null);return}o.value&&(o.value.open=!0),a.value=!0,e&&(e.value.active=s.value)}return(n,d)=>(i(),c("details",{ref_key:"details",ref:o,class:h(["tapp-accordion",{"tapp-accordion--borders":n.bordersVisible}]),open:n.openOnInit||u(_),"data-testid":"tapp-accordion"},[r("summary",V({ref:"summary",class:["tapp-accordion__button",{h5:!["small","medium"].includes(n.variant),"tapp-accordion__button--small":n.variant==="small","tapp-accordion__button--horizontal-padding":n.horizontalPadding,"tapp-accordion__button--primary-color":n.buttonTextColor==="primary"}]},u(p),{"data-testid":"tapp-accordion-button",onClick:T}),[r("span",H,v(n.title),1),d[0]||(d[0]=r("span",{class:"tapp-accordion__icon"},[r("span",null,[r("svg",{width:"14",height:"8",viewBox:"0 0 14 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[r("path",{d:"M1 1L7 7L13 1",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})])])],-1))],16),I(r("div",Q,[r("div",{class:h(["tapp-accordion__inner",{"tapp-accordion__inner--small":n.variant==="small","tapp-accordion__inner--horizontal-padding":n.horizontalPadding}]),"data-testid":"tapp-accordion-inner"},[$(n.$slots,"default")],2)],512),[[O,u(_)]])],10,x))}}),J=Object.assign(W,{__name:"TappAccordion"}),Y={class:"tapp-accordion-wrapper","data-testid":"tapp-accordion-wrapper"},G=m({__name:"TappAccordionWrapper",setup(l){const t=f({count:0,active:void 0});return S("accordion",t),(s,a)=>(i(),c("div",Y,[$(s.$slots,"default")]))}}),K=Object.assign(G,{__name:"TappAccordionWrapper"}),U={class:"base-show-more"},X=m({__name:"BaseShowMore",props:{active:{type:Boolean,default:!1}},setup(l){const t=j("base-show-more",()=>!1),s=f();async function a(){var e,p;if(!document.startViewTransition){t.value=!t.value;return}(e=s.value)==null||e.classList.add(t.value?"closing":"opening"),await document.startViewTransition(()=>{t.value=!t.value}).finished,(p=s.value)==null||p.classList.remove("closing","opening")}return(o,e)=>{const p=F,_=L;return i(),c("div",U,[r("div",{ref_key:"elementInner",ref:s,class:"base-show-more__inner"},[$(o.$slots,"default",{open:u(t)},void 0,!0)],512),o.active?(i(),B(_,{key:0,class:"base-show-more__button",tag:"button",variant:"ghost","data-analytics-category":"content_interaction","data-analytics-action":"item_click","data-analytics-label":`show_more - ${u(t)?"Toon minder":"Toon alles"}`,onClick:a},{default:b(()=>[A(v(u(t)?"Toon minder":"Toon alles")+" ",1),q(p,{icon:"arrow-down",class:h(["base-show-more__icon",[u(t)&&"is-open"]])},null,8,["class"])]),_:1},8,["data-analytics-label"])):y("",!0)])}}}),Z=Object.assign(k(X,[["__scopeId","data-v-bc2f72a7"]]),{__name:"BaseShowMore"}),aa={class:"base-faqs"},ta={key:1,class:"info"},ea=["href","data-analytics-label"],na=m({__name:"BaseFaqs",props:{faqs:{},phoneNumber:{},centerTitle:{type:Boolean},title:{}},setup(l){const t=l,s=g(()=>({"@context":"https://schema.org","@type":"FAQPage",mainEntity:t.faqs.map(o=>({"@type":"Question",name:o.question,acceptedAnswer:{"@type":"Answer",text:o.answer}}))}));return N({script:[{type:"application/ld+json",innerHTML:JSON.stringify(s.value)}]}),(a,o)=>{const e=D,p=J,_=K,w=Z;return i(),c("div",aa,[a.title?(i(),c("h2",{key:0,class:h(["base-faqs__title h1",{"base-faqs__title--centered":a.centerTitle}])},v(a.title),3)):y("",!0),q(w,{active:a.faqs.length>5},{default:b(({open:T})=>[a.faqs.length>0?(i(),B(_,{key:0,class:"faq-accordion divide-y"},{default:b(()=>[(i(!0),c(M,null,z(a.faqs,(n,d)=>I((i(),B(p,{id:`faq-item-${n.id}`,key:n.id,title:n.question,"data-dam-content":"","data-asset-id":n.id,"attrs-button":{"data-analytics-category":"faq","data-analytics-label":n.question},"attrs-button-closed":{"data-analytics-action":"faq_open"},"attrs-button-open":{"data-analytics-action":"faq_close"}},{default:b(()=>[q(e,{html:n.answer},null,8,["html"])]),_:2},1032,["id","title","data-asset-id","attrs-button"])),[[O,(T?Number.POSITIVE_INFINITY:5)>d]])),128))]),_:2},1024)):y("",!0)]),_:1},8,["active"]),a.phoneNumber?(i(),c("div",ta,[A(v(a.$t("missingQuestion"))+" ",1),r("a",{class:"retention-faqs__phone",href:`tel:${a.phoneNumber}`,"data-analytics-category":"navigation","data-analytics-action":"footer_link_click","data-analytics-label":a.phoneNumber},v(a.phoneNumber),9,ea)])):y("",!0)])}}}),oa=Object.assign(k(na,[["__scopeId","data-v-1191ae1b"]]),{__name:"BaseFaqs"}),sa={class:"app-faq"},ia=m({__name:"AppFaq",props:{faqs:{},centerTitle:{type:Boolean}},setup(l){const t=l,s=g(()=>({"@context":"https://schema.org","@type":"FAQPage",mainEntity:t.faqs.map(o=>({"@type":"Question",name:o.question,acceptedAnswer:{"@type":"Answer",text:o.answer}}))}));return N({script:[{type:"application/ld+json",innerHTML:JSON.stringify(s.value)}]}),(a,o)=>{const e=oa;return i(),c("div",sa,[q(e,{title:"Veelgestelde vragen",faqs:a.faqs},null,8,["faqs"])])}}}),ca=Object.assign(k(ia,[["__scopeId","data-v-a660f392"]]),{__name:"AppFaq"});export{ca as _}; //# sourceMappingURL=DHTP5qf1.js.map