@mx-cartographer/experiences 7.13.10 → 7.13.12
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 +11 -0
- package/dist/{AccountListItem-LcJVJysf.mjs → AccountListItem-D9WJDbZ1.mjs} +20 -16
- package/dist/{AccountStore-BNlTuxWN.mjs → AccountStore-DpYvNnql.mjs} +1 -1
- package/dist/{SpendingLegend-CJjjTGBw.mjs → SpendingLegend-s0rv96Ka.mjs} +8 -8
- package/dist/{WidgetContainer-D_iaToWJ.mjs → WidgetContainer-B7xDq2bM.mjs} +30 -29
- package/dist/accounts/index.es.js +368 -281
- package/dist/budgets/index.es.js +1 -1
- package/dist/cashflow/index.es.js +2 -2
- package/dist/common/index.es.js +3 -2
- package/dist/debts/index.es.js +1 -1
- package/dist/finstrong/index.es.js +2 -2
- package/dist/goals/index.es.js +1 -1
- package/dist/help/index.es.js +1 -1
- package/dist/investments/index.es.js +1 -1
- package/dist/networth/index.es.js +1 -1
- package/dist/recurringtransactions/index.es.js +35 -32
- package/dist/settings/index.es.js +1 -1
- package/dist/spending/index.es.js +2 -2
- package/dist/transactions/index.es.js +1 -1
- package/dist/trends/index.es.js +1 -1
- package/package.json +1 -1
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { jsx as e, jsxs as C, Fragment as
|
|
1
|
+
import { jsx as e, jsxs as C, Fragment as R } from "react/jsx-runtime";
|
|
2
2
|
import h from "react";
|
|
3
|
-
import { observer as
|
|
3
|
+
import { observer as A } from "mobx-react-lite";
|
|
4
4
|
import e1 from "@mui/material/Stack";
|
|
5
|
-
import { Text as g, Icon as
|
|
5
|
+
import { Text as g, Icon as N, THEMES as i1 } from "@mxenabled/mxui";
|
|
6
6
|
import { S as h1 } from "../SkeletonLoader-BaNboJjD.mjs";
|
|
7
7
|
import c1 from "@mui/material/Box";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
8
|
+
import W from "@mui/material/Divider";
|
|
9
|
+
import O from "@mui/material/List";
|
|
10
|
+
import B from "@mui/material/ListSubheader";
|
|
11
11
|
import P from "@mui/system/Stack";
|
|
12
|
-
import { useTheme as
|
|
13
|
-
import { u as
|
|
14
|
-
import { L as
|
|
12
|
+
import { useTheme as V1, alpha as M1 } from "@mui/material/styles";
|
|
13
|
+
import { u as w, A as y1 } from "../AccountDetailsHeader-D9gbTbUt.mjs";
|
|
14
|
+
import { L as x1 } from "../LineChart-EAr5ox5U.mjs";
|
|
15
15
|
import { g as w1, a as R1, b as S1 } from "../SpendingData-Bz1bCWAs.mjs";
|
|
16
|
-
import { l as T1, u as
|
|
17
|
-
import { A as
|
|
16
|
+
import { l as T1, u as M, d as E, g as D, h as m1, b as G, a as E1 } from "../hooks-BxkfR-Ff.mjs";
|
|
17
|
+
import { A as I, g as L, N as p1 } from "../Account-BiB1F8lL.mjs";
|
|
18
18
|
import { I as _1, P as L1, S as f1 } from "../Account-DuOz1a27.mjs";
|
|
19
19
|
import { a as D1, b as k1 } from "../AccountFields-CxqONzjY.mjs";
|
|
20
20
|
import { g as i4 } from "../AccountFields-CxqONzjY.mjs";
|
|
21
|
-
import { A as
|
|
21
|
+
import { A as U } from "../AccountListItem-D9WJDbZ1.mjs";
|
|
22
22
|
import a1 from "@mui/material/Tab";
|
|
23
23
|
import I1 from "@mui/material/Tabs";
|
|
24
24
|
import Z1 from "@mui/material/Switch";
|
|
25
|
-
import
|
|
25
|
+
import T from "@mui/material/ListItem";
|
|
26
26
|
import $ from "@mui/material/ListItemButton";
|
|
27
|
-
import
|
|
28
|
-
import { A as
|
|
27
|
+
import Z from "@mui/material/ListItemText";
|
|
28
|
+
import { A as x } from "../Analytics-BYItVAe-.mjs";
|
|
29
29
|
import { D as Q } from "../Dialog-Ck34yr-d.mjs";
|
|
30
30
|
import { b as f } from "../Localization-CPkpIwIx.mjs";
|
|
31
31
|
import { D as t1 } from "../Drawer-Bbe4AMB1.mjs";
|
|
@@ -33,12 +33,12 @@ import Y from "@mui/material/ListItemAvatar";
|
|
|
33
33
|
import N1 from "@mui/material/styles/useTheme";
|
|
34
34
|
import { Error as g1, CheckCircle as O1, Language as F1 } from "@mxenabled/mx-icons";
|
|
35
35
|
import { C as z } from "../ConnectDrawer-C0wjwcJt.mjs";
|
|
36
|
-
import { fromUnixTime as
|
|
37
|
-
import { isToday as
|
|
38
|
-
import { isYesterday as
|
|
36
|
+
import { fromUnixTime as P1 } from "date-fns/fromUnixTime";
|
|
37
|
+
import { isToday as W1 } from "date-fns/isToday";
|
|
38
|
+
import { isYesterday as B1 } from "date-fns/isYesterday";
|
|
39
39
|
import { f as s1, D as l1 } from "../DateFormats-BMpMrZpW.mjs";
|
|
40
40
|
import { I as j } from "../IconBacking-B9oC6uL2.mjs";
|
|
41
|
-
import { addMonths as
|
|
41
|
+
import { addMonths as U1 } from "date-fns/addMonths";
|
|
42
42
|
import { AdapterDateFns as $1 } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
43
43
|
import { DateCalendar as G1 } from "@mui/x-date-pickers/DateCalendar";
|
|
44
44
|
import z1 from "@mui/material/FormControl";
|
|
@@ -63,10 +63,10 @@ import { C as l3 } from "../ConnectionsDrawer-IA7vnv1J.mjs";
|
|
|
63
63
|
import { u as H1 } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
64
64
|
import { u as n1 } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
|
|
65
65
|
import { L as o1 } from "../Loader-D3rjKx72.mjs";
|
|
66
|
-
import { W as r3 } from "../WidgetContainer-
|
|
67
|
-
import { M as
|
|
66
|
+
import { W as r3 } from "../WidgetContainer-B7xDq2bM.mjs";
|
|
67
|
+
import { M as v1 } from "../MiniWidgetContainer-xLWSV6Wz.mjs";
|
|
68
68
|
import { A as l4 } from "../AccountApi-ChQr5PAZ.mjs";
|
|
69
|
-
import { A as d4 } from "../AccountStore-
|
|
69
|
+
import { A as d4 } from "../AccountStore-DpYvNnql.mjs";
|
|
70
70
|
const d3 = (t, o) => {
|
|
71
71
|
const n = _1.includes(o) ? w1(t) : [], i = L1.includes(o) ? R1(t) : [], c = f1.includes(o) ? S1(t) : [];
|
|
72
72
|
return [n, i, c].filter((l) => l.length > 0);
|
|
@@ -85,9 +85,9 @@ const d3 = (t, o) => {
|
|
|
85
85
|
}
|
|
86
86
|
return a;
|
|
87
87
|
}, C3 = () => {
|
|
88
|
-
const t =
|
|
88
|
+
const t = V1(), { selectedAccount: o } = w(), { monthlyCategoryTotals: n } = T1(), { trends: i } = M(), c = [t.palette.chart?.chart1, t.palette.chart?.chart2], l = d3(n, o.account_type), u = u3(l, o.account_type, i), a = [I.LOAN, I.MORTGAGE].includes(o.account_type);
|
|
89
89
|
return /* @__PURE__ */ e("div", { "data-testid": "TrendsChart", children: /* @__PURE__ */ e(
|
|
90
|
-
|
|
90
|
+
x1,
|
|
91
91
|
{
|
|
92
92
|
colors: c,
|
|
93
93
|
datasets: l,
|
|
@@ -105,60 +105,95 @@ const d3 = (t, o) => {
|
|
|
105
105
|
valueFormatterString: "0,0"
|
|
106
106
|
}
|
|
107
107
|
) });
|
|
108
|
-
}, h3 =
|
|
108
|
+
}, h3 = A(C3), J = ({
|
|
109
109
|
ariaPressed: t,
|
|
110
110
|
children: o,
|
|
111
111
|
isLast: n = !1,
|
|
112
112
|
onClick: i,
|
|
113
113
|
primaryText: c,
|
|
114
114
|
secondaryText: l
|
|
115
|
-
}) => /* @__PURE__ */
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
115
|
+
}) => /* @__PURE__ */ e(
|
|
116
|
+
T,
|
|
117
|
+
{
|
|
118
|
+
sx: {
|
|
119
|
+
backgroundColor: "background.paper",
|
|
120
|
+
position: "relative",
|
|
121
|
+
"&::after": {
|
|
122
|
+
content: '""',
|
|
123
|
+
position: "absolute",
|
|
124
|
+
bottom: 0,
|
|
125
|
+
right: 0,
|
|
126
|
+
left: n ? 0 : 24,
|
|
127
|
+
borderBottom: "1px solid",
|
|
128
|
+
borderColor: "divider"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
children: /* @__PURE__ */ C($, { "aria-pressed": t, onClick: i, children: [
|
|
132
|
+
/* @__PURE__ */ e(Z, { primary: c, secondary: l }),
|
|
133
|
+
o
|
|
134
|
+
] })
|
|
135
|
+
}
|
|
136
|
+
), m3 = () => {
|
|
137
|
+
const { accounts: t } = E(), { selectedAccount: o, selectedMember: n } = w();
|
|
123
138
|
return t.filter(
|
|
124
139
|
(i) => i.member_guid === n.guid && n.successfully_aggregated_at && i.guid !== o.guid
|
|
125
140
|
);
|
|
126
141
|
}, p3 = () => {
|
|
127
|
-
const [t, o] = h.useState(!1), [n, i] = h.useState(!1), [c, l] = h.useState(!1), [u, a] = h.useState({}), { selectedAccount: r } =
|
|
142
|
+
const [t, o] = h.useState(!1), [n, i] = h.useState(!1), [c, l] = h.useState(!1), [u, a] = h.useState({}), { selectedAccount: r } = w(), { mergeAccounts: p, updateAccount: _ } = E(), { accounts: s } = M(), H = m3(), { onEvent: b } = D(), { modifyTransactionByAccountGuid: V } = m1(), y = async (m) => {
|
|
128
143
|
await _({
|
|
129
144
|
...r,
|
|
130
|
-
...
|
|
131
|
-
}), "is_closed" in
|
|
145
|
+
...m
|
|
146
|
+
}), "is_closed" in m && m.is_closed !== r.is_closed && V(r.guid, { accountIsClosed: m.is_closed });
|
|
132
147
|
}, d = () => {
|
|
133
|
-
|
|
148
|
+
p([r.guid, u.guid]).finally(
|
|
134
149
|
() => i(!1)
|
|
135
150
|
);
|
|
136
151
|
};
|
|
137
|
-
return /* @__PURE__ */ C(
|
|
138
|
-
/* @__PURE__ */ e(
|
|
152
|
+
return /* @__PURE__ */ C(R, { children: [
|
|
153
|
+
/* @__PURE__ */ e(B, { sx: { backgroundColor: "transparent", mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(g, { bold: !0, component: "h2", variant: "caption", children: s.actions }) }),
|
|
139
154
|
/* @__PURE__ */ e(
|
|
140
155
|
J,
|
|
141
156
|
{
|
|
142
157
|
ariaPressed: r.is_hidden,
|
|
143
158
|
onClick: () => {
|
|
144
|
-
|
|
159
|
+
y({ is_hidden: !r.is_hidden }), b(x.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: r.guid });
|
|
145
160
|
},
|
|
146
161
|
primaryText: r.is_hidden ? s.unhide_account : s.hide_Account,
|
|
147
162
|
secondaryText: r.is_hidden ? s.include_this_account : s.exclude_this_account,
|
|
148
163
|
children: /* @__PURE__ */ e(Z1, { "aria-hidden": !0, checked: r.is_hidden, tabIndex: -1 })
|
|
149
164
|
}
|
|
150
165
|
),
|
|
151
|
-
/* @__PURE__ */
|
|
166
|
+
/* @__PURE__ */ C(
|
|
152
167
|
J,
|
|
153
168
|
{
|
|
154
169
|
onClick: () => {
|
|
155
|
-
o(!0),
|
|
170
|
+
o(!0), b(x.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
|
|
156
171
|
account_guid: r.guid
|
|
157
172
|
});
|
|
158
173
|
},
|
|
159
174
|
primaryText: r.is_closed ? s.mark_as_open : s.mark_as_closed,
|
|
160
175
|
secondaryText: r.is_closed ? s.this_will_set_the_closed_account : s.this_will_set_the_account_balance_to_0,
|
|
161
|
-
children:
|
|
176
|
+
children: [
|
|
177
|
+
/* @__PURE__ */ e(N, { name: "chevron_right" }),
|
|
178
|
+
/* @__PURE__ */ e("div", { onClick: (m) => m.stopPropagation(), children: /* @__PURE__ */ e(
|
|
179
|
+
Q,
|
|
180
|
+
{
|
|
181
|
+
copy: {
|
|
182
|
+
close_aria: s.close_modal,
|
|
183
|
+
title: r.is_closed ? s.confirm_mark_as_open : s.confirm_mark_closed
|
|
184
|
+
},
|
|
185
|
+
isOpen: t,
|
|
186
|
+
onClose: () => {
|
|
187
|
+
o(!1);
|
|
188
|
+
},
|
|
189
|
+
onPrimaryAction: () => y({ is_closed: !r.is_closed }),
|
|
190
|
+
children: /* @__PURE__ */ e(g, { truncate: !1, children: f(
|
|
191
|
+
r.is_closed ? s.this_will_resume_updating_the_balance : s.this_will_set_the_balance_of_your_account,
|
|
192
|
+
r.name
|
|
193
|
+
) })
|
|
194
|
+
}
|
|
195
|
+
) })
|
|
196
|
+
]
|
|
162
197
|
}
|
|
163
198
|
),
|
|
164
199
|
H.length > 0 && /* @__PURE__ */ e(
|
|
@@ -166,79 +201,75 @@ const d3 = (t, o) => {
|
|
|
166
201
|
{
|
|
167
202
|
isLast: !0,
|
|
168
203
|
onClick: () => {
|
|
169
|
-
i(!0),
|
|
204
|
+
i(!0), b(x.ACCOUNT_DETAILS_CLICK_MARK_DUPLICATE, {
|
|
170
205
|
account_guid: r.guid
|
|
171
206
|
});
|
|
172
207
|
},
|
|
173
208
|
primaryText: s.mark_as_duplicate,
|
|
174
209
|
secondaryText: s.if_a_connected_account_is_showing_up_twice,
|
|
175
|
-
children: /* @__PURE__ */ e(
|
|
176
|
-
}
|
|
177
|
-
),
|
|
178
|
-
/* @__PURE__ */ e(
|
|
179
|
-
Q,
|
|
180
|
-
{
|
|
181
|
-
copy: {
|
|
182
|
-
close_aria: s.close_modal,
|
|
183
|
-
title: r.is_closed ? s.confirm_mark_as_open : s.confirm_mark_closed
|
|
184
|
-
},
|
|
185
|
-
isOpen: t,
|
|
186
|
-
onClose: () => {
|
|
187
|
-
o(!1);
|
|
188
|
-
},
|
|
189
|
-
onPrimaryAction: () => b({ is_closed: !r.is_closed }),
|
|
190
|
-
children: /* @__PURE__ */ e(g, { truncate: !1, children: f(
|
|
191
|
-
r.is_closed ? s.this_will_resume_updating_the_balance : s.this_will_set_the_balance_of_your_account,
|
|
192
|
-
r.name
|
|
193
|
-
) })
|
|
210
|
+
children: /* @__PURE__ */ e(N, { name: "chevron_right" })
|
|
194
211
|
}
|
|
195
212
|
),
|
|
196
|
-
/* @__PURE__ */
|
|
213
|
+
/* @__PURE__ */ C(
|
|
197
214
|
t1,
|
|
198
215
|
{
|
|
199
216
|
ariaLabelClose: s.close_drawer,
|
|
200
217
|
isOpen: n,
|
|
201
218
|
onClose: () => i(!1),
|
|
202
219
|
title: s.mark_as_duplicate,
|
|
203
|
-
children:
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
/* @__PURE__ */ e(
|
|
207
|
-
|
|
220
|
+
children: [
|
|
221
|
+
/* @__PURE__ */ e(O, { children: H.map((m) => {
|
|
222
|
+
const k = H.indexOf(m) === H.length - 1;
|
|
223
|
+
return /* @__PURE__ */ e(
|
|
224
|
+
U,
|
|
208
225
|
{
|
|
209
|
-
account:
|
|
226
|
+
account: m,
|
|
227
|
+
listItemProps: {
|
|
228
|
+
sx: {
|
|
229
|
+
position: "relative",
|
|
230
|
+
"&::after": {
|
|
231
|
+
content: '""',
|
|
232
|
+
position: "absolute",
|
|
233
|
+
bottom: 0,
|
|
234
|
+
right: 0,
|
|
235
|
+
left: k ? 0 : 24,
|
|
236
|
+
borderBottom: "1px solid",
|
|
237
|
+
borderColor: "divider"
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
},
|
|
210
241
|
onRowClick: () => {
|
|
211
|
-
l(!0), a(
|
|
242
|
+
l(!0), a(m);
|
|
212
243
|
}
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
244
|
+
},
|
|
245
|
+
m.guid
|
|
246
|
+
);
|
|
247
|
+
}) }),
|
|
248
|
+
c && /* @__PURE__ */ C(
|
|
249
|
+
Q,
|
|
250
|
+
{
|
|
251
|
+
copy: {
|
|
252
|
+
close_aria: s.close_modal,
|
|
253
|
+
title: s.confirm_merge
|
|
254
|
+
},
|
|
255
|
+
isOpen: c,
|
|
256
|
+
onClose: () => l(!1),
|
|
257
|
+
onPrimaryAction: d,
|
|
258
|
+
children: [
|
|
259
|
+
/* @__PURE__ */ e(g, { truncate: !1, children: f(
|
|
260
|
+
s.this_means_accounts_will_be_merged,
|
|
261
|
+
r.name,
|
|
262
|
+
u.name
|
|
263
|
+
) }),
|
|
264
|
+
/* @__PURE__ */ e(g, { color: "error", sx: { mt: 24 }, children: s.this_action_cannot_be_undone })
|
|
265
|
+
]
|
|
266
|
+
}
|
|
267
|
+
)
|
|
237
268
|
]
|
|
238
269
|
}
|
|
239
270
|
)
|
|
240
271
|
] });
|
|
241
|
-
}, _3 =
|
|
272
|
+
}, _3 = A(p3), A1 = (t, o) => {
|
|
242
273
|
const { connection_messages: n } = o;
|
|
243
274
|
switch (t.connection_status) {
|
|
244
275
|
case L.CHALLENGED:
|
|
@@ -375,9 +406,9 @@ const d3 = (t, o) => {
|
|
|
375
406
|
};
|
|
376
407
|
default: {
|
|
377
408
|
const i = () => {
|
|
378
|
-
const c = t.successfully_aggregated_at ?
|
|
409
|
+
const c = t.successfully_aggregated_at ? P1(t.successfully_aggregated_at) : void 0, l = c && s1(c, l1.TIME_STAMP_HOUR_MINUTE);
|
|
379
410
|
if (l)
|
|
380
|
-
return
|
|
411
|
+
return W1(c) ? f(o.last_updated_at, o.today, l) : B1(c) ? f(o.last_updated_at, o.yesterday, l) : f(
|
|
381
412
|
o.last_updated_at,
|
|
382
413
|
s1(c, l1.MONTH_DAY_YEAR),
|
|
383
414
|
l
|
|
@@ -399,7 +430,7 @@ const d3 = (t, o) => {
|
|
|
399
430
|
}, L3 = () => {
|
|
400
431
|
const [t, o] = h.useState(!1), {
|
|
401
432
|
palette: { mode: n }
|
|
402
|
-
} = N1(), { selectedMember: i } =
|
|
433
|
+
} = N1(), { selectedMember: i } = w(), { accounts: c, connect: l } = M(), u = A1(i, l), a = p1.includes(i.connection_status) ? {
|
|
403
434
|
color: "error.main",
|
|
404
435
|
ctaCopy: u.cta ?? "",
|
|
405
436
|
icon: /* @__PURE__ */ e(g1, { filled: !0, sx: { ...q } }),
|
|
@@ -411,53 +442,77 @@ const d3 = (t, o) => {
|
|
|
411
442
|
mainMessage: u.statusName,
|
|
412
443
|
secondaryMessage: u.title
|
|
413
444
|
};
|
|
414
|
-
return /* @__PURE__ */ C(
|
|
415
|
-
/* @__PURE__ */ e(
|
|
416
|
-
/* @__PURE__ */ e(
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
}
|
|
431
|
-
),
|
|
432
|
-
/* @__PURE__ */ e(F, { name: "chevron_right" })
|
|
433
|
-
] }) }),
|
|
434
|
-
/* @__PURE__ */ e(w, { sx: { ml: i.is_manual || !i.institution_url ? 0 : 24 } }),
|
|
435
|
-
!i.is_manual && i.institution_url && /* @__PURE__ */ C(x, { children: [
|
|
436
|
-
/* @__PURE__ */ e(D, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ C($, { component: "a", href: i.institution_url, target: "_blank", children: [
|
|
437
|
-
/* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e(
|
|
438
|
-
j,
|
|
439
|
-
{
|
|
440
|
-
backingSx: {
|
|
441
|
-
backgroundColor: n === i1.LIGHT ? "grey.300" : "grey.700",
|
|
442
|
-
borderRadius: 1
|
|
443
|
-
},
|
|
444
|
-
size: 32,
|
|
445
|
-
children: /* @__PURE__ */ e(
|
|
446
|
-
F1,
|
|
447
|
-
{
|
|
448
|
-
sx: {
|
|
449
|
-
...q,
|
|
450
|
-
color: n === i1.LIGHT ? "grey.900" : "common.white"
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
)
|
|
445
|
+
return /* @__PURE__ */ C(R, { children: [
|
|
446
|
+
/* @__PURE__ */ e(B, { sx: { mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(g, { bold: !0, component: "h2", variant: "caption", children: c.connection_status }) }),
|
|
447
|
+
/* @__PURE__ */ e(
|
|
448
|
+
T,
|
|
449
|
+
{
|
|
450
|
+
sx: {
|
|
451
|
+
backgroundColor: "background.paper",
|
|
452
|
+
position: "relative",
|
|
453
|
+
"&::after": {
|
|
454
|
+
content: '""',
|
|
455
|
+
position: "absolute",
|
|
456
|
+
bottom: 0,
|
|
457
|
+
right: 0,
|
|
458
|
+
left: i.is_manual || !i.institution_url ? 0 : 24,
|
|
459
|
+
borderBottom: "1px solid",
|
|
460
|
+
borderColor: "divider"
|
|
454
461
|
}
|
|
455
|
-
|
|
456
|
-
/* @__PURE__ */
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
462
|
+
},
|
|
463
|
+
children: i.is_manual || !a.ctaCopy ? /* @__PURE__ */ C(e1, { alignItems: "center", direction: "row", px: 24, py: 12, children: [
|
|
464
|
+
/* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e(j, { backingSx: { backgroundColor: a.color, borderRadius: 1 }, size: 32, children: a.icon }) }),
|
|
465
|
+
/* @__PURE__ */ e(Z, { primary: a.mainMessage, secondary: a.secondaryMessage })
|
|
466
|
+
] }) : /* @__PURE__ */ C($, { onClick: () => o(!0), children: [
|
|
467
|
+
/* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e(j, { backingSx: { backgroundColor: a.color, borderRadius: 1 }, size: 32, children: a.icon }) }),
|
|
468
|
+
/* @__PURE__ */ e(
|
|
469
|
+
Z,
|
|
470
|
+
{
|
|
471
|
+
primary: a.mainMessage,
|
|
472
|
+
secondary: a.secondaryMessage && /* @__PURE__ */ C(R, { children: [
|
|
473
|
+
a.secondaryMessage,
|
|
474
|
+
" ",
|
|
475
|
+
/* @__PURE__ */ e(g, { bold: !0, sx: { color: "action.active" }, variant: "caption", children: a.ctaCopy })
|
|
476
|
+
] })
|
|
477
|
+
}
|
|
478
|
+
),
|
|
479
|
+
/* @__PURE__ */ e(N, { name: "chevron_right" })
|
|
480
|
+
] })
|
|
481
|
+
}
|
|
482
|
+
),
|
|
483
|
+
!i.is_manual && i.institution_url && /* @__PURE__ */ e(R, { children: /* @__PURE__ */ e(
|
|
484
|
+
T,
|
|
485
|
+
{
|
|
486
|
+
sx: {
|
|
487
|
+
backgroundColor: "background.paper",
|
|
488
|
+
borderBottom: "1px solid",
|
|
489
|
+
borderColor: "divider"
|
|
490
|
+
},
|
|
491
|
+
children: /* @__PURE__ */ C($, { component: "a", href: i.institution_url, target: "_blank", children: [
|
|
492
|
+
/* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e(
|
|
493
|
+
j,
|
|
494
|
+
{
|
|
495
|
+
backingSx: {
|
|
496
|
+
backgroundColor: n === i1.LIGHT ? "grey.300" : "grey.700",
|
|
497
|
+
borderRadius: 1
|
|
498
|
+
},
|
|
499
|
+
size: 32,
|
|
500
|
+
children: /* @__PURE__ */ e(
|
|
501
|
+
F1,
|
|
502
|
+
{
|
|
503
|
+
sx: {
|
|
504
|
+
...q,
|
|
505
|
+
color: n === i1.LIGHT ? "grey.900" : "common.white"
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
)
|
|
509
|
+
}
|
|
510
|
+
) }),
|
|
511
|
+
/* @__PURE__ */ e(Z, { primary: i.name, secondary: i.institution_url }),
|
|
512
|
+
/* @__PURE__ */ e(N, { name: "launch" })
|
|
513
|
+
] })
|
|
514
|
+
}
|
|
515
|
+
) }),
|
|
461
516
|
t && /* @__PURE__ */ e(
|
|
462
517
|
z,
|
|
463
518
|
{
|
|
@@ -468,10 +523,10 @@ const d3 = (t, o) => {
|
|
|
468
523
|
}
|
|
469
524
|
)
|
|
470
525
|
] });
|
|
471
|
-
}, f3 =
|
|
472
|
-
const { updateAccount: i } =
|
|
473
|
-
a(""),
|
|
474
|
-
},
|
|
526
|
+
}, f3 = A(L3), g3 = ({ field: t, isOpen: o, onClose: n }) => {
|
|
527
|
+
const { updateAccount: i } = E(), { selectedAccount: c } = w(), { accounts: l } = M(), [u, a] = h.useState(c[t.name]), [r, p] = h.useState(""), [_, s] = h.useState(!0), H = () => {
|
|
528
|
+
a(""), p(""), n();
|
|
529
|
+
}, b = () => {
|
|
475
530
|
switch (t.type) {
|
|
476
531
|
case X.Select:
|
|
477
532
|
return /* @__PURE__ */ C(z1, { fullWidth: !0, children: [
|
|
@@ -511,7 +566,7 @@ const d3 = (t, o) => {
|
|
|
511
566
|
return /* @__PURE__ */ e(Y1, { dateAdapter: $1, children: /* @__PURE__ */ e(
|
|
512
567
|
G1,
|
|
513
568
|
{
|
|
514
|
-
maxDate:
|
|
569
|
+
maxDate: U1(/* @__PURE__ */ new Date(), 1),
|
|
515
570
|
minDate: /* @__PURE__ */ new Date(),
|
|
516
571
|
onChange: (d) => {
|
|
517
572
|
c[t.name] && Number(c[t.name]) <= 31 ? a(d.getDate()) : a(d);
|
|
@@ -523,7 +578,7 @@ const d3 = (t, o) => {
|
|
|
523
578
|
"& .MuiPickersArrowSwitcher-button": {
|
|
524
579
|
color: "primary.lighter",
|
|
525
580
|
"&:hover": {
|
|
526
|
-
backgroundColor: (d) =>
|
|
581
|
+
backgroundColor: (d) => M1(d.palette.primary.light, 0.1)
|
|
527
582
|
}
|
|
528
583
|
}
|
|
529
584
|
},
|
|
@@ -541,18 +596,18 @@ const d3 = (t, o) => {
|
|
|
541
596
|
inputProps: {
|
|
542
597
|
"aria-label": t.placeholder
|
|
543
598
|
},
|
|
544
|
-
onChange:
|
|
599
|
+
onChange: y,
|
|
545
600
|
placeholder: t.placeholder
|
|
546
601
|
}
|
|
547
602
|
);
|
|
548
603
|
}
|
|
549
|
-
},
|
|
604
|
+
}, V = () => {
|
|
550
605
|
c[t.name] !== u && i({
|
|
551
606
|
...c,
|
|
552
607
|
[t.name]: u
|
|
553
608
|
}), H();
|
|
554
|
-
},
|
|
555
|
-
a(d.target.value), t.validation &&
|
|
609
|
+
}, y = (d) => {
|
|
610
|
+
a(d.target.value), t.validation && p(t.validation(d.target.value));
|
|
556
611
|
};
|
|
557
612
|
return /* @__PURE__ */ e(
|
|
558
613
|
Q,
|
|
@@ -564,7 +619,7 @@ const d3 = (t, o) => {
|
|
|
564
619
|
disablePrimaryButton: !!r || !_,
|
|
565
620
|
isOpen: o,
|
|
566
621
|
onClose: H,
|
|
567
|
-
onPrimaryAction:
|
|
622
|
+
onPrimaryAction: V,
|
|
568
623
|
primaryText: l.save,
|
|
569
624
|
sx: {
|
|
570
625
|
"& .MuiButton-root:focus-visible, & .MuiButton-root:focus": {
|
|
@@ -573,41 +628,73 @@ const d3 = (t, o) => {
|
|
|
573
628
|
outlineOffset: "2px"
|
|
574
629
|
}
|
|
575
630
|
},
|
|
576
|
-
children:
|
|
631
|
+
children: b()
|
|
577
632
|
}
|
|
578
633
|
);
|
|
579
|
-
}, H3 =
|
|
580
|
-
const t = window.app?.config, { onEvent: o } =
|
|
634
|
+
}, H3 = A(g3), v3 = () => {
|
|
635
|
+
const t = window.app?.config, { onEvent: o } = D(), { selectedAccount: n } = w(), { accounts: i } = M(), c = D1(n, i), l = n.member_is_managed_by_user || !n.member_is_managed_by_user && t.enable_renaming_home_accounts, [u, a] = h.useState(!1), [r, p] = h.useState(c[0]), _ = c.filter(
|
|
581
636
|
(s) => l || n[s.name] || n[s.name] === 0
|
|
582
637
|
);
|
|
583
|
-
return /* @__PURE__ */ C(
|
|
638
|
+
return /* @__PURE__ */ C(R, { children: [
|
|
584
639
|
_.map((s) => {
|
|
585
|
-
const H = n[s.name] || n[s.name] === 0,
|
|
586
|
-
|
|
640
|
+
const H = n[s.name] || n[s.name] === 0, b = _.indexOf(s) === _.length - 1, V = /* @__PURE__ */ e(
|
|
641
|
+
Z,
|
|
587
642
|
{
|
|
588
643
|
disableTypography: !0,
|
|
589
644
|
primary: /* @__PURE__ */ e(g, { sx: { fontSize: 11 }, children: s.label }),
|
|
590
645
|
secondary: /* @__PURE__ */ e(g, { bold: !0, sx: { fontSize: 15 }, children: H ? s.valueFormatter(n[s.name]) : s.placeholder })
|
|
591
646
|
}
|
|
592
647
|
);
|
|
593
|
-
return /* @__PURE__ */ e(h.Fragment, { children: l ? /* @__PURE__ */
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
{
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
648
|
+
return /* @__PURE__ */ e(h.Fragment, { children: l ? /* @__PURE__ */ e(
|
|
649
|
+
T,
|
|
650
|
+
{
|
|
651
|
+
sx: {
|
|
652
|
+
backgroundColor: "background.paper",
|
|
653
|
+
px: 0,
|
|
654
|
+
position: "relative",
|
|
655
|
+
"&::after": {
|
|
656
|
+
content: '""',
|
|
657
|
+
position: "absolute",
|
|
658
|
+
bottom: 0,
|
|
659
|
+
right: 0,
|
|
660
|
+
left: b ? 0 : 24,
|
|
661
|
+
borderBottom: "1px solid",
|
|
662
|
+
borderColor: "divider"
|
|
663
|
+
}
|
|
664
|
+
},
|
|
665
|
+
children: /* @__PURE__ */ C(
|
|
666
|
+
$,
|
|
667
|
+
{
|
|
668
|
+
onClick: () => {
|
|
669
|
+
p(s), a(!0), s?.event && o(s.event, { account_guid: n.guid });
|
|
670
|
+
},
|
|
671
|
+
children: [
|
|
672
|
+
V,
|
|
673
|
+
/* @__PURE__ */ e(N, { name: "chevron_right" })
|
|
674
|
+
]
|
|
675
|
+
}
|
|
676
|
+
)
|
|
677
|
+
}
|
|
678
|
+
) : H && /* @__PURE__ */ e(
|
|
679
|
+
T,
|
|
680
|
+
{
|
|
681
|
+
sx: {
|
|
682
|
+
backgroundColor: "background.paper",
|
|
683
|
+
px: 24,
|
|
684
|
+
position: "relative",
|
|
685
|
+
"&::after": {
|
|
686
|
+
content: '""',
|
|
687
|
+
position: "absolute",
|
|
688
|
+
bottom: 0,
|
|
689
|
+
right: 0,
|
|
690
|
+
left: b ? 0 : 24,
|
|
691
|
+
borderBottom: "1px solid",
|
|
692
|
+
borderColor: "divider"
|
|
693
|
+
}
|
|
694
|
+
},
|
|
695
|
+
children: V
|
|
696
|
+
}
|
|
697
|
+
) }, s.name);
|
|
611
698
|
}),
|
|
612
699
|
u && r && /* @__PURE__ */ e(
|
|
613
700
|
H3,
|
|
@@ -618,20 +705,20 @@ const d3 = (t, o) => {
|
|
|
618
705
|
}
|
|
619
706
|
)
|
|
620
707
|
] });
|
|
621
|
-
},
|
|
622
|
-
const { onEvent: t } =
|
|
623
|
-
return h.useEffect(() => t(
|
|
624
|
-
/* @__PURE__ */ e(
|
|
708
|
+
}, A3 = A(v3), b3 = () => {
|
|
709
|
+
const { onEvent: t } = D();
|
|
710
|
+
return h.useEffect(() => t(x.ACCOUNT_DETAILS_VIEW), []), /* @__PURE__ */ C(O, { children: [
|
|
711
|
+
/* @__PURE__ */ e(A3, {}),
|
|
625
712
|
/* @__PURE__ */ e(f3, {}),
|
|
626
713
|
/* @__PURE__ */ e(_3, {})
|
|
627
714
|
] });
|
|
628
|
-
},
|
|
629
|
-
const [o, n] = h.useState(!1), { selectedMember: i } =
|
|
715
|
+
}, V3 = A(b3), M3 = ({ setTabValue: t }) => {
|
|
716
|
+
const [o, n] = h.useState(!1), { selectedMember: i } = w(), { accounts: c, connect: l } = M(), u = i.connection_status && p1.includes(i.connection_status);
|
|
630
717
|
if (h.useEffect(() => {
|
|
631
718
|
u && t(1);
|
|
632
719
|
}, [u]), !u) return;
|
|
633
|
-
const a =
|
|
634
|
-
return /* @__PURE__ */ C(
|
|
720
|
+
const a = A1(i, l);
|
|
721
|
+
return /* @__PURE__ */ C(R, { children: [
|
|
635
722
|
/* @__PURE__ */ e(
|
|
636
723
|
n3,
|
|
637
724
|
{
|
|
@@ -682,12 +769,12 @@ const d3 = (t, o) => {
|
|
|
682
769
|
}
|
|
683
770
|
)
|
|
684
771
|
] });
|
|
685
|
-
},
|
|
686
|
-
const [t, o] = h.useState(""), { onEvent: n } =
|
|
772
|
+
}, y3 = A(M3), x3 = () => {
|
|
773
|
+
const [t, o] = h.useState(""), { onEvent: n } = D(), { selectedAccount: i } = w(), { accounts: c } = M(), { isTransactionDataLoaded: l, loadTransactionData: u, setFilter: a, sortedTransactions: r } = m1();
|
|
687
774
|
h.useEffect(() => {
|
|
688
775
|
l || u().finally();
|
|
689
776
|
}, []);
|
|
690
|
-
const
|
|
777
|
+
const p = h.useMemo(
|
|
691
778
|
() => r.find((_) => _.guid === t),
|
|
692
779
|
[t, r]
|
|
693
780
|
);
|
|
@@ -696,23 +783,23 @@ const d3 = (t, o) => {
|
|
|
696
783
|
dateRange: { start: o3(i3(), 90), end: c3() },
|
|
697
784
|
accounts: [i.guid]
|
|
698
785
|
});
|
|
699
|
-
}, [i]), h.useEffect(() => n(
|
|
786
|
+
}, [i]), h.useEffect(() => n(x.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ C(R, { children: [
|
|
700
787
|
/* @__PURE__ */ e(a3, { onClick: o }),
|
|
701
|
-
|
|
788
|
+
p && /* @__PURE__ */ e(
|
|
702
789
|
t1,
|
|
703
790
|
{
|
|
704
791
|
ariaLabelClose: c.close_drawer,
|
|
705
792
|
isOpen: !!t,
|
|
706
793
|
onClose: () => o(""),
|
|
707
794
|
title: c.transaction_drawer_title,
|
|
708
|
-
children: /* @__PURE__ */ e(s3, { transaction:
|
|
795
|
+
children: /* @__PURE__ */ e(s3, { transaction: p })
|
|
709
796
|
}
|
|
710
797
|
)
|
|
711
798
|
] });
|
|
712
|
-
}, w3 =
|
|
713
|
-
const [t, o] = h.useState(0), { accounts: n } =
|
|
714
|
-
return /* @__PURE__ */ C(
|
|
715
|
-
/* @__PURE__ */ e(
|
|
799
|
+
}, w3 = A(x3), R3 = () => {
|
|
800
|
+
const [t, o] = h.useState(0), { accounts: n } = M();
|
|
801
|
+
return /* @__PURE__ */ C(R, { children: [
|
|
802
|
+
/* @__PURE__ */ e(y3, { setTabValue: o }),
|
|
716
803
|
/* @__PURE__ */ C(
|
|
717
804
|
I1,
|
|
718
805
|
{
|
|
@@ -743,62 +830,62 @@ const d3 = (t, o) => {
|
|
|
743
830
|
}
|
|
744
831
|
),
|
|
745
832
|
/* @__PURE__ */ e(r1, { index: 0, name: "transaction-details", value: t, children: /* @__PURE__ */ e(w3, {}) }),
|
|
746
|
-
/* @__PURE__ */ e(r1, { index: 1, name: "account-details", value: t, children: /* @__PURE__ */ e(
|
|
833
|
+
/* @__PURE__ */ e(r1, { index: 1, name: "account-details", value: t, children: /* @__PURE__ */ e(V3, {}) })
|
|
747
834
|
] });
|
|
748
|
-
}, S3 =
|
|
749
|
-
const [t, o] = h.useState(""), { accounts: n } =
|
|
835
|
+
}, S3 = A(R3), T3 = () => {
|
|
836
|
+
const [t, o] = h.useState(""), { accounts: n } = M(), { allSelectedAccounts: i } = G(), { setSelectedAccount: c, setSelectedMember: l } = w(), { members: u } = E(), { onEvent: a } = D(), r = [...new Set(i.map((d) => d.account_type))], p = i.find((d) => t === d.guid), _ = h.useMemo(
|
|
750
837
|
() => i.filter((d) => d.is_hidden),
|
|
751
838
|
[i]
|
|
752
839
|
), s = h.useMemo(
|
|
753
840
|
() => i.filter((d) => d.is_closed),
|
|
754
841
|
[i]
|
|
755
842
|
), H = _.reduce(
|
|
756
|
-
(d,
|
|
843
|
+
(d, m) => (m.available_balance || m.balance || 0) + d,
|
|
757
844
|
0
|
|
758
|
-
),
|
|
845
|
+
), b = k1(s, n);
|
|
759
846
|
h.useEffect(() => {
|
|
760
|
-
if (
|
|
761
|
-
c(
|
|
762
|
-
const d = u.find((
|
|
847
|
+
if (p) {
|
|
848
|
+
c(p);
|
|
849
|
+
const d = u.find((m) => m.guid === p?.member_guid) || {};
|
|
763
850
|
d && l(d);
|
|
764
851
|
}
|
|
765
|
-
}, [
|
|
766
|
-
const
|
|
767
|
-
o(d.guid), a(
|
|
852
|
+
}, [p, t]);
|
|
853
|
+
const V = (d) => {
|
|
854
|
+
o(d.guid), a(x.ACCOUNTS_CLICK_ACCOUNT, {
|
|
768
855
|
account_guid: d.guid,
|
|
769
856
|
account_type: d.account_type
|
|
770
857
|
});
|
|
771
|
-
},
|
|
772
|
-
const
|
|
858
|
+
}, y = (d) => {
|
|
859
|
+
const m = d === "hidden" ? _ : s, k = d === "hidden" ? H : b, v = d === "hidden" ? n.account_hidden : n.account_closed;
|
|
773
860
|
return /* @__PURE__ */ e(c1, { children: /* @__PURE__ */ e(
|
|
774
|
-
|
|
861
|
+
O,
|
|
775
862
|
{
|
|
776
|
-
"aria-label":
|
|
777
|
-
subheader: /* @__PURE__ */ e(
|
|
863
|
+
"aria-label": v,
|
|
864
|
+
subheader: /* @__PURE__ */ e(B, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ C(
|
|
778
865
|
P,
|
|
779
866
|
{
|
|
780
867
|
component: "span",
|
|
781
868
|
direction: "row",
|
|
782
869
|
sx: { justifyContent: "space-between", color: "grey.700" },
|
|
783
870
|
children: [
|
|
784
|
-
/* @__PURE__ */ e(g, { bold: !0, variant: "body1", children:
|
|
785
|
-
/* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: d1(
|
|
871
|
+
/* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: v }),
|
|
872
|
+
/* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: d1(k, "0,0.00") })
|
|
786
873
|
]
|
|
787
874
|
}
|
|
788
875
|
) }),
|
|
789
|
-
children: /* @__PURE__ */ e(P, { children:
|
|
790
|
-
const K =
|
|
876
|
+
children: /* @__PURE__ */ e(P, { children: m.map((S, F, b1) => {
|
|
877
|
+
const K = F === b1.length - 1;
|
|
791
878
|
return /* @__PURE__ */ C(h.Fragment, { children: [
|
|
792
879
|
/* @__PURE__ */ e(
|
|
793
|
-
|
|
880
|
+
U,
|
|
794
881
|
{
|
|
795
|
-
account:
|
|
796
|
-
onRowClick: () =>
|
|
882
|
+
account: S,
|
|
883
|
+
onRowClick: () => V(S),
|
|
797
884
|
shouldShowConnectionStatus: !0
|
|
798
885
|
}
|
|
799
886
|
),
|
|
800
887
|
d === "hidden" ? /* @__PURE__ */ e(
|
|
801
|
-
|
|
888
|
+
W,
|
|
802
889
|
{
|
|
803
890
|
sx: {
|
|
804
891
|
mb: K ? 24 : 4,
|
|
@@ -806,7 +893,7 @@ const d3 = (t, o) => {
|
|
|
806
893
|
}
|
|
807
894
|
}
|
|
808
895
|
) : !K && /* @__PURE__ */ e(
|
|
809
|
-
|
|
896
|
+
W,
|
|
810
897
|
{
|
|
811
898
|
sx: {
|
|
812
899
|
mb: 4,
|
|
@@ -814,24 +901,24 @@ const d3 = (t, o) => {
|
|
|
814
901
|
}
|
|
815
902
|
}
|
|
816
903
|
)
|
|
817
|
-
] },
|
|
904
|
+
] }, S.guid);
|
|
818
905
|
}) })
|
|
819
906
|
}
|
|
820
907
|
) });
|
|
821
908
|
};
|
|
822
909
|
return /* @__PURE__ */ C(c1, { sx: { pt: 24 }, children: [
|
|
823
910
|
r.map((d) => {
|
|
824
|
-
const
|
|
825
|
-
(
|
|
826
|
-
),
|
|
827
|
-
(
|
|
911
|
+
const m = i.filter(
|
|
912
|
+
(v) => v.account_type === d && !v.is_closed && !v.is_hidden
|
|
913
|
+
), k = m.reduce(
|
|
914
|
+
(v, S) => (S.balance || 0) + v,
|
|
828
915
|
0
|
|
829
916
|
);
|
|
830
|
-
return
|
|
831
|
-
|
|
917
|
+
return m.length === 0 ? null : /* @__PURE__ */ e(
|
|
918
|
+
O,
|
|
832
919
|
{
|
|
833
|
-
"aria-label": n.account_type_accounts[
|
|
834
|
-
subheader: /* @__PURE__ */ e(
|
|
920
|
+
"aria-label": n.account_type_accounts[m[0]?.account_type],
|
|
921
|
+
subheader: /* @__PURE__ */ e(B, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ C(
|
|
835
922
|
P,
|
|
836
923
|
{
|
|
837
924
|
component: "span",
|
|
@@ -839,38 +926,38 @@ const d3 = (t, o) => {
|
|
|
839
926
|
sx: { display: "flex", justifyContent: "space-between" },
|
|
840
927
|
children: [
|
|
841
928
|
/* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: n.account_types[d] }),
|
|
842
|
-
/* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: d1(
|
|
929
|
+
/* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: d1(k, "0,0.00") })
|
|
843
930
|
]
|
|
844
931
|
}
|
|
845
932
|
) }),
|
|
846
|
-
children: /* @__PURE__ */ e(P, { children:
|
|
847
|
-
const
|
|
933
|
+
children: /* @__PURE__ */ e(P, { children: m.map((v) => {
|
|
934
|
+
const S = i.indexOf(v) === i.length - 1, F = m.indexOf(v) === m.length - 1;
|
|
848
935
|
return /* @__PURE__ */ C(h.Fragment, { children: [
|
|
849
936
|
/* @__PURE__ */ e(
|
|
850
|
-
|
|
937
|
+
U,
|
|
851
938
|
{
|
|
852
|
-
account:
|
|
853
|
-
onRowClick: () =>
|
|
939
|
+
account: v,
|
|
940
|
+
onRowClick: () => V(v),
|
|
854
941
|
shouldShowConnectionStatus: !0
|
|
855
942
|
}
|
|
856
943
|
),
|
|
857
|
-
(!
|
|
858
|
-
|
|
944
|
+
(!S || s.length > 0 || _.length > 0) && /* @__PURE__ */ e(
|
|
945
|
+
W,
|
|
859
946
|
{
|
|
860
947
|
sx: {
|
|
861
|
-
mb:
|
|
862
|
-
ml:
|
|
948
|
+
mb: F ? 24 : 4,
|
|
949
|
+
ml: F ? 24 : 68
|
|
863
950
|
}
|
|
864
951
|
}
|
|
865
952
|
)
|
|
866
|
-
] },
|
|
953
|
+
] }, v.guid);
|
|
867
954
|
}) })
|
|
868
955
|
},
|
|
869
956
|
d
|
|
870
957
|
);
|
|
871
958
|
}),
|
|
872
|
-
_.length > 0 &&
|
|
873
|
-
s.length > 0 &&
|
|
959
|
+
_.length > 0 && y("hidden"),
|
|
960
|
+
s.length > 0 && y("closed"),
|
|
874
961
|
/* @__PURE__ */ C(
|
|
875
962
|
t1,
|
|
876
963
|
{
|
|
@@ -879,45 +966,45 @@ const d3 = (t, o) => {
|
|
|
879
966
|
onClose: () => o(""),
|
|
880
967
|
title: n.account_details,
|
|
881
968
|
children: [
|
|
882
|
-
/* @__PURE__ */ e(
|
|
969
|
+
/* @__PURE__ */ e(y1, { ChartComponent: h3 }),
|
|
883
970
|
/* @__PURE__ */ e(S3, {})
|
|
884
971
|
]
|
|
885
972
|
}
|
|
886
973
|
)
|
|
887
974
|
] });
|
|
888
|
-
}, E3 =
|
|
889
|
-
const [n, i] = h.useState(!1), [c, l] = h.useState(!1), { config: u } = E1(), { isAccountDataLoaded: a, loadAccountData: r } =
|
|
975
|
+
}, E3 = A(T3), D3 = ({ onBackClick: t, sx: o = {} }) => {
|
|
976
|
+
const [n, i] = h.useState(!1), [c, l] = h.useState(!1), { config: u } = E1(), { isAccountDataLoaded: a, loadAccountData: r } = E(), { accounts: p, connect: _ } = M(), { isInitialized: s, selectedAccountGuids: H } = G(), { isDesktop: b } = H1(), { onEvent: V } = D();
|
|
890
977
|
n1({
|
|
891
978
|
widgetName: "AccountsWidget",
|
|
892
979
|
isLoaded: a
|
|
893
980
|
}), h.useEffect(() => {
|
|
894
981
|
a || r().finally();
|
|
895
982
|
}, []);
|
|
896
|
-
const
|
|
897
|
-
i(!0),
|
|
983
|
+
const y = () => {
|
|
984
|
+
i(!0), V(x.ACCOUNTS_CLICK_CONNECT);
|
|
898
985
|
}, d = () => {
|
|
899
|
-
l(!0),
|
|
986
|
+
l(!0), V(x.ACCOUNTS_CLICK_CONNECT);
|
|
900
987
|
};
|
|
901
988
|
return s ? /* @__PURE__ */ C(
|
|
902
989
|
r3,
|
|
903
990
|
{
|
|
904
991
|
actions: u.show_connections_widget_in_master ? [
|
|
905
|
-
{ iconName: "add", label:
|
|
992
|
+
{ iconName: "add", label: p.add, onClick: y },
|
|
906
993
|
{
|
|
907
994
|
iconName: "credit_card_gear",
|
|
908
|
-
label:
|
|
995
|
+
label: p.manage,
|
|
909
996
|
onClick: d
|
|
910
997
|
}
|
|
911
998
|
] : [],
|
|
912
|
-
onAccountsFilterClick: () =>
|
|
999
|
+
onAccountsFilterClick: () => V(x.ACCOUNTS_CLICK_FILTER),
|
|
913
1000
|
onBackClick: t,
|
|
914
1001
|
sx: o,
|
|
915
|
-
title:
|
|
1002
|
+
title: p.title,
|
|
916
1003
|
children: [
|
|
917
|
-
a ? /* @__PURE__ */ C(e1, { sx: { px:
|
|
918
|
-
H.length < 1 && /* @__PURE__ */ e(g, { display: "flex", justifyContent: "center", my: 24, children:
|
|
1004
|
+
a ? /* @__PURE__ */ C(e1, { sx: { px: b ? 24 : 12 }, children: [
|
|
1005
|
+
H.length < 1 && /* @__PURE__ */ e(g, { display: "flex", justifyContent: "center", my: 24, children: p.no_accounts }),
|
|
919
1006
|
/* @__PURE__ */ e(E3, {})
|
|
920
|
-
] }) : /* @__PURE__ */ e(h1, { sx: { px:
|
|
1007
|
+
] }) : /* @__PURE__ */ e(h1, { sx: { px: b ? 48 : 24, pt: 24 }, variant: "list" }),
|
|
921
1008
|
/* @__PURE__ */ e(
|
|
922
1009
|
z,
|
|
923
1010
|
{
|
|
@@ -931,13 +1018,13 @@ const d3 = (t, o) => {
|
|
|
931
1018
|
{
|
|
932
1019
|
onClose: () => l(!1),
|
|
933
1020
|
showConnectionsWidget: c,
|
|
934
|
-
title:
|
|
1021
|
+
title: p.manage_connections
|
|
935
1022
|
}
|
|
936
1023
|
)
|
|
937
1024
|
]
|
|
938
1025
|
}
|
|
939
1026
|
) : /* @__PURE__ */ e(o1, {});
|
|
940
|
-
}, Q2 =
|
|
1027
|
+
}, Q2 = A(D3);
|
|
941
1028
|
function k3(t) {
|
|
942
1029
|
const { heldAccounts: o, externalAccounts: n } = t.reduce(
|
|
943
1030
|
(i, c) => (c.member_is_managed_by_user ? i.externalAccounts.push(c) : i.heldAccounts.push(c), i),
|
|
@@ -953,16 +1040,16 @@ function I3(t, o) {
|
|
|
953
1040
|
return c.length < o && c.push(...i.slice(0, o - c.length)), c;
|
|
954
1041
|
}
|
|
955
1042
|
const Z3 = {
|
|
956
|
-
[
|
|
957
|
-
[
|
|
958
|
-
[
|
|
1043
|
+
[I.CHECKING]: 1,
|
|
1044
|
+
[I.SAVINGS]: 2,
|
|
1045
|
+
[I.CREDIT_CARD]: 3
|
|
959
1046
|
}, u1 = (t) => Z3[t] ?? t + 100, C1 = (t) => t.sort((o, n) => {
|
|
960
1047
|
const i = u1(o.account_type), c = u1(n.account_type), l = i - c;
|
|
961
1048
|
if (l !== 0) return l;
|
|
962
1049
|
const u = o.name ?? o.feed_name ?? "", a = n.name ?? n.feed_name ?? "";
|
|
963
1050
|
return u.localeCompare(a);
|
|
964
1051
|
}), N3 = ({ onPrimaryCtaClick: t, sx: o }) => {
|
|
965
|
-
const { isAccountDataLoaded: n, loadAccountData: i } =
|
|
1052
|
+
const { isAccountDataLoaded: n, loadAccountData: i } = E(), { accounts: c } = M(), { isInitialized: l, selectedAccounts: u } = G(), { isDesktop: a } = H1();
|
|
966
1053
|
n1({
|
|
967
1054
|
widgetName: "AccountsMiniWidget",
|
|
968
1055
|
isLoaded: l
|
|
@@ -974,33 +1061,33 @@ const Z3 = {
|
|
|
974
1061
|
[u, a]
|
|
975
1062
|
);
|
|
976
1063
|
return l ? /* @__PURE__ */ e(
|
|
977
|
-
|
|
1064
|
+
v1,
|
|
978
1065
|
{
|
|
979
1066
|
className: "mx-exp-accounts-miniwidget",
|
|
980
1067
|
onPrimaryCtaClick: t,
|
|
981
1068
|
primaryCtaLabel: c.primary_cta,
|
|
982
1069
|
sx: o,
|
|
983
1070
|
title: c.mini_title,
|
|
984
|
-
children: n ? /* @__PURE__ */ C(
|
|
985
|
-
u.length === 0 && /* @__PURE__ */ e(
|
|
986
|
-
r.map((
|
|
987
|
-
const s = r.indexOf(
|
|
1071
|
+
children: n ? /* @__PURE__ */ C(O, { children: [
|
|
1072
|
+
u.length === 0 && /* @__PURE__ */ e(T, { sx: { justifyContent: "center" }, children: c.no_accounts }),
|
|
1073
|
+
r.map((p, _) => {
|
|
1074
|
+
const s = r.indexOf(p) === r.length - 1;
|
|
988
1075
|
return /* @__PURE__ */ C(h.Fragment, { children: [
|
|
989
1076
|
/* @__PURE__ */ e(
|
|
990
|
-
|
|
1077
|
+
U,
|
|
991
1078
|
{
|
|
992
|
-
account:
|
|
1079
|
+
account: p,
|
|
993
1080
|
listItemProps: { sx: { px: 24 } },
|
|
994
1081
|
shouldShowConnectionStatus: !0
|
|
995
1082
|
}
|
|
996
1083
|
),
|
|
997
|
-
!s && /* @__PURE__ */ e(
|
|
1084
|
+
!s && /* @__PURE__ */ e(W, { "aria-hidden": "true", variant: "inset" })
|
|
998
1085
|
] }, `account-item${_}`);
|
|
999
1086
|
})
|
|
1000
1087
|
] }) : /* @__PURE__ */ e(h1, { sx: { px: 12, py: 8 }, variant: "list" })
|
|
1001
1088
|
}
|
|
1002
1089
|
) : /* @__PURE__ */ e(o1, {});
|
|
1003
|
-
}, e4 =
|
|
1090
|
+
}, e4 = A(N3), O3 = () => /* @__PURE__ */ C(
|
|
1004
1091
|
"svg",
|
|
1005
1092
|
{
|
|
1006
1093
|
fill: "none",
|
|
@@ -1440,7 +1527,7 @@ const Z3 = {
|
|
|
1440
1527
|
]
|
|
1441
1528
|
}
|
|
1442
1529
|
), F3 = () => {
|
|
1443
|
-
const { connect: t } =
|
|
1530
|
+
const { connect: t } = M();
|
|
1444
1531
|
return /* @__PURE__ */ C(e1, { alignItems: "center", direction: "column", m: 24, children: [
|
|
1445
1532
|
/* @__PURE__ */ e(O3, {}),
|
|
1446
1533
|
/* @__PURE__ */ e(
|
|
@@ -1456,19 +1543,19 @@ const Z3 = {
|
|
|
1456
1543
|
}
|
|
1457
1544
|
)
|
|
1458
1545
|
] });
|
|
1459
|
-
},
|
|
1546
|
+
}, P3 = A(F3), W3 = ({
|
|
1460
1547
|
onPrimaryCtaClick: t = () => {
|
|
1461
1548
|
},
|
|
1462
1549
|
sx: o
|
|
1463
1550
|
}) => {
|
|
1464
|
-
const { isCopyLoaded: n } = G(), { connect: i } =
|
|
1551
|
+
const { isCopyLoaded: n } = G(), { connect: i } = M(), [c, l] = h.useState(!1), u = () => {
|
|
1465
1552
|
l(!0), t();
|
|
1466
1553
|
};
|
|
1467
1554
|
return n1({
|
|
1468
1555
|
widgetName: "ConnectMiniWidget",
|
|
1469
1556
|
isLoaded: n
|
|
1470
1557
|
}), n ? /* @__PURE__ */ C(
|
|
1471
|
-
|
|
1558
|
+
v1,
|
|
1472
1559
|
{
|
|
1473
1560
|
className: "mx-exp-connect-miniwidget",
|
|
1474
1561
|
onPrimaryCtaClick: u,
|
|
@@ -1476,7 +1563,7 @@ const Z3 = {
|
|
|
1476
1563
|
sx: o,
|
|
1477
1564
|
title: i.mini_title,
|
|
1478
1565
|
children: [
|
|
1479
|
-
/* @__PURE__ */ e(
|
|
1566
|
+
/* @__PURE__ */ e(P3, {}),
|
|
1480
1567
|
c && /* @__PURE__ */ e(
|
|
1481
1568
|
z,
|
|
1482
1569
|
{
|
|
@@ -1488,11 +1575,11 @@ const Z3 = {
|
|
|
1488
1575
|
]
|
|
1489
1576
|
}
|
|
1490
1577
|
) : /* @__PURE__ */ e(o1, {});
|
|
1491
|
-
}, t4 =
|
|
1578
|
+
}, t4 = A(W3);
|
|
1492
1579
|
export {
|
|
1493
1580
|
l4 as AccountApi,
|
|
1494
1581
|
S3 as AccountDetailsContent,
|
|
1495
|
-
|
|
1582
|
+
y1 as AccountDetailsHeader,
|
|
1496
1583
|
d4 as AccountStore,
|
|
1497
1584
|
e4 as AccountsMiniWidget,
|
|
1498
1585
|
Q2 as AccountsWidget,
|
|
@@ -1501,6 +1588,6 @@ export {
|
|
|
1501
1588
|
a4 as MemberConnectionStatus,
|
|
1502
1589
|
i4 as getAccountBalanceDetails,
|
|
1503
1590
|
D1 as getAccountDetailFields,
|
|
1504
|
-
|
|
1591
|
+
w as useAccountUiStore,
|
|
1505
1592
|
m3 as useGetMergeableAccounts
|
|
1506
1593
|
};
|