@mx-cartographer/experiences 6.2.3-alpha.bb2 → 6.2.3-alpha.bb3
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 +375 -373
- 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 Lt 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 Bt, 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 Ot from "d3";
|
53
53
|
import { selectAll as Al, interpolateString as Il, arc as xl } from "d3";
|
54
|
-
import { useTheme as
|
54
|
+
import { useTheme as nt, 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 Pt from "@mui/material/Card";
|
57
|
+
import Ht 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 kt 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 Ut from "@mui/material/Skeleton";
|
96
|
+
import { isAfter as Gt } 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 tt 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 Yt 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 it {
|
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 it(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 it(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 it(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 it(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 it(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 it(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 it(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 it(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 it(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 it(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(Lt, { 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 = nt(), 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 = nt(), 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, at = () => 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, $t = () => 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(Bt, { 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 = nt(), 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
|
+
Pt,
|
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(Ht, { 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 = nt(), { 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
|
+
kt,
|
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(Pt, { 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(Ht, { 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
|
+
Pt,
|
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(Ht, { ref: C, sx: { p: 0 }, children: /* @__PURE__ */ t(Ys, { availableHeight: f, availableWidth: E, children: a }) })
|
3389
3389
|
]
|
3390
3390
|
}
|
3391
3391
|
);
|
3392
|
-
},
|
3392
|
+
}, Mt = 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(Pt, { 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(Ht, { 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 it(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: ot.Upcoming,
|
4499
|
+
type: e.repeating_transaction_type === on.Income ? Dt.Income : Dt.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 = ot.Paid, c.occurredOnDate = Me(d.date)) : ve(c.expectedDate, ut(oe(), 3)) && (c.status = ot.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 (; Gt(o, n) || lt(o, n); )
|
4543
4543
|
a.push({ ...e, expectedDate: o }), o = ut(o, 14);
|
4544
|
-
for (o = r;
|
4544
|
+
for (o = r; Gt(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
|
+
Gt(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
|
+
Gt(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
|
+
Gt(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
|
+
Gt(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 it(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) => Wt(s, n.find((m) => m.guid === h)?.name)
|
5087
5087
|
), u = Me(c.date);
|
5088
|
-
return
|
5088
|
+
return Wt(s, c.payee) || Wt(s, c.feed_description) || Wt(s, c.category) || Wt(s, ie(u, te.MONTH)) || Wt(s, ie(u, te.DAY)) || Wt(s, ie(u, te.FULL_MONTH_DAY)) || Wt(s, ie(u, te.MONTH_DAY_YEAR)) || Wt(s, wt(u, Ln)) || Wt(s, c.account) || Wt(s, `${c.amount}`) || Wt(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
|
+
}), Wt = (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 || {}), et = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(et || {}), 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 || {}), ot = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(ot || {}), Dt = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(Dt || {}), 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 = nt(), { 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(Bt, { 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
|
+
Bt,
|
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
|
+
tt,
|
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(Bt, { 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
|
+
tt,
|
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 rt = Pe(oe()), Ur = Ve(oe());
|
7461
|
+
V(rt, Ur), T({
|
7462
|
+
dateRange: { start: rt, 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((rt) => rt.is_manual),
|
7477
7477
|
[r]
|
7478
|
-
), We = $e ? N.find((
|
7479
|
-
V(
|
7480
|
-
}, La = (
|
7481
|
-
h(
|
7478
|
+
), We = $e ? N.find((rt) => rt.guid === $e) : void 0, _n = _ && !!d.payee && !!d.account_guid && !!d.category_guid, Oa = (rt) => {
|
7479
|
+
V(rt[0], rt[1]);
|
7480
|
+
}, La = (rt) => {
|
7481
|
+
h(rt), T({
|
7482
7482
|
...E,
|
7483
|
-
searchTerm:
|
7484
|
-
}), O(W.TRANSACTIONS_CLICK_SEARCH, { search_term:
|
7483
|
+
searchTerm: rt
|
7484
|
+
}), O(W.TRANSACTIONS_CLICK_SEARCH, { search_term: rt });
|
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
|
+
Mt,
|
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: (rt) => {
|
7549
|
+
he(rt), _e(
|
7550
7550
|
"category"
|
7551
7551
|
/* Category */
|
7552
7552
|
);
|
7553
7553
|
},
|
7554
|
-
onRowClick: (
|
7555
|
-
he(
|
7554
|
+
onRowClick: (rt) => {
|
7555
|
+
he(rt), _e(
|
7556
7556
|
"transaction"
|
7557
7557
|
/* Transaction */
|
7558
|
-
), O(W.TRANSACTIONS_CLICK_DETAILS, { transaction_guid:
|
7558
|
+
), O(W.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: rt });
|
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: (rt) => {
|
7576
|
+
he(rt), _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
|
+
tt,
|
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
|
+
kt,
|
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
|
+
Lt,
|
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) || Gt(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
|
+
kt,
|
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 et.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 et.Missed:
|
9090
9090
|
return S(
|
9091
9091
|
n.missed_on,
|
9092
9092
|
ie(e.expectedDate, te.MONTH_DAY)
|
9093
9093
|
);
|
9094
|
-
case
|
9094
|
+
case et.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 et.Missed:
|
9107
9107
|
return /* @__PURE__ */ t(Dr, {});
|
9108
|
-
case
|
9108
|
+
case et.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 === et.Paid, _ = e.activityStatus === et.Missed, u = e.activityStatus === et.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
|
+
tt,
|
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: et.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: et.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: et.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: et.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
|
+
Gt(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); Gt(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 = et.Paid) : ve(C.expectedDate, ut(_, 3)) && (C.activityStatus = et.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: et.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
|
+
kt,
|
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 === et.Upcoming
|
9756
9756
|
), u = d.some(
|
9757
|
-
(f) => f.activityType === Qe.Expense && f.activityStatus ===
|
9757
|
+
(f) => f.activityType === Qe.Expense && f.activityStatus === et.Missed
|
9758
9758
|
), h = d.some(
|
9759
|
-
(f) => f.activityType === Qe.Expense && f.activityStatus ===
|
9759
|
+
(f) => f.activityType === Qe.Expense && f.activityStatus === et.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 = nt(), { 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(Lt, { 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(Yt, { container: !0, pt: 16, px: 24, spacing: 24, children: [
|
10002
|
+
/* @__PURE__ */ t(Yt, { 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(kt, { 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(Yt, { 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
|
+
Mt,
|
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(Ut, { height: 100, variant: "rounded", width: "100%" }),
|
10104
|
+
/* @__PURE__ */ t(Ut, { height: 100, variant: "rounded", width: "100%" }),
|
10105
|
+
/* @__PURE__ */ t(Ut, { 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 === et.Paid);
|
10199
10199
|
}
|
10200
10200
|
get upcomingActivities() {
|
10201
|
-
return this.activities.filter((n) => n.activityStatus ===
|
10201
|
+
return this.activities.filter((n) => n.activityStatus === et.Upcoming);
|
10202
10202
|
}
|
10203
10203
|
get missedActivities() {
|
10204
|
-
return this.activities.filter((n) => n.activityStatus ===
|
10204
|
+
return this.activities.filter((n) => n.activityStatus === et.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) => Gt(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) || Gt(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]
|
@@ -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
|
+
Mt,
|
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
|
+
Mt,
|
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 it(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 } = at(), { 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), Ft = () => {
|
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 = nt(), { selectedAccount: n } = Ft(), { 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 } = Ft(), [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
|
+
Pt,
|
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(Ht, { 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 } = Ft(), { 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 = nt(), { 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
|
+
Pt,
|
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(Ht, { 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 } = at(), [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
|
+
tt,
|
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 } = at(), [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 } = at(), [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
|
+
tt,
|
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
|
+
kt,
|
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 } = at(), { 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 } = at(), 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 Vt = (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 Ut = (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: Vt,
|
12157
12157
|
renderCell: np,
|
12158
12158
|
sortComparator: Jm,
|
12159
12159
|
sortable: !0,
|
@@ -12167,7 +12167,7 @@ const Ut = (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: Vt,
|
12171
12171
|
renderCell: ip,
|
12172
12172
|
sortable: !1,
|
12173
12173
|
type: "custom",
|
@@ -12179,7 +12179,7 @@ const Ut = (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: Vt,
|
12183
12183
|
valueFormatter: (y) => B(y, "0,0"),
|
12184
12184
|
sortable: !0,
|
12185
12185
|
hideSortIcons: c,
|
@@ -12192,7 +12192,7 @@ const Ut = (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: Vt,
|
12196
12196
|
valueFormatter: (y) => isNaN(y) ? "---" : `${Number(y).toFixed(2)}%`,
|
12197
12197
|
sortable: !0,
|
12198
12198
|
hideSortIcons: c,
|
@@ -12205,7 +12205,7 @@ const Ut = (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: Vt,
|
12209
12209
|
valueFormatter: (y) => y ? ie(y, te.MONTH_SHORT_YEAR) : "---",
|
12210
12210
|
sortable: !0,
|
12211
12211
|
hideSortIcons: c,
|
@@ -12218,7 +12218,7 @@ const Ut = (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: Vt,
|
12222
12222
|
valueFormatter: (y) => typeof y == "number" ? B(y, "0,0") : "---",
|
12223
12223
|
sortable: !0,
|
12224
12224
|
hideSortIcons: c,
|
@@ -12431,7 +12431,7 @@ const Ut = (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 } = at(), 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 Ut = (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 } = Ft(), { selectedDebtPriority: w, setSelectedDebtChartData: N } = Cn(), { visibleDebtAccounts: x } = Re(), { goalsLoaded: R, loadGoals: D, monthlyCashFlowProfile: $ } = at(), { 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 Ut = (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
|
+
Mt,
|
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 it(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(Pt, { 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(Ht, { 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 } = at(), 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 } = at(), [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 } = at(), 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 } = at(), 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(Yt, { 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(Yt, { 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(Pt, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ t(vs, { onClick: () => o(u), children: /* @__PURE__ */ t(Ht, { 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 } = at(), { 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 } = Ft(), [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 } = at(), [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 } = at(), 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 } = at(), [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
|
+
tt,
|
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 } = at(), [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
|
+
tt,
|
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 } = at(), [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
|
+
} = at(), [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
|
+
} = at(), { 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 } = at(), [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
|
+
Mt,
|
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
|
+
kt,
|
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 it(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 it(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 it(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 = nt(), _ = 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 = nt(), _ = (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(Lt, { 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 = nt(), 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 = nt(), [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(Lt, { 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(Lt, { 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(Lt, { 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(Lt, { 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
|
+
Mt,
|
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(Bt, { 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 it(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 = nt();
|
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
|
+
}, Rt = ({
|
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 = nt();
|
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 = nt();
|
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 = nt();
|
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
|
+
Rt,
|
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
|
+
Rt,
|
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
|
+
Rt,
|
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
|
+
Rt,
|
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
|
+
Rt,
|
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
|
+
Rt,
|
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
|
+
Rt,
|
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
|
+
Rt,
|
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
|
+
Rt,
|
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
|
+
Rt,
|
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
|
+
Rt,
|
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
|
+
Rt,
|
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
|
+
Rt,
|
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
|
+
Rt,
|
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
|
+
tt,
|
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
|
+
tt,
|
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 } = $t(), { 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(tt, { 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 } = $t(), { 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 = nt(), { common: n, settings: i } = I(), { isDesktop: a, isMobile: r, isSmallMobile: o, isTablet: s } = De(), { config: c } = Ca(), { updateUser: d } = $t(), { 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
|
+
tt,
|
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
|
+
tt,
|
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
|
+
tt,
|
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
|
+
tt,
|
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
|
+
tt,
|
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
|
+
tt,
|
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: Vt,
|
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: Vt,
|
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: Vt,
|
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: Vt,
|
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 } = $t(), [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(tt, { 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 } = $t(), [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 } = $t(), [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 } = $t(), 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
|
+
tt,
|
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(Lt, { 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 } = $t(), { 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 } = $t(), { 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 } = $t(), 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(Pt, { sx: { backgroundColor: "background.default", mt: 12 }, children: /* @__PURE__ */ t(Ht, { 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 } = $t(), 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
|
+
} = $t(), [_, 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 } = $t(), { 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
|
+
Mt,
|
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
|
+
kt,
|
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 it(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 === Dt.Income && Bn(e.expectedDate, {
|
19779
19779
|
start: Pe(oe()),
|
19780
19780
|
end: Ve(oe())
|
19781
|
-
}), wC = (e) => e.type ===
|
19781
|
+
}), wC = (e) => e.type === Dt.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 === ot.Paid
|
19801
19801
|
);
|
19802
19802
|
}
|
19803
19803
|
get upcomingRecurrences() {
|
19804
19804
|
return this.recurrences.filter(
|
19805
|
-
(n) => n.status ===
|
19805
|
+
(n) => n.status === ot.Upcoming
|
19806
19806
|
);
|
19807
19807
|
}
|
19808
19808
|
get expenses() {
|
@@ -19810,28 +19810,30 @@ class NC {
|
|
19810
19810
|
}
|
19811
19811
|
get paidExpenses() {
|
19812
19812
|
return this.expenses.filter(
|
19813
|
-
(n) => n.status ===
|
19813
|
+
(n) => n.status === ot.Paid
|
19814
19814
|
);
|
19815
19815
|
}
|
19816
19816
|
get missedExpenses() {
|
19817
19817
|
return this.expenses.filter(
|
19818
|
-
(n) => n.status ===
|
19818
|
+
(n) => n.status === ot.Missed
|
19819
19819
|
);
|
19820
19820
|
}
|
19821
19821
|
get upcomingExpenses() {
|
19822
|
-
return this.
|
19822
|
+
return this.recurrences.filter(
|
19823
|
+
(n) => n.type !== Dt.Income
|
19824
|
+
);
|
19823
19825
|
}
|
19824
19826
|
get income() {
|
19825
19827
|
return this.recurrences.filter(vC);
|
19826
19828
|
}
|
19827
19829
|
get paidIncome() {
|
19828
19830
|
return this.income.filter(
|
19829
|
-
(n) => n.status ===
|
19831
|
+
(n) => n.status === ot.Paid
|
19830
19832
|
);
|
19831
19833
|
}
|
19832
19834
|
get upcomingIncome() {
|
19833
|
-
return this.
|
19834
|
-
(n) => n.
|
19835
|
+
return this.recurrences.filter(
|
19836
|
+
(n) => n.type === Dt.Income
|
19835
19837
|
);
|
19836
19838
|
}
|
19837
19839
|
get expenseTotal() {
|
@@ -19853,7 +19855,7 @@ class NC {
|
|
19853
19855
|
return this.upcomingIncome.reduce((n, i) => n + i.amount, 0);
|
19854
19856
|
}
|
19855
19857
|
get nextIncomeRecurrence() {
|
19856
|
-
return this.upcomingIncome.find((n) =>
|
19858
|
+
return this.upcomingIncome.find((n) => Gt(n.expectedDate, oe()));
|
19857
19859
|
}
|
19858
19860
|
get selectedDayRecurrences() {
|
19859
19861
|
return this.selectedDay && this.recurrences.filter(
|
@@ -19933,7 +19935,7 @@ class NC {
|
|
19933
19935
|
class Jo {
|
19934
19936
|
fetchInstance;
|
19935
19937
|
constructor(n, i) {
|
19936
|
-
this.fetchInstance = new
|
19938
|
+
this.fetchInstance = new it(n, i);
|
19937
19939
|
}
|
19938
19940
|
getAppData = async () => this.fetchInstance.get(k.APP_DATA).then((n) => n);
|
19939
19941
|
}
|
@@ -20147,12 +20149,12 @@ const Ka = ({
|
|
20147
20149
|
] }) }),
|
20148
20150
|
/* @__PURE__ */ t(G, { sx: { ml: n ? 0 : 24 } })
|
20149
20151
|
] }), MC = () => {
|
20150
|
-
const { accounts: e } = Re(), { selectedAccount: n, selectedMember: i } =
|
20152
|
+
const { accounts: e } = Re(), { selectedAccount: n, selectedMember: i } = Ft();
|
20151
20153
|
return e.filter(
|
20152
20154
|
(a) => a.member_guid === i.guid && i.successfully_aggregated_at && a.guid !== n.guid
|
20153
20155
|
);
|
20154
20156
|
}, kC = () => {
|
20155
|
-
const [e, n] = g.useState(!1), [i, a] = g.useState(!1), [r, o] = g.useState(!1), [s, c] = g.useState({}), { selectedAccount: d } =
|
20157
|
+
const [e, n] = g.useState(!1), [i, a] = g.useState(!1), [r, o] = g.useState(!1), [s, c] = g.useState({}), { selectedAccount: d } = Ft(), { mergeAccounts: _, updateAccount: u } = Re(), { accounts: h } = I(), m = MC(), { onEvent: C } = z(), { modifyTransactionByAccountGuid: f } = Se(), E = async (T) => {
|
20156
20158
|
await u({
|
20157
20159
|
...d,
|
20158
20160
|
...T
|
@@ -20163,7 +20165,7 @@ const Ka = ({
|
|
20163
20165
|
);
|
20164
20166
|
};
|
20165
20167
|
return /* @__PURE__ */ l(Z, { children: [
|
20166
|
-
/* @__PURE__ */ t(
|
20168
|
+
/* @__PURE__ */ t(Lt, { sx: { backgroundColor: "transparent", mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(p, { bold: !0, component: "h2", variant: "XSmall", children: h.actions }) }),
|
20167
20169
|
/* @__PURE__ */ t(
|
20168
20170
|
Ka,
|
20169
20171
|
{
|
@@ -20426,7 +20428,7 @@ const Ka = ({
|
|
20426
20428
|
}, BC = () => {
|
20427
20429
|
const [e, n] = g.useState(!1), {
|
20428
20430
|
palette: { mode: i }
|
20429
|
-
} = pe(), { selectedMember: a } =
|
20431
|
+
} = pe(), { selectedMember: a } = Ft(), { accounts: r, connect: o } = I(), s = Pc(a, o), c = Ls.includes(a.connection_status) ? {
|
20430
20432
|
color: "error.main",
|
20431
20433
|
ctaCopy: s.cta ?? "",
|
20432
20434
|
icon: /* @__PURE__ */ t(ha, { sx: { ...za } }),
|
@@ -20439,7 +20441,7 @@ const Ka = ({
|
|
20439
20441
|
secondaryMessage: s.title
|
20440
20442
|
};
|
20441
20443
|
return /* @__PURE__ */ l(Z, { children: [
|
20442
|
-
/* @__PURE__ */ t(
|
20444
|
+
/* @__PURE__ */ t(Lt, { sx: { mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(p, { bold: !0, component: "h2", variant: "XSmall", children: r.connection_status }) }),
|
20443
20445
|
/* @__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: [
|
20444
20446
|
/* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Xt, { backingSx: { backgroundColor: c.color, borderRadius: 1 }, size: 32, children: c.icon }) }),
|
20445
20447
|
/* @__PURE__ */ t(re, { primary: c.mainMessage, secondary: c.secondaryMessage })
|
@@ -20496,7 +20498,7 @@ const Ka = ({
|
|
20496
20498
|
)
|
20497
20499
|
] });
|
20498
20500
|
}, PC = A(BC), HC = ({ field: e, isOpen: n, onClose: i }) => {
|
20499
|
-
const { updateAccount: a } = Re(), { selectedAccount: r } =
|
20501
|
+
const { updateAccount: a } = Re(), { selectedAccount: r } = Ft(), { accounts: o } = I(), [s, c] = g.useState(r[e.name]), [d, _] = g.useState(""), [u, h] = g.useState(!0), m = () => {
|
20500
20502
|
c(""), _(""), i();
|
20501
20503
|
}, C = () => {
|
20502
20504
|
switch (e.type) {
|
@@ -20558,7 +20560,7 @@ const Ka = ({
|
|
20558
20560
|
) });
|
20559
20561
|
default:
|
20560
20562
|
return /* @__PURE__ */ t(
|
20561
|
-
|
20563
|
+
tt,
|
20562
20564
|
{
|
20563
20565
|
defaultValue: r[e.name],
|
20564
20566
|
error: !!d,
|
@@ -20593,7 +20595,7 @@ const Ka = ({
|
|
20593
20595
|
}
|
20594
20596
|
);
|
20595
20597
|
}, $C = A(HC), FC = () => {
|
20596
|
-
const e = window.app?.config, { onEvent: n } = z(), { selectedAccount: i } =
|
20598
|
+
const e = window.app?.config, { onEvent: n } = z(), { selectedAccount: i } = Ft(), { 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(
|
20597
20599
|
(h) => o || i[h.name] || i[h.name] === 0
|
20598
20600
|
);
|
20599
20601
|
return /* @__PURE__ */ l(Z, { children: [
|
@@ -20642,7 +20644,7 @@ const Ka = ({
|
|
20642
20644
|
/* @__PURE__ */ t(GC, {})
|
20643
20645
|
] });
|
20644
20646
|
}, VC = A(UC), KC = ({ setTabValue: e }) => {
|
20645
|
-
const [n, i] = g.useState(!1), { selectedMember: a } =
|
20647
|
+
const [n, i] = g.useState(!1), { selectedMember: a } = Ft(), { accounts: r, connect: o } = I(), s = a.connection_status && Ls.includes(a.connection_status);
|
20646
20648
|
if (g.useEffect(() => {
|
20647
20649
|
s && e(1);
|
20648
20650
|
}, [s]), !s) return;
|
@@ -20698,7 +20700,7 @@ const Ka = ({
|
|
20698
20700
|
)
|
20699
20701
|
] });
|
20700
20702
|
}, zC = A(KC), YC = () => {
|
20701
|
-
const [e, n] = g.useState(""), { onEvent: i } = z(), { selectedAccount: a } =
|
20703
|
+
const [e, n] = g.useState(""), { onEvent: i } = z(), { selectedAccount: a } = Ft(), { accounts: r } = I(), { setFilter: o, sortedTransactions: s } = Se(), c = g.useMemo(() => s.find((d) => d.guid === e), [e]);
|
20702
20704
|
return g.useEffect(() => {
|
20703
20705
|
o({
|
20704
20706
|
dateRange: { start: _d(hd(), 90), end: gd() },
|
@@ -20722,7 +20724,7 @@ const Ka = ({
|
|
20722
20724
|
return /* @__PURE__ */ l(Z, { children: [
|
20723
20725
|
/* @__PURE__ */ t(zC, { setTabValue: n }),
|
20724
20726
|
/* @__PURE__ */ l(
|
20725
|
-
|
20727
|
+
kt,
|
20726
20728
|
{
|
20727
20729
|
"aria-label": i.transactions_and_details_aria,
|
20728
20730
|
centered: !0,
|
@@ -20755,7 +20757,7 @@ const Ka = ({
|
|
20755
20757
|
/* @__PURE__ */ t(ri, { index: 1, name: "account-details", value: e, children: /* @__PURE__ */ t(VC, {}) })
|
20756
20758
|
] });
|
20757
20759
|
}, Hc = A(XC), qC = () => {
|
20758
|
-
const [e, n] = g.useState(""), { accounts: i } = I(), { selectedAccounts: a } = le(), { setSelectedAccount: r, setSelectedMember: o } =
|
20760
|
+
const [e, n] = g.useState(""), { accounts: i } = I(), { selectedAccounts: a } = le(), { setSelectedAccount: r, setSelectedMember: o } = Ft(), { members: s } = Re(), { onEvent: c } = z(), d = [...new Set(a.map((y) => y.account_type))], _ = a.find((y) => e === y.guid), u = g.useMemo(
|
20759
20761
|
() => a.filter((y) => y.is_hidden),
|
20760
20762
|
[a]
|
20761
20763
|
), h = g.useMemo(
|
@@ -20786,7 +20788,7 @@ const Ka = ({
|
|
20786
20788
|
ae,
|
20787
20789
|
{
|
20788
20790
|
"aria-label": N,
|
20789
|
-
subheader: /* @__PURE__ */ t(
|
20791
|
+
subheader: /* @__PURE__ */ t(Lt, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ l(
|
20790
20792
|
Ee,
|
20791
20793
|
{
|
20792
20794
|
component: "span",
|
@@ -20843,7 +20845,7 @@ const Ka = ({
|
|
20843
20845
|
ae,
|
20844
20846
|
{
|
20845
20847
|
"aria-label": i.account_type_accounts[T[0]?.account_type],
|
20846
|
-
subheader: /* @__PURE__ */ t(
|
20848
|
+
subheader: /* @__PURE__ */ t(Lt, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ l(
|
20847
20849
|
Ee,
|
20848
20850
|
{
|
20849
20851
|
component: "span",
|
@@ -20910,7 +20912,7 @@ const Ka = ({
|
|
20910
20912
|
a(!0), E(W.ACCOUNTS_CLICK_CONNECT);
|
20911
20913
|
};
|
20912
20914
|
return u ? /* @__PURE__ */ t(
|
20913
|
-
|
20915
|
+
Mt,
|
20914
20916
|
{
|
20915
20917
|
accountOptions: c,
|
20916
20918
|
actions: s.show_connections_widget_in_master ? [
|
@@ -21465,7 +21467,7 @@ const Ka = ({
|
|
21465
21467
|
class es {
|
21466
21468
|
fetchInstance;
|
21467
21469
|
constructor(n, i) {
|
21468
|
-
this.fetchInstance = new
|
21470
|
+
this.fetchInstance = new it(n, i);
|
21469
21471
|
}
|
21470
21472
|
createAccount = async (n) => this.fetchInstance.post(k.ACCOUNTS, n).then((i) => i.account).catch((i) => i);
|
21471
21473
|
deleteAccount = async (n) => this.fetchInstance.delete(`${k.ACCOUNTS}/${n}`).catch((i) => i);
|
@@ -21830,23 +21832,23 @@ const sf = () => {
|
|
21830
21832
|
}, a = (r) => {
|
21831
21833
|
r.active || e.alphaTarget(0), r.subject.fx = null, r.subject.fy = null;
|
21832
21834
|
};
|
21833
|
-
return
|
21835
|
+
return Ot.drag().on("start", n).on("drag", i).on("end", a);
|
21834
21836
|
}, mf = (e) => {
|
21835
21837
|
let n = e.transaction_total / e.amount;
|
21836
21838
|
n < 0 ? n = 0 : n > 1 && (n = 1);
|
21837
|
-
const i = n * 2 * Math.PI, a =
|
21839
|
+
const i = n * 2 * Math.PI, a = Ot.interpolate(0, i), r = Ot.arc().cornerRadius(5).innerRadius(e.radius - ts * 2).outerRadius(e.radius - ts).startAngle(0).endAngle(0);
|
21838
21840
|
return (o) => (r.endAngle(a(o)), r(e) || "");
|
21839
21841
|
}, pf = (e) => {
|
21840
|
-
|
21842
|
+
Ot.selectAll(".bubble").call(gf(e));
|
21841
21843
|
}, Cf = (e, n, i) => {
|
21842
21844
|
e.alpha(1).restart().force(
|
21843
21845
|
"x",
|
21844
|
-
|
21846
|
+
Ot.forceX().x(i / 2).strength(0.01)
|
21845
21847
|
).force(
|
21846
21848
|
"y",
|
21847
|
-
|
21849
|
+
Ot.forceY().y(n / 2).strength(0.01)
|
21848
21850
|
);
|
21849
|
-
}, ff = (e, n) =>
|
21851
|
+
}, ff = (e, n) => Ot.scaleLinear().domain([e, n]).range([hf, _f]), bf = (e) => {
|
21850
21852
|
const n = e.reduce((o, s) => {
|
21851
21853
|
const c = Math.max(s.transaction_total, s.amount);
|
21852
21854
|
return c > o ? c : o;
|
@@ -21860,8 +21862,8 @@ const sf = () => {
|
|
21860
21862
|
radius: s
|
21861
21863
|
};
|
21862
21864
|
});
|
21863
|
-
return
|
21864
|
-
|
21865
|
+
return Ot.forceSimulation(r).velocityDecay(0.05).force("collide", Ot.forceCollide((o) => o.radius + 2).strength(0.5)).on("tick", () => {
|
21866
|
+
Ot.selectAll(".bubble").data(r).attr("transform", (o) => `translate(${o.x},${o.y})`);
|
21865
21867
|
});
|
21866
21868
|
}, ns = 5, yf = 2e3;
|
21867
21869
|
function Ef({ bubble: e }) {
|
@@ -21871,9 +21873,9 @@ function Ef({ bubble: e }) {
|
|
21871
21873
|
radius: r
|
21872
21874
|
} = e, o = `mercury-${i}`;
|
21873
21875
|
g.useEffect(() => {
|
21874
|
-
|
21876
|
+
Ot.select(`.${o}`).selectAll(".status").remove(), Ot.select(`.${o}`).append("path").transition().duration(yf).delay(0).attr("class", "status").attr("style", `fill: ${a}; fill-opacity: 1;`).attrTween("d", () => mf(e));
|
21875
21877
|
}, [e]);
|
21876
|
-
const s =
|
21878
|
+
const s = Ot.arc().innerRadius((c) => c - 2 * ns).outerRadius((c) => c - ns).startAngle(0).endAngle(2 * Math.PI);
|
21877
21879
|
return /* @__PURE__ */ t("g", { className: o, children: /* @__PURE__ */ t(
|
21878
21880
|
"path",
|
21879
21881
|
{
|
@@ -21888,7 +21890,7 @@ function Sf({ bubble: e, isDraggable: n, onClick: i = () => {
|
|
21888
21890
|
const [a, r] = g.useState(!1);
|
21889
21891
|
if (g.useEffect(() => {
|
21890
21892
|
document.fonts.ready.then(() => {
|
21891
|
-
const T =
|
21893
|
+
const T = Ot.select(`.icon-${c}`), w = T.node()?.getComputedTextLength();
|
21892
21894
|
T.attr("x", () => h < qn ? w ? w / 2 - 12 : 12 : w ? w / 2 - 16 : 16);
|
21893
21895
|
});
|
21894
21896
|
}, []), !e) return;
|
@@ -22175,7 +22177,7 @@ const Tf = ({
|
|
22175
22177
|
}, [n, i]);
|
22176
22178
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
22177
22179
|
/* @__PURE__ */ t(q, { children: /* @__PURE__ */ l(de, { children: [
|
22178
|
-
/* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(
|
22180
|
+
/* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Bt, { categoryGuid: e.guid, variant: "filled" }) }),
|
22179
22181
|
/* @__PURE__ */ t(re, { primary: e.name, secondary: a })
|
22180
22182
|
] }) }),
|
22181
22183
|
/* @__PURE__ */ t(G, {})
|
@@ -22238,7 +22240,7 @@ const Tf = ({
|
|
22238
22240
|
);
|
22239
22241
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
22240
22242
|
/* @__PURE__ */ t(q, { children: /* @__PURE__ */ l(de, { onClick: () => o(!0), children: [
|
22241
|
-
/* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(
|
22243
|
+
/* @__PURE__ */ t(Be, { children: /* @__PURE__ */ t(Bt, { categoryGuid: e.guid }) }),
|
22242
22244
|
/* @__PURE__ */ t(
|
22243
22245
|
re,
|
22244
22246
|
{
|
@@ -22291,8 +22293,8 @@ const Tf = ({
|
|
22291
22293
|
percentage: `${o}%`
|
22292
22294
|
}
|
22293
22295
|
];
|
22294
|
-
return /* @__PURE__ */ t(
|
22295
|
-
/* @__PURE__ */ t(
|
22296
|
+
return /* @__PURE__ */ t(Pt, { sx: { mt: 24, mx: 24 }, children: /* @__PURE__ */ t(Ht, { children: /* @__PURE__ */ l(b, { alignItems: "center", gap: 16, children: [
|
22297
|
+
/* @__PURE__ */ t(Bt, { categoryGuid: r, size: 56 }),
|
22296
22298
|
/* @__PURE__ */ t(cn, { children: `${B(s, "0,0")} / ${B(n, "0,0")}` }),
|
22297
22299
|
/* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: a }),
|
22298
22300
|
/* @__PURE__ */ t(ai, { data: c, height: 10 })
|
@@ -22313,7 +22315,7 @@ const Tf = ({
|
|
22313
22315
|
transaction_total: o
|
22314
22316
|
} = e, { setSelectedSubBudget: s } = ct();
|
22315
22317
|
return /* @__PURE__ */ t(q, { children: /* @__PURE__ */ l(de, { onClick: () => s(e), children: [
|
22316
|
-
/* @__PURE__ */ t(Be, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ t(Zs, { color: i, percent: r, size: 40, children: /* @__PURE__ */ t(
|
22318
|
+
/* @__PURE__ */ t(Be, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ t(Zs, { color: i, percent: r, size: 40, children: /* @__PURE__ */ t(Bt, { categoryGuid: a.parent_guid, variant: "basic" }) }) }),
|
22317
22319
|
/* @__PURE__ */ t(
|
22318
22320
|
re,
|
22319
22321
|
{
|
@@ -22471,7 +22473,7 @@ const Tf = ({
|
|
22471
22473
|
/* @__PURE__ */ t(Fc, { budget: e }),
|
22472
22474
|
/* @__PURE__ */ l(b, { children: [
|
22473
22475
|
/* @__PURE__ */ l(
|
22474
|
-
|
22476
|
+
kt,
|
22475
22477
|
{
|
22476
22478
|
onChange: m,
|
22477
22479
|
sx: { width: "100%" },
|
@@ -22611,7 +22613,7 @@ const Tf = ({
|
|
22611
22613
|
transaction_total: _
|
22612
22614
|
} = e;
|
22613
22615
|
return /* @__PURE__ */ t(q, { children: /* @__PURE__ */ l(de, { onClick: () => n?.(e), children: [
|
22614
|
-
/* @__PURE__ */ t(Be, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ t(Zs, { color: a, percent: c, size: 40, children: /* @__PURE__ */ t(
|
22616
|
+
/* @__PURE__ */ t(Be, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ t(Zs, { color: a, percent: c, size: 40, children: /* @__PURE__ */ t(Bt, { categoryGuid: o, variant: "basic" }) }) }),
|
22615
22617
|
/* @__PURE__ */ t(
|
22616
22618
|
re,
|
22617
22619
|
{
|
@@ -22636,9 +22638,9 @@ const Tf = ({
|
|
22636
22638
|
click_type: "list"
|
22637
22639
|
});
|
22638
22640
|
};
|
22639
|
-
return /* @__PURE__ */ l(
|
22641
|
+
return /* @__PURE__ */ l(Pt, { elevation: 2, sx: { borderRadius: 2 }, children: [
|
22640
22642
|
/* @__PURE__ */ t(wn, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ t(mt, { children: n.budget_categories_title }) }),
|
22641
|
-
/* @__PURE__ */ t(
|
22643
|
+
/* @__PURE__ */ t(Ht, { sx: { p: 0, ":last-child": { p: 0 } }, children: /* @__PURE__ */ t(ae, { children: i.map((o) => /* @__PURE__ */ l(g.Fragment, { children: [
|
22642
22644
|
/* @__PURE__ */ t(Pf, { budget: o, onClick: r }),
|
22643
22645
|
/* @__PURE__ */ t(G, {})
|
22644
22646
|
] }, o.guid)) }) })
|
@@ -22679,9 +22681,9 @@ const Tf = ({
|
|
22679
22681
|
}
|
22680
22682
|
}), C(!0), n(W.BUDGETS_CLICK_EDIT_INCOME);
|
22681
22683
|
};
|
22682
|
-
return /* @__PURE__ */ l(
|
22684
|
+
return /* @__PURE__ */ l(Pt, { elevation: 2, sx: { overflow: "visible", borderRadius: 2 }, children: [
|
22683
22685
|
/* @__PURE__ */ t(wn, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ t(mt, { children: a.overview_title }) }),
|
22684
|
-
/* @__PURE__ */ t(
|
22686
|
+
/* @__PURE__ */ t(Ht, { sx: { pt: 12, px: 24 }, children: /* @__PURE__ */ l(b, { gap: 24, children: [
|
22685
22687
|
/* @__PURE__ */ l(b, { gap: 8, children: [
|
22686
22688
|
/* @__PURE__ */ t(p, { bold: !0, sx: { mb: 8 }, variant: "Body", children: a.spending_title }),
|
22687
22689
|
/* @__PURE__ */ t(ai, { data: E, height: 16 }),
|
@@ -22752,9 +22754,9 @@ const Tf = ({
|
|
22752
22754
|
L(!0), a(W.BUDGETS_CLICK_ADD);
|
22753
22755
|
}, me = () => {
|
22754
22756
|
L(!1);
|
22755
|
-
}, V =
|
22757
|
+
}, V = Gt(C.end, Pe(/* @__PURE__ */ new Date()));
|
22756
22758
|
return !c || !d || !f ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ l(
|
22757
|
-
|
22759
|
+
Mt,
|
22758
22760
|
{
|
22759
22761
|
accountOptions: r,
|
22760
22762
|
actions: [
|
@@ -22936,21 +22938,21 @@ const Vf = ({ widgets: e, isLoading: n }) => {
|
|
22936
22938
|
() => c.filter((u) => u.location === cr.RightSide),
|
22937
22939
|
[c]
|
22938
22940
|
);
|
22939
|
-
return /* @__PURE__ */ l(
|
22940
|
-
/* @__PURE__ */ t(
|
22941
|
-
/* @__PURE__ */ l(
|
22941
|
+
return /* @__PURE__ */ l(Yt, { container: !0, spacing: a ? 0 : 24, sx: { overflow: "scroll" }, children: [
|
22942
|
+
/* @__PURE__ */ t(Yt, { xs: 12, children: r.isInitialized && /* @__PURE__ */ t(Uf, {}) }),
|
22943
|
+
/* @__PURE__ */ l(Yt, { lg: 8, xs: 12, children: [
|
22942
22944
|
/* @__PURE__ */ t(Ff, {}),
|
22943
22945
|
n && /* @__PURE__ */ l(b, { direction: "column", spacing: 24, children: [
|
22944
|
-
/* @__PURE__ */ t(
|
22945
|
-
/* @__PURE__ */ t(
|
22946
|
-
/* @__PURE__ */ t(
|
22946
|
+
/* @__PURE__ */ t(Ut, { height: 100, variant: "rounded", width: "100%" }),
|
22947
|
+
/* @__PURE__ */ t(Ut, { height: 300, variant: "rounded", width: "100%" }),
|
22948
|
+
/* @__PURE__ */ t(Ut, { height: 300, variant: "rounded", width: "100%" })
|
22947
22949
|
] }),
|
22948
22950
|
!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)) })
|
22949
22951
|
] }),
|
22950
|
-
i && /* @__PURE__ */ t(
|
22951
|
-
/* @__PURE__ */ t(
|
22952
|
-
/* @__PURE__ */ t(
|
22953
|
-
/* @__PURE__ */ t(
|
22952
|
+
i && /* @__PURE__ */ t(Yt, { lg: 4, children: n ? /* @__PURE__ */ l(b, { direction: "column", spacing: 24, children: [
|
22953
|
+
/* @__PURE__ */ t(Ut, { height: 200, variant: "rounded", width: "100%" }),
|
22954
|
+
/* @__PURE__ */ t(Ut, { height: 100, variant: "rounded", width: "100%" }),
|
22955
|
+
/* @__PURE__ */ t(Ut, { height: 300, variant: "rounded", width: "100%" })
|
22954
22956
|
] }) : /* @__PURE__ */ t(b, { direction: "column", spacing: 24, children: _.map((u) => /* @__PURE__ */ t(g.Fragment, { children: u.component }, u.index)) }) })
|
22955
22957
|
] });
|
22956
22958
|
}, 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: [
|
@@ -23242,7 +23244,7 @@ const Vf = ({ widgets: e, isLoading: n }) => {
|
|
23242
23244
|
const ze = U === he.row.id;
|
23243
23245
|
return /* @__PURE__ */ l(Ee, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
|
23244
23246
|
ze ? /* @__PURE__ */ t(
|
23245
|
-
|
23247
|
+
tt,
|
23246
23248
|
{
|
23247
23249
|
autoFocus: !0,
|
23248
23250
|
onBlur: () => _e(he.row.id),
|
@@ -23742,7 +23744,7 @@ const Vf = ({ widgets: e, isLoading: n }) => {
|
|
23742
23744
|
i(W.INVESTMENTS);
|
23743
23745
|
};
|
23744
23746
|
return !s || !c ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ t(
|
23745
|
-
|
23747
|
+
Mt,
|
23746
23748
|
{
|
23747
23749
|
accountOptions: r,
|
23748
23750
|
onAccountsFilterClick: h,
|
@@ -23751,7 +23753,7 @@ const Vf = ({ widgets: e, isLoading: n }) => {
|
|
23751
23753
|
title: o.title,
|
23752
23754
|
children: /* @__PURE__ */ l(b, { mx: a ? 0 : 48, my: 24, children: [
|
23753
23755
|
/* @__PURE__ */ l(
|
23754
|
-
|
23756
|
+
kt,
|
23755
23757
|
{
|
23756
23758
|
onChange: (m, C) => _(C),
|
23757
23759
|
sx: { bgcolor: "background.paper" },
|
@@ -23833,7 +23835,7 @@ const Br = {
|
|
23833
23835
|
WeeklyNewMerchantsV2: "WeeklyNewMerchantsV2",
|
23834
23836
|
MonthlySpendComparison: "MonthlySpendComparison",
|
23835
23837
|
MonthlySpendToIncomeComparison: "MonthlySpendToIncomeComparison"
|
23836
|
-
},
|
23838
|
+
}, Kt = window?.app?.clientConfig?.microwidget_instance_id || "", rs = {
|
23837
23839
|
INSIGHTS_MICRO_WIDGET: "/micro-insights-carousel"
|
23838
23840
|
}, 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(
|
23839
23841
|
(e, n) => ({
|
@@ -23842,7 +23844,7 @@ const Br = {
|
|
23842
23844
|
action: En.MICRO_BEAT_CLICKED,
|
23843
23845
|
category: yn.BEAT_INTERACTION,
|
23844
23846
|
label: Pr(n),
|
23845
|
-
value:
|
23847
|
+
value: Kt
|
23846
23848
|
}
|
23847
23849
|
}),
|
23848
23850
|
{}
|
@@ -23853,7 +23855,7 @@ const Br = {
|
|
23853
23855
|
action: En.MICRO_BEAT_DISPLAYED,
|
23854
23856
|
category: yn.BEAT_INTERACTION,
|
23855
23857
|
label: Pr(n),
|
23856
|
-
value:
|
23858
|
+
value: Kt
|
23857
23859
|
}
|
23858
23860
|
}),
|
23859
23861
|
{}
|
@@ -23864,7 +23866,7 @@ const Br = {
|
|
23864
23866
|
action: En.MICRO_BEAT_DISPLAYED_FIRST_TIME,
|
23865
23867
|
category: yn.BEAT_INTERACTION,
|
23866
23868
|
label: Pr(n),
|
23867
|
-
value:
|
23869
|
+
value: Kt
|
23868
23870
|
}
|
23869
23871
|
}),
|
23870
23872
|
{}
|
@@ -23876,7 +23878,7 @@ const Br = {
|
|
23876
23878
|
}, yn = {
|
23877
23879
|
MICRO_WIDGET_INTERACTION: "Micro Widget Interaction",
|
23878
23880
|
BEAT_INTERACTION: "Beat Interaction"
|
23879
|
-
},
|
23881
|
+
}, zt = {
|
23880
23882
|
ON_CAROUSEL_BACK_CLICK: "onCarouselBackClick",
|
23881
23883
|
ON_CAROUSEL_BACK_SWIPE: "onCarouselBackSwipe",
|
23882
23884
|
ON_CAROUSEL_FORWARD_CLICK: "onCarouselForwardClick",
|
@@ -23902,60 +23904,60 @@ const Br = {
|
|
23902
23904
|
label: bn.MICRO_WIDGET,
|
23903
23905
|
name: Mn.MICRO_WIDGET_CAROUSEL,
|
23904
23906
|
path: rs.INSIGHTS_MICRO_WIDGET,
|
23905
|
-
value:
|
23907
|
+
value: Kt
|
23906
23908
|
},
|
23907
23909
|
// zero state
|
23908
23910
|
[Mn.MICRO_WIDGET_CAROUSEL_ZERO_STATE]: {
|
23909
23911
|
label: bn.MICRO_WIDGET,
|
23910
23912
|
name: Mn.MICRO_WIDGET_CAROUSEL_ZERO_STATE,
|
23911
23913
|
path: rs.INSIGHTS_MICRO_WIDGET,
|
23912
|
-
value:
|
23914
|
+
value: Kt
|
23913
23915
|
},
|
23914
23916
|
// no relevant cards
|
23915
23917
|
[Mn.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS]: {
|
23916
23918
|
label: bn.MICRO_WIDGET,
|
23917
23919
|
name: Mn.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS,
|
23918
23920
|
path: "/micro-widget",
|
23919
|
-
value:
|
23921
|
+
value: Kt
|
23920
23922
|
}
|
23921
23923
|
}, ss = {
|
23922
23924
|
// carousel control interaction events - clicks and swipes
|
23923
|
-
[
|
23925
|
+
[zt.ON_CAROUSEL_BACK_CLICK]: {
|
23924
23926
|
action: En.CONTROL_BACKWARD,
|
23925
23927
|
category: yn.MICRO_WIDGET_INTERACTION,
|
23926
23928
|
label: bn.CAROUSEL_CONTROL,
|
23927
|
-
value:
|
23929
|
+
value: Kt
|
23928
23930
|
},
|
23929
|
-
[
|
23931
|
+
[zt.ON_CAROUSEL_FORWARD_CLICK]: {
|
23930
23932
|
action: En.CONTROL_FORWARD,
|
23931
23933
|
category: yn.MICRO_WIDGET_INTERACTION,
|
23932
23934
|
label: bn.CAROUSEL_CONTROL,
|
23933
|
-
value:
|
23935
|
+
value: Kt
|
23934
23936
|
},
|
23935
|
-
[
|
23937
|
+
[zt.ON_CAROUSEL_BACK_SWIPE]: {
|
23936
23938
|
action: En.SWIPE_BACKWARD,
|
23937
23939
|
category: yn.MICRO_WIDGET_INTERACTION,
|
23938
23940
|
label: bn.CAROUSEL_CONTROL,
|
23939
|
-
value:
|
23941
|
+
value: Kt
|
23940
23942
|
},
|
23941
|
-
[
|
23943
|
+
[zt.ON_CAROUSEL_FORWARD_SWIPE]: {
|
23942
23944
|
action: En.SWIPE_FORWARD,
|
23943
23945
|
category: yn.MICRO_WIDGET_INTERACTION,
|
23944
23946
|
label: bn.CAROUSEL_CONTROL,
|
23945
|
-
value:
|
23947
|
+
value: Kt
|
23946
23948
|
},
|
23947
23949
|
// read more card events
|
23948
|
-
[
|
23950
|
+
[zt.ON_VIEW_MORE_CLICKED]: {
|
23949
23951
|
action: En.MICRO_BEAT_CLICKED,
|
23950
23952
|
category: yn.BEAT_INTERACTION,
|
23951
23953
|
label: bn.VIEW_MORE,
|
23952
|
-
value:
|
23954
|
+
value: Kt
|
23953
23955
|
},
|
23954
23956
|
[Kc.ON_VIEW_MORE_VIEWED]: {
|
23955
23957
|
action: En.MICRO_BEAT_DISPLAYED,
|
23956
23958
|
category: yn.BEAT_INTERACTION,
|
23957
23959
|
label: bn.VIEW_MORE,
|
23958
|
-
value:
|
23960
|
+
value: Kt
|
23959
23961
|
},
|
23960
23962
|
...Zf(),
|
23961
23963
|
...Qf(),
|
@@ -24085,7 +24087,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
24085
24087
|
},
|
24086
24088
|
tabIndex: c ? 0 : -1,
|
24087
24089
|
children: /* @__PURE__ */ t(
|
24088
|
-
|
24090
|
+
Pt,
|
24089
24091
|
{
|
24090
24092
|
"aria-roledescription": "slide",
|
24091
24093
|
className: "mx-micro-card",
|
@@ -24121,7 +24123,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
24121
24123
|
titleTypographyProps: { fontSize: 15, fontWeight: 600, variant: "h3" }
|
24122
24124
|
}
|
24123
24125
|
),
|
24124
|
-
/* @__PURE__ */ t(
|
24126
|
+
/* @__PURE__ */ t(Ht, { sx: { p: 0 }, children: !d && O }),
|
24125
24127
|
!!n && /* @__PURE__ */ t(Gd, { sx: { padding: 0 }, children: /* @__PURE__ */ t(
|
24126
24128
|
M,
|
24127
24129
|
{
|
@@ -24150,7 +24152,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
24150
24152
|
const [n, i] = Et(v.UNCATEGORIZED);
|
24151
24153
|
return Vn(() => {
|
24152
24154
|
e.primary_category_guid ? i(e.primary_category_guid) : e.category_guids?.length && i(e.category_guids[0]);
|
24153
|
-
}, []), /* @__PURE__ */ t(
|
24155
|
+
}, []), /* @__PURE__ */ t(Bt, { categoryGuid: n, size: 16, sx: { minWidth: 16 } });
|
24154
24156
|
}, a0 = ({ beat: e }) => {
|
24155
24157
|
const n = ft(), i = r0(n);
|
24156
24158
|
return /* @__PURE__ */ t(
|
@@ -25119,7 +25121,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
25119
25121
|
scrollRightBoundary: o,
|
25120
25122
|
scrollX: s
|
25121
25123
|
}) => {
|
25122
|
-
const c = m0(), d =
|
25124
|
+
const c = m0(), d = nt(), { 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;
|
25123
25125
|
return /* @__PURE__ */ l(M, { className: c, children: [
|
25124
25126
|
/* @__PURE__ */ t(
|
25125
25127
|
je,
|
@@ -25197,7 +25199,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
25197
25199
|
widthOverrides: u
|
25198
25200
|
}) => {
|
25199
25201
|
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 = () => {
|
25200
|
-
x(
|
25202
|
+
x(zt.ON_CAROUSEL_FORWARD_CLICK), m.current && m.current.scrollTo({
|
25201
25203
|
left: (
|
25202
25204
|
// Adds the flex gap to the carousel ref's width
|
25203
25205
|
(m.current.offsetWidth + 8) * (Math.floor(C / (m.current.offsetWidth + 8)) + 1)
|
@@ -25206,7 +25208,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
25206
25208
|
behavior: "smooth"
|
25207
25209
|
});
|
25208
25210
|
}, D = () => {
|
25209
|
-
x(
|
25211
|
+
x(zt.ON_CAROUSEL_BACK_CLICK), m.current && m.current.scrollTo({
|
25210
25212
|
left: (m.current.offsetWidth + 8) * (Math.floor(C / (m.current.offsetWidth + 8)) - 1),
|
25211
25213
|
top: 0,
|
25212
25214
|
behavior: "smooth"
|
@@ -25215,7 +25217,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
25215
25217
|
m.current && f(m.current.scrollLeft);
|
25216
25218
|
}, O = () => {
|
25217
25219
|
if (!T || !E) return;
|
25218
|
-
T - E > _0 ? x(
|
25220
|
+
T - E > _0 ? x(zt.ON_CAROUSEL_FORWARD_SWIPE) : x(zt.ON_CAROUSEL_BACK_SWIPE);
|
25219
25221
|
}, L = (V) => {
|
25220
25222
|
y(V.targetTouches[0].clientX);
|
25221
25223
|
}, U = (V) => {
|
@@ -25324,7 +25326,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
25324
25326
|
widthOverrides: a
|
25325
25327
|
}) => {
|
25326
25328
|
const { carouselCopy: r } = Wn(), { onEvent: o } = Bi(), s = () => {
|
25327
|
-
o && (o(
|
25329
|
+
o && (o(zt.ON_VIEW_MORE_CLICKED), n(), i?.capture("clicked_view_more"));
|
25328
25330
|
};
|
25329
25331
|
return r ? /* @__PURE__ */ l(
|
25330
25332
|
b,
|
@@ -25424,7 +25426,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
25424
25426
|
m(Mn.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS);
|
25425
25427
|
}, []);
|
25426
25428
|
const C = () => {
|
25427
|
-
r && r(), h(
|
25429
|
+
r && r(), h(zt.ON_NO_RELEVANT_INSIGHTS_CLICKED), o?.capture("clicked_insight", {
|
25428
25430
|
template: "no_relevant_insights"
|
25429
25431
|
});
|
25430
25432
|
};
|
@@ -25543,7 +25545,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
25543
25545
|
variant: N,
|
25544
25546
|
widthOverrides: x
|
25545
25547
|
}) => {
|
25546
|
-
const R =
|
25548
|
+
const R = nt(), [D, $] = Et("STANDARD"), [O, L] = Et(!1), U = iu([d], fn), H = au([_], fn);
|
25547
25549
|
g.useEffect(() => {
|
25548
25550
|
fn.isInitialized || fn.initialize(r, y, s);
|
25549
25551
|
}, [r, y, s, fn.isInitialized]), g.useEffect(() => {
|
@@ -25616,7 +25618,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
25616
25618
|
}));
|
25617
25619
|
}, [h]);
|
25618
25620
|
const f = () => {
|
25619
|
-
r && r(), C(
|
25621
|
+
r && r(), C(zt.ON_VIEW_MORE_CLICKED), o?.capture("clicked_insight", {
|
25620
25622
|
template: "view_more_card"
|
25621
25623
|
});
|
25622
25624
|
};
|
@@ -25657,12 +25659,12 @@ const Gi = g.createContext(null), n0 = ({
|
|
25657
25659
|
).filter(
|
25658
25660
|
(f) => lt(f.occurredOnDate || f.expectedDate, e)
|
25659
25661
|
), _ = d.some(
|
25660
|
-
(f) => f.type !==
|
25662
|
+
(f) => f.type !== Dt.Income && f.status === ot.Upcoming
|
25661
25663
|
), u = d.some(
|
25662
|
-
(f) => f.type !==
|
25664
|
+
(f) => f.type !== Dt.Income && f.status === ot.Missed
|
25663
25665
|
), h = d.some(
|
25664
|
-
(f) => f.type !==
|
25665
|
-
), m = d.some((f) => f.type ===
|
25666
|
+
(f) => f.type !== Dt.Income && f.status === ot.Paid
|
25667
|
+
), m = d.some((f) => f.type === Dt.Income), C = (_ ? 1 : 0) + (u ? 1 : 0) + (h ? 1 : 0) + (m ? 1 : 0);
|
25666
25668
|
return /* @__PURE__ */ t(
|
25667
25669
|
_r,
|
25668
25670
|
{
|
@@ -25783,19 +25785,19 @@ const Gi = g.createContext(null), n0 = ({
|
|
25783
25785
|
/* @__PURE__ */ t(v0, {})
|
25784
25786
|
] }) });
|
25785
25787
|
}), w0 = (e) => {
|
25786
|
-
if (e.type ===
|
25788
|
+
if (e.type === Dt.Income)
|
25787
25789
|
return /* @__PURE__ */ t($r, {});
|
25788
25790
|
switch (e.status) {
|
25789
|
-
case
|
25791
|
+
case ot.Missed:
|
25790
25792
|
return /* @__PURE__ */ t(Fr, {});
|
25791
|
-
case
|
25793
|
+
case ot.Paid:
|
25792
25794
|
return /* @__PURE__ */ t(Wr, {});
|
25793
25795
|
default:
|
25794
25796
|
return /* @__PURE__ */ t(Hr, {});
|
25795
25797
|
}
|
25796
25798
|
}, N0 = (e, n) => {
|
25797
25799
|
switch (e.status) {
|
25798
|
-
case
|
25800
|
+
case ot.Paid:
|
25799
25801
|
return e.expectedDate ? S(
|
25800
25802
|
n.paid_on,
|
25801
25803
|
ie(
|
@@ -25803,12 +25805,12 @@ const Gi = g.createContext(null), n0 = ({
|
|
25803
25805
|
te.MONTH_DAY
|
25804
25806
|
)
|
25805
25807
|
) : n.paid;
|
25806
|
-
case
|
25808
|
+
case ot.Missed:
|
25807
25809
|
return S(
|
25808
25810
|
n.missed_on,
|
25809
25811
|
ie(e.expectedDate, te.MONTH_DAY)
|
25810
25812
|
);
|
25811
|
-
case
|
25813
|
+
case ot.Upcoming:
|
25812
25814
|
return S(
|
25813
25815
|
n.upcoming_on,
|
25814
25816
|
ie(e.expectedDate, te.MONTH_DAY)
|
@@ -25826,7 +25828,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
25826
25828
|
const { recurring: r } = I(), { repeatingTransactions: o } = _t(), [s, c] = g.useState(!1), d = g.useMemo(
|
25827
25829
|
() => o.find((E) => E.guid === e.repeatingTransactionGuid),
|
25828
25830
|
[e]
|
25829
|
-
), _ = e.type ===
|
25831
|
+
), _ = e.type === Dt.Income, u = e.status === ot.Paid, h = e.status === ot.Missed, m = e.status === ot.Upcoming;
|
25830
25832
|
let C = r.paid?.toLowerCase();
|
25831
25833
|
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: [
|
25832
25834
|
/* @__PURE__ */ l(de, { onClick: () => {
|
@@ -25897,7 +25899,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
25897
25899
|
ariaLabelClose: r.close_drawer_aria,
|
25898
25900
|
isOpen: s,
|
25899
25901
|
onClose: () => c(!1),
|
25900
|
-
title: e.type ===
|
25902
|
+
title: e.type === Dt.Income ? r.income_details : r.expense_details,
|
25901
25903
|
children: d && /* @__PURE__ */ t(
|
25902
25904
|
dc,
|
25903
25905
|
{
|
@@ -25943,7 +25945,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
25943
25945
|
/* @__PURE__ */ t(q, { children: /* @__PURE__ */ t(
|
25944
25946
|
ae,
|
25945
25947
|
{
|
25946
|
-
subheader: /* @__PURE__ */ t(
|
25948
|
+
subheader: /* @__PURE__ */ t(Lt, { 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) }) }),
|
25947
25949
|
sx: { width: "100%" },
|
25948
25950
|
children: d.recurrences.map((u, h) => /* @__PURE__ */ t(g.Fragment, { children: /* @__PURE__ */ t(
|
25949
25951
|
_s,
|
@@ -26011,8 +26013,8 @@ const Gi = g.createContext(null), n0 = ({
|
|
26011
26013
|
transaction_guid: x.transaction?.guid
|
26012
26014
|
});
|
26013
26015
|
};
|
26014
|
-
return /* @__PURE__ */ l(
|
26015
|
-
/* @__PURE__ */ t(
|
26016
|
+
return /* @__PURE__ */ l(Yt, { container: !0, sx: { pt: 16, px: 24, spacing: 24 }, children: [
|
26017
|
+
/* @__PURE__ */ t(Yt, { md: !0, sm: 12, width: "100%", children: /* @__PURE__ */ l(b, { gap: 24, children: [
|
26016
26018
|
/* @__PURE__ */ t(
|
26017
26019
|
hs,
|
26018
26020
|
{
|
@@ -26041,7 +26043,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
26041
26043
|
}
|
26042
26044
|
),
|
26043
26045
|
(i || n) && /* @__PURE__ */ l(b, { children: [
|
26044
|
-
/* @__PURE__ */ l(
|
26046
|
+
/* @__PURE__ */ l(kt, { onChange: T, value: E, variant: "fullWidth", children: [
|
26045
26047
|
/* @__PURE__ */ t(
|
26046
26048
|
ke,
|
26047
26049
|
{
|
@@ -26071,7 +26073,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
26071
26073
|
)
|
26072
26074
|
] })
|
26073
26075
|
] }) }),
|
26074
|
-
!i && !n && /* @__PURE__ */ t(
|
26076
|
+
!i && !n && /* @__PURE__ */ t(Yt, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ l(b, { gap: 24, children: [
|
26075
26077
|
/* @__PURE__ */ t(Qc, {}),
|
26076
26078
|
/* @__PURE__ */ t(
|
26077
26079
|
pi,
|
@@ -26096,7 +26098,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
26096
26098
|
accounts: s
|
26097
26099
|
}), _().finally());
|
26098
26100
|
}, [o]), r ? /* @__PURE__ */ l(
|
26099
|
-
|
26101
|
+
Mt,
|
26100
26102
|
{
|
26101
26103
|
accountOptions: i,
|
26102
26104
|
actions: [
|
@@ -26114,9 +26116,9 @@ const Gi = g.createContext(null), n0 = ({
|
|
26114
26116
|
title: a.title,
|
26115
26117
|
children: [
|
26116
26118
|
o && d ? /* @__PURE__ */ t(D0, {}) : /* @__PURE__ */ l(b, { direction: "column", p: 48, spacing: 24, children: [
|
26117
|
-
/* @__PURE__ */ t(
|
26118
|
-
/* @__PURE__ */ t(
|
26119
|
-
/* @__PURE__ */ t(
|
26119
|
+
/* @__PURE__ */ t(Ut, { height: 100, variant: "rounded", width: "100%" }),
|
26120
|
+
/* @__PURE__ */ t(Ut, { height: 100, variant: "rounded", width: "100%" }),
|
26121
|
+
/* @__PURE__ */ t(Ut, { height: 600, variant: "rounded", width: "100%" })
|
26120
26122
|
] }),
|
26121
26123
|
/* @__PURE__ */ t(
|
26122
26124
|
ne,
|
@@ -26285,7 +26287,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
26285
26287
|
sx: c === "mini" ? { gap: 0, mb: 0 } : { gap: { xs: 4, xl: 8 }, mb: { xs: 4, xl: 8 } },
|
26286
26288
|
children: [
|
26287
26289
|
/* @__PURE__ */ t(
|
26288
|
-
|
26290
|
+
Bt,
|
26289
26291
|
{
|
26290
26292
|
categoryGuid: n ? v.INCOME : h.guid,
|
26291
26293
|
size: c === "mini" ? 24 : f,
|
@@ -26364,7 +26366,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
26364
26366
|
_(d === y ? "" : y);
|
26365
26367
|
};
|
26366
26368
|
return o ? /* @__PURE__ */ l(M, { width: "100%", children: [
|
26367
|
-
/* @__PURE__ */ l(
|
26369
|
+
/* @__PURE__ */ l(kt, { onChange: f, value: u, variant: "fullWidth", children: [
|
26368
26370
|
/* @__PURE__ */ t(
|
26369
26371
|
ke,
|
26370
26372
|
{
|
@@ -26621,7 +26623,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
26621
26623
|
T(!0);
|
26622
26624
|
};
|
26623
26625
|
return /* @__PURE__ */ l(M, { children: [
|
26624
|
-
/* @__PURE__ */ l(
|
26626
|
+
/* @__PURE__ */ l(kt, { onChange: R, value: m, variant: "fullWidth", children: [
|
26625
26627
|
/* @__PURE__ */ t(
|
26626
26628
|
ke,
|
26627
26629
|
{
|
@@ -26701,7 +26703,7 @@ const Gi = g.createContext(null), n0 = ({
|
|
26701
26703
|
s(m[0], m[1]);
|
26702
26704
|
};
|
26703
26705
|
return !r || !o || !_ ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ t(
|
26704
|
-
|
26706
|
+
Mt,
|
26705
26707
|
{
|
26706
26708
|
accountOptions: i,
|
26707
26709
|
calendarActions: { onRangeChanged: h },
|
@@ -26758,7 +26760,7 @@ const Y0 = (e) => e.reduce((i, a) => {
|
|
26758
26760
|
{
|
26759
26761
|
"aria-label": S(i.category_icon_label_aria, a),
|
26760
26762
|
role: "img",
|
26761
|
-
children: /* @__PURE__ */ t(
|
26763
|
+
children: /* @__PURE__ */ t(Bt, { categoryGuid: n })
|
26762
26764
|
}
|
26763
26765
|
),
|
26764
26766
|
/* @__PURE__ */ t(p, { sx: { ml: 12, pb: 6 }, variant: "Small", children: a })
|
@@ -26791,7 +26793,7 @@ const Y0 = (e) => e.reduce((i, a) => {
|
|
26791
26793
|
field: "category",
|
26792
26794
|
headerName: "Category",
|
26793
26795
|
minWidth: 175,
|
26794
|
-
renderHeader:
|
26796
|
+
renderHeader: Vt,
|
26795
26797
|
renderCell: Q0,
|
26796
26798
|
sortable: !0,
|
26797
26799
|
type: "string"
|
@@ -26801,7 +26803,7 @@ const Y0 = (e) => e.reduce((i, a) => {
|
|
26801
26803
|
field: C,
|
26802
26804
|
headerName: C,
|
26803
26805
|
minWidth: 75,
|
26804
|
-
renderHeader:
|
26806
|
+
renderHeader: Vt,
|
26805
26807
|
renderCell: q0,
|
26806
26808
|
align: "right",
|
26807
26809
|
headerAlign: "right",
|
@@ -26885,7 +26887,7 @@ const Y0 = (e) => e.reduce((i, a) => {
|
|
26885
26887
|
}, ib = A(nb), ab = {
|
26886
26888
|
view_transactions: "View Transactions"
|
26887
26889
|
}, rb = ({ onBackClick: e, sx: n }) => {
|
26888
|
-
const i =
|
26890
|
+
const i = nt(), { 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({
|
26889
26891
|
start: no(Ve(jt(/* @__PURE__ */ new Date(), 6)), 1),
|
26890
26892
|
end: Ve(/* @__PURE__ */ new Date())
|
26891
26893
|
});
|
@@ -26943,7 +26945,7 @@ const Y0 = (e) => e.reduce((i, a) => {
|
|
26943
26945
|
a(W.TRENDS_HOVER_POINT, { category: Te });
|
26944
26946
|
};
|
26945
26947
|
return !m || !C || !w ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ l(
|
26946
|
-
|
26948
|
+
Mt,
|
26947
26949
|
{
|
26948
26950
|
accountOptions: c,
|
26949
26951
|
calendarActions: { onRangeChanged: Ce },
|
@@ -27073,7 +27075,7 @@ const Y0 = (e) => e.reduce((i, a) => {
|
|
27073
27075
|
}
|
27074
27076
|
);
|
27075
27077
|
}, zE = A(rb), ob = () => {
|
27076
|
-
const e =
|
27078
|
+
const e = nt(), { monthlyCategoryTotals: n } = Ke(), { trends: i } = I(), a = Im(n);
|
27077
27079
|
return /* @__PURE__ */ t(
|
27078
27080
|
br,
|
27079
27081
|
{
|
@@ -27119,7 +27121,7 @@ export {
|
|
27119
27121
|
OE as AccountsMiniWidget,
|
27120
27122
|
RE as AccountsWidget,
|
27121
27123
|
$g as ActivitySettings,
|
27122
|
-
|
27124
|
+
et as ActivityStatus,
|
27123
27125
|
Qe as ActivityType,
|
27124
27126
|
Vh as AddAccountModal,
|
27125
27127
|
tu as AnalyticsApi,
|
@@ -27176,7 +27178,7 @@ export {
|
|
27176
27178
|
yi as EmptyState,
|
27177
27179
|
Os as ErrorStatuses,
|
27178
27180
|
I_ as ExpenseStatus,
|
27179
|
-
|
27181
|
+
it as Fetch,
|
27180
27182
|
xt as FieldType,
|
27181
27183
|
we as Frequency,
|
27182
27184
|
fi as GlobalCopyApi,
|
@@ -27238,8 +27240,8 @@ export {
|
|
27238
27240
|
Ds as PropertyType,
|
27239
27241
|
tE as PropertyTypeName,
|
27240
27242
|
nE as RECURRENCE_COPY,
|
27241
|
-
|
27242
|
-
|
27243
|
+
ot as RecurrenceStatus,
|
27244
|
+
Dt as RecurrenceType,
|
27243
27245
|
Q as RecurrenceTypes,
|
27244
27246
|
yE as RecurringActivityMiniWidget,
|
27245
27247
|
tm as RecurringActivityStore,
|
@@ -27290,7 +27292,7 @@ export {
|
|
27290
27292
|
A_ as UserVerification,
|
27291
27293
|
I0 as ViewMoreMicroCard,
|
27292
27294
|
uo as WidgetApi,
|
27293
|
-
|
27295
|
+
Mt as WidgetContainer,
|
27294
27296
|
zs as WidgetContainerContext,
|
27295
27297
|
Ys as WidgetContainerProvider,
|
27296
27298
|
$E as ZeroStateCard,
|
@@ -27317,7 +27319,7 @@ export {
|
|
27317
27319
|
rE as isIncome,
|
27318
27320
|
Qa as isValidNumber,
|
27319
27321
|
Re as useAccountStore,
|
27320
|
-
|
27322
|
+
Ft as useAccountUiStore,
|
27321
27323
|
Ca as useAppConfig,
|
27322
27324
|
ct as useBudgetsStore,
|
27323
27325
|
Er as useCashflowStore,
|
@@ -27331,7 +27333,7 @@ export {
|
|
27331
27333
|
I as useGlobalCopyStore,
|
27332
27334
|
ba as useGlobalStore,
|
27333
27335
|
le as useGlobalUiStore,
|
27334
|
-
|
27336
|
+
at as useGoalStore,
|
27335
27337
|
Sr as useHelpStore,
|
27336
27338
|
Ja as useHoldingStore,
|
27337
27339
|
Nu as useMerchantStore,
|
@@ -27342,7 +27344,7 @@ export {
|
|
27342
27344
|
bt as useRecurringActivityStore,
|
27343
27345
|
_t as useRecurringTransactionsStore,
|
27344
27346
|
De as useScreenSize,
|
27345
|
-
|
27347
|
+
$t as useSettingsStore,
|
27346
27348
|
Se as useTransactionStore,
|
27347
27349
|
It as useTransactionsUiStore,
|
27348
27350
|
dn as useUserStore,
|