import{_ as C}from"./DSU8t9ft.js";import{d as v,r as m,f as b,aw as V,h as l,o as i,k as u,a9 as g,i as r,ao as I,t as f,v as S,s as k,ap as O,ax as j,aj as F,q as T,C as h,_ as L,l as y,E as A,j as w,V as E,m as $,ay as N,D as M,L as P}from"./Cvzsf6pb.js";const z=["open"],D={class:"tapp-accordion__title"},Q={ref:"panel",class:"tapp-accordion__panel","data-testid":"tapp-accordion-panel"},x=["default","small","faq"],H=v({__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:x[0]}},setup(p){const t=p,s=m(null),a=m(!1),o=m(),e=V("accordion",null),c=b(()=>({...t.attrsButton,...a.value&&t.attrsButtonOpen,...!a.value&&t.attrsButtonClosed})),_=b(()=>t.useVisible&&e?s.value===e.value.active:a.value);q();function q(){e&&(s.value=e.value.count++),!e&&t.openOnInit&&(a.value=!0),e&&t.openOnInit&&(e.value.active=s.value,a.value=!0)}function B(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(),l("details",{ref_key:"details",ref:o,class:g(["tapp-accordion",{"tapp-accordion--borders":n.bordersVisible}]),open:n.openOnInit||u(_),"data-testid":"tapp-accordion"},[r("summary",S({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(c),{"data-testid":"tapp-accordion-button",onClick:B}),[r("span",D,f(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:g(["tapp-accordion__inner",{"tapp-accordion__inner--small":n.variant==="small","tapp-accordion__inner--horizontal-padding":n.horizontalPadding}]),"data-testid":"tapp-accordion-inner"},[k(n.$slots,"default")],2)],512),[[O,u(_)]])],10,z))}}),W=Object.assign(H,{__name:"TappAccordion"}),J={class:"tapp-accordion-wrapper","data-testid":"tapp-accordion-wrapper"},R=v({__name:"TappAccordionWrapper",setup(p){const t=m({count:0,active:void 0});return j("accordion",t),(s,a)=>(i(),l("div",J,[k(s.$slots,"default")]))}}),Y=Object.assign(R,{__name:"TappAccordionWrapper"}),G={class:"base-show-more"},K=v({__name:"BaseShowMore",props:{active:{type:Boolean,default:!1}},setup(p){const t=F("base-show-more",()=>!1),s=m();async function a(){var e,c;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,(c=s.value)==null||c.classList.remove("closing","opening")}return(o,e)=>{const c=E,_=L;return i(),l("div",G,[r("div",{ref_key:"elementInner",ref:s,class:"base-show-more__inner"},[k(o.$slots,"default",{open:u(t)},void 0,!0)],512),o.active?(i(),T(_,{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:y(()=>[A(f(u(t)?"Toon minder":"Toon alles")+" ",1),w(c,{icon:"arrow-down",class:g(["base-show-more__icon",[u(t)&&"is-open"]])},null,8,["class"])]),_:1},8,["data-analytics-label"])):h("",!0)])}}}),U=Object.assign($(K,[["__scopeId","data-v-bc2f72a7"]]),{__name:"BaseShowMore"}),X={class:"base-faqs"},Z={key:1,class:"info"},aa=["href","data-analytics-label"],ta=v({__name:"BaseFaqs",props:{faqs:{},phoneNumber:{},centerTitle:{type:Boolean},title:{}},setup(p){const t=p,s=b(()=>({"@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=C,c=W,_=Y,q=U;return i(),l("div",X,[a.title?(i(),l("h2",{key:0,class:g(["base-faqs__title h1",{"base-faqs__title--centered":a.centerTitle}])},f(a.title),3)):h("",!0),w(q,{active:a.faqs.length>5},{default:y(({open:B})=>[a.faqs.length>0?(i(),T(_,{key:0,class:"faq-accordion divide-y"},{default:y(()=>[(i(!0),l(M,null,P(a.faqs,(n,d)=>I((i(),T(c,{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:y(()=>[w(e,{html:n.answer},null,8,["html"])]),_:2},1032,["id","title","data-asset-id","attrs-button"])),[[O,(B?Number.POSITIVE_INFINITY:5)>d]])),128))]),_:2},1024)):h("",!0)]),_:1},8,["active"]),a.phoneNumber?(i(),l("div",Z,[A(f(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},f(a.phoneNumber),9,aa)])):h("",!0)])}}}),ea=Object.assign($(ta,[["__scopeId","data-v-1191ae1b"]]),{__name:"BaseFaqs"}),na={class:"app-faq"},oa=v({__name:"AppFaq",props:{faqs:{},centerTitle:{type:Boolean}},setup(p){const t=p,s=b(()=>({"@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=ea;return i(),l("div",na,[w(e,{title:"Veelgestelde vragen",faqs:a.faqs},null,8,["faqs"])])}}}),ra=Object.assign($(oa,[["__scopeId","data-v-a660f392"]]),{__name:"AppFaq"});export{ra as _}; //# sourceMappingURL=CcBIMsHM.js.map