import{ac as S,bm as h,bU as O,af as T,aW as p,bW as x,aZ as U,J as e,l as W,K as u,ag as k,bb as d,q as w,bZ as A}from"./index-2e57ee69.js";const C=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"),R=T()({name:"VTooltip",props:C(),emits:{"update:modelValue":t=>!0},setup(t,v){let{slots:a}=v;const n=p(t,"modelValue"),{scopeId:g}=x(),f=U(),r=e(()=>t.id||`v-tooltip-${f}`),l=W(),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"),b=e(()=>t.transition?t.transition:n.value?"scale-transition":"fade-transition"),P=e(()=>u({"aria-describedby":r.value},t.activatorProps));return k(()=>{const[y]=d.filterProps(t);return w(d,u({ref:l,class:["v-tooltip",t.class],style:t.style,id:r.value},y,{modelValue:n.value,"onUpdate:modelValue":o=>n.value=o,transition:b.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}})}),A({},l)}});export{R as V};
