@mx-cartographer/experiences 7.4.7 → 7.4.8-alpha.mm0
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/CHANGELOG.md +2 -2
- package/dist/{Account-01wOyrH1.mjs → Account-BrOTlmeK.mjs} +1 -1
- package/dist/{AccountDetailsContent-COMjOzwr.mjs → AccountDetailsContent-B7FqH05C.mjs} +8 -8
- package/dist/{AccountDetailsHeader-Cbi5G6fJ.mjs → AccountDetailsHeader-C8MxsxhN.mjs} +4 -4
- package/dist/{AccountFields-Cd_nOWmf.mjs → AccountFields-BQZ-o6Kj.mjs} +2 -2
- package/dist/{AccountListItem-DxY4cCF1.mjs → AccountListItem-aIE9WWTO.mjs} +4 -4
- package/dist/{AccountStore-C1zMBzHq.mjs → AccountStore-DqO84Aer.mjs} +2 -2
- package/dist/{Accounts-D7QljYas.mjs → Accounts-DC_A4UCa.mjs} +1 -1
- package/dist/{BudgetUtil-Df2nII9u.mjs → BudgetUtil-BmZXkL0C.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-DqJK_rrL.mjs → CategorySelectorDrawer-SUgfE5GN.mjs} +1 -1
- package/dist/{ConnectDrawer-CuUj16NH.mjs → ConnectDrawer-KL8t1qSC.mjs} +1 -1
- package/dist/{ConnectionsDrawer-Bz4uwdFE.mjs → ConnectionsDrawer-DaK5uIL5.mjs} +2 -2
- package/dist/{CurrencyInput-BFKcs-_K.mjs → CurrencyInput-itK0R3wV.mjs} +1 -1
- package/dist/{DebtsStore-Bu8rRRSL.mjs → DebtsStore-DVPZbv2C.mjs} +1 -1
- package/dist/{ExportCsvAction-DzTrtPzk.mjs → ExportCsvAction-Cglo8Mca.mjs} +3 -3
- package/dist/{GoalStore-CrNhjvNc.mjs → GoalStore-o4rrjGSJ.mjs} +2 -2
- package/dist/{Help-BnPXM_N2.mjs → Help-BjLMsuMS.mjs} +1 -1
- package/dist/{LineChart-bc1D9xBE.mjs → LineChart-BQRxZF3p.mjs} +1 -1
- package/dist/{ListItemAction-uobBrm_a.mjs → ListItemAction-BxTkF6Tz.mjs} +1 -1
- package/dist/{ManageIncome-A69EUO5u.mjs → ManageIncome-rcnDYsBJ.mjs} +75 -75
- package/dist/{MicroWidgetContainer-DEiRnYVa.mjs → MicroWidgetContainer-B2hO9rOG.mjs} +1 -1
- package/dist/{MiniWidgetContainer-CmXpTylX.mjs → MiniWidgetContainer-98-hKFqm.mjs} +1 -1
- package/dist/{NetWorthStore-CpL_kqvx.mjs → NetWorthStore-DG2X69jG.mjs} +2 -2
- package/dist/{NotificationSettings-CNmJWVeI.mjs → NotificationSettings-C7FYNM7I.mjs} +250 -248
- package/dist/{OriginalBalanceAction-DK8_LkPz.mjs → OriginalBalanceAction-C6jdS4ws.mjs} +3 -3
- package/dist/{RecurringSettings-B0uObPlD.mjs → RecurringSettings-C81H1l38.mjs} +3 -3
- package/dist/{SpendingLegend-Bf-wbJvb.mjs → SpendingLegend-DqZxN_BZ.mjs} +2 -2
- package/dist/{TransactionDetails-COH0OKNG.mjs → TransactionDetails-BA_E5nQ-.mjs} +5 -5
- package/dist/{TransactionStore-Dz-G8Wd0.mjs → TransactionStore-PRlwE-TF.mjs} +2 -2
- package/dist/{User-wXzDI4M8.mjs → User-Cnlegl1N.mjs} +1 -1
- package/dist/{ViewMoreMicroCard-C0832BMe.mjs → ViewMoreMicroCard-DfPXJzbv.mjs} +105 -101
- package/dist/{WidgetContainer-6dsjtOVg.mjs → WidgetContainer-CaPjoWeE.mjs} +2 -2
- package/dist/accounts/index.es.js +148 -140
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/index.es.js +483 -478
- package/dist/cashflow/index.es.js +367 -362
- package/dist/categories/index.es.js +1 -1
- package/dist/common/hooks/index.d.ts +1 -0
- package/dist/common/hooks/useWidgetLoadTimer.d.ts +6 -0
- package/dist/common/index.es.js +35 -33
- package/dist/dashboard/index.es.js +90 -88
- package/dist/debts/index.es.js +346 -342
- package/dist/{exportTransactionsToCSV-Cz2t0lmA.mjs → exportTransactionsToCSV-DuAaI5XA.mjs} +1 -1
- package/dist/finstrong/index.es.js +352 -350
- package/dist/goals/index.es.js +518 -511
- package/dist/help/index.es.js +13 -9
- package/dist/{hooks-C41HAxM5.mjs → hooks-ZMp65DFz.mjs} +11 -11
- package/dist/investments/index.es.js +395 -393
- package/dist/merchants/index.es.js +1 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +245 -240
- package/dist/notifications/index.es.js +2 -2
- package/dist/recurringtransactions/index.es.js +293 -285
- package/dist/settings/index.es.js +252 -249
- package/dist/spending/index.es.js +136 -124
- package/dist/transactions/index.es.js +77 -73
- package/dist/trends/index.es.js +601 -588
- package/dist/{useAccountDisplayName-CMMlIOXF.mjs → useAccountDisplayName-Cjx8YmKK.mjs} +2 -2
- package/dist/{useInsightsEnabled-CNjP5cfR.mjs → useInsightsEnabled-B7dxpDrX.mjs} +1 -1
- package/dist/useWidgetLoadTimer-C1NBkyLd.mjs +23 -0
- package/package.json +1 -1
|
@@ -1,59 +1,60 @@
|
|
|
1
|
-
import { jsx as e, jsxs as r, Fragment as
|
|
1
|
+
import { jsx as e, jsxs as r, Fragment as J } from "react/jsx-runtime";
|
|
2
2
|
import h from "react";
|
|
3
3
|
import { observer as v } from "mobx-react-lite";
|
|
4
4
|
import E from "@mui/material/Box";
|
|
5
|
-
import
|
|
5
|
+
import y from "@mui/material/Divider";
|
|
6
6
|
import F from "@mui/material/List";
|
|
7
7
|
import O from "@mui/material/ListSubheader";
|
|
8
|
-
import
|
|
8
|
+
import Z from "@mui/system/Stack";
|
|
9
9
|
import { Text as g } from "@mxenabled/mxui";
|
|
10
|
-
import { useTheme as
|
|
11
|
-
import { u as
|
|
12
|
-
import { L as
|
|
13
|
-
import { g as
|
|
14
|
-
import { m as
|
|
15
|
-
import { A as
|
|
16
|
-
import { F as
|
|
17
|
-
import { I as
|
|
18
|
-
import { a as d1 } from "../AccountFields-
|
|
19
|
-
import { g as
|
|
20
|
-
import { A as
|
|
21
|
-
import { A as c1 } from "../AccountDetailsContent-
|
|
22
|
-
import { u as
|
|
23
|
-
import { f as
|
|
10
|
+
import { useTheme as Q } from "@mui/material/styles";
|
|
11
|
+
import { u as U, A as X } from "../AccountDetailsHeader-C8MxsxhN.mjs";
|
|
12
|
+
import { L as e1 } from "../LineChart-BQRxZF3p.mjs";
|
|
13
|
+
import { g as t1, a as n1, b as l1 } from "../SpendingData-BuJ03S9d.mjs";
|
|
14
|
+
import { m as i1, u as M, b as S, d as W, g as P, a as o1 } from "../hooks-ZMp65DFz.mjs";
|
|
15
|
+
import { A as I, l as G, m as C1 } from "../ConnectDrawer-KL8t1qSC.mjs";
|
|
16
|
+
import { F as C3, M as d3 } from "../ConnectDrawer-KL8t1qSC.mjs";
|
|
17
|
+
import { I as $, P as j, S as Y } from "../Account-BrOTlmeK.mjs";
|
|
18
|
+
import { a as d1 } from "../AccountFields-BQZ-o6Kj.mjs";
|
|
19
|
+
import { g as s3, b as a3 } from "../AccountFields-BQZ-o6Kj.mjs";
|
|
20
|
+
import { A as N } from "../AccountListItem-aIE9WWTO.mjs";
|
|
21
|
+
import { A as c1 } from "../AccountDetailsContent-B7FqH05C.mjs";
|
|
22
|
+
import { u as L3 } from "../AccountDetailsContent-B7FqH05C.mjs";
|
|
23
|
+
import { f as D } from "../NumberFormatting-DjTD0t3W.mjs";
|
|
24
24
|
import { D as s1 } from "../Drawer-BEtCk82g.mjs";
|
|
25
|
-
import { A as
|
|
26
|
-
import { C as r1 } from "../ConnectionsDrawer-
|
|
27
|
-
import { u as
|
|
28
|
-
import {
|
|
25
|
+
import { A as x, W as a1 } from "../WidgetContainer-CaPjoWeE.mjs";
|
|
26
|
+
import { C as r1 } from "../ConnectionsDrawer-DaK5uIL5.mjs";
|
|
27
|
+
import { u as K } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
28
|
+
import { u as B } from "../useWidgetLoadTimer-C1NBkyLd.mjs";
|
|
29
|
+
import { L as w } from "../Loader-DUaFpDGv.mjs";
|
|
29
30
|
import L1 from "@mui/material/ListItem";
|
|
30
|
-
import { M as
|
|
31
|
+
import { M as z } from "../MiniWidgetContainer-98-hKFqm.mjs";
|
|
31
32
|
import u1 from "@mui/material/Stack";
|
|
32
|
-
import { A as
|
|
33
|
-
const h1 = (
|
|
34
|
-
const l =
|
|
35
|
-
return [l, t, L].filter((
|
|
36
|
-
}, H1 = (
|
|
37
|
-
const [t, L] =
|
|
38
|
-
if (
|
|
39
|
-
const c =
|
|
33
|
+
import { A as h3, a as H3 } from "../AccountStore-DqO84Aer.mjs";
|
|
34
|
+
const h1 = (o, C) => {
|
|
35
|
+
const l = $.includes(C) ? t1(o) : [], t = j.includes(C) ? n1(o) : [], L = Y.includes(C) ? l1(o) : [];
|
|
36
|
+
return [l, t, L].filter((i) => i.length > 0);
|
|
37
|
+
}, H1 = (o, C, l) => {
|
|
38
|
+
const [t, L] = o, i = t, d = L ?? t, s = [];
|
|
39
|
+
if (i && d && $.includes(C)) {
|
|
40
|
+
const c = i[i.length - 1].y;
|
|
40
41
|
s.push({ label: l.income_label, amount: c });
|
|
41
|
-
} else if (
|
|
42
|
-
const c =
|
|
42
|
+
} else if (j.includes(C)) {
|
|
43
|
+
const c = i[i.length - 1].y;
|
|
43
44
|
s.push({ label: l.payments_label, amount: c });
|
|
44
45
|
}
|
|
45
|
-
if (d &&
|
|
46
|
+
if (d && Y.includes(C)) {
|
|
46
47
|
const c = d[d.length - 1].y;
|
|
47
48
|
s.push({ label: l.spending_label, amount: c });
|
|
48
49
|
}
|
|
49
50
|
return s;
|
|
50
51
|
}, p1 = () => {
|
|
51
|
-
const
|
|
52
|
+
const o = Q(), { selectedAccount: C } = U(), { monthlyCategoryTotals: l } = i1(), { trends: t } = M(), L = [o.palette.chart?.chart1, o.palette.chart?.chart2], i = h1(l, C.account_type), d = H1(i, C.account_type, t), s = [I.LOAN, I.MORTGAGE].includes(C.account_type);
|
|
52
53
|
return /* @__PURE__ */ e("div", { "data-testid": "TrendsChart", children: /* @__PURE__ */ e(
|
|
53
|
-
|
|
54
|
+
e1,
|
|
54
55
|
{
|
|
55
56
|
colors: L,
|
|
56
|
-
datasets:
|
|
57
|
+
datasets: i,
|
|
57
58
|
height: 185,
|
|
58
59
|
labels: d,
|
|
59
60
|
showAverage: s,
|
|
@@ -62,60 +63,60 @@ const h1 = (i, o) => {
|
|
|
62
63
|
valueFormatterString: "0,0"
|
|
63
64
|
}
|
|
64
65
|
) });
|
|
65
|
-
},
|
|
66
|
-
const [
|
|
66
|
+
}, m1 = v(p1), f1 = () => {
|
|
67
|
+
const [o, C] = h.useState(""), { accounts: l } = M(), { selectedAccounts: t } = S(), { setSelectedAccount: L, setSelectedMember: i } = U(), { members: d } = W(), { onEvent: s } = P(), c = [...new Set(t.map((n) => n.account_type))], H = t.find((n) => o === n.guid), p = h.useMemo(
|
|
67
68
|
() => t.filter((n) => n.is_hidden),
|
|
68
69
|
[t]
|
|
69
|
-
),
|
|
70
|
+
), m = h.useMemo(
|
|
70
71
|
() => t.filter((n) => n.is_closed),
|
|
71
72
|
[t]
|
|
72
|
-
), R =
|
|
73
|
+
), R = p.reduce(
|
|
73
74
|
(n, a) => (a.available_balance || a.balance || 0) + n,
|
|
74
75
|
0
|
|
75
|
-
),
|
|
76
|
+
), b = d1(m, l);
|
|
76
77
|
h.useEffect(() => {
|
|
77
|
-
if (
|
|
78
|
-
L(
|
|
79
|
-
const n = d.find((a) => a.guid ===
|
|
80
|
-
n &&
|
|
78
|
+
if (H) {
|
|
79
|
+
L(H);
|
|
80
|
+
const n = d.find((a) => a.guid === H?.member_guid) || {};
|
|
81
|
+
n && i(n);
|
|
81
82
|
}
|
|
82
|
-
}, [
|
|
83
|
-
const
|
|
84
|
-
|
|
83
|
+
}, [H, o]);
|
|
84
|
+
const _ = (n) => {
|
|
85
|
+
C(n.guid), s(x.ACCOUNTS_CLICK_ACCOUNT, {
|
|
85
86
|
account_guid: n.guid,
|
|
86
87
|
account_type: n.account_type
|
|
87
88
|
});
|
|
88
89
|
}, V = (n) => {
|
|
89
|
-
const a = n === "hidden" ?
|
|
90
|
+
const a = n === "hidden" ? p : m, k = n === "hidden" ? R : b, u = n === "hidden" ? l.account_hidden : l.account_closed;
|
|
90
91
|
return /* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(
|
|
91
92
|
F,
|
|
92
93
|
{
|
|
93
94
|
"aria-label": u,
|
|
94
95
|
subheader: /* @__PURE__ */ e(O, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ r(
|
|
95
|
-
|
|
96
|
+
Z,
|
|
96
97
|
{
|
|
97
98
|
component: "span",
|
|
98
99
|
direction: "row",
|
|
99
100
|
sx: { justifyContent: "space-between", color: "grey.700" },
|
|
100
101
|
children: [
|
|
101
102
|
/* @__PURE__ */ e(g, { bold: !0, variant: "Body", children: u }),
|
|
102
|
-
/* @__PURE__ */ e(g, { bold: !0, variant: "Body", children:
|
|
103
|
+
/* @__PURE__ */ e(g, { bold: !0, variant: "Body", children: D(k, "0,0.00") })
|
|
103
104
|
]
|
|
104
105
|
}
|
|
105
106
|
) }),
|
|
106
|
-
children: /* @__PURE__ */ e(
|
|
107
|
-
const T = A ===
|
|
107
|
+
children: /* @__PURE__ */ e(Z, { children: a.map((f, A, q) => {
|
|
108
|
+
const T = A === q.length - 1;
|
|
108
109
|
return /* @__PURE__ */ r(h.Fragment, { children: [
|
|
109
110
|
/* @__PURE__ */ e(
|
|
110
|
-
|
|
111
|
+
N,
|
|
111
112
|
{
|
|
112
|
-
account:
|
|
113
|
-
onRowClick: () =>
|
|
113
|
+
account: f,
|
|
114
|
+
onRowClick: () => _(f),
|
|
114
115
|
shouldShowConnectionStatus: !0
|
|
115
116
|
}
|
|
116
117
|
),
|
|
117
118
|
n === "hidden" ? /* @__PURE__ */ e(
|
|
118
|
-
|
|
119
|
+
y,
|
|
119
120
|
{
|
|
120
121
|
sx: {
|
|
121
122
|
mb: T ? 24 : 4,
|
|
@@ -123,7 +124,7 @@ const h1 = (i, o) => {
|
|
|
123
124
|
}
|
|
124
125
|
}
|
|
125
126
|
) : !T && /* @__PURE__ */ e(
|
|
126
|
-
|
|
127
|
+
y,
|
|
127
128
|
{
|
|
128
129
|
sx: {
|
|
129
130
|
mb: 4,
|
|
@@ -131,7 +132,7 @@ const h1 = (i, o) => {
|
|
|
131
132
|
}
|
|
132
133
|
}
|
|
133
134
|
)
|
|
134
|
-
] },
|
|
135
|
+
] }, f.guid);
|
|
135
136
|
}) })
|
|
136
137
|
}
|
|
137
138
|
) });
|
|
@@ -140,8 +141,8 @@ const h1 = (i, o) => {
|
|
|
140
141
|
c.map((n) => {
|
|
141
142
|
const a = t.filter(
|
|
142
143
|
(u) => u.account_type === n && !u.is_closed && !u.is_hidden
|
|
143
|
-
),
|
|
144
|
-
(u,
|
|
144
|
+
), k = a.reduce(
|
|
145
|
+
(u, f) => (f.balance || 0) + u,
|
|
145
146
|
0
|
|
146
147
|
);
|
|
147
148
|
return a.length === 0 ? null : /* @__PURE__ */ e(
|
|
@@ -149,30 +150,30 @@ const h1 = (i, o) => {
|
|
|
149
150
|
{
|
|
150
151
|
"aria-label": l.account_type_accounts[a[0]?.account_type],
|
|
151
152
|
subheader: /* @__PURE__ */ e(O, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ r(
|
|
152
|
-
|
|
153
|
+
Z,
|
|
153
154
|
{
|
|
154
155
|
component: "span",
|
|
155
156
|
direction: "row",
|
|
156
157
|
sx: { display: "flex", justifyContent: "space-between" },
|
|
157
158
|
children: [
|
|
158
159
|
/* @__PURE__ */ e(g, { bold: !0, variant: "Body", children: l.account_types[n] }),
|
|
159
|
-
/* @__PURE__ */ e(g, { bold: !0, variant: "Body", children:
|
|
160
|
+
/* @__PURE__ */ e(g, { bold: !0, variant: "Body", children: D(k, "0,0.00") })
|
|
160
161
|
]
|
|
161
162
|
}
|
|
162
163
|
) }),
|
|
163
|
-
children: /* @__PURE__ */ e(
|
|
164
|
-
const
|
|
164
|
+
children: /* @__PURE__ */ e(Z, { children: a.map((u) => {
|
|
165
|
+
const f = t.indexOf(u) === t.length - 1, A = a.indexOf(u) === a.length - 1;
|
|
165
166
|
return /* @__PURE__ */ r(h.Fragment, { children: [
|
|
166
167
|
/* @__PURE__ */ e(
|
|
167
|
-
|
|
168
|
+
N,
|
|
168
169
|
{
|
|
169
170
|
account: u,
|
|
170
|
-
onRowClick: () =>
|
|
171
|
+
onRowClick: () => _(u),
|
|
171
172
|
shouldShowConnectionStatus: !0
|
|
172
173
|
}
|
|
173
174
|
),
|
|
174
|
-
(!
|
|
175
|
-
|
|
175
|
+
(!f || m.length > 0 || p.length > 0) && /* @__PURE__ */ e(
|
|
176
|
+
y,
|
|
176
177
|
{
|
|
177
178
|
sx: {
|
|
178
179
|
mb: A ? 24 : 4,
|
|
@@ -186,111 +187,115 @@ const h1 = (i, o) => {
|
|
|
186
187
|
n
|
|
187
188
|
);
|
|
188
189
|
}),
|
|
189
|
-
|
|
190
|
-
|
|
190
|
+
p.length > 0 && V("hidden"),
|
|
191
|
+
m.length > 0 && V("closed"),
|
|
191
192
|
/* @__PURE__ */ r(
|
|
192
193
|
s1,
|
|
193
194
|
{
|
|
194
195
|
ariaLabelClose: l.close_account_details_aria,
|
|
195
|
-
isOpen: !!
|
|
196
|
-
onClose: () =>
|
|
196
|
+
isOpen: !!o,
|
|
197
|
+
onClose: () => C(""),
|
|
197
198
|
title: l.account_details,
|
|
198
199
|
children: [
|
|
199
|
-
/* @__PURE__ */ e(
|
|
200
|
+
/* @__PURE__ */ e(X, { ChartComponent: m1 }),
|
|
200
201
|
/* @__PURE__ */ e(c1, {})
|
|
201
202
|
]
|
|
202
203
|
}
|
|
203
204
|
)
|
|
204
205
|
] });
|
|
205
|
-
}, V1 = v(
|
|
206
|
-
const [l, t] = h.useState(!1), [L,
|
|
207
|
-
|
|
206
|
+
}, V1 = v(f1), g1 = ({ onBackClick: o, sx: C = {} }) => {
|
|
207
|
+
const [l, t] = h.useState(!1), [L, i] = h.useState(!1), { config: d } = o1(), { accounts: s } = W(), { accounts: c, connect: H } = M(), { isCopyLoaded: p, isInitialized: m, setSelectedAccounts: R, selectedAccountGuids: b } = S(), { isDesktop: _ } = K(), { onEvent: V } = P();
|
|
208
|
+
B({
|
|
209
|
+
widgetName: "AccountsWidget",
|
|
210
|
+
isLoaded: m && p
|
|
211
|
+
}), h.useEffect(() => {
|
|
208
212
|
R(s);
|
|
209
|
-
}, [s])
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
}, w = () => {
|
|
215
|
-
C(!0), V(S.ACCOUNTS_CLICK_CONNECT);
|
|
213
|
+
}, [s]);
|
|
214
|
+
const n = () => {
|
|
215
|
+
t(!0), V(x.ACCOUNTS_CLICK_CONNECT);
|
|
216
|
+
}, a = () => {
|
|
217
|
+
i(!0), V(x.ACCOUNTS_CLICK_CONNECT);
|
|
216
218
|
};
|
|
217
|
-
return
|
|
219
|
+
return p ? /* @__PURE__ */ e(
|
|
218
220
|
a1,
|
|
219
221
|
{
|
|
220
222
|
accountOptions: s,
|
|
221
223
|
actions: d.show_connections_widget_in_master ? [
|
|
222
|
-
{ iconName: "add", label: c.add, onClick:
|
|
224
|
+
{ iconName: "add", label: c.add, onClick: n },
|
|
223
225
|
{
|
|
224
226
|
iconName: "credit_card_gear",
|
|
225
227
|
label: c.manage,
|
|
226
|
-
onClick:
|
|
228
|
+
onClick: a
|
|
227
229
|
}
|
|
228
230
|
] : [],
|
|
229
|
-
onAccountsFilterClick: () => V(
|
|
230
|
-
onBackClick:
|
|
231
|
-
sx:
|
|
231
|
+
onAccountsFilterClick: () => V(x.ACCOUNTS_CLICK_FILTER),
|
|
232
|
+
onBackClick: o,
|
|
233
|
+
sx: C,
|
|
232
234
|
title: c.title,
|
|
233
|
-
children:
|
|
234
|
-
/* @__PURE__ */ r(E, { sx: { px:
|
|
235
|
-
|
|
235
|
+
children: m ? /* @__PURE__ */ r(J, { children: [
|
|
236
|
+
/* @__PURE__ */ r(E, { sx: { px: _ ? 24 : 12 }, children: [
|
|
237
|
+
b.length < 1 && /* @__PURE__ */ e(g, { display: "flex", justifyContent: "center", my: 24, children: c.no_accounts }),
|
|
236
238
|
/* @__PURE__ */ e(V1, {})
|
|
237
239
|
] }),
|
|
238
240
|
/* @__PURE__ */ e(
|
|
239
|
-
|
|
241
|
+
G,
|
|
240
242
|
{
|
|
241
243
|
onClose: () => t(!1),
|
|
242
244
|
showConnectWidget: l,
|
|
243
|
-
title:
|
|
245
|
+
title: H.mini_title
|
|
244
246
|
}
|
|
245
247
|
),
|
|
246
248
|
/* @__PURE__ */ e(
|
|
247
249
|
r1,
|
|
248
250
|
{
|
|
249
|
-
onClose: () =>
|
|
251
|
+
onClose: () => i(!1),
|
|
250
252
|
showConnectionsWidget: L,
|
|
251
253
|
title: c.manage_connections
|
|
252
254
|
}
|
|
253
255
|
)
|
|
254
|
-
] }) : /* @__PURE__ */ e(
|
|
256
|
+
] }) : /* @__PURE__ */ e(w, {})
|
|
255
257
|
}
|
|
256
|
-
) : /* @__PURE__ */ e(
|
|
257
|
-
},
|
|
258
|
-
const { visibleAccounts: l } =
|
|
259
|
-
|
|
258
|
+
) : /* @__PURE__ */ e(w, {});
|
|
259
|
+
}, t3 = v(g1), v1 = ({ onPrimaryCtaClick: o, sx: C }) => {
|
|
260
|
+
const { visibleAccounts: l } = W(), { accounts: t } = M(), { isCopyLoaded: L, isInitialized: i, selectedAccounts: d, setSelectedAccounts: s } = S(), { isDesktop: c } = K();
|
|
261
|
+
B({
|
|
262
|
+
widgetName: "AccountsMiniWidget",
|
|
263
|
+
isLoaded: i
|
|
264
|
+
}), h.useEffect(() => {
|
|
260
265
|
s(l);
|
|
261
266
|
}, [l]);
|
|
262
|
-
const
|
|
267
|
+
const H = h.useMemo(
|
|
263
268
|
() => C1(d, c ? 5 : 3),
|
|
264
269
|
[d, c]
|
|
265
270
|
);
|
|
266
271
|
return L ? /* @__PURE__ */ e(
|
|
267
|
-
|
|
272
|
+
z,
|
|
268
273
|
{
|
|
269
274
|
className: "mx-exp-accounts-miniwidget",
|
|
270
|
-
onPrimaryCtaClick:
|
|
275
|
+
onPrimaryCtaClick: o,
|
|
271
276
|
primaryCtaLabel: t.primary_cta,
|
|
272
|
-
sx:
|
|
277
|
+
sx: C,
|
|
273
278
|
title: t.mini_title,
|
|
274
|
-
children:
|
|
279
|
+
children: i ? /* @__PURE__ */ r(F, { children: [
|
|
275
280
|
d.length === 0 && /* @__PURE__ */ e(L1, { sx: { justifyContent: "center" }, children: t.no_accounts }),
|
|
276
|
-
|
|
277
|
-
const R =
|
|
281
|
+
H.map((p, m) => {
|
|
282
|
+
const R = H.indexOf(p) === H.length - 1;
|
|
278
283
|
return /* @__PURE__ */ r(h.Fragment, { children: [
|
|
279
284
|
/* @__PURE__ */ e(
|
|
280
|
-
|
|
285
|
+
N,
|
|
281
286
|
{
|
|
282
|
-
account:
|
|
287
|
+
account: p,
|
|
283
288
|
listItemProps: { sx: { px: 24 } },
|
|
284
289
|
shouldShowConnectionStatus: !0
|
|
285
290
|
}
|
|
286
291
|
),
|
|
287
|
-
!R && /* @__PURE__ */ e(
|
|
288
|
-
] }, `account-item${
|
|
292
|
+
!R && /* @__PURE__ */ e(y, { "aria-hidden": "true", variant: "inset" })
|
|
293
|
+
] }, `account-item${m}`);
|
|
289
294
|
})
|
|
290
|
-
] }) : /* @__PURE__ */ e(
|
|
295
|
+
] }) : /* @__PURE__ */ e(w, {})
|
|
291
296
|
}
|
|
292
|
-
) : /* @__PURE__ */ e(
|
|
293
|
-
},
|
|
297
|
+
) : /* @__PURE__ */ e(w, {});
|
|
298
|
+
}, n3 = v(v1), M1 = () => /* @__PURE__ */ r(
|
|
294
299
|
"svg",
|
|
295
300
|
{
|
|
296
301
|
fill: "none",
|
|
@@ -730,7 +735,7 @@ const h1 = (i, o) => {
|
|
|
730
735
|
]
|
|
731
736
|
}
|
|
732
737
|
), R1 = () => {
|
|
733
|
-
const { connect:
|
|
738
|
+
const { connect: o } = M();
|
|
734
739
|
return /* @__PURE__ */ r(u1, { alignItems: "center", direction: "column", m: 24, children: [
|
|
735
740
|
/* @__PURE__ */ e(M1, {}),
|
|
736
741
|
/* @__PURE__ */ e(
|
|
@@ -742,52 +747,55 @@ const h1 = (i, o) => {
|
|
|
742
747
|
textAlign: "center"
|
|
743
748
|
},
|
|
744
749
|
variant: "Paragraph",
|
|
745
|
-
children:
|
|
750
|
+
children: o.mini_widget_content
|
|
746
751
|
}
|
|
747
752
|
)
|
|
748
753
|
] });
|
|
749
754
|
}, w1 = v(R1), _1 = ({
|
|
750
|
-
onPrimaryCtaClick:
|
|
755
|
+
onPrimaryCtaClick: o = () => {
|
|
751
756
|
},
|
|
752
|
-
sx:
|
|
757
|
+
sx: C
|
|
753
758
|
}) => {
|
|
754
|
-
const { isCopyLoaded: l } =
|
|
755
|
-
|
|
759
|
+
const { isCopyLoaded: l } = S(), { connect: t } = M(), [L, i] = h.useState(!1), d = () => {
|
|
760
|
+
i(!0), o();
|
|
756
761
|
};
|
|
757
|
-
return
|
|
758
|
-
|
|
762
|
+
return B({
|
|
763
|
+
widgetName: "ConnectMiniWidget",
|
|
764
|
+
isLoaded: l
|
|
765
|
+
}), l ? /* @__PURE__ */ r(
|
|
766
|
+
z,
|
|
759
767
|
{
|
|
760
768
|
className: "mx-exp-connect-miniwidget",
|
|
761
769
|
onPrimaryCtaClick: d,
|
|
762
770
|
primaryCtaLabel: t.primary_cta,
|
|
763
|
-
sx:
|
|
771
|
+
sx: C,
|
|
764
772
|
title: t.mini_title,
|
|
765
773
|
children: [
|
|
766
774
|
/* @__PURE__ */ e(w1, {}),
|
|
767
775
|
L && /* @__PURE__ */ e(
|
|
768
|
-
|
|
776
|
+
G,
|
|
769
777
|
{
|
|
770
|
-
onClose: () =>
|
|
778
|
+
onClose: () => i(!1),
|
|
771
779
|
showConnectWidget: L,
|
|
772
780
|
title: t.mini_title
|
|
773
781
|
}
|
|
774
782
|
)
|
|
775
783
|
]
|
|
776
784
|
}
|
|
777
|
-
) : /* @__PURE__ */ e(
|
|
778
|
-
},
|
|
785
|
+
) : /* @__PURE__ */ e(w, {});
|
|
786
|
+
}, l3 = v(_1);
|
|
779
787
|
export {
|
|
780
|
-
|
|
788
|
+
h3 as AccountApi,
|
|
781
789
|
c1 as AccountDetailsContent,
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
790
|
+
X as AccountDetailsHeader,
|
|
791
|
+
H3 as AccountStore,
|
|
792
|
+
n3 as AccountsMiniWidget,
|
|
793
|
+
t3 as AccountsWidget,
|
|
794
|
+
l3 as ConnectMiniWidget,
|
|
795
|
+
C3 as FieldType,
|
|
796
|
+
d3 as MemberConnectionStatus,
|
|
797
|
+
s3 as getAccountBalanceDetails,
|
|
798
|
+
a3 as getAccountDetailFields,
|
|
799
|
+
U as useAccountUiStore,
|
|
800
|
+
L3 as useGetMergeableAccounts
|
|
793
801
|
};
|
|
@@ -8,8 +8,8 @@ import a from "@mui/material/Stack";
|
|
|
8
8
|
import _ from "@mui/material/styles/useTheme";
|
|
9
9
|
import { Text as u, TextField as L } from "@mxenabled/mxui";
|
|
10
10
|
import { L as W } from "../Loader-DUaFpDGv.mjs";
|
|
11
|
-
import { M as j } from "../MiniWidgetContainer-
|
|
12
|
-
import { k as f, u as b, g as q, b as E } from "../hooks-
|
|
11
|
+
import { M as j } from "../MiniWidgetContainer-98-hKFqm.mjs";
|
|
12
|
+
import { k as f, u as b, g as q, b as E } from "../hooks-ZMp65DFz.mjs";
|
|
13
13
|
import Q from "@mui/material/ToggleButton";
|
|
14
14
|
import G from "@mui/material/ToggleButtonGroup";
|
|
15
15
|
const O = () => {
|