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