import{j as c}from"./sikshya-admin-sikshya-react-E_TY_un4.js";const g={success:"bg-emerald-50 text-emerald-800 ring-emerald-600/20 dark:bg-emerald-950/50 dark:text-emerald-300 dark:ring-emerald-500/30",warning:"bg-amber-50 text-amber-900 ring-amber-600/20 dark:bg-amber-950/40 dark:text-amber-200 dark:ring-amber-500/30",danger:"bg-rose-50 text-rose-700 ring-rose-600/20 dark:bg-rose-950/40 dark:text-rose-200 dark:ring-rose-500/30",info:"bg-sky-50 text-sky-900 ring-sky-600/20 dark:bg-sky-950/40 dark:text-sky-200 dark:ring-sky-500/30",premium:"bg-violet-50 text-violet-800 ring-violet-600/20 dark:bg-violet-950/40 dark:text-violet-200 dark:ring-violet-500/30",brand:"bg-brand-50 text-brand-800 ring-brand-600/20 dark:bg-brand-950/40 dark:text-brand-200 dark:ring-brand-500/30",neutral:"bg-slate-100 text-slate-700 ring-slate-500/15 dark:bg-slate-800 dark:text-slate-300"},b={publish:"success",published:"success",paid:"success",completed:"success",complete:"success",success:"success",active:"success",available:"success",approved:"success",enabled:"success",open:"success",passed:"success",pending:"warning",accrued:"warning",unpaid:"warning",locked:"warning",draft_review:"warning",needs_reply:"warning",in_progress:"warning","in-progress":"warning",rejected:"danger",reversed:"danger",suspended:"danger",cancelled:"danger",canceled:"danger",refunded:"danger",failed:"danger",trash:"danger",disabled:"danger",revoked:"danger",closed:"danger",future:"info",scheduled:"info",processing:"info",unlocked:"info",private:"premium",draft:"neutral","on-hold":"warning",on_hold:"warning"},s={free:{tone:"success",label:"Free"},starter:{tone:"warning",label:"Starter"},growth:{tone:"brand",label:"Growth"},pro:{tone:"brand",label:"Growth"},scale:{tone:"premium",label:"Scale"}},u={xs:"rounded-full px-2 py-0.5 text-xs font-medium",sm:"rounded-full px-2.5 py-0.5 text-xs font-medium"};function m({status:r,tone:d,tier:a,label:t,size:i="sm",caseStyle:l="capitalize"}){let n="neutral",e=t;a&&s[a]?(n=s[a].tone,e===void 0&&(e=s[a].label)):d?(n=d,e===void 0&&r&&(e=r.replace(/[-_]/g," "))):r&&(n=b[r.toLowerCase()]??"neutral",e===void 0&&(e=r.replace(/[-_]/g," ")));const o=l==="capitalize"?"capitalize":"";return c.jsx("span",{className:`inline-flex items-center ring-1 ring-inset ${u[i]} ${o} ${g[n]}`,children:e})}export{m as S};
