import{r as l,h as e,H as r,g as a}from"./index-Bphhj8Un.js";import{B as n}from"./variant-quote-CHD0qMkY-Di-MtwAe.js";import{T as d}from"./component-uWorUZss-CN_22NAm.js";import{T as s}from"./controller-BhIDd4zH-DAtIsCRY.js";import"./normalizers-DnkJhVYZ-BpYOmfSj.js";import"./_Uint8Array-kJHDjtoP-jmGEpw_T.js";import"./isArray-CcrBs4JM-CqO_RI43.js";import"./component-sn_z4L8i-BDtwqac9.js";import"./tslib.es6-CxX45GIN-BGVaTf34.js";import"./component-_Y75jltB-CMv6bl_H.js";import"./align-floating-elements-58sFZOrL-Bn3DzajC.js";import"./tooltip-open-tracking-D3tCiiGP-DFCvib6Z.js";import"./align-D3Z54kEL-B5vtBGFg.js";import"./label-BEOW9ltS-Dwb4BBIM.js";import"./base-controller-CXhqh4cR-D2BOZI1P.js";import"./clsx-COFh-Vc8-D7cYsJM5.js";const E=class{constructor(t){l(this,t),this.controller=new s(n.stateLess),this._align="top"}validateAlign(t){var o;(o=this.controller)===null||o===void 0||o.watchAlign(t)}validateId(t){var o;(o=this.controller)===null||o===void 0||o.watchId(t)}validateLabel(t){var o;(o=this.controller)===null||o===void 0||o.watchLabel(t)}hideTooltip(){var t;return Promise.resolve((t=this.controller)===null||t===void 0?void 0:t.hideTooltip())}componentWillLoad(){this.controller.componentWillLoad({label:this._label,align:this._align,badgeText:this._badgeText,id:this._id})}connectedCallback(){var t,o,i;(t=this.controller)===null||t===void 0||t.initContext((i=(o=this.host)===null||o===void 0?void 0:o.previousElementSibling)!==null&&i!==void 0?i:void 0)}componentDidRender(){var t;this.host&&((t=this.controller)===null||t===void 0||t.handleEventListeners(this.host))}disconnectedCallback(){var t;(t=this.controller)===null||t===void 0||t.destroy()}render(){return e(r,{key:"f677d58b886cdb9f1aab620608155ee412e0ef7d",class:"kol-tooltip"},e(d,{key:"d86d1adc81a94fbb1116532e9f2529d96362834d",label:this.controller.getRenderProp("label"),badgeText:this._badgeText,id:this.controller.getRenderProp("id"),refFloating:t=>{var o;return(o=this.controller)===null||o===void 0?void 0:o.setTooltipElementRef(t)}}))}get host(){return a(this)}static get watchers(){return{_align:["validateAlign"],_id:["validateId"],_label:["validateLabel"]}}};export{E as kol_tooltip_wc};
//# sourceMappingURL=kol-tooltip-wc.entry-BCfNEVUz.js.map
