@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.
Files changed (63) hide show
  1. package/dist/{Account-vp_TAbGt.mjs → Account-Bxw0_4FU.mjs} +1 -1
  2. package/dist/{AccountDetailsContent-CsH1w_GZ.mjs → AccountDetailsContent-CAM9y39M.mjs} +6 -6
  3. package/dist/{AccountDetailsHeader-Df1JkzYi.mjs → AccountDetailsHeader-JtSX6Uf9.mjs} +4 -4
  4. package/dist/{AccountFields-DUToRRqW.mjs → AccountFields-C9FlatNb.mjs} +2 -2
  5. package/dist/{AccountListItem-CeY_WIpj.mjs → AccountListItem-JFMZROh7.mjs} +7 -7
  6. package/dist/{AccountStore-BkoLK9Tq.mjs → AccountStore-BgNOyMdp.mjs} +74 -100
  7. package/dist/Accounts-BRf_YeTf.mjs +27 -0
  8. package/dist/CategoryStore-yHI0hWmK.mjs +174 -0
  9. package/dist/CategoryUtil-pZRIYOgN.mjs +80 -0
  10. package/dist/{ConnectDrawer-Bw5s6Dw1.mjs → ConnectDrawer-BQNs-hjk.mjs} +9 -9
  11. package/dist/{ConnectionsDrawer-BDvVuJQf.mjs → ConnectionsDrawer-ByGQE7D5.mjs} +3 -3
  12. package/dist/{DebtsStore-BD_XwsI7.mjs → DebtsStore-C9bblOgW.mjs} +1 -1
  13. package/dist/{GoalStore-DZ_Jvsa_.mjs → GoalStore-D-aB35SY.mjs} +151 -111
  14. package/dist/{ManageIncome-CV-bGuR-.mjs → ManageIncome-1s_q5W4X.mjs} +3 -3
  15. package/dist/{NetWorthStore-D1NiDUcc.mjs → NetWorthStore-DCsTZpuS.mjs} +2 -2
  16. package/dist/{NotificationSettings-5i3IywCi.mjs → NotificationSettings-DqrkNMod.mjs} +236 -238
  17. package/dist/{NotificationStore-C6PH6MKm.mjs → NotificationStore-BxP_P2dA.mjs} +23 -15
  18. package/dist/{RecurringSettings-G6_BbsIF.mjs → RecurringSettings-A_rAGCTP.mjs} +3 -3
  19. package/dist/{RecurringTransactions-ej39mgA6.mjs → RecurringTransactions-DK8dWldr.mjs} +3 -3
  20. package/dist/{RecurringTransactionsStore-DrzS1LmF.mjs → RecurringTransactionsStore-C4YOD7_D.mjs} +29 -26
  21. package/dist/{TransactionDetails-CDtya0KS.mjs → TransactionDetails-oP1eSuiS.mjs} +1 -1
  22. package/dist/TransactionStore-ai3uII_r.mjs +690 -0
  23. package/dist/{WidgetContainer-EbrN1oIo.mjs → WidgetContainer-BHWANqT4.mjs} +1 -1
  24. package/dist/accounts/components/AccountsWidgetContent.d.ts +3 -0
  25. package/dist/accounts/index.es.js +184 -174
  26. package/dist/accounts/stores/AccountStore.d.ts +25 -22
  27. package/dist/accounts/utils/Accounts.d.ts +2 -1
  28. package/dist/budgets/index.es.js +499 -501
  29. package/dist/budgets/store/BudgetsStore.d.ts +1 -0
  30. package/dist/cashflow/index.es.js +382 -384
  31. package/dist/categories/index.es.js +1 -1
  32. package/dist/categories/stores/CategoryStore.d.ts +5 -1
  33. package/dist/categories/util/CategoryUtil.d.ts +3 -2
  34. package/dist/common/index.es.js +206 -214
  35. package/dist/common/stores/AppDataStore.d.ts +3 -1
  36. package/dist/common/stores/GlobalCopyStore.d.ts +0 -1
  37. package/dist/common/stores/GlobalStore.d.ts +3 -3
  38. package/dist/common/stores/UserStore.d.ts +3 -2
  39. package/dist/common/types/Account.d.ts +9 -6
  40. package/dist/dashboard/index.es.js +1 -1
  41. package/dist/debts/index.es.js +375 -377
  42. package/dist/finstrong/index.es.js +415 -417
  43. package/dist/goals/index.es.js +557 -559
  44. package/dist/goals/stores/GoalStore.d.ts +17 -4
  45. package/dist/help/index.es.js +1 -1
  46. package/dist/investments/index.es.js +435 -437
  47. package/dist/investments/stores/HoldingStore.d.ts +1 -0
  48. package/dist/networth/index.es.js +172 -174
  49. package/dist/notifications/index.es.js +3 -3
  50. package/dist/notifications/stores/NotificationStore.d.ts +3 -1
  51. package/dist/recurringtransactions/index.es.js +173 -175
  52. package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +3 -2
  53. package/dist/settings/index.es.js +279 -285
  54. package/dist/spending/index.es.js +281 -283
  55. package/dist/transactions/index.es.js +6 -6
  56. package/dist/transactions/stores/TransactionStore.d.ts +21 -77
  57. package/dist/trends/index.es.js +4 -4
  58. package/dist/{useAccountDisplayName-jS05A6-6.mjs → useAccountDisplayName-BUAApBIb.mjs} +1 -1
  59. package/package.json +4 -4
  60. package/dist/Accounts-C1QxUB-e.mjs +0 -9
  61. package/dist/CategoryStore-BCcpI3oJ.mjs +0 -183
  62. package/dist/CategoryUtil-BR3H5i6n.mjs +0 -78
  63. package/dist/TransactionStore-DxPLdF3B.mjs +0 -677
