import{r as s,c as t,h as a,H as i}from"./p-afb110dc.js";const e=class{constructor(a){s(this,a),this.balCollapse=t(this,"balCollapse",7),this.type="is-primary",this.isActive=!1,this.openLabel="",this.openIcon="plus",this.closeLabel="",this.closeIcon="minus"}async open(){this.isActive=!0,this.balCollapse.emit(this.isActive)}async close(){this.isActive=!1,this.balCollapse.emit(this.isActive)}async toggle(){this.isActive=!this.isActive,this.balCollapse.emit(this.isActive)}render(){return a(i,{class:"accordion"},a("bal-button",{expanded:!0,light:!0,inverted:!0,type:this.type,onClick:()=>this.toggle()},a("span",{class:"trigger-label",style:this.isActive&&{display:"none"}},a("bal-icon",{name:this.openIcon}),a("span",{class:"label"},this.openLabel)),a("span",{class:"trigger-label",style:!this.isActive&&{display:"none"}},a("bal-icon",{name:this.closeIcon}),a("span",{class:"label"},this.closeLabel))),a("div",{class:["accordion-content",this.type].join(" "),style:!this.isActive&&{display:"none"}},a("slot",null)))}};e.style="@-webkit-keyframes spinAround{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes spinAround{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.sc-bal-accordion-h{display:block}span.trigger-label.sc-bal-accordion{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}span.trigger-label.sc-bal-accordion span.label.sc-bal-accordion{margin-bottom:2px}bal-icon.sc-bal-accordion{height:24px;margin-right:2px}.accordion-content.is-info.sc-bal-accordion{border-top:1px solid #d3dbeb}.is-fullwidth.sc-bal-accordion{width:100%}";export{e as bal_accordion}