@mx-cartographer/experiences 7.2.16-alpha.mm0 → 7.3.0-alpha.sms1
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/index.es.js +125 -127
- 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,85 +1,85 @@
|
|
|
1
1
|
import { jsxs as n, jsx as e, Fragment as G } from "react/jsx-runtime";
|
|
2
2
|
import d from "react";
|
|
3
|
-
import { observer as
|
|
3
|
+
import { observer as M } from "mobx-react-lite";
|
|
4
4
|
import B from "@mui/material/Box";
|
|
5
|
-
import
|
|
5
|
+
import A from "@mui/material/Divider";
|
|
6
6
|
import E from "@mui/material/List";
|
|
7
7
|
import O from "@mui/material/ListSubheader";
|
|
8
|
-
import
|
|
8
|
+
import _ from "@mui/system/Stack";
|
|
9
9
|
import { Text as v } from "@mxenabled/mxui";
|
|
10
|
-
import { A as K } from "../AccountDetailsContent-
|
|
11
|
-
import { u as
|
|
12
|
-
import { u as z, A as P } from "../AccountDetailsHeader-
|
|
13
|
-
import { A as W } from "../AccountListItem-
|
|
14
|
-
import { a as Y } from "../AccountFields-
|
|
15
|
-
import { g as
|
|
16
|
-
import { u as
|
|
10
|
+
import { A as K } from "../AccountDetailsContent-CAM9y39M.mjs";
|
|
11
|
+
import { u as D1 } from "../AccountDetailsContent-CAM9y39M.mjs";
|
|
12
|
+
import { u as z, A as P } from "../AccountDetailsHeader-JtSX6Uf9.mjs";
|
|
13
|
+
import { A as W } from "../AccountListItem-JFMZROh7.mjs";
|
|
14
|
+
import { a as Y } from "../AccountFields-C9FlatNb.mjs";
|
|
15
|
+
import { g as U1, b as $1 } from "../AccountFields-C9FlatNb.mjs";
|
|
16
|
+
import { u as w, b as S, d as T, g as D, a as q } from "../hooks-D6XlXHf4.mjs";
|
|
17
17
|
import { f as I } from "../NumberFormatting-Buh7u8Oi.mjs";
|
|
18
|
-
import { D as
|
|
19
|
-
import { A as
|
|
20
|
-
import { C as
|
|
18
|
+
import { D as J } from "../Drawer-kEE73B87.mjs";
|
|
19
|
+
import { A as y, W as Q } from "../WidgetContainer-BHWANqT4.mjs";
|
|
20
|
+
import { C as X } from "../ConnectionsDrawer-ByGQE7D5.mjs";
|
|
21
21
|
import { u as N } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
22
|
-
import { L as
|
|
23
|
-
import { l as U, m as
|
|
24
|
-
import { F as
|
|
25
|
-
import
|
|
22
|
+
import { L as g } from "../Loader-DUaFpDGv.mjs";
|
|
23
|
+
import { l as U, m as e1 } from "../ConnectDrawer-BQNs-hjk.mjs";
|
|
24
|
+
import { F as G1, f as K1 } from "../ConnectDrawer-BQNs-hjk.mjs";
|
|
25
|
+
import t1 from "@mui/material/ListItem";
|
|
26
26
|
import { M as $ } from "../MiniWidgetContainer-D0gfmbaF.mjs";
|
|
27
|
-
import
|
|
28
|
-
import { A as
|
|
29
|
-
const
|
|
30
|
-
const [c,
|
|
27
|
+
import l1 from "@mui/material/Stack";
|
|
28
|
+
import { A as P1, a as Y1 } from "../AccountStore-BgNOyMdp.mjs";
|
|
29
|
+
const i1 = () => {
|
|
30
|
+
const [c, H] = d.useState(""), { accounts: C } = w(), { selectedAccounts: l } = S(), { setSelectedAccount: h, setSelectedMember: r } = z(), { members: L } = T(), { onEvent: f } = D(), s = [...new Set(l.map((t) => t.account_type))], a = l.find((t) => c === t.guid), u = d.useMemo(
|
|
31
31
|
() => l.filter((t) => t.is_hidden),
|
|
32
32
|
[l]
|
|
33
|
-
),
|
|
33
|
+
), p = d.useMemo(
|
|
34
34
|
() => l.filter((t) => t.is_closed),
|
|
35
35
|
[l]
|
|
36
|
-
),
|
|
36
|
+
), R = u.reduce(
|
|
37
37
|
(t, i) => (i.available_balance || i.balance || 0) + t,
|
|
38
38
|
0
|
|
39
|
-
),
|
|
39
|
+
), b = Y(p, C);
|
|
40
40
|
d.useEffect(() => {
|
|
41
|
-
if (
|
|
42
|
-
|
|
43
|
-
const t =
|
|
44
|
-
t &&
|
|
41
|
+
if (a) {
|
|
42
|
+
h(a);
|
|
43
|
+
const t = L.find((i) => i.guid === a?.member_guid) || {};
|
|
44
|
+
t && r(t);
|
|
45
45
|
}
|
|
46
|
-
}, [
|
|
47
|
-
const
|
|
48
|
-
|
|
46
|
+
}, [a, c]);
|
|
47
|
+
const Z = (t) => {
|
|
48
|
+
H(t.guid), f(y.ACCOUNTS_CLICK_ACCOUNT, {
|
|
49
49
|
account_guid: t.guid,
|
|
50
50
|
account_type: t.account_type
|
|
51
51
|
});
|
|
52
52
|
}, m = (t) => {
|
|
53
|
-
const i = t === "hidden" ?
|
|
53
|
+
const i = t === "hidden" ? u : p, k = t === "hidden" ? R : b, o = t === "hidden" ? C.account_hidden : C.account_closed;
|
|
54
54
|
return /* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(
|
|
55
55
|
E,
|
|
56
56
|
{
|
|
57
57
|
"aria-label": o,
|
|
58
58
|
subheader: /* @__PURE__ */ e(O, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ n(
|
|
59
|
-
|
|
59
|
+
_,
|
|
60
60
|
{
|
|
61
61
|
component: "span",
|
|
62
62
|
direction: "row",
|
|
63
63
|
sx: { justifyContent: "space-between", color: "grey.700" },
|
|
64
64
|
children: [
|
|
65
65
|
/* @__PURE__ */ e(v, { bold: !0, variant: "Body", children: o }),
|
|
66
|
-
/* @__PURE__ */ e(v, { bold: !0, variant: "Body", children: I(
|
|
66
|
+
/* @__PURE__ */ e(v, { bold: !0, variant: "Body", children: I(k, "0,0.00") })
|
|
67
67
|
]
|
|
68
68
|
}
|
|
69
69
|
) }),
|
|
70
|
-
children: /* @__PURE__ */ e(
|
|
71
|
-
const F =
|
|
70
|
+
children: /* @__PURE__ */ e(_, { children: i.map((V, x, j) => {
|
|
71
|
+
const F = x === j.length - 1;
|
|
72
72
|
return /* @__PURE__ */ n(d.Fragment, { children: [
|
|
73
73
|
/* @__PURE__ */ e(
|
|
74
74
|
W,
|
|
75
75
|
{
|
|
76
76
|
account: V,
|
|
77
|
-
onRowClick: () =>
|
|
77
|
+
onRowClick: () => Z(V),
|
|
78
78
|
shouldShowConnectionStatus: !0
|
|
79
79
|
}
|
|
80
80
|
),
|
|
81
81
|
t === "hidden" ? /* @__PURE__ */ e(
|
|
82
|
-
|
|
82
|
+
A,
|
|
83
83
|
{
|
|
84
84
|
sx: {
|
|
85
85
|
mb: F ? 24 : 4,
|
|
@@ -87,7 +87,7 @@ const n1 = () => {
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
) : !F && /* @__PURE__ */ e(
|
|
90
|
-
|
|
90
|
+
A,
|
|
91
91
|
{
|
|
92
92
|
sx: {
|
|
93
93
|
mb: 4,
|
|
@@ -101,10 +101,10 @@ const n1 = () => {
|
|
|
101
101
|
) });
|
|
102
102
|
};
|
|
103
103
|
return /* @__PURE__ */ n(B, { sx: { pt: 24 }, children: [
|
|
104
|
-
|
|
104
|
+
s.map((t) => {
|
|
105
105
|
const i = l.filter(
|
|
106
106
|
(o) => o.account_type === t && !o.is_closed && !o.is_hidden
|
|
107
|
-
),
|
|
107
|
+
), k = i.reduce(
|
|
108
108
|
(o, V) => (V.balance || 0) + o,
|
|
109
109
|
0
|
|
110
110
|
);
|
|
@@ -113,34 +113,34 @@ const n1 = () => {
|
|
|
113
113
|
{
|
|
114
114
|
"aria-label": C.account_type_accounts[i[0]?.account_type],
|
|
115
115
|
subheader: /* @__PURE__ */ e(O, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ n(
|
|
116
|
-
|
|
116
|
+
_,
|
|
117
117
|
{
|
|
118
118
|
component: "span",
|
|
119
119
|
direction: "row",
|
|
120
120
|
sx: { display: "flex", justifyContent: "space-between" },
|
|
121
121
|
children: [
|
|
122
122
|
/* @__PURE__ */ e(v, { bold: !0, variant: "Body", children: C.account_types[t] }),
|
|
123
|
-
/* @__PURE__ */ e(v, { bold: !0, variant: "Body", children: I(
|
|
123
|
+
/* @__PURE__ */ e(v, { bold: !0, variant: "Body", children: I(k, "0,0.00") })
|
|
124
124
|
]
|
|
125
125
|
}
|
|
126
126
|
) }),
|
|
127
|
-
children: /* @__PURE__ */ e(
|
|
128
|
-
const V = l.indexOf(o) === l.length - 1,
|
|
127
|
+
children: /* @__PURE__ */ e(_, { children: i.map((o) => {
|
|
128
|
+
const V = l.indexOf(o) === l.length - 1, x = i.indexOf(o) === i.length - 1;
|
|
129
129
|
return /* @__PURE__ */ n(d.Fragment, { children: [
|
|
130
130
|
/* @__PURE__ */ e(
|
|
131
131
|
W,
|
|
132
132
|
{
|
|
133
133
|
account: o,
|
|
134
|
-
onRowClick: () =>
|
|
134
|
+
onRowClick: () => Z(o),
|
|
135
135
|
shouldShowConnectionStatus: !0
|
|
136
136
|
}
|
|
137
137
|
),
|
|
138
|
-
(!V ||
|
|
139
|
-
|
|
138
|
+
(!V || p.length > 0 || u.length > 0) && /* @__PURE__ */ e(
|
|
139
|
+
A,
|
|
140
140
|
{
|
|
141
141
|
sx: {
|
|
142
|
-
mb:
|
|
143
|
-
ml:
|
|
142
|
+
mb: x ? 24 : 4,
|
|
143
|
+
ml: x ? 24 : 68
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
)
|
|
@@ -150,14 +150,14 @@ const n1 = () => {
|
|
|
150
150
|
t
|
|
151
151
|
);
|
|
152
152
|
}),
|
|
153
|
-
|
|
154
|
-
|
|
153
|
+
u.length > 0 && m("hidden"),
|
|
154
|
+
p.length > 0 && m("closed"),
|
|
155
155
|
/* @__PURE__ */ n(
|
|
156
|
-
|
|
156
|
+
J,
|
|
157
157
|
{
|
|
158
158
|
ariaLabelClose: C.close_account_details_aria,
|
|
159
159
|
isOpen: !!c,
|
|
160
|
-
onClose: () =>
|
|
160
|
+
onClose: () => H(""),
|
|
161
161
|
title: C.account_details,
|
|
162
162
|
children: [
|
|
163
163
|
/* @__PURE__ */ e(P, {}),
|
|
@@ -166,95 +166,93 @@ const n1 = () => {
|
|
|
166
166
|
}
|
|
167
167
|
)
|
|
168
168
|
] });
|
|
169
|
-
},
|
|
170
|
-
const [C, l] = d.useState(!1), [
|
|
169
|
+
}, n1 = M(i1), C1 = ({ onBackClick: c, sx: H = {} }) => {
|
|
170
|
+
const [C, l] = d.useState(!1), [h, r] = d.useState(!1), { config: L } = q(), { accounts: f } = T(), { accounts: s, connect: a } = w(), { isCopyLoaded: u, isInitialized: p, setSelectedAccounts: R, selectedAccountGuids: b } = S(), { isDesktop: Z } = N(), { onEvent: m } = D();
|
|
171
171
|
d.useEffect(() => {
|
|
172
|
-
|
|
173
|
-
}, [f])
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
}, M = () => {
|
|
179
|
-
u(!0), m(S.ACCOUNTS_CLICK_CONNECT);
|
|
172
|
+
R(f);
|
|
173
|
+
}, [f]);
|
|
174
|
+
const t = () => {
|
|
175
|
+
l(!0), m(y.ACCOUNTS_CLICK_CONNECT);
|
|
176
|
+
}, i = () => {
|
|
177
|
+
r(!0), m(y.ACCOUNTS_CLICK_CONNECT);
|
|
180
178
|
};
|
|
181
|
-
return
|
|
182
|
-
|
|
179
|
+
return u ? /* @__PURE__ */ e(
|
|
180
|
+
Q,
|
|
183
181
|
{
|
|
184
182
|
accountOptions: f,
|
|
185
|
-
actions:
|
|
186
|
-
{ iconName: "add", label:
|
|
183
|
+
actions: L.show_connections_widget_in_master ? [
|
|
184
|
+
{ iconName: "add", label: s.add, onClick: t },
|
|
187
185
|
{
|
|
188
186
|
iconName: "credit_card_gear",
|
|
189
|
-
label:
|
|
190
|
-
onClick:
|
|
187
|
+
label: s.manage,
|
|
188
|
+
onClick: i
|
|
191
189
|
}
|
|
192
190
|
] : [],
|
|
193
|
-
onAccountsFilterClick: () => m(
|
|
191
|
+
onAccountsFilterClick: () => m(y.ACCOUNTS_CLICK_FILTER),
|
|
194
192
|
onBackClick: c,
|
|
195
|
-
sx:
|
|
196
|
-
title:
|
|
197
|
-
children:
|
|
198
|
-
/* @__PURE__ */ n(B, { sx: { px:
|
|
199
|
-
|
|
200
|
-
/* @__PURE__ */ e(
|
|
193
|
+
sx: H,
|
|
194
|
+
title: s.title,
|
|
195
|
+
children: p ? /* @__PURE__ */ n(G, { children: [
|
|
196
|
+
/* @__PURE__ */ n(B, { sx: { px: Z ? 24 : 12 }, children: [
|
|
197
|
+
b.length < 1 && /* @__PURE__ */ e(v, { display: "flex", justifyContent: "center", my: 24, children: s.no_accounts }),
|
|
198
|
+
/* @__PURE__ */ e(n1, {})
|
|
201
199
|
] }),
|
|
202
200
|
/* @__PURE__ */ e(
|
|
203
201
|
U,
|
|
204
202
|
{
|
|
205
203
|
onClose: () => l(!1),
|
|
206
204
|
showConnectWidget: C,
|
|
207
|
-
title:
|
|
205
|
+
title: a.mini_title
|
|
208
206
|
}
|
|
209
207
|
),
|
|
210
208
|
/* @__PURE__ */ e(
|
|
211
|
-
|
|
209
|
+
X,
|
|
212
210
|
{
|
|
213
|
-
onClose: () =>
|
|
214
|
-
showConnectionsWidget:
|
|
215
|
-
title:
|
|
211
|
+
onClose: () => r(!1),
|
|
212
|
+
showConnectionsWidget: h,
|
|
213
|
+
title: s.manage_connections
|
|
216
214
|
}
|
|
217
215
|
)
|
|
218
|
-
] }) : /* @__PURE__ */ e(
|
|
216
|
+
] }) : /* @__PURE__ */ e(g, {})
|
|
219
217
|
}
|
|
220
|
-
) : /* @__PURE__ */ e(
|
|
221
|
-
},
|
|
222
|
-
const { visibleAccounts: C } = T(), { accounts: l } =
|
|
218
|
+
) : /* @__PURE__ */ e(g, {});
|
|
219
|
+
}, E1 = M(C1), o1 = ({ onPrimaryCtaClick: c, sx: H }) => {
|
|
220
|
+
const { visibleAccounts: C } = T(), { accounts: l } = w(), { isCopyLoaded: h, isInitialized: r, selectedAccounts: L, setSelectedAccounts: f } = S(), { isDesktop: s } = N();
|
|
223
221
|
d.useEffect(() => {
|
|
224
222
|
f(C);
|
|
225
223
|
}, [C]);
|
|
226
|
-
const
|
|
227
|
-
() =>
|
|
228
|
-
[
|
|
224
|
+
const a = d.useMemo(
|
|
225
|
+
() => e1(L, s ? 5 : 3),
|
|
226
|
+
[L, s]
|
|
229
227
|
);
|
|
230
|
-
return
|
|
228
|
+
return h ? /* @__PURE__ */ e(
|
|
231
229
|
$,
|
|
232
230
|
{
|
|
233
231
|
className: "mx-exp-accounts-miniwidget",
|
|
234
232
|
onPrimaryCtaClick: c,
|
|
235
233
|
primaryCtaLabel: l.primary_cta,
|
|
236
|
-
sx:
|
|
234
|
+
sx: H,
|
|
237
235
|
title: l.mini_title,
|
|
238
|
-
children:
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
const
|
|
236
|
+
children: r ? /* @__PURE__ */ n(E, { children: [
|
|
237
|
+
L.length === 0 && /* @__PURE__ */ e(t1, { sx: { justifyContent: "center" }, children: l.no_accounts }),
|
|
238
|
+
a.map((u, p) => {
|
|
239
|
+
const R = a.indexOf(u) === a.length - 1;
|
|
242
240
|
return /* @__PURE__ */ n(d.Fragment, { children: [
|
|
243
241
|
/* @__PURE__ */ e(
|
|
244
242
|
W,
|
|
245
243
|
{
|
|
246
|
-
account:
|
|
244
|
+
account: u,
|
|
247
245
|
listItemProps: { sx: { px: 24 } },
|
|
248
246
|
shouldShowConnectionStatus: !0
|
|
249
247
|
}
|
|
250
248
|
),
|
|
251
|
-
!
|
|
252
|
-
] }, `account-item${
|
|
249
|
+
!R && /* @__PURE__ */ e(A, { "aria-hidden": "true", variant: "inset" })
|
|
250
|
+
] }, `account-item${p}`);
|
|
253
251
|
})
|
|
254
|
-
] }) : /* @__PURE__ */ e(
|
|
252
|
+
] }) : /* @__PURE__ */ e(g, {})
|
|
255
253
|
}
|
|
256
|
-
) : /* @__PURE__ */ e(
|
|
257
|
-
},
|
|
254
|
+
) : /* @__PURE__ */ e(g, {});
|
|
255
|
+
}, W1 = M(o1), d1 = () => /* @__PURE__ */ n(
|
|
258
256
|
"svg",
|
|
259
257
|
{
|
|
260
258
|
fill: "none",
|
|
@@ -693,10 +691,10 @@ const n1 = () => {
|
|
|
693
691
|
)
|
|
694
692
|
]
|
|
695
693
|
}
|
|
696
|
-
),
|
|
697
|
-
const { connect: c } =
|
|
698
|
-
return /* @__PURE__ */ n(
|
|
699
|
-
/* @__PURE__ */ e(
|
|
694
|
+
), c1 = () => {
|
|
695
|
+
const { connect: c } = w();
|
|
696
|
+
return /* @__PURE__ */ n(l1, { alignItems: "center", direction: "column", m: 24, children: [
|
|
697
|
+
/* @__PURE__ */ e(d1, {}),
|
|
700
698
|
/* @__PURE__ */ e(
|
|
701
699
|
v,
|
|
702
700
|
{
|
|
@@ -710,48 +708,48 @@ const n1 = () => {
|
|
|
710
708
|
}
|
|
711
709
|
)
|
|
712
710
|
] });
|
|
713
|
-
},
|
|
711
|
+
}, s1 = M(c1), a1 = ({
|
|
714
712
|
onPrimaryCtaClick: c = () => {
|
|
715
713
|
},
|
|
716
|
-
sx:
|
|
714
|
+
sx: H
|
|
717
715
|
}) => {
|
|
718
|
-
const { isCopyLoaded: C } =
|
|
719
|
-
|
|
716
|
+
const { isCopyLoaded: C } = S(), { connect: l } = w(), [h, r] = d.useState(!1), L = () => {
|
|
717
|
+
r(!0), c();
|
|
720
718
|
};
|
|
721
719
|
return C ? /* @__PURE__ */ n(
|
|
722
720
|
$,
|
|
723
721
|
{
|
|
724
722
|
className: "mx-exp-connect-miniwidget",
|
|
725
|
-
onPrimaryCtaClick:
|
|
723
|
+
onPrimaryCtaClick: L,
|
|
726
724
|
primaryCtaLabel: l.primary_cta,
|
|
727
|
-
sx:
|
|
725
|
+
sx: H,
|
|
728
726
|
title: l.mini_title,
|
|
729
727
|
children: [
|
|
730
|
-
/* @__PURE__ */ e(
|
|
731
|
-
|
|
728
|
+
/* @__PURE__ */ e(s1, {}),
|
|
729
|
+
h && /* @__PURE__ */ e(
|
|
732
730
|
U,
|
|
733
731
|
{
|
|
734
|
-
onClose: () =>
|
|
735
|
-
showConnectWidget:
|
|
732
|
+
onClose: () => r(!1),
|
|
733
|
+
showConnectWidget: h,
|
|
736
734
|
title: l.mini_title
|
|
737
735
|
}
|
|
738
736
|
)
|
|
739
737
|
]
|
|
740
738
|
}
|
|
741
|
-
) : /* @__PURE__ */ e(
|
|
742
|
-
},
|
|
739
|
+
) : /* @__PURE__ */ e(g, {});
|
|
740
|
+
}, T1 = M(a1);
|
|
743
741
|
export {
|
|
744
|
-
|
|
742
|
+
P1 as AccountApi,
|
|
745
743
|
K as AccountDetailsContent,
|
|
746
744
|
P as AccountDetailsHeader,
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
745
|
+
Y1 as AccountStore,
|
|
746
|
+
W1 as AccountsMiniWidget,
|
|
747
|
+
E1 as AccountsWidget,
|
|
748
|
+
T1 as ConnectMiniWidget,
|
|
749
|
+
G1 as FieldType,
|
|
750
|
+
K1 as MemberConnectionStatus,
|
|
751
|
+
U1 as getAccountBalanceDetails,
|
|
752
|
+
$1 as getAccountDetailFields,
|
|
755
753
|
z as useAccountUiStore,
|
|
756
|
-
|
|
754
|
+
D1 as useGetMergeableAccounts
|
|
757
755
|
};
|
|
@@ -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[];
|