@mx-cartographer/experiences 6.2.1-alpha.al3 → 6.2.1-alpha.al4
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 +345 -354
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -6,9 +6,9 @@ import k from "@mui/material/Divider";
|
|
6
6
|
import ie from "@mui/material/List";
|
7
7
|
import wt from "@mui/material/ListSubheader";
|
8
8
|
import Ee from "@mui/system/Stack";
|
9
|
-
import { AccountsIcon as rl, P as
|
9
|
+
import { AccountsIcon as rl, P as De, Icon as B, useTokens as Ct, Text as p, H2 as Hn, CategoryIcon as Mt, DialogHeader as ol, DialogFooter as sl, Drawer as cl, Footer as ll, DateRangePicker as Ur, H3 as mt, H1 as cn, TextField as An, IconWeight as ft, MerchantLogo as ln, CategoryIconVariants as ps, InstitutionLogo as ht, ChevronRightIcon as dl, THEMES as Vr } from "@mxenabled/mxui";
|
10
10
|
import ul from "bowser";
|
11
|
-
import { getUnixTime as
|
11
|
+
import { getUnixTime as Ne } from "date-fns/getUnixTime";
|
12
12
|
import { intlFormat as _l } from "date-fns/intlFormat";
|
13
13
|
import { addMonths as gt } from "date-fns/addMonths";
|
14
14
|
import { addQuarters as Sn } from "date-fns/addQuarters";
|
@@ -19,13 +19,13 @@ import { isBefore as Te } from "date-fns/isBefore";
|
|
19
19
|
import { nextDay as Ei } from "date-fns/nextDay";
|
20
20
|
import { setDate as Vi } from "date-fns/setDate";
|
21
21
|
import { startOfToday as le } from "date-fns/startOfToday";
|
22
|
-
import { fromUnixTime as
|
22
|
+
import { fromUnixTime as Oe } from "date-fns/fromUnixTime";
|
23
23
|
import { Honeybadger as Bi } from "@honeybadger-io/react";
|
24
24
|
import Kr from "numeral";
|
25
25
|
import J from "@mui/material/Button";
|
26
26
|
import oi from "@mui/material/Tooltip";
|
27
27
|
import Ke from "@mui/material/IconButton";
|
28
|
-
import
|
28
|
+
import ja from "@mui/material/FormControlLabel";
|
29
29
|
import Y from "@mui/material/ListItem";
|
30
30
|
import de from "@mui/material/ListItemButton";
|
31
31
|
import ae from "@mui/material/ListItemText";
|
@@ -61,19 +61,19 @@ import { endOfToday as In } from "date-fns/endOfToday";
|
|
61
61
|
import { endOfYear as jr } from "date-fns/endOfYear";
|
62
62
|
import { startOfYear as Xr } from "date-fns/startOfYear";
|
63
63
|
import { subDays as dt } from "date-fns/subDays";
|
64
|
-
import { subYears as
|
64
|
+
import { subYears as Xa } from "date-fns/subYears";
|
65
65
|
import Hl from "@mui/material/ButtonGroup";
|
66
66
|
import Le from "@mui/material/Tab";
|
67
67
|
import Dt from "@mui/material/Tabs";
|
68
68
|
import aa from "@mui/material/ToggleButton";
|
69
|
-
import
|
69
|
+
import sr from "@mui/material/ToggleButtonGroup";
|
70
70
|
import $l from "@mui/material/Dialog";
|
71
71
|
import bs from "@mui/material/DialogContent";
|
72
72
|
import Fl from "@mui/icons-material/ArrowBackOutlined";
|
73
73
|
import wn from "@mui/material/CardHeader";
|
74
74
|
import { Icon as Rt, AccountBalance as Wl, ChevronRight as Et, Payments as Ul, NoteStack as Vl, Person as Kl, CheckCircle as ra, ExpandLess as zl, ExpandMore as Yl, AddBox as ys, Star as jl, Settings as Xl, Delete as ql, Schedule as Zl, MonetizationOn as Ql, Cancel as Es, Add as Jl } from "@mxenabled/mx-icons";
|
75
75
|
import { ConnectWidget as ed, ConnectionsWidget as td } from "@mxenabled/web-widget-sdk";
|
76
|
-
import
|
76
|
+
import cr from "@mui/material/CircularProgress";
|
77
77
|
import { v4 as nd } from "uuid";
|
78
78
|
import zi from "@mui/material/InputAdornment";
|
79
79
|
import id from "@mui/material/Radio";
|
@@ -96,11 +96,11 @@ import Wt from "@mui/material/Skeleton";
|
|
96
96
|
import { isAfter as Zt } from "date-fns/isAfter";
|
97
97
|
import { subWeeks as Jr } from "date-fns/subWeeks";
|
98
98
|
import { formatISO as si } from "date-fns/formatISO";
|
99
|
-
import { isValid as la } from "date-fns/isValid";
|
100
99
|
import { AdapterDateFns as gn } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
101
|
-
import { DatePicker as
|
100
|
+
import { DatePicker as la } from "@mui/x-date-pickers";
|
102
101
|
import { LocalizationProvider as Nn } from "@mui/x-date-pickers/LocalizationProvider";
|
103
102
|
import rt from "@mui/material/TextField";
|
103
|
+
import { isValid as lr } from "date-fns/isValid";
|
104
104
|
import { subQuarters as Ts } from "date-fns/subQuarters";
|
105
105
|
import { getMonth as Zn } from "date-fns/getMonth";
|
106
106
|
import { DateCalendar as ci } from "@mui/x-date-pickers/DateCalendar";
|
@@ -109,7 +109,7 @@ import Ti from "@mui/material/Accordion";
|
|
109
109
|
import Ai from "@mui/material/AccordionDetails";
|
110
110
|
import Ii from "@mui/material/AccordionSummary";
|
111
111
|
import md from "@mui/material/Breadcrumbs";
|
112
|
-
import
|
112
|
+
import da from "@mui/material/MenuItem";
|
113
113
|
import pd from "@mui/material/RadioGroup";
|
114
114
|
import xi from "@mui/icons-material/DeleteOutlined";
|
115
115
|
import Yi from "@mui/icons-material/Cancel";
|
@@ -124,14 +124,14 @@ import dr from "@mui/material/Badge";
|
|
124
124
|
import { PickersDay as Is } from "@mui/x-date-pickers/PickersDay";
|
125
125
|
import Td from "@mui/icons-material/AccessTimeFilled";
|
126
126
|
import Ad from "@mui/icons-material/MonetizationOn";
|
127
|
-
import
|
127
|
+
import ua from "@mui/icons-material/CheckCircle";
|
128
128
|
import { getDate as Qn } from "date-fns/getDate";
|
129
129
|
import zt from "@mui/material/Unstable_Grid2";
|
130
|
-
import
|
130
|
+
import _a from "@mui/material/Collapse";
|
131
131
|
import xs from "@mui/material/CardActionArea";
|
132
132
|
import Id from "@mui/icons-material/DragHandle";
|
133
|
-
import
|
134
|
-
import
|
133
|
+
import qa from "@mui/material/AlertTitle";
|
134
|
+
import ha from "@mui/icons-material/Error";
|
135
135
|
import xd from "@mui/material/Chip";
|
136
136
|
import vd from "@mui/icons-material/EditOutlined";
|
137
137
|
import { isToday as ur } from "date-fns/isToday";
|
@@ -161,7 +161,7 @@ const $d = async (e, n, i = "1.0.0", a = "Experiences") => {
|
|
161
161
|
analytics_event: {
|
162
162
|
...c,
|
163
163
|
app_version: "widgets-v2",
|
164
|
-
created_at:
|
164
|
+
created_at: Ne(/* @__PURE__ */ new Date()).toString(),
|
165
165
|
host: s,
|
166
166
|
name: c?.label || "",
|
167
167
|
session_id: o.guid,
|
@@ -173,7 +173,7 @@ const $d = async (e, n, i = "1.0.0", a = "Experiences") => {
|
|
173
173
|
analytics_pageview: {
|
174
174
|
...c,
|
175
175
|
app_version: "widgets-v2",
|
176
|
-
created_at:
|
176
|
+
created_at: Ne(/* @__PURE__ */ new Date()).toString(),
|
177
177
|
host: s,
|
178
178
|
name: c.name,
|
179
179
|
session_id: o.guid,
|
@@ -621,7 +621,7 @@ const Z2 = {
|
|
621
621
|
N.CREDIT_CARD_PAYMENT,
|
622
622
|
N.MORTGAGE_PAYMENT,
|
623
623
|
N.AUTO_PAYMENT
|
624
|
-
],
|
624
|
+
], ga = {
|
625
625
|
// Top-level categories
|
626
626
|
[N.AUTO_AND_TRANSPORT]: "Auto & Transport",
|
627
627
|
[N.BILLS_AND_UTILITIES]: "Bills & Utilities",
|
@@ -835,14 +835,14 @@ const hn = 44, ao = (e, n) => e.find((i) => i.guid === n), Xd = (e, n) => e.find
|
|
835
835
|
}, nE = (e, n) => {
|
836
836
|
const i = e.find((a) => a.guid === n);
|
837
837
|
return i ? i.guid === N.INCOME || i.parent_guid === N.INCOME : !1;
|
838
|
-
},
|
838
|
+
}, ma = (e) => {
|
839
839
|
const n = ti(e);
|
840
840
|
let i = Ei(e, n);
|
841
841
|
for (; Te(i, le()); )
|
842
842
|
i = qn(i, 1);
|
843
843
|
return i;
|
844
844
|
}, Gs = (e) => {
|
845
|
-
const n =
|
845
|
+
const n = ma(e);
|
846
846
|
return qn(n, 1);
|
847
847
|
}, qi = (e) => {
|
848
848
|
let n = Vi(le(), e.getDate());
|
@@ -850,7 +850,7 @@ const hn = 44, ao = (e, n) => e.find((i) => i.guid === n), Xd = (e, n) => e.find
|
|
850
850
|
n = gt(n, 1);
|
851
851
|
return n;
|
852
852
|
}, Ps = (e) => {
|
853
|
-
const n =
|
853
|
+
const n = ma(e);
|
854
854
|
return gt(n, 1);
|
855
855
|
}, pr = (e) => {
|
856
856
|
let n = Sn(e, 1);
|
@@ -861,9 +861,9 @@ const hn = 44, ao = (e, n) => e.find((i) => i.guid === n), Xd = (e, n) => e.find
|
|
861
861
|
const n = pr(e);
|
862
862
|
return Sn(n, 1);
|
863
863
|
}, Hs = (e) => ei(e, 1), Ci = (e) => {
|
864
|
-
const n =
|
864
|
+
const n = Oe(e);
|
865
865
|
return new Date(n.getUTCFullYear(), n.getUTCMonth(), n.getUTCDate());
|
866
|
-
}, Oi = (e) => ne(
|
866
|
+
}, Oi = (e) => ne(Oe(e), ee.DAY_OF_WEEK_MONTH_DAY), $s = (e) => e ? ne(Oe(e), ee.MONTH_YEAR) : "", Zd = /(?<static>.*?)(?<dynamic>(?:_\d+{(?:.*?)}))|(?<staticEnd>.+)/g, S = (e, ...n) => {
|
867
867
|
if (!e) return "";
|
868
868
|
const i = n.some((o) => typeof o != "string"), r = [...e.matchAll(Zd)].reduce(
|
869
869
|
(o, s, c) => {
|
@@ -962,11 +962,11 @@ const P = (e, n, i) => {
|
|
962
962
|
default:
|
963
963
|
return Xi.USD;
|
964
964
|
}
|
965
|
-
},
|
965
|
+
}, Za = (e) => e != null && e !== "" && isFinite(e), Jd = {
|
966
966
|
style: "percent",
|
967
967
|
minimumFractionDigits: 2,
|
968
968
|
maximumFractionDigits: 2
|
969
|
-
},
|
969
|
+
}, pa = (e, n = Jd) => Za(e) ? new Intl.NumberFormat(Pn(), n).format(Number(e)) : e, eu = (e) => new Intl.PluralRules(Pn(), e), Fs = (e, n = { type: "ordinal" }, i = {
|
970
970
|
one: "st",
|
971
971
|
two: "nd",
|
972
972
|
few: "rd",
|
@@ -1168,7 +1168,7 @@ class co {
|
|
1168
1168
|
updateScheduledPayment = async (n) => this.fetchInstance.put(`${G.SCHEDULED_PAYMENTS}/${n.guid}`, n).then((i) => i.scheduled_payment);
|
1169
1169
|
deleteScheduledPayment = async (n) => this.fetchInstance.delete(`${G.SCHEDULED_PAYMENTS}/${n}`).then((i) => i);
|
1170
1170
|
}
|
1171
|
-
class
|
1171
|
+
class Ga {
|
1172
1172
|
fetchInstance;
|
1173
1173
|
constructor(n, i) {
|
1174
1174
|
this.fetchInstance = new tt(n, i);
|
@@ -1184,7 +1184,7 @@ class lo {
|
|
1184
1184
|
}
|
1185
1185
|
requestWidgetUrl = async (n) => this.fetchInstance.post(G.WIDGET_URLS, n).then((i) => i.widget_url);
|
1186
1186
|
}
|
1187
|
-
const
|
1187
|
+
const Pa = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}), nu = (e) => e.reduce((n, i) => {
|
1188
1188
|
const a = _r[i.account_type], r = {
|
1189
1189
|
accountNumber: i.account_number,
|
1190
1190
|
name: i.name || i.feed_name,
|
@@ -1234,8 +1234,8 @@ const Ba = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
1234
1234
|
},
|
1235
1235
|
children: [
|
1236
1236
|
/* @__PURE__ */ t(rl, { size: 32 }),
|
1237
|
-
/* @__PURE__ */ t(
|
1238
|
-
/* @__PURE__ */ t(
|
1237
|
+
/* @__PURE__ */ t(De, { bold: !0, mt: 12, children: i.zeroStateTitle }),
|
1238
|
+
/* @__PURE__ */ t(De, { mt: 12, children: i.zeroStateDescription }),
|
1239
1239
|
/* @__PURE__ */ t(J, { onClick: s, children: i.zeroStateButton })
|
1240
1240
|
]
|
1241
1241
|
}
|
@@ -1268,7 +1268,7 @@ const Ba = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
1268
1268
|
},
|
1269
1269
|
children: [
|
1270
1270
|
/* @__PURE__ */ t(Y, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(
|
1271
|
-
|
1271
|
+
ja,
|
1272
1272
|
{
|
1273
1273
|
control: /* @__PURE__ */ t(
|
1274
1274
|
Ki,
|
@@ -1339,7 +1339,7 @@ const Ba = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
1339
1339
|
disableGutters: !0,
|
1340
1340
|
disablePadding: !0,
|
1341
1341
|
children: /* @__PURE__ */ t(
|
1342
|
-
|
1342
|
+
ja,
|
1343
1343
|
{
|
1344
1344
|
control: /* @__PURE__ */ t(
|
1345
1345
|
Ki,
|
@@ -1435,10 +1435,10 @@ const iu = (e, n) => {
|
|
1435
1435
|
variant: c = "outlined"
|
1436
1436
|
}) => {
|
1437
1437
|
const { isMobile: d } = xe(), [_, u] = g.useState(null), [h, m] = g.useState(
|
1438
|
-
|
1438
|
+
Pa(e, r)
|
1439
1439
|
);
|
1440
1440
|
g.useEffect(() => {
|
1441
|
-
m(
|
1441
|
+
m(Pa(e, r));
|
1442
1442
|
}, [e, r]);
|
1443
1443
|
const C = (E) => {
|
1444
1444
|
u(E.currentTarget);
|
@@ -1488,7 +1488,7 @@ const iu = (e, n) => {
|
|
1488
1488
|
}), m(x);
|
1489
1489
|
},
|
1490
1490
|
onCancelClick: () => {
|
1491
|
-
m(
|
1491
|
+
m(Pa(e, r)), f();
|
1492
1492
|
},
|
1493
1493
|
onConnectAccountClick: a,
|
1494
1494
|
onFilterClick: () => {
|
@@ -2253,7 +2253,7 @@ const bu = ({
|
|
2253
2253
|
if (!n)
|
2254
2254
|
throw new Error(`${e}() must be used within the GlobalDataContext`);
|
2255
2255
|
return n;
|
2256
|
-
}, ve = () => je("useAccountStore").globalStore.accountStore,
|
2256
|
+
}, ve = () => je("useAccountStore").globalStore.accountStore, Ca = () => je("useAppConfig").globalStore.appDataStore.appConfig, fr = () => je("useAnalyticsStore").globalStore.analyticsStore, st = () => je("useBudgetsStore").globalStore.budgetsStore, br = () => je("useCashflowStore").globalStore.cashflowStore, We = () => je("useCategoryStore").globalStore.categoryStore, Ys = () => je("useConnectStore").globalStore.connectStore, fa = () => je("useDebtsStore").globalStore.debtsStore, ba = () => je("useGlobalStore").globalStore, ce = () => je("useGlobalUiStore").globalStore.globalUiStore, I = () => je("globalCopyStore").globalStore.copyStore.copy, nt = () => je("useGoalStore").globalStore.goalStore, yr = () => je("useHelpStore").globalStore.helpStore, js = () => je("useHoldingStore").globalStore.holdingStore, Nu = () => je("useMerchantStore").globalStore.merchantStore, Du = () => je("useNetWorthStore").globalStore.netWorthStore, Xs = () => je("useNotificationStore").globalStore.notificationStore, Qe = () => je("useRecurringActivityStore").globalStore.recurringActivityStore, Pt = () => je("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, Bt = () => je("useSettingsStore").globalStore.settingsStore, Ce = () => je("useTransactionStore").globalStore.transactionStore, dn = () => je("useUserStore").globalStore.userStore, V = () => ({ onEvent: je().onEvent }), lE = () => ({ onPageView: je().onPageView }), Ru = (e = "useWidgetContainerContext") => {
|
2257
2257
|
const n = g.useContext(Ks);
|
2258
2258
|
if (!n)
|
2259
2259
|
throw new Error(`${e}() must be used within the WidgetContainerContext`);
|
@@ -2459,19 +2459,19 @@ const bu = ({
|
|
2459
2459
|
}, ct = () => {
|
2460
2460
|
const se = $e(String(E)).guid;
|
2461
2461
|
se && a?.(se);
|
2462
|
-
},
|
2463
|
-
const Be = String(se?.seriesId), Fe = $e(Be).guid, _n = Pe.find((di) => di.id === Be),
|
2464
|
-
if (
|
2462
|
+
}, Re = (se) => {
|
2463
|
+
const Be = String(se?.seriesId), Fe = $e(Be).guid, _n = Pe.find((di) => di.id === Be), Ra = _n && se?.dataIndex !== void 0, Oa = _n && se?.dataIndex === void 0;
|
2464
|
+
if (Ra)
|
2465
2465
|
f({
|
2466
2466
|
hoveredSeriesId: Be,
|
2467
2467
|
hoveredAreaData: null,
|
2468
2468
|
isAreaHovered: !1,
|
2469
2469
|
cursorPos: x
|
2470
2470
|
}), n?.(Fe);
|
2471
|
-
else if (
|
2472
|
-
const di = _n?.data.map((
|
2473
|
-
x: H[
|
2474
|
-
y:
|
2471
|
+
else if (Oa) {
|
2472
|
+
const di = _n?.data.map((La, Ma) => ({
|
2473
|
+
x: H[Ma],
|
2474
|
+
y: La
|
2475
2475
|
})) ?? [];
|
2476
2476
|
f({
|
2477
2477
|
hoveredSeriesId: Be,
|
@@ -2531,7 +2531,7 @@ const bu = ({
|
|
2531
2531
|
height: s || 400,
|
2532
2532
|
margin: { bottom: 50 },
|
2533
2533
|
onAreaClick: ct,
|
2534
|
-
onHighlightChange:
|
2534
|
+
onHighlightChange: Re,
|
2535
2535
|
series: Pe,
|
2536
2536
|
skipAnimation: !0,
|
2537
2537
|
slotProps: {
|
@@ -2818,7 +2818,7 @@ const bu = ({
|
|
2818
2818
|
if (m === i.dateRangePickerCopy.dateRangeThisMonth)
|
2819
2819
|
Z[0] = Se ? jt(we, 1) : gt(we, 1), Z[1] = ze(Se ? jt(re, 1) : gt(re, 1));
|
2820
2820
|
else if (m === i.dateRangePickerCopy.dateRangeYTD || m === i.dateRangePickerCopy.dateRangeLastYear)
|
2821
|
-
Z[0] = Se ?
|
2821
|
+
Z[0] = Se ? Xa(Xr(we), 1) : ei(Xr(we), 1), Z[1] = Se ? Xa(jr(we), 1) : ei(jr(we), 1);
|
2822
2822
|
else {
|
2823
2823
|
const Pe = Bl(re, we);
|
2824
2824
|
Z[0] = W === "previous" ? dt(we, Pe) : Lt(we, Pe), Z[1] = W === "previous" ? dt(re, Pe) : Lt(re, Pe);
|
@@ -2924,7 +2924,7 @@ const bu = ({
|
|
2924
2924
|
}
|
2925
2925
|
),
|
2926
2926
|
s === "timeframebuttons" && /* @__PURE__ */ t(
|
2927
|
-
|
2927
|
+
sr,
|
2928
2928
|
{
|
2929
2929
|
color: n,
|
2930
2930
|
exclusive: !0,
|
@@ -3222,7 +3222,7 @@ const Dn = ({
|
|
3222
3222
|
}, ue = ({ height: e = 250, label: n = "", size: i = 32 }) => {
|
3223
3223
|
const a = Ct();
|
3224
3224
|
return /* @__PURE__ */ l(y, { alignItems: "center", gap: a.Spacing.XLarge, height: e, justifyContent: "center", children: [
|
3225
|
-
/* @__PURE__ */ t(
|
3225
|
+
/* @__PURE__ */ t(cr, { size: i }),
|
3226
3226
|
n && /* @__PURE__ */ t(p, { children: n })
|
3227
3227
|
] });
|
3228
3228
|
}, $u = ({
|
@@ -3400,7 +3400,7 @@ const Dn = ({
|
|
3400
3400
|
width: "100%"
|
3401
3401
|
},
|
3402
3402
|
children: /* @__PURE__ */ l(y, { alignItems: "center", direction: "column", justifyContent: "center", sx: { height: "100%" }, children: [
|
3403
|
-
e === Gn.Loading && /* @__PURE__ */ t(
|
3403
|
+
e === Gn.Loading && /* @__PURE__ */ t(cr, { color: "primary", size: 48 }),
|
3404
3404
|
/* @__PURE__ */ t(
|
3405
3405
|
p,
|
3406
3406
|
{
|
@@ -3508,8 +3508,8 @@ const mo = "connect_widget", po = "connections_widget", Wu = ({
|
|
3508
3508
|
An,
|
3509
3509
|
{
|
3510
3510
|
InputProps: {
|
3511
|
-
endAdornment: Pn().includes("fr-ca") ? /* @__PURE__ */ t(
|
3512
|
-
startAdornment: Pn().includes("fr-ca") ? void 0 : /* @__PURE__ */ t(
|
3511
|
+
endAdornment: Pn().includes("fr-ca") ? /* @__PURE__ */ t(De, { children: "$" }) : void 0,
|
3512
|
+
startAdornment: Pn().includes("fr-ca") ? void 0 : /* @__PURE__ */ t(De, { children: "$" })
|
3513
3513
|
},
|
3514
3514
|
"aria-label": n || E.enter_amount,
|
3515
3515
|
className: `mx-cmn-currency-input ${T}`,
|
@@ -3619,7 +3619,7 @@ const mo = "connect_widget", po = "connections_widget", Wu = ({
|
|
3619
3619
|
py: 4,
|
3620
3620
|
sx: { "&:hover": { borderColor: o.palette.action.active }, ...i },
|
3621
3621
|
children: /* @__PURE__ */ t(oi, { title: a, children: /* @__PURE__ */ t(
|
3622
|
-
|
3622
|
+
ja,
|
3623
3623
|
{
|
3624
3624
|
control: /* @__PURE__ */ t(
|
3625
3625
|
id,
|
@@ -3734,7 +3734,7 @@ const mo = "connect_widget", po = "connections_widget", Wu = ({
|
|
3734
3734
|
)
|
3735
3735
|
}
|
3736
3736
|
), Js = ({ description: e, label: n, title: i }) => {
|
3737
|
-
const { config: a } =
|
3737
|
+
const { config: a } = Ca(), [r, o] = g.useState(!1);
|
3738
3738
|
if (a.show_connections_widget_in_master)
|
3739
3739
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
3740
3740
|
/* @__PURE__ */ l(kt, { sx: { m: 24 }, children: [
|
@@ -3898,7 +3898,7 @@ const mo = "connect_widget", po = "connections_widget", Wu = ({
|
|
3898
3898
|
children: e
|
3899
3899
|
}
|
3900
3900
|
);
|
3901
|
-
},
|
3901
|
+
}, Qa = ({
|
3902
3902
|
isChecked: e,
|
3903
3903
|
isDisabled: n = !1,
|
3904
3904
|
onClick: i,
|
@@ -4189,10 +4189,10 @@ const bo = (e, n) => !e && !n ? 0 : !e && n ? 101 : n / e * 100, yo = (e, n) =>
|
|
4189
4189
|
});
|
4190
4190
|
}
|
4191
4191
|
return r;
|
4192
|
-
},
|
4193
|
-
const a =
|
4192
|
+
}, Ja = (e, n) => e.find((i) => i.guid === n), Ju = (e, n, i) => {
|
4193
|
+
const a = Ja(e, i);
|
4194
4194
|
if (a)
|
4195
|
-
return
|
4195
|
+
return Ja(a.subBudgets, n);
|
4196
4196
|
};
|
4197
4197
|
class e_ {
|
4198
4198
|
api = new fo("/", "");
|
@@ -4213,7 +4213,7 @@ class e_ {
|
|
4213
4213
|
(n) => {
|
4214
4214
|
if (n) {
|
4215
4215
|
const i = this.selectedBudget;
|
4216
|
-
i && (this.selectedBudget =
|
4216
|
+
i && (this.selectedBudget = Ja(n, i.guid));
|
4217
4217
|
const a = this.selectedSubBudget;
|
4218
4218
|
a && a.parent_guid && (this.selectedSubBudget = Ju(
|
4219
4219
|
n,
|
@@ -4370,7 +4370,7 @@ const li = () => {
|
|
4370
4370
|
children: [
|
4371
4371
|
/* @__PURE__ */ l(y, { pb: 14, pt: 12, children: [
|
4372
4372
|
/* @__PURE__ */ t(Ue, { amount: x, variant: "H2" }),
|
4373
|
-
/* @__PURE__ */ t(
|
4373
|
+
/* @__PURE__ */ t(De, { variant: "XSmall", whiteSpace: "nowrap", children: S(
|
4374
4374
|
c.total_cash_accounts,
|
4375
4375
|
h.length
|
4376
4376
|
) })
|
@@ -4378,19 +4378,19 @@ const li = () => {
|
|
4378
4378
|
/* @__PURE__ */ t(y, { pt: 18, children: /* @__PURE__ */ t(B, { name: "remove" }) }),
|
4379
4379
|
/* @__PURE__ */ l(y, { pb: 14, pt: 12, children: [
|
4380
4380
|
/* @__PURE__ */ t(Ue, { amount: w, variant: "H2" }),
|
4381
|
-
/* @__PURE__ */ t(
|
4381
|
+
/* @__PURE__ */ t(De, { variant: "XSmall", whiteSpace: "nowrap", children: S(c.expenses_due, u.length) })
|
4382
4382
|
] }),
|
4383
4383
|
/* @__PURE__ */ t(y, { pt: 18, children: /* @__PURE__ */ t(B, { name: "equals" }) }),
|
4384
4384
|
/* @__PURE__ */ l(y, { pb: 14, pr: 24, pt: 12, children: [
|
4385
4385
|
/* @__PURE__ */ t(Ue, { amount: v, variant: "H2" }),
|
4386
4386
|
/* @__PURE__ */ l(y, { alignItems: "center", direction: "row", gap: 8, children: [
|
4387
|
-
/* @__PURE__ */ t(
|
4387
|
+
/* @__PURE__ */ t(De, { variant: "XSmall", whiteSpace: "nowrap", children: c.available_to_spend }),
|
4388
4388
|
/* @__PURE__ */ t(Qi, { body: c.tooltip_body, title: c.tooltip_title })
|
4389
4389
|
] })
|
4390
4390
|
] }),
|
4391
4391
|
/* @__PURE__ */ t(y, { borderLeft: `1px solid ${n.palette.border.light}`, pb: 12, pl: 24, pt: 12, children: R ? /* @__PURE__ */ l(j, { children: [
|
4392
4392
|
/* @__PURE__ */ t(p, { variant: "H2", children: S(c.days, _) }),
|
4393
|
-
/* @__PURE__ */ t(
|
4393
|
+
/* @__PURE__ */ t(De, { variant: "XSmall", whiteSpace: "nowrap", children: c.next_paycheck })
|
4394
4394
|
] }) : /* @__PURE__ */ t(
|
4395
4395
|
J,
|
4396
4396
|
{
|
@@ -4905,7 +4905,7 @@ const r_ = [
|
|
4905
4905
|
category: be.TRANSACTIONS_WIDGET,
|
4906
4906
|
label: ye.DELETE_TRANSACTION
|
4907
4907
|
}
|
4908
|
-
}, c_ = async (e, n) => !n || !Eo[e] ? null : n.sendAnalyticEvent(Eo[e]),
|
4908
|
+
}, c_ = async (e, n) => !n || !Eo[e] ? null : n.sendAnalyticEvent(Eo[e]), er = {
|
4909
4909
|
FLAG: "flag",
|
4910
4910
|
DATE: "date",
|
4911
4911
|
PAYEE: "payee",
|
@@ -4925,25 +4925,25 @@ const r_ = [
|
|
4925
4925
|
custom: o = () => !0,
|
4926
4926
|
searchTerm: s = ""
|
4927
4927
|
} = e;
|
4928
|
-
return i.filter((c) => !c.parent_guid).filter((c) => !!a.find((d) => d === c.account_guid)).filter((c) => c.date >
|
4928
|
+
return i.filter((c) => !c.parent_guid).filter((c) => !!a.find((d) => d === c.account_guid)).filter((c) => c.date > Ne(r.start) && c.date < Ne(r.end)).filter(o).filter((c) => {
|
4929
4929
|
if (s === l_ && c.has_been_split)
|
4930
4930
|
return !1;
|
4931
4931
|
if (/^spl/i.test(s) && (c.has_been_split || c.parent_guid))
|
4932
4932
|
return !0;
|
4933
4933
|
const _ = c.tags.some(
|
4934
4934
|
(h) => Ft(s, n.find((m) => m.guid === h)?.name)
|
4935
|
-
), u =
|
4935
|
+
), u = Oe(c.date);
|
4936
4936
|
return Ft(s, c.payee) || Ft(s, c.feed_description) || Ft(s, c.category) || Ft(s, ne(u, ee.MONTH)) || Ft(s, ne(u, ee.DAY)) || Ft(s, ne(u, ee.FULL_MONTH_DAY)) || Ft(s, ne(u, ee.MONTH_DAY_YEAR)) || Ft(s, It(u, Ln)) || Ft(s, c.account) || Ft(s, `${c.amount}`) || Ft(s, c.memo) || _;
|
4937
4937
|
});
|
4938
4938
|
}, __ = (e, n, i) => [...e].sort((a, r) => {
|
4939
4939
|
const o = n, s = (a[o] || "") > (r[o] || "");
|
4940
4940
|
let c = s ? -1 : 1, d = s ? 1 : -1;
|
4941
|
-
return (n ===
|
4941
|
+
return (n === er.DATE || n === er.AMOUNT) && (c = s ? 1 : -1, d = s ? -1 : 1), i === ec.ASC ? c : d;
|
4942
4942
|
}), Ft = (e, n) => {
|
4943
4943
|
const i = e.toLowerCase().split(" "), a = n?.toString().toLowerCase() ?? "";
|
4944
4944
|
return i.every((r) => a.indexOf(r) > -1);
|
4945
4945
|
};
|
4946
|
-
var Xe = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Xe || {}), Ze = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(Ze || {}), h_ = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(h_ || {}), g_ = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(g_ || {}), m_ = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(m_ || {}), U = /* @__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))(U || {}),
|
4946
|
+
var Xe = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Xe || {}), Ze = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(Ze || {}), h_ = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(h_ || {}), g_ = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(g_ || {}), m_ = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(m_ || {}), U = /* @__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))(U || {}), tr = /* @__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))(tr || {}), At = /* @__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))(At || {}), Ve = /* @__PURE__ */ ((e) => (e[e.BudgetExceeded = 1] = "BudgetExceeded", e[e.BudgetOffTarget = 2] = "BudgetOffTarget", e[e.DebtPaymentReminder = 3] = "DebtPaymentReminder", e[e.AccountBalanceLow = 6] = "AccountBalanceLow", e[e.AccountDepositLarge = 7] = "AccountDepositLarge", e[e.TransactionExpenseLarge = 8] = "TransactionExpenseLarge", e[e.TransactionFeeCharge = 9] = "TransactionFeeCharge", e[e.InternationalTransaction = 23] = "InternationalTransaction", e))(Ve || {}), bt = /* @__PURE__ */ ((e) => (e[e.CREDIT = 1] = "CREDIT", e[e.DEBIT = 2] = "DEBIT", e))(bt || {}), Sr = /* @__PURE__ */ ((e) => (e[e.POSTED = 1] = "POSTED", e[e.PENDING = 2] = "PENDING", e))(Sr || {}), p_ = /* @__PURE__ */ ((e) => (e.Desktop = "Desktop", e.Mobile = "Mobile", e))(p_ || {}), Ae = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.EveryWeek = 1] = "EveryWeek", e[e.EveryOtherWeek = 2] = "EveryOtherWeek", e[e.EveryMonth = 3] = "EveryMonth", e[e.EveryOtherMonth = 4] = "EveryOtherMonth", e[e.EveryQuarter = 5] = "EveryQuarter", e[e.EveryOtherQuarter = 6] = "EveryOtherQuarter", e[e.EveryYear = 7] = "EveryYear", e))(Ae || {}), Je = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(Je || {}), Yt = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Yt || {}), on = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e[e.Income = 3] = "Income", e[e.Transfer = 4] = "Transfer", e))(on || {});
|
4947
4947
|
const tc = {
|
4948
4948
|
account_guid: "",
|
4949
4949
|
amount: 0,
|
@@ -5023,7 +5023,7 @@ class f_ {
|
|
5023
5023
|
transactions = [];
|
5024
5024
|
associatedBeats = [];
|
5025
5025
|
cachedStartDate = dt(le(), 90);
|
5026
|
-
sortColumn =
|
5026
|
+
sortColumn = er.DATE;
|
5027
5027
|
sortDirection = ec.DESC;
|
5028
5028
|
filter = {};
|
5029
5029
|
onAnalyticEvent = c_;
|
@@ -5107,8 +5107,8 @@ class f_ {
|
|
5107
5107
|
this.setIsLoading(!0), this.transactions = [];
|
5108
5108
|
try {
|
5109
5109
|
const a = await this.api.getTransactionsByDateRange(
|
5110
|
-
|
5111
|
-
|
5110
|
+
Ne(n),
|
5111
|
+
Ne(i)
|
5112
5112
|
);
|
5113
5113
|
K(() => {
|
5114
5114
|
this.transactions = this.augmentTransactions(a);
|
@@ -5122,7 +5122,7 @@ class f_ {
|
|
5122
5122
|
loadTransactionsByDateRange = async (n, i) => {
|
5123
5123
|
console.warn("DEPRECATED: loadTransactionsByDateRange will be removed"), this.setFilter({
|
5124
5124
|
...this.filter,
|
5125
|
-
dateRange: { start:
|
5125
|
+
dateRange: { start: Oe(i), end: Oe(n) }
|
5126
5126
|
});
|
5127
5127
|
};
|
5128
5128
|
modifyTransactionByAccountGuid = (n, i) => {
|
@@ -5219,12 +5219,12 @@ const St = () => {
|
|
5219
5219
|
const i = y_(b_(e, n)), a = encodeURIComponent(i), r = document.createElement("a");
|
5220
5220
|
r.href = `data:attachment/csv;charset=utf-8,${a}`, r.download = "transactions.csv", document.body.appendChild(r), r.click(), document.body.removeChild(r);
|
5221
5221
|
}, b_ = (e, n) => e.map((i) => ({
|
5222
|
-
Date: ne(
|
5222
|
+
Date: ne(Oe(i.date), ee.YEAR_MONTH_DAY),
|
5223
5223
|
Description: E_(i),
|
5224
5224
|
"Original Description": i.feed_description,
|
5225
5225
|
Amount: `${i.amount}`,
|
5226
5226
|
Type: i.transaction_type === bt.CREDIT ? "Credit" : "Debit",
|
5227
|
-
"Parent Category":
|
5227
|
+
"Parent Category": ga[i.top_level_category_guid || ""],
|
5228
5228
|
Category: i.category,
|
5229
5229
|
Account: i.account,
|
5230
5230
|
Tags: S_(i, n),
|
@@ -5289,7 +5289,7 @@ const St = () => {
|
|
5289
5289
|
]
|
5290
5290
|
}
|
5291
5291
|
);
|
5292
|
-
},
|
5292
|
+
}, ya = A(T_), Ea = ({
|
5293
5293
|
bgcolor: e = "background.default",
|
5294
5294
|
children: n
|
5295
5295
|
}) => /* @__PURE__ */ t(L, { display: "inline-block", pb: 4, pl: 24, pt: 4, sx: { bgcolor: e, width: "100%" }, children: /* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: n }) }), A_ = ({ showIcon: e = !0, showSubtitle: n = !0 }) => {
|
@@ -5300,10 +5300,10 @@ const St = () => {
|
|
5300
5300
|
n && /* @__PURE__ */ t(p, { color: "secondary", variant: "XSmall", children: a.zero_state_there_are_no_transactions })
|
5301
5301
|
] });
|
5302
5302
|
}, I_ = A(A_), So = (e, n) => {
|
5303
|
-
const i =
|
5303
|
+
const i = Oe(n[e].date), a = Oe(n[e - 1]?.date);
|
5304
5304
|
return !lt(i, a);
|
5305
5305
|
}, x_ = (e, n) => {
|
5306
|
-
const i =
|
5306
|
+
const i = Oe(n[e].date), a = Oe(n[e + 1]?.date);
|
5307
5307
|
return lt(i, a);
|
5308
5308
|
}, To = 65, Ao = 34, v_ = ({
|
5309
5309
|
bgcolor: e,
|
@@ -5356,8 +5356,8 @@ const St = () => {
|
|
5356
5356
|
width: "100%"
|
5357
5357
|
},
|
5358
5358
|
children: [
|
5359
|
-
v && /* @__PURE__ */ t(
|
5360
|
-
/* @__PURE__ */ t(
|
5359
|
+
v && /* @__PURE__ */ t(Ea, { bgcolor: e, children: Oi(w.date) }),
|
5360
|
+
/* @__PURE__ */ t(ya, { onClick: E, transaction: w }),
|
5361
5361
|
/* @__PURE__ */ t(k, { sx: { ml: R ? 24 : 0 } })
|
5362
5362
|
]
|
5363
5363
|
},
|
@@ -5398,7 +5398,7 @@ const St = () => {
|
|
5398
5398
|
]
|
5399
5399
|
}
|
5400
5400
|
);
|
5401
|
-
}, R_ = A(D_), O_ = (e) => /* @__PURE__ */ t(p, { tabIndex: e.tabIndex, variant: "Small", children: ne(
|
5401
|
+
}, R_ = A(D_), O_ = (e) => /* @__PURE__ */ t(p, { tabIndex: e.tabIndex, variant: "Small", children: ne(Oe(e.row.date), ee.MONTH_DAY) }), L_ = (e) => {
|
5402
5402
|
const n = et(), { transactions: i } = I(), { is_flagged: a, is_hidden: r, has_been_viewed: o, parent_guid: s } = e.row, d = !o && !!!s;
|
5403
5403
|
return /* @__PURE__ */ l(
|
5404
5404
|
L,
|
@@ -5537,7 +5537,7 @@ const St = () => {
|
|
5537
5537
|
ON_SUBCATEGORY_DELETED: "onSubcategoryDeleted",
|
5538
5538
|
ON_SUBCATEGORY_SAVED: "onSubcategorySaved"
|
5539
5539
|
};
|
5540
|
-
var
|
5540
|
+
var Sa = /* @__PURE__ */ ((e) => (e.ADD = "add", e.EDIT = "edit", e.DELETE = "delete", e))(Sa || {});
|
5541
5541
|
const B_ = ({
|
5542
5542
|
categoryName: e = "",
|
5543
5543
|
onClose: n,
|
@@ -5611,7 +5611,7 @@ const B_ = ({
|
|
5611
5611
|
isOpen: n,
|
5612
5612
|
onClose: _,
|
5613
5613
|
onSave: c,
|
5614
|
-
type:
|
5614
|
+
type: Sa.ADD
|
5615
5615
|
}
|
5616
5616
|
)
|
5617
5617
|
] });
|
@@ -5632,7 +5632,7 @@ const B_ = ({
|
|
5632
5632
|
isOpen: i,
|
5633
5633
|
onClose: s,
|
5634
5634
|
onSave: o,
|
5635
|
-
type:
|
5635
|
+
type: Sa.EDIT
|
5636
5636
|
}
|
5637
5637
|
);
|
5638
5638
|
}, W_ = A(F_), U_ = ({
|
@@ -5653,7 +5653,7 @@ const B_ = ({
|
|
5653
5653
|
isOpen: n,
|
5654
5654
|
onClose: s,
|
5655
5655
|
onSave: c,
|
5656
|
-
type:
|
5656
|
+
type: Sa.DELETE
|
5657
5657
|
}
|
5658
5658
|
);
|
5659
5659
|
}, V_ = A(U_), K_ = ({ parentCategory: e, subCategory: n }) => {
|
@@ -5691,7 +5691,7 @@ const B_ = ({
|
|
5691
5691
|
primaryTypographyProps: { fontWeight: "normal", variant: "Body" }
|
5692
5692
|
}
|
5693
5693
|
),
|
5694
|
-
s && b && /* @__PURE__ */ t(
|
5694
|
+
s && b && /* @__PURE__ */ t(ua, { fontSize: "small" }),
|
5695
5695
|
!T && /* @__PURE__ */ t(xd, { label: d })
|
5696
5696
|
]
|
5697
5697
|
}
|
@@ -5742,7 +5742,7 @@ const B_ = ({
|
|
5742
5742
|
}, z_ = A(K_), Y_ = ({ categories: e, parentCategory: n }) => {
|
5743
5743
|
const { expandedGuid: i, searchValue: a } = pn(), r = n.guid === i, o = !!a;
|
5744
5744
|
return /* @__PURE__ */ t(
|
5745
|
-
|
5745
|
+
_a,
|
5746
5746
|
{
|
5747
5747
|
in: r || o,
|
5748
5748
|
sx: { backgroundColor: "background.default" },
|
@@ -5877,7 +5877,7 @@ const B_ = ({
|
|
5877
5877
|
children: /* @__PURE__ */ t(J_, { ...r })
|
5878
5878
|
}
|
5879
5879
|
) : /* @__PURE__ */ t(ue, {});
|
5880
|
-
},
|
5880
|
+
}, Ta = A(eh), th = 3, Io = 12, nh = (e, n, i) => e.filter((a) => !a.parent_guid).map(
|
5881
5881
|
(a) => ac(
|
5882
5882
|
a,
|
5883
5883
|
n,
|
@@ -6011,8 +6011,8 @@ class ah {
|
|
6011
6011
|
this.setIsLoadingCategoryTotals(!0);
|
6012
6012
|
try {
|
6013
6013
|
const r = await this.api.getDateRangeCategoryTotals(
|
6014
|
-
|
6015
|
-
|
6014
|
+
Ne(i),
|
6015
|
+
Ne(a),
|
6016
6016
|
n
|
6017
6017
|
);
|
6018
6018
|
K(() => {
|
@@ -6023,7 +6023,7 @@ class ah {
|
|
6023
6023
|
}
|
6024
6024
|
};
|
6025
6025
|
loadMonthlyCategoryTotals = async (n = this.globalStore.globalUiStore.selectedAccounts, i, a) => {
|
6026
|
-
const r =
|
6026
|
+
const r = Ne(He(i ?? jt(/* @__PURE__ */ new Date(), 11))), o = Ne(ze(a ?? /* @__PURE__ */ new Date()));
|
6027
6027
|
try {
|
6028
6028
|
const s = await this.api.getMonthlyCategoryTotals(r, o, n);
|
6029
6029
|
K(() => {
|
@@ -6037,12 +6037,12 @@ class ah {
|
|
6037
6037
|
this.setIsLoadingCategoryTotals(!0);
|
6038
6038
|
try {
|
6039
6039
|
const r = await this.api.getDateRangeCategoryTotals(
|
6040
|
-
|
6041
|
-
|
6040
|
+
Ne(i),
|
6041
|
+
Ne(a),
|
6042
6042
|
n
|
6043
6043
|
), o = await this.api.getMonthlyCategoryTotals(
|
6044
|
-
|
6045
|
-
|
6044
|
+
Ne(He(jt(a, 11))),
|
6045
|
+
Ne(ze(a)),
|
6046
6046
|
n
|
6047
6047
|
);
|
6048
6048
|
K(() => {
|
@@ -6070,7 +6070,7 @@ class ah {
|
|
6070
6070
|
}
|
6071
6071
|
};
|
6072
6072
|
// TODO: Remove this after refactoring Trends components to use detailedCategories
|
6073
|
-
getCategoryName = (n) => this.categories.find((a) => a.guid === n)?.name ??
|
6073
|
+
getCategoryName = (n) => this.categories.find((a) => a.guid === n)?.name ?? ga[n];
|
6074
6074
|
}
|
6075
6075
|
const rc = ({ transaction: e }) => {
|
6076
6076
|
const { addOrUpdateTransactionRule: n, updateTransaction: i } = Ce(), { categories: a } = We(), { onEvent: r } = V(), { setShouldDisableDrawerScroll: o, updateManualTransaction: s } = St(), { transactions: c } = I(), [d, _] = g.useState(!1), [u, h] = g.useState(""), m = async (b) => {
|
@@ -6125,7 +6125,7 @@ const rc = ({ transaction: e }) => {
|
|
6125
6125
|
}
|
6126
6126
|
) }),
|
6127
6127
|
/* @__PURE__ */ t(
|
6128
|
-
|
6128
|
+
Ta,
|
6129
6129
|
{
|
6130
6130
|
initialSelected: e.category_guid,
|
6131
6131
|
onClose: f,
|
@@ -6159,7 +6159,7 @@ const rc = ({ transaction: e }) => {
|
|
6159
6159
|
] });
|
6160
6160
|
}, oc = ({ transaction: e }) => {
|
6161
6161
|
const n = Ct(), { onEvent: i } = V(), { updateTransaction: a } = Ce(), { updateManualTransaction: r } = St(), { common: o, transactions: s } = I(), [c, d] = g.useState(!1), [_, u] = g.useState(e.date), h = (C) => {
|
6162
|
-
u(
|
6162
|
+
u(Ne(C));
|
6163
6163
|
}, m = async () => {
|
6164
6164
|
if (e.is_manual && !e.guid) {
|
6165
6165
|
r({ ...e, date: _ }), d(!1);
|
@@ -6181,7 +6181,7 @@ const rc = ({ transaction: e }) => {
|
|
6181
6181
|
{
|
6182
6182
|
primary: s.date_title,
|
6183
6183
|
primaryTypographyProps: { variant: "XSmall" },
|
6184
|
-
secondary: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: ne(
|
6184
|
+
secondary: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: ne(Oe(e.date), ee.YEAR_MONTH_DAY) })
|
6185
6185
|
}
|
6186
6186
|
),
|
6187
6187
|
/* @__PURE__ */ t(pt, { children: /* @__PURE__ */ t(B, { name: "chevron_right", weight: ft.Dark }) })
|
@@ -6201,7 +6201,7 @@ const rc = ({ transaction: e }) => {
|
|
6201
6201
|
children: /* @__PURE__ */ t(y, { alignItems: "center", mt: n.Spacing.XXLarge, children: /* @__PURE__ */ t(
|
6202
6202
|
bu,
|
6203
6203
|
{
|
6204
|
-
beginDate:
|
6204
|
+
beginDate: Oe(_),
|
6205
6205
|
copy: {
|
6206
6206
|
nextAria: s.date_next_aria,
|
6207
6207
|
prevAria: s.date_prev_aria,
|
@@ -6540,7 +6540,7 @@ const rc = ({ transaction: e }) => {
|
|
6540
6540
|
] }) })
|
6541
6541
|
] }),
|
6542
6542
|
/* @__PURE__ */ t(
|
6543
|
-
|
6543
|
+
Ta,
|
6544
6544
|
{
|
6545
6545
|
initialSelected: r.category_guid,
|
6546
6546
|
onClose: () => h(!1),
|
@@ -6784,7 +6784,7 @@ const rc = ({ transaction: e }) => {
|
|
6784
6784
|
value: s
|
6785
6785
|
}
|
6786
6786
|
),
|
6787
|
-
/* @__PURE__ */ t(
|
6787
|
+
/* @__PURE__ */ t(De, { id: "add-tag-error", sx: { color: "error.main" }, variant: "ParagraphSmall", children: d })
|
6788
6788
|
]
|
6789
6789
|
}
|
6790
6790
|
)
|
@@ -6887,7 +6887,7 @@ const rc = ({ transaction: e }) => {
|
|
6887
6887
|
value: m
|
6888
6888
|
}
|
6889
6889
|
),
|
6890
|
-
/* @__PURE__ */ t(
|
6890
|
+
/* @__PURE__ */ t(De, { id: "update-tag-error", sx: { color: "error.main" }, variant: "ParagraphSmall", children: f })
|
6891
6891
|
]
|
6892
6892
|
}
|
6893
6893
|
),
|
@@ -7219,7 +7219,7 @@ const rc = ({ transaction: e }) => {
|
|
7219
7219
|
placeholder: i.manual_transaction_select,
|
7220
7220
|
select: !0,
|
7221
7221
|
sx: { bgcolor: "background.paper" },
|
7222
|
-
children: u.map((b) => /* @__PURE__ */ t(
|
7222
|
+
children: u.map((b) => /* @__PURE__ */ t(da, { value: b.value, children: b.label }, b.value))
|
7223
7223
|
}
|
7224
7224
|
)
|
7225
7225
|
] }),
|
@@ -7240,7 +7240,7 @@ const rc = ({ transaction: e }) => {
|
|
7240
7240
|
};
|
7241
7241
|
return /* @__PURE__ */ l(L, { className: "mx-txn-edit-category-action", children: [
|
7242
7242
|
/* @__PURE__ */ t(
|
7243
|
-
|
7243
|
+
Ta,
|
7244
7244
|
{
|
7245
7245
|
initialSelected: n.category_guid,
|
7246
7246
|
onClose: e,
|
@@ -7301,15 +7301,15 @@ const rc = ({ transaction: e }) => {
|
|
7301
7301
|
selectedAccounts: we,
|
7302
7302
|
setDisplayedDate: re,
|
7303
7303
|
setSelectedAccounts: Se
|
7304
|
-
} = ce(), [Pe, _e] = g.useState(""), [$e, it] = g.useState(""), [$t, ct] = g.useState(!1), [
|
7304
|
+
} = ce(), [Pe, _e] = g.useState(""), [$e, it] = g.useState(""), [$t, ct] = g.useState(!1), [Re, ut] = g.useState(!1), [un, se] = g.useState(!1);
|
7305
7305
|
g.useEffect(() => {
|
7306
7306
|
Se(r);
|
7307
7307
|
}, [r]), g.useEffect(() => {
|
7308
7308
|
const at = He(le()), Wr = ze(le());
|
7309
7309
|
re(at, Wr), T({
|
7310
7310
|
dateRange: { start: at, end: Wr },
|
7311
|
-
accounts: we.map((
|
7312
|
-
custom: (
|
7311
|
+
accounts: we.map((ka) => ka.guid),
|
7312
|
+
custom: (ka) => !ka.accountIsClosed
|
7313
7313
|
}), se(!0), O(F.TRANSACTIONS_VIEW);
|
7314
7314
|
}, []), g.useEffect(() => {
|
7315
7315
|
un && (T({
|
@@ -7323,25 +7323,25 @@ const rc = ({ transaction: e }) => {
|
|
7323
7323
|
const Be = g.useMemo(
|
7324
7324
|
() => r.filter((at) => at.is_manual),
|
7325
7325
|
[r]
|
7326
|
-
), Fe = $e ? w.find((at) => at.guid === $e) : void 0, _n = _ && !!d.payee && !!d.account_guid && !!d.category_guid,
|
7326
|
+
), Fe = $e ? w.find((at) => at.guid === $e) : void 0, _n = _ && !!d.payee && !!d.account_guid && !!d.category_guid, Ra = (at) => {
|
7327
7327
|
re(at[0], at[1]);
|
7328
|
-
},
|
7328
|
+
}, Oa = (at) => {
|
7329
7329
|
h(at), T({
|
7330
7330
|
...E,
|
7331
7331
|
searchTerm: at
|
7332
7332
|
}), O(F.TRANSACTIONS_CLICK_SEARCH, { search_term: at });
|
7333
7333
|
}, di = () => {
|
7334
7334
|
nc(w, x), O(F.TRANSACTIONS_CLICK_EXPORT);
|
7335
|
-
},
|
7335
|
+
}, La = () => {
|
7336
7336
|
Be.length > 0 ? (C({
|
7337
7337
|
...tc,
|
7338
|
-
date:
|
7338
|
+
date: Ne(le()),
|
7339
7339
|
user_guid: H?.user_guid || ""
|
7340
7340
|
}), _e(
|
7341
7341
|
"addTransaction"
|
7342
7342
|
/* AddTransaction */
|
7343
7343
|
), O(F.TRANSACTIONS_CLICK_ADD)) : (ct(!0), O(F.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
|
7344
|
-
},
|
7344
|
+
}, Ma = async () => {
|
7345
7345
|
_n && await f(d), _e("");
|
7346
7346
|
}, tl = () => {
|
7347
7347
|
ct(!1), ut(!0);
|
@@ -7363,11 +7363,11 @@ const rc = ({ transaction: e }) => {
|
|
7363
7363
|
{
|
7364
7364
|
iconName: "add",
|
7365
7365
|
label: D.add_transaction_btn,
|
7366
|
-
onClick:
|
7366
|
+
onClick: La
|
7367
7367
|
}
|
7368
7368
|
],
|
7369
7369
|
calendarActions: {
|
7370
|
-
onRangeChanged:
|
7370
|
+
onRangeChanged: Ra
|
7371
7371
|
},
|
7372
7372
|
onAccountsFilterClick: () => O(F.ACCOUNTS_CLICK_FILTER),
|
7373
7373
|
onBackClick: e,
|
@@ -7377,7 +7377,7 @@ const rc = ({ transaction: e }) => {
|
|
7377
7377
|
/* @__PURE__ */ t(L, { mt: 16, children: /* @__PURE__ */ t(
|
7378
7378
|
Mi,
|
7379
7379
|
{
|
7380
|
-
onChange:
|
7380
|
+
onChange: Oa,
|
7381
7381
|
placeholder: D.action_bar_search_placeholder,
|
7382
7382
|
searchValue: u
|
7383
7383
|
}
|
@@ -7458,7 +7458,7 @@ const rc = ({ transaction: e }) => {
|
|
7458
7458
|
isOpen: Pe === "addTransaction",
|
7459
7459
|
isPrimaryDisabled: !_n,
|
7460
7460
|
onClose: () => _e(""),
|
7461
|
-
onPrimaryAction:
|
7461
|
+
onPrimaryAction: Ma,
|
7462
7462
|
title: D.add_transaction_title,
|
7463
7463
|
children: /* @__PURE__ */ t(kh, {})
|
7464
7464
|
}
|
@@ -7478,7 +7478,7 @@ const rc = ({ transaction: e }) => {
|
|
7478
7478
|
Li,
|
7479
7479
|
{
|
7480
7480
|
onClose: nl,
|
7481
|
-
showConnectWidget:
|
7481
|
+
showConnectWidget: Re,
|
7482
7482
|
title: D.add_manual_account
|
7483
7483
|
}
|
7484
7484
|
)
|
@@ -7492,7 +7492,7 @@ const rc = ({ transaction: e }) => {
|
|
7492
7492
|
repeat_interval: null,
|
7493
7493
|
repeat_month: null,
|
7494
7494
|
repeat_weekday: null,
|
7495
|
-
start_date:
|
7495
|
+
start_date: Ne(e.expectedDate)
|
7496
7496
|
}, a = `${Qn(e.expectedDate)}`, r = `${Zn(e.expectedDate)}`, o = `${ti(e.expectedDate)}`;
|
7497
7497
|
switch (e.recurrenceType) {
|
7498
7498
|
case q.EveryWeek:
|
@@ -7754,12 +7754,12 @@ const rc = ({ transaction: e }) => {
|
|
7754
7754
|
}
|
7755
7755
|
)
|
7756
7756
|
] });
|
7757
|
-
}, Vh = A(Uh),
|
7757
|
+
}, Vh = A(Uh), Aa = {
|
7758
7758
|
gridRow: 1,
|
7759
7759
|
gridColumn: 1,
|
7760
7760
|
zIndex: 2
|
7761
|
-
},
|
7762
|
-
let a = n &&
|
7761
|
+
}, Ia = (e) => e ? { margin: "0 0 -6px -4px" } : void 0, Ar = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Ia(e) }, children: /* @__PURE__ */ t(Td, { color: "primary", sx: { fontSize: n, ...Aa } }) }), Ir = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Ia(e) }, children: /* @__PURE__ */ t(Ad, { sx: { color: "categories.income", fontSize: n, ...Aa } }) }), xr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Ia(e) }, children: /* @__PURE__ */ t(Yi, { color: "error", sx: { fontSize: n, ...Aa } }) }), vr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Ia(e) }, children: /* @__PURE__ */ t(ua, { color: "success", sx: { fontSize: n, ...Aa } }) }), No = ({ copy: e, date: n, type: i }) => {
|
7762
|
+
let a = n && lr(n) ? S(e.monthly_ordinal, It(n, "do")) : e.monthly;
|
7763
7763
|
switch (i) {
|
7764
7764
|
case q.EveryQuarter:
|
7765
7765
|
a = n ? S(e.quarterly_ordinal, It(n, "do")) : e.quarterly;
|
@@ -7925,7 +7925,7 @@ const rc = ({ transaction: e }) => {
|
|
7925
7925
|
repeat_week: null,
|
7926
7926
|
repeat_weekday: null,
|
7927
7927
|
repeat_year: null,
|
7928
|
-
start_date:
|
7928
|
+
start_date: Ne(i),
|
7929
7929
|
transaction_type: e.transaction_type
|
7930
7930
|
};
|
7931
7931
|
switch (n) {
|
@@ -7988,7 +7988,7 @@ const rc = ({ transaction: e }) => {
|
|
7988
7988
|
}) => {
|
7989
7989
|
const { recurring: r } = I(), { searchValue: o, setSearchValue: s } = St();
|
7990
7990
|
return /* @__PURE__ */ l(y, { sx: { bgcolor: e, gap: 16, pt: 8 }, children: [
|
7991
|
-
n && /* @__PURE__ */ t(
|
7991
|
+
n && /* @__PURE__ */ t(De, { sx: { mx: 24 }, children: n }),
|
7992
7992
|
/* @__PURE__ */ t(
|
7993
7993
|
Mi,
|
7994
7994
|
{
|
@@ -8022,14 +8022,14 @@ const rc = ({ transaction: e }) => {
|
|
8022
8022
|
{ id: q.EveryYear, label: c.frequency_every_year }
|
8023
8023
|
];
|
8024
8024
|
g.useEffect(() => {
|
8025
|
-
const u =
|
8025
|
+
const u = Oe(s.date);
|
8026
8026
|
o(qi(u)), r(q.EveryMonth);
|
8027
8027
|
}, [s]);
|
8028
8028
|
const _ = (u) => {
|
8029
|
-
const h =
|
8029
|
+
const h = Oe(s.date);
|
8030
8030
|
switch (Number(u.target.value)) {
|
8031
8031
|
case q.EveryWeek:
|
8032
|
-
o(
|
8032
|
+
o(ma(h));
|
8033
8033
|
break;
|
8034
8034
|
case q.EveryOtherWeek:
|
8035
8035
|
o(Gs(h));
|
@@ -8054,8 +8054,8 @@ const rc = ({ transaction: e }) => {
|
|
8054
8054
|
};
|
8055
8055
|
return /* @__PURE__ */ l(y, { bgcolor: e, gap: 24, height: "100%", children: [
|
8056
8056
|
/* @__PURE__ */ l(y, { children: [
|
8057
|
-
/* @__PURE__ */ t(
|
8058
|
-
/* @__PURE__ */ t(
|
8057
|
+
/* @__PURE__ */ t(Ea, { bgcolor: e, children: Oi(s.date) }),
|
8058
|
+
/* @__PURE__ */ t(ya, { transaction: s })
|
8059
8059
|
] }),
|
8060
8060
|
/* @__PURE__ */ t(p, { bold: !0, sx: { mx: 24 }, variant: "Body", children: i ? c.income_schedule : c.expense_schedule }),
|
8061
8061
|
/* @__PURE__ */ t(
|
@@ -8072,11 +8072,11 @@ const rc = ({ transaction: e }) => {
|
|
8072
8072
|
sx: { mx: 24 },
|
8073
8073
|
value: n,
|
8074
8074
|
variant: "outlined",
|
8075
|
-
children: d.map((u) => /* @__PURE__ */ t(
|
8075
|
+
children: d.map((u) => /* @__PURE__ */ t(da, { value: u.id, children: u.label }, u.id))
|
8076
8076
|
}
|
8077
8077
|
),
|
8078
8078
|
/* @__PURE__ */ t(Nn, { dateAdapter: gn, children: /* @__PURE__ */ t(
|
8079
|
-
|
8079
|
+
la,
|
8080
8080
|
{
|
8081
8081
|
disablePast: !0,
|
8082
8082
|
label: i ? c.income_date_label : c.expense_date_label,
|
@@ -8199,10 +8199,10 @@ const rc = ({ transaction: e }) => {
|
|
8199
8199
|
] }, d.scheduledPaymentGuid)),
|
8200
8200
|
/* @__PURE__ */ t(Cc, { label: e.add_expense, onAddActivity: c })
|
8201
8201
|
] });
|
8202
|
-
}, eg = A(Jh),
|
8202
|
+
}, eg = A(Jh), nr = (e) => {
|
8203
8203
|
let n = e.user_name || e.feed_name || "";
|
8204
8204
|
return e.account_number && (n = `${n} *${e.account_number}`), n;
|
8205
|
-
},
|
8205
|
+
}, ir = (e) => e ? e.repeat_interval === "1" ? q.EveryWeek : e.repeat_interval === "2" ? q.EveryOtherWeek : e.repeat_day && !e.repeat_month && !e.repeat_interval ? q.EveryMonth : e.repeat_day && e.repeat_interval === "3" ? q.EveryQuarter : e.repeat_day && e.repeat_month ? q.EveryYear : q.Unknown : q.Unknown, tg = (e, n, i, a, r, o) => {
|
8206
8206
|
const s = n.filter((u) => {
|
8207
8207
|
const h = r.find((C) => C.guid === u.cashflow_sequence_guid), m = o.find((C) => C.guid === u.transaction_guid);
|
8208
8208
|
return h?.end_date === null && m;
|
@@ -8217,16 +8217,16 @@ const rc = ({ transaction: e }) => {
|
|
8217
8217
|
expectedDate: Ci(u.expected_date),
|
8218
8218
|
occurredOnDate: u.occurred_on ? Ci(u.occurred_on) : void 0,
|
8219
8219
|
name: u.name,
|
8220
|
-
institution: C ?
|
8220
|
+
institution: C ? nr(C) : void 0,
|
8221
8221
|
institutionGuid: C?.institution_guid,
|
8222
8222
|
merchantGuid: m?.merchant_guid || void 0,
|
8223
|
-
recurrenceType:
|
8223
|
+
recurrenceType: ir(h),
|
8224
8224
|
recurrenceDay: h?.repeat_day ? Number(h?.repeat_day) : void 0,
|
8225
8225
|
sequenceGuid: h?.guid,
|
8226
8226
|
transactionGuid: u.transaction_guid
|
8227
8227
|
};
|
8228
8228
|
}), c = a.filter(
|
8229
|
-
(u) => ni(
|
8229
|
+
(u) => ni(Oe(u.expected_date), {
|
8230
8230
|
start: He(le()),
|
8231
8231
|
end: Lt(le(), 30)
|
8232
8232
|
})
|
@@ -8247,17 +8247,17 @@ const rc = ({ transaction: e }) => {
|
|
8247
8247
|
categoryGuid: u.category_guid,
|
8248
8248
|
expectedDate: Ci(u.expected_date),
|
8249
8249
|
name: u.name,
|
8250
|
-
institution: f ?
|
8250
|
+
institution: f ? nr(f) : void 0,
|
8251
8251
|
institutionGuid: f?.institution_guid,
|
8252
8252
|
merchantGuid: C?.merchant_guid || void 0,
|
8253
|
-
recurrenceType:
|
8253
|
+
recurrenceType: ir(h),
|
8254
8254
|
recurrenceDay: h?.repeat_day ? Number(h?.repeat_day) : void 0,
|
8255
8255
|
sequenceGuid: h?.guid,
|
8256
8256
|
transactionGuid: void 0
|
8257
8257
|
};
|
8258
8258
|
}), d = [];
|
8259
8259
|
return i && i.forEach((u) => d.push(...ng(e, u, o))), [...s, ...c, ...d].sort(
|
8260
|
-
(u, h) =>
|
8260
|
+
(u, h) => Ne(u.occurredOnDate || u.expectedDate) - Ne(h.occurredOnDate || h.expectedDate)
|
8261
8261
|
);
|
8262
8262
|
}, ng = (e, n, i) => {
|
8263
8263
|
const a = [], r = i.find((C) => C.scheduled_payment_guid === n.guid);
|
@@ -8270,7 +8270,7 @@ const rc = ({ transaction: e }) => {
|
|
8270
8270
|
categoryGuid: r?.category_guid,
|
8271
8271
|
expectedDate: s,
|
8272
8272
|
name: n.description,
|
8273
|
-
institution: o ?
|
8273
|
+
institution: o ? nr(o) : void 0,
|
8274
8274
|
institutionGuid: o?.institution_guid,
|
8275
8275
|
merchantGuid: n.merchant_guid,
|
8276
8276
|
recurrenceType: n.recurrence_type,
|
@@ -8358,9 +8358,9 @@ const rc = ({ transaction: e }) => {
|
|
8358
8358
|
}
|
8359
8359
|
return a.forEach((C) => {
|
8360
8360
|
const f = i.find(
|
8361
|
-
(E) => E.scheduled_payment_guid === C.scheduledPaymentGuid && E.date >
|
8361
|
+
(E) => E.scheduled_payment_guid === C.scheduledPaymentGuid && E.date > Ne(dt(C.expectedDate, 3)) && E.date < Ne(Lt(C.expectedDate, 3))
|
8362
8362
|
);
|
8363
|
-
f ? (C.transactionGuid = f.guid, C.occurredOnDate =
|
8363
|
+
f ? (C.transactionGuid = f.guid, C.occurredOnDate = Oe(f.date), C.activityStatus = Ze.Paid) : Te(C.expectedDate, dt(_, 3)) && (C.activityStatus = Ze.Missed);
|
8364
8364
|
}), a;
|
8365
8365
|
}, ig = (e, n, i, a, r) => a.map((o) => {
|
8366
8366
|
const s = n.find((h) => h.cashflow_sequence_guid === o.guid), c = i.find((h) => h.cashflow_sequence_guid === o.guid), d = r.find((h) => h.guid === s?.transaction_guid), _ = e.find((h) => h.guid === d?.account_guid);
|
@@ -8375,7 +8375,7 @@ const rc = ({ transaction: e }) => {
|
|
8375
8375
|
institution: _?.user_name,
|
8376
8376
|
institutionGuid: _?.institution_guid,
|
8377
8377
|
merchantGuid: d?.merchant_guid,
|
8378
|
-
recurrenceType:
|
8378
|
+
recurrenceType: ir(o),
|
8379
8379
|
recurrenceDay: Number(o.repeat_day),
|
8380
8380
|
sequenceGuid: o.guid
|
8381
8381
|
};
|
@@ -8435,13 +8435,13 @@ const rc = ({ transaction: e }) => {
|
|
8435
8435
|
e === 0 && /* @__PURE__ */ t(eg, {}),
|
8436
8436
|
e === 1 && /* @__PURE__ */ t(Nr, {})
|
8437
8437
|
] });
|
8438
|
-
}, fc = A(rg), _i = (e, n) => e + n.amount,
|
8438
|
+
}, fc = A(rg), _i = (e, n) => e + n.amount, Ba = (e) => e.activityType === Xe.Income && ni(e.expectedDate, {
|
8439
8439
|
start: He(le()),
|
8440
8440
|
end: ze(le())
|
8441
8441
|
}), Hi = (e) => e.activityType === Xe.Expense && ni(e.expectedDate, {
|
8442
8442
|
start: He(le()),
|
8443
8443
|
end: ze(le())
|
8444
|
-
}),
|
8444
|
+
}), Ha = (e) => e.occurredOnDate && ni(e.occurredOnDate, {
|
8445
8445
|
start: He(/* @__PURE__ */ new Date()),
|
8446
8446
|
end: Lt(le(), 30)
|
8447
8447
|
}) || ni(e.expectedDate, {
|
@@ -8689,7 +8689,7 @@ const rc = ({ transaction: e }) => {
|
|
8689
8689
|
selectedDayActivities: c,
|
8690
8690
|
setSelectedDay: d,
|
8691
8691
|
upcomingActivities: _
|
8692
|
-
} = Qe(), [u, h] = g.useState(0), { onEvent: m } = V(), C = a.filter(
|
8692
|
+
} = Qe(), [u, h] = g.useState(0), { onEvent: m } = V(), C = a.filter(Ha), f = o.filter(Ha), E = r.filter(Ha), b = C.filter(Hi).reduce(_i, 0), T = f.filter(Hi).reduce(_i, 0), x = E.filter(Hi).reduce(_i, 0), w = C.filter(Hi).length, v = C.filter(Ba).reduce(_i, 0), R = f.filter(Ba).reduce(_i, 0), D = C.filter(Ba).length, H = (X, W) => {
|
8693
8693
|
h(W);
|
8694
8694
|
}, O = (X) => {
|
8695
8695
|
m(F.RECURRING_ACTIVITY_CLICK_UPCOMING, {
|
@@ -9042,7 +9042,7 @@ class yg {
|
|
9042
9042
|
const r = this.cashflowEvents.findLast((o) => o.guid === n.guid);
|
9043
9043
|
await this.cashflowApi.updateCashflowSequence({
|
9044
9044
|
...a,
|
9045
|
-
end_date: r?.occurred_on ||
|
9045
|
+
end_date: r?.occurred_on || Ne(/* @__PURE__ */ new Date())
|
9046
9046
|
}), await this.addCashflowSequence({
|
9047
9047
|
...n,
|
9048
9048
|
guid: void 0
|
@@ -9074,7 +9074,7 @@ const Eg = {
|
|
9074
9074
|
gridRow: 1,
|
9075
9075
|
gridColumn: 1,
|
9076
9076
|
zIndex: 2
|
9077
|
-
}, Sg = ({ size: e = 20 }) => /* @__PURE__ */ t(Xt, { size: e, children: /* @__PURE__ */ t(
|
9077
|
+
}, Sg = ({ size: e = 20 }) => /* @__PURE__ */ t(Xt, { size: e, children: /* @__PURE__ */ t(ha, { color: "error", sx: { fontSize: e, ...Eg } }) }), Dr = (e) => e && (e.account_type === oe.CREDIT_CARD || e.account_type === oe.LOAN || e.account_type === oe.MORTGAGE || e.account_type === oe.LINE_OF_CREDIT || e.account_type === oe.CHECKING_LINE_OF_CREDIT), Tg = (e) => e.is_manual || !e.guid, Ag = (e) => e.account_type === oe.LINE_OF_CREDIT || e.account_type === oe.CREDIT_CARD || e.account_type === oe.CHECKING_LINE_OF_CREDIT, Ig = (e) => e.account_type === oe.SAVINGS || e.account_type === oe.CHECKING || e.account_type === oe.LINE_OF_CREDIT || e.account_type === oe.CREDIT_CARD || e.account_type === oe.LOAN || e.account_type === oe.MORTGAGE, xg = (e) => e.account_type === oe.LOAN || e.account_type === oe.MORTGAGE, vg = (e, n) => {
|
9078
9078
|
const i = [
|
9079
9079
|
{
|
9080
9080
|
event: "account_details_click_account_name",
|
@@ -9131,8 +9131,8 @@ const Eg = {
|
|
9131
9131
|
name: r,
|
9132
9132
|
placeholder: S(n.enter_value, a),
|
9133
9133
|
type: Tt.Input,
|
9134
|
-
validation: (o) =>
|
9135
|
-
valueFormatter: (o) =>
|
9134
|
+
validation: (o) => Za(o) ? "" : n.error_amount_is_invalid,
|
9135
|
+
valueFormatter: (o) => Za(o) ? pa(o / 100) : o
|
9136
9136
|
});
|
9137
9137
|
}
|
9138
9138
|
return Dr(e) && (i.push({
|
@@ -9335,7 +9335,7 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(j, { children: [
|
|
9335
9335
|
] })
|
9336
9336
|
] }),
|
9337
9337
|
/* @__PURE__ */ t(y, { children: o.map((s) => {
|
9338
|
-
const c = a.filter(Mo(s, r)).sort((h, m) =>
|
9338
|
+
const c = a.filter(Mo(s, r)).sort((h, m) => Ne(h.expectedDate) - Ne(m.expectedDate)), d = i.filter(
|
9339
9339
|
Mo(s, r)
|
9340
9340
|
), _ = c.reduce(
|
9341
9341
|
(h, m) => h + m.amount,
|
@@ -9818,9 +9818,9 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(j, { children: [
|
|
9818
9818
|
children: i.welcome_sub_title
|
9819
9819
|
}
|
9820
9820
|
),
|
9821
|
-
/* @__PURE__ */ t(
|
9821
|
+
/* @__PURE__ */ t(De, { pb: 32, children: i.welcome_description }),
|
9822
9822
|
/* @__PURE__ */ l(y, { direction: "column", mb: 32, spacing: 32, children: [
|
9823
|
-
/* @__PURE__ */ l(
|
9823
|
+
/* @__PURE__ */ l(De, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
|
9824
9824
|
/* @__PURE__ */ t(
|
9825
9825
|
L,
|
9826
9826
|
{
|
@@ -9836,7 +9836,7 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(j, { children: [
|
|
9836
9836
|
),
|
9837
9837
|
i.bullet_one
|
9838
9838
|
] }),
|
9839
|
-
/* @__PURE__ */ l(
|
9839
|
+
/* @__PURE__ */ l(De, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
|
9840
9840
|
/* @__PURE__ */ t(
|
9841
9841
|
L,
|
9842
9842
|
{
|
@@ -9852,7 +9852,7 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(j, { children: [
|
|
9852
9852
|
),
|
9853
9853
|
i.bullet_two
|
9854
9854
|
] }),
|
9855
|
-
/* @__PURE__ */ l(
|
9855
|
+
/* @__PURE__ */ l(De, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
|
9856
9856
|
/* @__PURE__ */ t(
|
9857
9857
|
L,
|
9858
9858
|
{
|
@@ -9882,7 +9882,7 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(j, { children: [
|
|
9882
9882
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
9883
9883
|
/* @__PURE__ */ t("div", { children: /* @__PURE__ */ t("img", { alt: "Loading", src: Ec.CASHFLOW_LOADING_ANIMATION }) }),
|
9884
9884
|
/* @__PURE__ */ t(cn, { pb: 12, children: e.loading_title }),
|
9885
|
-
/* @__PURE__ */ t(
|
9885
|
+
/* @__PURE__ */ t(De, { children: e.loading_description })
|
9886
9886
|
] });
|
9887
9887
|
}, Ug = A(Wg), Vg = vl`
|
9888
9888
|
from {
|
@@ -9958,13 +9958,13 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(j, { children: [
|
|
9958
9958
|
},
|
9959
9959
|
children: [
|
9960
9960
|
/* @__PURE__ */ t(cn, { pb: 12, children: a.add_income_title }),
|
9961
|
-
/* @__PURE__ */ t(
|
9961
|
+
/* @__PURE__ */ t(De, { mb: 24, children: a.add_income_description }),
|
9962
9962
|
O.length > 0 && !Z && /* @__PURE__ */ l(j, { children: [
|
9963
9963
|
/* @__PURE__ */ t(ie, { children: O.map((_e, $e) => /* @__PURE__ */ l(g.Fragment, { children: [
|
9964
|
-
/* @__PURE__ */ t(
|
9965
|
-
|
9964
|
+
/* @__PURE__ */ t(Ea, { bgcolor: "background.paper", children: Oi(
|
9965
|
+
Ne(_e.nextDate || _e.date)
|
9966
9966
|
) }),
|
9967
|
-
/* @__PURE__ */ t(
|
9967
|
+
/* @__PURE__ */ t(ya, { transaction: _e }),
|
9968
9968
|
$e !== O.length - 1 && /* @__PURE__ */ t(k, {})
|
9969
9969
|
] }, _e.guid)) }),
|
9970
9970
|
/* @__PURE__ */ l(y, { alignItems: "center", direction: "row", children: [
|
@@ -9992,7 +9992,7 @@ const Dg = ({ activity: e }) => /* @__PURE__ */ l(j, { children: [
|
|
9992
9992
|
}
|
9993
9993
|
}
|
9994
9994
|
),
|
9995
|
-
!we && s && /* @__PURE__ */ t(
|
9995
|
+
!we && s && /* @__PURE__ */ t(De, { color: "error", mt: 16, children: a.confirm_error }),
|
9996
9996
|
Z && /* @__PURE__ */ l(j, { children: [
|
9997
9997
|
/* @__PURE__ */ t(
|
9998
9998
|
mc,
|
@@ -10136,13 +10136,13 @@ class Po {
|
|
10136
10136
|
addCashflowSequence = async (n) => this.fetchInstance.post(G.CASHFLOW_SEQUENCES, { ...n }).then((i) => i.cashflow_sequence);
|
10137
10137
|
getCashflowSequences = async () => this.fetchInstance.get(G.CASHFLOW_SEQUENCES).then((n) => n.cashflow_sequences);
|
10138
10138
|
getCashflowEventsByDateRange = async (n, i) => this.fetchInstance.get(
|
10139
|
-
`${G.CASHFLOW_EVENTS}/from/${
|
10139
|
+
`${G.CASHFLOW_EVENTS}/from/${Ne(n)}/to/${Ne(i)}`
|
10140
10140
|
).then((a) => a.cashflow_events);
|
10141
10141
|
deleteCashflowSequence = async (n) => this.fetchInstance.delete(`${G.CASHFLOW_SEQUENCES}/${n}`).then((i) => i);
|
10142
10142
|
getProjectedCashflowEvents = async (n, i) => this.fetchInstance.get(
|
10143
|
-
`${G.CASHFLOW_SEQUENCES}/projected_events/from/${
|
10143
|
+
`${G.CASHFLOW_SEQUENCES}/projected_events/from/${Ne(
|
10144
10144
|
n
|
10145
|
-
)}/to/${
|
10145
|
+
)}/to/${Ne(i)}`
|
10146
10146
|
).then((a) => a.cashflow_events);
|
10147
10147
|
updateCashflowSequence = async (n) => this.fetchInstance.put(`${G.CASHFLOW_SEQUENCES}/${n.guid}`, n).then((i) => i.cashflow_sequence);
|
10148
10148
|
}
|
@@ -10240,7 +10240,7 @@ function qg(e, n, i = 0) {
|
|
10240
10240
|
const Cn = () => {
|
10241
10241
|
if (!g.useContext(zn))
|
10242
10242
|
throw new Error("useCateUiStore() must be used within the GlobalDataContext");
|
10243
|
-
return
|
10243
|
+
return fa().uiStore;
|
10244
10244
|
}, Zg = ({ debts: e, onClickCta: n, sx: i }) => {
|
10245
10245
|
const a = vn(), { isMobile: r } = xe(), { debts: o } = I(), { selectedDebtPriority: s } = Cn(), { monthlyCashFlowProfile: c } = nt(), { payoffDate: d, payoffSavings: _, payoffDuration: u } = g.useMemo(() => {
|
10246
10246
|
const h = c?.extra_payment ?? 0;
|
@@ -10659,7 +10659,7 @@ const Cn = () => {
|
|
10659
10659
|
if (!g.useContext(zn))
|
10660
10660
|
throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
|
10661
10661
|
return ve().uiStore;
|
10662
|
-
},
|
10662
|
+
}, xa = (e) => e.top_level_category_guid === N.INCOME || e.category_guid === N.INCOME, tm = (e) => !xa(e) && !Ac(e), Tc = (e) => no.includes(e.top_level_category_guid) || no.includes(e.category_guid), Ac = (e) => e.top_level_category_guid === N.TRANSFER || e.category_guid === N.TRANSFER, nm = (e) => !xa(e) && !Tc(e) && !Ac(e), im = (e) => e.filter((n) => n.category_guid === n.top_level_category_guid), Rr = (e, n) => {
|
10663
10663
|
const i = [];
|
10664
10664
|
let a = He(jt(/* @__PURE__ */ new Date(), 5));
|
10665
10665
|
const r = /* @__PURE__ */ new Date();
|
@@ -10670,7 +10670,7 @@ const Cn = () => {
|
|
10670
10670
|
}), a = gt(a, 1);
|
10671
10671
|
return i;
|
10672
10672
|
}, am = (e, n) => {
|
10673
|
-
const i = e.filter(
|
10673
|
+
const i = e.filter(xa);
|
10674
10674
|
return Rr(i).map((a) => ({ ...a, y: Math.abs(a.y) }));
|
10675
10675
|
}, rm = (e, n) => {
|
10676
10676
|
const i = e.filter(Tc);
|
@@ -10721,7 +10721,7 @@ const Cn = () => {
|
|
10721
10721
|
}
|
10722
10722
|
) });
|
10723
10723
|
}, um = A(dm), _m = ({ sx: e }) => {
|
10724
|
-
const { loadMonthlyCategoryTotals: n } = We(), { isInitialized: i } =
|
10724
|
+
const { loadMonthlyCategoryTotals: n } = We(), { isInitialized: i } = ba(), { selectedAccount: a } = Ht(), [r, o] = g.useState(!1);
|
10725
10725
|
return g.useEffect(() => {
|
10726
10726
|
i && n([a]).finally(() => {
|
10727
10727
|
o(!0);
|
@@ -11022,7 +11022,7 @@ const Ic = ({
|
|
11022
11022
|
onCancel: u,
|
11023
11023
|
onSave: _,
|
11024
11024
|
primaryText: n.details_interest_rate,
|
11025
|
-
secondaryText:
|
11025
|
+
secondaryText: pa(Number(e.interest_rate) / 100),
|
11026
11026
|
zeroStateText: e.interest_rate ? void 0 : n.add_interest_rate,
|
11027
11027
|
children: /* @__PURE__ */ t(
|
11028
11028
|
rt,
|
@@ -11121,7 +11121,7 @@ const Ic = ({
|
|
11121
11121
|
onCancel: d,
|
11122
11122
|
onSave: c,
|
11123
11123
|
primaryText: n.details_interest_rate,
|
11124
|
-
secondaryText:
|
11124
|
+
secondaryText: pa(Number(e.interest_rate) / 100),
|
11125
11125
|
zeroStateText: e.interest_rate ? void 0 : n.add_interest_rate,
|
11126
11126
|
children: /* @__PURE__ */ t(
|
11127
11127
|
rt,
|
@@ -11227,7 +11227,7 @@ const Ic = ({
|
|
11227
11227
|
/* @__PURE__ */ t(yt, { sx: { my: 16, mx: 24, ...n }, children: /* @__PURE__ */ l(
|
11228
11228
|
xn,
|
11229
11229
|
{
|
11230
|
-
icon: a ? /* @__PURE__ */ t(
|
11230
|
+
icon: a ? /* @__PURE__ */ t(ha, {}) : /* @__PURE__ */ t(ua, { color: "success" }),
|
11231
11231
|
severity: "error",
|
11232
11232
|
sx: {
|
11233
11233
|
alignItems: "start",
|
@@ -11240,7 +11240,7 @@ const Ic = ({
|
|
11240
11240
|
}
|
11241
11241
|
},
|
11242
11242
|
children: [
|
11243
|
-
/* @__PURE__ */ t(
|
11243
|
+
/* @__PURE__ */ t(qa, { sx: { fontWeight: 600, marginTop: 2 }, variant: "Body", children: a ? i.status_error_title : i.status_complete_title }),
|
11244
11244
|
/* @__PURE__ */ t(p, { component: "p", sx: { whiteSpace: "wrap" }, variant: "ParagraphSmall", children: a ? i.status_error_description : i.status_complete_description })
|
11245
11245
|
]
|
11246
11246
|
}
|
@@ -11258,7 +11258,7 @@ const Ic = ({
|
|
11258
11258
|
}
|
11259
11259
|
},
|
11260
11260
|
children: [
|
11261
|
-
/* @__PURE__ */ t(
|
11261
|
+
/* @__PURE__ */ t(qa, { sx: { fontWeight: 600, marginTop: 2 }, variant: "Body", children: i.status_info_title }),
|
11262
11262
|
/* @__PURE__ */ t(p, { component: "p", sx: { whiteSpace: "wrap" }, variant: "ParagraphSmall", children: i.status_info_description })
|
11263
11263
|
]
|
11264
11264
|
}
|
@@ -11352,7 +11352,7 @@ const Ic = ({
|
|
11352
11352
|
}
|
11353
11353
|
);
|
11354
11354
|
}), Om = () => {
|
11355
|
-
const { debts: e } = I(), { totalMonthlyPayments: n } =
|
11355
|
+
const { debts: e } = I(), { totalMonthlyPayments: n } = fa(), { monthlyCashFlowProfile: i } = nt(), a = n + Number(i?.extra_payment);
|
11356
11356
|
return /* @__PURE__ */ l(y, { sx: { backgroundColor: "background.default", height: "100%" }, children: [
|
11357
11357
|
/* @__PURE__ */ l(y, { p: 24, children: [
|
11358
11358
|
/* @__PURE__ */ l(y, { alignItems: "center", gap: 4, mb: 24, children: [
|
@@ -11668,7 +11668,7 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
11668
11668
|
},
|
11669
11669
|
children: [
|
11670
11670
|
/* @__PURE__ */ t(p, { color: "inherit", variant: "Small", children: u }),
|
11671
|
-
r === _ && /* @__PURE__ */ t(
|
11671
|
+
r === _ && /* @__PURE__ */ t(ua, { color: "inherit", fontSize: "small" })
|
11672
11672
|
]
|
11673
11673
|
},
|
11674
11674
|
_
|
@@ -11727,7 +11727,7 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
11727
11727
|
d.priority = !d.is_paid_off && !d.is_impossible ? c++ : void 0;
|
11728
11728
|
}), o;
|
11729
11729
|
}, Km = A(({ onClick: e }) => {
|
11730
|
-
const { debts: n } = I(), { isDesktop: i } = xe(), { totalMonthlyPayments: a } =
|
11730
|
+
const { debts: n } = I(), { isDesktop: i } = xe(), { totalMonthlyPayments: a } = fa(), { monthlyCashFlowProfile: r } = nt(), o = a + Number(r?.extra_payment), s = i ? n.paydown_button_long : n.paydown_button_short;
|
11731
11731
|
return /* @__PURE__ */ t(
|
11732
11732
|
J,
|
11733
11733
|
{
|
@@ -11741,7 +11741,7 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
11741
11741
|
}
|
11742
11742
|
);
|
11743
11743
|
}), zm = ({ onBackClick: e, sx: n }) => {
|
11744
|
-
const [i, a] = g.useState(!1), [r, o] = g.useState(!1), [s, c] = g.useState(!1), [d, _] = g.useState(""), { isDesktop: u, isMobile: h } = xe(), { debts: m } = I(), { onEvent: C } = V(), { isCopyLoaded: f, isInitialized: E, setSelectedAccounts: b } = ce(), { setSelectedAccount: T } = Ht(), { selectedDebtPriority: x, setSelectedDebtChartData: w } = Cn(), { visibleDebtAccounts: v } = ve(), { goalsLoaded: R, loadGoals: D, monthlyCashFlowProfile: H } = nt(), { debts: O } =
|
11744
|
+
const [i, a] = g.useState(!1), [r, o] = g.useState(!1), [s, c] = g.useState(!1), [d, _] = g.useState(""), { isDesktop: u, isMobile: h } = xe(), { debts: m } = I(), { onEvent: C } = V(), { isCopyLoaded: f, isInitialized: E, setSelectedAccounts: b } = ce(), { setSelectedAccount: T } = Ht(), { selectedDebtPriority: x, setSelectedDebtChartData: w } = Cn(), { visibleDebtAccounts: v } = ve(), { goalsLoaded: R, loadGoals: D, monthlyCashFlowProfile: H } = nt(), { debts: O } = fa(), M = g.useMemo(() => {
|
11745
11745
|
const Se = H?.extra_payment ?? 0;
|
11746
11746
|
return Vm(O, x, Se);
|
11747
11747
|
}, [O, x, H]);
|
@@ -11900,7 +11900,7 @@ class Ho {
|
|
11900
11900
|
updateMonthlyCashFlowProfile = async (n) => this.fetchInstance.put(`${G.MONTHLY_CASH_FLOW_PROFILE}`, n).then((i) => i.monthly_cash_flow_profile);
|
11901
11901
|
updateRetirementGoal = async (n) => this.fetchInstance.put(`${G.RETIREMENT_GOALS}/${n.guid}`, n).then((i) => i.retirement_goal);
|
11902
11902
|
}
|
11903
|
-
function
|
11903
|
+
function $a({ title: e, subtitle: n }) {
|
11904
11904
|
return /* @__PURE__ */ l(y, { children: [
|
11905
11905
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e }),
|
11906
11906
|
/* @__PURE__ */ t(p, { sx: { fontWeight: 400 }, variant: "Body", children: n })
|
@@ -11916,9 +11916,9 @@ function Zm(e, n) {
|
|
11916
11916
|
style: "percent",
|
11917
11917
|
minimumFractionDigits: 0,
|
11918
11918
|
maximumFractionDigits: 0
|
11919
|
-
}, c = n.is_complete ? n.completed_at : n.projected_to_complete_at, d = c ?
|
11919
|
+
}, c = n.is_complete ? n.completed_at : n.projected_to_complete_at, d = c ? Oe(c) : /* @__PURE__ */ new Date(), _ = S(
|
11920
11920
|
e.goal_percentage,
|
11921
|
-
|
11921
|
+
pa(a, s)
|
11922
11922
|
), u = S(
|
11923
11923
|
n.is_complete ? e.completed_label : e.goal_projection,
|
11924
11924
|
ne(d, ee.MONTH_SHORT_YEAR)
|
@@ -12081,7 +12081,7 @@ const Jm = (e, n) => {
|
|
12081
12081
|
/* @__PURE__ */ t(p, { variant: "XSmall", children: S(
|
12082
12082
|
n.goal_projection,
|
12083
12083
|
ne(
|
12084
|
-
|
12084
|
+
Oe(f.projected_to_complete_at || 0),
|
12085
12085
|
ee.MONTH_SHORT_YEAR
|
12086
12086
|
)
|
12087
12087
|
) })
|
@@ -12136,7 +12136,7 @@ const Jm = (e, n) => {
|
|
12136
12136
|
onPrimaryAction: m,
|
12137
12137
|
title: n.reorder_goals_title,
|
12138
12138
|
children: /* @__PURE__ */ l(y, { children: [
|
12139
|
-
/* @__PURE__ */ t(
|
12139
|
+
/* @__PURE__ */ t(De, { sx: { my: 12, mx: 24 }, children: n.reorder_goals_description }),
|
12140
12140
|
/* @__PURE__ */ t(
|
12141
12141
|
Kn,
|
12142
12142
|
{
|
@@ -12184,7 +12184,7 @@ const Jm = (e, n) => {
|
|
12184
12184
|
/* @__PURE__ */ t(p, { variant: "XSmall", children: S(
|
12185
12185
|
i.goal_projection,
|
12186
12186
|
ne(
|
12187
|
-
|
12187
|
+
Oe(e.projected_to_complete_at || 0),
|
12188
12188
|
ee.MONTH_SHORT_YEAR
|
12189
12189
|
)
|
12190
12190
|
) })
|
@@ -12202,7 +12202,7 @@ const Jm = (e, n) => {
|
|
12202
12202
|
/* @__PURE__ */ t(p, { variant: "XSmall", children: S(
|
12203
12203
|
n.completed_label,
|
12204
12204
|
ne(
|
12205
|
-
|
12205
|
+
Oe(e.completed_at || 0),
|
12206
12206
|
ee.MONTH_SHORT_YEAR
|
12207
12207
|
)
|
12208
12208
|
) })
|
@@ -12229,7 +12229,7 @@ const Jm = (e, n) => {
|
|
12229
12229
|
children: /* @__PURE__ */ l(y, { children: [
|
12230
12230
|
/* @__PURE__ */ l(y, { m: 24, children: [
|
12231
12231
|
/* @__PURE__ */ t(mt, { children: h }),
|
12232
|
-
/* @__PURE__ */ t(
|
12232
|
+
/* @__PURE__ */ t(De, { color: "text.secondary", sx: { textWrap: "wrap" }, variant: "ParagraphSmall", children: m })
|
12233
12233
|
] }),
|
12234
12234
|
/* @__PURE__ */ t(tp, { trackType: e }),
|
12235
12235
|
/* @__PURE__ */ t(p, { bold: !0, sx: { mb: 4, mx: 24, mt: 12 }, variant: "XSmall", children: n.goal_priority }),
|
@@ -12265,7 +12265,7 @@ const Jm = (e, n) => {
|
|
12265
12265
|
}
|
12266
12266
|
)
|
12267
12267
|
] });
|
12268
|
-
},
|
12268
|
+
}, Fa = A(({ trackType: e, onAddGoals: n }) => {
|
12269
12269
|
const { isMobile: i } = xe(), { goals: a } = I(), { orderedGoals: r, setSelectedGoal: o } = nt(), s = r.filter((u) => u.track_type === e), c = s.filter(
|
12270
12270
|
(u) => u.track_type === U.SAVINGS_TRACK && !u.has_been_spent || u.track_type !== U.SAVINGS_TRACK && !u.is_complete
|
12271
12271
|
), d = s.filter(
|
@@ -12290,7 +12290,7 @@ const Jm = (e, n) => {
|
|
12290
12290
|
py: 18,
|
12291
12291
|
children: [
|
12292
12292
|
/* @__PURE__ */ t(
|
12293
|
-
|
12293
|
+
De,
|
12294
12294
|
{
|
12295
12295
|
sx: (u) => ({
|
12296
12296
|
color: "text.secondary",
|
@@ -12310,7 +12310,7 @@ const Jm = (e, n) => {
|
|
12310
12310
|
e !== U.RETIREMENT_TRACK && /* @__PURE__ */ l(y, { gap: 16, mt: 48, children: [
|
12311
12311
|
/* @__PURE__ */ t(p, { color: "text.secondary", variant: "Small", children: a.complete_title }),
|
12312
12312
|
d.length === 0 && /* @__PURE__ */ t(y, { alignItems: "center", bgcolor: "background.default", borderRadius: 2, py: 18, children: /* @__PURE__ */ t(
|
12313
|
-
|
12313
|
+
De,
|
12314
12314
|
{
|
12315
12315
|
sx: (u) => ({
|
12316
12316
|
color: "text.secondary",
|
@@ -12352,7 +12352,7 @@ const Jm = (e, n) => {
|
|
12352
12352
|
}
|
12353
12353
|
) }),
|
12354
12354
|
/* @__PURE__ */ t(k, { variant: "inset" }),
|
12355
|
-
h && /* @__PURE__ */ t(
|
12355
|
+
h && /* @__PURE__ */ t(_a, { in: _, children: /* @__PURE__ */ t(ie, { sx: { bgcolor: "background.default" }, children: c.map((m, C) => /* @__PURE__ */ t(Y, { sx: { pl: 48 }, children: /* @__PURE__ */ l(de, { onClick: () => n(m.label, m.metaType, d), children: [
|
12356
12356
|
/* @__PURE__ */ t(pt, { sx: { mr: 8 }, children: /* @__PURE__ */ t(Rt, { name: m.icon }) }),
|
12357
12357
|
/* @__PURE__ */ t(
|
12358
12358
|
ae,
|
@@ -12384,7 +12384,7 @@ const Jm = (e, n) => {
|
|
12384
12384
|
onPrimaryAction: () => a(c),
|
12385
12385
|
title: r,
|
12386
12386
|
children: [
|
12387
|
-
/* @__PURE__ */ t(
|
12387
|
+
/* @__PURE__ */ t(De, { color: "text.secondary", sx: { mx: 24, my: 12 }, children: o.select_debt_accounts_description }),
|
12388
12388
|
/* @__PURE__ */ l(ie, { sx: { bgcolor: "background.white" }, children: [
|
12389
12389
|
/* @__PURE__ */ t(k, { variant: "fullWidth" }),
|
12390
12390
|
e.map((u, h) => /* @__PURE__ */ l(g.Fragment, { children: [
|
@@ -12424,7 +12424,7 @@ const Jm = (e, n) => {
|
|
12424
12424
|
f === U.DEBT_TRACK ? d(!0) : o({
|
12425
12425
|
amount: 0,
|
12426
12426
|
current_amount: 0,
|
12427
|
-
goal_type:
|
12427
|
+
goal_type: tr.SAVE_AMOUNT,
|
12428
12428
|
initial_amount: 0,
|
12429
12429
|
meta_type: C,
|
12430
12430
|
name: m,
|
@@ -12437,7 +12437,7 @@ const Jm = (e, n) => {
|
|
12437
12437
|
account_guid: C.guid,
|
12438
12438
|
amount: 0,
|
12439
12439
|
current_amount: 0,
|
12440
|
-
goal_type:
|
12440
|
+
goal_type: tr.KEEP_BALANCE_BELOW,
|
12441
12441
|
initial_amount: C.balance || 0,
|
12442
12442
|
interest_rate: C.interest_rate || 0,
|
12443
12443
|
meta_type: f,
|
@@ -12659,8 +12659,8 @@ const Jm = (e, n) => {
|
|
12659
12659
|
}
|
12660
12660
|
);
|
12661
12661
|
}, _p = A(({ goal: e }) => {
|
12662
|
-
const { goals: n } = I(), { user: i, updateUser: a } = dn(), { setAlert: r } = nt(), [o, s] = g.useState(
|
12663
|
-
o &&
|
12662
|
+
const { goals: n } = I(), { user: i, updateUser: a } = dn(), { setAlert: r } = nt(), [o, s] = g.useState(Oe(i.birthday ?? 0)), [c, d] = g.useState(null), _ = e.is_complete, u = async () => {
|
12663
|
+
o && lr(o) && (await a({ ...i, birthday: Ne(o) }), r(n.alert_goal_updated_birthday));
|
12664
12664
|
};
|
12665
12665
|
return /* @__PURE__ */ t(
|
12666
12666
|
tn,
|
@@ -12670,10 +12670,10 @@ const Jm = (e, n) => {
|
|
12670
12670
|
label: n.details_birthday,
|
12671
12671
|
onSave: u,
|
12672
12672
|
primaryText: n.details_birthday,
|
12673
|
-
secondaryText: `${ne(
|
12673
|
+
secondaryText: `${ne(Oe(i.birthday ?? 0), ee.MONTH_DAY_YEAR)}`,
|
12674
12674
|
zeroStateText: !e.guid && !i.birthday ? n.add_birthday : void 0,
|
12675
12675
|
children: /* @__PURE__ */ t(Nn, { dateAdapter: gn, children: /* @__PURE__ */ t(
|
12676
|
-
|
12676
|
+
la,
|
12677
12677
|
{
|
12678
12678
|
label: n.details_birthday,
|
12679
12679
|
onChange: s,
|
@@ -12888,7 +12888,7 @@ const Jm = (e, n) => {
|
|
12888
12888
|
Le,
|
12889
12889
|
{
|
12890
12890
|
disabled: re,
|
12891
|
-
label: /* @__PURE__ */ t(
|
12891
|
+
label: /* @__PURE__ */ t($a, { subtitle: O, title: d.tab_saving_title }),
|
12892
12892
|
sx: { "&.Mui-selected": { color: "primary.light" } }
|
12893
12893
|
}
|
12894
12894
|
),
|
@@ -12896,7 +12896,7 @@ const Jm = (e, n) => {
|
|
12896
12896
|
Le,
|
12897
12897
|
{
|
12898
12898
|
disabled: re,
|
12899
|
-
label: /* @__PURE__ */ t(
|
12899
|
+
label: /* @__PURE__ */ t($a, { subtitle: M, title: d.tab_debt_title }),
|
12900
12900
|
sx: { "&.Mui-selected": { color: "primary.light" } }
|
12901
12901
|
}
|
12902
12902
|
),
|
@@ -12904,7 +12904,7 @@ const Jm = (e, n) => {
|
|
12904
12904
|
Le,
|
12905
12905
|
{
|
12906
12906
|
disabled: re,
|
12907
|
-
label: /* @__PURE__ */ t(
|
12907
|
+
label: /* @__PURE__ */ t($a, { subtitle: X, title: d.tab_retirement_title }),
|
12908
12908
|
sx: { "&.Mui-selected": { color: "primary.light" } }
|
12909
12909
|
}
|
12910
12910
|
)
|
@@ -12927,9 +12927,9 @@ const Jm = (e, n) => {
|
|
12927
12927
|
}
|
12928
12928
|
}
|
12929
12929
|
) : /* @__PURE__ */ l(j, { children: [
|
12930
|
-
T === 0 && /* @__PURE__ */ t(
|
12931
|
-
T === 1 && /* @__PURE__ */ t(
|
12932
|
-
T === 2 && /* @__PURE__ */ t(
|
12930
|
+
T === 0 && /* @__PURE__ */ t(Fa, { onAddGoals: Z, trackType: U.SAVINGS_TRACK }),
|
12931
|
+
T === 1 && /* @__PURE__ */ t(Fa, { onAddGoals: Z, trackType: U.DEBT_TRACK }),
|
12932
|
+
T === 2 && /* @__PURE__ */ t(Fa, { onAddGoals: Z, trackType: U.RETIREMENT_TRACK })
|
12933
12933
|
] })
|
12934
12934
|
] }),
|
12935
12935
|
/* @__PURE__ */ t(mp, { onClose: we }),
|
@@ -13509,7 +13509,7 @@ const Oc = 13, xp = (e, n) => e.filter((i) => {
|
|
13509
13509
|
return e[e.length - 1];
|
13510
13510
|
}, wp = (e, n) => e.year_month - n.year_month, Np = () => Array.from({ length: Oc }, (e, n) => Math.floor(He(jt(/* @__PURE__ */ new Date(), n)).getTime() / 1e3)).sort(), Dp = (e, n, i) => !e.length || !n.length ? [] : Np().reduceRight((r, o) => {
|
13511
13511
|
const s = n.filter(
|
13512
|
-
({ year_month: u }) => u === parseInt(It(
|
13512
|
+
({ year_month: u }) => u === parseInt(It(Oe(o), "yyyyMM"))
|
13513
13513
|
), c = e.map((u) => {
|
13514
13514
|
const h = s.find((C) => C.account_guid === u.guid), m = {
|
13515
13515
|
change: 0,
|
@@ -13649,7 +13649,7 @@ const Mp = ({
|
|
13649
13649
|
selectedData: o
|
13650
13650
|
}) => {
|
13651
13651
|
const { isMobile: s } = xe(), { availableWidth: c } = $n(), d = et(), _ = c - 320, u = e.map((f) => ({
|
13652
|
-
x: It(
|
13652
|
+
x: It(Oe(f.x), "MMM"),
|
13653
13653
|
y: f.y
|
13654
13654
|
})), h = o ? { index: e.findIndex((f) => f.x === o.x) } : void 0, m = n ? { index: e.findIndex((f) => f.x === n.x) } : void 0, C = (f) => ({
|
13655
13655
|
fill: f === h?.index ? d.palette.success.main : "",
|
@@ -13846,7 +13846,7 @@ const Mp = ({
|
|
13846
13846
|
/* @__PURE__ */ t(pt, { children: a ? /* @__PURE__ */ t(B, { name: "expand_less", size: 24 }) : /* @__PURE__ */ t(B, { name: "expand_more", size: 24 }) })
|
13847
13847
|
] }) }),
|
13848
13848
|
/* @__PURE__ */ t(k, {}),
|
13849
|
-
/* @__PURE__ */ t(
|
13849
|
+
/* @__PURE__ */ t(_a, { in: a, timeout: "auto", unmountOnExit: !0, children: e.map((o, s) => /* @__PURE__ */ l(ie, { children: [
|
13850
13850
|
/* @__PURE__ */ t(Y, { sx: () => ({ py: 14 }), children: /* @__PURE__ */ t(
|
13851
13851
|
ae,
|
13852
13852
|
{
|
@@ -14016,8 +14016,8 @@ const Mp = ({
|
|
14016
14016
|
}, [i, a]), g.useEffect(() => {
|
14017
14017
|
x(F.NET_WORTH_WIDGET_CLICK_TIMEFRAME, { time_period: R + "M" }), h(R).finally();
|
14018
14018
|
}, [R]);
|
14019
|
-
const re = (ct,
|
14020
|
-
b(
|
14019
|
+
const re = (ct, Re) => {
|
14020
|
+
b(Re), ct.currentTarget instanceof HTMLDivElement && O(!0);
|
14021
14021
|
}, Se = (ct) => {
|
14022
14022
|
E(ct);
|
14023
14023
|
}, Pe = () => {
|
@@ -14025,8 +14025,8 @@ const Mp = ({
|
|
14025
14025
|
}, _e = () => {
|
14026
14026
|
x(F.NET_WORTH_WIDGET_CLICK_ASSETS_LIABILITIES), X(!0);
|
14027
14027
|
}, $e = async (ct) => {
|
14028
|
-
const
|
14029
|
-
|
14028
|
+
const Re = ct[0], ut = ct[1];
|
14029
|
+
Re && ut && D(dd(ut, Re));
|
14030
14030
|
}, it = {
|
14031
14031
|
chartData: C,
|
14032
14032
|
hoveredData: u,
|
@@ -14561,7 +14561,7 @@ const l1 = ({
|
|
14561
14561
|
] }),
|
14562
14562
|
/* @__PURE__ */ t(Hn, { color: "text.primary", sx: { mt: 24, whiteSpace: { sm: "nowrap", xs: "wrap" } }, children: o })
|
14563
14563
|
] });
|
14564
|
-
},
|
14564
|
+
}, ar = ({
|
14565
14565
|
altImage: e,
|
14566
14566
|
content: n,
|
14567
14567
|
hasDivider: i = !0,
|
@@ -14726,7 +14726,7 @@ const l1 = ({
|
|
14726
14726
|
] }) }),
|
14727
14727
|
i && /* @__PURE__ */ t(k, {})
|
14728
14728
|
] });
|
14729
|
-
}, $ = ({ content: e, sx: n }) => /* @__PURE__ */ t(
|
14729
|
+
}, $ = ({ content: e, sx: n }) => /* @__PURE__ */ t(De, { sx: { lineHeight: "24px", py: 6, ...n }, children: e }), ge = ({ content: e, sx: n }) => /* @__PURE__ */ t(mt, { color: "text.primary", sx: { py: 12, whiteSpace: { sm: "nowrap", xs: "wrap" }, ...n }, children: e }), Q = ({
|
14730
14730
|
items: e,
|
14731
14731
|
listType: n = "ul",
|
14732
14732
|
subItemPlacement: i,
|
@@ -15450,7 +15450,7 @@ const l1 = ({
|
|
15450
15450
|
}
|
15451
15451
|
),
|
15452
15452
|
"why-are-some-of-my-transactions-uncategorized": /* @__PURE__ */ t(
|
15453
|
-
|
15453
|
+
ar,
|
15454
15454
|
{
|
15455
15455
|
altImage: e,
|
15456
15456
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
@@ -16404,7 +16404,7 @@ const l1 = ({
|
|
16404
16404
|
}
|
16405
16405
|
),
|
16406
16406
|
/* @__PURE__ */ t(
|
16407
|
-
|
16407
|
+
ar,
|
16408
16408
|
{
|
16409
16409
|
altImage: e.transactions_widget_overview.categorizing_transactions_alt_image,
|
16410
16410
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
@@ -16447,7 +16447,7 @@ const l1 = ({
|
|
16447
16447
|
}
|
16448
16448
|
),
|
16449
16449
|
/* @__PURE__ */ t(
|
16450
|
-
|
16450
|
+
ar,
|
16451
16451
|
{
|
16452
16452
|
altImage: e.transactions_widget_overview.transaction_rules_alt_image,
|
16453
16453
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
@@ -17139,7 +17139,7 @@ const l1 = ({
|
|
17139
17139
|
]
|
17140
17140
|
}
|
17141
17141
|
),
|
17142
|
-
e && /* @__PURE__ */ t(
|
17142
|
+
e && /* @__PURE__ */ t(De, { color: "text.secondary", sx: { px: 24 }, variant: "Small", children: e })
|
17143
17143
|
] }), D1 = ({
|
17144
17144
|
alert: e,
|
17145
17145
|
copy: n,
|
@@ -17295,13 +17295,13 @@ const l1 = ({
|
|
17295
17295
|
}), Xo = {
|
17296
17296
|
institutionName: "",
|
17297
17297
|
institutionWebsite: ""
|
17298
|
-
},
|
17298
|
+
}, Wa = {
|
17299
17299
|
institutionName: "",
|
17300
17300
|
institutionLoginPage: "",
|
17301
17301
|
institutionWebsite: ""
|
17302
17302
|
}, L1 = A(
|
17303
17303
|
({ copy: e, isOpen: n, onClose: i, onSave: a }) => {
|
17304
|
-
const { alert: r, isLoading: o, setAlert: s } = yr(), [c, d] = g.useState(Xo), [_, u] = g.useState(
|
17304
|
+
const { alert: r, isLoading: o, setAlert: s } = yr(), [c, d] = g.useState(Xo), [_, u] = g.useState(Wa), h = [
|
17305
17305
|
{ name: "institutionName", required: !0 },
|
17306
17306
|
{ name: "institutionWebsite", required: !0 },
|
17307
17307
|
{ name: "institutionLoginPage", required: !1 }
|
@@ -17309,7 +17309,7 @@ const l1 = ({
|
|
17309
17309
|
...E,
|
17310
17310
|
label: e.popular_topics_missing_institution_fields[b.toString()]
|
17311
17311
|
})), m = () => {
|
17312
|
-
d(Xo), u(
|
17312
|
+
d(Xo), u(Wa), i();
|
17313
17313
|
}, C = (E) => {
|
17314
17314
|
const {
|
17315
17315
|
target: { name: b, value: T }
|
@@ -17330,7 +17330,7 @@ const l1 = ({
|
|
17330
17330
|
h.forEach(({ label: T, name: x, required: w }) => {
|
17331
17331
|
const v = _[x];
|
17332
17332
|
w && !v && (E[x] = `${T} ${e.request_support_required_message}`, b = !1), (x === "institutionWebsite" || x === "institutionLoginPage") && v && !/(.+)\.(.{2,})/g.test(v) && (E[x] = e.request_support_valid_url_message, b = !1);
|
17333
|
-
}), d(E), b && (a(_), u(
|
17333
|
+
}), d(E), b && (a(_), u(Wa));
|
17334
17334
|
},
|
17335
17335
|
secondaryColor: "primary",
|
17336
17336
|
title: e.request_support,
|
@@ -17453,7 +17453,7 @@ const l1 = ({
|
|
17453
17453
|
}, P1 = ({ copy: e, onButtonClick: n }) => {
|
17454
17454
|
const i = B1();
|
17455
17455
|
return /* @__PURE__ */ l(y, { sx: { alignItems: "center", gap: 5 }, children: [
|
17456
|
-
/* @__PURE__ */ t(
|
17456
|
+
/* @__PURE__ */ t(De, { color: "text.secondary", sx: i, children: e.contact_support }),
|
17457
17457
|
/* @__PURE__ */ t(
|
17458
17458
|
p,
|
17459
17459
|
{
|
@@ -17511,7 +17511,7 @@ const l1 = ({
|
|
17511
17511
|
}
|
17512
17512
|
),
|
17513
17513
|
/* @__PURE__ */ t(
|
17514
|
-
|
17514
|
+
De,
|
17515
17515
|
{
|
17516
17516
|
color: "secondary",
|
17517
17517
|
sx: {
|
@@ -17542,7 +17542,7 @@ const l1 = ({
|
|
17542
17542
|
/* @__PURE__ */ t(y, { sx: { alignItems: "center", pb: 24, pt: 80 }, children: /* @__PURE__ */ t(B, { color: "success", fill: !0, name: "check_circle", size: 64 }) }),
|
17543
17543
|
/* @__PURE__ */ l(y, { sx: { alignItems: "center", gap: 16, pb: 48 }, children: [
|
17544
17544
|
/* @__PURE__ */ t(Hn, { children: e.request_support_success }),
|
17545
|
-
/* @__PURE__ */ t(
|
17545
|
+
/* @__PURE__ */ t(De, { align: "center", variant: "Body", children: e.request_support_submit_success_message }),
|
17546
17546
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: n })
|
17547
17547
|
] }),
|
17548
17548
|
/* @__PURE__ */ t(J, { fullWidth: !0, onClick: r, variant: "contained", children: o.done_button }),
|
@@ -17877,26 +17877,16 @@ const l1 = ({
|
|
17877
17877
|
)
|
17878
17878
|
] });
|
17879
17879
|
}), Y1 = () => {
|
17880
|
-
const e = et(), { common: n, settings: i } = I(), { isDesktop: a, isMobile: r, isSmallMobile: o, isTablet: s } = xe(), { config: c } =
|
17881
|
-
_.birthday && _.birthday > 0 ?
|
17882
|
-
|
17883
|
-
Re(_.birthday).getUTCFullYear(),
|
17884
|
-
Re(_.birthday).getUTCMonth(),
|
17885
|
-
Re(_.birthday).getUTCDate()
|
17886
|
-
)
|
17887
|
-
) : null
|
17888
|
-
), O = f && !_.email_is_verified, M = b && !_.phone_is_verified;
|
17889
|
-
g.useEffect(() => {
|
17890
|
-
console.log(_);
|
17891
|
-
});
|
17892
|
-
const X = async () => {
|
17880
|
+
const e = et(), { common: n, settings: i } = I(), { isDesktop: a, isMobile: r, isSmallMobile: o, isTablet: s } = xe(), { config: c } = Ca(), { updateUser: d } = Bt(), { user: _ } = dn(), [u, h] = g.useState(_.first_name), [m, C] = g.useState(_.last_name), [f, E] = g.useState(_.email), [b, T] = g.useState(_.phone), [x, w] = g.useState(_.postal_code), [v, R] = g.useState(_.credit_score), [D, H] = g.useState(
|
17881
|
+
_.birthday && _.birthday > 0 ? Oe(_.birthday) : null
|
17882
|
+
), O = f && !_.email_is_verified, M = b && !_.phone_is_verified, X = async () => {
|
17893
17883
|
const W = {
|
17894
17884
|
..._,
|
17895
17885
|
first_name: u,
|
17896
17886
|
last_name: m,
|
17897
17887
|
email: f,
|
17898
17888
|
phone: b,
|
17899
|
-
birthday: D ?
|
17889
|
+
birthday: D ? Ne(D) : null,
|
17900
17890
|
postal_code: x,
|
17901
17891
|
credit_score: v
|
17902
17892
|
};
|
@@ -17916,7 +17906,7 @@ const l1 = ({
|
|
17916
17906
|
},
|
17917
17907
|
children: [
|
17918
17908
|
/* @__PURE__ */ t(mt, { children: i.personal_details }),
|
17919
|
-
/* @__PURE__ */ t(
|
17909
|
+
/* @__PURE__ */ t(De, { variant: "Body", children: i.update_information }),
|
17920
17910
|
/* @__PURE__ */ l(
|
17921
17911
|
y,
|
17922
17912
|
{
|
@@ -17970,10 +17960,10 @@ const l1 = ({
|
|
17970
17960
|
] }),
|
17971
17961
|
/* @__PURE__ */ l(y, { direction: r ? "column" : "row", spacing: r ? 44 : 24, sx: { mb: 44 }, children: [
|
17972
17962
|
/* @__PURE__ */ t(Nn, { dateAdapter: gn, children: /* @__PURE__ */ t(
|
17973
|
-
|
17963
|
+
la,
|
17974
17964
|
{
|
17975
17965
|
label: i.birthdate,
|
17976
|
-
onChange:
|
17966
|
+
onChange: H,
|
17977
17967
|
slotProps: {
|
17978
17968
|
nextIconButton: {
|
17979
17969
|
sx: {
|
@@ -17995,6 +17985,7 @@ const l1 = ({
|
|
17995
17985
|
"&:hover": { backgroundColor: Tn(e.palette.primary.light, 0.1) }
|
17996
17986
|
}
|
17997
17987
|
},
|
17988
|
+
timezone: "UTC",
|
17998
17989
|
value: D
|
17999
17990
|
}
|
18000
17991
|
) }),
|
@@ -18063,7 +18054,7 @@ const X1 = ({
|
|
18063
18054
|
field: "created_at",
|
18064
18055
|
headerName: r.mobile_devices_column_added,
|
18065
18056
|
renderHeader: Ut,
|
18066
|
-
valueFormatter: (c) => As(
|
18057
|
+
valueFormatter: (c) => As(Oe(c), { addSuffix: !0 }),
|
18067
18058
|
sortable: !0,
|
18068
18059
|
hideSortIcons: !1,
|
18069
18060
|
flex: 1,
|
@@ -18167,7 +18158,7 @@ const X1 = ({
|
|
18167
18158
|
children: /* @__PURE__ */ l(y, { gap: 4, children: [
|
18168
18159
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: d.name }),
|
18169
18160
|
/* @__PURE__ */ t(p, { color: a.palette.text.secondary, variant: "Small", children: `${d.make} ${d.model}` }),
|
18170
|
-
/* @__PURE__ */ t(p, { color: a.palette.text.secondary, variant: "Small", children: As(
|
18161
|
+
/* @__PURE__ */ t(p, { color: a.palette.text.secondary, variant: "Small", children: As(Oe(d.created_at), { addSuffix: !0 }) })
|
18171
18162
|
] })
|
18172
18163
|
}
|
18173
18164
|
),
|
@@ -18348,7 +18339,7 @@ const X1 = ({
|
|
18348
18339
|
/* @__PURE__ */ t(p, { truncate: !1, variant: "Small", children: c.mobile_devices_access_info_2 })
|
18349
18340
|
] }),
|
18350
18341
|
e === ot.Edit && /* @__PURE__ */ t(y, { children: /* @__PURE__ */ t(rt, { onChange: (x) => C(x.target.value), value: m }) }),
|
18351
|
-
e === ot.Delete && /* @__PURE__ */ t(
|
18342
|
+
e === ot.Delete && /* @__PURE__ */ t(De, { children: c.mobile_devices_delete_info })
|
18352
18343
|
]
|
18353
18344
|
}
|
18354
18345
|
);
|
@@ -18378,7 +18369,7 @@ const X1 = ({
|
|
18378
18369
|
children: [
|
18379
18370
|
/* @__PURE__ */ l(y, { gap: 4, children: [
|
18380
18371
|
/* @__PURE__ */ t(mt, { children: n.mobile_devices_title }),
|
18381
|
-
/* @__PURE__ */ t(
|
18372
|
+
/* @__PURE__ */ t(De, { variant: "Body", children: n.mobile_devices_info })
|
18382
18373
|
] }),
|
18383
18374
|
e ? /* @__PURE__ */ t(
|
18384
18375
|
q1,
|
@@ -18397,7 +18388,7 @@ const X1 = ({
|
|
18397
18388
|
),
|
18398
18389
|
/* @__PURE__ */ l(y, { sx: { alignItems: "center", px: 24, py: 12, gap: 4 }, children: [
|
18399
18390
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: n.mobile_devices_access_title }),
|
18400
|
-
/* @__PURE__ */ t(
|
18391
|
+
/* @__PURE__ */ t(De, { align: "center", variant: "Small", children: n.mobile_devices_access_description }),
|
18401
18392
|
/* @__PURE__ */ t(J, { onClick: f, variant: "text", children: n.mobile_devices_access_cta })
|
18402
18393
|
] }),
|
18403
18394
|
/* @__PURE__ */ t(
|
@@ -18439,7 +18430,7 @@ const X1 = ({
|
|
18439
18430
|
}
|
18440
18431
|
),
|
18441
18432
|
/* @__PURE__ */ t(
|
18442
|
-
|
18433
|
+
Ta,
|
18443
18434
|
{
|
18444
18435
|
initialSelected: i?.category_guid ? i.category_guid : void 0,
|
18445
18436
|
onClose: s,
|
@@ -18577,7 +18568,7 @@ const X1 = ({
|
|
18577
18568
|
}, []), /* @__PURE__ */ l(y, { spacing: 24, sx: { pb: 48, pt: 24 }, children: [
|
18578
18569
|
/* @__PURE__ */ l(y, { sx: { px: r || a ? 0 : 24 }, children: [
|
18579
18570
|
/* @__PURE__ */ t(mt, { children: e.transaction_rules_label }),
|
18580
|
-
/* @__PURE__ */ t(
|
18571
|
+
/* @__PURE__ */ t(De, { variant: "Body", children: e.transaction_rules_description })
|
18581
18572
|
] }),
|
18582
18573
|
/* @__PURE__ */ t(ie, { children: i.map((o, s) => /* @__PURE__ */ t(aC, { rule: o }, s)) })
|
18583
18574
|
] });
|
@@ -18644,7 +18635,7 @@ const X1 = ({
|
|
18644
18635
|
};
|
18645
18636
|
return /* @__PURE__ */ l(y, { children: [
|
18646
18637
|
/* @__PURE__ */ t(
|
18647
|
-
|
18638
|
+
Qa,
|
18648
18639
|
{
|
18649
18640
|
isChecked: n.is_enabled,
|
18650
18641
|
onClick: () => c(!0),
|
@@ -18748,7 +18739,7 @@ const X1 = ({
|
|
18748
18739
|
}
|
18749
18740
|
)
|
18750
18741
|
] }),
|
18751
|
-
/* @__PURE__ */ t(
|
18742
|
+
/* @__PURE__ */ t(De, { sx: { color: "text.secondary", mb: 32, mx: 24, mt: 12 }, variant: "ParagraphSmall", children: `* ${i.delivery_method_sms_note_2}` })
|
18752
18743
|
] }),
|
18753
18744
|
s && n.children?.length && n.children.length > 0 && /* @__PURE__ */ l(y, { children: [
|
18754
18745
|
/* @__PURE__ */ t(p, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: "Accounts" }),
|
@@ -18787,7 +18778,7 @@ const X1 = ({
|
|
18787
18778
|
] }),
|
18788
18779
|
/* @__PURE__ */ t(mt, { mb: 24, children: n.accounts_title }),
|
18789
18780
|
a.map((m) => /* @__PURE__ */ t(
|
18790
|
-
|
18781
|
+
Qa,
|
18791
18782
|
{
|
18792
18783
|
isChecked: m.is_enabled,
|
18793
18784
|
isDisabled: !m.is_enabled,
|
@@ -18804,7 +18795,7 @@ const X1 = ({
|
|
18804
18795
|
/* @__PURE__ */ t(k, { sx: { my: 24 } }),
|
18805
18796
|
/* @__PURE__ */ t(mt, { mb: 24, children: n.budgets_title }),
|
18806
18797
|
r.map((m) => /* @__PURE__ */ t(
|
18807
|
-
|
18798
|
+
Qa,
|
18808
18799
|
{
|
18809
18800
|
isChecked: m.is_enabled,
|
18810
18801
|
isDisabled: !m.is_enabled,
|
@@ -18830,7 +18821,7 @@ const X1 = ({
|
|
18830
18821
|
)
|
18831
18822
|
] });
|
18832
18823
|
}), IE = A(({ onBackClick: e, sx: n }) => {
|
18833
|
-
const { settings: i } = I(), { isCopyLoaded: a, isInitialized: r } = ce(), { config: o } =
|
18824
|
+
const { settings: i } = I(), { isCopyLoaded: a, isInitialized: r } = ce(), { config: o } = Ca(), { alert: s, setAlert: c } = Bt(), { isMobile: d } = xe(), {
|
18834
18825
|
display_user_profile_in_settings: _,
|
18835
18826
|
display_mobile_devices_in_settings: u,
|
18836
18827
|
display_notification_settings_in_settings: h,
|
@@ -19117,9 +19108,9 @@ const lC = (e) => {
|
|
19117
19108
|
}
|
19118
19109
|
for (const c of n) {
|
19119
19110
|
const d = e.transactions.find(
|
19120
|
-
(_) => _.repeating_transaction_guid === e.guid && _.date >
|
19111
|
+
(_) => _.repeating_transaction_guid === e.guid && _.date > Ne(dt(c.expectedDate, 5)) && _.date < Ne(Lt(c.expectedDate, 5))
|
19121
19112
|
);
|
19122
|
-
d ? (c.transaction = d, c.status = Je.Paid, c.occurredOnDate =
|
19113
|
+
d ? (c.transaction = d, c.status = Je.Paid, c.occurredOnDate = Oe(d.date)) : Te(c.expectedDate, dt(le(), 3)) && (c.status = Je.Missed);
|
19123
19114
|
}
|
19124
19115
|
return n;
|
19125
19116
|
}, uC = (e, n, i) => {
|
@@ -19161,7 +19152,7 @@ const lC = (e) => {
|
|
19161
19152
|
return a;
|
19162
19153
|
}, CC = (e, n, i) => {
|
19163
19154
|
const a = [], r = e.expectedDate;
|
19164
|
-
let o = Te(r, i) ? r :
|
19155
|
+
let o = Te(r, i) ? r : Xa(r, 1);
|
19165
19156
|
for (; Te(o, i); )
|
19166
19157
|
Zt(o, n) && a.push({ ...e, expectedDate: o }), o = ei(o, 1);
|
19167
19158
|
return a;
|
@@ -19172,9 +19163,9 @@ const lC = (e) => {
|
|
19172
19163
|
n.push(...a);
|
19173
19164
|
}
|
19174
19165
|
return n.sort(
|
19175
|
-
(i, a) =>
|
19166
|
+
(i, a) => Ne(i.occurredOnDate || i.expectedDate) - Ne(a.occurredOnDate || a.expectedDate)
|
19176
19167
|
);
|
19177
|
-
},
|
19168
|
+
}, Ua = (e, n, i) => {
|
19178
19169
|
const a = [];
|
19179
19170
|
for (const r of n) {
|
19180
19171
|
const o = i.filter(
|
@@ -19196,8 +19187,8 @@ const lC = (e) => {
|
|
19196
19187
|
id: `date-${a}`,
|
19197
19188
|
recurrences: [i]
|
19198
19189
|
}), n;
|
19199
|
-
}, []),
|
19200
|
-
let a = n &&
|
19190
|
+
}, []), rr = (e, n, i) => {
|
19191
|
+
let a = n && lr(n) ? S(e.monthly_ordinal, On(n, Ln)) : e.monthly;
|
19201
19192
|
switch (i) {
|
19202
19193
|
case Ae.EveryQuarter:
|
19203
19194
|
a = n ? S(e.quarterly_ordinal, On(n, Ln)) : e.quarterly;
|
@@ -19303,7 +19294,7 @@ class yC {
|
|
19303
19294
|
try {
|
19304
19295
|
const n = await this.api.getRepeatingTransactions();
|
19305
19296
|
K(() => {
|
19306
|
-
this.repeatingTransactions =
|
19297
|
+
this.repeatingTransactions = Ua(
|
19307
19298
|
this.globalStore.accountStore.visibleAccounts,
|
19308
19299
|
n,
|
19309
19300
|
this.globalStore.transactionStore.transactions
|
@@ -19322,7 +19313,7 @@ class yC {
|
|
19322
19313
|
}), K(() => {
|
19323
19314
|
this.repeatingTransactions = [
|
19324
19315
|
...this.repeatingTransactions,
|
19325
|
-
...
|
19316
|
+
...Ua(
|
19326
19317
|
this.globalStore.accountStore.visibleAccounts,
|
19327
19318
|
[a],
|
19328
19319
|
this.globalStore.transactionStore.transactions
|
@@ -19353,7 +19344,7 @@ class yC {
|
|
19353
19344
|
K(() => {
|
19354
19345
|
this.repeatingTransactions = [
|
19355
19346
|
...this.repeatingTransactions.slice(0, a),
|
19356
|
-
...
|
19347
|
+
...Ua(
|
19357
19348
|
this.globalStore.accountStore.visibleAccounts,
|
19358
19349
|
[i],
|
19359
19350
|
this.globalStore.transactionStore.transactions
|
@@ -19479,15 +19470,15 @@ class TC {
|
|
19479
19470
|
}
|
19480
19471
|
class AC {
|
19481
19472
|
globalStore;
|
19482
|
-
api = new
|
19473
|
+
api = new Ga("/", "");
|
19483
19474
|
userFeatures = [];
|
19484
19475
|
constructor(n) {
|
19485
|
-
this.globalStore = n, this.api = new
|
19476
|
+
this.globalStore = n, this.api = new Ga(n.endpoint, n.sessionToken), Ge(this);
|
19486
19477
|
}
|
19487
19478
|
// DEPRECATED: Initialize api in constructor and use loadUserFeatures instead
|
19488
19479
|
// TODO: Remove this function
|
19489
19480
|
initialize = async (n, i) => {
|
19490
|
-
this.api = new
|
19481
|
+
this.api = new Ga(n, i), await this.loadUserFeatures();
|
19491
19482
|
};
|
19492
19483
|
get userProfile() {
|
19493
19484
|
return this.globalStore.appDataStore.userProfile;
|
@@ -19570,7 +19561,7 @@ class vE {
|
|
19570
19561
|
]), this.globalUiStore.setInitialized(!0);
|
19571
19562
|
};
|
19572
19563
|
}
|
19573
|
-
const
|
19564
|
+
const Va = ({
|
19574
19565
|
children: e,
|
19575
19566
|
isLast: n = !1,
|
19576
19567
|
onClick: i,
|
@@ -19601,7 +19592,7 @@ const Ka = ({
|
|
19601
19592
|
return /* @__PURE__ */ l(j, { children: [
|
19602
19593
|
/* @__PURE__ */ t(wt, { sx: { backgroundColor: "transparent", mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(p, { bold: !0, component: "h2", variant: "XSmall", children: h.actions }) }),
|
19603
19594
|
/* @__PURE__ */ t(
|
19604
|
-
|
19595
|
+
Va,
|
19605
19596
|
{
|
19606
19597
|
onClick: () => {
|
19607
19598
|
E({ is_hidden: !d.is_hidden }), C(F.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: d.guid });
|
@@ -19612,7 +19603,7 @@ const Ka = ({
|
|
19612
19603
|
}
|
19613
19604
|
),
|
19614
19605
|
/* @__PURE__ */ t(
|
19615
|
-
|
19606
|
+
Va,
|
19616
19607
|
{
|
19617
19608
|
onClick: () => {
|
19618
19609
|
n(!0), C(F.ACCOUNT_DETAILS_CLICK_MARK_CLOSED, {
|
@@ -19625,7 +19616,7 @@ const Ka = ({
|
|
19625
19616
|
}
|
19626
19617
|
),
|
19627
19618
|
m.length > 0 && /* @__PURE__ */ t(
|
19628
|
-
|
19619
|
+
Va,
|
19629
19620
|
{
|
19630
19621
|
isLast: !0,
|
19631
19622
|
onClick: () => {
|
@@ -19838,7 +19829,7 @@ const Ka = ({
|
|
19838
19829
|
};
|
19839
19830
|
default: {
|
19840
19831
|
const a = () => {
|
19841
|
-
const r = e.successfully_aggregated_at ?
|
19832
|
+
const r = e.successfully_aggregated_at ? Oe(e.successfully_aggregated_at) : void 0, o = r && ne(r, ee.TIME_STAMP_HOUR_MINUTE);
|
19842
19833
|
if (o)
|
19843
19834
|
return ur(r) ? S(n.last_updated_at, n.today, o) : Dd(r) ? S(n.last_updated_at, n.yesterday, o) : S(
|
19844
19835
|
n.last_updated_at,
|
@@ -19853,7 +19844,7 @@ const Ka = ({
|
|
19853
19844
|
};
|
19854
19845
|
}
|
19855
19846
|
}
|
19856
|
-
},
|
19847
|
+
}, Ka = {
|
19857
19848
|
color: "background.default",
|
19858
19849
|
fontSize: 20,
|
19859
19850
|
gridRow: 1,
|
@@ -19865,12 +19856,12 @@ const Ka = ({
|
|
19865
19856
|
} = he(), { selectedMember: a } = Ht(), { accounts: r, connect: o } = I(), s = kc(a, o), c = Os.includes(a.connection_status) ? {
|
19866
19857
|
color: "error.main",
|
19867
19858
|
ctaCopy: s.cta ?? "",
|
19868
|
-
icon: /* @__PURE__ */ t(
|
19859
|
+
icon: /* @__PURE__ */ t(ha, { sx: { ...Ka } }),
|
19869
19860
|
mainMessage: s.statusName,
|
19870
19861
|
secondaryMessage: `${s.title}.`
|
19871
19862
|
} : {
|
19872
19863
|
color: "success.main",
|
19873
|
-
icon: /* @__PURE__ */ t(wd, { sx: { ...
|
19864
|
+
icon: /* @__PURE__ */ t(wd, { sx: { ...Ka } }),
|
19874
19865
|
mainMessage: s.statusName,
|
19875
19866
|
secondaryMessage: s.title
|
19876
19867
|
};
|
@@ -19909,7 +19900,7 @@ const Ka = ({
|
|
19909
19900
|
Nd,
|
19910
19901
|
{
|
19911
19902
|
sx: {
|
19912
|
-
...
|
19903
|
+
...Ka,
|
19913
19904
|
color: i === Vr.LIGHT ? "grey.900" : "common.white"
|
19914
19905
|
}
|
19915
19906
|
}
|
@@ -19953,7 +19944,7 @@ const Ka = ({
|
|
19953
19944
|
onChange: (b) => c(b.target.value),
|
19954
19945
|
placeholder: e.placeholder,
|
19955
19946
|
value: s,
|
19956
|
-
children: e.options?.map((b) => /* @__PURE__ */ t(
|
19947
|
+
children: e.options?.map((b) => /* @__PURE__ */ t(da, { value: b.value, children: b.label }, b.value))
|
19957
19948
|
}
|
19958
19949
|
)
|
19959
19950
|
] });
|
@@ -20095,7 +20086,7 @@ const Ka = ({
|
|
20095
20086
|
children: /* @__PURE__ */ l(
|
20096
20087
|
xn,
|
20097
20088
|
{
|
20098
|
-
icon: /* @__PURE__ */ t(
|
20089
|
+
icon: /* @__PURE__ */ t(ha, {}),
|
20099
20090
|
severity: "error",
|
20100
20091
|
sx: {
|
20101
20092
|
borderLeft: 5,
|
@@ -20108,7 +20099,7 @@ const Ka = ({
|
|
20108
20099
|
}
|
20109
20100
|
},
|
20110
20101
|
children: [
|
20111
|
-
c.title && /* @__PURE__ */ t(
|
20102
|
+
c.title && /* @__PURE__ */ t(qa, { sx: { fontWeight: 600, marginTop: 2 }, variant: "Body", children: c.title }),
|
20112
20103
|
/* @__PURE__ */ t(p, { component: "p", sx: { whiteSpace: "wrap" }, variant: "ParagraphSmall", children: c.main }),
|
20113
20104
|
c.cta && /* @__PURE__ */ t(
|
20114
20105
|
vs,
|
@@ -20334,7 +20325,7 @@ const Ka = ({
|
|
20334
20325
|
)
|
20335
20326
|
] });
|
20336
20327
|
}, WC = A(FC), UC = ({ onBackClick: e, sx: n = {} }) => {
|
20337
|
-
const [i, a] = g.useState(!1), [r, o] = g.useState(!1), { config: s } =
|
20328
|
+
const [i, a] = g.useState(!1), [r, o] = g.useState(!1), { config: s } = Ca(), { accounts: c, refreshMembers: d } = ve(), { accounts: _ } = I(), { isCopyLoaded: u, isInitialized: h, setSelectedAccounts: m, selectedAccountGuids: C } = ce(), { isDesktop: f } = xe(), { onEvent: E } = V();
|
20338
20329
|
g.useEffect(() => {
|
20339
20330
|
m(c);
|
20340
20331
|
}, [c]);
|
@@ -21110,7 +21101,7 @@ const ZC = () => {
|
|
21110
21101
|
};
|
21111
21102
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
21112
21103
|
/* @__PURE__ */ t(
|
21113
|
-
|
21104
|
+
sr,
|
21114
21105
|
{
|
21115
21106
|
exclusive: !0,
|
21116
21107
|
onChange: s,
|
@@ -21642,7 +21633,7 @@ const gf = ({
|
|
21642
21633
|
}
|
21643
21634
|
)
|
21644
21635
|
] });
|
21645
|
-
},
|
21636
|
+
}, va = ({
|
21646
21637
|
amount: e,
|
21647
21638
|
categoryName: n,
|
21648
21639
|
onAmountChanged: i
|
@@ -21693,7 +21684,7 @@ const gf = ({
|
|
21693
21684
|
onClose: () => o(!1),
|
21694
21685
|
onPrimaryAction: () => n(e, Number(s)),
|
21695
21686
|
primaryText: i.add_save_button,
|
21696
|
-
children: /* @__PURE__ */ t(
|
21687
|
+
children: /* @__PURE__ */ t(va, { amount: s, categoryName: e.name, onAmountChanged: c })
|
21697
21688
|
}
|
21698
21689
|
)
|
21699
21690
|
] });
|
@@ -21803,7 +21794,7 @@ const gf = ({
|
|
21803
21794
|
onPrimaryAction: b,
|
21804
21795
|
primaryText: i.add_save_button,
|
21805
21796
|
children: /* @__PURE__ */ t(
|
21806
|
-
|
21797
|
+
va,
|
21807
21798
|
{
|
21808
21799
|
amount: h,
|
21809
21800
|
categoryName: C?.name || "",
|
@@ -21870,7 +21861,7 @@ const gf = ({
|
|
21870
21861
|
onPrimaryAction: T,
|
21871
21862
|
primaryText: a.edit_save_button,
|
21872
21863
|
children: /* @__PURE__ */ t(
|
21873
|
-
|
21864
|
+
va,
|
21874
21865
|
{
|
21875
21866
|
amount: E,
|
21876
21867
|
categoryName: s.category.name,
|
@@ -22013,7 +22004,7 @@ const gf = ({
|
|
22013
22004
|
onPrimaryAction: w,
|
22014
22005
|
primaryText: n.edit_save_button,
|
22015
22006
|
children: /* @__PURE__ */ t(
|
22016
|
-
|
22007
|
+
va,
|
22017
22008
|
{
|
22018
22009
|
amount: T,
|
22019
22010
|
categoryName: o.category.name,
|
@@ -22280,7 +22271,7 @@ const gf = ({
|
|
22280
22271
|
}), Of = A(() => {
|
22281
22272
|
const e = he(), {
|
22282
22273
|
appDataStore: { banner: n, loadBanner: i, user: a }
|
22283
|
-
} =
|
22274
|
+
} = ba();
|
22284
22275
|
return g.useEffect(() => {
|
22285
22276
|
i().finally();
|
22286
22277
|
}, [a]), n?.image_url ? /* @__PURE__ */ t(
|
@@ -22356,9 +22347,9 @@ const gf = ({
|
|
22356
22347
|
)
|
22357
22348
|
] }) });
|
22358
22349
|
}, Mf = A(Lf);
|
22359
|
-
var
|
22350
|
+
var or = /* @__PURE__ */ ((e) => (e[e.Main = 0] = "Main", e[e.RightSide = 1] = "RightSide", e))(or || {});
|
22360
22351
|
const kf = ({ widgets: e, isLoading: n }) => {
|
22361
|
-
const { isDesktop: i, isMobile: a } = xe(), { copyStore: r } =
|
22352
|
+
const { isDesktop: i, isMobile: a } = xe(), { copyStore: r } = ba(), { setSelectedAccounts: o } = ce(), { visibleAccounts: s } = ve();
|
22362
22353
|
g.useEffect(() => {
|
22363
22354
|
o(s);
|
22364
22355
|
}, [s]);
|
@@ -22366,10 +22357,10 @@ const kf = ({ widgets: e, isLoading: n }) => {
|
|
22366
22357
|
() => e.sort((u, h) => u.index - h.index),
|
22367
22358
|
[e]
|
22368
22359
|
), d = g.useMemo(
|
22369
|
-
() => c.filter((u) => u.location ===
|
22360
|
+
() => c.filter((u) => u.location === or.Main),
|
22370
22361
|
[c]
|
22371
22362
|
), _ = g.useMemo(
|
22372
|
-
() => c.filter((u) => u.location ===
|
22363
|
+
() => c.filter((u) => u.location === or.RightSide),
|
22373
22364
|
[c]
|
22374
22365
|
);
|
22375
22366
|
return /* @__PURE__ */ l(zt, { container: !0, spacing: a ? 0 : 24, sx: { overflow: "scroll" }, children: [
|
@@ -23090,7 +23081,7 @@ const kf = ({ widgets: e, isLoading: n }) => {
|
|
23090
23081
|
}
|
23091
23082
|
)
|
23092
23083
|
] });
|
23093
|
-
}, Hf = A(Bf),
|
23084
|
+
}, Hf = A(Bf), za = ({ title: e }) => /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e }), kE = A(({ onBackClick: e, sx: n }) => {
|
23094
23085
|
const { onEvent: i } = V(), { isMobile: a } = xe(), { visibleInvestmentAccounts: r } = ve(), { investments: o } = I(), { isCopyLoaded: s, isInitialized: c } = ce(), [d, _] = g.useState(0), { loadHoldings: u } = js();
|
23095
23086
|
g.useEffect(() => {
|
23096
23087
|
c && u().finally();
|
@@ -23118,21 +23109,21 @@ const kf = ({ widgets: e, isLoading: n }) => {
|
|
23118
23109
|
/* @__PURE__ */ t(
|
23119
23110
|
Le,
|
23120
23111
|
{
|
23121
|
-
label: /* @__PURE__ */ t(
|
23112
|
+
label: /* @__PURE__ */ t(za, { title: o.tab_overview_title }),
|
23122
23113
|
sx: { "&.Mui-selected": { color: "primary.light" } }
|
23123
23114
|
}
|
23124
23115
|
),
|
23125
23116
|
/* @__PURE__ */ t(
|
23126
23117
|
Le,
|
23127
23118
|
{
|
23128
|
-
label: /* @__PURE__ */ t(
|
23119
|
+
label: /* @__PURE__ */ t(za, { title: o.tab_allocation_title }),
|
23129
23120
|
sx: { "&.Mui-selected": { color: "primary.light" } }
|
23130
23121
|
}
|
23131
23122
|
),
|
23132
23123
|
/* @__PURE__ */ t(
|
23133
23124
|
Le,
|
23134
23125
|
{
|
23135
|
-
label: /* @__PURE__ */ t(
|
23126
|
+
label: /* @__PURE__ */ t(za, { title: o.tab_analysis_title }),
|
23136
23127
|
sx: { "&.Mui-selected": { color: "primary.light" } }
|
23137
23128
|
}
|
23138
23129
|
)
|
@@ -23370,7 +23361,7 @@ const Gi = g.createContext(null), zf = ({
|
|
23370
23361
|
onPageview: n,
|
23371
23362
|
store: i,
|
23372
23363
|
children: a
|
23373
|
-
}) => /* @__PURE__ */ t(Gi.Provider, { value: { onEvent: e, onPageview: n, store: i, children: a }, children: a }),
|
23364
|
+
}) => /* @__PURE__ */ t(Gi.Provider, { value: { onEvent: e, onPageview: n, store: i, children: a }, children: a }), wa = g.forwardRef(
|
23374
23365
|
function({
|
23375
23366
|
actionText: n,
|
23376
23367
|
ariaLabel: i,
|
@@ -23394,7 +23385,7 @@ const Gi = g.createContext(null), zf = ({
|
|
23394
23385
|
E && E <= 325 && x(3);
|
23395
23386
|
}, [E]);
|
23396
23387
|
const { cardStyle: R, linkTextStyle: D } = h, H = f ? R : { border: "none", boxShadow: "none", ...R }, O = /* @__PURE__ */ t(
|
23397
|
-
|
23388
|
+
De,
|
23398
23389
|
{
|
23399
23390
|
className: "mx-micro-card-description",
|
23400
23391
|
color: m.textColor ? "undefined" : "text.primary",
|
@@ -24439,7 +24430,7 @@ const Gi = g.createContext(null), zf = ({
|
|
24439
24430
|
});
|
24440
24431
|
};
|
24441
24432
|
return /* @__PURE__ */ t(
|
24442
|
-
|
24433
|
+
wa,
|
24443
24434
|
{
|
24444
24435
|
actionText: i.micro_call_to_action || E.micro_card_cta,
|
24445
24436
|
ariaLabel: e,
|
@@ -24609,11 +24600,11 @@ const Gi = g.createContext(null), zf = ({
|
|
24609
24600
|
w.card_position_in_carousel_aria,
|
24610
24601
|
Pe.toString(),
|
24611
24602
|
_e.toString()
|
24612
|
-
), it = re.micro_title && re.micro_title.length > 0, $t = re.micro_description && re.micro_description.length > 0, ct = it ? re.micro_title : re.title,
|
24603
|
+
), it = re.micro_title && re.micro_title.length > 0, $t = re.micro_description && re.micro_description.length > 0, ct = it ? re.micro_title : re.title, Re = $t ? re.micro_description : re.description;
|
24613
24604
|
return /* @__PURE__ */ t(
|
24614
24605
|
i0,
|
24615
24606
|
{
|
24616
|
-
ariaLabel: `${$e}: ${ct}, ${
|
24607
|
+
ariaLabel: `${$e}: ${ct}, ${Re}`,
|
24617
24608
|
beat: re,
|
24618
24609
|
index: Se,
|
24619
24610
|
isActiveCard: Se === Z,
|
@@ -24786,7 +24777,7 @@ const Gi = g.createContext(null), zf = ({
|
|
24786
24777
|
});
|
24787
24778
|
};
|
24788
24779
|
return /* @__PURE__ */ t(
|
24789
|
-
|
24780
|
+
wa,
|
24790
24781
|
{
|
24791
24782
|
actionText: u.micro_card_cta,
|
24792
24783
|
ariaLabel: e,
|
@@ -24833,7 +24824,7 @@ const Gi = g.createContext(null), zf = ({
|
|
24833
24824
|
return g.useEffect(() => {
|
24834
24825
|
_(Mn.MICRO_WIDGET_CAROUSEL_ZERO_STATE);
|
24835
24826
|
}, []), /* @__PURE__ */ t(
|
24836
|
-
|
24827
|
+
wa,
|
24837
24828
|
{
|
24838
24829
|
ariaLabel: e,
|
24839
24830
|
description: u.carousel_zero_state_description,
|
@@ -24870,7 +24861,7 @@ const Gi = g.createContext(null), zf = ({
|
|
24870
24861
|
justifyContent: "center",
|
24871
24862
|
width: "100%"
|
24872
24863
|
},
|
24873
|
-
children: /* @__PURE__ */ t(
|
24864
|
+
children: /* @__PURE__ */ t(cr, {})
|
24874
24865
|
}
|
24875
24866
|
), fn = new Kf(), h0 = ({
|
24876
24867
|
areBeatsLoading: e,
|
@@ -24978,7 +24969,7 @@ const Gi = g.createContext(null), zf = ({
|
|
24978
24969
|
});
|
24979
24970
|
};
|
24980
24971
|
return /* @__PURE__ */ t(
|
24981
|
-
|
24972
|
+
wa,
|
24982
24973
|
{
|
24983
24974
|
actionText: m.micro_card_cta,
|
24984
24975
|
ariaLabel: n,
|
@@ -25205,7 +25196,7 @@ const Gi = g.createContext(null), zf = ({
|
|
25205
25196
|
const { recurring: i } = I(), [a, r] = g.useState(!1), o = g.useMemo(
|
25206
25197
|
() => n.transactions.length === 0 ? "" : n.transactions[0].category_guid || "",
|
25207
25198
|
[n]
|
25208
|
-
), s = n.account?.institutionName || "", c = n.repeating_transaction_type === on.Income, d =
|
25199
|
+
), s = n.account?.institutionName || "", c = n.repeating_transaction_type === on.Income, d = rr(
|
25209
25200
|
i,
|
25210
25201
|
Ri(n.predicted_occurs_on),
|
25211
25202
|
n.recurrence_type
|
@@ -25301,7 +25292,7 @@ const Gi = g.createContext(null), zf = ({
|
|
25301
25292
|
}) => {
|
25302
25293
|
const { recurring: r } = I(), { searchValue: o, setSearchValue: s } = St();
|
25303
25294
|
return /* @__PURE__ */ l(y, { sx: { bgcolor: e, gap: 16, pt: 8 }, children: [
|
25304
|
-
n && /* @__PURE__ */ t(
|
25295
|
+
n && /* @__PURE__ */ t(De, { sx: { mx: 24 }, children: n }),
|
25305
25296
|
/* @__PURE__ */ t(
|
25306
25297
|
Mi,
|
25307
25298
|
{
|
@@ -25337,14 +25328,14 @@ const Gi = g.createContext(null), zf = ({
|
|
25337
25328
|
{ id: Ae.EveryYear, label: c.frequency_every_year }
|
25338
25329
|
];
|
25339
25330
|
g.useEffect(() => {
|
25340
|
-
const u =
|
25331
|
+
const u = Oe(s.date);
|
25341
25332
|
o(qi(u)), r(Ae.EveryMonth);
|
25342
25333
|
}, [s]);
|
25343
25334
|
const _ = (u) => {
|
25344
|
-
const h =
|
25335
|
+
const h = Oe(s.date);
|
25345
25336
|
switch (Number(u.target.value)) {
|
25346
25337
|
case Ae.EveryWeek:
|
25347
|
-
o(
|
25338
|
+
o(ma(h));
|
25348
25339
|
break;
|
25349
25340
|
case Ae.EveryOtherWeek:
|
25350
25341
|
o(Gs(h));
|
@@ -25369,8 +25360,8 @@ const Gi = g.createContext(null), zf = ({
|
|
25369
25360
|
};
|
25370
25361
|
return /* @__PURE__ */ l(y, { bgcolor: e, gap: 24, height: "100%", children: [
|
25371
25362
|
/* @__PURE__ */ l(y, { children: [
|
25372
|
-
/* @__PURE__ */ t(
|
25373
|
-
/* @__PURE__ */ t(
|
25363
|
+
/* @__PURE__ */ t(Ea, { bgcolor: e, children: Oi(s.date) }),
|
25364
|
+
/* @__PURE__ */ t(ya, { transaction: s })
|
25374
25365
|
] }),
|
25375
25366
|
/* @__PURE__ */ t(p, { bold: !0, sx: { mx: 24 }, variant: "Body", children: i ? c.income_schedule : c.expense_schedule }),
|
25376
25367
|
/* @__PURE__ */ t(
|
@@ -25387,11 +25378,11 @@ const Gi = g.createContext(null), zf = ({
|
|
25387
25378
|
sx: { mx: 24 },
|
25388
25379
|
value: n,
|
25389
25380
|
variant: "outlined",
|
25390
|
-
children: d.map((u) => /* @__PURE__ */ t(
|
25381
|
+
children: d.map((u) => /* @__PURE__ */ t(da, { value: u.id, children: u.label }, u.id))
|
25391
25382
|
}
|
25392
25383
|
),
|
25393
25384
|
/* @__PURE__ */ t(Nn, { dateAdapter: gn, children: /* @__PURE__ */ t(
|
25394
|
-
|
25385
|
+
la,
|
25395
25386
|
{
|
25396
25387
|
disablePast: !0,
|
25397
25388
|
label: i ? c.income_date_label : c.expense_date_label,
|
@@ -25548,17 +25539,17 @@ const Gi = g.createContext(null), zf = ({
|
|
25548
25539
|
e === 0 && /* @__PURE__ */ t(y0, {}),
|
25549
25540
|
e === 1 && /* @__PURE__ */ t(E0, {})
|
25550
25541
|
] });
|
25551
|
-
}),
|
25542
|
+
}), Na = {
|
25552
25543
|
gridRow: 1,
|
25553
25544
|
gridColumn: 1,
|
25554
25545
|
zIndex: 2
|
25555
|
-
},
|
25546
|
+
}, Da = (e) => e ? { margin: "0 0 -6px -4px" } : void 0, Br = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Da(e) }, children: /* @__PURE__ */ t(Zl, { color: "primary", filled: !0, sx: { fontSize: n, ...Na } }) }), Hr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Da(e) }, children: /* @__PURE__ */ t(
|
25556
25547
|
Ql,
|
25557
25548
|
{
|
25558
25549
|
filled: !0,
|
25559
|
-
sx: { color: "categories.income", fontSize: n, ...
|
25550
|
+
sx: { color: "categories.income", fontSize: n, ...Na }
|
25560
25551
|
}
|
25561
|
-
) }), $r = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...
|
25552
|
+
) }), $r = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Da(e) }, children: /* @__PURE__ */ t(Es, { color: "error", filled: !0, sx: { fontSize: n, ...Na } }) }), Fr = ({ isOffset: e = !1, size: n = 16 }) => /* @__PURE__ */ t(Xt, { size: n, sx: { ...Da(e) }, children: /* @__PURE__ */ t(ra, { color: "success", filled: !0, sx: { fontSize: n, ...Na } }) }), T0 = A(
|
25562
25553
|
({ day: e, outsideCurrentMonth: n, ...i }) => {
|
25563
25554
|
const { recurring: a } = I(), { selectedAccountGuids: r } = ce(), { recurrences: o, setSelectedDay: s } = Pt(), d = g.useMemo(
|
25564
25555
|
() => o.filter((f) => r.includes(f.accountGuid)),
|
@@ -25737,7 +25728,7 @@ const Gi = g.createContext(null), zf = ({
|
|
25737
25728
|
[e]
|
25738
25729
|
), _ = e.type === Yt.Income, u = e.status === Je.Paid, h = e.status === Je.Missed, m = e.status === Je.Upcoming;
|
25739
25730
|
let C = r.paid?.toLowerCase();
|
25740
|
-
return h ? C = r.missed?.toLowerCase() : m && (C = a ?
|
25731
|
+
return h ? C = r.missed?.toLowerCase() : m && (C = a ? rr(r, e.expectedDate, e.frequency) : rr(r, null, e.frequency)), /* @__PURE__ */ l(Y, { disableGutters: !0, disablePadding: !0, children: [
|
25741
25732
|
/* @__PURE__ */ l(de, { onClick: () => {
|
25742
25733
|
c(!0), i(e);
|
25743
25734
|
}, children: [
|
@@ -26083,7 +26074,7 @@ const Gi = g.createContext(null), zf = ({
|
|
26083
26074
|
}
|
26084
26075
|
);
|
26085
26076
|
}
|
26086
|
-
),
|
26077
|
+
), Ya = 5, N0 = (e, n) => n.reduce((i, a) => {
|
26087
26078
|
if (a.total > 0) {
|
26088
26079
|
const r = e.find((_) => _.guid === a.category_guid);
|
26089
26080
|
if (!r) return i;
|
@@ -26108,14 +26099,14 @@ const Gi = g.createContext(null), zf = ({
|
|
26108
26099
|
const i = N0(e, n), a = i.filter((d) => d.guid !== N.INCOME && d.guid !== N.TRANSFER).sort((d, _) => _.amount - d.amount), r = a.reduce(
|
26109
26100
|
(d, _) => d + _.amount,
|
26110
26101
|
0
|
26111
|
-
), o = a.length >
|
26102
|
+
), o = a.length > Ya ? Ya : a.length, s = a.slice(0, o), c = s.map((d) => ({
|
26112
26103
|
id: d.guid,
|
26113
26104
|
color: d.color,
|
26114
26105
|
label: d.name,
|
26115
26106
|
value: d.amount / r * 100
|
26116
26107
|
}));
|
26117
26108
|
if (a.length > 5) {
|
26118
|
-
const d = a.slice(
|
26109
|
+
const d = a.slice(Ya, i.length), _ = d.reduce(
|
26119
26110
|
(u, h) => u + h.amount,
|
26120
26111
|
0
|
26121
26112
|
);
|
@@ -26402,7 +26393,7 @@ const Gi = g.createContext(null), zf = ({
|
|
26402
26393
|
}
|
26403
26394
|
),
|
26404
26395
|
/* @__PURE__ */ t(k, {}),
|
26405
|
-
s.categoryTotals && s.categoryTotals.length > 0 && /* @__PURE__ */ t(
|
26396
|
+
s.categoryTotals && s.categoryTotals.length > 0 && /* @__PURE__ */ t(_a, { in: o?.guid === s.guid, unmountOnExit: !0, children: /* @__PURE__ */ l(ie, { children: [
|
26406
26397
|
o?.categoryTotals?.map((c) => /* @__PURE__ */ t(
|
26407
26398
|
Y,
|
26408
26399
|
{
|
@@ -26621,7 +26612,7 @@ const Gi = g.createContext(null), zf = ({
|
|
26621
26612
|
children: /* @__PURE__ */ t(L, { height: "calc(100dvh - 150px)", overflow: "scroll", width: "100%", children: /* @__PURE__ */ t(H0, {}) })
|
26622
26613
|
}
|
26623
26614
|
);
|
26624
|
-
}, WE = A($0), F0 = (e) => kn[e] ?? kn.default, W0 = (e) =>
|
26615
|
+
}, WE = A($0), F0 = (e) => kn[e] ?? kn.default, W0 = (e) => ga[e];
|
26625
26616
|
function U0(e, n) {
|
26626
26617
|
const i = [], a = new Date(e);
|
26627
26618
|
for (; a <= n; ) {
|
@@ -26660,7 +26651,7 @@ const V0 = (e) => e.reduce((i, a) => {
|
|
26660
26651
|
const n = e.row[e.field];
|
26661
26652
|
return /* @__PURE__ */ t(y, { alignItems: "flex-end", tabIndex: e.tabIndex, children: /* @__PURE__ */ t(Ue, { amount: n, variant: "Small" }) });
|
26662
26653
|
}, j0 = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
26663
|
-
const { categories: i } = I(), a =
|
26654
|
+
const { categories: i } = I(), a = ga[e];
|
26664
26655
|
return /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", justifyContent: "center", children: [
|
26665
26656
|
/* @__PURE__ */ t(
|
26666
26657
|
L,
|
@@ -26811,45 +26802,45 @@ const V0 = (e) => e.reduce((i, a) => {
|
|
26811
26802
|
}, [C, f, X]);
|
26812
26803
|
const Z = g.useMemo(() => {
|
26813
26804
|
if (!x) return { stackedDatasets: [], unstackedDatasets: [] };
|
26814
|
-
const
|
26805
|
+
const Re = K0(
|
26815
26806
|
_,
|
26816
26807
|
X.start,
|
26817
26808
|
X.end
|
26818
|
-
), ut = O.length ?
|
26809
|
+
), ut = O.length ? Re.filter(
|
26819
26810
|
(un) => un.top_level_category_guid === O || un.category_guid === O
|
26820
|
-
) : im(
|
26811
|
+
) : im(Re);
|
26821
26812
|
return {
|
26822
26813
|
stackedDatasets: ut.filter(tm),
|
26823
|
-
unstackedDatasets: ut.filter(
|
26814
|
+
unstackedDatasets: ut.filter(xa)
|
26824
26815
|
};
|
26825
26816
|
}, [_, O, X]), we = g.useMemo(() => {
|
26826
|
-
const
|
26817
|
+
const Re = ne(
|
26827
26818
|
X.start,
|
26828
26819
|
s ? ee.MONTH_SHORT_YEAR : ee.MONTH_YEAR
|
26829
26820
|
), ut = ne(
|
26830
26821
|
X.end,
|
26831
26822
|
s ? ee.MONTH_SHORT_YEAR : ee.MONTH_YEAR
|
26832
26823
|
);
|
26833
|
-
return `${
|
26834
|
-
}, [X, s]), re = (
|
26824
|
+
return `${Re} - ${ut}`;
|
26825
|
+
}, [X, s]), re = (Re, ut) => {
|
26835
26826
|
H(ut ?? D), a(F.TRENDS_CLICK_TOGGLE);
|
26836
|
-
}, Se = (
|
26837
|
-
const ut = to(
|
26827
|
+
}, Se = (Re) => {
|
26828
|
+
const ut = to(Re?.[0], 1), un = Re?.[1], se = Hd(un, ut);
|
26838
26829
|
W({ start: ut, end: un }), a(F.TRENDS_CLICK_DATE, {
|
26839
26830
|
time_period: se + "M"
|
26840
26831
|
});
|
26841
26832
|
}, Pe = () => {
|
26842
26833
|
a(F.TRENDS_CLICK_FILTER);
|
26843
|
-
}, _e = (
|
26844
|
-
M(
|
26845
|
-
}, $e = (
|
26846
|
-
M(
|
26847
|
-
}, it = (
|
26848
|
-
a(F.TRENDS_HOVER_LEGEND, { category: u(
|
26849
|
-
}, $t = (
|
26850
|
-
a(F.TRENDS_HOVER_AREA, { category:
|
26851
|
-
}, ct = (
|
26852
|
-
a(F.TRENDS_HOVER_POINT, { category:
|
26834
|
+
}, _e = (Re) => {
|
26835
|
+
M(Re);
|
26836
|
+
}, $e = (Re) => {
|
26837
|
+
M(Re), a(F.TRENDS_CLICK_LEGEND, { category: u(Re) });
|
26838
|
+
}, it = (Re) => {
|
26839
|
+
a(F.TRENDS_HOVER_LEGEND, { category: u(Re) });
|
26840
|
+
}, $t = (Re) => {
|
26841
|
+
a(F.TRENDS_HOVER_AREA, { category: Re });
|
26842
|
+
}, ct = (Re) => {
|
26843
|
+
a(F.TRENDS_HOVER_POINT, { category: Re });
|
26853
26844
|
};
|
26854
26845
|
return !m || !C || !x ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ l(
|
26855
26846
|
Nt,
|
@@ -26896,13 +26887,13 @@ const V0 = (e) => e.reduce((i, a) => {
|
|
26896
26887
|
/* @__PURE__ */ t(p, { variant: r ? "Body" : "Small", children: we })
|
26897
26888
|
] }),
|
26898
26889
|
/* @__PURE__ */ t(
|
26899
|
-
|
26890
|
+
sr,
|
26900
26891
|
{
|
26901
26892
|
exclusive: !0,
|
26902
26893
|
onChange: re,
|
26903
26894
|
orientation: "horizontal",
|
26904
26895
|
value: D,
|
26905
|
-
children: ["Chart", "Table"].map((
|
26896
|
+
children: ["Chart", "Table"].map((Re) => /* @__PURE__ */ t(
|
26906
26897
|
aa,
|
26907
26898
|
{
|
26908
26899
|
sx: {
|
@@ -26927,10 +26918,10 @@ const V0 = (e) => e.reduce((i, a) => {
|
|
26927
26918
|
color: i.palette.grey[500]
|
26928
26919
|
}
|
26929
26920
|
},
|
26930
|
-
value:
|
26931
|
-
children:
|
26921
|
+
value: Re,
|
26922
|
+
children: Re === "Chart" ? /* @__PURE__ */ t(B, { name: "table_chart_view" }) : /* @__PURE__ */ t(B, { name: "format_list_bulleted" })
|
26932
26923
|
},
|
26933
|
-
|
26924
|
+
Re
|
26934
26925
|
))
|
26935
26926
|
}
|
26936
26927
|
)
|
@@ -26998,7 +26989,7 @@ const V0 = (e) => e.reduce((i, a) => {
|
|
26998
26989
|
}
|
26999
26990
|
);
|
27000
26991
|
}, ab = A(ib), rb = ({ onPrimaryCtaClick: e, sx: n }) => {
|
27001
|
-
const { loadMonthlyCategoryTotals: i, monthlyTotalsLoaded: a } = We(), { isInitialized: r } =
|
26992
|
+
const { loadMonthlyCategoryTotals: i, monthlyTotalsLoaded: a } = We(), { isInitialized: r } = ba(), { trends: o } = I(), { isCopyLoaded: s, selectedAccounts: c } = ce();
|
27002
26993
|
return g.useEffect(() => {
|
27003
26994
|
r && i(c).finally();
|
27004
26995
|
}, [r, c]), s ? /* @__PURE__ */ t(
|
@@ -27051,12 +27042,12 @@ export {
|
|
27051
27042
|
fE as CashflowWidget,
|
27052
27043
|
oo as CategoryApi,
|
27053
27044
|
kn as CategoryColors,
|
27054
|
-
|
27045
|
+
ga as CategoryGuidToName,
|
27055
27046
|
N as CategoryGuids,
|
27056
27047
|
Kd as CategoryIcon,
|
27057
27048
|
ic as CategoryRow,
|
27058
27049
|
J_ as CategorySelector,
|
27059
|
-
|
27050
|
+
Ta as CategorySelectorDrawer,
|
27060
27051
|
ah as CategoryStore,
|
27061
27052
|
Zf as ChartFilledIcon,
|
27062
27053
|
Js as ConnectCard,
|
@@ -27071,7 +27062,7 @@ export {
|
|
27071
27062
|
Ms as DEFAULT_DONUT_SIZE,
|
27072
27063
|
ks as DEFAULT_STROKE_WIDTH,
|
27073
27064
|
ME as Dashboard,
|
27074
|
-
|
27065
|
+
or as DashboardLocation,
|
27075
27066
|
Bn as DataRow,
|
27076
27067
|
go as DateRangeSelector,
|
27077
27068
|
Ic as DebtsChart,
|
@@ -27095,7 +27086,7 @@ export {
|
|
27095
27086
|
vE as GlobalStore,
|
27096
27087
|
Ho as GoalApi,
|
27097
27088
|
pp as GoalStore,
|
27098
|
-
|
27089
|
+
tr as GoalType,
|
27099
27090
|
EE as GoalsWidget,
|
27100
27091
|
x1 as HelpContent,
|
27101
27092
|
v1 as HelpList,
|
@@ -27120,7 +27111,7 @@ export {
|
|
27120
27111
|
At as MetaType,
|
27121
27112
|
Ds as MfaStatuses,
|
27122
27113
|
s0 as MicroBeatCarousel,
|
27123
|
-
|
27114
|
+
wa as MicroInsightCard,
|
27124
27115
|
Dn as MiniWidgetContainer,
|
27125
27116
|
e0 as MonthlySpendComparisonIcon,
|
27126
27117
|
dE as MultiSegmentDonut,
|
@@ -27178,14 +27169,14 @@ export {
|
|
27178
27169
|
hn as TOUCH_TARGET,
|
27179
27170
|
z as TRANSACTION_EVENTS,
|
27180
27171
|
ri as TabContentContainer,
|
27181
|
-
|
27172
|
+
Qa as ToggleButtonListItem,
|
27182
27173
|
Jn as ToggleListItem,
|
27183
27174
|
gi as TopActions,
|
27184
27175
|
U as TrackType,
|
27185
27176
|
Ji as TransactionApi,
|
27186
27177
|
Yn as TransactionDetails,
|
27187
27178
|
mn as TransactionList,
|
27188
|
-
|
27179
|
+
ya as TransactionRow,
|
27189
27180
|
rC as TransactionRulesTab,
|
27190
27181
|
Sr as TransactionStatus,
|
27191
27182
|
f_ as TransactionStore,
|
@@ -27194,7 +27185,7 @@ export {
|
|
27194
27185
|
mE as TransactionWidget,
|
27195
27186
|
UE as TrendsFullWidget,
|
27196
27187
|
VE as TrendsMiniWidget,
|
27197
|
-
|
27188
|
+
Ga as UserApi,
|
27198
27189
|
AC as UserStore,
|
27199
27190
|
h_ as UserVerification,
|
27200
27191
|
m0 as ViewMoreMicroCard,
|
@@ -27211,7 +27202,7 @@ export {
|
|
27211
27202
|
P as formatCurrency,
|
27212
27203
|
ne as formatDate,
|
27213
27204
|
Fs as formatOrdinal,
|
27214
|
-
|
27205
|
+
pa as formatPercentage,
|
27215
27206
|
$s as fromTimestampToMonthYear,
|
27216
27207
|
yc as getAccountBalanceDetails,
|
27217
27208
|
vg as getAccountDetailFields,
|
@@ -27224,21 +27215,21 @@ export {
|
|
27224
27215
|
Pn as getLocale,
|
27225
27216
|
AE as getNotificationDetailRoute,
|
27226
27217
|
nE as isIncome,
|
27227
|
-
|
27218
|
+
Za as isValidNumber,
|
27228
27219
|
ve as useAccountStore,
|
27229
27220
|
Ht as useAccountUiStore,
|
27230
|
-
|
27221
|
+
Ca as useAppConfig,
|
27231
27222
|
st as useBudgetsStore,
|
27232
27223
|
br as useCashflowStore,
|
27233
27224
|
We as useCategoryStore,
|
27234
27225
|
pn as useCategoryUiStore,
|
27235
27226
|
iu as useCombineEvents,
|
27236
27227
|
au as useCombinePageviews,
|
27237
|
-
|
27228
|
+
fa as useDebtStore,
|
27238
27229
|
V as useEvent,
|
27239
27230
|
IC as useGetMergeableAccounts,
|
27240
27231
|
I as useGlobalCopyStore,
|
27241
|
-
|
27232
|
+
ba as useGlobalStore,
|
27242
27233
|
ce as useGlobalUiStore,
|
27243
27234
|
nt as useGoalStore,
|
27244
27235
|
yr as useHelpStore,
|