@mx-cartographer/experiences 8.0.0-alpha.bb2 → 8.0.0-alpha.bb4

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 (222) hide show
  1. package/CHANGELOG.md +128 -1
  2. package/dist/{Account-Bxw0_4FU.mjs → Account-B4CDD-zq.mjs} +1 -1
  3. package/dist/AccountDetailsContent-adZTkM52.mjs +683 -0
  4. package/dist/AccountDetailsHeader-DRjFuyJT.mjs +87 -0
  5. package/dist/{AccountFields-C9FlatNb.mjs → AccountFields-Cl4KHoSj.mjs} +14 -12
  6. package/dist/AccountListItem-wgmlex-_.mjs +90 -0
  7. package/dist/{AccountStore-BgNOyMdp.mjs → AccountStore-HbVblv86.mjs} +19 -8
  8. package/dist/{Accounts-BRf_YeTf.mjs → Accounts-CRUehOiy.mjs} +1 -1
  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-Jv8h9H9l.mjs} +33 -33
  12. package/dist/{CashflowStore-D9Dpuz7X.mjs → CashflowStore-CA190BPF.mjs} +18 -25
  13. package/dist/{Category-CevNQ03n.mjs → Category-Ccoew_sA.mjs} +2 -2
  14. package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-Dl006GKy.mjs} +43 -41
  15. package/dist/{CategoryStore-yHI0hWmK.mjs → CategoryStore-MUwRWH9e.mjs} +13 -11
  16. package/dist/{CategoryUtil-pZRIYOgN.mjs → CategoryUtil-DfVKKkRf.mjs} +4 -4
  17. package/dist/{ConnectDrawer-BQNs-hjk.mjs → ConnectDrawer-DVp54lUH.mjs} +49 -48
  18. package/dist/{ConnectionsDrawer-ByGQE7D5.mjs → ConnectionsDrawer-Dsc04-4Z.mjs} +3 -3
  19. package/dist/CurrencyInput-D1cjbdCI.mjs +85 -0
  20. package/dist/{CurrencyText-kyC1aseI.mjs → CurrencyText-Dr0EZ7bp.mjs} +1 -1
  21. package/dist/{DateUtil-BcuH7ErC.mjs → DateUtil-CDPZw_-m.mjs} +3 -3
  22. package/dist/{DebtsStore-C9bblOgW.mjs → DebtsStore-pL63fmdT.mjs} +3 -3
  23. package/dist/{Dialog-CWW597AF.mjs → Dialog-CDV0kKxj.mjs} +24 -24
  24. package/dist/{Donut-oaQFlbit.mjs → Donut-Dmy3JTWd.mjs} +12 -12
  25. package/dist/Drawer-BF40nbsH.mjs +163 -0
  26. package/dist/{EmptyState-DA_lfRBv.mjs → EmptyState-DoxNUae-.mjs} +24 -22
  27. package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-QhQK4_FU.mjs} +4 -4
  28. package/dist/{Fetch-87LIQbEA.mjs → Fetch-DecPFeGU.mjs} +24 -22
  29. package/dist/FinstrongStore-BGf36b0z.mjs +451 -0
  30. package/dist/{GoalStore-D-aB35SY.mjs → GoalStore-C1-w3Y1E.mjs} +7 -7
  31. package/dist/HeaderCell-P8w6CmfO.mjs +6 -0
  32. package/dist/{Help-B6dIcujh.mjs → Help-DBfsTkAi.mjs} +125 -146
  33. package/dist/{Help-DhcC-C05.mjs → Help-c-zHlDbv.mjs} +8 -8
  34. package/dist/{IconBacking-B9oC6uL2.mjs → IconBacking-DgT8DCeh.mjs} +11 -11
  35. package/dist/LineChart-C1PxNf7P.mjs +581 -0
  36. package/dist/{ListItemAction-DHa3KJPs.mjs → ListItemAction-BNCWQAN_.mjs} +10 -10
  37. package/dist/Loader-Ckqi9Rx6.mjs +21 -0
  38. package/dist/{ManageIncome-1s_q5W4X.mjs → ManageIncome-8EsStyIQ.mjs} +195 -192
  39. package/dist/{MerchantStore-DrFvsUyy.mjs → MerchantStore-WvZ4gnQe.mjs} +1 -1
  40. package/dist/MicroWidgetContainer-BGpNl5ZS.mjs +45 -0
  41. package/dist/MiniWidgetContainer-CKzf_Ira.mjs +56 -0
  42. package/dist/{NetWorthStore-DCsTZpuS.mjs → NetWorthStore-Bti6u-d9.mjs} +4 -4
  43. package/dist/{NotificationSettings-DqrkNMod.mjs → NotificationSettings-B74rQVYC.mjs} +276 -273
  44. package/dist/{NotificationStore-BxP_P2dA.mjs → NotificationStore-Ck2KdNmT.mjs} +10 -10
  45. package/dist/{NumberFormatting-Buh7u8Oi.mjs → NumberFormatting-DjTD0t3W.mjs} +9 -9
  46. package/dist/{OriginalBalanceAction-CWuVvRq9.mjs → OriginalBalanceAction-2Y_3U_mg.mjs} +10 -10
  47. package/dist/{RecurringSettings-A_rAGCTP.mjs → RecurringSettings-DAncu--R.mjs} +17 -17
  48. package/dist/{RecurringTransactions-DK8dWldr.mjs → RecurringTransactions-CxcSL1dY.mjs} +106 -105
  49. package/dist/{RecurringTransactionsStore-C4YOD7_D.mjs → RecurringTransactionsStore-CNFxyGB6.mjs} +80 -73
  50. package/dist/{ResponsiveButton-DZFp78fJ.mjs → ResponsiveButton-Cn6-R7ue.mjs} +10 -10
  51. package/dist/SearchBox-B7km148n.mjs +39 -0
  52. package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-BASMQSIp.mjs} +3 -3
  53. package/dist/{SingleSegmentDonut-BgbLgwHi.mjs → SingleSegmentDonut-7Uy6VEld.mjs} +6 -6
  54. package/dist/SkeletonLoader-BaNboJjD.mjs +38 -0
  55. package/dist/{SpendingData-D5vsfYKo.mjs → SpendingData-DPQ96k3x.mjs} +19 -19
  56. package/dist/SpendingLegend-6FqtMcBV.mjs +193 -0
  57. package/dist/{StatusBar-BK_uYHAB.mjs → StatusBar-CPfSXe80.mjs} +6 -6
  58. package/dist/{TabContentContainer-j01JYR_7.mjs → TabContentContainer-CnMXkVqr.mjs} +8 -8
  59. package/dist/{ToggleListItem-r0Kx56wF.mjs → ToggleListItem-ciFTiqRS.mjs} +19 -14
  60. package/dist/TransactionApi-CjBoLleL.mjs +86 -0
  61. package/dist/TransactionDetails-Bn0qY5Hw.mjs +1336 -0
  62. package/dist/{TransactionStore-ai3uII_r.mjs → TransactionStore-DbwAutwC.mjs} +146 -165
  63. package/dist/TrendsStore-_mRaFUdf.mjs +182 -0
  64. package/dist/{User-BQUxBeZV.mjs → User-BklmOUSd.mjs} +107 -107
  65. package/dist/{ViewMoreMicroCard-SCn2wt4i.mjs → ViewMoreMicroCard-DAkyNRlD.mjs} +706 -729
  66. package/dist/{WidgetContainer-BHWANqT4.mjs → WidgetContainer-CDh9fjpR.mjs} +36 -36
  67. package/dist/accounts/components/AccountsListCompact.d.ts +10 -0
  68. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +4 -1
  69. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.d.ts +2 -1
  70. package/dist/accounts/index.es.js +228 -199
  71. package/dist/accounts/stores/AccountStore.d.ts +2 -0
  72. package/dist/analytics/index.es.js +27 -27
  73. package/dist/budgets/index.es.js +459 -462
  74. package/dist/cashflow/index.es.js +419 -428
  75. package/dist/categories/index.es.js +2 -2
  76. package/dist/categories/stores/CategoryStore.d.ts +1 -1
  77. package/dist/common/components/ErrorBoundary.d.ts +1 -1
  78. package/dist/common/components/Loader.d.ts +1 -2
  79. package/dist/common/components/Select.d.ts +4 -2
  80. package/dist/common/components/SkeletonLoader.d.ts +7 -0
  81. package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +1 -1
  82. package/dist/common/components/charts/LineChart.d.ts +12 -2
  83. package/dist/common/components/charts/index.d.ts +0 -3
  84. package/dist/common/components/charts/linechart/CustomLegend.d.ts +3 -1
  85. package/dist/common/components/charts/linechart/CustomMark.d.ts +5 -1
  86. package/dist/common/components/drawer/Drawer.d.ts +3 -0
  87. package/dist/common/components/drawer/Footer.d.ts +17 -0
  88. package/dist/common/components/index.d.ts +0 -1
  89. package/dist/common/hooks/index.d.ts +0 -1
  90. package/dist/common/hooks/useAriaLive.d.ts +1 -1
  91. package/dist/common/index.es.js +413 -674
  92. package/dist/common/stores/GlobalStore.d.ts +7 -1
  93. package/dist/common/stores/GlobalUiStore.d.ts +3 -2
  94. package/dist/common/types/Finstrong.d.ts +54 -0
  95. package/dist/common/types/Global.d.ts +1 -0
  96. package/dist/common/types/Widgets.d.ts +1 -0
  97. package/dist/common/types/index.d.ts +1 -1
  98. package/dist/common/types/localization/FinstrongCopy.d.ts +105 -2
  99. package/dist/common/types/localization/GoalsCopy.d.ts +1 -0
  100. package/dist/common/utils/Theme.d.ts +1 -3
  101. package/dist/dashboard/index.es.js +21 -21
  102. package/dist/debts/components/DebtsChart.d.ts +1 -2
  103. package/dist/debts/index.es.js +673 -665
  104. package/dist/exportTransactionsToCSV-BgV_wTLT.mjs +48 -0
  105. package/dist/finstrong/FinstrongWidget.d.ts +1 -1
  106. package/dist/finstrong/api/FinstrongApi.d.ts +5 -0
  107. package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +3 -1
  108. package/dist/finstrong/components/CreditScore/CreditScoreContent.d.ts +4 -0
  109. package/dist/finstrong/components/CreditScore/CreditScoreHeader.d.ts +4 -0
  110. package/dist/finstrong/components/FinancialStrengthGraph.d.ts +7 -1
  111. package/dist/finstrong/components/HaveManageableDebt/DebtPaymentTabContent.d.ts +3 -0
  112. package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtComponent.d.ts +3 -0
  113. package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtProgressBar.d.ts +4 -0
  114. package/dist/finstrong/components/HaveManageableDebt/IncomeTabContent.d.ts +3 -0
  115. package/dist/finstrong/components/KeyIndicatorsBorrowTab.d.ts +2 -2
  116. package/dist/finstrong/components/KeyIndicatorsDrawer.d.ts +4 -1
  117. package/dist/finstrong/components/KeyIndicatorsSaveTab.d.ts +2 -2
  118. package/dist/finstrong/components/KeyIndicatorsSpendTab.d.ts +2 -2
  119. package/dist/finstrong/components/KeyIndicatorsTabItem.d.ts +4 -3
  120. package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.d.ts +10 -0
  121. package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +2 -2
  122. package/dist/finstrong/components/MaintainingEmergencySavings/EstimatedContributionCalculator.d.ts +6 -0
  123. package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsContent.d.ts +4 -0
  124. package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsSticky.d.ts +4 -0
  125. package/dist/finstrong/components/ProgressBar.d.ts +15 -0
  126. package/dist/finstrong/components/SaveEnoughToLiveOn/AvailableTabContent.d.ts +3 -0
  127. package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnDrawerContent.d.ts +3 -0
  128. package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnProgressBar.d.ts +4 -0
  129. package/dist/finstrong/components/SaveEnoughToLiveOn/SpendingTabContent.d.ts +3 -0
  130. package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeComponent.d.ts +3 -0
  131. package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeProgressBar.d.ts +4 -0
  132. package/dist/finstrong/components/StatusChip.d.ts +5 -0
  133. package/dist/finstrong/components/onboarding/Onboarding.d.ts +2 -0
  134. package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +17 -0
  135. package/dist/finstrong/components/onboarding/OnboardingBirthday.d.ts +8 -0
  136. package/dist/finstrong/components/onboarding/OnboardingCreditScore.d.ts +8 -0
  137. package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +14 -0
  138. package/dist/finstrong/components/onboarding/OnboardingStepsHeader.d.ts +8 -0
  139. package/dist/finstrong/components/paybillsontime/PayBillsOnTimeDrawerComponent.d.ts +4 -0
  140. package/dist/finstrong/components/paybillsontime/PayBillsOnTimeStickyComponent.d.ts +4 -0
  141. package/dist/finstrong/components/shared/Accounts.d.ts +8 -0
  142. package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +25 -0
  143. package/dist/finstrong/components/shared/DialScoreCard.d.ts +7 -1
  144. package/dist/finstrong/components/shared/DoubleBarChart.d.ts +28 -0
  145. package/dist/finstrong/components/shared/LineGraph.d.ts +7 -0
  146. package/dist/finstrong/components/shared/TotalCard.d.ts +8 -0
  147. package/dist/finstrong/components/shared/Transactions.d.ts +11 -0
  148. package/dist/finstrong/constants/index.d.ts +9 -0
  149. package/dist/finstrong/index.es.js +3175 -1067
  150. package/dist/finstrong/stores/FinstrongStore.d.ts +25 -2
  151. package/dist/finstrong/util/finstrongUtils.d.ts +58 -1
  152. package/dist/goals/index.es.js +580 -570
  153. package/dist/help/components/content/BottomImageContent.d.ts +1 -1
  154. package/dist/help/components/content/LeftImageContent.d.ts +1 -1
  155. package/dist/help/components/content/RightImageContent.d.ts +1 -1
  156. package/dist/help/components/content/TopImageContent.d.ts +1 -1
  157. package/dist/help/index.es.js +6 -6
  158. package/dist/{hooks-D6XlXHf4.mjs → hooks-C41HAxM5.mjs} +3 -3
  159. package/dist/insights/index.es.js +1 -1
  160. package/dist/investments/index.es.js +537 -536
  161. package/dist/merchants/index.es.js +9 -9
  162. package/dist/microinsights/beaticons/BeatIcon.d.ts +2 -9
  163. package/dist/microinsights/beaticons/BeatMerchantLogo.d.ts +3 -2
  164. package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +2 -1
  165. package/dist/microinsights/cards/{MicroInsightCard.d.ts → BaseCard.d.ts} +1 -8
  166. package/dist/microinsights/cards/{BeatCard.d.ts → InsightCard.d.ts} +2 -2
  167. package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +2 -5
  168. package/dist/microinsights/cards/ZeroStateCard.d.ts +2 -5
  169. package/dist/microinsights/carousel/BeatList.d.ts +10 -0
  170. package/dist/microinsights/carousel/CarouselControls.d.ts +1 -3
  171. package/dist/microinsights/carousel/CarouselHeader.d.ts +1 -2
  172. package/dist/microinsights/constants/App.d.ts +0 -1
  173. package/dist/microinsights/index.d.ts +3 -3
  174. package/dist/microinsights/index.es.js +7 -7
  175. package/dist/microinsights/interfaces.d.ts +0 -6
  176. package/dist/networth/components/NetWorthChange.d.ts +3 -1
  177. package/dist/networth/index.es.js +262 -254
  178. package/dist/notifications/index.es.js +90 -91
  179. package/dist/recurringtransactions/components/MicroWidgetContent.d.ts +3 -0
  180. package/dist/recurringtransactions/index.es.js +586 -562
  181. package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +1 -0
  182. package/dist/settings/index.es.js +371 -365
  183. package/dist/spending/index.es.js +267 -419
  184. package/dist/spending/utils/SpendingData.d.ts +2 -1
  185. package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -0
  186. package/dist/transactions/components/shared/TransactionList.d.ts +1 -0
  187. package/dist/transactions/index.es.js +231 -226
  188. package/dist/transactions/stores/TransactionStore.d.ts +1 -1
  189. package/dist/transactions/stores/UiStore.d.ts +0 -2
  190. package/dist/trends/index.es.js +988 -612
  191. package/dist/{useAccountDisplayName-BUAApBIb.mjs → useAccountDisplayName-CcIp09Xc.mjs} +2 -2
  192. package/dist/{useCombineEvents-BUDIR1ba.mjs → useCombineEvents-kNzLTWCp.mjs} +3 -3
  193. package/dist/{useInsightsEnabled-DBpwEq10.mjs → useInsightsEnabled-CNjP5cfR.mjs} +1 -1
  194. package/dist/{useScreenSize-B6JyS_Lj.mjs → useScreenSize-B5afALev.mjs} +1 -1
  195. package/package.json +51 -56
  196. package/dist/AccountDetailsContent-CAM9y39M.mjs +0 -679
  197. package/dist/AccountDetailsHeader-JtSX6Uf9.mjs +0 -120
  198. package/dist/AccountListItem-JFMZROh7.mjs +0 -90
  199. package/dist/CurrencyInput-DUsQbkXb.mjs +0 -85
  200. package/dist/Drawer-kEE73B87.mjs +0 -113
  201. package/dist/FinstrongStore-F2c607dj.mjs +0 -101
  202. package/dist/HeaderCell-DjuifqHJ.mjs +0 -6
  203. package/dist/LineChart-D4GI7nVh.mjs +0 -541
  204. package/dist/Loader-DUaFpDGv.mjs +0 -24
  205. package/dist/MicroWidgetContainer-DpeqN9n3.mjs +0 -45
  206. package/dist/MiniWidgetContainer-D0gfmbaF.mjs +0 -56
  207. package/dist/SearchBox-B2_zLv8-.mjs +0 -42
  208. package/dist/TransactionApi-B3Tksf7L.mjs +0 -86
  209. package/dist/TransactionDetails-oP1eSuiS.mjs +0 -1334
  210. package/dist/TrendsStore-DCYbpXPO.mjs +0 -559
  211. package/dist/accounts/components/AccountsWidgetContent.d.ts +0 -3
  212. package/dist/common/components/barchart/Bar.d.ts +0 -25
  213. package/dist/common/components/barchart/BarChart.d.ts +0 -34
  214. package/dist/common/components/barchart/BarColumn.d.ts +0 -37
  215. package/dist/common/components/barchart/Legend.d.ts +0 -8
  216. package/dist/common/components/barchart/Util.d.ts +0 -42
  217. package/dist/common/components/barchart/index.d.ts +0 -1
  218. package/dist/common/hooks/usePrevious.d.ts +0 -2
  219. package/dist/exportTransactionsToCSV-7bVS7KXf.mjs +0 -47
  220. package/dist/finstrong/utils/Finstrong.d.ts +0 -6
  221. package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +0 -7
  222. package/dist/useAriaLive-B3_pRUio.mjs +0 -35
