@mx-cartographer/experiences 8.2.3 → 8.2.4-alpha-ram1-bug-testing

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 (77) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/{AccountDetailsHeader-CfdnKyJK.mjs → AccountDetailsHeader-DIysk_4w.mjs} +1 -1
  3. package/dist/{AccountFields-CAy0x_4i.mjs → AccountFields-mwJ8NXsX.mjs} +18 -18
  4. package/dist/{AccountListItem-BYyeeCf6.mjs → AccountListItem-BDXHs4tV.mjs} +7 -8
  5. package/dist/{CategorySelectorDrawer-Cu1ohxeM.mjs → CategorySelectorDrawer-CmaDLhnf.mjs} +71 -68
  6. package/dist/{ConnectCard-Dix8BoV_.mjs → ConnectCard-CCep7Zqe.mjs} +9 -9
  7. package/dist/{ConnectDrawer-DgfsTpyW.mjs → ConnectDrawer-Cnjr3Ddg.mjs} +2 -2
  8. package/dist/{ConnectionsDrawer-D7IXAza2.mjs → ConnectionsDrawer-CtfPXk0M.mjs} +1 -1
  9. package/dist/{CurrencyDialog-d4dL7vA5.mjs → CurrencyDialog-DumQCTPO.mjs} +18 -16
  10. package/dist/{CurrencyInput-B59ugxPN.mjs → CurrencyInput-adTIRtL3.mjs} +28 -26
  11. package/dist/{Dialog-iLlBR8TG.mjs → Dialog-CwWc0AbH.mjs} +11 -11
  12. package/dist/{Drawer-XPaLYjiO.mjs → Drawer-BXqqBMxg.mjs} +26 -28
  13. package/dist/{EmbeddedCard-BNl3quCs.mjs → EmbeddedCard-DPwJjqMH.mjs} +37 -37
  14. package/dist/{EmptyState-DHAkGsjk.mjs → EmptyState-CJUDc3kD.mjs} +17 -17
  15. package/dist/{ExportCsvAction-hDprC41l.mjs → ExportCsvAction-Bw02ZJEj.mjs} +2 -2
  16. package/dist/{GlobalAccountFilter-DrhtwPqh.mjs → GlobalAccountFilter-7Cg2-9A5.mjs} +25 -25
  17. package/dist/{Help-BSQm9o29.mjs → Help-DJ8PrVHX.mjs} +56 -73
  18. package/dist/{ListItemAction-DGjHxNDJ.mjs → ListItemAction-CwspSmQi.mjs} +22 -22
  19. package/dist/{ManageIncome-DwylSiWs.mjs → ManageIncome-B1JfqslT.mjs} +6 -6
  20. package/dist/{NotificationSettings-CCg-Tml2.mjs → NotificationSettings-6p-h5phZ.mjs} +48 -48
  21. package/dist/{OriginalBalanceAction-CvDx0K6k.mjs → OriginalBalanceAction-CkJPnp2c.mjs} +2 -2
  22. package/dist/{RecurringSettings-CPXLW6AR.mjs → RecurringSettings-cm6MK_aS.mjs} +1 -1
  23. package/dist/{ResponsiveButton-BNsV08Ud.mjs → ResponsiveButton-CC9F_Ezk.mjs} +1 -1
  24. package/dist/SearchBox-Cpgu_gdO.mjs +50 -0
  25. package/dist/Select-BFt-HD-L.mjs +55 -0
  26. package/dist/{SelectionBox-Bx2a5rh4.mjs → SelectionBox-B4xELRgp.mjs} +1 -1
  27. package/dist/{SingleSegmentDonut-PsRQPkmV.mjs → SingleSegmentDonut-7Uy6VEld.mjs} +1 -1
  28. package/dist/{SpendingLegend-BmkEr9Nh.mjs → SpendingLegend-5Ct_FZ8o.mjs} +1 -1
  29. package/dist/{ToggleListItem-BLu_fWA2.mjs → ToggleListItem-Dl1lXNwj.mjs} +29 -28
  30. package/dist/{TransactionDetails-CbBSxdOi.mjs → TransactionDetails-C3dlAzYf.mjs} +386 -393
  31. package/dist/{ViewMoreMicroCard-D_LoKlJU.mjs → ViewMoreMicroCard-BD_MNc2z.mjs} +526 -518
  32. package/dist/{WidgetContainer-CYcmwsSu.mjs → WidgetContainer-DNuz_s7W.mjs} +5 -5
  33. package/dist/accounts/index.es.js +199 -194
  34. package/dist/analytics/index.es.js +1 -1
  35. package/dist/budgets/index.es.js +183 -184
  36. package/dist/cashflow/index.es.js +70 -80
  37. package/dist/categories/index.es.js +1 -1
  38. package/dist/common/components/ErrorBoundary.d.ts +1 -1
  39. package/dist/common/components/WidgetContainer.d.ts +1 -1
  40. package/dist/common/components/charts/stackedlinechart/CustomAreaTooltip.d.ts +1 -1
  41. package/dist/common/hooks/usePrevious.d.ts +1 -1
  42. package/dist/common/index.es.js +206 -194
  43. package/dist/common/utils/Theme.d.ts +6 -5
  44. package/dist/common/utils/index.d.ts +1 -1
  45. package/dist/dashboard/index.es.js +47 -47
  46. package/dist/debts/index.es.js +140 -140
  47. package/dist/finstrong/index.es.js +40 -32
  48. package/dist/finstrong/util/finstrongUtils.d.ts +1 -1
  49. package/dist/goals/index.es.js +154 -165
  50. package/dist/help/index.es.js +2 -2
  51. package/dist/insights/components/insights/UserFeedback/Types.d.ts +1 -1
  52. package/dist/insights/components/shared/DirectDeposit/DirectDepositSubHeader.d.ts +3 -3
  53. package/dist/insights/hooks/useContainerDimensions.d.ts +1 -1
  54. package/dist/insights/index.es.js +677 -687
  55. package/dist/insights/themes/Typography.d.ts +0 -2
  56. package/dist/investments/index.es.js +205 -207
  57. package/dist/merchants/index.es.js +1 -1
  58. package/dist/microinsights/cards/InsightCard.d.ts +2 -2
  59. package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +3 -5
  60. package/dist/microinsights/cards/ViewMoreMicroCard.d.ts +3 -5
  61. package/dist/microinsights/cards/ZeroStateCard.d.ts +3 -5
  62. package/dist/microinsights/carousel/BeatList.d.ts +2 -2
  63. package/dist/microinsights/carousel/MicroBeatCarousel.d.ts +12 -1
  64. package/dist/microinsights/index.es.js +1 -1
  65. package/dist/microinsights/interfaces.d.ts +11 -5
  66. package/dist/networth/index.es.js +85 -87
  67. package/dist/notifications/index.es.js +7 -8
  68. package/dist/recurringtransactions/index.es.js +53 -53
  69. package/dist/settings/index.es.js +111 -111
  70. package/dist/spending/index.es.js +7 -7
  71. package/dist/transactions/components/shared/TransactionList.d.ts +2 -2
  72. package/dist/transactions/index.es.js +138 -140
  73. package/dist/trends/index.es.js +293 -292
  74. package/dist/{useScreenSize-CeFhWTt_.mjs → useScreenSize-mWpmnh5w.mjs} +1 -1
  75. package/package.json +29 -23
  76. package/dist/SearchBox-CwDgvWVJ.mjs +0 -48
  77. package/dist/Select-BZRUpOib.mjs +0 -51
