@mx-cartographer/experiences 8.1.8 → 8.1.10-alpha.al0

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.
@@ -3,25 +3,25 @@ import h from "react";
3
3
  import { observer as A } from "mobx-react-lite";
4
4
  import t1 from "@mui/material/Stack";
5
5
  import { Text as v, Icon as N, THEMES as c1 } from "@mxenabled/mxui";
6
- import { S as m1 } from "../SkeletonLoader-BaNboJjD.mjs";
6
+ import { S as p1 } from "../SkeletonLoader-BaNboJjD.mjs";
7
7
  import a1 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 { useTheme as y1, alpha as w1 } from "@mui/material/styles";
13
- import { u as R, A as x1 } from "../AccountDetailsHeader-D8NIfmO8.mjs";
14
- import { L as R1 } from "../LineChart-jJVBE8V8.mjs";
15
- import { g as S1, a as T1, b as E1 } from "../SpendingData-Dj85XEUp.mjs";
16
- import { l as D1, u as V, d as D, g as k, h as p1, a as _1, b as G } from "../hooks-HwStH7q_.mjs";
17
- import { A as I, g as f, N as L1 } from "../Account-CMjOp7S2.mjs";
18
- import { I as f1, P as g1, S as H1 } from "../Account-BIKn4XEZ.mjs";
19
- import { a as k1, b as I1 } from "../AccountFields-BWmpVsS3.mjs";
12
+ import { useTheme as w1, alpha as x1 } from "@mui/material/styles";
13
+ import { u as R, A as R1 } from "../AccountDetailsHeader-D8NIfmO8.mjs";
14
+ import { L as S1 } from "../LineChart-jJVBE8V8.mjs";
15
+ import { g as T1, a as E1, b as D1 } from "../SpendingData-Dj85XEUp.mjs";
16
+ import { l as k1, u as V, d as D, g as k, h as _1, a as L1, b as G } from "../hooks-HwStH7q_.mjs";
17
+ import { A as I, g as f, N as f1 } from "../Account-CMjOp7S2.mjs";
18
+ import { I as g1, P as H1, S as v1 } from "../Account-BIKn4XEZ.mjs";
19
+ import { a as I1, b as Z1 } from "../AccountFields-BWmpVsS3.mjs";
20
20
  import { g as c2 } from "../AccountFields-BWmpVsS3.mjs";
21
21
  import { A as U } from "../AccountListItem-DSuv36PF.mjs";
22
22
  import s1 from "@mui/material/Tab";
23
- import Z1 from "@mui/material/Tabs";
24
- import N1 from "@mui/material/Switch";
23
+ import N1 from "@mui/material/Tabs";
24
+ import O1 from "@mui/material/Switch";
25
25
  import E from "@mui/material/ListItem";
26
26
  import $ from "@mui/material/ListItemButton";
27
27
  import Z from "@mui/material/ListItemText";
@@ -30,21 +30,21 @@ import { D as e1 } from "../Dialog-iLlBR8TG.mjs";
30
30
  import { b as H } from "../Localization-CkQ49EKr.mjs";
31
31
  import { D as n1 } from "../Drawer-XPaLYjiO.mjs";
32
32
  import j from "@mui/material/ListItemAvatar";
33
- import O1 from "@mui/material/styles/useTheme";
34
- import { Language as F1, Error as v1, CheckCircle as P1 } from "@mxenabled/mx-icons";
33
+ import F1 from "@mui/material/styles/useTheme";
34
+ import { Language as P1, Error as b1, CheckCircle as W1 } from "@mxenabled/mx-icons";
35
35
  import { C as z } from "../ConnectDrawer-5BpU4IQU.mjs";
36
- import { fromUnixTime as W1 } from "date-fns/fromUnixTime";
37
- import { isToday as B1 } from "date-fns/isToday";
38
- import { isYesterday as U1 } from "date-fns/isYesterday";
36
+ import { fromUnixTime as B1 } from "date-fns/fromUnixTime";
37
+ import { isToday as U1 } from "date-fns/isToday";
38
+ import { isYesterday as $1 } from "date-fns/isYesterday";
39
39
  import { f as l1, D as r1 } from "../DateFormats-CaOj_4eI.mjs";
40
40
  import { I as X } from "../IconBacking-DgT8DCeh.mjs";
41
- import { addMonths as $1 } from "date-fns/addMonths";
42
- import { AdapterDateFns as G1 } from "@mui/x-date-pickers/AdapterDateFnsV3";
43
- import { DateCalendar as z1 } from "@mui/x-date-pickers/DateCalendar";
44
- import K1 from "@mui/material/FormControl";
45
- import Y1 from "@mui/material/InputLabel";
46
- import { LocalizationProvider as j1 } from "@mui/x-date-pickers-pro";
47
- import X1 from "@mui/material/MenuItem";
41
+ import { addMonths as G1 } from "date-fns/addMonths";
42
+ import { AdapterDateFns as z1 } from "@mui/x-date-pickers/AdapterDateFnsV3";
43
+ import { DateCalendar as K1 } from "@mui/x-date-pickers/DateCalendar";
44
+ import Y1 from "@mui/material/FormControl";
45
+ import j1 from "@mui/material/InputLabel";
46
+ import { LocalizationProvider as X1 } from "@mui/x-date-pickers-pro";
47
+ import d1 from "@mui/material/MenuItem";
48
48
  import J1 from "@mui/material/Select";
