@mx-cartographer/experiences 9.0.0-ram2-bug-alpha-testing → 9.0.1

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 (31) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/{CategorySelectorDrawer-CmaDLhnf.mjs → CategorySelectorDrawer-8soGrhB8.mjs} +1 -1
  3. package/dist/Dialog-Bvd2n8hz.mjs +66 -0
  4. package/dist/{ListItemAction-CwspSmQi.mjs → ListItemAction-CzZ8s39Z.mjs} +1 -1
  5. package/dist/{ManageIncome-B1JfqslT.mjs → ManageIncome-D1yBODQi.mjs} +2 -2
  6. package/dist/{NotificationSettings-6p-h5phZ.mjs → NotificationSettings-B4JA5IKE.mjs} +1 -1
  7. package/dist/{OriginalBalanceAction-CkJPnp2c.mjs → OriginalBalanceAction-BybTXDtO.mjs} +1 -1
  8. package/dist/{RecurringSettings-cm6MK_aS.mjs → RecurringSettings-D2xbNb67.mjs} +1 -1
  9. package/dist/SpendingData-PKlh8caU.mjs +53 -0
  10. package/dist/{TransactionDetails-C3dlAzYf.mjs → TransactionDetails-DctXr07p.mjs} +2 -2
  11. package/dist/{WidgetContainer-DNuz_s7W.mjs → WidgetContainer-BU3nCHZo.mjs} +1 -1
  12. package/dist/accounts/index.es.js +4 -4
  13. package/dist/budgets/index.es.js +5 -5
  14. package/dist/cashflow/index.es.js +3 -3
  15. package/dist/categories/index.es.js +1 -1
  16. package/dist/common/index.es.js +3 -3
  17. package/dist/debts/index.es.js +3 -3
  18. package/dist/finstrong/index.es.js +4 -4
  19. package/dist/goals/index.es.js +4 -4
  20. package/dist/help/index.es.js +1 -1
  21. package/dist/investments/index.es.js +1 -1
  22. package/dist/networth/index.es.js +1 -1
  23. package/dist/notifications/index.es.js +1 -1
  24. package/dist/recurringtransactions/index.es.js +5 -5
  25. package/dist/settings/index.es.js +5 -5
  26. package/dist/spending/index.es.js +2 -2
  27. package/dist/transactions/index.es.js +5 -5
  28. package/dist/trends/index.es.js +31 -33
  29. package/package.json +1 -1
  30. package/dist/Dialog-CwWc0AbH.mjs +0 -63
  31. package/dist/SpendingData-BD3WTtu2.mjs +0 -55
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [9.0.1] - 05-15-2026
2
+
3
+ - **FIXED** - Bug Fixed - Edit Budget Dialog was cutting out of the frame for smaller devices - Bug Fixed
4
+
1
5
  ## [9.0.0] - 05-14-2026
2
6
 
3
7
  - **UPDATED** - Upgraded core dependencies: React 18 to 19, MUI 5 to 7, MXUI 1 to 2, mx-icons 1 to 2, and Storybook 8.6.4 to 8.6.18
@@ -16,7 +16,7 @@ import { CheckCircle as M, Edit as j, Delete as X, ExpandMore as z } from "@mxen
16
16
  import { Text as q, TextField as H, CategoryIcon as J } from "@mxenabled/mxui";
17
17
  import Q from "@mui/material/Collapse";
18
18
  import Z from "@mui/material/DialogContent";
19
- import { D as ee } from "./Dialog-CwWc0AbH.mjs";
19
+ import { D as ee } from "./Dialog-Bvd2n8hz.mjs";
20
20
  import te from "@mui/material/Box";
21
21
  import oe from "@mui/material/Chip";
22
22
  import v from "@mui/material/IconButton";
@@ -0,0 +1,66 @@
1
+ import { jsx as i, jsxs as x } from "react/jsx-runtime";
2
+ import y from "@mui/material/Dialog";
3
+ import P from "@mui/material/DialogContent";
4
+ import { DialogHeader as S, DialogFooter as A } from "@mxenabled/mxui";
5
+ import { u as M } from "./useScreenSize-mWpmnh5w.mjs";
6
+ const W = ({
7
+ className: l,
8
+ copy: o,
9
+ disablePrimaryButton: t = !1,
10
+ isOpen: n = !1,
11
+ onClose: a,
12
+ onPrimaryAction: s,
13
+ primaryColor: c = "primary",
14
+ primaryText: m = "Confirm",
15
+ onSecondaryAction: e,
16
+ secondaryColor: p = "primary",
17
+ secondaryText: d = "Cancel",
18
+ children: g,
19
+ ...f
20
+ }) => {
21
+ const r = o?.title ?? "", u = o?.close_aria ?? "Close", { isSmallMobile: h } = M(), D = () => {
22
+ s?.(), a();
23
+ }, b = () => {
24
+ e && e(), a();
25
+ };
26
+ return /* @__PURE__ */ i("div", { className: `mx-cmn-dialog ${l}`, children: /* @__PURE__ */ x(
27
+ y,
28
+ {
29
+ "aria-label": r,
30
+ "aria-labelledby": void 0,
31
+ maxWidth: "xs",
32
+ onClose: a,
33
+ open: n,
34
+ slotProps: {
35
+ paper: { "aria-label": r }
36
+ },
37
+ sx: {
38
+ "& .MuiDialog-paperScrollPaper": {
39
+ backgroundColor: "background.default"
40
+ },
41
+ ...h && { "& .MuiDialog-paper": { minWidth: "100%" } },
42
+ height: "100%"
43
+ },
44
+ ...f,
45
+ children: [
46
+ /* @__PURE__ */ i(S, { copy: { title: r, close_aria: u }, onClose: a, truncate: !0 }),
47
+ /* @__PURE__ */ i(P, { sx: { lineHeight: 1.5 }, children: g }),
48
+ /* @__PURE__ */ i(
49
+ A,
50
+ {
51
+ isPrimaryDisabled: t,
52
+ onPrimaryAction: D,
53
+ onSecondaryAction: b,
54
+ primaryColor: c,
55
+ primaryText: m,
56
+ secondaryColor: p,
57
+ secondaryText: d
58
+ }
59
+ )
60
+ ]
61
+ }
62
+ ) });
63
+ };
64
+ export {
65
+ W as D
66
+ };
@@ -8,7 +8,7 @@ import L from "@mui/material/Stack";
8
8
  import { ChevronRight as _ } from "@mxenabled/mx-icons";
9
9
  import { Text as a } from "@mxenabled/mxui";
10
10
  import { u as g } from "./hooks-BaO_gOI6.mjs";
