import{j as i}from"./query-PJ0ZdjbV.js";import{ap as d}from"./index-BSPIaiZU.js";import{B as t}from"./badge-C34iUAiA.js";import"./vendor-CWhr2lg4.js";const o={active:"success",enabled:"success",published:"success",approved:"success",completed:"success",paid:"success",verified:"success",open:"success",draft:"secondary",inactive:"secondary",disabled:"secondary",archived:"secondary",closed:"secondary",pending:"warning",processing:"warning",in_progress:"warning",on_hold:"warning",expired:"warning",rejected:"destructive",cancelled:"destructive",canceled:"destructive",failed:"destructive",suspended:"destructive",overdue:"destructive"};function u(e){return e.replace(/[_-]+/g," ").replace(/\b\w/g,s=>s.toUpperCase())}function m({status:e,variant:s,label:c,className:r}){const a=(e??"").toLowerCase().trim(),n=s??o[a]??"default";return i.jsx(t,{variant:n,className:d("capitalize",r),children:c??u(e)})}export{m as S};
