@mx-cartographer/experiences 7.2.10 → 7.2.12-alpha-ram1-finstrong-testing

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/{Account-B-CuHOYf.mjs → Account-CBQnFO6w.mjs} +1 -1
  3. package/dist/{AccountDetailsContent-DfzPOeMI.mjs → AccountDetailsContent-BkurfGCr.mjs} +48 -44
  4. package/dist/{AccountDetailsHeader-vcy67tuH.mjs → AccountDetailsHeader-CaIoP_2Q.mjs} +8 -8
  5. package/dist/{AccountFields-cUP-9Hm6.mjs → AccountFields-CLbLAhLf.mjs} +5 -5
  6. package/dist/{AccountListItem-DChcf3SN.mjs → AccountListItem-CPm3572e.mjs} +4 -4
  7. package/dist/{AccountStore-D6KiXA1B.mjs → AccountStore-DttEGFeu.mjs} +40 -29
  8. package/dist/{Accounts-IeEtQjzA.mjs → Accounts-B5Yr0e_o.mjs} +1 -1
  9. package/dist/{BudgetUtil-B2ZXyw-g.mjs → BudgetUtil-wjoNuj7B.mjs} +1 -1
  10. package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-ZO9N26Kx.mjs} +3 -3
  11. package/dist/{CategoryStore-BCcpI3oJ.mjs → CategoryStore-C1IfDPCE.mjs} +1 -1
  12. package/dist/{CategoryUtil-BR3H5i6n.mjs → CategoryUtil-DUM8NuGO.mjs} +1 -1
  13. package/dist/{ConnectDrawer-DaFRU5st.mjs → ConnectDrawer-FyY0AWYQ.mjs} +2 -2
  14. package/dist/{ConnectionsDrawer-DHJ7qdWL.mjs → ConnectionsDrawer-Cd_rztVC.mjs} +3 -3
  15. package/dist/CurrencyInput-xH-hqry9.mjs +85 -0
  16. package/dist/{DateUtil-BcuH7ErC.mjs → DateUtil-CBdcsyuk.mjs} +3 -3
  17. package/dist/{DebtsStore-z3VARSO6.mjs → DebtsStore-DB5U2WMC.mjs} +1 -1
  18. package/dist/{Dialog-CWW597AF.mjs → Dialog-BPTr3qHE.mjs} +2 -2
  19. package/dist/Drawer-BEtCk82g.mjs +163 -0
  20. package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-DlGZfm4y.mjs} +3 -3
  21. package/dist/FinstrongStore-CJBV4K5Y.mjs +432 -0
  22. package/dist/{GoalStore-TD0BfzWX.mjs → GoalStore-deVLYr7n.mjs} +3 -3
  23. package/dist/{Help-B6dIcujh.mjs → Help-BnPXM_N2.mjs} +2 -2
  24. package/dist/{LineChart-D4GI7nVh.mjs → LineChart-Ct9DNmhS.mjs} +209 -181
  25. package/dist/{ListItemAction-DHa3KJPs.mjs → ListItemAction-uobBrm_a.mjs} +10 -10
  26. package/dist/{ManageIncome-D3n1EWxe.mjs → ManageIncome-CqNstpx_.mjs} +63 -61
  27. package/dist/{MicroWidgetContainer-DpeqN9n3.mjs → MicroWidgetContainer-DEiRnYVa.mjs} +1 -1
  28. package/dist/{MiniWidgetContainer-D0gfmbaF.mjs → MiniWidgetContainer-CmXpTylX.mjs} +1 -1
  29. package/dist/{NetWorthStore-B_1oulrt.mjs → NetWorthStore-CUz0bwVm.mjs} +2 -2
  30. package/dist/{NotificationSettings-BRm_EJZV.mjs → NotificationSettings-BKKuULAd.mjs} +5 -5
  31. package/dist/{OriginalBalanceAction-CAaVbVMO.mjs → OriginalBalanceAction-CCmnsd7y.mjs} +3 -3
  32. package/dist/{RecurringSettings-C28GrQcP.mjs → RecurringSettings-DfAMEAuh.mjs} +4 -4
  33. package/dist/{RecurringTransactions-ej39mgA6.mjs → RecurringTransactions-CngsRZ3K.mjs} +45 -44
  34. package/dist/{RecurringTransactionsStore-DrzS1LmF.mjs → RecurringTransactionsStore-C4RVULF8.mjs} +1 -1
  35. package/dist/{SpendingData-D5vsfYKo.mjs → SpendingData-BuJ03S9d.mjs} +16 -16
  36. package/dist/SpendingLegend-squvjEhu.mjs +170 -0
  37. package/dist/{TransactionDetails-BWffqew4.mjs → TransactionDetails-CabNHK_I.mjs} +12 -12
  38. package/dist/{TransactionStore-DxPLdF3B.mjs → TransactionStore-DvOEbOzL.mjs} +3 -3
  39. package/dist/{TrendsStore-DCYbpXPO.mjs → TrendsStore-BVNxGsE4.mjs} +14 -14
  40. package/dist/{User-BQUxBeZV.mjs → User-wXzDI4M8.mjs} +2 -2
  41. package/dist/{WidgetContainer-C88Ecu2W.mjs → WidgetContainer-GoNq8wwm.mjs} +4 -4
  42. package/dist/accounts/components/AccountsListCompact.d.ts +10 -0
  43. package/dist/accounts/index.es.js +14 -14
  44. package/dist/accounts/stores/AccountStore.d.ts +2 -0
  45. package/dist/analytics/index.es.js +2 -2
  46. package/dist/budgets/index.es.js +12 -12
  47. package/dist/cashflow/index.es.js +44 -44
  48. package/dist/categories/index.es.js +2 -2
  49. package/dist/common/components/Select.d.ts +4 -2
  50. package/dist/common/components/charts/LineChart.d.ts +8 -2
  51. package/dist/common/components/charts/linechart/CustomMark.d.ts +4 -0
  52. package/dist/common/components/drawer/Drawer.d.ts +3 -0
  53. package/dist/common/components/drawer/Footer.d.ts +17 -0
  54. package/dist/common/index.es.js +33 -33
  55. package/dist/common/types/Finstrong.d.ts +50 -0
  56. package/dist/common/types/index.d.ts +1 -1
  57. package/dist/common/types/localization/FinstrongCopy.d.ts +58 -1
  58. package/dist/dashboard/index.es.js +2 -2
  59. package/dist/debts/index.es.js +11 -11
  60. package/dist/{exportTransactionsToCSV-7bVS7KXf.mjs → exportTransactionsToCSV-hrNpJ77n.mjs} +2 -2
  61. package/dist/finstrong/api/FinstrongApi.d.ts +5 -0
  62. package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +3 -1
  63. package/dist/finstrong/components/CreditScore/CreditScoreContent.d.ts +4 -0
  64. package/dist/finstrong/components/CreditScore/CreditScoreHeader.d.ts +4 -0
  65. package/dist/finstrong/components/HaveManageableDebt/DebtPaymentTabContent.d.ts +3 -0
  66. package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtComponent.d.ts +3 -0
  67. package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtProgressBar.d.ts +4 -0
  68. package/dist/finstrong/components/HaveManageableDebt/IncomeTabContent.d.ts +3 -0
  69. package/dist/finstrong/components/KeyIndicatorsBorrowTab.d.ts +2 -2
  70. package/dist/finstrong/components/KeyIndicatorsDrawer.d.ts +4 -1
  71. package/dist/finstrong/components/KeyIndicatorsSaveTab.d.ts +2 -2
  72. package/dist/finstrong/components/KeyIndicatorsSpendTab.d.ts +2 -2
  73. package/dist/finstrong/components/KeyIndicatorsTabItem.d.ts +4 -3
  74. package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.d.ts +10 -0
  75. package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +2 -2
  76. package/dist/finstrong/components/MaintainingEmergencySavings/EstimatedContributionCalculator.d.ts +6 -0
  77. package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsContent.d.ts +4 -0
  78. package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsSticky.d.ts +4 -0
  79. package/dist/finstrong/components/ProgressBar.d.ts +15 -0
  80. package/dist/finstrong/components/SaveEnoughToLiveOn/AvailableTabContent.d.ts +3 -0
  81. package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnDrawerContent.d.ts +3 -0
  82. package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnProgressBar.d.ts +4 -0
  83. package/dist/finstrong/components/SaveEnoughToLiveOn/SpendingTabContent.d.ts +3 -0
  84. package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeComponent.d.ts +3 -0
  85. package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeProgressBar.d.ts +4 -0
  86. package/dist/finstrong/components/StatusChip.d.ts +5 -0
  87. package/dist/finstrong/components/onboarding/Onboarding.d.ts +2 -0
  88. package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +11 -0
  89. package/dist/finstrong/components/onboarding/OnboardingBirthday.d.ts +8 -0
  90. package/dist/finstrong/components/onboarding/OnboardingCreditScore.d.ts +8 -0
  91. package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +14 -0
  92. package/dist/finstrong/components/onboarding/OnboardingStepsHeader.d.ts +8 -0
  93. package/dist/finstrong/components/paybillsontime/PayBillsOnTimeDrawerComponent.d.ts +4 -0
  94. package/dist/finstrong/components/paybillsontime/PayBillsOnTimeStickyComponent.d.ts +4 -0
  95. package/dist/finstrong/components/shared/Accounts.d.ts +8 -0
  96. package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +25 -0
  97. package/dist/finstrong/components/shared/DoubleBarChart.d.ts +28 -0
  98. package/dist/finstrong/components/shared/LineGraph.d.ts +7 -0
  99. package/dist/finstrong/components/shared/TotalCard.d.ts +8 -0
  100. package/dist/finstrong/components/shared/TransactionList.d.ts +15 -0
  101. package/dist/finstrong/components/shared/Transactions.d.ts +11 -0
  102. package/dist/finstrong/constants/index.d.ts +8 -0
  103. package/dist/finstrong/index.es.js +3119 -1044
  104. package/dist/finstrong/stores/FinstrongStore.d.ts +9 -1
  105. package/dist/finstrong/util/finstrongUtils.d.ts +58 -1
  106. package/dist/goals/index.es.js +14 -14
  107. package/dist/help/index.es.js +3 -3
  108. package/dist/{hooks-D6XlXHf4.mjs → hooks-C41HAxM5.mjs} +3 -3
  109. package/dist/investments/index.es.js +4 -4
  110. package/dist/merchants/index.es.js +1 -1
  111. package/dist/networth/index.es.js +34 -34
  112. package/dist/notifications/index.es.js +4 -4
  113. package/dist/recurringtransactions/index.es.js +13 -13
  114. package/dist/settings/index.es.js +8 -8
  115. package/dist/spending/index.es.js +222 -373
  116. package/dist/transactions/index.es.js +103 -103
  117. package/dist/trends/index.es.js +94 -94
  118. package/dist/{useAccountDisplayName-BcRqfar8.mjs → useAccountDisplayName-B5O6hQ1B.mjs} +2 -2
  119. package/dist/{useInsightsEnabled-DBpwEq10.mjs → useInsightsEnabled-CNjP5cfR.mjs} +1 -1
  120. package/package.json +1 -1
  121. package/dist/CurrencyInput-CsCy7uaS.mjs +0 -83
  122. package/dist/Drawer-kEE73B87.mjs +0 -113
  123. package/dist/FinstrongStore-F2c607dj.mjs +0 -101
  124. package/dist/finstrong/utils/Finstrong.d.ts +0 -6
