import{g as N,p as x,a3 as I,aG as O,aN as R,ay as C,$ as w,a5 as S,E as m,c as T,au as k,d as g,ad as A,ae as F,bb as $,aB as D,bc as L,Z as G,a2 as M,bd as W,be as X,u as Y,bf as j,i as B,b1 as E,I as H,J,v as U,f as Z,bg as _,bh as q,m as z,bi as K,bj as Q,h as p,aO as ee}from"./index-BBhBboPS.js";const te=x({id:String,interactive:Boolean,text:String,...F($({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","persistent"])},"VTooltip"),ne=N()({name:"VTooltip",props:te(),emits:{"update:modelValue":e=>!0},setup(e,o){let{slots:n}=o;const l=I(e,"modelValue"),{scopeId:v}=O(),b=R(),r=C(()=>e.id||`v-tooltip-${b}`),u=w(),f=S(()=>e.location.split(" ").length>1?e.location:e.location+" center"),V=S(()=>e.origin==="auto"||e.origin==="overlap"||e.origin.split(" ").length>1||e.location.split(" ").length>1?e.origin:e.origin+" center"),y=C(()=>e.transition!=null?e.transition:l.value?"scale-transition":"fade-transition"),t=S(()=>m({"aria-describedby":r.value},e.activatorProps));return T(()=>{const c=k.filterProps(e);return g(k,m({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:f.value,origin:V.value,persistent:!0,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}})}),A({},u)}}),ae=x({bordered:Boolean,color:String,content:[Number,String],dot:Boolean,floating:Boolean,icon:ee,inline:Boolean,label:{type:String,default:"$vuetify.badge"},max:[Number,String],modelValue:{type:Boolean,default:!0},offsetX:[Number,String],offsetY:[Number,String],textColor:String,...p(),...Q({location:"top end"}),...K(),...z(),...q(),..._({transition:"scale-rotate-transition"}),...Z()},"VBadge"),ie=N()({name:"VBadge",inheritAttrs:!1,props:ae(),setup(e,o){const{backgroundColorClasses:n,backgroundColorStyles:l}=D(()=>e.color),{roundedClasses:v}=L(e),{t:b}=G(),{textColorClasses:r,textColorStyles:u}=M(()=>e.textColor),{themeClasses:f}=W(),{locationStyles:V}=X(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}=Y(e);return T(()=>{const t=Number(e.content),c=!e.max||isNaN(t)?e.content:t<=Number(e.max)?t:`${e.max}+`,[i,d]=j(o.attrs,["aria-atomic","aria-label","aria-live","role","title"]);return g(e.tag,m({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[B("div",{class:"v-badge__wrapper"},[(s=(a=o.slots).default)==null?void 0:s.call(a),g(E,{transition:e.transition},{default:()=>{var P,h;return[H(B("span",m({class:["v-badge__badge",f.value,n.value,v.value,r.value],style:[l.value,u.value,y.value,e.inline?{}:V.value],"aria-atomic":"true","aria-label":b(e.label,t),"aria-live":"polite",role:"status"},i),[e.dot?void 0:o.slots.badge?(h=(P=o.slots).badge)==null?void 0:h.call(P):e.icon?g(U,{icon:e.icon},null):c]),[[J,e.modelValue]])]}})])]}})}),{}}});export{ne as V,ie as a};
