import{g as r,E as a,G as u,j as o,H as i,O as d,o as c,c as f,I as b,d as g,t as p,y as v}from"./entry.eb978f24.js";import{_ as m}from"./_plugin-vue_export-helper.c27b6911.js";const y=r({props:{size:{type:String,default:()=>a.ui.badge.default.size,validator(e){return Object.keys(a.ui.badge.size).includes(e)}},color:{type:String,default:()=>a.ui.badge.default.color,validator(e){return[...a.ui.colors,...Object.keys(a.ui.badge.color)].includes(e)}},variant:{type:String,default:()=>a.ui.badge.default.variant,validator(e){return[...Object.keys(a.ui.badge.variant),...Object.values(a.ui.badge.color).flatMap(s=>Object.keys(s))].includes(e)}},label:{type:String,default:null},ui:{type:Object,default:()=>a.ui.badge}},setup(e){const s=u(),t=o(()=>i({},e.ui,s.ui.badge));return{badgeClass:o(()=>{const l=t.value.color?.[e.color]?.[e.variant]||t.value.variant[e.variant];return d(t.value.base,t.value.font,t.value.rounded,t.value.size[e.size],l?.replaceAll("{color}",e.color))})}}});function _(e,s,t,n,l,C){return c(),f("span",{class:v(e.badgeClass)},[b(e.$slots,"default",{},()=>[g(p(e.label),1)])],2)}const k=m(y,[["render",_]]);export{k as default};
