@mx-cartographer/experiences 7.0.23-alpha.al0 → 7.0.23-alpha.al10

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 (58) hide show
  1. package/dist/{Account-BW3-oYEs.mjs → Account-CVVDlNDC.mjs} +1 -1
  2. package/dist/{AccountDetailsContent-UxSEMBo_.mjs → AccountDetailsContent-bQKVSCZF.mjs} +8 -8
  3. package/dist/{AccountDetailsHeader-Eb3WvBGm.mjs → AccountDetailsHeader-BGQAu0Xm.mjs} +8 -8
  4. package/dist/{AccountFields-CIz-r3gP.mjs → AccountFields-CC7kzfPK.mjs} +2 -2
  5. package/dist/{AccountListItem-B-ZjJ4Gp.mjs → AccountListItem-wgvQjLxW.mjs} +3 -3
  6. package/dist/{AccountStore-BaMynkQT.mjs → AccountStore-DpglOysH.mjs} +19 -19
  7. package/dist/{Accounts-CA-nqAjT.mjs → Accounts-ByViymVi.mjs} +1 -1
  8. package/dist/{BudgetUtil-CeSLAcsl.mjs → BudgetUtil-gzgNEDE7.mjs} +1 -1
  9. package/dist/{CategorySelectorDrawer-BJ9jlCyt.mjs → CategorySelectorDrawer-LpZcwQPa.mjs} +4 -4
  10. package/dist/{ConnectDrawer-phFH6OHt.mjs → ConnectDrawer-C2minBK_.mjs} +1 -1
  11. package/dist/{ConnectionsDrawer-ihxkAi1P.mjs → ConnectionsDrawer-Cd4dZuWL.mjs} +2 -2
  12. package/dist/{CurrencyInput-bEx2Mbd0.mjs → CurrencyInput-Dz4r9Rfe.mjs} +1 -1
  13. package/dist/{DebtsStore-VkyMADzd.mjs → DebtsStore-B51DTXVj.mjs} +1 -1
  14. package/dist/{GoalStore-eSOkI6uE.mjs → GoalStore-DqQ2FMx5.mjs} +2 -2
  15. package/dist/{Help-KAAMEubC.mjs → Help-DVPbIxMM.mjs} +1 -1
  16. package/dist/{LineChart-BWWmmJxV.mjs → LineChart-DLk-bww5.mjs} +1 -1
  17. package/dist/{ListItemAction-DNZZ5fSa.mjs → ListItemAction-DE6S0N5o.mjs} +1 -1
  18. package/dist/{ManageIncome-DbsiKUoO.mjs → ManageIncome-BokhnWOn.mjs} +4 -4
  19. package/dist/{MicroWidgetContainer-Dxz8uBN9.mjs → MicroWidgetContainer-5YscP1xa.mjs} +1 -1
  20. package/dist/{MiniWidgetContainer-CTyjmE1h.mjs → MiniWidgetContainer-BlsgwNew.mjs} +1 -1
  21. package/dist/{NetWorthStore-B6xF9eGH.mjs → NetWorthStore-C0hQSRzt.mjs} +2 -2
  22. package/dist/{NotificationSettings-BJFyyZYE.mjs → NotificationSettings-CWx6H-2z.mjs} +2 -2
  23. package/dist/{OriginalBalanceAction-DepsKiJz.mjs → OriginalBalanceAction-BKsSQVnI.mjs} +3 -3
  24. package/dist/{RecurringSettings-Dj29piAQ.mjs → RecurringSettings-CICRt51C.mjs} +3 -3
  25. package/dist/{TransactionDetails-C-z3HGTT.mjs → TransactionDetails-BXl0m15s.mjs} +37 -37
  26. package/dist/{TransactionStore-0tLtBEIC.mjs → TransactionStore-BElBVYfk.mjs} +248 -209
  27. package/dist/TrendsStore-DRuzsVVE.mjs +505 -0
  28. package/dist/TrendsWidget-CRi8EO04.mjs +6 -0
  29. package/dist/{User-Dq9Qj764.mjs → User-DtwqVm3K.mjs} +1 -1
  30. package/dist/{WidgetContainer-CdBs9WOZ.mjs → WidgetContainer-DK8aZO5l.mjs} +2 -2
  31. package/dist/accounts/index.es.js +12 -12
  32. package/dist/analytics/index.es.js +8 -8
  33. package/dist/budgets/index.es.js +10 -10
  34. package/dist/cashflow/index.es.js +7 -7
  35. package/dist/categories/index.es.js +1 -1
  36. package/dist/common/index.es.js +577 -518
  37. package/dist/dashboard/index.es.js +9 -9
  38. package/dist/debts/index.es.js +9 -9
  39. package/dist/{exportTransactionsToCSV-BDlt8u0n.mjs → exportTransactionsToCSV-Cf5VRYVr.mjs} +1 -1
  40. package/dist/finstrong/index.es.js +6 -6
  41. package/dist/goals/index.es.js +11 -11
  42. package/dist/help/index.es.js +3 -3
  43. package/dist/{hooks-DkUqN6JE.mjs → hooks-DUeXom8C.mjs} +13 -13
  44. package/dist/investments/index.es.js +3 -3
  45. package/dist/merchants/index.es.js +1 -1
  46. package/dist/microinsights/index.es.js +1969 -14
  47. package/dist/networth/index.es.js +7 -7
  48. package/dist/notifications/index.es.js +2 -2
  49. package/dist/recurringtransactions/index.es.js +8 -8
  50. package/dist/settings/index.es.js +24 -24
  51. package/dist/spending/index.es.js +21 -21
  52. package/dist/transactions/index.es.js +270 -259
  53. package/dist/trends/index.es.js +407 -780
  54. package/package.json +1 -1
  55. package/dist/ExportCsvAction-CbMfQ2Wa.mjs +0 -24
  56. package/dist/ResponsiveButton-DZFp78fJ.mjs +0 -45
  57. package/dist/TrendsStore-WrHxzdbQ.mjs +0 -565
  58. package/dist/ViewMoreMicroCard-DFAY0tA8.mjs +0 -1974