@@ -1,80 +1,81 @@
1
- import { jsxs as n, jsx as e, Fragment as G } from "react/jsx-runtime";
2
- import d from "react";
3
- import { observer as w } from "mobx-react-lite";
4
- import B from "@mui/material/Box";
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 O from "@mui/material/ListSubheader";
8
+ import I from "@mui/material/ListSubheader";
8
9
  import A from "@mui/system/Stack";
9
- import { Text as v } from "@mxenabled/mxui";
10
- import { A as K } from "../AccountDetailsContent-CsH1w_GZ.mjs";
11
- import { u as N1 } from "../AccountDetailsContent-CsH1w_GZ.mjs";
12
- import { u as z, A as P } from "../AccountDetailsHeader-Df1JkzYi.mjs";
13
- import { A as W } from "../AccountListItem-CeY_WIpj.mjs";
14
- import { a as Y } from "../AccountFields-DUToRRqW.mjs";
15
- import { g as $1, b as j1 } from "../AccountFields-DUToRRqW.mjs";
16
- import { u as Z, b, d as T, g as D, a as q, n as J } from "../hooks-D6XlXHf4.mjs";
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-EbrN1oIo.mjs";
20
- import { C as e1 } from "../ConnectionsDrawer-BDvVuJQf.mjs";
21
- import { u as N } from "../useScreenSize-B6JyS_Lj.mjs";
22
- import { L as R } from "../Loader-DUaFpDGv.mjs";
23
- import { l as U, m as t1 } from "../ConnectDrawer-Bw5s6Dw1.mjs";
24
- import { F as K1, M as z1 } from "../ConnectDrawer-Bw5s6Dw1.mjs";
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 $ } from "../MiniWidgetContainer-D0gfmbaF.mjs";
27
- import i1 from "@mui/material/Stack";
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 [c, h] = d.useState(""), { accounts: C } = Z(), { selectedAccounts: l } = b(), { setSelectedAccount: p, setSelectedMember: u } = z(), { members: H } = T(), { onEvent: f } = D(), a = [...new Set(l.map((t) => t.account_type))], r = l.find((t) => c === t.guid), s = d.useMemo(
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
- ), L = d.useMemo(
34
+ ), h = c.useMemo(
34
35
  () => l.filter((t) => t.is_closed),
35
36
  [l]
36
- ), g = s.reduce(
37
- (t, i) => (i.available_balance || i.balance || 0) + t,
37
+ ), M = s.reduce(
38
+ (t, o) => (o.available_balance || o.balance || 0) + t,
38
39
  0
39
- ), k = Y(L, C);
40
- d.useEffect(() => {
40
+ ), F = q(h, n);
41
+ c.useEffect(() => {
41
42
  if (r) {
42
- p(r);
43
- const t = H.find((i) => i.guid === r?.member_guid) || {};
44
- t && u(t);
43
+ H(r);
44
+ const t = u.find((o) => o.guid === r?.member_guid) || {};
45
+ t && L(t);
45
46
  }
46
- }, [r, c]);
47
- const x = (t) => {
48
- h(t.guid), f(S.ACCOUNTS_CLICK_ACCOUNT, {
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
- }, m = (t) => {
53
- const i = t === "hidden" ? s : L, M = t === "hidden" ? g : k, o = t === "hidden" ? C.account_hidden : C.account_closed;
54
- return /* @__PURE__ */ e(B, { children: /* @__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": o,
58
- subheader: /* @__PURE__ */ e(O, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ n(
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: o }),
66
- /* @__PURE__ */ e(v, { bold: !0, variant: "Body", children: I(M, "0,0.00") })
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: i.map((V, _, j) => {
71
- const F = _ === j.length - 1;
72
- return /* @__PURE__ */ n(d.Fragment, { children: [
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
- W,
75
+ D,
75
76
  {
76
- account: V,
77
- onRowClick: () => x(V),
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: F ? 24 : 4,
86
- ml: F ? 24 : 68
86
+ mb: W ? 24 : 4,
87
+ ml: W ? 24 : 68
87
88
  }
88
89
  }
89
- ) : !F && /* @__PURE__ */ e(
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
- ] }, V.guid);
99
+ ] }, f.guid);
99
100
  }) })
