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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/{AccountDetailsHeader-CfdnKyJK.mjs → AccountDetailsHeader-DIysk_4w.mjs} +1 -1
  3. package/dist/{AccountFields-CAy0x_4i.mjs → AccountFields-mwJ8NXsX.mjs} +18 -18
  4. package/dist/{AccountListItem-BYyeeCf6.mjs → AccountListItem-BDXHs4tV.mjs} +7 -8
  5. package/dist/{CategorySelectorDrawer-Cu1ohxeM.mjs → CategorySelectorDrawer-CmaDLhnf.mjs} +71 -68
  6. package/dist/{ConnectCard-Dix8BoV_.mjs → ConnectCard-CCep7Zqe.mjs} +9 -9
  7. package/dist/{ConnectDrawer-DgfsTpyW.mjs → ConnectDrawer-Cnjr3Ddg.mjs} +2 -2
  8. package/dist/{ConnectionsDrawer-D7IXAza2.mjs → ConnectionsDrawer-CtfPXk0M.mjs} +1 -1
  9. package/dist/{CurrencyDialog-d4dL7vA5.mjs → CurrencyDialog-DumQCTPO.mjs} +18 -16
  10. package/dist/{CurrencyInput-B59ugxPN.mjs → CurrencyInput-adTIRtL3.mjs} +28 -26
  11. package/dist/{Dialog-iLlBR8TG.mjs → Dialog-CwWc0AbH.mjs} +11 -11
  12. package/dist/{Drawer-XPaLYjiO.mjs → Drawer-BXqqBMxg.mjs} +26 -28
  13. package/dist/{EmbeddedCard-BNl3quCs.mjs → EmbeddedCard-DPwJjqMH.mjs} +37 -37
  14. package/dist/{EmptyState-DHAkGsjk.mjs → EmptyState-CJUDc3kD.mjs} +17 -17
  15. package/dist/{ExportCsvAction-hDprC41l.mjs → ExportCsvAction-Bw02ZJEj.mjs} +2 -2
  16. package/dist/{GlobalAccountFilter-DrhtwPqh.mjs → GlobalAccountFilter-7Cg2-9A5.mjs} +25 -25
  17. package/dist/{Help-BSQm9o29.mjs → Help-DJ8PrVHX.mjs} +56 -73
  18. package/dist/{ListItemAction-DGjHxNDJ.mjs → ListItemAction-CwspSmQi.mjs} +22 -22
  19. package/dist/{ManageIncome-DwylSiWs.mjs → ManageIncome-B1JfqslT.mjs} +6 -6
  20. package/dist/{NotificationSettings-CCg-Tml2.mjs → NotificationSettings-6p-h5phZ.mjs} +48 -48
  21. package/dist/{OriginalBalanceAction-CvDx0K6k.mjs → OriginalBalanceAction-CkJPnp2c.mjs} +2 -2
  22. package/dist/{RecurringSettings-CPXLW6AR.mjs → RecurringSettings-cm6MK_aS.mjs} +1 -1
  23. package/dist/{ResponsiveButton-BNsV08Ud.mjs → ResponsiveButton-CC9F_Ezk.mjs} +1 -1
  24. package/dist/SearchBox-Cpgu_gdO.mjs +50 -0
  25. package/dist/Select-BFt-HD-L.mjs +55 -0
  26. package/dist/{SelectionBox-Bx2a5rh4.mjs → SelectionBox-B4xELRgp.mjs} +1 -1
  27. package/dist/{SingleSegmentDonut-PsRQPkmV.mjs → SingleSegmentDonut-7Uy6VEld.mjs} +1 -1
  28. package/dist/{SpendingLegend-BmkEr9Nh.mjs → SpendingLegend-5Ct_FZ8o.mjs} +1 -1
  29. package/dist/{ToggleListItem-BLu_fWA2.mjs → ToggleListItem-Dl1lXNwj.mjs} +29 -28
  30. package/dist/{TransactionDetails-CbBSxdOi.mjs → TransactionDetails-C3dlAzYf.mjs} +386 -393
  31. package/dist/{ViewMoreMicroCard-D_LoKlJU.mjs → ViewMoreMicroCard-BD_MNc2z.mjs} +526 -518
  32. package/dist/{WidgetContainer-CYcmwsSu.mjs → WidgetContainer-DNuz_s7W.mjs} +5 -5
  33. package/dist/accounts/index.es.js +199 -194
  34. package/dist/analytics/index.es.js +1 -1
  35. package/dist/budgets/index.es.js +183 -184
  36. package/dist/cashflow/index.es.js +70 -80
  37. package/dist/categories/index.es.js +1 -1
  38. package/dist/common/components/ErrorBoundary.d.ts +1 -1
  39. package/dist/common/components/WidgetContainer.d.ts +1 -1
  40. package/dist/common/components/charts/stackedlinechart/CustomAreaTooltip.d.ts +1 -1
  41. package/dist/common/hooks/usePrevious.d.ts +1 -1
  42. package/dist/common/index.es.js +206 -194
  43. package/dist/common/utils/Theme.d.ts +6 -5
  44. package/dist/common/utils/index.d.ts +1 -1
  45. package/dist/dashboard/index.es.js +47 -47
  46. package/dist/debts/index.es.js +140 -140
  47. package/dist/finstrong/index.es.js +40 -32
  48. package/dist/finstrong/util/finstrongUtils.d.ts +1 -1
  49. package/dist/goals/index.es.js +154 -165
  50. package/dist/help/index.es.js +2 -2
  51. package/dist/insights/components/insights/UserFeedback/Types.d.ts +1 -1
  52. package/dist/insights/components/shared/DirectDeposit/DirectDepositSubHeader.d.ts +3 -3
  53. package/dist/insights/hooks/useContainerDimensions.d.ts +1 -1
  54. package/dist/insights/index.es.js +677 -687
  55. package/dist/insights/themes/Typography.d.ts +0 -2
  56. package/dist/investments/index.es.js +205 -207
  57. package/dist/merchants/index.es.js +1 -1
  58. package/dist/microinsights/cards/InsightCard.d.ts +2 -2
  59. package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +3 -5
  60. package/dist/microinsights/cards/ViewMoreMicroCard.d.ts +3 -5
  61. package/dist/microinsights/cards/ZeroStateCard.d.ts +3 -5
  62. package/dist/microinsights/carousel/BeatList.d.ts +2 -2
  63. package/dist/microinsights/carousel/MicroBeatCarousel.d.ts +12 -1
  64. package/dist/microinsights/index.es.js +1 -1
  65. package/dist/microinsights/interfaces.d.ts +11 -5
  66. package/dist/networth/index.es.js +85 -87
  67. package/dist/notifications/index.es.js +7 -8
  68. package/dist/recurringtransactions/index.es.js +53 -53
  69. package/dist/settings/index.es.js +111 -111
  70. package/dist/spending/index.es.js +7 -7
  71. package/dist/transactions/components/shared/TransactionList.d.ts +2 -2
  72. package/dist/transactions/index.es.js +138 -140
  73. package/dist/trends/index.es.js +293 -292
  74. package/dist/{useScreenSize-CeFhWTt_.mjs → useScreenSize-mWpmnh5w.mjs} +1 -1
  75. package/package.json +29 -23
  76. package/dist/SearchBox-CwDgvWVJ.mjs +0 -48
  77. package/dist/Select-BZRUpOib.mjs +0 -51
