@mx-cartographer/experiences 7.4.13 → 7.4.15

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [7.4.15] - 12-22-2025
2
+
3
+ - **FIXED** - Spending Total Amount Discrepancies wrt legacy - Bug Fixed
4
+
5
+ ## [7.4.14] - 12-19-2025
6
+
7
+ - **FIXED** - button focus styles in Dialog, MicroWidgetContainer, and MiniWidgetContainer
8
+
1
9
  ## [7.4.13] - 12-19-2025
2
10
 
3
11
  - **FIXED** - Impove a11y compliance for Drawer component
@@ -1,21 +1,21 @@
1
- import { jsxs as d, Fragment as g, jsx as t } from "react/jsx-runtime";
1
+ import { jsxs as u, Fragment as g, jsx as t } from "react/jsx-runtime";
2
2
  import _ from "react";
3
3
  import { observer as T } from "mobx-react-lite";
4
- import H from "@mui/material/Tab";
4
+ import B from "@mui/material/Tab";
5
5
  import nt from "@mui/material/Tabs";
6
6
  import $ from "@mui/material/List";
7
7
  import Y from "@mui/material/ListSubheader";
8
8
  import ot from "@mui/material/Switch";
9
- import { Text as b, Icon as I, THEMES as G } from "@mxenabled/mxui";
10
- import M from "@mui/material/Divider";
9
+ import { Text as b, Icon as k, THEMES as H } from "@mxenabled/mxui";
10
+ import I from "@mui/material/Divider";
11
11
  import v from "@mui/material/ListItem";
12
12
  import N from "@mui/material/ListItemButton";
13
13
  import w from "@mui/material/ListItemText";
14
14
  import { u as D } from "./AccountDetailsHeader-BkG3MNYo.mjs";
15
15
  import { d as z, u as E, g as O, h as X } from "./hooks-ZMp65DFz.mjs";
16
16
  import { A as at } from "./AccountListItem-DHrz8Mml.mjs";
17
- import { A as k } from "./WidgetContainer-CoFDmQRE.mjs";
18
- import { D as V, f as B, a as K } from "./Dialog-BPTr3qHE.mjs";
17
+ import { A as M } from "./WidgetContainer-CoFDmQRE.mjs";
18
+ import { D as V, f as G, a as K } from "./Dialog-BPTr3qHE.mjs";
19
19
  import { b as h } from "./Localization-2MODESHW.mjs";
20
20
  import { D as J } from "./Drawer-By9V-B5L.mjs";
21
21
  import P from "@mui/material/ListItemAvatar";
@@ -24,8 +24,8 @@ import st from "@mui/material/styles/useTheme";
24
24
  import { Error as q, CheckCircle as it, Language as rt } from "@mxenabled/mx-icons";
25
25
  import { n as m, N as Q, l as Z, F as R } from "./ConnectDrawer-BkvlItWx.mjs";
26
26
  import { fromUnixTime as lt } from "date-fns/fromUnixTime";
27
- import { isToday as dt } from "date-fns/isToday";
28
- import { isYesterday as ut } from "date-fns/isYesterday";
27
+ import { isToday as ut } from "date-fns/isToday";
28
+ import { isYesterday as dt } from "date-fns/isYesterday";
29
29
  import { I as F } from "./IconBacking-B9oC6uL2.mjs";
30
30
  import { addMonths as _t } from "date-fns/addMonths";
31
31
  import { alpha as mt } from "@mui/material/styles";
@@ -43,7 +43,7 @@ import Et from "@mui/material/Alert";
43
43
  import yt from "@mui/material/AlertTitle";
44
44
  import xt from "@mui/material/Link";
45
45
  import wt from "@mui/material/Paper";
46
- import { subDays as kt, startOfToday as It, endOfToday as Mt } from "date-fns";
46
+ import { subDays as Mt, startOfToday as kt, endOfToday as It } from "date-fns";
47
47
  import { T as vt, a as Lt } from "./TransactionDetails-m5PddMQn.mjs";
48
48
  import { T as j } from "./TabContentContainer-j01JYR_7.mjs";
