@mx-cartographer/experiences 8.0.0-alpha.sms2 → 9.0.0-alpha.mega1

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 (139) hide show
  1. package/CHANGELOG.md +217 -0
  2. package/dist/{Account-Cp30A3ad.mjs → Account-BIKn4XEZ.mjs} +1 -1
  3. package/dist/Account-CMjOp7S2.mjs +118 -0
  4. package/dist/AccountApi-DgZ8ILj1.mjs +19 -0
  5. package/dist/AccountDetailsHeader-BOV91g1o.mjs +95 -0
  6. package/dist/AccountDisplayName-CO7z3v99.mjs +11 -0
  7. package/dist/{AccountFields-CW6cIthP.mjs → AccountFields-BRRH37K1.mjs} +10 -11
  8. package/dist/{AccountListItem-DxmAs98Z.mjs → AccountListItem-Ds5C0mOT.mjs} +4 -4
  9. package/dist/{AccountStore-hIs-yA6W.mjs → AccountStore-BFKvXJSD.mjs} +79 -69
  10. package/dist/{Accounts-DUHkUyK4.mjs → Accounts-CuE8aSZN.mjs} +1 -1
  11. package/dist/{BudgetUtil-CIDAPPPT.mjs → BudgetUtil-CDSOZXem.mjs} +4 -4
  12. package/dist/CategorySelectorDrawer-C4aZYP4N.mjs +418 -0
  13. package/dist/CategoryStore-DEqAnHbi.mjs +186 -0
  14. package/dist/{CategoryUtil-DfVKKkRf.mjs → CategoryUtil-CFHBvaV4.mjs} +1 -1
  15. package/dist/{ConnectionsDrawer-CSo6AFkG.mjs → ConnectionsDrawer-BExzgE16.mjs} +5 -5
  16. package/dist/{CurrencyInput-BrGvhgVK.mjs → CurrencyInput-DDQ4DBrE.mjs} +1 -1
  17. package/dist/{CurrencyText-Dr0EZ7bp.mjs → CurrencyText-C-85TnUF.mjs} +3 -3
  18. package/dist/{DateUtil-CDPZw_-m.mjs → DateUtil-CVsMhbZU.mjs} +3 -3
  19. package/dist/{DebtsStore-hi1cqrRk.mjs → DebtsStore-Dv_T7Dts.mjs} +12 -12
  20. package/dist/{Dialog-CDV0kKxj.mjs → Dialog-CWymUiuO.mjs} +32 -35
  21. package/dist/Drawer-Bet2ZPJo.mjs +176 -0
  22. package/dist/{ExportCsvAction-CQ1grpwo.mjs → ExportCsvAction-oG_Mn66T.mjs} +3 -3
  23. package/dist/{FinstrongStore-dKZOZ2hM.mjs → FinstrongStore-BjFkMTIL.mjs} +6 -6
  24. package/dist/GlobalAccountFilter-BpWlPAl5.mjs +316 -0
  25. package/dist/{GoalStore-CFeAJloA.mjs → GoalStore-Dbjgft2i.mjs} +155 -137
  26. package/dist/{Help-i4OasOO-.mjs → Help-BW_ar-4B.mjs} +2 -2
  27. package/dist/LineChart-DHj-Bufi.mjs +580 -0
  28. package/dist/{ListItemAction-BNCWQAN_.mjs → ListItemAction-Cbr3417C.mjs} +10 -10
  29. package/dist/{ManageIncome-D_qVX5dN.mjs → ManageIncome-DIIyqDTp.mjs} +85 -85
  30. package/dist/{MicroWidgetContainer-BGpNl5ZS.mjs → MicroWidgetContainer-DSyYwRCU.mjs} +2 -2
  31. package/dist/{MiniWidgetContainer-D7MkHG15.mjs → MiniWidgetContainer-DKn7ndO6.mjs} +1 -1
  32. package/dist/NetWorthStore-B6ziBtaH.mjs +168 -0
  33. package/dist/NotificationSettings-e789PcRb.mjs +676 -0
  34. package/dist/{OriginalBalanceAction-62e0mU_3.mjs → OriginalBalanceAction-DFoG79Ba.mjs} +3 -3
  35. package/dist/{RecurringSettings-RfZ8Wuhh.mjs → RecurringSettings-BpCUcE8w.mjs} +4 -4
  36. package/dist/{RecurringTransactionsStore-D3EOKZ2B.mjs → RecurringTransactionsStore-D_--5PWH.mjs} +1 -1
  37. package/dist/{RecurringTransactions-Bhx56aA3.mjs → RepeatingTransaction-C2txVA9O.mjs} +3 -3
  38. package/dist/{SettingsStore-BASMQSIp.mjs → SettingsStore-CInvh-rQ.mjs} +1 -1
  39. package/dist/SpendingData-B7NuTQ9s.mjs +53 -0
  40. package/dist/SpendingLegend-BxefXiQd.mjs +193 -0
  41. package/dist/TransactionDetails-CPwv9xtZ.mjs +1374 -0
  42. package/dist/{TransactionStore-DgLrYW4C.mjs → TransactionStore-D2aMUClq.mjs} +128 -111
  43. package/dist/TrendsStore-BdsYfCc7.mjs +183 -0
  44. package/dist/{User-DqNX2GAK.mjs → User-CulNdZUr.mjs} +21 -20
  45. package/dist/ViewMoreMicroCard-CDWR16_h.mjs +1147 -0
  46. package/dist/WidgetContainer-mzejMmz2.mjs +555 -0
  47. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +1 -0
  48. package/dist/accounts/index.es.js +933 -232
  49. package/dist/accounts/stores/AccountStore.d.ts +6 -2
  50. package/dist/accounts/utils/AccountDetails.d.ts +5 -0
  51. package/dist/analytics/index.es.js +2 -2
  52. package/dist/budgets/components/AddBudgets.d.ts +2 -1
  53. package/dist/budgets/index.es.js +561 -522
  54. package/dist/cashflow/index.es.js +397 -396
  55. package/dist/categories/components/CustomCategories/AddSubcategory.d.ts +1 -0
  56. package/dist/categories/components/CustomCategories/DeleteSubcategory.d.ts +1 -0
  57. package/dist/categories/components/CustomCategories/RenameSubcategory.d.ts +1 -0
  58. package/dist/categories/components/SubcategoryRow.d.ts +1 -0
  59. package/dist/categories/index.es.js +2 -2
  60. package/dist/categories/stores/CategoryStore.d.ts +5 -3
  61. package/dist/common/components/GlobalAccountFilter.d.ts +11 -0
  62. package/dist/common/components/WidgetContainer.d.ts +7 -6
  63. package/dist/common/components/charts/linechart/CustomTooltip.d.ts +6 -1
  64. package/dist/common/components/charts/stackedlinechart/CustomPointTooltip.d.ts +5 -2
  65. package/dist/common/components/globalaccountfilter/GlobalAccountFilterList.d.ts +7 -0
  66. package/dist/common/components/index.d.ts +2 -2
  67. package/dist/common/hooks/index.d.ts +1 -0
  68. package/dist/common/hooks/useWidgetLoadTimer.d.ts +6 -0
  69. package/dist/common/index.es.js +325 -306
  70. package/dist/common/stores/GlobalUiStore.d.ts +7 -4
  71. package/dist/common/types/localization/AccountsCopy.d.ts +6 -0
  72. package/dist/common/types/localization/CategoryCopy.d.ts +3 -0
  73. package/dist/common/types/localization/CommonCopy.d.ts +3 -0
  74. package/dist/common/types/localization/GoalsCopy.d.ts +3 -1
  75. package/dist/common/types/localization/MicroInsightsCopy.d.ts +1 -0
  76. package/dist/common/types/localization/TransactionsCopy.d.ts +4 -0
  77. package/dist/common/types/localization/TrendsCopy.d.ts +4 -0
  78. package/dist/dashboard/index.es.js +95 -125
  79. package/dist/debts/index.es.js +466 -460
  80. package/dist/{exportTransactionsToCSV-BFpuIAXW.mjs → exportTransactionsToCSV-BU1jTY0Q.mjs} +4 -4
  81. package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +4 -5
  82. package/dist/finstrong/index.es.js +1660 -1553
  83. package/dist/goals/index.es.js +716 -677
  84. package/dist/goals/stores/GoalStore.d.ts +2 -0
  85. package/dist/help/index.es.js +14 -10
  86. package/dist/{hooks-C41HAxM5.mjs → hooks-fY_n74f7.mjs} +16 -16
  87. package/dist/investments/index.es.js +464 -457
  88. package/dist/merchants/index.es.js +1 -1
  89. package/dist/microinsights/MicroCardTemplate.d.ts +23 -0
  90. package/dist/microinsights/beaticons/BeatMaterialIcon.d.ts +8 -0
  91. package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +1 -2
  92. package/dist/microinsights/beaticons/index.d.ts +1 -0
  93. package/dist/microinsights/cards/InsightCard.d.ts +0 -2
  94. package/dist/microinsights/cards/ViewMoreMicroCard.d.ts +2 -5
  95. package/dist/microinsights/index.d.ts +2 -2
  96. package/dist/microinsights/index.es.js +824 -14
  97. package/dist/networth/components/NetWorthChart.d.ts +3 -2
  98. package/dist/networth/components/NetWorthList.d.ts +3 -3
  99. package/dist/networth/index.es.js +433 -438
  100. package/dist/networth/stores/NetWorthStore.d.ts +20 -9
  101. package/dist/networth/utils/NetWorthUtils.d.ts +2 -2
  102. package/dist/notifications/index.es.js +5 -5
  103. package/dist/recurringtransactions/index.es.js +331 -325
  104. package/dist/settings/index.es.js +293 -285
  105. package/dist/spending/components/SpendingChart.d.ts +1 -1
  106. package/dist/spending/components/SpendingList.d.ts +1 -1
  107. package/dist/spending/components/SpendingTabLabel.d.ts +1 -0
  108. package/dist/spending/index.es.js +250 -235
  109. package/dist/transactions/index.es.js +288 -281
  110. package/dist/transactions/stores/TransactionStore.d.ts +5 -0
  111. package/dist/trends/components/TrendsTable.d.ts +0 -2
  112. package/dist/trends/index.es.js +876 -802
  113. package/dist/trends/utils/TrendsData.d.ts +1 -0
  114. package/dist/trends/utils/TrendsTable.d.ts +12 -0
  115. package/dist/{useAccountDisplayName-usSZCQ7I.mjs → useAccountDisplayName-DbkgGLdg.mjs} +2 -2
  116. package/dist/useAriaLive-B3_pRUio.mjs +35 -0
  117. package/dist/{useInsightsEnabled-CNjP5cfR.mjs → useInsightsEnabled-dhmXeSyF.mjs} +1 -1
  118. package/dist/useWidgetLoadTimer-CrUzxN-P.mjs +19 -0
  119. package/package.json +26 -21
  120. package/dist/AccountDetailsContent-C1HumFnW.mjs +0 -683
  121. package/dist/AccountDetailsHeader-NMx79DGs.mjs +0 -87
  122. package/dist/CategorySelectorDrawer-DqDAA_5I.mjs +0 -399
  123. package/dist/CategoryStore-MUwRWH9e.mjs +0 -176
  124. package/dist/ConnectDrawer-Dn1MlqLz.mjs +0 -545
  125. package/dist/Drawer-Dqe5EqvA.mjs +0 -163
  126. package/dist/LineChart-bc1D9xBE.mjs +0 -581
  127. package/dist/NetWorthStore-8FFC1Bs0.mjs +0 -150
  128. package/dist/NotificationSettings-BsWiYD94.mjs +0 -672
  129. package/dist/SpendingData-DPQ96k3x.mjs +0 -55
  130. package/dist/SpendingLegend-CZzDb-7d.mjs +0 -193
  131. package/dist/TransactionDetails-Duv1X9ec.mjs +0 -1379
  132. package/dist/TrendsStore-_mRaFUdf.mjs +0 -182
  133. package/dist/ViewMoreMicroCard-CH9E-jOx.mjs +0 -1930
  134. package/dist/WidgetContainer-B1Jzb4XA.mjs +0 -565
  135. package/dist/common/components/accountfilter/AccountFilter.d.ts +0 -20
  136. package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +0 -31
  137. package/dist/common/components/accountfilter/index.d.ts +0 -1
  138. package/dist/microinsights/cards/BaseCard.d.ts +0 -13
  139. package/dist/{ToggleListItem-ciFTiqRS.mjs → Notification-Bs1fdbzI.mjs} +1 -1