@@ -1,79 +1,80 @@
1
1
  import { jsxs as c, jsx as e, Fragment as L } from "react/jsx-runtime";
2
- import u from "react";
2
+ import _ from "react";
3
3
  import { observer as A } from "mobx-react-lite";
4
- import P from "@mui/material/Box";
4
+ import M from "@mui/material/Box";
5
5
  import T from "@mui/material/Divider";
6
6
  import K from "@mui/material/List";
7
- import h from "@mui/material/Stack";
8
- import { MerchantLogo as H, Text as S, H1 as re, InstitutionLogo as ae, P as U } from "@mxenabled/mxui";
7
+ import y from "@mui/material/Stack";
8
+ import { MerchantLogo as H, Text as S, H1 as oe, InstitutionLogo as ae, P as U } from "@mxenabled/mxui";
9
9
  import ie from "@mui/material/ListItem";
10
10
  import se from "@mui/material/ListItemAvatar";
11
11
  import ce from "@mui/material/ListItemButton";
12
12
  import le from "@mui/material/ListItemText";
13
- import { F as d, S as N, D as Y, g as Q, R as E, e as de } from "./RecurringTransactions-DK8dWldr.mjs";
14
- import { subDays as ue } from "date-fns/subDays";
13
+ import { F as d, S as N, D as Y, g as Q, R, e as de } from "./RecurringTransactions-CxcSL1dY.mjs";
14
+ import { subDays as _e } from "date-fns/subDays";
15
15
  import { startOfToday as z } from "date-fns/startOfToday";