@@ -1,37 +1,37 @@
1
1
  import { jsx as e, jsxs as C, Fragment as Qe } from "react/jsx-runtime";
2
2
  import i from "react";
3
3
  import { observer as x } from "mobx-react-lite";
4
- import { Icon as ae, Text as Z, CategoryIcon as fe, P as U, H3 as xe, ChevronRightIcon as Je } from "@mxenabled/mxui";
4
+ import { Icon as re, Text as Z, CategoryIcon as fe, P as U, H3 as xe, ChevronRightIcon as Je } from "@mxenabled/mxui";
5
5
  import O from "@mui/material/Box";
6
6
  import b from "@mui/material/Stack";
7
7
  import me from "@mui/material/Button";
8
8
  import { addSeconds as ve } from "date-fns/addSeconds";
9
9
  import { differenceInCalendarMonths as pe } from "date-fns/differenceInCalendarMonths";
10
- import { a as et, g as tt, S as nt, L as Me } from "../TrendsStore-DCYbpXPO.mjs";
11
- import { T as Co } from "../TrendsStore-DCYbpXPO.mjs";
12
- import { i as ot, c as st, d as rt, e as at, f as it, h as ct, b as Ae, g as Re, j as De } from "../SpendingData-D5vsfYKo.mjs";
10
+ import { a as et, g as tt, S as nt, L as Me } from "../TrendsStore-BVNxGsE4.mjs";
11
+ import { T as Co } from "../TrendsStore-BVNxGsE4.mjs";
12
+ import { i as ot, c as st, d as at, e as rt, f as it, h as ct, b as Ae, g as Re, j as De } from "../SpendingData-BuJ03S9d.mjs";
13
13
  import lt from "@mui/material/ToggleButton";
14
14
  import dt from "@mui/material/ToggleButtonGroup";
