import{c as a,t as i,n as l,p as c,o}from"./app-z_grtNg1.js";const g={__name:"StatusBadge",props:{status:{type:String,default:"unknown"}},setup(t){const n=t,r=c(()=>{const e=(n.status||"").toLowerCase();return["success","available","active","resolved","rewarded"].includes(e)?"bg-emerald-50 text-emerald-700 ring-emerald-200":["pending","processing","maintenance","in_progress","stuck"].includes(e)?"bg-amber-50 text-amber-700 ring-amber-200":["failed","inactive","reversed","closed","cancelled"].includes(e)?"bg-rose-50 text-rose-700 ring-rose-200":["hidden"].includes(e)?"bg-slate-100 text-slate-700 ring-slate-200":"bg-gray-100 text-gray-700 ring-gray-200"});return(e,u)=>{var s;return o(),a("span",{class:l(["inline-flex items-center rounded-full px-2 py-1 text-xs font-medium capitalize ring-1 ring-inset",r.value])},i(((s=t.status)==null?void 0:s.replaceAll("_"," "))||"unknown"),3)}}};export{g as _};
