@chainberry/ui-components 1.0.9 → 1.0.11

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.mjs CHANGED
@@ -2845,6 +2845,11 @@ var dr = [
2845
2845
  label: "Balances",
2846
2846
  icon: "wallet"
2847
2847
  },
2848
+ {
2849
+ id: "balances-v2",
2850
+ label: "Balances V2",
2851
+ icon: "wallet"
2852
+ },
2848
2853
  {
2849
2854
  id: "balances-v4",
2850
2855
  label: "Balances V4",
@@ -2869,6 +2874,11 @@ var dr = [
2869
2874
  id: "conversion",
2870
2875
  label: "Convert",
2871
2876
  icon: "convert"
2877
+ },
2878
+ {
2879
+ id: "activity",
2880
+ label: "Activity",
2881
+ icon: "list"
2872
2882
  }
2873
2883
  ]
2874
2884
  },
@@ -2991,6 +3001,11 @@ var dr = [
2991
3001
  label: "Balances",
2992
3002
  icon: "wallet"
2993
3003
  },
3004
+ {
3005
+ id: "balances-v2",
3006
+ label: "Balances V2",
3007
+ icon: "wallet"
3008
+ },
2994
3009
  {
2995
3010
  id: "balances-v4",
2996
3011
  label: "Balances V4",
@@ -3010,6 +3025,11 @@ var dr = [
3010
3025
  id: "conversion",
3011
3026
  label: "Convert",
3012
3027
  icon: "convert"
3028
+ },
3029
+ {
3030
+ id: "activity",
3031
+ label: "Activity",
3032
+ icon: "list"
3013
3033
  }
3014
3034
  ]
3015
3035
  },