@@ -3,9 +3,9 @@ import { fromUnixTime as Se } from "date-fns/fromUnixTime";
3
3
  import { observer as w } from "mobx-react-lite";
4
4
  import { useTheme as z } from "@mui/material/styles";
5
5
  import { u as Z } from "../useScreenSize-B6JyS_Lj.mjs";
6
- import { p as _e, u as T, c as J, e as Q, a as P, q as ee } from "../hooks-DkUqN6JE.mjs";
6
+ import { p as _e, u as T, c as J, g as Q, a as P, q as ee } from "../hooks-DUeXom8C.mjs";
7
7
  import { f as we, D as be } from "../Dialog-CWW597AF.mjs";
8
- import { L as We } from "../LineChart-BWWmmJxV.mjs";
8
+ import { L as We } from "../LineChart-DLk-bww5.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";
@@ -19,15 +19,15 @@ import { i as ne } from "../DateUtil-BcuH7ErC.mjs";
19
19
  import { C as y } from "../CurrencyText-YUhH2caW.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
- import { g as K } from "../NetWorthStore-B6xF9eGH.mjs";
23
- import { N as Ot } from "../NetWorthStore-B6xF9eGH.mjs";
22
+ import { g as K } from "../NetWorthStore-C0hQSRzt.mjs";
23
+ import { N as Ot } from "../NetWorthStore-C0hQSRzt.mjs";
24
24
  import { Icon as oe } from "@mxenabled/mx-icons";
25
25
  import { f as U } from "../NumberFormatting-CtWHhyBX.mjs";
26
- import { A as b, W as ke } from "../WidgetContainer-CdBs9WOZ.mjs";
26
+ import { A as b, W as ke } from "../WidgetContainer-DK8aZO5l.mjs";
27
27
  import { L as O } from "../Loader-DUaFpDGv.mjs";
28
- import { M as Ae } from "../MicroWidgetContainer-Dxz8uBN9.mjs";
28
+ import { M as Ae } from "../MicroWidgetContainer-5YscP1xa.mjs";
29
29
  import re from "@mui/material/Box";
30
- import { C as Me } from "../ConnectionsDrawer-ihxkAi1P.mjs";
30
+ import { C as Me } from "../ConnectionsDrawer-Cd4dZuWL.mjs";
31
31
  import He from "@mui/material/Collapse";
32
32
  import V from "@mui/material/ListItemIcon";
33
33
  import ie from "@mui/material/styles/useTheme";
@@ -11,13 +11,13 @@ import B from "@mui/material/List";
11
11
  import { Text as m, InstitutionLogo as T, CategoryIcon as R } from "@mxenabled/mxui";