15
- import { u as A, m as P, g as H, b as J, h as ie, d as ce, w as ee, f as Te, q as ht, n as ut, a as gt } from "../hooks-D6XlXHf4.mjs";
15
+ import { u as A, m as P, g as H, b as J, h as ie, d as ce, w as ee, f as Te, q as ht, n as ut, a as gt } from "../hooks-C41HAxM5.mjs";
16
16
  import { u as $ } from "../useScreenSize-B6JyS_Lj.mjs";
17
- import { f as q, D as z } from "../Dialog-CWW597AF.mjs";
17
+ import { f as q, a as z } from "../Dialog-BPTr3qHE.mjs";
18
18
  import { DataGridPro as mt } from "@mui/x-data-grid-pro";
19
19
  import { C as pt } from "../CurrencyText-kyC1aseI.mjs";
20
20
  import { b as Ct } from "../Localization-2MODESHW.mjs";
21
21
  import { H as Ie } from "../HeaderCell-DjuifqHJ.mjs";
22
22
  import { T as M, b as ft } from "../ViewMoreMicroCard-SCn2wt4i.mjs";
23
- import { A as _, W as ke } from "../WidgetContainer-C88Ecu2W.mjs";
23
+ import { A as _, W as ke } from "../WidgetContainer-GoNq8wwm.mjs";
24
24
  import { c as Tt } from "../Category-CevNQ03n.mjs";
25
- import { a as Ne, T as He } from "../TransactionDetails-BWffqew4.mjs";
26
- import { D as Ce } from "../Drawer-kEE73B87.mjs";
25
+ import { a as Ne, T as He } from "../TransactionDetails-CabNHK_I.mjs";
26
+ import { D as Ce } from "../Drawer-BEtCk82g.mjs";
27
27
  import { L as Q } from "../Loader-DUaFpDGv.mjs";
28
28
  import { useTheme as We } from "@mui/material/styles";
29
- import { L as ye } from "../LineChart-D4GI7nVh.mjs";
30
- import { M as yt } from "../MiniWidgetContainer-D0gfmbaF.mjs";
29
+ import { L as ye } from "../LineChart-Ct9DNmhS.mjs";
30
+ import { M as yt } from "../MiniWidgetContainer-CmXpTylX.mjs";
31
31
  import { subMonths as _t } from "date-fns";
32
32
  import { TrendingUp as bt, TrendingDown as St, MultilineChart as wt, ExpandLess as Dt, ExpandMore as It } from "@mxenabled/mx-icons";
33
33
  import { a as Et, f as X } from "../NumberFormatting-Buh7u8Oi.mjs";
34
- import { M as Lt } from "../MicroWidgetContainer-DpeqN9n3.mjs";
34
+ import { M as Lt } from "../MicroWidgetContainer-DEiRnYVa.mjs";
35
35
  import xt from "@mui/material/Collapse";
36
36
  import vt from "@mui/material/List";
37
37
  import Mt from "@mui/material/ListItem";
@@ -42,11 +42,11 @@ import Oe from "@mui/material/styles/useTheme";
42
42
  import Nt from "@mui/material/Divider";
43
43
  import { useTheme as Ht, Stack as Wt } from "@mui/material";
44
44
  import Ot from "@mui/material/Paper";
45
- import { b as Vt } from "../CategoryUtil-BR3H5i6n.mjs";
46
- import { E as Gt } from "../ExportCsvAction-sX8Rg4Ov.mjs";
47
- import { u as Bt } from "../useInsightsEnabled-DBpwEq10.mjs";
45
+ import { b as Vt } from "../CategoryUtil-DUM8NuGO.mjs";
46
+ import { E as Gt } from "../ExportCsvAction-DlGZfm4y.mjs";
47
+ import { u as Bt } from "../useInsightsEnabled-CNjP5cfR.mjs";
48
48
  import { E as zt } from "../EmptyState-DA_lfRBv.mjs";
49
- import { l as Pt } from "../ConnectDrawer-DaFRU5st.mjs";
49
+ import { l as Pt } from "../ConnectDrawer-FyY0AWYQ.mjs";
50
50
  const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
51
51
  dt,
52
52
  {
@@ -54,10 +54,10 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
54
54
  onChange: o,
55
55
  orientation: "horizontal",
56
56
  value: t,
57
- children: ["Chart", "Table"].map((n) => /* @__PURE__ */ e(lt, { color: "primary", sx: { width: 56 }, value: n, children: n === "Chart" ? /* @__PURE__ */ e(ae, { name: "table_chart_view" }) : /* @__PURE__ */ e(ae, { name: "format_list_bulleted" }) }, n))
57
+ children: ["Chart", "Table"].map((n) => /* @__PURE__ */ e(lt, { color: "primary", sx: { width: 56 }, value: n, children: n === "Chart" ? /* @__PURE__ */ e(re, { name: "table_chart_view" }) : /* @__PURE__ */ e(re, { name: "format_list_bulleted" }) }, n))
58
58
  }
59
59
  ), Ge = ({ selectedDateRange: t, selectedCategoryGuid: o }) => {
60
- const { trends: n } = A(), { isMobile: s, isDesktop: r } = $(), { getCategoryName: l } = P(), d = i.useMemo(() => {
60
+ const { trends: n } = A(), { isMobile: s, isDesktop: a } = $(), { getCategoryName: l } = P(), d = i.useMemo(() => {
61
61
  const h = q(
62
62
  t.start,
63
63
  s ? z.MONTH_SHORT_YEAR : z.MONTH_YEAR
@@ -78,27 +78,27 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
78
78
  overflow: "visible",
79
79
  textOverflow: "unset"
80
80
  },
81
- variant: r ? "H3" : "Body",
81
+ variant: a ? "H3" : "Body",
82
82
  children: l(o) || n.sub_title
83
83
  }
84
84
  ),
85
- /* @__PURE__ */ e(Z, { variant: r ? "Body" : "Small", children: d })
85
+ /* @__PURE__ */ e(Z, { variant: a ? "Body" : "Small", children: d })
86
86
  ] });
