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