@chainberry/ui-components 1.0.20 → 1.0.21

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
@@ -9,11 +9,11 @@ import { HugeiconsIcon as x, HugeiconsIcon as S } from "@hugeicons/react";
9
9
  import * as C from "@radix-ui/react-checkbox";
10
10
  import * as w from "@radix-ui/react-dialog";
11
11
  import * as T from "@radix-ui/react-dropdown-menu";
12
- import * as E from "@radix-ui/react-label";
13
- import * as ee from "@radix-ui/react-popover";
14
- import * as te from "@radix-ui/react-radio-group";
15
- import * as D from "@radix-ui/react-tooltip";
16
- import { addDays as ne, addMonths as re, differenceInCalendarDays as ie, eachDayOfInterval as O, endOfMonth as ae, endOfWeek as oe, format as k, max as se, min as ce, parseISO as le, startOfMonth as ue, startOfWeek as de, subDays as fe, subMonths as pe, subWeeks as me } from "date-fns";
12
+ import * as ee from "@radix-ui/react-label";
13
+ import * as te from "@radix-ui/react-popover";
14
+ import * as ne from "@radix-ui/react-radio-group";
15
+ import * as E from "@radix-ui/react-tooltip";
16
+ import { addDays as re, addMonths as ie, differenceInCalendarDays as ae, eachDayOfInterval as D, endOfMonth as O, endOfWeek as oe, format as k, max as se, min as ce, parseISO as le, startOfMonth as ue, startOfWeek as de, subDays as fe, subMonths as pe, subWeeks as me } from "date-fns";
17
17
  import he from "qrcode";
18
18
  //#region \0rolldown/runtime.js