@@ -15,11 +15,11 @@ import { subMonths as Z } from "date-fns/subMonths";
15
15
  import C from "@mui/material/Button";
16
16
  import q from "@mui/material/Paper";
17
17
  import { H2 as D, Text as W, H3 as J, P as K } from "@mxenabled/mxui";
18
- import { ChevronLeft as P, ChevronRight as Q, Icon as U } from "@mxenabled/mx-icons";
19
- import { f as V, D as X } from "./DateFormats-HudZ3Bjs.mjs";
18
+ import { ChevronLeft as Q, ChevronRight as U, Icon as V } from "@mxenabled/mx-icons";
19
+ import { f as X, D as P } from "./DateFormats-HudZ3Bjs.mjs";
20
20
  import { isSameDay as d } from "date-fns/isSameDay";
21
21
  import { isWithinInterval as tt } from "date-fns/isWithinInterval";
22
- import nt from "@mui/material/styles/useTheme";
22
+ import { useTheme as nt } from "@mui/material/styles";
23
23
  import et from "@mui/material/Dialog";
24
24
  import ot from "@mui/material/DialogActions";
25
25
  import rt from "@mui/material/DialogContent";
@@ -27,14 +27,14 @@ import at from "@mui/material/IconButton";
27
27
  import it from "@mui/material/InputAdornment";
28
28
  import j from "@mui/material/Stack";
29
29
  import lt from "@mui/material/TextField";
