import{au as k,c9 as y,cz as N,cq as S,cI as B,cJ as V,cr as P,cw as h,bG as x,a3 as o,bi as s,bI as T,f as _,b0 as w,bc as I,bb as R,b8 as D,b6 as L,a_ as A,W as l,cT as M,cO as W,r as X,ce as Y}from"#entry";import{m as $,M as q}from"./Cp3UUybv.js";const z=T({bordered:Boolean,color:String,content:[Number,String],dot:Boolean,floating:Boolean,icon:_,inline:Boolean,label:{type:String,default:"$vuetify.badge"},max:[Number,String],modelValue:{type:Boolean,default:!0},offsetX:[Number,String],offsetY:[Number,String],textColor:String,...A(),...L({location:"top end"}),...D(),...R(),...I(),...$({transition:"scale-rotate-transition"}),...w()},"VBadge"),J=k()({name:"VBadge",inheritAttrs:!1,props:z(),setup(e,t){const{backgroundColorClasses:i,backgroundColorStyles:r}=y(()=>e.color),{roundedClasses:c}=N(e),{t:d}=S(),{textColorClasses:u,textColorStyles:b}=B(()=>e.textColor),{themeClasses:m}=V(),{locationStyles:g}=P(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)),{dimensionStyles:f}=Y(e);return h(()=>{const a=Number(e.content),n=!e.max||isNaN(a)?e.content:a<=Number(e.max)?a:`${e.max}+`,[v,C]=x(t.attrs,["aria-atomic","aria-label","aria-live","role","title"]);return o(e.tag,s({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]},C,{style:e.style}),{default:()=>[l("div",{class:"v-badge__wrapper"},[t.slots.default?.(),o(q,{transition:e.transition},{default:()=>[M(l("span",s({class:["v-badge__badge",m.value,i.value,c.value,u.value],style:[r.value,b.value,f.value,e.inline?{}:g.value],"aria-atomic":"true","aria-label":d(e.label,a),"aria-live":"polite",role:"status"},v),[e.dot?void 0:t.slots.badge?t.slots.badge?.():e.icon?o(X,{icon:e.icon},null):n]),[[W,e.modelValue]])]})])]})}),{}}});export{J as V};
