@mx-cartographer/experiences 7.2.16-alpha.mm0 → 8.0.0-alpha.bb1
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/{Account-vp_TAbGt.mjs → Account-Bxw0_4FU.mjs} +1 -1
- package/dist/{AccountDetailsContent-CsH1w_GZ.mjs → AccountDetailsContent-CAM9y39M.mjs} +6 -6
- package/dist/{AccountDetailsHeader-Df1JkzYi.mjs → AccountDetailsHeader-JtSX6Uf9.mjs} +4 -4
- package/dist/{AccountFields-DUToRRqW.mjs → AccountFields-C9FlatNb.mjs} +2 -2
- package/dist/{AccountListItem-CeY_WIpj.mjs → AccountListItem-JFMZROh7.mjs} +7 -7
- package/dist/{AccountStore-BkoLK9Tq.mjs → AccountStore-BgNOyMdp.mjs} +74 -100
- package/dist/Accounts-BRf_YeTf.mjs +27 -0
- package/dist/CategoryStore-yHI0hWmK.mjs +174 -0
- package/dist/CategoryUtil-pZRIYOgN.mjs +80 -0
- package/dist/{ConnectDrawer-Bw5s6Dw1.mjs → ConnectDrawer-BQNs-hjk.mjs} +9 -9
- package/dist/{ConnectionsDrawer-BDvVuJQf.mjs → ConnectionsDrawer-ByGQE7D5.mjs} +3 -3
- package/dist/{DebtsStore-BD_XwsI7.mjs → DebtsStore-C9bblOgW.mjs} +1 -1
- package/dist/{GoalStore-DZ_Jvsa_.mjs → GoalStore-D-aB35SY.mjs} +151 -111
- package/dist/{ManageIncome-CV-bGuR-.mjs → ManageIncome-1s_q5W4X.mjs} +3 -3
- package/dist/{NetWorthStore-D1NiDUcc.mjs → NetWorthStore-DCsTZpuS.mjs} +2 -2
- package/dist/{NotificationSettings-5i3IywCi.mjs → NotificationSettings-DqrkNMod.mjs} +236 -238
- package/dist/{NotificationStore-C6PH6MKm.mjs → NotificationStore-BxP_P2dA.mjs} +23 -15
- package/dist/{RecurringSettings-G6_BbsIF.mjs → RecurringSettings-A_rAGCTP.mjs} +3 -3
- package/dist/{RecurringTransactions-ej39mgA6.mjs → RecurringTransactions-DK8dWldr.mjs} +3 -3
- package/dist/{RecurringTransactionsStore-DrzS1LmF.mjs → RecurringTransactionsStore-C4YOD7_D.mjs} +29 -26
- package/dist/{TransactionDetails-CDtya0KS.mjs → TransactionDetails-oP1eSuiS.mjs} +1 -1
- package/dist/TransactionStore-ai3uII_r.mjs +690 -0
- package/dist/{WidgetContainer-EbrN1oIo.mjs → WidgetContainer-BHWANqT4.mjs} +1 -1
- package/dist/accounts/components/AccountsWidgetContent.d.ts +3 -0
- package/dist/accounts/index.es.js +184 -174
- package/dist/accounts/stores/AccountStore.d.ts +25 -22
- package/dist/accounts/utils/Accounts.d.ts +2 -1
- package/dist/budgets/index.es.js +499 -501
- package/dist/budgets/store/BudgetsStore.d.ts +1 -0
- package/dist/cashflow/index.es.js +382 -384
- package/dist/categories/index.es.js +1 -1
- package/dist/categories/stores/CategoryStore.d.ts +5 -1
- package/dist/categories/util/CategoryUtil.d.ts +3 -2
- package/dist/common/index.es.js +206 -214
- package/dist/common/stores/AppDataStore.d.ts +3 -1
- package/dist/common/stores/GlobalCopyStore.d.ts +0 -1
- package/dist/common/stores/GlobalStore.d.ts +3 -3
- package/dist/common/stores/UserStore.d.ts +3 -2
- package/dist/common/types/Account.d.ts +9 -6
- package/dist/dashboard/index.es.js +1 -1
- package/dist/debts/index.es.js +375 -377
- package/dist/finstrong/index.es.js +415 -417
- package/dist/goals/index.es.js +557 -559
- package/dist/goals/stores/GoalStore.d.ts +17 -4
- package/dist/help/index.es.js +1 -1
- package/dist/investments/index.es.js +435 -437
- package/dist/investments/stores/HoldingStore.d.ts +1 -0
- package/dist/networth/index.es.js +172 -174
- package/dist/notifications/index.es.js +3 -3
- package/dist/notifications/stores/NotificationStore.d.ts +3 -1
- package/dist/recurringtransactions/index.es.js +173 -175
- package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +3 -2
- package/dist/settings/index.es.js +279 -285
- package/dist/spending/index.es.js +281 -283
- package/dist/transactions/index.es.js +6 -6
- package/dist/transactions/stores/TransactionStore.d.ts +21 -77
- package/dist/trends/index.es.js +4 -4
- package/dist/{useAccountDisplayName-jS05A6-6.mjs → useAccountDisplayName-BUAApBIb.mjs} +1 -1
- package/package.json +4 -4
- package/dist/Accounts-C1QxUB-e.mjs +0 -9
- package/dist/CategoryStore-BCcpI3oJ.mjs +0 -183
- package/dist/CategoryUtil-BR3H5i6n.mjs +0 -78
- package/dist/TransactionStore-DxPLdF3B.mjs +0 -677
|
@@ -1,80 +1,81 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { observer as
|
|
4
|
-
import
|
|
1
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import c from "react";
|
|
3
|
+
import { observer as g } from "mobx-react-lite";
|
|
4
|
+
import { Text as v } from "@mxenabled/mxui";
|
|
5
|
+
import O from "@mui/material/Box";
|
|
5
6
|
import y from "@mui/material/Divider";
|
|
6
7
|
import E from "@mui/material/List";
|
|
7
|
-
import
|
|
8
|
+
import I from "@mui/material/ListSubheader";
|
|
8
9
|
import A from "@mui/system/Stack";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { u as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import { f as I } from "../NumberFormatting-Buh7u8Oi.mjs";
|
|
10
|
+
import { A as z } from "../AccountDetailsContent-CAM9y39M.mjs";
|
|
11
|
+
import { u as U1 } from "../AccountDetailsContent-CAM9y39M.mjs";
|
|
12
|
+
import { u as P, A as Y } from "../AccountDetailsHeader-JtSX6Uf9.mjs";
|
|
13
|
+
import { A as D } from "../AccountListItem-JFMZROh7.mjs";
|
|
14
|
+
import { a as q } from "../AccountFields-C9FlatNb.mjs";
|
|
15
|
+
import { g as j1, b as G1 } from "../AccountFields-C9FlatNb.mjs";
|
|
16
|
+
import { u as R, b as w, d as k, g as U, a as J } from "../hooks-D6XlXHf4.mjs";
|
|
17
|
+
import { f as N } from "../NumberFormatting-Buh7u8Oi.mjs";
|
|
18
18
|
import { D as Q } from "../Drawer-kEE73B87.mjs";
|
|
19
|
-
import { A as S, W as X } from "../WidgetContainer-
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
19
|
+
import { A as S, W as X } from "../WidgetContainer-BHWANqT4.mjs";
|
|
20
|
+
import T from "@mui/material/Stack";
|
|
21
|
+
import _ from "@mui/material/Skeleton";
|
|
22
|
+
import { u as $ } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
23
|
+
import { C as e1 } from "../ConnectionsDrawer-ByGQE7D5.mjs";
|
|
24
|
+
import { L as b } from "../Loader-DUaFpDGv.mjs";
|
|
25
|
+
import { l as j, m as t1 } from "../ConnectDrawer-BQNs-hjk.mjs";
|
|
26
|
+
import { F as z1, f as P1 } from "../ConnectDrawer-BQNs-hjk.mjs";
|
|
25
27
|
import l1 from "@mui/material/ListItem";
|
|
26
|
-
import { M as
|
|
27
|
-
import
|
|
28
|
-
import { A as Y1, a as q1 } from "../AccountStore-BkoLK9Tq.mjs";
|
|
28
|
+
import { M as G } from "../MiniWidgetContainer-D0gfmbaF.mjs";
|
|
29
|
+
import { A as q1, a as J1 } from "../AccountStore-BgNOyMdp.mjs";
|
|
29
30
|
const n1 = () => {
|
|
30
|
-
const [
|
|
31
|
+
const [d, a] = c.useState(""), { accounts: n } = R(), { selectedAccounts: l } = w(), { setSelectedAccount: H, setSelectedMember: L } = P(), { members: u } = k(), { onEvent: p } = U(), m = [...new Set(l.map((t) => t.account_type))], r = l.find((t) => d === t.guid), s = c.useMemo(
|
|
31
32
|
() => l.filter((t) => t.is_hidden),
|
|
32
33
|
[l]
|
|
33
|
-
),
|
|
34
|
+
), h = c.useMemo(
|
|
34
35
|
() => l.filter((t) => t.is_closed),
|
|
35
36
|
[l]
|
|
36
|
-
),
|
|
37
|
-
(t,
|
|
37
|
+
), M = s.reduce(
|
|
38
|
+
(t, o) => (o.available_balance || o.balance || 0) + t,
|
|
38
39
|
0
|
|
39
|
-
),
|
|
40
|
-
|
|
40
|
+
), F = q(h, n);
|
|
41
|
+
c.useEffect(() => {
|
|
41
42
|
if (r) {
|
|
42
|
-
|
|
43
|
-
const t =
|
|
44
|
-
t &&
|
|
43
|
+
H(r);
|
|
44
|
+
const t = u.find((o) => o.guid === r?.member_guid) || {};
|
|
45
|
+
t && L(t);
|
|
45
46
|
}
|
|
46
|
-
}, [r,
|
|
47
|
-
const
|
|
48
|
-
|
|
47
|
+
}, [r, d]);
|
|
48
|
+
const V = (t) => {
|
|
49
|
+
a(t.guid), p(S.ACCOUNTS_CLICK_ACCOUNT, {
|
|
49
50
|
account_guid: t.guid,
|
|
50
51
|
account_type: t.account_type
|
|
51
52
|
});
|
|
52
|
-
},
|
|
53
|
-
const
|
|
54
|
-
return /* @__PURE__ */ e(
|
|
53
|
+
}, Z = (t) => {
|
|
54
|
+
const o = t === "hidden" ? s : h, B = t === "hidden" ? M : F, C = t === "hidden" ? n.account_hidden : n.account_closed;
|
|
55
|
+
return /* @__PURE__ */ e(O, { children: /* @__PURE__ */ e(
|
|
55
56
|
E,
|
|
56
57
|
{
|
|
57
|
-
"aria-label":
|
|
58
|
-
subheader: /* @__PURE__ */ e(
|
|
58
|
+
"aria-label": C,
|
|
59
|
+
subheader: /* @__PURE__ */ e(I, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ i(
|
|
59
60
|
A,
|
|
60
61
|
{
|
|
61
62
|
component: "span",
|
|
62
63
|
direction: "row",
|
|
63
64
|
sx: { justifyContent: "space-between", color: "grey.700" },
|
|
64
65
|
children: [
|
|
65
|
-
/* @__PURE__ */ e(v, { bold: !0, variant: "Body", children:
|
|
66
|
-
/* @__PURE__ */ e(v, { bold: !0, variant: "Body", children:
|
|
66
|
+
/* @__PURE__ */ e(v, { bold: !0, variant: "Body", children: C }),
|
|
67
|
+
/* @__PURE__ */ e(v, { bold: !0, variant: "Body", children: N(B, "0,0.00") })
|
|
67
68
|
]
|
|
68
69
|
}
|
|
69
70
|
) }),
|
|
70
|
-
children: /* @__PURE__ */ e(A, { children:
|
|
71
|
-
const
|
|
72
|
-
return /* @__PURE__ */
|
|
71
|
+
children: /* @__PURE__ */ e(A, { children: o.map((f, x, K) => {
|
|
72
|
+
const W = x === K.length - 1;
|
|
73
|
+
return /* @__PURE__ */ i(c.Fragment, { children: [
|
|
73
74
|
/* @__PURE__ */ e(
|
|
74
|
-
|
|
75
|
+
D,
|
|
75
76
|
{
|
|
76
|
-
account:
|
|
77
|
-
onRowClick: () =>
|
|
77
|
+
account: f,
|
|
78
|
+
onRowClick: () => V(f),
|
|
78
79
|
shouldShowConnectionStatus: !0
|
|
79
80
|
}
|
|
80
81
|
),
|
|
@@ -82,11 +83,11 @@ const n1 = () => {
|
|
|
82
83
|
y,
|
|
83
84
|
{
|
|
84
85
|
sx: {
|
|
85
|
-
mb:
|
|
86
|
-
ml:
|
|
86
|
+
mb: W ? 24 : 4,
|
|
87
|
+
ml: W ? 24 : 68
|
|
87
88
|
}
|
|
88
89
|
}
|
|
89
|
-
) : !
|
|
90
|
+
) : !W && /* @__PURE__ */ e(
|
|
90
91
|
y,
|
|
91
92
|
{
|
|
92
93
|
sx: {
|
|
@@ -95,166 +96,175 @@ const n1 = () => {
|
|
|
95
96
|
}
|
|
96
97
|
}
|
|
97
98
|
)
|
|
98
|
-
] },
|
|
99
|
+
] }, f.guid);
|
|
99
100
|
}) })
|
|
100
101
|
}
|
|
101
102
|
) });
|
|
102
103
|
};
|
|
103
|
-
return /* @__PURE__ */
|
|
104
|
-
|
|
105
|
-
const
|
|
106
|
-
(
|
|
107
|
-
),
|
|
108
|
-
(
|
|
104
|
+
return /* @__PURE__ */ i(O, { sx: { pt: 24 }, children: [
|
|
105
|
+
m.map((t) => {
|
|
106
|
+
const o = l.filter(
|
|
107
|
+
(C) => C.account_type === t && !C.is_closed && !C.is_hidden
|
|
108
|
+
), B = o.reduce(
|
|
109
|
+
(C, f) => (f.balance || 0) + C,
|
|
109
110
|
0
|
|
110
111
|
);
|
|
111
|
-
return
|
|
112
|
+
return o.length === 0 ? null : /* @__PURE__ */ e(
|
|
112
113
|
E,
|
|
113
114
|
{
|
|
114
|
-
"aria-label":
|
|
115
|
-
subheader: /* @__PURE__ */ e(
|
|
115
|
+
"aria-label": n.account_type_accounts[o[0]?.account_type],
|
|
116
|
+
subheader: /* @__PURE__ */ e(I, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ i(
|
|
116
117
|
A,
|
|
117
118
|
{
|
|
118
119
|
component: "span",
|
|
119
120
|
direction: "row",
|
|
120
121
|
sx: { display: "flex", justifyContent: "space-between" },
|
|
121
122
|
children: [
|
|
122
|
-
/* @__PURE__ */ e(v, { bold: !0, variant: "Body", children:
|
|
123
|
-
/* @__PURE__ */ e(v, { bold: !0, variant: "Body", children:
|
|
123
|
+
/* @__PURE__ */ e(v, { bold: !0, variant: "Body", children: n.account_types[t] }),
|
|
124
|
+
/* @__PURE__ */ e(v, { bold: !0, variant: "Body", children: N(B, "0,0.00") })
|
|
124
125
|
]
|
|
125
126
|
}
|
|
126
127
|
) }),
|
|
127
|
-
children: /* @__PURE__ */ e(A, { children:
|
|
128
|
-
const
|
|
129
|
-
return /* @__PURE__ */
|
|
128
|
+
children: /* @__PURE__ */ e(A, { children: o.map((C) => {
|
|
129
|
+
const f = l.indexOf(C) === l.length - 1, x = o.indexOf(C) === o.length - 1;
|
|
130
|
+
return /* @__PURE__ */ i(c.Fragment, { children: [
|
|
130
131
|
/* @__PURE__ */ e(
|
|
131
|
-
|
|
132
|
+
D,
|
|
132
133
|
{
|
|
133
|
-
account:
|
|
134
|
-
onRowClick: () =>
|
|
134
|
+
account: C,
|
|
135
|
+
onRowClick: () => V(C),
|
|
135
136
|
shouldShowConnectionStatus: !0
|
|
136
137
|
}
|
|
137
138
|
),
|
|
138
|
-
(!
|
|
139
|
+
(!f || h.length > 0 || s.length > 0) && /* @__PURE__ */ e(
|
|
139
140
|
y,
|
|
140
141
|
{
|
|
141
142
|
sx: {
|
|
142
|
-
mb:
|
|
143
|
-
ml:
|
|
143
|
+
mb: x ? 24 : 4,
|
|
144
|
+
ml: x ? 24 : 68
|
|
144
145
|
}
|
|
145
146
|
}
|
|
146
147
|
)
|
|
147
|
-
] },
|
|
148
|
+
] }, C.guid);
|
|
148
149
|
}) })
|
|
149
150
|
},
|
|
150
151
|
t
|
|
151
152
|
);
|
|
152
153
|
}),
|
|
153
|
-
s.length > 0 &&
|
|
154
|
-
|
|
155
|
-
/* @__PURE__ */
|
|
154
|
+
s.length > 0 && Z("hidden"),
|
|
155
|
+
h.length > 0 && Z("closed"),
|
|
156
|
+
/* @__PURE__ */ i(
|
|
156
157
|
Q,
|
|
157
158
|
{
|
|
158
|
-
ariaLabelClose:
|
|
159
|
-
isOpen: !!
|
|
160
|
-
onClose: () =>
|
|
161
|
-
title:
|
|
159
|
+
ariaLabelClose: n.close_account_details_aria,
|
|
160
|
+
isOpen: !!d,
|
|
161
|
+
onClose: () => a(""),
|
|
162
|
+
title: n.account_details,
|
|
162
163
|
children: [
|
|
163
|
-
/* @__PURE__ */ e(
|
|
164
|
-
/* @__PURE__ */ e(
|
|
164
|
+
/* @__PURE__ */ e(Y, {}),
|
|
165
|
+
/* @__PURE__ */ e(z, {})
|
|
165
166
|
]
|
|
166
167
|
}
|
|
167
168
|
)
|
|
168
169
|
] });
|
|
169
|
-
},
|
|
170
|
-
const
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
170
|
+
}, i1 = g(n1), o1 = g(() => {
|
|
171
|
+
const { accounts: d } = R(), { isDesktop: a } = $(), { selectedAccountGuids: n } = w(), { isAccountDataLoaded: l } = k();
|
|
172
|
+
return l ? /* @__PURE__ */ i(T, { sx: { px: a ? 24 : 12 }, children: [
|
|
173
|
+
n.length < 1 && /* @__PURE__ */ e(v, { display: "flex", justifyContent: "center", my: 24, children: d.no_accounts }),
|
|
174
|
+
/* @__PURE__ */ e(i1, {})
|
|
175
|
+
] }) : /* @__PURE__ */ i(T, { gap: 24, children: [
|
|
176
|
+
/* @__PURE__ */ e(_, { height: 150, sx: { m: 24 }, variant: "rounded" }),
|
|
177
|
+
/* @__PURE__ */ e(_, { height: 150, sx: { m: 24 }, variant: "rounded" }),
|
|
178
|
+
/* @__PURE__ */ e(_, { height: 150, sx: { m: 24 }, variant: "rounded" }),
|
|
179
|
+
/* @__PURE__ */ e(_, { height: 150, sx: { m: 24 }, variant: "rounded" })
|
|
180
|
+
] });
|
|
181
|
+
}), C1 = ({ onBackClick: d, sx: a = {} }) => {
|
|
182
|
+
const [n, l] = c.useState(!1), [H, L] = c.useState(!1), { config: u } = J(), { detailedAccounts: p, isAccountDataLoaded: m, loadAccountData: r } = k(), { accounts: s, connect: h } = R(), { isInitialized: M, setSelectedAccounts: F } = w(), { onEvent: V } = U();
|
|
183
|
+
m || r().finally(), c.useEffect(() => {
|
|
184
|
+
F(p);
|
|
185
|
+
}, [p]);
|
|
186
|
+
const Z = () => {
|
|
187
|
+
l(!0), V?.(S.ACCOUNTS_CLICK_CONNECT);
|
|
188
|
+
}, t = () => {
|
|
189
|
+
L(!0), V?.(S.ACCOUNTS_CLICK_CONNECT);
|
|
180
190
|
};
|
|
181
|
-
|
|
191
|
+
if (!M)
|
|
192
|
+
return /* @__PURE__ */ e(b, {});
|
|
193
|
+
const o = u.show_connections_widget_in_master ? [
|
|
194
|
+
{ iconName: "add", label: s.add, onClick: Z },
|
|
195
|
+
{
|
|
196
|
+
iconName: "credit_card_gear",
|
|
197
|
+
label: s.manage,
|
|
198
|
+
onClick: t
|
|
199
|
+
}
|
|
200
|
+
] : [];
|
|
201
|
+
return /* @__PURE__ */ i(
|
|
182
202
|
X,
|
|
183
203
|
{
|
|
184
|
-
accountOptions:
|
|
185
|
-
actions:
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
}
|
|
192
|
-
] : [],
|
|
193
|
-
onAccountsFilterClick: () => m(S.ACCOUNTS_CLICK_FILTER),
|
|
194
|
-
onBackClick: c,
|
|
195
|
-
sx: h,
|
|
196
|
-
title: a.title,
|
|
197
|
-
children: L ? /* @__PURE__ */ n(G, { children: [
|
|
198
|
-
/* @__PURE__ */ n(B, { sx: { px: x ? 24 : 12 }, children: [
|
|
199
|
-
k.length < 1 && /* @__PURE__ */ e(v, { display: "flex", justifyContent: "center", my: 24, children: a.no_accounts }),
|
|
200
|
-
/* @__PURE__ */ e(C1, {})
|
|
201
|
-
] }),
|
|
204
|
+
accountOptions: p,
|
|
205
|
+
actions: o,
|
|
206
|
+
onAccountsFilterClick: () => V?.(S.ACCOUNTS_CLICK_FILTER),
|
|
207
|
+
onBackClick: d,
|
|
208
|
+
sx: a,
|
|
209
|
+
title: s.title,
|
|
210
|
+
children: [
|
|
211
|
+
/* @__PURE__ */ e(o1, {}),
|
|
202
212
|
/* @__PURE__ */ e(
|
|
203
|
-
|
|
213
|
+
j,
|
|
204
214
|
{
|
|
205
215
|
onClose: () => l(!1),
|
|
206
|
-
showConnectWidget:
|
|
207
|
-
title:
|
|
216
|
+
showConnectWidget: n,
|
|
217
|
+
title: h.mini_title
|
|
208
218
|
}
|
|
209
219
|
),
|
|
210
220
|
/* @__PURE__ */ e(
|
|
211
221
|
e1,
|
|
212
222
|
{
|
|
213
|
-
onClose: () =>
|
|
214
|
-
showConnectionsWidget:
|
|
215
|
-
title:
|
|
223
|
+
onClose: () => L(!1),
|
|
224
|
+
showConnectionsWidget: H,
|
|
225
|
+
title: s.manage_connections
|
|
216
226
|
}
|
|
217
227
|
)
|
|
218
|
-
]
|
|
228
|
+
]
|
|
219
229
|
}
|
|
220
|
-
) : /* @__PURE__ */ e(R, {});
|
|
221
|
-
}, W1 = w(o1), d1 = ({ onPrimaryCtaClick: c, sx: h }) => {
|
|
222
|
-
const { visibleAccounts: C } = T(), { accounts: l } = Z(), { isCopyLoaded: p, isInitialized: u, selectedAccounts: H, setSelectedAccounts: f } = b(), { isDesktop: a } = N();
|
|
223
|
-
d.useEffect(() => {
|
|
224
|
-
f(C);
|
|
225
|
-
}, [C]);
|
|
226
|
-
const r = d.useMemo(
|
|
227
|
-
() => t1(H, a ? 5 : 3),
|
|
228
|
-
[H, a]
|
|
229
230
|
);
|
|
230
|
-
|
|
231
|
-
|
|
231
|
+
}, D1 = g(C1), d1 = ({ onPrimaryCtaClick: d, sx: a }) => {
|
|
232
|
+
const { visibleAccounts: n } = k(), { accounts: l } = R(), { isCopyLoaded: H, isInitialized: L, selectedAccounts: u, setSelectedAccounts: p } = w(), { isDesktop: m } = $();
|
|
233
|
+
c.useEffect(() => {
|
|
234
|
+
p(n);
|
|
235
|
+
}, [n]);
|
|
236
|
+
const r = c.useMemo(
|
|
237
|
+
() => t1(u, m ? 5 : 3),
|
|
238
|
+
[u, m]
|
|
239
|
+
);
|
|
240
|
+
return H ? /* @__PURE__ */ e(
|
|
241
|
+
G,
|
|
232
242
|
{
|
|
233
243
|
className: "mx-exp-accounts-miniwidget",
|
|
234
|
-
onPrimaryCtaClick:
|
|
244
|
+
onPrimaryCtaClick: d,
|
|
235
245
|
primaryCtaLabel: l.primary_cta,
|
|
236
|
-
sx:
|
|
246
|
+
sx: a,
|
|
237
247
|
title: l.mini_title,
|
|
238
|
-
children:
|
|
239
|
-
|
|
240
|
-
r.map((s,
|
|
241
|
-
const
|
|
242
|
-
return /* @__PURE__ */
|
|
248
|
+
children: L ? /* @__PURE__ */ i(E, { children: [
|
|
249
|
+
u.length === 0 && /* @__PURE__ */ e(l1, { sx: { justifyContent: "center" }, children: l.no_accounts }),
|
|
250
|
+
r.map((s, h) => {
|
|
251
|
+
const M = r.indexOf(s) === r.length - 1;
|
|
252
|
+
return /* @__PURE__ */ i(c.Fragment, { children: [
|
|
243
253
|
/* @__PURE__ */ e(
|
|
244
|
-
|
|
254
|
+
D,
|
|
245
255
|
{
|
|
246
256
|
account: s,
|
|
247
257
|
listItemProps: { sx: { px: 24 } },
|
|
248
258
|
shouldShowConnectionStatus: !0
|
|
249
259
|
}
|
|
250
260
|
),
|
|
251
|
-
!
|
|
252
|
-
] }, `account-item${
|
|
261
|
+
!M && /* @__PURE__ */ e(y, { "aria-hidden": "true", variant: "inset" })
|
|
262
|
+
] }, `account-item${h}`);
|
|
253
263
|
})
|
|
254
|
-
] }) : /* @__PURE__ */ e(
|
|
264
|
+
] }) : /* @__PURE__ */ e(b, {})
|
|
255
265
|
}
|
|
256
|
-
) : /* @__PURE__ */ e(
|
|
257
|
-
}, T1 =
|
|
266
|
+
) : /* @__PURE__ */ e(b, {});
|
|
267
|
+
}, T1 = g(d1), c1 = () => /* @__PURE__ */ i(
|
|
258
268
|
"svg",
|
|
259
269
|
{
|
|
260
270
|
fill: "none",
|
|
@@ -262,7 +272,7 @@ const n1 = () => {
|
|
|
262
272
|
viewBox: "0 0 272 66",
|
|
263
273
|
xmlns: "http://www.w3.org/2000/svg",
|
|
264
274
|
children: [
|
|
265
|
-
/* @__PURE__ */
|
|
275
|
+
/* @__PURE__ */ i("g", { opacity: "0.35", children: [
|
|
266
276
|
/* @__PURE__ */ e("rect", { fill: "#CD1141", height: "40.3437", rx: "2.81371", width: "39.6876", x: "19.6553" }),
|
|
267
277
|
/* @__PURE__ */ e(
|
|
268
278
|
"path",
|
|
@@ -548,7 +558,7 @@ const n1 = () => {
|
|
|
548
558
|
children: /* @__PURE__ */ e("rect", { fill: "white", height: "47.5848", rx: "3.31025", width: "46.8064", x: "113.168", y: "18.1035" })
|
|
549
559
|
}
|
|
550
560
|
),
|
|
551
|
-
/* @__PURE__ */
|
|
561
|
+
/* @__PURE__ */ i("g", { mask: "url(#mask1_6197_80303)", children: [
|
|
552
562
|
/* @__PURE__ */ e(
|
|
553
563
|
"mask",
|
|
554
564
|
{
|
|
@@ -694,8 +704,8 @@ const n1 = () => {
|
|
|
694
704
|
]
|
|
695
705
|
}
|
|
696
706
|
), s1 = () => {
|
|
697
|
-
const { connect:
|
|
698
|
-
return /* @__PURE__ */
|
|
707
|
+
const { connect: d } = R();
|
|
708
|
+
return /* @__PURE__ */ i(T, { alignItems: "center", direction: "column", m: 24, children: [
|
|
699
709
|
/* @__PURE__ */ e(c1, {}),
|
|
700
710
|
/* @__PURE__ */ e(
|
|
701
711
|
v,
|
|
@@ -706,52 +716,52 @@ const n1 = () => {
|
|
|
706
716
|
textAlign: "center"
|
|
707
717
|
},
|
|
708
718
|
variant: "Paragraph",
|
|
709
|
-
children:
|
|
719
|
+
children: d.mini_widget_content
|
|
710
720
|
}
|
|
711
721
|
)
|
|
712
722
|
] });
|
|
713
|
-
}, a1 =
|
|
714
|
-
onPrimaryCtaClick:
|
|
723
|
+
}, a1 = g(s1), r1 = ({
|
|
724
|
+
onPrimaryCtaClick: d = () => {
|
|
715
725
|
},
|
|
716
|
-
sx:
|
|
726
|
+
sx: a
|
|
717
727
|
}) => {
|
|
718
|
-
const { isCopyLoaded:
|
|
719
|
-
|
|
728
|
+
const { isCopyLoaded: n } = w(), { connect: l } = R(), [H, L] = c.useState(!1), u = () => {
|
|
729
|
+
L(!0), d();
|
|
720
730
|
};
|
|
721
|
-
return
|
|
722
|
-
|
|
731
|
+
return n ? /* @__PURE__ */ i(
|
|
732
|
+
G,
|
|
723
733
|
{
|
|
724
734
|
className: "mx-exp-connect-miniwidget",
|
|
725
|
-
onPrimaryCtaClick:
|
|
735
|
+
onPrimaryCtaClick: u,
|
|
726
736
|
primaryCtaLabel: l.primary_cta,
|
|
727
|
-
sx:
|
|
737
|
+
sx: a,
|
|
728
738
|
title: l.mini_title,
|
|
729
739
|
children: [
|
|
730
740
|
/* @__PURE__ */ e(a1, {}),
|
|
731
|
-
|
|
732
|
-
|
|
741
|
+
H && /* @__PURE__ */ e(
|
|
742
|
+
j,
|
|
733
743
|
{
|
|
734
|
-
onClose: () =>
|
|
735
|
-
showConnectWidget:
|
|
744
|
+
onClose: () => L(!1),
|
|
745
|
+
showConnectWidget: H,
|
|
736
746
|
title: l.mini_title
|
|
737
747
|
}
|
|
738
748
|
)
|
|
739
749
|
]
|
|
740
750
|
}
|
|
741
|
-
) : /* @__PURE__ */ e(
|
|
742
|
-
}, O1 =
|
|
751
|
+
) : /* @__PURE__ */ e(b, {});
|
|
752
|
+
}, O1 = g(r1);
|
|
743
753
|
export {
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
754
|
+
q1 as AccountApi,
|
|
755
|
+
z as AccountDetailsContent,
|
|
756
|
+
Y as AccountDetailsHeader,
|
|
757
|
+
J1 as AccountStore,
|
|
748
758
|
T1 as AccountsMiniWidget,
|
|
749
|
-
|
|
759
|
+
D1 as AccountsWidget,
|
|
750
760
|
O1 as ConnectMiniWidget,
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
761
|
+
z1 as FieldType,
|
|
762
|
+
P1 as MemberConnectionStatus,
|
|
763
|
+
j1 as getAccountBalanceDetails,
|
|
764
|
+
G1 as getAccountDetailFields,
|
|
765
|
+
P as useAccountUiStore,
|
|
766
|
+
U1 as useGetMergeableAccounts
|
|
757
767
|
};
|
|
@@ -1,42 +1,45 @@
|
|
|
1
|
-
import { Account,
|
|
1
|
+
import { Account, DetailedAccount, Institution, Member, GlobalStore } from '../../common';
|
|
2
2
|
import { AccountApi } from '../api/AccountApi';
|
|
3
3
|
import { UiStore } from './UiStore';
|
|
4
4
|
export declare class AccountStore {
|
|
5
5
|
globalStore: GlobalStore;
|
|
6
6
|
api: AccountApi;
|
|
7
7
|
accounts: Account[];
|
|
8
|
+
accountsLoaded: boolean;
|
|
8
9
|
institutions: Institution[];
|
|
10
|
+
institutionsLoaded: boolean;
|
|
9
11
|
members: Member[];
|
|
12
|
+
membersLoaded: boolean;
|
|
10
13
|
uiStore: UiStore;
|
|
11
14
|
constructor(globalStore: GlobalStore);
|
|
12
|
-
loadAccountData: (
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
get cashAccounts(): Account[];
|
|
15
|
+
loadAccountData: () => Promise<void>;
|
|
16
|
+
get isAccountDataLoaded(): boolean;
|
|
17
|
+
get detailedAccounts(): DetailedAccount[];
|
|
18
|
+
get cashAccounts(): DetailedAccount[];
|
|
17
19
|
get cashBalance(): number;
|
|
18
|
-
get checkingAccounts():
|
|
19
|
-
get debtAccounts():
|
|
20
|
-
get finstrongAccounts():
|
|
21
|
-
get investmentAccounts():
|
|
22
|
-
get savingsAccounts():
|
|
20
|
+
get checkingAccounts(): DetailedAccount[];
|
|
21
|
+
get debtAccounts(): DetailedAccount[];
|
|
22
|
+
get finstrongAccounts(): DetailedAccount[];
|
|
23
|
+
get investmentAccounts(): DetailedAccount[];
|
|
24
|
+
get savingsAccounts(): DetailedAccount[];
|
|
23
25
|
get retirementAccounts(): Account[];
|
|
24
|
-
get visibleAccounts():
|
|
25
|
-
get visibleCashAccounts():
|
|
26
|
+
get visibleAccounts(): DetailedAccount[];
|
|
27
|
+
get visibleCashAccounts(): DetailedAccount[];
|
|
26
28
|
get visibleCashBalance(): number;
|
|
27
|
-
get visibleCheckingAccounts():
|
|
28
|
-
get visibleDebtAccounts():
|
|
29
|
-
get visibleFinstrongAccounts():
|
|
29
|
+
get visibleCheckingAccounts(): DetailedAccount[];
|
|
30
|
+
get visibleDebtAccounts(): DetailedAccount[];
|
|
31
|
+
get visibleFinstrongAccounts(): DetailedAccount[];
|
|
30
32
|
get visibleRetirementAccounts(): Account[];
|
|
31
|
-
get visibleInvestmentAccounts():
|
|
32
|
-
get visibleSavingsAccounts():
|
|
33
|
+
get visibleInvestmentAccounts(): DetailedAccount[];
|
|
34
|
+
get visibleSavingsAccounts(): DetailedAccount[];
|
|
35
|
+
setAccounts: (accounts: Account[]) => void;
|
|
36
|
+
setMembers: (members: Member[]) => void;
|
|
37
|
+
setInstitutions: (institutions: Institution[]) => void;
|
|
33
38
|
addAccount: (account: Account) => Promise<void>;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
loadInstitutions: (institutionsOverride?: Institution[]) => Promise<void>;
|
|
39
|
+
loadAccounts: () => Promise<void>;
|
|
40
|
+
loadInstitutions: () => Promise<void>;
|
|
37
41
|
loadMembers: () => Promise<void>;
|
|
38
42
|
mergeAccounts: (accountGuids: string[]) => Promise<void>;
|
|
39
|
-
sortAccounts: (accounts?: Account[]) => Account[];
|
|
40
43
|
refreshAccounts: () => Promise<void>;
|
|
41
44
|
refreshMembers: () => Promise<void>;
|
|
42
45
|
removeAccount: (accountGuid: string) => Promise<void>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Account } from '../../common
|
|
1
|
+
import { Account, DetailedAccount, Institution, Member } from '../../common';
|
|
2
2
|
export declare const isAccountLiability: (account: Account) => boolean;
|
|
3
3
|
export declare const isManual: (account: Account) => boolean;
|
|
4
4
|
export declare const usesCreditLimitField: (account: Account) => boolean;
|
|
5
5
|
export declare const usesInterestRateField: (account: Account) => boolean;
|
|
6
6
|
export declare const usesOriginalBalanceField: (account: Account) => boolean;
|
|
7
|
+
export declare const augmentAccounts: (accounts: Account[], institutions: Institution[], members: Member[], shouldExcludeExternalAccounts: boolean) => DetailedAccount[];
|