import{ad as S,ae as h,bX as O,ag as x,ao as T,ay as p,cA as A,j as e,r as j,ai as k,aj as w,b_ as u,z as C,a3 as d}from"./BuiHH9If.js";const I=S({id:String,text:String,...h(O({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"),U=x()({name:"VTooltip",props:I(),emits:{"update:modelValue":t=>!0},setup(t,v){let{slots:a}=v;const n=T(t,"modelValue"),{scopeId:g}=p(),f=A(),r=e(()=>t.id||`v-tooltip-${f}`),l=j(),m=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"),y=e(()=>t.transition?t.transition:n.value?"scale-transition":"fade-transition"),P=e(()=>d({"aria-describedby":r.value},t.activatorProps));return k(()=>{const b=u.filterProps(t);return C(u,d({ref:l,class:["v-tooltip",t.class],style:t.style,id:r.value},b,{modelValue:n.value,"onUpdate:modelValue":o=>n.value=o,transition:y.value,absolute:!0,location:m.value,origin:V.value,persistent:!0,role:"tooltip",activatorProps:P.value,_disableGlobalStack:!0},g),{activator:a.activator,default:function(){var c;for(var o=arguments.length,s=new Array(o),i=0;i<o;i++)s[i]=arguments[i];return((c=a.default)==null?void 0:c.call(a,...s))??t.text}})}),w({},l)}});export{U as V};
