@chainberry/ui-components 1.0.19 → 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.cjs +1 -1
- package/dist/index.mjs +305 -314
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -159370,12 +159370,8 @@ function W7(e, t) {
|
|
|
159370
159370
|
function G7({ title: e, children: t }) {
|
|
159371
159371
|
return /* @__PURE__ */ v("section", { children: [/* @__PURE__ */ _(V, { children: e }), t] });
|
|
159372
159372
|
}
|
|
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
|
-
|
|
159375
|
-
out: wi,
|
|
159376
|
-
neutral: Hr
|
|
159377
|
-
};
|
|
159378
|
-
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 }) {
|
|
159379
159375
|
let [a, s] = d(n);
|
|
159380
159376
|
return o(() => {
|
|
159381
159377
|
e && s(n);
|
|
@@ -159398,22 +159394,17 @@ function gHe({ open: e, onOpenChange: t, value: n, assets: r, onApply: i }) {
|
|
|
159398
159394
|
let t = z7[e.value];
|
|
159399
159395
|
return /* @__PURE__ */ v("label", {
|
|
159400
159396
|
className: K7,
|
|
159401
|
-
children: [
|
|
159402
|
-
|
|
159403
|
-
|
|
159404
|
-
|
|
159405
|
-
|
|
159406
|
-
|
|
159407
|
-
|
|
159408
|
-
|
|
159409
|
-
|
|
159410
|
-
|
|
159411
|
-
|
|
159412
|
-
strokeWidth: 2,
|
|
159413
|
-
className: "text-muted-foreground"
|
|
159414
|
-
}),
|
|
159415
|
-
/* @__PURE__ */ _("span", { children: e.label })
|
|
159416
|
-
]
|
|
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
|
+
})]
|
|
159417
159408
|
}, e.value);
|
|
159418
159409
|
})
|
|
159419
159410
|
})
|
|
@@ -159559,7 +159550,7 @@ function gHe({ open: e, onOpenChange: t, value: n, assets: r, onApply: i }) {
|
|
|
159559
159550
|
}
|
|
159560
159551
|
//#endregion
|
|
159561
159552
|
//#region ../../react-app/src/components/transactions/TransactionsTable.tsx
|
|
159562
|
-
function
|
|
159553
|
+
function gHe({ date: e, time: t }) {
|
|
159563
159554
|
return e ? /* @__PURE__ */ _(q, {
|
|
159564
159555
|
primary: e,
|
|
159565
159556
|
secondary: t,
|
|
@@ -159569,7 +159560,7 @@ function _He({ date: e, time: t }) {
|
|
|
159569
159560
|
children: "—"
|
|
159570
159561
|
});
|
|
159571
159562
|
}
|
|
159572
|
-
var
|
|
159563
|
+
var _He = [
|
|
159573
159564
|
{
|
|
159574
159565
|
id: "type",
|
|
159575
159566
|
header: "Payment Type",
|
|
@@ -159650,7 +159641,7 @@ var vHe = [
|
|
|
159650
159641
|
header: "Created at",
|
|
159651
159642
|
sortable: !0,
|
|
159652
159643
|
sortValue: (e) => (/* @__PURE__ */ new Date(`${e.createdAt} ${e.createdTime}`)).getTime(),
|
|
159653
|
-
cell: (e) => /* @__PURE__ */ _(
|
|
159644
|
+
cell: (e) => /* @__PURE__ */ _(gHe, {
|
|
159654
159645
|
date: e.createdAt,
|
|
159655
159646
|
time: e.createdTime
|
|
159656
159647
|
}),
|
|
@@ -159664,7 +159655,7 @@ var vHe = [
|
|
|
159664
159655
|
header: "Confirmed at",
|
|
159665
159656
|
sortable: !0,
|
|
159666
159657
|
sortValue: (e) => e.confirmedAt ? (/* @__PURE__ */ new Date(`${e.confirmedAt} ${e.confirmedTime ?? ""}`)).getTime() : -Infinity,
|
|
159667
|
-
cell: (e) => /* @__PURE__ */ _(
|
|
159658
|
+
cell: (e) => /* @__PURE__ */ _(gHe, {
|
|
159668
159659
|
date: e.confirmedAt,
|
|
159669
159660
|
time: e.confirmedTime
|
|
159670
159661
|
}),
|
|
@@ -159695,7 +159686,7 @@ var vHe = [
|
|
|
159695
159686
|
}),
|
|
159696
159687
|
skeleton: /* @__PURE__ */ _(H, { className: "h-4 w-32" })
|
|
159697
159688
|
}
|
|
159698
|
-
],
|
|
159689
|
+
], vHe = [
|
|
159699
159690
|
{
|
|
159700
159691
|
value: "uid",
|
|
159701
159692
|
label: "UID"
|
|
@@ -159708,14 +159699,14 @@ var vHe = [
|
|
|
159708
159699
|
value: "wallet",
|
|
159709
159700
|
label: "Wallet"
|
|
159710
159701
|
}
|
|
159711
|
-
],
|
|
159702
|
+
], yHe = _He.map((e) => ({
|
|
159712
159703
|
id: e.id,
|
|
159713
159704
|
label: e.header,
|
|
159714
159705
|
canHide: e.canHide
|
|
159715
159706
|
}));
|
|
159716
|
-
function
|
|
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 }) {
|
|
159717
159708
|
return /* @__PURE__ */ _(P7, {
|
|
159718
|
-
columns:
|
|
159709
|
+
columns: _He,
|
|
159719
159710
|
data: e,
|
|
159720
159711
|
getRowId: (e) => e.id,
|
|
159721
159712
|
layout: "fill",
|
|
@@ -159745,14 +159736,14 @@ function xHe({ data: e, loading: t, onRowClick: n, columnVisibility: r, presets:
|
|
|
159745
159736
|
}
|
|
159746
159737
|
//#endregion
|
|
159747
159738
|
//#region ../../react-app/src/components/transactions/TransactionsTableOptions.tsx
|
|
159748
|
-
var
|
|
159739
|
+
var xHe = [{
|
|
159749
159740
|
value: "all",
|
|
159750
159741
|
label: "All"
|
|
159751
159742
|
}, {
|
|
159752
159743
|
value: "action",
|
|
159753
159744
|
label: "Action Required"
|
|
159754
159745
|
}];
|
|
159755
|
-
function
|
|
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 }) {
|
|
159756
159747
|
let C = (e) => b?.[e] !== !1, w = n?.find((e) => e.value === r)?.label, T = w ? `Search by ${w}` : a;
|
|
159757
159748
|
return /* @__PURE__ */ v("div", {
|
|
159758
159749
|
className: j("mb-2 flex shrink-0 flex-wrap items-center gap-2", x),
|
|
@@ -159863,7 +159854,7 @@ function CHe({ search: e, onSearchChange: t, searchScopes: n, searchScope: r, on
|
|
|
159863
159854
|
}
|
|
159864
159855
|
//#endregion
|
|
159865
159856
|
//#region ../../react-app/src/components/transactions/types.ts
|
|
159866
|
-
var
|
|
159857
|
+
var CHe = /* @__PURE__ */ A({}), wHe = /* @__PURE__ */ A({
|
|
159867
159858
|
KIND_DIRECTION: () => J7,
|
|
159868
159859
|
KIND_ICON: () => Y7,
|
|
159869
159860
|
KIND_LABEL: () => q7
|
|
@@ -159883,14 +159874,14 @@ var wHe = /* @__PURE__ */ A({}), THe = /* @__PURE__ */ A({
|
|
|
159883
159874
|
transfer: oi,
|
|
159884
159875
|
conversion: ai,
|
|
159885
159876
|
automation: Nt
|
|
159886
|
-
},
|
|
159877
|
+
}, THe = "font-medium text-emerald-600 dark:text-emerald-400", EHe = "font-medium text-red-600 dark:text-red-400";
|
|
159887
159878
|
function X7() {
|
|
159888
159879
|
return /* @__PURE__ */ _("span", {
|
|
159889
159880
|
className: "px-1.5 text-muted-foreground",
|
|
159890
159881
|
children: "→"
|
|
159891
159882
|
});
|
|
159892
159883
|
}
|
|
159893
|
-
function
|
|
159884
|
+
function DHe(e) {
|
|
159894
159885
|
switch (e.kind) {
|
|
159895
159886
|
case "deposit": return /* @__PURE__ */ v("span", {
|
|
159896
159887
|
className: "text-sm text-foreground",
|
|
@@ -159962,13 +159953,13 @@ function OHe(e) {
|
|
|
159962
159953
|
});
|
|
159963
159954
|
}
|
|
159964
159955
|
}
|
|
159965
|
-
function
|
|
159956
|
+
function OHe(e) {
|
|
159966
159957
|
switch (e.kind) {
|
|
159967
159958
|
case "deposit": return /* @__PURE__ */ _(q, {
|
|
159968
159959
|
align: "end",
|
|
159969
159960
|
tabularNums: !0,
|
|
159970
159961
|
primary: /* @__PURE__ */ v("span", {
|
|
159971
|
-
className:
|
|
159962
|
+
className: THe,
|
|
159972
159963
|
children: [
|
|
159973
159964
|
e.amount,
|
|
159974
159965
|
" ",
|
|
@@ -159981,7 +159972,7 @@ function kHe(e) {
|
|
|
159981
159972
|
align: "end",
|
|
159982
159973
|
tabularNums: !0,
|
|
159983
159974
|
primary: /* @__PURE__ */ v("span", {
|
|
159984
|
-
className:
|
|
159975
|
+
className: EHe,
|
|
159985
159976
|
children: [
|
|
159986
159977
|
e.amount,
|
|
159987
159978
|
" ",
|
|
@@ -160007,7 +159998,7 @@ function kHe(e) {
|
|
|
160007
159998
|
align: "end",
|
|
160008
159999
|
tabularNums: !0,
|
|
160009
160000
|
primary: /* @__PURE__ */ v("span", {
|
|
160010
|
-
className:
|
|
160001
|
+
className: THe,
|
|
160011
160002
|
children: [
|
|
160012
160003
|
e.toAmount,
|
|
160013
160004
|
" ",
|
|
@@ -160031,7 +160022,7 @@ function kHe(e) {
|
|
|
160031
160022
|
});
|
|
160032
160023
|
}
|
|
160033
160024
|
}
|
|
160034
|
-
function
|
|
160025
|
+
function kHe(e) {
|
|
160035
160026
|
let t = [q7[e.kind], Q[e.status].label];
|
|
160036
160027
|
switch (e.kind) {
|
|
160037
160028
|
case "deposit":
|
|
@@ -160052,7 +160043,7 @@ function AHe(e) {
|
|
|
160052
160043
|
}
|
|
160053
160044
|
return t.join(" ").toLowerCase();
|
|
160054
160045
|
}
|
|
160055
|
-
function
|
|
160046
|
+
function AHe({ data: e, pageSize: t = 50, layout: n = "fill", className: r, onRowClick: i }) {
|
|
160056
160047
|
let a = l(() => [
|
|
160057
160048
|
{
|
|
160058
160049
|
id: "type",
|
|
@@ -160080,13 +160071,13 @@ function jHe({ data: e, pageSize: t = 50, layout: n = "fill", className: r, onRo
|
|
|
160080
160071
|
header: "Details",
|
|
160081
160072
|
headClassName: "w-full",
|
|
160082
160073
|
cellClassName: "w-full",
|
|
160083
|
-
cell: (e) =>
|
|
160074
|
+
cell: (e) => DHe(e)
|
|
160084
160075
|
},
|
|
160085
160076
|
{
|
|
160086
160077
|
id: "amount",
|
|
160087
160078
|
header: "Amount",
|
|
160088
160079
|
align: "end",
|
|
160089
|
-
cell: (e) =>
|
|
160080
|
+
cell: (e) => OHe(e)
|
|
160090
160081
|
},
|
|
160091
160082
|
{
|
|
160092
160083
|
id: "when",
|
|
@@ -160117,12 +160108,12 @@ function jHe({ data: e, pageSize: t = 50, layout: n = "fill", className: r, onRo
|
|
|
160117
160108
|
}
|
|
160118
160109
|
//#endregion
|
|
160119
160110
|
//#region ../../react-app/src/components/activity/filters.ts
|
|
160120
|
-
var
|
|
160121
|
-
EMPTY_FILTER: () =>
|
|
160111
|
+
var jHe = /* @__PURE__ */ A({
|
|
160112
|
+
EMPTY_FILTER: () => MHe,
|
|
160122
160113
|
KIND_OPTIONS: () => Z7,
|
|
160123
|
-
filterMatches: () =>
|
|
160124
|
-
isFilterEmpty: () =>
|
|
160125
|
-
}),
|
|
160114
|
+
filterMatches: () => PHe,
|
|
160115
|
+
isFilterEmpty: () => NHe
|
|
160116
|
+
}), MHe = {
|
|
160126
160117
|
kinds: [],
|
|
160127
160118
|
statuses: []
|
|
160128
160119
|
}, Z7 = [
|
|
@@ -160147,24 +160138,24 @@ var MHe = /* @__PURE__ */ A({
|
|
|
160147
160138
|
label: "Automation"
|
|
160148
160139
|
}
|
|
160149
160140
|
];
|
|
160150
|
-
function
|
|
160141
|
+
function NHe(e) {
|
|
160151
160142
|
return !e.kinds.length && !e.statuses.length;
|
|
160152
160143
|
}
|
|
160153
|
-
function
|
|
160144
|
+
function PHe(e, t) {
|
|
160154
160145
|
return !(t.kinds.length && !t.kinds.includes(e.kind) || t.statuses.length && !t.statuses.includes(e.status));
|
|
160155
160146
|
}
|
|
160156
160147
|
//#endregion
|
|
160157
160148
|
//#region ../../react-app/src/components/activity/ActivityFilterPanel.tsx
|
|
160158
|
-
function
|
|
160149
|
+
function FHe(e, t) {
|
|
160159
160150
|
return e.includes(t) ? e.filter((e) => e !== t) : [...e, t];
|
|
160160
160151
|
}
|
|
160161
|
-
var
|
|
160162
|
-
function
|
|
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 }) {
|
|
160163
160154
|
let [s, c] = d(n);
|
|
160164
160155
|
o(() => {
|
|
160165
160156
|
e && c(n);
|
|
160166
160157
|
}, [e]);
|
|
160167
|
-
let l =
|
|
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))];
|
|
160168
160159
|
return /* @__PURE__ */ _(n7, {
|
|
160169
160160
|
open: e,
|
|
160170
160161
|
onOpenChange: t,
|
|
@@ -160178,12 +160169,12 @@ function RHe({ open: e, onOpenChange: t, value: n, kinds: r, statuses: i, onAppl
|
|
|
160178
160169
|
children: [u.length > 0 && /* @__PURE__ */ v("section", { children: [/* @__PURE__ */ _(V, { children: "Type" }), /* @__PURE__ */ _("div", {
|
|
160179
160170
|
className: "grid grid-cols-2 gap-x-4",
|
|
160180
160171
|
children: u.map((e) => /* @__PURE__ */ v("label", {
|
|
160181
|
-
className:
|
|
160172
|
+
className: IHe,
|
|
160182
160173
|
children: [/* @__PURE__ */ _(j5, {
|
|
160183
160174
|
checked: s.kinds.includes(e.value),
|
|
160184
160175
|
onCheckedChange: () => c((t) => ({
|
|
160185
160176
|
...t,
|
|
160186
|
-
kinds:
|
|
160177
|
+
kinds: FHe(t.kinds, e.value)
|
|
160187
160178
|
}))
|
|
160188
160179
|
}), /* @__PURE__ */ _(I7, {
|
|
160189
160180
|
direction: J7[e.value],
|
|
@@ -160194,12 +160185,12 @@ function RHe({ open: e, onOpenChange: t, value: n, kinds: r, statuses: i, onAppl
|
|
|
160194
160185
|
})] }), f.length > 0 && /* @__PURE__ */ v(g, { children: [u.length > 0 && /* @__PURE__ */ _(B, {}), /* @__PURE__ */ v("section", { children: [/* @__PURE__ */ _(V, { children: "Status" }), /* @__PURE__ */ _("div", {
|
|
160195
160186
|
className: "grid grid-cols-2 gap-x-4",
|
|
160196
160187
|
children: f.map((e) => /* @__PURE__ */ v("label", {
|
|
160197
|
-
className:
|
|
160188
|
+
className: IHe,
|
|
160198
160189
|
children: [/* @__PURE__ */ _(j5, {
|
|
160199
160190
|
checked: s.statuses.includes(e),
|
|
160200
160191
|
onCheckedChange: () => c((t) => ({
|
|
160201
160192
|
...t,
|
|
160202
|
-
statuses:
|
|
160193
|
+
statuses: FHe(t.statuses, e)
|
|
160203
160194
|
}))
|
|
160204
160195
|
}), /* @__PURE__ */ _(R7, {
|
|
160205
160196
|
tone: Q[e].tone,
|
|
@@ -160216,7 +160207,7 @@ function RHe({ open: e, onOpenChange: t, value: n, kinds: r, statuses: i, onAppl
|
|
|
160216
160207
|
align: "start",
|
|
160217
160208
|
className: "text-muted-foreground",
|
|
160218
160209
|
disabled: l,
|
|
160219
|
-
onClick: () => c(
|
|
160210
|
+
onClick: () => c(MHe)
|
|
160220
160211
|
},
|
|
160221
160212
|
{
|
|
160222
160213
|
key: "cancel",
|
|
@@ -160237,13 +160228,13 @@ function RHe({ open: e, onOpenChange: t, value: n, kinds: r, statuses: i, onAppl
|
|
|
160237
160228
|
}
|
|
160238
160229
|
//#endregion
|
|
160239
160230
|
//#region ../../react-app/src/components/deposit/data.ts
|
|
160240
|
-
var
|
|
160231
|
+
var RHe = /* @__PURE__ */ A({
|
|
160241
160232
|
COINS: () => $7,
|
|
160242
160233
|
DEPOSIT_HISTORY: () => e9,
|
|
160243
|
-
DEPOSIT_WALLETS: () =>
|
|
160234
|
+
DEPOSIT_WALLETS: () => zHe,
|
|
160244
160235
|
NETWORKS: () => Q7,
|
|
160245
|
-
figureToNumber: () =>
|
|
160246
|
-
formatUsd: () =>
|
|
160236
|
+
figureToNumber: () => BHe,
|
|
160237
|
+
formatUsd: () => VHe
|
|
160247
160238
|
}), Q7 = {
|
|
160248
160239
|
ETH: {
|
|
160249
160240
|
code: "ETH",
|
|
@@ -160300,7 +160291,7 @@ var zHe = /* @__PURE__ */ A({
|
|
|
160300
160291
|
name: "Solana",
|
|
160301
160292
|
networks: ["SOL"]
|
|
160302
160293
|
}
|
|
160303
|
-
],
|
|
160294
|
+
], zHe = [
|
|
160304
160295
|
{
|
|
160305
160296
|
id: "w-usdt-eth-low",
|
|
160306
160297
|
name: "Low Risk Wallet",
|
|
@@ -160546,10 +160537,10 @@ var zHe = /* @__PURE__ */ A({
|
|
|
160546
160537
|
status: "CONFIRMED"
|
|
160547
160538
|
}
|
|
160548
160539
|
];
|
|
160549
|
-
function
|
|
160540
|
+
function BHe(e) {
|
|
160550
160541
|
return parseFloat(e.replace(/[^0-9.]/g, "")) || 0;
|
|
160551
160542
|
}
|
|
160552
|
-
function
|
|
160543
|
+
function VHe(e) {
|
|
160553
160544
|
return e.toLocaleString("en-US", {
|
|
160554
160545
|
style: "currency",
|
|
160555
160546
|
currency: "USD",
|
|
@@ -160559,11 +160550,11 @@ function HHe(e) {
|
|
|
160559
160550
|
}
|
|
160560
160551
|
//#endregion
|
|
160561
160552
|
//#region ../../react-app/src/components/withdraw/data.ts
|
|
160562
|
-
var
|
|
160553
|
+
var HHe = /* @__PURE__ */ A({
|
|
160563
160554
|
COINS: () => n9,
|
|
160564
160555
|
NETWORKS: () => t9,
|
|
160565
|
-
SAVED_ADDRESSES: () =>
|
|
160566
|
-
SOURCE_WALLETS: () =>
|
|
160556
|
+
SAVED_ADDRESSES: () => WHe,
|
|
160557
|
+
SOURCE_WALLETS: () => UHe,
|
|
160567
160558
|
WITHDRAWAL_HISTORY: () => r9,
|
|
160568
160559
|
figureToNumber: () => i9,
|
|
160569
160560
|
formatUsd: () => a9
|
|
@@ -160632,7 +160623,7 @@ var UHe = /* @__PURE__ */ A({
|
|
|
160632
160623
|
name: "Toncoin",
|
|
160633
160624
|
networks: ["TON"]
|
|
160634
160625
|
}
|
|
160635
|
-
],
|
|
160626
|
+
], UHe = [
|
|
160636
160627
|
{
|
|
160637
160628
|
id: "w-usdt-eth-low",
|
|
160638
160629
|
name: "Low Risk Wallet",
|
|
@@ -160787,7 +160778,7 @@ var UHe = /* @__PURE__ */ A({
|
|
|
160787
160778
|
amountFiat: "$6,600.00",
|
|
160788
160779
|
fiatRate: 5.5
|
|
160789
160780
|
}
|
|
160790
|
-
],
|
|
160781
|
+
], WHe = [
|
|
160791
160782
|
{
|
|
160792
160783
|
id: "a-binance-usdt-eth",
|
|
160793
160784
|
label: "Binance Hot Wallet",
|
|
@@ -160993,12 +160984,12 @@ function a9(e) {
|
|
|
160993
160984
|
}
|
|
160994
160985
|
//#endregion
|
|
160995
160986
|
//#region ../../react-app/src/components/convert/data.ts
|
|
160996
|
-
var
|
|
160987
|
+
var GHe = /* @__PURE__ */ A({
|
|
160997
160988
|
COINS: () => c9,
|
|
160998
160989
|
CONVERSION_HISTORY: () => u9,
|
|
160999
160990
|
CONVERT_FEE_RATE: () => o9,
|
|
161000
160991
|
HOLDINGS: () => l9,
|
|
161001
|
-
NETWORK_NAMES: () =>
|
|
160992
|
+
NETWORK_NAMES: () => KHe,
|
|
161002
160993
|
WALLET_TIERS: () => s9,
|
|
161003
160994
|
figureToNumber: () => d9,
|
|
161004
160995
|
formatCrypto: () => p9,
|
|
@@ -161024,7 +161015,7 @@ var KHe = /* @__PURE__ */ A({
|
|
|
161024
161015
|
name: "Payout Wallet",
|
|
161025
161016
|
purpose: "payout"
|
|
161026
161017
|
}
|
|
161027
|
-
],
|
|
161018
|
+
], KHe = {
|
|
161028
161019
|
ETH: "Ethereum",
|
|
161029
161020
|
TRON: "Tron (TRC-20)",
|
|
161030
161021
|
BTC: "Bitcoin",
|
|
@@ -161325,38 +161316,38 @@ function m9(e) {
|
|
|
161325
161316
|
function h9(e, t, n) {
|
|
161326
161317
|
return e[m9(t + n) % e.length];
|
|
161327
161318
|
}
|
|
161328
|
-
function
|
|
161319
|
+
function qHe(e) {
|
|
161329
161320
|
let t = "", n = m9(e + "hash");
|
|
161330
161321
|
for (; t.length < 64;) n = Math.imul(n ^ n >>> 15, 2246822519) >>> 0, t += n.toString(16).padStart(8, "0");
|
|
161331
161322
|
return "0x" + t.slice(0, 64);
|
|
161332
161323
|
}
|
|
161333
|
-
function
|
|
161324
|
+
function JHe(e) {
|
|
161334
161325
|
let t = parseFloat(e.replace(/[^0-9.]/g, ""));
|
|
161335
161326
|
return Number.isNaN(t) ? 0 : t;
|
|
161336
161327
|
}
|
|
161337
|
-
function
|
|
161328
|
+
function YHe(e) {
|
|
161338
161329
|
return "$" + e.toLocaleString("en-US", {
|
|
161339
161330
|
minimumFractionDigits: 2,
|
|
161340
161331
|
maximumFractionDigits: 2
|
|
161341
161332
|
});
|
|
161342
161333
|
}
|
|
161343
|
-
var
|
|
161334
|
+
var XHe = [
|
|
161344
161335
|
"Maya Okafor",
|
|
161345
161336
|
"Daniel Roth",
|
|
161346
161337
|
"Priya Nair",
|
|
161347
161338
|
"Sofia Grant",
|
|
161348
161339
|
"Liam Chen"
|
|
161349
|
-
],
|
|
161340
|
+
], ZHe = [
|
|
161350
161341
|
"Chainalysis",
|
|
161351
161342
|
"Elliptic",
|
|
161352
161343
|
"TRM Labs"
|
|
161353
|
-
],
|
|
161344
|
+
], QHe = .002, $He = {
|
|
161354
161345
|
ETH: "0.00120 ETH · $3.85",
|
|
161355
161346
|
TRON: "1.10 TRX · $0.13",
|
|
161356
161347
|
TRC20: "1.10 TRX · $0.13",
|
|
161357
161348
|
BTC: "0.00002 BTC · $1.24",
|
|
161358
161349
|
SOL: "0.00008 SOL · $0.01"
|
|
161359
|
-
},
|
|
161350
|
+
}, eUe = {
|
|
161360
161351
|
ETH: {
|
|
161361
161352
|
name: "Etherscan",
|
|
161362
161353
|
tx: (e) => `https://etherscan.io/tx/${e}`
|
|
@@ -161382,10 +161373,10 @@ var ZHe = [
|
|
|
161382
161373
|
tx: (e) => `https://xrpscan.com/tx/${e}`
|
|
161383
161374
|
}
|
|
161384
161375
|
};
|
|
161385
|
-
function
|
|
161376
|
+
function tUe(e, t) {
|
|
161386
161377
|
return `${e} · ${t}`;
|
|
161387
161378
|
}
|
|
161388
|
-
function
|
|
161379
|
+
function nUe(e) {
|
|
161389
161380
|
let t = e.startsWith("act-") ? e.slice(4) : e;
|
|
161390
161381
|
return {
|
|
161391
161382
|
deposit: e9.find((e) => e.id === t),
|
|
@@ -161396,8 +161387,8 @@ function rUe(e) {
|
|
|
161396
161387
|
function g9(e) {
|
|
161397
161388
|
return e.status === "PENDING_APPROVAL";
|
|
161398
161389
|
}
|
|
161399
|
-
function
|
|
161400
|
-
let n =
|
|
161390
|
+
function rUe(e, t) {
|
|
161391
|
+
let n = tUe(e.date, e.time), r = e.kind === "deposit", i = (e, t) => ({
|
|
161401
161392
|
label: e,
|
|
161402
161393
|
at: t,
|
|
161403
161394
|
state: "done"
|
|
@@ -161434,9 +161425,9 @@ function iUe(e, t) {
|
|
|
161434
161425
|
}
|
|
161435
161426
|
return s;
|
|
161436
161427
|
}
|
|
161437
|
-
function
|
|
161428
|
+
function iUe(e) {
|
|
161438
161429
|
if (e.kind === "deposit") return;
|
|
161439
|
-
let t =
|
|
161430
|
+
let t = tUe(e.date, e.time);
|
|
161440
161431
|
if (e.kind === "automation") return {
|
|
161441
161432
|
requestedBy: `Automation · ${e.rule}`,
|
|
161442
161433
|
requestedAt: t,
|
|
@@ -161448,7 +161439,7 @@ function aUe(e) {
|
|
|
161448
161439
|
at: t
|
|
161449
161440
|
}]
|
|
161450
161441
|
};
|
|
161451
|
-
let n = e.initiator ?? "—", r = h9(
|
|
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");
|
|
161452
161443
|
return g9(e) ? {
|
|
161453
161444
|
requestedBy: n,
|
|
161454
161445
|
requestedAt: t,
|
|
@@ -161475,40 +161466,40 @@ function aUe(e) {
|
|
|
161475
161466
|
}]
|
|
161476
161467
|
};
|
|
161477
161468
|
}
|
|
161478
|
-
function
|
|
161469
|
+
function aUe(e) {
|
|
161479
161470
|
if (e.kind !== "deposit" && e.kind !== "withdrawal") return;
|
|
161480
161471
|
let t = e.kind === "deposit" ? e.toWallet : e.fromWallet, n = /high risk/i.test(t) ? "High" : /medium risk/i.test(t) ? "Medium" : "Low";
|
|
161481
161472
|
return {
|
|
161482
|
-
provider: h9(
|
|
161473
|
+
provider: h9(ZHe, e.id, "kyt"),
|
|
161483
161474
|
level: n,
|
|
161484
161475
|
verdict: n === "High" ? "Alert" : "Accept"
|
|
161485
161476
|
};
|
|
161486
161477
|
}
|
|
161487
|
-
function
|
|
161478
|
+
function oUe(e) {
|
|
161488
161479
|
if (e.kind !== "automation") return;
|
|
161489
|
-
let t =
|
|
161480
|
+
let t = JHe(e.amountFiat) / Math.max(1, e.txCount), n = Math.min(e.txCount, 5);
|
|
161490
161481
|
return {
|
|
161491
161482
|
children: Array.from({ length: n }, (n, r) => {
|
|
161492
|
-
let i = `child${r}`, a =
|
|
161483
|
+
let i = `child${r}`, a = qHe(e.id + i).slice(0, 18);
|
|
161493
161484
|
return {
|
|
161494
161485
|
id: `${e.id}-c${r + 1}`,
|
|
161495
161486
|
recipient: `${a}…`,
|
|
161496
|
-
amount:
|
|
161487
|
+
amount: YHe(t * (.8 + m9(e.id + i) % 40 / 100)),
|
|
161497
161488
|
status: "CONFIRMED"
|
|
161498
161489
|
};
|
|
161499
161490
|
}),
|
|
161500
161491
|
summary: `${e.txCount} of ${e.txCount} completed`
|
|
161501
161492
|
};
|
|
161502
161493
|
}
|
|
161503
|
-
function
|
|
161504
|
-
let t =
|
|
161494
|
+
function sUe(e) {
|
|
161495
|
+
let t = nUe(e.id), n, r, i, a, o;
|
|
161505
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);
|
|
161506
|
-
let s = e.kind === "conversion" || e.kind === "automation" ? void 0 : e.network, c = e.kind !== "transfer" && e.kind !== "automation" ?
|
|
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;
|
|
161507
161498
|
if (e.kind === "conversion") {
|
|
161508
|
-
let t =
|
|
161509
|
-
u = `${(
|
|
161499
|
+
let t = JHe(e.amountFiat) * QHe;
|
|
161500
|
+
u = `${(QHe * 100).toFixed(2)}% · ${YHe(t)}`;
|
|
161510
161501
|
}
|
|
161511
|
-
let d =
|
|
161502
|
+
let d = oUe(e);
|
|
161512
161503
|
return {
|
|
161513
161504
|
record: e,
|
|
161514
161505
|
fromAddress: n,
|
|
@@ -161519,16 +161510,16 @@ function cUe(e) {
|
|
|
161519
161510
|
txHash: c,
|
|
161520
161511
|
networkFee: l,
|
|
161521
161512
|
serviceFee: u,
|
|
161522
|
-
approval:
|
|
161523
|
-
compliance:
|
|
161513
|
+
approval: iUe(e),
|
|
161514
|
+
compliance: aUe(e),
|
|
161524
161515
|
children: d?.children,
|
|
161525
161516
|
childSummary: d?.summary,
|
|
161526
|
-
timeline:
|
|
161517
|
+
timeline: rUe(e, a)
|
|
161527
161518
|
};
|
|
161528
161519
|
}
|
|
161529
161520
|
//#endregion
|
|
161530
161521
|
//#region ../../react-app/src/components/activity/detail/SwapAmounts.tsx
|
|
161531
|
-
function
|
|
161522
|
+
function cUe({ record: e }) {
|
|
161532
161523
|
return /* @__PURE__ */ v("div", {
|
|
161533
161524
|
className: "space-y-2",
|
|
161534
161525
|
children: [
|
|
@@ -161562,13 +161553,13 @@ function lUe({ record: e }) {
|
|
|
161562
161553
|
}
|
|
161563
161554
|
//#endregion
|
|
161564
161555
|
//#region ../../react-app/src/components/activity/detail/ActivitySummary.tsx
|
|
161565
|
-
function
|
|
161556
|
+
function lUe(e) {
|
|
161566
161557
|
let t = e.trim();
|
|
161567
161558
|
return t.startsWith("-") ? "text-rose-600 dark:text-rose-400" : t.startsWith("+") ? "text-emerald-600 dark:text-emerald-400" : "text-muted-foreground";
|
|
161568
161559
|
}
|
|
161569
|
-
function
|
|
161560
|
+
function uUe({ record: e }) {
|
|
161570
161561
|
switch (e.kind) {
|
|
161571
|
-
case "conversion": return /* @__PURE__ */ _(
|
|
161562
|
+
case "conversion": return /* @__PURE__ */ _(cUe, { record: e });
|
|
161572
161563
|
case "automation": return /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("div", {
|
|
161573
161564
|
className: "text-3xl font-semibold tabular-nums text-foreground",
|
|
161574
161565
|
children: e.amountFiat
|
|
@@ -161586,12 +161577,12 @@ function dUe({ record: e }) {
|
|
|
161586
161577
|
children: e.coin
|
|
161587
161578
|
})]
|
|
161588
161579
|
}), /* @__PURE__ */ _("div", {
|
|
161589
|
-
className: j("mt-0.5 text-sm font-medium tabular-nums",
|
|
161580
|
+
className: j("mt-0.5 text-sm font-medium tabular-nums", lUe(e.amount)),
|
|
161590
161581
|
children: e.amountFiat
|
|
161591
161582
|
})] });
|
|
161592
161583
|
}
|
|
161593
161584
|
}
|
|
161594
|
-
function
|
|
161585
|
+
function dUe({ record: e }) {
|
|
161595
161586
|
let t = Q[e.status];
|
|
161596
161587
|
return /* @__PURE__ */ v("div", {
|
|
161597
161588
|
className: "space-y-3",
|
|
@@ -161607,7 +161598,7 @@ function fUe({ record: e }) {
|
|
|
161607
161598
|
children: t.label
|
|
161608
161599
|
})]
|
|
161609
161600
|
}),
|
|
161610
|
-
/* @__PURE__ */ _(
|
|
161601
|
+
/* @__PURE__ */ _(uUe, { record: e }),
|
|
161611
161602
|
/* @__PURE__ */ v("div", {
|
|
161612
161603
|
className: "text-xs text-muted-foreground",
|
|
161613
161604
|
children: [
|
|
@@ -161621,18 +161612,18 @@ function fUe({ record: e }) {
|
|
|
161621
161612
|
}
|
|
161622
161613
|
//#endregion
|
|
161623
161614
|
//#region ../../react-app/src/components/activity/detail/ActivityTimeline.tsx
|
|
161624
|
-
var
|
|
161615
|
+
var fUe = {
|
|
161625
161616
|
done: "border-emerald-500 bg-emerald-500",
|
|
161626
161617
|
current: "border-primary bg-primary",
|
|
161627
161618
|
upcoming: "border-cb-line bg-background",
|
|
161628
161619
|
failed: "border-red-500 bg-red-500"
|
|
161629
|
-
},
|
|
161620
|
+
}, pUe = {
|
|
161630
161621
|
done: "text-foreground",
|
|
161631
161622
|
current: "font-medium text-foreground",
|
|
161632
161623
|
upcoming: "text-muted-foreground",
|
|
161633
161624
|
failed: "font-medium text-red-600 dark:text-red-400"
|
|
161634
161625
|
};
|
|
161635
|
-
function
|
|
161626
|
+
function mUe({ steps: e }) {
|
|
161636
161627
|
return /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _(V, { children: "Status" }), /* @__PURE__ */ _("ol", {
|
|
161637
161628
|
className: "space-y-0",
|
|
161638
161629
|
children: e.map((t, n) => {
|
|
@@ -161641,12 +161632,12 @@ function hUe({ steps: e }) {
|
|
|
161641
161632
|
className: "flex gap-3",
|
|
161642
161633
|
children: [/* @__PURE__ */ v("div", {
|
|
161643
161634
|
className: "flex flex-col items-center",
|
|
161644
|
-
children: [/* @__PURE__ */ _("span", { className: j("mt-1 size-2.5 shrink-0 rounded-full border-2",
|
|
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") })]
|
|
161645
161636
|
}), /* @__PURE__ */ v("div", {
|
|
161646
161637
|
className: j("pb-4", r && "pb-0"),
|
|
161647
161638
|
children: [
|
|
161648
161639
|
/* @__PURE__ */ _("div", {
|
|
161649
|
-
className: j("text-sm leading-tight",
|
|
161640
|
+
className: j("text-sm leading-tight", pUe[t.state]),
|
|
161650
161641
|
children: t.label
|
|
161651
161642
|
}),
|
|
161652
161643
|
t.at && /* @__PURE__ */ _("div", {
|
|
@@ -161665,7 +161656,7 @@ function hUe({ steps: e }) {
|
|
|
161665
161656
|
}
|
|
161666
161657
|
//#endregion
|
|
161667
161658
|
//#region ../../react-app/src/components/activity/detail/ConfirmationMeter.tsx
|
|
161668
|
-
function
|
|
161659
|
+
function hUe({ value: e, className: t }) {
|
|
161669
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;
|
|
161670
161661
|
return /* @__PURE__ */ v("div", {
|
|
161671
161662
|
className: j("min-w-0", t),
|
|
@@ -161695,7 +161686,7 @@ function _9({ children: e }) {
|
|
|
161695
161686
|
children: e
|
|
161696
161687
|
});
|
|
161697
161688
|
}
|
|
161698
|
-
function
|
|
161689
|
+
function gUe({ detail: e }) {
|
|
161699
161690
|
let { record: t } = e;
|
|
161700
161691
|
return /* @__PURE__ */ v("div", { children: [
|
|
161701
161692
|
/* @__PURE__ */ _(V, { children: "Details" }),
|
|
@@ -161735,7 +161726,7 @@ function _Ue({ detail: e }) {
|
|
|
161735
161726
|
label: "Confirmations",
|
|
161736
161727
|
show: !!e.confirmations,
|
|
161737
161728
|
className: "col-span-2",
|
|
161738
|
-
children: /* @__PURE__ */ _(
|
|
161729
|
+
children: /* @__PURE__ */ _(hUe, { value: e.confirmations ?? "" })
|
|
161739
161730
|
})
|
|
161740
161731
|
] }),
|
|
161741
161732
|
t.kind === "withdrawal" && /* @__PURE__ */ v(_9, { children: [
|
|
@@ -161872,7 +161863,7 @@ function _Ue({ detail: e }) {
|
|
|
161872
161863
|
}
|
|
161873
161864
|
//#endregion
|
|
161874
161865
|
//#region ../../react-app/src/components/activity/detail/AutomationChildList.tsx
|
|
161875
|
-
function
|
|
161866
|
+
function _Ue({ children: e, total: t }) {
|
|
161876
161867
|
let n = t - e.length;
|
|
161877
161868
|
return /* @__PURE__ */ v("div", { children: [
|
|
161878
161869
|
/* @__PURE__ */ _(V, { children: "Transactions" }),
|
|
@@ -161911,7 +161902,7 @@ function vUe({ children: e, total: t }) {
|
|
|
161911
161902
|
}
|
|
161912
161903
|
//#endregion
|
|
161913
161904
|
//#region ../../react-app/src/components/activity/detail/ActivityApprovals.tsx
|
|
161914
|
-
var
|
|
161905
|
+
var vUe = {
|
|
161915
161906
|
approved: {
|
|
161916
161907
|
glyph: "✓",
|
|
161917
161908
|
className: "text-emerald-600 dark:text-emerald-400"
|
|
@@ -161925,7 +161916,7 @@ var yUe = {
|
|
|
161925
161916
|
className: "text-muted-foreground"
|
|
161926
161917
|
}
|
|
161927
161918
|
};
|
|
161928
|
-
function
|
|
161919
|
+
function yUe({ approval: e }) {
|
|
161929
161920
|
let t = e.approvers.filter((e) => e.decision === "approved").length;
|
|
161930
161921
|
return /* @__PURE__ */ v("div", { children: [
|
|
161931
161922
|
/* @__PURE__ */ v("div", {
|
|
@@ -161959,7 +161950,7 @@ function bUe({ approval: e }) {
|
|
|
161959
161950
|
}) : /* @__PURE__ */ _("ul", {
|
|
161960
161951
|
className: "mt-3 space-y-1.5",
|
|
161961
161952
|
children: e.approvers.map((e, t) => {
|
|
161962
|
-
let n =
|
|
161953
|
+
let n = vUe[e.decision];
|
|
161963
161954
|
return /* @__PURE__ */ v("li", {
|
|
161964
161955
|
className: "flex items-center gap-2 text-sm",
|
|
161965
161956
|
children: [
|
|
@@ -161983,19 +161974,19 @@ function bUe({ approval: e }) {
|
|
|
161983
161974
|
}
|
|
161984
161975
|
//#endregion
|
|
161985
161976
|
//#region ../../react-app/src/components/activity/detail/ActivityCompliance.tsx
|
|
161986
|
-
var
|
|
161977
|
+
var bUe = {
|
|
161987
161978
|
Low: "emerald",
|
|
161988
161979
|
Medium: "amber",
|
|
161989
161980
|
High: "red"
|
|
161990
161981
|
};
|
|
161991
|
-
function
|
|
161982
|
+
function xUe({ compliance: e }) {
|
|
161992
161983
|
return /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _(V, { children: "Compliance" }), /* @__PURE__ */ v("div", {
|
|
161993
161984
|
className: "grid grid-cols-2 gap-x-4 gap-y-3.5",
|
|
161994
161985
|
children: [
|
|
161995
161986
|
/* @__PURE__ */ _(Z, {
|
|
161996
161987
|
label: "Risk level",
|
|
161997
161988
|
children: /* @__PURE__ */ _(R7, {
|
|
161998
|
-
tone:
|
|
161989
|
+
tone: bUe[e.level],
|
|
161999
161990
|
children: e.level
|
|
162000
161991
|
})
|
|
162001
161992
|
}),
|
|
@@ -162013,8 +162004,8 @@ function SUe({ compliance: e }) {
|
|
|
162013
162004
|
}
|
|
162014
162005
|
//#endregion
|
|
162015
162006
|
//#region ../../react-app/src/components/activity/detail/ExplorerLink.tsx
|
|
162016
|
-
function
|
|
162017
|
-
let n =
|
|
162007
|
+
function SUe({ network: e, hash: t }) {
|
|
162008
|
+
let n = eUe[e];
|
|
162018
162009
|
return n ? /* @__PURE__ */ v(M7, {
|
|
162019
162010
|
href: n.tx(t),
|
|
162020
162011
|
className: "text-[13px] no-underline hover:underline",
|
|
@@ -162031,7 +162022,7 @@ function CUe({ network: e, hash: t }) {
|
|
|
162031
162022
|
}
|
|
162032
162023
|
//#endregion
|
|
162033
162024
|
//#region ../../react-app/src/components/activity/detail/ActivityOnchainReference.tsx
|
|
162034
|
-
function
|
|
162025
|
+
function CUe({ detail: e }) {
|
|
162035
162026
|
let { record: t } = e, n = t.kind === "deposit" || t.kind === "withdrawal" ? t.network : void 0;
|
|
162036
162027
|
return /* @__PURE__ */ v("div", { children: [
|
|
162037
162028
|
e.txHash && /* @__PURE__ */ v(g, { children: [
|
|
@@ -162048,7 +162039,7 @@ function wUe({ detail: e }) {
|
|
|
162048
162039
|
head: 8,
|
|
162049
162040
|
tail: 6,
|
|
162050
162041
|
asLink: !0
|
|
162051
|
-
}), n && /* @__PURE__ */ _(
|
|
162042
|
+
}), n && /* @__PURE__ */ _(SUe, {
|
|
162052
162043
|
network: n,
|
|
162053
162044
|
hash: e.txHash
|
|
162054
162045
|
})]
|
|
@@ -162078,7 +162069,7 @@ function wUe({ detail: e }) {
|
|
|
162078
162069
|
}
|
|
162079
162070
|
//#endregion
|
|
162080
162071
|
//#region ../../react-app/src/components/activity/detail/ActivityNotes.tsx
|
|
162081
|
-
function
|
|
162072
|
+
function wUe() {
|
|
162082
162073
|
return /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _(V, { children: "Notes & tags" }), /* @__PURE__ */ _("p", {
|
|
162083
162074
|
className: "text-sm text-muted-foreground",
|
|
162084
162075
|
children: "No notes yet. Add a note or tag to categorize this activity for reconciliation."
|
|
@@ -162086,8 +162077,8 @@ function TUe() {
|
|
|
162086
162077
|
}
|
|
162087
162078
|
//#endregion
|
|
162088
162079
|
//#region ../../react-app/src/components/activity/detail/ActivityDetailPanel.tsx
|
|
162089
|
-
function
|
|
162090
|
-
let o = l(() => 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]);
|
|
162091
162082
|
return /* @__PURE__ */ _(n7, {
|
|
162092
162083
|
open: t,
|
|
162093
162084
|
onOpenChange: n,
|
|
@@ -162100,11 +162091,11 @@ function EUe({ record: e, open: t, onOpenChange: n, show: r, onApprove: i, onRej
|
|
|
162100
162091
|
children: /* @__PURE__ */ _(o7, { children: "Activity details" })
|
|
162101
162092
|
}), o && /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(a7, {
|
|
162102
162093
|
className: "px-5 py-4",
|
|
162103
|
-
children: /* @__PURE__ */ _(
|
|
162094
|
+
children: /* @__PURE__ */ _(EUe, {
|
|
162104
162095
|
detail: o,
|
|
162105
162096
|
show: r
|
|
162106
162097
|
})
|
|
162107
|
-
}), /* @__PURE__ */ _(
|
|
162098
|
+
}), /* @__PURE__ */ _(DUe, {
|
|
162108
162099
|
record: o.record,
|
|
162109
162100
|
onApprove: i,
|
|
162110
162101
|
onReject: a
|
|
@@ -162112,13 +162103,13 @@ function EUe({ record: e, open: t, onOpenChange: n, show: r, onApprove: i, onRej
|
|
|
162112
162103
|
})
|
|
162113
162104
|
});
|
|
162114
162105
|
}
|
|
162115
|
-
function
|
|
162116
|
-
let { record: r } = e, i = g9(r), a = t?.timeline === !1 ? null : /* @__PURE__ */ _(
|
|
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, {
|
|
162117
162108
|
children: e.children,
|
|
162118
162109
|
total: r.txCount
|
|
162119
|
-
}) : null, c = e.approval && t?.approvals !== !1 ? /* @__PURE__ */ _(
|
|
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, {});
|
|
162120
162111
|
return /* @__PURE__ */ _(g, { children: [
|
|
162121
|
-
/* @__PURE__ */ _(
|
|
162112
|
+
/* @__PURE__ */ _(dUe, { record: r }, "summary"),
|
|
162122
162113
|
a,
|
|
162123
162114
|
...i ? [c, o] : [o, c],
|
|
162124
162115
|
s,
|
|
@@ -162127,7 +162118,7 @@ function DUe({ detail: e, show: t }) {
|
|
|
162127
162118
|
d
|
|
162128
162119
|
].filter(Boolean).map((e, t) => /* @__PURE__ */ v(n, { children: [t > 0 && /* @__PURE__ */ _(B, {}), e] }, t)) });
|
|
162129
162120
|
}
|
|
162130
|
-
function
|
|
162121
|
+
function DUe({ record: e, onApprove: t, onReject: n }) {
|
|
162131
162122
|
let r = [{
|
|
162132
162123
|
key: "receipt",
|
|
162133
162124
|
label: "Download receipt",
|
|
@@ -162148,16 +162139,16 @@ function OUe({ record: e, onApprove: t, onReject: n }) {
|
|
|
162148
162139
|
}
|
|
162149
162140
|
//#endregion
|
|
162150
162141
|
//#region ../../react-app/src/components/activity/data.ts
|
|
162151
|
-
var
|
|
162152
|
-
TREASURY_ACTIVITY: () =>
|
|
162142
|
+
var OUe = /* @__PURE__ */ A({
|
|
162143
|
+
TREASURY_ACTIVITY: () => PUe,
|
|
162153
162144
|
activityTimestamp: () => v9,
|
|
162154
|
-
default: () =>
|
|
162145
|
+
default: () => PUe
|
|
162155
162146
|
});
|
|
162156
162147
|
function v9(e) {
|
|
162157
162148
|
let t = Date.parse(`${e.date} ${e.time}`);
|
|
162158
162149
|
return Number.isNaN(t) ? 0 : t;
|
|
162159
162150
|
}
|
|
162160
|
-
var
|
|
162151
|
+
var kUe = e9.map((e) => ({
|
|
162161
162152
|
kind: "deposit",
|
|
162162
162153
|
id: `act-${e.id}`,
|
|
162163
162154
|
date: e.date,
|
|
@@ -162168,7 +162159,7 @@ var AUe = e9.map((e) => ({
|
|
|
162168
162159
|
toWallet: e.toWallet,
|
|
162169
162160
|
amount: e.amount,
|
|
162170
162161
|
amountFiat: e.amountFiat
|
|
162171
|
-
})),
|
|
162162
|
+
})), AUe = r9.map((e) => ({
|
|
162172
162163
|
kind: "withdrawal",
|
|
162173
162164
|
id: `act-${e.id}`,
|
|
162174
162165
|
date: e.date,
|
|
@@ -162181,7 +162172,7 @@ var AUe = e9.map((e) => ({
|
|
|
162181
162172
|
amount: e.amount,
|
|
162182
162173
|
amountFiat: e.amountFiat,
|
|
162183
162174
|
initiator: e.initiator
|
|
162184
|
-
})),
|
|
162175
|
+
})), jUe = u9.map((e) => ({
|
|
162185
162176
|
kind: "conversion",
|
|
162186
162177
|
id: `act-${e.id}`,
|
|
162187
162178
|
date: e.date,
|
|
@@ -162194,7 +162185,7 @@ var AUe = e9.map((e) => ({
|
|
|
162194
162185
|
amountFiat: e.fiatValue,
|
|
162195
162186
|
wallet: e.wallet,
|
|
162196
162187
|
initiator: e.initiator
|
|
162197
|
-
})),
|
|
162188
|
+
})), MUe = [
|
|
162198
162189
|
{
|
|
162199
162190
|
kind: "transfer",
|
|
162200
162191
|
id: "act-tr-01",
|
|
@@ -162237,7 +162228,7 @@ var AUe = e9.map((e) => ({
|
|
|
162237
162228
|
amountFiat: "$12,500.00",
|
|
162238
162229
|
initiator: "Priya Nair"
|
|
162239
162230
|
}
|
|
162240
|
-
],
|
|
162231
|
+
], NUe = [
|
|
162241
162232
|
{
|
|
162242
162233
|
kind: "automation",
|
|
162243
162234
|
id: "act-au-01",
|
|
@@ -162298,20 +162289,20 @@ var AUe = e9.map((e) => ({
|
|
|
162298
162289
|
amountFiat: "$4,250.00",
|
|
162299
162290
|
txCount: 57
|
|
162300
162291
|
}
|
|
162301
|
-
],
|
|
162292
|
+
], PUe = [
|
|
162293
|
+
...kUe,
|
|
162302
162294
|
...AUe,
|
|
162303
162295
|
...jUe,
|
|
162304
162296
|
...MUe,
|
|
162305
|
-
...NUe
|
|
162306
|
-
|
|
162307
|
-
].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 = "–";
|
|
162308
162299
|
function b9({ children: e }) {
|
|
162309
162300
|
return /* @__PURE__ */ _("span", {
|
|
162310
162301
|
className: "text-muted-foreground",
|
|
162311
162302
|
children: e
|
|
162312
162303
|
});
|
|
162313
162304
|
}
|
|
162314
|
-
var
|
|
162305
|
+
var IUe = [
|
|
162315
162306
|
{
|
|
162316
162307
|
id: "date",
|
|
162317
162308
|
header: "Date",
|
|
@@ -162363,9 +162354,9 @@ var LUe = [
|
|
|
162363
162354
|
cell: (e) => e.otherWithdrawals
|
|
162364
162355
|
}
|
|
162365
162356
|
];
|
|
162366
|
-
function
|
|
162357
|
+
function LUe({ data: e, pageSize: t }) {
|
|
162367
162358
|
return /* @__PURE__ */ _(P7, {
|
|
162368
|
-
columns:
|
|
162359
|
+
columns: IUe,
|
|
162369
162360
|
data: e,
|
|
162370
162361
|
getRowId: (e) => e.date,
|
|
162371
162362
|
pageSize: t
|
|
@@ -162373,8 +162364,8 @@ function RUe({ data: e, pageSize: t }) {
|
|
|
162373
162364
|
}
|
|
162374
162365
|
//#endregion
|
|
162375
162366
|
//#region ../../react-app/src/components/reports/DonutChart.tsx
|
|
162376
|
-
var
|
|
162377
|
-
function
|
|
162367
|
+
var RUe = 900;
|
|
162368
|
+
function zUe() {
|
|
162378
162369
|
let [e, t] = d(!1);
|
|
162379
162370
|
return o(() => {
|
|
162380
162371
|
if (typeof window > "u" || !window.matchMedia) return;
|
|
@@ -162384,8 +162375,8 @@ function BUe() {
|
|
|
162384
162375
|
return e.addEventListener("change", n), () => e.removeEventListener("change", n);
|
|
162385
162376
|
}, []), e;
|
|
162386
162377
|
}
|
|
162387
|
-
function
|
|
162388
|
-
let s = e.reduce((e, t) => e + t.value, 0) || 1, c = 50 - n / 2, l = 2 * Math.PI * c, f =
|
|
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);
|
|
162389
162380
|
o(() => {
|
|
162390
162381
|
if (!p) {
|
|
162391
162382
|
h(!0);
|
|
@@ -162431,7 +162422,7 @@ function VUe({ segments: e, size: t = 148, thickness: n = 20, gap: r = 2, animat
|
|
|
162431
162422
|
onMouseLeave: () => b(null),
|
|
162432
162423
|
style: {
|
|
162433
162424
|
strokeDasharray: m ? `${i} ${l - i}` : `0 ${l}`,
|
|
162434
|
-
transition: p ? `stroke-dasharray ${o *
|
|
162425
|
+
transition: p ? `stroke-dasharray ${o * RUe}ms linear ${a * RUe}ms` : void 0
|
|
162435
162426
|
}
|
|
162436
162427
|
}, e.label);
|
|
162437
162428
|
})
|
|
@@ -162461,7 +162452,7 @@ function VUe({ segments: e, size: t = 148, thickness: n = 20, gap: r = 2, animat
|
|
|
162461
162452
|
}
|
|
162462
162453
|
//#endregion
|
|
162463
162454
|
//#region ../../react-app/src/components/reports/ExportHistoryList.tsx
|
|
162464
|
-
function
|
|
162455
|
+
function VUe({ label: e, onClick: t }) {
|
|
162465
162456
|
return /* @__PURE__ */ v(g7, { children: [/* @__PURE__ */ _(_7, {
|
|
162466
162457
|
asChild: !0,
|
|
162467
162458
|
children: /* @__PURE__ */ _(M, {
|
|
@@ -162480,7 +162471,7 @@ function HUe({ label: e, onClick: t }) {
|
|
|
162480
162471
|
})
|
|
162481
162472
|
}), /* @__PURE__ */ _(v7, { children: "Download" })] });
|
|
162482
162473
|
}
|
|
162483
|
-
function
|
|
162474
|
+
function HUe({ entries: e, onDownload: t }) {
|
|
162484
162475
|
return /* @__PURE__ */ _(P7, {
|
|
162485
162476
|
columns: [
|
|
162486
162477
|
{
|
|
@@ -162515,7 +162506,7 @@ function UUe({ entries: e, onDownload: t }) {
|
|
|
162515
162506
|
header: "",
|
|
162516
162507
|
align: "end",
|
|
162517
162508
|
headClassName: "w-12",
|
|
162518
|
-
cell: (e) => /* @__PURE__ */ _(
|
|
162509
|
+
cell: (e) => /* @__PURE__ */ _(VUe, {
|
|
162519
162510
|
label: e.file,
|
|
162520
162511
|
onClick: () => t?.(e)
|
|
162521
162512
|
})
|
|
@@ -162527,15 +162518,15 @@ function UUe({ entries: e, onDownload: t }) {
|
|
|
162527
162518
|
}
|
|
162528
162519
|
//#endregion
|
|
162529
162520
|
//#region ../../react-app/src/components/reports/presets.ts
|
|
162530
|
-
var
|
|
162521
|
+
var UUe = /* @__PURE__ */ A({
|
|
162531
162522
|
ACCOUNT_START: () => S9,
|
|
162532
|
-
PRESETS: () =>
|
|
162523
|
+
PRESETS: () => WUe,
|
|
162533
162524
|
REFERENCE_TODAY: () => x9,
|
|
162534
|
-
presetPeriod: () =>
|
|
162525
|
+
presetPeriod: () => GUe
|
|
162535
162526
|
}), x9 = new Date(2026, 6, 15), S9 = new Date(2024, 0, 1), C9 = (e) => (t) => ({
|
|
162536
162527
|
from: fe(t, e - 1),
|
|
162537
162528
|
to: t
|
|
162538
|
-
}),
|
|
162529
|
+
}), WUe = [
|
|
162539
162530
|
{
|
|
162540
162531
|
id: "today",
|
|
162541
162532
|
label: "Today",
|
|
@@ -162627,7 +162618,7 @@ var WUe = /* @__PURE__ */ A({
|
|
|
162627
162618
|
})
|
|
162628
162619
|
}
|
|
162629
162620
|
];
|
|
162630
|
-
function
|
|
162621
|
+
function GUe(e, t = x9) {
|
|
162631
162622
|
let { from: n, to: r } = e.range(t);
|
|
162632
162623
|
return {
|
|
162633
162624
|
mode: "range",
|
|
@@ -162638,7 +162629,7 @@ function KUe(e, t = x9) {
|
|
|
162638
162629
|
}
|
|
162639
162630
|
//#endregion
|
|
162640
162631
|
//#region ../../react-app/src/components/reports/PeriodPicker.tsx
|
|
162641
|
-
var
|
|
162632
|
+
var KUe = [
|
|
162642
162633
|
"Jan",
|
|
162643
162634
|
"Feb",
|
|
162644
162635
|
"Mar",
|
|
@@ -162651,7 +162642,7 @@ var qUe = [
|
|
|
162651
162642
|
"Oct",
|
|
162652
162643
|
"Nov",
|
|
162653
162644
|
"Dec"
|
|
162654
|
-
],
|
|
162645
|
+
], qUe = {
|
|
162655
162646
|
root: "w-full",
|
|
162656
162647
|
nav: "absolute inset-x-0 top-0 flex items-center justify-between px-1",
|
|
162657
162648
|
caption_label: "text-sm font-semibold text-foreground",
|
|
@@ -162663,23 +162654,23 @@ var qUe = [
|
|
|
162663
162654
|
size: "icon"
|
|
162664
162655
|
}), "mx-auto size-8 cursor-pointer rounded-md text-sm font-normal")
|
|
162665
162656
|
};
|
|
162666
|
-
function
|
|
162657
|
+
function JUe(e) {
|
|
162667
162658
|
return e.mode === "month" ? e.month : e.from;
|
|
162668
162659
|
}
|
|
162669
|
-
function
|
|
162660
|
+
function YUe(e) {
|
|
162670
162661
|
if (e.mode === "month") return k(e.month, "MMMM yyyy");
|
|
162671
162662
|
if (e.label) return e.label;
|
|
162672
162663
|
let t = e.from.getFullYear() === e.to.getFullYear();
|
|
162673
162664
|
return `${k(e.from, t ? "MMM d" : "MMM d, yyyy")} – ${k(e.to, "MMM d, yyyy")}`;
|
|
162674
162665
|
}
|
|
162675
|
-
function
|
|
162666
|
+
function XUe({ value: e, onPick: t, onPreview: n }) {
|
|
162676
162667
|
return /* @__PURE__ */ _(TBe, {
|
|
162677
162668
|
className: "h-full w-44 shrink-0 border-r border-cb-line",
|
|
162678
162669
|
viewportClassName: "p-2",
|
|
162679
162670
|
onMouseLeave: () => n(null),
|
|
162680
162671
|
children: /* @__PURE__ */ _("div", {
|
|
162681
162672
|
className: "flex flex-col gap-0.5",
|
|
162682
|
-
children:
|
|
162673
|
+
children: WUe.map((r) => /* @__PURE__ */ _("button", {
|
|
162683
162674
|
type: "button",
|
|
162684
162675
|
onClick: () => t(r),
|
|
162685
162676
|
onMouseEnter: () => n(r),
|
|
@@ -162689,7 +162680,7 @@ function ZUe({ value: e, onPick: t, onPreview: n }) {
|
|
|
162689
162680
|
})
|
|
162690
162681
|
});
|
|
162691
162682
|
}
|
|
162692
|
-
function
|
|
162683
|
+
function ZUe({ draftMonth: e, today: t, onSelect: n }) {
|
|
162693
162684
|
let [r, i] = d(() => (e ?? t).getFullYear());
|
|
162694
162685
|
return /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ v("div", {
|
|
162695
162686
|
className: "mb-3 flex items-center justify-between px-1",
|
|
@@ -162727,7 +162718,7 @@ function QUe({ draftMonth: e, today: t, onSelect: n }) {
|
|
|
162727
162718
|
]
|
|
162728
162719
|
}), /* @__PURE__ */ _("div", {
|
|
162729
162720
|
className: "grid grid-cols-4 gap-1.5",
|
|
162730
|
-
children:
|
|
162721
|
+
children: KUe.map((t, i) => /* @__PURE__ */ _("button", {
|
|
162731
162722
|
type: "button",
|
|
162732
162723
|
onClick: () => n(new Date(r, i, 1)),
|
|
162733
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"),
|
|
@@ -162735,8 +162726,8 @@ function QUe({ draftMonth: e, today: t, onSelect: n }) {
|
|
|
162735
162726
|
}, t))
|
|
162736
162727
|
})] });
|
|
162737
162728
|
}
|
|
162738
|
-
function
|
|
162739
|
-
let [i, a] = d(e.mode === "month" ? "month" : "range"), [o, s] = d(e.mode === "month" ? e.month : ue(
|
|
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" ? {
|
|
162740
162731
|
from: e.from,
|
|
162741
162732
|
to: e.to
|
|
162742
162733
|
} : void 0), [u, f] = d(null), p = !!c?.from && !!c?.to, m = i === "month" || p;
|
|
@@ -162755,9 +162746,9 @@ function $Ue({ value: e, today: t, onChange: n, onReset: r }) {
|
|
|
162755
162746
|
}
|
|
162756
162747
|
return /* @__PURE__ */ v("div", {
|
|
162757
162748
|
className: "flex h-[360px]",
|
|
162758
|
-
children: [/* @__PURE__ */ _(
|
|
162749
|
+
children: [/* @__PURE__ */ _(XUe, {
|
|
162759
162750
|
value: e,
|
|
162760
|
-
onPick: (e) => n(
|
|
162751
|
+
onPick: (e) => n(GUe(e, t)),
|
|
162761
162752
|
onPreview: h
|
|
162762
162753
|
}), /* @__PURE__ */ v("div", {
|
|
162763
162754
|
className: "flex h-full w-72 flex-col p-3",
|
|
@@ -162781,7 +162772,7 @@ function $Ue({ value: e, today: t, onChange: n, onReset: r }) {
|
|
|
162781
162772
|
/* @__PURE__ */ _(h7, {
|
|
162782
162773
|
value: "month",
|
|
162783
162774
|
className: "mt-1 flex-1",
|
|
162784
|
-
children: /* @__PURE__ */ _(
|
|
162775
|
+
children: /* @__PURE__ */ _(ZUe, {
|
|
162785
162776
|
draftMonth: o,
|
|
162786
162777
|
today: t,
|
|
162787
162778
|
onSelect: s
|
|
@@ -162796,9 +162787,9 @@ function $Ue({ value: e, today: t, onChange: n, onReset: r }) {
|
|
|
162796
162787
|
onSelect: (e) => {
|
|
162797
162788
|
f(null), l(e);
|
|
162798
162789
|
},
|
|
162799
|
-
defaultMonth:
|
|
162790
|
+
defaultMonth: JUe(e),
|
|
162800
162791
|
className: "w-full p-0",
|
|
162801
|
-
classNames:
|
|
162792
|
+
classNames: qUe
|
|
162802
162793
|
})
|
|
162803
162794
|
})
|
|
162804
162795
|
]
|
|
@@ -162819,7 +162810,7 @@ function $Ue({ value: e, today: t, onChange: n, onReset: r }) {
|
|
|
162819
162810
|
})]
|
|
162820
162811
|
});
|
|
162821
162812
|
}
|
|
162822
|
-
function
|
|
162813
|
+
function $Ue({ value: e, onChange: t, today: n = x9, className: r }) {
|
|
162823
162814
|
let [i, a] = d(!1);
|
|
162824
162815
|
function o(n) {
|
|
162825
162816
|
if (e.mode === "month") t({
|
|
@@ -162851,12 +162842,12 @@ function eWe({ value: e, onChange: t, today: n = x9, className: r }) {
|
|
|
162851
162842
|
color: "currentColor",
|
|
162852
162843
|
strokeWidth: 2,
|
|
162853
162844
|
className: "text-muted-foreground"
|
|
162854
|
-
}),
|
|
162845
|
+
}), YUe(e)]
|
|
162855
162846
|
})
|
|
162856
162847
|
}), /* @__PURE__ */ _($5, {
|
|
162857
162848
|
align: "end",
|
|
162858
162849
|
className: "w-auto p-0",
|
|
162859
|
-
children: /* @__PURE__ */ _(
|
|
162850
|
+
children: /* @__PURE__ */ _(QUe, {
|
|
162860
162851
|
value: e,
|
|
162861
162852
|
today: n,
|
|
162862
162853
|
onChange: (e) => {
|
|
@@ -162900,25 +162891,25 @@ function eWe({ value: e, onChange: t, today: n = x9, className: r }) {
|
|
|
162900
162891
|
}
|
|
162901
162892
|
//#endregion
|
|
162902
162893
|
//#region ../../react-app/src/components/reports/data.ts
|
|
162903
|
-
var
|
|
162904
|
-
ASSET_COLORS: () =>
|
|
162905
|
-
ASSET_COLOR_FALLBACK: () =>
|
|
162906
|
-
DAILY_BALANCES: () =>
|
|
162907
|
-
EXPORT_HISTORY: () =>
|
|
162908
|
-
REPORT_SUMMARIES: () =>
|
|
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,
|
|
162909
162900
|
assetColor: () => w9
|
|
162910
|
-
}),
|
|
162901
|
+
}), tWe = {
|
|
162911
162902
|
USDT: "#2B7DE7",
|
|
162912
162903
|
USDC: "#38BDF8",
|
|
162913
162904
|
BTC: "#3730A3",
|
|
162914
162905
|
ETH: "#7C6BF5",
|
|
162915
162906
|
SOL: "#22D3EE",
|
|
162916
162907
|
XRP: "#C4B5FD"
|
|
162917
|
-
},
|
|
162908
|
+
}, nWe = "#94A3B8";
|
|
162918
162909
|
function w9(e) {
|
|
162919
|
-
return
|
|
162910
|
+
return tWe[e] ?? "#94A3B8";
|
|
162920
162911
|
}
|
|
162921
|
-
var
|
|
162912
|
+
var rWe = [
|
|
162922
162913
|
{
|
|
162923
162914
|
label: "Total Volume",
|
|
162924
162915
|
total: "$1,284.60",
|
|
@@ -163005,7 +162996,7 @@ var iWe = [
|
|
|
163005
162996
|
}
|
|
163006
162997
|
]
|
|
163007
162998
|
}
|
|
163008
|
-
],
|
|
162999
|
+
], iWe = [
|
|
163009
163000
|
{
|
|
163010
163001
|
date: "2026-07-02",
|
|
163011
163002
|
openingBalance: null,
|
|
@@ -163036,7 +163027,7 @@ var iWe = [
|
|
|
163036
163027
|
otherDeposits: "$0.00",
|
|
163037
163028
|
otherWithdrawals: "$0.00"
|
|
163038
163029
|
}
|
|
163039
|
-
],
|
|
163030
|
+
], aWe = [
|
|
163040
163031
|
{
|
|
163041
163032
|
id: "daily-balances-jun-2026",
|
|
163042
163033
|
file: "daily-balances-jun-2026.csv",
|
|
@@ -163058,7 +163049,7 @@ var iWe = [
|
|
|
163058
163049
|
];
|
|
163059
163050
|
//#endregion
|
|
163060
163051
|
//#region ../../react-app/src/components/reports/ReportSummaryCard.tsx
|
|
163061
|
-
function
|
|
163052
|
+
function oWe({ summary: e }) {
|
|
163062
163053
|
return /* @__PURE__ */ _("div", {
|
|
163063
163054
|
className: "flex flex-wrap justify-center gap-x-4 gap-y-1.5",
|
|
163064
163055
|
children: e.slices.map((e) => /* @__PURE__ */ v("span", {
|
|
@@ -163080,7 +163071,7 @@ function sWe({ summary: e }) {
|
|
|
163080
163071
|
}, e.code))
|
|
163081
163072
|
});
|
|
163082
163073
|
}
|
|
163083
|
-
function
|
|
163074
|
+
function sWe({ summary: e, emphasized: t = !0, className: n }) {
|
|
163084
163075
|
let r = e.slices.map((e) => ({
|
|
163085
163076
|
label: e.code,
|
|
163086
163077
|
value: e.percent,
|
|
@@ -163100,19 +163091,19 @@ function cWe({ summary: e, emphasized: t = !0, className: n }) {
|
|
|
163100
163091
|
}),
|
|
163101
163092
|
/* @__PURE__ */ _("div", {
|
|
163102
163093
|
className: "mt-4 flex justify-center",
|
|
163103
|
-
children: /* @__PURE__ */ _(
|
|
163094
|
+
children: /* @__PURE__ */ _(BUe, { segments: r })
|
|
163104
163095
|
}),
|
|
163105
163096
|
/* @__PURE__ */ _("div", {
|
|
163106
163097
|
className: "mt-5",
|
|
163107
|
-
children: /* @__PURE__ */ _(
|
|
163098
|
+
children: /* @__PURE__ */ _(oWe, { summary: e })
|
|
163108
163099
|
})
|
|
163109
163100
|
]
|
|
163110
163101
|
});
|
|
163111
163102
|
}
|
|
163112
|
-
function
|
|
163103
|
+
function cWe({ summaries: e, className: t }) {
|
|
163113
163104
|
return /* @__PURE__ */ _("div", {
|
|
163114
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),
|
|
163115
|
-
children: e.map((e, t) => /* @__PURE__ */ _(
|
|
163106
|
+
children: e.map((e, t) => /* @__PURE__ */ _(sWe, {
|
|
163116
163107
|
summary: e,
|
|
163117
163108
|
emphasized: t === 0
|
|
163118
163109
|
}, e.label))
|
|
@@ -163120,7 +163111,7 @@ function lWe({ summaries: e, className: t }) {
|
|
|
163120
163111
|
}
|
|
163121
163112
|
//#endregion
|
|
163122
163113
|
//#region ../../react-app/src/components/reports/ReportsSummaryEmpty.tsx
|
|
163123
|
-
function
|
|
163114
|
+
function lWe({ className: e }) {
|
|
163124
163115
|
return /* @__PURE__ */ v("div", {
|
|
163125
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),
|
|
163126
163117
|
children: [/* @__PURE__ */ _("div", {
|
|
@@ -163142,9 +163133,9 @@ function uWe({ className: e }) {
|
|
|
163142
163133
|
}
|
|
163143
163134
|
//#endregion
|
|
163144
163135
|
//#region ../../react-app/src/components/reports/types.ts
|
|
163145
|
-
var
|
|
163146
|
-
default: () =>
|
|
163147
|
-
getReportData: () =>
|
|
163136
|
+
var uWe = /* @__PURE__ */ A({}), dWe = /* @__PURE__ */ A({
|
|
163137
|
+
default: () => CWe,
|
|
163138
|
+
getReportData: () => CWe
|
|
163148
163139
|
}), T9 = [
|
|
163149
163140
|
"USDT",
|
|
163150
163141
|
"USDC",
|
|
@@ -163152,8 +163143,8 @@ var dWe = /* @__PURE__ */ A({}), fWe = /* @__PURE__ */ A({
|
|
|
163152
163143
|
"ETH",
|
|
163153
163144
|
"SOL",
|
|
163154
163145
|
"XRP"
|
|
163155
|
-
],
|
|
163156
|
-
function
|
|
163146
|
+
], fWe = S9, pWe = x9;
|
|
163147
|
+
function mWe(e) {
|
|
163157
163148
|
let t = e >>> 0;
|
|
163158
163149
|
return () => {
|
|
163159
163150
|
t |= 0, t = t + 1831565813 | 0;
|
|
@@ -163161,12 +163152,12 @@ function hWe(e) {
|
|
|
163161
163152
|
return e = e + Math.imul(e ^ e >>> 7, 61 | e) ^ e, ((e ^ e >>> 14) >>> 0) / 4294967296;
|
|
163162
163153
|
};
|
|
163163
163154
|
}
|
|
163164
|
-
function
|
|
163155
|
+
function hWe(e) {
|
|
163165
163156
|
if (e.mode === "month") return e.month.getFullYear() * 100 + (e.month.getMonth() + 1);
|
|
163166
163157
|
let t = 864e5, n = Math.floor(e.from.getTime() / t), r = Math.floor(e.to.getTime() / t);
|
|
163167
163158
|
return n % 1e5 * 1e3 + r % 1e3;
|
|
163168
163159
|
}
|
|
163169
|
-
function
|
|
163160
|
+
function gWe(e) {
|
|
163170
163161
|
return e.mode === "month" ? {
|
|
163171
163162
|
start: ue(e.month),
|
|
163172
163163
|
end: O(e.month)
|
|
@@ -163187,13 +163178,13 @@ function D9(e) {
|
|
|
163187
163178
|
function O9(e) {
|
|
163188
163179
|
return Math.round(e).toLocaleString("en-US");
|
|
163189
163180
|
}
|
|
163190
|
-
function
|
|
163181
|
+
function _We(e, t) {
|
|
163191
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;
|
|
163192
163183
|
return r.forEach((e, t) => {
|
|
163193
163184
|
e > r[a] && (a = t);
|
|
163194
163185
|
}), r[a] += i, r.map((e) => e / 100);
|
|
163195
163186
|
}
|
|
163196
|
-
function
|
|
163187
|
+
function vWe(e, t) {
|
|
163197
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) => ({
|
|
163198
163189
|
i: t,
|
|
163199
163190
|
frac: e - Math.floor(e)
|
|
@@ -163201,7 +163192,7 @@ function yWe(e, t) {
|
|
|
163201
163192
|
for (let e = 0; e < a && e < o.length; e++) s[o[e].i]++;
|
|
163202
163193
|
return s;
|
|
163203
163194
|
}
|
|
163204
|
-
function
|
|
163195
|
+
function yWe(e, t) {
|
|
163205
163196
|
if (t <= 0) return e.map(() => 0);
|
|
163206
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) => ({
|
|
163207
163198
|
i: t,
|
|
@@ -163211,7 +163202,7 @@ function bWe(e, t) {
|
|
|
163211
163202
|
return o;
|
|
163212
163203
|
}
|
|
163213
163204
|
function k9(e, t, n, r) {
|
|
163214
|
-
let i =
|
|
163205
|
+
let i = yWe(n, t), a = T9.map((e, t) => ({
|
|
163215
163206
|
code: e,
|
|
163216
163207
|
percent: i[t],
|
|
163217
163208
|
amount: r(n[t])
|
|
@@ -163222,7 +163213,7 @@ function k9(e, t, n, r) {
|
|
|
163222
163213
|
slices: a
|
|
163223
163214
|
};
|
|
163224
163215
|
}
|
|
163225
|
-
function
|
|
163216
|
+
function bWe(e) {
|
|
163226
163217
|
return e === "transactions" ? [
|
|
163227
163218
|
"Total Transactions",
|
|
163228
163219
|
"Total Deposits",
|
|
@@ -163233,15 +163224,15 @@ function xWe(e) {
|
|
|
163233
163224
|
"Total Withdrawals"
|
|
163234
163225
|
];
|
|
163235
163226
|
}
|
|
163236
|
-
function
|
|
163227
|
+
function xWe(e) {
|
|
163237
163228
|
let t = e === "transactions" ? "0" : "$0.00";
|
|
163238
|
-
return
|
|
163229
|
+
return bWe(e).map((e) => ({
|
|
163239
163230
|
label: e,
|
|
163240
163231
|
total: t,
|
|
163241
163232
|
slices: []
|
|
163242
163233
|
}));
|
|
163243
163234
|
}
|
|
163244
|
-
function
|
|
163235
|
+
function SWe(e, t, n) {
|
|
163245
163236
|
let r = (e) => n() < e, i = D({
|
|
163246
163237
|
start: e,
|
|
163247
163238
|
end: t
|
|
@@ -163260,16 +163251,16 @@ function CWe(e, t, n) {
|
|
|
163260
163251
|
return a = l, u;
|
|
163261
163252
|
}).reverse();
|
|
163262
163253
|
}
|
|
163263
|
-
function
|
|
163264
|
-
let { start: n, end: r } =
|
|
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;
|
|
163265
163256
|
if (o <= 0) return {
|
|
163266
163257
|
isEmpty: !0,
|
|
163267
|
-
summaries:
|
|
163258
|
+
summaries: xWe(t),
|
|
163268
163259
|
dailyBalances: []
|
|
163269
163260
|
};
|
|
163270
|
-
let s =
|
|
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);
|
|
163271
163262
|
if (t === "transactions") {
|
|
163272
|
-
let e = Math.max(1, Math.round(o * (6 + c() * 8))), t = Math.round(e * (.2 + c() * .3)), n =
|
|
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]);
|
|
163273
163264
|
return {
|
|
163274
163265
|
isEmpty: !1,
|
|
163275
163266
|
summaries: [
|
|
@@ -163280,7 +163271,7 @@ function wWe(e, t = "volume") {
|
|
|
163280
163271
|
dailyBalances: s
|
|
163281
163272
|
};
|
|
163282
163273
|
}
|
|
163283
|
-
let m = E9(o * (8 + c() * 6)), h = E9(m * (.15 + c() * .22)), g =
|
|
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]));
|
|
163284
163275
|
return {
|
|
163285
163276
|
isEmpty: !1,
|
|
163286
163277
|
summaries: [
|
|
@@ -163293,7 +163284,7 @@ function wWe(e, t = "volume") {
|
|
|
163293
163284
|
}
|
|
163294
163285
|
//#endregion
|
|
163295
163286
|
//#region ../../react-app/src/components/balances/WalletRowActions.tsx
|
|
163296
|
-
var
|
|
163287
|
+
var wWe = [
|
|
163297
163288
|
{
|
|
163298
163289
|
id: "withdraw",
|
|
163299
163290
|
label: "Withdraw",
|
|
@@ -163313,7 +163304,7 @@ var TWe = [
|
|
|
163313
163304
|
function A9({ variant: e = "menu", label: t, onAction: n }) {
|
|
163314
163305
|
return e === "icons" ? /* @__PURE__ */ _("div", {
|
|
163315
163306
|
className: "flex items-center justify-end gap-0.5",
|
|
163316
|
-
children:
|
|
163307
|
+
children: wWe.map(({ id: e, label: r, icon: i }) => /* @__PURE__ */ v(g7, { children: [/* @__PURE__ */ _(_7, {
|
|
163317
163308
|
asChild: !0,
|
|
163318
163309
|
children: /* @__PURE__ */ _(M, {
|
|
163319
163310
|
variant: "ghost",
|
|
@@ -163348,7 +163339,7 @@ function A9({ variant: e = "menu", label: t, onAction: n }) {
|
|
|
163348
163339
|
}), /* @__PURE__ */ _(z5, {
|
|
163349
163340
|
align: "end",
|
|
163350
163341
|
className: "min-w-[11rem] p-1.5",
|
|
163351
|
-
children:
|
|
163342
|
+
children: wWe.map(({ id: e, label: t, icon: r }) => /* @__PURE__ */ v(B5, {
|
|
163352
163343
|
onSelect: () => n?.(e),
|
|
163353
163344
|
className: "cursor-pointer gap-2.5 rounded-md px-2.5 py-2 text-sm",
|
|
163354
163345
|
children: [/* @__PURE__ */ _(S, {
|
|
@@ -163364,7 +163355,7 @@ function A9({ variant: e = "menu", label: t, onAction: n }) {
|
|
|
163364
163355
|
}
|
|
163365
163356
|
//#endregion
|
|
163366
163357
|
//#region ../../react-app/src/components/balances/WalletBalancesTable.tsx
|
|
163367
|
-
var j9 = (e) => e && parseFloat(e.replace(/[^0-9.-]/g, "")) || 0,
|
|
163358
|
+
var j9 = (e) => e && parseFloat(e.replace(/[^0-9.-]/g, "")) || 0, TWe = (e) => {
|
|
163368
163359
|
let t = e.indexOf(".");
|
|
163369
163360
|
return t < 0 ? 0 : e.length - t - 1;
|
|
163370
163361
|
}, M9 = (e, t) => e.toLocaleString("en-US", {
|
|
@@ -163385,12 +163376,12 @@ function F9(e, t) {
|
|
|
163385
163376
|
pendingFiat: r > 0 ? N9(n.reduce((e, t) => e + j9(t.pendingFiat), 0)) : void 0
|
|
163386
163377
|
};
|
|
163387
163378
|
}
|
|
163388
|
-
var
|
|
163379
|
+
var EWe = (e) => {
|
|
163389
163380
|
let t = e?.note ? j9(e.note) : 0;
|
|
163390
163381
|
return t > 0 && j9(e?.amountFiat) < t;
|
|
163391
163382
|
};
|
|
163392
|
-
function
|
|
163393
|
-
let t =
|
|
163383
|
+
function DWe(e) {
|
|
163384
|
+
let t = TWe(e.wallets[0]?.amount ?? "0"), n = [], r = {};
|
|
163394
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;
|
|
163395
163386
|
let i = n.map((e) => {
|
|
163396
163387
|
let n = r[e];
|
|
@@ -163400,7 +163391,7 @@ function OWe(e) {
|
|
|
163400
163391
|
main: F9([n.main], t),
|
|
163401
163392
|
payout: F9([n.payout], t),
|
|
163402
163393
|
total: F9([n.main, n.payout], t),
|
|
163403
|
-
belowMin:
|
|
163394
|
+
belowMin: EWe(n.main) || EWe(n.payout)
|
|
163404
163395
|
};
|
|
163405
163396
|
}), a = {
|
|
163406
163397
|
amount: M9(0, t),
|
|
@@ -163441,7 +163432,7 @@ function I9({ money: e, code: t, strong: n = !1, large: r = !1, muted: i = !1, a
|
|
|
163441
163432
|
})
|
|
163442
163433
|
});
|
|
163443
163434
|
}
|
|
163444
|
-
function
|
|
163435
|
+
function OWe({ balances: e, actionsVariant: t = "menu", className: r }) {
|
|
163445
163436
|
let { setExtension: i, stickyTop: a } = D7(), s = u(null), [c, l] = d(/* @__PURE__ */ new Set()), f = (e) => l((t) => {
|
|
163446
163437
|
let n = new Set(t);
|
|
163447
163438
|
return n.has(e) ? n.delete(e) : n.add(e), n;
|
|
@@ -163461,7 +163452,7 @@ function kWe({ balances: e, actionsVariant: t = "menu", className: r }) {
|
|
|
163461
163452
|
n.disconnect(), i(0);
|
|
163462
163453
|
};
|
|
163463
163454
|
}, [i, a]);
|
|
163464
|
-
let p = e.map(
|
|
163455
|
+
let p = e.map(DWe);
|
|
163465
163456
|
return /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("div", {
|
|
163466
163457
|
ref: s,
|
|
163467
163458
|
"aria-hidden": !0,
|
|
@@ -163644,23 +163635,23 @@ function kWe({ balances: e, actionsVariant: t = "menu", className: r }) {
|
|
|
163644
163635
|
}
|
|
163645
163636
|
//#endregion
|
|
163646
163637
|
//#region ../../react-app/src/components/balances/WalletBalancesTableV2.tsx
|
|
163647
|
-
var
|
|
163638
|
+
var kWe = 6, L9 = [
|
|
163648
163639
|
"low",
|
|
163649
163640
|
"medium",
|
|
163650
163641
|
"high",
|
|
163651
163642
|
"payout"
|
|
163652
|
-
],
|
|
163643
|
+
], AWe = {
|
|
163653
163644
|
low: "Low Risk",
|
|
163654
163645
|
medium: "Medium Risk",
|
|
163655
163646
|
high: "High Risk",
|
|
163656
163647
|
payout: "Payout"
|
|
163657
163648
|
};
|
|
163658
|
-
function
|
|
163649
|
+
function jWe(e) {
|
|
163659
163650
|
if (e.tier) return e.tier;
|
|
163660
163651
|
let t = e.name.toLowerCase();
|
|
163661
163652
|
return t.includes("payout") ? "payout" : t.includes("high") ? "high" : t.includes("medium") ? "medium" : "low";
|
|
163662
163653
|
}
|
|
163663
|
-
var R9 = (e) => e && parseFloat(e.replace(/[^0-9.-]/g, "")) || 0,
|
|
163654
|
+
var R9 = (e) => e && parseFloat(e.replace(/[^0-9.-]/g, "")) || 0, MWe = (e) => {
|
|
163664
163655
|
let t = e.indexOf(".");
|
|
163665
163656
|
return t < 0 ? 0 : e.length - t - 1;
|
|
163666
163657
|
}, z9 = (e, t) => e.toLocaleString("en-US", {
|
|
@@ -163681,11 +163672,11 @@ function V9(e, t) {
|
|
|
163681
163672
|
pendingFiat: r > 0 ? B9(n.reduce((e, t) => e + R9(t.pendingFiat), 0)) : void 0
|
|
163682
163673
|
};
|
|
163683
163674
|
}
|
|
163684
|
-
var
|
|
163675
|
+
var NWe = (e) => {
|
|
163685
163676
|
let t = e?.note ? R9(e.note) : 0;
|
|
163686
163677
|
return t > 0 && R9(e?.amountFiat) < t;
|
|
163687
163678
|
};
|
|
163688
|
-
function
|
|
163679
|
+
function PWe(e, t) {
|
|
163689
163680
|
return {
|
|
163690
163681
|
low: V9([e.low], t),
|
|
163691
163682
|
medium: V9([e.medium], t),
|
|
@@ -163693,23 +163684,23 @@ function FWe(e, t) {
|
|
|
163693
163684
|
payout: V9([e.payout], t)
|
|
163694
163685
|
};
|
|
163695
163686
|
}
|
|
163696
|
-
function
|
|
163697
|
-
let t = Math.min(
|
|
163687
|
+
function FWe(e) {
|
|
163688
|
+
let t = Math.min(MWe(e.wallets[0]?.amount ?? "0"), kWe), n = [], r = {};
|
|
163698
163689
|
for (let t of e.wallets) r[t.network] || (r[t.network] = {
|
|
163699
163690
|
networkName: t.networkName,
|
|
163700
163691
|
tiers: {}
|
|
163701
|
-
}, n.push(t.network)), r[t.network].tiers[
|
|
163692
|
+
}, n.push(t.network)), r[t.network].tiers[jWe(t)] = t;
|
|
163702
163693
|
let i = n.map((e) => {
|
|
163703
163694
|
let n = r[e];
|
|
163704
163695
|
return {
|
|
163705
163696
|
network: e,
|
|
163706
163697
|
networkName: n.networkName,
|
|
163707
|
-
tiers:
|
|
163698
|
+
tiers: PWe(n.tiers, t),
|
|
163708
163699
|
total: V9(Object.values(n.tiers), t),
|
|
163709
|
-
belowMin: L9.some((e) =>
|
|
163700
|
+
belowMin: L9.some((e) => NWe(n.tiers[e]))
|
|
163710
163701
|
};
|
|
163711
163702
|
}), a = {};
|
|
163712
|
-
for (let t of e.wallets) (a[
|
|
163703
|
+
for (let t of e.wallets) (a[jWe(t)] ??= []).push(t);
|
|
163713
163704
|
let o = {
|
|
163714
163705
|
amount: z9(0, t),
|
|
163715
163706
|
fiat: B9(0)
|
|
@@ -163753,9 +163744,9 @@ function H9({ money: e, code: t, strong: n = !1, large: r = !1, muted: i = !1, a
|
|
|
163753
163744
|
})
|
|
163754
163745
|
});
|
|
163755
163746
|
}
|
|
163756
|
-
function
|
|
163747
|
+
function IWe({ balances: e, actionsVariant: t = "menu", tierLabels: r, className: i }) {
|
|
163757
163748
|
let a = {
|
|
163758
|
-
...
|
|
163749
|
+
...AWe,
|
|
163759
163750
|
...r
|
|
163760
163751
|
}, { setExtension: s, stickyTop: c } = D7(), l = u(null), [f, p] = d(/* @__PURE__ */ new Set()), m = (e) => p((t) => {
|
|
163761
163752
|
let n = new Set(t);
|
|
@@ -163776,7 +163767,7 @@ function LWe({ balances: e, actionsVariant: t = "menu", tierLabels: r, className
|
|
|
163776
163767
|
n.disconnect(), s(0);
|
|
163777
163768
|
};
|
|
163778
163769
|
}, [s, c]);
|
|
163779
|
-
let h = e.map(
|
|
163770
|
+
let h = e.map(FWe);
|
|
163780
163771
|
return /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _("div", {
|
|
163781
163772
|
ref: l,
|
|
163782
163773
|
"aria-hidden": !0,
|
|
@@ -163977,7 +163968,7 @@ function W9({ totalAssets: e, totalPending: t, activeWallets: n, totalWallets: r
|
|
|
163977
163968
|
}
|
|
163978
163969
|
//#endregion
|
|
163979
163970
|
//#region ../../react-app/src/components/balances/data.ts
|
|
163980
|
-
var
|
|
163971
|
+
var LWe = /* @__PURE__ */ A({
|
|
163981
163972
|
CURRENCY_BALANCES: () => G9,
|
|
163982
163973
|
balancesTotals: () => K9
|
|
163983
163974
|
}), G9 = [
|
|
@@ -164222,10 +164213,10 @@ function K9(e) {
|
|
|
164222
164213
|
}
|
|
164223
164214
|
//#endregion
|
|
164224
164215
|
//#region ../../react-app/src/components/balances/types.ts
|
|
164225
|
-
var
|
|
164226
|
-
RECENT_TRANSACTIONS: () =>
|
|
164227
|
-
default: () =>
|
|
164228
|
-
}),
|
|
164216
|
+
var RWe = /* @__PURE__ */ A({}), zWe = /* @__PURE__ */ A({
|
|
164217
|
+
RECENT_TRANSACTIONS: () => BWe,
|
|
164218
|
+
default: () => BWe
|
|
164219
|
+
}), BWe = [
|
|
164229
164220
|
{
|
|
164230
164221
|
id: "rtx-1",
|
|
164231
164222
|
label: "Manual Deposit",
|
|
@@ -164336,12 +164327,12 @@ var zWe = /* @__PURE__ */ A({}), BWe = /* @__PURE__ */ A({
|
|
|
164336
164327
|
time: "9:02 AM",
|
|
164337
164328
|
txHash: "0xc5a7b9d1e3f5c7a9b1e3f5c7a9b1d3e5f7c9a1b3d5e7f9c1a3b5d7e9f1c3a5b7d9e1"
|
|
164338
164329
|
}
|
|
164339
|
-
],
|
|
164330
|
+
], VWe = {
|
|
164340
164331
|
default: "Default",
|
|
164341
164332
|
highest: "Highest balance",
|
|
164342
164333
|
az: "A–Z"
|
|
164343
164334
|
}, q9 = (e) => parseFloat(e.replace(/[^0-9.-]/g, "")) || 0;
|
|
164344
|
-
function
|
|
164335
|
+
function HWe({ checked: e, onChange: t, label: n }) {
|
|
164345
164336
|
return /* @__PURE__ */ v("button", {
|
|
164346
164337
|
type: "button",
|
|
164347
164338
|
role: "switch",
|
|
@@ -164357,7 +164348,7 @@ function UWe({ checked: e, onChange: t, label: n }) {
|
|
|
164357
164348
|
})]
|
|
164358
164349
|
});
|
|
164359
164350
|
}
|
|
164360
|
-
function
|
|
164351
|
+
function UWe() {
|
|
164361
164352
|
let [e, t] = d("default"), [n, r] = d(!1), i = l(() => K9(G9), []), a = l(() => {
|
|
164362
164353
|
let t = G9.map((e) => ({ ...e }));
|
|
164363
164354
|
return n && (t = t.map((e) => ({
|
|
@@ -164414,7 +164405,7 @@ function WWe() {
|
|
|
164414
164405
|
className: "cursor-pointer shadow-xs",
|
|
164415
164406
|
children: [
|
|
164416
164407
|
"Sort: ",
|
|
164417
|
-
|
|
164408
|
+
VWe[e],
|
|
164418
164409
|
/* @__PURE__ */ _(S, {
|
|
164419
164410
|
icon: N,
|
|
164420
164411
|
size: 16,
|
|
@@ -164443,7 +164434,7 @@ function WWe() {
|
|
|
164443
164434
|
})
|
|
164444
164435
|
]
|
|
164445
164436
|
})
|
|
164446
|
-
})] }), /* @__PURE__ */ _(
|
|
164437
|
+
})] }), /* @__PURE__ */ _(HWe, {
|
|
164447
164438
|
checked: n,
|
|
164448
164439
|
onChange: r,
|
|
164449
164440
|
label: "Hide zero balances"
|
|
@@ -164453,14 +164444,14 @@ function WWe() {
|
|
|
164453
164444
|
onDownload: (e) => console.log("reconciliation", e)
|
|
164454
164445
|
})]
|
|
164455
164446
|
}),
|
|
164456
|
-
/* @__PURE__ */ _(
|
|
164447
|
+
/* @__PURE__ */ _(OWe, { balances: a })
|
|
164457
164448
|
]
|
|
164458
164449
|
})]
|
|
164459
164450
|
});
|
|
164460
164451
|
}
|
|
164461
164452
|
//#endregion
|
|
164462
164453
|
//#region ../../react-app/src/components/balances/dataV2.ts
|
|
164463
|
-
var
|
|
164454
|
+
var WWe = [
|
|
164464
164455
|
{
|
|
164465
164456
|
code: "BTC",
|
|
164466
164457
|
name: "Bitcoin",
|
|
@@ -164734,12 +164725,12 @@ var GWe = [
|
|
|
164734
164725
|
}
|
|
164735
164726
|
]
|
|
164736
164727
|
}
|
|
164737
|
-
],
|
|
164728
|
+
], GWe = {
|
|
164738
164729
|
default: "Default",
|
|
164739
164730
|
highest: "Highest balance",
|
|
164740
164731
|
az: "A–Z"
|
|
164741
164732
|
}, J9 = (e) => parseFloat(e.replace(/[^0-9.-]/g, "")) || 0;
|
|
164742
|
-
function
|
|
164733
|
+
function KWe({ checked: e, onChange: t, label: n }) {
|
|
164743
164734
|
return /* @__PURE__ */ v("button", {
|
|
164744
164735
|
type: "button",
|
|
164745
164736
|
role: "switch",
|
|
@@ -164755,9 +164746,9 @@ function qWe({ checked: e, onChange: t, label: n }) {
|
|
|
164755
164746
|
})]
|
|
164756
164747
|
});
|
|
164757
164748
|
}
|
|
164758
|
-
function
|
|
164759
|
-
let [e, t] = d("default"), [n, r] = d(!1), i = l(() => K9(
|
|
164760
|
-
let t =
|
|
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 }));
|
|
164761
164752
|
return n && (t = t.map((e) => ({
|
|
164762
164753
|
...e,
|
|
164763
164754
|
wallets: e.wallets.filter((e) => J9(e.amount) > 0)
|
|
@@ -164812,7 +164803,7 @@ function JWe() {
|
|
|
164812
164803
|
className: "cursor-pointer shadow-xs",
|
|
164813
164804
|
children: [
|
|
164814
164805
|
"Sort: ",
|
|
164815
|
-
|
|
164806
|
+
GWe[e],
|
|
164816
164807
|
/* @__PURE__ */ _(S, {
|
|
164817
164808
|
icon: N,
|
|
164818
164809
|
size: 16,
|
|
@@ -164841,7 +164832,7 @@ function JWe() {
|
|
|
164841
164832
|
})
|
|
164842
164833
|
]
|
|
164843
164834
|
})
|
|
164844
|
-
})] }), /* @__PURE__ */ _(
|
|
164835
|
+
})] }), /* @__PURE__ */ _(KWe, {
|
|
164845
164836
|
checked: n,
|
|
164846
164837
|
onChange: r,
|
|
164847
164838
|
label: "Hide zero balances"
|
|
@@ -164851,7 +164842,7 @@ function JWe() {
|
|
|
164851
164842
|
onDownload: (e) => console.log("reconciliation", e)
|
|
164852
164843
|
})]
|
|
164853
164844
|
}),
|
|
164854
|
-
/* @__PURE__ */ _(
|
|
164845
|
+
/* @__PURE__ */ _(IWe, { balances: a })
|
|
164855
164846
|
]
|
|
164856
164847
|
})]
|
|
164857
164848
|
});
|
|
@@ -165041,7 +165032,7 @@ function X9({ id: e, label: t, value: n, onChange: r, placeholder: i, hint: a, h
|
|
|
165041
165032
|
}
|
|
165042
165033
|
//#endregion
|
|
165043
165034
|
//#region ../../react-app/src/components/fields/WalletField.tsx
|
|
165044
|
-
function
|
|
165035
|
+
function JWe(e) {
|
|
165045
165036
|
return e.length > 18 ? `${e.slice(0, 10)}…${e.slice(-6)}` : e;
|
|
165046
165037
|
}
|
|
165047
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 }) {
|
|
@@ -165056,7 +165047,7 @@ function Z9({ id: e, label: t = "Wallet", placeholder: n = "Select a wallet", va
|
|
|
165056
165047
|
} : {
|
|
165057
165048
|
value: e.id,
|
|
165058
165049
|
label: e.name,
|
|
165059
|
-
sublabel: e.address ?
|
|
165050
|
+
sublabel: e.address ? JWe(e.address) : void 0,
|
|
165060
165051
|
leading: e.coin && e.network ? /* @__PURE__ */ _(N7, {
|
|
165061
165052
|
code: e.coin,
|
|
165062
165053
|
network: e.network,
|
|
@@ -165080,7 +165071,7 @@ function Z9({ id: e, label: t = "Wallet", placeholder: n = "Select a wallet", va
|
|
|
165080
165071
|
}
|
|
165081
165072
|
//#endregion
|
|
165082
165073
|
//#region ../../react-app/src/components/table/Initiator.tsx
|
|
165083
|
-
function
|
|
165074
|
+
function YWe({ name: e }) {
|
|
165084
165075
|
return /* @__PURE__ */ v("span", {
|
|
165085
165076
|
className: "flex items-center gap-2",
|
|
165086
165077
|
children: [/* @__PURE__ */ _("span", {
|
|
@@ -165094,7 +165085,7 @@ function XWe({ name: e }) {
|
|
|
165094
165085
|
}
|
|
165095
165086
|
//#endregion
|
|
165096
165087
|
//#region ../../react-app/src/components/convert/ConvertHistoryTable.tsx
|
|
165097
|
-
function
|
|
165088
|
+
function XWe({ amount: e, coin: t, tone: n }) {
|
|
165098
165089
|
return /* @__PURE__ */ v("span", {
|
|
165099
165090
|
className: "flex items-center gap-2.5",
|
|
165100
165091
|
children: [/* @__PURE__ */ _(G, {
|
|
@@ -165114,7 +165105,7 @@ function ZWe({ amount: e, coin: t, tone: n }) {
|
|
|
165114
165105
|
})]
|
|
165115
165106
|
});
|
|
165116
165107
|
}
|
|
165117
|
-
function
|
|
165108
|
+
function ZWe({ data: e, className: t }) {
|
|
165118
165109
|
let n = l(() => [
|
|
165119
165110
|
{
|
|
165120
165111
|
id: "status",
|
|
@@ -165127,7 +165118,7 @@ function QWe({ data: e, className: t }) {
|
|
|
165127
165118
|
{
|
|
165128
165119
|
id: "from",
|
|
165129
165120
|
header: "From",
|
|
165130
|
-
cell: (e) => /* @__PURE__ */ _(
|
|
165121
|
+
cell: (e) => /* @__PURE__ */ _(XWe, {
|
|
165131
165122
|
amount: e.fromAmount,
|
|
165132
165123
|
coin: e.fromCoin,
|
|
165133
165124
|
tone: "out"
|
|
@@ -165136,7 +165127,7 @@ function QWe({ data: e, className: t }) {
|
|
|
165136
165127
|
{
|
|
165137
165128
|
id: "to",
|
|
165138
165129
|
header: "To",
|
|
165139
|
-
cell: (e) => /* @__PURE__ */ _(
|
|
165130
|
+
cell: (e) => /* @__PURE__ */ _(XWe, {
|
|
165140
165131
|
amount: e.toAmount,
|
|
165141
165132
|
coin: e.toCoin,
|
|
165142
165133
|
tone: "in"
|
|
@@ -165161,7 +165152,7 @@ function QWe({ data: e, className: t }) {
|
|
|
165161
165152
|
{
|
|
165162
165153
|
id: "initiator",
|
|
165163
165154
|
header: "Initiated by",
|
|
165164
|
-
cell: (e) => /* @__PURE__ */ _(
|
|
165155
|
+
cell: (e) => /* @__PURE__ */ _(YWe, { name: e.initiator })
|
|
165165
165156
|
}
|
|
165166
165157
|
], []);
|
|
165167
165158
|
return /* @__PURE__ */ _("div", {
|
|
@@ -165177,7 +165168,7 @@ function QWe({ data: e, className: t }) {
|
|
|
165177
165168
|
}
|
|
165178
165169
|
//#endregion
|
|
165179
165170
|
//#region ../../react-app/src/components/convert/ConvertSummary.tsx
|
|
165180
|
-
function
|
|
165171
|
+
function QWe({ caption: e, coin: t, amount: n, fiat: r, amountClassName: i }) {
|
|
165181
165172
|
let a = n != null && n !== "";
|
|
165182
165173
|
return /* @__PURE__ */ v("div", {
|
|
165183
165174
|
className: "flex flex-col gap-1.5",
|
|
@@ -165213,7 +165204,7 @@ function $We({ caption: e, coin: t, amount: n, fiat: r, amountClassName: i }) {
|
|
|
165213
165204
|
})]
|
|
165214
165205
|
});
|
|
165215
165206
|
}
|
|
165216
|
-
function
|
|
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 }) {
|
|
165217
165208
|
return /* @__PURE__ */ v("div", {
|
|
165218
165209
|
className: j("flex flex-col rounded-2xl border border-cb-line bg-slate-50 dark:bg-slate-900/40", g),
|
|
165219
165210
|
children: [
|
|
@@ -165230,7 +165221,7 @@ function eGe({ fromCoin: e, toCoin: t, payAmount: n, payFiat: r, receiveAmount:
|
|
|
165230
165221
|
/* @__PURE__ */ v("div", {
|
|
165231
165222
|
className: "px-5 pb-3",
|
|
165232
165223
|
children: [
|
|
165233
|
-
/* @__PURE__ */ _(
|
|
165224
|
+
/* @__PURE__ */ _(QWe, {
|
|
165234
165225
|
caption: "You pay",
|
|
165235
165226
|
coin: e,
|
|
165236
165227
|
amount: n,
|
|
@@ -165247,7 +165238,7 @@ function eGe({ fromCoin: e, toCoin: t, payAmount: n, payFiat: r, receiveAmount:
|
|
|
165247
165238
|
})
|
|
165248
165239
|
})]
|
|
165249
165240
|
}),
|
|
165250
|
-
/* @__PURE__ */ _(
|
|
165241
|
+
/* @__PURE__ */ _(QWe, {
|
|
165251
165242
|
caption: "You receive",
|
|
165252
165243
|
coin: t,
|
|
165253
165244
|
amount: i,
|
|
@@ -165266,7 +165257,7 @@ function eGe({ fromCoin: e, toCoin: t, payAmount: n, payFiat: r, receiveAmount:
|
|
|
165266
165257
|
children: [/* @__PURE__ */ _("span", {
|
|
165267
165258
|
className: j("inline-block rounded px-1.5 font-medium tabular-nums text-foreground", s != null && "animate-rate-flash"),
|
|
165268
165259
|
children: o
|
|
165269
|
-
}, l), s != null && /* @__PURE__ */ _(
|
|
165260
|
+
}, l), s != null && /* @__PURE__ */ _(eGe, {
|
|
165270
165261
|
seconds: s,
|
|
165271
165262
|
total: c
|
|
165272
165263
|
})]
|
|
@@ -165330,7 +165321,7 @@ function eGe({ fromCoin: e, toCoin: t, payAmount: n, payFiat: r, receiveAmount:
|
|
|
165330
165321
|
]
|
|
165331
165322
|
});
|
|
165332
165323
|
}
|
|
165333
|
-
function
|
|
165324
|
+
function eGe({ seconds: e, total: t }) {
|
|
165334
165325
|
let n = 2 * Math.PI * 8, r = t > 0 ? Math.max(0, Math.min(1, e / t)) : 0;
|
|
165335
165326
|
return /* @__PURE__ */ v("div", {
|
|
165336
165327
|
className: "flex shrink-0 items-center gap-2 rounded-full border border-cb-line bg-cb-card px-2.5 py-1",
|
|
@@ -165370,7 +165361,7 @@ function tGe({ seconds: e, total: t }) {
|
|
|
165370
165361
|
//#endregion
|
|
165371
165362
|
//#region ../../react-app/src/components/convert/ConvertPanel.tsx
|
|
165372
165363
|
var Q9 = 30;
|
|
165373
|
-
function
|
|
165364
|
+
function tGe({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
|
|
165374
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;
|
|
165375
165366
|
o(() => {
|
|
165376
165367
|
if (!A) {
|
|
@@ -165447,7 +165438,7 @@ function nGe({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
|
|
|
165447
165438
|
}), Me = (e) => ({
|
|
165448
165439
|
value: e,
|
|
165449
165440
|
label: e,
|
|
165450
|
-
sublabel:
|
|
165441
|
+
sublabel: KHe[e] ?? e,
|
|
165451
165442
|
leading: /* @__PURE__ */ _(G, {
|
|
165452
165443
|
code: e,
|
|
165453
165444
|
src: J(e),
|
|
@@ -165582,7 +165573,7 @@ function nGe({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
|
|
|
165582
165573
|
]
|
|
165583
165574
|
})
|
|
165584
165575
|
}),
|
|
165585
|
-
/* @__PURE__ */ _(
|
|
165576
|
+
/* @__PURE__ */ _($We, {
|
|
165586
165577
|
fromCoin: a,
|
|
165587
165578
|
toCoin: fe ? u : null,
|
|
165588
165579
|
payAmount: _e,
|
|
@@ -165688,7 +165679,7 @@ function nGe({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
|
|
|
165688
165679
|
htmlFor: "cv-code",
|
|
165689
165680
|
className: "text-[13px] font-medium text-muted-foreground",
|
|
165690
165681
|
children: "Authentication code"
|
|
165691
|
-
}), /* @__PURE__ */ _(
|
|
165682
|
+
}), /* @__PURE__ */ _(nGe, {
|
|
165692
165683
|
id: "cv-code",
|
|
165693
165684
|
value: C,
|
|
165694
165685
|
onChange: w
|
|
@@ -165716,7 +165707,7 @@ function nGe({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
|
|
|
165716
165707
|
]
|
|
165717
165708
|
});
|
|
165718
165709
|
}
|
|
165719
|
-
function
|
|
165710
|
+
function nGe({ id: e, value: t, onChange: n, length: r = 6 }) {
|
|
165720
165711
|
let [i, a] = d(!1), o = Array.from({ length: r }, (e, n) => t[n] ?? ""), s = Math.min(t.length, r - 1);
|
|
165721
165712
|
return /* @__PURE__ */ v("div", {
|
|
165722
165713
|
className: "relative",
|
|
@@ -165746,10 +165737,10 @@ function rGe({ id: e, value: t, onChange: n, length: r = 6 }) {
|
|
|
165746
165737
|
}
|
|
165747
165738
|
//#endregion
|
|
165748
165739
|
//#region ../../react-app/src/components/convert/types.ts
|
|
165749
|
-
var
|
|
165740
|
+
var rGe = /* @__PURE__ */ A({});
|
|
165750
165741
|
//#endregion
|
|
165751
165742
|
//#region ../../react-app/src/components/deposit/DepositHistoryTable.tsx
|
|
165752
|
-
function
|
|
165743
|
+
function iGe({ data: e, className: t }) {
|
|
165753
165744
|
let n = l(() => [
|
|
165754
165745
|
{
|
|
165755
165746
|
id: "status",
|
|
@@ -165843,7 +165834,7 @@ function aGe({ data: e, className: t }) {
|
|
|
165843
165834
|
//#endregion
|
|
165844
165835
|
//#region ../../react-app/src/components/deposit/QrCode.tsx
|
|
165845
165836
|
var $9 = 3;
|
|
165846
|
-
function
|
|
165837
|
+
function aGe({ value: e, className: t }) {
|
|
165847
165838
|
let { size: n, darks: r } = l(() => {
|
|
165848
165839
|
let t = he.create(e || " ", { errorCorrectionLevel: "M" }), n = t.modules.size, r = t.modules.data, i = [];
|
|
165849
165840
|
for (let e = 0; e < n; e++) for (let t = 0; t < n; t++) r[e * n + t] && i.push([t, e]);
|
|
@@ -165876,7 +165867,7 @@ function oGe({ value: e, className: t }) {
|
|
|
165876
165867
|
}
|
|
165877
165868
|
//#endregion
|
|
165878
165869
|
//#region ../../react-app/src/components/deposit/DepositReceiveCard.tsx
|
|
165879
|
-
function
|
|
165870
|
+
function oGe({ wallet: e, coin: t, network: n, networkName: r, className: i }) {
|
|
165880
165871
|
let [a, o] = d(!1);
|
|
165881
165872
|
return /* @__PURE__ */ v("div", {
|
|
165882
165873
|
className: j("flex flex-col rounded-2xl border border-cb-line bg-slate-50 dark:bg-slate-900/40", i),
|
|
@@ -165927,7 +165918,7 @@ function sGe({ wallet: e, coin: t, network: n, networkName: r, className: i }) {
|
|
|
165927
165918
|
})]
|
|
165928
165919
|
}), /* @__PURE__ */ _("div", {
|
|
165929
165920
|
className: "w-26 shrink-0 rounded-lg border border-cb-line bg-white p-1.5",
|
|
165930
|
-
children: /* @__PURE__ */ _(
|
|
165921
|
+
children: /* @__PURE__ */ _(aGe, { value: e.address })
|
|
165931
165922
|
})]
|
|
165932
165923
|
}),
|
|
165933
165924
|
/* @__PURE__ */ v("div", {
|
|
@@ -165986,8 +165977,8 @@ function sGe({ wallet: e, coin: t, network: n, networkName: r, className: i }) {
|
|
|
165986
165977
|
}
|
|
165987
165978
|
//#endregion
|
|
165988
165979
|
//#region ../../react-app/src/components/deposit/DepositPanel.tsx
|
|
165989
|
-
function
|
|
165990
|
-
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(() =>
|
|
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) => {
|
|
165991
165982
|
n(e);
|
|
165992
165983
|
let t = $7.find((t) => t.code === e);
|
|
165993
165984
|
i(t?.networks[0] ?? ""), o(null);
|
|
@@ -166075,7 +166066,7 @@ function cGe({ className: e }) {
|
|
|
166075
166066
|
})
|
|
166076
166067
|
]
|
|
166077
166068
|
})
|
|
166078
|
-
}), /* @__PURE__ */ _(
|
|
166069
|
+
}), /* @__PURE__ */ _(oGe, {
|
|
166079
166070
|
wallet: u,
|
|
166080
166071
|
coin: t,
|
|
166081
166072
|
network: r,
|
|
@@ -166085,10 +166076,10 @@ function cGe({ className: e }) {
|
|
|
166085
166076
|
}
|
|
166086
166077
|
//#endregion
|
|
166087
166078
|
//#region ../../react-app/src/components/deposit/types.ts
|
|
166088
|
-
var
|
|
166079
|
+
var cGe = /* @__PURE__ */ A({});
|
|
166089
166080
|
//#endregion
|
|
166090
166081
|
//#region ../../react-app/src/components/withdraw/WithdrawHistoryTable.tsx
|
|
166091
|
-
function
|
|
166082
|
+
function lGe({ data: e, className: t }) {
|
|
166092
166083
|
let n = l(() => [
|
|
166093
166084
|
{
|
|
166094
166085
|
id: "status",
|
|
@@ -166170,7 +166161,7 @@ function uGe({ data: e, className: t }) {
|
|
|
166170
166161
|
{
|
|
166171
166162
|
id: "initiator",
|
|
166172
166163
|
header: "Initiated by",
|
|
166173
|
-
cell: (e) => /* @__PURE__ */ _(
|
|
166164
|
+
cell: (e) => /* @__PURE__ */ _(YWe, { name: e.initiator })
|
|
166174
166165
|
}
|
|
166175
166166
|
], []);
|
|
166176
166167
|
return /* @__PURE__ */ _("div", {
|
|
@@ -166186,7 +166177,7 @@ function uGe({ data: e, className: t }) {
|
|
|
166186
166177
|
}
|
|
166187
166178
|
//#endregion
|
|
166188
166179
|
//#region ../../react-app/src/components/withdraw/WithdrawSummary.tsx
|
|
166189
|
-
function
|
|
166180
|
+
function uGe({ coin: e, network: t, networkName: n, amount: r, amountFiat: i, from: a, to: o, footer: s, className: c }) {
|
|
166190
166181
|
let l = r != null && r !== "" && r !== "0";
|
|
166191
166182
|
return /* @__PURE__ */ v("div", {
|
|
166192
166183
|
className: j("flex flex-col rounded-2xl border border-cb-line bg-slate-50 dark:bg-slate-900/40", c),
|
|
@@ -166240,11 +166231,11 @@ function dGe({ coin: e, network: t, networkName: n, amount: r, amountFiat: i, fr
|
|
|
166240
166231
|
children: "—"
|
|
166241
166232
|
})
|
|
166242
166233
|
}),
|
|
166243
|
-
/* @__PURE__ */ _(
|
|
166234
|
+
/* @__PURE__ */ _(dGe, {
|
|
166244
166235
|
caption: "From",
|
|
166245
166236
|
endpoint: a
|
|
166246
166237
|
}),
|
|
166247
|
-
/* @__PURE__ */ _(
|
|
166238
|
+
/* @__PURE__ */ _(dGe, {
|
|
166248
166239
|
caption: "To",
|
|
166249
166240
|
endpoint: o
|
|
166250
166241
|
})
|
|
@@ -166257,7 +166248,7 @@ function dGe({ coin: e, network: t, networkName: n, amount: r, amountFiat: i, fr
|
|
|
166257
166248
|
]
|
|
166258
166249
|
});
|
|
166259
166250
|
}
|
|
166260
|
-
function
|
|
166251
|
+
function dGe({ caption: e, endpoint: t }) {
|
|
166261
166252
|
return /* @__PURE__ */ _(Z, {
|
|
166262
166253
|
label: e,
|
|
166263
166254
|
children: t ? t.label ? /* @__PURE__ */ v("div", {
|
|
@@ -166284,11 +166275,11 @@ function fGe({ caption: e, endpoint: t }) {
|
|
|
166284
166275
|
}
|
|
166285
166276
|
//#endregion
|
|
166286
166277
|
//#region ../../react-app/src/components/withdraw/WithdrawPanel.tsx
|
|
166287
|
-
function
|
|
166278
|
+
function fGe(e) {
|
|
166288
166279
|
return e.length > 18 ? `${e.slice(0, 10)}…${e.slice(-6)}` : e;
|
|
166289
166280
|
}
|
|
166290
|
-
function
|
|
166291
|
-
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(() =>
|
|
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", {
|
|
166292
166283
|
minimumFractionDigits: 2,
|
|
166293
166284
|
maximumFractionDigits: 8
|
|
166294
166285
|
}) : null, le = E != null && re && k && !oe && ae, ue = (e) => {
|
|
@@ -166458,7 +166449,7 @@ function mGe({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
|
|
|
166458
166449
|
]
|
|
166459
166450
|
})
|
|
166460
166451
|
}),
|
|
166461
|
-
/* @__PURE__ */ _(
|
|
166452
|
+
/* @__PURE__ */ _(uGe, {
|
|
166462
166453
|
className: "h-full",
|
|
166463
166454
|
coin: r,
|
|
166464
166455
|
network: a,
|
|
@@ -166533,7 +166524,7 @@ function mGe({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
|
|
|
166533
166524
|
" ",
|
|
166534
166525
|
/* @__PURE__ */ _("span", {
|
|
166535
166526
|
className: "font-mono text-foreground",
|
|
166536
|
-
children: re ?
|
|
166527
|
+
children: re ? fGe(p.trim()) : ""
|
|
166537
166528
|
})
|
|
166538
166529
|
]
|
|
166539
166530
|
}), /* @__PURE__ */ v("div", {
|
|
@@ -166571,14 +166562,14 @@ function mGe({ currentUser: e = "Maya Okafor", onSubmit: t, className: n }) {
|
|
|
166571
166562
|
}
|
|
166572
166563
|
//#endregion
|
|
166573
166564
|
//#region ../../react-app/src/components/withdraw/types.ts
|
|
166574
|
-
var
|
|
166575
|
-
function
|
|
166576
|
-
let [t, n] = d(() => localStorage.getItem(
|
|
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);
|
|
166577
166568
|
return t ? /* @__PURE__ */ _(g, { children: e }) : /* @__PURE__ */ _("div", {
|
|
166578
166569
|
className: "flex h-svh items-center justify-center bg-background p-4",
|
|
166579
166570
|
children: /* @__PURE__ */ v("form", {
|
|
166580
166571
|
onSubmit: (e) => {
|
|
166581
|
-
e.preventDefault(), r ===
|
|
166572
|
+
e.preventDefault(), r === hGe ? (localStorage.setItem(gGe, "true"), n(!0)) : o(!0);
|
|
166582
166573
|
},
|
|
166583
166574
|
className: "w-full max-w-xs space-y-4 rounded-xl border border-border bg-card p-6 shadow-sm",
|
|
166584
166575
|
children: [/* @__PURE__ */ v("div", {
|
|
@@ -166612,4 +166603,4 @@ function vGe({ children: e }) {
|
|
|
166612
166603
|
});
|
|
166613
166604
|
}
|
|
166614
166605
|
//#endregion
|
|
166615
|
-
export { ye as ActionFooter,
|
|
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 };
|