@mx-cartographer/experiences 7.0.32-alpha-recurring-transactions-navigation-issue-ram2 → 7.0.33

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 (100) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/{Account-CK-DrCEa.mjs → Account-DeMa6XJz.mjs} +1 -1
  3. package/dist/{AccountDetailsContent-BGXM8acm.mjs → AccountDetailsContent-BwTOak3W.mjs} +8 -8
  4. package/dist/{AccountDetailsHeader-Dwk01nsY.mjs → AccountDetailsHeader-BCW4d-j4.mjs} +5 -5
  5. package/dist/{AccountFields-5i77eFJ6.mjs → AccountFields-B-igjxt-.mjs} +2 -2
  6. package/dist/{AccountListItem-BiST9IgK.mjs → AccountListItem-DAF9c7_x.mjs} +3 -3
  7. package/dist/{AccountStore-DiGbJBUT.mjs → AccountStore-Bzy6rKGo.mjs} +26 -26
  8. package/dist/{Accounts-BBkQjUmS.mjs → Accounts-DNMSlq9A.mjs} +1 -1
  9. package/dist/{BeatApi-DLu87ijw.mjs → BeatApi-DhJpgCLz.mjs} +3 -3
  10. package/dist/{BeatStore-By4aGoRM.mjs → BeatStore-IBnXd4YK.mjs} +17 -17
  11. package/dist/{BudgetUtil-D5jO0box.mjs → BudgetUtil-Iw9hUxhI.mjs} +1 -1
  12. package/dist/{CategorySelectorDrawer-joMax4Fb.mjs → CategorySelectorDrawer-CMorcKFW.mjs} +1 -1
  13. package/dist/{CategoryStore-BOyzQjQp.mjs → CategoryStore-BCcpI3oJ.mjs} +4 -4
  14. package/dist/{ConnectDrawer-D86nRDxQ.mjs → ConnectDrawer-jeSmGg38.mjs} +1 -1
  15. package/dist/{ConnectionsDrawer-BkNr5Up0.mjs → ConnectionsDrawer-hdOVHICr.mjs} +2 -2
  16. package/dist/{CurrencyInput-BkflFU_-.mjs → CurrencyInput-C0wTgNV6.mjs} +1 -1
  17. package/dist/{DebtsStore-qrqY9Abz.mjs → DebtsStore-C2OfwE0t.mjs} +1 -1
  18. package/dist/{ExportCsvAction-DRfdZis1.mjs → ExportCsvAction-BlKpQTTL.mjs} +3 -3
  19. package/dist/{Fetch-CkFKy79O.mjs → Fetch-87LIQbEA.mjs} +11 -10
  20. package/dist/{FinstrongStore-mkALvztw.mjs → FinstrongStore-F2c607dj.mjs} +4 -4
  21. package/dist/{GoalStore-BQRcowCN.mjs → GoalStore-D2A2Lqd5.mjs} +6 -6
  22. package/dist/{Help-B3dFeYi2.mjs → Help-DwKXfnqC.mjs} +1 -1
  23. package/dist/{LineChart-Dyps2sOy.mjs → LineChart-DNC5UEt4.mjs} +1 -1
  24. package/dist/{ListItemAction-BgKx_n6d.mjs → ListItemAction-Dt9A2GQk.mjs} +1 -1
  25. package/dist/{ManageIncome-Byw3lVtR.mjs → ManageIncome-C0CbczlY.mjs} +4 -4
  26. package/dist/MerchantStore-DrFvsUyy.mjs +37 -0
  27. package/dist/{MicroWidgetContainer-DPDsZIiS.mjs → MicroWidgetContainer-DVRe-MJs.mjs} +1 -1
  28. package/dist/{MiniWidgetContainer-BzW7V_04.mjs → MiniWidgetContainer-C_N1u9ad.mjs} +1 -1
  29. package/dist/{NetWorthStore-DWG9Mkuu.mjs → NetWorthStore-CD4WWdXC.mjs} +2 -2
  30. package/dist/{NotificationSettings-B9wNyWEL.mjs → NotificationSettings-CtbJFbrv.mjs} +3 -3
  31. package/dist/{NotificationStore-DHtSGySy.mjs → NotificationStore-C6PH6MKm.mjs} +8 -4
  32. package/dist/{OriginalBalanceAction-B--pIAF0.mjs → OriginalBalanceAction-CqQ5j4OW.mjs} +3 -3
  33. package/dist/{RecurringSettings-ClbdFNWX.mjs → RecurringSettings-DR9KuVEN.mjs} +3 -3
  34. package/dist/{RecurringTransactionsStore-D62XJtdL.mjs → RecurringTransactionsStore-DeLXfuC4.mjs} +20 -16
  35. package/dist/{SettingsStore-B0kRTFjD.mjs → SettingsStore-Dc34Tzx8.mjs} +33 -29
  36. package/dist/{TransactionApi-DbbcjI2L.mjs → TransactionApi-B3Tksf7L.mjs} +29 -29
  37. package/dist/{TransactionDetails-C4PW8SRL.mjs → TransactionDetails-BafSm7_T.mjs} +5 -5
  38. package/dist/{TransactionStore-CZOvxcSw.mjs → TransactionStore-C4LPHwzx.mjs} +29 -25
  39. package/dist/{TrendsStore-pvzHAX6B.mjs → TrendsStore-BM-JjAs5.mjs} +1 -1
  40. package/dist/{User-D-O9EHMb.mjs → User-BYkzrOdM.mjs} +1 -1
  41. package/dist/{ViewMoreMicroCard-DFAY0tA8.mjs → ViewMoreMicroCard-C66pzgfS.mjs} +5 -2
  42. package/dist/{WidgetContainer-CBpf3h1Y.mjs → WidgetContainer-CPBhSP3k.mjs} +2 -2
  43. package/dist/accounts/api/AccountApi.d.ts +2 -2
  44. package/dist/accounts/index.es.js +13 -13
  45. package/dist/analytics/index.es.js +2 -2
  46. package/dist/budgets/api/BudgetsApi.d.ts +2 -2
  47. package/dist/budgets/index.es.js +10 -10
  48. package/dist/cashflow/api/CashflowApi.d.ts +3 -2
  49. package/dist/cashflow/index.es.js +10 -10
  50. package/dist/categories/index.es.js +2 -2
  51. package/dist/common/api/AnalyticsApi.d.ts +2 -2
  52. package/dist/common/api/AppDataApi.d.ts +2 -2
  53. package/dist/common/api/BeatApi.d.ts +2 -2
  54. package/dist/common/api/CategoryApi.d.ts +2 -3
  55. package/dist/common/api/GlobalCopyApi.d.ts +2 -1
  56. package/dist/common/api/LocalizedCopyApi.d.ts +2 -1
  57. package/dist/common/api/NotificationApi.d.ts +2 -2
  58. package/dist/common/api/ScheduledPaymentsApi.d.ts +3 -2
  59. package/dist/common/api/UserApi.d.ts +2 -2
  60. package/dist/common/context/GlobalDataProvider.d.ts +3 -2
  61. package/dist/common/context/hooks.d.ts +4 -1
  62. package/dist/common/context/index.d.ts +1 -1
  63. package/dist/common/index.es.js +252 -246
  64. package/dist/common/stores/GlobalStore.d.ts +3 -2
  65. package/dist/common/types/Handlers.d.ts +2 -0
  66. package/dist/common/types/index.d.ts +1 -0
  67. package/dist/common/utils/Fetch.d.ts +3 -1
  68. package/dist/dashboard/index.es.js +2 -2
  69. package/dist/debts/index.es.js +9 -9
  70. package/dist/{exportTransactionsToCSV-zyHeWfQo.mjs → exportTransactionsToCSV-21c0EV3t.mjs} +1 -1
  71. package/dist/finstrong/api/FinstrongApi.d.ts +2 -1
  72. package/dist/finstrong/index.es.js +7 -7
  73. package/dist/goals/api/GoalApi.d.ts +3 -2
  74. package/dist/goals/index.es.js +11 -11
  75. package/dist/help/api/HelpApi.d.ts +2 -2
  76. package/dist/help/index.es.js +3 -3
  77. package/dist/hooks-BhSK6dal.mjs +74 -0
  78. package/dist/insights/index.es.js +1 -1
  79. package/dist/investments/api/HoldingApi.d.ts +3 -2
  80. package/dist/investments/index.es.js +3 -3
  81. package/dist/merchants/api/MerchantApi.d.ts +2 -1
  82. package/dist/merchants/index.es.js +2 -2
  83. package/dist/microinsights/context/InsightsMicroWidgetDataProvider.d.ts +2 -1
  84. package/dist/microinsights/context/hooks.d.ts +1 -1
  85. package/dist/microinsights/index.es.js +1 -1
  86. package/dist/networth/index.es.js +7 -7
  87. package/dist/notifications/index.es.js +5 -5
  88. package/dist/recurringtransactions/api/RepeatingTransactionsApi.d.ts +2 -2
  89. package/dist/recurringtransactions/index.es.js +430 -697
  90. package/dist/settings/api/SettingsApi.d.ts +3 -2
  91. package/dist/settings/index.es.js +7 -7
  92. package/dist/spending/index.es.js +4 -4
  93. package/dist/transactions/api/TransactionApi.d.ts +3 -2
  94. package/dist/transactions/index.es.js +14 -14
  95. package/dist/trends/index.es.js +11 -11
  96. package/dist/{useCombineEvents-DaDBSR_1.mjs → useCombineEvents-BUDIR1ba.mjs} +29 -29
  97. package/dist/{useInsightsEnabled-fGr6xrSj.mjs → useInsightsEnabled-DqM4sFO1.mjs} +1 -1
  98. package/package.json +1 -1
  99. package/dist/MerchantStore-DVH-QOf0.mjs +0 -37
  100. package/dist/hooks-DlI63qSB.mjs +0 -71
@@ -1,91 +1,91 @@
1
- import { jsx as e, jsxs as i, Fragment as j } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as o, Fragment as Y } from "react/jsx-runtime";
2
2
  import h from "react";
