import{r as t,h as a,g as s,H as e}from"./p-21516f8c.js";const i=":host{position:absolute;z-index:999}:host(.fab-horizontal-center){left:50%;margin-left:-27px}:host(.fab-horizontal-start){left:calc(10px + var(--lu-safe-area-left, 0px))}:host(.fab-horizontal-end){right:calc(10px + var(--lu-safe-area-right, 0px))}:host(.fab-vertical-top){top:10px}:host(.fab-vertical-top.fab-edge){top:-27px}:host(.fab-vertical-bottom){bottom:10px}:host(.fab-vertical-bottom.fab-edge){bottom:-27px}:host(.fab-vertical-center){margin-top:-27px;top:50%}";const o=class{constructor(a){t(this,a);this.edge=false;this.activated=false}activatedChanged(){const t=this.activated;const a=this.el.querySelector("lu-fab-button");if(a){a.activated=t}Array.from(this.el.querySelectorAll("lu-fab-list")).forEach((a=>{a.activated=t}))}componentDidLoad(){if(this.activated){this.activatedChanged()}}onClick(t){if(t&&t.target&&t.target.parentElement&&t.target.parentElement.toggleButton||t&&t.target&&t.target.toggleButton){const t=!!this.el.querySelector("lu-fab-list");if(t){this.activated=!this.activated}}}async close(){return this.activated=false}hostData(){return{class:{[`fab-horizontal-${this.horizontal}`]:this.horizontal!==undefined,[`fab-vertical-${this.vertical}`]:this.vertical!==undefined,"fab-edge":this.edge}}}__stencil_render(){return a("slot",null)}get el(){return s(this)}static get watchers(){return{activated:["activatedChanged"]}}render(){return a(e,this.hostData(),this.__stencil_render())}};o.style=i;export{o as lu_fab};
//# sourceMappingURL=p-6d0e8b59.entry.js.map