@mx-cartographer/experiences 7.4.7-alpha.mega1 → 7.4.8-alpha.mm0

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 (61) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/dist/{Account-01wOyrH1.mjs → Account-BrOTlmeK.mjs} +1 -1
  3. package/dist/{AccountDetailsContent-COMjOzwr.mjs → AccountDetailsContent-B7FqH05C.mjs} +8 -8
  4. package/dist/{AccountDetailsHeader-Cbi5G6fJ.mjs → AccountDetailsHeader-C8MxsxhN.mjs} +4 -4
  5. package/dist/{AccountFields-Cd_nOWmf.mjs → AccountFields-BQZ-o6Kj.mjs} +2 -2
  6. package/dist/{AccountListItem-DxY4cCF1.mjs → AccountListItem-aIE9WWTO.mjs} +4 -4
  7. package/dist/{AccountStore-C1zMBzHq.mjs → AccountStore-DqO84Aer.mjs} +2 -2
  8. package/dist/{Accounts-D7QljYas.mjs → Accounts-DC_A4UCa.mjs} +1 -1
  9. package/dist/{BudgetUtil-Df2nII9u.mjs → BudgetUtil-BmZXkL0C.mjs} +1 -1
  10. package/dist/{CategorySelectorDrawer-DqJK_rrL.mjs → CategorySelectorDrawer-SUgfE5GN.mjs} +1 -1
  11. package/dist/{ConnectDrawer-CuUj16NH.mjs → ConnectDrawer-KL8t1qSC.mjs} +1 -1
  12. package/dist/{ConnectionsDrawer-Bz4uwdFE.mjs → ConnectionsDrawer-DaK5uIL5.mjs} +2 -2
  13. package/dist/{CurrencyInput-BFKcs-_K.mjs → CurrencyInput-itK0R3wV.mjs} +1 -1
  14. package/dist/{DebtsStore-Bu8rRRSL.mjs → DebtsStore-DVPZbv2C.mjs} +1 -1
  15. package/dist/{ExportCsvAction-DzTrtPzk.mjs → ExportCsvAction-Cglo8Mca.mjs} +3 -3
  16. package/dist/{GoalStore-CrNhjvNc.mjs → GoalStore-o4rrjGSJ.mjs} +2 -2
  17. package/dist/{Help-BnPXM_N2.mjs → Help-BjLMsuMS.mjs} +1 -1
  18. package/dist/{LineChart-bc1D9xBE.mjs → LineChart-BQRxZF3p.mjs} +1 -1
  19. package/dist/{ListItemAction-uobBrm_a.mjs → ListItemAction-BxTkF6Tz.mjs} +1 -1
  20. package/dist/{ManageIncome-A69EUO5u.mjs → ManageIncome-rcnDYsBJ.mjs} +75 -75
  21. package/dist/{MicroWidgetContainer-DEiRnYVa.mjs → MicroWidgetContainer-B2hO9rOG.mjs} +1 -1
  22. package/dist/{MiniWidgetContainer-CmXpTylX.mjs → MiniWidgetContainer-98-hKFqm.mjs} +1 -1
  23. package/dist/{NetWorthStore-CpL_kqvx.mjs → NetWorthStore-DG2X69jG.mjs} +2 -2
  24. package/dist/{NotificationSettings-CNmJWVeI.mjs → NotificationSettings-C7FYNM7I.mjs} +250 -248
  25. package/dist/{OriginalBalanceAction-DK8_LkPz.mjs → OriginalBalanceAction-C6jdS4ws.mjs} +3 -3
  26. package/dist/{RecurringSettings-B0uObPlD.mjs → RecurringSettings-C81H1l38.mjs} +3 -3
  27. package/dist/{SpendingLegend-Bf-wbJvb.mjs → SpendingLegend-DqZxN_BZ.mjs} +2 -2
  28. package/dist/{TransactionDetails-COH0OKNG.mjs → TransactionDetails-BA_E5nQ-.mjs} +5 -5
  29. package/dist/{TransactionStore-Dz-G8Wd0.mjs → TransactionStore-PRlwE-TF.mjs} +2 -2
  30. package/dist/{User-wXzDI4M8.mjs → User-Cnlegl1N.mjs} +1 -1
  31. package/dist/{ViewMoreMicroCard-C0832BMe.mjs → ViewMoreMicroCard-DfPXJzbv.mjs} +105 -101
  32. package/dist/{WidgetContainer-6dsjtOVg.mjs → WidgetContainer-CaPjoWeE.mjs} +2 -2
  33. package/dist/accounts/index.es.js +148 -140
  34. package/dist/analytics/index.es.js +2 -2
  35. package/dist/budgets/index.es.js +483 -478
  36. package/dist/cashflow/index.es.js +367 -362
  37. package/dist/categories/index.es.js +1 -1
  38. package/dist/common/hooks/index.d.ts +1 -0
  39. package/dist/common/hooks/useWidgetLoadTimer.d.ts +6 -0
  40. package/dist/common/index.es.js +35 -33
  41. package/dist/dashboard/index.es.js +90 -88
  42. package/dist/debts/index.es.js +346 -342
  43. package/dist/{exportTransactionsToCSV-Cz2t0lmA.mjs → exportTransactionsToCSV-DuAaI5XA.mjs} +1 -1
  44. package/dist/finstrong/index.es.js +352 -350
  45. package/dist/goals/index.es.js +518 -511
  46. package/dist/help/index.es.js +13 -9
  47. package/dist/{hooks-C41HAxM5.mjs → hooks-ZMp65DFz.mjs} +11 -11
  48. package/dist/investments/index.es.js +395 -393
  49. package/dist/merchants/index.es.js +1 -1
  50. package/dist/microinsights/index.es.js +1 -1
  51. package/dist/networth/index.es.js +245 -240
  52. package/dist/notifications/index.es.js +2 -2
  53. package/dist/recurringtransactions/index.es.js +293 -285
  54. package/dist/settings/index.es.js +252 -249
  55. package/dist/spending/index.es.js +136 -124
  56. package/dist/transactions/index.es.js +77 -73
  57. package/dist/trends/index.es.js +601 -588
  58. package/dist/{useAccountDisplayName-CMMlIOXF.mjs → useAccountDisplayName-Cjx8YmKK.mjs} +2 -2
  59. package/dist/{useInsightsEnabled-CNjP5cfR.mjs → useInsightsEnabled-B7dxpDrX.mjs} +1 -1
  60. package/dist/useWidgetLoadTimer-C1NBkyLd.mjs +23 -0
  61. package/package.json +1 -1
