import{bN as u,bO as o,_ as c,N as d,b5 as f,v as b,bP as g,o as v,c as p,aP as y,d as m,t as _,ao as O}from"./entry.816e6e91.js";import{b as j,u as S,t as k}from"./Button.8c8352d3.js";const t=u(o.ui.strategy,o.ui.badge,j),z=d({inheritAttrs:!1,props:{size:{type:String,default:()=>t.default.size,validator(e){return Object.keys(t.size).includes(e)}},color:{type:String,default:()=>t.default.color,validator(e){return[...o.ui.colors,...Object.keys(t.color)].includes(e)}},variant:{type:String,default:()=>t.default.variant,validator(e){return[...Object.keys(t.variant),...Object.values(t.color).flatMap(a=>Object.keys(a))].includes(e)}},label:{type:[String,Number],default:null},class:{type:[String,Object,Array],default:void 0},ui:{type:Object,default:void 0}},setup(e){const{ui:a,attrs:l}=S("badge",f(e,"ui"),t),n=b(()=>{var r,i;const s=((i=(r=a.value.color)==null?void 0:r[e.color])==null?void 0:i[e.variant])||a.value.variant[e.variant];return k(g(a.value.base,a.value.font,a.value.rounded,a.value.size[e.size],s==null?void 0:s.replaceAll("{color}",e.color)),e.class)});return{attrs:l,badgeClass:n}}});function C(e,a,l,n,s,r){return v(),p("span",O({class:e.badgeClass},e.attrs),[y(e.$slots,"default",{},()=>[m(_(e.label),1)])],16)}const A=c(z,[["render",C]]);export{A as _};
