/*!
 * KoliBri - The accessible HTML-Standard
 */
import{r as i,h as t,H as o,g as l}from"./index-Brmny3Vg.js";import{B as s}from"./variant-quote-BMV8GZX8.js";import{T as r}from"./component-DTx6ZVqq.js";import{T as e}from"./controller-oT8Y98Yc.js";import"./common-DEEjER7G.js";import"./normalizers-pgU77mXp.js";import"./_Uint8Array-kJHDjtoP.js";import"./isArray-CcrBs4JM.js";import"./component-CQaxTS4u.js";import"./tslib.es6-QNbPBOk5.js";import"./bem-registry-B9CzNnO1.js";import"./clsx-COFh-Vc8.js";import"./component-DHo2YdSx.js";import"./align-floating-elements-DTTpkCAK.js";import"./tooltip-open-tracking-D3tCiiGP.js";import"./align-ChLoh-Dq.js";import"./label-DPd4-fag.js";import"./base-controller-CXhqh4cR.js";const a=class{constructor(t){i(this,t);this.controller=new e(s.stateLess);this._align="top"}validateAlign(i){var t;(t=this.controller)===null||t===void 0?void 0:t.watchAlign(i)}validateId(i){var t;(t=this.controller)===null||t===void 0?void 0:t.watchId(i)}validateLabel(i){var t;(t=this.controller)===null||t===void 0?void 0:t.watchLabel(i)}hideTooltip(){var i;return Promise.resolve((i=this.controller)===null||i===void 0?void 0:i.hideTooltip())}componentWillLoad(){this.controller.componentWillLoad({label:this._label,align:this._align,badgeText:this._badgeText,id:this._id})}connectedCallback(){var i,t,o;(i=this.controller)===null||i===void 0?void 0:i.initContext((o=(t=this.host)===null||t===void 0?void 0:t.previousElementSibling)!==null&&o!==void 0?o:undefined)}componentDidRender(){var i;if(this.host){(i=this.controller)===null||i===void 0?void 0:i.handleEventListeners(this.host)}}disconnectedCallback(){var i;(i=this.controller)===null||i===void 0?void 0:i.destroy()}render(){return t(o,{key:"f677d58b886cdb9f1aab620608155ee412e0ef7d",class:"kol-tooltip"},t(r,{key:"d86d1adc81a94fbb1116532e9f2529d96362834d",label:this.controller.getRenderProp("label"),badgeText:this._badgeText,id:this.controller.getRenderProp("id"),refFloating:i=>{var t;return(t=this.controller)===null||t===void 0?void 0:t.setTooltipElementRef(i)}}))}get host(){return l(this)}static get watchers(){return{_align:["validateAlign"],_id:["validateId"],_label:["validateLabel"]}}};export{a as kol_tooltip_wc};
//# sourceMappingURL=kol-tooltip-wc.entry.js.map