@@ -1,59 +1,60 @@
1
- import { jsx as e, jsxs as r, Fragment as q } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as r, Fragment as J } from "react/jsx-runtime";
2
2
  import h from "react";
3
3
  import { observer as v } from "mobx-react-lite";
4
4
  import E from "@mui/material/Box";
5
- import x from "@mui/material/Divider";
5
+ import y from "@mui/material/Divider";
6
6
  import F from "@mui/material/List";
7
7
  import O from "@mui/material/ListSubheader";
8
- import y from "@mui/system/Stack";
8
+ import Z from "@mui/system/Stack";
9
9
  import { Text as g } from "@mxenabled/mxui";
10
- import { useTheme as J } from "@mui/material/styles";
11
- import { u as D, A as Q } from "../AccountDetailsHeader-Cbi5G6fJ.mjs";
12
- import { L as X } from "../LineChart-bc1D9xBE.mjs";
13
- import { g as e1, a as t1, b as n1 } from "../SpendingData-BuJ03S9d.mjs";
14
- import { m as l1, u as M, b, d as N, g as U, a as i1, n as o1 } from "../hooks-C41HAxM5.mjs";
15
- import { A as W, l as P, m as C1 } from "../ConnectDrawer-CuUj16NH.mjs";
16
- import { F as o3, M as C3 } from "../ConnectDrawer-CuUj16NH.mjs";
17
- import { I as G, P as $, S as j } from "../Account-01wOyrH1.mjs";
18
- import { a as d1 } from "../AccountFields-Cd_nOWmf.mjs";
19
- import { g as c3, b as s3 } from "../AccountFields-Cd_nOWmf.mjs";
20
- import { A as B } from "../AccountListItem-DxY4cCF1.mjs";
21
- import { A as c1 } from "../AccountDetailsContent-COMjOzwr.mjs";
22
- import { u as r3 } from "../AccountDetailsContent-COMjOzwr.mjs";
23
- import { f as I } from "../NumberFormatting-DjTD0t3W.mjs";
10
+ import { useTheme as Q } from "@mui/material/styles";
11
+ import { u as U, A as X } from "../AccountDetailsHeader-C8MxsxhN.mjs";
12
+ import { L as e1 } from "../LineChart-BQRxZF3p.mjs";
13
+ import { g as t1, a as n1, b as l1 } from "../SpendingData-BuJ03S9d.mjs";
14
+ import { m as i1, u as M, b as S, d as W, g as P, a as o1 } from "../hooks-ZMp65DFz.mjs";
15
+ import { A as I, l as G, m as C1 } from "../ConnectDrawer-KL8t1qSC.mjs";
16
+ import { F as C3, M as d3 } from "../ConnectDrawer-KL8t1qSC.mjs";
17
+ import { I as $, P as j, S as Y } from "../Account-BrOTlmeK.mjs";
18
+ import { a as d1 } from "../AccountFields-BQZ-o6Kj.mjs";
19
+ import { g as s3, b as a3 } from "../AccountFields-BQZ-o6Kj.mjs";
20
+ import { A as N } from "../AccountListItem-aIE9WWTO.mjs";
21
+ import { A as c1 } from "../AccountDetailsContent-B7FqH05C.mjs";
22
+ import { u as L3 } from "../AccountDetailsContent-B7FqH05C.mjs";
23
+ import { f as D } from "../NumberFormatting-DjTD0t3W.mjs";
24
24
  import { D as s1 } from "../Drawer-BEtCk82g.mjs";
