import{c as r,aI as E,bS as o,bT as n,ar as s}from"./index-ktJf6c6X.js";const _=1.5,x={fontVariantNumeric:"tabular-nums"},U={fontSize:11,lineHeight:1.4,fontWeight:600,letterSpacing:"0.07em",textTransform:"uppercase",color:"text.secondary"},P={borderRadius:_,boxShadow:"none",borderColor:"divider"},$=e=>({"& .MuiCardContent-root":{p:e,"&:last-child":{pb:e}}}),A={green:{light:"#2e7d32",dark:"#4ade80"},red:{light:"#d32f2f",dark:"#f87171"},amber:{light:"#ed6c02",dark:"#fbbf24"},blue:{light:"#0277bd",dark:"#60a5fa"},indigo:{light:"#1565c0",dark:"#818cf8"},purple:{light:"#6a1b9a",dark:"#c084fc"},cyan:{light:"#00838f",dark:"#22d3ee"},pink:{light:"#c2185b",dark:"#f472b6"},slate:{light:"#546e7a",dark:"#94a3b8"}},u=(e,t)=>A[e][t],T={CRITICAL:"red",HIGH:"amber",WARNING:"amber",MEDIUM:"blue",OPPORTUNITY:"cyan",POSITIVE:"green",AT_RISK:"amber",HEALTHY:"green",EXCELLENT:"green"},w=(e,t)=>u(T[e]??"slate",t),I={LEAD:"blue",FOLLOW_UP:"cyan",ART_APPROVAL:"purple",COST_ESTIMATION:"amber",QUOTATION:"pink",ORDER:"green"},M={LEAD:"Lead",FOLLOW_UP:"Follow-up",ART_APPROVAL:"Art Approval",COST_ESTIMATION:"Cost Estimation",QUOTATION:"Quotation",ORDER:"Order"},F=(e,t)=>u(I[e]??"slate",t),c=new Intl.NumberFormat("en-IN",{maximumFractionDigits:0}),k=e=>{const t=Math.abs(e??0),a=(e??0)<0?"-":"";return t>=1e7?`${a}₹${(t/1e7).toFixed(t>=1e8?0:1)} Cr`:t>=1e5?`${a}₹${(t/1e5).toFixed(t>=1e6?0:1)} L`:t>=1e3?`${a}₹${(t/1e3).toFixed(0)}K`:`${a}₹${c.format(Math.round(t))}`},j=e=>c.format(Math.round(e??0)),y=(e,t=1)=>`${(e??0).toFixed(t)}%`,H=e=>e==null||e<=0?"—":`${e.toFixed(1)} d`,V=(e,t=1)=>e==null?"—":`${e>0?"+":""}${e.toFixed(t)}%`,K=(e,t)=>t==null||t===0?null:((e??0)-t)/t*100,O={LEADS:r.LEADS,CHECK_IN:r.CHECK_IN,ART_DESIGN:r.ART_DESIGN,COST_ESTIMATION:r.COST_ESTIMATION,QUOTATION:r.QUOTATION,ORDER:r.ORDER,FOLLOW_UP:r.CHECK_IN},W=e=>e&&O[e]||null,G=e=>{switch(e){case"STALE_LEAD":return r.LEADS;case"IDLE_ESTIMATION":return r.COST_ESTIMATION;case"UNANSWERED_ART":return r.ART_DESIGN;case"OVERDUE_FOLLOW_UP":return r.CHECK_IN;case"UNPAID_ORDER":return r.ORDER;default:return null}},q={STALE_LEAD:"Stale lead",IDLE_ESTIMATION:"Idle estimation",UNANSWERED_ART:"Unanswered artwork",OVERDUE_FOLLOW_UP:"Overdue follow-up",UNPAID_ORDER:"Uncollected order"},Q=e=>e.palette.mode==="dark"?`0 2px 12px ${E("#000",.45)}`:"0 2px 12px rgba(15,23,42,0.08)";var d={},R=o;Object.defineProperty(d,"__esModule",{value:!0});var S=d.default=void 0,f=R(n()),L=s;S=d.default=(0,f.default)((0,L.jsx)("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward");var l={},N=o;Object.defineProperty(l,"__esModule",{value:!0});var p=l.default=void 0,D=N(n()),m=s;p=l.default=(0,D.default)((0,m.jsx)("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward");var i={},g=o;Object.defineProperty(i,"__esModule",{value:!0});var C=i.default=void 0,b=g(n()),h=s;C=i.default=(0,b.default)((0,h.jsx)("path",{d:"M19 13H5v-2h14z"}),"Remove");export{U as L,x as N,P,_ as R,M as S,u as a,S as b,$ as c,C as d,p as e,w as f,K as g,F as h,H as i,q as j,G as k,Q as l,k as m,j as n,y as p,W as r,V as s};
