import{g as h,p as O,aj as x,aA as T,aG as p,ao as u,an as A,al as n,E as d,c as I,a4 as v,d as R,as as k,av as w,b5 as B}from"./index-GaWRVcb2.js";const C=O({id:String,interactive:Boolean,text:String,...w(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"),j=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=p(),r=u(()=>t.id||`v-tooltip-${m}`),l=A(),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"),b=n(()=>d({"aria-describedby":r.value},t.activatorProps));return I(()=>{const S=v.filterProps(t);return R(v,d({ref:l,class:["v-tooltip",{"v-tooltip--interactive":t.interactive},t.class],style:t.style,id:r.value},S,{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:b.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}})}),k({},l)}});export{j as V};