@@ -2,88 +2,87 @@ import { jsx as e, jsxs as C, Fragment as S } from "react/jsx-runtime";
2
2
  import h from "react";
3
3
  import { observer as V } from "mobx-react-lite";
4
4
  import t1 from "@mui/material/Stack";
5
- import { Text as v, Icon as N, THEMES as c1 } from "@mxenabled/mxui";
5
+ import { Text as v, Icon as N } from "@mxenabled/mxui";
6
6
  import { S as m1 } from "../SkeletonLoader-BaNboJjD.mjs";
7
- import a1 from "@mui/material/Box";
7
+ import c1 from "@mui/material/Box";
8
8
  import W from "@mui/material/Divider";
9
9
  import O from "@mui/material/List";
10
10
  import B from "@mui/material/ListSubheader";
11
11
  import P from "@mui/system/Stack";
12
- import { f as s1 } from "../NumberFormatting--XMeeBfr.mjs";
13
- import { useTheme as y1, alpha as w1 } from "@mui/material/styles";
14
- import { u as R, A as x1 } from "../AccountDetailsHeader-CfdnKyJK.mjs";
12
+ import { f as a1 } from "../NumberFormatting--XMeeBfr.mjs";
13
+ import { useTheme as p1, alpha as x1 } from "@mui/material/styles";
14
+ import { u as R, A as w1 } from "../AccountDetailsHeader-DIysk_4w.mjs";
15
15
  import { L as R1 } from "../LineChart-CejWS_rh.mjs";
16
- import { g as S1, a as T1, b as E1 } from "../SpendingData-PKlh8caU.mjs";
17
- import { l as D1, u as A, d as D, g as k, h as p1, a as _1, b as G } from "../hooks-BaO_gOI6.mjs";
18
- import { A as I, g as f, N as L1 } from "../Account-BaJmiJAG.mjs";
19
- import { I as f1, P as g1, S as H1 } from "../Account-BxHMlV9R.mjs";
20
- import { a as k1, b as I1 } from "../AccountFields-CAy0x_4i.mjs";
21
- import { g as c2 } from "../AccountFields-CAy0x_4i.mjs";
22
- import { A as U } from "../AccountListItem-BYyeeCf6.mjs";
23
- import l1 from "@mui/material/Tab";
16
+ import { g as S1, a as T1, b as D1 } from "../SpendingData-PKlh8caU.mjs";
17
+ import { l as E1, u as A, d as E, g as k, h as _1, a as L1, b as G } from "../hooks-BaO_gOI6.mjs";
18
+ import { A as I, g as f, N as f1 } from "../Account-BaJmiJAG.mjs";
19
+ import { I as g1, P as H1, S as v1 } from "../Account-BxHMlV9R.mjs";
20
+ import { a as k1, b as I1 } from "../AccountFields-mwJ8NXsX.mjs";
21
+ import { g as n2 } from "../AccountFields-mwJ8NXsX.mjs";
22
+ import { A as U } from "../AccountListItem-BDXHs4tV.mjs";
23
+ import s1 from "@mui/material/Tab";
24
24
  import Z1 from "@mui/material/Tabs";
25
25
  import N1 from "@mui/material/Switch";
26
- import E from "@mui/material/ListItem";
26
+ import D from "@mui/material/ListItem";
27
27
  import $ from "@mui/material/ListItemButton";
28
28
  import Z from "@mui/material/ListItemText";
29
29
  import { b as H } from "../Localization-DnoVyBNK.mjs";
30
- import { A as x } from "../Analytics-CzGzz_sE.mjs";
31
- import { D as e1 } from "../Dialog-iLlBR8TG.mjs";
32
- import { D as n1 } from "../Drawer-XPaLYjiO.mjs";
30
+ import { A as w } from "../Analytics-CzGzz_sE.mjs";
31
+ import { D as e1 } from "../Dialog-CwWc0AbH.mjs";
32
+ import { D as n1 } from "../Drawer-BXqqBMxg.mjs";
33
33
  import j from "@mui/material/ListItemAvatar";
34
- import O1 from "@mui/material/styles/useTheme";
35
- import { Language as F1, Error as v1, CheckCircle as P1 } from "@mxenabled/mx-icons";
36
- import { C as z } from "../ConnectDrawer-DgfsTpyW.mjs";
37
- import { fromUnixTime as W1 } from "date-fns/fromUnixTime";
38
- import { isToday as B1 } from "date-fns/isToday";
39
- import { isYesterday as U1 } from "date-fns/isYesterday";
40
- import { f as r1, D as d1 } from "../DateFormats-HudZ3Bjs.mjs";
34
+ import { Language as O1, Error as b1, CheckCircle as F1 } from "@mxenabled/mx-icons";
35
+ import { C as z } from "../ConnectDrawer-Cnjr3Ddg.mjs";
36
+ import { fromUnixTime as P1 } from "date-fns/fromUnixTime";
37
+ import { isToday as W1 } from "date-fns/isToday";
38
+ import { isYesterday as B1 } from "date-fns/isYesterday";
39
+ import { f as l1, D as r1 } from "../DateFormats-HudZ3Bjs.mjs";
41
40
  import { I as X } from "../IconBacking-DgT8DCeh.mjs";
42
- import { addMonths as $1 } from "date-fns/addMonths";
43
- import { AdapterDateFns as G1 } from "@mui/x-date-pickers/AdapterDateFnsV3";
44
- import { DateCalendar as z1 } from "@mui/x-date-pickers/DateCalendar";
45
- import K1 from "@mui/material/FormControl";
46
- import Y1 from "@mui/material/InputLabel";
47
- import { LocalizationProvider as j1 } from "@mui/x-date-pickers-pro";
48
- import X1 from "@mui/material/MenuItem";
49
- import J1 from "@mui/material/Select";
50
- import q1 from "@mui/material/TextField";
41
+ import { addMonths as U1 } from "date-fns/addMonths";
42
+ import { AdapterDateFns as $1 } from "@mui/x-date-pickers/AdapterDateFnsV3";
43
+ import { DateCalendar as G1 } from "@mui/x-date-pickers/DateCalendar";
44
+ import z1 from "@mui/material/FormControl";
45
+ import K1 from "@mui/material/InputLabel";
46
+ import { LocalizationProvider as Y1 } from "@mui/x-date-pickers-pro";
47
+ import d1 from "@mui/material/MenuItem";
48
+ import j1 from "@mui/material/Select";
49
+ import X1 from "@mui/material/TextField";
51
50
  import { F as J } from "../Accounts-CseLC3lL.mjs";
52
- import { M as s2 } from "../Accounts-CseLC3lL.mjs";
53
- import { C as Q1 } from "../CurrencyInput-B59ugxPN.mjs";
54
- import e3 from "@mui/material/Alert";
55
- import t3 from "@mui/material/AlertTitle";
56
- import n3 from "@mui/material/Link";
57
- import o3 from "@mui/material/Paper";
58
- import { endOfToday as i3, subDays as c3, startOfToday as a3 } from "date-fns";
59
- import { T as s3 } from "../EmbeddedCard-BNl3quCs.mjs";
60
- import { T as l3 } from "../TransactionDetails-CbBSxdOi.mjs";
51
+ import { M as i2 } from "../Accounts-CseLC3lL.mjs";
52
+ import { C as J1 } from "../CurrencyInput-adTIRtL3.mjs";
53
+ import q1 from "@mui/material/Alert";
54
+ import Q1 from "@mui/material/AlertTitle";
55
+ import e3 from "@mui/material/Link";
56
+ import t3 from "@mui/material/Paper";
57
+ import { endOfToday as n3, subDays as o3, startOfToday as i3 } from "date-fns";
58
+ import { T as c3 } from "../EmbeddedCard-DPwJjqMH.mjs";
59
+ import { T as a3 } from "../TransactionDetails-C3dlAzYf.mjs";
61
60
  import { T as u1 } from "../TabContentContainer-CnMXkVqr.mjs";
