import{u as S,m as h,V as u}from"./VOverlay-DlJb3QlW.js";import{f as p}from"./forwardRefs-CB8NoG9r.js";import{g as x,p as T,ai as k,aj as I,ad as d,r as R,F as n,u as w,ak as A,O as v,c as B}from"./index-C5GbdPxY.js";const C=T({id:String,interactive:Boolean,text:String,...A(h({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"),H=x()({name:"VTooltip",props:C(),emits:{"update:modelValue":t=>!0},setup(t,m){let{slots:e}=m;const i=k(t,"modelValue"),{scopeId:f}=S(),g=I(),r=d(()=>t.id||`v-tooltip-${g}`),l=R(),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=d(()=>t.transition!=null?t.transition:i.value?"scale-transition":"fade-transition"),b=n(()=>v({"aria-describedby":r.value},t.activatorProps));return w(()=>{const O=u.filterProps(t);return B(u,v({ref:l,class:["v-tooltip",{"v-tooltip--interactive":t.interactive},t.class],style:t.style,id:r.value},O,{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}})}),p({},l)}});export{H as V};
