import{j as m,k as C,R as I,V as R,m as g,E as O,e as P,t as h,b as w}from"./vendor-vue-wu2SJQxD.js";import{I as A,N as D,H as F,O as L,P as $,f as E,b as H,a as M,Q as U,m as W,R as X,T as Y,L as j,D as B,E as G,U as Q}from"./index-CsRk2AqG.js";import{f as N,an as _,t as q,u as T,ar as z,p as x,I as J,m as K,k as Z,n as p,a5 as ee}from"./vendor-vuetify-BaOIwHiz.js";const te=x({bordered:Boolean,color:String,content:[Number,String],dot:Boolean,floating:Boolean,icon:J,inline:Boolean,label:{type:String,default:"$vuetify.badge"},max:[Number,String],modelValue:{type:Boolean,default:!0},offsetX:[Number,String],offsetY:[Number,String],textColor:String,...Z(),...Y({location:"top end"}),...X(),...W(),...K(),...U({transition:"scale-rotate-transition"}),...M()},"VBadge"),le=N()({name:"VBadge",inheritAttrs:!1,props:te(),setup(e,o){const{backgroundColorClasses:n,backgroundColorStyles:l}=A(()=>e.color),{roundedClasses:v}=D(e),{t:f}=_(),{textColorClasses:r,textColorStyles:u}=F(()=>e.textColor),{themeClasses:b}=q(),{locationStyles:V}=L(e,!0,t=>(e.floating?e.dot?2:4:e.dot?8:12)+(["top","bottom"].includes(t)?Number(e.offsetY??0):["left","right"].includes(t)?Number(e.offsetX??0):0)),{dimensionStyles:y}=H(e);return T(()=>{const t=Number(e.content),c=!e.max||isNaN(t)?e.content:t<=Number(e.max)?t:`${e.max}+`,[i,d]=z(o.attrs,["aria-atomic","aria-label","aria-live","role","title"]);return m(e.tag,g({class:["v-badge",{"v-badge--bordered":e.bordered,"v-badge--dot":e.dot,"v-badge--floating":e.floating,"v-badge--inline":e.inline},e.class]},d,{style:e.style}),{default:()=>{var a,s;return[C("div",{class:"v-badge__wrapper"},[(s=(a=o.slots).default)==null?void 0:s.call(a),m($,{transition:e.transition},{default:()=>{var S,k;return[I(C("span",g({class:["v-badge__badge",b.value,n.value,v.value,r.value],style:[l.value,u.value,y.value,e.inline?{}:V.value],"aria-atomic":"true","aria-label":f(e.label,t),"aria-live":"polite",role:"status"},i),[e.dot?void 0:o.slots.badge?(k=(S=o.slots).badge)==null?void 0:k.call(S):e.icon?m(E,{icon:e.icon},null):c]),[[R,e.modelValue]])]}})])]}})}),{}}}),ae=x({id:String,interactive:Boolean,text:String,...ee(Q({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"),se=N()({name:"VTooltip",props:ae(),emits:{"update:modelValue":e=>!0},setup(e,o){let{slots:n}=o;const l=p(e,"modelValue"),{scopeId:v}=j(),f=O(),r=h(()=>e.id||`v-tooltip-${f}`),u=w(),b=P(()=>e.location.split(" ").length>1?e.location:e.location+" center"),V=P(()=>e.origin==="auto"||e.origin==="overlap"||e.origin.split(" ").length>1||e.location.split(" ").length>1?e.origin:e.origin+" center"),y=h(()=>e.transition!=null?e.transition:l.value?"scale-transition":"fade-transition"),t=P(()=>g({"aria-describedby":r.value},e.activatorProps));return T(()=>{const c=B.filterProps(e);return m(B,g({ref:u,class:["v-tooltip",{"v-tooltip--interactive":e.interactive},e.class],style:e.style,id:r.value},c,{modelValue:l.value,"onUpdate:modelValue":i=>l.value=i,transition:y.value,absolute:!0,location:b.value,origin:V.value,role:"tooltip",activatorProps:t.value,_disableGlobalStack:!0},v),{activator:n.activator,default:function(){var s;for(var i=arguments.length,d=new Array(i),a=0;a<i;a++)d[a]=arguments[a];return((s=n.default)==null?void 0:s.call(n,...d))??e.text}})}),G({},u)}});export{le as V,se as a};
