@mx-cartographer/experiences 7.0.44 → 7.0.46

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 (48) hide show
  1. package/CHANGELOG.md +9 -1
  2. package/dist/{Account-DNtjr75t.mjs → Account-tfHe44mM.mjs} +1 -1
  3. package/dist/{AccountDetailsContent-eODMVIVq.mjs → AccountDetailsContent-j_fz0aRX.mjs} +6 -6
  4. package/dist/{AccountDetailsHeader-C0qgTju7.mjs → AccountDetailsHeader-eh13XhXN.mjs} +4 -4
  5. package/dist/{AccountFields-DDHk35Ou.mjs → AccountFields-pka2XWfO.mjs} +2 -2
  6. package/dist/{AccountListItem-BxmUd4j3.mjs → AccountListItem-C7NVvdVt.mjs} +3 -3
  7. package/dist/{AccountStore-CpjCeykS.mjs → AccountStore-XZqHTKm3.mjs} +2 -2
  8. package/dist/{Accounts-nXcS0QUR.mjs → Accounts-Bu-b-Wc_.mjs} +1 -1
  9. package/dist/ConnectDrawer-SHjB2fpB.mjs +546 -0
  10. package/dist/{ConnectionsDrawer-Bf2DNDCF.mjs → ConnectionsDrawer-BprLSCBH.mjs} +1 -1
  11. package/dist/{DebtsStore-Dy3YG1fX.mjs → DebtsStore-nxnF_bZi.mjs} +1 -1
  12. package/dist/{ExportCsvAction-CebIvl-V.mjs → ExportCsvAction-CBJAfyAw.mjs} +2 -2
  13. package/dist/{GoalStore-voP4QA5C.mjs → GoalStore-8dI95nSW.mjs} +2 -2
  14. package/dist/{ManageIncome-kMsgLN3T.mjs → ManageIncome-B1JxKBDO.mjs} +4 -4
  15. package/dist/{NetWorthStore-C5RMjsMS.mjs → NetWorthStore-cweTamnD.mjs} +2 -2
  16. package/dist/{NotificationSettings-BCtanw2c.mjs → NotificationSettings-C215AwS0.mjs} +1 -1
  17. package/dist/{RecurringSettings-CETLT79T.mjs → RecurringSettings-BzkGK0YX.mjs} +3 -3
  18. package/dist/{RecurringTransactionsStore-DeLXfuC4.mjs → RecurringTransactionsStore-Djo9IeDd.mjs} +1 -1
  19. package/dist/{SettingsStore-Dc34Tzx8.mjs → SettingsStore-BcgS_Ohv.mjs} +1 -1
  20. package/dist/{TransactionDetails-B-rdHE3_.mjs → TransactionDetails-DESqmjVR.mjs} +2 -2
  21. package/dist/{TransactionStore-CfQBEIsK.mjs → TransactionStore-B-Tq_YFE.mjs} +2 -2
  22. package/dist/{User-8itAR7lR.mjs → User-DaJAQ09j.mjs} +20 -21
  23. package/dist/{WidgetContainer-p7NIdiNJ.mjs → WidgetContainer-C_JdLQij.mjs} +1 -1
  24. package/dist/accounts/index.es.js +128 -123
  25. package/dist/budgets/index.es.js +5 -5
  26. package/dist/cashflow/index.es.js +6 -6
  27. package/dist/common/index.es.js +60 -58
  28. package/dist/common/types/AppData.d.ts +2 -0
  29. package/dist/common/utils/AccountFilter.d.ts +5 -0
  30. package/dist/dashboard/index.es.js +1 -1
  31. package/dist/debts/index.es.js +5 -5
  32. package/dist/{exportTransactionsToCSV-CfylirZA.mjs → exportTransactionsToCSV-D8TTNrrE.mjs} +1 -1
  33. package/dist/finstrong/index.es.js +4 -4
  34. package/dist/goals/index.es.js +7 -7
  35. package/dist/help/index.es.js +1 -1
  36. package/dist/investments/index.es.js +2 -2
  37. package/dist/networth/index.es.js +4 -4
  38. package/dist/notifications/index.es.js +2 -2
  39. package/dist/recurringtransactions/index.es.js +8 -8
  40. package/dist/settings/index.es.js +4 -4
  41. package/dist/spending/index.es.js +2 -2
  42. package/dist/transactions/index.es.js +10 -10
  43. package/dist/trends/index.es.js +4 -4
  44. package/dist/{useAccountDisplayName-DC1Lqjag.mjs → useAccountDisplayName-Dwa7UkEU.mjs} +1 -1
  45. package/package.json +1 -1
  46. package/dist/ConnectDrawer-YIWwEzuN.mjs +0 -521
  47. package/dist/{RepeatingTransaction-BW4J-jeJ.mjs → RecurringTransactions-DTUx9VN1.mjs} +1 -1
  48. package/dist/{Notification-aGCHxikw.mjs → ToggleListItem-r0Kx56wF.mjs} +1 -1
@@ -7,10 +7,10 @@ import b from "@mui/material/Tabs";
7
7
  import p from "@mui/material/Divider";
8
8
  import R from "@mui/material/List";
