import{g as h,p as O,a1 as x,aJ as T,as as k,t as u,r as p,f as n,S as v,j as I,al as d,k as R,av as w,a4 as A,aP as B}from"./index-g0hxAASb.js";const C=O({id:String,interactive:Boolean,text:String,...A(B({closeOnBack:!1,location:"end",locationStrategy:"connected",eager:!0,minWidth:0,offset:10,openOnClick:!1,openOnHover:!0,origin:"auto",scrim:!1,scrollStrategy:"reposition",transition:null}),["absolute","persistent"])},"VTooltip"),F=h()({name:"VTooltip",props:C(),emits:{"update:modelValue":t=>!0},setup(t,g){let{slots:e}=g;const i=x(t,"modelValue"),{scopeId:f}=T(),m=k(),r=u(()=>t.id||`v-tooltip-${m}`),l=p(),V=n(()=>t.location.split(" ").length>1?t.location:t.location+" center"),P=n(()=>t.origin==="auto"||t.origin==="overlap"||t.origin.split(" ").length>1||t.location.split(" ").length>1?t.origin:t.origin+" center"),y=u(()=>t.transition!=null?t.transition:i.value?"scale-transition":"fade-transition"),S=n(()=>v({"aria-describedby":r.value},t.activatorProps));return I(()=>{const b=d.filterProps(t);return R(d,v({ref:l,class:["v-tooltip",{"v-tooltip--interactive":t.interactive},t.class],style:t.style,id:r.value},b,{modelValue:i.value,"onUpdate:modelValue":a=>i.value=a,transition:y.value,absolute:!0,location:V.value,origin:P.value,persistent:!0,role:"tooltip",activatorProps:S.value,_disableGlobalStack:!0},f),{activator:e.activator,default:function(){var c;for(var a=arguments.length,s=new Array(a),o=0;o<a;o++)s[o]=arguments[o];return((c=e.default)==null?void 0:c.call(e,...s))??t.text}})}),w({},l)}});export{F as V};
