@mx-cartographer/experiences 6.26.17 → 6.26.18-alpha.mega2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/index.es.js +678 -674
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -6,7 +6,7 @@ import P from "@mui/material/Divider";
|
|
|
6
6
|
import oe from "@mui/material/List";
|
|
7
7
|
import $t from "@mui/material/ListSubheader";
|
|
8
8
|
import Oe from "@mui/system/Stack";
|
|
9
|
-
import { AccountsIcon as $l, P as X, Icon as U, useTokens as At, Text as C, H2 as fn, CategoryIcon as Lt, DialogHeader as Ul, DialogFooter as Vl, Drawer as Kl, Footer as zl, DateRangePicker as rr, H3 as
|
|
9
|
+
import { AccountsIcon as $l, P as X, Icon as U, useTokens as At, Text as C, H2 as fn, CategoryIcon as Lt, DialogHeader as Ul, DialogFooter as Vl, Drawer as Kl, Footer as zl, DateRangePicker as rr, H3 as Qe, H1 as Jt, TextField as Ln, IconWeight as It, MerchantLogo as en, CategoryIconList as Yl, CategoryIconVariants as ks, InstitutionLogo as Tt, ChevronRightIcon as Gs, THEMES as sr } from "@mxenabled/mxui";
|
|
10
10
|
import jl from "bowser";
|
|
11
11
|
import { getUnixTime as Fe } from "date-fns/getUnixTime";
|
|
12
12
|
import { intlFormat as Xl } from "date-fns/intlFormat";
|
|
@@ -18,7 +18,7 @@ import { getDay as Zl } from "date-fns/getDay";
|
|
|
18
18
|
import { isBefore as nt } from "date-fns/isBefore";
|
|
19
19
|
import { nextDay as ea } from "date-fns/nextDay";
|
|
20
20
|
import { setDate as ta } from "date-fns/setDate";
|
|
21
|
-
import { startOfToday as
|
|
21
|
+
import { startOfToday as xe } from "date-fns/startOfToday";
|
|
22
22
|
import { fromUnixTime as Ue } from "date-fns/fromUnixTime";
|
|
23
23
|
import ja from "numeral";
|
|
24
24
|
import te from "@mui/material/Button";
|
|
@@ -26,7 +26,7 @@ import qn from "@mui/material/Tooltip";
|
|
|
26
26
|
import We from "@mui/material/IconButton";
|
|
27
27
|
import Xa from "@mui/material/FormControlLabel";
|
|
28
28
|
import j from "@mui/material/ListItem";
|
|
29
|
-
import
|
|
29
|
+
import me from "@mui/material/ListItemButton";
|
|
30
30
|
import se from "@mui/material/ListItemText";
|
|
31
31
|
import Hs from "@mui/material/Popover";
|
|
32
32
|
import b from "@mui/material/Stack";
|
|
@@ -38,18 +38,18 @@ import { css as Cn, keyframes as ed } from "@mxenabled/cssinjs";
|
|
|
38
38
|
import { addDays as Fn } from "date-fns/addDays";
|
|
39
39
|
import { eachDayOfInterval as td } from "date-fns/eachDayOfInterval";
|
|
40
40
|
import { eachWeekOfInterval as nd } from "date-fns/eachWeekOfInterval";
|
|
41
|
-
import { endOfMonth as
|
|
41
|
+
import { endOfMonth as qe } from "date-fns/endOfMonth";
|
|
42
42
|
import { format as pn } from "date-fns/format";
|
|
43
43
|
import { isSameMonth as id } from "date-fns/isSameMonth";
|
|
44
|
-
import { startOfMonth as
|
|
44
|
+
import { startOfMonth as Ke } from "date-fns/startOfMonth";
|
|
45
45
|
import { subMonths as Ht } from "date-fns/subMonths";
|
|
46
46
|
import Nt from "@mui/material/Paper";
|
|
47
|
-
import { ChevronLeft as Ps, ChevronRight as
|
|
47
|
+
import { ChevronLeft as Ps, ChevronRight as je, ArrowBack as ad, Icon as ft, AccountBalance as co, ExpandMore as ui, CheckCircle as ma, Edit as od, Delete as Fs, Schedule as rd, MonetizationOn as sd, Cancel as Ws, CurrencyExchange as cd, Check as ld, TrendingUp as $s, ArrowRightAlt as dd, TrendingDown as Us, Payments as lo, CalendarMonth as _d, CreditCard as Vs, Savings as ud, ContentCopy as hd, MultilineChart as Ks, NoteStack as zs, Person as Ys, ExpandLess as js, AddBox as Xs, Trophy as gd, Star as md, Settings as pd } from "@mxenabled/mx-icons";
|
|
48
48
|
import { isSameDay as Dt } from "date-fns/isSameDay";
|
|
49
49
|
import { isWithinInterval as _o } from "date-fns/isWithinInterval";
|
|
50
50
|
import * as Rt from "d3";
|
|
51
51
|
import { selectAll as fd, interpolateString as Cd, arc as bd } from "d3";
|
|
52
|
-
import { useTheme as
|
|
52
|
+
import { useTheme as ze, alpha as Nn, keyframes as yd, ThemeProvider as Sd } from "@mui/material/styles";
|
|
53
53
|
import { ResponsiveChartContainer as Ed, ChartsReferenceLine as Td, AreaPlot as Ad, LinePlot as xd, MarkPlot as Id, BarPlot as vd, ChartsXAxis as wd, ChartsYAxis as Dd, ChartsAxisHighlight as Nd, LineChart as Zs, PieChart as Rd } from "@mui/x-charts";
|
|
54
54
|
import { ChartsTooltip as Od } from "@mui/x-charts/ChartsTooltip";
|
|
55
55
|
import yt from "@mui/material/Card";
|
|
@@ -344,7 +344,7 @@ const k_ = async (e, n, i = "1.0.0", a = "Experiences") => {
|
|
|
344
344
|
TRENDS_CLICK_GET_STARTED: "trends_click_getStarted",
|
|
345
345
|
TRENDS_CLICK_VIEW_MORE: "trends_click_viewMore",
|
|
346
346
|
TRENDS_LOAD_WIDGET: "trends_load_widget"
|
|
347
|
-
}, G_ = "do",
|
|
347
|
+
}, G_ = "do", zT = "MMM do, yyyy", ae = {
|
|
348
348
|
TIME_STAMP_HOUR_MINUTE: {
|
|
349
349
|
hour: "numeric",
|
|
350
350
|
minute: "numeric"
|
|
@@ -429,7 +429,7 @@ const H_ = [
|
|
|
429
429
|
/* IMPAIRED */
|
|
430
430
|
], _c = [...dc, ...lc];
|
|
431
431
|
var Yn = /* @__PURE__ */ ((e) => (e.Connected = "Connected", e.Error = "Error", e.Processing = "Processing", e.RequiresMfa = "RequiresMfa", e))(Yn || {});
|
|
432
|
-
const
|
|
432
|
+
const YT = {
|
|
433
433
|
3: "Challenged",
|
|
434
434
|
12: "Closed",
|
|
435
435
|
9: "Degraded",
|
|
@@ -479,7 +479,7 @@ const Y2 = {
|
|
|
479
479
|
2: "savings"
|
|
480
480
|
}, P_ = {
|
|
481
481
|
5: "bid_landscape"
|
|
482
|
-
},
|
|
482
|
+
}, jT = {
|
|
483
483
|
0: "Real Estate",
|
|
484
484
|
1: "Vehicle",
|
|
485
485
|
2: "Art",
|
|
@@ -819,7 +819,7 @@ const Y2 = {
|
|
|
819
819
|
UNKNOWN: "help"
|
|
820
820
|
}, Cr = 9999999999e-2;
|
|
821
821
|
var oa = /* @__PURE__ */ ((e) => (e.CAD = "CAD", e.USD = "USD", e))(oa || {}), $_ = /* @__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))($_ || {});
|
|
822
|
-
const
|
|
822
|
+
const XT = [
|
|
823
823
|
{ id: 0, copy: "frequency_unknown" },
|
|
824
824
|
{ id: 1, copy: "frequency_every_week" },
|
|
825
825
|
{ id: 2, copy: "frequency_every_other_week" },
|
|
@@ -828,7 +828,7 @@ const X2 = [
|
|
|
828
828
|
{ id: 5, copy: "frequency_every_quarter" },
|
|
829
829
|
{ id: 6, copy: "frequency_every_other_quarter" },
|
|
830
830
|
{ id: 7, copy: "frequency_every_year" }
|
|
831
|
-
],
|
|
831
|
+
], ZT = {
|
|
832
832
|
ERROR: "ERROR",
|
|
833
833
|
LOADING: "LOADING",
|
|
834
834
|
SUCCESS: "SUCCESS"
|
|
@@ -840,7 +840,7 @@ const Ii = 44, br = (e, n) => e.find((i) => i.guid === n), z_ = (e, n) => e.find
|
|
|
840
840
|
const i = e.find((a) => a.subCategories.find((o) => o.guid === n));
|
|
841
841
|
if (i)
|
|
842
842
|
return i.subCategories.find((a) => a.guid === n);
|
|
843
|
-
},
|
|
843
|
+
}, qT = (e, n) => {
|
|
844
844
|
const i = [];
|
|
845
845
|
for (const a of n) {
|
|
846
846
|
const o = br(e, a.category_guid);
|
|
@@ -861,21 +861,21 @@ const Ii = 44, br = (e, n) => e.find((i) => i.guid === n), z_ = (e, n) => e.find
|
|
|
861
861
|
});
|
|
862
862
|
}
|
|
863
863
|
return i;
|
|
864
|
-
},
|
|
864
|
+
}, QT = (e, n) => {
|
|
865
865
|
const i = e.find((a) => a.guid === n);
|
|
866
866
|
return i ? i.guid === D.INCOME || i.parent_guid === D.INCOME : !1;
|
|
867
867
|
}, xo = (e) => {
|
|
868
868
|
const n = Zl(e);
|
|
869
869
|
let i = ea(e, n);
|
|
870
|
-
for (; nt(i,
|
|
870
|
+
for (; nt(i, xe()); )
|
|
871
871
|
i = Bs(i, 1);
|
|
872
872
|
return i;
|
|
873
873
|
}, j_ = (e) => {
|
|
874
874
|
const n = xo(e);
|
|
875
875
|
return Bs(n, 1);
|
|
876
876
|
}, X_ = (e) => {
|
|
877
|
-
let n = ta(
|
|
878
|
-
for (; nt(n,
|
|
877
|
+
let n = ta(xe(), e.getDate());
|
|
878
|
+
for (; nt(n, xe()); )
|
|
879
879
|
n = Qt(n, 1);
|
|
880
880
|
return n;
|
|
881
881
|
}, Z_ = (e) => {
|
|
@@ -883,7 +883,7 @@ const Ii = 44, br = (e, n) => e.find((i) => i.guid === n), z_ = (e, n) => e.find
|
|
|
883
883
|
return Qt(n, 1);
|
|
884
884
|
}, mc = (e) => {
|
|
885
885
|
let n = Mi(e, 1);
|
|
886
|
-
for (; nt(n,
|
|
886
|
+
for (; nt(n, xe()); )
|
|
887
887
|
n = Mi(n, 1);
|
|
888
888
|
return n;
|
|
889
889
|
}, q_ = (e) => {
|
|
@@ -909,7 +909,7 @@ const Ii = 44, br = (e, n) => e.find((i) => i.guid === n), z_ = (e, n) => e.find
|
|
|
909
909
|
[]
|
|
910
910
|
);
|
|
911
911
|
return i ? o : o.join("");
|
|
912
|
-
},
|
|
912
|
+
}, JT = (e, n, i, ...a) => !e || !n ? "" : T(i === 1 ? e : n, ...a), Wn = () => {
|
|
913
913
|
const e = "en-us", n = ["en-us", "en-ca", "fr", "fr-ca", "es"], i = window?.app?.options?.language?.toLowerCase() ?? "", a = window.navigator.language.toLowerCase();
|
|
914
914
|
return i === "browser" && n.includes(a) ? a : n.includes(i) ? i : e;
|
|
915
915
|
};
|
|
@@ -1003,7 +1003,7 @@ const H = (e, n, i) => {
|
|
|
1003
1003
|
}) => {
|
|
1004
1004
|
const a = nu(n).select(e);
|
|
1005
1005
|
return `${e}${i[a]}`;
|
|
1006
|
-
},
|
|
1006
|
+
}, e2 = (e, n) => {
|
|
1007
1007
|
const i = e.palette.mode === "dark", a = (s, c) => {
|
|
1008
1008
|
const l = n?.[s];
|
|
1009
1009
|
return {
|
|
@@ -1229,7 +1229,7 @@ class Ri {
|
|
|
1229
1229
|
}
|
|
1230
1230
|
getGlobalCopy = async (n, i) => this.fetchInstance.post(`${B.LOCALIZED_CONTENT}/${n}`, { translation_key: i }).then((a) => a);
|
|
1231
1231
|
}
|
|
1232
|
-
class
|
|
1232
|
+
class t2 {
|
|
1233
1233
|
fetchInstance;
|
|
1234
1234
|
constructor(n, i) {
|
|
1235
1235
|
this.fetchInstance = new _t(n, i);
|
|
@@ -1253,7 +1253,7 @@ class Er {
|
|
|
1253
1253
|
// A bug ticket has been filed to fix it, but should not require any changes here.
|
|
1254
1254
|
markAllAsViewed = (n) => this.fetchInstance.put(`${B.NOTIFICATIONS}/mark_all_as_viewed`, { channel: n }).finally();
|
|
1255
1255
|
}
|
|
1256
|
-
class
|
|
1256
|
+
class n2 {
|
|
1257
1257
|
fetchInstance;
|
|
1258
1258
|
constructor(n, i) {
|
|
1259
1259
|
this.fetchInstance = new _t(n, i);
|
|
@@ -1290,7 +1290,7 @@ const Pa = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
|
1290
1290
|
guid: a.guid
|
|
1291
1291
|
};
|
|
1292
1292
|
return Object.prototype.hasOwnProperty.call(i, o) ? i[o] = i[o].concat(r) : i[o] = [r], i;
|
|
1293
|
-
}, {}), ti = g.createContext(null),
|
|
1293
|
+
}, {}), ti = g.createContext(null), i2 = ({
|
|
1294
1294
|
children: e,
|
|
1295
1295
|
globalStore: n,
|
|
1296
1296
|
onEvent: i,
|
|
@@ -1321,7 +1321,7 @@ const Pa = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
|
1321
1321
|
if (!n)
|
|
1322
1322
|
throw new Error(`${e}() must be used within the GlobalDataContext`);
|
|
1323
1323
|
return n;
|
|
1324
|
-
}, be = () => it("useAccountStore").globalStore.accountStore, wt = () => it("useAppConfig").globalStore.appDataStore.appConfig, vo = () => it("useAnalyticsStore").globalStore.analyticsStore, ht = () => it("useBudgetsStore").globalStore.budgetsStore, wo = () => it("useCashflowStore").globalStore.cashflowStore, $e = () => it("useCategoryStore").globalStore.categoryStore, Cc = () => it("useConnectStore").globalStore.connectStore, Sa = () => it("useDebtsStore").globalStore.debtsStore, bi = () => it("useFinstrongStore").globalStore.finstrongStore, yi = () => it("useGlobalStore").globalStore, ce = () => it("useGlobalUiStore").globalStore.globalUiStore, A = () => it("globalCopyStore").globalStore.copyStore.copy, ut = () => it("useGoalStore").globalStore.goalStore, Do = () => it("useHelpStore").globalStore.helpStore, Xn = () => it("useHoldingStore").globalStore.holdingStore, ou = () => it("useMerchantStore").globalStore.merchantStore, bc = () => it("useNetWorthStore").globalStore.netWorthStore, yc = () => it("useNotificationStore").globalStore.notificationStore, rt = () => it("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, St = () => it("useSettingsStore").globalStore.settingsStore, Le = () => it("useTransactionStore").globalStore.transactionStore, Si = () => it("useTrendsStore").globalStore.trendsStore, Ct = () => it("useUserStore").globalStore.userStore, q = () => ({ onEvent: it().onEvent }),
|
|
1324
|
+
}, be = () => it("useAccountStore").globalStore.accountStore, wt = () => it("useAppConfig").globalStore.appDataStore.appConfig, vo = () => it("useAnalyticsStore").globalStore.analyticsStore, ht = () => it("useBudgetsStore").globalStore.budgetsStore, wo = () => it("useCashflowStore").globalStore.cashflowStore, $e = () => it("useCategoryStore").globalStore.categoryStore, Cc = () => it("useConnectStore").globalStore.connectStore, Sa = () => it("useDebtsStore").globalStore.debtsStore, bi = () => it("useFinstrongStore").globalStore.finstrongStore, yi = () => it("useGlobalStore").globalStore, ce = () => it("useGlobalUiStore").globalStore.globalUiStore, A = () => it("globalCopyStore").globalStore.copyStore.copy, ut = () => it("useGoalStore").globalStore.goalStore, Do = () => it("useHelpStore").globalStore.helpStore, Xn = () => it("useHoldingStore").globalStore.holdingStore, ou = () => it("useMerchantStore").globalStore.merchantStore, bc = () => it("useNetWorthStore").globalStore.netWorthStore, yc = () => it("useNotificationStore").globalStore.notificationStore, rt = () => it("useRecurringTransactionsStore").globalStore.recurringTransactionsStore, St = () => it("useSettingsStore").globalStore.settingsStore, Le = () => it("useTransactionStore").globalStore.transactionStore, Si = () => it("useTrendsStore").globalStore.trendsStore, Ct = () => it("useUserStore").globalStore.userStore, q = () => ({ onEvent: it().onEvent }), a2 = () => ({ onPageView: it().onPageView }), ru = (e = "useWidgetContainerContext") => {
|
|
1325
1325
|
const n = g.useContext(fc);
|
|
1326
1326
|
if (!n)
|
|
1327
1327
|
throw new Error(`${e}() must be used within the WidgetContainerContext`);
|
|
@@ -1443,7 +1443,7 @@ const Pa = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
|
1443
1443
|
className: "mx-cmn-account-options-group",
|
|
1444
1444
|
dense: !0,
|
|
1445
1445
|
subheader: /* @__PURE__ */ t($t, { disableGutters: !0, children: /* @__PURE__ */ t(
|
|
1446
|
-
|
|
1446
|
+
me,
|
|
1447
1447
|
{
|
|
1448
1448
|
"aria-label": T(i.toggleAccountTypeAccounts, E),
|
|
1449
1449
|
"aria-pressed": v,
|
|
@@ -1578,7 +1578,7 @@ const su = (e, n) => {
|
|
|
1578
1578
|
// Between 600 and 1200
|
|
1579
1579
|
isTablet: e > a && e <= r
|
|
1580
1580
|
}), c;
|
|
1581
|
-
},
|
|
1581
|
+
}, o2 = (e) => {
|
|
1582
1582
|
const n = Ms();
|
|
1583
1583
|
return Pn(() => {
|
|
1584
1584
|
n.current = e;
|
|
@@ -1853,7 +1853,7 @@ const su = (e, n) => {
|
|
|
1853
1853
|
}), gu = (e, n) => e + n, mu = (e, n) => Math.abs(n) > e ? Math.abs(n) : e, pu = (e, n) => [...e, n.value], Ir = (e, n, i) => {
|
|
1854
1854
|
const a = e && n ? i / 2 : i;
|
|
1855
1855
|
return e ? a : 0;
|
|
1856
|
-
}, fu = (e, n, i, a) => e / (n < 0 ? -i : n) * a || 0,
|
|
1856
|
+
}, fu = (e, n, i, a) => e / (n < 0 ? -i : n) * a || 0, r2 = ({
|
|
1857
1857
|
average: e,
|
|
1858
1858
|
barWidth: n = "8%",
|
|
1859
1859
|
color: i,
|
|
@@ -1918,7 +1918,7 @@ const su = (e, n) => {
|
|
|
1918
1918
|
/* @__PURE__ */ t(fn, { className: "mx-cmn-calendar-header-title", variant: "H3", children: ue(n, ae.MONTH_YEAR) }),
|
|
1919
1919
|
/* @__PURE__ */ d("div", { className: "mx-cmn-calendar-header-button-container", children: [
|
|
1920
1920
|
/* @__PURE__ */ t(te, { "aria-label": e.prevAria, onClick: a, children: /* @__PURE__ */ t(Ps, { size: 24 }) }),
|
|
1921
|
-
/* @__PURE__ */ t(te, { "aria-label": e.nextAria, onClick: i, children: /* @__PURE__ */ t(
|
|
1921
|
+
/* @__PURE__ */ t(te, { "aria-label": e.nextAria, onClick: i, children: /* @__PURE__ */ t(je, { size: 24 }) })
|
|
1922
1922
|
] })
|
|
1923
1923
|
] });
|
|
1924
1924
|
}, yu = (e) => Cn({
|
|
@@ -1935,7 +1935,7 @@ const su = (e, n) => {
|
|
|
1935
1935
|
gap: 4
|
|
1936
1936
|
}
|
|
1937
1937
|
}), Su = ({ beginDate: e, date: n, endDate: i, isInMonth: a, onClick: o }) => {
|
|
1938
|
-
const r = Ee(), s = Eu(r), c = e && i && _o(n, { start: e, end: i }) && !Dt(n, e) && !Dt(n, i), l = e && i && Dt(e, n) && !Dt(e, i), u = i && e && Dt(i, n) && !Dt(e, i), _ = e && Dt(e, n) || i && Dt(i, n), h = Dt(n,
|
|
1938
|
+
const r = Ee(), s = Eu(r), c = e && i && _o(n, { start: e, end: i }) && !Dt(n, e) && !Dt(n, i), l = e && i && Dt(e, n) && !Dt(e, i), u = i && e && Dt(i, n) && !Dt(e, i), _ = e && Dt(e, n) || i && Dt(i, n), h = Dt(n, xe());
|
|
1939
1939
|
return /* @__PURE__ */ t(
|
|
1940
1940
|
"div",
|
|
1941
1941
|
{
|
|
@@ -2027,12 +2027,12 @@ const Au = ({
|
|
|
2027
2027
|
selectionType: r = "Single"
|
|
2028
2028
|
/* Single */
|
|
2029
2029
|
}) => {
|
|
2030
|
-
const s = At(), c = xu(s), [l, u] = g.useState(
|
|
2030
|
+
const s = At(), c = xu(s), [l, u] = g.useState(xe), [_, h] = g.useState(n), [m, p] = g.useState(i);
|
|
2031
2031
|
g.useEffect(() => {
|
|
2032
2032
|
h(n), p(i), n && u(n);
|
|
2033
2033
|
}, [n, i]);
|
|
2034
2034
|
const f = g.useMemo(() => {
|
|
2035
|
-
const v = nd({ start:
|
|
2035
|
+
const v = nd({ start: Ke(l), end: qe(l) }), w = [];
|
|
2036
2036
|
for (let N = 0; N < v.length; N++) {
|
|
2037
2037
|
const R = v[N], M = td({ start: R, end: Fn(R, 6) }), k = [];
|
|
2038
2038
|
for (let G = 0; G < M.length; G++)
|
|
@@ -2049,7 +2049,7 @@ const Au = ({
|
|
|
2049
2049
|
!_ || m ? (h(v), p(void 0)) : nt(v, _) ? (p(_), h(v), o?.(v, _)) : (p(v), o?.(_, v));
|
|
2050
2050
|
}
|
|
2051
2051
|
}, y = () => {
|
|
2052
|
-
const v =
|
|
2052
|
+
const v = xe();
|
|
2053
2053
|
u(v), r !== "None" && (h(v), r === "Single" ? a?.(v) : (p(v), o?.(v, v)));
|
|
2054
2054
|
}, E = () => {
|
|
2055
2055
|
u(Qt(l, 1));
|
|
@@ -2171,7 +2171,7 @@ const Au = ({
|
|
|
2171
2171
|
)
|
|
2172
2172
|
] });
|
|
2173
2173
|
}, Du = (e) => {
|
|
2174
|
-
const n =
|
|
2174
|
+
const n = ze(), i = e.showLabel, a = e.style, o = Number(e.x), r = Number(e.y), s = e.handlers?.onMarkClick, c = e.handlers?.onMouseEnter, l = e.handlers?.onMouseLeave, u = un(n.breakpoints.up("sm")), _ = e.valueFormatterString ? H(e.yData[e.dataIndex], e.valueFormatterString) : String(e.yData[e.dataIndex]), h = u ? n.typography.Small?.fontSize : n.typography.XSmall?.fontSize, m = h ? parseFloat(h.toString()) * 0.6 : 8, y = _.length * m + 8 + 8, E = 24, I = o - y / 2, v = r - 30;
|
|
2175
2175
|
return /* @__PURE__ */ d(Z, { children: [
|
|
2176
2176
|
i && /* @__PURE__ */ d(Z, { children: [
|
|
2177
2177
|
e.labelBackgroundColor && /* @__PURE__ */ t(
|
|
@@ -2393,17 +2393,17 @@ const ni = ({
|
|
|
2393
2393
|
title: L,
|
|
2394
2394
|
useCustomMark: W = !1,
|
|
2395
2395
|
valueFormatterString: K,
|
|
2396
|
-
width:
|
|
2396
|
+
width: ne
|
|
2397
2397
|
}) => {
|
|
2398
|
-
const
|
|
2398
|
+
const re = ze(), fe = r.flat().map((J) => J.x), Te = r.flat().map((J) => J.y), Me = Math.round(Te.reduce((J, ke) => ke + J, 0) / Te.length), ge = Math.floor(Math.min(...Te) / 100) * 100, he = Math.ceil(Math.max(...Te) / 100) * 100, Xe = r.map((J, ke) => ({
|
|
2399
2399
|
type: I ? "bar" : "line",
|
|
2400
2400
|
curve: a,
|
|
2401
|
-
color: I ?
|
|
2402
|
-
data: J.map((
|
|
2401
|
+
color: I ? re.palette.chart?.chart6 : i[ke] ?? re.palette.primary.main,
|
|
2402
|
+
data: J.map((Ie) => Ie.y),
|
|
2403
2403
|
area: S,
|
|
2404
2404
|
baseline: n,
|
|
2405
2405
|
showMark: !0,
|
|
2406
|
-
valueFormatter: (
|
|
2406
|
+
valueFormatter: (Ie) => K ? H(Ie || 0, K) : String(Ie)
|
|
2407
2407
|
})), pe = {
|
|
2408
2408
|
...{
|
|
2409
2409
|
top: 60,
|
|
@@ -2430,19 +2430,19 @@ const ni = ({
|
|
|
2430
2430
|
opacity: 0.15
|
|
2431
2431
|
}
|
|
2432
2432
|
},
|
|
2433
|
-
width:
|
|
2433
|
+
width: ne,
|
|
2434
2434
|
xAxis: [{ data: fe, scaleType: I ? "band" : "point" }],
|
|
2435
2435
|
yAxis: [
|
|
2436
2436
|
{
|
|
2437
|
-
min: c ? -22 :
|
|
2438
|
-
max:
|
|
2437
|
+
min: c ? -22 : ge,
|
|
2438
|
+
max: he || 100,
|
|
2439
2439
|
colorMap: S && Xe.length < 2 ? {
|
|
2440
2440
|
type: "continuous",
|
|
2441
|
-
min:
|
|
2442
|
-
max:
|
|
2441
|
+
min: ge,
|
|
2442
|
+
max: he,
|
|
2443
2443
|
color: [
|
|
2444
|
-
|
|
2445
|
-
i[0] ??
|
|
2444
|
+
re.palette.background.paper,
|
|
2445
|
+
i[0] ?? re.palette.primary.main
|
|
2446
2446
|
]
|
|
2447
2447
|
} : void 0,
|
|
2448
2448
|
valueFormatter: (J) => K ? H(J, K) : String(J)
|
|
@@ -2453,7 +2453,7 @@ const ni = ({
|
|
|
2453
2453
|
Td,
|
|
2454
2454
|
{
|
|
2455
2455
|
lineStyle: {
|
|
2456
|
-
stroke: u ?
|
|
2456
|
+
stroke: u ? re.palette.neutral.main : re.palette.neutral.dark,
|
|
2457
2457
|
strokeDasharray: "10, 8",
|
|
2458
2458
|
strokeWidth: 2
|
|
2459
2459
|
},
|
|
@@ -2469,7 +2469,7 @@ const ni = ({
|
|
|
2469
2469
|
Nu,
|
|
2470
2470
|
{
|
|
2471
2471
|
...J,
|
|
2472
|
-
lineColor: J.ownerState.color ??
|
|
2472
|
+
lineColor: J.ownerState.color ?? re.palette.primary.main
|
|
2473
2473
|
}
|
|
2474
2474
|
)
|
|
2475
2475
|
}
|
|
@@ -2489,7 +2489,7 @@ const ni = ({
|
|
|
2489
2489
|
showLabel: w,
|
|
2490
2490
|
style: f?.(J.dataIndex) ?? {},
|
|
2491
2491
|
valueFormatterString: K,
|
|
2492
|
-
yData:
|
|
2492
|
+
yData: Te,
|
|
2493
2493
|
...J
|
|
2494
2494
|
}
|
|
2495
2495
|
)
|
|
@@ -2624,7 +2624,7 @@ const xc = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
|
2624
2624
|
cursorPosition: a,
|
|
2625
2625
|
chartContainerRef: o
|
|
2626
2626
|
}) => {
|
|
2627
|
-
const r =
|
|
2627
|
+
const r = ze(), s = Ms(null), [c, l] = xt({ x: a.x, y: a.y });
|
|
2628
2628
|
if (Pn(() => {
|
|
2629
2629
|
(() => {
|
|
2630
2630
|
const h = s.current, m = o.current;
|
|
@@ -2751,7 +2751,7 @@ const xc = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
|
2751
2751
|
availableHeight: s = 0,
|
|
2752
2752
|
minimumHeight: c = 350
|
|
2753
2753
|
}) => {
|
|
2754
|
-
const l =
|
|
2754
|
+
const l = ze(), { isMobile: u } = Ce(), [_, { height: h }] = ii(), m = g.useRef(null), [p, f] = g.useState(0);
|
|
2755
2755
|
g.useEffect(() => {
|
|
2756
2756
|
const z = Math.max(s - h, c);
|
|
2757
2757
|
f(z);
|
|
@@ -2761,11 +2761,11 @@ const xc = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
|
2761
2761
|
hoveredAreaData: null,
|
|
2762
2762
|
isAreaHovered: !1,
|
|
2763
2763
|
cursorPos: { x: 0, y: 0 }
|
|
2764
|
-
}), { hoveredSeriesId: v, hoveredAreaData: w, isAreaHovered: N, cursorPos: R } = E, M = N && v && w, k = !M, G = [...o, ...r], L = G[0]?.dataset.length ?? 0, W = G.flatMap((z) => z.dataset.map((Be) => Be.x)), K = G.flatMap((z) => z.dataset.map((Be) => Be.y)),
|
|
2764
|
+
}), { hoveredSeriesId: v, hoveredAreaData: w, isAreaHovered: N, cursorPos: R } = E, M = N && v && w, k = !M, G = [...o, ...r], L = G[0]?.dataset.length ?? 0, W = G.flatMap((z) => z.dataset.map((Be) => Be.x)), K = G.flatMap((z) => z.dataset.map((Be) => Be.y)), ne = o[0]?.dataset?.map(
|
|
2765
2765
|
(z, Be) => o.reduce((lt, En) => lt + En.dataset[Be]?.y || 0, 0)
|
|
2766
|
-
) ?? [0],
|
|
2766
|
+
) ?? [0], re = Math.max(...ne), fe = Math.max(
|
|
2767
2767
|
...r.flatMap((z) => z.dataset.map((Be) => Be.y))
|
|
2768
|
-
),
|
|
2768
|
+
), Te = Math.floor(Math.min(...K) / 100) * 100, Me = Math.ceil(Math.max(re, fe) / 100) * 100, ge = o.map((z, Be) => ({
|
|
2769
2769
|
id: `stacked-${Be}`,
|
|
2770
2770
|
guid: z.category_guid,
|
|
2771
2771
|
top_level_guid: z.top_level_category_guid,
|
|
@@ -2777,7 +2777,7 @@ const xc = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
|
2777
2777
|
type: "line",
|
|
2778
2778
|
highlightScope: { highlight: "item" },
|
|
2779
2779
|
valueFormatter: (lt) => H(lt, "0,0")
|
|
2780
|
-
})),
|
|
2780
|
+
})), he = r.map((z, Be) => ({
|
|
2781
2781
|
id: `unstacked-${Be}`,
|
|
2782
2782
|
guid: z.category_guid,
|
|
2783
2783
|
top_level_guid: z.top_level_category_guid,
|
|
@@ -2787,12 +2787,12 @@ const xc = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
|
2787
2787
|
label: z.category_name,
|
|
2788
2788
|
type: "line",
|
|
2789
2789
|
valueFormatter: (lt) => H(lt, "0,0")
|
|
2790
|
-
})), Xe = [...
|
|
2791
|
-
...
|
|
2790
|
+
})), Xe = [...ge, ...he], V = [
|
|
2791
|
+
...ge.map(({ guid: z, top_level_guid: Be }) => ({
|
|
2792
2792
|
guid: z,
|
|
2793
2793
|
top_level_guid: Be
|
|
2794
2794
|
})),
|
|
2795
|
-
...
|
|
2795
|
+
...he.map(({ guid: z, top_level_guid: Be }) => ({
|
|
2796
2796
|
guid: z,
|
|
2797
2797
|
top_level_guid: Be
|
|
2798
2798
|
}))
|
|
@@ -2806,7 +2806,7 @@ const xc = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
|
2806
2806
|
y(z), i?.(z ?? "");
|
|
2807
2807
|
}, ke = (z) => {
|
|
2808
2808
|
a?.(z ?? "");
|
|
2809
|
-
},
|
|
2809
|
+
}, Ie = () => {
|
|
2810
2810
|
const z = pe(String(v)).guid;
|
|
2811
2811
|
z && a?.(z);
|
|
2812
2812
|
}, Ve = (z) => {
|
|
@@ -2861,10 +2861,10 @@ const xc = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
|
2861
2861
|
'& [class*="MuiLineElement-series-unstacked-"]': {
|
|
2862
2862
|
strokeWidth: 3
|
|
2863
2863
|
},
|
|
2864
|
-
...S &&
|
|
2864
|
+
...S && ge.reduce((z, Be, lt) => {
|
|
2865
2865
|
const En = `.MuiAreaElement-series-stacked-${lt}`;
|
|
2866
2866
|
return z[En] = {
|
|
2867
|
-
opacity:
|
|
2867
|
+
opacity: ge[lt].guid === S ? 0.9 : 0.2
|
|
2868
2868
|
}, z;
|
|
2869
2869
|
}, {})
|
|
2870
2870
|
};
|
|
@@ -2880,7 +2880,7 @@ const xc = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
|
2880
2880
|
{
|
|
2881
2881
|
height: p,
|
|
2882
2882
|
margin: { bottom: 50 },
|
|
2883
|
-
onAreaClick:
|
|
2883
|
+
onAreaClick: Ie,
|
|
2884
2884
|
onHighlightChange: Ve,
|
|
2885
2885
|
series: Xe,
|
|
2886
2886
|
skipAnimation: !0,
|
|
@@ -2914,7 +2914,7 @@ const xc = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
|
2914
2914
|
],
|
|
2915
2915
|
yAxis: [
|
|
2916
2916
|
{
|
|
2917
|
-
min:
|
|
2917
|
+
min: Te,
|
|
2918
2918
|
max: Me || 100
|
|
2919
2919
|
}
|
|
2920
2920
|
]
|
|
@@ -3129,7 +3129,7 @@ const xc = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
|
3129
3129
|
calendarActions: e,
|
|
3130
3130
|
color: n = "primary",
|
|
3131
3131
|
copy: i,
|
|
3132
|
-
range: a = [
|
|
3132
|
+
range: a = [Ke(xe()), qe(mn())],
|
|
3133
3133
|
shouldShrinkToIcon: o = !0,
|
|
3134
3134
|
variant: r = "outlined"
|
|
3135
3135
|
}) => {
|
|
@@ -3153,17 +3153,17 @@ const xc = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
|
3153
3153
|
(r === "timeframebuttons" || r === "timeframetabs") && e.onRangeChanged(N());
|
|
3154
3154
|
}, [I]);
|
|
3155
3155
|
const N = () => {
|
|
3156
|
-
const G =
|
|
3157
|
-
return [
|
|
3156
|
+
const G = qe(mn());
|
|
3157
|
+
return [qe(Ht(G, I)), G];
|
|
3158
3158
|
}, R = (G) => {
|
|
3159
|
-
const L = [...l], W = l[0], K = l[1],
|
|
3159
|
+
const L = [...l], W = l[0], K = l[1], ne = G === "previous";
|
|
3160
3160
|
if (_ === i.dateRangePickerCopy.dateRangeThisMonth)
|
|
3161
|
-
L[0] =
|
|
3161
|
+
L[0] = ne ? Ht(W, 1) : Qt(W, 1), L[1] = qe(ne ? Ht(K, 1) : Qt(K, 1));
|
|
3162
3162
|
else if (_ === i.dateRangePickerCopy.dateRangeYTD || _ === i.dateRangePickerCopy.dateRangeLastYear)
|
|
3163
|
-
L[0] =
|
|
3163
|
+
L[0] = ne ? Za(_r(W), 1) : Ji(_r(W), 1), L[1] = ne ? Za(dr(W), 1) : Ji(dr(W), 1);
|
|
3164
3164
|
else {
|
|
3165
|
-
const
|
|
3166
|
-
L[
|
|
3165
|
+
const re = Ld(K, W);
|
|
3166
|
+
ne ? (L[1] = Ot(W, 1), L[0] = Ot(L[1], re)) : (L[0] = Fn(K, 1), L[1] = Fn(L[0], re));
|
|
3167
3167
|
}
|
|
3168
3168
|
u(L), e.onRangeChanged(L);
|
|
3169
3169
|
}, M = () => {
|
|
@@ -3305,7 +3305,7 @@ const xc = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
|
3305
3305
|
copy: i.dateRangePickerCopy,
|
|
3306
3306
|
dateRange: m,
|
|
3307
3307
|
onRangeChanged: (G, L) => {
|
|
3308
|
-
p(G), h(L);
|
|
3308
|
+
G[0] && !G[1] && (G[1] = G[0]), p(G), h(L);
|
|
3309
3309
|
},
|
|
3310
3310
|
selectedShortcut: _,
|
|
3311
3311
|
sx: { p: 16 }
|
|
@@ -3332,7 +3332,7 @@ const xc = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
|
3332
3332
|
copy: i.dateRangePickerCopy,
|
|
3333
3333
|
dateRange: m,
|
|
3334
3334
|
onRangeChanged: (G, L) => {
|
|
3335
|
-
p(G), h(L);
|
|
3335
|
+
G[0] && !G[1] && (G[1] = G[0]), p(G), h(L);
|
|
3336
3336
|
},
|
|
3337
3337
|
selectedShortcut: _,
|
|
3338
3338
|
sx: {
|
|
@@ -3346,7 +3346,7 @@ const xc = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
|
3346
3346
|
}
|
|
3347
3347
|
)
|
|
3348
3348
|
] });
|
|
3349
|
-
},
|
|
3349
|
+
}, s2 = ({
|
|
3350
3350
|
hasGap: e = !1,
|
|
3351
3351
|
segments: n,
|
|
3352
3352
|
size: i = hc,
|
|
@@ -3472,7 +3472,7 @@ class Vu extends g.Component {
|
|
|
3472
3472
|
return { hasError: !0 };
|
|
3473
3473
|
}
|
|
3474
3474
|
render() {
|
|
3475
|
-
return this.state.hasError ? /* @__PURE__ */ t(
|
|
3475
|
+
return this.state.hasError ? /* @__PURE__ */ t(Qe, { sx: { pt: 24 }, children: Uu.text }) : this.props.children;
|
|
3476
3476
|
}
|
|
3477
3477
|
}
|
|
3478
3478
|
const Ea = ({
|
|
@@ -3492,7 +3492,7 @@ const Ea = ({
|
|
|
3492
3492
|
action: /* @__PURE__ */ t(
|
|
3493
3493
|
te,
|
|
3494
3494
|
{
|
|
3495
|
-
endIcon: /* @__PURE__ */ t(
|
|
3495
|
+
endIcon: /* @__PURE__ */ t(je, { size: 20 }),
|
|
3496
3496
|
onClick: a,
|
|
3497
3497
|
size: "small",
|
|
3498
3498
|
variant: "text",
|
|
@@ -3501,7 +3501,7 @@ const Ea = ({
|
|
|
3501
3501
|
),
|
|
3502
3502
|
subheader: o && /* @__PURE__ */ t(X, { sx: { color: "text.secondary" }, variant: "body2", children: o }),
|
|
3503
3503
|
sx: { p: 0, pb: 8, width: "calc(100% - 8px)", "& .MuiCardHeader-action": { mt: 0 } },
|
|
3504
|
-
title: /* @__PURE__ */ t(
|
|
3504
|
+
title: /* @__PURE__ */ t(Qe, { sx: { width: "calc(100% - 10px)" }, children: s })
|
|
3505
3505
|
}
|
|
3506
3506
|
),
|
|
3507
3507
|
/* @__PURE__ */ t(Pt, { ref: l, sx: { p: 0, ":last-child": { pb: 0 } }, children: /* @__PURE__ */ t(Io, { availableHeight: u, availableWidth: _, children: e }) })
|
|
@@ -3523,11 +3523,11 @@ const Ea = ({
|
|
|
3523
3523
|
/* @__PURE__ */ t(
|
|
3524
3524
|
_n,
|
|
3525
3525
|
{
|
|
3526
|
-
action: a ? /* @__PURE__ */ t(We, { "aria-label": n, onClick: a, children: /* @__PURE__ */ t(ft, { name: "close", size: 24 }) }) : o && /* @__PURE__ */ t(te, { endIcon: /* @__PURE__ */ t(
|
|
3526
|
+
action: a ? /* @__PURE__ */ t(We, { "aria-label": n, onClick: a, children: /* @__PURE__ */ t(ft, { name: "close", size: 24 }) }) : o && /* @__PURE__ */ t(te, { endIcon: /* @__PURE__ */ t(je, {}), onClick: o, children: /* @__PURE__ */ t(C, { bold: !0, variant: "Small", children: r }) }),
|
|
3527
3527
|
subheader: s || null,
|
|
3528
3528
|
subheaderTypographyProps: { variant: "Small" },
|
|
3529
3529
|
sx: { pb: 4 },
|
|
3530
|
-
title: l ? /* @__PURE__ */ t(
|
|
3530
|
+
title: l ? /* @__PURE__ */ t(Qe, { sx: { pb: 4 }, children: l }) : null
|
|
3531
3531
|
}
|
|
3532
3532
|
),
|
|
3533
3533
|
/* @__PURE__ */ t(Pt, { ref: u, sx: { p: 0 }, children: /* @__PURE__ */ t(Io, { availableHeight: _, availableWidth: h, children: i }) })
|
|
@@ -3558,7 +3558,7 @@ const Ea = ({
|
|
|
3558
3558
|
};
|
|
3559
3559
|
if (!M)
|
|
3560
3560
|
return /* @__PURE__ */ t(de, {});
|
|
3561
|
-
const
|
|
3561
|
+
const ne = {
|
|
3562
3562
|
accountFilterOptionsCopy: {
|
|
3563
3563
|
accountTypeAccounts: L.account_filter.account_type_accounts,
|
|
3564
3564
|
cancelButton: L.cancel_button,
|
|
@@ -3572,7 +3572,7 @@ const Ea = ({
|
|
|
3572
3572
|
zeroStateTitle: L.account_filter.zero_state_title
|
|
3573
3573
|
},
|
|
3574
3574
|
title: L.account_filter.title
|
|
3575
|
-
},
|
|
3575
|
+
}, re = {
|
|
3576
3576
|
dateRangePickerCopy: {
|
|
3577
3577
|
dateRangeFrom: L.date_range_picker.from,
|
|
3578
3578
|
dateRangeTo: L.date_range_picker.to,
|
|
@@ -3590,7 +3590,7 @@ const Ea = ({
|
|
|
3590
3590
|
dateRangeEditTitle: L.date_range_picker.edit_title,
|
|
3591
3591
|
dateRangeNextAria: L.date_range_picker.next_aria,
|
|
3592
3592
|
dateRangePreviousAria: L.date_range_picker.previous_aria
|
|
3593
|
-
}, fe = o ? o.start : R.start,
|
|
3593
|
+
}, fe = o ? o.start : R.start, Te = o ? o.end : R.end, Me = n?.length > 1;
|
|
3594
3594
|
return /* @__PURE__ */ d(
|
|
3595
3595
|
yt,
|
|
3596
3596
|
{
|
|
@@ -3611,8 +3611,8 @@ const Ea = ({
|
|
|
3611
3611
|
vr,
|
|
3612
3612
|
{
|
|
3613
3613
|
calendarActions: i,
|
|
3614
|
-
copy:
|
|
3615
|
-
range: [fe,
|
|
3614
|
+
copy: re,
|
|
3615
|
+
range: [fe, Te],
|
|
3616
3616
|
shouldShrinkToIcon: !1,
|
|
3617
3617
|
variant: r
|
|
3618
3618
|
}
|
|
@@ -3621,38 +3621,38 @@ const Ea = ({
|
|
|
3621
3621
|
Ec,
|
|
3622
3622
|
{
|
|
3623
3623
|
accounts: e,
|
|
3624
|
-
copy:
|
|
3624
|
+
copy: ne,
|
|
3625
3625
|
onConnectAccountClick: () => f(!0),
|
|
3626
|
-
onFilterClick: (
|
|
3627
|
-
G(
|
|
3626
|
+
onFilterClick: (ge) => {
|
|
3627
|
+
G(ge), u?.();
|
|
3628
3628
|
},
|
|
3629
3629
|
selectedAccountGuids: k,
|
|
3630
3630
|
showAccountNumbers: !1,
|
|
3631
3631
|
variant: "text"
|
|
3632
3632
|
}
|
|
3633
3633
|
),
|
|
3634
|
-
n?.map((
|
|
3635
|
-
if (g.isValidElement(
|
|
3636
|
-
const { iconName:
|
|
3634
|
+
n?.map((ge) => {
|
|
3635
|
+
if (g.isValidElement(ge)) return ge;
|
|
3636
|
+
const { iconName: he, onClick: Xe, label: V } = ge;
|
|
3637
3637
|
return Me ? v || N ? /* @__PURE__ */ t(
|
|
3638
3638
|
te,
|
|
3639
3639
|
{
|
|
3640
3640
|
onClick: Xe,
|
|
3641
|
-
startIcon: /* @__PURE__ */ t(U, { name:
|
|
3641
|
+
startIcon: /* @__PURE__ */ t(U, { name: he, size: 24 }),
|
|
3642
3642
|
sx: { my: 4 },
|
|
3643
3643
|
children: V
|
|
3644
3644
|
},
|
|
3645
|
-
|
|
3646
|
-
) : /* @__PURE__ */ t(We, { "aria-label": V, color: "primary", onClick: Xe, children: /* @__PURE__ */ t(U, { name:
|
|
3645
|
+
he
|
|
3646
|
+
) : /* @__PURE__ */ t(We, { "aria-label": V, color: "primary", onClick: Xe, children: /* @__PURE__ */ t(U, { name: he, size: 24 }) }, he) : v || N ? /* @__PURE__ */ t(
|
|
3647
3647
|
te,
|
|
3648
3648
|
{
|
|
3649
3649
|
onClick: Xe,
|
|
3650
|
-
startIcon: /* @__PURE__ */ t(U, { name:
|
|
3650
|
+
startIcon: /* @__PURE__ */ t(U, { name: he, size: 24 }),
|
|
3651
3651
|
sx: { my: 4 },
|
|
3652
3652
|
children: V
|
|
3653
3653
|
},
|
|
3654
|
-
|
|
3655
|
-
) : /* @__PURE__ */ t(We, { "aria-label": V, color: "primary", onClick: Xe, children: /* @__PURE__ */ t(U, { name:
|
|
3654
|
+
he
|
|
3655
|
+
) : /* @__PURE__ */ t(We, { "aria-label": V, color: "primary", onClick: Xe, children: /* @__PURE__ */ t(U, { name: he, size: 24 }) }, he);
|
|
3656
3656
|
})
|
|
3657
3657
|
] }),
|
|
3658
3658
|
sx: {
|
|
@@ -3678,7 +3678,7 @@ const Ea = ({
|
|
|
3678
3678
|
children: /* @__PURE__ */ t(U, { name: "arrow_back", size: 24 })
|
|
3679
3679
|
}
|
|
3680
3680
|
),
|
|
3681
|
-
/* @__PURE__ */ t(
|
|
3681
|
+
/* @__PURE__ */ t(Qe, { children: m })
|
|
3682
3682
|
] })
|
|
3683
3683
|
}
|
|
3684
3684
|
),
|
|
@@ -3689,8 +3689,8 @@ const Ea = ({
|
|
|
3689
3689
|
vr,
|
|
3690
3690
|
{
|
|
3691
3691
|
calendarActions: i,
|
|
3692
|
-
copy:
|
|
3693
|
-
range: [fe,
|
|
3692
|
+
copy: re,
|
|
3693
|
+
range: [fe, Te],
|
|
3694
3694
|
shouldShrinkToIcon: !1,
|
|
3695
3695
|
variant: r
|
|
3696
3696
|
}
|
|
@@ -3850,7 +3850,7 @@ const wr = "connect_widget", Dr = "connections_widget", Yu = ({
|
|
|
3850
3850
|
"& .MuiInputBase-adornedStart > .p": {
|
|
3851
3851
|
marginRight: e.Spacing.Tiny
|
|
3852
3852
|
}
|
|
3853
|
-
}),
|
|
3853
|
+
}), c2 = ({
|
|
3854
3854
|
icon: e,
|
|
3855
3855
|
label: n,
|
|
3856
3856
|
onClick: i,
|
|
@@ -4016,7 +4016,7 @@ const wr = "connect_widget", Dr = "connections_widget", Yu = ({
|
|
|
4016
4016
|
}
|
|
4017
4017
|
)
|
|
4018
4018
|
] });
|
|
4019
|
-
return i ? /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(
|
|
4019
|
+
return i ? /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(me, { onClick: i, children: [
|
|
4020
4020
|
o,
|
|
4021
4021
|
/* @__PURE__ */ t(mt, { children: /* @__PURE__ */ t(U, { name: "chevron_right", size: 24 }) })
|
|
4022
4022
|
] }) }) : /* @__PURE__ */ t(j, { disableGutters: !1, disablePadding: !1, children: o });
|
|
@@ -4070,7 +4070,7 @@ const wr = "connect_widget", Dr = "connections_widget", Yu = ({
|
|
|
4070
4070
|
/* @__PURE__ */ t(
|
|
4071
4071
|
te,
|
|
4072
4072
|
{
|
|
4073
|
-
endIcon: /* @__PURE__ */ t(
|
|
4073
|
+
endIcon: /* @__PURE__ */ t(je, {}),
|
|
4074
4074
|
onClick: () => r(!0),
|
|
4075
4075
|
sx: {
|
|
4076
4076
|
pl: 0,
|
|
@@ -4157,7 +4157,7 @@ const wr = "connect_widget", Dr = "connections_widget", Yu = ({
|
|
|
4157
4157
|
h(!1), r();
|
|
4158
4158
|
};
|
|
4159
4159
|
return /* @__PURE__ */ d(j, { children: [
|
|
4160
|
-
/* @__PURE__ */ d(
|
|
4160
|
+
/* @__PURE__ */ d(me, { onClick: () => h(!n), children: [
|
|
4161
4161
|
/* @__PURE__ */ t(
|
|
4162
4162
|
se,
|
|
4163
4163
|
{
|
|
@@ -4177,7 +4177,7 @@ const wr = "connect_widget", Dr = "connections_widget", Yu = ({
|
|
|
4177
4177
|
primaryTypographyProps: { variant: "body1" }
|
|
4178
4178
|
}
|
|
4179
4179
|
),
|
|
4180
|
-
!n && !l && /* @__PURE__ */ t(
|
|
4180
|
+
!n && !l && /* @__PURE__ */ t(je, {})
|
|
4181
4181
|
] }),
|
|
4182
4182
|
/* @__PURE__ */ t(
|
|
4183
4183
|
Ge,
|
|
@@ -4201,7 +4201,7 @@ const wr = "connect_widget", Dr = "connections_widget", Yu = ({
|
|
|
4201
4201
|
}) => {
|
|
4202
4202
|
const { onEvent: o } = q();
|
|
4203
4203
|
return i ? /* @__PURE__ */ t(j, { sx: { bgcolor: "background.paper", ...a }, children: /* @__PURE__ */ t(
|
|
4204
|
-
|
|
4204
|
+
me,
|
|
4205
4205
|
{
|
|
4206
4206
|
onClick: () => {
|
|
4207
4207
|
n && o(n), i();
|
|
@@ -4253,7 +4253,7 @@ const wr = "connect_widget", Dr = "connections_widget", Yu = ({
|
|
|
4253
4253
|
"& .MuiListItemSecondaryAction-root": { right: n ? 64 : 24 },
|
|
4254
4254
|
"& .MuiListItemButton-root": { pr: 24 }
|
|
4255
4255
|
},
|
|
4256
|
-
children: /* @__PURE__ */ d(
|
|
4256
|
+
children: /* @__PURE__ */ d(me, { onClick: a ? void 0 : () => o(), children: [
|
|
4257
4257
|
e && /* @__PURE__ */ t(He, { children: e }),
|
|
4258
4258
|
/* @__PURE__ */ t(se, { primaryTypographyProps: { fontWeight: 400 }, children: /* @__PURE__ */ t(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ d(b, { children: [
|
|
4259
4259
|
/* @__PURE__ */ t(C, { variant: "body1", children: s }),
|
|
@@ -4532,7 +4532,7 @@ class ah {
|
|
|
4532
4532
|
api = new Rr("/", "");
|
|
4533
4533
|
globalStore;
|
|
4534
4534
|
alert = "";
|
|
4535
|
-
dateRange = { start:
|
|
4535
|
+
dateRange = { start: Ke(xe()), end: qe(xe()) };
|
|
4536
4536
|
budgets = [];
|
|
4537
4537
|
selectedBudget;
|
|
4538
4538
|
selectedSubBudget;
|
|
@@ -4819,7 +4819,7 @@ const Ei = () => {
|
|
|
4819
4819
|
children: /* @__PURE__ */ t(sh, { onAddIncomeClick: e })
|
|
4820
4820
|
}
|
|
4821
4821
|
) : /* @__PURE__ */ t(de, {});
|
|
4822
|
-
},
|
|
4822
|
+
}, l2 = x(ch), lh = (e) => {
|
|
4823
4823
|
if (!e) return "";
|
|
4824
4824
|
let n = e.user_name || e.feed_name || "";
|
|
4825
4825
|
return e.account_number && (n = `${n} *${e.account_number}`), n;
|
|
@@ -4875,7 +4875,7 @@ const Ei = () => {
|
|
|
4875
4875
|
const u = e.transactions.find(
|
|
4876
4876
|
(_) => _.repeating_transaction_guid === e.guid && _.date > Fe(Ot(l.expectedDate, 5)) && _.date < Fe(Fn(l.expectedDate, 5))
|
|
4877
4877
|
);
|
|
4878
|
-
u ? (l.transaction = u, l.status = et.Paid, l.occurredOnDate = Ue(u.date)) : nt(l.expectedDate, Ot(
|
|
4878
|
+
u ? (l.transaction = u, l.status = et.Paid, l.occurredOnDate = Ue(u.date)) : nt(l.expectedDate, Ot(xe(), 3)) && (l.status = et.Missed);
|
|
4879
4879
|
}
|
|
4880
4880
|
return i;
|
|
4881
4881
|
}, _h = (e, n, i) => {
|
|
@@ -4956,7 +4956,7 @@ const Ei = () => {
|
|
|
4956
4956
|
recurrences: [i]
|
|
4957
4957
|
}), n;
|
|
4958
4958
|
}, []), sa = (e, n, i) => {
|
|
4959
|
-
const a = ea(
|
|
4959
|
+
const a = ea(xe(), n.recurrence_day), o = tc(xe(), n.recurrence_day), r = ki(n.recurrence_day), s = n.second_recurrence_day ? ki(n.second_recurrence_day) : "";
|
|
4960
4960
|
let c = i ? T(e.monthly_ordinal, r) : e.monthly;
|
|
4961
4961
|
switch (n.recurrence_type) {
|
|
4962
4962
|
case Se.EveryQuarter:
|
|
@@ -5503,7 +5503,7 @@ const wc = (e, n) => {
|
|
|
5503
5503
|
}, Mh = (e, n, i) => {
|
|
5504
5504
|
const {
|
|
5505
5505
|
accounts: a = [],
|
|
5506
|
-
dateRange: o = { start:
|
|
5506
|
+
dateRange: o = { start: Ke(xe()), end: mn() },
|
|
5507
5507
|
custom: r = () => !0,
|
|
5508
5508
|
searchTerm: s = "",
|
|
5509
5509
|
showSplits: c = !1
|
|
@@ -5557,8 +5557,8 @@ const Dc = {
|
|
|
5557
5557
|
tags: []
|
|
5558
5558
|
};
|
|
5559
5559
|
let Fh = class {
|
|
5560
|
-
beginDate =
|
|
5561
|
-
endDate =
|
|
5560
|
+
beginDate = Ke(/* @__PURE__ */ new Date());
|
|
5561
|
+
endDate = qe(/* @__PURE__ */ new Date());
|
|
5562
5562
|
expandedSplits = [];
|
|
5563
5563
|
isInitialized = !1;
|
|
5564
5564
|
height = 550;
|
|
@@ -5603,7 +5603,7 @@ class Wh {
|
|
|
5603
5603
|
api = new ca("/", "");
|
|
5604
5604
|
beatApi = new li("/", "");
|
|
5605
5605
|
associatedBeats = [];
|
|
5606
|
-
cachedStartDate = Ot(
|
|
5606
|
+
cachedStartDate = Ot(xe(), 90);
|
|
5607
5607
|
filter = {};
|
|
5608
5608
|
isLoading = !0;
|
|
5609
5609
|
rawTransactions = [];
|
|
@@ -5622,7 +5622,7 @@ class Wh {
|
|
|
5622
5622
|
transactions: a
|
|
5623
5623
|
} = {}) => {
|
|
5624
5624
|
await Promise.all([
|
|
5625
|
-
this.loadAssociatedBeats(
|
|
5625
|
+
this.loadAssociatedBeats(Ke(/* @__PURE__ */ new Date()), n),
|
|
5626
5626
|
this.loadTags(),
|
|
5627
5627
|
this.loadTaggings(),
|
|
5628
5628
|
this.loadTransactionRules(i),
|
|
@@ -5995,7 +5995,7 @@ const Kh = ({ transaction: e, onClick: n }) => {
|
|
|
5995
5995
|
}
|
|
5996
5996
|
);
|
|
5997
5997
|
}, Jh = x(Qh), eg = (e) => /* @__PURE__ */ t(C, { tabIndex: e.tabIndex, variant: "Small", children: ue(Ue(e.row.date), ae.MONTH_DAY) }), tg = (e) => {
|
|
5998
|
-
const n =
|
|
5998
|
+
const n = ze(), { transactions: i } = A(), { is_flagged: a, is_hidden: o, has_been_viewed: r, parent_guid: s } = e.row, l = !r && !!!s;
|
|
5999
5999
|
return /* @__PURE__ */ d(
|
|
6000
6000
|
O,
|
|
6001
6001
|
{
|
|
@@ -6200,7 +6200,7 @@ const rg = ({
|
|
|
6200
6200
|
i(!1), r(qt.ON_SUBCATEGORY_ADD_CANCEL_CLICK);
|
|
6201
6201
|
};
|
|
6202
6202
|
return /* @__PURE__ */ d(j, { disableGutters: !0, disablePadding: !0, children: [
|
|
6203
|
-
/* @__PURE__ */ t(
|
|
6203
|
+
/* @__PURE__ */ t(me, { onClick: l, sx: { ml: 60 }, children: /* @__PURE__ */ t(
|
|
6204
6204
|
se,
|
|
6205
6205
|
{
|
|
6206
6206
|
primary: o.add_subcategory_button,
|
|
@@ -6277,7 +6277,7 @@ const rg = ({
|
|
|
6277
6277
|
sx: { pl: 58 },
|
|
6278
6278
|
children: [
|
|
6279
6279
|
/* @__PURE__ */ d(
|
|
6280
|
-
|
|
6280
|
+
me,
|
|
6281
6281
|
{
|
|
6282
6282
|
"aria-pressed": y,
|
|
6283
6283
|
color: "secondary",
|
|
@@ -6374,7 +6374,7 @@ const rg = ({
|
|
|
6374
6374
|
};
|
|
6375
6375
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
|
6376
6376
|
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(
|
|
6377
|
-
|
|
6377
|
+
me,
|
|
6378
6378
|
{
|
|
6379
6379
|
"aria-controls": `subcategories-${e.guid}`,
|
|
6380
6380
|
"aria-expanded": e.guid === i,
|
|
@@ -6540,9 +6540,9 @@ const rg = ({
|
|
|
6540
6540
|
)
|
|
6541
6541
|
);
|
|
6542
6542
|
}, Wr = (e) => {
|
|
6543
|
-
const n = [], i =
|
|
6543
|
+
const n = [], i = xe();
|
|
6544
6544
|
for (let a = 0; a <= Pr; a++) {
|
|
6545
|
-
const o =
|
|
6545
|
+
const o = Ke(Ht(i, Pr - a)), s = e.filter(
|
|
6546
6546
|
(c) => c.year_month === Number(pn(o, "yyyyMM"))
|
|
6547
6547
|
).reduce((c, l) => c + l.total, 0);
|
|
6548
6548
|
n.push({
|
|
@@ -6650,7 +6650,7 @@ class vg {
|
|
|
6650
6650
|
}
|
|
6651
6651
|
};
|
|
6652
6652
|
loadMonthlyCategoryTotals = async (n = this.globalStore.globalUiStore.selectedAccounts, i, a) => {
|
|
6653
|
-
const o = Fe(
|
|
6653
|
+
const o = Fe(Ke(i ?? Ht(/* @__PURE__ */ new Date(), 11))), r = Fe(qe(a ?? /* @__PURE__ */ new Date()));
|
|
6654
6654
|
try {
|
|
6655
6655
|
const s = await this.api.getMonthlyCategoryTotals(o, r, n);
|
|
6656
6656
|
ee(() => {
|
|
@@ -6668,8 +6668,8 @@ class vg {
|
|
|
6668
6668
|
Fe(a),
|
|
6669
6669
|
n
|
|
6670
6670
|
), r = await this.api.getMonthlyCategoryTotals(
|
|
6671
|
-
Fe(
|
|
6672
|
-
Fe(
|
|
6671
|
+
Fe(Ke(Ht(a, 11))),
|
|
6672
|
+
Fe(qe(a)),
|
|
6673
6673
|
n
|
|
6674
6674
|
);
|
|
6675
6675
|
ee(() => {
|
|
@@ -6724,7 +6724,7 @@ const Oc = ({ transaction: e }) => {
|
|
|
6724
6724
|
);
|
|
6725
6725
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
|
6726
6726
|
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(
|
|
6727
|
-
|
|
6727
|
+
me,
|
|
6728
6728
|
{
|
|
6729
6729
|
onClick: () => {
|
|
6730
6730
|
o(Q.ON_TRANSACTION_CATEGORY_CLICK), u(!0);
|
|
@@ -6796,7 +6796,7 @@ const Oc = ({ transaction: e }) => {
|
|
|
6796
6796
|
};
|
|
6797
6797
|
return /* @__PURE__ */ d(O, { className: "mx-txn-date-action", children: [
|
|
6798
6798
|
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(
|
|
6799
|
-
|
|
6799
|
+
me,
|
|
6800
6800
|
{
|
|
6801
6801
|
onClick: () => {
|
|
6802
6802
|
i(Q.ON_TRANSACTION_DATE_CLICK), l(!0);
|
|
@@ -6847,7 +6847,7 @@ const Oc = ({ transaction: e }) => {
|
|
|
6847
6847
|
};
|
|
6848
6848
|
return /* @__PURE__ */ d(O, { className: "mx-txn-delete", children: [
|
|
6849
6849
|
e && /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(
|
|
6850
|
-
|
|
6850
|
+
me,
|
|
6851
6851
|
{
|
|
6852
6852
|
onClick: () => {
|
|
6853
6853
|
n(Q.ON_TRANSACTION_DELETE_CLICK), a(!0), c(!0);
|
|
@@ -6889,7 +6889,7 @@ const Oc = ({ transaction: e }) => {
|
|
|
6889
6889
|
};
|
|
6890
6890
|
return /* @__PURE__ */ d(O, { className: "mx-txn-delete-logo", children: [
|
|
6891
6891
|
e && /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(
|
|
6892
|
-
|
|
6892
|
+
me,
|
|
6893
6893
|
{
|
|
6894
6894
|
onClick: () => {
|
|
6895
6895
|
n(Q.ON_TRANSACTION_DELETE_LOGO_CLICK), c(!0);
|
|
@@ -6929,7 +6929,7 @@ const Oc = ({ transaction: e }) => {
|
|
|
6929
6929
|
};
|
|
6930
6930
|
return /* @__PURE__ */ d(O, { className: "mx-txn-hide-transaction", children: [
|
|
6931
6931
|
e && /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(
|
|
6932
|
-
|
|
6932
|
+
me,
|
|
6933
6933
|
{
|
|
6934
6934
|
"aria-checked": l,
|
|
6935
6935
|
onClick: () => {
|
|
@@ -7024,7 +7024,7 @@ const Oc = ({ transaction: e }) => {
|
|
|
7024
7024
|
};
|
|
7025
7025
|
return /* @__PURE__ */ d("div", { className: "mx-txn-memo-action", children: [
|
|
7026
7026
|
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(
|
|
7027
|
-
|
|
7027
|
+
me,
|
|
7028
7028
|
{
|
|
7029
7029
|
onClick: () => {
|
|
7030
7030
|
n(Q.ON_TRANSACTION_MEMO_CLICK), c(!0);
|
|
@@ -7264,11 +7264,11 @@ const Oc = ({ transaction: e }) => {
|
|
|
7264
7264
|
}, I = (G, L) => {
|
|
7265
7265
|
const W = [...f];
|
|
7266
7266
|
W[G].amount = L, W[0].amount = e.amount - W.reduce(
|
|
7267
|
-
(K,
|
|
7267
|
+
(K, ne, re) => K + (re !== 0 ? ne.amount : 0),
|
|
7268
7268
|
0
|
|
7269
7269
|
), S(W);
|
|
7270
7270
|
}, v = (G, L) => {
|
|
7271
|
-
const W = [...f], K = c.find((
|
|
7271
|
+
const W = [...f], K = c.find((ne) => ne.guid === L);
|
|
7272
7272
|
K && (W[G] = {
|
|
7273
7273
|
...W[G],
|
|
7274
7274
|
category_guid: L,
|
|
@@ -7298,7 +7298,7 @@ const Oc = ({ transaction: e }) => {
|
|
|
7298
7298
|
return G || L;
|
|
7299
7299
|
}, [f]);
|
|
7300
7300
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
|
7301
|
-
e && /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(
|
|
7301
|
+
e && /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(me, { onClick: w, children: [
|
|
7302
7302
|
/* @__PURE__ */ t(He, { children: /* @__PURE__ */ t(Ft, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(U, { name: "call_split", sx: { color: "text.primary" }, weight: It.Dark }) }) }),
|
|
7303
7303
|
/* @__PURE__ */ t(
|
|
7304
7304
|
se,
|
|
@@ -7486,7 +7486,7 @@ const Oc = ({ transaction: e }) => {
|
|
|
7486
7486
|
] }),
|
|
7487
7487
|
children: [
|
|
7488
7488
|
/* @__PURE__ */ d(
|
|
7489
|
-
|
|
7489
|
+
me,
|
|
7490
7490
|
{
|
|
7491
7491
|
"aria-checked": n.includes(i.guid),
|
|
7492
7492
|
onClick: () => e(i.guid),
|
|
@@ -7578,7 +7578,7 @@ const Oc = ({ transaction: e }) => {
|
|
|
7578
7578
|
);
|
|
7579
7579
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
|
7580
7580
|
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(
|
|
7581
|
-
|
|
7581
|
+
me,
|
|
7582
7582
|
{
|
|
7583
7583
|
onClick: () => {
|
|
7584
7584
|
n(Q.ON_TRANSACTION_TAGS_CLICK), u(!0);
|
|
@@ -7932,13 +7932,13 @@ const Oc = ({ transaction: e }) => {
|
|
|
7932
7932
|
} = Le(), {
|
|
7933
7933
|
manualTransaction: W,
|
|
7934
7934
|
isAmountValid: K,
|
|
7935
|
-
searchValue:
|
|
7936
|
-
setSearchValue:
|
|
7935
|
+
searchValue: ne,
|
|
7936
|
+
setSearchValue: re,
|
|
7937
7937
|
setShowInsights: fe,
|
|
7938
|
-
updateManualTransaction:
|
|
7939
|
-
} = vt(), { userProfile: Me } = Ct(), [
|
|
7938
|
+
updateManualTransaction: Te
|
|
7939
|
+
} = vt(), { userProfile: Me } = Ct(), [ge, he] = g.useState(""), [Xe, V] = g.useState(""), [pe, J] = g.useState(!1), [ke, Ie] = g.useState(!1), [Ve, ct] = g.useState(!1);
|
|
7940
7940
|
g.useEffect(() => {
|
|
7941
|
-
const gt = o.filter((ai) => !ai.is_hidden), ar =
|
|
7941
|
+
const gt = o.filter((ai) => !ai.is_hidden), ar = Ke(xe()), or = qe(xe());
|
|
7942
7942
|
y(gt), S(ar, or), R({
|
|
7943
7943
|
accounts: gt.map((ai) => ai.guid),
|
|
7944
7944
|
custom: (ai) => !ai.accountIsClosed && !ai.accountIsHidden,
|
|
@@ -7959,29 +7959,29 @@ const Oc = ({ transaction: e }) => {
|
|
|
7959
7959
|
), z = Xe ? G.find((gt) => gt.guid === Xe) : void 0, Be = K && !!W.payee && !!W.account_guid && !!W.category_guid, lt = (gt) => {
|
|
7960
7960
|
S(gt[0], gt[1]);
|
|
7961
7961
|
}, En = (gt) => {
|
|
7962
|
-
|
|
7962
|
+
re(gt), R({
|
|
7963
7963
|
...w,
|
|
7964
7964
|
searchTerm: gt
|
|
7965
7965
|
}), l(F.TRANSACTIONS_CLICK_SEARCH, { search_term: gt });
|
|
7966
7966
|
}, La = () => {
|
|
7967
7967
|
wc(M, k), l(F.TRANSACTIONS_CLICK_EXPORT);
|
|
7968
7968
|
}, Ma = () => {
|
|
7969
|
-
Wt.length > 0 ? (
|
|
7969
|
+
Wt.length > 0 ? (Te({
|
|
7970
7970
|
...Dc,
|
|
7971
|
-
date: Fe(
|
|
7971
|
+
date: Fe(xe()),
|
|
7972
7972
|
user_guid: Me?.user_guid || ""
|
|
7973
|
-
}),
|
|
7973
|
+
}), he(
|
|
7974
7974
|
"addTransaction"
|
|
7975
7975
|
/* AddTransaction */
|
|
7976
7976
|
), l(F.TRANSACTIONS_CLICK_ADD)) : (J(!0), l(F.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
|
|
7977
7977
|
}, xi = async () => {
|
|
7978
|
-
Be && await v(W),
|
|
7978
|
+
Be && await v(W), he("");
|
|
7979
7979
|
}, ka = () => {
|
|
7980
|
-
J(!1),
|
|
7980
|
+
J(!1), Ie(!0);
|
|
7981
7981
|
}, Ga = async () => {
|
|
7982
|
-
|
|
7982
|
+
Ie(!1), await r();
|
|
7983
7983
|
}, Fl = async () => {
|
|
7984
|
-
z && !z.has_been_viewed && await L({ ...z, has_been_viewed: !0 }),
|
|
7984
|
+
z && !z.has_been_viewed && await L({ ...z, has_been_viewed: !0 }), he("");
|
|
7985
7985
|
};
|
|
7986
7986
|
if (!m || !p || !Ve)
|
|
7987
7987
|
return /* @__PURE__ */ t(de, {});
|
|
@@ -8012,7 +8012,7 @@ const Oc = ({ transaction: e }) => {
|
|
|
8012
8012
|
{
|
|
8013
8013
|
onChange: En,
|
|
8014
8014
|
placeholder: _.action_bar_search_placeholder,
|
|
8015
|
-
searchValue:
|
|
8015
|
+
searchValue: ne
|
|
8016
8016
|
}
|
|
8017
8017
|
) }),
|
|
8018
8018
|
/* @__PURE__ */ t(
|
|
@@ -8027,13 +8027,13 @@ const Oc = ({ transaction: e }) => {
|
|
|
8027
8027
|
{
|
|
8028
8028
|
height: `calc(${n} - ${$r}px)`,
|
|
8029
8029
|
onCategoryClick: (gt) => {
|
|
8030
|
-
V(gt),
|
|
8030
|
+
V(gt), he(
|
|
8031
8031
|
"category"
|
|
8032
8032
|
/* Category */
|
|
8033
8033
|
);
|
|
8034
8034
|
},
|
|
8035
8035
|
onRowClick: (gt) => {
|
|
8036
|
-
V(gt),
|
|
8036
|
+
V(gt), he(
|
|
8037
8037
|
"transaction"
|
|
8038
8038
|
/* Transaction */
|
|
8039
8039
|
), l(F.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: gt });
|
|
@@ -8054,7 +8054,7 @@ const Oc = ({ transaction: e }) => {
|
|
|
8054
8054
|
{
|
|
8055
8055
|
height: `calc(${n} - ${$r}px)`,
|
|
8056
8056
|
onClick: (gt) => {
|
|
8057
|
-
V(gt),
|
|
8057
|
+
V(gt), he(
|
|
8058
8058
|
"transaction"
|
|
8059
8059
|
/* Transaction */
|
|
8060
8060
|
);
|
|
@@ -8069,17 +8069,17 @@ const Oc = ({ transaction: e }) => {
|
|
|
8069
8069
|
le,
|
|
8070
8070
|
{
|
|
8071
8071
|
ariaLabelClose: u.close_aria,
|
|
8072
|
-
isOpen:
|
|
8072
|
+
isOpen: ge === "transaction" && !!z,
|
|
8073
8073
|
onClose: Fl,
|
|
8074
8074
|
title: _.details_title,
|
|
8075
8075
|
children: z && /* @__PURE__ */ t(Ti, { transaction: z })
|
|
8076
8076
|
}
|
|
8077
8077
|
),
|
|
8078
|
-
z &&
|
|
8078
|
+
z && ge === "category" && /* @__PURE__ */ t(
|
|
8079
8079
|
rm,
|
|
8080
8080
|
{
|
|
8081
8081
|
onClose: () => {
|
|
8082
|
-
c(""),
|
|
8082
|
+
c(""), he(""), V("");
|
|
8083
8083
|
},
|
|
8084
8084
|
transaction: z
|
|
8085
8085
|
}
|
|
@@ -8088,9 +8088,9 @@ const Oc = ({ transaction: e }) => {
|
|
|
8088
8088
|
le,
|
|
8089
8089
|
{
|
|
8090
8090
|
ariaLabelClose: u.close_aria,
|
|
8091
|
-
isOpen:
|
|
8091
|
+
isOpen: ge === "addTransaction",
|
|
8092
8092
|
isPrimaryDisabled: !Be,
|
|
8093
|
-
onClose: () =>
|
|
8093
|
+
onClose: () => he(""),
|
|
8094
8094
|
onPrimaryAction: xi,
|
|
8095
8095
|
title: _.add_transaction_title,
|
|
8096
8096
|
children: /* @__PURE__ */ t(am, {})
|
|
@@ -8118,7 +8118,7 @@ const Oc = ({ transaction: e }) => {
|
|
|
8118
8118
|
]
|
|
8119
8119
|
}
|
|
8120
8120
|
);
|
|
8121
|
-
},
|
|
8121
|
+
}, u2 = x(sm), Bc = ({
|
|
8122
8122
|
frequency: e,
|
|
8123
8123
|
firstDay: n,
|
|
8124
8124
|
secondDay: i,
|
|
@@ -8151,7 +8151,7 @@ const Oc = ({ transaction: e }) => {
|
|
|
8151
8151
|
label: ki(y + 1)
|
|
8152
8152
|
}));
|
|
8153
8153
|
u[30].label += ` (${s.last_day_of_month})`;
|
|
8154
|
-
const _ = u.slice(0, 15), h = u.slice(14), m = e === Se.EveryWeek || e === Se.EveryOtherWeek, p = e === Se.TwiceAMonth || e === Se.EveryMonth || e === Se.EveryOtherMonth || e === Se.EveryQuarter || e === Se.EveryOtherQuarter, f = tc(
|
|
8154
|
+
const _ = u.slice(0, 15), h = u.slice(14), m = e === Se.EveryWeek || e === Se.EveryOtherWeek, p = e === Se.TwiceAMonth || e === Se.EveryMonth || e === Se.EveryOtherMonth || e === Se.EveryQuarter || e === Se.EveryOtherQuarter, f = tc(xe(), n), S = (y) => {
|
|
8155
8155
|
y && o(o_(y));
|
|
8156
8156
|
};
|
|
8157
8157
|
return /* @__PURE__ */ d(b, { gap: 24, sx: { m: 24 }, children: [
|
|
@@ -8250,7 +8250,7 @@ const Oc = ({ transaction: e }) => {
|
|
|
8250
8250
|
g.useEffect(() => {
|
|
8251
8251
|
s({
|
|
8252
8252
|
accounts: a,
|
|
8253
|
-
dateRange: { start: Ot(
|
|
8253
|
+
dateRange: { start: Ot(xe(), 90), end: qe(xe()) },
|
|
8254
8254
|
custom: (v) => v.repeating_transaction_guid === n.guid
|
|
8255
8255
|
});
|
|
8256
8256
|
}, [n]);
|
|
@@ -8355,7 +8355,7 @@ const Oc = ({ transaction: e }) => {
|
|
|
8355
8355
|
[n]
|
|
8356
8356
|
), s = n.account?.institutionName || "", c = n.repeating_transaction_type === cn.Income, l = sa(i, n, !0);
|
|
8357
8357
|
return /* @__PURE__ */ d(j, { disableGutters: !0, disablePadding: !0, children: [
|
|
8358
|
-
/* @__PURE__ */ d(
|
|
8358
|
+
/* @__PURE__ */ d(me, { onClick: () => {
|
|
8359
8359
|
e(n), o(!0);
|
|
8360
8360
|
}, children: [
|
|
8361
8361
|
/* @__PURE__ */ t(He, { children: /* @__PURE__ */ t(
|
|
@@ -8529,7 +8529,7 @@ const Oc = ({ transaction: e }) => {
|
|
|
8529
8529
|
m(""), _(!1);
|
|
8530
8530
|
};
|
|
8531
8531
|
return /* @__PURE__ */ d(O, { children: [
|
|
8532
|
-
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(
|
|
8532
|
+
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(me, { onClick: w, children: /* @__PURE__ */ t(se, { children: /* @__PURE__ */ d(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
8533
8533
|
/* @__PURE__ */ d(b, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
8534
8534
|
/* @__PURE__ */ t(U, { fill: !0, name: "add_box", size: 24, sx: { color: "primary.main" } }),
|
|
8535
8535
|
/* @__PURE__ */ t(C, { bold: !0, sx: { color: "primary.main" }, variant: "Body", children: n })
|
|
@@ -8739,13 +8739,13 @@ const Oc = ({ transaction: e }) => {
|
|
|
8739
8739
|
pr(/* @__PURE__ */ new Date()) * Ii + Ur
|
|
8740
8740
|
), s = (l) => {
|
|
8741
8741
|
r(pr(l) * Ii + Ur), a({
|
|
8742
|
-
start:
|
|
8743
|
-
end:
|
|
8742
|
+
start: Ke(l),
|
|
8743
|
+
end: qe(l)
|
|
8744
8744
|
}), n(F.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
|
|
8745
8745
|
}, c = /* @__PURE__ */ t(
|
|
8746
8746
|
Co,
|
|
8747
8747
|
{
|
|
8748
|
-
minDate:
|
|
8748
|
+
minDate: Ke(/* @__PURE__ */ new Date()),
|
|
8749
8749
|
onMonthChange: s,
|
|
8750
8750
|
showDaysOutsideCurrentMonth: !0,
|
|
8751
8751
|
slots: {
|
|
@@ -8846,7 +8846,7 @@ const Oc = ({ transaction: e }) => {
|
|
|
8846
8846
|
let p = o.paid?.toLowerCase();
|
|
8847
8847
|
return h ? p = o.missed?.toLowerCase() : m && (p = a ? sa(o, l || {}, !0) : sa(o, l || {}, !1)), //TODO: implement common/components/ListItemRow.tsx
|
|
8848
8848
|
/* @__PURE__ */ d(j, { disableGutters: !0, disablePadding: !0, children: [
|
|
8849
|
-
/* @__PURE__ */ d(
|
|
8849
|
+
/* @__PURE__ */ d(me, { onClick: () => {
|
|
8850
8850
|
c(!0), i(e);
|
|
8851
8851
|
}, children: [
|
|
8852
8852
|
/* @__PURE__ */ t(He, { children: /* @__PURE__ */ t(
|
|
@@ -9033,20 +9033,20 @@ const Oc = ({ transaction: e }) => {
|
|
|
9033
9033
|
}, G = () => {
|
|
9034
9034
|
const W = Qt(s.start, 1);
|
|
9035
9035
|
S({
|
|
9036
|
-
start:
|
|
9037
|
-
end:
|
|
9036
|
+
start: Ke(W),
|
|
9037
|
+
end: qe(W)
|
|
9038
9038
|
});
|
|
9039
9039
|
}, L = () => {
|
|
9040
9040
|
const W = Ht(s.start, 1);
|
|
9041
9041
|
S({
|
|
9042
|
-
start:
|
|
9043
|
-
end:
|
|
9042
|
+
start: Ke(W),
|
|
9043
|
+
end: qe(W)
|
|
9044
9044
|
});
|
|
9045
9045
|
};
|
|
9046
9046
|
return /* @__PURE__ */ d(Dn, { container: !0, sx: { pt: 16, px: 24, spacing: 24 }, children: [
|
|
9047
9047
|
/* @__PURE__ */ t(Dn, { md: !0, sm: 12, width: "100%", children: /* @__PURE__ */ d(b, { sx: { gap: 16 }, children: [
|
|
9048
9048
|
/* @__PURE__ */ d(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
9049
|
-
/* @__PURE__ */ t(
|
|
9049
|
+
/* @__PURE__ */ t(Qe, { sx: { px: 24 }, children: T(
|
|
9050
9050
|
e.header_title,
|
|
9051
9051
|
ue(s.start, ae.MONTH_LONG)
|
|
9052
9052
|
) }),
|
|
@@ -9060,7 +9060,7 @@ const Oc = ({ transaction: e }) => {
|
|
|
9060
9060
|
children: /* @__PURE__ */ t(Ps, {})
|
|
9061
9061
|
}
|
|
9062
9062
|
),
|
|
9063
|
-
/* @__PURE__ */ t(We, { color: "primary", onClick: G, children: /* @__PURE__ */ t(
|
|
9063
|
+
/* @__PURE__ */ t(We, { color: "primary", onClick: G, children: /* @__PURE__ */ t(je, {}) })
|
|
9064
9064
|
] })
|
|
9065
9065
|
] }),
|
|
9066
9066
|
/* @__PURE__ */ t(
|
|
@@ -9139,15 +9139,15 @@ const Oc = ({ transaction: e }) => {
|
|
|
9139
9139
|
)
|
|
9140
9140
|
] }) })
|
|
9141
9141
|
] });
|
|
9142
|
-
}),
|
|
9142
|
+
}), h2 = x(({ onBackClick: e, sx: n = {} }) => {
|
|
9143
9143
|
const { accounts: i } = be(), { recurring: a } = A(), { isCopyLoaded: o, isInitialized: r, selectedAccountGuids: s, setSelectedAccounts: c } = ce(), { isDataLoaded: l, loadRepeatingTransactions: u, setDateRange: _ } = rt(), { setFilter: h } = Le(), { onEvent: m } = q(), [p, f] = g.useState(!1);
|
|
9144
9144
|
return g.useEffect(() => {
|
|
9145
9145
|
c(i);
|
|
9146
9146
|
}, [i]), g.useEffect(() => {
|
|
9147
9147
|
r && (h({
|
|
9148
|
-
dateRange: { start: Ot(
|
|
9148
|
+
dateRange: { start: Ot(xe(), 90), end: mn() },
|
|
9149
9149
|
accounts: s
|
|
9150
|
-
}), _({ start:
|
|
9150
|
+
}), _({ start: Ke(/* @__PURE__ */ new Date()), end: qe(/* @__PURE__ */ new Date()) }), u().finally());
|
|
9151
9151
|
}, [r]), o ? /* @__PURE__ */ d(
|
|
9152
9152
|
bt,
|
|
9153
9153
|
{
|
|
@@ -9204,14 +9204,14 @@ const Oc = ({ transaction: e }) => {
|
|
|
9204
9204
|
}
|
|
9205
9205
|
)
|
|
9206
9206
|
] });
|
|
9207
|
-
}),
|
|
9207
|
+
}), g2 = x(
|
|
9208
9208
|
({ onPrimaryCtaClick: e, sx: n }) => {
|
|
9209
9209
|
const { accounts: i } = be(), { recurring: a } = A(), { setFilter: o } = Le(), { isDataLoaded: r, loadRepeatingTransactions: s } = rt(), { isCopyLoaded: c, isInitialized: l, setSelectedAccounts: u, selectedAccountGuids: _ } = ce();
|
|
9210
9210
|
return g.useEffect(() => {
|
|
9211
9211
|
l && u(i);
|
|
9212
9212
|
}, [l]), g.useEffect(() => {
|
|
9213
9213
|
_.length > 0 && (o({
|
|
9214
|
-
dateRange: { start: Ot(
|
|
9214
|
+
dateRange: { start: Ot(xe(), 90), end: mn() },
|
|
9215
9215
|
accounts: _
|
|
9216
9216
|
}), s().finally());
|
|
9217
9217
|
}, [_]), !c || !l ? /* @__PURE__ */ t(de, {}) : /* @__PURE__ */ t(
|
|
@@ -9305,7 +9305,7 @@ const Oc = ({ transaction: e }) => {
|
|
|
9305
9305
|
/* @__PURE__ */ t(X, { color: "text.secondary", variant: "subtitle2", children: e.zero_state_content_description })
|
|
9306
9306
|
] })
|
|
9307
9307
|
] });
|
|
9308
|
-
}),
|
|
9308
|
+
}), m2 = x(
|
|
9309
9309
|
({ onCTAClick: e }) => {
|
|
9310
9310
|
const [n, i] = g.useState(!1), { onEvent: a } = q(), o = Ee(), { accounts: r } = be(), [s, { width: c }] = ii(), { isCopyLoaded: l, isInitialized: u, selectedAccountGuids: _, setSelectedAccounts: h } = ce(), {
|
|
9311
9311
|
loadRepeatingTransactions: m,
|
|
@@ -9322,22 +9322,22 @@ const Oc = ({ transaction: e }) => {
|
|
|
9322
9322
|
h(r);
|
|
9323
9323
|
}, [r]), g.useEffect(() => {
|
|
9324
9324
|
u && (N({
|
|
9325
|
-
dateRange: { start: Ot(
|
|
9325
|
+
dateRange: { start: Ot(xe(), 90), end: mn() },
|
|
9326
9326
|
accounts: _
|
|
9327
|
-
}), I({ start:
|
|
9327
|
+
}), I({ start: Ke(/* @__PURE__ */ new Date()), end: qe(/* @__PURE__ */ new Date()) }), m().finally(), i(!0));
|
|
9328
9328
|
}, [u]), g.useEffect(() => {
|
|
9329
9329
|
n && a(F.RECURRING_TRANSACTIONS_LOAD_WIDGET, {
|
|
9330
9330
|
state: p.length > 0 ? "default" : "zeroState"
|
|
9331
9331
|
});
|
|
9332
9332
|
}, [n]);
|
|
9333
9333
|
const k = c <= 288, G = c >= 450, L = g.useMemo(() => {
|
|
9334
|
-
const
|
|
9334
|
+
const ge = [
|
|
9335
9335
|
{ color: o.palette.success.main, percentage: `${y / f}` }
|
|
9336
9336
|
];
|
|
9337
|
-
return S &&
|
|
9337
|
+
return S && ge.push({
|
|
9338
9338
|
color: o.palette.error.main,
|
|
9339
9339
|
percentage: `${S / f}`
|
|
9340
|
-
}),
|
|
9340
|
+
}), ge;
|
|
9341
9341
|
}, [
|
|
9342
9342
|
y,
|
|
9343
9343
|
f,
|
|
@@ -9350,14 +9350,14 @@ const Oc = ({ transaction: e }) => {
|
|
|
9350
9350
|
), e();
|
|
9351
9351
|
};
|
|
9352
9352
|
if (!l || !n || !w) return /* @__PURE__ */ t(de, { height: 100 });
|
|
9353
|
-
const
|
|
9353
|
+
const ne = 32, re = p.length > 0, fe = () => re ? k ? /* @__PURE__ */ t(
|
|
9354
9354
|
Cm,
|
|
9355
9355
|
{
|
|
9356
|
-
logoSize:
|
|
9356
|
+
logoSize: ne,
|
|
9357
9357
|
maxLogos: 3,
|
|
9358
9358
|
upcomingRecurrences: p.slice(0, 3)
|
|
9359
9359
|
}
|
|
9360
|
-
) : /* @__PURE__ */ t(fm, { maxLogos: 3, upcomingRecurrences: p.slice(0, 3) }) : /* @__PURE__ */ t(b, { sx: { width: k ? 64 : 104 } }),
|
|
9360
|
+
) : /* @__PURE__ */ t(fm, { maxLogos: 3, upcomingRecurrences: p.slice(0, 3) }) : /* @__PURE__ */ t(b, { sx: { width: k ? 64 : 104 } }), Te = [
|
|
9361
9361
|
{
|
|
9362
9362
|
amount: y,
|
|
9363
9363
|
bgColor: "success.main",
|
|
@@ -9440,16 +9440,16 @@ const Oc = ({ transaction: e }) => {
|
|
|
9440
9440
|
gap: 16,
|
|
9441
9441
|
mt: 4
|
|
9442
9442
|
},
|
|
9443
|
-
children:
|
|
9443
|
+
children: Te.map((ge, he) => /* @__PURE__ */ t(
|
|
9444
9444
|
bm,
|
|
9445
9445
|
{
|
|
9446
|
-
amount:
|
|
9447
|
-
bgcolor:
|
|
9446
|
+
amount: ge.amount,
|
|
9447
|
+
bgcolor: ge.bgColor,
|
|
9448
9448
|
isLargeScreen: G,
|
|
9449
9449
|
isSmallScreen: k,
|
|
9450
|
-
label:
|
|
9450
|
+
label: ge.label
|
|
9451
9451
|
},
|
|
9452
|
-
`recurrence-legend-${
|
|
9452
|
+
`recurrence-legend-${he}`
|
|
9453
9453
|
))
|
|
9454
9454
|
}
|
|
9455
9455
|
)
|
|
@@ -9479,7 +9479,7 @@ class Sm {
|
|
|
9479
9479
|
transactions = [];
|
|
9480
9480
|
repeatingTransactions = [];
|
|
9481
9481
|
selectedDay;
|
|
9482
|
-
dateRange = { start:
|
|
9482
|
+
dateRange = { start: Ke(xe()), end: qe(xe()) };
|
|
9483
9483
|
isDataLoaded = !1;
|
|
9484
9484
|
constructor(n) {
|
|
9485
9485
|
this.globalStore = n, this.api = new zr(n.endpoint, n.sessionToken), Pe(this);
|
|
@@ -9505,7 +9505,7 @@ class Sm {
|
|
|
9505
9505
|
*/
|
|
9506
9506
|
get upcomingRecurrences() {
|
|
9507
9507
|
return this.recurrences.filter(
|
|
9508
|
-
(n) => sn(n.expectedDate, Ot(
|
|
9508
|
+
(n) => sn(n.expectedDate, Ot(xe(), 3)) && nt(n.expectedDate, this.dateRange.end) && n.status === et.Upcoming
|
|
9509
9509
|
);
|
|
9510
9510
|
}
|
|
9511
9511
|
/**
|
|
@@ -9541,7 +9541,7 @@ class Sm {
|
|
|
9541
9541
|
);
|
|
9542
9542
|
}
|
|
9543
9543
|
get nextIncomeRecurrence() {
|
|
9544
|
-
return this.upcomingIncome.find((n) => sn(n.expectedDate,
|
|
9544
|
+
return this.upcomingIncome.find((n) => sn(n.expectedDate, xe()));
|
|
9545
9545
|
}
|
|
9546
9546
|
/**
|
|
9547
9547
|
* Returns the expense recurrences for the current month.
|
|
@@ -9893,7 +9893,7 @@ const Em = {
|
|
|
9893
9893
|
{
|
|
9894
9894
|
sx: { backgroundColor: "background.paper", color: e.is_closed ? "grey.700" : "" },
|
|
9895
9895
|
...i,
|
|
9896
|
-
children: n ? /* @__PURE__ */ t(
|
|
9896
|
+
children: n ? /* @__PURE__ */ t(me, { alignItems: "flex-start", onClick: n, sx: { px: 24 }, children: h }) : h
|
|
9897
9897
|
}
|
|
9898
9898
|
);
|
|
9899
9899
|
}, Bi = x(Dm), Nm = ({ remaining: e }) => /* @__PURE__ */ t(
|
|
@@ -10089,9 +10089,9 @@ const Rm = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
|
10089
10089
|
}
|
|
10090
10090
|
], l = g.useMemo(() => s.map((u) => {
|
|
10091
10091
|
const _ = a.filter(
|
|
10092
|
-
da(u, { start:
|
|
10092
|
+
da(u, { start: xe(), end: Fn(xe(), 30) })
|
|
10093
10093
|
).reduce((p, f) => p + f.amount, 0), h = o.filter(
|
|
10094
|
-
da(u, { start:
|
|
10094
|
+
da(u, { start: xe(), end: Fn(xe(), 30) })
|
|
10095
10095
|
).reduce((p, f) => p + f.amount, 0), m = (u.balance || 0) + h - _;
|
|
10096
10096
|
return {
|
|
10097
10097
|
account: u,
|
|
@@ -10511,37 +10511,37 @@ const Rm = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
|
10511
10511
|
transform: rotate(360deg);
|
|
10512
10512
|
}
|
|
10513
10513
|
`, zm = () => {
|
|
10514
|
-
const { addRepeatingTransaction: e, repeatingTransactions: n } = rt(), { cashflow: i, common: a } = A(), { completeOnboarding: o } = wo(), { isDirty: r } = Ei(), { isMobile: s } = Ce(), { isCopyLoaded: c, setDisplayedDate: l } = ce(), { filter: u, setFilter: _, transactions: h } = Le(), m = Ee(), [p, f] = xt(!0), [S, y] = g.useState(Se.EveryMonth), [E, I] = g.useState(1), [v, w] = g.useState(15), [N, R] = xt(!1), [M, k] = xt(1), [G, L] = xt([]), [W, K] = xt(""),
|
|
10515
|
-
() => h.find((
|
|
10514
|
+
const { addRepeatingTransaction: e, repeatingTransactions: n } = rt(), { cashflow: i, common: a } = A(), { completeOnboarding: o } = wo(), { isDirty: r } = Ei(), { isMobile: s } = Ce(), { isCopyLoaded: c, setDisplayedDate: l } = ce(), { filter: u, setFilter: _, transactions: h } = Le(), m = Ee(), [p, f] = xt(!0), [S, y] = g.useState(Se.EveryMonth), [E, I] = g.useState(1), [v, w] = g.useState(15), [N, R] = xt(!1), [M, k] = xt(1), [G, L] = xt([]), [W, K] = xt(""), ne = g.useMemo(
|
|
10515
|
+
() => h.find((ge) => ge.guid === W),
|
|
10516
10516
|
[W, h]
|
|
10517
|
-
),
|
|
10518
|
-
(
|
|
10517
|
+
), re = !!n.filter(
|
|
10518
|
+
(ge) => ge.repeating_transaction_type === cn.Income
|
|
10519
10519
|
).length, fe = async () => {
|
|
10520
10520
|
k(2), l(
|
|
10521
10521
|
// Beginning of the month, 90 days before today
|
|
10522
|
-
|
|
10523
|
-
|
|
10522
|
+
Ke(Ot(xe(), 90)),
|
|
10523
|
+
xe()
|
|
10524
10524
|
), _({ ...u, custom: Gi }), k(3);
|
|
10525
|
-
},
|
|
10525
|
+
}, Te = async () => {
|
|
10526
10526
|
if (!(G.length < 1)) {
|
|
10527
10527
|
R(!0);
|
|
10528
|
-
for (let
|
|
10529
|
-
const
|
|
10530
|
-
account_guid:
|
|
10531
|
-
amount:
|
|
10532
|
-
merchant_guid:
|
|
10533
|
-
description:
|
|
10528
|
+
for (let ge = 0; ge < G.length; ge++) {
|
|
10529
|
+
const he = G[ge], Xe = no(S, Ue(he.date)), V = {
|
|
10530
|
+
account_guid: he.account_guid,
|
|
10531
|
+
amount: he.amount,
|
|
10532
|
+
merchant_guid: he.merchant_guid,
|
|
10533
|
+
description: he.feed_description || he.description,
|
|
10534
10534
|
predicted_occurs_on: fa(Xe, { representation: "date" }),
|
|
10535
10535
|
recurrence_day: Xe.getDay(),
|
|
10536
10536
|
recurrence_type: S,
|
|
10537
10537
|
repeating_transaction_type: cn.Income,
|
|
10538
|
-
transaction_type:
|
|
10538
|
+
transaction_type: he.transaction_type
|
|
10539
10539
|
};
|
|
10540
|
-
await e(V,
|
|
10540
|
+
await e(V, he);
|
|
10541
10541
|
}
|
|
10542
10542
|
await o();
|
|
10543
10543
|
}
|
|
10544
|
-
}, Me = !
|
|
10544
|
+
}, Me = !ne && p || !ne && G.length < 1;
|
|
10545
10545
|
return c ? /* @__PURE__ */ d(
|
|
10546
10546
|
O,
|
|
10547
10547
|
{
|
|
@@ -10583,14 +10583,14 @@ const Rm = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
|
10583
10583
|
children: [
|
|
10584
10584
|
/* @__PURE__ */ t(Jt, { pb: 12, children: i.add_income_title }),
|
|
10585
10585
|
/* @__PURE__ */ t(X, { mb: 24, children: i.add_income_description }),
|
|
10586
|
-
G.length > 0 && !
|
|
10587
|
-
/* @__PURE__ */ t(oe, { children: G.map((
|
|
10586
|
+
G.length > 0 && !ne && /* @__PURE__ */ d(Z, { children: [
|
|
10587
|
+
/* @__PURE__ */ t(oe, { children: G.map((ge, he) => /* @__PURE__ */ d(g.Fragment, { children: [
|
|
10588
10588
|
/* @__PURE__ */ t(Aa, { bgcolor: "background.paper", children: ya(
|
|
10589
|
-
Fe(
|
|
10589
|
+
Fe(ge.nextDate || ge.date)
|
|
10590
10590
|
) }),
|
|
10591
|
-
/* @__PURE__ */ t(ko, { transaction:
|
|
10592
|
-
|
|
10593
|
-
] },
|
|
10591
|
+
/* @__PURE__ */ t(ko, { transaction: ge }),
|
|
10592
|
+
he !== G.length - 1 && /* @__PURE__ */ t(P, {})
|
|
10593
|
+
] }, ge.guid)) }),
|
|
10594
10594
|
/* @__PURE__ */ d(b, { alignItems: "center", direction: "row", children: [
|
|
10595
10595
|
/* @__PURE__ */ t(P, { sx: { flexGrow: 1 } }),
|
|
10596
10596
|
/* @__PURE__ */ t(
|
|
@@ -10607,17 +10607,17 @@ const Rm = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
|
10607
10607
|
Fc,
|
|
10608
10608
|
{
|
|
10609
10609
|
bgcolor: "background.paper",
|
|
10610
|
-
onSearch: (
|
|
10610
|
+
onSearch: (ge) => _({
|
|
10611
10611
|
...u,
|
|
10612
|
-
custom: (
|
|
10612
|
+
custom: (he) => ge ? $c(he, ge) : Gi(he)
|
|
10613
10613
|
}),
|
|
10614
|
-
onSelected: (
|
|
10615
|
-
K(
|
|
10614
|
+
onSelected: (ge) => {
|
|
10615
|
+
K(ge), f(!1);
|
|
10616
10616
|
}
|
|
10617
10617
|
}
|
|
10618
10618
|
),
|
|
10619
|
-
!
|
|
10620
|
-
|
|
10619
|
+
!re && r && /* @__PURE__ */ t(X, { color: "error", mt: 16, children: i.confirm_error }),
|
|
10620
|
+
ne && /* @__PURE__ */ d(Z, { children: [
|
|
10621
10621
|
/* @__PURE__ */ t(
|
|
10622
10622
|
Wc,
|
|
10623
10623
|
{
|
|
@@ -10628,21 +10628,21 @@ const Rm = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
|
10628
10628
|
onFrequencyChange: y,
|
|
10629
10629
|
onSecondDayChange: w,
|
|
10630
10630
|
secondDay: v,
|
|
10631
|
-
transaction:
|
|
10631
|
+
transaction: ne
|
|
10632
10632
|
}
|
|
10633
10633
|
),
|
|
10634
10634
|
/* @__PURE__ */ d(b, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
|
|
10635
10635
|
/* @__PURE__ */ t(
|
|
10636
10636
|
te,
|
|
10637
10637
|
{
|
|
10638
|
-
"aria-disabled": !
|
|
10638
|
+
"aria-disabled": !ne,
|
|
10639
10639
|
onClick: () => {
|
|
10640
|
-
const
|
|
10641
|
-
|
|
10642
|
-
...
|
|
10643
|
-
nextDate: no(S, Ue(
|
|
10640
|
+
const ge = [...G];
|
|
10641
|
+
ge.push({
|
|
10642
|
+
...ne,
|
|
10643
|
+
nextDate: no(S, Ue(ne.date)),
|
|
10644
10644
|
frequency: S
|
|
10645
|
-
}), L(
|
|
10645
|
+
}), L(ge), K("");
|
|
10646
10646
|
},
|
|
10647
10647
|
variant: "contained",
|
|
10648
10648
|
children: a.confirm_button
|
|
@@ -10660,12 +10660,12 @@ const Rm = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
|
10660
10660
|
)
|
|
10661
10661
|
] })
|
|
10662
10662
|
] }),
|
|
10663
|
-
G.length > 0 && !
|
|
10663
|
+
G.length > 0 && !ne && /* @__PURE__ */ d(b, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
|
|
10664
10664
|
/* @__PURE__ */ t(
|
|
10665
10665
|
te,
|
|
10666
10666
|
{
|
|
10667
10667
|
"aria-disabled": G.length < 1 || N,
|
|
10668
|
-
onClick:
|
|
10668
|
+
onClick: Te,
|
|
10669
10669
|
startIcon: N ? /* @__PURE__ */ t(
|
|
10670
10670
|
U,
|
|
10671
10671
|
{
|
|
@@ -10704,7 +10704,7 @@ const Rm = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
|
10704
10704
|
(R) => a.includes(R.guid) && w.includes(R.guid)
|
|
10705
10705
|
);
|
|
10706
10706
|
m(N), u({
|
|
10707
|
-
dateRange: { start: Ot(
|
|
10707
|
+
dateRange: { start: Ot(xe(), 90), end: mn() },
|
|
10708
10708
|
accounts: N.map((R) => R.guid)
|
|
10709
10709
|
});
|
|
10710
10710
|
}, [l, i]), !y || !E ? /* @__PURE__ */ t(de, {}) : _?.has_completed_cash_flow_onboarding ? /* @__PURE__ */ d(
|
|
@@ -10758,8 +10758,8 @@ const Rm = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
|
10758
10758
|
children: /* @__PURE__ */ t(Ym, {})
|
|
10759
10759
|
}
|
|
10760
10760
|
);
|
|
10761
|
-
},
|
|
10762
|
-
class
|
|
10761
|
+
}, p2 = x(jm);
|
|
10762
|
+
class f2 {
|
|
10763
10763
|
fetchInstance;
|
|
10764
10764
|
constructor(n, i) {
|
|
10765
10765
|
this.fetchInstance = new _t(n, i);
|
|
@@ -10780,7 +10780,7 @@ class fT {
|
|
|
10780
10780
|
}
|
|
10781
10781
|
let Xm = class {
|
|
10782
10782
|
// Cashflow is hard-coded to display 30 days starting from today
|
|
10783
|
-
dateRange = { start:
|
|
10783
|
+
dateRange = { start: xe(), end: Fn(xe(), 30) };
|
|
10784
10784
|
isDirty = !1;
|
|
10785
10785
|
nextIncome = void 0;
|
|
10786
10786
|
upcomingExpenses = [];
|
|
@@ -10790,13 +10790,13 @@ let Xm = class {
|
|
|
10790
10790
|
}
|
|
10791
10791
|
// Returns the number of days until the next income activity or 0 if there is no income activity
|
|
10792
10792
|
get daysUntilNextIncome() {
|
|
10793
|
-
return this.nextIncome ? Math.abs(Ud(
|
|
10793
|
+
return this.nextIncome ? Math.abs(Ud(xe(), this.nextIncome.expectedDate)) : 0;
|
|
10794
10794
|
}
|
|
10795
10795
|
// Returns the expenses (Activities) until the next income activity or the end of the month
|
|
10796
10796
|
// if there is no income activity
|
|
10797
10797
|
get expensesTilNextIncome() {
|
|
10798
10798
|
return this.upcomingExpenses.filter(
|
|
10799
|
-
(n) => nt(n.expectedDate, this.nextIncome?.expectedDate ||
|
|
10799
|
+
(n) => nt(n.expectedDate, this.nextIncome?.expectedDate || qe(/* @__PURE__ */ new Date()))
|
|
10800
10800
|
);
|
|
10801
10801
|
}
|
|
10802
10802
|
setNextIncome = (n) => {
|
|
@@ -11297,7 +11297,7 @@ const Sn = () => {
|
|
|
11297
11297
|
return isNaN(i) ? 0 : i;
|
|
11298
11298
|
}, Vo = (e, n) => {
|
|
11299
11299
|
const i = [];
|
|
11300
|
-
let a =
|
|
11300
|
+
let a = Ke(n?.start ?? Ht(/* @__PURE__ */ new Date(), 5));
|
|
11301
11301
|
const o = n?.end ?? /* @__PURE__ */ new Date();
|
|
11302
11302
|
for (; nt(a, o); )
|
|
11303
11303
|
i.push({
|
|
@@ -11318,8 +11318,8 @@ const Sn = () => {
|
|
|
11318
11318
|
const n = [], i = e.filter(
|
|
11319
11319
|
(r) => r.top_level_category_guid !== D.INCOME && r.top_level_category_guid !== D.TRANSFER && r.total > 0
|
|
11320
11320
|
);
|
|
11321
|
-
let a =
|
|
11322
|
-
const o =
|
|
11321
|
+
let a = Ke(Ht(/* @__PURE__ */ new Date(), 5));
|
|
11322
|
+
const o = qe(/* @__PURE__ */ new Date());
|
|
11323
11323
|
for (; nt(a, o); )
|
|
11324
11324
|
n.push({
|
|
11325
11325
|
x: ue(a, ae.MONTH_SHORT),
|
|
@@ -11344,7 +11344,7 @@ const Sn = () => {
|
|
|
11344
11344
|
}
|
|
11345
11345
|
return c;
|
|
11346
11346
|
}, lp = () => {
|
|
11347
|
-
const e =
|
|
11347
|
+
const e = ze(), { selectedAccount: n } = Vt(), { monthlyCategoryTotals: i } = $e(), { trends: a } = A(), o = [e.palette.chart?.chart1, e.palette.chart?.chart2], r = sp(i, n.account_type), s = cp(r, n.account_type, a), c = [_e.LOAN, _e.MORTGAGE].includes(n.account_type);
|
|
11348
11348
|
return /* @__PURE__ */ t("div", { "data-testid": "TrendsChart", children: /* @__PURE__ */ t(
|
|
11349
11349
|
ni,
|
|
11350
11350
|
{
|
|
@@ -11378,7 +11378,7 @@ const Sn = () => {
|
|
|
11378
11378
|
_n,
|
|
11379
11379
|
{
|
|
11380
11380
|
sx: { pb: 0 },
|
|
11381
|
-
title: /* @__PURE__ */ t(
|
|
11381
|
+
title: /* @__PURE__ */ t(Qe, { sx: { pb: 4 }, children: ue(/* @__PURE__ */ new Date(), ae.MONTH_LONG) })
|
|
11382
11382
|
}
|
|
11383
11383
|
),
|
|
11384
11384
|
/* @__PURE__ */ t(Pt, { sx: { p: 0 }, children: /* @__PURE__ */ t(dp, {}) })
|
|
@@ -11436,7 +11436,7 @@ const Zc = ({
|
|
|
11436
11436
|
onClickArea: r,
|
|
11437
11437
|
onHoverArea: s
|
|
11438
11438
|
}) => {
|
|
11439
|
-
const c =
|
|
11439
|
+
const c = ze(), { onEvent: l } = q(), u = a.filter((w) => !w.is_impossible), _ = [
|
|
11440
11440
|
...new Set(
|
|
11441
11441
|
u.flatMap((w) => w.dataset.map((N) => new Date(N.x).getTime()))
|
|
11442
11442
|
)
|
|
@@ -11561,7 +11561,7 @@ const Zc = ({
|
|
|
11561
11561
|
}
|
|
11562
11562
|
},
|
|
11563
11563
|
children: [
|
|
11564
|
-
/* @__PURE__ */ t(_n, { sx: { pb: 0 }, title: /* @__PURE__ */ t(
|
|
11564
|
+
/* @__PURE__ */ t(_n, { sx: { pb: 0 }, title: /* @__PURE__ */ t(Qe, { sx: { pb: 4 }, children: n.details_chart_title }) }),
|
|
11565
11565
|
/* @__PURE__ */ t(Pt, { sx: { p: 0 }, children: /* @__PURE__ */ t(Zc, { debts: [i], height: 250 }) })
|
|
11566
11566
|
]
|
|
11567
11567
|
}
|
|
@@ -12388,11 +12388,11 @@ const zt = (e) => /* @__PURE__ */ t(C, { fontWeight: 600, variant: "Small", chil
|
|
|
12388
12388
|
S && R().finally();
|
|
12389
12389
|
}, [S]);
|
|
12390
12390
|
const L = (fe) => u(fe), W = () => {
|
|
12391
|
-
const fe = w.find((Me) => Me.guid === l),
|
|
12392
|
-
fe && E(fe),
|
|
12393
|
-
}, K = () => p(F.DEBTS_CLICK_FILTER),
|
|
12391
|
+
const fe = w.find((Me) => Me.guid === l), Te = G.find((Me) => Me.guid === l);
|
|
12392
|
+
fe && E(fe), Te && v(Te), a(!0);
|
|
12393
|
+
}, K = () => p(F.DEBTS_CLICK_FILTER), ne = () => {
|
|
12394
12394
|
c(!0), p(F.DEBTS_CLICK_SNOWBALL_CTA);
|
|
12395
|
-
},
|
|
12395
|
+
}, re = () => {
|
|
12396
12396
|
r(!0), p(F.DEBTS_CLICK_PAYDOWN);
|
|
12397
12397
|
};
|
|
12398
12398
|
return !N || !f || !S ? /* @__PURE__ */ t(de, {}) : /* @__PURE__ */ d(
|
|
@@ -12401,7 +12401,7 @@ const zt = (e) => /* @__PURE__ */ t(C, { fontWeight: 600, variant: "Small", chil
|
|
|
12401
12401
|
accountOptions: w,
|
|
12402
12402
|
actions: [
|
|
12403
12403
|
/* @__PURE__ */ t($p, {}, "prioritize-debts"),
|
|
12404
|
-
/* @__PURE__ */ t(Vp, { onClick:
|
|
12404
|
+
/* @__PURE__ */ t(Vp, { onClick: re }, "extra-paydown")
|
|
12405
12405
|
],
|
|
12406
12406
|
onAccountsFilterClick: K,
|
|
12407
12407
|
onBackClick: e,
|
|
@@ -12433,7 +12433,7 @@ const zt = (e) => /* @__PURE__ */ t(C, { fontWeight: 600, variant: "Small", chil
|
|
|
12433
12433
|
Jm,
|
|
12434
12434
|
{
|
|
12435
12435
|
debts: G,
|
|
12436
|
-
onClickCta:
|
|
12436
|
+
onClickCta: ne,
|
|
12437
12437
|
sx: { mb: h ? "0px" : "64px" }
|
|
12438
12438
|
}
|
|
12439
12439
|
)
|
|
@@ -12462,7 +12462,7 @@ const zt = (e) => /* @__PURE__ */ t(C, { fontWeight: 600, variant: "Small", chil
|
|
|
12462
12462
|
]
|
|
12463
12463
|
}
|
|
12464
12464
|
);
|
|
12465
|
-
},
|
|
12465
|
+
}, b2 = x(Kp), zp = {
|
|
12466
12466
|
unnamed_label: "Unnamed Debt"
|
|
12467
12467
|
};
|
|
12468
12468
|
function Yp(e, n) {
|
|
@@ -12525,7 +12525,7 @@ const Zp = ({ list: e, onClickItem: n }) => /* @__PURE__ */ t(O, { sx: { bgcolor
|
|
|
12525
12525
|
}
|
|
12526
12526
|
},
|
|
12527
12527
|
children: e.map((i, a) => /* @__PURE__ */ d(g.Fragment, { children: [
|
|
12528
|
-
/* @__PURE__ */ t(j, { secondaryAction: /* @__PURE__ */ t(
|
|
12528
|
+
/* @__PURE__ */ t(j, { secondaryAction: /* @__PURE__ */ t(je, {}), children: /* @__PURE__ */ d(me, { onClick: () => n(i.key), children: [
|
|
12529
12529
|
/* @__PURE__ */ t(He, { children: /* @__PURE__ */ t(
|
|
12530
12530
|
Ft,
|
|
12531
12531
|
{
|
|
@@ -12658,7 +12658,7 @@ const Zp = ({ list: e, onClickItem: n }) => /* @__PURE__ */ t(O, { sx: { bgcolor
|
|
|
12658
12658
|
unitsPerSegment: h,
|
|
12659
12659
|
isFinacialStrengthGraph: m
|
|
12660
12660
|
}) => {
|
|
12661
|
-
const p =
|
|
12661
|
+
const p = ze(), f = [
|
|
12662
12662
|
{ offset: "13.62%", color: p.palette.chartMono.chartMono2 },
|
|
12663
12663
|
{ offset: "36.67%", color: p.palette.chartMono.chartMono3 },
|
|
12664
12664
|
{ offset: "59.72%", color: p.palette.chartMono.chartMono4 },
|
|
@@ -12712,7 +12712,7 @@ const Zp = ({ list: e, onClickItem: n }) => /* @__PURE__ */ t(O, { sx: { bgcolor
|
|
|
12712
12712
|
footerRightContent: _,
|
|
12713
12713
|
isFinacialStrengthGraph: h = !1
|
|
12714
12714
|
}) => {
|
|
12715
|
-
const m =
|
|
12715
|
+
const m = ze(), p = -Math.PI / 1.35, f = Math.PI / 1.35, S = f - p, y = S / (r - o), E = (n - o) * y, I = p + E + 0.02, v = i !== "SM" ? 0.1 : 0.12, w = e, N = e * (1 - v), R = w * 2.5, M = R / 2, k = R / 2, G = (N + w) / 2, L = n !== 25 && n !== 50 && n !== 75 && n !== 100 ? 0 : 0.12, [W, K] = e1(G, I, L), ne = n / 25, re = {
|
|
12716
12716
|
L: { markerSize: 12, healthScoreFontSize: 64 },
|
|
12717
12717
|
M: { markerSize: 10, healthScoreFontSize: 48 },
|
|
12718
12718
|
SM: { markerSize: 3, healthScoreFontSize: 14 }
|
|
@@ -12748,22 +12748,22 @@ const Zp = ({ list: e, onClickItem: n }) => /* @__PURE__ */ t(O, { sx: { bgcolor
|
|
|
12748
12748
|
legend: { hidden: !0 }
|
|
12749
12749
|
},
|
|
12750
12750
|
slots: {
|
|
12751
|
-
pieArc: (
|
|
12751
|
+
pieArc: (Te) => /* @__PURE__ */ t(
|
|
12752
12752
|
i1,
|
|
12753
12753
|
{
|
|
12754
|
-
arcColor:
|
|
12754
|
+
arcColor: Te.color,
|
|
12755
12755
|
arcRadius: e,
|
|
12756
12756
|
arcStartAngle: p,
|
|
12757
12757
|
centerX: M,
|
|
12758
12758
|
centerY: k,
|
|
12759
|
-
dataIndex:
|
|
12759
|
+
dataIndex: Te.dataIndex,
|
|
12760
12760
|
dialScoreData: a,
|
|
12761
12761
|
innerArcRadius: N,
|
|
12762
12762
|
isFinacialStrengthGraph: h,
|
|
12763
12763
|
outterArcRadius: w,
|
|
12764
12764
|
progressEndAngle: I,
|
|
12765
12765
|
totalAngularSpan: S,
|
|
12766
|
-
unitsPerSegment:
|
|
12766
|
+
unitsPerSegment: ne
|
|
12767
12767
|
}
|
|
12768
12768
|
)
|
|
12769
12769
|
},
|
|
@@ -12779,7 +12779,7 @@ const Zp = ({ list: e, onClickItem: n }) => /* @__PURE__ */ t(O, { sx: { bgcolor
|
|
|
12779
12779
|
cx: M + W,
|
|
12780
12780
|
cy: k + K,
|
|
12781
12781
|
fill: m.palette.common.white,
|
|
12782
|
-
r:
|
|
12782
|
+
r: re[i].markerSize,
|
|
12783
12783
|
stroke: h ? "url(#arcGradient)" : s,
|
|
12784
12784
|
strokeWidth: i !== "SM" ? 3 : 1
|
|
12785
12785
|
}
|
|
@@ -12806,7 +12806,7 @@ const Zp = ({ list: e, onClickItem: n }) => /* @__PURE__ */ t(O, { sx: { bgcolor
|
|
|
12806
12806
|
X,
|
|
12807
12807
|
{
|
|
12808
12808
|
sx: {
|
|
12809
|
-
fontSize:
|
|
12809
|
+
fontSize: re[i].healthScoreFontSize,
|
|
12810
12810
|
lineHeight: i !== "SM" ? "48px" : "100%"
|
|
12811
12811
|
},
|
|
12812
12812
|
variant: "H1",
|
|
@@ -12896,7 +12896,7 @@ const Zp = ({ list: e, onClickItem: n }) => /* @__PURE__ */ t(O, { sx: { bgcolor
|
|
|
12896
12896
|
}
|
|
12897
12897
|
);
|
|
12898
12898
|
}
|
|
12899
|
-
),
|
|
12899
|
+
), y2 = x(
|
|
12900
12900
|
({
|
|
12901
12901
|
arcRadius: e,
|
|
12902
12902
|
size: n = "L",
|
|
@@ -12905,7 +12905,7 @@ const Zp = ({ list: e, onClickItem: n }) => /* @__PURE__ */ t(O, { sx: { bgcolor
|
|
|
12905
12905
|
minValue: o = 300,
|
|
12906
12906
|
footerCenterContent: r
|
|
12907
12907
|
}) => {
|
|
12908
|
-
const c =
|
|
12908
|
+
const c = ze().palette.mode === "dark", l = [
|
|
12909
12909
|
{
|
|
12910
12910
|
id: 1,
|
|
12911
12911
|
label: "Poor",
|
|
@@ -13080,7 +13080,7 @@ const Na = ({
|
|
|
13080
13080
|
},
|
|
13081
13081
|
children: [
|
|
13082
13082
|
n && /* @__PURE__ */ t(co, { sx: { height: 20, width: 20 } }),
|
|
13083
|
-
/* @__PURE__ */ t(
|
|
13083
|
+
/* @__PURE__ */ t(Qe, { className: "connect-more-accounts-title", sx: { ...e && { fontSize: 15 } }, children: a || u.connect_more_accounts_title })
|
|
13084
13084
|
]
|
|
13085
13085
|
}
|
|
13086
13086
|
),
|
|
@@ -13096,7 +13096,7 @@ const Na = ({
|
|
|
13096
13096
|
/* @__PURE__ */ t(
|
|
13097
13097
|
te,
|
|
13098
13098
|
{
|
|
13099
|
-
endIcon: /* @__PURE__ */ t(
|
|
13099
|
+
endIcon: /* @__PURE__ */ t(je, {}),
|
|
13100
13100
|
onClick: () => c(!0),
|
|
13101
13101
|
size: "small",
|
|
13102
13102
|
sx: { p: 0, mt: 8, "&:hover": { backgroundColor: "transparent" } },
|
|
@@ -13115,7 +13115,7 @@ const Na = ({
|
|
|
13115
13115
|
}
|
|
13116
13116
|
);
|
|
13117
13117
|
}, r1 = x(() => {
|
|
13118
|
-
const e =
|
|
13118
|
+
const e = ze(), [n, { width: i }] = ii(), { finstrong: a } = A(), { isCopyLoaded: o, isInitialized: r } = ce(), { healthScore: s, healthScoreChange: c } = bi(), l = e.palette.mode === "dark", u = jo(s?.health_score, a);
|
|
13119
13119
|
return !o || !r ? /* @__PURE__ */ t(de, {}) : /* @__PURE__ */ d(yt, { ref: n, sx: { p: 16 }, children: [
|
|
13120
13120
|
/* @__PURE__ */ t(
|
|
13121
13121
|
_n,
|
|
@@ -13123,7 +13123,7 @@ const Na = ({
|
|
|
13123
13123
|
action: /* @__PURE__ */ t(
|
|
13124
13124
|
te,
|
|
13125
13125
|
{
|
|
13126
|
-
endIcon: /* @__PURE__ */ t(
|
|
13126
|
+
endIcon: /* @__PURE__ */ t(je, {}),
|
|
13127
13127
|
sx: {
|
|
13128
13128
|
fontSize: 13,
|
|
13129
13129
|
lineHeight: "16px",
|
|
@@ -13134,7 +13134,7 @@ const Na = ({
|
|
|
13134
13134
|
children: a.financial_strength_header_action
|
|
13135
13135
|
}
|
|
13136
13136
|
),
|
|
13137
|
-
subheader: /* @__PURE__ */ t(
|
|
13137
|
+
subheader: /* @__PURE__ */ t(Qe, { color: "text.primary", children: a.financial_strength_header }),
|
|
13138
13138
|
sx: {
|
|
13139
13139
|
p: 0,
|
|
13140
13140
|
"& .MuiCardHeader-content": {
|
|
@@ -13211,7 +13211,7 @@ const Na = ({
|
|
|
13211
13211
|
title: i
|
|
13212
13212
|
}) => {
|
|
13213
13213
|
let a;
|
|
13214
|
-
const { refreshAccounts: o } = be(), { loadWidget: r } = Cc(), { connect: s } = A(), c =
|
|
13214
|
+
const { refreshAccounts: o } = be(), { loadWidget: r } = Cc(), { connect: s } = A(), c = ze(), [l, u] = g.useState(!1), [_, h] = g.useState(!1);
|
|
13215
13215
|
return g.useEffect(() => (n ? (u(!0), r({ widget: "connections_widget", mode: c.palette.mode }).then((m) => {
|
|
13216
13216
|
a = new Bd({
|
|
13217
13217
|
container: `#${Dr}`,
|
|
@@ -13284,7 +13284,7 @@ const Na = ({
|
|
|
13284
13284
|
}
|
|
13285
13285
|
);
|
|
13286
13286
|
}, l1 = x(c1), d1 = ({ isOpen: e, onClose: n }) => {
|
|
13287
|
-
const { finstrong: i } = A(), a =
|
|
13287
|
+
const { finstrong: i } = A(), a = ze(), { updateUser: o, user: r } = Ct(), [s, c] = g.useState(r.birthday), l = (_) => {
|
|
13288
13288
|
c(Math.floor(new Date(_).getTime() / 1e3));
|
|
13289
13289
|
};
|
|
13290
13290
|
return /* @__PURE__ */ t(
|
|
@@ -13395,7 +13395,7 @@ const Na = ({
|
|
|
13395
13395
|
return /* @__PURE__ */ d(le, { isOpen: e, onClose: n, title: s.financial_profile, children: [
|
|
13396
13396
|
/* @__PURE__ */ d(b, { sx: { gap: 20, p: 24 }, children: [
|
|
13397
13397
|
/* @__PURE__ */ d(b, { sx: { gap: 8 }, children: [
|
|
13398
|
-
/* @__PURE__ */ t(
|
|
13398
|
+
/* @__PURE__ */ t(Qe, { children: s.your_financial_profile }),
|
|
13399
13399
|
/* @__PURE__ */ t(X, { children: s.financial_profile_description })
|
|
13400
13400
|
] }),
|
|
13401
13401
|
/* @__PURE__ */ t(
|
|
@@ -13456,7 +13456,7 @@ const Na = ({
|
|
|
13456
13456
|
poor: 110,
|
|
13457
13457
|
good: 100
|
|
13458
13458
|
}
|
|
13459
|
-
},
|
|
13459
|
+
}, Ye = {
|
|
13460
13460
|
GOOD: "Good",
|
|
13461
13461
|
FAIR: "Fair",
|
|
13462
13462
|
OFF_TRACK: "Off Track",
|
|
@@ -13464,14 +13464,14 @@ const Na = ({
|
|
|
13464
13464
|
}, _i = ({
|
|
13465
13465
|
title: e,
|
|
13466
13466
|
description: n,
|
|
13467
|
-
cardState: i =
|
|
13467
|
+
cardState: i = Ye.MISSING,
|
|
13468
13468
|
stateTitle: a
|
|
13469
13469
|
}) => {
|
|
13470
13470
|
const o = {
|
|
13471
|
-
[
|
|
13472
|
-
[
|
|
13473
|
-
[
|
|
13474
|
-
[
|
|
13471
|
+
[Ye.GOOD]: { backgroundColor: "success.lighter", color: "success.main" },
|
|
13472
|
+
[Ye.FAIR]: { backgroundColor: "warning.lighter", color: "warning.main" },
|
|
13473
|
+
[Ye.OFF_TRACK]: { backgroundColor: "error.lighter", color: "error.main" },
|
|
13474
|
+
[Ye.MISSING]: { backgroundColor: "divider", color: "text.secondary" }
|
|
13475
13475
|
}[i];
|
|
13476
13476
|
return /* @__PURE__ */ d(
|
|
13477
13477
|
b,
|
|
@@ -13513,16 +13513,16 @@ const Na = ({
|
|
|
13513
13513
|
}, m1 = () => {
|
|
13514
13514
|
const { healthScore: e } = bi(), { finstrong: n } = A(), { key_indicators_spend: i } = n, a = (c) => {
|
|
13515
13515
|
const { good: l, poor: u } = Pi.spendToIncomeRatio;
|
|
13516
|
-
let _ =
|
|
13517
|
-
return c !== null && (c < l ? (_ =
|
|
13516
|
+
let _ = Ye.MISSING, h = i.ratio_missing_description, m = n.key_indicators_missing;
|
|
13517
|
+
return c !== null && (c < l ? (_ = Ye.GOOD, h = T(i.ratio_good_description, c), m = n.key_indicators_good) : c >= l && c < u ? (_ = Ye.FAIR, h = T(i.ratio_fair_description, c), m = n.key_indicators_fair) : c >= u && (_ = Ye.OFF_TRACK, h = T(i.ratio_off_track_description, c), m = n.key_indicators_off_track)), {
|
|
13518
13518
|
cardState: _,
|
|
13519
13519
|
description: h,
|
|
13520
13520
|
title: i.ratio_card_title,
|
|
13521
13521
|
stateTitle: m
|
|
13522
13522
|
};
|
|
13523
13523
|
}, o = (c) => {
|
|
13524
|
-
let l =
|
|
13525
|
-
return c !== null && (c === 0 ? (l =
|
|
13524
|
+
let l = Ye.MISSING, u = i.count_missing_description, _ = n.key_indicators_missing;
|
|
13525
|
+
return c !== null && (c === 0 ? (l = Ye.GOOD, u = i.count_good_description, _ = n.key_indicators_good) : c >= 1 && (l = Ye.OFF_TRACK, u = i.count_off_track_description, _ = n.key_indicators_off_track)), {
|
|
13526
13526
|
cardState: l,
|
|
13527
13527
|
description: u,
|
|
13528
13528
|
title: i.count_card_title,
|
|
@@ -13560,8 +13560,8 @@ const Na = ({
|
|
|
13560
13560
|
}, p1 = () => {
|
|
13561
13561
|
const { healthScore: e } = bi(), { finstrong: n } = A(), { key_indicators_save: i } = n, a = (c) => {
|
|
13562
13562
|
const { good: l, poor: u } = Pi.daysOfCashOnHand;
|
|
13563
|
-
let _ =
|
|
13564
|
-
return c !== null && (c >= l ? (_ =
|
|
13563
|
+
let _ = Ye.MISSING, h = i.days_of_cash_missing_description, m = n.key_indicators_missing;
|
|
13564
|
+
return c !== null && (c >= l ? (_ = Ye.GOOD, h = T(i.days_of_cash_good_description, c), m = n.key_indicators_good) : c < l && c >= u ? (_ = Ye.FAIR, h = T(i.days_of_cash_fair_description, c), m = n.key_indicators_fair) : c < u && (_ = Ye.OFF_TRACK, h = T(i.days_of_cash_off_track_description, c), m = n.key_indicators_off_track)), {
|
|
13565
13565
|
cardState: _,
|
|
13566
13566
|
description: h,
|
|
13567
13567
|
title: i.days_of_cash_title,
|
|
@@ -13569,11 +13569,11 @@ const Na = ({
|
|
|
13569
13569
|
};
|
|
13570
13570
|
}, o = (c) => {
|
|
13571
13571
|
const { good: l, poor: u } = Pi.emergencySavings;
|
|
13572
|
-
let _ =
|
|
13573
|
-
return c !== null && (c >= l ? (_ =
|
|
13572
|
+
let _ = Ye.MISSING, h = i.emergency_savings_missing_description, m = n.key_indicators_missing;
|
|
13573
|
+
return c !== null && (c >= l ? (_ = Ye.GOOD, h = i.emergency_savings_good_description, m = n.key_indicators_good) : c < l && c >= u ? (_ = Ye.FAIR, h = T(
|
|
13574
13574
|
i.emergency_savings_fair_description,
|
|
13575
13575
|
H(c, "0,0.00")
|
|
13576
|
-
), m = n.key_indicators_fair) : c < u && (_ =
|
|
13576
|
+
), m = n.key_indicators_fair) : c < u && (_ = Ye.OFF_TRACK, h = i.emergency_savings_off_track_description, m = n.key_indicators_off_track)), {
|
|
13577
13577
|
cardState: _,
|
|
13578
13578
|
description: h,
|
|
13579
13579
|
title: i.emergency_savings_title,
|
|
@@ -13611,8 +13611,8 @@ const Na = ({
|
|
|
13611
13611
|
}, f1 = () => {
|
|
13612
13612
|
const { healthScore: e } = bi(), { finstrong: n } = A(), { key_indicators_borrow: i } = n, { user: a } = Ct(), o = (l) => {
|
|
13613
13613
|
const { good: u, poor: _ } = Pi.debtToIncomeRatio;
|
|
13614
|
-
let h =
|
|
13615
|
-
return l != null && (l <= u ? (h =
|
|
13614
|
+
let h = Ye.MISSING, m = i.manage_debit_missing_description, p = n.key_indicators_missing;
|
|
13615
|
+
return l != null && (l <= u ? (h = Ye.GOOD, m = i.manage_debit_good_description, p = n.key_indicators_good) : l > u && l <= _ ? (h = Ye.FAIR, m = T(i.manage_debit_fair_description, l), p = n.key_indicators_fair) : l > _ && (h = Ye.OFF_TRACK, m = T(
|
|
13616
13616
|
i.manage_debit_off_track_description,
|
|
13617
13617
|
l
|
|
13618
13618
|
), p = n.key_indicators_off_track)), {
|
|
@@ -13623,8 +13623,8 @@ const Na = ({
|
|
|
13623
13623
|
};
|
|
13624
13624
|
}, r = (l) => {
|
|
13625
13625
|
const { good: u, poor: _ } = Pi.creditScore;
|
|
13626
|
-
let h =
|
|
13627
|
-
return l !== null && (l >= u ? (h =
|
|
13626
|
+
let h = Ye.MISSING, m = i.credit_score_missing_description, p = n.key_indicators_missing;
|
|
13627
|
+
return l !== null && (l >= u ? (h = Ye.GOOD, m = T(i.credit_score_good_description, l), p = n.key_indicators_good) : l < u && l >= _ ? (h = Ye.FAIR, m = T(i.credit_score_fair_description, l), p = n.key_indicators_fair) : l < _ && (h = Ye.OFF_TRACK, m = T(
|
|
13628
13628
|
i.credit_score_off_track_description,
|
|
13629
13629
|
l
|
|
13630
13630
|
), p = n.key_indicators_off_track)), {
|
|
@@ -13728,7 +13728,7 @@ const Na = ({
|
|
|
13728
13728
|
const { finstrong: u } = A(), { isCopyLoaded: _ } = ce();
|
|
13729
13729
|
return _ ? /* @__PURE__ */ d(le, { isOpen: o, onClose: s, title: a || u.key_indicators, children: [
|
|
13730
13730
|
(l || i) && /* @__PURE__ */ d(b, { sx: { p: 24, pb: 0, gap: 8, backgroundColor: "background.paper" }, children: [
|
|
13731
|
-
l && /* @__PURE__ */ t(
|
|
13731
|
+
l && /* @__PURE__ */ t(Qe, { children: l }),
|
|
13732
13732
|
i && /* @__PURE__ */ t(X, { children: i })
|
|
13733
13733
|
] }),
|
|
13734
13734
|
c && /* @__PURE__ */ t(
|
|
@@ -13847,7 +13847,7 @@ const Na = ({
|
|
|
13847
13847
|
) })
|
|
13848
13848
|
] }) });
|
|
13849
13849
|
}, E1 = x(S1), T1 = ({ isOpen: e, onClose: n }) => {
|
|
13850
|
-
const i =
|
|
13850
|
+
const i = ze(), { finstrong: a } = A(), { isCopyLoaded: o, isInitialized: r } = ce(), { healthScore: s, healthScoreChangeReports: c, augmentedChartData: l } = bi();
|
|
13851
13851
|
if (!o || !r) return /* @__PURE__ */ t(de, {});
|
|
13852
13852
|
const u = jo(s.health_score || 0, a), _ = c.slice().reverse();
|
|
13853
13853
|
return /* @__PURE__ */ t(
|
|
@@ -13903,13 +13903,13 @@ const Na = ({
|
|
|
13903
13903
|
return i ? /* @__PURE__ */ d(b, { sx: { alignItems: "center", gap: 12, pt: 12, pb: 32 }, children: [
|
|
13904
13904
|
/* @__PURE__ */ t(Ks, { size: 48 }),
|
|
13905
13905
|
/* @__PURE__ */ d(b, { sx: { alignItems: "center", gap: 4, textAlign: "center" }, children: [
|
|
13906
|
-
/* @__PURE__ */ t(
|
|
13906
|
+
/* @__PURE__ */ t(Qe, { children: n.missing_data_title }),
|
|
13907
13907
|
/* @__PURE__ */ t(X, { sx: { width: { sm: 348 } }, variant: "subtitle1", children: n.missing_data_description })
|
|
13908
13908
|
] }),
|
|
13909
13909
|
/* @__PURE__ */ t(O, { children: /* @__PURE__ */ t(
|
|
13910
13910
|
te,
|
|
13911
13911
|
{
|
|
13912
|
-
endIcon: /* @__PURE__ */ t(
|
|
13912
|
+
endIcon: /* @__PURE__ */ t(je, {}),
|
|
13913
13913
|
onClick: e,
|
|
13914
13914
|
size: "small",
|
|
13915
13915
|
sx: {
|
|
@@ -13924,7 +13924,7 @@ const Na = ({
|
|
|
13924
13924
|
) })
|
|
13925
13925
|
] }) : /* @__PURE__ */ t(de, {});
|
|
13926
13926
|
}, I1 = x(x1), v1 = ({ onBackClick: e, sx: n }) => {
|
|
13927
|
-
const i =
|
|
13927
|
+
const i = ze(), { visibleAccounts: a } = be(), { dateRange: o, isDataLoaded: r, loadBudgetData: s, setTheme: c } = ht(), { reloadCategoryTotals: l } = $e(), { augmentedChartData: u, calculateHealthScore: _, healthScore: h, loadAugmentedChartData: m } = bi(), { finstrong: p, connect: f } = A(), { isCopyLoaded: S, isInitialized: y, selectedAccounts: E, setSelectedAccounts: I } = ce(), { isMobile: v } = Ce(), [w, N] = g.useState(!1);
|
|
13928
13928
|
g.useEffect(() => {
|
|
13929
13929
|
c(i);
|
|
13930
13930
|
}, []), g.useEffect(() => I(a), [a]), g.useEffect(() => {
|
|
@@ -13976,11 +13976,11 @@ const Na = ({
|
|
|
13976
13976
|
] }),
|
|
13977
13977
|
/* @__PURE__ */ t(b, { sx: { maxWidth: 848, minWidth: 288, width: { md: 720 } }, children: /* @__PURE__ */ d(yt, { sx: { background: i.palette.background.paper, p: 16 }, children: [
|
|
13978
13978
|
/* @__PURE__ */ d(b, { direction: "row", sx: { alignItems: "center", justifyContent: "space-between" }, children: [
|
|
13979
|
-
/* @__PURE__ */ t(
|
|
13979
|
+
/* @__PURE__ */ t(Qe, { children: p.key_indicators }),
|
|
13980
13980
|
/* @__PURE__ */ t(
|
|
13981
13981
|
te,
|
|
13982
13982
|
{
|
|
13983
|
-
endIcon: /* @__PURE__ */ t(
|
|
13983
|
+
endIcon: /* @__PURE__ */ t(je, {}),
|
|
13984
13984
|
onClick: () => G(!0),
|
|
13985
13985
|
sx: {
|
|
13986
13986
|
fontSize: 13
|
|
@@ -14039,7 +14039,7 @@ const Na = ({
|
|
|
14039
14039
|
]
|
|
14040
14040
|
}
|
|
14041
14041
|
);
|
|
14042
|
-
},
|
|
14042
|
+
}, S2 = x(v1);
|
|
14043
14043
|
class as {
|
|
14044
14044
|
fetchInstance;
|
|
14045
14045
|
constructor(n, i) {
|
|
@@ -14275,7 +14275,7 @@ const D1 = (e, n) => {
|
|
|
14275
14275
|
await a(c), o(n.alert_goals_reordered), s(!1);
|
|
14276
14276
|
};
|
|
14277
14277
|
return /* @__PURE__ */ d(b, { children: [
|
|
14278
|
-
/* @__PURE__ */ t(j, { children: /* @__PURE__ */ t(
|
|
14278
|
+
/* @__PURE__ */ t(j, { children: /* @__PURE__ */ t(me, { onClick: () => s(!0), children: /* @__PURE__ */ t(se, { children: /* @__PURE__ */ d(
|
|
14279
14279
|
b,
|
|
14280
14280
|
{
|
|
14281
14281
|
alignItems: "center",
|
|
@@ -14284,7 +14284,7 @@ const D1 = (e, n) => {
|
|
|
14284
14284
|
justifyContent: "space-between",
|
|
14285
14285
|
children: [
|
|
14286
14286
|
/* @__PURE__ */ t(C, { color: "primary.light", variant: "Body", children: n.reorder_goals_title }),
|
|
14287
|
-
/* @__PURE__ */ t(
|
|
14287
|
+
/* @__PURE__ */ t(je, { color: "primary" })
|
|
14288
14288
|
]
|
|
14289
14289
|
}
|
|
14290
14290
|
) }) }) }),
|
|
@@ -14326,7 +14326,7 @@ const D1 = (e, n) => {
|
|
|
14326
14326
|
] });
|
|
14327
14327
|
}, L1 = ({ goal: e, index: n }) => {
|
|
14328
14328
|
const { goals: i } = A();
|
|
14329
|
-
return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(
|
|
14329
|
+
return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(me, { children: [
|
|
14330
14330
|
e.track_type !== Y.RETIREMENT_TRACK && /* @__PURE__ */ t(
|
|
14331
14331
|
He,
|
|
14332
14332
|
{
|
|
@@ -14355,7 +14355,7 @@ const D1 = (e, n) => {
|
|
|
14355
14355
|
] }) });
|
|
14356
14356
|
}, M1 = ({ goal: e }) => {
|
|
14357
14357
|
const { goals: n } = A();
|
|
14358
|
-
return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(
|
|
14358
|
+
return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(me, { children: [
|
|
14359
14359
|
/* @__PURE__ */ t(He, { sx: { alignItems: "center", display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(ma, { color: "success", filled: !0, size: 20 }) }),
|
|
14360
14360
|
/* @__PURE__ */ t(se, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ d(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
14361
14361
|
/* @__PURE__ */ d(b, { children: [
|
|
@@ -14379,7 +14379,7 @@ const D1 = (e, n) => {
|
|
|
14379
14379
|
), [c, l] = g.useState(!1);
|
|
14380
14380
|
let u = n.manage_saving_goals, _ = n.manage_saving_drawer_title, h = n.manage_saving_title, m = n.manage_saving_description;
|
|
14381
14381
|
return e === Y.DEBT_TRACK ? (u = n.manage_debt_goals, _ = n.manage_debt_drawer_title, h = n.manage_debt_title, m = n.manage_debt_description) : e === Y.RETIREMENT_TRACK && (u = n.manage_retirement_goals, _ = n.manage_retirement_drawer_title, h = n.manage_retirement_title, m = n.manage_retirement_description), /* @__PURE__ */ d(b, { children: [
|
|
14382
|
-
/* @__PURE__ */ t(te, { endIcon: /* @__PURE__ */ t(
|
|
14382
|
+
/* @__PURE__ */ t(te, { endIcon: /* @__PURE__ */ t(je, {}), onClick: () => l(!0), children: u }),
|
|
14383
14383
|
/* @__PURE__ */ t(
|
|
14384
14384
|
le,
|
|
14385
14385
|
{
|
|
@@ -14389,7 +14389,7 @@ const D1 = (e, n) => {
|
|
|
14389
14389
|
title: _,
|
|
14390
14390
|
children: /* @__PURE__ */ d(b, { children: [
|
|
14391
14391
|
/* @__PURE__ */ d(b, { m: 24, children: [
|
|
14392
|
-
/* @__PURE__ */ t(
|
|
14392
|
+
/* @__PURE__ */ t(Qe, { children: h }),
|
|
14393
14393
|
/* @__PURE__ */ t(X, { color: "text.secondary", sx: { textWrap: "wrap" }, variant: "ParagraphSmall", children: m })
|
|
14394
14394
|
] }),
|
|
14395
14395
|
/* @__PURE__ */ t(R1, { trackType: e }),
|
|
@@ -14497,7 +14497,7 @@ const D1 = (e, n) => {
|
|
|
14497
14497
|
const { goals: i } = A(), { bgcolor: a, icon: o, label: r, description: s, subTypes: c, type: l } = e, [u, _] = g.useState(!1), h = c.length > 0;
|
|
14498
14498
|
return /* @__PURE__ */ t(b, { children: /* @__PURE__ */ d(oe, { sx: { bgcolor: "background.paper" }, children: [
|
|
14499
14499
|
/* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(
|
|
14500
|
-
|
|
14500
|
+
me,
|
|
14501
14501
|
{
|
|
14502
14502
|
onClick: h ? () => _(!u) : () => n(
|
|
14503
14503
|
l === Y.RETIREMENT_TRACK ? i.retirement : "",
|
|
@@ -14507,13 +14507,13 @@ const D1 = (e, n) => {
|
|
|
14507
14507
|
children: [
|
|
14508
14508
|
/* @__PURE__ */ t(He, { children: /* @__PURE__ */ t(Ft, { sx: { bgcolor: a }, variant: "rounded", children: /* @__PURE__ */ t(ft, { name: o, sx: { color: "grey.900" } }) }) }),
|
|
14509
14509
|
/* @__PURE__ */ t(se, { primary: r, secondary: s, sx: { mr: 24 } }),
|
|
14510
|
-
!h && /* @__PURE__ */ t(
|
|
14510
|
+
!h && /* @__PURE__ */ t(je, {}),
|
|
14511
14511
|
h && (u ? /* @__PURE__ */ t(js, {}) : /* @__PURE__ */ t(ui, {}))
|
|
14512
14512
|
]
|
|
14513
14513
|
}
|
|
14514
14514
|
) }),
|
|
14515
14515
|
/* @__PURE__ */ t(P, { variant: "inset" }),
|
|
14516
|
-
h && /* @__PURE__ */ t(ei, { in: u, children: /* @__PURE__ */ t(oe, { sx: { bgcolor: "background.default" }, children: c.map((m, p) => /* @__PURE__ */ t(j, { sx: { pl: 48 }, children: /* @__PURE__ */ d(
|
|
14516
|
+
h && /* @__PURE__ */ t(ei, { in: u, children: /* @__PURE__ */ t(oe, { sx: { bgcolor: "background.default" }, children: c.map((m, p) => /* @__PURE__ */ t(j, { sx: { pl: 48 }, children: /* @__PURE__ */ d(me, { onClick: () => n(m.label, m.metaType, l), children: [
|
|
14517
14517
|
/* @__PURE__ */ t(mt, { sx: { mr: 8 }, children: /* @__PURE__ */ t(ft, { name: m.icon }) }),
|
|
14518
14518
|
/* @__PURE__ */ t(
|
|
14519
14519
|
se,
|
|
@@ -14522,7 +14522,7 @@ const D1 = (e, n) => {
|
|
|
14522
14522
|
primaryTypographyProps: { variant: "Body" }
|
|
14523
14523
|
}
|
|
14524
14524
|
),
|
|
14525
|
-
/* @__PURE__ */ t(
|
|
14525
|
+
/* @__PURE__ */ t(je, {})
|
|
14526
14526
|
] }) }, p)) }) })
|
|
14527
14527
|
] }) });
|
|
14528
14528
|
}, al = ({
|
|
@@ -14549,7 +14549,7 @@ const D1 = (e, n) => {
|
|
|
14549
14549
|
/* @__PURE__ */ d(oe, { sx: { bgcolor: "background.white" }, children: [
|
|
14550
14550
|
/* @__PURE__ */ t(P, { variant: "fullWidth" }),
|
|
14551
14551
|
e.map((_, h) => /* @__PURE__ */ d(g.Fragment, { children: [
|
|
14552
|
-
/* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(
|
|
14552
|
+
/* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(me, { onClick: () => u(_), children: [
|
|
14553
14553
|
/* @__PURE__ */ t(He, { children: /* @__PURE__ */ t(
|
|
14554
14554
|
Tt,
|
|
14555
14555
|
{
|
|
@@ -14625,7 +14625,7 @@ const D1 = (e, n) => {
|
|
|
14625
14625
|
}, ol = ({ account: e }) => {
|
|
14626
14626
|
const { accounts: n } = A(), { setSelectedAccount: i } = Vt(), [a, o] = g.useState(!1);
|
|
14627
14627
|
return /* @__PURE__ */ d(j, { sx: { bgcolor: "background.paper" }, children: [
|
|
14628
|
-
/* @__PURE__ */ d(
|
|
14628
|
+
/* @__PURE__ */ d(me, { onClick: () => {
|
|
14629
14629
|
i(e), o(!0);
|
|
14630
14630
|
}, children: [
|
|
14631
14631
|
/* @__PURE__ */ t(He, { children: /* @__PURE__ */ t(
|
|
@@ -14642,7 +14642,7 @@ const D1 = (e, n) => {
|
|
|
14642
14642
|
secondary: H(e.balance || 0, "0,0.00")
|
|
14643
14643
|
}
|
|
14644
14644
|
),
|
|
14645
|
-
/* @__PURE__ */ t(
|
|
14645
|
+
/* @__PURE__ */ t(je, {})
|
|
14646
14646
|
] }),
|
|
14647
14647
|
/* @__PURE__ */ t(le, { isOpen: a, onClose: () => o(!1), title: n.account_details, children: /* @__PURE__ */ d(b, { children: [
|
|
14648
14648
|
/* @__PURE__ */ t(Yo, {}),
|
|
@@ -14689,12 +14689,12 @@ const D1 = (e, n) => {
|
|
|
14689
14689
|
l ? s(f) : (await c(f), r(o.alert_account_changed)), _(!1);
|
|
14690
14690
|
};
|
|
14691
14691
|
return /* @__PURE__ */ d(b, { children: [
|
|
14692
|
-
l && !e.account_guid ? /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ d(
|
|
14692
|
+
l && !e.account_guid ? /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ d(me, { onClick: () => _(!0), children: [
|
|
14693
14693
|
/* @__PURE__ */ t(se, { children: /* @__PURE__ */ d(b, { alignItems: "center", color: "primary.main", direction: "row", gap: 8, children: [
|
|
14694
14694
|
/* @__PURE__ */ t(Xs, { filled: !0 }),
|
|
14695
14695
|
o.details_add_account
|
|
14696
14696
|
] }) }),
|
|
14697
|
-
/* @__PURE__ */ t(
|
|
14697
|
+
/* @__PURE__ */ t(je, { color: "primary" })
|
|
14698
14698
|
] }) }) : /* @__PURE__ */ d(b, { sx: { gap: 8, my: 24, mx: 24 }, children: [
|
|
14699
14699
|
/* @__PURE__ */ t(te, { onClick: () => _(!0), variant: "text", children: o.details_change_account }),
|
|
14700
14700
|
/* @__PURE__ */ t(
|
|
@@ -14709,7 +14709,7 @@ const D1 = (e, n) => {
|
|
|
14709
14709
|
] }),
|
|
14710
14710
|
/* @__PURE__ */ t(le, { isOpen: u, onClose: () => _(!1), title: o.details_change_account, children: /* @__PURE__ */ d(b, { children: [
|
|
14711
14711
|
/* @__PURE__ */ t(C, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: a.account_types[1] }),
|
|
14712
|
-
/* @__PURE__ */ t(oe, { sx: { bgcolor: "background.paper" }, children: n.map((m) => /* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(
|
|
14712
|
+
/* @__PURE__ */ t(oe, { sx: { bgcolor: "background.paper" }, children: n.map((m) => /* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(me, { onClick: () => h(m), children: [
|
|
14713
14713
|
/* @__PURE__ */ t(He, { children: /* @__PURE__ */ t(
|
|
14714
14714
|
Tt,
|
|
14715
14715
|
{
|
|
@@ -14724,10 +14724,10 @@ const D1 = (e, n) => {
|
|
|
14724
14724
|
secondary: H(m?.balance || 0, "0,0.00")
|
|
14725
14725
|
}
|
|
14726
14726
|
),
|
|
14727
|
-
/* @__PURE__ */ t(
|
|
14727
|
+
/* @__PURE__ */ t(je, {})
|
|
14728
14728
|
] }) }, m.guid)) }),
|
|
14729
14729
|
/* @__PURE__ */ t(C, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: a.account_types[2] }),
|
|
14730
|
-
/* @__PURE__ */ t(oe, { sx: { bgcolor: "background.paper" }, children: i.map((m) => /* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(
|
|
14730
|
+
/* @__PURE__ */ t(oe, { sx: { bgcolor: "background.paper" }, children: i.map((m) => /* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(me, { onClick: () => h(m), children: [
|
|
14731
14731
|
/* @__PURE__ */ t(He, { children: /* @__PURE__ */ t(
|
|
14732
14732
|
Tt,
|
|
14733
14733
|
{
|
|
@@ -14742,7 +14742,7 @@ const D1 = (e, n) => {
|
|
|
14742
14742
|
secondary: H(m?.balance || 0, "0,0.00")
|
|
14743
14743
|
}
|
|
14744
14744
|
),
|
|
14745
|
-
/* @__PURE__ */ t(
|
|
14745
|
+
/* @__PURE__ */ t(je, {})
|
|
14746
14746
|
] }) }, m.guid)) }),
|
|
14747
14747
|
/* @__PURE__ */ t(
|
|
14748
14748
|
Ic,
|
|
@@ -14878,12 +14878,12 @@ const D1 = (e, n) => {
|
|
|
14878
14878
|
/* @__PURE__ */ t(ol, { account: y }),
|
|
14879
14879
|
/* @__PURE__ */ t(P, {})
|
|
14880
14880
|
] }, y.guid)),
|
|
14881
|
-
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ d(
|
|
14881
|
+
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ d(me, { onClick: () => h(!0), children: [
|
|
14882
14882
|
/* @__PURE__ */ t(se, { children: /* @__PURE__ */ d(b, { alignItems: "center", color: "primary.main", direction: "row", gap: 8, children: [
|
|
14883
14883
|
/* @__PURE__ */ t(Xs, { filled: !0 }),
|
|
14884
14884
|
n.details_add_account
|
|
14885
14885
|
] }) }),
|
|
14886
|
-
/* @__PURE__ */ t(
|
|
14886
|
+
/* @__PURE__ */ t(je, { color: "primary" })
|
|
14887
14887
|
] }) }),
|
|
14888
14888
|
/* @__PURE__ */ t(
|
|
14889
14889
|
al,
|
|
@@ -14958,8 +14958,8 @@ const D1 = (e, n) => {
|
|
|
14958
14958
|
return n.filter((W) => L.some((K) => K.account_guid === W.guid));
|
|
14959
14959
|
}, [E, n, l, u]), w = g.useMemo(() => {
|
|
14960
14960
|
if (!_) return !1;
|
|
14961
|
-
const { account_guid: L, track_type: W, name: K, amount:
|
|
14962
|
-
return W === Y.SAVINGS_TRACK ? L ? !!K && !!
|
|
14961
|
+
const { account_guid: L, track_type: W, name: K, amount: ne, retirement_age: re } = _;
|
|
14962
|
+
return W === Y.SAVINGS_TRACK ? L ? !!K && !!ne : !1 : W === Y.RETIREMENT_TRACK ? v.length ? !!K && !!ne && !!re && !!f.birthday : !1 : !0;
|
|
14963
14963
|
}, [_, v, f.birthday]);
|
|
14964
14964
|
let N = a.delete_button, R = () => y(!0);
|
|
14965
14965
|
E ? (R = () => M(), N = a.save_button) : I && (R = () => G(), N = i.mark_as_complete_button);
|
|
@@ -15008,7 +15008,7 @@ const D1 = (e, n) => {
|
|
|
15008
15008
|
}
|
|
15009
15009
|
)
|
|
15010
15010
|
] });
|
|
15011
|
-
}),
|
|
15011
|
+
}), E2 = x(({ onBackClick: e, sx: n }) => {
|
|
15012
15012
|
const { onEvent: i } = q(), { isMobile: a } = Ce(), { visibleAccounts: o } = be(), { isCopyLoaded: r, isInitialized: s, setSelectedAccounts: c } = ce(), { goals: l, common: u } = A(), { alert: _, goals: h, goalsLoaded: m, loadGoals: p, monthlyCashFlowProfile: f, setAlert: S, retirmentGoals: y } = ut(), [E, I] = g.useState(0), [v, w] = g.useState(!1), N = f?.amount_allocated_for_savings_goals || 0, R = f?.amount_allocated_for_debt_goals || 0, M = f?.amount_allocated_for_retirement_goals || 0, k = r ? T(
|
|
15013
15013
|
a ? l.tab_subtitle_mobile : l.tab_subtitle,
|
|
15014
15014
|
H(N, "0,0")
|
|
@@ -15028,9 +15028,9 @@ const D1 = (e, n) => {
|
|
|
15028
15028
|
i(F.GOALS_CLICK_FILTER);
|
|
15029
15029
|
}, K = () => {
|
|
15030
15030
|
w(!0), i(F.GOALS_CLICK_ADD);
|
|
15031
|
-
},
|
|
15031
|
+
}, ne = (fe) => {
|
|
15032
15032
|
w(!1), fe === Y.SAVINGS_TRACK ? I(0) : fe === Y.DEBT_TRACK ? I(1) : fe === Y.RETIREMENT_TRACK && I(2);
|
|
15033
|
-
},
|
|
15033
|
+
}, re = g.useMemo(
|
|
15034
15034
|
() => m && (h.length === 0 || h.every(({ track_type: fe }) => !fe) && y.length === 0),
|
|
15035
15035
|
[h, m, y]
|
|
15036
15036
|
);
|
|
@@ -15054,37 +15054,37 @@ const D1 = (e, n) => {
|
|
|
15054
15054
|
/* @__PURE__ */ d(
|
|
15055
15055
|
Ut,
|
|
15056
15056
|
{
|
|
15057
|
-
onChange: (fe,
|
|
15057
|
+
onChange: (fe, Te) => I(Te),
|
|
15058
15058
|
sx: { bgcolor: "background.paper" },
|
|
15059
15059
|
textColor: "primary",
|
|
15060
|
-
value:
|
|
15060
|
+
value: re ? !1 : E,
|
|
15061
15061
|
variant: "fullWidth",
|
|
15062
15062
|
children: [
|
|
15063
15063
|
/* @__PURE__ */ t(
|
|
15064
15064
|
tt,
|
|
15065
15065
|
{
|
|
15066
|
-
disabled:
|
|
15066
|
+
disabled: re,
|
|
15067
15067
|
label: /* @__PURE__ */ t(Wa, { subtitle: k, title: l.tab_saving_title })
|
|
15068
15068
|
}
|
|
15069
15069
|
),
|
|
15070
15070
|
/* @__PURE__ */ t(
|
|
15071
15071
|
tt,
|
|
15072
15072
|
{
|
|
15073
|
-
disabled:
|
|
15073
|
+
disabled: re,
|
|
15074
15074
|
label: /* @__PURE__ */ t(Wa, { subtitle: G, title: l.tab_debt_title })
|
|
15075
15075
|
}
|
|
15076
15076
|
),
|
|
15077
15077
|
/* @__PURE__ */ t(
|
|
15078
15078
|
tt,
|
|
15079
15079
|
{
|
|
15080
|
-
disabled:
|
|
15080
|
+
disabled: re,
|
|
15081
15081
|
label: /* @__PURE__ */ t(Wa, { subtitle: L, title: l.tab_retirement_title })
|
|
15082
15082
|
}
|
|
15083
15083
|
)
|
|
15084
15084
|
]
|
|
15085
15085
|
}
|
|
15086
15086
|
),
|
|
15087
|
-
|
|
15087
|
+
re ? /* @__PURE__ */ t(
|
|
15088
15088
|
jn,
|
|
15089
15089
|
{
|
|
15090
15090
|
header: l.create_goals_header,
|
|
@@ -15105,7 +15105,7 @@ const D1 = (e, n) => {
|
|
|
15105
15105
|
E === 2 && /* @__PURE__ */ t($a, { onAddGoals: K, trackType: Y.RETIREMENT_TRACK })
|
|
15106
15106
|
] })
|
|
15107
15107
|
] }),
|
|
15108
|
-
/* @__PURE__ */ t(K1, { onClose:
|
|
15108
|
+
/* @__PURE__ */ t(K1, { onClose: ne }),
|
|
15109
15109
|
/* @__PURE__ */ t(
|
|
15110
15110
|
le,
|
|
15111
15111
|
{
|
|
@@ -15113,7 +15113,7 @@ const D1 = (e, n) => {
|
|
|
15113
15113
|
isOpen: v,
|
|
15114
15114
|
onClose: () => w(!1),
|
|
15115
15115
|
title: l.add_goal_title,
|
|
15116
|
-
children: /* @__PURE__ */ t(B1, { onClose:
|
|
15116
|
+
children: /* @__PURE__ */ t(B1, { onClose: ne })
|
|
15117
15117
|
}
|
|
15118
15118
|
),
|
|
15119
15119
|
/* @__PURE__ */ t(Wi, { onClose: () => S(""), open: !!_, children: /* @__PURE__ */ t(Mn, { onClose: () => S(""), severity: "success", variant: "filled", children: _ }) })
|
|
@@ -15348,7 +15348,7 @@ const Y1 = x(({ goal: e }) => {
|
|
|
15348
15348
|
)
|
|
15349
15349
|
]
|
|
15350
15350
|
}
|
|
15351
|
-
),
|
|
15351
|
+
), T2 = x(({ onCTAClick: e }) => {
|
|
15352
15352
|
const { visibleAccounts: n } = be(), { onEvent: i } = q(), { goals: a } = A(), { isInitialized: o, setSelectedAccounts: r, isCopyLoaded: s } = ce(), { ongoingGoalsForMicroWidget: c, loadGoals: l, goalsLoaded: u } = ut();
|
|
15353
15353
|
g.useEffect(() => {
|
|
15354
15354
|
r(n);
|
|
@@ -15976,7 +15976,7 @@ const gf = /^[ a-zA-ZÀ-ÿ0-9]+$/, mf = 50, cs = 65, pf = ({
|
|
|
15976
15976
|
sx: { transform: `translateY(${p.start}px)` },
|
|
15977
15977
|
width: "100%",
|
|
15978
15978
|
children: [
|
|
15979
|
-
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(
|
|
15979
|
+
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(me, { onClick: () => u(f.guid), children: [
|
|
15980
15980
|
/* @__PURE__ */ t(He, { children: /* @__PURE__ */ t(en, { categoryGuid: "", merchantGuid: f.guid }) }),
|
|
15981
15981
|
/* @__PURE__ */ t(se, { primary: f.name })
|
|
15982
15982
|
] }) }),
|
|
@@ -15990,7 +15990,7 @@ const gf = /^[ a-zA-ZÀ-ÿ0-9]+$/, mf = 50, cs = 65, pf = ({
|
|
|
15990
15990
|
!a.length && /* @__PURE__ */ t(b, { alignItems: "center", my: 24, children: /* @__PURE__ */ t(C, { bold: !0, color: "secondary", variant: "Small", children: r.search_zero_state }) })
|
|
15991
15991
|
] }) }) })
|
|
15992
15992
|
] }) : /* @__PURE__ */ t(de, {});
|
|
15993
|
-
},
|
|
15993
|
+
}, A2 = x(pf);
|
|
15994
15994
|
class ls {
|
|
15995
15995
|
fetchInstance;
|
|
15996
15996
|
constructor(n, i) {
|
|
@@ -16031,7 +16031,7 @@ const Cf = ({
|
|
|
16031
16031
|
onMouseLeave: o,
|
|
16032
16032
|
selectedData: r
|
|
16033
16033
|
}) => {
|
|
16034
|
-
const { isMobile: s } = Ce(), { availableWidth: c } = $n(), l =
|
|
16034
|
+
const { isMobile: s } = Ce(), { availableWidth: c } = $n(), l = ze(), u = c - 320, _ = e.map((f) => ({
|
|
16035
16035
|
x: pn(Ue(f.x), "MMM"),
|
|
16036
16036
|
y: f.y
|
|
16037
16037
|
})), h = r ? { index: e.findIndex((f) => f.x === r.x) } : void 0, m = n ? { index: e.findIndex((f) => f.x === n.x) } : void 0, p = (f) => ({
|
|
@@ -16080,7 +16080,7 @@ const Cf = ({
|
|
|
16080
16080
|
"&:hover": { color: a ? "inherit" : c.color }
|
|
16081
16081
|
},
|
|
16082
16082
|
children: /* @__PURE__ */ t(
|
|
16083
|
-
|
|
16083
|
+
me,
|
|
16084
16084
|
{
|
|
16085
16085
|
onClick: (u) => o?.(u, e.x),
|
|
16086
16086
|
onMouseEnter: () => r(e.x),
|
|
@@ -16110,7 +16110,7 @@ const Cf = ({
|
|
|
16110
16110
|
onMouseLeave: r,
|
|
16111
16111
|
selectedData: s
|
|
16112
16112
|
}) => {
|
|
16113
|
-
const { net_worth: c } = A(), l =
|
|
16113
|
+
const { net_worth: c } = A(), l = ze(), u = (_) => {
|
|
16114
16114
|
const h = _.x === n?.x, m = _.x === s?.x, p = {
|
|
16115
16115
|
backgroundColor: "inherit",
|
|
16116
16116
|
borderBottom: "inherit",
|
|
@@ -16169,7 +16169,7 @@ const Cf = ({
|
|
|
16169
16169
|
/* @__PURE__ */ t(C, { variant: "Small", children: e })
|
|
16170
16170
|
] });
|
|
16171
16171
|
}, Qo = x(Af), xf = ({ hoveredData: e, selectedData: n }) => {
|
|
16172
|
-
const { net_worth: i } = A(), a =
|
|
16172
|
+
const { net_worth: i } = A(), a = ze(), o = e || n, r = Qs(ci(o.x), "MMMM");
|
|
16173
16173
|
return /* @__PURE__ */ d(b, { alignItems: "center", direction: "column", m: 24, children: [
|
|
16174
16174
|
/* @__PURE__ */ t(C, { color: a.palette.secondary.main, variant: "Small", children: `${r} ${i.net_worth}` }),
|
|
16175
16175
|
/* @__PURE__ */ t(Ze, { amount: o.y, variant: "H2" }),
|
|
@@ -16181,7 +16181,7 @@ const Cf = ({
|
|
|
16181
16181
|
}), wf = (e, n) => [...e, ...n], ds = (e) => {
|
|
16182
16182
|
if (e && e.length > 0)
|
|
16183
16183
|
return e[e.length - 1];
|
|
16184
|
-
}, Df = (e, n) => e.year_month - n.year_month, Nf = () => Array.from({ length: hl }, (e, n) => Math.floor(
|
|
16184
|
+
}, Df = (e, n) => e.year_month - n.year_month, Nf = () => Array.from({ length: hl }, (e, n) => Math.floor(Ke(Ht(/* @__PURE__ */ new Date(), n)).getTime() / 1e3)).sort(), Rf = (e, n, i) => !e.length || !n.length ? [] : Nf().reduceRight((o, r) => {
|
|
16185
16185
|
const s = n.filter(
|
|
16186
16186
|
({ year_month: _ }) => _ === parseInt(pn(Ue(r), "yyyyMM"))
|
|
16187
16187
|
), c = e.map((_) => {
|
|
@@ -16332,7 +16332,7 @@ const kf = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
16332
16332
|
/* @__PURE__ */ t(C, { sx: { display: "block", fontWeight: 600 }, variant: "body1", children: e.empty_widget_header }),
|
|
16333
16333
|
/* @__PURE__ */ t(X, { sx: { color: "text.secondary" }, variant: "body2", children: e.zero_state_description })
|
|
16334
16334
|
] })
|
|
16335
|
-
] }),
|
|
16335
|
+
] }), x2 = x(({ onCTAClick: e }) => {
|
|
16336
16336
|
const [n, i] = g.useState(!1), { visibleAccounts: a } = be(), { onEvent: o } = q(), { net_worth: r, common: s } = A(), { isInitialized: c, selectedAccounts: l, setSelectedAccounts: u } = ce(), { loadChartData: _, loadNetWorthData: h, netWorthData: m, selectedData: p } = bc(), f = async () => {
|
|
16337
16337
|
await h(l), await _(1), i(!0);
|
|
16338
16338
|
};
|
|
@@ -16366,7 +16366,7 @@ const kf = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
16366
16366
|
}), Bf = ({ accounts: e, name: n, icon: i }) => {
|
|
16367
16367
|
const [a, o] = g.useState(!1);
|
|
16368
16368
|
return /* @__PURE__ */ d(Z, { children: [
|
|
16369
|
-
/* @__PURE__ */ t(j, { sx: (r) => ({ backgroundColor: r.palette.background.paper }), children: /* @__PURE__ */ d(
|
|
16369
|
+
/* @__PURE__ */ t(j, { sx: (r) => ({ backgroundColor: r.palette.background.paper }), children: /* @__PURE__ */ d(me, { onClick: () => o(!a), children: [
|
|
16370
16370
|
i && /* @__PURE__ */ t(mt, { children: /* @__PURE__ */ t(U, { name: i, size: 24, sx: { mr: 12 } }) }),
|
|
16371
16371
|
/* @__PURE__ */ t(
|
|
16372
16372
|
se,
|
|
@@ -16524,7 +16524,7 @@ const kf = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
16524
16524
|
] }))
|
|
16525
16525
|
] })
|
|
16526
16526
|
] });
|
|
16527
|
-
}, Wf = x(Ff),
|
|
16527
|
+
}, Wf = x(Ff), I2 = x(({ onBackClick: e }) => {
|
|
16528
16528
|
const { isCopyLoaded: n, isInitialized: i, selectedAccounts: a, setSelectedAccounts: o } = ce(), { accounts: r, net_worth: s } = A(), { visibleAccounts: c } = be(), {
|
|
16529
16529
|
assetsLiabilities: l,
|
|
16530
16530
|
gainsLosses: u,
|
|
@@ -16535,7 +16535,7 @@ const kf = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
16535
16535
|
selectedData: f,
|
|
16536
16536
|
setHoveredData: S,
|
|
16537
16537
|
setSelectedData: y
|
|
16538
|
-
} = bc(), { isMobile: E } = Ce(), { onEvent: I } = q(), [v, w] = g.useState(!1), [N, R] = g.useState(6), [M, k] = g.useState(!1), [G, L] = g.useState(!1), [W, K] = g.useState(!1),
|
|
16538
|
+
} = bc(), { isMobile: E } = Ce(), { onEvent: I } = q(), [v, w] = g.useState(!1), [N, R] = g.useState(6), [M, k] = g.useState(!1), [G, L] = g.useState(!1), [W, K] = g.useState(!1), ne = async () => {
|
|
16539
16539
|
await m(a), await h(N), w(!0);
|
|
16540
16540
|
};
|
|
16541
16541
|
g.useEffect(() => {
|
|
@@ -16543,28 +16543,28 @@ const kf = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
16543
16543
|
}, []), g.useEffect(() => {
|
|
16544
16544
|
o(c);
|
|
16545
16545
|
}, [c]), g.useEffect(() => {
|
|
16546
|
-
i &&
|
|
16546
|
+
i && ne().finally();
|
|
16547
16547
|
}, [i, a]), g.useEffect(() => {
|
|
16548
16548
|
I(F.NET_WORTH_WIDGET_CLICK_TIMEFRAME, { time_period: N + "M" }), h(N).finally();
|
|
16549
16549
|
}, [N]);
|
|
16550
|
-
const
|
|
16550
|
+
const re = (V, pe) => {
|
|
16551
16551
|
y(pe), V.currentTarget instanceof HTMLDivElement && k(!0);
|
|
16552
16552
|
}, fe = (V) => {
|
|
16553
16553
|
S(V);
|
|
16554
|
-
},
|
|
16554
|
+
}, Te = () => {
|
|
16555
16555
|
S(null);
|
|
16556
16556
|
}, Me = () => {
|
|
16557
16557
|
I(F.NET_WORTH_WIDGET_CLICK_ASSETS_LIABILITIES), L(!0);
|
|
16558
|
-
},
|
|
16558
|
+
}, ge = async (V) => {
|
|
16559
16559
|
const pe = V[0], J = V[1];
|
|
16560
16560
|
pe && J && R(zd(J, pe));
|
|
16561
|
-
},
|
|
16561
|
+
}, he = {
|
|
16562
16562
|
chartData: p,
|
|
16563
16563
|
hoveredData: _,
|
|
16564
16564
|
onButtonClick: Me,
|
|
16565
|
-
onDataClick:
|
|
16565
|
+
onDataClick: re,
|
|
16566
16566
|
onMouseEnter: fe,
|
|
16567
|
-
onMouseLeave:
|
|
16567
|
+
onMouseLeave: Te,
|
|
16568
16568
|
selectedData: f
|
|
16569
16569
|
}, Xe = () => {
|
|
16570
16570
|
K(!0), I(F.ACCOUNTS_CLICK_CONNECT);
|
|
@@ -16574,7 +16574,7 @@ const kf = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
16574
16574
|
{
|
|
16575
16575
|
accountOptions: c,
|
|
16576
16576
|
calendarActions: {
|
|
16577
|
-
onRangeChanged:
|
|
16577
|
+
onRangeChanged: ge
|
|
16578
16578
|
},
|
|
16579
16579
|
dateRangeVariant: E ? "timeframetabs" : "timeframebuttons",
|
|
16580
16580
|
onAccountsFilterClick: () => I(F.NET_WORTH_WIDGET_CLICK_FILTER),
|
|
@@ -16604,8 +16604,8 @@ const kf = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
16604
16604
|
direction: E ? "column" : "row",
|
|
16605
16605
|
spacing: E ? 0 : 48,
|
|
16606
16606
|
children: [
|
|
16607
|
-
/* @__PURE__ */ t(bf, { ...
|
|
16608
|
-
/* @__PURE__ */ t(Tf, { ...
|
|
16607
|
+
/* @__PURE__ */ t(bf, { ...he }),
|
|
16608
|
+
/* @__PURE__ */ t(Tf, { ...he })
|
|
16609
16609
|
]
|
|
16610
16610
|
}
|
|
16611
16611
|
)
|
|
@@ -16660,7 +16660,7 @@ const kf = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
16660
16660
|
] }) : /* @__PURE__ */ t(de, {})
|
|
16661
16661
|
}
|
|
16662
16662
|
) : /* @__PURE__ */ t(de, {});
|
|
16663
|
-
}),
|
|
16663
|
+
}), v2 = (e) => {
|
|
16664
16664
|
switch (e) {
|
|
16665
16665
|
case Zn.BudgetExceeded:
|
|
16666
16666
|
case Zn.BudgetOffTarget:
|
|
@@ -17079,7 +17079,7 @@ const gl = x(() => {
|
|
|
17079
17079
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
|
17080
17080
|
/* @__PURE__ */ d(te, { onClick: l, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
|
|
17081
17081
|
/* @__PURE__ */ t(C, { variant: "Small", children: n.verify_email }),
|
|
17082
|
-
/* @__PURE__ */ t(
|
|
17082
|
+
/* @__PURE__ */ t(je, {})
|
|
17083
17083
|
] }),
|
|
17084
17084
|
/* @__PURE__ */ t(
|
|
17085
17085
|
Ge,
|
|
@@ -17161,7 +17161,7 @@ const gl = x(() => {
|
|
|
17161
17161
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
|
17162
17162
|
/* @__PURE__ */ d(te, { onClick: h, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
|
|
17163
17163
|
/* @__PURE__ */ t(C, { variant: "Small", children: n.verify_phone }),
|
|
17164
|
-
/* @__PURE__ */ t(
|
|
17164
|
+
/* @__PURE__ */ t(je, {})
|
|
17165
17165
|
] }),
|
|
17166
17166
|
/* @__PURE__ */ t(
|
|
17167
17167
|
Ge,
|
|
@@ -17210,7 +17210,7 @@ const gl = x(() => {
|
|
|
17210
17210
|
)
|
|
17211
17211
|
] });
|
|
17212
17212
|
}), nC = ({ availableWidth: e, handleOnLeavClick: n }) => {
|
|
17213
|
-
const i =
|
|
17213
|
+
const i = ze(), { common: a, settings: o } = A(), { isDesktop: r, isMobile: s, isSmallMobile: c, isTablet: l } = Ce(e), { config: u } = wt(), { updateUser: _ } = St(), { user: h } = Ct(), [m, p] = g.useState({
|
|
17214
17214
|
first_name: h.first_name,
|
|
17215
17215
|
last_name: h.last_name,
|
|
17216
17216
|
email: h.email,
|
|
@@ -17231,8 +17231,8 @@ const gl = x(() => {
|
|
|
17231
17231
|
}, [f]);
|
|
17232
17232
|
const N = () => {
|
|
17233
17233
|
if (m.birthday) {
|
|
17234
|
-
const L = new Date(m.birthday * 1e3), W = L.getUTCFullYear(), K = L.getUTCMonth(),
|
|
17235
|
-
return new Date(W, K,
|
|
17234
|
+
const L = new Date(m.birthday * 1e3), W = L.getUTCFullYear(), K = L.getUTCMonth(), ne = L.getUTCDate();
|
|
17235
|
+
return new Date(W, K, ne);
|
|
17236
17236
|
}
|
|
17237
17237
|
}, R = async () => {
|
|
17238
17238
|
await _({ ...h, ...m }), S(!1);
|
|
@@ -17262,7 +17262,7 @@ const gl = x(() => {
|
|
|
17262
17262
|
}
|
|
17263
17263
|
},
|
|
17264
17264
|
children: [
|
|
17265
|
-
/* @__PURE__ */ t(
|
|
17265
|
+
/* @__PURE__ */ t(Qe, { children: o.personal_details }),
|
|
17266
17266
|
/* @__PURE__ */ t(X, { variant: "Body", children: o.update_information }),
|
|
17267
17267
|
/* @__PURE__ */ d(
|
|
17268
17268
|
b,
|
|
@@ -17746,7 +17746,7 @@ const aC = ({
|
|
|
17746
17746
|
},
|
|
17747
17747
|
children: [
|
|
17748
17748
|
/* @__PURE__ */ d(b, { gap: 4, children: [
|
|
17749
|
-
/* @__PURE__ */ t(
|
|
17749
|
+
/* @__PURE__ */ t(Qe, { children: n.mobile_devices_title }),
|
|
17750
17750
|
/* @__PURE__ */ t(X, { variant: "Body", children: n.mobile_devices_info })
|
|
17751
17751
|
] }),
|
|
17752
17752
|
e ? /* @__PURE__ */ t(
|
|
@@ -17785,7 +17785,7 @@ const aC = ({
|
|
|
17785
17785
|
}), Jo = x(
|
|
17786
17786
|
({ onClick: e, primaryText: n, secondaryText: i, sx: a }) => {
|
|
17787
17787
|
const o = Ee();
|
|
17788
|
-
return /* @__PURE__ */ t(j, { sx: { bgcolor: o.palette.background.paper }, children: /* @__PURE__ */ d(
|
|
17788
|
+
return /* @__PURE__ */ t(j, { sx: { bgcolor: o.palette.background.paper }, children: /* @__PURE__ */ d(me, { alignItems: "flex-start", onClick: e, sx: a, children: [
|
|
17789
17789
|
/* @__PURE__ */ t(se, { primary: n, secondary: i }),
|
|
17790
17790
|
/* @__PURE__ */ t(mt, { children: /* @__PURE__ */ t(Gs, {}) })
|
|
17791
17791
|
] }) });
|
|
@@ -17944,7 +17944,7 @@ const aC = ({
|
|
|
17944
17944
|
n().finally();
|
|
17945
17945
|
}, []), /* @__PURE__ */ d(b, { sx: { gap: 24, py: 24 }, children: [
|
|
17946
17946
|
/* @__PURE__ */ d(b, { sx: { px: 24 }, children: [
|
|
17947
|
-
/* @__PURE__ */ t(
|
|
17947
|
+
/* @__PURE__ */ t(Qe, { children: e.transaction_rules_label }),
|
|
17948
17948
|
/* @__PURE__ */ t(X, { variant: "Body", children: e.transaction_rules_description })
|
|
17949
17949
|
] }),
|
|
17950
17950
|
/* @__PURE__ */ t(oe, { children: i.map((a, o) => /* @__PURE__ */ t(hC, { rule: a }, o)) })
|
|
@@ -17970,7 +17970,7 @@ const aC = ({
|
|
|
17970
17970
|
institutionGuid: n.account?.institution_guid
|
|
17971
17971
|
}
|
|
17972
17972
|
) : void 0,
|
|
17973
|
-
endIcon: /* @__PURE__ */ t(
|
|
17973
|
+
endIcon: /* @__PURE__ */ t(je, {}),
|
|
17974
17974
|
isChecked: n.is_enabled,
|
|
17975
17975
|
onClick: () => l(!0),
|
|
17976
17976
|
onToggle: () => e({
|
|
@@ -17996,8 +17996,8 @@ const aC = ({
|
|
|
17996
17996
|
children: s ? /* @__PURE__ */ t(gi, { dateAdapter: Jn, children: /* @__PURE__ */ t(
|
|
17997
17997
|
Co,
|
|
17998
17998
|
{
|
|
17999
|
-
maxDate:
|
|
18000
|
-
minDate:
|
|
17999
|
+
maxDate: qe(/* @__PURE__ */ new Date()),
|
|
18000
|
+
minDate: Ke(/* @__PURE__ */ new Date()),
|
|
18001
18001
|
onChange: (E) => {
|
|
18002
18002
|
m(E.getDate());
|
|
18003
18003
|
},
|
|
@@ -18111,7 +18111,7 @@ const aC = ({
|
|
|
18111
18111
|
e.filter((c) => c.children && c.children.length > 0).map((c) => /* @__PURE__ */ t(
|
|
18112
18112
|
Oo,
|
|
18113
18113
|
{
|
|
18114
|
-
endIcon: /* @__PURE__ */ t(
|
|
18114
|
+
endIcon: /* @__PURE__ */ t(je, {}),
|
|
18115
18115
|
isChecked: c.is_enabled,
|
|
18116
18116
|
isDisabled: !c.is_enabled,
|
|
18117
18117
|
onClick: () => a(c.guid),
|
|
@@ -18236,7 +18236,7 @@ const aC = ({
|
|
|
18236
18236
|
await a(u);
|
|
18237
18237
|
};
|
|
18238
18238
|
return /* @__PURE__ */ d(b, { children: [
|
|
18239
|
-
/* @__PURE__ */ t(
|
|
18239
|
+
/* @__PURE__ */ t(Qe, { sx: { mt: 24 }, children: n.delivery_method_title }),
|
|
18240
18240
|
i.email_notifications_enabled && /* @__PURE__ */ d(Z, { children: [
|
|
18241
18241
|
/* @__PURE__ */ t(
|
|
18242
18242
|
On,
|
|
@@ -18301,7 +18301,7 @@ const aC = ({
|
|
|
18301
18301
|
return /* @__PURE__ */ d(b, { ref: n, children: [
|
|
18302
18302
|
/* @__PURE__ */ t(P, {}),
|
|
18303
18303
|
/* @__PURE__ */ d(b, { sx: { pt: 12 }, children: [
|
|
18304
|
-
/* @__PURE__ */ t(
|
|
18304
|
+
/* @__PURE__ */ t(Qe, { sx: { lineHeight: "20px", pb: 4, pt: 16 }, children: o.personal_details }),
|
|
18305
18305
|
/* @__PURE__ */ d(b, { sx: { flexDirection: i <= 768 ? "column" : "row", gap: 24, py: 16 }, children: [
|
|
18306
18306
|
e.display_email_edit_field_in_settings && /* @__PURE__ */ d(b, { sx: { flex: 1, pb: 14 }, children: [
|
|
18307
18307
|
/* @__PURE__ */ t(
|
|
@@ -18403,20 +18403,20 @@ const aC = ({
|
|
|
18403
18403
|
/* @__PURE__ */ t(pC, {}),
|
|
18404
18404
|
/* @__PURE__ */ t(P, { sx: { my: 24 } })
|
|
18405
18405
|
] }),
|
|
18406
|
-
/* @__PURE__ */ t(
|
|
18406
|
+
/* @__PURE__ */ t(Qe, { sx: { mb: 4 }, children: o.notification_types_title })
|
|
18407
18407
|
] }),
|
|
18408
18408
|
/* @__PURE__ */ d(oe, { children: [
|
|
18409
|
-
e.includes(Mt.Accounts) && /* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(
|
|
18409
|
+
e.includes(Mt.Accounts) && /* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(me, { onClick: () => u(Mt.Accounts), children: [
|
|
18410
18410
|
/* @__PURE__ */ t(se, { primary: o.accounts_title, secondary: o.accounts_subtitle }),
|
|
18411
|
-
/* @__PURE__ */ t(
|
|
18411
|
+
/* @__PURE__ */ t(je, {})
|
|
18412
18412
|
] }) }),
|
|
18413
|
-
e.includes(Mt.Budgets) && /* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(
|
|
18413
|
+
e.includes(Mt.Budgets) && /* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(me, { onClick: () => u(Mt.Budgets), children: [
|
|
18414
18414
|
/* @__PURE__ */ t(se, { primary: o.budgets_title, secondary: o.budgets_subtitle }),
|
|
18415
|
-
/* @__PURE__ */ t(
|
|
18415
|
+
/* @__PURE__ */ t(je, {})
|
|
18416
18416
|
] }) }),
|
|
18417
|
-
e.includes(Mt.Insights) && /* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(
|
|
18417
|
+
e.includes(Mt.Insights) && /* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(me, { onClick: () => u(Mt.Insights), children: [
|
|
18418
18418
|
/* @__PURE__ */ t(se, { primary: o.insights_title, secondary: o.insights_subtitle }),
|
|
18419
|
-
/* @__PURE__ */ t(
|
|
18419
|
+
/* @__PURE__ */ t(je, {})
|
|
18420
18420
|
] }) })
|
|
18421
18421
|
] }),
|
|
18422
18422
|
y && /* @__PURE__ */ t(b, { sx: { px: 24 }, children: /* @__PURE__ */ t(CC, {}) }),
|
|
@@ -18448,7 +18448,7 @@ const aC = ({
|
|
|
18448
18448
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
|
18449
18449
|
/* @__PURE__ */ d(st, { container: !0, sx: { alignItems: "center", mb: 24 }, children: [
|
|
18450
18450
|
/* @__PURE__ */ d(st, { item: !0, md: 12, sm: 12, xs: 12, children: [
|
|
18451
|
-
/* @__PURE__ */ t(
|
|
18451
|
+
/* @__PURE__ */ t(Qe, { children: o }),
|
|
18452
18452
|
/* @__PURE__ */ t(X, { variant: "Body", children: a })
|
|
18453
18453
|
] }),
|
|
18454
18454
|
n && /* @__PURE__ */ t(
|
|
@@ -18510,7 +18510,7 @@ const aC = ({
|
|
|
18510
18510
|
p: 0
|
|
18511
18511
|
},
|
|
18512
18512
|
children: /* @__PURE__ */ t(oe, { disablePadding: !0, children: y.map(({ label: w, topicKey: N }) => /* @__PURE__ */ t(
|
|
18513
|
-
|
|
18513
|
+
me,
|
|
18514
18514
|
{
|
|
18515
18515
|
"aria-label": w,
|
|
18516
18516
|
divider: !0,
|
|
@@ -18544,7 +18544,7 @@ const aC = ({
|
|
|
18544
18544
|
imageLargeBreakPoint: o = 12,
|
|
18545
18545
|
sx: r
|
|
18546
18546
|
}) => {
|
|
18547
|
-
const s =
|
|
18547
|
+
const s = ze();
|
|
18548
18548
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
|
18549
18549
|
/* @__PURE__ */ t(O, { sx: { pb: 48, ...r }, children: /* @__PURE__ */ d(st, { container: !0, rowSpacing: 24, children: [
|
|
18550
18550
|
/* @__PURE__ */ t(st, { item: !0, lg: 12, md: 12, sm: 12, xs: 12, children: n }),
|
|
@@ -18588,7 +18588,7 @@ const aC = ({
|
|
|
18588
18588
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
|
18589
18589
|
/* @__PURE__ */ d(st, { container: !0, sx: { alignItems: "center", justifyContent: "space-between" }, children: [
|
|
18590
18590
|
/* @__PURE__ */ d(st, { item: !0, sm: 6, xs: 12, children: [
|
|
18591
|
-
/* @__PURE__ */ t(
|
|
18591
|
+
/* @__PURE__ */ t(Qe, { color: "text.primary", children: o }),
|
|
18592
18592
|
/* @__PURE__ */ d(
|
|
18593
18593
|
s_,
|
|
18594
18594
|
{
|
|
@@ -18635,7 +18635,7 @@ const aC = ({
|
|
|
18635
18635
|
imageLargeBreakPoint: o = 4,
|
|
18636
18636
|
sx: r
|
|
18637
18637
|
}) => {
|
|
18638
|
-
const s =
|
|
18638
|
+
const s = ze();
|
|
18639
18639
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
|
18640
18640
|
/* @__PURE__ */ t(O, { sx: { pb: 48, ...r }, children: /* @__PURE__ */ d(st, { container: !0, spacing: 24, sx: { alignItems: "flex-start" }, children: [
|
|
18641
18641
|
/* @__PURE__ */ t(
|
|
@@ -18682,7 +18682,7 @@ const aC = ({
|
|
|
18682
18682
|
imageLargeBreakPoint: o = 4,
|
|
18683
18683
|
sx: r
|
|
18684
18684
|
}) => {
|
|
18685
|
-
const s =
|
|
18685
|
+
const s = ze();
|
|
18686
18686
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
|
18687
18687
|
/* @__PURE__ */ t(O, { sx: { pb: 48, ...r }, children: /* @__PURE__ */ d(st, { container: !0, spacing: 24, sx: { alignItems: "flex-start" }, children: [
|
|
18688
18688
|
/* @__PURE__ */ t(st, { item: !0, lg: 12 - o, md: 12, sm: 12, xs: 12, children: n }),
|
|
@@ -18720,7 +18720,7 @@ const aC = ({
|
|
|
18720
18720
|
imageLargeBreakPoint: o = 12,
|
|
18721
18721
|
sx: r
|
|
18722
18722
|
}) => {
|
|
18723
|
-
const s =
|
|
18723
|
+
const s = ze();
|
|
18724
18724
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
|
18725
18725
|
/* @__PURE__ */ t(O, { sx: { pb: 48, ...r }, children: /* @__PURE__ */ d(st, { container: !0, rowSpacing: 24, children: [
|
|
18726
18726
|
/* @__PURE__ */ t(
|
|
@@ -18752,7 +18752,7 @@ const aC = ({
|
|
|
18752
18752
|
] }) }),
|
|
18753
18753
|
i && /* @__PURE__ */ t(P, {})
|
|
18754
18754
|
] });
|
|
18755
|
-
}, $ = ({ content: e, sx: n }) => /* @__PURE__ */ t(X, { sx: { lineHeight: "24px", py: 6, ...n }, children: e }),
|
|
18755
|
+
}, $ = ({ content: e, sx: n }) => /* @__PURE__ */ t(X, { sx: { lineHeight: "24px", py: 6, ...n }, children: e }), Ae = ({ content: e, sx: n }) => /* @__PURE__ */ t(Qe, { color: "text.primary", sx: { py: 12, whiteSpace: { sm: "nowrap", xs: "wrap" }, ...n }, children: e }), ie = ({
|
|
18756
18756
|
items: e,
|
|
18757
18757
|
listType: n = "ul",
|
|
18758
18758
|
subItemPlacement: i,
|
|
@@ -18764,49 +18764,49 @@ const aC = ({
|
|
|
18764
18764
|
/* @__PURE__ */ t($, { content: c, sx: { py: 1 } }),
|
|
18765
18765
|
i === l ? /* @__PURE__ */ t(s, { ...o === "ol" && { type: "a" }, children: a.map((u, _) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t($, { content: u, sx: { py: 1 } }) }, _)) }) : null
|
|
18766
18766
|
] }, l)) }) });
|
|
18767
|
-
},
|
|
18768
|
-
ACCOUNT_DETAILS: `${
|
|
18769
|
-
ACCOUNT_OVERVIEW: `${
|
|
18770
|
-
ACCOUNT_ADD: `${
|
|
18771
|
-
ACCOUNT_BROKEN_CONNECTION: `${
|
|
18772
|
-
ACCOUNT_HIDE: `${
|
|
18773
|
-
ACCOUNT_MANAGE_CONNECTIONS: `${
|
|
18774
|
-
BUDGETS_ADD_SUB_BUDGET: `${
|
|
18775
|
-
BUDGETS_WIDGET: `${
|
|
18776
|
-
BUDGETS_EDIT_INCOME: `${
|
|
18777
|
-
CASHFLOW_WIDGET: `${
|
|
18778
|
-
CASHFLOW_EXPENSE_DETAILS: `${
|
|
18779
|
-
CASHFLOW_MANAGE_EXPENSES: `${
|
|
18780
|
-
DEBTS_DETAILS: `${
|
|
18781
|
-
DEBTS_OVERVIEW: `${
|
|
18782
|
-
DEBTS_PRIORITIZATION: `${
|
|
18783
|
-
DEBTS_SNOWBALL_METHOD: `${
|
|
18784
|
-
GENERAL_CATEGORIZE_TRANSACTIONS: `${
|
|
18785
|
-
GOALS_CREATE_GOAL: `${
|
|
18786
|
-
GOALS_DEBT_GOALS: `${
|
|
18787
|
-
GOALS_WIDGET_OVERVIEW: `${
|
|
18788
|
-
GOALS_MANAGE_GOALS: `${
|
|
18789
|
-
GOALS_RETIREMENT_GOALS: `${
|
|
18790
|
-
GOALS_SAVINGS_GOALS: `${
|
|
18791
|
-
INSIGHTS_CAROUSEL: `${
|
|
18792
|
-
INSIGHTS_FEED: `${
|
|
18793
|
-
INVESTMENTS_WIDGET_DETAILS: `${
|
|
18794
|
-
MOBILE_ADD_MOBILE_DEVICE: `${
|
|
18795
|
-
NETWORTH_ASSETS_LIABILITIES: `${
|
|
18796
|
-
NETWORTH_GAINS_LOSSES: `${
|
|
18797
|
-
NETWORTH_WIDGET: `${
|
|
18798
|
-
NOTIFICATIONS_MANAGING: `${
|
|
18799
|
-
NOTIFICATIONS_OVERVIEW: `${
|
|
18800
|
-
RECURRING_TRANSACTIONS_EXPENSE_DETAILS: `${
|
|
18801
|
-
RECURRING_TRANSACTIONS_MANAGE_EXPENSES: `${
|
|
18802
|
-
RECURRING_TRANSACTIONS_OVERVIEW: `${
|
|
18803
|
-
SPENDING_WIDGET: `${
|
|
18804
|
-
TRANSACTIONS_CATEGORIZE: `${
|
|
18805
|
-
TRANSACTIONS_EDIT: `${
|
|
18806
|
-
TRANSACTIONS_EXPORT: `${
|
|
18807
|
-
TRANSACTIONS_OVERVIEW: `${
|
|
18808
|
-
TRANSACTIONS_RULES: `${
|
|
18809
|
-
TRENDS_WIDGET: `${
|
|
18767
|
+
}, ve = "https://content.moneydesktop.com/storage/MD_Assets/md/help", Re = {
|
|
18768
|
+
ACCOUNT_DETAILS: `${ve}/account/AccountDetails.png`,
|
|
18769
|
+
ACCOUNT_OVERVIEW: `${ve}/account/AccountsOverview.png`,
|
|
18770
|
+
ACCOUNT_ADD: `${ve}/account/AddAccount.png`,
|
|
18771
|
+
ACCOUNT_BROKEN_CONNECTION: `${ve}/account/BrokenConnection.png`,
|
|
18772
|
+
ACCOUNT_HIDE: `${ve}/account/AccountHide.png`,
|
|
18773
|
+
ACCOUNT_MANAGE_CONNECTIONS: `${ve}/account/ManageConnections.png`,
|
|
18774
|
+
BUDGETS_ADD_SUB_BUDGET: `${ve}/budgets/AddSubBudget.png`,
|
|
18775
|
+
BUDGETS_WIDGET: `${ve}/budgets/BudgetWidget.png`,
|
|
18776
|
+
BUDGETS_EDIT_INCOME: `${ve}/budgets/EditIncome.png`,
|
|
18777
|
+
CASHFLOW_WIDGET: `${ve}/cashflow/CashFlowWidget.png`,
|
|
18778
|
+
CASHFLOW_EXPENSE_DETAILS: `${ve}/cashflow/ExpenseDetailsCurrent.png`,
|
|
18779
|
+
CASHFLOW_MANAGE_EXPENSES: `${ve}/cashflow/ManageExpenses.png`,
|
|
18780
|
+
DEBTS_DETAILS: `${ve}/debts/DebtDetails.png`,
|
|
18781
|
+
DEBTS_OVERVIEW: `${ve}/debts/DebtOverview.png`,
|
|
18782
|
+
DEBTS_PRIORITIZATION: `${ve}/debts/DebtPrioritization.png`,
|
|
18783
|
+
DEBTS_SNOWBALL_METHOD: `${ve}/debts/SnowballMethod.png`,
|
|
18784
|
+
GENERAL_CATEGORIZE_TRANSACTIONS: `${ve}/general/CategorizeTransactions.png`,
|
|
18785
|
+
GOALS_CREATE_GOAL: `${ve}/goals/CreateGoal.png`,
|
|
18786
|
+
GOALS_DEBT_GOALS: `${ve}/goals/DebtGoals.png`,
|
|
18787
|
+
GOALS_WIDGET_OVERVIEW: `${ve}/goals/GoalsWidgetOverview.png`,
|
|
18788
|
+
GOALS_MANAGE_GOALS: `${ve}/goals/ManageGoals.png`,
|
|
18789
|
+
GOALS_RETIREMENT_GOALS: `${ve}/goals/RetirementGoals.png`,
|
|
18790
|
+
GOALS_SAVINGS_GOALS: `${ve}/goals/SavingsGoals.png`,
|
|
18791
|
+
INSIGHTS_CAROUSEL: `${ve}/insights/InsightsCarousel.png`,
|
|
18792
|
+
INSIGHTS_FEED: `${ve}/insights/InsightsFeed.png`,
|
|
18793
|
+
INVESTMENTS_WIDGET_DETAILS: `${ve}/investments/WidgetDetails.png`,
|
|
18794
|
+
MOBILE_ADD_MOBILE_DEVICE: `${ve}/mobile/AddMobileDevice.png`,
|
|
18795
|
+
NETWORTH_ASSETS_LIABILITIES: `${ve}/networth/AssetsLiabilities.png`,
|
|
18796
|
+
NETWORTH_GAINS_LOSSES: `${ve}/networth/GainsLosses.png`,
|
|
18797
|
+
NETWORTH_WIDGET: `${ve}/networth/NetWorthWidget.png`,
|
|
18798
|
+
NOTIFICATIONS_MANAGING: `${ve}/notifications/ManagingNotifications.png`,
|
|
18799
|
+
NOTIFICATIONS_OVERVIEW: `${ve}/notifications/NotificationOverview.png`,
|
|
18800
|
+
RECURRING_TRANSACTIONS_EXPENSE_DETAILS: `${ve}/recurringtransactions/expenseDetails.png`,
|
|
18801
|
+
RECURRING_TRANSACTIONS_MANAGE_EXPENSES: `${ve}/recurringtransactions/manageExpenses.png`,
|
|
18802
|
+
RECURRING_TRANSACTIONS_OVERVIEW: `${ve}/recurringtransactions/overview.png`,
|
|
18803
|
+
SPENDING_WIDGET: `${ve}/spending/SpendingWidget.png`,
|
|
18804
|
+
TRANSACTIONS_CATEGORIZE: `${ve}/transactions/CategorizeTransactions.png`,
|
|
18805
|
+
TRANSACTIONS_EDIT: `${ve}/transactions/EditTransactions.png`,
|
|
18806
|
+
TRANSACTIONS_EXPORT: `${ve}/transactions/ExportTransactions.png`,
|
|
18807
|
+
TRANSACTIONS_OVERVIEW: `${ve}/transactions/Overview.png`,
|
|
18808
|
+
TRANSACTIONS_RULES: `${ve}/transactions/TransactionRules.png`,
|
|
18809
|
+
TRENDS_WIDGET: `${ve}/trends/TrendsWidget.png`
|
|
18810
18810
|
}, SC = ({ copy: e, topicKey: n }) => ({
|
|
18811
18811
|
"accounts-overview": /* @__PURE__ */ d(g.Fragment, { children: [
|
|
18812
18812
|
/* @__PURE__ */ t(
|
|
@@ -18830,7 +18830,7 @@ const aC = ({
|
|
|
18830
18830
|
imageLargeBreakPoint: 5
|
|
18831
18831
|
}
|
|
18832
18832
|
),
|
|
18833
|
-
/* @__PURE__ */ t(
|
|
18833
|
+
/* @__PURE__ */ t(Ae, { content: e.accounts_overview.edit_account_title, sx: { pt: 48 } }),
|
|
18834
18834
|
/* @__PURE__ */ t(
|
|
18835
18835
|
Bt,
|
|
18836
18836
|
{
|
|
@@ -18865,7 +18865,7 @@ const aC = ({
|
|
|
18865
18865
|
imageLargeBreakPoint: 3
|
|
18866
18866
|
}
|
|
18867
18867
|
),
|
|
18868
|
-
/* @__PURE__ */ t(
|
|
18868
|
+
/* @__PURE__ */ t(Ae, { content: e.accounts_overview.add_account_title, sx: { pt: 48 } }),
|
|
18869
18869
|
/* @__PURE__ */ t(
|
|
18870
18870
|
ln,
|
|
18871
18871
|
{
|
|
@@ -18905,7 +18905,7 @@ const aC = ({
|
|
|
18905
18905
|
)
|
|
18906
18906
|
}
|
|
18907
18907
|
),
|
|
18908
|
-
/* @__PURE__ */ t(
|
|
18908
|
+
/* @__PURE__ */ t(Ae, { content: e.accounts_overview.hide_account_title }),
|
|
18909
18909
|
/* @__PURE__ */ t(
|
|
18910
18910
|
ie,
|
|
18911
18911
|
{
|
|
@@ -18922,7 +18922,7 @@ const aC = ({
|
|
|
18922
18922
|
listType: "ol"
|
|
18923
18923
|
}
|
|
18924
18924
|
),
|
|
18925
|
-
/* @__PURE__ */ t(
|
|
18925
|
+
/* @__PURE__ */ t(Ae, { content: e.accounts_overview.unhide_account_title }),
|
|
18926
18926
|
/* @__PURE__ */ t(
|
|
18927
18927
|
ie,
|
|
18928
18928
|
{
|
|
@@ -19018,8 +19018,8 @@ const aC = ({
|
|
|
19018
19018
|
ot,
|
|
19019
19019
|
{
|
|
19020
19020
|
content: /* @__PURE__ */ d(g.Fragment, { children: [
|
|
19021
|
-
/* @__PURE__ */ t(
|
|
19022
|
-
/* @__PURE__ */ t(
|
|
19021
|
+
/* @__PURE__ */ t(Ae, { content: e.seeing_duplicate_accounts.warning_title }),
|
|
19022
|
+
/* @__PURE__ */ t(Ae, { content: e.seeing_duplicate_accounts.instructions_title }),
|
|
19023
19023
|
/* @__PURE__ */ t(
|
|
19024
19024
|
ie,
|
|
19025
19025
|
{
|
|
@@ -19073,7 +19073,7 @@ const aC = ({
|
|
|
19073
19073
|
image: Re.BUDGETS_WIDGET
|
|
19074
19074
|
}
|
|
19075
19075
|
),
|
|
19076
|
-
/* @__PURE__ */ t(
|
|
19076
|
+
/* @__PURE__ */ t(Ae, { content: i.adjusting_income_title, sx: { pt: 48 } }),
|
|
19077
19077
|
/* @__PURE__ */ t(
|
|
19078
19078
|
Bt,
|
|
19079
19079
|
{
|
|
@@ -19100,7 +19100,7 @@ const aC = ({
|
|
|
19100
19100
|
image: Re.BUDGETS_EDIT_INCOME
|
|
19101
19101
|
}
|
|
19102
19102
|
),
|
|
19103
|
-
/* @__PURE__ */ t(
|
|
19103
|
+
/* @__PURE__ */ t(Ae, { content: i.create_budget_title, sx: { pt: 48 } }),
|
|
19104
19104
|
/* @__PURE__ */ t(
|
|
19105
19105
|
rn,
|
|
19106
19106
|
{
|
|
@@ -19178,7 +19178,7 @@ const aC = ({
|
|
|
19178
19178
|
}
|
|
19179
19179
|
),
|
|
19180
19180
|
/* @__PURE__ */ t(
|
|
19181
|
-
|
|
19181
|
+
Ae,
|
|
19182
19182
|
{
|
|
19183
19183
|
content: e.cashflow_overview.manage_expenses_section_title,
|
|
19184
19184
|
sx: { pt: 48 }
|
|
@@ -19418,19 +19418,19 @@ const aC = ({
|
|
|
19418
19418
|
};
|
|
19419
19419
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
|
19420
19420
|
i.overviewSection,
|
|
19421
|
-
/* @__PURE__ */ t(
|
|
19421
|
+
/* @__PURE__ */ t(Ae, { content: n.snowball_method_title, sx: { pt: 48 } }),
|
|
19422
19422
|
i.snowballMethod,
|
|
19423
|
-
/* @__PURE__ */ t(
|
|
19423
|
+
/* @__PURE__ */ t(Ae, { content: n.debt_prioritization, sx: { pt: 48 } }),
|
|
19424
19424
|
i.debtPrioritization,
|
|
19425
|
-
/* @__PURE__ */ t(
|
|
19425
|
+
/* @__PURE__ */ t(Ae, { content: n.debt_chart, sx: { pt: 48 } }),
|
|
19426
19426
|
i.debtChart,
|
|
19427
|
-
/* @__PURE__ */ t(
|
|
19427
|
+
/* @__PURE__ */ t(Ae, { content: n.debt_list, sx: { pt: 48 } }),
|
|
19428
19428
|
i.debtList,
|
|
19429
|
-
/* @__PURE__ */ t(
|
|
19429
|
+
/* @__PURE__ */ t(Ae, { content: n.debt_details, sx: { pt: 48 } }),
|
|
19430
19430
|
i.debtDetails,
|
|
19431
|
-
/* @__PURE__ */ t(
|
|
19431
|
+
/* @__PURE__ */ t(Ae, { content: n.hiding_accounts, sx: { pt: 48 } }),
|
|
19432
19432
|
i.hidingAccounts,
|
|
19433
|
-
/* @__PURE__ */ t(
|
|
19433
|
+
/* @__PURE__ */ t(Ae, { content: n.extra_payments, sx: { pt: 48 } }),
|
|
19434
19434
|
i.extraPayments
|
|
19435
19435
|
] });
|
|
19436
19436
|
}, xC = ({ topicKey: e, copy: n }) => {
|
|
@@ -19593,7 +19593,7 @@ const aC = ({
|
|
|
19593
19593
|
ot,
|
|
19594
19594
|
{
|
|
19595
19595
|
content: /* @__PURE__ */ d(g.Fragment, { children: [
|
|
19596
|
-
/* @__PURE__ */ t(
|
|
19596
|
+
/* @__PURE__ */ t(Ae, { content: n.setting_goals_section_title }),
|
|
19597
19597
|
/* @__PURE__ */ t($, { content: `${n.setting_goals_title_text}:` }),
|
|
19598
19598
|
/* @__PURE__ */ t(
|
|
19599
19599
|
ie,
|
|
@@ -19618,7 +19618,7 @@ const aC = ({
|
|
|
19618
19618
|
hasDivider: !0
|
|
19619
19619
|
}
|
|
19620
19620
|
),
|
|
19621
|
-
/* @__PURE__ */ t(
|
|
19621
|
+
/* @__PURE__ */ t(Ae, { content: n.create_goal_section_title, sx: { pt: 48 } }),
|
|
19622
19622
|
/* @__PURE__ */ t(
|
|
19623
19623
|
ln,
|
|
19624
19624
|
{
|
|
@@ -19652,7 +19652,7 @@ const aC = ({
|
|
|
19652
19652
|
imageLargeBreakPoint: 10
|
|
19653
19653
|
}
|
|
19654
19654
|
),
|
|
19655
|
-
/* @__PURE__ */ t(
|
|
19655
|
+
/* @__PURE__ */ t(Ae, { content: n.savings_goal_section_title, sx: { pt: 48 } }),
|
|
19656
19656
|
/* @__PURE__ */ t(
|
|
19657
19657
|
Bt,
|
|
19658
19658
|
{
|
|
@@ -19676,7 +19676,7 @@ const aC = ({
|
|
|
19676
19676
|
imageLargeBreakPoint: 3
|
|
19677
19677
|
}
|
|
19678
19678
|
),
|
|
19679
|
-
/* @__PURE__ */ t(
|
|
19679
|
+
/* @__PURE__ */ t(Ae, { content: n.debt_payoff_goal_section_title, sx: { pt: 48 } }),
|
|
19680
19680
|
/* @__PURE__ */ t(
|
|
19681
19681
|
Bt,
|
|
19682
19682
|
{
|
|
@@ -19702,7 +19702,7 @@ const aC = ({
|
|
|
19702
19702
|
imageLargeBreakPoint: 3
|
|
19703
19703
|
}
|
|
19704
19704
|
),
|
|
19705
|
-
/* @__PURE__ */ t(
|
|
19705
|
+
/* @__PURE__ */ t(Ae, { content: n.retirement_goal_section_title, sx: { pt: 48 } }),
|
|
19706
19706
|
/* @__PURE__ */ t(
|
|
19707
19707
|
Bt,
|
|
19708
19708
|
{
|
|
@@ -19730,7 +19730,7 @@ const aC = ({
|
|
|
19730
19730
|
}
|
|
19731
19731
|
),
|
|
19732
19732
|
/* @__PURE__ */ t(
|
|
19733
|
-
|
|
19733
|
+
Ae,
|
|
19734
19734
|
{
|
|
19735
19735
|
content: n.adjusting_contribution_priorities_section_title,
|
|
19736
19736
|
sx: { pt: 48 }
|
|
@@ -19872,7 +19872,7 @@ const aC = ({
|
|
|
19872
19872
|
}
|
|
19873
19873
|
),
|
|
19874
19874
|
/* @__PURE__ */ t(
|
|
19875
|
-
|
|
19875
|
+
Ae,
|
|
19876
19876
|
{
|
|
19877
19877
|
content: n.preventing_app_crashes_section_title,
|
|
19878
19878
|
sx: { pt: 48 }
|
|
@@ -19931,7 +19931,7 @@ const aC = ({
|
|
|
19931
19931
|
{
|
|
19932
19932
|
content: /* @__PURE__ */ d(g.Fragment, { children: [
|
|
19933
19933
|
/* @__PURE__ */ t(
|
|
19934
|
-
|
|
19934
|
+
Ae,
|
|
19935
19935
|
{
|
|
19936
19936
|
content: i.net_worth_history_section_title,
|
|
19937
19937
|
sx: { pt: 48 }
|
|
@@ -19950,7 +19950,7 @@ const aC = ({
|
|
|
19950
19950
|
] })
|
|
19951
19951
|
}
|
|
19952
19952
|
),
|
|
19953
|
-
/* @__PURE__ */ t(
|
|
19953
|
+
/* @__PURE__ */ t(Ae, { content: i.gains_losses_section_title, sx: { mt: 36 } }),
|
|
19954
19954
|
/* @__PURE__ */ t(
|
|
19955
19955
|
Bt,
|
|
19956
19956
|
{
|
|
@@ -19986,7 +19986,7 @@ const aC = ({
|
|
|
19986
19986
|
}
|
|
19987
19987
|
),
|
|
19988
19988
|
/* @__PURE__ */ t(
|
|
19989
|
-
|
|
19989
|
+
Ae,
|
|
19990
19990
|
{
|
|
19991
19991
|
content: i.assets_liabilities_section_title,
|
|
19992
19992
|
sx: { mt: 36 }
|
|
@@ -20055,7 +20055,7 @@ const aC = ({
|
|
|
20055
20055
|
}
|
|
20056
20056
|
),
|
|
20057
20057
|
/* @__PURE__ */ t(
|
|
20058
|
-
|
|
20058
|
+
Ae,
|
|
20059
20059
|
{
|
|
20060
20060
|
content: e.notifications_overview.managing_notifications_section_title,
|
|
20061
20061
|
sx: { pt: 48 }
|
|
@@ -20092,7 +20092,7 @@ const aC = ({
|
|
|
20092
20092
|
ot,
|
|
20093
20093
|
{
|
|
20094
20094
|
content: /* @__PURE__ */ d(g.Fragment, { children: [
|
|
20095
|
-
/* @__PURE__ */ t(
|
|
20095
|
+
/* @__PURE__ */ t(Ae, { content: e.notifications_overview.notification_work_section_title }),
|
|
20096
20096
|
/* @__PURE__ */ t(
|
|
20097
20097
|
ie,
|
|
20098
20098
|
{
|
|
@@ -20124,7 +20124,7 @@ const aC = ({
|
|
|
20124
20124
|
ot,
|
|
20125
20125
|
{
|
|
20126
20126
|
content: /* @__PURE__ */ d(g.Fragment, { children: [
|
|
20127
|
-
/* @__PURE__ */ t(
|
|
20127
|
+
/* @__PURE__ */ t(Ae, { content: e.notifications_overview.verify_email_section_title }),
|
|
20128
20128
|
/* @__PURE__ */ t(
|
|
20129
20129
|
ie,
|
|
20130
20130
|
{
|
|
@@ -20228,11 +20228,11 @@ const aC = ({
|
|
|
20228
20228
|
};
|
|
20229
20229
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
|
20230
20230
|
i.overviewSsction,
|
|
20231
|
-
/* @__PURE__ */ t(
|
|
20231
|
+
/* @__PURE__ */ t(Ae, { content: n.calendar_title, sx: { pt: 48 } }),
|
|
20232
20232
|
i.calendarSection,
|
|
20233
|
-
/* @__PURE__ */ t(
|
|
20233
|
+
/* @__PURE__ */ t(Ae, { content: n.edit_recurring_transaction_title, sx: { pt: 48 } }),
|
|
20234
20234
|
i.editSsction,
|
|
20235
|
-
/* @__PURE__ */ t(
|
|
20235
|
+
/* @__PURE__ */ t(Ae, { content: n.payment_frequency_title, sx: { pt: 48 } }),
|
|
20236
20236
|
i.paymentFrequencySection
|
|
20237
20237
|
] });
|
|
20238
20238
|
}, OC = ({ copy: e, topicKey: n }) => {
|
|
@@ -20269,7 +20269,7 @@ const aC = ({
|
|
|
20269
20269
|
ot,
|
|
20270
20270
|
{
|
|
20271
20271
|
content: /* @__PURE__ */ d(g.Fragment, { children: [
|
|
20272
|
-
/* @__PURE__ */ t(
|
|
20272
|
+
/* @__PURE__ */ t(Ae, { content: i.date_range_section_title }),
|
|
20273
20273
|
/* @__PURE__ */ t($, { content: i.date_range_section }),
|
|
20274
20274
|
/* @__PURE__ */ t(
|
|
20275
20275
|
ie,
|
|
@@ -20371,7 +20371,7 @@ const aC = ({
|
|
|
20371
20371
|
}
|
|
20372
20372
|
),
|
|
20373
20373
|
/* @__PURE__ */ t(
|
|
20374
|
-
|
|
20374
|
+
Ae,
|
|
20375
20375
|
{
|
|
20376
20376
|
content: e.transactions_widget_overview.edit_transactions_title,
|
|
20377
20377
|
sx: { pt: 48 }
|
|
@@ -20423,7 +20423,7 @@ const aC = ({
|
|
|
20423
20423
|
}
|
|
20424
20424
|
),
|
|
20425
20425
|
/* @__PURE__ */ t(
|
|
20426
|
-
|
|
20426
|
+
Ae,
|
|
20427
20427
|
{
|
|
20428
20428
|
content: e.transactions_widget_overview.categorizing_transactions_title,
|
|
20429
20429
|
sx: { pt: 48 }
|
|
@@ -20466,7 +20466,7 @@ const aC = ({
|
|
|
20466
20466
|
}
|
|
20467
20467
|
),
|
|
20468
20468
|
/* @__PURE__ */ t(
|
|
20469
|
-
|
|
20469
|
+
Ae,
|
|
20470
20470
|
{
|
|
20471
20471
|
content: e.transactions_widget_overview.transaction_rules_title,
|
|
20472
20472
|
sx: { pt: 48 }
|
|
@@ -20555,7 +20555,7 @@ const aC = ({
|
|
|
20555
20555
|
ot,
|
|
20556
20556
|
{
|
|
20557
20557
|
content: /* @__PURE__ */ d(g.Fragment, { children: [
|
|
20558
|
-
/* @__PURE__ */ t(
|
|
20558
|
+
/* @__PURE__ */ t(Ae, { content: e.transactions_widget_overview.split_transactions_title }),
|
|
20559
20559
|
/* @__PURE__ */ t($, { content: e.transactions_widget_overview.split_transactions_description }),
|
|
20560
20560
|
/* @__PURE__ */ t(
|
|
20561
20561
|
$,
|
|
@@ -20748,7 +20748,7 @@ const aC = ({
|
|
|
20748
20748
|
ot,
|
|
20749
20749
|
{
|
|
20750
20750
|
content: /* @__PURE__ */ d(g.Fragment, { children: [
|
|
20751
|
-
/* @__PURE__ */ t(
|
|
20751
|
+
/* @__PURE__ */ t(Ae, { content: e.trends_widget_overview.exploring_trends_title }),
|
|
20752
20752
|
/* @__PURE__ */ t(
|
|
20753
20753
|
ie,
|
|
20754
20754
|
{
|
|
@@ -20768,7 +20768,7 @@ const aC = ({
|
|
|
20768
20768
|
ot,
|
|
20769
20769
|
{
|
|
20770
20770
|
content: /* @__PURE__ */ d(g.Fragment, { children: [
|
|
20771
|
-
/* @__PURE__ */ t(
|
|
20771
|
+
/* @__PURE__ */ t(Ae, { content: e.trends_widget_overview.list_view_title }),
|
|
20772
20772
|
/* @__PURE__ */ t($, { content: e.trends_widget_overview.list_view_description }),
|
|
20773
20773
|
/* @__PURE__ */ t(
|
|
20774
20774
|
ie,
|
|
@@ -20793,7 +20793,7 @@ const aC = ({
|
|
|
20793
20793
|
ot,
|
|
20794
20794
|
{
|
|
20795
20795
|
content: /* @__PURE__ */ d(g.Fragment, { children: [
|
|
20796
|
-
/* @__PURE__ */ t(
|
|
20796
|
+
/* @__PURE__ */ t(Ae, { content: i.insights_work_section_title }),
|
|
20797
20797
|
/* @__PURE__ */ t($, { content: i.insights_work_description }),
|
|
20798
20798
|
/* @__PURE__ */ t(
|
|
20799
20799
|
ie,
|
|
@@ -20824,7 +20824,7 @@ const aC = ({
|
|
|
20824
20824
|
sx: { pt: 8 }
|
|
20825
20825
|
}
|
|
20826
20826
|
),
|
|
20827
|
-
/* @__PURE__ */ t(
|
|
20827
|
+
/* @__PURE__ */ t(Ae, { content: i.dashboard_insights_section_title, sx: { mt: 48 } }),
|
|
20828
20828
|
/* @__PURE__ */ t(
|
|
20829
20829
|
rn,
|
|
20830
20830
|
{
|
|
@@ -20846,7 +20846,7 @@ const aC = ({
|
|
|
20846
20846
|
image: Re.INSIGHTS_CAROUSEL
|
|
20847
20847
|
}
|
|
20848
20848
|
),
|
|
20849
|
-
/* @__PURE__ */ t(
|
|
20849
|
+
/* @__PURE__ */ t(Ae, { content: i.full_feed_section_title, sx: { mt: 48 } }),
|
|
20850
20850
|
/* @__PURE__ */ t(
|
|
20851
20851
|
Bt,
|
|
20852
20852
|
{
|
|
@@ -20887,7 +20887,7 @@ const aC = ({
|
|
|
20887
20887
|
imageLargeBreakPoint: 3
|
|
20888
20888
|
}
|
|
20889
20889
|
),
|
|
20890
|
-
/* @__PURE__ */ t(
|
|
20890
|
+
/* @__PURE__ */ t(Ae, { content: i.hide_insights_section_title, sx: { mt: 48 } }),
|
|
20891
20891
|
/* @__PURE__ */ t(
|
|
20892
20892
|
ot,
|
|
20893
20893
|
{
|
|
@@ -21096,7 +21096,7 @@ const aC = ({
|
|
|
21096
21096
|
p: 0
|
|
21097
21097
|
},
|
|
21098
21098
|
children: /* @__PURE__ */ t(oe, { sx: { "& .MuiListItemButton-root": { pl: 6 } }, children: r.map(({ label: l, type: u }, _) => /* @__PURE__ */ t(
|
|
21099
|
-
|
|
21099
|
+
me,
|
|
21100
21100
|
{
|
|
21101
21101
|
divider: !0,
|
|
21102
21102
|
onClick: () => n(l, u),
|
|
@@ -21215,7 +21215,7 @@ const aC = ({
|
|
|
21215
21215
|
subtitle: i,
|
|
21216
21216
|
guid: a,
|
|
21217
21217
|
sx: o
|
|
21218
|
-
}) => /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(
|
|
21218
|
+
}) => /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ d(me, { "aria-label": e, onClick: n, children: [
|
|
21219
21219
|
a && /* @__PURE__ */ t(He, { children: /* @__PURE__ */ t(Tt, { alt: e, institutionGuid: a || "", size: 32 }) }),
|
|
21220
21220
|
/* @__PURE__ */ t(
|
|
21221
21221
|
se,
|
|
@@ -21226,7 +21226,7 @@ const aC = ({
|
|
|
21226
21226
|
secondaryTypographyProps: { variant: "XSmall" }
|
|
21227
21227
|
}
|
|
21228
21228
|
),
|
|
21229
|
-
/* @__PURE__ */ t(mt, { children: /* @__PURE__ */ t(
|
|
21229
|
+
/* @__PURE__ */ t(mt, { children: /* @__PURE__ */ t(je, {}) })
|
|
21230
21230
|
] }) }), Cl = ({ list: e, onClick: n, sx: i }) => /* @__PURE__ */ t(O, { sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ t(oe, { sx: { "& .MuiDivider-root:last-child": { ml: 0 } }, children: e.map(({ name: a, guid: o, subtitle: r, type: s }, c) => /* @__PURE__ */ d(g.Fragment, { children: [
|
|
21231
21231
|
/* @__PURE__ */ t(
|
|
21232
21232
|
$C,
|
|
@@ -21563,7 +21563,7 @@ const aC = ({
|
|
|
21563
21563
|
}
|
|
21564
21564
|
)
|
|
21565
21565
|
] });
|
|
21566
|
-
},
|
|
21566
|
+
}, w2 = x(({ sx: e }) => {
|
|
21567
21567
|
const { isCopyLoaded: n, isInitialized: i } = ce();
|
|
21568
21568
|
return !n || !i ? /* @__PURE__ */ t(de, {}) : /* @__PURE__ */ t(bt, { sx: { p: 16 }, children: /* @__PURE__ */ t(bl, { sx: e }) });
|
|
21569
21569
|
}), XC = x(({ selectedTab: e }) => {
|
|
@@ -21599,7 +21599,7 @@ const aC = ({
|
|
|
21599
21599
|
] });
|
|
21600
21600
|
});
|
|
21601
21601
|
var ri = /* @__PURE__ */ ((e) => (e[e.Profile = 0] = "Profile", e[e.Devices = 1] = "Devices", e[e.Notifications = 2] = "Notifications", e[e.TransactionRules = 3] = "TransactionRules", e[e.Help = 4] = "Help", e))(ri || {});
|
|
21602
|
-
const
|
|
21602
|
+
const D2 = x(({ onBackClick: e, sx: n }) => {
|
|
21603
21603
|
const { settings: i } = A(), { isCopyLoaded: a, isInitialized: o } = ce(), { config: r } = wt(), { isMobile: s } = Ce(), {
|
|
21604
21604
|
display_user_profile_in_settings: c,
|
|
21605
21605
|
display_mobile_devices_in_settings: l,
|
|
@@ -21637,13 +21637,13 @@ const DT = x(({ onBackClick: e, sx: n }) => {
|
|
|
21637
21637
|
] })
|
|
21638
21638
|
}
|
|
21639
21639
|
);
|
|
21640
|
-
}),
|
|
21640
|
+
}), N2 = x((e) => {
|
|
21641
21641
|
const { clientConfig: n } = wt(), i = n?.master?.deep_link_params?.view;
|
|
21642
21642
|
return i ? /* @__PURE__ */ t(_a, { view: i }) : /* @__PURE__ */ t(bt, { ...e, children: /* @__PURE__ */ t(b, { my: 24, children: /* @__PURE__ */ t(_a, {}) }) });
|
|
21643
|
-
}),
|
|
21643
|
+
}), R2 = (e) => {
|
|
21644
21644
|
const { isMobile: n } = Ce();
|
|
21645
21645
|
return /* @__PURE__ */ t(bt, { ...e, children: /* @__PURE__ */ t(b, { sx: { mx: n ? 0 : 48, my: 24 }, children: /* @__PURE__ */ t(pl, {}) }) });
|
|
21646
|
-
},
|
|
21646
|
+
}, O2 = x(
|
|
21647
21647
|
({ notificationTypes: e, isOpen: n, onClose: i, onNotificationClick: a }) => {
|
|
21648
21648
|
const { config: o } = wt(), { notifications: r, settings: s } = A(), { isCopyLoaded: c } = ce(), [l, u] = g.useState(!1);
|
|
21649
21649
|
return c ? /* @__PURE__ */ d(Z, { children: [
|
|
@@ -22009,7 +22009,7 @@ const JC = (e) => e.reduce((i, a) => {
|
|
|
22009
22009
|
}
|
|
22010
22010
|
);
|
|
22011
22011
|
}, c0 = x(s0), l0 = ({ onBackClick: e, sx: n }) => {
|
|
22012
|
-
const { onEvent: i } = q(), { isDesktop: a, isTablet: o, isMobile: r } = Ce(), { visibleAccounts: s } = be(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: l, getCategoryName: u } = $e(), { sortedTransactions: _ } = Le(), { selectedDateRange: h, setSelectedDateRange: m } = Si(), { isCopyLoaded: p, isInitialized: f, selectedAccounts: S, setSelectedAccounts: y } = ce(), { trends: E } = A(), [I, v] = g.useState(!1), [w, N] = g.useState(!1), [R, M] = g.useState("Chart"), [k, G] = g.useState(""), [L, W] = g.useState(window.innerHeight),
|
|
22012
|
+
const { onEvent: i } = q(), { isDesktop: a, isTablet: o, isMobile: r } = Ce(), { visibleAccounts: s } = be(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: l, getCategoryName: u } = $e(), { sortedTransactions: _ } = Le(), { selectedDateRange: h, setSelectedDateRange: m } = Si(), { isCopyLoaded: p, isInitialized: f, selectedAccounts: S, setSelectedAccounts: y } = ce(), { trends: E } = A(), [I, v] = g.useState(!1), [w, N] = g.useState(!1), [R, M] = g.useState("Chart"), [k, G] = g.useState(""), [L, W] = g.useState(window.innerHeight), ne = L - (r ? 315 : 345);
|
|
22013
22013
|
g.useEffect(() => {
|
|
22014
22014
|
const J = () => W(window.innerHeight);
|
|
22015
22015
|
return window.addEventListener("resize", J), () => window.removeEventListener("resize", J);
|
|
@@ -22024,14 +22024,14 @@ const JC = (e) => e.reduce((i, a) => {
|
|
|
22024
22024
|
v(!0);
|
|
22025
22025
|
});
|
|
22026
22026
|
}, [f, S, h]);
|
|
22027
|
-
const
|
|
22027
|
+
const re = g.useMemo(() => {
|
|
22028
22028
|
if (!I) return { stackedDatasets: [], unstackedDatasets: [] };
|
|
22029
22029
|
const J = e0(
|
|
22030
22030
|
l,
|
|
22031
22031
|
h.start,
|
|
22032
22032
|
h.end
|
|
22033
22033
|
), ke = k.length ? J.filter(
|
|
22034
|
-
(
|
|
22034
|
+
(Ie) => Ie.top_level_category_guid === k || Ie.category_guid === k
|
|
22035
22035
|
) : ap(J);
|
|
22036
22036
|
return {
|
|
22037
22037
|
stackedDatasets: ke.filter(np),
|
|
@@ -22039,16 +22039,16 @@ const JC = (e) => e.reduce((i, a) => {
|
|
|
22039
22039
|
};
|
|
22040
22040
|
}, [l, k, h]), fe = (J, ke) => {
|
|
22041
22041
|
M(ke ?? R), i(F.TRENDS_CLICK_TOGGLE);
|
|
22042
|
-
},
|
|
22043
|
-
const ke = mo(J?.[0], 1),
|
|
22044
|
-
m({ start: ke, end:
|
|
22042
|
+
}, Te = (J) => {
|
|
22043
|
+
const ke = mo(J?.[0], 1), Ie = J?.[1], Ve = nc(Ie, ke);
|
|
22044
|
+
m({ start: ke, end: Ie }), i(F.TRENDS_CLICK_DATE, {
|
|
22045
22045
|
time_period: Ve + "M"
|
|
22046
22046
|
});
|
|
22047
22047
|
}, Me = () => {
|
|
22048
22048
|
i(F.TRENDS_CLICK_FILTER);
|
|
22049
|
-
},
|
|
22049
|
+
}, ge = (J) => {
|
|
22050
22050
|
G(J);
|
|
22051
|
-
},
|
|
22051
|
+
}, he = (J) => {
|
|
22052
22052
|
G(J), i(F.TRENDS_CLICK_LEGEND, { category: u(J) });
|
|
22053
22053
|
}, Xe = (J) => {
|
|
22054
22054
|
i(F.TRENDS_HOVER_LEGEND, { category: u(J) });
|
|
@@ -22061,7 +22061,7 @@ const JC = (e) => e.reduce((i, a) => {
|
|
|
22061
22061
|
bt,
|
|
22062
22062
|
{
|
|
22063
22063
|
accountOptions: s,
|
|
22064
|
-
calendarActions: { onRangeChanged:
|
|
22064
|
+
calendarActions: { onRangeChanged: Te },
|
|
22065
22065
|
dateRange: h,
|
|
22066
22066
|
dateRangeVariant: "timeframebuttons",
|
|
22067
22067
|
onAccountsFilterClick: Me,
|
|
@@ -22106,20 +22106,20 @@ const JC = (e) => e.reduce((i, a) => {
|
|
|
22106
22106
|
R === "Chart" && /* @__PURE__ */ t(
|
|
22107
22107
|
Fu,
|
|
22108
22108
|
{
|
|
22109
|
-
availableHeight:
|
|
22110
|
-
onClickLegend:
|
|
22109
|
+
availableHeight: ne,
|
|
22110
|
+
onClickLegend: he,
|
|
22111
22111
|
onHoverArea: V,
|
|
22112
22112
|
onHoverLegend: Xe,
|
|
22113
22113
|
onHoverPoint: pe,
|
|
22114
|
-
stackedDatasets:
|
|
22115
|
-
unstackedDatasets:
|
|
22114
|
+
stackedDatasets: re.stackedDatasets,
|
|
22115
|
+
unstackedDatasets: re.unstackedDatasets
|
|
22116
22116
|
}
|
|
22117
22117
|
),
|
|
22118
22118
|
R === "Table" && /* @__PURE__ */ t(
|
|
22119
22119
|
El,
|
|
22120
22120
|
{
|
|
22121
22121
|
monthlyCategoryTotals: l,
|
|
22122
|
-
onClickRow:
|
|
22122
|
+
onClickRow: ge,
|
|
22123
22123
|
selectedCategory: k,
|
|
22124
22124
|
selectedDateRange: h
|
|
22125
22125
|
}
|
|
@@ -22140,8 +22140,8 @@ const JC = (e) => e.reduce((i, a) => {
|
|
|
22140
22140
|
]
|
|
22141
22141
|
}
|
|
22142
22142
|
);
|
|
22143
|
-
},
|
|
22144
|
-
const e =
|
|
22143
|
+
}, L2 = x(l0), d0 = () => {
|
|
22144
|
+
const e = ze(), { monthlyCategoryTotals: n } = $e(), { trends: i } = A(), a = rp(n);
|
|
22145
22145
|
return /* @__PURE__ */ t(
|
|
22146
22146
|
ni,
|
|
22147
22147
|
{
|
|
@@ -22175,7 +22175,7 @@ const JC = (e) => e.reduce((i, a) => {
|
|
|
22175
22175
|
children: o ? /* @__PURE__ */ t(_0, {}) : /* @__PURE__ */ t(de, {})
|
|
22176
22176
|
}
|
|
22177
22177
|
);
|
|
22178
|
-
},
|
|
22178
|
+
}, M2 = x(u0), h0 = 70, ys = ({
|
|
22179
22179
|
title: e,
|
|
22180
22180
|
totalAmount: n,
|
|
22181
22181
|
transactionType: i,
|
|
@@ -22242,7 +22242,7 @@ const JC = (e) => e.reduce((i, a) => {
|
|
|
22242
22242
|
{
|
|
22243
22243
|
ref: c,
|
|
22244
22244
|
sx: { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" },
|
|
22245
|
-
children: /* @__PURE__ */ t(
|
|
22245
|
+
children: /* @__PURE__ */ t(Qe, { children: _ })
|
|
22246
22246
|
}
|
|
22247
22247
|
),
|
|
22248
22248
|
r && s >= 450 && !y && /* @__PURE__ */ t(
|
|
@@ -22268,7 +22268,7 @@ const JC = (e) => e.reduce((i, a) => {
|
|
|
22268
22268
|
/* @__PURE__ */ t(X, { color: "text.secondary", variant: "subtitle2", children: e.zero_state_content_description })
|
|
22269
22269
|
] })
|
|
22270
22270
|
] });
|
|
22271
|
-
}),
|
|
22271
|
+
}), k2 = x(({ onCtaClick: e }) => {
|
|
22272
22272
|
const { visibleAccounts: n } = be(), { onEvent: i } = q(), { monthlyCategoryTotals: a, loadMonthlyCategoryTotals: o, monthlyTotalsLoaded: r } = $e(), s = {
|
|
22273
22273
|
start: jd(/* @__PURE__ */ new Date(), 1),
|
|
22274
22274
|
end: /* @__PURE__ */ new Date()
|
|
@@ -22340,7 +22340,7 @@ const JC = (e) => e.reduce((i, a) => {
|
|
|
22340
22340
|
}), m0 = x(
|
|
22341
22341
|
({ isExpanded: e, onClick: n }) => {
|
|
22342
22342
|
const i = Ee();
|
|
22343
|
-
return /* @__PURE__ */ t(j, { sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ t(
|
|
22343
|
+
return /* @__PURE__ */ t(j, { sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ t(me, { onClick: n, sx: { justifyContent: "center" }, children: /* @__PURE__ */ d(
|
|
22344
22344
|
b,
|
|
22345
22345
|
{
|
|
22346
22346
|
sx: { color: i.palette.primary.main, flexDirection: "row", alignItems: "center" },
|
|
@@ -22393,7 +22393,7 @@ const JC = (e) => e.reduce((i, a) => {
|
|
|
22393
22393
|
) })
|
|
22394
22394
|
] });
|
|
22395
22395
|
return /* @__PURE__ */ t(j, { sx: { bgcolor: "background.paper" }, children: e ? /* @__PURE__ */ t(
|
|
22396
|
-
|
|
22396
|
+
me,
|
|
22397
22397
|
{
|
|
22398
22398
|
onClick: e,
|
|
22399
22399
|
sx: {
|
|
@@ -22460,7 +22460,7 @@ const JC = (e) => e.reduce((i, a) => {
|
|
|
22460
22460
|
_(!u);
|
|
22461
22461
|
};
|
|
22462
22462
|
return /* @__PURE__ */ t(b, { sx: { bgColor: "background.paper", width: "100%" }, children: /* @__PURE__ */ d(oe, { children: [
|
|
22463
|
-
/* @__PURE__ */ t(b, { sx: { pb: 4, pt: 16, px: 16 }, children: /* @__PURE__ */ t(
|
|
22463
|
+
/* @__PURE__ */ t(b, { sx: { pb: 4, pt: 16, px: 16 }, children: /* @__PURE__ */ t(Qe, { children: l.categories }) }),
|
|
22464
22464
|
a.map((S, y) => p(S, y, a)),
|
|
22465
22465
|
/* @__PURE__ */ t(
|
|
22466
22466
|
ei,
|
|
@@ -23814,7 +23814,7 @@ const Ui = g.createContext(null), A0 = ({
|
|
|
23814
23814
|
shouldApplyNewAnimation: c = !1,
|
|
23815
23815
|
visibleCardsCount: l = 1
|
|
23816
23816
|
}) => {
|
|
23817
|
-
const u =
|
|
23817
|
+
const u = ze(), { carouselCopy: _ } = Kn(), h = Math.floor(s) > r || n - l + 1 === 0, m = s < 0 || i - 1 === n, p = u.palette.grey[500], f = e?.primary_300 ?? u.palette.primary.main;
|
|
23818
23818
|
return /* @__PURE__ */ d(
|
|
23819
23819
|
b,
|
|
23820
23820
|
{
|
|
@@ -23916,8 +23916,8 @@ const Ui = g.createContext(null), A0 = ({
|
|
|
23916
23916
|
const V = f.current.offsetWidth, pe = 8;
|
|
23917
23917
|
let J;
|
|
23918
23918
|
if (p > 1) {
|
|
23919
|
-
const
|
|
23920
|
-
J = (V -
|
|
23919
|
+
const Ie = (V - (p - 1) * pe) / p / 3;
|
|
23920
|
+
J = (V - Ie - (p - 1) * pe) / p;
|
|
23921
23921
|
} else
|
|
23922
23922
|
J = V;
|
|
23923
23923
|
M(J);
|
|
@@ -23952,29 +23952,29 @@ const Ui = g.createContext(null), A0 = ({
|
|
|
23952
23952
|
top: 0,
|
|
23953
23953
|
behavior: "smooth"
|
|
23954
23954
|
});
|
|
23955
|
-
},
|
|
23955
|
+
}, ne = () => {
|
|
23956
23956
|
W(jt.ON_CAROUSEL_BACK_CLICK), f.current && R && f.current.scrollTo({
|
|
23957
23957
|
left: Math.max(0, y - (R + 8)),
|
|
23958
23958
|
top: 0,
|
|
23959
23959
|
behavior: "smooth"
|
|
23960
23960
|
});
|
|
23961
|
-
},
|
|
23961
|
+
}, re = () => {
|
|
23962
23962
|
f.current && E(f.current.scrollLeft);
|
|
23963
23963
|
}, fe = () => {
|
|
23964
23964
|
if (!w || !I) return;
|
|
23965
23965
|
w - I > M0 ? W(jt.ON_CAROUSEL_FORWARD_SWIPE) : W(jt.ON_CAROUSEL_BACK_SWIPE);
|
|
23966
|
-
},
|
|
23966
|
+
}, Te = (V) => {
|
|
23967
23967
|
v(V.targetTouches[0].clientX);
|
|
23968
23968
|
}, Me = (V) => {
|
|
23969
23969
|
v(null), N(V.targetTouches[0].clientX);
|
|
23970
|
-
},
|
|
23970
|
+
}, ge = {
|
|
23971
23971
|
clientColorScheme: i,
|
|
23972
23972
|
showCTAColocatedWithText: a,
|
|
23973
23973
|
heightOverrides: o,
|
|
23974
23974
|
posthog: s,
|
|
23975
23975
|
showIcon: u,
|
|
23976
23976
|
variant: h
|
|
23977
|
-
},
|
|
23977
|
+
}, he = R ? Math.round(y / (R + 8)) : 0, Xe = f.current ? f.current.scrollWidth - f.current.offsetWidth : 0;
|
|
23978
23978
|
return /* @__PURE__ */ d(
|
|
23979
23979
|
b,
|
|
23980
23980
|
{
|
|
@@ -23993,9 +23993,9 @@ const Ui = g.createContext(null), A0 = ({
|
|
|
23993
23993
|
b,
|
|
23994
23994
|
{
|
|
23995
23995
|
direction: "row",
|
|
23996
|
-
onScroll:
|
|
23996
|
+
onScroll: re,
|
|
23997
23997
|
onTouchEnd: fe,
|
|
23998
|
-
onTouchMove:
|
|
23998
|
+
onTouchMove: Te,
|
|
23999
23999
|
onTouchStart: Me,
|
|
24000
24000
|
ref: f,
|
|
24001
24001
|
sx: {
|
|
@@ -24017,7 +24017,7 @@ const Ui = g.createContext(null), A0 = ({
|
|
|
24017
24017
|
},
|
|
24018
24018
|
children: [
|
|
24019
24019
|
n.map((V, pe) => {
|
|
24020
|
-
const J = pe + 1, ke = n.length + 1,
|
|
24020
|
+
const J = pe + 1, ke = n.length + 1, Ie = T(
|
|
24021
24021
|
L.card_position_in_carousel_aria,
|
|
24022
24022
|
J.toString(),
|
|
24023
24023
|
ke.toString()
|
|
@@ -24025,13 +24025,13 @@ const Ui = g.createContext(null), A0 = ({
|
|
|
24025
24025
|
return /* @__PURE__ */ t(
|
|
24026
24026
|
k0,
|
|
24027
24027
|
{
|
|
24028
|
-
ariaLabel: `${
|
|
24028
|
+
ariaLabel: `${Ie}: ${Wt}, ${z}`,
|
|
24029
24029
|
beat: V,
|
|
24030
24030
|
index: pe,
|
|
24031
|
-
isActiveCard: pe ===
|
|
24031
|
+
isActiveCard: pe === he,
|
|
24032
24032
|
onCardClick: r,
|
|
24033
24033
|
widthOverrides: R || void 0,
|
|
24034
|
-
...
|
|
24034
|
+
...ge
|
|
24035
24035
|
},
|
|
24036
24036
|
`${V.guid} ${pe}`
|
|
24037
24037
|
);
|
|
@@ -24039,10 +24039,10 @@ const Ui = g.createContext(null), A0 = ({
|
|
|
24039
24039
|
/* @__PURE__ */ t(
|
|
24040
24040
|
z0,
|
|
24041
24041
|
{
|
|
24042
|
-
isActiveCard:
|
|
24042
|
+
isActiveCard: he === n.length,
|
|
24043
24043
|
onCardClick: r,
|
|
24044
24044
|
widthOverrides: R || void 0,
|
|
24045
|
-
...
|
|
24045
|
+
...ge
|
|
24046
24046
|
}
|
|
24047
24047
|
)
|
|
24048
24048
|
]
|
|
@@ -24052,10 +24052,10 @@ const Ui = g.createContext(null), A0 = ({
|
|
|
24052
24052
|
G0,
|
|
24053
24053
|
{
|
|
24054
24054
|
clientColorScheme: i,
|
|
24055
|
-
currentBeatIndex:
|
|
24055
|
+
currentBeatIndex: he + p - 1,
|
|
24056
24056
|
numBeats: n.length + 1,
|
|
24057
24057
|
onNextClick: K,
|
|
24058
|
-
onPreviousClick:
|
|
24058
|
+
onPreviousClick: ne,
|
|
24059
24059
|
scrollRightBoundary: Xe,
|
|
24060
24060
|
scrollX: y,
|
|
24061
24061
|
shouldApplyNewAnimation: k,
|
|
@@ -24209,7 +24209,7 @@ const Ui = g.createContext(null), A0 = ({
|
|
|
24209
24209
|
widthOverrides: u
|
|
24210
24210
|
}
|
|
24211
24211
|
);
|
|
24212
|
-
},
|
|
24212
|
+
}, G2 = x(Rl), Ol = ({
|
|
24213
24213
|
ariaLabel: e,
|
|
24214
24214
|
carouselSize: n,
|
|
24215
24215
|
heightOverrides: i,
|
|
@@ -24251,7 +24251,7 @@ const Ui = g.createContext(null), A0 = ({
|
|
|
24251
24251
|
widthOverrides: l
|
|
24252
24252
|
}
|
|
24253
24253
|
);
|
|
24254
|
-
},
|
|
24254
|
+
}, B2 = x(Ol), $0 = () => /* @__PURE__ */ t(
|
|
24255
24255
|
O,
|
|
24256
24256
|
{
|
|
24257
24257
|
sx: {
|
|
@@ -24294,7 +24294,7 @@ const Ui = g.createContext(null), A0 = ({
|
|
|
24294
24294
|
visibleCardsCount: R = 1,
|
|
24295
24295
|
widthOverrides: M
|
|
24296
24296
|
}) => {
|
|
24297
|
-
const k =
|
|
24297
|
+
const k = ze(), [G, L] = xt("STANDARD"), [W, K] = xt(!1), ne = su([u], Tn), re = cu([_], Tn);
|
|
24298
24298
|
g.useEffect(() => {
|
|
24299
24299
|
Tn.isInitialized || Tn.initialize(r, I, c);
|
|
24300
24300
|
}, [r, I, c, Tn.isInitialized]), g.useEffect(() => {
|
|
@@ -24312,7 +24312,7 @@ const Ui = g.createContext(null), A0 = ({
|
|
|
24312
24312
|
showWithMargin: E,
|
|
24313
24313
|
useDarkMode: v,
|
|
24314
24314
|
widthOverrides: M
|
|
24315
|
-
},
|
|
24315
|
+
}, Te = {
|
|
24316
24316
|
carouselSize: G,
|
|
24317
24317
|
variant: N,
|
|
24318
24318
|
...fe
|
|
@@ -24321,7 +24321,7 @@ const Ui = g.createContext(null), A0 = ({
|
|
|
24321
24321
|
// The Theme provider must wrap the component so that the styles don't break when imported into other applications.
|
|
24322
24322
|
/* @__PURE__ */ d(Sd, { theme: k, children: [
|
|
24323
24323
|
/* @__PURE__ */ t(a_, {}),
|
|
24324
|
-
/* @__PURE__ */ t(A0, { onEvent:
|
|
24324
|
+
/* @__PURE__ */ t(A0, { onEvent: ne, onPageview: re, store: Tn, children: /* @__PURE__ */ d(W0, { heightOverrides: s, widthOverrides: M, children: [
|
|
24325
24325
|
(n || !Tn.isInitialized) && /* @__PURE__ */ t($0, {}),
|
|
24326
24326
|
W && S && /* @__PURE__ */ t(
|
|
24327
24327
|
F0,
|
|
@@ -24345,8 +24345,8 @@ const Ui = g.createContext(null), A0 = ({
|
|
|
24345
24345
|
...fe
|
|
24346
24346
|
}
|
|
24347
24347
|
),
|
|
24348
|
-
W && !i.length && w && /* @__PURE__ */ t(Rl, { clientColorScheme: a, ...
|
|
24349
|
-
W && !i.length && !w && /* @__PURE__ */ t(Ol, { ...
|
|
24348
|
+
W && !i.length && w && /* @__PURE__ */ t(Rl, { clientColorScheme: a, ...Te }),
|
|
24349
|
+
W && !i.length && !w && /* @__PURE__ */ t(Ol, { ...Te })
|
|
24350
24350
|
] }) })
|
|
24351
24351
|
] })
|
|
24352
24352
|
);
|
|
@@ -24596,7 +24596,7 @@ const Ui = g.createContext(null), A0 = ({
|
|
|
24596
24596
|
selectedDateRange: i,
|
|
24597
24597
|
totals: a
|
|
24598
24598
|
}) => {
|
|
24599
|
-
const o =
|
|
24599
|
+
const o = ze(), { trends: r } = A(), { isSmallMobile: s, isMobile: c, isSmallTablet: l, isTablet: u } = Ce(), _ = [o.palette.chart?.chart1, o.palette.chart?.chart2], h = J0(a, i), m = eb(h, r), [p, f] = g.useState(0), S = 458, y = 195, E = 56, I = c || s ? y : l || u ? S : p;
|
|
24600
24600
|
return g.useEffect(() => {
|
|
24601
24601
|
const v = Math.max(e - E, n);
|
|
24602
24602
|
f(v);
|
|
@@ -24621,13 +24621,13 @@ const Ui = g.createContext(null), A0 = ({
|
|
|
24621
24621
|
}
|
|
24622
24622
|
);
|
|
24623
24623
|
}, nb = x(tb), ib = ({ onBackClick: e, onInsightCardClick: n, sx: i }) => {
|
|
24624
|
-
const { onEvent: a } = q(), o =
|
|
24624
|
+
const { onEvent: a } = q(), o = ze(), { isLargeDesktop: r, isDesktop: s, isMobile: c } = Ce(), { visibleAccounts: l } = be(), { loadMonthlyCategoryTotals: u, monthlyCategoryTotals: _ } = $e(), { setFilter: h, sortedTransactions: m } = Le(), { selectedDateRange: p, setSelectedCategoryData: f, setSelectedDateRange: S } = Si(), {
|
|
24625
24625
|
isCopyLoaded: y,
|
|
24626
24626
|
isInitialized: E,
|
|
24627
24627
|
selectedAccounts: I,
|
|
24628
24628
|
selectedAccountGuids: v,
|
|
24629
24629
|
setSelectedAccounts: w
|
|
24630
|
-
} = ce(), { trends: N } = A(), R = lu(), M = s || r, [k, G] = g.useState(!1), [L, W] = g.useState("Chart"), [K,
|
|
24630
|
+
} = ce(), { trends: N } = A(), R = lu(), M = s || r, [k, G] = g.useState(!1), [L, W] = g.useState("Chart"), [K, ne] = g.useState(""), [re, fe] = g.useState(!1), [Te, Me] = g.useState(window.innerHeight), ge = Te - 208, he = Te - (R ? 494 : 266);
|
|
24631
24631
|
g.useEffect(() => {
|
|
24632
24632
|
const Ve = () => Me(window.innerHeight);
|
|
24633
24633
|
return window.addEventListener("resize", Ve), () => window.removeEventListener("resize", Ve);
|
|
@@ -24669,8 +24669,8 @@ const Ui = g.createContext(null), A0 = ({
|
|
|
24669
24669
|
});
|
|
24670
24670
|
}, ke = () => {
|
|
24671
24671
|
a(F.TRENDS_CLICK_FILTER);
|
|
24672
|
-
},
|
|
24673
|
-
|
|
24672
|
+
}, Ie = (Ve) => {
|
|
24673
|
+
ne(Ve);
|
|
24674
24674
|
};
|
|
24675
24675
|
return !y || !E || !k ? /* @__PURE__ */ t(de, {}) : _.length === 0 ? /* @__PURE__ */ t(
|
|
24676
24676
|
jn,
|
|
@@ -24719,7 +24719,7 @@ const Ui = g.createContext(null), A0 = ({
|
|
|
24719
24719
|
]
|
|
24720
24720
|
}
|
|
24721
24721
|
),
|
|
24722
|
-
/* @__PURE__ */ t(b, { alignItems: "center", flexDirection: "row", width: "100%", children: /* @__PURE__ */ t(O, { flexGrow: 1, children: K && /* @__PURE__ */ d(te, { onClick: () =>
|
|
24722
|
+
/* @__PURE__ */ t(b, { alignItems: "center", flexDirection: "row", width: "100%", children: /* @__PURE__ */ t(O, { flexGrow: 1, children: K && /* @__PURE__ */ d(te, { onClick: () => ne(""), sx: { p: 0, pr: 5 }, children: [
|
|
24723
24723
|
/* @__PURE__ */ t(U, { name: "arrow_back" }),
|
|
24724
24724
|
N.all_categories
|
|
24725
24725
|
] }) }) }),
|
|
@@ -24728,7 +24728,7 @@ const Ui = g.createContext(null), A0 = ({
|
|
|
24728
24728
|
L === "Chart" && /* @__PURE__ */ t(
|
|
24729
24729
|
nb,
|
|
24730
24730
|
{
|
|
24731
|
-
availableHeight:
|
|
24731
|
+
availableHeight: ge,
|
|
24732
24732
|
minHeight: 450,
|
|
24733
24733
|
selectedDateRange: p,
|
|
24734
24734
|
totals: _
|
|
@@ -24739,7 +24739,7 @@ const Ui = g.createContext(null), A0 = ({
|
|
|
24739
24739
|
{
|
|
24740
24740
|
height: "unset",
|
|
24741
24741
|
monthlyCategoryTotals: _,
|
|
24742
|
-
onClickRow:
|
|
24742
|
+
onClickRow: Ie,
|
|
24743
24743
|
selectedCategory: K,
|
|
24744
24744
|
selectedDateRange: p
|
|
24745
24745
|
}
|
|
@@ -24750,7 +24750,7 @@ const Ui = g.createContext(null), A0 = ({
|
|
|
24750
24750
|
/* @__PURE__ */ t(
|
|
24751
24751
|
f0,
|
|
24752
24752
|
{
|
|
24753
|
-
availableHeight:
|
|
24753
|
+
availableHeight: he,
|
|
24754
24754
|
onListItemClick: Xe,
|
|
24755
24755
|
transactions: m
|
|
24756
24756
|
}
|
|
@@ -24760,11 +24760,11 @@ const Ui = g.createContext(null), A0 = ({
|
|
|
24760
24760
|
]
|
|
24761
24761
|
}
|
|
24762
24762
|
),
|
|
24763
|
-
|
|
24763
|
+
re && /* @__PURE__ */ t(Q0, { onClose: V })
|
|
24764
24764
|
]
|
|
24765
24765
|
}
|
|
24766
24766
|
);
|
|
24767
|
-
},
|
|
24767
|
+
}, H2 = x(ib);
|
|
24768
24768
|
class ab {
|
|
24769
24769
|
globalStore;
|
|
24770
24770
|
selectedCategoryData = null;
|
|
@@ -24772,8 +24772,8 @@ class ab {
|
|
|
24772
24772
|
visibleListLength = 5;
|
|
24773
24773
|
constructor(n) {
|
|
24774
24774
|
this.globalStore = n, this.selectedDateRange = {
|
|
24775
|
-
start: mo(
|
|
24776
|
-
end:
|
|
24775
|
+
start: mo(qe(Ht(/* @__PURE__ */ new Date(), 6)), 1),
|
|
24776
|
+
end: qe(/* @__PURE__ */ new Date())
|
|
24777
24777
|
}, Pe(this);
|
|
24778
24778
|
}
|
|
24779
24779
|
setSelectedCategoryData = (n) => {
|
|
@@ -24815,7 +24815,7 @@ class ab {
|
|
|
24815
24815
|
if (!this.selectedCategoryData?.transactions || this.selectedCategoryData.transactions.length === 0)
|
|
24816
24816
|
return [];
|
|
24817
24817
|
const n = [];
|
|
24818
|
-
let i =
|
|
24818
|
+
let i = Ke(this.selectedDateRange.start);
|
|
24819
24819
|
const a = this.selectedDateRange.end;
|
|
24820
24820
|
for (; nt(i, a); ) {
|
|
24821
24821
|
const o = this.selectedCategoryData.transactions.filter((r) => {
|
|
@@ -24905,8 +24905,8 @@ class sb {
|
|
|
24905
24905
|
selectedAccountGuids = this.selectedAccounts.map((n) => n.guid);
|
|
24906
24906
|
displayedDate = /* @__PURE__ */ new Date();
|
|
24907
24907
|
displayedDateRange = {
|
|
24908
|
-
start:
|
|
24909
|
-
end:
|
|
24908
|
+
start: Ke(this.displayedDate),
|
|
24909
|
+
end: qe(this.displayedDate)
|
|
24910
24910
|
};
|
|
24911
24911
|
constructor(n) {
|
|
24912
24912
|
Pe(this), this.globalStore = n;
|
|
@@ -24989,7 +24989,7 @@ class cb {
|
|
|
24989
24989
|
}
|
|
24990
24990
|
};
|
|
24991
24991
|
}
|
|
24992
|
-
class
|
|
24992
|
+
class P2 {
|
|
24993
24993
|
// Global properties
|
|
24994
24994
|
appConfig = bs;
|
|
24995
24995
|
endpoint = "/";
|
|
@@ -25058,7 +25058,7 @@ const Va = ({
|
|
|
25058
25058
|
primaryText: a,
|
|
25059
25059
|
secondaryText: o
|
|
25060
25060
|
}) => /* @__PURE__ */ d(Z, { children: [
|
|
25061
|
-
/* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ d(
|
|
25061
|
+
/* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ d(me, { onClick: i, children: [
|
|
25062
25062
|
/* @__PURE__ */ t(se, { primary: a, secondary: o }),
|
|
25063
25063
|
e
|
|
25064
25064
|
] }) }),
|
|
@@ -25360,7 +25360,7 @@ const Va = ({
|
|
|
25360
25360
|
/* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper" }, children: a.is_manual || !c.ctaCopy ? /* @__PURE__ */ d(b, { alignItems: "center", direction: "row", px: 24, py: 12, children: [
|
|
25361
25361
|
/* @__PURE__ */ t(He, { children: /* @__PURE__ */ t(Bn, { backingSx: { backgroundColor: c.color, borderRadius: 1 }, size: 32, children: c.icon }) }),
|
|
25362
25362
|
/* @__PURE__ */ t(se, { primary: c.mainMessage, secondary: c.secondaryMessage })
|
|
25363
|
-
] }) : /* @__PURE__ */ d(
|
|
25363
|
+
] }) : /* @__PURE__ */ d(me, { onClick: () => n(!0), children: [
|
|
25364
25364
|
/* @__PURE__ */ t(He, { children: /* @__PURE__ */ t(Bn, { backingSx: { backgroundColor: c.color, borderRadius: 1 }, size: 32, children: c.icon }) }),
|
|
25365
25365
|
/* @__PURE__ */ t(
|
|
25366
25366
|
se,
|
|
@@ -25377,7 +25377,7 @@ const Va = ({
|
|
|
25377
25377
|
] }) }),
|
|
25378
25378
|
/* @__PURE__ */ t(P, { sx: { ml: a.is_manual || !a.institution_url ? 0 : 24 } }),
|
|
25379
25379
|
!a.is_manual && a.institution_url && /* @__PURE__ */ d(Z, { children: [
|
|
25380
|
-
/* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ d(
|
|
25380
|
+
/* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ d(me, { component: "a", href: a.institution_url, target: "_blank", children: [
|
|
25381
25381
|
/* @__PURE__ */ t(He, { children: /* @__PURE__ */ t(
|
|
25382
25382
|
Bn,
|
|
25383
25383
|
{
|
|
@@ -25525,7 +25525,7 @@ const Va = ({
|
|
|
25525
25525
|
);
|
|
25526
25526
|
return /* @__PURE__ */ t(g.Fragment, { children: r ? /* @__PURE__ */ d(Z, { children: [
|
|
25527
25527
|
/* @__PURE__ */ t(j, { sx: { backgroundColor: "background.paper", px: 0 }, children: /* @__PURE__ */ d(
|
|
25528
|
-
|
|
25528
|
+
me,
|
|
25529
25529
|
{
|
|
25530
25530
|
onClick: () => {
|
|
25531
25531
|
u(h), c(!0), h?.event && n(h.event, { account_guid: i.guid });
|
|
@@ -25866,7 +25866,7 @@ const Va = ({
|
|
|
25866
25866
|
] }) : /* @__PURE__ */ t(de, {})
|
|
25867
25867
|
}
|
|
25868
25868
|
) : /* @__PURE__ */ t(de, {});
|
|
25869
|
-
},
|
|
25869
|
+
}, F2 = x(vb), wb = ({ onPrimaryCtaClick: e, sx: n }) => {
|
|
25870
25870
|
const { visibleAccounts: i } = be(), { accounts: a } = A(), { isCopyLoaded: o, isInitialized: r, selectedAccounts: s, setSelectedAccounts: c } = ce();
|
|
25871
25871
|
return g.useEffect(() => {
|
|
25872
25872
|
c(i);
|
|
@@ -25897,7 +25897,7 @@ const Va = ({
|
|
|
25897
25897
|
] }) : /* @__PURE__ */ t(de, {})
|
|
25898
25898
|
}
|
|
25899
25899
|
) : /* @__PURE__ */ t(de, {});
|
|
25900
|
-
},
|
|
25900
|
+
}, W2 = x(wb), Db = () => /* @__PURE__ */ d(
|
|
25901
25901
|
"svg",
|
|
25902
25902
|
{
|
|
25903
25903
|
fill: "none",
|
|
@@ -26382,7 +26382,7 @@ const Va = ({
|
|
|
26382
26382
|
]
|
|
26383
26383
|
}
|
|
26384
26384
|
) : /* @__PURE__ */ t(de, {});
|
|
26385
|
-
}, $
|
|
26385
|
+
}, $2 = x(Ob);
|
|
26386
26386
|
class ws {
|
|
26387
26387
|
fetchInstance;
|
|
26388
26388
|
constructor(n, i) {
|
|
@@ -26759,7 +26759,7 @@ const kb = () => {
|
|
|
26759
26759
|
]
|
|
26760
26760
|
}
|
|
26761
26761
|
) : /* @__PURE__ */ t(de, {});
|
|
26762
|
-
},
|
|
26762
|
+
}, U2 = x(Pb), Ds = 5, Fb = 100, Wb = 25, $b = (e) => {
|
|
26763
26763
|
const n = (o) => {
|
|
26764
26764
|
o.active || e.alphaTarget(0.3).restart(), o.subject.fx = o.subject.x, o.subject.fy = o.subject.y;
|
|
26765
26765
|
}, i = (o) => {
|
|
@@ -27066,7 +27066,7 @@ const qb = ({
|
|
|
27066
27066
|
return `${r} - ${s}`;
|
|
27067
27067
|
}, [n, i]);
|
|
27068
27068
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
|
27069
|
-
/* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(
|
|
27069
|
+
/* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(me, { children: [
|
|
27070
27070
|
/* @__PURE__ */ t(He, { children: /* @__PURE__ */ t(Lt, { categoryGuid: e.guid, variant: "filled" }) }),
|
|
27071
27071
|
/* @__PURE__ */ t(se, { primary: e.name, secondary: a })
|
|
27072
27072
|
] }) }),
|
|
@@ -27129,7 +27129,7 @@ const qb = ({
|
|
|
27129
27129
|
`${e.totalAmount === 0 ? "" : e.totalAmount}`
|
|
27130
27130
|
);
|
|
27131
27131
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
|
27132
|
-
/* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(
|
|
27132
|
+
/* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(me, { onClick: () => r(!0), children: [
|
|
27133
27133
|
/* @__PURE__ */ t(He, { children: /* @__PURE__ */ t(Lt, { categoryGuid: e.guid }) }),
|
|
27134
27134
|
/* @__PURE__ */ t(
|
|
27135
27135
|
se,
|
|
@@ -27178,7 +27178,7 @@ const qb = ({
|
|
|
27178
27178
|
return g.useEffect(() => {
|
|
27179
27179
|
s(n);
|
|
27180
27180
|
}, [n]), g.useEffect(() => {
|
|
27181
|
-
_ && !o && m(h,
|
|
27181
|
+
_ && !o && m(h, Ke(/* @__PURE__ */ new Date()), qe(/* @__PURE__ */ new Date())).then(
|
|
27182
27182
|
() => {
|
|
27183
27183
|
r().finally();
|
|
27184
27184
|
}
|
|
@@ -27218,7 +27218,7 @@ const qb = ({
|
|
|
27218
27218
|
]
|
|
27219
27219
|
}
|
|
27220
27220
|
) : /* @__PURE__ */ t(de, {});
|
|
27221
|
-
},
|
|
27221
|
+
}, V2 = x(ay), Bl = ({ budget: e }) => {
|
|
27222
27222
|
const {
|
|
27223
27223
|
amount: n,
|
|
27224
27224
|
budgetColors: { background: i },
|
|
@@ -27253,7 +27253,7 @@ const qb = ({
|
|
|
27253
27253
|
percentage: o,
|
|
27254
27254
|
transaction_total: r
|
|
27255
27255
|
} = e, { setSelectedSubBudget: s } = ht();
|
|
27256
|
-
return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(
|
|
27256
|
+
return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(me, { onClick: () => s(e), children: [
|
|
27257
27257
|
/* @__PURE__ */ t(He, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ t(No, { color: i, percent: o, size: 40, children: /* @__PURE__ */ t(Lt, { categoryGuid: a.parent_guid, variant: "basic" }) }) }),
|
|
27258
27258
|
/* @__PURE__ */ t(
|
|
27259
27259
|
se,
|
|
@@ -27280,7 +27280,7 @@ const qb = ({
|
|
|
27280
27280
|
p && Number(h) > 0 && (await s(p, Number(h), n.guid), _(!1), l(!1), f(void 0));
|
|
27281
27281
|
};
|
|
27282
27282
|
return /* @__PURE__ */ d(O, { children: [
|
|
27283
|
-
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ t(
|
|
27283
|
+
/* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ t(me, { onClick: S, children: /* @__PURE__ */ t(se, { children: /* @__PURE__ */ d(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
27284
27284
|
/* @__PURE__ */ d(b, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
27285
27285
|
/* @__PURE__ */ t(U, { fill: !0, name: "add_box", size: 24, sx: { color: "primary.light" } }),
|
|
27286
27286
|
/* @__PURE__ */ t(C, { bold: !0, sx: { color: "primary.light" }, variant: "Body", children: i.add_sub_budget_button })
|
|
@@ -27545,7 +27545,7 @@ const qb = ({
|
|
|
27545
27545
|
subBudgets: l,
|
|
27546
27546
|
transaction_total: u
|
|
27547
27547
|
} = e;
|
|
27548
|
-
return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(
|
|
27548
|
+
return /* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(me, { onClick: () => n?.(e), children: [
|
|
27549
27549
|
/* @__PURE__ */ t(He, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ t(No, { color: a, percent: c, size: 40, children: /* @__PURE__ */ t(Lt, { categoryGuid: r, variant: "basic" }) }) }),
|
|
27550
27550
|
/* @__PURE__ */ t(
|
|
27551
27551
|
se,
|
|
@@ -27572,7 +27572,7 @@ const qb = ({
|
|
|
27572
27572
|
});
|
|
27573
27573
|
};
|
|
27574
27574
|
return /* @__PURE__ */ d(yt, { elevation: 2, children: [
|
|
27575
|
-
/* @__PURE__ */ t(_n, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ t(
|
|
27575
|
+
/* @__PURE__ */ t(_n, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ t(Qe, { children: n.budget_categories_title }) }),
|
|
27576
27576
|
/* @__PURE__ */ t(Pt, { sx: { p: 0, ":last-child": { p: 0 } }, children: /* @__PURE__ */ t(oe, { children: i.map((r) => /* @__PURE__ */ d(g.Fragment, { children: [
|
|
27577
27577
|
/* @__PURE__ */ t(_y, { budget: r, onClick: o }),
|
|
27578
27578
|
/* @__PURE__ */ t(P, {})
|
|
@@ -27615,7 +27615,7 @@ const qb = ({
|
|
|
27615
27615
|
}), p(!0), n(F.BUDGETS_CLICK_EDIT_INCOME);
|
|
27616
27616
|
};
|
|
27617
27617
|
return /* @__PURE__ */ d(yt, { elevation: 2, sx: { overflow: "visible" }, children: [
|
|
27618
|
-
/* @__PURE__ */ t(_n, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ t(
|
|
27618
|
+
/* @__PURE__ */ t(_n, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ t(Qe, { children: a.overview_title }) }),
|
|
27619
27619
|
/* @__PURE__ */ t(Pt, { sx: { pt: 12, px: 24 }, children: /* @__PURE__ */ d(b, { gap: 24, children: [
|
|
27620
27620
|
/* @__PURE__ */ d(b, { gap: 8, children: [
|
|
27621
27621
|
/* @__PURE__ */ t(C, { bold: !0, sx: { mb: 8 }, variant: "Body", children: a.spending_title }),
|
|
@@ -27661,7 +27661,7 @@ const qb = ({
|
|
|
27661
27661
|
}
|
|
27662
27662
|
)
|
|
27663
27663
|
] });
|
|
27664
|
-
}), Rs = 480,
|
|
27664
|
+
}), Rs = 480, K2 = x(({ onBackClick: e, sx: n }) => {
|
|
27665
27665
|
const i = Ee(), { onEvent: a } = q(), { visibleAccounts: o } = be(), { budgets: r, common: s } = A(), { isCopyLoaded: c, isInitialized: l, selectedAccounts: u, setDisplayedDate: _, setSelectedAccounts: h } = ce(), {
|
|
27666
27666
|
alert: m,
|
|
27667
27667
|
dateRange: p,
|
|
@@ -27671,9 +27671,9 @@ const qb = ({
|
|
|
27671
27671
|
setAlert: E,
|
|
27672
27672
|
setTheme: I,
|
|
27673
27673
|
detailedBudgets: v
|
|
27674
|
-
} = ht(), { loadRepeatingTransactions: w, setDateRange: N } = rt(), { reloadCategoryTotals: R } = $e(), { isSmallTablet: M, isMobile: k, isSmallMobile: G } = Ce(), L = M || k || G, [W, K] = g.useState(!1);
|
|
27674
|
+
} = ht(), { loadRepeatingTransactions: w, setDateRange: N } = rt(), { reloadCategoryTotals: R } = $e(), { isSmallTablet: M, isMobile: k, isSmallMobile: G } = Ce(), L = M || k || G, [W, K] = g.useState(!1), ne = g.useRef(!1);
|
|
27675
27675
|
g.useEffect(() => {
|
|
27676
|
-
I(i), h(o), _(
|
|
27676
|
+
I(i), h(o), _(Ke(xe()), qe(xe())), a(F.BUDGETS_VIEW), ne.current || (ne.current = !0);
|
|
27677
27677
|
}, []), g.useEffect(() => {
|
|
27678
27678
|
h(o);
|
|
27679
27679
|
}, [o]), g.useEffect(() => {
|
|
@@ -27681,14 +27681,14 @@ const qb = ({
|
|
|
27681
27681
|
}, [l, u, p]);
|
|
27682
27682
|
const re = (he) => {
|
|
27683
27683
|
y({ start: he[0] || /* @__PURE__ */ new Date(), end: he[1] || /* @__PURE__ */ new Date() });
|
|
27684
|
-
}, ne = () => {
|
|
27685
|
-
a(F.BUDGETS_CLICK_FILTER);
|
|
27686
27684
|
}, fe = () => {
|
|
27685
|
+
a(F.BUDGETS_CLICK_FILTER);
|
|
27686
|
+
}, Te = () => {
|
|
27687
27687
|
K(!0), a(F.BUDGETS_CLICK_ADD);
|
|
27688
|
-
},
|
|
27688
|
+
}, Me = () => {
|
|
27689
27689
|
K(!1);
|
|
27690
|
-
},
|
|
27691
|
-
return !c || !l || !f ? /* @__PURE__ */ t(de, {}) : /* @__PURE__ */ d(
|
|
27690
|
+
}, ge = sn(p.end, Ke(/* @__PURE__ */ new Date()));
|
|
27691
|
+
return !c || !l || !f || !ne.current ? /* @__PURE__ */ t(de, {}) : /* @__PURE__ */ d(
|
|
27692
27692
|
bt,
|
|
27693
27693
|
{
|
|
27694
27694
|
accountOptions: o,
|
|
@@ -27696,11 +27696,15 @@ const qb = ({
|
|
|
27696
27696
|
{
|
|
27697
27697
|
iconName: "add",
|
|
27698
27698
|
label: r.add_title,
|
|
27699
|
-
onClick:
|
|
27699
|
+
onClick: Te
|
|
27700
27700
|
}
|
|
27701
27701
|
],
|
|
27702
|
-
calendarActions: {
|
|
27703
|
-
|
|
27702
|
+
calendarActions: {
|
|
27703
|
+
onRangeChanged: re,
|
|
27704
|
+
shouldDisableNext: ge,
|
|
27705
|
+
shouldDisablePicker: !0
|
|
27706
|
+
},
|
|
27707
|
+
onAccountsFilterClick: fe,
|
|
27704
27708
|
onBackClick: e,
|
|
27705
27709
|
sx: n,
|
|
27706
27710
|
title: r.budgets_title,
|
|
@@ -27717,7 +27721,7 @@ const qb = ({
|
|
|
27717
27721
|
/* @__PURE__ */ t(b, { height: L ? 450 : "calc(100dvh - 150px)", children: /* @__PURE__ */ t(
|
|
27718
27722
|
kl,
|
|
27719
27723
|
{
|
|
27720
|
-
createBudgetOnClick:
|
|
27724
|
+
createBudgetOnClick: Te,
|
|
27721
27725
|
height: L ? 450 : 800,
|
|
27722
27726
|
isDraggable: !0,
|
|
27723
27727
|
shouldShowZeroState: v.length === 0,
|
|
@@ -27748,7 +27752,7 @@ const qb = ({
|
|
|
27748
27752
|
isOpen: W,
|
|
27749
27753
|
onClose: () => K(!1),
|
|
27750
27754
|
title: r.add_new_title,
|
|
27751
|
-
children: /* @__PURE__ */ t(Gl, { onRecalculateBudgets:
|
|
27755
|
+
children: /* @__PURE__ */ t(Gl, { onRecalculateBudgets: Me })
|
|
27752
27756
|
}
|
|
27753
27757
|
),
|
|
27754
27758
|
/* @__PURE__ */ t(
|
|
@@ -27934,7 +27938,7 @@ const by = ({ widgets: e, isLoading: n }) => {
|
|
|
27934
27938
|
/* @__PURE__ */ t(xn, { height: 300, variant: "rounded", width: "100%" })
|
|
27935
27939
|
] }) : /* @__PURE__ */ t(b, { direction: "column", spacing: 24, children: u.map((_) => /* @__PURE__ */ t(g.Fragment, { children: _.component }, _.index)) }) })
|
|
27936
27940
|
] });
|
|
27937
|
-
},
|
|
27941
|
+
}, z2 = x(by), ir = ({ sx: e = {} }) => {
|
|
27938
27942
|
const { investments: n } = A(), { onEvent: i } = q(), { setShowConnectionsWidget: a } = Xn();
|
|
27939
27943
|
return /* @__PURE__ */ d(b, { sx: { alignItems: "center", gap: 24, height: 164, p: 24, width: "100%", ...e }, children: [
|
|
27940
27944
|
/* @__PURE__ */ d(
|
|
@@ -28139,7 +28143,7 @@ const by = ({ widgets: e, isLoading: n }) => {
|
|
|
28139
28143
|
minHeight: 44
|
|
28140
28144
|
},
|
|
28141
28145
|
children: /* @__PURE__ */ d(
|
|
28142
|
-
|
|
28146
|
+
me,
|
|
28143
28147
|
{
|
|
28144
28148
|
"aria-expanded": i === h.guid,
|
|
28145
28149
|
onClick: () => n(h.guid),
|
|
@@ -28396,7 +28400,7 @@ const by = ({ widgets: e, isLoading: n }) => {
|
|
|
28396
28400
|
), Oy = () => {
|
|
28397
28401
|
const {
|
|
28398
28402
|
investments: { analysis: e }
|
|
28399
|
-
} = A(), { analysisChartData: n, analysisDetails: i, analysisType: a, setAnalysisType: o } = Xn(), r = un("(min-width:320px) and (max-width:375px)"), { isMobile: s } = Ce(), l =
|
|
28403
|
+
} = A(), { analysisChartData: n, analysisDetails: i, analysisType: a, setAnalysisType: o } = Xn(), r = un("(min-width:320px) and (max-width:375px)"), { isMobile: s } = Ce(), l = ze().palette.mode === "dark", { cellDimension: u, columns: _, rows: h, textVariant: m } = g.useMemo(() => {
|
|
28400
28404
|
const p = a === Hn.Stocks, f = Object.values(p ? e.stock_column_labels : e.bond_column_labels), S = Object.values(p ? e.stock_row_labels : e.bond_row_labels);
|
|
28401
28405
|
return { cellDimension: s ? 72 : 100, columns: f, rows: S, textVariant: s ? "XSmall" : "Body" };
|
|
28402
28406
|
}, [e, s, a]);
|
|
@@ -29039,10 +29043,10 @@ const by = ({ widgets: e, isLoading: n }) => {
|
|
|
29039
29043
|
const J = Number(E);
|
|
29040
29044
|
if (c({ ...pe, cost_basis: J }), e) {
|
|
29041
29045
|
const ke = _.holdings.map(
|
|
29042
|
-
(
|
|
29046
|
+
(Ie) => Ie.id === V ? { ...Ie, costBasis: J } : Ie
|
|
29043
29047
|
);
|
|
29044
|
-
h((
|
|
29045
|
-
...
|
|
29048
|
+
h((Ie) => ({
|
|
29049
|
+
...Ie,
|
|
29046
29050
|
holdings: ke
|
|
29047
29051
|
}));
|
|
29048
29052
|
}
|
|
@@ -29052,9 +29056,9 @@ const by = ({ widgets: e, isLoading: n }) => {
|
|
|
29052
29056
|
...ke,
|
|
29053
29057
|
[V]: J
|
|
29054
29058
|
}));
|
|
29055
|
-
}, { visibleHoldings:
|
|
29059
|
+
}, { visibleHoldings: ne } = Xn(), { visibleInvestmentAccounts: re } = be(), fe = re.filter(
|
|
29056
29060
|
({ guid: V }) => r.includes(V)
|
|
29057
|
-
),
|
|
29061
|
+
), Te = fe.reduce((V, pe) => V + (pe.balance || 0), 0), Me = fe.map(({ guid: V }) => V), he = ne.filter(
|
|
29058
29062
|
({ account_guid: V }) => Me.includes(V)
|
|
29059
29063
|
).reduce((V, pe) => {
|
|
29060
29064
|
const J = pe.market_value ? pe.market_value - (pe.cost_basis || 0) : 0;
|
|
@@ -29065,7 +29069,7 @@ const by = ({ widgets: e, isLoading: n }) => {
|
|
|
29065
29069
|
return f ? /* @__PURE__ */ d(Oe, { sx: { alignItems: "center", gap: 48, pt: 48, width: "100%" }, children: [
|
|
29066
29070
|
!!fe.length && /* @__PURE__ */ d(Oe, { sx: { alignItems: "center" }, children: [
|
|
29067
29071
|
/* @__PURE__ */ t(C, { sx: { color: "text.secondary" }, children: p.overview.total_portfolio }),
|
|
29068
|
-
/* @__PURE__ */ t(Jt, { children:
|
|
29072
|
+
/* @__PURE__ */ t(Jt, { children: Te.toLocaleString("en-US", {
|
|
29069
29073
|
currency: "USD",
|
|
29070
29074
|
maximumFractionDigits: 2,
|
|
29071
29075
|
minimumFractionDigits: 2,
|
|
@@ -29075,17 +29079,17 @@ const by = ({ widgets: e, isLoading: n }) => {
|
|
|
29075
29079
|
/* @__PURE__ */ t(
|
|
29076
29080
|
ft,
|
|
29077
29081
|
{
|
|
29078
|
-
name:
|
|
29082
|
+
name: he >= 0 ? "trending_up" : "trending_down",
|
|
29079
29083
|
size: 20,
|
|
29080
|
-
sx: { color: M(
|
|
29084
|
+
sx: { color: M(he, "greaterThan") }
|
|
29081
29085
|
}
|
|
29082
29086
|
),
|
|
29083
29087
|
/* @__PURE__ */ t(
|
|
29084
29088
|
C,
|
|
29085
29089
|
{
|
|
29086
|
-
sx: { color: M(
|
|
29090
|
+
sx: { color: M(he, "greaterThan"), fontWeight: 700 },
|
|
29087
29091
|
variant: "Small",
|
|
29088
|
-
children:
|
|
29092
|
+
children: he.toLocaleString("en-US", {
|
|
29089
29093
|
currency: "USD",
|
|
29090
29094
|
maximumFractionDigits: 2,
|
|
29091
29095
|
minimumFractionDigits: 2,
|
|
@@ -29096,7 +29100,7 @@ const by = ({ widgets: e, isLoading: n }) => {
|
|
|
29096
29100
|
] })
|
|
29097
29101
|
] }),
|
|
29098
29102
|
fe.map((V) => {
|
|
29099
|
-
const pe =
|
|
29103
|
+
const pe = ne.filter((z) => z.account_guid === V.guid).map((z) => ({
|
|
29100
29104
|
id: z.guid,
|
|
29101
29105
|
qty: z.shares || 0,
|
|
29102
29106
|
holding: z.symbol || z.description || "Unknown",
|
|
@@ -29104,10 +29108,10 @@ const by = ({ widgets: e, isLoading: n }) => {
|
|
|
29104
29108
|
totalGainLoss: z.market_value ? z.market_value - (z.cost_basis || 0) : 0,
|
|
29105
29109
|
marketValue: z.market_value || 0,
|
|
29106
29110
|
description: z.description || ""
|
|
29107
|
-
})), J = pe.length > 0, ke = V.balance,
|
|
29111
|
+
})), J = pe.length > 0, ke = V.balance, Ie = pe.reduce(
|
|
29108
29112
|
(z, Be) => Be.totalGainLoss + z,
|
|
29109
29113
|
0
|
|
29110
|
-
), Ve = ke ?
|
|
29114
|
+
), Ve = ke ? Ie / ke * 100 : 0;
|
|
29111
29115
|
if (e)
|
|
29112
29116
|
return /* @__PURE__ */ t(
|
|
29113
29117
|
Nt,
|
|
@@ -29200,19 +29204,19 @@ const by = ({ widgets: e, isLoading: n }) => {
|
|
|
29200
29204
|
justifyContent: "flex-end"
|
|
29201
29205
|
},
|
|
29202
29206
|
children: [
|
|
29203
|
-
|
|
29207
|
+
Ie !== 0 && /* @__PURE__ */ t(
|
|
29204
29208
|
ft,
|
|
29205
29209
|
{
|
|
29206
|
-
name:
|
|
29210
|
+
name: Ie > 0 ? "trending_up" : "trending_down",
|
|
29207
29211
|
size: 20,
|
|
29208
|
-
sx: { color: M(
|
|
29212
|
+
sx: { color: M(Ie) }
|
|
29209
29213
|
}
|
|
29210
29214
|
),
|
|
29211
29215
|
/* @__PURE__ */ d(
|
|
29212
29216
|
C,
|
|
29213
29217
|
{
|
|
29214
29218
|
sx: {
|
|
29215
|
-
color: M(
|
|
29219
|
+
color: M(Ie),
|
|
29216
29220
|
fontWeight: 600
|
|
29217
29221
|
},
|
|
29218
29222
|
variant: "Body",
|
|
@@ -29227,11 +29231,11 @@ const by = ({ widgets: e, isLoading: n }) => {
|
|
|
29227
29231
|
C,
|
|
29228
29232
|
{
|
|
29229
29233
|
sx: {
|
|
29230
|
-
color: M(
|
|
29234
|
+
color: M(Ie),
|
|
29231
29235
|
fontWeight: 600
|
|
29232
29236
|
},
|
|
29233
29237
|
variant: "Body",
|
|
29234
|
-
children: Math.abs(
|
|
29238
|
+
children: Math.abs(Ie).toLocaleString("en-US", {
|
|
29235
29239
|
currency: "USD",
|
|
29236
29240
|
maximumFractionDigits: 2,
|
|
29237
29241
|
minimumFractionDigits: 2,
|
|
@@ -29344,19 +29348,19 @@ const by = ({ widgets: e, isLoading: n }) => {
|
|
|
29344
29348
|
justifyContent: "flex-end"
|
|
29345
29349
|
},
|
|
29346
29350
|
children: [
|
|
29347
|
-
|
|
29351
|
+
Ie !== 0 && /* @__PURE__ */ t(
|
|
29348
29352
|
ft,
|
|
29349
29353
|
{
|
|
29350
|
-
name:
|
|
29354
|
+
name: Ie >= 0 ? "trending_up" : "trending_down",
|
|
29351
29355
|
size: 20,
|
|
29352
|
-
sx: { color: M(
|
|
29356
|
+
sx: { color: M(Ie) }
|
|
29353
29357
|
}
|
|
29354
29358
|
),
|
|
29355
29359
|
/* @__PURE__ */ d(
|
|
29356
29360
|
C,
|
|
29357
29361
|
{
|
|
29358
29362
|
sx: {
|
|
29359
|
-
color: M(
|
|
29363
|
+
color: M(Ie),
|
|
29360
29364
|
fontWeight: 600
|
|
29361
29365
|
},
|
|
29362
29366
|
variant: "Body",
|
|
@@ -29371,11 +29375,11 @@ const by = ({ widgets: e, isLoading: n }) => {
|
|
|
29371
29375
|
C,
|
|
29372
29376
|
{
|
|
29373
29377
|
sx: {
|
|
29374
|
-
color: M(
|
|
29378
|
+
color: M(Ie),
|
|
29375
29379
|
fontWeight: 600
|
|
29376
29380
|
},
|
|
29377
29381
|
variant: "Body",
|
|
29378
|
-
children: Math.abs(
|
|
29382
|
+
children: Math.abs(Ie).toLocaleString("en-US", {
|
|
29379
29383
|
currency: "USD",
|
|
29380
29384
|
maximumFractionDigits: 2,
|
|
29381
29385
|
minimumFractionDigits: 2,
|
|
@@ -29441,7 +29445,7 @@ const by = ({ widgets: e, isLoading: n }) => {
|
|
|
29441
29445
|
}
|
|
29442
29446
|
)
|
|
29443
29447
|
] }) : /* @__PURE__ */ t(de, {});
|
|
29444
|
-
}, Hy = x(By), Py = ({ title: e }) => /* @__PURE__ */ t(C, { bold: !0, variant: "Body", children: e }),
|
|
29448
|
+
}, Hy = x(By), Py = ({ title: e }) => /* @__PURE__ */ t(C, { bold: !0, variant: "Body", children: e }), Y2 = x(({ onBackClick: e, sx: n }) => {
|
|
29445
29449
|
const { onEvent: i } = q(), { isMobile: a } = Ce(), { visibleInvestmentAccounts: o } = be(), {
|
|
29446
29450
|
visibleHoldings: r,
|
|
29447
29451
|
setShowConnectionsWidget: s,
|
|
@@ -29699,8 +29703,8 @@ const by = ({ widgets: e, isLoading: n }) => {
|
|
|
29699
29703
|
g.useEffect(() => {
|
|
29700
29704
|
c(
|
|
29701
29705
|
a,
|
|
29702
|
-
|
|
29703
|
-
|
|
29706
|
+
Ke(/* @__PURE__ */ new Date()),
|
|
29707
|
+
qe(/* @__PURE__ */ new Date())
|
|
29704
29708
|
).finally();
|
|
29705
29709
|
}, [a]);
|
|
29706
29710
|
const [u, _] = g.useState(""), [h, m] = g.useState(0), p = g.useMemo(
|
|
@@ -29789,7 +29793,7 @@ const by = ({ widgets: e, isLoading: n }) => {
|
|
|
29789
29793
|
children: /* @__PURE__ */ t(Uy, {})
|
|
29790
29794
|
}
|
|
29791
29795
|
);
|
|
29792
|
-
},
|
|
29796
|
+
}, j2 = x(Vy), Ky = ({
|
|
29793
29797
|
data: e,
|
|
29794
29798
|
onSelected: n,
|
|
29795
29799
|
selectedId: i = "",
|
|
@@ -29809,7 +29813,7 @@ const by = ({ widgets: e, isLoading: n }) => {
|
|
|
29809
29813
|
minHeight: 44
|
|
29810
29814
|
},
|
|
29811
29815
|
children: /* @__PURE__ */ d(
|
|
29812
|
-
|
|
29816
|
+
me,
|
|
29813
29817
|
{
|
|
29814
29818
|
"aria-expanded": r?.guid === s.guid,
|
|
29815
29819
|
onClick: () => n(s.guid),
|
|
@@ -29943,32 +29947,32 @@ const by = ({ widgets: e, isLoading: n }) => {
|
|
|
29943
29947
|
), k = g.useMemo(
|
|
29944
29948
|
() => h.find((K) => K.guid === I),
|
|
29945
29949
|
[I, h]
|
|
29946
|
-
), G = (K,
|
|
29947
|
-
E(
|
|
29950
|
+
), G = (K, ne) => {
|
|
29951
|
+
E(ne), S("");
|
|
29948
29952
|
}, L = (K) => {
|
|
29949
29953
|
S(f === K || K === "0" ? "" : K);
|
|
29950
29954
|
}, W = (K) => {
|
|
29951
|
-
const
|
|
29955
|
+
const ne = {
|
|
29952
29956
|
accounts: m || u,
|
|
29953
29957
|
dateRange: c
|
|
29954
29958
|
};
|
|
29955
29959
|
if (y === 0)
|
|
29956
29960
|
if (K === "other") {
|
|
29957
|
-
const
|
|
29961
|
+
const re = R.categoryData.find((fe) => fe.guid === "other");
|
|
29958
29962
|
_({
|
|
29959
|
-
...
|
|
29960
|
-
custom: (fe) => !!
|
|
29963
|
+
...ne,
|
|
29964
|
+
custom: (fe) => !!re?.categoryTotals?.find((Te) => Te.guid === fe.top_level_category_guid)
|
|
29961
29965
|
});
|
|
29962
29966
|
} else
|
|
29963
29967
|
_({
|
|
29964
|
-
...
|
|
29965
|
-
custom: (
|
|
29968
|
+
...ne,
|
|
29969
|
+
custom: (re) => K ? re.top_level_category_guid === K : re.top_level_category_guid !== D.INCOME && re.top_level_category_guid !== D.INVESTMENTS && re.top_level_category_guid !== D.TRANSFER,
|
|
29966
29970
|
showSplits: !!K
|
|
29967
29971
|
});
|
|
29968
29972
|
else
|
|
29969
29973
|
_({
|
|
29970
|
-
...
|
|
29971
|
-
custom: (
|
|
29974
|
+
...ne,
|
|
29975
|
+
custom: (re) => K ? re.category_guid === K : re.category_guid === D.INCOME || re.top_level_category_guid === D.INCOME
|
|
29972
29976
|
});
|
|
29973
29977
|
N(!0);
|
|
29974
29978
|
};
|
|
@@ -30045,7 +30049,7 @@ const by = ({ widgets: e, isLoading: n }) => {
|
|
|
30045
30049
|
g.useEffect(() => {
|
|
30046
30050
|
c(i);
|
|
30047
30051
|
}, [i]), g.useEffect(() => {
|
|
30048
|
-
_ && Array.isArray(_) && _.length === 2 ? s(_[0], _[1]) : s(
|
|
30052
|
+
_ && Array.isArray(_) && _.length === 2 ? s(_[0], _[1]) : s(Ke(xe()), qe(xe())), m(!0), l(F.SPENDING_VIEW);
|
|
30049
30053
|
}, []);
|
|
30050
30054
|
const p = (f) => {
|
|
30051
30055
|
s(f[0], f[1]);
|
|
@@ -30062,7 +30066,7 @@ const by = ({ widgets: e, isLoading: n }) => {
|
|
|
30062
30066
|
children: /* @__PURE__ */ t(O, { height: "calc(100dvh - 150px)", overflow: "scroll", width: "100%", children: /* @__PURE__ */ t(Zy, {}) })
|
|
30063
30067
|
}
|
|
30064
30068
|
);
|
|
30065
|
-
},
|
|
30069
|
+
}, X2 = x(qy);
|
|
30066
30070
|
export {
|
|
30067
30071
|
F as ANALYTICS_EVENTS,
|
|
30068
30072
|
ws as AccountApi,
|
|
@@ -30077,30 +30081,30 @@ export {
|
|
|
30077
30081
|
B_ as AccountSubType,
|
|
30078
30082
|
_e as AccountType,
|
|
30079
30083
|
So as AccountTypeName,
|
|
30080
|
-
|
|
30081
|
-
|
|
30084
|
+
W2 as AccountsMiniWidget,
|
|
30085
|
+
F2 as AccountsWidget,
|
|
30082
30086
|
nm as AddAccountModal,
|
|
30083
30087
|
Wc as AddRecurringTransactionDetails,
|
|
30084
30088
|
iu as AnalyticsApi,
|
|
30085
30089
|
B as ApiEndpoints,
|
|
30086
30090
|
T0 as AppStore,
|
|
30087
30091
|
yr as BannerApi,
|
|
30088
|
-
|
|
30092
|
+
r2 as BarChart,
|
|
30089
30093
|
li as BeatApi,
|
|
30090
30094
|
k0 as BeatCard,
|
|
30091
30095
|
Zi as BottomActions,
|
|
30092
|
-
|
|
30093
|
-
|
|
30096
|
+
V2 as BubbleBudgetsMiniWidget,
|
|
30097
|
+
K2 as BubbleBudgetsWidget,
|
|
30094
30098
|
ps as BudgetNotificationProfiles,
|
|
30095
30099
|
Zn as BudgetNotificationTypes,
|
|
30096
30100
|
Au as Calendar,
|
|
30097
30101
|
Tc as CalendarSelectionTypes,
|
|
30098
30102
|
F0 as CarouselHeader,
|
|
30099
|
-
|
|
30100
|
-
|
|
30103
|
+
f2 as CashflowApi,
|
|
30104
|
+
l2 as CashflowMiniWidget,
|
|
30101
30105
|
Ym as CashflowOnboarding,
|
|
30102
30106
|
Zm as CashflowStore,
|
|
30103
|
-
|
|
30107
|
+
p2 as CashflowWidget,
|
|
30104
30108
|
Sr as CategoryApi,
|
|
30105
30109
|
si as CategoryColors,
|
|
30106
30110
|
ba as CategoryGuidToName,
|
|
@@ -30113,24 +30117,24 @@ export {
|
|
|
30113
30117
|
D0 as ChartFilledIcon,
|
|
30114
30118
|
Ic as ConnectCard,
|
|
30115
30119
|
bn as ConnectDrawer,
|
|
30116
|
-
$
|
|
30120
|
+
$2 as ConnectMiniWidget,
|
|
30117
30121
|
Yn as ConnectionStatus,
|
|
30118
30122
|
Et as ConnectionStatusEnums,
|
|
30119
|
-
|
|
30123
|
+
y2 as CreditScoreGraph,
|
|
30120
30124
|
oa as CurrencyCodes,
|
|
30121
30125
|
tn as CurrencyInput,
|
|
30122
30126
|
Ze as CurrencyText,
|
|
30123
30127
|
ae as DATE_FORMATS_INTL,
|
|
30124
30128
|
hc as DEFAULT_DONUT_SIZE,
|
|
30125
30129
|
gc as DEFAULT_STROKE_WIDTH,
|
|
30126
|
-
|
|
30130
|
+
z2 as Dashboard,
|
|
30127
30131
|
qi as DashboardLocation,
|
|
30128
30132
|
eo as DataRow,
|
|
30129
30133
|
vr as DateRangeSelector,
|
|
30130
30134
|
Zc as DebtsChart,
|
|
30131
30135
|
Xp as DebtsStore,
|
|
30132
30136
|
Pp as DebtsTable,
|
|
30133
|
-
|
|
30137
|
+
b2 as DebtsWidget,
|
|
30134
30138
|
cC as DeviceTab,
|
|
30135
30139
|
el as DialScoreCard,
|
|
30136
30140
|
Ge as Dialog,
|
|
@@ -30145,20 +30149,20 @@ export {
|
|
|
30145
30149
|
tl as FinancialStrengthGraph,
|
|
30146
30150
|
ns as FinstrongApi,
|
|
30147
30151
|
o1 as FinstrongStore,
|
|
30148
|
-
|
|
30152
|
+
S2 as FinstrongWidget,
|
|
30149
30153
|
Se as Frequency,
|
|
30150
30154
|
Ri as GlobalCopyApi,
|
|
30151
30155
|
qu as GlobalCopyStore,
|
|
30152
30156
|
ti as GlobalDataContext,
|
|
30153
|
-
|
|
30154
|
-
|
|
30157
|
+
i2 as GlobalDataProvider,
|
|
30158
|
+
P2 as GlobalStore,
|
|
30155
30159
|
as as GoalApi,
|
|
30156
30160
|
z1 as GoalStore,
|
|
30157
30161
|
ao as GoalType,
|
|
30158
|
-
|
|
30159
|
-
|
|
30162
|
+
T2 as GoalsMicroWidget,
|
|
30163
|
+
E2 as GoalsWidget,
|
|
30160
30164
|
bl as Help,
|
|
30161
|
-
|
|
30165
|
+
w2 as HelpWidget,
|
|
30162
30166
|
Eo as INCOME_ACCOUNT_TYPES,
|
|
30163
30167
|
Bn as IconBacking,
|
|
30164
30168
|
Ro as InformationTooltip,
|
|
@@ -30166,18 +30170,18 @@ export {
|
|
|
30166
30170
|
V0 as InsightsMicroWidget,
|
|
30167
30171
|
A0 as InsightsMicroWidgetDataProvider,
|
|
30168
30172
|
fs as InsightsNotificationProfiles,
|
|
30169
|
-
|
|
30173
|
+
Y2 as InvestmentsWidget,
|
|
30170
30174
|
V_ as IterationItemTypes,
|
|
30171
|
-
|
|
30175
|
+
ZT as LOADING_STATUS,
|
|
30172
30176
|
ni as LineChart,
|
|
30173
30177
|
nn as ListItemAction,
|
|
30174
30178
|
Zu as ListItemWrapper,
|
|
30175
30179
|
de as Loader,
|
|
30176
|
-
|
|
30180
|
+
t2 as LocalizedCopyApi,
|
|
30177
30181
|
dm as ManageExpenses,
|
|
30178
30182
|
Bo as ManageIncome,
|
|
30179
30183
|
Gn as MemberConnectionStatus,
|
|
30180
|
-
|
|
30184
|
+
A2 as MerchantLookup,
|
|
30181
30185
|
ff as MerchantStore,
|
|
30182
30186
|
Gt as MetaType,
|
|
30183
30187
|
lc as MfaStatuses,
|
|
@@ -30186,45 +30190,45 @@ export {
|
|
|
30186
30190
|
Ea as MicroWidgetContainer,
|
|
30187
30191
|
Un as MiniWidgetContainer,
|
|
30188
30192
|
O0 as MonthlySpendComparisonIcon,
|
|
30189
|
-
|
|
30193
|
+
s2 as MultiSegmentDonut,
|
|
30190
30194
|
bf as NetWorthChart,
|
|
30191
30195
|
Tf as NetWorthList,
|
|
30192
|
-
|
|
30196
|
+
x2 as NetWorthMicroWidget,
|
|
30193
30197
|
Mf as NetWorthStore,
|
|
30194
30198
|
If as NetWorthSummary,
|
|
30195
|
-
|
|
30196
|
-
|
|
30199
|
+
I2 as NetWorthWidget,
|
|
30200
|
+
G2 as NoRelevantInsightsCard,
|
|
30197
30201
|
_c as NonConnectedStatuses,
|
|
30198
30202
|
Er as NotificationApi,
|
|
30199
|
-
|
|
30203
|
+
O2 as NotificationDrawer,
|
|
30200
30204
|
qf as NotificationList,
|
|
30201
30205
|
_a as NotificationSettings,
|
|
30202
|
-
|
|
30206
|
+
N2 as NotificationSettingsWidget,
|
|
30203
30207
|
Vf as NotificationStore,
|
|
30204
30208
|
Mt as NotificationTypes,
|
|
30205
30209
|
G_ as ORDINAL_DATE_FORMAT,
|
|
30206
|
-
|
|
30210
|
+
zT as ORDINAL_MONTH_DAY_YEAR_FORMAT,
|
|
30207
30211
|
To as PAYMENT_ACCOUNT_TYPES,
|
|
30208
30212
|
fr as PaymentCategories,
|
|
30209
30213
|
U_ as PlanTypes,
|
|
30210
30214
|
H_ as ProcessingStatuses,
|
|
30211
30215
|
iC as ProfileTab,
|
|
30212
30216
|
cc as PropertyType,
|
|
30213
|
-
|
|
30214
|
-
|
|
30217
|
+
jT as PropertyTypeName,
|
|
30218
|
+
XT as RECURRENCE_COPY,
|
|
30215
30219
|
et as RecurrenceStatus,
|
|
30216
30220
|
Zt as RecurrenceType,
|
|
30217
30221
|
$_ as RecurrenceTypes,
|
|
30218
30222
|
Ho as RecurringSettings,
|
|
30219
|
-
|
|
30220
|
-
|
|
30223
|
+
m2 as RecurringTransactionsMicroWidget,
|
|
30224
|
+
g2 as RecurringTransactionsMiniWidget,
|
|
30221
30225
|
Sm as RecurringTransactionsStore,
|
|
30222
|
-
|
|
30226
|
+
h2 as RecurringTransactionsWidget,
|
|
30223
30227
|
cn as RepeatingType,
|
|
30224
|
-
|
|
30228
|
+
c2 as ResponsiveButton,
|
|
30225
30229
|
Ao as SPENDING_ACCOUNT_TYPES,
|
|
30226
30230
|
Hh as ScheduledPaymentTypes,
|
|
30227
|
-
|
|
30231
|
+
n2 as ScheduledPaymentsApi,
|
|
30228
30232
|
Ph as ScreenSize,
|
|
30229
30233
|
Ta as SearchBox,
|
|
30230
30234
|
zi as Select,
|
|
@@ -30233,16 +30237,16 @@ export {
|
|
|
30233
30237
|
hs as SettingsApi,
|
|
30234
30238
|
eC as SettingsStore,
|
|
30235
30239
|
ri as SettingsTabs,
|
|
30236
|
-
|
|
30240
|
+
D2 as SettingsWidget,
|
|
30237
30241
|
XC as SettingsWidgetContents,
|
|
30238
30242
|
No as SingleSegmentDonut,
|
|
30239
30243
|
K_ as Sizes,
|
|
30240
|
-
|
|
30241
|
-
|
|
30244
|
+
j2 as SpendingMiniWidget,
|
|
30245
|
+
X2 as SpendingWidget,
|
|
30242
30246
|
Fu as StackedLineChart,
|
|
30243
30247
|
di as StatusBar,
|
|
30244
|
-
|
|
30245
|
-
|
|
30248
|
+
YT as StatusName,
|
|
30249
|
+
U2 as SurveyMiniWidget,
|
|
30246
30250
|
Ii as TOUCH_TARGET,
|
|
30247
30251
|
Q as TRANSACTION_EVENTS,
|
|
30248
30252
|
Rn as TabContentContainer,
|
|
@@ -30255,17 +30259,17 @@ export {
|
|
|
30255
30259
|
Vn as TransactionList,
|
|
30256
30260
|
ko as TransactionRow,
|
|
30257
30261
|
pl as TransactionRulesTab,
|
|
30258
|
-
|
|
30262
|
+
R2 as TransactionRulesWidget,
|
|
30259
30263
|
Mo as TransactionStatus,
|
|
30260
30264
|
Wh as TransactionStore,
|
|
30261
30265
|
og as TransactionTable,
|
|
30262
30266
|
Xt as TransactionType,
|
|
30263
|
-
|
|
30264
|
-
|
|
30265
|
-
|
|
30266
|
-
|
|
30267
|
+
u2 as TransactionWidget,
|
|
30268
|
+
L2 as TrendsFullWidget,
|
|
30269
|
+
k2 as TrendsMicroWidget,
|
|
30270
|
+
M2 as TrendsMiniWidget,
|
|
30267
30271
|
ab as TrendsStore,
|
|
30268
|
-
|
|
30272
|
+
H2 as TrendsWidget,
|
|
30269
30273
|
Ha as UserApi,
|
|
30270
30274
|
cb as UserStore,
|
|
30271
30275
|
Gh as UserVerification,
|
|
@@ -30274,11 +30278,11 @@ export {
|
|
|
30274
30278
|
bt as WidgetContainer,
|
|
30275
30279
|
fc as WidgetContainerContext,
|
|
30276
30280
|
Io as WidgetContainerProvider,
|
|
30277
|
-
|
|
30281
|
+
B2 as ZeroStateCard,
|
|
30278
30282
|
vl as ZeroStateIcon,
|
|
30279
30283
|
k_ as analyticsSession,
|
|
30280
30284
|
T as buildDynamicCopy,
|
|
30281
|
-
|
|
30285
|
+
JT as buildPluralCopy,
|
|
30282
30286
|
wc as exportTransactionsToCSV,
|
|
30283
30287
|
Uf as filterRecentNotifications,
|
|
30284
30288
|
H as formatCurrency,
|
|
@@ -30289,14 +30293,14 @@ export {
|
|
|
30289
30293
|
Kc as getAccountBalanceDetails,
|
|
30290
30294
|
wm as getAccountDetailFields,
|
|
30291
30295
|
br as getCategory,
|
|
30292
|
-
|
|
30293
|
-
|
|
30296
|
+
qT as getCategoryTotalsByParent,
|
|
30297
|
+
e2 as getClientTheme,
|
|
30294
30298
|
eu as getCurrencyCodes,
|
|
30295
30299
|
z_ as getDetailedCategory,
|
|
30296
30300
|
Y_ as getDetailedSubCategory,
|
|
30297
30301
|
Wn as getLocale,
|
|
30298
|
-
|
|
30299
|
-
|
|
30302
|
+
v2 as getNotificationDetailRoute,
|
|
30303
|
+
QT as isIncome,
|
|
30300
30304
|
Ja as isValidNumber,
|
|
30301
30305
|
be as useAccountStore,
|
|
30302
30306
|
Vt as useAccountUiStore,
|
|
@@ -30321,8 +30325,8 @@ export {
|
|
|
30321
30325
|
ou as useMerchantStore,
|
|
30322
30326
|
bc as useNetWorthStore,
|
|
30323
30327
|
yc as useNotificationStore,
|
|
30324
|
-
|
|
30325
|
-
|
|
30328
|
+
a2 as usePageView,
|
|
30329
|
+
o2 as usePrevious,
|
|
30326
30330
|
rt as useRecurringTransactionsStore,
|
|
30327
30331
|
Ce as useScreenSize,
|
|
30328
30332
|
St as useSettingsStore,
|