87
87
  }, Ft = (t) => {
88
88
  const o = t.row[t.field];
89
89
  return /* @__PURE__ */ e(b, { alignItems: "flex-end", tabIndex: t.tabIndex, children: /* @__PURE__ */ e(pt, { amount: o, variant: "Small" }) });
90
90
  }, Kt = ({ categoryGuid: t, topLevelCategoryGuid: o }) => {
91
- const { getCategoryName: n } = P(), { categories: s } = A(), r = s.default_categories[t]?.replace(/&/g, "&") ?? n(t);
91
+ const { getCategoryName: n } = P(), { categories: s } = A(), a = s.default_categories[t]?.replace(/&/g, "&") ?? n(t);
92
92
  return /* @__PURE__ */ C(b, { alignItems: "center", direction: "row", justifyContent: "center", children: [
93
93
  /* @__PURE__ */ e(
94
94
  O,
95
95
  {
96
- "aria-label": Ct(s.category_icon_label_aria, r),
96
+ "aria-label": Ct(s.category_icon_label_aria, a),
97
97
  role: "img",
98
98
  children: /* @__PURE__ */ e(fe, { categoryGuid: o })
99
99
  }
100
100
  ),
101
- /* @__PURE__ */ e(Z, { sx: { ml: 12, pb: 6 }, variant: "Small", children: r })
101
+ /* @__PURE__ */ e(Z, { sx: { ml: 12, pb: 6 }, variant: "Small", children: a })
102
102
  ] });
103
103
  }, $t = (t) => /* @__PURE__ */ e(b, { alignItems: "center", direction: "row", height: "100%", width: "100%", children: /* @__PURE__ */ e(
104
104
  Kt,
@@ -109,8 +109,8 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
109
109
  ) }), jt = (t, o) => {
110
110
  const n = [], s = new Date(t);
111
111
  for (; s <= o; ) {
112
- const r = q(s, z.MONTH);
113
- n.push(r), s.setMonth(s.getMonth() + 1);
112
+ const a = q(s, z.MONTH);
113
+ n.push(a), s.setMonth(s.getMonth() + 1);
114
114
  }
115
115
  return n;
116
116
  }, Be = ({
@@ -118,7 +118,7 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
118
118
  selectedDateRange: o,
119
119
  selectedCategory: n,
120
120
  onClickRow: s,
121
- height: r = "100dvh",
121
+ height: a = "100dvh",
122
122
  sx: l = {}
123
123
  }) => {
124
124
  const { onEvent: d } = H(), h = q(/* @__PURE__ */ new Date(), z.MONTH_SHORT), [c, u] = i.useState([
@@ -171,7 +171,7 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
171
171
  );
172
172
  return Object.values(y);
173
173
  }, [t, n]);
174
- return /* @__PURE__ */ e(O, { sx: { height: r, width: "100%", overflowX: "auto", boxShadow: "none", ...l }, children: /* @__PURE__ */ e(
174
+ return /* @__PURE__ */ e(O, { sx: { height: a, width: "100%", overflowX: "auto", boxShadow: "none", ...l }, children: /* @__PURE__ */ e(
175
175
  mt,
176
176
  {
177
177
  columns: g,
@@ -202,7 +202,7 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
202
202
  isOpen: n,
203
203
  onClose: s
204
204
  }) => {
205
- const { onEvent: r } = H(), { selectedAccountGuids: l } = J(), { common: d } = A(), { setFilter: h, sortedTransactions: c } = ie(), [u, f] = i.useState(""), g = i.useMemo(
205
+ const { onEvent: a } = H(), { selectedAccountGuids: l } = J(), { common: d } = A(), { setFilter: h, sortedTransactions: c } = ie(), [u, f] = i.useState(""), g = i.useMemo(
206
206
  () => c.find((m) => m.guid === u),
207
207
  [u, c]
208
208
  );
@@ -213,7 +213,7 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
213
213
  custom: (m) => t === "" || t === m.category_guid || t === m.top_level_category_guid,
214
214
  showSplits: !!t
215
215
  });
216
- }, [l, t, o]), i.useEffect(() => r(_.TRENDS_VIEW_TRANSACTIONS), []);
216
+ }, [l, t, o]), i.useEffect(() => a(_.TRENDS_VIEW_TRANSACTIONS), []);
217
217
  const T = () => {
218
218
  f(""), s();
219
219
  };
@@ -231,21 +231,21 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
231
231
  }
232
232
  );
233
233
  }, Xt = x(Ut), Zt = ({ onBackClick: t, sx: o }) => {
234
- const { onEvent: n } = H(), { isDesktop: s, isTablet: r, isMobile: l } = $(), { visibleAccounts: d } = ce(), { loadMonthlyCategoryTotals: h, monthlyCategoryTotals: c, getCategoryName: u } = P(), { sortedTransactions: f } = ie(), { selectedDateRange: g, setSelectedDateRange: T } = ee(), { isCopyLoaded: m, isInitialized: a, selectedAccounts: y, setSelectedAccounts: p } = J(), { trends: E } = A(), [w, D] = i.useState(!1), [R, v] = i.useState(!1), [k, N] = i.useState("Chart"), [I, te] = i.useState(""), [ne, B] = i.useState(window.innerHeight), le = ne - (l ? 315 : 345);
234
+ const { onEvent: n } = H(), { isDesktop: s, isTablet: a, isMobile: l } = $(), { visibleAccounts: d } = ce(), { loadMonthlyCategoryTotals: h, monthlyCategoryTotals: c, getCategoryName: u } = P(), { sortedTransactions: f } = ie(), { selectedDateRange: g, setSelectedDateRange: T } = ee(), { isCopyLoaded: m, isInitialized: r, selectedAccounts: y, setSelectedAccounts: p } = J(), { trends: E } = A(), [w, D] = i.useState(!1), [R, v] = i.useState(!1), [k, N] = i.useState("Chart"), [I, te] = i.useState(""), [ne, B] = i.useState(window.innerHeight), le = ne - (l ? 315 : 345);
235
235
  i.useEffect(() => {
236
236
  const S = () => B(window.innerHeight);
237
237
  return window.addEventListener("resize", S), () => window.removeEventListener("resize", S);
238
238
  }, []), i.useEffect(() => {
239
239
  p(d);
240
240
  }, [d]), i.useEffect(() => {
241
- a && h(
241
+ r && h(
242
242
  y,
243
243
  g.start,
244
244
  g.end
245
245
  ).finally(() => {
246
246
  D(!0);
247
247
  });
248
- }, [a, y, g]);
248
+ }, [r, y, g]);
249
249
  const F = i.useMemo(() => {
250
250
  if (!w) return { stackedDatasets: [], unstackedDatasets: [] };
251
251
  const S = tt(
@@ -254,9 +254,9 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
254
254
  g.end
255
255
  ), W = I.length ? S.filter(
256
256
  (V) => V.top_level_category_guid === I || V.category_guid === I
257
- ) : rt(S);
257
+ ) : at(S);
258
258
  return {
259
- stackedDatasets: W.filter(at),
259
+ stackedDatasets: W.filter(rt),
260
260
  unstackedDatasets: W.filter(it)
261
261
  };
262
262
  }, [c, I, g]), de = (S, W) => {
@@ -276,10 +276,10 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
276
276
  n(_.TRENDS_HOVER_LEGEND, { category: u(S) });
277
277
  }, se = (S) => {
278
278
  n(_.TRENDS_HOVER_AREA, { category: S });
279
- }, re = (S) => {
279
+ }, ae = (S) => {
280
280
  n(_.TRENDS_HOVER_POINT, { category: S });
281
281
  };
