import{g as P,k as B,c3 as h,a as O,b as m,l as r,i as l,aH as v,a4 as T,p as x,o as z,E as C,A as F,B as f,c as I,Q as $,V as w}from"#entry";import{d as A,j as g,k as R}from"./DCT0cttX.js";import{f as H}from"./D_qxKlPu.js";const N=x({id:String,interactive:Boolean,text:String,...z(R({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","retainFocus","captureFocus","disableInitialFocus"])},"VTooltip"),j=P()({name:"VTooltip",props:N(),emits:{"update:modelValue":t=>!0},setup(t,o){let{slots:e}=o;const a=B(t,"modelValue"),{scopeId:s}=A(),y=h(),c=v(()=>t.id||`v-tooltip-${y}`),u=T(),S=l(()=>t.location.split(" ").length>1?t.location:t.location+" center"),V=l(()=>t.origin==="auto"||t.origin==="overlap"||t.origin.split(" ").length>1||t.location.split(" ").length>1?t.origin:t.origin+" center"),b=v(()=>t.transition!=null?t.transition:a.value?"scale-transition":"fade-transition"),k=l(()=>r({"aria-describedby":c.value},t.activatorProps));return O(()=>{const p=g.filterProps(t);return m(g,r({ref:u,class:["v-tooltip",{"v-tooltip--interactive":t.interactive},t.class],style:t.style,id:c.value},p,{modelValue:a.value,"onUpdate:modelValue":i=>a.value=i,transition:b.value,absolute:!0,location:S.value,origin:V.value,role:"tooltip",activatorProps:k.value,_disableGlobalStack:!0},s),{activator:e.activator,default:function(){for(var i=arguments.length,d=new Array(i),n=0;n<i;n++)d[n]=arguments[n];return e.default?.(...d)??t.text}})}),H({},u)}}),M={__name:"TBtn",props:{tooltip:{type:String,default:""},color:{type:String,default:""},to:{type:String,default:""},icon:{type:String,default:""},density:{type:String,default:"comfortable"},size:{type:String,default:"large"},variant:{type:String,default:"plain"}},emits:["click"],setup(t){return(o,e)=>(C(),F(j,{location:"top"},{activator:f(({props:a})=>[m(w,r(a,{color:t.color,icon:t.icon,variant:t.variant,size:t.size,density:t.density,to:t.to,onClick:e[0]||(e[0]=s=>o.$emit("click"))}),null,16,["color","icon","variant","size","density","to"])]),default:f(()=>[I("span",null,$(o.$t(t.tooltip)),1)]),_:1}))}};export{M as _};
