@mx-cartographer/experiences 8.0.0-alpha.bb3 → 8.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 (203) hide show
  1. package/CHANGELOG.md +178 -1
  2. package/dist/{Account-Bxw0_4FU.mjs → Account-CvR2-dSR.mjs} +1 -1
  3. package/dist/{AccountDetailsContent-CAM9y39M.mjs → AccountDetailsContent-CitErkuS.mjs} +89 -82
  4. package/dist/AccountDetailsHeader-BkG3MNYo.mjs +87 -0
  5. package/dist/{AccountFields-C9FlatNb.mjs → AccountFields-zCMqet85.mjs} +6 -6
  6. package/dist/{AccountListItem-JFMZROh7.mjs → AccountListItem-DHrz8Mml.mjs} +9 -9
  7. package/dist/{AccountStore-BgNOyMdp.mjs → AccountStore-LgfBcYMe.mjs} +112 -75
  8. package/dist/Accounts-Bzy1_REQ.mjs +9 -0
  9. package/dist/{BeatApi-DhJpgCLz.mjs → BeatApi-De2IaqH2.mjs} +1 -1
  10. package/dist/{BeatStore-IBnXd4YK.mjs → BeatStore-D_NYuBSz.mjs} +1 -1
  11. package/dist/{BudgetUtil-B2ZXyw-g.mjs → BudgetUtil-BmZXkL0C.mjs} +2 -2
  12. package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-B-I3kajA.mjs} +23 -21
  13. package/dist/CategoryStore-CA3tS1BO.mjs +186 -0
  14. package/dist/CategoryUtil-DUM8NuGO.mjs +78 -0
  15. package/dist/{ConnectDrawer-BQNs-hjk.mjs → ConnectDrawer-BkvlItWx.mjs} +11 -11
  16. package/dist/{ConnectionsDrawer-ByGQE7D5.mjs → ConnectionsDrawer-VmuVFHbL.mjs} +5 -5
  17. package/dist/{CurrencyInput-DUsQbkXb.mjs → CurrencyInput-itK0R3wV.mjs} +2 -2
  18. package/dist/{CurrencyText-kyC1aseI.mjs → CurrencyText-Dr0EZ7bp.mjs} +1 -1
  19. package/dist/{DateUtil-BcuH7ErC.mjs → DateUtil-CBdcsyuk.mjs} +3 -3
  20. package/dist/{DebtsStore-C9bblOgW.mjs → DebtsStore-Bq-aPy-5.mjs} +1 -1
  21. package/dist/{Dialog-CWW597AF.mjs → Dialog-BPTr3qHE.mjs} +2 -2
  22. package/dist/{Donut-oaQFlbit.mjs → Donut-Dmy3JTWd.mjs} +12 -12
  23. package/dist/Drawer-By9V-B5L.mjs +178 -0
  24. package/dist/{EmptyState-DA_lfRBv.mjs → EmptyState-DoxNUae-.mjs} +24 -22
  25. package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-Cglo8Mca.mjs} +3 -3
  26. package/dist/{Fetch-87LIQbEA.mjs → Fetch-DecPFeGU.mjs} +24 -22
  27. package/dist/FinstrongStore-BIrX0Xg2.mjs +451 -0
  28. package/dist/{GoalStore-D-aB35SY.mjs → GoalStore-1P19goZ7.mjs} +112 -152
  29. package/dist/{Help-B6dIcujh.mjs → Help-Ea3BlXQp.mjs} +2 -2
  30. package/dist/LineChart-KpPw1phO.mjs +580 -0
  31. package/dist/{ListItemAction-DHa3KJPs.mjs → ListItemAction-BxTkF6Tz.mjs} +10 -10
  32. package/dist/{ManageIncome-1s_q5W4X.mjs → ManageIncome-CaoQl609.mjs} +91 -88
  33. package/dist/{MerchantStore-DrFvsUyy.mjs → MerchantStore-WvZ4gnQe.mjs} +1 -1
  34. package/dist/MicroWidgetContainer-r6mtxRer.mjs +52 -0
  35. package/dist/MiniWidgetContainer-Bg02sF1Y.mjs +71 -0
  36. package/dist/{NetWorthStore-DCsTZpuS.mjs → NetWorthStore-rC0q7P7t.mjs} +2 -2
  37. package/dist/{NotificationSettings-DqrkNMod.mjs → NotificationSettings-uzM8tCoH.mjs} +236 -231
  38. package/dist/{NotificationStore-BxP_P2dA.mjs → NotificationStore-CDX_kqHa.mjs} +7 -15
  39. package/dist/{NumberFormatting-Buh7u8Oi.mjs → NumberFormatting-DjTD0t3W.mjs} +9 -9
  40. package/dist/{OriginalBalanceAction-CWuVvRq9.mjs → OriginalBalanceAction-C6jdS4ws.mjs} +4 -4
  41. package/dist/{RecurringSettings-A_rAGCTP.mjs → RecurringSettings-B4ybrS0B.mjs} +4 -4
  42. package/dist/{RecurringTransactions-DK8dWldr.mjs → RecurringTransactions-BqijW_8S.mjs} +49 -48
  43. package/dist/{RecurringTransactionsStore-C4YOD7_D.mjs → RecurringTransactionsStore-BhBUVm9a.mjs} +26 -29
  44. package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-krIRNwHK.mjs} +3 -3
  45. package/dist/{SpendingData-D5vsfYKo.mjs → SpendingData-DQ1b9uqq.mjs} +11 -13
  46. package/dist/SpendingLegend-CDO060GT.mjs +193 -0
  47. package/dist/{ToggleListItem-r0Kx56wF.mjs → ToggleListItem-ciFTiqRS.mjs} +19 -14
  48. package/dist/TransactionApi-CjBoLleL.mjs +86 -0
  49. package/dist/TransactionDetails-m5PddMQn.mjs +1380 -0
  50. package/dist/TransactionStore-PRlwE-TF.mjs +677 -0
  51. package/dist/TrendsStore-yO7qYv97.mjs +186 -0
  52. package/dist/{User-BQUxBeZV.mjs → User-Cnlegl1N.mjs} +2 -2
  53. package/dist/{ViewMoreMicroCard-SCn2wt4i.mjs → ViewMoreMicroCard-DwR0v_ll.mjs} +711 -728
  54. package/dist/{WidgetContainer-BHWANqT4.mjs → WidgetContainer-CoFDmQRE.mjs} +4 -4
  55. package/dist/accounts/components/AccountsListCompact.d.ts +10 -0
  56. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +4 -1
  57. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.d.ts +2 -1
  58. package/dist/accounts/index.es.js +245 -235
  59. package/dist/accounts/stores/AccountStore.d.ts +24 -25
  60. package/dist/accounts/utils/Accounts.d.ts +1 -2
  61. package/dist/analytics/index.es.js +2 -2
  62. package/dist/budgets/components/AddBudgets.d.ts +2 -1
  63. package/dist/budgets/index.es.js +611 -580
  64. package/dist/budgets/store/BudgetsStore.d.ts +0 -1
  65. package/dist/cashflow/index.es.js +187 -180
  66. package/dist/categories/index.es.js +2 -2
  67. package/dist/categories/stores/CategoryStore.d.ts +2 -5
  68. package/dist/categories/util/CategoryUtil.d.ts +2 -3
  69. package/dist/common/components/Select.d.ts +4 -2
  70. package/dist/common/components/charts/LineChart.d.ts +12 -2
  71. package/dist/common/components/charts/index.d.ts +0 -3
  72. package/dist/common/components/charts/linechart/CustomLegend.d.ts +3 -1
  73. package/dist/common/components/charts/linechart/CustomMark.d.ts +4 -0
  74. package/dist/common/components/charts/linechart/CustomTooltip.d.ts +6 -1
  75. package/dist/common/components/charts/stackedlinechart/CustomPointTooltip.d.ts +5 -2
  76. package/dist/common/components/drawer/Drawer.d.ts +3 -0
  77. package/dist/common/components/drawer/Footer.d.ts +17 -0
  78. package/dist/common/hooks/index.d.ts +1 -0
  79. package/dist/common/hooks/useWidgetLoadTimer.d.ts +6 -0
  80. package/dist/common/index.es.js +397 -387
  81. package/dist/common/stores/AppDataStore.d.ts +1 -3
  82. package/dist/common/stores/GlobalCopyStore.d.ts +1 -0
  83. package/dist/common/stores/GlobalStore.d.ts +10 -4
  84. package/dist/common/stores/GlobalUiStore.d.ts +2 -3
  85. package/dist/common/stores/UserStore.d.ts +2 -3
  86. package/dist/common/types/Account.d.ts +6 -9
  87. package/dist/common/types/Finstrong.d.ts +54 -0
  88. package/dist/common/types/Global.d.ts +1 -0
  89. package/dist/common/types/Widgets.d.ts +1 -0
  90. package/dist/common/types/index.d.ts +1 -1
  91. package/dist/common/types/localization/FinstrongCopy.d.ts +105 -2
  92. package/dist/common/types/localization/GoalsCopy.d.ts +1 -0
  93. package/dist/common/types/localization/TransactionsCopy.d.ts +1 -0
  94. package/dist/dashboard/index.es.js +90 -88
  95. package/dist/debts/index.es.js +458 -448
  96. package/dist/exportTransactionsToCSV-DuAaI5XA.mjs +48 -0
  97. package/dist/finstrong/FinstrongWidget.d.ts +1 -1
  98. package/dist/finstrong/api/FinstrongApi.d.ts +5 -0
  99. package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +3 -1
  100. package/dist/finstrong/components/CreditScore/CreditScoreContent.d.ts +4 -0
  101. package/dist/finstrong/components/CreditScore/CreditScoreHeader.d.ts +4 -0
  102. package/dist/finstrong/components/FinancialStrengthGraph.d.ts +7 -1
  103. package/dist/finstrong/components/HaveManageableDebt/DebtPaymentTabContent.d.ts +3 -0
  104. package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtComponent.d.ts +3 -0
  105. package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtProgressBar.d.ts +4 -0
  106. package/dist/finstrong/components/HaveManageableDebt/IncomeTabContent.d.ts +3 -0
  107. package/dist/finstrong/components/KeyIndicatorsBorrowTab.d.ts +2 -2
  108. package/dist/finstrong/components/KeyIndicatorsDrawer.d.ts +4 -1
  109. package/dist/finstrong/components/KeyIndicatorsSaveTab.d.ts +2 -2
  110. package/dist/finstrong/components/KeyIndicatorsSpendTab.d.ts +2 -2
  111. package/dist/finstrong/components/KeyIndicatorsTabItem.d.ts +4 -3
  112. package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.d.ts +10 -0
  113. package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +2 -2
  114. package/dist/finstrong/components/MaintainingEmergencySavings/EstimatedContributionCalculator.d.ts +6 -0
  115. package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsContent.d.ts +4 -0
  116. package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsSticky.d.ts +4 -0
  117. package/dist/finstrong/components/ProgressBar.d.ts +15 -0
  118. package/dist/finstrong/components/SaveEnoughToLiveOn/AvailableTabContent.d.ts +3 -0
  119. package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnDrawerContent.d.ts +3 -0
  120. package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnProgressBar.d.ts +4 -0
  121. package/dist/finstrong/components/SaveEnoughToLiveOn/SpendingTabContent.d.ts +3 -0
  122. package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeComponent.d.ts +3 -0
  123. package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeProgressBar.d.ts +4 -0
  124. package/dist/finstrong/components/StatusChip.d.ts +5 -0
  125. package/dist/finstrong/components/onboarding/Onboarding.d.ts +2 -0
  126. package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +17 -0
  127. package/dist/finstrong/components/onboarding/OnboardingBirthday.d.ts +8 -0
  128. package/dist/finstrong/components/onboarding/OnboardingCreditScore.d.ts +8 -0
  129. package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +14 -0
  130. package/dist/finstrong/components/onboarding/OnboardingStepsHeader.d.ts +8 -0
  131. package/dist/finstrong/components/paybillsontime/PayBillsOnTimeDrawerComponent.d.ts +4 -0
  132. package/dist/finstrong/components/paybillsontime/PayBillsOnTimeStickyComponent.d.ts +4 -0
  133. package/dist/finstrong/components/shared/Accounts.d.ts +8 -0
  134. package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +24 -0
  135. package/dist/finstrong/components/shared/DialScoreCard.d.ts +7 -1
  136. package/dist/finstrong/components/shared/DoubleBarChart.d.ts +28 -0
  137. package/dist/finstrong/components/shared/LineGraph.d.ts +7 -0
  138. package/dist/finstrong/components/shared/TotalCard.d.ts +8 -0
  139. package/dist/finstrong/components/shared/Transactions.d.ts +11 -0
  140. package/dist/finstrong/constants/index.d.ts +9 -0
  141. package/dist/finstrong/index.es.js +3190 -1073
  142. package/dist/finstrong/stores/FinstrongStore.d.ts +25 -2
  143. package/dist/finstrong/util/finstrongUtils.d.ts +58 -1
  144. package/dist/goals/index.es.js +302 -291
  145. package/dist/goals/stores/GoalStore.d.ts +4 -17
  146. package/dist/help/index.es.js +13 -9
  147. package/dist/{hooks-D6XlXHf4.mjs → hooks-ZMp65DFz.mjs} +12 -12
  148. package/dist/insights/index.es.js +1 -1
  149. package/dist/investments/index.es.js +108 -104
  150. package/dist/investments/stores/HoldingStore.d.ts +0 -1
  151. package/dist/merchants/index.es.js +2 -2
  152. package/dist/microinsights/MicroCardTemplate.d.ts +16 -0
  153. package/dist/microinsights/beaticons/BeatIcon.d.ts +2 -9
  154. package/dist/microinsights/beaticons/BeatMerchantLogo.d.ts +3 -2
  155. package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +2 -1
  156. package/dist/microinsights/cards/{MicroInsightCard.d.ts → BaseCard.d.ts} +1 -8
  157. package/dist/microinsights/cards/{BeatCard.d.ts → InsightCard.d.ts} +2 -2
  158. package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +2 -5
  159. package/dist/microinsights/cards/ZeroStateCard.d.ts +2 -5
  160. package/dist/microinsights/carousel/BeatList.d.ts +10 -0
  161. package/dist/microinsights/carousel/CarouselControls.d.ts +1 -3
  162. package/dist/microinsights/carousel/CarouselHeader.d.ts +1 -2
  163. package/dist/microinsights/constants/App.d.ts +0 -1
  164. package/dist/microinsights/index.d.ts +4 -3
  165. package/dist/microinsights/index.es.js +101 -14
  166. package/dist/microinsights/interfaces.d.ts +0 -6
  167. package/dist/networth/index.es.js +197 -190
  168. package/dist/notifications/index.es.js +25 -25
  169. package/dist/notifications/stores/NotificationStore.d.ts +1 -3
  170. package/dist/recurringtransactions/index.es.js +395 -351
  171. package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +2 -3
  172. package/dist/settings/index.es.js +307 -298
  173. package/dist/spending/index.es.js +299 -438
  174. package/dist/spending/utils/SpendingData.d.ts +2 -1
  175. package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -0
  176. package/dist/transactions/components/shared/TransactionList.d.ts +1 -0
  177. package/dist/transactions/index.es.js +115 -112
  178. package/dist/transactions/stores/TransactionStore.d.ts +77 -21
  179. package/dist/trends/components/TrendsTable.d.ts +0 -2
  180. package/dist/trends/index.es.js +1025 -604
  181. package/dist/trends/utils/TrendsData.d.ts +1 -0
  182. package/dist/{useAccountDisplayName-BUAApBIb.mjs → useAccountDisplayName-B7iXTNM8.mjs} +2 -2
  183. package/dist/{useCombineEvents-BUDIR1ba.mjs → useCombineEvents-CRwX-qWE.mjs} +1 -1
  184. package/dist/{useInsightsEnabled-DBpwEq10.mjs → useInsightsEnabled-B7dxpDrX.mjs} +1 -1
  185. package/dist/useWidgetLoadTimer-hIOioiKx.mjs +19 -0
  186. package/package.json +4 -4
  187. package/dist/AccountDetailsHeader-JtSX6Uf9.mjs +0 -120
  188. package/dist/Accounts-BRf_YeTf.mjs +0 -27
  189. package/dist/CategoryStore-yHI0hWmK.mjs +0 -174
  190. package/dist/CategoryUtil-pZRIYOgN.mjs +0 -80
  191. package/dist/Drawer-kEE73B87.mjs +0 -113
  192. package/dist/FinstrongStore-F2c607dj.mjs +0 -101
  193. package/dist/LineChart-D4GI7nVh.mjs +0 -541
  194. package/dist/MicroWidgetContainer-DpeqN9n3.mjs +0 -45
  195. package/dist/MiniWidgetContainer-D0gfmbaF.mjs +0 -56
  196. package/dist/TransactionApi-B3Tksf7L.mjs +0 -86
  197. package/dist/TransactionDetails-oP1eSuiS.mjs +0 -1334
  198. package/dist/TransactionStore-ai3uII_r.mjs +0 -690
  199. package/dist/TrendsStore-DCYbpXPO.mjs +0 -559
  200. package/dist/common/components/SkeletonLoader.d.ts +0 -7
  201. package/dist/exportTransactionsToCSV-7bVS7KXf.mjs +0 -47
  202. package/dist/finstrong/utils/Finstrong.d.ts +0 -6
  203. package/dist/useAriaLive-B3_pRUio.mjs +0 -35
