@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.
Files changed (62) 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/index.es.js +125 -127
  25. package/dist/accounts/stores/AccountStore.d.ts +25 -22
  26. package/dist/accounts/utils/Accounts.d.ts +2 -1
  27. package/dist/budgets/index.es.js +499 -501
  28. package/dist/budgets/store/BudgetsStore.d.ts +1 -0
  29. package/dist/cashflow/index.es.js +382 -384
  30. package/dist/categories/index.es.js +1 -1
  31. package/dist/categories/stores/CategoryStore.d.ts +5 -1
  32. package/dist/categories/util/CategoryUtil.d.ts +3 -2
  33. package/dist/common/index.es.js +206 -214
  34. package/dist/common/stores/AppDataStore.d.ts +3 -1
  35. package/dist/common/stores/GlobalCopyStore.d.ts +0 -1
  36. package/dist/common/stores/GlobalStore.d.ts +3 -3
  37. package/dist/common/stores/UserStore.d.ts +3 -2
  38. package/dist/common/types/Account.d.ts +9 -6
  39. package/dist/dashboard/index.es.js +1 -1
  40. package/dist/debts/index.es.js +375 -377
  41. package/dist/finstrong/index.es.js +415 -417
  42. package/dist/goals/index.es.js +557 -559
  43. package/dist/goals/stores/GoalStore.d.ts +17 -4
  44. package/dist/help/index.es.js +1 -1
  45. package/dist/investments/index.es.js +435 -437
  46. package/dist/investments/stores/HoldingStore.d.ts +1 -0
  47. package/dist/networth/index.es.js +172 -174
  48. package/dist/notifications/index.es.js +3 -3
  49. package/dist/notifications/stores/NotificationStore.d.ts +3 -1
  50. package/dist/recurringtransactions/index.es.js +173 -175
  51. package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +3 -2
  52. package/dist/settings/index.es.js +279 -285
  53. package/dist/spending/index.es.js +281 -283
  54. package/dist/transactions/index.es.js +6 -6
  55. package/dist/transactions/stores/TransactionStore.d.ts +21 -77
  56. package/dist/trends/index.es.js +4 -4
  57. package/dist/{useAccountDisplayName-jS05A6-6.mjs → useAccountDisplayName-BUAApBIb.mjs} +1 -1
  58. package/package.json +4 -4
  59. package/dist/Accounts-C1QxUB-e.mjs +0 -9
  60. package/dist/CategoryStore-BCcpI3oJ.mjs +0 -183
  61. package/dist/CategoryUtil-BR3H5i6n.mjs +0 -78
  62. 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 w } from "mobx-react-lite";
3
+ import { observer as M } from "mobx-react-lite";
4
4
  import B from "@mui/material/Box";
5
- import y from "@mui/material/Divider";
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 A from "@mui/system/Stack";
8
+ import _ from "@mui/system/Stack";
9
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";
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 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";
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 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";
25
- import l1 from "@mui/material/ListItem";
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 i1 from "@mui/material/Stack";
28
- import { A as Y1, a as q1 } from "../AccountStore-BkoLK9Tq.mjs";
29
- 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(
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
- ), L = d.useMemo(
33
+ ), p = d.useMemo(
34
34
  () => l.filter((t) => t.is_closed),
35
35
  [l]
36
- ), g = s.reduce(
36
+ ), R = u.reduce(
37
37
  (t, i) => (i.available_balance || i.balance || 0) + t,
38
38
  0
39
- ), k = Y(L, C);
39
+ ), b = Y(p, C);
40
40
  d.useEffect(() => {
41
- if (r) {
42
- p(r);
43
- const t = H.find((i) => i.guid === r?.member_guid) || {};
44
- t && u(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
- }, [r, c]);
47
- const x = (t) => {
48
- h(t.guid), f(S.ACCOUNTS_CLICK_ACCOUNT, {
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" ? s : L, M = t === "hidden" ? g : k, o = t === "hidden" ? C.account_hidden : C.account_closed;
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
- A,
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(M, "0,0.00") })
66
+ /* @__PURE__ */ e(v, { bold: !0, variant: "Body", children: I(k, "0,0.00") })
67
67
  ]
68
68
  }
69
69
  ) }),