30
- import { u as mt } from "./useScreenSize-CeFhWTt_.mjs";
30
+ import { u as mt } from "./useScreenSize-mWpmnh5w.mjs";
31
31
  const ct = ({ copy: t, date: r, onNextClick: o, onPreviousClick: l }) => {
32
32
  const c = st();
33
33
  return /* @__PURE__ */ p("div", { className: `mx-cmn-calendar-header ${c}`, children: [
34
- /* @__PURE__ */ n(D, { className: "mx-cmn-calendar-header-title", variant: "h3", children: V(r, X.MONTH_YEAR) }),
34
+ /* @__PURE__ */ n(D, { className: "mx-cmn-calendar-header-title", variant: "h3", children: X(r, P.MONTH_YEAR) }),
35
35
  /* @__PURE__ */ p("div", { className: "mx-cmn-calendar-header-button-container", children: [
36
- /* @__PURE__ */ n(C, { "aria-label": t.prevAria, onClick: l, children: /* @__PURE__ */ n(P, { size: 24 }) }),
37
- /* @__PURE__ */ n(C, { "aria-label": t.nextAria, onClick: o, children: /* @__PURE__ */ n(Q, { size: 24 }) })
36
+ /* @__PURE__ */ n(C, { "aria-label": t.prevAria, onClick: l, children: /* @__PURE__ */ n(Q, { size: 24 }) }),
37
+ /* @__PURE__ */ n(C, { "aria-label": t.nextAria, onClick: o, children: /* @__PURE__ */ n(U, { size: 24 }) })
38
38
  ] })
39
39
  ] });
40
40
  }, st = () => A({
@@ -295,7 +295,7 @@ const Dt = ({
295
295
  "aria-label": t,
296
296
  onClick: x,
297
297
  sx: { minHeight: 24, position: "absolute", right: 8, top: 18 },
298
- children: /* @__PURE__ */ n(U, { name: "close", sx: { color: "action.active" } })
298
+ children: /* @__PURE__ */ n(V, { name: "close", sx: { color: "action.active" } })
299
299
  }
300
300
  )
301
301
  ]
@@ -306,20 +306,22 @@ const Dt = ({
306
306
  o && /* @__PURE__ */ n(
307
307
  lt,
308
308
  {
309
- InputProps: {
310
- startAdornment: /* @__PURE__ */ n(it, { position: "start", children: "$" })
311
- },
312
309
  autoFocus: !0,
313
310
  inputMode: "decimal",
314
- inputProps: {
315
- "aria-label": o,
316
- noValidate: !0,
317
- pattern: "[0-9]*\\.?[0-9]*"
318
- },
319
311
  label: o,
320
312
  onChange: ({ target: { value: g } }) => {
321
313
  /^\d*\.?\d*$/.test(g) && h?.(g);
322
314
  },
315
+ slotProps: {
316
+ input: {
317
+ startAdornment: /* @__PURE__ */ n(it, { position: "start", children: "$" })
318
+ },
319
+ htmlInput: {
320
+ "aria-label": o,
321
+ noValidate: !0,
322
+ pattern: "[0-9]*\\.?[0-9]*"
323
+ }
324
+ },
323
325
  type: "text",
324
326
  value: l
325
327
  }
@@ -2,13 +2,13 @@ import { jsx as m } from "react/jsx-runtime";
2
2
  import i from "react";
3
3
  import { css as k } from "@mxenabled/cssinjs";
4
4
  import { v4 as q } from "uuid";
5
- import { TextField as B, P as _ } from "@mxenabled/mxui";
5
+ import { TextField as B, P as p } from "@mxenabled/mxui";
6
6
  import { g as L, C as O, f as y, M as C } from "./NumberFormatting--XMeeBfr.mjs";
7
- import { b, g } from "./Localization-DnoVyBNK.mjs";
7
+ import { b as h, g as b } from "./Localization-DnoVyBNK.mjs";
8
8
  import { u as W } from "./hooks-BaO_gOI6.mjs";
9
9
  const J = ({
10
10
  allowDecimals: o = !0,
11
- ariaLabel: h,
11
+ ariaLabel: g,
12
12
  amount: c,
13
13
  amountIsRequired: M = !0,
14
14
  copy: a,
@@ -20,31 +20,31 @@ const J = ({
20
20
  setHasValidInput: r,
21
21
  ...N
22
22
  }) => {
23
- const [d, t] = i.useState(""), { common: P } = W(), n = a || P.currency_input, R = j(), A = /^[0-9]*$/, E = /^(\d)*(\,)?([0-9]{1,2})?$/, T = /^(\d)*(\.)?([0-9]{1,2})?$/;
23
+ const [l, t] = i.useState(""), { common: R } = W(), n = a || R.currency_input, A = j(), E = /^[0-9]*$/, P = /^(\d)*(\,)?([0-9]{1,2})?$/, T = /^(\d)*(\.)?([0-9]{1,2})?$/;
24
24
  let s;
25
- const l = i.useRef(q());
25
+ const d = i.useRef(q());
26
26
  if (o)
27
27
  switch (L()) {
28
28
  case O.CAD:
29
- s = E;
29
+ s = P;
30
30
  break;
31
31
  default:
32
32
  s = T;
33
33
  break;
34
34
  }
35
35
  else
36
- s = A;
36
+ s = E;
37
37
  i.useEffect(() => {
38
- p(c);
38
+ _(c);
39
39
  }, [c]);
40
- const p = (e) => {
40
+ const _ = (e) => {
41
41
  !M && (e === "" || e === "." || e === ",") ? (t(""), r?.(!1)) : Number(e) < f ? (t(
42
- b(
42
+ h(
43
43
  n.error_amount_must_be_equal_to,
44
44
  y(f, "0")
45
45
  )
46
46
  ), r?.(!1)) : Number(e) > C ? (t(
47
- b(
47
+ h(
48
48
  n.error_amount_must_be_less_than_or_equal_to,
49
49
  y(C, o ? "0,0.00" : "0,0", Math.floor)
50
50
  )
@@ -53,24 +53,26 @@ const J = ({
53
53
  return /* @__PURE__ */ m(
54
54
  B,
55
55
  {
56
- InputProps: {
57
- endAdornment: g().includes("fr-ca") ? /* @__PURE__ */ m(_, { children: "$" }) : void 0,
58
- startAdornment: g().includes("fr-ca") ? void 0 : /* @__PURE__ */ m(_, { children: "$" })
59
- },
60
- className: `mx-cmn-currency-input ${R}`,
61
- error: !!d,
62
- helperText: d,
56
+ className: `mx-cmn-currency-input ${A}`,
57
+ error: !!l,
58
+ helperText: l,
63
59
  hiddenLabel: !u,
64
- id: `currency-input-${l.current}`,
60
+ id: `currency-input-${d.current}`,
65
61
  inputMode: o ? "decimal" : "numeric",
66
- inputProps: {
67
- "aria-label": h || n.enter_amount,
68
- noValidate: !0,
69
- pattern: o ? "[0-9]*\\.?[0-9]*" : "[0-9]*"
70
- },
71
62
  label: u,
72
- name: `currency-input-${l.current}`,
73
- onChange: (e) => p(e.target.value),
63
+ name: `currency-input-${d.current}`,
64
+ onChange: (e) => _(e.target.value),
65
+ slotProps: {
66
+ input: {
67
+ endAdornment: b().includes("fr-ca") ? /* @__PURE__ */ m(p, { children: "$" }) : void 0,
68
+ startAdornment: b().includes("fr-ca") ? void 0 : /* @__PURE__ */ m(p, { children: "$" })
69
+ },
70
+ htmlInput: {
71
+ "aria-label": g || n.enter_amount,
72
+ noValidate: !0,
73
+ pattern: o ? "[0-9]*\\.?[0-9]*" : "[0-9]*"
74
+ }
75
+ },
74
76
  value: c,
75
77
  ...N
76
78
  }
@@ -1,7 +1,7 @@
1
- import { jsx as r, jsxs as y } from "react/jsx-runtime";
2
- import x from "@mui/material/Dialog";
3
- import P from "@mui/material/DialogContent";
4
- import { DialogHeader as u, DialogFooter as A } from "@mxenabled/mxui";
1
+ import { jsx as r, jsxs as u } from "react/jsx-runtime";
2
+ import y from "@mui/material/Dialog";
3
+ import x from "@mui/material/DialogContent";
4
+ import { DialogHeader as P, DialogFooter as A } from "@mxenabled/mxui";
5
5
  const H = ({
6
6
  className: l,
7
7
  copy: o,
@@ -22,16 +22,16 @@ const H = ({
22
22
  }, h = () => {
23
23
  e && e(), a();
24
24
  };
25
- return /* @__PURE__ */ r("div", { className: `mx-cmn-dialog ${l}`, children: /* @__PURE__ */ y(
26
- x,
25
+ return /* @__PURE__ */ r("div", { className: `mx-cmn-dialog ${l}`, children: /* @__PURE__ */ u(
26
+ y,
27
27
  {
28
- PaperProps: {
29
- "aria-label": i
30
- },
31
28
  "aria-label": i,
32
29
  "aria-labelledby": void 0,
33
30
  onClose: a,
34
31
  open: n,
32
+ slotProps: {
33
+ paper: { "aria-label": i }
34
+ },
35
35
  sx: {
36
36
  "& .MuiDialog-paperScrollPaper": {
37
37
  backgroundColor: "background.default"
@@ -40,8 +40,8 @@ const H = ({
40
40
  },
41
41
  ...f,
42
42
  children: [
43
- /* @__PURE__ */ r(u, { copy: { title: i, close_aria: D }, onClose: a }),
44
- /* @__PURE__ */ r(P, { sx: { lineHeight: 1.5 }, children: g }),
43
+ /* @__PURE__ */ r(P, { copy: { title: i, close_aria: D }, onClose: a, truncate: !0 }),
44
+ /* @__PURE__ */ r(x, { sx: { lineHeight: 1.5 }, children: g }),
45
45
  /* @__PURE__ */ r(
46
46
  A,
47
47
  {
@@ -9,12 +9,12 @@ const $ = ({
9
9
  footerStyles: a = {},
10
10
  hasSecondaryAction: t = !0,
11
11
  isPrimaryDisabled: i,
12
- onPrimaryAction: o,
13
- onSecondaryAction: e,
14
- primaryButtonProps: n = {},
12
+ onPrimaryAction: e,
13
+ onSecondaryAction: o,
14
+ primaryButtonProps: l = {},
15
15
  primaryColor: c = "primary",
16
16
  primaryText: d = "Save",
17
- secondaryColor: l = "primary",
17
+ secondaryColor: n = "primary",
18
18
  secondaryText: p = "Cancel"
19
19
  }) => /* @__PURE__ */ u(
20
20
  h,
@@ -31,19 +31,19 @@ const $ = ({
31
31
  t && /* @__PURE__ */ r(
32
32
  b,
33
33
  {
34
- color: l,
35
- onClick: e,
36
- variant: o ? "outlined" : "contained",
34
+ color: n,
35
+ onClick: o,
36
+ variant: e ? "outlined" : "contained",
37
37
  children: p
38
38
  }
39
39
  ),
40
- o && /* @__PURE__ */ r(
40
+ e && /* @__PURE__ */ r(
41
41
  b,
42
42
  {
43
- ...n,
43
+ ...l,
44
44
  color: c,
45
45
  disabled: i,
46
- onClick: o,
46
+ onClick: e,
47
47
  variant: "contained",
48
48
  children: d
49
49
  }
@@ -54,12 +54,12 @@ const $ = ({
54
54
  ariaLabelClose: a,
55
55
  onClose: t,
56
56
  shouldShowBorders: i,
57
- shouldShowShadow: o,
58
- title: e
57
+ shouldShowShadow: e,
58
+ title: o
59
59
  }) => /* @__PURE__ */ u(
60
60
  h,
61
61
  {
62
- "aria-labelledby": `${e?.replace(/\s+/g, "-").toLowerCase()}-header-title`,
62
+ "aria-labelledby": `${o?.replace(/\s+/g, "-").toLowerCase()}-header-title`,
63
63
  direction: "row",
64
64
  sx: {
65
65
  alignItems: "center",
@@ -68,7 +68,7 @@ const $ = ({
68
68
  borderBottom: 1,
69
69
  borderColor: "divider"
70
70
  },
71
- ...o && {
71
+ ...e && {
72
72
  boxShadow: "0px 2px 8px 0px #6A73811F"
73
73
  },
74
74
  padding: "8px 8px 8px 8px"
@@ -87,9 +87,9 @@ const $ = ({
87
87
  D,
88
88
  {
89
89
  bold: !0,
90
- id: `${e?.replace(/\s+/g, "-").toLowerCase()}-header-title`,
90
+ id: `${o?.replace(/\s+/g, "-").toLowerCase()}-header-title`,
91
91
  variant: "body1",
92
- children: e
92
+ children: o
93
93
  }
94
94
  )
95
95
  }
@@ -101,12 +101,12 @@ const $ = ({
101
101
  ariaLabelClose: a = "Close",
102
102
  children: t,
103
103
  footerStyles: i = {},
104
- hasSecondaryAction: o = !0,
105
- id: e,
106
- isOpen: n,
104
+ hasSecondaryAction: e = !0,
105
+ id: o,
106
+ isOpen: l,
107
107
  isPrimaryDisabled: c,
108
108
  onClose: d,
109
- onPrimaryAction: l,
109
+ onPrimaryAction: n,
110
110
  onSecondaryAction: p,
111
111
  primaryButtonProps: g,
112
112
  primaryColor: m = "primary",
@@ -120,13 +120,11 @@ const $ = ({
120
120
  }) => /* @__PURE__ */ r(
121
121
  v,
122
122
  {
123
- id: e,
124
- isOpen: n,
123
+ id: o,
124
+ isOpen: l,
125
125
  onClose: d,
126
126
  slotProps: {
127
- root: {
128
- role: "dialog",
129
- "aria-modal": "true",
127
+ paper: {
130
128
  "aria-labelledby": `${x?.replace(/\s+/g, "-").toLowerCase()}-header-title`
131
129
  }
132
130
  },
@@ -153,13 +151,13 @@ const $ = ({
153
151
  }
154
152
  ),
155
153
  /* @__PURE__ */ r(s, { height: "100%", overflow: "auto", children: t }),
156
- l && /* @__PURE__ */ r(
154
+ n && /* @__PURE__ */ r(
157
155
  $,
158
156
  {
159
157
  footerStyles: i,
160
- hasSecondaryAction: o,
158
+ hasSecondaryAction: e,
161
159
  isPrimaryDisabled: c,
162
- onPrimaryAction: l,
160
+ onPrimaryAction: n,
163
161
  onSecondaryAction: p ?? d,
164
162
  primaryButtonProps: g,
165
163
  primaryColor: m,
@@ -18,14 +18,14 @@ import { f as H } from "./NumberFormatting--XMeeBfr.mjs";
18
18
  import { L as _t } from "./ListItemWrapper-B5r-YQQ_.mjs";
19
19
  import { fromUnixTime as v } from "date-fns/fromUnixTime";
20
20
  import { isSameDay as F } from "date-fns/isSameDay";
21
- import { f as pt, D as ut } from "./DateFormats-HudZ3Bjs.mjs";
21
+ import { f as ut, D as pt } from "./DateFormats-HudZ3Bjs.mjs";
22
22
  import { i as mt } from "./DateUtil-Bhq59ZVg.mjs";
23
23
  import { L as Z } from "./Loader-CxeBwuPG.mjs";
24
24
  import { A as gt } from "./Analytics-CzGzz_sE.mjs";
25
25
  import At from "@mui/material/Tab";
26
26
  import Nt from "@mui/material/Tabs";
27
27
  import ft from "@mui/material/IconButton";
28
- import { D as It } from "./Drawer-XPaLYjiO.mjs";
28
+ import { D as It } from "./Drawer-BXqqBMxg.mjs";
29
29
  import { ChartContainer as xt, ChartsReferenceLine as U, ChartsXAxis as St, BarPlot as Ot } from "@mui/x-charts";
30
30
  import Dt from "@mui/material/Card";
31
31
  const K = () => {
@@ -99,7 +99,7 @@ function fe(t) {
99
99
  });
100
100
  }
101
101
  const yt = ({ transaction: t, onClick: r }) => {
102
- const i = M().palette.mode === "dark", { associatedBeats: o } = G(), { expandedSplits: c } = K(), { transactions: T } = z(), { showInsights: g } = K(), C = t.transaction_type === it.CREDIT, d = I.useMemo(() => o.find((a) => a.associated_transaction_guid === t.guid), [o, t]), u = (a, p) => {
102
+ const i = M().palette.mode === "dark", { associatedBeats: o } = G(), { expandedSplits: c } = K(), { transactions: T } = z(), { showInsights: g } = K(), C = t.transaction_type === it.CREDIT, d = I.useMemo(() => o.find((a) => a.associated_transaction_guid === t.guid), [o, t]), p = (a, u) => {
103
103
  const A = [];
104
104
  return a.is_flagged && A.push(
105
105
  /* @__PURE__ */ e(
@@ -108,12 +108,12 @@ const yt = ({ transaction: t, onClick: r }) => {
108
108
  fill: !0,
109
109
  name: "flag",
110
110
  size: 16,
111
- sx: { color: p ? "primary.main" : "warning.dark" }
111
+ sx: { color: u ? "primary.main" : "warning.dark" }
112
112
  },
113
113
  "flag"
114
114
  )
115
115
  ), a.is_hidden && A.push(/* @__PURE__ */ e(k, { name: "visibility_off", size: 16 }, "hidden")), a.has_been_split && A.push(/* @__PURE__ */ e(k, { name: "call_split", size: 16 }, "split")), A;
116
- }, _ = (a, p) => a.is_hidden ? p.is_excluded : a.has_been_split ? p.split_transaction_category_label : a.category || "";
116
+ }, _ = (a, u) => a.is_hidden ? u.is_excluded : a.has_been_split ? u.split_transaction_category_label : a.category || "";
117
117
  return (
118
118
  //TODO: implement common/components/ListItemRow.tsx
119
119
  /* @__PURE__ */ s(
@@ -136,8 +136,8 @@ const yt = ({ transaction: t, onClick: r }) => {
136
136
  disableTypography: !0,
137
137
  secondary: /* @__PURE__ */ s(l, { direction: "row", justifyContent: "space-between", children: [
138
138
  /* @__PURE__ */ s(l, { alignItems: "center", direction: "row", gap: 4, children: [
139
- u(t, i),
140
- /* @__PURE__ */ e(m, { variant: "caption", children: _(t, T) })
139
+ p(t, i),
140
+ /* @__PURE__ */ e(m, { truncate: !0, variant: "caption", children: _(t, T) })
141
141
  ] }),
142
142
  d && g && /* @__PURE__ */ e(
143
143
  m,
@@ -147,13 +147,14 @@ const yt = ({ transaction: t, onClick: r }) => {
147
147
  onClick: (a) => {
148
148
  a.stopPropagation(), a.preventDefault(), Lt(d.guid);
149
149
  },
150
+ truncate: !0,
150
151
  variant: "caption",
151
152
  children: d.short_title
152
153
  }
153
154
  )
154
155
  ] }),
155
156
  children: /* @__PURE__ */ s(l, { direction: "row", justifyContent: "space-between", sx: { gap: 8 }, children: [
156
- /* @__PURE__ */ e(m, { bold: !0, variant: "body1", children: t.payee || t.description || t.feed_description }),
157
+ /* @__PURE__ */ e(m, { bold: !0, truncate: !0, variant: "body1", children: t.payee || t.description || t.feed_description }),
157
158
  /* @__PURE__ */ s(
158
159
  m,
159
160
  {
@@ -191,7 +192,7 @@ const yt = ({ transaction: t, onClick: r }) => {
191
192
  const n = v(r[t].date), i = v(r[t + 1]?.date);
192
193
  return F(n, i);
193
194
  }, Ie = (t) => t?.data ? t.data.map((r) => Object.fromEntries((t.names || []).map((n, i) => [n, r[i]]))) : [], xe = (t, r = "") => t.map((i) => {
194
- const o = pt(i.date, ut.MONTH_SHORT);
195
+ const o = ut(i.date, pt.MONTH_SHORT);
195
196
  return {
196
197
  ariaLabel: `
197
198
  ${o},
@@ -213,10 +214,10 @@ const yt = ({ transaction: t, onClick: r }) => {
213
214
  width: C = "100%",
214
215
  zeroState: d = /* @__PURE__ */ e(vt, {})
215
216
  }) => {
216
- const { isLoading: u, sortedTransactions: _ } = G(), a = I.useMemo(() => {
217
+ const { isLoading: p, sortedTransactions: _ } = G(), a = I.useMemo(() => {
217
218
  const N = r ? _.filter(r) : _;
218
219
  return g ?? N;
219
- }, [_, g]), { clearExpandedSplits: p, setShowInsights: A, toggleSplit: b } = K(), { onEvent: S } = dt(), O = (N) => {
220
+ }, [_, g]), { clearExpandedSplits: u, setShowInsights: A, toggleSplit: b } = K(), { onEvent: S } = dt(), O = (N) => {
220
221
  const D = a.find((y) => y.guid === N);
221
222
  if (D?.has_been_split) {
222
223
  b(D.guid);
@@ -232,7 +233,7 @@ const yt = ({ transaction: t, onClick: r }) => {
232
233
  estimateSize: (N) => B + (W(N, a) ? j : 0),
233
234
  overscan: 5
234
235
  });
235
- return I.useEffect(() => f.measure(), [a]), I.useEffect(() => A(c), [c]), I.useEffect(() => () => p(), []), /* @__PURE__ */ e(ct, { component: "div", role: "list", sx: { width: C }, children: /* @__PURE__ */ e(L, { height: n, overflow: "auto", ref: w, role: "presentation", width: C, children: /* @__PURE__ */ s(
236
+ return I.useEffect(() => f.measure(), [a]), I.useEffect(() => A(c), [c]), I.useEffect(() => () => u(), []), /* @__PURE__ */ e(ct, { component: "div", role: "list", sx: { width: C }, children: /* @__PURE__ */ e(L, { height: n, overflow: "auto", ref: w, role: "presentation", width: C, children: /* @__PURE__ */ s(
236
237
  L,
237
238
  {
238
239
  height: (
@@ -243,9 +244,9 @@ const yt = ({ transaction: t, onClick: r }) => {
243
244
  role: "presentation",
244
245
  width: "100%",
245
246
  children: [
246
- (u || T) && i,
247
- !u && !T && f.getVirtualItems().length === 0 && d,
248
- !u && !T && f.getVirtualItems().length > 0 && f.getVirtualItems().map((N) => {
247
+ (p || T) && i,
248
+ !p && !T && f.getVirtualItems().length === 0 && d,
249
+ !p && !T && f.getVirtualItems().length > 0 && f.getVirtualItems().map((N) => {
249
250
  const D = a[N.index], y = W(N.index, a), h = Gt(N.index, a), x = B + (y ? j : 0);
250
251
  return /* @__PURE__ */ s(
251
252
  L,
@@ -323,13 +324,13 @@ const yt = ({ transaction: t, onClick: r }) => {
323
324
  onTabChange: g,
324
325
  tipSection: C
325
326
  }) => {
326
- const { heading: d, subHeading: u } = r, _ = X(
327
+ const { heading: d, subHeading: p } = r, _ = X(
327
328
  () => c ?? (o.length ? o.length - 1 : 0),
328
329
  [c, o.length]
329
- ), [a, p] = P(_), A = (S, O) => {
330
- g?.(O), p(O);
330
+ ), [a, u] = P(_), A = (S, O) => {
331
+ g?.(O), u(O);
331
332
  }, b = (S) => {
332
- p(S);
333
+ u(S);
333
334
  };
334
335
  return /* @__PURE__ */ s(L, { sx: { bgcolor: "background.paper", width: "100%" }, children: [
335
336
  /* @__PURE__ */ e(Nt, { "aria-label": t, onChange: A, value: a, variant: "fullWidth", children: o.map((S, O) => /* @__PURE__ */ e(
@@ -341,11 +342,11 @@ const yt = ({ transaction: t, onClick: r }) => {
341
342
  },
342
343
  `${S.label}-${O}`
343
344
  )) }),
344
- /* @__PURE__ */ e(l, { sx: { pt: 16, px: 24 }, children: (d || u) && /* @__PURE__ */ s(l, { sx: { gap: 4 }, children: [
345
+ /* @__PURE__ */ e(l, { sx: { pt: 16, px: 24 }, children: (d || p) && /* @__PURE__ */ s(l, { sx: { gap: 4 }, children: [
345
346
  d && /* @__PURE__ */ e(tt, { children: d }),
346
- u && /* @__PURE__ */ s(l, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
347
+ p && /* @__PURE__ */ s(l, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
347
348
  T,
348
- /* @__PURE__ */ e(m, { textTransform: "uppercase", variant: "body2", children: u.description })
349
+ /* @__PURE__ */ e(m, { textTransform: "uppercase", variant: "body2", children: p.description })
349
350
  ] })
350
351
  ] }) }),
351
352
  n?.(a, b),
@@ -441,13 +442,13 @@ const yt = ({ transaction: t, onClick: r }) => {
441
442
  style: c,
442
443
  ...T
443
444
  }) => {
444
- const g = M(), { ariaLabel: C, formattedAmount: d } = r[n], u = o === n ? "bold" : 400, _ = c.x ?? 0, a = c.y ?? 0, p = c.width ?? 0, A = c.height ?? 0;
445
+ const g = M(), { ariaLabel: C, formattedAmount: d } = r[n], p = o === n ? "bold" : 400, _ = c.x ?? 0, a = c.y ?? 0, u = c.width ?? 0, A = c.height ?? 0;
445
446
  return /* @__PURE__ */ s("g", { "aria-label": C, children: [
446
447
  /* @__PURE__ */ e(
447
448
  "path",
448
449
  {
449
450
  ...T,
450
- d: Ut(p, A),
451
+ d: Ut(u, A),
451
452
  fill: t[n],
452
453
  transform: `translate(${_}, ${a})`
453
454
  }
@@ -457,9 +458,9 @@ const yt = ({ transaction: t, onClick: r }) => {
457
458
  {
458
459
  fill: g.palette.text.primary,
459
460
  fontSize: 11,
460
- fontWeight: i ? "bold" : u,
461
+ fontWeight: i ? "bold" : p,
461
462
  textAnchor: "middle",
462
- x: _ + p / 2,
463
+ x: _ + u / 2,
463
464
  y: a - 8,
464
465
  children: d
465
466
  }
@@ -481,9 +482,9 @@ const yt = ({ transaction: t, onClick: r }) => {
481
482
  monthlyAmountLabel: g,
482
483
  removeSelectedTabColorChange: C,
483
484
  selectedTabIndex: d,
484
- trendAmountLabel: u
485
+ trendAmountLabel: p
485
486
  }) => {
486
- const _ = I.useRef(null), { height: a, width: p } = Vt(_), A = M(), b = I.useMemo(() => {
487
+ const _ = I.useRef(null), { height: a, width: u } = Vt(_), A = M(), b = I.useMemo(() => {
487
488
  const h = n.map(({ value: R }) => R), x = Math.min(...h), E = Math.max(...h);
488
489
  return {
489
490
  series: [
@@ -521,9 +522,9 @@ const yt = ({ transaction: t, onClick: r }) => {
521
522
  monthlyAmount: O.formattedAmount,
522
523
  monthlyAmountLabel: g,
523
524
  trendAmount: t?.formattedAverage,
524
- trendAmountLabel: u
525
+ trendAmountLabel: p
525
526
  }
526
- ), D = g || u, y = (h, { dataIndex: x }) => c?.(x);
527
+ ), D = g || p, y = (h, { dataIndex: x }) => c?.(x);
527
528
  return /* @__PURE__ */ s(l, { sx: { alignItems: "center", width: "100%" }, children: [
528
529
  D && T === "top" && N,
529
530
  /* @__PURE__ */ e(
@@ -555,7 +556,7 @@ const yt = ({ transaction: t, onClick: r }) => {
555
556
  top: o.top || 45
556
557
  },
557
558
  series: b.series,
558
- width: p,
559
+ width: u,
559
560
  xAxis: b.xAxis,
560
561
  yAxis: [{ width: 0 }],
561
562
  children: [
@@ -585,7 +586,6 @@ const yt = ({ transaction: t, onClick: r }) => {
585
586
  /* @__PURE__ */ e(
586
587
  St,
587
588
  {
588
- position: "bottom",
589
589
  slots: {
590
590
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
591
591
  axisTickLabel: ({ text: h, ownerState: x, ...E }) => {
@@ -665,11 +665,11 @@ const yt = ({ transaction: t, onClick: r }) => {
665
665
  onClose: g,
666
666
  onTabChange: C,
667
667
  tipSection: d,
668
- title: u,
668
+ title: p,
669
669
  transactionListProps: _ = {}
670
670
  }) => {
671
- const { common: a, transactions: p } = z(), { isCopyLoaded: A } = Tt(), { sortedTransactionsWithSplits: b, tags: S } = G();
672
- return A ? /* @__PURE__ */ e(It, { ariaLabelClose: a.close_aria, isOpen: T, onClose: g, title: u, children: /* @__PURE__ */ e(
671
+ const { common: a, transactions: u } = z(), { isCopyLoaded: A } = Tt(), { sortedTransactionsWithSplits: b, tags: S } = G();
672
+ return A ? /* @__PURE__ */ e(It, { ariaLabelClose: a.close_aria, isOpen: T, onClose: g, title: p, children: /* @__PURE__ */ e(
673
673
  $t,
674
674
  {
675
675
  ariaLabel: t,
@@ -705,7 +705,7 @@ const yt = ({ transaction: t, onClick: r }) => {
705
705
  px: 24
706
706
  },
707
707
  children: [
708
- /* @__PURE__ */ e(m, { bold: !0, variant: "body1", children: p.transactions_title }),
708
+ /* @__PURE__ */ e(m, { bold: !0, variant: "body1", children: u.transactions_title }),
709
709
  (_?.transaction || b.length > 0) && /* @__PURE__ */ e(
710
710
  Y,
711
711
  {
@@ -717,7 +717,7 @@ const yt = ({ transaction: t, onClick: r }) => {
717
717
  },
718
718
  startIcon: /* @__PURE__ */ e(rt, { name: "ios_share" }),
719
719
  sx: { height: 28 },
720
- children: /* @__PURE__ */ e(m, { bold: !0, variant: "body2", children: p.export_csv_btn })
720
+ children: /* @__PURE__ */ e(m, { bold: !0, variant: "body2", children: u.export_csv_btn })
721
721
  }
722
722
  )
723
723
  ]