@@ -1,91 +1,92 @@
1
- import { jsx as e, jsxs as a, Fragment as X } from "react/jsx-runtime";
2
- import h from "react";
1
+ import { jsx as e, jsxs as o, Fragment as X } from "react/jsx-runtime";
2
+ import f from "react";
3
3
  import { observer as T } from "mobx-react-lite";
4
- import { endOfMonth as z } from "date-fns/endOfMonth";
4
+ import { endOfMonth as F } from "date-fns/endOfMonth";
5
5
  import { endOfToday as de } from "date-fns/endOfToday";
6
6
  import { startOfMonth as k } from "date-fns/startOfMonth";
7
7
  import { startOfToday as ue } from "date-fns/startOfToday";
8
8
  import { subDays as me } from "date-fns/subDays";
9
9
  import ae from "@mui/material/Skeleton";
10
- import c from "@mui/material/Stack";
11
- import { R as Ee } from "../RecurringSettings-A_rAGCTP.mjs";
12
- import { M as En } from "../RecurringSettings-A_rAGCTP.mjs";
13
- import { addMonths as ze } from "date-fns/addMonths";
14
- import { subMonths as Fe } from "date-fns/subMonths";
15
- import { isBefore as Ue } from "date-fns/isBefore";
10
+ import l from "@mui/material/Stack";
11
+ import { R as Ne } from "../RecurringSettings-B4ybrS0B.mjs";
12
+ import { M as Gn } from "../RecurringSettings-B4ybrS0B.mjs";
13
+ import { addMonths as Fe } from "date-fns/addMonths";
14
+ import { subMonths as Ue } from "date-fns/subMonths";
15
+ import { isBefore as je } from "date-fns/isBefore";
16
16
  import se from "@mui/material/Unstable_Grid2";
17
17
  import Se from "@mui/material/IconButton";
18
18
  import _e from "@mui/material/Tab";
19
- import je from "@mui/material/Tabs";
20
- import { Schedule as Ke, MonetizationOn as Ye, Cancel as Ge, CheckCircle as Ne, ChevronLeft as Ve, ChevronRight as Xe, CurrencyExchange as qe } from "@mxenabled/mx-icons";
21
- import { Text as p, MerchantLogo as pe, InstitutionLogo as Ze, H3 as Je, P as ce } from "@mxenabled/mxui";
22
- import { getWeeksInMonth as we } from "date-fns/getWeeksInMonth";
19
+ import Ke from "@mui/material/Tabs";
20
+ import { Schedule as Ye, MonetizationOn as Ve, Cancel as Ge, CheckCircle as Oe, ChevronLeft as Xe, ChevronRight as qe, CurrencyExchange as Ze } from "@mxenabled/mx-icons";
21
+ import { Text as g, MerchantLogo as pe, InstitutionLogo as Je, H3 as Qe, P as ce } from "@mxenabled/mxui";
22
+ import { getWeeksInMonth as Ie } from "date-fns/getWeeksInMonth";
23
23
  import ge from "@mui/material/styles/useTheme";
