import{W as t,C as n,B as r}from"./wallet-CE-i1bzG.js";import{c as i}from"./createLucideIcon-D5220jan.js";/**
 * @license lucide-react v0.475.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const s=[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]],l=i("Building2",s),o=(e,a="IDR")=>new Intl.NumberFormat("id-ID",{style:"currency",currency:a,minimumFractionDigits:0,maximumFractionDigits:0}).format(e),u=[{id:"wallet",label:"Saldo Tabungan",description:"Saldo Tersedia",type:"wallet",icon:t},{id:"va",label:"Virtual Account",description:"Transfer melalui bank partner",type:"va",icon:l},{id:"credit_card",label:"Kartu Kredit",description:"Pembayaran dengan kartu kredit",type:"credit_card",icon:n,disabled:!0},{id:"bank_transfer",label:"Transfer Bank",description:"Transfer manual ke rekening",type:"bank_transfer",icon:r,disabled:!0}],g=(e,a)=>e<a?{isValid:!1,message:"Saldo tidak mencukupi untuk melakukan transaksi ini"}:{isValid:!0},m=e=>{const a={pending:"text-yellow-600 bg-yellow-100",processing:"text-blue-600 bg-blue-100",success:"text-green-600 bg-green-100",failed:"text-red-600 bg-red-100",cancelled:"text-gray-600 bg-gray-100"};return a[e]||a.pending},p=e=>{const a={pending:"Menunggu Pembayaran",processing:"Memproses Pembayaran",success:"Pembayaran Berhasil",failed:"Pembayaran Gagal",cancelled:"Pembayaran Dibatalkan"};return a[e]||a.pending};export{u as P,m as a,o as f,p as g,g as v};