100
101
  }
101
102
  ) });
102
103
  };
103
- return /* @__PURE__ */ n(B, { sx: { pt: 24 }, children: [
104
- a.map((t) => {
105
- const i = l.filter(
106
- (o) => o.account_type === t && !o.is_closed && !o.is_hidden
107
- ), M = i.reduce(
108
- (o, V) => (V.balance || 0) + o,
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 i.length === 0 ? null : /* @__PURE__ */ e(
112
+ return o.length === 0 ? null : /* @__PURE__ */ e(
112
113
  E,
113
114
  {
114
- "aria-label": C.account_type_accounts[i[0]?.account_type],
115
- subheader: /* @__PURE__ */ e(O, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ n(
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: C.account_types[t] }),
123
- /* @__PURE__ */ e(v, { bold: !0, variant: "Body", children: I(M, "0,0.00") })
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: i.map((o) => {
128
- const V = l.indexOf(o) === l.length - 1, _ = i.indexOf(o) === i.length - 1;
129
- return /* @__PURE__ */ n(d.Fragment, { children: [
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
- W,
132
+ D,
132
133
  {
133
- account: o,
134
- onRowClick: () => x(o),
134
+ account: C,
135
+ onRowClick: () => V(C),
135
136
  shouldShowConnectionStatus: !0
136
137
  }
137
138
  ),
138
- (!V || L.length > 0 || s.length > 0) && /* @__PURE__ */ e(
139
+ (!f || h.length > 0 || s.length > 0) && /* @__PURE__ */ e(
139
140
  y,
140
141
  {
141
142
  sx: {
142
- mb: _ ? 24 : 4,
143
- ml: _ ? 24 : 68
143
+ mb: x ? 24 : 4,
144
+ ml: x ? 24 : 68
144
145
  }
145
146
  }
146
147
  )
147
- ] }, o.guid);
148
+ ] }, C.guid);
148
149
  }) })
149
150
  },
150
151
  t
151
152
  );
152
153
  }),
