/*!
 * KoliBri - The accessible HTML-Standard
 */
import{_ as l}from"./tslib.es6-2e5096f8.js";import{h as o}from"./index-5d2ba3a9.js";import{c as i}from"./clsx-09a06a12.js";import{b as e,c as s}from"./component-names-6ca7e863.js";const a=(a,n)=>{const{id:d,class:c,label:r,level:t=1,disabled:p,open:_,onClick:b,HeadingProps:v={},HeadingButtonProps:m={},ContentProps:u={}}=a,f=l(a,["id","class","label","level","disabled","open","onClick","HeadingProps","HeadingButtonProps","ContentProps"]),C=_?"remove":"add";return o("div",Object.assign({id:d,class:i("collapsible",{disabled:!0===p,open:!0===_},c)},f),o(e,{ref:null==v?void 0:v.ref,_label:"",_level:t,class:i("collapsible__heading",null==v?void 0:v.class)},o(s,{class:i("collapsible__heading-button",null==m?void 0:m.class),ref:null==m?void 0:m.ref,slot:"expert",_ariaControls:`${d}-control`,_ariaExpanded:_,_disabled:p,_icons:(null==m?void 0:m._icons)||`codicon codicon-${C}`,_label:r,_on:{onClick:b}})),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===_?"true":void 0,class:i("collapsible__content",null==u?void 0:u.class),id:`${d}-control`},n))))},n=a;export{n as K};