import{j as t,W as s}from"./vendor-mui-CBBEb17G.js";import{al as r}from"./index-DdWwwZXu.js";const i=r("div")({display:"flex",justifyContent:"center"}),a=({status:e})=>{switch(e){case"Paid":return t.jsx(i,{children:t.jsx(s,{title:"تسویه کامل",children:t.jsx("div",{style:{width:"12px",height:"12px",background:"#00ff2b",borderRadius:"50%"}})})});case"PartiallyPaid":return t.jsx(i,{children:t.jsx(s,{title:"تسویه ناتمام",children:t.jsx("div",{style:{width:"12px",height:"12px",background:"#E49B0F",borderRadius:"50%"}})})});case"Unpaid":return t.jsx(i,{children:t.jsx(s,{title:"تسویه نشده",children:t.jsx("div",{style:{width:"12px",height:"12px",background:"#ff0000",borderRadius:"50%"}})})});case"Voided":return t.jsx(i,{children:t.jsx(s,{title:"ابطال شده",children:t.jsx("div",{style:{width:"12px",height:"12px",background:"#899499",borderRadius:"50%"}})})});case"Unknown":return t.jsx(i,{children:t.jsx(s,{title:"نامشخص",children:t.jsx("div",{style:{width:"12px",height:"12px",background:"rgba(0,0,0,0.1)",borderRadius:"50%"}})})})}},x=({row:e})=>e.isDelete?t.jsx(a,{status:"Voided"}):e.balance===0?t.jsx(a,{status:"Paid"}):e.balance===e.payAble?t.jsx(a,{status:"Unpaid"}):(e.balance,e.payAble,t.jsx(a,{status:"Unknown"}));export{x as P,a};
