@mx-cartographer/experiences 8.2.3 → 8.2.4-alpha-ram1-bug-testing
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 +16 -0
- package/dist/{AccountDetailsHeader-CfdnKyJK.mjs → AccountDetailsHeader-DIysk_4w.mjs} +1 -1
- package/dist/{AccountFields-CAy0x_4i.mjs → AccountFields-mwJ8NXsX.mjs} +18 -18
- package/dist/{AccountListItem-BYyeeCf6.mjs → AccountListItem-BDXHs4tV.mjs} +7 -8
- package/dist/{CategorySelectorDrawer-Cu1ohxeM.mjs → CategorySelectorDrawer-CmaDLhnf.mjs} +71 -68
- package/dist/{ConnectCard-Dix8BoV_.mjs → ConnectCard-CCep7Zqe.mjs} +9 -9
- package/dist/{ConnectDrawer-DgfsTpyW.mjs → ConnectDrawer-Cnjr3Ddg.mjs} +2 -2
- package/dist/{ConnectionsDrawer-D7IXAza2.mjs → ConnectionsDrawer-CtfPXk0M.mjs} +1 -1
- package/dist/{CurrencyDialog-d4dL7vA5.mjs → CurrencyDialog-DumQCTPO.mjs} +18 -16
- package/dist/{CurrencyInput-B59ugxPN.mjs → CurrencyInput-adTIRtL3.mjs} +28 -26
- package/dist/{Dialog-iLlBR8TG.mjs → Dialog-CwWc0AbH.mjs} +11 -11
- package/dist/{Drawer-XPaLYjiO.mjs → Drawer-BXqqBMxg.mjs} +26 -28
- package/dist/{EmbeddedCard-BNl3quCs.mjs → EmbeddedCard-DPwJjqMH.mjs} +37 -37
- package/dist/{EmptyState-DHAkGsjk.mjs → EmptyState-CJUDc3kD.mjs} +17 -17
- package/dist/{ExportCsvAction-hDprC41l.mjs → ExportCsvAction-Bw02ZJEj.mjs} +2 -2
- package/dist/{GlobalAccountFilter-DrhtwPqh.mjs → GlobalAccountFilter-7Cg2-9A5.mjs} +25 -25
- package/dist/{Help-BSQm9o29.mjs → Help-DJ8PrVHX.mjs} +56 -73
- package/dist/{ListItemAction-DGjHxNDJ.mjs → ListItemAction-CwspSmQi.mjs} +22 -22
- package/dist/{ManageIncome-DwylSiWs.mjs → ManageIncome-B1JfqslT.mjs} +6 -6
- package/dist/{NotificationSettings-CCg-Tml2.mjs → NotificationSettings-6p-h5phZ.mjs} +48 -48
- package/dist/{OriginalBalanceAction-CvDx0K6k.mjs → OriginalBalanceAction-CkJPnp2c.mjs} +2 -2
- package/dist/{RecurringSettings-CPXLW6AR.mjs → RecurringSettings-cm6MK_aS.mjs} +1 -1
- package/dist/{ResponsiveButton-BNsV08Ud.mjs → ResponsiveButton-CC9F_Ezk.mjs} +1 -1
- package/dist/SearchBox-Cpgu_gdO.mjs +50 -0
- package/dist/Select-BFt-HD-L.mjs +55 -0
- package/dist/{SelectionBox-Bx2a5rh4.mjs → SelectionBox-B4xELRgp.mjs} +1 -1
- package/dist/{SingleSegmentDonut-PsRQPkmV.mjs → SingleSegmentDonut-7Uy6VEld.mjs} +1 -1
- package/dist/{SpendingLegend-BmkEr9Nh.mjs → SpendingLegend-5Ct_FZ8o.mjs} +1 -1
- package/dist/{ToggleListItem-BLu_fWA2.mjs → ToggleListItem-Dl1lXNwj.mjs} +29 -28
- package/dist/{TransactionDetails-CbBSxdOi.mjs → TransactionDetails-C3dlAzYf.mjs} +386 -393
- package/dist/{ViewMoreMicroCard-D_LoKlJU.mjs → ViewMoreMicroCard-BD_MNc2z.mjs} +526 -518
- package/dist/{WidgetContainer-CYcmwsSu.mjs → WidgetContainer-DNuz_s7W.mjs} +5 -5
- package/dist/accounts/index.es.js +199 -194
- package/dist/analytics/index.es.js +1 -1
- package/dist/budgets/index.es.js +183 -184
- package/dist/cashflow/index.es.js +70 -80
- package/dist/categories/index.es.js +1 -1
- package/dist/common/components/ErrorBoundary.d.ts +1 -1
- package/dist/common/components/WidgetContainer.d.ts +1 -1
- package/dist/common/components/charts/stackedlinechart/CustomAreaTooltip.d.ts +1 -1
- package/dist/common/hooks/usePrevious.d.ts +1 -1
- package/dist/common/index.es.js +206 -194
- package/dist/common/utils/Theme.d.ts +6 -5
- package/dist/common/utils/index.d.ts +1 -1
- package/dist/dashboard/index.es.js +47 -47
- package/dist/debts/index.es.js +140 -140
- package/dist/finstrong/index.es.js +40 -32
- package/dist/finstrong/util/finstrongUtils.d.ts +1 -1
- package/dist/goals/index.es.js +154 -165
- package/dist/help/index.es.js +2 -2
- package/dist/insights/components/insights/UserFeedback/Types.d.ts +1 -1
- package/dist/insights/components/shared/DirectDeposit/DirectDepositSubHeader.d.ts +3 -3
- package/dist/insights/hooks/useContainerDimensions.d.ts +1 -1
- package/dist/insights/index.es.js +677 -687
- package/dist/insights/themes/Typography.d.ts +0 -2
- package/dist/investments/index.es.js +205 -207
- package/dist/merchants/index.es.js +1 -1
- package/dist/microinsights/cards/InsightCard.d.ts +2 -2
- package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +3 -5
- package/dist/microinsights/cards/ViewMoreMicroCard.d.ts +3 -5
- package/dist/microinsights/cards/ZeroStateCard.d.ts +3 -5
- package/dist/microinsights/carousel/BeatList.d.ts +2 -2
- package/dist/microinsights/carousel/MicroBeatCarousel.d.ts +12 -1
- package/dist/microinsights/index.es.js +1 -1
- package/dist/microinsights/interfaces.d.ts +11 -5
- package/dist/networth/index.es.js +85 -87
- package/dist/notifications/index.es.js +7 -8
- package/dist/recurringtransactions/index.es.js +53 -53
- package/dist/settings/index.es.js +111 -111
- package/dist/spending/index.es.js +7 -7
- package/dist/transactions/components/shared/TransactionList.d.ts +2 -2
- package/dist/transactions/index.es.js +138 -140
- package/dist/trends/index.es.js +293 -292
- package/dist/{useScreenSize-CeFhWTt_.mjs → useScreenSize-mWpmnh5w.mjs} +1 -1
- package/package.json +29 -23
- package/dist/SearchBox-CwDgvWVJ.mjs +0 -48
- package/dist/Select-BZRUpOib.mjs +0 -51
|
@@ -6,54 +6,53 @@ import { startOfToday as F } from "date-fns/startOfToday";
|
|
|
6
6
|
import I from "@mui/material/Box";
|
|
7
7
|
import v from "@mui/material/Divider";
|
|
8
8
|
import s from "@mui/material/Stack";
|
|
9
|
-
import ie from "@mui/material/styles
|
|
10
|
-
import { Text as m, P as
|
|
9
|
+
import { useTheme as ie, alpha as qe, keyframes as Ke } from "@mui/material/styles";
|
|
10
|
+
import { Text as m, P as k, Icon as z, InstitutionLogo as xe, H2 as de, H3 as Ve } from "@mxenabled/mxui";
|
|
11
11
|
import { b as H } from "../Localization-DnoVyBNK.mjs";
|
|
12
|
-
import { G as
|
|
12
|
+
import { G as Xe, p as me, u as L, D as ae, d as Le, b as P, i as B, g as Ne, a as Je, h as ke, C as Qe } from "../hooks-BaO_gOI6.mjs";
|
|
13
13
|
import { C as E } from "../CurrencyText-CCbE6MmF.mjs";
|
|
14
|
-
import { u as ue } from "../useScreenSize-
|
|
14
|
+
import { u as ue } from "../useScreenSize-mWpmnh5w.mjs";
|
|
15
15
|
import { L as Z } from "../Loader-CxeBwuPG.mjs";
|
|
16
16
|
import { I as pe } from "../InformationTooltip-4su8bn1e.mjs";
|
|
17
17
|
import { u as Oe } from "../useWidgetLoadTimer-CJb-RELP.mjs";
|
|
18
|
-
import { M as
|
|
19
|
-
import { E as
|
|
20
|
-
import { R as
|
|
21
|
-
import
|
|
18
|
+
import { M as Ze } from "../MiniWidgetContainer-BdPiUU-u.mjs";
|
|
19
|
+
import { E as et } from "../EmptyState-CJUDc3kD.mjs";
|
|
20
|
+
import { R as tt } from "../RecurringSettings-cm6MK_aS.mjs";
|
|
21
|
+
import nt from "@mui/material/Tabs";
|
|
22
22
|
import ye from "@mui/material/Tab";
|
|
23
23
|
import { getUnixTime as le } from "date-fns/getUnixTime";
|
|
24
24
|
import Q from "@mui/material/List";
|
|
25
25
|
import ee from "@mui/material/ListItem";
|
|
26
|
-
import { A as
|
|
26
|
+
import { A as ot } from "../AccountListItem-BDXHs4tV.mjs";
|
|
27
27
|
import { f as U, D as Y } from "../DateFormats-HudZ3Bjs.mjs";
|
|
28
|
-
import
|
|
28
|
+
import it from "@mui/material/ListSubheader";
|
|
29
29
|
import { f as J } from "../NumberFormatting--XMeeBfr.mjs";
|
|
30
30
|
import { isAfter as Ge } from "date-fns/isAfter";
|
|
31
31
|
import { isBefore as Me } from "date-fns/isBefore";
|
|
32
32
|
import { isToday as Fe } from "date-fns/isToday";
|
|
33
33
|
import { addDays as _e } from "date-fns/addDays";
|
|
34
|
-
import { alpha as ot, keyframes as it } from "@mui/material/styles";
|
|
35
34
|
import { DataGridPro as at } from "@mui/x-data-grid-pro";
|
|
36
35
|
import { T as Ce } from "../TabContentContainer-CnMXkVqr.mjs";
|
|
37
36
|
import W from "@mui/material/Button";
|
|
38
|
-
import { M as rt, S as st, i as ct, b as we, c as lt } from "../ManageIncome-
|
|
39
|
-
import { D as He } from "../Drawer-
|
|
37
|
+
import { M as rt, S as st, i as ct, b as we, c as lt } from "../ManageIncome-B1JfqslT.mjs";
|
|
38
|
+
import { D as He } from "../Drawer-BXqqBMxg.mjs";
|
|
40
39
|
import { subDays as We } from "date-fns/subDays";
|
|
41
40
|
import { endOfToday as dt } from "date-fns/endOfToday";
|
|
42
|
-
import { W as mt } from "../WidgetContainer-
|
|
41
|
+
import { W as mt } from "../WidgetContainer-DNuz_s7W.mjs";
|
|
43
42
|
import { A as X } from "../Account-BaJmiJAG.mjs";
|
|
44
43
|
import { A as Se } from "../Analytics-CzGzz_sE.mjs";
|
|
45
44
|
import { formatISO as ut } from "date-fns/formatISO";
|
|
46
45
|
import { fromUnixTime as De } from "date-fns/fromUnixTime";
|
|
47
46
|
import { startOfMonth as pt } from "date-fns/startOfMonth";
|
|
48
|
-
import { S as ht, a as ft } from "../EmbeddedCard-
|
|
47
|
+
import { S as ht, a as ft } from "../EmbeddedCard-DPwJjqMH.mjs";
|
|
49
48
|
import { F as gt, R as Ie, c as ve } from "../RecurringTransactionsUtil-B3rLEx_g.mjs";
|
|
50
49
|
import { i as bt } from "../DateUtil-Bhq59ZVg.mjs";
|
|
51
50
|
const q = () => {
|
|
52
|
-
if (!h.useContext(
|
|
51
|
+
if (!h.useContext(Xe))
|
|
53
52
|
throw new Error("useCashflowUiStore() must be used within the GlobalDataContext");
|
|
54
53
|
return me().uiStore;
|
|
55
54
|
}, xt = ({ remaining: i }) => {
|
|
56
|
-
const { cashflow: o } =
|
|
55
|
+
const { cashflow: o } = L();
|
|
57
56
|
return /* @__PURE__ */ n(j, { children: [
|
|
58
57
|
/* @__PURE__ */ e(
|
|
59
58
|
I,
|
|
@@ -70,7 +69,7 @@ const q = () => {
|
|
|
70
69
|
/* @__PURE__ */ e(E, { amount: i, bold: !0, sx: { fontSize: 12 } })
|
|
71
70
|
] });
|
|
72
71
|
}, he = A(xt), yt = () => {
|
|
73
|
-
const i = ie(), { availableWidth: o } = ae(), { isMobile: t } = ue(), { visibleCashAccounts: r, visibleCashBalance: f } =
|
|
72
|
+
const i = ie(), { availableWidth: o } = ae(), { isMobile: t } = ue(), { visibleCashAccounts: r, visibleCashBalance: f } = Le(), { selectedAccountGuids: u } = P(), { cashflow: c } = L(), {
|
|
74
73
|
daysUntilNextIncome: l,
|
|
75
74
|
expensesTilNextIncome: b,
|
|
76
75
|
selectedCashAccounts: a,
|
|
@@ -88,12 +87,12 @@ const q = () => {
|
|
|
88
87
|
const D = h.useMemo(
|
|
89
88
|
() => r.filter((_) => u.includes(_.guid)).reduce((_, S) => _ + (S?.balance || 0), 0),
|
|
90
89
|
[u, R]
|
|
91
|
-
),
|
|
90
|
+
), N = h.useMemo(
|
|
92
91
|
() => b.filter((_) => u.includes(_.accountGuid || "")).reduce((_, S) => _ + S.amount, 0),
|
|
93
92
|
[u, b]
|
|
94
93
|
), p = h.useMemo(
|
|
95
|
-
() => D -
|
|
96
|
-
[D,
|
|
94
|
+
() => D - N,
|
|
95
|
+
[D, N]
|
|
97
96
|
);
|
|
98
97
|
return C ? /* @__PURE__ */ e(I, { className: "mx-cashflow", pl: 16, pr: 16, pt: 16, children: o > 710 ? /* @__PURE__ */ n(
|
|
99
98
|
s,
|
|
@@ -106,27 +105,27 @@ const q = () => {
|
|
|
106
105
|
children: [
|
|
107
106
|
/* @__PURE__ */ n(s, { pb: 14, pt: 12, children: [
|
|
108
107
|
/* @__PURE__ */ e(E, { amount: D, variant: "h2" }),
|
|
109
|
-
/* @__PURE__ */ e(
|
|
108
|
+
/* @__PURE__ */ e(k, { variant: "caption", whiteSpace: "nowrap", children: H(
|
|
110
109
|
c.total_cash_accounts,
|
|
111
110
|
a.length
|
|
112
111
|
) })
|
|
113
112
|
] }),
|
|
114
113
|
/* @__PURE__ */ e(s, { pt: 18, children: /* @__PURE__ */ e(z, { name: "remove" }) }),
|
|
115
114
|
/* @__PURE__ */ n(s, { pb: 14, pt: 12, children: [
|
|
116
|
-
/* @__PURE__ */ e(E, { amount:
|
|
117
|
-
/* @__PURE__ */ e(
|
|
115
|
+
/* @__PURE__ */ e(E, { amount: N, variant: "h2" }),
|
|
116
|
+
/* @__PURE__ */ e(k, { variant: "caption", whiteSpace: "nowrap", children: H(c.expenses_due, b.length) })
|
|
118
117
|
] }),
|
|
119
118
|
/* @__PURE__ */ e(s, { pt: 18, children: /* @__PURE__ */ e(z, { name: "equal" }) }),
|
|
120
119
|
/* @__PURE__ */ n(s, { pb: 14, pr: 24, pt: 12, children: [
|
|
121
120
|
/* @__PURE__ */ e(E, { amount: p, variant: "h2" }),
|
|
122
121
|
/* @__PURE__ */ n(s, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
123
|
-
/* @__PURE__ */ e(
|
|
122
|
+
/* @__PURE__ */ e(k, { variant: "caption", whiteSpace: "nowrap", children: c.available_to_spend }),
|
|
124
123
|
/* @__PURE__ */ e(pe, { body: c.tooltip_body, title: c.tooltip_title })
|
|
125
124
|
] })
|
|
126
125
|
] }),
|
|
127
126
|
/* @__PURE__ */ e(s, { borderLeft: `1px solid ${i.palette.divider}`, pb: 12, pl: 24, pt: 12, children: /* @__PURE__ */ n(j, { children: [
|
|
128
127
|
/* @__PURE__ */ e(m, { variant: "h2", children: H(c.days, l) }),
|
|
129
|
-
/* @__PURE__ */ e(
|
|
128
|
+
/* @__PURE__ */ e(k, { variant: "caption", whiteSpace: "nowrap", children: c.next_paycheck })
|
|
130
129
|
] }) })
|
|
131
130
|
]
|
|
132
131
|
}
|
|
@@ -141,7 +140,7 @@ const q = () => {
|
|
|
141
140
|
/* @__PURE__ */ e(v, {}),
|
|
142
141
|
/* @__PURE__ */ n(s, { direction: "row", justifyContent: "space-between", p: 16, children: [
|
|
143
142
|
/* @__PURE__ */ e(m, { variant: "body2", children: H(c.expenses_due, b.length) }),
|
|
144
|
-
/* @__PURE__ */ e(E, { amount:
|
|
143
|
+
/* @__PURE__ */ e(E, { amount: N, bold: !0, symbol: "-", variant: "caption" })
|
|
145
144
|
] }),
|
|
146
145
|
/* @__PURE__ */ e(v, {}),
|
|
147
146
|
/* @__PURE__ */ e(
|
|
@@ -169,7 +168,7 @@ const q = () => {
|
|
|
169
168
|
onSecondaryCtaClick: o,
|
|
170
169
|
sx: t = {}
|
|
171
170
|
}) => {
|
|
172
|
-
const { cashflow: r } =
|
|
171
|
+
const { cashflow: r } = L(), { isInitialized: f } = P(), { loadRepeatingTransactionData: u, income: c, isDataLoaded: l, setDateRange: b } = B();
|
|
173
172
|
h.useEffect(() => {
|
|
174
173
|
b({ start: F(), end: Ye(F(), 1) }), l || u().finally();
|
|
175
174
|
}, []), Oe({
|
|
@@ -178,7 +177,7 @@ const q = () => {
|
|
|
178
177
|
});
|
|
179
178
|
const a = l && !c.length;
|
|
180
179
|
return f ? /* @__PURE__ */ n(
|
|
181
|
-
|
|
180
|
+
Ze,
|
|
182
181
|
{
|
|
183
182
|
className: "mx-exp-cashflow-miniwidget",
|
|
184
183
|
onPrimaryCtaClick: i,
|
|
@@ -190,7 +189,7 @@ const q = () => {
|
|
|
190
189
|
children: [
|
|
191
190
|
!l && /* @__PURE__ */ e(Z, {}),
|
|
192
191
|
l && (a ? /* @__PURE__ */ e(
|
|
193
|
-
|
|
192
|
+
et,
|
|
194
193
|
{
|
|
195
194
|
header: r.create,
|
|
196
195
|
icon: "local_atm",
|
|
@@ -203,7 +202,7 @@ const q = () => {
|
|
|
203
202
|
]
|
|
204
203
|
}
|
|
205
204
|
) : /* @__PURE__ */ e(Z, {});
|
|
206
|
-
},
|
|
205
|
+
}, Mn = A(Ct), wt = ({ remaining: i }) => /* @__PURE__ */ e(
|
|
207
206
|
ee,
|
|
208
207
|
{
|
|
209
208
|
sx: {
|
|
@@ -238,10 +237,10 @@ const St = ({ recurrence: i }) => /* @__PURE__ */ n(j, { children: [
|
|
|
238
237
|
] }),
|
|
239
238
|
/* @__PURE__ */ e(v, {})
|
|
240
239
|
] }), Te = A(St), Dt = ({ total: i, type: o }) => {
|
|
241
|
-
const { cashflow: t } =
|
|
240
|
+
const { cashflow: t } = L();
|
|
242
241
|
return /* @__PURE__ */ n(j, { children: [
|
|
243
242
|
/* @__PURE__ */ n(
|
|
244
|
-
|
|
243
|
+
it,
|
|
245
244
|
{
|
|
246
245
|
sx: {
|
|
247
246
|
alignItems: "center",
|
|
@@ -264,11 +263,11 @@ const St = ({ recurrence: i }) => /* @__PURE__ */ n(j, { children: [
|
|
|
264
263
|
/* @__PURE__ */ e(v, {})
|
|
265
264
|
] });
|
|
266
265
|
}, Ae = A(Dt), oe = (i, o) => (t) => t.accountGuid === i.guid && (Fe(t.expectedDate) || Ge(t.expectedDate, o.start)) && Me(t.expectedDate, o.end), It = () => {
|
|
267
|
-
const { availableWidth: i } = ae(), { cashflow: o } =
|
|
266
|
+
const { availableWidth: i } = ae(), { cashflow: o } = L(), { upcomingExpenses: t, upcomingIncome: r } = B(), { dateRange: f, selectedCashAccounts: u } = q();
|
|
268
267
|
return /* @__PURE__ */ n(s, { children: [
|
|
269
268
|
/* @__PURE__ */ n(s, { direction: i < 400 ? "column" : "row", justifyContent: "space-between", children: [
|
|
270
|
-
/* @__PURE__ */ e(m, { bold: !0, sx: { fontSize: 15, mb: 12
|
|
271
|
-
/* @__PURE__ */ n(m, { bold: !0, sx: { fontSize: 15, mb: 12
|
|
269
|
+
/* @__PURE__ */ e(m, { bold: !0, sx: { fontSize: 15, mb: 12 }, children: o.accounts_breakdown }),
|
|
270
|
+
/* @__PURE__ */ n(m, { bold: !0, sx: { fontSize: 15, mb: 12 }, children: [
|
|
272
271
|
U(f.start, Y.FULL_MONTH_DAY),
|
|
273
272
|
" -",
|
|
274
273
|
" ",
|
|
@@ -296,7 +295,7 @@ const St = ({ recurrence: i }) => /* @__PURE__ */ n(j, { children: [
|
|
|
296
295
|
},
|
|
297
296
|
children: [
|
|
298
297
|
/* @__PURE__ */ e(
|
|
299
|
-
|
|
298
|
+
ot,
|
|
300
299
|
{
|
|
301
300
|
account: c,
|
|
302
301
|
listItemProps: {
|
|
@@ -336,7 +335,7 @@ const St = ({ recurrence: i }) => /* @__PURE__ */ n(j, { children: [
|
|
|
336
335
|
}) })
|
|
337
336
|
] });
|
|
338
337
|
}, vt = A(It), Tt = () => {
|
|
339
|
-
const { availableWidth: i } = ae(), o = ie(), { cashflow: t } =
|
|
338
|
+
const { availableWidth: i } = ae(), o = ie(), { cashflow: t } = L(), { upcomingExpenses: r, upcomingIncome: f } = B(), { dateRange: u, selectedCashAccounts: c } = q(), l = [
|
|
340
339
|
{
|
|
341
340
|
field: "account",
|
|
342
341
|
flex: 1.5,
|
|
@@ -429,8 +428,7 @@ const St = ({ recurrence: i }) => /* @__PURE__ */ n(j, { children: [
|
|
|
429
428
|
{
|
|
430
429
|
bold: !0,
|
|
431
430
|
sx: {
|
|
432
|
-
fontSize: 15
|
|
433
|
-
whiteSpace: "normal"
|
|
431
|
+
fontSize: 15
|
|
434
432
|
},
|
|
435
433
|
children: t.cash_inflow_and_outflow
|
|
436
434
|
}
|
|
@@ -443,7 +441,7 @@ const St = ({ recurrence: i }) => /* @__PURE__ */ n(j, { children: [
|
|
|
443
441
|
}
|
|
444
442
|
)
|
|
445
443
|
] }),
|
|
446
|
-
/* @__PURE__ */ n(m, { bold: !0, sx: { fontSize: 15
|
|
444
|
+
/* @__PURE__ */ n(m, { bold: !0, sx: { fontSize: 15 }, children: [
|
|
447
445
|
U(u.start, Y.FULL_MONTH_DAY),
|
|
448
446
|
" -",
|
|
449
447
|
" ",
|
|
@@ -470,7 +468,7 @@ const St = ({ recurrence: i }) => /* @__PURE__ */ n(j, { children: [
|
|
|
470
468
|
"& .MuiDataGrid-columnHeader .MuiIconButton-root": {
|
|
471
469
|
color: o.palette.primary.main,
|
|
472
470
|
"&:hover": {
|
|
473
|
-
backgroundColor:
|
|
471
|
+
backgroundColor: qe(o.palette.primary.main, 0.1)
|
|
474
472
|
}
|
|
475
473
|
},
|
|
476
474
|
"& .MuiDataGrid-columnHeaderTitle": {
|
|
@@ -572,14 +570,14 @@ const St = ({ recurrence: i }) => /* @__PURE__ */ n(j, { children: [
|
|
|
572
570
|
}
|
|
573
571
|
);
|
|
574
572
|
}, At = A(Tt), Rt = () => {
|
|
575
|
-
const { cashflow: i } =
|
|
573
|
+
const { cashflow: i } = L(), { isDesktop: o } = ue(), { onEvent: t } = Ne(), [r, f] = h.useState(0), u = (c, l) => {
|
|
576
574
|
f(l);
|
|
577
575
|
};
|
|
578
576
|
return h.useEffect(() => {
|
|
579
577
|
t(r === 0 ? "cash_flow_summary" : "cash_flow_details");
|
|
580
578
|
}, [r]), /* @__PURE__ */ n(I, { children: [
|
|
581
579
|
/* @__PURE__ */ n(
|
|
582
|
-
|
|
580
|
+
nt,
|
|
583
581
|
{
|
|
584
582
|
"aria-label": i.cashflow_summary_and_details,
|
|
585
583
|
centered: !0,
|
|
@@ -641,8 +639,8 @@ const St = ({ recurrence: i }) => /* @__PURE__ */ n(j, { children: [
|
|
|
641
639
|
o && /* @__PURE__ */ e(E, { amount: i, component: "h2", symbol: f, variant: "body2" })
|
|
642
640
|
]
|
|
643
641
|
}
|
|
644
|
-
), Re = (i, o) => (t) => t.accountGuid && i.includes(t.accountGuid) && (Fe(t.expectedDate) || Ge(t.expectedDate, o.start)) && Me(t.expectedDate, o.end),
|
|
645
|
-
const { availableWidth: i } = ae(), { cashflow: o } =
|
|
642
|
+
), Re = (i, o) => (t) => t.accountGuid && i.includes(t.accountGuid) && (Fe(t.expectedDate) || Ge(t.expectedDate, o.start)) && Me(t.expectedDate, o.end), Lt = () => {
|
|
643
|
+
const { availableWidth: i } = ae(), { cashflow: o } = L(), { income: t, isDataLoaded: r, upcomingExpenses: f, upcomingIncome: u } = B(), { selectedAccountGuids: c } = P(), { dateRange: l, selectedCashAccounts: b } = q(), [a, g] = h.useState(!1), d = h.useMemo(
|
|
646
644
|
() => f.filter(Re(c, l)),
|
|
647
645
|
[l, c, f]
|
|
648
646
|
), x = h.useMemo(
|
|
@@ -651,7 +649,7 @@ const St = ({ recurrence: i }) => /* @__PURE__ */ n(j, { children: [
|
|
|
651
649
|
), C = h.useMemo(
|
|
652
650
|
() => b.reduce((_, S) => _ + (S?.balance || 0), 0),
|
|
653
651
|
[b]
|
|
654
|
-
), w = d.reduce((_, S) => _ + S.amount, 0), R = x.reduce((_, S) => _ + S.amount, 0), D = C - w + R,
|
|
652
|
+
), w = d.reduce((_, S) => _ + S.amount, 0), R = x.reduce((_, S) => _ + S.amount, 0), D = C - w + R, N = r && t.length > 0, p = i < 725;
|
|
655
653
|
return /* @__PURE__ */ n(s, { sx: { mx: p ? 16 : 0, my: p ? 24 : 42 }, children: [
|
|
656
654
|
/* @__PURE__ */ n(
|
|
657
655
|
s,
|
|
@@ -672,7 +670,7 @@ const St = ({ recurrence: i }) => /* @__PURE__ */ n(j, { children: [
|
|
|
672
670
|
}
|
|
673
671
|
),
|
|
674
672
|
p && /* @__PURE__ */ e(v, {}),
|
|
675
|
-
|
|
673
|
+
N ? /* @__PURE__ */ n(j, { children: [
|
|
676
674
|
!p && /* @__PURE__ */ e(m, { sx: { fontSize: 25, lineHeight: 1 }, children: "+" }),
|
|
677
675
|
/* @__PURE__ */ e(
|
|
678
676
|
ne,
|
|
@@ -734,8 +732,8 @@ const St = ({ recurrence: i }) => /* @__PURE__ */ n(j, { children: [
|
|
|
734
732
|
}
|
|
735
733
|
)
|
|
736
734
|
] });
|
|
737
|
-
},
|
|
738
|
-
const { selectedAccounts: r, selectedAccountGuids: f, shouldDisableNextDate: u, shouldDisablePrevDate: c } = P(), { onEvent: l } =
|
|
735
|
+
}, Nt = A(Lt), kt = ({ onBackClick: i, onMenuClick: o, sx: t = {} }) => {
|
|
736
|
+
const { selectedAccounts: r, selectedAccountGuids: f, shouldDisableNextDate: u, shouldDisablePrevDate: c } = P(), { onEvent: l } = Ne(), { clientConfig: b } = Je(), { visibleCashAccounts: a } = Le(), { setFilter: g } = ke(), { dateRange: d, setSelectedCashAccounts: x } = q(), { loadRepeatingTransactionData: C, isDataLoaded: w, setDateRange: R } = B(), { cashflow: D, recurring: N } = L(), { isInitialized: p } = P(), S = b?.master?.deep_link_params?.view === "manage_income", [re, K] = h.useState(S);
|
|
739
737
|
return h.useEffect(() => {
|
|
740
738
|
R(d), w || C().finally();
|
|
741
739
|
}, []), h.useEffect(() => {
|
|
@@ -754,7 +752,7 @@ const St = ({ recurrence: i }) => /* @__PURE__ */ n(j, { children: [
|
|
|
754
752
|
{
|
|
755
753
|
actions: [
|
|
756
754
|
{
|
|
757
|
-
label:
|
|
755
|
+
label: N.action_title,
|
|
758
756
|
iconName: "credit_card_gear",
|
|
759
757
|
onClick: () => {
|
|
760
758
|
K(!0), l(Se.CASH_FLOW_CLICK_SETTINGS);
|
|
@@ -784,7 +782,7 @@ const St = ({ recurrence: i }) => /* @__PURE__ */ n(j, { children: [
|
|
|
784
782
|
sx: t,
|
|
785
783
|
title: D.title,
|
|
786
784
|
children: [
|
|
787
|
-
/* @__PURE__ */ e(
|
|
785
|
+
/* @__PURE__ */ e(Nt, {}),
|
|
788
786
|
/* @__PURE__ */ e(Et, {}),
|
|
789
787
|
/* @__PURE__ */ e(
|
|
790
788
|
He,
|
|
@@ -793,29 +791,21 @@ const St = ({ recurrence: i }) => /* @__PURE__ */ n(j, { children: [
|
|
|
793
791
|
isOpen: re,
|
|
794
792
|
onClose: () => K(!1),
|
|
795
793
|
shouldShowHeaderBorders: !1,
|
|
796
|
-
title:
|
|
797
|
-
children: /* @__PURE__ */ e(
|
|
794
|
+
title: N.action_title,
|
|
795
|
+
children: /* @__PURE__ */ e(tt, { defaultSelectedTab: S ? 1 : 0 })
|
|
798
796
|
}
|
|
799
797
|
)
|
|
800
798
|
]
|
|
801
799
|
}
|
|
802
800
|
) : /* @__PURE__ */ e(Z, {});
|
|
803
|
-
},
|
|
804
|
-
const { completeOnboarding: o } = me(), { cashflow: t } =
|
|
801
|
+
}, Fn = A(kt), Ot = ({ handleNextStep: i }) => {
|
|
802
|
+
const { completeOnboarding: o } = me(), { cashflow: t } = L(), r = ie();
|
|
805
803
|
return /* @__PURE__ */ n(s, { children: [
|
|
806
804
|
/* @__PURE__ */ e(de, { pb: 12, variant: "h1", children: t.welcome_title }),
|
|
807
|
-
/* @__PURE__ */ e(
|
|
808
|
-
|
|
809
|
-
{
|
|
810
|
-
color: r.palette.primary.light,
|
|
811
|
-
pb: 8,
|
|
812
|
-
sx: { wordBreak: "break-word", whiteSpace: "initial" },
|
|
813
|
-
children: t.welcome_sub_title
|
|
814
|
-
}
|
|
815
|
-
),
|
|
816
|
-
/* @__PURE__ */ e(N, { pb: 32, children: t.welcome_description }),
|
|
805
|
+
/* @__PURE__ */ e(Ve, { color: r.palette.primary.light, pb: 8, children: t.welcome_sub_title }),
|
|
806
|
+
/* @__PURE__ */ e(k, { pb: 32, children: t.welcome_description }),
|
|
817
807
|
/* @__PURE__ */ n(s, { direction: "column", mb: 32, spacing: 32, children: [
|
|
818
|
-
/* @__PURE__ */ n(
|
|
808
|
+
/* @__PURE__ */ n(k, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
|
|
819
809
|
/* @__PURE__ */ e(
|
|
820
810
|
I,
|
|
821
811
|
{
|
|
@@ -831,7 +821,7 @@ const St = ({ recurrence: i }) => /* @__PURE__ */ n(j, { children: [
|
|
|
831
821
|
),
|
|
832
822
|
t.bullet_one
|
|
833
823
|
] }),
|
|
834
|
-
/* @__PURE__ */ n(
|
|
824
|
+
/* @__PURE__ */ n(k, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
|
|
835
825
|
/* @__PURE__ */ e(
|
|
836
826
|
I,
|
|
837
827
|
{
|
|
@@ -847,7 +837,7 @@ const St = ({ recurrence: i }) => /* @__PURE__ */ n(j, { children: [
|
|
|
847
837
|
),
|
|
848
838
|
t.bullet_two
|
|
849
839
|
] }),
|
|
850
|
-
/* @__PURE__ */ n(
|
|
840
|
+
/* @__PURE__ */ n(k, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
|
|
851
841
|
/* @__PURE__ */ e(
|
|
852
842
|
I,
|
|
853
843
|
{
|
|
@@ -873,13 +863,13 @@ const St = ({ recurrence: i }) => /* @__PURE__ */ n(j, { children: [
|
|
|
873
863
|
CASHFLOW_ONBOARDING: `${Ee}/cashflow-onboarding.png`,
|
|
874
864
|
CASHFLOW_LOADING_ANIMATION: `${Ee}/loading-animation.gif`
|
|
875
865
|
}, Mt = () => {
|
|
876
|
-
const { cashflow: i } =
|
|
866
|
+
const { cashflow: i } = L();
|
|
877
867
|
return /* @__PURE__ */ n(h.Fragment, { children: [
|
|
878
868
|
/* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("img", { alt: "Loading", src: ze.CASHFLOW_LOADING_ANIMATION }) }),
|
|
879
869
|
/* @__PURE__ */ e(de, { pb: 12, variant: "h1", children: i.loading_title }),
|
|
880
|
-
/* @__PURE__ */ e(
|
|
870
|
+
/* @__PURE__ */ e(k, { children: i.loading_description })
|
|
881
871
|
] });
|
|
882
|
-
}, Ft = A(Mt), Ht =
|
|
872
|
+
}, Ft = A(Mt), Ht = Ke`
|
|
883
873
|
from {
|
|
884
874
|
transform: rotate(0deg);
|
|
885
875
|
}
|
|
@@ -887,7 +877,7 @@ const St = ({ recurrence: i }) => /* @__PURE__ */ n(j, { children: [
|
|
|
887
877
|
transform: rotate(360deg);
|
|
888
878
|
}
|
|
889
879
|
`, Wt = () => {
|
|
890
|
-
const { addRepeatingTransaction: i, repeatingTransactions: o } = B(), { cashflow: t, common: r } =
|
|
880
|
+
const { addRepeatingTransaction: i, repeatingTransactions: o } = B(), { cashflow: t, common: r } = L(), { user: f } = Qe(), { completeOnboarding: u } = me(), { isDirty: c } = q(), { isMobile: l } = ue(), { isCopyLoaded: b, setDisplayedDate: a } = P(), { filter: g, setFilter: d, transactions: x } = ke(), C = ie(), [w, R] = V(!0), [D, N] = h.useState(gt.EveryMonth), [p, _] = h.useState(1), [S, re] = h.useState(15), [K, se] = V(!1), [$, G] = V(1), [O, je] = V([]), [fe, ce] = V(""), M = h.useMemo(
|
|
891
881
|
() => x.find((y) => y.guid === fe),
|
|
892
882
|
[fe, x]
|
|
893
883
|
), Be = !!o.filter(
|
|
@@ -962,7 +952,7 @@ const St = ({ recurrence: i }) => /* @__PURE__ */ n(j, { children: [
|
|
|
962
952
|
},
|
|
963
953
|
children: [
|
|
964
954
|
/* @__PURE__ */ e(de, { pb: 12, variant: "h1", children: t.add_income_title }),
|
|
965
|
-
/* @__PURE__ */ e(
|
|
955
|
+
/* @__PURE__ */ e(k, { mb: 24, children: t.add_income_description }),
|
|
966
956
|
O.length > 0 && !M && /* @__PURE__ */ n(j, { children: [
|
|
967
957
|
/* @__PURE__ */ e(Q, { children: O.map((y, T) => /* @__PURE__ */ n(h.Fragment, { children: [
|
|
968
958
|
/* @__PURE__ */ e(ht, { bgcolor: "background.paper", children: bt(
|
|
@@ -996,7 +986,7 @@ const St = ({ recurrence: i }) => /* @__PURE__ */ n(j, { children: [
|
|
|
996
986
|
}
|
|
997
987
|
}
|
|
998
988
|
),
|
|
999
|
-
!Be && c && /* @__PURE__ */ e(
|
|
989
|
+
!Be && c && /* @__PURE__ */ e(k, { color: "error", mt: 16, children: t.confirm_error }),
|
|
1000
990
|
M && /* @__PURE__ */ n(j, { children: [
|
|
1001
991
|
/* @__PURE__ */ e(
|
|
1002
992
|
lt,
|
|
@@ -1005,7 +995,7 @@ const St = ({ recurrence: i }) => /* @__PURE__ */ n(j, { children: [
|
|
|
1005
995
|
firstDay: p,
|
|
1006
996
|
frequency: D,
|
|
1007
997
|
onFirstDayChange: _,
|
|
1008
|
-
onFrequencyChange:
|
|
998
|
+
onFrequencyChange: N,
|
|
1009
999
|
onSecondDayChange: re,
|
|
1010
1000
|
secondDay: S,
|
|
1011
1001
|
transaction: M
|
|
@@ -1067,9 +1057,9 @@ const St = ({ recurrence: i }) => /* @__PURE__ */ n(j, { children: [
|
|
|
1067
1057
|
]
|
|
1068
1058
|
}
|
|
1069
1059
|
) : /* @__PURE__ */ e(Z, {});
|
|
1070
|
-
},
|
|
1060
|
+
}, Hn = A(Wt);
|
|
1071
1061
|
export {
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1062
|
+
Mn as CashflowMiniWidget,
|
|
1063
|
+
Hn as CashflowOnboarding,
|
|
1064
|
+
Fn as CashflowWidget
|
|
1075
1065
|
};
|
|
@@ -9,6 +9,6 @@ declare class ErrorBoundary extends React.Component<ErrorProps, ErrorState> {
|
|
|
9
9
|
state: ErrorState;
|
|
10
10
|
componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void;
|
|
11
11
|
static getDerivedStateFromError(): ErrorState;
|
|
12
|
-
render(): string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
12
|
+
render(): string | number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
|
|
13
13
|
}
|
|
14
14
|
export default ErrorBoundary;
|
|
@@ -9,7 +9,7 @@ type Action = {
|
|
|
9
9
|
};
|
|
10
10
|
interface WidgetContainerProps {
|
|
11
11
|
allowedAccountTypes?: AccountType[] | undefined;
|
|
12
|
-
actions?: (Action | JSX.Element)[];
|
|
12
|
+
actions?: (Action | React.JSX.Element)[];
|
|
13
13
|
calendarActions?: CalendarActions;
|
|
14
14
|
className?: string;
|
|
15
15
|
dateRange?: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const usePrevious: (value: any) =>
|
|
1
|
+
export declare const usePrevious: (value: any) => null;
|
|
2
2
|
export default usePrevious;
|