@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.
- package/CHANGELOG.md +128 -1
- package/dist/{Account-Bxw0_4FU.mjs → Account-B4CDD-zq.mjs} +1 -1
- package/dist/AccountDetailsContent-adZTkM52.mjs +683 -0
- package/dist/AccountDetailsHeader-DRjFuyJT.mjs +87 -0
- package/dist/{AccountFields-C9FlatNb.mjs → AccountFields-Cl4KHoSj.mjs} +14 -12
- package/dist/AccountListItem-wgmlex-_.mjs +90 -0
- package/dist/{AccountStore-BgNOyMdp.mjs → AccountStore-HbVblv86.mjs} +19 -8
- package/dist/{Accounts-BRf_YeTf.mjs → Accounts-CRUehOiy.mjs} +1 -1
- 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-Jv8h9H9l.mjs} +33 -33
- package/dist/{CashflowStore-D9Dpuz7X.mjs → CashflowStore-CA190BPF.mjs} +18 -25
- package/dist/{Category-CevNQ03n.mjs → Category-Ccoew_sA.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-Dl006GKy.mjs} +43 -41
- package/dist/{CategoryStore-yHI0hWmK.mjs → CategoryStore-MUwRWH9e.mjs} +13 -11
- package/dist/{CategoryUtil-pZRIYOgN.mjs → CategoryUtil-DfVKKkRf.mjs} +4 -4
- package/dist/{ConnectDrawer-BQNs-hjk.mjs → ConnectDrawer-DVp54lUH.mjs} +49 -48
- package/dist/{ConnectionsDrawer-ByGQE7D5.mjs → ConnectionsDrawer-Dsc04-4Z.mjs} +3 -3
- package/dist/CurrencyInput-D1cjbdCI.mjs +85 -0
- package/dist/{CurrencyText-kyC1aseI.mjs → CurrencyText-Dr0EZ7bp.mjs} +1 -1
- package/dist/{DateUtil-BcuH7ErC.mjs → DateUtil-CDPZw_-m.mjs} +3 -3
- package/dist/{DebtsStore-C9bblOgW.mjs → DebtsStore-pL63fmdT.mjs} +3 -3
- package/dist/{Dialog-CWW597AF.mjs → Dialog-CDV0kKxj.mjs} +24 -24
- package/dist/{Donut-oaQFlbit.mjs → Donut-Dmy3JTWd.mjs} +12 -12
- package/dist/Drawer-BF40nbsH.mjs +163 -0
- package/dist/{EmptyState-DA_lfRBv.mjs → EmptyState-DoxNUae-.mjs} +24 -22
- package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-QhQK4_FU.mjs} +4 -4
- package/dist/{Fetch-87LIQbEA.mjs → Fetch-DecPFeGU.mjs} +24 -22
- package/dist/FinstrongStore-BGf36b0z.mjs +451 -0
- package/dist/{GoalStore-D-aB35SY.mjs → GoalStore-C1-w3Y1E.mjs} +7 -7
- package/dist/HeaderCell-P8w6CmfO.mjs +6 -0
- package/dist/{Help-B6dIcujh.mjs → Help-DBfsTkAi.mjs} +125 -146
- package/dist/{Help-DhcC-C05.mjs → Help-c-zHlDbv.mjs} +8 -8
- package/dist/{IconBacking-B9oC6uL2.mjs → IconBacking-DgT8DCeh.mjs} +11 -11
- package/dist/LineChart-C1PxNf7P.mjs +581 -0
- package/dist/{ListItemAction-DHa3KJPs.mjs → ListItemAction-BNCWQAN_.mjs} +10 -10
- package/dist/Loader-Ckqi9Rx6.mjs +21 -0
- package/dist/{ManageIncome-1s_q5W4X.mjs → ManageIncome-8EsStyIQ.mjs} +195 -192
- package/dist/{MerchantStore-DrFvsUyy.mjs → MerchantStore-WvZ4gnQe.mjs} +1 -1
- package/dist/MicroWidgetContainer-BGpNl5ZS.mjs +45 -0
- package/dist/MiniWidgetContainer-CKzf_Ira.mjs +56 -0
- package/dist/{NetWorthStore-DCsTZpuS.mjs → NetWorthStore-Bti6u-d9.mjs} +4 -4
- package/dist/{NotificationSettings-DqrkNMod.mjs → NotificationSettings-B74rQVYC.mjs} +276 -273
- package/dist/{NotificationStore-BxP_P2dA.mjs → NotificationStore-Ck2KdNmT.mjs} +10 -10
- package/dist/{NumberFormatting-Buh7u8Oi.mjs → NumberFormatting-DjTD0t3W.mjs} +9 -9
- package/dist/{OriginalBalanceAction-CWuVvRq9.mjs → OriginalBalanceAction-2Y_3U_mg.mjs} +10 -10
- package/dist/{RecurringSettings-A_rAGCTP.mjs → RecurringSettings-DAncu--R.mjs} +17 -17
- package/dist/{RecurringTransactions-DK8dWldr.mjs → RecurringTransactions-CxcSL1dY.mjs} +106 -105
- package/dist/{RecurringTransactionsStore-C4YOD7_D.mjs → RecurringTransactionsStore-CNFxyGB6.mjs} +80 -73
- package/dist/{ResponsiveButton-DZFp78fJ.mjs → ResponsiveButton-Cn6-R7ue.mjs} +10 -10
- package/dist/SearchBox-B7km148n.mjs +39 -0
- package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-BASMQSIp.mjs} +3 -3
- package/dist/{SingleSegmentDonut-BgbLgwHi.mjs → SingleSegmentDonut-7Uy6VEld.mjs} +6 -6
- package/dist/SkeletonLoader-BaNboJjD.mjs +38 -0
- package/dist/{SpendingData-D5vsfYKo.mjs → SpendingData-DPQ96k3x.mjs} +19 -19
- package/dist/SpendingLegend-6FqtMcBV.mjs +193 -0
- package/dist/{StatusBar-BK_uYHAB.mjs → StatusBar-CPfSXe80.mjs} +6 -6
- package/dist/{TabContentContainer-j01JYR_7.mjs → TabContentContainer-CnMXkVqr.mjs} +8 -8
- package/dist/{ToggleListItem-r0Kx56wF.mjs → ToggleListItem-ciFTiqRS.mjs} +19 -14
- package/dist/TransactionApi-CjBoLleL.mjs +86 -0
- package/dist/TransactionDetails-Bn0qY5Hw.mjs +1336 -0
- package/dist/{TransactionStore-ai3uII_r.mjs → TransactionStore-DbwAutwC.mjs} +146 -165
- package/dist/TrendsStore-_mRaFUdf.mjs +182 -0
- package/dist/{User-BQUxBeZV.mjs → User-BklmOUSd.mjs} +107 -107
- package/dist/{ViewMoreMicroCard-SCn2wt4i.mjs → ViewMoreMicroCard-DAkyNRlD.mjs} +706 -729
- package/dist/{WidgetContainer-BHWANqT4.mjs → WidgetContainer-CDh9fjpR.mjs} +36 -36
- 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 +228 -199
- package/dist/accounts/stores/AccountStore.d.ts +2 -0
- package/dist/analytics/index.es.js +27 -27
- package/dist/budgets/index.es.js +459 -462
- package/dist/cashflow/index.es.js +419 -428
- package/dist/categories/index.es.js +2 -2
- package/dist/categories/stores/CategoryStore.d.ts +1 -1
- package/dist/common/components/ErrorBoundary.d.ts +1 -1
- package/dist/common/components/Loader.d.ts +1 -2
- package/dist/common/components/Select.d.ts +4 -2
- package/dist/common/components/SkeletonLoader.d.ts +7 -0
- package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +1 -1
- 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 +5 -1
- package/dist/common/components/drawer/Drawer.d.ts +3 -0
- package/dist/common/components/drawer/Footer.d.ts +17 -0
- package/dist/common/components/index.d.ts +0 -1
- package/dist/common/hooks/index.d.ts +0 -1
- package/dist/common/hooks/useAriaLive.d.ts +1 -1
- package/dist/common/index.es.js +413 -674
- package/dist/common/stores/GlobalStore.d.ts +7 -1
- package/dist/common/stores/GlobalUiStore.d.ts +3 -2
- 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/utils/Theme.d.ts +1 -3
- package/dist/dashboard/index.es.js +21 -21
- package/dist/debts/components/DebtsChart.d.ts +1 -2
- package/dist/debts/index.es.js +673 -665
- package/dist/exportTransactionsToCSV-BgV_wTLT.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 +25 -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 +3175 -1067
- package/dist/finstrong/stores/FinstrongStore.d.ts +25 -2
- package/dist/finstrong/util/finstrongUtils.d.ts +58 -1
- package/dist/goals/index.es.js +580 -570
- package/dist/help/components/content/BottomImageContent.d.ts +1 -1
- package/dist/help/components/content/LeftImageContent.d.ts +1 -1
- package/dist/help/components/content/RightImageContent.d.ts +1 -1
- package/dist/help/components/content/TopImageContent.d.ts +1 -1
- package/dist/help/index.es.js +6 -6
- package/dist/{hooks-D6XlXHf4.mjs → hooks-C41HAxM5.mjs} +3 -3
- package/dist/insights/index.es.js +1 -1
- package/dist/investments/index.es.js +537 -536
- package/dist/merchants/index.es.js +9 -9
- 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 +3 -3
- package/dist/microinsights/index.es.js +7 -7
- package/dist/microinsights/interfaces.d.ts +0 -6
- package/dist/networth/components/NetWorthChange.d.ts +3 -1
- package/dist/networth/index.es.js +262 -254
- package/dist/notifications/index.es.js +90 -91
- package/dist/recurringtransactions/components/MicroWidgetContent.d.ts +3 -0
- package/dist/recurringtransactions/index.es.js +586 -562
- package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +1 -0
- package/dist/settings/index.es.js +371 -365
- package/dist/spending/index.es.js +267 -419
- 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 +231 -226
- package/dist/transactions/stores/TransactionStore.d.ts +1 -1
- package/dist/transactions/stores/UiStore.d.ts +0 -2
- package/dist/trends/index.es.js +988 -612
- package/dist/{useAccountDisplayName-BUAApBIb.mjs → useAccountDisplayName-CcIp09Xc.mjs} +2 -2
- package/dist/{useCombineEvents-BUDIR1ba.mjs → useCombineEvents-kNzLTWCp.mjs} +3 -3
- package/dist/{useInsightsEnabled-DBpwEq10.mjs → useInsightsEnabled-CNjP5cfR.mjs} +1 -1
- package/dist/{useScreenSize-B6JyS_Lj.mjs → useScreenSize-B5afALev.mjs} +1 -1
- package/package.json +51 -56
- package/dist/AccountDetailsContent-CAM9y39M.mjs +0 -679
- package/dist/AccountDetailsHeader-JtSX6Uf9.mjs +0 -120
- package/dist/AccountListItem-JFMZROh7.mjs +0 -90
- package/dist/CurrencyInput-DUsQbkXb.mjs +0 -85
- package/dist/Drawer-kEE73B87.mjs +0 -113
- package/dist/FinstrongStore-F2c607dj.mjs +0 -101
- package/dist/HeaderCell-DjuifqHJ.mjs +0 -6
- package/dist/LineChart-D4GI7nVh.mjs +0 -541
- package/dist/Loader-DUaFpDGv.mjs +0 -24
- package/dist/MicroWidgetContainer-DpeqN9n3.mjs +0 -45
- package/dist/MiniWidgetContainer-D0gfmbaF.mjs +0 -56
- package/dist/SearchBox-B2_zLv8-.mjs +0 -42
- package/dist/TransactionApi-B3Tksf7L.mjs +0 -86
- package/dist/TransactionDetails-oP1eSuiS.mjs +0 -1334
- package/dist/TrendsStore-DCYbpXPO.mjs +0 -559
- package/dist/accounts/components/AccountsWidgetContent.d.ts +0 -3
- package/dist/common/components/barchart/Bar.d.ts +0 -25
- package/dist/common/components/barchart/BarChart.d.ts +0 -34
- package/dist/common/components/barchart/BarColumn.d.ts +0 -37
- package/dist/common/components/barchart/Legend.d.ts +0 -8
- package/dist/common/components/barchart/Util.d.ts +0 -42
- package/dist/common/components/barchart/index.d.ts +0 -1
- package/dist/common/hooks/usePrevious.d.ts +0 -2
- package/dist/exportTransactionsToCSV-7bVS7KXf.mjs +0 -47
- package/dist/finstrong/utils/Finstrong.d.ts +0 -6
- package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +0 -7
- 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
|
|
2
|
+
import _ from "react";
|
|
3
3
|
import { observer as A } from "mobx-react-lite";
|
|
4
|
-
import
|
|
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
|
|
8
|
-
import { MerchantLogo as H, Text as S, H1 as
|
|
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
|
|
14
|
-
import { subDays as
|
|
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
|
|
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
|
|
19
|
-
import { T as X, a as
|
|
20
|
-
import { getDayOfYear as
|
|
21
|
-
import { setDayOfYear as
|
|
22
|
-
import { AdapterDateFns as
|
|
23
|
-
import { DatePicker as
|
|
24
|
-
import { LocalizationProvider as
|
|
25
|
-
import { u as w, j as
|
|
26
|
-
import { b as
|
|
27
|
-
import { D as O } from "./Drawer-
|
|
28
|
-
import { A as
|
|
29
|
-
import { f as Ee,
|
|
30
|
-
import { formatISO as
|
|
31
|
-
import { fromUnixTime as
|
|
32
|
-
import { S as
|
|
33
|
-
import { h as
|
|
34
|
-
import { b as
|
|
35
|
-
import { T as V } from "./User-
|
|
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:
|
|
40
|
+
secondDay: o,
|
|
40
41
|
onFrequencyChange: i,
|
|
41
42
|
onFirstDayChange: s,
|
|
42
43
|
onSecondDayChange: l
|
|
43
44
|
}) => {
|
|
44
|
-
const { recurring:
|
|
45
|
+
const { recurring: r } = w(), a = _.useMemo(
|
|
45
46
|
() => [
|
|
46
|
-
{ id: d.EveryWeek, label:
|
|
47
|
-
{ id: d.EveryOtherWeek, label:
|
|
48
|
-
{ id: d.TwiceAMonth, label:
|
|
49
|
-
{ id: d.EveryMonth, label:
|
|
50
|
-
{ id: d.EveryOtherMonth, label:
|
|
51
|
-
{ id: d.EveryQuarter, label:
|
|
52
|
-
{ id: d.EveryOtherQuarter, label:
|
|
53
|
-
{ id: d.EveryYear, label:
|
|
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
|
-
[
|
|
56
|
+
[r]
|
|
56
57
|
), m = [
|
|
57
|
-
{ id: 0, label:
|
|
58
|
-
{ id: 1, label:
|
|
59
|
-
{ id: 2, label:
|
|
60
|
-
{ id: 3, label:
|
|
61
|
-
{ id: 4, label:
|
|
62
|
-
{ id: 5, label:
|
|
63
|
-
{ id: 6, label:
|
|
64
|
-
],
|
|
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:
|
|
67
|
+
label: Re(p + 1)
|
|
67
68
|
}));
|
|
68
|
-
|
|
69
|
-
const C =
|
|
70
|
-
p && s(
|
|
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(
|
|
73
|
+
return /* @__PURE__ */ c(y, { gap: 24, sx: { m: 24 }, children: [
|
|
73
74
|
/* @__PURE__ */ e(
|
|
74
75
|
N,
|
|
75
76
|
{
|
|
76
|
-
label:
|
|
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:
|
|
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 ?
|
|
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 :
|
|
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:
|
|
104
|
+
label: r.second_day_of_the_month,
|
|
104
105
|
onChange: l,
|
|
105
106
|
options: v,
|
|
106
|
-
value:
|
|
107
|
+
value: o || 0
|
|
107
108
|
}
|
|
108
109
|
),
|
|
109
|
-
n === d.EveryYear && /* @__PURE__ */ e(
|
|
110
|
-
|
|
110
|
+
n === d.EveryYear && /* @__PURE__ */ e(Ae, { dateAdapter: ve, children: /* @__PURE__ */ e(
|
|
111
|
+
we,
|
|
111
112
|
{
|
|
112
113
|
disablePast: !0,
|
|
113
|
-
label:
|
|
114
|
+
label: r.next_payment_date,
|
|
114
115
|
onChange: f,
|
|
115
|
-
value:
|
|
116
|
+
value: I
|
|
116
117
|
}
|
|
117
118
|
) })
|
|
118
119
|
] });
|
|
119
|
-
},
|
|
120
|
-
const { recurring: t } = w(), { updateRepeatingTransaction:
|
|
121
|
-
await
|
|
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:
|
|
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(
|
|
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:
|
|
153
|
-
onFirstDayChange:
|
|
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
|
-
}),
|
|
163
|
+
}), Ge = A(
|
|
163
164
|
({ onDeleted: n, recurringTransaction: t }) => {
|
|
164
|
-
const { recurring:
|
|
165
|
-
|
|
166
|
-
|
|
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:
|
|
169
|
-
custom: (
|
|
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 =
|
|
173
|
-
() => a.find((
|
|
173
|
+
const f = _.useMemo(
|
|
174
|
+
() => a.find((u) => u.guid === g),
|
|
174
175
|
[g, a]
|
|
175
|
-
), p = t.repeating_transaction_type ===
|
|
176
|
+
), p = t.repeating_transaction_type === R.Income, k = async () => {
|
|
176
177
|
await l(t.guid), n();
|
|
177
|
-
},
|
|
178
|
-
b(!0), s(
|
|
178
|
+
}, P = () => {
|
|
179
|
+
b(!0), s(E.RECURRING_TRANSACTIONS_DETAILS_CLICK_DELETE);
|
|
179
180
|
};
|
|
180
|
-
return /* @__PURE__ */ c(
|
|
181
|
-
/* @__PURE__ */ c(
|
|
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:
|
|
192
|
-
/* @__PURE__ */ c(
|
|
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: `${
|
|
197
|
-
t.predicted_occurs_on,
|
|
198
|
-
|
|
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:
|
|
208
|
-
value: t.account.
|
|
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:
|
|
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(
|
|
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:
|
|
232
|
-
startIcon: /* @__PURE__ */ e(
|
|
232
|
+
onClick: P,
|
|
233
|
+
startIcon: /* @__PURE__ */ e(pe, {}),
|
|
233
234
|
sx: { mx: 24, my: 16 },
|
|
234
235
|
variant: "text",
|
|
235
|
-
children: p ?
|
|
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: "
|
|
239
|
-
/* @__PURE__ */ e(X, { height: "30dvh", onClick:
|
|
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:
|
|
244
|
+
ariaLabelClose: o.close_drawer_aria,
|
|
244
245
|
isOpen: !!g && !!f,
|
|
245
|
-
onClose: () =>
|
|
246
|
-
title:
|
|
247
|
-
children: f && /* @__PURE__ */ e(
|
|
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
|
-
|
|
252
|
+
Le,
|
|
252
253
|
{
|
|
253
254
|
copy: {
|
|
254
|
-
title: p ?
|
|
255
|
-
close_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 ?
|
|
261
|
+
children: /* @__PURE__ */ e(S, { children: p ? o.delete_income_description : o.delete_expense_description })
|
|
261
262
|
}
|
|
262
263
|
)
|
|
263
264
|
] });
|
|
264
265
|
}
|
|
265
|
-
),
|
|
266
|
+
), Pe = A(
|
|
266
267
|
({ onClick: n = () => {
|
|
267
268
|
}, repeatingTransaction: t }) => {
|
|
268
|
-
const { recurring:
|
|
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
|
-
),
|
|
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(
|
|
284
|
-
/* @__PURE__ */ c(
|
|
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(
|
|
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:
|
|
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:
|
|
296
|
+
/* @__PURE__ */ e(S, { variant: "caption", children: r })
|
|
296
297
|
] })
|
|
297
298
|
] }),
|
|
298
|
-
/* @__PURE__ */ c(
|
|
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
|
-
|
|
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:
|
|
332
|
+
ariaLabelClose: o.close_drawer_aria,
|
|
332
333
|
isOpen: i,
|
|
333
334
|
onClose: () => s(!1),
|
|
334
|
-
title: t.repeating_transaction_type ===
|
|
335
|
+
title: t.repeating_transaction_type === R.Income ? o.income_details : o.expense_details,
|
|
335
336
|
children: /* @__PURE__ */ e(
|
|
336
|
-
|
|
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
|
-
),
|
|
347
|
+
), Ue = A(
|
|
347
348
|
({
|
|
348
349
|
bgcolor: n = "background.default",
|
|
349
350
|
description: t,
|
|
350
|
-
onSearch:
|
|
351
|
+
onSearch: o,
|
|
351
352
|
onSelected: i
|
|
352
353
|
}) => {
|
|
353
|
-
const { recurring: s } = w(), { searchValue: l, setSearchValue:
|
|
354
|
-
return /* @__PURE__ */ c(
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
),
|
|
381
|
+
), Ye = A(
|
|
381
382
|
({
|
|
382
383
|
bgcolor: n = "background.default",
|
|
383
384
|
firstDay: t,
|
|
384
|
-
secondDay:
|
|
385
|
+
secondDay: o,
|
|
385
386
|
frequency: i,
|
|
386
387
|
onFrequencyChange: s,
|
|
387
388
|
onFirstDayChange: l,
|
|
388
|
-
onSecondDayChange:
|
|
389
|
+
onSecondDayChange: r,
|
|
389
390
|
transaction: a
|
|
390
391
|
}) => {
|
|
391
392
|
const { recurring: m } = w();
|
|
392
|
-
return /* @__PURE__ */ c(
|
|
393
|
-
/* @__PURE__ */ c(
|
|
394
|
-
/* @__PURE__ */ e(
|
|
395
|
-
/* @__PURE__ */ e(
|
|
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__ */
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
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
|
-
),
|
|
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:
|
|
418
|
+
onAddRecurringTransaction: o = () => null
|
|
416
419
|
}) => {
|
|
417
|
-
const { recurring: i } = w(), { filter: s, setFilter: l, transactions:
|
|
418
|
-
() =>
|
|
419
|
-
[v,
|
|
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:
|
|
422
|
-
},
|
|
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
|
-
|
|
428
|
-
const x = de(g,
|
|
429
|
-
account_guid:
|
|
430
|
-
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:
|
|
434
|
-
description:
|
|
435
|
-
predicted_occurs_on:
|
|
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 ?
|
|
441
|
+
repeating_transaction_type: n ? R.Income : R.Bill,
|
|
439
442
|
second_recurrence_day: k,
|
|
440
|
-
transaction_type:
|
|
443
|
+
transaction_type: u.transaction_type,
|
|
441
444
|
user_guid: m.guid
|
|
442
445
|
};
|
|
443
|
-
await a(
|
|
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(
|
|
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:
|
|
456
|
+
isOpen: h,
|
|
454
457
|
onClose: () => C(!1),
|
|
455
458
|
title: t,
|
|
456
459
|
children: /* @__PURE__ */ e(
|
|
457
|
-
|
|
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: (
|
|
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:
|
|
480
|
+
onPrimaryAction: re,
|
|
478
481
|
title: n ? i.income_details : i.expense_details,
|
|
479
|
-
children:
|
|
480
|
-
|
|
482
|
+
children: u && /* @__PURE__ */ e(
|
|
483
|
+
Ye,
|
|
481
484
|
{
|
|
482
485
|
firstDay: f,
|
|
483
486
|
frequency: g,
|
|
484
487
|
onFirstDayChange: p,
|
|
485
|
-
onFrequencyChange:
|
|
486
|
-
onSecondDayChange:
|
|
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:
|
|
498
|
-
return /* @__PURE__ */ c(
|
|
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:
|
|
509
|
+
label: r,
|
|
507
510
|
onAddRecurringTransaction: () => {
|
|
508
|
-
|
|
509
|
-
i ?
|
|
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
|
-
),
|
|
517
|
-
const { recurring: t } = w(), {
|
|
518
|
-
i(
|
|
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(
|
|
523
|
-
},
|
|
524
|
-
(a) => a.repeating_transaction_type ===
|
|
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:
|
|
527
|
-
|
|
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: "
|
|
535
|
-
/* @__PURE__ */ e(
|
|
536
|
-
/* @__PURE__ */ e(
|
|
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 <
|
|
543
|
+
variant: m < r.length - 1 ? "inset" : "fullWidth"
|
|
541
544
|
}
|
|
542
545
|
)
|
|
543
546
|
] }, a.guid)) }) }),
|
|
544
|
-
/* @__PURE__ */ c(
|
|
547
|
+
/* @__PURE__ */ c(M, { children: [
|
|
545
548
|
/* @__PURE__ */ e(T, {}),
|
|
546
549
|
/* @__PURE__ */ e(
|
|
547
|
-
|
|
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
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
+
It as M,
|
|
578
|
+
Pe as R,
|
|
579
|
+
Ue as S,
|
|
577
580
|
Be as a,
|
|
578
|
-
|
|
579
|
-
|
|
581
|
+
Ge as b,
|
|
582
|
+
Ye as c,
|
|
580
583
|
W as d,
|
|
581
|
-
|
|
584
|
+
qe as i
|
|
582
585
|
};
|