19
19
  var ge = Object.defineProperty, A = (e, t) => {
@@ -155742,7 +155742,7 @@ function K5({ className: e, type: t, ...n }) {
155742
155742
  //#endregion
155743
155743
  //#region ../../react-app/src/components/ui/label.tsx
155744
155744
  function q5({ className: e, ...t }) {
155745
- return /* @__PURE__ */ _(E.Root, {
155745
+ return /* @__PURE__ */ _(ee.Root, {
155746
155746
  "data-slot": "label",
155747
155747
  className: j("flex items-center gap-2 text-sm text-foreground select-none", "peer-disabled:cursor-not-allowed peer-disabled:opacity-50", e),
155748
155748
  ...t
@@ -155857,27 +155857,27 @@ function xBe({ className: e, ...t }) {
155857
155857
  //#endregion
155858
155858
  //#region ../../react-app/src/components/ui/popover.tsx
155859
155859
  function Z5(e) {
155860
- return /* @__PURE__ */ _(ee.Root, {
155860
+ return /* @__PURE__ */ _(te.Root, {
155861
155861
  "data-slot": "popover",
155862
155862
  ...e
155863
155863
  });
155864
155864
  }
155865
155865
  function Q5(e) {
155866
- return /* @__PURE__ */ _(ee.Trigger, {
155866
+ return /* @__PURE__ */ _(te.Trigger, {
155867
155867
  "data-slot": "popover-trigger",
155868
155868
  ...e
155869
155869
  });
155870
155870
  }
155871
155871
  function SBe(e) {
155872
- return /* @__PURE__ */ _(ee.Anchor, {
155872
+ return /* @__PURE__ */ _(te.Anchor, {
155873
155873
  "data-slot": "popover-anchor",
155874
155874
  ...e
155875
155875
  });
155876
155876
  }
155877
155877
  function $5({ className: e, align: t = "center", sideOffset: n = 8, ...r }) {
155878
- return /* @__PURE__ */ _(ee.Portal, { children: /* @__PURE__ */ _("div", {
155878
+ return /* @__PURE__ */ _(te.Portal, { children: /* @__PURE__ */ _("div", {
155879
155879
  className: _e,
155880
- children: /* @__PURE__ */ _(ee.Content, {
155880
+ children: /* @__PURE__ */ _(te.Content, {
155881
155881
  "data-slot": "popover-content",
155882
155882
  align: t,
155883
155883
  sideOffset: n,
@@ -155889,18 +155889,18 @@ function $5({ className: e, align: t = "center", sideOffset: n = 8, ...r }) {
155889
155889
  //#endregion
155890
155890
  //#region ../../react-app/src/components/ui/radio-group.tsx
155891
155891
  function CBe({ className: e, ...t }) {
155892
- return /* @__PURE__ */ _(te.Root, {
155892
+ return /* @__PURE__ */ _(ne.Root, {
155893
155893
  "data-slot": "radio-group",
155894
155894
  className: j("grid gap-2", e),
155895
155895
  ...t
155896
155896
  });
155897
155897
  }
155898
155898
  function e7({ className: e, ...t }) {
155899
- return /* @__PURE__ */ _(te.Item, {
155899
+ return /* @__PURE__ */ _(ne.Item, {
155900
155900
  "data-slot": "radio-group-item",
155901
155901
  className: j("aspect-square size-4 shrink-0 rounded-full border border-slate-300 bg-background shadow-xs outline-none transition-colors", "focus-visible:ring-2 focus-visible:ring-primary/30 data-[state=checked]:border-primary", "disabled:cursor-not-allowed disabled:opacity-50", e),
155902
155902
  ...t,
155903
- children: /* @__PURE__ */ _(te.Indicator, {
155903
+ children: /* @__PURE__ */ _(ne.Indicator, {
155904
155904
  className: "flex items-center justify-center",
155905
155905
  children: /* @__PURE__ */ _("span", { className: "size-2 rounded-full bg-primary" })
155906
155906
  })
@@ -156203,33 +156203,33 @@ function h7({ className: e, ...t }) {
156203
156203
  //#endregion
156204
156204
  //#region ../../react-app/src/components/ui/tooltip.tsx
156205
156205
  function NBe({ delayDuration: e = 200, ...t }) {
156206
- return /* @__PURE__ */ _(D.Provider, {
156206
+ return /* @__PURE__ */ _(E.Provider, {
156207
156207
  "data-slot": "tooltip-provider",
156208
156208
  delayDuration: e,
156209
156209
  ...t
156210
156210
  });
156211
156211
  }
156212
156212
  function g7(e) {
156213
- return /* @__PURE__ */ _(NBe, { children: /* @__PURE__ */ _(D.Root, {
156213
+ return /* @__PURE__ */ _(NBe, { children: /* @__PURE__ */ _(E.Root, {
156214
156214
  "data-slot": "tooltip",
156215
156215
  ...e
156216
156216
  }) });
156217
156217
  }
156218
156218
  function _7(e) {
156219
- return /* @__PURE__ */ _(D.Trigger, {
156219
+ return /* @__PURE__ */ _(E.Trigger, {
156220
156220
  "data-slot": "tooltip-trigger",
156221
156221
  ...e
156222
156222
  });
156223
156223
  }
156224
156224
  function v7({ className: e, sideOffset: t = 6, children: n, ...r }) {
156225
- return /* @__PURE__ */ _(D.Portal, { children: /* @__PURE__ */ _("div", {
156225
+ return /* @__PURE__ */ _(E.Portal, { children: /* @__PURE__ */ _("div", {
156226
156226
  className: _e,
156227
- children: /* @__PURE__ */ v(D.Content, {
156227
+ children: /* @__PURE__ */ v(E.Content, {
156228
156228
  "data-slot": "tooltip-content",
156229
156229
  sideOffset: t,
156230
156230
  className: j("z-50 rounded-md bg-slate-900 px-2 py-1 text-xs font-medium text-white shadow-md dark:bg-slate-700", "data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95", e),
156231
156231
  ...r,
156232
- children: [n, /* @__PURE__ */ _(D.Arrow, { className: "fill-slate-900 dark:fill-slate-700" })]
156232
+ children: [n, /* @__PURE__ */ _(E.Arrow, { className: "fill-slate-900 dark:fill-slate-700" })]
156233
156233
  })
156234
156234
  }) });
156235
156235
  }
@@ -156722,7 +156722,7 @@ function tVe() {
156722
156722
  };
156723
156723
  }
156724
156724
  function C7({ name: e = "Ivan Krstić", avatarSrc: t, navMode: n = "primary", onNavModeChange: r, headerMode: i = "v2", onHeaderModeChange: a, onAccount: o, onLogout: s, onTakeTour: c, onResetDemo: l, collapsed: u = !1, side: f = "bottom", align: p = "end", fullWidth: m = !1 }) {
156725
- let { dark: h, setTheme: y } = eVe(), { navStyle: b, toggleNavStyle: x } = tVe(), [C, w] = d("en"), [T, E] = d("admin"), ee = QBe.find((e) => e.code === C)?.label ?? "English", te = $Be.find((e) => e.id === T)?.label ?? "Admin", D = (e) => /* @__PURE__ */ _(S, {
156725
+ let { dark: h, setTheme: y } = eVe(), { navStyle: b, toggleNavStyle: x } = tVe(), [C, w] = d("en"), [T, ee] = d("admin"), te = QBe.find((e) => e.code === C)?.label ?? "English", ne = $Be.find((e) => e.id === T)?.label ?? "Admin", E = (e) => /* @__PURE__ */ _(S, {
156726
156726
  icon: e,
156727
156727
  size: 16,
156728
156728
  strokeWidth: 2,
@@ -156755,10 +156755,10 @@ function C7({ name: e = "Ivan Krstić", avatarSrc: t, navMode: n = "primary", on
156755
156755
  children: [
156756
156756
  /* @__PURE__ */ v(B5, {
156757
156757
  onSelect: () => o?.(),
156758
- children: [D(x8), "Account information"]
156758
+ children: [E(x8), "Account information"]
156759
156759
  }),
156760
156760
  /* @__PURE__ */ v(H5, { children: [/* @__PURE__ */ v(U5, { children: [
156761
- D(h ? sX : P4),
156761
+ E(h ? sX : P4),
156762
156762
  "Theme: ",
156763
156763
  h ? "Dark mode" : "Light mode"
156764
156764
  ] }), /* @__PURE__ */ _(W5, { children: /* @__PURE__ */ v(G5, {
@@ -156773,9 +156773,9 @@ function C7({ name: e = "Ivan Krstić", avatarSrc: t, navMode: n = "primary", on
156773
156773
  })]
156774
156774
  }) })] }),
156775
156775
  /* @__PURE__ */ v(H5, { children: [/* @__PURE__ */ v(U5, { children: [
156776
- D(aM),
156776
+ E(aM),
156777
156777
  "Language: ",
156778
- ee
156778
+ te
156779
156779
  ] }), /* @__PURE__ */ _(W5, { children: /* @__PURE__ */ _(G5, {
156780
156780
  value: C,
156781
156781
  onValueChange: w,
@@ -156786,11 +156786,11 @@ function C7({ name: e = "Ivan Krstić", avatarSrc: t, navMode: n = "primary", on
156786
156786
  }) })] }),
156787
156787
  /* @__PURE__ */ v(B5, {
156788
156788
  onSelect: () => c?.(),
156789
- children: [D(M8), "Take the tour"]
156789
+ children: [E(M8), "Take the tour"]
156790
156790
  }),
156791
156791
  /* @__PURE__ */ _(V5, {}),
156792
156792
  /* @__PURE__ */ v(H5, { children: [/* @__PURE__ */ v(U5, { children: [
156793
- D(c2),
156793
+ E(c2),
156794
156794
  "Navigation mode: ",
156795
156795
  n === "full" ? "Full" : "MVP"
156796
156796
  ] }), /* @__PURE__ */ _(W5, { children: /* @__PURE__ */ v(G5, {
@@ -156809,13 +156809,13 @@ function C7({ name: e = "Ivan Krstić", avatarSrc: t, navMode: n = "primary", on
156809
156809
  e.preventDefault(), x();
156810
156810
  },
156811
156811
  children: [
156812
- D(Eg),
156812
+ E(Eg),
156813
156813
  "Nav bar style: ",
156814
156814
  b === "classic" ? "Classic" : "New"
156815
156815
  ]
156816
156816
  }),
156817
156817
  a && /* @__PURE__ */ v(H5, { children: [/* @__PURE__ */ v(U5, { children: [
156818
- D(g0),
156818
+ E(g0),
156819
156819
  "Header: ",
156820
156820
  i === "v1" ? "No search" : "Search"
156821
156821
  ] }), /* @__PURE__ */ _(W5, { children: /* @__PURE__ */ v(G5, {
@@ -156829,12 +156829,12 @@ function C7({ name: e = "Ivan Krstić", avatarSrc: t, navMode: n = "primary", on
156829
156829
  children: "Version 2 · search"
156830
156830
  })]
156831
156831
  }) })] }),
156832
- /* @__PURE__ */ v(H5, { children: [/* @__PURE__ */ v(U5, { children: [D(P8), /* @__PURE__ */ v("span", {
156832
+ /* @__PURE__ */ v(H5, { children: [/* @__PURE__ */ v(U5, { children: [E(P8), /* @__PURE__ */ v("span", {
156833
156833
  className: "min-w-0 flex-1 truncate",
156834
- children: ["View as: ", te]
156834
+ children: ["View as: ", ne]
156835
156835
  })] }), /* @__PURE__ */ _(W5, { children: /* @__PURE__ */ _(G5, {
156836
156836
  value: T,
156837
- onValueChange: E,
156837
+ onValueChange: ee,
156838
156838
  children: $Be.map((e) => /* @__PURE__ */ _(z, {
156839
156839
  value: e.id,
156840
156840
  children: e.label
@@ -156842,12 +156842,12 @@ function C7({ name: e = "Ivan Krstić", avatarSrc: t, navMode: n = "primary", on
156842
156842
  }) })] }),
156843
156843
  /* @__PURE__ */ v(B5, {
156844
156844
  onSelect: () => l?.(),
156845
- children: [D(T1), "Reset demo"]
156845
+ children: [E(T1), "Reset demo"]
156846
156846
  }),
156847
156847
  /* @__PURE__ */ _(V5, {}),
156848
156848
  /* @__PURE__ */ v(B5, {
156849
156849
  onSelect: () => s?.(),
156850
- children: [D(vW), "Logout"]
156850
+ children: [E(vW), "Logout"]
156851
156851
  })
156852
156852
  ]
156853
156853
  })] });
@@ -157731,7 +157731,7 @@ function yVe(e, t) {
157731
157731
  return r;
157732
157732
  }
157733
157733
  function P7({ columns: e, data: t, getRowId: n, layout: r = "auto", density: i = "comfortable", pageSize: a, totalItems: o = 0, currentPage: s = 0, onPageChange: c, loading: l = !1, skeletonRows: u = 10, columnVisibility: d, onRowClick: f, rowLeading: p, emptyMessage: m = "No results.", toolbarBelow: h, sort: g, onSortChange: y }) {
157734
- let b = r === "fill", x = i === "compact" ? "py-1.5" : "py-3", S = (e) => g?.id === e && g.dir, C = d ?? Object.fromEntries(e.map((e) => [e.id, !0])), w = (e) => C[e] ?? !0, T = e.filter((e) => w(e.id)), E = a ? Math.max(1, Math.ceil(o / a)) : 1, ee = T.length + +!!p;
157734
+ let b = r === "fill", x = i === "compact" ? "py-1.5" : "py-3", S = (e) => g?.id === e && g.dir, C = d ?? Object.fromEntries(e.map((e) => [e.id, !0])), w = (e) => C[e] ?? !0, T = e.filter((e) => w(e.id)), ee = a ? Math.max(1, Math.ceil(o / a)) : 1, te = T.length + +!!p;
157735
157735
  return /* @__PURE__ */ v("div", {
157736
157736
  className: j("flex flex-col", b && "min-h-0 flex-1"),
157737
157737
  children: [
@@ -157770,7 +157770,7 @@ function P7({ columns: e, data: t, getRowId: n, layout: r = "auto", density: i =
157770
157770
  }, t)) : t.length === 0 ? /* @__PURE__ */ _(d7, {
157771
157771
  className: "border-0 hover:bg-transparent",
157772
157772
  children: /* @__PURE__ */ _(W, {
157773
- colSpan: ee,
157773
+ colSpan: te,
157774
157774
  className: "py-12 text-center text-muted-foreground",
157775
157775
  children: m
157776
157776
  })
@@ -157796,13 +157796,13 @@ function P7({ columns: e, data: t, getRowId: n, layout: r = "auto", density: i =
157796
157796
  disabled: s === 0,
157797
157797
  onClick: () => c?.(s - 1)
157798
157798
  }) }),
157799
- yVe(s, E).map((e, t) => e === "ellipsis" ? /* @__PURE__ */ _(Y5, { children: /* @__PURE__ */ _(xBe, {}) }, `ellipsis-${t}`) : /* @__PURE__ */ _(Y5, { children: /* @__PURE__ */ _(X5, {
157799
+ yVe(s, ee).map((e, t) => e === "ellipsis" ? /* @__PURE__ */ _(Y5, { children: /* @__PURE__ */ _(xBe, {}) }, `ellipsis-${t}`) : /* @__PURE__ */ _(Y5, { children: /* @__PURE__ */ _(X5, {
157800
157800
  isActive: e === s,
157801
157801
  onClick: () => c?.(e),
157802
157802
  children: e + 1
157803
157803
  }) }, e)),
157804
157804
  /* @__PURE__ */ _(Y5, { children: /* @__PURE__ */ _(bBe, {
157805
- disabled: s >= E - 1,
157805
+ disabled: s >= ee - 1,
157806
157806
  onClick: () => c?.(s + 1)
157807
157807
  }) })
157808
157808
  ] }) })]
@@ -157923,13 +157923,11 @@ function q({ primary: e, secondary: t, align: n = "start", tabularNums: r = !1,
157923
157923
  var z7 = {
157924
157924
  DEPOSIT: {
157925
157925
  label: "Deposit",
157926
- direction: "in",
157927
- icon: IY
157926
+ direction: "in"
157928
157927
  },
157929
157928
  WITHDRAWAL: {
157930
157929
  label: "Withdrawal",
157931
- direction: "out",
157932
- icon: qY
157930
+ direction: "out"
157933
157931
  },
157934
157932
  CHECKOUT: {
157935
157933
  label: "Checkout",
@@ -159372,12 +159370,8 @@ function W7(e, t) {
159372
159370
  function G7({ title: e, children: t }) {
159373
159371
  return /* @__PURE__ */ v("section", { children: [/* @__PURE__ */ _(V, { children: e }), t] });
159374
159372
  }
159375
- var K7 = "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", hHe = {
159376
- in: Yr,
159377
- out: wi,
159378
- neutral: Hr
159379
- };
159380
- function gHe({ open: e, onOpenChange: t, value: n, assets: r, onApply: i }) {
159373
+ var K7 = "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";
159374
+ function hHe({ open: e, onOpenChange: t, value: n, assets: r, onApply: i }) {
159381
159375
  let [a, s] = d(n);
159382
159376
  return o(() => {
159383
159377
  e && s(n);
@@ -159400,22 +159394,17 @@ function gHe({ open: e, onOpenChange: t, value: n, assets: r, onApply: i }) {
159400
159394
  let t = z7[e.value];
159401
159395
  return /* @__PURE__ */ v("label", {
159402
159396
  className: K7,
159403
- children: [
159404
- /* @__PURE__ */ _(j5, {
159405
- checked: a.types.includes(e.value),
159406
- onCheckedChange: () => s((t) => ({
159407
- ...t,
159408
- types: W7(t.types, e.value)
159409
- }))
159410
- }),
159411
- /* @__PURE__ */ _(S, {
159412
- icon: t.icon ?? hHe[t.direction],
159413
- size: 16,
159414
- strokeWidth: 2,
159415
- className: "text-muted-foreground"
159416
- }),
159417
- /* @__PURE__ */ _("span", { children: e.label })
159418
- ]
159397
+ children: [/* @__PURE__ */ _(j5, {
159398
+ checked: a.types.includes(e.value),
159399
+ onCheckedChange: () => s((t) => ({
159400
+ ...t,
159401
+ types: W7(t.types, e.value)
159402
+ }))
159403
+ }), /* @__PURE__ */ _(I7, {
159404
+ direction: t.direction,
159405
+ label: e.label,
159406
+ icon: t.icon
159407
+ })]
159419
159408
  }, e.value);
159420
159409
  })
159421
159410
  })
@@ -159561,7 +159550,7 @@ function gHe({ open: e, onOpenChange: t, value: n, assets: r, onApply: i }) {
159561
159550
  }
159562
159551
  //#endregion
159563
159552
  //#region ../../react-app/src/components/transactions/TransactionsTable.tsx
159564
- function _He({ date: e, time: t }) {
159553
+ function gHe({ date: e, time: t }) {
159565
159554
  return e ? /* @__PURE__ */ _(q, {
159566
159555
  primary: e,
159567
159556
  secondary: t,
@@ -159571,7 +159560,7 @@ function _He({ date: e, time: t }) {
159571
159560
  children: "—"
159572
159561
  });
159573
159562
  }
159574
- var vHe = [
159563
+ var _He = [
159575
159564
  {
159576
159565
  id: "type",
159577
159566
  header: "Payment Type",
@@ -159652,7 +159641,7 @@ var vHe = [
159652
159641
  header: "Created at",
159653
159642
  sortable: !0,
159654
159643
  sortValue: (e) => (/* @__PURE__ */ new Date(`${e.createdAt} ${e.createdTime}`)).getTime(),
159655
- cell: (e) => /* @__PURE__ */ _(_He, {
159644
+ cell: (e) => /* @__PURE__ */ _(gHe, {
159656
159645
  date: e.createdAt,
159657
159646
  time: e.createdTime
159658
159647
  }),
@@ -159666,7 +159655,7 @@ var vHe = [
159666
159655
  header: "Confirmed at",
159667
159656
  sortable: !0,
159668
159657
  sortValue: (e) => e.confirmedAt ? (/* @__PURE__ */ new Date(`${e.confirmedAt} ${e.confirmedTime ?? ""}`)).getTime() : -Infinity,
159669
- cell: (e) => /* @__PURE__ */ _(_He, {
159658
+ cell: (e) => /* @__PURE__ */ _(gHe, {
159670
159659
  date: e.confirmedAt,
159671
159660
  time: e.confirmedTime
159672
159661
  }),
@@ -159697,7 +159686,7 @@ var vHe = [
159697
159686
  }),
159698
159687
  skeleton: /* @__PURE__ */ _(H, { className: "h-4 w-32" })
159699
159688
  }
159700
- ], yHe = [
159689
+ ], vHe = [
159701
159690
  {
159702
159691
  value: "uid",
159703
159692
  label: "UID"
@@ -159710,14 +159699,14 @@ var vHe = [
159710
159699
  value: "wallet",
159711
159700
  label: "Wallet"
159712
159701
  }
159713
- ], bHe = vHe.map((e) => ({
159702
+ ], yHe = _He.map((e) => ({
159714
159703
  id: e.id,
159715
159704
  label: e.header,
159716
159705
  canHide: e.canHide
159717
159706
  }));
159718
- function xHe({ data: e, loading: t, onRowClick: n, columnVisibility: r, presets: i, pageSize: a = 50, totalTransactions: o, currentPage: s = 0, onPageChange: c, activeSort: l, onSortChange: u }) {
159707
+ function bHe({ data: e, loading: t, onRowClick: n, columnVisibility: r, presets: i, pageSize: a = 50, totalTransactions: o, currentPage: s = 0, onPageChange: c, activeSort: l, onSortChange: u }) {
159719
159708
  return /* @__PURE__ */ _(P7, {
159720
- columns: vHe,
159709
+ columns: _He,
159721
159710
  data: e,
159722
159711
  getRowId: (e) => e.id,
159723
159712
  layout: "fill",
@@ -159747,14 +159736,14 @@ function xHe({ data: e, loading: t, onRowClick: n, columnVisibility: r, presets:
159747
159736
  }
159748
159737
  //#endregion
159749
159738
  //#region ../../react-app/src/components/transactions/TransactionsTableOptions.tsx
159750
- var SHe = [{
159739
+ var xHe = [{
159751
159740
  value: "all",
159752
159741
  label: "All"
159753
159742
  }, {
159754
159743
  value: "action",
159755
159744
  label: "Action Required"
159756
159745
  }];
159757
- function CHe({ search: e, onSearchChange: t, searchScopes: n, searchScope: r, onSearchScopeChange: i, searchPlaceholder: a = "Search...", segment: o, onSegmentChange: s, tabs: c = SHe, tabCounts: l, onFilter: u, filterCount: d = 0, columns: f, columnVisibility: p, onColumnChange: m, onRefresh: h, refreshing: g = !1, onDownload: y, show: b, className: x }) {
159746
+ function SHe({ search: e, onSearchChange: t, searchScopes: n, searchScope: r, onSearchScopeChange: i, searchPlaceholder: a = "Search...", segment: o, onSegmentChange: s, tabs: c = xHe, tabCounts: l, onFilter: u, filterCount: d = 0, columns: f, columnVisibility: p, onColumnChange: m, onRefresh: h, refreshing: g = !1, onDownload: y, show: b, className: x }) {
159758
159747
  let C = (e) => b?.[e] !== !1, w = n?.find((e) => e.value === r)?.label, T = w ? `Search by ${w}` : a;
159759
159748
  return /* @__PURE__ */ v("div", {
159760
159749
  className: j("mb-2 flex shrink-0 flex-wrap items-center gap-2", x),
@@ -159865,7 +159854,7 @@ function CHe({ search: e, onSearchChange: t, searchScopes: n, searchScope: r, on
159865
159854
  }
159866
159855
  //#endregion
159867
159856
  //#region ../../react-app/src/components/transactions/types.ts
159868
- var wHe = /* @__PURE__ */ A({}), THe = /* @__PURE__ */ A({
159857
+ var CHe = /* @__PURE__ */ A({}), wHe = /* @__PURE__ */ A({
159869
159858
  KIND_DIRECTION: () => J7,
159870
159859
  KIND_ICON: () => Y7,
159871
159860
  KIND_LABEL: () => q7
@@ -159885,14 +159874,14 @@ var wHe = /* @__PURE__ */ A({}), THe = /* @__PURE__ */ A({
159885
159874
  transfer: oi,
159886
159875
  conversion: ai,
159887
159876
  automation: Nt
159888
- }, EHe = "font-medium text-emerald-600 dark:text-emerald-400", DHe = "font-medium text-red-600 dark:text-red-400";
159877
+ }, THe = "font-medium text-emerald-600 dark:text-emerald-400", EHe = "font-medium text-red-600 dark:text-red-400";
159889
159878
  function X7() {
159890
159879
  return /* @__PURE__ */ _("span", {
159891
159880
  className: "px-1.5 text-muted-foreground",
159892
159881
  children: "→"
159893
159882
  });
159894
159883
  }
159895
- function OHe(e) {
159884
+ function DHe(e) {
159896
159885
  switch (e.kind) {
159897
159886
  case "deposit": return /* @__PURE__ */ v("span", {
159898
159887
  className: "text-sm text-foreground",
@@ -159964,13 +159953,13 @@ function OHe(e) {
159964
159953
  });
159965
159954
  }
159966
159955
  }
159967
- function kHe(e) {
159956
+ function OHe(e) {
159968
159957
  switch (e.kind) {
159969
159958
  case "deposit": return /* @__PURE__ */ _(q, {
159970
159959
  align: "end",
159971
159960
  tabularNums: !0,
159972
159961
  primary: /* @__PURE__ */ v("span", {
159973
- className: EHe,
159962
+ className: THe,
159974
159963
  children: [
159975
159964
  e.amount,
159976
159965
  " ",
@@ -159983,7 +159972,7 @@ function kHe(e) {
159983
159972
  align: "end",
159984
159973
  tabularNums: !0,
159985
159974
  primary: /* @__PURE__ */ v("span", {
159986
- className: DHe,
159975
+ className: EHe,
159987
159976
  children: [
159988
159977
  e.amount,
159989
159978
  " ",
@@ -160009,7 +159998,7 @@ function kHe(e) {
160009
159998
  align: "end",
160010
159999
  tabularNums: !0,
160011
160000
  primary: /* @__PURE__ */ v("span", {
160012
- className: EHe,
160001
+ className: THe,
160013
160002
  children: [
160014
160003
  e.toAmount,
160015
160004
  " ",
@@ -160033,7 +160022,7 @@ function kHe(e) {
160033
160022
  });
160034
160023
  }
160035
160024
  }
160036
- function AHe(e) {
160025
+ function kHe(e) {
160037
160026
  let t = [q7[e.kind], Q[e.status].label];
160038
160027
  switch (e.kind) {
160039
160028
  case "deposit":
@@ -160054,7 +160043,7 @@ function AHe(e) {
160054
160043
  }
160055
160044
  return t.join(" ").toLowerCase();
160056
160045
  }
160057
- function jHe({ data: e, pageSize: t = 50, layout: n = "fill", className: r, onRowClick: i }) {
160046
+ function AHe({ data: e, pageSize: t = 50, layout: n = "fill", className: r, onRowClick: i }) {
160058
160047
  let a = l(() => [
160059
160048
  {
160060
160049
  id: "type",
@@ -160082,13 +160071,13 @@ function jHe({ data: e, pageSize: t = 50, layout: n = "fill", className: r, onRo
160082
160071
  header: "Details",
160083
160072
  headClassName: "w-full",
160084
160073
  cellClassName: "w-full",
160085
- cell: (e) => OHe(e)
160074
+ cell: (e) => DHe(e)
160086
160075
  },
160087
160076
  {
160088
160077
  id: "amount",
160089
160078
  header: "Amount",
160090
160079
  align: "end",
160091
- cell: (e) => kHe(e)
160080
+ cell: (e) => OHe(e)
160092
160081
  },
160093
160082
  {
160094
160083
  id: "when",
@@ -160119,12 +160108,12 @@ function jHe({ data: e, pageSize: t = 50, layout: n = "fill", className: r, onRo
160119
160108
  }
160120
160109
  //#endregion
160121
160110
  //#region ../../react-app/src/components/activity/filters.ts
160122
- var MHe = /* @__PURE__ */ A({
160123
- EMPTY_FILTER: () => NHe,
160111
+ var jHe = /* @__PURE__ */ A({
160112
+ EMPTY_FILTER: () => MHe,
160124
160113
  KIND_OPTIONS: () => Z7,
160125
- filterMatches: () => FHe,
160126
- isFilterEmpty: () => PHe
160127
- }), NHe = {
160114
+ filterMatches: () => PHe,
160115
+ isFilterEmpty: () => NHe
160116
+ }), MHe = {
160128
160117
  kinds: [],
160129
160118
  statuses: []
160130
160119
  }, Z7 = [
@@ -160149,24 +160138,24 @@ var MHe = /* @__PURE__ */ A({
160149
160138
  label: "Automation"
160150
160139
  }
160151
160140
  ];
160152
- function PHe(e) {
160141
+ function NHe(e) {
160153
160142
  return !e.kinds.length && !e.statuses.length;
160154
160143
  }
160155
- function FHe(e, t) {
160144
+ function PHe(e, t) {
160156
160145
  return !(t.kinds.length && !t.kinds.includes(e.kind) || t.statuses.length && !t.statuses.includes(e.status));
160157
160146
  }
160158
160147
  //#endregion
160159
160148
  //#region ../../react-app/src/components/activity/ActivityFilterPanel.tsx
160160
- function IHe(e, t) {
160149
+ function FHe(e, t) {
160161
160150
  return e.includes(t) ? e.filter((e) => e !== t) : [...e, t];
160162
160151
  }
160163
- var LHe = "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";
160164
- function RHe({ open: e, onOpenChange: t, value: n, kinds: r, statuses: i, onApply: a }) {
160152
+ var IHe = "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";
160153
+ function LHe({ open: e, onOpenChange: t, value: n, kinds: r, statuses: i, onApply: a }) {
160165
160154
  let [s, c] = d(n);
160166
160155
  o(() => {
160167
160156
  e && c(n);
160168
160157
  }, [e]);
160169
- let l = PHe(s), u = r ? Z7.filter((e) => r.includes(e.value) || s.kinds.includes(e.value)) : Z7, f = [...i, ...s.statuses.filter((e) => !i.includes(e))];
160158
+ let l = NHe(s), u = r ? Z7.filter((e) => r.includes(e.value) || s.kinds.includes(e.value)) : Z7, f = [...i, ...s.statuses.filter((e) => !i.includes(e))];
160170
160159
  return /* @__PURE__ */ _(n7, {
160171
160160
  open: e,
160172
160161
  onOpenChange: t,
@@ -160180,12 +160169,12 @@ function RHe({ open: e, onOpenChange: t, value: n, kinds: r, statuses: i, onAppl
160180
160169
  children: [u.length > 0 && /* @__PURE__ */ v("section", { children: [/* @__PURE__ */ _(V, { children: "Type" }), /* @__PURE__ */ _("div", {
160181
160170
  className: "grid grid-cols-2 gap-x-4",
160182
160171
  children: u.map((e) => /* @__PURE__ */ v("label", {
160183
- className: LHe,
160172
+ className: IHe,
160184
160173
  children: [/* @__PURE__ */ _(j5, {
160185
160174
  checked: s.kinds.includes(e.value),
160186
160175
  onCheckedChange: () => c((t) => ({
160187
160176
  ...t,
160188
- kinds: IHe(t.kinds, e.value)
160177
+ kinds: FHe(t.kinds, e.value)
160189
160178
  }))
160190
160179
  }), /* @__PURE__ */ _(I7, {
160191
160180
  direction: J7[e.value],
@@ -160196,12 +160185,12 @@ function RHe({ open: e, onOpenChange: t, value: n, kinds: r, statuses: i, onAppl
160196
160185
  })] }), f.length > 0 && /* @__PURE__ */ v(g, { children: [u.length > 0 && /* @__PURE__ */ _(B, {}), /* @__PURE__ */ v("section", { children: [/* @__PURE__ */ _(V, { children: "Status" }), /* @__PURE__ */ _("div", {
160197
160186
  className: "grid grid-cols-2 gap-x-4",
160198
160187
  children: f.map((e) => /* @__PURE__ */ v("label", {
160199
- className: LHe,
160188
+ className: IHe,
160200
160189
  children: [/* @__PURE__ */ _(j5, {
160201
160190
  checked: s.statuses.includes(e),
160202
160191
  onCheckedChange: () => c((t) => ({
160203
160192
  ...t,
160204
- statuses: IHe(t.statuses, e)
160193
+ statuses: FHe(t.statuses, e)
160205
160194
  }))
160206
160195
  }), /* @__PURE__ */ _(R7, {
160207
160196
  tone: Q[e].tone,
@@ -160218,7 +160207,7 @@ function RHe({ open: e, onOpenChange: t, value: n, kinds: r, statuses: i, onAppl
160218
160207
  align: "start",
160219
160208
  className: "text-muted-foreground",
160220
160209
  disabled: l,
160221
- onClick: () => c(NHe)
160210
+ onClick: () => c(MHe)
160222
160211
  },
160223
160212
  {
160224
160213
  key: "cancel",
@@ -160239,13 +160228,13 @@ function RHe({ open: e, onOpenChange: t, value: n, kinds: r, statuses: i, onAppl
160239
160228
  }
160240
160229
  //#endregion
160241
160230
  //#region ../../react-app/src/components/deposit/data.ts
160242
- var zHe = /* @__PURE__ */ A({
160231
+ var RHe = /* @__PURE__ */ A({
160243
160232
  COINS: () => $7,
160244
160233
  DEPOSIT_HISTORY: () => e9,
160245
- DEPOSIT_WALLETS: () => BHe,
160234
+ DEPOSIT_WALLETS: () => zHe,
160246
160235
  NETWORKS: () => Q7,
160247
- figureToNumber: () => VHe,
160248
- formatUsd: () => HHe
160236
+ figureToNumber: () => BHe,
160237
+ formatUsd: () => VHe
160249
160238
  }), Q7 = {
160250
160239
  ETH: {
160251
160240
  code: "ETH",
@@ -160302,7 +160291,7 @@ var zHe = /* @__PURE__ */ A({
160302
160291
  name: "Solana",
160303
160292
  networks: ["SOL"]
160304
160293
  }
160305
- ], BHe = [
160294
+ ], zHe = [
160306
160295
  {
160307
160296
  id: "w-usdt-eth-low",
160308
160297
  name: "Low Risk Wallet",
@@ -160548,10 +160537,10 @@ var zHe = /* @__PURE__ */ A({
160548
160537
  status: "CONFIRMED"
160549
160538
  }
160550
160539
  ];
160551
- function VHe(e) {
160540
+ function BHe(e) {
160552
160541
  return parseFloat(e.replace(/[^0-9.]/g, "")) || 0;
160553
160542
  }
160554
- function HHe(e) {
160543
+ function VHe(e) {
160555
160544
  return e.toLocaleString("en-US", {
160556
160545
  style: "currency",
160557
160546
  currency: "USD",
@@ -160561,11 +160550,11 @@ function HHe(e) {
160561
160550
  }
160562
160551
  //#endregion
160563
160552
  //#region ../../react-app/src/components/withdraw/data.ts
160564
- var UHe = /* @__PURE__ */ A({
160553
+ var HHe = /* @__PURE__ */ A({
160565
160554
  COINS: () => n9,
160566
160555
  NETWORKS: () => t9,
160567
- SAVED_ADDRESSES: () => GHe,
160568
- SOURCE_WALLETS: () => WHe,
160556
+ SAVED_ADDRESSES: () => WHe,
160557
+ SOURCE_WALLETS: () => UHe,
160569
160558
  WITHDRAWAL_HISTORY: () => r9,
160570
160559
  figureToNumber: () => i9,
160571
160560
  formatUsd: () => a9
@@ -160634,7 +160623,7 @@ var UHe = /* @__PURE__ */ A({
160634
160623
  name: "Toncoin",
160635
160624
  networks: ["TON"]
160636
160625
  }
160637
- ], WHe = [
160626
+ ], UHe = [
160638
160627
  {
160639
160628
  id: "w-usdt-eth-low",
160640
160629
  name: "Low Risk Wallet",
@@ -160789,7 +160778,7 @@ var UHe = /* @__PURE__ */ A({
160789
160778
  amountFiat: "$6,600.00",
160790
160779
  fiatRate: 5.5
160791
160780
  }
160792
- ], GHe = [
160781
+ ], WHe = [
160793
160782
  {
160794
160783
  id: "a-binance-usdt-eth",
160795
160784
  label: "Binance Hot Wallet",
@@ -160995,12 +160984,12 @@ function a9(e) {
160995
160984
  }
160996
160985
  //#endregion
160997
160986
  //#region ../../react-app/src/components/convert/data.ts
160998
- var KHe = /* @__PURE__ */ A({
160987
+ var GHe = /* @__PURE__ */ A({
160999
160988
  COINS: () => c9,
161000
160989
  CONVERSION_HISTORY: () => u9,
161001
160990
  CONVERT_FEE_RATE: () => o9,
161002
160991
  HOLDINGS: () => l9,
161003
- NETWORK_NAMES: () => qHe,
160992
+ NETWORK_NAMES: () => KHe,
161004
160993
  WALLET_TIERS: () => s9,
161005
160994
  figureToNumber: () => d9,
161006
160995
  formatCrypto: () => p9,
@@ -161026,7 +161015,7 @@ var KHe = /* @__PURE__ */ A({
161026
161015
  name: "Payout Wallet",
161027
161016
  purpose: "payout"
161028
161017
  }
161029
- ], qHe = {
161018
+ ], KHe = {
161030
161019
  ETH: "Ethereum",
161031
161020
  TRON: "Tron (TRC-20)",
161032
161021
  BTC: "Bitcoin",
@@ -161327,38 +161316,38 @@ function m9(e) {
161327
161316
  function h9(e, t, n) {
161328
161317
  return e[m9(t + n) % e.length];
161329
161318
  }
161330
- function JHe(e) {
161319
+ function qHe(e) {
161331
161320
  let t = "", n = m9(e + "hash");
161332
161321
  for (; t.length < 64;) n = Math.imul(n ^ n >>> 15, 2246822519) >>> 0, t += n.toString(16).padStart(8, "0");
161333
161322
  return "0x" + t.slice(0, 64);
161334
161323
  }
161335
- function YHe(e) {
161324
+ function JHe(e) {
161336
161325
  let t = parseFloat(e.replace(/[^0-9.]/g, ""));
161337
161326
  return Number.isNaN(t) ? 0 : t;
161338
161327
  }
161339
- function XHe(e) {
161328
+ function YHe(e) {
161340
161329
  return "$" + e.toLocaleString("en-US", {
161341
161330
  minimumFractionDigits: 2,
161342
161331
  maximumFractionDigits: 2
161343
161332
  });
161344
161333
  }
161345
- var ZHe = [
161334
+ var XHe = [
161346
161335
  "Maya Okafor",
161347
161336
  "Daniel Roth",
161348
161337
  "Priya Nair",
161349
161338
  "Sofia Grant",
161350
161339
  "Liam Chen"
161351
- ], QHe = [
161340
+ ], ZHe = [
161352
161341
  "Chainalysis",
161353
161342
  "Elliptic",
161354
161343
  "TRM Labs"
161355
- ], $He = .002, eUe = {
161344
+ ], QHe = .002, $He = {
161356
161345
  ETH: "0.00120 ETH · $3.85",
161357
161346
  TRON: "1.10 TRX · $0.13",
161358
161347
  TRC20: "1.10 TRX · $0.13",
161359
161348
  BTC: "0.00002 BTC · $1.24",
161360
161349
  SOL: "0.00008 SOL · $0.01"
161361
- }, tUe = {
161350
+ }, eUe = {
161362
161351
  ETH: {
161363
161352
  name: "Etherscan",
161364
161353
  tx: (e) => `https://etherscan.io/tx/${e}`
@@ -161384,10 +161373,10 @@ var ZHe = [
161384
161373
  tx: (e) => `https://xrpscan.com/tx/${e}`
161385
161374
  }
161386
161375
  };
161387
- function nUe(e, t) {
161376
+ function tUe(e, t) {
161388
161377
  return `${e} · ${t}`;
161389
161378
  }
161390
- function rUe(e) {
161379
+ function nUe(e) {
161391
161380
  let t = e.startsWith("act-") ? e.slice(4) : e;
161392
161381
  return {
161393
161382
  deposit: e9.find((e) => e.id === t),
@@ -161398,8 +161387,8 @@ function rUe(e) {
161398
161387
  function g9(e) {
161399
161388
  return e.status === "PENDING_APPROVAL";
161400
161389
  }
161401
- function iUe(e, t) {
161402
- let n = nUe(e.date, e.time), r = e.kind === "deposit", i = (e, t) => ({
161390
+ function rUe(e, t) {
161391
+ let n = tUe(e.date, e.time), r = e.kind === "deposit", i = (e, t) => ({
161403
161392
  label: e,
161404
161393
  at: t,
161405
161394
  state: "done"
@@ -161436,9 +161425,9 @@ function iUe(e, t) {
161436
161425
  }
161437
161426
  return s;
161438
161427
  }
161439
- function aUe(e) {
161428
+ function iUe(e) {
161440
161429
  if (e.kind === "deposit") return;
161441
- let t = nUe(e.date, e.time);
161430
+ let t = tUe(e.date, e.time);
161442
161431
  if (e.kind === "automation") return {
161443
161432
  requestedBy: `Automation · ${e.rule}`,
161444
161433
  requestedAt: t,
@@ -161450,7 +161439,7 @@ function aUe(e) {
161450
161439
  at: t
161451
161440
  }]
161452
161441
  };
161453
- let n = e.initiator ?? "—", r = h9(ZHe.filter((e) => e !== n), e.id, "apprA"), i = h9(ZHe.filter((e) => e !== n && e !== r), e.id, "apprB");
161442
+ let n = e.initiator ?? "—", r = h9(XHe.filter((e) => e !== n), e.id, "apprA"), i = h9(XHe.filter((e) => e !== n && e !== r), e.id, "apprB");
161454
161443
  return g9(e) ? {
161455
161444
  requestedBy: n,
161456
161445
  requestedAt: t,
@@ -161477,40 +161466,40 @@ function aUe(e) {
161477
161466
  }]
161478
161467
  };
161479
161468
  }
161480
- function oUe(e) {
161469
+ function aUe(e) {
161481
161470
  if (e.kind !== "deposit" && e.kind !== "withdrawal") return;
161482
161471
  let t = e.kind === "deposit" ? e.toWallet : e.fromWallet, n = /high risk/i.test(t) ? "High" : /medium risk/i.test(t) ? "Medium" : "Low";
161483
161472
  return {
161484
- provider: h9(QHe, e.id, "kyt"),
161473
+ provider: h9(ZHe, e.id, "kyt"),
161485
161474
  level: n,
161486
161475
  verdict: n === "High" ? "Alert" : "Accept"
161487
161476
  };
161488
161477
  }
161489
- function sUe(e) {
161478
+ function oUe(e) {
161490
161479
  if (e.kind !== "automation") return;
161491
- let t = YHe(e.amountFiat) / Math.max(1, e.txCount), n = Math.min(e.txCount, 5);
161480
+ let t = JHe(e.amountFiat) / Math.max(1, e.txCount), n = Math.min(e.txCount, 5);
161492
161481
  return {
161493
161482
  children: Array.from({ length: n }, (n, r) => {
161494
- let i = `child${r}`, a = JHe(e.id + i).slice(0, 18);
161483
+ let i = `child${r}`, a = qHe(e.id + i).slice(0, 18);
161495
161484
  return {
161496
161485
  id: `${e.id}-c${r + 1}`,
161497
161486
  recipient: `${a}…`,
161498
- amount: XHe(t * (.8 + m9(e.id + i) % 40 / 100)),
161487
+ amount: YHe(t * (.8 + m9(e.id + i) % 40 / 100)),
161499
161488
  status: "CONFIRMED"
161500
161489
  };
161501
161490
  }),
161502
161491
  summary: `${e.txCount} of ${e.txCount} completed`
161503
161492
  };
161504
161493
  }
161505
- function cUe(e) {
161506
- let t = rUe(e.id), n, r, i, a, o;
161494
+ function sUe(e) {
161495
+ let t = nUe(e.id), n, r, i, a, o;
161507
161496
  e.kind === "deposit" && t.deposit ? (n = t.deposit.fromAddress, r = t.deposit.toAddress, a = t.deposit.confirmations) : e.kind === "withdrawal" && t.withdrawal ? (n = t.withdrawal.fromAddress, r = t.withdrawal.toAddress, i = t.withdrawal.toLabel) : e.kind === "withdrawal" ? r = e.toAddress : e.kind === "conversion" && t.conversion && (o = t.conversion.rate);
161508
- let s = e.kind === "conversion" || e.kind === "automation" ? void 0 : e.network, c = e.kind !== "transfer" && e.kind !== "automation" ? JHe(e.id) : void 0, l = s ? eUe[s] : void 0, u;
161497
+ let s = e.kind === "conversion" || e.kind === "automation" ? void 0 : e.network, c = e.kind !== "transfer" && e.kind !== "automation" ? qHe(e.id) : void 0, l = s ? $He[s] : void 0, u;
161509
161498
  if (e.kind === "conversion") {
161510
- let t = YHe(e.amountFiat) * $He;
161511
- u = `${($He * 100).toFixed(2)}% · ${XHe(t)}`;
161499
+ let t = JHe(e.amountFiat) * QHe;
161500
+ u = `${(QHe * 100).toFixed(2)}% · ${YHe(t)}`;
161512
161501
  }
161513
- let d = sUe(e);
161502
+ let d = oUe(e);
161514
161503
  return {
161515
161504
  record: e,
161516
161505
  fromAddress: n,
@@ -161521,16 +161510,16 @@ function cUe(e) {
161521
161510
  txHash: c,
161522
161511
  networkFee: l,
161523
161512
  serviceFee: u,
161524
- approval: aUe(e),
161525
- compliance: oUe(e),
161513
+ approval: iUe(e),
161514
+ compliance: aUe(e),
161526
161515
  children: d?.children,
161527
161516
  childSummary: d?.summary,
161528
- timeline: iUe(e, a)
161517
+ timeline: rUe(e, a)
161529
161518
  };
161530
161519
  }
161531
161520
  //#endregion
161532
161521
  //#region ../../react-app/src/components/activity/detail/SwapAmounts.tsx
161533
- function lUe({ record: e }) {
161522
+ function cUe({ record: e }) {
161534
161523
  return /* @__PURE__ */ v("div", {
161535
161524
  className: "space-y-2",
161536
161525
  children: [
@@ -161564,13 +161553,13 @@ function lUe({ record: e }) {
161564
161553
  }
161565
161554
  //#endregion
161566
161555
  //#region ../../react-app/src/components/activity/detail/ActivitySummary.tsx
161567
- function uUe(e) {
161556
+ function lUe(e) {
161568
161557
  let t = e.trim();
161569
161558
  return t.startsWith("-") ? "text-rose-600 dark:text-rose-400" : t.startsWith("+") ? "text-emerald-600 dark:text-emerald-400" : "text-muted-foreground";
161570
161559
  }
161571
- function dUe({ record: e }) {
161560
+ function uUe({ record: e }) {
161572
161561
  switch (e.kind) {
161573
- case "conversion": return /* @__PURE__ */ _(lUe, { record: e });
161562
+ case "conversion": return /* @__PURE__ */ _(cUe, { record: e });
161574
161563
  case "automation": return /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("div", {
161575
161564
  className: "text-3xl font-semibold tabular-nums text-foreground",
161576
161565
  children: e.amountFiat
@@ -161588,12 +161577,12 @@ function dUe({ record: e }) {
161588
161577
  children: e.coin
161589
161578
  })]
161590
161579
  }), /* @__PURE__ */ _("div", {
161591
- className: j("mt-0.5 text-sm font-medium tabular-nums", uUe(e.amount)),
161580
+ className: j("mt-0.5 text-sm font-medium tabular-nums", lUe(e.amount)),
161592
161581
  children: e.amountFiat
161593
161582
  })] });
161594
161583
  }
161595
161584
  }
161596
- function fUe({ record: e }) {
161585
+ function dUe({ record: e }) {
161597
161586
  let t = Q[e.status];
161598
161587
  return /* @__PURE__ */ v("div", {
161599
161588
  className: "space-y-3",
@@ -161609,7 +161598,7 @@ function fUe({ record: e }) {
161609
161598
  children: t.label
161610
161599
  })]
161611
161600
  }),
161612
- /* @__PURE__ */ _(dUe, { record: e }),
161601
+ /* @__PURE__ */ _(uUe, { record: e }),
161613
161602
  /* @__PURE__ */ v("div", {
161614
161603
  className: "text-xs text-muted-foreground",
161615
161604
  children: [
@@ -161623,18 +161612,18 @@ function fUe({ record: e }) {
161623
161612
  }
161624
161613
  //#endregion
161625
161614
  //#region ../../react-app/src/components/activity/detail/ActivityTimeline.tsx
161626
- var pUe = {
161615
+ var fUe = {
161627
161616
  done: "border-emerald-500 bg-emerald-500",
161628
161617
  current: "border-primary bg-primary",
161629
161618
  upcoming: "border-cb-line bg-background",
161630
161619
  failed: "border-red-500 bg-red-500"
161631
- }, mUe = {
161620
+ }, pUe = {
161632
161621
  done: "text-foreground",
161633
161622
  current: "font-medium text-foreground",
161634
161623
  upcoming: "text-muted-foreground",
161635
161624
  failed: "font-medium text-red-600 dark:text-red-400"
161636
161625
  };
161637
- function hUe({ steps: e }) {
161626
+ function mUe({ steps: e }) {
161638
161627
  return /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _(V, { children: "Status" }), /* @__PURE__ */ _("ol", {
161639
161628
  className: "space-y-0",
161640
161629
  children: e.map((t, n) => {
@@ -161643,12 +161632,12 @@ function hUe({ steps: e }) {
161643
161632
  className: "flex gap-3",
161644
161633
  children: [/* @__PURE__ */ v("div", {
161645
161634
  className: "flex flex-col items-center",
161646
- children: [/* @__PURE__ */ _("span", { className: j("mt-1 size-2.5 shrink-0 rounded-full border-2", pUe[t.state], t.state === "current" && "ring-4 ring-primary/15") }), !r && /* @__PURE__ */ _("span", { className: j("w-px flex-1", t.state === "done" ? "bg-emerald-500/40" : "bg-cb-line") })]
161635
+ children: [/* @__PURE__ */ _("span", { className: j("mt-1 size-2.5 shrink-0 rounded-full border-2", fUe[t.state], t.state === "current" && "ring-4 ring-primary/15") }), !r && /* @__PURE__ */ _("span", { className: j("w-px flex-1", t.state === "done" ? "bg-emerald-500/40" : "bg-cb-line") })]
161647
161636
  }), /* @__PURE__ */ v("div", {
161648
161637
  className: j("pb-4", r && "pb-0"),
161649
161638
  children: [
161650
161639
  /* @__PURE__ */ _("div", {
161651
- className: j("text-sm leading-tight", mUe[t.state]),
161640
+ className: j("text-sm leading-tight", pUe[t.state]),
161652
161641
  children: t.label
161653
161642
  }),
161654
161643
  t.at && /* @__PURE__ */ _("div", {
@@ -161667,7 +161656,7 @@ function hUe({ steps: e }) {
161667
161656
  }
161668
161657
  //#endregion
161669
161658
  //#region ../../react-app/src/components/activity/detail/ConfirmationMeter.tsx
161670
- function gUe({ value: e, className: t }) {
161659
+ function hUe({ value: e, className: t }) {
161671
161660
  let [n, r] = e.split("/"), i = Number(n), a = Number(r), o = Number.isFinite(i) && Number.isFinite(a) && a > 0, s = o ? Math.min(100, Math.round(i / a * 100)) : 0, c = o && i >= a;
161672
161661
  return /* @__PURE__ */ v("div", {
161673
161662
  className: j("min-w-0", t),
@@ -161697,7 +161686,7 @@ function _9({ children: e }) {
161697
161686
  children: e
161698
161687
  });
161699
161688
  }
161700
- function _Ue({ detail: e }) {
161689
+ function gUe({ detail: e }) {
161701
161690
  let { record: t } = e;
161702
161691
  return /* @__PURE__ */ v("div", { children: [
161703
161692
  /* @__PURE__ */ _(V, { children: "Details" }),
@@ -161737,7 +161726,7 @@ function _Ue({ detail: e }) {
161737
161726
  label: "Confirmations",
161738
161727
  show: !!e.confirmations,
161739
161728
  className: "col-span-2",
161740
- children: /* @__PURE__ */ _(gUe, { value: e.confirmations ?? "" })
161729
+ children: /* @__PURE__ */ _(hUe, { value: e.confirmations ?? "" })
161741
161730
  })
161742
161731
  ] }),
161743
161732
  t.kind === "withdrawal" && /* @__PURE__ */ v(_9, { children: [
@@ -161874,7 +161863,7 @@ function _Ue({ detail: e }) {
161874
161863
  }
161875
161864
  //#endregion
161876
161865
  //#region ../../react-app/src/components/activity/detail/AutomationChildList.tsx
161877
- function vUe({ children: e, total: t }) {
161866
+ function _Ue({ children: e, total: t }) {
161878
161867
  let n = t - e.length;
161879
161868
  return /* @__PURE__ */ v("div", { children: [
161880
161869
  /* @__PURE__ */ _(V, { children: "Transactions" }),
@@ -161913,7 +161902,7 @@ function vUe({ children: e, total: t }) {
161913
161902
  }
161914
161903
  //#endregion
161915
161904
  //#region ../../react-app/src/components/activity/detail/ActivityApprovals.tsx
161916
- var yUe = {
161905
+ var vUe = {
161917
161906
  approved: {
161918
161907
  glyph: "✓",
161919
161908
  className: "text-emerald-600 dark:text-emerald-400"
@@ -161927,7 +161916,7 @@ var yUe = {
161927
161916
  className: "text-muted-foreground"
161928
161917
  }
161929
161918
  };
161930
- function bUe({ approval: e }) {
161919
+ function yUe({ approval: e }) {
161931
161920
  let t = e.approvers.filter((e) => e.decision === "approved").length;
161932
161921
  return /* @__PURE__ */ v("div", { children: [
161933
161922
  /* @__PURE__ */ v("div", {
@@ -161961,7 +161950,7 @@ function bUe({ approval: e }) {
161961
161950
  }) : /* @__PURE__ */ _("ul", {
161962
161951
  className: "mt-3 space-y-1.5",
161963
161952
  children: e.approvers.map((e, t) => {
161964
- let n = yUe[e.decision];
161953
+ let n = vUe[e.decision];
161965
161954
  return /* @__PURE__ */ v("li", {
161966
161955
  className: "flex items-center gap-2 text-sm",
161967
161956
  children: [
@@ -161985,19 +161974,19 @@ function bUe({ approval: e }) {
161985
161974
  }
161986
161975
  //#endregion
161987
161976
  //#region ../../react-app/src/components/activity/detail/ActivityCompliance.tsx
161988
- var xUe = {
161977
+ var bUe = {
161989
161978
  Low: "emerald",
161990
161979
  Medium: "amber",
161991
161980
  High: "red"
161992
161981
  };
161993
- function SUe({ compliance: e }) {
161982
+ function xUe({ compliance: e }) {
161994
161983
  return /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _(V, { children: "Compliance" }), /* @__PURE__ */ v("div", {
161995
161984
  className: "grid grid-cols-2 gap-x-4 gap-y-3.5",
161996
161985
  children: [
161997
161986
  /* @__PURE__ */ _(Z, {
161998
161987
  label: "Risk level",
161999
161988
  children: /* @__PURE__ */ _(R7, {
162000
- tone: xUe[e.level],
161989
+ tone: bUe[e.level],
162001
161990
  children: e.level
162002
161991
  })
162003
161992
  }),
@@ -162015,8 +162004,8 @@ function SUe({ compliance: e }) {
162015
162004
  }
162016
162005
  //#endregion
162017
162006
  //#region ../../react-app/src/components/activity/detail/ExplorerLink.tsx
162018
- function CUe({ network: e, hash: t }) {
162019
- let n = tUe[e];
162007
+ function SUe({ network: e, hash: t }) {
162008
+ let n = eUe[e];
162020
162009
  return n ? /* @__PURE__ */ v(M7, {
162021
162010
  href: n.tx(t),
162022
162011
  className: "text-[13px] no-underline hover:underline",
@@ -162033,7 +162022,7 @@ function CUe({ network: e, hash: t }) {
162033
162022
  }
162034
162023
  //#endregion
162035
162024
  //#region ../../react-app/src/components/activity/detail/ActivityOnchainReference.tsx
162036
- function wUe({ detail: e }) {
162025
+ function CUe({ detail: e }) {
162037
162026
  let { record: t } = e, n = t.kind === "deposit" || t.kind === "withdrawal" ? t.network : void 0;
162038
162027
  return /* @__PURE__ */ v("div", { children: [
162039
162028
  e.txHash && /* @__PURE__ */ v(g, { children: [
@@ -162050,7 +162039,7 @@ function wUe({ detail: e }) {
162050
162039
  head: 8,
162051
162040
  tail: 6,
162052
162041
  asLink: !0
162053
- }), n && /* @__PURE__ */ _(CUe, {
162042
+ }), n && /* @__PURE__ */ _(SUe, {
162054
162043
  network: n,
162055
162044
  hash: e.txHash
162056
162045
  })]
@@ -162080,7 +162069,7 @@ function wUe({ detail: e }) {
162080
162069
  }
162081
162070
  //#endregion
162082
162071
  //#region ../../react-app/src/components/activity/detail/ActivityNotes.tsx
162083
- function TUe() {
162072
+ function wUe() {
162084
162073
  return /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _(V, { children: "Notes & tags" }), /* @__PURE__ */ _("p", {
162085
162074
  className: "text-sm text-muted-foreground",
162086
162075
  children: "No notes yet. Add a note or tag to categorize this activity for reconciliation."
@@ -162088,8 +162077,8 @@ function TUe() {
162088
162077
  }
162089
162078
  //#endregion
162090
162079
  //#region ../../react-app/src/components/activity/detail/ActivityDetailPanel.tsx
162091
- function EUe({ record: e, open: t, onOpenChange: n, show: r, onApprove: i, onReject: a }) {
162092
- let o = l(() => e ? cUe(e) : null, [e]);
162080
+ function TUe({ record: e, open: t, onOpenChange: n, show: r, onApprove: i, onReject: a }) {
162081
+ let o = l(() => e ? sUe(e) : null, [e]);
162093
162082
  return /* @__PURE__ */ _(n7, {
162094
162083
  open: t,
162095
162084
  onOpenChange: n,
@@ -162102,11 +162091,11 @@ function EUe({ record: e, open: t, onOpenChange: n, show: r, onApprove: i, onRej
162102
162091
  children: /* @__PURE__ */ _(o7, { children: "Activity details" })
162103
162092
  }), o && /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(a7, {
162104
162093
  className: "px-5 py-4",
162105
- children: /* @__PURE__ */ _(DUe, {
162094
+ children: /* @__PURE__ */ _(EUe, {
162106
162095
  detail: o,
162107
162096
  show: r
162108
162097
  })
162109
- }), /* @__PURE__ */ _(OUe, {
162098
+ }), /* @__PURE__ */ _(DUe, {
162110
162099
  record: o.record,
162111
162100
  onApprove: i,
162112
162101
  onReject: a
@@ -162114,13 +162103,13 @@ function EUe({ record: e, open: t, onOpenChange: n, show: r, onApprove: i, onRej
162114
162103
  })
162115
162104
  });
162116
162105
  }
162117
- function DUe({ detail: e, show: t }) {
162118
- let { record: r } = e, i = g9(r), a = t?.timeline === !1 ? null : /* @__PURE__ */ _(hUe, { steps: e.timeline }), o = /* @__PURE__ */ _(_Ue, { detail: e }), s = r.kind === "automation" && e.children ? /* @__PURE__ */ _(vUe, {
162106
+ function EUe({ detail: e, show: t }) {
162107
+ let { record: r } = e, i = g9(r), a = t?.timeline === !1 ? null : /* @__PURE__ */ _(mUe, { steps: e.timeline }), o = /* @__PURE__ */ _(gUe, { detail: e }), s = r.kind === "automation" && e.children ? /* @__PURE__ */ _(_Ue, {
162119
162108
  children: e.children,
162120
162109
  total: r.txCount
162121
- }) : null, c = e.approval && t?.approvals !== !1 ? /* @__PURE__ */ _(bUe, { approval: e.approval }) : null, l = e.compliance && t?.compliance !== !1 ? /* @__PURE__ */ _(SUe, { compliance: e.compliance }) : null, u = t?.onchain === !1 ? null : /* @__PURE__ */ _(wUe, { detail: e }), d = t?.notes === !1 ? null : /* @__PURE__ */ _(TUe, {});
162110
+ }) : null, c = e.approval && t?.approvals !== !1 ? /* @__PURE__ */ _(yUe, { approval: e.approval }) : null, l = e.compliance && t?.compliance !== !1 ? /* @__PURE__ */ _(xUe, { compliance: e.compliance }) : null, u = t?.onchain === !1 ? null : /* @__PURE__ */ _(CUe, { detail: e }), d = t?.notes === !1 ? null : /* @__PURE__ */ _(wUe, {});
162122
162111
  return /* @__PURE__ */ _(g, { children: [
162123
- /* @__PURE__ */ _(fUe, { record: r }, "summary"),
162112
+ /* @__PURE__ */ _(dUe, { record: r }, "summary"),
162124
162113
  a,
162125
162114
  ...i ? [c, o] : [o, c],
162126
162115
  s,
@@ -162129,7 +162118,7 @@ function DUe({ detail: e, show: t }) {
162129
162118
  d
162130
162119
  ].filter(Boolean).map((e, t) => /* @__PURE__ */ v(n, { children: [t > 0 && /* @__PURE__ */ _(B, {}), e] }, t)) });
162131
162120
  }
162132
- function OUe({ record: e, onApprove: t, onReject: n }) {
162121
+ function DUe({ record: e, onApprove: t, onReject: n }) {
162133
162122
  let r = [{
162134
162123
  key: "receipt",
162135
162124
  label: "Download receipt",
@@ -162150,16 +162139,16 @@ function OUe({ record: e, onApprove: t, onReject: n }) {
162150
162139
  }
162151
162140
  //#endregion
162152
162141
  //#region ../../react-app/src/components/activity/data.ts
162153
- var kUe = /* @__PURE__ */ A({
162154
- TREASURY_ACTIVITY: () => FUe,
162142
+ var OUe = /* @__PURE__ */ A({
162143
+ TREASURY_ACTIVITY: () => PUe,
162155
162144
  activityTimestamp: () => v9,
162156
- default: () => FUe
162145
+ default: () => PUe
162157
162146
  });
162158
162147
  function v9(e) {
162159
162148
  let t = Date.parse(`${e.date} ${e.time}`);
162160
162149
  return Number.isNaN(t) ? 0 : t;
162161
162150
  }
162162
- var AUe = e9.map((e) => ({
162151
+ var kUe = e9.map((e) => ({
162163
162152
  kind: "deposit",
162164
162153
  id: `act-${e.id}`,
162165
162154
  date: e.date,
@@ -162170,7 +162159,7 @@ var AUe = e9.map((e) => ({
162170
162159
  toWallet: e.toWallet,
162171
162160
  amount: e.amount,
162172
162161
  amountFiat: e.amountFiat
162173
- })), jUe = r9.map((e) => ({
162162
+ })), AUe = r9.map((e) => ({
162174
162163
  kind: "withdrawal",
162175
162164
  id: `act-${e.id}`,
162176
162165
  date: e.date,
@@ -162183,7 +162172,7 @@ var AUe = e9.map((e) => ({
162183
162172
  amount: e.amount,
162184
162173
  amountFiat: e.amountFiat,
162185
162174
  initiator: e.initiator
162186
- })), MUe = u9.map((e) => ({
162175
+ })), jUe = u9.map((e) => ({
162187
162176
  kind: "conversion",
162188
162177
  id: `act-${e.id}`,
162189
162178
  date: e.date,
@@ -162196,7 +162185,7 @@ var AUe = e9.map((e) => ({
162196
162185
  amountFiat: e.fiatValue,
162197
162186
  wallet: e.wallet,
162198
162187
  initiator: e.initiator
162199
- })), NUe = [
162188
+ })), MUe = [
162200
162189
  {
162201
162190
  kind: "transfer",
162202
162191
  id: "act-tr-01",
@@ -162239,7 +162228,7 @@ var AUe = e9.map((e) => ({
162239
162228
  amountFiat: "$12,500.00",
162240
162229
  initiator: "Priya Nair"
162241
162230
  }
162242
- ], PUe = [
162231
+ ], NUe = [
162243
162232
  {
162244
162233
  kind: "automation",
162245
162234
  id: "act-au-01",
@@ -162300,20 +162289,20 @@ var AUe = e9.map((e) => ({
162300
162289
  amountFiat: "$4,250.00",
162301
162290
  txCount: 57
162302
162291
  }
162303
- ], FUe = [
162292
+ ], PUe = [
162293
+ ...kUe,
162304
162294
  ...AUe,
162305
162295
  ...jUe,
162306
162296
  ...MUe,
162307
- ...NUe,
162308
- ...PUe
162309
- ].sort((e, t) => v9(t) - v9(e)), IUe = /* @__PURE__ */ A({}), y9 = "–";
162297
+ ...NUe
162298
+ ].sort((e, t) => v9(t) - v9(e)), FUe = /* @__PURE__ */ A({}), y9 = "–";
162310
162299
  function b9({ children: e }) {
162311
162300
  return /* @__PURE__ */ _("span", {
162312
162301
  className: "text-muted-foreground",
162313
162302
  children: e
162314
162303
  });
162315
162304
  }
162316
- var LUe = [
162305
+ var IUe = [
162317
162306
  {
162318
162307
  id: "date",
162319
162308
  header: "Date",
@@ -162365,9 +162354,9 @@ var LUe = [
162365
162354
  cell: (e) => e.otherWithdrawals
162366
162355
  }
162367
162356
  ];
162368
- function RUe({ data: e, pageSize: t }) {
162357
+ function LUe({ data: e, pageSize: t }) {
162369
162358
  return /* @__PURE__ */ _(P7, {
162370
- columns: LUe,
162359
+ columns: IUe,
162371
162360
  data: e,
162372
162361
  getRowId: (e) => e.date,
162373
162362
  pageSize: t
@@ -162375,8 +162364,8 @@ function RUe({ data: e, pageSize: t }) {
162375
162364
  }
162376
162365
  //#endregion
162377
162366
  //#region ../../react-app/src/components/reports/DonutChart.tsx
162378
- var zUe = 900;
162379
- function BUe() {
162367
+ var RUe = 900;
162368
+ function zUe() {
162380
162369
  let [e, t] = d(!1);
162381
162370
  return o(() => {
162382
162371
  if (typeof window > "u" || !window.matchMedia) return;
@@ -162386,8 +162375,8 @@ function BUe() {
162386
162375
  return e.addEventListener("change", n), () => e.removeEventListener("change", n);
162387
162376
  }, []), e;
162388
162377
  }
162389
- function VUe({ segments: e, size: t = 148, thickness: n = 20, gap: r = 2, animate: i = !0, className: a }) {
162390
- let s = e.reduce((e, t) => e + t.value, 0) || 1, c = 50 - n / 2, l = 2 * Math.PI * c, f = BUe(), p = i && !f, [m, h] = d(!p);
162378
+ function BUe({ segments: e, size: t = 148, thickness: n = 20, gap: r = 2, animate: i = !0, className: a }) {
162379
+ let s = e.reduce((e, t) => e + t.value, 0) || 1, c = 50 - n / 2, l = 2 * Math.PI * c, f = zUe(), p = i && !f, [m, h] = d(!p);
162391
162380
  o(() => {
162392
162381
  if (!p) {
162393
162382
  h(!0);
@@ -162433,7 +162422,7 @@ function VUe({ segments: e, size: t = 148, thickness: n = 20, gap: r = 2, animat
162433
162422
  onMouseLeave: () => b(null),
162434
162423
  style: {
162435
162424
  strokeDasharray: m ? `${i} ${l - i}` : `0 ${l}`,
162436
- transition: p ? `stroke-dasharray ${o * zUe}ms linear ${a * zUe}ms` : void 0
162425
+ transition: p ? `stroke-dasharray ${o * RUe}ms linear ${a * RUe}ms` : void 0
162437
162426
  }
162438
162427
  }, e.label);
162439
162428
  })
@@ -162463,7 +162452,7 @@ function VUe({ segments: e, size: t = 148, thickness: n = 20, gap: r = 2, animat
162463
162452
  }
162464
162453
  //#endregion
162465
162454
  //#region ../../react-app/src/components/reports/ExportHistoryList.tsx
162466
- function HUe({ label: e, onClick: t }) {
162455
+ function VUe({ label: e, onClick: t }) {
162467
162456
  return /* @__PURE__ */ v(g7, { children: [/* @__PURE__ */ _(_7, {
162468
162457
  asChild: !0,
162469
162458
  children: /* @__PURE__ */ _(M, {
@@ -162482,7 +162471,7 @@ function HUe({ label: e, onClick: t }) {
162482
162471
  })
162483
162472
  }), /* @__PURE__ */ _(v7, { children: "Download" })] });
162484
162473
  }
162485
- function UUe({ entries: e, onDownload: t }) {
162474
+ function HUe({ entries: e, onDownload: t }) {
162486
162475
  return /* @__PURE__ */ _(P7, {
162487
162476
  columns: [
162488
162477
  {
@@ -162517,7 +162506,7 @@ function UUe({ entries: e, onDownload: t }) {
162517
162506
  header: "",
162518
162507
  align: "end",
162519
162508
  headClassName: "w-12",
162520
- cell: (e) => /* @__PURE__ */ _(HUe, {
162509
+ cell: (e) => /* @__PURE__ */ _(VUe, {
162521
162510
  label: e.file,
162522
162511
  onClick: () => t?.(e)
162523
162512
  })
@@ -162529,15 +162518,15 @@ function UUe({ entries: e, onDownload: t }) {
162529
162518
  }
162530
162519
  //#endregion
162531
162520
  //#region ../../react-app/src/components/reports/presets.ts
162532
- var WUe = /* @__PURE__ */ A({
162521
+ var UUe = /* @__PURE__ */ A({
162533
162522
  ACCOUNT_START: () => S9,
162534
- PRESETS: () => GUe,
162523
+ PRESETS: () => WUe,
162535
162524
  REFERENCE_TODAY: () => x9,
162536
- presetPeriod: () => KUe
162525
+ presetPeriod: () => GUe
162537
162526
  }), x9 = new Date(2026, 6, 15), S9 = new Date(2024, 0, 1), C9 = (e) => (t) => ({
162538
162527
  from: fe(t, e - 1),
162539
162528
  to: t
162540
- }), GUe = [
162529
+ }), WUe = [
162541
162530
  {
162542
162531
  id: "today",
162543
162532
  label: "Today",
@@ -162616,7 +162605,7 @@ var WUe = /* @__PURE__ */ A({
162616
162605
  let t = pe(e, 1);
162617
162606
  return {
162618
162607
  from: ue(t),
162619
- to: ae(t)
162608
+ to: O(t)
162620
162609
  };
162621
162610
  }
162622
162611
  },
@@ -162629,7 +162618,7 @@ var WUe = /* @__PURE__ */ A({
162629
162618
  })
162630
162619
  }
162631
162620
  ];
162632
- function KUe(e, t = x9) {
162621
+ function GUe(e, t = x9) {
162633
162622
  let { from: n, to: r } = e.range(t);
162634
162623
  return {
162635
162624
  mode: "range",
@@ -162640,7 +162629,7 @@ function KUe(e, t = x9) {
162640
162629
  }
162641
162630
  //#endregion
162642
162631
  //#region ../../react-app/src/components/reports/PeriodPicker.tsx
162643
- var qUe = [
162632
+ var KUe = [
162644
162633
  "Jan",
162645
162634
  "Feb",
162646
162635
  "Mar",
@@ -162653,7 +162642,7 @@ var qUe = [
162653
162642
  "Oct",
162654
162643
  "Nov",
162655
162644
  "Dec"
162656
- ], JUe = {
162645
+ ], qUe = {
162657
162646
  root: "w-full",
162658
162647
  nav: "absolute inset-x-0 top-0 flex items-center justify-between px-1",
162659
162648
  caption_label: "text-sm font-semibold text-foreground",
@@ -162665,23 +162654,23 @@ var qUe = [
162665
162654
  size: "icon"
162666
162655
  }), "mx-auto size-8 cursor-pointer rounded-md text-sm font-normal")
162667
162656
  };
162668
- function YUe(e) {
162657
+ function JUe(e) {
162669
162658
  return e.mode === "month" ? e.month : e.from;
162670
162659
  }
162671
- function XUe(e) {
162660
+ function YUe(e) {
162672
162661
  if (e.mode === "month") return k(e.month, "MMMM yyyy");
162673
162662
  if (e.label) return e.label;
162674
162663
  let t = e.from.getFullYear() === e.to.getFullYear();
162675
162664
  return `${k(e.from, t ? "MMM d" : "MMM d, yyyy")} – ${k(e.to, "MMM d, yyyy")}`;
162676
162665
  }
162677
- function ZUe({ value: e, onPick: t, onPreview: n }) {
162666
+ function XUe({ value: e, onPick: t, onPreview: n }) {
162678
162667
  return /* @__PURE__ */ _(TBe, {
162679
162668
  className: "h-full w-44 shrink-0 border-r border-cb-line",
162680
162669
  viewportClassName: "p-2",
162681
162670
  onMouseLeave: () => n(null),
162682
162671
  children: /* @__PURE__ */ _("div", {
162683
162672
  className: "flex flex-col gap-0.5",
162684
- children: GUe.map((r) => /* @__PURE__ */ _("button", {
162673
+ children: WUe.map((r) => /* @__PURE__ */ _("button", {
162685
162674
  type: "button",
162686
162675
  onClick: () => t(r),
162687
162676
  onMouseEnter: () => n(r),
@@ -162691,7 +162680,7 @@ function ZUe({ value: e, onPick: t, onPreview: n }) {
162691
162680
  })
162692
162681
  });
162693
162682
  }
162694
- function QUe({ draftMonth: e, today: t, onSelect: n }) {
162683
+ function ZUe({ draftMonth: e, today: t, onSelect: n }) {
162695
162684
  let [r, i] = d(() => (e ?? t).getFullYear());
162696
162685
  return /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ v("div", {
162697
162686
  className: "mb-3 flex items-center justify-between px-1",
@@ -162729,7 +162718,7 @@ function QUe({ draftMonth: e, today: t, onSelect: n }) {
162729
162718
  ]
162730
162719
  }), /* @__PURE__ */ _("div", {
162731
162720
  className: "grid grid-cols-4 gap-1.5",
162732
- children: qUe.map((t, i) => /* @__PURE__ */ _("button", {
162721
+ children: KUe.map((t, i) => /* @__PURE__ */ _("button", {
162733
162722
  type: "button",
162734
162723
  onClick: () => n(new Date(r, i, 1)),
162735
162724
  className: j("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"),
@@ -162737,8 +162726,8 @@ function QUe({ draftMonth: e, today: t, onSelect: n }) {
162737
162726
  }, t))
162738
162727
  })] });
162739
162728
  }
162740
- function $Ue({ value: e, today: t, onChange: n, onReset: r }) {
162741
- let [i, a] = d(e.mode === "month" ? "month" : "range"), [o, s] = d(e.mode === "month" ? e.month : ue(YUe(e))), [c, l] = d(e.mode === "range" ? {
162729
+ function QUe({ value: e, today: t, onChange: n, onReset: r }) {
162730
+ let [i, a] = d(e.mode === "month" ? "month" : "range"), [o, s] = d(e.mode === "month" ? e.month : ue(JUe(e))), [c, l] = d(e.mode === "range" ? {
162742
162731
  from: e.from,
162743
162732
  to: e.to
162744
162733
  } : void 0), [u, f] = d(null), p = !!c?.from && !!c?.to, m = i === "month" || p;
@@ -162757,9 +162746,9 @@ function $Ue({ value: e, today: t, onChange: n, onReset: r }) {
162757
162746
  }
162758
162747
  return /* @__PURE__ */ v("div", {
162759
162748
  className: "flex h-[360px]",
162760
- children: [/* @__PURE__ */ _(ZUe, {
162749
+ children: [/* @__PURE__ */ _(XUe, {
162761
162750
  value: e,
162762
- onPick: (e) => n(KUe(e, t)),
162751
+ onPick: (e) => n(GUe(e, t)),
162763
162752
  onPreview: h
162764
162753
  }), /* @__PURE__ */ v("div", {
162765
162754
  className: "flex h-full w-72 flex-col p-3",
@@ -162783,7 +162772,7 @@ function $Ue({ value: e, today: t, onChange: n, onReset: r }) {
162783
162772
  /* @__PURE__ */ _(h7, {
162784
162773
  value: "month",
162785
162774
  className: "mt-1 flex-1",
162786
- children: /* @__PURE__ */ _(QUe, {
162775
+ children: /* @__PURE__ */ _(ZUe, {
162787
162776
  draftMonth: o,
162788
162777
  today: t,
162789
162778
  onSelect: s
@@ -162798,9 +162787,9 @@ function $Ue({ value: e, today: t, onChange: n, onReset: r }) {
162798
162787
  onSelect: (e) => {
162799
162788
  f(null), l(e);
162800
162789
  },
162801
- defaultMonth: YUe(e),
162790
+ defaultMonth: JUe(e),
162802
162791
  className: "w-full p-0",
162803
- classNames: JUe
162792
+ classNames: qUe
162804
162793
  })
162805
162794
  })
162806
162795
  ]
@@ -162821,19 +162810,19 @@ function $Ue({ value: e, today: t, onChange: n, onReset: r }) {
162821
162810
  })]
162822
162811
  });
162823
162812
  }
162824
- function eWe({ value: e, onChange: t, today: n = x9, className: r }) {
162813
+ function $Ue({ value: e, onChange: t, today: n = x9, className: r }) {
162825
162814
  let [i, a] = d(!1);
162826
162815
  function o(n) {
162827
162816
  if (e.mode === "month") t({
162828
162817
  mode: "month",
162829
- month: n === 1 ? re(e.month, 1) : pe(e.month, 1)
162818
+ month: n === 1 ? ie(e.month, 1) : pe(e.month, 1)
162830
162819
  });
162831
162820
  else {
162832
- let r = ie(e.to, e.from) + 1;
162821
+ let r = ae(e.to, e.from) + 1;
162833
162822
  t({
162834
162823
  mode: "range",
162835
- from: ne(e.from, n * r),
162836
- to: ne(e.to, n * r)
162824
+ from: re(e.from, n * r),
162825
+ to: re(e.to, n * r)
162837
162826
  });
162838
162827
  }
162839
162828
  }
@@ -162853,12 +162842,12 @@ function eWe({ value: e, onChange: t, today: n = x9, className: r }) {
162853
162842
  color: "currentColor",
162854
162843
  strokeWidth: 2,
162855
162844
  className: "text-muted-foreground"
162856
- }), XUe(e)]
162845
+ }), YUe(e)]
162857
162846
  })
162858
162847
  }), /* @__PURE__ */ _($5, {
162859
162848
  align: "end",
162860
162849
  className: "w-auto p-0",
162861
- children: /* @__PURE__ */ _($Ue, {
162850
+ children: /* @__PURE__ */ _(QUe, {
162862
162851
  value: e,
162863
162852
  today: n,
162864
162853
  onChange: (e) => {
@@ -162902,25 +162891,25 @@ function eWe({ value: e, onChange: t, today: n = x9, className: r }) {
162902
162891
  }
162903
162892
  //#endregion
162904
162893
  //#region ../../react-app/src/components/reports/data.ts
162905
- var tWe = /* @__PURE__ */ A({
162906
- ASSET_COLORS: () => nWe,
162907
- ASSET_COLOR_FALLBACK: () => rWe,
162908
- DAILY_BALANCES: () => aWe,
162909
- EXPORT_HISTORY: () => oWe,
162910
- REPORT_SUMMARIES: () => iWe,
162894
+ var eWe = /* @__PURE__ */ A({
162895
+ ASSET_COLORS: () => tWe,
162896
+ ASSET_COLOR_FALLBACK: () => nWe,
162897
+ DAILY_BALANCES: () => iWe,
162898
+ EXPORT_HISTORY: () => aWe,
162899
+ REPORT_SUMMARIES: () => rWe,
162911
162900
  assetColor: () => w9
162912
- }), nWe = {
162901
+ }), tWe = {
162913
162902
  USDT: "#2B7DE7",
162914
162903
  USDC: "#38BDF8",
162915
162904
  BTC: "#3730A3",
162916
162905
  ETH: "#7C6BF5",
162917
162906
  SOL: "#22D3EE",
162918
162907
  XRP: "#C4B5FD"
162919
- }, rWe = "#94A3B8";
162908
+ }, nWe = "#94A3B8";
162920
162909
  function w9(e) {
162921
- return nWe[e] ?? "#94A3B8";
162910
+ return tWe[e] ?? "#94A3B8";
162922
162911
  }
162923
- var iWe = [
162912
+ var rWe = [
162924
162913
  {
162925
162914
  label: "Total Volume",
162926
162915
  total: "$1,284.60",
@@ -163007,7 +162996,7 @@ var iWe = [
163007
162996
  }
163008
162997
  ]
163009
162998
  }
163010
- ], aWe = [
162999
+ ], iWe = [
163011
163000
  {
163012
163001
  date: "2026-07-02",
163013
163002
  openingBalance: null,
@@ -163038,7 +163027,7 @@ var iWe = [
163038
163027
  otherDeposits: "$0.00",
163039
163028
  otherWithdrawals: "$0.00"
163040
163029
  }
163041
- ], oWe = [
163030
+ ], aWe = [
163042
163031
  {
163043
163032
  id: "daily-balances-jun-2026",
163044
163033
  file: "daily-balances-jun-2026.csv",
@@ -163060,7 +163049,7 @@ var iWe = [
163060
163049
  ];
163061
163050
  //#endregion
163062
163051
  //#region ../../react-app/src/components/reports/ReportSummaryCard.tsx
163063
- function sWe({ summary: e }) {
163052
+ function oWe({ summary: e }) {
163064
163053
  return /* @__PURE__ */ _("div", {
163065
163054
  className: "flex flex-wrap justify-center gap-x-4 gap-y-1.5",
163066
163055
  children: e.slices.map((e) => /* @__PURE__ */ v("span", {
@@ -163082,7 +163071,7 @@ function sWe({ summary: e }) {
163082
163071
  }, e.code))
163083
163072
  });
163084
163073
  }
163085
- function cWe({ summary: e, emphasized: t = !0, className: n }) {
163074
+ function sWe({ summary: e, emphasized: t = !0, className: n }) {
163086
163075
  let r = e.slices.map((e) => ({
163087
163076
  label: e.code,
163088
163077
  value: e.percent,
@@ -163102,19 +163091,19 @@ function cWe({ summary: e, emphasized: t = !0, className: n }) {
163102
163091
  }),
163103
163092
  /* @__PURE__ */ _("div", {
163104
163093
  className: "mt-4 flex justify-center",
163105
- children: /* @__PURE__ */ _(VUe, { segments: r })
163094
+ children: /* @__PURE__ */ _(BUe, { segments: r })
163106
163095
  }),
163107
163096
  /* @__PURE__ */ _("div", {
163108
163097
  className: "mt-5",
163109
- children: /* @__PURE__ */ _(sWe, { summary: e })
163098
+ children: /* @__PURE__ */ _(oWe, { summary: e })
163110
163099
  })
163111
163100
  ]
163112
163101
  });
163113
163102
  }
163114
- function lWe({ summaries: e, className: t }) {
163103
+ function cWe({ summaries: e, className: t }) {
163115
163104
  return /* @__PURE__ */ _("div", {
163116
163105
  className: j("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),
163117
- children: e.map((e, t) => /* @__PURE__ */ _(cWe, {
163106
+ children: e.map((e, t) => /* @__PURE__ */ _(sWe, {
163118
163107
  summary: e,
163119
163108
  emphasized: t === 0
163120
163109
  }, e.label))
@@ -163122,7 +163111,7 @@ function lWe({ summaries: e, className: t }) {
163122
163111
  }
163123
163112
  //#endregion
163124
163113
  //#region ../../react-app/src/components/reports/ReportsSummaryEmpty.tsx
163125
- function uWe({ className: e }) {
163114
+ function lWe({ className: e }) {
163126
163115
  return /* @__PURE__ */ v("div", {
163127
163116
  className: j("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),
163128
163117
  children: [/* @__PURE__ */ _("div", {
@@ -163144,9 +163133,9 @@ function uWe({ className: e }) {
163144
163133
  }
163145
163134
  //#endregion
163146
163135
  //#region ../../react-app/src/components/reports/types.ts
163147
- var dWe = /* @__PURE__ */ A({}), fWe = /* @__PURE__ */ A({
163148
- default: () => wWe,
163149
- getReportData: () => wWe
163136
+ var uWe = /* @__PURE__ */ A({}), dWe = /* @__PURE__ */ A({
163137
+ default: () => CWe,
163138
+ getReportData: () => CWe
163150
163139
  }), T9 = [
163151
163140
  "USDT",
163152
163141
  "USDC",
@@ -163154,8 +163143,8 @@ var dWe = /* @__PURE__ */ A({}), fWe = /* @__PURE__ */ A({
163154
163143
  "ETH",
163155
163144
  "SOL",
163156
163145
  "XRP"
163157
- ], pWe = S9, mWe = x9;
163158
- function hWe(e) {
163146
+ ], fWe = S9, pWe = x9;
163147
+ function mWe(e) {
163159
163148
  let t = e >>> 0;
163160
163149
  return () => {
163161
163150
  t |= 0, t = t + 1831565813 | 0;
@@ -163163,15 +163152,15 @@ function hWe(e) {
163163
163152
  return e = e + Math.imul(e ^ e >>> 7, 61 | e) ^ e, ((e ^ e >>> 14) >>> 0) / 4294967296;
163164
163153
  };
163165
163154
  }
163166
- function gWe(e) {
163155
+ function hWe(e) {
163167
163156
  if (e.mode === "month") return e.month.getFullYear() * 100 + (e.month.getMonth() + 1);
163168
163157
  let t = 864e5, n = Math.floor(e.from.getTime() / t), r = Math.floor(e.to.getTime() / t);
163169
163158
  return n % 1e5 * 1e3 + r % 1e3;
163170
163159
  }
163171
- function _We(e) {
163160
+ function gWe(e) {
163172
163161
  return e.mode === "month" ? {
163173
163162
  start: ue(e.month),
163174
- end: ae(e.month)
163163
+ end: O(e.month)
163175
163164
  } : {
163176
163165
  start: e.from,
163177
163166
  end: e.to
@@ -163189,13 +163178,13 @@ function D9(e) {
163189
163178
  function O9(e) {
163190
163179
  return Math.round(e).toLocaleString("en-US");
163191
163180
  }
163192
- function vWe(e, t) {
163181
+ function _We(e, t) {
163193
163182
  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;
163194
163183
  return r.forEach((e, t) => {
163195
163184
  e > r[a] && (a = t);
163196
163185
  }), r[a] += i, r.map((e) => e / 100);
163197
163186
  }
163198
- function yWe(e, t) {
163187
+ function vWe(e, t) {
163199
163188
  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) => ({
163200
163189
  i: t,
163201
163190
  frac: e - Math.floor(e)
@@ -163203,7 +163192,7 @@ function yWe(e, t) {
163203
163192
  for (let e = 0; e < a && e < o.length; e++) s[o[e].i]++;
163204
163193
  return s;
163205
163194
  }
163206
- function bWe(e, t) {
163195
+ function yWe(e, t) {
163207
163196
  if (t <= 0) return e.map(() => 0);
163208
163197
  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) => ({
163209
163198
  i: t,
@@ -163213,7 +163202,7 @@ function bWe(e, t) {
163213
163202
  return o;
163214
163203
  }
163215
163204
  function k9(e, t, n, r) {
163216
- let i = bWe(n, t), a = T9.map((e, t) => ({
163205
+ let i = yWe(n, t), a = T9.map((e, t) => ({
163217
163206
  code: e,
163218
163207
  percent: i[t],
163219
163208
  amount: r(n[t])
@@ -163224,7 +163213,7 @@ function k9(e, t, n, r) {
163224
163213
  slices: a
163225
163214
  };
163226
163215
  }
163227
- function xWe(e) {
163216
+ function bWe(e) {
163228
163217
  return e === "transactions" ? [
163229
163218
  "Total Transactions",
163230
163219
  "Total Deposits",
@@ -163235,16 +163224,16 @@ function xWe(e) {
163235
163224
  "Total Withdrawals"
163236
163225
  ];
163237
163226
  }
163238
- function SWe(e) {
163227
+ function xWe(e) {
163239
163228
  let t = e === "transactions" ? "0" : "$0.00";
163240
- return xWe(e).map((e) => ({
163229
+ return bWe(e).map((e) => ({
163241
163230
  label: e,
163242
163231
  total: t,
163243
163232
  slices: []
163244
163233
  }));
163245
163234
  }
163246
- function CWe(e, t, n) {
163247
- let r = (e) => n() < e, i = O({
163235
+ function SWe(e, t, n) {
163236
+ let r = (e) => n() < e, i = D({
163248
163237
  start: e,
163249
163238
  end: t
163250
163239
  }), a = E9(600 + n() * 150);
@@ -163262,16 +163251,16 @@ function CWe(e, t, n) {
163262
163251
  return a = l, u;
163263
163252
  }).reverse();
163264
163253
  }
163265
- function wWe(e, t = "volume") {
163266
- let { start: n, end: r } = _We(e), i = se([n, pWe]), a = ce([r, mWe]), o = a >= i ? ie(a, i) + 1 : 0;
163254
+ function CWe(e, t = "volume") {
163255
+ let { start: n, end: r } = gWe(e), i = se([n, fWe]), a = ce([r, pWe]), o = a >= i ? ae(a, i) + 1 : 0;
163267
163256
  if (o <= 0) return {
163268
163257
  isEmpty: !0,
163269
- summaries: SWe(t),
163258
+ summaries: xWe(t),
163270
163259
  dailyBalances: []
163271
163260
  };
163272
- let s = CWe(i, a, hWe(gWe(e))), c = hWe(gWe(e) + (t === "transactions" ? 4242 : 0)), l = T9.map(() => c() + .1), u = T9.map(() => c() + .1), [d, f, p] = xWe(t);
163261
+ let s = SWe(i, a, mWe(hWe(e))), c = mWe(hWe(e) + (t === "transactions" ? 4242 : 0)), l = T9.map(() => c() + .1), u = T9.map(() => c() + .1), [d, f, p] = bWe(t);
163273
163262
  if (t === "transactions") {
163274
- let e = Math.max(1, Math.round(o * (6 + c() * 8))), t = Math.round(e * (.2 + c() * .3)), n = yWe(e, l), r = yWe(t, u), i = n.map((e, t) => e + r[t]);
163263
+ let e = Math.max(1, Math.round(o * (6 + c() * 8))), t = Math.round(e * (.2 + c() * .3)), n = vWe(e, l), r = vWe(t, u), i = n.map((e, t) => e + r[t]);
163275
163264
  return {
163276
163265
  isEmpty: !1,
163277
163266
  summaries: [
@@ -163282,7 +163271,7 @@ function wWe(e, t = "volume") {
163282
163271
  dailyBalances: s
163283
163272
  };
163284
163273
  }
163285
- let m = E9(o * (8 + c() * 6)), h = E9(m * (.15 + c() * .22)), g = vWe(m, l), _ = vWe(h, u), v = g.map((e, t) => E9(e + _[t]));
163274
+ let m = E9(o * (8 + c() * 6)), h = E9(m * (.15 + c() * .22)), g = _We(m, l), _ = _We(h, u), v = g.map((e, t) => E9(e + _[t]));
163286
163275
  return {
163287
163276
  isEmpty: !1,
163288
163277
  summaries: [
@@ -163295,7 +163284,7 @@ function wWe(e, t = "volume") {
163295
163284
  }
163296
163285
  //#endregion
163297
163286
  //#region ../../react-app/src/components/balances/WalletRowActions.tsx
163298
- var TWe = [
163287
+ var wWe = [
163299
163288
  {
163300
163289
  id: "withdraw",
163301
163290
  label: "Withdraw",
@@ -163315,7 +163304,7 @@ var TWe = [
163315
163304
  function A9({ variant: e = "menu", label: t, onAction: n }) {
163316
163305
  return e === "icons" ? /* @__PURE__ */ _("div", {
163317
163306
  className: "flex items-center justify-end gap-0.5",
163318
- children: TWe.map(({ id: e, label: r, icon: i }) => /* @__PURE__ */ v(g7, { children: [/* @__PURE__ */ _(_7, {
163307
+ children: wWe.map(({ id: e, label: r, icon: i }) => /* @__PURE__ */ v(g7, { children: [/* @__PURE__ */ _(_7, {
163319
163308
  asChild: !0,
163320
163309
  children: /* @__PURE__ */ _(M, {
163321
163310
  variant: "ghost",
@@ -163350,7 +163339,7 @@ function A9({ variant: e = "menu", label: t, onAction: n }) {
163350
163339
  }), /* @__PURE__ */ _(z5, {
163351
163340
  align: "end",
163352
163341
  className: "min-w-[11rem] p-1.5",
163353
- children: TWe.map(({ id: e, label: t, icon: r }) => /* @__PURE__ */ v(B5, {
163342
+ children: wWe.map(({ id: e, label: t, icon: r }) => /* @__PURE__ */ v(B5, {
163354
163343
  onSelect: () => n?.(e),
163355
163344
  className: "cursor-pointer gap-2.5 rounded-md px-2.5 py-2 text-sm",
163356
163345
  children: [/* @__PURE__ */ _(S, {
@@ -163366,7 +163355,7 @@ function A9({ variant: e = "menu", label: t, onAction: n }) {
163366
163355
  }
163367
163356
  //#endregion
163368
163357
  //#region ../../react-app/src/components/balances/WalletBalancesTable.tsx
163369
- var j9 = (e) => e && parseFloat(e.replace(/[^0-9.-]/g, "")) || 0, EWe = (e) => {
163358
+ var j9 = (e) => e && parseFloat(e.replace(/[^0-9.-]/g, "")) || 0, TWe = (e) => {
163370
163359
  let t = e.indexOf(".");
163371
163360
  return t < 0 ? 0 : e.length - t - 1;
163372
163361
  }, M9 = (e, t) => e.toLocaleString("en-US", {
@@ -163387,12 +163376,12 @@ function F9(e, t) {
163387
163376
  pendingFiat: r > 0 ? N9(n.reduce((e, t) => e + j9(t.pendingFiat), 0)) : void 0
163388
163377
  };
163389
163378
  }
163390
- var DWe = (e) => {
163379
+ var EWe = (e) => {
163391
163380
  let t = e?.note ? j9(e.note) : 0;
163392
163381
  return t > 0 && j9(e?.amountFiat) < t;
163393
163382
  };
163394
- function OWe(e) {
163395
- let t = EWe(e.wallets[0]?.amount ?? "0"), n = [], r = {};
163383
+ function DWe(e) {
163384
+ let t = TWe(e.wallets[0]?.amount ?? "0"), n = [], r = {};
163396
163385
  for (let t of e.wallets) r[t.network] || (r[t.network] = { networkName: t.networkName }, n.push(t.network)), P9(t) ? r[t.network].payout = t : r[t.network].main = t;
163397
163386
  let i = n.map((e) => {
163398
163387
  let n = r[e];
@@ -163402,7 +163391,7 @@ function OWe(e) {
163402
163391
  main: F9([n.main], t),
163403
163392
  payout: F9([n.payout], t),
163404
163393
  total: F9([n.main, n.payout], t),
163405
- belowMin: DWe(n.main) || DWe(n.payout)
163394
+ belowMin: EWe(n.main) || EWe(n.payout)
163406
163395
  };
163407
163396
  }), a = {
163408
163397
  amount: M9(0, t),
@@ -163443,7 +163432,7 @@ function I9({ money: e, code: t, strong: n = !1, large: r = !1, muted: i = !1, a
163443
163432
  })
163444
163433
  });
163445
163434
  }
163446
- function kWe({ balances: e, actionsVariant: t = "menu", className: r }) {
163435
+ function OWe({ balances: e, actionsVariant: t = "menu", className: r }) {
163447
163436
  let { setExtension: i, stickyTop: a } = D7(), s = u(null), [c, l] = d(/* @__PURE__ */ new Set()), f = (e) => l((t) => {
163448
163437
  let n = new Set(t);
163449
163438
  return n.has(e) ? n.delete(e) : n.add(e), n;
@@ -163463,7 +163452,7 @@ function kWe({ balances: e, actionsVariant: t = "menu", className: r }) {
163463
163452
  n.disconnect(), i(0);
163464
163453
  };
163465
163454
  }, [i, a]);
163466
- let p = e.map(OWe);
163455
+ let p = e.map(DWe);
163467
163456
  return /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("div", {
163468
163457
  ref: s,
163469
163458
  "aria-hidden": !0,
@@ -163646,23 +163635,23 @@ function kWe({ balances: e, actionsVariant: t = "menu", className: r }) {
163646
163635
  }
163647
163636
  //#endregion
163648
163637
  //#region ../../react-app/src/components/balances/WalletBalancesTableV2.tsx
163649
- var AWe = 6, L9 = [
163638
+ var kWe = 6, L9 = [
163650
163639
  "low",
163651
163640
  "medium",
163652
163641
  "high",
163653
163642
  "payout"
163654
- ], jWe = {
163643
+ ], AWe = {
163655
163644
  low: "Low Risk",
163656
163645
  medium: "Medium Risk",
163657
163646
  high: "High Risk",
163658
163647
  payout: "Payout"
163659
163648
  };
163660
- function MWe(e) {
163649
+ function jWe(e) {
163661
163650
  if (e.tier) return e.tier;
163662
163651
  let t = e.name.toLowerCase();
163663
163652
  return t.includes("payout") ? "payout" : t.includes("high") ? "high" : t.includes("medium") ? "medium" : "low";
163664
163653
  }
163665
- var R9 = (e) => e && parseFloat(e.replace(/[^0-9.-]/g, "")) || 0, NWe = (e) => {
163654
+ var R9 = (e) => e && parseFloat(e.replace(/[^0-9.-]/g, "")) || 0, MWe = (e) => {
163666
163655
  let t = e.indexOf(".");
163667
163656
  return t < 0 ? 0 : e.length - t - 1;
163668
163657
  }, z9 = (e, t) => e.toLocaleString("en-US", {
@@ -163683,11 +163672,11 @@ function V9(e, t) {
163683
163672
  pendingFiat: r > 0 ? B9(n.reduce((e, t) => e + R9(t.pendingFiat), 0)) : void 0
163684
163673
  };
163685
163674
  }
163686
- var PWe = (e) => {
163675
+ var NWe = (e) => {
163687
163676
  let t = e?.note ? R9(e.note) : 0;
163688
163677
  return t > 0 && R9(e?.amountFiat) < t;
163689
163678
  };
163690
- function FWe(e, t) {
163679
+ function PWe(e, t) {
163691
163680
  return {
163692
163681
  low: V9([e.low], t),
163693
163682
  medium: V9([e.medium], t),
@@ -163695,23 +163684,23 @@ function FWe(e, t) {
163695
163684
  payout: V9([e.payout], t)
163696
163685
  };
163697
163686
  }
163698
- function IWe(e) {
163699
- let t = Math.min(NWe(e.wallets[0]?.amount ?? "0"), AWe), n = [], r = {};
163687
+ function FWe(e) {
163688
+ let t = Math.min(MWe(e.wallets[0]?.amount ?? "0"), kWe), n = [], r = {};
163700
163689
  for (let t of e.wallets) r[t.network] || (r[t.network] = {
163701
163690
  networkName: t.networkName,
163702
163691
  tiers: {}
163703
- }, n.push(t.network)), r[t.network].tiers[MWe(t)] = t;
163692
+ }, n.push(t.network)), r[t.network].tiers[jWe(t)] = t;
163704
163693
  let i = n.map((e) => {
163705
163694
  let n = r[e];
163706
163695
  return {
163707
163696
  network: e,
163708
163697
  networkName: n.networkName,
163709
- tiers: FWe(n.tiers, t),
163698
+ tiers: PWe(n.tiers, t),
163710
163699
  total: V9(Object.values(n.tiers), t),
163711
- belowMin: L9.some((e) => PWe(n.tiers[e]))
163700
+ belowMin: L9.some((e) => NWe(n.tiers[e]))
163712
163701
  };
163713
163702
  }), a = {};
163714
- for (let t of e.wallets) (a[MWe(t)] ??= []).push(t);
163703
+ for (let t of e.wallets) (a[jWe(t)] ??= []).push(t);
163715
163704
  let o = {
163716
163705
  amount: z9(0, t),
163717
163706
  fiat: B9(0)
@@ -163755,9 +163744,9 @@ function H9({ money: e, code: t, strong: n = !1, large: r = !1, muted: i = !1, a
163755
163744
  })
163756
163745
  });
163757
163746
  }
163758
- function LWe({ balances: e, actionsVariant: t = "menu", tierLabels: r, className: i }) {
163747
+ function IWe({ balances: e, actionsVariant: t = "menu", tierLabels: r, className: i }) {
163759
163748
  let a = {
163760
- ...jWe,
163749
+ ...AWe,
163761
163750
  ...r
163762
163751
  }, { setExtension: s, stickyTop: c } = D7(), l = u(null), [f, p] = d(/* @__PURE__ */ new Set()), m = (e) => p((t) => {
163763
163752
  let n = new Set(t);
@@ -163778,7 +163767,7 @@ function LWe({ balances: e, actionsVariant: t = "menu", tierLabels: r, className
163778
163767
  n.disconnect(), s(0);
163779
163768
  };
163780
163769
  }, [s, c]);
163781
- let h = e.map(IWe);
163770
+ let h = e.map(FWe);
163782
163771
  return /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("div", {
163783
163772
  ref: l,
163784
163773
  "aria-hidden": !0,
@@ -163979,7 +163968,7 @@ function W9({ totalAssets: e, totalPending: t, activeWallets: n, totalWallets: r
163979
163968
  }
163980
163969
  //#endregion
163981
163970
  //#region ../../react-app/src/components/balances/data.ts
163982
- var RWe = /* @__PURE__ */ A({
163971
+ var LWe = /* @__PURE__ */ A({
163983
163972
  CURRENCY_BALANCES: () => G9,
163984
163973
  balancesTotals: () => K9
163985
163974
  }), G9 = [
@@ -164224,10 +164213,10 @@ function K9(e) {
164224
164213
  }
164225
164214
  //#endregion
164226
164215
  //#region ../../react-app/src/components/balances/types.ts
164227
- var zWe = /* @__PURE__ */ A({}), BWe = /* @__PURE__ */ A({
164228
- RECENT_TRANSACTIONS: () => VWe,
164229
- default: () => VWe
164230
- }), VWe = [
164216
+ var RWe = /* @__PURE__ */ A({}), zWe = /* @__PURE__ */ A({
164217
+ RECENT_TRANSACTIONS: () => BWe,
164218
+ default: () => BWe
164219
+ }), BWe = [
164231
164220
  {
164232
164221
  id: "rtx-1",
164233
164222
  label: "Manual Deposit",
@@ -164338,12 +164327,12 @@ var zWe = /* @__PURE__ */ A({}), BWe = /* @__PURE__ */ A({
164338
164327
  time: "9:02 AM",
164339
164328
  txHash: "0xc5a7b9d1e3f5c7a9b1e3f5c7a9b1d3e5f7c9a1b3d5e7f9c1a3b5d7e9f1c3a5b7d9e1"
164340
164329
  }
164341
- ], HWe = {
164330
+ ], VWe = {
164342
164331
  default: "Default",
164343
164332
  highest: "Highest balance",
164344
164333
  az: "A–Z"
164345
164334
  }, q9 = (e) => parseFloat(e.replace(/[^0-9.-]/g, "")) || 0;
164346
- function UWe({ checked: e, onChange: t, label: n }) {
164335
+ function HWe({ checked: e, onChange: t, label: n }) {
164347
164336
  return /* @__PURE__ */ v("button", {
164348
164337
  type: "button",
164349
164338
  role: "switch",
@@ -164359,7 +164348,7 @@ function UWe({ checked: e, onChange: t, label: n }) {
164359
164348
  })]
164360
164349
  });
164361
164350
  }
164362
- function WWe() {
164351
+ function UWe() {
164363
164352
  let [e, t] = d("default"), [n, r] = d(!1), i = l(() => K9(G9), []), a = l(() => {
164364
164353
  let t = G9.map((e) => ({ ...e }));
164365
164354
  return n && (t = t.map((e) => ({
@@ -164416,7 +164405,7 @@ function WWe() {
164416
164405
  className: "cursor-pointer shadow-xs",
164417
164406
  children: [
164418
164407
  "Sort: ",
164419
- HWe[e],
164408
+ VWe[e],
164420
164409
  /* @__PURE__ */ _(S, {
164421
164410
  icon: N,
164422
164411
  size: 16,
@@ -164445,7 +164434,7 @@ function WWe() {
164445
164434
  })
164446
164435
  ]
164447
164436
  })
164448
- })] }), /* @__PURE__ */ _(UWe, {
164437
+ })] }), /* @__PURE__ */ _(HWe, {
164449
164438
  checked: n,
164450
164439
  onChange: r,
164451
164440
  label: "Hide zero balances"
@@ -164455,14 +164444,14 @@ function WWe() {
164455
164444
  onDownload: (e) => console.log("reconciliation", e)
164456
164445
  })]
164457
164446
  }),
164458
- /* @__PURE__ */ _(kWe, { balances: a })
164447
+ /* @__PURE__ */ _(OWe, { balances: a })
164459
164448
  ]
164460
164449
  })]
164461
164450
  });
164462
164451
  }
164463
164452
  //#endregion
164464
164453
  //#region ../../react-app/src/components/balances/dataV2.ts
164465
- var GWe = [
164454
+ var WWe = [
164466
164455
  {
164467
164456
  code: "BTC",
164468
164457
  name: "Bitcoin",
@@ -164736,12 +164725,12 @@ var GWe = [
164736
164725
  }
164737
164726
  ]
164738
164727
  }
164739
- ], KWe = {
164728
+ ], GWe = {
164740
164729
  default: "Default",
164741
164730
  highest: "Highest balance",
164742
164731
  az: "A–Z"
164743
164732
  }, J9 = (e) => parseFloat(e.replace(/[^0-9.-]/g, "")) || 0;
164744
- function qWe({ checked: e, onChange: t, label: n }) {
164733
+ function KWe({ checked: e, onChange: t, label: n }) {
164745
164734
  return /* @__PURE__ */ v("button", {
164746
164735
  type: "button",
164747
164736
  role: "switch",
@@ -164757,9 +164746,9 @@ function qWe({ checked: e, onChange: t, label: n }) {
164757
164746
  })]
164758
164747
  });
164759
164748
  }
164760
- function JWe() {
164761
- let [e, t] = d("default"), [n, r] = d(!1), i = l(() => K9(GWe), []), a = l(() => {
164762
- let t = GWe.map((e) => ({ ...e }));
164749
+ function qWe() {
164750
+ let [e, t] = d("default"), [n, r] = d(!1), i = l(() => K9(WWe), []), a = l(() => {
164751
+ let t = WWe.map((e) => ({ ...e }));
164763
164752
  return n && (t = t.map((e) => ({
164764
164753
  ...e,
164765
164754
  wallets: e.wallets.filter((e) => J9(e.amount) > 0)
@@ -164814,7 +164803,7 @@ function JWe() {
164814
164803
  className: "cursor-pointer shadow-xs",
164815
164804
  children: [
164816
164805
  "Sort: ",
164817
- KWe[e],
164806
+ GWe[e],
164818
164807
  /* @__PURE__ */ _(S, {
164819
164808
  icon: N,
164820
164809
  size: 16,
@@ -164843,7 +164832,7 @@ function JWe() {
164843
164832
  })
164844
164833
  ]
164845
164834
  })
164846
- })] }), /* @__PURE__ */ _(qWe, {
164835
+ })] }), /* @__PURE__ */ _(KWe, {
164847
164836
  checked: n,
164848
164837
  onChange: r,
164849
164838
  label: "Hide zero balances"
@@ -164853,7 +164842,7 @@ function JWe() {
164853
164842
  onDownload: (e) => console.log("reconciliation", e)
164854
164843
  })]
164855
164844
  }),
164856
- /* @__PURE__ */ _(LWe, { balances: a })
164845
+ /* @__PURE__ */ _(IWe, { balances: a })
164857
164846
  ]
164858
164847
  })]
164859
164848
  });
@@ -165043,7 +165032,7 @@ function X9({ id: e, label: t, value: n, onChange: r, placeholder: i, hint: a, h
165043
165032
  }
165044
165033
  //#endregion
165045
165034
  //#region ../../react-app/src/components/fields/WalletField.tsx
165046
- function YWe(e) {
165035
+ function JWe(e) {
165047
165036
  return e.length > 18 ? `${e.slice(0, 10)}…${e.slice(-6)}` : e;
165048
165037
  }
165049
165038
  function Z9({ 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 }) {
@@ -165058,7 +165047,7 @@ function Z9({ id: e, label: t = "Wallet", placeholder: n = "Select a wallet", va
165058
165047
  } : {
165059
165048
  value: e.id,
165060
165049
  label: e.name,
165061
- sublabel: e.address ? YWe(e.address) : void 0,
165050
+ sublabel: e.address ? JWe(e.address) : void 0,
165062
165051
  leading: e.coin && e.network ? /* @__PURE__ */ _(N7, {
165063
165052
  code: e.coin,
165064
165053
  network: e.network,
@@ -165082,7 +165071,7 @@ function Z9({ id: e, label: t = "Wallet", placeholder: n = "Select a wallet", va
165082
165071
  }
165083
165072
  //#endregion
165084
165073
  //#region ../../react-app/src/components/table/Initiator.tsx
165085
- function XWe({ name: e }) {
165074
+ function YWe({ name: e }) {
165086
165075
  return /* @__PURE__ */ v("span", {
165087
165076
  className: "flex items-center gap-2",
165088
165077
  children: [/* @__PURE__ */ _("span", {
@@ -165096,7 +165085,7 @@ function XWe({ name: e }) {
165096
165085
  }
165097
165086
  //#endregion
165098
165087
  //#region ../../react-app/src/components/convert/ConvertHistoryTable.tsx
165099
- function ZWe({ amount: e, coin: t, tone: n }) {
165088
+ function XWe({ amount: e, coin: t, tone: n }) {
165100
165089
  return /* @__PURE__ */ v("span", {
165101
165090
  className: "flex items-center gap-2.5",
165102
165091
  children: [/* @__PURE__ */ _(G, {
@@ -165116,7 +165105,7 @@ function ZWe({ amount: e, coin: t, tone: n }) {
165116
165105
  })]
165117
165106
  });
165118
165107
  }
165119
- function QWe({ data: e, className: t }) {
165108
+ function ZWe({ data: e, className: t }) {
165120
165109
  let n = l(() => [
165121
165110
  {
165122
165111
  id: "status",
@@ -165129,7 +165118,7 @@ function QWe({ data: e, className: t }) {
165129
165118
  {
165130
165119
  id: "from",
165131
165120
  header: "From",
165132
- cell: (e) => /* @__PURE__ */ _(ZWe, {
165121
+ cell: (e) => /* @__PURE__ */ _(XWe, {
165133
165122
  amount: e.fromAmount,
165134
165123
  coin: e.fromCoin,
165135
165124
  tone: "out"
@@ -165138,7 +165127,7 @@ function QWe({ data: e, className: t }) {
165138
165127
  {
165139
165128
  id: "to",
165140
165129
  header: "To",
165141
- cell: (e) => /* @__PURE__ */ _(ZWe, {
165130
+ cell: (e) => /* @__PURE__ */ _(XWe, {
165142
165131
  amount: e.toAmount,
165143
165132
  coin: e.toCoin,
165144
165133
  tone: "in"
@@ -165163,7 +165152,7 @@ function QWe({ data: e, className: t }) {
165163
165152
  {
165164
165153
  id: "initiator",
165165
165154
  header: "Initiated by",
165166
- cell: (e) => /* @__PURE__ */ _(XWe, { name: e.initiator })
165155
+ cell: (e) => /* @__PURE__ */ _(YWe, { name: e.initiator })
165167
165156
  }
165168
165157
  ], []);
165169
165158
  return /* @__PURE__ */ _("div", {
@@ -165179,7 +165168,7 @@ function QWe({ data: e, className: t }) {
165179
165168
  }
165180
165169
  //#endregion
165181
165170
  //#region ../../react-app/src/components/convert/ConvertSummary.tsx
165182
- function $We({ caption: e, coin: t, amount: n, fiat: r, amountClassName: i }) {
165171
+ function QWe({ caption: e, coin: t, amount: n, fiat: r, amountClassName: i }) {
165183
165172
  let a = n != null && n !== "";
165184
165173
  return /* @__PURE__ */ v("div", {
165185
165174
  className: "flex flex-col gap-1.5",
@@ -165215,7 +165204,7 @@ function $We({ caption: e, coin: t, amount: n, fiat: r, amountClassName: i }) {
165215
165204
  })]
165216
165205
  });
165217
165206
  }
165218
- function eGe({ 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 }) {
165207
+ function $We({ 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 }) {
165219
165208
  return /* @__PURE__ */ v("div", {
165220
165209
  className: j("flex flex-col rounded-2xl border border-cb-line bg-slate-50 dark:bg-slate-900/40", g),
165221
165210
  children: [
@@ -165232,7 +165221,7 @@ function eGe({ fromCoin: e, toCoin: t, payAmount: n, payFiat: r, receiveAmount:
165232
165221
  /* @__PURE__ */ v("div", {
165233
165222
  className: "px-5 pb-3",
165234
165223
  children: [
165235
- /* @__PURE__ */ _($We, {
165224
+ /* @__PURE__ */ _(QWe, {
165236
165225
  caption: "You pay",
165237
165226
  coin: e,
165238
165227
  amount: n,
@@ -165249,7 +165238,7 @@ function eGe({ fromCoin: e, toCoin: t, payAmount: n, payFiat: r, receiveAmount:
165249
165238
  })
165250
165239
  })]
165251
165240
  }),
165252
- /* @__PURE__ */ _($We, {
165241
+ /* @__PURE__ */ _(QWe, {
165253
165242
  caption: "You receive",
165254
165243
  coin: t,
165255
165244
  amount: i,
@@ -165268,7 +165257,7 @@ function eGe({ fromCoin: e, toCoin: t, payAmount: n, payFiat: r, receiveAmount:
165268
165257
  children: [/* @__PURE__ */ _("span", {
165269
165258
  className: j("inline-block rounded px-1.5 font-medium tabular-nums text-foreground", s != null && "animate-rate-flash"),
165270
165259
  children: o
165271
- }, l), s != null && /* @__PURE__ */ _(tGe, {
165260
+ }, l), s != null && /* @__PURE__ */ _(eGe, {
165272
165261
  seconds: s,
165273
165262
  total: c
165274
165263
  })]
@@ -165332,7 +165321,7 @@ function eGe({ fromCoin: e, toCoin: t, payAmount: n, payFiat: r, receiveAmount:
165332
165321
  ]
165333
165322
  });
165334
165323
  }
165335
- function tGe({ seconds: e, total: t }) {
165324
+ function eGe({ seconds: e, total: t }) {
165336
165325
  let n = 2 * Math.PI * 8, r = t > 0 ? Math.max(0, Math.min(1, e / t)) : 0;
165337
165326
  return /* @__PURE__ */ v("div", {
165338
165327
  className: "flex shrink-0 items-center gap-2 rounded-full border border-cb-line bg-cb-card px-2.5 py-1",
@@ -165372,18 +165361,18 @@ function tGe({ seconds: e, total: t }) {
165372
165361
  //#endregion
165373
165362
  //#region ../../react-app/src/components/convert/ConvertPanel.tsx
165374
165363
  var Q9 = 30;
165375
- function nGe({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
165376
- let [r, i] = d(null), [a, s] = d(""), [c, l] = d(""), [u, f] = d(""), [p, m] = d(""), [h, y] = d(""), [b, x] = d(!1), [C, w] = d(""), [T, E] = d(!1), [ee, te] = d(1), [D, ne] = d(Q9), [re, ie] = d(0), O = s9.find((e) => e.id === r) ?? null, ae = O != null && a ? l9.find((e) => e.name === O.name && e.coin === a && e.network === c) ?? l9.find((e) => e.name === O.name && e.coin === a) ?? null : null, oe = (u ? l9.find((e) => e.coin === u && e.network === p) ?? l9.find((e) => e.coin === u) : null) ?? null, k = a ? c9.find((e) => e.code === a) ?? null : null, se = c9.find((e) => e.code === u) ?? null, ce = d9(h), le = ae ? d9(ae.amount) : Infinity, ue = ae != null && ce > le, de = h.trim() !== "" && ce > 0, fe = a != null && se != null && u !== a, pe = (k && se ? k.price / se.price : 0) * ee, me = k ? ce * k.price : 0, he = me * o9, ge = ce * pe * (1 - o9), A = O != null && fe && c !== "" && p !== "" && de && !ue, _e = de ? p9(ce) : null, ve = de && fe ? p9(ge) : null, be = a && se ? `1 ${a} = ${p9(pe)} ${u}` : null, xe = de ? `${f9(he)} · ${(o9 * 100).toFixed(1)}%` : null;
165364
+ function tGe({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
165365
+ let [r, i] = d(null), [a, s] = d(""), [c, l] = d(""), [u, f] = d(""), [p, m] = d(""), [h, y] = d(""), [b, x] = d(!1), [C, w] = d(""), [T, ee] = d(!1), [te, ne] = d(1), [E, re] = d(Q9), [ie, ae] = d(0), D = s9.find((e) => e.id === r) ?? null, O = D != null && a ? l9.find((e) => e.name === D.name && e.coin === a && e.network === c) ?? l9.find((e) => e.name === D.name && e.coin === a) ?? null : null, oe = (u ? l9.find((e) => e.coin === u && e.network === p) ?? l9.find((e) => e.coin === u) : null) ?? null, k = a ? c9.find((e) => e.code === a) ?? null : null, se = c9.find((e) => e.code === u) ?? null, ce = d9(h), le = O ? d9(O.amount) : Infinity, ue = O != null && ce > le, de = h.trim() !== "" && ce > 0, fe = a != null && se != null && u !== a, pe = (k && se ? k.price / se.price : 0) * te, me = k ? ce * k.price : 0, he = me * o9, ge = ce * pe * (1 - o9), A = D != null && fe && c !== "" && p !== "" && de && !ue, _e = de ? p9(ce) : null, ve = de && fe ? p9(ge) : null, be = a && se ? `1 ${a} = ${p9(pe)} ${u}` : null, xe = de ? `${f9(he)} · ${(o9 * 100).toFixed(1)}%` : null;
165377
165366
  o(() => {
165378
165367
  if (!A) {
165379
- ne(Q9);
165368
+ re(Q9);
165380
165369
  return;
165381
165370
  }
165382
165371
  let e = Date.now() + Q9 * 1e3;
165383
- ne(Q9), te(1 + (Math.random() - .5) * .012), ie((e) => e + 1);
165372
+ re(Q9), ne(1 + (Math.random() - .5) * .012), ae((e) => e + 1);
165384
165373
  let t = setInterval(() => {
165385
165374
  let t = Math.max(0, Math.ceil((e - Date.now()) / 1e3));
165386
- ne(t), t === 0 && (te(1 + (Math.random() - .5) * .012), ie((e) => e + 1), e = Date.now() + Q9 * 1e3);
165375
+ re(t), t === 0 && (ne(1 + (Math.random() - .5) * .012), ae((e) => e + 1), e = Date.now() + Q9 * 1e3);
165387
165376
  }, 250);
165388
165377
  return () => clearInterval(t);
165389
165378
  }, [
@@ -165395,20 +165384,20 @@ function nGe({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
165395
165384
  let t = c9.find((t) => t.code === e)?.networks ?? [];
165396
165385
  return t.length === 1 ? t[0] : "";
165397
165386
  }, Ce = (e) => {
165398
- i(e), E(!1);
165387
+ i(e), ee(!1);
165399
165388
  }, we = (e) => {
165400
- s(e), l(Se(e)), e === u && (f(""), m("")), E(!1);
165389
+ s(e), l(Se(e)), e === u && (f(""), m("")), ee(!1);
165401
165390
  }, Te = (e) => {
165402
- f(e), m(Se(e)), e === a && (s(""), l("")), E(!1);
165391
+ f(e), m(Se(e)), e === a && (s(""), l("")), ee(!1);
165403
165392
  }, Ee = () => {
165404
- s(u), f(a), l(p), m(c), E(!1);
165393
+ s(u), f(a), l(p), m(c), ee(!1);
165405
165394
  }, De = () => {
165406
- ae && y(ae.amount);
165395
+ O && y(O.amount);
165407
165396
  }, Oe = (e) => {
165408
165397
  let t = e.replace(/[^0-9.,]/g, ""), n = t.indexOf(".");
165409
165398
  n !== -1 && (t = t.slice(0, n + 1) + t.slice(n + 1).replace(/\./g, "")), y(t);
165410
165399
  }, ke = () => {
165411
- if (!O || !a || !se || !fe) return;
165400
+ if (!D || !a || !se || !fe) return;
165412
165401
  let n = /* @__PURE__ */ new Date(), r = {
165413
165402
  id: `cv-${n.getTime()}`,
165414
165403
  date: n.toLocaleDateString("en-US", {
@@ -165421,7 +165410,7 @@ function nGe({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
165421
165410
  minute: "2-digit"
165422
165411
  }),
165423
165412
  initiator: e,
165424
- wallet: O.name,
165413
+ wallet: D.name,
165425
165414
  fromCoin: a,
165426
165415
  toCoin: u,
165427
165416
  fromAmount: `-${p9(ce)}`,
@@ -165430,13 +165419,13 @@ function nGe({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
165430
165419
  fiatValue: f9(me),
165431
165420
  status: "PROCESSING"
165432
165421
  };
165433
- t?.(r), E(!0);
165422
+ t?.(r), ee(!0);
165434
165423
  }, Ae = (e) => {
165435
165424
  if (e) {
165436
165425
  x(!0);
165437
165426
  return;
165438
165427
  }
165439
- x(!1), w(""), T && (E(!1), y(""));
165428
+ x(!1), w(""), T && (ee(!1), y(""));
165440
165429
  }, je = (e) => ({
165441
165430
  value: e,
165442
165431
  label: e,
@@ -165449,7 +165438,7 @@ function nGe({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
165449
165438
  }), Me = (e) => ({
165450
165439
  value: e,
165451
165440
  label: e,
165452
- sublabel: qHe[e] ?? e,
165441
+ sublabel: KHe[e] ?? e,
165453
165442
  leading: /* @__PURE__ */ _(G, {
165454
165443
  code: e,
165455
165444
  src: J(e),
@@ -165486,7 +165475,7 @@ function nGe({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
165486
165475
  value: a,
165487
165476
  options: Ne,
165488
165477
  onChange: we,
165489
- disabled: !O
165478
+ disabled: !D
165490
165479
  }), /* @__PURE__ */ _($, {
165491
165480
  id: "cv-from-network",
165492
165481
  label: "From network",
@@ -165494,7 +165483,7 @@ function nGe({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
165494
165483
  value: c,
165495
165484
  options: Pe,
165496
165485
  onChange: l,
165497
- disabled: !O || !a
165486
+ disabled: !D || !a
165498
165487
  })]
165499
165488
  }),
165500
165489
  /* @__PURE__ */ _(Y9, {
@@ -165502,17 +165491,17 @@ function nGe({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
165502
165491
  value: h,
165503
165492
  onChange: Oe,
165504
165493
  suffix: a,
165505
- disabled: !O || !a,
165494
+ disabled: !D || !a,
165506
165495
  invalid: ue,
165507
165496
  onMax: De,
165508
- maxDisabled: !ae,
165509
- hint: O ? a ? ae ? /* @__PURE__ */ v(g, { children: [
165497
+ maxDisabled: !O,
165498
+ hint: D ? a ? O ? /* @__PURE__ */ v(g, { children: [
165510
165499
  "Available:",
165511
165500
  " ",
165512
165501
  /* @__PURE__ */ v("span", {
165513
165502
  className: "font-medium text-foreground",
165514
165503
  children: [
165515
- ae.amount,
165504
+ O.amount,
165516
165505
  " ",
165517
165506
  a
165518
165507
  ]
@@ -165531,7 +165520,7 @@ function nGe({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
165531
165520
  children: [/* @__PURE__ */ _("div", { className: "border-t border-cb-line" }), /* @__PURE__ */ _("button", {
165532
165521
  type: "button",
165533
165522
  onClick: Ee,
165534
- disabled: !O,
165523
+ disabled: !D,
165535
165524
  "aria-label": "Swap the From and To currency and network",
165536
165525
  title: "Swap currencies & networks",
165537
165526
  className: j("absolute left-1/2 top-1/2 flex size-8 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full border border-cb-line bg-cb-card text-muted-foreground transition-colors", "hover:border-slate-300 hover:text-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-none", "disabled:pointer-events-none"),
@@ -165551,7 +165540,7 @@ function nGe({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
165551
165540
  value: u,
165552
165541
  options: Fe,
165553
165542
  onChange: Te,
165554
- disabled: !O
165543
+ disabled: !D
165555
165544
  }), /* @__PURE__ */ _($, {
165556
165545
  id: "cv-to-network",
165557
165546
  label: "To network",
@@ -165559,7 +165548,7 @@ function nGe({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
165559
165548
  value: p,
165560
165549
  options: Ie,
165561
165550
  onChange: m,
165562
- disabled: !O || !u
165551
+ disabled: !D || !u
165563
165552
  })]
165564
165553
  }),
165565
165554
  /* @__PURE__ */ v("div", {
@@ -165584,7 +165573,7 @@ function nGe({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
165584
165573
  ]
165585
165574
  })
165586
165575
  }),
165587
- /* @__PURE__ */ _(eGe, {
165576
+ /* @__PURE__ */ _($We, {
165588
165577
  fromCoin: a,
165589
165578
  toCoin: fe ? u : null,
165590
165579
  payAmount: _e,
@@ -165592,12 +165581,12 @@ function nGe({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
165592
165581
  receiveAmount: ve,
165593
165582
  receiveFiat: de && fe ? f9(me * (1 - o9)) : null,
165594
165583
  rateLabel: be,
165595
- rateCountdown: A ? D : null,
165584
+ rateCountdown: A ? E : null,
165596
165585
  rateTtl: Q9,
165597
- rateVersion: re,
165586
+ rateVersion: ie,
165598
165587
  feeLabel: xe,
165599
- fromWalletName: O?.name ?? null,
165600
- fromWalletAddress: ae?.address ?? null,
165588
+ fromWalletName: D?.name ?? null,
165589
+ fromWalletAddress: O?.address ?? null,
165601
165590
  toWalletName: fe ? oe?.name ?? null : null,
165602
165591
  toWalletAddress: fe ? oe?.address ?? null : null,
165603
165592
  footer: /* @__PURE__ */ _(M, {
@@ -165690,7 +165679,7 @@ function nGe({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
165690
165679
  htmlFor: "cv-code",
165691
165680
  className: "text-[13px] font-medium text-muted-foreground",
165692
165681
  children: "Authentication code"
165693
- }), /* @__PURE__ */ _(rGe, {
165682
+ }), /* @__PURE__ */ _(nGe, {
165694
165683
  id: "cv-code",
165695
165684
  value: C,
165696
165685
  onChange: w
@@ -165718,7 +165707,7 @@ function nGe({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
165718
165707
  ]
165719
165708
  });
165720
165709
  }
165721
- function rGe({ id: e, value: t, onChange: n, length: r = 6 }) {
165710
+ function nGe({ id: e, value: t, onChange: n, length: r = 6 }) {
165722
165711
  let [i, a] = d(!1), o = Array.from({ length: r }, (e, n) => t[n] ?? ""), s = Math.min(t.length, r - 1);
165723
165712
  return /* @__PURE__ */ v("div", {
165724
165713
  className: "relative",
@@ -165748,10 +165737,10 @@ function rGe({ id: e, value: t, onChange: n, length: r = 6 }) {
165748
165737
  }
165749
165738
  //#endregion
165750
165739
  //#region ../../react-app/src/components/convert/types.ts
165751
- var iGe = /* @__PURE__ */ A({});
165740
+ var rGe = /* @__PURE__ */ A({});
165752
165741
  //#endregion
165753
165742
  //#region ../../react-app/src/components/deposit/DepositHistoryTable.tsx
165754
- function aGe({ data: e, className: t }) {
165743
+ function iGe({ data: e, className: t }) {
165755
165744
  let n = l(() => [
165756
165745
  {
165757
165746
  id: "status",
@@ -165845,7 +165834,7 @@ function aGe({ data: e, className: t }) {
165845
165834
  //#endregion
165846
165835
  //#region ../../react-app/src/components/deposit/QrCode.tsx
165847
165836
  var $9 = 3;
165848
- function oGe({ value: e, className: t }) {
165837
+ function aGe({ value: e, className: t }) {
165849
165838
  let { size: n, darks: r } = l(() => {
165850
165839
  let t = he.create(e || " ", { errorCorrectionLevel: "M" }), n = t.modules.size, r = t.modules.data, i = [];
165851
165840
  for (let e = 0; e < n; e++) for (let t = 0; t < n; t++) r[e * n + t] && i.push([t, e]);
@@ -165878,7 +165867,7 @@ function oGe({ value: e, className: t }) {
165878
165867
  }
165879
165868
  //#endregion
165880
165869
  //#region ../../react-app/src/components/deposit/DepositReceiveCard.tsx
165881
- function sGe({ wallet: e, coin: t, network: n, networkName: r, className: i }) {
165870
+ function oGe({ wallet: e, coin: t, network: n, networkName: r, className: i }) {
165882
165871
  let [a, o] = d(!1);
165883
165872
  return /* @__PURE__ */ v("div", {
165884
165873
  className: j("flex flex-col rounded-2xl border border-cb-line bg-slate-50 dark:bg-slate-900/40", i),
@@ -165929,7 +165918,7 @@ function sGe({ wallet: e, coin: t, network: n, networkName: r, className: i }) {
165929
165918
  })]
165930
165919
  }), /* @__PURE__ */ _("div", {
165931
165920
  className: "w-26 shrink-0 rounded-lg border border-cb-line bg-white p-1.5",
165932
- children: /* @__PURE__ */ _(oGe, { value: e.address })
165921
+ children: /* @__PURE__ */ _(aGe, { value: e.address })
165933
165922
  })]
165934
165923
  }),
165935
165924
  /* @__PURE__ */ v("div", {
@@ -165988,8 +165977,8 @@ function sGe({ wallet: e, coin: t, network: n, networkName: r, className: i }) {
165988
165977
  }
165989
165978
  //#endregion
165990
165979
  //#region ../../react-app/src/components/deposit/DepositPanel.tsx
165991
- function cGe({ className: e }) {
165992
- let [t, n] = d("USDT"), [r, i] = d("ETH"), [a, o] = d(null), s = ($7.find((e) => e.code === t) ?? $7[0]).networks, c = l(() => BHe.filter((e) => e.coin === t && e.network === r), [t, r]), u = c.find((e) => e.id === a) ?? null, f = (e) => {
165980
+ function sGe({ className: e }) {
165981
+ let [t, n] = d("USDT"), [r, i] = d("ETH"), [a, o] = d(null), s = ($7.find((e) => e.code === t) ?? $7[0]).networks, c = l(() => zHe.filter((e) => e.coin === t && e.network === r), [t, r]), u = c.find((e) => e.id === a) ?? null, f = (e) => {
165993
165982
  n(e);
165994
165983
  let t = $7.find((t) => t.code === e);
165995
165984
  i(t?.networks[0] ?? ""), o(null);
@@ -166077,7 +166066,7 @@ function cGe({ className: e }) {
166077
166066
  })
166078
166067
  ]
166079
166068
  })
166080
- }), /* @__PURE__ */ _(sGe, {
166069
+ }), /* @__PURE__ */ _(oGe, {
166081
166070
  wallet: u,
166082
166071
  coin: t,
166083
166072
  network: r,
@@ -166087,10 +166076,10 @@ function cGe({ className: e }) {
166087
166076
  }
166088
166077
  //#endregion
166089
166078
  //#region ../../react-app/src/components/deposit/types.ts
166090
- var lGe = /* @__PURE__ */ A({});
166079
+ var cGe = /* @__PURE__ */ A({});
166091
166080
  //#endregion
166092
166081
  //#region ../../react-app/src/components/withdraw/WithdrawHistoryTable.tsx
166093
- function uGe({ data: e, className: t }) {
166082
+ function lGe({ data: e, className: t }) {
166094
166083
  let n = l(() => [
166095
166084
  {
166096
166085
  id: "status",
@@ -166172,7 +166161,7 @@ function uGe({ data: e, className: t }) {
166172
166161
  {
166173
166162
  id: "initiator",
166174
166163
  header: "Initiated by",
166175
- cell: (e) => /* @__PURE__ */ _(XWe, { name: e.initiator })
166164
+ cell: (e) => /* @__PURE__ */ _(YWe, { name: e.initiator })
166176
166165
  }
166177
166166
  ], []);
166178
166167
  return /* @__PURE__ */ _("div", {
@@ -166188,7 +166177,7 @@ function uGe({ data: e, className: t }) {
166188
166177
  }
166189
166178
  //#endregion
166190
166179
  //#region ../../react-app/src/components/withdraw/WithdrawSummary.tsx
166191
- function dGe({ coin: e, network: t, networkName: n, amount: r, amountFiat: i, from: a, to: o, footer: s, className: c }) {
166180
+ function uGe({ coin: e, network: t, networkName: n, amount: r, amountFiat: i, from: a, to: o, footer: s, className: c }) {
166192
166181
  let l = r != null && r !== "" && r !== "0";
166193
166182
  return /* @__PURE__ */ v("div", {
166194
166183
  className: j("flex flex-col rounded-2xl border border-cb-line bg-slate-50 dark:bg-slate-900/40", c),
@@ -166242,11 +166231,11 @@ function dGe({ coin: e, network: t, networkName: n, amount: r, amountFiat: i, fr
166242
166231
  children: "—"
166243
166232
  })
166244
166233
  }),
166245
- /* @__PURE__ */ _(fGe, {
166234
+ /* @__PURE__ */ _(dGe, {
166246
166235
  caption: "From",
166247
166236
  endpoint: a
166248
166237
  }),
166249
- /* @__PURE__ */ _(fGe, {
166238
+ /* @__PURE__ */ _(dGe, {
166250
166239
  caption: "To",
166251
166240
  endpoint: o
166252
166241
  })
@@ -166259,7 +166248,7 @@ function dGe({ coin: e, network: t, networkName: n, amount: r, amountFiat: i, fr
166259
166248
  ]
166260
166249
  });
166261
166250
  }
166262
- function fGe({ caption: e, endpoint: t }) {
166251
+ function dGe({ caption: e, endpoint: t }) {
166263
166252
  return /* @__PURE__ */ _(Z, {
166264
166253
  label: e,
166265
166254
  children: t ? t.label ? /* @__PURE__ */ v("div", {
@@ -166286,26 +166275,26 @@ function fGe({ caption: e, endpoint: t }) {
166286
166275
  }
166287
166276
  //#endregion
166288
166277
  //#region ../../react-app/src/components/withdraw/WithdrawPanel.tsx
166289
- function pGe(e) {
166278
+ function fGe(e) {
166290
166279
  return e.length > 18 ? `${e.slice(0, 10)}…${e.slice(-6)}` : e;
166291
166280
  }
166292
- function mGe({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
166293
- let [r, i] = d("USDT"), [a, o] = d("ETH"), [s, c] = d(null), [u, f] = d(""), [p, m] = d(""), [h, y] = d(""), [b, x] = d(!1), [C, w] = d(""), [T, E] = d(!1), ee = (n9.find((e) => e.code === r) ?? n9[0]).networks, te = l(() => WHe.filter((e) => e.coin === r && e.network === a), [r, a]), D = te.find((e) => e.id === s) ?? null, ne = p.trim() !== "", re = r === "TON", ie = !re || u.trim() !== "", O = i9(h), ae = D ? i9(D.amount) : 0, oe = D != null && O > ae, k = h.trim() !== "" && O > 0, se = D && k ? a9(O * D.fiatRate) : null, ce = k ? O.toLocaleString("en-US", {
166281
+ function pGe({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
166282
+ let [r, i] = d("USDT"), [a, o] = d("ETH"), [s, c] = d(null), [u, f] = d(""), [p, m] = d(""), [h, y] = d(""), [b, x] = d(!1), [C, w] = d(""), [T, ee] = d(!1), te = (n9.find((e) => e.code === r) ?? n9[0]).networks, ne = l(() => UHe.filter((e) => e.coin === r && e.network === a), [r, a]), E = ne.find((e) => e.id === s) ?? null, re = p.trim() !== "", ie = r === "TON", ae = !ie || u.trim() !== "", D = i9(h), O = E ? i9(E.amount) : 0, oe = E != null && D > O, k = h.trim() !== "" && D > 0, se = E && k ? a9(D * E.fiatRate) : null, ce = k ? D.toLocaleString("en-US", {
166294
166283
  minimumFractionDigits: 2,
166295
166284
  maximumFractionDigits: 8
166296
- }) : null, le = D != null && ne && k && !oe && ie, ue = (e) => {
166285
+ }) : null, le = E != null && re && k && !oe && ae, ue = (e) => {
166297
166286
  i(e);
166298
166287
  let t = n9.find((t) => t.code === e);
166299
166288
  o(t?.networks[0] ?? ""), c(null), f("");
166300
166289
  }, de = (e) => {
166301
166290
  o(e), c(null);
166302
166291
  }, fe = () => {
166303
- D && y(D.amount);
166292
+ E && y(E.amount);
166304
166293
  }, pe = (e) => {
166305
166294
  let t = e.replace(/[^0-9.,]/g, ""), n = t.indexOf(".");
166306
166295
  n !== -1 && (t = t.slice(0, n + 1) + t.slice(n + 1).replace(/\./g, "")), y(t);
166307
166296
  }, me = () => {
166308
- if (!D || !ne) return;
166297
+ if (!E || !re) return;
166309
166298
  let n = /* @__PURE__ */ new Date(), i = {
166310
166299
  id: `wd-${n.getTime()}`,
166311
166300
  date: n.toLocaleDateString("en-US", {
@@ -166318,23 +166307,23 @@ function mGe({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
166318
166307
  minute: "2-digit"
166319
166308
  }),
166320
166309
  initiator: e,
166321
- fromWallet: D.name,
166322
- fromAddress: D.address,
166310
+ fromWallet: E.name,
166311
+ fromAddress: E.address,
166323
166312
  toLabel: "External address",
166324
166313
  toAddress: p.trim(),
166325
166314
  coin: r,
166326
166315
  network: a,
166327
166316
  amount: `-${h}`,
166328
- amountFiat: `-${a9(O * D.fiatRate)}`,
166317
+ amountFiat: `-${a9(D * E.fiatRate)}`,
166329
166318
  status: "PROCESSING"
166330
166319
  };
166331
- t?.(i), E(!0);
166320
+ t?.(i), ee(!0);
166332
166321
  }, he = (e) => {
166333
166322
  if (e) {
166334
166323
  x(!0);
166335
166324
  return;
166336
166325
  }
166337
- x(!1), w(""), T && (E(!1), y(""), m(""), f(""));
166326
+ x(!1), w(""), T && (ee(!1), y(""), m(""), f(""));
166338
166327
  }, ge = n9.map((e) => ({
166339
166328
  value: e.code,
166340
166329
  label: e.code,
@@ -166344,7 +166333,7 @@ function mGe({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
166344
166333
  src: J(e.code),
166345
166334
  className: "size-6"
166346
166335
  })
166347
- })), A = ee.map((e) => ({
166336
+ })), A = te.map((e) => ({
166348
166337
  value: e,
166349
166338
  label: e,
166350
166339
  sublabel: t9[e]?.name ?? e,
@@ -166353,7 +166342,7 @@ function mGe({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
166353
166342
  src: J(e),
166354
166343
  className: "size-6"
166355
166344
  })
166356
- })), _e = te.map((e) => ({
166345
+ })), _e = ne.map((e) => ({
166357
166346
  id: e.id,
166358
166347
  name: e.name,
166359
166348
  address: e.address,
@@ -166386,7 +166375,7 @@ function mGe({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
166386
166375
  onChange: de
166387
166376
  })]
166388
166377
  }),
166389
- re ? /* @__PURE__ */ v("div", {
166378
+ ie ? /* @__PURE__ */ v("div", {
166390
166379
  className: "grid grid-cols-1 gap-3 sm:grid-cols-2",
166391
166380
  children: [/* @__PURE__ */ _(Z9, {
166392
166381
  id: "wd-source",
@@ -166433,17 +166422,17 @@ function mGe({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
166433
166422
  value: h,
166434
166423
  onChange: pe,
166435
166424
  suffix: r,
166436
- disabled: !D,
166425
+ disabled: !E,
166437
166426
  invalid: oe,
166438
166427
  onMax: fe,
166439
- maxDisabled: !D,
166440
- hint: D ? /* @__PURE__ */ v(g, { children: [
166428
+ maxDisabled: !E,
166429
+ hint: E ? /* @__PURE__ */ v(g, { children: [
166441
166430
  "Available:",
166442
166431
  " ",
166443
166432
  /* @__PURE__ */ v("span", {
166444
166433
  className: "font-medium text-foreground",
166445
166434
  children: [
166446
- D.amount,
166435
+ E.amount,
166447
166436
  " ",
166448
166437
  r
166449
166438
  ]
@@ -166460,18 +166449,18 @@ function mGe({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
166460
166449
  ]
166461
166450
  })
166462
166451
  }),
166463
- /* @__PURE__ */ _(dGe, {
166452
+ /* @__PURE__ */ _(uGe, {
166464
166453
  className: "h-full",
166465
166454
  coin: r,
166466
166455
  network: a,
166467
166456
  networkName: t9[a]?.name,
166468
166457
  amount: ce,
166469
166458
  amountFiat: se,
166470
- from: D ? {
166471
- label: D.name,
166472
- address: D.address
166459
+ from: E ? {
166460
+ label: E.name,
166461
+ address: E.address
166473
166462
  } : null,
166474
- to: ne ? { address: p.trim() } : null,
166463
+ to: re ? { address: p.trim() } : null,
166475
166464
  footer: /* @__PURE__ */ _(M, {
166476
166465
  type: "button",
166477
166466
  size: "lg",
@@ -166535,7 +166524,7 @@ function mGe({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
166535
166524
  " ",
166536
166525
  /* @__PURE__ */ _("span", {
166537
166526
  className: "font-mono text-foreground",
166538
- children: ne ? pGe(p.trim()) : ""
166527
+ children: re ? fGe(p.trim()) : ""
166539
166528
  })
166540
166529
  ]
166541
166530
  }), /* @__PURE__ */ v("div", {
@@ -166573,14 +166562,14 @@ function mGe({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
166573
166562
  }
166574
166563
  //#endregion
166575
166564
  //#region ../../react-app/src/components/withdraw/types.ts
166576
- var hGe = /* @__PURE__ */ A({}), gGe = "Ipche", _Ge = "gateUnlocked";
166577
- function vGe({ children: e }) {
166578
- let [t, n] = d(() => localStorage.getItem(_Ge) === "true"), [r, i] = d(""), [a, o] = d(!1);
166565
+ var mGe = /* @__PURE__ */ A({}), hGe = "Ipche", gGe = "gateUnlocked";
166566
+ function _Ge({ children: e }) {
166567
+ let [t, n] = d(() => localStorage.getItem(gGe) === "true"), [r, i] = d(""), [a, o] = d(!1);
166579
166568
  return t ? /* @__PURE__ */ _(g, { children: e }) : /* @__PURE__ */ _("div", {
166580
166569
  className: "flex h-svh items-center justify-center bg-background p-4",
166581
166570
  children: /* @__PURE__ */ v("form", {
166582
166571
  onSubmit: (e) => {
166583
- e.preventDefault(), r === gGe ? (localStorage.setItem(_Ge, "true"), n(!0)) : o(!0);
166572
+ e.preventDefault(), r === hGe ? (localStorage.setItem(gGe, "true"), n(!0)) : o(!0);
166584
166573
  },
166585
166574
  className: "w-full max-w-xs space-y-4 rounded-xl border border-border bg-card p-6 shadow-sm",
166586
166575
  children: [/* @__PURE__ */ v("div", {
@@ -166614,4 +166603,4 @@ function vGe({ children: e }) {
166614
166603
  });
166615
166604
  }
166616
166605
  //#endregion
166617
- export { ye as ActionFooter, EUe as ActivityDetailPanel, RHe as ActivityFilterPanel, jHe as ActivityTable, Y9 as AmountField, sVe as AppHeaderV1, fVe as AppHeaderV2, X as AssetValue, FBe as Avatar, y7 as Badge, y7 as NavBadge, WWe as BalancesPage, JWe as BalancesPageV2, W9 as BalancesSummary, GVe as BlockchainDetails, M as Button, A5 as Calendar, j5 as Checkbox, J5 as CodeInput, G as CoinLogo, gVe as ColumnsMenu, pBe as ConfirmDialog, QWe as ConvertHistoryTable, nGe as ConvertPanel, $ as ConvertPickerField, $ as DepositPickerField, $ as PickerField, $ as WithdrawPickerField, eGe as ConvertSummary, j7 as CopyButton, K as CopyableId, cBe as CoreFreeIcons, N7 as CurrencyNetwork, jWe as DEFAULT_TIER_LABELS, RUe as DailyBalancesTable, P7 as DataTable, aGe as DepositHistoryTable, cGe as DepositPanel, sGe as DepositReceiveCard, Z as DetailField, M5 as Dialog, uBe as DialogClose, N5 as DialogContent, I5 as DialogDescription, fBe as DialogFooter, P5 as DialogHeader, F5 as DialogTitle, lBe as DialogTrigger, VUe as DonutChart, F7 as DownloadMenu, L5 as DropdownMenu, hBe as DropdownMenuCheckboxItem, z5 as DropdownMenuContent, mBe as DropdownMenuGroup, B5 as DropdownMenuItem, gBe as DropdownMenuLabel, G5 as DropdownMenuRadioGroup, z as DropdownMenuRadioItem, V5 as DropdownMenuSeparator, H5 as DropdownMenuSub, W5 as DropdownMenuSubContent, U5 as DropdownMenuSubTrigger, R5 as DropdownMenuTrigger, UUe as ExportHistoryList, w7 as FULL_NAV, dVe as HeaderSearch, pVe as HeaderStickyContext, x as HugeiconsIcon, RBe as ICONS, zBe as ICON_NAMES, K5 as Input, q5 as Label, VBe as Logo, rVe as NAV_ITEMS, nVe as NAV_PRESETS, oVe as NavDrawer, KBe as NavGroup, x7 as NavIcon, S7 as NavItem, b7 as NavLabel, GBe as NavRailSection, WBe as NavSection, JBe as NotificationItem, ZBe as NotificationsMenu, XBe as NotificationsPanel, T7 as PRIMARY_NAV, E7 as PageContainer, O7 as PageTitle, k7 as PageTitleChip, A7 as PageTitlePanel, _Be as Pagination, vBe as PaginationContent, xBe as PaginationEllipsis, Y5 as PaginationItem, X5 as PaginationLink, bBe as PaginationNext, yBe as PaginationPrevious, vGe as PasswordGate, I7 as PaymentType, eWe as PeriodPicker, Z5 as Popover, SBe as PopoverAnchor, $5 as PopoverContent, Q5 as PopoverTrigger, oGe as QrCode, CBe as RadioGroup, e7 as RadioGroupItem, cWe as ReportSummaryCard, lWe as ReportSummaryGroup, uWe as ReportsSummaryEmpty, JVe as RiskAssessment, L7 as RiskSignal, YBe as SAMPLE_NOTIFICATIONS, sHe as SavePresetDialog, lHe as SavedPresetsBar, TBe as ScrollArea, UBe as SectionHeading, t7 as Separator, n7 as SidePanel, a7 as SidePanelBody, DBe as SidePanelClose, r7 as SidePanelContent, s7 as SidePanelDescription, kBe as SidePanelFooter, i7 as SidePanelHeader, V as SidePanelSectionTitle, B as SidePanelSeparator, o7 as SidePanelTitle, EBe as SidePanelTrigger, H as Skeleton, vVe as SortHeader, R7 as StatusBadge, yHe as TRANSACTION_SEARCH_SCOPES, c7 as Table, u7 as TableBody, jBe as TableCaption, W as TableCell, ABe as TableFooter, U as TableHead, l7 as TableHeader, d7 as TableRow, f7 as Tabs, h7 as TabsContent, p7 as TabsList, m7 as TabsTrigger, X9 as TextField, M7 as TextLink, q as TextStack, g7 as Tooltip, v7 as TooltipContent, NBe as TooltipProvider, _7 as TooltipTrigger, pHe as TransactionDetailPanel, dHe as TransactionInfo, fHe as TransactionReference, uHe as TransactionSummary, gHe as TransactionsFilterPanel, xHe as TransactionsTable, CHe as TransactionsTableOptions, xe as UiBadge, C7 as UserMenu, kWe as WalletBalancesTable, LWe as WalletBalancesTableV2, Z9 as WalletField, A9 as WalletRowActions, uGe as WithdrawHistoryTable, mGe as WithdrawPanel, dGe as WithdrawSummary, kUe as activityData, MHe as activityFilters, THe as activityKinds, AHe as activitySearchText, IUe as activityTypes, be as badgeVariants, RWe as balancesData, BWe as balancesRecentTransactions, zWe as balancesTypes, ve as buttonVariants, KHe as convertData, iGe as convertTypes, zHe as depositData, lGe as depositTypes, iVe as findNavItem, tWe as reportsData, WUe as reportsPresets, fWe as reportsReportData, dWe as reportsTypes, MBe as tabsListVariants, bHe as transactionColumnOptions, CVe as transactionsData, QVe as transactionsFilters, YVe as transactionsStatuses, wHe as transactionsTypes, D7 as useHeaderExtension, UHe as withdrawData, hGe as withdrawTypes };
166606
+ export { ye as ActionFooter, TUe as ActivityDetailPanel, LHe as ActivityFilterPanel, AHe as ActivityTable, Y9 as AmountField, sVe as AppHeaderV1, fVe as AppHeaderV2, X as AssetValue, FBe as Avatar, y7 as Badge, y7 as NavBadge, UWe as BalancesPage, qWe as BalancesPageV2, W9 as BalancesSummary, GVe as BlockchainDetails, M as Button, A5 as Calendar, j5 as Checkbox, J5 as CodeInput, G as CoinLogo, gVe as ColumnsMenu, pBe as ConfirmDialog, ZWe as ConvertHistoryTable, tGe as ConvertPanel, $ as ConvertPickerField, $ as DepositPickerField, $ as PickerField, $ as WithdrawPickerField, $We as ConvertSummary, j7 as CopyButton, K as CopyableId, cBe as CoreFreeIcons, N7 as CurrencyNetwork, AWe as DEFAULT_TIER_LABELS, LUe as DailyBalancesTable, P7 as DataTable, iGe as DepositHistoryTable, sGe as DepositPanel, oGe as DepositReceiveCard, Z as DetailField, M5 as Dialog, uBe as DialogClose, N5 as DialogContent, I5 as DialogDescription, fBe as DialogFooter, P5 as DialogHeader, F5 as DialogTitle, lBe as DialogTrigger, BUe as DonutChart, F7 as DownloadMenu, L5 as DropdownMenu, hBe as DropdownMenuCheckboxItem, z5 as DropdownMenuContent, mBe as DropdownMenuGroup, B5 as DropdownMenuItem, gBe as DropdownMenuLabel, G5 as DropdownMenuRadioGroup, z as DropdownMenuRadioItem, V5 as DropdownMenuSeparator, H5 as DropdownMenuSub, W5 as DropdownMenuSubContent, U5 as DropdownMenuSubTrigger, R5 as DropdownMenuTrigger, HUe as ExportHistoryList, w7 as FULL_NAV, dVe as HeaderSearch, pVe as HeaderStickyContext, x as HugeiconsIcon, RBe as ICONS, zBe as ICON_NAMES, K5 as Input, q5 as Label, VBe as Logo, rVe as NAV_ITEMS, nVe as NAV_PRESETS, oVe as NavDrawer, KBe as NavGroup, x7 as NavIcon, S7 as NavItem, b7 as NavLabel, GBe as NavRailSection, WBe as NavSection, JBe as NotificationItem, ZBe as NotificationsMenu, XBe as NotificationsPanel, T7 as PRIMARY_NAV, E7 as PageContainer, O7 as PageTitle, k7 as PageTitleChip, A7 as PageTitlePanel, _Be as Pagination, vBe as PaginationContent, xBe as PaginationEllipsis, Y5 as PaginationItem, X5 as PaginationLink, bBe as PaginationNext, yBe as PaginationPrevious, _Ge as PasswordGate, I7 as PaymentType, $Ue as PeriodPicker, Z5 as Popover, SBe as PopoverAnchor, $5 as PopoverContent, Q5 as PopoverTrigger, aGe as QrCode, CBe as RadioGroup, e7 as RadioGroupItem, sWe as ReportSummaryCard, cWe as ReportSummaryGroup, lWe as ReportsSummaryEmpty, JVe as RiskAssessment, L7 as RiskSignal, YBe as SAMPLE_NOTIFICATIONS, sHe as SavePresetDialog, lHe as SavedPresetsBar, TBe as ScrollArea, UBe as SectionHeading, t7 as Separator, n7 as SidePanel, a7 as SidePanelBody, DBe as SidePanelClose, r7 as SidePanelContent, s7 as SidePanelDescription, kBe as SidePanelFooter, i7 as SidePanelHeader, V as SidePanelSectionTitle, B as SidePanelSeparator, o7 as SidePanelTitle, EBe as SidePanelTrigger, H as Skeleton, vVe as SortHeader, R7 as StatusBadge, vHe as TRANSACTION_SEARCH_SCOPES, c7 as Table, u7 as TableBody, jBe as TableCaption, W as TableCell, ABe as TableFooter, U as TableHead, l7 as TableHeader, d7 as TableRow, f7 as Tabs, h7 as TabsContent, p7 as TabsList, m7 as TabsTrigger, X9 as TextField, M7 as TextLink, q as TextStack, g7 as Tooltip, v7 as TooltipContent, NBe as TooltipProvider, _7 as TooltipTrigger, pHe as TransactionDetailPanel, dHe as TransactionInfo, fHe as TransactionReference, uHe as TransactionSummary, hHe as TransactionsFilterPanel, bHe as TransactionsTable, SHe as TransactionsTableOptions, xe as UiBadge, C7 as UserMenu, OWe as WalletBalancesTable, IWe as WalletBalancesTableV2, Z9 as WalletField, A9 as WalletRowActions, lGe as WithdrawHistoryTable, pGe as WithdrawPanel, uGe as WithdrawSummary, OUe as activityData, jHe as activityFilters, wHe as activityKinds, kHe as activitySearchText, FUe as activityTypes, be as badgeVariants, LWe as balancesData, zWe as balancesRecentTransactions, RWe as balancesTypes, ve as buttonVariants, GHe as convertData, rGe as convertTypes, RHe as depositData, cGe as depositTypes, iVe as findNavItem, eWe as reportsData, UUe as reportsPresets, dWe as reportsReportData, uWe as reportsTypes, MBe as tabsListVariants, yHe as transactionColumnOptions, CVe as transactionsData, QVe as transactionsFilters, YVe as transactionsStatuses, CHe as transactionsTypes, D7 as useHeaderExtension, HHe as withdrawData, mGe as withdrawTypes };