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

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