1import{c as u,o as c,a as d,d as S,v as q,f as L,a2 as O,_ as j,w as V,p as g,j as a,G as z,r as h,h as M,q as D,P as F,af as U,H as Z,D as R,E as G,b as K,a3 as W,B as J}from"./CpXOcimZ.js";import{u as P}from"./BMAiz3-5.js";const Q={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"none",viewBox:"0 0 16 16"};function X(p,n){return c(),u("svg",Q,n[0]||(n[0]=[d("path",{fill:"currentColor",d:"m0 11.059 6.675-6.67a1.879 1.879 0 0 1 2.66 0L16 11.054l-.941.943L8.195 5.13a.266.266 0 0 0-.377 0L.949 12 0 11.059Z"},null,-1)]))}const Y={render:X},ee={xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",fill:"none",viewBox:"0 0 32 32"};function te(p,n){return c(),u("svg",ee,n[0]||(n[0]=[d("path",{class:"vertical",fill:"currentColor",d:"M17.333 0v32h-2.666V0h2.666Z"},null,-1),d("path",{class:"horizontal",fill:"currentColor",d:"M0 14.667h32v2.667H0z"},null,-1)]))}const ne={render:te},oe={xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none"};function ae(p,n){return c(),u("svg",oe,n[0]||(n[0]=[d("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.14645 11.1036C1.95118 10.9083 1.95118 10.5917 2.14645 10.3964L7.64645 4.89645C7.84171 4.70118 8.15829 4.70118 8.35355 4.89645L13.8536 10.3964C14.0488 10.5917 14.0488 10.9083 13.8536 11.1036C13.6583 11.2988 13.3417 11.2988 13.1464 11.1036L8 5.95711L2.85355 11.1036C2.65829 11.2988 2.34171 11.2988 2.14645 11.1036Z",fill:"currentColor"},null,-1)]))}const ie={render:ae},N={plus:"SvgPlus",arrow:"SvgArrow",chevron:"SvgChevron"},$=Symbol("UiAccordion"),re=["aria-label","aria-expanded"],ce=S({__name:"UiAccordionItem",props:{isImportant:{type:Boolean,default:!1},stopFaqEvents:{type:Boolean,default:!1},isStartOpened:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["toggleAccordion"],setup(p,{emit:n}){const o=p,{$clientPosthog:i}=P(),v=q("triggerTitle"),_=O("AccordionAnalyticsEventName",void 0),e=O($),w={SvgPlus:ne,SvgArrow:Y,SvgChevron:ie},k=n,l=j(),C=`${l}-title`,b=`${l}-content`,s=L(()=>!!(e!=null&&e.isOpened||o.disabled||e!=null&&e.active.includes(l)));o.isStartOpened&&(e==null||e.active.push(l));const y=L(()=>_||"site_component_faq"),A=()=>{if(o.disabled||e!=null&&e.isOpened||!e)return;const t=!s.value;if(k("toggleAccordion",t),!t){e.active=e.active.filter(r=>r!==l);return}e.active=e.isMultiple?[...e.active,l]:[l]},B=t=>{t instanceof HTMLElement&&(t.style.height=`${t.scrollHeight}px`)},E=t=>{t instanceof HTMLElement&&(t.style.height="")},T=()=>{if(!o.stopFaqEvents&&v.value&&s.value){const t=v.value.innerText;i==null||i.capture(y.value,{label:t,action:"click"})}},x=t=>{if(o.stopFaqEvents||!(t.target instanceof Element))return;const r=t.target.closest("a, .button");if(!r||!v.value)return;const f=v.value.innerText,m=r.innerText,I=r instanceof HTMLAnchorElement?r.href:r.getAttribute("action")||r.dataset.action||"default-action",H=`${y.value}_button-click`;i==null||i.capture(H,{label:f,text:m,href:I})};return V(s,T),(t,r)=>{var f,m;return c(),u("li",{class:g(["accordion__item",{"accordion__item--active":a(s),"accordion__item--important":t.isImportant,"accordion__item--is-opened":(f=a(e))==null?void 0:f.isOpened,"accordion__item--disabled":t.disabled}])},[d("div",{class:g(["accordion__trigger",{"accordion__trigger--active":a(s),"accordion__trigger--important":t.isImportant}]),onClick:A},[d("div",{id:C,ref:"triggerTitle",class:"accordion__trigger-title"},[h(t.$slots,"trigger")],512),h(t.$slots,"additional"),!((m=a(e))!=null&&m.isOpened)&&!t.disabled?(c(),u("button",{key:0,type:"button","aria-label":a(s)?"ÐакÑÑÑÑ":"ÐÑкÑÑÑÑ","aria-expanded":a(s),"aria-controls":b,class:"accordion__trigger-control"},[a(e)&&w[a(e).chevronComponentName]?(c(),D(F(w[a(e).chevronComponentName]),{key:0})):M("",!0)],8,re)):M("",!0)],2),z(U,{name:"accordion",onEnter:B,onAfterEnter:E,onBeforeLeave:B,onAfterLeave:E},{default:Z(()=>[R(d("div",{id:b,role:"region","aria-labelledby":C,class:"accordion__content",onClick:x,onAuxclick:x},[h(t.$slots,"default")],544),[[G,a(s)]])]),_:3})],2)}}}),de=S({__name:"UiAccordionList",props:{isMultiple:{type:Boolean,default:!1},isOpened:{type:Boolean,default:!1},chevron:{default:"plus"},type:{default:"invisible"}},setup(p){const n=p,o=K({active:[],isMultiple:n.isMultiple,isOpened:n.isOpened,chevronComponentName:N[n.chevron]});return W(()=>{o.isMultiple=n.isMultiple,o.isOpened=n.isOpened,o.chevronComponentName=N[n.chevron]}),J($,o),(i,v)=>(c(),u("ul",{class:g(["accordion",`accordion--${i.type}`])},[h(i.$slots,"default")],2))}});
1export{ce as _,de as a};
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.