@mx-cartographer/experiences 8.0.0-alpha.sms1 → 8.0.0-alpha.sms2
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-BDXA6PWh.mjs → Account-Cp30A3ad.mjs} +1 -1
- package/dist/{AccountDetailsContent-CUztd3-b.mjs → AccountDetailsContent-C1HumFnW.mjs} +16 -16
- package/dist/{AccountDetailsHeader-i3KFhNuo.mjs → AccountDetailsHeader-NMx79DGs.mjs} +5 -5
- package/dist/{AccountFields-QZspYAji.mjs → AccountFields-CW6cIthP.mjs} +7 -5
- package/dist/{AccountListItem-DX5upmCS.mjs → AccountListItem-DxmAs98Z.mjs} +4 -4
- package/dist/{AccountStore-BcnDpyLL.mjs → AccountStore-hIs-yA6W.mjs} +3 -3
- package/dist/{Accounts-DXfZotRC.mjs → Accounts-DUHkUyK4.mjs} +1 -1
- package/dist/{BudgetUtil-Df2nII9u.mjs → BudgetUtil-CIDAPPPT.mjs} +1 -1
- package/dist/{CashflowStore-D9Dpuz7X.mjs → CashflowStore-naOtJcwo.mjs} +12 -12
- package/dist/{Category-CevNQ03n.mjs → Category-Ccoew_sA.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-DqJK_rrL.mjs → CategorySelectorDrawer-DqDAA_5I.mjs} +3 -3
- package/dist/{CategoryStore-DTgyAMM7.mjs → CategoryStore-MUwRWH9e.mjs} +2 -2
- package/dist/{CategoryUtil-C5cR-nfQ.mjs → CategoryUtil-DfVKKkRf.mjs} +4 -4
- package/dist/{ConnectDrawer-BIbTqYOH.mjs → ConnectDrawer-Dn1MlqLz.mjs} +28 -28
- package/dist/{ConnectionsDrawer-BFfY3_zB.mjs → ConnectionsDrawer-CSo6AFkG.mjs} +2 -2
- package/dist/{CurrencyInput-BFKcs-_K.mjs → CurrencyInput-BrGvhgVK.mjs} +8 -8
- package/dist/{DateUtil-CBdcsyuk.mjs → DateUtil-CDPZw_-m.mjs} +1 -1
- package/dist/{DebtsStore-BbJB0nmu.mjs → DebtsStore-hi1cqrRk.mjs} +1 -1
- package/dist/{Dialog-BPTr3qHE.mjs → Dialog-CDV0kKxj.mjs} +24 -24
- package/dist/{Drawer-BEtCk82g.mjs → Drawer-Dqe5EqvA.mjs} +14 -14
- package/dist/{ExportCsvAction-DzTrtPzk.mjs → ExportCsvAction-CQ1grpwo.mjs} +3 -3
- package/dist/{FinstrongStore-BIrX0Xg2.mjs → FinstrongStore-dKZOZ2hM.mjs} +53 -53
- package/dist/{GoalStore-DpWY3gVb.mjs → GoalStore-CFeAJloA.mjs} +2 -2
- package/dist/{Help-DhcC-C05.mjs → Help-c-zHlDbv.mjs} +8 -8
- package/dist/{Help-BnPXM_N2.mjs → Help-i4OasOO-.mjs} +177 -180
- package/dist/{IconBacking-B9oC6uL2.mjs → IconBacking-DgT8DCeh.mjs} +11 -11
- package/dist/{ListItemAction-uobBrm_a.mjs → ListItemAction-BNCWQAN_.mjs} +1 -1
- package/dist/{Loader-DUaFpDGv.mjs → Loader-BSWSYqvn.mjs} +3 -3
- package/dist/{ManageIncome-NpXHhO1n.mjs → ManageIncome-D_qVX5dN.mjs} +8 -8
- package/dist/MicroWidgetContainer-BGpNl5ZS.mjs +45 -0
- package/dist/MiniWidgetContainer-D7MkHG15.mjs +56 -0
- package/dist/{NetWorthStore-lsuhEpn6.mjs → NetWorthStore-8FFC1Bs0.mjs} +4 -4
- package/dist/{NotificationSettings-CNmJWVeI.mjs → NotificationSettings-BsWiYD94.mjs} +14 -14
- package/dist/{OriginalBalanceAction-DK8_LkPz.mjs → OriginalBalanceAction-62e0mU_3.mjs} +2 -2
- package/dist/{RecurringSettings-CqZh1SQa.mjs → RecurringSettings-RfZ8Wuhh.mjs} +3 -3
- package/dist/{RecurringTransactions-BKcYmpv3.mjs → RecurringTransactions-Bhx56aA3.mjs} +36 -36
- package/dist/{RecurringTransactionsStore-Ni5tSQIO.mjs → RecurringTransactionsStore-D3EOKZ2B.mjs} +1 -1
- package/dist/{ResponsiveButton-DZFp78fJ.mjs → ResponsiveButton-C6KH8JH4.mjs} +9 -9
- package/dist/{SettingsStore-krIRNwHK.mjs → SettingsStore-BASMQSIp.mjs} +1 -1
- package/dist/{SingleSegmentDonut-BgbLgwHi.mjs → SingleSegmentDonut-PsRQPkmV.mjs} +5 -5
- package/dist/{SpendingData-BuJ03S9d.mjs → SpendingData-DPQ96k3x.mjs} +4 -4
- package/dist/{SpendingLegend-CjX-hX2O.mjs → SpendingLegend-CZzDb-7d.mjs} +3 -3
- package/dist/{StatusBar-BK_uYHAB.mjs → StatusBar-CPfSXe80.mjs} +6 -6
- package/dist/{TabContentContainer-j01JYR_7.mjs → TabContentContainer-CnMXkVqr.mjs} +8 -8
- package/dist/{TransactionDetails-5M2vfr59.mjs → TransactionDetails-Duv1X9ec.mjs} +9 -9
- package/dist/{TransactionStore-D-Q3BU9Z.mjs → TransactionStore-DgLrYW4C.mjs} +41 -58
- package/dist/{TrendsStore-BW9FGQeE.mjs → TrendsStore-_mRaFUdf.mjs} +37 -37
- package/dist/{User-wXzDI4M8.mjs → User-DqNX2GAK.mjs} +19 -19
- package/dist/{ViewMoreMicroCard-C0832BMe.mjs → ViewMoreMicroCard-CH9E-jOx.mjs} +68 -69
- package/dist/{WidgetContainer-BhQ1Kx2z.mjs → WidgetContainer-B1Jzb4XA.mjs} +33 -33
- package/dist/accounts/index.es.js +71 -71
- package/dist/analytics/index.es.js +7 -7
- package/dist/budgets/index.es.js +110 -110
- package/dist/cashflow/index.es.js +68 -68
- package/dist/categories/index.es.js +2 -2
- package/dist/common/index.es.js +248 -248
- package/dist/dashboard/index.es.js +7 -7
- package/dist/debts/index.es.js +12 -12
- package/dist/{exportTransactionsToCSV-Cz2t0lmA.mjs → exportTransactionsToCSV-BFpuIAXW.mjs} +3 -3
- package/dist/finstrong/index.es.js +18 -18
- package/dist/goals/index.es.js +19 -19
- package/dist/help/index.es.js +6 -6
- package/dist/investments/index.es.js +4 -4
- package/dist/merchants/index.es.js +12 -12
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/index.es.js +11 -11
- package/dist/notifications/index.es.js +4 -4
- package/dist/recurringtransactions/index.es.js +16 -16
- package/dist/settings/index.es.js +62 -62
- package/dist/spending/index.es.js +26 -26
- package/dist/transactions/index.es.js +58 -58
- package/dist/trends/index.es.js +59 -59
- package/dist/{useAccountDisplayName-CFNF8766.mjs → useAccountDisplayName-usSZCQ7I.mjs} +1 -1
- package/package.json +16 -21
- package/dist/MicroWidgetContainer-DEiRnYVa.mjs +0 -45
- package/dist/MiniWidgetContainer-CmXpTylX.mjs +0 -56
|
@@ -11,20 +11,20 @@ import { Text as h, P as N, Icon as j, InstitutionLogo as xe, H1 as de, H2 as qe
|
|
|
11
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
12
|
import { C as L } from "../CurrencyText-Dr0EZ7bp.mjs";
|
|
13
13
|
import { u as ue } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
14
|
-
import { L as te } from "../Loader-
|
|
15
|
-
import { I as he } from "../CashflowStore-
|
|
16
|
-
import { C as zn } from "../CashflowStore-
|
|
17
|
-
import { b as
|
|
18
|
-
import { M as Ke } from "../MiniWidgetContainer-
|
|
14
|
+
import { L as te } from "../Loader-BSWSYqvn.mjs";
|
|
15
|
+
import { I as he } from "../CashflowStore-naOtJcwo.mjs";
|
|
16
|
+
import { C as zn } from "../CashflowStore-naOtJcwo.mjs";
|
|
17
|
+
import { b as $ } from "../Localization-2MODESHW.mjs";
|
|
18
|
+
import { M as Ke } from "../MiniWidgetContainer-D7MkHG15.mjs";
|
|
19
19
|
import { E as Je } from "../EmptyState-DoxNUae-.mjs";
|
|
20
|
-
import { R as Ze } from "../RecurringSettings-
|
|
20
|
+
import { R as Ze } from "../RecurringSettings-RfZ8Wuhh.mjs";
|
|
21
21
|
import et from "@mui/material/Tabs";
|
|
22
22
|
import ye from "@mui/material/Tab";
|
|
23
23
|
import { getUnixTime as B } from "date-fns/getUnixTime";
|
|
24
24
|
import ee from "@mui/material/List";
|
|
25
25
|
import ne from "@mui/material/ListItem";
|
|
26
|
-
import { A as tt } from "../AccountListItem-
|
|
27
|
-
import { f as X, a as Y } from "../Dialog-
|
|
26
|
+
import { A as tt } from "../AccountListItem-DxmAs98Z.mjs";
|
|
27
|
+
import { f as X, a as Y } from "../Dialog-CDV0kKxj.mjs";
|
|
28
28
|
import nt from "@mui/material/ListSubheader";
|
|
29
29
|
import { f as Z } from "../NumberFormatting-DjTD0t3W.mjs";
|
|
30
30
|
import { isAfter as Oe } from "date-fns/isAfter";
|
|
@@ -33,19 +33,19 @@ import { isToday as Fe } from "date-fns/isToday";
|
|
|
33
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 Se } from "../TabContentContainer-
|
|
36
|
+
import { T as Se } from "../TabContentContainer-CnMXkVqr.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 We } from "../Drawer-
|
|
40
|
-
import { subDays as
|
|
38
|
+
import { M as rt, S as st, i as ct, d as _e, c as lt } from "../ManageIncome-D_qVX5dN.mjs";
|
|
39
|
+
import { D as We } from "../Drawer-Dqe5EqvA.mjs";
|
|
40
|
+
import { subDays as Me } from "date-fns/subDays";
|
|
41
41
|
import { endOfToday as dt } from "date-fns/endOfToday";
|
|
42
|
-
import { W as mt, A as
|
|
42
|
+
import { W as mt, A as we } from "../WidgetContainer-B1Jzb4XA.mjs";
|
|
43
43
|
import { formatISO as ut } from "date-fns/formatISO";
|
|
44
44
|
import { fromUnixTime as Ie } from "date-fns/fromUnixTime";
|
|
45
45
|
import { startOfMonth as ht } from "date-fns/startOfMonth";
|
|
46
|
-
import { S as pt, c as ft } from "../TransactionDetails-
|
|
47
|
-
import { F as gt, R as De, e as ve } from "../RecurringTransactions-
|
|
48
|
-
import { h as bt } from "../DateUtil-
|
|
46
|
+
import { S as pt, c as ft } from "../TransactionDetails-Duv1X9ec.mjs";
|
|
47
|
+
import { F as gt, R as De, e as ve } from "../RecurringTransactions-Bhx56aA3.mjs";
|
|
48
|
+
import { h as bt } from "../DateUtil-CDPZw_-m.mjs";
|
|
49
49
|
import { F as xt, A as z } from "../Fetch-DecPFeGU.mjs";
|
|
50
50
|
const Q = () => {
|
|
51
51
|
if (!f.useContext(Xe))
|
|
@@ -75,7 +75,7 @@ const Q = () => {
|
|
|
75
75
|
selectedCashAccounts: d,
|
|
76
76
|
setNextIncome: b,
|
|
77
77
|
setSelectedCashAccounts: C,
|
|
78
|
-
setUpcomingExpenses:
|
|
78
|
+
setUpcomingExpenses: _
|
|
79
79
|
} = Q(), { isDataLoaded: O, nextIncomeRecurrence: A, upcomingExpenses: H } = P();
|
|
80
80
|
f.useEffect(() => {
|
|
81
81
|
c(i);
|
|
@@ -84,17 +84,17 @@ const Q = () => {
|
|
|
84
84
|
i.filter((I) => u.includes(I.guid))
|
|
85
85
|
);
|
|
86
86
|
}, [i, x]), f.useEffect(() => {
|
|
87
|
-
A && b(A),
|
|
87
|
+
A && b(A), _(H);
|
|
88
88
|
}, [A, H]);
|
|
89
89
|
const p = f.useMemo(
|
|
90
|
-
() => i.filter((I) => u.includes(I.guid)).reduce((I,
|
|
90
|
+
() => i.filter((I) => u.includes(I.guid)).reduce((I, M) => I + (M?.balance || 0), 0),
|
|
91
91
|
[u, H]
|
|
92
|
-
),
|
|
93
|
-
() => l.filter((I) => u.includes(I.accountGuid || "")).reduce((I,
|
|
92
|
+
), w = f.useMemo(
|
|
93
|
+
() => l.filter((I) => u.includes(I.accountGuid || "")).reduce((I, M) => I + M.amount, 0),
|
|
94
94
|
[u, l]
|
|
95
95
|
), R = f.useMemo(
|
|
96
|
-
() => p -
|
|
97
|
-
[p,
|
|
96
|
+
() => p - w,
|
|
97
|
+
[p, w]
|
|
98
98
|
);
|
|
99
99
|
return O ? /* @__PURE__ */ e(D, { className: "mx-cashflow", pl: 16, pr: 16, pt: 16, children: n > 710 ? /* @__PURE__ */ o(
|
|
100
100
|
s,
|
|
@@ -107,15 +107,15 @@ const Q = () => {
|
|
|
107
107
|
children: [
|
|
108
108
|
/* @__PURE__ */ o(s, { pb: 14, pt: 12, children: [
|
|
109
109
|
/* @__PURE__ */ e(L, { amount: p, variant: "H2" }),
|
|
110
|
-
/* @__PURE__ */ e(N, { variant: "XSmall", whiteSpace: "nowrap", children:
|
|
110
|
+
/* @__PURE__ */ e(N, { variant: "XSmall", whiteSpace: "nowrap", children: $(
|
|
111
111
|
m.total_cash_accounts,
|
|
112
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:
|
|
117
|
+
/* @__PURE__ */ e(L, { amount: w, variant: "H2" }),
|
|
118
|
+
/* @__PURE__ */ e(N, { variant: "XSmall", whiteSpace: "nowrap", children: $(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: [
|
|
@@ -126,14 +126,14 @@ const Q = () => {
|
|
|
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(U, { children: [
|
|
129
|
-
/* @__PURE__ */ e(h, { variant: "H2", children:
|
|
129
|
+
/* @__PURE__ */ e(h, { variant: "H2", children: $(m.days, r) }),
|
|
130
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(h, { variant: "Small", children:
|
|
136
|
+
/* @__PURE__ */ e(h, { variant: "Small", children: $(
|
|
137
137
|
m.total_cash_accounts,
|
|
138
138
|
d.length
|
|
139
139
|
) }),
|
|
@@ -141,8 +141,8 @@ const Q = () => {
|
|
|
141
141
|
] }),
|
|
142
142
|
/* @__PURE__ */ e(v, {}),
|
|
143
143
|
/* @__PURE__ */ o(s, { direction: "row", justifyContent: "space-between", p: 16, children: [
|
|
144
|
-
/* @__PURE__ */ e(h, { variant: "Small", children:
|
|
145
|
-
/* @__PURE__ */ e(L, { amount:
|
|
144
|
+
/* @__PURE__ */ e(h, { variant: "Small", children: $(m.expenses_due, l.length) }),
|
|
145
|
+
/* @__PURE__ */ e(L, { amount: w, bold: !0, symbol: "-", variant: "XSmall" })
|
|
146
146
|
] }),
|
|
147
147
|
/* @__PURE__ */ e(v, {}),
|
|
148
148
|
/* @__PURE__ */ e(
|
|
@@ -162,10 +162,10 @@ const Q = () => {
|
|
|
162
162
|
/* @__PURE__ */ e(v, {}),
|
|
163
163
|
/* @__PURE__ */ o(s, { direction: "row", justifyContent: "space-between", p: 16, children: [
|
|
164
164
|
/* @__PURE__ */ e(h, { variant: "Small", children: m.next_paycheck }),
|
|
165
|
-
/* @__PURE__ */ e(h, { bold: !0, variant: "XSmall", children:
|
|
165
|
+
/* @__PURE__ */ e(h, { bold: !0, variant: "XSmall", children: $(m.days, r) })
|
|
166
166
|
] })
|
|
167
167
|
] }) }) : /* @__PURE__ */ e(te, { height: t ? 210 : 120 });
|
|
168
|
-
}, St = T(Ct),
|
|
168
|
+
}, St = T(Ct), _t = ({
|
|
169
169
|
onPrimaryCtaClick: a,
|
|
170
170
|
onSecondaryCtaClick: n,
|
|
171
171
|
sx: t = {}
|
|
@@ -200,7 +200,7 @@ const Q = () => {
|
|
|
200
200
|
]
|
|
201
201
|
}
|
|
202
202
|
) : /* @__PURE__ */ e(te, {});
|
|
203
|
-
}, Fn = T(
|
|
203
|
+
}, Fn = T(_t), wt = ({ remaining: a }) => /* @__PURE__ */ e(
|
|
204
204
|
ne,
|
|
205
205
|
{
|
|
206
206
|
sx: {
|
|
@@ -321,7 +321,7 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
|
|
|
321
321
|
}
|
|
322
322
|
) }),
|
|
323
323
|
/* @__PURE__ */ e(
|
|
324
|
-
|
|
324
|
+
wt,
|
|
325
325
|
{
|
|
326
326
|
remaining: (u.available_balance || u.balance || 0) + r - l
|
|
327
327
|
}
|
|
@@ -394,9 +394,9 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
|
|
|
394
394
|
], m = f.useMemo(() => u.map((r) => {
|
|
395
395
|
const l = i.filter(
|
|
396
396
|
re(r, { start: W(), end: Ce(W(), 30) })
|
|
397
|
-
).reduce((C,
|
|
397
|
+
).reduce((C, _) => C + _.amount, 0), d = g.filter(
|
|
398
398
|
re(r, { start: W(), end: Ce(W(), 30) })
|
|
399
|
-
).reduce((C,
|
|
399
|
+
).reduce((C, _) => C + _.amount, 0), b = (r.balance || 0) + d - l;
|
|
400
400
|
return {
|
|
401
401
|
account: r,
|
|
402
402
|
balance: r.balance || 0,
|
|
@@ -480,7 +480,7 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
|
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
482
|
) : m.map((r) => {
|
|
483
|
-
const { name: l, nickname: d, institution_guid: b, account_number: C } = r.account,
|
|
483
|
+
const { name: l, nickname: d, institution_guid: b, account_number: C } = r.account, _ = d || l;
|
|
484
484
|
return /* @__PURE__ */ e(
|
|
485
485
|
ee,
|
|
486
486
|
{
|
|
@@ -509,7 +509,7 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
|
|
|
509
509
|
size: 16
|
|
510
510
|
}
|
|
511
511
|
),
|
|
512
|
-
/* @__PURE__ */ e(h, { variant: "Small", children: `${
|
|
512
|
+
/* @__PURE__ */ e(h, { variant: "Small", children: `${_} ${C ? `*${C}` : ""}` })
|
|
513
513
|
] }),
|
|
514
514
|
/* @__PURE__ */ e(L, { amount: r.balance, bold: !0, variant: "Small" })
|
|
515
515
|
]
|
|
@@ -646,9 +646,9 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
|
|
|
646
646
|
() => x.filter(Te(u, c)),
|
|
647
647
|
[c, u, x]
|
|
648
648
|
), C = f.useMemo(
|
|
649
|
-
() => m.reduce((
|
|
649
|
+
() => m.reduce((w, R) => w + (R?.balance || 0), 0),
|
|
650
650
|
[m]
|
|
651
|
-
),
|
|
651
|
+
), _ = d.reduce((w, R) => w + R.amount, 0), O = b.reduce((w, R) => w + R.amount, 0), A = C - _ + O, H = i && t.length > 0, p = a < 725;
|
|
652
652
|
return /* @__PURE__ */ o(s, { sx: { mx: p ? 16 : 0, my: p ? 24 : 42 }, children: [
|
|
653
653
|
/* @__PURE__ */ o(
|
|
654
654
|
s,
|
|
@@ -665,7 +665,7 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
|
|
|
665
665
|
{
|
|
666
666
|
amount: C,
|
|
667
667
|
isMobile: p,
|
|
668
|
-
label:
|
|
668
|
+
label: $(n.cash_and_bank, m.length)
|
|
669
669
|
}
|
|
670
670
|
),
|
|
671
671
|
p && /* @__PURE__ */ e(v, {}),
|
|
@@ -693,9 +693,9 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
|
|
|
693
693
|
/* @__PURE__ */ e(
|
|
694
694
|
ie,
|
|
695
695
|
{
|
|
696
|
-
amount:
|
|
696
|
+
amount: _,
|
|
697
697
|
isMobile: p,
|
|
698
|
-
label:
|
|
698
|
+
label: $(n.to_be_paid_out, d.length),
|
|
699
699
|
symbol: p ? "-" : void 0
|
|
700
700
|
}
|
|
701
701
|
),
|
|
@@ -738,9 +738,9 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
|
|
|
738
738
|
setSelectedAccounts: g,
|
|
739
739
|
shouldDisableNextDate: x,
|
|
740
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:
|
|
741
|
+
} = q(), { onEvent: c } = ke(), { onLoad: m } = Ye(), { clientConfig: r } = Qe(), { visibleCashAccounts: l } = Le(), { setFilter: d } = Ne(), { dateRange: b, setSelectedCashAccounts: C } = Q(), { loadRepeatingTransactionData: _, isDataLoaded: O, setDateRange: A } = P(), { cashflow: H, recurring: p } = k(), { isInitialized: w } = q(), I = r?.master?.deep_link_params?.view === "manage_income", [M, ae] = f.useState(I);
|
|
742
742
|
return f.useEffect(() => {
|
|
743
|
-
A(b), O ||
|
|
743
|
+
A(b), O || _().finally(() => {
|
|
744
744
|
m?.("CashflowWidget");
|
|
745
745
|
});
|
|
746
746
|
}, []), f.useEffect(() => {
|
|
@@ -750,10 +750,10 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
|
|
|
750
750
|
(S) => i.includes(S.guid) && V.includes(S.guid)
|
|
751
751
|
);
|
|
752
752
|
C(K), d({
|
|
753
|
-
dateRange: { start:
|
|
753
|
+
dateRange: { start: Me(W(), 90), end: dt() },
|
|
754
754
|
accounts: K.map((S) => S.guid)
|
|
755
755
|
});
|
|
756
|
-
}, [l, t]),
|
|
756
|
+
}, [l, t]), w ? /* @__PURE__ */ o(
|
|
757
757
|
mt,
|
|
758
758
|
{
|
|
759
759
|
accountOptions: l,
|
|
@@ -762,7 +762,7 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
|
|
|
762
762
|
label: p.action_title,
|
|
763
763
|
iconName: "credit_card_gear",
|
|
764
764
|
onClick: () => {
|
|
765
|
-
ae(!0), c(
|
|
765
|
+
ae(!0), c(we.CASH_FLOW_CLICK_SETTINGS);
|
|
766
766
|
}
|
|
767
767
|
}
|
|
768
768
|
],
|
|
@@ -775,7 +775,7 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
|
|
|
775
775
|
},
|
|
776
776
|
dateRange: b,
|
|
777
777
|
dateRangeVariant: "readonly",
|
|
778
|
-
onAccountsFilterClick: () => c(
|
|
778
|
+
onAccountsFilterClick: () => c(we.CASH_FLOW_CLICK_FILTER),
|
|
779
779
|
onBackClick: a,
|
|
780
780
|
sx: n,
|
|
781
781
|
title: H.title,
|
|
@@ -786,7 +786,7 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
|
|
|
786
786
|
We,
|
|
787
787
|
{
|
|
788
788
|
ariaLabelClose: H.close_settings_aria,
|
|
789
|
-
isOpen:
|
|
789
|
+
isOpen: M,
|
|
790
790
|
onClose: () => ae(!1),
|
|
791
791
|
shouldShowHeaderBorders: !1,
|
|
792
792
|
title: p.action_title,
|
|
@@ -866,17 +866,17 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
|
|
|
866
866
|
/* @__PURE__ */ e(G, { onClick: n, variant: "outlined", children: t.skip_button })
|
|
867
867
|
] })
|
|
868
868
|
] });
|
|
869
|
-
}, Ft = T(Ht), Re = "https://content.moneydesktop.com/storage/MD_Assets/md/cashflow",
|
|
869
|
+
}, Ft = T(Ht), Re = "https://content.moneydesktop.com/storage/MD_Assets/md/cashflow", $e = {
|
|
870
870
|
CASHFLOW_ONBOARDING: `${Re}/cashflow-onboarding.png`,
|
|
871
871
|
CASHFLOW_LOADING_ANIMATION: `${Re}/loading-animation.gif`
|
|
872
872
|
}, Wt = () => {
|
|
873
873
|
const { cashflow: a } = k();
|
|
874
874
|
return /* @__PURE__ */ o(f.Fragment, { children: [
|
|
875
|
-
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("img", { alt: "Loading", src:
|
|
875
|
+
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("img", { alt: "Loading", src: $e.CASHFLOW_LOADING_ANIMATION }) }),
|
|
876
876
|
/* @__PURE__ */ e(de, { pb: 12, children: a.loading_title }),
|
|
877
877
|
/* @__PURE__ */ e(N, { children: a.loading_description })
|
|
878
878
|
] });
|
|
879
|
-
},
|
|
879
|
+
}, Mt = T(Wt), $t = at`
|
|
880
880
|
from {
|
|
881
881
|
transform: rotate(0deg);
|
|
882
882
|
}
|
|
@@ -884,7 +884,7 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
|
|
|
884
884
|
transform: rotate(360deg);
|
|
885
885
|
}
|
|
886
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(), [
|
|
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(), [_, O] = J(!0), [A, H] = f.useState(gt.EveryMonth), [p, w] = f.useState(1), [R, I] = f.useState(15), [M, ae] = J(!1), [V, K] = J(1), [S, Ge] = J([]), [fe, le] = J(""), F = f.useMemo(
|
|
888
888
|
() => b.find((y) => y.guid === fe),
|
|
889
889
|
[fe, b]
|
|
890
890
|
), je = !!n.filter(
|
|
@@ -892,9 +892,9 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
|
|
|
892
892
|
).length, ge = async () => {
|
|
893
893
|
K(2), r(
|
|
894
894
|
// Beginning of the month, 90 days before today
|
|
895
|
-
ht(
|
|
895
|
+
ht(Me(W(), 90)),
|
|
896
896
|
W()
|
|
897
|
-
), d({ ...l, custom:
|
|
897
|
+
), d({ ...l, custom: _e }), K(3);
|
|
898
898
|
}, ze = async () => {
|
|
899
899
|
if (!(S.length < 1)) {
|
|
900
900
|
ae(!0);
|
|
@@ -918,7 +918,7 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
|
|
|
918
918
|
}
|
|
919
919
|
await x();
|
|
920
920
|
}
|
|
921
|
-
}, Be = !F &&
|
|
921
|
+
}, Be = !F && _ || !F && S.length < 1;
|
|
922
922
|
return m ? /* @__PURE__ */ o(
|
|
923
923
|
D,
|
|
924
924
|
{
|
|
@@ -926,7 +926,7 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
|
|
|
926
926
|
display: "flex",
|
|
927
927
|
alignItems: c ? "flex-start" : "center",
|
|
928
928
|
backgroundColor: C.palette.background.paper,
|
|
929
|
-
backgroundImage: c ? null : `url(${
|
|
929
|
+
backgroundImage: c ? null : `url(${$e.CASHFLOW_ONBOARDING})`,
|
|
930
930
|
backgroundRepeat: "no-repeat",
|
|
931
931
|
backgroundPosition: "left 100px",
|
|
932
932
|
backgroundSize: "35%",
|
|
@@ -948,7 +948,7 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
|
|
|
948
948
|
sx: {
|
|
949
949
|
...c ? { display: "flex", flexDirection: "column", maxWidth: "100%", padding: "0 16px" } : { maxWidth: 590, ml: "40%", mr: 90 }
|
|
950
950
|
},
|
|
951
|
-
children: /* @__PURE__ */ e(
|
|
951
|
+
children: /* @__PURE__ */ e(Mt, {})
|
|
952
952
|
}
|
|
953
953
|
),
|
|
954
954
|
V === 3 && /* @__PURE__ */ o(
|
|
@@ -986,7 +986,7 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
|
|
|
986
986
|
bgcolor: "background.paper",
|
|
987
987
|
onSearch: (y) => d({
|
|
988
988
|
...l,
|
|
989
|
-
custom: (E) => y ? ct(E, y) :
|
|
989
|
+
custom: (E) => y ? ct(E, y) : _e(E)
|
|
990
990
|
}),
|
|
991
991
|
onSelected: (y) => {
|
|
992
992
|
le(y), O(!1);
|
|
@@ -1001,7 +1001,7 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
|
|
|
1001
1001
|
bgcolor: "background.paper",
|
|
1002
1002
|
firstDay: p,
|
|
1003
1003
|
frequency: A,
|
|
1004
|
-
onFirstDayChange:
|
|
1004
|
+
onFirstDayChange: w,
|
|
1005
1005
|
onFrequencyChange: H,
|
|
1006
1006
|
onSecondDayChange: I,
|
|
1007
1007
|
secondDay: R,
|
|
@@ -1041,14 +1041,14 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
|
|
|
1041
1041
|
/* @__PURE__ */ e(
|
|
1042
1042
|
G,
|
|
1043
1043
|
{
|
|
1044
|
-
"aria-disabled": S.length < 1 ||
|
|
1044
|
+
"aria-disabled": S.length < 1 || M,
|
|
1045
1045
|
onClick: ze,
|
|
1046
|
-
startIcon:
|
|
1046
|
+
startIcon: M ? /* @__PURE__ */ e(
|
|
1047
1047
|
j,
|
|
1048
1048
|
{
|
|
1049
1049
|
name: "progress_activity",
|
|
1050
1050
|
sx: {
|
|
1051
|
-
animation: `${
|
|
1051
|
+
animation: `${$t} 2s linear infinite`
|
|
1052
1052
|
}
|
|
1053
1053
|
}
|
|
1054
1054
|
) : null,
|
|
@@ -1064,8 +1064,8 @@ const It = ({ recurrence: a }) => /* @__PURE__ */ o(U, { children: [
|
|
|
1064
1064
|
]
|
|
1065
1065
|
}
|
|
1066
1066
|
) : /* @__PURE__ */ e(te, {});
|
|
1067
|
-
},
|
|
1068
|
-
class
|
|
1067
|
+
}, Mn = T(Gt);
|
|
1068
|
+
class $n {
|
|
1069
1069
|
fetchInstance;
|
|
1070
1070
|
constructor(n, t, i) {
|
|
1071
1071
|
this.fetchInstance = new xt(n, t, void 0, i);
|
|
@@ -1085,9 +1085,9 @@ class Mn {
|
|
|
1085
1085
|
updateCashflowSequence = async (n) => this.fetchInstance.put(`${z.CASHFLOW_SEQUENCES}/${n.guid}`, n).then((t) => t.cashflow_sequence);
|
|
1086
1086
|
}
|
|
1087
1087
|
export {
|
|
1088
|
-
|
|
1088
|
+
$n as CashflowApi,
|
|
1089
1089
|
Fn as CashflowMiniWidget,
|
|
1090
|
-
|
|
1090
|
+
Mn as CashflowOnboarding,
|
|
1091
1091
|
zn as CashflowStore,
|
|
1092
1092
|
Wn as CashflowWidget
|
|
1093
1093
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as o, C as a, a as t, u as C } from "../CategorySelectorDrawer-
|
|
2
|
-
import { C as g } from "../CategoryStore-
|
|
1
|
+
import { b as o, C as a, a as t, u as C } from "../CategorySelectorDrawer-DqDAA_5I.mjs";
|
|
2
|
+
import { C as g } from "../CategoryStore-MUwRWH9e.mjs";
|
|
3
3
|
export {
|
|
4
4
|
o as CategoryRow,
|
|
5
5
|
a as CategorySelector,
|