import{E as i,G as r,g as u,j as c,N as d,o as f,c as p,H as v,d as g,t as m,K as b}from"./entry.9e31e8a4.js";import{t as y}from"./tw-merge.27ca352e.js";import{v as _,u as j}from"./ui.config.7ae255de.js";import{_ as k}from"./_plugin-vue_export-helper.c27b6911.js";const a=i(r.ui.strategy,r.ui.badge,_),C=u({inheritAttrs:!1,props:{size:{type:String,default:()=>a.default.size,validator(e){return Object.keys(a.size).includes(e)}},color:{type:String,default:()=>a.default.color,validator(e){return[...r.ui.colors,...Object.keys(a.color)].includes(e)}},variant:{type:String,default:()=>a.default.variant,validator(e){return[...Object.keys(a.variant),...Object.values(a.color).flatMap(t=>Object.keys(t))].includes(e)}},label:{type:[String,Number],default:null},ui:{type:Object,default:void 0}},setup(e){const{ui:t,attrs:s,attrsClass:o}=j("badge",e.ui,a),l=c(()=>{const n=t.value.color?.[e.color]?.[e.variant]||t.value.variant[e.variant];return y(d(t.value.base,t.value.font,t.value.rounded,t.value.size[e.size],n?.replaceAll("{color}",e.color)),o)});return{attrs:s,badgeClass:l}}});function O(e,t,s,o,l,n){return f(),p("span",b({class:e.badgeClass},e.attrs),[v(e.$slots,"default",{},()=>[g(m(e.label),1)])],16)}const h=k(C,[["render",O]]);export{h as default};
