import{ac as m,ad as g,ae as b,af as f,ag as v,q as o,ah as x,ai as A,aj as L,ak as I,al as T,am as R,an as d,ao as _,ap as w,aq as $,ar as q,as as X,at as Y,au as j,N as D,O as F,K as u,A as K}from"./index-2e57ee69.js";const M=m({start:Boolean,end:Boolean,...g(),...b()},"VListItemAction"),E=f()({name:"VListItemAction",props:M(),setup(e,t){let{slots:n}=t;return v(()=>o(e.tag,{class:["v-list-item-action",{"v-list-item-action--start":e.start,"v-list-item-action--end":e.end},e.class],style:e.style},n)),{}}});const O=m({bordered:Boolean,color:String,content:[Number,String],dot:Boolean,floating:Boolean,icon:x,inline:Boolean,label:{type:String,default:"$vuetify.badge"},max:[Number,String],modelValue:{type:Boolean,default:!0},offsetX:[Number,String],offsetY:[Number,String],textColor:String,...g(),...A({location:"top end"}),...L(),...b(),...I(),...T({transition:"scale-rotate-transition"})},"VBadge"),G=f()({name:"VBadge",inheritAttrs:!1,props:O(),setup(e,t){const{backgroundColorClasses:n,backgroundColorStyles:V}=R(d(e,"color")),{roundedClasses:C}=_(e),{t:k}=w(),{textColorClasses:y,textColorStyles:B}=$(d(e,"textColor")),{themeClasses:S}=q(),{locationStyles:N}=X(e,!0,a=>(e.floating?e.dot?2:4:e.dot?8:12)+(["top","bottom"].includes(a)?+(e.offsetY??0):["left","right"].includes(a)?+(e.offsetX??0):0));return v(()=>{const a=Number(e.content),s=!e.max||isNaN(a)?e.content:a<=+e.max?a:`${e.max}+`,[P,h]=Y(t.attrs,["aria-atomic","aria-label","aria-live","role","title"]);return o(e.tag,u({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]},h,{style:e.style}),{default:()=>{var l,i;return[o("div",{class:"v-badge__wrapper"},[(i=(l=t.slots).default)==null?void 0:i.call(l),o(j,{transition:e.transition},{default:()=>{var r,c;return[D(o("span",u({class:["v-badge__badge",S.value,n.value,C.value,y.value],style:[V.value,B.value,e.inline?{}:N.value],"aria-atomic":"true","aria-label":k(e.label,a),"aria-live":"polite",role:"status"},P),[e.dot?void 0:t.slots.badge?(c=(r=t.slots).badge)==null?void 0:c.call(r):e.icon?o(K,{icon:e.icon},null):s]),[[F,e.modelValue]])]}})])]}})}),{}}});export{G as V,E as a};
