@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.
- package/CHANGELOG.md +178 -1
- package/dist/{Account-Bxw0_4FU.mjs → Account-CvR2-dSR.mjs} +1 -1
- package/dist/{AccountDetailsContent-CAM9y39M.mjs → AccountDetailsContent-CitErkuS.mjs} +89 -82
- package/dist/AccountDetailsHeader-BkG3MNYo.mjs +87 -0
- package/dist/{AccountFields-C9FlatNb.mjs → AccountFields-zCMqet85.mjs} +6 -6
- package/dist/{AccountListItem-JFMZROh7.mjs → AccountListItem-DHrz8Mml.mjs} +9 -9
- package/dist/{AccountStore-BgNOyMdp.mjs → AccountStore-LgfBcYMe.mjs} +112 -75
- package/dist/Accounts-Bzy1_REQ.mjs +9 -0
- package/dist/{BeatApi-DhJpgCLz.mjs → BeatApi-De2IaqH2.mjs} +1 -1
- package/dist/{BeatStore-IBnXd4YK.mjs → BeatStore-D_NYuBSz.mjs} +1 -1
- package/dist/{BudgetUtil-B2ZXyw-g.mjs → BudgetUtil-BmZXkL0C.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-B-I3kajA.mjs} +23 -21
- package/dist/CategoryStore-CA3tS1BO.mjs +186 -0
- package/dist/CategoryUtil-DUM8NuGO.mjs +78 -0
- package/dist/{ConnectDrawer-BQNs-hjk.mjs → ConnectDrawer-BkvlItWx.mjs} +11 -11
- package/dist/{ConnectionsDrawer-ByGQE7D5.mjs → ConnectionsDrawer-VmuVFHbL.mjs} +5 -5
- package/dist/{CurrencyInput-DUsQbkXb.mjs → CurrencyInput-itK0R3wV.mjs} +2 -2
- package/dist/{CurrencyText-kyC1aseI.mjs → CurrencyText-Dr0EZ7bp.mjs} +1 -1
- package/dist/{DateUtil-BcuH7ErC.mjs → DateUtil-CBdcsyuk.mjs} +3 -3
- package/dist/{DebtsStore-C9bblOgW.mjs → DebtsStore-Bq-aPy-5.mjs} +1 -1
- package/dist/{Dialog-CWW597AF.mjs → Dialog-BPTr3qHE.mjs} +2 -2
- package/dist/{Donut-oaQFlbit.mjs → Donut-Dmy3JTWd.mjs} +12 -12
- package/dist/Drawer-By9V-B5L.mjs +178 -0
- package/dist/{EmptyState-DA_lfRBv.mjs → EmptyState-DoxNUae-.mjs} +24 -22
- package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-Cglo8Mca.mjs} +3 -3
- package/dist/{Fetch-87LIQbEA.mjs → Fetch-DecPFeGU.mjs} +24 -22
- package/dist/FinstrongStore-BIrX0Xg2.mjs +451 -0
- package/dist/{GoalStore-D-aB35SY.mjs → GoalStore-1P19goZ7.mjs} +112 -152
- package/dist/{Help-B6dIcujh.mjs → Help-Ea3BlXQp.mjs} +2 -2
- package/dist/LineChart-KpPw1phO.mjs +580 -0
- package/dist/{ListItemAction-DHa3KJPs.mjs → ListItemAction-BxTkF6Tz.mjs} +10 -10
- package/dist/{ManageIncome-1s_q5W4X.mjs → ManageIncome-CaoQl609.mjs} +91 -88
- package/dist/{MerchantStore-DrFvsUyy.mjs → MerchantStore-WvZ4gnQe.mjs} +1 -1
- package/dist/MicroWidgetContainer-r6mtxRer.mjs +52 -0
- package/dist/MiniWidgetContainer-Bg02sF1Y.mjs +71 -0
- package/dist/{NetWorthStore-DCsTZpuS.mjs → NetWorthStore-rC0q7P7t.mjs} +2 -2
- package/dist/{NotificationSettings-DqrkNMod.mjs → NotificationSettings-uzM8tCoH.mjs} +236 -231
- package/dist/{NotificationStore-BxP_P2dA.mjs → NotificationStore-CDX_kqHa.mjs} +7 -15
- package/dist/{NumberFormatting-Buh7u8Oi.mjs → NumberFormatting-DjTD0t3W.mjs} +9 -9
- package/dist/{OriginalBalanceAction-CWuVvRq9.mjs → OriginalBalanceAction-C6jdS4ws.mjs} +4 -4
- package/dist/{RecurringSettings-A_rAGCTP.mjs → RecurringSettings-B4ybrS0B.mjs} +4 -4
- package/dist/{RecurringTransactions-DK8dWldr.mjs → RecurringTransactions-BqijW_8S.mjs} +49 -48
- package/dist/{RecurringTransactionsStore-C4YOD7_D.mjs → RecurringTransactionsStore-BhBUVm9a.mjs} +26 -29
- package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-krIRNwHK.mjs} +3 -3
- package/dist/{SpendingData-D5vsfYKo.mjs → SpendingData-DQ1b9uqq.mjs} +11 -13
- package/dist/SpendingLegend-CDO060GT.mjs +193 -0
- package/dist/{ToggleListItem-r0Kx56wF.mjs → ToggleListItem-ciFTiqRS.mjs} +19 -14
- package/dist/TransactionApi-CjBoLleL.mjs +86 -0
- package/dist/TransactionDetails-m5PddMQn.mjs +1380 -0
- package/dist/TransactionStore-PRlwE-TF.mjs +677 -0
- package/dist/TrendsStore-yO7qYv97.mjs +186 -0
- package/dist/{User-BQUxBeZV.mjs → User-Cnlegl1N.mjs} +2 -2
- package/dist/{ViewMoreMicroCard-SCn2wt4i.mjs → ViewMoreMicroCard-DwR0v_ll.mjs} +711 -728
- package/dist/{WidgetContainer-BHWANqT4.mjs → WidgetContainer-CoFDmQRE.mjs} +4 -4
- package/dist/accounts/components/AccountsListCompact.d.ts +10 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +4 -1
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.d.ts +2 -1
- package/dist/accounts/index.es.js +245 -235
- package/dist/accounts/stores/AccountStore.d.ts +24 -25
- package/dist/accounts/utils/Accounts.d.ts +1 -2
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/components/AddBudgets.d.ts +2 -1
- package/dist/budgets/index.es.js +611 -580
- package/dist/budgets/store/BudgetsStore.d.ts +0 -1
- package/dist/cashflow/index.es.js +187 -180
- package/dist/categories/index.es.js +2 -2
- package/dist/categories/stores/CategoryStore.d.ts +2 -5
- package/dist/categories/util/CategoryUtil.d.ts +2 -3
- package/dist/common/components/Select.d.ts +4 -2
- package/dist/common/components/charts/LineChart.d.ts +12 -2
- package/dist/common/components/charts/index.d.ts +0 -3
- package/dist/common/components/charts/linechart/CustomLegend.d.ts +3 -1
- package/dist/common/components/charts/linechart/CustomMark.d.ts +4 -0
- package/dist/common/components/charts/linechart/CustomTooltip.d.ts +6 -1
- package/dist/common/components/charts/stackedlinechart/CustomPointTooltip.d.ts +5 -2
- package/dist/common/components/drawer/Drawer.d.ts +3 -0
- package/dist/common/components/drawer/Footer.d.ts +17 -0
- package/dist/common/hooks/index.d.ts +1 -0
- package/dist/common/hooks/useWidgetLoadTimer.d.ts +6 -0
- package/dist/common/index.es.js +397 -387
- package/dist/common/stores/AppDataStore.d.ts +1 -3
- package/dist/common/stores/GlobalCopyStore.d.ts +1 -0
- package/dist/common/stores/GlobalStore.d.ts +10 -4
- package/dist/common/stores/GlobalUiStore.d.ts +2 -3
- package/dist/common/stores/UserStore.d.ts +2 -3
- package/dist/common/types/Account.d.ts +6 -9
- package/dist/common/types/Finstrong.d.ts +54 -0
- package/dist/common/types/Global.d.ts +1 -0
- package/dist/common/types/Widgets.d.ts +1 -0
- package/dist/common/types/index.d.ts +1 -1
- package/dist/common/types/localization/FinstrongCopy.d.ts +105 -2
- package/dist/common/types/localization/GoalsCopy.d.ts +1 -0
- package/dist/common/types/localization/TransactionsCopy.d.ts +1 -0
- package/dist/dashboard/index.es.js +90 -88
- package/dist/debts/index.es.js +458 -448
- package/dist/exportTransactionsToCSV-DuAaI5XA.mjs +48 -0
- package/dist/finstrong/FinstrongWidget.d.ts +1 -1
- package/dist/finstrong/api/FinstrongApi.d.ts +5 -0
- package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +3 -1
- package/dist/finstrong/components/CreditScore/CreditScoreContent.d.ts +4 -0
- package/dist/finstrong/components/CreditScore/CreditScoreHeader.d.ts +4 -0
- package/dist/finstrong/components/FinancialStrengthGraph.d.ts +7 -1
- package/dist/finstrong/components/HaveManageableDebt/DebtPaymentTabContent.d.ts +3 -0
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtComponent.d.ts +3 -0
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtProgressBar.d.ts +4 -0
- package/dist/finstrong/components/HaveManageableDebt/IncomeTabContent.d.ts +3 -0
- package/dist/finstrong/components/KeyIndicatorsBorrowTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsDrawer.d.ts +4 -1
- package/dist/finstrong/components/KeyIndicatorsSaveTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsSpendTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsTabItem.d.ts +4 -3
- package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.d.ts +10 -0
- package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +2 -2
- package/dist/finstrong/components/MaintainingEmergencySavings/EstimatedContributionCalculator.d.ts +6 -0
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsContent.d.ts +4 -0
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsSticky.d.ts +4 -0
- package/dist/finstrong/components/ProgressBar.d.ts +15 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/AvailableTabContent.d.ts +3 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnDrawerContent.d.ts +3 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnProgressBar.d.ts +4 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SpendingTabContent.d.ts +3 -0
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeComponent.d.ts +3 -0
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeProgressBar.d.ts +4 -0
- package/dist/finstrong/components/StatusChip.d.ts +5 -0
- package/dist/finstrong/components/onboarding/Onboarding.d.ts +2 -0
- package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +17 -0
- package/dist/finstrong/components/onboarding/OnboardingBirthday.d.ts +8 -0
- package/dist/finstrong/components/onboarding/OnboardingCreditScore.d.ts +8 -0
- package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +14 -0
- package/dist/finstrong/components/onboarding/OnboardingStepsHeader.d.ts +8 -0
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeDrawerComponent.d.ts +4 -0
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeStickyComponent.d.ts +4 -0
- package/dist/finstrong/components/shared/Accounts.d.ts +8 -0
- package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +24 -0
- package/dist/finstrong/components/shared/DialScoreCard.d.ts +7 -1
- package/dist/finstrong/components/shared/DoubleBarChart.d.ts +28 -0
- package/dist/finstrong/components/shared/LineGraph.d.ts +7 -0
- package/dist/finstrong/components/shared/TotalCard.d.ts +8 -0
- package/dist/finstrong/components/shared/Transactions.d.ts +11 -0
- package/dist/finstrong/constants/index.d.ts +9 -0
- package/dist/finstrong/index.es.js +3190 -1073
- package/dist/finstrong/stores/FinstrongStore.d.ts +25 -2
- package/dist/finstrong/util/finstrongUtils.d.ts +58 -1
- package/dist/goals/index.es.js +302 -291
- package/dist/goals/stores/GoalStore.d.ts +4 -17
- package/dist/help/index.es.js +13 -9
- package/dist/{hooks-D6XlXHf4.mjs → hooks-ZMp65DFz.mjs} +12 -12
- package/dist/insights/index.es.js +1 -1
- package/dist/investments/index.es.js +108 -104
- package/dist/investments/stores/HoldingStore.d.ts +0 -1
- package/dist/merchants/index.es.js +2 -2
- package/dist/microinsights/MicroCardTemplate.d.ts +16 -0
- package/dist/microinsights/beaticons/BeatIcon.d.ts +2 -9
- package/dist/microinsights/beaticons/BeatMerchantLogo.d.ts +3 -2
- package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +2 -1
- package/dist/microinsights/cards/{MicroInsightCard.d.ts → BaseCard.d.ts} +1 -8
- package/dist/microinsights/cards/{BeatCard.d.ts → InsightCard.d.ts} +2 -2
- package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +2 -5
- package/dist/microinsights/cards/ZeroStateCard.d.ts +2 -5
- package/dist/microinsights/carousel/BeatList.d.ts +10 -0
- package/dist/microinsights/carousel/CarouselControls.d.ts +1 -3
- package/dist/microinsights/carousel/CarouselHeader.d.ts +1 -2
- package/dist/microinsights/constants/App.d.ts +0 -1
- package/dist/microinsights/index.d.ts +4 -3
- package/dist/microinsights/index.es.js +101 -14
- package/dist/microinsights/interfaces.d.ts +0 -6
- package/dist/networth/index.es.js +197 -190
- package/dist/notifications/index.es.js +25 -25
- package/dist/notifications/stores/NotificationStore.d.ts +1 -3
- package/dist/recurringtransactions/index.es.js +395 -351
- package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +2 -3
- package/dist/settings/index.es.js +307 -298
- package/dist/spending/index.es.js +299 -438
- package/dist/spending/utils/SpendingData.d.ts +2 -1
- package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -0
- package/dist/transactions/components/shared/TransactionList.d.ts +1 -0
- package/dist/transactions/index.es.js +115 -112
- package/dist/transactions/stores/TransactionStore.d.ts +77 -21
- package/dist/trends/components/TrendsTable.d.ts +0 -2
- package/dist/trends/index.es.js +1025 -604
- package/dist/trends/utils/TrendsData.d.ts +1 -0
- package/dist/{useAccountDisplayName-BUAApBIb.mjs → useAccountDisplayName-B7iXTNM8.mjs} +2 -2
- package/dist/{useCombineEvents-BUDIR1ba.mjs → useCombineEvents-CRwX-qWE.mjs} +1 -1
- package/dist/{useInsightsEnabled-DBpwEq10.mjs → useInsightsEnabled-B7dxpDrX.mjs} +1 -1
- package/dist/useWidgetLoadTimer-hIOioiKx.mjs +19 -0
- package/package.json +4 -4
- package/dist/AccountDetailsHeader-JtSX6Uf9.mjs +0 -120
- package/dist/Accounts-BRf_YeTf.mjs +0 -27
- package/dist/CategoryStore-yHI0hWmK.mjs +0 -174
- package/dist/CategoryUtil-pZRIYOgN.mjs +0 -80
- package/dist/Drawer-kEE73B87.mjs +0 -113
- package/dist/FinstrongStore-F2c607dj.mjs +0 -101
- package/dist/LineChart-D4GI7nVh.mjs +0 -541
- package/dist/MicroWidgetContainer-DpeqN9n3.mjs +0 -45
- package/dist/MiniWidgetContainer-D0gfmbaF.mjs +0 -56
- package/dist/TransactionApi-B3Tksf7L.mjs +0 -86
- package/dist/TransactionDetails-oP1eSuiS.mjs +0 -1334
- package/dist/TransactionStore-ai3uII_r.mjs +0 -690
- package/dist/TrendsStore-DCYbpXPO.mjs +0 -559
- package/dist/common/components/SkeletonLoader.d.ts +0 -7
- package/dist/exportTransactionsToCSV-7bVS7KXf.mjs +0 -47
- package/dist/finstrong/utils/Finstrong.d.ts +0 -6
- package/dist/useAriaLive-B3_pRUio.mjs +0 -35
|
@@ -1,91 +1,92 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import
|
|
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
|
|
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
|
|
11
|
-
import { R as
|
|
12
|
-
import { M as
|
|
13
|
-
import { addMonths as
|
|
14
|
-
import { subMonths as
|
|
15
|
-
import { isBefore as
|
|
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
|
|
20
|
-
import { Schedule as
|
|
21
|
-
import { Text as
|
|
22
|
-
import { getWeeksInMonth as
|
|
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
|
|
25
|
-
import { DateCalendar as
|
|
26
|
-
import { LocalizationProvider as
|
|
27
|
-
import { isSameDay as
|
|
28
|
-
import
|
|
29
|
-
import { PickersDay as
|
|
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
|
|
32
|
-
import {
|
|
33
|
-
import { T as
|
|
34
|
-
import { R as
|
|
35
|
-
import { A as
|
|
36
|
-
import
|
|
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
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import { b as
|
|
45
|
-
import { c as
|
|
46
|
-
import { f as L } from "../NumberFormatting-
|
|
47
|
-
import { D as xe } from "../Drawer-
|
|
48
|
-
import { b as
|
|
49
|
-
import { f as A,
|
|
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
|
|
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
|
|
55
|
-
import { u as
|
|
56
|
-
import { M as
|
|
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(
|
|
62
|
-
|
|
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
|
-
) }),
|
|
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 } =
|
|
70
|
-
() =>
|
|
71
|
-
[
|
|
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) =>
|
|
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 !==
|
|
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 !==
|
|
80
|
-
),
|
|
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
|
-
|
|
83
|
+
rt,
|
|
83
84
|
{
|
|
84
|
-
badgeContent: s.length > 0 && /* @__PURE__ */
|
|
85
|
-
|
|
86
|
-
x && /* @__PURE__ */ e(
|
|
87
|
-
|
|
88
|
-
|
|
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
|
-
|
|
100
|
+
ot,
|
|
100
101
|
{
|
|
101
102
|
"aria-label": `
|
|
102
103
|
${x && r.paid},
|
|
103
|
-
${
|
|
104
|
-
${
|
|
105
|
-
${
|
|
104
|
+
${u && r.missed},
|
|
105
|
+
${m && r.upcoming},
|
|
106
|
+
${b && r.income}`,
|
|
106
107
|
day: t,
|
|
107
|
-
onClick: () =>
|
|
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__ */
|
|
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(
|
|
125
|
-
] }),
|
|
126
|
-
const { recurring: t } =
|
|
127
|
-
return /* @__PURE__ */
|
|
128
|
-
|
|
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:
|
|
139
|
-
/* @__PURE__ */ e(Y, { icon:
|
|
140
|
-
/* @__PURE__ */ e(Y, { icon:
|
|
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
|
-
}),
|
|
145
|
-
const t = ge(), { onEvent: n } = J(), { selectedDay: i, setDateRange: r } = I(), [
|
|
146
|
-
|
|
147
|
-
),
|
|
148
|
-
|
|
149
|
-
start: k(
|
|
150
|
-
end:
|
|
151
|
-
}), n(
|
|
152
|
-
},
|
|
153
|
-
|
|
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
|
-
|
|
162
|
+
onChange: h,
|
|
163
|
+
onMonthChange: p,
|
|
157
164
|
showDaysOutsideCurrentMonth: !0,
|
|
158
165
|
slots: {
|
|
159
|
-
day:
|
|
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:
|
|
192
|
+
minHeight: a
|
|
186
193
|
},
|
|
187
194
|
"&.MuiDateCalendar-root": {
|
|
188
|
-
minHeight:
|
|
195
|
+
minHeight: a + H
|
|
189
196
|
},
|
|
190
197
|
"& .MuiButtonBase-root, .MuiDayCalendar-weekDayLabel": {
|
|
191
|
-
height:
|
|
192
|
-
width:
|
|
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__ */
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
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
|
|
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
|
|
223
|
-
return t.expectedDate ?
|
|
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
|
|
231
|
-
return
|
|
265
|
+
case D.Missed:
|
|
266
|
+
return G(
|
|
232
267
|
n.missed_on,
|
|
233
268
|
A(t.expectedDate, E.MONTH_DAY)
|
|
234
269
|
);
|
|
235
|
-
case
|
|
236
|
-
return
|
|
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
|
-
},
|
|
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:
|
|
251
|
-
() =>
|
|
252
|
-
[t,
|
|
253
|
-
),
|
|
254
|
-
let y =
|
|
255
|
-
return x ? y =
|
|
256
|
-
/* @__PURE__ */
|
|
257
|
-
/* @__PURE__ */
|
|
258
|
-
|
|
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(
|
|
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(
|
|
268
|
-
|
|
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__ */
|
|
275
|
-
/* @__PURE__ */ e(
|
|
276
|
-
/* @__PURE__ */ e(
|
|
277
|
-
|
|
278
|
-
/* @__PURE__ */ e(
|
|
279
|
-
] }) : /* @__PURE__ */
|
|
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
|
-
|
|
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(
|
|
323
|
+
/* @__PURE__ */ e(g, { sx: { maxWidth: 250 }, variant: "caption", children: t.institutionName })
|
|
289
324
|
] }) })
|
|
290
325
|
] }),
|
|
291
|
-
/* @__PURE__ */
|
|
292
|
-
/* @__PURE__ */
|
|
293
|
-
|
|
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__ */
|
|
297
|
-
|
|
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
|
-
|
|
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(
|
|
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:
|
|
323
|
-
isOpen:
|
|
324
|
-
onClose: () =>
|
|
325
|
-
title: t.type ===
|
|
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
|
-
|
|
362
|
+
pt,
|
|
328
363
|
{
|
|
329
|
-
onDeleted: () =>
|
|
364
|
+
onDeleted: () => h(!1),
|
|
330
365
|
recurringTransaction: s
|
|
331
366
|
}
|
|
332
367
|
)
|
|
333
368
|
}
|
|
334
369
|
)
|
|
335
370
|
] });
|
|
336
|
-
},
|
|
371
|
+
}, z = T(
|
|
337
372
|
({
|
|
338
373
|
recurrences: t,
|
|
339
374
|
isMini: n = !1,
|
|
340
375
|
onResetClick: i,
|
|
341
376
|
onRecurrenceClick: r,
|
|
342
|
-
sx:
|
|
343
|
-
title:
|
|
377
|
+
sx: a = {},
|
|
378
|
+
title: c
|
|
344
379
|
}) => {
|
|
345
|
-
const { recurring:
|
|
346
|
-
return /* @__PURE__ */
|
|
347
|
-
|
|
348
|
-
|
|
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(
|
|
353
|
-
i && /* @__PURE__ */ e(
|
|
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(
|
|
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
|
-
|
|
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-${
|
|
368
|
-
/* @__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(
|
|
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((
|
|
374
|
-
|
|
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:
|
|
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-${
|
|
419
|
+
] }, `recurrence-${m}`)) })
|
|
385
420
|
] });
|
|
386
421
|
}
|
|
387
|
-
),
|
|
388
|
-
({ expected: t, isExpense: n = !0, missed: i, paid: r, title:
|
|
389
|
-
const
|
|
390
|
-
const x = [{ color:
|
|
391
|
-
return i && x.push({ color:
|
|
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__ */
|
|
394
|
-
/* @__PURE__ */
|
|
395
|
-
/* @__PURE__ */ e(
|
|
396
|
-
/* @__PURE__ */ e(
|
|
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(
|
|
399
|
-
/* @__PURE__ */
|
|
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(
|
|
402
|
-
/* @__PURE__ */ e(
|
|
403
|
-
i !== void 0 && /* @__PURE__ */
|
|
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(
|
|
406
|
-
/* @__PURE__ */ e(
|
|
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(
|
|
410
|
-
/* @__PURE__ */ e(
|
|
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
|
-
),
|
|
415
|
-
const { recurring: t } =
|
|
416
|
-
currentMonthExpenses:
|
|
417
|
-
currentMonthIncome:
|
|
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:
|
|
420
|
-
incomeTotal:
|
|
454
|
+
expenseTotal: m,
|
|
455
|
+
incomeTotal: u,
|
|
421
456
|
missedExpenseTotal: x,
|
|
422
|
-
pastRecurrences:
|
|
457
|
+
pastRecurrences: b,
|
|
423
458
|
paidExpenseTotal: y,
|
|
424
459
|
paidIncomeTotal: d,
|
|
425
|
-
selectedDay:
|
|
460
|
+
selectedDay: C,
|
|
426
461
|
selectedDayRecurrences: W,
|
|
427
|
-
setDateRange:
|
|
462
|
+
setDateRange: U,
|
|
428
463
|
upcomingExpenseTotal: te,
|
|
429
464
|
upcomingIncomeTotal: ne,
|
|
430
|
-
upcomingRecurrences:
|
|
431
|
-
} = I(), [
|
|
432
|
-
|
|
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
|
-
|
|
469
|
+
c(_.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
|
|
435
470
|
transaction_guid: R.transaction?.guid
|
|
436
471
|
});
|
|
437
472
|
}, K = (R) => {
|
|
438
|
-
|
|
473
|
+
c(_.RECURRING_TRANSACTIONS_CLICK_PAID, {
|
|
439
474
|
transaction_guid: R.transaction?.guid
|
|
440
475
|
});
|
|
441
476
|
}, P = () => {
|
|
442
|
-
const R =
|
|
443
|
-
|
|
477
|
+
const R = Fe(s.start, 1);
|
|
478
|
+
U({
|
|
444
479
|
start: k(R),
|
|
445
|
-
end:
|
|
480
|
+
end: F(R)
|
|
446
481
|
});
|
|
447
482
|
}, re = () => {
|
|
448
|
-
const R =
|
|
449
|
-
|
|
483
|
+
const R = Ue(s.start, 1);
|
|
484
|
+
U({
|
|
450
485
|
start: k(R),
|
|
451
|
-
end:
|
|
486
|
+
end: F(R)
|
|
452
487
|
});
|
|
453
488
|
};
|
|
454
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
463
|
-
/* @__PURE__ */
|
|
464
|
-
/* @__PURE__ */
|
|
465
|
-
/* @__PURE__ */ e(
|
|
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__ */
|
|
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(
|
|
511
|
+
children: /* @__PURE__ */ e(Xe, {})
|
|
477
512
|
}
|
|
478
513
|
),
|
|
479
|
-
/* @__PURE__ */ e(Se, { color: "primary", onClick: P, children: /* @__PURE__ */ e(
|
|
514
|
+
/* @__PURE__ */ e(Se, { color: "primary", onClick: P, children: /* @__PURE__ */ e(qe, {}) })
|
|
480
515
|
] })
|
|
481
516
|
] }),
|
|
482
517
|
/* @__PURE__ */ e(
|
|
483
|
-
|
|
518
|
+
Ee,
|
|
484
519
|
{
|
|
485
|
-
expected:
|
|
520
|
+
expected: m,
|
|
486
521
|
missed: x,
|
|
487
522
|
paid: y,
|
|
488
523
|
title: t.expenses,
|
|
489
|
-
total:
|
|
524
|
+
total: p.length,
|
|
490
525
|
upcoming: te
|
|
491
526
|
}
|
|
492
527
|
),
|
|
493
528
|
/* @__PURE__ */ e(
|
|
494
|
-
|
|
529
|
+
Ee,
|
|
495
530
|
{
|
|
496
|
-
expected:
|
|
531
|
+
expected: u,
|
|
497
532
|
isExpense: !1,
|
|
498
533
|
paid: d,
|
|
499
534
|
title: t.deposits,
|
|
500
|
-
total:
|
|
535
|
+
total: h.length,
|
|
501
536
|
upcoming: ne
|
|
502
537
|
}
|
|
503
538
|
),
|
|
504
539
|
i && /* @__PURE__ */ e(
|
|
505
|
-
|
|
540
|
+
z,
|
|
506
541
|
{
|
|
507
542
|
onRecurrenceClick: j,
|
|
508
|
-
recurrences:
|
|
543
|
+
recurrences: $,
|
|
509
544
|
title: t.upcoming_activity
|
|
510
545
|
}
|
|
511
546
|
)
|
|
512
547
|
] }),
|
|
513
|
-
!i && /* @__PURE__ */
|
|
514
|
-
/* @__PURE__ */
|
|
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(
|
|
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(
|
|
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
|
-
|
|
529
|
-
|
|
563
|
+
B === 0 && /* @__PURE__ */ e(
|
|
564
|
+
z,
|
|
530
565
|
{
|
|
531
566
|
onRecurrenceClick: j,
|
|
532
|
-
recurrences:
|
|
567
|
+
recurrences: $
|
|
533
568
|
}
|
|
534
569
|
),
|
|
535
|
-
|
|
536
|
-
|
|
570
|
+
B === 1 && /* @__PURE__ */ e(
|
|
571
|
+
z,
|
|
537
572
|
{
|
|
538
573
|
onRecurrenceClick: K,
|
|
539
|
-
recurrences:
|
|
574
|
+
recurrences: b
|
|
540
575
|
}
|
|
541
576
|
)
|
|
542
577
|
] })
|
|
543
578
|
] }),
|
|
544
|
-
i && /* @__PURE__ */ e(se, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */
|
|
545
|
-
/* @__PURE__ */ 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
|
-
|
|
582
|
+
z,
|
|
548
583
|
{
|
|
549
584
|
onRecurrenceClick: K,
|
|
550
|
-
recurrences: W ||
|
|
551
|
-
title:
|
|
585
|
+
recurrences: W || b,
|
|
586
|
+
title: C ? G(
|
|
552
587
|
t.day_transactions,
|
|
553
|
-
A(
|
|
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
|
-
}),
|
|
562
|
-
const { accounts: i } = he(), { recurring: r } =
|
|
563
|
-
return
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
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:
|
|
569
|
-
}),
|
|
570
|
-
}, [
|
|
571
|
-
|
|
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
|
-
|
|
617
|
+
C(!0), b(_.RECURRING_TRANSACTIONS_CLICK_SETTINGS);
|
|
580
618
|
}
|
|
581
619
|
}
|
|
582
620
|
],
|
|
583
621
|
hasDivider: y,
|
|
584
|
-
onAccountsFilterClick: () =>
|
|
622
|
+
onAccountsFilterClick: () => b(_.RECURRING_TRANSACTIONS_CLICK_FILTER),
|
|
585
623
|
onBackClick: t,
|
|
586
624
|
sx: n,
|
|
587
625
|
title: r.title,
|
|
588
626
|
children: [
|
|
589
|
-
|
|
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: () =>
|
|
637
|
+
onClose: () => C(!1),
|
|
600
638
|
shouldShowHeaderBorders: !1,
|
|
601
639
|
title: r.action_title,
|
|
602
|
-
children: /* @__PURE__ */ e(
|
|
640
|
+
children: /* @__PURE__ */ e(Ne, {})
|
|
603
641
|
}
|
|
604
642
|
)
|
|
605
643
|
]
|
|
606
644
|
}
|
|
607
645
|
) : /* @__PURE__ */ e(V, {});
|
|
608
|
-
}),
|
|
609
|
-
const { recurring: t } =
|
|
610
|
-
return /* @__PURE__ */
|
|
611
|
-
/* @__PURE__ */ e(
|
|
612
|
-
!
|
|
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
|
-
|
|
652
|
+
z,
|
|
615
653
|
{
|
|
616
654
|
isMini: !0,
|
|
617
|
-
onResetClick: i ? () =>
|
|
618
|
-
recurrences: r ||
|
|
619
|
-
sx: { width:
|
|
620
|
-
title: i ?
|
|
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
|
-
}),
|
|
665
|
+
}), vn = T(
|
|
628
666
|
({ onPrimaryCtaClick: t, sx: n }) => {
|
|
629
|
-
const { accounts: i } = he(), { recurring: r } =
|
|
630
|
-
return
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
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:
|
|
636
|
-
}),
|
|
637
|
-
}, [
|
|
638
|
-
|
|
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:
|
|
687
|
+
children: c ? /* @__PURE__ */ e(Tt, {}) : /* @__PURE__ */ e(V, {})
|
|
647
688
|
}
|
|
648
689
|
);
|
|
649
690
|
}
|
|
650
|
-
),
|
|
691
|
+
), wt = ({
|
|
651
692
|
upcomingRecurrences: t,
|
|
652
693
|
maxLogos: n = 3
|
|
653
|
-
}) => /* @__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 = (
|
|
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((
|
|
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(
|
|
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:
|
|
688
|
-
merchantGuid:
|
|
728
|
+
categoryGuid: a.categoryGuid || "",
|
|
729
|
+
merchantGuid: a.merchantGuid || "",
|
|
689
730
|
size: n
|
|
690
731
|
}
|
|
691
732
|
)
|
|
692
733
|
},
|
|
693
|
-
`${
|
|
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:
|
|
703
|
-
}) => /* @__PURE__ */
|
|
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__ */
|
|
716
|
-
!r && /* @__PURE__ */ e(
|
|
717
|
-
/* @__PURE__ */ e(
|
|
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 } =
|
|
721
|
-
return /* @__PURE__ */
|
|
722
|
-
/* @__PURE__ */ e(
|
|
723
|
-
/* @__PURE__ */
|
|
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
|
-
}),
|
|
769
|
+
}), Ln = T(
|
|
729
770
|
({ onCTAClick: t }) => {
|
|
730
|
-
const [n, i] =
|
|
731
|
-
loadRepeatingTransactions:
|
|
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:
|
|
775
|
+
missedExpenseTotal: C,
|
|
735
776
|
paidExpenseTotal: W,
|
|
736
|
-
repeatingTransactions:
|
|
777
|
+
repeatingTransactions: U,
|
|
737
778
|
setDateRange: te,
|
|
738
779
|
upcomingExpenseTotal: ne,
|
|
739
|
-
isDataLoaded:
|
|
740
|
-
} = I(), { setFilter:
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
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:
|
|
747
|
-
}), te({ start: k(/* @__PURE__ */ new Date()), end:
|
|
748
|
-
}, [
|
|
749
|
-
n && r(
|
|
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
|
|
754
|
-
const
|
|
755
|
-
{ color:
|
|
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
|
|
758
|
-
color:
|
|
759
|
-
percentage: `${
|
|
760
|
-
}),
|
|
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
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
]), P =
|
|
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 ?
|
|
813
|
+
y.length > 0 ? _.RECURRING_TRANSACTIONS_CLICK_GET_STARTED : _.RECURRING_TRANSACTIONS_CLICK_VIEW_ALL
|
|
770
814
|
), t();
|
|
771
815
|
};
|
|
772
|
-
if (!s || !n ||
|
|
773
|
-
const R = 32, oe = y.length > 0, Pe = () => oe ?
|
|
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(
|
|
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:
|
|
828
|
+
label: S.paid
|
|
785
829
|
},
|
|
786
830
|
{
|
|
787
|
-
amount:
|
|
831
|
+
amount: C,
|
|
788
832
|
bgColor: "error.main",
|
|
789
|
-
label:
|
|
833
|
+
label: S.missed
|
|
790
834
|
},
|
|
791
835
|
{
|
|
792
836
|
amount: ne,
|
|
793
837
|
bgColor: "border.light",
|
|
794
|
-
label:
|
|
838
|
+
label: S.upcoming
|
|
795
839
|
}
|
|
796
|
-
], De = !
|
|
840
|
+
], De = !U?.length;
|
|
797
841
|
return /* @__PURE__ */ e(
|
|
798
|
-
|
|
842
|
+
ft,
|
|
799
843
|
{
|
|
800
844
|
className: "mx-recurring-transaction-microwidget",
|
|
801
|
-
ctaLabel: De ? ie.get_started_cta :
|
|
845
|
+
ctaLabel: De ? ie.get_started_cta : S.primary_cta,
|
|
802
846
|
onCTAClick: re,
|
|
803
|
-
title:
|
|
804
|
-
children: De ? /* @__PURE__ */ e(_t, {}) : /* @__PURE__ */
|
|
805
|
-
/* @__PURE__ */
|
|
806
|
-
|
|
847
|
+
title: S.recurring_expenses,
|
|
848
|
+
children: De ? /* @__PURE__ */ e(_t, {}) : /* @__PURE__ */ o(X, { children: [
|
|
849
|
+
/* @__PURE__ */ o(
|
|
850
|
+
l,
|
|
807
851
|
{
|
|
808
|
-
ref:
|
|
852
|
+
ref: p,
|
|
809
853
|
sx: {
|
|
810
854
|
flexDirection: "row",
|
|
811
855
|
justifyContent: "space-between"
|
|
812
856
|
},
|
|
813
857
|
children: [
|
|
814
|
-
/* @__PURE__ */
|
|
815
|
-
|
|
858
|
+
/* @__PURE__ */ o(
|
|
859
|
+
l,
|
|
816
860
|
{
|
|
817
861
|
sx: [
|
|
818
|
-
P.length >= 10 &&
|
|
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
|
-
|
|
872
|
+
g,
|
|
829
873
|
{
|
|
830
874
|
sx: { width: "100%" },
|
|
831
|
-
variant: P.length >= 10 &&
|
|
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:
|
|
886
|
+
children: S.expected
|
|
843
887
|
}
|
|
844
888
|
)
|
|
845
889
|
]
|
|
@@ -849,10 +893,10 @@ const Q = {
|
|
|
849
893
|
]
|
|
850
894
|
}
|
|
851
895
|
),
|
|
852
|
-
/* @__PURE__ */
|
|
853
|
-
/* @__PURE__ */ e(
|
|
896
|
+
/* @__PURE__ */ o(l, { sx: { pt: 12 }, children: [
|
|
897
|
+
/* @__PURE__ */ e($e, { data: K }),
|
|
854
898
|
/* @__PURE__ */ e(
|
|
855
|
-
|
|
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:
|
|
907
|
+
children: He.map((N, ze) => /* @__PURE__ */ e(
|
|
864
908
|
St,
|
|
865
909
|
{
|
|
866
|
-
amount:
|
|
867
|
-
bgcolor:
|
|
910
|
+
amount: N.amount,
|
|
911
|
+
bgcolor: N.bgColor,
|
|
868
912
|
isLargeScreen: j,
|
|
869
|
-
isSmallScreen:
|
|
870
|
-
label:
|
|
913
|
+
isSmallScreen: M,
|
|
914
|
+
label: N.label
|
|
871
915
|
},
|
|
872
|
-
`recurrence-legend-${
|
|
916
|
+
`recurrence-legend-${ze}`
|
|
873
917
|
))
|
|
874
918
|
}
|
|
875
919
|
)
|
|
@@ -878,9 +922,9 @@ const Q = {
|
|
|
878
922
|
}
|
|
879
923
|
);
|
|
880
924
|
}
|
|
881
|
-
),
|
|
925
|
+
), An = T(
|
|
882
926
|
({ isOpen: t, onClose: n, selectedTab: i }) => {
|
|
883
|
-
const { cashflow: r } =
|
|
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(
|
|
935
|
+
children: /* @__PURE__ */ e(Ne, { defaultSelectedTab: i })
|
|
892
936
|
}
|
|
893
937
|
);
|
|
894
938
|
}
|
|
895
939
|
);
|
|
896
940
|
export {
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
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
|
};
|