@mx-cartographer/experiences 7.2.12-alpha.san1 → 7.2.13-alpha.mm0
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/dist/{Account-CBQnFO6w.mjs → Account-B-CuHOYf.mjs} +1 -1
- package/dist/{AccountDetailsContent-BkurfGCr.mjs → AccountDetailsContent-bqByD9ea.mjs} +10 -10
- package/dist/{AccountDetailsHeader-CaIoP_2Q.mjs → AccountDetailsHeader-vcy67tuH.mjs} +8 -8
- package/dist/{AccountFields-CLbLAhLf.mjs → AccountFields-cUP-9Hm6.mjs} +5 -5
- package/dist/{AccountListItem-CPm3572e.mjs → AccountListItem-DChcf3SN.mjs} +4 -4
- package/dist/{AccountStore-DttEGFeu.mjs → AccountStore-D6KiXA1B.mjs} +29 -40
- package/dist/{Accounts-B5Yr0e_o.mjs → Accounts-IeEtQjzA.mjs} +1 -1
- package/dist/{BudgetUtil-wjoNuj7B.mjs → BudgetUtil-B2ZXyw-g.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-ZO9N26Kx.mjs → CategorySelectorDrawer-DUe4lH5-.mjs} +3 -3
- package/dist/{CategoryStore-C1IfDPCE.mjs → CategoryStore-BCcpI3oJ.mjs} +1 -1
- package/dist/{CategoryUtil-DUM8NuGO.mjs → CategoryUtil-BR3H5i6n.mjs} +1 -1
- package/dist/{ConnectDrawer-FyY0AWYQ.mjs → ConnectDrawer-DaFRU5st.mjs} +2 -2
- package/dist/{ConnectionsDrawer-Cd_rztVC.mjs → ConnectionsDrawer-DHJ7qdWL.mjs} +3 -3
- package/dist/{CurrencyInput-xH-hqry9.mjs → CurrencyInput-DUsQbkXb.mjs} +1 -1
- package/dist/{DateUtil-CBdcsyuk.mjs → DateUtil-BcuH7ErC.mjs} +3 -3
- package/dist/{DebtsStore-DB5U2WMC.mjs → DebtsStore-z3VARSO6.mjs} +1 -1
- package/dist/{Dialog-BPTr3qHE.mjs → Dialog-CWW597AF.mjs} +2 -2
- package/dist/Drawer-kEE73B87.mjs +113 -0
- package/dist/{ExportCsvAction-DlGZfm4y.mjs → ExportCsvAction-sX8Rg4Ov.mjs} +3 -3
- package/dist/FinstrongStore-F2c607dj.mjs +101 -0
- package/dist/{GoalStore-deVLYr7n.mjs → GoalStore-TD0BfzWX.mjs} +3 -3
- package/dist/{Help-BnPXM_N2.mjs → Help-B6dIcujh.mjs} +2 -2
- package/dist/{LineChart-Ct9DNmhS.mjs → LineChart-D4GI7nVh.mjs} +181 -209
- package/dist/{ListItemAction-uobBrm_a.mjs → ListItemAction-DHa3KJPs.mjs} +10 -10
- package/dist/{ManageIncome-CqNstpx_.mjs → ManageIncome-CMN_8uep.mjs} +78 -80
- package/dist/{MicroWidgetContainer-DEiRnYVa.mjs → MicroWidgetContainer-DpeqN9n3.mjs} +1 -1
- package/dist/{MiniWidgetContainer-CmXpTylX.mjs → MiniWidgetContainer-D0gfmbaF.mjs} +1 -1
- package/dist/{NetWorthStore-CUz0bwVm.mjs → NetWorthStore-B_1oulrt.mjs} +2 -2
- package/dist/{NotificationSettings-BKKuULAd.mjs → NotificationSettings-DqrkNMod.mjs} +5 -5
- package/dist/{OriginalBalanceAction-CCmnsd7y.mjs → OriginalBalanceAction-CWuVvRq9.mjs} +3 -3
- package/dist/{RecurringSettings-DfAMEAuh.mjs → RecurringSettings-BsP-YKPS.mjs} +4 -4
- package/dist/{RecurringTransactions-CngsRZ3K.mjs → RecurringTransactions-ej39mgA6.mjs} +44 -45
- package/dist/{RecurringTransactionsStore-C4RVULF8.mjs → RecurringTransactionsStore-DrzS1LmF.mjs} +1 -1
- package/dist/{SpendingData-BuJ03S9d.mjs → SpendingData-D5vsfYKo.mjs} +16 -16
- package/dist/{TransactionDetails-CabNHK_I.mjs → TransactionDetails-DW7T0W0z.mjs} +8 -11
- package/dist/{TransactionStore-DvOEbOzL.mjs → TransactionStore-DxPLdF3B.mjs} +3 -3
- package/dist/{TrendsStore-BVNxGsE4.mjs → TrendsStore-DCYbpXPO.mjs} +14 -14
- package/dist/{User-wXzDI4M8.mjs → User-BQUxBeZV.mjs} +2 -2
- package/dist/{WidgetContainer-GoNq8wwm.mjs → WidgetContainer-C88Ecu2W.mjs} +4 -4
- package/dist/accounts/index.es.js +14 -14
- package/dist/accounts/stores/AccountStore.d.ts +0 -2
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/index.es.js +12 -12
- package/dist/cashflow/index.es.js +131 -130
- package/dist/categories/index.es.js +2 -2
- package/dist/common/components/Select.d.ts +2 -4
- package/dist/common/components/charts/LineChart.d.ts +2 -8
- package/dist/common/components/charts/linechart/CustomMark.d.ts +0 -4
- package/dist/common/components/drawer/Drawer.d.ts +0 -3
- package/dist/common/index.es.js +33 -33
- package/dist/common/types/Finstrong.d.ts +0 -50
- package/dist/common/types/index.d.ts +1 -1
- package/dist/common/types/localization/FinstrongCopy.d.ts +1 -58
- package/dist/dashboard/index.es.js +2 -2
- package/dist/debts/index.es.js +11 -11
- package/dist/{exportTransactionsToCSV-hrNpJ77n.mjs → exportTransactionsToCSV-7bVS7KXf.mjs} +2 -2
- package/dist/finstrong/api/FinstrongApi.d.ts +0 -5
- package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +1 -3
- package/dist/finstrong/components/KeyIndicatorsBorrowTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsDrawer.d.ts +1 -4
- 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 +3 -4
- package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +2 -2
- package/dist/finstrong/index.es.js +1055 -3130
- package/dist/finstrong/stores/FinstrongStore.d.ts +1 -9
- package/dist/finstrong/util/finstrongUtils.d.ts +1 -58
- package/dist/finstrong/utils/Finstrong.d.ts +6 -0
- package/dist/goals/index.es.js +14 -14
- package/dist/help/index.es.js +3 -3
- package/dist/{hooks-C41HAxM5.mjs → hooks-D6XlXHf4.mjs} +3 -3
- package/dist/investments/index.es.js +4 -4
- package/dist/merchants/index.es.js +1 -1
- package/dist/networth/index.es.js +34 -34
- package/dist/notifications/index.es.js +4 -4
- package/dist/recurringtransactions/index.es.js +13 -13
- package/dist/settings/index.es.js +8 -8
- package/dist/spending/index.es.js +373 -222
- package/dist/transactions/index.es.js +15 -15
- package/dist/trends/index.es.js +94 -94
- package/dist/{useAccountDisplayName-B5O6hQ1B.mjs → useAccountDisplayName-BcRqfar8.mjs} +2 -2
- package/dist/{useInsightsEnabled-CNjP5cfR.mjs → useInsightsEnabled-DBpwEq10.mjs} +1 -1
- package/package.json +1 -1
- package/dist/Drawer-BEtCk82g.mjs +0 -163
- package/dist/FinstrongStore-CJBV4K5Y.mjs +0 -432
- package/dist/SpendingLegend-squvjEhu.mjs +0 -170
- package/dist/accounts/components/AccountsListCompact.d.ts +0 -10
- package/dist/common/components/drawer/Footer.d.ts +0 -17
- package/dist/finstrong/components/CreditScore/CreditScoreContent.d.ts +0 -4
- package/dist/finstrong/components/CreditScore/CreditScoreHeader.d.ts +0 -4
- package/dist/finstrong/components/HaveManageableDebt/DebtPaymentTabContent.d.ts +0 -3
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtComponent.d.ts +0 -3
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtProgressBar.d.ts +0 -4
- package/dist/finstrong/components/HaveManageableDebt/IncomeTabContent.d.ts +0 -3
- package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.d.ts +0 -10
- package/dist/finstrong/components/MaintainingEmergencySavings/EstimatedContributionCalculator.d.ts +0 -6
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsContent.d.ts +0 -4
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsSticky.d.ts +0 -4
- package/dist/finstrong/components/ProgressBar.d.ts +0 -15
- package/dist/finstrong/components/SaveEnoughToLiveOn/AvailableTabContent.d.ts +0 -3
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnDrawerContent.d.ts +0 -3
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnProgressBar.d.ts +0 -4
- package/dist/finstrong/components/SaveEnoughToLiveOn/SpendingTabContent.d.ts +0 -3
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeComponent.d.ts +0 -3
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeProgressBar.d.ts +0 -4
- package/dist/finstrong/components/StatusChip.d.ts +0 -5
- package/dist/finstrong/components/onboarding/Onboarding.d.ts +0 -2
- package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +0 -11
- package/dist/finstrong/components/onboarding/OnboardingBirthday.d.ts +0 -8
- package/dist/finstrong/components/onboarding/OnboardingCreditScore.d.ts +0 -8
- package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +0 -14
- package/dist/finstrong/components/onboarding/OnboardingStepsHeader.d.ts +0 -8
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeDrawerComponent.d.ts +0 -4
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeStickyComponent.d.ts +0 -4
- package/dist/finstrong/components/shared/Accounts.d.ts +0 -8
- package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +0 -25
- package/dist/finstrong/components/shared/DoubleBarChart.d.ts +0 -28
- package/dist/finstrong/components/shared/LineGraph.d.ts +0 -7
- package/dist/finstrong/components/shared/TotalCard.d.ts +0 -8
- package/dist/finstrong/components/shared/TransactionList.d.ts +0 -15
- package/dist/finstrong/components/shared/Transactions.d.ts +0 -11
- package/dist/finstrong/constants/index.d.ts +0 -8
|
@@ -2,57 +2,57 @@ import { jsxs as o, Fragment as P, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import f, { useState as ee } from "react";
|
|
3
3
|
import { observer as T } from "mobx-react-lite";
|
|
4
4
|
import { addMonths as Xe } from "date-fns/addMonths";
|
|
5
|
-
import { startOfToday as
|
|
5
|
+
import { startOfToday as W } from "date-fns/startOfToday";
|
|
6
6
|
import I from "@mui/material/Box";
|
|
7
|
-
import
|
|
7
|
+
import D from "@mui/material/Divider";
|
|
8
8
|
import s from "@mui/material/Stack";
|
|
9
9
|
import le from "@mui/material/styles/useTheme";
|
|
10
|
-
import { Text as u, P as
|
|
11
|
-
import { G as Qe, v as he, u as
|
|
10
|
+
import { Text as u, P as O, Icon as j, InstitutionLogo as ye, H1 as ue, H2 as Ye } from "@mxenabled/mxui";
|
|
11
|
+
import { G as Qe, v as he, u as N, q as de, d as Oe, b as X, j as q, g as ke, p as He, h as Fe, a as Ve } from "../hooks-D6XlXHf4.mjs";
|
|
12
12
|
import { C as L } from "../CurrencyText-kyC1aseI.mjs";
|
|
13
13
|
import { u as pe } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
14
14
|
import { L as oe } from "../Loader-DUaFpDGv.mjs";
|
|
15
15
|
import { I as fe } from "../CashflowStore-D9Dpuz7X.mjs";
|
|
16
16
|
import { C as jn } from "../CashflowStore-D9Dpuz7X.mjs";
|
|
17
|
-
import { b as
|
|
18
|
-
import { M as Ke } from "../MiniWidgetContainer-
|
|
17
|
+
import { b as $ } from "../Localization-2MODESHW.mjs";
|
|
18
|
+
import { M as Ke } from "../MiniWidgetContainer-D0gfmbaF.mjs";
|
|
19
19
|
import { E as Je } from "../EmptyState-DA_lfRBv.mjs";
|
|
20
|
-
import { R as Ze } from "../RecurringSettings-
|
|
20
|
+
import { R as Ze } from "../RecurringSettings-BsP-YKPS.mjs";
|
|
21
21
|
import et from "@mui/material/Tabs";
|
|
22
22
|
import Ce from "@mui/material/Tab";
|
|
23
23
|
import { getUnixTime as U } from "date-fns/getUnixTime";
|
|
24
24
|
import ne from "@mui/material/List";
|
|
25
25
|
import ae from "@mui/material/ListItem";
|
|
26
|
-
import { A as tt } from "../AccountListItem-
|
|
27
|
-
import { f as Y,
|
|
26
|
+
import { A as tt } from "../AccountListItem-DChcf3SN.mjs";
|
|
27
|
+
import { f as Y, D as Q } from "../Dialog-CWW597AF.mjs";
|
|
28
28
|
import nt from "@mui/material/ListSubheader";
|
|
29
29
|
import { f as te } from "../NumberFormatting-Buh7u8Oi.mjs";
|
|
30
|
-
import { isAfter as
|
|
31
|
-
import { isBefore as
|
|
32
|
-
import { isToday as
|
|
33
|
-
import { addDays as
|
|
30
|
+
import { isAfter as Me } from "date-fns/isAfter";
|
|
31
|
+
import { isBefore as We } from "date-fns/isBefore";
|
|
32
|
+
import { isToday as $e } from "date-fns/isToday";
|
|
33
|
+
import { addDays as we } 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 _e, c as lt } from "../ManageIncome-
|
|
39
|
-
import { D as Ge } from "../Drawer-
|
|
40
|
-
import {
|
|
38
|
+
import { M as rt, S as st, i as ct, d as _e, c as lt } from "../ManageIncome-CMN_8uep.mjs";
|
|
39
|
+
import { D as Ge } from "../Drawer-kEE73B87.mjs";
|
|
40
|
+
import { format as dt } from "date-fns/format";
|
|
41
41
|
import { fromUnixTime as Ie } from "date-fns/fromUnixTime";
|
|
42
42
|
import { startOfMonth as mt } from "date-fns/startOfMonth";
|
|
43
43
|
import { subDays as je } from "date-fns/subDays";
|
|
44
|
-
import { S as ut, b as ht } from "../TransactionDetails-
|
|
45
|
-
import { F as pt, R as
|
|
46
|
-
import { h as ft } from "../DateUtil-
|
|
44
|
+
import { S as ut, b as ht } from "../TransactionDetails-DW7T0W0z.mjs";
|
|
45
|
+
import { F as pt, R as De, e as ve } from "../RecurringTransactions-ej39mgA6.mjs";
|
|
46
|
+
import { h as ft } from "../DateUtil-BcuH7ErC.mjs";
|
|
47
47
|
import { endOfToday as gt } from "date-fns/endOfToday";
|
|
48
|
-
import { W as Ae, A as Ee } from "../WidgetContainer-
|
|
48
|
+
import { W as Ae, A as Ee } from "../WidgetContainer-C88Ecu2W.mjs";
|
|
49
49
|
import { F as bt, A as B } from "../Fetch-87LIQbEA.mjs";
|
|
50
50
|
const V = () => {
|
|
51
51
|
if (!f.useContext(Qe))
|
|
52
52
|
throw new Error("useCashflowUiStore() must be used within the GlobalDataContext");
|
|
53
53
|
return he().uiStore;
|
|
54
54
|
}, xt = ({ remaining: a }) => {
|
|
55
|
-
const { cashflow: n } =
|
|
55
|
+
const { cashflow: n } = N();
|
|
56
56
|
return /* @__PURE__ */ o(P, { children: [
|
|
57
57
|
/* @__PURE__ */ e(
|
|
58
58
|
I,
|
|
@@ -69,32 +69,32 @@ const V = () => {
|
|
|
69
69
|
/* @__PURE__ */ e(L, { amount: a, bold: !0, sx: { fontSize: 12 } })
|
|
70
70
|
] });
|
|
71
71
|
}, ge = T(xt), yt = () => {
|
|
72
|
-
const a = le(), { availableWidth: n } = de(), { isMobile: t } = pe(), { visibleCashAccounts: i, visibleCashBalance: g } =
|
|
72
|
+
const a = le(), { availableWidth: n } = de(), { isMobile: t } = pe(), { visibleCashAccounts: i, visibleCashBalance: g } = Oe(), { selectedAccounts: x, selectedAccountGuids: m, setSelectedAccounts: p } = X(), { cashflow: c } = N(), {
|
|
73
73
|
daysUntilNextIncome: r,
|
|
74
74
|
expensesTilNextIncome: d,
|
|
75
75
|
selectedCashAccounts: l,
|
|
76
76
|
setNextIncome: b,
|
|
77
77
|
setSelectedCashAccounts: C,
|
|
78
78
|
setUpcomingExpenses: _
|
|
79
|
-
} = V(), { isDataLoaded: k, nextIncomeRecurrence:
|
|
79
|
+
} = V(), { isDataLoaded: k, nextIncomeRecurrence: v, upcomingExpenses: F } = q();
|
|
80
80
|
f.useEffect(() => {
|
|
81
81
|
p(i);
|
|
82
82
|
}, [i]), f.useEffect(() => {
|
|
83
83
|
C(
|
|
84
|
-
i.filter((
|
|
84
|
+
i.filter((S) => m.includes(S.guid))
|
|
85
85
|
);
|
|
86
86
|
}, [i, x]), f.useEffect(() => {
|
|
87
|
-
|
|
88
|
-
}, [
|
|
87
|
+
v && b(v), _(F);
|
|
88
|
+
}, [v, F]);
|
|
89
89
|
const h = f.useMemo(
|
|
90
|
-
() => i.filter((
|
|
90
|
+
() => i.filter((S) => m.includes(S.guid)).reduce((S, z) => S + (z?.balance || 0), 0),
|
|
91
91
|
[m, F]
|
|
92
|
-
),
|
|
93
|
-
() => d.filter((
|
|
92
|
+
), w = f.useMemo(
|
|
93
|
+
() => d.filter((S) => m.includes(S.accountGuid || "")).reduce((S, z) => S + z.amount, 0),
|
|
94
94
|
[m, d]
|
|
95
95
|
), A = f.useMemo(
|
|
96
|
-
() => h -
|
|
97
|
-
[h,
|
|
96
|
+
() => h - w,
|
|
97
|
+
[h, w]
|
|
98
98
|
);
|
|
99
99
|
return k ? /* @__PURE__ */ e(I, { className: "mx-cashflow", pl: 16, pr: 16, pt: 16, children: n > 710 ? /* @__PURE__ */ o(
|
|
100
100
|
s,
|
|
@@ -107,44 +107,44 @@ const V = () => {
|
|
|
107
107
|
children: [
|
|
108
108
|
/* @__PURE__ */ o(s, { pb: 14, pt: 12, children: [
|
|
109
109
|
/* @__PURE__ */ e(L, { amount: h, variant: "H2" }),
|
|
110
|
-
/* @__PURE__ */ e(
|
|
110
|
+
/* @__PURE__ */ e(O, { variant: "XSmall", whiteSpace: "nowrap", children: $(
|
|
111
111
|
c.total_cash_accounts,
|
|
112
112
|
l.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(
|
|
117
|
+
/* @__PURE__ */ e(L, { amount: w, variant: "H2" }),
|
|
118
|
+
/* @__PURE__ */ e(O, { variant: "XSmall", whiteSpace: "nowrap", children: $(c.expenses_due, d.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
122
|
/* @__PURE__ */ e(L, { amount: A, variant: "H2" }),
|
|
123
123
|
/* @__PURE__ */ o(s, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
124
|
-
/* @__PURE__ */ e(
|
|
124
|
+
/* @__PURE__ */ e(O, { variant: "XSmall", whiteSpace: "nowrap", children: c.available_to_spend }),
|
|
125
125
|
/* @__PURE__ */ e(fe, { body: c.tooltip_body, title: c.tooltip_title })
|
|
126
126
|
] })
|
|
127
127
|
] }),
|
|
128
128
|
/* @__PURE__ */ e(s, { borderLeft: `1px solid ${a.palette.border.light}`, pb: 12, pl: 24, pt: 12, children: /* @__PURE__ */ o(P, { children: [
|
|
129
|
-
/* @__PURE__ */ e(u, { variant: "H2", children:
|
|
130
|
-
/* @__PURE__ */ e(
|
|
129
|
+
/* @__PURE__ */ e(u, { variant: "H2", children: $(c.days, r) }),
|
|
130
|
+
/* @__PURE__ */ e(O, { variant: "XSmall", whiteSpace: "nowrap", children: c.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(u, { variant: "Small", children:
|
|
136
|
+
/* @__PURE__ */ e(u, { variant: "Small", children: $(
|
|
137
137
|
c.total_cash_accounts,
|
|
138
138
|
l.length
|
|
139
139
|
) }),
|
|
140
140
|
/* @__PURE__ */ e(L, { amount: g, bold: !0, variant: "XSmall" })
|
|
141
141
|
] }),
|
|
142
|
-
/* @__PURE__ */ e(
|
|
142
|
+
/* @__PURE__ */ e(D, {}),
|
|
143
143
|
/* @__PURE__ */ o(s, { direction: "row", justifyContent: "space-between", p: 16, children: [
|
|
144
|
-
/* @__PURE__ */ e(u, { variant: "Small", children:
|
|
145
|
-
/* @__PURE__ */ e(L, { amount:
|
|
144
|
+
/* @__PURE__ */ e(u, { variant: "Small", children: $(c.expenses_due, d.length) }),
|
|
145
|
+
/* @__PURE__ */ e(L, { amount: w, bold: !0, symbol: "-", variant: "XSmall" })
|
|
146
146
|
] }),
|
|
147
|
-
/* @__PURE__ */ e(
|
|
147
|
+
/* @__PURE__ */ e(D, {}),
|
|
148
148
|
/* @__PURE__ */ e(
|
|
149
149
|
s,
|
|
150
150
|
{
|
|
@@ -159,20 +159,20 @@ const V = () => {
|
|
|
159
159
|
children: /* @__PURE__ */ e(ge, { remaining: A })
|
|
160
160
|
}
|
|
161
161
|
),
|
|
162
|
-
/* @__PURE__ */ e(
|
|
162
|
+
/* @__PURE__ */ e(D, {}),
|
|
163
163
|
/* @__PURE__ */ o(s, { direction: "row", justifyContent: "space-between", p: 16, children: [
|
|
164
164
|
/* @__PURE__ */ e(u, { variant: "Small", children: c.next_paycheck }),
|
|
165
|
-
/* @__PURE__ */ e(u, { bold: !0, variant: "XSmall", children:
|
|
165
|
+
/* @__PURE__ */ e(u, { bold: !0, variant: "XSmall", children: $(c.days, r) })
|
|
166
166
|
] })
|
|
167
167
|
] }) }) : /* @__PURE__ */ e(oe, { height: t ? 210 : 120 });
|
|
168
|
-
}, Ct = T(yt),
|
|
168
|
+
}, Ct = T(yt), wt = ({
|
|
169
169
|
onPrimaryCtaClick: a,
|
|
170
170
|
onSecondaryCtaClick: n,
|
|
171
171
|
sx: t = {}
|
|
172
172
|
}) => {
|
|
173
|
-
const { cashflow: i } =
|
|
173
|
+
const { cashflow: i } = N(), { isCopyLoaded: g, isInitialized: x } = X(), { loadRepeatingTransactions: m, income: p, isDataLoaded: c, setDateRange: r } = q();
|
|
174
174
|
f.useEffect(() => {
|
|
175
|
-
x && (r({ start:
|
|
175
|
+
x && (r({ start: W(), end: Xe(W(), 1) }), m().finally());
|
|
176
176
|
}, [x]);
|
|
177
177
|
const d = c && !p.length;
|
|
178
178
|
return g ? /* @__PURE__ */ o(
|
|
@@ -200,7 +200,7 @@ const V = () => {
|
|
|
200
200
|
]
|
|
201
201
|
}
|
|
202
202
|
) : /* @__PURE__ */ e(oe, {});
|
|
203
|
-
}, Fn = T(
|
|
203
|
+
}, Fn = T(wt), St = ({ remaining: a }) => /* @__PURE__ */ e(
|
|
204
204
|
ae,
|
|
205
205
|
{
|
|
206
206
|
sx: {
|
|
@@ -233,9 +233,9 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
233
233
|
}
|
|
234
234
|
)
|
|
235
235
|
] }),
|
|
236
|
-
/* @__PURE__ */ e(
|
|
236
|
+
/* @__PURE__ */ e(D, {})
|
|
237
237
|
] }), Te = T(_t), It = ({ total: a, type: n }) => {
|
|
238
|
-
const { cashflow: t } =
|
|
238
|
+
const { cashflow: t } = N();
|
|
239
239
|
return /* @__PURE__ */ o(P, { children: [
|
|
240
240
|
/* @__PURE__ */ o(
|
|
241
241
|
nt,
|
|
@@ -258,10 +258,10 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
258
258
|
]
|
|
259
259
|
}
|
|
260
260
|
),
|
|
261
|
-
/* @__PURE__ */ e(
|
|
261
|
+
/* @__PURE__ */ e(D, {})
|
|
262
262
|
] });
|
|
263
|
-
}, Re = T(It), ce = (a, n) => (t) => t.accountGuid === a.guid && (
|
|
264
|
-
const { availableWidth: a } = de(), { cashflow: n } =
|
|
263
|
+
}, Re = T(It), ce = (a, n) => (t) => t.accountGuid === a.guid && ($e(t.expectedDate) || Me(t.expectedDate, n.start)) && We(t.expectedDate, n.end), Dt = () => {
|
|
264
|
+
const { availableWidth: a } = de(), { cashflow: n } = N(), { upcomingExpenses: t, upcomingIncome: i } = q(), { dateRange: g, selectedCashAccounts: x } = V();
|
|
265
265
|
return /* @__PURE__ */ o(s, { children: [
|
|
266
266
|
/* @__PURE__ */ o(s, { direction: a < 400 ? "column" : "row", justifyContent: "space-between", children: [
|
|
267
267
|
/* @__PURE__ */ e(u, { bold: !0, sx: { fontSize: 15, mb: 12, whiteSpace: "normal" }, children: n.accounts_breakdown }),
|
|
@@ -303,7 +303,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
305
|
),
|
|
306
|
-
/* @__PURE__ */ e(
|
|
306
|
+
/* @__PURE__ */ e(D, {}),
|
|
307
307
|
p.length > 0 && /* @__PURE__ */ e(ae, { children: /* @__PURE__ */ e(
|
|
308
308
|
ne,
|
|
309
309
|
{
|
|
@@ -321,7 +321,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
321
321
|
}
|
|
322
322
|
) }),
|
|
323
323
|
/* @__PURE__ */ e(
|
|
324
|
-
|
|
324
|
+
St,
|
|
325
325
|
{
|
|
326
326
|
remaining: (m.available_balance || m.balance || 0) + r - d
|
|
327
327
|
}
|
|
@@ -332,8 +332,8 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
332
332
|
);
|
|
333
333
|
}) })
|
|
334
334
|
] });
|
|
335
|
-
},
|
|
336
|
-
const { availableWidth: a } = de(), n = le(), { cashflow: t } =
|
|
335
|
+
}, vt = T(Dt), At = () => {
|
|
336
|
+
const { availableWidth: a } = de(), n = le(), { cashflow: t } = N(), { upcomingExpenses: i, upcomingIncome: g } = q(), { dateRange: x, selectedCashAccounts: m } = V(), p = [
|
|
337
337
|
{
|
|
338
338
|
field: "account",
|
|
339
339
|
flex: 1.5,
|
|
@@ -393,9 +393,9 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
393
393
|
}
|
|
394
394
|
], c = f.useMemo(() => m.map((r) => {
|
|
395
395
|
const d = i.filter(
|
|
396
|
-
ce(r, { start:
|
|
396
|
+
ce(r, { start: W(), end: we(W(), 30) })
|
|
397
397
|
).reduce((C, _) => C + _.amount, 0), l = g.filter(
|
|
398
|
-
ce(r, { start:
|
|
398
|
+
ce(r, { start: W(), end: we(W(), 30) })
|
|
399
399
|
).reduce((C, _) => C + _.amount, 0), b = (r.balance || 0) + l - d;
|
|
400
400
|
return {
|
|
401
401
|
account: r,
|
|
@@ -515,7 +515,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
515
515
|
]
|
|
516
516
|
}
|
|
517
517
|
),
|
|
518
|
-
/* @__PURE__ */ e(
|
|
518
|
+
/* @__PURE__ */ e(D, { sx: { width: "100%" } }),
|
|
519
519
|
/* @__PURE__ */ o(
|
|
520
520
|
s,
|
|
521
521
|
{
|
|
@@ -530,7 +530,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
530
530
|
]
|
|
531
531
|
}
|
|
532
532
|
),
|
|
533
|
-
/* @__PURE__ */ e(
|
|
533
|
+
/* @__PURE__ */ e(D, { sx: { width: "100%" } }),
|
|
534
534
|
/* @__PURE__ */ o(
|
|
535
535
|
s,
|
|
536
536
|
{
|
|
@@ -545,7 +545,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
545
545
|
]
|
|
546
546
|
}
|
|
547
547
|
),
|
|
548
|
-
/* @__PURE__ */ e(
|
|
548
|
+
/* @__PURE__ */ e(D, { sx: { width: "100%" } }),
|
|
549
549
|
/* @__PURE__ */ e(
|
|
550
550
|
s,
|
|
551
551
|
{
|
|
@@ -569,7 +569,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
569
569
|
}
|
|
570
570
|
);
|
|
571
571
|
}, Et = T(At), Tt = () => {
|
|
572
|
-
const { cashflow: a } =
|
|
572
|
+
const { cashflow: a } = N(), { isDesktop: n } = pe(), { onEvent: t } = ke(), [i, g] = f.useState(0), x = (m, p) => {
|
|
573
573
|
g(p);
|
|
574
574
|
};
|
|
575
575
|
return f.useEffect(() => {
|
|
@@ -611,8 +611,8 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
611
611
|
}
|
|
612
612
|
),
|
|
613
613
|
/* @__PURE__ */ e(I, { sx: { mb: 32 } }),
|
|
614
|
-
/* @__PURE__ */ e(
|
|
615
|
-
/* @__PURE__ */ e(
|
|
614
|
+
/* @__PURE__ */ e(Se, { index: 0, name: "cashflow", value: i, children: /* @__PURE__ */ e(I, { sx: { m: n ? 48 : 16 }, children: /* @__PURE__ */ e(Et, {}) }) }),
|
|
615
|
+
/* @__PURE__ */ e(Se, { index: 1, name: "cashflow", value: i, children: /* @__PURE__ */ e(I, { sx: { m: n ? 48 : 16 }, children: /* @__PURE__ */ e(vt, {}) }) })
|
|
616
616
|
] });
|
|
617
617
|
}, Rt = T(Tt), se = ({
|
|
618
618
|
amount: a,
|
|
@@ -638,17 +638,17 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
638
638
|
n && /* @__PURE__ */ e(L, { amount: a, component: "h2", symbol: g, variant: "Small" })
|
|
639
639
|
]
|
|
640
640
|
}
|
|
641
|
-
), Le = (a, n) => (t) => t.accountGuid && a.includes(t.accountGuid) && (
|
|
642
|
-
const { availableWidth: a } = de(), { cashflow: n } =
|
|
641
|
+
), Le = (a, n) => (t) => t.accountGuid && a.includes(t.accountGuid) && ($e(t.expectedDate) || Me(t.expectedDate, n.start)) && We(t.expectedDate, n.end), Lt = () => {
|
|
642
|
+
const { availableWidth: a } = de(), { cashflow: n } = N(), { income: t, isDataLoaded: i, upcomingExpenses: g, upcomingIncome: x } = q(), { selectedAccountGuids: m } = X(), { dateRange: p, selectedCashAccounts: c } = V(), [r, d] = f.useState(!1), l = f.useMemo(
|
|
643
643
|
() => g.filter(Le(m, p)),
|
|
644
644
|
[p, m, g]
|
|
645
645
|
), b = f.useMemo(
|
|
646
646
|
() => x.filter(Le(m, p)),
|
|
647
647
|
[p, m, x]
|
|
648
648
|
), C = f.useMemo(
|
|
649
|
-
() => c.reduce((
|
|
649
|
+
() => c.reduce((w, A) => w + (A?.balance || 0), 0),
|
|
650
650
|
[c]
|
|
651
|
-
), _ = l.reduce((
|
|
651
|
+
), _ = l.reduce((w, A) => w + A.amount, 0), k = b.reduce((w, A) => w + A.amount, 0), v = C - _ + k, F = i && t.length > 0, h = a < 725;
|
|
652
652
|
return /* @__PURE__ */ o(s, { sx: { mx: h ? 16 : 0, my: h ? 24 : 42 }, children: [
|
|
653
653
|
/* @__PURE__ */ o(
|
|
654
654
|
s,
|
|
@@ -665,10 +665,10 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
665
665
|
{
|
|
666
666
|
amount: C,
|
|
667
667
|
isMobile: h,
|
|
668
|
-
label:
|
|
668
|
+
label: $(n.cash_and_bank, c.length)
|
|
669
669
|
}
|
|
670
670
|
),
|
|
671
|
-
h && /* @__PURE__ */ e(
|
|
671
|
+
h && /* @__PURE__ */ e(D, {}),
|
|
672
672
|
F ? /* @__PURE__ */ o(P, { children: [
|
|
673
673
|
!h && /* @__PURE__ */ e(u, { sx: { fontSize: 25, lineHeight: 1 }, children: "+" }),
|
|
674
674
|
/* @__PURE__ */ e(
|
|
@@ -689,21 +689,21 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
689
689
|
children: n.add_income
|
|
690
690
|
}
|
|
691
691
|
),
|
|
692
|
-
h ? /* @__PURE__ */ e(
|
|
692
|
+
h ? /* @__PURE__ */ e(D, {}) : /* @__PURE__ */ e(u, { sx: { fontSize: 25, lineHeight: 1 }, children: "-" }),
|
|
693
693
|
/* @__PURE__ */ e(
|
|
694
694
|
se,
|
|
695
695
|
{
|
|
696
696
|
amount: _,
|
|
697
697
|
isMobile: h,
|
|
698
|
-
label:
|
|
698
|
+
label: $(n.to_be_paid_out, l.length),
|
|
699
699
|
symbol: h ? "-" : void 0
|
|
700
700
|
}
|
|
701
701
|
),
|
|
702
|
-
h ? /* @__PURE__ */ e(
|
|
702
|
+
h ? /* @__PURE__ */ e(D, {}) : /* @__PURE__ */ e(u, { sx: { fontSize: 25, lineHeight: 1 }, children: "=" }),
|
|
703
703
|
/* @__PURE__ */ e(
|
|
704
704
|
se,
|
|
705
705
|
{
|
|
706
|
-
amount:
|
|
706
|
+
amount: v,
|
|
707
707
|
isMobile: h,
|
|
708
708
|
isTotal: h,
|
|
709
709
|
label: n.remaining_cash,
|
|
@@ -731,8 +731,8 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
731
731
|
}
|
|
732
732
|
)
|
|
733
733
|
] });
|
|
734
|
-
},
|
|
735
|
-
const { completeOnboarding: n } = he(), { cashflow: t } =
|
|
734
|
+
}, Nt = T(Lt), Ot = ({ handleNextStep: a }) => {
|
|
735
|
+
const { completeOnboarding: n } = he(), { cashflow: t } = N(), i = le();
|
|
736
736
|
return /* @__PURE__ */ o(s, { children: [
|
|
737
737
|
/* @__PURE__ */ e(ue, { pb: 12, children: t.welcome_title }),
|
|
738
738
|
/* @__PURE__ */ e(
|
|
@@ -745,9 +745,9 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
745
745
|
children: t.welcome_sub_title
|
|
746
746
|
}
|
|
747
747
|
),
|
|
748
|
-
/* @__PURE__ */ e(
|
|
748
|
+
/* @__PURE__ */ e(O, { pb: 32, children: t.welcome_description }),
|
|
749
749
|
/* @__PURE__ */ o(s, { direction: "column", mb: 32, spacing: 32, children: [
|
|
750
|
-
/* @__PURE__ */ o(
|
|
750
|
+
/* @__PURE__ */ o(O, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
|
|
751
751
|
/* @__PURE__ */ e(
|
|
752
752
|
I,
|
|
753
753
|
{
|
|
@@ -763,7 +763,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
763
763
|
),
|
|
764
764
|
t.bullet_one
|
|
765
765
|
] }),
|
|
766
|
-
/* @__PURE__ */ o(
|
|
766
|
+
/* @__PURE__ */ o(O, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
|
|
767
767
|
/* @__PURE__ */ e(
|
|
768
768
|
I,
|
|
769
769
|
{
|
|
@@ -779,7 +779,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
779
779
|
),
|
|
780
780
|
t.bullet_two
|
|
781
781
|
] }),
|
|
782
|
-
/* @__PURE__ */ o(
|
|
782
|
+
/* @__PURE__ */ o(O, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
|
|
783
783
|
/* @__PURE__ */ e(
|
|
784
784
|
I,
|
|
785
785
|
{
|
|
@@ -801,50 +801,51 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
801
801
|
/* @__PURE__ */ e(G, { onClick: n, variant: "outlined", children: t.skip_button })
|
|
802
802
|
] })
|
|
803
803
|
] });
|
|
804
|
-
}, kt = T(
|
|
805
|
-
CASHFLOW_ONBOARDING: `${
|
|
806
|
-
CASHFLOW_LOADING_ANIMATION: `${
|
|
804
|
+
}, kt = T(Ot), Ne = "https://content.moneydesktop.com/storage/MD_Assets/md/cashflow", ze = {
|
|
805
|
+
CASHFLOW_ONBOARDING: `${Ne}/cashflow-onboarding.png`,
|
|
806
|
+
CASHFLOW_LOADING_ANIMATION: `${Ne}/loading-animation.gif`
|
|
807
807
|
}, Ht = () => {
|
|
808
|
-
const { cashflow: a } =
|
|
808
|
+
const { cashflow: a } = N();
|
|
809
809
|
return /* @__PURE__ */ o(f.Fragment, { children: [
|
|
810
810
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("img", { alt: "Loading", src: ze.CASHFLOW_LOADING_ANIMATION }) }),
|
|
811
811
|
/* @__PURE__ */ e(ue, { pb: 12, children: a.loading_title }),
|
|
812
|
-
/* @__PURE__ */ e(
|
|
812
|
+
/* @__PURE__ */ e(O, { children: a.loading_description })
|
|
813
813
|
] });
|
|
814
|
-
}, Ft = T(Ht),
|
|
814
|
+
}, Ft = T(Ht), Mt = at`
|
|
815
815
|
from {
|
|
816
816
|
transform: rotate(0deg);
|
|
817
817
|
}
|
|
818
818
|
to {
|
|
819
819
|
transform: rotate(360deg);
|
|
820
820
|
}
|
|
821
|
-
`,
|
|
822
|
-
const { addRepeatingTransaction: a, repeatingTransactions: n } = q(), { cashflow: t, common: i } =
|
|
821
|
+
`, Wt = () => {
|
|
822
|
+
const { addRepeatingTransaction: a, repeatingTransactions: n } = q(), { cashflow: t, common: i } = N(), { user: g } = He(), { completeOnboarding: x } = he(), { isDirty: m } = V(), { isMobile: p } = pe(), { isCopyLoaded: c, setDisplayedDate: r } = X(), { filter: d, setFilter: l, transactions: b } = Fe(), C = le(), [_, k] = ee(!0), [v, F] = f.useState(pt.EveryMonth), [h, w] = f.useState(1), [A, S] = f.useState(15), [z, re] = ee(!1), [K, J] = ee(1), [R, me] = ee([]), [Z, H] = ee(""), M = f.useMemo(
|
|
823
823
|
() => b.find((y) => y.guid === Z),
|
|
824
824
|
[Z, b]
|
|
825
825
|
), Be = !!n.filter(
|
|
826
|
-
(y) => y.repeating_transaction_type ===
|
|
826
|
+
(y) => y.repeating_transaction_type === De.Income
|
|
827
827
|
).length, be = async () => {
|
|
828
828
|
J(2), r(
|
|
829
829
|
// Beginning of the month, 90 days before today
|
|
830
|
-
mt(je(
|
|
831
|
-
|
|
830
|
+
mt(je(W(), 90)),
|
|
831
|
+
W()
|
|
832
832
|
), l({ ...d, custom: _e }), J(3);
|
|
833
833
|
}, Ue = async () => {
|
|
834
834
|
if (!(R.length < 1)) {
|
|
835
835
|
re(!0);
|
|
836
836
|
for (let y = 0; y < R.length; y++) {
|
|
837
|
-
const E = R[y], xe =
|
|
837
|
+
const E = R[y], xe = ve(v, Ie(E.date)), qe = {
|
|
838
838
|
account_guid: E.account_guid,
|
|
839
839
|
amount: E.amount,
|
|
840
840
|
created_by: 0,
|
|
841
841
|
//user
|
|
842
842
|
merchant_guid: E.merchant_guid,
|
|
843
843
|
description: E.feed_description || E.description,
|
|
844
|
-
|
|
844
|
+
// Do I need to use format here instead of formatISO?
|
|
845
|
+
predicted_occurs_on: dt(xe, "yyyy-MM-dd"),
|
|
845
846
|
recurrence_day: xe.getDay(),
|
|
846
|
-
recurrence_type:
|
|
847
|
-
repeating_transaction_type:
|
|
847
|
+
recurrence_type: v,
|
|
848
|
+
repeating_transaction_type: De.Income,
|
|
848
849
|
second_recurrence_day: A,
|
|
849
850
|
transaction_type: E.transaction_type,
|
|
850
851
|
user_guid: g.guid
|
|
@@ -853,7 +854,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
853
854
|
}
|
|
854
855
|
await x();
|
|
855
856
|
}
|
|
856
|
-
}, Pe = !
|
|
857
|
+
}, Pe = !M && _ || !M && R.length < 1;
|
|
857
858
|
return c ? /* @__PURE__ */ o(
|
|
858
859
|
I,
|
|
859
860
|
{
|
|
@@ -894,17 +895,17 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
894
895
|
},
|
|
895
896
|
children: [
|
|
896
897
|
/* @__PURE__ */ e(ue, { pb: 12, children: t.add_income_title }),
|
|
897
|
-
/* @__PURE__ */ e(
|
|
898
|
-
R.length > 0 && !
|
|
898
|
+
/* @__PURE__ */ e(O, { mb: 24, children: t.add_income_description }),
|
|
899
|
+
R.length > 0 && !M && /* @__PURE__ */ o(P, { children: [
|
|
899
900
|
/* @__PURE__ */ e(ne, { children: R.map((y, E) => /* @__PURE__ */ o(f.Fragment, { children: [
|
|
900
901
|
/* @__PURE__ */ e(ut, { bgcolor: "background.paper", children: ft(
|
|
901
902
|
U(y.nextDate || y.date)
|
|
902
903
|
) }),
|
|
903
904
|
/* @__PURE__ */ e(ht, { transaction: y }),
|
|
904
|
-
E !== R.length - 1 && /* @__PURE__ */ e(
|
|
905
|
+
E !== R.length - 1 && /* @__PURE__ */ e(D, {})
|
|
905
906
|
] }, y.guid)) }),
|
|
906
907
|
/* @__PURE__ */ o(s, { alignItems: "center", direction: "row", children: [
|
|
907
|
-
/* @__PURE__ */ e(
|
|
908
|
+
/* @__PURE__ */ e(D, { sx: { flexGrow: 1 } }),
|
|
908
909
|
/* @__PURE__ */ e(
|
|
909
910
|
G,
|
|
910
911
|
{
|
|
@@ -928,32 +929,32 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
928
929
|
}
|
|
929
930
|
}
|
|
930
931
|
),
|
|
931
|
-
!Be && m && /* @__PURE__ */ e(
|
|
932
|
-
|
|
932
|
+
!Be && m && /* @__PURE__ */ e(O, { color: "error", mt: 16, children: t.confirm_error }),
|
|
933
|
+
M && /* @__PURE__ */ o(P, { children: [
|
|
933
934
|
/* @__PURE__ */ e(
|
|
934
935
|
lt,
|
|
935
936
|
{
|
|
936
937
|
bgcolor: "background.paper",
|
|
937
938
|
firstDay: h,
|
|
938
|
-
frequency:
|
|
939
|
-
onFirstDayChange:
|
|
939
|
+
frequency: v,
|
|
940
|
+
onFirstDayChange: w,
|
|
940
941
|
onFrequencyChange: F,
|
|
941
|
-
onSecondDayChange:
|
|
942
|
+
onSecondDayChange: S,
|
|
942
943
|
secondDay: A,
|
|
943
|
-
transaction:
|
|
944
|
+
transaction: M
|
|
944
945
|
}
|
|
945
946
|
),
|
|
946
947
|
/* @__PURE__ */ o(s, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
|
|
947
948
|
/* @__PURE__ */ e(
|
|
948
949
|
G,
|
|
949
950
|
{
|
|
950
|
-
"aria-disabled": !
|
|
951
|
+
"aria-disabled": !M,
|
|
951
952
|
onClick: () => {
|
|
952
953
|
const y = [...R];
|
|
953
954
|
y.push({
|
|
954
|
-
...
|
|
955
|
-
nextDate:
|
|
956
|
-
frequency:
|
|
955
|
+
...M,
|
|
956
|
+
nextDate: ve(v, Ie(M.date)),
|
|
957
|
+
frequency: v
|
|
957
958
|
}), me(y), H("");
|
|
958
959
|
},
|
|
959
960
|
variant: "contained",
|
|
@@ -972,7 +973,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
972
973
|
)
|
|
973
974
|
] })
|
|
974
975
|
] }),
|
|
975
|
-
R.length > 0 && !
|
|
976
|
+
R.length > 0 && !M && /* @__PURE__ */ o(s, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
|
|
976
977
|
/* @__PURE__ */ e(
|
|
977
978
|
G,
|
|
978
979
|
{
|
|
@@ -983,7 +984,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
983
984
|
{
|
|
984
985
|
name: "progress_activity",
|
|
985
986
|
sx: {
|
|
986
|
-
animation: `${
|
|
987
|
+
animation: `${Mt} 2s linear infinite`
|
|
987
988
|
}
|
|
988
989
|
}
|
|
989
990
|
) : null,
|
|
@@ -999,35 +1000,35 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
999
1000
|
]
|
|
1000
1001
|
}
|
|
1001
1002
|
) : /* @__PURE__ */ e(oe, {});
|
|
1002
|
-
},
|
|
1003
|
+
}, $t = T(Wt), Gt = ({ onBackClick: a, sx: n = {} }) => {
|
|
1003
1004
|
const {
|
|
1004
1005
|
selectedAccounts: t,
|
|
1005
1006
|
selectedAccountGuids: i,
|
|
1006
1007
|
setSelectedAccounts: g,
|
|
1007
1008
|
shouldDisableNextDate: x,
|
|
1008
1009
|
shouldDisablePrevDate: m
|
|
1009
|
-
} = X(), { onEvent: p } = ke(), { clientConfig: c } = Ve(), { visibleCashAccounts: r } =
|
|
1010
|
+
} = X(), { onEvent: p } = ke(), { clientConfig: c } = Ve(), { visibleCashAccounts: r } = Oe(), { setFilter: d } = Fe(), { userProfile: l } = He(), { dateRange: b, setSelectedCashAccounts: C } = V(), { loadRepeatingTransactions: _, income: k, isDataLoaded: v, setDateRange: F } = q(), { cashflow: h, recurring: w } = N(), { isCopyLoaded: A, isInitialized: S } = X(), re = c?.master?.deep_link_params?.view === "manage_income", [K, J] = f.useState(re);
|
|
1010
1011
|
f.useEffect(() => {
|
|
1011
|
-
|
|
1012
|
-
}, [
|
|
1012
|
+
S && (F(b), _().finally());
|
|
1013
|
+
}, [S]), f.useEffect(() => {
|
|
1013
1014
|
g(r);
|
|
1014
1015
|
}, [r]), f.useEffect(() => {
|
|
1015
1016
|
const me = r.map((H) => H.guid), Z = t.filter(
|
|
1016
1017
|
(H) => i.includes(H.guid) && me.includes(H.guid)
|
|
1017
1018
|
);
|
|
1018
1019
|
C(Z), d({
|
|
1019
|
-
dateRange: { start: je(
|
|
1020
|
+
dateRange: { start: je(W(), 90), end: gt() },
|
|
1020
1021
|
accounts: Z.map((H) => H.guid)
|
|
1021
1022
|
});
|
|
1022
1023
|
}, [r, t]);
|
|
1023
|
-
const R =
|
|
1024
|
-
return !A || !
|
|
1024
|
+
const R = v && !l?.has_completed_cash_flow_onboarding && !k.length;
|
|
1025
|
+
return !A || !S ? /* @__PURE__ */ e(oe, {}) : R ? /* @__PURE__ */ e(
|
|
1025
1026
|
Ae,
|
|
1026
1027
|
{
|
|
1027
1028
|
onBackClick: a,
|
|
1028
1029
|
sx: { height: "100%", overflow: "auto" },
|
|
1029
1030
|
title: h.title,
|
|
1030
|
-
children: /* @__PURE__ */ e(
|
|
1031
|
+
children: /* @__PURE__ */ e($t, {})
|
|
1031
1032
|
}
|
|
1032
1033
|
) : /* @__PURE__ */ o(
|
|
1033
1034
|
Ae,
|
|
@@ -1035,7 +1036,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
1035
1036
|
accountOptions: r,
|
|
1036
1037
|
actions: [
|
|
1037
1038
|
{
|
|
1038
|
-
label:
|
|
1039
|
+
label: w.action_title,
|
|
1039
1040
|
iconName: "credit_card_gear",
|
|
1040
1041
|
onClick: () => {
|
|
1041
1042
|
J(!0), p(Ee.CASH_FLOW_CLICK_SETTINGS);
|
|
@@ -1056,7 +1057,7 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
1056
1057
|
sx: n,
|
|
1057
1058
|
title: h.title,
|
|
1058
1059
|
children: [
|
|
1059
|
-
/* @__PURE__ */ e(
|
|
1060
|
+
/* @__PURE__ */ e(Nt, {}),
|
|
1060
1061
|
/* @__PURE__ */ e(Rt, {}),
|
|
1061
1062
|
/* @__PURE__ */ e(
|
|
1062
1063
|
Ge,
|
|
@@ -1065,15 +1066,15 @@ const _t = ({ recurrence: a }) => /* @__PURE__ */ o(P, { children: [
|
|
|
1065
1066
|
isOpen: K,
|
|
1066
1067
|
onClose: () => J(!1),
|
|
1067
1068
|
shouldShowHeaderBorders: !1,
|
|
1068
|
-
title:
|
|
1069
|
+
title: w.action_title,
|
|
1069
1070
|
children: /* @__PURE__ */ e(Ze, { defaultSelectedTab: re ? 1 : 0 })
|
|
1070
1071
|
}
|
|
1071
1072
|
)
|
|
1072
1073
|
]
|
|
1073
1074
|
}
|
|
1074
1075
|
);
|
|
1075
|
-
},
|
|
1076
|
-
class
|
|
1076
|
+
}, Mn = T(Gt);
|
|
1077
|
+
class Wn {
|
|
1077
1078
|
fetchInstance;
|
|
1078
1079
|
constructor(n, t, i) {
|
|
1079
1080
|
this.fetchInstance = new bt(n, t, void 0, i);
|
|
@@ -1093,9 +1094,9 @@ class $n {
|
|
|
1093
1094
|
updateCashflowSequence = async (n) => this.fetchInstance.put(`${B.CASHFLOW_SEQUENCES}/${n.guid}`, n).then((t) => t.cashflow_sequence);
|
|
1094
1095
|
}
|
|
1095
1096
|
export {
|
|
1096
|
-
|
|
1097
|
+
Wn as CashflowApi,
|
|
1097
1098
|
Fn as CashflowMiniWidget,
|
|
1098
|
-
|
|
1099
|
+
$t as CashflowOnboarding,
|
|
1099
1100
|
jn as CashflowStore,
|
|
1100
|
-
|
|
1101
|
+
Mn as CashflowWidget
|
|
1101
1102
|
};
|