11
- import { D as j } from "./Dialog-CwWc0AbH.mjs";
11
+ import { D as j } from "./Dialog-Bvd2n8hz.mjs";
12
12
  const q = v(
13
13
  ({
14
14
  children: n,
@@ -19,7 +19,7 @@ import { parseISO as pe } from "date-fns/parseISO";
19
19
  import V from "@mui/material/Button";
20
20
  import { Delete as ye, Add as he, ReceiptLong as fe } from "@mxenabled/mx-icons";
21
21
  import { T as ee, u as ge, S as Ce, a as be } from "./EmbeddedCard-DPwJjqMH.mjs";
22
- import { T as xe } from "./TransactionDetails-C3dlAzYf.mjs";
22
+ import { T as xe } from "./TransactionDetails-DctXr07p.mjs";
23
23
  import { addYears as j } from "date-fns/addYears";
24
24
  import { getDayOfYear as Se } from "date-fns/getDayOfYear";
25
25
  import { setDayOfYear as ve } from "date-fns/setDayOfYear";
@@ -31,7 +31,7 @@ import { S as M, D as z } from "./Select-BFt-HD-L.mjs";
31
31
  import { D as N } from "./Drawer-BXqqBMxg.mjs";
32
32
  import { A as O } from "./Analytics-CzGzz_sE.mjs";
33
33
  import { f as Ee, D as Le } from "./DateFormats-HudZ3Bjs.mjs";
34
- import { D as Oe } from "./Dialog-CwWc0AbH.mjs";
34
+ import { D as Oe } from "./Dialog-Bvd2n8hz.mjs";
35
35
  import { formatISO as Te } from "date-fns/formatISO";
36
36
  import { fromUnixTime as ke } from "date-fns/fromUnixTime";
37
37
  import { S as Ne } from "./SearchBox-Cpgu_gdO.mjs";
@@ -19,7 +19,7 @@ import { b as re, f as de } from "./NumberFormatting--XMeeBfr.mjs";
19
19
  import { u as k, A as T, C as S, d as J, g as me, a as q, b as he } from "./hooks-BaO_gOI6.mjs";
20
20
  import { A as ue, N as b } from "./Notification-DTNYSd8P.mjs";
21
21
  import { T as R, a as D } from "./ToggleListItem-Dl1lXNwj.mjs";
22
- import { D as B } from "./Dialog-CwWc0AbH.mjs";
22
+ import { D as B } from "./Dialog-Bvd2n8hz.mjs";
23
23
  import { C as _e } from "./CurrencyInput-adTIRtL3.mjs";
24
24
  import { u as fe } from "./useScreenSize-mWpmnh5w.mjs";
25
25
  import { D as K } from "./Drawer-BXqqBMxg.mjs";
@@ -4,7 +4,7 @@ import { observer as p } from "mobx-react-lite";
4
4
  import v from "@mui/material/TextField";
5
5
  import { a as T, f as S } from "./NumberFormatting--XMeeBfr.mjs";
6
6
  import { u as y, k as h } from "./hooks-BaO_gOI6.mjs";
7
- import { L as b } from "./ListItemAction-CwspSmQi.mjs";
7
+ import { L as b } from "./ListItemAction-CzZ8s39Z.mjs";
8
8
  import { C as f } from "./CurrencyInput-adTIRtL3.mjs";
9
9
  const F = p(({ goal: e }) => {
10
10
  const { goals: n } = y(), { setAlert: r, setSelectedGoal: l, updateGoal: m } = h(), [t, s] = _.useState(e.interest_rate ?? 0), c = !e.guid, i = t < 0, d = async () => {
@@ -7,7 +7,7 @@ import R from "@mui/material/Tabs";
7
7
  import d from "@mui/material/Divider";
8
8
  import b from "@mui/material/List";
9
9
  import T from "@mui/material/Stack";
10
- import { R as C, A as S, a as E, M as v } from "./ManageIncome-B1JfqslT.mjs";
10
+ import { R as C, A as S, a as E, M as v } from "./ManageIncome-D1yBODQi.mjs";
11
11
  import { u as _, i as A, g as f } from "./hooks-BaO_gOI6.mjs";
12
12
  import { R as y, F as N } from "./RecurringTransactionsUtil-B3rLEx_g.mjs";
13
13
  import { A as m } from "./Analytics-CzGzz_sE.mjs";
@@ -0,0 +1,53 @@
1
+ import { addMonths as u } from "date-fns/addMonths";
2
+ import { isBefore as d } from "date-fns/isBefore";
3
+ import { startOfMonth as _ } from "date-fns/startOfMonth";
4
+ import { subMonths as y } from "date-fns/subMonths";
5
+ import { endOfMonth as M } from "date-fns/endOfMonth";
6
+ import { C as a, P as l } from "./Category-DEKZGLYe.mjs";
7
+ import { f as m, D as T } from "./DateFormats-HudZ3Bjs.mjs";
8
+ const i = (e) => (e.top_level_category_guid === a.INCOME || e.category_guid === a.INCOME) && !h(e), C = (e) => !i(e) && !f(e), p = (e) => l.includes(e.top_level_category_guid) || l.includes(e.category_guid), f = (e) => e.top_level_category_guid === a.TRANSFER || e.category_guid === a.TRANSFER, h = (e) => e.top_level_category_guid === a.INVESTMENTS || e.category_guid === a.INVESTMENTS, N = (e) => !i(e) && !p(e) && !f(e) && !h(e), w = (e) => e.filter((r) => r.category_guid === r.top_level_category_guid), F = (e, r) => {
9
+ if (r === 0) return 0;
10
+ const o = (e - r) / r;
11
+ return isNaN(o) ? 0 : o;
12
+ }, g = (e, r) => {
13
+ const o = [];
14
+ let t = _(r?.start ?? y(/* @__PURE__ */ new Date(), 5));
15
+ const s = r?.end ?? /* @__PURE__ */ new Date();
16
+ for (; d(t, s); )
17
+ o.push({
18
+ x: m(t, T.MONTH_SHORT),
19
+ y: e.filter((n) => n.year === t.getFullYear() && n.month === t.getMonth() + 1).reduce((n, c) => n + c.total, 0)
20
+ }), t = u(t, 1);
21
+ return o;
22
+ }, A = (e, r) => {
23
+ const o = e.filter(i);
24
+ return g(o, r).map((t) => ({ ...t, y: Math.abs(t.y) }));
25
+ }, b = (e, r) => {
26
+ const o = e.filter(p);
27
+ return g(o, r).map((t) => ({ ...t, y: Math.abs(t.y) }));
28
+ }, x = (e, r) => {
29
+ const o = e.filter(N);
30
+ return g(o, r);
31
+ }, H = (e) => {
32
+ const r = [], o = e.filter(
33
+ (n) => n.top_level_category_guid !== a.INCOME && n.top_level_category_guid !== a.TRANSFER && n.total > 0
34
+ );
35
+ let t = _(y(/* @__PURE__ */ new Date(), 5));
36
+ const s = M(/* @__PURE__ */ new Date());
37
+ for (; d(t, s); )
38
+ r.push({
39
+ x: m(t, T.MONTH_SHORT),
40
+ y: o.filter((n) => n.year === t.getFullYear() && n.month === t.getMonth() + 1).reduce((n, c) => n + c.total, 0)
41
+ }), t = u(t, 1);
42
+ return r;
43
+ };
44
+ export {
45
+ b as a,
46
+ x as b,
47
+ w as c,
48
+ C as d,
49
+ H as e,
50
+ F as f,
51
+ A as g,
52
+ i
53
+ };
@@ -37,8 +37,8 @@ import { BarChart as mt } from "@mui/x-charts";
37
37
  import { L as _t } from "./Loader-CxeBwuPG.mjs";
38
38
  import Q from "@mui/material/ListItemButton";
39
39
  import X from "@mui/material/ListItemIcon";
40
- import { b as Fe } from "./CategorySelectorDrawer-CmaDLhnf.mjs";
41
- import { D as ae } from "./Dialog-CwWc0AbH.mjs";
40
+ import { b as Fe } from "./CategorySelectorDrawer-8soGrhB8.mjs";
41
+ import { D as ae } from "./Dialog-Bvd2n8hz.mjs";
42
42
  import { D as _e } from "./Drawer-BXqqBMxg.mjs";
43
43
  import { b as gt, C as pt, a as ht } from "./CurrencyDialog-DumQCTPO.mjs";
44
44
  import Pe from "@mui/material/InputAdornment";
@@ -35,7 +35,7 @@ import Ee from "@mui/material/ToggleButton";
35
35
  import Ye from "@mui/material/ToggleButtonGroup";
36
36
  import { useTheme as Le } from "@mui/material/styles";
37
37
  import { u as Ae } from "./useAriaLive-MkYebyUR.mjs";
38
- import { D as Be } from "./Dialog-CwWc0AbH.mjs";
38
+ import { D as Be } from "./Dialog-Bvd2n8hz.mjs";
39
39
  import { D as we } from "./Drawer-BXqqBMxg.mjs";
40
40
  import { u as le } from "./useScreenSize-mWpmnh5w.mjs";
41
41
  import { f as P, D as S } from "./DateFormats-HudZ3Bjs.mjs";
@@ -13,7 +13,7 @@ import { f as a1 } from "../NumberFormatting--XMeeBfr.mjs";
13
13
  import { useTheme as p1, alpha as x1 } from "@mui/material/styles";
14
14
  import { u as R, A as w1 } from "../AccountDetailsHeader-DIysk_4w.mjs";
15
15
  import { L as R1 } from "../LineChart-CejWS_rh.mjs";
16
- import { g as S1, a as T1, b as D1 } from "../SpendingData-BD3WTtu2.mjs";
16
+ import { g as S1, a as T1, b as D1 } from "../SpendingData-PKlh8caU.mjs";
17
17
  import { l as E1, u as A, d as E, g as k, h as _1, a as L1, b as G } from "../hooks-BaO_gOI6.mjs";
18
18
  import { A as I, g as f, N as f1 } from "../Account-BaJmiJAG.mjs";
19
19
  import { I as g1, P as H1, S as v1 } from "../Account-BxHMlV9R.mjs";
@@ -28,7 +28,7 @@ import $ from "@mui/material/ListItemButton";
28
28
  import Z from "@mui/material/ListItemText";
29
29
  import { b as H } from "../Localization-DnoVyBNK.mjs";
30
30
  import { A as w } from "../Analytics-CzGzz_sE.mjs";
31
- import { D as e1 } from "../Dialog-CwWc0AbH.mjs";
31
+ import { D as e1 } from "../Dialog-Bvd2n8hz.mjs";
32
32
  import { D as n1 } from "../Drawer-BXqqBMxg.mjs";
33
33
  import j from "@mui/material/ListItemAvatar";
34
34
  import { Language as O1, Error as b1, CheckCircle as F1 } from "@mxenabled/mx-icons";
@@ -56,13 +56,13 @@ import e3 from "@mui/material/Link";
56
56
  import t3 from "@mui/material/Paper";
57
57
  import { endOfToday as n3, subDays as o3, startOfToday as i3 } from "date-fns";
58
58
  import { T as c3 } from "../EmbeddedCard-DPwJjqMH.mjs";
59
- import { T as a3 } from "../TransactionDetails-C3dlAzYf.mjs";
59
+ import { T as a3 } from "../TransactionDetails-DctXr07p.mjs";
60
60
  import { T as u1 } from "../TabContentContainer-CnMXkVqr.mjs";
61
61
  import { C as s3 } from "../ConnectionsDrawer-CtfPXk0M.mjs";
62
62
  import { u as V1 } from "../useScreenSize-mWpmnh5w.mjs";
63
63
  import { u as o1 } from "../useWidgetLoadTimer-CJb-RELP.mjs";
64
64
  import { L as i1 } from "../Loader-CxeBwuPG.mjs";
65
- import { W as l3 } from "../WidgetContainer-DNuz_s7W.mjs";
65
+ import { W as l3 } from "../WidgetContainer-BU3nCHZo.mjs";
66
66
  import { M as A1 } from "../MiniWidgetContainer-BdPiUU-u.mjs";
67
67
  const r3 = (t, o) => {
68
68
  const n = g1.includes(o) ? S1(t) : [], c = H1.includes(o) ? T1(t) : [], i = v1.includes(o) ? D1(t) : [];
@@ -24,7 +24,7 @@ import ne from "@mui/material/ListItemText";
24
24
  import { D as $ } from "../Drawer-BXqqBMxg.mjs";
25
25
  import Xe from "@mui/material/ListItemSecondaryAction";
26
26
  import { C as Ze } from "../CurrencyInput-adTIRtL3.mjs";
27
- import { D as W } from "../Dialog-CwWc0AbH.mjs";
27
+ import { D as W } from "../Dialog-Bvd2n8hz.mjs";
28
28
  import { C as qe } from "../ConnectionsDrawer-CtfPXk0M.mjs";
29
29
  import * as O from "d3";
30
30
  import Je from "@mui/material/Tooltip";
@@ -36,18 +36,18 @@ import Ee from "@mui/material/Tab";
36
36
  import Qe from "@mui/material/Tabs";
37
37
  import { e as et, g as we } from "../TransactionUtils-BphBJBbU.mjs";
38
38
  import { T as ve } from "../EmbeddedCard-DPwJjqMH.mjs";
39
- import { T as tt, c as ot } from "../TransactionDetails-C3dlAzYf.mjs";
39
+ import { T as tt, c as ot } from "../TransactionDetails-DctXr07p.mjs";
40
40
  import Te from "@mui/material/Card";
41
41
  import De from "@mui/material/CardContent";
42
42
  import { S as Se } from "../StatusBar-CPfSXe80.mjs";
43
43
  import { S as Ge } from "../SingleSegmentDonut-7Uy6VEld.mjs";
44
- import { u as nt, C as at } from "../CategorySelectorDrawer-CmaDLhnf.mjs";
44
+ import { u as nt, C as at } from "../CategorySelectorDrawer-8soGrhB8.mjs";
45
45
  import Pe from "@mui/material/CardHeader";
46
46
  import { subDays as rt } from "date-fns/subDays";
47
47
  import st from "@mui/material/IconButton";
48
- import { M as it } from "../ManageIncome-B1JfqslT.mjs";
48
+ import { M as it } from "../ManageIncome-D1yBODQi.mjs";
49
49
  import { u as je } from "../useWidgetLoadTimer-CJb-RELP.mjs";
50
- import { W as ct } from "../WidgetContainer-DNuz_s7W.mjs";
50
+ import { W as ct } from "../WidgetContainer-BU3nCHZo.mjs";
51
51
  import { g as lt, a as dt } from "../BudgetUtil-Bg2AQJpQ.mjs";
52
52
  import { M as ut } from "../MiniWidgetContainer-BdPiUU-u.mjs";
53
53
  import { b as mt } from "../CurrencyDialog-DumQCTPO.mjs";
@@ -17,7 +17,7 @@ import { I as pe } from "../InformationTooltip-4su8bn1e.mjs";
17
17
  import { u as Oe } from "../useWidgetLoadTimer-CJb-RELP.mjs";
18
18
  import { M as Ze } from "../MiniWidgetContainer-BdPiUU-u.mjs";
19
19
  import { E as et } from "../EmptyState-CJUDc3kD.mjs";
20
- import { R as tt } from "../RecurringSettings-cm6MK_aS.mjs";
20
+ import { R as tt } from "../RecurringSettings-D2xbNb67.mjs";
21
21
  import nt from "@mui/material/Tabs";
22
22
  import ye from "@mui/material/Tab";
23
23
  import { getUnixTime as le } from "date-fns/getUnixTime";
@@ -34,11 +34,11 @@ import { addDays as _e } from "date-fns/addDays";
34
34
  import { DataGridPro as at } from "@mui/x-data-grid-pro";
35
35
  import { T as Ce } from "../TabContentContainer-CnMXkVqr.mjs";
36
36
  import W from "@mui/material/Button";
37
- import { M as rt, S as st, i as ct, b as we, c as lt } from "../ManageIncome-B1JfqslT.mjs";
37
+ import { M as rt, S as st, i as ct, b as we, c as lt } from "../ManageIncome-D1yBODQi.mjs";
38
38
  import { D as He } from "../Drawer-BXqqBMxg.mjs";
39
39
  import { subDays as We } from "date-fns/subDays";
40
40
  import { endOfToday as dt } from "date-fns/endOfToday";
41
- import { W as mt } from "../WidgetContainer-DNuz_s7W.mjs";
41
+ import { W as mt } from "../WidgetContainer-BU3nCHZo.mjs";
42
42
  import { A as X } from "../Account-BaJmiJAG.mjs";
43
43
  import { A as Se } from "../Analytics-CzGzz_sE.mjs";
44
44
  import { formatISO as ut } from "date-fns/formatISO";
@@ -1,4 +1,4 @@
1
- import { C as a, a as o, b as t, u as s } from "../CategorySelectorDrawer-CmaDLhnf.mjs";
1
+ import { C as a, a as o, b as t, u as s } from "../CategorySelectorDrawer-8soGrhB8.mjs";
2
2
  export {
3
3
  a as CategoryRow,
4
4
  o as CategorySelector,
@@ -4,8 +4,8 @@ import { f as j, b as V, a as K, c as Z, g as J, d as X } from "../NumberFormatt
4
4
  import { C as rr, a as er, b as or } from "../CurrencyDialog-DumQCTPO.mjs";
5
5
  import { C as ar } from "../CurrencyInput-adTIRtL3.mjs";
6
6
  import { D as nr, S as ir } from "../Select-BFt-HD-L.mjs";
7
- import { D as lr, W as mr, u as dr } from "../WidgetContainer-DNuz_s7W.mjs";
8
- import { D as fr } from "../Dialog-CwWc0AbH.mjs";
7
+ import { D as lr, W as mr, u as dr } from "../WidgetContainer-BU3nCHZo.mjs";
8
+ import { D as fr } from "../Dialog-Bvd2n8hz.mjs";
9
9
  import { D as yr } from "../Donut-SzzfZDHF.mjs";
10
10
  import { D as xr } from "../Drawer-BXqqBMxg.mjs";
11
11
  import { E as hr } from "../ErrorBoundary-CsdOcnJ9.mjs";
@@ -31,7 +31,7 @@ import { E as Jr } from "../Error-Dogaw2jO.mjs";
31
31
  import { G as zr } from "../GlobalAccountFilter-7Cg2-9A5.mjs";
32
32
  import { G as ee, m as oe, n as te, W as ae, d as se, a as ne, o as ie, p as ue, l as le, q as me, r as de, g as ce, s as fe, u as pe, f as ye, b as ge, k as xe, t as Ee, v as he, w as Se, c as Ce, x as _e, y as ve, z as ke, i as be, A as Oe, h as De, B as Te, C as Ie, D as Ae } from "../hooks-BaO_gOI6.mjs";
33
33
  import { I as Pe, P as we, S as Ne } from "../Account-BxHMlV9R.mjs";
34
- import { L as We } from "../ListItemAction-CwspSmQi.mjs";
34
+ import { L as We } from "../ListItemAction-CzZ8s39Z.mjs";
35
35
  import { L as Ge } from "../ListItemRow-kH1rn8Xu.mjs";
36
36
  import { L as Re } from "../ListItemWrapper-B5r-YQQ_.mjs";
37
37
  import { S as Ye } from "../SearchBox-Cpgu_gdO.mjs";
@@ -24,9 +24,9 @@ import be from "@mui/material/Tab";
24
24
  import Ze from "@mui/material/Tabs";
25
25
  import we from "@mui/material/List";
26
26
  import G from "@mui/material/Divider";
27
- import { M as Je, I as Qe, O as et } from "../OriginalBalanceAction-CkJPnp2c.mjs";
27
+ import { M as Je, I as Qe, O as et } from "../OriginalBalanceAction-BybTXDtO.mjs";
28
28
  import tt from "@mui/material/TextField";
29
- import { L as re } from "../ListItemAction-CwspSmQi.mjs";
29
+ import { L as re } from "../ListItemAction-CzZ8s39Z.mjs";
30
30
  import { C as se } from "../CurrencyInput-adTIRtL3.mjs";
31
31
  import me from "@mui/material/Alert";
32
32
  import _e from "@mui/material/AlertTitle";
@@ -42,7 +42,7 @@ import it from "@mui/material/ListItem";
42
42
  import lt from "@mui/material/Popover";
43
43
  import { u as st } from "../useWidgetLoadTimer-CJb-RELP.mjs";
44
44
  import { L as ct } from "../Loader-CxeBwuPG.mjs";
45
- import { W as dt } from "../WidgetContainer-DNuz_s7W.mjs";
45
+ import { W as dt } from "../WidgetContainer-BU3nCHZo.mjs";
46
46
  import { E as pt } from "../EmptyState-CJUDc3kD.mjs";
47
47
  import { C as ut } from "../ConnectDrawer-Cnjr3Ddg.mjs";
48
48
  function ht(r, n, o = 0) {
@@ -37,7 +37,7 @@ import he from "@mui/material/Tab";
37
37
  import et from "@mui/material/Tabs";
38
38
  import Pe from "@mui/material/TextField";
39
39
  import { u as tt } from "../useScreenSize-mWpmnh5w.mjs";
40
- import { D as Wn } from "../Dialog-CwWc0AbH.mjs";
40
+ import { D as Wn } from "../Dialog-Bvd2n8hz.mjs";
41
41
  import { u as wt } from "../useDimensions-CeDR9V8N.mjs";
42
42
  import { E as Be } from "../EmptyState-CJUDc3kD.mjs";
43
43
  import $n from "@mui/material/Chip";
@@ -62,11 +62,11 @@ import { g as Jn, S as eo, b as to } from "../SpendingLegend-5Ct_FZ8o.mjs";
62
62
  import { formatISO as no } from "date-fns/formatISO";
63
63
  import { fromUnixTime as oo } from "date-fns/fromUnixTime";
64
64
  import { subDays as ro } from "date-fns/subDays";
65
- import { c as ao, b as pt, S as io, i as so } from "../ManageIncome-B1JfqslT.mjs";
65
+ import { c as ao, b as pt, S as io, i as so } from "../ManageIncome-D1yBODQi.mjs";
66
66
  import { F as Tt, c as co, R as Ot } from "../RecurringTransactionsUtil-B3rLEx_g.mjs";
67
67
  import { LocalizationProvider as lo, DatePicker as po, StaticDatePicker as uo } from "@mui/x-date-pickers";
68
68
  import { AdapterDateFns as Rt } from "@mui/x-date-pickers/AdapterDateFnsV3";
69
- import { R as _o } from "../RecurringSettings-cm6MK_aS.mjs";
69
+ import { R as _o } from "../RecurringSettings-D2xbNb67.mjs";
70
70
  import { LocalizationProvider as mo } from "@mui/x-date-pickers/LocalizationProvider";
71
71
  import ho from "@mui/lab/Timeline";
72
72
  import go, { timelineItemClasses as yo } from "@mui/lab/TimelineItem";
@@ -78,7 +78,7 @@ import So from "@mui/material/Accordion";
78
78
  import vo from "@mui/material/AccordionDetails";
79
79
  import wo from "@mui/material/AccordionSummary";
80
80
  import { u as ko } from "../useWidgetLoadTimer-CJb-RELP.mjs";
81
- import { W as Mo } from "../WidgetContainer-DNuz_s7W.mjs";
81
+ import { W as Mo } from "../WidgetContainer-BU3nCHZo.mjs";
82
82
  const Ae = {
83
83
  creditScore: {
84
84
  poor: 600,
@@ -23,7 +23,7 @@ import { u as he } from "../useScreenSize-mWpmnh5w.mjs";
23
23
  import { S as et } from "../StatusBar-CPfSXe80.mjs";
24
24
  import v from "@mui/material/Divider";
25
25
  import O from "@mui/material/List";
26
- import { L as Z } from "../ListItemAction-CwspSmQi.mjs";
26
+ import { L as Z } from "../ListItemAction-CzZ8s39Z.mjs";
27
27
  import { C as ke } from "../CurrencyInput-adTIRtL3.mjs";
28
28
  import { fromUnixTime as ee } from "date-fns/fromUnixTime";
29
29
  import tt from "@mui/material/IconButton";
@@ -41,17 +41,17 @@ import { C as De } from "../ConnectCard-CCep7Zqe.mjs";
41
41
  import { A as Ae } from "../Account-BaJmiJAG.mjs";
42
42
  import { u as it } from "../useAccountDisplayName-CFa_MrS6.mjs";
43
43
  import Ke from "@mui/material/TextField";
44
- import { M as rt, I as st, O as ct } from "../OriginalBalanceAction-CkJPnp2c.mjs";
44
+ import { M as rt, I as st, O as ct } from "../OriginalBalanceAction-BybTXDtO.mjs";
45
45
  import { getUnixTime as lt } from "date-fns/getUnixTime";
46
46
  import { isValid as dt } from "date-fns/isValid";
47
47
  import { AdapterDateFns as mt } from "@mui/x-date-pickers/AdapterDateFnsV3";
48
48
  import { DatePicker as ut } from "@mui/x-date-pickers";
49
49
  import { LocalizationProvider as _t } from "@mui/x-date-pickers/LocalizationProvider";
50
- import { D as pt } from "../Dialog-CwWc0AbH.mjs";
50
+ import { D as pt } from "../Dialog-Bvd2n8hz.mjs";
51
51
  import { u as Me } from "../useWidgetLoadTimer-CJb-RELP.mjs";
52
52
  import { A as $ } from "../Analytics-CzGzz_sE.mjs";
53
53
  import { L as Le } from "../Loader-CxeBwuPG.mjs";
54
- import { W as ht } from "../WidgetContainer-DNuz_s7W.mjs";
54
+ import { W as ht } from "../WidgetContainer-BU3nCHZo.mjs";
55
55
  import { E as bt } from "../EmptyState-CJUDc3kD.mjs";
56
56
  import ft from "@mui/material/Box";
57
57
  import { useTheme as gt } from "@mui/material/styles";
@@ -4,7 +4,7 @@ import { H as s } from "../Help-DJ8PrVHX.mjs";
4
4
  import { b as a } from "../hooks-BaO_gOI6.mjs";
5
5
  import { u as p } from "../useWidgetLoadTimer-CJb-RELP.mjs";
6
6
  import { L as d } from "../Loader-CxeBwuPG.mjs";
7
- import { W as f } from "../WidgetContainer-DNuz_s7W.mjs";
7
+ import { W as f } from "../WidgetContainer-BU3nCHZo.mjs";
8
8
  const L = m(({ onBackClick: e, onMenuClick: i, sx: t }) => {
9
9
  const { isInitialized: o } = a();
10
10
  return p({
@@ -38,7 +38,7 @@ import { DataGridPro as $e } from "@mui/x-data-grid-pro";
38
38
  import { Stack as Pe } from "@mui/material";
39
39
  import { L as De } from "../Loader-CxeBwuPG.mjs";
40
40
  import { u as qe } from "../useWidgetLoadTimer-CJb-RELP.mjs";
41
- import { W as Ke } from "../WidgetContainer-DNuz_s7W.mjs";
41
+ import { W as Ke } from "../WidgetContainer-BU3nCHZo.mjs";
42
42
  import { A as Ye } from "../Account-BaJmiJAG.mjs";
43
43
  import { E as Qe } from "../EmptyState-CJUDc3kD.mjs";
44
44
  const me = ({ sx: t = {} }) => {
@@ -32,7 +32,7 @@ import xe from "@mui/material/Collapse";
32
32
  import K from "@mui/material/ListItemIcon";
33
33
  import { g as U } from "../NetWorthUtils-DilGN1nW.mjs";
34
34
  import { D as V } from "../Drawer-BXqqBMxg.mjs";
35
- import { W as ge } from "../WidgetContainer-DNuz_s7W.mjs";
35
+ import { W as ge } from "../WidgetContainer-BU3nCHZo.mjs";
36
36
  import { E as ye } from "../EmptyState-CJUDc3kD.mjs";
37
37
  const Ce = ({ amount: t, copy: s, trendValue: i }) => {
38
38
  const n = i > 0, o = i === 0 ? "trending_flat" : n ? "trending_up" : "trending_down";
@@ -16,7 +16,7 @@ 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-6p-h5phZ.mjs";
19
+ import { N as q } from "../NotificationSettings-B4JA5IKE.mjs";
20
20
  import { D as x } from "../Drawer-BXqqBMxg.mjs";
21
21
  const xt = (i) => {
22
22
  switch (i) {
@@ -6,8 +6,8 @@ import { endOfToday as J } from "date-fns/endOfToday";
6
6
  import { startOfMonth as k } from "date-fns/startOfMonth";
7
7
  import { startOfToday as Q } from "date-fns/startOfToday";
8
8
  import { subDays as ee } from "date-fns/subDays";
9
- import { R as _e } from "../RecurringSettings-cm6MK_aS.mjs";
10
- import { M as Un } from "../RecurringSettings-cm6MK_aS.mjs";
9
+ import { R as _e } from "../RecurringSettings-D2xbNb67.mjs";
10
+ import { M as Un } from "../RecurringSettings-D2xbNb67.mjs";
11
11
  import { addMonths as ze } from "date-fns/addMonths";
12
12
  import { subMonths as He } from "date-fns/subMonths";
13
13
  import { isBefore as $e } from "date-fns/isBefore";
@@ -47,8 +47,8 @@ import ut from "@mui/material/ListItemAvatar";
47
47
  import mt from "@mui/material/ListItemButton";
48
48
  import pt from "@mui/material/ListItemText";
49
49
  import { f as E } from "../NumberFormatting--XMeeBfr.mjs";
50
- import { d as gt } from "../ManageIncome-B1JfqslT.mjs";
51
- import { c as jn, M as Kn, S as Vn } from "../ManageIncome-B1JfqslT.mjs";
50
+ import { d as gt } from "../ManageIncome-D1yBODQi.mjs";
51
+ import { c as jn, M as Kn, S as Vn } from "../ManageIncome-D1yBODQi.mjs";
52
52
  import { D as ie } from "../Drawer-BXqqBMxg.mjs";
53
53
  import O from "@mui/material/Box";
54
54
  import { u as Me } from "../useScreenSize-mWpmnh5w.mjs";
@@ -56,7 +56,7 @@ import { S as Le } from "../StatusBar-CPfSXe80.mjs";
56
56
  import { S as ve } from "../SkeletonLoader-BaNboJjD.mjs";
57
57
  import { u as oe } from "../useWidgetLoadTimer-CJb-RELP.mjs";
58
58
  import { L as ae } from "../Loader-CxeBwuPG.mjs";
59
- import { W as ht } from "../WidgetContainer-DNuz_s7W.mjs";
59
+ import { W as ht } from "../WidgetContainer-BU3nCHZo.mjs";
60
60
  import { M as ft } from "../MiniWidgetContainer-BdPiUU-u.mjs";
61
61
  import { u as xt } from "../useDimensions-CeDR9V8N.mjs";
62
62
  import { M as bt } from "../MicroWidgetContainer-CfKdQfhi.mjs";
@@ -15,11 +15,11 @@ import W from "@mui/material/Box";
15
15
  import Z from "@mui/material/Button";
16
16
  import I from "@mui/material/TextField";
17
17
  import { H3 as Y, P as M, Text as x, Icon as B } from "@mxenabled/mxui";
18
- import { V as xe, a as ve, N as J } from "../NotificationSettings-6p-h5phZ.mjs";
19
- import { A as $t, B as Jt, I as Kt } from "../NotificationSettings-6p-h5phZ.mjs";
18
+ import { V as xe, a as ve, N as J } from "../NotificationSettings-B4JA5IKE.mjs";
19
+ import { A as $t, B as Jt, I as Kt } from "../NotificationSettings-B4JA5IKE.mjs";
20
20
  import { u as w, a as G, A as E, C as Ce, b as ee, l as j } from "../hooks-BaO_gOI6.mjs";
21
21
  import { u as O } from "../useScreenSize-mWpmnh5w.mjs";
22
- import { D as $ } from "../Dialog-CwWc0AbH.mjs";
22
+ import { D as $ } from "../Dialog-Bvd2n8hz.mjs";
23
23
  import { formatDistanceToNow as te } from "date-fns/formatDistanceToNow";
24
24
  import { fromUnixTime as oe } from "date-fns/fromUnixTime";
25
25
  import z from "@mui/material/IconButton";
@@ -33,7 +33,7 @@ import { L as ie } from "../Loader-CxeBwuPG.mjs";
33
33
  import Te from "@mui/material/List";
34
34
  import K from "@mui/material/Divider";
35
35
  import Ae from "@mui/material/ListSubheader";
36
- import { b as Ie, u as Ee } from "../CategorySelectorDrawer-CmaDLhnf.mjs";
36
+ import { b as Ie, u as Ee } from "../CategorySelectorDrawer-8soGrhB8.mjs";
37
37
  import Pe from "@mui/material/ListItem";
38
38
  import Re from "@mui/material/ListItemButton";
39
39
  import Ne from "@mui/material/ListItemIcon";
@@ -42,7 +42,7 @@ import { ChevronRight as Le } from "@mxenabled/mx-icons";
42
42
  import { D as Be } from "../Drawer-BXqqBMxg.mjs";
43
43
  import { u as ne } from "../useWidgetLoadTimer-CJb-RELP.mjs";
44
44
  import { H as He } from "../Help-DJ8PrVHX.mjs";
45
- import { W as q } from "../WidgetContainer-DNuz_s7W.mjs";
45
+ import { W as q } from "../WidgetContainer-BU3nCHZo.mjs";
46
46
  const Oe = ({ availableWidth: t, handleOnLeavClick: r }) => {
47
47
  const i = L(), { common: o, settings: n } = w(), { isDesktop: u, isMobile: s, isSmallMobile: a, isTablet: l } = O(t), { config: b } = G(), { updateUser: _ } = E(), { user: d } = Ce(), [p, k] = m.useState({
48
48
  first_name: d.first_name,
@@ -20,7 +20,7 @@ import St from "@mui/material/Button";
20
20
  import { useTheme as Tt } from "@mui/material";
21
21
  import { e as Mt } from "../TransactionUtils-BphBJBbU.mjs";
22
22
  import { T as Dt } from "../EmbeddedCard-DPwJjqMH.mjs";
23
- import { T as xt } from "../TransactionDetails-C3dlAzYf.mjs";
23
+ import { T as xt } from "../TransactionDetails-DctXr07p.mjs";
24
24
  import vt from "@mui/material/Collapse";
25
25
  import wt from "@mui/material/Divider";
26
26
  import Q from "@mui/material/List";
@@ -31,7 +31,7 @@ import { D as tt } from "../Drawer-BXqqBMxg.mjs";
31
31
  import { C as w } from "../Category-DEKZGLYe.mjs";
32
32
  import { parseISO as et } from "date-fns/parseISO";
33
33
  import { A as nt } from "../Analytics-CzGzz_sE.mjs";
34
- import { W as It } from "../WidgetContainer-DNuz_s7W.mjs";
34
+ import { W as It } from "../WidgetContainer-BU3nCHZo.mjs";
35
35
  const G = ({ amount: n, label: d, variant: o = "full" }) => /* @__PURE__ */ p(y, { direction: "column", children: [
36
36
  /* @__PURE__ */ t(T, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: d }),
37
37
  /* @__PURE__ */ t(T, { variant: "caption", children: k(n, o === "mini" ? "0,0" : "0,0.00") })
@@ -1,5 +1,5 @@
1
- import { C as Be, D as He, M as Pe, a as We, T as $e } from "../TransactionDetails-C3dlAzYf.mjs";
2
- import { B as xa, b as Aa } from "../TransactionDetails-C3dlAzYf.mjs";
1
+ import { C as Be, D as He, M as Pe, a as We, T as $e } from "../TransactionDetails-DctXr07p.mjs";
2
+ import { B as xa, b as Aa } from "../TransactionDetails-DctXr07p.mjs";
3
3
  import { u as B, T as Ge } from "../EmbeddedCard-DPwJjqMH.mjs";
4
4
  import { a as Sa } from "../EmbeddedCard-DPwJjqMH.mjs";
5
5
  import { E as va } from "../ExportCsvAction-Bw02ZJEj.mjs";
@@ -31,13 +31,13 @@ import it from "@mui/material/RadioGroup";
31
31
  import { ExpandMore as st } from "@mxenabled/mx-icons";
32
32
  import { C as ct } from "../CurrencyInput-adTIRtL3.mjs";
33
33
  import { S as ee } from "../SelectionBox-B4xELRgp.mjs";
34
- import { D as se } from "../Dialog-CwWc0AbH.mjs";
35
- import { b as lt, u as dt } from "../CategorySelectorDrawer-CmaDLhnf.mjs";
34
+ import { D as se } from "../Dialog-Bvd2n8hz.mjs";
35
+ import { b as lt, u as dt } from "../CategorySelectorDrawer-8soGrhB8.mjs";
36
36
  import { u as ut } from "../useAriaLive-MkYebyUR.mjs";
37
37
  import { S as mt } from "../SkeletonLoader-BaNboJjD.mjs";
38
38
  import { u as _t } from "../useScreenSize-mWpmnh5w.mjs";
39
39
  import { u as pt } from "../useWidgetLoadTimer-CJb-RELP.mjs";
40
- import { W as gt } from "../WidgetContainer-DNuz_s7W.mjs";
40
+ import { W as gt } from "../WidgetContainer-BU3nCHZo.mjs";
41
41
  import { S as ht } from "../SearchBox-Cpgu_gdO.mjs";
42
42
  import { D as te } from "../Drawer-BXqqBMxg.mjs";
43
43
  const ft = (t) => /* @__PURE__ */ m(y, { tabIndex: t.tabIndex, variant: "body2", children: [
@@ -24,7 +24,7 @@ import { a as Re, C as $e, b as Nt } from "../Category-DEKZGLYe.mjs";
24
24
  import { f as X, D as G } from "../DateFormats-HudZ3Bjs.mjs";
25
25
  import { f as re, a as Wt } from "../NumberFormatting--XMeeBfr.mjs";
26
26
  import { a as Ke, c as Ot, g as Gt } from "../TrendsUtil-D9z3kIj_.mjs";
27
- import { c as Bt, i as Pt, d as Vt, e as zt, g as at, b as it, f as Ye } from "../SpendingData-BD3WTtu2.mjs";
27
+ import { c as Bt, i as Pt, d as Vt, e as zt, g as at, b as it, f as Ye } from "../SpendingData-PKlh8caU.mjs";
28
28
  import Ft from "@mui/material/ToggleButton";
29
29
  import $t from "@mui/material/ToggleButtonGroup";
30
30
  import { parseISO as lt } from "date-fns/parseISO";
@@ -35,11 +35,11 @@ import Xt from "@mui/material/Badge";
35
35
  import Zt from "@mui/material/IconButton";
36
36
  import { A as w } from "../Analytics-CzGzz_sE.mjs";
37
37
  import { T as ct } from "../EmbeddedCard-DPwJjqMH.mjs";
38
- import { T as dt } from "../TransactionDetails-C3dlAzYf.mjs";
38
+ import { T as dt } from "../TransactionDetails-DctXr07p.mjs";
39
39
  import { D as Pe } from "../Drawer-BXqqBMxg.mjs";
40
40
  import { u as Ie } from "../useWidgetLoadTimer-CJb-RELP.mjs";
41
41
  import { L as Le } from "../Loader-CxeBwuPG.mjs";
42
- import { W as ut } from "../WidgetContainer-DNuz_s7W.mjs";
42
+ import { W as ut } from "../WidgetContainer-BU3nCHZo.mjs";
43
43
  import { L as Ve } from "../LineChart-CejWS_rh.mjs";
44
44
  import { M as Qt } from "../MiniWidgetContainer-BdPiUU-u.mjs";
45
45
  import { subMonths as qt } from "date-fns";
@@ -219,7 +219,7 @@ const gt = ({ categoryGuid: t, topLevelCategoryGuid: n }) => {
219
219
  hoveredAreaData: null,
220
220
  isAreaHovered: !1,
221
221
  cursorPos: { x: 0, y: 0 }
222
- }), { hoveredSeriesId: L, hoveredAreaData: E, isAreaHovered: M, cursorPos: v } = N, K = M && L && E, ae = !K, Y = [...r, ...c], J = Y[0]?.dataset.length ?? 0, P = Y.flatMap((l) => l.dataset.map((b) => b.x)), V = Y.flatMap((l) => l.dataset.map((b) => b.y)), O = r[0]?.dataset?.map(
222
+ }), { hoveredSeriesId: L, hoveredAreaData: M, isAreaHovered: E, cursorPos: v } = N, K = E && L && M, ae = !K, Y = [...r, ...c], J = Y[0]?.dataset.length ?? 0, P = Y.flatMap((l) => l.dataset.map((b) => b.x)), V = Y.flatMap((l) => l.dataset.map((b) => b.y)), O = r[0]?.dataset?.map(
223
223
  (l, b) => r.reduce((I, z) => I + z.dataset[b]?.y || 0, 0)
224
224
  ) ?? [0], ee = Math.max(...O), Ce = Math.max(
225
225
  ...c.flatMap((l) => l.dataset.map((b) => b.y))
@@ -411,7 +411,7 @@ const gt = ({ categoryGuid: t, topLevelCategoryGuid: n }) => {
411
411
  categoryGuids: B(L),
412
412
  chartContainerRef: _,
413
413
  cursorPosition: v,
414
- hoveredAreaData: E.map((l) => ({
414
+ hoveredAreaData: M.map((l) => ({
415
415
  ...l,
416
416
  x: X(l.x, G.MONTH_SHORT_YEAR)
417
417
  }))
@@ -686,7 +686,7 @@ const Lo = g.memo(Io), Qe = ({
686
686
  {}
687
687
  )
688
688
  };
689
- return console.log({ incomeRows: f, spendingRows: m, totalSpendingRow: _ }), /* @__PURE__ */ C(
689
+ return /* @__PURE__ */ C(
690
690
  S,
691
691
  {
692
692
  gap: 24,
@@ -762,7 +762,7 @@ const Lo = g.memo(Io), Qe = ({
762
762
  isTransactionDataLoaded: y,
763
763
  loadTransactionData: T,
764
764
  sortedTransactions: N
765
- } = we(), { selectedDateRange: x, setSelectedDateRange: L } = ye(), { isInitialized: E, selectedAccounts: M } = fe(), { trends: v } = R(), [K, ae] = g.useState(!1), [Y, J] = g.useState(!1), [P, V] = g.useState("Chart"), [O, ee] = g.useState(""), [Ce, ie] = g.useState(window.innerHeight), j = Ce - (a ? 315 : 345);
765
+ } = we(), { selectedDateRange: x, setSelectedDateRange: L } = ye(), { isInitialized: M, selectedAccounts: E } = fe(), { trends: v } = R(), [K, ae] = g.useState(!1), [Y, J] = g.useState(!1), [P, V] = g.useState("Chart"), [O, ee] = g.useState(""), [Ce, ie] = g.useState(window.innerHeight), j = Ce - (a ? 315 : 345);
766
766
  Ie({
767
767
  widgetName: "TrendsFullWidget",
768
768
  isLoaded: K
@@ -770,9 +770,9 @@ const Lo = g.memo(Io), Qe = ({
770
770
  const D = () => ie(window.innerHeight);
771
771
  return window.addEventListener("resize", D), d || u().finally(), i || f().finally(), y || T().finally(), () => window.removeEventListener("resize", D);
772
772
  }, []), g.useEffect(() => {
773
- E && m(M, x.start, x.end).then(() => {
773
+ M && m(E, x.start, x.end).then(() => {
774
774
  _(
775
- M,
775
+ E,
776
776
  x.start,
777
777
  x.end
778
778
  );
@@ -782,7 +782,7 @@ const Lo = g.memo(Io), Qe = ({
782
782
  time_period: `${Se(x.end, x.start)}M`
783
783
  });
784
784
  });
785
- }, [E, M, x]);
785
+ }, [M, E, x]);
786
786
  const ne = g.useMemo(() => {
787
787
  if (!K) return { stackedDatasets: [], unstackedDatasets: [] };
788
788
  const D = Gt(
@@ -816,7 +816,7 @@ const Lo = g.memo(Io), Qe = ({
816
816
  }, me = (D) => {
817
817
  o(w.TRENDS_HOVER_POINT, { category: D });
818
818
  };
819
- return !E || !K ? /* @__PURE__ */ e(Le, {}) : /* @__PURE__ */ C(
819
+ return !M || !K ? /* @__PURE__ */ e(Le, {}) : /* @__PURE__ */ C(
820
820
  ut,
821
821
  {
822
822
  calendarActions: { onRangeChanged: de },
@@ -1055,9 +1055,9 @@ const Lo = g.memo(Io), Qe = ({
1055
1055
  incomeData: at(c, u)
1056
1056
  }),
1057
1057
  [c, u]
1058
- ), [p, y] = _, [T, N] = h, x = Ye(y.y, p.y), L = Ye(N.y, T.y), E = m && !o?.length, M = () => {
1058
+ ), [p, y] = _, [T, N] = h, x = Ye(y.y, p.y), L = Ye(N.y, T.y), M = m && !o?.length, E = () => {
1059
1059
  r(
1060
- E ? w.TRENDS_CLICK_GET_STARTED : w.TRENDS_CLICK_VIEW_MORE
1060
+ M ? w.TRENDS_CLICK_GET_STARTED : w.TRENDS_CLICK_VIEW_MORE
1061
1061
  ), t();
1062
1062
  };
1063
1063
  return !d || !m ? /* @__PURE__ */ e(Le, {}) : /* @__PURE__ */ e(
@@ -1065,10 +1065,10 @@ const Lo = g.memo(Io), Qe = ({
1065
1065
  {
1066
1066
  className: "mx-trends-microwidget",
1067
1067
  ctaLabel: i.micro_primary_cta_label,
1068
- onCTAClick: M,
1069
- subHeader: E ? void 0 : i.micro_subheader,
1068
+ onCTAClick: E,
1069
+ subHeader: M ? void 0 : i.micro_subheader,
1070
1070
  title: i.title,
1071
- children: E ? /* @__PURE__ */ e(Oo, {}) : /* @__PURE__ */ C(
1071
+ children: M ? /* @__PURE__ */ e(Oo, {}) : /* @__PURE__ */ C(
1072
1072
  S,
1073
1073
  {
1074
1074
  sx: {
@@ -1280,7 +1280,7 @@ const Lo = g.memo(Io), Qe = ({
1280
1280
  const { guid: _, name: h, is_income: p, totalAmount: y } = d, T = Oe(_, t), N = p ? a.income_label : a.spending_label, x = ` ${d.transactions.length === 1 ? a.transaction : a.transactions} (${d.transactions.length})`, L = g.useMemo(
1281
1281
  () => i.find((v) => v.guid === f),
1282
1282
  [f, i]
1283
- ), E = i.length > 0 && !n && (s || r && !o), M = (v) => v.category_guid === _ || v.top_level_category_guid === _;
1283
+ ), M = i.length > 0 && !n && (s || r && !o), E = (v) => v.category_guid === _ || v.top_level_category_guid === _;
1284
1284
  return /* @__PURE__ */ C(S, { sx: { alignItems: "center", height: "100%" }, children: [
1285
1285
  /* @__PURE__ */ C(S, { sx: { borderRadius: 0, pb: 4, pt: 16, px: 12, width: "100%" }, children: [
1286
1286
  /* @__PURE__ */ e(We, { sx: { px: 12 }, children: /* @__PURE__ */ C(mt, { children: [
@@ -1301,14 +1301,14 @@ const Lo = g.memo(Io), Qe = ({
1301
1301
  /* @__PURE__ */ e(zo, { chartColor: T, chartLabel: N }),
1302
1302
  /* @__PURE__ */ C(S, { alignItems: "center", direction: "row", justifyContent: "space-between", sx: { mx: 12 }, children: [
1303
1303
  /* @__PURE__ */ e(F, { bold: !0, variant: "body1", children: x }),
1304
- E && /* @__PURE__ */ e(go, { filter: M })
1304
+ M && /* @__PURE__ */ e(go, { filter: E })
1305
1305
  ] })
1306
1306
  ] }),
1307
1307
  /* @__PURE__ */ e(
1308
1308
  ct,
1309
1309
  {
1310
1310
  bgcolor: "transparent",
1311
- filter: M,
1311
+ filter: E,
1312
1312
  height: "calc(100vh - 475px)",
1313
1313
  onClick: m
1314
1314
  }
@@ -1345,14 +1345,10 @@ const Lo = g.memo(Io), Qe = ({
1345
1345
  totals: o
1346
1346
  }) => {
1347
1347
  const r = Z(), { onEvent: c } = $(), { trends: a } = R(), { isSmallMobile: d, isMobile: u, isSmallTablet: i, isTablet: f } = Q(), m = [r.palette.chart?.chart1, r.palette.chart?.chart2], _ = $o(o, s), h = Ko(_, a), [p, y] = g.useState(0), T = 458, N = 195, x = 56, L = u || d ? N : i || f ? T : p;
1348
- g.useEffect(() => {
1349
- const M = Math.max(t - x, n);
1350
- y(M);
1351
- }, [t]);
1352
- const E = () => {
1353
- c(w.TRENDS_CLICK_CHART, W);
1354
- };
1355
- return console.log({ datasets: _, totals: o }), /* @__PURE__ */ e(
1348
+ return g.useEffect(() => {
1349
+ const E = Math.max(t - x, n);
1350
+ y(E);
1351
+ }, [t]), /* @__PURE__ */ e(
1356
1352
  Ve,
1357
1353
  {
1358
1354
  baseline: "min",
@@ -1361,7 +1357,9 @@ const Lo = g.memo(Io), Qe = ({
1361
1357
  datasets: _,
1362
1358
  height: L,
1363
1359
  labels: h,
1364
- onItemClick: E,
1360
+ onItemClick: () => {
1361
+ c(w.TRENDS_CLICK_CHART, W);
1362
+ },
1365
1363
  showArea: !0,
1366
1364
  showAxisHighlight: !0,
1367
1365
  showLegend: !0,
@@ -1425,7 +1423,7 @@ const Lo = g.memo(Io), Qe = ({
1425
1423
  loadMonthlyCategoryTotals: y,
1426
1424
  monthlyCategoryTotals: T,
1427
1425
  monthlyTotalsLoaded: N
1428
- } = q(), { isTransactionDataLoaded: x, loadTransactionData: L, setFilter: E } = we(), { selectedCategoryData: M, selectedDateRange: v, setSelectedCategoryData: K, setSelectedDateRange: ae } = ye(), { isInitialized: Y, selectedAccounts: J, selectedAccountGuids: P } = fe(), { trends: V, connect: O } = R(), { beatStore: ee } = Be(), ie = po() && c.show_insights_widget_in_master, te = a || d, [j, ne] = g.useState(!1), [U, de] = g.useState(!1), [B, ue] = g.useState("Chart"), [se, le] = g.useState(""), [ce, me] = g.useState(window.innerHeight), D = te ? 56 : 0, l = ce - 208, b = ce - (ie ? 550 + D : 266), [I, z] = g.useState(!1), Ee = c.show_connections_widget_in_master;
1426
+ } = q(), { isTransactionDataLoaded: x, loadTransactionData: L, setFilter: M } = we(), { selectedCategoryData: E, selectedDateRange: v, setSelectedCategoryData: K, setSelectedDateRange: ae } = ye(), { isInitialized: Y, selectedAccounts: J, selectedAccountGuids: P } = fe(), { trends: V, connect: O } = R(), { beatStore: ee } = Be(), ie = po() && c.show_insights_widget_in_master, te = a || d, [j, ne] = g.useState(!1), [U, de] = g.useState(!1), [B, ue] = g.useState("Chart"), [se, le] = g.useState(""), [ce, me] = g.useState(window.innerHeight), D = te ? 56 : 0, l = ce - 208, b = ce - (ie ? 550 + D : 266), [I, z] = g.useState(!1), Ee = c.show_connections_widget_in_master;
1429
1427
  Ie({
1430
1428
  widgetName: "TrendsWidget",
1431
1429
  isLoaded: j
@@ -1453,7 +1451,7 @@ const Lo = g.memo(Io), Qe = ({
1453
1451
  accounts: P,
1454
1452
  dateRange: { start: v.start, end: v.end }
1455
1453
  };
1456
- E({
1454
+ M({
1457
1455
  ...k,
1458
1456
  custom: (oe) => !!T.find(
1459
1457
  (ge) => ge.top_level_category_guid === oe.top_level_category_guid || ge.category_guid === oe.category_guid
@@ -1585,11 +1583,11 @@ const Lo = g.memo(Io), Qe = ({
1585
1583
  Pe,
1586
1584
  {
1587
1585
  ariaLabelClose: V.close_category_details,
1588
- isOpen: !!M,
1586
+ isOpen: !!E,
1589
1587
  onClose: Me,
1590
1588
  shouldShowHeaderShadow: !0,
1591
- title: M?.is_income ? V.category_income : V.category_spending,
1592
- children: M && /* @__PURE__ */ e(Fo, {})
1589
+ title: E?.is_income ? V.category_income : V.category_spending,
1590
+ children: E && /* @__PURE__ */ e(Fo, {})
1593
1591
  }
1594
1592
  )
1595
1593
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "9.0.0-ram2-bug-alpha-testing",
3
+ "version": "9.0.1",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",
@@ -1,63 +0,0 @@
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
- const H = ({
6
- className: l,
7
- copy: o,
8
- disablePrimaryButton: t = !1,
9
- isOpen: n = !1,
10
- onClose: a,
11
- onPrimaryAction: c,
12
- primaryColor: s = "primary",
13
- primaryText: m = "Confirm",
14
- onSecondaryAction: e,
15
- secondaryColor: d = "primary",
16
- secondaryText: p = "Cancel",
17
- children: g,
18
- ...f
19
- }) => {
20
- const i = o?.title ?? "", D = o?.close_aria ?? "Close", b = () => {
21
- c?.(), a();
22
- }, h = () => {
23
- e && e(), a();
24
- };
25
- return /* @__PURE__ */ r("div", { className: `mx-cmn-dialog ${l}`, children: /* @__PURE__ */ u(
26
- y,
27
- {
28
- "aria-label": i,
29
- "aria-labelledby": void 0,
30
- onClose: a,
31
- open: n,
32
- slotProps: {
33
- paper: { "aria-label": i }
34
- },
35
- sx: {
36
- "& .MuiDialog-paperScrollPaper": {
37
- backgroundColor: "background.default"
38
- },
39
- height: "100%"
40
- },
41
- ...f,
42
- children: [
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
- /* @__PURE__ */ r(
46
- A,
47
- {
48
- isPrimaryDisabled: t,
49
- onPrimaryAction: b,
50
- onSecondaryAction: h,
51
- primaryColor: s,
52
- primaryText: m,
53
- secondaryColor: d,
54
- secondaryText: p
55
- }
56
- )
57
- ]
58
- }
59
- ) });
60
- };
61
- export {
62
- H as D
63
- };
@@ -1,55 +0,0 @@
1
- import { addMonths as _ } from "date-fns/addMonths";
2
- import { isBefore as u } from "date-fns/isBefore";
3
- import { startOfMonth as d } from "date-fns/startOfMonth";
4
- import { subMonths as y } from "date-fns/subMonths";
5
- import { endOfMonth as M } from "date-fns/endOfMonth";
6
- import { C as n, P as i } from "./Category-DEKZGLYe.mjs";
7
- import { f as T, D as m } from "./DateFormats-HudZ3Bjs.mjs";
8
- const g = (e) => (e.top_level_category_guid === n.INCOME || e.category_guid === n.INCOME) && !f(e), O = (e) => !g(e) && !p(e), N = (e) => i.includes(e.top_level_category_guid) || i.includes(e.category_guid), p = (e) => e.top_level_category_guid === n.TRANSFER || e.category_guid === n.TRANSFER, f = (e) => e.top_level_category_guid === n.INVESTMENTS || e.category_guid === n.INVESTMENTS, C = (e) => e.filter((o) => o.category_guid === o.top_level_category_guid), F = (e, o) => {
9
- if (o === 0) return 0;
10
- const a = (e - o) / o;
11
- return isNaN(a) ? 0 : a;
12
- }, c = (e, o) => {
13
- const a = [];
14
- let t = d(o?.start ?? y(/* @__PURE__ */ new Date(), 5));
15
- const s = o?.end ?? /* @__PURE__ */ new Date();
16
- for (; u(t, s); )
17
- a.push({
18
- x: T(t, m.MONTH_SHORT),
19
- y: e.filter((r) => r.year === t.getFullYear() && r.month === t.getMonth() + 1).reduce((r, l) => r + l.total, 0)
20
- }), t = _(t, 1);
21
- return a;
22
- }, w = (e, o) => {
23
- const a = e.filter(g);
24
- return c(a, o).map((t) => ({ ...t, y: Math.abs(t.y) }));
25
- }, A = (e, o) => {
26
- const a = e.filter(N);
27
- return c(a, o).map((t) => ({ ...t, y: Math.abs(t.y) }));
28
- }, b = (e, o) => {
29
- const a = e.filter(
30
- (t) => !g(t) && !p(t) && !f(t) && t.top_level_category_guid !== n.INCOME && t.top_level_category_guid !== n.TRANSFER && t.top_level_category_guid !== n.INVESTMENTS
31
- );
32
- return c(a, o);
33
- }, x = (e) => {
34
- const o = [], a = e.filter(
35
- (r) => r.top_level_category_guid !== n.INCOME && r.top_level_category_guid !== n.TRANSFER && r.total > 0
36
- );
37
- let t = d(y(/* @__PURE__ */ new Date(), 5));
38
- const s = M(/* @__PURE__ */ new Date());
39
- for (; u(t, s); )
40
- o.push({
41
- x: T(t, m.MONTH_SHORT),
42
- y: a.filter((r) => r.year === t.getFullYear() && r.month === t.getMonth() + 1).reduce((r, l) => r + l.total, 0)
43
- }), t = _(t, 1);
44
- return o;
45
- };
46
- export {
47
- A as a,
48
- b,
49
- C as c,
50
- O as d,
51
- x as e,
52
- F as f,
53
- w as g,
54
- g as i
55
- };