@@ -3869,60 +3889,50 @@ function G({ primary: e, secondary: t, align: n = "start", tabularNums: r = !1,
3869
3889
  //#endregion
3870
3890
  //#region ../../react-app/src/components/transactions/txTypes.ts
3871
3891
  var K = {
3872
- deposit: {
3892
+ DEPOSIT: {
3873
3893
  label: "Deposit",
3874
3894
  direction: "in"
3875
3895
  },
3876
- withdrawal: {
3896
+ WITHDRAWAL: {
3877
3897
  label: "Withdrawal",
3878
3898
  direction: "out"
3879
3899
  },
3880
- checkout: {
3900
+ CHECKOUT: {
3881
3901
  label: "Checkout",
3882
3902
  direction: "neutral"
3883
3903
  },
3884
- "manual-deposit": {
3904
+ MANUAL_DEPOSIT: {
3885
3905
  label: "Manual Deposit",
3886
3906
  direction: "in"
3887
3907
  },
3888
- "manual-withdrawal": {
3908
+ MANUAL_WITHDRAWAL: {
3889
3909
  label: "Manual Withdrawal",
3890
3910
  direction: "out"
3891
3911
  },
3892
- "auto-conversion-deposit": {
3912
+ AUTO_CONVERSION_DEPOSIT: {
3893
3913
  label: "Auto-Conversion Deposit",
3894
3914
  direction: "in"
3895
3915
  },
3896
- "auto-conversion-withdrawal": {
3916
+ AUTO_CONVERSION_WITHDRAWAL: {
3897
3917
  label: "Auto-Conversion Withdrawal",
3898
3918
  direction: "out"
3899
3919
  },
3900
- "automatic-withdrawal": {
3920
+ AUTOMATIC_WITHDRAWAL: {
3901
3921
  label: "Automatic Withdrawal",
3902
3922
  direction: "out"
3903
3923
  },
3904
- unknown: {
3924
+ UNKNOWN: {
3905
3925
  label: "Unknown",
3906
3926
  direction: "neutral"
3907
3927
  }
3908
- }, qr = [
3909
- "deposit",
3910
- "withdrawal",
3911
- "checkout",
3912
- "manual-deposit",
3913
- "manual-withdrawal",
3914
- "auto-conversion-deposit",
3915
- "auto-conversion-withdrawal",
3916
- "automatic-withdrawal",
3917
- "unknown"
3918
- ], Jr = /* @__PURE__ */ F({
3919
- NETWORK_LABELS: () => ci,
3920
- SAVED_PRESETS: () => oi,
3921
- TRANSACTIONS: () => ai,
3928
+ }, qr = /* @__PURE__ */ F({
3929
+ NETWORK_LABELS: () => si,
3930
+ SAVED_PRESETS: () => ai,
3931
+ TRANSACTIONS: () => ii,
3922
3932
  coinSrc: () => q,
3923
- needsAction: () => si,
3924
- toTransactionDetail: () => gi
3925
- }), Yr = [
3933
+ needsAction: () => oi,
3934
+ toTransactionDetail: () => hi
3935
+ }), Jr = [
3926
3936
  "usdt",
3927
3937
  "usdc",
3928
3938
  "eth",
@@ -3932,17 +3942,18 @@ var K = {
3932
3942
  "avax",
3933
3943
  "bnb",
3934
3944
  "ton",
3935
- "tron"
3945
+ "trx",
3946
+ "ltc"
3936
3947
  ];
3937
3948
  function q(e) {
3938
3949
  let t = e.toLowerCase();
3939
- return Yr.includes(t) ? `/coins/${t}.png` : void 0;
3950
+ return Jr.includes(t) ? `/coins/${t}.png` : void 0;
3940
3951
  }
3941
- var Xr = [
3952
+ var Yr = [
3942
3953
  {
3943
3954
  id: "tx-01",
3944
- type: "deposit",
3945
- status: "processing",
3955
+ type: "DEPOSIT",
3956
+ status: "PROCESSING",
3946
3957
  risk: "low",
3947
3958
  amount: "+1,582.18",
3948
3959
  currency: "USDT",
@@ -3955,8 +3966,8 @@ var Xr = [
3955
3966
  },
3956
3967
  {
3957
3968
  id: "tx-02",
3958
- type: "withdrawal",
3959
- status: "confirmed",
3969
+ type: "WITHDRAWAL",
3970
+ status: "CONFIRMED",
3960
3971
  risk: "medium",
3961
3972
  amount: "-140.80",
3962
3973
  currency: "USDT",
@@ -3971,8 +3982,8 @@ var Xr = [
3971
3982
  },
3972
3983
  {
3973
3984
  id: "tx-03",
3974
- type: "withdrawal",
3975
- status: "confirmed",
3985
+ type: "WITHDRAWAL",
3986
+ status: "CONFIRMED",
3976
3987
  risk: "low",
3977
3988
  amount: "-1,249.10",
3978
3989
  currency: "USDT",
@@ -3987,8 +3998,8 @@ var Xr = [
3987
3998
  },
3988
3999
  {
3989
4000
  id: "tx-04",
3990
- type: "deposit",
3991
- status: "created",
4001
+ type: "DEPOSIT",
4002
+ status: "CREATED",
3992
4003
  risk: "low",
3993
4004
  amount: "+2,234.80",
3994
4005
  currency: "USDC",
@@ -4001,8 +4012,8 @@ var Xr = [
4001
4012
  },
4002
4013
  {
4003
4014
  id: "tx-05",
4004
- type: "withdrawal",
4005
- status: "confirmed",
4015
+ type: "WITHDRAWAL",
4016
+ status: "CONFIRMED",
4006
4017
  risk: "high",
4007
4018
  amount: "-1,559.93",
4008
4019
  currency: "USDT",
@@ -4017,8 +4028,8 @@ var Xr = [
4017
4028
  },
4018
4029
  {
4019
4030
  id: "tx-06",
4020
- type: "withdrawal",
4021
- status: "created",
4031
+ type: "WITHDRAWAL",
4032
+ status: "CREATED",
4022
4033
  risk: "low",
4023
4034
  amount: "-0.13836",
4024
4035
  currency: "ETH",
@@ -4031,8 +4042,8 @@ var Xr = [
4031
4042
  },
4032
4043
  {
4033
4044
  id: "tx-07",
4034
- type: "withdrawal",
4035
- status: "confirmed",
4045
+ type: "WITHDRAWAL",
4046
+ status: "CONFIRMED",
4036
4047
  risk: "low",
4037
4048
  amount: "-788.34",
4038
4049
  currency: "USDC",
@@ -4047,8 +4058,8 @@ var Xr = [
4047
4058
  },
4048
4059
  {
4049
4060
  id: "tx-08",
4050
- type: "deposit",
4051
- status: "created",
4061
+ type: "DEPOSIT",
4062
+ status: "CREATED",
4052
4063
  risk: "low",
4053
4064
  amount: "+1,205.65",
4054
4065
  currency: "USDT",
@@ -4061,8 +4072,8 @@ var Xr = [
4061
4072
  },
4062
4073
  {
4063
4074
  id: "tx-09",
4064
- type: "withdrawal",
4065
- status: "rejected",
4075
+ type: "WITHDRAWAL",
4076
+ status: "REJECTED",
4066
4077
  risk: "high",
4067
4078
  amount: "-0.04448807",
4068
4079
  currency: "BTC",
@@ -4075,8 +4086,8 @@ var Xr = [
4075
4086
  },
4076
4087
  {
4077
4088
  id: "tx-10",
4078
- type: "deposit",
4079
- status: "confirmed",
4089
+ type: "DEPOSIT",
4090
+ status: "CONFIRMED",
4080
4091
  risk: "low",
4081
4092
  amount: "+0.95688",
4082
4093
  currency: "ETH",
@@ -4091,8 +4102,8 @@ var Xr = [
4091
4102
  },
4092
4103
  {
4093
4104
  id: "tx-11",
4094
- type: "deposit",
4095
- status: "confirmed",
4105
+ type: "DEPOSIT",
4106
+ status: "CONFIRMED",
4096
4107
  risk: "low",
4097
4108
  amount: "+967.75",
4098
4109
  currency: "USDT",
@@ -4107,8 +4118,8 @@ var Xr = [
4107
4118
  },
4108
4119
  {
4109
4120
  id: "tx-12",
4110
- type: "withdrawal",
4111
- status: "processing",
4121
+ type: "WITHDRAWAL",
4122
+ status: "PROCESSING",
4112
4123
  risk: "medium",
4113
4124
  amount: "-320.00",
4114
4125
  currency: "USDC",
@@ -4121,8 +4132,8 @@ var Xr = [
4121
4132
  },
4122
4133
  {
4123
4134
  id: "tx-13",
4124
- type: "deposit",
4125
- status: "confirmed",
4135
+ type: "DEPOSIT",
4136
+ status: "CONFIRMED",
4126
4137
  risk: "low",
4127
4138
  amount: "+5,000.00",
4128
4139
  currency: "USDT",
@@ -4137,8 +4148,8 @@ var Xr = [
4137
4148
  },
4138
4149
  {
4139
4150
  id: "tx-14",
4140
- type: "withdrawal",
4141
- status: "rejected",
4151
+ type: "WITHDRAWAL",
4152
+ status: "REJECTED",
4142
4153
  risk: "high",
4143
4154
  amount: "-2.10500000",
4144
4155
  currency: "ETH",
@@ -4151,8 +4162,8 @@ var Xr = [
4151
4162
  },
4152
4163
  {
4153
4164
  id: "tx-15",
4154
- type: "withdrawal",
4155
- status: "confirmed",
4165
+ type: "WITHDRAWAL",
4166
+ status: "CONFIRMED",
4156
4167
  risk: "high",
4157
4168
  amount: "-3,400.00",
4158
4169
  currency: "USDT",
@@ -4167,8 +4178,8 @@ var Xr = [
4167
4178
  },
4168
4179
  {
4169
4180
  id: "tx-16",
4170
- type: "deposit",
4171
- status: "confirmed",
4181
+ type: "DEPOSIT",
4182
+ status: "CONFIRMED",
4172
4183
  risk: "low",
4173
4184
  amount: "+1,120.40",
4174
4185
  currency: "USDT",
@@ -4183,8 +4194,8 @@ var Xr = [
4183
4194
  },
4184
4195
  {
4185
4196
  id: "tx-17",
4186
- type: "deposit",
4187
- status: "created",
4197
+ type: "DEPOSIT",
4198
+ status: "CREATED",
4188
4199
  risk: "medium",
4189
4200
  amount: "+742.19",
4190
4201
  currency: "USDC",
@@ -4197,8 +4208,8 @@ var Xr = [
4197
4208
  },
4198
4209
  {
4199
4210
  id: "tx-18",
4200
- type: "withdrawal",
4201
- status: "confirmed",
4211
+ type: "WITHDRAWAL",
4212
+ status: "CONFIRMED",
4202
4213
  risk: "low",
4203
4214
  amount: "-0.02100000",
4204
4215
  currency: "BTC",
@@ -4213,8 +4224,8 @@ var Xr = [
4213
4224
  },
4214
4225
  {
4215
4226
  id: "tx-19",
4216
- type: "deposit",
4217
- status: "confirmed",
4227
+ type: "DEPOSIT",
4228
+ status: "CONFIRMED",
4218
4229
  risk: "low",
4219
4230
  amount: "+1,200.00",
4220
4231
  currency: "TON",
@@ -4229,8 +4240,8 @@ var Xr = [
4229
4240
  },
4230
4241
  {
4231
4242
  id: "tx-20",
4232
- type: "withdrawal",
4233
- status: "processing",
4243
+ type: "WITHDRAWAL",
4244
+ status: "PROCESSING",
4234
4245
  risk: "medium",
4235
4246
  amount: "-540.00",
4236
4247
  currency: "TON",
@@ -4241,20 +4252,20 @@ var Xr = [
4241
4252
  userId: "user-3d0c8f24aa17bb",
4242
4253
  orderId: "ord-c52d90ee44ff21ab"
4243
4254
  }
4255
+ ], Xr = [
4256
+ "CREATED",
4257
+ "PROCESSING",
4258
+ "KYT_IN_PROGRESS",
4259
+ "PENDING_APPROVAL",
4260
+ "REJECTED",
4261
+ "CONFIRMED",
4262
+ "FAILED",
4263
+ "CONVERSION_IN_PROGRESS",
4264
+ "REFUND_IN_PROGRESS",
4265
+ "PENDING_VERIFICATION",
4266
+ "PARTIALLY_COMPLETED",
4267
+ "CURRENCY_MISMATCH"
4244
4268
  ], Zr = [
4245
- "created",
4246
- "processing",
4247
- "kyt-in-progress",
4248
- "pending-approval",
4249
- "rejected",
4250
- "confirmed",
4251
- "failed",
4252
- "conversion-in-progress",
4253
- "refund-in-progress",
4254
- "pending-verification",
4255
- "partially-completed",
4256
- "currency-mismatch"
4257
- ], Qr = [
4258
4269
  ["USDT", "ETH"],
4259
4270
  ["USDT", "POL"],
4260
4271
  ["USDT", "SOL"],
@@ -4265,34 +4276,34 @@ var Xr = [
4265
4276
  ["ETH", "ETH"],
4266
4277
  ["BTC", "BTC"],
4267
4278
  ["TON", "TON"]
4279
+ ], Qr = [
4280
+ "DEPOSIT",
4281
+ "WITHDRAWAL",
4282
+ "CHECKOUT",
4283
+ "MANUAL_DEPOSIT",
4284
+ "MANUAL_WITHDRAWAL",
4285
+ "AUTO_CONVERSION_DEPOSIT",
4286
+ "AUTO_CONVERSION_WITHDRAWAL",
4287
+ "AUTOMATIC_WITHDRAWAL",
4288
+ "UNKNOWN"
4268
4289
  ], $r = [
4269
- "deposit",
4270
- "withdrawal",
4271
- "checkout",
4272
- "manual-deposit",
4273
- "manual-withdrawal",
4274
- "auto-conversion-deposit",
4275
- "auto-conversion-withdrawal",
4276
- "automatic-withdrawal",
4277
- "unknown"
4278
- ], ei = [
4279
4290
  "low",
4280
4291
  "medium",
4281
4292
  "high"
4282
- ], ti = ["Jun", "Jul"], ni = /* @__PURE__ */ new Set(["confirmed", "partially-completed"]);
4293
+ ], ei = ["Jun", "Jul"], ti = /* @__PURE__ */ new Set(["CONFIRMED", "PARTIALLY_COMPLETED"]);
4283
4294
  function J(e, t) {
4284
4295
  let n = e * 2654435761 >>> 0, r = "";
4285
4296
  for (; r.length < t;) r += (n & 15).toString(16), n = n * 16807 >>> 0 || 1;
4286
4297
  return r.slice(0, t);
4287
4298
  }
4288
- var ri = (e) => String(e).padStart(2, "0");
4289
- function ii(e, t) {
4299
+ var ni = (e) => String(e).padStart(2, "0");
4300
+ function ri(e, t) {
4290
4301
  let n = [];
4291
4302
  for (let r = 0; r < e; r++) {
4292
- let e = t + r, i = $r[e % $r.length], a = Zr[e % Zr.length], o = ei[e * 7 % 3], [s, c] = Qr[e % Qr.length], l = K[i].direction === "out" ? "-" : "+", u = ((e * 173 + 41) % 8e3 + 12 + e * 37 % 100 / 100).toLocaleString("en-US", {
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", {
4293
4304
  minimumFractionDigits: 2,
4294
4305
  maximumFractionDigits: 2
4295
- }), d = `${ti[(e >> 5) % 2]} ${ri(e * 3 % 28 + 1)}, 2026`, f = e * 5 % 12 + 1, p = e * 13 % 60, m = e % 2 == 0 ? "AM" : "PM", h = `${ri(f)}:${ri(p)} ${m}`, g = ni.has(a);
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);
4296
4307
  n.push({
4297
4308
  id: `tx-${String(e + 1).padStart(3, "0")}`,
4298
4309
  type: i,
@@ -4305,14 +4316,14 @@ function ii(e, t) {
4305
4316
  createdAt: d,
4306
4317
  createdTime: h,
4307
4318
  confirmedAt: g ? d : void 0,
4308
- confirmedTime: g ? `${ri(f)}:${ri((p + 4) % 60)} ${m}` : void 0,
4319
+ confirmedTime: g ? `${ni(f)}:${ni((p + 4) % 60)} ${m}` : void 0,
4309
4320
  userId: `user-${J(e + 11, 14)}`,
4310
4321
  orderId: `ord-${J(e + 101, 16)}`
4311
4322
  });
4312
4323
  }
4313
4324
  return n;
4314
4325
  }
4315
- var ai = [...Xr, ...ii(243, Xr.length)], oi = [
4326
+ var ii = [...Yr, ...ri(243, Yr.length)], ai = [
4316
4327
  {
4317
4328
  id: "high-risk-withdrawals",
4318
4329
  label: "High-risk withdrawals",
@@ -4322,7 +4333,7 @@ var ai = [...Xr, ...ii(243, Xr.length)], oi = [
4322
4333
  {
4323
4334
  id: "failed-this-month",
4324
4335
  label: "Failed this month",
4325
- match: (e) => e.status === "failed" || e.status === "rejected",
4336
+ match: (e) => e.status === "FAILED" || e.status === "REJECTED",
4326
4337
  icon: "filter"
4327
4338
  },
4328
4339
  {
@@ -4332,10 +4343,10 @@ var ai = [...Xr, ...ii(243, Xr.length)], oi = [
4332
4343
  icon: "deposit"
4333
4344
  }
4334
4345
  ];
4335
- function si(e) {
4336
- return e.status === "pending-approval" || e.status === "pending-verification" || e.status === "currency-mismatch";
4346
+ function oi(e) {
4347
+ return e.status === "PENDING_APPROVAL" || e.status === "PENDING_VERIFICATION" || e.status === "CURRENCY_MISMATCH";
4337
4348
  }
4338
- var ci = {
4349
+ var si = {
4339
4350
  ETH: "Ethereum",
4340
4351
  POL: "Polygon",
4341
4352
  SOL: "Solana",
@@ -4344,53 +4355,53 @@ var ci = {
4344
4355
  BTC: "Bitcoin",
4345
4356
  TON: "TON"
4346
4357
  };
4347
- function li(e, t) {
4358
+ function ci(e, t) {
4348
4359
  return (e === "low" ? 8 : e === "medium" ? 42 : 76) + t % 12;
4349
4360
  }
4350
- function ui(e) {
4351
- 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";
4361
+ function li(e) {
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";
4352
4363
  }
4353
- var di = {
4364
+ var ui = {
4354
4365
  "auto-approved": "Huobi/HTX sanctioned entity amount < 10 USD",
4355
4366
  approved: "Counterparty cleared — no sanctioned exposure detected",
4356
4367
  "manual-review": "Exposure to a high-risk exchange above the review threshold",
4357
4368
  flagged: "Direct exposure to a darknet marketplace cluster",
4358
4369
  rejected: "Funds traced to an OFAC-sanctioned address"
4359
4370
  };
4360
- function fi(e) {
4371
+ function di(e) {
4361
4372
  let t = parseInt(e.replace(/\D/g, ""), 10);
4362
4373
  return Number.isFinite(t) ? t : 1;
4363
4374
  }
4364
- function pi(e) {
4375
+ function fi(e) {
4365
4376
  return e.replace(/^[+-]/, "");
4366
4377
  }
4367
- var mi = /* @__PURE__ */ new Set(["TON", "XRP"]);
4368
- function hi(e) {
4378
+ var pi = /* @__PURE__ */ new Set(["TON", "XRP"]);
4379
+ function mi(e) {
4369
4380
  return String((e * 2654435761 >>> 0) % 9e6 + 1e6);
4370
4381
  }
4371
- function gi(e) {
4372
- let t = fi(e.id), n = ui(e), r = ci[e.network] ?? e.network, i = !!e.confirmedAt, a = mi.has(e.currency);
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);
4373
4384
  return {
4374
4385
  ...e,
4375
4386
  networkLabel: r,
4376
4387
  updatedAt: e.confirmedAt ?? e.createdAt,
4377
4388
  updatedTime: e.confirmedTime ?? e.createdTime,
4378
4389
  customerWallet: `T${J(t + 7, 8)}${J(t + 3, 6)}`,
4379
- customerTag: a ? hi(t + 1) : void 0,
4380
- expectedAmount: `${pi(e.amount)} ${e.currency}`,
4390
+ customerTag: a ? mi(t + 1) : void 0,
4391
+ expectedAmount: `${fi(e.amount)} ${e.currency}`,
4381
4392
  rate: `1 ${e.currency} = $1.00`,
4382
4393
  commissionFee: `${(t % 5 + 1).toFixed(2)} ${e.currency}`,
4383
4394
  riskAssessment: {
4384
- score: li(e.risk, t),
4395
+ score: ci(e.risk, t),
4385
4396
  level: e.risk,
4386
4397
  decision: n,
4387
4398
  provider: "Crystal",
4388
- reason: di[n]
4399
+ reason: ui[n]
4389
4400
  },
4390
4401
  fromAddress: `T${J(t + 21, 8)}${J(t + 5, 6)}`,
4391
- fromTag: a ? hi(t + 2) : void 0,
4402
+ fromTag: a ? mi(t + 2) : void 0,
4392
4403
  toAddress: `T${J(t + 31, 8)}${J(t + 9, 6)}`,
4393
- toTag: a ? hi(t + 1) : void 0,
4404
+ toTag: a ? mi(t + 1) : void 0,
4394
4405
  txHash: J(t + 41, 40),
4395
4406
  txFee: i ? `${(t % 9 + 1).toFixed(2)} ${r}` : "—",
4396
4407
  transactionUid: `${J(t + 51, 8)}${J(t + 2, 6)}`,
@@ -4399,7 +4410,7 @@ function gi(e) {
4399
4410
  }
4400
4411
  //#endregion
4401
4412
  //#region ../../react-app/src/components/transactions/AssetValue.tsx
4402
- function _i({ value: e, code: t, icon: n = !0, className: r }) {
4413
+ function gi({ value: e, code: t, icon: n = !0, className: r }) {
4403
4414
  return /* @__PURE__ */ v("span", {
4404
4415
  className: I("flex items-center gap-2", r),
4405
4416
  children: [n && /* @__PURE__ */ _(U, {
@@ -4425,7 +4436,7 @@ function Y({ label: e, show: t = !0, className: n, children: r }) {
4425
4436
  }
4426
4437
  //#endregion
4427
4438
  //#region ../../react-app/src/components/transactions/BlockchainDetails.tsx
4428
- function vi({ title: e, detail: t, show: n, className: r }) {
4439
+ function _i({ title: e, detail: t, show: n, className: r }) {
4429
4440
  let i = (e) => n?.[e] !== !1, a = t.fromTag != null, o = t.toTag != null;
4430
4441
  return /* @__PURE__ */ v("div", {
4431
4442
  className: r,
@@ -4510,7 +4521,7 @@ function vi({ title: e, detail: t, show: n, className: r }) {
4510
4521
  })]
4511
4522
  });
4512
4523
  }
4513
- function yi({ detail: e, show: t, showRefund: n = !0, className: r }) {
4524
+ function vi({ detail: e, show: t, showRefund: n = !0, className: r }) {
4514
4525
  return /* @__PURE__ */ v("section", {
4515
4526
  className: r,
4516
4527
  children: [
@@ -4518,12 +4529,12 @@ function yi({ detail: e, show: t, showRefund: n = !0, className: r }) {
4518
4529
  className: "mb-6",
4519
4530
  children: "Blockchain Details"
4520
4531
  }),
4521
- /* @__PURE__ */ _(vi, {
4532
+ /* @__PURE__ */ _(_i, {
4522
4533
  title: `${K[e.type].label} ${e.currency}`,
4523
4534
  detail: e,
4524
4535
  show: t
4525
4536
  }),
4526
- n && /* @__PURE__ */ _(vi, {
4537
+ n && /* @__PURE__ */ _(_i, {
4527
4538
  title: `Refund ${e.currency}`,
4528
4539
  detail: e,
4529
4540
  show: t,
@@ -4534,7 +4545,7 @@ function yi({ detail: e, show: t, showRefund: n = !0, className: r }) {
4534
4545
  }
4535
4546
  //#endregion
4536
4547
  //#region ../../react-app/src/components/transactions/RiskAssessment.tsx
4537
- var bi = {
4548
+ var yi = {
4538
4549
  "auto-approved": {
4539
4550
  label: "Auto-approved",
4540
4551
  icon: Ne,
@@ -4561,10 +4572,10 @@ var bi = {
4561
4572
  className: "text-red-600 dark:text-red-400"
4562
4573
  }
4563
4574
  };
4564
- function xi(e) {
4575
+ function bi(e) {
4565
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";
4566
4577
  }
4567
- function Si({ label: e, children: t }) {
4578
+ function xi({ label: e, children: t }) {
4568
4579
  return /* @__PURE__ */ v("div", {
4569
4580
  className: "min-w-0",
4570
4581
  children: [/* @__PURE__ */ _("div", {
@@ -4576,8 +4587,8 @@ function Si({ label: e, children: t }) {
4576
4587
  })]
4577
4588
  });
4578
4589
  }
4579
- function Ci({ assessment: e, actionRequired: t = !1, onApprove: n, onReject: r, className: i }) {
4580
- let { score: a, level: o, decision: s, provider: c, reason: l } = e, u = bi[s];
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];
4581
4592
  return /* @__PURE__ */ v("section", {
4582
4593
  className: I("space-y-3", i),
4583
4594
  children: [
@@ -4609,7 +4620,7 @@ function Ci({ assessment: e, actionRequired: t = !1, onApprove: n, onReject: r,
4609
4620
  children: [/* @__PURE__ */ _(Wr, { level: o }), /* @__PURE__ */ v("div", {
4610
4621
  className: "flex items-baseline gap-1",
4611
4622
  children: [/* @__PURE__ */ _("span", {
4612
- className: I("text-3xl font-semibold tabular-nums", xi(a)),
4623
+ className: I("text-3xl font-semibold tabular-nums", bi(a)),
4613
4624
  children: a
4614
4625
  }), /* @__PURE__ */ _("span", {
4615
4626
  className: "text-sm text-muted-foreground",
@@ -4640,20 +4651,20 @@ function Ci({ assessment: e, actionRequired: t = !1, onApprove: n, onReject: r,
4640
4651
  }), "Reject"]
4641
4652
  })]
4642
4653
  }),
4643
- /* @__PURE__ */ _(Si, {
4654
+ /* @__PURE__ */ _(xi, {
4644
4655
  label: "Reason",
4645
4656
  children: /* @__PURE__ */ _("span", {
4646
4657
  className: "text-muted-foreground",
4647
4658
  children: l
4648
4659
  })
4649
4660
  }),
4650
- /* @__PURE__ */ _(Si, {
4661
+ /* @__PURE__ */ _(xi, {
4651
4662
  label: "Assessment provided by",
4652
4663
  children: /* @__PURE__ */ _(Pr, { children: c })
4653
4664
  })
4654
4665
  ] }) : /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ v("div", {
4655
4666
  className: "grid grid-cols-2 gap-x-4 gap-y-3.5",
4656
- children: [/* @__PURE__ */ _(Si, {
4667
+ children: [/* @__PURE__ */ _(xi, {
4657
4668
  label: "Status",
4658
4669
  children: /* @__PURE__ */ v("span", {
4659
4670
  className: I("inline-flex items-center gap-1.5 font-medium", u.className),
@@ -4663,11 +4674,11 @@ function Ci({ assessment: e, actionRequired: t = !1, onApprove: n, onReject: r,
4663
4674
  strokeWidth: 2
4664
4675
  }), u.label]
4665
4676
  })
4666
- }), /* @__PURE__ */ _(Si, {
4677
+ }), /* @__PURE__ */ _(xi, {
4667
4678
  label: "Assessment provided by",
4668
4679
  children: /* @__PURE__ */ _(Pr, { children: c })
4669
4680
  })]
4670
- }), /* @__PURE__ */ _(Si, {
4681
+ }), /* @__PURE__ */ _(xi, {
4671
4682
  label: "Reason",
4672
4683
  children: /* @__PURE__ */ _("span", {
4673
4684
  className: "text-muted-foreground",
@@ -4679,73 +4690,73 @@ function Ci({ assessment: e, actionRequired: t = !1, onApprove: n, onReject: r,
4679
4690
  }
4680
4691
  //#endregion
4681
4692
  //#region ../../react-app/src/components/transactions/statuses.ts
4682
- var wi = /* @__PURE__ */ F({
4693
+ var Ci = /* @__PURE__ */ F({
4683
4694
  STATUS_META: () => X,
4684
- STATUS_ORDER: () => Ti,
4685
- TONE_DOT: () => Ei
4695
+ STATUS_ORDER: () => wi,
4696
+ TONE_DOT: () => Ti
4686
4697
  }), X = {
4687
- created: {
4698
+ CREATED: {
4688
4699
  label: "Created",
4689
4700
  tone: "sky"
4690
4701
  },
4691
- processing: {
4702
+ PROCESSING: {
4692
4703
  label: "Processing",
4693
4704
  tone: "sky"
4694
4705
  },
4695
- "kyt-in-progress": {
4706
+ KYT_IN_PROGRESS: {
4696
4707
  label: "KYT in Progress",
4697
4708
  tone: "violet"
4698
4709
  },
4699
- "pending-approval": {
4710
+ PENDING_APPROVAL: {
4700
4711
  label: "Pending Approval",
4701
4712
  tone: "amber"
4702
4713
  },
4703
- "pending-verification": {
4714
+ PENDING_VERIFICATION: {
4704
4715
  label: "Pending Verification",
4705
4716
  tone: "amber"
4706
4717
  },
4707
- "conversion-in-progress": {
4718
+ CONVERSION_IN_PROGRESS: {
4708
4719
  label: "Conversion in Progress",
4709
4720
  tone: "orange"
4710
4721
  },
4711
- "refund-in-progress": {
4722
+ REFUND_IN_PROGRESS: {
4712
4723
  label: "Refund in Progress",
4713
4724
  tone: "violet"
4714
4725
  },
4715
- "partially-completed": {
4726
+ PARTIALLY_COMPLETED: {
4716
4727
  label: "Partially Completed",
4717
4728
  tone: "emerald"
4718
4729
  },
4719
- confirmed: {
4730
+ CONFIRMED: {
4720
4731
  label: "Confirmed",
4721
4732
  tone: "emerald"
4722
4733
  },
4723
- "currency-mismatch": {
4734
+ CURRENCY_MISMATCH: {
4724
4735
  label: "Currency Mismatch",
4725
4736
  tone: "amber"
4726
4737
  },
4727
- rejected: {
4738
+ REJECTED: {
4728
4739
  label: "Rejected",
4729
4740
  tone: "red"
4730
4741
  },
4731
- failed: {
4742
+ FAILED: {
4732
4743
  label: "Failed",
4733
4744
  tone: "red"
4734
4745
  }
4735
- }, Ti = [
4736
- "created",
4737
- "processing",
4738
- "kyt-in-progress",
4739
- "pending-approval",
4740
- "pending-verification",
4741
- "conversion-in-progress",
4742
- "refund-in-progress",
4743
- "partially-completed",
4744
- "confirmed",
4745
- "currency-mismatch",
4746
- "rejected",
4747
- "failed"
4748
- ], Ei = {
4746
+ }, wi = [
4747
+ "CREATED",
4748
+ "PROCESSING",
4749
+ "KYT_IN_PROGRESS",
4750
+ "PENDING_APPROVAL",
4751
+ "PENDING_VERIFICATION",
4752
+ "CONVERSION_IN_PROGRESS",
4753
+ "REFUND_IN_PROGRESS",
4754
+ "PARTIALLY_COMPLETED",
4755
+ "CONFIRMED",
4756
+ "CURRENCY_MISMATCH",
4757
+ "REJECTED",
4758
+ "FAILED"
4759
+ ], Ti = {
4749
4760
  primary: "bg-primary",
4750
4761
  sky: "bg-sky-500",
4751
4762
  emerald: "bg-emerald-500",
@@ -4754,25 +4765,25 @@ var wi = /* @__PURE__ */ F({
4754
4765
  slate: "bg-slate-400",
4755
4766
  violet: "bg-violet-500",
4756
4767
  orange: "bg-orange-500"
4757
- }, Di = /* @__PURE__ */ F({
4758
- ASSET_OPTIONS: () => ji,
4759
- EMPTY_FILTER: () => Oi,
4760
- RISK_OPTIONS: () => Ai,
4761
- TYPE_OPTIONS: () => ki,
4762
- countMatches: () => Pi,
4763
- filterMatches: () => Ni,
4764
- filterToName: () => Ii,
4765
- isFilterEmpty: () => Mi
4766
- }), Oi = {
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 = {
4767
4778
  types: [],
4768
4779
  statuses: [],
4769
4780
  assets: [],
4770
4781
  risks: [],
4771
4782
  dateField: "createdAt"
4772
- }, ki = qr.map((e) => ({
4783
+ }, Oi = ["DEPOSIT", "WITHDRAWAL"].map((e) => ({
4773
4784
  value: e,
4774
4785
  label: K[e].label
4775
- })), Ai = [
4786
+ })), ki = [
4776
4787
  {
4777
4788
  value: "low",
4778
4789
  label: "Low risk"
@@ -4785,7 +4796,7 @@ var wi = /* @__PURE__ */ F({
4785
4796
  value: "high",
4786
4797
  label: "High risk"
4787
4798
  }
4788
- ], ji = Array.from(new Map(ai.map((e) => {
4799
+ ], Ai = Array.from(new Map(ii.map((e) => {
4789
4800
  let t = `${e.currency}/${e.network}`;
4790
4801
  return [t, {
4791
4802
  key: t,
@@ -4793,10 +4804,10 @@ var wi = /* @__PURE__ */ F({
4793
4804
  network: e.network
4794
4805
  }];
4795
4806
  })).values()).sort((e, t) => e.key.localeCompare(t.key));
4796
- function Mi(e) {
4807
+ function ji(e) {
4797
4808
  return !e.types.length && !e.statuses.length && !e.assets.length && !e.risks.length && !e.from && !e.to;
4798
4809
  }
4799
- function Ni(e, t) {
4810
+ function Mi(e, t) {
4800
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;
4801
4812
  if (t.from || t.to) {
4802
4813
  let n = t.dateField === "createdAt" ? e.createdAt : e.confirmedAt;
@@ -4806,13 +4817,13 @@ function Ni(e, t) {
4806
4817
  }
4807
4818
  return !0;
4808
4819
  }
4809
- function Pi(e) {
4810
- return Mi(e) ? ai.length : ai.reduce((t, n) => Ni(n, e) ? t + 1 : t, 0);
4820
+ function Ni(e) {
4821
+ return ji(e) ? ii.length : ii.reduce((t, n) => Mi(n, e) ? t + 1 : t, 0);
4811
4822
  }
4812
- var Fi = (e) => e.charAt(0).toUpperCase() + e.slice(1);
4813
- function Ii(e) {
4823
+ var Pi = (e) => e.charAt(0).toUpperCase() + e.slice(1);
4824
+ function Fi(e) {
4814
4825
  let t = [];
4815
- if (e.types.length && t.push(e.types.map(Fi).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) => `${Fi(e)} risk`).join(" & ")), e.from || e.to) {
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) {
4816
4827
  let n = e.dateField === "createdAt" ? "Created" : "Confirmed";
4817
4828
  t.push(`${n} ${e.from ?? "…"} → ${e.to ?? "…"}`);
4818
4829
  }
@@ -4820,17 +4831,17 @@ function Ii(e) {
4820
4831
  }
4821
4832
  //#endregion
4822
4833
  //#region ../../react-app/src/components/transactions/SavePresetDialog.tsx
4823
- function Li({ open: e, onOpenChange: t, filter: n, onSave: r }) {
4824
- let [i, a] = d(""), s = u(null), c = l(() => Pi(n), [n]);
4834
+ function Ii({ open: e, onOpenChange: t, filter: n, onSave: r }) {
4835
+ let [i, a] = d(""), s = u(null), c = l(() => Ni(n), [n]);
4825
4836
  o(() => {
4826
4837
  if (!e) return;
4827
- a(Ii(n));
4838
+ a(Fi(n));
4828
4839
  let t = window.setTimeout(() => s.current?.select(), 0);
4829
4840
  return () => window.clearTimeout(t);
4830
4841
  }, [e]);
4831
4842
  let f = () => {
4832
- r(i.trim() || Ii(n), n), t(!1);
4833
- }, p = i.trim() || Ii(n);
4843
+ r(i.trim() || Fi(n), n), t(!1);
4844
+ }, p = i.trim() || Fi(n);
4834
4845
  return /* @__PURE__ */ _(Ct, {
4835
4846
  open: e,
4836
4847
  onOpenChange: t,
@@ -4900,12 +4911,12 @@ function Li({ open: e, onOpenChange: t, filter: n, onSave: r }) {
4900
4911
  }
4901
4912
  //#endregion
4902
4913
  //#region ../../react-app/src/components/transactions/SavedPresetsBar.tsx
4903
- var Ri = {
4914
+ var Li = {
4904
4915
  alert: me,
4905
4916
  filter: We,
4906
4917
  deposit: be
4907
4918
  };
4908
- function zi({ presets: e, activeId: t, getCount: n, onToggle: r, onDelete: i, onCreateView: a, onReset: o, resetDisabled: s = !1 }) {
4919
+ function Ri({ presets: e, activeId: t, getCount: n, onToggle: r, onDelete: i, onCreateView: a, onReset: o, resetDisabled: s = !1 }) {
4909
4920
  let [c, l] = d(null);
4910
4921
  return /* @__PURE__ */ v("div", {
4911
4922
  className: "flex flex-wrap items-center gap-2",
@@ -4920,7 +4931,7 @@ function zi({ presets: e, activeId: t, getCount: n, onToggle: r, onDelete: i, on
4920
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"),
4921
4932
  children: [
4922
4933
  e.icon && /* @__PURE__ */ _(x, {
4923
- icon: Ri[e.icon],
4934
+ icon: Li[e.icon],
4924
4935
  size: 14,
4925
4936
  color: "currentColor",
4926
4937
  strokeWidth: 2
@@ -4993,7 +5004,7 @@ function zi({ presets: e, activeId: t, getCount: n, onToggle: r, onDelete: i, on
4993
5004
  }
4994
5005
  //#endregion
4995
5006
  //#region ../../react-app/src/components/transactions/TransactionSummary.tsx
4996
- function Bi({ detail: e, show: t, className: n }) {
5007
+ function zi({ detail: e, show: t, className: n }) {
4997
5008
  let r = X[e.status], i = e.amount.trim().startsWith("-"), a = (e) => t?.[e] !== !1;
4998
5009
  return /* @__PURE__ */ v("div", {
4999
5010
  className: I("space-y-3", n),
@@ -5023,7 +5034,7 @@ function Bi({ detail: e, show: t, className: n }) {
5023
5034
  }
5024
5035
  //#endregion
5025
5036
  //#region ../../react-app/src/components/transactions/TransactionInfo.tsx
5026
- function Vi({ detail: e, show: t, className: n }) {
5037
+ function Bi({ detail: e, show: t, className: n }) {
5027
5038
  let r = (e) => t?.[e] !== !1, i = e.customerTag != null;
5028
5039
  return /* @__PURE__ */ _("div", {
5029
5040
  className: n,
@@ -5033,7 +5044,7 @@ function Vi({ detail: e, show: t, className: n }) {
5033
5044
  /* @__PURE__ */ _(Y, {
5034
5045
  label: "Currency",
5035
5046
  show: r("currency"),
5036
- children: /* @__PURE__ */ _(_i, {
5047
+ children: /* @__PURE__ */ _(gi, {
5037
5048
  value: e.currency,
5038
5049
  code: e.currency
5039
5050
  })
@@ -5041,7 +5052,7 @@ function Vi({ detail: e, show: t, className: n }) {
5041
5052
  /* @__PURE__ */ _(Y, {
5042
5053
  label: "Network",
5043
5054
  show: r("network"),
5044
- children: /* @__PURE__ */ _(_i, {
5055
+ children: /* @__PURE__ */ _(gi, {
5045
5056
  value: e.networkLabel,
5046
5057
  code: e.network
5047
5058
  })
@@ -5104,7 +5115,7 @@ function Vi({ detail: e, show: t, className: n }) {
5104
5115
  /* @__PURE__ */ _(Y, {
5105
5116
  label: "Expected deposit amount",
5106
5117
  show: r("expectedAmount"),
5107
- children: /* @__PURE__ */ _(_i, {
5118
+ children: /* @__PURE__ */ _(gi, {
5108
5119
  value: e.expectedAmount,
5109
5120
  code: e.currency,
5110
5121
  icon: !1
@@ -5126,7 +5137,7 @@ function Vi({ detail: e, show: t, className: n }) {
5126
5137
  }
5127
5138
  //#endregion
5128
5139
  //#region ../../react-app/src/components/transactions/TransactionReference.tsx
5129
- function Hi({ detail: e, show: t, className: n }) {
5140
+ function Vi({ detail: e, show: t, className: n }) {
5130
5141
  let r = (e) => t?.[e] !== !1;
5131
5142
  return /* @__PURE__ */ v("section", {
5132
5143
  className: n,
@@ -5154,7 +5165,7 @@ function Hi({ detail: e, show: t, className: n }) {
5154
5165
  }
5155
5166
  //#endregion
5156
5167
  //#region ../../react-app/src/components/transactions/TransactionDetailPanel.tsx
5157
- function Ui({ detail: e, open: t, onOpenChange: n, show: r, onApprove: i, onReject: a }) {
5168
+ function Hi({ detail: e, open: t, onOpenChange: n, show: r, onApprove: i, onReject: a }) {
5158
5169
  return /* @__PURE__ */ _(un, {
5159
5170
  open: t,
5160
5171
  onOpenChange: n,
@@ -5167,7 +5178,7 @@ function Ui({ detail: e, open: t, onOpenChange: n, show: r, onApprove: i, onReje
5167
5178
  children: /* @__PURE__ */ _(vn, { children: "Transaction Details" })
5168
5179
  }), e && /* @__PURE__ */ _(gn, {
5169
5180
  className: "px-5 py-4",
5170
- children: /* @__PURE__ */ _(Wi, {
5181
+ children: /* @__PURE__ */ _(Ui, {
5171
5182
  detail: e,
5172
5183
  show: r,
5173
5184
  onApprove: i,
@@ -5177,30 +5188,30 @@ function Ui({ detail: e, open: t, onOpenChange: n, show: r, onApprove: i, onReje
5177
5188
  })
5178
5189
  });
5179
5190
  }
5180
- function Wi({ detail: e, show: t, onApprove: n, onReject: r }) {
5181
- let i = si(e), a = /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(Vi, {
5191
+ function Ui({ detail: e, show: t, onApprove: n, onReject: r }) {
5192
+ let i = oi(e), a = /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(Bi, {
5182
5193
  detail: e,
5183
5194
  show: t?.info
5184
- }), /* @__PURE__ */ _(bn, {})] }), o = t?.riskAssessment === !1 ? null : /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(Ci, {
5195
+ }), /* @__PURE__ */ _(bn, {})] }), o = t?.riskAssessment === !1 ? null : /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(Si, {
5185
5196
  assessment: e.riskAssessment,
5186
5197
  actionRequired: i,
5187
5198
  onApprove: n,
5188
5199
  onReject: r
5189
5200
  }), /* @__PURE__ */ _(bn, {})] });
5190
5201
  return /* @__PURE__ */ v(g, { children: [
5191
- /* @__PURE__ */ _(Bi, {
5202
+ /* @__PURE__ */ _(zi, {
5192
5203
  detail: e,
5193
5204
  show: t?.summary
5194
5205
  }),
5195
5206
  /* @__PURE__ */ _(bn, {}),
5196
5207
  i ? /* @__PURE__ */ v(g, { children: [o, a] }) : /* @__PURE__ */ v(g, { children: [a, o] }),
5197
- /* @__PURE__ */ _(yi, {
5208
+ /* @__PURE__ */ _(vi, {
5198
5209
  detail: e,
5199
5210
  show: t?.blockchain,
5200
5211
  showRefund: t?.showRefund
5201
5212
  }),
5202
5213
  /* @__PURE__ */ _(bn, {}),
5203
- /* @__PURE__ */ _(Hi, {
5214
+ /* @__PURE__ */ _(Vi, {
5204
5215
  detail: e,
5205
5216
  show: t?.reference
5206
5217
  })
@@ -5208,28 +5219,26 @@ function Wi({ detail: e, show: t, onApprove: n, onReject: r }) {
5208
5219
  }
5209
5220
  //#endregion
5210
5221
  //#region ../../react-app/src/components/transactions/TransactionsFilterPanel.tsx
5211
- function Gi(e, t) {
5222
+ function Wi(e, t) {
5212
5223
  return e.includes(t) ? e.filter((e) => e !== t) : [...e, t];
5213
5224
  }
5214
- function Ki({ title: e, children: t }) {
5225
+ function Gi({ title: e, children: t }) {
5215
5226
  return /* @__PURE__ */ v("section", { children: [/* @__PURE__ */ _(xn, { children: e }), t] });
5216
5227
  }
5217
- var qi = "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", Ji = {
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 = {
5218
5229
  in: be,
5219
5230
  out: Te,
5220
5231
  neutral: ve
5221
- }, Yi = {
5232
+ }, Ji = {
5222
5233
  in: "text-emerald-500",
5223
5234
  out: "text-rose-500",
5224
5235
  neutral: "text-slate-400"
5225
5236
  };
5226
- function Xi({ open: e, onOpenChange: t, value: n, onApply: r, onSave: i }) {
5227
- let [a, s] = d(n);
5228
- o(() => {
5229
- e && s(n);
5230
- }, [e]);
5231
- let c = Mi(a);
5232
- return /* @__PURE__ */ _(un, {
5237
+ function Yi({ open: e, onOpenChange: t, value: n, assets: r, onApply: i, onReset: a }) {
5238
+ let [s, c] = d(n);
5239
+ return o(() => {
5240
+ e && c(n);
5241
+ }, [e]), /* @__PURE__ */ _(un, {
5233
5242
  open: e,
5234
5243
  onOpenChange: t,
5235
5244
  children: /* @__PURE__ */ v(mn, { children: [
@@ -5240,27 +5249,27 @@ function Xi({ open: e, onOpenChange: t, value: n, onApply: r, onSave: i }) {
5240
5249
  /* @__PURE__ */ v(gn, {
5241
5250
  className: "px-5 py-4",
5242
5251
  children: [
5243
- /* @__PURE__ */ _(Ki, {
5252
+ /* @__PURE__ */ _(Gi, {
5244
5253
  title: "Type",
5245
5254
  children: /* @__PURE__ */ _("div", {
5246
5255
  className: "grid grid-cols-2 gap-x-4",
5247
- children: ki.map((e) => {
5256
+ children: Oi.map((e) => {
5248
5257
  let t = K[e.value].direction;
5249
5258
  return /* @__PURE__ */ v("label", {
5250
- className: qi,
5259
+ className: Ki,
5251
5260
  children: [
5252
5261
  /* @__PURE__ */ _(St, {
5253
- checked: a.types.includes(e.value),
5254
- onCheckedChange: () => s((t) => ({
5262
+ checked: s.types.includes(e.value),
5263
+ onCheckedChange: () => c((t) => ({
5255
5264
  ...t,
5256
- types: Gi(t.types, e.value)
5265
+ types: Wi(t.types, e.value)
5257
5266
  }))
5258
5267
  }),
5259
5268
  /* @__PURE__ */ _(x, {
5260
- icon: Ji[t],
5269
+ icon: qi[t],
5261
5270
  size: 16,
5262
5271
  strokeWidth: 2,
5263
- className: Yi[t]
5272
+ className: Ji[t]
5264
5273
  }),
5265
5274
  /* @__PURE__ */ _("span", { children: e.label })
5266
5275
  ]
@@ -5269,17 +5278,17 @@ function Xi({ open: e, onOpenChange: t, value: n, onApply: r, onSave: i }) {
5269
5278
  })
5270
5279
  }),
5271
5280
  /* @__PURE__ */ _(bn, {}),
5272
- /* @__PURE__ */ _(Ki, {
5281
+ /* @__PURE__ */ _(Gi, {
5273
5282
  title: "Status",
5274
5283
  children: /* @__PURE__ */ _("div", {
5275
5284
  className: "grid grid-cols-2 gap-x-4",
5276
- children: Ti.map((e) => /* @__PURE__ */ v("label", {
5277
- className: qi,
5285
+ children: wi.map((e) => /* @__PURE__ */ v("label", {
5286
+ className: Ki,
5278
5287
  children: [/* @__PURE__ */ _(St, {
5279
- checked: a.statuses.includes(e),
5280
- onCheckedChange: () => s((t) => ({
5288
+ checked: s.statuses.includes(e),
5289
+ onCheckedChange: () => c((t) => ({
5281
5290
  ...t,
5282
- statuses: Gi(t.statuses, e)
5291
+ statuses: Wi(t.statuses, e)
5283
5292
  }))
5284
5293
  }), /* @__PURE__ */ _(Kr, {
5285
5294
  tone: X[e].tone,
@@ -5289,18 +5298,18 @@ function Xi({ open: e, onOpenChange: t, value: n, onApply: r, onSave: i }) {
5289
5298
  })
5290
5299
  }),
5291
5300
  /* @__PURE__ */ _(bn, {}),
5292
- /* @__PURE__ */ _(Ki, {
5301
+ r.length > 0 && /* @__PURE__ */ _(Gi, {
5293
5302
  title: "Currency & Network",
5294
5303
  children: /* @__PURE__ */ _("div", {
5295
5304
  className: "grid grid-cols-2 gap-x-4",
5296
- children: ji.map((e) => /* @__PURE__ */ v("label", {
5297
- className: qi,
5305
+ children: r.map((e) => /* @__PURE__ */ v("label", {
5306
+ className: Ki,
5298
5307
  children: [
5299
5308
  /* @__PURE__ */ _(St, {
5300
- checked: a.assets.includes(e.key),
5301
- onCheckedChange: () => s((t) => ({
5309
+ checked: s.assets.includes(e.key),
5310
+ onCheckedChange: () => c((t) => ({
5302
5311
  ...t,
5303
- assets: Gi(t.assets, e.key)
5312
+ assets: Wi(t.assets, e.key)
5304
5313
  }))
5305
5314
  }),
5306
5315
  /* @__PURE__ */ _(Ir, {
@@ -5324,18 +5333,18 @@ function Xi({ open: e, onOpenChange: t, value: n, onApply: r, onSave: i }) {
5324
5333
  })
5325
5334
  }),
5326
5335
  /* @__PURE__ */ _(bn, {}),
5327
- /* @__PURE__ */ _(Ki, {
5336
+ /* @__PURE__ */ _(Gi, {
5328
5337
  title: "Risk Level",
5329
5338
  children: /* @__PURE__ */ _("div", {
5330
5339
  className: "grid grid-cols-2 gap-x-4",
5331
- children: Ai.map((e) => /* @__PURE__ */ v("label", {
5332
- className: qi,
5340
+ children: ki.map((e) => /* @__PURE__ */ v("label", {
5341
+ className: Ki,
5333
5342
  children: [
5334
5343
  /* @__PURE__ */ _(St, {
5335
- checked: a.risks.includes(e.value),
5336
- onCheckedChange: () => s((t) => ({
5344
+ checked: s.risks.includes(e.value),
5345
+ onCheckedChange: () => c((t) => ({
5337
5346
  ...t,
5338
- risks: Gi(t.risks, e.value)
5347
+ risks: Wi(t.risks, e.value)
5339
5348
  }))
5340
5349
  }),
5341
5350
  /* @__PURE__ */ _("img", {
@@ -5349,11 +5358,11 @@ function Xi({ open: e, onOpenChange: t, value: n, onApply: r, onSave: i }) {
5349
5358
  })
5350
5359
  }),
5351
5360
  /* @__PURE__ */ _(bn, {}),
5352
- /* @__PURE__ */ v(Ki, {
5361
+ /* @__PURE__ */ v(Gi, {
5353
5362
  title: "Date Range",
5354
5363
  children: [/* @__PURE__ */ v(an, {
5355
- value: a.dateField,
5356
- onValueChange: (e) => s((t) => ({
5364
+ value: s.dateField,
5365
+ onValueChange: (e) => c((t) => ({
5357
5366
  ...t,
5358
5367
  dateField: e
5359
5368
  })),
@@ -5369,10 +5378,10 @@ function Xi({ open: e, onOpenChange: t, value: n, onApply: r, onSave: i }) {
5369
5378
  mode: "range",
5370
5379
  className: "mt-3 rounded-xl border border-cb-line p-3",
5371
5380
  selected: {
5372
- from: a.from ? ae(a.from) : void 0,
5373
- to: a.to ? ae(a.to) : void 0
5381
+ from: s.from ? ae(s.from) : void 0,
5382
+ to: s.to ? ae(s.to) : void 0
5374
5383
  },
5375
- onSelect: (e) => s((t) => ({
5384
+ onSelect: (e) => c((t) => ({
5376
5385
  ...t,
5377
5386
  from: e?.from ? j(e.from, "yyyy-MM-dd") : void 0,
5378
5387
  to: e?.to ? j(e.to, "yyyy-MM-dd") : void 0
@@ -5388,16 +5397,7 @@ function Xi({ open: e, onOpenChange: t, value: n, onApply: r, onSave: i }) {
5388
5397
  variant: "ghost",
5389
5398
  align: "start",
5390
5399
  className: "text-muted-foreground",
5391
- onClick: () => s(Oi)
5392
- },
5393
- {
5394
- key: "save",
5395
- label: "Save",
5396
- variant: "ghost",
5397
- align: "start",
5398
- className: "text-foreground",
5399
- disabled: c,
5400
- onClick: () => i(a)
5400
+ onClick: () => a?.()
5401
5401
  },
5402
5402
  {
5403
5403
  key: "cancel",
@@ -5409,7 +5409,7 @@ function Xi({ open: e, onOpenChange: t, value: n, onApply: r, onSave: i }) {
5409
5409
  key: "apply",
5410
5410
  label: "Apply",
5411
5411
  onClick: () => {
5412
- r(a), t(!1);
5412
+ i(s), t(!1);
5413
5413
  }
5414
5414
  }
5415
5415
  ] })
@@ -5418,7 +5418,7 @@ function Xi({ open: e, onOpenChange: t, value: n, onApply: r, onSave: i }) {
5418
5418
  }
5419
5419
  //#endregion
5420
5420
  //#region ../../react-app/src/components/transactions/TransactionsTable.tsx
5421
- function Zi({ date: e, time: t }) {
5421
+ function Xi({ date: e, time: t }) {
5422
5422
  return e ? /* @__PURE__ */ _(G, {
5423
5423
  primary: e,
5424
5424
  secondary: t,
@@ -5428,7 +5428,7 @@ function Zi({ date: e, time: t }) {
5428
5428
  children: "—"
5429
5429
  });
5430
5430
  }
5431
- var Qi = [
5431
+ var Zi = [
5432
5432
  {
5433
5433
  id: "type",
5434
5434
  header: "Payment Type",
@@ -5455,7 +5455,7 @@ var Qi = [
5455
5455
  {
5456
5456
  id: "risk",
5457
5457
  header: "Risk",
5458
- cell: (e) => /* @__PURE__ */ _(Wr, { level: e.risk }),
5458
+ cell: (e) => e.risk ? /* @__PURE__ */ _(Wr, { level: e.risk }) : null,
5459
5459
  skeleton: /* @__PURE__ */ _(V, { className: "h-4 w-5" })
5460
5460
  },
5461
5461
  {
@@ -5508,7 +5508,7 @@ var Qi = [
5508
5508
  header: "Created at",
5509
5509
  sortable: !0,
5510
5510
  sortValue: (e) => (/* @__PURE__ */ new Date(`${e.createdAt} ${e.createdTime}`)).getTime(),
5511
- cell: (e) => /* @__PURE__ */ _(Zi, {
5511
+ cell: (e) => /* @__PURE__ */ _(Xi, {
5512
5512
  date: e.createdAt,
5513
5513
  time: e.createdTime
5514
5514
  }),
@@ -5522,7 +5522,7 @@ var Qi = [
5522
5522
  header: "Confirmed at",
5523
5523
  sortable: !0,
5524
5524
  sortValue: (e) => e.confirmedAt ? (/* @__PURE__ */ new Date(`${e.confirmedAt} ${e.confirmedTime ?? ""}`)).getTime() : -Infinity,
5525
- cell: (e) => /* @__PURE__ */ _(Zi, {
5525
+ cell: (e) => /* @__PURE__ */ _(Xi, {
5526
5526
  date: e.confirmedAt,
5527
5527
  time: e.confirmedTime
5528
5528
  }),
@@ -5553,7 +5553,7 @@ var Qi = [
5553
5553
  }),
5554
5554
  skeleton: /* @__PURE__ */ _(V, { className: "h-4 w-32" })
5555
5555
  }
5556
- ], $i = [
5556
+ ], Qi = [
5557
5557
  {
5558
5558
  value: "uid",
5559
5559
  label: "UID"
@@ -5566,14 +5566,14 @@ var Qi = [
5566
5566
  value: "wallet",
5567
5567
  label: "Wallet"
5568
5568
  }
5569
- ], ea = Qi.map((e) => ({
5569
+ ], $i = Zi.map((e) => ({
5570
5570
  id: e.id,
5571
5571
  label: e.header,
5572
5572
  canHide: e.canHide
5573
5573
  }));
5574
- function ta({ data: e, loading: t, onRowClick: n, columnVisibility: r, presets: i, pageSize: a = 50, totalTransactions: o, currentPage: s = 0, onPageChange: c }) {
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 }) {
5575
5575
  return /* @__PURE__ */ _(zr, {
5576
- columns: Qi,
5576
+ columns: Zi,
5577
5577
  data: e,
5578
5578
  getRowId: (e) => e.id,
5579
5579
  layout: "fill",
@@ -5585,8 +5585,10 @@ function ta({ data: e, loading: t, onRowClick: n, columnVisibility: r, presets:
5585
5585
  skeletonRows: 12,
5586
5586
  columnVisibility: r,
5587
5587
  onRowClick: n,
5588
+ sort: l,
5589
+ onSortChange: u,
5588
5590
  emptyMessage: "No transactions match your filters.",
5589
- rowLeading: (e) => si(e) ? /* @__PURE__ */ v(Fn, { children: [/* @__PURE__ */ _(In, {
5591
+ rowLeading: (e) => oi(e) ? /* @__PURE__ */ v(Fn, { children: [/* @__PURE__ */ _(In, {
5590
5592
  asChild: !0,
5591
5593
  children: /* @__PURE__ */ _("span", {
5592
5594
  "aria-label": "Action Required",
@@ -5601,14 +5603,14 @@ function ta({ data: e, loading: t, onRowClick: n, columnVisibility: r, presets:
5601
5603
  }
5602
5604
  //#endregion
5603
5605
  //#region ../../react-app/src/components/transactions/TransactionsTableOptions.tsx
5604
- var na = [{
5606
+ var ta = [{
5605
5607
  value: "all",
5606
5608
  label: "All"
5607
5609
  }, {
5608
5610
  value: "action",
5609
5611
  label: "Action Required"
5610
5612
  }];
5611
- function ra({ search: e, onSearchChange: t, searchScopes: n, searchScope: r, onSearchScopeChange: i, searchPlaceholder: a = "Search...", segment: o, onSegmentChange: s, tabs: c = na, tabCounts: l, onFilter: u, filterCount: d = 0, columns: f, columnVisibility: p, onColumnChange: m, onRefresh: h, refreshing: g = !1, onDownload: y, show: b, className: S }) {
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 }) {
5612
5614
  let C = (e) => b?.[e] !== !1, w = n?.find((e) => e.value === r)?.label, T = w ? `Search by ${w}` : a;
5613
5615
  return /* @__PURE__ */ v("div", {
5614
5616
  className: I("mb-2 flex shrink-0 flex-wrap items-center gap-2", S),
@@ -5657,7 +5659,7 @@ function ra({ search: e, onSearchChange: t, searchScopes: n, searchScope: r, onS
5657
5659
  })
5658
5660
  ]
5659
5661
  }),
5660
- C("tabs") && /* @__PURE__ */ _(kn, {
5662
+ C("tabs") && o !== void 0 && s && /* @__PURE__ */ _(kn, {
5661
5663
  value: o,
5662
5664
  onValueChange: s,
5663
5665
  children: /* @__PURE__ */ _(jn, { children: c.map((e) => {
@@ -5689,7 +5691,7 @@ function ra({ search: e, onSearchChange: t, searchScopes: n, searchScope: r, onS
5689
5691
  })
5690
5692
  ]
5691
5693
  }),
5692
- C("columns") && /* @__PURE__ */ _(Mr, {
5694
+ C("columns") && f && p && m && /* @__PURE__ */ _(Mr, {
5693
5695
  columns: f,
5694
5696
  visible: p,
5695
5697
  onChange: m
@@ -5716,37 +5718,37 @@ function ra({ search: e, onSearchChange: t, searchScopes: n, searchScope: r, onS
5716
5718
  }
5717
5719
  //#endregion
5718
5720
  //#region ../../react-app/src/components/transactions/types.ts
5719
- var ia = /* @__PURE__ */ F({}), aa = "–";
5720
- function oa({ children: e }) {
5721
+ var ra = /* @__PURE__ */ F({}), ia = "–";
5722
+ function aa({ children: e }) {
5721
5723
  return /* @__PURE__ */ _("span", {
5722
5724
  className: "text-muted-foreground",
5723
5725
  children: e
5724
5726
  });
5725
5727
  }
5726
- var sa = [
5728
+ var oa = [
5727
5729
  {
5728
5730
  id: "date",
5729
5731
  header: "Date",
5730
5732
  cell: (e) => /* @__PURE__ */ _("span", {
5731
5733
  className: "font-medium text-foreground",
5732
- children: e.date
5734
+ children: j(ae(e.date), "MMM dd, yyyy")
5733
5735
  })
5734
5736
  },
5735
5737
  {
5736
5738
  id: "opening",
5737
5739
  header: "Opening Balance",
5738
- cell: (e) => e.openingBalance ?? /* @__PURE__ */ _(oa, { children: aa })
5740
+ cell: (e) => e.openingBalance ?? /* @__PURE__ */ _(aa, { children: ia })
5739
5741
  },
5740
5742
  {
5741
5743
  id: "closing",
5742
5744
  header: "Closing Balance",
5743
- cell: (e) => e.closingBalance ?? /* @__PURE__ */ _(oa, { children: aa })
5745
+ cell: (e) => e.closingBalance ?? /* @__PURE__ */ _(aa, { children: ia })
5744
5746
  },
5745
5747
  {
5746
5748
  id: "diff",
5747
5749
  header: "Diff",
5748
5750
  cell: (e) => {
5749
- if (!e.diff) return /* @__PURE__ */ _(oa, { children: aa });
5751
+ if (!e.diff) return /* @__PURE__ */ _(aa, { children: ia });
5750
5752
  let t = e.diff.startsWith("-");
5751
5753
  return /* @__PURE__ */ _("span", {
5752
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"),
@@ -5775,9 +5777,9 @@ var sa = [
5775
5777
  cell: (e) => e.otherWithdrawals
5776
5778
  }
5777
5779
  ];
5778
- function ca({ data: e, pageSize: t }) {
5780
+ function sa({ data: e, pageSize: t }) {
5779
5781
  return /* @__PURE__ */ _(zr, {
5780
- columns: sa,
5782
+ columns: oa,
5781
5783
  data: e,
5782
5784
  getRowId: (e) => e.date,
5783
5785
  pageSize: t
@@ -5785,8 +5787,8 @@ function ca({ data: e, pageSize: t }) {
5785
5787
  }
5786
5788
  //#endregion
5787
5789
  //#region ../../react-app/src/components/reports/DonutChart.tsx
5788
- var la = 900;
5789
- function ua() {
5790
+ var ca = 900;
5791
+ function la() {
5790
5792
  let [e, t] = d(!1);
5791
5793
  return o(() => {
5792
5794
  if (typeof window > "u" || !window.matchMedia) return;
@@ -5796,8 +5798,8 @@ function ua() {
5796
5798
  return e.addEventListener("change", n), () => e.removeEventListener("change", n);
5797
5799
  }, []), e;
5798
5800
  }
5799
- function da({ segments: e, size: t = 148, thickness: n = 20, gap: r = 2, animate: i = !0, className: a }) {
5800
- let s = e.reduce((e, t) => e + t.value, 0) || 1, c = 50 - n / 2, l = 2 * Math.PI * c, f = ua(), p = i && !f, [m, h] = d(!p);
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);
5801
5803
  o(() => {
5802
5804
  if (!p) {
5803
5805
  h(!0);
@@ -5843,7 +5845,7 @@ function da({ segments: e, size: t = 148, thickness: n = 20, gap: r = 2, animate
5843
5845
  onMouseLeave: () => b(null),
5844
5846
  style: {
5845
5847
  strokeDasharray: m ? `${i} ${l - i}` : `0 ${l}`,
5846
- transition: p ? `stroke-dasharray ${o * la}ms linear ${a * la}ms` : void 0
5848
+ transition: p ? `stroke-dasharray ${o * ca}ms linear ${a * ca}ms` : void 0
5847
5849
  }
5848
5850
  }, e.label);
5849
5851
  })
@@ -5873,22 +5875,32 @@ function da({ segments: e, size: t = 148, thickness: n = 20, gap: r = 2, animate
5873
5875
  }
5874
5876
  //#endregion
5875
5877
  //#region ../../react-app/src/components/reports/ExportHistoryList.tsx
5876
- var fa = "grid grid-cols-[minmax(0,1fr)_140px_180px_auto] items-center gap-4";
5877
- function pa({ entries: e, onDownload: t, className: n }) {
5878
- return /* @__PURE__ */ v("div", {
5879
- className: I("flex flex-col", n),
5880
- children: [/* @__PURE__ */ v("div", {
5881
- className: I(fa, "px-1 pb-3 text-sm font-medium text-muted-foreground"),
5882
- children: [
5883
- /* @__PURE__ */ _("span", { children: "File" }),
5884
- /* @__PURE__ */ _("span", { children: "Period" }),
5885
- /* @__PURE__ */ _("span", { children: "Generated by" }),
5886
- /* @__PURE__ */ _("span", { "aria-hidden": !0 })
5887
- ]
5888
- }), e.map((e) => /* @__PURE__ */ v("div", {
5889
- className: I(fa, "border-t border-cb-line px-1 py-3.5 text-sm"),
5890
- children: [
5891
- /* @__PURE__ */ v("span", {
5878
+ function da({ label: e, onClick: t }) {
5879
+ return /* @__PURE__ */ v(Fn, { children: [/* @__PURE__ */ _(In, {
5880
+ asChild: !0,
5881
+ children: /* @__PURE__ */ _(z, {
5882
+ type: "button",
5883
+ variant: "ghost",
5884
+ size: "icon-xs",
5885
+ "aria-label": `Download ${e}`,
5886
+ onClick: t,
5887
+ className: "cursor-pointer text-muted-foreground hover:bg-slate-200/70 hover:text-primary",
5888
+ children: /* @__PURE__ */ _(x, {
5889
+ icon: He,
5890
+ size: 14,
5891
+ strokeWidth: 2,
5892
+ className: "size-3.5"
5893
+ })
5894
+ })
5895
+ }), /* @__PURE__ */ _(Ln, { children: "Download" })] });
5896
+ }
5897
+ function fa({ entries: e, onDownload: t }) {
5898
+ return /* @__PURE__ */ _(zr, {
5899
+ columns: [
5900
+ {
5901
+ id: "file",
5902
+ header: "File",
5903
+ cell: (e) => /* @__PURE__ */ v("span", {
5892
5904
  className: "flex min-w-0 items-center gap-2.5",
5893
5905
  children: [/* @__PURE__ */ _(x, {
5894
5906
  icon: ze,
@@ -5900,42 +5912,44 @@ function pa({ entries: e, onDownload: t, className: n }) {
5900
5912
  className: "truncate font-medium text-foreground",
5901
5913
  children: e.file
5902
5914
  })]
5903
- }),
5904
- /* @__PURE__ */ _("span", {
5905
- className: "text-foreground",
5906
- children: e.period
5907
- }),
5908
- /* @__PURE__ */ _("span", {
5909
- className: "text-foreground",
5910
- children: e.generatedBy
5911
- }),
5912
- /* @__PURE__ */ v(z, {
5913
- variant: "outline",
5914
- size: "sm",
5915
- className: "cursor-pointer shadow-xs",
5916
- onClick: () => t?.(e),
5917
- children: [/* @__PURE__ */ _(x, {
5918
- icon: He,
5919
- size: 14,
5920
- color: "currentColor",
5921
- strokeWidth: 2
5922
- }), "Download"]
5923
5915
  })
5924
- ]
5925
- }, e.id))]
5916
+ },
5917
+ {
5918
+ id: "period",
5919
+ header: "Period",
5920
+ cell: (e) => e.period
5921
+ },
5922
+ {
5923
+ id: "generatedBy",
5924
+ header: "Generated by",
5925
+ cell: (e) => e.generatedBy
5926
+ },
5927
+ {
5928
+ id: "actions",
5929
+ header: "",
5930
+ align: "end",
5931
+ headClassName: "w-12",
5932
+ cell: (e) => /* @__PURE__ */ _(da, {
5933
+ label: e.file,
5934
+ onClick: () => t?.(e)
5935
+ })
5936
+ }
5937
+ ],
5938
+ data: e,
5939
+ getRowId: (e) => e.id
5926
5940
  });
5927
5941
  }
5928
5942
  //#endregion
5929
5943
  //#region ../../react-app/src/components/reports/presets.ts
5930
- var ma = /* @__PURE__ */ F({
5931
- ACCOUNT_START: () => ga,
5932
- PRESETS: () => va,
5933
- REFERENCE_TODAY: () => ha,
5934
- presetPeriod: () => ya
5935
- }), ha = new Date(2026, 6, 15), ga = new Date(2024, 0, 1), _a = (e) => (t) => ({
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) => ({
5936
5950
  from: N(t, e - 1),
5937
5951
  to: t
5938
- }), va = [
5952
+ }), _a = [
5939
5953
  {
5940
5954
  id: "today",
5941
5955
  label: "Today",
@@ -5963,22 +5977,22 @@ var ma = /* @__PURE__ */ F({
5963
5977
  {
5964
5978
  id: "last-7",
5965
5979
  label: "Last 7 days",
5966
- range: _a(7)
5980
+ range: ga(7)
5967
5981
  },
5968
5982
  {
5969
5983
  id: "last-14",
5970
5984
  label: "Last 14 days",
5971
- range: _a(14)
5985
+ range: ga(14)
5972
5986
  },
5973
5987
  {
5974
5988
  id: "last-28",
5975
5989
  label: "Last 28 days",
5976
- range: _a(28)
5990
+ range: ga(28)
5977
5991
  },
5978
5992
  {
5979
5993
  id: "last-30",
5980
5994
  label: "Last 30 days",
5981
- range: _a(30)
5995
+ range: ga(30)
5982
5996
  },
5983
5997
  {
5984
5998
  id: "this-week",
@@ -6022,12 +6036,12 @@ var ma = /* @__PURE__ */ F({
6022
6036
  id: "maximum",
6023
6037
  label: "Maximum",
6024
6038
  range: (e) => ({
6025
- from: ga,
6039
+ from: ha,
6026
6040
  to: e
6027
6041
  })
6028
6042
  }
6029
6043
  ];
6030
- function ya(e, t = ha) {
6044
+ function va(e, t = ma) {
6031
6045
  let { from: n, to: r } = e.range(t);
6032
6046
  return {
6033
6047
  mode: "range",
@@ -6038,7 +6052,7 @@ function ya(e, t = ha) {
6038
6052
  }
6039
6053
  //#endregion
6040
6054
  //#region ../../react-app/src/components/reports/PeriodPicker.tsx
6041
- var ba = [
6055
+ var ya = [
6042
6056
  "Jan",
6043
6057
  "Feb",
6044
6058
  "Mar",
@@ -6051,7 +6065,7 @@ var ba = [
6051
6065
  "Oct",
6052
6066
  "Nov",
6053
6067
  "Dec"
6054
- ], xa = {
6068
+ ], ba = {
6055
6069
  root: "w-full",
6056
6070
  nav: "absolute inset-x-0 top-0 flex items-center justify-between px-1",
6057
6071
  caption_label: "text-sm font-semibold text-foreground",
@@ -6063,23 +6077,23 @@ var ba = [
6063
6077
  size: "icon"
6064
6078
  }), "mx-auto size-8 cursor-pointer rounded-md text-sm font-normal")
6065
6079
  };
6066
- function Sa(e) {
6080
+ function xa(e) {
6067
6081
  return e.mode === "month" ? e.month : e.from;
6068
6082
  }
6069
- function Ca(e) {
6083
+ function Sa(e) {
6070
6084
  if (e.mode === "month") return j(e.month, "MMMM yyyy");
6071
6085
  if (e.label) return e.label;
6072
6086
  let t = e.from.getFullYear() === e.to.getFullYear();
6073
6087
  return `${j(e.from, t ? "MMM d" : "MMM d, yyyy")} – ${j(e.to, "MMM d, yyyy")}`;
6074
6088
  }
6075
- function wa({ value: e, onPick: t, onPreview: n }) {
6089
+ function Ca({ value: e, onPick: t, onPreview: n }) {
6076
6090
  return /* @__PURE__ */ _(cn, {
6077
6091
  className: "h-full w-44 shrink-0 border-r border-cb-line",
6078
6092
  viewportClassName: "p-2",
6079
6093
  onMouseLeave: () => n(null),
6080
6094
  children: /* @__PURE__ */ _("div", {
6081
6095
  className: "flex flex-col gap-0.5",
6082
- children: va.map((r) => /* @__PURE__ */ _("button", {
6096
+ children: _a.map((r) => /* @__PURE__ */ _("button", {
6083
6097
  type: "button",
6084
6098
  onClick: () => t(r),
6085
6099
  onMouseEnter: () => n(r),
@@ -6089,7 +6103,7 @@ function wa({ value: e, onPick: t, onPreview: n }) {
6089
6103
  })
6090
6104
  });
6091
6105
  }
6092
- function Ta({ draftMonth: e, today: t, onSelect: n }) {
6106
+ function wa({ draftMonth: e, today: t, onSelect: n }) {
6093
6107
  let [r, i] = d(() => (e ?? t).getFullYear());
6094
6108
  return /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ v("div", {
6095
6109
  className: "mb-3 flex items-center justify-between px-1",
@@ -6127,7 +6141,7 @@ function Ta({ draftMonth: e, today: t, onSelect: n }) {
6127
6141
  ]
6128
6142
  }), /* @__PURE__ */ _("div", {
6129
6143
  className: "grid grid-cols-4 gap-1.5",
6130
- children: ba.map((t, i) => /* @__PURE__ */ _("button", {
6144
+ children: ya.map((t, i) => /* @__PURE__ */ _("button", {
6131
6145
  type: "button",
6132
6146
  onClick: () => n(new Date(r, i, 1)),
6133
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"),
@@ -6135,8 +6149,8 @@ function Ta({ draftMonth: e, today: t, onSelect: n }) {
6135
6149
  }, t))
6136
6150
  })] });
6137
6151
  }
6138
- function Ea({ value: e, today: t, onChange: n, onReset: r }) {
6139
- let [i, a] = d(e.mode === "month" ? "month" : "range"), [o, s] = d(e.mode === "month" ? e.month : oe(Sa(e))), [c, l] = d(e.mode === "range" ? {
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" ? {
6140
6154
  from: e.from,
6141
6155
  to: e.to
6142
6156
  } : void 0), [u, f] = d(null), p = !!c?.from && !!c?.to, m = i === "month" || p;
@@ -6155,9 +6169,9 @@ function Ea({ value: e, today: t, onChange: n, onReset: r }) {
6155
6169
  }
6156
6170
  return /* @__PURE__ */ v("div", {
6157
6171
  className: "flex h-[360px]",
6158
- children: [/* @__PURE__ */ _(wa, {
6172
+ children: [/* @__PURE__ */ _(Ca, {
6159
6173
  value: e,
6160
- onPick: (e) => n(ya(e, t)),
6174
+ onPick: (e) => n(va(e, t)),
6161
6175
  onPreview: h
6162
6176
  }), /* @__PURE__ */ v("div", {
6163
6177
  className: "flex h-full w-72 flex-col p-3",
@@ -6181,7 +6195,7 @@ function Ea({ value: e, today: t, onChange: n, onReset: r }) {
6181
6195
  /* @__PURE__ */ _(Nn, {
6182
6196
  value: "month",
6183
6197
  className: "mt-1 flex-1",
6184
- children: /* @__PURE__ */ _(Ta, {
6198
+ children: /* @__PURE__ */ _(wa, {
6185
6199
  draftMonth: o,
6186
6200
  today: t,
6187
6201
  onSelect: s
@@ -6196,9 +6210,9 @@ function Ea({ value: e, today: t, onChange: n, onReset: r }) {
6196
6210
  onSelect: (e) => {
6197
6211
  f(null), l(e);
6198
6212
  },
6199
- defaultMonth: Sa(e),
6213
+ defaultMonth: xa(e),
6200
6214
  className: "w-full p-0",
6201
- classNames: xa
6215
+ classNames: ba
6202
6216
  })
6203
6217
  })
6204
6218
  ]
@@ -6219,7 +6233,7 @@ function Ea({ value: e, today: t, onChange: n, onReset: r }) {
6219
6233
  })]
6220
6234
  });
6221
6235
  }
6222
- function Da({ value: e, onChange: t, today: n = ha, className: r }) {
6236
+ function Ea({ value: e, onChange: t, today: n = ma, className: r }) {
6223
6237
  let [i, a] = d(!1);
6224
6238
  function o(n) {
6225
6239
  if (e.mode === "month") t({
@@ -6251,12 +6265,12 @@ function Da({ value: e, onChange: t, today: n = ha, className: r }) {
6251
6265
  color: "currentColor",
6252
6266
  strokeWidth: 2,
6253
6267
  className: "text-muted-foreground"
6254
- }), Ca(e)]
6268
+ }), Sa(e)]
6255
6269
  })
6256
6270
  }), /* @__PURE__ */ _(rn, {
6257
6271
  align: "end",
6258
6272
  className: "w-auto p-0",
6259
- children: /* @__PURE__ */ _(Ea, {
6273
+ children: /* @__PURE__ */ _(Ta, {
6260
6274
  value: e,
6261
6275
  today: n,
6262
6276
  onChange: (e) => {
@@ -6300,25 +6314,25 @@ function Da({ value: e, onChange: t, today: n = ha, className: r }) {
6300
6314
  }
6301
6315
  //#endregion
6302
6316
  //#region ../../react-app/src/components/reports/data.ts
6303
- var Oa = /* @__PURE__ */ F({
6304
- ASSET_COLORS: () => ka,
6305
- ASSET_COLOR_FALLBACK: () => Aa,
6306
- DAILY_BALANCES: () => Na,
6307
- EXPORT_HISTORY: () => Pa,
6308
- REPORT_SUMMARIES: () => Ma,
6309
- assetColor: () => ja
6310
- }), ka = {
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 = {
6311
6325
  USDT: "#2B7DE7",
6312
6326
  USDC: "#38BDF8",
6313
6327
  BTC: "#3730A3",
6314
6328
  ETH: "#7C6BF5",
6315
6329
  SOL: "#22D3EE",
6316
6330
  XRP: "#C4B5FD"
6317
- }, Aa = "#94A3B8";
6318
- function ja(e) {
6319
- return ka[e] ?? "#94A3B8";
6331
+ }, ka = "#94A3B8";
6332
+ function Aa(e) {
6333
+ return Oa[e] ?? "#94A3B8";
6320
6334
  }
6321
- var Ma = [
6335
+ var ja = [
6322
6336
  {
6323
6337
  label: "Total Volume",
6324
6338
  total: "$1,284.60",
@@ -6405,7 +6419,7 @@ var Ma = [
6405
6419
  }
6406
6420
  ]
6407
6421
  }
6408
- ], Na = [
6422
+ ], Ma = [
6409
6423
  {
6410
6424
  date: "2026-07-02",
6411
6425
  openingBalance: null,
@@ -6436,7 +6450,7 @@ var Ma = [
6436
6450
  otherDeposits: "$0.00",
6437
6451
  otherWithdrawals: "$0.00"
6438
6452
  }
6439
- ], Pa = [
6453
+ ], Na = [
6440
6454
  {
6441
6455
  id: "daily-balances-jun-2026",
6442
6456
  file: "daily-balances-jun-2026.csv",
@@ -6458,7 +6472,7 @@ var Ma = [
6458
6472
  ];
6459
6473
  //#endregion
6460
6474
  //#region ../../react-app/src/components/reports/ReportSummaryCard.tsx
6461
- function Fa({ summary: e }) {
6475
+ function Pa({ summary: e }) {
6462
6476
  return /* @__PURE__ */ _("div", {
6463
6477
  className: "flex flex-wrap justify-center gap-x-4 gap-y-1.5",
6464
6478
  children: e.slices.map((e) => /* @__PURE__ */ v("span", {
@@ -6466,7 +6480,7 @@ function Fa({ summary: e }) {
6466
6480
  children: [
6467
6481
  /* @__PURE__ */ _("span", {
6468
6482
  className: "size-2 shrink-0 rounded-full",
6469
- style: { backgroundColor: ja(e.code) }
6483
+ style: { backgroundColor: Aa(e.code) }
6470
6484
  }),
6471
6485
  /* @__PURE__ */ _("span", {
6472
6486
  className: "text-muted-foreground",
@@ -6480,11 +6494,11 @@ function Fa({ summary: e }) {
6480
6494
  }, e.code))
6481
6495
  });
6482
6496
  }
6483
- function Ia({ summary: e, emphasized: t = !0, className: n }) {
6497
+ function Fa({ summary: e, emphasized: t = !0, className: n }) {
6484
6498
  let r = e.slices.map((e) => ({
6485
6499
  label: e.code,
6486
6500
  value: e.percent,
6487
- color: ja(e.code),
6501
+ color: Aa(e.code),
6488
6502
  detail: e.amount ? `${e.amount} · ${e.percent}%` : `${e.percent}%`
6489
6503
  }));
6490
6504
  return /* @__PURE__ */ v("div", {
@@ -6500,19 +6514,19 @@ function Ia({ summary: e, emphasized: t = !0, className: n }) {
6500
6514
  }),
6501
6515
  /* @__PURE__ */ _("div", {
6502
6516
  className: "mt-4 flex justify-center",
6503
- children: /* @__PURE__ */ _(da, { segments: r })
6517
+ children: /* @__PURE__ */ _(ua, { segments: r })
6504
6518
  }),
6505
6519
  /* @__PURE__ */ _("div", {
6506
6520
  className: "mt-5",
6507
- children: /* @__PURE__ */ _(Fa, { summary: e })
6521
+ children: /* @__PURE__ */ _(Pa, { summary: e })
6508
6522
  })
6509
6523
  ]
6510
6524
  });
6511
6525
  }
6512
- function La({ summaries: e, className: t }) {
6526
+ function Ia({ summaries: e, className: t }) {
6513
6527
  return /* @__PURE__ */ _("div", {
6514
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),
6515
- children: e.map((e, t) => /* @__PURE__ */ _(Ia, {
6529
+ children: e.map((e, t) => /* @__PURE__ */ _(Fa, {
6516
6530
  summary: e,
6517
6531
  emphasized: t === 0
6518
6532
  }, e.label))
@@ -6520,7 +6534,7 @@ function La({ summaries: e, className: t }) {
6520
6534
  }
6521
6535
  //#endregion
6522
6536
  //#region ../../react-app/src/components/reports/ReportsSummaryEmpty.tsx
6523
- function Ra({ className: e }) {
6537
+ function La({ className: e }) {
6524
6538
  return /* @__PURE__ */ v("div", {
6525
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),
6526
6540
  children: [/* @__PURE__ */ _("div", {
@@ -6542,18 +6556,18 @@ function Ra({ className: e }) {
6542
6556
  }
6543
6557
  //#endregion
6544
6558
  //#region ../../react-app/src/components/reports/types.ts
6545
- var za = /* @__PURE__ */ F({}), Ba = /* @__PURE__ */ F({
6546
- default: () => to,
6547
- getReportData: () => to
6548
- }), Va = [
6559
+ var Ra = /* @__PURE__ */ F({}), za = /* @__PURE__ */ F({
6560
+ default: () => eo,
6561
+ getReportData: () => eo
6562
+ }), Ba = [
6549
6563
  "USDT",
6550
6564
  "USDC",
6551
6565
  "BTC",
6552
6566
  "ETH",
6553
6567
  "SOL",
6554
6568
  "XRP"
6555
- ], Ha = ga, Ua = ha;
6556
- function Wa(e) {
6569
+ ], Va = ha, Ha = ma;
6570
+ function Ua(e) {
6557
6571
  let t = e >>> 0;
6558
6572
  return () => {
6559
6573
  t |= 0, t = t + 1831565813 | 0;
@@ -6561,12 +6575,12 @@ function Wa(e) {
6561
6575
  return e = e + Math.imul(e ^ e >>> 7, 61 | e) ^ e, ((e ^ e >>> 14) >>> 0) / 4294967296;
6562
6576
  };
6563
6577
  }
6564
- function Ga(e) {
6578
+ function Wa(e) {
6565
6579
  if (e.mode === "month") return e.month.getFullYear() * 100 + (e.month.getMonth() + 1);
6566
6580
  let t = 864e5, n = Math.floor(e.from.getTime() / t), r = Math.floor(e.to.getTime() / t);
6567
6581
  return n % 1e5 * 1e3 + r % 1e3;
6568
6582
  }
6569
- function Ka(e) {
6583
+ function Ga(e) {
6570
6584
  return e.mode === "month" ? {
6571
6585
  start: oe(e.month),
6572
6586
  end: k(e.month)
@@ -6584,16 +6598,16 @@ function Q(e) {
6584
6598
  maximumFractionDigits: 2
6585
6599
  })}`;
6586
6600
  }
6587
- function qa(e) {
6601
+ function Ka(e) {
6588
6602
  return Math.round(e).toLocaleString("en-US");
6589
6603
  }
6590
- function Ja(e, t) {
6604
+ function qa(e, t) {
6591
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;
6592
6606
  return r.forEach((e, t) => {
6593
6607
  e > r[a] && (a = t);
6594
6608
  }), r[a] += i, r.map((e) => e / 100);
6595
6609
  }
6596
- function Ya(e, t) {
6610
+ function Ja(e, t) {
6597
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) => ({
6598
6612
  i: t,
6599
6613
  frac: e - Math.floor(e)
@@ -6601,7 +6615,7 @@ function Ya(e, t) {
6601
6615
  for (let e = 0; e < a && e < o.length; e++) s[o[e].i]++;
6602
6616
  return s;
6603
6617
  }
6604
- function Xa(e, t) {
6618
+ function Ya(e, t) {
6605
6619
  if (t <= 0) return e.map(() => 0);
6606
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) => ({
6607
6621
  i: t,
@@ -6610,8 +6624,8 @@ function Xa(e, t) {
6610
6624
  for (let e = 0; e < i && e < a.length; e++) o[a[e].i]++;
6611
6625
  return o;
6612
6626
  }
6613
- function Za(e, t, n, r) {
6614
- let i = Xa(n, t), a = Va.map((e, t) => ({
6627
+ function Xa(e, t, n, r) {
6628
+ let i = Ya(n, t), a = Ba.map((e, t) => ({
6615
6629
  code: e,
6616
6630
  percent: i[t],
6617
6631
  amount: r(n[t])
@@ -6622,7 +6636,7 @@ function Za(e, t, n, r) {
6622
6636
  slices: a
6623
6637
  };
6624
6638
  }
6625
- function Qa(e) {
6639
+ function Za(e) {
6626
6640
  return e === "transactions" ? [
6627
6641
  "Total Transactions",
6628
6642
  "Total Deposits",
@@ -6633,15 +6647,15 @@ function Qa(e) {
6633
6647
  "Total Withdrawals"
6634
6648
  ];
6635
6649
  }
6636
- function $a(e) {
6650
+ function Qa(e) {
6637
6651
  let t = e === "transactions" ? "0" : "$0.00";
6638
- return Qa(e).map((e) => ({
6652
+ return Za(e).map((e) => ({
6639
6653
  label: e,
6640
6654
  total: t,
6641
6655
  slices: []
6642
6656
  }));
6643
6657
  }
6644
- function eo(e, t, n) {
6658
+ function $a(e, t, n) {
6645
6659
  let r = (e) => n() < e, i = re({
6646
6660
  start: e,
6647
6661
  end: t
@@ -6660,40 +6674,40 @@ function eo(e, t, n) {
6660
6674
  return a = l, u;
6661
6675
  }).reverse();
6662
6676
  }
6663
- function to(e, t = "volume") {
6664
- let { start: n, end: r } = Ka(e), i = ie([n, Ha]), a = M([r, Ua]), o = a >= i ? ne(a, i) + 1 : 0;
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;
6665
6679
  if (o <= 0) return {
6666
6680
  isEmpty: !0,
6667
- summaries: $a(t),
6681
+ summaries: Qa(t),
6668
6682
  dailyBalances: []
6669
6683
  };
6670
- let s = eo(i, a, Wa(Ga(e))), c = Wa(Ga(e) + (t === "transactions" ? 4242 : 0)), l = Va.map(() => c() + .1), u = Va.map(() => c() + .1), [d, f, p] = Qa(t);
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);
6671
6685
  if (t === "transactions") {
6672
- let e = Math.max(1, Math.round(o * (6 + c() * 8))), t = Math.round(e * (.2 + c() * .3)), n = Ya(e, l), r = Ya(t, u), i = n.map((e, t) => e + r[t]);
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]);
6673
6687
  return {
6674
6688
  isEmpty: !1,
6675
6689
  summaries: [
6676
- Za(d, e + t, i, qa),
6677
- Za(f, e, n, qa),
6678
- Za(p, t, r, qa)
6690
+ Xa(d, e + t, i, Ka),
6691
+ Xa(f, e, n, Ka),
6692
+ Xa(p, t, r, Ka)
6679
6693
  ],
6680
6694
  dailyBalances: s
6681
6695
  };
6682
6696
  }
6683
- let m = Z(o * (8 + c() * 6)), h = Z(m * (.15 + c() * .22)), g = Ja(m, l), _ = Ja(h, u), v = g.map((e, t) => Z(e + _[t]));
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]));
6684
6698
  return {
6685
6699
  isEmpty: !1,
6686
6700
  summaries: [
6687
- Za(d, Z(m + h), v, Q),
6688
- Za(f, m, g, Q),
6689
- Za(p, h, _, Q)
6701
+ Xa(d, Z(m + h), v, Q),
6702
+ Xa(f, m, g, Q),
6703
+ Xa(p, h, _, Q)
6690
6704
  ],
6691
6705
  dailyBalances: s
6692
6706
  };
6693
6707
  }
6694
6708
  //#endregion
6695
6709
  //#region ../../react-app/src/components/balances/WalletRowActions.tsx
6696
- var no = [
6710
+ var to = [
6697
6711
  {
6698
6712
  id: "withdraw",
6699
6713
  label: "Withdraw",
@@ -6710,10 +6724,10 @@ var no = [
6710
6724
  icon: Ce
6711
6725
  }
6712
6726
  ];
6713
- function ro({ variant: e = "menu", label: t, onAction: n }) {
6727
+ function no({ variant: e = "menu", label: t, onAction: n }) {
6714
6728
  return e === "icons" ? /* @__PURE__ */ _("div", {
6715
6729
  className: "flex items-center justify-end gap-0.5",
6716
- children: no.map(({ id: e, label: r, icon: i }) => /* @__PURE__ */ v(Fn, { children: [/* @__PURE__ */ _(In, {
6730
+ children: to.map(({ id: e, label: r, icon: i }) => /* @__PURE__ */ v(Fn, { children: [/* @__PURE__ */ _(In, {
6717
6731
  asChild: !0,
6718
6732
  children: /* @__PURE__ */ _(z, {
6719
6733
  variant: "ghost",
@@ -6748,7 +6762,7 @@ function ro({ variant: e = "menu", label: t, onAction: n }) {
6748
6762
  }), /* @__PURE__ */ _(It, {
6749
6763
  align: "end",
6750
6764
  className: "min-w-[11rem] p-1.5",
6751
- children: no.map(({ id: e, label: t, icon: r }) => /* @__PURE__ */ v(Lt, {
6765
+ children: to.map(({ id: e, label: t, icon: r }) => /* @__PURE__ */ v(Lt, {
6752
6766
  onSelect: () => n?.(e),
6753
6767
  className: "cursor-pointer gap-2.5 rounded-md px-2.5 py-2 text-sm",
6754
6768
  children: [/* @__PURE__ */ _(x, {
@@ -6764,58 +6778,58 @@ function ro({ variant: e = "menu", label: t, onAction: n }) {
6764
6778
  }
6765
6779
  //#endregion
6766
6780
  //#region ../../react-app/src/components/balances/WalletBalancesTable.tsx
6767
- var io = (e) => e && parseFloat(e.replace(/[^0-9.-]/g, "")) || 0, ao = (e) => {
6781
+ var ro = (e) => e && parseFloat(e.replace(/[^0-9.-]/g, "")) || 0, io = (e) => {
6768
6782
  let t = e.indexOf(".");
6769
6783
  return t < 0 ? 0 : e.length - t - 1;
6770
- }, oo = (e, t) => e.toLocaleString("en-US", {
6784
+ }, ao = (e, t) => e.toLocaleString("en-US", {
6771
6785
  minimumFractionDigits: t,
6772
6786
  maximumFractionDigits: t
6773
- }), so = (e) => e.toLocaleString("en-US", {
6787
+ }), oo = (e) => e.toLocaleString("en-US", {
6774
6788
  style: "currency",
6775
6789
  currency: "USD"
6776
- }), co = (e) => e.name.toLowerCase().includes("payout");
6777
- function lo(e, t) {
6790
+ }), so = (e) => e.name.toLowerCase().includes("payout");
6791
+ function co(e, t) {
6778
6792
  let n = e.filter(Boolean);
6779
6793
  if (n.length === 0) return;
6780
- let r = n.reduce((e, t) => e + io(t.pending), 0);
6794
+ let r = n.reduce((e, t) => e + ro(t.pending), 0);
6781
6795
  return {
6782
- amount: oo(n.reduce((e, t) => e + io(t.amount), 0), t),
6783
- fiat: so(n.reduce((e, t) => e + io(t.amountFiat), 0)),
6784
- pending: r > 0 ? oo(r, t) : void 0,
6785
- pendingFiat: r > 0 ? so(n.reduce((e, t) => e + io(t.pendingFiat), 0)) : void 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
6786
6800
  };
6787
6801
  }
6788
- var uo = (e) => {
6789
- let t = e?.note ? io(e.note) : 0;
6790
- return t > 0 && io(e?.amountFiat) < t;
6802
+ var lo = (e) => {
6803
+ let t = e?.note ? ro(e.note) : 0;
6804
+ return t > 0 && ro(e?.amountFiat) < t;
6791
6805
  };
6792
- function fo(e) {
6793
- let t = ao(e.wallets[0]?.amount ?? "0"), n = [], r = {};
6794
- for (let t of e.wallets) r[t.network] || (r[t.network] = { networkName: t.networkName }, n.push(t.network)), co(t) ? r[t.network].payout = t : r[t.network].main = t;
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;
6795
6809
  let i = n.map((e) => {
6796
6810
  let n = r[e];
6797
6811
  return {
6798
6812
  network: e,
6799
6813
  networkName: n.networkName,
6800
- main: lo([n.main], t),
6801
- payout: lo([n.payout], t),
6802
- total: lo([n.main, n.payout], t),
6803
- belowMin: uo(n.main) || uo(n.payout)
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)
6804
6818
  };
6805
6819
  }), a = {
6806
- amount: oo(0, t),
6807
- fiat: so(0)
6820
+ amount: ao(0, t),
6821
+ fiat: oo(0)
6808
6822
  };
6809
6823
  return {
6810
6824
  code: e.code,
6811
6825
  networkCount: n.length,
6812
- main: lo(e.wallets.filter((e) => !co(e)), t) ?? a,
6813
- payout: lo(e.wallets.filter(co), t) ?? a,
6814
- total: lo(e.wallets, t),
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),
6815
6829
  networks: i
6816
6830
  };
6817
6831
  }
6818
- function po({ money: e, code: t, strong: n = !1, large: r = !1, muted: i = !1, align: a = "end" }) {
6832
+ function fo({ money: e, code: t, strong: n = !1, large: r = !1, muted: i = !1, align: a = "end" }) {
6819
6833
  return e ? /* @__PURE__ */ _(G, {
6820
6834
  align: a,
6821
6835
  tabularNums: !0,
@@ -6841,7 +6855,7 @@ function po({ money: e, code: t, strong: n = !1, large: r = !1, muted: i = !1, a
6841
6855
  })
6842
6856
  });
6843
6857
  }
6844
- function mo({ balances: e, actionsVariant: t = "menu", className: r }) {
6858
+ function po({ balances: e, actionsVariant: t = "menu", className: r }) {
6845
6859
  let { setExtension: i, stickyTop: a } = Er(), s = u(null), [c, l] = d(/* @__PURE__ */ new Set()), f = (e) => l((t) => {
6846
6860
  let n = new Set(t);
6847
6861
  return n.has(e) ? n.delete(e) : n.add(e), n;
@@ -6861,7 +6875,7 @@ function mo({ balances: e, actionsVariant: t = "menu", className: r }) {
6861
6875
  n.disconnect(), i(0);
6862
6876
  };
6863
6877
  }, [i, a]);
6864
- let p = e.map(fo);
6878
+ let p = e.map(uo);
6865
6879
  return /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("div", {
6866
6880
  ref: s,
6867
6881
  "aria-hidden": !0,
@@ -6936,7 +6950,7 @@ function mo({ balances: e, actionsVariant: t = "menu", className: r }) {
6936
6950
  }),
6937
6951
  /* @__PURE__ */ _(H, {
6938
6952
  className: "border-b border-cb-line py-2.5 pl-4 align-top",
6939
- children: /* @__PURE__ */ _(po, {
6953
+ children: /* @__PURE__ */ _(fo, {
6940
6954
  money: e.main,
6941
6955
  code: e.code,
6942
6956
  large: !0,
@@ -6945,7 +6959,7 @@ function mo({ balances: e, actionsVariant: t = "menu", className: r }) {
6945
6959
  }),
6946
6960
  /* @__PURE__ */ _(H, {
6947
6961
  className: "border-b border-cb-line py-2.5 pl-4 align-top",
6948
- children: /* @__PURE__ */ _(po, {
6962
+ children: /* @__PURE__ */ _(fo, {
6949
6963
  money: e.payout,
6950
6964
  code: e.code,
6951
6965
  large: !0,
@@ -6954,7 +6968,7 @@ function mo({ balances: e, actionsVariant: t = "menu", className: r }) {
6954
6968
  }),
6955
6969
  /* @__PURE__ */ _(H, {
6956
6970
  className: "border-b border-cb-line py-2.5 pr-4 align-top",
6957
- children: /* @__PURE__ */ _(po, {
6971
+ children: /* @__PURE__ */ _(fo, {
6958
6972
  money: e.total,
6959
6973
  code: e.code,
6960
6974
  strong: !0,
@@ -6966,7 +6980,7 @@ function mo({ balances: e, actionsVariant: t = "menu", className: r }) {
6966
6980
  children: /* @__PURE__ */ _("div", {
6967
6981
  className: "flex items-center justify-end",
6968
6982
  onClick: (e) => e.stopPropagation(),
6969
- children: /* @__PURE__ */ _(ro, {
6983
+ children: /* @__PURE__ */ _(no, {
6970
6984
  variant: t,
6971
6985
  label: `${e.code} actions`
6972
6986
  })
@@ -6988,7 +7002,7 @@ function mo({ balances: e, actionsVariant: t = "menu", className: r }) {
6988
7002
  }),
6989
7003
  /* @__PURE__ */ _("span", {
6990
7004
  className: "font-medium",
6991
- children: n.networkName
7005
+ children: n.network
6992
7006
  }),
6993
7007
  n.belowMin && /* @__PURE__ */ _("span", {
6994
7008
  className: "text-xs font-medium text-amber-600",
@@ -6999,7 +7013,7 @@ function mo({ balances: e, actionsVariant: t = "menu", className: r }) {
6999
7013
  }),
7000
7014
  /* @__PURE__ */ _(H, {
7001
7015
  className: "border-b border-slate-100 py-2 pl-4 align-top",
7002
- children: /* @__PURE__ */ _(po, {
7016
+ children: /* @__PURE__ */ _(fo, {
7003
7017
  money: n.main,
7004
7018
  code: e.code,
7005
7019
  align: "start",
@@ -7008,7 +7022,7 @@ function mo({ balances: e, actionsVariant: t = "menu", className: r }) {
7008
7022
  }),
7009
7023
  /* @__PURE__ */ _(H, {
7010
7024
  className: "border-b border-slate-100 py-2 pl-4 align-top",
7011
- children: /* @__PURE__ */ _(po, {
7025
+ children: /* @__PURE__ */ _(fo, {
7012
7026
  money: n.payout,
7013
7027
  code: e.code,
7014
7028
  align: "start",
@@ -7017,7 +7031,7 @@ function mo({ balances: e, actionsVariant: t = "menu", className: r }) {
7017
7031
  }),
7018
7032
  /* @__PURE__ */ _(H, {
7019
7033
  className: "border-b border-slate-100 py-2 pr-4 align-top",
7020
- children: /* @__PURE__ */ _(po, {
7034
+ children: /* @__PURE__ */ _(fo, {
7021
7035
  money: n.total,
7022
7036
  code: e.code,
7023
7037
  muted: !0
@@ -7027,7 +7041,7 @@ function mo({ balances: e, actionsVariant: t = "menu", className: r }) {
7027
7041
  className: "border-b border-slate-100 py-2 pr-4 align-top",
7028
7042
  children: /* @__PURE__ */ _("div", {
7029
7043
  className: "flex items-center justify-end",
7030
- children: /* @__PURE__ */ _(ro, {
7044
+ children: /* @__PURE__ */ _(no, {
7031
7045
  variant: t,
7032
7046
  label: `${e.code} ${n.networkName} actions`
7033
7047
  })
@@ -7040,7 +7054,7 @@ function mo({ balances: e, actionsVariant: t = "menu", className: r }) {
7040
7054
  }
7041
7055
  //#endregion
7042
7056
  //#region ../../react-app/src/components/balances/BalancesSummary.tsx
7043
- function ho({ label: e, value: t, valueClassName: n, children: r }) {
7057
+ function mo({ label: e, value: t, valueClassName: n, children: r }) {
7044
7058
  return /* @__PURE__ */ v("div", {
7045
7059
  className: "flex flex-col gap-1.5 px-5 py-4",
7046
7060
  children: [/* @__PURE__ */ _("span", {
@@ -7052,21 +7066,21 @@ function ho({ label: e, value: t, valueClassName: n, children: r }) {
7052
7066
  })]
7053
7067
  });
7054
7068
  }
7055
- function go({ totalAssets: e, totalPending: t, activeWallets: n, totalWallets: r, showTotalWallets: i = !0, pendingAmber: a = !1, className: o }) {
7069
+ function ho({ totalAssets: e, totalPending: t, activeWallets: n, totalWallets: r, showTotalWallets: i = !0, pendingAmber: a = !1, className: o }) {
7056
7070
  return /* @__PURE__ */ v("div", {
7057
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),
7058
7072
  children: [
7059
- /* @__PURE__ */ _(ho, {
7073
+ /* @__PURE__ */ _(mo, {
7060
7074
  label: "Total assets under management",
7061
7075
  value: e,
7062
7076
  valueClassName: "font-semibold"
7063
7077
  }),
7064
- /* @__PURE__ */ _(ho, {
7078
+ /* @__PURE__ */ _(mo, {
7065
7079
  label: "Total pending",
7066
7080
  value: t,
7067
7081
  valueClassName: I("font-normal", a && "text-amber-600")
7068
7082
  }),
7069
- /* @__PURE__ */ v(ho, {
7083
+ /* @__PURE__ */ v(mo, {
7070
7084
  label: "Active wallets",
7071
7085
  children: [/* @__PURE__ */ _("span", {
7072
7086
  className: "font-normal",
@@ -7081,10 +7095,10 @@ function go({ totalAssets: e, totalPending: t, activeWallets: n, totalWallets: r
7081
7095
  }
7082
7096
  //#endregion
7083
7097
  //#region ../../react-app/src/components/balances/data.ts
7084
- var _o = /* @__PURE__ */ F({
7085
- CURRENCY_BALANCES: () => vo,
7086
- balancesTotals: () => yo
7087
- }), vo = [
7098
+ var go = /* @__PURE__ */ F({
7099
+ CURRENCY_BALANCES: () => _o,
7100
+ balancesTotals: () => vo
7101
+ }), _o = [
7088
7102
  {
7089
7103
  code: "BTC",
7090
7104
  name: "Bitcoin",
@@ -7312,7 +7326,7 @@ var _o = /* @__PURE__ */ F({
7312
7326
  }]
7313
7327
  }
7314
7328
  ];
7315
- function yo(e) {
7329
+ function vo(e) {
7316
7330
  let t = (e) => parseFloat(e.replace(/[^0-9.-]/g, "")) || 0, n = (e) => e.toLocaleString("en-US", {
7317
7331
  style: "currency",
7318
7332
  currency: "USD"
@@ -7326,15 +7340,15 @@ function yo(e) {
7326
7340
  }
7327
7341
  //#endregion
7328
7342
  //#region ../../react-app/src/components/balances/types.ts
7329
- var bo = /* @__PURE__ */ F({}), xo = /* @__PURE__ */ F({
7330
- RECENT_TRANSACTIONS: () => So,
7331
- default: () => So
7332
- }), So = [
7343
+ var yo = /* @__PURE__ */ F({}), bo = /* @__PURE__ */ F({
7344
+ RECENT_TRANSACTIONS: () => xo,
7345
+ default: () => xo
7346
+ }), xo = [
7333
7347
  {
7334
7348
  id: "rtx-1",
7335
7349
  label: "Manual Deposit",
7336
7350
  direction: "in",
7337
- status: "confirmed",
7351
+ status: "CONFIRMED",
7338
7352
  currency: "USDT",
7339
7353
  network: "TRX",
7340
7354
  amount: "+20.00",
@@ -7357,7 +7371,7 @@ var bo = /* @__PURE__ */ F({}), xo = /* @__PURE__ */ F({
7357
7371
  id: "rtx-2",
7358
7372
  label: "Manual Deposit",
7359
7373
  direction: "in",
7360
- status: "confirmed",
7374
+ status: "CONFIRMED",
7361
7375
  currency: "USDT",
7362
7376
  network: "TRX",
7363
7377
  amount: "+50.00",
@@ -7379,7 +7393,7 @@ var bo = /* @__PURE__ */ F({}), xo = /* @__PURE__ */ F({
7379
7393
  id: "rtx-3",
7380
7394
  label: "Auto Transfer",
7381
7395
  direction: "transfer",
7382
- status: "confirmed",
7396
+ status: "CONFIRMED",
7383
7397
  currency: "USDT",
7384
7398
  network: "TRX",
7385
7399
  amount: "100.00",
@@ -7400,7 +7414,7 @@ var bo = /* @__PURE__ */ F({}), xo = /* @__PURE__ */ F({
7400
7414
  id: "rtx-4",
7401
7415
  label: "Manual Withdraw",
7402
7416
  direction: "out",
7403
- status: "confirmed",
7417
+ status: "CONFIRMED",
7404
7418
  currency: "USDT",
7405
7419
  network: "TRX",
7406
7420
  amount: "-75.50",
@@ -7423,7 +7437,7 @@ var bo = /* @__PURE__ */ F({}), xo = /* @__PURE__ */ F({
7423
7437
  id: "rtx-5",
7424
7438
  label: "Auto Transfer",
7425
7439
  direction: "transfer",
7426
- status: "processing",
7440
+ status: "PROCESSING",
7427
7441
  currency: "USDT",
7428
7442
  network: "TRX",
7429
7443
  amount: "250.00",
@@ -7534,7 +7548,7 @@ function $({ id: e, label: t, value: n, options: r, onChange: i, placeholder: a
7534
7548
  }
7535
7549
  //#endregion
7536
7550
  //#region ../../react-app/src/components/fields/AmountField.tsx
7537
- function Co({ 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 }) {
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 }) {
7538
7552
  return /* @__PURE__ */ v("div", {
7539
7553
  className: I("flex flex-col gap-1.5", f),
7540
7554
  children: [
@@ -7589,7 +7603,7 @@ function Co({ id: e, label: t = "Amount", value: n, onChange: r, suffix: i, hint
7589
7603
  }
7590
7604
  //#endregion
7591
7605
  //#region ../../react-app/src/components/fields/TextField.tsx
7592
- function wo({ 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 }) {
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 }) {
7593
7607
  return /* @__PURE__ */ v("div", {
7594
7608
  className: I("flex flex-col gap-1.5", m),
7595
7609
  children: [
@@ -7626,10 +7640,10 @@ function wo({ id: e, label: t, value: n, onChange: r, placeholder: i, hint: a, h
7626
7640
  }
7627
7641
  //#endregion
7628
7642
  //#region ../../react-app/src/components/fields/WalletField.tsx
7629
- function To(e) {
7643
+ function wo(e) {
7630
7644
  return e.length > 18 ? `${e.slice(0, 10)}…${e.slice(-6)}` : e;
7631
7645
  }
7632
- function Eo({ 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 }) {
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 }) {
7633
7647
  return /* @__PURE__ */ _($, {
7634
7648
  id: e,
7635
7649
  label: t,
@@ -7641,7 +7655,7 @@ function Eo({ id: e, label: t = "Wallet", placeholder: n = "Select a wallet", va
7641
7655
  } : {
7642
7656
  value: e.id,
7643
7657
  label: e.name,
7644
- sublabel: e.address ? To(e.address) : void 0,
7658
+ sublabel: e.address ? wo(e.address) : void 0,
7645
7659
  leading: e.coin && e.network ? /* @__PURE__ */ _(Ir, {
7646
7660
  code: e.coin,
7647
7661
  network: e.network,
@@ -7665,11 +7679,11 @@ function Eo({ id: e, label: t = "Wallet", placeholder: n = "Select a wallet", va
7665
7679
  }
7666
7680
  //#endregion
7667
7681
  //#region ../../react-app/src/components/convert/ConvertHistoryTable.tsx
7668
- function Do(e) {
7682
+ function Eo(e) {
7669
7683
  let t = Date.parse(`${e.date} ${e.time}`);
7670
7684
  return Number.isNaN(t) ? 0 : t;
7671
7685
  }
7672
- function Oo({ name: e }) {
7686
+ function Do({ name: e }) {
7673
7687
  return /* @__PURE__ */ v("span", {
7674
7688
  className: "flex items-center gap-2",
7675
7689
  children: [/* @__PURE__ */ _("span", {
@@ -7681,7 +7695,7 @@ function Oo({ name: e }) {
7681
7695
  })]
7682
7696
  });
7683
7697
  }
7684
- function ko({ amount: e, coin: t, tone: n }) {
7698
+ function Oo({ amount: e, coin: t, tone: n }) {
7685
7699
  return /* @__PURE__ */ v("span", {
7686
7700
  className: "flex items-center gap-2.5",
7687
7701
  children: [/* @__PURE__ */ _(U, {
@@ -7701,13 +7715,13 @@ function ko({ amount: e, coin: t, tone: n }) {
7701
7715
  })]
7702
7716
  });
7703
7717
  }
7704
- function Ao({ data: e, className: t }) {
7718
+ function ko({ data: e, className: t }) {
7705
7719
  let n = l(() => [
7706
7720
  {
7707
7721
  id: "date",
7708
7722
  header: "Date",
7709
7723
  sortable: !0,
7710
- sortValue: Do,
7724
+ sortValue: Eo,
7711
7725
  cell: (e) => /* @__PURE__ */ _(G, {
7712
7726
  primary: e.date,
7713
7727
  secondary: e.time
@@ -7718,12 +7732,12 @@ function Ao({ data: e, className: t }) {
7718
7732
  header: "Initiated by",
7719
7733
  sortable: !0,
7720
7734
  sortValue: (e) => e.initiator,
7721
- cell: (e) => /* @__PURE__ */ _(Oo, { name: e.initiator })
7735
+ cell: (e) => /* @__PURE__ */ _(Do, { name: e.initiator })
7722
7736
  },
7723
7737
  {
7724
7738
  id: "from",
7725
7739
  header: "From",
7726
- cell: (e) => /* @__PURE__ */ _(ko, {
7740
+ cell: (e) => /* @__PURE__ */ _(Oo, {
7727
7741
  amount: e.fromAmount,
7728
7742
  coin: e.fromCoin,
7729
7743
  tone: "out"
@@ -7732,7 +7746,7 @@ function Ao({ data: e, className: t }) {
7732
7746
  {
7733
7747
  id: "to",
7734
7748
  header: "To",
7735
- cell: (e) => /* @__PURE__ */ _(ko, {
7749
+ cell: (e) => /* @__PURE__ */ _(Oo, {
7736
7750
  amount: e.toAmount,
7737
7751
  coin: e.toCoin,
7738
7752
  tone: "in"
@@ -7768,7 +7782,7 @@ function Ao({ data: e, className: t }) {
7768
7782
  }
7769
7783
  //#endregion
7770
7784
  //#region ../../react-app/src/components/convert/ConvertSummary.tsx
7771
- function jo({ caption: e, coin: t, amount: n, fiat: r, amountClassName: i }) {
7785
+ function Ao({ caption: e, coin: t, amount: n, fiat: r, amountClassName: i }) {
7772
7786
  let a = n != null && n !== "";
7773
7787
  return /* @__PURE__ */ v("div", {
7774
7788
  className: "flex flex-col gap-1.5",
@@ -7804,7 +7818,7 @@ function jo({ caption: e, coin: t, amount: n, fiat: r, amountClassName: i }) {
7804
7818
  })]
7805
7819
  });
7806
7820
  }
7807
- function Mo({ 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 }) {
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 }) {
7808
7822
  return /* @__PURE__ */ v("div", {
7809
7823
  className: I("flex flex-col rounded-2xl border border-cb-line bg-slate-50 dark:bg-slate-900/40", g),
7810
7824
  children: [
@@ -7821,7 +7835,7 @@ function Mo({ fromCoin: e, toCoin: t, payAmount: n, payFiat: r, receiveAmount: i
7821
7835
  /* @__PURE__ */ v("div", {
7822
7836
  className: "px-5 pb-3",
7823
7837
  children: [
7824
- /* @__PURE__ */ _(jo, {
7838
+ /* @__PURE__ */ _(Ao, {
7825
7839
  caption: "You pay",
7826
7840
  coin: e,
7827
7841
  amount: n,
@@ -7838,7 +7852,7 @@ function Mo({ fromCoin: e, toCoin: t, payAmount: n, payFiat: r, receiveAmount: i
7838
7852
  })
7839
7853
  })]
7840
7854
  }),
7841
- /* @__PURE__ */ _(jo, {
7855
+ /* @__PURE__ */ _(Ao, {
7842
7856
  caption: "You receive",
7843
7857
  coin: t,
7844
7858
  amount: i,
@@ -7857,7 +7871,7 @@ function Mo({ fromCoin: e, toCoin: t, payAmount: n, payFiat: r, receiveAmount: i
7857
7871
  children: [/* @__PURE__ */ _("span", {
7858
7872
  className: I("inline-block rounded px-1.5 font-medium tabular-nums text-foreground", s != null && "animate-rate-flash"),
7859
7873
  children: o
7860
- }, l), s != null && /* @__PURE__ */ _(No, {
7874
+ }, l), s != null && /* @__PURE__ */ _(Mo, {
7861
7875
  seconds: s,
7862
7876
  total: c
7863
7877
  })]
@@ -7921,7 +7935,7 @@ function Mo({ fromCoin: e, toCoin: t, payAmount: n, payFiat: r, receiveAmount: i
7921
7935
  ]
7922
7936
  });
7923
7937
  }
7924
- function No({ seconds: e, total: t }) {
7938
+ function Mo({ seconds: e, total: t }) {
7925
7939
  let n = 2 * Math.PI * 8, r = t > 0 ? Math.max(0, Math.min(1, e / t)) : 0;
7926
7940
  return /* @__PURE__ */ v("div", {
7927
7941
  className: "flex shrink-0 items-center gap-2 rounded-full border border-cb-line bg-cb-card px-2.5 py-1",
@@ -7960,17 +7974,17 @@ function No({ seconds: e, total: t }) {
7960
7974
  }
7961
7975
  //#endregion
7962
7976
  //#region ../../react-app/src/components/convert/data.ts
7963
- var Po = /* @__PURE__ */ F({
7964
- COINS: () => Ro,
7965
- CONVERSION_HISTORY: () => Bo,
7966
- CONVERT_FEE_RATE: () => Fo,
7967
- HOLDINGS: () => zo,
7968
- NETWORK_NAMES: () => Lo,
7969
- WALLET_TIERS: () => Io,
7970
- figureToNumber: () => Vo,
7971
- formatCrypto: () => Uo,
7972
- formatUsd: () => Ho
7973
- }), Fo = .002, Io = [
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 = [
7974
7988
  {
7975
7989
  id: "low",
7976
7990
  name: "Low Risk Wallet",
@@ -7991,14 +8005,14 @@ var Po = /* @__PURE__ */ F({
7991
8005
  name: "Payout Wallet",
7992
8006
  purpose: "payout"
7993
8007
  }
7994
- ], Lo = {
8008
+ ], Io = {
7995
8009
  ETH: "Ethereum",
7996
8010
  TRON: "Tron (TRC-20)",
7997
8011
  BTC: "Bitcoin",
7998
8012
  SOL: "Solana",
7999
8013
  POL: "Polygon",
8000
8014
  BNB: "BNB Chain"
8001
- }, Ro = [
8015
+ }, Lo = [
8002
8016
  {
8003
8017
  code: "USDT",
8004
8018
  name: "Tether",
@@ -8050,7 +8064,7 @@ var Po = /* @__PURE__ */ F({
8050
8064
  price: 600,
8051
8065
  networks: ["BNB"]
8052
8066
  }
8053
- ], zo = [
8067
+ ], Ro = [
8054
8068
  {
8055
8069
  id: "h-usdt-low",
8056
8070
  name: "Low Risk Wallet",
@@ -8151,7 +8165,7 @@ var Po = /* @__PURE__ */ F({
8151
8165
  amount: "12,500.00000000",
8152
8166
  amountFiat: "$5,625.00"
8153
8167
  }
8154
- ], Bo = [
8168
+ ], zo = [
8155
8169
  {
8156
8170
  id: "cv-01",
8157
8171
  date: "Jul 14, 2026",
@@ -8164,7 +8178,7 @@ var Po = /* @__PURE__ */ F({
8164
8178
  toAmount: "+6,229.32",
8165
8179
  rate: "1 ETH = 3,121.00 USDT",
8166
8180
  fiatValue: "$6,242.00",
8167
- status: "confirmed"
8181
+ status: "CONFIRMED"
8168
8182
  },
8169
8183
  {
8170
8184
  id: "cv-02",
@@ -8178,7 +8192,7 @@ var Po = /* @__PURE__ */ F({
8178
8192
  toAmount: "+0.19371300",
8179
8193
  rate: "1 BTC = 61,842.00 USDT",
8180
8194
  fiatValue: "$12,000.00",
8181
- status: "processing"
8195
+ status: "PROCESSING"
8182
8196
  },
8183
8197
  {
8184
8198
  id: "cv-03",
@@ -8192,7 +8206,7 @@ var Po = /* @__PURE__ */ F({
8192
8206
  toAmount: "+20.23783700",
8193
8207
  rate: "1 SOL = 148.00 USDC",
8194
8208
  fiatValue: "$3,000.00",
8195
- status: "confirmed"
8209
+ status: "CONFIRMED"
8196
8210
  },
8197
8211
  {
8198
8212
  id: "cv-04",
@@ -8206,7 +8220,7 @@ var Po = /* @__PURE__ */ F({
8206
8220
  toAmount: "+3,085.92",
8207
8221
  rate: "1 BTC = 61,842.00 USDT",
8208
8222
  fiatValue: "$3,092.10",
8209
- status: "confirmed"
8223
+ status: "CONFIRMED"
8210
8224
  },
8211
8225
  {
8212
8226
  id: "cv-05",
@@ -8220,7 +8234,7 @@ var Po = /* @__PURE__ */ F({
8220
8234
  toAmount: "+7,385.20",
8221
8235
  rate: "1 SOL = 148.00 USDC",
8222
8236
  fiatValue: "$7,400.00",
8223
- status: "confirmed"
8237
+ status: "CONFIRMED"
8224
8238
  },
8225
8239
  {
8226
8240
  id: "cv-06",
@@ -8234,7 +8248,7 @@ var Po = /* @__PURE__ */ F({
8234
8248
  toAmount: "+1.91797500",
8235
8249
  rate: "1 ETH = 5.20 BNB",
8236
8250
  fiatValue: "$6,000.00",
8237
- status: "failed"
8251
+ status: "FAILED"
8238
8252
  },
8239
8253
  {
8240
8254
  id: "cv-07",
@@ -8248,7 +8262,7 @@ var Po = /* @__PURE__ */ F({
8248
8262
  toAmount: "+4,491.00",
8249
8263
  rate: "1 POL = 0.45 USDT",
8250
8264
  fiatValue: "$4,500.00",
8251
- status: "confirmed"
8265
+ status: "CONFIRMED"
8252
8266
  },
8253
8267
  {
8254
8268
  id: "cv-08",
@@ -8262,13 +8276,13 @@ var Po = /* @__PURE__ */ F({
8262
8276
  toAmount: "+2.88240900",
8263
8277
  rate: "1 ETH = 3,121.00 USDT",
8264
8278
  fiatValue: "$9,000.00",
8265
- status: "pending-approval"
8279
+ status: "PENDING_APPROVAL"
8266
8280
  }
8267
8281
  ];
8268
- function Vo(e) {
8282
+ function Bo(e) {
8269
8283
  return parseFloat(e.replace(/[^0-9.]/g, "")) || 0;
8270
8284
  }
8271
- function Ho(e) {
8285
+ function Vo(e) {
8272
8286
  return e.toLocaleString("en-US", {
8273
8287
  style: "currency",
8274
8288
  currency: "USD",
@@ -8276,7 +8290,7 @@ function Ho(e) {
8276
8290
  maximumFractionDigits: 2
8277
8291
  });
8278
8292
  }
8279
- function Uo(e) {
8293
+ function Ho(e) {
8280
8294
  return e.toLocaleString("en-US", {
8281
8295
  minimumFractionDigits: 2,
8282
8296
  maximumFractionDigits: 8
@@ -8284,19 +8298,19 @@ function Uo(e) {
8284
8298
  }
8285
8299
  //#endregion
8286
8300
  //#region ../../react-app/src/components/convert/ConvertPanel.tsx
8287
- var Wo = 30;
8288
- function Go({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
8289
- 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(Wo), [ne, re] = d(0), k = Io.find((e) => e.id === r) ?? null, A = k != null && a ? zo.find((e) => e.name === k.name && e.coin === a && e.network === c) ?? zo.find((e) => e.name === k.name && e.coin === a) ?? null : null, j = (u ? zo.find((e) => e.coin === u && e.network === p) ?? zo.find((e) => e.coin === u) : null) ?? null, ie = a ? Ro.find((e) => e.code === a) ?? null : null, M = Ro.find((e) => e.code === u) ?? null, ae = Vo(h), oe = A ? Vo(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 * Fo, F = ae * ce * (1 - Fo), L = k != null && P && c !== "" && p !== "" && N && !se, R = N ? Uo(ae) : null, fe = N && P ? Uo(F) : null, pe = a && M ? `1 ${a} = ${Uo(ce)} ${u}` : null, me = N ? `${Ho(ue)} · ${(Fo * 100).toFixed(1)}%` : null;
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;
8290
8304
  o(() => {
8291
8305
  if (!L) {
8292
- te(Wo);
8306
+ te(Uo);
8293
8307
  return;
8294
8308
  }
8295
- let e = Date.now() + Wo * 1e3;
8296
- te(Wo), D(1 + (Math.random() - .5) * .012), re((e) => e + 1);
8309
+ let e = Date.now() + Uo * 1e3;
8310
+ te(Uo), D(1 + (Math.random() - .5) * .012), re((e) => e + 1);
8297
8311
  let t = setInterval(() => {
8298
8312
  let t = Math.max(0, Math.ceil((e - Date.now()) / 1e3));
8299
- te(t), t === 0 && (D(1 + (Math.random() - .5) * .012), re((e) => e + 1), e = Date.now() + Wo * 1e3);
8313
+ te(t), t === 0 && (D(1 + (Math.random() - .5) * .012), re((e) => e + 1), e = Date.now() + Uo * 1e3);
8300
8314
  }, 250);
8301
8315
  return () => clearInterval(t);
8302
8316
  }, [
@@ -8305,7 +8319,7 @@ function Go({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
8305
8319
  u
8306
8320
  ]);
8307
8321
  let he = (e) => {
8308
- let t = Ro.find((t) => t.code === e)?.networks ?? [];
8322
+ let t = Lo.find((t) => t.code === e)?.networks ?? [];
8309
8323
  return t.length === 1 ? t[0] : "";
8310
8324
  }, ge = (e) => {
8311
8325
  i(e), E(!1);
@@ -8337,11 +8351,11 @@ function Go({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
8337
8351
  wallet: k.name,
8338
8352
  fromCoin: a,
8339
8353
  toCoin: u,
8340
- fromAmount: `-${Uo(ae)}`,
8341
- toAmount: `+${Uo(F)}`,
8342
- rate: `1 ${a} = ${Uo(ce)} ${u}`,
8343
- fiatValue: Ho(le),
8344
- status: "processing"
8354
+ fromAmount: `-${Ho(ae)}`,
8355
+ toAmount: `+${Ho(F)}`,
8356
+ rate: `1 ${a} = ${Ho(ce)} ${u}`,
8357
+ fiatValue: Vo(le),
8358
+ status: "PROCESSING"
8345
8359
  };
8346
8360
  t?.(r), E(!0);
8347
8361
  }, we = (e) => {
@@ -8353,7 +8367,7 @@ function Go({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
8353
8367
  }, Te = (e) => ({
8354
8368
  value: e,
8355
8369
  label: e,
8356
- sublabel: Ro.find((t) => t.code === e)?.name ?? e,
8370
+ sublabel: Lo.find((t) => t.code === e)?.name ?? e,
8357
8371
  leading: /* @__PURE__ */ _(U, {
8358
8372
  code: e,
8359
8373
  src: q(e),
@@ -8362,13 +8376,13 @@ function Go({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
8362
8376
  }), Ee = (e) => ({
8363
8377
  value: e,
8364
8378
  label: e,
8365
- sublabel: Lo[e] ?? e,
8379
+ sublabel: Io[e] ?? e,
8366
8380
  leading: /* @__PURE__ */ _(U, {
8367
8381
  code: e,
8368
8382
  src: q(e),
8369
8383
  className: "size-6"
8370
8384
  })
8371
- }), De = Ro.filter((e) => e.code !== u).map((e) => Te(e.code)), Oe = (ie?.networks ?? []).map(Ee), ke = Ro.filter((e) => e.code !== a).map((e) => Te(e.code)), Ae = (M?.networks ?? []).map(Ee), je = Io.map((e) => ({
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) => ({
8372
8386
  id: e.id,
8373
8387
  name: e.name
8374
8388
  }));
@@ -8380,7 +8394,7 @@ function Go({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
8380
8394
  children: /* @__PURE__ */ v("div", {
8381
8395
  className: "flex flex-col gap-4",
8382
8396
  children: [
8383
- /* @__PURE__ */ _(Eo, {
8397
+ /* @__PURE__ */ _(To, {
8384
8398
  id: "cv-wallet",
8385
8399
  label: "From wallet",
8386
8400
  placeholder: "Select a source wallet",
@@ -8410,7 +8424,7 @@ function Go({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
8410
8424
  disabled: !k || !a
8411
8425
  })]
8412
8426
  }),
8413
- /* @__PURE__ */ _(Co, {
8427
+ /* @__PURE__ */ _(So, {
8414
8428
  id: "cv-amount",
8415
8429
  value: h,
8416
8430
  onChange: Se,
@@ -8436,7 +8450,7 @@ function Go({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
8436
8450
  children: "Amount exceeds the available balance."
8437
8451
  }) : N ? /* @__PURE__ */ v("span", {
8438
8452
  className: "tabular-nums text-muted-foreground",
8439
- children: ["≈ ", Ho(le)]
8453
+ children: ["≈ ", Vo(le)]
8440
8454
  }) : null
8441
8455
  }),
8442
8456
  /* @__PURE__ */ v("div", {
@@ -8497,16 +8511,16 @@ function Go({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
8497
8511
  ]
8498
8512
  })
8499
8513
  }),
8500
- /* @__PURE__ */ _(Mo, {
8514
+ /* @__PURE__ */ _(jo, {
8501
8515
  fromCoin: a,
8502
8516
  toCoin: P ? u : null,
8503
8517
  payAmount: R,
8504
- payFiat: N ? Ho(le) : null,
8518
+ payFiat: N ? Vo(le) : null,
8505
8519
  receiveAmount: fe,
8506
- receiveFiat: N && P ? Ho(le * (1 - Fo)) : null,
8520
+ receiveFiat: N && P ? Vo(le * (1 - Po)) : null,
8507
8521
  rateLabel: pe,
8508
8522
  rateCountdown: L ? O : null,
8509
- rateTtl: Wo,
8523
+ rateTtl: Uo,
8510
8524
  rateVersion: ne,
8511
8525
  feeLabel: me,
8512
8526
  fromWalletName: k?.name ?? null,
@@ -8603,7 +8617,7 @@ function Go({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
8603
8617
  htmlFor: "cv-code",
8604
8618
  className: "text-[13px] font-medium text-muted-foreground",
8605
8619
  children: "Authentication code"
8606
- }), /* @__PURE__ */ _(Ko, {
8620
+ }), /* @__PURE__ */ _(Go, {
8607
8621
  id: "cv-code",
8608
8622
  value: C,
8609
8623
  onChange: w
@@ -8631,7 +8645,7 @@ function Go({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
8631
8645
  ]
8632
8646
  });
8633
8647
  }
8634
- function Ko({ id: e, value: t, onChange: n, length: r = 6 }) {
8648
+ function Go({ id: e, value: t, onChange: n, length: r = 6 }) {
8635
8649
  let [i, a] = d(!1), o = Array.from({ length: r }, (e, n) => t[n] ?? ""), s = Math.min(t.length, r - 1);
8636
8650
  return /* @__PURE__ */ v("div", {
8637
8651
  className: "relative",
@@ -8661,14 +8675,14 @@ function Ko({ id: e, value: t, onChange: n, length: r = 6 }) {
8661
8675
  }
8662
8676
  //#endregion
8663
8677
  //#region ../../react-app/src/components/convert/types.ts
8664
- var qo = /* @__PURE__ */ F({}), Jo = /* @__PURE__ */ F({
8665
- COINS: () => Xo,
8666
- DEPOSIT_HISTORY: () => Qo,
8667
- DEPOSIT_WALLETS: () => Zo,
8668
- NETWORKS: () => Yo,
8669
- figureToNumber: () => $o,
8670
- formatUsd: () => es
8671
- }), Yo = {
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 = {
8672
8686
  ETH: {
8673
8687
  code: "ETH",
8674
8688
  name: "Ethereum"
@@ -8689,7 +8703,7 @@ var qo = /* @__PURE__ */ F({}), Jo = /* @__PURE__ */ F({
8689
8703
  code: "POL",
8690
8704
  name: "Polygon"
8691
8705
  }
8692
- }, Xo = [
8706
+ }, Yo = [
8693
8707
  {
8694
8708
  code: "USDT",
8695
8709
  name: "Tether",
@@ -8724,7 +8738,7 @@ var qo = /* @__PURE__ */ F({}), Jo = /* @__PURE__ */ F({
8724
8738
  name: "Solana",
8725
8739
  networks: ["SOL"]
8726
8740
  }
8727
- ], Zo = [
8741
+ ], Xo = [
8728
8742
  {
8729
8743
  id: "w-usdt-eth-low",
8730
8744
  name: "Low Risk Wallet",
@@ -8857,7 +8871,7 @@ var qo = /* @__PURE__ */ F({}), Jo = /* @__PURE__ */ F({
8857
8871
  amountFiat: "$41,440.00",
8858
8872
  fiatRate: 148
8859
8873
  }
8860
- ], Qo = [
8874
+ ], Zo = [
8861
8875
  {
8862
8876
  id: "dp-01",
8863
8877
  date: "Jul 14, 2026",
@@ -8870,7 +8884,7 @@ var qo = /* @__PURE__ */ F({}), Jo = /* @__PURE__ */ F({
8870
8884
  amount: "+18,500.00",
8871
8885
  amountFiat: "+$18,500.00",
8872
8886
  confirmations: "24/24",
8873
- status: "confirmed"
8887
+ status: "CONFIRMED"
8874
8888
  },
8875
8889
  {
8876
8890
  id: "dp-02",
@@ -8884,7 +8898,7 @@ var qo = /* @__PURE__ */ F({}), Jo = /* @__PURE__ */ F({
8884
8898
  amount: "+4,200.00",
8885
8899
  amountFiat: "+$4,200.00",
8886
8900
  confirmations: "9/19",
8887
- status: "partially-completed"
8901
+ status: "PARTIALLY_COMPLETED"
8888
8902
  },
8889
8903
  {
8890
8904
  id: "dp-03",
@@ -8898,7 +8912,7 @@ var qo = /* @__PURE__ */ F({}), Jo = /* @__PURE__ */ F({
8898
8912
  amount: "+9,000.00",
8899
8913
  amountFiat: "+$9,000.00",
8900
8914
  confirmations: "24/24",
8901
- status: "confirmed"
8915
+ status: "CONFIRMED"
8902
8916
  },
8903
8917
  {
8904
8918
  id: "dp-04",
@@ -8912,7 +8926,7 @@ var qo = /* @__PURE__ */ F({}), Jo = /* @__PURE__ */ F({
8912
8926
  amount: "+0.15000000",
8913
8927
  amountFiat: "+$9,276.30",
8914
8928
  confirmations: "2/3",
8915
- status: "processing"
8929
+ status: "PROCESSING"
8916
8930
  },
8917
8931
  {
8918
8932
  id: "dp-05",
@@ -8926,7 +8940,7 @@ var qo = /* @__PURE__ */ F({}), Jo = /* @__PURE__ */ F({
8926
8940
  amount: "+2,500.00",
8927
8941
  amountFiat: "+$2,500.00",
8928
8942
  confirmations: "31/31",
8929
- status: "confirmed"
8943
+ status: "CONFIRMED"
8930
8944
  },
8931
8945
  {
8932
8946
  id: "dp-06",
@@ -8939,7 +8953,7 @@ var qo = /* @__PURE__ */ F({}), Jo = /* @__PURE__ */ F({
8939
8953
  network: "ETH",
8940
8954
  amount: "+3.20000000",
8941
8955
  amountFiat: "+$9,987.20",
8942
- status: "pending-approval"
8956
+ status: "PENDING_APPROVAL"
8943
8957
  },
8944
8958
  {
8945
8959
  id: "dp-07",
@@ -8953,7 +8967,7 @@ var qo = /* @__PURE__ */ F({}), Jo = /* @__PURE__ */ F({
8953
8967
  amount: "+11,300.00",
8954
8968
  amountFiat: "+$11,300.00",
8955
8969
  confirmations: "19/19",
8956
- status: "confirmed"
8970
+ status: "CONFIRMED"
8957
8971
  },
8958
8972
  {
8959
8973
  id: "dp-08",
@@ -8967,13 +8981,13 @@ var qo = /* @__PURE__ */ F({}), Jo = /* @__PURE__ */ F({
8967
8981
  amount: "+60.00000000",
8968
8982
  amountFiat: "+$8,880.00",
8969
8983
  confirmations: "31/31",
8970
- status: "confirmed"
8984
+ status: "CONFIRMED"
8971
8985
  }
8972
8986
  ];
8973
- function $o(e) {
8987
+ function Qo(e) {
8974
8988
  return parseFloat(e.replace(/[^0-9.]/g, "")) || 0;
8975
8989
  }
8976
- function es(e) {
8990
+ function $o(e) {
8977
8991
  return e.toLocaleString("en-US", {
8978
8992
  style: "currency",
8979
8993
  currency: "USD",
@@ -8983,17 +8997,17 @@ function es(e) {
8983
8997
  }
8984
8998
  //#endregion
8985
8999
  //#region ../../react-app/src/components/deposit/DepositHistoryTable.tsx
8986
- function ts(e) {
9000
+ function es(e) {
8987
9001
  let t = Date.parse(`${e.date} ${e.time}`);
8988
9002
  return Number.isNaN(t) ? 0 : t;
8989
9003
  }
8990
- function ns({ data: e, className: t }) {
9004
+ function ts({ data: e, className: t }) {
8991
9005
  let n = l(() => [
8992
9006
  {
8993
9007
  id: "date",
8994
9008
  header: "Date",
8995
9009
  sortable: !0,
8996
- sortValue: ts,
9010
+ sortValue: es,
8997
9011
  cell: (e) => /* @__PURE__ */ _(G, {
8998
9012
  primary: e.date,
8999
9013
  secondary: e.time
@@ -9038,7 +9052,7 @@ function ns({ data: e, className: t }) {
9038
9052
  size: "sm"
9039
9053
  }), /* @__PURE__ */ _(G, {
9040
9054
  primary: e.coin,
9041
- secondary: Yo[e.network]?.name ?? e.network
9055
+ secondary: Jo[e.network]?.name ?? e.network
9042
9056
  })]
9043
9057
  })
9044
9058
  },
@@ -9084,8 +9098,8 @@ function ns({ data: e, className: t }) {
9084
9098
  }
9085
9099
  //#endregion
9086
9100
  //#region ../../react-app/src/components/deposit/QrCode.tsx
9087
- var rs = 3;
9088
- function is({ value: e, className: t }) {
9101
+ var ns = 3;
9102
+ function rs({ value: e, className: t }) {
9089
9103
  let { size: n, darks: r } = l(() => {
9090
9104
  let t = le.create(e || " ", { errorCorrectionLevel: "M" }), n = t.modules.size, r = t.modules.data, i = [];
9091
9105
  for (let e = 0; e < n; e++) for (let t = 0; t < n; t++) r[e * n + t] && i.push([t, e]);
@@ -9093,7 +9107,7 @@ function is({ value: e, className: t }) {
9093
9107
  size: n,
9094
9108
  darks: i
9095
9109
  };
9096
- }, [e]), i = n + rs * 2;
9110
+ }, [e]), i = n + ns * 2;
9097
9111
  return /* @__PURE__ */ v("svg", {
9098
9112
  viewBox: `0 0 ${i} ${i}`,
9099
9113
  shapeRendering: "crispEdges",
@@ -9106,7 +9120,7 @@ function is({ value: e, className: t }) {
9106
9120
  fill: "#ffffff"
9107
9121
  }), /* @__PURE__ */ _("g", {
9108
9122
  fill: "#0f172a",
9109
- transform: `translate(${rs} ${rs})`,
9123
+ transform: `translate(${ns} ${ns})`,
9110
9124
  children: r.map(([e, t]) => /* @__PURE__ */ _("rect", {
9111
9125
  x: e,
9112
9126
  y: t,
@@ -9118,7 +9132,7 @@ function is({ value: e, className: t }) {
9118
9132
  }
9119
9133
  //#endregion
9120
9134
  //#region ../../react-app/src/components/deposit/DepositReceiveCard.tsx
9121
- function as({ wallet: e, coin: t, network: n, networkName: r, className: i }) {
9135
+ function is({ wallet: e, coin: t, network: n, networkName: r, className: i }) {
9122
9136
  let [a, o] = d(!1);
9123
9137
  return /* @__PURE__ */ v("div", {
9124
9138
  className: I("flex flex-col rounded-2xl border border-cb-line bg-slate-50 dark:bg-slate-900/40", i),
@@ -9169,7 +9183,7 @@ function as({ wallet: e, coin: t, network: n, networkName: r, className: i }) {
9169
9183
  })]
9170
9184
  }), /* @__PURE__ */ _("div", {
9171
9185
  className: "w-26 shrink-0 rounded-lg border border-cb-line bg-white p-1.5",
9172
- children: /* @__PURE__ */ _(is, { value: e.address })
9186
+ children: /* @__PURE__ */ _(rs, { value: e.address })
9173
9187
  })]
9174
9188
  }),
9175
9189
  /* @__PURE__ */ v("div", {
@@ -9228,14 +9242,14 @@ function as({ wallet: e, coin: t, network: n, networkName: r, className: i }) {
9228
9242
  }
9229
9243
  //#endregion
9230
9244
  //#region ../../react-app/src/components/deposit/DepositPanel.tsx
9231
- function os({ className: e }) {
9232
- let [t, n] = d("USDT"), [r, i] = d("ETH"), [a, o] = d(null), s = (Xo.find((e) => e.code === t) ?? Xo[0]).networks, c = l(() => Zo.filter((e) => e.coin === t && e.network === r), [t, r]), u = c.find((e) => e.id === a) ?? null, f = (e) => {
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) => {
9233
9247
  n(e);
9234
- let t = Xo.find((t) => t.code === e);
9248
+ let t = Yo.find((t) => t.code === e);
9235
9249
  i(t?.networks[0] ?? ""), o(null);
9236
9250
  }, p = (e) => {
9237
9251
  i(e), o(null);
9238
- }, m = Xo.map((e) => ({
9252
+ }, m = Yo.map((e) => ({
9239
9253
  value: e.code,
9240
9254
  label: e.code,
9241
9255
  sublabel: e.name,
@@ -9247,7 +9261,7 @@ function os({ className: e }) {
9247
9261
  })), h = s.map((e) => ({
9248
9262
  value: e,
9249
9263
  label: e,
9250
- sublabel: Yo[e]?.name ?? e,
9264
+ sublabel: Jo[e]?.name ?? e,
9251
9265
  leading: /* @__PURE__ */ _(U, {
9252
9266
  code: e,
9253
9267
  src: q(e),
@@ -9283,7 +9297,7 @@ function os({ className: e }) {
9283
9297
  options: h,
9284
9298
  onChange: p
9285
9299
  }),
9286
- /* @__PURE__ */ _(Eo, {
9300
+ /* @__PURE__ */ _(To, {
9287
9301
  id: "dp-wallet",
9288
9302
  label: "Deposit to wallet",
9289
9303
  placeholder: "Select a receiving wallet",
@@ -9310,32 +9324,32 @@ function os({ className: e }) {
9310
9324
  " ",
9311
9325
  /* @__PURE__ */ _("span", {
9312
9326
  className: "font-semibold",
9313
- children: Yo[r]?.name ?? r
9327
+ children: Jo[r]?.name ?? r
9314
9328
  }),
9315
9329
  " network to this address. Other assets or networks may be lost permanently."
9316
9330
  ] })]
9317
9331
  })
9318
9332
  ]
9319
9333
  })
9320
- }), /* @__PURE__ */ _(as, {
9334
+ }), /* @__PURE__ */ _(is, {
9321
9335
  wallet: u,
9322
9336
  coin: t,
9323
9337
  network: r,
9324
- networkName: Yo[r]?.name
9338
+ networkName: Jo[r]?.name
9325
9339
  })]
9326
9340
  });
9327
9341
  }
9328
9342
  //#endregion
9329
9343
  //#region ../../react-app/src/components/deposit/types.ts
9330
- var ss = /* @__PURE__ */ F({}), cs = /* @__PURE__ */ F({
9331
- COINS: () => us,
9332
- NETWORKS: () => ls,
9333
- SAVED_ADDRESSES: () => fs,
9334
- SOURCE_WALLETS: () => ds,
9335
- WITHDRAWAL_HISTORY: () => ps,
9336
- figureToNumber: () => ms,
9337
- formatUsd: () => hs
9338
- }), ls = {
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 = {
9339
9353
  ETH: {
9340
9354
  code: "ETH",
9341
9355
  name: "Ethereum"
@@ -9360,7 +9374,7 @@ var ss = /* @__PURE__ */ F({}), cs = /* @__PURE__ */ F({
9360
9374
  code: "TON",
9361
9375
  name: "TON"
9362
9376
  }
9363
- }, us = [
9377
+ }, ls = [
9364
9378
  {
9365
9379
  code: "USDT",
9366
9380
  name: "Tether",
@@ -9400,7 +9414,7 @@ var ss = /* @__PURE__ */ F({}), cs = /* @__PURE__ */ F({
9400
9414
  name: "Toncoin",
9401
9415
  networks: ["TON"]
9402
9416
  }
9403
- ], ds = [
9417
+ ], us = [
9404
9418
  {
9405
9419
  id: "w-usdt-eth-low",
9406
9420
  name: "Low Risk Wallet",
@@ -9555,7 +9569,7 @@ var ss = /* @__PURE__ */ F({}), cs = /* @__PURE__ */ F({
9555
9569
  amountFiat: "$6,600.00",
9556
9570
  fiatRate: 5.5
9557
9571
  }
9558
- ], fs = [
9572
+ ], ds = [
9559
9573
  {
9560
9574
  id: "a-binance-usdt-eth",
9561
9575
  label: "Binance Hot Wallet",
@@ -9626,7 +9640,7 @@ var ss = /* @__PURE__ */ F({}), cs = /* @__PURE__ */ F({
9626
9640
  network: "SOL",
9627
9641
  address: "3n1DcS4Km3M8p5wV7oJ2rL9tQ6xY4bN8zA1cF5eH7gK"
9628
9642
  }
9629
- ], ps = [
9643
+ ], fs = [
9630
9644
  {
9631
9645
  id: "wd-01",
9632
9646
  date: "Jul 14, 2026",
@@ -9640,7 +9654,7 @@ var ss = /* @__PURE__ */ F({}), cs = /* @__PURE__ */ F({
9640
9654
  network: "ETH",
9641
9655
  amount: "-12,000.00",
9642
9656
  amountFiat: "-$12,000.00",
9643
- status: "confirmed"
9657
+ status: "CONFIRMED"
9644
9658
  },
9645
9659
  {
9646
9660
  id: "wd-02",
@@ -9655,7 +9669,7 @@ var ss = /* @__PURE__ */ F({}), cs = /* @__PURE__ */ F({
9655
9669
  network: "TRON",
9656
9670
  amount: "-3,500.00",
9657
9671
  amountFiat: "-$3,500.00",
9658
- status: "processing"
9672
+ status: "PROCESSING"
9659
9673
  },
9660
9674
  {
9661
9675
  id: "wd-03",
@@ -9670,7 +9684,7 @@ var ss = /* @__PURE__ */ F({}), cs = /* @__PURE__ */ F({
9670
9684
  network: "ETH",
9671
9685
  amount: "-1,480.00",
9672
9686
  amountFiat: "-$1,480.00",
9673
- status: "confirmed"
9687
+ status: "CONFIRMED"
9674
9688
  },
9675
9689
  {
9676
9690
  id: "wd-04",
@@ -9685,7 +9699,7 @@ var ss = /* @__PURE__ */ F({}), cs = /* @__PURE__ */ F({
9685
9699
  network: "BTC",
9686
9700
  amount: "-0.04500000",
9687
9701
  amountFiat: "-$2,782.89",
9688
- status: "confirmed"
9702
+ status: "CONFIRMED"
9689
9703
  },
9690
9704
  {
9691
9705
  id: "wd-05",
@@ -9700,7 +9714,7 @@ var ss = /* @__PURE__ */ F({}), cs = /* @__PURE__ */ F({
9700
9714
  network: "SOL",
9701
9715
  amount: "-2,000.00",
9702
9716
  amountFiat: "-$2,000.00",
9703
- status: "confirmed"
9717
+ status: "CONFIRMED"
9704
9718
  },
9705
9719
  {
9706
9720
  id: "wd-06",
@@ -9715,7 +9729,7 @@ var ss = /* @__PURE__ */ F({}), cs = /* @__PURE__ */ F({
9715
9729
  network: "ETH",
9716
9730
  amount: "-1.20000000",
9717
9731
  amountFiat: "-$3,745.20",
9718
- status: "failed"
9732
+ status: "FAILED"
9719
9733
  },
9720
9734
  {
9721
9735
  id: "wd-07",
@@ -9730,7 +9744,7 @@ var ss = /* @__PURE__ */ F({}), cs = /* @__PURE__ */ F({
9730
9744
  network: "TRON",
9731
9745
  amount: "-9,750.00",
9732
9746
  amountFiat: "-$9,750.00",
9733
- status: "confirmed"
9747
+ status: "CONFIRMED"
9734
9748
  },
9735
9749
  {
9736
9750
  id: "wd-08",
@@ -9745,13 +9759,13 @@ var ss = /* @__PURE__ */ F({}), cs = /* @__PURE__ */ F({
9745
9759
  network: "SOL",
9746
9760
  amount: "-45.00000000",
9747
9761
  amountFiat: "-$6,660.00",
9748
- status: "pending-approval"
9762
+ status: "PENDING_APPROVAL"
9749
9763
  }
9750
9764
  ];
9751
- function ms(e) {
9765
+ function ps(e) {
9752
9766
  return parseFloat(e.replace(/[^0-9.]/g, "")) || 0;
9753
9767
  }
9754
- function hs(e) {
9768
+ function ms(e) {
9755
9769
  return e.toLocaleString("en-US", {
9756
9770
  style: "currency",
9757
9771
  currency: "USD",
@@ -9761,11 +9775,11 @@ function hs(e) {
9761
9775
  }
9762
9776
  //#endregion
9763
9777
  //#region ../../react-app/src/components/withdraw/WithdrawHistoryTable.tsx
9764
- function gs(e) {
9778
+ function hs(e) {
9765
9779
  let t = Date.parse(`${e.date} ${e.time}`);
9766
9780
  return Number.isNaN(t) ? 0 : t;
9767
9781
  }
9768
- function _s({ name: e }) {
9782
+ function gs({ name: e }) {
9769
9783
  return /* @__PURE__ */ v("span", {
9770
9784
  className: "flex items-center gap-2",
9771
9785
  children: [/* @__PURE__ */ _("span", {
@@ -9777,13 +9791,13 @@ function _s({ name: e }) {
9777
9791
  })]
9778
9792
  });
9779
9793
  }
9780
- function vs({ data: e, className: t }) {
9794
+ function _s({ data: e, className: t }) {
9781
9795
  let n = l(() => [
9782
9796
  {
9783
9797
  id: "date",
9784
9798
  header: "Date",
9785
9799
  sortable: !0,
9786
- sortValue: gs,
9800
+ sortValue: hs,
9787
9801
  cell: (e) => /* @__PURE__ */ _(G, {
9788
9802
  primary: e.date,
9789
9803
  secondary: e.time
@@ -9794,7 +9808,7 @@ function vs({ data: e, className: t }) {
9794
9808
  header: "Initiated by",
9795
9809
  sortable: !0,
9796
9810
  sortValue: (e) => e.initiator,
9797
- cell: (e) => /* @__PURE__ */ _(_s, { name: e.initiator })
9811
+ cell: (e) => /* @__PURE__ */ _(gs, { name: e.initiator })
9798
9812
  },
9799
9813
  {
9800
9814
  id: "from",
@@ -9835,7 +9849,7 @@ function vs({ data: e, className: t }) {
9835
9849
  size: "sm"
9836
9850
  }), /* @__PURE__ */ _(G, {
9837
9851
  primary: e.coin,
9838
- secondary: ls[e.network]?.name ?? e.network
9852
+ secondary: cs[e.network]?.name ?? e.network
9839
9853
  })]
9840
9854
  })
9841
9855
  },
@@ -9881,7 +9895,7 @@ function vs({ data: e, className: t }) {
9881
9895
  }
9882
9896
  //#endregion
9883
9897
  //#region ../../react-app/src/components/withdraw/WithdrawSummary.tsx
9884
- function ys({ coin: e, network: t, networkName: n, amount: r, amountFiat: i, from: a, to: o, footer: s, className: c }) {
9898
+ function vs({ coin: e, network: t, networkName: n, amount: r, amountFiat: i, from: a, to: o, footer: s, className: c }) {
9885
9899
  let l = r != null && r !== "" && r !== "0";
9886
9900
  return /* @__PURE__ */ v("div", {
9887
9901
  className: I("flex flex-col rounded-2xl border border-cb-line bg-slate-50 dark:bg-slate-900/40", c),
@@ -9926,7 +9940,7 @@ function ys({ coin: e, network: t, networkName: n, amount: r, amountFiat: i, fro
9926
9940
  children: [
9927
9941
  /* @__PURE__ */ _(Y, {
9928
9942
  label: "Network",
9929
- children: t ? /* @__PURE__ */ _(_i, {
9943
+ children: t ? /* @__PURE__ */ _(gi, {
9930
9944
  value: n ?? t,
9931
9945
  code: t,
9932
9946
  className: "font-medium"
@@ -9935,11 +9949,11 @@ function ys({ coin: e, network: t, networkName: n, amount: r, amountFiat: i, fro
9935
9949
  children: "—"
9936
9950
  })
9937
9951
  }),
9938
- /* @__PURE__ */ _(bs, {
9952
+ /* @__PURE__ */ _(ys, {
9939
9953
  caption: "From",
9940
9954
  endpoint: a
9941
9955
  }),
9942
- /* @__PURE__ */ _(bs, {
9956
+ /* @__PURE__ */ _(ys, {
9943
9957
  caption: "To",
9944
9958
  endpoint: o
9945
9959
  })
@@ -9952,7 +9966,7 @@ function ys({ coin: e, network: t, networkName: n, amount: r, amountFiat: i, fro
9952
9966
  ]
9953
9967
  });
9954
9968
  }
9955
- function bs({ caption: e, endpoint: t }) {
9969
+ function ys({ caption: e, endpoint: t }) {
9956
9970
  return /* @__PURE__ */ _(Y, {
9957
9971
  label: e,
9958
9972
  children: t ? t.label ? /* @__PURE__ */ v("div", {
@@ -9979,16 +9993,16 @@ function bs({ caption: e, endpoint: t }) {
9979
9993
  }
9980
9994
  //#endregion
9981
9995
  //#region ../../react-app/src/components/withdraw/WithdrawPanel.tsx
9982
- function xs(e) {
9996
+ function bs(e) {
9983
9997
  return e.length > 18 ? `${e.slice(0, 10)}…${e.slice(-6)}` : e;
9984
9998
  }
9985
- function Ss({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
9986
- 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 = (us.find((e) => e.code === r) ?? us[0]).networks, D = l(() => ds.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 = ms(h), A = O ? ms(O.amount) : 0, j = O != null && k > A, ie = h.trim() !== "" && k > 0, M = O && ie ? hs(k * O.fiatRate) : null, ae = ie ? k.toLocaleString("en-US", {
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", {
9987
10001
  minimumFractionDigits: 2,
9988
10002
  maximumFractionDigits: 8
9989
10003
  }) : null, oe = O != null && te && ie && !j && re, se = (e) => {
9990
10004
  i(e);
9991
- let t = us.find((t) => t.code === e);
10005
+ let t = ls.find((t) => t.code === e);
9992
10006
  o(t?.networks[0] ?? ""), c(null), f("");
9993
10007
  }, N = (e) => {
9994
10008
  o(e), c(null);
@@ -10018,8 +10032,8 @@ function Ss({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
10018
10032
  coin: r,
10019
10033
  network: a,
10020
10034
  amount: `-${h}`,
10021
- amountFiat: `-${hs(k * O.fiatRate)}`,
10022
- status: "processing"
10035
+ amountFiat: `-${ms(k * O.fiatRate)}`,
10036
+ status: "PROCESSING"
10023
10037
  };
10024
10038
  t?.(i), E(!0);
10025
10039
  }, ue = (e) => {
@@ -10028,7 +10042,7 @@ function Ss({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
10028
10042
  return;
10029
10043
  }
10030
10044
  S(!1), w(""), T && (E(!1), y(""), m(""), f(""));
10031
- }, F = us.map((e) => ({
10045
+ }, F = ls.map((e) => ({
10032
10046
  value: e.code,
10033
10047
  label: e.code,
10034
10048
  sublabel: e.name,
@@ -10040,7 +10054,7 @@ function Ss({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
10040
10054
  })), L = ee.map((e) => ({
10041
10055
  value: e,
10042
10056
  label: e,
10043
- sublabel: ls[e]?.name ?? e,
10057
+ sublabel: cs[e]?.name ?? e,
10044
10058
  leading: /* @__PURE__ */ _(U, {
10045
10059
  code: e,
10046
10060
  src: q(e),
@@ -10081,7 +10095,7 @@ function Ss({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
10081
10095
  }),
10082
10096
  ne ? /* @__PURE__ */ v("div", {
10083
10097
  className: "grid grid-cols-1 gap-3 sm:grid-cols-2",
10084
- children: [/* @__PURE__ */ _(Eo, {
10098
+ children: [/* @__PURE__ */ _(To, {
10085
10099
  id: "wd-source",
10086
10100
  label: "From wallet",
10087
10101
  placeholder: "Select a source wallet",
@@ -10090,7 +10104,7 @@ function Ss({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
10090
10104
  onChange: c,
10091
10105
  variant: "detailed",
10092
10106
  emptyMessage: "No wallets for this coin & network."
10093
- }), /* @__PURE__ */ _(wo, {
10107
+ }), /* @__PURE__ */ _(Co, {
10094
10108
  id: "wd-from-tag",
10095
10109
  label: "From tag",
10096
10110
  value: u,
@@ -10101,7 +10115,7 @@ function Ss({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
10101
10115
  autoComplete: "off",
10102
10116
  inputClassName: "font-mono text-[13px]"
10103
10117
  })]
10104
- }) : /* @__PURE__ */ _(Eo, {
10118
+ }) : /* @__PURE__ */ _(To, {
10105
10119
  id: "wd-source",
10106
10120
  label: "From wallet",
10107
10121
  placeholder: "Select a source wallet",
@@ -10111,17 +10125,17 @@ function Ss({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
10111
10125
  variant: "detailed",
10112
10126
  emptyMessage: "No wallets for this coin & network."
10113
10127
  }),
10114
- /* @__PURE__ */ _(wo, {
10128
+ /* @__PURE__ */ _(Co, {
10115
10129
  id: "wd-dest",
10116
10130
  label: "To address",
10117
10131
  value: p,
10118
10132
  onChange: m,
10119
- placeholder: `Paste a ${ls[a]?.name ?? a} ${r} address`,
10133
+ placeholder: `Paste a ${cs[a]?.name ?? a} ${r} address`,
10120
10134
  spellCheck: !1,
10121
10135
  autoComplete: "off",
10122
10136
  inputClassName: "h-10 font-mono text-[13px]"
10123
10137
  }),
10124
- /* @__PURE__ */ _(Co, {
10138
+ /* @__PURE__ */ _(So, {
10125
10139
  id: "wd-amount",
10126
10140
  value: h,
10127
10141
  onChange: ce,
@@ -10153,11 +10167,11 @@ function Ss({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
10153
10167
  ]
10154
10168
  })
10155
10169
  }),
10156
- /* @__PURE__ */ _(ys, {
10170
+ /* @__PURE__ */ _(vs, {
10157
10171
  className: "h-full",
10158
10172
  coin: r,
10159
10173
  network: a,
10160
- networkName: ls[a]?.name,
10174
+ networkName: cs[a]?.name,
10161
10175
  amount: ae,
10162
10176
  amountFiat: M,
10163
10177
  from: O ? {
@@ -10228,7 +10242,7 @@ function Ss({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
10228
10242
  " ",
10229
10243
  /* @__PURE__ */ _("span", {
10230
10244
  className: "font-mono text-foreground",
10231
- children: te ? xs(p.trim()) : ""
10245
+ children: te ? bs(p.trim()) : ""
10232
10246
  })
10233
10247
  ]
10234
10248
  }), /* @__PURE__ */ v("div", {
@@ -10237,7 +10251,7 @@ function Ss({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
10237
10251
  htmlFor: "wd-code",
10238
10252
  className: "text-[13px] font-medium text-muted-foreground",
10239
10253
  children: "Authentication code"
10240
- }), /* @__PURE__ */ _(Cs, {
10254
+ }), /* @__PURE__ */ _(Ss, {
10241
10255
  id: "wd-code",
10242
10256
  value: C,
10243
10257
  onChange: w
@@ -10264,7 +10278,7 @@ function Ss({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
10264
10278
  ]
10265
10279
  });
10266
10280
  }
10267
- function Cs({ id: e, value: t, onChange: n, length: r = 6 }) {
10281
+ function Ss({ id: e, value: t, onChange: n, length: r = 6 }) {
10268
10282
  let [i, a] = d(!1), o = Array.from({ length: r }, (e, n) => t[n] ?? ""), s = Math.min(t.length, r - 1);
10269
10283
  return /* @__PURE__ */ v("div", {
10270
10284
  className: "relative",
@@ -10294,14 +10308,14 @@ function Cs({ id: e, value: t, onChange: n, length: r = 6 }) {
10294
10308
  }
10295
10309
  //#endregion
10296
10310
  //#region ../../react-app/src/components/withdraw/types.ts
10297
- var ws = /* @__PURE__ */ F({}), Ts = "Ipche", Es = "gateUnlocked";
10298
- function Ds({ children: e }) {
10299
- let [t, n] = d(() => localStorage.getItem(Es) === "true"), [r, i] = d(""), [a, o] = d(!1);
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);
10300
10314
  return t ? /* @__PURE__ */ _(g, { children: e }) : /* @__PURE__ */ _("div", {
10301
10315
  className: "flex h-svh items-center justify-center bg-background p-4",
10302
10316
  children: /* @__PURE__ */ v("form", {
10303
10317
  onSubmit: (e) => {
10304
- e.preventDefault(), r === Ts ? (localStorage.setItem(Es, "true"), n(!0)) : o(!0);
10318
+ e.preventDefault(), r === ws ? (localStorage.setItem(Ts, "true"), n(!0)) : o(!0);
10305
10319
  },
10306
10320
  className: "w-full max-w-xs space-y-4 rounded-xl border border-border bg-card p-6 shadow-sm",
10307
10321
  children: [/* @__PURE__ */ v("div", {
@@ -10335,4 +10349,4 @@ function Ds({ children: e }) {
10335
10349
  });
10336
10350
  }
10337
10351
  //#endregion
10338
- export { de as ActionFooter, Co as AmountField, yr as AppHeaderV1, wr as AppHeaderV2, _i as AssetValue, zn as Avatar, Vn as Badge, Vn as NavBadge, go as BalancesSummary, yi as BlockchainDetails, z as Button, xt as Calendar, St as Checkbox, U as CoinLogo, Mr as ColumnsMenu, Mt as ConfirmDialog, Ao as ConvertHistoryTable, Go as ConvertPanel, $ as ConvertPickerField, $ as DepositPickerField, $ as PickerField, $ as WithdrawPickerField, Mo as ConvertSummary, Nr as CopyButton, W as CopyableId, Ir as CurrencyNetwork, ca as DailyBalancesTable, zr as DataTable, ns as DepositHistoryTable, os as DepositPanel, as 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, da 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, pa 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, Ds as PasswordGate, Ur as PaymentType, Da as PeriodPicker, en as Popover, nn as PopoverAnchor, rn as PopoverContent, tn as PopoverTrigger, is as QrCode, an as RadioGroup, on as RadioGroupItem, Ia as ReportSummaryCard, La as ReportSummaryGroup, Ra as ReportsSummaryEmpty, Ci as RiskAssessment, Wr as RiskSignal, rr as SAMPLE_NOTIFICATIONS, Li as SavePresetDialog, zi 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, $i 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, wo as TextField, Pr as TextLink, G as TextStack, Fn as Tooltip, Ln as TooltipContent, Pn as TooltipProvider, In as TooltipTrigger, Ui as TransactionDetailPanel, Vi as TransactionInfo, Hi as TransactionReference, Bi as TransactionSummary, Xi as TransactionsFilterPanel, ta as TransactionsTable, ra as TransactionsTableOptions, pe as UiBadge, ur as UserMenu, mo as WalletBalancesTable, Eo as WalletField, ro as WalletRowActions, vs as WithdrawHistoryTable, Ss as WithdrawPanel, ys as WithdrawSummary, fe as badgeVariants, _o as balancesData, xo as balancesRecentTransactions, bo as balancesTypes, R as buttonVariants, Po as convertData, qo as convertTypes, Jo as depositData, ss as depositTypes, hr as findNavItem, Oa as reportsData, ma as reportsPresets, Ba as reportsReportData, za as reportsTypes, An as tabsListVariants, ea as transactionColumnOptions, Jr as transactionsData, Di as transactionsFilters, wi as transactionsStatuses, ia as transactionsTypes, Er as useHeaderExtension, cs as withdrawData, ws as withdrawTypes };
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 };