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