import{r as i,c as t,h as n,H as s,g as d}from"./p-1617f73a.js";const o=class{constructor(n){i(this,n);this.dropdownchange=t(this,"dropdownchange",7);this.close=t(this,"close",7);this.dropdownId=undefined;this.shown=undefined;this.label=undefined;this.position=undefined;this.justify=undefined;this.variant=undefined}get optionsEl(){var i,t;if(!this._optionsEl){const n=this.hostEl.shadowRoot.querySelector("slot");const s=(i=n.assignedElements)===null||i===void 0?void 0:i.call(n)[0];this._optionsEl=Array.from((t=s===null||s===void 0?void 0:s.children)!==null&&t!==void 0?t:[]).find((i=>i.tagName==="BS-DROPDOWN-OPTIONS"))}return this._optionsEl}handleSlotChange(){this._optionsEl=undefined}componentDidRender(){const i=this.optionsEl;i===null||i===void 0?void 0:i.setAttribute("dropdown-id",this.dropdownId);i===null||i===void 0?void 0:i.setAttribute("dropdownid",this.dropdownId);i===null||i===void 0?void 0:i.setAttribute("shown",this.shown?"true":"false");i===null||i===void 0?void 0:i.setAttribute("label",this.label);i===null||i===void 0?void 0:i.setAttribute("variant",this.variant);i===null||i===void 0?void 0:i.setAttribute("position",this.position)}render(){return n(s,{"data-justify":this.justify||undefined},n("div",{class:"bs-dropdown",part:"container"},n("slot",{onSlotchange:this.handleSlotChange.bind(this)})))}get hostEl(){return d(this)}};export{o as bs_dropdown};
//# sourceMappingURL=p-d61462c2.entry.js.map