@chainberry/ui-components 1.0.10 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +432 -441
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3925,24 +3925,14 @@ var K = {
|
|
|
3925
3925
|
label: "Unknown",
|
|
3926
3926
|
direction: "neutral"
|
|
3927
3927
|
}
|
|
3928
|
-
}, qr =
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
"MANUAL_DEPOSIT",
|
|
3933
|
-
"MANUAL_WITHDRAWAL",
|
|
3934
|
-
"AUTO_CONVERSION_DEPOSIT",
|
|
3935
|
-
"AUTO_CONVERSION_WITHDRAWAL",
|
|
3936
|
-
"AUTOMATIC_WITHDRAWAL",
|
|
3937
|
-
"UNKNOWN"
|
|
3938
|
-
], Jr = /* @__PURE__ */ F({
|
|
3939
|
-
NETWORK_LABELS: () => ci,
|
|
3940
|
-
SAVED_PRESETS: () => oi,
|
|
3941
|
-
TRANSACTIONS: () => ai,
|
|
3928
|
+
}, qr = /* @__PURE__ */ F({
|
|
3929
|
+
NETWORK_LABELS: () => si,
|
|
3930
|
+
SAVED_PRESETS: () => ai,
|
|
3931
|
+
TRANSACTIONS: () => ii,
|
|
3942
3932
|
coinSrc: () => q,
|
|
3943
|
-
needsAction: () =>
|
|
3944
|
-
toTransactionDetail: () =>
|
|
3945
|
-
}),
|
|
3933
|
+
needsAction: () => oi,
|
|
3934
|
+
toTransactionDetail: () => hi
|
|
3935
|
+
}), Jr = [
|
|
3946
3936
|
"usdt",
|
|
3947
3937
|
"usdc",
|
|
3948
3938
|
"eth",
|
|
@@ -3952,13 +3942,14 @@ var K = {
|
|
|
3952
3942
|
"avax",
|
|
3953
3943
|
"bnb",
|
|
3954
3944
|
"ton",
|
|
3955
|
-
"trx"
|
|
3945
|
+
"trx",
|
|
3946
|
+
"ltc"
|
|
3956
3947
|
];
|
|
3957
3948
|
function q(e) {
|
|
3958
3949
|
let t = e.toLowerCase();
|
|
3959
|
-
return
|
|
3950
|
+
return Jr.includes(t) ? `/coins/${t}.png` : void 0;
|
|
3960
3951
|
}
|
|
3961
|
-
var
|
|
3952
|
+
var Yr = [
|
|
3962
3953
|
{
|
|
3963
3954
|
id: "tx-01",
|
|
3964
3955
|
type: "DEPOSIT",
|
|
@@ -4261,7 +4252,7 @@ var Xr = [
|
|
|
4261
4252
|
userId: "user-3d0c8f24aa17bb",
|
|
4262
4253
|
orderId: "ord-c52d90ee44ff21ab"
|
|
4263
4254
|
}
|
|
4264
|
-
],
|
|
4255
|
+
], Xr = [
|
|
4265
4256
|
"CREATED",
|
|
4266
4257
|
"PROCESSING",
|
|
4267
4258
|
"KYT_IN_PROGRESS",
|
|
@@ -4274,7 +4265,7 @@ var Xr = [
|
|
|
4274
4265
|
"PENDING_VERIFICATION",
|
|
4275
4266
|
"PARTIALLY_COMPLETED",
|
|
4276
4267
|
"CURRENCY_MISMATCH"
|
|
4277
|
-
],
|
|
4268
|
+
], Zr = [
|
|
4278
4269
|
["USDT", "ETH"],
|
|
4279
4270
|
["USDT", "POL"],
|
|
4280
4271
|
["USDT", "SOL"],
|
|
@@ -4285,7 +4276,7 @@ var Xr = [
|
|
|
4285
4276
|
["ETH", "ETH"],
|
|
4286
4277
|
["BTC", "BTC"],
|
|
4287
4278
|
["TON", "TON"]
|
|
4288
|
-
],
|
|
4279
|
+
], Qr = [
|
|
4289
4280
|
"DEPOSIT",
|
|
4290
4281
|
"WITHDRAWAL",
|
|
4291
4282
|
"CHECKOUT",
|
|
@@ -4295,24 +4286,24 @@ var Xr = [
|
|
|
4295
4286
|
"AUTO_CONVERSION_WITHDRAWAL",
|
|
4296
4287
|
"AUTOMATIC_WITHDRAWAL",
|
|
4297
4288
|
"UNKNOWN"
|
|
4298
|
-
],
|
|
4289
|
+
], $r = [
|
|
4299
4290
|
"low",
|
|
4300
4291
|
"medium",
|
|
4301
4292
|
"high"
|
|
4302
|
-
],
|
|
4293
|
+
], ei = ["Jun", "Jul"], ti = /* @__PURE__ */ new Set(["CONFIRMED", "PARTIALLY_COMPLETED"]);
|
|
4303
4294
|
function J(e, t) {
|
|
4304
4295
|
let n = e * 2654435761 >>> 0, r = "";
|
|
4305
4296
|
for (; r.length < t;) r += (n & 15).toString(16), n = n * 16807 >>> 0 || 1;
|
|
4306
4297
|
return r.slice(0, t);
|
|
4307
4298
|
}
|
|
4308
|
-
var
|
|
4309
|
-
function
|
|
4299
|
+
var ni = (e) => String(e).padStart(2, "0");
|
|
4300
|
+
function ri(e, t) {
|
|
4310
4301
|
let n = [];
|
|
4311
4302
|
for (let r = 0; r < e; r++) {
|
|
4312
|
-
let e = t + r, i =
|
|
4303
|
+
let e = t + r, i = Qr[e % Qr.length], a = Xr[e % Xr.length], o = $r[e * 7 % 3], [s, c] = Zr[e % Zr.length], l = K[i].direction === "out" ? "-" : "+", u = ((e * 173 + 41) % 8e3 + 12 + e * 37 % 100 / 100).toLocaleString("en-US", {
|
|
4313
4304
|
minimumFractionDigits: 2,
|
|
4314
4305
|
maximumFractionDigits: 2
|
|
4315
|
-
}), d = `${
|
|
4306
|
+
}), d = `${ei[(e >> 5) % 2]} ${ni(e * 3 % 28 + 1)}, 2026`, f = e * 5 % 12 + 1, p = e * 13 % 60, m = e % 2 == 0 ? "AM" : "PM", h = `${ni(f)}:${ni(p)} ${m}`, g = ti.has(a);
|
|
4316
4307
|
n.push({
|
|
4317
4308
|
id: `tx-${String(e + 1).padStart(3, "0")}`,
|
|
4318
4309
|
type: i,
|
|
@@ -4325,14 +4316,14 @@ function ii(e, t) {
|
|
|
4325
4316
|
createdAt: d,
|
|
4326
4317
|
createdTime: h,
|
|
4327
4318
|
confirmedAt: g ? d : void 0,
|
|
4328
|
-
confirmedTime: g ? `${
|
|
4319
|
+
confirmedTime: g ? `${ni(f)}:${ni((p + 4) % 60)} ${m}` : void 0,
|
|
4329
4320
|
userId: `user-${J(e + 11, 14)}`,
|
|
4330
4321
|
orderId: `ord-${J(e + 101, 16)}`
|
|
4331
4322
|
});
|
|
4332
4323
|
}
|
|
4333
4324
|
return n;
|
|
4334
4325
|
}
|
|
4335
|
-
var
|
|
4326
|
+
var ii = [...Yr, ...ri(243, Yr.length)], ai = [
|
|
4336
4327
|
{
|
|
4337
4328
|
id: "high-risk-withdrawals",
|
|
4338
4329
|
label: "High-risk withdrawals",
|
|
@@ -4352,10 +4343,10 @@ var ai = [...Xr, ...ii(243, Xr.length)], oi = [
|
|
|
4352
4343
|
icon: "deposit"
|
|
4353
4344
|
}
|
|
4354
4345
|
];
|
|
4355
|
-
function
|
|
4346
|
+
function oi(e) {
|
|
4356
4347
|
return e.status === "PENDING_APPROVAL" || e.status === "PENDING_VERIFICATION" || e.status === "CURRENCY_MISMATCH";
|
|
4357
4348
|
}
|
|
4358
|
-
var
|
|
4349
|
+
var si = {
|
|
4359
4350
|
ETH: "Ethereum",
|
|
4360
4351
|
POL: "Polygon",
|
|
4361
4352
|
SOL: "Solana",
|
|
@@ -4364,53 +4355,53 @@ var ci = {
|
|
|
4364
4355
|
BTC: "Bitcoin",
|
|
4365
4356
|
TON: "TON"
|
|
4366
4357
|
};
|
|
4367
|
-
function
|
|
4358
|
+
function ci(e, t) {
|
|
4368
4359
|
return (e === "low" ? 8 : e === "medium" ? 42 : 76) + t % 12;
|
|
4369
4360
|
}
|
|
4370
|
-
function
|
|
4361
|
+
function li(e) {
|
|
4371
4362
|
return e.status === "REJECTED" || e.status === "FAILED" ? "rejected" : e.status === "PENDING_APPROVAL" || e.status === "PENDING_VERIFICATION" || e.status === "KYT_IN_PROGRESS" ? "manual-review" : e.risk === "high" ? "flagged" : "auto-approved";
|
|
4372
4363
|
}
|
|
4373
|
-
var
|
|
4364
|
+
var ui = {
|
|
4374
4365
|
"auto-approved": "Huobi/HTX sanctioned entity amount < 10 USD",
|
|
4375
4366
|
approved: "Counterparty cleared — no sanctioned exposure detected",
|
|
4376
4367
|
"manual-review": "Exposure to a high-risk exchange above the review threshold",
|
|
4377
4368
|
flagged: "Direct exposure to a darknet marketplace cluster",
|
|
4378
4369
|
rejected: "Funds traced to an OFAC-sanctioned address"
|
|
4379
4370
|
};
|
|
4380
|
-
function
|
|
4371
|
+
function di(e) {
|
|
4381
4372
|
let t = parseInt(e.replace(/\D/g, ""), 10);
|
|
4382
4373
|
return Number.isFinite(t) ? t : 1;
|
|
4383
4374
|
}
|
|
4384
|
-
function
|
|
4375
|
+
function fi(e) {
|
|
4385
4376
|
return e.replace(/^[+-]/, "");
|
|
4386
4377
|
}
|
|
4387
|
-
var
|
|
4388
|
-
function
|
|
4378
|
+
var pi = /* @__PURE__ */ new Set(["TON", "XRP"]);
|
|
4379
|
+
function mi(e) {
|
|
4389
4380
|
return String((e * 2654435761 >>> 0) % 9e6 + 1e6);
|
|
4390
4381
|
}
|
|
4391
|
-
function
|
|
4392
|
-
let t =
|
|
4382
|
+
function hi(e) {
|
|
4383
|
+
let t = di(e.id), n = li(e), r = si[e.network] ?? e.network, i = !!e.confirmedAt, a = pi.has(e.currency);
|
|
4393
4384
|
return {
|
|
4394
4385
|
...e,
|
|
4395
4386
|
networkLabel: r,
|
|
4396
4387
|
updatedAt: e.confirmedAt ?? e.createdAt,
|
|
4397
4388
|
updatedTime: e.confirmedTime ?? e.createdTime,
|
|
4398
4389
|
customerWallet: `T${J(t + 7, 8)}${J(t + 3, 6)}`,
|
|
4399
|
-
customerTag: a ?
|
|
4400
|
-
expectedAmount: `${
|
|
4390
|
+
customerTag: a ? mi(t + 1) : void 0,
|
|
4391
|
+
expectedAmount: `${fi(e.amount)} ${e.currency}`,
|
|
4401
4392
|
rate: `1 ${e.currency} = $1.00`,
|
|
4402
4393
|
commissionFee: `${(t % 5 + 1).toFixed(2)} ${e.currency}`,
|
|
4403
4394
|
riskAssessment: {
|
|
4404
|
-
score:
|
|
4395
|
+
score: ci(e.risk, t),
|
|
4405
4396
|
level: e.risk,
|
|
4406
4397
|
decision: n,
|
|
4407
4398
|
provider: "Crystal",
|
|
4408
|
-
reason:
|
|
4399
|
+
reason: ui[n]
|
|
4409
4400
|
},
|
|
4410
4401
|
fromAddress: `T${J(t + 21, 8)}${J(t + 5, 6)}`,
|
|
4411
|
-
fromTag: a ?
|
|
4402
|
+
fromTag: a ? mi(t + 2) : void 0,
|
|
4412
4403
|
toAddress: `T${J(t + 31, 8)}${J(t + 9, 6)}`,
|
|
4413
|
-
toTag: a ?
|
|
4404
|
+
toTag: a ? mi(t + 1) : void 0,
|
|
4414
4405
|
txHash: J(t + 41, 40),
|
|
4415
4406
|
txFee: i ? `${(t % 9 + 1).toFixed(2)} ${r}` : "—",
|
|
4416
4407
|
transactionUid: `${J(t + 51, 8)}${J(t + 2, 6)}`,
|
|
@@ -4419,7 +4410,7 @@ function gi(e) {
|
|
|
4419
4410
|
}
|
|
4420
4411
|
//#endregion
|
|
4421
4412
|
//#region ../../react-app/src/components/transactions/AssetValue.tsx
|
|
4422
|
-
function
|
|
4413
|
+
function gi({ value: e, code: t, icon: n = !0, className: r }) {
|
|
4423
4414
|
return /* @__PURE__ */ v("span", {
|
|
4424
4415
|
className: I("flex items-center gap-2", r),
|
|
4425
4416
|
children: [n && /* @__PURE__ */ _(U, {
|
|
@@ -4445,7 +4436,7 @@ function Y({ label: e, show: t = !0, className: n, children: r }) {
|
|
|
4445
4436
|
}
|
|
4446
4437
|
//#endregion
|
|
4447
4438
|
//#region ../../react-app/src/components/transactions/BlockchainDetails.tsx
|
|
4448
|
-
function
|
|
4439
|
+
function _i({ title: e, detail: t, show: n, className: r }) {
|
|
4449
4440
|
let i = (e) => n?.[e] !== !1, a = t.fromTag != null, o = t.toTag != null;
|
|
4450
4441
|
return /* @__PURE__ */ v("div", {
|
|
4451
4442
|
className: r,
|
|
@@ -4530,7 +4521,7 @@ function vi({ title: e, detail: t, show: n, className: r }) {
|
|
|
4530
4521
|
})]
|
|
4531
4522
|
});
|
|
4532
4523
|
}
|
|
4533
|
-
function
|
|
4524
|
+
function vi({ detail: e, show: t, showRefund: n = !0, className: r }) {
|
|
4534
4525
|
return /* @__PURE__ */ v("section", {
|
|
4535
4526
|
className: r,
|
|
4536
4527
|
children: [
|
|
@@ -4538,12 +4529,12 @@ function yi({ detail: e, show: t, showRefund: n = !0, className: r }) {
|
|
|
4538
4529
|
className: "mb-6",
|
|
4539
4530
|
children: "Blockchain Details"
|
|
4540
4531
|
}),
|
|
4541
|
-
/* @__PURE__ */ _(
|
|
4532
|
+
/* @__PURE__ */ _(_i, {
|
|
4542
4533
|
title: `${K[e.type].label} ${e.currency}`,
|
|
4543
4534
|
detail: e,
|
|
4544
4535
|
show: t
|
|
4545
4536
|
}),
|
|
4546
|
-
n && /* @__PURE__ */ _(
|
|
4537
|
+
n && /* @__PURE__ */ _(_i, {
|
|
4547
4538
|
title: `Refund ${e.currency}`,
|
|
4548
4539
|
detail: e,
|
|
4549
4540
|
show: t,
|
|
@@ -4554,7 +4545,7 @@ function yi({ detail: e, show: t, showRefund: n = !0, className: r }) {
|
|
|
4554
4545
|
}
|
|
4555
4546
|
//#endregion
|
|
4556
4547
|
//#region ../../react-app/src/components/transactions/RiskAssessment.tsx
|
|
4557
|
-
var
|
|
4548
|
+
var yi = {
|
|
4558
4549
|
"auto-approved": {
|
|
4559
4550
|
label: "Auto-approved",
|
|
4560
4551
|
icon: Ne,
|
|
@@ -4581,10 +4572,10 @@ var bi = {
|
|
|
4581
4572
|
className: "text-red-600 dark:text-red-400"
|
|
4582
4573
|
}
|
|
4583
4574
|
};
|
|
4584
|
-
function
|
|
4575
|
+
function bi(e) {
|
|
4585
4576
|
return e <= 33 ? "text-emerald-600 dark:text-emerald-400" : e <= 66 ? "text-amber-600 dark:text-amber-400" : "text-red-600 dark:text-red-400";
|
|
4586
4577
|
}
|
|
4587
|
-
function
|
|
4578
|
+
function xi({ label: e, children: t }) {
|
|
4588
4579
|
return /* @__PURE__ */ v("div", {
|
|
4589
4580
|
className: "min-w-0",
|
|
4590
4581
|
children: [/* @__PURE__ */ _("div", {
|
|
@@ -4596,8 +4587,8 @@ function Si({ label: e, children: t }) {
|
|
|
4596
4587
|
})]
|
|
4597
4588
|
});
|
|
4598
4589
|
}
|
|
4599
|
-
function
|
|
4600
|
-
let { score: a, level: o, decision: s, provider: c, reason: l } = e, u =
|
|
4590
|
+
function Si({ assessment: e, actionRequired: t = !1, onApprove: n, onReject: r, className: i }) {
|
|
4591
|
+
let { score: a, level: o, decision: s, provider: c, reason: l } = e, u = yi[s];
|
|
4601
4592
|
return /* @__PURE__ */ v("section", {
|
|
4602
4593
|
className: I("space-y-3", i),
|
|
4603
4594
|
children: [
|
|
@@ -4629,7 +4620,7 @@ function Ci({ assessment: e, actionRequired: t = !1, onApprove: n, onReject: r,
|
|
|
4629
4620
|
children: [/* @__PURE__ */ _(Wr, { level: o }), /* @__PURE__ */ v("div", {
|
|
4630
4621
|
className: "flex items-baseline gap-1",
|
|
4631
4622
|
children: [/* @__PURE__ */ _("span", {
|
|
4632
|
-
className: I("text-3xl font-semibold tabular-nums",
|
|
4623
|
+
className: I("text-3xl font-semibold tabular-nums", bi(a)),
|
|
4633
4624
|
children: a
|
|
4634
4625
|
}), /* @__PURE__ */ _("span", {
|
|
4635
4626
|
className: "text-sm text-muted-foreground",
|
|
@@ -4660,20 +4651,20 @@ function Ci({ assessment: e, actionRequired: t = !1, onApprove: n, onReject: r,
|
|
|
4660
4651
|
}), "Reject"]
|
|
4661
4652
|
})]
|
|
4662
4653
|
}),
|
|
4663
|
-
/* @__PURE__ */ _(
|
|
4654
|
+
/* @__PURE__ */ _(xi, {
|
|
4664
4655
|
label: "Reason",
|
|
4665
4656
|
children: /* @__PURE__ */ _("span", {
|
|
4666
4657
|
className: "text-muted-foreground",
|
|
4667
4658
|
children: l
|
|
4668
4659
|
})
|
|
4669
4660
|
}),
|
|
4670
|
-
/* @__PURE__ */ _(
|
|
4661
|
+
/* @__PURE__ */ _(xi, {
|
|
4671
4662
|
label: "Assessment provided by",
|
|
4672
4663
|
children: /* @__PURE__ */ _(Pr, { children: c })
|
|
4673
4664
|
})
|
|
4674
4665
|
] }) : /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ v("div", {
|
|
4675
4666
|
className: "grid grid-cols-2 gap-x-4 gap-y-3.5",
|
|
4676
|
-
children: [/* @__PURE__ */ _(
|
|
4667
|
+
children: [/* @__PURE__ */ _(xi, {
|
|
4677
4668
|
label: "Status",
|
|
4678
4669
|
children: /* @__PURE__ */ v("span", {
|
|
4679
4670
|
className: I("inline-flex items-center gap-1.5 font-medium", u.className),
|
|
@@ -4683,11 +4674,11 @@ function Ci({ assessment: e, actionRequired: t = !1, onApprove: n, onReject: r,
|
|
|
4683
4674
|
strokeWidth: 2
|
|
4684
4675
|
}), u.label]
|
|
4685
4676
|
})
|
|
4686
|
-
}), /* @__PURE__ */ _(
|
|
4677
|
+
}), /* @__PURE__ */ _(xi, {
|
|
4687
4678
|
label: "Assessment provided by",
|
|
4688
4679
|
children: /* @__PURE__ */ _(Pr, { children: c })
|
|
4689
4680
|
})]
|
|
4690
|
-
}), /* @__PURE__ */ _(
|
|
4681
|
+
}), /* @__PURE__ */ _(xi, {
|
|
4691
4682
|
label: "Reason",
|
|
4692
4683
|
children: /* @__PURE__ */ _("span", {
|
|
4693
4684
|
className: "text-muted-foreground",
|
|
@@ -4699,10 +4690,10 @@ function Ci({ assessment: e, actionRequired: t = !1, onApprove: n, onReject: r,
|
|
|
4699
4690
|
}
|
|
4700
4691
|
//#endregion
|
|
4701
4692
|
//#region ../../react-app/src/components/transactions/statuses.ts
|
|
4702
|
-
var
|
|
4693
|
+
var Ci = /* @__PURE__ */ F({
|
|
4703
4694
|
STATUS_META: () => X,
|
|
4704
|
-
STATUS_ORDER: () =>
|
|
4705
|
-
TONE_DOT: () =>
|
|
4695
|
+
STATUS_ORDER: () => wi,
|
|
4696
|
+
TONE_DOT: () => Ti
|
|
4706
4697
|
}), X = {
|
|
4707
4698
|
CREATED: {
|
|
4708
4699
|
label: "Created",
|
|
@@ -4752,7 +4743,7 @@ var wi = /* @__PURE__ */ F({
|
|
|
4752
4743
|
label: "Failed",
|
|
4753
4744
|
tone: "red"
|
|
4754
4745
|
}
|
|
4755
|
-
},
|
|
4746
|
+
}, wi = [
|
|
4756
4747
|
"CREATED",
|
|
4757
4748
|
"PROCESSING",
|
|
4758
4749
|
"KYT_IN_PROGRESS",
|
|
@@ -4765,7 +4756,7 @@ var wi = /* @__PURE__ */ F({
|
|
|
4765
4756
|
"CURRENCY_MISMATCH",
|
|
4766
4757
|
"REJECTED",
|
|
4767
4758
|
"FAILED"
|
|
4768
|
-
],
|
|
4759
|
+
], Ti = {
|
|
4769
4760
|
primary: "bg-primary",
|
|
4770
4761
|
sky: "bg-sky-500",
|
|
4771
4762
|
emerald: "bg-emerald-500",
|
|
@@ -4774,25 +4765,25 @@ var wi = /* @__PURE__ */ F({
|
|
|
4774
4765
|
slate: "bg-slate-400",
|
|
4775
4766
|
violet: "bg-violet-500",
|
|
4776
4767
|
orange: "bg-orange-500"
|
|
4777
|
-
},
|
|
4778
|
-
ASSET_OPTIONS: () =>
|
|
4779
|
-
EMPTY_FILTER: () =>
|
|
4780
|
-
RISK_OPTIONS: () =>
|
|
4781
|
-
TYPE_OPTIONS: () =>
|
|
4782
|
-
countMatches: () =>
|
|
4783
|
-
filterMatches: () =>
|
|
4784
|
-
filterToName: () =>
|
|
4785
|
-
isFilterEmpty: () =>
|
|
4786
|
-
}),
|
|
4768
|
+
}, Ei = /* @__PURE__ */ F({
|
|
4769
|
+
ASSET_OPTIONS: () => Ai,
|
|
4770
|
+
EMPTY_FILTER: () => Di,
|
|
4771
|
+
RISK_OPTIONS: () => ki,
|
|
4772
|
+
TYPE_OPTIONS: () => Oi,
|
|
4773
|
+
countMatches: () => Ni,
|
|
4774
|
+
filterMatches: () => Mi,
|
|
4775
|
+
filterToName: () => Fi,
|
|
4776
|
+
isFilterEmpty: () => ji
|
|
4777
|
+
}), Di = {
|
|
4787
4778
|
types: [],
|
|
4788
4779
|
statuses: [],
|
|
4789
4780
|
assets: [],
|
|
4790
4781
|
risks: [],
|
|
4791
4782
|
dateField: "createdAt"
|
|
4792
|
-
},
|
|
4783
|
+
}, Oi = ["DEPOSIT", "WITHDRAWAL"].map((e) => ({
|
|
4793
4784
|
value: e,
|
|
4794
4785
|
label: K[e].label
|
|
4795
|
-
})),
|
|
4786
|
+
})), ki = [
|
|
4796
4787
|
{
|
|
4797
4788
|
value: "low",
|
|
4798
4789
|
label: "Low risk"
|
|
@@ -4805,7 +4796,7 @@ var wi = /* @__PURE__ */ F({
|
|
|
4805
4796
|
value: "high",
|
|
4806
4797
|
label: "High risk"
|
|
4807
4798
|
}
|
|
4808
|
-
],
|
|
4799
|
+
], Ai = Array.from(new Map(ii.map((e) => {
|
|
4809
4800
|
let t = `${e.currency}/${e.network}`;
|
|
4810
4801
|
return [t, {
|
|
4811
4802
|
key: t,
|
|
@@ -4813,10 +4804,10 @@ var wi = /* @__PURE__ */ F({
|
|
|
4813
4804
|
network: e.network
|
|
4814
4805
|
}];
|
|
4815
4806
|
})).values()).sort((e, t) => e.key.localeCompare(t.key));
|
|
4816
|
-
function
|
|
4807
|
+
function ji(e) {
|
|
4817
4808
|
return !e.types.length && !e.statuses.length && !e.assets.length && !e.risks.length && !e.from && !e.to;
|
|
4818
4809
|
}
|
|
4819
|
-
function
|
|
4810
|
+
function Mi(e, t) {
|
|
4820
4811
|
if (t.types.length && !t.types.includes(e.type) || t.statuses.length && !t.statuses.includes(e.status) || t.assets.length && !t.assets.includes(`${e.currency}/${e.network}`) || t.risks.length && !t.risks.includes(e.risk)) return !1;
|
|
4821
4812
|
if (t.from || t.to) {
|
|
4822
4813
|
let n = t.dateField === "createdAt" ? e.createdAt : e.confirmedAt;
|
|
@@ -4826,13 +4817,13 @@ function Ni(e, t) {
|
|
|
4826
4817
|
}
|
|
4827
4818
|
return !0;
|
|
4828
4819
|
}
|
|
4829
|
-
function
|
|
4830
|
-
return
|
|
4820
|
+
function Ni(e) {
|
|
4821
|
+
return ji(e) ? ii.length : ii.reduce((t, n) => Mi(n, e) ? t + 1 : t, 0);
|
|
4831
4822
|
}
|
|
4832
|
-
var
|
|
4833
|
-
function
|
|
4823
|
+
var Pi = (e) => e.charAt(0).toUpperCase() + e.slice(1);
|
|
4824
|
+
function Fi(e) {
|
|
4834
4825
|
let t = [];
|
|
4835
|
-
if (e.types.length && t.push(e.types.map(
|
|
4826
|
+
if (e.types.length && t.push(e.types.map(Pi).join(" & ")), e.statuses.length && t.push(e.statuses.map((e) => X[e].label).join(" & ")), e.assets.length && t.push(e.assets.join(", ")), e.risks.length && t.push(e.risks.map((e) => `${Pi(e)} risk`).join(" & ")), e.from || e.to) {
|
|
4836
4827
|
let n = e.dateField === "createdAt" ? "Created" : "Confirmed";
|
|
4837
4828
|
t.push(`${n} ${e.from ?? "…"} → ${e.to ?? "…"}`);
|
|
4838
4829
|
}
|
|
@@ -4840,17 +4831,17 @@ function Ii(e) {
|
|
|
4840
4831
|
}
|
|
4841
4832
|
//#endregion
|
|
4842
4833
|
//#region ../../react-app/src/components/transactions/SavePresetDialog.tsx
|
|
4843
|
-
function
|
|
4844
|
-
let [i, a] = d(""), s = u(null), c = l(() =>
|
|
4834
|
+
function Ii({ open: e, onOpenChange: t, filter: n, onSave: r }) {
|
|
4835
|
+
let [i, a] = d(""), s = u(null), c = l(() => Ni(n), [n]);
|
|
4845
4836
|
o(() => {
|
|
4846
4837
|
if (!e) return;
|
|
4847
|
-
a(
|
|
4838
|
+
a(Fi(n));
|
|
4848
4839
|
let t = window.setTimeout(() => s.current?.select(), 0);
|
|
4849
4840
|
return () => window.clearTimeout(t);
|
|
4850
4841
|
}, [e]);
|
|
4851
4842
|
let f = () => {
|
|
4852
|
-
r(i.trim() ||
|
|
4853
|
-
}, p = i.trim() ||
|
|
4843
|
+
r(i.trim() || Fi(n), n), t(!1);
|
|
4844
|
+
}, p = i.trim() || Fi(n);
|
|
4854
4845
|
return /* @__PURE__ */ _(Ct, {
|
|
4855
4846
|
open: e,
|
|
4856
4847
|
onOpenChange: t,
|
|
@@ -4920,12 +4911,12 @@ function Li({ open: e, onOpenChange: t, filter: n, onSave: r }) {
|
|
|
4920
4911
|
}
|
|
4921
4912
|
//#endregion
|
|
4922
4913
|
//#region ../../react-app/src/components/transactions/SavedPresetsBar.tsx
|
|
4923
|
-
var
|
|
4914
|
+
var Li = {
|
|
4924
4915
|
alert: me,
|
|
4925
4916
|
filter: We,
|
|
4926
4917
|
deposit: be
|
|
4927
4918
|
};
|
|
4928
|
-
function
|
|
4919
|
+
function Ri({ presets: e, activeId: t, getCount: n, onToggle: r, onDelete: i, onCreateView: a, onReset: o, resetDisabled: s = !1 }) {
|
|
4929
4920
|
let [c, l] = d(null);
|
|
4930
4921
|
return /* @__PURE__ */ v("div", {
|
|
4931
4922
|
className: "flex flex-wrap items-center gap-2",
|
|
@@ -4940,7 +4931,7 @@ function zi({ presets: e, activeId: t, getCount: n, onToggle: r, onDelete: i, on
|
|
|
4940
4931
|
className: I("inline-flex cursor-pointer items-center gap-1.5 rounded-full border px-2.5 py-0.5 text-[13px] transition-colors", e.id === t ? "border-cb-blue/40 bg-cb-blue-soft text-cb-blue" : "border-border bg-background text-foreground hover:bg-muted"),
|
|
4941
4932
|
children: [
|
|
4942
4933
|
e.icon && /* @__PURE__ */ _(x, {
|
|
4943
|
-
icon:
|
|
4934
|
+
icon: Li[e.icon],
|
|
4944
4935
|
size: 14,
|
|
4945
4936
|
color: "currentColor",
|
|
4946
4937
|
strokeWidth: 2
|
|
@@ -5013,7 +5004,7 @@ function zi({ presets: e, activeId: t, getCount: n, onToggle: r, onDelete: i, on
|
|
|
5013
5004
|
}
|
|
5014
5005
|
//#endregion
|
|
5015
5006
|
//#region ../../react-app/src/components/transactions/TransactionSummary.tsx
|
|
5016
|
-
function
|
|
5007
|
+
function zi({ detail: e, show: t, className: n }) {
|
|
5017
5008
|
let r = X[e.status], i = e.amount.trim().startsWith("-"), a = (e) => t?.[e] !== !1;
|
|
5018
5009
|
return /* @__PURE__ */ v("div", {
|
|
5019
5010
|
className: I("space-y-3", n),
|
|
@@ -5043,7 +5034,7 @@ function Bi({ detail: e, show: t, className: n }) {
|
|
|
5043
5034
|
}
|
|
5044
5035
|
//#endregion
|
|
5045
5036
|
//#region ../../react-app/src/components/transactions/TransactionInfo.tsx
|
|
5046
|
-
function
|
|
5037
|
+
function Bi({ detail: e, show: t, className: n }) {
|
|
5047
5038
|
let r = (e) => t?.[e] !== !1, i = e.customerTag != null;
|
|
5048
5039
|
return /* @__PURE__ */ _("div", {
|
|
5049
5040
|
className: n,
|
|
@@ -5053,7 +5044,7 @@ function Vi({ detail: e, show: t, className: n }) {
|
|
|
5053
5044
|
/* @__PURE__ */ _(Y, {
|
|
5054
5045
|
label: "Currency",
|
|
5055
5046
|
show: r("currency"),
|
|
5056
|
-
children: /* @__PURE__ */ _(
|
|
5047
|
+
children: /* @__PURE__ */ _(gi, {
|
|
5057
5048
|
value: e.currency,
|
|
5058
5049
|
code: e.currency
|
|
5059
5050
|
})
|
|
@@ -5061,7 +5052,7 @@ function Vi({ detail: e, show: t, className: n }) {
|
|
|
5061
5052
|
/* @__PURE__ */ _(Y, {
|
|
5062
5053
|
label: "Network",
|
|
5063
5054
|
show: r("network"),
|
|
5064
|
-
children: /* @__PURE__ */ _(
|
|
5055
|
+
children: /* @__PURE__ */ _(gi, {
|
|
5065
5056
|
value: e.networkLabel,
|
|
5066
5057
|
code: e.network
|
|
5067
5058
|
})
|
|
@@ -5124,7 +5115,7 @@ function Vi({ detail: e, show: t, className: n }) {
|
|
|
5124
5115
|
/* @__PURE__ */ _(Y, {
|
|
5125
5116
|
label: "Expected deposit amount",
|
|
5126
5117
|
show: r("expectedAmount"),
|
|
5127
|
-
children: /* @__PURE__ */ _(
|
|
5118
|
+
children: /* @__PURE__ */ _(gi, {
|
|
5128
5119
|
value: e.expectedAmount,
|
|
5129
5120
|
code: e.currency,
|
|
5130
5121
|
icon: !1
|
|
@@ -5146,7 +5137,7 @@ function Vi({ detail: e, show: t, className: n }) {
|
|
|
5146
5137
|
}
|
|
5147
5138
|
//#endregion
|
|
5148
5139
|
//#region ../../react-app/src/components/transactions/TransactionReference.tsx
|
|
5149
|
-
function
|
|
5140
|
+
function Vi({ detail: e, show: t, className: n }) {
|
|
5150
5141
|
let r = (e) => t?.[e] !== !1;
|
|
5151
5142
|
return /* @__PURE__ */ v("section", {
|
|
5152
5143
|
className: n,
|
|
@@ -5174,7 +5165,7 @@ function Hi({ detail: e, show: t, className: n }) {
|
|
|
5174
5165
|
}
|
|
5175
5166
|
//#endregion
|
|
5176
5167
|
//#region ../../react-app/src/components/transactions/TransactionDetailPanel.tsx
|
|
5177
|
-
function
|
|
5168
|
+
function Hi({ detail: e, open: t, onOpenChange: n, show: r, onApprove: i, onReject: a }) {
|
|
5178
5169
|
return /* @__PURE__ */ _(un, {
|
|
5179
5170
|
open: t,
|
|
5180
5171
|
onOpenChange: n,
|
|
@@ -5187,7 +5178,7 @@ function Ui({ detail: e, open: t, onOpenChange: n, show: r, onApprove: i, onReje
|
|
|
5187
5178
|
children: /* @__PURE__ */ _(vn, { children: "Transaction Details" })
|
|
5188
5179
|
}), e && /* @__PURE__ */ _(gn, {
|
|
5189
5180
|
className: "px-5 py-4",
|
|
5190
|
-
children: /* @__PURE__ */ _(
|
|
5181
|
+
children: /* @__PURE__ */ _(Ui, {
|
|
5191
5182
|
detail: e,
|
|
5192
5183
|
show: r,
|
|
5193
5184
|
onApprove: i,
|
|
@@ -5197,30 +5188,30 @@ function Ui({ detail: e, open: t, onOpenChange: n, show: r, onApprove: i, onReje
|
|
|
5197
5188
|
})
|
|
5198
5189
|
});
|
|
5199
5190
|
}
|
|
5200
|
-
function
|
|
5201
|
-
let i =
|
|
5191
|
+
function Ui({ detail: e, show: t, onApprove: n, onReject: r }) {
|
|
5192
|
+
let i = oi(e), a = /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(Bi, {
|
|
5202
5193
|
detail: e,
|
|
5203
5194
|
show: t?.info
|
|
5204
|
-
}), /* @__PURE__ */ _(bn, {})] }), o = t?.riskAssessment === !1 ? null : /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(
|
|
5195
|
+
}), /* @__PURE__ */ _(bn, {})] }), o = t?.riskAssessment === !1 ? null : /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(Si, {
|
|
5205
5196
|
assessment: e.riskAssessment,
|
|
5206
5197
|
actionRequired: i,
|
|
5207
5198
|
onApprove: n,
|
|
5208
5199
|
onReject: r
|
|
5209
5200
|
}), /* @__PURE__ */ _(bn, {})] });
|
|
5210
5201
|
return /* @__PURE__ */ v(g, { children: [
|
|
5211
|
-
/* @__PURE__ */ _(
|
|
5202
|
+
/* @__PURE__ */ _(zi, {
|
|
5212
5203
|
detail: e,
|
|
5213
5204
|
show: t?.summary
|
|
5214
5205
|
}),
|
|
5215
5206
|
/* @__PURE__ */ _(bn, {}),
|
|
5216
5207
|
i ? /* @__PURE__ */ v(g, { children: [o, a] }) : /* @__PURE__ */ v(g, { children: [a, o] }),
|
|
5217
|
-
/* @__PURE__ */ _(
|
|
5208
|
+
/* @__PURE__ */ _(vi, {
|
|
5218
5209
|
detail: e,
|
|
5219
5210
|
show: t?.blockchain,
|
|
5220
5211
|
showRefund: t?.showRefund
|
|
5221
5212
|
}),
|
|
5222
5213
|
/* @__PURE__ */ _(bn, {}),
|
|
5223
|
-
/* @__PURE__ */ _(
|
|
5214
|
+
/* @__PURE__ */ _(Vi, {
|
|
5224
5215
|
detail: e,
|
|
5225
5216
|
show: t?.reference
|
|
5226
5217
|
})
|
|
@@ -5228,22 +5219,22 @@ function Wi({ detail: e, show: t, onApprove: n, onReject: r }) {
|
|
|
5228
5219
|
}
|
|
5229
5220
|
//#endregion
|
|
5230
5221
|
//#region ../../react-app/src/components/transactions/TransactionsFilterPanel.tsx
|
|
5231
|
-
function
|
|
5222
|
+
function Wi(e, t) {
|
|
5232
5223
|
return e.includes(t) ? e.filter((e) => e !== t) : [...e, t];
|
|
5233
5224
|
}
|
|
5234
|
-
function
|
|
5225
|
+
function Gi({ title: e, children: t }) {
|
|
5235
5226
|
return /* @__PURE__ */ v("section", { children: [/* @__PURE__ */ _(xn, { children: e }), t] });
|
|
5236
5227
|
}
|
|
5237
|
-
var
|
|
5228
|
+
var Ki = "flex cursor-pointer items-center gap-2.5 rounded-lg px-2 py-1.5 text-sm text-foreground transition-colors hover:bg-cb-seg", qi = {
|
|
5238
5229
|
in: be,
|
|
5239
5230
|
out: Te,
|
|
5240
5231
|
neutral: ve
|
|
5241
|
-
},
|
|
5232
|
+
}, Ji = {
|
|
5242
5233
|
in: "text-emerald-500",
|
|
5243
5234
|
out: "text-rose-500",
|
|
5244
5235
|
neutral: "text-slate-400"
|
|
5245
5236
|
};
|
|
5246
|
-
function
|
|
5237
|
+
function Yi({ open: e, onOpenChange: t, value: n, assets: r, onApply: i, onReset: a }) {
|
|
5247
5238
|
let [s, c] = d(n);
|
|
5248
5239
|
return o(() => {
|
|
5249
5240
|
e && c(n);
|
|
@@ -5258,27 +5249,27 @@ function Xi({ open: e, onOpenChange: t, value: n, assets: r, onApply: i, onReset
|
|
|
5258
5249
|
/* @__PURE__ */ v(gn, {
|
|
5259
5250
|
className: "px-5 py-4",
|
|
5260
5251
|
children: [
|
|
5261
|
-
/* @__PURE__ */ _(
|
|
5252
|
+
/* @__PURE__ */ _(Gi, {
|
|
5262
5253
|
title: "Type",
|
|
5263
5254
|
children: /* @__PURE__ */ _("div", {
|
|
5264
5255
|
className: "grid grid-cols-2 gap-x-4",
|
|
5265
|
-
children:
|
|
5256
|
+
children: Oi.map((e) => {
|
|
5266
5257
|
let t = K[e.value].direction;
|
|
5267
5258
|
return /* @__PURE__ */ v("label", {
|
|
5268
|
-
className:
|
|
5259
|
+
className: Ki,
|
|
5269
5260
|
children: [
|
|
5270
5261
|
/* @__PURE__ */ _(St, {
|
|
5271
5262
|
checked: s.types.includes(e.value),
|
|
5272
5263
|
onCheckedChange: () => c((t) => ({
|
|
5273
5264
|
...t,
|
|
5274
|
-
types:
|
|
5265
|
+
types: Wi(t.types, e.value)
|
|
5275
5266
|
}))
|
|
5276
5267
|
}),
|
|
5277
5268
|
/* @__PURE__ */ _(x, {
|
|
5278
|
-
icon:
|
|
5269
|
+
icon: qi[t],
|
|
5279
5270
|
size: 16,
|
|
5280
5271
|
strokeWidth: 2,
|
|
5281
|
-
className:
|
|
5272
|
+
className: Ji[t]
|
|
5282
5273
|
}),
|
|
5283
5274
|
/* @__PURE__ */ _("span", { children: e.label })
|
|
5284
5275
|
]
|
|
@@ -5287,17 +5278,17 @@ function Xi({ open: e, onOpenChange: t, value: n, assets: r, onApply: i, onReset
|
|
|
5287
5278
|
})
|
|
5288
5279
|
}),
|
|
5289
5280
|
/* @__PURE__ */ _(bn, {}),
|
|
5290
|
-
/* @__PURE__ */ _(
|
|
5281
|
+
/* @__PURE__ */ _(Gi, {
|
|
5291
5282
|
title: "Status",
|
|
5292
5283
|
children: /* @__PURE__ */ _("div", {
|
|
5293
5284
|
className: "grid grid-cols-2 gap-x-4",
|
|
5294
|
-
children:
|
|
5295
|
-
className:
|
|
5285
|
+
children: wi.map((e) => /* @__PURE__ */ v("label", {
|
|
5286
|
+
className: Ki,
|
|
5296
5287
|
children: [/* @__PURE__ */ _(St, {
|
|
5297
5288
|
checked: s.statuses.includes(e),
|
|
5298
5289
|
onCheckedChange: () => c((t) => ({
|
|
5299
5290
|
...t,
|
|
5300
|
-
statuses:
|
|
5291
|
+
statuses: Wi(t.statuses, e)
|
|
5301
5292
|
}))
|
|
5302
5293
|
}), /* @__PURE__ */ _(Kr, {
|
|
5303
5294
|
tone: X[e].tone,
|
|
@@ -5307,18 +5298,18 @@ function Xi({ open: e, onOpenChange: t, value: n, assets: r, onApply: i, onReset
|
|
|
5307
5298
|
})
|
|
5308
5299
|
}),
|
|
5309
5300
|
/* @__PURE__ */ _(bn, {}),
|
|
5310
|
-
r.length > 0 && /* @__PURE__ */ _(
|
|
5301
|
+
r.length > 0 && /* @__PURE__ */ _(Gi, {
|
|
5311
5302
|
title: "Currency & Network",
|
|
5312
5303
|
children: /* @__PURE__ */ _("div", {
|
|
5313
5304
|
className: "grid grid-cols-2 gap-x-4",
|
|
5314
5305
|
children: r.map((e) => /* @__PURE__ */ v("label", {
|
|
5315
|
-
className:
|
|
5306
|
+
className: Ki,
|
|
5316
5307
|
children: [
|
|
5317
5308
|
/* @__PURE__ */ _(St, {
|
|
5318
5309
|
checked: s.assets.includes(e.key),
|
|
5319
5310
|
onCheckedChange: () => c((t) => ({
|
|
5320
5311
|
...t,
|
|
5321
|
-
assets:
|
|
5312
|
+
assets: Wi(t.assets, e.key)
|
|
5322
5313
|
}))
|
|
5323
5314
|
}),
|
|
5324
5315
|
/* @__PURE__ */ _(Ir, {
|
|
@@ -5342,18 +5333,18 @@ function Xi({ open: e, onOpenChange: t, value: n, assets: r, onApply: i, onReset
|
|
|
5342
5333
|
})
|
|
5343
5334
|
}),
|
|
5344
5335
|
/* @__PURE__ */ _(bn, {}),
|
|
5345
|
-
/* @__PURE__ */ _(
|
|
5336
|
+
/* @__PURE__ */ _(Gi, {
|
|
5346
5337
|
title: "Risk Level",
|
|
5347
5338
|
children: /* @__PURE__ */ _("div", {
|
|
5348
5339
|
className: "grid grid-cols-2 gap-x-4",
|
|
5349
|
-
children:
|
|
5350
|
-
className:
|
|
5340
|
+
children: ki.map((e) => /* @__PURE__ */ v("label", {
|
|
5341
|
+
className: Ki,
|
|
5351
5342
|
children: [
|
|
5352
5343
|
/* @__PURE__ */ _(St, {
|
|
5353
5344
|
checked: s.risks.includes(e.value),
|
|
5354
5345
|
onCheckedChange: () => c((t) => ({
|
|
5355
5346
|
...t,
|
|
5356
|
-
risks:
|
|
5347
|
+
risks: Wi(t.risks, e.value)
|
|
5357
5348
|
}))
|
|
5358
5349
|
}),
|
|
5359
5350
|
/* @__PURE__ */ _("img", {
|
|
@@ -5367,7 +5358,7 @@ function Xi({ open: e, onOpenChange: t, value: n, assets: r, onApply: i, onReset
|
|
|
5367
5358
|
})
|
|
5368
5359
|
}),
|
|
5369
5360
|
/* @__PURE__ */ _(bn, {}),
|
|
5370
|
-
/* @__PURE__ */ v(
|
|
5361
|
+
/* @__PURE__ */ v(Gi, {
|
|
5371
5362
|
title: "Date Range",
|
|
5372
5363
|
children: [/* @__PURE__ */ v(an, {
|
|
5373
5364
|
value: s.dateField,
|
|
@@ -5427,7 +5418,7 @@ function Xi({ open: e, onOpenChange: t, value: n, assets: r, onApply: i, onReset
|
|
|
5427
5418
|
}
|
|
5428
5419
|
//#endregion
|
|
5429
5420
|
//#region ../../react-app/src/components/transactions/TransactionsTable.tsx
|
|
5430
|
-
function
|
|
5421
|
+
function Xi({ date: e, time: t }) {
|
|
5431
5422
|
return e ? /* @__PURE__ */ _(G, {
|
|
5432
5423
|
primary: e,
|
|
5433
5424
|
secondary: t,
|
|
@@ -5437,7 +5428,7 @@ function Zi({ date: e, time: t }) {
|
|
|
5437
5428
|
children: "—"
|
|
5438
5429
|
});
|
|
5439
5430
|
}
|
|
5440
|
-
var
|
|
5431
|
+
var Zi = [
|
|
5441
5432
|
{
|
|
5442
5433
|
id: "type",
|
|
5443
5434
|
header: "Payment Type",
|
|
@@ -5517,7 +5508,7 @@ var Qi = [
|
|
|
5517
5508
|
header: "Created at",
|
|
5518
5509
|
sortable: !0,
|
|
5519
5510
|
sortValue: (e) => (/* @__PURE__ */ new Date(`${e.createdAt} ${e.createdTime}`)).getTime(),
|
|
5520
|
-
cell: (e) => /* @__PURE__ */ _(
|
|
5511
|
+
cell: (e) => /* @__PURE__ */ _(Xi, {
|
|
5521
5512
|
date: e.createdAt,
|
|
5522
5513
|
time: e.createdTime
|
|
5523
5514
|
}),
|
|
@@ -5531,7 +5522,7 @@ var Qi = [
|
|
|
5531
5522
|
header: "Confirmed at",
|
|
5532
5523
|
sortable: !0,
|
|
5533
5524
|
sortValue: (e) => e.confirmedAt ? (/* @__PURE__ */ new Date(`${e.confirmedAt} ${e.confirmedTime ?? ""}`)).getTime() : -Infinity,
|
|
5534
|
-
cell: (e) => /* @__PURE__ */ _(
|
|
5525
|
+
cell: (e) => /* @__PURE__ */ _(Xi, {
|
|
5535
5526
|
date: e.confirmedAt,
|
|
5536
5527
|
time: e.confirmedTime
|
|
5537
5528
|
}),
|
|
@@ -5562,7 +5553,7 @@ var Qi = [
|
|
|
5562
5553
|
}),
|
|
5563
5554
|
skeleton: /* @__PURE__ */ _(V, { className: "h-4 w-32" })
|
|
5564
5555
|
}
|
|
5565
|
-
],
|
|
5556
|
+
], Qi = [
|
|
5566
5557
|
{
|
|
5567
5558
|
value: "uid",
|
|
5568
5559
|
label: "UID"
|
|
@@ -5575,14 +5566,14 @@ var Qi = [
|
|
|
5575
5566
|
value: "wallet",
|
|
5576
5567
|
label: "Wallet"
|
|
5577
5568
|
}
|
|
5578
|
-
],
|
|
5569
|
+
], $i = Zi.map((e) => ({
|
|
5579
5570
|
id: e.id,
|
|
5580
5571
|
label: e.header,
|
|
5581
5572
|
canHide: e.canHide
|
|
5582
5573
|
}));
|
|
5583
|
-
function
|
|
5574
|
+
function ea({ data: e, loading: t, onRowClick: n, columnVisibility: r, presets: i, pageSize: a = 50, totalTransactions: o, currentPage: s = 0, onPageChange: c, activeSort: l, onSortChange: u }) {
|
|
5584
5575
|
return /* @__PURE__ */ _(zr, {
|
|
5585
|
-
columns:
|
|
5576
|
+
columns: Zi,
|
|
5586
5577
|
data: e,
|
|
5587
5578
|
getRowId: (e) => e.id,
|
|
5588
5579
|
layout: "fill",
|
|
@@ -5597,7 +5588,7 @@ function ta({ data: e, loading: t, onRowClick: n, columnVisibility: r, presets:
|
|
|
5597
5588
|
sort: l,
|
|
5598
5589
|
onSortChange: u,
|
|
5599
5590
|
emptyMessage: "No transactions match your filters.",
|
|
5600
|
-
rowLeading: (e) =>
|
|
5591
|
+
rowLeading: (e) => oi(e) ? /* @__PURE__ */ v(Fn, { children: [/* @__PURE__ */ _(In, {
|
|
5601
5592
|
asChild: !0,
|
|
5602
5593
|
children: /* @__PURE__ */ _("span", {
|
|
5603
5594
|
"aria-label": "Action Required",
|
|
@@ -5612,14 +5603,14 @@ function ta({ data: e, loading: t, onRowClick: n, columnVisibility: r, presets:
|
|
|
5612
5603
|
}
|
|
5613
5604
|
//#endregion
|
|
5614
5605
|
//#region ../../react-app/src/components/transactions/TransactionsTableOptions.tsx
|
|
5615
|
-
var
|
|
5606
|
+
var ta = [{
|
|
5616
5607
|
value: "all",
|
|
5617
5608
|
label: "All"
|
|
5618
5609
|
}, {
|
|
5619
5610
|
value: "action",
|
|
5620
5611
|
label: "Action Required"
|
|
5621
5612
|
}];
|
|
5622
|
-
function
|
|
5613
|
+
function na({ search: e, onSearchChange: t, searchScopes: n, searchScope: r, onSearchScopeChange: i, searchPlaceholder: a = "Search...", segment: o, onSegmentChange: s, tabs: c = ta, tabCounts: l, onFilter: u, filterCount: d = 0, columns: f, columnVisibility: p, onColumnChange: m, onRefresh: h, refreshing: g = !1, onDownload: y, show: b, className: S }) {
|
|
5623
5614
|
let C = (e) => b?.[e] !== !1, w = n?.find((e) => e.value === r)?.label, T = w ? `Search by ${w}` : a;
|
|
5624
5615
|
return /* @__PURE__ */ v("div", {
|
|
5625
5616
|
className: I("mb-2 flex shrink-0 flex-wrap items-center gap-2", S),
|
|
@@ -5727,14 +5718,14 @@ function ra({ search: e, onSearchChange: t, searchScopes: n, searchScope: r, onS
|
|
|
5727
5718
|
}
|
|
5728
5719
|
//#endregion
|
|
5729
5720
|
//#region ../../react-app/src/components/transactions/types.ts
|
|
5730
|
-
var
|
|
5731
|
-
function
|
|
5721
|
+
var ra = /* @__PURE__ */ F({}), ia = "–";
|
|
5722
|
+
function aa({ children: e }) {
|
|
5732
5723
|
return /* @__PURE__ */ _("span", {
|
|
5733
5724
|
className: "text-muted-foreground",
|
|
5734
5725
|
children: e
|
|
5735
5726
|
});
|
|
5736
5727
|
}
|
|
5737
|
-
var
|
|
5728
|
+
var oa = [
|
|
5738
5729
|
{
|
|
5739
5730
|
id: "date",
|
|
5740
5731
|
header: "Date",
|
|
@@ -5746,18 +5737,18 @@ var sa = [
|
|
|
5746
5737
|
{
|
|
5747
5738
|
id: "opening",
|
|
5748
5739
|
header: "Opening Balance",
|
|
5749
|
-
cell: (e) => e.openingBalance ?? /* @__PURE__ */ _(
|
|
5740
|
+
cell: (e) => e.openingBalance ?? /* @__PURE__ */ _(aa, { children: ia })
|
|
5750
5741
|
},
|
|
5751
5742
|
{
|
|
5752
5743
|
id: "closing",
|
|
5753
5744
|
header: "Closing Balance",
|
|
5754
|
-
cell: (e) => e.closingBalance ?? /* @__PURE__ */ _(
|
|
5745
|
+
cell: (e) => e.closingBalance ?? /* @__PURE__ */ _(aa, { children: ia })
|
|
5755
5746
|
},
|
|
5756
5747
|
{
|
|
5757
5748
|
id: "diff",
|
|
5758
5749
|
header: "Diff",
|
|
5759
5750
|
cell: (e) => {
|
|
5760
|
-
if (!e.diff) return /* @__PURE__ */ _(
|
|
5751
|
+
if (!e.diff) return /* @__PURE__ */ _(aa, { children: ia });
|
|
5761
5752
|
let t = e.diff.startsWith("-");
|
|
5762
5753
|
return /* @__PURE__ */ _("span", {
|
|
5763
5754
|
className: I("font-medium", e.diff === "$0.00" ? "text-muted-foreground" : t ? "text-rose-600 dark:text-rose-400" : "text-emerald-600 dark:text-emerald-400"),
|
|
@@ -5786,9 +5777,9 @@ var sa = [
|
|
|
5786
5777
|
cell: (e) => e.otherWithdrawals
|
|
5787
5778
|
}
|
|
5788
5779
|
];
|
|
5789
|
-
function
|
|
5780
|
+
function sa({ data: e, pageSize: t }) {
|
|
5790
5781
|
return /* @__PURE__ */ _(zr, {
|
|
5791
|
-
columns:
|
|
5782
|
+
columns: oa,
|
|
5792
5783
|
data: e,
|
|
5793
5784
|
getRowId: (e) => e.date,
|
|
5794
5785
|
pageSize: t
|
|
@@ -5796,8 +5787,8 @@ function ca({ data: e, pageSize: t }) {
|
|
|
5796
5787
|
}
|
|
5797
5788
|
//#endregion
|
|
5798
5789
|
//#region ../../react-app/src/components/reports/DonutChart.tsx
|
|
5799
|
-
var
|
|
5800
|
-
function
|
|
5790
|
+
var ca = 900;
|
|
5791
|
+
function la() {
|
|
5801
5792
|
let [e, t] = d(!1);
|
|
5802
5793
|
return o(() => {
|
|
5803
5794
|
if (typeof window > "u" || !window.matchMedia) return;
|
|
@@ -5807,8 +5798,8 @@ function ua() {
|
|
|
5807
5798
|
return e.addEventListener("change", n), () => e.removeEventListener("change", n);
|
|
5808
5799
|
}, []), e;
|
|
5809
5800
|
}
|
|
5810
|
-
function
|
|
5811
|
-
let s = e.reduce((e, t) => e + t.value, 0) || 1, c = 50 - n / 2, l = 2 * Math.PI * c, f =
|
|
5801
|
+
function ua({ segments: e, size: t = 148, thickness: n = 20, gap: r = 2, animate: i = !0, className: a }) {
|
|
5802
|
+
let s = e.reduce((e, t) => e + t.value, 0) || 1, c = 50 - n / 2, l = 2 * Math.PI * c, f = la(), p = i && !f, [m, h] = d(!p);
|
|
5812
5803
|
o(() => {
|
|
5813
5804
|
if (!p) {
|
|
5814
5805
|
h(!0);
|
|
@@ -5854,7 +5845,7 @@ function da({ segments: e, size: t = 148, thickness: n = 20, gap: r = 2, animate
|
|
|
5854
5845
|
onMouseLeave: () => b(null),
|
|
5855
5846
|
style: {
|
|
5856
5847
|
strokeDasharray: m ? `${i} ${l - i}` : `0 ${l}`,
|
|
5857
|
-
transition: p ? `stroke-dasharray ${o *
|
|
5848
|
+
transition: p ? `stroke-dasharray ${o * ca}ms linear ${a * ca}ms` : void 0
|
|
5858
5849
|
}
|
|
5859
5850
|
}, e.label);
|
|
5860
5851
|
})
|
|
@@ -5884,7 +5875,7 @@ function da({ segments: e, size: t = 148, thickness: n = 20, gap: r = 2, animate
|
|
|
5884
5875
|
}
|
|
5885
5876
|
//#endregion
|
|
5886
5877
|
//#region ../../react-app/src/components/reports/ExportHistoryList.tsx
|
|
5887
|
-
function
|
|
5878
|
+
function da({ label: e, onClick: t }) {
|
|
5888
5879
|
return /* @__PURE__ */ v(Fn, { children: [/* @__PURE__ */ _(In, {
|
|
5889
5880
|
asChild: !0,
|
|
5890
5881
|
children: /* @__PURE__ */ _(z, {
|
|
@@ -5903,7 +5894,7 @@ function fa({ label: e, onClick: t }) {
|
|
|
5903
5894
|
})
|
|
5904
5895
|
}), /* @__PURE__ */ _(Ln, { children: "Download" })] });
|
|
5905
5896
|
}
|
|
5906
|
-
function
|
|
5897
|
+
function fa({ entries: e, onDownload: t }) {
|
|
5907
5898
|
return /* @__PURE__ */ _(zr, {
|
|
5908
5899
|
columns: [
|
|
5909
5900
|
{
|
|
@@ -5938,7 +5929,7 @@ function pa({ entries: e, onDownload: t }) {
|
|
|
5938
5929
|
header: "",
|
|
5939
5930
|
align: "end",
|
|
5940
5931
|
headClassName: "w-12",
|
|
5941
|
-
cell: (e) => /* @__PURE__ */ _(
|
|
5932
|
+
cell: (e) => /* @__PURE__ */ _(da, {
|
|
5942
5933
|
label: e.file,
|
|
5943
5934
|
onClick: () => t?.(e)
|
|
5944
5935
|
})
|
|
@@ -5950,15 +5941,15 @@ function pa({ entries: e, onDownload: t }) {
|
|
|
5950
5941
|
}
|
|
5951
5942
|
//#endregion
|
|
5952
5943
|
//#region ../../react-app/src/components/reports/presets.ts
|
|
5953
|
-
var
|
|
5954
|
-
ACCOUNT_START: () =>
|
|
5955
|
-
PRESETS: () =>
|
|
5956
|
-
REFERENCE_TODAY: () =>
|
|
5957
|
-
presetPeriod: () =>
|
|
5958
|
-
}),
|
|
5944
|
+
var pa = /* @__PURE__ */ F({
|
|
5945
|
+
ACCOUNT_START: () => ha,
|
|
5946
|
+
PRESETS: () => _a,
|
|
5947
|
+
REFERENCE_TODAY: () => ma,
|
|
5948
|
+
presetPeriod: () => va
|
|
5949
|
+
}), ma = new Date(2026, 6, 15), ha = new Date(2024, 0, 1), ga = (e) => (t) => ({
|
|
5959
5950
|
from: N(t, e - 1),
|
|
5960
5951
|
to: t
|
|
5961
|
-
}),
|
|
5952
|
+
}), _a = [
|
|
5962
5953
|
{
|
|
5963
5954
|
id: "today",
|
|
5964
5955
|
label: "Today",
|
|
@@ -5986,22 +5977,22 @@ var ma = /* @__PURE__ */ F({
|
|
|
5986
5977
|
{
|
|
5987
5978
|
id: "last-7",
|
|
5988
5979
|
label: "Last 7 days",
|
|
5989
|
-
range:
|
|
5980
|
+
range: ga(7)
|
|
5990
5981
|
},
|
|
5991
5982
|
{
|
|
5992
5983
|
id: "last-14",
|
|
5993
5984
|
label: "Last 14 days",
|
|
5994
|
-
range:
|
|
5985
|
+
range: ga(14)
|
|
5995
5986
|
},
|
|
5996
5987
|
{
|
|
5997
5988
|
id: "last-28",
|
|
5998
5989
|
label: "Last 28 days",
|
|
5999
|
-
range:
|
|
5990
|
+
range: ga(28)
|
|
6000
5991
|
},
|
|
6001
5992
|
{
|
|
6002
5993
|
id: "last-30",
|
|
6003
5994
|
label: "Last 30 days",
|
|
6004
|
-
range:
|
|
5995
|
+
range: ga(30)
|
|
6005
5996
|
},
|
|
6006
5997
|
{
|
|
6007
5998
|
id: "this-week",
|
|
@@ -6045,12 +6036,12 @@ var ma = /* @__PURE__ */ F({
|
|
|
6045
6036
|
id: "maximum",
|
|
6046
6037
|
label: "Maximum",
|
|
6047
6038
|
range: (e) => ({
|
|
6048
|
-
from:
|
|
6039
|
+
from: ha,
|
|
6049
6040
|
to: e
|
|
6050
6041
|
})
|
|
6051
6042
|
}
|
|
6052
6043
|
];
|
|
6053
|
-
function
|
|
6044
|
+
function va(e, t = ma) {
|
|
6054
6045
|
let { from: n, to: r } = e.range(t);
|
|
6055
6046
|
return {
|
|
6056
6047
|
mode: "range",
|
|
@@ -6061,7 +6052,7 @@ function ya(e, t = ha) {
|
|
|
6061
6052
|
}
|
|
6062
6053
|
//#endregion
|
|
6063
6054
|
//#region ../../react-app/src/components/reports/PeriodPicker.tsx
|
|
6064
|
-
var
|
|
6055
|
+
var ya = [
|
|
6065
6056
|
"Jan",
|
|
6066
6057
|
"Feb",
|
|
6067
6058
|
"Mar",
|
|
@@ -6074,7 +6065,7 @@ var ba = [
|
|
|
6074
6065
|
"Oct",
|
|
6075
6066
|
"Nov",
|
|
6076
6067
|
"Dec"
|
|
6077
|
-
],
|
|
6068
|
+
], ba = {
|
|
6078
6069
|
root: "w-full",
|
|
6079
6070
|
nav: "absolute inset-x-0 top-0 flex items-center justify-between px-1",
|
|
6080
6071
|
caption_label: "text-sm font-semibold text-foreground",
|
|
@@ -6086,23 +6077,23 @@ var ba = [
|
|
|
6086
6077
|
size: "icon"
|
|
6087
6078
|
}), "mx-auto size-8 cursor-pointer rounded-md text-sm font-normal")
|
|
6088
6079
|
};
|
|
6089
|
-
function
|
|
6080
|
+
function xa(e) {
|
|
6090
6081
|
return e.mode === "month" ? e.month : e.from;
|
|
6091
6082
|
}
|
|
6092
|
-
function
|
|
6083
|
+
function Sa(e) {
|
|
6093
6084
|
if (e.mode === "month") return j(e.month, "MMMM yyyy");
|
|
6094
6085
|
if (e.label) return e.label;
|
|
6095
6086
|
let t = e.from.getFullYear() === e.to.getFullYear();
|
|
6096
6087
|
return `${j(e.from, t ? "MMM d" : "MMM d, yyyy")} – ${j(e.to, "MMM d, yyyy")}`;
|
|
6097
6088
|
}
|
|
6098
|
-
function
|
|
6089
|
+
function Ca({ value: e, onPick: t, onPreview: n }) {
|
|
6099
6090
|
return /* @__PURE__ */ _(cn, {
|
|
6100
6091
|
className: "h-full w-44 shrink-0 border-r border-cb-line",
|
|
6101
6092
|
viewportClassName: "p-2",
|
|
6102
6093
|
onMouseLeave: () => n(null),
|
|
6103
6094
|
children: /* @__PURE__ */ _("div", {
|
|
6104
6095
|
className: "flex flex-col gap-0.5",
|
|
6105
|
-
children:
|
|
6096
|
+
children: _a.map((r) => /* @__PURE__ */ _("button", {
|
|
6106
6097
|
type: "button",
|
|
6107
6098
|
onClick: () => t(r),
|
|
6108
6099
|
onMouseEnter: () => n(r),
|
|
@@ -6112,7 +6103,7 @@ function wa({ value: e, onPick: t, onPreview: n }) {
|
|
|
6112
6103
|
})
|
|
6113
6104
|
});
|
|
6114
6105
|
}
|
|
6115
|
-
function
|
|
6106
|
+
function wa({ draftMonth: e, today: t, onSelect: n }) {
|
|
6116
6107
|
let [r, i] = d(() => (e ?? t).getFullYear());
|
|
6117
6108
|
return /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ v("div", {
|
|
6118
6109
|
className: "mb-3 flex items-center justify-between px-1",
|
|
@@ -6150,7 +6141,7 @@ function Ta({ draftMonth: e, today: t, onSelect: n }) {
|
|
|
6150
6141
|
]
|
|
6151
6142
|
}), /* @__PURE__ */ _("div", {
|
|
6152
6143
|
className: "grid grid-cols-4 gap-1.5",
|
|
6153
|
-
children:
|
|
6144
|
+
children: ya.map((t, i) => /* @__PURE__ */ _("button", {
|
|
6154
6145
|
type: "button",
|
|
6155
6146
|
onClick: () => n(new Date(r, i, 1)),
|
|
6156
6147
|
className: I("h-11 cursor-pointer rounded-md text-sm font-medium text-foreground transition-colors hover:bg-muted", !!e && e.getFullYear() === r && e.getMonth() === i && "bg-primary text-primary-foreground hover:bg-primary"),
|
|
@@ -6158,8 +6149,8 @@ function Ta({ draftMonth: e, today: t, onSelect: n }) {
|
|
|
6158
6149
|
}, t))
|
|
6159
6150
|
})] });
|
|
6160
6151
|
}
|
|
6161
|
-
function
|
|
6162
|
-
let [i, a] = d(e.mode === "month" ? "month" : "range"), [o, s] = d(e.mode === "month" ? e.month : oe(
|
|
6152
|
+
function Ta({ value: e, today: t, onChange: n, onReset: r }) {
|
|
6153
|
+
let [i, a] = d(e.mode === "month" ? "month" : "range"), [o, s] = d(e.mode === "month" ? e.month : oe(xa(e))), [c, l] = d(e.mode === "range" ? {
|
|
6163
6154
|
from: e.from,
|
|
6164
6155
|
to: e.to
|
|
6165
6156
|
} : void 0), [u, f] = d(null), p = !!c?.from && !!c?.to, m = i === "month" || p;
|
|
@@ -6178,9 +6169,9 @@ function Ea({ value: e, today: t, onChange: n, onReset: r }) {
|
|
|
6178
6169
|
}
|
|
6179
6170
|
return /* @__PURE__ */ v("div", {
|
|
6180
6171
|
className: "flex h-[360px]",
|
|
6181
|
-
children: [/* @__PURE__ */ _(
|
|
6172
|
+
children: [/* @__PURE__ */ _(Ca, {
|
|
6182
6173
|
value: e,
|
|
6183
|
-
onPick: (e) => n(
|
|
6174
|
+
onPick: (e) => n(va(e, t)),
|
|
6184
6175
|
onPreview: h
|
|
6185
6176
|
}), /* @__PURE__ */ v("div", {
|
|
6186
6177
|
className: "flex h-full w-72 flex-col p-3",
|
|
@@ -6204,7 +6195,7 @@ function Ea({ value: e, today: t, onChange: n, onReset: r }) {
|
|
|
6204
6195
|
/* @__PURE__ */ _(Nn, {
|
|
6205
6196
|
value: "month",
|
|
6206
6197
|
className: "mt-1 flex-1",
|
|
6207
|
-
children: /* @__PURE__ */ _(
|
|
6198
|
+
children: /* @__PURE__ */ _(wa, {
|
|
6208
6199
|
draftMonth: o,
|
|
6209
6200
|
today: t,
|
|
6210
6201
|
onSelect: s
|
|
@@ -6219,9 +6210,9 @@ function Ea({ value: e, today: t, onChange: n, onReset: r }) {
|
|
|
6219
6210
|
onSelect: (e) => {
|
|
6220
6211
|
f(null), l(e);
|
|
6221
6212
|
},
|
|
6222
|
-
defaultMonth:
|
|
6213
|
+
defaultMonth: xa(e),
|
|
6223
6214
|
className: "w-full p-0",
|
|
6224
|
-
classNames:
|
|
6215
|
+
classNames: ba
|
|
6225
6216
|
})
|
|
6226
6217
|
})
|
|
6227
6218
|
]
|
|
@@ -6242,7 +6233,7 @@ function Ea({ value: e, today: t, onChange: n, onReset: r }) {
|
|
|
6242
6233
|
})]
|
|
6243
6234
|
});
|
|
6244
6235
|
}
|
|
6245
|
-
function
|
|
6236
|
+
function Ea({ value: e, onChange: t, today: n = ma, className: r }) {
|
|
6246
6237
|
let [i, a] = d(!1);
|
|
6247
6238
|
function o(n) {
|
|
6248
6239
|
if (e.mode === "month") t({
|
|
@@ -6274,12 +6265,12 @@ function Da({ value: e, onChange: t, today: n = ha, className: r }) {
|
|
|
6274
6265
|
color: "currentColor",
|
|
6275
6266
|
strokeWidth: 2,
|
|
6276
6267
|
className: "text-muted-foreground"
|
|
6277
|
-
}),
|
|
6268
|
+
}), Sa(e)]
|
|
6278
6269
|
})
|
|
6279
6270
|
}), /* @__PURE__ */ _(rn, {
|
|
6280
6271
|
align: "end",
|
|
6281
6272
|
className: "w-auto p-0",
|
|
6282
|
-
children: /* @__PURE__ */ _(
|
|
6273
|
+
children: /* @__PURE__ */ _(Ta, {
|
|
6283
6274
|
value: e,
|
|
6284
6275
|
today: n,
|
|
6285
6276
|
onChange: (e) => {
|
|
@@ -6323,25 +6314,25 @@ function Da({ value: e, onChange: t, today: n = ha, className: r }) {
|
|
|
6323
6314
|
}
|
|
6324
6315
|
//#endregion
|
|
6325
6316
|
//#region ../../react-app/src/components/reports/data.ts
|
|
6326
|
-
var
|
|
6327
|
-
ASSET_COLORS: () =>
|
|
6328
|
-
ASSET_COLOR_FALLBACK: () =>
|
|
6329
|
-
DAILY_BALANCES: () =>
|
|
6330
|
-
EXPORT_HISTORY: () =>
|
|
6331
|
-
REPORT_SUMMARIES: () =>
|
|
6332
|
-
assetColor: () =>
|
|
6333
|
-
}),
|
|
6317
|
+
var Da = /* @__PURE__ */ F({
|
|
6318
|
+
ASSET_COLORS: () => Oa,
|
|
6319
|
+
ASSET_COLOR_FALLBACK: () => ka,
|
|
6320
|
+
DAILY_BALANCES: () => Ma,
|
|
6321
|
+
EXPORT_HISTORY: () => Na,
|
|
6322
|
+
REPORT_SUMMARIES: () => ja,
|
|
6323
|
+
assetColor: () => Aa
|
|
6324
|
+
}), Oa = {
|
|
6334
6325
|
USDT: "#2B7DE7",
|
|
6335
6326
|
USDC: "#38BDF8",
|
|
6336
6327
|
BTC: "#3730A3",
|
|
6337
6328
|
ETH: "#7C6BF5",
|
|
6338
6329
|
SOL: "#22D3EE",
|
|
6339
6330
|
XRP: "#C4B5FD"
|
|
6340
|
-
},
|
|
6341
|
-
function
|
|
6342
|
-
return
|
|
6331
|
+
}, ka = "#94A3B8";
|
|
6332
|
+
function Aa(e) {
|
|
6333
|
+
return Oa[e] ?? "#94A3B8";
|
|
6343
6334
|
}
|
|
6344
|
-
var
|
|
6335
|
+
var ja = [
|
|
6345
6336
|
{
|
|
6346
6337
|
label: "Total Volume",
|
|
6347
6338
|
total: "$1,284.60",
|
|
@@ -6428,7 +6419,7 @@ var Ma = [
|
|
|
6428
6419
|
}
|
|
6429
6420
|
]
|
|
6430
6421
|
}
|
|
6431
|
-
],
|
|
6422
|
+
], Ma = [
|
|
6432
6423
|
{
|
|
6433
6424
|
date: "2026-07-02",
|
|
6434
6425
|
openingBalance: null,
|
|
@@ -6459,7 +6450,7 @@ var Ma = [
|
|
|
6459
6450
|
otherDeposits: "$0.00",
|
|
6460
6451
|
otherWithdrawals: "$0.00"
|
|
6461
6452
|
}
|
|
6462
|
-
],
|
|
6453
|
+
], Na = [
|
|
6463
6454
|
{
|
|
6464
6455
|
id: "daily-balances-jun-2026",
|
|
6465
6456
|
file: "daily-balances-jun-2026.csv",
|
|
@@ -6481,7 +6472,7 @@ var Ma = [
|
|
|
6481
6472
|
];
|
|
6482
6473
|
//#endregion
|
|
6483
6474
|
//#region ../../react-app/src/components/reports/ReportSummaryCard.tsx
|
|
6484
|
-
function
|
|
6475
|
+
function Pa({ summary: e }) {
|
|
6485
6476
|
return /* @__PURE__ */ _("div", {
|
|
6486
6477
|
className: "flex flex-wrap justify-center gap-x-4 gap-y-1.5",
|
|
6487
6478
|
children: e.slices.map((e) => /* @__PURE__ */ v("span", {
|
|
@@ -6489,7 +6480,7 @@ function Fa({ summary: e }) {
|
|
|
6489
6480
|
children: [
|
|
6490
6481
|
/* @__PURE__ */ _("span", {
|
|
6491
6482
|
className: "size-2 shrink-0 rounded-full",
|
|
6492
|
-
style: { backgroundColor:
|
|
6483
|
+
style: { backgroundColor: Aa(e.code) }
|
|
6493
6484
|
}),
|
|
6494
6485
|
/* @__PURE__ */ _("span", {
|
|
6495
6486
|
className: "text-muted-foreground",
|
|
@@ -6503,11 +6494,11 @@ function Fa({ summary: e }) {
|
|
|
6503
6494
|
}, e.code))
|
|
6504
6495
|
});
|
|
6505
6496
|
}
|
|
6506
|
-
function
|
|
6497
|
+
function Fa({ summary: e, emphasized: t = !0, className: n }) {
|
|
6507
6498
|
let r = e.slices.map((e) => ({
|
|
6508
6499
|
label: e.code,
|
|
6509
6500
|
value: e.percent,
|
|
6510
|
-
color:
|
|
6501
|
+
color: Aa(e.code),
|
|
6511
6502
|
detail: e.amount ? `${e.amount} · ${e.percent}%` : `${e.percent}%`
|
|
6512
6503
|
}));
|
|
6513
6504
|
return /* @__PURE__ */ v("div", {
|
|
@@ -6523,19 +6514,19 @@ function Ia({ summary: e, emphasized: t = !0, className: n }) {
|
|
|
6523
6514
|
}),
|
|
6524
6515
|
/* @__PURE__ */ _("div", {
|
|
6525
6516
|
className: "mt-4 flex justify-center",
|
|
6526
|
-
children: /* @__PURE__ */ _(
|
|
6517
|
+
children: /* @__PURE__ */ _(ua, { segments: r })
|
|
6527
6518
|
}),
|
|
6528
6519
|
/* @__PURE__ */ _("div", {
|
|
6529
6520
|
className: "mt-5",
|
|
6530
|
-
children: /* @__PURE__ */ _(
|
|
6521
|
+
children: /* @__PURE__ */ _(Pa, { summary: e })
|
|
6531
6522
|
})
|
|
6532
6523
|
]
|
|
6533
6524
|
});
|
|
6534
6525
|
}
|
|
6535
|
-
function
|
|
6526
|
+
function Ia({ summaries: e, className: t }) {
|
|
6536
6527
|
return /* @__PURE__ */ _("div", {
|
|
6537
6528
|
className: I("grid grid-cols-1 divide-y divide-cb-line rounded-2xl border border-cb-line bg-cb-card shadow-xs lg:grid-cols-3 lg:divide-x lg:divide-y-0", t),
|
|
6538
|
-
children: e.map((e, t) => /* @__PURE__ */ _(
|
|
6529
|
+
children: e.map((e, t) => /* @__PURE__ */ _(Fa, {
|
|
6539
6530
|
summary: e,
|
|
6540
6531
|
emphasized: t === 0
|
|
6541
6532
|
}, e.label))
|
|
@@ -6543,7 +6534,7 @@ function La({ summaries: e, className: t }) {
|
|
|
6543
6534
|
}
|
|
6544
6535
|
//#endregion
|
|
6545
6536
|
//#region ../../react-app/src/components/reports/ReportsSummaryEmpty.tsx
|
|
6546
|
-
function
|
|
6537
|
+
function La({ className: e }) {
|
|
6547
6538
|
return /* @__PURE__ */ v("div", {
|
|
6548
6539
|
className: I("flex flex-col items-center justify-center gap-3 rounded-2xl border border-cb-line bg-cb-card px-6 py-16 text-center shadow-xs", e),
|
|
6549
6540
|
children: [/* @__PURE__ */ _("div", {
|
|
@@ -6565,18 +6556,18 @@ function Ra({ className: e }) {
|
|
|
6565
6556
|
}
|
|
6566
6557
|
//#endregion
|
|
6567
6558
|
//#region ../../react-app/src/components/reports/types.ts
|
|
6568
|
-
var
|
|
6569
|
-
default: () =>
|
|
6570
|
-
getReportData: () =>
|
|
6571
|
-
}),
|
|
6559
|
+
var Ra = /* @__PURE__ */ F({}), za = /* @__PURE__ */ F({
|
|
6560
|
+
default: () => eo,
|
|
6561
|
+
getReportData: () => eo
|
|
6562
|
+
}), Ba = [
|
|
6572
6563
|
"USDT",
|
|
6573
6564
|
"USDC",
|
|
6574
6565
|
"BTC",
|
|
6575
6566
|
"ETH",
|
|
6576
6567
|
"SOL",
|
|
6577
6568
|
"XRP"
|
|
6578
|
-
],
|
|
6579
|
-
function
|
|
6569
|
+
], Va = ha, Ha = ma;
|
|
6570
|
+
function Ua(e) {
|
|
6580
6571
|
let t = e >>> 0;
|
|
6581
6572
|
return () => {
|
|
6582
6573
|
t |= 0, t = t + 1831565813 | 0;
|
|
@@ -6584,12 +6575,12 @@ function Wa(e) {
|
|
|
6584
6575
|
return e = e + Math.imul(e ^ e >>> 7, 61 | e) ^ e, ((e ^ e >>> 14) >>> 0) / 4294967296;
|
|
6585
6576
|
};
|
|
6586
6577
|
}
|
|
6587
|
-
function
|
|
6578
|
+
function Wa(e) {
|
|
6588
6579
|
if (e.mode === "month") return e.month.getFullYear() * 100 + (e.month.getMonth() + 1);
|
|
6589
6580
|
let t = 864e5, n = Math.floor(e.from.getTime() / t), r = Math.floor(e.to.getTime() / t);
|
|
6590
6581
|
return n % 1e5 * 1e3 + r % 1e3;
|
|
6591
6582
|
}
|
|
6592
|
-
function
|
|
6583
|
+
function Ga(e) {
|
|
6593
6584
|
return e.mode === "month" ? {
|
|
6594
6585
|
start: oe(e.month),
|
|
6595
6586
|
end: k(e.month)
|
|
@@ -6607,16 +6598,16 @@ function Q(e) {
|
|
|
6607
6598
|
maximumFractionDigits: 2
|
|
6608
6599
|
})}`;
|
|
6609
6600
|
}
|
|
6610
|
-
function
|
|
6601
|
+
function Ka(e) {
|
|
6611
6602
|
return Math.round(e).toLocaleString("en-US");
|
|
6612
6603
|
}
|
|
6613
|
-
function
|
|
6604
|
+
function qa(e, t) {
|
|
6614
6605
|
let n = t.reduce((e, t) => e + t, 0) || 1, r = t.map((t) => Math.round(e * t * 100 / n)), i = Math.round(e * 100) - r.reduce((e, t) => e + t, 0), a = 0;
|
|
6615
6606
|
return r.forEach((e, t) => {
|
|
6616
6607
|
e > r[a] && (a = t);
|
|
6617
6608
|
}), r[a] += i, r.map((e) => e / 100);
|
|
6618
6609
|
}
|
|
6619
|
-
function
|
|
6610
|
+
function Ja(e, t) {
|
|
6620
6611
|
let n = t.reduce((e, t) => e + t, 0) || 1, r = t.map((t) => e * t / n), i = r.map(Math.floor), a = e - i.reduce((e, t) => e + t, 0), o = r.map((e, t) => ({
|
|
6621
6612
|
i: t,
|
|
6622
6613
|
frac: e - Math.floor(e)
|
|
@@ -6624,7 +6615,7 @@ function Ya(e, t) {
|
|
|
6624
6615
|
for (let e = 0; e < a && e < o.length; e++) s[o[e].i]++;
|
|
6625
6616
|
return s;
|
|
6626
6617
|
}
|
|
6627
|
-
function
|
|
6618
|
+
function Ya(e, t) {
|
|
6628
6619
|
if (t <= 0) return e.map(() => 0);
|
|
6629
6620
|
let n = e.map((e) => e / t * 100), r = n.map(Math.floor), i = 100 - r.reduce((e, t) => e + t, 0), a = n.map((e, t) => ({
|
|
6630
6621
|
i: t,
|
|
@@ -6633,8 +6624,8 @@ function Xa(e, t) {
|
|
|
6633
6624
|
for (let e = 0; e < i && e < a.length; e++) o[a[e].i]++;
|
|
6634
6625
|
return o;
|
|
6635
6626
|
}
|
|
6636
|
-
function
|
|
6637
|
-
let i =
|
|
6627
|
+
function Xa(e, t, n, r) {
|
|
6628
|
+
let i = Ya(n, t), a = Ba.map((e, t) => ({
|
|
6638
6629
|
code: e,
|
|
6639
6630
|
percent: i[t],
|
|
6640
6631
|
amount: r(n[t])
|
|
@@ -6645,7 +6636,7 @@ function Za(e, t, n, r) {
|
|
|
6645
6636
|
slices: a
|
|
6646
6637
|
};
|
|
6647
6638
|
}
|
|
6648
|
-
function
|
|
6639
|
+
function Za(e) {
|
|
6649
6640
|
return e === "transactions" ? [
|
|
6650
6641
|
"Total Transactions",
|
|
6651
6642
|
"Total Deposits",
|
|
@@ -6656,15 +6647,15 @@ function Qa(e) {
|
|
|
6656
6647
|
"Total Withdrawals"
|
|
6657
6648
|
];
|
|
6658
6649
|
}
|
|
6659
|
-
function
|
|
6650
|
+
function Qa(e) {
|
|
6660
6651
|
let t = e === "transactions" ? "0" : "$0.00";
|
|
6661
|
-
return
|
|
6652
|
+
return Za(e).map((e) => ({
|
|
6662
6653
|
label: e,
|
|
6663
6654
|
total: t,
|
|
6664
6655
|
slices: []
|
|
6665
6656
|
}));
|
|
6666
6657
|
}
|
|
6667
|
-
function
|
|
6658
|
+
function $a(e, t, n) {
|
|
6668
6659
|
let r = (e) => n() < e, i = re({
|
|
6669
6660
|
start: e,
|
|
6670
6661
|
end: t
|
|
@@ -6683,40 +6674,40 @@ function eo(e, t, n) {
|
|
|
6683
6674
|
return a = l, u;
|
|
6684
6675
|
}).reverse();
|
|
6685
6676
|
}
|
|
6686
|
-
function
|
|
6687
|
-
let { start: n, end: r } =
|
|
6677
|
+
function eo(e, t = "volume") {
|
|
6678
|
+
let { start: n, end: r } = Ga(e), i = ie([n, Va]), a = M([r, Ha]), o = a >= i ? ne(a, i) + 1 : 0;
|
|
6688
6679
|
if (o <= 0) return {
|
|
6689
6680
|
isEmpty: !0,
|
|
6690
|
-
summaries:
|
|
6681
|
+
summaries: Qa(t),
|
|
6691
6682
|
dailyBalances: []
|
|
6692
6683
|
};
|
|
6693
|
-
let s =
|
|
6684
|
+
let s = $a(i, a, Ua(Wa(e))), c = Ua(Wa(e) + (t === "transactions" ? 4242 : 0)), l = Ba.map(() => c() + .1), u = Ba.map(() => c() + .1), [d, f, p] = Za(t);
|
|
6694
6685
|
if (t === "transactions") {
|
|
6695
|
-
let e = Math.max(1, Math.round(o * (6 + c() * 8))), t = Math.round(e * (.2 + c() * .3)), n =
|
|
6686
|
+
let e = Math.max(1, Math.round(o * (6 + c() * 8))), t = Math.round(e * (.2 + c() * .3)), n = Ja(e, l), r = Ja(t, u), i = n.map((e, t) => e + r[t]);
|
|
6696
6687
|
return {
|
|
6697
6688
|
isEmpty: !1,
|
|
6698
6689
|
summaries: [
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6690
|
+
Xa(d, e + t, i, Ka),
|
|
6691
|
+
Xa(f, e, n, Ka),
|
|
6692
|
+
Xa(p, t, r, Ka)
|
|
6702
6693
|
],
|
|
6703
6694
|
dailyBalances: s
|
|
6704
6695
|
};
|
|
6705
6696
|
}
|
|
6706
|
-
let m = Z(o * (8 + c() * 6)), h = Z(m * (.15 + c() * .22)), g =
|
|
6697
|
+
let m = Z(o * (8 + c() * 6)), h = Z(m * (.15 + c() * .22)), g = qa(m, l), _ = qa(h, u), v = g.map((e, t) => Z(e + _[t]));
|
|
6707
6698
|
return {
|
|
6708
6699
|
isEmpty: !1,
|
|
6709
6700
|
summaries: [
|
|
6710
|
-
|
|
6711
|
-
|
|
6712
|
-
|
|
6701
|
+
Xa(d, Z(m + h), v, Q),
|
|
6702
|
+
Xa(f, m, g, Q),
|
|
6703
|
+
Xa(p, h, _, Q)
|
|
6713
6704
|
],
|
|
6714
6705
|
dailyBalances: s
|
|
6715
6706
|
};
|
|
6716
6707
|
}
|
|
6717
6708
|
//#endregion
|
|
6718
6709
|
//#region ../../react-app/src/components/balances/WalletRowActions.tsx
|
|
6719
|
-
var
|
|
6710
|
+
var to = [
|
|
6720
6711
|
{
|
|
6721
6712
|
id: "withdraw",
|
|
6722
6713
|
label: "Withdraw",
|
|
@@ -6733,10 +6724,10 @@ var no = [
|
|
|
6733
6724
|
icon: Ce
|
|
6734
6725
|
}
|
|
6735
6726
|
];
|
|
6736
|
-
function
|
|
6727
|
+
function no({ variant: e = "menu", label: t, onAction: n }) {
|
|
6737
6728
|
return e === "icons" ? /* @__PURE__ */ _("div", {
|
|
6738
6729
|
className: "flex items-center justify-end gap-0.5",
|
|
6739
|
-
children:
|
|
6730
|
+
children: to.map(({ id: e, label: r, icon: i }) => /* @__PURE__ */ v(Fn, { children: [/* @__PURE__ */ _(In, {
|
|
6740
6731
|
asChild: !0,
|
|
6741
6732
|
children: /* @__PURE__ */ _(z, {
|
|
6742
6733
|
variant: "ghost",
|
|
@@ -6771,7 +6762,7 @@ function ro({ variant: e = "menu", label: t, onAction: n }) {
|
|
|
6771
6762
|
}), /* @__PURE__ */ _(It, {
|
|
6772
6763
|
align: "end",
|
|
6773
6764
|
className: "min-w-[11rem] p-1.5",
|
|
6774
|
-
children:
|
|
6765
|
+
children: to.map(({ id: e, label: t, icon: r }) => /* @__PURE__ */ v(Lt, {
|
|
6775
6766
|
onSelect: () => n?.(e),
|
|
6776
6767
|
className: "cursor-pointer gap-2.5 rounded-md px-2.5 py-2 text-sm",
|
|
6777
6768
|
children: [/* @__PURE__ */ _(x, {
|
|
@@ -6787,58 +6778,58 @@ function ro({ variant: e = "menu", label: t, onAction: n }) {
|
|
|
6787
6778
|
}
|
|
6788
6779
|
//#endregion
|
|
6789
6780
|
//#region ../../react-app/src/components/balances/WalletBalancesTable.tsx
|
|
6790
|
-
var
|
|
6781
|
+
var ro = (e) => e && parseFloat(e.replace(/[^0-9.-]/g, "")) || 0, io = (e) => {
|
|
6791
6782
|
let t = e.indexOf(".");
|
|
6792
6783
|
return t < 0 ? 0 : e.length - t - 1;
|
|
6793
|
-
},
|
|
6784
|
+
}, ao = (e, t) => e.toLocaleString("en-US", {
|
|
6794
6785
|
minimumFractionDigits: t,
|
|
6795
6786
|
maximumFractionDigits: t
|
|
6796
|
-
}),
|
|
6787
|
+
}), oo = (e) => e.toLocaleString("en-US", {
|
|
6797
6788
|
style: "currency",
|
|
6798
6789
|
currency: "USD"
|
|
6799
|
-
}),
|
|
6800
|
-
function
|
|
6790
|
+
}), so = (e) => e.name.toLowerCase().includes("payout");
|
|
6791
|
+
function co(e, t) {
|
|
6801
6792
|
let n = e.filter(Boolean);
|
|
6802
6793
|
if (n.length === 0) return;
|
|
6803
|
-
let r = n.reduce((e, t) => e +
|
|
6794
|
+
let r = n.reduce((e, t) => e + ro(t.pending), 0);
|
|
6804
6795
|
return {
|
|
6805
|
-
amount:
|
|
6806
|
-
fiat:
|
|
6807
|
-
pending: r > 0 ?
|
|
6808
|
-
pendingFiat: r > 0 ?
|
|
6796
|
+
amount: ao(n.reduce((e, t) => e + ro(t.amount), 0), t),
|
|
6797
|
+
fiat: oo(n.reduce((e, t) => e + ro(t.amountFiat), 0)),
|
|
6798
|
+
pending: r > 0 ? ao(r, t) : void 0,
|
|
6799
|
+
pendingFiat: r > 0 ? oo(n.reduce((e, t) => e + ro(t.pendingFiat), 0)) : void 0
|
|
6809
6800
|
};
|
|
6810
6801
|
}
|
|
6811
|
-
var
|
|
6812
|
-
let t = e?.note ?
|
|
6813
|
-
return t > 0 &&
|
|
6802
|
+
var lo = (e) => {
|
|
6803
|
+
let t = e?.note ? ro(e.note) : 0;
|
|
6804
|
+
return t > 0 && ro(e?.amountFiat) < t;
|
|
6814
6805
|
};
|
|
6815
|
-
function
|
|
6816
|
-
let t =
|
|
6817
|
-
for (let t of e.wallets) r[t.network] || (r[t.network] = { networkName: t.networkName }, n.push(t.network)),
|
|
6806
|
+
function uo(e) {
|
|
6807
|
+
let t = io(e.wallets[0]?.amount ?? "0"), n = [], r = {};
|
|
6808
|
+
for (let t of e.wallets) r[t.network] || (r[t.network] = { networkName: t.networkName }, n.push(t.network)), so(t) ? r[t.network].payout = t : r[t.network].main = t;
|
|
6818
6809
|
let i = n.map((e) => {
|
|
6819
6810
|
let n = r[e];
|
|
6820
6811
|
return {
|
|
6821
6812
|
network: e,
|
|
6822
6813
|
networkName: n.networkName,
|
|
6823
|
-
main:
|
|
6824
|
-
payout:
|
|
6825
|
-
total:
|
|
6826
|
-
belowMin:
|
|
6814
|
+
main: co([n.main], t),
|
|
6815
|
+
payout: co([n.payout], t),
|
|
6816
|
+
total: co([n.main, n.payout], t),
|
|
6817
|
+
belowMin: lo(n.main) || lo(n.payout)
|
|
6827
6818
|
};
|
|
6828
6819
|
}), a = {
|
|
6829
|
-
amount:
|
|
6830
|
-
fiat:
|
|
6820
|
+
amount: ao(0, t),
|
|
6821
|
+
fiat: oo(0)
|
|
6831
6822
|
};
|
|
6832
6823
|
return {
|
|
6833
6824
|
code: e.code,
|
|
6834
6825
|
networkCount: n.length,
|
|
6835
|
-
main:
|
|
6836
|
-
payout:
|
|
6837
|
-
total:
|
|
6826
|
+
main: co(e.wallets.filter((e) => !so(e)), t) ?? a,
|
|
6827
|
+
payout: co(e.wallets.filter(so), t) ?? a,
|
|
6828
|
+
total: co(e.wallets, t),
|
|
6838
6829
|
networks: i
|
|
6839
6830
|
};
|
|
6840
6831
|
}
|
|
6841
|
-
function
|
|
6832
|
+
function fo({ money: e, code: t, strong: n = !1, large: r = !1, muted: i = !1, align: a = "end" }) {
|
|
6842
6833
|
return e ? /* @__PURE__ */ _(G, {
|
|
6843
6834
|
align: a,
|
|
6844
6835
|
tabularNums: !0,
|
|
@@ -6864,7 +6855,7 @@ function po({ money: e, code: t, strong: n = !1, large: r = !1, muted: i = !1, a
|
|
|
6864
6855
|
})
|
|
6865
6856
|
});
|
|
6866
6857
|
}
|
|
6867
|
-
function
|
|
6858
|
+
function po({ balances: e, actionsVariant: t = "menu", className: r }) {
|
|
6868
6859
|
let { setExtension: i, stickyTop: a } = Er(), s = u(null), [c, l] = d(/* @__PURE__ */ new Set()), f = (e) => l((t) => {
|
|
6869
6860
|
let n = new Set(t);
|
|
6870
6861
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
@@ -6884,7 +6875,7 @@ function mo({ balances: e, actionsVariant: t = "menu", className: r }) {
|
|
|
6884
6875
|
n.disconnect(), i(0);
|
|
6885
6876
|
};
|
|
6886
6877
|
}, [i, a]);
|
|
6887
|
-
let p = e.map(
|
|
6878
|
+
let p = e.map(uo);
|
|
6888
6879
|
return /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("div", {
|
|
6889
6880
|
ref: s,
|
|
6890
6881
|
"aria-hidden": !0,
|
|
@@ -6959,7 +6950,7 @@ function mo({ balances: e, actionsVariant: t = "menu", className: r }) {
|
|
|
6959
6950
|
}),
|
|
6960
6951
|
/* @__PURE__ */ _(H, {
|
|
6961
6952
|
className: "border-b border-cb-line py-2.5 pl-4 align-top",
|
|
6962
|
-
children: /* @__PURE__ */ _(
|
|
6953
|
+
children: /* @__PURE__ */ _(fo, {
|
|
6963
6954
|
money: e.main,
|
|
6964
6955
|
code: e.code,
|
|
6965
6956
|
large: !0,
|
|
@@ -6968,7 +6959,7 @@ function mo({ balances: e, actionsVariant: t = "menu", className: r }) {
|
|
|
6968
6959
|
}),
|
|
6969
6960
|
/* @__PURE__ */ _(H, {
|
|
6970
6961
|
className: "border-b border-cb-line py-2.5 pl-4 align-top",
|
|
6971
|
-
children: /* @__PURE__ */ _(
|
|
6962
|
+
children: /* @__PURE__ */ _(fo, {
|
|
6972
6963
|
money: e.payout,
|
|
6973
6964
|
code: e.code,
|
|
6974
6965
|
large: !0,
|
|
@@ -6977,7 +6968,7 @@ function mo({ balances: e, actionsVariant: t = "menu", className: r }) {
|
|
|
6977
6968
|
}),
|
|
6978
6969
|
/* @__PURE__ */ _(H, {
|
|
6979
6970
|
className: "border-b border-cb-line py-2.5 pr-4 align-top",
|
|
6980
|
-
children: /* @__PURE__ */ _(
|
|
6971
|
+
children: /* @__PURE__ */ _(fo, {
|
|
6981
6972
|
money: e.total,
|
|
6982
6973
|
code: e.code,
|
|
6983
6974
|
strong: !0,
|
|
@@ -6989,7 +6980,7 @@ function mo({ balances: e, actionsVariant: t = "menu", className: r }) {
|
|
|
6989
6980
|
children: /* @__PURE__ */ _("div", {
|
|
6990
6981
|
className: "flex items-center justify-end",
|
|
6991
6982
|
onClick: (e) => e.stopPropagation(),
|
|
6992
|
-
children: /* @__PURE__ */ _(
|
|
6983
|
+
children: /* @__PURE__ */ _(no, {
|
|
6993
6984
|
variant: t,
|
|
6994
6985
|
label: `${e.code} actions`
|
|
6995
6986
|
})
|
|
@@ -7022,7 +7013,7 @@ function mo({ balances: e, actionsVariant: t = "menu", className: r }) {
|
|
|
7022
7013
|
}),
|
|
7023
7014
|
/* @__PURE__ */ _(H, {
|
|
7024
7015
|
className: "border-b border-slate-100 py-2 pl-4 align-top",
|
|
7025
|
-
children: /* @__PURE__ */ _(
|
|
7016
|
+
children: /* @__PURE__ */ _(fo, {
|
|
7026
7017
|
money: n.main,
|
|
7027
7018
|
code: e.code,
|
|
7028
7019
|
align: "start",
|
|
@@ -7031,7 +7022,7 @@ function mo({ balances: e, actionsVariant: t = "menu", className: r }) {
|
|
|
7031
7022
|
}),
|
|
7032
7023
|
/* @__PURE__ */ _(H, {
|
|
7033
7024
|
className: "border-b border-slate-100 py-2 pl-4 align-top",
|
|
7034
|
-
children: /* @__PURE__ */ _(
|
|
7025
|
+
children: /* @__PURE__ */ _(fo, {
|
|
7035
7026
|
money: n.payout,
|
|
7036
7027
|
code: e.code,
|
|
7037
7028
|
align: "start",
|
|
@@ -7040,7 +7031,7 @@ function mo({ balances: e, actionsVariant: t = "menu", className: r }) {
|
|
|
7040
7031
|
}),
|
|
7041
7032
|
/* @__PURE__ */ _(H, {
|
|
7042
7033
|
className: "border-b border-slate-100 py-2 pr-4 align-top",
|
|
7043
|
-
children: /* @__PURE__ */ _(
|
|
7034
|
+
children: /* @__PURE__ */ _(fo, {
|
|
7044
7035
|
money: n.total,
|
|
7045
7036
|
code: e.code,
|
|
7046
7037
|
muted: !0
|
|
@@ -7050,7 +7041,7 @@ function mo({ balances: e, actionsVariant: t = "menu", className: r }) {
|
|
|
7050
7041
|
className: "border-b border-slate-100 py-2 pr-4 align-top",
|
|
7051
7042
|
children: /* @__PURE__ */ _("div", {
|
|
7052
7043
|
className: "flex items-center justify-end",
|
|
7053
|
-
children: /* @__PURE__ */ _(
|
|
7044
|
+
children: /* @__PURE__ */ _(no, {
|
|
7054
7045
|
variant: t,
|
|
7055
7046
|
label: `${e.code} ${n.networkName} actions`
|
|
7056
7047
|
})
|
|
@@ -7063,7 +7054,7 @@ function mo({ balances: e, actionsVariant: t = "menu", className: r }) {
|
|
|
7063
7054
|
}
|
|
7064
7055
|
//#endregion
|
|
7065
7056
|
//#region ../../react-app/src/components/balances/BalancesSummary.tsx
|
|
7066
|
-
function
|
|
7057
|
+
function mo({ label: e, value: t, valueClassName: n, children: r }) {
|
|
7067
7058
|
return /* @__PURE__ */ v("div", {
|
|
7068
7059
|
className: "flex flex-col gap-1.5 px-5 py-4",
|
|
7069
7060
|
children: [/* @__PURE__ */ _("span", {
|
|
@@ -7075,21 +7066,21 @@ function ho({ label: e, value: t, valueClassName: n, children: r }) {
|
|
|
7075
7066
|
})]
|
|
7076
7067
|
});
|
|
7077
7068
|
}
|
|
7078
|
-
function
|
|
7069
|
+
function ho({ totalAssets: e, totalPending: t, activeWallets: n, totalWallets: r, showTotalWallets: i = !0, pendingAmber: a = !1, className: o }) {
|
|
7079
7070
|
return /* @__PURE__ */ v("div", {
|
|
7080
7071
|
className: I("grid grid-cols-1 divide-y divide-cb-line rounded-2xl border border-cb-line bg-cb-card shadow-xs sm:grid-cols-3 sm:divide-x sm:divide-y-0", o),
|
|
7081
7072
|
children: [
|
|
7082
|
-
/* @__PURE__ */ _(
|
|
7073
|
+
/* @__PURE__ */ _(mo, {
|
|
7083
7074
|
label: "Total assets under management",
|
|
7084
7075
|
value: e,
|
|
7085
7076
|
valueClassName: "font-semibold"
|
|
7086
7077
|
}),
|
|
7087
|
-
/* @__PURE__ */ _(
|
|
7078
|
+
/* @__PURE__ */ _(mo, {
|
|
7088
7079
|
label: "Total pending",
|
|
7089
7080
|
value: t,
|
|
7090
7081
|
valueClassName: I("font-normal", a && "text-amber-600")
|
|
7091
7082
|
}),
|
|
7092
|
-
/* @__PURE__ */ v(
|
|
7083
|
+
/* @__PURE__ */ v(mo, {
|
|
7093
7084
|
label: "Active wallets",
|
|
7094
7085
|
children: [/* @__PURE__ */ _("span", {
|
|
7095
7086
|
className: "font-normal",
|
|
@@ -7104,10 +7095,10 @@ function go({ totalAssets: e, totalPending: t, activeWallets: n, totalWallets: r
|
|
|
7104
7095
|
}
|
|
7105
7096
|
//#endregion
|
|
7106
7097
|
//#region ../../react-app/src/components/balances/data.ts
|
|
7107
|
-
var
|
|
7108
|
-
CURRENCY_BALANCES: () =>
|
|
7109
|
-
balancesTotals: () =>
|
|
7110
|
-
}),
|
|
7098
|
+
var go = /* @__PURE__ */ F({
|
|
7099
|
+
CURRENCY_BALANCES: () => _o,
|
|
7100
|
+
balancesTotals: () => vo
|
|
7101
|
+
}), _o = [
|
|
7111
7102
|
{
|
|
7112
7103
|
code: "BTC",
|
|
7113
7104
|
name: "Bitcoin",
|
|
@@ -7335,7 +7326,7 @@ var _o = /* @__PURE__ */ F({
|
|
|
7335
7326
|
}]
|
|
7336
7327
|
}
|
|
7337
7328
|
];
|
|
7338
|
-
function
|
|
7329
|
+
function vo(e) {
|
|
7339
7330
|
let t = (e) => parseFloat(e.replace(/[^0-9.-]/g, "")) || 0, n = (e) => e.toLocaleString("en-US", {
|
|
7340
7331
|
style: "currency",
|
|
7341
7332
|
currency: "USD"
|
|
@@ -7349,10 +7340,10 @@ function yo(e) {
|
|
|
7349
7340
|
}
|
|
7350
7341
|
//#endregion
|
|
7351
7342
|
//#region ../../react-app/src/components/balances/types.ts
|
|
7352
|
-
var
|
|
7353
|
-
RECENT_TRANSACTIONS: () =>
|
|
7354
|
-
default: () =>
|
|
7355
|
-
}),
|
|
7343
|
+
var yo = /* @__PURE__ */ F({}), bo = /* @__PURE__ */ F({
|
|
7344
|
+
RECENT_TRANSACTIONS: () => xo,
|
|
7345
|
+
default: () => xo
|
|
7346
|
+
}), xo = [
|
|
7356
7347
|
{
|
|
7357
7348
|
id: "rtx-1",
|
|
7358
7349
|
label: "Manual Deposit",
|
|
@@ -7557,7 +7548,7 @@ function $({ id: e, label: t, value: n, options: r, onChange: i, placeholder: a
|
|
|
7557
7548
|
}
|
|
7558
7549
|
//#endregion
|
|
7559
7550
|
//#region ../../react-app/src/components/fields/AmountField.tsx
|
|
7560
|
-
function
|
|
7551
|
+
function So({ id: e, label: t = "Amount", value: n, onChange: r, suffix: i, hint: a, helper: o, onMax: s, maxDisabled: c = !1, disabled: l = !1, invalid: u = !1, placeholder: d = "0.00", className: f }) {
|
|
7561
7552
|
return /* @__PURE__ */ v("div", {
|
|
7562
7553
|
className: I("flex flex-col gap-1.5", f),
|
|
7563
7554
|
children: [
|
|
@@ -7612,7 +7603,7 @@ function Co({ id: e, label: t = "Amount", value: n, onChange: r, suffix: i, hint
|
|
|
7612
7603
|
}
|
|
7613
7604
|
//#endregion
|
|
7614
7605
|
//#region ../../react-app/src/components/fields/TextField.tsx
|
|
7615
|
-
function
|
|
7606
|
+
function Co({ id: e, label: t, value: n, onChange: r, placeholder: i, hint: a, helper: o, disabled: s = !1, invalid: c = !1, inputMode: l, spellCheck: u, autoComplete: d, maxLength: f, inputClassName: p, className: m }) {
|
|
7616
7607
|
return /* @__PURE__ */ v("div", {
|
|
7617
7608
|
className: I("flex flex-col gap-1.5", m),
|
|
7618
7609
|
children: [
|
|
@@ -7649,10 +7640,10 @@ function wo({ id: e, label: t, value: n, onChange: r, placeholder: i, hint: a, h
|
|
|
7649
7640
|
}
|
|
7650
7641
|
//#endregion
|
|
7651
7642
|
//#region ../../react-app/src/components/fields/WalletField.tsx
|
|
7652
|
-
function
|
|
7643
|
+
function wo(e) {
|
|
7653
7644
|
return e.length > 18 ? `${e.slice(0, 10)}…${e.slice(-6)}` : e;
|
|
7654
7645
|
}
|
|
7655
|
-
function
|
|
7646
|
+
function To({ id: e, label: t = "Wallet", placeholder: n = "Select a wallet", value: r, onChange: i, wallets: a, emptyMessage: o = "No wallets available.", variant: s = "simple", disabled: c = !1, className: l }) {
|
|
7656
7647
|
return /* @__PURE__ */ _($, {
|
|
7657
7648
|
id: e,
|
|
7658
7649
|
label: t,
|
|
@@ -7664,7 +7655,7 @@ function Eo({ id: e, label: t = "Wallet", placeholder: n = "Select a wallet", va
|
|
|
7664
7655
|
} : {
|
|
7665
7656
|
value: e.id,
|
|
7666
7657
|
label: e.name,
|
|
7667
|
-
sublabel: e.address ?
|
|
7658
|
+
sublabel: e.address ? wo(e.address) : void 0,
|
|
7668
7659
|
leading: e.coin && e.network ? /* @__PURE__ */ _(Ir, {
|
|
7669
7660
|
code: e.coin,
|
|
7670
7661
|
network: e.network,
|
|
@@ -7688,11 +7679,11 @@ function Eo({ id: e, label: t = "Wallet", placeholder: n = "Select a wallet", va
|
|
|
7688
7679
|
}
|
|
7689
7680
|
//#endregion
|
|
7690
7681
|
//#region ../../react-app/src/components/convert/ConvertHistoryTable.tsx
|
|
7691
|
-
function
|
|
7682
|
+
function Eo(e) {
|
|
7692
7683
|
let t = Date.parse(`${e.date} ${e.time}`);
|
|
7693
7684
|
return Number.isNaN(t) ? 0 : t;
|
|
7694
7685
|
}
|
|
7695
|
-
function
|
|
7686
|
+
function Do({ name: e }) {
|
|
7696
7687
|
return /* @__PURE__ */ v("span", {
|
|
7697
7688
|
className: "flex items-center gap-2",
|
|
7698
7689
|
children: [/* @__PURE__ */ _("span", {
|
|
@@ -7704,7 +7695,7 @@ function Oo({ name: e }) {
|
|
|
7704
7695
|
})]
|
|
7705
7696
|
});
|
|
7706
7697
|
}
|
|
7707
|
-
function
|
|
7698
|
+
function Oo({ amount: e, coin: t, tone: n }) {
|
|
7708
7699
|
return /* @__PURE__ */ v("span", {
|
|
7709
7700
|
className: "flex items-center gap-2.5",
|
|
7710
7701
|
children: [/* @__PURE__ */ _(U, {
|
|
@@ -7724,13 +7715,13 @@ function ko({ amount: e, coin: t, tone: n }) {
|
|
|
7724
7715
|
})]
|
|
7725
7716
|
});
|
|
7726
7717
|
}
|
|
7727
|
-
function
|
|
7718
|
+
function ko({ data: e, className: t }) {
|
|
7728
7719
|
let n = l(() => [
|
|
7729
7720
|
{
|
|
7730
7721
|
id: "date",
|
|
7731
7722
|
header: "Date",
|
|
7732
7723
|
sortable: !0,
|
|
7733
|
-
sortValue:
|
|
7724
|
+
sortValue: Eo,
|
|
7734
7725
|
cell: (e) => /* @__PURE__ */ _(G, {
|
|
7735
7726
|
primary: e.date,
|
|
7736
7727
|
secondary: e.time
|
|
@@ -7741,12 +7732,12 @@ function Ao({ data: e, className: t }) {
|
|
|
7741
7732
|
header: "Initiated by",
|
|
7742
7733
|
sortable: !0,
|
|
7743
7734
|
sortValue: (e) => e.initiator,
|
|
7744
|
-
cell: (e) => /* @__PURE__ */ _(
|
|
7735
|
+
cell: (e) => /* @__PURE__ */ _(Do, { name: e.initiator })
|
|
7745
7736
|
},
|
|
7746
7737
|
{
|
|
7747
7738
|
id: "from",
|
|
7748
7739
|
header: "From",
|
|
7749
|
-
cell: (e) => /* @__PURE__ */ _(
|
|
7740
|
+
cell: (e) => /* @__PURE__ */ _(Oo, {
|
|
7750
7741
|
amount: e.fromAmount,
|
|
7751
7742
|
coin: e.fromCoin,
|
|
7752
7743
|
tone: "out"
|
|
@@ -7755,7 +7746,7 @@ function Ao({ data: e, className: t }) {
|
|
|
7755
7746
|
{
|
|
7756
7747
|
id: "to",
|
|
7757
7748
|
header: "To",
|
|
7758
|
-
cell: (e) => /* @__PURE__ */ _(
|
|
7749
|
+
cell: (e) => /* @__PURE__ */ _(Oo, {
|
|
7759
7750
|
amount: e.toAmount,
|
|
7760
7751
|
coin: e.toCoin,
|
|
7761
7752
|
tone: "in"
|
|
@@ -7791,7 +7782,7 @@ function Ao({ data: e, className: t }) {
|
|
|
7791
7782
|
}
|
|
7792
7783
|
//#endregion
|
|
7793
7784
|
//#region ../../react-app/src/components/convert/ConvertSummary.tsx
|
|
7794
|
-
function
|
|
7785
|
+
function Ao({ caption: e, coin: t, amount: n, fiat: r, amountClassName: i }) {
|
|
7795
7786
|
let a = n != null && n !== "";
|
|
7796
7787
|
return /* @__PURE__ */ v("div", {
|
|
7797
7788
|
className: "flex flex-col gap-1.5",
|
|
@@ -7827,7 +7818,7 @@ function jo({ caption: e, coin: t, amount: n, fiat: r, amountClassName: i }) {
|
|
|
7827
7818
|
})]
|
|
7828
7819
|
});
|
|
7829
7820
|
}
|
|
7830
|
-
function
|
|
7821
|
+
function jo({ fromCoin: e, toCoin: t, payAmount: n, payFiat: r, receiveAmount: i, receiveFiat: a, rateLabel: o, rateCountdown: s, rateTtl: c = 30, rateVersion: l = 0, feeLabel: u, fromWalletName: d, fromWalletAddress: f, toWalletName: p, toWalletAddress: m, footer: h, className: g }) {
|
|
7831
7822
|
return /* @__PURE__ */ v("div", {
|
|
7832
7823
|
className: I("flex flex-col rounded-2xl border border-cb-line bg-slate-50 dark:bg-slate-900/40", g),
|
|
7833
7824
|
children: [
|
|
@@ -7844,7 +7835,7 @@ function Mo({ fromCoin: e, toCoin: t, payAmount: n, payFiat: r, receiveAmount: i
|
|
|
7844
7835
|
/* @__PURE__ */ v("div", {
|
|
7845
7836
|
className: "px-5 pb-3",
|
|
7846
7837
|
children: [
|
|
7847
|
-
/* @__PURE__ */ _(
|
|
7838
|
+
/* @__PURE__ */ _(Ao, {
|
|
7848
7839
|
caption: "You pay",
|
|
7849
7840
|
coin: e,
|
|
7850
7841
|
amount: n,
|
|
@@ -7861,7 +7852,7 @@ function Mo({ fromCoin: e, toCoin: t, payAmount: n, payFiat: r, receiveAmount: i
|
|
|
7861
7852
|
})
|
|
7862
7853
|
})]
|
|
7863
7854
|
}),
|
|
7864
|
-
/* @__PURE__ */ _(
|
|
7855
|
+
/* @__PURE__ */ _(Ao, {
|
|
7865
7856
|
caption: "You receive",
|
|
7866
7857
|
coin: t,
|
|
7867
7858
|
amount: i,
|
|
@@ -7880,7 +7871,7 @@ function Mo({ fromCoin: e, toCoin: t, payAmount: n, payFiat: r, receiveAmount: i
|
|
|
7880
7871
|
children: [/* @__PURE__ */ _("span", {
|
|
7881
7872
|
className: I("inline-block rounded px-1.5 font-medium tabular-nums text-foreground", s != null && "animate-rate-flash"),
|
|
7882
7873
|
children: o
|
|
7883
|
-
}, l), s != null && /* @__PURE__ */ _(
|
|
7874
|
+
}, l), s != null && /* @__PURE__ */ _(Mo, {
|
|
7884
7875
|
seconds: s,
|
|
7885
7876
|
total: c
|
|
7886
7877
|
})]
|
|
@@ -7944,7 +7935,7 @@ function Mo({ fromCoin: e, toCoin: t, payAmount: n, payFiat: r, receiveAmount: i
|
|
|
7944
7935
|
]
|
|
7945
7936
|
});
|
|
7946
7937
|
}
|
|
7947
|
-
function
|
|
7938
|
+
function Mo({ seconds: e, total: t }) {
|
|
7948
7939
|
let n = 2 * Math.PI * 8, r = t > 0 ? Math.max(0, Math.min(1, e / t)) : 0;
|
|
7949
7940
|
return /* @__PURE__ */ v("div", {
|
|
7950
7941
|
className: "flex shrink-0 items-center gap-2 rounded-full border border-cb-line bg-cb-card px-2.5 py-1",
|
|
@@ -7983,17 +7974,17 @@ function No({ seconds: e, total: t }) {
|
|
|
7983
7974
|
}
|
|
7984
7975
|
//#endregion
|
|
7985
7976
|
//#region ../../react-app/src/components/convert/data.ts
|
|
7986
|
-
var
|
|
7987
|
-
COINS: () =>
|
|
7988
|
-
CONVERSION_HISTORY: () =>
|
|
7989
|
-
CONVERT_FEE_RATE: () =>
|
|
7990
|
-
HOLDINGS: () =>
|
|
7991
|
-
NETWORK_NAMES: () =>
|
|
7992
|
-
WALLET_TIERS: () =>
|
|
7993
|
-
figureToNumber: () =>
|
|
7994
|
-
formatCrypto: () =>
|
|
7995
|
-
formatUsd: () =>
|
|
7996
|
-
}),
|
|
7977
|
+
var No = /* @__PURE__ */ F({
|
|
7978
|
+
COINS: () => Lo,
|
|
7979
|
+
CONVERSION_HISTORY: () => zo,
|
|
7980
|
+
CONVERT_FEE_RATE: () => Po,
|
|
7981
|
+
HOLDINGS: () => Ro,
|
|
7982
|
+
NETWORK_NAMES: () => Io,
|
|
7983
|
+
WALLET_TIERS: () => Fo,
|
|
7984
|
+
figureToNumber: () => Bo,
|
|
7985
|
+
formatCrypto: () => Ho,
|
|
7986
|
+
formatUsd: () => Vo
|
|
7987
|
+
}), Po = .002, Fo = [
|
|
7997
7988
|
{
|
|
7998
7989
|
id: "low",
|
|
7999
7990
|
name: "Low Risk Wallet",
|
|
@@ -8014,14 +8005,14 @@ var Po = /* @__PURE__ */ F({
|
|
|
8014
8005
|
name: "Payout Wallet",
|
|
8015
8006
|
purpose: "payout"
|
|
8016
8007
|
}
|
|
8017
|
-
],
|
|
8008
|
+
], Io = {
|
|
8018
8009
|
ETH: "Ethereum",
|
|
8019
8010
|
TRON: "Tron (TRC-20)",
|
|
8020
8011
|
BTC: "Bitcoin",
|
|
8021
8012
|
SOL: "Solana",
|
|
8022
8013
|
POL: "Polygon",
|
|
8023
8014
|
BNB: "BNB Chain"
|
|
8024
|
-
},
|
|
8015
|
+
}, Lo = [
|
|
8025
8016
|
{
|
|
8026
8017
|
code: "USDT",
|
|
8027
8018
|
name: "Tether",
|
|
@@ -8073,7 +8064,7 @@ var Po = /* @__PURE__ */ F({
|
|
|
8073
8064
|
price: 600,
|
|
8074
8065
|
networks: ["BNB"]
|
|
8075
8066
|
}
|
|
8076
|
-
],
|
|
8067
|
+
], Ro = [
|
|
8077
8068
|
{
|
|
8078
8069
|
id: "h-usdt-low",
|
|
8079
8070
|
name: "Low Risk Wallet",
|
|
@@ -8174,7 +8165,7 @@ var Po = /* @__PURE__ */ F({
|
|
|
8174
8165
|
amount: "12,500.00000000",
|
|
8175
8166
|
amountFiat: "$5,625.00"
|
|
8176
8167
|
}
|
|
8177
|
-
],
|
|
8168
|
+
], zo = [
|
|
8178
8169
|
{
|
|
8179
8170
|
id: "cv-01",
|
|
8180
8171
|
date: "Jul 14, 2026",
|
|
@@ -8288,10 +8279,10 @@ var Po = /* @__PURE__ */ F({
|
|
|
8288
8279
|
status: "PENDING_APPROVAL"
|
|
8289
8280
|
}
|
|
8290
8281
|
];
|
|
8291
|
-
function
|
|
8282
|
+
function Bo(e) {
|
|
8292
8283
|
return parseFloat(e.replace(/[^0-9.]/g, "")) || 0;
|
|
8293
8284
|
}
|
|
8294
|
-
function
|
|
8285
|
+
function Vo(e) {
|
|
8295
8286
|
return e.toLocaleString("en-US", {
|
|
8296
8287
|
style: "currency",
|
|
8297
8288
|
currency: "USD",
|
|
@@ -8299,7 +8290,7 @@ function Ho(e) {
|
|
|
8299
8290
|
maximumFractionDigits: 2
|
|
8300
8291
|
});
|
|
8301
8292
|
}
|
|
8302
|
-
function
|
|
8293
|
+
function Ho(e) {
|
|
8303
8294
|
return e.toLocaleString("en-US", {
|
|
8304
8295
|
minimumFractionDigits: 2,
|
|
8305
8296
|
maximumFractionDigits: 8
|
|
@@ -8307,19 +8298,19 @@ function Uo(e) {
|
|
|
8307
8298
|
}
|
|
8308
8299
|
//#endregion
|
|
8309
8300
|
//#region ../../react-app/src/components/convert/ConvertPanel.tsx
|
|
8310
|
-
var
|
|
8311
|
-
function
|
|
8312
|
-
let [r, i] = d(null), [a, s] = d(""), [c, l] = d(""), [u, f] = d(""), [p, m] = d(""), [h, y] = d(""), [b, S] = d(!1), [C, w] = d(""), [T, E] = d(!1), [ee, D] = d(1), [O, te] = d(
|
|
8301
|
+
var Uo = 30;
|
|
8302
|
+
function Wo({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
|
|
8303
|
+
let [r, i] = d(null), [a, s] = d(""), [c, l] = d(""), [u, f] = d(""), [p, m] = d(""), [h, y] = d(""), [b, S] = d(!1), [C, w] = d(""), [T, E] = d(!1), [ee, D] = d(1), [O, te] = d(Uo), [ne, re] = d(0), k = Fo.find((e) => e.id === r) ?? null, A = k != null && a ? Ro.find((e) => e.name === k.name && e.coin === a && e.network === c) ?? Ro.find((e) => e.name === k.name && e.coin === a) ?? null : null, j = (u ? Ro.find((e) => e.coin === u && e.network === p) ?? Ro.find((e) => e.coin === u) : null) ?? null, ie = a ? Lo.find((e) => e.code === a) ?? null : null, M = Lo.find((e) => e.code === u) ?? null, ae = Bo(h), oe = A ? Bo(A.amount) : Infinity, se = A != null && ae > oe, N = h.trim() !== "" && ae > 0, P = a != null && M != null && u !== a, ce = (ie && M ? ie.price / M.price : 0) * ee, le = ie ? ae * ie.price : 0, ue = le * Po, F = ae * ce * (1 - Po), L = k != null && P && c !== "" && p !== "" && N && !se, R = N ? Ho(ae) : null, fe = N && P ? Ho(F) : null, pe = a && M ? `1 ${a} = ${Ho(ce)} ${u}` : null, me = N ? `${Vo(ue)} · ${(Po * 100).toFixed(1)}%` : null;
|
|
8313
8304
|
o(() => {
|
|
8314
8305
|
if (!L) {
|
|
8315
|
-
te(
|
|
8306
|
+
te(Uo);
|
|
8316
8307
|
return;
|
|
8317
8308
|
}
|
|
8318
|
-
let e = Date.now() +
|
|
8319
|
-
te(
|
|
8309
|
+
let e = Date.now() + Uo * 1e3;
|
|
8310
|
+
te(Uo), D(1 + (Math.random() - .5) * .012), re((e) => e + 1);
|
|
8320
8311
|
let t = setInterval(() => {
|
|
8321
8312
|
let t = Math.max(0, Math.ceil((e - Date.now()) / 1e3));
|
|
8322
|
-
te(t), t === 0 && (D(1 + (Math.random() - .5) * .012), re((e) => e + 1), e = Date.now() +
|
|
8313
|
+
te(t), t === 0 && (D(1 + (Math.random() - .5) * .012), re((e) => e + 1), e = Date.now() + Uo * 1e3);
|
|
8323
8314
|
}, 250);
|
|
8324
8315
|
return () => clearInterval(t);
|
|
8325
8316
|
}, [
|
|
@@ -8328,7 +8319,7 @@ function Go({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
|
|
|
8328
8319
|
u
|
|
8329
8320
|
]);
|
|
8330
8321
|
let he = (e) => {
|
|
8331
|
-
let t =
|
|
8322
|
+
let t = Lo.find((t) => t.code === e)?.networks ?? [];
|
|
8332
8323
|
return t.length === 1 ? t[0] : "";
|
|
8333
8324
|
}, ge = (e) => {
|
|
8334
8325
|
i(e), E(!1);
|
|
@@ -8360,10 +8351,10 @@ function Go({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
|
|
|
8360
8351
|
wallet: k.name,
|
|
8361
8352
|
fromCoin: a,
|
|
8362
8353
|
toCoin: u,
|
|
8363
|
-
fromAmount: `-${
|
|
8364
|
-
toAmount: `+${
|
|
8365
|
-
rate: `1 ${a} = ${
|
|
8366
|
-
fiatValue:
|
|
8354
|
+
fromAmount: `-${Ho(ae)}`,
|
|
8355
|
+
toAmount: `+${Ho(F)}`,
|
|
8356
|
+
rate: `1 ${a} = ${Ho(ce)} ${u}`,
|
|
8357
|
+
fiatValue: Vo(le),
|
|
8367
8358
|
status: "PROCESSING"
|
|
8368
8359
|
};
|
|
8369
8360
|
t?.(r), E(!0);
|
|
@@ -8376,7 +8367,7 @@ function Go({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
|
|
|
8376
8367
|
}, Te = (e) => ({
|
|
8377
8368
|
value: e,
|
|
8378
8369
|
label: e,
|
|
8379
|
-
sublabel:
|
|
8370
|
+
sublabel: Lo.find((t) => t.code === e)?.name ?? e,
|
|
8380
8371
|
leading: /* @__PURE__ */ _(U, {
|
|
8381
8372
|
code: e,
|
|
8382
8373
|
src: q(e),
|
|
@@ -8385,13 +8376,13 @@ function Go({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
|
|
|
8385
8376
|
}), Ee = (e) => ({
|
|
8386
8377
|
value: e,
|
|
8387
8378
|
label: e,
|
|
8388
|
-
sublabel:
|
|
8379
|
+
sublabel: Io[e] ?? e,
|
|
8389
8380
|
leading: /* @__PURE__ */ _(U, {
|
|
8390
8381
|
code: e,
|
|
8391
8382
|
src: q(e),
|
|
8392
8383
|
className: "size-6"
|
|
8393
8384
|
})
|
|
8394
|
-
}), De =
|
|
8385
|
+
}), De = Lo.filter((e) => e.code !== u).map((e) => Te(e.code)), Oe = (ie?.networks ?? []).map(Ee), ke = Lo.filter((e) => e.code !== a).map((e) => Te(e.code)), Ae = (M?.networks ?? []).map(Ee), je = Fo.map((e) => ({
|
|
8395
8386
|
id: e.id,
|
|
8396
8387
|
name: e.name
|
|
8397
8388
|
}));
|
|
@@ -8403,7 +8394,7 @@ function Go({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
|
|
|
8403
8394
|
children: /* @__PURE__ */ v("div", {
|
|
8404
8395
|
className: "flex flex-col gap-4",
|
|
8405
8396
|
children: [
|
|
8406
|
-
/* @__PURE__ */ _(
|
|
8397
|
+
/* @__PURE__ */ _(To, {
|
|
8407
8398
|
id: "cv-wallet",
|
|
8408
8399
|
label: "From wallet",
|
|
8409
8400
|
placeholder: "Select a source wallet",
|
|
@@ -8433,7 +8424,7 @@ function Go({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
|
|
|
8433
8424
|
disabled: !k || !a
|
|
8434
8425
|
})]
|
|
8435
8426
|
}),
|
|
8436
|
-
/* @__PURE__ */ _(
|
|
8427
|
+
/* @__PURE__ */ _(So, {
|
|
8437
8428
|
id: "cv-amount",
|
|
8438
8429
|
value: h,
|
|
8439
8430
|
onChange: Se,
|
|
@@ -8459,7 +8450,7 @@ function Go({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
|
|
|
8459
8450
|
children: "Amount exceeds the available balance."
|
|
8460
8451
|
}) : N ? /* @__PURE__ */ v("span", {
|
|
8461
8452
|
className: "tabular-nums text-muted-foreground",
|
|
8462
|
-
children: ["≈ ",
|
|
8453
|
+
children: ["≈ ", Vo(le)]
|
|
8463
8454
|
}) : null
|
|
8464
8455
|
}),
|
|
8465
8456
|
/* @__PURE__ */ v("div", {
|
|
@@ -8520,16 +8511,16 @@ function Go({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
|
|
|
8520
8511
|
]
|
|
8521
8512
|
})
|
|
8522
8513
|
}),
|
|
8523
|
-
/* @__PURE__ */ _(
|
|
8514
|
+
/* @__PURE__ */ _(jo, {
|
|
8524
8515
|
fromCoin: a,
|
|
8525
8516
|
toCoin: P ? u : null,
|
|
8526
8517
|
payAmount: R,
|
|
8527
|
-
payFiat: N ?
|
|
8518
|
+
payFiat: N ? Vo(le) : null,
|
|
8528
8519
|
receiveAmount: fe,
|
|
8529
|
-
receiveFiat: N && P ?
|
|
8520
|
+
receiveFiat: N && P ? Vo(le * (1 - Po)) : null,
|
|
8530
8521
|
rateLabel: pe,
|
|
8531
8522
|
rateCountdown: L ? O : null,
|
|
8532
|
-
rateTtl:
|
|
8523
|
+
rateTtl: Uo,
|
|
8533
8524
|
rateVersion: ne,
|
|
8534
8525
|
feeLabel: me,
|
|
8535
8526
|
fromWalletName: k?.name ?? null,
|
|
@@ -8626,7 +8617,7 @@ function Go({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
|
|
|
8626
8617
|
htmlFor: "cv-code",
|
|
8627
8618
|
className: "text-[13px] font-medium text-muted-foreground",
|
|
8628
8619
|
children: "Authentication code"
|
|
8629
|
-
}), /* @__PURE__ */ _(
|
|
8620
|
+
}), /* @__PURE__ */ _(Go, {
|
|
8630
8621
|
id: "cv-code",
|
|
8631
8622
|
value: C,
|
|
8632
8623
|
onChange: w
|
|
@@ -8654,7 +8645,7 @@ function Go({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
|
|
|
8654
8645
|
]
|
|
8655
8646
|
});
|
|
8656
8647
|
}
|
|
8657
|
-
function
|
|
8648
|
+
function Go({ id: e, value: t, onChange: n, length: r = 6 }) {
|
|
8658
8649
|
let [i, a] = d(!1), o = Array.from({ length: r }, (e, n) => t[n] ?? ""), s = Math.min(t.length, r - 1);
|
|
8659
8650
|
return /* @__PURE__ */ v("div", {
|
|
8660
8651
|
className: "relative",
|
|
@@ -8684,14 +8675,14 @@ function Ko({ id: e, value: t, onChange: n, length: r = 6 }) {
|
|
|
8684
8675
|
}
|
|
8685
8676
|
//#endregion
|
|
8686
8677
|
//#region ../../react-app/src/components/convert/types.ts
|
|
8687
|
-
var
|
|
8688
|
-
COINS: () =>
|
|
8689
|
-
DEPOSIT_HISTORY: () =>
|
|
8690
|
-
DEPOSIT_WALLETS: () =>
|
|
8691
|
-
NETWORKS: () =>
|
|
8692
|
-
figureToNumber: () =>
|
|
8693
|
-
formatUsd: () =>
|
|
8694
|
-
}),
|
|
8678
|
+
var Ko = /* @__PURE__ */ F({}), qo = /* @__PURE__ */ F({
|
|
8679
|
+
COINS: () => Yo,
|
|
8680
|
+
DEPOSIT_HISTORY: () => Zo,
|
|
8681
|
+
DEPOSIT_WALLETS: () => Xo,
|
|
8682
|
+
NETWORKS: () => Jo,
|
|
8683
|
+
figureToNumber: () => Qo,
|
|
8684
|
+
formatUsd: () => $o
|
|
8685
|
+
}), Jo = {
|
|
8695
8686
|
ETH: {
|
|
8696
8687
|
code: "ETH",
|
|
8697
8688
|
name: "Ethereum"
|
|
@@ -8712,7 +8703,7 @@ var qo = /* @__PURE__ */ F({}), Jo = /* @__PURE__ */ F({
|
|
|
8712
8703
|
code: "POL",
|
|
8713
8704
|
name: "Polygon"
|
|
8714
8705
|
}
|
|
8715
|
-
},
|
|
8706
|
+
}, Yo = [
|
|
8716
8707
|
{
|
|
8717
8708
|
code: "USDT",
|
|
8718
8709
|
name: "Tether",
|
|
@@ -8747,7 +8738,7 @@ var qo = /* @__PURE__ */ F({}), Jo = /* @__PURE__ */ F({
|
|
|
8747
8738
|
name: "Solana",
|
|
8748
8739
|
networks: ["SOL"]
|
|
8749
8740
|
}
|
|
8750
|
-
],
|
|
8741
|
+
], Xo = [
|
|
8751
8742
|
{
|
|
8752
8743
|
id: "w-usdt-eth-low",
|
|
8753
8744
|
name: "Low Risk Wallet",
|
|
@@ -8880,7 +8871,7 @@ var qo = /* @__PURE__ */ F({}), Jo = /* @__PURE__ */ F({
|
|
|
8880
8871
|
amountFiat: "$41,440.00",
|
|
8881
8872
|
fiatRate: 148
|
|
8882
8873
|
}
|
|
8883
|
-
],
|
|
8874
|
+
], Zo = [
|
|
8884
8875
|
{
|
|
8885
8876
|
id: "dp-01",
|
|
8886
8877
|
date: "Jul 14, 2026",
|
|
@@ -8993,10 +8984,10 @@ var qo = /* @__PURE__ */ F({}), Jo = /* @__PURE__ */ F({
|
|
|
8993
8984
|
status: "CONFIRMED"
|
|
8994
8985
|
}
|
|
8995
8986
|
];
|
|
8996
|
-
function
|
|
8987
|
+
function Qo(e) {
|
|
8997
8988
|
return parseFloat(e.replace(/[^0-9.]/g, "")) || 0;
|
|
8998
8989
|
}
|
|
8999
|
-
function
|
|
8990
|
+
function $o(e) {
|
|
9000
8991
|
return e.toLocaleString("en-US", {
|
|
9001
8992
|
style: "currency",
|
|
9002
8993
|
currency: "USD",
|
|
@@ -9006,17 +8997,17 @@ function es(e) {
|
|
|
9006
8997
|
}
|
|
9007
8998
|
//#endregion
|
|
9008
8999
|
//#region ../../react-app/src/components/deposit/DepositHistoryTable.tsx
|
|
9009
|
-
function
|
|
9000
|
+
function es(e) {
|
|
9010
9001
|
let t = Date.parse(`${e.date} ${e.time}`);
|
|
9011
9002
|
return Number.isNaN(t) ? 0 : t;
|
|
9012
9003
|
}
|
|
9013
|
-
function
|
|
9004
|
+
function ts({ data: e, className: t }) {
|
|
9014
9005
|
let n = l(() => [
|
|
9015
9006
|
{
|
|
9016
9007
|
id: "date",
|
|
9017
9008
|
header: "Date",
|
|
9018
9009
|
sortable: !0,
|
|
9019
|
-
sortValue:
|
|
9010
|
+
sortValue: es,
|
|
9020
9011
|
cell: (e) => /* @__PURE__ */ _(G, {
|
|
9021
9012
|
primary: e.date,
|
|
9022
9013
|
secondary: e.time
|
|
@@ -9061,7 +9052,7 @@ function ns({ data: e, className: t }) {
|
|
|
9061
9052
|
size: "sm"
|
|
9062
9053
|
}), /* @__PURE__ */ _(G, {
|
|
9063
9054
|
primary: e.coin,
|
|
9064
|
-
secondary:
|
|
9055
|
+
secondary: Jo[e.network]?.name ?? e.network
|
|
9065
9056
|
})]
|
|
9066
9057
|
})
|
|
9067
9058
|
},
|
|
@@ -9107,8 +9098,8 @@ function ns({ data: e, className: t }) {
|
|
|
9107
9098
|
}
|
|
9108
9099
|
//#endregion
|
|
9109
9100
|
//#region ../../react-app/src/components/deposit/QrCode.tsx
|
|
9110
|
-
var
|
|
9111
|
-
function
|
|
9101
|
+
var ns = 3;
|
|
9102
|
+
function rs({ value: e, className: t }) {
|
|
9112
9103
|
let { size: n, darks: r } = l(() => {
|
|
9113
9104
|
let t = le.create(e || " ", { errorCorrectionLevel: "M" }), n = t.modules.size, r = t.modules.data, i = [];
|
|
9114
9105
|
for (let e = 0; e < n; e++) for (let t = 0; t < n; t++) r[e * n + t] && i.push([t, e]);
|
|
@@ -9116,7 +9107,7 @@ function is({ value: e, className: t }) {
|
|
|
9116
9107
|
size: n,
|
|
9117
9108
|
darks: i
|
|
9118
9109
|
};
|
|
9119
|
-
}, [e]), i = n +
|
|
9110
|
+
}, [e]), i = n + ns * 2;
|
|
9120
9111
|
return /* @__PURE__ */ v("svg", {
|
|
9121
9112
|
viewBox: `0 0 ${i} ${i}`,
|
|
9122
9113
|
shapeRendering: "crispEdges",
|
|
@@ -9129,7 +9120,7 @@ function is({ value: e, className: t }) {
|
|
|
9129
9120
|
fill: "#ffffff"
|
|
9130
9121
|
}), /* @__PURE__ */ _("g", {
|
|
9131
9122
|
fill: "#0f172a",
|
|
9132
|
-
transform: `translate(${
|
|
9123
|
+
transform: `translate(${ns} ${ns})`,
|
|
9133
9124
|
children: r.map(([e, t]) => /* @__PURE__ */ _("rect", {
|
|
9134
9125
|
x: e,
|
|
9135
9126
|
y: t,
|
|
@@ -9141,7 +9132,7 @@ function is({ value: e, className: t }) {
|
|
|
9141
9132
|
}
|
|
9142
9133
|
//#endregion
|
|
9143
9134
|
//#region ../../react-app/src/components/deposit/DepositReceiveCard.tsx
|
|
9144
|
-
function
|
|
9135
|
+
function is({ wallet: e, coin: t, network: n, networkName: r, className: i }) {
|
|
9145
9136
|
let [a, o] = d(!1);
|
|
9146
9137
|
return /* @__PURE__ */ v("div", {
|
|
9147
9138
|
className: I("flex flex-col rounded-2xl border border-cb-line bg-slate-50 dark:bg-slate-900/40", i),
|
|
@@ -9192,7 +9183,7 @@ function as({ wallet: e, coin: t, network: n, networkName: r, className: i }) {
|
|
|
9192
9183
|
})]
|
|
9193
9184
|
}), /* @__PURE__ */ _("div", {
|
|
9194
9185
|
className: "w-26 shrink-0 rounded-lg border border-cb-line bg-white p-1.5",
|
|
9195
|
-
children: /* @__PURE__ */ _(
|
|
9186
|
+
children: /* @__PURE__ */ _(rs, { value: e.address })
|
|
9196
9187
|
})]
|
|
9197
9188
|
}),
|
|
9198
9189
|
/* @__PURE__ */ v("div", {
|
|
@@ -9251,14 +9242,14 @@ function as({ wallet: e, coin: t, network: n, networkName: r, className: i }) {
|
|
|
9251
9242
|
}
|
|
9252
9243
|
//#endregion
|
|
9253
9244
|
//#region ../../react-app/src/components/deposit/DepositPanel.tsx
|
|
9254
|
-
function
|
|
9255
|
-
let [t, n] = d("USDT"), [r, i] = d("ETH"), [a, o] = d(null), s = (
|
|
9245
|
+
function as({ className: e }) {
|
|
9246
|
+
let [t, n] = d("USDT"), [r, i] = d("ETH"), [a, o] = d(null), s = (Yo.find((e) => e.code === t) ?? Yo[0]).networks, c = l(() => Xo.filter((e) => e.coin === t && e.network === r), [t, r]), u = c.find((e) => e.id === a) ?? null, f = (e) => {
|
|
9256
9247
|
n(e);
|
|
9257
|
-
let t =
|
|
9248
|
+
let t = Yo.find((t) => t.code === e);
|
|
9258
9249
|
i(t?.networks[0] ?? ""), o(null);
|
|
9259
9250
|
}, p = (e) => {
|
|
9260
9251
|
i(e), o(null);
|
|
9261
|
-
}, m =
|
|
9252
|
+
}, m = Yo.map((e) => ({
|
|
9262
9253
|
value: e.code,
|
|
9263
9254
|
label: e.code,
|
|
9264
9255
|
sublabel: e.name,
|
|
@@ -9270,7 +9261,7 @@ function os({ className: e }) {
|
|
|
9270
9261
|
})), h = s.map((e) => ({
|
|
9271
9262
|
value: e,
|
|
9272
9263
|
label: e,
|
|
9273
|
-
sublabel:
|
|
9264
|
+
sublabel: Jo[e]?.name ?? e,
|
|
9274
9265
|
leading: /* @__PURE__ */ _(U, {
|
|
9275
9266
|
code: e,
|
|
9276
9267
|
src: q(e),
|
|
@@ -9306,7 +9297,7 @@ function os({ className: e }) {
|
|
|
9306
9297
|
options: h,
|
|
9307
9298
|
onChange: p
|
|
9308
9299
|
}),
|
|
9309
|
-
/* @__PURE__ */ _(
|
|
9300
|
+
/* @__PURE__ */ _(To, {
|
|
9310
9301
|
id: "dp-wallet",
|
|
9311
9302
|
label: "Deposit to wallet",
|
|
9312
9303
|
placeholder: "Select a receiving wallet",
|
|
@@ -9333,32 +9324,32 @@ function os({ className: e }) {
|
|
|
9333
9324
|
" ",
|
|
9334
9325
|
/* @__PURE__ */ _("span", {
|
|
9335
9326
|
className: "font-semibold",
|
|
9336
|
-
children:
|
|
9327
|
+
children: Jo[r]?.name ?? r
|
|
9337
9328
|
}),
|
|
9338
9329
|
" network to this address. Other assets or networks may be lost permanently."
|
|
9339
9330
|
] })]
|
|
9340
9331
|
})
|
|
9341
9332
|
]
|
|
9342
9333
|
})
|
|
9343
|
-
}), /* @__PURE__ */ _(
|
|
9334
|
+
}), /* @__PURE__ */ _(is, {
|
|
9344
9335
|
wallet: u,
|
|
9345
9336
|
coin: t,
|
|
9346
9337
|
network: r,
|
|
9347
|
-
networkName:
|
|
9338
|
+
networkName: Jo[r]?.name
|
|
9348
9339
|
})]
|
|
9349
9340
|
});
|
|
9350
9341
|
}
|
|
9351
9342
|
//#endregion
|
|
9352
9343
|
//#region ../../react-app/src/components/deposit/types.ts
|
|
9353
|
-
var
|
|
9354
|
-
COINS: () =>
|
|
9355
|
-
NETWORKS: () =>
|
|
9356
|
-
SAVED_ADDRESSES: () =>
|
|
9357
|
-
SOURCE_WALLETS: () =>
|
|
9358
|
-
WITHDRAWAL_HISTORY: () =>
|
|
9359
|
-
figureToNumber: () =>
|
|
9360
|
-
formatUsd: () =>
|
|
9361
|
-
}),
|
|
9344
|
+
var os = /* @__PURE__ */ F({}), ss = /* @__PURE__ */ F({
|
|
9345
|
+
COINS: () => ls,
|
|
9346
|
+
NETWORKS: () => cs,
|
|
9347
|
+
SAVED_ADDRESSES: () => ds,
|
|
9348
|
+
SOURCE_WALLETS: () => us,
|
|
9349
|
+
WITHDRAWAL_HISTORY: () => fs,
|
|
9350
|
+
figureToNumber: () => ps,
|
|
9351
|
+
formatUsd: () => ms
|
|
9352
|
+
}), cs = {
|
|
9362
9353
|
ETH: {
|
|
9363
9354
|
code: "ETH",
|
|
9364
9355
|
name: "Ethereum"
|
|
@@ -9383,7 +9374,7 @@ var ss = /* @__PURE__ */ F({}), cs = /* @__PURE__ */ F({
|
|
|
9383
9374
|
code: "TON",
|
|
9384
9375
|
name: "TON"
|
|
9385
9376
|
}
|
|
9386
|
-
},
|
|
9377
|
+
}, ls = [
|
|
9387
9378
|
{
|
|
9388
9379
|
code: "USDT",
|
|
9389
9380
|
name: "Tether",
|
|
@@ -9423,7 +9414,7 @@ var ss = /* @__PURE__ */ F({}), cs = /* @__PURE__ */ F({
|
|
|
9423
9414
|
name: "Toncoin",
|
|
9424
9415
|
networks: ["TON"]
|
|
9425
9416
|
}
|
|
9426
|
-
],
|
|
9417
|
+
], us = [
|
|
9427
9418
|
{
|
|
9428
9419
|
id: "w-usdt-eth-low",
|
|
9429
9420
|
name: "Low Risk Wallet",
|
|
@@ -9578,7 +9569,7 @@ var ss = /* @__PURE__ */ F({}), cs = /* @__PURE__ */ F({
|
|
|
9578
9569
|
amountFiat: "$6,600.00",
|
|
9579
9570
|
fiatRate: 5.5
|
|
9580
9571
|
}
|
|
9581
|
-
],
|
|
9572
|
+
], ds = [
|
|
9582
9573
|
{
|
|
9583
9574
|
id: "a-binance-usdt-eth",
|
|
9584
9575
|
label: "Binance Hot Wallet",
|
|
@@ -9649,7 +9640,7 @@ var ss = /* @__PURE__ */ F({}), cs = /* @__PURE__ */ F({
|
|
|
9649
9640
|
network: "SOL",
|
|
9650
9641
|
address: "3n1DcS4Km3M8p5wV7oJ2rL9tQ6xY4bN8zA1cF5eH7gK"
|
|
9651
9642
|
}
|
|
9652
|
-
],
|
|
9643
|
+
], fs = [
|
|
9653
9644
|
{
|
|
9654
9645
|
id: "wd-01",
|
|
9655
9646
|
date: "Jul 14, 2026",
|
|
@@ -9771,10 +9762,10 @@ var ss = /* @__PURE__ */ F({}), cs = /* @__PURE__ */ F({
|
|
|
9771
9762
|
status: "PENDING_APPROVAL"
|
|
9772
9763
|
}
|
|
9773
9764
|
];
|
|
9774
|
-
function
|
|
9765
|
+
function ps(e) {
|
|
9775
9766
|
return parseFloat(e.replace(/[^0-9.]/g, "")) || 0;
|
|
9776
9767
|
}
|
|
9777
|
-
function
|
|
9768
|
+
function ms(e) {
|
|
9778
9769
|
return e.toLocaleString("en-US", {
|
|
9779
9770
|
style: "currency",
|
|
9780
9771
|
currency: "USD",
|
|
@@ -9784,11 +9775,11 @@ function hs(e) {
|
|
|
9784
9775
|
}
|
|
9785
9776
|
//#endregion
|
|
9786
9777
|
//#region ../../react-app/src/components/withdraw/WithdrawHistoryTable.tsx
|
|
9787
|
-
function
|
|
9778
|
+
function hs(e) {
|
|
9788
9779
|
let t = Date.parse(`${e.date} ${e.time}`);
|
|
9789
9780
|
return Number.isNaN(t) ? 0 : t;
|
|
9790
9781
|
}
|
|
9791
|
-
function
|
|
9782
|
+
function gs({ name: e }) {
|
|
9792
9783
|
return /* @__PURE__ */ v("span", {
|
|
9793
9784
|
className: "flex items-center gap-2",
|
|
9794
9785
|
children: [/* @__PURE__ */ _("span", {
|
|
@@ -9800,13 +9791,13 @@ function _s({ name: e }) {
|
|
|
9800
9791
|
})]
|
|
9801
9792
|
});
|
|
9802
9793
|
}
|
|
9803
|
-
function
|
|
9794
|
+
function _s({ data: e, className: t }) {
|
|
9804
9795
|
let n = l(() => [
|
|
9805
9796
|
{
|
|
9806
9797
|
id: "date",
|
|
9807
9798
|
header: "Date",
|
|
9808
9799
|
sortable: !0,
|
|
9809
|
-
sortValue:
|
|
9800
|
+
sortValue: hs,
|
|
9810
9801
|
cell: (e) => /* @__PURE__ */ _(G, {
|
|
9811
9802
|
primary: e.date,
|
|
9812
9803
|
secondary: e.time
|
|
@@ -9817,7 +9808,7 @@ function vs({ data: e, className: t }) {
|
|
|
9817
9808
|
header: "Initiated by",
|
|
9818
9809
|
sortable: !0,
|
|
9819
9810
|
sortValue: (e) => e.initiator,
|
|
9820
|
-
cell: (e) => /* @__PURE__ */ _(
|
|
9811
|
+
cell: (e) => /* @__PURE__ */ _(gs, { name: e.initiator })
|
|
9821
9812
|
},
|
|
9822
9813
|
{
|
|
9823
9814
|
id: "from",
|
|
@@ -9858,7 +9849,7 @@ function vs({ data: e, className: t }) {
|
|
|
9858
9849
|
size: "sm"
|
|
9859
9850
|
}), /* @__PURE__ */ _(G, {
|
|
9860
9851
|
primary: e.coin,
|
|
9861
|
-
secondary:
|
|
9852
|
+
secondary: cs[e.network]?.name ?? e.network
|
|
9862
9853
|
})]
|
|
9863
9854
|
})
|
|
9864
9855
|
},
|
|
@@ -9904,7 +9895,7 @@ function vs({ data: e, className: t }) {
|
|
|
9904
9895
|
}
|
|
9905
9896
|
//#endregion
|
|
9906
9897
|
//#region ../../react-app/src/components/withdraw/WithdrawSummary.tsx
|
|
9907
|
-
function
|
|
9898
|
+
function vs({ coin: e, network: t, networkName: n, amount: r, amountFiat: i, from: a, to: o, footer: s, className: c }) {
|
|
9908
9899
|
let l = r != null && r !== "" && r !== "0";
|
|
9909
9900
|
return /* @__PURE__ */ v("div", {
|
|
9910
9901
|
className: I("flex flex-col rounded-2xl border border-cb-line bg-slate-50 dark:bg-slate-900/40", c),
|
|
@@ -9949,7 +9940,7 @@ function ys({ coin: e, network: t, networkName: n, amount: r, amountFiat: i, fro
|
|
|
9949
9940
|
children: [
|
|
9950
9941
|
/* @__PURE__ */ _(Y, {
|
|
9951
9942
|
label: "Network",
|
|
9952
|
-
children: t ? /* @__PURE__ */ _(
|
|
9943
|
+
children: t ? /* @__PURE__ */ _(gi, {
|
|
9953
9944
|
value: n ?? t,
|
|
9954
9945
|
code: t,
|
|
9955
9946
|
className: "font-medium"
|
|
@@ -9958,11 +9949,11 @@ function ys({ coin: e, network: t, networkName: n, amount: r, amountFiat: i, fro
|
|
|
9958
9949
|
children: "—"
|
|
9959
9950
|
})
|
|
9960
9951
|
}),
|
|
9961
|
-
/* @__PURE__ */ _(
|
|
9952
|
+
/* @__PURE__ */ _(ys, {
|
|
9962
9953
|
caption: "From",
|
|
9963
9954
|
endpoint: a
|
|
9964
9955
|
}),
|
|
9965
|
-
/* @__PURE__ */ _(
|
|
9956
|
+
/* @__PURE__ */ _(ys, {
|
|
9966
9957
|
caption: "To",
|
|
9967
9958
|
endpoint: o
|
|
9968
9959
|
})
|
|
@@ -9975,7 +9966,7 @@ function ys({ coin: e, network: t, networkName: n, amount: r, amountFiat: i, fro
|
|
|
9975
9966
|
]
|
|
9976
9967
|
});
|
|
9977
9968
|
}
|
|
9978
|
-
function
|
|
9969
|
+
function ys({ caption: e, endpoint: t }) {
|
|
9979
9970
|
return /* @__PURE__ */ _(Y, {
|
|
9980
9971
|
label: e,
|
|
9981
9972
|
children: t ? t.label ? /* @__PURE__ */ v("div", {
|
|
@@ -10002,16 +9993,16 @@ function bs({ caption: e, endpoint: t }) {
|
|
|
10002
9993
|
}
|
|
10003
9994
|
//#endregion
|
|
10004
9995
|
//#region ../../react-app/src/components/withdraw/WithdrawPanel.tsx
|
|
10005
|
-
function
|
|
9996
|
+
function bs(e) {
|
|
10006
9997
|
return e.length > 18 ? `${e.slice(0, 10)}…${e.slice(-6)}` : e;
|
|
10007
9998
|
}
|
|
10008
|
-
function
|
|
10009
|
-
let [r, i] = d("USDT"), [a, o] = d("ETH"), [s, c] = d(null), [u, f] = d(""), [p, m] = d(""), [h, y] = d(""), [b, S] = d(!1), [C, w] = d(""), [T, E] = d(!1), ee = (
|
|
9999
|
+
function xs({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
|
|
10000
|
+
let [r, i] = d("USDT"), [a, o] = d("ETH"), [s, c] = d(null), [u, f] = d(""), [p, m] = d(""), [h, y] = d(""), [b, S] = d(!1), [C, w] = d(""), [T, E] = d(!1), ee = (ls.find((e) => e.code === r) ?? ls[0]).networks, D = l(() => us.filter((e) => e.coin === r && e.network === a), [r, a]), O = D.find((e) => e.id === s) ?? null, te = p.trim() !== "", ne = r === "TON", re = !ne || u.trim() !== "", k = ps(h), A = O ? ps(O.amount) : 0, j = O != null && k > A, ie = h.trim() !== "" && k > 0, M = O && ie ? ms(k * O.fiatRate) : null, ae = ie ? k.toLocaleString("en-US", {
|
|
10010
10001
|
minimumFractionDigits: 2,
|
|
10011
10002
|
maximumFractionDigits: 8
|
|
10012
10003
|
}) : null, oe = O != null && te && ie && !j && re, se = (e) => {
|
|
10013
10004
|
i(e);
|
|
10014
|
-
let t =
|
|
10005
|
+
let t = ls.find((t) => t.code === e);
|
|
10015
10006
|
o(t?.networks[0] ?? ""), c(null), f("");
|
|
10016
10007
|
}, N = (e) => {
|
|
10017
10008
|
o(e), c(null);
|
|
@@ -10041,7 +10032,7 @@ function Ss({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
|
|
|
10041
10032
|
coin: r,
|
|
10042
10033
|
network: a,
|
|
10043
10034
|
amount: `-${h}`,
|
|
10044
|
-
amountFiat: `-${
|
|
10035
|
+
amountFiat: `-${ms(k * O.fiatRate)}`,
|
|
10045
10036
|
status: "PROCESSING"
|
|
10046
10037
|
};
|
|
10047
10038
|
t?.(i), E(!0);
|
|
@@ -10051,7 +10042,7 @@ function Ss({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
|
|
|
10051
10042
|
return;
|
|
10052
10043
|
}
|
|
10053
10044
|
S(!1), w(""), T && (E(!1), y(""), m(""), f(""));
|
|
10054
|
-
}, F =
|
|
10045
|
+
}, F = ls.map((e) => ({
|
|
10055
10046
|
value: e.code,
|
|
10056
10047
|
label: e.code,
|
|
10057
10048
|
sublabel: e.name,
|
|
@@ -10063,7 +10054,7 @@ function Ss({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
|
|
|
10063
10054
|
})), L = ee.map((e) => ({
|
|
10064
10055
|
value: e,
|
|
10065
10056
|
label: e,
|
|
10066
|
-
sublabel:
|
|
10057
|
+
sublabel: cs[e]?.name ?? e,
|
|
10067
10058
|
leading: /* @__PURE__ */ _(U, {
|
|
10068
10059
|
code: e,
|
|
10069
10060
|
src: q(e),
|
|
@@ -10104,7 +10095,7 @@ function Ss({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
|
|
|
10104
10095
|
}),
|
|
10105
10096
|
ne ? /* @__PURE__ */ v("div", {
|
|
10106
10097
|
className: "grid grid-cols-1 gap-3 sm:grid-cols-2",
|
|
10107
|
-
children: [/* @__PURE__ */ _(
|
|
10098
|
+
children: [/* @__PURE__ */ _(To, {
|
|
10108
10099
|
id: "wd-source",
|
|
10109
10100
|
label: "From wallet",
|
|
10110
10101
|
placeholder: "Select a source wallet",
|
|
@@ -10113,7 +10104,7 @@ function Ss({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
|
|
|
10113
10104
|
onChange: c,
|
|
10114
10105
|
variant: "detailed",
|
|
10115
10106
|
emptyMessage: "No wallets for this coin & network."
|
|
10116
|
-
}), /* @__PURE__ */ _(
|
|
10107
|
+
}), /* @__PURE__ */ _(Co, {
|
|
10117
10108
|
id: "wd-from-tag",
|
|
10118
10109
|
label: "From tag",
|
|
10119
10110
|
value: u,
|
|
@@ -10124,7 +10115,7 @@ function Ss({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
|
|
|
10124
10115
|
autoComplete: "off",
|
|
10125
10116
|
inputClassName: "font-mono text-[13px]"
|
|
10126
10117
|
})]
|
|
10127
|
-
}) : /* @__PURE__ */ _(
|
|
10118
|
+
}) : /* @__PURE__ */ _(To, {
|
|
10128
10119
|
id: "wd-source",
|
|
10129
10120
|
label: "From wallet",
|
|
10130
10121
|
placeholder: "Select a source wallet",
|
|
@@ -10134,17 +10125,17 @@ function Ss({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
|
|
|
10134
10125
|
variant: "detailed",
|
|
10135
10126
|
emptyMessage: "No wallets for this coin & network."
|
|
10136
10127
|
}),
|
|
10137
|
-
/* @__PURE__ */ _(
|
|
10128
|
+
/* @__PURE__ */ _(Co, {
|
|
10138
10129
|
id: "wd-dest",
|
|
10139
10130
|
label: "To address",
|
|
10140
10131
|
value: p,
|
|
10141
10132
|
onChange: m,
|
|
10142
|
-
placeholder: `Paste a ${
|
|
10133
|
+
placeholder: `Paste a ${cs[a]?.name ?? a} ${r} address`,
|
|
10143
10134
|
spellCheck: !1,
|
|
10144
10135
|
autoComplete: "off",
|
|
10145
10136
|
inputClassName: "h-10 font-mono text-[13px]"
|
|
10146
10137
|
}),
|
|
10147
|
-
/* @__PURE__ */ _(
|
|
10138
|
+
/* @__PURE__ */ _(So, {
|
|
10148
10139
|
id: "wd-amount",
|
|
10149
10140
|
value: h,
|
|
10150
10141
|
onChange: ce,
|
|
@@ -10176,11 +10167,11 @@ function Ss({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
|
|
|
10176
10167
|
]
|
|
10177
10168
|
})
|
|
10178
10169
|
}),
|
|
10179
|
-
/* @__PURE__ */ _(
|
|
10170
|
+
/* @__PURE__ */ _(vs, {
|
|
10180
10171
|
className: "h-full",
|
|
10181
10172
|
coin: r,
|
|
10182
10173
|
network: a,
|
|
10183
|
-
networkName:
|
|
10174
|
+
networkName: cs[a]?.name,
|
|
10184
10175
|
amount: ae,
|
|
10185
10176
|
amountFiat: M,
|
|
10186
10177
|
from: O ? {
|
|
@@ -10251,7 +10242,7 @@ function Ss({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
|
|
|
10251
10242
|
" ",
|
|
10252
10243
|
/* @__PURE__ */ _("span", {
|
|
10253
10244
|
className: "font-mono text-foreground",
|
|
10254
|
-
children: te ?
|
|
10245
|
+
children: te ? bs(p.trim()) : ""
|
|
10255
10246
|
})
|
|
10256
10247
|
]
|
|
10257
10248
|
}), /* @__PURE__ */ v("div", {
|
|
@@ -10260,7 +10251,7 @@ function Ss({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
|
|
|
10260
10251
|
htmlFor: "wd-code",
|
|
10261
10252
|
className: "text-[13px] font-medium text-muted-foreground",
|
|
10262
10253
|
children: "Authentication code"
|
|
10263
|
-
}), /* @__PURE__ */ _(
|
|
10254
|
+
}), /* @__PURE__ */ _(Ss, {
|
|
10264
10255
|
id: "wd-code",
|
|
10265
10256
|
value: C,
|
|
10266
10257
|
onChange: w
|
|
@@ -10287,7 +10278,7 @@ function Ss({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
|
|
|
10287
10278
|
]
|
|
10288
10279
|
});
|
|
10289
10280
|
}
|
|
10290
|
-
function
|
|
10281
|
+
function Ss({ id: e, value: t, onChange: n, length: r = 6 }) {
|
|
10291
10282
|
let [i, a] = d(!1), o = Array.from({ length: r }, (e, n) => t[n] ?? ""), s = Math.min(t.length, r - 1);
|
|
10292
10283
|
return /* @__PURE__ */ v("div", {
|
|
10293
10284
|
className: "relative",
|
|
@@ -10317,14 +10308,14 @@ function Cs({ id: e, value: t, onChange: n, length: r = 6 }) {
|
|
|
10317
10308
|
}
|
|
10318
10309
|
//#endregion
|
|
10319
10310
|
//#region ../../react-app/src/components/withdraw/types.ts
|
|
10320
|
-
var
|
|
10321
|
-
function
|
|
10322
|
-
let [t, n] = d(() => localStorage.getItem(
|
|
10311
|
+
var Cs = /* @__PURE__ */ F({}), ws = "Ipche", Ts = "gateUnlocked";
|
|
10312
|
+
function Es({ children: e }) {
|
|
10313
|
+
let [t, n] = d(() => localStorage.getItem(Ts) === "true"), [r, i] = d(""), [a, o] = d(!1);
|
|
10323
10314
|
return t ? /* @__PURE__ */ _(g, { children: e }) : /* @__PURE__ */ _("div", {
|
|
10324
10315
|
className: "flex h-svh items-center justify-center bg-background p-4",
|
|
10325
10316
|
children: /* @__PURE__ */ v("form", {
|
|
10326
10317
|
onSubmit: (e) => {
|
|
10327
|
-
e.preventDefault(), r ===
|
|
10318
|
+
e.preventDefault(), r === ws ? (localStorage.setItem(Ts, "true"), n(!0)) : o(!0);
|
|
10328
10319
|
},
|
|
10329
10320
|
className: "w-full max-w-xs space-y-4 rounded-xl border border-border bg-card p-6 shadow-sm",
|
|
10330
10321
|
children: [/* @__PURE__ */ v("div", {
|
|
@@ -10358,4 +10349,4 @@ function Ds({ children: e }) {
|
|
|
10358
10349
|
});
|
|
10359
10350
|
}
|
|
10360
10351
|
//#endregion
|
|
10361
|
-
export { de as ActionFooter,
|
|
10352
|
+
export { de as ActionFooter, So as AmountField, yr as AppHeaderV1, wr as AppHeaderV2, gi as AssetValue, zn as Avatar, Vn as Badge, Vn as NavBadge, ho as BalancesSummary, vi as BlockchainDetails, z as Button, xt as Calendar, St as Checkbox, U as CoinLogo, Mr as ColumnsMenu, Mt as ConfirmDialog, ko as ConvertHistoryTable, Wo as ConvertPanel, $ as ConvertPickerField, $ as DepositPickerField, $ as PickerField, $ as WithdrawPickerField, jo as ConvertSummary, Nr as CopyButton, W as CopyableId, Ir as CurrencyNetwork, sa as DailyBalancesTable, zr as DataTable, ts as DepositHistoryTable, as as DepositPanel, is as DepositReceiveCard, Y as DetailField, Ct as Dialog, Tt as DialogClose, Dt as DialogContent, jt as DialogDescription, kt as DialogFooter, Ot as DialogHeader, At as DialogTitle, wt as DialogTrigger, ua as DonutChart, Vr as DownloadMenu, Nt as DropdownMenu, Rt as DropdownMenuCheckboxItem, It as DropdownMenuContent, Ft as DropdownMenuGroup, Lt as DropdownMenuItem, Bt as DropdownMenuLabel, Wt as DropdownMenuRadioGroup, B as DropdownMenuRadioItem, zt as DropdownMenuSeparator, Vt as DropdownMenuSub, Ut as DropdownMenuSubContent, Ht as DropdownMenuSubTrigger, Pt as DropdownMenuTrigger, fa as ExportHistoryList, dr as FULL_NAV, Cr as HeaderSearch, Tr as HeaderStickyContext, Wn as ICONS, Gn as ICON_NAMES, Gt as Input, Kt as Label, Jn as Logo, mr as NAV_ITEMS, pr as NAV_PRESETS, _r as NavDrawer, er as NavGroup, Kn as NavIcon, Zn as NavItem, Hn as NavLabel, $n as NavRailSection, Qn as NavSection, nr as NotificationItem, ar as NotificationsMenu, ir as NotificationsPanel, fr as PRIMARY_NAV, vr as PageContainer, kr as PageTitle, Ar as PageTitleChip, jr as PageTitlePanel, qt as Pagination, Jt as PaginationContent, $t as PaginationEllipsis, Yt as PaginationItem, Xt as PaginationLink, Qt as PaginationNext, Zt as PaginationPrevious, Es as PasswordGate, Ur as PaymentType, Ea as PeriodPicker, en as Popover, nn as PopoverAnchor, rn as PopoverContent, tn as PopoverTrigger, rs as QrCode, an as RadioGroup, on as RadioGroupItem, Fa as ReportSummaryCard, Ia as ReportSummaryGroup, La as ReportsSummaryEmpty, Si as RiskAssessment, Wr as RiskSignal, rr as SAMPLE_NOTIFICATIONS, Ii as SavePresetDialog, Ri as SavedPresetsBar, cn as ScrollArea, Xn as SectionHeading, ln as Separator, un as SidePanel, gn as SidePanelBody, fn as SidePanelClose, mn as SidePanelContent, yn as SidePanelDescription, _n as SidePanelFooter, hn as SidePanelHeader, xn as SidePanelSectionTitle, bn as SidePanelSeparator, vn as SidePanelTitle, dn as SidePanelTrigger, V as Skeleton, Lr as SortHeader, Kr as StatusBadge, Qi as TRANSACTION_SEARCH_SCOPES, Sn as Table, wn as TableBody, On as TableCaption, H as TableCell, Tn as TableFooter, Dn as TableHead, Cn as TableHeader, En as TableRow, kn as Tabs, Nn as TabsContent, jn as TabsList, Mn as TabsTrigger, Co as TextField, Pr as TextLink, G as TextStack, Fn as Tooltip, Ln as TooltipContent, Pn as TooltipProvider, In as TooltipTrigger, Hi as TransactionDetailPanel, Bi as TransactionInfo, Vi as TransactionReference, zi as TransactionSummary, Yi as TransactionsFilterPanel, ea as TransactionsTable, na as TransactionsTableOptions, pe as UiBadge, ur as UserMenu, po as WalletBalancesTable, To as WalletField, no as WalletRowActions, _s as WithdrawHistoryTable, xs as WithdrawPanel, vs as WithdrawSummary, fe as badgeVariants, go as balancesData, bo as balancesRecentTransactions, yo as balancesTypes, R as buttonVariants, No as convertData, Ko as convertTypes, qo as depositData, os as depositTypes, hr as findNavItem, Da as reportsData, pa as reportsPresets, za as reportsReportData, Ra as reportsTypes, An as tabsListVariants, $i as transactionColumnOptions, qr as transactionsData, Ei as transactionsFilters, Ci as transactionsStatuses, ra as transactionsTypes, Er as useHeaderExtension, ss as withdrawData, Cs as withdrawTypes };
|