9
9
  import T from "@mui/material/Stack";
10
- import { R as C, A as S, a as E, M as v } from "./ManageIncome-kMsgLN3T.mjs";
10
+ import { R as C, A as S, a as E, M as v } from "./ManageIncome-B1JxKBDO.mjs";
11
11
  import { u as h, j as A, g as _ } from "./hooks-CE2TKk4a.mjs";
12
- import { R as y, F as N } from "./RepeatingTransaction-BW4J-jeJ.mjs";
13
- import { A as d } from "./WidgetContainer-p7NIdiNJ.mjs";
12
+ import { R as y, F as N } from "./RecurringTransactions-DTUx9VN1.mjs";
13
+ import { A as d } from "./WidgetContainer-C_JdLQij.mjs";
14
14
  const I = u(() => {
15
15
  const { recurring: n } = h(), { repeatingTransactions: c } = A(), { onEvent: o } = _(), a = (r) => {
16
16
  o(d.RECURRING_TRANSACTIONS_CLICK_EXPENSE, {
@@ -8,7 +8,7 @@ import { startOfMonth as S } from "date-fns/startOfMonth";
8
8
  import { startOfToday as c } from "date-fns/startOfToday";
9
9
  import { subDays as y } from "date-fns/subDays";
10
10
  import { F as x, A as o } from "./Fetch-87LIQbEA.mjs";
11
- import { b as E, a, c as d, d as u } from "./RepeatingTransaction-BW4J-jeJ.mjs";
11
+ import { b as E, a, c as d, d as u } from "./RecurringTransactions-DTUx9VN1.mjs";
12
12
  var A = /* @__PURE__ */ ((r) => (r.Small = "small", r.Medium = "medium", r.Large = "large", r))(A || {});
13
13
  const U = 44;
14
14
  class h {
@@ -1,6 +1,6 @@
1
1
  import { makeAutoObservable as N, runInAction as l } from "mobx";
2
2
  import { F as D, A as r } from "./Fetch-87LIQbEA.mjs";
3
- import { B as f, A as n, I as i } from "./Notification-aGCHxikw.mjs";
3
+ import { B as f, A as n, I as i } from "./ToggleListItem-r0Kx56wF.mjs";
4
4
  import { T as m } from "./TransactionApi-B3Tksf7L.mjs";
5
5
  class y {
6
6
  fetchInstance;
@@ -9,7 +9,7 @@ import { MerchantLogo as pe, Icon as S, Text as T, useTokens as ee, CategoryIcon
9
9
  import B from "@mui/material/ListItemAvatar";
10
10
  import M from "@mui/material/ListItemText";
11
11
  import f from "@mui/material/Stack";
12
- import { T as Pe, L as Ge, O as h, C as Me, b as Ke, i as $e } from "./User-8itAR7lR.mjs";
12
+ import { T as Pe, L as Ge, O as h, C as Me, b as Ke, i as $e } from "./User-DaJAQ09j.mjs";
13
13
  import { G as Be, h as v, u as A, g as L, m as xe, b as Fe, o as He } from "./hooks-CE2TKk4a.mjs";
14
14
  import { f as te } from "./NumberFormatting-CtWHhyBX.mjs";
15
15
  import { Receipt as ze, Delete as oe, ChevronRight as Ue, Cancel as ie, Search as Xe, Edit as Ve, Flag as We } from "@mxenabled/mx-icons";
@@ -17,7 +17,7 @@ import { fromUnixTime as W } from "date-fns/fromUnixTime";
17
17
  import { isSameDay as Ne } from "date-fns/isSameDay";
18
18
  import { h as Ye } from "./DateUtil-BcuH7ErC.mjs";
19
19
  import { L as Ie } from "./Loader-DUaFpDGv.mjs";
20
- import { A as P } from "./WidgetContainer-p7NIdiNJ.mjs";
20
+ import { A as P } from "./WidgetContainer-C_JdLQij.mjs";
21
21
  import ne from "@mui/material/Paper";
22
22
  import ce from "@mui/material/Button";
23
23
  import je from "@mui/material/FormGroup";
@@ -13,10 +13,10 @@ import { isBefore as B } from "date-fns/isBefore";
13
13
  import { startOfMonth as R } from "date-fns/startOfMonth";
14
14
  import { startOfToday as G } from "date-fns/startOfToday";
15
15
  import { subDays as Y } from "date-fns/subDays";
16
- import { O as n, a as b, T as F } from "./User-8itAR7lR.mjs";
16
+ import { O as n, a as b, T as F } from "./User-DaJAQ09j.mjs";
17
17
  import { T as p } from "./TransactionApi-B3Tksf7L.mjs";
18
18
  import { b as W } from "./Category-CevNQ03n.mjs";
19
- import { f as z } from "./exportTransactionsToCSV-CfylirZA.mjs";
19
+ import { f as z } from "./exportTransactionsToCSV-D8TTNrrE.mjs";
20
20
  import { format as k } from "date-fns/format";
21
21
  import { f as g, D as O, O as $ } from "./Dialog-CWW597AF.mjs";
22
22
  import { endOfMonth as X } from "date-fns/endOfMonth";
@@ -23,8 +23,9 @@ import nn from "@mui/material/styles/useTheme";
23
23
  import k from "@mui/material/ListItem";
24
24
  import an from "@mui/material/ListItemButton";
25
25
  import { g as tn } from "./hooks-CE2TKk4a.mjs";
26
- const on = ({ copy: n, date: a, onNextClick: o, onPreviousClick: r }) => {
27
- const c = v(), l = en(c);
26
+ var on = /* @__PURE__ */ ((n) => (n[n.CREDIT = 1] = "CREDIT", n[n.DEBIT = 2] = "DEBIT", n))(on || {}), en = /* @__PURE__ */ ((n) => (n[n.POSTED = 1] = "POSTED", n[n.PENDING = 2] = "PENDING", n))(en || {});
27
+ const rn = ({ copy: n, date: a, onNextClick: o, onPreviousClick: r }) => {
28
+ const c = v(), l = cn(c);
28
29
  return /* @__PURE__ */ h("div", { className: `mx-cmn-calendar-header ${l}`, children: [
29
30
  /* @__PURE__ */ e(z, { className: "mx-cmn-calendar-header-title", variant: "H3", children: q(a, J.MONTH_YEAR) }),
30
31
  /* @__PURE__ */ h("div", { className: "mx-cmn-calendar-header-button-container", children: [
@@ -32,7 +33,7 @@ const on = ({ copy: n, date: a, onNextClick: o, onPreviousClick: r }) => {
32
33
  /* @__PURE__ */ e(E, { "aria-label": n.nextAria, onClick: o, children: /* @__PURE__ */ e(Z, { size: 24 }) })
33
34
  ] })
34
35
  ] });
35
- }, en = (n) => p({
36
+ }, cn = (n) => p({
36
37
  alignItems: "center",
37
38
  display: "flex",
38
39
  marginBottom: n.Spacing.Medium,
@@ -45,8 +46,8 @@ const on = ({ copy: n, date: a, onNextClick: o, onPreviousClick: r }) => {
45
46
  display: "flex",
46
47
  gap: 4
47
48
  }
48
- }), rn = ({ beginDate: n, date: a, endDate: o, isInMonth: r, onClick: c }) => {
49
- const l = nn(), S = cn(l), g = n && o && Q(a, { start: n, end: o }) && !T(a, n) && !T(a, o), s = n && o && T(n, a) && !T(n, o), N = o && n && T(o, a) && !T(n, o), i = n && T(n, a) || o && T(o, a), C = T(a, f());
49
+ }), sn = ({ beginDate: n, date: a, endDate: o, isInMonth: r, onClick: c }) => {
50
+ const l = nn(), S = Tn(l), g = n && o && Q(a, { start: n, end: o }) && !T(a, n) && !T(a, o), s = n && o && T(n, a) && !T(n, o), N = o && n && T(o, a) && !T(n, o), i = n && T(n, a) || o && T(o, a), C = T(a, f());
50
51
  return /* @__PURE__ */ e(
51
52
  "div",
52
53
  {
@@ -82,7 +83,7 @@ const on = ({ copy: n, date: a, onNextClick: o, onPreviousClick: r }) => {
82
83
  )
83
84
  }
84
85
  );
85
- }, cn = (n) => p({
86
+ }, Tn = (n) => p({
86
87
  height: I,
87
88
  width: I,
88
89
  display: "flex",
@@ -127,9 +128,9 @@ const on = ({ copy: n, date: a, onNextClick: o, onPreviousClick: r }) => {
127
128
  paddingBottom: 5
128
129
  }
129
130
  }
130
- }), sn = 340, I = 44;
131
- var Tn = /* @__PURE__ */ ((n) => (n.None = "None", n.Single = "Single", n.Range = "Range", n))(Tn || {});
132
- const ln = ({
131
+ }), ln = 340, I = 44;
132
+ var Cn = /* @__PURE__ */ ((n) => (n.None = "None", n.Single = "Single", n.Range = "Range", n))(Cn || {});
133
+ const Nn = ({
133
134
  copy: n,
134
135
  beginDate: a = void 0,
135
136
  endDate: o = void 0,
@@ -138,7 +139,7 @@ const ln = ({
138
139
  selectionType: l = "Single"
139
140
  /* Single */
140
141
  }) => {
141
- const S = v(), g = Cn(S), [s, N] = A.useState(f), [i, C] = A.useState(a), [R, _] = A.useState(o);
142
+ const S = v(), g = mn(S), [s, N] = A.useState(f), [i, C] = A.useState(a), [R, _] = A.useState(o);
142
143
  A.useEffect(() => {
143
144
  C(a), _(o), a && N(a);
144
145
  }, [a, o]);
@@ -169,7 +170,7 @@ const ln = ({
169
170
  };
170
171
  return /* @__PURE__ */ e("div", { className: `mx-cmn-calendar ${g}`, children: /* @__PURE__ */ h(Y, { sx: { boxShadow: "none" }, children: [
171
172
  /* @__PURE__ */ e(
172
- on,
173
+ rn,
173
174
  {
174
175
  copy: n,
175
176
  date: s,
@@ -179,7 +180,7 @@ const ln = ({
179
180
  ),
180
181
  /* @__PURE__ */ e("div", { className: "mx-cmn-calendar-header-row", children: D[0].map((t, m) => /* @__PURE__ */ e("div", { className: "mx-cmn-calendar-header-cell", children: /* @__PURE__ */ e(G, { bold: !0, variant: "Small", children: y(t, "EEEEE") }) }, m)) }),
181
182
  D.map((t, m) => /* @__PURE__ */ e("div", { className: "mx-cmn-calendar-week", children: t.map((d, O) => /* @__PURE__ */ e(
182
- rn,
183
+ sn,
183
184
  {
184
185
  beginDate: i,
185
186
  date: d,
@@ -191,8 +192,8 @@ const ln = ({
191
192
  )) }, `w-${m}`)),
192
193
  /* @__PURE__ */ e("div", { className: "mx-cmn-calendar-today-container", children: /* @__PURE__ */ e(E, { onClick: M, size: "small", variant: "text", children: n.today }) })
193
194
  ] }) });
194
- }, Cn = (n) => p({
195
- width: sn,
195
+ }, mn = (n) => p({
196
+ width: ln,
196
197
  "& .MuiPaper-root": {
197
198
  paddingLeft: 24,
198
199
  paddingRight: 24,
@@ -232,7 +233,7 @@ const ln = ({
232
233
  marginRight: "auto"
233
234
  }
234
235
  }
235
- }), Bn = ln, Pn = ({
236
+ }), Bn = Nn, Pn = ({
236
237
  children: n,
237
238
  clickEventName: a,
238
239
  onClick: o,
@@ -300,15 +301,13 @@ const ln = ({
300
301
  ON_TRANSACTION_UNHIDE_CANCEL_CLICK: "onTransactionUnHideCancelClick",
301
302
  ON_TRANSACTION_UNSPLIT: "onTransactionUnsplit",
302
303
  ON_TRANSACTION_UNSPLIT_CANCEL: "onTransactionUnsplitCancel"
303
- };
304
- var Nn = /* @__PURE__ */ ((n) => (n[n.CREDIT = 1] = "CREDIT", n[n.DEBIT = 2] = "DEBIT", n))(Nn || {}), mn = /* @__PURE__ */ ((n) => (n[n.POSTED = 1] = "POSTED", n[n.PENDING = 2] = "PENDING", n))(mn || {});
305
- const Un = (n, a) => !!n.find((o) => o.feature_name === a)?.is_enabled;
304
+ }, Un = (n, a) => !!n.find((o) => o.feature_name === a)?.is_enabled;
306
305
  export {
307
306
  Bn as C,
308
307
  Pn as L,
309
308
  $n as O,
310
- Nn as T,
311
- mn as a,
312
- Tn as b,
309
+ on as T,
310
+ en as a,
311
+ Cn as b,
313
312
  Un as i
314
313
  };
@@ -36,7 +36,7 @@ import we from "@mui/material/ToggleButtonGroup";
36
36
  import Ke from "@mui/material/styles/useTheme";
37
37
  import { f as K, D as G, a as Ge } from "./Dialog-CWW597AF.mjs";
38
38
  import { D as Me } from "./Drawer-kEE73B87.mjs";
39
- import { j as We, k as ye } from "./ConnectDrawer-YIWwEzuN.mjs";
39
+ import { j as We, k as ye } from "./ConnectDrawer-SHjB2fpB.mjs";
40
40
  const xe = {
41
41
  ACCOUNTS_CLICK_ACCOUNT: "accounts_widget_click_account",
42
42
  ACCOUNTS_CLICK_CONNECT: "accounts_widget_click_connect_accounts",
@@ -1,62 +1,62 @@
1
- import { jsxs as n, jsx as e, Fragment as j } from "react/jsx-runtime";
1
+ import { jsxs as n, jsx as e, Fragment as G } from "react/jsx-runtime";
2
2
  import d from "react";
3
- import { observer as M } from "mobx-react-lite";
3
+ import { observer as g } from "mobx-react-lite";
4
4
  import B from "@mui/material/Box";
5
- import _ from "@mui/material/Divider";
5
+ import A from "@mui/material/Divider";
6
6
  import E from "@mui/material/List";
7
7
  import O from "@mui/material/ListSubheader";
8
- import x from "@mui/system/Stack";
8
+ import _ from "@mui/system/Stack";
9
9
  import { Text as v } from "@mxenabled/mxui";
10
- import { A as G } from "../AccountDetailsContent-eODMVIVq.mjs";
11
- import { u as I1 } from "../AccountDetailsContent-eODMVIVq.mjs";
12
- import { u as K, A as z } from "../AccountDetailsHeader-C0qgTju7.mjs";
13
- import { A as W } from "../AccountListItem-BxmUd4j3.mjs";
14
- import { a as P } from "../AccountFields-DDHk35Ou.mjs";
15
- import { g as D1, b as U1 } from "../AccountFields-DDHk35Ou.mjs";
16
- import { u as g, b as y, d as T, g as N, a as Y } from "../hooks-CE2TKk4a.mjs";
10
+ import { A as K } from "../AccountDetailsContent-j_fz0aRX.mjs";
11
+ import { u as D1 } from "../AccountDetailsContent-j_fz0aRX.mjs";
12
+ import { u as z, A as P } from "../AccountDetailsHeader-eh13XhXN.mjs";
13
+ import { A as W } from "../AccountListItem-C7NVvdVt.mjs";
14
+ import { a as Y } from "../AccountFields-pka2XWfO.mjs";
15
+ import { g as U1, b as $1 } from "../AccountFields-pka2XWfO.mjs";
16
+ import { u as w, b as S, d as T, g as D, a as q } from "../hooks-CE2TKk4a.mjs";
17
17
  import { f as I } from "../NumberFormatting-CtWHhyBX.mjs";
18
- import { D as q } from "../Drawer-kEE73B87.mjs";
19
- import { A, W as J } from "../WidgetContainer-p7NIdiNJ.mjs";
20
- import { C as Q } from "../ConnectionsDrawer-Bf2DNDCF.mjs";
21
- import { u as X } from "../useScreenSize-B6JyS_Lj.mjs";
18
+ import { D as J } from "../Drawer-kEE73B87.mjs";
19
+ import { A as y, W as Q } from "../WidgetContainer-C_JdLQij.mjs";
20
+ import { C as X } from "../ConnectionsDrawer-BprLSCBH.mjs";
21
+ import { u as N } from "../useScreenSize-B6JyS_Lj.mjs";
22
22
  import { L as R } from "../Loader-DUaFpDGv.mjs";
23
- import { k as D } from "../ConnectDrawer-YIWwEzuN.mjs";
24
- import { F as j1, M as G1 } from "../ConnectDrawer-YIWwEzuN.mjs";
25
- import e1 from "@mui/material/ListItem";
26
- import { M as U } from "../MiniWidgetContainer-DSG6mwaW.mjs";
27
- import t1 from "@mui/material/Stack";
28
- import { A as z1, a as P1 } from "../AccountStore-CpjCeykS.mjs";
29
- const l1 = () => {
30
- const [c, L] = d.useState(""), { accounts: C } = g(), { selectedAccounts: l } = y(), { setSelectedAccount: u, setSelectedMember: r } = K(), { members: s } = T(), { onEvent: p } = N(), a = [...new Set(l.map((t) => t.account_type))], H = l.find((t) => c === t.guid), h = d.useMemo(
23
+ import { k as U, l as e1 } from "../ConnectDrawer-SHjB2fpB.mjs";
24
+ import { F as G1, M as K1 } from "../ConnectDrawer-SHjB2fpB.mjs";
25
+ import t1 from "@mui/material/ListItem";
26
+ import { M as $ } from "../MiniWidgetContainer-DSG6mwaW.mjs";
27
+ import l1 from "@mui/material/Stack";
28
+ import { A as P1, a as Y1 } from "../AccountStore-XZqHTKm3.mjs";
29
+ const i1 = () => {
30
+ const [c, H] = d.useState(""), { accounts: C } = w(), { selectedAccounts: l } = S(), { setSelectedAccount: h, setSelectedMember: r } = z(), { members: L } = T(), { onEvent: f } = D(), s = [...new Set(l.map((t) => t.account_type))], a = l.find((t) => c === t.guid), u = d.useMemo(
31
31
  () => l.filter((t) => t.is_hidden),
32
32
  [l]
33
- ), V = d.useMemo(
33
+ ), p = d.useMemo(
34
34
  () => l.filter((t) => t.is_closed),
35
35
  [l]
36
- ), S = h.reduce(
36
+ ), M = u.reduce(
37
37
  (t, i) => (i.available_balance || i.balance || 0) + t,
38
38
  0
39
- ), b = P(V, C);
39
+ ), b = Y(p, C);
40
40
  d.useEffect(() => {
41
- if (H) {
42
- u(H);
43
- const t = s.find((i) => i.guid === H?.member_guid) || {};
41
+ if (a) {
42
+ h(a);
43
+ const t = L.find((i) => i.guid === a?.member_guid) || {};
44
44
  t && r(t);
45
45
  }
46
- }, [H, c]);
47
- const w = (t) => {
48
- L(t.guid), p(A.ACCOUNTS_CLICK_ACCOUNT, {
46
+ }, [a, c]);
47
+ const Z = (t) => {
48
+ H(t.guid), f(y.ACCOUNTS_CLICK_ACCOUNT, {
49
49
  account_guid: t.guid,
50
50
  account_type: t.account_type
51
51
  });
52
52
  }, m = (t) => {
53
- const i = t === "hidden" ? h : V, k = t === "hidden" ? S : b, o = t === "hidden" ? C.account_hidden : C.account_closed;
53
+ const i = t === "hidden" ? u : p, k = t === "hidden" ? M : b, o = t === "hidden" ? C.account_hidden : C.account_closed;
54
54
  return /* @__PURE__ */ e(B, { children: /* @__PURE__ */ e(
55
55
  E,
56
56
  {
57
57
  "aria-label": o,
58
58
  subheader: /* @__PURE__ */ e(O, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ n(
59
- x,
59
+ _,
60
60
  {
61
61
  component: "span",
62
62
  direction: "row",
@@ -67,19 +67,19 @@ const l1 = () => {
67
67
  ]
68
68
  }
69
69
  ) }),
70
- children: /* @__PURE__ */ e(x, { children: i.map((f, Z, $) => {
71
- const F = Z === $.length - 1;
70
+ children: /* @__PURE__ */ e(_, { children: i.map((V, x, j) => {
71
+ const F = x === j.length - 1;
72
72
  return /* @__PURE__ */ n(d.Fragment, { children: [
73
73
  /* @__PURE__ */ e(
74
74
  W,
75
75
  {
76
- account: f,
77
- onRowClick: () => w(f),
76
+ account: V,
77
+ onRowClick: () => Z(V),
78
78
  shouldShowConnectionStatus: !0
79
79
  }
80
80
  ),
81
81
  t === "hidden" ? /* @__PURE__ */ e(
82
- _,
82
+ A,
83
83
  {
84
84
  sx: {
85
85
  mb: F ? 24 : 4,
@@ -87,7 +87,7 @@ const l1 = () => {
87
87
  }
88
88
  }
89
89
  ) : !F && /* @__PURE__ */ e(
90
- _,
90
+ A,
91
91
  {
92
92
  sx: {
93
93
  mb: 4,
@@ -95,17 +95,17 @@ const l1 = () => {
95
95
  }
96
96
  }
97
97
  )
98
- ] }, f.guid);
98
+ ] }, V.guid);
99
99
  }) })
100
100
  }
101
101
  ) });
102
102
  };
103
103
  return /* @__PURE__ */ n(B, { sx: { pt: 24 }, children: [
104
- a.map((t) => {
104
+ s.map((t) => {
105
105
  const i = l.filter(
106
106
  (o) => o.account_type === t && !o.is_closed && !o.is_hidden
107
107
  ), k = i.reduce(
108
- (o, f) => (f.balance || 0) + o,
108
+ (o, V) => (V.balance || 0) + o,
109
109
  0
110
110
  );
111
111
  return i.length === 0 ? null : /* @__PURE__ */ e(
@@ -113,7 +113,7 @@ const l1 = () => {
113
113
  {
114
114
  "aria-label": C.account_type_accounts[i[0]?.account_type],
115
115
  subheader: /* @__PURE__ */ e(O, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ n(
116
- x,
116
+ _,
117
117
  {
118
118
  component: "span",
119
119
  direction: "row",
@@ -124,23 +124,23 @@ const l1 = () => {
124
124
  ]
125
125
  }
126
126
  ) }),
127
- children: /* @__PURE__ */ e(x, { children: i.map((o) => {
128
- const f = l.indexOf(o) === l.length - 1, Z = i.indexOf(o) === i.length - 1;
127
+ children: /* @__PURE__ */ e(_, { children: i.map((o) => {
128
+ const V = l.indexOf(o) === l.length - 1, x = i.indexOf(o) === i.length - 1;
129
129
  return /* @__PURE__ */ n(d.Fragment, { children: [
130
130
  /* @__PURE__ */ e(
131
131
  W,
132
132
  {
133
133
  account: o,
134
- onRowClick: () => w(o),
134
+ onRowClick: () => Z(o),
135
135
  shouldShowConnectionStatus: !0
136
136
  }
137
137
  ),
138
- (!f || V.length > 0 || h.length > 0) && /* @__PURE__ */ e(
139
- _,
138
+ (!V || p.length > 0 || u.length > 0) && /* @__PURE__ */ e(
139
+ A,
140
140
  {
141
141
  sx: {
142
- mb: Z ? 24 : 4,
143
- ml: Z ? 24 : 68
142
+ mb: x ? 24 : 4,
143
+ ml: x ? 24 : 68
144
144
  }
145
145
  }
146
146
  )
@@ -150,104 +150,109 @@ const l1 = () => {
150
150
  t
151
151
  );
152
152
  }),
153
- h.length > 0 && m("hidden"),
154
- V.length > 0 && m("closed"),
153
+ u.length > 0 && m("hidden"),
154
+ p.length > 0 && m("closed"),
155
155
  /* @__PURE__ */ n(
156
- q,
156
+ J,
157
157
  {
158
158
  ariaLabelClose: C.close_account_details_aria,
159
159
  isOpen: !!c,
160
- onClose: () => L(""),
160
+ onClose: () => H(""),
161
161
  title: C.account_details,
162
162
  children: [
163
- /* @__PURE__ */ e(z, {}),
164
- /* @__PURE__ */ e(G, {})
163
+ /* @__PURE__ */ e(P, {}),
164
+ /* @__PURE__ */ e(K, {})
165
165
  ]
166
166
  }
167
167
  )
168
168
  ] });
169
- }, i1 = M(l1), n1 = ({ onBackClick: c, sx: L = {} }) => {
170
- const [C, l] = d.useState(!1), [u, r] = d.useState(!1), { config: s } = Y(), { accounts: p } = T(), { accounts: a, connect: H } = g(), { isCopyLoaded: h, isInitialized: V, setSelectedAccounts: S, selectedAccountGuids: b } = y(), { isDesktop: w } = X(), { onEvent: m } = N();
169
+ }, n1 = g(i1), C1 = ({ onBackClick: c, sx: H = {} }) => {
170
+ const [C, l] = d.useState(!1), [h, r] = d.useState(!1), { config: L } = q(), { accounts: f } = T(), { accounts: s, connect: a } = w(), { isCopyLoaded: u, isInitialized: p, setSelectedAccounts: M, selectedAccountGuids: b } = S(), { isDesktop: Z } = N(), { onEvent: m } = D();
171
171
  d.useEffect(() => {
172
- S(p);
173
- }, [p]);
172
+ M(f);
173
+ }, [f]);
174
174
  const t = () => {
175
- l(!0), m(A.ACCOUNTS_CLICK_CONNECT);
175
+ l(!0), m(y.ACCOUNTS_CLICK_CONNECT);
176
176
  }, i = () => {
177
- r(!0), m(A.ACCOUNTS_CLICK_CONNECT);
177
+ r(!0), m(y.ACCOUNTS_CLICK_CONNECT);
178
178
  };
179
- return h ? /* @__PURE__ */ e(
180
- J,
179
+ return u ? /* @__PURE__ */ e(
180
+ Q,
181
181
  {
182
- accountOptions: p,
183
- actions: s.show_connections_widget_in_master ? [
184
- { iconName: "add", label: a.add, onClick: t },
182
+ accountOptions: f,
183
+ actions: L.show_connections_widget_in_master ? [
184
+ { iconName: "add", label: s.add, onClick: t },
185
185
  {
186
186
  iconName: "credit_card_gear",
187
- label: a.manage,
187
+ label: s.manage,
188
188
  onClick: i
189
189
  }
190
190
  ] : [],
191
- onAccountsFilterClick: () => m(A.ACCOUNTS_CLICK_FILTER),
191
+ onAccountsFilterClick: () => m(y.ACCOUNTS_CLICK_FILTER),
192
192
  onBackClick: c,
193
- sx: L,
194
- title: a.title,
195
- children: V ? /* @__PURE__ */ n(j, { children: [
196
- /* @__PURE__ */ n(B, { sx: { px: w ? 24 : 12 }, children: [
197
- b.length < 1 && /* @__PURE__ */ e(v, { display: "flex", justifyContent: "center", my: 24, children: a.no_accounts }),
198
- /* @__PURE__ */ e(i1, {})
193
+ sx: H,
194
+ title: s.title,
195
+ children: p ? /* @__PURE__ */ n(G, { children: [
196
+ /* @__PURE__ */ n(B, { sx: { px: Z ? 24 : 12 }, children: [
197
+ b.length < 1 && /* @__PURE__ */ e(v, { display: "flex", justifyContent: "center", my: 24, children: s.no_accounts }),
198
+ /* @__PURE__ */ e(n1, {})
199
199
  ] }),
200
200
  /* @__PURE__ */ e(
201
- D,
201
+ U,
202
202
  {
203
203
  onClose: () => l(!1),
204
204
  showConnectWidget: C,
205
- title: H.mini_title
205
+ title: a.mini_title
206
206
  }
207
207
  ),
208
208
  /* @__PURE__ */ e(
209
- Q,
209
+ X,
210
210
  {
211
211
  onClose: () => r(!1),
212
- showConnectionsWidget: u,
213
- title: a.manage_connections
212
+ showConnectionsWidget: h,
213
+ title: s.manage_connections
214
214
  }
215
215
  )
216
216
  ] }) : /* @__PURE__ */ e(R, {})
217
217
  }
218
218
  ) : /* @__PURE__ */ e(R, {});
219
- }, B1 = M(n1), C1 = ({ onPrimaryCtaClick: c, sx: L }) => {
220
- const { visibleAccounts: C } = T(), { accounts: l } = g(), { isCopyLoaded: u, isInitialized: r, selectedAccounts: s, setSelectedAccounts: p } = y();
221
- return d.useEffect(() => {
222
- p(C);
223
- }, [C]), u ? /* @__PURE__ */ e(
224
- U,
219
+ }, E1 = g(C1), o1 = ({ onPrimaryCtaClick: c, sx: H }) => {
220
+ const { visibleAccounts: C } = T(), { accounts: l } = w(), { isCopyLoaded: h, isInitialized: r, selectedAccounts: L, setSelectedAccounts: f } = S(), { isDesktop: s } = N();
221
+ d.useEffect(() => {
222
+ f(C);
223
+ }, [C]);
224
+ const a = d.useMemo(
225
+ () => e1(L, s ? 5 : 3),
226
+ [L, s]
227
+ );
228
+ return h ? /* @__PURE__ */ e(
229
+ $,
225
230
  {
226
231
  className: "mx-exp-accounts-miniwidget",
227
232
  onPrimaryCtaClick: c,
228
233
  primaryCtaLabel: l.primary_cta,
229
- sx: L,
234
+ sx: H,
230
235
  title: l.mini_title,
231
236
  children: r ? /* @__PURE__ */ n(E, { children: [
232
- s.length === 0 && /* @__PURE__ */ e(e1, { sx: { justifyContent: "center" }, children: l.no_accounts }),
233
- s.map((a, H) => {
234
- const h = s.indexOf(a) === s.length - 1;
237
+ L.length === 0 && /* @__PURE__ */ e(t1, { sx: { justifyContent: "center" }, children: l.no_accounts }),
238
+ a.map((u, p) => {
239
+ const M = a.indexOf(u) === a.length - 1;
235
240
  return /* @__PURE__ */ n(d.Fragment, { children: [
236
241
  /* @__PURE__ */ e(
237
242
  W,
238
243
  {
239
- account: a,
244
+ account: u,
240
245
  listItemProps: { sx: { px: 24 } },
241
246
  shouldShowConnectionStatus: !0
242
247
  }
243
248
  ),
244
- !h && /* @__PURE__ */ e(_, { "aria-hidden": "true", variant: "inset" })
245
- ] }, `account-item${H}`);
249
+ !M && /* @__PURE__ */ e(A, { "aria-hidden": "true", variant: "inset" })
250
+ ] }, `account-item${p}`);
246
251
  })
247
252
  ] }) : /* @__PURE__ */ e(R, {})
248
253
  }
249
254
  ) : /* @__PURE__ */ e(R, {});
250
- }, E1 = M(C1), o1 = () => /* @__PURE__ */ n(
255
+ }, W1 = g(o1), d1 = () => /* @__PURE__ */ n(
251
256
  "svg",
252
257
  {
253
258
  fill: "none",
@@ -686,10 +691,10 @@ const l1 = () => {
686
691
  )
687
692
  ]
688
693
  }
689
- ), d1 = () => {
690
- const { connect: c } = g();
691
- return /* @__PURE__ */ n(t1, { alignItems: "center", direction: "column", m: 24, children: [
692
- /* @__PURE__ */ e(o1, {}),
694
+ ), c1 = () => {
695
+ const { connect: c } = w();
696
+ return /* @__PURE__ */ n(l1, { alignItems: "center", direction: "column", m: 24, children: [
697
+ /* @__PURE__ */ e(d1, {}),
693
698
  /* @__PURE__ */ e(
694
699
  v,
695
700
  {
@@ -703,48 +708,48 @@ const l1 = () => {
703
708
  }
704
709
  )
705
710
  ] });
706
- }, c1 = M(d1), s1 = ({
711
+ }, s1 = g(c1), a1 = ({
707
712
  onPrimaryCtaClick: c = () => {
708
713
  },
709
- sx: L
714
+ sx: H
710
715
  }) => {
711
- const { isCopyLoaded: C } = y(), { connect: l } = g(), [u, r] = d.useState(!1), s = () => {
716
+ const { isCopyLoaded: C } = S(), { connect: l } = w(), [h, r] = d.useState(!1), L = () => {
712
717
  r(!0), c();
713
718
  };
714
719
  return C ? /* @__PURE__ */ n(
715
- U,
720
+ $,
716
721
  {
717
722
  className: "mx-exp-connect-miniwidget",
718
- onPrimaryCtaClick: s,
723
+ onPrimaryCtaClick: L,
719
724
  primaryCtaLabel: l.primary_cta,
720
- sx: L,
725
+ sx: H,
721
726
  title: l.mini_title,
722
727
  children: [
723
- /* @__PURE__ */ e(c1, {}),
724
- u && /* @__PURE__ */ e(
725
- D,
728
+ /* @__PURE__ */ e(s1, {}),
729
+ h && /* @__PURE__ */ e(
730
+ U,
726
731
  {
727
732
  onClose: () => r(!1),
728
- showConnectWidget: u,
733
+ showConnectWidget: h,
729
734
  title: l.mini_title
730
735
  }
731
736
  )
732
737
  ]
733
738
  }
734
739
  ) : /* @__PURE__ */ e(R, {});
735
- }, W1 = M(s1);
740
+ }, T1 = g(a1);
736
741
  export {
737
- z1 as AccountApi,
738
- G as AccountDetailsContent,
739
- z as AccountDetailsHeader,
740
- P1 as AccountStore,
741
- E1 as AccountsMiniWidget,
742
- B1 as AccountsWidget,
743
- W1 as ConnectMiniWidget,
744
- j1 as FieldType,
745
- G1 as MemberConnectionStatus,
746
- D1 as getAccountBalanceDetails,
747
- U1 as getAccountDetailFields,
748
- K as useAccountUiStore,
749
- I1 as useGetMergeableAccounts
742
+ P1 as AccountApi,
743
+ K as AccountDetailsContent,
744
+ P as AccountDetailsHeader,
745
+ Y1 as AccountStore,
746
+ W1 as AccountsMiniWidget,
747
+ E1 as AccountsWidget,
748
+ T1 as ConnectMiniWidget,
749
+ G1 as FieldType,
750
+ K1 as MemberConnectionStatus,
751
+ U1 as getAccountBalanceDetails,
752
+ $1 as getAccountDetailFields,
753
+ z as useAccountUiStore,
754
+ D1 as useGetMergeableAccounts
750
755
  };