@mx-cartographer/experiences 7.0.63 → 7.0.65

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 (38) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/{AccountDetailsContent-DsD3Wzu7.mjs → AccountDetailsContent-BpY7i5Vt.mjs} +5 -5
  3. package/dist/{AccountDetailsHeader-DN2pk4QW.mjs → AccountDetailsHeader-D0FKqNmV.mjs} +3 -3
  4. package/dist/{AccountFields-CuivK48n.mjs → AccountFields-CgkCSvJV.mjs} +1 -1
  5. package/dist/{AccountListItem-BAdwVscV.mjs → AccountListItem-DbpLvx5I.mjs} +2 -2
  6. package/dist/{BudgetUtil-2EncZLBQ.mjs → BudgetUtil-psfk-Amb.mjs} +1 -1
  7. package/dist/{CurrencyInput-CRtdzs3o.mjs → CurrencyInput-C4xNRL2W.mjs} +1 -1
  8. package/dist/{CurrencyText-YUhH2caW.mjs → CurrencyText-kyC1aseI.mjs} +1 -1
  9. package/dist/{GoalStore-DxOUk36P.mjs → GoalStore-BgiYFwWB.mjs} +1 -1
  10. package/dist/{LineChart-B2Y7zwMu.mjs → LineChart-B35qvXik.mjs} +186 -175
  11. package/dist/{ManageIncome-BX7dzGF8.mjs → ManageIncome-BXlzeXk6.mjs} +83 -74
  12. package/dist/{NotificationSettings-C215AwS0.mjs → NotificationSettings-BuShgjn6.mjs} +2 -2
  13. package/dist/NumberFormatting-Buh7u8Oi.mjs +48 -0
  14. package/dist/{OriginalBalanceAction-CEuIYsc_.mjs → OriginalBalanceAction-BsxcvNEF.mjs} +2 -2
  15. package/dist/{RecurringSettings-B486z99o.mjs → RecurringSettings-1t4mROQZ.mjs} +2 -2
  16. package/dist/{RecurringTransactions-DTUx9VN1.mjs → RecurringTransactions-ej39mgA6.mjs} +1 -1
  17. package/dist/{RecurringTransactionsStore-Djo9IeDd.mjs → RecurringTransactionsStore-DrzS1LmF.mjs} +1 -1
  18. package/dist/{TransactionDetails-DAp_CPCP.mjs → TransactionDetails-B2Z5S7FM.mjs} +2 -2
  19. package/dist/{TrendsStore-BKBnNQba.mjs → TrendsStore-ZZ8X36lJ.mjs} +2 -2
  20. package/dist/accounts/index.es.js +7 -7
  21. package/dist/budgets/index.es.js +5 -5
  22. package/dist/cashflow/index.es.js +7 -7
  23. package/dist/common/components/charts/LineChart.d.ts +5 -0
  24. package/dist/common/index.es.js +13 -13
  25. package/dist/common/utils/NumberFormatting.d.ts +1 -0
  26. package/dist/debts/index.es.js +4 -4
  27. package/dist/finstrong/index.es.js +3 -3
  28. package/dist/goals/index.es.js +7 -7
  29. package/dist/investments/index.es.js +1 -1
  30. package/dist/networth/index.es.js +67 -64
  31. package/dist/notifications/index.es.js +1 -1
  32. package/dist/recurringtransactions/index.es.js +8 -8
  33. package/dist/settings/index.es.js +2 -2
  34. package/dist/spending/index.es.js +2 -2
  35. package/dist/transactions/index.es.js +4 -4
  36. package/dist/trends/index.es.js +6 -6
  37. package/package.json +1 -1
  38. package/dist/NumberFormatting-CtWHhyBX.mjs +0 -40
@@ -9,7 +9,7 @@ import s from "@mui/material/Stack";
9
9
  import se from "@mui/material/styles/useTheme";
10
10
  import { Text as u, P as O, Icon as G, InstitutionLogo as xe, H1 as de, H2 as Xe } from "@mxenabled/mxui";
11
11
  import { G as Ye, t as me, u as L, p as ce, d as Ne, b as X, j as P, g as Oe, o as ke, h as He, a as Qe } from "../hooks-CE2TKk4a.mjs";
12
- import { C as R } from "../CurrencyText-YUhH2caW.mjs";
12
+ import { C as R } from "../CurrencyText-kyC1aseI.mjs";
13
13
  import { u as ue } from "../useScreenSize-B6JyS_Lj.mjs";
14
14
  import { L as te } from "../Loader-DUaFpDGv.mjs";
15
15
  import { I as he } from "../CashflowStore-D9Dpuz7X.mjs";
@@ -17,16 +17,16 @@ import { C as Gn } from "../CashflowStore-D9Dpuz7X.mjs";
17
17
  import { b as $ } from "../Localization-2MODESHW.mjs";
18
18
  import { M as Ve } from "../MiniWidgetContainer-DTQdRK-3.mjs";
19
19
  import { E as Ke } from "../EmptyState-DA_lfRBv.mjs";
20
- import { R as Je } from "../RecurringSettings-B486z99o.mjs";
20
+ import { R as Je } from "../RecurringSettings-1t4mROQZ.mjs";
21
21
  import Ze from "@mui/material/Tabs";
22
22
  import ye from "@mui/material/Tab";
23
23
  import { getUnixTime as B } from "date-fns/getUnixTime";
24
24
  import ee from "@mui/material/List";
25
25
  import ne from "@mui/material/ListItem";
26
- import { A as et } from "../AccountListItem-BAdwVscV.mjs";
26
+ import { A as et } from "../AccountListItem-DbpLvx5I.mjs";
27
27
  import { f as Y, D as Q } from "../Dialog-CWW597AF.mjs";
28
28
  import tt from "@mui/material/ListSubheader";
29
- import { f as Z } from "../NumberFormatting-CtWHhyBX.mjs";
29
+ import { f as Z } from "../NumberFormatting-Buh7u8Oi.mjs";
30
30
  import { isAfter as Fe } from "date-fns/isAfter";
31
31
  import { isBefore as We } from "date-fns/isBefore";
32
32
  import { isToday as $e } from "date-fns/isToday";
@@ -35,14 +35,14 @@ import { alpha as nt, keyframes as ot } from "@mui/material/styles";
35
35
  import { DataGridPro as at } from "@mui/x-data-grid-pro";
