import{_ as m,K as f}from"./Heading-D_vnx163-UWSZHCcZ.js";import{h as s,e as g}from"./index-yJ8X--q8.js";import{c as a}from"./clsx-eK3rPvPS-BT_IL7Fz.js";/*!
 * KoliBri - The accessible HTML-Standard
 */const H=(d,r)=>{const{id:n,class:t,label:p,level:v=1,disabled:c,open:e,onClick:_,HeadingProps:i={},HeadingButtonProps:l={},ContentProps:o={}}=d,b=m(d,["id","class","label","level","disabled","open","onClick","HeadingProps","HeadingButtonProps","ContentProps"]),u=e?"remove":"add";return s("div",Object.assign({id:n,class:a("collapsible",{"collapsible--disabled":c===!0,"collapsible--open":e===!0},t)},b),s(f,{ref:i==null?void 0:i.ref,level:v,class:a("collapsible__heading",i==null?void 0:i.class)},s(g,{class:a("collapsible__heading-button",l==null?void 0:l.class),ref:l==null?void 0:l.ref,slot:"expert",_ariaControls:`${n}-control`,_ariaExpanded:e,_disabled:c,_icons:(l==null?void 0:l._icons)||`codicon codicon-${u}`,_label:p,_on:{onClick:_}})),s("div",{class:a("collapsible__wrapper",o==null?void 0:o.wrapperClass)},s("div",{class:a("collapsible__wrapper-animation",o==null?void 0:o.animationClass)},s("div",{"aria-hidden":e===!1?"true":void 0,class:a("collapsible__content",o==null?void 0:o.class),id:`${n}-control`},r))))};export{H as K};
//# sourceMappingURL=Collapsible-LunXGXro-Dj6SS2Gt.js.map
