@mx-cartographer/experiences 8.0.0-alpha.bb3 → 8.0.0-alpha.sms1
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-BDXA6PWh.mjs} +1 -1
- package/dist/{AccountDetailsContent-CAM9y39M.mjs → AccountDetailsContent-CUztd3-b.mjs} +87 -83
- package/dist/AccountDetailsHeader-i3KFhNuo.mjs +87 -0
- package/dist/{AccountFields-C9FlatNb.mjs → AccountFields-QZspYAji.mjs} +6 -6
- package/dist/{AccountListItem-JFMZROh7.mjs → AccountListItem-DX5upmCS.mjs} +5 -5
- package/dist/{AccountStore-BgNOyMdp.mjs → AccountStore-BcnDpyLL.mjs} +19 -8
- package/dist/{Accounts-BRf_YeTf.mjs → Accounts-DXfZotRC.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-Df2nII9u.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-DqJK_rrL.mjs} +23 -21
- package/dist/{CategoryStore-yHI0hWmK.mjs → CategoryStore-DTgyAMM7.mjs} +12 -10
- package/dist/{CategoryUtil-pZRIYOgN.mjs → CategoryUtil-C5cR-nfQ.mjs} +1 -1
- package/dist/{ConnectDrawer-BQNs-hjk.mjs → ConnectDrawer-BIbTqYOH.mjs} +2 -2
- package/dist/{ConnectionsDrawer-ByGQE7D5.mjs → ConnectionsDrawer-BFfY3_zB.mjs} +3 -3
- package/dist/{CurrencyInput-DUsQbkXb.mjs → CurrencyInput-BFKcs-_K.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-BbJB0nmu.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-BEtCk82g.mjs +163 -0
- package/dist/{EmptyState-DA_lfRBv.mjs → EmptyState-DoxNUae-.mjs} +24 -22
- package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-DzTrtPzk.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-DpWY3gVb.mjs} +5 -5
- package/dist/{Help-B6dIcujh.mjs → Help-BnPXM_N2.mjs} +2 -2
- package/dist/LineChart-bc1D9xBE.mjs +581 -0
- package/dist/{ListItemAction-DHa3KJPs.mjs → ListItemAction-uobBrm_a.mjs} +10 -10
- package/dist/{ManageIncome-1s_q5W4X.mjs → ManageIncome-NpXHhO1n.mjs} +177 -174
- package/dist/{MerchantStore-DrFvsUyy.mjs → MerchantStore-WvZ4gnQe.mjs} +1 -1
- package/dist/{MicroWidgetContainer-DpeqN9n3.mjs → MicroWidgetContainer-DEiRnYVa.mjs} +1 -1
- package/dist/{MiniWidgetContainer-D0gfmbaF.mjs → MiniWidgetContainer-CmXpTylX.mjs} +1 -1
- package/dist/{NetWorthStore-DCsTZpuS.mjs → NetWorthStore-lsuhEpn6.mjs} +2 -2
- package/dist/{NotificationSettings-DqrkNMod.mjs → NotificationSettings-CNmJWVeI.mjs} +241 -238
- 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-DK8_LkPz.mjs} +4 -4
- package/dist/{RecurringSettings-A_rAGCTP.mjs → RecurringSettings-CqZh1SQa.mjs} +17 -17
- package/dist/{RecurringTransactions-DK8dWldr.mjs → RecurringTransactions-BKcYmpv3.mjs} +46 -45
- package/dist/{RecurringTransactionsStore-C4YOD7_D.mjs → RecurringTransactionsStore-Ni5tSQIO.mjs} +80 -73
- package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-krIRNwHK.mjs} +3 -3
- package/dist/SkeletonLoader-BaNboJjD.mjs +38 -0
- package/dist/{SpendingData-D5vsfYKo.mjs → SpendingData-BuJ03S9d.mjs} +16 -16
- package/dist/SpendingLegend-CjX-hX2O.mjs +193 -0
- package/dist/{ToggleListItem-r0Kx56wF.mjs → ToggleListItem-ciFTiqRS.mjs} +19 -14
- package/dist/TransactionApi-CjBoLleL.mjs +86 -0
- package/dist/TransactionDetails-5M2vfr59.mjs +1379 -0
- package/dist/{TransactionStore-ai3uII_r.mjs → TransactionStore-D-Q3BU9Z.mjs} +119 -121
- package/dist/TrendsStore-BW9FGQeE.mjs +182 -0
- package/dist/{User-BQUxBeZV.mjs → User-wXzDI4M8.mjs} +2 -2
- package/dist/{ViewMoreMicroCard-SCn2wt4i.mjs → ViewMoreMicroCard-C0832BMe.mjs} +702 -723
- package/dist/{WidgetContainer-BHWANqT4.mjs → WidgetContainer-BhQ1Kx2z.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 +229 -222
- package/dist/accounts/stores/AccountStore.d.ts +2 -0
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/index.es.js +380 -382
- package/dist/cashflow/index.es.js +405 -413
- 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/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/drawer/Drawer.d.ts +3 -0
- package/dist/common/components/drawer/Footer.d.ts +17 -0
- package/dist/common/hooks/index.d.ts +0 -1
- package/dist/common/hooks/useAriaLive.d.ts +1 -1
- package/dist/common/index.es.js +320 -321
- package/dist/common/stores/GlobalStore.d.ts +7 -1
- 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/dashboard/index.es.js +2 -2
- package/dist/debts/index.es.js +506 -498
- package/dist/exportTransactionsToCSV-Cz2t0lmA.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 +3171 -1063
- package/dist/finstrong/stores/FinstrongStore.d.ts +25 -2
- package/dist/finstrong/util/finstrongUtils.d.ts +58 -1
- package/dist/goals/index.es.js +566 -562
- package/dist/help/index.es.js +3 -3
- package/dist/{hooks-D6XlXHf4.mjs → hooks-C41HAxM5.mjs} +3 -3
- package/dist/insights/index.es.js +1 -1
- package/dist/investments/index.es.js +437 -435
- package/dist/merchants/index.es.js +2 -2
- 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/index.es.js +188 -186
- package/dist/notifications/index.es.js +95 -96
- package/dist/recurringtransactions/components/MicroWidgetContent.d.ts +3 -0
- package/dist/recurringtransactions/index.es.js +584 -560
- package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +1 -0
- package/dist/settings/index.es.js +286 -280
- package/dist/spending/index.es.js +269 -421
- 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 +226 -220
- package/dist/transactions/stores/TransactionStore.d.ts +1 -1
- package/dist/transactions/stores/UiStore.d.ts +0 -2
- package/dist/trends/index.es.js +963 -586
- package/dist/{useAccountDisplayName-BUAApBIb.mjs → useAccountDisplayName-CFNF8766.mjs} +2 -2
- package/dist/{useCombineEvents-BUDIR1ba.mjs → useCombineEvents-CRwX-qWE.mjs} +1 -1
- package/dist/{useInsightsEnabled-DBpwEq10.mjs → useInsightsEnabled-CNjP5cfR.mjs} +1 -1
- package/package.json +7 -7
- package/dist/AccountDetailsHeader-JtSX6Uf9.mjs +0 -120
- package/dist/Drawer-kEE73B87.mjs +0 -113
- package/dist/FinstrongStore-F2c607dj.mjs +0 -101
- package/dist/LineChart-D4GI7nVh.mjs +0 -541
- package/dist/TransactionApi-B3Tksf7L.mjs +0 -86
- package/dist/TransactionDetails-oP1eSuiS.mjs +0 -1334
- package/dist/TrendsStore-DCYbpXPO.mjs +0 -559
- 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/useAriaLive-B3_pRUio.mjs +0 -35
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
import { jsxs as o, Fragment as
|
|
2
|
-
import f, { useState as
|
|
1
|
+
import { jsxs as o, Fragment as U, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import f, { useState as J } from "react";
|
|
3
3
|
import { observer as T } from "mobx-react-lite";
|
|
4
|
-
import { addMonths as
|
|
5
|
-
import { startOfToday as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
4
|
+
import { addMonths as Pe } from "date-fns/addMonths";
|
|
5
|
+
import { startOfToday as W } from "date-fns/startOfToday";
|
|
6
|
+
import D from "@mui/material/Box";
|
|
7
|
+
import v from "@mui/material/Divider";
|
|
8
8
|
import s from "@mui/material/Stack";
|
|
9
|
-
import
|
|
10
|
-
import { Text as
|
|
11
|
-
import { G as
|
|
12
|
-
import { C as L } from "../CurrencyText-
|
|
13
|
-
import { u as
|
|
14
|
-
import { L as
|
|
15
|
-
import { I as
|
|
16
|
-
import { C as
|
|
9
|
+
import se from "@mui/material/styles/useTheme";
|
|
10
|
+
import { Text as h, P as N, Icon as j, InstitutionLogo as xe, H1 as de, H2 as qe } from "@mxenabled/mxui";
|
|
11
|
+
import { G as Xe, v as me, u as k, q as ce, d as Le, b as q, j as P, g as ke, n as Ye, a as Qe, h as Ne, p as Ve } from "../hooks-C41HAxM5.mjs";
|
|
12
|
+
import { C as L } from "../CurrencyText-Dr0EZ7bp.mjs";
|
|
13
|
+
import { u as ue } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
14
|
+
import { L as te } from "../Loader-DUaFpDGv.mjs";
|
|
15
|
+
import { I as he } from "../CashflowStore-D9Dpuz7X.mjs";
|
|
16
|
+
import { C as zn } from "../CashflowStore-D9Dpuz7X.mjs";
|
|
17
17
|
import { b as M } from "../Localization-2MODESHW.mjs";
|
|
18
|
-
import { M as Ke } from "../MiniWidgetContainer-
|
|
19
|
-
import { E as Je } from "../EmptyState-
|
|
20
|
-
import { R as Ze } from "../RecurringSettings-
|
|
18
|
+
import { M as Ke } from "../MiniWidgetContainer-CmXpTylX.mjs";
|
|
19
|
+
import { E as Je } from "../EmptyState-DoxNUae-.mjs";
|
|
20
|
+
import { R as Ze } from "../RecurringSettings-CqZh1SQa.mjs";
|
|
21
21
|
import et from "@mui/material/Tabs";
|
|
22
|
-
import
|
|
23
|
-
import { getUnixTime as
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import { A as tt } from "../AccountListItem-
|
|
27
|
-
import { f as
|
|
22
|
+
import ye from "@mui/material/Tab";
|
|
23
|
+
import { getUnixTime as B } from "date-fns/getUnixTime";
|
|
24
|
+
import ee from "@mui/material/List";
|
|
25
|
+
import ne from "@mui/material/ListItem";
|
|
26
|
+
import { A as tt } from "../AccountListItem-DX5upmCS.mjs";
|
|
27
|
+
import { f as X, a as Y } from "../Dialog-BPTr3qHE.mjs";
|
|
28
28
|
import nt from "@mui/material/ListSubheader";
|
|
29
|
-
import { f as
|
|
30
|
-
import { isAfter as
|
|
31
|
-
import { isBefore as
|
|
32
|
-
import { isToday as
|
|
33
|
-
import { addDays as
|
|
29
|
+
import { f as Z } from "../NumberFormatting-DjTD0t3W.mjs";
|
|
30
|
+
import { isAfter as Oe } from "date-fns/isAfter";
|
|
31
|
+
import { isBefore as He } from "date-fns/isBefore";
|
|
32
|
+
import { isToday as Fe } from "date-fns/isToday";
|
|
33
|
+
import { addDays as Ce } from "date-fns/addDays";
|
|
34
34
|
import { alpha as ot, keyframes as at } from "@mui/material/styles";
|
|
35
35
|
import { DataGridPro as it } from "@mui/x-data-grid-pro";
|
|
36
|
-
import { T as
|
|
36
|
+
import { T as Se } from "../TabContentContainer-j01JYR_7.mjs";
|
|
37
37
|
import G from "@mui/material/Button";
|
|
38
|
-
import { M as rt, S as st, i as ct, d as
|
|
39
|
-
import { D as
|
|
40
|
-
import {
|
|
38
|
+
import { M as rt, S as st, i as ct, d as we, c as lt } from "../ManageIncome-NpXHhO1n.mjs";
|
|
39
|
+
import { D as We } from "../Drawer-BEtCk82g.mjs";
|
|
40
|
+
import { subDays as $e } from "date-fns/subDays";
|
|
41
|
+
import { endOfToday as dt } from "date-fns/endOfToday";
|
|
42
|
+
import { W as mt, A as _e } from "../WidgetContainer-BhQ1Kx2z.mjs";
|
|
43
|
+
import { formatISO as ut } from "date-fns/formatISO";
|
|
41
44
|
import { fromUnixTime as Ie } from "date-fns/fromUnixTime";
|
|
42
|
-
import { startOfMonth as
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
import { F as bt, A as B } from "../Fetch-87LIQbEA.mjs";
|
|
50
|
-
const V = () => {
|
|
51
|
-
if (!f.useContext(Qe))
|
|
45
|
+
import { startOfMonth as ht } from "date-fns/startOfMonth";
|
|
46
|
+
import { S as pt, c as ft } from "../TransactionDetails-5M2vfr59.mjs";
|
|
47
|
+
import { F as gt, R as De, e as ve } from "../RecurringTransactions-BKcYmpv3.mjs";
|
|
48
|
+
import { h as bt } from "../DateUtil-CBdcsyuk.mjs";
|
|
49
|
+
import { F as xt, A as z } from "../Fetch-DecPFeGU.mjs";
|
|
50
|
+
const Q = () => {
|
|
51
|
+
if (!f.useContext(Xe))
|
|
52
52
|
throw new Error("useCashflowUiStore() must be used within the GlobalDataContext");
|
|
53
|
-
return
|
|
54
|
-
},
|
|
55
|
-
const { cashflow: n } =
|
|
56
|
-
return /* @__PURE__ */ o(
|
|
53
|
+
return me().uiStore;
|
|
54
|
+
}, yt = ({ remaining: a }) => {
|
|
55
|
+
const { cashflow: n } = k();
|
|
56
|
+
return /* @__PURE__ */ o(U, { children: [
|
|
57
57
|
/* @__PURE__ */ e(
|
|
58
|
-
|
|
58
|
+
D,
|
|
59
59
|
{
|
|
60
60
|
sx: {
|
|
61
61
|
borderRadius: "1px",
|
|
@@ -65,38 +65,38 @@ const V = () => {
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
),
|
|
68
|
-
/* @__PURE__ */ e(
|
|
68
|
+
/* @__PURE__ */ e(h, { bold: !0, sx: { flexGrow: 1, fontSize: 12 }, children: n.remaining_cash }),
|
|
69
69
|
/* @__PURE__ */ e(L, { amount: a, bold: !0, sx: { fontSize: 12 } })
|
|
70
70
|
] });
|
|
71
|
-
},
|
|
72
|
-
const a =
|
|
71
|
+
}, pe = T(yt), Ct = () => {
|
|
72
|
+
const a = se(), { availableWidth: n } = ce(), { isMobile: t } = ue(), { visibleCashAccounts: i, visibleCashBalance: g } = Le(), { selectedAccounts: x, selectedAccountGuids: u, setSelectedAccounts: c } = q(), { cashflow: m } = k(), {
|
|
73
73
|
daysUntilNextIncome: r,
|
|
74
|
-
expensesTilNextIncome:
|
|
75
|
-
selectedCashAccounts:
|
|
74
|
+
expensesTilNextIncome: l,
|
|
75
|
+
selectedCashAccounts: d,
|
|
76
76
|
setNextIncome: b,
|
|
77
77
|
setSelectedCashAccounts: C,
|
|
78
|
-
setUpcomingExpenses:
|
|
79
|
-
} =
|
|
78
|
+
setUpcomingExpenses: w
|
|
79
|
+
} = Q(), { isDataLoaded: O, nextIncomeRecurrence: A, upcomingExpenses: H } = P();
|
|
80
80
|
f.useEffect(() => {
|
|
81
|
-
|
|
81
|
+
c(i);
|
|
82
82
|
}, [i]), f.useEffect(() => {
|
|
83
83
|
C(
|
|
84
|
-
i.filter((
|
|
84
|
+
i.filter((I) => u.includes(I.guid))
|
|
85
85
|
);
|
|
86
86
|
}, [i, x]), f.useEffect(() => {
|
|
87
|
-
|
|
88
|
-
}, [
|
|
89
|
-
const
|
|
90
|
-
() => i.filter((
|
|
91
|
-
[
|
|
92
|
-
),
|
|
93
|
-
() =>
|
|
94
|
-
[
|
|
95
|
-
),
|
|
96
|
-
() =>
|
|
97
|
-
[
|
|
87
|
+
A && b(A), w(H);
|
|
88
|
+
}, [A, H]);
|
|
89
|
+
const p = f.useMemo(
|
|
90
|
+
() => i.filter((I) => u.includes(I.guid)).reduce((I, $) => I + ($?.balance || 0), 0),
|
|
91
|
+
[u, H]
|
|
92
|
+
), _ = f.useMemo(
|
|
93
|
+
() => l.filter((I) => u.includes(I.accountGuid || "")).reduce((I, $) => I + $.amount, 0),
|
|
94
|
+
[u, l]
|
|
95
|
+
), R = f.useMemo(
|
|
96
|
+
() => p - _,
|
|
97
|
+
[p, _]
|
|
98
98
|
);
|
|
99
|
-
return
|
|
99
|
+
return O ? /* @__PURE__ */ e(D, { className: "mx-cashflow", pl: 16, pr: 16, pt: 16, children: n > 710 ? /* @__PURE__ */ o(
|
|
100
100
|
s,
|
|
101
101
|
{
|
|
102
102
|
border: `1px solid ${a.palette.border.light}`,
|
|
@@ -106,45 +106,45 @@ const V = () => {
|
|
|
106
106
|
px: 24,
|
|
107
107
|
children: [
|
|
108
108
|
/* @__PURE__ */ o(s, { pb: 14, pt: 12, children: [
|
|
109
|
-
/* @__PURE__ */ e(L, { amount:
|
|
109
|
+
/* @__PURE__ */ e(L, { amount: p, variant: "H2" }),
|
|
110
110
|
/* @__PURE__ */ e(N, { variant: "XSmall", whiteSpace: "nowrap", children: M(
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
m.total_cash_accounts,
|
|
112
|
+
d.length
|
|
113
113
|
) })
|
|
114
114
|
] }),
|
|
115
115
|
/* @__PURE__ */ e(s, { pt: 18, children: /* @__PURE__ */ e(j, { name: "remove" }) }),
|
|
116
116
|
/* @__PURE__ */ o(s, { pb: 14, pt: 12, children: [
|
|
117
|
-
/* @__PURE__ */ e(L, { amount:
|
|
118
|
-
/* @__PURE__ */ e(N, { variant: "XSmall", whiteSpace: "nowrap", children: M(
|
|
117
|
+
/* @__PURE__ */ e(L, { amount: _, variant: "H2" }),
|
|
118
|
+
/* @__PURE__ */ e(N, { variant: "XSmall", whiteSpace: "nowrap", children: M(m.expenses_due, l.length) })
|
|
119
119
|
] }),
|
|
120
120
|
/* @__PURE__ */ e(s, { pt: 18, children: /* @__PURE__ */ e(j, { name: "equal" }) }),
|
|
121
121
|
/* @__PURE__ */ o(s, { pb: 14, pr: 24, pt: 12, children: [
|
|
122
|
-
/* @__PURE__ */ e(L, { amount:
|
|
122
|
+
/* @__PURE__ */ e(L, { amount: R, variant: "H2" }),
|
|
123
123
|
/* @__PURE__ */ o(s, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
124
|
-
/* @__PURE__ */ e(N, { variant: "XSmall", whiteSpace: "nowrap", children:
|
|
125
|
-
/* @__PURE__ */ e(
|
|
124
|
+
/* @__PURE__ */ e(N, { variant: "XSmall", whiteSpace: "nowrap", children: m.available_to_spend }),
|
|
125
|
+
/* @__PURE__ */ e(he, { body: m.tooltip_body, title: m.tooltip_title })
|
|
126
126
|
] })
|
|
127
127
|
] }),
|
|
128
|
-
/* @__PURE__ */ e(s, { borderLeft: `1px solid ${a.palette.border.light}`, pb: 12, pl: 24, pt: 12, children: /* @__PURE__ */ o(
|
|
129
|
-
/* @__PURE__ */ e(
|
|
130
|
-
/* @__PURE__ */ e(N, { variant: "XSmall", whiteSpace: "nowrap", children:
|
|
128
|
+
/* @__PURE__ */ e(s, { borderLeft: `1px solid ${a.palette.border.light}`, pb: 12, pl: 24, pt: 12, children: /* @__PURE__ */ o(U, { children: [
|
|
129
|
+
/* @__PURE__ */ e(h, { variant: "H2", children: M(m.days, r) }),
|
|
130
|
+
/* @__PURE__ */ e(N, { variant: "XSmall", whiteSpace: "nowrap", children: m.next_paycheck })
|
|
131
131
|
] }) })
|
|
132
132
|
]
|
|
133
133
|
}
|
|
134
134
|
) : /* @__PURE__ */ o(s, { border: `1px solid ${a.palette.border.light}`, borderRadius: 1, children: [
|
|
135
135
|
/* @__PURE__ */ o(s, { direction: "row", justifyContent: "space-between", p: 16, children: [
|
|
136
|
-
/* @__PURE__ */ e(
|
|
137
|
-
|
|
138
|
-
|
|
136
|
+
/* @__PURE__ */ e(h, { variant: "Small", children: M(
|
|
137
|
+
m.total_cash_accounts,
|
|
138
|
+
d.length
|
|
139
139
|
) }),
|
|
140
140
|
/* @__PURE__ */ e(L, { amount: g, bold: !0, variant: "XSmall" })
|
|
141
141
|
] }),
|
|
142
|
-
/* @__PURE__ */ e(
|
|
142
|
+
/* @__PURE__ */ e(v, {}),
|
|
143
143
|
/* @__PURE__ */ o(s, { direction: "row", justifyContent: "space-between", p: 16, children: [
|
|
144
|
-
/* @__PURE__ */ e(
|
|
145
|
-
/* @__PURE__ */ e(L, { amount:
|
|
144
|
+
/* @__PURE__ */ e(h, { variant: "Small", children: M(m.expenses_due, l.length) }),
|
|
145
|
+
/* @__PURE__ */ e(L, { amount: _, bold: !0, symbol: "-", variant: "XSmall" })
|
|
146
146
|
] }),
|
|
147
|
-
/* @__PURE__ */ e(
|
|
147
|
+
/* @__PURE__ */ e(v, {}),
|
|
148
148
|
/* @__PURE__ */ e(
|
|
149
149
|
s,
|
|
150
150
|
{
|
|
@@ -156,37 +156,37 @@ const V = () => {
|
|
|
156
156
|
justifyContent: "space-between",
|
|
157
157
|
px: 16,
|
|
158
158
|
sx: { borderBottomLeftRadius: 4, borderBottomRightRadius: 4 },
|
|
159
|
-
children: /* @__PURE__ */ e(
|
|
159
|
+
children: /* @__PURE__ */ e(pe, { remaining: R })
|
|
160
160
|
}
|
|
161
161
|
),
|
|
162
|
-
/* @__PURE__ */ e(
|
|
162
|
+
/* @__PURE__ */ e(v, {}),
|
|
163
163
|
/* @__PURE__ */ o(s, { direction: "row", justifyContent: "space-between", p: 16, children: [
|
|
164
|
-
/* @__PURE__ */ e(
|
|
165
|
-
/* @__PURE__ */ e(
|
|
164
|
+
/* @__PURE__ */ e(h, { variant: "Small", children: m.next_paycheck }),
|
|
165
|
+
/* @__PURE__ */ e(h, { bold: !0, variant: "XSmall", children: M(m.days, r) })
|
|
166
166
|
] })
|
|
167
|
-
] }) }) : /* @__PURE__ */ e(
|
|
168
|
-
},
|
|
167
|
+
] }) }) : /* @__PURE__ */ e(te, { height: t ? 210 : 120 });
|
|
168
|
+
}, St = T(Ct), wt = ({
|
|
169
169
|
onPrimaryCtaClick: a,
|
|
170
170
|
onSecondaryCtaClick: n,
|
|
171
171
|
sx: t = {}
|
|
172
172
|
}) => {
|
|
173
|
-
const { cashflow: i } =
|
|
173
|
+
const { cashflow: i } = k(), { isInitialized: g } = q(), { loadRepeatingTransactionData: x, income: u, isDataLoaded: c, setDateRange: m } = P();
|
|
174
174
|
f.useEffect(() => {
|
|
175
|
-
|
|
176
|
-
}, [
|
|
177
|
-
const
|
|
175
|
+
m({ start: W(), end: Pe(W(), 1) }), c || x().finally();
|
|
176
|
+
}, []);
|
|
177
|
+
const r = c && !u.length;
|
|
178
178
|
return g ? /* @__PURE__ */ o(
|
|
179
179
|
Ke,
|
|
180
180
|
{
|
|
181
181
|
className: "mx-exp-cashflow-miniwidget",
|
|
182
182
|
onPrimaryCtaClick: a,
|
|
183
183
|
primaryCtaLabel: i.primary_cta,
|
|
184
|
-
subTitle:
|
|
185
|
-
sx: t,
|
|
184
|
+
subTitle: r || !c ? void 0 : i.sub_title,
|
|
185
|
+
sx: { height: "100%", ...t },
|
|
186
186
|
title: i.title,
|
|
187
187
|
children: [
|
|
188
|
-
!c && /* @__PURE__ */ e(
|
|
189
|
-
c && (
|
|
188
|
+
!c && /* @__PURE__ */ e(te, {}),
|
|
189
|
+
c && (r ? /* @__PURE__ */ e(
|
|
190
190
|
Je,
|
|
191
191
|
{
|
|
192
192
|
header: i.create,
|
|
@@ -196,12 +196,12 @@ const V = () => {
|
|
|
196
196
|
primaryButtonStartIcon: "add",
|
|
197
197
|
subText: i.create_description
|
|
198
198
|
}
|
|
199
|
-
) : /* @__PURE__ */ e(
|
|
199
|
+
) : /* @__PURE__ */ e(St, {}))
|
|
200
200
|
]
|
|
201
201
|
}
|
|
202
|
-
) : /* @__PURE__ */ e(
|
|
203
|
-
}, Fn = T(
|
|
204
|
-
|
|
202
|
+
) : /* @__PURE__ */ e(te, {});
|
|
203
|
+
}, Fn = T(wt), _t = ({ remaining: a }) => /* @__PURE__ */ e(
|
|
204
|
+
ne,
|
|
205
205
|
{
|
|
206
206
|
sx: {
|
|
207
207
|
alignItems: "center",
|
|
@@ -213,17 +213,17 @@ const V = () => {
|
|
|
213
213
|
borderBottomRightRadius: "3px",
|
|
214
214
|
minHeight: "auto"
|
|
215
215
|
},
|
|
216
|
-
children: /* @__PURE__ */ e(
|
|
216
|
+
children: /* @__PURE__ */ e(pe, { remaining: a })
|
|
217
217
|
}
|
|
218
218
|
);
|
|
219
|
-
var
|
|
220
|
-
const
|
|
221
|
-
/* @__PURE__ */ o(
|
|
219
|
+
var oe = /* @__PURE__ */ ((a) => (a.EXPENSE = "expense", a.INCOME = "income", a))(oe || {});
|
|
220
|
+
const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
|
|
221
|
+
/* @__PURE__ */ o(ne, { sx: { display: "flex", alignItems: "center", gap: 16, px: 24, py: 12 }, children: [
|
|
222
222
|
/* @__PURE__ */ o(s, { alignItems: "center", height: 32, width: 32, children: [
|
|
223
|
-
/* @__PURE__ */ e(
|
|
224
|
-
/* @__PURE__ */ e(
|
|
223
|
+
/* @__PURE__ */ e(h, { bold: !0, sx: { fontSize: 11 }, children: X(a.expectedDate, Y.MONTH) }),
|
|
224
|
+
/* @__PURE__ */ e(h, { bold: !0, sx: { fontSize: 11 }, children: X(a.expectedDate, Y.DAY) })
|
|
225
225
|
] }),
|
|
226
|
-
/* @__PURE__ */ e(
|
|
226
|
+
/* @__PURE__ */ e(h, { sx: { flexGrow: 1, fontSize: 13 }, children: a.name }),
|
|
227
227
|
/* @__PURE__ */ e(
|
|
228
228
|
L,
|
|
229
229
|
{
|
|
@@ -233,10 +233,10 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
233
233
|
}
|
|
234
234
|
)
|
|
235
235
|
] }),
|
|
236
|
-
/* @__PURE__ */ e(
|
|
237
|
-
] }),
|
|
238
|
-
const { cashflow: t } =
|
|
239
|
-
return /* @__PURE__ */ o(
|
|
236
|
+
/* @__PURE__ */ e(v, {})
|
|
237
|
+
] }), Ae = T(It), Dt = ({ total: a, type: n }) => {
|
|
238
|
+
const { cashflow: t } = k();
|
|
239
|
+
return /* @__PURE__ */ o(U, { children: [
|
|
240
240
|
/* @__PURE__ */ o(
|
|
241
241
|
nt,
|
|
242
242
|
{
|
|
@@ -250,40 +250,40 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
250
250
|
px: 24
|
|
251
251
|
},
|
|
252
252
|
children: [
|
|
253
|
-
/* @__PURE__ */ e(
|
|
254
|
-
/* @__PURE__ */ o(
|
|
255
|
-
n ===
|
|
256
|
-
|
|
253
|
+
/* @__PURE__ */ e(h, { bold: !0, sx: { fontSize: 12 }, children: n === oe.EXPENSE ? t.expenses : t.income }),
|
|
254
|
+
/* @__PURE__ */ o(h, { bold: !0, sx: { fontSize: 13 }, children: [
|
|
255
|
+
n === oe.EXPENSE ? "-" : "+",
|
|
256
|
+
Z(a, "0,0.00")
|
|
257
257
|
] })
|
|
258
258
|
]
|
|
259
259
|
}
|
|
260
260
|
),
|
|
261
|
-
/* @__PURE__ */ e(
|
|
261
|
+
/* @__PURE__ */ e(v, {})
|
|
262
262
|
] });
|
|
263
|
-
},
|
|
264
|
-
const { availableWidth: a } =
|
|
263
|
+
}, Ee = T(Dt), re = (a, n) => (t) => t.accountGuid === a.guid && (Fe(t.expectedDate) || Oe(t.expectedDate, n.start)) && He(t.expectedDate, n.end), vt = () => {
|
|
264
|
+
const { availableWidth: a } = ce(), { cashflow: n } = k(), { upcomingExpenses: t, upcomingIncome: i } = P(), { dateRange: g, selectedCashAccounts: x } = Q();
|
|
265
265
|
return /* @__PURE__ */ o(s, { children: [
|
|
266
266
|
/* @__PURE__ */ o(s, { direction: a < 400 ? "column" : "row", justifyContent: "space-between", children: [
|
|
267
|
-
/* @__PURE__ */ e(
|
|
268
|
-
/* @__PURE__ */ o(
|
|
269
|
-
|
|
267
|
+
/* @__PURE__ */ e(h, { bold: !0, sx: { fontSize: 15, mb: 12, whiteSpace: "normal" }, children: n.accounts_breakdown }),
|
|
268
|
+
/* @__PURE__ */ o(h, { bold: !0, sx: { fontSize: 15, mb: 12, whiteSpace: "normal" }, children: [
|
|
269
|
+
X(g.start, Y.FULL_MONTH_DAY),
|
|
270
270
|
" -",
|
|
271
271
|
" ",
|
|
272
|
-
|
|
272
|
+
X(g.end, Y.FULL_MONTH_DAY)
|
|
273
273
|
] })
|
|
274
274
|
] }),
|
|
275
|
-
/* @__PURE__ */ e(s, { children: x.map((
|
|
276
|
-
const
|
|
277
|
-
|
|
278
|
-
), r =
|
|
279
|
-
(
|
|
275
|
+
/* @__PURE__ */ e(s, { children: x.map((u) => {
|
|
276
|
+
const c = i.filter(re(u, g)).sort((d, b) => B(d.expectedDate) - B(b.expectedDate)), m = t.filter(
|
|
277
|
+
re(u, g)
|
|
278
|
+
), r = c.reduce(
|
|
279
|
+
(d, b) => d + b.amount,
|
|
280
280
|
0
|
|
281
|
-
),
|
|
282
|
-
(
|
|
281
|
+
), l = m.reduce(
|
|
282
|
+
(d, b) => d + b.amount,
|
|
283
283
|
0
|
|
284
284
|
);
|
|
285
285
|
return /* @__PURE__ */ o(
|
|
286
|
-
|
|
286
|
+
ee,
|
|
287
287
|
{
|
|
288
288
|
sx: {
|
|
289
289
|
border: "1px solid",
|
|
@@ -295,7 +295,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
295
295
|
/* @__PURE__ */ e(
|
|
296
296
|
tt,
|
|
297
297
|
{
|
|
298
|
-
account:
|
|
298
|
+
account: u,
|
|
299
299
|
listItemProps: {
|
|
300
300
|
disableGutters: !1,
|
|
301
301
|
disablePadding: !1,
|
|
@@ -303,53 +303,53 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
305
|
),
|
|
306
|
-
/* @__PURE__ */ e(
|
|
307
|
-
|
|
308
|
-
|
|
306
|
+
/* @__PURE__ */ e(v, {}),
|
|
307
|
+
c.length > 0 && /* @__PURE__ */ e(ne, { children: /* @__PURE__ */ e(
|
|
308
|
+
ee,
|
|
309
309
|
{
|
|
310
|
-
subheader: /* @__PURE__ */ e(
|
|
310
|
+
subheader: /* @__PURE__ */ e(Ee, { total: r, type: oe.INCOME }),
|
|
311
311
|
sx: { width: "100%" },
|
|
312
|
-
children:
|
|
312
|
+
children: c.map((d) => /* @__PURE__ */ e(Ae, { recurrence: d }, d.repeatingTransactionGuid))
|
|
313
313
|
}
|
|
314
314
|
) }),
|
|
315
|
-
|
|
316
|
-
|
|
315
|
+
m.length > 0 && /* @__PURE__ */ e(ne, { children: /* @__PURE__ */ e(
|
|
316
|
+
ee,
|
|
317
317
|
{
|
|
318
|
-
subheader: /* @__PURE__ */ e(
|
|
318
|
+
subheader: /* @__PURE__ */ e(Ee, { total: l, type: oe.EXPENSE }),
|
|
319
319
|
sx: { width: "100%" },
|
|
320
|
-
children:
|
|
320
|
+
children: m.map((d) => /* @__PURE__ */ e(Ae, { recurrence: d }, d.repeatingTransactionGuid))
|
|
321
321
|
}
|
|
322
322
|
) }),
|
|
323
323
|
/* @__PURE__ */ e(
|
|
324
|
-
|
|
324
|
+
_t,
|
|
325
325
|
{
|
|
326
|
-
remaining: (
|
|
326
|
+
remaining: (u.available_balance || u.balance || 0) + r - l
|
|
327
327
|
}
|
|
328
328
|
)
|
|
329
329
|
]
|
|
330
330
|
},
|
|
331
|
-
|
|
331
|
+
u.guid
|
|
332
332
|
);
|
|
333
333
|
}) })
|
|
334
334
|
] });
|
|
335
|
-
},
|
|
336
|
-
const { availableWidth: a } =
|
|
335
|
+
}, At = T(vt), Et = () => {
|
|
336
|
+
const { availableWidth: a } = ce(), n = se(), { cashflow: t } = k(), { upcomingExpenses: i, upcomingIncome: g } = P(), { dateRange: x, selectedCashAccounts: u } = Q(), c = [
|
|
337
337
|
{
|
|
338
338
|
field: "account",
|
|
339
339
|
flex: 1.5,
|
|
340
340
|
headerName: t.accounts,
|
|
341
|
-
renderCell: ({ value: { name: r, nickname:
|
|
342
|
-
const C =
|
|
341
|
+
renderCell: ({ value: { name: r, nickname: l, institution_guid: d, account_number: b } }) => {
|
|
342
|
+
const C = l || r;
|
|
343
343
|
return /* @__PURE__ */ o(s, { alignItems: "center", flexDirection: "row", gap: 12, children: [
|
|
344
344
|
/* @__PURE__ */ e(
|
|
345
|
-
|
|
345
|
+
xe,
|
|
346
346
|
{
|
|
347
347
|
alt: t.institution_logo,
|
|
348
|
-
institutionGuid:
|
|
348
|
+
institutionGuid: d || "",
|
|
349
349
|
size: 16
|
|
350
350
|
}
|
|
351
351
|
),
|
|
352
|
-
/* @__PURE__ */ e(
|
|
352
|
+
/* @__PURE__ */ e(h, { variant: "body2", children: `${C} ${b ? `*${b}` : ""}` })
|
|
353
353
|
] });
|
|
354
354
|
}
|
|
355
355
|
},
|
|
@@ -358,21 +358,21 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
358
358
|
flex: 1,
|
|
359
359
|
headerName: t.balance,
|
|
360
360
|
type: "number",
|
|
361
|
-
renderCell: (r) => /* @__PURE__ */ e(
|
|
361
|
+
renderCell: (r) => /* @__PURE__ */ e(h, { color: n.palette.text.primary, variant: "Small", children: Z(r.value, "0,0.00") })
|
|
362
362
|
},
|
|
363
363
|
{
|
|
364
364
|
field: "income",
|
|
365
365
|
flex: 1,
|
|
366
366
|
headerName: t.projected_income,
|
|
367
367
|
type: "number",
|
|
368
|
-
renderCell: (r) => /* @__PURE__ */ e(
|
|
368
|
+
renderCell: (r) => /* @__PURE__ */ e(h, { color: n.palette.text.primary, variant: "Small", children: `+${Z(r.value, "0,0.00")}` })
|
|
369
369
|
},
|
|
370
370
|
{
|
|
371
371
|
field: "expenses",
|
|
372
372
|
flex: 1.1,
|
|
373
373
|
headerName: t.projected_expenses,
|
|
374
374
|
type: "number",
|
|
375
|
-
renderCell: (r) => /* @__PURE__ */ e(
|
|
375
|
+
renderCell: (r) => /* @__PURE__ */ e(h, { color: n.palette.text.primary, variant: "Small", children: `-${Z(r.value, "0,0.00")}` })
|
|
376
376
|
},
|
|
377
377
|
{
|
|
378
378
|
field: "remaining",
|
|
@@ -380,34 +380,34 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
380
380
|
headerName: t.remaining,
|
|
381
381
|
type: "number",
|
|
382
382
|
renderCell: (r) => {
|
|
383
|
-
const
|
|
383
|
+
const l = r.row.balance + r.row.income - r.row.expenses;
|
|
384
384
|
return /* @__PURE__ */ e(
|
|
385
|
-
|
|
385
|
+
h,
|
|
386
386
|
{
|
|
387
|
-
color: Math.sign(
|
|
387
|
+
color: Math.sign(l) === -1 ? n.palette.error.main : n.palette.text.primary,
|
|
388
388
|
variant: "Small",
|
|
389
|
-
children:
|
|
389
|
+
children: Z(l, "0,0.00")
|
|
390
390
|
}
|
|
391
391
|
);
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
|
-
],
|
|
395
|
-
const
|
|
396
|
-
|
|
397
|
-
).reduce((C,
|
|
398
|
-
|
|
399
|
-
).reduce((C,
|
|
394
|
+
], m = f.useMemo(() => u.map((r) => {
|
|
395
|
+
const l = i.filter(
|
|
396
|
+
re(r, { start: W(), end: Ce(W(), 30) })
|
|
397
|
+
).reduce((C, w) => C + w.amount, 0), d = g.filter(
|
|
398
|
+
re(r, { start: W(), end: Ce(W(), 30) })
|
|
399
|
+
).reduce((C, w) => C + w.amount, 0), b = (r.balance || 0) + d - l;
|
|
400
400
|
return {
|
|
401
401
|
account: r,
|
|
402
402
|
balance: r.balance || 0,
|
|
403
403
|
id: r.guid,
|
|
404
|
-
income:
|
|
405
|
-
expenses:
|
|
404
|
+
income: d,
|
|
405
|
+
expenses: l,
|
|
406
406
|
remaining: b
|
|
407
407
|
};
|
|
408
|
-
}), [
|
|
408
|
+
}), [u, i, g]);
|
|
409
409
|
return /* @__PURE__ */ o(
|
|
410
|
-
|
|
410
|
+
D,
|
|
411
411
|
{
|
|
412
412
|
sx: {
|
|
413
413
|
width: "100%"
|
|
@@ -422,7 +422,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
422
422
|
children: [
|
|
423
423
|
/* @__PURE__ */ o(s, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
424
424
|
/* @__PURE__ */ e(
|
|
425
|
-
|
|
425
|
+
h,
|
|
426
426
|
{
|
|
427
427
|
bold: !0,
|
|
428
428
|
sx: {
|
|
@@ -433,18 +433,18 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
433
433
|
}
|
|
434
434
|
),
|
|
435
435
|
/* @__PURE__ */ e(
|
|
436
|
-
|
|
436
|
+
he,
|
|
437
437
|
{
|
|
438
438
|
body: t.table_tooltip_body,
|
|
439
439
|
title: t.table_tooltip_title
|
|
440
440
|
}
|
|
441
441
|
)
|
|
442
442
|
] }),
|
|
443
|
-
/* @__PURE__ */ o(
|
|
444
|
-
|
|
443
|
+
/* @__PURE__ */ o(h, { bold: !0, sx: { fontSize: 15, whiteSpace: "normal" }, children: [
|
|
444
|
+
X(x.start, Y.FULL_MONTH_DAY),
|
|
445
445
|
" -",
|
|
446
446
|
" ",
|
|
447
|
-
|
|
447
|
+
X(x.end, Y.FULL_MONTH_DAY)
|
|
448
448
|
] })
|
|
449
449
|
]
|
|
450
450
|
}
|
|
@@ -453,13 +453,13 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
453
453
|
it,
|
|
454
454
|
{
|
|
455
455
|
columnHeaderHeight: 48,
|
|
456
|
-
columns:
|
|
456
|
+
columns: c,
|
|
457
457
|
density: "standard",
|
|
458
458
|
disableColumnMenu: !0,
|
|
459
459
|
disableRowSelectionOnClick: !0,
|
|
460
460
|
hideFooter: !0,
|
|
461
461
|
rowHeight: 48,
|
|
462
|
-
rows:
|
|
462
|
+
rows: m,
|
|
463
463
|
sx: {
|
|
464
464
|
border: "1px solid",
|
|
465
465
|
borderColor: "border.light",
|
|
@@ -479,10 +479,10 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
|
-
) :
|
|
483
|
-
const { name:
|
|
482
|
+
) : m.map((r) => {
|
|
483
|
+
const { name: l, nickname: d, institution_guid: b, account_number: C } = r.account, w = d || l;
|
|
484
484
|
return /* @__PURE__ */ e(
|
|
485
|
-
|
|
485
|
+
ee,
|
|
486
486
|
{
|
|
487
487
|
sx: {
|
|
488
488
|
border: "1px solid",
|
|
@@ -490,7 +490,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
490
490
|
borderRadius: 1,
|
|
491
491
|
marginBottom: 24
|
|
492
492
|
},
|
|
493
|
-
children: /* @__PURE__ */ e(
|
|
493
|
+
children: /* @__PURE__ */ e(ne, { sx: { minHeight: "auto" }, children: /* @__PURE__ */ o(s, { width: "100%", children: [
|
|
494
494
|
/* @__PURE__ */ o(
|
|
495
495
|
s,
|
|
496
496
|
{
|
|
@@ -502,20 +502,20 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
502
502
|
children: [
|
|
503
503
|
/* @__PURE__ */ o(s, { alignItems: "center", flexDirection: "row", gap: 8, width: "50%", children: [
|
|
504
504
|
/* @__PURE__ */ e(
|
|
505
|
-
|
|
505
|
+
xe,
|
|
506
506
|
{
|
|
507
507
|
alt: t.institution_logo,
|
|
508
508
|
institutionGuid: b || "",
|
|
509
509
|
size: 16
|
|
510
510
|
}
|
|
511
511
|
),
|
|
512
|
-
/* @__PURE__ */ e(
|
|
512
|
+
/* @__PURE__ */ e(h, { variant: "Small", children: `${w} ${C ? `*${C}` : ""}` })
|
|
513
513
|
] }),
|
|
514
514
|
/* @__PURE__ */ e(L, { amount: r.balance, bold: !0, variant: "Small" })
|
|
515
515
|
]
|
|
516
516
|
}
|
|
517
517
|
),
|
|
518
|
-
/* @__PURE__ */ e(
|
|
518
|
+
/* @__PURE__ */ e(v, { sx: { width: "100%" } }),
|
|
519
519
|
/* @__PURE__ */ o(
|
|
520
520
|
s,
|
|
521
521
|
{
|
|
@@ -525,12 +525,12 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
525
525
|
px: 16,
|
|
526
526
|
py: 12,
|
|
527
527
|
children: [
|
|
528
|
-
/* @__PURE__ */ e(
|
|
528
|
+
/* @__PURE__ */ e(h, { variant: "Small", children: t.projected_income }),
|
|
529
529
|
/* @__PURE__ */ e(L, { amount: r.income, bold: !0, symbol: "+", variant: "Small" })
|
|
530
530
|
]
|
|
531
531
|
}
|
|
532
532
|
),
|
|
533
|
-
/* @__PURE__ */ e(
|
|
533
|
+
/* @__PURE__ */ e(v, { sx: { width: "100%" } }),
|
|
534
534
|
/* @__PURE__ */ o(
|
|
535
535
|
s,
|
|
536
536
|
{
|
|
@@ -540,12 +540,12 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
540
540
|
px: 16,
|
|
541
541
|
py: 12,
|
|
542
542
|
children: [
|
|
543
|
-
/* @__PURE__ */ e(
|
|
543
|
+
/* @__PURE__ */ e(h, { variant: "Small", children: t.projected_expenses }),
|
|
544
544
|
/* @__PURE__ */ e(L, { amount: r.expenses, bold: !0, symbol: "-", variant: "Small" })
|
|
545
545
|
]
|
|
546
546
|
}
|
|
547
547
|
),
|
|
548
|
-
/* @__PURE__ */ e(
|
|
548
|
+
/* @__PURE__ */ e(v, { sx: { width: "100%" } }),
|
|
549
549
|
/* @__PURE__ */ e(
|
|
550
550
|
s,
|
|
551
551
|
{
|
|
@@ -557,7 +557,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
557
557
|
px: 16,
|
|
558
558
|
py: 12,
|
|
559
559
|
sx: { borderBottomLeftRadius: "4px", borderBottomRightRadius: "4px" },
|
|
560
|
-
children: /* @__PURE__ */ e(
|
|
560
|
+
children: /* @__PURE__ */ e(pe, { remaining: r.remaining })
|
|
561
561
|
}
|
|
562
562
|
)
|
|
563
563
|
] }) })
|
|
@@ -568,13 +568,13 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
568
568
|
]
|
|
569
569
|
}
|
|
570
570
|
);
|
|
571
|
-
},
|
|
572
|
-
const { cashflow: a } =
|
|
573
|
-
g(
|
|
571
|
+
}, Tt = T(Et), Rt = () => {
|
|
572
|
+
const { cashflow: a } = k(), { isDesktop: n } = ue(), { onEvent: t } = ke(), [i, g] = f.useState(0), x = (u, c) => {
|
|
573
|
+
g(c);
|
|
574
574
|
};
|
|
575
575
|
return f.useEffect(() => {
|
|
576
576
|
t(i === 0 ? "cash_flow_summary" : "cash_flow_details");
|
|
577
|
-
}, [i]), /* @__PURE__ */ o(
|
|
577
|
+
}, [i]), /* @__PURE__ */ o(D, { children: [
|
|
578
578
|
/* @__PURE__ */ o(
|
|
579
579
|
et,
|
|
580
580
|
{
|
|
@@ -586,7 +586,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
586
586
|
variant: "fullWidth",
|
|
587
587
|
children: [
|
|
588
588
|
/* @__PURE__ */ e(
|
|
589
|
-
|
|
589
|
+
ye,
|
|
590
590
|
{
|
|
591
591
|
"aria-controls": "cashflow-tabpanel-0",
|
|
592
592
|
id: "cashflow-tab-0",
|
|
@@ -597,7 +597,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
597
597
|
}
|
|
598
598
|
),
|
|
599
599
|
/* @__PURE__ */ e(
|
|
600
|
-
|
|
600
|
+
ye,
|
|
601
601
|
{
|
|
602
602
|
"aria-controls": "cashflow-tabpanel-1",
|
|
603
603
|
id: "cashflow-tab-1",
|
|
@@ -610,11 +610,11 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
610
610
|
]
|
|
611
611
|
}
|
|
612
612
|
),
|
|
613
|
-
/* @__PURE__ */ e(
|
|
614
|
-
/* @__PURE__ */ e(
|
|
615
|
-
/* @__PURE__ */ e(
|
|
613
|
+
/* @__PURE__ */ e(D, { sx: { mb: 32 } }),
|
|
614
|
+
/* @__PURE__ */ e(Se, { index: 0, name: "cashflow", value: i, children: /* @__PURE__ */ e(D, { sx: { m: n ? 48 : 16 }, children: /* @__PURE__ */ e(Tt, {}) }) }),
|
|
615
|
+
/* @__PURE__ */ e(Se, { index: 1, name: "cashflow", value: i, children: /* @__PURE__ */ e(D, { sx: { m: n ? 48 : 16 }, children: /* @__PURE__ */ e(At, {}) }) })
|
|
616
616
|
] });
|
|
617
|
-
},
|
|
617
|
+
}, Lt = T(Rt), ie = ({
|
|
618
618
|
amount: a,
|
|
619
619
|
isMobile: n = !1,
|
|
620
620
|
isTotal: t = !1,
|
|
@@ -632,83 +632,83 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
632
632
|
children: [
|
|
633
633
|
!n && /* @__PURE__ */ e(L, { amount: a, component: "h2", variant: "H2" }),
|
|
634
634
|
/* @__PURE__ */ o(s, { alignItems: "center", component: "span", direction: "row", gap: 8, mt: 2, children: [
|
|
635
|
-
/* @__PURE__ */ e(
|
|
635
|
+
/* @__PURE__ */ e(h, { bold: t, variant: "Small", children: i }),
|
|
636
636
|
x
|
|
637
637
|
] }),
|
|
638
638
|
n && /* @__PURE__ */ e(L, { amount: a, component: "h2", symbol: g, variant: "Small" })
|
|
639
639
|
]
|
|
640
640
|
}
|
|
641
|
-
),
|
|
642
|
-
const { availableWidth: a } =
|
|
643
|
-
() => g.filter(
|
|
644
|
-
[
|
|
641
|
+
), Te = (a, n) => (t) => t.accountGuid && a.includes(t.accountGuid) && (Fe(t.expectedDate) || Oe(t.expectedDate, n.start)) && He(t.expectedDate, n.end), kt = () => {
|
|
642
|
+
const { availableWidth: a } = ce(), { cashflow: n } = k(), { income: t, isDataLoaded: i, upcomingExpenses: g, upcomingIncome: x } = P(), { selectedAccountGuids: u } = q(), { dateRange: c, selectedCashAccounts: m } = Q(), [r, l] = f.useState(!1), d = f.useMemo(
|
|
643
|
+
() => g.filter(Te(u, c)),
|
|
644
|
+
[c, u, g]
|
|
645
645
|
), b = f.useMemo(
|
|
646
|
-
() => x.filter(
|
|
647
|
-
[
|
|
646
|
+
() => x.filter(Te(u, c)),
|
|
647
|
+
[c, u, x]
|
|
648
648
|
), C = f.useMemo(
|
|
649
|
-
() =>
|
|
650
|
-
[
|
|
651
|
-
),
|
|
652
|
-
return /* @__PURE__ */ o(s, { sx: { mx:
|
|
649
|
+
() => m.reduce((_, R) => _ + (R?.balance || 0), 0),
|
|
650
|
+
[m]
|
|
651
|
+
), w = d.reduce((_, R) => _ + R.amount, 0), O = b.reduce((_, R) => _ + R.amount, 0), A = C - w + O, H = i && t.length > 0, p = a < 725;
|
|
652
|
+
return /* @__PURE__ */ o(s, { sx: { mx: p ? 16 : 0, my: p ? 24 : 42 }, children: [
|
|
653
653
|
/* @__PURE__ */ o(
|
|
654
654
|
s,
|
|
655
655
|
{
|
|
656
|
-
border:
|
|
656
|
+
border: p ? "1px solid" : "none",
|
|
657
657
|
borderColor: "border.light",
|
|
658
658
|
borderRadius: 2,
|
|
659
|
-
flexDirection:
|
|
660
|
-
gap:
|
|
659
|
+
flexDirection: p ? "column" : "row",
|
|
660
|
+
gap: p ? 0 : 24,
|
|
661
661
|
justifyContent: "center",
|
|
662
662
|
children: [
|
|
663
663
|
/* @__PURE__ */ e(
|
|
664
|
-
|
|
664
|
+
ie,
|
|
665
665
|
{
|
|
666
666
|
amount: C,
|
|
667
|
-
isMobile:
|
|
668
|
-
label: M(n.cash_and_bank,
|
|
667
|
+
isMobile: p,
|
|
668
|
+
label: M(n.cash_and_bank, m.length)
|
|
669
669
|
}
|
|
670
670
|
),
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
!
|
|
671
|
+
p && /* @__PURE__ */ e(v, {}),
|
|
672
|
+
H ? /* @__PURE__ */ o(U, { children: [
|
|
673
|
+
!p && /* @__PURE__ */ e(h, { sx: { fontSize: 25, lineHeight: 1 }, children: "+" }),
|
|
674
674
|
/* @__PURE__ */ e(
|
|
675
|
-
|
|
675
|
+
ie,
|
|
676
676
|
{
|
|
677
|
-
amount:
|
|
678
|
-
isMobile:
|
|
677
|
+
amount: O,
|
|
678
|
+
isMobile: p,
|
|
679
679
|
label: n.to_be_received,
|
|
680
|
-
symbol:
|
|
680
|
+
symbol: p ? "+" : void 0
|
|
681
681
|
}
|
|
682
682
|
)
|
|
683
683
|
] }) : /* @__PURE__ */ e(
|
|
684
684
|
G,
|
|
685
685
|
{
|
|
686
|
-
onClick: () =>
|
|
686
|
+
onClick: () => l(!0),
|
|
687
687
|
startIcon: /* @__PURE__ */ e(j, { name: "add" }),
|
|
688
688
|
sx: { fontSize: 13 },
|
|
689
689
|
children: n.add_income
|
|
690
690
|
}
|
|
691
691
|
),
|
|
692
|
-
|
|
692
|
+
p ? /* @__PURE__ */ e(v, {}) : /* @__PURE__ */ e(h, { sx: { fontSize: 25, lineHeight: 1 }, children: "-" }),
|
|
693
693
|
/* @__PURE__ */ e(
|
|
694
|
-
|
|
694
|
+
ie,
|
|
695
695
|
{
|
|
696
|
-
amount:
|
|
697
|
-
isMobile:
|
|
698
|
-
label: M(n.to_be_paid_out,
|
|
699
|
-
symbol:
|
|
696
|
+
amount: w,
|
|
697
|
+
isMobile: p,
|
|
698
|
+
label: M(n.to_be_paid_out, d.length),
|
|
699
|
+
symbol: p ? "-" : void 0
|
|
700
700
|
}
|
|
701
701
|
),
|
|
702
|
-
|
|
702
|
+
p ? /* @__PURE__ */ e(v, {}) : /* @__PURE__ */ e(h, { sx: { fontSize: 25, lineHeight: 1 }, children: "=" }),
|
|
703
703
|
/* @__PURE__ */ e(
|
|
704
|
-
|
|
704
|
+
ie,
|
|
705
705
|
{
|
|
706
|
-
amount:
|
|
707
|
-
isMobile:
|
|
708
|
-
isTotal:
|
|
706
|
+
amount: A,
|
|
707
|
+
isMobile: p,
|
|
708
|
+
isTotal: p,
|
|
709
709
|
label: n.remaining_cash,
|
|
710
710
|
tooltip: /* @__PURE__ */ e(
|
|
711
|
-
|
|
711
|
+
he,
|
|
712
712
|
{
|
|
713
713
|
body: n.remaining_income_tooltip_body,
|
|
714
714
|
title: n.remaining_income_tooltip_title
|
|
@@ -720,23 +720,88 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
720
720
|
}
|
|
721
721
|
),
|
|
722
722
|
/* @__PURE__ */ e(
|
|
723
|
-
|
|
723
|
+
We,
|
|
724
724
|
{
|
|
725
725
|
ariaLabelClose: n.close_manage_income_aria,
|
|
726
726
|
isOpen: r,
|
|
727
|
-
onClose: () =>
|
|
727
|
+
onClose: () => l(!1),
|
|
728
728
|
shouldShowHeaderBorders: !1,
|
|
729
729
|
title: n.manage_income,
|
|
730
730
|
children: /* @__PURE__ */ e(rt, {})
|
|
731
731
|
}
|
|
732
732
|
)
|
|
733
733
|
] });
|
|
734
|
-
},
|
|
735
|
-
const {
|
|
734
|
+
}, Nt = T(kt), Ot = ({ onBackClick: a, sx: n = {} }) => {
|
|
735
|
+
const {
|
|
736
|
+
selectedAccounts: t,
|
|
737
|
+
selectedAccountGuids: i,
|
|
738
|
+
setSelectedAccounts: g,
|
|
739
|
+
shouldDisableNextDate: x,
|
|
740
|
+
shouldDisablePrevDate: u
|
|
741
|
+
} = q(), { onEvent: c } = ke(), { onLoad: m } = Ye(), { clientConfig: r } = Qe(), { visibleCashAccounts: l } = Le(), { setFilter: d } = Ne(), { dateRange: b, setSelectedCashAccounts: C } = Q(), { loadRepeatingTransactionData: w, isDataLoaded: O, setDateRange: A } = P(), { cashflow: H, recurring: p } = k(), { isInitialized: _ } = q(), I = r?.master?.deep_link_params?.view === "manage_income", [$, ae] = f.useState(I);
|
|
742
|
+
return f.useEffect(() => {
|
|
743
|
+
A(b), O || w().finally(() => {
|
|
744
|
+
m?.("CashflowWidget");
|
|
745
|
+
});
|
|
746
|
+
}, []), f.useEffect(() => {
|
|
747
|
+
g(l);
|
|
748
|
+
}, [l]), f.useEffect(() => {
|
|
749
|
+
const V = l.map((S) => S.guid), K = t.filter(
|
|
750
|
+
(S) => i.includes(S.guid) && V.includes(S.guid)
|
|
751
|
+
);
|
|
752
|
+
C(K), d({
|
|
753
|
+
dateRange: { start: $e(W(), 90), end: dt() },
|
|
754
|
+
accounts: K.map((S) => S.guid)
|
|
755
|
+
});
|
|
756
|
+
}, [l, t]), _ ? /* @__PURE__ */ o(
|
|
757
|
+
mt,
|
|
758
|
+
{
|
|
759
|
+
accountOptions: l,
|
|
760
|
+
actions: [
|
|
761
|
+
{
|
|
762
|
+
label: p.action_title,
|
|
763
|
+
iconName: "credit_card_gear",
|
|
764
|
+
onClick: () => {
|
|
765
|
+
ae(!0), c(_e.CASH_FLOW_CLICK_SETTINGS);
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
],
|
|
769
|
+
calendarActions: {
|
|
770
|
+
shouldDisableNext: x,
|
|
771
|
+
shouldDisablePrevious: u,
|
|
772
|
+
shouldDisablePicker: !0,
|
|
773
|
+
onRangeChanged: () => {
|
|
774
|
+
}
|
|
775
|
+
},
|
|
776
|
+
dateRange: b,
|
|
777
|
+
dateRangeVariant: "readonly",
|
|
778
|
+
onAccountsFilterClick: () => c(_e.CASH_FLOW_CLICK_FILTER),
|
|
779
|
+
onBackClick: a,
|
|
780
|
+
sx: n,
|
|
781
|
+
title: H.title,
|
|
782
|
+
children: [
|
|
783
|
+
/* @__PURE__ */ e(Nt, {}),
|
|
784
|
+
/* @__PURE__ */ e(Lt, {}),
|
|
785
|
+
/* @__PURE__ */ e(
|
|
786
|
+
We,
|
|
787
|
+
{
|
|
788
|
+
ariaLabelClose: H.close_settings_aria,
|
|
789
|
+
isOpen: $,
|
|
790
|
+
onClose: () => ae(!1),
|
|
791
|
+
shouldShowHeaderBorders: !1,
|
|
792
|
+
title: p.action_title,
|
|
793
|
+
children: /* @__PURE__ */ e(Ze, { defaultSelectedTab: I ? 1 : 0 })
|
|
794
|
+
}
|
|
795
|
+
)
|
|
796
|
+
]
|
|
797
|
+
}
|
|
798
|
+
) : /* @__PURE__ */ e(te, {});
|
|
799
|
+
}, Wn = T(Ot), Ht = ({ handleNextStep: a }) => {
|
|
800
|
+
const { completeOnboarding: n } = me(), { cashflow: t } = k(), i = se();
|
|
736
801
|
return /* @__PURE__ */ o(s, { children: [
|
|
737
|
-
/* @__PURE__ */ e(
|
|
802
|
+
/* @__PURE__ */ e(de, { pb: 12, children: t.welcome_title }),
|
|
738
803
|
/* @__PURE__ */ e(
|
|
739
|
-
|
|
804
|
+
qe,
|
|
740
805
|
{
|
|
741
806
|
color: i.palette.primary.light,
|
|
742
807
|
pb: 8,
|
|
@@ -749,7 +814,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
749
814
|
/* @__PURE__ */ o(s, { direction: "column", mb: 32, spacing: 32, children: [
|
|
750
815
|
/* @__PURE__ */ o(N, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
|
|
751
816
|
/* @__PURE__ */ e(
|
|
752
|
-
|
|
817
|
+
D,
|
|
753
818
|
{
|
|
754
819
|
bgcolor: i.palette.primary.lighter,
|
|
755
820
|
borderRadius: 1,
|
|
@@ -765,7 +830,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
765
830
|
] }),
|
|
766
831
|
/* @__PURE__ */ o(N, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
|
|
767
832
|
/* @__PURE__ */ e(
|
|
768
|
-
|
|
833
|
+
D,
|
|
769
834
|
{
|
|
770
835
|
bgcolor: i.palette.primary.lighter,
|
|
771
836
|
borderRadius: 1,
|
|
@@ -781,7 +846,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
781
846
|
] }),
|
|
782
847
|
/* @__PURE__ */ o(N, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
|
|
783
848
|
/* @__PURE__ */ e(
|
|
784
|
-
|
|
849
|
+
D,
|
|
785
850
|
{
|
|
786
851
|
bgcolor: i.palette.primary.lighter,
|
|
787
852
|
borderRadius: 1,
|
|
@@ -801,160 +866,160 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
801
866
|
/* @__PURE__ */ e(G, { onClick: n, variant: "outlined", children: t.skip_button })
|
|
802
867
|
] })
|
|
803
868
|
] });
|
|
804
|
-
},
|
|
805
|
-
CASHFLOW_ONBOARDING: `${
|
|
806
|
-
CASHFLOW_LOADING_ANIMATION: `${
|
|
807
|
-
},
|
|
808
|
-
const { cashflow: a } =
|
|
869
|
+
}, Ft = T(Ht), Re = "https://content.moneydesktop.com/storage/MD_Assets/md/cashflow", Me = {
|
|
870
|
+
CASHFLOW_ONBOARDING: `${Re}/cashflow-onboarding.png`,
|
|
871
|
+
CASHFLOW_LOADING_ANIMATION: `${Re}/loading-animation.gif`
|
|
872
|
+
}, Wt = () => {
|
|
873
|
+
const { cashflow: a } = k();
|
|
809
874
|
return /* @__PURE__ */ o(f.Fragment, { children: [
|
|
810
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("img", { alt: "Loading", src:
|
|
811
|
-
/* @__PURE__ */ e(
|
|
875
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("img", { alt: "Loading", src: Me.CASHFLOW_LOADING_ANIMATION }) }),
|
|
876
|
+
/* @__PURE__ */ e(de, { pb: 12, children: a.loading_title }),
|
|
812
877
|
/* @__PURE__ */ e(N, { children: a.loading_description })
|
|
813
878
|
] });
|
|
814
|
-
},
|
|
879
|
+
}, $t = T(Wt), Mt = at`
|
|
815
880
|
from {
|
|
816
881
|
transform: rotate(0deg);
|
|
817
882
|
}
|
|
818
883
|
to {
|
|
819
884
|
transform: rotate(360deg);
|
|
820
885
|
}
|
|
821
|
-
`,
|
|
822
|
-
const { addRepeatingTransaction: a, repeatingTransactions: n } =
|
|
823
|
-
() => b.find((y) => y.guid ===
|
|
824
|
-
[
|
|
825
|
-
),
|
|
886
|
+
`, Gt = () => {
|
|
887
|
+
const { addRepeatingTransaction: a, repeatingTransactions: n } = P(), { cashflow: t, common: i } = k(), { user: g } = Ve(), { completeOnboarding: x } = me(), { isDirty: u } = Q(), { isMobile: c } = ue(), { isCopyLoaded: m, setDisplayedDate: r } = q(), { filter: l, setFilter: d, transactions: b } = Ne(), C = se(), [w, O] = J(!0), [A, H] = f.useState(gt.EveryMonth), [p, _] = f.useState(1), [R, I] = f.useState(15), [$, ae] = J(!1), [V, K] = J(1), [S, Ge] = J([]), [fe, le] = J(""), F = f.useMemo(
|
|
888
|
+
() => b.find((y) => y.guid === fe),
|
|
889
|
+
[fe, b]
|
|
890
|
+
), je = !!n.filter(
|
|
826
891
|
(y) => y.repeating_transaction_type === De.Income
|
|
827
|
-
).length,
|
|
828
|
-
|
|
892
|
+
).length, ge = async () => {
|
|
893
|
+
K(2), r(
|
|
829
894
|
// Beginning of the month, 90 days before today
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
),
|
|
833
|
-
},
|
|
834
|
-
if (!(
|
|
835
|
-
|
|
836
|
-
for (let y = 0; y <
|
|
837
|
-
const E =
|
|
895
|
+
ht($e(W(), 90)),
|
|
896
|
+
W()
|
|
897
|
+
), d({ ...l, custom: we }), K(3);
|
|
898
|
+
}, ze = async () => {
|
|
899
|
+
if (!(S.length < 1)) {
|
|
900
|
+
ae(!0);
|
|
901
|
+
for (let y = 0; y < S.length; y++) {
|
|
902
|
+
const E = S[y], be = ve(A, Ie(E.date)), Ue = {
|
|
838
903
|
account_guid: E.account_guid,
|
|
839
904
|
amount: E.amount,
|
|
840
905
|
created_by: 0,
|
|
841
906
|
//user
|
|
842
907
|
merchant_guid: E.merchant_guid,
|
|
843
908
|
description: E.feed_description || E.description,
|
|
844
|
-
predicted_occurs_on:
|
|
845
|
-
recurrence_day:
|
|
846
|
-
recurrence_type:
|
|
909
|
+
predicted_occurs_on: ut(be, { representation: "date" }),
|
|
910
|
+
recurrence_day: be.getDay(),
|
|
911
|
+
recurrence_type: A,
|
|
847
912
|
repeating_transaction_type: De.Income,
|
|
848
|
-
second_recurrence_day:
|
|
913
|
+
second_recurrence_day: R,
|
|
849
914
|
transaction_type: E.transaction_type,
|
|
850
915
|
user_guid: g.guid
|
|
851
916
|
};
|
|
852
|
-
await a(
|
|
917
|
+
await a(Ue, E);
|
|
853
918
|
}
|
|
854
919
|
await x();
|
|
855
920
|
}
|
|
856
|
-
},
|
|
857
|
-
return
|
|
858
|
-
|
|
921
|
+
}, Be = !F && w || !F && S.length < 1;
|
|
922
|
+
return m ? /* @__PURE__ */ o(
|
|
923
|
+
D,
|
|
859
924
|
{
|
|
860
925
|
sx: {
|
|
861
926
|
display: "flex",
|
|
862
|
-
alignItems:
|
|
927
|
+
alignItems: c ? "flex-start" : "center",
|
|
863
928
|
backgroundColor: C.palette.background.paper,
|
|
864
|
-
backgroundImage:
|
|
929
|
+
backgroundImage: c ? null : `url(${Me.CASHFLOW_ONBOARDING})`,
|
|
865
930
|
backgroundRepeat: "no-repeat",
|
|
866
931
|
backgroundPosition: "left 100px",
|
|
867
932
|
backgroundSize: "35%",
|
|
868
933
|
py: 24
|
|
869
934
|
},
|
|
870
935
|
children: [
|
|
871
|
-
|
|
872
|
-
|
|
936
|
+
V === 1 && /* @__PURE__ */ e(
|
|
937
|
+
D,
|
|
873
938
|
{
|
|
874
939
|
sx: {
|
|
875
|
-
...
|
|
940
|
+
...c ? { display: "flex", flexDirection: "column", maxWidth: "100%", padding: "0 16px" } : { maxWidth: 590, ml: "40%", mr: 90 }
|
|
876
941
|
},
|
|
877
|
-
children: /* @__PURE__ */ e(
|
|
942
|
+
children: /* @__PURE__ */ e(Ft, { handleNextStep: ge })
|
|
878
943
|
}
|
|
879
944
|
),
|
|
880
|
-
|
|
881
|
-
|
|
945
|
+
V === 2 && /* @__PURE__ */ e(
|
|
946
|
+
D,
|
|
882
947
|
{
|
|
883
948
|
sx: {
|
|
884
|
-
...
|
|
949
|
+
...c ? { display: "flex", flexDirection: "column", maxWidth: "100%", padding: "0 16px" } : { maxWidth: 590, ml: "40%", mr: 90 }
|
|
885
950
|
},
|
|
886
|
-
children: /* @__PURE__ */ e(
|
|
951
|
+
children: /* @__PURE__ */ e($t, {})
|
|
887
952
|
}
|
|
888
953
|
),
|
|
889
|
-
|
|
890
|
-
|
|
954
|
+
V === 3 && /* @__PURE__ */ o(
|
|
955
|
+
D,
|
|
891
956
|
{
|
|
892
957
|
sx: {
|
|
893
|
-
...
|
|
958
|
+
...c ? { display: "flex", flexDirection: "column", maxWidth: "100%", padding: "0 16px" } : { maxWidth: 590, ml: "40%", mr: 90 }
|
|
894
959
|
},
|
|
895
960
|
children: [
|
|
896
|
-
/* @__PURE__ */ e(
|
|
961
|
+
/* @__PURE__ */ e(de, { pb: 12, children: t.add_income_title }),
|
|
897
962
|
/* @__PURE__ */ e(N, { mb: 24, children: t.add_income_description }),
|
|
898
|
-
|
|
899
|
-
/* @__PURE__ */ e(
|
|
900
|
-
/* @__PURE__ */ e(
|
|
901
|
-
|
|
963
|
+
S.length > 0 && !F && /* @__PURE__ */ o(U, { children: [
|
|
964
|
+
/* @__PURE__ */ e(ee, { children: S.map((y, E) => /* @__PURE__ */ o(f.Fragment, { children: [
|
|
965
|
+
/* @__PURE__ */ e(pt, { bgcolor: "background.paper", children: bt(
|
|
966
|
+
B(y.nextDate || y.date)
|
|
902
967
|
) }),
|
|
903
|
-
/* @__PURE__ */ e(
|
|
904
|
-
E !==
|
|
968
|
+
/* @__PURE__ */ e(ft, { transaction: y }),
|
|
969
|
+
E !== S.length - 1 && /* @__PURE__ */ e(v, {})
|
|
905
970
|
] }, y.guid)) }),
|
|
906
971
|
/* @__PURE__ */ o(s, { alignItems: "center", direction: "row", children: [
|
|
907
|
-
/* @__PURE__ */ e(
|
|
972
|
+
/* @__PURE__ */ e(v, { sx: { flexGrow: 1 } }),
|
|
908
973
|
/* @__PURE__ */ e(
|
|
909
974
|
G,
|
|
910
975
|
{
|
|
911
|
-
onClick: () =>
|
|
976
|
+
onClick: () => O(!0),
|
|
912
977
|
startIcon: /* @__PURE__ */ e(j, { name: "add", size: 20 }),
|
|
913
978
|
children: t.add_income
|
|
914
979
|
}
|
|
915
980
|
)
|
|
916
981
|
] })
|
|
917
982
|
] }),
|
|
918
|
-
|
|
983
|
+
Be && /* @__PURE__ */ e(
|
|
919
984
|
st,
|
|
920
985
|
{
|
|
921
986
|
bgcolor: "background.paper",
|
|
922
|
-
onSearch: (y) =>
|
|
923
|
-
...
|
|
924
|
-
custom: (E) => y ? ct(E, y) :
|
|
987
|
+
onSearch: (y) => d({
|
|
988
|
+
...l,
|
|
989
|
+
custom: (E) => y ? ct(E, y) : we(E)
|
|
925
990
|
}),
|
|
926
991
|
onSelected: (y) => {
|
|
927
|
-
|
|
992
|
+
le(y), O(!1);
|
|
928
993
|
}
|
|
929
994
|
}
|
|
930
995
|
),
|
|
931
|
-
!
|
|
932
|
-
|
|
996
|
+
!je && u && /* @__PURE__ */ e(N, { color: "error", mt: 16, children: t.confirm_error }),
|
|
997
|
+
F && /* @__PURE__ */ o(U, { children: [
|
|
933
998
|
/* @__PURE__ */ e(
|
|
934
999
|
lt,
|
|
935
1000
|
{
|
|
936
1001
|
bgcolor: "background.paper",
|
|
937
|
-
firstDay:
|
|
938
|
-
frequency:
|
|
939
|
-
onFirstDayChange:
|
|
940
|
-
onFrequencyChange:
|
|
941
|
-
onSecondDayChange:
|
|
942
|
-
secondDay:
|
|
943
|
-
transaction:
|
|
1002
|
+
firstDay: p,
|
|
1003
|
+
frequency: A,
|
|
1004
|
+
onFirstDayChange: _,
|
|
1005
|
+
onFrequencyChange: H,
|
|
1006
|
+
onSecondDayChange: I,
|
|
1007
|
+
secondDay: R,
|
|
1008
|
+
transaction: F
|
|
944
1009
|
}
|
|
945
1010
|
),
|
|
946
1011
|
/* @__PURE__ */ o(s, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
|
|
947
1012
|
/* @__PURE__ */ e(
|
|
948
1013
|
G,
|
|
949
1014
|
{
|
|
950
|
-
"aria-disabled": !
|
|
1015
|
+
"aria-disabled": !F,
|
|
951
1016
|
onClick: () => {
|
|
952
|
-
const y = [...
|
|
1017
|
+
const y = [...S];
|
|
953
1018
|
y.push({
|
|
954
|
-
...
|
|
955
|
-
nextDate: ve(
|
|
956
|
-
frequency:
|
|
957
|
-
}),
|
|
1019
|
+
...F,
|
|
1020
|
+
nextDate: ve(A, Ie(F.date)),
|
|
1021
|
+
frequency: A
|
|
1022
|
+
}), Ge(y), le("");
|
|
958
1023
|
},
|
|
959
1024
|
variant: "contained",
|
|
960
1025
|
children: i.confirm_button
|
|
@@ -964,7 +1029,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
964
1029
|
G,
|
|
965
1030
|
{
|
|
966
1031
|
onClick: () => {
|
|
967
|
-
|
|
1032
|
+
le(""), O(!0), ge().finally();
|
|
968
1033
|
},
|
|
969
1034
|
variant: "outlined",
|
|
970
1035
|
children: i.cancel_button
|
|
@@ -972,18 +1037,18 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
972
1037
|
)
|
|
973
1038
|
] })
|
|
974
1039
|
] }),
|
|
975
|
-
|
|
1040
|
+
S.length > 0 && !F && /* @__PURE__ */ o(s, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
|
|
976
1041
|
/* @__PURE__ */ e(
|
|
977
1042
|
G,
|
|
978
1043
|
{
|
|
979
|
-
"aria-disabled":
|
|
980
|
-
onClick:
|
|
981
|
-
startIcon:
|
|
1044
|
+
"aria-disabled": S.length < 1 || $,
|
|
1045
|
+
onClick: ze,
|
|
1046
|
+
startIcon: $ ? /* @__PURE__ */ e(
|
|
982
1047
|
j,
|
|
983
1048
|
{
|
|
984
1049
|
name: "progress_activity",
|
|
985
1050
|
sx: {
|
|
986
|
-
animation: `${
|
|
1051
|
+
animation: `${Mt} 2s linear infinite`
|
|
987
1052
|
}
|
|
988
1053
|
}
|
|
989
1054
|
) : null,
|
|
@@ -998,104 +1063,31 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
998
1063
|
)
|
|
999
1064
|
]
|
|
1000
1065
|
}
|
|
1001
|
-
) : /* @__PURE__ */ e(
|
|
1002
|
-
},
|
|
1003
|
-
|
|
1004
|
-
selectedAccounts: t,
|
|
1005
|
-
selectedAccountGuids: i,
|
|
1006
|
-
setSelectedAccounts: g,
|
|
1007
|
-
shouldDisableNextDate: x,
|
|
1008
|
-
shouldDisablePrevDate: m
|
|
1009
|
-
} = X(), { onEvent: p } = ke(), { clientConfig: c } = Ve(), { visibleCashAccounts: r } = Ne(), { setFilter: d } = Fe(), { userProfile: l } = He(), { dateRange: b, setSelectedCashAccounts: C } = V(), { loadRepeatingTransactions: _, income: k, isDataLoaded: v, setDateRange: F } = q(), { cashflow: h, recurring: S } = O(), { isCopyLoaded: A, isInitialized: w } = X(), re = c?.master?.deep_link_params?.view === "manage_income", [K, J] = f.useState(re);
|
|
1010
|
-
f.useEffect(() => {
|
|
1011
|
-
w && (F(b), _().finally());
|
|
1012
|
-
}, [w]), f.useEffect(() => {
|
|
1013
|
-
g(r);
|
|
1014
|
-
}, [r]), f.useEffect(() => {
|
|
1015
|
-
const me = r.map((H) => H.guid), Z = t.filter(
|
|
1016
|
-
(H) => i.includes(H.guid) && me.includes(H.guid)
|
|
1017
|
-
);
|
|
1018
|
-
C(Z), d({
|
|
1019
|
-
dateRange: { start: je($(), 90), end: gt() },
|
|
1020
|
-
accounts: Z.map((H) => H.guid)
|
|
1021
|
-
});
|
|
1022
|
-
}, [r, t]);
|
|
1023
|
-
const R = v && !l?.has_completed_cash_flow_onboarding && !k.length;
|
|
1024
|
-
return !A || !w ? /* @__PURE__ */ e(oe, {}) : R ? /* @__PURE__ */ e(
|
|
1025
|
-
Ae,
|
|
1026
|
-
{
|
|
1027
|
-
onBackClick: a,
|
|
1028
|
-
sx: { height: "100%", overflow: "auto" },
|
|
1029
|
-
title: h.title,
|
|
1030
|
-
children: /* @__PURE__ */ e(Mt, {})
|
|
1031
|
-
}
|
|
1032
|
-
) : /* @__PURE__ */ o(
|
|
1033
|
-
Ae,
|
|
1034
|
-
{
|
|
1035
|
-
accountOptions: r,
|
|
1036
|
-
actions: [
|
|
1037
|
-
{
|
|
1038
|
-
label: S.action_title,
|
|
1039
|
-
iconName: "credit_card_gear",
|
|
1040
|
-
onClick: () => {
|
|
1041
|
-
J(!0), p(Ee.CASH_FLOW_CLICK_SETTINGS);
|
|
1042
|
-
}
|
|
1043
|
-
}
|
|
1044
|
-
],
|
|
1045
|
-
calendarActions: {
|
|
1046
|
-
shouldDisableNext: x,
|
|
1047
|
-
shouldDisablePrevious: m,
|
|
1048
|
-
shouldDisablePicker: !0,
|
|
1049
|
-
onRangeChanged: () => {
|
|
1050
|
-
}
|
|
1051
|
-
},
|
|
1052
|
-
dateRange: b,
|
|
1053
|
-
dateRangeVariant: "readonly",
|
|
1054
|
-
onAccountsFilterClick: () => p(Ee.CASH_FLOW_CLICK_FILTER),
|
|
1055
|
-
onBackClick: a,
|
|
1056
|
-
sx: n,
|
|
1057
|
-
title: h.title,
|
|
1058
|
-
children: [
|
|
1059
|
-
/* @__PURE__ */ e(Ot, {}),
|
|
1060
|
-
/* @__PURE__ */ e(Rt, {}),
|
|
1061
|
-
/* @__PURE__ */ e(
|
|
1062
|
-
Ge,
|
|
1063
|
-
{
|
|
1064
|
-
ariaLabelClose: h.close_settings_aria,
|
|
1065
|
-
isOpen: K,
|
|
1066
|
-
onClose: () => J(!1),
|
|
1067
|
-
shouldShowHeaderBorders: !1,
|
|
1068
|
-
title: S.action_title,
|
|
1069
|
-
children: /* @__PURE__ */ e(Ze, { defaultSelectedTab: re ? 1 : 0 })
|
|
1070
|
-
}
|
|
1071
|
-
)
|
|
1072
|
-
]
|
|
1073
|
-
}
|
|
1074
|
-
);
|
|
1075
|
-
}, Wn = T(Gt);
|
|
1076
|
-
class $n {
|
|
1066
|
+
) : /* @__PURE__ */ e(te, {});
|
|
1067
|
+
}, $n = T(Gt);
|
|
1068
|
+
class Mn {
|
|
1077
1069
|
fetchInstance;
|
|
1078
1070
|
constructor(n, t, i) {
|
|
1079
|
-
this.fetchInstance = new
|
|
1071
|
+
this.fetchInstance = new xt(n, t, void 0, i);
|
|
1080
1072
|
}
|
|
1081
|
-
addCashflowEvent = async (n) => this.fetchInstance.post(
|
|
1082
|
-
addCashflowSequence = async (n) => this.fetchInstance.post(
|
|
1083
|
-
getCashflowSequences = async () => this.fetchInstance.get(
|
|
1073
|
+
addCashflowEvent = async (n) => this.fetchInstance.post(z.CASHFLOW_EVENTS, { ...n }).then((t) => t);
|
|
1074
|
+
addCashflowSequence = async (n) => this.fetchInstance.post(z.CASHFLOW_SEQUENCES, { ...n }).then((t) => t.cashflow_sequence);
|
|
1075
|
+
getCashflowSequences = async () => this.fetchInstance.get(z.CASHFLOW_SEQUENCES).then((n) => n.cashflow_sequences);
|
|
1084
1076
|
getCashflowEventsByDateRange = async (n, t) => this.fetchInstance.get(
|
|
1085
|
-
`${
|
|
1077
|
+
`${z.CASHFLOW_EVENTS}/from/${B(n)}/to/${B(t)}`
|
|
1086
1078
|
).then((i) => i.cashflow_events);
|
|
1087
|
-
deleteCashflowSequence = async (n) => this.fetchInstance.delete(`${
|
|
1079
|
+
deleteCashflowSequence = async (n) => this.fetchInstance.delete(`${z.CASHFLOW_SEQUENCES}/${n}`).then((t) => t);
|
|
1088
1080
|
getProjectedCashflowEvents = async (n, t) => this.fetchInstance.get(
|
|
1089
|
-
`${
|
|
1081
|
+
`${z.CASHFLOW_SEQUENCES}/projected_events/from/${B(
|
|
1090
1082
|
n
|
|
1091
|
-
)}/to/${
|
|
1083
|
+
)}/to/${B(t)}`
|
|
1092
1084
|
).then((i) => i.cashflow_events);
|
|
1093
|
-
updateCashflowSequence = async (n) => this.fetchInstance.put(`${
|
|
1085
|
+
updateCashflowSequence = async (n) => this.fetchInstance.put(`${z.CASHFLOW_SEQUENCES}/${n.guid}`, n).then((t) => t.cashflow_sequence);
|
|
1094
1086
|
}
|
|
1095
1087
|
export {
|
|
1096
|
-
|
|
1088
|
+
Mn as CashflowApi,
|
|
1097
1089
|
Fn as CashflowMiniWidget,
|
|
1098
|
-
|
|
1099
|
-
|
|
1090
|
+
$n as CashflowOnboarding,
|
|
1091
|
+
zn as CashflowStore,
|
|
1100
1092
|
Wn as CashflowWidget
|
|
1101
1093
|
};
|