153
- s.length > 0 && m("hidden"),
154
- L.length > 0 && m("closed"),
155
- /* @__PURE__ */ n(
154
+ s.length > 0 && Z("hidden"),
155
+ h.length > 0 && Z("closed"),
156
+ /* @__PURE__ */ i(
156
157
  Q,
157
158
  {
158
- ariaLabelClose: C.close_account_details_aria,
159
- isOpen: !!c,
160
- onClose: () => h(""),
161
- title: C.account_details,
159
+ ariaLabelClose: n.close_account_details_aria,
160
+ isOpen: !!d,
161
+ onClose: () => a(""),
162
+ title: n.account_details,
162
163
  children: [
163
- /* @__PURE__ */ e(P, {}),
164
- /* @__PURE__ */ e(K, {})
164
+ /* @__PURE__ */ e(Y, {}),
165
+ /* @__PURE__ */ e(z, {})
165
166
  ]
166
167
  }
167
168
  )
168
169
  ] });
169
- }, C1 = w(n1), o1 = ({ onBackClick: c, sx: h = {} }) => {
170
- const [C, l] = d.useState(!1), [p, u] = d.useState(!1), { config: H } = q(), { accounts: f } = T(), { accounts: a, connect: r } = Z(), { isCopyLoaded: s, isInitialized: L, setSelectedAccounts: g, selectedAccountGuids: k } = b(), { isDesktop: x } = N(), { onEvent: m } = D(), { onLoad: t } = J();
171
- d.useEffect(() => {
172
- g(f);
173
- }, [f]), d.useEffect(() => {
174
- L && s && t?.("AccountsWidget");
175
- }, [L, s]);
176
- const i = () => {
177
- l(!0), m(S.ACCOUNTS_CLICK_CONNECT);
178
- }, M = () => {
179
- u(!0), m(S.ACCOUNTS_CLICK_CONNECT);
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
- return s ? /* @__PURE__ */ e(
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: f,
185
- actions: H.show_connections_widget_in_master ? [
186
- { iconName: "add", label: a.add, onClick: i },
187
- {
188
- iconName: "credit_card_gear",
189
- label: a.manage,
190
- onClick: M
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
- U,
213
+ j,
204
214
  {
205
215
  onClose: () => l(!1),
206
- showConnectWidget: C,
207
- title: r.mini_title
216
+ showConnectWidget: n,
217
+ title: h.mini_title
208
218
  }
209
219
  ),
210
220
  /* @__PURE__ */ e(
211
221
  e1,
212
222
  {
213
- onClose: () => u(!1),
214
- showConnectionsWidget: p,
215
- title: a.manage_connections
223
+ onClose: () => L(!1),
224
+ showConnectionsWidget: H,
225
+ title: s.manage_connections
216
226
  }
217
227
  )
218
- ] }) : /* @__PURE__ */ e(R, {})
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
- return p ? /* @__PURE__ */ e(
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: c,
244
+ onPrimaryCtaClick: d,
235
245
  primaryCtaLabel: l.primary_cta,
236
- sx: h,
246
+ sx: a,
237
247
  title: l.mini_title,
238
- children: u ? /* @__PURE__ */ n(E, { children: [
239
- H.length === 0 && /* @__PURE__ */ e(l1, { sx: { justifyContent: "center" }, children: l.no_accounts }),
240
- r.map((s, L) => {
241
- const g = r.indexOf(s) === r.length - 1;
242
- return /* @__PURE__ */ n(d.Fragment, { children: [
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
- W,
254
+ D,
245
255
  {
246
256
  account: s,
247
257
  listItemProps: { sx: { px: 24 } },
248
258
  shouldShowConnectionStatus: !0
249
259
  }
250
260
  ),
251
- !g && /* @__PURE__ */ e(y, { "aria-hidden": "true", variant: "inset" })
252
- ] }, `account-item${L}`);
261
+ !M && /* @__PURE__ */ e(y, { "aria-hidden": "true", variant: "inset" })
262
+ ] }, `account-item${h}`);
253
263
  })
254
- ] }) : /* @__PURE__ */ e(R, {})
264
+ ] }) : /* @__PURE__ */ e(b, {})
255
265
  }