282
- return !m || !a || !w ? /* @__PURE__ */ e(Q, {}) : /* @__PURE__ */ C(
282
+ return !m || !r || !w ? /* @__PURE__ */ e(Q, {}) : /* @__PURE__ */ C(
283
283
  ke,
284
284
  {
285
285
  accountOptions: d,
@@ -296,7 +296,7 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
296
296
  {
297
297
  sx: {
298
298
  // eslint-disable-next-line no-nested-ternary
299
- px: s ? 48 : r ? 24 : 12
299
+ px: s ? 48 : a ? 24 : 12
300
300
  },
301
301
  children: [
302
302
  /* @__PURE__ */ C(
@@ -319,7 +319,7 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
319
319
  ),
320
320
  /* @__PURE__ */ C(b, { alignItems: "center", flexDirection: "row", width: "100%", children: [
321
321
  /* @__PURE__ */ e(O, { flexGrow: 1, children: I && /* @__PURE__ */ C(me, { onClick: () => te(""), sx: { p: 0, pr: 5 }, children: [
322
- /* @__PURE__ */ e(ae, { name: "arrow_back" }),
322
+ /* @__PURE__ */ e(re, { name: "arrow_back" }),
323
323
  E.all_categories
324
324
  ] }) }),
325
325
  /* @__PURE__ */ e(me, { onClick: () => v(!0), sx: { px: 5 }, children: `${E.view_transactions} (${f.length})` })
@@ -332,7 +332,7 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
332
332
  onClickLegend: oe,
333
333
  onHoverArea: se,
334
334
  onHoverLegend: ue,
335
- onHoverPoint: re,
335
+ onHoverPoint: ae,
336
336
  stackedDatasets: F.stackedDatasets,
337
337
  unstackedDatasets: F.unstackedDatasets
338
338
  }
@@ -381,7 +381,7 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
381
381
  }
382
382
  );
383
383
  }, Qt = x(qt), Jt = ({ onPrimaryCtaClick: t, sx: o }) => {
384
- const { visibleAccounts: n } = ce(), { loadMonthlyCategoryTotals: s, monthlyTotalsLoaded: r } = P(), { isInitialized: l } = Te(), { trends: d } = A(), { isCopyLoaded: h, selectedAccounts: c, setSelectedAccounts: u } = J();
384
+ const { visibleAccounts: n } = ce(), { loadMonthlyCategoryTotals: s, monthlyTotalsLoaded: a } = P(), { isInitialized: l } = Te(), { trends: d } = A(), { isCopyLoaded: h, selectedAccounts: c, setSelectedAccounts: u } = J();
385
385
  return i.useEffect(() => {
386
386
  u(n);
387
387
  }, [n]), i.useEffect(() => {
@@ -394,7 +394,7 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
394
394
  subTitle: d.sub_title,
395
395
  sx: o,
396
396
  title: d.mini_title,
397
- children: r ? /* @__PURE__ */ e(Qt, {}) : /* @__PURE__ */ e(Q, {})
397
+ children: a ? /* @__PURE__ */ e(Qt, {}) : /* @__PURE__ */ e(Q, {})
398
398
  }
399
399
  );
400
400
  }, ho = x(Jt), en = 70, Ee = ({
@@ -402,13 +402,13 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
402
402
  totalAmount: o,
403
403
  transactionType: n,
404
404
  percentage: s,
405
- secondaryLabel: r,
405
+ secondaryLabel: a,
406
406
  shouldDisplayPercentage: l
407
407
  }) => {
408
408
  const { availableWidth: d } = ht(), h = i.useRef(null), c = i.useRef(null), u = Et(Number(Math.abs(s)), {
409
409
  style: "percent",
410
410
  minimumIntegerDigits: 1
411
- }), f = d === 288 && X(o, "0,0.00").length > 10 ? X(o, "0,0") : X(o, "0,0.00"), g = n === "spending" ? s > 0 : s >= 0, T = n === "spending" ? "error.main" : "success.main", m = n === "spending" ? "success.main" : "text.secondary", a = h?.current, y = c?.current, p = a && y ? a.scrollWidth > y.clientWidth - en : !1;
411
+ }), f = d === 288 && X(o, "0,0.00").length > 10 ? X(o, "0,0") : X(o, "0,0.00"), g = n === "spending" ? s > 0 : s >= 0, T = n === "spending" ? "error.main" : "success.main", m = n === "spending" ? "success.main" : "text.secondary", r = h?.current, y = c?.current, p = r && y ? r.scrollWidth > y.clientWidth - en : !1;
412
412
  return /* @__PURE__ */ C(
413
413
  b,
414
414
  {
@@ -472,7 +472,7 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
472
472
  {
473
473
  color: g ? T : m,
474
474
  variant: "caption",
475
- children: r
475
+ children: a
476
476
  }
477
477
  )
478
478
  ]
@@ -491,14 +491,14 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
491
491
  ] })
492
492
  ] });
