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