@mx-cartographer/experiences 8.2.2 → 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 (78) hide show
  1. package/CHANGELOG.md +20 -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-BB3Dusch.mjs → ViewMoreMicroCard-BD_MNc2z.mjs} +545 -533
  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/MicroCardTemplate.d.ts +2 -4
  59. package/dist/microinsights/cards/InsightCard.d.ts +2 -2
  60. package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +3 -4
  61. package/dist/microinsights/cards/ViewMoreMicroCard.d.ts +3 -4
  62. package/dist/microinsights/cards/ZeroStateCard.d.ts +3 -4
  63. package/dist/microinsights/carousel/BeatList.d.ts +2 -2
  64. package/dist/microinsights/carousel/MicroBeatCarousel.d.ts +12 -1
  65. package/dist/microinsights/index.es.js +1 -1
  66. package/dist/microinsights/interfaces.d.ts +12 -4
  67. package/dist/networth/index.es.js +85 -87
  68. package/dist/notifications/index.es.js +7 -8
  69. package/dist/recurringtransactions/index.es.js +53 -53
  70. package/dist/settings/index.es.js +111 -111
  71. package/dist/spending/index.es.js +7 -7
  72. package/dist/transactions/components/shared/TransactionList.d.ts +2 -2
  73. package/dist/transactions/index.es.js +138 -140
  74. package/dist/trends/index.es.js +293 -292
  75. package/dist/{useScreenSize-CeFhWTt_.mjs → useScreenSize-mWpmnh5w.mjs} +1 -1
  76. package/package.json +29 -23
  77. package/dist/SearchBox-CwDgvWVJ.mjs +0 -48
  78. package/dist/Select-BZRUpOib.mjs +0 -51
@@ -14,7 +14,7 @@ import d from "@mui/material/Stack";
14
14
  import { MerchantLogo as V, Text as R } from "@mxenabled/mxui";
15
15
  import { c as v, u as w, b as C } from "../hooks-BaO_gOI6.mjs";
16
16
  import { L as u } from "../Loader-CxeBwuPG.mjs";
