/*!
 * KoliBri - The accessible HTML-Standard
 */
"use strict";const tslib_es6=require("./tslib.es6-16e4524f.js"),index=require("./index-b4950b0c.js"),clsx=require("./clsx-dd4d6dd1.js"),componentNames=require("./component-names-2c750b1b.js"),KolCollapsibleFc=(l,s)=>{const{id:e,class:o,label:i,level:n=1,disabled:a,open:c,onClick:d,HeadingProps:r={},HeadingButtonProps:t={},ContentProps:p={}}=l,b=tslib_es6.__rest(l,["id","class","label","level","disabled","open","onClick","HeadingProps","HeadingButtonProps","ContentProps"]),x=c?"remove":"add";return index.h("div",Object.assign({id:e,class:clsx.clsx("collapsible",{disabled:!0===a,open:!0===c},o)},b),index.h(componentNames.KolHeadingWcTag,{ref:null==r?void 0:r.ref,_label:"",_level:n,class:clsx.clsx("collapsible__heading",null==r?void 0:r.class)},index.h(componentNames.KolButtonWcTag,{class:clsx.clsx("collapsible__heading-button",null==t?void 0:t.class),ref:null==t?void 0:t.ref,slot:"expert",_ariaControls:`${e}-control`,_ariaExpanded:c,_disabled:a,_icons:(null==t?void 0:t._icons)||`codicon codicon-${x}`,_label:i,_on:{onClick:d}})),index.h("div",{class:clsx.clsx("collapsible__wrapper",null==p?void 0:p.wrapperClass)},index.h("div",{class:clsx.clsx("collapsible__wrapper-animation",null==p?void 0:p.animationClass)},index.h("div",{"aria-hidden":!1===c?"true":void 0,class:clsx.clsx("collapsible__content",null==p?void 0:p.class),id:`${e}-control`},s))))},KolCollapsibleFc$1=KolCollapsibleFc;exports.KolCollapsibleFc=KolCollapsibleFc$1;