25
- import { A as S, W as a1 } from "../WidgetContainer-6dsjtOVg.mjs";
26
- import { C as r1 } from "../ConnectionsDrawer-Bz4uwdFE.mjs";
27
- import { u as Y } from "../useScreenSize-B6JyS_Lj.mjs";
28
- import { L as _ } from "../Loader-DUaFpDGv.mjs";
25
+ import { A as x, W as a1 } from "../WidgetContainer-CaPjoWeE.mjs";
26
+ import { C as r1 } from "../ConnectionsDrawer-DaK5uIL5.mjs";
27
+ import { u as K } from "../useScreenSize-B6JyS_Lj.mjs";
28
+ import { u as B } from "../useWidgetLoadTimer-C1NBkyLd.mjs";
29
+ import { L as w } from "../Loader-DUaFpDGv.mjs";
29
30
  import L1 from "@mui/material/ListItem";
30
- import { M as K } from "../MiniWidgetContainer-CmXpTylX.mjs";
31
+ import { M as z } from "../MiniWidgetContainer-98-hKFqm.mjs";
31
32
  import u1 from "@mui/material/Stack";
32
- import { A as u3, a as h3 } from "../AccountStore-C1zMBzHq.mjs";
33
- const h1 = (i, o) => {
34
- const l = G.includes(o) ? e1(i) : [], t = $.includes(o) ? t1(i) : [], L = j.includes(o) ? n1(i) : [];
35
- return [l, t, L].filter((C) => C.length > 0);
36
- }, H1 = (i, o, l) => {
37
- const [t, L] = i, C = t, d = L ?? t, s = [];
38
- if (C && d && G.includes(o)) {
39
- const c = C[C.length - 1].y;
33
+ import { A as h3, a as H3 } from "../AccountStore-DqO84Aer.mjs";
34
+ const h1 = (o, C) => {
35
+ const l = $.includes(C) ? t1(o) : [], t = j.includes(C) ? n1(o) : [], L = Y.includes(C) ? l1(o) : [];
36
+ return [l, t, L].filter((i) => i.length > 0);
37
+ }, H1 = (o, C, l) => {
38
+ const [t, L] = o, i = t, d = L ?? t, s = [];
39
+ if (i && d && $.includes(C)) {
40
+ const c = i[i.length - 1].y;
40
41
  s.push({ label: l.income_label, amount: c });
41
- } else if ($.includes(o)) {
42
- const c = C[C.length - 1].y;
42
+ } else if (j.includes(C)) {
43
+ const c = i[i.length - 1].y;
43
44
  s.push({ label: l.payments_label, amount: c });
44
45
  }
45
- if (d && j.includes(o)) {
46
+ if (d && Y.includes(C)) {
46
47
  const c = d[d.length - 1].y;
47
48
  s.push({ label: l.spending_label, amount: c });
48
49
  }
49
50
  return s;
50
51
  }, p1 = () => {
51
- const i = J(), { selectedAccount: o } = D(), { monthlyCategoryTotals: l } = l1(), { trends: t } = M(), L = [i.palette.chart?.chart1, i.palette.chart?.chart2], C = h1(l, o.account_type), d = H1(C, o.account_type, t), s = [W.LOAN, W.MORTGAGE].includes(o.account_type);
52
+ const o = Q(), { selectedAccount: C } = U(), { monthlyCategoryTotals: l } = i1(), { trends: t } = M(), L = [o.palette.chart?.chart1, o.palette.chart?.chart2], i = h1(l, C.account_type), d = H1(i, C.account_type, t), s = [I.LOAN, I.MORTGAGE].includes(C.account_type);
52
53
  return /* @__PURE__ */ e("div", { "data-testid": "TrendsChart", children: /* @__PURE__ */ e(
53
- X,
54
+ e1,
54
55
  {
55
56
  colors: L,
56
- datasets: C,
57
+ datasets: i,
57
58
  height: 185,
58
59
  labels: d,
59
60
  showAverage: s,
@@ -62,60 +63,60 @@ const h1 = (i, o) => {
62
63
  valueFormatterString: "0,0"
63
64
  }
64
65
  ) });
65
- }, f1 = v(p1), m1 = () => {
66
- const [i, o] = h.useState(""), { accounts: l } = M(), { selectedAccounts: t } = b(), { setSelectedAccount: L, setSelectedMember: C } = D(), { members: d } = N(), { onEvent: s } = U(), c = [...new Set(t.map((n) => n.account_type))], p = t.find((n) => i === n.guid), H = h.useMemo(
66
+ }, m1 = v(p1), f1 = () => {
67
+ const [o, C] = h.useState(""), { accounts: l } = M(), { selectedAccounts: t } = S(), { setSelectedAccount: L, setSelectedMember: i } = U(), { members: d } = W(), { onEvent: s } = P(), c = [...new Set(t.map((n) => n.account_type))], H = t.find((n) => o === n.guid), p = h.useMemo(
67
68
  () => t.filter((n) => n.is_hidden),
68
69
  [t]
69
- ), f = h.useMemo(
70
+ ), m = h.useMemo(
70
71
  () => t.filter((n) => n.is_closed),
71
72
  [t]
72
- ), R = H.reduce(
73
+ ), R = p.reduce(
73
74
  (n, a) => (a.available_balance || a.balance || 0) + n,
74
75
  0
75
- ), k = d1(f, l);
76
+ ), b = d1(m, l);
76
77
  h.useEffect(() => {
77
- if (p) {
78
- L(p);
79
- const n = d.find((a) => a.guid === p?.member_guid) || {};
80
- n && C(n);
78
+ if (H) {
79
+ L(H);
80
+ const n = d.find((a) => a.guid === H?.member_guid) || {};
81
+ n && i(n);
81
82
  }
82
- }, [p, i]);
83
- const Z = (n) => {
84
- o(n.guid), s(S.ACCOUNTS_CLICK_ACCOUNT, {
83
+ }, [H, o]);
84
+ const _ = (n) => {
85
+ C(n.guid), s(x.ACCOUNTS_CLICK_ACCOUNT, {
85
86
  account_guid: n.guid,
86
87
  account_type: n.account_type
87
88
  });
88
89
  }, V = (n) => {
89
- const a = n === "hidden" ? H : f, w = n === "hidden" ? R : k, u = n === "hidden" ? l.account_hidden : l.account_closed;
90
+ const a = n === "hidden" ? p : m, k = n === "hidden" ? R : b, u = n === "hidden" ? l.account_hidden : l.account_closed;
90
91
  return /* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(
91
92
  F,
92
93
  {
93
94
  "aria-label": u,
94
95
  subheader: /* @__PURE__ */ e(O, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ r(
95
- y,
96
+ Z,
96
97
  {
97
98
  component: "span",
98
99
  direction: "row",
99
100
  sx: { justifyContent: "space-between", color: "grey.700" },
100
101
  children: [
101
102
  /* @__PURE__ */ e(g, { bold: !0, variant: "Body", children: u }),
102
- /* @__PURE__ */ e(g, { bold: !0, variant: "Body", children: I(w, "0,0.00") })
103
+ /* @__PURE__ */ e(g, { bold: !0, variant: "Body", children: D(k, "0,0.00") })
103
104
  ]
104
105
  }
105
106
  ) }),
106
- children: /* @__PURE__ */ e(y, { children: a.map((m, A, z) => {
107
- const T = A === z.length - 1;
107
+ children: /* @__PURE__ */ e(Z, { children: a.map((f, A, q) => {
108
+ const T = A === q.length - 1;
108
109
  return /* @__PURE__ */ r(h.Fragment, { children: [
109
110
  /* @__PURE__ */ e(
110
- B,
111
+ N,
111
112
  {
112
- account: m,
113
- onRowClick: () => Z(m),
113
+ account: f,
114
+ onRowClick: () => _(f),
114
115
  shouldShowConnectionStatus: !0
115
116
  }
116
117
  ),
117
118
  n === "hidden" ? /* @__PURE__ */ e(
118
- x,
119
+ y,
119
120
  {
120
121
  sx: {
121
122
  mb: T ? 24 : 4,
@@ -123,7 +124,7 @@ const h1 = (i, o) => {
123
124
  }
124
125
  }
125
126
  ) : !T && /* @__PURE__ */ e(
126
- x,
127
+ y,
127
128
  {
128
129
  sx: {
129
130
  mb: 4,
@@ -131,7 +132,7 @@ const h1 = (i, o) => {
131
132
  }
132
133
  }
133
134
  )
134
- ] }, m.guid);
135
+ ] }, f.guid);
135
136
  }) })
136
137
  }
137
138
  ) });
@@ -140,8 +141,8 @@ const h1 = (i, o) => {
140
141
  c.map((n) => {
141
142
  const a = t.filter(
142
143
  (u) => u.account_type === n && !u.is_closed && !u.is_hidden
143
- ), w = a.reduce(
144
- (u, m) => (m.balance || 0) + u,
144
+ ), k = a.reduce(
145
+ (u, f) => (f.balance || 0) + u,
145
146
  0
146
147
  );
147
148
  return a.length === 0 ? null : /* @__PURE__ */ e(
@@ -149,30 +150,30 @@ const h1 = (i, o) => {
149
150
  {
150
151
  "aria-label": l.account_type_accounts[a[0]?.account_type],
151
152
  subheader: /* @__PURE__ */ e(O, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ r(
152
- y,
153
+ Z,
153
154
  {
154
155
  component: "span",
155
156
  direction: "row",
156
157
  sx: { display: "flex", justifyContent: "space-between" },
157
158
  children: [
158
159
  /* @__PURE__ */ e(g, { bold: !0, variant: "Body", children: l.account_types[n] }),
159
- /* @__PURE__ */ e(g, { bold: !0, variant: "Body", children: I(w, "0,0.00") })
160
+ /* @__PURE__ */ e(g, { bold: !0, variant: "Body", children: D(k, "0,0.00") })
160
161
  ]
161
162
  }
162
163
  ) }),
163
- children: /* @__PURE__ */ e(y, { children: a.map((u) => {
164
- const m = t.indexOf(u) === t.length - 1, A = a.indexOf(u) === a.length - 1;
164
+ children: /* @__PURE__ */ e(Z, { children: a.map((u) => {
165
+ const f = t.indexOf(u) === t.length - 1, A = a.indexOf(u) === a.length - 1;
165
166
  return /* @__PURE__ */ r(h.Fragment, { children: [
166
167
  /* @__PURE__ */ e(
167
- B,
168
+ N,
168
169
  {
169
170
  account: u,
170
- onRowClick: () => Z(u),
171
+ onRowClick: () => _(u),
171
172
  shouldShowConnectionStatus: !0
172
173
  }
173
174
  ),
174
- (!m || f.length > 0 || H.length > 0) && /* @__PURE__ */ e(
175
- x,
175
+ (!f || m.length > 0 || p.length > 0) && /* @__PURE__ */ e(
176
+ y,
176
177
  {
177
178
  sx: {
178
179
  mb: A ? 24 : 4,
@@ -186,111 +187,115 @@ const h1 = (i, o) => {
186
187
  n
187
188
  );
188
189
  }),
189
- H.length > 0 && V("hidden"),
190
- f.length > 0 && V("closed"),
190
+ p.length > 0 && V("hidden"),
191
+ m.length > 0 && V("closed"),
191
192
  /* @__PURE__ */ r(
192
193
  s1,
193
194
  {
194
195
  ariaLabelClose: l.close_account_details_aria,
195
- isOpen: !!i,
196
- onClose: () => o(""),
196
+ isOpen: !!o,
197
+ onClose: () => C(""),
197
198
  title: l.account_details,
198
199
  children: [
199
- /* @__PURE__ */ e(Q, { ChartComponent: f1 }),
200
+ /* @__PURE__ */ e(X, { ChartComponent: m1 }),
200
201
  /* @__PURE__ */ e(c1, {})
201
202
  ]
202
203
  }
203
204
  )
204
205
  ] });
205
- }, V1 = v(m1), g1 = ({ onBackClick: i, sx: o = {} }) => {
206
- const [l, t] = h.useState(!1), [L, C] = h.useState(!1), { config: d } = i1(), { accounts: s } = N(), { accounts: c, connect: p } = M(), { isCopyLoaded: H, isInitialized: f, setSelectedAccounts: R, selectedAccountGuids: k } = b(), { isDesktop: Z } = Y(), { onEvent: V } = U(), { onLoad: n } = o1();
207
- h.useEffect(() => {
206
+ }, V1 = v(f1), g1 = ({ onBackClick: o, sx: C = {} }) => {
207
+ const [l, t] = h.useState(!1), [L, i] = h.useState(!1), { config: d } = o1(), { accounts: s } = W(), { accounts: c, connect: H } = M(), { isCopyLoaded: p, isInitialized: m, setSelectedAccounts: R, selectedAccountGuids: b } = S(), { isDesktop: _ } = K(), { onEvent: V } = P();
208
+ B({
209
+ widgetName: "AccountsWidget",
210
+ isLoaded: m && p
211
+ }), h.useEffect(() => {
208
212
  R(s);
209
- }, [s]), h.useEffect(() => {
210
- f && H && n?.("AccountsWidget");
211
- }, [f, H]);
212
- const a = () => {
213
- t(!0), V(S.ACCOUNTS_CLICK_CONNECT);
214
- }, w = () => {
215
- C(!0), V(S.ACCOUNTS_CLICK_CONNECT);
213
+ }, [s]);
214
+ const n = () => {
215
+ t(!0), V(x.ACCOUNTS_CLICK_CONNECT);
216
+ }, a = () => {
217
+ i(!0), V(x.ACCOUNTS_CLICK_CONNECT);
216
218
  };
217
- return H ? /* @__PURE__ */ e(
219
+ return p ? /* @__PURE__ */ e(
218
220
  a1,
219
221
  {
220
222
  accountOptions: s,
221
223
  actions: d.show_connections_widget_in_master ? [
222
- { iconName: "add", label: c.add, onClick: a },
224
+ { iconName: "add", label: c.add, onClick: n },
223
225
  {
224
226
  iconName: "credit_card_gear",
225
227
  label: c.manage,
226
- onClick: w
228
+ onClick: a
227
229
  }
228
230
  ] : [],
229
- onAccountsFilterClick: () => V(S.ACCOUNTS_CLICK_FILTER),
230
- onBackClick: i,
231
- sx: o,
231
+ onAccountsFilterClick: () => V(x.ACCOUNTS_CLICK_FILTER),
232
+ onBackClick: o,
233
+ sx: C,
232
234
  title: c.title,
233
- children: f ? /* @__PURE__ */ r(q, { children: [
234
- /* @__PURE__ */ r(E, { sx: { px: Z ? 24 : 12 }, children: [
235
- k.length < 1 && /* @__PURE__ */ e(g, { display: "flex", justifyContent: "center", my: 24, children: c.no_accounts }),
235
+ children: m ? /* @__PURE__ */ r(J, { children: [
236
+ /* @__PURE__ */ r(E, { sx: { px: _ ? 24 : 12 }, children: [
237
+ b.length < 1 && /* @__PURE__ */ e(g, { display: "flex", justifyContent: "center", my: 24, children: c.no_accounts }),
236
238
  /* @__PURE__ */ e(V1, {})
237
239
  ] }),
238
240
  /* @__PURE__ */ e(
239
- P,
241
+ G,
240
242
  {
241
243
  onClose: () => t(!1),
242
244
  showConnectWidget: l,
243
- title: p.mini_title
245
+ title: H.mini_title
244
246
  }
245
247
  ),
246
248
  /* @__PURE__ */ e(
247
249
  r1,
248
250
  {
249
- onClose: () => C(!1),
251
+ onClose: () => i(!1),
250
252
  showConnectionsWidget: L,
251
253
  title: c.manage_connections
252
254
  }
253
255
  )
254
- ] }) : /* @__PURE__ */ e(_, {})
256
+ ] }) : /* @__PURE__ */ e(w, {})
255
257
  }
256
- ) : /* @__PURE__ */ e(_, {});
257
- }, e3 = v(g1), v1 = ({ onPrimaryCtaClick: i, sx: o }) => {
258
- const { visibleAccounts: l } = N(), { accounts: t } = M(), { isCopyLoaded: L, isInitialized: C, selectedAccounts: d, setSelectedAccounts: s } = b(), { isDesktop: c } = Y();
259
- h.useEffect(() => {
258
+ ) : /* @__PURE__ */ e(w, {});
259
+ }, t3 = v(g1), v1 = ({ onPrimaryCtaClick: o, sx: C }) => {
260
+ const { visibleAccounts: l } = W(), { accounts: t } = M(), { isCopyLoaded: L, isInitialized: i, selectedAccounts: d, setSelectedAccounts: s } = S(), { isDesktop: c } = K();
261
+ B({
262
+ widgetName: "AccountsMiniWidget",
263
+ isLoaded: i
264
+ }), h.useEffect(() => {
260
265
  s(l);
261
266
  }, [l]);
262
- const p = h.useMemo(
267
+ const H = h.useMemo(
263
268
  () => C1(d, c ? 5 : 3),
264
269
  [d, c]
265
270
  );
266
271
  return L ? /* @__PURE__ */ e(
267
- K,
272
+ z,
268
273
  {
269
274
  className: "mx-exp-accounts-miniwidget",
270
- onPrimaryCtaClick: i,
275
+ onPrimaryCtaClick: o,
271
276
  primaryCtaLabel: t.primary_cta,
272
- sx: o,
277
+ sx: C,
273
278
  title: t.mini_title,
274
- children: C ? /* @__PURE__ */ r(F, { children: [
279
+ children: i ? /* @__PURE__ */ r(F, { children: [
275
280
  d.length === 0 && /* @__PURE__ */ e(L1, { sx: { justifyContent: "center" }, children: t.no_accounts }),
276
- p.map((H, f) => {
277
- const R = p.indexOf(H) === p.length - 1;
281
+ H.map((p, m) => {
282
+ const R = H.indexOf(p) === H.length - 1;
278
283
  return /* @__PURE__ */ r(h.Fragment, { children: [
279
284
  /* @__PURE__ */ e(
280
- B,
285
+ N,
281
286
  {
282
- account: H,
287
+ account: p,
283
288
  listItemProps: { sx: { px: 24 } },
284
289
  shouldShowConnectionStatus: !0
285
290
  }
286
291
  ),
287
- !R && /* @__PURE__ */ e(x, { "aria-hidden": "true", variant: "inset" })
288
- ] }, `account-item${f}`);
292
+ !R && /* @__PURE__ */ e(y, { "aria-hidden": "true", variant: "inset" })
293
+ ] }, `account-item${m}`);
289
294
  })
290
- ] }) : /* @__PURE__ */ e(_, {})
295
+ ] }) : /* @__PURE__ */ e(w, {})
291
296
  }
292
- ) : /* @__PURE__ */ e(_, {});
293
- }, t3 = v(v1), M1 = () => /* @__PURE__ */ r(
297
+ ) : /* @__PURE__ */ e(w, {});
298
+ }, n3 = v(v1), M1 = () => /* @__PURE__ */ r(
294
299
  "svg",
295
300
  {
296
301
  fill: "none",
@@ -730,7 +735,7 @@ const h1 = (i, o) => {
730
735
  ]
731
736
  }
732
737
  ), R1 = () => {
733
- const { connect: i } = M();
738
+ const { connect: o } = M();
734
739
  return /* @__PURE__ */ r(u1, { alignItems: "center", direction: "column", m: 24, children: [
735
740
  /* @__PURE__ */ e(M1, {}),
736
741
  /* @__PURE__ */ e(
@@ -742,52 +747,55 @@ const h1 = (i, o) => {
742
747
  textAlign: "center"
743
748
  },
744
749
  variant: "Paragraph",
745
- children: i.mini_widget_content
750
+ children: o.mini_widget_content
746
751
  }
747
752
  )
748
753
  ] });
749
754
  }, w1 = v(R1), _1 = ({
750
- onPrimaryCtaClick: i = () => {
755
+ onPrimaryCtaClick: o = () => {
751
756
  },
752
- sx: o
757
+ sx: C
753
758
  }) => {
754
- const { isCopyLoaded: l } = b(), { connect: t } = M(), [L, C] = h.useState(!1), d = () => {
755
- C(!0), i();
759
+ const { isCopyLoaded: l } = S(), { connect: t } = M(), [L, i] = h.useState(!1), d = () => {
760
+ i(!0), o();
756
761
  };
757
- return l ? /* @__PURE__ */ r(
758
- K,
762
+ return B({
763
+ widgetName: "ConnectMiniWidget",
764
+ isLoaded: l
765
+ }), l ? /* @__PURE__ */ r(
766
+ z,
759
767
  {
760
768
  className: "mx-exp-connect-miniwidget",
761
769
  onPrimaryCtaClick: d,
762
770
  primaryCtaLabel: t.primary_cta,
763
- sx: o,
771
+ sx: C,
764
772
  title: t.mini_title,
765
773
  children: [
766
774
  /* @__PURE__ */ e(w1, {}),
767
775
  L && /* @__PURE__ */ e(
768
- P,
776
+ G,
769
777
  {
770
- onClose: () => C(!1),
778
+ onClose: () => i(!1),
771
779
  showConnectWidget: L,
772
780
  title: t.mini_title
773
781
  }
774
782
  )
775
783
  ]
776
784
  }
777
- ) : /* @__PURE__ */ e(_, {});
778
- }, n3 = v(_1);
785
+ ) : /* @__PURE__ */ e(w, {});
786
+ }, l3 = v(_1);
779
787
  export {
780
- u3 as AccountApi,
788
+ h3 as AccountApi,
781
789
  c1 as AccountDetailsContent,
782
- Q as AccountDetailsHeader,
783
- h3 as AccountStore,
784
- t3 as AccountsMiniWidget,
785
- e3 as AccountsWidget,
786
- n3 as ConnectMiniWidget,
787
- o3 as FieldType,
788
- C3 as MemberConnectionStatus,
789
- c3 as getAccountBalanceDetails,
790
- s3 as getAccountDetailFields,
791
- D as useAccountUiStore,
792
- r3 as useGetMergeableAccounts
790
+ X as AccountDetailsHeader,
791
+ H3 as AccountStore,
792
+ n3 as AccountsMiniWidget,
793
+ t3 as AccountsWidget,
794
+ l3 as ConnectMiniWidget,
795
+ C3 as FieldType,
796
+ d3 as MemberConnectionStatus,
797
+ s3 as getAccountBalanceDetails,
798
+ a3 as getAccountDetailFields,
799
+ U as useAccountUiStore,
800
+ L3 as useGetMergeableAccounts
793
801
  };
@@ -8,8 +8,8 @@ import a from "@mui/material/Stack";
8
8
  import _ from "@mui/material/styles/useTheme";
9
9
  import { Text as u, TextField as L } from "@mxenabled/mxui";
10
10
  import { L as W } from "../Loader-DUaFpDGv.mjs";
11
- import { M as j } from "../MiniWidgetContainer-CmXpTylX.mjs";
12
- import { k as f, u as b, g as q, b as E } from "../hooks-C41HAxM5.mjs";
11
+ import { M as j } from "../MiniWidgetContainer-98-hKFqm.mjs";
12
+ import { k as f, u as b, g as q, b as E } from "../hooks-ZMp65DFz.mjs";
13
13
  import Q from "@mui/material/ToggleButton";
14
14
  import G from "@mui/material/ToggleButtonGroup";
15
15
  const O = () => {