256
- ) : /* @__PURE__ */ e(R, {});
257
- }, T1 = w(d1), c1 = () => /* @__PURE__ */ n(
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__ */ n("g", { opacity: "0.35", children: [
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__ */ n("g", { mask: "url(#mask1_6197_80303)", children: [
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: c } = Z();
698
- return /* @__PURE__ */ n(i1, { alignItems: "center", direction: "column", m: 24, children: [
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: c.mini_widget_content
719
+ children: d.mini_widget_content
710
720
  }
711
721
  )
712
722
  ] });
713
- }, a1 = w(s1), r1 = ({
714
- onPrimaryCtaClick: c = () => {
723
+ }, a1 = g(s1), r1 = ({
724
+ onPrimaryCtaClick: d = () => {
715
725
  },
716
- sx: h
726
+ sx: a
717
727
  }) => {
718
- const { isCopyLoaded: C } = b(), { connect: l } = Z(), [p, u] = d.useState(!1), H = () => {
719
- u(!0), c();
728
+ const { isCopyLoaded: n } = w(), { connect: l } = R(), [H, L] = c.useState(!1), u = () => {
729
+ L(!0), d();
720
730
  };
721
- return C ? /* @__PURE__ */ n(
722
- $,
731
+ return n ? /* @__PURE__ */ i(
732
+ G,
723
733
  {
724
734
  className: "mx-exp-connect-miniwidget",
725
- onPrimaryCtaClick: H,
735
+ onPrimaryCtaClick: u,
726
736
  primaryCtaLabel: l.primary_cta,
727
- sx: h,
737
+ sx: a,
728
738
  title: l.mini_title,
729
739
  children: [
730
740
  /* @__PURE__ */ e(a1, {}),
731
- p && /* @__PURE__ */ e(
732
- U,
741
+ H && /* @__PURE__ */ e(
742
+ j,
733
743
  {
734
- onClose: () => u(!1),
735
- showConnectWidget: p,
744
+ onClose: () => L(!1),
745
+ showConnectWidget: H,
736
746
  title: l.mini_title
737
747
  }
738
748
  )
739
749
  ]
740
750
  }
741
- ) : /* @__PURE__ */ e(R, {});
742
- }, O1 = w(r1);
751
+ ) : /* @__PURE__ */ e(b, {});
752
+ }, O1 = g(r1);
743
753
  export {
744
- Y1 as AccountApi,
745
- K as AccountDetailsContent,
746
- P as AccountDetailsHeader,
747
- q1 as AccountStore,
754
+ q1 as AccountApi,
755
+ z as AccountDetailsContent,
756
+ Y as AccountDetailsHeader,
757
+ J1 as AccountStore,
748
758
  T1 as AccountsMiniWidget,
749
- W1 as AccountsWidget,
759
+ D1 as AccountsWidget,
750
760
  O1 as ConnectMiniWidget,
751
- K1 as FieldType,
752
- z1 as MemberConnectionStatus,
753
- $1 as getAccountBalanceDetails,
754
- j1 as getAccountDetailFields,
755
- z as useAccountUiStore,
756
- N1 as useGetMergeableAccounts
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, GlobalStore, Institution, Member } from '../../common';
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: ({ accounts, institutions, }?: {
13
- accounts?: Account[];
14
- institutions?: Institution[];
15
- }) => Promise<void>;
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(): Account[];
19
- get debtAccounts(): Account[];
20
- get finstrongAccounts(): Account[];
21
- get investmentAccounts(): Account[];
22
- get savingsAccounts(): Account[];
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(): Account[];
25
- get visibleCashAccounts(): Account[];
26
+ get visibleAccounts(): DetailedAccount[];
27
+ get visibleCashAccounts(): DetailedAccount[];
26
28
  get visibleCashBalance(): number;
27
- get visibleCheckingAccounts(): Account[];
28
- get visibleDebtAccounts(): Account[];
29
- get visibleFinstrongAccounts(): Account[];
29
+ get visibleCheckingAccounts(): DetailedAccount[];
30
+ get visibleDebtAccounts(): DetailedAccount[];
31
+ get visibleFinstrongAccounts(): DetailedAccount[];
30
32
  get visibleRetirementAccounts(): Account[];
31
- get visibleInvestmentAccounts(): Account[];
32
- get visibleSavingsAccounts(): Account[];
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
- augmentAccounts: (accounts?: Account[]) => Account[];
35
- loadAccounts: (accountsOverride?: Account[]) => Promise<void>;
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/types';
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[];