"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("../_util/raf.js"),f=require("../tooltip/index.js"),s=require("../tooltip/Tooltip.js"),d=e.defineComponent({compatConfig:{MODE:3},name:"SliderTooltip",inheritAttrs:!1,props:s.tooltipProps(),setup(t,{attrs:r,slots:a}){const l=e.ref(null),n=e.ref(null);function o(){i.default.cancel(n.value),n.value=null}function c(){n.value=i.default(()=>{l.value?.forcePopupAlign(),n.value=null})}const u=()=>{o(),t.open&&c()};return e.watch([()=>t.open,()=>t.title],()=>{u()},{flush:"post",immediate:!0}),e.onActivated(()=>{u()}),e.onBeforeUnmount(()=>{o()}),()=>e.createVNode(f.default,{ref:l,...t,...r},a)}});exports.default=d;
