@mx-cartographer/experiences 7.0.59-alpha.al0 → 7.0.59
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 +8 -0
- package/dist/{EmptyState-w2yYDuKG.mjs → EmptyState-DsXpMcro.mjs} +26 -24
- package/dist/{RecurringSettings-qv7DNYac.mjs → RecurringSettings-B486z99o.mjs} +29 -29
- package/dist/budgets/index.es.js +1 -1
- package/dist/cashflow/components/CashflowWidgetContent.d.ts +3 -5
- package/dist/cashflow/index.es.js +410 -424
- package/dist/common/components/EmptyState.d.ts +1 -0
- package/dist/common/index.es.js +1 -1
- package/dist/finstrong/index.es.js +1 -1
- package/dist/goals/index.es.js +4 -4
- package/dist/help/HelpWidget.d.ts +1 -1
- package/dist/help/index.es.js +10 -10
- package/dist/investments/index.es.js +1 -1
- package/dist/networth/index.es.js +1 -1
- package/dist/recurringtransactions/components/RecurringSettingsDrawer.d.ts +2 -1
- package/dist/recurringtransactions/components/shared/RecurringSettings.d.ts +5 -1
- package/dist/recurringtransactions/index.es.js +50 -50
- package/dist/trends/index.es.js +351 -350
- package/package.json +1 -1
package/dist/common/index.es.js
CHANGED
|
@@ -28,7 +28,7 @@ import { I as hr } from "../CashflowStore-D9Dpuz7X.mjs";
|
|
|
28
28
|
import { d as it } from "../GoalStore-DxOUk36P.mjs";
|
|
29
29
|
import { C as pr, G as mr, M as _r, T as fr } from "../GoalStore-DxOUk36P.mjs";
|
|
30
30
|
import { C as Sr } from "../CurrencyText-YUhH2caW.mjs";
|
|
31
|
-
import { E as wr } from "../EmptyState-
|
|
31
|
+
import { E as wr } from "../EmptyState-DsXpMcro.mjs";
|
|
32
32
|
import { L as Cr } from "../ListItemAction-DSrYDGAP.mjs";
|
|
33
33
|
import { T as ct } from "../TrendsStore-BKBnNQba.mjs";
|
|
34
34
|
import { L as Dr, S as Ar } from "../TrendsStore-BKBnNQba.mjs";
|
|
@@ -30,7 +30,7 @@ import Ue from "@mui/material/AccordionSummary";
|
|
|
30
30
|
import Ve from "@mui/material/CardHeader";
|
|
31
31
|
import { u as Ye } from "../useDimensions-27p2evRx.mjs";
|
|
32
32
|
import { C as qe } from "../ConnectionsDrawer-CU3E2RLw.mjs";
|
|
33
|
-
import { R as Je } from "../RecurringSettings-
|
|
33
|
+
import { R as Je } from "../RecurringSettings-B486z99o.mjs";
|
|
34
34
|
import Qe from "@mui/material/TextField";
|
|
35
35
|
import { u as Ce } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
36
36
|
import { a as Ze } from "../Dialog-CWW597AF.mjs";
|
package/dist/goals/index.es.js
CHANGED
|
@@ -48,9 +48,9 @@ import { isValid as ut } from "date-fns/isValid";
|
|
|
48
48
|
import { AdapterDateFns as _t } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
49
49
|
import { DatePicker as pt } from "@mui/x-date-pickers";
|
|
50
50
|
import { LocalizationProvider as ht } from "@mui/x-date-pickers/LocalizationProvider";
|
|
51
|
-
import {
|
|
52
|
-
import { A as Y, W as bt } from "../WidgetContainer-B8MRJ5Y1.mjs";
|
|
51
|
+
import { A as Y, W as gt } from "../WidgetContainer-B8MRJ5Y1.mjs";
|
|
53
52
|
import { L as Ke } from "../Loader-DUaFpDGv.mjs";
|
|
53
|
+
import { E as bt } from "../EmptyState-DsXpMcro.mjs";
|
|
54
54
|
import ft from "@mui/material/Stack/Stack";
|
|
55
55
|
import yt from "@mui/material/Box";
|
|
56
56
|
import At from "@mui/material/styles/useTheme";
|
|
@@ -948,7 +948,7 @@ const St = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
948
948
|
[m, c, S]
|
|
949
949
|
);
|
|
950
950
|
return !c || !a || !_ ? /* @__PURE__ */ e(Ke, {}) : /* @__PURE__ */ r(
|
|
951
|
-
|
|
951
|
+
gt,
|
|
952
952
|
{
|
|
953
953
|
accountOptions: p,
|
|
954
954
|
actions: [
|
|
@@ -998,7 +998,7 @@ const St = (t, n) => n ? v(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
998
998
|
}
|
|
999
999
|
),
|
|
1000
1000
|
O ? /* @__PURE__ */ e(
|
|
1001
|
-
|
|
1001
|
+
bt,
|
|
1002
1002
|
{
|
|
1003
1003
|
header: l.create_goals_header,
|
|
1004
1004
|
icon: "trophy",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { WidgetProps } from '../common';
|
|
2
|
-
export declare const HelpWidget: (({ sx }: WidgetProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
2
|
+
export declare const HelpWidget: (({ onBackClick, sx }: WidgetProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
3
3
|
displayName: string;
|
|
4
4
|
};
|
package/dist/help/index.es.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { observer as
|
|
3
|
-
import { H as
|
|
4
|
-
import { b as
|
|
5
|
-
import { L as
|
|
6
|
-
import { W as
|
|
7
|
-
const
|
|
8
|
-
const { isCopyLoaded:
|
|
9
|
-
return !
|
|
2
|
+
import { observer as m } from "mobx-react-lite";
|
|
3
|
+
import { H as s } from "../Help-CzBAsKA2.mjs";
|
|
4
|
+
import { b as p } from "../hooks-CE2TKk4a.mjs";
|
|
5
|
+
import { L as a } from "../Loader-DUaFpDGv.mjs";
|
|
6
|
+
import { W as n } from "../WidgetContainer-B8MRJ5Y1.mjs";
|
|
7
|
+
const x = m(({ onBackClick: o, sx: i }) => {
|
|
8
|
+
const { isCopyLoaded: e, isInitialized: t } = p();
|
|
9
|
+
return !e || !t ? /* @__PURE__ */ r(a, {}) : /* @__PURE__ */ r(n, { onBackClick: o, sx: { p: 16 }, children: /* @__PURE__ */ r(s, { sx: i }) });
|
|
10
10
|
});
|
|
11
11
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
s as Help,
|
|
13
|
+
x as HelpWidget
|
|
14
14
|
};
|
|
@@ -38,7 +38,7 @@ import { D as $e } from "../Drawer-kEE73B87.mjs";
|
|
|
38
38
|
import { DataGridPro as qe } from "@mui/x-data-grid-pro";
|
|
39
39
|
import { Stack as Ke } from "@mui/material";
|
|
40
40
|
import { L as De } from "../Loader-DUaFpDGv.mjs";
|
|
41
|
-
import { E as Ye } from "../EmptyState-
|
|
41
|
+
import { E as Ye } from "../EmptyState-DsXpMcro.mjs";
|
|
42
42
|
const de = ({ sx: t = {} }) => {
|
|
43
43
|
const { investments: h } = E(), { onEvent: c } = be(), { setShowConnectionsWidget: u } = H();
|
|
44
44
|
return /* @__PURE__ */ o(_, { sx: { alignItems: "center", gap: 24, height: 164, p: 24, width: "100%", ...t }, children: [
|
|
@@ -31,7 +31,7 @@ import { C as Me } from "../ConnectionsDrawer-CU3E2RLw.mjs";
|
|
|
31
31
|
import He from "@mui/material/Collapse";
|
|
32
32
|
import V from "@mui/material/ListItemIcon";
|
|
33
33
|
import ie from "@mui/material/styles/useTheme";
|
|
34
|
-
import { E as Be } from "../EmptyState-
|
|
34
|
+
import { E as Be } from "../EmptyState-DsXpMcro.mjs";
|
|
35
35
|
import { D as Y } from "../Drawer-kEE73B87.mjs";
|
|
36
36
|
const Oe = ({
|
|
37
37
|
chartData: t,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
interface RecurringSettingsDrawerProps {
|
|
2
2
|
isOpen: boolean;
|
|
3
3
|
onClose: () => void;
|
|
4
|
+
selectedTab?: number;
|
|
4
5
|
}
|
|
5
|
-
export declare const RecurringSettingsDrawer: (({ isOpen, onClose }: RecurringSettingsDrawerProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
6
|
+
export declare const RecurringSettingsDrawer: (({ isOpen, onClose, selectedTab }: RecurringSettingsDrawerProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
6
7
|
displayName: string;
|
|
7
8
|
};
|
|
8
9
|
export {};
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
interface RecurringSettingsProps {
|
|
2
|
+
defaultSelectedTab?: number;
|
|
3
|
+
}
|
|
4
|
+
export declare const RecurringSettings: (({ defaultSelectedTab }: RecurringSettingsProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
2
5
|
displayName: string;
|
|
3
6
|
};
|
|
7
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsx as e, jsxs as a, Fragment as
|
|
1
|
+
import { jsx as e, jsxs as a, Fragment as X } from "react/jsx-runtime";
|
|
2
2
|
import h from "react";
|
|
3
3
|
import { observer as T } from "mobx-react-lite";
|
|
4
4
|
import { endOfMonth as z } from "date-fns/endOfMonth";
|
|
@@ -8,8 +8,8 @@ import { startOfToday as ue } from "date-fns/startOfToday";
|
|
|
8
8
|
import { subDays as me } from "date-fns/subDays";
|
|
9
9
|
import ae from "@mui/material/Skeleton";
|
|
10
10
|
import c from "@mui/material/Stack";
|
|
11
|
-
import { R as Ee } from "../RecurringSettings-
|
|
12
|
-
import { M as En } from "../RecurringSettings-
|
|
11
|
+
import { R as Ee } from "../RecurringSettings-B486z99o.mjs";
|
|
12
|
+
import { M as En } from "../RecurringSettings-B486z99o.mjs";
|
|
13
13
|
import { addMonths as ze } from "date-fns/addMonths";
|
|
14
14
|
import { subMonths as Fe } from "date-fns/subMonths";
|
|
15
15
|
import { isBefore as Ue } from "date-fns/isBefore";
|
|
@@ -27,8 +27,8 @@ import { LocalizationProvider as tt } from "@mui/x-date-pickers/LocalizationProv
|
|
|
27
27
|
import { isSameDay as nt } from "date-fns/isSameDay";
|
|
28
28
|
import it from "@mui/material/Badge";
|
|
29
29
|
import { PickersDay as rt } from "@mui/x-date-pickers/PickersDay";
|
|
30
|
-
import { I as
|
|
31
|
-
import { u as D, b as
|
|
30
|
+
import { I as Z } from "../IconBacking-B9oC6uL2.mjs";
|
|
31
|
+
import { u as D, b as q, j as I, g as J, p as Oe, d as he, h as fe } from "../hooks-CE2TKk4a.mjs";
|
|
32
32
|
import { c as M, a as S, g as Ie, f as ot } from "../RecurringTransactions-DTUx9VN1.mjs";
|
|
33
33
|
import { T as B } from "../RecurringTransactionsStore-Djo9IeDd.mjs";
|
|
34
34
|
import { R as Nn } from "../RecurringTransactionsStore-Djo9IeDd.mjs";
|
|
@@ -50,7 +50,7 @@ import { f as A, D as E } from "../Dialog-CWW597AF.mjs";
|
|
|
50
50
|
import O from "@mui/material/Box";
|
|
51
51
|
import { S as We } from "../StatusBar-BK_uYHAB.mjs";
|
|
52
52
|
import { u as ye } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
53
|
-
import { L as
|
|
53
|
+
import { L as V } from "../Loader-DUaFpDGv.mjs";
|
|
54
54
|
import { M as pt } from "../MiniWidgetContainer-DTQdRK-3.mjs";
|
|
55
55
|
import { u as gt } from "../useDimensions-27p2evRx.mjs";
|
|
56
56
|
import { M as ht } from "../MicroWidgetContainer-C4QQHfD7.mjs";
|
|
@@ -58,15 +58,15 @@ const Q = {
|
|
|
58
58
|
gridRow: 1,
|
|
59
59
|
gridColumn: 1,
|
|
60
60
|
zIndex: 2
|
|
61
|
-
}, ee = (t) => t ? { margin: "0 0 -6px -4px" } : void 0, Ce = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(
|
|
61
|
+
}, ee = (t) => t ? { margin: "0 0 -6px -4px" } : void 0, Ce = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(Z, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(Ke, { color: "primary", filled: !0, sx: { fontSize: n, ...Q } }) }), be = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(Z, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(
|
|
62
62
|
Ye,
|
|
63
63
|
{
|
|
64
64
|
filled: !0,
|
|
65
65
|
sx: { color: "categories.income", fontSize: n, ...Q }
|
|
66
66
|
}
|
|
67
|
-
) }), Re = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(
|
|
67
|
+
) }), Re = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(Z, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(Ge, { color: "error", filled: !0, sx: { fontSize: n, ...Q } }) }), Te = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(Z, { size: n, sx: { ...ee(t) }, children: /* @__PURE__ */ e(Ne, { color: "success", filled: !0, sx: { fontSize: n, ...Q } }) }), ft = T(
|
|
68
68
|
({ day: t, outsideCurrentMonth: n, ...i }) => {
|
|
69
|
-
const { recurring: r } = D(), { selectedAccountGuids: o } =
|
|
69
|
+
const { recurring: r } = D(), { selectedAccountGuids: o } = q(), { recurrences: l, setSelectedDay: m } = I(), s = h.useMemo(
|
|
70
70
|
() => l.filter((d) => o.includes(d.accountGuid)),
|
|
71
71
|
[o, l]
|
|
72
72
|
).filter(
|
|
@@ -81,7 +81,7 @@ const Q = {
|
|
|
81
81
|
return /* @__PURE__ */ e(
|
|
82
82
|
it,
|
|
83
83
|
{
|
|
84
|
-
badgeContent: s.length > 0 && /* @__PURE__ */ a(
|
|
84
|
+
badgeContent: s.length > 0 && /* @__PURE__ */ a(X, { children: [
|
|
85
85
|
f && /* @__PURE__ */ e(Re, { isOffset: !0 }),
|
|
86
86
|
x && /* @__PURE__ */ e(Te, { isOffset: !0 }),
|
|
87
87
|
u && /* @__PURE__ */ e(Ce, { isOffset: !0 }),
|
|
@@ -119,7 +119,7 @@ const Q = {
|
|
|
119
119
|
}
|
|
120
120
|
);
|
|
121
121
|
}
|
|
122
|
-
),
|
|
122
|
+
), Y = ({ icon: t, label: n }) => /* @__PURE__ */ a(c, { alignItems: "center", flexDirection: "row", sx: { gap: 6 }, children: [
|
|
123
123
|
/* @__PURE__ */ e(t, {}),
|
|
124
124
|
/* @__PURE__ */ e(p, { variant: "XSmall", children: n })
|
|
125
125
|
] }), xt = T(() => {
|
|
@@ -134,10 +134,10 @@ const Q = {
|
|
|
134
134
|
justifyContent: "center",
|
|
135
135
|
mt: 12,
|
|
136
136
|
children: [
|
|
137
|
-
/* @__PURE__ */ e(
|
|
138
|
-
/* @__PURE__ */ e(
|
|
139
|
-
/* @__PURE__ */ e(
|
|
140
|
-
/* @__PURE__ */ e(
|
|
137
|
+
/* @__PURE__ */ e(Y, { icon: Ce, label: t.expense }),
|
|
138
|
+
/* @__PURE__ */ e(Y, { icon: be, label: t.income }),
|
|
139
|
+
/* @__PURE__ */ e(Y, { icon: Re, label: t.missed }),
|
|
140
|
+
/* @__PURE__ */ e(Y, { icon: Te, label: t.paid })
|
|
141
141
|
]
|
|
142
142
|
}
|
|
143
143
|
);
|
|
@@ -276,7 +276,7 @@ const Q = {
|
|
|
276
276
|
/* @__PURE__ */ e(c, { alignItems: "center", direction: "row", gap: 6, children: n ? /* @__PURE__ */ a(c, { direction: "row", gap: 4, children: [
|
|
277
277
|
yt(t),
|
|
278
278
|
/* @__PURE__ */ e(p, { variant: "caption", children: Ct(t, o) })
|
|
279
|
-
] }) : /* @__PURE__ */ a(
|
|
279
|
+
] }) : /* @__PURE__ */ a(X, { children: [
|
|
280
280
|
t.institutionGuid && /* @__PURE__ */ e(
|
|
281
281
|
qe,
|
|
282
282
|
{
|
|
@@ -400,7 +400,7 @@ const Q = {
|
|
|
400
400
|
/* @__PURE__ */ e(O, { sx: { bgcolor: "success.main", height: 8, mr: 8, width: 8 } }),
|
|
401
401
|
!s && /* @__PURE__ */ e(p, { bold: !0, variant: "body2", children: L(r, "0,0.00") }),
|
|
402
402
|
/* @__PURE__ */ e(p, { variant: "caption", children: u.paid?.toLowerCase() }),
|
|
403
|
-
i !== void 0 && /* @__PURE__ */ a(
|
|
403
|
+
i !== void 0 && /* @__PURE__ */ a(X, { children: [
|
|
404
404
|
/* @__PURE__ */ e(O, { sx: { bgcolor: "error.main", height: 8, ml: 16, mr: 8, width: 8 } }),
|
|
405
405
|
!s && /* @__PURE__ */ e(p, { bold: !0, variant: "body2", children: L(i, "0,0.00") }),
|
|
406
406
|
/* @__PURE__ */ e(p, { variant: "caption", children: u.missed?.toLowerCase() })
|
|
@@ -424,29 +424,29 @@ const Q = {
|
|
|
424
424
|
paidIncomeTotal: d,
|
|
425
425
|
selectedDay: b,
|
|
426
426
|
selectedDayRecurrences: W,
|
|
427
|
-
setDateRange:
|
|
427
|
+
setDateRange: F,
|
|
428
428
|
upcomingExpenseTotal: te,
|
|
429
429
|
upcomingIncomeTotal: ne,
|
|
430
|
-
upcomingRecurrences:
|
|
430
|
+
upcomingRecurrences: U
|
|
431
431
|
} = I(), [$, _] = h.useState(0), ie = Ue(s.start, /* @__PURE__ */ new Date()), v = (R, oe) => {
|
|
432
432
|
_(oe);
|
|
433
|
-
},
|
|
433
|
+
}, j = (R) => {
|
|
434
434
|
l(w.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
|
|
435
435
|
transaction_guid: R.transaction?.guid
|
|
436
436
|
});
|
|
437
|
-
},
|
|
437
|
+
}, K = (R) => {
|
|
438
438
|
l(w.RECURRING_TRANSACTIONS_CLICK_PAID, {
|
|
439
439
|
transaction_guid: R.transaction?.guid
|
|
440
440
|
});
|
|
441
441
|
}, P = () => {
|
|
442
442
|
const R = ze(s.start, 1);
|
|
443
|
-
|
|
443
|
+
F({
|
|
444
444
|
start: k(R),
|
|
445
445
|
end: z(R)
|
|
446
446
|
});
|
|
447
447
|
}, re = () => {
|
|
448
448
|
const R = Fe(s.start, 1);
|
|
449
|
-
|
|
449
|
+
F({
|
|
450
450
|
start: k(R),
|
|
451
451
|
end: z(R)
|
|
452
452
|
});
|
|
@@ -504,8 +504,8 @@ const Q = {
|
|
|
504
504
|
i && /* @__PURE__ */ e(
|
|
505
505
|
H,
|
|
506
506
|
{
|
|
507
|
-
onRecurrenceClick:
|
|
508
|
-
recurrences:
|
|
507
|
+
onRecurrenceClick: j,
|
|
508
|
+
recurrences: U,
|
|
509
509
|
title: t.upcoming_activity
|
|
510
510
|
}
|
|
511
511
|
)
|
|
@@ -528,14 +528,14 @@ const Q = {
|
|
|
528
528
|
$ === 0 && /* @__PURE__ */ e(
|
|
529
529
|
H,
|
|
530
530
|
{
|
|
531
|
-
onRecurrenceClick:
|
|
532
|
-
recurrences:
|
|
531
|
+
onRecurrenceClick: j,
|
|
532
|
+
recurrences: U
|
|
533
533
|
}
|
|
534
534
|
),
|
|
535
535
|
$ === 1 && /* @__PURE__ */ e(
|
|
536
536
|
H,
|
|
537
537
|
{
|
|
538
|
-
onRecurrenceClick:
|
|
538
|
+
onRecurrenceClick: K,
|
|
539
539
|
recurrences: C
|
|
540
540
|
}
|
|
541
541
|
)
|
|
@@ -546,7 +546,7 @@ const Q = {
|
|
|
546
546
|
/* @__PURE__ */ e(
|
|
547
547
|
H,
|
|
548
548
|
{
|
|
549
|
-
onRecurrenceClick:
|
|
549
|
+
onRecurrenceClick: K,
|
|
550
550
|
recurrences: W || C,
|
|
551
551
|
title: b ? N(
|
|
552
552
|
t.day_transactions,
|
|
@@ -559,7 +559,7 @@ const Q = {
|
|
|
559
559
|
}
|
|
560
560
|
);
|
|
561
561
|
}), wn = T(({ onBackClick: t, sx: n = {} }) => {
|
|
562
|
-
const { accounts: i } = he(), { recurring: r } = D(), { isCopyLoaded: o, isInitialized: l, selectedAccountGuids: m, setSelectedAccounts: g } =
|
|
562
|
+
const { accounts: i } = he(), { recurring: r } = D(), { isCopyLoaded: o, isInitialized: l, selectedAccountGuids: m, setSelectedAccounts: g } = q(), { isDataLoaded: s, loadRepeatingTransactions: u, setDateRange: f } = I(), { setFilter: x } = fe(), { onEvent: C } = J(), { isMobile: y } = ye(), [d, b] = h.useState(!1);
|
|
563
563
|
return h.useEffect(() => {
|
|
564
564
|
g(i);
|
|
565
565
|
}, [i]), h.useEffect(() => {
|
|
@@ -604,7 +604,7 @@ const Q = {
|
|
|
604
604
|
)
|
|
605
605
|
]
|
|
606
606
|
}
|
|
607
|
-
) : /* @__PURE__ */ e(
|
|
607
|
+
) : /* @__PURE__ */ e(V, {});
|
|
608
608
|
}), Rt = T(() => {
|
|
609
609
|
const { recurring: t } = D(), { availableWidth: n } = Oe(), { selectedDay: i, selectedDayRecurrences: r, setSelectedDay: o, upcomingRecurrences: l } = I(), m = n < 750;
|
|
610
610
|
return /* @__PURE__ */ a(c, { flexDirection: m ? "column" : "row", width: "100%", children: [
|
|
@@ -626,7 +626,7 @@ const Q = {
|
|
|
626
626
|
] });
|
|
627
627
|
}), In = T(
|
|
628
628
|
({ onPrimaryCtaClick: t, sx: n }) => {
|
|
629
|
-
const { accounts: i } = he(), { recurring: r } = D(), { setFilter: o } = fe(), { isDataLoaded: l, loadRepeatingTransactions: m } = I(), { isCopyLoaded: g, isInitialized: s, setSelectedAccounts: u, selectedAccountGuids: f } =
|
|
629
|
+
const { accounts: i } = he(), { recurring: r } = D(), { setFilter: o } = fe(), { isDataLoaded: l, loadRepeatingTransactions: m } = I(), { isCopyLoaded: g, isInitialized: s, setSelectedAccounts: u, selectedAccountGuids: f } = q();
|
|
630
630
|
return h.useEffect(() => {
|
|
631
631
|
s && u(i);
|
|
632
632
|
}, [s]), h.useEffect(() => {
|
|
@@ -634,7 +634,7 @@ const Q = {
|
|
|
634
634
|
dateRange: { start: me(ue(), 90), end: de() },
|
|
635
635
|
accounts: f
|
|
636
636
|
}), m().finally());
|
|
637
|
-
}, [f]), !g || !s ? /* @__PURE__ */ e(
|
|
637
|
+
}, [f]), !g || !s ? /* @__PURE__ */ e(V, {}) : /* @__PURE__ */ e(
|
|
638
638
|
pt,
|
|
639
639
|
{
|
|
640
640
|
className: "mx-exp-recurring-transactions-miniwidget",
|
|
@@ -643,7 +643,7 @@ const Q = {
|
|
|
643
643
|
subTitle: r.sub_title,
|
|
644
644
|
sx: n,
|
|
645
645
|
title: r.mini_title,
|
|
646
|
-
children: l ? /* @__PURE__ */ e(Rt, {}) : /* @__PURE__ */ e(
|
|
646
|
+
children: l ? /* @__PURE__ */ e(Rt, {}) : /* @__PURE__ */ e(V, {})
|
|
647
647
|
}
|
|
648
648
|
);
|
|
649
649
|
}
|
|
@@ -727,16 +727,16 @@ const Q = {
|
|
|
727
727
|
] });
|
|
728
728
|
}), vn = T(
|
|
729
729
|
({ onCTAClick: t }) => {
|
|
730
|
-
const [n, i] = h.useState(!1), { onEvent: r } = J(), o = ge(), { accounts: l } = he(), [m, { width: g }] = gt(), { isCopyLoaded: s, isInitialized: u, selectedAccountGuids: f, setSelectedAccounts: x } =
|
|
730
|
+
const [n, i] = h.useState(!1), { onEvent: r } = J(), o = ge(), { accounts: l } = he(), [m, { width: g }] = gt(), { isCopyLoaded: s, isInitialized: u, selectedAccountGuids: f, setSelectedAccounts: x } = q(), {
|
|
731
731
|
loadRepeatingTransactions: C,
|
|
732
732
|
upcomingRecurrences: y,
|
|
733
733
|
expenseTotal: d,
|
|
734
734
|
missedExpenseTotal: b,
|
|
735
735
|
paidExpenseTotal: W,
|
|
736
|
-
repeatingTransactions:
|
|
736
|
+
repeatingTransactions: F,
|
|
737
737
|
setDateRange: te,
|
|
738
738
|
upcomingExpenseTotal: ne,
|
|
739
|
-
isDataLoaded:
|
|
739
|
+
isDataLoaded: U
|
|
740
740
|
} = I(), { setFilter: $ } = fe(), { recurring: _, budgets: ie } = D();
|
|
741
741
|
h.useEffect(() => {
|
|
742
742
|
x(l);
|
|
@@ -750,7 +750,7 @@ const Q = {
|
|
|
750
750
|
state: y.length > 0 ? "default" : "zeroState"
|
|
751
751
|
});
|
|
752
752
|
}, [n]);
|
|
753
|
-
const v = g <= 288,
|
|
753
|
+
const v = g <= 288, j = g >= 450, K = h.useMemo(() => {
|
|
754
754
|
const G = [
|
|
755
755
|
{ color: o.palette.success.main, percentage: `${W / d}` }
|
|
756
756
|
];
|
|
@@ -769,7 +769,7 @@ const Q = {
|
|
|
769
769
|
y.length > 0 ? w.RECURRING_TRANSACTIONS_CLICK_GET_STARTED : w.RECURRING_TRANSACTIONS_CLICK_VIEW_ALL
|
|
770
770
|
), t();
|
|
771
771
|
};
|
|
772
|
-
if (!s || !n || !
|
|
772
|
+
if (!s || !n || !U) return /* @__PURE__ */ e(V, { height: 100 });
|
|
773
773
|
const R = 32, oe = y.length > 0, Pe = () => oe ? v ? /* @__PURE__ */ e(
|
|
774
774
|
Dt,
|
|
775
775
|
{
|
|
@@ -793,7 +793,7 @@ const Q = {
|
|
|
793
793
|
bgColor: "border.light",
|
|
794
794
|
label: _.upcoming
|
|
795
795
|
}
|
|
796
|
-
], De = !
|
|
796
|
+
], De = !F?.length;
|
|
797
797
|
return /* @__PURE__ */ e(
|
|
798
798
|
ht,
|
|
799
799
|
{
|
|
@@ -801,7 +801,7 @@ const Q = {
|
|
|
801
801
|
ctaLabel: De ? ie.get_started_cta : _.primary_cta,
|
|
802
802
|
onCTAClick: re,
|
|
803
803
|
title: _.recurring_expenses,
|
|
804
|
-
children: De ? /* @__PURE__ */ e(_t, {}) : /* @__PURE__ */ a(
|
|
804
|
+
children: De ? /* @__PURE__ */ e(_t, {}) : /* @__PURE__ */ a(X, { children: [
|
|
805
805
|
/* @__PURE__ */ a(
|
|
806
806
|
c,
|
|
807
807
|
{
|
|
@@ -850,7 +850,7 @@ const Q = {
|
|
|
850
850
|
}
|
|
851
851
|
),
|
|
852
852
|
/* @__PURE__ */ a(c, { sx: { pt: 12 }, children: [
|
|
853
|
-
/* @__PURE__ */ e(We, { data:
|
|
853
|
+
/* @__PURE__ */ e(We, { data: K }),
|
|
854
854
|
/* @__PURE__ */ e(
|
|
855
855
|
c,
|
|
856
856
|
{
|
|
@@ -865,7 +865,7 @@ const Q = {
|
|
|
865
865
|
{
|
|
866
866
|
amount: G.amount,
|
|
867
867
|
bgcolor: G.bgColor,
|
|
868
|
-
isLargeScreen:
|
|
868
|
+
isLargeScreen: j,
|
|
869
869
|
isSmallScreen: v,
|
|
870
870
|
label: G.label
|
|
871
871
|
},
|
|
@@ -879,18 +879,18 @@ const Q = {
|
|
|
879
879
|
);
|
|
880
880
|
}
|
|
881
881
|
), Mn = T(
|
|
882
|
-
({ isOpen: t, onClose: n }) => {
|
|
883
|
-
const { cashflow:
|
|
884
|
-
return
|
|
882
|
+
({ isOpen: t, onClose: n, selectedTab: i }) => {
|
|
883
|
+
const { cashflow: r } = D();
|
|
884
|
+
return /* @__PURE__ */ e(
|
|
885
885
|
xe,
|
|
886
886
|
{
|
|
887
|
-
ariaLabelClose:
|
|
887
|
+
ariaLabelClose: r.close_settings_aria,
|
|
888
888
|
isOpen: t,
|
|
889
889
|
onClose: n,
|
|
890
|
-
title:
|
|
891
|
-
children: /* @__PURE__ */ e(Ee, {})
|
|
890
|
+
title: r.cashflow_settings,
|
|
891
|
+
children: /* @__PURE__ */ e(Ee, { defaultSelectedTab: i })
|
|
892
892
|
}
|
|
893
|
-
)
|
|
893
|
+
);
|
|
894
894
|
}
|
|
895
895
|
);
|
|
896
896
|
export {
|