var e=()=>new Date().toISOString().slice(0,10),t=[{value:`cash`,label:`Cash`},{value:`cheque`,label:`Cheque`},{value:`bank_transfer`,label:`Bank transfer`},{value:`upi`,label:`UPI`},{value:`card`,label:`Card`},{value:`other`,label:`Other`}],n=[...t.slice(0,5),{value:`online`,label:`Online`},{value:`other`,label:`Other`}],r={cash:`bg-[var(--color-success-bg)] text-[var(--color-success)]`,cheque:`bg-[var(--color-info-bg)] text-[var(--color-info)]`,bank_transfer:`bg-[var(--color-accent-soft)] text-[var(--color-accent-ink)]`,upi:`bg-[var(--color-warning-bg)] text-[var(--color-warning)]`,card:`bg-[var(--color-info-bg)] text-[var(--color-text-secondary)]`,online:`bg-[var(--color-accent-soft)] text-[var(--color-accent-ink)]`,other:`bg-[var(--color-info-bg)] text-[var(--color-text-muted)]`},i={pending:{label:`Pending`,cls:`bg-[var(--color-warning-bg)] text-[var(--color-warning)]`,note:`Taken, not banked. Waiting to clear.`},cleared:{label:`Cleared`,cls:`bg-[var(--color-success-bg)] text-[var(--color-success)]`,note:`The money is in the account.`},bounced:{label:`Bounced`,cls:`bg-[var(--color-error-bg)] text-[var(--color-error)]`,note:`Returned by the bank. The credit was reversed.`},failed:{label:`Failed`,cls:`bg-[var(--color-error-bg)] text-[var(--color-error)]`,note:`The payment never completed.`},cancelled:{label:`Cancelled`,cls:`bg-[var(--color-background)] text-[var(--color-text-muted)] line-through`,note:`Reversed by a contra debit. The receipt still stands.`}},a=Object.keys(i).map(e=>({value:e,label:i[e].label})),o={created:`bg-[var(--color-info-bg)] text-[var(--color-info)]`,pending:`bg-[var(--color-warning-bg)] text-[var(--color-warning)]`,success:`bg-[var(--color-success-bg)] text-[var(--color-success)]`,failed:`bg-[var(--color-error-bg)] text-[var(--color-error)]`,cancelled:`bg-[var(--color-background)] text-[var(--color-text-muted)]`,expired:`bg-[var(--color-background)] text-[var(--color-text-muted)]`},s=[{value:`created`,label:`Created`},{value:`pending`,label:`Pending`},{value:`success`,label:`Paid`},{value:`failed`,label:`Failed`},{value:`cancelled`,label:`Cancelled`},{value:`expired`,label:`Expired`}],c=[`created`,`pending`],l=e=>e?new Date(e).toLocaleString(`en-IN`,{day:`2-digit`,month:`short`,hour:`2-digit`,minute:`2-digit`}):`—`;export{i as a,s as c,c as i,l,r as n,a as o,t as r,o as s,n as t,e as u};