49
49
  import q1 from "@mui/material/TextField";
50
50
  import { F as J } from "../Accounts-CseLC3lL.mjs";
@@ -57,36 +57,36 @@ import o3 from "@mui/material/Paper";
57
57
  import { endOfToday as i3, subDays as c3, startOfToday as a3 } from "date-fns";
58
58
  import { T as s3 } from "../EmbeddedCard-BqVpA1Jn.mjs";
59
59
  import { T as l3 } from "../TransactionDetails-Bpp1FDUI.mjs";
60
- import { T as d1 } from "../TabContentContainer-CnMXkVqr.mjs";
61
- import { f as u1 } from "../NumberFormatting-CyrvFgfd.mjs";
60
+ import { T as u1 } from "../TabContentContainer-CnMXkVqr.mjs";
61
+ import { f as C1 } from "../NumberFormatting-CyrvFgfd.mjs";
62
62
  import { C as r3 } from "../ConnectionsDrawer-DxpSlJN7.mjs";
63
- import { u as b1 } from "../useScreenSize-CeFhWTt_.mjs";
63
+ import { u as A1 } from "../useScreenSize-CeFhWTt_.mjs";
64
64
  import { u as o1 } from "../useWidgetLoadTimer-wkBTL5xx.mjs";
65
65
  import { L as i1 } from "../Loader-CxeBwuPG.mjs";
66
66
  import { W as d3 } from "../WidgetContainer-_Fzy--dt.mjs";
67
- import { M as A1 } from "../MiniWidgetContainer-CmTGSUL5.mjs";
67
+ import { M as V1 } from "../MiniWidgetContainer-CmTGSUL5.mjs";
68
68
  import { A as r2 } from "../AccountStore-B3S_p5Qa.mjs";
