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