70
- children: /* @__PURE__ */ e(A, { children: i.map((V, _, j) => {
71
- const F = _ === j.length - 1;
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: () => x(V),
77
+ onRowClick: () => Z(V),
78
78
  shouldShowConnectionStatus: !0
79
79
  }
80
80
  ),
81
81
  t === "hidden" ? /* @__PURE__ */ e(
82
- y,
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
- y,
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
- a.map((t) => {
104
+ s.map((t) => {
105
105
  const i = l.filter(
106
106
  (o) => o.account_type === t && !o.is_closed && !o.is_hidden
107
- ), M = i.reduce(
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
- A,
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(M, "0,0.00") })
123
+ /* @__PURE__ */ e(v, { bold: !0, variant: "Body", children: I(k, "0,0.00") })
124
124
  ]
125
125
  }
126
126
  ) }),
127
- children: /* @__PURE__ */ e(A, { children: i.map((o) => {
128
- const V = l.indexOf(o) === l.length - 1, _ = i.indexOf(o) === i.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: () => x(o),
134
+ onRowClick: () => Z(o),
135
135
  shouldShowConnectionStatus: !0
136
136
  }
137
137
  ),
138
- (!V || L.length > 0 || s.length > 0) && /* @__PURE__ */ e(
139
- y,
138
+ (!V || p.length > 0 || u.length > 0) && /* @__PURE__ */ e(
139
+ A,
140
140
  {
141
141
  sx: {
142
- mb: _ ? 24 : 4,
143
- ml: _ ? 24 : 68
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
- s.length > 0 && m("hidden"),
154
- L.length > 0 && m("closed"),
153
+ u.length > 0 && m("hidden"),
154
+ p.length > 0 && m("closed"),
155
155
  /* @__PURE__ */ n(
156
- Q,
156
+ J,
157
157
  {
158
158
  ariaLabelClose: C.close_account_details_aria,
159
159
  isOpen: !!c,
160
- onClose: () => h(""),
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
- }, 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();
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
- 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);
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 s ? /* @__PURE__ */ e(
182
- X,
179
+ return u ? /* @__PURE__ */ e(
180
+ Q,
183
181
  {
184
182
  accountOptions: f,
185
- actions: H.show_connections_widget_in_master ? [
186
- { iconName: "add", label: a.add, onClick: i },
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: a.manage,
190
- onClick: M
187
+ label: s.manage,
188
+ onClick: i
191
189
  }
192
190
  ] : [],
193
- onAccountsFilterClick: () => m(S.ACCOUNTS_CLICK_FILTER),
191
+ onAccountsFilterClick: () => m(y.ACCOUNTS_CLICK_FILTER),
194
192
  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, {})
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: r.mini_title
205
+ title: a.mini_title
208
206
  }
209
207
  ),
210
208
  /* @__PURE__ */ e(
211
- e1,
209
+ X,
212
210
  {
213
- onClose: () => u(!1),
214
- showConnectionsWidget: p,
215
- title: a.manage_connections
211
+ onClose: () => r(!1),
212
+ showConnectionsWidget: h,
213
+ title: s.manage_connections
216
214
  }
217
215
  )
218
- ] }) : /* @__PURE__ */ e(R, {})
216
+ ] }) : /* @__PURE__ */ e(g, {})
219
217
  }
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();
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 r = d.useMemo(
227
- () => t1(H, a ? 5 : 3),
228
- [H, a]
224
+ const a = d.useMemo(
225
+ () => e1(L, s ? 5 : 3),
226
+ [L, s]
229
227
  );
230
- return p ? /* @__PURE__ */ e(
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: h,
234
+ sx: H,
237
235
  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;
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: s,
244
+ account: u,
247
245
  listItemProps: { sx: { px: 24 } },
248
246
  shouldShowConnectionStatus: !0
249
247
  }
250
248
  ),
251
- !g && /* @__PURE__ */ e(y, { "aria-hidden": "true", variant: "inset" })
252
- ] }, `account-item${L}`);
249
+ !R && /* @__PURE__ */ e(A, { "aria-hidden": "true", variant: "inset" })
250
+ ] }, `account-item${p}`);
253
251
  })
254
- ] }) : /* @__PURE__ */ e(R, {})
252
+ ] }) : /* @__PURE__ */ e(g, {})
255
253
  }
256
- ) : /* @__PURE__ */ e(R, {});
257
- }, T1 = w(d1), c1 = () => /* @__PURE__ */ n(
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
- ), s1 = () => {
697
- const { connect: c } = Z();
698
- return /* @__PURE__ */ n(i1, { alignItems: "center", direction: "column", m: 24, children: [
699
- /* @__PURE__ */ e(c1, {}),
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
- }, a1 = w(s1), r1 = ({
711
+ }, s1 = M(c1), a1 = ({
714
712
  onPrimaryCtaClick: c = () => {
715
713
  },
716
- sx: h
714
+ sx: H
717
715
  }) => {
718
- const { isCopyLoaded: C } = b(), { connect: l } = Z(), [p, u] = d.useState(!1), H = () => {
719
- u(!0), c();
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: H,
723
+ onPrimaryCtaClick: L,
726
724
  primaryCtaLabel: l.primary_cta,
727
- sx: h,
725
+ sx: H,
728
726
  title: l.mini_title,
729
727
  children: [
730
- /* @__PURE__ */ e(a1, {}),
731
- p && /* @__PURE__ */ e(
728
+ /* @__PURE__ */ e(s1, {}),
729
+ h && /* @__PURE__ */ e(
732
730
  U,
733
731
  {
734
- onClose: () => u(!1),
735
- showConnectWidget: p,
732
+ onClose: () => r(!1),
733
+ showConnectWidget: h,
736
734
  title: l.mini_title
737
735
  }
738
736
  )
739
737
  ]
740
738
  }
741
- ) : /* @__PURE__ */ e(R, {});
742
- }, O1 = w(r1);
739
+ ) : /* @__PURE__ */ e(g, {});
740
+ }, T1 = M(a1);
743
741
  export {
744
- Y1 as AccountApi,
742
+ P1 as AccountApi,
745
743
  K as AccountDetailsContent,
746
744
  P as AccountDetailsHeader,
747
- q1 as AccountStore,
748
- T1 as AccountsMiniWidget,
749
- W1 as AccountsWidget,
750
- O1 as ConnectMiniWidget,
751
- K1 as FieldType,
752
- z1 as MemberConnectionStatus,
753
- $1 as getAccountBalanceDetails,
754
- j1 as getAccountDetailFields,
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
- N1 as useGetMergeableAccounts
754
+ D1 as useGetMergeableAccounts
757
755
  };
@@ -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[];