3
- import { observer as R } from "mobx-react-lite";
4
- import { endOfMonth as z } from "date-fns/endOfMonth";
5
- import { endOfToday as de } from "date-fns/endOfToday";
6
- import { startOfMonth as k } from "date-fns/startOfMonth";
7
- import { startOfToday as ue } from "date-fns/startOfToday";
8
- import { subDays as le } from "date-fns/subDays";
9
- import ie from "@mui/material/Skeleton";
10
- import s from "@mui/material/Stack";
11
- import { R as He } from "../RecurringSettings-ClbdFNWX.mjs";
12
- import { M as Nn } from "../RecurringSettings-ClbdFNWX.mjs";
13
- import { addMonths as ze } from "date-fns/addMonths";
14
- import { subMonths as Be } from "date-fns/subMonths";
15
- import { isBefore as Ue } from "date-fns/isBefore";
16
- import oe from "@mui/material/Unstable_Grid2";
17
- import xe from "@mui/material/IconButton";
18
- import Re from "@mui/material/Tab";
19
- import Fe from "@mui/material/Tabs";
20
- import { Schedule as qe, MonetizationOn as je, Cancel as Me, CheckCircle as Ne, ChevronLeft as Ke, ChevronRight as Ye, CurrencyExchange as Ve } from "@mxenabled/mx-icons";
21
- import { Text as p, MerchantLogo as me, InstitutionLogo as Xe, H3 as Je, P as ce } from "@mxenabled/mxui";
22
- import { getWeeksInMonth as Ge } from "date-fns/getWeeksInMonth";
23
- import fe from "@mui/material/styles/useTheme";
3
+ import { observer as D } from "mobx-react-lite";
4
+ import { endOfMonth as B } from "date-fns/endOfMonth";
5
+ import { endOfToday as le } from "date-fns/endOfToday";
6
+ import { startOfMonth as W } from "date-fns/startOfMonth";
7
+ import { startOfToday as de } from "date-fns/startOfToday";
8
+ import { subDays as ue } from "date-fns/subDays";
9
+ import oe from "@mui/material/Skeleton";
10
+ import c from "@mui/material/Stack";
11
+ import { R as ze } from "../RecurringSettings-DR9KuVEN.mjs";
12
+ import { M as An } from "../RecurringSettings-DR9KuVEN.mjs";
13
+ import { addMonths as Be } from "date-fns/addMonths";
14
+ import { subMonths as Ue } from "date-fns/subMonths";
15
+ import { isBefore as Fe } from "date-fns/isBefore";
16
+ import ae from "@mui/material/Unstable_Grid2";
17
+ import Te from "@mui/material/IconButton";
18
+ import De from "@mui/material/Tab";
19
+ import je from "@mui/material/Tabs";
20
+ import { Schedule as Ke, MonetizationOn as Ye, Cancel as Le, CheckCircle as Ae, ChevronLeft as Ve, ChevronRight as Xe, CurrencyExchange as Ze } from "@mxenabled/mx-icons";
21
+ import { Text as g, MerchantLogo as me, InstitutionLogo as qe, H3 as Je, P as se } from "@mxenabled/mxui";
22
+ import { getWeeksInMonth as Se } from "date-fns/getWeeksInMonth";
23
+ import pe from "@mui/material/styles/useTheme";
24
24
  import { AdapterDateFns as Qe } from "@mui/x-date-pickers/AdapterDateFnsV3";
25
25
  import { DateCalendar as et } from "@mui/x-date-pickers/DateCalendar";
26
26
  import { LocalizationProvider as tt } from "@mui/x-date-pickers/LocalizationProvider";
27
27
  import { isSameDay as nt } from "date-fns/isSameDay";
28
- import at from "@mui/material/Badge";
28
+ import it from "@mui/material/Badge";
29
29
  import { PickersDay as rt } from "@mui/x-date-pickers/PickersDay";
30
- import { I as K } from "../IconBacking-B9oC6uL2.mjs";
31
- import { u as G, a as Y, i as _, f as V, p as ve, c as pe, g as ge } from "../hooks-DlI63qSB.mjs";
32
- import { c as A, a as x, g as Ie, f as it } from "../RepeatingTransaction-BW4J-jeJ.mjs";
33
- import { T as $ } from "../RecurringTransactionsStore-D62XJtdL.mjs";
34
- import { R as Ln } from "../RecurringTransactionsStore-D62XJtdL.mjs";
35
- import { A as S, W as ot } from "../WidgetContainer-CBpf3h1Y.mjs";
36
- import ct from "@mui/material/Button";
37
- import se from "@mui/material/Divider";
38
- import we from "@mui/material/List";
39
- import Le from "@mui/material/ListItem";
40
- import st from "@mui/material/ListSubheader";
41
- import dt from "@mui/material/ListItemAvatar";
42
- import ut from "@mui/material/ListItemButton";
43
- import lt from "@mui/material/ListItemText";
44
- import { b as mt } from "../ManageIncome-Byw3lVtR.mjs";
45
- import { c as On, M as Pn, S as kn } from "../ManageIncome-Byw3lVtR.mjs";
46
- import { f as M } from "../NumberFormatting-CtWHhyBX.mjs";
47
- import { D as Ee } from "../Drawer-kEE73B87.mjs";
30
+ import { I as V } from "../IconBacking-B9oC6uL2.mjs";
31
+ import { u as S, a as X, i as v, f as Z, p as Ee, c as ge, g as he } from "../hooks-BhSK6dal.mjs";
32
+ import { c as M, a as T, g as Ie, f as ot } from "../RepeatingTransaction-BW4J-jeJ.mjs";
33
+ import { T as H } from "../RecurringTransactionsStore-DeLXfuC4.mjs";
34
+ import { R as Gn } from "../RecurringTransactionsStore-DeLXfuC4.mjs";
35
+ import { A as w, W as at } from "../WidgetContainer-CPBhSP3k.mjs";
36
+ import st from "@mui/material/Button";
37
+ import ce from "@mui/material/Divider";
38
+ import _e from "@mui/material/List";
39
+ import Ge from "@mui/material/ListItem";
40
+ import ct from "@mui/material/ListSubheader";
41
+ import lt from "@mui/material/ListItemAvatar";
42
+ import dt from "@mui/material/ListItemButton";
43
+ import ut from "@mui/material/ListItemText";
44
+ import { b as mt } from "../ManageIncome-C0CbczlY.mjs";
45
+ import { c as On, M as kn, S as Wn } from "../ManageIncome-C0CbczlY.mjs";
46
+ import { f as L } from "../NumberFormatting-CtWHhyBX.mjs";
47
+ import { D as Ne } from "../Drawer-kEE73B87.mjs";
48
48
  import { b as O } from "../Localization-2MODESHW.mjs";
49
- import { f as N, D as v } from "../Dialog-CWW597AF.mjs";
50
- import P from "@mui/material/Box";
49
+ import { f as A, D as E } from "../Dialog-CWW597AF.mjs";
50
+ import k from "@mui/material/Box";
51
51
  import { S as Oe } from "../StatusBar-BK_uYHAB.mjs";
