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