import{i as s,m as a,e,k as d,d as i,u as m,n as u,c as n}from"./index-DF5uCdwt.js";const g=s({__name:"Badge",props:{variant:{default:"primary"},dot:{type:Boolean,default:!1}},setup(o){const t=o,c=n(()=>({primary:"bg-[var(--wdot-color-primary-100)] text-[var(--wdot-color-primary-700)]",success:"bg-[color-mix(in_srgb,var(--wdot-color-success)_16%,var(--wdot-bg))] text-[var(--wdot-color-success)]",warning:"bg-[color-mix(in_srgb,var(--wdot-color-warning)_20%,var(--wdot-bg))] text-[var(--wdot-color-warning)]",error:"bg-[color-mix(in_srgb,var(--wdot-color-error)_16%,var(--wdot-bg))] text-[var(--wdot-color-error)]",neutral:"bg-[var(--wdot-bg-muted)] text-[var(--wdot-fg-muted)]",ai:"bg-gradient-to-r from-[var(--wdot-color-ai-500,#7c3aed)] to-[var(--wdot-color-primary-600)] text-white"})[t.variant]),l=n(()=>({primary:"var(--wdot-color-primary-500)",success:"var(--wdot-color-success)",warning:"var(--wdot-color-warning)",error:"var(--wdot-color-error)",neutral:"var(--wdot-fg-muted)",ai:"var(--wdot-color-ai-500, #7c3aed)"})[t.variant]);return(r,w)=>(a(),e("span",{class:u(["inline-flex items-center gap-1 px-2 py-[2px] rounded-full text-[10.5px] font-black tracking-[0.04em]",c.value])},[o.dot?(a(),e("span",{key:0,class:"w-1.5 h-1.5 rounded-full",style:d({background:l.value})},null,4)):i("",!0),m(r.$slots,"default")],2))}});export{g as _};