52
- import { u as he } from "../useScreenSize-B6JyS_Lj.mjs";
53
- import { L as q } from "../Loader-DUaFpDGv.mjs";
54
- import { M as ft } from "../MiniWidgetContainer-BzW7V_04.mjs";
55
- import { u as pt } from "../useDimensions-27p2evRx.mjs";
56
- import { M as gt } from "../MicroWidgetContainer-DPDsZIiS.mjs";
57
- const X = {
52
+ import { u as fe } from "../useScreenSize-B6JyS_Lj.mjs";
53
+ import { L as K } from "../Loader-DUaFpDGv.mjs";
54
+ import { M as pt } from "../MiniWidgetContainer-C_N1u9ad.mjs";
55
+ import { u as gt } from "../useDimensions-27p2evRx.mjs";
56
+ import { M as ht } from "../MicroWidgetContainer-DVRe-MJs.mjs";
57
+ const q = {
58
58
  gridRow: 1,
59
59
  gridColumn: 1,
60
60
  zIndex: 2
61
- }, J = (t) => t ? { margin: "0 0 -6px -4px" } : void 0, be = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(K, { size: n, sx: { ...J(t) }, children: /* @__PURE__ */ e(qe, { color: "primary", filled: !0, sx: { fontSize: n, ...X } }) }), ye = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(K, { size: n, sx: { ...J(t) }, children: /* @__PURE__ */ e(
62
- je,
61
+ }, J = (t) => t ? { margin: "0 0 -6px -4px" } : void 0, xe = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(V, { size: n, sx: { ...J(t) }, children: /* @__PURE__ */ e(Ke, { color: "primary", filled: !0, sx: { fontSize: n, ...q } }) }), ye = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(V, { size: n, sx: { ...J(t) }, children: /* @__PURE__ */ e(
62
+ Ye,
63
63
  {
64
64
  filled: !0,
65
- sx: { color: "categories.income", fontSize: n, ...X }
65
+ sx: { color: "categories.income", fontSize: n, ...q }
66
66
  }
67
- ) }), Te = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(K, { size: n, sx: { ...J(t) }, children: /* @__PURE__ */ e(Me, { color: "error", filled: !0, sx: { fontSize: n, ...X } }) }), Ce = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(K, { size: n, sx: { ...J(t) }, children: /* @__PURE__ */ e(Ne, { color: "success", filled: !0, sx: { fontSize: n, ...X } }) }), ht = R(
68
- ({ day: t, outsideCurrentMonth: n, ...a }) => {
69
- const { recurring: o } = G(), { selectedAccountGuids: r } = Y(), { recurrences: d, setSelectedDay: f } = _(), c = h.useMemo(
70
- () => d.filter((u) => r.includes(u.accountGuid)),
71
- [r, d]
67
+ ) }), Ce = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(V, { size: n, sx: { ...J(t) }, children: /* @__PURE__ */ e(Le, { color: "error", filled: !0, sx: { fontSize: n, ...q } }) }), be = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(V, { size: n, sx: { ...J(t) }, children: /* @__PURE__ */ e(Ae, { color: "success", filled: !0, sx: { fontSize: n, ...q } }) }), ft = D(
68
+ ({ day: t, outsideCurrentMonth: n, ...i }) => {
69
+ const { recurring: a } = S(), { selectedAccountGuids: r } = X(), { recurrences: l, setSelectedDay: p } = v(), s = h.useMemo(
70
+ () => l.filter((d) => r.includes(d.accountGuid)),
71
+ [r, l]
72
72
  ).filter(
73
- (u) => nt(u.occurredOnDate || u.expectedDate, t)
74
- ), l = c.some(
75
- (u) => u.type !== A.Income && u.status === x.Upcoming
76
- ), g = c.some(
77
- (u) => u.type !== A.Income && u.status === x.Missed
78
- ), b = c.some(
79
- (u) => u.type !== A.Income && u.status === x.Paid
80
- ), T = c.some((u) => u.type === A.Income), y = (l ? 1 : 0) + (g ? 1 : 0) + (b ? 1 : 0) + (T ? 1 : 0);
73
+ (d) => nt(d.occurredOnDate || d.expectedDate, t)
74
+ ), m = s.some(
75
+ (d) => d.type !== M.Income && d.status === T.Upcoming
76
+ ), f = s.some(
77
+ (d) => d.type !== M.Income && d.status === T.Missed
78
+ ), x = s.some(
79
+ (d) => d.type !== M.Income && d.status === T.Paid
80
+ ), C = s.some((d) => d.type === M.Income), y = (m ? 1 : 0) + (f ? 1 : 0) + (x ? 1 : 0) + (C ? 1 : 0);
81
81
  return /* @__PURE__ */ e(
82
- at,
82
+ it,
83
83
  {
84
- badgeContent: c.length > 0 && /* @__PURE__ */ i(j, { children: [
85
- g && /* @__PURE__ */ e(Te, { isOffset: !0 }),
86
- b && /* @__PURE__ */ e(Ce, { isOffset: !0 }),
87
- l && /* @__PURE__ */ e(be, { isOffset: !0 }),
88
- T && /* @__PURE__ */ e(ye, { isOffset: !0 })
84
+ badgeContent: s.length > 0 && /* @__PURE__ */ o(Y, { children: [
85
+ f && /* @__PURE__ */ e(Ce, { isOffset: !0 }),
86
+ x && /* @__PURE__ */ e(be, { isOffset: !0 }),
87
+ m && /* @__PURE__ */ e(xe, { isOffset: !0 }),
88
+ C && /* @__PURE__ */ e(ye, { isOffset: !0 })
89
89
  ] }),
90
90
  overlap: "circular",
91
91
  sx: {
@@ -99,12 +99,12 @@ const X = {
99
99
  rt,
100
100
  {
101
101
  "aria-label": `
102
- ${b && o.paid},
103
- ${g && o.missed},
104
- ${l && o.upcoming},
105
- ${T && o.income}`,
102
+ ${x && a.paid},
103
+ ${f && a.missed},
104
+ ${m && a.upcoming},
105
+ ${C && a.income}`,
106
106
  day: t,
107
- onClick: () => f(t),
107
+ onClick: () => p(t),
108
108
  outsideCurrentMonth: n,
109
109
  sx: {
110
110
  "&.MuiPickersDay-root": {
@@ -113,19 +113,19 @@ const X = {
113
113
  }
114
114
  }
115
115
  },
116
- ...a
116
+ ...i
117
117
  }
118
118
  )
119
119
  }
120
120
  );
121
121
  }
122
- ), F = ({ icon: t, label: n }) => /* @__PURE__ */ i(s, { alignItems: "center", flexDirection: "row", sx: { gap: 6 }, children: [
122
+ ), j = ({ icon: t, label: n }) => /* @__PURE__ */ o(c, { alignItems: "center", flexDirection: "row", sx: { gap: 6 }, children: [
123
123
  /* @__PURE__ */ e(t, {}),
124
- /* @__PURE__ */ e(p, { variant: "XSmall", children: n })
125
- ] }), bt = R(() => {
126
- const { recurring: t } = G();
127
- return /* @__PURE__ */ i(
128
- s,
124
+ /* @__PURE__ */ e(g, { variant: "XSmall", children: n })
125
+ ] }), xt = D(() => {
126
+ const { recurring: t } = S();
127
+ return /* @__PURE__ */ o(
128
+ c,
129
129
  {
130
130
  alignItems: "center",
131
131
  "aria-hidden": !0,
@@ -134,29 +134,29 @@ const X = {
134
134
  justifyContent: "center",
135
135
  mt: 12,
136
136
  children: [
137
- /* @__PURE__ */ e(F, { icon: be, label: t.expense }),
138
- /* @__PURE__ */ e(F, { icon: ye, label: t.income }),
139
- /* @__PURE__ */ e(F, { icon: Te, label: t.missed }),
140
- /* @__PURE__ */ e(F, { icon: Ce, label: t.paid })
137
+ /* @__PURE__ */ e(j, { icon: xe, label: t.expense }),
138
+ /* @__PURE__ */ e(j, { icon: ye, label: t.income }),
139
+ /* @__PURE__ */ e(j, { icon: Ce, label: t.missed }),
140
+ /* @__PURE__ */ e(j, { icon: be, label: t.paid })
141
141
  ]
142
142
  }
143
143
  );
144
- }), Se = 58, Pe = R(() => {
145
- const t = fe(), { onEvent: n } = V(), { selectedDay: a, setDateRange: o } = _(), [r, d] = h.useState(
146
- Ge(/* @__PURE__ */ new Date()) * $ + Se
147
- ), f = (c) => {
148
- d(Ge(c) * $ + Se), o({
149
- start: k(c),
150
- end: z(c)
151
- }), n(S.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
152
- }, m = /* @__PURE__ */ e(
144
+ }), we = 58, ke = D(() => {
145
+ const t = pe(), { onEvent: n } = Z(), { selectedDay: i, setDateRange: a } = v(), [r, l] = h.useState(
146
+ Se(/* @__PURE__ */ new Date()) * H + we
147
+ ), p = (s) => {
148
+ l(Se(s) * H + we), a({
149
+ start: W(s),
150
+ end: B(s)
151
+ }), n(w.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
152
+ }, u = /* @__PURE__ */ e(
153
153
  et,
154
154
  {
155
- minDate: k(/* @__PURE__ */ new Date()),
156
- onMonthChange: f,
155
+ minDate: W(/* @__PURE__ */ new Date()),
156
+ onMonthChange: p,
157
157
  showDaysOutsideCurrentMonth: !0,
158
158
  slots: {
159
- day: ht
159
+ day: ft
160
160
  },
161
161
  sx: {
162
162
  "& .MuiPickersArrowSwitcher-button": {
@@ -184,11 +184,11 @@ const X = {
184
184
  minHeight: r
185
185
  },
186
186
  "&.MuiDateCalendar-root": {
187
- minHeight: r + $
187
+ minHeight: r + H
188
188
  },
189
189
  "& .MuiButtonBase-root, .MuiDayCalendar-weekDayLabel": {
190
- height: $,
191
- width: $,
190
+ height: H,
191
+ width: H,
192
192
  margin: 0
193
193
  },
194
194
  "& .MuiDayCalendar-weekDayLabel": {
@@ -196,104 +196,104 @@ const X = {
196
196
  fontSize: t.typography.body2.fontSize
197
197
  }
198
198
  },
199
- value: a,
199
+ value: i,
200
200
  views: ["day"]
201
201
  }
202
202
  );
203
- return /* @__PURE__ */ e(s, { justifyContent: "center", children: /* @__PURE__ */ i(tt, { dateAdapter: Qe, children: [
204
- a && m,
205
- !a && m,
206
- /* @__PURE__ */ e(bt, {})
203
+ return /* @__PURE__ */ e(c, { justifyContent: "center", children: /* @__PURE__ */ o(tt, { dateAdapter: Qe, children: [
204
+ i && u,
205
+ !i && u,
206
+ /* @__PURE__ */ e(xt, {})
207
207
  ] }) });
208
208
  }), yt = (t) => {
209
- if (t.type === A.Income)
209
+ if (t.type === M.Income)
210
210
  return /* @__PURE__ */ e(ye, {});
211
211
  switch (t.status) {
212
- case x.Missed:
213
- return /* @__PURE__ */ e(Te, {});
214
- case x.Paid:
212
+ case T.Missed:
215
213
  return /* @__PURE__ */ e(Ce, {});
216
- default:
214
+ case T.Paid:
217
215
  return /* @__PURE__ */ e(be, {});
216
+ default:
217
+ return /* @__PURE__ */ e(xe, {});
218
218
  }
219
- }, Tt = (t, n) => {
219
+ }, Ct = (t, n) => {
220
220
  switch (t.status) {
221
- case x.Paid:
221
+ case T.Paid:
222
222
  return t.expectedDate ? O(
223
223
  n.paid_on,
224
- N(
224
+ A(
225
225
  t.occurredOnDate || t.expectedDate,
226
- v.MONTH_DAY
226
+ E.MONTH_DAY
227
227
  )
228
228
  ) : n.paid;
229
- case x.Missed:
229
+ case T.Missed:
230
230
  return O(
231
231
  n.missed_on,
232
- N(t.expectedDate, v.MONTH_DAY)
232
+ A(t.expectedDate, E.MONTH_DAY)
233
233
  );
234
- case x.Upcoming:
234
+ case T.Upcoming:
235
235
  return O(
236
236
  n.upcoming_on,
237
- N(t.expectedDate, v.MONTH_DAY)
237
+ A(t.expectedDate, E.MONTH_DAY)
238
238
  );
239
239
  default:
240
240
  return n.unknown;
241
241
  }
242
- }, _e = ({
242
+ }, ve = ({
243
243
  recurrence: t,
244
244
  isMini: n = !1,
245
- onRecurrenceClick: a = () => {
245
+ onRecurrenceClick: i = () => {
246
246
  },
247
- showOrdinal: o = !1
247
+ showOrdinal: a = !1
248
248
  }) => {
249
- const { recurring: r } = G(), { repeatingTransactions: d } = _(), [f, m] = h.useState(!1), c = h.useMemo(
250
- () => d.find((D) => D.guid === t.repeatingTransactionGuid),
251
- [t, d]
252
- ), l = t.type === A.Income, g = t.status === x.Paid, b = t.status === x.Missed, T = t.status === x.Upcoming;
249
+ const { recurring: r } = S(), { repeatingTransactions: l } = v(), [p, u] = h.useState(!1), s = h.useMemo(
250
+ () => l.find((R) => R.guid === t.repeatingTransactionGuid),
251
+ [t, l]
252
+ ), m = t.type === M.Income, f = t.status === T.Paid, x = t.status === T.Missed, C = t.status === T.Upcoming;
253
253
  let y = r.paid?.toLowerCase();
254
- return b ? y = r.missed?.toLowerCase() : T && (y = o ? Ie(r, c || {}, !0) : Ie(r, c || {}, !1)), //TODO: implement common/components/ListItemRow.tsx
255
- /* @__PURE__ */ i(Le, { disableGutters: !0, disablePadding: !0, children: [
256
- /* @__PURE__ */ i(ut, { onClick: () => {
257
- m(!0), a(t);
254
+ return x ? y = r.missed?.toLowerCase() : C && (y = a ? Ie(r, s || {}, !0) : Ie(r, s || {}, !1)), //TODO: implement common/components/ListItemRow.tsx
255
+ /* @__PURE__ */ o(Ge, { disableGutters: !0, disablePadding: !0, children: [
256
+ /* @__PURE__ */ o(dt, { onClick: () => {
257
+ u(!0), i(t);
258
258
  }, children: [
259
- /* @__PURE__ */ e(dt, { children: /* @__PURE__ */ e(
259
+ /* @__PURE__ */ e(lt, { children: /* @__PURE__ */ e(
260
260
  me,
261
261
  {
262
262
  categoryGuid: t.categoryGuid,
263
263
  merchantGuid: t.merchantGuid
264
264
  }
265
265
  ) }),
266
- /* @__PURE__ */ e(lt, { children: /* @__PURE__ */ i(
267
- s,
266
+ /* @__PURE__ */ e(ut, { children: /* @__PURE__ */ o(
267
+ c,
268
268
  {
269
269
  direction: "row",
270
270
  gap: 4,
271
271
  sx: { justifyContent: "space-between", textOverflow: "ellipsis", textWrap: "nowrap" },
272
272
  children: [
273
- /* @__PURE__ */ i(s, { direction: "column", width: "50%", children: [
274
- /* @__PURE__ */ e(p, { bold: !0, variant: "body1", children: t.name }),
275
- /* @__PURE__ */ e(s, { alignItems: "center", direction: "row", gap: 6, children: n ? /* @__PURE__ */ i(s, { direction: "row", gap: 4, children: [
273
+ /* @__PURE__ */ o(c, { direction: "column", width: "50%", children: [
274
+ /* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: t.name }),
275
+ /* @__PURE__ */ e(c, { alignItems: "center", direction: "row", gap: 6, children: n ? /* @__PURE__ */ o(c, { direction: "row", gap: 4, children: [
276
276
  yt(t),
277
- /* @__PURE__ */ e(p, { variant: "caption", children: Tt(t, r) })
278
- ] }) : /* @__PURE__ */ i(j, { children: [
277
+ /* @__PURE__ */ e(g, { variant: "caption", children: Ct(t, r) })
278
+ ] }) : /* @__PURE__ */ o(Y, { children: [
279
279
  t.institutionGuid && /* @__PURE__ */ e(
280
- Xe,
280
+ qe,
281
281
  {
282
282
  alt: t.institutionName,
283
283
  institutionGuid: t.institutionGuid,
284
284
  size: 12
285
285
  }
286
286
  ),
287
- /* @__PURE__ */ e(p, { sx: { maxWidth: 250 }, variant: "caption", children: t.institutionName })
287
+ /* @__PURE__ */ e(g, { sx: { maxWidth: 250 }, variant: "caption", children: t.institutionName })
288
288
  ] }) })
289
289
  ] }),
290
- /* @__PURE__ */ i(s, { alignItems: "flex-end", width: "100%", children: [
291
- /* @__PURE__ */ i(p, { bold: !0, color: l ? "success.main" : "text.primary", variant: "body1", children: [
292
- l ? "+" : "",
293
- M(t.amount, "0,0.00")
290
+ /* @__PURE__ */ o(c, { alignItems: "flex-end", width: "100%", children: [
291
+ /* @__PURE__ */ o(g, { bold: !0, color: m ? "success.main" : "text.primary", variant: "body1", children: [
292
+ m ? "+" : "",
293
+ L(t.amount, "0,0.00")
294
294
  ] }),
295
- !n && /* @__PURE__ */ i(
296
- s,
295
+ !n && /* @__PURE__ */ o(
296
+ c,
297
297
  {
298
298
  direction: "row",
299
299
  sx: {
@@ -304,9 +304,9 @@ const X = {
304
304
  width: "100%"
305
305
  },
306
306
  children: [
307
- g && /* @__PURE__ */ e(Ne, { color: "success", filled: !0, size: 12 }),
308
- b && /* @__PURE__ */ e(Me, { color: "error", filled: !0, size: 12 }),
309
- /* @__PURE__ */ e(p, { bold: !0, color: "text.secondary", variant: "caption", children: y })
307
+ f && /* @__PURE__ */ e(Ae, { color: "success", filled: !0, size: 12 }),
308
+ x && /* @__PURE__ */ e(Le, { color: "error", filled: !0, size: 12 }),
309
+ /* @__PURE__ */ e(g, { bold: !0, color: "text.secondary", variant: "caption", children: y })
310
310
  ]
311
311
  }
312
312
  )
@@ -316,506 +316,239 @@ const X = {
316
316
  ) })
317
317
  ] }),
318
318
  /* @__PURE__ */ e(
319
- Ee,
319
+ Ne,
320
320
  {
321
321
  ariaLabelClose: r.close_drawer_aria,
322
- isOpen: f,
323
- onClose: () => m(!1),
324
- title: t.type === A.Income ? r.income_details : r.expense_details,
325
- children: c && /* @__PURE__ */ e(
322
+ isOpen: p,
323
+ onClose: () => u(!1),
324
+ title: t.type === M.Income ? r.income_details : r.expense_details,
325
+ children: s && /* @__PURE__ */ e(
326
326
  mt,
327
327
  {
328
- onDeleted: () => m(!1),
329
- recurringTransaction: c
328
+ onDeleted: () => u(!1),
329
+ recurringTransaction: s
330
330
  }
331
331
  )
332
332
  }
333
333
  )
334
334
  ] });
335
- }, H = R(
335
+ }, z = D(
336
336
  ({
337
337
  recurrences: t,
338
338
  isMini: n = !1,
339
- onResetClick: a,
340
- onRecurrenceClick: o,
339
+ onResetClick: i,
340
+ onRecurrenceClick: a,
341
341
  sx: r = {},
342
- title: d
342
+ title: l
343
343
  }) => {
344
- const { recurring: f } = G(), m = h.useMemo(() => it(t), [t]);
345
- console.log(t, "recurrences"), console.log(m, "grouped recurrences");
346
- const c = [
347
- {
348
- date: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
349
- id: "date-2025-10-01",
350
- recurrences: [
351
- {
352
- accountGuid: "ACT-33b06fa7-74ad-4819-9d25-fd21ae2db370",
353
- amount: 73,
354
- categoryGuid: "CAT-5dab8347-e0b4-daf9-0a65-f2be80feb8ad",
355
- expectedDate: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
356
- frequency: 3,
357
- institutionGuid: "INS-f1a3285d-e855-b68f-6aa7-8ae775c0e0e9",
358
- institutionName: "Gringotts Mortgage *1568",
359
- merchantGuid: "",
360
- name: "Interest Charge",
361
- recurrenceDay: 1,
362
- repeatingTransactionGuid: "RPT-3a9931fd-cd93-4197-a515-697f180bf531",
363
- secondRecurrenceDay: 15,
364
- status: 2,
365
- type: 0
366
- }
367
- ]
368
- },
369
- {
370
- date: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
371
- id: "date-2025-10-02",
372
- recurrences: [
373
- {
374
- accountGuid: "ACT-33b06fa7-74ad-4819-9d25-fd21ae2db370",
375
- amount: 73,
376
- categoryGuid: "CAT-5dab8347-e0b4-daf9-0a65-f2be80feb8ad",
377
- expectedDate: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
378
- frequency: 3,
379
- institutionGuid: "INS-f1a3285d-e855-b68f-6aa7-8ae775c0e0e9",
380
- institutionName: "Gringotts Mortgage *1568",
381
- merchantGuid: "",
382
- name: "Interest Charge",
383
- recurrenceDay: 1,
384
- repeatingTransactionGuid: "RPT-3a9931fd-cd93-4197-a515-697f180bf531",
385
- secondRecurrenceDay: 15,
386
- status: 2,
387
- type: 0
388
- }
389
- ]
390
- },
391
- {
392
- date: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
393
- id: "date-2025-10-03",
394
- recurrences: [
395
- {
396
- accountGuid: "ACT-33b06fa7-74ad-4819-9d25-fd21ae2db370",
397
- amount: 73,
398
- categoryGuid: "CAT-5dab8347-e0b4-daf9-0a65-f2be80feb8ad",
399
- expectedDate: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
400
- frequency: 3,
401
- institutionGuid: "INS-f1a3285d-e855-b68f-6aa7-8ae775c0e0e9",
402
- institutionName: "Gringotts Mortgage *1568",
403
- merchantGuid: "",
404
- name: "Interest Charge",
405
- recurrenceDay: 1,
406
- repeatingTransactionGuid: "RPT-3a9931fd-cd93-4197-a515-697f180bf531",
407
- secondRecurrenceDay: 15,
408
- status: 2,
409
- type: 0
410
- }
411
- ]
412
- },
413
- {
414
- date: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
415
- id: "date-2025-10-04",
416
- recurrences: [
417
- {
418
- accountGuid: "ACT-33b06fa7-74ad-4819-9d25-fd21ae2db370",
419
- amount: 73,
420
- categoryGuid: "CAT-5dab8347-e0b4-daf9-0a65-f2be80feb8ad",
421
- expectedDate: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
422
- frequency: 3,
423
- institutionGuid: "INS-f1a3285d-e855-b68f-6aa7-8ae775c0e0e9",
424
- institutionName: "Gringotts Mortgage *1568",
425
- merchantGuid: "",
426
- name: "Interest Charge",
427
- recurrenceDay: 1,
428
- repeatingTransactionGuid: "RPT-3a9931fd-cd93-4197-a515-697f180bf531",
429
- secondRecurrenceDay: 15,
430
- status: 2,
431
- type: 0
432
- }
433
- ]
434
- },
435
- {
436
- date: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
437
- id: "date-2025-10-05",
438
- recurrences: [
439
- {
440
- accountGuid: "ACT-33b06fa7-74ad-4819-9d25-fd21ae2db370",
441
- amount: 73,
442
- categoryGuid: "CAT-5dab8347-e0b4-daf9-0a65-f2be80feb8ad",
443
- expectedDate: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
444
- frequency: 3,
445
- institutionGuid: "INS-f1a3285d-e855-b68f-6aa7-8ae775c0e0e9",
446
- institutionName: "Gringotts Mortgage *1568",
447
- merchantGuid: "",
448
- name: "Interest Charge",
449
- recurrenceDay: 1,
450
- repeatingTransactionGuid: "RPT-3a9931fd-cd93-4197-a515-697f180bf531",
451
- secondRecurrenceDay: 15,
452
- status: 2,
453
- type: 0
454
- }
455
- ]
456
- },
457
- {
458
- date: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
459
- id: "date-2025-10-06",
460
- recurrences: [
461
- {
462
- accountGuid: "ACT-33b06fa7-74ad-4819-9d25-fd21ae2db370",
463
- amount: 73,
464
- categoryGuid: "CAT-5dab8347-e0b4-daf9-0a65-f2be80feb8ad",
465
- expectedDate: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
466
- frequency: 3,
467
- institutionGuid: "INS-f1a3285d-e855-b68f-6aa7-8ae775c0e0e9",
468
- institutionName: "Gringotts Mortgage *1568",
469
- merchantGuid: "",
470
- name: "Interest Charge",
471
- recurrenceDay: 1,
472
- repeatingTransactionGuid: "RPT-3a9931fd-cd93-4197-a515-697f180bf531",
473
- secondRecurrenceDay: 15,
474
- status: 2,
475
- type: 0
476
- }
477
- ]
478
- },
479
- {
480
- date: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
481
- id: "date-2025-10-07",
482
- recurrences: [
483
- {
484
- accountGuid: "ACT-33b06fa7-74ad-4819-9d25-fd21ae2db370",
485
- amount: 73,
486
- categoryGuid: "CAT-5dab8347-e0b4-daf9-0a65-f2be80feb8ad",
487
- expectedDate: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
488
- frequency: 3,
489
- institutionGuid: "INS-f1a3285d-e855-b68f-6aa7-8ae775c0e0e9",
490
- institutionName: "Gringotts Mortgage *1568",
491
- merchantGuid: "",
492
- name: "Interest Charge",
493
- recurrenceDay: 1,
494
- repeatingTransactionGuid: "RPT-3a9931fd-cd93-4197-a515-697f180bf531",
495
- secondRecurrenceDay: 15,
496
- status: 2,
497
- type: 0
498
- }
499
- ]
500
- },
501
- {
502
- date: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
503
- id: "date-2025-10-08",
504
- recurrences: [
505
- {
506
- accountGuid: "ACT-33b06fa7-74ad-4819-9d25-fd21ae2db370",
507
- amount: 73,
508
- categoryGuid: "CAT-5dab8347-e0b4-daf9-0a65-f2be80feb8ad",
509
- expectedDate: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
510
- frequency: 3,
511
- institutionGuid: "INS-f1a3285d-e855-b68f-6aa7-8ae775c0e0e9",
512
- institutionName: "Gringotts Mortgage *1568",
513
- merchantGuid: "",
514
- name: "Interest Charge",
515
- recurrenceDay: 1,
516
- repeatingTransactionGuid: "RPT-3a9931fd-cd93-4197-a515-697f180bf531",
517
- secondRecurrenceDay: 15,
518
- status: 2,
519
- type: 0
520
- }
521
- ]
522
- },
523
- {
524
- date: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
525
- id: "date-2025-10-09",
526
- recurrences: [
527
- {
528
- accountGuid: "ACT-33b06fa7-74ad-4819-9d25-fd21ae2db370",
529
- amount: 73,
530
- categoryGuid: "CAT-5dab8347-e0b4-daf9-0a65-f2be80feb8ad",
531
- expectedDate: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
532
- frequency: 3,
533
- institutionGuid: "INS-f1a3285d-e855-b68f-6aa7-8ae775c0e0e9",
534
- institutionName: "Gringotts Mortgage *1568",
535
- merchantGuid: "",
536
- name: "Interest Charge",
537
- recurrenceDay: 1,
538
- repeatingTransactionGuid: "RPT-3a9931fd-cd93-4197-a515-697f180bf531",
539
- secondRecurrenceDay: 15,
540
- status: 2,
541
- type: 0
542
- }
543
- ]
544
- },
545
- {
546
- date: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
547
- id: "date-2025-10-10",
548
- recurrences: [
549
- {
550
- accountGuid: "ACT-33b06fa7-74ad-4819-9d25-fd21ae2db370",
551
- amount: 73,
552
- categoryGuid: "CAT-5dab8347-e0b4-daf9-0a65-f2be80feb8ad",
553
- expectedDate: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
554
- frequency: 3,
555
- institutionGuid: "INS-f1a3285d-e855-b68f-6aa7-8ae775c0e0e9",
556
- institutionName: "Gringotts Mortgage *1568",
557
- merchantGuid: "",
558
- name: "Interest Charge",
559
- recurrenceDay: 1,
560
- repeatingTransactionGuid: "RPT-3a9931fd-cd93-4197-a515-697f180bf531",
561
- secondRecurrenceDay: 15,
562
- status: 2,
563
- type: 0
564
- }
565
- ]
566
- },
567
- {
568
- date: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
569
- id: "date-2025-10-11",
570
- recurrences: [
571
- {
572
- accountGuid: "ACT-33b06fa7-74ad-4819-9d25-fd21ae2db370",
573
- amount: 73,
574
- categoryGuid: "CAT-5dab8347-e0b4-daf9-0a65-f2be80feb8ad",
575
- expectedDate: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
576
- frequency: 3,
577
- institutionGuid: "INS-f1a3285d-e855-b68f-6aa7-8ae775c0e0e9",
578
- institutionName: "Gringotts Mortgage *1568",
579
- merchantGuid: "",
580
- name: "Interest Charge",
581
- recurrenceDay: 1,
582
- repeatingTransactionGuid: "RPT-3a9931fd-cd93-4197-a515-697f180bf531",
583
- secondRecurrenceDay: 15,
584
- status: 2,
585
- type: 0
586
- }
587
- ]
588
- },
589
- {
590
- date: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
591
- id: "date-2025-10-12",
592
- recurrences: [
593
- {
594
- accountGuid: "ACT-33b06fa7-74ad-4819-9d25-fd21ae2db370",
595
- amount: 73,
596
- categoryGuid: "CAT-5dab8347-e0b4-daf9-0a65-f2be80feb8ad",
597
- expectedDate: /* @__PURE__ */ new Date("2025-09-29T18:30:00.000Z"),
598
- frequency: 3,
599
- institutionGuid: "INS-f1a3285d-e855-b68f-6aa7-8ae775c0e0e9",
600
- institutionName: "Gringotts Mortgage *1568",
601
- merchantGuid: "",
602
- name: "Interest Charge",
603
- recurrenceDay: 1,
604
- repeatingTransactionGuid: "RPT-3a9931fd-cd93-4197-a515-697f180bf531",
605
- secondRecurrenceDay: 15,
606
- status: 2,
607
- type: 0
608
- }
609
- ]
610
- }
611
- ];
612
- return /* @__PURE__ */ i(s, { sx: { gap: 8, mt: 4, ...r }, children: [
613
- d && /* @__PURE__ */ i(
614
- s,
344
+ const { recurring: p } = S(), u = h.useMemo(() => ot(t), [t]);
345
+ return /* @__PURE__ */ o(c, { sx: { gap: 8, mt: 4, ...r }, children: [
346
+ l && /* @__PURE__ */ o(
347
+ c,
615
348
  {
616
349
  sx: { alignItems: "top", direction: "row", justifyContent: "space-between", px: 24 },
617
350
  children: [
618
- /* @__PURE__ */ e(p, { bold: !0, variant: "body1", children: d }),
619
- a && /* @__PURE__ */ e(ct, { onClick: a, sx: { mt: -12 }, variant: "text", children: f.reset })
351
+ /* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: l }),
352
+ i && /* @__PURE__ */ e(st, { onClick: i, sx: { mt: -12 }, variant: "text", children: p.reset })
620
353
  ]
621
354
  }
622
355
  ),
623
- c.length === 0 ? /* @__PURE__ */ e(p, { fontStyle: "italic", sx: { py: 24, textAlign: "center" }, children: f.no_activities }) : /* @__PURE__ */ e(we, { children: n ? t.map((l, g) => /* @__PURE__ */ i(h.Fragment, { children: [
356
+ t.length === 0 ? /* @__PURE__ */ e(g, { fontStyle: "italic", sx: { py: 24, textAlign: "center" }, children: p.no_activities }) : /* @__PURE__ */ e(_e, { children: n ? t.map((s, m) => /* @__PURE__ */ o(h.Fragment, { children: [
624
357
  /* @__PURE__ */ e(
625
- _e,
358
+ ve,
626
359
  {
627
360
  isMini: n,
628
- onRecurrenceClick: o,
629
- recurrence: l
361
+ onRecurrenceClick: a,
362
+ recurrence: s
630
363
  }
631
364
  ),
632
- /* @__PURE__ */ e(se, { sx: { mx: 24 } })
633
- ] }, `recurrence-${g}`)) : c.map((l, g) => /* @__PURE__ */ i(h.Fragment, { children: [
634
- /* @__PURE__ */ e(Le, { children: /* @__PURE__ */ e(
635
- we,
365
+ /* @__PURE__ */ e(ce, { sx: { mx: 24 } })
366
+ ] }, `recurrence-${m}`)) : u.map((s, m) => /* @__PURE__ */ o(h.Fragment, { children: [
367
+ /* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ e(
368
+ _e,
636
369
  {
637
- subheader: /* @__PURE__ */ e(st, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ e(p, { bold: !0, variant: "caption", children: N(l.date, v.DAY_OF_WEEK_MONTH_DAY) }) }),
370
+ subheader: /* @__PURE__ */ e(ct, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ e(g, { bold: !0, variant: "caption", children: A(s.date, E.DAY_OF_WEEK_MONTH_DAY) }) }),
638
371
  sx: { width: "100%" },
639
- children: l.recurrences.map((b, T) => /* @__PURE__ */ e(h.Fragment, { children: /* @__PURE__ */ e(
640
- _e,
372
+ children: s.recurrences.map((f, x) => /* @__PURE__ */ e(h.Fragment, { children: /* @__PURE__ */ e(
373
+ ve,
641
374
  {
642
375
  isMini: n,
643
- onRecurrenceClick: o,
644
- recurrence: b
376
+ onRecurrenceClick: a,
377
+ recurrence: f
645
378
  }
646
- ) }, `day-recurrence-${T}`))
379
+ ) }, `day-recurrence-${x}`))
647
380
  }
648
- ) }, l.id),
649
- /* @__PURE__ */ e(se, { sx: { mx: 24 } })
650
- ] }, `recurrence-${g}`)) })
381
+ ) }, s.id),
382
+ /* @__PURE__ */ e(ce, { sx: { mx: 24 } })
383
+ ] }, `recurrence-${m}`)) })
651
384
  ] });
652
385
  }
653
- ), Ae = R(
654
- ({ expected: t, isExpense: n = !0, missed: a, paid: o, title: r, total: d, upcoming: f }) => {
655
- const m = fe(), { isSmallMobile: c } = he(), { recurring: l } = G(), g = h.useMemo(() => {
656
- const b = [{ color: m.palette.success.main, percentage: `${o / t}` }];
657
- return a && b.push({ color: m.palette.error.main, percentage: `${a / t}` }), b;
658
- }, [o, t, a]);
659
- return /* @__PURE__ */ i(s, { children: [
660
- /* @__PURE__ */ i(s, { sx: { flexDirection: "row", justifyContent: "space-between", pb: 12 }, children: [
661
- /* @__PURE__ */ e(p, { bold: !0, variant: "body1", children: `${r} (${d})` }),
662
- /* @__PURE__ */ e(p, { bold: !0, color: n ? "text.primary" : "success.main", variant: "body1", children: `${n ? "-" : "+"}${M(t, "0,0.00")}` })
386
+ ), Me = D(
387
+ ({ expected: t, isExpense: n = !0, missed: i, paid: a, title: r, total: l, upcoming: p }) => {
388
+ const u = pe(), { isSmallMobile: s } = fe(), { recurring: m } = S(), f = h.useMemo(() => {
389
+ const x = [{ color: u.palette.success.main, percentage: `${a / t}` }];
390
+ return i && x.push({ color: u.palette.error.main, percentage: `${i / t}` }), x;
391
+ }, [a, t, i]);
392
+ return /* @__PURE__ */ o(c, { children: [
393
+ /* @__PURE__ */ o(c, { sx: { flexDirection: "row", justifyContent: "space-between", pb: 12 }, children: [
394
+ /* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: `${r} (${l})` }),
395
+ /* @__PURE__ */ e(g, { bold: !0, color: n ? "text.primary" : "success.main", variant: "body1", children: `${n ? "-" : "+"}${L(t, "0,0.00")}` })
663
396
  ] }),
664
- /* @__PURE__ */ e(Oe, { data: g, height: 12 }),
665
- /* @__PURE__ */ i(s, { sx: { alignItems: "center", flexDirection: "row", gap: 2, my: 8 }, children: [
666
- /* @__PURE__ */ e(P, { sx: { bgcolor: "success.main", height: 8, mr: 8, width: 8 } }),
667
- !c && /* @__PURE__ */ e(p, { bold: !0, variant: "body2", children: M(o, "0,0.00") }),
668
- /* @__PURE__ */ e(p, { variant: "caption", children: l.paid?.toLowerCase() }),
669
- a !== void 0 && /* @__PURE__ */ i(j, { children: [
670
- /* @__PURE__ */ e(P, { sx: { bgcolor: "error.main", height: 8, ml: 16, mr: 8, width: 8 } }),
671
- !c && /* @__PURE__ */ e(p, { bold: !0, variant: "body2", children: M(a, "0,0.00") }),
672
- /* @__PURE__ */ e(p, { variant: "caption", children: l.missed?.toLowerCase() })
397
+ /* @__PURE__ */ e(Oe, { data: f, height: 12 }),
398
+ /* @__PURE__ */ o(c, { sx: { alignItems: "center", flexDirection: "row", gap: 2, my: 8 }, children: [
399
+ /* @__PURE__ */ e(k, { sx: { bgcolor: "success.main", height: 8, mr: 8, width: 8 } }),
400
+ !s && /* @__PURE__ */ e(g, { bold: !0, variant: "body2", children: L(a, "0,0.00") }),
401
+ /* @__PURE__ */ e(g, { variant: "caption", children: m.paid?.toLowerCase() }),
402
+ i !== void 0 && /* @__PURE__ */ o(Y, { children: [
403
+ /* @__PURE__ */ e(k, { sx: { bgcolor: "error.main", height: 8, ml: 16, mr: 8, width: 8 } }),
404
+ !s && /* @__PURE__ */ e(g, { bold: !0, variant: "body2", children: L(i, "0,0.00") }),
405
+ /* @__PURE__ */ e(g, { variant: "caption", children: m.missed?.toLowerCase() })
673
406
  ] }),
674
- /* @__PURE__ */ e(P, { sx: { bgcolor: "divider", height: 8, ml: 16, mr: 8, width: 8 } }),
675
- !c && /* @__PURE__ */ e(p, { bold: !0, variant: "body2", children: M(f, "0,0.00") }),
676
- /* @__PURE__ */ e(p, { variant: "caption", children: l.upcoming })
407
+ /* @__PURE__ */ e(k, { sx: { bgcolor: "divider", height: 8, ml: 16, mr: 8, width: 8 } }),
408
+ !s && /* @__PURE__ */ e(g, { bold: !0, variant: "body2", children: L(p, "0,0.00") }),
409
+ /* @__PURE__ */ e(g, { variant: "caption", children: m.upcoming })
677
410
  ] })
678
411
  ] });
679
412
  }
680
- ), Ct = R(() => {
681
- const { recurring: t } = G(), { availableWidth: n } = ve(), { isDesktop: a, isSmallMobile: o } = he(n), { onEvent: r } = V(), {
682
- currentMonthExpenses: d,
683
- currentMonthIncome: f,
684
- dateRange: m,
685
- expenseTotal: c,
686
- incomeTotal: l,
687
- missedExpenseTotal: g,
688
- pastRecurrences: b,
689
- paidExpenseTotal: T,
413
+ ), bt = D(() => {
414
+ const { recurring: t } = S(), { availableWidth: n } = Ee(), { isDesktop: i, isSmallMobile: a } = fe(n), { onEvent: r } = Z(), {
415
+ currentMonthExpenses: l,
416
+ currentMonthIncome: p,
417
+ dateRange: u,
418
+ expenseTotal: s,
419
+ incomeTotal: m,
420
+ missedExpenseTotal: f,
421
+ pastRecurrences: x,
422
+ paidExpenseTotal: C,
690
423
  paidIncomeTotal: y,
691
- selectedDay: u,
692
- selectedDayRecurrences: D,
693
- setDateRange: L,
424
+ selectedDay: d,
425
+ selectedDayRecurrences: R,
426
+ setDateRange: G,
694
427
  upcomingExpenseTotal: Q,
695
428
  upcomingIncomeTotal: ee,
696
- upcomingRecurrences: B
697
- } = _(), [W, te] = h.useState(0), I = Ue(m.start, /* @__PURE__ */ new Date()), ne = (C, re) => {
429
+ upcomingRecurrences: U
430
+ } = v(), [$, te] = h.useState(0), I = Fe(u.start, /* @__PURE__ */ new Date()), ne = (b, re) => {
698
431
  te(re);
699
- }, w = (C) => {
700
- r(S.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
701
- transaction_guid: C.transaction?.guid
432
+ }, _ = (b) => {
433
+ r(w.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
434
+ transaction_guid: b.transaction?.guid
702
435
  });
703
- }, U = (C) => {
704
- r(S.RECURRING_TRANSACTIONS_CLICK_PAID, {
705
- transaction_guid: C.transaction?.guid
436
+ }, F = (b) => {
437
+ r(w.RECURRING_TRANSACTIONS_CLICK_PAID, {
438
+ transaction_guid: b.transaction?.guid
706
439
  });
707
- }, ae = () => {
708
- const C = ze(m.start, 1);
709
- L({
710
- start: k(C),
711
- end: z(C)
440
+ }, ie = () => {
441
+ const b = Be(u.start, 1);
442
+ G({
443
+ start: W(b),
444
+ end: B(b)
712
445
  });
713
- }, Z = () => {
714
- const C = Be(m.start, 1);
715
- L({
716
- start: k(C),
717
- end: z(C)
446
+ }, P = () => {
447
+ const b = Ue(u.start, 1);
448
+ G({
449
+ start: W(b),
450
+ end: B(b)
718
451
  });
719
452
  };
720
- return /* @__PURE__ */ i(
721
- oe,
453
+ return /* @__PURE__ */ o(
454
+ ae,
722
455
  {
723
456
  container: !0,
724
457
  sx: {
725
458
  pt: 16,
726
- px: a ? 48 : 24
459
+ px: i ? 48 : 24
727
460
  },
728
461
  children: [
729
- /* @__PURE__ */ e(oe, { md: !0, sm: 12, width: "100%", children: /* @__PURE__ */ i(s, { sx: { gap: 16 }, children: [
730
- /* @__PURE__ */ i(s, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
462
+ /* @__PURE__ */ e(ae, { md: !0, sm: 12, width: "100%", children: /* @__PURE__ */ o(c, { sx: { gap: 16 }, children: [
463
+ /* @__PURE__ */ o(c, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
731
464
  /* @__PURE__ */ e(Je, { children: O(
732
465
  t.header_title,
733
- N(m.start, v.MONTH_LONG)
466
+ A(u.start, E.MONTH_LONG)
734
467
  ) }),
735
- !a && /* @__PURE__ */ i(s, { direction: "row", gap: 4, children: [
468
+ !i && /* @__PURE__ */ o(c, { direction: "row", gap: 4, children: [
736
469
  /* @__PURE__ */ e(
737
- xe,
470
+ Te,
738
471
  {
739
472
  color: "primary",
740
473
  disabled: I,
741
- onClick: Z,
742
- children: /* @__PURE__ */ e(Ke, {})
474
+ onClick: P,
475
+ children: /* @__PURE__ */ e(Ve, {})
743
476
  }
744
477
  ),
745
- /* @__PURE__ */ e(xe, { color: "primary", onClick: ae, children: /* @__PURE__ */ e(Ye, {}) })
478
+ /* @__PURE__ */ e(Te, { color: "primary", onClick: ie, children: /* @__PURE__ */ e(Xe, {}) })
746
479
  ] })
747
480
  ] }),
748
481
  /* @__PURE__ */ e(
749
- Ae,
482
+ Me,
750
483
  {
751
- expected: c,
752
- missed: g,
753
- paid: T,
484
+ expected: s,
485
+ missed: f,
486
+ paid: C,
754
487
  title: t.expenses,
755
- total: d.length,
488
+ total: l.length,
756
489
  upcoming: Q
757
490
  }
758
491
  ),
759
492
  /* @__PURE__ */ e(
760
- Ae,
493
+ Me,
761
494
  {
762
- expected: l,
495
+ expected: m,
763
496
  isExpense: !1,
764
497
  paid: y,
765
498
  title: t.deposits,
766
- total: f.length,
499
+ total: p.length,
767
500
  upcoming: ee
768
501
  }
769
502
  ),
770
- a && /* @__PURE__ */ e(
771
- H,
503
+ i && /* @__PURE__ */ e(
504
+ z,
772
505
  {
773
- onRecurrenceClick: w,
774
- recurrences: B,
506
+ onRecurrenceClick: _,
507
+ recurrences: U,
775
508
  title: t.upcoming_activity
776
509
  }
777
510
  ),
778
- !a && /* @__PURE__ */ i(s, { children: [
779
- /* @__PURE__ */ i(Fe, { onChange: ne, value: W, variant: "fullWidth", children: [
511
+ !i && /* @__PURE__ */ o(c, { children: [
512
+ /* @__PURE__ */ o(je, { onChange: ne, value: $, variant: "fullWidth", children: [
780
513
  /* @__PURE__ */ e(
781
- Re,
514
+ De,
782
515
  {
783
- label: /* @__PURE__ */ e(p, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: o ? t.upcoming : t.upcoming_activity })
516
+ label: /* @__PURE__ */ e(g, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: a ? t.upcoming : t.upcoming_activity })
784
517
  }
785
518
  ),
786
519
  /* @__PURE__ */ e(
787
- Re,
520
+ De,
788
521
  {
789
- label: /* @__PURE__ */ e(p, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: o ? t.past : t.past_transactions })
522
+ label: /* @__PURE__ */ e(g, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: a ? t.past : t.past_transactions })
790
523
  }
791
524
  )
792
525
  ] }),
793
- W === 0 && /* @__PURE__ */ e(
794
- H,
526
+ $ === 0 && /* @__PURE__ */ e(
527
+ z,
795
528
  {
796
- onRecurrenceClick: w,
797
- recurrences: B
529
+ onRecurrenceClick: _,
530
+ recurrences: U
798
531
  }
799
532
  ),
800
- W === 1 && /* @__PURE__ */ e(
801
- H,
533
+ $ === 1 && /* @__PURE__ */ e(
534
+ z,
802
535
  {
803
- onRecurrenceClick: U,
804
- recurrences: b
536
+ onRecurrenceClick: F,
537
+ recurrences: x
805
538
  }
806
539
  )
807
540
  ] })
808
541
  ] }) }),
809
- a && /* @__PURE__ */ e(oe, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ i(s, { gap: 24, children: [
810
- /* @__PURE__ */ e(Pe, {}),
542
+ i && /* @__PURE__ */ e(ae, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ o(c, { gap: 24, children: [
543
+ /* @__PURE__ */ e(ke, {}),
811
544
  /* @__PURE__ */ e(
812
- H,
545
+ z,
813
546
  {
814
- onRecurrenceClick: U,
815
- recurrences: D || b,
816
- title: u ? O(
547
+ onRecurrenceClick: F,
548
+ recurrences: R || x,
549
+ title: d ? O(
817
550
  t.day_transactions,
818
- N(u, v.MONTH_DAY)
551
+ A(d, E.MONTH_DAY)
819
552
  ) : t.past_transactions
820
553
  }
821
554
  )
@@ -823,124 +556,124 @@ const X = {
823
556
  ]
824
557
  }
825
558
  );
826
- }), wn = R(({ onBackClick: t, sx: n = {} }) => {
827
- const { accounts: a } = pe(), { recurring: o } = G(), { isCopyLoaded: r, isInitialized: d, selectedAccountGuids: f, setSelectedAccounts: m } = Y(), { isDataLoaded: c, loadRepeatingTransactions: l, setDateRange: g } = _(), { setFilter: b } = ge(), { onEvent: T } = V(), { isMobile: y } = he(), [u, D] = h.useState(!1);
559
+ }), _n = D(({ onBackClick: t, sx: n = {} }) => {
560
+ const { accounts: i } = ge(), { recurring: a } = S(), { isCopyLoaded: r, isInitialized: l, selectedAccountGuids: p, setSelectedAccounts: u } = X(), { isDataLoaded: s, loadRepeatingTransactions: m, setDateRange: f } = v(), { setFilter: x } = he(), { onEvent: C } = Z(), { isMobile: y } = fe(), [d, R] = h.useState(!1);
828
561
  return h.useEffect(() => {
829
- m(a);
830
- }, [a]), h.useEffect(() => {
831
- d && (b({
832
- dateRange: { start: le(ue(), 90), end: de() },
833
- accounts: f
834
- }), g({ start: k(/* @__PURE__ */ new Date()), end: z(/* @__PURE__ */ new Date()) }), l().finally());
835
- }, [d]), r ? /* @__PURE__ */ i(
836
- ot,
562
+ u(i);
563
+ }, [i]), h.useEffect(() => {
564
+ l && (x({
565
+ dateRange: { start: ue(de(), 90), end: le() },
566
+ accounts: p
567
+ }), f({ start: W(/* @__PURE__ */ new Date()), end: B(/* @__PURE__ */ new Date()) }), m().finally());
568
+ }, [l]), r ? /* @__PURE__ */ o(
569
+ at,
837
570
  {
838
- accountOptions: a,
571
+ accountOptions: i,
839
572
  actions: [
840
573
  {
841
- label: o.action_title,
574
+ label: a.action_title,
842
575
  iconName: "credit_card_gear",
843
576
  onClick: () => {
844
- D(!0), T(S.RECURRING_TRANSACTIONS_CLICK_SETTINGS);
577
+ R(!0), C(w.RECURRING_TRANSACTIONS_CLICK_SETTINGS);
845
578
  }
846
579
  }
847
580
  ],
848
581
  hasDivider: y,
849
- onAccountsFilterClick: () => T(S.RECURRING_TRANSACTIONS_CLICK_FILTER),
582
+ onAccountsFilterClick: () => C(w.RECURRING_TRANSACTIONS_CLICK_FILTER),
850
583
  onBackClick: t,
851
584
  sx: n,
852
- title: o.title,
585
+ title: a.title,
853
586
  children: [
854
- d && c ? /* @__PURE__ */ e(Ct, {}) : /* @__PURE__ */ i(s, { direction: "column", p: 48, spacing: 24, children: [
855
- /* @__PURE__ */ e(ie, { height: 100, variant: "rounded", width: "100%" }),
856
- /* @__PURE__ */ e(ie, { height: 100, variant: "rounded", width: "100%" }),
857
- /* @__PURE__ */ e(ie, { height: 600, variant: "rounded", width: "100%" })
587
+ l && s ? /* @__PURE__ */ e(bt, {}) : /* @__PURE__ */ o(c, { direction: "column", p: 48, spacing: 24, children: [
588
+ /* @__PURE__ */ e(oe, { height: 100, variant: "rounded", width: "100%" }),
589
+ /* @__PURE__ */ e(oe, { height: 100, variant: "rounded", width: "100%" }),
590
+ /* @__PURE__ */ e(oe, { height: 600, variant: "rounded", width: "100%" })
858
591
  ] }),
859
592
  /* @__PURE__ */ e(
860
- Ee,
593
+ Ne,
861
594
  {
862
- ariaLabelClose: o.close_drawer_aria,
863
- isOpen: u,
864
- onClose: () => D(!1),
595
+ ariaLabelClose: a.close_drawer_aria,
596
+ isOpen: d,
597
+ onClose: () => R(!1),
865
598
  shouldShowHeaderBorders: !1,
866
- title: o.action_title,
867
- children: /* @__PURE__ */ e(He, {})
599
+ title: a.action_title,
600
+ children: /* @__PURE__ */ e(ze, {})
868
601
  }
869
602
  )
870
603
  ]
871
604
  }
872
- ) : /* @__PURE__ */ e(q, {});
873
- }), Dt = R(() => {
874
- const { recurring: t } = G(), { availableWidth: n } = ve(), { selectedDay: a, selectedDayRecurrences: o, setSelectedDay: r, upcomingRecurrences: d } = _(), f = n < 750;
875
- return /* @__PURE__ */ i(s, { flexDirection: f ? "column" : "row", width: "100%", children: [
876
- /* @__PURE__ */ e(Pe, {}),
877
- !f && /* @__PURE__ */ e(se, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
605
+ ) : /* @__PURE__ */ e(K, {});
606
+ }), Rt = D(() => {
607
+ const { recurring: t } = S(), { availableWidth: n } = Ee(), { selectedDay: i, selectedDayRecurrences: a, setSelectedDay: r, upcomingRecurrences: l } = v(), p = n < 750;
608
+ return /* @__PURE__ */ o(c, { flexDirection: p ? "column" : "row", width: "100%", children: [
609
+ /* @__PURE__ */ e(ke, {}),
610
+ !p && /* @__PURE__ */ e(ce, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
878
611
  /* @__PURE__ */ e(
879
- H,
612
+ z,
880
613
  {
881
614
  isMini: !0,
882
- onResetClick: a ? () => r(a) : void 0,
883
- recurrences: o || d.slice(0, 5),
884
- sx: { width: f ? "100%" : "calc(100% - 336px)", mt: 12 },
885
- title: a ? O(
615
+ onResetClick: i ? () => r(i) : void 0,
616
+ recurrences: a || l.slice(0, 5),
617
+ sx: { width: p ? "100%" : "calc(100% - 336px)", mt: 12 },
618
+ title: i ? O(
886
619
  t.day_transactions,
887
- N(a, v.MONTH_DAY)
620
+ A(i, E.MONTH_DAY)
888
621
  ) : t.upcoming_activity
889
622
  }
890
623
  )
891
624
  ] });
892
- }), Sn = R(
625
+ }), wn = D(
893
626
  ({ onPrimaryCtaClick: t, sx: n }) => {
894
- const { accounts: a } = pe(), { recurring: o } = G(), { setFilter: r } = ge(), { isDataLoaded: d, loadRepeatingTransactions: f } = _(), { isCopyLoaded: m, isInitialized: c, setSelectedAccounts: l, selectedAccountGuids: g } = Y();
627
+ const { accounts: i } = ge(), { recurring: a } = S(), { setFilter: r } = he(), { isDataLoaded: l, loadRepeatingTransactions: p } = v(), { isCopyLoaded: u, isInitialized: s, setSelectedAccounts: m, selectedAccountGuids: f } = X();
895
628
  return h.useEffect(() => {
896
- c && l(a);
897
- }, [c]), h.useEffect(() => {
898
- g.length > 0 && (r({
899
- dateRange: { start: le(ue(), 90), end: de() },
900
- accounts: g
901
- }), f().finally());
902
- }, [g]), !m || !c ? /* @__PURE__ */ e(q, {}) : /* @__PURE__ */ e(
903
- ft,
629
+ s && m(i);
630
+ }, [s]), h.useEffect(() => {
631
+ f.length > 0 && (r({
632
+ dateRange: { start: ue(de(), 90), end: le() },
633
+ accounts: f
634
+ }), p().finally());
635
+ }, [f]), !u || !s ? /* @__PURE__ */ e(K, {}) : /* @__PURE__ */ e(
636
+ pt,
904
637
  {
905
638
  className: "mx-exp-recurring-transactions-miniwidget",
906
639
  onPrimaryCtaClick: t,
907
- primaryCtaLabel: o.primary_cta,
908
- subTitle: o.sub_title,
640
+ primaryCtaLabel: a.primary_cta,
641
+ subTitle: a.sub_title,
909
642
  sx: n,
910
- title: o.mini_title,
911
- children: d ? /* @__PURE__ */ e(Dt, {}) : /* @__PURE__ */ e(q, {})
643
+ title: a.mini_title,
644
+ children: l ? /* @__PURE__ */ e(Rt, {}) : /* @__PURE__ */ e(K, {})
912
645
  }
913
646
  );
914
647
  }
915
- ), xt = ({
648
+ ), Tt = ({
916
649
  upcomingRecurrences: t,
917
650
  maxLogos: n = 3
918
- }) => /* @__PURE__ */ e(s, { sx: { flexDirection: "row", gap: 4 }, children: t?.slice(0, n).map((a, o) => /* @__PURE__ */ e(
651
+ }) => /* @__PURE__ */ e(c, { sx: { flexDirection: "row", gap: 4 }, children: t?.slice(0, n).map((i, a) => /* @__PURE__ */ e(
919
652
  me,
920
653
  {
921
- categoryGuid: a.categoryGuid || "",
922
- merchantGuid: a.merchantGuid || ""
654
+ categoryGuid: i.categoryGuid || "",
655
+ merchantGuid: i.merchantGuid || ""
923
656
  },
924
- `${a.categoryGuid}-${a.merchantGuid}-${o}`
925
- )) }), Rt = ({
657
+ `${i.categoryGuid}-${i.merchantGuid}-${a}`
658
+ )) }), Dt = ({
926
659
  upcomingRecurrences: t,
927
660
  logoSize: n = 32,
928
- maxLogos: a = 3
661
+ maxLogos: i = 3
929
662
  }) => {
930
- const o = (r) => r * (n / 2);
663
+ const a = (r) => r * (n / 2);
931
664
  return /* @__PURE__ */ e(
932
- P,
665
+ k,
933
666
  {
934
667
  sx: {
935
668
  position: "relative",
936
669
  width: 64
937
670
  },
938
- children: t.map((r, d) => d < a ? /* @__PURE__ */ e(
939
- P,
671
+ children: t.map((r, l) => l < i ? /* @__PURE__ */ e(
672
+ k,
940
673
  {
941
674
  sx: {
942
675
  borderRadius: "4px",
943
- left: o(d),
676
+ left: a(l),
944
677
  outlineColor: "common.white",
945
678
  outlineStyle: "solid",
946
679
  outlineWidth: 2,
@@ -955,19 +688,19 @@ const X = {
955
688
  }
956
689
  )
957
690
  },
958
- `${r.categoryGuid}-${r.merchantGuid}-${d}`
691
+ `${r.categoryGuid}-${r.merchantGuid}-${l}`
959
692
  ) : null)
960
693
  }
961
694
  );
962
- }, Gt = ({
695
+ }, St = ({
963
696
  amount: t,
964
697
  bgcolor: n,
965
- isLargeScreen: a,
966
- isSmallScreen: o,
698
+ isLargeScreen: i,
699
+ isSmallScreen: a,
967
700
  label: r
968
- }) => /* @__PURE__ */ i(s, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
701
+ }) => /* @__PURE__ */ o(c, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
969
702
  /* @__PURE__ */ e(
970
- P,
703
+ k,
971
704
  {
972
705
  sx: {
973
706
  borderRadius: "2px",
@@ -977,110 +710,110 @@ const X = {
977
710
  }
978
711
  }
979
712
  ),
980
- /* @__PURE__ */ i(s, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
981
- !o && /* @__PURE__ */ e(p, { bold: !0, variant: "caption", children: M(t, t === 0 || !a ? "0,0" : "0,0.00") }),
982
- /* @__PURE__ */ e(p, { variant: "caption", children: r })
713
+ /* @__PURE__ */ o(c, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
714
+ !a && /* @__PURE__ */ e(g, { bold: !0, variant: "caption", children: L(t, t === 0 || !i ? "0,0" : "0,0.00") }),
715
+ /* @__PURE__ */ e(g, { variant: "caption", children: r })
983
716
  ] })
984
- ] }), It = R(() => {
985
- const { recurring: t } = G();
986
- return /* @__PURE__ */ i(s, { sx: { alignItems: "start", flexDirection: "row", gap: 12 }, children: [
987
- /* @__PURE__ */ e(Ve, { size: 32 }),
988
- /* @__PURE__ */ i(s, { children: [
989
- /* @__PURE__ */ e(ce, { fontWeight: 600, variant: "body1", children: t.zero_state_content_header }),
990
- /* @__PURE__ */ e(ce, { color: "text.secondary", variant: "subtitle2", children: t.zero_state_content_description })
717
+ ] }), It = D(() => {
718
+ const { recurring: t } = S();
719
+ return /* @__PURE__ */ o(c, { sx: { alignItems: "start", flexDirection: "row", gap: 12 }, children: [
720
+ /* @__PURE__ */ e(Ze, { size: 32 }),
721
+ /* @__PURE__ */ o(c, { children: [
722
+ /* @__PURE__ */ e(se, { fontWeight: 600, variant: "body1", children: t.zero_state_content_header }),
723
+ /* @__PURE__ */ e(se, { color: "text.secondary", variant: "subtitle2", children: t.zero_state_content_description })
991
724
  ] })
992
725
  ] });
993
- }), _n = R(
726
+ }), vn = D(
994
727
  ({ onCTAClick: t }) => {
995
- const [n, a] = h.useState(!1), { onEvent: o } = V(), r = fe(), { accounts: d } = pe(), [f, { width: m }] = pt(), { isCopyLoaded: c, isInitialized: l, selectedAccountGuids: g, setSelectedAccounts: b } = Y(), {
996
- loadRepeatingTransactions: T,
728
+ const [n, i] = h.useState(!1), { onEvent: a } = Z(), r = pe(), { accounts: l } = ge(), [p, { width: u }] = gt(), { isCopyLoaded: s, isInitialized: m, selectedAccountGuids: f, setSelectedAccounts: x } = X(), {
729
+ loadRepeatingTransactions: C,
997
730
  upcomingRecurrences: y,
998
- expenseTotal: u,
999
- missedExpenseTotal: D,
1000
- paidExpenseTotal: L,
731
+ expenseTotal: d,
732
+ missedExpenseTotal: R,
733
+ paidExpenseTotal: G,
1001
734
  repeatingTransactions: Q,
1002
735
  setDateRange: ee,
1003
- upcomingExpenseTotal: B,
1004
- isDataLoaded: W
1005
- } = _(), { setFilter: te } = ge(), { recurring: I, budgets: ne } = G();
736
+ upcomingExpenseTotal: U,
737
+ isDataLoaded: $
738
+ } = v(), { setFilter: te } = he(), { recurring: I, budgets: ne } = S();
1006
739
  h.useEffect(() => {
1007
- b(d);
1008
- }, [d]), h.useEffect(() => {
1009
- l && (te({
1010
- dateRange: { start: le(ue(), 90), end: de() },
1011
- accounts: g
1012
- }), ee({ start: k(/* @__PURE__ */ new Date()), end: z(/* @__PURE__ */ new Date()) }), T().finally(), a(!0));
740
+ x(l);
1013
741
  }, [l]), h.useEffect(() => {
1014
- n && o(S.RECURRING_TRANSACTIONS_LOAD_WIDGET, {
742
+ m && (te({
743
+ dateRange: { start: ue(de(), 90), end: le() },
744
+ accounts: f
745
+ }), ee({ start: W(/* @__PURE__ */ new Date()), end: B(/* @__PURE__ */ new Date()) }), C().finally(), i(!0));
746
+ }, [m]), h.useEffect(() => {
747
+ n && a(w.RECURRING_TRANSACTIONS_LOAD_WIDGET, {
1015
748
  state: y.length > 0 ? "default" : "zeroState"
1016
749
  });
1017
750
  }, [n]);
1018
- const w = m <= 288, U = m >= 450, ae = h.useMemo(() => {
1019
- const E = [
1020
- { color: r.palette.success.main, percentage: `${L / u}` }
751
+ const _ = u <= 288, F = u >= 450, ie = h.useMemo(() => {
752
+ const N = [
753
+ { color: r.palette.success.main, percentage: `${G / d}` }
1021
754
  ];
1022
- return D && E.push({
755
+ return R && N.push({
1023
756
  color: r.palette.error.main,
1024
- percentage: `${D / u}`
1025
- }), E;
757
+ percentage: `${R / d}`
758
+ }), N;
1026
759
  }, [
1027
- L,
1028
- u,
1029
- D,
760
+ G,
761
+ d,
762
+ R,
1030
763
  r.palette.success.main,
1031
764
  r.palette.error.main
1032
- ]), Z = h.useMemo(() => M(u, u === 0 ? "0,0" : "0,0.00"), [u]), C = () => {
1033
- o(
1034
- y.length > 0 ? S.RECURRING_TRANSACTIONS_CLICK_GET_STARTED : S.RECURRING_TRANSACTIONS_CLICK_VIEW_ALL
765
+ ]), P = h.useMemo(() => L(d, d === 0 ? "0,0" : "0,0.00"), [d]), b = () => {
766
+ a(
767
+ y.length > 0 ? w.RECURRING_TRANSACTIONS_CLICK_GET_STARTED : w.RECURRING_TRANSACTIONS_CLICK_VIEW_ALL
1035
768
  ), t();
1036
769
  };
1037
- if (!c || !n || !W) return /* @__PURE__ */ e(q, { height: 100 });
1038
- const re = 32, ke = y.length > 0, We = () => ke ? w ? /* @__PURE__ */ e(
1039
- Rt,
770
+ if (!s || !n || !$) return /* @__PURE__ */ e(K, { height: 100 });
771
+ const re = 32, We = y.length > 0, $e = () => We ? _ ? /* @__PURE__ */ e(
772
+ Dt,
1040
773
  {
1041
774
  logoSize: re,
1042
775
  maxLogos: 3,
1043
776
  upcomingRecurrences: y.slice(0, 3)
1044
777
  }
1045
- ) : /* @__PURE__ */ e(xt, { maxLogos: 3, upcomingRecurrences: y.slice(0, 3) }) : /* @__PURE__ */ e(s, { sx: { width: w ? 64 : 104 } }), Ze = [
778
+ ) : /* @__PURE__ */ e(Tt, { maxLogos: 3, upcomingRecurrences: y.slice(0, 3) }) : /* @__PURE__ */ e(c, { sx: { width: _ ? 64 : 104 } }), Pe = [
1046
779
  {
1047
- amount: L,
780
+ amount: G,
1048
781
  bgColor: "success.main",
1049
782
  label: I.paid
1050
783
  },
1051
784
  {
1052
- amount: D,
785
+ amount: R,
1053
786
  bgColor: "error.main",
1054
787
  label: I.missed
1055
788
  },
1056
789
  {
1057
- amount: B,
790
+ amount: U,
1058
791
  bgColor: "border.light",
1059
792
  label: I.upcoming
1060
793
  }
1061
- ], De = !Q?.length;
794
+ ], Re = !Q?.length;
1062
795
  return /* @__PURE__ */ e(
1063
- gt,
796
+ ht,
1064
797
  {
1065
798
  className: "mx-recurring-transaction-microwidget",
1066
- ctaLabel: De ? ne.get_started_cta : I.primary_cta,
1067
- onCTAClick: C,
799
+ ctaLabel: Re ? ne.get_started_cta : I.primary_cta,
800
+ onCTAClick: b,
1068
801
  title: I.recurring_expenses,
1069
- children: De ? /* @__PURE__ */ e(It, {}) : /* @__PURE__ */ i(j, { children: [
1070
- /* @__PURE__ */ i(
1071
- s,
802
+ children: Re ? /* @__PURE__ */ e(It, {}) : /* @__PURE__ */ o(Y, { children: [
803
+ /* @__PURE__ */ o(
804
+ c,
1072
805
  {
1073
- ref: f,
806
+ ref: p,
1074
807
  sx: {
1075
808
  flexDirection: "row",
1076
809
  justifyContent: "space-between"
1077
810
  },
1078
811
  children: [
1079
- /* @__PURE__ */ i(
1080
- s,
812
+ /* @__PURE__ */ o(
813
+ c,
1081
814
  {
1082
815
  sx: [
1083
- Z.length >= 10 && w ? { flexDirection: "column" } : { flexDirection: "row", gap: 2 },
816
+ P.length >= 10 && _ ? { flexDirection: "column" } : { flexDirection: "row", gap: 2 },
1084
817
  {
1085
818
  alignItems: "baseline",
1086
819
  overflow: "hidden",
@@ -1090,15 +823,15 @@ const X = {
1090
823
  ],
1091
824
  children: [
1092
825
  /* @__PURE__ */ e(
1093
- p,
826
+ g,
1094
827
  {
1095
828
  sx: { width: "100%" },
1096
- variant: Z.length >= 10 && w ? "H3" : "H2",
1097
- children: Z
829
+ variant: P.length >= 10 && _ ? "H3" : "H2",
830
+ children: P
1098
831
  }
1099
832
  ),
1100
833
  /* @__PURE__ */ e(
1101
- ce,
834
+ se,
1102
835
  {
1103
836
  sx: {
1104
837
  pr: 12
@@ -1110,14 +843,14 @@ const X = {
1110
843
  ]
1111
844
  }
1112
845
  ),
1113
- We()
846
+ $e()
1114
847
  ]
1115
848
  }
1116
849
  ),
1117
- /* @__PURE__ */ i(s, { sx: { pt: 12 }, children: [
1118
- /* @__PURE__ */ e(Oe, { data: ae }),
850
+ /* @__PURE__ */ o(c, { sx: { pt: 12 }, children: [
851
+ /* @__PURE__ */ e(Oe, { data: ie }),
1119
852
  /* @__PURE__ */ e(
1120
- s,
853
+ c,
1121
854
  {
1122
855
  sx: {
1123
856
  alignItems: "center",
@@ -1125,16 +858,16 @@ const X = {
1125
858
  gap: 16,
1126
859
  mt: 4
1127
860
  },
1128
- children: Ze.map((E, $e) => /* @__PURE__ */ e(
1129
- Gt,
861
+ children: Pe.map((N, He) => /* @__PURE__ */ e(
862
+ St,
1130
863
  {
1131
- amount: E.amount,
1132
- bgcolor: E.bgColor,
1133
- isLargeScreen: U,
1134
- isSmallScreen: w,
1135
- label: E.label
864
+ amount: N.amount,
865
+ bgcolor: N.bgColor,
866
+ isLargeScreen: F,
867
+ isSmallScreen: _,
868
+ label: N.label
1136
869
  },
1137
- `recurrence-legend-${$e}`
870
+ `recurrence-legend-${He}`
1138
871
  ))
1139
872
  }
1140
873
  )
@@ -1146,12 +879,12 @@ const X = {
1146
879
  );
1147
880
  export {
1148
881
  On as AddRecurringTransactionDetails,
1149
- Nn as ManageExpenses,
1150
- Pn as ManageIncome,
1151
- He as RecurringSettings,
1152
- _n as RecurringTransactionsMicroWidget,
1153
- Sn as RecurringTransactionsMiniWidget,
1154
- Ln as RecurringTransactionsStore,
1155
- wn as RecurringTransactionsWidget,
1156
- kn as SelectTransaction
882
+ An as ManageExpenses,
883
+ kn as ManageIncome,
884
+ ze as RecurringSettings,
885
+ vn as RecurringTransactionsMicroWidget,
886
+ wn as RecurringTransactionsMiniWidget,
887
+ Gn as RecurringTransactionsStore,
888
+ _n as RecurringTransactionsWidget,
889
+ Wn as SelectTransaction
1157
890
  };