1import E from"./Cn249OxA.js";import{_ as j}from"./C7HHD42g.js";import{u as A}from"./DXQsQoDQ.js";import{N as x,P as H,aD as y,a2 as N,az as z,a6 as v,a7 as r,ak as g,af as o,a8 as i,aF as D,a9 as $,aa as C,av as O,ah as P,at as V,aH as L,ai as Q,aj as R}from"./zjxt1dGn.js";import{_ as S}from"./DlAUqK2U.js";const q=["name"],J=["id","aria-expanded","aria-controls"],G={class:"sr-only"},K=["id","aria-labelledby"],U={class:"pt-2"},W=x({__name:"AccordionItem",props:{item:{}},emits:["toggle"],setup(k,{emit:l}){const a=H(!1),t=y("$details");N(t,"toggle",()=>{var e;a.value=((e=t.value)==null?void 0:e.open)??!1});const c=z().value==="reduce",u=y("$summary"),d=y("$content"),m=D();let n=null,f=!1,p=!1;const s=H(!1);function I(e){c||(e.preventDefault(),f||!a.value?F():(p||a.value)&&T())}function T(){var h;if(!t.value)return;f=!0,s.value=!0;const e=`${t.value.offsetHeight}px`,_=`${(h=u.value)==null?void 0:h.offsetHeight}px`;n&&n.cancel(),n=t.value.animate({height:[e,_]},{duration:200,easing:"ease-in-out"}),n.onfinish=()=>w(!1),n.oncancel=()=>{f=!1,s.value=!1}}function F(){t.value&&(s.value=!0,t.value.style.height=`${t.value.offsetHeight}px`,t.value.open=!0,window.requestAnimationFrame(M))}function M(){if(!t.value||!u.value||!d.value)return;p=!0;const e=`${t.value.offsetHeight}px`,_=`${u.value.offsetHeight+d.value.offsetHeight+parseFloat(getComputedStyle(d.value).marginTop)}px`;n&&n.cancel(),n=t.value.animate({height:[e,_]},{duration:200,easing:"ease-in-out"}),n.onfinish=()=>w(!0),n.oncancel=()=>{p=!1,s.value=!1}}function w(e){t.value&&(t.value.open=e,n=null,f=!1,p=!1,s.value=!1,t.value.style.height=t.value.style.overflow="")}return(e,_)=>{const h=E,B=j;return r(),v("details",{ref_key:"$details",ref:t,name:e.item.header,class:g(["box-content flex w-full flex-col",{"overflow-hidden":o(s)}])},[i("summary",{class:"py-spacing-4 flex w-full cursor-pointer list-none items-center justify-between text-left [&::-webkit-details-marker]:hidden",id:`header-${o(m)}`,"aria-expanded":o(a),"aria-controls":`content-${o(m)}`,onClick:I,ref_key:"$summary",ref:u},[i("span",{class:g([("useTypography"in e?e.useTypography:o(A))("lg"),"font-500"])},$(e.item.header),3),i("span",{class:g(["transform transition-transform",{"rotate-45":o(a)}]),"aria-hidden":"true"},[i("span",G,$(o(a)?e.$t("actions.close"):e.$t("actions.open")),1),C(h,{name:"custom-icon:plus",size:"1em","aria-hidden":"true"})],2)],8,J),i("div",{ref_key:"$content",ref:d,class:g(("cn"in e?e.cn:o(O))("pb-spacing-4 -mt-spacing-3 overflow-hidden pr-6 xl:pr-32",("useTypography"in e?e.useTypography:o(A))("md"))),id:`content-${o(m)}`,"aria-labelledby":`header-${o(m)}`},[i("div",U,$(e.item.content),1),e.item.link?(r(),P(B,{key:0,tag:"a",to:e.item.link.url,class:"mt-6",label:e.item.link.label},null,8,["to","label"])):V("",!0)],10,K)],10,q)}}}),X=Object.assign(W,{__name:"ModulesAccordionItem"}),Y={role:"list",class:"accordion border-stroke-neutral-secondary w-full divide-y border-y"},Z=x({__name:"Accordion",props:{name:{},items:{}},setup(k){const l=k;return L({"@context":"https://schema.org","@type":"FAQPage",mainEntity:((l==null?void 0:l.items)||[]).map(a=>({"@type":"Question",name:a.header,acceptedAnswer:{"@type":"Answer",text:a.content}}))}),(a,t)=>{const b=X;return r(),v("ul",Y,[(r(!0),v(Q,null,R(a.items,c=>(r(),v("li",{key:c.id,role:"listitem",class:"border-stroke-neutral-secondary block w-full"},[C(b,{item:c},null,8,["item"])]))),128))])}}}),se=Object.assign(S(Z,[["__scopeId","data-v-cf4a8f7a"]]),{__name:"ModulesAccordion"});export{se as _};
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.