1import{_ as X}from"./BaNCjCF0.js";import{o as Q,I as h,B as i,q as a,a3 as E,r as f,ad as Z,D as p,G as k,x as j,t as C,H as R,ae as O,v as D,w as g,y as ee,a6 as z,_ as K,O as te,a1 as se,Q as ne,a7 as S,p as oe,E as y,af as ae,F as x,C as G}from"./CnPZIo3v.js";import{y as ie}from"./NPB8-mQI.js";import{c as F}from"./BF_XfCnl.js";import{_ as le}from"./O97z43sW.js";import{E as re}from"./CUSyyCbF.js";import{u as ce}from"./CvXVvbKS.js";const de=["id"],ue=["id","aria-expanded"],pe={class:"ms-16 me-4"},fe=["aria-labelledby"],me=Q({__name:"FaqItem",props:{buttonId:{},question:{},id:{},groupName:{},index:{}},setup($,{expose:q,emit:d}){const r=$,I=d,{onSectionEnter:B,onSectionLeave:w}=ce({withOpacity:!0}),l=h(!1),_=()=>{l.value=!l.value;const u=r.id||`question-${r.index}`;I(re.CLICK_FAQ,{id:u,isOpened:l.value})};return q({props:r,isOpened:l,toggleFaq:_,singleToggleFaq:()=>{l.value=!0},closeFaq:()=>{l.value=!1}}),(u,b)=>(a(),i("div",{id:u.id,class:"faq-item"},[E(f("input",{"onUpdate:modelValue":b[0]||(b[0]=L=>l.value=L),class:"d-none",type:"checkbox"},null,512),[[Z,l.value]]),f("div",null,[f("button",{id:u.buttonId,class:k(["title py-24",{opened:l.value}]),"aria-expanded":l.value?"true":"false",onClick:_},[j(C(u.question)+" ",1),f("span",pe,[p(R,{name:"navigation-icon-chevron-down",class:k(["arrow",{dropped:l.value}])},null,8,["class"])])],10,ue),p(O,{css:!1,onEnter:D(B),onLeave:D(w)},{default:g(()=>[E(f("div",{class:"sub-content text-grey-700","aria-labelledby":u.buttonId},[ee(u.$slots,"default",{},void 0,!0)],8,fe),[[z,l.value]])]),_:3},8,["onEnter","onLeave"])])],8,de))}}),ve=K(me,[["__scopeId","data-v-0382e2d5"]]),he=["innerHTML"],ge={key:2,class:"d-none d-sm-block h-auto w-100"},_e={class:"button-group mb-48"},be=["href","onClick"],ye={class:"d-flex justify-center align-center h-auto w-100"},ke=["href","onClick"],qe={class:"overflow list-unstyled mb-0"},Ie={key:0},Se=["innerHTML"],Ce={key:1},we={class:"mb-24"},Te=Q({__name:"FaqSection",props:{title:{},titleLevel:{},titleClasses:{},description:{},groups:{},withGroupTabs:{type:Boolean},isGreyBackground:{type:Boolean}},setup($){const q=te(),d=$,r=h(null),I=h([]),B=e=>{e&&(I.value=[e])},w=h(!0),l=h(!1),_=e=>{const t=e.track.details,n=t&&t.slides;n&&(w.value=n[t.rel].abs===t.minIdx,l.value=n[t.rel].abs===t.maxIdx)},V=()=>{r.value&&(r.value.next(),_(r.value))},H=()=>{r.value&&(r.value.moveToIdx(0),_(r.value))},u=h(null),b=h([]),L=e=>{const t=b.value;e&&!t.map(n=>n.props.id).includes(e==null?void 0:e.props.id)&&t.push(e),b.value=t},c=h(0),U=e=>{const{id:t,isOpened:n}=e,s=d.groups[c.value].id||d.groups[c.value].name,o=F(s),m=b.value.filter(v=>v.props.groupName===s);n?(m.forEach(v=>{v.props.id!==t&&v.closeFaq()}),history.pushState(null,"",`#${o}#${t}`)):history.pushState(null,"",`#${o}`)},N=e=>`#${F(e||d.groups[c.value].name)}`,W=(e,t,n)=>{for(const s of e)if(s.props.id===t&&s.props.groupName===n)return s;return null},Y=(e,t)=>{S(()=>{const n=d.groups.findIndex(s=>F(s.id?s.id:s.name)===t);n!==-1?(c.value=n,S(()=>{const s=W(b.value,e,d.groups[n].id||d.groups[n].name);s?(s.isOpened||s.toggleFaq(),setTimeout(()=>{const o=document.getElementById(e),v=((o==null?void 0:o.getBoundingClientRect().top)||0)+window.scrollY+-120;o&&window.scrollTo({top:v,behavior:"smooth"})},0)):console.log("FAQ item not found")})):console.log("Group not found")})},J=e=>{S(()=>{const t=document.getElementById(e);t&&t.scrollIntoView({behavior:"smooth",block:"start"})})},M=e=>{const t=d.groups.findIndex(n=>F(n.id?n.id:n.name)===e);t!==-1&&c.value!==t&&(c.value=t,S(()=>{var n;(n=u.value)==null||n.scrollIntoView()}))},A=()=>{const t=q.hash.replace(/^#/,"").split("#");if(t.length>=1){const n=t[0];M(n)}if(t.length===2){const n=t[0],s=t[1];Y(s,n)}else t.length===1&&J(t[0])};return se(()=>q.hash,e=>{e&&A()}),ne(()=>{S(()=>{q.hash&&d.withGroupTabs&&M(),A()}),I.value[0]&&(r.value=new ie(I.value[0],{mode:"free-snap",slides:{perView:"auto"},slideChanged:e=>{_(e)},created:e=>{_(e)}}))}),(e,t)=>{const n=X;return a(),i("div",{ref_key:"faqSectionRef",ref:u,class:"faq-section container"},[e.title?(a(),oe(ae(e.titleLevel||"h4"),{key:0,class:k(e.titleClasses||"h4 fw-bold mb-32")},{default:g(()=>
1[j(C(e.title),1)]),_:1},8,["class"])):y("",!0),e.description?(a(),i("div",{key:1,class:"description mb-24",innerHTML:e.$renderStoryblokRichtext(e.description)},null,8,he)):y("",!0),e.withGroupTabs?(a(),i("div",ge,[f("div",_e,[(a(!0),i(x,null,G(e.groups,(s,o)=>(a(),i("a",{key:s.id,href:N(s.id||s.name),class:k(["label-button text-decoration-none d-inline-flex align-items-center",{active:c.value===o}]),onClick:m=>c.value=o},C(s.name),11,be))),128))])])):y("",!0),e.withGroupTabs?(a(),i("div",{key:3,ref:B,class:"keen-slider mb-64 d-sm-none"},[p(n,null,{default:g(()=>[p(O,{name:"slider-btn-left",appear:""},{default:g(()=>[w.value?y("",!0):(a(),i("div",{key:0,class:k(["btn-slide btn-previous-slide",{"bg-grey":e.isGreyBackground}]),onClick:H},[p(R,{class:"arrow",name:"navigation-icon-chevron-left"})],2))]),_:1})]),_:1}),f("div",ye,[(a(!0),i(x,null,G(e.groups,(s,o)=>(a(),i("a",{key:s.id,href:N(s.id||s.name),class:k(["keen-slider__slide label-button-keen-slider text-decoration-none d-inline-flex align-items-center",{active:c.value===o}]),onClick:m=>c.value=o},C(s.name),11,ke))),128))]),p(n,null,{default:g(()=>[p(O,{name:"slider-btn-right",appear:""},{default:g(()=>[l.value?y("",!0):(a(),i("div",{key:0,class:k(["btn-slide btn-next-slide",{"bg-grey":e.isGreyBackground}]),onClick:V},[p(R,{class:"arrow",name:"navigation-icon-chevron-right"})],2))]),_:1})]),_:1})])):y("",!0),f("ul",qe,[(a(!0),i(x,null,G(e.groups,(s,o)=>(a(),i("li",{key:o},[E(p(le,{content:s.questions},{default:g(({index:m,data:{question:v,answer:T,id:P}})=>[p(ve,{id:P||`question-${m}`,ref_for:!0,ref:L,index:m,"button-id":`faq-subbutton${o}-${m}`,question:v,"group-name":s.id||s.name,"onClick:faq":U},{default:g(()=>[T?(a(),i("div",Ie,[T.type==="doc"?(a(),i("div",{key:0,class:"mb-24",innerHTML:e.$renderStoryblokRichtext(T)},null,8,Se)):(a(),i("div",Ce,[f("p",we,C(T),1)]))])):y("",!0)]),_:2},1032,["id","index","button-id","question","group-name"])]),_:2},1032,["content"]),[[z,c.value===o]])]))),128))])],512)}}}),Re=K(Te,[["__scopeId","data-v-2ec0c07f"]]);export{Re as F,ve as a}; 2//# sourceMappingURL=1SGuD659.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.