import{_ as m}from"./tslib.es6-CxX45GIN-BGVaTf34.js";import{h as s,e as f}from"./index-B6uGkrgD.js";import{c as e}from"./clsx-COFh-Vc8-D7cYsJM5.js";import{K as g}from"./Heading-D7bFHALO-CWSaVFum.js";const K=(d,r)=>{const{id:n,class:t,label:p,level:v=1,disabled:c,open:a,onClick:_,HeadingProps:i={},HeadingButtonProps:l={},ContentProps:o={}}=d,b=m(d,["id","class","label","level","disabled","open","onClick","HeadingProps","HeadingButtonProps","ContentProps"]),u=a?"kolicon-chevron-down":"kolicon-chevron-right";return s("div",Object.assign({id:n,class:e("collapsible",{"collapsible--disabled":c===!0,"collapsible--open":a===!0},t)},b),s(g,{ref:i?.ref,level:v,class:e("collapsible__heading",i?.class)},s(f,{class:e("collapsible__heading-button",l?.class),ref:l?.ref,slot:"expert",_ariaControls:`${n}-control`,_ariaExpanded:a,_disabled:c,_icons:l?._icons||`${u}`,_label:p,_on:{onClick:_}})),s("div",{class:e("collapsible__wrapper",o?.wrapperClass)},s("div",{class:e("collapsible__wrapper-animation",o?.animationClass)},s("div",{"aria-hidden":a===!1?"true":void 0,class:e("collapsible__content",o?.class),id:`${n}-control`},r))))};export{K};
//# sourceMappingURL=Collapsible-BRJLq6PX-BP_PRRIW.js.map
