import{g as S,p as h,B as O,bm as p,aB as x,f as e,r as T,m as u,a as B,bV as d,c as k,K as w,M as A,bW as C}from"./C0u2Lk3h.js";const I=h({id:String,text:String,...A(C({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=S()({name:"VTooltip",props:I(),emits:{"update:modelValue":t=>!0},setup(t,v){let{slots:a}=v;const n=O(t,"modelValue"),{scopeId:g}=p(),m=x(),r=e(()=>t.id||`v-tooltip-${m}`),l=T(),f=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 B(()=>{const y=d.filterProps(t);return k(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:f.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{R as V};