16
- import { endOfMonth as _e } from "date-fns/endOfMonth";
16
+ import { endOfMonth as ue } from "date-fns/endOfMonth";
17
+ import { parseISO as me } from "date-fns/parseISO";
17
18
  import $ from "@mui/material/Button";
18
- import { Delete as me, Add as pe, ReceiptLong as he } from "@mxenabled/mx-icons";
19
- import { T as X, a as ye, u as ge, S as fe, b as Ce } from "./TransactionDetails-oP1eSuiS.mjs";
20
- import { getDayOfYear as be } from "date-fns/getDayOfYear";
21
- import { setDayOfYear as xe } from "date-fns/setDayOfYear";
22
- import { AdapterDateFns as Se } from "@mui/x-date-pickers/AdapterDateFnsV3";
23
- import { DatePicker as ve } from "@mui/x-date-pickers";
24
- import { LocalizationProvider as we } from "@mui/x-date-pickers/LocalizationProvider";
25
- import { u as w, j as M, g as F, b as Ae, h as Z, p as De } from "./hooks-D6XlXHf4.mjs";
26
- import { b as Ie, f as J } from "./NumberFormatting-Buh7u8Oi.mjs";
27
- import { D as O } from "./Drawer-kEE73B87.mjs";
28
- import { A as R } from "./WidgetContainer-BHWANqT4.mjs";
29
- import { f as Ee, D as Re, a as Te } from "./Dialog-CWW597AF.mjs";
30
- import { formatISO as Le } from "date-fns/formatISO";
31
- import { fromUnixTime as Oe } from "date-fns/fromUnixTime";
32
- import { S as ke } from "./SearchBox-B2_zLv8-.mjs";
33
- import { h as Ne } from "./DateUtil-BcuH7ErC.mjs";
34
- import { b as B } from "./Category-CevNQ03n.mjs";
35
- import { T as V } from "./User-BQUxBeZV.mjs";
19
+ import { Delete as pe, Add as ye, ReceiptLong as he } from "@mxenabled/mx-icons";
20
+ import { T as X, a as ge, b as fe, S as Ce, c as be } from "./TransactionDetails-Bn0qY5Hw.mjs";
21
+ import { getDayOfYear as xe } from "date-fns/getDayOfYear";
22
+ import { setDayOfYear as Se } from "date-fns/setDayOfYear";
23
+ import { AdapterDateFns as ve } from "@mui/x-date-pickers/AdapterDateFnsV3";
24
+ import { DatePicker as we } from "@mui/x-date-pickers";
25
+ import { LocalizationProvider as Ae } from "@mui/x-date-pickers/LocalizationProvider";
26
+ import { u as w, j as F, g as G, b as Ie, h as Z, p as De } from "./hooks-C41HAxM5.mjs";
27
+ import { b as Re, f as J } from "./NumberFormatting-DjTD0t3W.mjs";
28
+ import { D as O } from "./Drawer-BF40nbsH.mjs";
29
+ import { A as E } from "./WidgetContainer-CDh9fjpR.mjs";
30
+ import { f as Ee, a as Te, D as Le } from "./Dialog-CDV0kKxj.mjs";
31
+ import { formatISO as Oe } from "date-fns/formatISO";
32
+ import { fromUnixTime as ke } from "date-fns/fromUnixTime";
33
+ import { S as Ne } from "./SearchBox-B7km148n.mjs";
34
+ import { h as Me } from "./DateUtil-CDPZw_-m.mjs";
35
+ import { b as q } from "./Category-Ccoew_sA.mjs";
36
+ import { T as V } from "./User-BklmOUSd.mjs";
36
37
  const ee = ({
37
38
  frequency: n,
38
39
  firstDay: t,
39
- secondDay: r,
40
+ secondDay: o,
40
41
  onFrequencyChange: i,
41
42
  onFirstDayChange: s,
42
43
  onSecondDayChange: l
43
44
  }) => {
44
- const { recurring: o } = w(), a = u.useMemo(
45
+ const { recurring: r } = w(), a = _.useMemo(
45
46
  () => [
46
- { id: d.EveryWeek, label: o.frequency_every_week },
47
- { id: d.EveryOtherWeek, label: o.frequency_every_other_week },
48
- { id: d.TwiceAMonth, label: o.frequency_twice_a_month },
49
- { id: d.EveryMonth, label: o.frequency_every_month },
50
- { id: d.EveryOtherMonth, label: o.frequency_every_other_month },
51
- { id: d.EveryQuarter, label: o.frequency_every_quarter },
52
- { id: d.EveryOtherQuarter, label: o.frequency_every_other_quarter },
53
- { id: d.EveryYear, label: o.frequency_every_year }
47
+ { id: d.EveryWeek, label: r.frequency_every_week },
48
+ { id: d.EveryOtherWeek, label: r.frequency_every_other_week },
49
+ { id: d.TwiceAMonth, label: r.frequency_twice_a_month },
50
+ { id: d.EveryMonth, label: r.frequency_every_month },
51
+ { id: d.EveryOtherMonth, label: r.frequency_every_other_month },
52
+ { id: d.EveryQuarter, label: r.frequency_every_quarter },
53
+ { id: d.EveryOtherQuarter, label: r.frequency_every_other_quarter },
54
+ { id: d.EveryYear, label: r.frequency_every_year }
54
55
  ],
55
- [o]
56
+ [r]
56
57
  ), m = [
57
- { id: 0, label: o.weekday_sunday },
58
- { id: 1, label: o.weekday_monday },
59
- { id: 2, label: o.weekday_tuesday },
60
- { id: 3, label: o.weekday_wednesday },
61
- { id: 4, label: o.weekday_thursday },
62
- { id: 5, label: o.weekday_friday },
63
- { id: 6, label: o.weekday_saturday }
64
- ], y = [...Array(31).keys()].map((p) => ({
58
+ { id: 0, label: r.weekday_sunday },
59
+ { id: 1, label: r.weekday_monday },
60
+ { id: 2, label: r.weekday_tuesday },
61
+ { id: 3, label: r.weekday_wednesday },
62
+ { id: 4, label: r.weekday_thursday },
63
+ { id: 5, label: r.weekday_friday },
64
+ { id: 6, label: r.weekday_saturday }
65
+ ], h = [...Array(31).keys()].map((p) => ({
65
66
  id: p + 1,
66
- label: Ie(p + 1)
67
+ label: Re(p + 1)
67
68
  }));
68
- y[30].label += ` (${o.last_day_of_month})`;
69
- const C = y.slice(0, 15), v = y.slice(14), b = n === d.EveryWeek || n === d.EveryOtherWeek, g = n === d.TwiceAMonth || n === d.EveryMonth || n === d.EveryOtherMonth || n === d.EveryQuarter || n === d.EveryOtherQuarter, D = xe(z(), t), f = (p) => {
70
- p && s(be(p));
69
+ h[30].label += ` (${r.last_day_of_month})`;
70
+ const C = h.slice(0, 15), v = h.slice(14), b = n === d.EveryWeek || n === d.EveryOtherWeek, g = n === d.TwiceAMonth || n === d.EveryMonth || n === d.EveryOtherMonth || n === d.EveryQuarter || n === d.EveryOtherQuarter, I = Se(z(), t), f = (p) => {
71
+ p && s(xe(p));
71
72
  };
72
- return /* @__PURE__ */ c(h, { gap: 24, sx: { m: 24 }, children: [
73
+ return /* @__PURE__ */ c(y, { gap: 24, sx: { m: 24 }, children: [
73
74
  /* @__PURE__ */ e(
74
75
  N,
75
76
  {
76
- label: o.frequency,
77
+ label: r.frequency,
77
78
  onChange: i,
78
79
  options: a,
79
80
  value: n
@@ -82,7 +83,7 @@ const ee = ({
82
83
  b && /* @__PURE__ */ e(
83
84
  N,
84
85
  {
85
- label: o.day_of_the_week,
86
+ label: r.day_of_the_week,
86
87
  onChange: s,
87
88
  options: m,
88
89
  value: t
@@ -91,41 +92,41 @@ const ee = ({
91
92
  g && /* @__PURE__ */ e(
92
93
  N,
93
94
  {
94
- label: n === d.TwiceAMonth ? o.first_day_of_the_month : o.day_of_the_month,
95
+ label: n === d.TwiceAMonth ? r.first_day_of_the_month : r.day_of_the_month,
95
96
  onChange: s,
96
- options: n === d.TwiceAMonth ? C : y,
97
+ options: n === d.TwiceAMonth ? C : h,
97
98
  value: t
98
99
  }
99
100
  ),
100
101
  n === d.TwiceAMonth && /* @__PURE__ */ e(
101
102
  N,
102
103
  {
103
- label: o.second_day_of_the_month,
104
+ label: r.second_day_of_the_month,
104
105
  onChange: l,
105
106
  options: v,
106
- value: r || 0
107
+ value: o || 0
107
108
  }
108
109
  ),
109
- n === d.EveryYear && /* @__PURE__ */ e(we, { dateAdapter: Se, children: /* @__PURE__ */ e(
110
- ve,
110
+ n === d.EveryYear && /* @__PURE__ */ e(Ae, { dateAdapter: ve, children: /* @__PURE__ */ e(
111
+ we,
111
112
  {
112
113
  disablePast: !0,
113
- label: o.next_payment_date,
114
+ label: r.next_payment_date,
114
115
  onChange: f,
115
- value: D
116
+ value: I
116
117
  }
117
118
  ) })
118
119
  ] });
119
- }, Me = A(({ repeatingTransaction: n }) => {
120
- const { recurring: t } = w(), { updateRepeatingTransaction: r } = M(), { onEvent: i } = F(), [s, l] = u.useState(!1), [o, a] = u.useState(n.recurrence_type), [m, y] = u.useState(n.recurrence_day), [C, v] = u.useState(n.second_recurrence_day), b = async () => {
121
- await r({
120
+ }, Fe = A(({ repeatingTransaction: n }) => {
121
+ const { recurring: t } = w(), { updateRepeatingTransaction: o } = F(), { onEvent: i } = G(), [s, l] = _.useState(!1), [r, a] = _.useState(n.recurrence_type), [m, h] = _.useState(n.recurrence_day), [C, v] = _.useState(n.second_recurrence_day), b = async () => {
122
+ await o({
122
123
  ...n,
123
- recurrence_type: o,
124
+ recurrence_type: r,
124
125
  recurrence_day: m,
125
126
  second_recurrence_day: C
126
127
  }), l(!1);
127
128
  }, g = () => {
128
- l(!0), i(R.RECURRING_TRANSACTIONS_DETAILS_CLICK_PAYMENT_SCHEDULE);
129
+ l(!0), i(E.RECURRING_TRANSACTIONS_DETAILS_CLICK_PAYMENT_SCHEDULE);
129
130
  };
130
131
  return /* @__PURE__ */ c(L, { children: [
131
132
  /* @__PURE__ */ e(
@@ -149,8 +150,8 @@ const ee = ({
149
150
  ee,
150
151
  {
151
152
  firstDay: m,
152
- frequency: o,
153
- onFirstDayChange: y,
153
+ frequency: r,
154
+ onFirstDayChange: h,
154
155
  onFrequencyChange: a,
155
156
  onSecondDayChange: v,
156
157
  secondDay: C
@@ -159,26 +160,26 @@ const ee = ({
159
160
  }
160
161
  )
161
162
  ] });
162
- }), Fe = A(
163
+ }), Ge = A(
163
164
  ({ onDeleted: n, recurringTransaction: t }) => {
164
- const { recurring: r } = w(), { selectedAccountGuids: i } = Ae(), { onEvent: s } = F(), { deleteRepeatingTransaction: l } = M(), { setFilter: o, transactions: a } = Z(), { amount: m, description: y, merchant_guid: C } = t, [v, b] = u.useState(!1), [g, D] = u.useState("");
165
- u.useEffect(() => {
166
- o({
165
+ const { recurring: o } = w(), { selectedAccountGuids: i } = Ie(), { onEvent: s } = G(), { deleteRepeatingTransaction: l } = F(), { setFilter: r, transactions: a } = Z(), { amount: m, description: h, merchant_guid: C } = t, [v, b] = _.useState(!1), [g, I] = _.useState("");
166
+ _.useEffect(() => {
167
+ r({
167
168
  accounts: i,
168
- dateRange: { start: ue(z(), 90), end: _e(z()) },
169
- custom: (_) => _.repeating_transaction_guid === t.guid
169
+ dateRange: { start: _e(z(), 90), end: ue(z()) },
170
+ custom: (u) => u.repeating_transaction_guid === t.guid
170
171
  });
171
172
  }, [t]);
172
- const f = u.useMemo(
173
- () => a.find((_) => _.guid === g),
173
+ const f = _.useMemo(
174
+ () => a.find((u) => u.guid === g),
174
175
  [g, a]
175
- ), p = t.repeating_transaction_type === E.Income, k = async () => {
176
+ ), p = t.repeating_transaction_type === R.Income, k = async () => {
176
177
  await l(t.guid), n();
177
- }, G = () => {
178
- b(!0), s(R.RECURRING_TRANSACTIONS_DETAILS_CLICK_DELETE);
178
+ }, P = () => {
179
+ b(!0), s(E.RECURRING_TRANSACTIONS_DETAILS_CLICK_DELETE);
179
180
  };
180
- return /* @__PURE__ */ c(h, { bgcolor: "background.default", direction: "column", height: "100%", children: [
181
- /* @__PURE__ */ c(h, { direction: "column", m: 24, children: [
181
+ return /* @__PURE__ */ c(y, { bgcolor: "background.default", direction: "column", height: "100%", children: [
182
+ /* @__PURE__ */ c(y, { direction: "column", m: 24, children: [
182
183
  /* @__PURE__ */ e(
183
184
  H,
184
185
  {
@@ -188,14 +189,14 @@ const ee = ({
188
189
  sx: { mb: 12 }
189
190
  }
190
191
  ),
191
- /* @__PURE__ */ e(S, { bold: !0, variant: "body1", children: y }),
192
- /* @__PURE__ */ c(re, { color: p ? "success.main" : "text.primary", sx: { my: 4 }, children: [
192
+ /* @__PURE__ */ e(S, { bold: !0, variant: "body1", children: h }),
193
+ /* @__PURE__ */ c(oe, { color: p ? "success.main" : "text.primary", sx: { my: 4 }, children: [
193
194
  p ? "+" : "",
194
195
  J(m, "0,0.00")
195
196
  ] }),
196
- /* @__PURE__ */ e(S, { color: "text.secondary", variant: "body2", children: `${r.next_payment_date}: ${Ee(
197
- t.predicted_occurs_on,
198
- Re.MONTH_DAY_YEAR
197
+ /* @__PURE__ */ e(S, { color: "text.secondary", variant: "body2", children: `${o.next_payment_date}: ${Ee(
198
+ me(t.predicted_occurs_on),
199
+ Te.MONTH_DAY_YEAR
199
200
  )}` })
200
201
  ] }),
201
202
  /* @__PURE__ */ c(K, { sx: { bgcolor: "background.paper" }, children: [
@@ -204,8 +205,8 @@ const ee = ({
204
205
  Y,
205
206
  {
206
207
  iconName: "checkbook",
207
- label: r.account,
208
- value: t.account.institutionName || ""
208
+ label: o.account,
209
+ value: t.account.displayName || ""
209
210
  }
210
211
  ),
211
212
  /* @__PURE__ */ e(T, { variant: "inset" })
@@ -215,60 +216,60 @@ const ee = ({
215
216
  Y,
216
217
  {
217
218
  iconName: "monetization_on",
218
- label: r.category,
219
+ label: o.category,
219
220
  value: f.category
220
221
  }
221
222
  ),
222
223
  /* @__PURE__ */ e(T, { variant: "inset" })
223
224
  ] }),
224
- /* @__PURE__ */ e(Me, { repeatingTransaction: t }),
225
+ /* @__PURE__ */ e(Fe, { repeatingTransaction: t }),
225
226
  /* @__PURE__ */ e(T, {})
226
227
  ] }),
227
228
  /* @__PURE__ */ e(
228
229
  $,
229
230
  {
230
231
  color: "error",
231
- onClick: G,
232
- startIcon: /* @__PURE__ */ e(me, {}),
232
+ onClick: P,
233
+ startIcon: /* @__PURE__ */ e(pe, {}),
233
234
  sx: { mx: 24, my: 16 },
234
235
  variant: "text",
235
- children: p ? r.delete_income_title : r.delete_expense_title
236
+ children: p ? o.delete_income_title : o.delete_expense_title
236
237
  }
237
238
  ),
238
- /* @__PURE__ */ e(S, { bold: !0, sx: { ml: 24, mt: 16 }, variant: "Body", children: r.paid_transactions }),
239
- /* @__PURE__ */ e(X, { height: "30dvh", onClick: D }),
239
+ /* @__PURE__ */ e(S, { bold: !0, sx: { ml: 24, mt: 16 }, variant: "body1", children: o.paid_transactions }),
240
+ /* @__PURE__ */ e(X, { height: "30dvh", onClick: I }),
240
241
  /* @__PURE__ */ e(
241
242
  O,
242
243
  {
243
- ariaLabelClose: r.close_drawer_aria,
244
+ ariaLabelClose: o.close_drawer_aria,
244
245
  isOpen: !!g && !!f,
245
- onClose: () => D(""),
246
- title: r.transaction_details_drawer_title,
247
- children: f && /* @__PURE__ */ e(ye, { transaction: f })
246
+ onClose: () => I(""),
247
+ title: o.transaction_details_drawer_title,
248
+ children: f && /* @__PURE__ */ e(ge, { transaction: f })
248
249
  }
249
250
  ),
250
251
  /* @__PURE__ */ e(
251
- Te,
252
+ Le,
252
253
  {
253
254
  copy: {
254
- title: p ? r.delete_income_title : r.delete_expense_title,
255
- close_aria: r.close_drawer_aria
255
+ title: p ? o.delete_income_title : o.delete_expense_title,
256
+ close_aria: o.close_drawer_aria
256
257
  },
257
258
  isOpen: v,
258
259
  onClose: () => b(!1),
259
260
  onPrimaryAction: k,
260
- children: /* @__PURE__ */ e(S, { children: p ? r.delete_income_description : r.delete_expense_description })
261
+ children: /* @__PURE__ */ e(S, { children: p ? o.delete_income_description : o.delete_expense_description })
261
262
  }
262
263
  )
263
264
  ] });
264
265
  }
265
- ), Ge = A(
266
+ ), Pe = A(
266
267
  ({ onClick: n = () => {
267
268
  }, repeatingTransaction: t }) => {
268
- const { recurring: r } = w(), [i, s] = u.useState(!1), l = u.useMemo(
269
+ const { recurring: o } = w(), [i, s] = _.useState(!1), l = _.useMemo(
269
270
  () => t.transactions.length === 0 ? "" : t.transactions[0].category_guid || "",
270
271
  [t]
271
- ), o = t.account?.institutionName || "", a = t.repeating_transaction_type === E.Income, m = Q(r, t, !0);
272
+ ), r = t.account?.displayName || "", a = t.repeating_transaction_type === R.Income, m = Q(o, t, !0);
272
273
  return /* @__PURE__ */ c(ie, { disableGutters: !0, disablePadding: !0, children: [
273
274
  /* @__PURE__ */ c(ce, { onClick: () => {
274
275
  n(t), s(!0);
@@ -280,22 +281,22 @@ const ee = ({
280
281
  merchantGuid: t.merchant_guid
281
282
  }
282
283
  ) }),
283
- /* @__PURE__ */ e(le, { children: /* @__PURE__ */ c(h, { direction: "row", gap: 4, sx: { justifyContent: "space-between" }, children: [
284
- /* @__PURE__ */ c(h, { direction: "column", sx: { width: "50%" }, children: [
284
+ /* @__PURE__ */ e(le, { children: /* @__PURE__ */ c(y, { direction: "row", gap: 4, sx: { justifyContent: "space-between" }, children: [
285
+ /* @__PURE__ */ c(y, { direction: "column", sx: { width: "50%" }, children: [
285
286
  /* @__PURE__ */ e(S, { bold: !0, variant: "body1", children: t.description }),
286
- /* @__PURE__ */ c(h, { alignItems: "center", direction: "row", gap: 6, children: [
287
+ /* @__PURE__ */ c(y, { alignItems: "center", direction: "row", gap: 6, children: [
287
288
  t.account?.institution_guid && /* @__PURE__ */ e(
288
289
  ae,
289
290
  {
290
- alt: o,
291
+ alt: r,
291
292
  institutionGuid: t.account?.institution_guid,
292
293
  size: 12
293
294
  }
294
295
  ),
295
- /* @__PURE__ */ e(S, { variant: "caption", children: o })
296
+ /* @__PURE__ */ e(S, { variant: "caption", children: r })
296
297
  ] })
297
298
  ] }),
298
- /* @__PURE__ */ c(h, { alignItems: "flex-end", sx: { width: "50%" }, children: [
299
+ /* @__PURE__ */ c(y, { alignItems: "flex-end", sx: { width: "50%" }, children: [
299
300
  /* @__PURE__ */ c(
300
301
  S,
301
302
  {
@@ -309,7 +310,7 @@ const ee = ({
309
310
  }
310
311
  ),
311
312
  /* @__PURE__ */ e(
312
- h,
313
+ y,
313
314
  {
314
315
  direction: "row",
315
316
  sx: {
@@ -328,12 +329,12 @@ const ee = ({
328
329
  /* @__PURE__ */ e(
329
330
  O,
330
331
  {
331
- ariaLabelClose: r.close_drawer_aria,
332
+ ariaLabelClose: o.close_drawer_aria,
332
333
  isOpen: i,
333
334
  onClose: () => s(!1),
334
- title: t.repeating_transaction_type === E.Income ? r.income_details : r.expense_details,
335
+ title: t.repeating_transaction_type === R.Income ? o.income_details : o.expense_details,
335
336
  children: /* @__PURE__ */ e(
336
- Fe,
337
+ Ge,
337
338
  {
338
339
  onDeleted: () => s(!1),
339
340
  recurringTransaction: t
@@ -343,23 +344,23 @@ const ee = ({
343
344
  )
344
345
  ] });
345
346
  }
346
- ), Pe = A(
347
+ ), Ue = A(
347
348
  ({
348
349
  bgcolor: n = "background.default",
349
350
  description: t,
350
- onSearch: r,
351
+ onSearch: o,
351
352
  onSelected: i
352
353
  }) => {
353
- const { recurring: s } = w(), { searchValue: l, setSearchValue: o } = ge();
354
- return /* @__PURE__ */ c(h, { sx: { bgcolor: n, gap: 16, pt: 8 }, children: [
354
+ const { recurring: s } = w(), { searchValue: l, setSearchValue: r } = fe();
355
+ return /* @__PURE__ */ c(y, { sx: { bgcolor: n, gap: 16, pt: 8 }, children: [
355
356
  t && /* @__PURE__ */ e(U, { sx: { mx: 24 }, children: t }),
356
357
  /* @__PURE__ */ e(
357
- ke,
358
+ Ne,
358
359
  {
359
360
  ariaLabel: s.select_transaction_search_aria,
360
361
  cancelAriaLabel: s.select_transaction_search_cancel_aria,
361
362
  onChange: (a) => {
362
- o(a), r(a);
363
+ r(a), o(a);
363
364
  },
364
365
  placeholder: s.select_transaction_search_placeholder,
365
366
  searchValue: l
@@ -377,90 +378,92 @@ const ee = ({
377
378
  )
378
379
  ] });
379
380
  }
380
- ), Ue = A(
381
+ ), Ye = A(
381
382
  ({
382
383
  bgcolor: n = "background.default",
383
384
  firstDay: t,
384
- secondDay: r,
385
+ secondDay: o,
385
386
  frequency: i,
386
387
  onFrequencyChange: s,
387
388
  onFirstDayChange: l,
388
- onSecondDayChange: o,
389
+ onSecondDayChange: r,
389
390
  transaction: a
390
391
  }) => {
391
392
  const { recurring: m } = w();
392
- return /* @__PURE__ */ c(h, { bgcolor: n, gap: 24, height: "100%", children: [
393
- /* @__PURE__ */ c(h, { children: [
394
- /* @__PURE__ */ e(fe, { bgcolor: n, children: Ne(a.date) }),
395
- /* @__PURE__ */ e(Ce, { transaction: a })
393
+ return /* @__PURE__ */ c(y, { bgcolor: n, gap: 24, height: "100%", children: [
394
+ /* @__PURE__ */ c(y, { children: [
395
+ /* @__PURE__ */ e(Ce, { bgcolor: n, children: Me(a.date) }),
396
+ /* @__PURE__ */ e(be, { transaction: a })
396
397
  ] }),
397
- /* @__PURE__ */ e(S, { bold: !0, sx: { mx: 24 }, variant: "Body", children: m.payment_schedule }),
398
- /* @__PURE__ */ e(
399
- ee,
400
- {
401
- firstDay: t,
402
- frequency: i,
403
- onFirstDayChange: l,
404
- onFrequencyChange: s,
405
- onSecondDayChange: o,
406
- secondDay: r
407
- }
408
- )
398
+ /* @__PURE__ */ c(M, { children: [
399
+ /* @__PURE__ */ e(S, { bold: !0, sx: { mx: 24 }, variant: "body1", children: m.payment_schedule }),
400
+ /* @__PURE__ */ e(
401
+ ee,
402
+ {
403
+ firstDay: t,
404
+ frequency: i,
405
+ onFirstDayChange: l,
406
+ onFrequencyChange: s,
407
+ onSecondDayChange: r,
408
+ secondDay: o
409
+ }
410
+ )
411
+ ] })
409
412
  ] });
410
413
  }
411
- ), q = (n) => n.top_level_category_guid !== B.INCOME && n.transaction_type === V.DEBIT, Ye = (n, t) => q(n) ? n.payee?.toLowerCase().includes(t.toLowerCase()) || n.description.toLowerCase().includes(t.toLowerCase()) || n.feed_description.toLowerCase().includes(t.toLowerCase()) : !1, W = (n) => n.top_level_category_guid === B.INCOME || n.top_level_category_guid === B.TRANSFER && n.transaction_type === V.CREDIT, ze = (n, t) => W(n) ? n.payee?.toLowerCase().includes(t.toLowerCase()) || n.description?.toLowerCase().includes(t.toLowerCase()) || n.feed_description?.toLowerCase().includes(t.toLowerCase()) : !1, te = A(
414
+ ), B = (n) => n.top_level_category_guid !== q.INCOME && n.transaction_type === V.DEBIT, ze = (n, t) => B(n) ? n.payee?.toLowerCase().includes(t.toLowerCase()) || n.description.toLowerCase().includes(t.toLowerCase()) || n.feed_description.toLowerCase().includes(t.toLowerCase()) : !1, W = (n) => n.top_level_category_guid === q.INCOME || n.top_level_category_guid === q.TRANSFER && n.transaction_type === V.CREDIT, qe = (n, t) => W(n) ? n.payee?.toLowerCase().includes(t.toLowerCase()) || n.description?.toLowerCase().includes(t.toLowerCase()) || n.feed_description?.toLowerCase().includes(t.toLowerCase()) : !1, te = A(
412
415
  ({
413
416
  isIncome: n = !1,
414
417
  label: t,
415
- onAddRecurringTransaction: r = () => null
418
+ onAddRecurringTransaction: o = () => null
416
419
  }) => {
417
- const { recurring: i } = w(), { filter: s, setFilter: l, transactions: o } = Z(), { addRepeatingTransaction: a } = M(), { user: m } = De(), [y, C] = u.useState(!1), [v, b] = u.useState(""), [g, D] = u.useState(d.EveryMonth), [f, p] = u.useState(1), [k, G] = u.useState(15), _ = u.useMemo(
418
- () => o.find((x) => x.guid === v),
419
- [v, o]
420
+ const { recurring: i } = w(), { filter: s, setFilter: l, transactions: r } = Z(), { addRepeatingTransaction: a } = F(), { user: m } = De(), [h, C] = _.useState(!1), [v, b] = _.useState(""), [g, I] = _.useState(d.EveryMonth), [f, p] = _.useState(1), [k, P] = _.useState(15), u = _.useMemo(
421
+ () => r.find((x) => x.guid === v),
422
+ [v, r]
420
423
  ), ne = () => {
421
- C(!0), l(n ? { ...s, custom: W } : { ...s, custom: q });
422
- }, oe = async () => {
423
- if (!_) {
424
+ C(!0), l(n ? { ...s, custom: W } : { ...s, custom: B });
425
+ }, re = async () => {
426
+ if (!u) {
424
427
  j();
425
428
  return;
426
429
  }
427
- r();
428
- const x = de(g, Oe(_.date)), I = {
429
- account_guid: _.account_guid,
430
- amount: _.amount,
430
+ o();
431
+ const x = de(g, ke(u.date)), D = {
432
+ account_guid: u.account_guid,
433
+ amount: u.amount,
431
434
  created_by: 0,
432
435
  // User
433
- merchant_guid: _.merchant_guid,
434
- description: _.payee || _.description || _.feed_description,
435
- predicted_occurs_on: Le(x, { representation: "date" }),
436
+ merchant_guid: u.merchant_guid,
437
+ description: u.payee || u.description || u.feed_description,
438
+ predicted_occurs_on: Oe(x, { representation: "date" }),
436
439
  recurrence_day: f,
437
440
  recurrence_type: g,
438
- repeating_transaction_type: n ? E.Income : E.Bill,
441
+ repeating_transaction_type: n ? R.Income : R.Bill,
439
442
  second_recurrence_day: k,
440
- transaction_type: _.transaction_type,
443
+ transaction_type: u.transaction_type,
441
444
  user_guid: m.guid
442
445
  };
443
- await a(I, _), j();
446
+ await a(D, u), j();
444
447
  }, j = () => {
445
448
  b(""), C(!1);
446
449
  };
447
450
  return /* @__PURE__ */ c(L, { children: [
448
- /* @__PURE__ */ e($, { onClick: ne, startIcon: /* @__PURE__ */ e(pe, { size: 24 }), variant: "contained", children: t }),
451
+ /* @__PURE__ */ e($, { onClick: ne, startIcon: /* @__PURE__ */ e(ye, { size: 24 }), variant: "contained", children: t }),
449
452
  /* @__PURE__ */ e(
450
453
  O,
451
454
  {
452
455
  ariaLabelClose: i.close_drawer_aria,
453
- isOpen: y,
456
+ isOpen: h,
454
457
  onClose: () => C(!1),
455
458
  title: t,
456
459
  children: /* @__PURE__ */ e(
457
- Pe,
460
+ Ue,
458
461
  {
459
462
  description: n ? i.add_income_description : i.add_expense_description,
460
463
  onSearch: (x) => {
461
464
  l({
462
465
  ...s,
463
- custom: (I) => n ? x ? ze(I, x) : W(I) : x ? Ye(I, x) : q(I)
466
+ custom: (D) => n ? x ? qe(D, x) : W(D) : x ? ze(D, x) : B(D)
464
467
  });
465
468
  },
466
469
  onSelected: (x) => b(x)
@@ -474,18 +477,18 @@ const ee = ({
474
477
  ariaLabelClose: i.close_drawer_aria,
475
478
  isOpen: !!v,
476
479
  onClose: () => b(""),
477
- onPrimaryAction: oe,
480
+ onPrimaryAction: re,
478
481
  title: n ? i.income_details : i.expense_details,
479
- children: _ && /* @__PURE__ */ e(
480
- Ue,
482
+ children: u && /* @__PURE__ */ e(
483
+ Ye,
481
484
  {
482
485
  firstDay: f,
483
486
  frequency: g,
484
487
  onFirstDayChange: p,
485
- onFrequencyChange: D,
486
- onSecondDayChange: G,
488
+ onFrequencyChange: I,
489
+ onSecondDayChange: P,
487
490
  secondDay: k,
488
- transaction: _
491
+ transaction: u
489
492
  }
490
493
  )
491
494
  }
@@ -494,8 +497,8 @@ const ee = ({
494
497
  }
495
498
  ), Be = A(
496
499
  ({ zeroStateFor: n }) => {
497
- const { recurring: t } = w(), { onEvent: r } = F(), i = n === "income", s = i ? t.recurring_setting_zero_state_income_title : t.recurring_setting_zero_state_expenses_title, l = i ? t.recurring_setting_zero_state_income_description : t.recurring_setting_zero_state_expenses_description, o = i ? t.add_income : t.add_expense;
498
- return /* @__PURE__ */ c(h, { sx: { alignItems: "center", p: 24, pt: 48 }, children: [
500
+ const { recurring: t } = w(), { onEvent: o } = G(), i = n === "income", s = i ? t.recurring_setting_zero_state_income_title : t.recurring_setting_zero_state_expenses_title, l = i ? t.recurring_setting_zero_state_income_description : t.recurring_setting_zero_state_expenses_description, r = i ? t.add_income : t.add_expense;
501
+ return /* @__PURE__ */ c(y, { sx: { alignItems: "center", p: 24, pt: 48 }, children: [
499
502
  /* @__PURE__ */ e(he, { size: 48 }),
500
503
  /* @__PURE__ */ e(U, { sx: { my: 8, fontWeight: 600 }, variant: "body1", children: s }),
501
504
  /* @__PURE__ */ e(U, { color: "text.secondary", sx: { mb: 32 }, variant: "subtitle2", children: l }),
@@ -503,48 +506,48 @@ const ee = ({
503
506
  te,
504
507
  {
505
508
  isIncome: i,
506
- label: o,
509
+ label: r,
507
510
  onAddRecurringTransaction: () => {
508
- r(
509
- i ? R.RECURRING_TRANSACTIONS_CLICK_ADD_INCOME : R.RECURRING_ACTIVITY_CLICK_ADD_EXPENSE
511
+ o(
512
+ i ? E.RECURRING_TRANSACTIONS_CLICK_ADD_INCOME : E.RECURRING_ACTIVITY_CLICK_ADD_EXPENSE
510
513
  );
511
514
  }
512
515
  }
513
516
  )
514
517
  ] });
515
518
  }
516
- ), wt = A(({ forOverview: n = !1 }) => {
517
- const { recurring: t } = w(), { repeatingTransactions: r } = M(), { onEvent: i } = F(), s = (a) => {
518
- i(R.RECURRING_TRANSACTIONS_CLICK_INCOME, {
519
+ ), It = A(({ forOverview: n = !1 }) => {
520
+ const { recurring: t } = w(), { detailedRepeatingTransactions: o } = F(), { onEvent: i } = G(), s = (a) => {
521
+ i(E.RECURRING_TRANSACTIONS_CLICK_INCOME, {
519
522
  repeating_transaction_guid: a.guid
520
523
  });
521
524
  }, l = () => {
522
- i(R.RECURRING_TRANSACTIONS_CLICK_ADD_INCOME);
523
- }, o = r.filter(
524
- (a) => a.repeating_transaction_type === E.Income && (a.transactions.length > 0 || a.recurrence_type === d.EveryYear)
525
+ i(E.RECURRING_TRANSACTIONS_CLICK_ADD_INCOME);
526
+ }, r = o.filter(
527
+ (a) => a.repeating_transaction_type === R.Income && (a.transactions.length > 0 || a.recurrence_type === d.EveryYear)
525
528
  );
526
- return /* @__PURE__ */ e(L, { children: o.length !== 0 ? /* @__PURE__ */ c(
527
- h,
529
+ return /* @__PURE__ */ e(L, { children: r.length !== 0 ? /* @__PURE__ */ c(
530
+ y,
528
531
  {
529
532
  sx: {
530
533
  height: n ? "calc(100vh - 62px)" : "calc(100vh - 109px)",
531
534
  maxHeight: n ? "calc(100vh - 62px)" : "calc(100vh - 109px)"
532
535
  },
533
536
  children: [
534
- n && /* @__PURE__ */ e(S, { bold: !0, sx: { mb: 4, mt: 12, mx: 24 }, variant: "Small", children: t.income }),
535
- /* @__PURE__ */ e(P, { sx: { flex: 1, overflow: "auto" }, children: /* @__PURE__ */ e(K, { sx: { bgcolor: "background.paper" }, children: o.map((a, m) => /* @__PURE__ */ c(u.Fragment, { children: [
536
- /* @__PURE__ */ e(Ge, { onClick: s, repeatingTransaction: a }),
537
+ n && /* @__PURE__ */ e(S, { bold: !0, sx: { mb: 4, mt: 12, mx: 24 }, variant: "body2", children: t.income }),
538
+ /* @__PURE__ */ e(M, { sx: { flex: 1, overflow: "auto" }, children: /* @__PURE__ */ e(K, { sx: { bgcolor: "background.paper" }, children: r.map((a, m) => /* @__PURE__ */ c(_.Fragment, { children: [
539
+ /* @__PURE__ */ e(Pe, { onClick: s, repeatingTransaction: a }),
537
540
  /* @__PURE__ */ e(
538
541
  T,
539
542
  {
540
- variant: m < o.length - 1 ? "inset" : "fullWidth"
543
+ variant: m < r.length - 1 ? "inset" : "fullWidth"
541
544
  }
542
545
  )
543
546
  ] }, a.guid)) }) }),
544
- /* @__PURE__ */ c(P, { children: [
547
+ /* @__PURE__ */ c(M, { children: [
545
548
  /* @__PURE__ */ e(T, {}),
546
549
  /* @__PURE__ */ e(
547
- P,
550
+ M,
548
551
  {
549
552
  sx: {
550
553
  alignContent: "center",
@@ -571,12 +574,12 @@ const ee = ({
571
574
  });
572
575
  export {
573
576
  te as A,
574
- wt as M,
575
- Ge as R,
576
- Pe as S,
577
+ It as M,
578
+ Pe as R,
579
+ Ue as S,
577
580
  Be as a,
578
- Fe as b,
579
- Ue as c,
581
+ Ge as b,
582
+ Ye as c,
580
583
  W as d,
581
- ze as i
584
+ qe as i
582
585
  };