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