24
- import { AdapterDateFns as Qe } from "@mui/x-date-pickers/AdapterDateFnsV3";
25
- import { DateCalendar as et } from "@mui/x-date-pickers/DateCalendar";
26
- import { LocalizationProvider as tt } from "@mui/x-date-pickers/LocalizationProvider";
27
- import { isSameDay as nt } from "date-fns/isSameDay";
28
- import it from "@mui/material/Badge";
29
- import { PickersDay as rt } from "@mui/x-date-pickers/PickersDay";
24
+ import { AdapterDateFns as et } from "@mui/x-date-pickers/AdapterDateFnsV3";
25
+ import { DateCalendar as tt } from "@mui/x-date-pickers/DateCalendar";
26
+ import { LocalizationProvider as nt } from "@mui/x-date-pickers/LocalizationProvider";
27
+ import { isSameDay as it } from "date-fns/isSameDay";
28
+ import rt from "@mui/material/Badge";
29
+ import { PickersDay as ot } from "@mui/x-date-pickers/PickersDay";
30
30
  import { I as q } from "../IconBacking-B9oC6uL2.mjs";
31
- import { u as D, b as Z, j as I, g as J, q as Oe, d as he, h as fe } from "../hooks-D6XlXHf4.mjs";
32
- import { d as M, c as S, g as Ie, f as ot } from "../RecurringTransactions-DK8dWldr.mjs";
33
- import { T as B } from "../RecurringTransactionsStore-C4YOD7_D.mjs";
34
- import { R as Nn } from "../RecurringTransactionsStore-C4YOD7_D.mjs";
35
- import { A as w, W as at } from "../WidgetContainer-BHWANqT4.mjs";
36
- import st from "@mui/material/Button";
31
+ import { u as w, b as Z, j as I, g as J, p as ke, d as he, h as fe } from "../hooks-ZMp65DFz.mjs";
32
+ import { c as v, a as D, g as Me, f as at } from "../RecurringTransactions-BqijW_8S.mjs";
33
+ import { T as H } from "../RecurringTransactionsStore-BhBUVm9a.mjs";
34
+ import { R as kn } from "../RecurringTransactionsStore-BhBUVm9a.mjs";
35
+ import { A as _, W as st } from "../WidgetContainer-CoFDmQRE.mjs";
36
+ import ct from "@mui/material/Button";
37
37
  import le from "@mui/material/Divider";
38
38
  import ve from "@mui/material/List";
39
- import ke 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-1s_q5W4X.mjs";
45
- import { c as kn, M as Wn, S as $n } from "../ManageIncome-1s_q5W4X.mjs";
46
- import { f as L } from "../NumberFormatting-Buh7u8Oi.mjs";
47
- import { D as xe } from "../Drawer-kEE73B87.mjs";
48
- import { b as N } from "../Localization-2MODESHW.mjs";
49
- import { f as A, D as E } from "../Dialog-CWW597AF.mjs";
39
+ import We from "@mui/material/ListItem";
40
+ import lt from "@mui/material/ListSubheader";
41
+ import dt from "@mui/material/ListItemAvatar";
42
+ import ut from "@mui/material/ListItemButton";
43
+ import mt from "@mui/material/ListItemText";
44
+ import { b as pt } from "../ManageIncome-CaoQl609.mjs";
45
+ import { c as $n, M as Bn, S as Pn } from "../ManageIncome-CaoQl609.mjs";
46
+ import { f as L } from "../NumberFormatting-DjTD0t3W.mjs";
47
+ import { D as xe } from "../Drawer-By9V-B5L.mjs";
48
+ import { b as G } from "../Localization-2MODESHW.mjs";
49
+ import { f as A, a as E } from "../Dialog-BPTr3qHE.mjs";
50
50
  import O from "@mui/material/Box";
51
- import { S as We } from "../StatusBar-BK_uYHAB.mjs";
51
+ import { S as $e } from "../StatusBar-BK_uYHAB.mjs";
52
52
  import { u as ye } from "../useScreenSize-B6JyS_Lj.mjs";
53
+ import { u as be } from "../useWidgetLoadTimer-hIOioiKx.mjs";
53
54
  import { L as V } from "../Loader-DUaFpDGv.mjs";