493
493
  }), uo = x(({ onCtaClick: t }) => {
494
- const { visibleAccounts: o } = ce(), { onEvent: n } = H(), { monthlyCategoryTotals: s, loadMonthlyCategoryTotals: r, monthlyTotalsLoaded: l } = P(), d = {
494
+ const { visibleAccounts: o } = ce(), { onEvent: n } = H(), { monthlyCategoryTotals: s, loadMonthlyCategoryTotals: a, monthlyTotalsLoaded: l } = P(), d = {
495
495
  start: _t(/* @__PURE__ */ new Date(), 1),
496
496
  end: /* @__PURE__ */ new Date()
497
497
  }, { trends: h } = A(), { selectedAccounts: c, setSelectedAccounts: u, isInitialized: f } = J();
498
498
  i.useEffect(() => {
499
499
  u(o);
500
500
  }, [o]), i.useEffect(() => {
501
- f && r(c, d.start).then(() => {
501
+ f && a(c, d.start).then(() => {
502
502
  n(_.TRENDS_LOAD_WIDGET, {
503
503
  state: o?.length ? "default" : "zeroState"
504
504
  });
@@ -510,7 +510,7 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
510
510
  incomeData: Re(s, d)
511
511
  }),
512
512
  [s, d]
513
- ), [m, a] = g, [y, p] = T, E = De(a.y, m.y), w = De(p.y, y.y), D = f && !o?.length, R = () => {
513
+ ), [m, r] = g, [y, p] = T, E = De(r.y, m.y), w = De(p.y, y.y), D = f && !o?.length, R = () => {
514
514
  n(
515
515
  D ? _.TRENDS_CLICK_GET_STARTED : _.TRENDS_CLICK_VIEW_MORE
516
516
  ), t();
@@ -537,9 +537,9 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
537
537
  {
538
538
  percentage: E,
539
539
  secondaryLabel: h.micro_secondary_label,
540
- shouldDisplayPercentage: a.y !== 0 && m.y !== 0,
540
+ shouldDisplayPercentage: r.y !== 0 && m.y !== 0,
541
541
  title: h.spending_label,
542
- totalAmount: a.y,
542
+ totalAmount: r.y,
543
543
  transactionType: "spending"
544
544
  }
545
545
  ),
@@ -587,12 +587,12 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
587
587
  guid: o,
588
588
  name: n,
589
589
  transactions: s,
590
- onClick: r,
590
+ onClick: a,
591
591
  isLastItem: l = !1,
592
592
  showDivider: d = !0
593
593
  }) => {
594
594
  const { trends: h } = A(), { onEvent: c } = H(), u = `${s.length} ${s.length === 1 ? h.transaction : h.transactions}`, f = () => {
595
- r?.(), c(_.TRENDS_CLICK_LIST_ITEM, {
595
+ a?.(), c(_.TRENDS_CLICK_LIST_ITEM, {
596
596
  ...M,
597
597
  listItem: n
598
598
  });
@@ -604,7 +604,7 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
604
604
  leftIcon: o ? /* @__PURE__ */ e(fe, { categoryGuid: o }) : void 0,
605
605
  onClick: f,
606
606
  rightContent: X(Math.abs(t), "0,0.00"),
607
- rightIcon: r ? /* @__PURE__ */ e(Je, {}) : void 0,
607
+ rightIcon: a ? /* @__PURE__ */ e(Je, {}) : void 0,
608
608
  subtitle: u,
609
609
  title: n
610
610
  }
@@ -614,10 +614,10 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
614
614
  }
615
615
  ), on = x(
616
616
  ({ availableHeight: t = 0, onCategoryClick: o }) => {
617
- const { collapsedCategories: n, visibleCategories: s, setVisibleListLength: r } = ee(), { isLargeDesktop: l, isDesktop: d } = $(), { trends: h } = A(), { onEvent: c } = H(), [u, f] = i.useState(!1), g = d || l;
617
+ const { collapsedCategories: n, visibleCategories: s, setVisibleListLength: a } = ee(), { isLargeDesktop: l, isDesktop: d } = $(), { trends: h } = A(), { onEvent: c } = H(), [u, f] = i.useState(!1), g = d || l;
618
618
  i.useEffect(() => {
619
- const a = Math.floor(t / 64) - 1, y = s.length + n.length;
620
- a !== s.length && (r(g ? Math.max(a, 5) : 5), f(a >= y));
619
+ const r = Math.floor(t / 64) - 1, y = s.length + n.length;
620
+ r !== s.length && (a(g ? Math.max(r, 5) : 5), f(r >= y));
621
621
  }, [t]);
622
622
  const T = () => {
623
623
  f(!u), c(_.TRENDS_CLICK_VIEW_MORE, {
@@ -626,32 +626,32 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
626
626
  }, m = s.length + (u ? n.length : 0);
627
627
  return /* @__PURE__ */ e(b, { sx: { bgColor: "background.paper", width: "100%" }, children: /* @__PURE__ */ C(vt, { children: [
628
628
  /* @__PURE__ */ e(b, { sx: { pb: 4, pt: 16, px: 16 }, children: /* @__PURE__ */ e(xe, { children: h.categories }) }),
629
- s.map((a, y) => /* @__PURE__ */ e(
629
+ s.map((r, y) => /* @__PURE__ */ e(
630
630
  Le,
631
631
  {
632
- ...a,
632
+ ...r,
633
633
  isLastItem: y === m - 1,
634
- onClick: a.transactions.length > 0 ? () => o(a) : void 0,
634
+ onClick: r.transactions.length > 0 ? () => o(r) : void 0,
635
635
  showDivider: !0
636
636
  },
637
- a.guid
637
+ r.guid
638
638
  )),
639
639
  /* @__PURE__ */ e(
640
640
  xt,
641
641
  {
642
642
  in: u,
643
643
  sx: { "&.MuiCollapse-root .MuiListItemButton-root": { paddingLeft: 24 } },
644
- children: n.map((a, y) => {
644
+ children: n.map((r, y) => {
645
645
  const p = s.length + y;
646
646
  return /* @__PURE__ */ e(
647
647
  Le,
648
648
  {
649
- ...a,
649
+ ...r,
650
650
  isLastItem: p === m - 1,
651
- onClick: a.transactions.length > 0 ? () => o(a) : void 0,
651
+ onClick: r.transactions.length > 0 ? () => o(r) : void 0,
652
652
  showDivider: !0
653
653
  },
654
- a.guid
654
+ r.guid
655
655
  );
656
656
  })
657
657
  }
@@ -660,7 +660,7 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
660
660
  ] }) });
661
661
  }
662
662
  ), sn = ({ beats: t, onInsightCardClick: o }) => {
663
- const n = Ht(), { onEvent: s } = H(), { isMobile: r, isDesktop: l, isLargeDesktop: d } = $(), { beatStore: h, endpoint: c, sessionToken: u } = Te(), f = n.palette.mode === "dark", g = l || d, T = g || r ? 1 : 2, m = () => null, a = (R) => {
663
+ const n = Ht(), { onEvent: s } = H(), { isMobile: a, isDesktop: l, isLargeDesktop: d } = $(), { beatStore: h, endpoint: c, sessionToken: u } = Te(), f = n.palette.mode === "dark", g = l || d, T = g || a ? 1 : 2, m = () => null, r = (R) => {
664
664
  o?.(R), s(_.TRENDS_CLICK_INSIGHT, M);
665
665
  }, y = g ? 200 : 170, p = g ? 170 : 124, E = g ? 56 : 0, w = t.length > 0 ? y + E : p, D = g && t.length > 0 ? y : void 0;
666
666
  return /* @__PURE__ */ e(Wt, { sx: { height: w }, children: /* @__PURE__ */ e(
@@ -671,7 +671,7 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
671
671
  endpoint: c,
672
672
  heightOverrides: D,
673
673
  logOutUser: m,
674
- onCardClick: a,
674
+ onCardClick: r,
675
675
  showBorder: !0,
676
676
  showCTAColocatedWithText: !1,
677
677
  showCarouselControls: !0,
@@ -685,9 +685,9 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
685
685
  visibleCardsCount: T
686
686
  }
687
687
  ) });
688
- }, rn = x(sn), an = x(({ chartLabel: t, chartColor: o }) => {
688
+ }, an = x(sn), rn = x(({ chartLabel: t, chartColor: o }) => {
689
689
  const { onEvent: n } = H(), {
690
- categoryDetailsChartData: { monthlyAmounts: s, tooltipLabels: r }
690
+ categoryDetailsChartData: { monthlyAmounts: s, tooltipLabels: a }
691
691
  } = ee();
692
692
  return /* @__PURE__ */ e(b, { sx: { pt: 12, width: "100%" }, children: /* @__PURE__ */ e(
693
693
  ye,
@@ -695,7 +695,7 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
695
695
  baseline: "min",
696
696
  colors: [o],
697
697
  curveType: "bump",
698
- customTooltipLabels: r,
698
+ customTooltipLabels: a,
699
699
  datasets: [s],
700
700
  height: 265,
701
701
  labels: [t],
@@ -719,10 +719,10 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
719
719
  }
720
720
  ) });
721
721
  }), cn = x(({ onClose: t }) => {
722
- const o = Oe(), { onEvent: n } = H(), { common: s, trends: r } = A(), { selectedCategoryData: l, selectedDateRangeMonthRange: d } = ee(), { sortedTransactions: h } = ie(), [c, u] = i.useState(null);
722
+ const o = Oe(), { onEvent: n } = H(), { common: s, trends: a } = A(), { selectedCategoryData: l, selectedDateRangeMonthRange: d } = ee(), { sortedTransactions: h } = ie(), [c, u] = i.useState(null);
723
723
  if (!l)
724
724
  return null;
725
- const { guid: f, name: g, is_income: T, totalAmount: m } = l, a = T ? r.category_income : r.category_spending, y = Vt(f, o), p = T ? r.income_label : r.spending_label, E = ` ${l.transactions.length === 1 ? r.transaction : r.transactions} (${l.transactions.length})`, w = i.useMemo(
725
+ const { guid: f, name: g, is_income: T, totalAmount: m } = l, r = T ? a.category_income : a.category_spending, y = Vt(f, o), p = T ? a.income_label : a.spending_label, E = ` ${l.transactions.length === 1 ? a.transaction : a.transactions} (${l.transactions.length})`, w = i.useMemo(
726
726
  () => h.find((v) => v.guid === c),
727
727
  [c, h]
728
728
  ), D = (v) => v.category_guid === f || v.top_level_category_guid === f, R = () => {
@@ -731,11 +731,11 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
731
731
  return /* @__PURE__ */ C(
732
732
  Ce,
733
733
  {
734
- ariaLabelClose: r.close_category_details,
734
+ ariaLabelClose: a.close_category_details,
735
735
  isOpen: !0,
736
736
  onClose: R,
737
737
  shouldShowHeaderShadow: !0,
738
- title: a,
738
+ title: r,
739
739
  children: [
740
740
  /* @__PURE__ */ C(b, { sx: { alignItems: "center", height: "100%" }, children: [
741
741
  /* @__PURE__ */ C(Ot, { sx: { borderRadius: 0, pb: 4, pt: 16, width: "100%" }, children: [
@@ -748,7 +748,7 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
748
748
  title: g
749
749
  }
750
750
  ),
751
- /* @__PURE__ */ e(an, { chartColor: y, chartLabel: p }),
751
+ /* @__PURE__ */ e(rn, { chartColor: y, chartLabel: p }),
752
752
  /* @__PURE__ */ C(b, { alignItems: "center", direction: "row", justifyContent: "space-between", sx: { mx: 24 }, children: [
753
753
  /* @__PURE__ */ e(Z, { bold: !0, variant: "body1", children: E }),
754
754
  /* @__PURE__ */ e(Gt, { filter: D })
@@ -770,7 +770,7 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
770
770
  ariaLabelClose: s.close_aria,
771
771
  isOpen: !!w,
772
772
  onClose: () => u(""),
773
- title: r.transaction,
773
+ title: a.transaction,
774
774
  children: w && /* @__PURE__ */ e(Ne, { transaction: w })
775
775
  }
776
776
  )
@@ -779,11 +779,11 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
779
779
  );
780
780
  }), ln = (t, o) => {
781
781
  const n = Re(t, o), s = Ae(t, o);
782
- return [n, s].filter((r) => r.length > 0);
782
+ return [n, s].filter((a) => a.length > 0);
783
783
  }, dn = (t, o) => {
784
- const [n, s] = t, r = n, l = s ?? n, d = [];
785
- if (r) {
786
- const h = r.reduce((c, u) => c + u.y, 0);
784
+ const [n, s] = t, a = n, l = s ?? n, d = [];
785
+ if (a) {
786
+ const h = a.reduce((c, u) => c + u.y, 0);
787
787
  d.push({ label: o.income_label, amount: h });
788
788
  }
789
789
  if (l) {
@@ -797,7 +797,7 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
797
797
  selectedDateRange: n,
798
798
  totals: s
799
799
  }) => {
800
- const r = We(), { onEvent: l } = H(), { trends: d } = A(), { isSmallMobile: h, isMobile: c, isSmallTablet: u, isTablet: f } = $(), g = [r.palette.chart?.chart1, r.palette.chart?.chart2], T = ln(s, n), m = dn(T, d), [a, y] = i.useState(0), p = 458, E = 195, w = 56, D = c || h ? E : u || f ? p : a;
800
+ const a = We(), { onEvent: l } = H(), { trends: d } = A(), { isSmallMobile: h, isMobile: c, isSmallTablet: u, isTablet: f } = $(), g = [a.palette.chart?.chart1, a.palette.chart?.chart2], T = ln(s, n), m = dn(T, d), [r, y] = i.useState(0), p = 458, E = 195, w = 56, D = c || h ? E : u || f ? p : r;
801
801
  return i.useEffect(() => {
802
802
  const v = Math.max(t - w, o);
803
803
  y(v);
@@ -859,13 +859,13 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
859
859
  "WeeklyNoSpendDays",
860
860
  "WeeklySmallPurchasesSummary"
861
861
  ], mn = ({ onBackClick: t, onInsightCardClick: o, sx: n }) => {
862
- const { onEvent: s } = H(), { onLoad: r } = ut(), { config: l } = gt(), { isLargeDesktop: d, isDesktop: h, isMobile: c } = $(), { visibleAccounts: u } = ce(), { loadDateRangeCategoryTotals: f, loadMonthlyCategoryTotals: g, monthlyCategoryTotals: T } = P(), { setFilter: m } = ie(), { selectedDateRange: a, setSelectedCategoryData: y, setSelectedDateRange: p } = ee(), {
862
+ const { onEvent: s } = H(), { onLoad: a } = ut(), { config: l } = gt(), { isLargeDesktop: d, isDesktop: h, isMobile: c } = $(), { visibleAccounts: u } = ce(), { loadDateRangeCategoryTotals: f, loadMonthlyCategoryTotals: g, monthlyCategoryTotals: T } = P(), { setFilter: m } = ie(), { selectedDateRange: r, setSelectedCategoryData: y, setSelectedDateRange: p } = ee(), {
863
863
  isCopyLoaded: E,
864
864
  isInitialized: w,
865
865
  selectedAccounts: D,
866
866
  selectedAccountGuids: R,
867
867
  setSelectedAccounts: v
868
- } = J(), { trends: k, connect: N } = A(), { beatStore: I } = Te(), ne = Bt() && l.show_insights_widget_in_master, B = h || d, [_e, le] = i.useState(!1), [F, de] = i.useState(!1), [K, he] = i.useState("Chart"), [j, oe] = i.useState(""), [ue, se] = i.useState(!1), [re, S] = i.useState(window.innerHeight), W = B ? 56 : 0, V = re - 208, ge = re - (ne ? 550 + W : 266), [ze, be] = i.useState(!1), Pe = l.show_connections_widget_in_master ? "buttons" : "no-buttons", Se = i.useMemo(
868
+ } = J(), { trends: k, connect: N } = A(), { beatStore: I } = Te(), ne = Bt() && l.show_insights_widget_in_master, B = h || d, [_e, le] = i.useState(!1), [F, de] = i.useState(!1), [K, he] = i.useState("Chart"), [j, oe] = i.useState(""), [ue, se] = i.useState(!1), [ae, S] = i.useState(window.innerHeight), W = B ? 56 : 0, V = ae - 208, ge = ae - (ne ? 550 + W : 266), [ze, be] = i.useState(!1), Pe = l.show_connections_widget_in_master ? "buttons" : "no-buttons", Se = i.useMemo(
869
869
  () => u && u.length === 0 || T.length === 0,
870
870
  [u, T]
871
871
  );
@@ -879,23 +879,23 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
879
879
  }, []), i.useEffect(() => {
880
880
  v(u);
881
881
  }, [u]), i.useEffect(() => {
882
- w && f(D, a.start, a.end).then(() => {
882
+ w && f(D, r.start, r.end).then(() => {
883
883
  g(
884
884
  D,
885
- a.start,
886
- a.end
885
+ r.start,
886
+ r.end
887
887
  );
888
888
  }).finally(() => {
889
889
  le(!0), s(_.TRENDS_LOAD_WIDGET, {
890
890
  ...M,
891
- time_period: `${pe(a.end, a.start)}M`
892
- }), r?.("TrendsWidget");
891
+ time_period: `${pe(r.end, r.start)}M`
892
+ }), a?.("TrendsWidget");
893
893
  });
894
- }, [w, D, a]), i.useEffect(() => {
894
+ }, [w, D, r]), i.useEffect(() => {
895
895
  if (T.length !== 0) {
896
896
  const L = {
897
897
  accounts: R,
898
- dateRange: { start: a.start, end: a.end }
898
+ dateRange: { start: r.start, end: r.end }
899
899
  };
900
900
  m({
901
901
  ...L,
@@ -937,7 +937,7 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
937
937
  {
938
938
  accountOptions: u,
939
939
  calendarActions: { onRangeChanged: Ye },
940
- dateRange: a,
940
+ dateRange: r,
941
941
  dateRangeVariant: c ? "timeframetabs" : "timeframebuttons",
942
942
  onAccountsFilterClick: Ue,
943
943
  onBackClick: t,
@@ -974,7 +974,7 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
974
974
  Ge,
975
975
  {
976
976
  selectedCategoryGuid: j,
977
- selectedDateRange: a
977
+ selectedDateRange: r
978
978
  }
979
979
  ),
980
980
  /* @__PURE__ */ e(Ve, { onTabChange: je, selectedTab: K })
@@ -982,7 +982,7 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
982
982
  }
983
983
  ),
984
984
  /* @__PURE__ */ e(b, { alignItems: "center", flexDirection: "row", width: "100%", children: /* @__PURE__ */ e(O, { flexGrow: 1, children: j && /* @__PURE__ */ C(me, { onClick: Ze, sx: { p: 0, pr: 5 }, children: [
985
- /* @__PURE__ */ e(ae, { name: "arrow_back" }),
985
+ /* @__PURE__ */ e(re, { name: "arrow_back" }),
986
986
  k.all_categories
987
987
  ] }) }) }),
988
988
  /* @__PURE__ */ C(b, { flexDirection: B ? "row" : "column", gap: B ? 48 : 16, children: [
@@ -992,13 +992,13 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
992
992
  {
993
993
  availableHeight: V,
994
994
  minHeight: 450,
995
- selectedDateRange: a,
995
+ selectedDateRange: r,
996
996
  totals: T
997
997
  }
998
998
  ) }),
999
999
  /* @__PURE__ */ C(b, { gap: 16, sx: { width: B ? "32%" : "100%" }, children: [
1000
1000
  ne && F && we.length > 0 && /* @__PURE__ */ e(
1001
- rn,
1001
+ an,
1002
1002
  {
1003
1003
  beats: we,
1004
1004
  onInsightCardClick: o
@@ -1020,7 +1020,7 @@ const Ve = ({ selectedTab: t, onTabChange: o }) => /* @__PURE__ */ e(
1020
1020
  monthlyCategoryTotals: T,
1021
1021
  onClickRow: Xe,
1022
1022
  selectedCategory: j,
1023
- selectedDateRange: a
1023
+ selectedDateRange: r
1024
1024
  }
1025
1025
  ) })
1026
1026
  ] }),
@@ -1,6 +1,6 @@
1
1
  import s from "react";
2
- import { g as e } from "./ConnectDrawer-DaFRU5st.mjs";
3
- import { a as n } from "./hooks-D6XlXHf4.mjs";
2
+ import { g as e } from "./ConnectDrawer-FyY0AWYQ.mjs";
3
+ import { a as n } from "./hooks-C41HAxM5.mjs";
4
4
  const i = (o) => {
5
5
  const { config: a } = n();
6
6
  return s.useMemo(
@@ -1,5 +1,5 @@
1
1
  import { useState as n, useEffect as a } from "react";
2
- import { f as o } from "./hooks-D6XlXHf4.mjs";
2
+ import { f as o } from "./hooks-C41HAxM5.mjs";
3
3
  const f = () => {
4
4
  const { isInitialized: e, appDataStore: t } = o(), [s, i] = n(!1);
5
5
  return a(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "7.2.10",
3
+ "version": "7.2.12-alpha-ram1-finstrong-testing",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",