import{ai as y,aj as N,bk as B,b2 as V,bm as h,bf as P,bn as x,bo as T,ak as R,bp as _,h as t,E as d,bq as w,b6 as L,al as A,b8 as I,br as M,am as X,aS as Y,aU as $,K as j,M as q,G as D}from"./index-yQAHGqJX.js";const E=N({bordered:Boolean,color:String,content:[Number,String],dot:Boolean,floating:Boolean,icon:Y,inline:Boolean,label:{type:String,default:"$vuetify.badge"},max:[Number,String],modelValue:{type:Boolean,default:!0},offsetX:[Number,String],offsetY:[Number,String],textColor:String,...X(),...M({location:"top end"}),...I(),...A(),...L(),...w({transition:"scale-rotate-transition"})},"VBadge"),G=y()({name:"VBadge",inheritAttrs:!1,props:E(),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($,{transition:e.transition},{default:()=>{var i,r;return[j(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]),[[q,e.modelValue]])]}})])]}})}),{}}});export{G as V};