62
- import { C as r3 } from "../ConnectionsDrawer-D7IXAza2.mjs";
63
- import { u as b1 } from "../useScreenSize-CeFhWTt_.mjs";
61
+ import { C as s3 } from "../ConnectionsDrawer-CtfPXk0M.mjs";
62
+ import { u as V1 } from "../useScreenSize-mWpmnh5w.mjs";
64
63
  import { u as o1 } from "../useWidgetLoadTimer-CJb-RELP.mjs";
65
64
  import { L as i1 } from "../Loader-CxeBwuPG.mjs";
66
- import { W as d3 } from "../WidgetContainer-CYcmwsSu.mjs";
67
- import { M as V1 } from "../MiniWidgetContainer-BdPiUU-u.mjs";
68
- const u3 = (t, o) => {
69
- const n = f1.includes(o) ? S1(t) : [], c = g1.includes(o) ? T1(t) : [], i = H1.includes(o) ? E1(t) : [];
65
+ import { W as l3 } from "../WidgetContainer-DNuz_s7W.mjs";
66
+ import { M as A1 } from "../MiniWidgetContainer-BdPiUU-u.mjs";
67
+ const r3 = (t, o) => {
68
+ const n = g1.includes(o) ? S1(t) : [], c = H1.includes(o) ? T1(t) : [], i = v1.includes(o) ? D1(t) : [];
70
69
  return [n, c, i].filter((l) => l.length > 0);
71
- }, C3 = (t, o, n) => {
70
+ }, d3 = (t, o, n) => {
72
71
  const [c, i] = t, l = c, d = i ?? c, a = [];
73
- if (l && d && f1.includes(o)) {
72
+ if (l && d && g1.includes(o)) {
74
73
  const r = l[l.length - 1].y;
75
74
  a.push({ label: n.income_label, amount: r });
76
- } else if (g1.includes(o)) {
75
+ } else if (H1.includes(o)) {
77
76
  const r = l[l.length - 1].y;
78
77
  a.push({ label: n.payments_label, amount: r });
79
78
  }
80
- if (d && H1.includes(o)) {
79
+ if (d && v1.includes(o)) {
81
80
  const r = d[d.length - 1].y;
82
81
  a.push({ label: n.spending_label, amount: r });
83
82
  }
84
83
  return a;
85
- }, h3 = () => {
86
- const t = y1(), { selectedAccount: o } = R(), { monthlyCategoryTotals: n } = D1(), { trends: c } = A(), i = [t.palette.chart?.chart1, t.palette.chart?.chart2], l = u3(n, o.account_type), d = C3(l, o.account_type, c), a = [I.LOAN, I.MORTGAGE].includes(o.account_type);
84
+ }, u3 = () => {
85
+ const t = p1(), { selectedAccount: o } = R(), { monthlyCategoryTotals: n } = E1(), { trends: c } = A(), i = [t.palette.chart?.chart1, t.palette.chart?.chart2], l = r3(n, o.account_type), d = d3(l, o.account_type, c), a = [I.LOAN, I.MORTGAGE].includes(o.account_type);
87
86
  return /* @__PURE__ */ e("div", { "data-testid": "TrendsChart", children: /* @__PURE__ */ e(
88
87
  R1,
89
88
  {
@@ -103,7 +102,7 @@ const u3 = (t, o) => {
103
102
  valueFormatterString: "0,0"
104
103
  }
105
104
  ) });
106
- }, m3 = V(h3), q = ({
105
+ }, C3 = V(u3), q = ({
107
106
  ariaPressed: t,
108
107
  children: o,
109
108
  isLast: n = !1,
@@ -111,7 +110,7 @@ const u3 = (t, o) => {
111
110
  primaryText: i,
112
111
  secondaryText: l
113
112
  }) => /* @__PURE__ */ e(
114
- E,
113
+ D,
115
114
  {
116
115
  sx: {
117
116
  backgroundColor: "background.paper",
@@ -131,17 +130,17 @@ const u3 = (t, o) => {
131
130
  o
132
131
  ] })
133
132
  }
134
- ), p3 = () => {
135
- const { accounts: t } = D(), { selectedAccount: o, selectedMember: n } = R();
133
+ ), h3 = () => {
134
+ const { accounts: t } = E(), { selectedAccount: o, selectedMember: n } = R();
136
135
  return t.filter(
137
136
  (c) => c.member_guid === n.guid && n.successfully_aggregated_at && c.guid !== o.guid
138
137
  );
139
- }, _3 = () => {
140
- const [t, o] = h.useState(!1), [n, c] = h.useState(!1), [i, l] = h.useState(!1), [d, a] = h.useState({}), { selectedAccount: r } = R(), { mergeAccounts: L, updateAccount: m } = D(), { accounts: s } = A(), _ = p3(), { onEvent: M } = k(), { modifyTransactionByAccountGuid: w } = p1(), y = async (u) => {
138
+ }, m3 = () => {
139
+ const [t, o] = h.useState(!1), [n, c] = h.useState(!1), [i, l] = h.useState(!1), [d, a] = h.useState({}), { selectedAccount: r } = R(), { mergeAccounts: L, updateAccount: m } = E(), { accounts: s } = A(), _ = h3(), { onEvent: y } = k(), { modifyTransactionByAccountGuid: x } = _1(), M = async (u) => {
141
140
  await m({
142
141
  ...r,
143
142
  ...u
144
- }), "is_closed" in u && u.is_closed !== r.is_closed && w(r.guid, { accountIsClosed: u.is_closed });
143
+ }), "is_closed" in u && u.is_closed !== r.is_closed && x(r.guid, { accountIsClosed: u.is_closed });
145
144
  }, p = () => {
146
145
  L([r.guid, d.guid]).finally(
147
146
  () => c(!1)
@@ -154,7 +153,7 @@ const u3 = (t, o) => {
154
153
  {
155
154
  ariaPressed: r.is_hidden,
156
155
  onClick: () => {
157
- y({ is_hidden: !r.is_hidden }), M(x.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: r.guid });
156
+ M({ is_hidden: !r.is_hidden }), y(w.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: r.guid });
158
157
  },
159
158
  primaryText: r.is_hidden ? s.unhide_account : s.hide_Account,
160
159
  secondaryText: r.is_hidden ? s.include_this_account : s.exclude_this_account,
@@ -165,7 +164,7 @@ const u3 = (t, o) => {
165
164
  q,
166
165
  {
167
166
  onClick: () => {
168
- o(!0), M(x.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
167
+ o(!0), y(w.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
169
168
  account_guid: r.guid
170
169
  });
171
170
  },
@@ -184,7 +183,7 @@ const u3 = (t, o) => {
184
183
  onClose: () => {
185
184
  o(!1);
186
185
  },
187
- onPrimaryAction: () => y({ is_closed: !r.is_closed }),
186
+ onPrimaryAction: () => M({ is_closed: !r.is_closed }),
188
187
  children: /* @__PURE__ */ e(v, { truncate: !1, children: H(
189
188
  r.is_closed ? s.this_will_resume_updating_the_balance : s.this_will_set_the_balance_of_your_account,
190
189
  r.name
@@ -199,7 +198,7 @@ const u3 = (t, o) => {
199
198
  {
200
199
  isLast: !0,
201
200
  onClick: () => {
202
- c(!0), M(x.ACCOUNT_DETAILS_CLICK_MARK_DUPLICATE, {
201
+ c(!0), y(w.ACCOUNT_DETAILS_CLICK_MARK_DUPLICATE, {
203
202
  account_guid: r.guid
204
203
  });
205
204
  },
@@ -267,7 +266,7 @@ const u3 = (t, o) => {
267
266
  }
268
267
  )
269
268
  ] });
270
- }, L3 = V(_3), A1 = (t, o) => {
269
+ }, p3 = V(m3), y1 = (t, o) => {
271
270
  const { connection_messages: n } = o;
272
271
  switch (t.connection_status) {
273
272
  case f.CHALLENGED:
@@ -404,11 +403,11 @@ const u3 = (t, o) => {
404
403
  };
405
404
  default: {
406
405
  const c = () => {
407
- const i = t.successfully_aggregated_at ? W1(t.successfully_aggregated_at) : void 0, l = i && r1(i, d1.TIME_STAMP_HOUR_MINUTE);
406
+ const i = t.successfully_aggregated_at ? P1(t.successfully_aggregated_at) : void 0, l = i && l1(i, r1.TIME_STAMP_HOUR_MINUTE);
408
407
  if (l)
409
- return B1(i) ? H(o.last_updated_at, o.today, l) : U1(i) ? H(o.last_updated_at, o.yesterday, l) : H(
408
+ return W1(i) ? H(o.last_updated_at, o.today, l) : B1(i) ? H(o.last_updated_at, o.yesterday, l) : H(
410
409
  o.last_updated_at,
411
- r1(i, d1.MONTH_DAY_YEAR),
410
+ l1(i, r1.MONTH_DAY_YEAR),
412
411
  l
413
412
  );
414
413
  };
@@ -425,25 +424,25 @@ const u3 = (t, o) => {
425
424
  gridRow: 1,
426
425
  gridColumn: 1,
427
426
  zIndex: 2
428
- }, f3 = () => {
427
+ }, _3 = () => {
429
428
  const [t, o] = h.useState(!1), {
430
429
  palette: { mode: n }
431
- } = O1(), { selectedMember: c } = R(), { accounts: i, connect: l } = A(), d = A1(c, l), a = L1.includes(c.connection_status) ? {
430
+ } = p1(), { selectedMember: c } = R(), { accounts: i, connect: l } = A(), d = y1(c, l), a = f1.includes(c.connection_status) ? {
432
431
  color: "error.main",
433
432
  ctaCopy: d.cta ?? "",
434
- icon: /* @__PURE__ */ e(v1, { filled: !0, sx: { ...Q } }),
433
+ icon: /* @__PURE__ */ e(b1, { filled: !0, sx: { ...Q } }),
435
434
  mainMessage: d.statusName,
436
435
  secondaryMessage: `${d.title}.`
437
436
  } : {
438
437
  color: "success.main",
439
- icon: /* @__PURE__ */ e(P1, { filled: !0, sx: { ...Q } }),
438
+ icon: /* @__PURE__ */ e(F1, { filled: !0, sx: { ...Q } }),
440
439
  mainMessage: d.statusName,
441
440
  secondaryMessage: d.title
442
441
  };
443
442
  return /* @__PURE__ */ C(S, { children: [
444
443
  /* @__PURE__ */ e(B, { sx: { mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(v, { bold: !0, component: "h2", variant: "caption", children: i.connection_status }) }),
445
444
  /* @__PURE__ */ e(
446
- E,
445
+ D,
447
446
  {
448
447
  sx: {
449
448
  backgroundColor: "background.paper",
@@ -479,7 +478,7 @@ const u3 = (t, o) => {
479
478
  }
480
479
  ),
481
480
  !c.is_manual && c.institution_url && /* @__PURE__ */ e(S, { children: /* @__PURE__ */ e(
482
- E,
481
+ D,
483
482
  {
484
483
  sx: {
485
484
  backgroundColor: "background.paper",
@@ -491,16 +490,16 @@ const u3 = (t, o) => {
491
490
  X,
492
491
  {
493
492
  backingSx: {
494
- backgroundColor: n === c1.LIGHT ? "grey.300" : "grey.700",
493
+ backgroundColor: n === "light" ? "grey.300" : "grey.700",
495
494
  borderRadius: 1
496
495
  },
497
496
  size: 32,
498
497
  children: /* @__PURE__ */ e(
499
- F1,
498
+ O1,
500
499
  {
501
500
  sx: {
502
501
  ...Q,
503
- color: n === c1.LIGHT ? "grey.900" : "common.white"
502
+ color: n === "light" ? "grey.900" : "common.white"
504
503
  }
505
504
  }
506
505
  )
@@ -521,35 +520,40 @@ const u3 = (t, o) => {
521
520
  }
522
521
  )
523
522
  ] });
524
- }, g3 = V(f3), H3 = ({ field: t, isOpen: o, onClose: n }) => {
525
- const { updateAccount: c } = D(), { selectedAccount: i } = R(), { accounts: l } = A(), [d, a] = h.useState(i[t.name]), [r, L] = h.useState(""), [m, s] = h.useState(!0), _ = () => {
523
+ }, L3 = V(_3), f3 = ({ field: t, isOpen: o, onClose: n }) => {
524
+ const { updateAccount: c } = E(), { selectedAccount: i } = R(), { accounts: l } = A(), [d, a] = h.useState(i[t.name]), [r, L] = h.useState(""), [m, s] = h.useState(!0), _ = () => {
526
525
  a(""), L(""), n();
527
- }, M = () => {
526
+ }, y = () => {
528
527
  switch (t.type) {
529
528
  case J.Select:
530
- return /* @__PURE__ */ C(K1, { fullWidth: !0, children: [
531
- /* @__PURE__ */ e(Y1, { id: `${t.label}-select-label`, children: t.label }),
532
- /* @__PURE__ */ e(
533
- J1,
529
+ return /* @__PURE__ */ C(z1, { fullWidth: !0, children: [
530
+ /* @__PURE__ */ e(K1, { id: `${t.label}-select-label`, children: t.label }),
531
+ /* @__PURE__ */ C(
532
+ j1,
534
533
  {
534
+ displayEmpty: !0,
535
535
  id: `${t.label}-select`,
536
- inputProps: {
537
- sx: {
538
- backgroundColor: "background.paper"
539
- }
540
- },
541
536
  label: t.label,
542
537
  labelId: `${t.label}-select-label`,
543
538
  onChange: (p) => a(p.target.value),
544
- placeholder: t.placeholder,
539
+ slotProps: {
540
+ input: {
541
+ sx: {
542
+ backgroundColor: "background.paper"
543
+ }
544
+ }
545
+ },
545
546
  value: d,
546
- children: t.options?.map((p) => /* @__PURE__ */ e(X1, { value: p.value, children: p.label }, p.value))
547
+ children: [
548
+ !d && /* @__PURE__ */ e(d1, { disabled: !0, value: "", children: t.placeholder }),
549
+ t.options?.map((p) => /* @__PURE__ */ e(d1, { value: p.value, children: p.label }, p.value))
550
+ ]
547
551
  }
548
552
  )
549
553
  ] });
550
554
  case J.Currency:
551
555
  return /* @__PURE__ */ e(
552
- Q1,
556
+ J1,
553
557
  {
554
558
  amount: d || "",
555
559
  ariaLabel: t.placeholder,
@@ -561,10 +565,10 @@ const u3 = (t, o) => {
561
565
  }
562
566
  );
563
567
  case J.Date:
564
- return /* @__PURE__ */ e(j1, { dateAdapter: G1, children: /* @__PURE__ */ e(
565
- z1,
568
+ return /* @__PURE__ */ e(Y1, { dateAdapter: $1, children: /* @__PURE__ */ e(
569
+ G1,
566
570
  {
567
- maxDate: $1(/* @__PURE__ */ new Date(), 1),
571
+ maxDate: U1(/* @__PURE__ */ new Date(), 1),
568
572
  minDate: /* @__PURE__ */ new Date(),
569
573
  onChange: (p) => {
570
574
  i[t.name] && Number(i[t.name]) <= 31 ? a(p.getDate()) : a(p);
@@ -576,7 +580,7 @@ const u3 = (t, o) => {
576
580
  "& .MuiPickersArrowSwitcher-button": {
577
581
  color: "primary.lighter",
578
582
  "&:hover": {
579
- backgroundColor: (p) => w1(p.palette.primary.light, 0.1)
583
+ backgroundColor: (p) => x1(p.palette.primary.light, 0.1)
580
584
  }
581
585
  }
582
586
  },
@@ -585,26 +589,28 @@ const u3 = (t, o) => {
585
589
  ) });
586
590
  default:
587
591
  return /* @__PURE__ */ e(
588
- q1,
592
+ X1,
589
593
  {
590
594
  defaultValue: i[t.name],
591
595
  error: !!r,
592
596
  fullWidth: !0,
593
597
  helperText: r,
594
- inputProps: {
595
- "aria-label": t.placeholder
596
- },
597
- onChange: y,
598
- placeholder: t.placeholder
598
+ onChange: M,
599
+ placeholder: t.placeholder,
600
+ slotProps: {
601
+ htmlInput: {
602
+ "aria-label": t.placeholder
603
+ }
604
+ }
599
605
  }
600
606
  );
601
607
  }
602
- }, w = () => {
608
+ }, x = () => {
603
609
  i[t.name] !== d && c({
604
610
  ...i,
605
611
  [t.name]: d
606
612
  }), _();
607
- }, y = (p) => {
613
+ }, M = (p) => {
608
614
  a(p.target.value), t.validation && L(t.validation(p.target.value));
609
615
  };
610
616
  return /* @__PURE__ */ e(
@@ -617,7 +623,7 @@ const u3 = (t, o) => {
617
623
  disablePrimaryButton: !!r || !m,
618
624
  isOpen: o,
619
625
  onClose: _,
620
- onPrimaryAction: w,
626
+ onPrimaryAction: x,
621
627
  primaryText: l.save,
622
628
  sx: {
623
629
  "& .MuiButton-root:focus-visible, & .MuiButton-root:focus": {
@@ -626,16 +632,16 @@ const u3 = (t, o) => {
626
632
  outlineOffset: "2px"
627
633
  }
628
634
  },
629
- children: M()
635
+ children: y()
630
636
  }
631
637
  );
632
- }, v3 = V(H3), b3 = () => {
638
+ }, g3 = V(f3), H3 = () => {
633
639
  const t = window.app?.config, { onEvent: o } = k(), { selectedAccount: n } = R(), { accounts: c } = A(), i = k1(n, c), l = n.member_is_managed_by_user || !n.member_is_managed_by_user && t.enable_renaming_home_accounts, [d, a] = h.useState(!1), [r, L] = h.useState(i[0]), m = i.filter(
634
640
  (s) => l || n[s.name] || n[s.name] === 0
635
641
  );
636
642
  return /* @__PURE__ */ C(S, { children: [
637
643
  m.map((s) => {
638
- const _ = n[s.name] || n[s.name] === 0, M = m.indexOf(s) === m.length - 1, w = /* @__PURE__ */ e(
644
+ const _ = n[s.name] || n[s.name] === 0, y = m.indexOf(s) === m.length - 1, x = /* @__PURE__ */ e(
639
645
  Z,
640
646
  {
641
647
  disableTypography: !0,
@@ -644,7 +650,7 @@ const u3 = (t, o) => {
644
650
  }
645
651
  );
646
652
  return /* @__PURE__ */ e(h.Fragment, { children: l ? /* @__PURE__ */ e(
647
- E,
653
+ D,
648
654
  {
649
655
  sx: {
650
656
  backgroundColor: "background.paper",
@@ -655,7 +661,7 @@ const u3 = (t, o) => {
655
661
  position: "absolute",
656
662
  bottom: 0,
657
663
  right: 0,
658
- left: M ? 0 : 24,
664
+ left: y ? 0 : 24,
659
665
  borderBottom: "1px solid",
660
666
  borderColor: "divider"
661
667
  }
@@ -667,14 +673,14 @@ const u3 = (t, o) => {
667
673
  L(s), a(!0), s?.event && o(s.event, { account_guid: n.guid });
668
674
  },
669
675
  children: [
670
- w,
676
+ x,
671
677
  /* @__PURE__ */ e(N, { name: "chevron_right" })
672
678
  ]
673
679
  }
674
680
  )
675
681
  }
676
682
  ) : _ && /* @__PURE__ */ e(
677
- E,
683
+ D,
678
684
  {
679
685
  sx: {
680
686
  backgroundColor: "background.paper",
@@ -685,17 +691,17 @@ const u3 = (t, o) => {
685
691
  position: "absolute",
686
692
  bottom: 0,
687
693
  right: 0,
688
- left: M ? 0 : 24,
694
+ left: y ? 0 : 24,
689
695
  borderBottom: "1px solid",
690
696
  borderColor: "divider"
691
697
  }
692
698
  },
693
- children: w
699
+ children: x
694
700
  }
695
701
  ) }, s.name);
696
702
  }),
697
703
  d && r && /* @__PURE__ */ e(
698
- v3,
704
+ g3,
699
705
  {
700
706
  field: r,
701
707
  isOpen: d,
@@ -703,22 +709,22 @@ const u3 = (t, o) => {
703
709
  }
704
710
  )
705
711
  ] });
706
- }, V3 = V(b3), A3 = () => {
712
+ }, v3 = V(H3), b3 = () => {
707
713
  const { onEvent: t } = k();
708
- return h.useEffect(() => t(x.ACCOUNT_DETAILS_VIEW), []), /* @__PURE__ */ C(O, { children: [
709
- /* @__PURE__ */ e(V3, {}),
710
- /* @__PURE__ */ e(g3, {}),
711
- /* @__PURE__ */ e(L3, {})
714
+ return h.useEffect(() => t(w.ACCOUNT_DETAILS_VIEW), []), /* @__PURE__ */ C(O, { children: [
715
+ /* @__PURE__ */ e(v3, {}),
716
+ /* @__PURE__ */ e(L3, {}),
717
+ /* @__PURE__ */ e(p3, {})
712
718
  ] });
713
- }, M3 = V(A3), y3 = ({ setTabValue: t }) => {
714
- const [o, n] = h.useState(!1), { selectedMember: c } = R(), { accounts: i, connect: l } = A(), d = c.connection_status && L1.includes(c.connection_status);
719
+ }, V3 = V(b3), A3 = ({ setTabValue: t }) => {
720
+ const [o, n] = h.useState(!1), { selectedMember: c } = R(), { accounts: i, connect: l } = A(), d = c.connection_status && f1.includes(c.connection_status);
715
721
  if (h.useEffect(() => {
716
722
  d && t(1);
717
723
  }, [d]), !d) return;
718
- const a = A1(c, l);
724
+ const a = y1(c, l);
719
725
  return /* @__PURE__ */ C(S, { children: [
720
726
  /* @__PURE__ */ e(
721
- o3,
727
+ t3,
722
728
  {
723
729
  sx: {
724
730
  mb: 16,
@@ -726,9 +732,9 @@ const u3 = (t, o) => {
726
732
  mx: 24
727
733
  },
728
734
  children: /* @__PURE__ */ C(
729
- e3,
735
+ q1,
730
736
  {
731
- icon: /* @__PURE__ */ e(v1, { filled: !0 }),
737
+ icon: /* @__PURE__ */ e(b1, { filled: !0 }),
732
738
  role: "none",
733
739
  severity: "error",
734
740
  sx: {
@@ -742,10 +748,10 @@ const u3 = (t, o) => {
742
748
  }
743
749
  },
744
750
  children: [
745
- a.title && /* @__PURE__ */ e(t3, { sx: { fontWeight: 600, marginTop: 2 }, variant: "body1", children: a.title }),
746
- /* @__PURE__ */ e(v, { component: "p", sx: { whiteSpace: "wrap" }, variant: "subtitle2", children: a.main }),
751
+ a.title && /* @__PURE__ */ e(Q1, { sx: { fontWeight: 600, marginTop: 2 }, variant: "body1", children: a.title }),
752
+ /* @__PURE__ */ e(v, { component: "p", variant: "subtitle2", children: a.main }),
747
753
  a.cta && /* @__PURE__ */ e(
748
- n3,
754
+ e3,
749
755
  {
750
756
  onClick: () => n(!0),
751
757
  sx: { fontSize: 15, fontWeight: 600, ml: 0 },
@@ -767,8 +773,8 @@ const u3 = (t, o) => {
767
773
  }
768
774
  )
769
775
  ] });
770
- }, w3 = V(y3), x3 = () => {
771
- const [t, o] = h.useState(""), { onEvent: n } = k(), { selectedAccount: c } = R(), { accounts: i } = A(), { isTransactionDataLoaded: l, loadTransactionData: d, setFilter: a, sortedTransactions: r } = p1();
776
+ }, y3 = V(A3), M3 = () => {
777
+ const [t, o] = h.useState(""), { onEvent: n } = k(), { selectedAccount: c } = R(), { accounts: i } = A(), { isTransactionDataLoaded: l, loadTransactionData: d, setFilter: a, sortedTransactions: r } = _1();
772
778
  h.useEffect(() => {
773
779
  l || d().finally();
774
780
  }, []);
@@ -778,11 +784,11 @@ const u3 = (t, o) => {
778
784
  );
779
785
  return h.useEffect(() => {
780
786
  a({
781
- dateRange: { start: c3(a3(), 90), end: i3() },
787
+ dateRange: { start: o3(i3(), 90), end: n3() },
782
788
  accounts: [c.guid]
783
789
  });
784
- }, [c]), h.useEffect(() => n(x.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ C(S, { children: [
785
- /* @__PURE__ */ e(s3, { onClick: o }),
790
+ }, [c]), h.useEffect(() => n(w.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ C(S, { children: [
791
+ /* @__PURE__ */ e(c3, { onClick: o }),
786
792
  L && /* @__PURE__ */ e(
787
793
  n1,
788
794
  {
@@ -790,14 +796,14 @@ const u3 = (t, o) => {
790
796
  isOpen: !!t,
791
797
  onClose: () => o(""),
792
798
  title: i.transaction_drawer_title,
793
- children: /* @__PURE__ */ e(l3, { transaction: L })
799
+ children: /* @__PURE__ */ e(a3, { transaction: L })
794
800
  }
795
801
  )
796
802
  ] });
797
- }, R3 = V(x3), S3 = () => {
803
+ }, x3 = V(M3), w3 = () => {
798
804
  const [t, o] = h.useState(0), { accounts: n } = A();
799
805
  return /* @__PURE__ */ C(S, { children: [
800
- /* @__PURE__ */ e(w3, { setTabValue: o }),
806
+ /* @__PURE__ */ e(y3, { setTabValue: o }),
801
807
  /* @__PURE__ */ C(
802
808
  Z1,
803
809
  {
@@ -809,7 +815,7 @@ const u3 = (t, o) => {
809
815
  variant: "fullWidth",
810
816
  children: [
811
817
  /* @__PURE__ */ e(
812
- l1,
818
+ s1,
813
819
  {
814
820
  "aria-controls": "transaction-details-tabpanel-0",
815
821
  id: "transaction-details-tab-0",
@@ -817,7 +823,7 @@ const u3 = (t, o) => {
817
823
  }
818
824
  ),
819
825
  /* @__PURE__ */ e(
820
- l1,
826
+ s1,
821
827
  {
822
828
  "aria-controls": "account-details-tabpanel-1",
823
829
  id: "account-details-tab-1",
@@ -827,20 +833,20 @@ const u3 = (t, o) => {
827
833
  ]
828
834
  }
829
835
  ),
830
- /* @__PURE__ */ e(u1, { index: 0, name: "transaction-details", value: t, children: /* @__PURE__ */ e(R3, {}) }),
831
- /* @__PURE__ */ e(u1, { index: 1, name: "account-details", value: t, children: /* @__PURE__ */ e(M3, {}) })
836
+ /* @__PURE__ */ e(u1, { index: 0, name: "transaction-details", value: t, children: /* @__PURE__ */ e(x3, {}) }),
837
+ /* @__PURE__ */ e(u1, { index: 1, name: "account-details", value: t, children: /* @__PURE__ */ e(V3, {}) })
832
838
  ] });
833
- }, T3 = V(S3), E3 = () => {
834
- const [t, o] = h.useState(""), { config: n } = _1(), { accounts: c } = A(), { allSelectedAccounts: i } = G(), { setSelectedAccount: l, setSelectedMember: d } = R(), { members: a } = D(), { onEvent: r } = k(), L = [...new Set(i.map((u) => u.account_type))], m = i.find((u) => t === u.guid), s = h.useMemo(
839
+ }, R3 = V(w3), S3 = () => {
840
+ const [t, o] = h.useState(""), { config: n } = L1(), { accounts: c } = A(), { allSelectedAccounts: i } = G(), { setSelectedAccount: l, setSelectedMember: d } = R(), { members: a } = E(), { onEvent: r } = k(), L = [...new Set(i.map((u) => u.account_type))], m = i.find((u) => t === u.guid), s = h.useMemo(
835
841
  () => i.filter((u) => u.is_hidden),
836
842
  [i]
837
843
  ), _ = h.useMemo(
838
844
  () => i.filter((u) => u.is_closed),
839
845
  [i]
840
- ), M = s.reduce(
846
+ ), y = s.reduce(
841
847
  (u, g) => (g.available_balance || g.balance || 0) + u,
842
848
  0
843
- ), w = I1(
849
+ ), x = I1(
844
850
  _,
845
851
  c,
846
852
  n.display_available_balance_in_accounts
@@ -852,14 +858,14 @@ const u3 = (t, o) => {
852
858
  u && d(u);
853
859
  }
854
860
  }, [m, t]);
855
- const y = (u) => {
856
- o(u.guid), r(x.ACCOUNTS_CLICK_ACCOUNT, {
861
+ const M = (u) => {
862
+ o(u.guid), r(w.ACCOUNTS_CLICK_ACCOUNT, {
857
863
  account_guid: u.guid,
858
864
  account_type: u.account_type
859
865
  });
860
866
  }, p = (u) => {
861
- const g = u === "hidden" ? s : _, K = u === "hidden" ? M : w, b = u === "hidden" ? c.account_hidden : c.account_closed;
862
- return /* @__PURE__ */ e(a1, { children: /* @__PURE__ */ e(
867
+ const g = u === "hidden" ? s : _, K = u === "hidden" ? y : x, b = u === "hidden" ? c.account_hidden : c.account_closed;
868
+ return /* @__PURE__ */ e(c1, { children: /* @__PURE__ */ e(
863
869
  O,
864
870
  {
865
871
  "aria-label": b,
@@ -871,7 +877,7 @@ const u3 = (t, o) => {
871
877
  sx: { justifyContent: "space-between", color: "grey.700" },
872
878
  children: [
873
879
  /* @__PURE__ */ e(v, { bold: !0, variant: "body1", children: b }),
874
- /* @__PURE__ */ e(v, { bold: !0, variant: "body1", children: s1(K, "0,0.00") })
880
+ /* @__PURE__ */ e(v, { bold: !0, variant: "body1", children: a1(K, "0,0.00") })
875
881
  ]
876
882
  }
877
883
  ) }),
@@ -882,7 +888,7 @@ const u3 = (t, o) => {
882
888
  U,
883
889
  {
884
890
  account: T,
885
- onRowClick: () => y(T),
891
+ onRowClick: () => M(T),
886
892
  shouldShowConnectionStatus: !0
887
893
  }
888
894
  ),
@@ -908,7 +914,7 @@ const u3 = (t, o) => {
908
914
  }
909
915
  ) });
910
916
  };
911
- return /* @__PURE__ */ C(a1, { children: [
917
+ return /* @__PURE__ */ C(c1, { children: [
912
918
  L.map((u) => {
913
919
  const g = i.filter(
914
920
  (b) => b.account_type === u && !b.is_closed && !b.is_hidden
@@ -928,7 +934,7 @@ const u3 = (t, o) => {
928
934
  sx: { display: "flex", justifyContent: "space-between" },
929
935
  children: [
930
936
  /* @__PURE__ */ e(v, { bold: !0, variant: "body1", children: c.account_types[u] }),
931
- /* @__PURE__ */ e(v, { bold: !0, variant: "body1", children: s1(K, "0,0.00") })
937
+ /* @__PURE__ */ e(v, { bold: !0, variant: "body1", children: a1(K, "0,0.00") })
932
938
  ]
933
939
  }
934
940
  ) }),
@@ -939,7 +945,7 @@ const u3 = (t, o) => {
939
945
  U,
940
946
  {
941
947
  account: b,
942
- onRowClick: () => y(b),
948
+ onRowClick: () => M(b),
943
949
  shouldShowConnectionStatus: !0
944
950
  }
945
951
  ),
@@ -968,14 +974,14 @@ const u3 = (t, o) => {
968
974
  onClose: () => o(""),
969
975
  title: c.account_details,
970
976
  children: [
971
- /* @__PURE__ */ e(x1, { ChartComponent: m3 }),
972
- /* @__PURE__ */ e(T3, {})
977
+ /* @__PURE__ */ e(w1, { ChartComponent: C3 }),
978
+ /* @__PURE__ */ e(R3, {})
973
979
  ]
974
980
  }
975
981
  )
976
982
  ] });
977
- }, D3 = V(E3), k3 = ({ onBackClick: t, onMenuClick: o, sx: n = {} }) => {
978
- const [c, i] = h.useState(!1), [l, d] = h.useState(!1), { config: a } = _1(), { isAccountDataLoaded: r, loadAccountData: L } = D(), { accounts: m, connect: s } = A(), { isInitialized: _, selectedAccountGuids: M } = G(), { isDesktop: w } = b1(), { onEvent: y } = k();
983
+ }, T3 = V(S3), D3 = ({ onBackClick: t, onMenuClick: o, sx: n = {} }) => {
984
+ const [c, i] = h.useState(!1), [l, d] = h.useState(!1), { config: a } = L1(), { isAccountDataLoaded: r, loadAccountData: L } = E(), { accounts: m, connect: s } = A(), { isInitialized: _, selectedAccountGuids: y } = G(), { isDesktop: x } = V1(), { onEvent: M } = k();
979
985
  o1({
980
986
  widgetName: "AccountsWidget",
981
987
  isLoaded: r
@@ -983,12 +989,12 @@ const u3 = (t, o) => {
983
989
  r || L().finally();
984
990
  }, []);
985
991
  const p = () => {
986
- i(!0), y(x.ACCOUNTS_CLICK_CONNECT);
992
+ i(!0), M(w.ACCOUNTS_CLICK_CONNECT);
987
993
  }, u = () => {
988
- d(!0), y(x.ACCOUNTS_CLICK_CONNECT);
994
+ d(!0), M(w.ACCOUNTS_CLICK_CONNECT);
989
995
  };
990
996
  return _ ? /* @__PURE__ */ C(
991
- d3,
997
+ l3,
992
998
  {
993
999
  actions: a.show_connections_widget_in_master ? [
994
1000
  { iconName: "add", label: m.add, onClick: p },
@@ -999,16 +1005,16 @@ const u3 = (t, o) => {
999
1005
  }
1000
1006
  ] : [],
1001
1007
  hasDivider: !0,
1002
- onAccountsFilterClick: () => y(x.ACCOUNTS_CLICK_FILTER),
1008
+ onAccountsFilterClick: () => M(w.ACCOUNTS_CLICK_FILTER),
1003
1009
  onBackClick: t,
1004
1010
  onMenuClick: o,
1005
1011
  sx: n,
1006
1012
  title: m.title,
1007
1013
  children: [
1008
1014
  r ? /* @__PURE__ */ C(t1, { children: [
1009
- M.length < 1 && /* @__PURE__ */ e(v, { display: "flex", justifyContent: "center", my: 24, children: m.no_accounts }),
1010
- /* @__PURE__ */ e(D3, {})
1011
- ] }) : /* @__PURE__ */ e(m1, { sx: { px: w ? 48 : 24, pt: 24 }, variant: "list" }),
1015
+ y.length < 1 && /* @__PURE__ */ e(v, { display: "flex", justifyContent: "center", my: 24, children: m.no_accounts }),
1016
+ /* @__PURE__ */ e(T3, {})
1017
+ ] }) : /* @__PURE__ */ e(m1, { sx: { px: x ? 48 : 24, pt: 24 }, variant: "list" }),
1012
1018
  /* @__PURE__ */ e(
1013
1019
  z,
1014
1020
  {
@@ -1018,7 +1024,7 @@ const u3 = (t, o) => {
1018
1024
  }
1019
1025
  ),
1020
1026
  /* @__PURE__ */ e(
1021
- r3,
1027
+ s3,
1022
1028
  {
1023
1029
  onClose: () => d(!1),
1024
1030
  showConnectionsWidget: l,
@@ -1028,8 +1034,8 @@ const u3 = (t, o) => {
1028
1034
  ]
1029
1035
  }
1030
1036
  ) : /* @__PURE__ */ e(i1, {});
1031
- }, e2 = V(k3);
1032
- function I3(t) {
1037
+ }, J4 = V(D3);
1038
+ function E3(t) {
1033
1039
  const { heldAccounts: o, externalAccounts: n } = t.reduce(
1034
1040
  (c, i) => (i.member_is_managed_by_user ? c.externalAccounts.push(i) : c.heldAccounts.push(i), c),
1035
1041
  { heldAccounts: [], externalAccounts: [] }
@@ -1039,21 +1045,21 @@ function I3(t) {
1039
1045
  externalAccounts: h1(n)
1040
1046
  };
1041
1047
  }
1042
- function Z3(t, o) {
1043
- const { heldAccounts: n, externalAccounts: c } = I3(t), i = n.slice(0, o);
1048
+ function k3(t, o) {
1049
+ const { heldAccounts: n, externalAccounts: c } = E3(t), i = n.slice(0, o);
1044
1050
  return i.length < o && i.push(...c.slice(0, o - i.length)), i;
1045
1051
  }
1046
- const N3 = {
1052
+ const I3 = {
1047
1053
  [I.CHECKING]: 1,
1048
1054
  [I.SAVINGS]: 2,
1049
1055
  [I.CREDIT_CARD]: 3
1050
- }, C1 = (t) => N3[t] ?? t + 100, h1 = (t) => t.sort((o, n) => {
1056
+ }, C1 = (t) => I3[t] ?? t + 100, h1 = (t) => t.sort((o, n) => {
1051
1057
  const c = C1(o.account_type), i = C1(n.account_type), l = c - i;
1052
1058
  if (l !== 0) return l;
1053
1059
  const d = o.name ?? o.feed_name ?? "", a = n.name ?? n.feed_name ?? "";
1054
1060
  return d.localeCompare(a);
1055
- }), O3 = ({ onPrimaryCtaClick: t, sx: o }) => {
1056
- const { isAccountDataLoaded: n, loadAccountData: c } = D(), { accounts: i } = A(), { isInitialized: l, selectedAccounts: d } = G(), { isDesktop: a } = b1();
1061
+ }), Z3 = ({ onPrimaryCtaClick: t, sx: o }) => {
1062
+ const { isAccountDataLoaded: n, loadAccountData: c } = E(), { accounts: i } = A(), { isInitialized: l, selectedAccounts: d } = G(), { isDesktop: a } = V1();
1057
1063
  o1({
1058
1064
  widgetName: "AccountsMiniWidget",
1059
1065
  isLoaded: l
@@ -1061,11 +1067,11 @@ const N3 = {
1061
1067
  n || c().finally();
1062
1068
  }, []);
1063
1069
  const r = h.useMemo(
1064
- () => Z3(d, a ? 5 : 3),
1070
+ () => k3(d, a ? 5 : 3),
1065
1071
  [d, a]
1066
1072
  );
1067
1073
  return l ? /* @__PURE__ */ e(
1068
- V1,
1074
+ A1,
1069
1075
  {
1070
1076
  className: "mx-exp-accounts-miniwidget",
1071
1077
  onPrimaryCtaClick: t,
@@ -1073,7 +1079,7 @@ const N3 = {
1073
1079
  sx: o,
1074
1080
  title: i.mini_title,
1075
1081
  children: n ? /* @__PURE__ */ C(O, { children: [
1076
- d.length === 0 && /* @__PURE__ */ e(E, { sx: { justifyContent: "center" }, children: i.no_accounts }),
1082
+ d.length === 0 && /* @__PURE__ */ e(D, { sx: { justifyContent: "center" }, children: i.no_accounts }),
1077
1083
  r.map((L, m) => {
1078
1084
  const s = r.indexOf(L) === r.length - 1;
1079
1085
  return /* @__PURE__ */ C(h.Fragment, { children: [
@@ -1091,7 +1097,7 @@ const N3 = {
1091
1097
  ] }) : /* @__PURE__ */ e(m1, { sx: { px: 12, py: 8 }, variant: "list" })
1092
1098
  }
1093
1099
  ) : /* @__PURE__ */ e(i1, {});
1094
- }, t2 = V(O3), F3 = () => /* @__PURE__ */ C(
1100
+ }, q4 = V(Z3), N3 = () => /* @__PURE__ */ C(
1095
1101
  "svg",
1096
1102
  {
1097
1103
  fill: "none",
@@ -1530,15 +1536,14 @@ const N3 = {
1530
1536
  )
1531
1537
  ]
1532
1538
  }
1533
- ), P3 = () => {
1539
+ ), O3 = () => {
1534
1540
  const { connect: t } = A();
1535
1541
  return /* @__PURE__ */ C(t1, { alignItems: "center", direction: "column", m: 24, children: [
1536
- /* @__PURE__ */ e(F3, {}),
1542
+ /* @__PURE__ */ e(N3, {}),
1537
1543
  /* @__PURE__ */ e(
1538
1544
  v,
1539
1545
  {
1540
1546
  sx: {
1541
- whiteSpace: "wrap",
1542
1547
  mt: 16,
1543
1548
  textAlign: "center"
1544
1549
  },
@@ -1547,7 +1552,7 @@ const N3 = {
1547
1552
  }
1548
1553
  )
1549
1554
  ] });
1550
- }, W3 = V(P3), B3 = ({
1555
+ }, F3 = V(O3), P3 = ({
1551
1556
  onPrimaryCtaClick: t = () => {
1552
1557
  },
1553
1558
  sx: o
@@ -1559,7 +1564,7 @@ const N3 = {
1559
1564
  widgetName: "ConnectMiniWidget",
1560
1565
  isLoaded: n
1561
1566
  }), n ? /* @__PURE__ */ C(
1562
- V1,
1567
+ A1,
1563
1568
  {
1564
1569
  className: "mx-exp-connect-miniwidget",
1565
1570
  onPrimaryCtaClick: d,
@@ -1567,7 +1572,7 @@ const N3 = {
1567
1572
  sx: o,
1568
1573
  title: c.mini_title,
1569
1574
  children: [
1570
- /* @__PURE__ */ e(W3, {}),
1575
+ /* @__PURE__ */ e(F3, {}),
1571
1576
  i && /* @__PURE__ */ e(
1572
1577
  z,
1573
1578
  {
@@ -1579,17 +1584,17 @@ const N3 = {
1579
1584
  ]
1580
1585
  }
1581
1586
  ) : /* @__PURE__ */ e(i1, {});
1582
- }, n2 = V(B3);
1587
+ }, Q4 = V(P3);
1583
1588
  export {
1584
- T3 as AccountDetailsContent,
1585
- x1 as AccountDetailsHeader,
1586
- t2 as AccountsMiniWidget,
1587
- e2 as AccountsWidget,
1588
- n2 as ConnectMiniWidget,
1589
+ R3 as AccountDetailsContent,
1590
+ w1 as AccountDetailsHeader,
1591
+ q4 as AccountsMiniWidget,
1592
+ J4 as AccountsWidget,
1593
+ Q4 as ConnectMiniWidget,
1589
1594
  J as FieldType,
1590
- s2 as MemberConnectionStatus,
1591
- c2 as getAccountBalanceDetails,
1595
+ i2 as MemberConnectionStatus,
1596
+ n2 as getAccountBalanceDetails,
1592
1597
  k1 as getAccountDetailFields,
1593
1598
  R as useAccountUiStore,
1594
- p3 as useGetMergeableAccounts
1599
+ h3 as useGetMergeableAccounts
1595
1600
  };