@mx-cartographer/experiences 6.2.3-alpha.bb3 → 6.2.3-alpha.bb4
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 +379 -381
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -4,9 +4,9 @@ import { observer as A } from "mobx-react-lite";
|
|
4
4
|
import M from "@mui/material/Box";
|
5
5
|
import G from "@mui/material/Divider";
|
6
6
|
import ae from "@mui/material/List";
|
7
|
-
import
|
7
|
+
import Ot from "@mui/material/ListSubheader";
|
8
8
|
import Ee from "@mui/system/Stack";
|
9
|
-
import { AccountsIcon as rl, P as Le, Icon as P, useTokens as ft, Text as p, H2 as $n, CategoryIcon as
|
9
|
+
import { AccountsIcon as rl, P as Le, Icon as P, useTokens as ft, Text as p, H2 as $n, CategoryIcon as Gt, DialogHeader as ol, DialogFooter as sl, Drawer as cl, Footer as ll, DateRangePicker as Vr, H3 as mt, H1 as cn, TextField as An, IconWeight as yt, MerchantLogo as ln, CategoryIconVariants as Cs, InstitutionLogo as pt, ChevronRightIcon as dl, THEMES as Kr } from "@mxenabled/mxui";
|
10
10
|
import ul from "bowser";
|
11
11
|
import { getUnixTime as Oe } from "date-fns/getUnixTime";
|
12
12
|
import { intlFormat as _l } from "date-fns/intlFormat";
|
@@ -49,12 +49,12 @@ import Sl from "@mui/icons-material/KeyboardArrowLeftRounded";
|
|
49
49
|
import Tl from "@mui/icons-material/KeyboardArrowRightRounded";
|
50
50
|
import { isSameDay as lt } from "date-fns/isSameDay";
|
51
51
|
import { isWithinInterval as Bn } from "date-fns/isWithinInterval";
|
52
|
-
import * as
|
52
|
+
import * as Rt from "d3";
|
53
53
|
import { selectAll as Al, interpolateString as Il, arc as xl } from "d3";
|
54
|
-
import { useTheme as
|
54
|
+
import { useTheme as it, alpha as Tn, keyframes as vl, ThemeProvider as wl } from "@mui/material/styles";
|
55
55
|
import { ResponsiveChartContainer as Nl, AreaPlot as Dl, LinePlot as Rl, MarkPlot as Ol, BarPlot as Ll, ChartsXAxis as Ml, ChartsYAxis as kl, ChartsReferenceLine as Gl, ChartsLegend as Bl, LineChart as bs } from "@mui/x-charts";
|
56
|
-
import
|
57
|
-
import
|
56
|
+
import Bt from "@mui/material/Card";
|
57
|
+
import Pt from "@mui/material/CardContent";
|
58
58
|
import Je from "@mui/material/Grid";
|
59
59
|
import { differenceInCalendarDays as Pl } from "date-fns/differenceInCalendarDays";
|
60
60
|
import { endOfToday as In } from "date-fns/endOfToday";
|
@@ -64,7 +64,7 @@ import { subDays as ut } from "date-fns/subDays";
|
|
64
64
|
import { subYears as qa } from "date-fns/subYears";
|
65
65
|
import Hl from "@mui/material/ButtonGroup";
|
66
66
|
import ke from "@mui/material/Tab";
|
67
|
-
import
|
67
|
+
import Mt from "@mui/material/Tabs";
|
68
68
|
import aa from "@mui/material/ToggleButton";
|
69
69
|
import lr from "@mui/material/ToggleButtonGroup";
|
70
70
|
import $l from "@mui/material/Dialog";
|
@@ -92,14 +92,14 @@ import xn from "@mui/material/Alert";
|
|
92
92
|
import vi from "@mui/material/Snackbar";
|
93
93
|
import { useVirtualizer as Ts } from "@tanstack/react-virtual";
|
94
94
|
import { parseISO as wi } from "date-fns/parseISO";
|
95
|
-
import
|
96
|
-
import { isAfter as
|
95
|
+
import Wt from "@mui/material/Skeleton";
|
96
|
+
import { isAfter as kt } from "date-fns/isAfter";
|
97
97
|
import { subWeeks as eo } from "date-fns/subWeeks";
|
98
98
|
import { formatISO as si } from "date-fns/formatISO";
|
99
99
|
import { AdapterDateFns as gn } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
100
100
|
import { DatePicker as la } from "@mui/x-date-pickers";
|
101
101
|
import { LocalizationProvider as Nn } from "@mui/x-date-pickers/LocalizationProvider";
|
102
|
-
import
|
102
|
+
import nt from "@mui/material/TextField";
|
103
103
|
import { isValid as ur } from "date-fns/isValid";
|
104
104
|
import { subQuarters as As } from "date-fns/subQuarters";
|
105
105
|
import { getMonth as Qn } from "date-fns/getMonth";
|
@@ -126,7 +126,7 @@ import Td from "@mui/icons-material/AccessTimeFilled";
|
|
126
126
|
import Ad from "@mui/icons-material/MonetizationOn";
|
127
127
|
import ua from "@mui/icons-material/CheckCircle";
|
128
128
|
import { getDate as Jn } from "date-fns/getDate";
|
129
|
-
import
|
129
|
+
import zt from "@mui/material/Unstable_Grid2";
|
130
130
|
import _a from "@mui/material/Collapse";
|
131
131
|
import vs from "@mui/material/CardActionArea";
|
132
132
|
import Id from "@mui/icons-material/DragHandle";
|
@@ -884,7 +884,7 @@ const hn = 44, ro = (e, n) => e.find((i) => i.guid === n), Xd = (e, n) => e.find
|
|
884
884
|
);
|
885
885
|
return i ? r : r.join("");
|
886
886
|
}, oE = (e, n, i, ...a) => !e || !n ? "" : S(i === 1 ? e : n, ...a), Pn = () => (window?.app?.options?.language || document.querySelector("html")?.getAttribute("lang") || "en-US").toLowerCase();
|
887
|
-
class
|
887
|
+
class at {
|
888
888
|
endpoint = "/";
|
889
889
|
headers;
|
890
890
|
constructor(n, i, a) {
|
@@ -1039,7 +1039,7 @@ const B = (e, n, i) => {
|
|
1039
1039
|
class tu {
|
1040
1040
|
fetchInstance;
|
1041
1041
|
constructor(n, i) {
|
1042
|
-
this.fetchInstance = new
|
1042
|
+
this.fetchInstance = new at(n, i);
|
1043
1043
|
}
|
1044
1044
|
initializeAnalyticsSession = async (n, i) => {
|
1045
1045
|
const a = ul.getParser(window.navigator.userAgent), { analytics_session: r } = await this.fetchInstance.post(k.ANALYTICS_SESSION, {
|
@@ -1067,7 +1067,7 @@ class tu {
|
|
1067
1067
|
class oo {
|
1068
1068
|
fetchInstance;
|
1069
1069
|
constructor(n) {
|
1070
|
-
this.fetchInstance = new
|
1070
|
+
this.fetchInstance = new at(n, "", {
|
1071
1071
|
Accept: "application/json",
|
1072
1072
|
"Content-Type": "application/json"
|
1073
1073
|
});
|
@@ -1084,7 +1084,7 @@ class oo {
|
|
1084
1084
|
class ii {
|
1085
1085
|
fetchInstance;
|
1086
1086
|
constructor(n, i) {
|
1087
|
-
this.fetchInstance = new
|
1087
|
+
this.fetchInstance = new at(n, i);
|
1088
1088
|
}
|
1089
1089
|
getBeats = async (n, i) => {
|
1090
1090
|
const a = `page=${n || 1}&per_page=${i || 5}`;
|
@@ -1101,7 +1101,7 @@ class ii {
|
|
1101
1101
|
class so {
|
1102
1102
|
fetchInstance;
|
1103
1103
|
constructor(n, i) {
|
1104
|
-
this.fetchInstance = new
|
1104
|
+
this.fetchInstance = new at(n, i);
|
1105
1105
|
}
|
1106
1106
|
addCategory = async (n) => this.fetchInstance.post(k.CATEGORIES, n).then((i) => i.category);
|
1107
1107
|
getCategories = async () => this.fetchInstance.get(k.CATEGORIES).then((n) => n.categories);
|
@@ -1126,14 +1126,14 @@ class so {
|
|
1126
1126
|
class fi {
|
1127
1127
|
fetchInstance;
|
1128
1128
|
constructor(n, i) {
|
1129
|
-
this.fetchInstance = new
|
1129
|
+
this.fetchInstance = new at(n, i);
|
1130
1130
|
}
|
1131
1131
|
getGlobalCopy = async (n, i) => this.fetchInstance.post(`${k.LOCALIZED_CONTENT}/${n}`, { translation_key: i }).then((a) => a);
|
1132
1132
|
}
|
1133
1133
|
class cE {
|
1134
1134
|
fetchInstance;
|
1135
1135
|
constructor(n, i) {
|
1136
|
-
this.fetchInstance = new
|
1136
|
+
this.fetchInstance = new at(n, i);
|
1137
1137
|
}
|
1138
1138
|
getLocalizedCopy = async (n) => this.fetchInstance.post(k.LOCALIZED_COPY, n).then((i) => i);
|
1139
1139
|
getLocalizedContent = async (n) => this.fetchInstance.post(`${k.LOCALIZED_CONTENT}/${n}`).then((i) => i);
|
@@ -1141,7 +1141,7 @@ class cE {
|
|
1141
1141
|
class co {
|
1142
1142
|
fetchInstance;
|
1143
1143
|
constructor(n, i) {
|
1144
|
-
this.fetchInstance = new
|
1144
|
+
this.fetchInstance = new at(n, i);
|
1145
1145
|
}
|
1146
1146
|
getNotifications = () => this.fetchInstance.get(k.NOTIFICATIONS).then(
|
1147
1147
|
(n) => n.notifications.map((i) => i.notification)
|
@@ -1157,7 +1157,7 @@ class co {
|
|
1157
1157
|
class lo {
|
1158
1158
|
fetchInstance;
|
1159
1159
|
constructor(n, i) {
|
1160
|
-
this.fetchInstance = new
|
1160
|
+
this.fetchInstance = new at(n, i);
|
1161
1161
|
}
|
1162
1162
|
addScheduledPayment = async (n) => this.fetchInstance.post(k.SCHEDULED_PAYMENTS, {
|
1163
1163
|
...n,
|
@@ -1171,7 +1171,7 @@ class lo {
|
|
1171
1171
|
class Ba {
|
1172
1172
|
fetchInstance;
|
1173
1173
|
constructor(n, i) {
|
1174
|
-
this.fetchInstance = new
|
1174
|
+
this.fetchInstance = new at(n, i);
|
1175
1175
|
}
|
1176
1176
|
getUserFeatures = async () => this.fetchInstance.get(k.USER_FEATURES).then((n) => n.user_features).catch((n) => n);
|
1177
1177
|
updateUser = async (n) => this.fetchInstance.put(k.USER, n).then((i) => i.user);
|
@@ -1180,7 +1180,7 @@ class Ba {
|
|
1180
1180
|
class uo {
|
1181
1181
|
fetchInstance;
|
1182
1182
|
constructor(n, i) {
|
1183
|
-
this.fetchInstance = new
|
1183
|
+
this.fetchInstance = new at(n, i);
|
1184
1184
|
}
|
1185
1185
|
requestWidgetUrl = async (n) => this.fetchInstance.post(k.WIDGET_URLS, n).then((i) => i.widget_url);
|
1186
1186
|
}
|
@@ -1304,7 +1304,7 @@ const Pa = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
1304
1304
|
"aria-label": S(i.accountTypeAccounts, y),
|
1305
1305
|
className: "mx-cmn-account-options-group",
|
1306
1306
|
dense: !0,
|
1307
|
-
subheader: /* @__PURE__ */ t(
|
1307
|
+
subheader: /* @__PURE__ */ t(Ot, { disableGutters: !0, children: /* @__PURE__ */ t(
|
1308
1308
|
de,
|
1309
1309
|
{
|
1310
1310
|
"aria-label": S(i.toggleAccountTypeAccounts, y),
|
@@ -2004,7 +2004,7 @@ const bu = ({
|
|
2004
2004
|
)
|
2005
2005
|
] });
|
2006
2006
|
}, Iu = (e) => {
|
2007
|
-
const n =
|
2007
|
+
const n = it(), i = e.showLabel, a = e.style, r = Number(e.x), o = Number(e.y), s = e.handlers?.onMarkClick, c = e.handlers?.onMouseEnter, d = e.handlers?.onMouseLeave;
|
2008
2008
|
return /* @__PURE__ */ l(Z, { children: [
|
2009
2009
|
i && /* @__PURE__ */ t(
|
2010
2010
|
"text",
|
@@ -2107,7 +2107,7 @@ const bu = ({
|
|
2107
2107
|
valueFormatterString: C = "0,0",
|
2108
2108
|
width: f
|
2109
2109
|
}) => {
|
2110
|
-
const E =
|
2110
|
+
const E = it(), y = i.flat().map((D) => D.x), T = i.flat().map((D) => D.y), w = Math.round(T.reduce((D, $) => $ + D, 0) / T.length), N = Math.floor(Math.min(...T) / 100) * 100, x = Math.ceil(Math.max(...T) / 100) * 100, R = i.map((D, $) => ({
|
2111
2111
|
type: d ? "bar" : "line",
|
2112
2112
|
curve: "linear",
|
2113
2113
|
color: d ? E.palette.chart?.chart6 : n[$] ?? E.palette.primary.main,
|
@@ -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
|
-
}, Re = () => Ze("useAccountStore").globalStore.accountStore, Ca = () => Ze("useAppConfig").globalStore.appDataStore.appConfig, yr = () => Ze("useAnalyticsStore").globalStore.analyticsStore, ct = () => Ze("useBudgetsStore").globalStore.budgetsStore, Er = () => Ze("useCashflowStore").globalStore.cashflowStore, Ke = () => Ze("useCategoryStore").globalStore.categoryStore, js = () => Ze("useConnectStore").globalStore.connectStore, fa = () => Ze("useDebtsStore").globalStore.debtsStore, ba = () => Ze("useGlobalStore").globalStore, le = () => Ze("useGlobalUiStore").globalStore.globalUiStore, I = () => Ze("globalCopyStore").globalStore.copyStore.copy,
|
2256
|
+
}, Re = () => Ze("useAccountStore").globalStore.accountStore, Ca = () => Ze("useAppConfig").globalStore.appDataStore.appConfig, yr = () => Ze("useAnalyticsStore").globalStore.analyticsStore, ct = () => Ze("useBudgetsStore").globalStore.budgetsStore, Er = () => Ze("useCashflowStore").globalStore.cashflowStore, Ke = () => Ze("useCategoryStore").globalStore.categoryStore, js = () => Ze("useConnectStore").globalStore.connectStore, fa = () => Ze("useDebtsStore").globalStore.debtsStore, ba = () => Ze("useGlobalStore").globalStore, le = () => Ze("useGlobalUiStore").globalStore.globalUiStore, I = () => Ze("globalCopyStore").globalStore.copyStore.copy, rt = () => Ze("useGoalStore").globalStore.goalStore, Sr = () => Ze("useHelpStore").globalStore.helpStore, Ja = () => Ze("useHoldingStore").globalStore.holdingStore, Nu = () => Ze("useMerchantStore").globalStore.merchantStore, Du = () => Ze("useNetWorthStore").globalStore.netWorthStore, Xs = () => Ze("useNotificationStore").globalStore.notificationStore, bt = () => Ze("useRecurringActivityStore").globalStore.recurringActivityStore, _t = () => Ze("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, Ht = () => Ze("useSettingsStore").globalStore.settingsStore, Se = () => Ze("useTransactionStore").globalStore.transactionStore, dn = () => Ze("useUserStore").globalStore.userStore, z = () => ({ onEvent: Ze().onEvent }), _E = () => ({ onPageView: Ze().onPageView }), Ru = (e = "useWidgetContainerContext") => {
|
2257
2257
|
const n = g.useContext(zs);
|
2258
2258
|
if (!n)
|
2259
2259
|
throw new Error(`${e}() must be used within the WidgetContainerContext`);
|
@@ -2267,7 +2267,7 @@ const bu = ({
|
|
2267
2267
|
"aria-label": S(i.category_icon_label_aria, r),
|
2268
2268
|
mb: 4,
|
2269
2269
|
role: "img",
|
2270
|
-
children: /* @__PURE__ */ t(
|
2270
|
+
children: /* @__PURE__ */ t(Gt, { categoryGuid: n })
|
2271
2271
|
}
|
2272
2272
|
),
|
2273
2273
|
/* @__PURE__ */ t(p, { variant: "Body", children: r })
|
@@ -2291,7 +2291,7 @@ const bu = ({
|
|
2291
2291
|
cursorPosition: a,
|
2292
2292
|
chartContainerRef: r
|
2293
2293
|
}) => {
|
2294
|
-
const o =
|
2294
|
+
const o = it(), s = ps(null), [c, d] = Et({ x: a.x, y: a.y });
|
2295
2295
|
if (Vn(() => {
|
2296
2296
|
(() => {
|
2297
2297
|
const h = s.current, m = r.current;
|
@@ -2303,7 +2303,7 @@ const bu = ({
|
|
2303
2303
|
}, [a, r]), !i) return null;
|
2304
2304
|
const _ = i.reduce((u, h) => u + h.y, 0);
|
2305
2305
|
return /* @__PURE__ */ t(
|
2306
|
-
|
2306
|
+
Bt,
|
2307
2307
|
{
|
2308
2308
|
ref: s,
|
2309
2309
|
sx: {
|
@@ -2313,7 +2313,7 @@ const bu = ({
|
|
2313
2313
|
width: 250,
|
2314
2314
|
pointerEvents: "none"
|
2315
2315
|
},
|
2316
|
-
children: /* @__PURE__ */ l(
|
2316
|
+
children: /* @__PURE__ */ l(Pt, { children: [
|
2317
2317
|
/* @__PURE__ */ l(M, { alignItems: "center", display: "flex", flexDirection: "column", children: [
|
2318
2318
|
/* @__PURE__ */ t(qs, { categoryGuid: e, topLevelCategoryGuid: n }),
|
2319
2319
|
/* @__PURE__ */ t(p, { variant: "Small", children: `${i.length}-month total` }),
|
@@ -2406,7 +2406,7 @@ const bu = ({
|
|
2406
2406
|
height: s,
|
2407
2407
|
width: c
|
2408
2408
|
}) => {
|
2409
|
-
const d =
|
2409
|
+
const d = it(), { isMobile: _ } = De(), u = g.useRef(null), [h, m] = g.useState(null), [C, f] = g.useState({
|
2410
2410
|
hoveredSeriesId: null,
|
2411
2411
|
hoveredAreaData: null,
|
2412
2412
|
isAreaHovered: !1,
|
@@ -2965,7 +2965,7 @@ const bu = ({
|
|
2965
2965
|
}
|
2966
2966
|
),
|
2967
2967
|
s === "timeframetabs" && /* @__PURE__ */ t(
|
2968
|
-
|
2968
|
+
Mt,
|
2969
2969
|
{
|
2970
2970
|
indicatorColor: "primary",
|
2971
2971
|
onChange: (H, j) => U(j),
|
@@ -3199,7 +3199,7 @@ const Dn = ({
|
|
3199
3199
|
title: d = ""
|
3200
3200
|
}) => {
|
3201
3201
|
const [_, { height: u, width: h }] = Qs();
|
3202
|
-
return /* @__PURE__ */ l(
|
3202
|
+
return /* @__PURE__ */ l(Bt, { className: e, sx: { borderRadius: "8px", ...c }, children: [
|
3203
3203
|
/* @__PURE__ */ t(
|
3204
3204
|
wn,
|
3205
3205
|
{
|
@@ -3217,7 +3217,7 @@ const Dn = ({
|
|
3217
3217
|
title: d ? /* @__PURE__ */ t(mt, { sx: { pb: 4 }, children: d }) : null
|
3218
3218
|
}
|
3219
3219
|
),
|
3220
|
-
/* @__PURE__ */ t(
|
3220
|
+
/* @__PURE__ */ t(Pt, { ref: _, sx: { p: 0 }, children: /* @__PURE__ */ t(Ys, { availableHeight: u, availableWidth: h, children: i }) })
|
3221
3221
|
] });
|
3222
3222
|
}, ue = ({ height: e = 250, label: n = "", size: i = 32 }) => {
|
3223
3223
|
const a = ft();
|
@@ -3279,7 +3279,7 @@ const Dn = ({
|
|
3279
3279
|
dateRangePreviousAria: L.date_range_picker.previous_aria
|
3280
3280
|
}, me = r ? r.start : R.start, V = r ? r.end : R.end, Ce = n?.length > 1;
|
3281
3281
|
return /* @__PURE__ */ l(
|
3282
|
-
|
3282
|
+
Bt,
|
3283
3283
|
{
|
3284
3284
|
className: s,
|
3285
3285
|
sx: {
|
@@ -3385,11 +3385,11 @@ const Dn = ({
|
|
3385
3385
|
}
|
3386
3386
|
)
|
3387
3387
|
] }),
|
3388
|
-
/* @__PURE__ */ t(
|
3388
|
+
/* @__PURE__ */ t(Pt, { ref: C, sx: { p: 0 }, children: /* @__PURE__ */ t(Ys, { availableHeight: f, availableWidth: E, children: a }) })
|
3389
3389
|
]
|
3390
3390
|
}
|
3391
3391
|
);
|
3392
|
-
},
|
3392
|
+
}, Lt = A($u), Fu = ({ status: e = Gn.Loading }) => {
|
3393
3393
|
const { connect: n } = I();
|
3394
3394
|
return /* @__PURE__ */ t(
|
3395
3395
|
M,
|
@@ -3737,7 +3737,7 @@ const po = "connect_widget", Co = "connections_widget", Wu = ({
|
|
3737
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
|
-
/* @__PURE__ */ l(
|
3740
|
+
/* @__PURE__ */ l(Bt, { sx: { m: 24 }, children: [
|
3741
3741
|
/* @__PURE__ */ t(
|
3742
3742
|
wn,
|
3743
3743
|
{
|
@@ -3746,7 +3746,7 @@ const po = "connect_widget", Co = "connections_widget", Wu = ({
|
|
3746
3746
|
title: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: i })
|
3747
3747
|
}
|
3748
3748
|
),
|
3749
|
-
/* @__PURE__ */ t(
|
3749
|
+
/* @__PURE__ */ t(Pt, { sx: { ":last-child": { pb: 4 }, ml: 28, py: 0 }, children: /* @__PURE__ */ l(b, { alignItems: "flex-start", spacing: 2, children: [
|
3750
3750
|
/* @__PURE__ */ t(p, { color: "text.secondary", sx: { textWrap: "wrap" }, variant: "ParagraphSmall", children: e }),
|
3751
3751
|
/* @__PURE__ */ t(
|
3752
3752
|
ee,
|
@@ -4118,7 +4118,7 @@ class qu {
|
|
4118
4118
|
class bo {
|
4119
4119
|
fetchInstance;
|
4120
4120
|
constructor(n, i) {
|
4121
|
-
this.fetchInstance = new
|
4121
|
+
this.fetchInstance = new at(n, i);
|
4122
4122
|
}
|
4123
4123
|
addBudget = async (n, i, a = null) => this.fetchInstance.post(k.BUDGETS, {
|
4124
4124
|
amount: i,
|
@@ -4495,8 +4495,8 @@ const li = () => {
|
|
4495
4495
|
name: e.description,
|
4496
4496
|
recurrenceDay: e.recurrence_day,
|
4497
4497
|
repeatingTransactionGuid: e.guid,
|
4498
|
-
status:
|
4499
|
-
type: e.repeating_transaction_type === on.Income ?
|
4498
|
+
status: et.Upcoming,
|
4499
|
+
type: e.repeating_transaction_type === on.Income ? Yt.Income : Yt.Expense,
|
4500
4500
|
transaction: void 0
|
4501
4501
|
}, o = Pe(oe()), s = Ve(dt(oe(), 1));
|
4502
4502
|
switch (e.recurrence_type) {
|
@@ -4526,7 +4526,7 @@ const li = () => {
|
|
4526
4526
|
const d = e.transactions.find(
|
4527
4527
|
(_) => _.repeating_transaction_guid === e.guid && _.date > Oe(ut(c.expectedDate, 5)) && _.date < Oe(Zt(c.expectedDate, 5))
|
4528
4528
|
);
|
4529
|
-
d ? (c.transaction = d, c.status =
|
4529
|
+
d ? (c.transaction = d, c.status = et.Paid, c.occurredOnDate = Me(d.date)) : ve(c.expectedDate, ut(oe(), 3)) && (c.status = et.Missed);
|
4530
4530
|
}
|
4531
4531
|
return n;
|
4532
4532
|
}, s_ = (e, n, i) => {
|
@@ -4539,9 +4539,9 @@ const li = () => {
|
|
4539
4539
|
const a = [], r = e.expectedDate;
|
4540
4540
|
if (ve(r, i)) {
|
4541
4541
|
let o = ut(r, 14);
|
4542
|
-
for (;
|
4542
|
+
for (; kt(o, n) || lt(o, n); )
|
4543
4543
|
a.push({ ...e, expectedDate: o }), o = ut(o, 14);
|
4544
|
-
for (o = r;
|
4544
|
+
for (o = r; kt(o, n) && ve(o, i); )
|
4545
4545
|
a.push({ ...e, expectedDate: o }), o = Zt(o, 14);
|
4546
4546
|
}
|
4547
4547
|
return a;
|
@@ -4552,25 +4552,25 @@ const li = () => {
|
|
4552
4552
|
const a = [], r = e.expectedDate;
|
4553
4553
|
let o = ve(r, i) ? r : jt(r, 2);
|
4554
4554
|
for (; ve(o, i); )
|
4555
|
-
|
4555
|
+
kt(o, n) && a.push({ ...e, expectedDate: o }), o = dt(o, 2);
|
4556
4556
|
return a;
|
4557
4557
|
}, u_ = (e, n, i) => {
|
4558
4558
|
const a = [], r = e.expectedDate;
|
4559
4559
|
let o = ve(r, i) ? r : As(r, 1);
|
4560
4560
|
for (; ve(o, i); )
|
4561
|
-
|
4561
|
+
kt(o, n) && a.push({ ...e, expectedDate: o }), o = Sn(o, 1);
|
4562
4562
|
return a;
|
4563
4563
|
}, __ = (e, n, i) => {
|
4564
4564
|
const a = [], r = e.expectedDate;
|
4565
4565
|
let o = ve(r, i) ? r : As(r, 2);
|
4566
4566
|
for (; ve(o, i); )
|
4567
|
-
|
4567
|
+
kt(o, n) && a.push({ ...e, expectedDate: o }), o = Sn(o, 2);
|
4568
4568
|
return a;
|
4569
4569
|
}, h_ = (e, n, i) => {
|
4570
4570
|
const a = [], r = e.expectedDate;
|
4571
4571
|
let o = ve(r, i) ? r : qa(r, 1);
|
4572
4572
|
for (; ve(o, i); )
|
4573
|
-
|
4573
|
+
kt(o, n) && a.push({ ...e, expectedDate: o }), o = ti(o, 1);
|
4574
4574
|
return a;
|
4575
4575
|
}, g_ = (e) => {
|
4576
4576
|
const n = [];
|
@@ -4630,7 +4630,7 @@ const li = () => {
|
|
4630
4630
|
class Ji {
|
4631
4631
|
fetchInstance;
|
4632
4632
|
constructor(n, i) {
|
4633
|
-
this.fetchInstance = new
|
4633
|
+
this.fetchInstance = new at(n, i);
|
4634
4634
|
}
|
4635
4635
|
addTag = async (n) => this.fetchInstance.post(k.TAGS, n).then((i) => i.tag);
|
4636
4636
|
addTagging = async (n) => this.fetchInstance.post(k.TAGGINGS, n).then((i) => i.tagging);
|
@@ -5083,19 +5083,19 @@ const p_ = [
|
|
5083
5083
|
if (/^spl/i.test(s) && (c.has_been_split || c.parent_guid))
|
5084
5084
|
return !0;
|
5085
5085
|
const _ = c.tags.some(
|
5086
|
-
(h) =>
|
5086
|
+
(h) => Ft(s, n.find((m) => m.guid === h)?.name)
|
5087
5087
|
), u = Me(c.date);
|
5088
|
-
return
|
5088
|
+
return Ft(s, c.payee) || Ft(s, c.feed_description) || Ft(s, c.category) || Ft(s, ie(u, te.MONTH)) || Ft(s, ie(u, te.DAY)) || Ft(s, ie(u, te.FULL_MONTH_DAY)) || Ft(s, ie(u, te.MONTH_DAY_YEAR)) || Ft(s, wt(u, Ln)) || Ft(s, c.account) || Ft(s, `${c.amount}`) || Ft(s, c.memo) || _;
|
5089
5089
|
});
|
5090
5090
|
}, T_ = (e, n, i) => [...e].sort((a, r) => {
|
5091
5091
|
const o = n, s = (a[o] || "") > (r[o] || "");
|
5092
5092
|
let c = s ? -1 : 1, d = s ? 1 : -1;
|
5093
5093
|
return (n === ir.DATE || n === ir.AMOUNT) && (c = s ? 1 : -1, d = s ? -1 : 1), i === ec.ASC ? c : d;
|
5094
|
-
}),
|
5094
|
+
}), Ft = (e, n) => {
|
5095
5095
|
const i = e.toLowerCase().split(" "), a = n?.toString().toLowerCase() ?? "";
|
5096
5096
|
return i.every((r) => a.indexOf(r) > -1);
|
5097
5097
|
};
|
5098
|
-
var Qe = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Qe || {}),
|
5098
|
+
var Qe = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Qe || {}), tt = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(tt || {}), A_ = /* @__PURE__ */ ((e) => (e[e.UNKNOWN = 0] = "UNKNOWN", e[e.CORRECT = 1] = "CORRECT", e[e.INCORRECT = 2] = "INCORRECT", e))(A_ || {}), I_ = /* @__PURE__ */ ((e) => (e.Missed = "Missed", e.Paid = "Paid", e.Upcoming = "Upcoming expense", e.Income = "Income", e))(I_ || {}), x_ = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e))(x_ || {}), K = /* @__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))(K || {}), ar = /* @__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))(ar || {}), vt = /* @__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))(vt || {}), Ue = /* @__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[e.AccountDepositLargePosted = 48] = "AccountDepositLargePosted", e))(Ue || {}), St = /* @__PURE__ */ ((e) => (e[e.CREDIT = 1] = "CREDIT", e[e.DEBIT = 2] = "DEBIT", e))(St || {}), Ar = /* @__PURE__ */ ((e) => (e[e.POSTED = 1] = "POSTED", e[e.PENDING = 2] = "PENDING", e))(Ar || {}), v_ = /* @__PURE__ */ ((e) => (e.Desktop = "Desktop", e.Mobile = "Mobile", e))(v_ || {}), we = /* @__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))(we || {}), et = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(et || {}), 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 || {});
|
5099
5099
|
const tc = {
|
5100
5100
|
account_guid: "",
|
5101
5101
|
amount: 0,
|
@@ -5551,7 +5551,7 @@ const It = () => {
|
|
5551
5551
|
}
|
5552
5552
|
);
|
5553
5553
|
}, W_ = A(F_), U_ = (e) => /* @__PURE__ */ t(p, { tabIndex: e.tabIndex, variant: "Small", children: ie(Me(e.row.date), te.MONTH_DAY) }), V_ = (e) => {
|
5554
|
-
const n =
|
5554
|
+
const n = it(), { transactions: i } = I(), { is_flagged: a, is_hidden: r, has_been_viewed: o, parent_guid: s } = e.row, d = !o && !!!s;
|
5555
5555
|
return /* @__PURE__ */ l(
|
5556
5556
|
M,
|
5557
5557
|
{
|
@@ -5932,7 +5932,7 @@ const X_ = ({
|
|
5932
5932
|
id: `category-${e.guid}`,
|
5933
5933
|
onClick: c,
|
5934
5934
|
children: [
|
5935
|
-
/* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(
|
5935
|
+
/* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Gt, { categoryGuid: e.guid }) }),
|
5936
5936
|
/* @__PURE__ */ t(
|
5937
5937
|
re,
|
5938
5938
|
{
|
@@ -6256,7 +6256,7 @@ const rc = ({ transaction: e }) => {
|
|
6256
6256
|
},
|
6257
6257
|
children: [
|
6258
6258
|
/* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(
|
6259
|
-
|
6259
|
+
Gt,
|
6260
6260
|
{
|
6261
6261
|
categoryGuid: e.top_level_category_guid,
|
6262
6262
|
size: 24,
|
@@ -6587,7 +6587,7 @@ const rc = ({ transaction: e }) => {
|
|
6587
6587
|
children: [
|
6588
6588
|
/* @__PURE__ */ t(sc, { transaction: e }),
|
6589
6589
|
/* @__PURE__ */ t(
|
6590
|
-
|
6590
|
+
nt,
|
6591
6591
|
{
|
6592
6592
|
"aria-label": o.memo_desc_aria,
|
6593
6593
|
focused: !0,
|
@@ -6630,7 +6630,7 @@ const rc = ({ transaction: e }) => {
|
|
6630
6630
|
{
|
6631
6631
|
endIcon: /* @__PURE__ */ t(sa, {}),
|
6632
6632
|
onClick: () => h(!0),
|
6633
|
-
startIcon: /* @__PURE__ */ t(
|
6633
|
+
startIcon: /* @__PURE__ */ t(Gt, { categoryGuid: r.top_level_category_guid }),
|
6634
6634
|
sx: { px: o.Spacing.Small, py: o.Spacing.XSmall },
|
6635
6635
|
children: r.category
|
6636
6636
|
}
|
@@ -7144,7 +7144,7 @@ const rc = ({ transaction: e }) => {
|
|
7144
7144
|
};
|
7145
7145
|
return /* @__PURE__ */ t(M, { className: "mx-txn-transaction-description", children: o ? /* @__PURE__ */ l(yd, { row: !0, children: [
|
7146
7146
|
/* @__PURE__ */ t(
|
7147
|
-
|
7147
|
+
nt,
|
7148
7148
|
{
|
7149
7149
|
"aria-label": a.description_add_a_subcategory,
|
7150
7150
|
name: "add-subcategory",
|
@@ -7457,9 +7457,9 @@ const rc = ({ transaction: e }) => {
|
|
7457
7457
|
g.useEffect(() => {
|
7458
7458
|
Ce(r);
|
7459
7459
|
}, [r]), g.useEffect(() => {
|
7460
|
-
const
|
7461
|
-
V(
|
7462
|
-
dateRange: { start:
|
7460
|
+
const ot = Pe(oe()), Ur = Ve(oe());
|
7461
|
+
V(ot, Ur), T({
|
7462
|
+
dateRange: { start: ot, end: Ur },
|
7463
7463
|
accounts: me.map((Ga) => Ga.guid),
|
7464
7464
|
custom: (Ga) => !Ga.accountIsClosed
|
7465
7465
|
}), ce(!0), O(W.TRANSACTIONS_VIEW);
|
@@ -7473,15 +7473,15 @@ const rc = ({ transaction: e }) => {
|
|
7473
7473
|
m(i);
|
7474
7474
|
}, [i]);
|
7475
7475
|
const Fe = g.useMemo(
|
7476
|
-
() => r.filter((
|
7476
|
+
() => r.filter((ot) => ot.is_manual),
|
7477
7477
|
[r]
|
7478
|
-
), We = $e ? N.find((
|
7479
|
-
V(
|
7480
|
-
}, La = (
|
7481
|
-
h(
|
7478
|
+
), We = $e ? N.find((ot) => ot.guid === $e) : void 0, _n = _ && !!d.payee && !!d.account_guid && !!d.category_guid, Oa = (ot) => {
|
7479
|
+
V(ot[0], ot[1]);
|
7480
|
+
}, La = (ot) => {
|
7481
|
+
h(ot), T({
|
7482
7482
|
...E,
|
7483
|
-
searchTerm:
|
7484
|
-
}), O(W.TRANSACTIONS_CLICK_SEARCH, { search_term:
|
7483
|
+
searchTerm: ot
|
7484
|
+
}), O(W.TRANSACTIONS_CLICK_SEARCH, { search_term: ot });
|
7485
7485
|
}, di = () => {
|
7486
7486
|
nc(N, w), O(W.TRANSACTIONS_CLICK_EXPORT);
|
7487
7487
|
}, Ma = () => {
|
@@ -7503,7 +7503,7 @@ const rc = ({ transaction: e }) => {
|
|
7503
7503
|
We && !We.has_been_viewed && await x({ ...We, has_been_viewed: !0 }), _e("");
|
7504
7504
|
};
|
7505
7505
|
return !U || !H || !un ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ l(
|
7506
|
-
|
7506
|
+
Lt,
|
7507
7507
|
{
|
7508
7508
|
accountOptions: r,
|
7509
7509
|
actions: [
|
@@ -7545,17 +7545,17 @@ const rc = ({ transaction: e }) => {
|
|
7545
7545
|
j_,
|
7546
7546
|
{
|
7547
7547
|
height: `calc(${n} - ${No}px)`,
|
7548
|
-
onCategoryClick: (
|
7549
|
-
he(
|
7548
|
+
onCategoryClick: (ot) => {
|
7549
|
+
he(ot), _e(
|
7550
7550
|
"category"
|
7551
7551
|
/* Category */
|
7552
7552
|
);
|
7553
7553
|
},
|
7554
|
-
onRowClick: (
|
7555
|
-
he(
|
7554
|
+
onRowClick: (ot) => {
|
7555
|
+
he(ot), _e(
|
7556
7556
|
"transaction"
|
7557
7557
|
/* Transaction */
|
7558
|
-
), O(W.TRANSACTIONS_CLICK_DETAILS, { transaction_guid:
|
7558
|
+
), O(W.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: ot });
|
7559
7559
|
}
|
7560
7560
|
}
|
7561
7561
|
)
|
@@ -7572,8 +7572,8 @@ const rc = ({ transaction: e }) => {
|
|
7572
7572
|
mn,
|
7573
7573
|
{
|
7574
7574
|
height: `calc(${n} - ${No}px)`,
|
7575
|
-
onClick: (
|
7576
|
-
he(
|
7575
|
+
onClick: (ot) => {
|
7576
|
+
he(ot), _e(
|
7577
7577
|
"transaction"
|
7578
7578
|
/* Transaction */
|
7579
7579
|
);
|
@@ -8015,7 +8015,7 @@ const rc = ({ transaction: e }) => {
|
|
8015
8015
|
] }),
|
8016
8016
|
/* @__PURE__ */ t(p, { bold: !0, sx: { mx: 24 }, variant: "Body", children: i ? c.income_schedule : c.expense_schedule }),
|
8017
8017
|
/* @__PURE__ */ t(
|
8018
|
-
|
8018
|
+
nt,
|
8019
8019
|
{
|
8020
8020
|
InputLabelProps: { shrink: !0 },
|
8021
8021
|
SelectProps: {
|
@@ -8170,7 +8170,7 @@ const rc = ({ transaction: e }) => {
|
|
8170
8170
|
const [e, n] = g.useState(0), { onEvent: i } = z(), { recurring: a } = I();
|
8171
8171
|
return /* @__PURE__ */ l(M, { bgcolor: "background.default", height: "100%", children: [
|
8172
8172
|
/* @__PURE__ */ l(
|
8173
|
-
|
8173
|
+
Mt,
|
8174
8174
|
{
|
8175
8175
|
onChange: (o, s) => {
|
8176
8176
|
n(s), i(
|
@@ -8419,7 +8419,7 @@ const ug = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
8419
8419
|
const { cashflow: i } = I();
|
8420
8420
|
return /* @__PURE__ */ l(Z, { children: [
|
8421
8421
|
/* @__PURE__ */ l(
|
8422
|
-
|
8422
|
+
Ot,
|
8423
8423
|
{
|
8424
8424
|
sx: {
|
8425
8425
|
alignItems: "center",
|
@@ -8441,7 +8441,7 @@ const ug = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
8441
8441
|
),
|
8442
8442
|
/* @__PURE__ */ t(G, {})
|
8443
8443
|
] });
|
8444
|
-
}, Ro = A(_g), Oo = (e, n) => (i) => i.accountGuid === e.guid && (hr(i.expectedDate) ||
|
8444
|
+
}, Ro = A(_g), Oo = (e, n) => (i) => i.accountGuid === e.guid && (hr(i.expectedDate) || kt(i.expectedDate, n.start)) && ve(i.expectedDate, n.end), hg = () => {
|
8445
8445
|
const { availableWidth: e } = Fn(), { cashflow: n } = I(), { upcomingExpenses: i, upcomingIncome: a } = _t(), { dateRange: r, selectedCashAccounts: o } = li();
|
8446
8446
|
return /* @__PURE__ */ l(b, { children: [
|
8447
8447
|
/* @__PURE__ */ l(b, { direction: e < 400 ? "column" : "row", justifyContent: "space-between", children: [
|
@@ -8750,7 +8750,7 @@ const ug = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
8750
8750
|
i(a === 0 ? "cash_flow_summary" : "cash_flow_details");
|
8751
8751
|
}, [a]), /* @__PURE__ */ l(M, { children: [
|
8752
8752
|
/* @__PURE__ */ l(
|
8753
|
-
|
8753
|
+
Mt,
|
8754
8754
|
{
|
8755
8755
|
"aria-label": e.cashflow_summary_and_details,
|
8756
8756
|
centered: !0,
|
@@ -9081,17 +9081,17 @@ const ug = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9081
9081
|
return a;
|
9082
9082
|
}, Ig = (e, n) => {
|
9083
9083
|
switch (e.activityStatus) {
|
9084
|
-
case
|
9084
|
+
case tt.Paid:
|
9085
9085
|
return e.occurredOnDate ? S(
|
9086
9086
|
n.paid_on,
|
9087
9087
|
ie(e.occurredOnDate, te.MONTH_DAY)
|
9088
9088
|
) : n.paid;
|
9089
|
-
case
|
9089
|
+
case tt.Missed:
|
9090
9090
|
return S(
|
9091
9091
|
n.missed_on,
|
9092
9092
|
ie(e.expectedDate, te.MONTH_DAY)
|
9093
9093
|
);
|
9094
|
-
case
|
9094
|
+
case tt.Upcoming:
|
9095
9095
|
return S(
|
9096
9096
|
n.upcoming_on,
|
9097
9097
|
ie(e.expectedDate, te.MONTH_DAY)
|
@@ -9103,9 +9103,9 @@ const ug = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9103
9103
|
if (e.activityType === Qe.Income)
|
9104
9104
|
return /* @__PURE__ */ t(Nr, {});
|
9105
9105
|
switch (e.activityStatus) {
|
9106
|
-
case
|
9106
|
+
case tt.Missed:
|
9107
9107
|
return /* @__PURE__ */ t(Dr, {});
|
9108
|
-
case
|
9108
|
+
case tt.Paid:
|
9109
9109
|
return /* @__PURE__ */ t(Rr, {});
|
9110
9110
|
default:
|
9111
9111
|
return /* @__PURE__ */ t(wr, {});
|
@@ -9117,7 +9117,7 @@ const ug = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9117
9117
|
},
|
9118
9118
|
showOrdinal: a = !1
|
9119
9119
|
}) => {
|
9120
|
-
const { recurring: r } = I(), [o, s] = g.useState(""), c = e.activityType === Qe.Income, d = e.activityStatus ===
|
9120
|
+
const { recurring: r } = I(), [o, s] = g.useState(""), c = e.activityType === Qe.Income, d = e.activityStatus === tt.Paid, _ = e.activityStatus === tt.Missed, u = e.activityStatus === tt.Upcoming;
|
9121
9121
|
let h = r.paid?.toLowerCase();
|
9122
9122
|
return _ ? h = r.missed?.toLowerCase() : u && (h = Lo(a ? {
|
9123
9123
|
copy: r,
|
@@ -9357,7 +9357,7 @@ const ug = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9357
9357
|
] }),
|
9358
9358
|
/* @__PURE__ */ t(p, { bold: !0, sx: { mx: 24 }, variant: "Body", children: i ? c.income_schedule : c.expense_schedule }),
|
9359
9359
|
/* @__PURE__ */ t(
|
9360
|
-
|
9360
|
+
nt,
|
9361
9361
|
{
|
9362
9362
|
InputLabelProps: { shrink: !0 },
|
9363
9363
|
SelectProps: {
|
@@ -9469,7 +9469,7 @@ const ug = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9469
9469
|
}, Sc = A(Rg), Og = (e, n, i) => n.map((a) => {
|
9470
9470
|
const r = i.find((s) => s.scheduled_payment_guid === a.guid), o = e.find((s) => s.guid === r?.account_guid);
|
9471
9471
|
return {
|
9472
|
-
activityStatus:
|
9472
|
+
activityStatus: tt.Upcoming,
|
9473
9473
|
activityType: Qe.Expense,
|
9474
9474
|
amount: a.amount,
|
9475
9475
|
categoryGuid: r?.category_guid,
|
@@ -9508,7 +9508,7 @@ const ug = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9508
9508
|
const h = r.find((f) => f.guid === u.cashflow_sequence_guid), m = o.find((f) => f.guid === u.transaction_guid), C = e.find((f) => f.guid === m?.account_guid);
|
9509
9509
|
return {
|
9510
9510
|
accountGuid: h?.account_guid || C?.guid,
|
9511
|
-
activityStatus:
|
9511
|
+
activityStatus: tt.Paid,
|
9512
9512
|
activityType: Qe.Income,
|
9513
9513
|
amount: u.amount,
|
9514
9514
|
categoryGuid: u.category_guid,
|
@@ -9539,7 +9539,7 @@ const ug = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9539
9539
|
), C = o.find((E) => E.guid === m?.transaction_guid), f = e.find((E) => E.guid === C?.account_guid);
|
9540
9540
|
return {
|
9541
9541
|
accountGuid: h?.account_guid || f?.guid,
|
9542
|
-
activityStatus:
|
9542
|
+
activityStatus: tt.Upcoming,
|
9543
9543
|
activityType: Qe.Income,
|
9544
9544
|
amount: u.amount,
|
9545
9545
|
categoryGuid: u.category_guid,
|
@@ -9562,7 +9562,7 @@ const ug = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9562
9562
|
if (!r) return [];
|
9563
9563
|
const o = e.find((C) => C.guid === r?.account_guid), s = wi(n.occurs_on), c = {
|
9564
9564
|
accountGuid: o?.guid,
|
9565
|
-
activityStatus:
|
9565
|
+
activityStatus: tt.Upcoming,
|
9566
9566
|
activityType: Qe.Expense,
|
9567
9567
|
amount: n.amount,
|
9568
9568
|
categoryGuid: r?.category_guid,
|
@@ -9588,7 +9588,7 @@ const ug = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9588
9588
|
case Q.EveryOtherWeek:
|
9589
9589
|
if (ve(s, u))
|
9590
9590
|
for (m = Zn(s, 2); ve(m, h); )
|
9591
|
-
|
9591
|
+
kt(m, u) && a.push({
|
9592
9592
|
...c,
|
9593
9593
|
expectedDate: m
|
9594
9594
|
}), m = Zn(m, 2);
|
@@ -9596,7 +9596,7 @@ const ug = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9596
9596
|
for (a.push({
|
9597
9597
|
...c,
|
9598
9598
|
expectedDate: s
|
9599
|
-
}), m = eo(s, 2);
|
9599
|
+
}), m = eo(s, 2); kt(m, u); )
|
9600
9600
|
a.push({
|
9601
9601
|
...c,
|
9602
9602
|
expectedDate: m
|
@@ -9658,13 +9658,13 @@ const ug = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9658
9658
|
const f = i.find(
|
9659
9659
|
(E) => E.scheduled_payment_guid === C.scheduledPaymentGuid && E.date > Oe(ut(C.expectedDate, 3)) && E.date < Oe(Zt(C.expectedDate, 3))
|
9660
9660
|
);
|
9661
|
-
f ? (C.transactionGuid = f.guid, C.occurredOnDate = Me(f.date), C.activityStatus =
|
9661
|
+
f ? (C.transactionGuid = f.guid, C.occurredOnDate = Me(f.date), C.activityStatus = tt.Paid) : ve(C.expectedDate, ut(_, 3)) && (C.activityStatus = tt.Missed);
|
9662
9662
|
}), a;
|
9663
9663
|
}, Bg = (e, n, i, a, r) => a.map((o) => {
|
9664
9664
|
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);
|
9665
9665
|
let u = /* @__PURE__ */ new Date();
|
9666
9666
|
return s ? u = Ci(s.expected_date) : c && (u = Ci(c.expected_date)), {
|
9667
|
-
activityStatus:
|
9667
|
+
activityStatus: tt.Upcoming,
|
9668
9668
|
activityType: Qe.Income,
|
9669
9669
|
amount: o.amount,
|
9670
9670
|
categoryGuid: s?.category_guid,
|
@@ -9702,7 +9702,7 @@ const ug = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9702
9702
|
const [e, n] = g.useState(0), { onEvent: i } = z(), { recurring: a } = I();
|
9703
9703
|
return /* @__PURE__ */ l(M, { bgcolor: "background.default", height: "100%", children: [
|
9704
9704
|
/* @__PURE__ */ l(
|
9705
|
-
|
9705
|
+
Mt,
|
9706
9706
|
{
|
9707
9707
|
onChange: (o, s) => {
|
9708
9708
|
n(s), i(
|
@@ -9752,11 +9752,11 @@ const ug = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9752
9752
|
).filter(
|
9753
9753
|
(f) => lt(f.occurredOnDate || f.expectedDate, e)
|
9754
9754
|
), _ = d.some(
|
9755
|
-
(f) => f.activityType === Qe.Expense && f.activityStatus ===
|
9755
|
+
(f) => f.activityType === Qe.Expense && f.activityStatus === tt.Upcoming
|
9756
9756
|
), u = d.some(
|
9757
|
-
(f) => f.activityType === Qe.Expense && f.activityStatus ===
|
9757
|
+
(f) => f.activityType === Qe.Expense && f.activityStatus === tt.Missed
|
9758
9758
|
), h = d.some(
|
9759
|
-
(f) => f.activityType === Qe.Expense && f.activityStatus ===
|
9759
|
+
(f) => f.activityType === Qe.Expense && f.activityStatus === tt.Paid
|
9760
9760
|
), m = d.some((f) => f.activityType === Qe.Income), C = (_ ? 1 : 0) + (u ? 1 : 0) + (h ? 1 : 0) + (m ? 1 : 0);
|
9761
9761
|
return /* @__PURE__ */ t(
|
9762
9762
|
_r,
|
@@ -9821,7 +9821,7 @@ const ug = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9821
9821
|
}
|
9822
9822
|
);
|
9823
9823
|
}, Vg = A(Ug), Mo = 58, Kg = () => {
|
9824
|
-
const e =
|
9824
|
+
const e = it(), { onEvent: n } = z(), { selectedDay: i } = bt(), [a, r] = g.useState(
|
9825
9825
|
ji(/* @__PURE__ */ new Date()) * hn + Mo
|
9826
9826
|
), o = (c) => {
|
9827
9827
|
r(ji(c) * hn + Mo), n(W.RECURRING_ACTIVITY_CLICK_CALENDAR_RIGHT);
|
@@ -9923,7 +9923,7 @@ const ug = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9923
9923
|
/* @__PURE__ */ t(q, { children: /* @__PURE__ */ t(
|
9924
9924
|
ae,
|
9925
9925
|
{
|
9926
|
-
subheader: /* @__PURE__ */ t(
|
9926
|
+
subheader: /* @__PURE__ */ t(Ot, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: ie(
|
9927
9927
|
d.activities[0].occurredOnDate || d.activities[0].expectedDate,
|
9928
9928
|
te.DAY_OF_WEEK_MONTH_DAY
|
9929
9929
|
) }) }),
|
@@ -9998,8 +9998,8 @@ const ug = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9998
9998
|
transaction_guid: U.transactionGuid
|
9999
9999
|
});
|
10000
10000
|
};
|
10001
|
-
return /* @__PURE__ */ l(
|
10002
|
-
/* @__PURE__ */ t(
|
10001
|
+
return /* @__PURE__ */ l(zt, { container: !0, pt: 16, px: 24, spacing: 24, children: [
|
10002
|
+
/* @__PURE__ */ t(zt, { md: !0, sm: 12, width: "100%", children: /* @__PURE__ */ l(b, { gap: 24, children: [
|
10003
10003
|
/* @__PURE__ */ t(
|
10004
10004
|
ko,
|
10005
10005
|
{
|
@@ -10028,7 +10028,7 @@ const ug = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
10028
10028
|
}
|
10029
10029
|
),
|
10030
10030
|
(i || n) && /* @__PURE__ */ l(M, { children: [
|
10031
|
-
/* @__PURE__ */ l(
|
10031
|
+
/* @__PURE__ */ l(Mt, { onChange: $, value: u, variant: "fullWidth", children: [
|
10032
10032
|
/* @__PURE__ */ t(
|
10033
10033
|
ke,
|
10034
10034
|
{
|
@@ -10052,7 +10052,7 @@ const ug = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
10052
10052
|
u === 1 && /* @__PURE__ */ t(mi, { activities: f, onActivityClick: L })
|
10053
10053
|
] })
|
10054
10054
|
] }) }),
|
10055
|
-
!i && !n && /* @__PURE__ */ t(
|
10055
|
+
!i && !n && /* @__PURE__ */ t(zt, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ l(b, { gap: 35, children: [
|
10056
10056
|
/* @__PURE__ */ t(Tc, {}),
|
10057
10057
|
/* @__PURE__ */ t(
|
10058
10058
|
mi,
|
@@ -10082,7 +10082,7 @@ const ug = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
10082
10082
|
}, [o, s]);
|
10083
10083
|
const [m, C] = g.useState(!1);
|
10084
10084
|
return r ? /* @__PURE__ */ l(
|
10085
|
-
|
10085
|
+
Lt,
|
10086
10086
|
{
|
10087
10087
|
accountOptions: i,
|
10088
10088
|
actions: [
|
@@ -10100,9 +10100,9 @@ const ug = ({ recurrence: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
10100
10100
|
title: a.title,
|
10101
10101
|
children: [
|
10102
10102
|
o && _ ? /* @__PURE__ */ t(qg, {}) : /* @__PURE__ */ l(b, { direction: "column", p: 48, spacing: 24, children: [
|
10103
|
-
/* @__PURE__ */ t(
|
10104
|
-
/* @__PURE__ */ t(
|
10105
|
-
/* @__PURE__ */ t(
|
10103
|
+
/* @__PURE__ */ t(Wt, { height: 100, variant: "rounded", width: "100%" }),
|
10104
|
+
/* @__PURE__ */ t(Wt, { height: 100, variant: "rounded", width: "100%" }),
|
10105
|
+
/* @__PURE__ */ t(Wt, { height: 600, variant: "rounded", width: "100%" })
|
10106
10106
|
] }),
|
10107
10107
|
/* @__PURE__ */ t(
|
10108
10108
|
ne,
|
@@ -10195,13 +10195,13 @@ class tm {
|
|
10195
10195
|
);
|
10196
10196
|
}
|
10197
10197
|
get paidActivities() {
|
10198
|
-
return this.activities.filter((n) => n.activityStatus ===
|
10198
|
+
return this.activities.filter((n) => n.activityStatus === tt.Paid);
|
10199
10199
|
}
|
10200
10200
|
get upcomingActivities() {
|
10201
|
-
return this.activities.filter((n) => n.activityStatus ===
|
10201
|
+
return this.activities.filter((n) => n.activityStatus === tt.Upcoming);
|
10202
10202
|
}
|
10203
10203
|
get missedActivities() {
|
10204
|
-
return this.activities.filter((n) => n.activityStatus ===
|
10204
|
+
return this.activities.filter((n) => n.activityStatus === tt.Missed);
|
10205
10205
|
}
|
10206
10206
|
get upcomingExpenses() {
|
10207
10207
|
return this.upcomingActivities.filter((n) => n.activityType === Qe.Expense);
|
@@ -10210,7 +10210,7 @@ class tm {
|
|
10210
10210
|
return this.upcomingActivities.filter((n) => n.activityType === Qe.Income);
|
10211
10211
|
}
|
10212
10212
|
get nextIncomeActivity() {
|
10213
|
-
return this.upcomingIncome.find((n) =>
|
10213
|
+
return this.upcomingIncome.find((n) => kt(n.expectedDate, oe()));
|
10214
10214
|
}
|
10215
10215
|
get selectedDayActivities() {
|
10216
10216
|
return this.selectedDay && this.activities.filter(
|
@@ -10392,7 +10392,7 @@ const Rn = ({
|
|
10392
10392
|
n && /* @__PURE__ */ t(Ye, { amount: e, component: "h2", symbol: r, variant: "Small" })
|
10393
10393
|
]
|
10394
10394
|
}
|
10395
|
-
), Go = (e, n) => (i) => i.accountGuid && e.includes(i.accountGuid) && (hr(i.expectedDate) ||
|
10395
|
+
), Go = (e, n) => (i) => i.accountGuid && e.includes(i.accountGuid) && (hr(i.expectedDate) || kt(i.expectedDate, n.start)) && ve(i.expectedDate, n.end), nm = () => {
|
10396
10396
|
const [e, n] = g.useState(!1), { availableWidth: i } = Fn(), { cashflow: a } = I(), { upcomingExpenses: r, upcomingIncome: o } = _t(), { selectedAccountGuids: s } = le(), { dateRange: c, selectedCashAccounts: d } = li(), { userProfile: _ } = dn(), u = g.useMemo(
|
10397
10397
|
() => r.filter(Go(s, c)),
|
10398
10398
|
[c, s, r]
|
@@ -10400,11 +10400,11 @@ const Rn = ({
|
|
10400
10400
|
() => o.filter(Go(s, c)),
|
10401
10401
|
[c, s, o]
|
10402
10402
|
), m = g.useMemo(
|
10403
|
-
() => d.reduce((
|
10403
|
+
() => d.reduce((T, w) => T + (w?.balance || 0), 0),
|
10404
10404
|
[d]
|
10405
|
-
), C = u.reduce((
|
10406
|
-
return /* @__PURE__ */ l(b, { flexDirection: "row", gap: 24, justifyContent: "center", my:
|
10407
|
-
|
10405
|
+
), C = u.reduce((T, w) => T + w.amount, 0), f = h.reduce((T, w) => T + w.amount, 0), E = m - C + f, y = i < 725;
|
10406
|
+
return /* @__PURE__ */ l(b, { flexDirection: "row", gap: 24, justifyContent: "center", my: y ? 24 : 42, children: [
|
10407
|
+
y ? /* @__PURE__ */ l(b, { border: "1px solid", borderColor: "border.light", borderRadius: 1, mx: 16, width: "100%", children: [
|
10408
10408
|
/* @__PURE__ */ t(
|
10409
10409
|
Rn,
|
10410
10410
|
{
|
@@ -10414,7 +10414,7 @@ const Rn = ({
|
|
10414
10414
|
}
|
10415
10415
|
),
|
10416
10416
|
/* @__PURE__ */ t(G, {}),
|
10417
|
-
|
10417
|
+
_?.has_completed_cash_flow_onboarding ? /* @__PURE__ */ t(
|
10418
10418
|
Rn,
|
10419
10419
|
{
|
10420
10420
|
amount: f,
|
@@ -10460,7 +10460,7 @@ const Rn = ({
|
|
10460
10460
|
)
|
10461
10461
|
] }) : /* @__PURE__ */ l(Z, { children: [
|
10462
10462
|
/* @__PURE__ */ t(Rn, { amount: m, label: a.cash_and_bank }),
|
10463
|
-
|
10463
|
+
_?.has_completed_cash_flow_onboarding ? /* @__PURE__ */ l(Z, { children: [
|
10464
10464
|
/* @__PURE__ */ t(p, { sx: { fontSize: 25, lineHeight: 1 }, children: "+" }),
|
10465
10465
|
/* @__PURE__ */ t(
|
10466
10466
|
Rn,
|
@@ -10780,7 +10780,7 @@ const Rn = ({
|
|
10780
10780
|
);
|
10781
10781
|
m(x), _({ accounts: x.map((R) => R.guid) });
|
10782
10782
|
}, [d, i]), !f || !E ? /* @__PURE__ */ t(ue, {}) : u?.has_completed_cash_flow_onboarding ? /* @__PURE__ */ l(
|
10783
|
-
|
10783
|
+
Lt,
|
10784
10784
|
{
|
10785
10785
|
accountOptions: d,
|
10786
10786
|
actions: [
|
@@ -10822,7 +10822,7 @@ const Rn = ({
|
|
10822
10822
|
]
|
10823
10823
|
}
|
10824
10824
|
) : /* @__PURE__ */ t(
|
10825
|
-
|
10825
|
+
Lt,
|
10826
10826
|
{
|
10827
10827
|
onBackClick: e,
|
10828
10828
|
sx: { height: "100%", overflow: "auto" },
|
@@ -10834,7 +10834,7 @@ const Rn = ({
|
|
10834
10834
|
class Po {
|
10835
10835
|
fetchInstance;
|
10836
10836
|
constructor(n, i) {
|
10837
|
-
this.fetchInstance = new
|
10837
|
+
this.fetchInstance = new at(n, i);
|
10838
10838
|
}
|
10839
10839
|
addCashflowEvent = async (n) => this.fetchInstance.post(k.CASHFLOW_EVENTS, { ...n }).then((i) => i);
|
10840
10840
|
addCashflowSequence = async (n) => this.fetchInstance.post(k.CASHFLOW_SEQUENCES, { ...n }).then((i) => i.cashflow_sequence);
|
@@ -10946,7 +10946,7 @@ const Cn = () => {
|
|
10946
10946
|
throw new Error("useCateUiStore() must be used within the GlobalDataContext");
|
10947
10947
|
return fa().uiStore;
|
10948
10948
|
}, mm = ({ debts: e, onClickCta: n, sx: i }) => {
|
10949
|
-
const a = vn(), { isMobile: r } = De(), { debts: o } = I(), { selectedDebtPriority: s } = Cn(), { monthlyCashFlowProfile: c } =
|
10949
|
+
const a = vn(), { isMobile: r } = De(), { debts: o } = I(), { selectedDebtPriority: s } = Cn(), { monthlyCashFlowProfile: c } = rt(), { payoffDate: d, payoffSavings: _, payoffDuration: u } = g.useMemo(() => {
|
10950
10950
|
const h = c?.extra_payment ?? 0;
|
10951
10951
|
return gm(e, s, h);
|
10952
10952
|
}, [e, s, c]);
|
@@ -11359,7 +11359,7 @@ const Cn = () => {
|
|
11359
11359
|
] })
|
11360
11360
|
}
|
11361
11361
|
);
|
11362
|
-
}, fm = A(Cm),
|
11362
|
+
}, fm = A(Cm), $t = () => {
|
11363
11363
|
if (!g.useContext(Yn))
|
11364
11364
|
throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
|
11365
11365
|
return Re().uiStore;
|
@@ -11412,7 +11412,7 @@ const Cn = () => {
|
|
11412
11412
|
}
|
11413
11413
|
return c;
|
11414
11414
|
}, wm = () => {
|
11415
|
-
const e =
|
11415
|
+
const e = it(), { selectedAccount: n } = $t(), { monthlyCategoryTotals: i } = Ke(), { trends: a } = I(), r = [e.palette.chart?.chart1, e.palette.chart?.chart2], o = xm(i, n.account_type), s = vm(o, n.account_type, a), c = [se.LOAN, se.MORTGAGE].includes(n.account_type);
|
11416
11416
|
return /* @__PURE__ */ t("div", { "data-testid": "TrendsChart", children: /* @__PURE__ */ t(
|
11417
11417
|
br,
|
11418
11418
|
{
|
@@ -11425,13 +11425,13 @@ const Cn = () => {
|
|
11425
11425
|
}
|
11426
11426
|
) });
|
11427
11427
|
}, Nm = A(wm), Dm = ({ sx: e }) => {
|
11428
|
-
const { loadMonthlyCategoryTotals: n } = Ke(), { isInitialized: i } = ba(), { selectedAccount: a } =
|
11428
|
+
const { loadMonthlyCategoryTotals: n } = Ke(), { isInitialized: i } = ba(), { selectedAccount: a } = $t(), [r, o] = g.useState(!1);
|
11429
11429
|
return g.useEffect(() => {
|
11430
11430
|
i && n([a]).finally(() => {
|
11431
11431
|
o(!0);
|
11432
11432
|
});
|
11433
11433
|
}, [i, a]), !i || !r ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ l(
|
11434
|
-
|
11434
|
+
Bt,
|
11435
11435
|
{
|
11436
11436
|
sx: {
|
11437
11437
|
borderRadius: 2,
|
@@ -11448,12 +11448,12 @@ const Cn = () => {
|
|
11448
11448
|
title: /* @__PURE__ */ t(mt, { sx: { pb: 4 }, children: ie(/* @__PURE__ */ new Date(), te.MONTH_LONG) })
|
11449
11449
|
}
|
11450
11450
|
),
|
11451
|
-
/* @__PURE__ */ t(
|
11451
|
+
/* @__PURE__ */ t(Pt, { sx: { p: 0 }, children: /* @__PURE__ */ t(Nm, {}) })
|
11452
11452
|
]
|
11453
11453
|
}
|
11454
11454
|
);
|
11455
11455
|
}, Rm = A(Dm), Om = ({ customDetailsChart: e }) => {
|
11456
|
-
const { institutions: n } = Re(), { selectedAccount: i } =
|
11456
|
+
const { institutions: n } = Re(), { selectedAccount: i } = $t(), { accounts: a } = I(), { firstSubtitle: r, firstValue: o, hasAvailableBalance: s, secondSubtitle: c, secondValue: d } = mc(i, a), _ = n.find(
|
11457
11457
|
(h) => h.guid === i?.institution_guid
|
11458
11458
|
), u = [
|
11459
11459
|
...mr,
|
@@ -11503,7 +11503,7 @@ const wc = ({
|
|
11503
11503
|
onClickArea: o,
|
11504
11504
|
onHoverArea: s
|
11505
11505
|
}) => {
|
11506
|
-
const c =
|
11506
|
+
const c = it(), { onEvent: d } = z(), _ = a.filter((x) => !x.is_impossible), u = [
|
11507
11507
|
...new Set(
|
11508
11508
|
_.flatMap((x) => x.dataset.map((R) => new Date(R.x).getTime()))
|
11509
11509
|
)
|
@@ -11620,7 +11620,7 @@ const wc = ({
|
|
11620
11620
|
const e = vn(), { debts: n } = I(), { selectedDebtChartData: i } = Cn();
|
11621
11621
|
return /* @__PURE__ */ l(Z, { children: [
|
11622
11622
|
/* @__PURE__ */ l(
|
11623
|
-
|
11623
|
+
Bt,
|
11624
11624
|
{
|
11625
11625
|
sx: {
|
11626
11626
|
borderRadius: 2,
|
@@ -11630,7 +11630,7 @@ const wc = ({
|
|
11630
11630
|
},
|
11631
11631
|
children: [
|
11632
11632
|
/* @__PURE__ */ t(wn, { sx: { pb: 0 }, title: /* @__PURE__ */ t(mt, { sx: { pb: 4 }, children: n.details_chart_title }) }),
|
11633
|
-
/* @__PURE__ */ t(
|
11633
|
+
/* @__PURE__ */ t(Pt, { sx: { p: 0 }, children: /* @__PURE__ */ t(wc, { debts: [i], height: 250 }) })
|
11634
11634
|
]
|
11635
11635
|
}
|
11636
11636
|
),
|
@@ -11709,7 +11709,7 @@ const wc = ({
|
|
11709
11709
|
) })
|
11710
11710
|
] }) });
|
11711
11711
|
}, Pm = A(Bm), Nc = A(({ goal: e }) => {
|
11712
|
-
const { goals: n } = I(), { setAlert: i, setSelectedGoal: a, updateGoal: r } =
|
11712
|
+
const { goals: n } = I(), { setAlert: i, setSelectedGoal: a, updateGoal: r } = rt(), [o, s] = g.useState(e.interest_rate ?? 0), c = !e.guid, d = o < 0, _ = async () => {
|
11713
11713
|
const h = { ...e, interest_rate: o };
|
11714
11714
|
e.interest_rate = o, c ? a(h) : (await r(h), i(n.alert_goal_updated_interest_rate));
|
11715
11715
|
}, u = () => {
|
@@ -11729,7 +11729,7 @@ const wc = ({
|
|
11729
11729
|
secondaryText: pa(Number(e.interest_rate) / 100),
|
11730
11730
|
zeroStateText: e.interest_rate ? void 0 : n.add_interest_rate,
|
11731
11731
|
children: /* @__PURE__ */ t(
|
11732
|
-
|
11732
|
+
nt,
|
11733
11733
|
{
|
11734
11734
|
error: d,
|
11735
11735
|
fullWidth: !0,
|
@@ -11742,7 +11742,7 @@ const wc = ({
|
|
11742
11742
|
}
|
11743
11743
|
);
|
11744
11744
|
}), Dc = A(({ goal: e }) => {
|
11745
|
-
const { goals: n } = I(), { setAlert: i, setSelectedGoal: a, updateGoal: r } =
|
11745
|
+
const { goals: n } = I(), { setAlert: i, setSelectedGoal: a, updateGoal: r } = rt(), [o, s] = g.useState(e.monthly_payment ?? 0), c = !e.guid, d = o < 0 || o > 9999999999e-2, _ = async () => {
|
11746
11746
|
const h = { ...e, monthly_payment: o };
|
11747
11747
|
e.monthly_payment = o, c ? a(h) : (await r({ ...e, monthly_payment: o }), i(n.alert_goal_updated_payment));
|
11748
11748
|
}, u = () => {
|
@@ -11776,7 +11776,7 @@ const wc = ({
|
|
11776
11776
|
}
|
11777
11777
|
);
|
11778
11778
|
}), Rc = A(({ goal: e }) => {
|
11779
|
-
const { goals: n } = I(), { setAlert: i, setSelectedGoal: a, updateGoal: r } =
|
11779
|
+
const { goals: n } = I(), { setAlert: i, setSelectedGoal: a, updateGoal: r } = rt(), [o, s] = g.useState(e.initial_amount), c = !e.guid, d = o < 0 || o > 9999999999e-2, _ = async () => {
|
11780
11780
|
const h = { ...e, initial_amount: o };
|
11781
11781
|
e.initial_amount = o, c ? a(h) : (await r({ ...e, initial_amount: o }), i(n.alert_goal_updated_balance));
|
11782
11782
|
}, u = () => {
|
@@ -11828,7 +11828,7 @@ const wc = ({
|
|
11828
11828
|
secondaryText: pa(Number(e.interest_rate) / 100),
|
11829
11829
|
zeroStateText: e.interest_rate ? void 0 : n.add_interest_rate,
|
11830
11830
|
children: /* @__PURE__ */ t(
|
11831
|
-
|
11831
|
+
nt,
|
11832
11832
|
{
|
11833
11833
|
error: s,
|
11834
11834
|
fullWidth: !0,
|
@@ -11973,7 +11973,7 @@ const wc = ({
|
|
11973
11973
|
return /* @__PURE__ */ l(Z, { children: [
|
11974
11974
|
(n || i) && /* @__PURE__ */ t(Km, { setTabValue: r, sx: { mt: -24 } }),
|
11975
11975
|
/* @__PURE__ */ l(
|
11976
|
-
|
11976
|
+
Mt,
|
11977
11977
|
{
|
11978
11978
|
"aria-label": e.details_tabs_aria_label,
|
11979
11979
|
centered: !0,
|
@@ -12022,7 +12022,7 @@ const wc = ({
|
|
12022
12022
|
}
|
12023
12023
|
);
|
12024
12024
|
}, Xm = A(() => {
|
12025
|
-
const { debts: e } = I(), { monthlyCashFlowProfile: n, updateMonthlyCashFlowProfile: i } =
|
12025
|
+
const { debts: e } = I(), { monthlyCashFlowProfile: n, updateMonthlyCashFlowProfile: i } = rt(), { onEvent: a } = z(), [r, o] = g.useState(n?.extra_payment ?? 0), s = r < 0 || r > 9999999999e-2, c = async () => {
|
12026
12026
|
n && (await i({ ...n, extra_payment: r }), n.extra_payment = r, a(W.DEBTS_SAVE_PAYDOWN_ACTION, {
|
12027
12027
|
user_guid: n?.user_guid
|
12028
12028
|
}));
|
@@ -12056,7 +12056,7 @@ const wc = ({
|
|
12056
12056
|
}
|
12057
12057
|
);
|
12058
12058
|
}), qm = () => {
|
12059
|
-
const { debts: e } = I(), { totalMonthlyPayments: n } = fa(), { monthlyCashFlowProfile: i } =
|
12059
|
+
const { debts: e } = I(), { totalMonthlyPayments: n } = fa(), { monthlyCashFlowProfile: i } = rt(), a = n + Number(i?.extra_payment);
|
12060
12060
|
return /* @__PURE__ */ l(b, { sx: { backgroundColor: "background.default", height: "100%" }, children: [
|
12061
12061
|
/* @__PURE__ */ l(b, { p: 24, children: [
|
12062
12062
|
/* @__PURE__ */ l(b, { alignItems: "center", gap: 4, mb: 24, children: [
|
@@ -12100,7 +12100,7 @@ function Jm(e, n) {
|
|
12100
12100
|
function ep(e) {
|
12101
12101
|
return e.is_paid_off ? "✓" : e.priority === void 0 || e.is_impossible ? "!" : e.priority;
|
12102
12102
|
}
|
12103
|
-
const
|
12103
|
+
const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", children: e.colDef.headerName }), tp = (e) => {
|
12104
12104
|
const n = {
|
12105
12105
|
text: "#121417",
|
12106
12106
|
background: "#FFB252"
|
@@ -12153,7 +12153,7 @@ const Vt = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
12153
12153
|
{
|
12154
12154
|
field: "priority",
|
12155
12155
|
headerName: d.table_column_priority,
|
12156
|
-
renderHeader:
|
12156
|
+
renderHeader: Ut,
|
12157
12157
|
renderCell: np,
|
12158
12158
|
sortComparator: Jm,
|
12159
12159
|
sortable: !0,
|
@@ -12167,7 +12167,7 @@ const Vt = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
12167
12167
|
{
|
12168
12168
|
field: "account",
|
12169
12169
|
headerName: d.table_column_account,
|
12170
|
-
renderHeader:
|
12170
|
+
renderHeader: Ut,
|
12171
12171
|
renderCell: ip,
|
12172
12172
|
sortable: !1,
|
12173
12173
|
type: "custom",
|
@@ -12179,7 +12179,7 @@ const Vt = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
12179
12179
|
{
|
12180
12180
|
field: "balance",
|
12181
12181
|
headerName: d.table_column_balance,
|
12182
|
-
renderHeader:
|
12182
|
+
renderHeader: Ut,
|
12183
12183
|
valueFormatter: (y) => B(y, "0,0"),
|
12184
12184
|
sortable: !0,
|
12185
12185
|
hideSortIcons: c,
|
@@ -12192,7 +12192,7 @@ const Vt = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
12192
12192
|
{
|
12193
12193
|
field: "interest_rate",
|
12194
12194
|
headerName: d.table_column_interest_rate,
|
12195
|
-
renderHeader:
|
12195
|
+
renderHeader: Ut,
|
12196
12196
|
valueFormatter: (y) => isNaN(y) ? "---" : `${Number(y).toFixed(2)}%`,
|
12197
12197
|
sortable: !0,
|
12198
12198
|
hideSortIcons: c,
|
@@ -12205,7 +12205,7 @@ const Vt = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
12205
12205
|
{
|
12206
12206
|
field: "projected_payoff_date",
|
12207
12207
|
headerName: d.table_column_payoff_date,
|
12208
|
-
renderHeader:
|
12208
|
+
renderHeader: Ut,
|
12209
12209
|
valueFormatter: (y) => y ? ie(y, te.MONTH_SHORT_YEAR) : "---",
|
12210
12210
|
sortable: !0,
|
12211
12211
|
hideSortIcons: c,
|
@@ -12218,7 +12218,7 @@ const Vt = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
12218
12218
|
{
|
12219
12219
|
field: "monthly_payment",
|
12220
12220
|
headerName: d.table_column_amount_due,
|
12221
|
-
renderHeader:
|
12221
|
+
renderHeader: Ut,
|
12222
12222
|
valueFormatter: (y) => typeof y == "number" ? B(y, "0,0") : "---",
|
12223
12223
|
sortable: !0,
|
12224
12224
|
hideSortIcons: c,
|
@@ -12431,7 +12431,7 @@ const Vt = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
12431
12431
|
d.priority = !d.is_paid_off && !d.is_impossible ? c++ : void 0;
|
12432
12432
|
}), o;
|
12433
12433
|
}, lp = A(({ onClick: e }) => {
|
12434
|
-
const { debts: n } = I(), { isDesktop: i } = De(), { totalMonthlyPayments: a } = fa(), { monthlyCashFlowProfile: r } =
|
12434
|
+
const { debts: n } = I(), { isDesktop: i } = De(), { totalMonthlyPayments: a } = fa(), { monthlyCashFlowProfile: r } = rt(), o = a + Number(r?.extra_payment), s = i ? n.paydown_button_long : n.paydown_button_short;
|
12435
12435
|
return /* @__PURE__ */ t(
|
12436
12436
|
ee,
|
12437
12437
|
{
|
@@ -12445,7 +12445,7 @@ const Vt = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
12445
12445
|
}
|
12446
12446
|
);
|
12447
12447
|
}), dp = ({ onBackClick: e, sx: n }) => {
|
12448
|
-
const [i, a] = g.useState(!1), [r, o] = g.useState(!1), [s, c] = g.useState(!1), [d, _] = g.useState(""), { isDesktop: u, isMobile: h } = De(), { debts: m } = I(), { onEvent: C } = z(), { isCopyLoaded: f, isInitialized: E, setSelectedAccounts: y } = le(), { setSelectedAccount: T } =
|
12448
|
+
const [i, a] = g.useState(!1), [r, o] = g.useState(!1), [s, c] = g.useState(!1), [d, _] = g.useState(""), { isDesktop: u, isMobile: h } = De(), { debts: m } = I(), { onEvent: C } = z(), { isCopyLoaded: f, isInitialized: E, setSelectedAccounts: y } = le(), { setSelectedAccount: T } = $t(), { selectedDebtPriority: w, setSelectedDebtChartData: N } = Cn(), { visibleDebtAccounts: x } = Re(), { goalsLoaded: R, loadGoals: D, monthlyCashFlowProfile: $ } = rt(), { debts: O } = fa(), L = g.useMemo(() => {
|
12449
12449
|
const Ce = $?.extra_payment ?? 0;
|
12450
12450
|
return cp(O, w, Ce);
|
12451
12451
|
}, [O, w, $]);
|
@@ -12465,7 +12465,7 @@ const Vt = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
12465
12465
|
o(!0), C(W.DEBTS_CLICK_PAYDOWN);
|
12466
12466
|
};
|
12467
12467
|
return !R || !f || !E ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ l(
|
12468
|
-
|
12468
|
+
Lt,
|
12469
12469
|
{
|
12470
12470
|
accountOptions: x,
|
12471
12471
|
actions: [
|
@@ -12586,7 +12586,7 @@ class gp {
|
|
12586
12586
|
class $o {
|
12587
12587
|
fetchInstance;
|
12588
12588
|
constructor(n, i) {
|
12589
|
-
this.fetchInstance = new
|
12589
|
+
this.fetchInstance = new at(n, i);
|
12590
12590
|
}
|
12591
12591
|
addGoal = async (n) => this.fetchInstance.post(k.GOALS, n).then((i) => i.goal);
|
12592
12592
|
addRetirementGoal = async (n) => this.fetchInstance.post(k.RETIREMENT_GOALS, n).then((i) => i.retirement_goal);
|
@@ -12715,7 +12715,7 @@ const Cp = (e, n) => {
|
|
12715
12715
|
}
|
12716
12716
|
];
|
12717
12717
|
let f = /* @__PURE__ */ t(Vl, {});
|
12718
|
-
return e.track_type === K.DEBT_TRACK ? f = /* @__PURE__ */ t(Kl, {}) : e.track_type === K.RETIREMENT_TRACK && (f = /* @__PURE__ */ t(zl, {})), /* @__PURE__ */ t(
|
12718
|
+
return e.track_type === K.DEBT_TRACK ? f = /* @__PURE__ */ t(Kl, {}) : e.track_type === K.RETIREMENT_TRACK && (f = /* @__PURE__ */ t(zl, {})), /* @__PURE__ */ t(Bt, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ l(vs, { disabled: !i, onClick: i, children: [
|
12719
12719
|
/* @__PURE__ */ t(
|
12720
12720
|
wn,
|
12721
12721
|
{
|
@@ -12727,7 +12727,7 @@ const Cp = (e, n) => {
|
|
12727
12727
|
title: /* @__PURE__ */ t($n, { color: "text.secondary", fontWeight: 400, variant: "Body", children: e.name })
|
12728
12728
|
}
|
12729
12729
|
),
|
12730
|
-
/* @__PURE__ */ t(
|
12730
|
+
/* @__PURE__ */ t(Pt, { sx: { pt: 0 }, children: /* @__PURE__ */ l(b, { gap: 6, children: [
|
12731
12731
|
/* @__PURE__ */ t(ai, { data: C, height: 24 }),
|
12732
12732
|
/* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
12733
12733
|
/* @__PURE__ */ t(p, { color: "text.secondary", variant: "XSmall", children: u }),
|
@@ -12737,7 +12737,7 @@ const Cp = (e, n) => {
|
|
12737
12737
|
] }) });
|
12738
12738
|
}
|
12739
12739
|
), bp = A(({ trackType: e }) => {
|
12740
|
-
const { goals: n } = I(), { setAlert: i, monthlyCashFlowProfile: a, updateMonthlyCashFlowProfile: r } =
|
12740
|
+
const { goals: n } = I(), { setAlert: i, monthlyCashFlowProfile: a, updateMonthlyCashFlowProfile: r } = rt(), o = g.useMemo(() => {
|
12741
12741
|
let _ = 0;
|
12742
12742
|
return e === K.SAVINGS_TRACK ? _ = a?.amount_allocated_for_savings_goals || 0 : e === K.DEBT_TRACK ? _ = a?.amount_allocated_for_debt_goals || 0 : e === K.RETIREMENT_TRACK && (_ = a?.amount_allocated_for_retirement_goals || 0), _;
|
12743
12743
|
}, [a]), [s, c] = g.useState(o), d = async () => {
|
@@ -12770,7 +12770,7 @@ const Cp = (e, n) => {
|
|
12770
12770
|
}
|
12771
12771
|
) });
|
12772
12772
|
}), yp = ({ goals: e }) => {
|
12773
|
-
const { goals: n, common: i } = I(), { reorderGoals: a, setAlert: r } =
|
12773
|
+
const { goals: n, common: i } = I(), { reorderGoals: a, setAlert: r } = rt(), [o, s] = g.useState(!1), [c, d] = g.useState(e.map((C) => ({ ...C })));
|
12774
12774
|
g.useEffect(() => {
|
12775
12775
|
o && d(e.map((C) => ({ ...C })));
|
12776
12776
|
}, [o]);
|
@@ -12915,7 +12915,7 @@ const Cp = (e, n) => {
|
|
12915
12915
|
] }) })
|
12916
12916
|
] }) }, e.guid);
|
12917
12917
|
}, Tp = ({ trackType: e }) => {
|
12918
|
-
const { goals: n, common: i } = I(), { orderedGoals: a } =
|
12918
|
+
const { goals: n, common: i } = I(), { orderedGoals: a } = rt(), r = a.filter((C) => C.track_type === e), o = r.filter(
|
12919
12919
|
(C) => C.track_type === K.SAVINGS_TRACK && !C.has_been_spent || C.track_type !== K.SAVINGS_TRACK && !C.is_complete
|
12920
12920
|
), s = r.filter(
|
12921
12921
|
(C) => C.track_type === K.SAVINGS_TRACK && C.has_been_spent || C.track_type !== K.SAVINGS_TRACK && C.is_complete
|
@@ -12970,7 +12970,7 @@ const Cp = (e, n) => {
|
|
12970
12970
|
)
|
12971
12971
|
] });
|
12972
12972
|
}, Ua = A(({ trackType: e, onAddGoals: n }) => {
|
12973
|
-
const { isMobile: i } = De(), { goals: a } = I(), { orderedGoals: r, setSelectedGoal: o } =
|
12973
|
+
const { isMobile: i } = De(), { goals: a } = I(), { orderedGoals: r, setSelectedGoal: o } = rt(), s = r.filter((u) => u.track_type === e), c = s.filter(
|
12974
12974
|
(u) => u.track_type === K.SAVINGS_TRACK && !u.has_been_spent || u.track_type !== K.SAVINGS_TRACK && !u.is_complete
|
12975
12975
|
), d = s.filter(
|
12976
12976
|
(u) => u.track_type === K.SAVINGS_TRACK && u.has_been_spent || u.track_type !== K.SAVINGS_TRACK && u.is_complete
|
@@ -12980,9 +12980,9 @@ const Cp = (e, n) => {
|
|
12980
12980
|
/* @__PURE__ */ t(p, { color: "text.secondary", variant: "Small", children: a.ongoing_title }),
|
12981
12981
|
/* @__PURE__ */ t(Tp, { trackType: e })
|
12982
12982
|
] }),
|
12983
|
-
c.length > 0 ? /* @__PURE__ */ t(
|
12983
|
+
c.length > 0 ? /* @__PURE__ */ t(zt, { container: !0, spacing: 24, children: c.map((u, h, m) => (
|
12984
12984
|
// Goal should be full width in mobile or if it's the first goal (unless there are 2)
|
12985
|
-
/* @__PURE__ */ t(
|
12985
|
+
/* @__PURE__ */ t(zt, { xs: i || h === 0 && m.length !== 2 ? 12 : 6, children: /* @__PURE__ */ t(Oc, { goal: u, onClick: () => o(u) }, u.guid) }, h)
|
12986
12986
|
)) }) : /* @__PURE__ */ l(
|
12987
12987
|
b,
|
12988
12988
|
{
|
@@ -13027,7 +13027,7 @@ const Cp = (e, n) => {
|
|
13027
13027
|
children: _
|
13028
13028
|
}
|
13029
13029
|
) }),
|
13030
|
-
d.map((u) => /* @__PURE__ */ t(
|
13030
|
+
d.map((u) => /* @__PURE__ */ t(Bt, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ t(vs, { onClick: () => o(u), children: /* @__PURE__ */ t(Pt, { sx: { ":last-child": { pb: 16 } }, children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
13031
13031
|
/* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 6, children: [
|
13032
13032
|
/* @__PURE__ */ t(P, { color: "success", fill: !0, name: "check_circle", size: 20 }),
|
13033
13033
|
/* @__PURE__ */ t(p, { color: "text.secondary", variant: "Body", children: u.name })
|
@@ -13124,7 +13124,7 @@ const Cp = (e, n) => {
|
|
13124
13124
|
}
|
13125
13125
|
);
|
13126
13126
|
}, Ip = ({ onClose: e }) => {
|
13127
|
-
const { goals: n } = I(), { addGoal: i, debtGoals: a, setAlert: r, setSelectedGoal: o } =
|
13127
|
+
const { goals: n } = I(), { addGoal: i, debtGoals: a, setAlert: r, setSelectedGoal: o } = rt(), { visibleDebtAccounts: s } = Re(), [c, d] = g.useState(!1), _ = pp(n), u = (m, C, f) => {
|
13128
13128
|
f === K.DEBT_TRACK ? d(!0) : o({
|
13129
13129
|
amount: 0,
|
13130
13130
|
current_amount: 0,
|
@@ -13166,7 +13166,7 @@ const Cp = (e, n) => {
|
|
13166
13166
|
)
|
13167
13167
|
] });
|
13168
13168
|
}, Mc = ({ account: e }) => {
|
13169
|
-
const { accounts: n } = I(), { setSelectedAccount: i } =
|
13169
|
+
const { accounts: n } = I(), { setSelectedAccount: i } = $t(), [a, r] = g.useState(!1);
|
13170
13170
|
return /* @__PURE__ */ l(q, { sx: { bgcolor: "background.paper" }, children: [
|
13171
13171
|
/* @__PURE__ */ l(de, { onClick: () => {
|
13172
13172
|
i(e), r(!0);
|
@@ -13193,7 +13193,7 @@ const Cp = (e, n) => {
|
|
13193
13193
|
] }) })
|
13194
13194
|
] });
|
13195
13195
|
}, xp = A(({ goal: e }) => {
|
13196
|
-
const { goals: n } = I(), { setAlert: i, setSelectedGoal: a, updateGoal: r } =
|
13196
|
+
const { goals: n } = I(), { setAlert: i, setSelectedGoal: a, updateGoal: r } = rt(), [o, s] = g.useState(e.amount), c = !e.guid, d = o < 0 || o > 9999999999e-2, _ = e.track_type === K.SAVINGS_TRACK && e.has_been_spent || e.track_type !== K.SAVINGS_TRACK && e.is_complete, u = async () => {
|
13197
13197
|
const m = { ...e, amount: o };
|
13198
13198
|
e.amount = o, c ? a(m) : (await r(m), i(n.alert_goal_updated_amount));
|
13199
13199
|
}, h = () => {
|
@@ -13227,7 +13227,7 @@ const Cp = (e, n) => {
|
|
13227
13227
|
}
|
13228
13228
|
);
|
13229
13229
|
}), vp = ({ goal: e }) => {
|
13230
|
-
const { visibleCheckingAccounts: n, visibleSavingsAccounts: i } = Re(), { accounts: a, goals: r } = I(), { setAlert: o, setSelectedGoal: s, updateGoal: c } =
|
13230
|
+
const { visibleCheckingAccounts: n, visibleSavingsAccounts: i } = Re(), { accounts: a, goals: r } = I(), { setAlert: o, setSelectedGoal: s, updateGoal: c } = rt(), d = !e.guid && !e.account_guid, [_, u] = g.useState(!1), h = async (m) => {
|
13231
13231
|
const C = { ...e, account_guid: m };
|
13232
13232
|
d ? s(C) : (await c(C), o(r.alert_account_changed)), u(!1);
|
13233
13233
|
};
|
@@ -13298,7 +13298,7 @@ const Cp = (e, n) => {
|
|
13298
13298
|
] }) })
|
13299
13299
|
] });
|
13300
13300
|
}, wp = A(({ goal: e }) => {
|
13301
|
-
const { goals: n } = I(), { setAlert: i, setSelectedGoal: a, updateGoal: r } =
|
13301
|
+
const { goals: n } = I(), { setAlert: i, setSelectedGoal: a, updateGoal: r } = rt(), [o, s] = g.useState(e.name), c = !e.guid, d = e.track_type === K.SAVINGS_TRACK && e.has_been_spent || e.track_type !== K.SAVINGS_TRACK && e.is_complete, _ = async () => {
|
13302
13302
|
const h = { ...e, name: o };
|
13303
13303
|
e.name = o, c ? a(h) : (await r(h), i(n.alert_goal_updated_name));
|
13304
13304
|
}, u = () => {
|
@@ -13317,7 +13317,7 @@ const Cp = (e, n) => {
|
|
13317
13317
|
primaryText: n.details_goal_name,
|
13318
13318
|
secondaryText: e.name,
|
13319
13319
|
children: /* @__PURE__ */ t(
|
13320
|
-
|
13320
|
+
nt,
|
13321
13321
|
{
|
13322
13322
|
error: !o,
|
13323
13323
|
fullWidth: !0,
|
@@ -13329,7 +13329,7 @@ const Cp = (e, n) => {
|
|
13329
13329
|
}
|
13330
13330
|
);
|
13331
13331
|
}), Np = ({ goal: e }) => {
|
13332
|
-
const { goals: n } = I(), { setAlert: i, setSelectedGoal: a, updateGoal: r } =
|
13332
|
+
const { goals: n } = I(), { setAlert: i, setSelectedGoal: a, updateGoal: r } = rt(), [o, s] = g.useState(e.retirement_age || 65), c = !e.guid, d = async () => {
|
13333
13333
|
if (!isNaN(o)) {
|
13334
13334
|
const h = { ...e, retirement_age: o };
|
13335
13335
|
e.retirement_age = o, c ? a(h) : (await r(h), i(n.alert_goal_updated_retirement_age));
|
@@ -13351,7 +13351,7 @@ const Cp = (e, n) => {
|
|
13351
13351
|
secondaryText: `${e.retirement_age}`,
|
13352
13352
|
zeroStateText: c && !e.retirement_age ? n.add_age : void 0,
|
13353
13353
|
children: /* @__PURE__ */ t(
|
13354
|
-
|
13354
|
+
nt,
|
13355
13355
|
{
|
13356
13356
|
error: u,
|
13357
13357
|
fullWidth: !0,
|
@@ -13363,7 +13363,7 @@ const Cp = (e, n) => {
|
|
13363
13363
|
}
|
13364
13364
|
);
|
13365
13365
|
}, Dp = A(({ goal: e }) => {
|
13366
|
-
const { goals: n } = I(), { user: i, updateUser: a } = dn(), { setAlert: r } =
|
13366
|
+
const { goals: n } = I(), { user: i, updateUser: a } = dn(), { setAlert: r } = rt(), [o, s] = g.useState(Me(i.birthday ?? 0)), [c, d] = g.useState(null), _ = e.is_complete, u = async () => {
|
13367
13367
|
o && ur(o) && (await a({ ...i, birthday: Oe(o) }), r(n.alert_goal_updated_birthday));
|
13368
13368
|
};
|
13369
13369
|
return /* @__PURE__ */ t(
|
@@ -13395,7 +13395,7 @@ const Cp = (e, n) => {
|
|
13395
13395
|
retirementGoalAccounts: o,
|
13396
13396
|
setAlert: s,
|
13397
13397
|
setNewRetirementGoalAccounts: c
|
13398
|
-
} =
|
13398
|
+
} = rt(), [d, _] = g.useState(!1), u = !e.guid, h = i.filter(
|
13399
13399
|
(f) => u ? r.find((E) => E.account_guid === f.guid) : o.find((E) => E.account_guid === f.guid)
|
13400
13400
|
), m = i.filter(
|
13401
13401
|
(f) => !o.find((E) => E.account_guid === f.guid)
|
@@ -13489,7 +13489,7 @@ const Cp = (e, n) => {
|
|
13489
13489
|
setAlert: d,
|
13490
13490
|
setSelectedGoal: _,
|
13491
13491
|
updateGoal: u
|
13492
|
-
} =
|
13492
|
+
} = rt(), { user: h } = dn(), [m, C] = g.useState(!1), f = !c?.guid, E = c?.track_type === K.SAVINGS_TRACK && c.is_complete && !c.has_been_spent, y = g.useMemo(() => c ? c.track_type === K.SAVINGS_TRACK ? !!c.name && !!c.amount : c.track_type === K.DEBT_TRACK ? !0 : c.track_type === K.RETIREMENT_TRACK ? !!c.name && !!c.amount && !!c.retirement_age && !!h.birthday : !0 : !1, [c]);
|
13493
13493
|
let T = i.delete_button, w = () => C(!0);
|
13494
13494
|
f ? (w = () => N(), T = i.save_button) : E && (w = () => R(), T = n.mark_as_complete_button);
|
13495
13495
|
const N = async () => {
|
@@ -13538,7 +13538,7 @@ const Cp = (e, n) => {
|
|
13538
13538
|
)
|
13539
13539
|
] });
|
13540
13540
|
}), AE = A(({ onBackClick: e, sx: n }) => {
|
13541
|
-
const { onEvent: i } = z(), { isMobile: a } = De(), { visibleAccounts: r } = Re(), { isCopyLoaded: o, isInitialized: s, setSelectedAccounts: c } = le(), { goals: d, common: _ } = I(), { alert: u, goals: h, goalsLoaded: m, loadGoals: C, monthlyCashFlowProfile: f, setAlert: E, retirmentGoals: y } =
|
13541
|
+
const { onEvent: i } = z(), { isMobile: a } = De(), { visibleAccounts: r } = Re(), { isCopyLoaded: o, isInitialized: s, setSelectedAccounts: c } = le(), { goals: d, common: _ } = I(), { alert: u, goals: h, goalsLoaded: m, loadGoals: C, monthlyCashFlowProfile: f, setAlert: E, retirmentGoals: y } = rt(), [T, w] = g.useState(0), [N, x] = g.useState(!1), R = f?.amount_allocated_for_savings_goals || 0, D = f?.amount_allocated_for_debt_goals || 0, $ = f?.amount_allocated_for_retirement_goals || 0, O = o ? S(
|
13542
13542
|
a ? d.tab_subtitle_mobile : d.tab_subtitle,
|
13543
13543
|
B(R, "0,0")
|
13544
13544
|
) : "", L = o ? S(
|
@@ -13564,7 +13564,7 @@ const Cp = (e, n) => {
|
|
13564
13564
|
[h, m, y]
|
13565
13565
|
);
|
13566
13566
|
return !m || !o || !s ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ l(
|
13567
|
-
|
13567
|
+
Lt,
|
13568
13568
|
{
|
13569
13569
|
accountOptions: r,
|
13570
13570
|
actions: [
|
@@ -13581,7 +13581,7 @@ const Cp = (e, n) => {
|
|
13581
13581
|
children: [
|
13582
13582
|
/* @__PURE__ */ l(b, { mx: a ? 0 : 48, my: 24, children: [
|
13583
13583
|
/* @__PURE__ */ l(
|
13584
|
-
|
13584
|
+
Mt,
|
13585
13585
|
{
|
13586
13586
|
onChange: (Ce, ge) => w(ge),
|
13587
13587
|
sx: { bgcolor: "background.paper" },
|
@@ -13829,7 +13829,7 @@ class Mp {
|
|
13829
13829
|
class Fo {
|
13830
13830
|
fetchInstance;
|
13831
13831
|
constructor(n, i) {
|
13832
|
-
this.fetchInstance = new
|
13832
|
+
this.fetchInstance = new at(n, i);
|
13833
13833
|
}
|
13834
13834
|
createSupportTicket = async (n) => this.fetchInstance.post(k.SUPPORT_TICKETS, n).then((i) => i);
|
13835
13835
|
}
|
@@ -14093,7 +14093,7 @@ class Pp {
|
|
14093
14093
|
class Wo {
|
14094
14094
|
fetchInstance;
|
14095
14095
|
constructor(n, i) {
|
14096
|
-
this.fetchInstance = new
|
14096
|
+
this.fetchInstance = new at(n, i);
|
14097
14097
|
}
|
14098
14098
|
getHoldings = async () => this.fetchInstance.get(k.HOLDINGS).then((n) => n.holdings);
|
14099
14099
|
updateHoldings = async (n) => this.fetchInstance.put(`${k.HOLDINGS}/${n.guid}`, n).then((i) => i.holding);
|
@@ -14191,7 +14191,7 @@ const $p = /^[ a-zA-ZÀ-ÿ0-9]+$/, Fp = 50, Uo = 65, Wp = ({
|
|
14191
14191
|
class Vo {
|
14192
14192
|
fetchInstance;
|
14193
14193
|
constructor(n, i) {
|
14194
|
-
this.fetchInstance = new
|
14194
|
+
this.fetchInstance = new at(n, i);
|
14195
14195
|
}
|
14196
14196
|
getMerchants = async (n = [], i = [], a = 1, r = 25) => {
|
14197
14197
|
let o = k.MERCHANTS;
|
@@ -14367,7 +14367,7 @@ const Qp = ({
|
|
14367
14367
|
onMouseLeave: r,
|
14368
14368
|
selectedData: o
|
14369
14369
|
}) => {
|
14370
|
-
const { isMobile: s } = De(), { availableWidth: c } = Fn(), d =
|
14370
|
+
const { isMobile: s } = De(), { availableWidth: c } = Fn(), d = it(), _ = c - 320, u = e.map((f) => ({
|
14371
14371
|
x: wt(Me(f.x), "MMM"),
|
14372
14372
|
y: f.y
|
14373
14373
|
})), 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) => ({
|
@@ -14446,7 +14446,7 @@ const Qp = ({
|
|
14446
14446
|
onMouseLeave: o,
|
14447
14447
|
selectedData: s
|
14448
14448
|
}) => {
|
14449
|
-
const { net_worth: c } = I(), d =
|
14449
|
+
const { net_worth: c } = I(), d = it(), _ = (u) => {
|
14450
14450
|
const h = u.x === n?.x, m = u.x === s?.x, C = {
|
14451
14451
|
backgroundColor: "inherit",
|
14452
14452
|
borderBottom: "inherit",
|
@@ -14456,7 +14456,7 @@ const Qp = ({
|
|
14456
14456
|
};
|
14457
14457
|
return /* @__PURE__ */ l(b, { direction: "column", sx: { width: 320 }, children: [
|
14458
14458
|
/* @__PURE__ */ l(ae, { children: [
|
14459
|
-
/* @__PURE__ */ t(
|
14459
|
+
/* @__PURE__ */ t(Ot, { sx: { backgroundColor: "transparent", mb: 8, mt: 12, px: 12 }, children: /* @__PURE__ */ t(p, { bold: !0, component: "h2", variant: "Body", children: c.monthly_totals }) }),
|
14460
14460
|
/* @__PURE__ */ t(G, {}),
|
14461
14461
|
e.map((u, h) => /* @__PURE__ */ t(
|
14462
14462
|
t1,
|
@@ -14505,7 +14505,7 @@ const Qp = ({
|
|
14505
14505
|
/* @__PURE__ */ t(p, { variant: "Small", children: e })
|
14506
14506
|
] });
|
14507
14507
|
}, kr = A(a1), r1 = ({ hoveredData: e, selectedData: n }) => {
|
14508
|
-
const { net_worth: i } = I(), a =
|
14508
|
+
const { net_worth: i } = I(), a = it(), r = e || n, o = On(Si(r.x), "MMMM");
|
14509
14509
|
return /* @__PURE__ */ l(b, { alignItems: "center", direction: "column", m: 24, children: [
|
14510
14510
|
/* @__PURE__ */ t(p, { color: a.palette.secondary.main, variant: "Small", children: `${o} ${i.net_worth}` }),
|
14511
14511
|
/* @__PURE__ */ t(Ye, { amount: r.y, variant: "H2" }),
|
@@ -14517,7 +14517,7 @@ const Qp = ({
|
|
14517
14517
|
title: i
|
14518
14518
|
}) => {
|
14519
14519
|
let a;
|
14520
|
-
const { refreshAccounts: r } = Re(), { loadWidget: o } = js(), { connect: s } = I(), c =
|
14520
|
+
const { refreshAccounts: r } = Re(), { loadWidget: o } = js(), { connect: s } = I(), c = it(), [d, _] = g.useState(!1), [u, h] = g.useState(!1);
|
14521
14521
|
return g.useEffect(() => (n ? (_(!0), o({ widget: "connections_widget", mode: c.palette.mode }).then((m) => {
|
14522
14522
|
a = new td({
|
14523
14523
|
container: `#${Co}`,
|
@@ -14615,7 +14615,7 @@ const Qp = ({
|
|
14615
14615
|
}
|
14616
14616
|
),
|
14617
14617
|
/* @__PURE__ */ l(ae, { children: [
|
14618
|
-
/* @__PURE__ */ t(
|
14618
|
+
/* @__PURE__ */ t(Ot, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(
|
14619
14619
|
re,
|
14620
14620
|
{
|
14621
14621
|
primary: /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", children: [
|
@@ -14625,7 +14625,7 @@ const Qp = ({
|
|
14625
14625
|
}
|
14626
14626
|
) }),
|
14627
14627
|
/* @__PURE__ */ t(Yo, { groupedAccounts: zo(n) }),
|
14628
|
-
/* @__PURE__ */ t(
|
14628
|
+
/* @__PURE__ */ t(Ot, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(
|
14629
14629
|
re,
|
14630
14630
|
{
|
14631
14631
|
primary: /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", children: [
|
@@ -14652,7 +14652,7 @@ const Qp = ({
|
|
14652
14652
|
e && /* @__PURE__ */ t(kr, { currencyVariant: "H1", iconSize: 32, netWorth: e, theme: s })
|
14653
14653
|
] }),
|
14654
14654
|
/* @__PURE__ */ l(ae, { children: [
|
14655
|
-
/* @__PURE__ */ t(
|
14655
|
+
/* @__PURE__ */ t(Ot, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(
|
14656
14656
|
re,
|
14657
14657
|
{
|
14658
14658
|
primary: /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", children: [
|
@@ -14681,7 +14681,7 @@ const Qp = ({
|
|
14681
14681
|
) }),
|
14682
14682
|
/* @__PURE__ */ t(G, {})
|
14683
14683
|
] }, c.accountName)),
|
14684
|
-
/* @__PURE__ */ t(
|
14684
|
+
/* @__PURE__ */ t(Ot, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(
|
14685
14685
|
re,
|
14686
14686
|
{
|
14687
14687
|
primary: /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", children: [
|
@@ -14758,7 +14758,7 @@ const Qp = ({
|
|
14758
14758
|
j(!0), w(W.ACCOUNTS_CLICK_CONNECT);
|
14759
14759
|
};
|
14760
14760
|
return n ? /* @__PURE__ */ t(
|
14761
|
-
|
14761
|
+
Lt,
|
14762
14762
|
{
|
14763
14763
|
accountOptions: c,
|
14764
14764
|
calendarActions: {
|
@@ -14923,7 +14923,7 @@ const m1 = (e, n) => {
|
|
14923
14923
|
institutionGuid: r?.institution_guid ?? "",
|
14924
14924
|
size: 33
|
14925
14925
|
}
|
14926
|
-
) }) : /* @__PURE__ */ t("div", { style: c.badge, children: /* @__PURE__ */ t(
|
14926
|
+
) }) : /* @__PURE__ */ t("div", { style: c.badge, children: /* @__PURE__ */ t(Gt, { categoryGuid: o?.category_guid, size: 36 }) });
|
14927
14927
|
}, C1 = A(p1), f1 = ({ notification: e, onClick: n }) => {
|
14928
14928
|
const { updateNotification: i } = Xs(), a = vn(), r = {
|
14929
14929
|
card: {
|
@@ -14982,7 +14982,7 @@ const m1 = (e, n) => {
|
|
14982
14982
|
class jo {
|
14983
14983
|
fetchInstance;
|
14984
14984
|
constructor(n, i) {
|
14985
|
-
this.fetchInstance = new
|
14985
|
+
this.fetchInstance = new at(n, i);
|
14986
14986
|
}
|
14987
14987
|
deleteDevice = async (n) => this.fetchInstance.delete(`${k.DEVICES}/${n}`).then((i) => i);
|
14988
14988
|
generateDeviceToken = async () => this.fetchInstance.get(`${k.USER}/mobile_token`).then((n) => n.mobile_token);
|
@@ -15289,7 +15289,7 @@ const v1 = ({
|
|
15289
15289
|
imageLargeBreakPoint: r = 12,
|
15290
15290
|
sx: o
|
15291
15291
|
}) => {
|
15292
|
-
const s =
|
15292
|
+
const s = it();
|
15293
15293
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
15294
15294
|
/* @__PURE__ */ t(M, { sx: { pb: 48, ...o }, children: /* @__PURE__ */ l(Je, { container: !0, rowSpacing: 24, children: [
|
15295
15295
|
/* @__PURE__ */ t(Je, { item: !0, lg: 12, md: 12, sm: 12, xs: 12, children: n }),
|
@@ -15321,7 +15321,7 @@ const v1 = ({
|
|
15321
15321
|
] }) }),
|
15322
15322
|
i && /* @__PURE__ */ t(G, {})
|
15323
15323
|
] });
|
15324
|
-
},
|
15324
|
+
}, Dt = ({
|
15325
15325
|
altImage: e,
|
15326
15326
|
content: n,
|
15327
15327
|
hasDivider: i = !0,
|
@@ -15329,7 +15329,7 @@ const v1 = ({
|
|
15329
15329
|
imageLargeBreakPoint: r = 4,
|
15330
15330
|
sx: o
|
15331
15331
|
}) => {
|
15332
|
-
const s =
|
15332
|
+
const s = it();
|
15333
15333
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
15334
15334
|
/* @__PURE__ */ t(M, { sx: { pb: 48, ...o }, children: /* @__PURE__ */ l(Je, { container: !0, spacing: 24, sx: { alignItems: "flex-start" }, children: [
|
15335
15335
|
/* @__PURE__ */ t(
|
@@ -15376,7 +15376,7 @@ const v1 = ({
|
|
15376
15376
|
imageLargeBreakPoint: r = 4,
|
15377
15377
|
sx: o
|
15378
15378
|
}) => {
|
15379
|
-
const s =
|
15379
|
+
const s = it();
|
15380
15380
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
15381
15381
|
/* @__PURE__ */ t(M, { sx: { pb: 48, ...o }, children: /* @__PURE__ */ l(Je, { container: !0, spacing: 24, sx: { alignItems: "flex-start" }, children: [
|
15382
15382
|
/* @__PURE__ */ t(Je, { item: !0, lg: 12 - r, md: 12, sm: 12, xs: 12, children: n }),
|
@@ -15414,7 +15414,7 @@ const v1 = ({
|
|
15414
15414
|
imageLargeBreakPoint: r = 12,
|
15415
15415
|
sx: o
|
15416
15416
|
}) => {
|
15417
|
-
const s =
|
15417
|
+
const s = it();
|
15418
15418
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
15419
15419
|
/* @__PURE__ */ t(M, { sx: { pb: 48, ...o }, children: /* @__PURE__ */ l(Je, { container: !0, rowSpacing: 24, children: [
|
15420
15420
|
/* @__PURE__ */ t(
|
@@ -15526,7 +15526,7 @@ const v1 = ({
|
|
15526
15526
|
),
|
15527
15527
|
/* @__PURE__ */ t(fe, { content: e.accounts_overview.edit_account_title, sx: { pt: 48 } }),
|
15528
15528
|
/* @__PURE__ */ t(
|
15529
|
-
|
15529
|
+
Dt,
|
15530
15530
|
{
|
15531
15531
|
altImage: e.accounts_overview.alt_image_account_details,
|
15532
15532
|
content: /* @__PURE__ */ t(g.Fragment, { children: /* @__PURE__ */ t(
|
@@ -15667,7 +15667,7 @@ const v1 = ({
|
|
15667
15667
|
}
|
15668
15668
|
),
|
15669
15669
|
"need-to-fix-a-broken-account": /* @__PURE__ */ t(
|
15670
|
-
|
15670
|
+
Dt,
|
15671
15671
|
{
|
15672
15672
|
altImage: e.need_to_fix_a_broken_account.alt_image,
|
15673
15673
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
@@ -15769,7 +15769,7 @@ const v1 = ({
|
|
15769
15769
|
),
|
15770
15770
|
/* @__PURE__ */ t(fe, { content: i.adjusting_income_title, sx: { pt: 48 } }),
|
15771
15771
|
/* @__PURE__ */ t(
|
15772
|
-
|
15772
|
+
Dt,
|
15773
15773
|
{
|
15774
15774
|
altImage: i.adjusting_income_alt_image,
|
15775
15775
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
@@ -15918,7 +15918,7 @@ const v1 = ({
|
|
15918
15918
|
}
|
15919
15919
|
),
|
15920
15920
|
debtPrioritization: /* @__PURE__ */ t(
|
15921
|
-
|
15921
|
+
Dt,
|
15922
15922
|
{
|
15923
15923
|
altImage: n.debt_prioritization,
|
15924
15924
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
@@ -16010,7 +16010,7 @@ const v1 = ({
|
|
16010
16010
|
}
|
16011
16011
|
),
|
16012
16012
|
debtDetails: /* @__PURE__ */ t(
|
16013
|
-
|
16013
|
+
Dt,
|
16014
16014
|
{
|
16015
16015
|
altImage: n.debt_details,
|
16016
16016
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
@@ -16348,7 +16348,7 @@ const v1 = ({
|
|
16348
16348
|
),
|
16349
16349
|
/* @__PURE__ */ t(fe, { content: n.savings_goal_section_title, sx: { pt: 48 } }),
|
16350
16350
|
/* @__PURE__ */ t(
|
16351
|
-
|
16351
|
+
Dt,
|
16352
16352
|
{
|
16353
16353
|
altImage: "savings_goal",
|
16354
16354
|
content: /* @__PURE__ */ t(
|
@@ -16372,7 +16372,7 @@ const v1 = ({
|
|
16372
16372
|
),
|
16373
16373
|
/* @__PURE__ */ t(fe, { content: n.debt_payoff_goal_section_title, sx: { pt: 48 } }),
|
16374
16374
|
/* @__PURE__ */ t(
|
16375
|
-
|
16375
|
+
Dt,
|
16376
16376
|
{
|
16377
16377
|
altImage: "debt_payoff",
|
16378
16378
|
content: /* @__PURE__ */ t(g.Fragment, { children: /* @__PURE__ */ t(
|
@@ -16398,7 +16398,7 @@ const v1 = ({
|
|
16398
16398
|
),
|
16399
16399
|
/* @__PURE__ */ t(fe, { content: n.retirement_goal_section_title, sx: { pt: 48 } }),
|
16400
16400
|
/* @__PURE__ */ t(
|
16401
|
-
|
16401
|
+
Dt,
|
16402
16402
|
{
|
16403
16403
|
altImage: "retirement_goal",
|
16404
16404
|
content: /* @__PURE__ */ t(
|
@@ -16431,7 +16431,7 @@ const v1 = ({
|
|
16431
16431
|
}
|
16432
16432
|
),
|
16433
16433
|
/* @__PURE__ */ t(
|
16434
|
-
|
16434
|
+
Dt,
|
16435
16435
|
{
|
16436
16436
|
altImage: "manage_goal",
|
16437
16437
|
content: /* @__PURE__ */ t(
|
@@ -16646,7 +16646,7 @@ const v1 = ({
|
|
16646
16646
|
),
|
16647
16647
|
/* @__PURE__ */ t(fe, { content: i.gains_losses_section_title, sx: { mt: 36 } }),
|
16648
16648
|
/* @__PURE__ */ t(
|
16649
|
-
|
16649
|
+
Dt,
|
16650
16650
|
{
|
16651
16651
|
altImage: i.alt_image_gains_losses,
|
16652
16652
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
@@ -16687,7 +16687,7 @@ const v1 = ({
|
|
16687
16687
|
}
|
16688
16688
|
),
|
16689
16689
|
/* @__PURE__ */ t(
|
16690
|
-
|
16690
|
+
Dt,
|
16691
16691
|
{
|
16692
16692
|
altImage: i.alt_image_assets_liabilities,
|
16693
16693
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
@@ -16872,7 +16872,7 @@ const v1 = ({
|
|
16872
16872
|
}
|
16873
16873
|
),
|
16874
16874
|
editSsction: /* @__PURE__ */ t(
|
16875
|
-
|
16875
|
+
Dt,
|
16876
16876
|
{
|
16877
16877
|
altImage: n.manage_alt_image,
|
16878
16878
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
@@ -16893,7 +16893,7 @@ const v1 = ({
|
|
16893
16893
|
}
|
16894
16894
|
),
|
16895
16895
|
paymentFrequencySection: /* @__PURE__ */ t(
|
16896
|
-
|
16896
|
+
Dt,
|
16897
16897
|
{
|
16898
16898
|
altImage: n.payment_alt_image,
|
16899
16899
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
@@ -17542,7 +17542,7 @@ const v1 = ({
|
|
17542
17542
|
),
|
17543
17543
|
/* @__PURE__ */ t(fe, { content: i.full_feed_section_title, sx: { mt: 48 } }),
|
17544
17544
|
/* @__PURE__ */ t(
|
17545
|
-
|
17545
|
+
Dt,
|
17546
17546
|
{
|
17547
17547
|
altImage: i.alt_image_full_feed,
|
17548
17548
|
content: /* @__PURE__ */ l(g.Fragment, { children: [
|
@@ -17898,7 +17898,7 @@ const v1 = ({
|
|
17898
17898
|
}
|
17899
17899
|
),
|
17900
17900
|
/* @__PURE__ */ t(M, { sx: { px: 24 }, children: /* @__PURE__ */ t(
|
17901
|
-
|
17901
|
+
nt,
|
17902
17902
|
{
|
17903
17903
|
InputLabelProps: { shrink: !0 },
|
17904
17904
|
error: !i,
|
@@ -18066,7 +18066,7 @@ const v1 = ({
|
|
18066
18066
|
}
|
18067
18067
|
),
|
18068
18068
|
/* @__PURE__ */ t(b, { sx: { gap: 24, p: 24 }, children: h.map(({ label: E, name: y }) => /* @__PURE__ */ t(
|
18069
|
-
|
18069
|
+
nt,
|
18070
18070
|
{
|
18071
18071
|
InputLabelProps: { shrink: !0 },
|
18072
18072
|
error: !!c[y],
|
@@ -18458,7 +18458,7 @@ const v1 = ({
|
|
18458
18458
|
)
|
18459
18459
|
] });
|
18460
18460
|
}, sC = A(oC), cC = A(() => {
|
18461
|
-
const { common: e, settings: n } = I(), { sendEmailVerification: i } =
|
18461
|
+
const { common: e, settings: n } = I(), { sendEmailVerification: i } = Ht(), { user: a } = dn(), r = pe(), [o, s] = g.useState(!1), c = () => {
|
18462
18462
|
s(!1);
|
18463
18463
|
}, d = () => {
|
18464
18464
|
s(!0);
|
@@ -18527,12 +18527,12 @@ const v1 = ({
|
|
18527
18527
|
justifyContent: "flex-end"
|
18528
18528
|
}
|
18529
18529
|
},
|
18530
|
-
children: /* @__PURE__ */ t(b, { children: /* @__PURE__ */ t(
|
18530
|
+
children: /* @__PURE__ */ t(b, { children: /* @__PURE__ */ t(nt, { onChange: (c) => s(c.target.value), sx: { width: 352 }, value: o }) })
|
18531
18531
|
}
|
18532
18532
|
);
|
18533
18533
|
}
|
18534
18534
|
), dC = A(() => {
|
18535
|
-
const { common: e, settings: n } = I(), { sendPhoneVerification: i, verifyPhoneToken: a } =
|
18535
|
+
const { common: e, settings: n } = I(), { sendPhoneVerification: i, verifyPhoneToken: a } = Ht(), { user: r } = dn(), o = pe(), [s, c] = g.useState(!1), [d, _] = g.useState(!1), u = () => {
|
18536
18536
|
c(!1);
|
18537
18537
|
}, h = () => {
|
18538
18538
|
c(!0);
|
@@ -18597,7 +18597,7 @@ const v1 = ({
|
|
18597
18597
|
)
|
18598
18598
|
] });
|
18599
18599
|
}), uC = () => {
|
18600
|
-
const e =
|
18600
|
+
const e = it(), { common: n, settings: i } = I(), { isDesktop: a, isMobile: r, isSmallMobile: o, isTablet: s } = De(), { config: c } = Ca(), { updateUser: d } = Ht(), { user: _ } = dn(), [u, h] = g.useState(_.first_name), [m, C] = g.useState(_.last_name), [f, E] = g.useState(_.email), [y, T] = g.useState(_.phone), [w, N] = g.useState(_.postal_code), [x, R] = g.useState(_.credit_score), [D, $] = g.useState(Me(_.birthday ?? 0)), O = f && !_.email_is_verified, L = y && !_.phone_is_verified, U = async () => {
|
18601
18601
|
const H = {
|
18602
18602
|
..._,
|
18603
18603
|
first_name: u,
|
@@ -18633,7 +18633,7 @@ const v1 = ({
|
|
18633
18633
|
sx: { mb: 44, pt: 32 },
|
18634
18634
|
children: [
|
18635
18635
|
/* @__PURE__ */ t(
|
18636
|
-
|
18636
|
+
nt,
|
18637
18637
|
{
|
18638
18638
|
defaultValue: u,
|
18639
18639
|
label: i.first_name,
|
@@ -18641,7 +18641,7 @@ const v1 = ({
|
|
18641
18641
|
}
|
18642
18642
|
),
|
18643
18643
|
/* @__PURE__ */ t(
|
18644
|
-
|
18644
|
+
nt,
|
18645
18645
|
{
|
18646
18646
|
defaultValue: m,
|
18647
18647
|
label: i.last_name,
|
@@ -18654,7 +18654,7 @@ const v1 = ({
|
|
18654
18654
|
/* @__PURE__ */ l(b, { direction: r ? "column" : "row", children: [
|
18655
18655
|
c.display_email_edit_field_in_settings && /* @__PURE__ */ l(b, { sx: { mb: O ? 20 : 44, mr: r ? 0 : 24 }, children: [
|
18656
18656
|
/* @__PURE__ */ t(
|
18657
|
-
|
18657
|
+
nt,
|
18658
18658
|
{
|
18659
18659
|
defaultValue: f,
|
18660
18660
|
label: i.email_address,
|
@@ -18665,7 +18665,7 @@ const v1 = ({
|
|
18665
18665
|
] }),
|
18666
18666
|
c.display_sms_edit_field_in_settings && /* @__PURE__ */ l(b, { sx: { mb: L ? 20 : 44 }, children: [
|
18667
18667
|
/* @__PURE__ */ t(
|
18668
|
-
|
18668
|
+
nt,
|
18669
18669
|
{
|
18670
18670
|
defaultValue: y,
|
18671
18671
|
label: i.mobile_number,
|
@@ -18707,7 +18707,7 @@ const v1 = ({
|
|
18707
18707
|
}
|
18708
18708
|
) }),
|
18709
18709
|
/* @__PURE__ */ t(
|
18710
|
-
|
18710
|
+
nt,
|
18711
18711
|
{
|
18712
18712
|
defaultValue: w,
|
18713
18713
|
label: i.zip_code,
|
@@ -18717,7 +18717,7 @@ const v1 = ({
|
|
18717
18717
|
] }),
|
18718
18718
|
/* @__PURE__ */ l(b, { children: [
|
18719
18719
|
/* @__PURE__ */ t(
|
18720
|
-
|
18720
|
+
nt,
|
18721
18721
|
{
|
18722
18722
|
defaultValue: x,
|
18723
18723
|
label: i.credit_score,
|
@@ -18741,7 +18741,7 @@ const hC = ({
|
|
18741
18741
|
{
|
18742
18742
|
field: "name",
|
18743
18743
|
headerName: r.mobile_devices_column_name,
|
18744
|
-
renderHeader:
|
18744
|
+
renderHeader: Ut,
|
18745
18745
|
renderCell: (c) => /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 4, children: [
|
18746
18746
|
/* @__PURE__ */ t(p, { variant: "Small", children: c.value }),
|
18747
18747
|
/* @__PURE__ */ t(
|
@@ -18761,7 +18761,7 @@ const hC = ({
|
|
18761
18761
|
{
|
18762
18762
|
field: "device_type",
|
18763
18763
|
headerName: r.mobile_devices_column_type,
|
18764
|
-
renderHeader:
|
18764
|
+
renderHeader: Ut,
|
18765
18765
|
sortable: !0,
|
18766
18766
|
hideSortIcons: !1,
|
18767
18767
|
flex: 1,
|
@@ -18770,7 +18770,7 @@ const hC = ({
|
|
18770
18770
|
{
|
18771
18771
|
field: "created_at",
|
18772
18772
|
headerName: r.mobile_devices_column_added,
|
18773
|
-
renderHeader:
|
18773
|
+
renderHeader: Ut,
|
18774
18774
|
valueFormatter: (c) => Is(Me(c), { addSuffix: !0 }),
|
18775
18775
|
sortable: !0,
|
18776
18776
|
hideSortIcons: !1,
|
@@ -18780,7 +18780,7 @@ const hC = ({
|
|
18780
18780
|
{
|
18781
18781
|
field: "delete",
|
18782
18782
|
headerName: "",
|
18783
|
-
renderHeader:
|
18783
|
+
renderHeader: Ut,
|
18784
18784
|
renderCell: (c) => /* @__PURE__ */ t(b, { mr: 4, children: /* @__PURE__ */ t(
|
18785
18785
|
je,
|
18786
18786
|
{
|
@@ -18953,7 +18953,7 @@ const hC = ({
|
|
18953
18953
|
device: a,
|
18954
18954
|
deviceToken: r = ""
|
18955
18955
|
}) => {
|
18956
|
-
const o = pe(), { common: s, settings: c } = I(), { updateDevice: d, deleteDevice: _, setAlert: u, loadDevices: h } =
|
18956
|
+
const o = pe(), { common: s, settings: c } = I(), { updateDevice: d, deleteDevice: _, setAlert: u, loadDevices: h } = Ht(), [m, C] = g.useState("");
|
18957
18957
|
g.useEffect(() => {
|
18958
18958
|
a && C(a.name);
|
18959
18959
|
}, [a, e]);
|
@@ -19055,13 +19055,13 @@ const hC = ({
|
|
19055
19055
|
),
|
19056
19056
|
/* @__PURE__ */ t(p, { truncate: !1, variant: "Small", children: c.mobile_devices_access_info_2 })
|
19057
19057
|
] }),
|
19058
|
-
e === st.Edit && /* @__PURE__ */ t(b, { children: /* @__PURE__ */ t(
|
19058
|
+
e === st.Edit && /* @__PURE__ */ t(b, { children: /* @__PURE__ */ t(nt, { onChange: (w) => C(w.target.value), value: m }) }),
|
19059
19059
|
e === st.Delete && /* @__PURE__ */ t(Le, { children: c.mobile_devices_delete_info })
|
19060
19060
|
]
|
19061
19061
|
}
|
19062
19062
|
);
|
19063
19063
|
}, pC = A(mC), CC = A(() => {
|
19064
|
-
const { isMobile: e } = De(), { settings: n } = I(), { isCopyLoaded: i, isInitialized: a } = le(), { setAlert: r, devices: o, loadDevices: s, generateDeviceToken: c } =
|
19064
|
+
const { isMobile: e } = De(), { settings: n } = I(), { isCopyLoaded: i, isInitialized: a } = le(), { setAlert: r, devices: o, loadDevices: s, generateDeviceToken: c } = Ht(), [d, _] = g.useState({ open: !1, type: "" }), [u, h] = g.useState(), [m, C] = g.useState("");
|
19065
19065
|
g.useEffect(() => {
|
19066
19066
|
a && s();
|
19067
19067
|
}, [a]);
|
@@ -19130,7 +19130,7 @@ const hC = ({
|
|
19130
19130
|
] }) });
|
19131
19131
|
}
|
19132
19132
|
), fC = A(() => {
|
19133
|
-
const { settings: e } = I(), { categories: n } = Ke(), { selectedRule: i, updateRuleCategory: a } =
|
19133
|
+
const { settings: e } = I(), { categories: n } = Ke(), { selectedRule: i, updateRuleCategory: a } = Ht(), [r, o] = g.useState(!1), s = () => {
|
19134
19134
|
o(!1);
|
19135
19135
|
}, c = () => {
|
19136
19136
|
o(!0);
|
@@ -19158,7 +19158,7 @@ const hC = ({
|
|
19158
19158
|
)
|
19159
19159
|
] });
|
19160
19160
|
}), bC = A(() => {
|
19161
|
-
const { common: e, settings: n } = I(), { selectedRule: i, updateRulePayee: a } =
|
19161
|
+
const { common: e, settings: n } = I(), { selectedRule: i, updateRulePayee: a } = Ht(), r = pe(), [o, s] = g.useState(!1), c = i?.description ? i.description : i?.match_description, [d, _] = g.useState(c || ""), u = () => {
|
19162
19162
|
s(!0);
|
19163
19163
|
}, h = async () => {
|
19164
19164
|
d !== c && i && (i.description = d, await a(i), s(!1));
|
@@ -19187,7 +19187,7 @@ const hC = ({
|
|
19187
19187
|
path: { fill: r.palette.secondary.darker }
|
19188
19188
|
},
|
19189
19189
|
children: /* @__PURE__ */ t(
|
19190
|
-
|
19190
|
+
nt,
|
19191
19191
|
{
|
19192
19192
|
onChange: (m) => _(m.target.value),
|
19193
19193
|
sx: { width: 352 },
|
@@ -19240,7 +19240,7 @@ const hC = ({
|
|
19240
19240
|
},
|
19241
19241
|
title: r.edit_rule,
|
19242
19242
|
children: [
|
19243
|
-
/* @__PURE__ */ t(
|
19243
|
+
/* @__PURE__ */ t(Ot, { children: /* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: r.details }) }),
|
19244
19244
|
/* @__PURE__ */ t(bC, {}),
|
19245
19245
|
/* @__PURE__ */ t(G, { sx: { ml: 24 } }),
|
19246
19246
|
/* @__PURE__ */ t(fC, {}),
|
@@ -19258,7 +19258,7 @@ const hC = ({
|
|
19258
19258
|
);
|
19259
19259
|
}
|
19260
19260
|
), SC = A(({ rule: e }) => {
|
19261
|
-
const { categories: n } = Ke(), { setSelectedGuid: i } = pn(), { deleteTransactionRule: a, setSelectedRule: r } =
|
19261
|
+
const { categories: n } = Ke(), { setSelectedGuid: i } = pn(), { deleteTransactionRule: a, setSelectedRule: r } = Ht(), { isDesktop: o, isTablet: s } = De(), [c, d] = g.useState(!1), _ = () => {
|
19262
19262
|
d(!1), i(null), r(void 0);
|
19263
19263
|
}, u = async () => {
|
19264
19264
|
await a(), _();
|
@@ -19279,7 +19279,7 @@ const hC = ({
|
|
19279
19279
|
/* @__PURE__ */ t(EC, { isOpen: c, onClose: _, onDelete: u })
|
19280
19280
|
] });
|
19281
19281
|
}), TC = A(() => {
|
19282
|
-
const { settings: e } = I(), { loadTransactionRules: n, transactionRules: i } =
|
19282
|
+
const { settings: e } = I(), { loadTransactionRules: n, transactionRules: i } = Ht(), { isDesktop: a, isTablet: r } = De();
|
19283
19283
|
return g.useEffect(() => {
|
19284
19284
|
n();
|
19285
19285
|
}, []), /* @__PURE__ */ l(b, { spacing: 24, sx: { pb: 48, pt: 24 }, children: [
|
@@ -19290,7 +19290,7 @@ const hC = ({
|
|
19290
19290
|
/* @__PURE__ */ t(ae, { children: i.map((o, s) => /* @__PURE__ */ t(SC, { rule: o }, s)) })
|
19291
19291
|
] });
|
19292
19292
|
}), AC = A(() => {
|
19293
|
-
const { settings: e } = I(), { clientCommunicationProfile: n, updateUserCommunicationsProfile: i, userCommunicationsProfile: a } =
|
19293
|
+
const { settings: e } = I(), { clientCommunicationProfile: n, updateUserCommunicationsProfile: i, userCommunicationsProfile: a } = Ht(), r = async (o) => {
|
19294
19294
|
await i(o);
|
19295
19295
|
};
|
19296
19296
|
return /* @__PURE__ */ l(b, { children: [
|
@@ -19335,7 +19335,7 @@ const hC = ({
|
|
19335
19335
|
secondaryText: e.delivery_method_push_subtitle
|
19336
19336
|
}
|
19337
19337
|
),
|
19338
|
-
n.sms_notifications_enabled && /* @__PURE__ */ t(
|
19338
|
+
n.sms_notifications_enabled && /* @__PURE__ */ t(Bt, { sx: { backgroundColor: "background.default", mt: 12 }, children: /* @__PURE__ */ t(Pt, { children: /* @__PURE__ */ l(b, { alignItems: "flex-start", direction: "row", gap: 6, children: [
|
19339
19339
|
/* @__PURE__ */ t(Xl, { color: "primary", filled: !0 }),
|
19340
19340
|
/* @__PURE__ */ t(p, { sx: { whiteSpace: "wrap" }, variant: "XSmall", children: e.delivery_method_sms_note_1 })
|
19341
19341
|
] }) }) })
|
@@ -19411,7 +19411,7 @@ const hC = ({
|
|
19411
19411
|
}
|
19412
19412
|
), xC = A(
|
19413
19413
|
({ onUpdateProfile: e, profile: n }) => {
|
19414
|
-
const { settings: i } = I(), { user: a } = dn(), { clientCommunicationProfile: r, userCommunicationsProfile: o } =
|
19414
|
+
const { settings: i } = I(), { user: a } = dn(), { clientCommunicationProfile: r, userCommunicationsProfile: o } = Ht(), s = n.notification_type > 2, {
|
19415
19415
|
opted_out_of_email_notifications: c,
|
19416
19416
|
opted_out_of_push_notifications: d,
|
19417
19417
|
opted_out_of_sms_notifications: _
|
@@ -19479,7 +19479,7 @@ const hC = ({
|
|
19479
19479
|
detailedNotificationProfiles: s,
|
19480
19480
|
loadNotificationProfiles: c,
|
19481
19481
|
updateNotificationProfile: d
|
19482
|
-
} =
|
19482
|
+
} = Ht(), [_, u] = g.useState(void 0);
|
19483
19483
|
g.useEffect(() => {
|
19484
19484
|
c().finally();
|
19485
19485
|
}, []), g.useEffect(() => {
|
@@ -19538,7 +19538,7 @@ const hC = ({
|
|
19538
19538
|
)
|
19539
19539
|
] });
|
19540
19540
|
}), wE = A(({ onBackClick: e, sx: n }) => {
|
19541
|
-
const { settings: i } = I(), { isCopyLoaded: a, isInitialized: r } = le(), { config: o } = Ca(), { alert: s, setAlert: c } =
|
19541
|
+
const { settings: i } = I(), { isCopyLoaded: a, isInitialized: r } = le(), { config: o } = Ca(), { alert: s, setAlert: c } = Ht(), { isMobile: d } = De(), {
|
19542
19542
|
display_user_profile_in_settings: _,
|
19543
19543
|
display_mobile_devices_in_settings: u,
|
19544
19544
|
display_notification_settings_in_settings: h,
|
@@ -19546,14 +19546,14 @@ const hC = ({
|
|
19546
19546
|
show_help_widget_in_master: C
|
19547
19547
|
} = o, [f, E] = g.useState(0);
|
19548
19548
|
return !a || !r ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ t(
|
19549
|
-
|
19549
|
+
Lt,
|
19550
19550
|
{
|
19551
19551
|
onBackClick: e,
|
19552
19552
|
sx: { height: "calc(100dvh - 24px)", overflow: "auto", ...n },
|
19553
19553
|
title: i.title,
|
19554
19554
|
children: /* @__PURE__ */ l(b, { mx: d ? 0 : 48, my: 24, children: [
|
19555
19555
|
/* @__PURE__ */ l(
|
19556
|
-
|
19556
|
+
Mt,
|
19557
19557
|
{
|
19558
19558
|
onChange: (y, T) => E(T),
|
19559
19559
|
sx: { bgcolor: "background.paper" },
|
@@ -19765,7 +19765,7 @@ const hC = ({
|
|
19765
19765
|
class Qo {
|
19766
19766
|
fetchInstance;
|
19767
19767
|
constructor(n, i) {
|
19768
|
-
this.fetchInstance = new
|
19768
|
+
this.fetchInstance = new at(n, i);
|
19769
19769
|
}
|
19770
19770
|
addRepeatingTransaction = async (n) => this.fetchInstance.post(k.REPEATING_TRANSACTIONS, n).then((i) => i.repeating_transaction);
|
19771
19771
|
getRepeatingTransactions = async () => this.fetchInstance.get(k.REPEATING_TRANSACTIONS).then((n) => n.repeating_transactions);
|
@@ -19775,10 +19775,10 @@ class Qo {
|
|
19775
19775
|
).then((i) => i.repeating_transaction);
|
19776
19776
|
deleteRepeatingTransaction = async (n) => this.fetchInstance.delete(`${k.REPEATING_TRANSACTIONS}/${n}`).then((i) => i);
|
19777
19777
|
}
|
19778
|
-
const vC = (e) => e.type ===
|
19778
|
+
const vC = (e) => e.type === Yt.Income && Bn(e.expectedDate, {
|
19779
19779
|
start: Pe(oe()),
|
19780
19780
|
end: Ve(oe())
|
19781
|
-
}), wC = (e) => e.type ===
|
19781
|
+
}), wC = (e) => e.type === Yt.Expense && Bn(e.expectedDate, {
|
19782
19782
|
start: Pe(oe()),
|
19783
19783
|
end: Ve(oe())
|
19784
19784
|
});
|
@@ -19797,12 +19797,12 @@ class NC {
|
|
19797
19797
|
}
|
19798
19798
|
get paidRecurrences() {
|
19799
19799
|
return this.recurrences.filter(
|
19800
|
-
(n) => n.status ===
|
19800
|
+
(n) => n.status === et.Paid
|
19801
19801
|
);
|
19802
19802
|
}
|
19803
19803
|
get upcomingRecurrences() {
|
19804
19804
|
return this.recurrences.filter(
|
19805
|
-
(n) => n.status ===
|
19805
|
+
(n) => n.status === et.Upcoming
|
19806
19806
|
);
|
19807
19807
|
}
|
19808
19808
|
get expenses() {
|
@@ -19810,30 +19810,28 @@ class NC {
|
|
19810
19810
|
}
|
19811
19811
|
get paidExpenses() {
|
19812
19812
|
return this.expenses.filter(
|
19813
|
-
(n) => n.status ===
|
19813
|
+
(n) => n.status === et.Paid
|
19814
19814
|
);
|
19815
19815
|
}
|
19816
19816
|
get missedExpenses() {
|
19817
19817
|
return this.expenses.filter(
|
19818
|
-
(n) => n.status ===
|
19818
|
+
(n) => n.status === et.Missed
|
19819
19819
|
);
|
19820
19820
|
}
|
19821
19821
|
get upcomingExpenses() {
|
19822
|
-
return this.
|
19823
|
-
(n) => n.type !== Dt.Income
|
19824
|
-
);
|
19822
|
+
return this.expenses.filter((n) => n.status === et.Upcoming);
|
19825
19823
|
}
|
19826
19824
|
get income() {
|
19827
19825
|
return this.recurrences.filter(vC);
|
19828
19826
|
}
|
19829
19827
|
get paidIncome() {
|
19830
19828
|
return this.income.filter(
|
19831
|
-
(n) => n.status ===
|
19829
|
+
(n) => n.status === et.Paid
|
19832
19830
|
);
|
19833
19831
|
}
|
19834
19832
|
get upcomingIncome() {
|
19835
|
-
return this.
|
19836
|
-
(n) => n.
|
19833
|
+
return this.income.filter(
|
19834
|
+
(n) => n.status === et.Upcoming
|
19837
19835
|
);
|
19838
19836
|
}
|
19839
19837
|
get expenseTotal() {
|
@@ -19855,7 +19853,7 @@ class NC {
|
|
19855
19853
|
return this.upcomingIncome.reduce((n, i) => n + i.amount, 0);
|
19856
19854
|
}
|
19857
19855
|
get nextIncomeRecurrence() {
|
19858
|
-
return this.upcomingIncome.find((n) =>
|
19856
|
+
return this.upcomingIncome.find((n) => kt(n.expectedDate, oe()));
|
19859
19857
|
}
|
19860
19858
|
get selectedDayRecurrences() {
|
19861
19859
|
return this.selectedDay && this.recurrences.filter(
|
@@ -19935,7 +19933,7 @@ class NC {
|
|
19935
19933
|
class Jo {
|
19936
19934
|
fetchInstance;
|
19937
19935
|
constructor(n, i) {
|
19938
|
-
this.fetchInstance = new
|
19936
|
+
this.fetchInstance = new at(n, i);
|
19939
19937
|
}
|
19940
19938
|
getAppData = async () => this.fetchInstance.get(k.APP_DATA).then((n) => n);
|
19941
19939
|
}
|
@@ -20149,12 +20147,12 @@ const Ka = ({
|
|
20149
20147
|
] }) }),
|
20150
20148
|
/* @__PURE__ */ t(G, { sx: { ml: n ? 0 : 24 } })
|
20151
20149
|
] }), MC = () => {
|
20152
|
-
const { accounts: e } = Re(), { selectedAccount: n, selectedMember: i } =
|
20150
|
+
const { accounts: e } = Re(), { selectedAccount: n, selectedMember: i } = $t();
|
20153
20151
|
return e.filter(
|
20154
20152
|
(a) => a.member_guid === i.guid && i.successfully_aggregated_at && a.guid !== n.guid
|
20155
20153
|
);
|
20156
20154
|
}, kC = () => {
|
20157
|
-
const [e, n] = g.useState(!1), [i, a] = g.useState(!1), [r, o] = g.useState(!1), [s, c] = g.useState({}), { selectedAccount: d } =
|
20155
|
+
const [e, n] = g.useState(!1), [i, a] = g.useState(!1), [r, o] = g.useState(!1), [s, c] = g.useState({}), { selectedAccount: d } = $t(), { mergeAccounts: _, updateAccount: u } = Re(), { accounts: h } = I(), m = MC(), { onEvent: C } = z(), { modifyTransactionByAccountGuid: f } = Se(), E = async (T) => {
|
20158
20156
|
await u({
|
20159
20157
|
...d,
|
20160
20158
|
...T
|
@@ -20165,7 +20163,7 @@ const Ka = ({
|
|
20165
20163
|
);
|
20166
20164
|
};
|
20167
20165
|
return /* @__PURE__ */ l(Z, { children: [
|
20168
|
-
/* @__PURE__ */ t(
|
20166
|
+
/* @__PURE__ */ t(Ot, { sx: { backgroundColor: "transparent", mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(p, { bold: !0, component: "h2", variant: "XSmall", children: h.actions }) }),
|
20169
20167
|
/* @__PURE__ */ t(
|
20170
20168
|
Ka,
|
20171
20169
|
{
|
@@ -20428,7 +20426,7 @@ const Ka = ({
|
|
20428
20426
|
}, BC = () => {
|
20429
20427
|
const [e, n] = g.useState(!1), {
|
20430
20428
|
palette: { mode: i }
|
20431
|
-
} = pe(), { selectedMember: a } =
|
20429
|
+
} = pe(), { selectedMember: a } = $t(), { accounts: r, connect: o } = I(), s = Pc(a, o), c = Ls.includes(a.connection_status) ? {
|
20432
20430
|
color: "error.main",
|
20433
20431
|
ctaCopy: s.cta ?? "",
|
20434
20432
|
icon: /* @__PURE__ */ t(ha, { sx: { ...za } }),
|
@@ -20441,7 +20439,7 @@ const Ka = ({
|
|
20441
20439
|
secondaryMessage: s.title
|
20442
20440
|
};
|
20443
20441
|
return /* @__PURE__ */ l(Z, { children: [
|
20444
|
-
/* @__PURE__ */ t(
|
20442
|
+
/* @__PURE__ */ t(Ot, { sx: { mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(p, { bold: !0, component: "h2", variant: "XSmall", children: r.connection_status }) }),
|
20445
20443
|
/* @__PURE__ */ t(q, { sx: { backgroundColor: "background.paper" }, children: a.is_manual || !c.ctaCopy ? /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", px: 24, py: 12, children: [
|
20446
20444
|
/* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Xt, { backingSx: { backgroundColor: c.color, borderRadius: 1 }, size: 32, children: c.icon }) }),
|
20447
20445
|
/* @__PURE__ */ t(re, { primary: c.mainMessage, secondary: c.secondaryMessage })
|
@@ -20498,7 +20496,7 @@ const Ka = ({
|
|
20498
20496
|
)
|
20499
20497
|
] });
|
20500
20498
|
}, PC = A(BC), HC = ({ field: e, isOpen: n, onClose: i }) => {
|
20501
|
-
const { updateAccount: a } = Re(), { selectedAccount: r } =
|
20499
|
+
const { updateAccount: a } = Re(), { selectedAccount: r } = $t(), { accounts: o } = I(), [s, c] = g.useState(r[e.name]), [d, _] = g.useState(""), [u, h] = g.useState(!0), m = () => {
|
20502
20500
|
c(""), _(""), i();
|
20503
20501
|
}, C = () => {
|
20504
20502
|
switch (e.type) {
|
@@ -20560,7 +20558,7 @@ const Ka = ({
|
|
20560
20558
|
) });
|
20561
20559
|
default:
|
20562
20560
|
return /* @__PURE__ */ t(
|
20563
|
-
|
20561
|
+
nt,
|
20564
20562
|
{
|
20565
20563
|
defaultValue: r[e.name],
|
20566
20564
|
error: !!d,
|
@@ -20595,7 +20593,7 @@ const Ka = ({
|
|
20595
20593
|
}
|
20596
20594
|
);
|
20597
20595
|
}, $C = A(HC), FC = () => {
|
20598
|
-
const e = window.app?.config, { onEvent: n } = z(), { selectedAccount: i } =
|
20596
|
+
const e = window.app?.config, { onEvent: n } = z(), { selectedAccount: i } = $t(), { accounts: a } = I(), r = cg(i, a), o = i.member_is_managed_by_user || !i.member_is_managed_by_user && e.enable_renaming_home_accounts, [s, c] = g.useState(!1), [d, _] = g.useState(r[0]), u = r.filter(
|
20599
20597
|
(h) => o || i[h.name] || i[h.name] === 0
|
20600
20598
|
);
|
20601
20599
|
return /* @__PURE__ */ l(Z, { children: [
|
@@ -20644,7 +20642,7 @@ const Ka = ({
|
|
20644
20642
|
/* @__PURE__ */ t(GC, {})
|
20645
20643
|
] });
|
20646
20644
|
}, VC = A(UC), KC = ({ setTabValue: e }) => {
|
20647
|
-
const [n, i] = g.useState(!1), { selectedMember: a } =
|
20645
|
+
const [n, i] = g.useState(!1), { selectedMember: a } = $t(), { accounts: r, connect: o } = I(), s = a.connection_status && Ls.includes(a.connection_status);
|
20648
20646
|
if (g.useEffect(() => {
|
20649
20647
|
s && e(1);
|
20650
20648
|
}, [s]), !s) return;
|
@@ -20700,7 +20698,7 @@ const Ka = ({
|
|
20700
20698
|
)
|
20701
20699
|
] });
|
20702
20700
|
}, zC = A(KC), YC = () => {
|
20703
|
-
const [e, n] = g.useState(""), { onEvent: i } = z(), { selectedAccount: a } =
|
20701
|
+
const [e, n] = g.useState(""), { onEvent: i } = z(), { selectedAccount: a } = $t(), { accounts: r } = I(), { setFilter: o, sortedTransactions: s } = Se(), c = g.useMemo(() => s.find((d) => d.guid === e), [e]);
|
20704
20702
|
return g.useEffect(() => {
|
20705
20703
|
o({
|
20706
20704
|
dateRange: { start: _d(hd(), 90), end: gd() },
|
@@ -20724,7 +20722,7 @@ const Ka = ({
|
|
20724
20722
|
return /* @__PURE__ */ l(Z, { children: [
|
20725
20723
|
/* @__PURE__ */ t(zC, { setTabValue: n }),
|
20726
20724
|
/* @__PURE__ */ l(
|
20727
|
-
|
20725
|
+
Mt,
|
20728
20726
|
{
|
20729
20727
|
"aria-label": i.transactions_and_details_aria,
|
20730
20728
|
centered: !0,
|
@@ -20757,7 +20755,7 @@ const Ka = ({
|
|
20757
20755
|
/* @__PURE__ */ t(ri, { index: 1, name: "account-details", value: e, children: /* @__PURE__ */ t(VC, {}) })
|
20758
20756
|
] });
|
20759
20757
|
}, Hc = A(XC), qC = () => {
|
20760
|
-
const [e, n] = g.useState(""), { accounts: i } = I(), { selectedAccounts: a } = le(), { setSelectedAccount: r, setSelectedMember: o } =
|
20758
|
+
const [e, n] = g.useState(""), { accounts: i } = I(), { selectedAccounts: a } = le(), { setSelectedAccount: r, setSelectedMember: o } = $t(), { members: s } = Re(), { onEvent: c } = z(), d = [...new Set(a.map((y) => y.account_type))], _ = a.find((y) => e === y.guid), u = g.useMemo(
|
20761
20759
|
() => a.filter((y) => y.is_hidden),
|
20762
20760
|
[a]
|
20763
20761
|
), h = g.useMemo(
|
@@ -20788,7 +20786,7 @@ const Ka = ({
|
|
20788
20786
|
ae,
|
20789
20787
|
{
|
20790
20788
|
"aria-label": N,
|
20791
|
-
subheader: /* @__PURE__ */ t(
|
20789
|
+
subheader: /* @__PURE__ */ t(Ot, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ l(
|
20792
20790
|
Ee,
|
20793
20791
|
{
|
20794
20792
|
component: "span",
|
@@ -20845,7 +20843,7 @@ const Ka = ({
|
|
20845
20843
|
ae,
|
20846
20844
|
{
|
20847
20845
|
"aria-label": i.account_type_accounts[T[0]?.account_type],
|
20848
|
-
subheader: /* @__PURE__ */ t(
|
20846
|
+
subheader: /* @__PURE__ */ t(Ot, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ l(
|
20849
20847
|
Ee,
|
20850
20848
|
{
|
20851
20849
|
component: "span",
|
@@ -20912,7 +20910,7 @@ const Ka = ({
|
|
20912
20910
|
a(!0), E(W.ACCOUNTS_CLICK_CONNECT);
|
20913
20911
|
};
|
20914
20912
|
return u ? /* @__PURE__ */ t(
|
20915
|
-
|
20913
|
+
Lt,
|
20916
20914
|
{
|
20917
20915
|
accountOptions: c,
|
20918
20916
|
actions: s.show_connections_widget_in_master ? [
|
@@ -21467,7 +21465,7 @@ const Ka = ({
|
|
21467
21465
|
class es {
|
21468
21466
|
fetchInstance;
|
21469
21467
|
constructor(n, i) {
|
21470
|
-
this.fetchInstance = new
|
21468
|
+
this.fetchInstance = new at(n, i);
|
21471
21469
|
}
|
21472
21470
|
createAccount = async (n) => this.fetchInstance.post(k.ACCOUNTS, n).then((i) => i.account).catch((i) => i);
|
21473
21471
|
deleteAccount = async (n) => this.fetchInstance.delete(`${k.ACCOUNTS}/${n}`).catch((i) => i);
|
@@ -21832,23 +21830,23 @@ const sf = () => {
|
|
21832
21830
|
}, a = (r) => {
|
21833
21831
|
r.active || e.alphaTarget(0), r.subject.fx = null, r.subject.fy = null;
|
21834
21832
|
};
|
21835
|
-
return
|
21833
|
+
return Rt.drag().on("start", n).on("drag", i).on("end", a);
|
21836
21834
|
}, mf = (e) => {
|
21837
21835
|
let n = e.transaction_total / e.amount;
|
21838
21836
|
n < 0 ? n = 0 : n > 1 && (n = 1);
|
21839
|
-
const i = n * 2 * Math.PI, a =
|
21837
|
+
const i = n * 2 * Math.PI, a = Rt.interpolate(0, i), r = Rt.arc().cornerRadius(5).innerRadius(e.radius - ts * 2).outerRadius(e.radius - ts).startAngle(0).endAngle(0);
|
21840
21838
|
return (o) => (r.endAngle(a(o)), r(e) || "");
|
21841
21839
|
}, pf = (e) => {
|
21842
|
-
|
21840
|
+
Rt.selectAll(".bubble").call(gf(e));
|
21843
21841
|
}, Cf = (e, n, i) => {
|
21844
21842
|
e.alpha(1).restart().force(
|
21845
21843
|
"x",
|
21846
|
-
|
21844
|
+
Rt.forceX().x(i / 2).strength(0.01)
|
21847
21845
|
).force(
|
21848
21846
|
"y",
|
21849
|
-
|
21847
|
+
Rt.forceY().y(n / 2).strength(0.01)
|
21850
21848
|
);
|
21851
|
-
}, ff = (e, n) =>
|
21849
|
+
}, ff = (e, n) => Rt.scaleLinear().domain([e, n]).range([hf, _f]), bf = (e) => {
|
21852
21850
|
const n = e.reduce((o, s) => {
|
21853
21851
|
const c = Math.max(s.transaction_total, s.amount);
|
21854
21852
|
return c > o ? c : o;
|
@@ -21862,8 +21860,8 @@ const sf = () => {
|
|
21862
21860
|
radius: s
|
21863
21861
|
};
|
21864
21862
|
});
|
21865
|
-
return
|
21866
|
-
|
21863
|
+
return Rt.forceSimulation(r).velocityDecay(0.05).force("collide", Rt.forceCollide((o) => o.radius + 2).strength(0.5)).on("tick", () => {
|
21864
|
+
Rt.selectAll(".bubble").data(r).attr("transform", (o) => `translate(${o.x},${o.y})`);
|
21867
21865
|
});
|
21868
21866
|
}, ns = 5, yf = 2e3;
|
21869
21867
|
function Ef({ bubble: e }) {
|
@@ -21873,9 +21871,9 @@ function Ef({ bubble: e }) {
|
|
21873
21871
|
radius: r
|
21874
21872
|
} = e, o = `mercury-${i}`;
|
21875
21873
|
g.useEffect(() => {
|
21876
|
-
|
21874
|
+
Rt.select(`.${o}`).selectAll(".status").remove(), Rt.select(`.${o}`).append("path").transition().duration(yf).delay(0).attr("class", "status").attr("style", `fill: ${a}; fill-opacity: 1;`).attrTween("d", () => mf(e));
|
21877
21875
|
}, [e]);
|
21878
|
-
const s =
|
21876
|
+
const s = Rt.arc().innerRadius((c) => c - 2 * ns).outerRadius((c) => c - ns).startAngle(0).endAngle(2 * Math.PI);
|
21879
21877
|
return /* @__PURE__ */ t("g", { className: o, children: /* @__PURE__ */ t(
|
21880
21878
|
"path",
|
21881
21879
|
{
|
@@ -21890,7 +21888,7 @@ function Sf({ bubble: e, isDraggable: n, onClick: i = () => {
|
|
21890
21888
|
const [a, r] = g.useState(!1);
|
21891
21889
|
if (g.useEffect(() => {
|
21892
21890
|
document.fonts.ready.then(() => {
|
21893
|
-
const T =
|
21891
|
+
const T = Rt.select(`.icon-${c}`), w = T.node()?.getComputedTextLength();
|
21894
21892
|
T.attr("x", () => h < qn ? w ? w / 2 - 12 : 12 : w ? w / 2 - 16 : 16);
|
21895
21893
|
});
|
21896
21894
|
}, []), !e) return;
|
@@ -22177,7 +22175,7 @@ const Tf = ({
|
|
22177
22175
|
}, [n, i]);
|
22178
22176
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
22179
22177
|
/* @__PURE__ */ t(q, { children: /* @__PURE__ */ l(de, { children: [
|
22180
|
-
/* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(
|
22178
|
+
/* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Gt, { categoryGuid: e.guid, variant: "filled" }) }),
|
22181
22179
|
/* @__PURE__ */ t(re, { primary: e.name, secondary: a })
|
22182
22180
|
] }) }),
|
22183
22181
|
/* @__PURE__ */ t(G, {})
|
@@ -22240,7 +22238,7 @@ const Tf = ({
|
|
22240
22238
|
);
|
22241
22239
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
22242
22240
|
/* @__PURE__ */ t(q, { children: /* @__PURE__ */ l(de, { onClick: () => o(!0), children: [
|
22243
|
-
/* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(
|
22241
|
+
/* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Gt, { categoryGuid: e.guid }) }),
|
22244
22242
|
/* @__PURE__ */ t(
|
22245
22243
|
re,
|
22246
22244
|
{
|
@@ -22293,8 +22291,8 @@ const Tf = ({
|
|
22293
22291
|
percentage: `${o}%`
|
22294
22292
|
}
|
22295
22293
|
];
|
22296
|
-
return /* @__PURE__ */ t(
|
22297
|
-
/* @__PURE__ */ t(
|
22294
|
+
return /* @__PURE__ */ t(Bt, { sx: { mt: 24, mx: 24 }, children: /* @__PURE__ */ t(Pt, { children: /* @__PURE__ */ l(b, { alignItems: "center", gap: 16, children: [
|
22295
|
+
/* @__PURE__ */ t(Gt, { categoryGuid: r, size: 56 }),
|
22298
22296
|
/* @__PURE__ */ t(cn, { children: `${B(s, "0,0")} / ${B(n, "0,0")}` }),
|
22299
22297
|
/* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: a }),
|
22300
22298
|
/* @__PURE__ */ t(ai, { data: c, height: 10 })
|
@@ -22315,7 +22313,7 @@ const Tf = ({
|
|
22315
22313
|
transaction_total: o
|
22316
22314
|
} = e, { setSelectedSubBudget: s } = ct();
|
22317
22315
|
return /* @__PURE__ */ t(q, { children: /* @__PURE__ */ l(de, { onClick: () => s(e), children: [
|
22318
|
-
/* @__PURE__ */ t(Be, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ t(Zs, { color: i, percent: r, size: 40, children: /* @__PURE__ */ t(
|
22316
|
+
/* @__PURE__ */ t(Be, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ t(Zs, { color: i, percent: r, size: 40, children: /* @__PURE__ */ t(Gt, { categoryGuid: a.parent_guid, variant: "basic" }) }) }),
|
22319
22317
|
/* @__PURE__ */ t(
|
22320
22318
|
re,
|
22321
22319
|
{
|
@@ -22473,7 +22471,7 @@ const Tf = ({
|
|
22473
22471
|
/* @__PURE__ */ t(Fc, { budget: e }),
|
22474
22472
|
/* @__PURE__ */ l(b, { children: [
|
22475
22473
|
/* @__PURE__ */ l(
|
22476
|
-
|
22474
|
+
Mt,
|
22477
22475
|
{
|
22478
22476
|
onChange: m,
|
22479
22477
|
sx: { width: "100%" },
|
@@ -22613,7 +22611,7 @@ const Tf = ({
|
|
22613
22611
|
transaction_total: _
|
22614
22612
|
} = e;
|
22615
22613
|
return /* @__PURE__ */ t(q, { children: /* @__PURE__ */ l(de, { onClick: () => n?.(e), children: [
|
22616
|
-
/* @__PURE__ */ t(Be, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ t(Zs, { color: a, percent: c, size: 40, children: /* @__PURE__ */ t(
|
22614
|
+
/* @__PURE__ */ t(Be, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ t(Zs, { color: a, percent: c, size: 40, children: /* @__PURE__ */ t(Gt, { categoryGuid: o, variant: "basic" }) }) }),
|
22617
22615
|
/* @__PURE__ */ t(
|
22618
22616
|
re,
|
22619
22617
|
{
|
@@ -22638,9 +22636,9 @@ const Tf = ({
|
|
22638
22636
|
click_type: "list"
|
22639
22637
|
});
|
22640
22638
|
};
|
22641
|
-
return /* @__PURE__ */ l(
|
22639
|
+
return /* @__PURE__ */ l(Bt, { elevation: 2, sx: { borderRadius: 2 }, children: [
|
22642
22640
|
/* @__PURE__ */ t(wn, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ t(mt, { children: n.budget_categories_title }) }),
|
22643
|
-
/* @__PURE__ */ t(
|
22641
|
+
/* @__PURE__ */ t(Pt, { sx: { p: 0, ":last-child": { p: 0 } }, children: /* @__PURE__ */ t(ae, { children: i.map((o) => /* @__PURE__ */ l(g.Fragment, { children: [
|
22644
22642
|
/* @__PURE__ */ t(Pf, { budget: o, onClick: r }),
|
22645
22643
|
/* @__PURE__ */ t(G, {})
|
22646
22644
|
] }, o.guid)) }) })
|
@@ -22681,9 +22679,9 @@ const Tf = ({
|
|
22681
22679
|
}
|
22682
22680
|
}), C(!0), n(W.BUDGETS_CLICK_EDIT_INCOME);
|
22683
22681
|
};
|
22684
|
-
return /* @__PURE__ */ l(
|
22682
|
+
return /* @__PURE__ */ l(Bt, { elevation: 2, sx: { overflow: "visible", borderRadius: 2 }, children: [
|
22685
22683
|
/* @__PURE__ */ t(wn, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ t(mt, { children: a.overview_title }) }),
|
22686
|
-
/* @__PURE__ */ t(
|
22684
|
+
/* @__PURE__ */ t(Pt, { sx: { pt: 12, px: 24 }, children: /* @__PURE__ */ l(b, { gap: 24, children: [
|
22687
22685
|
/* @__PURE__ */ l(b, { gap: 8, children: [
|
22688
22686
|
/* @__PURE__ */ t(p, { bold: !0, sx: { mb: 8 }, variant: "Body", children: a.spending_title }),
|
22689
22687
|
/* @__PURE__ */ t(ai, { data: E, height: 16 }),
|
@@ -22754,9 +22752,9 @@ const Tf = ({
|
|
22754
22752
|
L(!0), a(W.BUDGETS_CLICK_ADD);
|
22755
22753
|
}, me = () => {
|
22756
22754
|
L(!1);
|
22757
|
-
}, V =
|
22755
|
+
}, V = kt(C.end, Pe(/* @__PURE__ */ new Date()));
|
22758
22756
|
return !c || !d || !f ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ l(
|
22759
|
-
|
22757
|
+
Lt,
|
22760
22758
|
{
|
22761
22759
|
accountOptions: r,
|
22762
22760
|
actions: [
|
@@ -22938,21 +22936,21 @@ const Vf = ({ widgets: e, isLoading: n }) => {
|
|
22938
22936
|
() => c.filter((u) => u.location === cr.RightSide),
|
22939
22937
|
[c]
|
22940
22938
|
);
|
22941
|
-
return /* @__PURE__ */ l(
|
22942
|
-
/* @__PURE__ */ t(
|
22943
|
-
/* @__PURE__ */ l(
|
22939
|
+
return /* @__PURE__ */ l(zt, { container: !0, spacing: a ? 0 : 24, sx: { overflow: "scroll" }, children: [
|
22940
|
+
/* @__PURE__ */ t(zt, { xs: 12, children: r.isInitialized && /* @__PURE__ */ t(Uf, {}) }),
|
22941
|
+
/* @__PURE__ */ l(zt, { lg: 8, xs: 12, children: [
|
22944
22942
|
/* @__PURE__ */ t(Ff, {}),
|
22945
22943
|
n && /* @__PURE__ */ l(b, { direction: "column", spacing: 24, children: [
|
22946
|
-
/* @__PURE__ */ t(
|
22947
|
-
/* @__PURE__ */ t(
|
22948
|
-
/* @__PURE__ */ t(
|
22944
|
+
/* @__PURE__ */ t(Wt, { height: 100, variant: "rounded", width: "100%" }),
|
22945
|
+
/* @__PURE__ */ t(Wt, { height: 300, variant: "rounded", width: "100%" }),
|
22946
|
+
/* @__PURE__ */ t(Wt, { height: 300, variant: "rounded", width: "100%" })
|
22949
22947
|
] }),
|
22950
22948
|
!n && /* @__PURE__ */ t(b, { direction: "column", spacing: 24, children: i ? d.map((u) => /* @__PURE__ */ t(g.Fragment, { children: u.component }, u.index)) : c.map((u) => /* @__PURE__ */ t(g.Fragment, { children: u.component }, u.index)) })
|
22951
22949
|
] }),
|
22952
|
-
i && /* @__PURE__ */ t(
|
22953
|
-
/* @__PURE__ */ t(
|
22954
|
-
/* @__PURE__ */ t(
|
22955
|
-
/* @__PURE__ */ t(
|
22950
|
+
i && /* @__PURE__ */ t(zt, { lg: 4, children: n ? /* @__PURE__ */ l(b, { direction: "column", spacing: 24, children: [
|
22951
|
+
/* @__PURE__ */ t(Wt, { height: 200, variant: "rounded", width: "100%" }),
|
22952
|
+
/* @__PURE__ */ t(Wt, { height: 100, variant: "rounded", width: "100%" }),
|
22953
|
+
/* @__PURE__ */ t(Wt, { height: 300, variant: "rounded", width: "100%" })
|
22956
22954
|
] }) : /* @__PURE__ */ t(b, { direction: "column", spacing: 24, children: _.map((u) => /* @__PURE__ */ t(g.Fragment, { children: u.component }, u.index)) }) })
|
22957
22955
|
] });
|
22958
22956
|
}, BE = A(Vf), Kf = () => /* @__PURE__ */ t("div", { children: "this is Allocation page" }), zf = () => /* @__PURE__ */ t("div", { children: "this is Analysis page" }), Fi = (e) => /* @__PURE__ */ l(ye, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
|
@@ -23244,7 +23242,7 @@ const Vf = ({ widgets: e, isLoading: n }) => {
|
|
23244
23242
|
const ze = U === he.row.id;
|
23245
23243
|
return /* @__PURE__ */ l(Ee, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
|
23246
23244
|
ze ? /* @__PURE__ */ t(
|
23247
|
-
|
23245
|
+
nt,
|
23248
23246
|
{
|
23249
23247
|
autoFocus: !0,
|
23250
23248
|
onBlur: () => _e(he.row.id),
|
@@ -23744,7 +23742,7 @@ const Vf = ({ widgets: e, isLoading: n }) => {
|
|
23744
23742
|
i(W.INVESTMENTS);
|
23745
23743
|
};
|
23746
23744
|
return !s || !c ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ t(
|
23747
|
-
|
23745
|
+
Lt,
|
23748
23746
|
{
|
23749
23747
|
accountOptions: r,
|
23750
23748
|
onAccountsFilterClick: h,
|
@@ -23753,7 +23751,7 @@ const Vf = ({ widgets: e, isLoading: n }) => {
|
|
23753
23751
|
title: o.title,
|
23754
23752
|
children: /* @__PURE__ */ l(b, { mx: a ? 0 : 48, my: 24, children: [
|
23755
23753
|
/* @__PURE__ */ l(
|
23756
|
-
|
23754
|
+
Mt,
|
23757
23755
|
{
|
23758
23756
|
onChange: (m, C) => _(C),
|
23759
23757
|
sx: { bgcolor: "background.paper" },
|
@@ -23835,7 +23833,7 @@ const Br = {
|
|
23835
23833
|
WeeklyNewMerchantsV2: "WeeklyNewMerchantsV2",
|
23836
23834
|
MonthlySpendComparison: "MonthlySpendComparison",
|
23837
23835
|
MonthlySpendToIncomeComparison: "MonthlySpendToIncomeComparison"
|
23838
|
-
},
|
23836
|
+
}, Vt = window?.app?.clientConfig?.microwidget_instance_id || "", rs = {
|
23839
23837
|
INSIGHTS_MICRO_WIDGET: "/micro-insights-carousel"
|
23840
23838
|
}, Wc = (e) => `on${e}Click`, Uc = (e) => `on${e}View`, Vc = (e) => `on${e}ViewFirstTime`, Pr = (e) => e.replace(/([a-z])([A-Z])/g, "$1 $2"), Zf = () => Object.values(Br).reduce(
|
23841
23839
|
(e, n) => ({
|
@@ -23844,7 +23842,7 @@ const Br = {
|
|
23844
23842
|
action: En.MICRO_BEAT_CLICKED,
|
23845
23843
|
category: yn.BEAT_INTERACTION,
|
23846
23844
|
label: Pr(n),
|
23847
|
-
value:
|
23845
|
+
value: Vt
|
23848
23846
|
}
|
23849
23847
|
}),
|
23850
23848
|
{}
|
@@ -23855,7 +23853,7 @@ const Br = {
|
|
23855
23853
|
action: En.MICRO_BEAT_DISPLAYED,
|
23856
23854
|
category: yn.BEAT_INTERACTION,
|
23857
23855
|
label: Pr(n),
|
23858
|
-
value:
|
23856
|
+
value: Vt
|
23859
23857
|
}
|
23860
23858
|
}),
|
23861
23859
|
{}
|
@@ -23866,7 +23864,7 @@ const Br = {
|
|
23866
23864
|
action: En.MICRO_BEAT_DISPLAYED_FIRST_TIME,
|
23867
23865
|
category: yn.BEAT_INTERACTION,
|
23868
23866
|
label: Pr(n),
|
23869
|
-
value:
|
23867
|
+
value: Vt
|
23870
23868
|
}
|
23871
23869
|
}),
|
23872
23870
|
{}
|
@@ -23878,7 +23876,7 @@ const Br = {
|
|
23878
23876
|
}, yn = {
|
23879
23877
|
MICRO_WIDGET_INTERACTION: "Micro Widget Interaction",
|
23880
23878
|
BEAT_INTERACTION: "Beat Interaction"
|
23881
|
-
},
|
23879
|
+
}, Kt = {
|
23882
23880
|
ON_CAROUSEL_BACK_CLICK: "onCarouselBackClick",
|
23883
23881
|
ON_CAROUSEL_BACK_SWIPE: "onCarouselBackSwipe",
|
23884
23882
|
ON_CAROUSEL_FORWARD_CLICK: "onCarouselForwardClick",
|
@@ -23904,60 +23902,60 @@ const Br = {
|
|
23904
23902
|
label: bn.MICRO_WIDGET,
|
23905
23903
|
name: Mn.MICRO_WIDGET_CAROUSEL,
|
23906
23904
|
path: rs.INSIGHTS_MICRO_WIDGET,
|
23907
|
-
value:
|
23905
|
+
value: Vt
|
23908
23906
|
},
|
23909
23907
|
// zero state
|
23910
23908
|
[Mn.MICRO_WIDGET_CAROUSEL_ZERO_STATE]: {
|
23911
23909
|
label: bn.MICRO_WIDGET,
|
23912
23910
|
name: Mn.MICRO_WIDGET_CAROUSEL_ZERO_STATE,
|
23913
23911
|
path: rs.INSIGHTS_MICRO_WIDGET,
|
23914
|
-
value:
|
23912
|
+
value: Vt
|
23915
23913
|
},
|
23916
23914
|
// no relevant cards
|
23917
23915
|
[Mn.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS]: {
|
23918
23916
|
label: bn.MICRO_WIDGET,
|
23919
23917
|
name: Mn.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS,
|
23920
23918
|
path: "/micro-widget",
|
23921
|
-
value:
|
23919
|
+
value: Vt
|
23922
23920
|
}
|
23923
23921
|
}, ss = {
|
23924
23922
|
// carousel control interaction events - clicks and swipes
|
23925
|
-
[
|
23923
|
+
[Kt.ON_CAROUSEL_BACK_CLICK]: {
|
23926
23924
|
action: En.CONTROL_BACKWARD,
|
23927
23925
|
category: yn.MICRO_WIDGET_INTERACTION,
|
23928
23926
|
label: bn.CAROUSEL_CONTROL,
|
23929
|
-
value:
|
23927
|
+
value: Vt
|
23930
23928
|
},
|
23931
|
-
[
|
23929
|
+
[Kt.ON_CAROUSEL_FORWARD_CLICK]: {
|
23932
23930
|
action: En.CONTROL_FORWARD,
|
23933
23931
|
category: yn.MICRO_WIDGET_INTERACTION,
|
23934
23932
|
label: bn.CAROUSEL_CONTROL,
|
23935
|
-
value:
|
23933
|
+
value: Vt
|
23936
23934
|
},
|
23937
|
-
[
|
23935
|
+
[Kt.ON_CAROUSEL_BACK_SWIPE]: {
|
23938
23936
|
action: En.SWIPE_BACKWARD,
|
23939
23937
|
category: yn.MICRO_WIDGET_INTERACTION,
|
23940
23938
|
label: bn.CAROUSEL_CONTROL,
|
23941
|
-
value:
|
23939
|
+
value: Vt
|
23942
23940
|
},
|
23943
|
-
[
|
23941
|
+
[Kt.ON_CAROUSEL_FORWARD_SWIPE]: {
|
23944
23942
|
action: En.SWIPE_FORWARD,
|
23945
23943
|
category: yn.MICRO_WIDGET_INTERACTION,
|
23946
23944
|
label: bn.CAROUSEL_CONTROL,
|
23947
|
-
value:
|
23945
|
+
value: Vt
|
23948
23946
|
},
|
23949
23947
|
// read more card events
|
23950
|
-
[
|
23948
|
+
[Kt.ON_VIEW_MORE_CLICKED]: {
|
23951
23949
|
action: En.MICRO_BEAT_CLICKED,
|
23952
23950
|
category: yn.BEAT_INTERACTION,
|
23953
23951
|
label: bn.VIEW_MORE,
|
23954
|
-
value:
|
23952
|
+
value: Vt
|
23955
23953
|
},
|
23956
23954
|
[Kc.ON_VIEW_MORE_VIEWED]: {
|
23957
23955
|
action: En.MICRO_BEAT_DISPLAYED,
|
23958
23956
|
category: yn.BEAT_INTERACTION,
|
23959
23957
|
label: bn.VIEW_MORE,
|
23960
|
-
value:
|
23958
|
+
value: Vt
|
23961
23959
|
},
|
23962
23960
|
...Zf(),
|
23963
23961
|
...Qf(),
|
@@ -24087,7 +24085,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
24087
24085
|
},
|
24088
24086
|
tabIndex: c ? 0 : -1,
|
24089
24087
|
children: /* @__PURE__ */ t(
|
24090
|
-
|
24088
|
+
Bt,
|
24091
24089
|
{
|
24092
24090
|
"aria-roledescription": "slide",
|
24093
24091
|
className: "mx-micro-card",
|
@@ -24123,7 +24121,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
24123
24121
|
titleTypographyProps: { fontSize: 15, fontWeight: 600, variant: "h3" }
|
24124
24122
|
}
|
24125
24123
|
),
|
24126
|
-
/* @__PURE__ */ t(
|
24124
|
+
/* @__PURE__ */ t(Pt, { sx: { p: 0 }, children: !d && O }),
|
24127
24125
|
!!n && /* @__PURE__ */ t(Gd, { sx: { padding: 0 }, children: /* @__PURE__ */ t(
|
24128
24126
|
M,
|
24129
24127
|
{
|
@@ -24152,7 +24150,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
24152
24150
|
const [n, i] = Et(v.UNCATEGORIZED);
|
24153
24151
|
return Vn(() => {
|
24154
24152
|
e.primary_category_guid ? i(e.primary_category_guid) : e.category_guids?.length && i(e.category_guids[0]);
|
24155
|
-
}, []), /* @__PURE__ */ t(
|
24153
|
+
}, []), /* @__PURE__ */ t(Gt, { categoryGuid: n, size: 16, sx: { minWidth: 16 } });
|
24156
24154
|
}, a0 = ({ beat: e }) => {
|
24157
24155
|
const n = ft(), i = r0(n);
|
24158
24156
|
return /* @__PURE__ */ t(
|
@@ -25121,7 +25119,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
25121
25119
|
scrollRightBoundary: o,
|
25122
25120
|
scrollX: s
|
25123
25121
|
}) => {
|
25124
|
-
const c = m0(), d =
|
25122
|
+
const c = m0(), d = it(), { carouselCopy: _ } = Wn(), u = Math.floor(s) > o || n === 0, h = s < 0 || i - 1 === n, m = d.palette.grey[500], C = e?.primary_300 ?? d.palette.primary.main;
|
25125
25123
|
return /* @__PURE__ */ l(M, { className: c, children: [
|
25126
25124
|
/* @__PURE__ */ t(
|
25127
25125
|
je,
|
@@ -25199,7 +25197,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
25199
25197
|
widthOverrides: u
|
25200
25198
|
}) => {
|
25201
25199
|
const h = f0(a, d, u), m = g.useRef(null), [C, f] = g.useState(0), [E, y] = g.useState(null), [T, w] = g.useState(null), { carouselCopy: N } = Wn(), { onEvent: x } = Bi(), R = () => {
|
25202
|
-
x(
|
25200
|
+
x(Kt.ON_CAROUSEL_FORWARD_CLICK), m.current && m.current.scrollTo({
|
25203
25201
|
left: (
|
25204
25202
|
// Adds the flex gap to the carousel ref's width
|
25205
25203
|
(m.current.offsetWidth + 8) * (Math.floor(C / (m.current.offsetWidth + 8)) + 1)
|
@@ -25208,7 +25206,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
25208
25206
|
behavior: "smooth"
|
25209
25207
|
});
|
25210
25208
|
}, D = () => {
|
25211
|
-
x(
|
25209
|
+
x(Kt.ON_CAROUSEL_BACK_CLICK), m.current && m.current.scrollTo({
|
25212
25210
|
left: (m.current.offsetWidth + 8) * (Math.floor(C / (m.current.offsetWidth + 8)) - 1),
|
25213
25211
|
top: 0,
|
25214
25212
|
behavior: "smooth"
|
@@ -25217,7 +25215,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
25217
25215
|
m.current && f(m.current.scrollLeft);
|
25218
25216
|
}, O = () => {
|
25219
25217
|
if (!T || !E) return;
|
25220
|
-
T - E > _0 ? x(
|
25218
|
+
T - E > _0 ? x(Kt.ON_CAROUSEL_FORWARD_SWIPE) : x(Kt.ON_CAROUSEL_BACK_SWIPE);
|
25221
25219
|
}, L = (V) => {
|
25222
25220
|
y(V.targetTouches[0].clientX);
|
25223
25221
|
}, U = (V) => {
|
@@ -25326,7 +25324,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
25326
25324
|
widthOverrides: a
|
25327
25325
|
}) => {
|
25328
25326
|
const { carouselCopy: r } = Wn(), { onEvent: o } = Bi(), s = () => {
|
25329
|
-
o && (o(
|
25327
|
+
o && (o(Kt.ON_VIEW_MORE_CLICKED), n(), i?.capture("clicked_view_more"));
|
25330
25328
|
};
|
25331
25329
|
return r ? /* @__PURE__ */ l(
|
25332
25330
|
b,
|
@@ -25426,7 +25424,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
25426
25424
|
m(Mn.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS);
|
25427
25425
|
}, []);
|
25428
25426
|
const C = () => {
|
25429
|
-
r && r(), h(
|
25427
|
+
r && r(), h(Kt.ON_NO_RELEVANT_INSIGHTS_CLICKED), o?.capture("clicked_insight", {
|
25430
25428
|
template: "no_relevant_insights"
|
25431
25429
|
});
|
25432
25430
|
};
|
@@ -25545,7 +25543,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
25545
25543
|
variant: N,
|
25546
25544
|
widthOverrides: x
|
25547
25545
|
}) => {
|
25548
|
-
const R =
|
25546
|
+
const R = it(), [D, $] = Et("STANDARD"), [O, L] = Et(!1), U = iu([d], fn), H = au([_], fn);
|
25549
25547
|
g.useEffect(() => {
|
25550
25548
|
fn.isInitialized || fn.initialize(r, y, s);
|
25551
25549
|
}, [r, y, s, fn.isInitialized]), g.useEffect(() => {
|
@@ -25618,7 +25616,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
25618
25616
|
}));
|
25619
25617
|
}, [h]);
|
25620
25618
|
const f = () => {
|
25621
|
-
r && r(), C(
|
25619
|
+
r && r(), C(Kt.ON_VIEW_MORE_CLICKED), o?.capture("clicked_insight", {
|
25622
25620
|
template: "view_more_card"
|
25623
25621
|
});
|
25624
25622
|
};
|
@@ -25659,12 +25657,12 @@ const Gi = g.createContext(null), n0 = ({
|
|
25659
25657
|
).filter(
|
25660
25658
|
(f) => lt(f.occurredOnDate || f.expectedDate, e)
|
25661
25659
|
), _ = d.some(
|
25662
|
-
(f) => f.type !==
|
25660
|
+
(f) => f.type !== Yt.Income && f.status === et.Upcoming
|
25663
25661
|
), u = d.some(
|
25664
|
-
(f) => f.type !==
|
25662
|
+
(f) => f.type !== Yt.Income && f.status === et.Missed
|
25665
25663
|
), h = d.some(
|
25666
|
-
(f) => f.type !==
|
25667
|
-
), m = d.some((f) => f.type ===
|
25664
|
+
(f) => f.type !== Yt.Income && f.status === et.Paid
|
25665
|
+
), m = d.some((f) => f.type === Yt.Income), C = (_ ? 1 : 0) + (u ? 1 : 0) + (h ? 1 : 0) + (m ? 1 : 0);
|
25668
25666
|
return /* @__PURE__ */ t(
|
25669
25667
|
_r,
|
25670
25668
|
{
|
@@ -25785,19 +25783,19 @@ const Gi = g.createContext(null), n0 = ({
|
|
25785
25783
|
/* @__PURE__ */ t(v0, {})
|
25786
25784
|
] }) });
|
25787
25785
|
}), w0 = (e) => {
|
25788
|
-
if (e.type ===
|
25786
|
+
if (e.type === Yt.Income)
|
25789
25787
|
return /* @__PURE__ */ t($r, {});
|
25790
25788
|
switch (e.status) {
|
25791
|
-
case
|
25789
|
+
case et.Missed:
|
25792
25790
|
return /* @__PURE__ */ t(Fr, {});
|
25793
|
-
case
|
25791
|
+
case et.Paid:
|
25794
25792
|
return /* @__PURE__ */ t(Wr, {});
|
25795
25793
|
default:
|
25796
25794
|
return /* @__PURE__ */ t(Hr, {});
|
25797
25795
|
}
|
25798
25796
|
}, N0 = (e, n) => {
|
25799
25797
|
switch (e.status) {
|
25800
|
-
case
|
25798
|
+
case et.Paid:
|
25801
25799
|
return e.expectedDate ? S(
|
25802
25800
|
n.paid_on,
|
25803
25801
|
ie(
|
@@ -25805,12 +25803,12 @@ const Gi = g.createContext(null), n0 = ({
|
|
25805
25803
|
te.MONTH_DAY
|
25806
25804
|
)
|
25807
25805
|
) : n.paid;
|
25808
|
-
case
|
25806
|
+
case et.Missed:
|
25809
25807
|
return S(
|
25810
25808
|
n.missed_on,
|
25811
25809
|
ie(e.expectedDate, te.MONTH_DAY)
|
25812
25810
|
);
|
25813
|
-
case
|
25811
|
+
case et.Upcoming:
|
25814
25812
|
return S(
|
25815
25813
|
n.upcoming_on,
|
25816
25814
|
ie(e.expectedDate, te.MONTH_DAY)
|
@@ -25828,7 +25826,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
25828
25826
|
const { recurring: r } = I(), { repeatingTransactions: o } = _t(), [s, c] = g.useState(!1), d = g.useMemo(
|
25829
25827
|
() => o.find((E) => E.guid === e.repeatingTransactionGuid),
|
25830
25828
|
[e]
|
25831
|
-
), _ = e.type ===
|
25829
|
+
), _ = e.type === Yt.Income, u = e.status === et.Paid, h = e.status === et.Missed, m = e.status === et.Upcoming;
|
25832
25830
|
let C = r.paid?.toLowerCase();
|
25833
25831
|
return h ? C = r.missed?.toLowerCase() : m && (C = a ? nr(r, e.expectedDate, e.frequency) : nr(r, null, e.frequency)), /* @__PURE__ */ l(q, { disableGutters: !0, disablePadding: !0, children: [
|
25834
25832
|
/* @__PURE__ */ l(de, { onClick: () => {
|
@@ -25899,7 +25897,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
25899
25897
|
ariaLabelClose: r.close_drawer_aria,
|
25900
25898
|
isOpen: s,
|
25901
25899
|
onClose: () => c(!1),
|
25902
|
-
title: e.type ===
|
25900
|
+
title: e.type === Yt.Income ? r.income_details : r.expense_details,
|
25903
25901
|
children: d && /* @__PURE__ */ t(
|
25904
25902
|
dc,
|
25905
25903
|
{
|
@@ -25945,7 +25943,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
25945
25943
|
/* @__PURE__ */ t(q, { children: /* @__PURE__ */ t(
|
25946
25944
|
ae,
|
25947
25945
|
{
|
25948
|
-
subheader: /* @__PURE__ */ t(
|
25946
|
+
subheader: /* @__PURE__ */ t(Ot, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ t(p, { bold: !0, variant: "caption", children: ie(d.date, te.DAY_OF_WEEK_MONTH_DAY) }) }),
|
25949
25947
|
sx: { width: "100%" },
|
25950
25948
|
children: d.recurrences.map((u, h) => /* @__PURE__ */ t(g.Fragment, { children: /* @__PURE__ */ t(
|
25951
25949
|
_s,
|
@@ -26013,8 +26011,8 @@ const Gi = g.createContext(null), n0 = ({
|
|
26013
26011
|
transaction_guid: x.transaction?.guid
|
26014
26012
|
});
|
26015
26013
|
};
|
26016
|
-
return /* @__PURE__ */ l(
|
26017
|
-
/* @__PURE__ */ t(
|
26014
|
+
return /* @__PURE__ */ l(zt, { container: !0, sx: { pt: 16, px: 24, spacing: 24 }, children: [
|
26015
|
+
/* @__PURE__ */ t(zt, { md: !0, sm: 12, width: "100%", children: /* @__PURE__ */ l(b, { gap: 24, children: [
|
26018
26016
|
/* @__PURE__ */ t(
|
26019
26017
|
hs,
|
26020
26018
|
{
|
@@ -26043,7 +26041,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
26043
26041
|
}
|
26044
26042
|
),
|
26045
26043
|
(i || n) && /* @__PURE__ */ l(b, { children: [
|
26046
|
-
/* @__PURE__ */ l(
|
26044
|
+
/* @__PURE__ */ l(Mt, { onChange: T, value: E, variant: "fullWidth", children: [
|
26047
26045
|
/* @__PURE__ */ t(
|
26048
26046
|
ke,
|
26049
26047
|
{
|
@@ -26073,7 +26071,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
26073
26071
|
)
|
26074
26072
|
] })
|
26075
26073
|
] }) }),
|
26076
|
-
!i && !n && /* @__PURE__ */ t(
|
26074
|
+
!i && !n && /* @__PURE__ */ t(zt, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ l(b, { gap: 24, children: [
|
26077
26075
|
/* @__PURE__ */ t(Qc, {}),
|
26078
26076
|
/* @__PURE__ */ t(
|
26079
26077
|
pi,
|
@@ -26098,7 +26096,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
26098
26096
|
accounts: s
|
26099
26097
|
}), _().finally());
|
26100
26098
|
}, [o]), r ? /* @__PURE__ */ l(
|
26101
|
-
|
26099
|
+
Lt,
|
26102
26100
|
{
|
26103
26101
|
accountOptions: i,
|
26104
26102
|
actions: [
|
@@ -26116,9 +26114,9 @@ const Gi = g.createContext(null), n0 = ({
|
|
26116
26114
|
title: a.title,
|
26117
26115
|
children: [
|
26118
26116
|
o && d ? /* @__PURE__ */ t(D0, {}) : /* @__PURE__ */ l(b, { direction: "column", p: 48, spacing: 24, children: [
|
26119
|
-
/* @__PURE__ */ t(
|
26120
|
-
/* @__PURE__ */ t(
|
26121
|
-
/* @__PURE__ */ t(
|
26117
|
+
/* @__PURE__ */ t(Wt, { height: 100, variant: "rounded", width: "100%" }),
|
26118
|
+
/* @__PURE__ */ t(Wt, { height: 100, variant: "rounded", width: "100%" }),
|
26119
|
+
/* @__PURE__ */ t(Wt, { height: 600, variant: "rounded", width: "100%" })
|
26122
26120
|
] }),
|
26123
26121
|
/* @__PURE__ */ t(
|
26124
26122
|
ne,
|
@@ -26287,7 +26285,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
26287
26285
|
sx: c === "mini" ? { gap: 0, mb: 0 } : { gap: { xs: 4, xl: 8 }, mb: { xs: 4, xl: 8 } },
|
26288
26286
|
children: [
|
26289
26287
|
/* @__PURE__ */ t(
|
26290
|
-
|
26288
|
+
Gt,
|
26291
26289
|
{
|
26292
26290
|
categoryGuid: n ? v.INCOME : h.guid,
|
26293
26291
|
size: c === "mini" ? 24 : f,
|
@@ -26366,7 +26364,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
26366
26364
|
_(d === y ? "" : y);
|
26367
26365
|
};
|
26368
26366
|
return o ? /* @__PURE__ */ l(M, { width: "100%", children: [
|
26369
|
-
/* @__PURE__ */ l(
|
26367
|
+
/* @__PURE__ */ l(Mt, { onChange: f, value: u, variant: "fullWidth", children: [
|
26370
26368
|
/* @__PURE__ */ t(
|
26371
26369
|
ke,
|
26372
26370
|
{
|
@@ -26623,7 +26621,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
26623
26621
|
T(!0);
|
26624
26622
|
};
|
26625
26623
|
return /* @__PURE__ */ l(M, { children: [
|
26626
|
-
/* @__PURE__ */ l(
|
26624
|
+
/* @__PURE__ */ l(Mt, { onChange: R, value: m, variant: "fullWidth", children: [
|
26627
26625
|
/* @__PURE__ */ t(
|
26628
26626
|
ke,
|
26629
26627
|
{
|
@@ -26703,7 +26701,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
26703
26701
|
s(m[0], m[1]);
|
26704
26702
|
};
|
26705
26703
|
return !r || !o || !_ ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ t(
|
26706
|
-
|
26704
|
+
Lt,
|
26707
26705
|
{
|
26708
26706
|
accountOptions: i,
|
26709
26707
|
calendarActions: { onRangeChanged: h },
|
@@ -26760,7 +26758,7 @@ const Y0 = (e) => e.reduce((i, a) => {
|
|
26760
26758
|
{
|
26761
26759
|
"aria-label": S(i.category_icon_label_aria, a),
|
26762
26760
|
role: "img",
|
26763
|
-
children: /* @__PURE__ */ t(
|
26761
|
+
children: /* @__PURE__ */ t(Gt, { categoryGuid: n })
|
26764
26762
|
}
|
26765
26763
|
),
|
26766
26764
|
/* @__PURE__ */ t(p, { sx: { ml: 12, pb: 6 }, variant: "Small", children: a })
|
@@ -26793,7 +26791,7 @@ const Y0 = (e) => e.reduce((i, a) => {
|
|
26793
26791
|
field: "category",
|
26794
26792
|
headerName: "Category",
|
26795
26793
|
minWidth: 175,
|
26796
|
-
renderHeader:
|
26794
|
+
renderHeader: Ut,
|
26797
26795
|
renderCell: Q0,
|
26798
26796
|
sortable: !0,
|
26799
26797
|
type: "string"
|
@@ -26803,7 +26801,7 @@ const Y0 = (e) => e.reduce((i, a) => {
|
|
26803
26801
|
field: C,
|
26804
26802
|
headerName: C,
|
26805
26803
|
minWidth: 75,
|
26806
|
-
renderHeader:
|
26804
|
+
renderHeader: Ut,
|
26807
26805
|
renderCell: q0,
|
26808
26806
|
align: "right",
|
26809
26807
|
headerAlign: "right",
|
@@ -26887,7 +26885,7 @@ const Y0 = (e) => e.reduce((i, a) => {
|
|
26887
26885
|
}, ib = A(nb), ab = {
|
26888
26886
|
view_transactions: "View Transactions"
|
26889
26887
|
}, rb = ({ onBackClick: e, sx: n }) => {
|
26890
|
-
const i =
|
26888
|
+
const i = it(), { onEvent: a } = z(), { isDesktop: r, isTablet: o, isMobile: s } = De(), { visibleAccounts: c } = Re(), { loadMonthlyCategoryTotals: d, monthlyCategoryTotals: _, getCategoryName: u } = Ke(), { sortedTransactions: h } = Se(), { isCopyLoaded: m, isInitialized: C, selectedAccounts: f, setSelectedAccounts: E } = le(), { trends: y } = I(), T = i.palette.mode === "dark", [w, N] = g.useState(!1), [x, R] = g.useState(!1), [D, $] = g.useState("Chart"), [O, L] = g.useState(""), [U, H] = g.useState({
|
26891
26889
|
start: no(Ve(jt(/* @__PURE__ */ new Date(), 6)), 1),
|
26892
26890
|
end: Ve(/* @__PURE__ */ new Date())
|
26893
26891
|
});
|
@@ -26945,7 +26943,7 @@ const Y0 = (e) => e.reduce((i, a) => {
|
|
26945
26943
|
a(W.TRENDS_HOVER_POINT, { category: Te });
|
26946
26944
|
};
|
26947
26945
|
return !m || !C || !w ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ l(
|
26948
|
-
|
26946
|
+
Lt,
|
26949
26947
|
{
|
26950
26948
|
accountOptions: c,
|
26951
26949
|
calendarActions: { onRangeChanged: Ce },
|
@@ -27075,7 +27073,7 @@ const Y0 = (e) => e.reduce((i, a) => {
|
|
27075
27073
|
}
|
27076
27074
|
);
|
27077
27075
|
}, zE = A(rb), ob = () => {
|
27078
|
-
const e =
|
27076
|
+
const e = it(), { monthlyCategoryTotals: n } = Ke(), { trends: i } = I(), a = Im(n);
|
27079
27077
|
return /* @__PURE__ */ t(
|
27080
27078
|
br,
|
27081
27079
|
{
|
@@ -27121,7 +27119,7 @@ export {
|
|
27121
27119
|
OE as AccountsMiniWidget,
|
27122
27120
|
RE as AccountsWidget,
|
27123
27121
|
$g as ActivitySettings,
|
27124
|
-
|
27122
|
+
tt as ActivityStatus,
|
27125
27123
|
Qe as ActivityType,
|
27126
27124
|
Vh as AddAccountModal,
|
27127
27125
|
tu as AnalyticsApi,
|
@@ -27178,7 +27176,7 @@ export {
|
|
27178
27176
|
yi as EmptyState,
|
27179
27177
|
Os as ErrorStatuses,
|
27180
27178
|
I_ as ExpenseStatus,
|
27181
|
-
|
27179
|
+
at as Fetch,
|
27182
27180
|
xt as FieldType,
|
27183
27181
|
we as Frequency,
|
27184
27182
|
fi as GlobalCopyApi,
|
@@ -27240,8 +27238,8 @@ export {
|
|
27240
27238
|
Ds as PropertyType,
|
27241
27239
|
tE as PropertyTypeName,
|
27242
27240
|
nE as RECURRENCE_COPY,
|
27243
|
-
|
27244
|
-
|
27241
|
+
et as RecurrenceStatus,
|
27242
|
+
Yt as RecurrenceType,
|
27245
27243
|
Q as RecurrenceTypes,
|
27246
27244
|
yE as RecurringActivityMiniWidget,
|
27247
27245
|
tm as RecurringActivityStore,
|
@@ -27292,7 +27290,7 @@ export {
|
|
27292
27290
|
A_ as UserVerification,
|
27293
27291
|
I0 as ViewMoreMicroCard,
|
27294
27292
|
uo as WidgetApi,
|
27295
|
-
|
27293
|
+
Lt as WidgetContainer,
|
27296
27294
|
zs as WidgetContainerContext,
|
27297
27295
|
Ys as WidgetContainerProvider,
|
27298
27296
|
$E as ZeroStateCard,
|
@@ -27319,7 +27317,7 @@ export {
|
|
27319
27317
|
rE as isIncome,
|
27320
27318
|
Qa as isValidNumber,
|
27321
27319
|
Re as useAccountStore,
|
27322
|
-
|
27320
|
+
$t as useAccountUiStore,
|
27323
27321
|
Ca as useAppConfig,
|
27324
27322
|
ct as useBudgetsStore,
|
27325
27323
|
Er as useCashflowStore,
|
@@ -27333,7 +27331,7 @@ export {
|
|
27333
27331
|
I as useGlobalCopyStore,
|
27334
27332
|
ba as useGlobalStore,
|
27335
27333
|
le as useGlobalUiStore,
|
27336
|
-
|
27334
|
+
rt as useGoalStore,
|
27337
27335
|
Sr as useHelpStore,
|
27338
27336
|
Ja as useHoldingStore,
|
27339
27337
|
Nu as useMerchantStore,
|
@@ -27344,7 +27342,7 @@ export {
|
|
27344
27342
|
bt as useRecurringActivityStore,
|
27345
27343
|
_t as useRecurringTransactionsStore,
|
27346
27344
|
De as useScreenSize,
|
27347
|
-
|
27345
|
+
Ht as useSettingsStore,
|
27348
27346
|
Se as useTransactionStore,
|
27349
27347
|
It as useTransactionsUiStore,
|
27350
27348
|
dn as useUserStore,
|