36
36
  import { T as Se } from "../TabContentContainer-j01JYR_7.mjs";
37
37
  import M from "@mui/material/Button";
38
- import { M as it, S as rt, i as st, d as we, c as ct } from "../ManageIncome-BX7dzGF8.mjs";
38
+ import { M as it, S as rt, i as st, d as we, c as ct } from "../ManageIncome-BXlzeXk6.mjs";
39
39
  import { D as Me } from "../Drawer-kEE73B87.mjs";
40
40
  import { formatISO as lt } from "date-fns/formatISO";
41
41
  import { fromUnixTime as _e } from "date-fns/fromUnixTime";
42
42
  import { startOfMonth as dt } from "date-fns/startOfMonth";
43
43
  import { subDays as Ge } from "date-fns/subDays";
44
- import { S as mt, b as ut } from "../TransactionDetails-DAp_CPCP.mjs";
45
- import { F as ht, R as Ie, e as ve } from "../RecurringTransactions-DTUx9VN1.mjs";
44
+ import { S as mt, b as ut } from "../TransactionDetails-B2Z5S7FM.mjs";
45
+ import { F as ht, R as Ie, e as ve } from "../RecurringTransactions-ej39mgA6.mjs";
46
46
  import { h as pt } from "../DateUtil-BcuH7ErC.mjs";
47
47
  import { endOfToday as ft } from "date-fns/endOfToday";
48
48
  import { W as De, A as Ae } from "../WidgetContainer-B8MRJ5Y1.mjs";
@@ -1,4 +1,5 @@
1
1
  import { default as React, CSSProperties } from 'react';
2
+ import { SxProps } from '@mui/material/styles';
2
3
  import { MarkHandlers } from './linechart/CustomMark';