12
12
  import { h as I } from "../DateUtil-BcuH7ErC.mjs";
13
13
  import { useTheme as O, Card as G } from "@mui/material";
14
- import { c as E, g as j, u as g, n as N, a as S, m as z } from "../hooks-DkUqN6JE.mjs";
14
+ import { c as E, e as j, u as g, m as N, a as S, l as z } from "../hooks-DUeXom8C.mjs";
15
15
  import { Icon as U, Settings as F } from "@mxenabled/mx-icons";
16
16
  import P from "@mui/material/Button";
17
17
  import W from "@mui/material/Stack";
18
18
  import { L as w } from "../Loader-DUaFpDGv.mjs";
19
19
  import $ from "@mui/material/IconButton";
20
- import { N as H } from "../NotificationSettings-BJFyyZYE.mjs";
20
+ import { N as H } from "../NotificationSettings-CWx6H-2z.mjs";
21
21
  import { D as b } from "../Drawer-kEE73B87.mjs";
22
22
  const yt = (e) => {
23
23
  switch (e) {
@@ -8,8 +8,8 @@ import { startOfToday as le } from "date-fns/startOfToday";
8
8
  import { subDays as de } from "date-fns/subDays";
9
9
  import re from "@mui/material/Skeleton";
10
10
  import c from "@mui/material/Stack";
11
- import { R as He } from "../RecurringSettings-Dj29piAQ.mjs";
12
- import { M as An } from "../RecurringSettings-Dj29piAQ.mjs";
11
+ import { R as He } from "../RecurringSettings-CICRt51C.mjs";
12
+ import { M as An } from "../RecurringSettings-CICRt51C.mjs";
13
13
  import { addMonths as ze } from "date-fns/addMonths";
14
14
  import { subMonths as Be } from "date-fns/subMonths";
15
15
  import { isBefore as Ue } from "date-fns/isBefore";
@@ -28,11 +28,11 @@ import { isSameDay as tt } from "date-fns/isSameDay";
28
28
  import nt from "@mui/material/Badge";
29
29
  import { PickersDay as it } from "@mui/x-date-pickers/PickersDay";
30
30
  import { I as Y } from "../IconBacking-B9oC6uL2.mjs";
31
- import { u as D, a as V, h as v, e as X, c as pe, f as ge, p as rt } from "../hooks-DkUqN6JE.mjs";
31
+ import { u as D, a as V, f as v, g as X, c as pe, n as ge, p as rt } from "../hooks-DUeXom8C.mjs";
32
32
  import { c as M, a as R, g as De, f as ot } from "../RepeatingTransaction-BW4J-jeJ.mjs";
33
33
  import { T as P } from "../RecurringTransactionsStore-D62XJtdL.mjs";
34
34
  import { R as Gn } from "../RecurringTransactionsStore-D62XJtdL.mjs";
35
- import { A as _, W as at } from "../WidgetContainer-CdBs9WOZ.mjs";
35
+ import { A as _, W as at } from "../WidgetContainer-DK8aZO5l.mjs";
36
36
  import st from "@mui/material/Button";
37
37
  import se from "@mui/material/Divider";
38
38
  import Se from "@mui/material/List";
@@ -41,8 +41,8 @@ import ct from "@mui/material/ListSubheader";
41
41
  import lt from "@mui/material/ListItemAvatar";
42
42
  import dt from "@mui/material/ListItemButton";
43
43
  import ut from "@mui/material/ListItemText";
44
- import { b as mt } from "../ManageIncome-DbsiKUoO.mjs";
45
- import { c as On, M as kn, S as Wn } from "../ManageIncome-DbsiKUoO.mjs";
44
+ import { b as mt } from "../ManageIncome-BokhnWOn.mjs";
45
+ import { c as On, M as kn, S as Wn } from "../ManageIncome-BokhnWOn.mjs";
46
46
  import { f as L } from "../NumberFormatting-CtWHhyBX.mjs";
47
47
  import { D as Ae } from "../Drawer-kEE73B87.mjs";
48
48
  import { b as N } from "../Localization-2MODESHW.mjs";
@@ -51,9 +51,9 @@ import O from "@mui/material/Box";
51
51
  import { S as Ee } from "../StatusBar-BK_uYHAB.mjs";
52
52
  import { u as Ge } from "../useScreenSize-B6JyS_Lj.mjs";
53
53
  import { L as j } from "../Loader-DUaFpDGv.mjs";
54
- import { M as pt } from "../MiniWidgetContainer-CTyjmE1h.mjs";
54
+ import { M as pt } from "../MiniWidgetContainer-BlsgwNew.mjs";
55
55
  import { u as gt } from "../useDimensions-27p2evRx.mjs";
56
- import { M as ht } from "../MicroWidgetContainer-Dxz8uBN9.mjs";
56
+ import { M as ht } from "../MicroWidgetContainer-5YscP1xa.mjs";
57
57
  const Z = {
58
58
  gridRow: 1,
59
59
  gridColumn: 1,
@@ -16,9 +16,9 @@ import F from "@mui/material/Box";
16
16
  import Q from "@mui/material/Button";
17
17
  import I from "@mui/material/TextField";
18
18
  import { H3 as J, P as H, Text as x, Icon as M, ChevronRightIcon as xe } from "@mxenabled/mxui";
19
- import { V as ve, a as Ce, N as G } from "../NotificationSettings-BJFyyZYE.mjs";
20
- import { A as Yt, B as qt, I as Qt } from "../NotificationSettings-BJFyyZYE.mjs";
21
- import { u as k, m as $, r as A, o as De, a as Z, k as ee } from "../hooks-DkUqN6JE.mjs";
19
+ import { V as ve, a as Ce, N as z } from "../NotificationSettings-CWx6H-2z.mjs";
20
+ import { A as Yt, B as qt, I as Qt } from "../NotificationSettings-CWx6H-2z.mjs";
21
+ import { u as k, l as $, r as A, o as De, a as Z, j as ee } from "../hooks-DUeXom8C.mjs";
22
22
  import { u as L } from "../useScreenSize-B6JyS_Lj.mjs";
23
23
  import { a as W } from "../Dialog-CWW597AF.mjs";
24
24
  import { formatDistanceToNow as te } from "date-fns/formatDistanceToNow";
@@ -33,16 +33,16 @@ import we from "@mui/material/AccordionDetails";
33
33
  import Te from "@mui/material/AccordionSummary";
34
34
  import { L as ne } from "../Loader-DUaFpDGv.mjs";
35
35
  import Ie from "@mui/material/List";
36
- import j from "@mui/material/Divider";
36
+ import G from "@mui/material/Divider";
37
37
  import Ae from "@mui/material/ListSubheader";
38
- import { a as Ee, u as Pe } from "../CategorySelectorDrawer-BJ9jlCyt.mjs";
38
+ import { a as Ee, u as Pe } from "../CategorySelectorDrawer-LpZcwQPa.mjs";
39
39
  import Re from "@mui/material/ListItem";
40
40
  import Be from "@mui/material/ListItemButton";
41
41
  import Me from "@mui/material/ListItemIcon";
42
42
  import Ne from "@mui/material/ListItemText";
43
43
  import { D as He } from "../Drawer-kEE73B87.mjs";
44
- import { H as Le } from "../Help-KAAMEubC.mjs";
45
- import { W as K } from "../WidgetContainer-CdBs9WOZ.mjs";
44
+ import { H as Le } from "../Help-DVPbIxMM.mjs";
45
+ import { W as K } from "../WidgetContainer-DK8aZO5l.mjs";
46
46
  const Oe = ({ availableWidth: t, handleOnLeavClick: a }) => {
47
47
  const o = ye(), { common: n, settings: r } = k(), { isDesktop: m, isMobile: l, isSmallMobile: i, isTablet: s } = L(t), { config: g } = $(), { updateUser: _ } = A(), { user: d } = De(), [u, S] = h.useState({
48
48
  first_name: d.first_name,
@@ -52,7 +52,7 @@ const Oe = ({ availableWidth: t, handleOnLeavClick: a }) => {
52
52
  birthday: d.birthday,
53
53
  postal_code: d.postal_code,
54
54
  credit_score: d.credit_score
55
- }), [v, w] = h.useState(!1), [C, T] = h.useState(!1), y = h.useRef(null), z = u.email && !d.email_is_verified && !v, Y = u.phone && !d.phone_is_verified && !v;
55
+ }), [v, w] = h.useState(!1), [C, T] = h.useState(!1), y = h.useRef(null), j = u.email && !d.email_is_verified && !v, Y = u.phone && !d.phone_is_verified && !v;
56
56
  h.useEffect(() => {
57
57
  if (a) {
58
58
  const f = (R) => {
@@ -125,7 +125,7 @@ const Oe = ({ availableWidth: t, handleOnLeavClick: a }) => {
125
125
  }
126
126
  ),
127
127
  /* @__PURE__ */ c(p, { direction: l ? "column" : "row", children: [
128
- g.display_email_edit_field_in_settings && /* @__PURE__ */ c(p, { sx: { mb: z ? 20 : 44, mr: l ? 0 : 24 }, children: [
128
+ g.display_email_edit_field_in_settings && /* @__PURE__ */ c(p, { sx: { mb: j ? 20 : 44, mr: l ? 0 : 24 }, children: [
129
129
  /* @__PURE__ */ e(
130
130
  I,
131
131
  {
@@ -134,7 +134,7 @@ const Oe = ({ availableWidth: t, handleOnLeavClick: a }) => {
134
134
  onChange: (f) => E({ email: f.target.value })
135
135
  }
136
136
  ),
137
- z && /* @__PURE__ */ e(ve, {})
137
+ j && /* @__PURE__ */ e(ve, {})
138
138
  ] }),
139
139
  g.display_sms_edit_field_in_settings && /* @__PURE__ */ c(p, { sx: { mb: Y ? 20 : 44 }, children: [
140
140
  /* @__PURE__ */ e(
@@ -555,7 +555,7 @@ const Fe = ({
555
555
  ]
556
556
  }
557
557
  );
558
- }, We = D($e), ze = D(() => {
558
+ }, We = D($e), je = D(() => {
559
559
  const { isMobile: t } = L(), { settings: a } = k(), { isCopyLoaded: o, isInitialized: n } = Z(), { setAlert: r, devices: m, loadDevices: l, generateDeviceToken: i } = A(), [s, g] = h.useState({ open: !1, type: "" }), [_, d] = h.useState(), [u, S] = h.useState("");
560
560
  h.useEffect(() => {
561
561
  n && l();
@@ -616,7 +616,7 @@ const Fe = ({
616
616
  ]
617
617
  }
618
618
  );
619
- }), Ge = ze, X = D(
619
+ }), ze = je, X = D(
620
620
  ({ onClick: t, primaryText: a, secondaryText: o, sx: n }) => {
621
621
  const r = P();
622
622
  return /* @__PURE__ */ e(Re, { sx: { bgcolor: r.palette.background.paper }, children: /* @__PURE__ */ c(Be, { alignItems: "flex-start", onClick: t, sx: n, children: [
@@ -624,7 +624,7 @@ const Fe = ({
624
624
  /* @__PURE__ */ e(Me, { children: /* @__PURE__ */ e(xe, {}) })
625
625
  ] }) });
626
626
  }
627
- ), je = D(() => {
627
+ ), Ge = D(() => {
628
628
  const { settings: t } = k(), { categories: a } = ee(), { selectedRule: o, updateRuleCategory: n } = A(), [r, m] = h.useState(!1), l = () => {
629
629
  m(!1);
630
630
  }, i = () => {
@@ -737,9 +737,9 @@ const Fe = ({
737
737
  children: [
738
738
  /* @__PURE__ */ e(Ae, { children: /* @__PURE__ */ e(x, { bold: !0, variant: "XSmall", children: r.details }) }),
739
739
  /* @__PURE__ */ e(Je, {}),
740
- /* @__PURE__ */ e(j, { sx: { ml: 24 } }),
741
- /* @__PURE__ */ e(je, {}),
742
- /* @__PURE__ */ e(j, { sx: { ml: 24 } }),
740
+ /* @__PURE__ */ e(G, { sx: { ml: 24 } }),
741
+ /* @__PURE__ */ e(Ge, {}),
742
+ /* @__PURE__ */ e(G, { sx: { ml: 24 } }),
743
743
  /* @__PURE__ */ e(
744
744
  Ke,
745
745
  {
@@ -769,7 +769,7 @@ const Fe = ({
769
769
  secondaryText: t.category_guid ? u(t.category_guid) : ""
770
770
  }
771
771
  ),
772
- /* @__PURE__ */ e(j, { sx: { ml: l || m ? 0 : 24 } }),
772
+ /* @__PURE__ */ e(G, { sx: { ml: l || m ? 0 : 24 } }),
773
773
  /* @__PURE__ */ e(Xe, { isOpen: i, onClose: g, onDelete: _ })
774
774
  ] });
775
775
  }), qe = D(() => {
@@ -789,8 +789,8 @@ const Fe = ({
789
789
  } = $();
790
790
  return /* @__PURE__ */ c(q, { children: [
791
791
  t === B.Profile && /* @__PURE__ */ e(Ue, {}),
792
- t === B.Devices && /* @__PURE__ */ e(Ge, {}),
793
- t === B.Notifications && /* @__PURE__ */ e(G, { showPersonalDetails: !n }),
792
+ t === B.Devices && /* @__PURE__ */ e(ze, {}),
793
+ t === B.Notifications && /* @__PURE__ */ e(z, { showPersonalDetails: !n }),
794
794
  t === B.TransactionRules && /* @__PURE__ */ e(re, {}),
795
795
  t === B.Help && /* @__PURE__ */ e(p, { sx: { px: 24 }, children: /* @__PURE__ */ e(Le, {}) }),
796
796
  /* @__PURE__ */ e(
@@ -856,17 +856,17 @@ const $t = D(({ onBackClick: t, sx: a }) => {
856
856
  );
857
857
  }), Wt = D((t) => {
858
858
  const { clientConfig: a } = $(), o = a?.master?.deep_link_params?.view;
859
- return o ? /* @__PURE__ */ e(G, { view: o }) : /* @__PURE__ */ e(K, { ...t, children: /* @__PURE__ */ e(p, { my: 24, children: /* @__PURE__ */ e(G, {}) }) });
860
- }), zt = (t) => {
859
+ return o ? /* @__PURE__ */ e(z, { view: o }) : /* @__PURE__ */ e(K, { ...t, children: /* @__PURE__ */ e(p, { my: 24, children: /* @__PURE__ */ e(z, {}) }) });
860
+ }), jt = (t) => {
861
861
  const { isMobile: a } = L();
862
862
  return /* @__PURE__ */ e(K, { ...t, children: /* @__PURE__ */ e(p, { sx: { mx: a ? 0 : 48, my: 24 }, children: /* @__PURE__ */ e(re, {}) }) });
863
863
  };
864
864
  export {
865
865
  Yt as AccountNotificationProfiles,
866
866
  qt as BudgetNotificationProfiles,
867
- Ge as DeviceTab,
867
+ ze as DeviceTab,
868
868
  Qt as InsightsNotificationProfiles,
869
- G as NotificationSettings,
869
+ z as NotificationSettings,
870
870
  Wt as NotificationSettingsWidget,
871
871
  Ue as ProfileTab,
872
872
  Jt as SettingsApi,
@@ -875,5 +875,5 @@ export {
875
875
  $t as SettingsWidget,
876
876
  Qe as SettingsWidgetContents,
877
877
  re as TransactionRulesTab,
878
- zt as TransactionRulesWidget
878
+ jt as TransactionRulesWidget
879
879
  };
@@ -14,21 +14,21 @@ import { Text as f, CategoryIcon as ht, CategoryIconVariants as ft } from "@mxen
14
14
  import { f as A } from "../NumberFormatting-CtWHhyBX.mjs";
15
15
  import yt from "@mui/material/Button";
16
16
  import { useTheme as it } from "@mui/material";
17
- import { u as w, a as R, k as z, c as rt, m as st, f as Ct, e as _t } from "../hooks-DkUqN6JE.mjs";
17
+ import { u as w, a as R, j as z, c as rt, l as st, n as Ct, g as _t } from "../hooks-DUeXom8C.mjs";
18
18
  import { u as ct } from "../useScreenSize-B6JyS_Lj.mjs";
19
19
  import { D as bt } from "../Donut-1UMNcG67.mjs";
20
20
  import { L as F } from "../Loader-DUaFpDGv.mjs";
21
- import { M as St } from "../MiniWidgetContainer-CTyjmE1h.mjs";
21
+ import { M as St } from "../MiniWidgetContainer-BlsgwNew.mjs";
22
22
  import { startOfToday as U } from "date-fns/startOfToday";
23
- import { T as Tt, a as Mt } from "../TransactionDetails-C-z3HGTT.mjs";
23
+ import { T as Tt, a as Mt } from "../TransactionDetails-BXl0m15s.mjs";
24
24
  import Dt from "@mui/material/Collapse";
25
- import B from "@mui/material/Divider";
25
+ import j from "@mui/material/Divider";
26
26
  import q from "@mui/material/List";
27
27
  import J from "@mui/material/ListItem";
28
28
  import xt from "@mui/material/ListItemButton";
29
29
  import { D as Q } from "../Drawer-kEE73B87.mjs";
30
- import { A as Z, W as wt } from "../WidgetContainer-CdBs9WOZ.mjs";
31
- const j = 5, vt = (n, l, r) => r.reduce((i, c) => {
30
+ import { A as Z, W as wt } from "../WidgetContainer-DK8aZO5l.mjs";
31
+ const B = 5, vt = (n, l, r) => r.reduce((i, c) => {
32
32
  if (c.total > 0) {
33
33
  const a = n.find((s) => s.guid === c.category_guid);
34
34
  if (!a) return i;
@@ -55,14 +55,14 @@ const j = 5, vt = (n, l, r) => r.reduce((i, c) => {
55
55
  ).sort((s, g) => g.amount - s.amount), o = a.reduce(
56
56
  (s, g) => s + g.amount,
57
57
  0
58
- ), e = a.length > j ? j : a.length, d = a.slice(0, e), u = d.map((s) => ({
58
+ ), e = a.length > B ? B : a.length, d = a.slice(0, e), u = d.map((s) => ({
59
59
  id: s.guid,
60
60
  color: V(s.guid, r),
61
61
  label: s.name,
62
62
  value: s.amount / o * 100
63
63
  }));
64
64
  if (a.length > 5) {
65
- const s = a.slice(j, c.length), g = s.reduce(
65
+ const s = a.slice(B, c.length), g = s.reduce(
66
66
  (S, _) => S + _.amount,
67
67
  0
68
68
  );
@@ -299,7 +299,7 @@ const j = 5, vt = (n, l, r) => r.reduce((i, c) => {
299
299
  const { spending: c } = w(), a = n.categoryData.find((o) => o.guid === r);
300
300
  return /* @__PURE__ */ m(C, { direction: "column", justifyContent: "center", maxWidth: 400, minWidth: 275, width: "100%", children: [
301
301
  /* @__PURE__ */ t(f, { bold: !0, sx: { py: 12 }, children: `${i} ${c.by_category}` }),
302
- /* @__PURE__ */ t(B, { "aria-hidden": "true" }),
302
+ /* @__PURE__ */ t(j, { "aria-hidden": "true" }),
303
303
  /* @__PURE__ */ t(q, { children: n.categoryData.map((o) => /* @__PURE__ */ m(p.Fragment, { children: [
304
304
  /* @__PURE__ */ t(
305
305
  J,
@@ -344,7 +344,7 @@ const j = 5, vt = (n, l, r) => r.reduce((i, c) => {
344
344
  )
345
345
  }
346
346
  ),
347
- /* @__PURE__ */ t(B, {}),
347
+ /* @__PURE__ */ t(j, {}),
348
348
  o.categoryTotals && o.categoryTotals.length > 0 && /* @__PURE__ */ t(Dt, { in: a?.guid === o.guid, unmountOnExit: !0, children: /* @__PURE__ */ m(q, { children: [
349
349
  a?.categoryTotals?.map((e) => /* @__PURE__ */ t(
350
350
  J,
@@ -364,7 +364,7 @@ const j = 5, vt = (n, l, r) => r.reduce((i, c) => {
364
364
  },
365
365
  e.guid
366
366
  )),
367
- /* @__PURE__ */ t(B, {})
367
+ /* @__PURE__ */ t(j, {})
368
368
  ] }) })
369
369
  ] }, o.guid)) }),
370
370
  /* @__PURE__ */ t(f, { bold: !0, sx: { mt: 12, pr: 8, textAlign: "right" }, children: `${c.total}: ${A(n.totalAmount, "0,0")}` })
@@ -426,7 +426,7 @@ const j = 5, vt = (n, l, r) => r.reduce((i, c) => {
426
426
  n.palette.chartMono.chartMono2,
427
427
  n.palette.chartMono.chartMono1,
428
428
  n.palette.chartMono.chartMono6
429
- ], kt = () => {
429
+ ], Gt = () => {
430
430
  const n = it(), { clientConfig: l } = st(), { categories: r, dateRangeCategoryTotals: i, loadDateRangeCategoryTotals: c } = z(), { goals: a, spending: o } = w(), { displayedDateRange: e, selectedAccounts: d, selectedAccountGuids: u } = R(), { setFilter: s, sortedTransactions: g } = Ct(), S = l?.master?.deep_link_params?.account_guids, _ = l?.master?.deep_link_params?.view, [y, v] = p.useState(""), [M, E] = p.useState(_ === "income" ? 1 : 0), [L, H] = p.useState(""), [gt, P] = p.useState(!1);
431
431
  p.useEffect(() => {
432
432
  c(
@@ -435,13 +435,13 @@ const j = 5, vt = (n, l, r) => r.reduce((i, c) => {
435
435
  e.end
436
436
  ).finally();
437
437
  }, [d, e]);
438
- const k = p.useMemo(
438
+ const G = p.useMemo(
439
439
  () => lt(r, a, n, i),
440
440
  [r, i]
441
441
  ), X = p.useMemo(
442
442
  () => dt(r, i, Rt(n)),
443
443
  [r, i]
444
- ), G = p.useMemo(
444
+ ), k = p.useMemo(
445
445
  () => g.find((h) => h.guid === L),
446
446
  [L, g]
447
447
  ), ut = (h, I) => {
@@ -455,7 +455,7 @@ const j = 5, vt = (n, l, r) => r.reduce((i, c) => {
455
455
  };
456
456
  if (M === 0)
457
457
  if (h === "other") {
458
- const T = k.categoryData.find(($) => $.guid === "other");
458
+ const T = G.categoryData.find(($) => $.guid === "other");
459
459
  s({
460
460
  ...I,
461
461
  custom: ($) => !!T?.categoryTotals?.find((pt) => pt.guid === $.top_level_category_guid)
@@ -481,7 +481,7 @@ const j = 5, vt = (n, l, r) => r.reduce((i, c) => {
481
481
  label: /* @__PURE__ */ t(
482
482
  W,
483
483
  {
484
- amount: k.totalAmount,
484
+ amount: G.totalAmount,
485
485
  label: o.spend_tab_title
486
486
  }
487
487
  )
@@ -503,7 +503,7 @@ const j = 5, vt = (n, l, r) => r.reduce((i, c) => {
503
503
  M === 0 && /* @__PURE__ */ t(
504
504
  et,
505
505
  {
506
- data: k,
506
+ data: G,
507
507
  onSelected: Y,
508
508
  onViewTransactions: K,
509
509
  selectedId: y,
@@ -534,14 +534,14 @@ const j = 5, vt = (n, l, r) => r.reduce((i, c) => {
534
534
  Q,
535
535
  {
536
536
  ariaLabelClose: o.close_drawer_aria,
537
- isOpen: !!G,
537
+ isOpen: !!k,
538
538
  onClose: () => H(""),
539
539
  title: o.transaction_details_drawer_title,
540
- children: G && /* @__PURE__ */ t(Mt, { transaction: G })
540
+ children: k && /* @__PURE__ */ t(Mt, { transaction: k })
541
541
  }
542
542
  )
543
543
  ] });
544
- }, Gt = x(kt), $t = ({ onBackClick: n, sx: l = {} }) => {
544
+ }, kt = x(Gt), $t = ({ onBackClick: n, sx: l = {} }) => {
545
545
  const { visibleAccounts: r } = rt(), { spending: i } = w(), { isCopyLoaded: c, isInitialized: a, setDisplayedDate: o, setSelectedAccounts: e } = R(), { onEvent: d } = _t(), { clientConfig: u } = st(), s = u?.master?.deep_link_params?.date_range, [g, S] = p.useState(!1);
546
546
  p.useEffect(() => {
547
547
  e(r);
@@ -560,7 +560,7 @@ const j = 5, vt = (n, l, r) => r.reduce((i, c) => {
560
560
  onBackClick: n,
561
561
  sx: l,
562
562
  title: i.title,
563
- children: /* @__PURE__ */ t(D, { height: "calc(100dvh - 150px)", overflow: "scroll", width: "100%", children: /* @__PURE__ */ t(Gt, {}) })
563
+ children: /* @__PURE__ */ t(D, { height: "calc(100dvh - 150px)", overflow: "scroll", width: "100%", children: /* @__PURE__ */ t(kt, {}) })
564
564
  }
565
565
  );
566
566
  }, fe = x($t);