@@ -3,88 +3,89 @@ import x from "react";
3
3
  import { observer as C } from "mobx-react-lite";
4
4
  import { endOfMonth as W } from "date-fns/endOfMonth";
5
5
  import { endOfToday as Z } from "date-fns/endOfToday";
6
- import { startOfMonth as N } from "date-fns/startOfMonth";
6
+ import { startOfMonth as G } from "date-fns/startOfMonth";
7
7
  import { startOfToday as J } from "date-fns/startOfToday";
8
8
  import { subDays as Q } from "date-fns/subDays";
9
- import { R as De } from "../RecurringSettings-RfZ8Wuhh.mjs";
10
- import { M as vn } from "../RecurringSettings-RfZ8Wuhh.mjs";
9
+ import { R as Te } from "../RecurringSettings-BpCUcE8w.mjs";
10
+ import { M as vn } from "../RecurringSettings-BpCUcE8w.mjs";
11
11
  import { addMonths as We } from "date-fns/addMonths";
12
12
  import { subMonths as $e } from "date-fns/subMonths";
13
13
  import { isBefore as Be } from "date-fns/isBefore";
14
- import q from "@mui/material/Unstable_Grid2";
14
+ import V from "@mui/material/Unstable_Grid2";
15
15
  import ge from "@mui/material/IconButton";
16
- import d from "@mui/material/Stack";
16
+ import l from "@mui/material/Stack";
17
17
  import he from "@mui/material/Tab";
18
18
  import Pe from "@mui/material/Tabs";
19
- import { Cancel as Te, CheckCircle as Se, Schedule as He, MonetizationOn as Fe, ChevronLeft as ze, ChevronRight as Ue, CurrencyExchange as je } from "@mxenabled/mx-icons";
20
- import { Text as f, MerchantLogo as ee, InstitutionLogo as Ke, H3 as Ye, P as V } from "@mxenabled/mxui";
19
+ import { Cancel as De, CheckCircle as we, Schedule as He, MonetizationOn as ze, ChevronLeft as Fe, ChevronRight as Ue, CurrencyExchange as je } from "@mxenabled/mx-icons";
20
+ import { Text as h, MerchantLogo as ee, InstitutionLogo as Ke, H3 as Ye, P as X } from "@mxenabled/mxui";
21
21
  import { getWeeksInMonth as fe } from "date-fns/getWeeksInMonth";
22
22
  import te from "@mui/material/styles/useTheme";
23
- import { AdapterDateFns as qe } from "@mui/x-date-pickers/AdapterDateFnsV3";
24
- import { DateCalendar as Ve } from "@mui/x-date-pickers/DateCalendar";
25
- import { LocalizationProvider as Xe } from "@mui/x-date-pickers/LocalizationProvider";
23
+ import { AdapterDateFns as Ve } from "@mui/x-date-pickers/AdapterDateFnsV3";
24
+ import { DateCalendar as Xe } from "@mui/x-date-pickers/DateCalendar";
25
+ import { LocalizationProvider as qe } from "@mui/x-date-pickers/LocalizationProvider";
26
26
  import { isSameDay as Ze } from "date-fns/isSameDay";
27
27
  import Je from "@mui/material/Badge";
28
28
  import { PickersDay as Qe } from "@mui/x-date-pickers/PickersDay";
29
29
  import { I as P } from "../IconBacking-DgT8DCeh.mjs";
30
- import { u as R, b as H, j as _, g as F, q as we, d as ne, h as re, n as et } from "../hooks-C41HAxM5.mjs";
31
- import { d as M, c as T, g as xe, f as tt } from "../RecurringTransactions-Bhx56aA3.mjs";
32
- import { T as O } from "../RecurringTransactionsStore-D3EOKZ2B.mjs";
33
- import { R as An } from "../RecurringTransactionsStore-D3EOKZ2B.mjs";
34
- import { A as I, W as nt } from "../WidgetContainer-B1Jzb4XA.mjs";
35
- import rt from "@mui/material/Button";
36
- import X from "@mui/material/Divider";
30
+ import { u as R, b as H, j as _, g as z, p as _e, h as ne } from "../hooks-fY_n74f7.mjs";
31
+ import { d as I, c as T, g as xe, f as et } from "../RepeatingTransaction-C2txVA9O.mjs";
32
+ import { T as O } from "../RecurringTransactionsStore-D_--5PWH.mjs";
33
+ import { R as An } from "../RecurringTransactionsStore-D_--5PWH.mjs";
34
+ import { A as S, W as tt } from "../WidgetContainer-mzejMmz2.mjs";
35
+ import nt from "@mui/material/Button";
36
+ import q from "@mui/material/Divider";
37
37
  import be from "@mui/material/List";
38
- import _e from "@mui/material/ListItem";
38
+ import Se from "@mui/material/ListItem";
39
39
  import it from "@mui/material/ListSubheader";
40
- import ot from "@mui/material/ListItemAvatar";
41
- import at from "@mui/material/ListItemButton";
42
- import st from "@mui/material/ListItemText";
43
- import { b as ct } from "../ManageIncome-D_qVX5dN.mjs";
44
- import { c as Gn, M as Nn, S as On } from "../ManageIncome-D_qVX5dN.mjs";
45
- import { D as ie } from "../Drawer-Dqe5EqvA.mjs";
46
- import { f as v } from "../NumberFormatting-DjTD0t3W.mjs";
40
+ import rt from "@mui/material/ListItemAvatar";
41
+ import ot from "@mui/material/ListItemButton";
42
+ import at from "@mui/material/ListItemText";
43
+ import { b as st } from "../ManageIncome-DIIyqDTp.mjs";
44
+ import { c as Nn, M as Gn, S as On } from "../ManageIncome-DIIyqDTp.mjs";
45
+ import { D as ie } from "../Drawer-Bet2ZPJo.mjs";
46
+ import { f as M } from "../NumberFormatting-DjTD0t3W.mjs";
47
47
  import { b as E } from "../Localization-2MODESHW.mjs";
48
- import { f as L, a as A } from "../Dialog-CDV0kKxj.mjs";
49
- import G from "@mui/material/Box";
48
+ import { f as v, D as L } from "../Dialog-CWymUiuO.mjs";
49
+ import N from "@mui/material/Box";
50
50
  import { S as Ie } from "../StatusBar-CPfSXe80.mjs";
51
- import { u as oe } from "../useScreenSize-B6JyS_Lj.mjs";
51
+ import { u as re } from "../useScreenSize-B6JyS_Lj.mjs";
52
52
  import { S as Me } from "../SkeletonLoader-BaNboJjD.mjs";