17
- import { S as N } from "../SearchBox-CwDgvWVJ.mjs";
17
+ import { S as N } from "../SearchBox-Cpgu_gdO.mjs";
18
18
  const B = /^[ a-zA-ZÀ-ÿ0-9]+$/, H = 50, p = 65, P = ({
19
19
  height: f = "calc(100dvh - 120px)",
20
20
  onSelect: g
@@ -1,13 +1,11 @@
1
1
  import { default as React } from 'react';
2
- import { SxProps } from '@mui/material/styles';
3
2
  interface MicroCardTemplateProps {
4
3
  ariaLabel?: string;
5
- cardSx?: SxProps;
6
4
  closeAriaLabel?: string;
7
5
  description: string;
6
+ elevation?: number;
8
7
  icon?: React.ReactNode;
9
8
  isActiveCard?: boolean;
10
- hasCardEffect?: boolean;
11
9
  heightOverrides?: string | number;
12
10
  onClose?: () => void;
13
11
  onCardClick?: () => void;
@@ -16,7 +14,7 @@ interface MicroCardTemplateProps {
16
14
  primaryActionText?: string;
17
15
  secondaryActionText?: string;
18
16
  title: string;
19
- variant?: 'elevation' | 'outlined';
17
+ variant?: 'outlined' | 'elevation' | undefined;
20
18
  widthOverrides?: string | number;
21
19
  }
22
20
  declare const MicroCardTemplate: React.ForwardRefExoticComponent<MicroCardTemplateProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
- import { MicroWidgetProps, BeatLikeOffer } from '../interfaces';
2
+ import { BeatLikeOffer, MicroInsightCardProps } from '../interfaces';
3
3
  import { Beat } from '../../core/types/Beat';
4
- export interface InsightCardProps extends Pick<MicroWidgetProps, 'ariaLabel' | 'heightOverrides' | 'isActiveCard' | 'onCardClick' | 'posthog' | 'showIcon' | 'variant' | 'widthOverrides'> {
4
+ export interface InsightCardProps extends MicroInsightCardProps {
5
5
  beat: Beat | BeatLikeOffer;
6
6
  index?: number;
7
7
  }
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { MicroWidgetProps } from '../interfaces';
3
- type NoRelevantInsightsCardProps = Pick<MicroWidgetProps, 'ariaLabel' | 'heightOverrides' | 'onCardClick' | 'posthog' | 'showIcon' | 'variant'>;
4
- export declare const NoRelevantInsightsCard: React.FC<NoRelevantInsightsCardProps>;
5
- declare const _default: React.FunctionComponent<NoRelevantInsightsCardProps>;
2
+ import { MicroInsightCardProps } from '../interfaces';
3
+ export declare const NoRelevantInsightsCard: React.FC<MicroInsightCardProps>;
4
+ declare const _default: React.FunctionComponent<MicroInsightCardProps>;
6
5
  export default _default;
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { MicroWidgetProps } from '../interfaces';
3
- type ViewMoreMicroCardProps = Pick<MicroWidgetProps, 'ariaLabel' | 'heightOverrides' | 'isActiveCard' | 'onCardClick' | 'posthog' | 'showIcon' | 'variant' | 'widthOverrides'>;
4
- export declare const ViewMoreMicroCard: React.FC<ViewMoreMicroCardProps>;
5
- declare const _default: React.FunctionComponent<ViewMoreMicroCardProps>;
2
+ import { MicroInsightCardProps } from '../interfaces';
3
+ export declare const ViewMoreMicroCard: React.FC<MicroInsightCardProps>;
4
+ declare const _default: React.FunctionComponent<MicroInsightCardProps>;
6
5
  export default _default;
@@ -1,6 +1,5 @@
1
1
  import { default as React } from 'react';
2
- import { MicroWidgetProps } from '../interfaces';
3
- type ZeroStateCardProps = Pick<MicroWidgetProps, 'ariaLabel' | 'heightOverrides' | 'onCardClick' | 'showIcon' | 'variant'>;
4
- export declare const ZeroStateCard: React.FC<ZeroStateCardProps>;
5
- declare const _default: React.FunctionComponent<ZeroStateCardProps>;
2
+ import { MicroInsightCardProps } from '../interfaces';
3
+ export declare const ZeroStateCard: React.FC<MicroInsightCardProps>;
4
+ declare const _default: React.FunctionComponent<MicroInsightCardProps>;
6
5
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import { default as React } from 'react';
2
- import { MicroWidgetProps } from '..';
2
+ import { MicroInsightCardProps } from '../interfaces';
3
3
  import { Beat } from '../../core/types/Beat';
4
- export interface BeatListProps extends Pick<MicroWidgetProps, 'heightOverrides' | 'onCardClick' | 'posthog' | 'showIcon' | 'variant'> {
4
+ export interface BeatListProps extends MicroInsightCardProps {
5
5
  activeCardIndex: number;
6
6
  beats: Beat[];
7
7
  cardWidth: number | null;
@@ -1,9 +1,20 @@
1
1
  import { default as React } from 'react';
2
2
  import { MicroWidgetProps } from '..';
3
3
  import { Beat } from '../../core/types/Beat';
4
- export interface MicroBeatCarouselProps extends Pick<MicroWidgetProps, 'allowSingleCardPeeking' | 'heightOverrides' | 'onCardClick' | 'posthog' | 'showCarouselControls' | 'showIcon' | 'showWithMargin' | 'variant' | 'visibleCardsCount' | 'widthOverrides'> {
4
+ interface MicroBeatCarouselProps {
5
+ allowSingleCardPeeking?: boolean;
5
6
  analyticsMetadata?: Record<string, string>;
6
7
  beats?: Beat[];
8
+ elevation?: number;
9
+ heightOverrides?: MicroWidgetProps['heightOverrides'];
10
+ onCardClick?: MicroWidgetProps['onCardClick'];
11
+ posthog?: MicroWidgetProps['posthog'];
12
+ showCarouselControls?: boolean;
13
+ showIcon?: boolean;
14
+ showWithMargin?: boolean;
15
+ variant?: 'outlined' | 'elevation' | undefined;
16
+ visibleCardsCount?: number;
17
+ widthOverrides?: number;
7
18
  }
8
19
  declare const _default: React.FunctionComponent<MicroBeatCarouselProps>;
9
20
  export default _default;
@@ -1,4 +1,4 @@
1
- import { A as u, B as s, C as c, I as v, a as C, b as R, M as H, c as M, d as F, N as V, V as k, Z as x } from "../ViewMoreMicroCard-BB3Dusch.mjs";
1
+ import { A as u, B as s, C as c, I as v, a as C, b as R, M as H, c as M, d as F, N as V, V as k, Z as x } from "../ViewMoreMicroCard-BD_MNc2z.mjs";
2
2
  import { jsx as e, jsxs as l } from "react/jsx-runtime";
3
3
  const a = ({
4
4
  color: i = "currentColor",
@@ -2,29 +2,37 @@ import { Beat, Offer } from '../core';
2
2
  import { SxProps } from '@mui/material/styles';
3
3
  export interface MicroWidgetProps {
4
4
  allowSingleCardPeeking?: boolean;
5
- ariaLabel?: string;
6
5
  areBeatsLoading?: boolean;
7
6
  beats?: Beat[];
7
+ cardStyle?: 'elevation 1' | 'border' | 'flat';
8
8
  endpoint?: string;
9
9
  headerSx?: SxProps;
10
10
  heightOverrides?: number | string;
11
- isActiveCard?: boolean;
12
11
  logOutUser?: () => void;
13
12
  onCardClick?: (beat?: Beat | undefined) => void;
14
13
  onEvent?: (event?: string | undefined) => void;
15
14
  onPageview?: (event?: string | undefined) => void;
16
15
  posthog?: TheWholeHog;
17
- showBorder?: boolean;
18
16
  showCarouselControls?: boolean;
19
17
  showHeader?: boolean;
20
18
  showIcon?: boolean;
21
19
  showWithMargin?: boolean;
22
20
  token?: string;
23
21
  userHasFullInsightFeedBeats?: boolean;
24
- variant?: 'elevation' | 'outlined' | undefined;
25
22
  visibleCardsCount?: number;
26
23
  widthOverrides?: number;
27
24
  }
25
+ export interface MicroInsightCardProps {
26
+ ariaLabel?: string;
27
+ elevation?: number;
28
+ heightOverrides?: number | string;
29
+ isActiveCard?: boolean;
30
+ onCardClick?: (beat?: Beat | undefined) => void;
31
+ posthog?: TheWholeHog;
32
+ showIcon?: boolean;
33
+ variant?: 'outlined' | 'elevation' | undefined;
34
+ widthOverrides?: number;
35
+ }
28
36
  export interface TheWholeHog {
29
37
  identify: (userGuid: string, clientGuid: string, properties?: Record<string, any>) => void;
30
38
  capture: (eventName: string, properties?: Record<string, any>) => void;
@@ -2,41 +2,39 @@ import { jsxs as r, jsx as e, Fragment as N } from "react/jsx-runtime";
2
2
  import u from "react";
3
3
  import { observer as _ } from "mobx-react-lite";
4
4
  import m from "@mui/material/Stack";
5
- import { P as Y, Text as d, Icon as H } from "@mxenabled/mxui";
5
+ import { P as Y, Text as d, Icon as R } from "@mxenabled/mxui";
6
6
  import { Icon as Z } from "@mxenabled/mx-icons";
7
7
  import { f as F } from "../NumberFormatting--XMeeBfr.mjs";
8
- import { d as re, g as z, u as E, b as q, x as R, D as ie } from "../hooks-BaO_gOI6.mjs";
8
+ import { d as oe, g as $, u as E, b as q, x as j, D as re } from "../hooks-BaO_gOI6.mjs";
9
9
  import { u as J } from "../useWidgetLoadTimer-CJb-RELP.mjs";
10
10
  import { A as v } from "../Analytics-CzGzz_sE.mjs";
11
11
  import { L as Q } from "../Loader-CxeBwuPG.mjs";
12
- import { M as ae } from "../MicroWidgetContainer-CfKdQfhi.mjs";
13
- import { format as se, fromUnixTime as ce, differenceInMonths as le } from "date-fns";
12
+ import { M as ie } from "../MicroWidgetContainer-CfKdQfhi.mjs";
13
+ import { format as ae, fromUnixTime as se, differenceInMonths as ce } from "date-fns";
14
14
  import P from "@mui/material/Box";
15
- import { C as de } from "../ConnectionsDrawer-D7IXAza2.mjs";
16
- import { fromUnixTime as me } from "date-fns/fromUnixTime";
17
- import he from "@mui/material/Stack/Stack";
18
- import { useTheme as G } from "@mui/material/styles";
19
- import { L as pe } from "../LineChart-CejWS_rh.mjs";
20
- import { u as ee } from "../useScreenSize-CeFhWTt_.mjs";
21
- import { f as ue, D as fe } from "../DateFormats-HudZ3Bjs.mjs";
22
- import xe from "@mui/material/Button";
15
+ import { C as le } from "../ConnectionsDrawer-CtfPXk0M.mjs";
16
+ import { fromUnixTime as de } from "date-fns/fromUnixTime";
17
+ import { useTheme as H } from "@mui/material/styles";
18
+ import { L as me } from "../LineChart-CejWS_rh.mjs";
19
+ import { u as ee } from "../useScreenSize-mWpmnh5w.mjs";
20
+ import { f as he, D as pe } from "../DateFormats-HudZ3Bjs.mjs";
21
+ import ue from "@mui/material/Button";
23
22
  import L from "@mui/material/Divider";
24
- import j from "@mui/material/List";
23
+ import z from "@mui/material/List";
25
24
  import A from "@mui/material/ListSubheader";
26
25
  import O from "@mui/material/ListItem";
27
26
  import te from "@mui/material/ListItemButton";
28
27
  import b from "@mui/material/ListItemText";
29
28
  import { j as ne } from "../DateUtil-Bhq59ZVg.mjs";
30
29
  import { C as x } from "../CurrencyText-CCbE6MmF.mjs";
31
- import oe from "@mui/material/styles/useTheme";
32
- import { Stack as ge } from "@mui/material";
33
- import ye from "@mui/material/Collapse";
30
+ import { Stack as fe } from "@mui/material";
31
+ import xe from "@mui/material/Collapse";
34
32
  import K from "@mui/material/ListItemIcon";
35
33
  import { g as U } from "../NetWorthUtils-DilGN1nW.mjs";
36
- import { D as V } from "../Drawer-XPaLYjiO.mjs";
37
- import { W as Ce } from "../WidgetContainer-CYcmwsSu.mjs";
38
- import { E as be } from "../EmptyState-DHAkGsjk.mjs";
39
- const _e = ({ amount: t, copy: s, trendValue: i }) => {
34
+ import { D as V } from "../Drawer-BXqqBMxg.mjs";
35
+ import { W as ge } from "../WidgetContainer-DNuz_s7W.mjs";
36
+ import { E as ye } from "../EmptyState-CJUDc3kD.mjs";
37
+ const Ce = ({ amount: t, copy: s, trendValue: i }) => {
40
38
  const n = i > 0, o = i === 0 ? "trending_flat" : n ? "trending_up" : "trending_down";
41
39
  return /* @__PURE__ */ r(m, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
42
40
  /* @__PURE__ */ e(Y, { variant: "h1", children: F(t, "0,0") }),
@@ -48,14 +46,14 @@ const _e = ({ amount: t, copy: s, trendValue: i }) => {
48
46
  /* @__PURE__ */ e(d, { sx: { display: "block", textAlign: "right" }, variant: "caption", children: s.this_month })
49
47
  ] })
50
48
  ] });
51
- }, we = ({ copy: t }) => /* @__PURE__ */ r(m, { sx: { flexDirection: "row", gap: 12 }, children: [
49
+ }, be = ({ copy: t }) => /* @__PURE__ */ r(m, { sx: { flexDirection: "row", gap: 12 }, children: [
52
50
  /* @__PURE__ */ e(Z, { name: "elevation", size: 32, sx: { color: "text.primary" } }),
53
51
  /* @__PURE__ */ r(m, { children: [
54
52
  /* @__PURE__ */ e(d, { sx: { display: "block", fontWeight: 600 }, variant: "body1", children: t.empty_widget_header }),
55
53
  /* @__PURE__ */ e(Y, { sx: { color: "text.secondary" }, variant: "body2", children: t.zero_state_description })
56
54
  ] })
57
- ] }), _t = _(({ onCTAClick: t }) => {
58
- const { visibleAccounts: s } = re(), { onEvent: i } = z(), { net_worth: n, common: a } = E(), { isInitialized: o } = q(), { isNetWorthDataLoaded: c, loadNetWorthData: l, netWorthData: g, selectedData: f } = R();
55
+ ] }), gt = _(({ onCTAClick: t }) => {
56
+ const { visibleAccounts: s } = oe(), { onEvent: i } = $(), { net_worth: n, common: a } = E(), { isInitialized: o } = q(), { isNetWorthDataLoaded: c, loadNetWorthData: l, netWorthData: g, selectedData: f } = j();
59
57
  if (u.useEffect(() => {
60
58
  c || l().finally();
61
59
  }, []), J({
@@ -66,41 +64,41 @@ const _e = ({ amount: t, copy: s, trendValue: i }) => {
66
64
  state: s?.length ? "default" : "zeroState"
67
65
  });
68
66
  }, [c]), !o || !c) return /* @__PURE__ */ e(Q, { height: 100 });
69
- const S = () => {
67
+ const W = () => {
70
68
  i(
71
69
  s.length ? v.NET_WORTH_CLICK_VIEW_DETAILS : v.NET_WORTH_CLICK_GET_STARTED
72
70
  ), t();
73
71
  };
74
72
  return /* @__PURE__ */ e(
75
- ae,
73
+ ie,
76
74
  {
77
75
  className: "mx-networth-microwidget",
78
76
  ctaLabel: a.see_details,
79
- onCTAClick: S,
77
+ onCTAClick: W,
80
78
  title: n.net_worth,
81
79
  children: g.accounts.length ? /* @__PURE__ */ e(
82
- _e,
80
+ Ce,
83
81
  {
84
82
  amount: f?.y,
85
83
  copy: n,
86
84
  trendValue: f?.change
87
85
  }
88
- ) : /* @__PURE__ */ e(we, { copy: n })
86
+ ) : /* @__PURE__ */ e(be, { copy: n })
89
87
  }
90
88
  );
91
- }), ve = () => {
92
- const { isMobile: t } = ee(), { availableWidth: s } = ie(), i = G(), {
89
+ }), _e = () => {
90
+ const { isMobile: t } = ee(), { availableWidth: s } = re(), i = H(), {
93
91
  hoveredData: n,
94
92
  netWorthChartData: a,
95
93
  selectedData: o,
96
94
  setHoveredIndex: c,
97
95
  setSelectedIndex: l
98
- } = R(), g = s - 320, f = a.map((h) => ({
99
- x: ue(me(h.x), fe.MONTH_SHORT),
96
+ } = j(), g = s - 320, f = a.map((h) => ({
97
+ x: he(de(h.x), pe.MONTH_SHORT),
100
98
  y: h.y
101
- })), S = o ? { index: a.findIndex((h) => h.x === o.x) } : void 0, W = n ? { index: a.findIndex((h) => h.x === n.x) } : void 0, w = (h) => ({
102
- fill: h === S?.index ? i.palette.success.main : "",
103
- filter: h === W?.index ? `drop-shadow(0px 0px 10px ${i.palette.success.main})` : "none",
99
+ })), W = o ? { index: a.findIndex((h) => h.x === o.x) } : void 0, S = n ? { index: a.findIndex((h) => h.x === n.x) } : void 0, w = (h) => ({
100
+ fill: h === W?.index ? i.palette.success.main : "",
101
+ filter: h === S?.index ? `drop-shadow(0px 0px 10px ${i.palette.success.main})` : "none",
104
102
  stroke: i.palette.success.main
105
103
  }), y = (h, M) => {
106
104
  l(M);
@@ -109,8 +107,8 @@ const _e = ({ amount: t, copy: s, trendValue: i }) => {
109
107
  }, D = () => {
110
108
  c(-1);
111
109
  };
112
- return /* @__PURE__ */ e(he, { sx: { width: "100%" }, children: /* @__PURE__ */ e(
113
- pe,
110
+ return /* @__PURE__ */ e(m, { sx: { width: "100%" }, children: /* @__PURE__ */ e(
111
+ me,
114
112
  {
115
113
  baseline: "min",
116
114
  chartFor: "networthChart",
@@ -129,7 +127,7 @@ const _e = ({ amount: t, copy: s, trendValue: i }) => {
129
127
  width: t ? s - 48 : g
130
128
  }
131
129
  ) });
132
- }, Se = _(ve), We = ({
130
+ }, we = _(_e), ve = ({
133
131
  item: t,
134
132
  getStyles: s,
135
133
  isHovered: i = !1,
@@ -174,7 +172,7 @@ const _e = ({ amount: t, copy: s, trendValue: i }) => {
174
172
  ),
175
173
  /* @__PURE__ */ e(L, {})
176
174
  ] }, t.x);
177
- }, Te = _(We), Ie = ({
175
+ }, We = _(ve), Se = ({
178
176
  currencyLabel: t,
179
177
  currencyVariant: s = "body2",
180
178
  iconSize: i,
@@ -182,9 +180,9 @@ const _e = ({ amount: t, copy: s, trendValue: i }) => {
182
180
  theme: a
183
181
  }) => {
184
182
  let o = a.palette.secondary.main, c = a.palette.secondary.main, l = "trending_flat";
185
- return n.change < 0 ? l = "trending_down" : n.change > 0 && (o = a.palette.success.main, c = a.palette.success.main, l = "trending_up"), /* @__PURE__ */ r(ge, { alignItems: "center", direction: "row", spacing: 4, children: [
183
+ return n.change < 0 ? l = "trending_down" : n.change > 0 && (o = a.palette.success.main, c = a.palette.success.main, l = "trending_up"), /* @__PURE__ */ r(fe, { alignItems: "center", direction: "row", spacing: 4, children: [
186
184
  /* @__PURE__ */ e(
187
- H,
185
+ R,
188
186
  {
189
187
  name: l,
190
188
  size: i,
@@ -196,21 +194,21 @@ const _e = ({ amount: t, copy: s, trendValue: i }) => {
196
194
  /* @__PURE__ */ e(x, { amount: n.change, color: c, variant: s }),
197
195
  /* @__PURE__ */ e(d, { variant: "body2", children: t })
198
196
  ] });
199
- }, B = _(Ie), Le = ({
197
+ }, B = _(Se), Ie = ({
200
198
  netWorth: t,
201
199
  gains: s,
202
200
  losses: i,
203
201
  totalGains: n,
204
202
  totalLosses: a
205
203
  }) => {
206
- const { net_worth: o } = E(), c = oe();
204
+ const { net_worth: o } = E(), c = H();
207
205
  return /* @__PURE__ */ r(N, { children: [
208
206
  /* @__PURE__ */ r(m, { alignItems: "center", justifyContent: "space-between", mb: 8, pt: 24, children: [
209
207
  /* @__PURE__ */ e(d, { variant: "body2", children: ne(t?.x) }),
210
208
  /* @__PURE__ */ e(d, { variant: "body1", children: o.total_change }),
211
209
  t && /* @__PURE__ */ e(B, { currencyVariant: "h1", iconSize: 32, netWorth: t, theme: c })
212
210
  ] }),
213
- /* @__PURE__ */ r(j, { children: [
211
+ /* @__PURE__ */ r(z, { children: [
214
212
  /* @__PURE__ */ e(A, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(
215
213
  b,
216
214
  {
@@ -287,21 +285,21 @@ const _e = ({ amount: t, copy: s, trendValue: i }) => {
287
285
  ] }))
288
286
  ] })
289
287
  ] });
290
- }, De = _(Le), Ne = ({ accounts: t, name: s, icon: i }) => {
288
+ }, Te = _(Ie), Le = ({ accounts: t, name: s, icon: i }) => {
291
289
  const [n, a] = u.useState(!1);
292
290
  return /* @__PURE__ */ r(N, { children: [
293
291
  /* @__PURE__ */ e(O, { sx: (o) => ({ backgroundColor: o.palette.background.paper }), children: /* @__PURE__ */ r(te, { onClick: () => a(!n), children: [
294
- i && /* @__PURE__ */ e(K, { children: /* @__PURE__ */ e(H, { name: i, size: 24, sx: { mr: 12 } }) }),
292
+ i && /* @__PURE__ */ e(K, { children: /* @__PURE__ */ e(R, { name: i, size: 24, sx: { mr: 12 } }) }),
295
293
  /* @__PURE__ */ e(
296
294
  b,
297
295
  {
298
296
  primary: /* @__PURE__ */ e(d, { sx: { fontWeight: 700 }, variant: "body1", children: s })
299
297
  }
300
298
  ),
301
- /* @__PURE__ */ e(K, { children: n ? /* @__PURE__ */ e(H, { name: "expand_less", size: 24 }) : /* @__PURE__ */ e(H, { name: "expand_more", size: 24 }) })
299
+ /* @__PURE__ */ e(K, { children: n ? /* @__PURE__ */ e(R, { name: "expand_less", size: 24 }) : /* @__PURE__ */ e(R, { name: "expand_more", size: 24 }) })
302
300
  ] }) }),
303
301
  /* @__PURE__ */ e(L, {}),
304
- /* @__PURE__ */ e(ye, { in: n, timeout: "auto", unmountOnExit: !0, children: t.map((o, c) => /* @__PURE__ */ r(j, { children: [
302
+ /* @__PURE__ */ e(xe, { in: n, timeout: "auto", unmountOnExit: !0, children: t.map((o, c) => /* @__PURE__ */ r(z, { children: [
305
303
  /* @__PURE__ */ e(O, { sx: () => ({ py: 14 }), children: /* @__PURE__ */ e(
306
304
  b,
307
305
  {
@@ -333,14 +331,14 @@ const _e = ({ amount: t, copy: s, trendValue: i }) => {
333
331
  c < t.length - 1 ? /* @__PURE__ */ e(L, { variant: "inset" }) : /* @__PURE__ */ e(L, {})
334
332
  ] }, o.accountName)) })
335
333
  ] });
336
- }, X = ({ groupedAccounts: t }) => /* @__PURE__ */ e(N, { children: t.map(({ accounts: s, icon: i, name: n }) => /* @__PURE__ */ e(Ne, { accounts: s, icon: i, name: n }, n)) }), Ee = ({
334
+ }, X = ({ groupedAccounts: t }) => /* @__PURE__ */ e(N, { children: t.map(({ accounts: s, icon: i, name: n }) => /* @__PURE__ */ e(Le, { accounts: s, icon: i, name: n }, n)) }), De = ({
337
335
  netWorth: t,
338
336
  assets: s,
339
337
  liabilities: i,
340
338
  totalAssets: n,
341
339
  totalLiabilities: a
342
340
  }) => {
343
- const { net_worth: o } = E(), c = oe();
341
+ const { net_worth: o } = E(), c = H();
344
342
  return /* @__PURE__ */ r(N, { children: [
345
343
  /* @__PURE__ */ r(
346
344
  P,
@@ -368,7 +366,7 @@ const _e = ({ amount: t, copy: s, trendValue: i }) => {
368
366
  ]
369
367
  }
370
368
  ),
371
- /* @__PURE__ */ r(j, { children: [
369
+ /* @__PURE__ */ r(z, { children: [
372
370
  /* @__PURE__ */ e(A, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(
373
371
  b,
374
372
  {
@@ -398,8 +396,8 @@ const _e = ({ amount: t, copy: s, trendValue: i }) => {
398
396
  /* @__PURE__ */ e(X, { groupedAccounts: U(i) })
399
397
  ] })
400
398
  ] });
401
- }, ke = _(Ee), Me = () => {
402
- const { net_worth: t } = E(), s = G(), { onEvent: i } = z(), {
399
+ }, Ne = _(De), Ee = () => {
400
+ const { net_worth: t } = E(), s = H(), { onEvent: i } = $(), {
403
401
  assetsLiabilities: n,
404
402
  gainsLosses: a,
405
403
  hoveredData: o,
@@ -407,42 +405,42 @@ const _e = ({ amount: t, copy: s, trendValue: i }) => {
407
405
  selectedData: l,
408
406
  setHoveredIndex: g,
409
407
  setSelectedIndex: f
410
- } = R(), [S, W] = u.useState(!1), [w, y] = u.useState(!1), k = (p) => {
411
- const C = p.x === o?.x, T = p.x === l?.x, I = {
408
+ } = j(), [W, S] = u.useState(!1), [w, y] = u.useState(!1), k = (p) => {
409
+ const C = p.x === o?.x, I = p.x === l?.x, T = {
412
410
  backgroundColor: "inherit",
413
411
  borderBottom: "inherit",
414
412
  color: "inherit"
415
413
  };
416
- return C && (I.color = T ? "inherit" : I.color, I.backgroundColor = s.palette.action.hover), T && (I.backgroundColor = s.palette.primary.main, I.borderBottom = s.palette.neutral.light, I.color = s.palette.common.white), I;
414
+ return C && (T.color = I ? "inherit" : T.color, T.backgroundColor = s.palette.action.hover), I && (T.backgroundColor = s.palette.primary.main, T.borderBottom = s.palette.neutral.light, T.color = s.palette.common.white), T;
417
415
  }, D = (p, C) => {
418
- f(C), p.currentTarget instanceof HTMLDivElement && W(!0);
416
+ f(C), p.currentTarget instanceof HTMLDivElement && S(!0);
419
417
  }, h = () => {
420
418
  y(!0), i(v.NET_WORTH_WIDGET_CLICK_ASSETS_LIABILITIES);
421
419
  }, M = (p) => {
422
420
  g(p);
423
- }, $ = () => {
421
+ }, G = () => {
424
422
  g(-1);
425
423
  };
426
424
  return /* @__PURE__ */ r(m, { direction: "column", sx: { width: 320 }, children: [
427
- /* @__PURE__ */ r(j, { children: [
425
+ /* @__PURE__ */ r(z, { children: [
428
426
  /* @__PURE__ */ e(A, { sx: { backgroundColor: "transparent", mb: 8, mt: 12, px: 12 }, children: /* @__PURE__ */ e(d, { bold: !0, component: "h2", variant: "body1", children: t.monthly_totals }) }),
429
427
  /* @__PURE__ */ e(L, {}),
430
428
  c.map((p, C) => /* @__PURE__ */ e(
431
- Te,
429
+ We,
432
430
  {
433
431
  getStyles: k,
434
432
  isHovered: p.x === o?.x,
435
433
  isSelected: p.x === l?.x,
436
434
  item: p,
437
- onItemClick: (T) => D(T, C),
435
+ onItemClick: (I) => D(I, C),
438
436
  onMouseEnter: () => M(C),
439
- onMouseLeave: () => $()
437
+ onMouseLeave: () => G()
440
438
  },
441
439
  p.x
442
440
  ))
443
441
  ] }),
444
442
  /* @__PURE__ */ e(
445
- xe,
443
+ ue,
446
444
  {
447
445
  onClick: () => h(),
448
446
  sx: { alignSelf: "center", marginTop: 16, width: "fit-content" },
@@ -454,12 +452,12 @@ const _e = ({ amount: t, copy: s, trendValue: i }) => {
454
452
  V,
455
453
  {
456
454
  ariaLabelClose: "Close",
457
- isOpen: S,
458
- onClose: () => W(!1),
455
+ isOpen: W,
456
+ onClose: () => S(!1),
459
457
  shouldShowHeaderBorders: !1,
460
458
  shouldShowHeaderShadow: !0,
461
459
  title: t.gains_and_losses,
462
- children: a && /* @__PURE__ */ e(De, { ...a })
460
+ children: a && /* @__PURE__ */ e(Te, { ...a })
463
461
  }
464
462
  ),
465
463
  /* @__PURE__ */ e(
@@ -471,45 +469,45 @@ const _e = ({ amount: t, copy: s, trendValue: i }) => {
471
469
  shouldShowHeaderBorders: !1,
472
470
  shouldShowHeaderShadow: !0,
473
471
  title: t.assets_and_liabilities,
474
- children: n && /* @__PURE__ */ e(ke, { ...n })
472
+ children: n && /* @__PURE__ */ e(Ne, { ...n })
475
473
  }
476
474
  )
477
475
  ] });
478
- }, Ae = _(Me), Oe = ({ hoveredData: t, selectedData: s }) => {
479
- const { net_worth: i } = E(), n = G(), a = t || s, o = se(ce(a.x), "MMMM");
476
+ }, ke = _(Ee), Me = ({ hoveredData: t, selectedData: s }) => {
477
+ const { net_worth: i } = E(), n = H(), a = t || s, o = ae(se(a.x), "MMMM");
480
478
  return /* @__PURE__ */ r(m, { alignItems: "center", direction: "column", m: 24, children: [
481
479
  /* @__PURE__ */ e(d, { color: n.palette.secondary.main, variant: "body2", children: `${o} ${i.net_worth}` }),
482
480
  /* @__PURE__ */ e(x, { amount: a.y, variant: "h2" }),
483
481
  /* @__PURE__ */ e(B, { currencyLabel: i.this_month, netWorth: a, theme: n })
484
482
  ] });
485
- }, He = _(Oe), wt = _(({ onBackClick: t, onMenuClick: s }) => {
483
+ }, Ae = _(Me), yt = _(({ onBackClick: t, onMenuClick: s }) => {
486
484
  const { isInitialized: i } = q(), { accounts: n, net_worth: a } = E(), {
487
485
  hoveredData: o,
488
486
  isNetWorthDataLoaded: c,
489
487
  loadNetWorthData: l,
490
488
  netWorthChartData: g,
491
489
  selectedData: f,
492
- setTimeframe: S,
493
- timeframe: W
494
- } = R(), { isMobile: w } = ee(), { onEvent: y } = z(), [k, D] = u.useState(!1);
490
+ setTimeframe: W,
491
+ timeframe: S
492
+ } = j(), { isMobile: w } = ee(), { onEvent: y } = $(), [k, D] = u.useState(!1);
495
493
  J({
496
494
  widgetName: "NetWorthWidget",
497
495
  isLoaded: c
498
496
  }), u.useEffect(() => {
499
497
  c || l().finally(), y(v.NET_WORTH_VIEW);
500
498
  }, []), u.useEffect(() => {
501
- y(v.NET_WORTH_WIDGET_CLICK_TIMEFRAME, { time_period: W + "M" });
502
- }, [W]);
499
+ y(v.NET_WORTH_WIDGET_CLICK_TIMEFRAME, { time_period: S + "M" });
500
+ }, [S]);
503
501
  const h = async (p) => {
504
- const C = p[0], T = p[1];
505
- C && T && S(le(T, C));
502
+ const C = p[0], I = p[1];
503
+ C && I && W(ce(I, C));
506
504
  }, M = () => {
507
505
  D(!0), y(v.ACCOUNTS_CLICK_CONNECT);
508
506
  };
509
507
  if (!i || !c) return /* @__PURE__ */ e(Q, {});
510
- const $ = g.length === 0;
508
+ const G = g.length === 0;
511
509
  return /* @__PURE__ */ r(
512
- Ce,
510
+ ge,
513
511
  {
514
512
  calendarActions: { onRangeChanged: h },
515
513
  dateRangeVariant: w ? "timeframetabs" : "timeframebuttons",
@@ -518,8 +516,8 @@ const _e = ({ amount: t, copy: s, trendValue: i }) => {
518
516
  onMenuClick: s,
519
517
  title: a.net_worth,
520
518
  children: [
521
- $ ? /* @__PURE__ */ e(P, { sx: { justifyItems: "center" }, children: /* @__PURE__ */ e(
522
- be,
519
+ G ? /* @__PURE__ */ e(P, { sx: { justifyItems: "center" }, children: /* @__PURE__ */ e(
520
+ ye,
523
521
  {
524
522
  header: a.empty_widget_header,
525
523
  icon: "elevation",
@@ -534,7 +532,7 @@ const _e = ({ amount: t, copy: s, trendValue: i }) => {
534
532
  }
535
533
  }
536
534
  ) }) : /* @__PURE__ */ r(N, { children: [
537
- f && /* @__PURE__ */ e(He, { hoveredData: o, selectedData: f }),
535
+ f && /* @__PURE__ */ e(Ae, { hoveredData: o, selectedData: f }),
538
536
  /* @__PURE__ */ r(
539
537
  m,
540
538
  {
@@ -542,14 +540,14 @@ const _e = ({ amount: t, copy: s, trendValue: i }) => {
542
540
  direction: w ? "column" : "row",
543
541
  spacing: w ? 0 : 48,
544
542
  children: [
545
- /* @__PURE__ */ e(Se, {}),
546
- /* @__PURE__ */ e(Ae, {})
543
+ /* @__PURE__ */ e(we, {}),
544
+ /* @__PURE__ */ e(ke, {})
547
545
  ]
548
546
  }
549
547
  )
550
548
  ] }),
551
549
  /* @__PURE__ */ e(
552
- de,
550
+ le,
553
551
  {
554
552
  onClose: () => D(!1),
555
553
  showConnectionsWidget: k,
@@ -561,6 +559,6 @@ const _e = ({ amount: t, copy: s, trendValue: i }) => {
561
559
  );
562
560
  });
563
561
  export {
564
- _t as NetWorthMicroWidget,
565
- wt as NetWorthWidget
562
+ gt as NetWorthMicroWidget,
563
+ yt as NetWorthWidget
566
564
  };
@@ -10,14 +10,14 @@ import { g as R, s as O } from "../NotificationUtils-BRGFTePr.mjs";
10
10
  import { Text as m, InstitutionLogo as G, CategoryIcon as E } from "@mxenabled/mxui";
11
11
  import { i as j } from "../DateUtil-Bhq59ZVg.mjs";
12
12
  import { useTheme as z, Card as U } from "@mui/material";
13
- import { d as F, o as P, u as C, y as w, b as v, a as V } from "../hooks-BaO_gOI6.mjs";
13
+ import { d as F, o as P, u as C, y as v, b as w, a as V } from "../hooks-BaO_gOI6.mjs";
14
14
  import { Icon as W, Settings as $ } from "@mxenabled/mx-icons";
15
15
  import M from "@mui/material/Button";
16
16
  import X from "@mui/material/Stack";
17
17
  import { L as k } from "../Loader-CxeBwuPG.mjs";
18
18
  import Y from "@mui/material/IconButton";
19
- import { N as q } from "../NotificationSettings-CCg-Tml2.mjs";
20
- import { D as x } from "../Drawer-XPaLYjiO.mjs";
19
+ import { N as q } from "../NotificationSettings-6p-h5phZ.mjs";
20
+ import { D as x } from "../Drawer-BXqqBMxg.mjs";
21
21
  const xt = (i) => {
22
22
  switch (i) {
23
23
  case N.BudgetExceeded:
@@ -53,7 +53,7 @@ const xt = (i) => {
53
53
  }
54
54
  ) }) : /* @__PURE__ */ t("div", { style: u.badge, children: /* @__PURE__ */ t(E, { categoryGuid: a?.category_guid, size: 36 }) });
55
55
  }, K = p(J), Q = ({ notification: i, onClick: e }) => {
56
- const { updateNotification: r } = w(), n = z(), o = {
56
+ const { updateNotification: r } = v(), n = z(), o = {
57
57
  card: {
58
58
  alignItems: "center",
59
59
  cursor: "pointer",
@@ -98,8 +98,7 @@ const xt = (i) => {
98
98
  maxWidth: 327,
99
99
  pb: 24,
100
100
  pt: 12,
101
- textAlign: "center",
102
- whiteSpace: "normal"
101
+ textAlign: "center"
103
102
  },
104
103
  variant: "subtitle1",
105
104
  children: e.notification_empty_state.notification_description
@@ -113,7 +112,7 @@ const xt = (i) => {
113
112
  onClick: e,
114
113
  onManageNotifications: r
115
114
  }) => {
116
- const { isLoading: n, loadNotifications: o, markAllAsViewed: a, recentNotifications: d } = w(), { isInitialized: u } = v(), c = (s) => {
115
+ const { isLoading: n, loadNotifications: o, markAllAsViewed: a, recentNotifications: d } = v(), { isInitialized: u } = w(), c = (s) => {
117
116
  e?.(s);
118
117
  };
119
118
  D(() => {
@@ -140,7 +139,7 @@ const xt = (i) => {
140
139
  ] });
141
140
  }, it = p(tt), St = p(
142
141
  ({ notificationTypes: i, isOpen: e, onClose: r, onNotificationClick: n }) => {
143
- const { config: o } = V(), { notifications: a, settings: d } = C(), { isCopyLoaded: u } = v(), [c, g] = T.useState(!1);
142
+ const { config: o } = V(), { notifications: a, settings: d } = C(), { isCopyLoaded: u } = w(), [c, g] = T.useState(!1);
144
143
  return u ? /* @__PURE__ */ l(S, { children: [
145
144
  /* @__PURE__ */ l(
146
145
  x,