import{ab as y,ac as N,bf as B,aZ as V,bh as h,ba as P,bi as x,bj as T,ad as R,bk as _,i as t,aO as w,S as L,T as A,D as d,G as D,bl as I,b2 as X,ae as Y,b4 as $,bm as j,af as F,aP as G}from"./index-B2MTLsCS.js";const M=N({bordered:Boolean,color:String,content:[Number,String],dot:Boolean,floating:Boolean,icon:G,inline:Boolean,label:{type:String,default:"$vuetify.badge"},max:[Number,String],modelValue:{type:Boolean,default:!0},offsetX:[Number,String],offsetY:[Number,String],textColor:String,...F(),...j({location:"top end"}),...$(),...Y(),...X(),...I({transition:"scale-rotate-transition"})},"VBadge"),W=y()({name:"VBadge",inheritAttrs:!1,props:M(),setup(e,o){const{backgroundColorClasses:u,backgroundColorStyles:b}=B(()=>e.color),{roundedClasses:c}=V(e),{t:g}=h(),{textColorClasses:m,textColorStyles:f}=P(()=>e.textColor),{themeClasses:v}=x(),{locationStyles:C}=T(e,!0,a=>(e.floating?e.dot?2:4:e.dot?8:12)+(["top","bottom"].includes(a)?Number(e.offsetY??0):["left","right"].includes(a)?Number(e.offsetX??0):0));return R(()=>{const a=Number(e.content),n=!e.max||isNaN(a)?e.content:a<=Number(e.max)?a:`${e.max}+`,[k,S]=_(o.attrs,["aria-atomic","aria-label","aria-live","role","title"]);return t(e.tag,d({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]},S,{style:e.style}),{default:()=>{var s,l;return[t("div",{class:"v-badge__wrapper"},[(l=(s=o.slots).default)==null?void 0:l.call(s),t(w,{transition:e.transition},{default:()=>{var i,r;return[L(t("span",d({class:["v-badge__badge",v.value,u.value,c.value,m.value],style:[b.value,f.value,e.inline?{}:C.value],"aria-atomic":"true","aria-label":g(e.label,a),"aria-live":"polite",role:"status"},k),[e.dot?void 0:o.slots.badge?(r=(i=o.slots).badge)==null?void 0:r.call(i):e.icon?t(D,{icon:e.icon},null):n]),[[A,e.modelValue]])]}})])]}})}),{}}});export{W as V};