54
- import { M as pt } from "../MiniWidgetContainer-D0gfmbaF.mjs";
55
- import { u as gt } from "../useDimensions-27p2evRx.mjs";
56
- import { M as ht } from "../MicroWidgetContainer-DpeqN9n3.mjs";
55
+ import { M as gt } from "../MiniWidgetContainer-Bg02sF1Y.mjs";
56
+ import { u as ht } from "../useDimensions-27p2evRx.mjs";
57
+ import { M as ft } from "../MicroWidgetContainer-r6mtxRer.mjs";
57
58
  const Q = {
58
59
  gridRow: 1,
59
60
  gridColumn: 1,
60
61
  zIndex: 2
61
- }, ee = (t) => t ? { margin: "0 0 -6px -4px" } : void 0, Ce = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(q, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(Ke, { color: "primary", filled: !0, sx: { fontSize: n, ...Q } }) }), be = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(q, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(
62
- Ye,
62
+ }, ee = (t) => t ? { margin: "0 0 -6px -4px" } : void 0, Ce = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(q, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(Ye, { color: "primary", filled: !0, sx: { fontSize: n, ...Q } }) }), Re = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(q, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(
63
+ Ve,
63
64
  {
64
65
  filled: !0,
65
66
  sx: { color: "categories.income", fontSize: n, ...Q }
66
67
  }
67
- ) }), Re = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(q, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(Ge, { color: "error", filled: !0, sx: { fontSize: n, ...Q } }) }), Te = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(q, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(Ne, { color: "success", filled: !0, sx: { fontSize: n, ...Q } }) }), ft = T(
68
+ ) }), Te = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(q, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(Ge, { color: "error", filled: !0, sx: { fontSize: n, ...Q } }) }), we = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(q, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(Oe, { color: "success", filled: !0, sx: { fontSize: n, ...Q } }) }), xt = T(
68
69
  ({ day: t, outsideCurrentMonth: n, ...i }) => {
69
- const { recurring: r } = D(), { selectedAccountGuids: o } = Z(), { recurrences: l, setSelectedDay: m } = I(), s = h.useMemo(
70
- () => l.filter((d) => o.includes(d.accountGuid)),
71
- [o, l]
70
+ const { recurring: r } = w(), { selectedAccountGuids: a } = Z(), { recurrences: c, setSelectedDay: p } = I(), s = f.useMemo(
71
+ () => c.filter((d) => a.includes(d.accountGuid)),
72
+ [a, c]
72
73
  ).filter(
73
- (d) => nt(d.occurredOnDate || d.expectedDate, t)
74
+ (d) => it(d.occurredOnDate || d.expectedDate, t)
75
+ ), m = s.some(
76
+ (d) => d.type !== v.Income && d.status === D.Upcoming
74
77
  ), u = s.some(
75
- (d) => d.type !== M.Income && d.status === S.Upcoming
76
- ), f = s.some(
77
- (d) => d.type !== M.Income && d.status === S.Missed
78
+ (d) => d.type !== v.Income && d.status === D.Missed
78
79
  ), x = s.some(
79
- (d) => d.type !== M.Income && d.status === S.Paid
80
- ), C = s.some((d) => d.type === M.Income), y = (u ? 1 : 0) + (f ? 1 : 0) + (x ? 1 : 0) + (C ? 1 : 0);
80
+ (d) => d.type !== v.Income && d.status === D.Paid
81
+ ), b = s.some((d) => d.type === v.Income), y = (m ? 1 : 0) + (u ? 1 : 0) + (x ? 1 : 0) + (b ? 1 : 0);
81
82
  return /* @__PURE__ */ e(
82
- it,
83
+ rt,
83
84
  {
84
- badgeContent: s.length > 0 && /* @__PURE__ */ a(X, { children: [
85
- f && /* @__PURE__ */ e(Re, { isOffset: !0 }),
86
- x && /* @__PURE__ */ e(Te, { isOffset: !0 }),
87
- u && /* @__PURE__ */ e(Ce, { isOffset: !0 }),
88
- C && /* @__PURE__ */ e(be, { isOffset: !0 })
85
+ badgeContent: s.length > 0 && /* @__PURE__ */ o(X, { children: [
86
+ u && /* @__PURE__ */ e(Te, { isOffset: !0 }),
87
+ x && /* @__PURE__ */ e(we, { isOffset: !0 }),
88
+ m && /* @__PURE__ */ e(Ce, { isOffset: !0 }),
89
+ b && /* @__PURE__ */ e(Re, { isOffset: !0 })
89
90
  ] }),
90
91
  overlap: "circular",
91
92
  sx: {
@@ -96,15 +97,15 @@ const Q = {
96
97
  }
97
98
  },
98
99
  children: /* @__PURE__ */ e(
99
- rt,
100
+ ot,
100
101
  {
101
102
  "aria-label": `
102
103
  ${x && r.paid},
103
- ${f && r.missed},
104
- ${u && r.upcoming},
105
- ${C && r.income}`,
104
+ ${u && r.missed},
105
+ ${m && r.upcoming},
106
+ ${b && r.income}`,
106
107
  day: t,
107
- onClick: () => m(t),
108
+ onClick: () => p(t),
108
109
  outsideCurrentMonth: n,
109
110
  sx: {
110
111
  "&.MuiPickersDay-root": {
@@ -119,13 +120,13 @@ const Q = {
119
120
  }
120
121
  );
121
122
  }
122
- ), Y = ({ icon: t, label: n }) => /* @__PURE__ */ a(c, { alignItems: "center", flexDirection: "row", sx: { gap: 6 }, children: [
123
+ ), Y = ({ icon: t, label: n }) => /* @__PURE__ */ o(l, { alignItems: "center", flexDirection: "row", sx: { gap: 6 }, children: [
123
124
  /* @__PURE__ */ e(t, {}),
124
- /* @__PURE__ */ e(p, { variant: "XSmall", children: n })
125
- ] }), xt = T(() => {
126
- const { recurring: t } = D();
127
- return /* @__PURE__ */ a(
128
- c,
125
+ /* @__PURE__ */ e(g, { variant: "XSmall", children: n })
126
+ ] }), yt = T(() => {
127
+ const { recurring: t } = w();
128
+ return /* @__PURE__ */ o(
129
+ l,
129
130
  {
130
131
  alignItems: "center",
131
132
  "aria-hidden": !0,
@@ -135,28 +136,34 @@ const Q = {
135
136
  mt: 12,
136
137
  children: [
137
138
  /* @__PURE__ */ e(Y, { icon: Ce, label: t.expense }),
138
- /* @__PURE__ */ e(Y, { icon: be, label: t.income }),
139
- /* @__PURE__ */ e(Y, { icon: Re, label: t.missed }),
140
- /* @__PURE__ */ e(Y, { icon: Te, label: t.paid })
139
+ /* @__PURE__ */ e(Y, { icon: Re, label: t.income }),
140
+ /* @__PURE__ */ e(Y, { icon: Te, label: t.missed }),
141
+ /* @__PURE__ */ e(Y, { icon: we, label: t.paid })
141
142
  ]
142
143
  }
143
144
  );
144
- }), Me = 58, $e = T(() => {
145
- const t = ge(), { onEvent: n } = J(), { selectedDay: i, setDateRange: r } = I(), [o, l] = h.useState(
146
- we(/* @__PURE__ */ new Date()) * B + Me
147
- ), m = (s) => {
148
- l(we(s) * B + Me), r({
149
- start: k(s),
150
- end: z(s)
151
- }), n(w.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
152
- }, g = /* @__PURE__ */ e(
153
- et,
145
+ }), Le = 58, Be = T(() => {
146
+ const t = ge(), { onEvent: n } = J(), { selectedDay: i, setDateRange: r } = I(), [a, c] = f.useState(
147
+ Ie(/* @__PURE__ */ new Date()) * H + Le
148
+ ), p = (u) => {
149
+ c(Ie(u) * H + Le), r({
150
+ start: k(u),
151
+ end: F(u)
152
+ }), h(u), n(_.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
153
+ }, h = (u) => {
154
+ u && requestAnimationFrame(() => {
155
+ const x = document.getElementById("recurrence-list");
156
+ x?.setAttribute("tabindex", "-1"), x?.focus();
157
+ });
158
+ }, s = /* @__PURE__ */ e(
159
+ tt,
154
160
  {
155
161
  minDate: k(/* @__PURE__ */ new Date()),
156
- onMonthChange: m,
162
+ onChange: h,
163
+ onMonthChange: p,
157
164
  showDaysOutsideCurrentMonth: !0,
158
165
  slots: {
159
- day: ft
166
+ day: xt
160
167
  },
161
168
  sx: {
162
169
  "& .MuiPickersArrowSwitcher-button": {
@@ -182,14 +189,14 @@ const Q = {
182
189
  fontWeight: 600
183
190
  },
184
191
  "& .MuiDayCalendar-slideTransition": {
185
- minHeight: o
192
+ minHeight: a
186
193
  },
187
194
  "&.MuiDateCalendar-root": {
188
- minHeight: o + B
195
+ minHeight: a + H
189
196
  },
190
197
  "& .MuiButtonBase-root, .MuiDayCalendar-weekDayLabel": {
191
- height: B,
192
- width: B,
198
+ height: H,
199
+ width: H,
193
200
  margin: 0
194
201
  },
195
202
  "& .MuiDayCalendar-weekDayLabel": {
@@ -201,100 +208,128 @@ const Q = {
201
208
  views: ["day"]
202
209
  }
203
210
  );
204
- return /* @__PURE__ */ e(c, { justifyContent: "center", children: /* @__PURE__ */ a(tt, { dateAdapter: Qe, children: [
205
- i && g,
206
- !i && g,
207
- /* @__PURE__ */ e(xt, {})
208
- ] }) });
209
- }), yt = (t) => {
210
- if (t.type === M.Income)
211
- return /* @__PURE__ */ e(be, {});
211
+ return /* @__PURE__ */ o(
212
+ l,
213
+ {
214
+ "aria-describedby": "calendar-description",
215
+ "aria-labelledby": "calendar-label",
216
+ justifyContent: "center",
217
+ children: [
218
+ /* @__PURE__ */ e(
219
+ "span",
220
+ {
221
+ id: "calendar-label",
222
+ style: {
223
+ position: "absolute",
224
+ width: "1px",
225
+ height: "1px",
226
+ padding: 0,
227
+ margin: "-1px",
228
+ overflow: "hidden",
229
+ clip: "rect(0, 0, 0, 0)",
230
+ whiteSpace: "nowrap",
231
+ border: 0
232
+ },
233
+ children: "Calendar filter for recurring transactions list. Filter by month or select specific date."
234
+ }
235
+ ),
236
+ /* @__PURE__ */ o(nt, { dateAdapter: et, children: [
237
+ i && s,
238
+ !i && s,
239
+ /* @__PURE__ */ e(yt, {})
240
+ ] })
241
+ ]
242
+ }
243
+ );
244
+ }), bt = (t) => {
245
+ if (t.type === v.Income)
246
+ return /* @__PURE__ */ e(Re, {});
212
247
  switch (t.status) {
213
- case S.Missed:
214
- return /* @__PURE__ */ e(Re, {});
215
- case S.Paid:
248
+ case D.Missed:
216
249
  return /* @__PURE__ */ e(Te, {});
250
+ case D.Paid:
251
+ return /* @__PURE__ */ e(we, {});
217
252
  default:
218
253
  return /* @__PURE__ */ e(Ce, {});
219
254
  }
220
255
  }, Ct = (t, n) => {
221
256
  switch (t.status) {
222
- case S.Paid:
223
- return t.expectedDate ? N(
257
+ case D.Paid:
258
+ return t.expectedDate ? G(
224
259
  n.paid_on,
225
260
  A(
226
261
  t.occurredOnDate || t.expectedDate,
227
262
  E.MONTH_DAY
228
263
  )
229
264
  ) : n.paid;
230
- case S.Missed:
231
- return N(
265
+ case D.Missed:
266
+ return G(
232
267
  n.missed_on,
233
268
  A(t.expectedDate, E.MONTH_DAY)
234
269
  );
235
- case S.Upcoming:
236
- return N(
270
+ case D.Upcoming:
271
+ return G(
237
272
  n.upcoming_on,
238
273
  A(t.expectedDate, E.MONTH_DAY)
239
274
  );
240
275
  default:
241
276
  return n.unknown;
242
277
  }
243
- }, Le = ({
278
+ }, Ae = ({
244
279
  recurrence: t,
245
280
  isMini: n = !1,
246
281
  onRecurrenceClick: i = () => {
247
282
  },
248
283
  showOrdinal: r = !1
249
284
  }) => {
250
- const { recurring: o } = D(), { repeatingTransactions: l } = I(), [m, g] = h.useState(!1), s = h.useMemo(
251
- () => l.find((b) => b.guid === t.repeatingTransactionGuid),
252
- [t, l]
253
- ), u = t.type === M.Income, f = t.status === S.Paid, x = t.status === S.Missed, C = t.status === S.Upcoming;
254
- let y = o.paid?.toLowerCase();
255
- return x ? y = o.missed?.toLowerCase() : C && (y = r ? Ie(o, s || {}, !0) : Ie(o, s || {}, !1)), //TODO: implement common/components/ListItemRow.tsx
256
- /* @__PURE__ */ a(ke, { disableGutters: !0, disablePadding: !0, children: [
257
- /* @__PURE__ */ a(dt, { onClick: () => {
258
- g(!0), i(t);
285
+ const { recurring: a } = w(), { repeatingTransactions: c } = I(), [p, h] = f.useState(!1), s = f.useMemo(
286
+ () => c.find((C) => C.guid === t.repeatingTransactionGuid),
287
+ [t, c]
288
+ ), m = t.type === v.Income, u = t.status === D.Paid, x = t.status === D.Missed, b = t.status === D.Upcoming;
289
+ let y = a.paid?.toLowerCase();
290
+ return x ? y = a.missed?.toLowerCase() : b && (y = r ? Me(a, s || {}, !0) : Me(a, s || {}, !1)), //TODO: implement common/components/ListItemRow.tsx
291
+ /* @__PURE__ */ o(We, { disableGutters: !0, disablePadding: !0, children: [
292
+ /* @__PURE__ */ o(ut, { onClick: () => {
293
+ h(!0), i(t);
259
294
  }, children: [
260
- /* @__PURE__ */ e(lt, { children: /* @__PURE__ */ e(
295
+ /* @__PURE__ */ e(dt, { children: /* @__PURE__ */ e(
261
296
  pe,
262
297
  {
263
298
  categoryGuid: t.categoryGuid,
264
299
  merchantGuid: t.merchantGuid
265
300
  }
266
301
  ) }),
267
- /* @__PURE__ */ e(ut, { children: /* @__PURE__ */ a(
268
- c,
302
+ /* @__PURE__ */ e(mt, { children: /* @__PURE__ */ o(
303
+ l,
269
304
  {
270
305
  direction: "row",
271
306
  gap: 4,
272
307
  sx: { justifyContent: "space-between", textOverflow: "ellipsis", textWrap: "nowrap" },
273
308
  children: [
274
- /* @__PURE__ */ a(c, { direction: "column", width: "50%", children: [
275
- /* @__PURE__ */ e(p, { bold: !0, variant: "body1", children: t.name }),
276
- /* @__PURE__ */ e(c, { alignItems: "center", direction: "row", gap: 6, children: n ? /* @__PURE__ */ a(c, { direction: "row", gap: 4, children: [
277
- yt(t),
278
- /* @__PURE__ */ e(p, { variant: "caption", children: Ct(t, o) })
279
- ] }) : /* @__PURE__ */ a(X, { children: [
309
+ /* @__PURE__ */ o(l, { direction: "column", width: "50%", children: [
310
+ /* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: t.name }),
311
+ /* @__PURE__ */ e(l, { alignItems: "center", direction: "row", gap: 6, children: n ? /* @__PURE__ */ o(l, { direction: "row", gap: 4, children: [
312
+ bt(t),
313
+ /* @__PURE__ */ e(g, { variant: "caption", children: Ct(t, a) })
314
+ ] }) : /* @__PURE__ */ o(X, { children: [
280
315
  t.institutionGuid && /* @__PURE__ */ e(
281
- Ze,
316
+ Je,
282
317
  {
283
- alt: t.institutionName,
318
+ alt: `${t.institutionName} institution logo`,
284
319
  institutionGuid: t.institutionGuid,
285
320
  size: 12
286
321
  }
287
322
  ),
288
- /* @__PURE__ */ e(p, { sx: { maxWidth: 250 }, variant: "caption", children: t.institutionName })
323
+ /* @__PURE__ */ e(g, { sx: { maxWidth: 250 }, variant: "caption", children: t.institutionName })
289
324
  ] }) })
290
325
  ] }),
291
- /* @__PURE__ */ a(c, { alignItems: "flex-end", width: "100%", children: [
292
- /* @__PURE__ */ a(p, { bold: !0, color: u ? "success.main" : "text.primary", variant: "body1", children: [
293
- u ? "+" : "",
326
+ /* @__PURE__ */ o(l, { alignItems: "flex-end", width: "100%", children: [
327
+ /* @__PURE__ */ o(g, { bold: !0, color: m ? "success.main" : "text.primary", variant: "body1", children: [
328
+ m ? "+" : "",
294
329
  L(t.amount, "0,0.00")
295
330
  ] }),
296
- !n && /* @__PURE__ */ a(
297
- c,
331
+ !n && /* @__PURE__ */ o(
332
+ l,
298
333
  {
299
334
  direction: "row",
300
335
  sx: {
@@ -305,9 +340,9 @@ const Q = {
305
340
  width: "100%"
306
341
  },
307
342
  children: [
308
- f && /* @__PURE__ */ e(Ne, { color: "success", filled: !0, size: 12 }),
343
+ u && /* @__PURE__ */ e(Oe, { color: "success", filled: !0, size: 12 }),
309
344
  x && /* @__PURE__ */ e(Ge, { color: "error", filled: !0, size: 12 }),
310
- /* @__PURE__ */ e(p, { bold: !0, color: "text.secondary", variant: "caption", children: y })
345
+ /* @__PURE__ */ e(g, { bold: !0, color: "text.secondary", variant: "caption", children: y })
311
346
  ]
312
347
  }
313
348
  )
@@ -319,44 +354,44 @@ const Q = {
319
354
  /* @__PURE__ */ e(
320
355
  xe,
321
356
  {
322
- ariaLabelClose: o.close_drawer_aria,
323
- isOpen: m,
324
- onClose: () => g(!1),
325
- title: t.type === M.Income ? o.income_details : o.expense_details,
357
+ ariaLabelClose: a.close_drawer_aria,
358
+ isOpen: p,
359
+ onClose: () => h(!1),
360
+ title: t.type === v.Income ? a.income_details : a.expense_details,
326
361
  children: s && /* @__PURE__ */ e(
327
- mt,
362
+ pt,
328
363
  {
329
- onDeleted: () => g(!1),
364
+ onDeleted: () => h(!1),
330
365
  recurringTransaction: s
331
366
  }
332
367
  )
333
368
  }
334
369
  )
335
370
  ] });
336
- }, H = T(
371
+ }, z = T(
337
372
  ({
338
373
  recurrences: t,
339
374
  isMini: n = !1,
340
375
  onResetClick: i,
341
376
  onRecurrenceClick: r,
342
- sx: o = {},
343
- title: l
377
+ sx: a = {},
378
+ title: c
344
379
  }) => {
345
- const { recurring: m } = D(), g = h.useMemo(() => ot(t), [t]);
346
- return /* @__PURE__ */ a(c, { sx: { gap: 8, mt: 4, ...o }, children: [
347
- l && /* @__PURE__ */ a(
348
- c,
380
+ const { recurring: p } = w(), h = f.useMemo(() => at(t), [t]);
381
+ return /* @__PURE__ */ o(l, { id: "recurrence-list", sx: { gap: 8, mt: 4, ...a }, "tab-index": -1, children: [
382
+ c && /* @__PURE__ */ o(
383
+ l,
349
384
  {
350
385
  sx: { alignItems: "top", direction: "row", justifyContent: "space-between", px: 24 },
351
386
  children: [
352
- /* @__PURE__ */ e(p, { bold: !0, variant: "body1", children: l }),
353
- i && /* @__PURE__ */ e(st, { onClick: i, sx: { mt: -12 }, variant: "text", children: m.reset })
387
+ /* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: c }),
388
+ i && /* @__PURE__ */ e(ct, { onClick: i, variant: "text", children: p.reset })
354
389
  ]
355
390
  }
356
391
  ),
357
- t.length === 0 ? /* @__PURE__ */ e(p, { fontStyle: "italic", sx: { py: 24, textAlign: "center" }, children: m.no_activities }) : /* @__PURE__ */ e(ve, { children: n ? t.map((s, u) => /* @__PURE__ */ a(h.Fragment, { children: [
392
+ t.length === 0 ? /* @__PURE__ */ e(g, { fontStyle: "italic", sx: { py: 24, textAlign: "center" }, children: p.no_activities }) : /* @__PURE__ */ e(ve, { children: n ? t.map((s, m) => /* @__PURE__ */ o(f.Fragment, { children: [
358
393
  /* @__PURE__ */ e(
359
- Le,
394
+ Ae,
360
395
  {
361
396
  isMini: n,
362
397
  onRecurrenceClick: r,
@@ -364,94 +399,94 @@ const Q = {
364
399
  }
365
400
  ),
366
401
  /* @__PURE__ */ e(le, { sx: { mx: 24 } })
367
- ] }, `recurrence-${u}`)) : g.map((s, u) => /* @__PURE__ */ a(h.Fragment, { children: [
368
- /* @__PURE__ */ e(ke, { children: /* @__PURE__ */ e(
402
+ ] }, `recurrence-${m}`)) : h.map((s, m) => /* @__PURE__ */ o(f.Fragment, { children: [
403
+ /* @__PURE__ */ e(We, { children: /* @__PURE__ */ e(
369
404
  ve,
370
405
  {
371
- subheader: /* @__PURE__ */ e(ct, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ e(p, { bold: !0, variant: "caption", children: A(s.date, E.DAY_OF_WEEK_MONTH_DAY) }) }),
406
+ subheader: /* @__PURE__ */ e(lt, { 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) }) }),
372
407
  sx: { width: "100%" },
373
- children: s.recurrences.map((f, x) => /* @__PURE__ */ e(h.Fragment, { children: /* @__PURE__ */ e(
374
- Le,
408
+ children: s.recurrences.map((u, x) => /* @__PURE__ */ e(f.Fragment, { children: /* @__PURE__ */ e(
409
+ Ae,
375
410
  {
376
411
  isMini: n,
377
412
  onRecurrenceClick: r,
378
- recurrence: f
413
+ recurrence: u
379
414
  }
380
415
  ) }, `day-recurrence-${x}`))
381
416
  }
382
417
  ) }, s.id),
383
418
  /* @__PURE__ */ e(le, { sx: { mx: 24 } })
384
- ] }, `recurrence-${u}`)) })
419
+ ] }, `recurrence-${m}`)) })
385
420
  ] });
386
421
  }
387
- ), Ae = T(
388
- ({ expected: t, isExpense: n = !0, missed: i, paid: r, title: o, total: l, upcoming: m }) => {
389
- const g = ge(), { isSmallMobile: s } = ye(), { recurring: u } = D(), f = h.useMemo(() => {
390
- const x = [{ color: g.palette.success.main, percentage: `${r / t}` }];
391
- return i && x.push({ color: g.palette.error.main, percentage: `${i / t}` }), x;
422
+ ), Ee = T(
423
+ ({ expected: t, isExpense: n = !0, missed: i, paid: r, title: a, total: c, upcoming: p }) => {
424
+ const h = ge(), { isSmallMobile: s } = ye(), { recurring: m } = w(), u = f.useMemo(() => {
425
+ const x = [{ color: h.palette.success.main, percentage: `${r / t}` }];
426
+ return i && x.push({ color: h.palette.error.main, percentage: `${i / t}` }), x;
392
427
  }, [r, t, i]);
393
- return /* @__PURE__ */ a(c, { children: [
394
- /* @__PURE__ */ a(c, { sx: { flexDirection: "row", justifyContent: "space-between", pb: 12 }, children: [
395
- /* @__PURE__ */ e(p, { bold: !0, variant: "body1", children: `${o} (${l})` }),
396
- /* @__PURE__ */ e(p, { bold: !0, color: n ? "text.primary" : "success.main", variant: "body1", children: `${n ? "-" : "+"}${L(t, "0,0.00")}` })
428
+ return /* @__PURE__ */ o(l, { children: [
429
+ /* @__PURE__ */ o(l, { sx: { flexDirection: "row", justifyContent: "space-between", pb: 12 }, children: [
430
+ /* @__PURE__ */ e(g, { bold: !0, variant: "body1", children: `${a} (${c})` }),
431
+ /* @__PURE__ */ e(g, { bold: !0, color: n ? "text.primary" : "success.main", variant: "body1", children: `${n ? "-" : "+"}${L(t, "0,0.00")}` })
397
432
  ] }),
398
- /* @__PURE__ */ e(We, { data: f, height: 12 }),
399
- /* @__PURE__ */ a(c, { sx: { alignItems: "center", flexDirection: "row", gap: 2, my: 8 }, children: [
433
+ /* @__PURE__ */ e($e, { data: u, height: 12 }),
434
+ /* @__PURE__ */ o(l, { sx: { alignItems: "center", flexDirection: "row", gap: 2, my: 8 }, children: [
400
435
  /* @__PURE__ */ e(O, { sx: { bgcolor: "success.main", height: 8, mr: 8, width: 8 } }),
401
- !s && /* @__PURE__ */ e(p, { bold: !0, variant: "body2", children: L(r, "0,0.00") }),
402
- /* @__PURE__ */ e(p, { variant: "caption", children: u.paid?.toLowerCase() }),
403
- i !== void 0 && /* @__PURE__ */ a(X, { children: [
436
+ !s && /* @__PURE__ */ e(g, { bold: !0, variant: "body2", children: L(r, "0,0.00") }),
437
+ /* @__PURE__ */ e(g, { variant: "caption", children: m.paid?.toLowerCase() }),
438
+ i !== void 0 && /* @__PURE__ */ o(X, { children: [
404
439
  /* @__PURE__ */ e(O, { sx: { bgcolor: "error.main", height: 8, ml: 16, mr: 8, width: 8 } }),
405
- !s && /* @__PURE__ */ e(p, { bold: !0, variant: "body2", children: L(i, "0,0.00") }),
406
- /* @__PURE__ */ e(p, { variant: "caption", children: u.missed?.toLowerCase() })
440
+ !s && /* @__PURE__ */ e(g, { bold: !0, variant: "body2", children: L(i, "0,0.00") }),
441
+ /* @__PURE__ */ e(g, { variant: "caption", children: m.missed?.toLowerCase() })
407
442
  ] }),
408
443
  /* @__PURE__ */ e(O, { sx: { bgcolor: "divider", height: 8, ml: 16, mr: 8, width: 8 } }),
409
- !s && /* @__PURE__ */ e(p, { bold: !0, variant: "body2", children: L(m, "0,0.00") }),
410
- /* @__PURE__ */ e(p, { variant: "caption", children: u.upcoming })
444
+ !s && /* @__PURE__ */ e(g, { bold: !0, variant: "body2", children: L(p, "0,0.00") }),
445
+ /* @__PURE__ */ e(g, { variant: "caption", children: m.upcoming })
411
446
  ] })
412
447
  ] });
413
448
  }
414
- ), bt = T(() => {
415
- const { recurring: t } = D(), { availableWidth: n } = Oe(), { isDesktop: i, isSmallMobile: r, isMobile: o } = ye(n), { onEvent: l } = J(), {
416
- currentMonthExpenses: m,
417
- currentMonthIncome: g,
449
+ ), Rt = T(() => {
450
+ const { recurring: t } = w(), { availableWidth: n } = ke(), { isDesktop: i, isSmallMobile: r, isMobile: a } = ye(n), { onEvent: c } = J(), {
451
+ currentMonthExpenses: p,
452
+ currentMonthIncome: h,
418
453
  dateRange: s,
419
- expenseTotal: u,
420
- incomeTotal: f,
454
+ expenseTotal: m,
455
+ incomeTotal: u,
421
456
  missedExpenseTotal: x,
422
- pastRecurrences: C,
457
+ pastRecurrences: b,
423
458
  paidExpenseTotal: y,
424
459
  paidIncomeTotal: d,
425
- selectedDay: b,
460
+ selectedDay: C,
426
461
  selectedDayRecurrences: W,
427
- setDateRange: F,
462
+ setDateRange: U,
428
463
  upcomingExpenseTotal: te,
429
464
  upcomingIncomeTotal: ne,
430
- upcomingRecurrences: U
431
- } = I(), [$, _] = h.useState(0), ie = Ue(s.start, /* @__PURE__ */ new Date()), v = (R, oe) => {
432
- _(oe);
465
+ upcomingRecurrences: $
466
+ } = I(), [B, S] = f.useState(0), ie = je(s.start, /* @__PURE__ */ new Date()), M = (R, oe) => {
467
+ S(oe);
433
468
  }, j = (R) => {
434
- l(w.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
469
+ c(_.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
435
470
  transaction_guid: R.transaction?.guid
436
471
  });
437
472
  }, K = (R) => {
438
- l(w.RECURRING_TRANSACTIONS_CLICK_PAID, {
473
+ c(_.RECURRING_TRANSACTIONS_CLICK_PAID, {
439
474
  transaction_guid: R.transaction?.guid
440
475
  });
441
476
  }, P = () => {
442
- const R = ze(s.start, 1);
443
- F({
477
+ const R = Fe(s.start, 1);
478
+ U({
444
479
  start: k(R),
445
- end: z(R)
480
+ end: F(R)
446
481
  });
447
482
  }, re = () => {
448
- const R = Fe(s.start, 1);
449
- F({
483
+ const R = Ue(s.start, 1);
484
+ U({
450
485
  start: k(R),
451
- end: z(R)
486
+ end: F(R)
452
487
  });
453
488
  };
454
- return /* @__PURE__ */ a(
489
+ return /* @__PURE__ */ o(
455
490
  se,
456
491
  {
457
492
  container: !0,
@@ -459,98 +494,98 @@ const Q = {
459
494
  pt: 16
460
495
  },
461
496
  children: [
462
- /* @__PURE__ */ a(se, { md: !0, sm: 12, width: "100%", children: [
463
- /* @__PURE__ */ a(c, { sx: { gap: 16, px: i ? 48 : 24 }, children: [
464
- /* @__PURE__ */ a(c, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
465
- /* @__PURE__ */ e(Je, { children: N(
497
+ /* @__PURE__ */ o(se, { md: !0, sm: 12, width: "100%", children: [
498
+ /* @__PURE__ */ o(l, { sx: { gap: 16, px: i ? 48 : 24 }, children: [
499
+ /* @__PURE__ */ o(l, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
500
+ /* @__PURE__ */ e(Qe, { children: G(
466
501
  t.header_title,
467
502
  A(s.start, E.MONTH_LONG)
468
503
  ) }),
469
- !i && /* @__PURE__ */ a(c, { direction: "row", gap: 4, children: [
504
+ !i && /* @__PURE__ */ o(l, { direction: "row", gap: 4, children: [
470
505
  /* @__PURE__ */ e(
471
506
  Se,
472
507
  {
473
508
  color: "primary",
474
509
  disabled: ie,
475
510
  onClick: re,
476
- children: /* @__PURE__ */ e(Ve, {})
511
+ children: /* @__PURE__ */ e(Xe, {})
477
512
  }
478
513
  ),
479
- /* @__PURE__ */ e(Se, { color: "primary", onClick: P, children: /* @__PURE__ */ e(Xe, {}) })
514
+ /* @__PURE__ */ e(Se, { color: "primary", onClick: P, children: /* @__PURE__ */ e(qe, {}) })
480
515
  ] })
481
516
  ] }),
482
517
  /* @__PURE__ */ e(
483
- Ae,
518
+ Ee,
484
519
  {
485
- expected: u,
520
+ expected: m,
486
521
  missed: x,
487
522
  paid: y,
488
523
  title: t.expenses,
489
- total: m.length,
524
+ total: p.length,
490
525
  upcoming: te
491
526
  }
492
527
  ),
493
528
  /* @__PURE__ */ e(
494
- Ae,
529
+ Ee,
495
530
  {
496
- expected: f,
531
+ expected: u,
497
532
  isExpense: !1,
498
533
  paid: d,
499
534
  title: t.deposits,
500
- total: g.length,
535
+ total: h.length,
501
536
  upcoming: ne
502
537
  }
503
538
  ),
504
539
  i && /* @__PURE__ */ e(
505
- H,
540
+ z,
506
541
  {
507
542
  onRecurrenceClick: j,
508
- recurrences: U,
543
+ recurrences: $,
509
544
  title: t.upcoming_activity
510
545
  }
511
546
  )
512
547
  ] }),
513
- !i && /* @__PURE__ */ a(c, { sx: { px: o ? 0 : 24 }, children: [
514
- /* @__PURE__ */ a(je, { onChange: v, value: $, variant: "fullWidth", children: [
548
+ !i && /* @__PURE__ */ o(l, { sx: { px: a ? 0 : 24 }, children: [
549
+ /* @__PURE__ */ o(Ke, { onChange: M, value: B, variant: "fullWidth", children: [
515
550
  /* @__PURE__ */ e(
516
551
  _e,
517
552
  {
518
- label: /* @__PURE__ */ e(p, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: r ? t.upcoming : t.upcoming_activity })
553
+ label: /* @__PURE__ */ e(g, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: r ? t.upcoming : t.upcoming_activity })
519
554
  }
520
555
  ),
521
556
  /* @__PURE__ */ e(
522
557
  _e,
523
558
  {
524
- label: /* @__PURE__ */ e(p, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: r ? t.past : t.past_transactions })
559
+ label: /* @__PURE__ */ e(g, { bold: !0, sx: { textTransform: "none" }, variant: "body1", children: r ? t.past : t.past_transactions })
525
560
  }
526
561
  )
527
562
  ] }),
528
- $ === 0 && /* @__PURE__ */ e(
529
- H,
563
+ B === 0 && /* @__PURE__ */ e(
564
+ z,
530
565
  {
531
566
  onRecurrenceClick: j,
532
- recurrences: U
567
+ recurrences: $
533
568
  }
534
569
  ),
535
- $ === 1 && /* @__PURE__ */ e(
536
- H,
570
+ B === 1 && /* @__PURE__ */ e(
571
+ z,
537
572
  {
538
573
  onRecurrenceClick: K,
539
- recurrences: C
574
+ recurrences: b
540
575
  }
541
576
  )
542
577
  ] })
543
578
  ] }),
544
- i && /* @__PURE__ */ e(se, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ a(c, { gap: 24, children: [
545
- /* @__PURE__ */ e($e, {}),
579
+ i && /* @__PURE__ */ e(se, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ o(l, { gap: 24, children: [
580
+ /* @__PURE__ */ e(Be, {}),
546
581
  /* @__PURE__ */ e(
547
- H,
582
+ z,
548
583
  {
549
584
  onRecurrenceClick: K,
550
- recurrences: W || C,
551
- title: b ? N(
585
+ recurrences: W || b,
586
+ title: C ? G(
552
587
  t.day_transactions,
553
- A(b, E.MONTH_DAY)
588
+ A(C, E.MONTH_DAY)
554
589
  ) : t.past_transactions
555
590
  }
556
591
  )
@@ -558,17 +593,20 @@ const Q = {
558
593
  ]
559
594
  }
560
595
  );
561
- }), wn = T(({ onBackClick: t, sx: n = {} }) => {
562
- const { accounts: i } = he(), { recurring: r } = D(), { isCopyLoaded: o, isInitialized: l, selectedAccountGuids: m, setSelectedAccounts: g } = Z(), { isDataLoaded: s, loadRepeatingTransactions: u, setDateRange: f } = I(), { setFilter: x } = fe(), { onEvent: C } = J(), { isMobile: y } = ye(), [d, b] = h.useState(!1);
563
- return h.useEffect(() => {
564
- g(i);
565
- }, [i]), h.useEffect(() => {
566
- l && (x({
596
+ }), Mn = T(({ onBackClick: t, sx: n = {} }) => {
597
+ const { accounts: i } = he(), { recurring: r } = w(), { isCopyLoaded: a, isInitialized: c, selectedAccountGuids: p, setSelectedAccounts: h } = Z(), { isDataLoaded: s, loadRepeatingTransactions: m, setDateRange: u } = I(), { setFilter: x } = fe(), { onEvent: b } = J(), { isMobile: y } = ye(), [d, C] = f.useState(!1);
598
+ return be({
599
+ widgetName: "RecurringTransactionsWidget",
600
+ isLoaded: s
601
+ }), f.useEffect(() => {
602
+ h(i);
603
+ }, [i]), f.useEffect(() => {
604
+ c && (x({
567
605
  dateRange: { start: me(ue(), 90), end: de() },
568
- accounts: m
569
- }), f({ start: k(/* @__PURE__ */ new Date()), end: z(/* @__PURE__ */ new Date()) }), u().finally());
570
- }, [l]), o ? /* @__PURE__ */ a(
571
- at,
606
+ accounts: p
607
+ }), u({ start: k(/* @__PURE__ */ new Date()), end: F(/* @__PURE__ */ new Date()) }), m().finally());
608
+ }, [c]), a ? /* @__PURE__ */ o(
609
+ st,
572
610
  {
573
611
  accountOptions: i,
574
612
  actions: [
@@ -576,17 +614,17 @@ const Q = {
576
614
  label: r.action_title,
577
615
  iconName: "credit_card_gear",
578
616
  onClick: () => {
579
- b(!0), C(w.RECURRING_TRANSACTIONS_CLICK_SETTINGS);
617
+ C(!0), b(_.RECURRING_TRANSACTIONS_CLICK_SETTINGS);
580
618
  }
581
619
  }
582
620
  ],
583
621
  hasDivider: y,
584
- onAccountsFilterClick: () => C(w.RECURRING_TRANSACTIONS_CLICK_FILTER),
622
+ onAccountsFilterClick: () => b(_.RECURRING_TRANSACTIONS_CLICK_FILTER),
585
623
  onBackClick: t,
586
624
  sx: n,
587
625
  title: r.title,
588
626
  children: [
589
- l && s ? /* @__PURE__ */ e(bt, {}) : /* @__PURE__ */ a(c, { direction: "column", p: 48, spacing: 24, children: [
627
+ c && s ? /* @__PURE__ */ e(Rt, {}) : /* @__PURE__ */ o(l, { direction: "column", p: 48, spacing: 24, children: [
590
628
  /* @__PURE__ */ e(ae, { height: 100, variant: "rounded", width: "100%" }),
591
629
  /* @__PURE__ */ e(ae, { height: 100, variant: "rounded", width: "100%" }),
592
630
  /* @__PURE__ */ e(ae, { height: 600, variant: "rounded", width: "100%" })
@@ -596,46 +634,49 @@ const Q = {
596
634
  {
597
635
  ariaLabelClose: r.close_drawer_aria,
598
636
  isOpen: d,
599
- onClose: () => b(!1),
637
+ onClose: () => C(!1),
600
638
  shouldShowHeaderBorders: !1,
601
639
  title: r.action_title,
602
- children: /* @__PURE__ */ e(Ee, {})
640
+ children: /* @__PURE__ */ e(Ne, {})
603
641
  }
604
642
  )
605
643
  ]
606
644
  }
607
645
  ) : /* @__PURE__ */ e(V, {});
608
- }), Rt = T(() => {
609
- const { recurring: t } = D(), { availableWidth: n } = Oe(), { selectedDay: i, selectedDayRecurrences: r, setSelectedDay: o, upcomingRecurrences: l } = I(), m = n < 750;
610
- return /* @__PURE__ */ a(c, { flexDirection: m ? "column" : "row", width: "100%", children: [
611
- /* @__PURE__ */ e($e, {}),
612
- !m && /* @__PURE__ */ e(le, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
646
+ }), Tt = T(() => {
647
+ const { recurring: t } = w(), { availableWidth: n } = ke(), { selectedDay: i, selectedDayRecurrences: r, setSelectedDay: a, upcomingRecurrences: c } = I(), p = n < 750;
648
+ return /* @__PURE__ */ o(l, { flexDirection: p ? "column" : "row", width: "100%", children: [
649
+ /* @__PURE__ */ e(Be, {}),
650
+ !p && /* @__PURE__ */ e(le, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
613
651
  /* @__PURE__ */ e(
614
- H,
652
+ z,
615
653
  {
616
654
  isMini: !0,
617
- onResetClick: i ? () => o(i) : void 0,
618
- recurrences: r || l.slice(0, 5),
619
- sx: { width: m ? "100%" : "calc(100% - 336px)", mt: 12 },
620
- title: i ? N(
655
+ onResetClick: i ? () => a(i) : void 0,
656
+ recurrences: r || c.slice(0, 5),
657
+ sx: { width: p ? "100%" : "calc(100% - 336px)", mt: 12 },
658
+ title: i ? G(
621
659
  t.day_transactions,
622
660
  A(i, E.MONTH_DAY)
623
661
  ) : t.upcoming_activity
624
662
  }
625
663
  )
626
664
  ] });
627
- }), In = T(
665
+ }), vn = T(
628
666
  ({ onPrimaryCtaClick: t, sx: n }) => {
629
- const { accounts: i } = he(), { recurring: r } = D(), { setFilter: o } = fe(), { isDataLoaded: l, loadRepeatingTransactions: m } = I(), { isCopyLoaded: g, isInitialized: s, setSelectedAccounts: u, selectedAccountGuids: f } = Z();
630
- return h.useEffect(() => {
631
- s && u(i);
632
- }, [s]), h.useEffect(() => {
633
- f.length > 0 && (o({
667
+ const { accounts: i } = he(), { recurring: r } = w(), { setFilter: a } = fe(), { isDataLoaded: c, loadRepeatingTransactions: p } = I(), { isCopyLoaded: h, isInitialized: s, setSelectedAccounts: m, selectedAccountGuids: u } = Z();
668
+ return be({
669
+ widgetName: "RecurringTransactionsMiniWidget",
670
+ isLoaded: c
671
+ }), f.useEffect(() => {
672
+ s && m(i);
673
+ }, [s]), f.useEffect(() => {
674
+ u.length > 0 && (a({
634
675
  dateRange: { start: me(ue(), 90), end: de() },
635
- accounts: f
636
- }), m().finally());
637
- }, [f]), !g || !s ? /* @__PURE__ */ e(V, {}) : /* @__PURE__ */ e(
638
- pt,
676
+ accounts: u
677
+ }), p().finally());
678
+ }, [u]), !h || !s ? /* @__PURE__ */ e(V, {}) : /* @__PURE__ */ e(
679
+ gt,
639
680
  {
640
681
  className: "mx-exp-recurring-transactions-miniwidget",
641
682
  onPrimaryCtaClick: t,
@@ -643,14 +684,14 @@ const Q = {
643
684
  subTitle: r.sub_title,
644
685
  sx: n,
645
686
  title: r.mini_title,
646
- children: l ? /* @__PURE__ */ e(Rt, {}) : /* @__PURE__ */ e(V, {})
687
+ children: c ? /* @__PURE__ */ e(Tt, {}) : /* @__PURE__ */ e(V, {})
647
688
  }
648
689
  );
649
690
  }
650
- ), Tt = ({
691
+ ), wt = ({
651
692
  upcomingRecurrences: t,
652
693
  maxLogos: n = 3
653
- }) => /* @__PURE__ */ e(c, { sx: { flexDirection: "row", gap: 4 }, children: t?.slice(0, n).map((i, r) => /* @__PURE__ */ e(
694
+ }) => /* @__PURE__ */ e(l, { sx: { flexDirection: "row", gap: 4 }, children: t?.slice(0, n).map((i, r) => /* @__PURE__ */ e(
654
695
  pe,
655
696
  {
656
697
  categoryGuid: i.categoryGuid || "",
@@ -662,7 +703,7 @@ const Q = {
662
703
  logoSize: n = 32,
663
704
  maxLogos: i = 3
664
705
  }) => {
665
- const r = (o) => o * (n / 2);
706
+ const r = (a) => a * (n / 2);
666
707
  return /* @__PURE__ */ e(
667
708
  O,
668
709
  {
@@ -670,12 +711,12 @@ const Q = {
670
711
  position: "relative",
671
712
  width: 64
672
713
  },
673
- children: t.map((o, l) => l < i ? /* @__PURE__ */ e(
714
+ children: t.map((a, c) => c < i ? /* @__PURE__ */ e(
674
715
  O,
675
716
  {
676
717
  sx: {
677
718
  borderRadius: "4px",
678
- left: r(l),
719
+ left: r(c),
679
720
  outlineColor: "common.white",
680
721
  outlineStyle: "solid",
681
722
  outlineWidth: 2,
@@ -684,13 +725,13 @@ const Q = {
684
725
  children: /* @__PURE__ */ e(
685
726
  pe,
686
727
  {
687
- categoryGuid: o.categoryGuid || "",
688
- merchantGuid: o.merchantGuid || "",
728
+ categoryGuid: a.categoryGuid || "",
729
+ merchantGuid: a.merchantGuid || "",
689
730
  size: n
690
731
  }
691
732
  )
692
733
  },
693
- `${o.categoryGuid}-${o.merchantGuid}-${l}`
734
+ `${a.categoryGuid}-${a.merchantGuid}-${c}`
694
735
  ) : null)
695
736
  }
696
737
  );
@@ -699,8 +740,8 @@ const Q = {
699
740
  bgcolor: n,
700
741
  isLargeScreen: i,
701
742
  isSmallScreen: r,
702
- label: o
703
- }) => /* @__PURE__ */ a(c, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
743
+ label: a
744
+ }) => /* @__PURE__ */ o(l, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
704
745
  /* @__PURE__ */ e(
705
746
  O,
706
747
  {
@@ -712,110 +753,113 @@ const Q = {
712
753
  }
713
754
  }
714
755
  ),
715
- /* @__PURE__ */ a(c, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
716
- !r && /* @__PURE__ */ e(p, { bold: !0, variant: "caption", children: L(t, t === 0 || !i ? "0,0" : "0,0.00") }),
717
- /* @__PURE__ */ e(p, { variant: "caption", children: o })
756
+ /* @__PURE__ */ o(l, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
757
+ !r && /* @__PURE__ */ e(g, { bold: !0, variant: "caption", children: L(t, t === 0 || !i ? "0,0" : "0,0.00") }),
758
+ /* @__PURE__ */ e(g, { variant: "caption", children: a })
718
759
  ] })
719
760
  ] }), _t = T(() => {
720
- const { recurring: t } = D();
721
- return /* @__PURE__ */ a(c, { sx: { alignItems: "start", flexDirection: "row", gap: 12 }, children: [
722
- /* @__PURE__ */ e(qe, { size: 32 }),
723
- /* @__PURE__ */ a(c, { children: [
761
+ const { recurring: t } = w();
762
+ return /* @__PURE__ */ o(l, { sx: { alignItems: "start", flexDirection: "row", gap: 12 }, children: [
763
+ /* @__PURE__ */ e(Ze, { size: 32 }),
764
+ /* @__PURE__ */ o(l, { children: [
724
765
  /* @__PURE__ */ e(ce, { fontWeight: 600, variant: "body1", children: t.zero_state_content_header }),
725
766
  /* @__PURE__ */ e(ce, { color: "text.secondary", variant: "subtitle2", children: t.zero_state_content_description })
726
767
  ] })
727
768
  ] });
728
- }), vn = T(
769
+ }), Ln = T(
729
770
  ({ onCTAClick: t }) => {
730
- const [n, i] = h.useState(!1), { onEvent: r } = J(), o = ge(), { accounts: l } = he(), [m, { width: g }] = gt(), { isCopyLoaded: s, isInitialized: u, selectedAccountGuids: f, setSelectedAccounts: x } = Z(), {
731
- loadRepeatingTransactions: C,
771
+ const [n, i] = f.useState(!1), { onEvent: r } = J(), a = ge(), { accounts: c } = he(), [p, { width: h }] = ht(), { isCopyLoaded: s, isInitialized: m, selectedAccountGuids: u, setSelectedAccounts: x } = Z(), {
772
+ loadRepeatingTransactions: b,
732
773
  upcomingRecurrences: y,
733
774
  expenseTotal: d,
734
- missedExpenseTotal: b,
775
+ missedExpenseTotal: C,
735
776
  paidExpenseTotal: W,
736
- repeatingTransactions: F,
777
+ repeatingTransactions: U,
737
778
  setDateRange: te,
738
779
  upcomingExpenseTotal: ne,
739
- isDataLoaded: U
740
- } = I(), { setFilter: $ } = fe(), { recurring: _, budgets: ie } = D();
741
- h.useEffect(() => {
742
- x(l);
743
- }, [l]), h.useEffect(() => {
744
- u && ($({
780
+ isDataLoaded: $
781
+ } = I(), { setFilter: B } = fe(), { recurring: S, budgets: ie } = w();
782
+ be({
783
+ widgetName: "RecurringTransactionsMicroWidget",
784
+ isLoaded: $
785
+ }), f.useEffect(() => {
786
+ x(c);
787
+ }, [c]), f.useEffect(() => {
788
+ m && (B({
745
789
  dateRange: { start: me(ue(), 90), end: de() },
746
- accounts: f
747
- }), te({ start: k(/* @__PURE__ */ new Date()), end: z(/* @__PURE__ */ new Date()) }), C().finally(), i(!0));
748
- }, [u]), h.useEffect(() => {
749
- n && r(w.RECURRING_TRANSACTIONS_LOAD_WIDGET, {
790
+ accounts: u
791
+ }), te({ start: k(/* @__PURE__ */ new Date()), end: F(/* @__PURE__ */ new Date()) }), b().finally(), i(!0));
792
+ }, [m]), f.useEffect(() => {
793
+ n && r(_.RECURRING_TRANSACTIONS_LOAD_WIDGET, {
750
794
  state: y.length > 0 ? "default" : "zeroState"
751
795
  });
752
796
  }, [n]);
753
- const v = g <= 288, j = g >= 450, K = h.useMemo(() => {
754
- const G = [
755
- { color: o.palette.success.main, percentage: `${W / d}` }
797
+ const M = h <= 288, j = h >= 450, K = f.useMemo(() => {
798
+ const N = [
799
+ { color: a.palette.success.main, percentage: `${W / d}` }
756
800
  ];
757
- return b && G.push({
758
- color: o.palette.error.main,
759
- percentage: `${b / d}`
760
- }), G;
801
+ return C && N.push({
802
+ color: a.palette.error.main,
803
+ percentage: `${C / d}`
804
+ }), N;
761
805
  }, [
762
806
  W,
763
807
  d,
764
- b,
765
- o.palette.success.main,
766
- o.palette.error.main
767
- ]), P = h.useMemo(() => L(d, d === 0 ? "0,0" : "0,0.00"), [d]), re = () => {
808
+ C,
809
+ a.palette.success.main,
810
+ a.palette.error.main
811
+ ]), P = f.useMemo(() => L(d, d === 0 ? "0,0" : "0,0.00"), [d]), re = () => {
768
812
  r(
769
- y.length > 0 ? w.RECURRING_TRANSACTIONS_CLICK_GET_STARTED : w.RECURRING_TRANSACTIONS_CLICK_VIEW_ALL
813
+ y.length > 0 ? _.RECURRING_TRANSACTIONS_CLICK_GET_STARTED : _.RECURRING_TRANSACTIONS_CLICK_VIEW_ALL
770
814
  ), t();
771
815
  };
772
- if (!s || !n || !U) return /* @__PURE__ */ e(V, { height: 100 });
773
- const R = 32, oe = y.length > 0, Pe = () => oe ? v ? /* @__PURE__ */ e(
816
+ if (!s || !n || !$) return /* @__PURE__ */ e(V, { height: 100 });
817
+ const R = 32, oe = y.length > 0, Pe = () => oe ? M ? /* @__PURE__ */ e(
774
818
  Dt,
775
819
  {
776
820
  logoSize: R,
777
821
  maxLogos: 3,
778
822
  upcomingRecurrences: y.slice(0, 3)
779
823
  }
780
- ) : /* @__PURE__ */ e(Tt, { maxLogos: 3, upcomingRecurrences: y.slice(0, 3) }) : /* @__PURE__ */ e(c, { sx: { width: v ? 64 : 104 } }), Be = [
824
+ ) : /* @__PURE__ */ e(wt, { maxLogos: 3, upcomingRecurrences: y.slice(0, 3) }) : /* @__PURE__ */ e(l, { sx: { width: M ? 64 : 104 } }), He = [
781
825
  {
782
826
  amount: W,
783
827
  bgColor: "success.main",
784
- label: _.paid
828
+ label: S.paid
785
829
  },
786
830
  {
787
- amount: b,
831
+ amount: C,
788
832
  bgColor: "error.main",
789
- label: _.missed
833
+ label: S.missed
790
834
  },
791
835
  {
792
836
  amount: ne,
793
837
  bgColor: "border.light",
794
- label: _.upcoming
838
+ label: S.upcoming
795
839
  }
796
- ], De = !F?.length;
840
+ ], De = !U?.length;
797
841
  return /* @__PURE__ */ e(
798
- ht,
842
+ ft,
799
843
  {
800
844
  className: "mx-recurring-transaction-microwidget",
801
- ctaLabel: De ? ie.get_started_cta : _.primary_cta,
845
+ ctaLabel: De ? ie.get_started_cta : S.primary_cta,
802
846
  onCTAClick: re,
803
- title: _.recurring_expenses,
804
- children: De ? /* @__PURE__ */ e(_t, {}) : /* @__PURE__ */ a(X, { children: [
805
- /* @__PURE__ */ a(
806
- c,
847
+ title: S.recurring_expenses,
848
+ children: De ? /* @__PURE__ */ e(_t, {}) : /* @__PURE__ */ o(X, { children: [
849
+ /* @__PURE__ */ o(
850
+ l,
807
851
  {
808
- ref: m,
852
+ ref: p,
809
853
  sx: {
810
854
  flexDirection: "row",
811
855
  justifyContent: "space-between"
812
856
  },
813
857
  children: [
814
- /* @__PURE__ */ a(
815
- c,
858
+ /* @__PURE__ */ o(
859
+ l,
816
860
  {
817
861
  sx: [
818
- P.length >= 10 && v ? { flexDirection: "column" } : { flexDirection: "row", gap: 2 },
862
+ P.length >= 10 && M ? { flexDirection: "column" } : { flexDirection: "row", gap: 2 },
819
863
  {
820
864
  alignItems: "baseline",
821
865
  overflow: "hidden",
@@ -825,10 +869,10 @@ const Q = {
825
869
  ],
826
870
  children: [
827
871
  /* @__PURE__ */ e(
828
- p,
872
+ g,
829
873
  {
830
874
  sx: { width: "100%" },
831
- variant: P.length >= 10 && v ? "H3" : "H2",
875
+ variant: P.length >= 10 && M ? "H3" : "H2",
832
876
  children: P
833
877
  }
834
878
  ),
@@ -839,7 +883,7 @@ const Q = {
839
883
  pr: 12
840
884
  },
841
885
  variant: "XSmall",
842
- children: _.expected
886
+ children: S.expected
843
887
  }
844
888
  )
845
889
  ]
@@ -849,10 +893,10 @@ const Q = {
849
893
  ]
850
894
  }
851
895
  ),
852
- /* @__PURE__ */ a(c, { sx: { pt: 12 }, children: [
853
- /* @__PURE__ */ e(We, { data: K }),
896
+ /* @__PURE__ */ o(l, { sx: { pt: 12 }, children: [
897
+ /* @__PURE__ */ e($e, { data: K }),
854
898
  /* @__PURE__ */ e(
855
- c,
899
+ l,
856
900
  {
857
901
  sx: {
858
902
  alignItems: "center",
@@ -860,16 +904,16 @@ const Q = {
860
904
  gap: 16,
861
905
  mt: 4
862
906
  },
863
- children: Be.map((G, He) => /* @__PURE__ */ e(
907
+ children: He.map((N, ze) => /* @__PURE__ */ e(
864
908
  St,
865
909
  {
866
- amount: G.amount,
867
- bgcolor: G.bgColor,
910
+ amount: N.amount,
911
+ bgcolor: N.bgColor,
868
912
  isLargeScreen: j,
869
- isSmallScreen: v,
870
- label: G.label
913
+ isSmallScreen: M,
914
+ label: N.label
871
915
  },
872
- `recurrence-legend-${He}`
916
+ `recurrence-legend-${ze}`
873
917
  ))
874
918
  }
875
919
  )
@@ -878,9 +922,9 @@ const Q = {
878
922
  }
879
923
  );
880
924
  }
881
- ), Mn = T(
925
+ ), An = T(
882
926
  ({ isOpen: t, onClose: n, selectedTab: i }) => {
883
- const { cashflow: r } = D();
927
+ const { cashflow: r } = w();
884
928
  return /* @__PURE__ */ e(
885
929
  xe,
886
930
  {
@@ -888,20 +932,20 @@ const Q = {
888
932
  isOpen: t,
889
933
  onClose: n,
890
934
  title: r.cashflow_settings,
891
- children: /* @__PURE__ */ e(Ee, { defaultSelectedTab: i })
935
+ children: /* @__PURE__ */ e(Ne, { defaultSelectedTab: i })
892
936
  }
893
937
  );
894
938
  }
895
939
  );
896
940
  export {
897
- kn as AddRecurringTransactionDetails,
898
- En as ManageExpenses,
899
- Wn as ManageIncome,
900
- Ee as RecurringSettings,
901
- Mn as RecurringSettingsDrawer,
902
- vn as RecurringTransactionsMicroWidget,
903
- In as RecurringTransactionsMiniWidget,
904
- Nn as RecurringTransactionsStore,
905
- wn as RecurringTransactionsWidget,
906
- $n as SelectTransaction
941
+ $n as AddRecurringTransactionDetails,
942
+ Gn as ManageExpenses,
943
+ Bn as ManageIncome,
944
+ Ne as RecurringSettings,
945
+ An as RecurringSettingsDrawer,
946
+ Ln as RecurringTransactionsMicroWidget,
947
+ vn as RecurringTransactionsMiniWidget,
948
+ kn as RecurringTransactionsStore,
949
+ Mn as RecurringTransactionsWidget,
950
+ Pn as SelectTransaction
907
951
  };