import{c as s,i as m,z as c,n,x as t,o as l}from"./app-DE5EohoY.js";const g={__name:"Badge",props:{variant:{type:String,default:"neutral",validator:e=>["success","warning","danger","info","neutral","primary"].includes(e)},size:{type:String,default:"md",validator:e=>["sm","md","lg"].includes(e)},dot:{type:Boolean,default:!1},rounded:{type:Boolean,default:!0}},setup(e){const r=e,o=t(()=>({success:"bg-emerald-100 text-emerald-800 border-emerald-200",warning:"bg-amber-100 text-amber-800 border-amber-200",danger:"bg-red-100 text-red-800 border-red-200",info:"bg-blue-100 text-blue-800 border-blue-200",neutral:"bg-slate-100 text-slate-800 border-slate-200",primary:"bg-primary-100 text-primary-800 border-primary-200"})[r.variant]),d=t(()=>({sm:"text-xs px-2 py-0.5",md:"text-sm px-3 py-1",lg:"text-base px-4 py-1.5"})[r.size]),u=t(()=>({success:"bg-emerald-600",warning:"bg-amber-600",danger:"bg-red-600",info:"bg-blue-600",neutral:"bg-slate-600",primary:"bg-primary-600"})[r.variant]),i=t(()=>["inline-flex items-center gap-1.5 font-semibold border",r.rounded?"rounded-full":"rounded-md",d.value,o.value].join(" "));return(a,b)=>(l(),s("span",{class:n(i.value)},[e.dot?(l(),s("span",{key:0,class:n(["w-2 h-2 rounded-full",u.value])},null,2)):m("",!0),c(a.$slots,"default")],2))}};export{g as _};
