/*!
 * KoliBri - The accessible HTML-Standard
 */
import{_ as l}from"./tslib.es6-1173d062.js";import{h as o}from"./index-2ae1c631.js";import{c as i}from"./clsx-09a06a12.js";import{a as e}from"./component-names-a18a51c8.js";import{K as s}from"./Heading-790c1275.js";const a=(a,n)=>{const{id:d,class:c,label:r,level:p=1,disabled:t,open:b,onClick:_,HeadingProps:v={},HeadingButtonProps:m={},ContentProps:u={}}=a,f=l(a,["id","class","label","level","disabled","open","onClick","HeadingProps","HeadingButtonProps","ContentProps"]),g=b?"remove":"add";return o("div",Object.assign({id:d,class:i("collapsible",{"collapsible--disabled":!0===t,"collapsible--open":!0===b},c)},f),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-${g}`,_label:r,_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))))},n=a;export{n as K};