import{b as t,B as a,ak as C}from"./index-CYy8zBsj.js";function f(o){const e=C().palette.mode==="dark";if(!o)return{label:"Not Set",bgColor:e?"#121212":"#eeeeee",textColor:"#9e9e9e"};switch(o||""){case"ServiceProvider":return{label:"Service Provider",bgColor:e?"#121212":"#f3e5f5",textColor:"#7b1fa2"};case"Supplier":return{label:"Supplier",bgColor:e?"#121212":"#e8f5e9",textColor:"#388e3c"};case"INITIATED":return{label:"Initiated",bgColor:e?"#121212":"#f3e5f5",textColor:"#7b1fa2"};case"APPROVED":return{label:"Approved",bgColor:e?"#121212":"#e8f5e9",textColor:"#388e3c"};case"CONSUMABLE":return{label:"Consumable",bgColor:e?"#121212":"#f3e5f5",textColor:"#7b1fa2"};case"ASSET":return{label:"Asset",bgColor:e?"#121212":"#e3f2fd",textColor:"#1976d2"};case"PRODUCT":return{label:"Product",bgColor:e?"#121212":"#e8f5e9",textColor:"#388e3c"};case"FINISHED_GOODS":return{label:"Finished Goods",bgColor:e?"#121212":"#e8f5e9",textColor:"#388e3c"};case"RAW_MATERIALS":return{label:"Raw Materials",bgColor:e?"#121212":"#ede7f6",textColor:"#5e35b1"};case"RAW_MIXED":return{label:"Raw Mixed",bgColor:e?"#121212":"#fff3e0",textColor:"#e65100"};case"RECYCLE_MIXED":return{label:"Re-cycle Mixed",bgColor:e?"#121212":"#e0f7fa",textColor:"#00838f"};case"REJECTED":return{label:"Rejected",bgColor:e?"#121212":"#fdecea",textColor:"#d32f2f"};case"CANCELLED_INVOICE":return{label:"Cancelled Invoice",bgColor:e?"#121212":"#fdecea",textColor:"#d32f2f"};case"ACTIVE":return{label:"Active",bgColor:e?"#121212":"#e8f5e9",textColor:"#388e3c"};case"INACTIVE":return{label:"Inactive",bgColor:e?"#121212":"#fdecea",textColor:"#d32f2f"};case"PENDING":return{label:"Pending",bgColor:e?"#121212":"#fff3e0",textColor:"#ef6c00"};case"PENDING_APPROVAL":return{label:"Pending Approval",bgColor:e?"#121212":"#fff8e1",textColor:"#f57c00"};case"CANCELLED":return{label:"Cancelled",bgColor:e?"#121212":"#fdecea",textColor:"#d32f2f"};case"BILLED":return{label:"Billed",bgColor:e?"#121212":"#e3f2fd",textColor:"#1976d2"};case"BUYER":return{label:"Buyer",bgColor:e?"#121212":"#e1f5fe",textColor:"#0277bd"};case"SELLER":return{label:"Seller",bgColor:e?"#121212":"#f1f8e9",textColor:"#33691e"};case"IN_PROGRESS":return{label:"In Progress",bgColor:e?"#121212":"#fff3e0",textColor:"#ef6c00"};case"IN_PRODUCTION":return{label:"In Production",bgColor:e?"#121212":"#e3f2fd",textColor:"#1976d2"};case"COMPLETED":return{label:"Completed",bgColor:e?"#121212":"#e0f2f1",textColor:"#00695c"};case"ON_HOLD":return{label:"On Hold",bgColor:e?"#121212":"#fce4ec",textColor:"#c2185b"};case"FAILED":return{label:"Failed",bgColor:e?"#121212":"#ffebee",textColor:"#c62828"};case"RESCHEDULED":return{label:"Rescheduled",bgColor:e?"#121212":"#e1f5fe",textColor:"#0288d1"};case"WAITING_FOR_PAYMENT":return{label:"Waiting for Payment",bgColor:e?"#121212":"#fffde7",textColor:"#f9a825"};case"REFUNDED":return{label:"Refunded",bgColor:e?"#121212":"#ede7f6",textColor:"#5e35b1"};case"DISPATCHED":return{label:"Dispatched",bgColor:e?"#121212":"#f1f8e9",textColor:"#558b2f"};case"DECLINED":return{label:"Declined",bgColor:e?"#121212":"#ffebee",textColor:"#c62828"};case"WITH_GST":return{label:"With GST",bgColor:e?"#121212":"#e0f7fa",textColor:"#00838f"};case"WITHOUT_GST":return{label:"Without GST",bgColor:e?"#121212":"#fbe9e7",textColor:"#d84315"};case"INVOICE_CREATED":return{label:"Invoice Generated",bgColor:e?"#121212":"#e3f2fd",textColor:"#1565c0"};case"EWAY_GENERATED":return{label:"E-Way Generated",bgColor:e?"#121212":"#e0f2f1",textColor:"#00695c"};case"EWAY_CANCELLED":return{label:"E-Way Cancelled",bgColor:e?"#121212":"#fdecea",textColor:"#c62828"};case"INVOICE_CANCELLED":return{label:"Invoice Cancelled",bgColor:e?"#121212":"#fdecea",textColor:"#d32f2f"};case"REINITIATED":return{label:"Reinitiated",bgColor:e?"#121212":"#fff8e1",textColor:"#f57c00"};case"DELIVERED":return{label:"Delivered",bgColor:e?"#121212":"#ede7f6",textColor:"#512da8"};case"READY_FOR_SALE":return{label:"Ready for Sale",bgColor:e?"#121212":"#e8f5e9",textColor:"#2e7d32"};case"BILLING":return{label:"Billing",bgColor:e?"#121212":"#e3f2fd",textColor:"#1565c0"};case"PROFORMA_INVOICE":return{label:"Proforma Invoice",bgColor:e?"#121212":"#fff8e1",textColor:"#f57c00"};case"":case null:case void 0:return{label:"In Progress",bgColor:e?"#121212":"#fff3e0",textColor:"#ef6c00"};default:return{label:b(o),bgColor:e?"#121212":"#eeeeee",textColor:e?"#e0e0e0":"#424242"}}}function b(o){return o.split("_").filter(Boolean).map(r=>r.charAt(0).toUpperCase()+r.slice(1).toLowerCase()).join(" ")}function n(o){const{label:r,bgColor:e,textColor:l}=f(o);return t(a,{sx:{display:"inline-block",px:1.5,py:.25,borderRadius:1.5,backgroundColor:e,color:l,fontWeight:600,fontSize:13,minWidth:60,textAlign:"center",boxShadow:"0 1px 4px 0 rgba(0,0,0,0.06)"},children:r})}export{n as r};
