@mx-cartographer/experiences 4.1.2-alpha.mega15 → 4.1.2-alpha.mega16
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/index.es.js +209 -209
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -15,7 +15,7 @@ import Xa from "numeral";
|
|
|
15
15
|
import oe from "@mui/material/Button";
|
|
16
16
|
import wt from "@mui/material/Tooltip";
|
|
17
17
|
import Fe from "@mui/material/IconButton";
|
|
18
|
-
import
|
|
18
|
+
import Qn from "@mui/material/FormControlLabel";
|
|
19
19
|
import j from "@mui/material/ListItem";
|
|
20
20
|
import ae from "@mui/material/ListItemButton";
|
|
21
21
|
import J from "@mui/material/ListItemText";
|
|
@@ -28,8 +28,8 @@ import { addWeeks as Ct } from "date-fns/addWeeks";
|
|
|
28
28
|
import { addYears as Kt } from "date-fns/addYears";
|
|
29
29
|
import { getDay as qt } from "date-fns/getDay";
|
|
30
30
|
import { isBefore as Te } from "date-fns/isBefore";
|
|
31
|
-
import { nextDay as
|
|
32
|
-
import { setDate as
|
|
31
|
+
import { nextDay as Wn } from "date-fns/nextDay";
|
|
32
|
+
import { setDate as Yn } from "date-fns/setDate";
|
|
33
33
|
import { startOfToday as ie } from "date-fns/startOfToday";
|
|
34
34
|
import { fromUnixTime as Le } from "date-fns/fromUnixTime";
|
|
35
35
|
import fe from "@mui/material/styles/useTheme";
|
|
@@ -65,14 +65,14 @@ import { subYears as Qa } from "date-fns/subYears";
|
|
|
65
65
|
import Es from "@mui/material/ButtonGroup";
|
|
66
66
|
import Ke from "@mui/material/Tab";
|
|
67
67
|
import _A from "@mui/material/Tabs";
|
|
68
|
-
import
|
|
68
|
+
import ra from "@mui/material/ToggleButton";
|
|
69
69
|
import si from "@mui/material/ToggleButtonGroup";
|
|
70
70
|
import bs from "@mui/material/Dialog";
|
|
71
71
|
import ci from "@mui/material/DialogContent";
|
|
72
72
|
import ws from "@mui/icons-material/ArrowBackOutlined";
|
|
73
73
|
import FA from "@mui/material/CardHeader";
|
|
74
74
|
import { ConnectWidget as Ss, ConnectionsWidget as Ts } from "@mxenabled/web-widget-sdk";
|
|
75
|
-
import
|
|
75
|
+
import ia from "@mui/material/CircularProgress";
|
|
76
76
|
import { v4 as Is } from "uuid";
|
|
77
77
|
import an from "@mui/material/InputAdornment";
|
|
78
78
|
import Ls from "@mui/material/Radio";
|
|
@@ -83,22 +83,22 @@ import { ChevronRight as wA, Payments as Ds, NoteStack as xs, Person as Os, Chec
|
|
|
83
83
|
import { makeAutoObservable as De, runInAction as Q, reaction as Rs, observable as Hs } from "mobx";
|
|
84
84
|
import { differenceInDays as Bs } from "date-fns/differenceInDays";
|
|
85
85
|
import pn from "@mui/icons-material/ChevronRight";
|
|
86
|
-
import
|
|
86
|
+
import oa from "@mui/icons-material/ExpandMore";
|
|
87
87
|
import { DataGridPro as Qt } from "@mui/x-data-grid-pro";
|
|
88
88
|
import { intervalToDuration as zs, formatDuration as Ks, getDate as Ya, fromUnixTime as kt, startOfMonth as Va, format as qs, differenceInMonths as ks, isSameDay as Gs, subDays as Fs, startOfToday as Xs, endOfToday as js } from "date-fns";
|
|
89
89
|
import { getMonth as pt } from "date-fns/getMonth";
|
|
90
90
|
import vt from "@mui/material/Alert";
|
|
91
|
-
import
|
|
91
|
+
import sa from "@mui/material/Snackbar";
|
|
92
92
|
import { useVirtualizer as di } from "@tanstack/react-virtual";
|
|
93
93
|
import { parseISO as ui } from "date-fns/parseISO";
|
|
94
94
|
import HA from "@mui/material/Skeleton";
|
|
95
95
|
import { isAfter as yt } from "date-fns/isAfter";
|
|
96
96
|
import { subWeeks as Ja } from "date-fns/subWeeks";
|
|
97
|
-
import { formatISO as
|
|
98
|
-
import
|
|
97
|
+
import { formatISO as ca } from "date-fns/formatISO";
|
|
98
|
+
import la from "@mui/material/MenuItem";
|
|
99
99
|
import Us from "@mui/material/RadioGroup";
|
|
100
100
|
import Gt from "@mui/icons-material/DeleteOutlined";
|
|
101
|
-
import
|
|
101
|
+
import da from "@mui/material/Switch";
|
|
102
102
|
import At from "@mui/material/TextField";
|
|
103
103
|
import rn from "@mui/icons-material/Cancel";
|
|
104
104
|
import Qs from "@mui/icons-material/HighlightOff";
|
|
@@ -109,13 +109,13 @@ import Js from "@mui/icons-material/FlagOutlined";
|
|
|
109
109
|
import Zs from "@mui/icons-material/ReceiptOutlined";
|
|
110
110
|
import { getWeeksInMonth as Za } from "date-fns/getWeeksInMonth";
|
|
111
111
|
import { AdapterDateFns as Wt } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
112
|
-
import { DateCalendar as
|
|
112
|
+
import { DateCalendar as ua } from "@mui/x-date-pickers/DateCalendar";
|
|
113
113
|
import { LocalizationProvider as fn } from "@mui/x-date-pickers/LocalizationProvider";
|
|
114
114
|
import hi from "@mui/material/Badge";
|
|
115
115
|
import { PickersDay as $s } from "@mui/x-date-pickers/PickersDay";
|
|
116
116
|
import ec from "@mui/icons-material/AccessTimeFilled";
|
|
117
117
|
import Ac from "@mui/icons-material/MonetizationOn";
|
|
118
|
-
import
|
|
118
|
+
import ha from "@mui/icons-material/CheckCircle";
|
|
119
119
|
import { getDate as Rt } from "date-fns/getDate";
|
|
120
120
|
import { isValid as gi } from "date-fns/isValid";
|
|
121
121
|
import qA from "@mui/material/Unstable_Grid2";
|
|
@@ -123,11 +123,11 @@ import { DatePicker as mi } from "@mui/x-date-pickers";
|
|
|
123
123
|
import vn from "@mui/material/Collapse";
|
|
124
124
|
import Ci from "@mui/material/CardActionArea";
|
|
125
125
|
import tc from "@mui/icons-material/DragHandle";
|
|
126
|
-
import
|
|
126
|
+
import Vn from "@mui/material/AlertTitle";
|
|
127
127
|
import yn from "@mui/icons-material/Error";
|
|
128
128
|
import nc from "@mui/material/Chip";
|
|
129
129
|
import ac from "@mui/icons-material/EditOutlined";
|
|
130
|
-
import { isToday as
|
|
130
|
+
import { isToday as ga } from "date-fns/isToday";
|
|
131
131
|
import rc from "@mui/icons-material/CheckCircleRounded";
|
|
132
132
|
import ic from "@mui/icons-material/LanguageRounded";
|
|
133
133
|
import { isYesterday as oc } from "date-fns/isYesterday";
|
|
@@ -387,7 +387,7 @@ const h8 = {
|
|
|
387
387
|
5: "Locked",
|
|
388
388
|
1: "Prevented",
|
|
389
389
|
4: "Rejected"
|
|
390
|
-
},
|
|
390
|
+
}, ma = {
|
|
391
391
|
0: "Any",
|
|
392
392
|
9: "Cash",
|
|
393
393
|
1: "Checking",
|
|
@@ -442,20 +442,20 @@ const h8 = {
|
|
|
442
442
|
7: "camera_alt",
|
|
443
443
|
8: "sports_baseball",
|
|
444
444
|
9: "monetization_on"
|
|
445
|
-
},
|
|
445
|
+
}, Ca = [
|
|
446
446
|
Y.ANY,
|
|
447
447
|
Y.CASH,
|
|
448
448
|
Y.CHECKING,
|
|
449
449
|
Y.DIGITAL_WALLET,
|
|
450
450
|
Y.PREPAID,
|
|
451
451
|
Y.SAVINGS
|
|
452
|
-
],
|
|
452
|
+
], pa = [
|
|
453
453
|
Y.CHECKING_LINE_OF_CREDIT,
|
|
454
454
|
Y.CREDIT_CARD,
|
|
455
455
|
Y.LINE_OF_CREDIT,
|
|
456
456
|
Y.LOAN,
|
|
457
457
|
Y.MORTGAGE
|
|
458
|
-
],
|
|
458
|
+
], fa = [
|
|
459
459
|
Y.ANY,
|
|
460
460
|
Y.CASH,
|
|
461
461
|
Y.CHECKING,
|
|
@@ -902,11 +902,11 @@ const R = (e, A, n) => {
|
|
|
902
902
|
default:
|
|
903
903
|
return on.USD;
|
|
904
904
|
}
|
|
905
|
-
},
|
|
905
|
+
}, Jn = (e) => e != null && e !== "" && isFinite(e), Kc = {
|
|
906
906
|
style: "percent",
|
|
907
907
|
minimumFractionDigits: 2,
|
|
908
908
|
maximumFractionDigits: 2
|
|
909
|
-
}, bn = (e, A = Kc) =>
|
|
909
|
+
}, bn = (e, A = Kc) => Jn(e) ? new Intl.NumberFormat(ZA(), A).format(Number(e)) : e, qc = (e) => new Intl.PluralRules(ZA(), e), kc = (e, A = { type: "ordinal" }, n = {
|
|
910
910
|
one: "st",
|
|
911
911
|
two: "nd",
|
|
912
912
|
few: "rd",
|
|
@@ -914,22 +914,22 @@ const R = (e, A, n) => {
|
|
|
914
914
|
}) => {
|
|
915
915
|
const a = qc(A).select(e);
|
|
916
916
|
return `${e}${n[a]}`;
|
|
917
|
-
},
|
|
917
|
+
}, va = (e) => {
|
|
918
918
|
const A = qt(e);
|
|
919
|
-
let n =
|
|
919
|
+
let n = Wn(e, A);
|
|
920
920
|
for (; Te(n, ie()); )
|
|
921
921
|
n = Ct(n, 1);
|
|
922
922
|
return n;
|
|
923
923
|
}, Gc = (e) => {
|
|
924
|
-
const A =
|
|
924
|
+
const A = va(e);
|
|
925
925
|
return Ct(A, 1);
|
|
926
926
|
}, ar = (e) => {
|
|
927
|
-
let A =
|
|
927
|
+
let A = Yn(ie(), e.getDate());
|
|
928
928
|
for (; Te(A, ie()); )
|
|
929
929
|
A = oA(A, 1);
|
|
930
930
|
return A;
|
|
931
931
|
}, Fc = (e) => {
|
|
932
|
-
const A =
|
|
932
|
+
const A = va(e);
|
|
933
933
|
return oA(A, 1);
|
|
934
934
|
}, Li = (e) => {
|
|
935
935
|
let A = rt(e, 1);
|
|
@@ -1062,8 +1062,8 @@ class sr {
|
|
|
1062
1062
|
}
|
|
1063
1063
|
requestWidgetUrl = async (A) => this.fetchInstance.post(M.WIDGET_URLS, A).then((n) => n.widget_url);
|
|
1064
1064
|
}
|
|
1065
|
-
const
|
|
1066
|
-
const a =
|
|
1065
|
+
const Bn = (e, A) => e.reduce((n, a) => (n[a.guid] = A?.includes(a.guid), n), {}), Qc = (e) => e.reduce((A, n) => {
|
|
1066
|
+
const a = ma[n.account_type], r = {
|
|
1067
1067
|
accountNumber: n.account_number,
|
|
1068
1068
|
name: n.name || n.feed_name,
|
|
1069
1069
|
guid: n.guid
|
|
@@ -1146,7 +1146,7 @@ const Hn = (e, A) => e.reduce((n, a) => (n[a.guid] = A?.includes(a.guid), n), {}
|
|
|
1146
1146
|
},
|
|
1147
1147
|
children: [
|
|
1148
1148
|
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(
|
|
1149
|
-
|
|
1149
|
+
Qn,
|
|
1150
1150
|
{
|
|
1151
1151
|
control: /* @__PURE__ */ t(
|
|
1152
1152
|
zt,
|
|
@@ -1217,7 +1217,7 @@ const Hn = (e, A) => e.reduce((n, a) => (n[a.guid] = A?.includes(a.guid), n), {}
|
|
|
1217
1217
|
disableGutters: !0,
|
|
1218
1218
|
disablePadding: !0,
|
|
1219
1219
|
children: /* @__PURE__ */ t(
|
|
1220
|
-
|
|
1220
|
+
Qn,
|
|
1221
1221
|
{
|
|
1222
1222
|
control: /* @__PURE__ */ t(
|
|
1223
1223
|
zt,
|
|
@@ -1309,10 +1309,10 @@ const Wc = (e, A) => {
|
|
|
1309
1309
|
variant: s = "outlined"
|
|
1310
1310
|
}) => {
|
|
1311
1311
|
const { isMobile: c } = Be(), [d, u] = g.useState(null), [h, m] = g.useState(
|
|
1312
|
-
|
|
1312
|
+
Bn(e, r)
|
|
1313
1313
|
);
|
|
1314
1314
|
g.useEffect(() => {
|
|
1315
|
-
m(
|
|
1315
|
+
m(Bn(e, r));
|
|
1316
1316
|
}, [e, r]);
|
|
1317
1317
|
const C = (v) => {
|
|
1318
1318
|
u(v.currentTarget);
|
|
@@ -1359,7 +1359,7 @@ const Wc = (e, A) => {
|
|
|
1359
1359
|
}), m(S);
|
|
1360
1360
|
},
|
|
1361
1361
|
onCancelClick: () => {
|
|
1362
|
-
m(
|
|
1362
|
+
m(Bn(e, r)), f();
|
|
1363
1363
|
},
|
|
1364
1364
|
onConnectAccountClick: a,
|
|
1365
1365
|
onFilterClick: () => {
|
|
@@ -1961,7 +1961,7 @@ const ll = ({
|
|
|
1961
1961
|
] })
|
|
1962
1962
|
] })
|
|
1963
1963
|
] });
|
|
1964
|
-
}, vl = T(fl),
|
|
1964
|
+
}, vl = T(fl), ya = ({
|
|
1965
1965
|
baseline: e = "max",
|
|
1966
1966
|
colors: A,
|
|
1967
1967
|
datasets: n,
|
|
@@ -2124,7 +2124,7 @@ const ll = ({
|
|
|
2124
2124
|
if (!A)
|
|
2125
2125
|
throw new Error(`${e}() must be used within the GlobalDataContext`);
|
|
2126
2126
|
return A;
|
|
2127
|
-
}, ve = () => Ge("useAccountStore").globalStore.accountStore, Xe = () => Ge("useBudgetsStore").globalStore.budgetsStore,
|
|
2127
|
+
}, ve = () => Ge("useAccountStore").globalStore.accountStore, Xe = () => Ge("useBudgetsStore").globalStore.budgetsStore, Ea = () => Ge("useCashflowStore").globalStore.cashflowStore, _e = () => Ge("useCategoryStore").globalStore.categoryStore, Ri = () => Ge("useConnectStore").globalStore.connectStore, Hi = () => Ge("useDebtsStore").globalStore.debtsStore, Sn = () => Ge("useGlobalStore").globalStore, ye = () => Ge("useGlobalUiStore").globalStore.globalUiStore, L = () => Ge("globalCopyStore").globalStore.copyStore.copy, Ue = () => Ge("useGoalStore").globalStore.goalStore, yl = () => Ge("useHelpStore").globalStore.helpStore, El = () => Ge("useMerchantStore").globalStore.merchantStore, bl = () => Ge("useNetWorthStore").globalStore.netWorthStore, Bi = () => Ge("useNotificationStore").globalStore.notificationStore, ke = () => Ge("useRecurringActivityStore").globalStore.recurringActivityStore, ge = () => Ge("useTransactionStore").globalStore.transactionStore, St = () => Ge("useUserStore").globalStore.userStore, $ = () => ({ onEvent: Ge().onEvent }), w8 = () => ({ onPageView: Ge().onPageView }), wl = (e = "useWidgetContainerContext") => {
|
|
2128
2128
|
const A = g.useContext(Pi);
|
|
2129
2129
|
if (!A)
|
|
2130
2130
|
throw new Error(`${e}() must be used within the WidgetContainerContext`);
|
|
@@ -2331,18 +2331,18 @@ const ll = ({
|
|
|
2331
2331
|
const U = iA(String(v)).guid;
|
|
2332
2332
|
U && a?.(U);
|
|
2333
2333
|
}, Je = (U) => {
|
|
2334
|
-
const Ee = String(U?.seriesId), Pe = iA(Ee).guid, MA = he.find((Dt) => Dt.id === Ee),
|
|
2335
|
-
if (
|
|
2334
|
+
const Ee = String(U?.seriesId), Pe = iA(Ee).guid, MA = he.find((Dt) => Dt.id === Ee), Pn = MA && U?.dataIndex !== void 0, Mn = MA && U?.dataIndex === void 0;
|
|
2335
|
+
if (Pn)
|
|
2336
2336
|
f({
|
|
2337
2337
|
hoveredSeriesId: Ee,
|
|
2338
2338
|
hoveredAreaData: null,
|
|
2339
2339
|
isAreaHovered: !1,
|
|
2340
2340
|
cursorPos: S
|
|
2341
2341
|
}), A?.(Pe);
|
|
2342
|
-
else if (
|
|
2343
|
-
const Dt = MA?.data.map((
|
|
2344
|
-
x: x[
|
|
2345
|
-
y:
|
|
2342
|
+
else if (Mn) {
|
|
2343
|
+
const Dt = MA?.data.map((Rn, Hn) => ({
|
|
2344
|
+
x: x[Hn],
|
|
2345
|
+
y: Rn
|
|
2346
2346
|
})) ?? [];
|
|
2347
2347
|
f({
|
|
2348
2348
|
hoveredSeriesId: Ee,
|
|
@@ -2798,7 +2798,7 @@ const ll = ({
|
|
|
2798
2798
|
orientation: "horizontal",
|
|
2799
2799
|
value: _,
|
|
2800
2800
|
children: x.buttons.map((V) => /* @__PURE__ */ t(
|
|
2801
|
-
|
|
2801
|
+
ra,
|
|
2802
2802
|
{
|
|
2803
2803
|
onClick: () => F(V.value),
|
|
2804
2804
|
sx: {
|
|
@@ -3254,7 +3254,7 @@ const lt = ({
|
|
|
3254
3254
|
width: "100%"
|
|
3255
3255
|
},
|
|
3256
3256
|
children: /* @__PURE__ */ l(y, { alignItems: "center", direction: "column", justifyContent: "center", sx: { height: "100%" }, children: [
|
|
3257
|
-
e === YA.Loading && /* @__PURE__ */ t(
|
|
3257
|
+
e === YA.Loading && /* @__PURE__ */ t(ia, { color: "primary", size: 48 }),
|
|
3258
3258
|
/* @__PURE__ */ t(
|
|
3259
3259
|
p,
|
|
3260
3260
|
{
|
|
@@ -3388,7 +3388,7 @@ const hr = "connect_widget", gr = "connections_widget", Ml = ({
|
|
|
3388
3388
|
}), Ve = ({ label: e = "", size: A = 32 }) => {
|
|
3389
3389
|
const n = qe();
|
|
3390
3390
|
return /* @__PURE__ */ l(y, { alignItems: "center", gap: n.Spacing.XLarge, height: 450, justifyContent: "center", children: [
|
|
3391
|
-
/* @__PURE__ */ t(
|
|
3391
|
+
/* @__PURE__ */ t(ia, { size: A }),
|
|
3392
3392
|
e && /* @__PURE__ */ t(p, { children: e })
|
|
3393
3393
|
] });
|
|
3394
3394
|
}, T8 = ({
|
|
@@ -3457,7 +3457,7 @@ const hr = "connect_widget", gr = "connections_widget", Ml = ({
|
|
|
3457
3457
|
value: r
|
|
3458
3458
|
}
|
|
3459
3459
|
) });
|
|
3460
|
-
},
|
|
3460
|
+
}, Tn = T(Hl), mr = ({
|
|
3461
3461
|
checked: e = !1,
|
|
3462
3462
|
label: A,
|
|
3463
3463
|
sx: n = {},
|
|
@@ -3478,7 +3478,7 @@ const hr = "connect_widget", gr = "connections_widget", Ml = ({
|
|
|
3478
3478
|
py: 4,
|
|
3479
3479
|
sx: { "&:hover": { borderColor: i.palette.action.active }, ...n },
|
|
3480
3480
|
children: /* @__PURE__ */ t(wt, { title: a, children: /* @__PURE__ */ t(
|
|
3481
|
-
|
|
3481
|
+
Qn,
|
|
3482
3482
|
{
|
|
3483
3483
|
control: /* @__PURE__ */ t(
|
|
3484
3484
|
Ls,
|
|
@@ -3815,10 +3815,10 @@ const fr = (e, A) => !e && !A ? 0 : !e && A ? 101 : A / e * 100, vr = (e, A) =>
|
|
|
3815
3815
|
});
|
|
3816
3816
|
}
|
|
3817
3817
|
return r;
|
|
3818
|
-
},
|
|
3819
|
-
const a =
|
|
3818
|
+
}, Zn = (e, A) => e.find((n) => n.guid === A), Fl = (e, A, n) => {
|
|
3819
|
+
const a = Zn(e, n);
|
|
3820
3820
|
if (a)
|
|
3821
|
-
return
|
|
3821
|
+
return Zn(a.subBudgets, A);
|
|
3822
3822
|
};
|
|
3823
3823
|
class Xl {
|
|
3824
3824
|
api = new pr("/", "");
|
|
@@ -3839,7 +3839,7 @@ class Xl {
|
|
|
3839
3839
|
(a) => {
|
|
3840
3840
|
if (a) {
|
|
3841
3841
|
const r = this.selectedBudget;
|
|
3842
|
-
r && (this.selectedBudget =
|
|
3842
|
+
r && (this.selectedBudget = Zn(a, r.guid));
|
|
3843
3843
|
const i = this.selectedSubBudget;
|
|
3844
3844
|
i && i.parent_guid && (this.selectedSubBudget = Fl(
|
|
3845
3845
|
a,
|
|
@@ -3934,7 +3934,7 @@ class Xl {
|
|
|
3934
3934
|
const Tt = () => {
|
|
3935
3935
|
if (!g.useContext(st))
|
|
3936
3936
|
throw new Error("useCashflowUiStore() must be used within the GlobalDataContext");
|
|
3937
|
-
return
|
|
3937
|
+
return Ea().uiStore;
|
|
3938
3938
|
}, jl = ({ remaining: e }) => {
|
|
3939
3939
|
const { cashflow: A } = L();
|
|
3940
3940
|
return /* @__PURE__ */ l(W, { children: [
|
|
@@ -4521,7 +4521,7 @@ const Yl = [
|
|
|
4521
4521
|
category: ce.TRANSACTIONS_WIDGET,
|
|
4522
4522
|
label: le.DELETE_TRANSACTION
|
|
4523
4523
|
}
|
|
4524
|
-
}, Zl = async (e, A) => !A || !Er[e] ? null : A.sendAnalyticEvent(Er[e]),
|
|
4524
|
+
}, Zl = async (e, A) => !A || !Er[e] ? null : A.sendAnalyticEvent(Er[e]), $n = {
|
|
4525
4525
|
FLAG: "flag",
|
|
4526
4526
|
DATE: "date",
|
|
4527
4527
|
PAYEE: "payee",
|
|
@@ -4554,12 +4554,12 @@ const Yl = [
|
|
|
4554
4554
|
}, td = (e, A, n) => [...e].sort((a, r) => {
|
|
4555
4555
|
const i = A, o = (a[i] || "") > (r[i] || "");
|
|
4556
4556
|
let s = o ? -1 : 1, c = o ? 1 : -1;
|
|
4557
|
-
return (A ===
|
|
4557
|
+
return (A === $n.DATE || A === $n.AMOUNT) && (s = o ? 1 : -1, c = o ? -1 : 1), n === ki.ASC ? s : c;
|
|
4558
4558
|
}), dA = (e, A) => {
|
|
4559
4559
|
const n = e.toLowerCase().split(" "), a = A?.toString().toLowerCase() ?? "";
|
|
4560
4560
|
return n.every((r) => a.indexOf(r) > -1);
|
|
4561
4561
|
};
|
|
4562
|
-
var Ne = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Ne || {}), He = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(He || {}), nd = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(nd || {}), ad = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(ad || {}), rd = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(rd || {}), ee = /* @__PURE__ */ ((e) => (e[e.DEBT_TRACK = 1] = "DEBT_TRACK", e[e.SAVINGS_TRACK = 2] = "SAVINGS_TRACK", e[e.RETIREMENT_TRACK = 3] = "RETIREMENT_TRACK", e[e.EMERGENCY_FUND_TRACK = 4] = "EMERGENCY_FUND_TRACK", e))(ee || {}),
|
|
4562
|
+
var Ne = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Ne || {}), He = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(He || {}), nd = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(nd || {}), ad = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(ad || {}), rd = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(rd || {}), ee = /* @__PURE__ */ ((e) => (e[e.DEBT_TRACK = 1] = "DEBT_TRACK", e[e.SAVINGS_TRACK = 2] = "SAVINGS_TRACK", e[e.RETIREMENT_TRACK = 3] = "RETIREMENT_TRACK", e[e.EMERGENCY_FUND_TRACK = 4] = "EMERGENCY_FUND_TRACK", e))(ee || {}), ea = /* @__PURE__ */ ((e) => (e[e.SAVE_AMOUNT = 1] = "SAVE_AMOUNT", e[e.KEEP_BALANCE_BELOW = 2] = "KEEP_BALANCE_BELOW", e[e.KEEP_BALANCE_ABOVE = 3] = "KEEP_BALANCE_ABOVE", e[e.ACTION = 4] = "ACTION", e))(ea || {}), eA = /* @__PURE__ */ ((e) => (e[e.AUTOMOBILE = 1] = "AUTOMOBILE", e[e.COLLEGE = 2] = "COLLEGE", e[e.HOUSE = 3] = "HOUSE", e[e.RECREATIONAL_VEHICLE = 4] = "RECREATIONAL_VEHICLE", e[e.VACATION = 5] = "VACATION", e[e.ELECTRONIC = 6] = "ELECTRONIC", e[e.OTHER = 7] = "OTHER", e[e.RETIREMENT = 8] = "RETIREMENT", e[e.EMERGENCY_FUND = 9] = "EMERGENCY_FUND", e[e.SETUP_BUDGETS = 10] = "SETUP_BUDGETS", e[e.START_MONEY_MANAGEMENT = 11] = "START_MONEY_MANAGEMENT", e[e.CREDIT_CARD = 12] = "CREDIT_CARD", e[e.LINE_OF_CREDIT = 13] = "LINE_OF_CREDIT", e[e.LOANS = 14] = "LOANS", e))(eA || {}), AA = /* @__PURE__ */ ((e) => (e[e.CREDIT = 1] = "CREDIT", e[e.DEBIT = 2] = "DEBIT", e))(AA || {}), wa = /* @__PURE__ */ ((e) => (e[e.POSTED = 1] = "POSTED", e[e.PENDING = 2] = "PENDING", e))(wa || {}), id = /* @__PURE__ */ ((e) => (e.Desktop = "Desktop", e.Mobile = "Mobile", e))(id || {});
|
|
4563
4563
|
const Gi = {
|
|
4564
4564
|
account_guid: "",
|
|
4565
4565
|
amount: 0,
|
|
@@ -4640,7 +4640,7 @@ class sd {
|
|
|
4640
4640
|
associatedBeats = [];
|
|
4641
4641
|
cachedStartDate = TA(ie(), 90);
|
|
4642
4642
|
onAnalyticEvent = Zl;
|
|
4643
|
-
sortColumn =
|
|
4643
|
+
sortColumn = $n.DATE;
|
|
4644
4644
|
sortDirection = ki.DESC;
|
|
4645
4645
|
filter = {};
|
|
4646
4646
|
constructor(A) {
|
|
@@ -4702,7 +4702,7 @@ class sd {
|
|
|
4702
4702
|
this.taggings
|
|
4703
4703
|
);
|
|
4704
4704
|
loadAssociatedBeats = async (A) => {
|
|
4705
|
-
const n = A ?
|
|
4705
|
+
const n = A ? ca(A, { representation: "date" }) : void 0, a = await this.beatApi.getBeatsWithAssociatedTransaction(n);
|
|
4706
4706
|
Q(() => this.associatedBeats = a);
|
|
4707
4707
|
};
|
|
4708
4708
|
loadTags = async () => {
|
|
@@ -5133,7 +5133,7 @@ const rA = () => {
|
|
|
5133
5133
|
ON_SUBCATEGORY_DELETED: "onSubcategoryDeleted",
|
|
5134
5134
|
ON_SUBCATEGORY_SAVED: "onSubcategorySaved"
|
|
5135
5135
|
};
|
|
5136
|
-
var
|
|
5136
|
+
var In = /* @__PURE__ */ ((e) => (e.ADD = "add", e.EDIT = "edit", e.DELETE = "delete", e))(In || {});
|
|
5137
5137
|
const Dd = ({
|
|
5138
5138
|
categoryName: e = "",
|
|
5139
5139
|
onClose: A,
|
|
@@ -5207,7 +5207,7 @@ const Dd = ({
|
|
|
5207
5207
|
isOpen: A,
|
|
5208
5208
|
onClose: d,
|
|
5209
5209
|
onSave: s,
|
|
5210
|
-
type:
|
|
5210
|
+
type: In.ADD
|
|
5211
5211
|
}
|
|
5212
5212
|
)
|
|
5213
5213
|
] });
|
|
@@ -5228,7 +5228,7 @@ const Dd = ({
|
|
|
5228
5228
|
isOpen: n,
|
|
5229
5229
|
onClose: o,
|
|
5230
5230
|
onSave: i,
|
|
5231
|
-
type:
|
|
5231
|
+
type: In.EDIT
|
|
5232
5232
|
}
|
|
5233
5233
|
);
|
|
5234
5234
|
}, Nd = T(_d), Pd = ({
|
|
@@ -5249,7 +5249,7 @@ const Dd = ({
|
|
|
5249
5249
|
isOpen: A,
|
|
5250
5250
|
onClose: o,
|
|
5251
5251
|
onSave: s,
|
|
5252
|
-
type:
|
|
5252
|
+
type: In.DELETE
|
|
5253
5253
|
}
|
|
5254
5254
|
);
|
|
5255
5255
|
}, Md = T(Pd), Rd = ({ parentCategory: e, subCategory: A }) => {
|
|
@@ -5287,7 +5287,7 @@ const Dd = ({
|
|
|
5287
5287
|
primaryTypographyProps: { fontWeight: "normal", variant: "Body" }
|
|
5288
5288
|
}
|
|
5289
5289
|
),
|
|
5290
|
-
o && E && /* @__PURE__ */ t(
|
|
5290
|
+
o && E && /* @__PURE__ */ t(ha, { fontSize: "small" }),
|
|
5291
5291
|
!I && /* @__PURE__ */ t(nc, { label: c })
|
|
5292
5292
|
]
|
|
5293
5293
|
}
|
|
@@ -5384,7 +5384,7 @@ const Dd = ({
|
|
|
5384
5384
|
primaryTypographyProps: { fontWeight: "normal", variant: "Body" }
|
|
5385
5385
|
}
|
|
5386
5386
|
),
|
|
5387
|
-
/* @__PURE__ */ t(nA, { children: o || a ? /* @__PURE__ */ t(
|
|
5387
|
+
/* @__PURE__ */ t(nA, { children: o || a ? /* @__PURE__ */ t(oa, {}) : /* @__PURE__ */ t(pn, {}) })
|
|
5388
5388
|
]
|
|
5389
5389
|
},
|
|
5390
5390
|
e.guid
|
|
@@ -5442,7 +5442,7 @@ const Dd = ({
|
|
|
5442
5442
|
e && m(e), C(n), f(a), v(r);
|
|
5443
5443
|
}, [e, n, a, r]), /* @__PURE__ */ l("div", { className: `mx-cat-category-selector ${i}`, children: [
|
|
5444
5444
|
/* @__PURE__ */ t(
|
|
5445
|
-
|
|
5445
|
+
Tn,
|
|
5446
5446
|
{
|
|
5447
5447
|
ariaLabel: c.search_aria,
|
|
5448
5448
|
cancelAriaLabel: c.cancel_search_aria,
|
|
@@ -5934,7 +5934,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
5934
5934
|
}
|
|
5935
5935
|
),
|
|
5936
5936
|
/* @__PURE__ */ t(nA, { children: /* @__PURE__ */ t(
|
|
5937
|
-
|
|
5937
|
+
da,
|
|
5938
5938
|
{
|
|
5939
5939
|
checked: c,
|
|
5940
5940
|
id: "hide-transaction",
|
|
@@ -6636,7 +6636,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
6636
6636
|
a(G.TRANSACTION_DETAILS_CLICK_FLAG, { transaction_guid: e.guid }), await A({ ...e, is_flagged: !e.is_flagged });
|
|
6637
6637
|
};
|
|
6638
6638
|
return /* @__PURE__ */ t("div", { className: "mx-txn-transaction-flag", children: /* @__PURE__ */ t(
|
|
6639
|
-
|
|
6639
|
+
ra,
|
|
6640
6640
|
{
|
|
6641
6641
|
"aria-label": n.flag_btn_aria,
|
|
6642
6642
|
"aria-pressed": e.is_flagged,
|
|
@@ -6822,13 +6822,13 @@ const Ui = ({ transaction: e }) => {
|
|
|
6822
6822
|
JA,
|
|
6823
6823
|
{
|
|
6824
6824
|
InputLabelProps: { shrink: !0 },
|
|
6825
|
-
SelectProps: { defaultValue: -1, IconComponent:
|
|
6825
|
+
SelectProps: { defaultValue: -1, IconComponent: oa },
|
|
6826
6826
|
label: n.manual_transaction_select_an_account,
|
|
6827
6827
|
onChange: (E) => v(E.target.value),
|
|
6828
6828
|
placeholder: n.manual_transaction_select,
|
|
6829
6829
|
select: !0,
|
|
6830
6830
|
sx: { bgcolor: "background.paper" },
|
|
6831
|
-
children: u.map((E) => /* @__PURE__ */ t(
|
|
6831
|
+
children: u.map((E) => /* @__PURE__ */ t(la, { value: E.value, children: E.label }, E.value))
|
|
6832
6832
|
}
|
|
6833
6833
|
)
|
|
6834
6834
|
] }),
|
|
@@ -6937,9 +6937,9 @@ const Ui = ({ transaction: e }) => {
|
|
|
6937
6937
|
...f,
|
|
6938
6938
|
searchTerm: ze
|
|
6939
6939
|
}), x(G.TRANSACTIONS_CLICK_SEARCH, { search_term: ze });
|
|
6940
|
-
}, Nn = () => {
|
|
6941
|
-
Fi(S, I), x(G.TRANSACTIONS_CLICK_EXPORT);
|
|
6942
6940
|
}, Pn = () => {
|
|
6941
|
+
Fi(S, I), x(G.TRANSACTIONS_CLICK_EXPORT);
|
|
6942
|
+
}, Mn = () => {
|
|
6943
6943
|
Lt.length > 0 ? (m({
|
|
6944
6944
|
...Gi,
|
|
6945
6945
|
date: pe(ie()),
|
|
@@ -6950,9 +6950,9 @@ const Ui = ({ transaction: e }) => {
|
|
|
6950
6950
|
), x(G.TRANSACTIONS_CLICK_ADD)) : (DA(!0), x(G.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
|
|
6951
6951
|
}, Dt = async () => {
|
|
6952
6952
|
Ee && await C(s), Ce("");
|
|
6953
|
-
}, Mn = () => {
|
|
6954
|
-
DA(!1), Se(!0);
|
|
6955
6953
|
}, Rn = () => {
|
|
6954
|
+
DA(!1), Se(!0);
|
|
6955
|
+
}, Hn = () => {
|
|
6956
6956
|
Se(!1), i();
|
|
6957
6957
|
};
|
|
6958
6958
|
return !K || !Je ? /* @__PURE__ */ t(Ve, {}) : /* @__PURE__ */ l(
|
|
@@ -6963,12 +6963,12 @@ const Ui = ({ transaction: e }) => {
|
|
|
6963
6963
|
{
|
|
6964
6964
|
iconName: "open_in_new",
|
|
6965
6965
|
label: _.export_csv_btn,
|
|
6966
|
-
onClick:
|
|
6966
|
+
onClick: Pn
|
|
6967
6967
|
},
|
|
6968
6968
|
{
|
|
6969
6969
|
iconName: "add",
|
|
6970
6970
|
label: _.add_transaction_btn,
|
|
6971
|
-
onClick:
|
|
6971
|
+
onClick: Mn
|
|
6972
6972
|
}
|
|
6973
6973
|
],
|
|
6974
6974
|
calendarActions: {
|
|
@@ -6980,7 +6980,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
6980
6980
|
title: _.transactions_title,
|
|
6981
6981
|
children: [
|
|
6982
6982
|
/* @__PURE__ */ t(N, { mt: 16, children: /* @__PURE__ */ t(
|
|
6983
|
-
|
|
6983
|
+
Tn,
|
|
6984
6984
|
{
|
|
6985
6985
|
onChange: MA,
|
|
6986
6986
|
placeholder: _.action_bar_search_placeholder,
|
|
@@ -7077,13 +7077,13 @@ const Ui = ({ transaction: e }) => {
|
|
|
7077
7077
|
onClose: () => {
|
|
7078
7078
|
DA(!1);
|
|
7079
7079
|
},
|
|
7080
|
-
onPrimaryAction:
|
|
7080
|
+
onPrimaryAction: Rn
|
|
7081
7081
|
}
|
|
7082
7082
|
),
|
|
7083
7083
|
/* @__PURE__ */ t(
|
|
7084
7084
|
Yt,
|
|
7085
7085
|
{
|
|
7086
|
-
onClose:
|
|
7086
|
+
onClose: Hn,
|
|
7087
7087
|
showConnectWidget: at,
|
|
7088
7088
|
title: _.add_manual_account
|
|
7089
7089
|
}
|
|
@@ -7120,7 +7120,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
7120
7120
|
return n;
|
|
7121
7121
|
}, Zi = (e, A) => ({
|
|
7122
7122
|
...A,
|
|
7123
|
-
occurs_on:
|
|
7123
|
+
occurs_on: ca(e.expectedDate, { representation: "date" }),
|
|
7124
7124
|
recurrence_type: e.recurrenceType
|
|
7125
7125
|
}), Ou = ({ activity: e }) => {
|
|
7126
7126
|
const { recurring: A } = L(), { cashflowSequences: n, scheduledPayments: a, updateCashflowSequence: r, updateScheduledPayment: i } = ke(), { onEvent: o } = $(), [s, c] = g.useState(!1), d = e.activityType === Ne.Income, u = [
|
|
@@ -7226,7 +7226,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
7226
7226
|
onPrimaryAction: C,
|
|
7227
7227
|
title: A.activity_payment_date,
|
|
7228
7228
|
children: /* @__PURE__ */ t(fn, { dateAdapter: Wt, children: /* @__PURE__ */ t(
|
|
7229
|
-
|
|
7229
|
+
ua,
|
|
7230
7230
|
{
|
|
7231
7231
|
minDate: ie(),
|
|
7232
7232
|
onChange: (f) => u(f),
|
|
@@ -7349,11 +7349,11 @@ const Ui = ({ transaction: e }) => {
|
|
|
7349
7349
|
}
|
|
7350
7350
|
)
|
|
7351
7351
|
] });
|
|
7352
|
-
}, Ru = T(Mu),
|
|
7352
|
+
}, Ru = T(Mu), Ln = {
|
|
7353
7353
|
gridRow: 1,
|
|
7354
7354
|
gridColumn: 1,
|
|
7355
7355
|
zIndex: 2
|
|
7356
|
-
},
|
|
7356
|
+
}, Dn = (e) => e ? { margin: "0 0 -6px -4px" } : void 0, Da = ({ isOffset: e = !1, size: A = 16 }) => /* @__PURE__ */ t(VA, { size: A, sx: { ...Dn(e) }, children: /* @__PURE__ */ t(ec, { color: "primary", sx: { fontSize: A, ...Ln } }) }), xa = ({ isOffset: e = !1, size: A = 16 }) => /* @__PURE__ */ t(VA, { size: A, sx: { ...Dn(e) }, children: /* @__PURE__ */ t(Ac, { sx: { color: "categories.income", fontSize: A, ...Ln } }) }), Oa = ({ isOffset: e = !1, size: A = 16 }) => /* @__PURE__ */ t(VA, { size: A, sx: { ...Dn(e) }, children: /* @__PURE__ */ t(rn, { color: "error", sx: { fontSize: A, ...Ln } }) }), _a = ({ isOffset: e = !1, size: A = 16 }) => /* @__PURE__ */ t(VA, { size: A, sx: { ...Dn(e) }, children: /* @__PURE__ */ t(ha, { color: "success", sx: { fontSize: A, ...Ln } }) }), xr = ({ copy: e, date: A, type: n }) => {
|
|
7357
7357
|
let a = A && gi(A) ? P(e.monthly_ordinal, Ye(A, "do")) : e.monthly;
|
|
7358
7358
|
switch (n) {
|
|
7359
7359
|
case X.EveryQuarter:
|
|
@@ -7533,7 +7533,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
7533
7533
|
description: e.feed_description || e.description,
|
|
7534
7534
|
is_tracked_by_user: !0,
|
|
7535
7535
|
merchant_guid: e.merchant_guid,
|
|
7536
|
-
occurs_on:
|
|
7536
|
+
occurs_on: ca(n, { representation: "date" }),
|
|
7537
7537
|
recurrence_day: 0,
|
|
7538
7538
|
recurrence_type: X.EveryMonth
|
|
7539
7539
|
};
|
|
@@ -7561,7 +7561,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
7561
7561
|
return /* @__PURE__ */ l(y, { sx: { bgcolor: e, gap: 16, pt: 8 }, children: [
|
|
7562
7562
|
A && /* @__PURE__ */ t(Me, { sx: { mx: 24 }, children: A }),
|
|
7563
7563
|
/* @__PURE__ */ t(
|
|
7564
|
-
|
|
7564
|
+
Tn,
|
|
7565
7565
|
{
|
|
7566
7566
|
ariaLabel: r.select_transaction_search_aria,
|
|
7567
7567
|
cancelAriaLabel: r.select_transaction_search_cancel_aria,
|
|
@@ -7600,7 +7600,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
7600
7600
|
const h = Le(o.date);
|
|
7601
7601
|
switch (Number(u.target.value)) {
|
|
7602
7602
|
case X.EveryWeek:
|
|
7603
|
-
i(
|
|
7603
|
+
i(va(h));
|
|
7604
7604
|
break;
|
|
7605
7605
|
case X.EveryOtherWeek:
|
|
7606
7606
|
i(Gc(h));
|
|
@@ -7643,7 +7643,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
7643
7643
|
sx: { mx: 24 },
|
|
7644
7644
|
value: A,
|
|
7645
7645
|
variant: "outlined",
|
|
7646
|
-
children: c.map((u) => /* @__PURE__ */ t(
|
|
7646
|
+
children: c.map((u) => /* @__PURE__ */ t(la, { value: u.id, children: u.label }, u.id))
|
|
7647
7647
|
}
|
|
7648
7648
|
),
|
|
7649
7649
|
/* @__PURE__ */ t(fn, { dateAdapter: Wt, children: /* @__PURE__ */ t(
|
|
@@ -7657,7 +7657,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
7657
7657
|
}
|
|
7658
7658
|
) })
|
|
7659
7659
|
] });
|
|
7660
|
-
}, to = T(ku),
|
|
7660
|
+
}, to = T(ku), Aa = (e) => e.top_level_category_guid !== b.INCOME && e.transaction_type === AA.DEBIT, Gu = (e, A) => Aa(e) ? e.payee?.toLowerCase().includes(A.toLowerCase()) || e.description.toLowerCase().includes(A.toLowerCase()) || e.feed_description.toLowerCase().includes(A.toLowerCase()) : !1, Xt = (e) => e.top_level_category_guid === b.INCOME || e.top_level_category_guid === b.TRANSFER && e.transaction_type === AA.CREDIT, no = (e, A) => Xt(e) ? e.payee?.toLowerCase().includes(A.toLowerCase()) || e.description?.toLowerCase().includes(A.toLowerCase()) || e.feed_description?.toLowerCase().includes(A.toLowerCase()) : !1, Fu = ({
|
|
7661
7661
|
isIncome: e = !1,
|
|
7662
7662
|
label: A,
|
|
7663
7663
|
onAddActivity: n = () => null
|
|
@@ -7666,7 +7666,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
7666
7666
|
() => d.find((O) => O.guid === m),
|
|
7667
7667
|
[m]
|
|
7668
7668
|
), w = () => {
|
|
7669
|
-
h(!0), c(e ? { ...s, custom: Xt } : { ...s, custom:
|
|
7669
|
+
h(!0), c(e ? { ...s, custom: Xt } : { ...s, custom: Aa });
|
|
7670
7670
|
}, D = async () => {
|
|
7671
7671
|
if (n(), !S || !E) {
|
|
7672
7672
|
_();
|
|
@@ -7709,7 +7709,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
7709
7709
|
onSearch: (O) => {
|
|
7710
7710
|
c({
|
|
7711
7711
|
...s,
|
|
7712
|
-
custom: (x) => e ? O ? no(x, O) : Xt(x) : O ? Gu(x, O) :
|
|
7712
|
+
custom: (x) => e ? O ? no(x, O) : Xt(x) : O ? Gu(x, O) : Aa(x)
|
|
7713
7713
|
});
|
|
7714
7714
|
},
|
|
7715
7715
|
onSelected: (O) => C(O)
|
|
@@ -7770,10 +7770,10 @@ const Ui = ({ transaction: e }) => {
|
|
|
7770
7770
|
] }, c.scheduledPaymentGuid)),
|
|
7771
7771
|
/* @__PURE__ */ t(ao, { label: e.add_expense, onAddActivity: s })
|
|
7772
7772
|
] });
|
|
7773
|
-
}, Uu = T(ju),
|
|
7773
|
+
}, Uu = T(ju), ta = (e) => {
|
|
7774
7774
|
let A = e.user_name || e.feed_name || "";
|
|
7775
7775
|
return e.account_number && (A = `${A} *${e.account_number}`), A;
|
|
7776
|
-
},
|
|
7776
|
+
}, na = (e) => e ? e.repeat_interval === "1" ? X.EveryWeek : e.repeat_interval === "2" ? X.EveryOtherWeek : e.repeat_day && !e.repeat_month && !e.repeat_interval ? X.EveryMonth : e.repeat_day && e.repeat_interval === "3" ? X.EveryQuarter : e.repeat_day && e.repeat_month ? X.EveryYear : X.Unknown : X.Unknown, Qu = (e, A, n, a, r, i) => {
|
|
7777
7777
|
const o = A.filter((u) => {
|
|
7778
7778
|
const h = r.find((C) => C.guid === u.cashflow_sequence_guid), m = i.find((C) => C.guid === u.transaction_guid);
|
|
7779
7779
|
return h?.end_date === null && m;
|
|
@@ -7788,10 +7788,10 @@ const Ui = ({ transaction: e }) => {
|
|
|
7788
7788
|
expectedDate: Ht(u.expected_date),
|
|
7789
7789
|
occurredOnDate: u.occurred_on ? Ht(u.occurred_on) : void 0,
|
|
7790
7790
|
name: u.name,
|
|
7791
|
-
institution: C ?
|
|
7791
|
+
institution: C ? ta(C) : void 0,
|
|
7792
7792
|
institutionGuid: C?.institution_guid,
|
|
7793
7793
|
merchantGuid: m?.merchant_guid || void 0,
|
|
7794
|
-
recurrenceType:
|
|
7794
|
+
recurrenceType: na(h),
|
|
7795
7795
|
recurrenceDay: h?.repeat_day ? Number(h?.repeat_day) : void 0,
|
|
7796
7796
|
sequenceGuid: h?.guid,
|
|
7797
7797
|
transactionGuid: u.transaction_guid
|
|
@@ -7818,10 +7818,10 @@ const Ui = ({ transaction: e }) => {
|
|
|
7818
7818
|
categoryGuid: u.category_guid,
|
|
7819
7819
|
expectedDate: Ht(u.expected_date),
|
|
7820
7820
|
name: u.name,
|
|
7821
|
-
institution: f ?
|
|
7821
|
+
institution: f ? ta(f) : void 0,
|
|
7822
7822
|
institutionGuid: f?.institution_guid,
|
|
7823
7823
|
merchantGuid: C?.merchant_guid || void 0,
|
|
7824
|
-
recurrenceType:
|
|
7824
|
+
recurrenceType: na(h),
|
|
7825
7825
|
recurrenceDay: h?.repeat_day ? Number(h?.repeat_day) : void 0,
|
|
7826
7826
|
sequenceGuid: h?.guid,
|
|
7827
7827
|
transactionGuid: void 0
|
|
@@ -7841,7 +7841,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
7841
7841
|
categoryGuid: r?.category_guid,
|
|
7842
7842
|
expectedDate: o,
|
|
7843
7843
|
name: A.description,
|
|
7844
|
-
institution: i ?
|
|
7844
|
+
institution: i ? ta(i) : void 0,
|
|
7845
7845
|
institutionGuid: i?.institution_guid,
|
|
7846
7846
|
merchantGuid: A.merchant_guid,
|
|
7847
7847
|
recurrenceType: A.recurrence_type,
|
|
@@ -7852,11 +7852,11 @@ const Ui = ({ transaction: e }) => {
|
|
|
7852
7852
|
let m = u;
|
|
7853
7853
|
switch (A.recurrence_type) {
|
|
7854
7854
|
case X.EveryWeek:
|
|
7855
|
-
for (m =
|
|
7855
|
+
for (m = Wn(m, c); Te(m, h); )
|
|
7856
7856
|
a.push({
|
|
7857
7857
|
...s,
|
|
7858
7858
|
expectedDate: m
|
|
7859
|
-
}), m =
|
|
7859
|
+
}), m = Wn(m, c);
|
|
7860
7860
|
break;
|
|
7861
7861
|
case X.EveryOtherWeek:
|
|
7862
7862
|
if (Te(o, u))
|
|
@@ -7884,10 +7884,10 @@ const Ui = ({ transaction: e }) => {
|
|
|
7884
7884
|
case X.EveryMonth:
|
|
7885
7885
|
a.push({
|
|
7886
7886
|
...s,
|
|
7887
|
-
expectedDate:
|
|
7887
|
+
expectedDate: Yn(m, c)
|
|
7888
7888
|
}), a.push({
|
|
7889
7889
|
...s,
|
|
7890
|
-
expectedDate: oA(
|
|
7890
|
+
expectedDate: oA(Yn(m, c), 1)
|
|
7891
7891
|
});
|
|
7892
7892
|
break;
|
|
7893
7893
|
case X.EveryOtherMonth:
|
|
@@ -7946,7 +7946,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
7946
7946
|
institution: d?.user_name,
|
|
7947
7947
|
institutionGuid: d?.institution_guid,
|
|
7948
7948
|
merchantGuid: c?.merchant_guid,
|
|
7949
|
-
recurrenceType:
|
|
7949
|
+
recurrenceType: na(i),
|
|
7950
7950
|
recurrenceDay: Number(i.repeat_day),
|
|
7951
7951
|
sequenceGuid: i.guid
|
|
7952
7952
|
};
|
|
@@ -7994,13 +7994,13 @@ const Ui = ({ transaction: e }) => {
|
|
|
7994
7994
|
e === 0 && /* @__PURE__ */ t(Uu, {}),
|
|
7995
7995
|
e === 1 && /* @__PURE__ */ t(Na, {})
|
|
7996
7996
|
] });
|
|
7997
|
-
}, ro = T(Ju), _t = (e, A) => e + A.amount,
|
|
7997
|
+
}, ro = T(Ju), _t = (e, A) => e + A.amount, zn = (e) => e.activityType === Ne.Income && ft(e.expectedDate, {
|
|
7998
7998
|
start: xe(ie()),
|
|
7999
7999
|
end: Re(ie())
|
|
8000
8000
|
}), en = (e) => e.activityType === Ne.Expense && ft(e.expectedDate, {
|
|
8001
8001
|
start: xe(ie()),
|
|
8002
8002
|
end: Re(ie())
|
|
8003
|
-
}),
|
|
8003
|
+
}), Kn = (e) => e.occurredOnDate && ft(e.occurredOnDate, {
|
|
8004
8004
|
start: xe(/* @__PURE__ */ new Date()),
|
|
8005
8005
|
end: OA(ie(), 30)
|
|
8006
8006
|
}) || ft(e.expectedDate, {
|
|
@@ -8087,7 +8087,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
8087
8087
|
), i = (s) => {
|
|
8088
8088
|
r(Za(s) * xt + Or), A(G.RECURRING_ACTIVITY_CLICK_CALENDAR_RIGHT);
|
|
8089
8089
|
}, o = /* @__PURE__ */ t(
|
|
8090
|
-
|
|
8090
|
+
ua,
|
|
8091
8091
|
{
|
|
8092
8092
|
maxDate: Re(oA(/* @__PURE__ */ new Date(), 1)),
|
|
8093
8093
|
minDate: xe(/* @__PURE__ */ new Date()),
|
|
@@ -8239,7 +8239,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
8239
8239
|
selectedDayActivities: s,
|
|
8240
8240
|
setSelectedDay: c,
|
|
8241
8241
|
upcomingActivities: d
|
|
8242
|
-
} = ke(), [u, h] = g.useState(0), { onEvent: m } = $(), C = a.filter(
|
|
8242
|
+
} = ke(), [u, h] = g.useState(0), { onEvent: m } = $(), C = a.filter(Kn), f = i.filter(Kn), v = r.filter(Kn), E = C.filter(en).reduce(_t, 0), I = f.filter(en).reduce(_t, 0), S = v.filter(en).reduce(_t, 0), w = C.filter(en).length, D = C.filter(zn).reduce(_t, 0), _ = f.filter(zn).reduce(_t, 0), O = C.filter(zn).length, x = (q, F) => {
|
|
8243
8243
|
h(F);
|
|
8244
8244
|
}, z = (q) => {
|
|
8245
8245
|
m(G.RECURRING_ACTIVITY_CLICK_UPCOMING, {
|
|
@@ -8674,8 +8674,8 @@ const hh = {
|
|
|
8674
8674
|
name: r,
|
|
8675
8675
|
placeholder: P(A.enter_value, a),
|
|
8676
8676
|
type: Ze.Input,
|
|
8677
|
-
validation: (i) =>
|
|
8678
|
-
valueFormatter: (i) =>
|
|
8677
|
+
validation: (i) => Jn(i) ? "" : A.error_amount_is_invalid,
|
|
8678
|
+
valueFormatter: (i) => Jn(i) ? bn(i / 100) : i
|
|
8679
8679
|
});
|
|
8680
8680
|
}
|
|
8681
8681
|
return Pa(e) && (n.push({
|
|
@@ -8789,7 +8789,7 @@ const hh = {
|
|
|
8789
8789
|
)
|
|
8790
8790
|
] });
|
|
8791
8791
|
return /* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper" }, ...n, children: A ? /* @__PURE__ */ t(ae, { alignItems: "flex-start", onClick: A, sx: { px: 24 }, children: u }) : u });
|
|
8792
|
-
},
|
|
8792
|
+
}, xn = T(yh), Eh = ({ remaining: e }) => /* @__PURE__ */ t(
|
|
8793
8793
|
j,
|
|
8794
8794
|
{
|
|
8795
8795
|
sx: {
|
|
@@ -8849,7 +8849,7 @@ const bh = ({ activity: e }) => /* @__PURE__ */ l(W, { children: [
|
|
|
8849
8849
|
),
|
|
8850
8850
|
/* @__PURE__ */ t(H, {})
|
|
8851
8851
|
] });
|
|
8852
|
-
}, Pr = T(wh), Mr = (e, A) => (n) => n.accountGuid === e.guid && (
|
|
8852
|
+
}, Pr = T(wh), Mr = (e, A) => (n) => n.accountGuid === e.guid && (ga(n.expectedDate) || yt(n.expectedDate, A.start)) && Te(n.expectedDate, A.end), Sh = () => {
|
|
8853
8853
|
const { availableWidth: e } = ct(), { cashflow: A } = L(), { upcomingExpenses: n, upcomingIncome: a } = ke(), { dateRange: r, selectedCashAccounts: i } = Tt();
|
|
8854
8854
|
return /* @__PURE__ */ l(y, { children: [
|
|
8855
8855
|
/* @__PURE__ */ l(y, { direction: e < 400 ? "column" : "row", justifyContent: "space-between", children: [
|
|
@@ -8882,7 +8882,7 @@ const bh = ({ activity: e }) => /* @__PURE__ */ l(W, { children: [
|
|
|
8882
8882
|
},
|
|
8883
8883
|
children: [
|
|
8884
8884
|
/* @__PURE__ */ t(
|
|
8885
|
-
|
|
8885
|
+
xn,
|
|
8886
8886
|
{
|
|
8887
8887
|
account: o,
|
|
8888
8888
|
listItemProps: {
|
|
@@ -9206,7 +9206,7 @@ const bh = ({ activity: e }) => /* @__PURE__ */ l(W, { children: [
|
|
|
9206
9206
|
A && /* @__PURE__ */ t(Ie, { amount: e, component: "h2", symbol: r, variant: "Small" })
|
|
9207
9207
|
]
|
|
9208
9208
|
}
|
|
9209
|
-
), Rr = (e, A) => (n) => n.accountGuid && e.includes(n.accountGuid) && (
|
|
9209
|
+
), Rr = (e, A) => (n) => n.accountGuid && e.includes(n.accountGuid) && (ga(n.expectedDate) || yt(n.expectedDate, A.start)) && Te(n.expectedDate, A.end), Oh = () => {
|
|
9210
9210
|
const [e, A] = g.useState(!1), { availableWidth: n } = ct(), { cashflow: a } = L(), { upcomingExpenses: r, upcomingIncome: i } = ke(), { selectedAccountGuids: o } = ye(), { dateRange: s, selectedCashAccounts: c } = Tt(), { userProfile: d } = St(), u = g.useMemo(
|
|
9211
9211
|
() => r.filter(Rr(o, s)),
|
|
9212
9212
|
[s, o, r]
|
|
@@ -9323,7 +9323,7 @@ const bh = ({ activity: e }) => /* @__PURE__ */ l(W, { children: [
|
|
|
9323
9323
|
)
|
|
9324
9324
|
] });
|
|
9325
9325
|
}, _h = T(Oh), Nh = ({ handleNextStep: e }) => {
|
|
9326
|
-
const { completeOnboarding: A } =
|
|
9326
|
+
const { completeOnboarding: A } = Ea(), { cashflow: n } = L(), a = fe();
|
|
9327
9327
|
return /* @__PURE__ */ l(y, { children: [
|
|
9328
9328
|
/* @__PURE__ */ t(kA, { pb: 12, children: n.welcome_title }),
|
|
9329
9329
|
/* @__PURE__ */ t(
|
|
@@ -9407,7 +9407,7 @@ const bh = ({ activity: e }) => /* @__PURE__ */ l(W, { children: [
|
|
|
9407
9407
|
transform: rotate(360deg);
|
|
9408
9408
|
}
|
|
9409
9409
|
`, Kh = () => {
|
|
9410
|
-
const { addCashflowEvent: e, addCashflowSequence: A, cashflowSequences: n } = ke(), { cashflow: a, common: r } = L(), { completeOnboarding: i } =
|
|
9410
|
+
const { addCashflowEvent: e, addCashflowSequence: A, cashflowSequences: n } = ke(), { cashflow: a, common: r } = L(), { completeOnboarding: i } = Ea(), { isDirty: o } = Tt(), { isMobile: s } = Be(), { setDisplayedDate: c } = ye(), { filter: d, setFilter: u, transactions: h } = ge(), m = fe(), [C, f] = EA(!0), [v, E] = g.useState(X.EveryMonth), [I, S] = EA(!1), [w, D] = g.useState(null), [_, O] = EA(1), [x, z] = EA([]), [K, q] = EA(""), F = g.useMemo(
|
|
9411
9411
|
() => h.find((he) => he.guid === K),
|
|
9412
9412
|
[K]
|
|
9413
9413
|
), V = !!n.length, te = async () => {
|
|
@@ -10151,7 +10151,7 @@ const tn = {
|
|
|
10151
10151
|
if (!g.useContext(st))
|
|
10152
10152
|
throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
|
|
10153
10153
|
return ve().uiStore;
|
|
10154
|
-
},
|
|
10154
|
+
}, On = (e) => e.top_level_category_guid === b.INCOME || e.category_guid === b.INCOME, Vh = (e) => !On(e) && !co(e), so = (e) => Ar.includes(e.top_level_category_guid) || Ar.includes(e.category_guid), co = (e) => e.top_level_category_guid === b.TRANSFER || e.category_guid === b.TRANSFER, Jh = (e) => !On(e) && !so(e) && !co(e), Zh = (e) => e.filter((A) => A.category_guid === A.top_level_category_guid), Ma = (e, A) => {
|
|
10155
10155
|
const n = [];
|
|
10156
10156
|
let a = xe(bA(/* @__PURE__ */ new Date(), 5));
|
|
10157
10157
|
const r = /* @__PURE__ */ new Date();
|
|
@@ -10162,7 +10162,7 @@ const tn = {
|
|
|
10162
10162
|
}), a = oA(a, 1);
|
|
10163
10163
|
return n;
|
|
10164
10164
|
}, $h = (e, A) => {
|
|
10165
|
-
const n = e.filter(
|
|
10165
|
+
const n = e.filter(On);
|
|
10166
10166
|
return Ma(n).map((a) => ({ ...a, y: Math.abs(a.y) }));
|
|
10167
10167
|
}, eg = (e, A) => {
|
|
10168
10168
|
const n = e.filter(so);
|
|
@@ -10183,18 +10183,18 @@ const tn = {
|
|
|
10183
10183
|
}), a = oA(a, 1);
|
|
10184
10184
|
return A;
|
|
10185
10185
|
}, ng = (e, A) => {
|
|
10186
|
-
const n =
|
|
10186
|
+
const n = Ca.includes(A) ? $h(e) : [], a = pa.includes(A) ? eg(e) : [], r = fa.includes(A) ? Ag(e) : [];
|
|
10187
10187
|
return [n, a, r].filter((i) => i.length > 0);
|
|
10188
10188
|
}, ag = (e, A, n) => {
|
|
10189
10189
|
const [a, r] = e, i = a, o = r ?? a, s = [];
|
|
10190
|
-
if (i && o &&
|
|
10190
|
+
if (i && o && Ca.includes(A)) {
|
|
10191
10191
|
const c = R(i[i.length - 1].y, "0,0");
|
|
10192
10192
|
s.push(`${n.income_label} ${c}`);
|
|
10193
|
-
} else if (
|
|
10193
|
+
} else if (pa.includes(A)) {
|
|
10194
10194
|
const c = R(i[i.length - 1].y, "0,0");
|
|
10195
10195
|
s.push(`${n.payments_label} ${c}`);
|
|
10196
10196
|
}
|
|
10197
|
-
if (o &&
|
|
10197
|
+
if (o && fa.includes(A)) {
|
|
10198
10198
|
const c = R(o[o.length - 1].y, "0,0");
|
|
10199
10199
|
s.push(`${n.spending_label} ${c}`);
|
|
10200
10200
|
}
|
|
@@ -10202,7 +10202,7 @@ const tn = {
|
|
|
10202
10202
|
}, rg = () => {
|
|
10203
10203
|
const e = cA(), { selectedAccount: A } = lA(), { monthlyCategoryTotals: n } = _e(), { trends: a } = L(), r = [e.palette.chart?.chart1, e.palette.chart?.chart2], i = ng(n, A.account_type), o = ag(i, A.account_type, a), s = [Y.LOAN, Y.MORTGAGE].includes(A.account_type);
|
|
10204
10204
|
return /* @__PURE__ */ t("div", { "data-testid": "TrendsChart", children: /* @__PURE__ */ t(
|
|
10205
|
-
|
|
10205
|
+
ya,
|
|
10206
10206
|
{
|
|
10207
10207
|
colors: r,
|
|
10208
10208
|
datasets: i,
|
|
@@ -10213,7 +10213,7 @@ const tn = {
|
|
|
10213
10213
|
}
|
|
10214
10214
|
) });
|
|
10215
10215
|
}, ig = T(rg), og = ({ sx: e }) => {
|
|
10216
|
-
const { loadMonthlyCategoryTotals: A } = _e(), { isInitialized: n } =
|
|
10216
|
+
const { loadMonthlyCategoryTotals: A } = _e(), { isInitialized: n } = Sn(), { selectedAccount: a } = lA(), [r, i] = g.useState(!1);
|
|
10217
10217
|
return g.useEffect(() => {
|
|
10218
10218
|
n && A([a]).finally(() => {
|
|
10219
10219
|
i(!0);
|
|
@@ -10244,9 +10244,9 @@ const tn = {
|
|
|
10244
10244
|
const { institutions: A } = ve(), { selectedAccount: n } = lA(), { accounts: a } = L(), { firstSubtitle: r, firstValue: i, hasAvailableBalance: o, secondSubtitle: s, secondValue: c } = oo(n, a), d = A.find(
|
|
10245
10245
|
(h) => h.guid === n?.institution_guid
|
|
10246
10246
|
), u = [
|
|
10247
|
-
...ma,
|
|
10248
10247
|
...Ca,
|
|
10249
|
-
...pa
|
|
10248
|
+
...pa,
|
|
10249
|
+
...fa
|
|
10250
10250
|
].includes(n.account_type);
|
|
10251
10251
|
return /* @__PURE__ */ l(y, { p: 24, children: [
|
|
10252
10252
|
/* @__PURE__ */ l(y, { gap: 12, children: [
|
|
@@ -10736,7 +10736,7 @@ const lo = ({
|
|
|
10736
10736
|
/* @__PURE__ */ t(gA, { sx: { my: 16, mx: 24, ...A }, children: /* @__PURE__ */ l(
|
|
10737
10737
|
vt,
|
|
10738
10738
|
{
|
|
10739
|
-
icon: n ? /* @__PURE__ */ t(yn, {}) : /* @__PURE__ */ t(
|
|
10739
|
+
icon: n ? /* @__PURE__ */ t(yn, {}) : /* @__PURE__ */ t(ha, { color: "success" }),
|
|
10740
10740
|
severity: "error",
|
|
10741
10741
|
sx: {
|
|
10742
10742
|
alignItems: "start",
|
|
@@ -10750,7 +10750,7 @@ const lo = ({
|
|
|
10750
10750
|
}
|
|
10751
10751
|
},
|
|
10752
10752
|
children: [
|
|
10753
|
-
/* @__PURE__ */ t(
|
|
10753
|
+
/* @__PURE__ */ t(Vn, { sx: { fontWeight: 600, marginTop: 2 }, variant: "Body", children: n ? gt.status_error_title : gt.status_complete_title }),
|
|
10754
10754
|
/* @__PURE__ */ t(p, { component: "p", sx: { whiteSpace: "wrap" }, variant: "ParagraphSmall", children: n ? gt.status_error_description : gt.status_complete_description })
|
|
10755
10755
|
]
|
|
10756
10756
|
}
|
|
@@ -10767,13 +10767,13 @@ const lo = ({
|
|
|
10767
10767
|
}
|
|
10768
10768
|
},
|
|
10769
10769
|
children: [
|
|
10770
|
-
/* @__PURE__ */ t(
|
|
10770
|
+
/* @__PURE__ */ t(Vn, { sx: { fontWeight: 600, marginTop: 2 }, variant: "Body", children: gt.status_info_title }),
|
|
10771
10771
|
/* @__PURE__ */ t(p, { component: "p", sx: { whiteSpace: "wrap" }, variant: "ParagraphSmall", children: gt.status_info_description })
|
|
10772
10772
|
]
|
|
10773
10773
|
}
|
|
10774
10774
|
) })
|
|
10775
10775
|
] });
|
|
10776
|
-
}, bg = T(Eg),
|
|
10776
|
+
}, bg = T(Eg), qn = {
|
|
10777
10777
|
schedule_and_details_aria: "",
|
|
10778
10778
|
schedule_tab_label: "Schedule",
|
|
10779
10779
|
details_tab_label: "Details"
|
|
@@ -10784,7 +10784,7 @@ const lo = ({
|
|
|
10784
10784
|
/* @__PURE__ */ l(
|
|
10785
10785
|
_A,
|
|
10786
10786
|
{
|
|
10787
|
-
"aria-label":
|
|
10787
|
+
"aria-label": qn.schedule_and_details_aria,
|
|
10788
10788
|
centered: !0,
|
|
10789
10789
|
onChange: (r, i) => a(i),
|
|
10790
10790
|
value: n,
|
|
@@ -10795,7 +10795,7 @@ const lo = ({
|
|
|
10795
10795
|
{
|
|
10796
10796
|
"aria-controls": "debt-schedule-tabpanel-0",
|
|
10797
10797
|
id: "debt-schedule-tab-0",
|
|
10798
|
-
label:
|
|
10798
|
+
label: qn.schedule_tab_label
|
|
10799
10799
|
}
|
|
10800
10800
|
),
|
|
10801
10801
|
/* @__PURE__ */ t(
|
|
@@ -10803,7 +10803,7 @@ const lo = ({
|
|
|
10803
10803
|
{
|
|
10804
10804
|
"aria-controls": "debt-details-tabpanel-1",
|
|
10805
10805
|
id: "debt-details-tab-1",
|
|
10806
|
-
label:
|
|
10806
|
+
label: qn.details_tab_label
|
|
10807
10807
|
}
|
|
10808
10808
|
)
|
|
10809
10809
|
]
|
|
@@ -10857,7 +10857,7 @@ const lo = ({
|
|
|
10857
10857
|
}
|
|
10858
10858
|
);
|
|
10859
10859
|
}, Dg = (e) => {
|
|
10860
|
-
const A = e.row.account, n =
|
|
10860
|
+
const A = e.row.account, n = ma[A.account_type];
|
|
10861
10861
|
return /* @__PURE__ */ l(y, { alignItems: "center", flexDirection: "row", children: [
|
|
10862
10862
|
/* @__PURE__ */ t(
|
|
10863
10863
|
CA,
|
|
@@ -11234,7 +11234,7 @@ class qr {
|
|
|
11234
11234
|
updateMonthlyCashFlowProfile = async (A) => this.fetchInstance.put(`${M.MONTHLY_CASH_FLOW_PROFILE}`, A).then((n) => n.monthly_cash_flow_profile);
|
|
11235
11235
|
updateRetirementGoal = async (A) => this.fetchInstance.put(`${M.RETIREMENT_GOALS}/${A.guid}`, A).then((n) => n.retirement_goal);
|
|
11236
11236
|
}
|
|
11237
|
-
function
|
|
11237
|
+
function kn({ title: e, subtitle: A }) {
|
|
11238
11238
|
return /* @__PURE__ */ l(y, { children: [
|
|
11239
11239
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e }),
|
|
11240
11240
|
/* @__PURE__ */ t(p, { sx: { fontWeight: 400 }, variant: "Body", children: A })
|
|
@@ -11561,7 +11561,7 @@ const mo = T(
|
|
|
11561
11561
|
}
|
|
11562
11562
|
)
|
|
11563
11563
|
] });
|
|
11564
|
-
},
|
|
11564
|
+
}, Gn = T(({ trackType: e }) => {
|
|
11565
11565
|
const { isMobile: A } = Be(), { goals: n } = L(), { orderedGoals: a, setSelectedGoal: r } = Ue(), i = a.filter((d) => d.track_type === e), o = i.filter((d) => !d.is_complete), s = i.filter((d) => d.is_complete), c = e === ee.DEBT_TRACK ? n.zero_state_complete_debt : n.zero_state_complete_savings;
|
|
11566
11566
|
return /* @__PURE__ */ l(y, { mt: 16, mx: A ? 24 : 0, children: [
|
|
11567
11567
|
/* @__PURE__ */ l(y, { alignItems: "center", direction: "row", justifyContent: "space-between", mb: 8, children: [
|
|
@@ -11706,7 +11706,7 @@ const mo = T(
|
|
|
11706
11706
|
f === ee.DEBT_TRACK ? c(!0) : i({
|
|
11707
11707
|
amount: 0,
|
|
11708
11708
|
current_amount: 0,
|
|
11709
|
-
goal_type:
|
|
11709
|
+
goal_type: ea.SAVE_AMOUNT,
|
|
11710
11710
|
initial_amount: 0,
|
|
11711
11711
|
meta_type: C,
|
|
11712
11712
|
name: m,
|
|
@@ -11719,7 +11719,7 @@ const mo = T(
|
|
|
11719
11719
|
account_guid: C.guid,
|
|
11720
11720
|
amount: 0,
|
|
11721
11721
|
current_amount: 0,
|
|
11722
|
-
goal_type:
|
|
11722
|
+
goal_type: ea.KEEP_BALANCE_BELOW,
|
|
11723
11723
|
initial_amount: C.balance || 0,
|
|
11724
11724
|
interest_rate: C.interest_rate || 0,
|
|
11725
11725
|
meta_type: f,
|
|
@@ -12153,20 +12153,20 @@ const mo = T(
|
|
|
12153
12153
|
value: C,
|
|
12154
12154
|
variant: "fullWidth",
|
|
12155
12155
|
children: [
|
|
12156
|
-
/* @__PURE__ */ t(Ke, { label: /* @__PURE__ */ t(
|
|
12157
|
-
/* @__PURE__ */ t(Ke, { label: /* @__PURE__ */ t(
|
|
12156
|
+
/* @__PURE__ */ t(Ke, { label: /* @__PURE__ */ t(kn, { subtitle: D, title: s.tab_saving_title }) }),
|
|
12157
|
+
/* @__PURE__ */ t(Ke, { label: /* @__PURE__ */ t(kn, { subtitle: _, title: s.tab_debt_title }) }),
|
|
12158
12158
|
/* @__PURE__ */ t(
|
|
12159
12159
|
Ke,
|
|
12160
12160
|
{
|
|
12161
|
-
label: /* @__PURE__ */ t(
|
|
12161
|
+
label: /* @__PURE__ */ t(kn, { subtitle: O, title: s.tab_retirement_title })
|
|
12162
12162
|
}
|
|
12163
12163
|
)
|
|
12164
12164
|
]
|
|
12165
12165
|
}
|
|
12166
12166
|
),
|
|
12167
|
-
C === 0 && /* @__PURE__ */ t(
|
|
12168
|
-
C === 1 && /* @__PURE__ */ t(
|
|
12169
|
-
C === 2 && /* @__PURE__ */ t(
|
|
12167
|
+
C === 0 && /* @__PURE__ */ t(Gn, { trackType: ee.SAVINGS_TRACK }),
|
|
12168
|
+
C === 1 && /* @__PURE__ */ t(Gn, { trackType: ee.DEBT_TRACK }),
|
|
12169
|
+
C === 2 && /* @__PURE__ */ t(Gn, { trackType: ee.RETIREMENT_TRACK })
|
|
12170
12170
|
] }),
|
|
12171
12171
|
/* @__PURE__ */ t(t1, { onClose: K }),
|
|
12172
12172
|
/* @__PURE__ */ t(
|
|
@@ -12180,7 +12180,7 @@ const mo = T(
|
|
|
12180
12180
|
}
|
|
12181
12181
|
),
|
|
12182
12182
|
/* @__PURE__ */ t(
|
|
12183
|
-
|
|
12183
|
+
sa,
|
|
12184
12184
|
{
|
|
12185
12185
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
12186
12186
|
autoHideDuration: 3500,
|
|
@@ -12632,7 +12632,7 @@ const s1 = /^[ a-zA-ZÀ-ÿ0-9]+$/, c1 = 50, kr = 65, l1 = ({
|
|
|
12632
12632
|
});
|
|
12633
12633
|
return g.useEffect(() => h.measure(), [a]), /* @__PURE__ */ l(y, { className: "mx-mrt-lookup", children: [
|
|
12634
12634
|
/* @__PURE__ */ t(
|
|
12635
|
-
|
|
12635
|
+
Tn,
|
|
12636
12636
|
{
|
|
12637
12637
|
ariaLabel: i.search_aria,
|
|
12638
12638
|
cancelAriaLabel: i.cancel_search_aria,
|
|
@@ -12778,7 +12778,7 @@ const fo = 13, u1 = (e, A) => e.filter((n) => {
|
|
|
12778
12778
|
}, {});
|
|
12779
12779
|
return Object.entries(A).map(([n, a]) => ({
|
|
12780
12780
|
icon: xc[+n] || Si[+n],
|
|
12781
|
-
name:
|
|
12781
|
+
name: ma[+n],
|
|
12782
12782
|
accounts: a
|
|
12783
12783
|
}));
|
|
12784
12784
|
};
|
|
@@ -12859,7 +12859,7 @@ const y1 = ({
|
|
|
12859
12859
|
stroke: c.palette.success.main
|
|
12860
12860
|
});
|
|
12861
12861
|
return /* @__PURE__ */ t(
|
|
12862
|
-
|
|
12862
|
+
ya,
|
|
12863
12863
|
{
|
|
12864
12864
|
baseline: "min",
|
|
12865
12865
|
colors: [c.palette.success.main],
|
|
@@ -13458,7 +13458,7 @@ class q8 {
|
|
|
13458
13458
|
});
|
|
13459
13459
|
};
|
|
13460
13460
|
}
|
|
13461
|
-
const
|
|
13461
|
+
const Fn = ({
|
|
13462
13462
|
children: e,
|
|
13463
13463
|
isLast: A = !1,
|
|
13464
13464
|
onClick: n,
|
|
@@ -13489,18 +13489,18 @@ const Gn = ({
|
|
|
13489
13489
|
return /* @__PURE__ */ l(W, { children: [
|
|
13490
13490
|
/* @__PURE__ */ t(SA, { sx: { backgroundColor: "transparent", mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(p, { bold: !0, component: "h2", variant: "XSmall", children: h.actions }) }),
|
|
13491
13491
|
/* @__PURE__ */ t(
|
|
13492
|
-
|
|
13492
|
+
Fn,
|
|
13493
13493
|
{
|
|
13494
13494
|
onClick: () => {
|
|
13495
13495
|
f({ is_hidden: !c.is_hidden }), C(G.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: c.guid });
|
|
13496
13496
|
},
|
|
13497
13497
|
primaryText: c.is_hidden ? h.unhide_account : h.hide_Account,
|
|
13498
13498
|
secondaryText: c.is_hidden ? h.include_this_account : h.exclude_this_account,
|
|
13499
|
-
children: /* @__PURE__ */ t(
|
|
13499
|
+
children: /* @__PURE__ */ t(da, { checked: c.is_hidden })
|
|
13500
13500
|
}
|
|
13501
13501
|
),
|
|
13502
13502
|
/* @__PURE__ */ t(
|
|
13503
|
-
|
|
13503
|
+
Fn,
|
|
13504
13504
|
{
|
|
13505
13505
|
onClick: () => {
|
|
13506
13506
|
A(!0), C(G.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
|
|
@@ -13513,7 +13513,7 @@ const Gn = ({
|
|
|
13513
13513
|
}
|
|
13514
13514
|
),
|
|
13515
13515
|
m.length > 0 && /* @__PURE__ */ t(
|
|
13516
|
-
|
|
13516
|
+
Fn,
|
|
13517
13517
|
{
|
|
13518
13518
|
isLast: !0,
|
|
13519
13519
|
onClick: () => {
|
|
@@ -13555,7 +13555,7 @@ const Gn = ({
|
|
|
13555
13555
|
const I = m.indexOf(E) === m.length - 1;
|
|
13556
13556
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
13557
13557
|
/* @__PURE__ */ t(
|
|
13558
|
-
|
|
13558
|
+
xn,
|
|
13559
13559
|
{
|
|
13560
13560
|
account: E,
|
|
13561
13561
|
onRowClick: () => {
|
|
@@ -13728,7 +13728,7 @@ const Gn = ({
|
|
|
13728
13728
|
const a = () => {
|
|
13729
13729
|
const r = e.successfully_aggregated_at ? Le(e.successfully_aggregated_at) : void 0, i = r && ne(r, Z.TIME_STAMP_HOUR_MINUTE);
|
|
13730
13730
|
if (i)
|
|
13731
|
-
return
|
|
13731
|
+
return ga(r) ? P(A.last_updated_at, A.today, i) : oc(r) ? P(A.last_updated_at, A.yesterday, i) : P(
|
|
13732
13732
|
A.last_updated_at,
|
|
13733
13733
|
ne(r, Z.MONTH_DAY_YEAR),
|
|
13734
13734
|
i
|
|
@@ -13741,7 +13741,7 @@ const Gn = ({
|
|
|
13741
13741
|
};
|
|
13742
13742
|
}
|
|
13743
13743
|
}
|
|
13744
|
-
},
|
|
13744
|
+
}, Xn = {
|
|
13745
13745
|
color: "background.default",
|
|
13746
13746
|
fontSize: 20,
|
|
13747
13747
|
gridRow: 1,
|
|
@@ -13753,12 +13753,12 @@ const Gn = ({
|
|
|
13753
13753
|
} = fe(), { selectedMember: a } = lA(), { accounts: r, connect: i } = L(), o = vo(a, i), s = wi.includes(a.connection_status) ? {
|
|
13754
13754
|
color: "error.main",
|
|
13755
13755
|
ctaCopy: o.cta ?? "",
|
|
13756
|
-
icon: /* @__PURE__ */ t(yn, { sx: { ...
|
|
13756
|
+
icon: /* @__PURE__ */ t(yn, { sx: { ...Xn } }),
|
|
13757
13757
|
mainMessage: o.statusName,
|
|
13758
13758
|
secondaryMessage: `${o.title}.`
|
|
13759
13759
|
} : {
|
|
13760
13760
|
color: "success.main",
|
|
13761
|
-
icon: /* @__PURE__ */ t(rc, { sx: { ...
|
|
13761
|
+
icon: /* @__PURE__ */ t(rc, { sx: { ...Xn } }),
|
|
13762
13762
|
mainMessage: o.statusName,
|
|
13763
13763
|
secondaryMessage: o.title
|
|
13764
13764
|
};
|
|
@@ -13797,7 +13797,7 @@ const Gn = ({
|
|
|
13797
13797
|
ic,
|
|
13798
13798
|
{
|
|
13799
13799
|
sx: {
|
|
13800
|
-
...
|
|
13800
|
+
...Xn,
|
|
13801
13801
|
color: n === Fa.LIGHT ? "grey.900" : "common.white"
|
|
13802
13802
|
}
|
|
13803
13803
|
}
|
|
@@ -13841,7 +13841,7 @@ const Gn = ({
|
|
|
13841
13841
|
onChange: (E) => s(E.target.value),
|
|
13842
13842
|
placeholder: e.placeholder,
|
|
13843
13843
|
value: o,
|
|
13844
|
-
children: e.options?.map((E) => /* @__PURE__ */ t(
|
|
13844
|
+
children: e.options?.map((E) => /* @__PURE__ */ t(la, { value: E.value, children: E.label }, E.value))
|
|
13845
13845
|
}
|
|
13846
13846
|
)
|
|
13847
13847
|
] });
|
|
@@ -13859,7 +13859,7 @@ const Gn = ({
|
|
|
13859
13859
|
);
|
|
13860
13860
|
case Ze.Date:
|
|
13861
13861
|
return /* @__PURE__ */ t(lc, { dateAdapter: Wt, children: /* @__PURE__ */ t(
|
|
13862
|
-
|
|
13862
|
+
ua,
|
|
13863
13863
|
{
|
|
13864
13864
|
maxDate: oA(/* @__PURE__ */ new Date(), 1),
|
|
13865
13865
|
minDate: /* @__PURE__ */ new Date(),
|
|
@@ -13985,7 +13985,7 @@ const Gn = ({
|
|
|
13985
13985
|
}
|
|
13986
13986
|
},
|
|
13987
13987
|
children: [
|
|
13988
|
-
s.title && /* @__PURE__ */ t(
|
|
13988
|
+
s.title && /* @__PURE__ */ t(Vn, { sx: { fontWeight: 600, marginTop: 2 }, variant: "Body", children: s.title }),
|
|
13989
13989
|
/* @__PURE__ */ t(p, { component: "p", sx: { whiteSpace: "wrap" }, variant: "ParagraphSmall", children: s.main }),
|
|
13990
13990
|
s.cta && /* @__PURE__ */ t(
|
|
13991
13991
|
pi,
|
|
@@ -14104,7 +14104,7 @@ const Gn = ({
|
|
|
14104
14104
|
const v = a.indexOf(f) === a.length - 1, E = h.indexOf(f) === h.length - 1;
|
|
14105
14105
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
14106
14106
|
/* @__PURE__ */ t(
|
|
14107
|
-
|
|
14107
|
+
xn,
|
|
14108
14108
|
{
|
|
14109
14109
|
account: f,
|
|
14110
14110
|
onRowClick: () => C(f),
|
|
@@ -14246,7 +14246,7 @@ const Gn = ({
|
|
|
14246
14246
|
const d = i.indexOf(s) === i.length - 1;
|
|
14247
14247
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
14248
14248
|
/* @__PURE__ */ t(
|
|
14249
|
-
|
|
14249
|
+
xn,
|
|
14250
14250
|
{
|
|
14251
14251
|
account: s,
|
|
14252
14252
|
listItemProps: { sx: { px: 24 } },
|
|
@@ -15316,7 +15316,7 @@ const xm = ({
|
|
|
15316
15316
|
}
|
|
15317
15317
|
)
|
|
15318
15318
|
] });
|
|
15319
|
-
},
|
|
15319
|
+
}, _n = ({
|
|
15320
15320
|
amount: e,
|
|
15321
15321
|
categoryName: A,
|
|
15322
15322
|
onAmountChanged: n
|
|
@@ -15367,7 +15367,7 @@ const xm = ({
|
|
|
15367
15367
|
onClose: () => i(!1),
|
|
15368
15368
|
onPrimaryAction: () => A(e, Number(o)),
|
|
15369
15369
|
primaryText: n.add_save_button,
|
|
15370
|
-
children: /* @__PURE__ */ t(
|
|
15370
|
+
children: /* @__PURE__ */ t(_n, { amount: o, categoryName: e.name, onAmountChanged: s })
|
|
15371
15371
|
}
|
|
15372
15372
|
)
|
|
15373
15373
|
] });
|
|
@@ -15477,7 +15477,7 @@ const xm = ({
|
|
|
15477
15477
|
onPrimaryAction: E,
|
|
15478
15478
|
primaryText: n.add_save_button,
|
|
15479
15479
|
children: /* @__PURE__ */ t(
|
|
15480
|
-
|
|
15480
|
+
_n,
|
|
15481
15481
|
{
|
|
15482
15482
|
amount: h,
|
|
15483
15483
|
categoryName: C?.name || "",
|
|
@@ -15544,7 +15544,7 @@ const xm = ({
|
|
|
15544
15544
|
onPrimaryAction: I,
|
|
15545
15545
|
primaryText: a.edit_save_button,
|
|
15546
15546
|
children: /* @__PURE__ */ t(
|
|
15547
|
-
|
|
15547
|
+
_n,
|
|
15548
15548
|
{
|
|
15549
15549
|
amount: v,
|
|
15550
15550
|
categoryName: o.category.name,
|
|
@@ -15675,7 +15675,7 @@ const xm = ({
|
|
|
15675
15675
|
onPrimaryAction: w,
|
|
15676
15676
|
primaryText: A.edit_save_button,
|
|
15677
15677
|
children: /* @__PURE__ */ t(
|
|
15678
|
-
|
|
15678
|
+
_n,
|
|
15679
15679
|
{
|
|
15680
15680
|
amount: I,
|
|
15681
15681
|
categoryName: i.category.name,
|
|
@@ -15768,7 +15768,7 @@ const xm = ({
|
|
|
15768
15768
|
}
|
|
15769
15769
|
),
|
|
15770
15770
|
/* @__PURE__ */ t(
|
|
15771
|
-
|
|
15771
|
+
sa,
|
|
15772
15772
|
{
|
|
15773
15773
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
15774
15774
|
autoHideDuration: 3500,
|
|
@@ -15781,7 +15781,7 @@ const xm = ({
|
|
|
15781
15781
|
}
|
|
15782
15782
|
);
|
|
15783
15783
|
});
|
|
15784
|
-
var
|
|
15784
|
+
var aa = /* @__PURE__ */ ((e) => (e[e.Main = 0] = "Main", e[e.RightSide = 1] = "RightSide", e))(aa || {});
|
|
15785
15785
|
const Qm = () => {
|
|
15786
15786
|
const { accounts: e } = ve(), { selectedAccountGuids: A, setSelectedAccountGuids: n } = ye(), { isMobile: a } = Be(), { common: r } = L(), i = {
|
|
15787
15787
|
accountFilterOptionsCopy: {
|
|
@@ -15822,7 +15822,7 @@ const Qm = () => {
|
|
|
15822
15822
|
)
|
|
15823
15823
|
] }) });
|
|
15824
15824
|
}, Wm = T(Qm), Ym = ({ widgets: e, isLoading: A }) => {
|
|
15825
|
-
const { isDesktop: n, isMobile: a } = Be(), { copyStore: r } =
|
|
15825
|
+
const { isDesktop: n, isMobile: a } = Be(), { copyStore: r } = Sn(), { setSelectedAccounts: i } = ye(), { accounts: o } = ve();
|
|
15826
15826
|
g.useEffect(() => {
|
|
15827
15827
|
i(o);
|
|
15828
15828
|
}, [o]);
|
|
@@ -15830,10 +15830,10 @@ const Qm = () => {
|
|
|
15830
15830
|
() => e.sort((u, h) => u.index - h.index),
|
|
15831
15831
|
[e]
|
|
15832
15832
|
), c = g.useMemo(
|
|
15833
|
-
() => s.filter((u) => u.location ===
|
|
15833
|
+
() => s.filter((u) => u.location === aa.Main),
|
|
15834
15834
|
[e]
|
|
15835
15835
|
), d = g.useMemo(
|
|
15836
|
-
() => s.filter((u) => u.location ===
|
|
15836
|
+
() => s.filter((u) => u.location === aa.RightSide),
|
|
15837
15837
|
[e]
|
|
15838
15838
|
);
|
|
15839
15839
|
return /* @__PURE__ */ l(qA, { container: !0, spacing: a ? 0 : 24, sx: { overflow: "scroll" }, children: [
|
|
@@ -15909,7 +15909,7 @@ const Qm = () => {
|
|
|
15909
15909
|
/* @__PURE__ */ t(
|
|
15910
15910
|
mc,
|
|
15911
15911
|
{
|
|
15912
|
-
expandIcon: /* @__PURE__ */ t(
|
|
15912
|
+
expandIcon: /* @__PURE__ */ t(oa, { sx: { color: "text.primary" } }),
|
|
15913
15913
|
sx: { p: "14px 24px" },
|
|
15914
15914
|
children: /* @__PURE__ */ l(y, { sx: { alignItems: "center", flexDirection: "row", gap: 12 }, children: [
|
|
15915
15915
|
/* @__PURE__ */ t(B, { name: f, size: 24 }),
|
|
@@ -15951,27 +15951,27 @@ const Qm = () => {
|
|
|
15951
15951
|
}) }, d);
|
|
15952
15952
|
}) })
|
|
15953
15953
|
] });
|
|
15954
|
-
},
|
|
15954
|
+
}, jn = {
|
|
15955
15955
|
button_text: "Request Help",
|
|
15956
15956
|
help_content: "Find answers, get support, and learn how to make the most of your experience.",
|
|
15957
15957
|
help_title: "Help Tool"
|
|
15958
15958
|
}, Jm = () => {
|
|
15959
|
-
const {
|
|
15960
|
-
console.log(
|
|
15961
|
-
|
|
15962
|
-
}, [
|
|
15963
|
-
const
|
|
15964
|
-
},
|
|
15959
|
+
const { isInitialized: e } = Sn(), { helpCategories: A, setAppConfig: n } = yl(), a = window.app?.config;
|
|
15960
|
+
console.log(a, "::widgetProfile"), console.log(A, "::helpCategories"), console.log("isInitialized::", e), g.useEffect(() => {
|
|
15961
|
+
e && a && (console.log("::profile", a), n(a));
|
|
15962
|
+
}, [e, a, n]);
|
|
15963
|
+
const r = () => {
|
|
15964
|
+
}, i = () => {
|
|
15965
15965
|
};
|
|
15966
15966
|
return /* @__PURE__ */ t(pA, { children: /* @__PURE__ */ t(N, { children: /* @__PURE__ */ t(
|
|
15967
15967
|
Vm,
|
|
15968
15968
|
{
|
|
15969
|
-
buttonText:
|
|
15970
|
-
helpCategories:
|
|
15971
|
-
helpContent:
|
|
15972
|
-
helpTitle:
|
|
15973
|
-
onRequestHelp:
|
|
15974
|
-
onTopicSelect:
|
|
15969
|
+
buttonText: jn.button_text,
|
|
15970
|
+
helpCategories: A,
|
|
15971
|
+
helpContent: jn.help_content,
|
|
15972
|
+
helpTitle: jn.help_title,
|
|
15973
|
+
onRequestHelp: r,
|
|
15974
|
+
onTopicSelect: i
|
|
15975
15975
|
}
|
|
15976
15976
|
) }) });
|
|
15977
15977
|
}, Q8 = T(Jm), Ba = ({
|
|
@@ -16032,7 +16032,7 @@ const Qm = () => {
|
|
|
16032
16032
|
secondary: h.institutionName
|
|
16033
16033
|
}
|
|
16034
16034
|
),
|
|
16035
|
-
/* @__PURE__ */ t(
|
|
16035
|
+
/* @__PURE__ */ t(da, { checked: !h.is_hidden })
|
|
16036
16036
|
] }) }),
|
|
16037
16037
|
/* @__PURE__ */ t(H, { sx: { ml: m < e.length - 1 ? 24 : 0 } })
|
|
16038
16038
|
] }, h.guid)),
|
|
@@ -16174,7 +16174,7 @@ const Io = ({
|
|
|
16174
16174
|
icon: i = /* @__PURE__ */ t(vc, { fontSize: "inherit" }),
|
|
16175
16175
|
snackbarSx: o
|
|
16176
16176
|
}) => /* @__PURE__ */ t(
|
|
16177
|
-
|
|
16177
|
+
sa,
|
|
16178
16178
|
{
|
|
16179
16179
|
TransitionComponent: eC,
|
|
16180
16180
|
autoHideDuration: a,
|
|
@@ -17800,7 +17800,7 @@ const Vt = g.createContext(null), gC = ({
|
|
|
17800
17800
|
});
|
|
17801
17801
|
};
|
|
17802
17802
|
return /* @__PURE__ */ t(
|
|
17803
|
-
|
|
17803
|
+
Nn,
|
|
17804
17804
|
{
|
|
17805
17805
|
actionText: n.micro_call_to_action || E.micro_card_cta,
|
|
17806
17806
|
ariaLabel: e,
|
|
@@ -18020,7 +18020,7 @@ const Vt = g.createContext(null), gC = ({
|
|
|
18020
18020
|
display: "none"
|
|
18021
18021
|
}
|
|
18022
18022
|
}
|
|
18023
|
-
}),
|
|
18023
|
+
}), Nn = g.forwardRef(
|
|
18024
18024
|
function({
|
|
18025
18025
|
actionText: A,
|
|
18026
18026
|
ariaLabel: n,
|
|
@@ -18223,7 +18223,7 @@ const Vt = g.createContext(null), gC = ({
|
|
|
18223
18223
|
justifyContent: "center",
|
|
18224
18224
|
width: "100%"
|
|
18225
18225
|
},
|
|
18226
|
-
children: /* @__PURE__ */ t(
|
|
18226
|
+
children: /* @__PURE__ */ t(ia, {})
|
|
18227
18227
|
}
|
|
18228
18228
|
), RA = new hC(), RC = ({
|
|
18229
18229
|
areBeatsLoading: e,
|
|
@@ -18340,7 +18340,7 @@ const Vt = g.createContext(null), gC = ({
|
|
|
18340
18340
|
});
|
|
18341
18341
|
};
|
|
18342
18342
|
return /* @__PURE__ */ t(
|
|
18343
|
-
|
|
18343
|
+
Nn,
|
|
18344
18344
|
{
|
|
18345
18345
|
actionText: u.micro_card_cta,
|
|
18346
18346
|
ariaLabel: e,
|
|
@@ -18399,7 +18399,7 @@ const Vt = g.createContext(null), gC = ({
|
|
|
18399
18399
|
});
|
|
18400
18400
|
};
|
|
18401
18401
|
return /* @__PURE__ */ t(
|
|
18402
|
-
|
|
18402
|
+
Nn,
|
|
18403
18403
|
{
|
|
18404
18404
|
actionText: C.micro_card_cta,
|
|
18405
18405
|
ariaLabel: A,
|
|
@@ -18435,7 +18435,7 @@ const Vt = g.createContext(null), gC = ({
|
|
|
18435
18435
|
return g.useEffect(() => {
|
|
18436
18436
|
c(UA.MICRO_WIDGET_CAROUSEL_ZERO_STATE);
|
|
18437
18437
|
}, []), /* @__PURE__ */ t(
|
|
18438
|
-
|
|
18438
|
+
Nn,
|
|
18439
18439
|
{
|
|
18440
18440
|
ariaLabel: e,
|
|
18441
18441
|
description: d.carousel_zero_state_description,
|
|
@@ -18460,7 +18460,7 @@ const Vt = g.createContext(null), gC = ({
|
|
|
18460
18460
|
widthOverrides: s
|
|
18461
18461
|
}
|
|
18462
18462
|
);
|
|
18463
|
-
}, kC = T(qC),
|
|
18463
|
+
}, kC = T(qC), Un = 5, GC = (e, A) => A.reduce((n, a) => {
|
|
18464
18464
|
if (a.total > 0) {
|
|
18465
18465
|
const r = e.find((d) => d.guid === a.category_guid);
|
|
18466
18466
|
if (!r) return n;
|
|
@@ -18485,14 +18485,14 @@ const Vt = g.createContext(null), gC = ({
|
|
|
18485
18485
|
const n = GC(e, A), a = n.filter((c) => c.guid !== b.INCOME && c.guid !== b.TRANSFER).sort((c, d) => d.amount - c.amount), r = a.reduce(
|
|
18486
18486
|
(c, d) => c + d.amount,
|
|
18487
18487
|
0
|
|
18488
|
-
), i = a.length >
|
|
18488
|
+
), i = a.length > Un ? Un : a.length, o = a.slice(0, i), s = o.map((c) => ({
|
|
18489
18489
|
id: c.guid,
|
|
18490
18490
|
color: c.color,
|
|
18491
18491
|
label: c.name,
|
|
18492
18492
|
value: c.amount / r * 100
|
|
18493
18493
|
}));
|
|
18494
18494
|
if (a.length > 5) {
|
|
18495
|
-
const c = a.slice(
|
|
18495
|
+
const c = a.slice(Un, n.length), d = c.reduce(
|
|
18496
18496
|
(u, h) => u + h.amount,
|
|
18497
18497
|
0
|
|
18498
18498
|
);
|
|
@@ -19188,7 +19188,7 @@ const np = (e) => e.reduce((n, a) => {
|
|
|
19188
19188
|
) : Zh(Se);
|
|
19189
19189
|
return {
|
|
19190
19190
|
stackedDatasets: Je.filter(Vh),
|
|
19191
|
-
unstackedDatasets: Je.filter(
|
|
19191
|
+
unstackedDatasets: Je.filter(On)
|
|
19192
19192
|
};
|
|
19193
19193
|
}, [d, x, K]), V = g.useMemo(() => {
|
|
19194
19194
|
const Se = ne(
|
|
@@ -19271,7 +19271,7 @@ const np = (e) => e.reduce((n, a) => {
|
|
|
19271
19271
|
orientation: "horizontal",
|
|
19272
19272
|
value: _,
|
|
19273
19273
|
children: ["Chart", "Table"].map((Se) => /* @__PURE__ */ t(
|
|
19274
|
-
|
|
19274
|
+
ra,
|
|
19275
19275
|
{
|
|
19276
19276
|
sx: {
|
|
19277
19277
|
fontSize: 15,
|
|
@@ -19352,7 +19352,7 @@ const np = (e) => e.reduce((n, a) => {
|
|
|
19352
19352
|
}, e7 = T(mp), Cp = () => {
|
|
19353
19353
|
const e = cA(), { monthlyCategoryTotals: A } = _e(), { trends: n } = L(), a = tg(A);
|
|
19354
19354
|
return /* @__PURE__ */ t(
|
|
19355
|
-
|
|
19355
|
+
ya,
|
|
19356
19356
|
{
|
|
19357
19357
|
baseline: "min",
|
|
19358
19358
|
colors: [e.palette.primary.main],
|
|
@@ -19366,7 +19366,7 @@ const np = (e) => e.reduce((n, a) => {
|
|
|
19366
19366
|
}
|
|
19367
19367
|
);
|
|
19368
19368
|
}, pp = T(Cp), fp = ({ onPrimaryCtaClick: e, sx: A }) => {
|
|
19369
|
-
const { loadMonthlyCategoryTotals: n } = _e(), { isInitialized: a } =
|
|
19369
|
+
const { loadMonthlyCategoryTotals: n } = _e(), { isInitialized: a } = Sn(), { trends: r } = L(), { selectedAccounts: i } = ye(), [o, s] = g.useState(!1);
|
|
19370
19370
|
return g.useEffect(() => {
|
|
19371
19371
|
a && n(i).finally(() => {
|
|
19372
19372
|
s(!0);
|
|
@@ -19394,7 +19394,7 @@ export {
|
|
|
19394
19394
|
pm as AccountStore,
|
|
19395
19395
|
Lc as AccountSubType,
|
|
19396
19396
|
Y as AccountType,
|
|
19397
|
-
|
|
19397
|
+
ma as AccountTypeName,
|
|
19398
19398
|
G8 as AccountsMiniWidget,
|
|
19399
19399
|
k8 as AccountsWidget,
|
|
19400
19400
|
ro as ActivitySettings,
|
|
@@ -19439,7 +19439,7 @@ export {
|
|
|
19439
19439
|
Ti as DEFAULT_DONUT_SIZE,
|
|
19440
19440
|
Ii as DEFAULT_STROKE_WIDTH,
|
|
19441
19441
|
U8 as Dashboard,
|
|
19442
|
-
|
|
19442
|
+
aa as DashboardLocation,
|
|
19443
19443
|
dn as DataRow,
|
|
19444
19444
|
ur as DateRangeSelector,
|
|
19445
19445
|
lo as DebtsChart,
|
|
@@ -19460,19 +19460,19 @@ export {
|
|
|
19460
19460
|
q8 as GlobalStore,
|
|
19461
19461
|
qr as GoalApi,
|
|
19462
19462
|
n1 as GoalStore,
|
|
19463
|
-
|
|
19463
|
+
ea as GoalType,
|
|
19464
19464
|
R8 as GoalsWidget,
|
|
19465
19465
|
Q8 as Help,
|
|
19466
19466
|
Vm as HelpList,
|
|
19467
19467
|
Y8 as HiddenInsightsDrawer,
|
|
19468
|
-
|
|
19468
|
+
Ca as INCOME_ACCOUNT_TYPES,
|
|
19469
19469
|
VA as IconBacking,
|
|
19470
19470
|
un as InformationTooltip,
|
|
19471
19471
|
J8 as InsightsMicroWidget,
|
|
19472
19472
|
gC as InsightsMicroWidgetDataProvider,
|
|
19473
19473
|
Pc as IterationItemTypes,
|
|
19474
19474
|
C8 as LOADING_STATUS,
|
|
19475
|
-
|
|
19475
|
+
ya as LineChart,
|
|
19476
19476
|
LA as ListItemAction,
|
|
19477
19477
|
Bl as ListItemWrapper,
|
|
19478
19478
|
Ve as Loader,
|
|
@@ -19485,7 +19485,7 @@ export {
|
|
|
19485
19485
|
eA as MetaType,
|
|
19486
19486
|
Ei as MfaStatuses,
|
|
19487
19487
|
xC as MicroBeatCarousel,
|
|
19488
|
-
|
|
19488
|
+
Nn as MicroInsightCard,
|
|
19489
19489
|
lt as MiniWidgetContainer,
|
|
19490
19490
|
bC as MonthlySpendComparisonIcon,
|
|
19491
19491
|
S8 as MultiSegmentDonut,
|
|
@@ -19501,7 +19501,7 @@ export {
|
|
|
19501
19501
|
R1 as NotificationStore,
|
|
19502
19502
|
Ic as ORDINAL_DATE_FORMAT,
|
|
19503
19503
|
u8 as ORDINAL_MONTH_DAY_YEAR_FORMAT,
|
|
19504
|
-
|
|
19504
|
+
pa as PAYMENT_ACCOUNT_TYPES,
|
|
19505
19505
|
Ar as PaymentCategories,
|
|
19506
19506
|
Nc as PlanTypes,
|
|
19507
19507
|
Dc as ProcessingStatuses,
|
|
@@ -19513,11 +19513,11 @@ export {
|
|
|
19513
19513
|
uh as RecurringActivityStore,
|
|
19514
19514
|
O8 as RecurringActivityWidget,
|
|
19515
19515
|
T8 as ResponsiveButton,
|
|
19516
|
-
|
|
19516
|
+
fa as SPENDING_ACCOUNT_TYPES,
|
|
19517
19517
|
rd as ScheduledPaymentTypes,
|
|
19518
19518
|
ir as ScheduledPaymentsApi,
|
|
19519
19519
|
id as ScreenSize,
|
|
19520
|
-
|
|
19520
|
+
Tn as SearchBox,
|
|
19521
19521
|
mr as SelectionBox,
|
|
19522
19522
|
V8 as SettingsDrawer,
|
|
19523
19523
|
Ki as SingleSegmentDonut,
|
|
@@ -19572,11 +19572,11 @@ export {
|
|
|
19572
19572
|
ZA as getLocale,
|
|
19573
19573
|
z8 as getNotificationDetailRoute,
|
|
19574
19574
|
f8 as isIncome,
|
|
19575
|
-
|
|
19575
|
+
Jn as isValidNumber,
|
|
19576
19576
|
ve as useAccountStore,
|
|
19577
19577
|
lA as useAccountUiStore,
|
|
19578
19578
|
Xe as useBudgetsStore,
|
|
19579
|
-
|
|
19579
|
+
Ea as useCashflowStore,
|
|
19580
19580
|
_e as useCategoryStore,
|
|
19581
19581
|
nt as useCategoryUiStore,
|
|
19582
19582
|
Wc as useCombineEvents,
|
|
@@ -19585,7 +19585,7 @@ export {
|
|
|
19585
19585
|
$ as useEvent,
|
|
19586
19586
|
F1 as useGetMergeableAccounts,
|
|
19587
19587
|
L as useGlobalCopyStore,
|
|
19588
|
-
|
|
19588
|
+
Sn as useGlobalStore,
|
|
19589
19589
|
ye as useGlobalUiStore,
|
|
19590
19590
|
Ue as useGoalStore,
|
|
19591
19591
|
yl as useHelpStore,
|