69
69
  const u3 = (t, o) => {
70
- const n = f1.includes(o) ? S1(t) : [], c = g1.includes(o) ? T1(t) : [], i = H1.includes(o) ? E1(t) : [];
70
+ const n = g1.includes(o) ? T1(t) : [], c = H1.includes(o) ? E1(t) : [], i = v1.includes(o) ? D1(t) : [];
71
71
  return [n, c, i].filter((l) => l.length > 0);
72
72
  }, C3 = (t, o, n) => {
73
73
  const [c, i] = t, l = c, d = i ?? c, a = [];
74
- if (l && d && f1.includes(o)) {
74
+ if (l && d && g1.includes(o)) {
75
75
  const r = l[l.length - 1].y;
76
76
  a.push({ label: n.income_label, amount: r });
77
- } else if (g1.includes(o)) {
77
+ } else if (H1.includes(o)) {
78
78
  const r = l[l.length - 1].y;
79
79
  a.push({ label: n.payments_label, amount: r });
80
80
  }
81
- if (d && H1.includes(o)) {
81
+ if (d && v1.includes(o)) {
82
82
  const r = d[d.length - 1].y;
83
83
  a.push({ label: n.spending_label, amount: r });
84
84
  }
85
85
  return a;
86
86
  }, h3 = () => {
87
- const t = y1(), { selectedAccount: o } = R(), { monthlyCategoryTotals: n } = D1(), { trends: c } = V(), 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);
87
+ const t = w1(), { selectedAccount: o } = R(), { monthlyCategoryTotals: n } = k1(), { trends: c } = V(), 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);
88
88
  return /* @__PURE__ */ e("div", { "data-testid": "TrendsChart", children: /* @__PURE__ */ e(
89
- R1,
89
+ S1,
90
90
  {
91
91
  colors: i,
92
92
  datasets: l,
@@ -138,7 +138,7 @@ const u3 = (t, o) => {
138
138
  (c) => c.member_guid === n.guid && n.successfully_aggregated_at && c.guid !== o.guid
139
139
  );
140
140
  }, _3 = () => {
141
- 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 } = V(), _ = p3(), { onEvent: M } = k(), { modifyTransactionByAccountGuid: w } = p1(), y = async (u) => {
141
+ 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 } = V(), _ = p3(), { onEvent: y } = k(), { modifyTransactionByAccountGuid: w } = _1(), M = async (u) => {
142
142
  await m({
143
143
  ...r,
144
144
  ...u
@@ -155,18 +155,18 @@ const u3 = (t, o) => {
155
155
  {
156
156
  ariaPressed: r.is_hidden,
157
157
  onClick: () => {
158
- y({ is_hidden: !r.is_hidden }), M(x.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: r.guid });
158
+ M({ is_hidden: !r.is_hidden }), y(x.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: r.guid });
159
159
  },
160
160
  primaryText: r.is_hidden ? s.unhide_account : s.hide_Account,
161
161
  secondaryText: r.is_hidden ? s.include_this_account : s.exclude_this_account,
162
- children: /* @__PURE__ */ e(N1, { "aria-hidden": !0, checked: r.is_hidden, tabIndex: -1 })
162
+ children: /* @__PURE__ */ e(O1, { "aria-hidden": !0, checked: r.is_hidden, tabIndex: -1 })
163
163
  }
164
164
  ),
165
165
  /* @__PURE__ */ C(
166
166
  q,
167
167
  {
168
168
  onClick: () => {
169
- o(!0), M(x.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
169
+ o(!0), y(x.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
170
170
  account_guid: r.guid
171
171
  });
172
172
  },
@@ -185,7 +185,7 @@ const u3 = (t, o) => {
185
185
  onClose: () => {
186
186
  o(!1);
187
187
  },
188
- onPrimaryAction: () => y({ is_closed: !r.is_closed }),
188
+ onPrimaryAction: () => M({ is_closed: !r.is_closed }),
189
189
  children: /* @__PURE__ */ e(v, { truncate: !1, children: H(
190
190
  r.is_closed ? s.this_will_resume_updating_the_balance : s.this_will_set_the_balance_of_your_account,
191
191
  r.name
@@ -200,7 +200,7 @@ const u3 = (t, o) => {
200
200
  {
201
201
  isLast: !0,
202
202
  onClick: () => {
203
- c(!0), M(x.ACCOUNT_DETAILS_CLICK_MARK_DUPLICATE, {
203
+ c(!0), y(x.ACCOUNT_DETAILS_CLICK_MARK_DUPLICATE, {
204
204
  account_guid: r.guid
205
205
  });
206
206
  },
@@ -268,7 +268,7 @@ const u3 = (t, o) => {
268
268
  }
269
269
  )
270
270
  ] });
271
- }, L3 = A(_3), V1 = (t, o) => {
271
+ }, L3 = A(_3), y1 = (t, o) => {
272
272
  const { connection_messages: n } = o;
273
273
  switch (t.connection_status) {
274
274
  case f.CHALLENGED:
@@ -405,9 +405,9 @@ const u3 = (t, o) => {
405
405
  };
406
406
  default: {
407
407
  const c = () => {
408
- const i = t.successfully_aggregated_at ? W1(t.successfully_aggregated_at) : void 0, l = i && l1(i, r1.TIME_STAMP_HOUR_MINUTE);
408
+ const i = t.successfully_aggregated_at ? B1(t.successfully_aggregated_at) : void 0, l = i && l1(i, r1.TIME_STAMP_HOUR_MINUTE);
409
409
  if (l)
410
- return B1(i) ? H(o.last_updated_at, o.today, l) : U1(i) ? H(o.last_updated_at, o.yesterday, l) : H(
410
+ return U1(i) ? H(o.last_updated_at, o.today, l) : $1(i) ? H(o.last_updated_at, o.yesterday, l) : H(
411
411
  o.last_updated_at,
412
412
  l1(i, r1.MONTH_DAY_YEAR),
413
413
  l
@@ -429,15 +429,15 @@ const u3 = (t, o) => {
429
429
  }, f3 = () => {
430
430
  const [t, o] = h.useState(!1), {
431
431
  palette: { mode: n }
432
- } = O1(), { selectedMember: c } = R(), { accounts: i, connect: l } = V(), d = V1(c, l), a = L1.includes(c.connection_status) ? {
432
+ } = F1(), { selectedMember: c } = R(), { accounts: i, connect: l } = V(), d = y1(c, l), a = f1.includes(c.connection_status) ? {
433
433
  color: "error.main",
434
434
  ctaCopy: d.cta ?? "",
435
- icon: /* @__PURE__ */ e(v1, { filled: !0, sx: { ...Q } }),
435
+ icon: /* @__PURE__ */ e(b1, { filled: !0, sx: { ...Q } }),
436
436
  mainMessage: d.statusName,
437
437
  secondaryMessage: `${d.title}.`
438
438
  } : {
439
439
  color: "success.main",
440
- icon: /* @__PURE__ */ e(P1, { filled: !0, sx: { ...Q } }),
440
+ icon: /* @__PURE__ */ e(W1, { filled: !0, sx: { ...Q } }),
441
441
  mainMessage: d.statusName,
442
442
  secondaryMessage: d.title
443
443
  };
@@ -497,7 +497,7 @@ const u3 = (t, o) => {
497
497
  },
498
498
  size: 32,
499
499
  children: /* @__PURE__ */ e(
500
- F1,
500
+ P1,
501
501
  {
502
502
  sx: {
503
503
  ...Q,
@@ -525,14 +525,15 @@ const u3 = (t, o) => {
525
525
  }, g3 = A(f3), H3 = ({ field: t, isOpen: o, onClose: n }) => {
526
526
  const { updateAccount: c } = D(), { selectedAccount: i } = R(), { accounts: l } = V(), [d, a] = h.useState(i[t.name]), [r, L] = h.useState(""), [m, s] = h.useState(!0), _ = () => {
527
527
  a(""), L(""), n();
528
- }, M = () => {
528
+ }, y = () => {
529
529
  switch (t.type) {
530
530
  case J.Select:
531
- return /* @__PURE__ */ C(K1, { fullWidth: !0, children: [
532
- /* @__PURE__ */ e(Y1, { id: `${t.label}-select-label`, children: t.label }),
533
- /* @__PURE__ */ e(
531
+ return /* @__PURE__ */ C(Y1, { fullWidth: !0, children: [
532
+ /* @__PURE__ */ e(j1, { id: `${t.label}-select-label`, children: t.label }),
533
+ /* @__PURE__ */ C(
534
534
  J1,
535
535
  {
536
+ displayEmpty: !0,
536
537
  id: `${t.label}-select`,
537
538
  inputProps: {
538
539
  sx: {
@@ -542,9 +543,11 @@ const u3 = (t, o) => {
542
543
  label: t.label,
543
544
  labelId: `${t.label}-select-label`,
544
545
  onChange: (p) => a(p.target.value),
545
- placeholder: t.placeholder,
546
546
  value: d,
547
- 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
+ ]
548
551
  }
549
552
  )
550
553
  ] });
@@ -562,10 +565,10 @@ const u3 = (t, o) => {
562
565
  }
563
566
  );
564
567
  case J.Date:
565
- return /* @__PURE__ */ e(j1, { dateAdapter: G1, children: /* @__PURE__ */ e(
566
- z1,
568
+ return /* @__PURE__ */ e(X1, { dateAdapter: z1, children: /* @__PURE__ */ e(
569
+ K1,
567
570
  {
568
- maxDate: $1(/* @__PURE__ */ new Date(), 1),
571
+ maxDate: G1(/* @__PURE__ */ new Date(), 1),
569
572
  minDate: /* @__PURE__ */ new Date(),
570
573
  onChange: (p) => {
571
574
  i[t.name] && Number(i[t.name]) <= 31 ? a(p.getDate()) : a(p);
@@ -577,7 +580,7 @@ const u3 = (t, o) => {
577
580
  "& .MuiPickersArrowSwitcher-button": {
578
581
  color: "primary.lighter",
579
582
  "&:hover": {
580
- backgroundColor: (p) => w1(p.palette.primary.light, 0.1)
583
+ backgroundColor: (p) => x1(p.palette.primary.light, 0.1)
581
584
  }
582
585
  }
583
586
  },
@@ -595,7 +598,7 @@ const u3 = (t, o) => {
595
598
  inputProps: {
596
599
  "aria-label": t.placeholder
597
600
  },
598
- onChange: y,
601
+ onChange: M,
599
602
  placeholder: t.placeholder
600
603
  }
601
604
  );
@@ -605,7 +608,7 @@ const u3 = (t, o) => {
605
608
  ...i,
606
609
  [t.name]: d
607
610
  }), _();
608
- }, y = (p) => {
611
+ }, M = (p) => {
609
612
  a(p.target.value), t.validation && L(t.validation(p.target.value));
610
613
  };
611
614
  return /* @__PURE__ */ e(
@@ -627,16 +630,16 @@ const u3 = (t, o) => {
627
630
  outlineOffset: "2px"
628
631
  }
629
632
  },
630
- children: M()
633
+ children: y()
631
634
  }
632
635
  );
633
636
  }, v3 = A(H3), b3 = () => {
634
- const t = window.app?.config, { onEvent: o } = k(), { selectedAccount: n } = R(), { accounts: c } = V(), 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(
637
+ const t = window.app?.config, { onEvent: o } = k(), { selectedAccount: n } = R(), { accounts: c } = V(), i = I1(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(
635
638
  (s) => l || n[s.name] || n[s.name] === 0
636
639
  );
637
640
  return /* @__PURE__ */ C(S, { children: [
638
641
  m.map((s) => {
639
- const _ = n[s.name] || n[s.name] === 0, M = m.indexOf(s) === m.length - 1, w = /* @__PURE__ */ e(
642
+ const _ = n[s.name] || n[s.name] === 0, y = m.indexOf(s) === m.length - 1, w = /* @__PURE__ */ e(
640
643
  Z,
641
644
  {
642
645
  disableTypography: !0,
@@ -656,7 +659,7 @@ const u3 = (t, o) => {
656
659
  position: "absolute",
657
660
  bottom: 0,
658
661
  right: 0,
659
- left: M ? 0 : 24,
662
+ left: y ? 0 : 24,
660
663
  borderBottom: "1px solid",
661
664
  borderColor: "divider"
662
665
  }
@@ -686,7 +689,7 @@ const u3 = (t, o) => {
686
689
  position: "absolute",
687
690
  bottom: 0,
688
691
  right: 0,
689
- left: M ? 0 : 24,
692
+ left: y ? 0 : 24,
690
693
  borderBottom: "1px solid",
691
694
  borderColor: "divider"
692
695
  }
@@ -711,12 +714,12 @@ const u3 = (t, o) => {
711
714
  /* @__PURE__ */ e(g3, {}),
712
715
  /* @__PURE__ */ e(L3, {})
713
716
  ] });
714
- }, M3 = A(V3), y3 = ({ setTabValue: t }) => {
715
- const [o, n] = h.useState(!1), { selectedMember: c } = R(), { accounts: i, connect: l } = V(), d = c.connection_status && L1.includes(c.connection_status);
717
+ }, y3 = A(V3), M3 = ({ setTabValue: t }) => {
718
+ const [o, n] = h.useState(!1), { selectedMember: c } = R(), { accounts: i, connect: l } = V(), d = c.connection_status && f1.includes(c.connection_status);
716
719
  if (h.useEffect(() => {
717
720
  d && t(1);
718
721
  }, [d]), !d) return;
719
- const a = V1(c, l);
722
+ const a = y1(c, l);
720
723
  return /* @__PURE__ */ C(S, { children: [
721
724
  /* @__PURE__ */ e(
722
725
  o3,
@@ -729,7 +732,7 @@ const u3 = (t, o) => {
729
732
  children: /* @__PURE__ */ C(
730
733
  e3,
731
734
  {
732
- icon: /* @__PURE__ */ e(v1, { filled: !0 }),
735
+ icon: /* @__PURE__ */ e(b1, { filled: !0 }),
733
736
  role: "none",
734
737
  severity: "error",
735
738
  sx: {
@@ -768,8 +771,8 @@ const u3 = (t, o) => {
768
771
  }
769
772
  )
770
773
  ] });
771
- }, w3 = A(y3), x3 = () => {
772
- const [t, o] = h.useState(""), { onEvent: n } = k(), { selectedAccount: c } = R(), { accounts: i } = V(), { isTransactionDataLoaded: l, loadTransactionData: d, setFilter: a, sortedTransactions: r } = p1();
774
+ }, w3 = A(M3), x3 = () => {
775
+ const [t, o] = h.useState(""), { onEvent: n } = k(), { selectedAccount: c } = R(), { accounts: i } = V(), { isTransactionDataLoaded: l, loadTransactionData: d, setFilter: a, sortedTransactions: r } = _1();
773
776
  h.useEffect(() => {
774
777
  l || d().finally();
775
778
  }, []);
@@ -800,7 +803,7 @@ const u3 = (t, o) => {
800
803
  return /* @__PURE__ */ C(S, { children: [
801
804
  /* @__PURE__ */ e(w3, { setTabValue: o }),
802
805
  /* @__PURE__ */ C(
803
- Z1,
806
+ N1,
804
807
  {
805
808
  "aria-label": n.transactions_and_details_aria,
806
809
  centered: !0,
@@ -828,20 +831,20 @@ const u3 = (t, o) => {
828
831
  ]
829
832
  }
830
833
  ),
831
- /* @__PURE__ */ e(d1, { index: 0, name: "transaction-details", value: t, children: /* @__PURE__ */ e(R3, {}) }),
832
- /* @__PURE__ */ e(d1, { index: 1, name: "account-details", value: t, children: /* @__PURE__ */ e(M3, {}) })
834
+ /* @__PURE__ */ e(u1, { index: 0, name: "transaction-details", value: t, children: /* @__PURE__ */ e(R3, {}) }),
835
+ /* @__PURE__ */ e(u1, { index: 1, name: "account-details", value: t, children: /* @__PURE__ */ e(y3, {}) })
833
836
  ] });
834
837
  }, T3 = A(S3), E3 = () => {
835
- const [t, o] = h.useState(""), { config: n } = _1(), { accounts: c } = V(), { 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(
838
+ const [t, o] = h.useState(""), { config: n } = L1(), { accounts: c } = V(), { 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(
836
839
  () => i.filter((u) => u.is_hidden),
837
840
  [i]
838
841
  ), _ = h.useMemo(
839
842
  () => i.filter((u) => u.is_closed),
840
843
  [i]
841
- ), M = s.reduce(
844
+ ), y = s.reduce(
842
845
  (u, g) => (g.available_balance || g.balance || 0) + u,
843
846
  0
844
- ), w = I1(
847
+ ), w = Z1(
845
848
  _,
846
849
  c,
847
850
  n.display_available_balance_in_accounts
@@ -853,13 +856,13 @@ const u3 = (t, o) => {
853
856
  u && d(u);
854
857
  }
855
858
  }, [m, t]);
856
- const y = (u) => {
859
+ const M = (u) => {
857
860
  o(u.guid), r(x.ACCOUNTS_CLICK_ACCOUNT, {
858
861
  account_guid: u.guid,
859
862
  account_type: u.account_type
860
863
  });
861
864
  }, p = (u) => {
862
- const g = u === "hidden" ? s : _, K = u === "hidden" ? M : w, b = u === "hidden" ? c.account_hidden : c.account_closed;
865
+ const g = u === "hidden" ? s : _, K = u === "hidden" ? y : w, b = u === "hidden" ? c.account_hidden : c.account_closed;
863
866
  return /* @__PURE__ */ e(a1, { children: /* @__PURE__ */ e(
864
867
  O,
865
868
  {
@@ -872,7 +875,7 @@ const u3 = (t, o) => {
872
875
  sx: { justifyContent: "space-between", color: "grey.700" },
873
876
  children: [
874
877
  /* @__PURE__ */ e(v, { bold: !0, variant: "body1", children: b }),
875
- /* @__PURE__ */ e(v, { bold: !0, variant: "body1", children: u1(K, "0,0.00") })
878
+ /* @__PURE__ */ e(v, { bold: !0, variant: "body1", children: C1(K, "0,0.00") })
876
879
  ]
877
880
  }
878
881
  ) }),
@@ -883,7 +886,7 @@ const u3 = (t, o) => {
883
886
  U,
884
887
  {
885
888
  account: T,
886
- onRowClick: () => y(T),
889
+ onRowClick: () => M(T),
887
890
  shouldShowConnectionStatus: !0
888
891
  }
889
892
  ),
@@ -929,7 +932,7 @@ const u3 = (t, o) => {
929
932
  sx: { display: "flex", justifyContent: "space-between" },
930
933
  children: [
931
934
  /* @__PURE__ */ e(v, { bold: !0, variant: "body1", children: c.account_types[u] }),
932
- /* @__PURE__ */ e(v, { bold: !0, variant: "body1", children: u1(K, "0,0.00") })
935
+ /* @__PURE__ */ e(v, { bold: !0, variant: "body1", children: C1(K, "0,0.00") })
933
936
  ]
934
937
  }
935
938
  ) }),
@@ -940,7 +943,7 @@ const u3 = (t, o) => {
940
943
  U,
941
944
  {
942
945
  account: b,
943
- onRowClick: () => y(b),
946
+ onRowClick: () => M(b),
944
947
  shouldShowConnectionStatus: !0
945
948
  }
946
949
  ),
@@ -969,14 +972,14 @@ const u3 = (t, o) => {
969
972
  onClose: () => o(""),
970
973
  title: c.account_details,
971
974
  children: [
972
- /* @__PURE__ */ e(x1, { ChartComponent: m3 }),
975
+ /* @__PURE__ */ e(R1, { ChartComponent: m3 }),
973
976
  /* @__PURE__ */ e(T3, {})
974
977
  ]
975
978
  }
976
979
  )
977
980
  ] });
978
981
  }, D3 = A(E3), k3 = ({ onBackClick: t, onMenuClick: o, sx: n = {} }) => {
979
- const [c, i] = h.useState(!1), [l, d] = h.useState(!1), { config: a } = _1(), { isAccountDataLoaded: r, loadAccountData: L } = D(), { accounts: m, connect: s } = V(), { isInitialized: _, selectedAccountGuids: M } = G(), { isDesktop: w } = b1(), { onEvent: y } = k();
982
+ const [c, i] = h.useState(!1), [l, d] = h.useState(!1), { config: a } = L1(), { isAccountDataLoaded: r, loadAccountData: L } = D(), { accounts: m, connect: s } = V(), { isInitialized: _, selectedAccountGuids: y } = G(), { isDesktop: w } = A1(), { onEvent: M } = k();
980
983
  o1({
981
984
  widgetName: "AccountsWidget",
982
985
  isLoaded: r
@@ -984,9 +987,9 @@ const u3 = (t, o) => {
984
987
  r || L().finally();
985
988
  }, []);
986
989
  const p = () => {
987
- i(!0), y(x.ACCOUNTS_CLICK_CONNECT);
990
+ i(!0), M(x.ACCOUNTS_CLICK_CONNECT);
988
991
  }, u = () => {
989
- d(!0), y(x.ACCOUNTS_CLICK_CONNECT);
992
+ d(!0), M(x.ACCOUNTS_CLICK_CONNECT);
990
993
  };
991
994
  return _ ? /* @__PURE__ */ C(
992
995
  d3,
@@ -1000,16 +1003,16 @@ const u3 = (t, o) => {
1000
1003
  }
1001
1004
  ] : [],
1002
1005
  hasDivider: !0,
1003
- onAccountsFilterClick: () => y(x.ACCOUNTS_CLICK_FILTER),
1006
+ onAccountsFilterClick: () => M(x.ACCOUNTS_CLICK_FILTER),
1004
1007
  onBackClick: t,
1005
1008
  onMenuClick: o,
1006
1009
  sx: n,
1007
1010
  title: m.title,
1008
1011
  children: [
1009
1012
  r ? /* @__PURE__ */ C(t1, { children: [
1010
- M.length < 1 && /* @__PURE__ */ e(v, { display: "flex", justifyContent: "center", my: 24, children: m.no_accounts }),
1013
+ y.length < 1 && /* @__PURE__ */ e(v, { display: "flex", justifyContent: "center", my: 24, children: m.no_accounts }),
1011
1014
  /* @__PURE__ */ e(D3, {})
1012
- ] }) : /* @__PURE__ */ e(m1, { sx: { px: w ? 48 : 24, pt: 24 }, variant: "list" }),
1015
+ ] }) : /* @__PURE__ */ e(p1, { sx: { px: w ? 48 : 24, pt: 24 }, variant: "list" }),
1013
1016
  /* @__PURE__ */ e(
1014
1017
  z,
1015
1018
  {
@@ -1036,8 +1039,8 @@ function I3(t) {
1036
1039
  { heldAccounts: [], externalAccounts: [] }
1037
1040
  );
1038
1041
  return {
1039
- heldAccounts: h1(o),
1040
- externalAccounts: h1(n)
1042
+ heldAccounts: m1(o),
1043
+ externalAccounts: m1(n)
1041
1044
  };
1042
1045
  }
1043
1046
  function Z3(t, o) {
@@ -1048,13 +1051,13 @@ const N3 = {
1048
1051
  [I.CHECKING]: 1,
1049
1052
  [I.SAVINGS]: 2,
1050
1053
  [I.CREDIT_CARD]: 3
1051
- }, C1 = (t) => N3[t] ?? t + 100, h1 = (t) => t.sort((o, n) => {
1052
- const c = C1(o.account_type), i = C1(n.account_type), l = c - i;
1054
+ }, h1 = (t) => N3[t] ?? t + 100, m1 = (t) => t.sort((o, n) => {
1055
+ const c = h1(o.account_type), i = h1(n.account_type), l = c - i;
1053
1056
  if (l !== 0) return l;
1054
1057
  const d = o.name ?? o.feed_name ?? "", a = n.name ?? n.feed_name ?? "";
1055
1058
  return d.localeCompare(a);
1056
1059
  }), O3 = ({ onPrimaryCtaClick: t, sx: o }) => {
1057
- const { isAccountDataLoaded: n, loadAccountData: c } = D(), { accounts: i } = V(), { isInitialized: l, selectedAccounts: d } = G(), { isDesktop: a } = b1();
1060
+ const { isAccountDataLoaded: n, loadAccountData: c } = D(), { accounts: i } = V(), { isInitialized: l, selectedAccounts: d } = G(), { isDesktop: a } = A1();
1058
1061
  o1({
1059
1062
  widgetName: "AccountsMiniWidget",
1060
1063
  isLoaded: l
@@ -1066,7 +1069,7 @@ const N3 = {
1066
1069
  [d, a]
1067
1070
  );
1068
1071
  return l ? /* @__PURE__ */ e(
1069
- A1,
1072
+ V1,
1070
1073
  {
1071
1074
  className: "mx-exp-accounts-miniwidget",
1072
1075
  onPrimaryCtaClick: t,
@@ -1089,7 +1092,7 @@ const N3 = {
1089
1092
  !s && /* @__PURE__ */ e(W, { "aria-hidden": "true", variant: "inset" })
1090
1093
  ] }, `account-item${m}`);
1091
1094
  })
1092
- ] }) : /* @__PURE__ */ e(m1, { sx: { px: 12, py: 8 }, variant: "list" })
1095
+ ] }) : /* @__PURE__ */ e(p1, { sx: { px: 12, py: 8 }, variant: "list" })
1093
1096
  }
1094
1097
  ) : /* @__PURE__ */ e(i1, {});
1095
1098
  }, t2 = A(O3), F3 = () => /* @__PURE__ */ C(
@@ -1560,7 +1563,7 @@ const N3 = {
1560
1563
  widgetName: "ConnectMiniWidget",
1561
1564
  isLoaded: n
1562
1565
  }), n ? /* @__PURE__ */ C(
1563
- A1,
1566
+ V1,
1564
1567
  {
1565
1568
  className: "mx-exp-connect-miniwidget",
1566
1569
  onPrimaryCtaClick: d,
@@ -1583,7 +1586,7 @@ const N3 = {
1583
1586
  }, n2 = A(B3);
1584
1587
  export {
1585
1588
  T3 as AccountDetailsContent,
1586
- x1 as AccountDetailsHeader,
1589
+ R1 as AccountDetailsHeader,
1587
1590
  r2 as AccountStore,
1588
1591
  t2 as AccountsMiniWidget,
1589
1592
  e2 as AccountsWidget,
@@ -1591,7 +1594,7 @@ export {
1591
1594
  J as FieldType,
1592
1595
  s2 as MemberConnectionStatus,
1593
1596
  c2 as getAccountBalanceDetails,
1594
- k1 as getAccountDetailFields,
1597
+ I1 as getAccountDetailFields,
1595
1598
  R as useAccountUiStore,
1596
1599
  p3 as useGetMergeableAccounts
1597
1600
  };
@@ -1,7 +1,7 @@
1
1
  import { jsx as e, jsxs as c } from "react/jsx-runtime";
2
2
  import n from "react";
3
3
  import { observer as p } from "mobx-react-lite";
4
- import u from "@mui/material/Unstable_Grid2";
4
+ import u from "@mui/material/Grid2";
5
5
  import m from "@mui/material/Skeleton";
6
6
  import s from "@mui/material/Stack";
7
7
  import S from "@mui/material/styles/useTheme";
@@ -9,14 +9,14 @@ import { f as w, u as b, a as v } from "../hooks-HwStH7q_.mjs";
9
9
  import C from "@mui/material/Paper";
10
10
  import { Icon as _, H2 as M, P as D } from "@mxenabled/mxui";
11
11
  import { useMediaQuery as G } from "@mui/system";
12
- import W from "@mui/material/Box";
13
- import k from "@mui/material/Button";
14
- import A from "@mui/material/IconButton";
15
- import I from "@mui/material/Tooltip";
16
- import B from "@mui/material/useMediaQuery";
17
- import { G as F } from "../GlobalAccountFilter-CZbiDwBH.mjs";
12
+ import z from "@mui/material/Box";
13
+ import W from "@mui/material/Button";
14
+ import k from "@mui/material/IconButton";
15
+ import A from "@mui/material/Tooltip";
16
+ import I from "@mui/material/useMediaQuery";
17
+ import { G as B } from "../GlobalAccountFilter-CZbiDwBH.mjs";
18
18
  import { u as y } from "../useScreenSize-CeFhWTt_.mjs";
19
- import { C as z } from "../ConnectDrawer-5BpU4IQU.mjs";
19
+ import { C as F } from "../ConnectDrawer-5BpU4IQU.mjs";
20
20
  import { u as R } from "../useWidgetLoadTimer-wkBTL5xx.mjs";
21
21
  const T = p(() => {
22
22
  const t = S(), {
@@ -58,9 +58,9 @@ const T = p(() => {
58
58
  }
59
59
  ) : null;
60
60
  }), $ = ({ handleConnectClick: t }) => {
61
- const { common: o } = b(), i = B("(max-width: 700px)");
62
- return /* @__PURE__ */ e(W, { children: i ? /* @__PURE__ */ e(I, { id: "add-accounts", placement: "bottom", title: o.add_accounts, children: /* @__PURE__ */ e(
63
- A,
61
+ const { common: o } = b(), i = I("(max-width: 700px)");
62
+ return /* @__PURE__ */ e(z, { children: i ? /* @__PURE__ */ e(A, { id: "add-accounts", placement: "bottom", title: o.add_accounts, children: /* @__PURE__ */ e(
63
+ k,
64
64
  {
65
65
  "aria-controls": "add_accounts",
66
66
  "aria-describedby": "add-accounts",
@@ -71,7 +71,7 @@ const T = p(() => {
71
71
  children: /* @__PURE__ */ e(_, { name: "add", size: 24 })
72
72
  }
73
73
  ) }) : /* @__PURE__ */ e(
74
- k,
74
+ W,
75
75
  {
76
76
  "aria-controls": "add_accounts",
77
77
  "aria-haspopup": !0,
@@ -100,11 +100,11 @@ const T = p(() => {
100
100
  ] }),
101
101
  /* @__PURE__ */ c(s, { flexDirection: "row", children: [
102
102
  d.show_connections_widget_in_master && /* @__PURE__ */ e(j, { handleConnectClick: () => o(!0) }),
103
- /* @__PURE__ */ e(F, {})
103
+ /* @__PURE__ */ e(B, {})
104
104
  ] })
105
105
  ] }) }),
106
106
  t && /* @__PURE__ */ e(
107
- z,
107
+ F,
108
108
  {
109
109
  onClose: () => o(!1),
110
110
  showConnectWidget: t,
@@ -131,8 +131,8 @@ const P = ({ widgets: t, isLoading: o }) => {
131
131
  [d]
132
132
  );
133
133
  return /* @__PURE__ */ c(u, { container: !0, spacing: a ? 0 : 24, sx: { overflow: "scroll" }, children: [
134
- /* @__PURE__ */ e(u, { sx: { pt: 16 }, xs: 12, children: f.isInitialized && /* @__PURE__ */ e(H, {}) }),
135
- /* @__PURE__ */ c(u, { lg: 8, xs: 12, children: [
134
+ /* @__PURE__ */ e(u, { size: 12, sx: { pt: 16 }, children: f.isInitialized && /* @__PURE__ */ e(H, {}) }),
135
+ /* @__PURE__ */ c(u, { size: { xs: 12, lg: 8 }, children: [
136
136
  /* @__PURE__ */ e(T, {}),
137
137
  o && /* @__PURE__ */ c(s, { direction: "column", spacing: 24, children: [
138
138
  /* @__PURE__ */ e(m, { height: 100, variant: "rounded", width: "100%" }),
@@ -141,7 +141,7 @@ const P = ({ widgets: t, isLoading: o }) => {
141
141
  ] }),
142
142
  !o && /* @__PURE__ */ e(s, { direction: "column", spacing: 24, children: i ? g.map((r) => /* @__PURE__ */ e(n.Fragment, { children: r.component }, r.index)) : d.map((r) => /* @__PURE__ */ e(n.Fragment, { children: r.component }, r.index)) })
143
143
  ] }),
144
- i && /* @__PURE__ */ e(u, { lg: 4, children: o ? /* @__PURE__ */ c(s, { direction: "column", spacing: 24, children: [
144
+ i && /* @__PURE__ */ e(u, { size: { lg: 4 }, children: o ? /* @__PURE__ */ c(s, { direction: "column", spacing: 24, children: [
145
145
  /* @__PURE__ */ e(m, { height: 200, variant: "rounded", width: "100%" }),
146
146
  /* @__PURE__ */ e(m, { height: 100, variant: "rounded", width: "100%" }),
147
147
  /* @__PURE__ */ e(m, { height: 300, variant: "rounded", width: "100%" })