49
49
  const U = ({
@@ -52,19 +52,19 @@ const U = ({
52
52
  onClick: n,
53
53
  primaryText: c,
54
54
  secondaryText: i
55
- }) => /* @__PURE__ */ d(g, { children: [
56
- /* @__PURE__ */ t(v, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ d(N, { onClick: n, children: [
55
+ }) => /* @__PURE__ */ u(g, { children: [
56
+ /* @__PURE__ */ t(v, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ u(N, { onClick: n, children: [
57
57
  /* @__PURE__ */ t(w, { primary: c, secondary: i }),
58
58
  e
59
59
  ] }) }),
60
- /* @__PURE__ */ t(M, { sx: { ml: o ? 0 : 24 } })
60
+ /* @__PURE__ */ t(I, { sx: { ml: o ? 0 : 24 } })
61
61
  ] }), Nt = () => {
62
62
  const { accounts: e } = z(), { selectedAccount: o, selectedMember: n } = D();
63
63
  return e.filter(
64
64
  (c) => c.member_guid === n.guid && n.successfully_aggregated_at && c.guid !== o.guid
65
65
  );
66
66
  }, Ot = () => {
67
- const [e, o] = _.useState(!1), [n, c] = _.useState(!1), [i, u] = _.useState(!1), [l, s] = _.useState({}), { selectedAccount: r } = D(), { mergeAccounts: y, updateAccount: S } = z(), { accounts: a } = E(), C = Nt(), { onEvent: A } = O(), { modifyTransactionByAccountGuid: x } = X(), L = async (f) => {
67
+ const [e, o] = _.useState(!1), [n, c] = _.useState(!1), [i, d] = _.useState(!1), [l, s] = _.useState({}), { selectedAccount: r } = D(), { mergeAccounts: y, updateAccount: S } = z(), { accounts: a } = E(), C = Nt(), { onEvent: A } = O(), { modifyTransactionByAccountGuid: x } = X(), L = async (f) => {
68
68
  await S({
69
69
  ...r,
70
70
  ...f
@@ -74,13 +74,13 @@ const U = ({
74
74
  () => c(!1)
75
75
  );
76
76
  };
77
- return /* @__PURE__ */ d(g, { children: [
77
+ return /* @__PURE__ */ u(g, { children: [
78
78
  /* @__PURE__ */ t(Y, { sx: { backgroundColor: "transparent", mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(b, { bold: !0, component: "h2", variant: "XSmall", children: a.actions }) }),
79
79
  /* @__PURE__ */ t(
80
80
  U,
81
81
  {
82
82
  onClick: () => {
83
- L({ is_hidden: !r.is_hidden }), A(k.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: r.guid });
83
+ L({ is_hidden: !r.is_hidden }), A(M.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: r.guid });
84
84
  },
85
85
  primaryText: r.is_hidden ? a.unhide_account : a.hide_Account,
86
86
  secondaryText: r.is_hidden ? a.include_this_account : a.exclude_this_account,
@@ -91,13 +91,13 @@ const U = ({
91
91
  U,
92
92
  {
93
93
  onClick: () => {
94
- o(!0), A(k.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
94
+ o(!0), A(M.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
95
95
  account_guid: r.guid
96
96
  });
97
97
  },
98
98
  primaryText: r.is_closed ? a.mark_as_open : a.mark_as_closed,
99
99
  secondaryText: r.is_closed ? a.this_will_set_the_closed_account : a.this_will_set_the_account_balance_to_0,
100
- children: /* @__PURE__ */ t(I, { name: "chevron_right" })
100
+ children: /* @__PURE__ */ t(k, { name: "chevron_right" })
101
101
  }
102
102
  ),
103
103
  C.length > 0 && /* @__PURE__ */ t(
@@ -105,13 +105,13 @@ const U = ({
105
105
  {
106
106
  isLast: !0,
107
107
  onClick: () => {
108
- c(!0), A(k.ACCOUNT_DETAILS_CLICK_MARK_DUPLICATE, {
108
+ c(!0), A(M.ACCOUNT_DETAILS_CLICK_MARK_DUPLICATE, {
109
109
  account_guid: r.guid
110
110
  });
111
111
  },
112
112
  primaryText: a.mark_as_duplicate,
113
113
  secondaryText: a.if_a_connected_account_is_showing_up_twice,
114
- children: /* @__PURE__ */ t(I, { name: "chevron_right" })
114
+ children: /* @__PURE__ */ t(k, { name: "chevron_right" })
115
115
  }
116
116
  ),
117
117
  /* @__PURE__ */ t(
@@ -141,13 +141,13 @@ const U = ({
141
141
  title: a.mark_as_duplicate,
142
142
  children: /* @__PURE__ */ t($, { children: C.map((f) => {
143
143
  const et = C.indexOf(f) === C.length - 1;
144
- return /* @__PURE__ */ d(_.Fragment, { children: [
144
+ return /* @__PURE__ */ u(_.Fragment, { children: [
145
145
  /* @__PURE__ */ t(
146
146
  at,
147
147
  {
148
148
  account: f,
149
149
  onRowClick: () => {
150
- u(!0), s(f);
150
+ d(!0), s(f);
151
151
  }
152
152
  }
153
153
  ),
@@ -156,7 +156,7 @@ const U = ({
156
156
  }) })
157
157
  }
158
158
  ),
159
- i && /* @__PURE__ */ d(
159
+ i && /* @__PURE__ */ u(
160
160
  V,
161
161
  {
162
162
  copy: {
@@ -164,7 +164,7 @@ const U = ({
164
164
  title: a.confirm_merge
165
165
  },
166
166
  isOpen: i,
167
- onClose: () => u(!1),
167
+ onClose: () => d(!1),
168
168
  onPrimaryAction: p,
169
169
  children: [
170
170
  /* @__PURE__ */ t(b, { truncate: !1, children: h(
@@ -314,12 +314,12 @@ const U = ({
314
314
  };
315
315
  default: {
316
316
  const c = () => {
317
- const i = e.successfully_aggregated_at ? lt(e.successfully_aggregated_at) : void 0, u = i && B(i, K.TIME_STAMP_HOUR_MINUTE);
318
- if (u)
319
- return dt(i) ? h(o.last_updated_at, o.today, u) : ut(i) ? h(o.last_updated_at, o.yesterday, u) : h(
317
+ const i = e.successfully_aggregated_at ? lt(e.successfully_aggregated_at) : void 0, d = i && G(i, K.TIME_STAMP_HOUR_MINUTE);
318
+ if (d)
319
+ return ut(i) ? h(o.last_updated_at, o.today, d) : dt(i) ? h(o.last_updated_at, o.yesterday, d) : h(
320
320
  o.last_updated_at,
321
- B(i, K.MONTH_DAY_YEAR),
322
- u
321
+ G(i, K.MONTH_DAY_YEAR),
322
+ d
323
323
  );
324
324
  };
325
325
  return {
@@ -338,7 +338,7 @@ const U = ({
338
338
  }, Rt = () => {
339
339
  const [e, o] = _.useState(!1), {
340
340
  palette: { mode: n }
341
- } = st(), { selectedMember: c } = D(), { accounts: i, connect: u } = E(), l = tt(c, u), s = Q.includes(c.connection_status) ? {
341
+ } = st(), { selectedMember: c } = D(), { accounts: i, connect: d } = E(), l = tt(c, d), s = Q.includes(c.connection_status) ? {
342
342
  color: "error.main",
343
343
  ctaCopy: l.cta ?? "",
344
344
  icon: /* @__PURE__ */ t(q, { filled: !0, sx: { ...W } }),
@@ -350,34 +350,34 @@ const U = ({
350
350
  mainMessage: l.statusName,
351
351
  secondaryMessage: l.title
352
352
  };
353
- return /* @__PURE__ */ d(g, { children: [
353
+ return /* @__PURE__ */ u(g, { children: [
354
354
  /* @__PURE__ */ t(Y, { sx: { mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(b, { bold: !0, component: "h2", variant: "XSmall", children: i.connection_status }) }),
355
- /* @__PURE__ */ t(v, { sx: { backgroundColor: "background.paper" }, children: c.is_manual || !s.ctaCopy ? /* @__PURE__ */ d(ct, { alignItems: "center", direction: "row", px: 24, py: 12, children: [
355
+ /* @__PURE__ */ t(v, { sx: { backgroundColor: "background.paper" }, children: c.is_manual || !s.ctaCopy ? /* @__PURE__ */ u(ct, { alignItems: "center", direction: "row", px: 24, py: 12, children: [
356
356
  /* @__PURE__ */ t(P, { children: /* @__PURE__ */ t(F, { backingSx: { backgroundColor: s.color, borderRadius: 1 }, size: 32, children: s.icon }) }),
357
357
  /* @__PURE__ */ t(w, { primary: s.mainMessage, secondary: s.secondaryMessage })
358
- ] }) : /* @__PURE__ */ d(N, { onClick: () => o(!0), children: [
358
+ ] }) : /* @__PURE__ */ u(N, { onClick: () => o(!0), children: [
359
359
  /* @__PURE__ */ t(P, { children: /* @__PURE__ */ t(F, { backingSx: { backgroundColor: s.color, borderRadius: 1 }, size: 32, children: s.icon }) }),
360
360
  /* @__PURE__ */ t(
361
361
  w,
362
362
  {
363
363
  primary: s.mainMessage,
364
- secondary: s.secondaryMessage && /* @__PURE__ */ d(g, { children: [
364
+ secondary: s.secondaryMessage && /* @__PURE__ */ u(g, { children: [
365
365
  s.secondaryMessage,
366
366
  " ",
367
367
  /* @__PURE__ */ t(b, { bold: !0, sx: { color: "action.active" }, variant: "XSmall", children: s.ctaCopy })
368
368
  ] })
369
369
  }
370
370
  ),
371
- /* @__PURE__ */ t(I, { name: "chevron_right" })
371
+ /* @__PURE__ */ t(k, { name: "chevron_right" })
372
372
  ] }) }),
373
- /* @__PURE__ */ t(M, { sx: { ml: c.is_manual || !c.institution_url ? 0 : 24 } }),
374
- !c.is_manual && c.institution_url && /* @__PURE__ */ d(g, { children: [
375
- /* @__PURE__ */ t(v, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ d(N, { component: "a", href: c.institution_url, target: "_blank", children: [
373
+ /* @__PURE__ */ t(I, { sx: { ml: c.is_manual || !c.institution_url ? 0 : 24 } }),
374
+ !c.is_manual && c.institution_url && /* @__PURE__ */ u(g, { children: [
375
+ /* @__PURE__ */ t(v, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ u(N, { component: "a", href: c.institution_url, target: "_blank", children: [
376
376
  /* @__PURE__ */ t(P, { children: /* @__PURE__ */ t(
377
377
  F,
378
378
  {
379
379
  backingSx: {
380
- backgroundColor: n === G.LIGHT ? "grey.300" : "grey.700",
380
+ backgroundColor: n === H.LIGHT ? "grey.300" : "grey.700",
381
381
  borderRadius: 1
382
382
  },
383
383
  size: 32,
@@ -386,16 +386,16 @@ const U = ({
386
386
  {
387
387
  sx: {
388
388
  ...W,
389
- color: n === G.LIGHT ? "grey.900" : "common.white"
389
+ color: n === H.LIGHT ? "grey.900" : "common.white"
390
390
  }
391
391
  }
392
392
  )
393
393
  }
394
394
  ) }),
395
395
  /* @__PURE__ */ t(w, { primary: c.name, secondary: c.institution_url }),
396
- /* @__PURE__ */ t(I, { name: "launch" })
396
+ /* @__PURE__ */ t(k, { name: "launch" })
397
397
  ] }) }),
398
- /* @__PURE__ */ t(M, {})
398
+ /* @__PURE__ */ t(I, {})
399
399
  ] }),
400
400
  e && /* @__PURE__ */ t(
401
401
  Z,
@@ -408,12 +408,12 @@ const U = ({
408
408
  )
409
409
  ] });
410
410
  }, Ft = T(Rt), Ut = ({ field: e, isOpen: o, onClose: n }) => {
411
- const { updateAccount: c } = z(), { selectedAccount: i } = D(), { accounts: u } = E(), [l, s] = _.useState(i[e.name]), [r, y] = _.useState(""), [S, a] = _.useState(!0), C = () => {
411
+ const { updateAccount: c } = z(), { selectedAccount: i } = D(), { accounts: d } = E(), [l, s] = _.useState(i[e.name]), [r, y] = _.useState(""), [S, a] = _.useState(!0), C = () => {
412
412
  s(""), y(""), n();
413
413
  }, A = () => {
414
414
  switch (e.type) {
415
415
  case R.Select:
416
- return /* @__PURE__ */ d(gt, { fullWidth: !0, children: [
416
+ return /* @__PURE__ */ u(gt, { fullWidth: !0, children: [
417
417
  /* @__PURE__ */ t(Ct, { id: `${e.label}-select-label`, children: e.label }),
418
418
  /* @__PURE__ */ t(
419
419
  At,
@@ -497,22 +497,29 @@ const U = ({
497
497
  V,
498
498
  {
499
499
  copy: {
500
- close_aria: u.close_aria,
501
- title: h(u.edit_field, e.label)
500
+ close_aria: d.close_aria,
501
+ title: h(d.edit_field, e.label)
502
502
  },
503
503
  disablePrimaryButton: !!r || !S,
504
504
  isOpen: o,
505
505
  onClose: C,
506
506
  onPrimaryAction: x,
507
- primaryText: u.save,
507
+ primaryText: d.save,
508
+ sx: {
509
+ "& .MuiButton-root:focus-visible, & .MuiButton-root:focus": {
510
+ outline: "2px solid",
511
+ outlineColor: "primary.main",
512
+ outlineOffset: "2px"
513
+ }
514
+ },
508
515
  children: A()
509
516
  }
510
517
  );
511
518
  }, Wt = T(Ut), $t = () => {
512
- const e = window.app?.config, { onEvent: o } = O(), { selectedAccount: n } = D(), { accounts: c } = E(), i = Dt(n, c), u = n.member_is_managed_by_user || !n.member_is_managed_by_user && e.enable_renaming_home_accounts, [l, s] = _.useState(!1), [r, y] = _.useState(i[0]), S = i.filter(
513
- (a) => u || n[a.name] || n[a.name] === 0
519
+ const e = window.app?.config, { onEvent: o } = O(), { selectedAccount: n } = D(), { accounts: c } = E(), i = Dt(n, c), d = n.member_is_managed_by_user || !n.member_is_managed_by_user && e.enable_renaming_home_accounts, [l, s] = _.useState(!1), [r, y] = _.useState(i[0]), S = i.filter(
520
+ (a) => d || n[a.name] || n[a.name] === 0
514
521
  );
515
- return /* @__PURE__ */ d(g, { children: [
522
+ return /* @__PURE__ */ u(g, { children: [
516
523
  S.map((a) => {
517
524
  const C = n[a.name] || n[a.name] === 0, A = S.indexOf(a) === S.length - 1, x = /* @__PURE__ */ t(
518
525
  w,
@@ -522,8 +529,8 @@ const U = ({
522
529
  secondary: /* @__PURE__ */ t(b, { bold: !0, sx: { fontSize: 15 }, children: C ? a.valueFormatter(n[a.name]) : a.placeholder })
523
530
  }
524
531
  );
525
- return /* @__PURE__ */ t(_.Fragment, { children: u ? /* @__PURE__ */ d(g, { children: [
526
- /* @__PURE__ */ t(v, { sx: { backgroundColor: "background.paper", px: 0 }, children: /* @__PURE__ */ d(
532
+ return /* @__PURE__ */ t(_.Fragment, { children: d ? /* @__PURE__ */ u(g, { children: [
533
+ /* @__PURE__ */ t(v, { sx: { backgroundColor: "background.paper", px: 0 }, children: /* @__PURE__ */ u(
527
534
  N,
528
535
  {
529
536
  onClick: () => {
@@ -531,14 +538,14 @@ const U = ({
531
538
  },
532
539
  children: [
533
540
  x,
534
- /* @__PURE__ */ t(I, { name: "chevron_right" })
541
+ /* @__PURE__ */ t(k, { name: "chevron_right" })
535
542
  ]
536
543
  }
537
544
  ) }),
538
- /* @__PURE__ */ t(M, { sx: { ml: A ? 0 : 24 } })
539
- ] }) : C && /* @__PURE__ */ d(g, { children: [
545
+ /* @__PURE__ */ t(I, { sx: { ml: A ? 0 : 24 } })
546
+ ] }) : C && /* @__PURE__ */ u(g, { children: [
540
547
  /* @__PURE__ */ t(v, { sx: { backgroundColor: "background.paper", px: 24 }, children: x }),
541
- /* @__PURE__ */ t(M, { sx: { ml: A ? 0 : 24 } })
548
+ /* @__PURE__ */ t(I, { sx: { ml: A ? 0 : 24 } })
542
549
  ] }) }, a.name);
543
550
  }),
544
551
  l && r && /* @__PURE__ */ t(
@@ -552,18 +559,18 @@ const U = ({
552
559
  ] });
553
560
  }, Vt = T($t), zt = () => {
554
561
  const { onEvent: e } = O();
555
- return _.useEffect(() => e(k.ACCOUNT_DETAILS_VIEW), []), /* @__PURE__ */ d($, { children: [
562
+ return _.useEffect(() => e(M.ACCOUNT_DETAILS_VIEW), []), /* @__PURE__ */ u($, { children: [
556
563
  /* @__PURE__ */ t(Vt, {}),
557
564
  /* @__PURE__ */ t(Ft, {}),
558
565
  /* @__PURE__ */ t(Pt, {})
559
566
  ] });
560
- }, Ht = T(zt), Gt = ({ setTabValue: e }) => {
561
- const [o, n] = _.useState(!1), { selectedMember: c } = D(), { accounts: i, connect: u } = E(), l = c.connection_status && Q.includes(c.connection_status);
567
+ }, Bt = T(zt), Ht = ({ setTabValue: e }) => {
568
+ const [o, n] = _.useState(!1), { selectedMember: c } = D(), { accounts: i, connect: d } = E(), l = c.connection_status && Q.includes(c.connection_status);
562
569
  if (_.useEffect(() => {
563
570
  l && e(1);
564
571
  }, [l]), !l) return;
565
- const s = tt(c, u);
566
- return /* @__PURE__ */ d(g, { children: [
572
+ const s = tt(c, d);
573
+ return /* @__PURE__ */ u(g, { children: [
567
574
  /* @__PURE__ */ t(
568
575
  wt,
569
576
  {
@@ -572,7 +579,7 @@ const U = ({
572
579
  mt: 24,
573
580
  mx: 24
574
581
  },
575
- children: /* @__PURE__ */ d(
582
+ children: /* @__PURE__ */ u(
576
583
  Et,
577
584
  {
578
585
  icon: /* @__PURE__ */ t(q, { filled: !0 }),
@@ -613,17 +620,17 @@ const U = ({
613
620
  }
614
621
  )
615
622
  ] });
616
- }, Bt = T(Gt), Kt = () => {
617
- const [e, o] = _.useState(""), { onEvent: n } = O(), { selectedAccount: c } = D(), { accounts: i } = E(), { setFilter: u, sortedTransactions: l } = X(), s = _.useMemo(
623
+ }, Gt = T(Ht), Kt = () => {
624
+ const [e, o] = _.useState(""), { onEvent: n } = O(), { selectedAccount: c } = D(), { accounts: i } = E(), { setFilter: d, sortedTransactions: l } = X(), s = _.useMemo(
618
625
  () => l.find((r) => r.guid === e),
619
626
  [e, l]
620
627
  );
621
628
  return _.useEffect(() => {
622
- u({
623
- dateRange: { start: kt(It(), 90), end: Mt() },
629
+ d({
630
+ dateRange: { start: Mt(kt(), 90), end: It() },
624
631
  accounts: [c.guid]
625
632
  });
626
- }, [c]), _.useEffect(() => n(k.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ d(g, { children: [
633
+ }, [c]), _.useEffect(() => n(M.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ u(g, { children: [
627
634
  /* @__PURE__ */ t(vt, { onClick: o }),
628
635
  s && /* @__PURE__ */ t(
629
636
  J,
@@ -638,9 +645,9 @@ const U = ({
638
645
  ] });
639
646
  }, jt = T(Kt), Yt = () => {
640
647
  const [e, o] = _.useState(0), { accounts: n } = E();
641
- return /* @__PURE__ */ d(g, { children: [
642
- /* @__PURE__ */ t(Bt, { setTabValue: o }),
643
- /* @__PURE__ */ d(
648
+ return /* @__PURE__ */ u(g, { children: [
649
+ /* @__PURE__ */ t(Gt, { setTabValue: o }),
650
+ /* @__PURE__ */ u(
644
651
  nt,
645
652
  {
646
653
  "aria-label": n.transactions_and_details_aria,
@@ -651,7 +658,7 @@ const U = ({
651
658
  variant: "fullWidth",
652
659
  children: [
653
660
  /* @__PURE__ */ t(
654
- H,
661
+ B,
655
662
  {
656
663
  "aria-controls": "transaction-details-tabpanel-0",
657
664
  id: "transaction-details-tab-0",
@@ -659,7 +666,7 @@ const U = ({
659
666
  }
660
667
  ),
661
668
  /* @__PURE__ */ t(
662
- H,
669
+ B,
663
670
  {
664
671
  "aria-controls": "account-details-tabpanel-1",
665
672
  id: "account-details-tab-1",
@@ -670,10 +677,10 @@ const U = ({
670
677
  }
671
678
  ),
672
679
  /* @__PURE__ */ t(j, { index: 0, name: "transaction-details", value: e, children: /* @__PURE__ */ t(jt, {}) }),
673
- /* @__PURE__ */ t(j, { index: 1, name: "account-details", value: e, children: /* @__PURE__ */ t(Ht, {}) })
680
+ /* @__PURE__ */ t(j, { index: 1, name: "account-details", value: e, children: /* @__PURE__ */ t(Bt, {}) })
674
681
  ] });
675
- }, He = T(Yt);
682
+ }, Be = T(Yt);
676
683
  export {
677
- He as A,
684
+ Be as A,
678
685
  Nt as u
679
686
  };
@@ -0,0 +1,52 @@
1
+ import { jsx as r, jsxs as h, Fragment as f } from "react/jsx-runtime";
2
+ import x from "@mui/material/Button";
3
+ import u from "@mui/material/Card";
4
+ import C from "@mui/material/CardContent";
5
+ import b from "@mui/material/CardHeader";
6
+ import { P as g, H3 as v } from "@mxenabled/mxui";
7
+ import { ChevronRight as W } from "@mxenabled/mx-icons";
8
+ import { u as M } from "./useDimensions-27p2evRx.mjs";
9
+ import { W as w } from "./hooks-ZMp65DFz.mjs";
10
+ const y = ({
11
+ children: o,
12
+ className: e,
13
+ ctaLabel: n,
14
+ onCTAClick: a,
15
+ subHeader: i,
16
+ sx: s,
17
+ title: c,
18
+ variant: l = "borderless"
19
+ }) => {
20
+ const [d, { height: m, width: p }] = M(), t = /* @__PURE__ */ h(f, { children: [
21
+ /* @__PURE__ */ r(
22
+ b,
23
+ {
24
+ action: /* @__PURE__ */ r(
25
+ x,
26
+ {
27
+ endIcon: /* @__PURE__ */ r(W, { size: 20 }),
28
+ onClick: a,
29
+ size: "small",
30
+ sx: {
31
+ "&:focus-visible, &:focus": {
32
+ outline: "2px solid",
33
+ outlineColor: "primary.main",
34
+ outlineOffset: "2px"
35
+ }
36
+ },
37
+ variant: "text",
38
+ children: n
39
+ }
40
+ ),
41
+ subheader: i && /* @__PURE__ */ r(g, { sx: { color: "text.secondary" }, variant: "body2", children: i }),
42
+ sx: { p: 0, pb: 8, width: "calc(100% - 8px)", "& .MuiCardHeader-action": { mt: 0 } },
43
+ title: /* @__PURE__ */ r(v, { sx: { width: "calc(100% - 10px)" }, children: c })
44
+ }
45
+ ),
46
+ /* @__PURE__ */ r(C, { ref: d, sx: { p: 0, ":last-child": { pb: 0 } }, children: /* @__PURE__ */ r(w, { availableHeight: m, availableWidth: p, children: o }) })
47
+ ] });
48
+ return l === "borderless" ? t : /* @__PURE__ */ r(u, { className: e, sx: { alignItems: "center", p: 16, ...s }, children: t });
49
+ }, F = y;
50
+ export {
51
+ F as M
52
+ };
@@ -0,0 +1,71 @@
1
+ import { jsxs as r, jsx as i, Fragment as x } from "react/jsx-runtime";
2
+ import g from "@mui/material/Box";
3
+ import u from "@mui/material/Button";
4
+ import C from "@mui/material/Card";
5
+ import v from "@mui/material/CardHeader";
6
+ import b from "@mui/material/CardContent";
7
+ import W from "@mui/material/IconButton";
8
+ import { Icon as z, ChevronRight as H } from "@mxenabled/mx-icons";
9
+ import { H3 as I, Text as B, P as M } from "@mxenabled/mxui";
10
+ import { u as S } from "./useDimensions-27p2evRx.mjs";
11
+ import { W as j } from "./hooks-ZMp65DFz.mjs";
12
+ const w = ({
13
+ children: a,
14
+ className: l = "mx-cmn-mini-widget",
15
+ closeLabel: m,
16
+ contentStyles: s,
17
+ onClose: e,
18
+ onPrimaryCtaClick: o,
19
+ primaryCtaLabel: d = "",
20
+ subTitle: n = "",
21
+ sx: c = {},
22
+ title: t = ""
23
+ }) => {
24
+ const [p, { height: f, width: h }] = S();
25
+ return /* @__PURE__ */ r(C, { className: l, sx: { ...c }, children: [
26
+ /* @__PURE__ */ i(
27
+ v,
28
+ {
29
+ sx: { pb: 8 },
30
+ title: /* @__PURE__ */ r(x, { children: [
31
+ /* @__PURE__ */ r(
32
+ g,
33
+ {
34
+ sx: {
35
+ alignItems: "center",
36
+ display: "grid",
37
+ gap: 2,
38
+ gridTemplateColumns: "1fr auto",
39
+ pb: 4
40
+ },
41
+ children: [
42
+ t && /* @__PURE__ */ i(I, { children: t }),
43
+ e ? /* @__PURE__ */ i(W, { "aria-label": m, onClick: e, size: "small", children: /* @__PURE__ */ i(z, { name: "close", size: 24 }) }) : o && /* @__PURE__ */ i(
44
+ u,
45
+ {
46
+ endIcon: /* @__PURE__ */ i(H, {}),
47
+ onClick: o,
48
+ size: "small",
49
+ sx: {
50
+ "&:focus-visible, &:focus": {
51
+ outline: "2px solid",
52
+ outlineColor: "primary.main",
53
+ outlineOffset: "2px"
54
+ }
55
+ },
56
+ children: /* @__PURE__ */ i(B, { bold: !0, variant: "Small", children: d })
57
+ }
58
+ )
59
+ ]
60
+ }
61
+ ),
62
+ n && /* @__PURE__ */ i(M, { color: "text.secondary", sx: { fontSize: 15, lineHeight: "20px" }, variant: "Small", children: n })
63
+ ] })
64
+ }
65
+ ),
66
+ /* @__PURE__ */ i(b, { ref: p, sx: { p: 0, ...s }, children: /* @__PURE__ */ i(j, { availableHeight: f, availableWidth: h, children: a }) })
67
+ ] });
68
+ }, E = w;
69
+ export {
70
+ E as M
71
+ };
@@ -1,6 +1,6 @@
1
1
  import { b as _ } from "./CategoryUtil-DUM8NuGO.mjs";
2
2
  import { b as p } from "./Category-CevNQ03n.mjs";
3
- import { jsxs as y, Fragment as v, jsx as c } from "react/jsx-runtime";
3
+ import { jsxs as y, Fragment as v, jsx as m } from "react/jsx-runtime";
4
4
  import x from "react";
5
5
  import { observer as w } from "mobx-react-lite";
6
6
  import M from "@mui/material/Button";
@@ -18,26 +18,26 @@ const T = 5, B = (i, l, g, d) => d.reduce((o, n) => {
18
18
  if (!a) return o;
19
19
  const t = a.parent_guid ?? a.guid, r = i.find((s) => s.guid === t);
20
20
  if (!r) return o;
21
- const m = {
21
+ const c = {
22
22
  guid: a.guid,
23
23
  name: a.guid === t ? `${l.parent_category_totals_label_general} ${a.name}` : a.name,
24
24
  color: _(r.guid, g),
25
25
  amount: n.total
26
26
  }, e = o.find((s) => s.guid === t);
27
- return e ? (e.amount += n.total, e.categoryTotals?.push(m)) : o.push({
27
+ return e ? (e.amount += n.total, e.categoryTotals?.push(c)) : o.push({
28
28
  guid: t,
29
29
  name: r.name,
30
30
  color: _(r.guid, g),
31
- categoryTotals: [m],
31
+ categoryTotals: [c],
32
32
  amount: n.total
33
33
  }), o;
34
34
  }, []), ot = (i, l, g, d) => {
35
35
  const o = B(i, l, g, d), n = o.filter(
36
- (e) => e.guid !== p.INCOME && e.guid !== p.INVESTMENTS && e.guid !== p.TRANSFER
36
+ (e) => e.guid !== p.INCOME && e.guid !== p.INVESTMENTS && e.guid !== p.TRANSFER && e.amount > 0
37
37
  ).sort((e, s) => s.amount - e.amount), a = n.reduce(
38
38
  (e, s) => e + s.amount,
39
39
  0
40
- ), t = n.length > T ? T : n.length, r = n.slice(0, t), m = r.map((e) => ({
40
+ ), t = n.length > T ? T : n.length, r = n.slice(0, t), c = r.map((e) => ({
41
41
  id: e.guid,
42
42
  color: _(e.guid, g),
43
43
  label: e.name,
@@ -54,7 +54,7 @@ const T = 5, B = (i, l, g, d) => d.reduce((o, n) => {
54
54
  name: l.saving_goal_other,
55
55
  categoryTotals: e,
56
56
  amount: s
57
- }), m.push({
57
+ }), c.push({
58
58
  id: "other",
59
59
  color: g.palette.categories.others || "",
60
60
  label: l.saving_goal_other,
@@ -63,7 +63,7 @@ const T = 5, B = (i, l, g, d) => d.reduce((o, n) => {
63
63
  }
64
64
  return {
65
65
  categoryData: r,
66
- donutData: m,
66
+ donutData: c,
67
67
  totalAmount: a
68
68
  };
69
69
  }, nt = (i, l, g) => {
@@ -71,7 +71,7 @@ const T = 5, B = (i, l, g, d) => d.reduce((o, n) => {
71
71
  (t) => t.guid === p.INCOME || t.parent_guid === p.INCOME
72
72
  ), o = l.filter((t) => d.some((r) => r.guid === t.category_guid)).sort((t, r) => t.total - r.total).map((t, r) => ({
73
73
  guid: t.category_guid,
74
- name: i.find((m) => m.guid === t.category_guid)?.name,
74
+ name: i.find((c) => c.guid === t.category_guid)?.name,
75
75
  color: g[r],
76
76
  categoryTotals: [],
77
77
  amount: Math.abs(t.total)
@@ -99,7 +99,7 @@ const T = 5, B = (i, l, g, d) => d.reduce((o, n) => {
99
99
  totalLabel: a,
100
100
  variant: t = "mini"
101
101
  }) => {
102
- const { spending: r } = $(), m = N(), { isTablet: e } = j(), { announce: s, ariaLive: C } = O(), u = x.useMemo(
102
+ const { spending: r } = $(), c = N(), { isTablet: e } = j(), { announce: s, ariaLive: C } = O(), u = x.useMemo(
103
103
  () => o ? i.categoryData.find((b) => b.guid === o) : void 0,
104
104
  [o]
105
105
  );
@@ -109,12 +109,12 @@ const T = 5, B = (i, l, g, d) => d.reduce((o, n) => {
109
109
  s(`${u.name}: ${b}`);
110
110
  }
111
111
  }, [u, s]);
112
- const S = x.useMemo(() => i.donutData.length > 0 ? i.donutData : [{ id: "0", color: m.palette.divider, value: 100 }], [i, m]), E = () => {
112
+ const S = x.useMemo(() => i.donutData.length > 0 ? i.donutData : [{ id: "0", color: c.palette.divider, value: 100 }], [i, c]), E = () => {
113
113
  d?.(o);
114
114
  }, I = e ? 32 : 48;
115
115
  return /* @__PURE__ */ y(v, { children: [
116
116
  C,
117
- /* @__PURE__ */ c(G, { data: S, onClick: g, selectedId: o, size: n, children: /* @__PURE__ */ c(f, { alignItems: "center", height: "100%", justifyContent: "center", width: "100%", children: /* @__PURE__ */ y(f, { alignItems: "center", justifyContent: "center", minHeight: n, minWidth: n, children: [
117
+ /* @__PURE__ */ m(G, { data: S, onClick: g, selectedId: o, size: n, children: /* @__PURE__ */ m(f, { alignItems: "center", height: "100%", justifyContent: "center", width: "100%", children: /* @__PURE__ */ y(f, { alignItems: "center", justifyContent: "center", minHeight: n, minWidth: n, children: [
118
118
  u && /* @__PURE__ */ y(
119
119
  f,
120
120
  {
@@ -124,7 +124,7 @@ const T = 5, B = (i, l, g, d) => d.reduce((o, n) => {
124
124
  mt: t === "mini" ? 0 : -16,
125
125
  sx: t === "mini" ? { gap: 0, mb: 0 } : { gap: { xs: 4, xl: 8 }, mb: { xs: 4, xl: 8 } },
126
126
  children: [
127
- /* @__PURE__ */ c(
127
+ /* @__PURE__ */ m(
128
128
  k,
129
129
  {
130
130
  categoryGuid: l ? p.INCOME : u.guid,
@@ -132,7 +132,7 @@ const T = 5, B = (i, l, g, d) => d.reduce((o, n) => {
132
132
  variant: A.Transparent
133
133
  }
134
134
  ),
135
- /* @__PURE__ */ c(
135
+ /* @__PURE__ */ m(
136
136
  h,
137
137
  {
138
138
  color: "secondary",
@@ -144,10 +144,10 @@ const T = 5, B = (i, l, g, d) => d.reduce((o, n) => {
144
144
  ]
145
145
  }
146
146
  ),
147
- !u && t === "full" && /* @__PURE__ */ c(h, { bold: !0, color: "secondary", sx: { mb: { xs: 4, xl: 8 } }, children: a }),
148
- /* @__PURE__ */ c(h, { variant: t === "mini" ? "H2" : "H1", children: u ? D(u.amount, "0,0") : D(i.totalAmount, "0,0") }),
149
- !u && t === "mini" && /* @__PURE__ */ c(h, { color: "secondary", noWrap: !0, variant: "Tiny", children: a }),
150
- t === "full" && /* @__PURE__ */ c(
147
+ !u && t === "full" && /* @__PURE__ */ m(h, { bold: !0, color: "secondary", sx: { mb: { xs: 4, xl: 8 } }, children: a }),
148
+ /* @__PURE__ */ m(h, { variant: t === "mini" ? "H2" : "H1", children: u ? D(u.amount, "0,0") : D(i.totalAmount, "0,0") }),
149
+ !u && t === "mini" && /* @__PURE__ */ m(h, { color: "secondary", noWrap: !0, variant: "Tiny", children: a }),
150
+ t === "full" && /* @__PURE__ */ m(
151
151
  M,
152
152
  {
153
153
  "aria-label": `View ${u?.name || ""} Transactions`,
@@ -164,7 +164,7 @@ const T = 5, B = (i, l, g, d) => d.reduce((o, n) => {
164
164
  const d = (o, n) => {
165
165
  (o.key === "Enter" || o.key === " ") && (o.preventDefault(), l(n));
166
166
  };
167
- return /* @__PURE__ */ c(f, { gap: 8, height: "100%", justifyContent: "center", my: "auto", children: i.categoryData.map((o) => /* @__PURE__ */ y(
167
+ return /* @__PURE__ */ m(f, { gap: 8, height: "100%", justifyContent: "center", my: "auto", children: i.categoryData.map((o) => /* @__PURE__ */ y(
168
168
  f,
169
169
  {
170
170
  alignItems: "center",
@@ -178,8 +178,8 @@ const T = 5, B = (i, l, g, d) => d.reduce((o, n) => {
178
178
  sx: { cursor: "pointer" },
179
179
  tabIndex: 0,
180
180
  children: [
181
- /* @__PURE__ */ c(R, { borderRadius: 4, height: 8, sx: { backgroundColor: o.color }, width: 8 }),
182
- /* @__PURE__ */ c(h, { bold: o.guid === g, variant: "XSmall", children: o.name })
181
+ /* @__PURE__ */ m(R, { borderRadius: 4, height: 8, sx: { backgroundColor: o.color }, width: 8 }),
182
+ /* @__PURE__ */ m(h, { bold: o.guid === g, variant: "XSmall", children: o.name })
183
183
  ]
184
184
  },
185
185
  o.guid
@@ -18,8 +18,8 @@ import { I as $, P as j, S as Y } from "../Account-CvR2-dSR.mjs";
18
18
  import { a as d1 } from "../AccountFields-zCMqet85.mjs";
19
19
  import { g as s3, b as a3 } from "../AccountFields-zCMqet85.mjs";
20
20
  import { A as N } from "../AccountListItem-DHrz8Mml.mjs";
21
- import { A as c1 } from "../AccountDetailsContent-H6ORsLqt.mjs";
22
- import { u as L3 } from "../AccountDetailsContent-H6ORsLqt.mjs";
21
+ import { A as c1 } from "../AccountDetailsContent-CitErkuS.mjs";
22
+ import { u as L3 } from "../AccountDetailsContent-CitErkuS.mjs";
23
23
  import { f as D } from "../NumberFormatting-DjTD0t3W.mjs";
24
24
  import { D as s1 } from "../Drawer-By9V-B5L.mjs";
25
25
  import { A as x, W as a1 } from "../WidgetContainer-CoFDmQRE.mjs";
@@ -28,7 +28,7 @@ import { u as K } from "../useScreenSize-B6JyS_Lj.mjs";
28
28
  import { u as B } from "../useWidgetLoadTimer-hIOioiKx.mjs";
29
29
  import { L as w } from "../Loader-DUaFpDGv.mjs";
30
30
  import L1 from "@mui/material/ListItem";
31
- import { M as z } from "../MiniWidgetContainer-98-hKFqm.mjs";
31
+ import { M as z } from "../MiniWidgetContainer-Bg02sF1Y.mjs";
32
32
  import u1 from "@mui/material/Stack";
33
33
  import { A as h3, a as H3 } from "../AccountStore-LgfBcYMe.mjs";
34
34
  const h1 = (o, C) => {
@@ -8,7 +8,7 @@ import a from "@mui/material/Stack";
8
8
  import _ from "@mui/material/styles/useTheme";
9
9
  import { Text as u, TextField as L } from "@mxenabled/mxui";
10
10
  import { L as W } from "../Loader-DUaFpDGv.mjs";
11
- import { M as j } from "../MiniWidgetContainer-98-hKFqm.mjs";
11
+ import { M as j } from "../MiniWidgetContainer-Bg02sF1Y.mjs";
12
12
  import { k as f, u as b, g as q, b as E } from "../hooks-ZMp65DFz.mjs";
13
13
  import Q from "@mui/material/ToggleButton";
14
14
  import G from "@mui/material/ToggleButtonGroup";
@@ -31,7 +31,7 @@ import { E as ue } from "../EmptyState-DoxNUae-.mjs";
31
31
  import { A as $, W as Je } from "../WidgetContainer-CoFDmQRE.mjs";
32
32
  import { u as Qe } from "../BudgetUtil-BmZXkL0C.mjs";
33
33
  import { u as we } from "../useWidgetLoadTimer-hIOioiKx.mjs";
34
- import { M as et } from "../MiniWidgetContainer-98-hKFqm.mjs";
34
+ import { M as et } from "../MiniWidgetContainer-Bg02sF1Y.mjs";
35
35
  import { isAfter as tt } from "date-fns/isAfter";
36
36
  import { startOfToday as J } from "date-fns/startOfToday";
37
37
  import De from "@mui/material/Alert";
@@ -16,7 +16,7 @@ import { I as fe } from "../CashflowStore-D9Dpuz7X.mjs";
16
16
  import { C as Bn } from "../CashflowStore-D9Dpuz7X.mjs";
17
17
  import { b as M } from "../Localization-2MODESHW.mjs";
18
18
  import { u as We } from "../useWidgetLoadTimer-hIOioiKx.mjs";
19
- import { M as Je } from "../MiniWidgetContainer-98-hKFqm.mjs";
19
+ import { M as Je } from "../MiniWidgetContainer-Bg02sF1Y.mjs";
20
20
  import { E as Ze } from "../EmptyState-DoxNUae-.mjs";
21
21
  import { R as et } from "../RecurringSettings-B4ybrS0B.mjs";
22
22
  import tt from "@mui/material/Tabs";
@@ -10,8 +10,8 @@ import { T as rt } from "../User-Cnlegl1N.mjs";
10
10
  import { C as ps, b as ms, L as _s, a as fs } from "../User-Cnlegl1N.mjs";
11
11
  import { H as ot } from "../Help-DhcC-C05.mjs";
12
12
  import { E as Ss } from "../Help-DhcC-C05.mjs";
13
- import { M as ws } from "../MicroWidgetContainer-B2hO9rOG.mjs";
14
- import { M as Cs } from "../MiniWidgetContainer-98-hKFqm.mjs";
13
+ import { M as ws } from "../MicroWidgetContainer-r6mtxRer.mjs";
14
+ import { M as Cs } from "../MiniWidgetContainer-Bg02sF1Y.mjs";
15
15
  import { A as Ds, D as As, W as Es } from "../WidgetContainer-CoFDmQRE.mjs";
16
16
  import { k as Bs, a as Is, e as Ns, h as Ms, A as $s, f as ks, l as Rs, d as Us, n as Ps, E as Os, j as Ls, N as Gs, i as Hs, P as Fs, o as Ws, S as qs } from "../ConnectDrawer-BkvlItWx.mjs";
17
17
  import { C as Qs } from "../CurrencyInput-itK0R3wV.mjs";
@@ -48,7 +48,7 @@ import { ResponsiveChartContainer as Zn } from "@mui/x-charts/ResponsiveChartCon
48
48
  import { useSpring as Jn, animated as at } from "@react-spring/web";
49
49
  import { startOfMonth as At } from "date-fns/startOfMonth";
50
50
  import { endOfMonth as Tt } from "date-fns/endOfMonth";
51
- import { g as eo, S as to, b as no } from "../SpendingLegend-DsNH6ziK.mjs";
51
+ import { g as eo, S as to, b as no } from "../SpendingLegend-CDO060GT.mjs";
52
52
  import { formatISO as oo } from "date-fns/formatISO";
53
53
  import { fromUnixTime as ro } from "date-fns/fromUnixTime";
54
54
  import { startOfToday as it } from "date-fns/startOfToday";
@@ -39,7 +39,7 @@ import nt from "@mui/material/Collapse";
39
39
  import ot from "@mui/material/ListItemIcon";
40
40
  import at from "@mui/material/Checkbox";
41
41
  import { u as rt, A as it } from "../AccountDetailsHeader-BkG3MNYo.mjs";
42
- import { A as st } from "../AccountDetailsContent-H6ORsLqt.mjs";
42
+ import { A as st } from "../AccountDetailsContent-CitErkuS.mjs";
43
43
  import { u as lt } from "../useAccountDisplayName-B7iXTNM8.mjs";
44
44
  import De from "@mui/material/TextField";
45
45
  import { M as ct, I as dt, O as mt } from "../OriginalBalanceAction-C6jdS4ws.mjs";
@@ -56,7 +56,7 @@ import yt from "@mui/material/Stack/Stack";
56
56
  import At from "@mui/material/Box";
57
57
  import Tt from "@mui/material/styles/useTheme";
58
58
  import { S as Ct } from "../SingleSegmentDonut-BgbLgwHi.mjs";
59
- import { M as St } from "../MicroWidgetContainer-B2hO9rOG.mjs";
59
+ import { M as St } from "../MicroWidgetContainer-r6mtxRer.mjs";
60
60
  function ce({ title: t, subtitle: n }) {
61
61
  return /* @__PURE__ */ r(f, { children: [
62
62
  /* @__PURE__ */ e(A, { bold: !0, variant: "Body", children: t }),
@@ -26,7 +26,7 @@ import { f as V } from "../NumberFormatting-DjTD0t3W.mjs";
26
26
  import { u as ie } from "../useWidgetLoadTimer-hIOioiKx.mjs";
27
27
  import { A as b, W as Me } from "../WidgetContainer-CoFDmQRE.mjs";
28
28
  import { L as O } from "../Loader-DUaFpDGv.mjs";
29
- import { M as Ae } from "../MicroWidgetContainer-B2hO9rOG.mjs";
29
+ import { M as Ae } from "../MicroWidgetContainer-r6mtxRer.mjs";
30
30
  import ae from "@mui/material/Box";
31
31
  import { C as He } from "../ConnectionsDrawer-VmuVFHbL.mjs";
32
32
  import Be from "@mui/material/Collapse";
@@ -52,9 +52,9 @@ import { S as $e } from "../StatusBar-BK_uYHAB.mjs";
52
52
  import { u as ye } from "../useScreenSize-B6JyS_Lj.mjs";
53
53
  import { u as be } from "../useWidgetLoadTimer-hIOioiKx.mjs";
54
54
  import { L as V } from "../Loader-DUaFpDGv.mjs";
55
- import { M as gt } from "../MiniWidgetContainer-98-hKFqm.mjs";
55
+ import { M as gt } from "../MiniWidgetContainer-Bg02sF1Y.mjs";
56
56
  import { u as ht } from "../useDimensions-27p2evRx.mjs";
57
- import { M as ft } from "../MicroWidgetContainer-B2hO9rOG.mjs";
57
+ import { M as ft } from "../MicroWidgetContainer-r6mtxRer.mjs";
58
58
  const Q = {
59
59
  gridRow: 1,
60
60
  gridColumn: 1,
@@ -8,13 +8,13 @@ import C from "@mui/material/Stack";
8
8
  import E from "@mui/material/Tab";
9
9
  import st from "@mui/material/Tabs";
10
10
  import bt from "@mui/material/styles/useTheme";
11
- import { g as ct, a as lt, S as W, b as Q } from "../SpendingLegend-DsNH6ziK.mjs";
11
+ import { g as ct, a as lt, S as W, b as Q } from "../SpendingLegend-CDO060GT.mjs";
12
12
  import { Text as y, Icon as _t } from "@mxenabled/mxui";
13
13
  import { f as A } from "../NumberFormatting-DjTD0t3W.mjs";
14
14
  import { u as w, b as R, m as F, d as dt, a as V, h as Ct, g as yt } from "../hooks-ZMp65DFz.mjs";
15
15
  import { u as gt } from "../useWidgetLoadTimer-hIOioiKx.mjs";
16
16
  import { L as P } from "../Loader-DUaFpDGv.mjs";
17
- import { M as St } from "../MiniWidgetContainer-98-hKFqm.mjs";
17
+ import { M as St } from "../MiniWidgetContainer-Bg02sF1Y.mjs";
18
18
  import { startOfToday as Z } from "date-fns/startOfToday";
19
19
  import Tt from "@mui/material/Button";
20
20
  import { useTheme as Mt } from "@mui/material";
@@ -36,10 +36,10 @@ import { D as He } from "../Drawer-By9V-B5L.mjs";
36
36
  import { u as we } from "../useWidgetLoadTimer-hIOioiKx.mjs";
37
37
  import { L as ge } from "../Loader-DUaFpDGv.mjs";
38
38
  import { L as We } from "../LineChart-BQRxZF3p.mjs";
39
- import { M as Ht } from "../MiniWidgetContainer-98-hKFqm.mjs";
39
+ import { M as Ht } from "../MiniWidgetContainer-Bg02sF1Y.mjs";
40
40
  import { subMonths as Nt } from "date-fns";
41
41
  import { TrendingUp as Wt, TrendingDown as Ot, MultilineChart as Gt, ExpandLess as Bt, ExpandMore as Vt } from "@mxenabled/mx-icons";
42
- import { M as Pt } from "../MicroWidgetContainer-B2hO9rOG.mjs";
42
+ import { M as Pt } from "../MicroWidgetContainer-r6mtxRer.mjs";
43
43
  import Ft from "@mui/material/Collapse";
44
44
  import $t from "@mui/material/List";
45
45
  import zt from "@mui/material/ListItem";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "7.4.13",
3
+ "version": "7.4.15",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",
@@ -1,45 +0,0 @@
1
- import { jsx as r, jsxs as p, Fragment as f } from "react/jsx-runtime";
2
- import x from "@mui/material/Button";
3
- import C from "@mui/material/Card";
4
- import g from "@mui/material/CardContent";
5
- import b from "@mui/material/CardHeader";
6
- import { P as u, H3 as v } from "@mxenabled/mxui";
7
- import { ChevronRight as W } from "@mxenabled/mx-icons";
8
- import { u as M } from "./useDimensions-27p2evRx.mjs";
9
- import { W as w } from "./hooks-ZMp65DFz.mjs";
10
- const H = ({
11
- children: e,
12
- className: o,
13
- ctaLabel: n,
14
- onCTAClick: a,
15
- subHeader: t,
16
- sx: s,
17
- title: c,
18
- variant: d = "borderless"
19
- }) => {
20
- const [m, { height: l, width: h }] = M(), i = /* @__PURE__ */ p(f, { children: [
21
- /* @__PURE__ */ r(
22
- b,
23
- {
24
- action: /* @__PURE__ */ r(
25
- x,
26
- {
27
- endIcon: /* @__PURE__ */ r(W, { size: 20 }),
28
- onClick: a,
29
- size: "small",
30
- variant: "text",
31
- children: n
32
- }
33
- ),
34
- subheader: t && /* @__PURE__ */ r(u, { sx: { color: "text.secondary" }, variant: "body2", children: t }),
35
- sx: { p: 0, pb: 8, width: "calc(100% - 8px)", "& .MuiCardHeader-action": { mt: 0 } },
36
- title: /* @__PURE__ */ r(v, { sx: { width: "calc(100% - 10px)" }, children: c })
37
- }
38
- ),
39
- /* @__PURE__ */ r(g, { ref: m, sx: { p: 0, ":last-child": { pb: 0 } }, children: /* @__PURE__ */ r(w, { availableHeight: l, availableWidth: h, children: e }) })
40
- ] });
41
- return d === "borderless" ? i : /* @__PURE__ */ r(C, { className: o, sx: { alignItems: "center", p: 16, ...s }, children: i });
42
- }, F = H;
43
- export {
44
- F as M
45
- };
@@ -1,56 +0,0 @@
1
- import { jsxs as r, jsx as i, Fragment as g } from "react/jsx-runtime";
2
- import x from "@mui/material/Box";
3
- import C from "@mui/material/Button";
4
- import u from "@mui/material/Card";
5
- import v from "@mui/material/CardHeader";
6
- import b from "@mui/material/CardContent";
7
- import W from "@mui/material/IconButton";
8
- import { Icon as z, ChevronRight as H } from "@mxenabled/mx-icons";
9
- import { H3 as I, Text as B, P as M } from "@mxenabled/mxui";
10
- import { u as S } from "./useDimensions-27p2evRx.mjs";
11
- import { W as j } from "./hooks-ZMp65DFz.mjs";
12
- const w = ({
13
- children: a,
14
- className: m = "mx-cmn-mini-widget",
15
- closeLabel: l,
16
- contentStyles: d,
17
- onClose: e,
18
- onPrimaryCtaClick: o,
19
- primaryCtaLabel: s = "",
20
- subTitle: n = "",
21
- sx: c = {},
22
- title: t = ""
23
- }) => {
24
- const [p, { height: h, width: f }] = S();
25
- return /* @__PURE__ */ r(u, { className: m, sx: { ...c }, children: [
26
- /* @__PURE__ */ i(
27
- v,
28
- {
29
- sx: { pb: 8 },
30
- title: /* @__PURE__ */ r(g, { children: [
31
- /* @__PURE__ */ r(
32
- x,
33
- {
34
- sx: {
35
- alignItems: "center",
36
- display: "grid",
37
- gap: 2,
38
- gridTemplateColumns: "1fr auto",
39
- pb: 4
40
- },
41
- children: [
42
- t && /* @__PURE__ */ i(I, { children: t }),
43
- e ? /* @__PURE__ */ i(W, { "aria-label": l, onClick: e, size: "small", children: /* @__PURE__ */ i(z, { name: "close", size: 24 }) }) : o && /* @__PURE__ */ i(C, { endIcon: /* @__PURE__ */ i(H, {}), onClick: o, size: "small", children: /* @__PURE__ */ i(B, { bold: !0, variant: "Small", children: s }) })
44
- ]
45
- }
46
- ),
47
- n && /* @__PURE__ */ i(M, { color: "text.secondary", sx: { fontSize: 15, lineHeight: "20px" }, variant: "Small", children: n })
48
- ] })
49
- }
50
- ),
51
- /* @__PURE__ */ i(b, { ref: p, sx: { p: 0, ...d }, children: /* @__PURE__ */ i(j, { availableHeight: h, availableWidth: f, children: a }) })
52
- ] });
53
- }, G = w;
54
- export {
55
- G as M
56
- };