import{b as s,E as a}from"./index-ktJf6c6X.js";const l={PENDING:"#f59e0b",IN_PROGRESS:"#3b82f6",COMPLETED:"#10b981",CANCELLED:"#6b7280",OVERDUE:"#ef4444"},E={LOW:"#6b7280",MEDIUM:"#3b82f6",HIGH:"#f59e0b",URGENT:"#ef4444"},c=["#3b82f6","#10b981","#f59e0b","#ef4444","#8b5cf6","#6b7280"],r=e=>(e||"").replace(/_/g," ").replace(/\b\w/g,o=>o.toUpperCase()),f=({status:e,overdue:o})=>{const b=o&&e!=="COMPLETED"&&e!=="CANCELLED"?"OVERDUE":e||"PENDING",t=l[b]||"#6b7280";return s(a,{label:r(b),size:"small",sx:{bgcolor:`${t}1a`,color:t,fontWeight:600,border:`1px solid ${t}55`}})},C=({priority:e})=>{const o=E[e||"MEDIUM"]||"#3b82f6";return s(a,{label:r(e),size:"small",variant:"outlined",sx:{color:o,fontWeight:600,borderColor:`${o}88`}})},i=e=>e?new Date(e).toLocaleDateString():"—";export{c as C,C as P,f as S,i as f};
