import{r as t,h as s}from"./p-0d5a2e05.js";const i=class{constructor(s){t(this,s);this.transitionDuration="0.3s";this.transitionType="ease-in";this.height=0}componentDidLoad(){if(this.open&&this.containerRef){this.setHeight(this.containerRef.clientHeight);setTimeout((()=>{this.setHeight("auto")}),parseFloat(this.transitionDuration)*1e3)}}watchOpen(t,s){if(t!==s&&this.containerRef){if(t){this.setHeight(this.containerRef.scrollHeight);setTimeout((()=>{this.setHeight("auto")}),200)}else{this.setHeight(this.containerRef.clientHeight);setTimeout((()=>{this.setHeight(0)}),20)}}}setHeight(t){this.height=t}render(){const t=Object.assign(Object.assign({overflow:"hidden",transition:`height ${this.transitionDuration} ${this.transitionType}`,height:`${this.height}px`},this.height==="auto"?{height:"auto"}:{}),this.customStyle);return s("div",{key:"db9c249e93c4b5280024c80a4dcbd4f75666bc42",ref:t=>this.containerRef=t,"aria-hidden":!this.open,style:t},s("slot",{key:"4a7f485323b0a4023b0b97916667133a09c6d27e"}))}static get watchers(){return{open:["watchOpen"]}}};export{i as dga_collapse};
//# sourceMappingURL=p-1cbe2e08.entry.js.map