53
- import { L as ae } from "../Loader-BSWSYqvn.mjs";
54
- import { M as lt } from "../MiniWidgetContainer-D7MkHG15.mjs";
55
- import { u as dt } from "../useDimensions-27p2evRx.mjs";
56
- import { M as ut } from "../MicroWidgetContainer-BGpNl5ZS.mjs";
57
- const z = {
53
+ import { L as oe } from "../Loader-BSWSYqvn.mjs";
54
+ import { u as ae } from "../useWidgetLoadTimer-CrUzxN-P.mjs";
55
+ import { M as ct } from "../MiniWidgetContainer-DKn7ndO6.mjs";
56
+ import { u as lt } from "../useDimensions-27p2evRx.mjs";
57
+ import { M as dt } from "../MicroWidgetContainer-DSyYwRCU.mjs";
58
+ const F = {
58
59
  gridRow: 1,
59
60
  gridColumn: 1,
60
61
  zIndex: 2
61
- }, U = (t) => t ? { margin: "0 0 -6px -4px" } : void 0, se = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(P, { size: n, sx: { ...U(t) }, children: /* @__PURE__ */ e(He, { color: "primary", filled: !0, sx: { fontSize: n, ...z } }) }), ce = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(P, { size: n, sx: { ...U(t) }, children: /* @__PURE__ */ e(
62
- Fe,
62
+ }, U = (t) => t ? { margin: "0 0 -6px -4px" } : void 0, se = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(P, { size: n, sx: { ...U(t) }, children: /* @__PURE__ */ e(He, { color: "primary", filled: !0, sx: { fontSize: n, ...F } }) }), ce = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(P, { size: n, sx: { ...U(t) }, children: /* @__PURE__ */ e(
63
+ ze,
63
64
  {
64
65
  filled: !0,
65
- sx: { color: "categories.income", fontSize: n, ...z }
66
+ sx: { color: "categories.income", fontSize: n, ...F }
66
67
  }
67
- ) }), le = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(P, { size: n, sx: { ...U(t) }, children: /* @__PURE__ */ e(Te, { color: "error", filled: !0, sx: { fontSize: n, ...z } }) }), de = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(P, { size: n, sx: { ...U(t) }, children: /* @__PURE__ */ e(Se, { color: "success", filled: !0, sx: { fontSize: n, ...z } }) }), mt = C(
68
- ({ day: t, outsideCurrentMonth: n, ...r }) => {
69
- const { recurring: i } = R(), { selectedAccountGuids: o } = H(), { recurrences: c, setSelectedDay: u } = _(), s = x.useMemo(
70
- () => c.filter((g) => o.includes(g.accountGuid)),
71
- [o, c]
68
+ ) }), le = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(P, { size: n, sx: { ...U(t) }, children: /* @__PURE__ */ e(De, { color: "error", filled: !0, sx: { fontSize: n, ...F } }) }), de = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(P, { size: n, sx: { ...U(t) }, children: /* @__PURE__ */ e(we, { color: "success", filled: !0, sx: { fontSize: n, ...F } }) }), ut = C(
69
+ ({ day: t, outsideCurrentMonth: n, ...i }) => {
70
+ const { recurring: o } = R(), { selectedAccountGuids: r } = H(), { recurrences: c, setSelectedDay: u } = _(), s = x.useMemo(
71
+ () => c.filter((f) => r.includes(f.accountGuid)),
72
+ [r, c]
72
73
  ).filter(
73
- (g) => Ze(g.occurredOnDate || g.expectedDate, t)
74
- ), l = s.some(
75
- (g) => g.type !== M.Income && g.status === T.Upcoming
74
+ (f) => Ze(f.occurredOnDate || f.expectedDate, t)
75
+ ), d = s.some(
76
+ (f) => f.type !== I.Income && f.status === T.Upcoming
76
77
  ), m = s.some(
77
- (g) => g.type !== M.Income && g.status === T.Missed
78
- ), h = s.some(
79
- (g) => g.type !== M.Income && g.status === T.Paid
80
- ), b = s.some((g) => g.type === M.Income), y = (l ? 1 : 0) + (m ? 1 : 0) + (h ? 1 : 0) + (b ? 1 : 0);
78
+ (f) => f.type !== I.Income && f.status === T.Missed
79
+ ), g = s.some(
80
+ (f) => f.type !== I.Income && f.status === T.Paid
81
+ ), b = s.some((f) => f.type === I.Income), y = (d ? 1 : 0) + (m ? 1 : 0) + (g ? 1 : 0) + (b ? 1 : 0);
81
82
  return /* @__PURE__ */ e(
82
83
  Je,
83
84
  {
84
85
  badgeContent: s.length > 0 && /* @__PURE__ */ a(B, { children: [
85
86
  m && /* @__PURE__ */ e(le, { isOffset: !0 }),
86
- h && /* @__PURE__ */ e(de, { isOffset: !0 }),
87
- l && /* @__PURE__ */ e(se, { isOffset: !0 }),
87
+ g && /* @__PURE__ */ e(de, { isOffset: !0 }),
88
+ d && /* @__PURE__ */ e(se, { isOffset: !0 }),
88
89
  b && /* @__PURE__ */ e(ce, { isOffset: !0 })
89
90
  ] }),
90
91
  overlap: "circular",
@@ -99,10 +100,10 @@ const z = {
99
100
  Qe,
100
101
  {
101
102
  "aria-label": `
102
- ${h && i.paid},
103
- ${m && i.missed},
104
- ${l && i.upcoming},
105
- ${b && i.income}`,
103
+ ${g && o.paid},
104
+ ${m && o.missed},
105
+ ${d && o.upcoming},
106
+ ${b && o.income}`,
106
107
  day: t,
107
108
  onClick: () => u(t),
108
109
  outsideCurrentMonth: n,
@@ -113,19 +114,19 @@ const z = {
113
114
  }
114
115
  }
115
116
  },
116
- ...r
117
+ ...i
117
118
  }
118
119
  )
119
120
  }
120
121
  );
121
122
  }
122
- ), $ = ({ icon: t, label: n }) => /* @__PURE__ */ a(d, { alignItems: "center", flexDirection: "row", sx: { gap: 6 }, children: [
123
+ ), $ = ({ icon: t, label: n }) => /* @__PURE__ */ a(l, { alignItems: "center", flexDirection: "row", sx: { gap: 6 }, children: [
123
124
  /* @__PURE__ */ e(t, {}),
124
- /* @__PURE__ */ e(f, { variant: "XSmall", children: n })
125
- ] }), pt = C(() => {
125
+ /* @__PURE__ */ e(h, { variant: "XSmall", children: n })
126
+ ] }), mt = C(() => {
126
127
  const { recurring: t } = R();
127
128
  return /* @__PURE__ */ a(
128
- d,
129
+ l,
129
130
  {
130
131
  alignItems: "center",
131
132
  "aria-hidden": !0,
@@ -142,27 +143,27 @@ const z = {
142
143
  }
143
144
  );
144
145
  }), ye = 58, ve = C(() => {
145
- const t = te(), { onEvent: n } = F(), { selectedDay: r, setDateRange: i } = _(), [o, c] = x.useState(
146
+ const t = te(), { onEvent: n } = z(), { selectedDay: i, setDateRange: o } = _(), [r, c] = x.useState(
146
147
  fe(/* @__PURE__ */ new Date()) * O + ye
147
148
  ), u = (m) => {
148
- c(fe(m) * O + ye), i({
149
- start: N(m),
149
+ c(fe(m) * O + ye), o({
150
+ start: G(m),
150
151
  end: W(m)
151
- }), p(m), n(I.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
152
+ }), p(m), n(S.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
152
153
  }, p = (m) => {
153
154
  m && requestAnimationFrame(() => {
154
- const h = document.getElementById("recurrence-list");
155
- h?.setAttribute("tabindex", "-1"), h?.focus();
155
+ const g = document.getElementById("recurrence-list");
156
+ g?.setAttribute("tabindex", "-1"), g?.focus();
156
157
  });
157
158
  }, s = /* @__PURE__ */ e(
158
- Ve,
159
+ Xe,
159
160
  {
160
- minDate: N(/* @__PURE__ */ new Date()),
161
+ minDate: G(/* @__PURE__ */ new Date()),
161
162
  onChange: p,
162
163
  onMonthChange: u,
163
164
  showDaysOutsideCurrentMonth: !0,
164
165
  slots: {
165
- day: mt
166
+ day: ut
166
167
  },
167
168
  sx: {
168
169
  "& .MuiPickersArrowSwitcher-button": {
@@ -188,10 +189,10 @@ const z = {
188
189
  fontWeight: 600
189
190
  },
190
191
  "& .MuiDayCalendar-slideTransition": {
191
- minHeight: o
192
+ minHeight: r
192
193
  },
193
194
  "&.MuiDateCalendar-root": {
194
- minHeight: o + O
195
+ minHeight: r + O
195
196
  },
196
197
  "& .MuiButtonBase-root, .MuiDayCalendar-weekDayLabel": {
197
198
  height: O,
@@ -203,12 +204,12 @@ const z = {
203
204
  fontSize: t.typography.body2.fontSize
204
205
  }
205
206
  },
206
- value: r,
207
+ value: i,
207
208
  views: ["day"]
208
209
  }
209
210
  );
210
211
  return /* @__PURE__ */ a(
211
- d,
212
+ l,
212
213
  {
213
214
  "aria-describedby": "calendar-description",
214
215
  "aria-labelledby": "calendar-label",
@@ -232,16 +233,16 @@ const z = {
232
233
  children: "Calendar filter for recurring transactions list. Filter by month or select specific date."
233
234
  }
234
235
  ),
235
- /* @__PURE__ */ a(Xe, { dateAdapter: qe, children: [
236
- r && s,
237
- !r && s,
238
- /* @__PURE__ */ e(pt, {})
236
+ /* @__PURE__ */ a(qe, { dateAdapter: Ve, children: [
237
+ i && s,
238
+ !i && s,
239
+ /* @__PURE__ */ e(mt, {})
239
240
  ] })
240
241
  ]
241
242
  }
242
243
  );
243
- }), gt = (t) => {
244
- if (t.type === M.Income)
244
+ }), pt = (t) => {
245
+ if (t.type === I.Income)
245
246
  return /* @__PURE__ */ e(ce, {});
246
247
  switch (t.status) {
247
248
  case T.Missed:
@@ -251,25 +252,25 @@ const z = {
251
252
  default:
252
253
  return /* @__PURE__ */ e(se, {});
253
254
  }
254
- }, ht = (t, n) => {
255
+ }, gt = (t, n) => {
255
256
  switch (t.status) {
256
257
  case T.Paid:
257
258
  return t.expectedDate ? E(
258
259
  n.paid_on,
259
- L(
260
+ v(
260
261
  t.occurredOnDate || t.expectedDate,
261
- A.MONTH_DAY
262
+ L.MONTH_DAY
262
263
  )
263
264
  ) : n.paid;
264
265
  case T.Missed:
265
266
  return E(
266
267
  n.missed_on,
267
- L(t.expectedDate, A.MONTH_DAY)
268
+ v(t.expectedDate, L.MONTH_DAY)
268
269
  );
269
270
  case T.Upcoming:
270
271
  return E(
271
272
  n.upcoming_on,
272
- L(t.expectedDate, A.MONTH_DAY)
273
+ v(t.expectedDate, L.MONTH_DAY)
273
274
  );
274
275
  default:
275
276
  return n.unknown;
@@ -277,39 +278,39 @@ const z = {
277
278
  }, Ce = ({
278
279
  recurrence: t,
279
280
  isMini: n = !1,
280
- onRecurrenceClick: r = () => {
281
+ onRecurrenceClick: i = () => {
281
282
  },
282
- showOrdinal: i = !1
283
+ showOrdinal: o = !1
283
284
  }) => {
284
- const { recurring: o } = R(), { detailedRepeatingTransactions: c } = _(), [u, p] = x.useState(!1), s = x.useMemo(
285
- () => c.find((D) => D.guid === t.repeatingTransactionGuid),
285
+ const { recurring: r } = R(), { detailedRepeatingTransactions: c } = _(), [u, p] = x.useState(!1), s = x.useMemo(
286
+ () => c.find((A) => A.guid === t.repeatingTransactionGuid),
286
287
  [t, c]
287
- ), l = t.type === M.Income, m = t.status === T.Paid, h = t.status === T.Missed, b = t.status === T.Upcoming;
288
- let y = o.paid?.toLowerCase();
289
- return h ? y = o.missed?.toLowerCase() : b && (y = i ? xe(o, s || {}, !0) : xe(o, s || {}, !1)), //TODO: implement common/components/ListItemRow.tsx
290
- /* @__PURE__ */ a(_e, { disableGutters: !0, disablePadding: !0, children: [
291
- /* @__PURE__ */ a(at, { onClick: () => {
292
- p(!0), r(t);
288
+ ), d = t.type === I.Income, m = t.status === T.Paid, g = t.status === T.Missed, b = t.status === T.Upcoming;
289
+ let y = r.paid?.toLowerCase();
290
+ return g ? y = r.missed?.toLowerCase() : b && (y = o ? xe(r, s || {}, !0) : xe(r, s || {}, !1)), //TODO: implement common/components/ListItemRow.tsx
291
+ /* @__PURE__ */ a(Se, { disableGutters: !0, disablePadding: !0, children: [
292
+ /* @__PURE__ */ a(ot, { onClick: () => {
293
+ p(!0), i(t);
293
294
  }, children: [
294
- /* @__PURE__ */ e(ot, { children: /* @__PURE__ */ e(
295
+ /* @__PURE__ */ e(rt, { children: /* @__PURE__ */ e(
295
296
  ee,
296
297
  {
297
298
  categoryGuid: t.categoryGuid,
298
299
  merchantGuid: t.merchantGuid
299
300
  }
300
301
  ) }),
301
- /* @__PURE__ */ e(st, { children: /* @__PURE__ */ a(
302
- d,
302
+ /* @__PURE__ */ e(at, { children: /* @__PURE__ */ a(
303
+ l,
303
304
  {
304
305
  direction: "row",
305
306
  gap: 4,
306
307
  sx: { justifyContent: "space-between", textOverflow: "ellipsis", textWrap: "nowrap" },
307
308
  children: [
308
- /* @__PURE__ */ a(d, { direction: "column", width: "50%", children: [
309
- /* @__PURE__ */ e(f, { bold: !0, variant: "body1", children: t.name }),
310
- /* @__PURE__ */ e(d, { alignItems: "center", direction: "row", gap: 6, children: n ? /* @__PURE__ */ a(d, { direction: "row", gap: 4, children: [
311
- gt(t),
312
- /* @__PURE__ */ e(f, { variant: "caption", children: ht(t, o) })
309
+ /* @__PURE__ */ a(l, { direction: "column", width: "50%", children: [
310
+ /* @__PURE__ */ e(h, { bold: !0, variant: "body1", children: t.name }),
311
+ /* @__PURE__ */ e(l, { alignItems: "center", direction: "row", gap: 6, children: n ? /* @__PURE__ */ a(l, { direction: "row", gap: 4, children: [
312
+ pt(t),
313
+ /* @__PURE__ */ e(h, { variant: "caption", children: gt(t, r) })
313
314
  ] }) : /* @__PURE__ */ a(B, { children: [
314
315
  t.institutionGuid && /* @__PURE__ */ e(
315
316
  Ke,
@@ -319,16 +320,16 @@ const z = {
319
320
  size: 12
320
321
  }
321
322
  ),
322
- /* @__PURE__ */ e(f, { sx: { maxWidth: 250 }, variant: "caption", children: t.institutionName })
323
+ /* @__PURE__ */ e(h, { sx: { maxWidth: 250 }, variant: "caption", children: t.institutionName })
323
324
  ] }) })
324
325
  ] }),
325
- /* @__PURE__ */ a(d, { alignItems: "flex-end", width: "100%", children: [
326
- /* @__PURE__ */ a(f, { bold: !0, color: l ? "success.main" : "text.primary", variant: "body1", children: [
327
- l ? "+" : "",
328
- v(t.amount, "0,0.00")
326
+ /* @__PURE__ */ a(l, { alignItems: "flex-end", width: "100%", children: [
327
+ /* @__PURE__ */ a(h, { bold: !0, color: d ? "success.main" : "text.primary", variant: "body1", children: [
328
+ d ? "+" : "",
329
+ M(t.amount, "0,0.00")
329
330
  ] }),
330
331
  !n && /* @__PURE__ */ a(
331
- d,
332
+ l,
332
333
  {
333
334
  direction: "row",
334
335
  sx: {
@@ -339,9 +340,9 @@ const z = {
339
340
  width: "100%"
340
341
  },
341
342
  children: [
342
- m && /* @__PURE__ */ e(Se, { color: "success", filled: !0, size: 12 }),
343
- h && /* @__PURE__ */ e(Te, { color: "error", filled: !0, size: 12 }),
344
- /* @__PURE__ */ e(f, { bold: !0, color: "text.secondary", variant: "caption", children: y })
343
+ m && /* @__PURE__ */ e(we, { color: "success", filled: !0, size: 12 }),
344
+ g && /* @__PURE__ */ e(De, { color: "error", filled: !0, size: 12 }),
345
+ /* @__PURE__ */ e(h, { bold: !0, color: "text.secondary", variant: "caption", children: y })
345
346
  ]
346
347
  }
347
348
  )
@@ -353,12 +354,12 @@ const z = {
353
354
  /* @__PURE__ */ e(
354
355
  ie,
355
356
  {
356
- ariaLabelClose: o.close_drawer_aria,
357
+ ariaLabelClose: r.close_drawer_aria,
357
358
  isOpen: u,
358
359
  onClose: () => p(!1),
359
- title: t.type === M.Income ? o.income_details : o.expense_details,
360
+ title: t.type === I.Income ? r.income_details : r.expense_details,
360
361
  children: s && /* @__PURE__ */ e(
361
- ct,
362
+ st,
362
363
  {
363
364
  onDeleted: () => p(!1),
364
365
  recurringTransaction: s
@@ -371,153 +372,158 @@ const z = {
371
372
  ({
372
373
  recurrences: t,
373
374
  isMini: n = !1,
374
- onResetClick: r,
375
- onRecurrenceClick: i,
376
- sx: o = {},
375
+ onResetClick: i,
376
+ onRecurrenceClick: o,
377
+ sx: r = {},
377
378
  title: c
378
379
  }) => {
379
- const { recurring: u } = R(), p = x.useMemo(() => tt(t), [t]);
380
- return /* @__PURE__ */ a(d, { id: "recurrence-list", sx: { gap: 8, mt: 4, ...o }, "tab-index": -1, children: [
380
+ const { recurring: u } = R(), p = x.useMemo(() => et(t), [t]);
381
+ return /* @__PURE__ */ a(l, { id: "recurrence-list", sx: { gap: 8, mt: 4, ...r }, "tab-index": -1, children: [
381
382
  c && /* @__PURE__ */ a(
382
- d,
383
+ l,
383
384
  {
384
- sx: { alignItems: "top", direction: "row", justifyContent: "space-between", px: 24 },
385
+ sx: {
386
+ alignItems: "center",
387
+ flexDirection: "row",
388
+ justifyContent: "space-between",
389
+ px: 24
390
+ },
385
391
  children: [
386
- /* @__PURE__ */ e(f, { bold: !0, variant: "body1", children: c }),
387
- r && /* @__PURE__ */ e(rt, { onClick: r, variant: "text", children: u.reset })
392
+ /* @__PURE__ */ e(h, { bold: !0, variant: "body1", children: c }),
393
+ i && /* @__PURE__ */ e(nt, { onClick: i, size: "small", variant: "text", children: u.reset })
388
394
  ]
389
395
  }
390
396
  ),
391
- t.length === 0 ? /* @__PURE__ */ e(f, { fontStyle: "italic", sx: { py: 24, textAlign: "center" }, children: u.no_activities }) : /* @__PURE__ */ e(be, { children: n ? t.map((s, l) => /* @__PURE__ */ a(x.Fragment, { children: [
397
+ t.length === 0 ? /* @__PURE__ */ e(h, { fontStyle: "italic", sx: { py: 24, textAlign: "center" }, children: u.no_activities }) : /* @__PURE__ */ e(be, { children: n ? t.map((s, d) => /* @__PURE__ */ a(x.Fragment, { children: [
392
398
  /* @__PURE__ */ e(
393
399
  Ce,
394
400
  {
395
401
  isMini: n,
396
- onRecurrenceClick: i,
402
+ onRecurrenceClick: o,
397
403
  recurrence: s
398
404
  }
399
405
  ),
400
- /* @__PURE__ */ e(X, { sx: { mx: 24 } })
401
- ] }, `recurrence-${l}`)) : p.map((s, l) => /* @__PURE__ */ a(x.Fragment, { children: [
402
- /* @__PURE__ */ e(_e, { children: /* @__PURE__ */ e(
406
+ /* @__PURE__ */ e(q, { sx: { mx: 24 } })
407
+ ] }, `recurrence-${d}`)) : p.map((s, d) => /* @__PURE__ */ a(x.Fragment, { children: [
408
+ /* @__PURE__ */ e(Se, { children: /* @__PURE__ */ e(
403
409
  be,
404
410
  {
405
- subheader: /* @__PURE__ */ e(it, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ e(f, { bold: !0, variant: "caption", children: L(s.date, A.DAY_OF_WEEK_MONTH_DAY) }) }),
411
+ subheader: /* @__PURE__ */ e(it, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ e(h, { bold: !0, variant: "caption", children: v(s.date, L.DAY_OF_WEEK_MONTH_DAY) }) }),
406
412
  sx: { width: "100%" },
407
- children: s.recurrences.map((m, h) => /* @__PURE__ */ e(x.Fragment, { children: /* @__PURE__ */ e(
413
+ children: s.recurrences.map((m, g) => /* @__PURE__ */ e(x.Fragment, { children: /* @__PURE__ */ e(
408
414
  Ce,
409
415
  {
410
416
  isMini: n,
411
- onRecurrenceClick: i,
417
+ onRecurrenceClick: o,
412
418
  recurrence: m
413
419
  }
414
- ) }, `day-recurrence-${h}`))
420
+ ) }, `day-recurrence-${g}`))
415
421
  }
416
422
  ) }, s.id),
417
- /* @__PURE__ */ e(X, { sx: { mx: 24 } })
418
- ] }, `recurrence-${l}`)) })
423
+ /* @__PURE__ */ e(q, { sx: { mx: 24 } })
424
+ ] }, `recurrence-${d}`)) })
419
425
  ] });
420
426
  }
421
427
  ), Re = C(
422
- ({ expected: t, isExpense: n = !0, missed: r, paid: i, title: o, total: c, upcoming: u }) => {
423
- const p = te(), { isSmallMobile: s } = oe(), { recurring: l } = R(), m = x.useMemo(() => {
424
- const h = [{ color: p.palette.success.main, percentage: `${i / t}` }];
425
- return r && h.push({ color: p.palette.error.main, percentage: `${r / t}` }), h;
426
- }, [i, t, r]);
427
- return /* @__PURE__ */ a(d, { children: [
428
- /* @__PURE__ */ a(d, { sx: { flexDirection: "row", justifyContent: "space-between", pb: 12 }, children: [
429
- /* @__PURE__ */ e(f, { bold: !0, variant: "body1", children: `${o} (${c})` }),
430
- /* @__PURE__ */ e(f, { bold: !0, color: n ? "text.primary" : "success.main", variant: "body1", children: `${n ? "-" : "+"}${v(t, "0,0.00")}` })
428
+ ({ expected: t, isExpense: n = !0, missed: i, paid: o, title: r, total: c, upcoming: u }) => {
429
+ const p = te(), { isSmallMobile: s } = re(), { recurring: d } = R(), m = x.useMemo(() => {
430
+ const g = [{ color: p.palette.success.main, percentage: `${o / t}` }];
431
+ return i && g.push({ color: p.palette.error.main, percentage: `${i / t}` }), g;
432
+ }, [o, t, i]);
433
+ return /* @__PURE__ */ a(l, { children: [
434
+ /* @__PURE__ */ a(l, { sx: { flexDirection: "row", justifyContent: "space-between", pb: 12 }, children: [
435
+ /* @__PURE__ */ e(h, { bold: !0, variant: "body1", children: `${r} (${c})` }),
436
+ /* @__PURE__ */ e(h, { bold: !0, color: n ? "text.primary" : "success.main", variant: "body1", children: `${n ? "-" : "+"}${M(t, "0,0.00")}` })
431
437
  ] }),
432
438
  /* @__PURE__ */ e(Ie, { data: m, height: 12 }),
433
- /* @__PURE__ */ a(d, { sx: { alignItems: "center", flexDirection: "row", gap: 2, my: 8 }, children: [
434
- /* @__PURE__ */ e(G, { sx: { bgcolor: "success.main", height: 8, mr: 8, width: 8 } }),
435
- !s && /* @__PURE__ */ e(f, { bold: !0, variant: "body2", children: v(i, "0,0.00") }),
436
- /* @__PURE__ */ e(f, { variant: "caption", children: l.paid?.toLowerCase() }),
437
- r !== void 0 && /* @__PURE__ */ a(B, { children: [
438
- /* @__PURE__ */ e(G, { sx: { bgcolor: "error.main", height: 8, ml: 16, mr: 8, width: 8 } }),
439
- !s && /* @__PURE__ */ e(f, { bold: !0, variant: "body2", children: v(r, "0,0.00") }),
440
- /* @__PURE__ */ e(f, { variant: "caption", children: l.missed?.toLowerCase() })
439
+ /* @__PURE__ */ a(l, { sx: { alignItems: "center", flexDirection: "row", gap: 2, my: 8 }, children: [
440
+ /* @__PURE__ */ e(N, { sx: { bgcolor: "success.main", height: 8, mr: 8, width: 8 } }),
441
+ !s && /* @__PURE__ */ e(h, { bold: !0, variant: "body2", children: M(o, "0,0.00") }),
442
+ /* @__PURE__ */ e(h, { variant: "caption", children: d.paid?.toLowerCase() }),
443
+ i !== void 0 && /* @__PURE__ */ a(B, { children: [
444
+ /* @__PURE__ */ e(N, { sx: { bgcolor: "error.main", height: 8, ml: 16, mr: 8, width: 8 } }),
445
+ !s && /* @__PURE__ */ e(h, { bold: !0, variant: "body2", children: M(i, "0,0.00") }),
446
+ /* @__PURE__ */ e(h, { variant: "caption", children: d.missed?.toLowerCase() })
441
447
  ] }),
442
- /* @__PURE__ */ e(G, { sx: { bgcolor: "divider", height: 8, ml: 16, mr: 8, width: 8 } }),
443
- !s && /* @__PURE__ */ e(f, { bold: !0, variant: "body2", children: v(u, "0,0.00") }),
444
- /* @__PURE__ */ e(f, { variant: "caption", children: l.upcoming })
448
+ /* @__PURE__ */ e(N, { sx: { bgcolor: "divider", height: 8, ml: 16, mr: 8, width: 8 } }),
449
+ !s && /* @__PURE__ */ e(h, { bold: !0, variant: "body2", children: M(u, "0,0.00") }),
450
+ /* @__PURE__ */ e(h, { variant: "caption", children: d.upcoming })
445
451
  ] })
446
452
  ] });
447
453
  }
448
- ), ft = C(() => {
449
- const { recurring: t } = R(), { availableWidth: n } = we(), { isDesktop: r, isSmallMobile: i, isMobile: o } = oe(n), { onEvent: c } = F(), {
454
+ ), ht = C(() => {
455
+ const { recurring: t } = R(), { availableWidth: n } = _e(), { isDesktop: i, isSmallMobile: o, isMobile: r } = re(n), { onEvent: c } = z(), {
450
456
  currentMonthExpenses: u,
451
457
  currentMonthIncome: p,
452
458
  dateRange: s,
453
- expenseTotal: l,
459
+ expenseTotal: d,
454
460
  incomeTotal: m,
455
- missedExpenseTotal: h,
461
+ missedExpenseTotal: g,
456
462
  pastRecurrences: b,
457
463
  paidExpenseTotal: y,
458
- paidIncomeTotal: g,
459
- selectedDay: D,
464
+ paidIncomeTotal: f,
465
+ selectedDay: A,
460
466
  selectedDayRecurrences: j,
461
467
  setDateRange: w,
462
468
  upcomingExpenseTotal: K,
463
469
  upcomingIncomeTotal: Le,
464
470
  upcomingRecurrences: ue
465
- } = _(), [Y, Ae] = x.useState(0), Ee = Be(s.start, /* @__PURE__ */ new Date()), Ge = (S, ke) => {
471
+ } = _(), [Y, Ae] = x.useState(0), Ee = Be(s.start, /* @__PURE__ */ new Date()), Ne = (D, ke) => {
466
472
  Ae(ke);
467
- }, me = (S) => {
468
- c(I.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
469
- transaction_guid: S.transaction?.guid
473
+ }, me = (D) => {
474
+ c(S.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
475
+ transaction_guid: D.transaction?.guid
470
476
  });
471
- }, pe = (S) => {
472
- c(I.RECURRING_TRANSACTIONS_CLICK_PAID, {
473
- transaction_guid: S.transaction?.guid
477
+ }, pe = (D) => {
478
+ c(S.RECURRING_TRANSACTIONS_CLICK_PAID, {
479
+ transaction_guid: D.transaction?.guid
474
480
  });
475
- }, Ne = () => {
476
- const S = We(s.start, 1);
481
+ }, Ge = () => {
482
+ const D = We(s.start, 1);
477
483
  w({
478
- start: N(S),
479
- end: W(S)
484
+ start: G(D),
485
+ end: W(D)
480
486
  });
481
487
  }, Oe = () => {
482
- const S = $e(s.start, 1);
488
+ const D = $e(s.start, 1);
483
489
  w({
484
- start: N(S),
485
- end: W(S)
490
+ start: G(D),
491
+ end: W(D)
486
492
  });
487
493
  };
488
494
  return /* @__PURE__ */ a(
489
- q,
495
+ V,
490
496
  {
491
497
  container: !0,
492
498
  sx: {
493
499
  pt: 16
494
500
  },
495
501
  children: [
496
- /* @__PURE__ */ a(q, { md: !0, sm: 12, width: "100%", children: [
497
- /* @__PURE__ */ a(d, { sx: { gap: 16, px: r ? 48 : 24 }, children: [
498
- /* @__PURE__ */ a(d, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
502
+ /* @__PURE__ */ a(V, { md: !0, sm: 12, width: "100%", children: [
503
+ /* @__PURE__ */ a(l, { sx: { gap: 16, px: i ? 48 : 24 }, children: [
504
+ /* @__PURE__ */ a(l, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
499
505
  /* @__PURE__ */ e(Ye, { children: E(
500
506
  t.header_title,
501
- L(s.start, A.MONTH_LONG)
507
+ v(s.start, L.MONTH_LONG)
502
508
  ) }),
503
- !r && /* @__PURE__ */ a(d, { direction: "row", gap: 4, children: [
509
+ !i && /* @__PURE__ */ a(l, { direction: "row", gap: 4, children: [
504
510
  /* @__PURE__ */ e(
505
511
  ge,
506
512
  {
507
513
  color: "primary",
508
514
  disabled: Ee,
509
515
  onClick: Oe,
510
- children: /* @__PURE__ */ e(ze, {})
516
+ children: /* @__PURE__ */ e(Fe, {})
511
517
  }
512
518
  ),
513
- /* @__PURE__ */ e(ge, { color: "primary", onClick: Ne, children: /* @__PURE__ */ e(Ue, {}) })
519
+ /* @__PURE__ */ e(ge, { color: "primary", onClick: Ge, children: /* @__PURE__ */ e(Ue, {}) })
514
520
  ] })
515
521
  ] }),
516
522
  /* @__PURE__ */ e(
517
523
  Re,
518
524
  {
519
- expected: l,
520
- missed: h,
525
+ expected: d,
526
+ missed: g,
521
527
  paid: y,
522
528
  title: t.expenses,
523
529
  total: u.length,
@@ -529,13 +535,13 @@ const z = {
529
535
  {
530
536
  expected: m,
531
537
  isExpense: !1,
532
- paid: g,
538
+ paid: f,
533
539
  title: t.deposits,
534
540
  total: p.length,
535
541
  upcoming: Le
536
542
  }
537
543
  ),
538
- r && /* @__PURE__ */ e(
544
+ i && /* @__PURE__ */ e(
539
545
  k,
540
546
  {
541
547
  onRecurrenceClick: me,
@@ -544,18 +550,18 @@ const z = {
544
550
  }
545
551
  )
546
552
  ] }),
547
- !r && /* @__PURE__ */ a(d, { sx: { px: o ? 0 : 24 }, children: [
548
- /* @__PURE__ */ a(Pe, { onChange: Ge, value: Y, variant: "fullWidth", children: [
553
+ !i && /* @__PURE__ */ a(l, { sx: { px: r ? 0 : 24 }, children: [
554
+ /* @__PURE__ */ a(Pe, { onChange: Ne, value: Y, variant: "fullWidth", children: [
549
555
  /* @__PURE__ */ e(
550
556
  he,
551
557
  {
552
- label: /* @__PURE__ */ e(f, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: i ? t.upcoming : t.upcoming_activity })
558
+ label: /* @__PURE__ */ e(h, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: o ? t.upcoming : t.upcoming_activity })
553
559
  }
554
560
  ),
555
561
  /* @__PURE__ */ e(
556
562
  he,
557
563
  {
558
- label: /* @__PURE__ */ e(f, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: i ? t.past : t.past_transactions })
564
+ label: /* @__PURE__ */ e(h, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: o ? t.past : t.past_transactions })
559
565
  }
560
566
  )
561
567
  ] }),
@@ -575,16 +581,16 @@ const z = {
575
581
  )
576
582
  ] })
577
583
  ] }),
578
- r && /* @__PURE__ */ e(q, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ a(d, { gap: 24, children: [
584
+ i && /* @__PURE__ */ e(V, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ a(l, { gap: 24, children: [
579
585
  /* @__PURE__ */ e(ve, {}),
580
586
  /* @__PURE__ */ e(
581
587
  k,
582
588
  {
583
589
  onRecurrenceClick: pe,
584
590
  recurrences: j || b,
585
- title: D ? E(
591
+ title: A ? E(
586
592
  t.day_transactions,
587
- L(D, A.MONTH_DAY)
593
+ v(A, L.MONTH_DAY)
588
594
  ) : t.past_transactions
589
595
  }
590
596
  )
@@ -592,86 +598,85 @@ const z = {
592
598
  ]
593
599
  }
594
600
  );
595
- }), Tn = C(({ onBackClick: t, sx: n = {} }) => {
596
- const { accounts: r } = ne(), { recurring: i } = R(), { isInitialized: o, selectedAccountGuids: c, setSelectedAccounts: u } = H(), { isDataLoaded: p, loadRepeatingTransactionData: s, setDateRange: l } = _(), { setFilter: m } = re(), { onEvent: h } = F(), { onLoad: b } = et(), { isMobile: y } = oe(), [g, D] = x.useState(!1);
597
- return x.useEffect(() => {
598
- p || s().finally(() => {
599
- b?.("RecurringTransactionsWidget");
600
- });
601
+ }), Dn = C(({ onBackClick: t, sx: n = {} }) => {
602
+ const { recurring: i } = R(), { isInitialized: o, selectedAccountGuids: r } = H(), { isDataLoaded: c, loadRepeatingTransactionData: u, setDateRange: p } = _(), { setFilter: s } = ne(), { onEvent: d } = z(), { isMobile: m } = re(), [g, b] = x.useState(!1);
603
+ return ae({
604
+ widgetName: "RecurringTransactionsWidget",
605
+ isLoaded: c
606
+ }), x.useEffect(() => {
607
+ c || u().finally();
601
608
  }, []), x.useEffect(() => {
602
- u(r);
603
- }, [r]), x.useEffect(() => {
604
- m({
609
+ s({
605
610
  dateRange: { start: Q(J(), 90), end: Z() },
606
- accounts: c
607
- }), l({ start: N(/* @__PURE__ */ new Date()), end: W(/* @__PURE__ */ new Date()) });
608
- }, [c]), o ? /* @__PURE__ */ a(
609
- nt,
611
+ accounts: r
612
+ }), p({ start: G(/* @__PURE__ */ new Date()), end: W(/* @__PURE__ */ new Date()) });
613
+ }, [r]), o ? /* @__PURE__ */ a(
614
+ tt,
610
615
  {
611
- accountOptions: r,
612
616
  actions: [
613
617
  {
614
618
  label: i.action_title,
615
619
  iconName: "credit_card_gear",
616
620
  onClick: () => {
617
- D(!0), h(I.RECURRING_TRANSACTIONS_CLICK_SETTINGS);
621
+ b(!0), d(S.RECURRING_TRANSACTIONS_CLICK_SETTINGS);
618
622
  }
619
623
  }
620
624
  ],
621
- hasDivider: y,
622
- onAccountsFilterClick: () => h(I.RECURRING_TRANSACTIONS_CLICK_FILTER),
625
+ hasDivider: m,
626
+ onAccountsFilterClick: () => d(S.RECURRING_TRANSACTIONS_CLICK_FILTER),
623
627
  onBackClick: t,
624
628
  sx: n,
625
629
  title: i.title,
626
630
  children: [
627
- p ? /* @__PURE__ */ e(ft, {}) : /* @__PURE__ */ e(Me, { variant: "list" }),
631
+ c ? /* @__PURE__ */ e(ht, {}) : /* @__PURE__ */ e(Me, { sx: { m: 48 }, variant: "list" }),
628
632
  /* @__PURE__ */ e(
629
633
  ie,
630
634
  {
631
635
  ariaLabelClose: i.close_drawer_aria,
632
636
  isOpen: g,
633
- onClose: () => D(!1),
637
+ onClose: () => b(!1),
634
638
  shouldShowHeaderBorders: !1,
635
639
  title: i.action_title,
636
- children: /* @__PURE__ */ e(De, {})
640
+ children: /* @__PURE__ */ e(Te, {})
637
641
  }
638
642
  )
639
643
  ]
640
644
  }
641
- ) : /* @__PURE__ */ e(ae, {});
642
- }), xt = C(() => {
643
- const { recurring: t } = R(), { availableWidth: n } = we(), { selectedDay: r, selectedDayRecurrences: i, setSelectedDay: o, upcomingRecurrences: c } = _(), u = n < 750;
644
- return /* @__PURE__ */ a(d, { flexDirection: u ? "column" : "row", width: "100%", children: [
645
+ ) : /* @__PURE__ */ e(oe, {});
646
+ }), ft = C(() => {
647
+ const { recurring: t } = R(), { availableWidth: n } = _e(), { selectedDay: i, selectedDayRecurrences: o, setSelectedDay: r, upcomingRecurrences: c } = _(), u = n < 750;
648
+ return /* @__PURE__ */ a(l, { flexDirection: u ? "column" : "row", width: "100%", children: [
645
649
  /* @__PURE__ */ e(ve, {}),
646
- !u && /* @__PURE__ */ e(X, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
650
+ !u && /* @__PURE__ */ e(q, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
647
651
  /* @__PURE__ */ e(
648
652
  k,
649
653
  {
650
654
  isMini: !0,
651
- onResetClick: r ? () => o(r) : void 0,
652
- recurrences: i || c.slice(0, 5),
655
+ onResetClick: i ? () => r(i) : void 0,
656
+ recurrences: o || c.slice(0, 5),
653
657
  sx: { width: u ? "100%" : "calc(100% - 336px)", mt: 12 },
654
- title: r ? E(
658
+ title: i ? E(
655
659
  t.day_transactions,
656
- L(r, A.MONTH_DAY)
660
+ v(i, L.MONTH_DAY)
657
661
  ) : t.upcoming_activity
658
662
  }
659
663
  )
660
664
  ] });
661
- }), Sn = C(
665
+ }), wn = C(
662
666
  ({ onPrimaryCtaClick: t, sx: n }) => {
663
- const { accounts: r } = ne(), { recurring: i } = R(), { setFilter: o } = re(), { isDataLoaded: c, loadRepeatingTransactionData: u } = _(), { isInitialized: p, setSelectedAccounts: s, selectedAccountGuids: l } = H();
664
- return x.useEffect(() => {
665
- c || u().finally();
667
+ const { recurring: i } = R(), { setFilter: o } = ne(), { isDataLoaded: r, loadRepeatingTransactionData: c } = _(), { isInitialized: u, selectedAccountGuids: p } = H();
668
+ return ae({
669
+ widgetName: "RecurringTransactionsMiniWidget",
670
+ isLoaded: r
671
+ }), x.useEffect(() => {
672
+ r || c().finally();
666
673
  }, []), x.useEffect(() => {
667
- s(r);
668
- }, [r]), x.useEffect(() => {
669
- l.length > 0 && o({
674
+ p.length > 0 && o({
670
675
  dateRange: { start: Q(J(), 90), end: Z() },
671
- accounts: l
676
+ accounts: p
672
677
  });
673
- }, [l]), p ? /* @__PURE__ */ e(
674
- lt,
678
+ }, [p]), u ? /* @__PURE__ */ e(
679
+ ct,
675
680
  {
676
681
  className: "mx-exp-recurring-transactions-miniwidget",
677
682
  onPrimaryCtaClick: t,
@@ -679,28 +684,28 @@ const z = {
679
684
  subTitle: i.sub_title,
680
685
  sx: n,
681
686
  title: i.mini_title,
682
- children: c ? /* @__PURE__ */ e(xt, {}) : /* @__PURE__ */ e(Me, { sx: { mx: 16 }, variant: "list" })
687
+ children: r ? /* @__PURE__ */ e(ft, {}) : /* @__PURE__ */ e(Me, { sx: { mx: 16 }, variant: "list" })
683
688
  }
684
- ) : /* @__PURE__ */ e(ae, {});
689
+ ) : /* @__PURE__ */ e(oe, {});
685
690
  }
686
- ), bt = C(() => {
691
+ ), xt = C(() => {
687
692
  const { recurring: t } = R();
688
- return /* @__PURE__ */ a(d, { sx: { alignItems: "start", flexDirection: "row", gap: 12 }, children: [
693
+ return /* @__PURE__ */ a(l, { sx: { alignItems: "start", flexDirection: "row", gap: 12 }, children: [
689
694
  /* @__PURE__ */ e(je, { size: 32 }),
690
- /* @__PURE__ */ a(d, { children: [
691
- /* @__PURE__ */ e(V, { fontWeight: 600, variant: "body1", children: t.zero_state_content_header }),
692
- /* @__PURE__ */ e(V, { color: "text.secondary", variant: "subtitle2", children: t.zero_state_content_description })
695
+ /* @__PURE__ */ a(l, { children: [
696
+ /* @__PURE__ */ e(X, { fontWeight: 600, variant: "body1", children: t.zero_state_content_header }),
697
+ /* @__PURE__ */ e(X, { color: "text.secondary", variant: "subtitle2", children: t.zero_state_content_description })
693
698
  ] })
694
699
  ] });
695
- }), yt = ({
700
+ }), bt = ({
696
701
  amount: t,
697
702
  bgcolor: n,
698
- isLargeScreen: r,
699
- isSmallScreen: i,
700
- label: o
701
- }) => /* @__PURE__ */ a(d, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
703
+ isLargeScreen: i,
704
+ isSmallScreen: o,
705
+ label: r
706
+ }) => /* @__PURE__ */ a(l, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
702
707
  /* @__PURE__ */ e(
703
- G,
708
+ N,
704
709
  {
705
710
  sx: {
706
711
  borderRadius: "2px",
@@ -710,29 +715,29 @@ const z = {
710
715
  }
711
716
  }
712
717
  ),
713
- /* @__PURE__ */ a(d, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
714
- !i && /* @__PURE__ */ e(f, { bold: !0, variant: "caption", children: v(t, t === 0 || !r ? "0,0" : "0,0.00") }),
715
- /* @__PURE__ */ e(f, { variant: "caption", children: o })
718
+ /* @__PURE__ */ a(l, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
719
+ !o && /* @__PURE__ */ e(h, { bold: !0, variant: "caption", children: M(t, t === 0 || !i ? "0,0" : "0,0.00") }),
720
+ /* @__PURE__ */ e(h, { variant: "caption", children: r })
716
721
  ] })
717
- ] }), Ct = ({
722
+ ] }), yt = ({
718
723
  upcomingRecurrences: t,
719
724
  logoSize: n = 32,
720
- maxLogos: r = 3
725
+ maxLogos: i = 3
721
726
  }) => {
722
- const i = (o) => o * (n / 2);
727
+ const o = (r) => r * (n / 2);
723
728
  return /* @__PURE__ */ e(
724
- G,
729
+ N,
725
730
  {
726
731
  sx: {
727
732
  position: "relative",
728
733
  width: 64
729
734
  },
730
- children: t.map((o, c) => c < r ? /* @__PURE__ */ e(
731
- G,
735
+ children: t.map((r, c) => c < i ? /* @__PURE__ */ e(
736
+ N,
732
737
  {
733
738
  sx: {
734
739
  borderRadius: "4px",
735
- left: i(c),
740
+ left: o(c),
736
741
  outlineColor: "common.white",
737
742
  outlineStyle: "solid",
738
743
  outlineWidth: 2,
@@ -741,55 +746,55 @@ const z = {
741
746
  children: /* @__PURE__ */ e(
742
747
  ee,
743
748
  {
744
- categoryGuid: o.categoryGuid || "",
745
- merchantGuid: o.merchantGuid || "",
749
+ categoryGuid: r.categoryGuid || "",
750
+ merchantGuid: r.merchantGuid || "",
746
751
  size: n
747
752
  }
748
753
  )
749
754
  },
750
- `${o.categoryGuid}-${o.merchantGuid}-${c}`
755
+ `${r.categoryGuid}-${r.merchantGuid}-${c}`
751
756
  ) : null)
752
757
  }
753
758
  );
754
- }, Rt = ({
759
+ }, Ct = ({
755
760
  upcomingRecurrences: t,
756
761
  maxLogos: n = 3
757
- }) => /* @__PURE__ */ e(d, { sx: { flexDirection: "row", gap: 4 }, children: t?.slice(0, n).map((r, i) => /* @__PURE__ */ e(
762
+ }) => /* @__PURE__ */ e(l, { sx: { flexDirection: "row", gap: 4 }, children: t?.slice(0, n).map((i, o) => /* @__PURE__ */ e(
758
763
  ee,
759
764
  {
760
- categoryGuid: r.categoryGuid || "",
761
- merchantGuid: r.merchantGuid || ""
765
+ categoryGuid: i.categoryGuid || "",
766
+ merchantGuid: i.merchantGuid || ""
762
767
  },
763
- `${r.categoryGuid}-${r.merchantGuid}-${i}`
764
- )) }), Dt = C(() => {
765
- const t = te(), [n, { width: r }] = dt(), {
766
- upcomingRecurrences: i,
767
- expenseTotal: o,
768
+ `${i.categoryGuid}-${i.merchantGuid}-${o}`
769
+ )) }), Rt = C(() => {
770
+ const t = te(), [n, { width: i }] = lt(), {
771
+ upcomingRecurrences: o,
772
+ expenseTotal: r,
768
773
  missedExpenseTotal: c,
769
774
  paidExpenseTotal: u,
770
775
  upcomingExpenseTotal: p
771
- } = _(), { recurring: s } = R(), l = r <= 288, m = r >= 450, h = 32, b = i.length > 0, y = x.useMemo(() => v(o, o === 0 ? "0,0" : "0,0.00"), [o]), g = x.useMemo(() => {
776
+ } = _(), { recurring: s } = R(), d = i <= 288, m = i >= 450, g = 32, b = o.length > 0, y = x.useMemo(() => M(r, r === 0 ? "0,0" : "0,0.00"), [r]), f = x.useMemo(() => {
772
777
  const w = [
773
- { color: t.palette.success.main, percentage: `${u / o}` }
778
+ { color: t.palette.success.main, percentage: `${u / r}` }
774
779
  ];
775
780
  return c && w.push({
776
781
  color: t.palette.error.main,
777
- percentage: `${c / o}`
782
+ percentage: `${c / r}`
778
783
  }), w;
779
784
  }, [
780
785
  u,
781
- o,
786
+ r,
782
787
  c,
783
788
  t.palette.success.main,
784
789
  t.palette.error.main
785
- ]), D = () => b ? l ? /* @__PURE__ */ e(
786
- Ct,
790
+ ]), A = () => b ? d ? /* @__PURE__ */ e(
791
+ yt,
787
792
  {
788
- logoSize: h,
793
+ logoSize: g,
789
794
  maxLogos: 3,
790
- upcomingRecurrences: i.slice(0, 3)
795
+ upcomingRecurrences: o.slice(0, 3)
791
796
  }
792
- ) : /* @__PURE__ */ e(Rt, { maxLogos: 3, upcomingRecurrences: i.slice(0, 3) }) : /* @__PURE__ */ e(d, { sx: { width: l ? 64 : 104 } }), j = [
797
+ ) : /* @__PURE__ */ e(Ct, { maxLogos: 3, upcomingRecurrences: o.slice(0, 3) }) : /* @__PURE__ */ e(l, { sx: { width: d ? 64 : 104 } }), j = [
793
798
  {
794
799
  amount: u,
795
800
  bgColor: "success.main",
@@ -807,12 +812,12 @@ const z = {
807
812
  }
808
813
  ];
809
814
  return /* @__PURE__ */ a(B, { children: [
810
- /* @__PURE__ */ a(d, { ref: n, sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
815
+ /* @__PURE__ */ a(l, { ref: n, sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
811
816
  /* @__PURE__ */ a(
812
- d,
817
+ l,
813
818
  {
814
819
  sx: [
815
- y.length >= 10 && l ? { flexDirection: "column" } : { flexDirection: "row", gap: 2 },
820
+ y.length >= 10 && d ? { flexDirection: "column" } : { flexDirection: "row", gap: 2 },
816
821
  {
817
822
  alignItems: "baseline",
818
823
  overflow: "hidden",
@@ -822,23 +827,23 @@ const z = {
822
827
  ],
823
828
  children: [
824
829
  /* @__PURE__ */ e(
825
- f,
830
+ h,
826
831
  {
827
832
  sx: { width: "100%" },
828
- variant: y.length >= 10 && l ? "H3" : "H2",
833
+ variant: y.length >= 10 && d ? "H3" : "H2",
829
834
  children: y
830
835
  }
831
836
  ),
832
- /* @__PURE__ */ e(V, { sx: { pr: 12 }, variant: "XSmall", children: s.expected })
837
+ /* @__PURE__ */ e(X, { sx: { pr: 12 }, variant: "XSmall", children: s.expected })
833
838
  ]
834
839
  }
835
840
  ),
836
- D()
841
+ A()
837
842
  ] }),
838
- /* @__PURE__ */ a(d, { sx: { pt: 12 }, children: [
839
- /* @__PURE__ */ e(Ie, { data: g }),
843
+ /* @__PURE__ */ a(l, { sx: { pt: 12 }, children: [
844
+ /* @__PURE__ */ e(Ie, { data: f }),
840
845
  /* @__PURE__ */ e(
841
- d,
846
+ l,
842
847
  {
843
848
  sx: {
844
849
  alignItems: "center",
@@ -847,12 +852,12 @@ const z = {
847
852
  mt: 4
848
853
  },
849
854
  children: j.map((w, K) => /* @__PURE__ */ e(
850
- yt,
855
+ bt,
851
856
  {
852
857
  amount: w.amount,
853
858
  bgcolor: w.bgColor,
854
859
  isLargeScreen: m,
855
- isSmallScreen: l,
860
+ isSmallScreen: d,
856
861
  label: w.label
857
862
  },
858
863
  `recurrence-legend-${K}`
@@ -861,71 +866,72 @@ const z = {
861
866
  )
862
867
  ] })
863
868
  ] });
864
- }), wn = C(
869
+ }), _n = C(
865
870
  ({ onCTAClick: t }) => {
866
- const { onEvent: n } = F(), { accounts: r } = ne(), { isInitialized: i, selectedAccountGuids: o, setSelectedAccounts: c } = H(), {
867
- loadRepeatingTransactionData: u,
868
- upcomingRecurrences: p,
869
- repeatingTransactions: s,
870
- setDateRange: l,
871
- isDataLoaded: m
872
- } = _(), { setFilter: h } = re(), { recurring: b, budgets: y } = R();
873
- x.useEffect(() => {
874
- m || u().finally(() => {
875
- n(I.RECURRING_TRANSACTIONS_LOAD_WIDGET, {
876
- state: p.length > 0 ? "default" : "zeroState"
871
+ const { onEvent: n } = z(), { isInitialized: i, selectedAccountGuids: o } = H(), {
872
+ loadRepeatingTransactionData: r,
873
+ upcomingRecurrences: c,
874
+ repeatingTransactions: u,
875
+ setDateRange: p,
876
+ isDataLoaded: s
877
+ } = _(), { setFilter: d } = ne(), { recurring: m, budgets: g } = R();
878
+ ae({
879
+ widgetName: "RecurringTransactionsMicroWidget",
880
+ isLoaded: s
881
+ }), x.useEffect(() => {
882
+ s || r().finally(() => {
883
+ n(S.RECURRING_TRANSACTIONS_LOAD_WIDGET, {
884
+ state: c.length > 0 ? "default" : "zeroState"
877
885
  });
878
886
  });
879
887
  }, []), x.useEffect(() => {
880
- i && c(r);
881
- }, [i, r]), x.useEffect(() => {
882
- i && (h({
888
+ i && (d({
883
889
  dateRange: { start: Q(J(), 90), end: Z() },
884
890
  accounts: o
885
- }), l({ start: N(/* @__PURE__ */ new Date()), end: W(/* @__PURE__ */ new Date()) }));
891
+ }), p({ start: G(/* @__PURE__ */ new Date()), end: W(/* @__PURE__ */ new Date()) }));
886
892
  }, [i, o]);
887
- const g = () => {
893
+ const b = () => {
888
894
  n(
889
- p.length > 0 ? I.RECURRING_TRANSACTIONS_CLICK_GET_STARTED : I.RECURRING_TRANSACTIONS_CLICK_VIEW_ALL
895
+ c.length > 0 ? S.RECURRING_TRANSACTIONS_CLICK_GET_STARTED : S.RECURRING_TRANSACTIONS_CLICK_VIEW_ALL
890
896
  ), t();
891
897
  };
892
- if (!i || !m) return /* @__PURE__ */ e(ae, { height: 100 });
893
- const D = !s?.length;
898
+ if (!i || !s) return /* @__PURE__ */ e(oe, { height: 100 });
899
+ const y = !u?.length;
894
900
  return /* @__PURE__ */ e(
895
- ut,
901
+ dt,
896
902
  {
897
903
  className: "mx-recurring-transaction-microwidget",
898
- ctaLabel: D ? y.get_started_cta : b.primary_cta,
899
- onCTAClick: g,
900
- title: b.recurring_expenses,
901
- children: D ? /* @__PURE__ */ e(bt, {}) : /* @__PURE__ */ e(Dt, {})
904
+ ctaLabel: y ? g.get_started_cta : m.primary_cta,
905
+ onCTAClick: b,
906
+ title: m.recurring_expenses,
907
+ children: y ? /* @__PURE__ */ e(xt, {}) : /* @__PURE__ */ e(Rt, {})
902
908
  }
903
909
  );
904
910
  }
905
- ), _n = C(
906
- ({ isOpen: t, onClose: n, selectedTab: r }) => {
907
- const { cashflow: i } = R();
911
+ ), Sn = C(
912
+ ({ isOpen: t, onClose: n, selectedTab: i }) => {
913
+ const { cashflow: o } = R();
908
914
  return /* @__PURE__ */ e(
909
915
  ie,
910
916
  {
911
- ariaLabelClose: i.close_settings_aria,
917
+ ariaLabelClose: o.close_settings_aria,
912
918
  isOpen: t,
913
919
  onClose: n,
914
- title: i.cashflow_settings,
915
- children: /* @__PURE__ */ e(De, { defaultSelectedTab: r })
920
+ title: o.cashflow_settings,
921
+ children: /* @__PURE__ */ e(Te, { defaultSelectedTab: i })
916
922
  }
917
923
  );
918
924
  }
919
925
  );
920
926
  export {
921
- Gn as AddRecurringTransactionDetails,
927
+ Nn as AddRecurringTransactionDetails,
922
928
  vn as ManageExpenses,
923
- Nn as ManageIncome,
924
- De as RecurringSettings,
925
- _n as RecurringSettingsDrawer,
926
- wn as RecurringTransactionsMicroWidget,
927
- Sn as RecurringTransactionsMiniWidget,
929
+ Gn as ManageIncome,
930
+ Te as RecurringSettings,
931
+ Sn as RecurringSettingsDrawer,
932
+ _n as RecurringTransactionsMicroWidget,
933
+ wn as RecurringTransactionsMiniWidget,
928
934
  An as RecurringTransactionsStore,
929
- Tn as RecurringTransactionsWidget,
935
+ Dn as RecurringTransactionsWidget,
930
936
  On as SelectTransaction
931
937
  };