3
4
  export type LineChartDataset = {
4
5
  x: string;
@@ -15,6 +16,9 @@ type LineChartCurve = 'catmullRom' | 'linear' | 'monotoneX' | 'monotoneY' | 'nat
15
16
  interface LineChartProps {
16
17
  axisColor?: string;
17
18
  baseline?: string;
19
+ chartFor?: string;
20
+ chartXaxisSx?: SxProps;
21
+ chartYaxisSx?: SxProps;
18
22
  colors: (string | undefined)[];
19
23
  curveType?: LineChartCurve;
20
24
  customLegendVariant?: string;
@@ -46,6 +50,7 @@ interface LineChartProps {
46
50
  showXAxisTicks?: boolean;
47
51
  showYAxis?: boolean;
48
52
  showYAxisTicks?: boolean;
53
+ tickIntervals?: any[] | 'auto' | ((value: any, index: number) => boolean) | undefined;
49
54
  title?: string;
50
55
  useCustomMark?: boolean;
51
56
  valueFormatterString?: string;
@@ -14,7 +14,7 @@ import { M as bs } from "../MicroWidgetContainer-C4QQHfD7.mjs";
14
14
  import { M as xs } from "../MiniWidgetContainer-DTQdRK-3.mjs";
15
15
  import { A as vs, D as Ds, W as As } from "../WidgetContainer-B8MRJ5Y1.mjs";
16
16
  import { j as Ts, a as Bs, e as Is, n as Ns, A as Ms, f as ks, k as $s, d as Rs, m as Ps, E as Os, i as Us, N as Ls, h as Gs, P as Hs, o as Fs, S as Ws } from "../ConnectDrawer-DJA_S-rX.mjs";
17
- import { C as Ys } from "../CurrencyInput-CRtdzs3o.mjs";
17
+ import { C as Ys } from "../CurrencyInput-C4xNRL2W.mjs";
18
18
  import { L as zs } from "../Loader-DUaFpDGv.mjs";
19
19
  import { R as js } from "../ResponsiveButton-DZFp78fJ.mjs";
20
20
  import { S as Vs } from "../SearchBox-B2_zLv8-.mjs";
@@ -22,23 +22,23 @@ import { T as at } from "../TransactionStore-B-Tq_YFE.mjs";
22
22
  import { S as Js } from "../TransactionStore-B-Tq_YFE.mjs";
23
23
  import { T as er } from "../TabContentContainer-j01JYR_7.mjs";
24
24
  import { I as rr } from "../IconBacking-B9oC6uL2.mjs";
25
- import { D as ar, F as nr, a as ir, c as cr, R as dr, S as lr } from "../RecurringTransactions-DTUx9VN1.mjs";
25
+ import { D as ar, F as nr, a as ir, c as cr, R as dr, S as lr } from "../RecurringTransactions-ej39mgA6.mjs";
26
26
  import { C as nt } from "../CashflowStore-D9Dpuz7X.mjs";
27
27
  import { I as hr } from "../CashflowStore-D9Dpuz7X.mjs";
28
- import { d as it } from "../GoalStore-DxOUk36P.mjs";
29
- import { C as pr, G as mr, M as _r, T as fr } from "../GoalStore-DxOUk36P.mjs";
30
- import { C as Sr } from "../CurrencyText-YUhH2caW.mjs";
28
+ import { d as it } from "../GoalStore-BgiYFwWB.mjs";
29
+ import { C as pr, G as mr, M as _r, T as fr } from "../GoalStore-BgiYFwWB.mjs";
30
+ import { C as Sr } from "../CurrencyText-kyC1aseI.mjs";
31
31
  import { E as wr } from "../EmptyState-DA_lfRBv.mjs";
32
32
  import { L as Cr } from "../ListItemAction-DSrYDGAP.mjs";
33
- import { T as ct } from "../TrendsStore-BKBnNQba.mjs";
34
- import { L as Dr, S as Ar } from "../TrendsStore-BKBnNQba.mjs";
33
+ import { T as ct } from "../TrendsStore-ZZ8X36lJ.mjs";
34
+ import { L as Dr, S as Ar } from "../TrendsStore-ZZ8X36lJ.mjs";
35
35
  import { A as Tr, B as Br, I as Ir, N as Nr, T as Mr, a as kr } from "../ToggleListItem-r0Kx56wF.mjs";
36
36
  import { jsxs as y, jsx as n } from "react/jsx-runtime";
37
37
  import dt, { useRef as lt, useEffect as ut } from "react";
38
38
  import { css as x, keyframes as ht } from "@mxenabled/cssinjs";
39
39
  import { useTokens as C, Text as B } from "@mxenabled/mxui";
40
40
  import { D as Rr } from "../Donut-1UMNcG67.mjs";
41
- import { L as Or } from "../LineChart-B2Y7zwMu.mjs";
41
+ import { L as Or } from "../LineChart-B35qvXik.mjs";
42
42
  import { S as Lr } from "../StatusBar-BK_uYHAB.mjs";
43
43
  import { D as Hr, a as Fr, O as Wr, b as qr, f as Yr } from "../Dialog-CWW597AF.mjs";
44
44
  import { D as gt, a as pt } from "../SingleSegmentDonut-BgbLgwHi.mjs";
@@ -47,9 +47,9 @@ import { D as jr } from "../Drawer-kEE73B87.mjs";
47
47
  import { I as Vr, P as Zr, S as Jr } from "../Account-DoxALziV.mjs";
48
48
  import { b as E } from "../Category-CevNQ03n.mjs";
49
49
  import { C as eo, c as so, a as ro, P as oo } from "../Category-CevNQ03n.mjs";
50
- import { C as no, f as io, b as co, a as lo, g as uo, i as ho } from "../NumberFormatting-CtWHhyBX.mjs";
51
- import { R as mt } from "../RecurringTransactionsStore-Djo9IeDd.mjs";
52
- import { S as po, T as mo } from "../RecurringTransactionsStore-Djo9IeDd.mjs";
50
+ import { C as no, f as io, b as co, a as lo, g as uo, i as ho } from "../NumberFormatting-Buh7u8Oi.mjs";
51
+ import { R as mt } from "../RecurringTransactionsStore-DrzS1LmF.mjs";
52
+ import { S as po, T as mo } from "../RecurringTransactionsStore-DrzS1LmF.mjs";
53
53
  import { G as fo, B as yo, C as So, W as bo, d as wo, a as xo, i as Co, t as vo, m as Do, x as Ao, y as Eo, g as To, w as Bo, u as Io, f as No, b as Mo, l as ko, z as $o, s as Ro, c as Po, q as Oo, n as Uo, A as Lo, j as Go, r as Ho, h as Fo, v as Wo, o as qo, p as Yo } from "../hooks-CE2TKk4a.mjs";
54
54
  import { u as zo } from "../useAccountDisplayName-CyPD_TFR.mjs";
55
55
  import { u as jo } from "../useInsightsEnabled-DSnpkUq0.mjs";
@@ -61,8 +61,8 @@ import { B as St } from "../BeatStore-IBnXd4YK.mjs";
61
61
  import { endOfMonth as Z } from "date-fns/endOfMonth";
62
62
  import { startOfMonth as J } from "date-fns/startOfMonth";
63
63
  import { startOfToday as U } from "date-fns/startOfToday";
64
- import { f as bt, a as wt, b as L } from "../BudgetUtil-2EncZLBQ.mjs";
65
- import { g as Jo, e as ta, c as ea, d as sa, i as ra } from "../BudgetUtil-2EncZLBQ.mjs";
64
+ import { f as bt, a as wt, b as L } from "../BudgetUtil-psfk-Amb.mjs";
65
+ import { g as Jo, e as ta, c as ea, d as sa, i as ra } from "../BudgetUtil-psfk-Amb.mjs";
66
66
  import { a as xt } from "../DebtsStore-CoZ30R-_.mjs";
67
67
  import { a as Ct } from "../FinstrongStore-F2c607dj.mjs";
68
68
  import { A as vt, m as Dt, a as At, b as Et } from "../InvestmentUtil-jOyOgzIB.mjs";
@@ -1,5 +1,6 @@
1
1
  import { RoundingFunction } from 'numeral';
2
2
  import { CurrencyCodes } from '../constants';
3
+ export declare const generateEqualIntervals: (minValue: number, maxValue: number, tickCount: number) => number[];
3
4
  export declare const formatCurrency: (amount: number | undefined, formatting: string, roundingFunction?: RoundingFunction) => string;
4
5
  export declare const getCurrencyCodes: () => CurrencyCodes;
5
6
  export declare const isValidNumber: (value: any) => boolean;
@@ -10,13 +10,13 @@ import { fromUnixTime as se } from "date-fns/fromUnixTime";
10
10
  import { getUnixTime as ce } from "date-fns/getUnixTime";
11
11
  import { D as B, M as Ee, I as Ie } from "../DebtsStore-CoZ30R-_.mjs";
12
12
  import { a as Fr } from "../DebtsStore-CoZ30R-_.mjs";
13
- import { f as M, a as Be } from "../NumberFormatting-CtWHhyBX.mjs";
13
+ import { f as M, a as Be } from "../NumberFormatting-Buh7u8Oi.mjs";
14
14
  import { f as K, D as U } from "../Dialog-CWW597AF.mjs";
15
15
  import { G as Me, x as q, u as C, l as V, g as k, d as Z, b as Pe } from "../hooks-CE2TKk4a.mjs";
16
16
  import { u as Y } from "../useScreenSize-B6JyS_Lj.mjs";
17
17
  import { D as te } from "../Drawer-kEE73B87.mjs";
18
18
  import { b as A } from "../Localization-2MODESHW.mjs";
19
- import { A as ke, u as Ne } from "../AccountDetailsHeader-DN2pk4QW.mjs";
19
+ import { A as ke, u as Ne } from "../AccountDetailsHeader-D0FKqNmV.mjs";
20
20
  import Fe from "@mui/material/Card";
21
21
  import Re from "@mui/material/CardContent";
22
22
  import Le from "@mui/material/CardHeader";
@@ -28,10 +28,10 @@ import de from "@mui/material/Tab";
28
28
  import We from "@mui/material/Tabs";
29
29
  import _e from "@mui/material/List";
30
30
  import j from "@mui/material/Divider";
31
- import { M as Ge, I as je, O as ze } from "../OriginalBalanceAction-CEuIYsc_.mjs";
31
+ import { M as Ge, I as je, O as ze } from "../OriginalBalanceAction-BsxcvNEF.mjs";
32
32
  import Xe from "@mui/material/TextField";
33
33
  import { L as J } from "../ListItemAction-DSrYDGAP.mjs";
34
- import { C as ae } from "../CurrencyInput-CRtdzs3o.mjs";
34
+ import { C as ae } from "../CurrencyInput-C4xNRL2W.mjs";
35
35
  import pe from "@mui/material/Alert";
36
36
  import me from "@mui/material/AlertTitle";
37
37
  import he from "@mui/material/Paper";
@@ -22,7 +22,7 @@ import { L as N } from "../Loader-DUaFpDGv.mjs";
22
22
  import { F as No, a as Ko } from "../FinstrongStore-F2c607dj.mjs";
23
23
  import q from "@mui/material/Button";
24
24
  import J from "@mui/material/Card";
25
- import { L as be } from "../LineChart-B2Y7zwMu.mjs";
25
+ import { L as be } from "../LineChart-B35qvXik.mjs";
26
26
  import { k as xe } from "../ConnectDrawer-DJA_S-rX.mjs";
27
27
  import Xe from "@mui/material/Accordion";
28
28
  import je from "@mui/material/AccordionDetails";
@@ -30,7 +30,7 @@ import Ue from "@mui/material/AccordionSummary";
30
30
  import Ve from "@mui/material/CardHeader";
31
31
  import { u as Ye } from "../useDimensions-27p2evRx.mjs";
32
32
  import { C as qe } from "../ConnectionsDrawer-CU3E2RLw.mjs";
33
- import { R as Je } from "../RecurringSettings-B486z99o.mjs";
33
+ import { R as Je } from "../RecurringSettings-1t4mROQZ.mjs";
34
34
  import Qe from "@mui/material/TextField";
35
35
  import { u as Ce } from "../useScreenSize-B6JyS_Lj.mjs";
36
36
  import { a as Ze } from "../Dialog-CWW597AF.mjs";
@@ -40,7 +40,7 @@ import { LocalizationProvider as ot } from "@mui/x-date-pickers/LocalizationProv
40
40
  import { D as V } from "../Drawer-kEE73B87.mjs";
41
41
  import oe from "@mui/material/Tab";
42
42
  import nt from "@mui/material/Tabs";
43
- import { f as rt } from "../NumberFormatting-CtWHhyBX.mjs";
43
+ import { f as rt } from "../NumberFormatting-Buh7u8Oi.mjs";
44
44
  import { T as ne } from "../TabContentContainer-j01JYR_7.mjs";
45
45
  import it from "@mui/lab/Timeline";
46
46
  import st, { timelineItemClasses as at } from "@mui/lab/TimelineItem";
@@ -1,5 +1,5 @@
1
- import { g as ue, T as d, G as me, a as We, M as J, C as ye, b as Pe } from "../GoalStore-DxOUk36P.mjs";
2
- import { c as Yn, d as Zn } from "../GoalStore-DxOUk36P.mjs";
1
+ import { g as ue, T as d, G as me, a as We, M as J, C as ye, b as Pe } from "../GoalStore-BgiYFwWB.mjs";
2
+ import { c as Yn, d as Zn } from "../GoalStore-BgiYFwWB.mjs";
3
3
  import { jsxs as r, jsx as e, Fragment as U } from "react/jsx-runtime";
4
4
  import y from "react";
5
5
  import { observer as D } from "mobx-react-lite";
@@ -19,12 +19,12 @@ import $e from "@mui/material/CardHeader";
19
19
  import { Payments as Se, NoteStack as Re, Person as Ee, ChevronRight as M, DragHandle as Xe, CheckCircle as Ue, Icon as be, ExpandLess as Ye, ExpandMore as Ze, AddBox as ve, Trophy as qe } from "@mxenabled/mx-icons";
20
20
  import { u as C, l as I, a as xe, d as V, o as Ie, g as Ge, b as Ne } from "../hooks-CE2TKk4a.mjs";
21
21
  import { u as he } from "../useScreenSize-B6JyS_Lj.mjs";
22
- import { f as v } from "../NumberFormatting-CtWHhyBX.mjs";
22
+ import { f as v } from "../NumberFormatting-Buh7u8Oi.mjs";
23
23
  import { S as Je } from "../StatusBar-BK_uYHAB.mjs";
24
24
  import E from "@mui/material/Divider";
25
25
  import L from "@mui/material/List";
26
26
  import { L as ee } from "../ListItemAction-DSrYDGAP.mjs";
27
- import { C as ke } from "../CurrencyInput-CRtdzs3o.mjs";
27
+ import { C as ke } from "../CurrencyInput-C4xNRL2W.mjs";
28
28
  import { fromUnixTime as Q } from "date-fns/fromUnixTime";
29
29
  import N from "@mui/material/ListItem";
30
30
  import k from "@mui/material/ListItemButton";
@@ -38,11 +38,11 @@ import { g as we, A as fe } from "../ConnectDrawer-DJA_S-rX.mjs";
38
38
  import tt from "@mui/material/Collapse";
39
39
  import nt from "@mui/material/ListItemIcon";
40
40
  import ot from "@mui/material/Checkbox";
41
- import { u as at, A as rt } from "../AccountDetailsHeader-DN2pk4QW.mjs";
42
- import { A as it } from "../AccountDetailsContent-DsD3Wzu7.mjs";
41
+ import { u as at, A as rt } from "../AccountDetailsHeader-D0FKqNmV.mjs";
42
+ import { A as it } from "../AccountDetailsContent-BpY7i5Vt.mjs";
43
43
  import { u as st } from "../useAccountDisplayName-CyPD_TFR.mjs";
44
44
  import De from "@mui/material/TextField";
45
- import { M as lt, I as ct, O as dt } from "../OriginalBalanceAction-CEuIYsc_.mjs";
45
+ import { M as lt, I as ct, O as dt } from "../OriginalBalanceAction-BsxcvNEF.mjs";
46
46
  import { getUnixTime as mt } from "date-fns/getUnixTime";
47
47
  import { isValid as ut } from "date-fns/isValid";
48
48
  import { AdapterDateFns as _t } from "@mui/x-date-pickers/AdapterDateFnsV3";
@@ -18,7 +18,7 @@ import { Text as r, H1 as fe, P as ve, InstitutionLogo as ne } from "@mxenabled/
18
18
  import Ue from "@mui/material/Button";
19
19
  import { u as E, g as be, s as H, b as Q, d as se } from "../hooks-CE2TKk4a.mjs";
20
20
  import { A as z, W as je } from "../WidgetContainer-B8MRJ5Y1.mjs";
21
- import { a as ze, f as oe } from "../NumberFormatting-CtWHhyBX.mjs";
21
+ import { a as ze, f as oe } from "../NumberFormatting-Buh7u8Oi.mjs";
22
22
  import { u as U } from "../useScreenSize-B6JyS_Lj.mjs";
23
23
  import le from "@mui/material/styles/useTheme";
24
24
  import { Icon as k } from "@mxenabled/mx-icons";
@@ -5,7 +5,7 @@ import { useTheme as z } from "@mui/material/styles";
5
5
  import { u as Z } from "../useScreenSize-B6JyS_Lj.mjs";
6
6
  import { p as _e, u as T, d as J, g as Q, b as P, q as ee } from "../hooks-CE2TKk4a.mjs";
7
7
  import { f as we, D as be } from "../Dialog-CWW597AF.mjs";
8
- import { L as We } from "../LineChart-B2Y7zwMu.mjs";
8
+ import { L as We } from "../LineChart-B35qvXik.mjs";
9
9
  import W from "@mui/material/Divider";
10
10
  import B from "@mui/material/List";
11
11
  import E from "@mui/material/ListSubheader";
@@ -16,13 +16,13 @@ import k from "@mui/material/ListItem";
16
16
  import te from "@mui/material/ListItemButton";
17
17
  import _ from "@mui/material/ListItemText";
18
18
  import { i as ne } from "../DateUtil-BcuH7ErC.mjs";
19
- import { C as y } from "../CurrencyText-YUhH2caW.mjs";
19
+ import { C as y } from "../CurrencyText-kyC1aseI.mjs";
20
20
  import { Button as Te, Stack as Le } from "@mui/material";
21
21
  import { format as Ne, fromUnixTime as De, differenceInMonths as Ee } from "date-fns";
22
22
  import { g as K } from "../NetWorthStore-f6RQno5Z.mjs";
23
23
  import { N as Ot } from "../NetWorthStore-f6RQno5Z.mjs";
24
24
  import { Icon as oe } from "@mxenabled/mx-icons";
25
- import { f as U } from "../NumberFormatting-CtWHhyBX.mjs";
25
+ import { f as U } from "../NumberFormatting-Buh7u8Oi.mjs";
26
26
  import { A as b, W as ke } from "../WidgetContainer-B8MRJ5Y1.mjs";
27
27
  import { L as O } from "../Loader-DUaFpDGv.mjs";
28
28
  import { M as Ae } from "../MicroWidgetContainer-C4QQHfD7.mjs";
@@ -38,10 +38,10 @@ const Oe = ({
38
38
  hoveredData: l,
39
39
  onDataClick: i,
40
40
  onMouseEnter: n,
41
- onMouseLeave: a,
41
+ onMouseLeave: s,
42
42
  selectedData: o
43
43
  }) => {
44
- const { isMobile: s } = Z(), { availableWidth: c } = _e(), u = z(), C = c - 320, x = t.map((f) => ({
44
+ const { isMobile: a } = Z(), { availableWidth: c } = _e(), u = z(), C = c - 320, x = t.map((f) => ({
45
45
  x: we(Se(f.x), be.MONTH_SHORT),
46
46
  y: f.y
47
47
  })), g = o ? { index: t.findIndex((f) => f.x === o.x) } : void 0, S = l ? { index: t.findIndex((f) => f.x === l.x) } : void 0, p = (f) => ({
@@ -55,15 +55,18 @@ const Oe = ({
55
55
  baseline: "min",
56
56
  colors: [u.palette.success.main],
57
57
  datasets: [x],
58
+ chartFor: "networthChart",
59
+ chartXaxisSx: { "& .MuiChartsAxis-tickLabel": { transform: "translateX(8px)" } },
60
+ chartYaxisSx: { "& .MuiChartsAxis-tickLabel": { transform: "translateX(-8px)" } },
58
61
  height: 350,
59
62
  labels: [],
60
- margin: { right: 20 },
61
- markHandlers: { onMarkClick: i, onMouseEnter: n, onMouseLeave: a },
63
+ margin: { right: 20, left: 100 },
64
+ markHandlers: { onMarkClick: i, onMouseEnter: n, onMouseLeave: s },
62
65
  markStyles: p,
63
66
  showArea: !0,
64
67
  useCustomMark: !0,
65
- valueFormatterString: "0.[0]a",
66
- width: s ? 320 : C
68
+ valueFormatterString: "0.0[0]a",
69
+ width: a ? 320 : C
67
70
  }
68
71
  );
69
72
  }, ze = w(Oe), Re = ({
@@ -71,9 +74,9 @@ const Oe = ({
71
74
  getStyles: l,
72
75
  isHovered: i = !1,
73
76
  isSelected: n = !1,
74
- onItemClick: a,
77
+ onItemClick: s,
75
78
  onMouseEnter: o,
76
- onMouseLeave: s
79
+ onMouseLeave: a
77
80
  }) => {
78
81
  const [c, u] = d.useState({
79
82
  color: ""
@@ -92,9 +95,9 @@ const Oe = ({
92
95
  children: /* @__PURE__ */ e(
93
96
  te,
94
97
  {
95
- onClick: (C) => a?.(C, t.x),
98
+ onClick: (C) => s?.(C, t.x),
96
99
  onMouseEnter: () => o(t.x),
97
- onMouseLeave: () => s(),
100
+ onMouseLeave: () => a(),
98
101
  sx: { minHeight: 20, padding: 12 },
99
102
  children: /* @__PURE__ */ e(
100
103
  _,
@@ -116,12 +119,12 @@ const Oe = ({
116
119
  hoveredData: l,
117
120
  onDataClick: i,
118
121
  onButtonClick: n,
119
- onMouseEnter: a,
122
+ onMouseEnter: s,
120
123
  onMouseLeave: o,
121
- selectedData: s
124
+ selectedData: a
122
125
  }) => {
123
126
  const { net_worth: c } = T(), u = z(), C = (x) => {
124
- const g = x.x === l?.x, S = x.x === s?.x, p = {
127
+ const g = x.x === l?.x, S = x.x === a?.x, p = {
125
128
  backgroundColor: "inherit",
126
129
  borderBottom: "inherit",
127
130
  color: "inherit"
@@ -137,10 +140,10 @@ const Oe = ({
137
140
  {
138
141
  getStyles: C,
139
142
  isHovered: x.x === l?.x,
140
- isSelected: x.x === s?.x,
143
+ isSelected: x.x === a?.x,
141
144
  item: x,
142
145
  onItemClick: (S) => i(S, g),
143
- onMouseEnter: () => a(g),
146
+ onMouseEnter: () => s(g),
144
147
  onMouseLeave: () => o()
145
148
  },
146
149
  x.x
@@ -156,15 +159,15 @@ const Oe = ({
156
159
  }
157
160
  )
158
161
  ] });
159
- }, Ge = w($e), Fe = ({
162
+ }, Ge = w($e), Xe = ({
160
163
  currencyLabel: t,
161
164
  currencyVariant: l = "Small",
162
165
  iconSize: i,
163
166
  netWorth: n,
164
- theme: a
167
+ theme: s
165
168
  }) => {
166
- let o = a.palette.secondary.main, s = a.palette.secondary.main, c = "trending_flat";
167
- return n.change < 0 ? c = "trending_down" : n.change > 0 && (o = a.palette.success.main, s = a.palette.success.main, c = "trending_up"), /* @__PURE__ */ r(Le, { alignItems: "center", direction: "row", spacing: 4, children: [
169
+ let o = s.palette.secondary.main, a = s.palette.secondary.main, c = "trending_flat";
170
+ return n.change < 0 ? c = "trending_down" : n.change > 0 && (o = s.palette.success.main, a = s.palette.success.main, c = "trending_up"), /* @__PURE__ */ r(Le, { alignItems: "center", direction: "row", spacing: 4, children: [
168
171
  /* @__PURE__ */ e(
169
172
  H,
170
173
  {
@@ -175,17 +178,17 @@ const Oe = ({
175
178
  }
176
179
  }
177
180
  ),
178
- /* @__PURE__ */ e(y, { amount: n.change, color: s, variant: l }),
181
+ /* @__PURE__ */ e(y, { amount: n.change, color: a, variant: l }),
179
182
  /* @__PURE__ */ e(m, { variant: "Small", children: t })
180
183
  ] });
181
- }, R = w(Fe), Xe = ({ hoveredData: t, selectedData: l }) => {
182
- const { net_worth: i } = T(), n = z(), a = t || l, o = Ne(De(a.x), "MMMM");
184
+ }, R = w(Xe), Fe = ({ hoveredData: t, selectedData: l }) => {
185
+ const { net_worth: i } = T(), n = z(), s = t || l, o = Ne(De(s.x), "MMMM");
183
186
  return /* @__PURE__ */ r(h, { alignItems: "center", direction: "column", m: 24, children: [
184
187
  /* @__PURE__ */ e(m, { color: n.palette.secondary.main, variant: "Small", children: `${o} ${i.net_worth}` }),
185
- /* @__PURE__ */ e(y, { amount: a.y, variant: "H2" }),
186
- /* @__PURE__ */ e(R, { currencyLabel: i.this_month, netWorth: a, theme: n })
188
+ /* @__PURE__ */ e(y, { amount: s.y, variant: "H2" }),
189
+ /* @__PURE__ */ e(R, { currencyLabel: i.this_month, netWorth: s, theme: n })
187
190
  ] });
188
- }, Ke = w(Xe), Ue = ({ amount: t, copy: l, trendValue: i }) => {
191
+ }, Ke = w(Fe), Ue = ({ amount: t, copy: l, trendValue: i }) => {
189
192
  const n = i > 0, o = i === 0 ? "trending_flat" : n ? "trending_up" : "trending_down";
190
193
  return /* @__PURE__ */ r(h, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
191
194
  /* @__PURE__ */ e(ve, { children: U(t, "0,0") }),
@@ -204,16 +207,16 @@ const Oe = ({
204
207
  /* @__PURE__ */ e(Ie, { sx: { color: "text.secondary" }, variant: "body2", children: t.zero_state_description })
205
208
  ] })
206
209
  ] }), At = w(({ onCTAClick: t }) => {
207
- const [l, i] = d.useState(!1), { visibleAccounts: n } = J(), { onEvent: a } = Q(), { net_worth: o, common: s } = T(), { isInitialized: c, selectedAccounts: u, setSelectedAccounts: C } = P(), { loadChartData: x, loadNetWorthData: g, netWorthData: S, selectedData: p } = ee(), f = async () => {
210
+ const [l, i] = d.useState(!1), { visibleAccounts: n } = J(), { onEvent: s } = Q(), { net_worth: o, common: a } = T(), { isInitialized: c, selectedAccounts: u, setSelectedAccounts: C } = P(), { loadChartData: x, loadNetWorthData: g, netWorthData: S, selectedData: p } = ee(), f = async () => {
208
211
  await g(u), await x(1), i(!0);
209
212
  };
210
213
  if (d.useEffect(() => C(n), [n]), d.useEffect(() => {
211
- c && f().finally(), a(b.NET_WORTH_LOAD_WIDGET, {
214
+ c && f().finally(), s(b.NET_WORTH_LOAD_WIDGET, {
212
215
  state: n?.length ? "default" : "zeroState"
213
216
  });
214
217
  }, [c]), !l) return /* @__PURE__ */ e(O, { height: 100 });
215
218
  const L = () => {
216
- a(
219
+ s(
217
220
  n.length ? b.NET_WORTH_CLICK_VIEW_DETAILS : b.NET_WORTH_CLICK_GET_STARTED
218
221
  ), t();
219
222
  };
@@ -221,7 +224,7 @@ const Oe = ({
221
224
  Ae,
222
225
  {
223
226
  className: "mx-networth-microwidget",
224
- ctaLabel: s.see_details,
227
+ ctaLabel: a.see_details,
225
228
  onCTAClick: L,
226
229
  title: o.net_worth,
227
230
  children: S.accounts.length ? /* @__PURE__ */ e(
@@ -235,9 +238,9 @@ const Oe = ({
235
238
  }
236
239
  );
237
240
  }), Ye = ({ accounts: t, name: l, icon: i }) => {
238
- const [n, a] = d.useState(!1);
241
+ const [n, s] = d.useState(!1);
239
242
  return /* @__PURE__ */ r(v, { children: [
240
- /* @__PURE__ */ e(k, { sx: (o) => ({ backgroundColor: o.palette.background.paper }), children: /* @__PURE__ */ r(te, { onClick: () => a(!n), children: [
243
+ /* @__PURE__ */ e(k, { sx: (o) => ({ backgroundColor: o.palette.background.paper }), children: /* @__PURE__ */ r(te, { onClick: () => s(!n), children: [
241
244
  i && /* @__PURE__ */ e(V, { children: /* @__PURE__ */ e(H, { name: i, size: 24, sx: { mr: 12 } }) }),
242
245
  /* @__PURE__ */ e(
243
246
  _,
@@ -248,7 +251,7 @@ const Oe = ({
248
251
  /* @__PURE__ */ e(V, { children: n ? /* @__PURE__ */ e(H, { name: "expand_less", size: 24 }) : /* @__PURE__ */ e(H, { name: "expand_more", size: 24 }) })
249
252
  ] }) }),
250
253
  /* @__PURE__ */ e(W, {}),
251
- /* @__PURE__ */ e(He, { in: n, timeout: "auto", unmountOnExit: !0, children: t.map((o, s) => /* @__PURE__ */ r(B, { children: [
254
+ /* @__PURE__ */ e(He, { in: n, timeout: "auto", unmountOnExit: !0, children: t.map((o, a) => /* @__PURE__ */ r(B, { children: [
252
255
  /* @__PURE__ */ e(k, { sx: () => ({ py: 14 }), children: /* @__PURE__ */ e(
253
256
  _,
254
257
  {
@@ -277,7 +280,7 @@ const Oe = ({
277
280
  sx: { pl: 72, pr: 16 }
278
281
  }
279
282
  ) }),
280
- s < t.length - 1 ? /* @__PURE__ */ e(W, { variant: "inset" }) : /* @__PURE__ */ e(W, {})
283
+ a < t.length - 1 ? /* @__PURE__ */ e(W, { variant: "inset" }) : /* @__PURE__ */ e(W, {})
281
284
  ] }, o.accountName)) })
282
285
  ] });
283
286
  }, q = ({ groupedAccounts: t }) => /* @__PURE__ */ e(v, { children: t.map(({ accounts: l, icon: i, name: n }) => /* @__PURE__ */ e(Ye, { accounts: l, icon: i, name: n }, n)) }), qe = ({
@@ -285,9 +288,9 @@ const Oe = ({
285
288
  assets: l,
286
289
  liabilities: i,
287
290
  totalAssets: n,
288
- totalLiabilities: a
291
+ totalLiabilities: s
289
292
  }) => {
290
- const { net_worth: o } = T(), s = ie();
293
+ const { net_worth: o } = T(), a = ie();
291
294
  return /* @__PURE__ */ r(v, { children: [
292
295
  /* @__PURE__ */ r(
293
296
  re,
@@ -309,7 +312,7 @@ const Oe = ({
309
312
  currencyLabel: o.this_month,
310
313
  iconSize: 20,
311
314
  netWorth: t,
312
- theme: s
315
+ theme: a
313
316
  }
314
317
  )
315
318
  ]
@@ -331,7 +334,7 @@ const Oe = ({
331
334
  {
332
335
  primary: /* @__PURE__ */ r(h, { direction: "row", justifyContent: "space-between", children: [
333
336
  /* @__PURE__ */ e(m, { sx: { fontWeight: 700 }, variant: "XSmall", children: o.liabilities }),
334
- /* @__PURE__ */ e(y, { amount: a, sx: { fontWeight: 400 }, variant: "XSmall" })
337
+ /* @__PURE__ */ e(y, { amount: s, sx: { fontWeight: 400 }, variant: "XSmall" })
335
338
  ] })
336
339
  }
337
340
  ) }),
@@ -343,14 +346,14 @@ const Oe = ({
343
346
  gains: l,
344
347
  losses: i,
345
348
  totalGains: n,
346
- totalLosses: a
349
+ totalLosses: s
347
350
  }) => {
348
- const { net_worth: o } = T(), s = ie();
351
+ const { net_worth: o } = T(), a = ie();
349
352
  return /* @__PURE__ */ r(v, { children: [
350
353
  /* @__PURE__ */ r(h, { alignItems: "center", justifyContent: "space-between", mb: 8, pt: 24, children: [
351
354
  /* @__PURE__ */ e(m, { variant: "Small", children: ne(t?.x) }),
352
355
  /* @__PURE__ */ e(m, { variant: "Body", children: o.total_change }),
353
- t && /* @__PURE__ */ e(R, { currencyVariant: "H1", iconSize: 32, netWorth: t, theme: s })
356
+ t && /* @__PURE__ */ e(R, { currencyVariant: "H1", iconSize: 32, netWorth: t, theme: a })
354
357
  ] }),
355
358
  /* @__PURE__ */ r(B, { children: [
356
359
  /* @__PURE__ */ e(E, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(
@@ -363,7 +366,7 @@ const Oe = ({
363
366
  }
364
367
  ) }),
365
368
  l?.map((c) => /* @__PURE__ */ r(d.Fragment, { children: [
366
- /* @__PURE__ */ e(k, { sx: { backgroundColor: s.palette.background.paper, py: 14 }, children: /* @__PURE__ */ e(
369
+ /* @__PURE__ */ e(k, { sx: { backgroundColor: a.palette.background.paper, py: 14 }, children: /* @__PURE__ */ e(
367
370
  _,
368
371
  {
369
372
  primary: /* @__PURE__ */ r(h, { direction: "row", justifyContent: "space-between", children: [
@@ -372,7 +375,7 @@ const Oe = ({
372
375
  y,
373
376
  {
374
377
  amount: c.gain,
375
- sx: { color: s.palette.success.main, flexShrink: 0, fontWeight: 700 },
378
+ sx: { color: a.palette.success.main, flexShrink: 0, fontWeight: 700 },
376
379
  variant: "Body"
377
380
  }
378
381
  )
@@ -387,7 +390,7 @@ const Oe = ({
387
390
  {
388
391
  primary: /* @__PURE__ */ r(h, { direction: "row", justifyContent: "space-between", children: [
389
392
  /* @__PURE__ */ e(m, { sx: { fontWeight: 700 }, variant: "XSmall", children: o.losses }),
390
- /* @__PURE__ */ e(y, { amount: a, sx: { fontWeight: 400 }, variant: "XSmall" })
393
+ /* @__PURE__ */ e(y, { amount: s, sx: { fontWeight: 400 }, variant: "XSmall" })
391
394
  ] })
392
395
  }
393
396
  ) }),
@@ -395,7 +398,7 @@ const Oe = ({
395
398
  /* @__PURE__ */ e(
396
399
  k,
397
400
  {
398
- sx: { backgroundColor: s.palette.background.paper, py: 14 },
401
+ sx: { backgroundColor: a.palette.background.paper, py: 14 },
399
402
  children: /* @__PURE__ */ e(
400
403
  _,
401
404
  {
@@ -430,7 +433,7 @@ const Oe = ({
430
433
  ] })
431
434
  ] });
432
435
  }, Qe = w(Je), Mt = w(({ onBackClick: t }) => {
433
- const { isCopyLoaded: l, isInitialized: i, selectedAccounts: n, setSelectedAccounts: a } = P(), { accounts: o, net_worth: s } = T(), { visibleAccounts: c } = J(), {
436
+ const { isCopyLoaded: l, isInitialized: i, selectedAccounts: n, setSelectedAccounts: s } = P(), { accounts: o, net_worth: a } = T(), { visibleAccounts: c } = J(), {
434
437
  assetsLiabilities: u,
435
438
  gainsLosses: C,
436
439
  hoveredData: x,
@@ -439,21 +442,21 @@ const Oe = ({
439
442
  netWorthChartData: p,
440
443
  selectedData: f,
441
444
  setHoveredData: L,
442
- setSelectedData: se
443
- } = ee(), { isMobile: N } = Z(), { onEvent: D } = Q(), [ae, ce] = d.useState(!1), [A, le] = d.useState(6), [me, j] = d.useState(!1), [de, $] = d.useState(!1), [he, G] = d.useState(!1), ue = async () => {
445
+ setSelectedData: ae
446
+ } = ee(), { isMobile: N } = Z(), { onEvent: D } = Q(), [se, ce] = d.useState(!1), [A, le] = d.useState(6), [me, j] = d.useState(!1), [de, $] = d.useState(!1), [he, G] = d.useState(!1), ue = async () => {
444
447
  await S(n), await g(A), ce(!0);
445
448
  };
446
449
  d.useEffect(() => {
447
450
  D(b.NET_WORTH_VIEW);
448
451
  }, []), d.useEffect(() => {
449
- a(c);
452
+ s(c);
450
453
  }, [c]), d.useEffect(() => {
451
454
  i && ue().finally();
452
455
  }, [i, n]), d.useEffect(() => {
453
456
  D(b.NET_WORTH_WIDGET_CLICK_TIMEFRAME, { time_period: A + "M" }), g(A).finally();
454
457
  }, [A]);
455
458
  const pe = (I, M) => {
456
- se(M), I.currentTarget instanceof HTMLDivElement && j(!0);
459
+ ae(M), I.currentTarget instanceof HTMLDivElement && j(!0);
457
460
  }, fe = (I) => {
458
461
  L(I);
459
462
  }, xe = () => {
@@ -461,9 +464,9 @@ const Oe = ({
461
464
  }, ge = () => {
462
465
  D(b.NET_WORTH_WIDGET_CLICK_ASSETS_LIABILITIES), $(!0);
463
466
  }, ye = async (I) => {
464
- const M = I[0], X = I[1];
465
- M && X && le(Ee(X, M));
466
- }, F = {
467
+ const M = I[0], F = I[1];
468
+ M && F && le(Ee(F, M));
469
+ }, X = {
467
470
  chartData: p,
468
471
  hoveredData: x,
469
472
  onButtonClick: ge,
@@ -498,8 +501,8 @@ const Oe = ({
498
501
  width: "100%"
499
502
  }
500
503
  },
501
- title: s.net_worth,
502
- children: ae ? /* @__PURE__ */ r(v, { children: [
504
+ title: a.net_worth,
505
+ children: se ? /* @__PURE__ */ r(v, { children: [
503
506
  p.length ? /* @__PURE__ */ r(v, { children: [
504
507
  f && /* @__PURE__ */ e(Ke, { hoveredData: x, selectedData: f }),
505
508
  /* @__PURE__ */ r(
@@ -509,19 +512,19 @@ const Oe = ({
509
512
  direction: N ? "column" : "row",
510
513
  spacing: N ? 0 : 48,
511
514
  children: [
512
- /* @__PURE__ */ e(ze, { ...F }),
513
- /* @__PURE__ */ e(Ge, { ...F })
515
+ /* @__PURE__ */ e(ze, { ...X }),
516
+ /* @__PURE__ */ e(Ge, { ...X })
514
517
  ]
515
518
  }
516
519
  )
517
520
  ] }) : /* @__PURE__ */ e(re, { sx: { justifyItems: "center" }, children: /* @__PURE__ */ e(
518
521
  Be,
519
522
  {
520
- header: s.empty_widget_header,
523
+ header: a.empty_widget_header,
521
524
  icon: "elevation",
522
525
  onClick: Ce,
523
- primaryButton: s.empty_widget_button,
524
- subText: s.empty_widget_description,
526
+ primaryButton: a.empty_widget_button,
527
+ subText: a.empty_widget_description,
525
528
  sx: {
526
529
  width: { sm: 432 },
527
530
  ".buttons-footer": {
@@ -546,7 +549,7 @@ const Oe = ({
546
549
  onClose: () => j(!1),
547
550
  shouldShowHeaderBorders: !1,
548
551
  shouldShowHeaderShadow: !0,
549
- title: s.gains_and_losses,
552
+ title: a.gains_and_losses,
550
553
  children: C && /* @__PURE__ */ e(Qe, { ...C })
551
554
  }
552
555
  ),
@@ -558,7 +561,7 @@ const Oe = ({
558
561
  onClose: () => $(!1),
559
562
  shouldShowHeaderBorders: !1,
560
563
  shouldShowHeaderShadow: !0,
561
- title: s.assets_and_liabilities,
564
+ title: a.assets_and_liabilities,
562
565
  children: u && /* @__PURE__ */ e(Ze, { ...u })
563
566
  }
564
567
  )