@mx-cartographer/experiences 6.16.0-ram1-testing-unknown-accounts → 6.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
|
@@ -10,7 +10,7 @@ import { AccountsIcon as qc, P as ve, Icon as $, useTokens as gt, Text as p, H2
|
|
|
10
10
|
import il from "bowser";
|
|
11
11
|
import { getUnixTime as He } from "date-fns/getUnixTime";
|
|
12
12
|
import { intlFormat as al } from "date-fns/intlFormat";
|
|
13
|
-
import { addMonths as
|
|
13
|
+
import { addMonths as Tt } from "date-fns/addMonths";
|
|
14
14
|
import { addQuarters as gi } from "date-fns/addQuarters";
|
|
15
15
|
import { addWeeks as is } from "date-fns/addWeeks";
|
|
16
16
|
import { addYears as Wi } from "date-fns/addYears";
|
|
@@ -32,7 +32,7 @@ import ae from "@mui/material/ListItemText";
|
|
|
32
32
|
import as from "@mui/material/Popover";
|
|
33
33
|
import b from "@mui/material/Stack";
|
|
34
34
|
import Vi from "@mui/material/Checkbox";
|
|
35
|
-
import { alpha as rl, lighten as Bo, darken as Ho, Stack as ye, Box as
|
|
35
|
+
import { alpha as rl, lighten as Bo, darken as Ho, Stack as ye, Box as Tn, useTheme as ln, Card as Ji, CardContent as sl, Button as cl } from "@mui/material";
|
|
36
36
|
import pe from "@mui/material/styles/useTheme";
|
|
37
37
|
import Wt from "@mui/material/useMediaQuery";
|
|
38
38
|
import { css as Zt, keyframes as ll } from "@mxenabled/cssinjs";
|
|
@@ -44,7 +44,7 @@ import { format as kn } from "date-fns/format";
|
|
|
44
44
|
import { isSameMonth as ul } from "date-fns/isSameMonth";
|
|
45
45
|
import { startOfMonth as Ze } from "date-fns/startOfMonth";
|
|
46
46
|
import { subMonths as Yt } from "date-fns/subMonths";
|
|
47
|
-
import
|
|
47
|
+
import St from "@mui/material/Paper";
|
|
48
48
|
import hl from "@mui/icons-material/KeyboardArrowLeftRounded";
|
|
49
49
|
import gl from "@mui/icons-material/KeyboardArrowRightRounded";
|
|
50
50
|
import { isSameDay as yt } from "date-fns/isSameDay";
|
|
@@ -52,7 +52,7 @@ import { isWithinInterval as $a } from "date-fns/isWithinInterval";
|
|
|
52
52
|
import * as Dt from "d3";
|
|
53
53
|
import { selectAll as ml, interpolateString as pl, arc as Cl } from "d3";
|
|
54
54
|
import { useTheme as at, alpha as Kn, keyframes as fl, ThemeProvider as bl } from "@mui/material/styles";
|
|
55
|
-
import { ResponsiveChartContainer as yl, AreaPlot as El, LinePlot as
|
|
55
|
+
import { ResponsiveChartContainer as yl, AreaPlot as El, LinePlot as Sl, MarkPlot as Tl, BarPlot as Al, ChartsXAxis as Il, ChartsYAxis as xl, ChartsReferenceLine as vl, ChartsLegend as wl, LineChart as os } from "@mui/x-charts";
|
|
56
56
|
import Rt from "@mui/material/Card";
|
|
57
57
|
import Ot from "@mui/material/CardContent";
|
|
58
58
|
import je from "@mui/material/Grid";
|
|
@@ -91,13 +91,13 @@ import na from "@mui/icons-material/ChevronRight";
|
|
|
91
91
|
import ia from "@mui/icons-material/ExpandMore";
|
|
92
92
|
import { DataGridPro as Hn } from "@mui/x-data-grid-pro";
|
|
93
93
|
import { intervalToDuration as ql, formatDuration as Ql, getDate as $o, fromUnixTime as mi, startOfMonth as Uo, format as Jl, differenceInMonths as ed, isSameDay as td, subDays as nd, startOfToday as id, endOfToday as ad } from "date-fns";
|
|
94
|
-
import
|
|
95
|
-
import
|
|
94
|
+
import Sn from "@mui/material/Alert";
|
|
95
|
+
import Si from "@mui/material/Snackbar";
|
|
96
96
|
import od from "@mui/material/Stack/Stack";
|
|
97
97
|
import { useVirtualizer as us } from "@tanstack/react-virtual";
|
|
98
98
|
import { AdapterDateFns as Qn } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
99
99
|
import { DatePicker as Ya } from "@mui/x-date-pickers";
|
|
100
|
-
import { LocalizationProvider as
|
|
100
|
+
import { LocalizationProvider as Ti } from "@mui/x-date-pickers/LocalizationProvider";
|
|
101
101
|
import Jn from "@mui/material/Collapse";
|
|
102
102
|
import gn from "@mui/material/Skeleton";
|
|
103
103
|
import { isAfter as nn } from "date-fns/isAfter";
|
|
@@ -135,8 +135,8 @@ import aa from "@mui/icons-material/Error";
|
|
|
135
135
|
import yd from "@mui/material/Chip";
|
|
136
136
|
import Ed from "@mui/icons-material/EditOutlined";
|
|
137
137
|
import { isToday as Za } from "date-fns/isToday";
|
|
138
|
-
import
|
|
139
|
-
import
|
|
138
|
+
import Sd from "@mui/icons-material/CheckCircleRounded";
|
|
139
|
+
import Td from "@mui/icons-material/LanguageRounded";
|
|
140
140
|
import { isYesterday as Ad } from "date-fns/isYesterday";
|
|
141
141
|
import Id from "@mui/material/FormControl";
|
|
142
142
|
import xd from "@mui/material/InputLabel";
|
|
@@ -392,7 +392,7 @@ const Bd = [
|
|
|
392
392
|
3,
|
|
393
393
|
4
|
|
394
394
|
/* REJECTED */
|
|
395
|
-
],
|
|
395
|
+
], Ss = [
|
|
396
396
|
1,
|
|
397
397
|
2,
|
|
398
398
|
5,
|
|
@@ -408,7 +408,7 @@ const Bd = [
|
|
|
408
408
|
19,
|
|
409
409
|
20
|
|
410
410
|
/* IMPAIRED */
|
|
411
|
-
],
|
|
411
|
+
], Ts = [...Ss, ...Es];
|
|
412
412
|
var Ln = /* @__PURE__ */ ((e) => (e.Connected = "Connected", e.Error = "Error", e.Processing = "Processing", e.RequiresMfa = "RequiresMfa", e))(Ln || {});
|
|
413
413
|
const q4 = {
|
|
414
414
|
3: "Challenged",
|
|
@@ -857,11 +857,11 @@ const oi = 44, Xo = (e, n) => e.find((i) => i.guid === n), Kd = (e, n) => e.find
|
|
|
857
857
|
}, jd = (e) => {
|
|
858
858
|
let n = Ui(he(), e.getDate());
|
|
859
859
|
for (; Xe(n, he()); )
|
|
860
|
-
n =
|
|
860
|
+
n = Tt(n, 1);
|
|
861
861
|
return n;
|
|
862
862
|
}, Xd = (e) => {
|
|
863
863
|
const n = to(e);
|
|
864
|
-
return
|
|
864
|
+
return Tt(n, 1);
|
|
865
865
|
}, vs = (e) => {
|
|
866
866
|
let n = gi(e, 1);
|
|
867
867
|
for (; Xe(n, he()); )
|
|
@@ -870,7 +870,7 @@ const oi = 44, Xo = (e, n) => e.find((i) => i.guid === n), Kd = (e, n) => e.find
|
|
|
870
870
|
}, Zd = (e) => {
|
|
871
871
|
const n = vs(e);
|
|
872
872
|
return gi(n, 1);
|
|
873
|
-
}, qd = (e) => Wi(e, 1), ra = (e) => se(Fe(e), oe.DAY_OF_WEEK_MONTH_DAY), ws = (e) => e ? se(Fe(e), oe.MONTH_YEAR) : "", Qd = /(?<static>.*?)(?<dynamic>(?:_\d+{(?:.*?)}))|(?<staticEnd>.+)/g,
|
|
873
|
+
}, qd = (e) => Wi(e, 1), ra = (e) => se(Fe(e), oe.DAY_OF_WEEK_MONTH_DAY), ws = (e) => e ? se(Fe(e), oe.MONTH_YEAR) : "", Qd = /(?<static>.*?)(?<dynamic>(?:_\d+{(?:.*?)}))|(?<staticEnd>.+)/g, T = (e, ...n) => {
|
|
874
874
|
if (!e) return "";
|
|
875
875
|
const i = n.some((r) => typeof r != "string"), o = [...e.matchAll(Qd)].reduce(
|
|
876
876
|
(r, s, c) => {
|
|
@@ -890,7 +890,7 @@ const oi = 44, Xo = (e, n) => e.find((i) => i.guid === n), Kd = (e, n) => e.find
|
|
|
890
890
|
[]
|
|
891
891
|
);
|
|
892
892
|
return i ? o : o.join("");
|
|
893
|
-
}, iE = (e, n, i, ...a) => !e || !n ? "" :
|
|
893
|
+
}, iE = (e, n, i, ...a) => !e || !n ? "" : T(i === 1 ? e : n, ...a), Nn = () => {
|
|
894
894
|
const e = "en-us", n = ["en-us", "en-ca", "fr", "fr-ca", "es"], i = window?.app?.options?.language?.toLowerCase() ?? "", a = window.navigator.language.toLowerCase();
|
|
895
895
|
return i === "browser" && n.includes(a) ? a : n.includes(i) ? i : e;
|
|
896
896
|
};
|
|
@@ -1324,7 +1324,7 @@ const ya = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
|
1324
1324
|
const { connect: m } = x(), C = Zc(
|
|
1325
1325
|
() => i_(e, m.connection_statuses[12]),
|
|
1326
1326
|
[e]
|
|
1327
|
-
), f = e.length < 1, E = !!n, y = Object.values(d).every((
|
|
1327
|
+
), f = e.length < 1, E = !!n, y = Object.values(d).every((S) => !!S);
|
|
1328
1328
|
return /* @__PURE__ */ t(
|
|
1329
1329
|
as,
|
|
1330
1330
|
{
|
|
@@ -1396,10 +1396,10 @@ const ya = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
|
1396
1396
|
"data-ui-test": `checked-${y}`,
|
|
1397
1397
|
disableRipple: !0,
|
|
1398
1398
|
onChange: () => {
|
|
1399
|
-
const
|
|
1399
|
+
const S = {};
|
|
1400
1400
|
Object.keys(d).forEach((A) => {
|
|
1401
|
-
|
|
1402
|
-
}), u(
|
|
1401
|
+
S[A] = !y;
|
|
1402
|
+
}), u(S);
|
|
1403
1403
|
},
|
|
1404
1404
|
size: "small",
|
|
1405
1405
|
sx: {
|
|
@@ -1413,24 +1413,24 @@ const ya = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
|
1413
1413
|
label: y ? i.unselectAllAccounts : i.selectAllAccounts
|
|
1414
1414
|
}
|
|
1415
1415
|
) }),
|
|
1416
|
-
Object.keys(C).map((
|
|
1417
|
-
const A = C[
|
|
1416
|
+
Object.keys(C).map((S) => {
|
|
1417
|
+
const A = C[S], w = A.every(
|
|
1418
1418
|
(v) => d[v.guid]
|
|
1419
1419
|
);
|
|
1420
1420
|
return /* @__PURE__ */ t(z, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(
|
|
1421
1421
|
ie,
|
|
1422
1422
|
{
|
|
1423
|
-
"aria-label":
|
|
1423
|
+
"aria-label": T(i.accountTypeAccounts, S),
|
|
1424
1424
|
className: "mx-cmn-account-options-group",
|
|
1425
1425
|
dense: !0,
|
|
1426
1426
|
subheader: /* @__PURE__ */ t(Mt, { disableGutters: !0, children: /* @__PURE__ */ t(
|
|
1427
1427
|
_e,
|
|
1428
1428
|
{
|
|
1429
|
-
"aria-label":
|
|
1429
|
+
"aria-label": T(i.toggleAccountTypeAccounts, S),
|
|
1430
1430
|
"aria-pressed": w,
|
|
1431
1431
|
disableGutters: !0,
|
|
1432
1432
|
onClick: () => o(
|
|
1433
|
-
|
|
1433
|
+
S,
|
|
1434
1434
|
C,
|
|
1435
1435
|
w
|
|
1436
1436
|
),
|
|
@@ -1442,7 +1442,7 @@ const ya = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
|
1442
1442
|
children: /* @__PURE__ */ t(
|
|
1443
1443
|
ae,
|
|
1444
1444
|
{
|
|
1445
|
-
primary:
|
|
1445
|
+
primary: S,
|
|
1446
1446
|
primaryTypographyProps: { variant: "XSmall", fontWeight: "bold" }
|
|
1447
1447
|
}
|
|
1448
1448
|
)
|
|
@@ -1487,7 +1487,7 @@ const ya = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
|
1487
1487
|
);
|
|
1488
1488
|
})
|
|
1489
1489
|
}
|
|
1490
|
-
) },
|
|
1490
|
+
) }, S);
|
|
1491
1491
|
})
|
|
1492
1492
|
]
|
|
1493
1493
|
}
|
|
@@ -1616,10 +1616,10 @@ const r_ = (e, n) => {
|
|
|
1616
1616
|
onAccountClick: (E) => {
|
|
1617
1617
|
m({ ...h, [E.guid]: !h[E.guid] });
|
|
1618
1618
|
},
|
|
1619
|
-
onAccountGroupClick: (E, y,
|
|
1619
|
+
onAccountGroupClick: (E, y, S) => {
|
|
1620
1620
|
const A = { ...h };
|
|
1621
1621
|
y[E].forEach((w) => {
|
|
1622
|
-
A[w.guid] = !
|
|
1622
|
+
A[w.guid] = !S;
|
|
1623
1623
|
}), m(A);
|
|
1624
1624
|
},
|
|
1625
1625
|
onCancelClick: () => {
|
|
@@ -1762,7 +1762,7 @@ const r_ = (e, n) => {
|
|
|
1762
1762
|
width: h,
|
|
1763
1763
|
xAxisLabel: m = ""
|
|
1764
1764
|
}) => {
|
|
1765
|
-
const C = gt(), f = __(C, h), E = u / s * d, y = Math.abs(u) / s * i,
|
|
1765
|
+
const C = gt(), f = __(C, h), E = u / s * d, y = Math.abs(u) / s * i, S = c === void 0 || c === o ? "primary" : "secondary";
|
|
1766
1766
|
return /* @__PURE__ */ l("div", { className: `mx-cmn-barchart-bar-column ${f}`, children: [
|
|
1767
1767
|
/* @__PURE__ */ t("div", { style: { height: d }, children: u >= 0 && /* @__PURE__ */ t(
|
|
1768
1768
|
er,
|
|
@@ -1796,7 +1796,7 @@ const r_ = (e, n) => {
|
|
|
1796
1796
|
{
|
|
1797
1797
|
className: `mx-cmn-bar-label ${r ? "mx-cmn-clickable" : ""}`,
|
|
1798
1798
|
onClick: r ? () => r(o) : void 0,
|
|
1799
|
-
children: /* @__PURE__ */ t(p, { bold: c === o, color:
|
|
1799
|
+
children: /* @__PURE__ */ t(p, { bold: c === o, color: S, variant: "Small", children: m })
|
|
1800
1800
|
}
|
|
1801
1801
|
)
|
|
1802
1802
|
] });
|
|
@@ -1840,7 +1840,7 @@ const r_ = (e, n) => {
|
|
|
1840
1840
|
selectedIndex: d,
|
|
1841
1841
|
valueFormatter: u = (_) => `${_}`
|
|
1842
1842
|
}) => {
|
|
1843
|
-
const _ = gt(), h = p_(_), m = a.reduce(g_, []), C = e !== void 0 ? e : m.reduce(u_, 0) / m.length, f = Math.max(...m), E = Math.min(...m), y = m.reduce(h_, 0),
|
|
1843
|
+
const _ = gt(), h = p_(_), m = a.reduce(g_, []), C = e !== void 0 ? e : m.reduce(u_, 0) / m.length, f = Math.max(...m), E = Math.min(...m), y = m.reduce(h_, 0), S = f >= 0, A = E < 0, w = nr(S, A, o), v = nr(A, S, o), R = m_(C, f, E, w || v), B = (D) => d === void 0 || D === d ? i : `${i}80`, M = () => /* @__PURE__ */ t(
|
|
1844
1844
|
tr,
|
|
1845
1845
|
{
|
|
1846
1846
|
averageLineHeight: R,
|
|
@@ -1993,7 +1993,7 @@ const r_ = (e, n) => {
|
|
|
1993
1993
|
}
|
|
1994
1994
|
}), E_ = 340, ui = 44;
|
|
1995
1995
|
var Gs = /* @__PURE__ */ ((e) => (e.None = "None", e.Single = "Single", e.Range = "Range", e))(Gs || {});
|
|
1996
|
-
const
|
|
1996
|
+
const S_ = ({
|
|
1997
1997
|
copy: e,
|
|
1998
1998
|
beginDate: n = void 0,
|
|
1999
1999
|
endDate: i = void 0,
|
|
@@ -2002,7 +2002,7 @@ const T_ = ({
|
|
|
2002
2002
|
selectionType: r = "Single"
|
|
2003
2003
|
/* Single */
|
|
2004
2004
|
}) => {
|
|
2005
|
-
const s = gt(), c =
|
|
2005
|
+
const s = gt(), c = T_(s), [d, u] = g.useState(he), [_, h] = g.useState(n), [m, C] = g.useState(i);
|
|
2006
2006
|
g.useEffect(() => {
|
|
2007
2007
|
h(n), C(i), n && u(n);
|
|
2008
2008
|
}, [n, i]);
|
|
@@ -2026,18 +2026,18 @@ const T_ = ({
|
|
|
2026
2026
|
}, y = () => {
|
|
2027
2027
|
const w = he();
|
|
2028
2028
|
u(w), r !== "None" && (h(w), r === "Single" ? a?.(w) : (C(w), o?.(w, w)));
|
|
2029
|
-
},
|
|
2030
|
-
u(
|
|
2029
|
+
}, S = () => {
|
|
2030
|
+
u(Tt(d, 1));
|
|
2031
2031
|
}, A = () => {
|
|
2032
2032
|
u(Yt(d, 1));
|
|
2033
2033
|
};
|
|
2034
|
-
return /* @__PURE__ */ t("div", { className: `mx-cmn-calendar ${c}`, children: /* @__PURE__ */ l(
|
|
2034
|
+
return /* @__PURE__ */ t("div", { className: `mx-cmn-calendar ${c}`, children: /* @__PURE__ */ l(St, { sx: { boxShadow: "none" }, children: [
|
|
2035
2035
|
/* @__PURE__ */ t(
|
|
2036
2036
|
C_,
|
|
2037
2037
|
{
|
|
2038
2038
|
copy: e,
|
|
2039
2039
|
date: d,
|
|
2040
|
-
onNextClick:
|
|
2040
|
+
onNextClick: S,
|
|
2041
2041
|
onPreviousClick: A
|
|
2042
2042
|
}
|
|
2043
2043
|
),
|
|
@@ -2055,7 +2055,7 @@ const T_ = ({
|
|
|
2055
2055
|
)) }, `w-${v}`)),
|
|
2056
2056
|
/* @__PURE__ */ t("div", { className: "mx-cmn-calendar-today-container", children: /* @__PURE__ */ t(J, { onClick: y, size: "small", variant: "text", children: e.today }) })
|
|
2057
2057
|
] }) });
|
|
2058
|
-
},
|
|
2058
|
+
}, T_ = (e) => Zt({
|
|
2059
2059
|
width: E_,
|
|
2060
2060
|
"& .MuiPaper-root": {
|
|
2061
2061
|
paddingLeft: 24,
|
|
@@ -2213,7 +2213,7 @@ const T_ = ({
|
|
|
2213
2213
|
return /* @__PURE__ */ l(ye, { style: { flexDirection: "row", gap: 25, ...i }, children: [
|
|
2214
2214
|
e.map((o, r) => /* @__PURE__ */ l(ye, { style: { alignItems: "center", flexDirection: "row" }, children: [
|
|
2215
2215
|
/* @__PURE__ */ t(
|
|
2216
|
-
|
|
2216
|
+
Tn,
|
|
2217
2217
|
{
|
|
2218
2218
|
sx: {
|
|
2219
2219
|
width: 10,
|
|
@@ -2251,7 +2251,7 @@ const T_ = ({
|
|
|
2251
2251
|
valueFormatterString: C = "0,0",
|
|
2252
2252
|
width: f
|
|
2253
2253
|
}) => {
|
|
2254
|
-
const E = at(), y = i.flat().map((D) => D.x),
|
|
2254
|
+
const E = at(), y = i.flat().map((D) => D.x), S = i.flat().map((D) => D.y), A = Math.round(S.reduce((D, k) => k + D, 0) / S.length), w = Math.floor(Math.min(...S) / 100) * 100, v = Math.ceil(Math.max(...S) / 100) * 100, R = i.map((D, k) => ({
|
|
2255
2255
|
type: d ? "bar" : "line",
|
|
2256
2256
|
curve: "linear",
|
|
2257
2257
|
color: d ? E.palette.chart?.chart6 : n[k] ?? E.palette.primary.main,
|
|
@@ -2305,7 +2305,7 @@ const T_ = ({
|
|
|
2305
2305
|
children: [
|
|
2306
2306
|
/* @__PURE__ */ t(El, {}),
|
|
2307
2307
|
/* @__PURE__ */ t(
|
|
2308
|
-
|
|
2308
|
+
Sl,
|
|
2309
2309
|
{
|
|
2310
2310
|
slots: u && R.length < 2 ? {
|
|
2311
2311
|
line: (D) => /* @__PURE__ */ t(w_, { ...D, lineColor: n[0] ?? E.palette.primary.main })
|
|
@@ -2313,7 +2313,7 @@ const T_ = ({
|
|
|
2313
2313
|
}
|
|
2314
2314
|
),
|
|
2315
2315
|
/* @__PURE__ */ t(
|
|
2316
|
-
|
|
2316
|
+
Tl,
|
|
2317
2317
|
{
|
|
2318
2318
|
slots: m ? {
|
|
2319
2319
|
mark: (D) => /* @__PURE__ */ t(
|
|
@@ -2322,7 +2322,7 @@ const T_ = ({
|
|
|
2322
2322
|
handlers: s,
|
|
2323
2323
|
showLabel: h,
|
|
2324
2324
|
style: c?.(D.dataIndex) ?? {},
|
|
2325
|
-
yData:
|
|
2325
|
+
yData: S,
|
|
2326
2326
|
...D
|
|
2327
2327
|
}
|
|
2328
2328
|
)
|
|
@@ -2380,7 +2380,7 @@ const T_ = ({
|
|
|
2380
2380
|
/* @__PURE__ */ t(
|
|
2381
2381
|
L,
|
|
2382
2382
|
{
|
|
2383
|
-
"aria-label":
|
|
2383
|
+
"aria-label": T(i.category_icon_label_aria, o),
|
|
2384
2384
|
mb: 4,
|
|
2385
2385
|
role: "img",
|
|
2386
2386
|
children: /* @__PURE__ */ t(kt, { categoryGuid: n })
|
|
@@ -2461,7 +2461,7 @@ const T_ = ({
|
|
|
2461
2461
|
xData: o
|
|
2462
2462
|
}) => {
|
|
2463
2463
|
const r = ln(), s = a.data[i], c = o[i];
|
|
2464
|
-
return s === void 0 || !c ? null : /* @__PURE__ */ t(Ji, { sx: { pt: 4, px: 8 }, children: /* @__PURE__ */ t(sl, { children: /* @__PURE__ */ l(
|
|
2464
|
+
return s === void 0 || !c ? null : /* @__PURE__ */ t(Ji, { sx: { pt: 4, px: 8 }, children: /* @__PURE__ */ t(sl, { children: /* @__PURE__ */ l(Tn, { alignItems: "center", display: "flex", flexDirection: "column", children: [
|
|
2465
2465
|
/* @__PURE__ */ t(Hs, { categoryGuid: e, topLevelCategoryGuid: n }),
|
|
2466
2466
|
/* @__PURE__ */ t(p, { color: r.palette.text.secondary, variant: "Small", children: se(c, oe.MONTH_SHORT_YEAR) }),
|
|
2467
2467
|
/* @__PURE__ */ t(We, { amount: String(s), bold: !0, formatString: "0,0", variant: "Body" })
|
|
@@ -2527,7 +2527,7 @@ const T_ = ({
|
|
|
2527
2527
|
hoveredAreaData: null,
|
|
2528
2528
|
isAreaHovered: !1,
|
|
2529
2529
|
cursorPos: { x: 0, y: 0 }
|
|
2530
|
-
}), { hoveredSeriesId: E, hoveredAreaData: y, isAreaHovered:
|
|
2530
|
+
}), { hoveredSeriesId: E, hoveredAreaData: y, isAreaHovered: S, cursorPos: A } = C, w = S && E && y, v = !w, R = [...o, ...r], B = R[0]?.dataset.length ?? 0, M = R.flatMap((K) => K.dataset.map((Le) => Le.x)), D = R.flatMap((K) => K.dataset.map((Le) => Le.y)), k = o[0]?.dataset?.map(
|
|
2531
2531
|
(K, Le) => o.reduce((Ge, Pt) => Ge + Pt.dataset[Le]?.y || 0, 0)
|
|
2532
2532
|
) ?? [0], O = Math.max(...k), U = Math.max(
|
|
2533
2533
|
...r.flatMap((K) => K.dataset.map((Le) => Le.y))
|
|
@@ -2562,7 +2562,7 @@ const T_ = ({
|
|
|
2562
2562
|
guid: K,
|
|
2563
2563
|
top_level_guid: Le
|
|
2564
2564
|
}))
|
|
2565
|
-
],
|
|
2565
|
+
], Se = (K) => {
|
|
2566
2566
|
const Ge = K.startsWith("stacked-") ? o[parseInt(K.split("-")[1])] : r[parseInt(K.split("-")[1])];
|
|
2567
2567
|
return {
|
|
2568
2568
|
guid: Ge?.category_guid,
|
|
@@ -2573,10 +2573,10 @@ const T_ = ({
|
|
|
2573
2573
|
}, It = (K) => {
|
|
2574
2574
|
a?.(K ?? "");
|
|
2575
2575
|
}, Q = () => {
|
|
2576
|
-
const K =
|
|
2576
|
+
const K = Se(String(E)).guid;
|
|
2577
2577
|
K && a?.(K);
|
|
2578
2578
|
}, ne = (K) => {
|
|
2579
|
-
const Le = String(K?.seriesId), Ge =
|
|
2579
|
+
const Le = String(K?.seriesId), Ge = Se(Le).guid, Pt = De.find((ai) => ai.id === Le), dt = Pt && K?.dataIndex !== void 0, ii = Pt && K?.dataIndex === void 0;
|
|
2580
2580
|
if (dt)
|
|
2581
2581
|
f({
|
|
2582
2582
|
hoveredSeriesId: Le,
|
|
@@ -2659,7 +2659,7 @@ const T_ = ({
|
|
|
2659
2659
|
itemContent: (K) => v && E ? /* @__PURE__ */ t(
|
|
2660
2660
|
L_,
|
|
2661
2661
|
{
|
|
2662
|
-
categoryGuids:
|
|
2662
|
+
categoryGuids: Se(E),
|
|
2663
2663
|
xData: M,
|
|
2664
2664
|
...K
|
|
2665
2665
|
}
|
|
@@ -2700,7 +2700,7 @@ const T_ = ({
|
|
|
2700
2700
|
w && /* @__PURE__ */ t(
|
|
2701
2701
|
O_,
|
|
2702
2702
|
{
|
|
2703
|
-
categoryGuids:
|
|
2703
|
+
categoryGuids: Se(E),
|
|
2704
2704
|
chartContainerRef: _,
|
|
2705
2705
|
cursorPosition: A,
|
|
2706
2706
|
hoveredAreaData: y.map((K) => ({
|
|
@@ -2907,7 +2907,7 @@ const T_ = ({
|
|
|
2907
2907
|
shouldShrinkToIcon: o = !0,
|
|
2908
2908
|
variant: r = "outlined"
|
|
2909
2909
|
}) => {
|
|
2910
|
-
const s = pe(), c = s.palette.mode === "dark", { isMobile: d } = Ce(), [u, _] = g.useState(a), [h, m] = g.useState(i.dateRangePickerCopy.dateRangeThisMonth), [C, f] = g.useState(u), [E, y] = g.useState(!1), [
|
|
2910
|
+
const s = pe(), c = s.palette.mode === "dark", { isMobile: d } = Ce(), [u, _] = g.useState(a), [h, m] = g.useState(i.dateRangePickerCopy.dateRangeThisMonth), [C, f] = g.useState(u), [E, y] = g.useState(!1), [S, A] = g.useState(!0), [w, v] = g.useState(6), R = {
|
|
2911
2911
|
buttons: [
|
|
2912
2912
|
{ label: "3M", value: 3 },
|
|
2913
2913
|
{ label: "6M", value: 6 },
|
|
@@ -2932,7 +2932,7 @@ const T_ = ({
|
|
|
2932
2932
|
}, M = (O) => {
|
|
2933
2933
|
const U = [...u], ee = u[0], ue = u[1], te = O === "previous";
|
|
2934
2934
|
if (h === i.dateRangePickerCopy.dateRangeThisMonth)
|
|
2935
|
-
U[0] = te ? Yt(ee, 1) :
|
|
2935
|
+
U[0] = te ? Yt(ee, 1) : Tt(ee, 1), U[1] = Ye(te ? Yt(ue, 1) : Tt(ue, 1));
|
|
2936
2936
|
else if (h === i.dateRangePickerCopy.dateRangeYTD || h === i.dateRangePickerCopy.dateRangeLastYear)
|
|
2937
2937
|
U[0] = te ? Da(Fo(ee), 1) : Wi(Fo(ee), 1), U[1] = te ? Da(Po(ee), 1) : Wi(Po(ee), 1);
|
|
2938
2938
|
else {
|
|
@@ -3000,7 +3000,7 @@ const T_ = ({
|
|
|
3000
3000
|
sx: {
|
|
3001
3001
|
p: d ? 0 : 8
|
|
3002
3002
|
},
|
|
3003
|
-
children:
|
|
3003
|
+
children: S ? se(u[0], oe.MONTH_YEAR) : /* @__PURE__ */ l("span", { children: [
|
|
3004
3004
|
se(u[0], oe.MONTH_DAY_YEAR),
|
|
3005
3005
|
" -",
|
|
3006
3006
|
" ",
|
|
@@ -3383,7 +3383,7 @@ const Dn = ({
|
|
|
3383
3383
|
sx: h = {},
|
|
3384
3384
|
title: m = ""
|
|
3385
3385
|
}) => {
|
|
3386
|
-
const [C, { height: f, width: E }] = Ps(), { onEvent: y } = j(), { isDesktop:
|
|
3386
|
+
const [C, { height: f, width: E }] = Ps(), { onEvent: y } = j(), { isDesktop: S, isMobile: A, isTablet: w } = Ce(E), { displayedDateRange: v, isCopyLoaded: R, selectedAccountGuids: B, setSelectedAccountGuids: M } = le(), { common: D } = x(), k = () => {
|
|
3387
3387
|
d && (d(), y(W.WIDGET_BACK_CLICK));
|
|
3388
3388
|
};
|
|
3389
3389
|
if (!R)
|
|
@@ -3437,7 +3437,7 @@ const Dn = ({
|
|
|
3437
3437
|
dn,
|
|
3438
3438
|
{
|
|
3439
3439
|
action: /* @__PURE__ */ l(b, { alignItems: "center", flexDirection: "row", children: [
|
|
3440
|
-
|
|
3440
|
+
S && i && /* @__PURE__ */ t(L, { sx: { flexGrow: 1 }, children: /* @__PURE__ */ t(
|
|
3441
3441
|
ir,
|
|
3442
3442
|
{
|
|
3443
3443
|
calendarActions: i,
|
|
@@ -3462,38 +3462,38 @@ const Dn = ({
|
|
|
3462
3462
|
),
|
|
3463
3463
|
n?.map((ge) => {
|
|
3464
3464
|
if (g.isValidElement(ge)) return ge;
|
|
3465
|
-
const { iconName: De, onClick: Re, label:
|
|
3466
|
-
return te ?
|
|
3465
|
+
const { iconName: De, onClick: Re, label: Se } = ge;
|
|
3466
|
+
return te ? S || w ? /* @__PURE__ */ t(
|
|
3467
3467
|
J,
|
|
3468
3468
|
{
|
|
3469
3469
|
onClick: Re,
|
|
3470
3470
|
startIcon: /* @__PURE__ */ t($, { name: De, size: 24 }),
|
|
3471
3471
|
sx: { my: 4 },
|
|
3472
|
-
children:
|
|
3472
|
+
children: Se
|
|
3473
3473
|
},
|
|
3474
3474
|
De
|
|
3475
|
-
) : /* @__PURE__ */ t(Pe, { "aria-label":
|
|
3475
|
+
) : /* @__PURE__ */ t(Pe, { "aria-label": Se, onClick: Re, children: /* @__PURE__ */ t($, { name: De, size: 24 }) }, De) : S || w ? /* @__PURE__ */ t(
|
|
3476
3476
|
J,
|
|
3477
3477
|
{
|
|
3478
3478
|
onClick: Re,
|
|
3479
3479
|
startIcon: /* @__PURE__ */ t($, { name: De, size: 24 }),
|
|
3480
3480
|
sx: { my: 4 },
|
|
3481
|
-
children:
|
|
3481
|
+
children: Se
|
|
3482
3482
|
},
|
|
3483
3483
|
De
|
|
3484
|
-
) : /* @__PURE__ */ t(Pe, { "aria-label":
|
|
3484
|
+
) : /* @__PURE__ */ t(Pe, { "aria-label": Se, onClick: Re, children: /* @__PURE__ */ t($, { name: De, size: 24 }) }, De);
|
|
3485
3485
|
})
|
|
3486
3486
|
] }),
|
|
3487
3487
|
sx: {
|
|
3488
3488
|
"& .MuiCardHeader-action": {
|
|
3489
|
-
...i &&
|
|
3489
|
+
...i && S && { flexGrow: 1 },
|
|
3490
3490
|
...(A || w) && { alignSelf: "center" },
|
|
3491
3491
|
mr: 0
|
|
3492
3492
|
},
|
|
3493
|
-
p:
|
|
3493
|
+
p: S ? 48 : 24,
|
|
3494
3494
|
pb: 0
|
|
3495
3495
|
},
|
|
3496
|
-
title:
|
|
3496
|
+
title: S || w ? /* @__PURE__ */ t(Xt, { children: m }) : /* @__PURE__ */ l(b, { alignItems: "center", flexDirection: "row", children: [
|
|
3497
3497
|
A && d && /* @__PURE__ */ t(
|
|
3498
3498
|
Pe,
|
|
3499
3499
|
{
|
|
@@ -3507,7 +3507,7 @@ const Dn = ({
|
|
|
3507
3507
|
] })
|
|
3508
3508
|
}
|
|
3509
3509
|
),
|
|
3510
|
-
c && /* @__PURE__ */ t(H, { sx: { mt:
|
|
3510
|
+
c && /* @__PURE__ */ t(H, { sx: { mt: S ? 48 : 24 } }),
|
|
3511
3511
|
i && (A || w) && /* @__PURE__ */ l(b, { gap: 24, justifyContent: "center", sx: { mt: A ? 0 : 16 }, children: [
|
|
3512
3512
|
_ && /* @__PURE__ */ t(H, {}),
|
|
3513
3513
|
/* @__PURE__ */ t(
|
|
@@ -3610,7 +3610,7 @@ const ar = "connect_widget", or = "connections_widget", U_ = ({
|
|
|
3610
3610
|
setHasValidInput: _,
|
|
3611
3611
|
...h
|
|
3612
3612
|
}) => {
|
|
3613
|
-
const [m, C] = g.useState(""), { common: f } = x(), E = o || f.currency_input, y = gt(),
|
|
3613
|
+
const [m, C] = g.useState(""), { common: f } = x(), E = o || f.currency_input, y = gt(), S = V_(y), A = /^[0-9]*$/, w = /^(\d)*(\,)?([0-9]{1,2})?$/, v = /^(\d)*(\.)?([0-9]{1,2})?$/;
|
|
3614
3614
|
let R;
|
|
3615
3615
|
const B = g.useRef(Kl());
|
|
3616
3616
|
if (e)
|
|
@@ -3629,12 +3629,12 @@ const ar = "connect_widget", or = "connections_widget", U_ = ({
|
|
|
3629
3629
|
}, [i]);
|
|
3630
3630
|
const M = (D) => {
|
|
3631
3631
|
!a && (D === "" || D === "." || D === ",") ? (C(""), _?.(!1)) : Number(D) < d ? (C(
|
|
3632
|
-
|
|
3632
|
+
T(
|
|
3633
3633
|
E.error_amount_must_be_equal_to,
|
|
3634
3634
|
P(d, "0")
|
|
3635
3635
|
)
|
|
3636
3636
|
), _?.(!1)) : Number(D) > jo ? (C(
|
|
3637
|
-
|
|
3637
|
+
T(
|
|
3638
3638
|
E.error_amount_must_be_less_than_or_equal_to,
|
|
3639
3639
|
P(jo, e ? "0,0.00" : "0,0", Math.floor)
|
|
3640
3640
|
)
|
|
@@ -3648,7 +3648,7 @@ const ar = "connect_widget", or = "connections_widget", U_ = ({
|
|
|
3648
3648
|
startAdornment: Nn().includes("fr-ca") ? void 0 : /* @__PURE__ */ t(ve, { children: "$" })
|
|
3649
3649
|
},
|
|
3650
3650
|
"aria-label": n || E.enter_amount,
|
|
3651
|
-
className: `mx-cmn-currency-input ${
|
|
3651
|
+
className: `mx-cmn-currency-input ${S}`,
|
|
3652
3652
|
error: !!m,
|
|
3653
3653
|
helperText: m,
|
|
3654
3654
|
inputMode: e ? "decimal" : "numeric",
|
|
@@ -4293,7 +4293,7 @@ const cr = (e, n) => !e && !n ? 0 : !e && n ? 101 : n / e * 100, lr = (e, n) =>
|
|
|
4293
4293
|
...r,
|
|
4294
4294
|
budgetColors: lr(d, a),
|
|
4295
4295
|
category: s,
|
|
4296
|
-
description:
|
|
4296
|
+
description: T(
|
|
4297
4297
|
u < 0 ? i.budget_remaining_over : i.budget_remaining_left,
|
|
4298
4298
|
P(Math.abs(u), "0,0")
|
|
4299
4299
|
),
|
|
@@ -4312,7 +4312,7 @@ const cr = (e, n) => !e && !n ? 0 : !e && n ? 101 : n / e * 100, lr = (e, n) =>
|
|
|
4312
4312
|
...r,
|
|
4313
4313
|
budgetColors: lr(_, a),
|
|
4314
4314
|
category: s,
|
|
4315
|
-
description:
|
|
4315
|
+
description: T(
|
|
4316
4316
|
u < 0 ? i.budget_remaining_over : i.budget_remaining_left,
|
|
4317
4317
|
P(Math.abs(u), "0,0")
|
|
4318
4318
|
),
|
|
@@ -4474,17 +4474,17 @@ const ti = () => {
|
|
|
4474
4474
|
setNextIncome: m,
|
|
4475
4475
|
setSelectedCashAccounts: C,
|
|
4476
4476
|
setUpcomingExpenses: f
|
|
4477
|
-
} = ti(), { isDataLoaded: E, nextIncomeRecurrence: y, upcomingExpenses:
|
|
4477
|
+
} = ti(), { isDataLoaded: E, nextIncomeRecurrence: y, upcomingExpenses: S } = ze();
|
|
4478
4478
|
g.useEffect(() => {
|
|
4479
4479
|
C(
|
|
4480
4480
|
o.filter((B) => s.includes(B.guid))
|
|
4481
4481
|
);
|
|
4482
4482
|
}, [o, s]), g.useEffect(() => {
|
|
4483
|
-
y && m(y), f(
|
|
4484
|
-
}, [y,
|
|
4483
|
+
y && m(y), f(S);
|
|
4484
|
+
}, [y, S]);
|
|
4485
4485
|
const A = g.useMemo(
|
|
4486
4486
|
() => o.filter((B) => s.includes(B.guid)).reduce((B, M) => B + (M?.balance || 0), 0),
|
|
4487
|
-
[s,
|
|
4487
|
+
[s, S]
|
|
4488
4488
|
), w = g.useMemo(
|
|
4489
4489
|
() => _.filter((B) => s.includes(B.accountGuid || "")).reduce((B, M) => B + M.amount, 0),
|
|
4490
4490
|
[s, _]
|
|
@@ -4503,7 +4503,7 @@ const ti = () => {
|
|
|
4503
4503
|
children: [
|
|
4504
4504
|
/* @__PURE__ */ l(b, { pb: 14, pt: 12, children: [
|
|
4505
4505
|
/* @__PURE__ */ t(We, { amount: A, variant: "H2" }),
|
|
4506
|
-
/* @__PURE__ */ t(ve, { variant: "XSmall", whiteSpace: "nowrap", children:
|
|
4506
|
+
/* @__PURE__ */ t(ve, { variant: "XSmall", whiteSpace: "nowrap", children: T(
|
|
4507
4507
|
c.total_cash_accounts,
|
|
4508
4508
|
h.length
|
|
4509
4509
|
) })
|
|
@@ -4511,7 +4511,7 @@ const ti = () => {
|
|
|
4511
4511
|
/* @__PURE__ */ t(b, { pt: 18, children: /* @__PURE__ */ t($, { name: "remove" }) }),
|
|
4512
4512
|
/* @__PURE__ */ l(b, { pb: 14, pt: 12, children: [
|
|
4513
4513
|
/* @__PURE__ */ t(We, { amount: w, variant: "H2" }),
|
|
4514
|
-
/* @__PURE__ */ t(ve, { variant: "XSmall", whiteSpace: "nowrap", children:
|
|
4514
|
+
/* @__PURE__ */ t(ve, { variant: "XSmall", whiteSpace: "nowrap", children: T(c.expenses_due, _.length) })
|
|
4515
4515
|
] }),
|
|
4516
4516
|
/* @__PURE__ */ t(b, { pt: 18, children: /* @__PURE__ */ t($, { name: "equals" }) }),
|
|
4517
4517
|
/* @__PURE__ */ l(b, { pb: 14, pr: 24, pt: 12, children: [
|
|
@@ -4522,7 +4522,7 @@ const ti = () => {
|
|
|
4522
4522
|
] })
|
|
4523
4523
|
] }),
|
|
4524
4524
|
/* @__PURE__ */ t(b, { borderLeft: `1px solid ${n.palette.border.light}`, pb: 12, pl: 24, pt: 12, children: R ? /* @__PURE__ */ l(q, { children: [
|
|
4525
|
-
/* @__PURE__ */ t(p, { variant: "H2", children:
|
|
4525
|
+
/* @__PURE__ */ t(p, { variant: "H2", children: T(c.days, u) }),
|
|
4526
4526
|
/* @__PURE__ */ t(ve, { variant: "XSmall", whiteSpace: "nowrap", children: c.next_paycheck })
|
|
4527
4527
|
] }) : /* @__PURE__ */ t(
|
|
4528
4528
|
J,
|
|
@@ -4537,7 +4537,7 @@ const ti = () => {
|
|
|
4537
4537
|
}
|
|
4538
4538
|
) : /* @__PURE__ */ l(b, { border: `1px solid ${n.palette.border.light}`, borderRadius: 1, children: [
|
|
4539
4539
|
/* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", p: 16, children: [
|
|
4540
|
-
/* @__PURE__ */ t(p, { variant: "Small", children:
|
|
4540
|
+
/* @__PURE__ */ t(p, { variant: "Small", children: T(
|
|
4541
4541
|
c.total_cash_accounts,
|
|
4542
4542
|
h.length
|
|
4543
4543
|
) }),
|
|
@@ -4545,7 +4545,7 @@ const ti = () => {
|
|
|
4545
4545
|
] }),
|
|
4546
4546
|
/* @__PURE__ */ t(H, {}),
|
|
4547
4547
|
/* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", p: 16, children: [
|
|
4548
|
-
/* @__PURE__ */ t(p, { variant: "Small", children:
|
|
4548
|
+
/* @__PURE__ */ t(p, { variant: "Small", children: T(c.expenses_due, _.length) }),
|
|
4549
4549
|
/* @__PURE__ */ t(We, { amount: w, bold: !0, symbol: "-", variant: "XSmall" })
|
|
4550
4550
|
] }),
|
|
4551
4551
|
/* @__PURE__ */ t(H, {}),
|
|
@@ -4566,7 +4566,7 @@ const ti = () => {
|
|
|
4566
4566
|
/* @__PURE__ */ t(H, {}),
|
|
4567
4567
|
R ? /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", p: 16, children: [
|
|
4568
4568
|
/* @__PURE__ */ t(p, { variant: "Small", children: c.next_paycheck }),
|
|
4569
|
-
/* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children:
|
|
4569
|
+
/* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: T(c.days, u) })
|
|
4570
4570
|
] }) : /* @__PURE__ */ l(
|
|
4571
4571
|
b,
|
|
4572
4572
|
{
|
|
@@ -4632,7 +4632,7 @@ const ti = () => {
|
|
|
4632
4632
|
status: Je.Upcoming,
|
|
4633
4633
|
type: e.repeating_transaction_type === an.Income ? zt.Income : zt.Expense,
|
|
4634
4634
|
transaction: void 0
|
|
4635
|
-
}, r = Ze(he()), s = Ye(
|
|
4635
|
+
}, r = Ze(he()), s = Ye(Tt(he(), 1));
|
|
4636
4636
|
switch (e.recurrence_type) {
|
|
4637
4637
|
case me.EveryWeek:
|
|
4638
4638
|
n.push(...cu(o, r, s));
|
|
@@ -4684,15 +4684,15 @@ const ti = () => {
|
|
|
4684
4684
|
return a;
|
|
4685
4685
|
}, du = (e) => {
|
|
4686
4686
|
const n = [], i = Ui(he(), e.recurrenceDay), a = e.secondRecurrenceDay && e.secondRecurrenceDay < 28 ? Ui(he(), e.secondRecurrenceDay) : sd(he());
|
|
4687
|
-
return n.push({ ...e, expectedDate: i }), n.push({ ...e, expectedDate: a }), n.push({ ...e, expectedDate:
|
|
4687
|
+
return n.push({ ...e, expectedDate: i }), n.push({ ...e, expectedDate: a }), n.push({ ...e, expectedDate: Tt(i, 1) }), n.push({ ...e, expectedDate: Tt(a, 1) }), n;
|
|
4688
4688
|
}, _u = (e) => {
|
|
4689
4689
|
const n = [], i = Ui(he(), e.recurrenceDay);
|
|
4690
|
-
return n.push({ ...e, expectedDate: i }), n.push({ ...e, expectedDate:
|
|
4690
|
+
return n.push({ ...e, expectedDate: i }), n.push({ ...e, expectedDate: Tt(i, 1) }), n;
|
|
4691
4691
|
}, uu = (e, n, i) => {
|
|
4692
4692
|
const a = [], o = e.expectedDate;
|
|
4693
4693
|
let r = Xe(o, i) ? o : Yt(o, 2);
|
|
4694
4694
|
for (; Xe(r, i); )
|
|
4695
|
-
nn(r, n) && a.push({ ...e, expectedDate: r }), r =
|
|
4695
|
+
nn(r, n) && a.push({ ...e, expectedDate: r }), r = Tt(r, 2);
|
|
4696
4696
|
return a;
|
|
4697
4697
|
}, hu = (e, n, i) => {
|
|
4698
4698
|
const a = [], o = e.expectedDate;
|
|
@@ -4745,37 +4745,37 @@ const ti = () => {
|
|
|
4745
4745
|
}), n;
|
|
4746
4746
|
}, []), ji = (e, n, i) => {
|
|
4747
4747
|
const a = $i(he(), n.recurrence_day), o = gs(he(), n.recurrence_day), r = Ci(n.recurrence_day), s = n.second_recurrence_day ? Ci(n.second_recurrence_day) : "";
|
|
4748
|
-
let c = i ?
|
|
4748
|
+
let c = i ? T(e.monthly_ordinal, r) : e.monthly;
|
|
4749
4749
|
switch (n.recurrence_type) {
|
|
4750
4750
|
case me.EveryQuarter:
|
|
4751
|
-
c = i ?
|
|
4751
|
+
c = i ? T(e.quarterly_ordinal, r) : e.quarterly;
|
|
4752
4752
|
break;
|
|
4753
4753
|
case me.EveryWeek:
|
|
4754
|
-
c = i ?
|
|
4754
|
+
c = i ? T(
|
|
4755
4755
|
e.weekly_ordinal,
|
|
4756
4756
|
se(a, oe.DAY_OF_WEEK)
|
|
4757
4757
|
) : e.weekly;
|
|
4758
4758
|
break;
|
|
4759
4759
|
case me.EveryYear:
|
|
4760
|
-
c = i ?
|
|
4760
|
+
c = i ? T(
|
|
4761
4761
|
e.anually_ordinal,
|
|
4762
4762
|
se(o, oe.MONTH_DAY)
|
|
4763
4763
|
) : e.anually;
|
|
4764
4764
|
break;
|
|
4765
4765
|
case me.EveryOtherWeek:
|
|
4766
|
-
c = i ?
|
|
4766
|
+
c = i ? T(
|
|
4767
4767
|
e.every_other_week_ordinal,
|
|
4768
4768
|
se(a, oe.DAY_OF_WEEK)
|
|
4769
4769
|
) : e.every_other_week;
|
|
4770
4770
|
break;
|
|
4771
4771
|
case me.EveryOtherMonth:
|
|
4772
|
-
c = i ?
|
|
4772
|
+
c = i ? T(e.every_other_month_ordinal, r) : e.every_other_month;
|
|
4773
4773
|
break;
|
|
4774
4774
|
case me.EveryOtherQuarter:
|
|
4775
|
-
c = i ?
|
|
4775
|
+
c = i ? T(e.every_other_quarter_ordinal, r) : e.every_other_quarter;
|
|
4776
4776
|
break;
|
|
4777
4777
|
case me.TwiceAMonth:
|
|
4778
|
-
c = i ?
|
|
4778
|
+
c = i ? T(e.twice_a_month_ordinal, r, s) : e.twice_a_month;
|
|
4779
4779
|
break;
|
|
4780
4780
|
}
|
|
4781
4781
|
return c;
|
|
@@ -4985,7 +4985,7 @@ const fu = [
|
|
|
4985
4985
|
tags: _
|
|
4986
4986
|
};
|
|
4987
4987
|
});
|
|
4988
|
-
},
|
|
4988
|
+
}, Te = {
|
|
4989
4989
|
ADD: "Add",
|
|
4990
4990
|
ADD_CATEGORY: "Add Category",
|
|
4991
4991
|
CHANGE_CATEGORY: "Change Category",
|
|
@@ -5025,214 +5025,214 @@ const fu = [
|
|
|
5025
5025
|
}, dr = {
|
|
5026
5026
|
// splits
|
|
5027
5027
|
[Y.ON_TRANSACTION_SPLIT_CLICK]: {
|
|
5028
|
-
action:
|
|
5028
|
+
action: Te.SELECT,
|
|
5029
5029
|
category: Ae.TRANSACTION_DETAILS,
|
|
5030
5030
|
label: Ie.SPLITS
|
|
5031
5031
|
},
|
|
5032
5032
|
[Y.ON_TRANSACTION_SPLIT_CATEGORY_CLICK]: {
|
|
5033
|
-
action:
|
|
5033
|
+
action: Te.ADD_CATEGORY,
|
|
5034
5034
|
category: Ae.TRANSACTION_DETAILS,
|
|
5035
5035
|
label: Ie.SPLITS
|
|
5036
5036
|
},
|
|
5037
5037
|
[Y.ON_TRANSACTION_SPLIT_DELETE_CLICK]: {
|
|
5038
|
-
action:
|
|
5038
|
+
action: Te.DELETE,
|
|
5039
5039
|
category: Ae.TRANSACTION_DETAILS,
|
|
5040
5040
|
label: Ie.SPLITS
|
|
5041
5041
|
},
|
|
5042
5042
|
[Y.ON_TRANSACTION_SPLIT_SAVE_CLICK]: {
|
|
5043
|
-
action:
|
|
5043
|
+
action: Te.SPLIT,
|
|
5044
5044
|
category: Ae.TRANSACTION_DETAILS,
|
|
5045
5045
|
label: Ie.SPLITS
|
|
5046
5046
|
},
|
|
5047
5047
|
[Y.ON_TRANSACTION_UNSPLIT]: {
|
|
5048
|
-
action:
|
|
5048
|
+
action: Te.UNSPLIT,
|
|
5049
5049
|
category: Ae.TRANSACTION_DETAILS,
|
|
5050
5050
|
label: Ie.SPLITS
|
|
5051
5051
|
},
|
|
5052
5052
|
// category
|
|
5053
5053
|
[Y.ON_TRANSACTION_CATEGORY_CLICK]: {
|
|
5054
|
-
action:
|
|
5054
|
+
action: Te.SELECT,
|
|
5055
5055
|
category: Ae.TRANSACTIONS_LIST,
|
|
5056
5056
|
label: Ie.CATEGORY
|
|
5057
5057
|
},
|
|
5058
5058
|
[Y.ON_TRANSACTION_CATEGORY_CHANGED]: {
|
|
5059
|
-
action:
|
|
5059
|
+
action: Te.CHANGE_CATEGORY,
|
|
5060
5060
|
category: Ae.TRANSACTION_DETAILS,
|
|
5061
5061
|
label: Ie.CATEGORY
|
|
5062
5062
|
},
|
|
5063
5063
|
// date
|
|
5064
5064
|
[Y.ON_TRANSACTION_DATE_CHANGED]: {
|
|
5065
|
-
action:
|
|
5065
|
+
action: Te.SAVE,
|
|
5066
5066
|
category: Ae.TRANSACTION_DETAILS,
|
|
5067
5067
|
label: Ie.DATE
|
|
5068
5068
|
},
|
|
5069
5069
|
[Y.ON_TRANSACTION_DATE_CLICK]: {
|
|
5070
|
-
action:
|
|
5070
|
+
action: Te.SELECT,
|
|
5071
5071
|
category: Ae.TRANSACTION_DETAILS,
|
|
5072
5072
|
label: Ie.DATE
|
|
5073
5073
|
},
|
|
5074
5074
|
// merchant logo
|
|
5075
5075
|
[Y.ON_TRANSACTION_DELETE_LOGO_CANCEL]: {
|
|
5076
|
-
action:
|
|
5076
|
+
action: Te.CLOSE,
|
|
5077
5077
|
category: Ae.TRANSACTION_DETAILS,
|
|
5078
5078
|
label: Ie.DELETE_MERCHANT_LOGO
|
|
5079
5079
|
},
|
|
5080
5080
|
[Y.ON_TRANSACTION_DELETE_LOGO_CLICK]: {
|
|
5081
|
-
action:
|
|
5081
|
+
action: Te.SELECT,
|
|
5082
5082
|
category: Ae.TRANSACTION_DETAILS,
|
|
5083
5083
|
label: Ie.DELETE_MERCHANT_LOGO
|
|
5084
5084
|
},
|
|
5085
5085
|
[Y.ON_TRANSACTION_DELETE_LOGO_DELETED]: {
|
|
5086
|
-
action:
|
|
5086
|
+
action: Te.DELETE,
|
|
5087
5087
|
category: Ae.TRANSACTION_DETAILS,
|
|
5088
5088
|
label: Ie.DELETE_MERCHANT_LOGO
|
|
5089
5089
|
},
|
|
5090
5090
|
// description
|
|
5091
5091
|
[Y.ON_TRANSACTION_DESCRIPTION_EDIT_CLICK]: {
|
|
5092
|
-
action:
|
|
5092
|
+
action: Te.EDIT,
|
|
5093
5093
|
category: Ae.TRANSACTION_DETAILS,
|
|
5094
5094
|
label: Ie.DESCRIPTION
|
|
5095
5095
|
},
|
|
5096
5096
|
[Y.ON_TRANSACTION_DESCRIPTION_SAVE_CLICK]: {
|
|
5097
|
-
action:
|
|
5097
|
+
action: Te.SAVE,
|
|
5098
5098
|
category: Ae.TRANSACTION_DETAILS,
|
|
5099
5099
|
label: Ie.DESCRIPTION
|
|
5100
5100
|
},
|
|
5101
5101
|
// hide transactions
|
|
5102
5102
|
[Y.ON_TRANSACTION_HIDDEN]: {
|
|
5103
|
-
action:
|
|
5103
|
+
action: Te.SAVE,
|
|
5104
5104
|
category: Ae.TRANSACTION_DETAILS,
|
|
5105
5105
|
label: Ie.HIDE_TRANSACTION
|
|
5106
5106
|
},
|
|
5107
5107
|
[Y.ON_TRANSACTION_HIDE_CLICK]: {
|
|
5108
|
-
action:
|
|
5108
|
+
action: Te.SELECT,
|
|
5109
5109
|
category: Ae.TRANSACTION_DETAILS,
|
|
5110
5110
|
label: Ie.HIDE_TRANSACTION
|
|
5111
5111
|
},
|
|
5112
5112
|
[Y.ON_TRANSACTION_HIDE_CANCEL_CLICK]: {
|
|
5113
|
-
action:
|
|
5113
|
+
action: Te.CLOSE,
|
|
5114
5114
|
category: Ae.TRANSACTION_DETAILS,
|
|
5115
5115
|
label: Ie.HIDE_TRANSACTION
|
|
5116
5116
|
},
|
|
5117
5117
|
// transaction list
|
|
5118
5118
|
[Y.ON_TRANSACTION_LIST_ITEM_CLICK]: {
|
|
5119
|
-
action:
|
|
5119
|
+
action: Te.SELECT,
|
|
5120
5120
|
category: Ae.TRANSACTIONS_LIST,
|
|
5121
5121
|
label: Ie.TRANSACTION
|
|
5122
5122
|
},
|
|
5123
5123
|
// memo
|
|
5124
5124
|
[Y.ON_TRANSACTION_MEMO_CHANGED]: {
|
|
5125
|
-
action:
|
|
5125
|
+
action: Te.SAVE,
|
|
5126
5126
|
category: Ae.TRANSACTION_DETAILS,
|
|
5127
5127
|
label: Ie.MEMO
|
|
5128
5128
|
},
|
|
5129
5129
|
[Y.ON_TRANSACTION_MEMO_CLICK]: {
|
|
5130
|
-
action:
|
|
5130
|
+
action: Te.SELECT,
|
|
5131
5131
|
category: Ae.TRANSACTION_DETAILS,
|
|
5132
5132
|
label: Ie.MEMO
|
|
5133
5133
|
},
|
|
5134
5134
|
// tags
|
|
5135
5135
|
[Y.ON_TRANSACTION_TAGS_CHANGED]: {
|
|
5136
|
-
action:
|
|
5136
|
+
action: Te.SAVE,
|
|
5137
5137
|
category: Ae.TRANSACTION_DETAILS,
|
|
5138
5138
|
label: Ie.TAGS
|
|
5139
5139
|
},
|
|
5140
5140
|
[Y.ON_TRANSACTION_TAGS_CLICK]: {
|
|
5141
|
-
action:
|
|
5141
|
+
action: Te.SELECT,
|
|
5142
5142
|
category: Ae.TRANSACTION_DETAILS,
|
|
5143
5143
|
label: Ie.TAGS
|
|
5144
5144
|
},
|
|
5145
5145
|
[Y.ON_TRANSACTION_TAGS_TAG_ADD_CANCEL_CLICK]: {
|
|
5146
|
-
action:
|
|
5146
|
+
action: Te.CLOSE,
|
|
5147
5147
|
category: Ae.TRANSACTION_DETAILS,
|
|
5148
5148
|
label: Ie.TAGS
|
|
5149
5149
|
},
|
|
5150
5150
|
[Y.ON_TRANSACTION_TAGS_TAG_ADD_CLICK]: {
|
|
5151
|
-
action:
|
|
5151
|
+
action: Te.ADD,
|
|
5152
5152
|
category: Ae.TRANSACTION_DETAILS,
|
|
5153
5153
|
label: Ie.TAG_ADD
|
|
5154
5154
|
},
|
|
5155
5155
|
[Y.ON_TRANSACTION_TAGS_TAG_ADDED]: {
|
|
5156
|
-
action:
|
|
5156
|
+
action: Te.SAVE,
|
|
5157
5157
|
category: Ae.TRANSACTION_DETAILS,
|
|
5158
5158
|
label: Ie.TAG_ADD
|
|
5159
5159
|
},
|
|
5160
5160
|
[Y.ON_TRANSACTION_TAGS_TAG_DELETE_CLICK]: {
|
|
5161
|
-
action:
|
|
5161
|
+
action: Te.SELECT,
|
|
5162
5162
|
category: Ae.TRANSACTION_DETAILS,
|
|
5163
5163
|
label: Ie.TAG_DELETE
|
|
5164
5164
|
},
|
|
5165
5165
|
[Y.ON_TRANSACTION_TAGS_TAG_DELETE_CANCEL_CLICK]: {
|
|
5166
|
-
action:
|
|
5166
|
+
action: Te.CLOSE,
|
|
5167
5167
|
category: Ae.TRANSACTION_DETAILS,
|
|
5168
5168
|
label: Ie.TAG_DELETE
|
|
5169
5169
|
},
|
|
5170
5170
|
[Y.ON_TRANSACTION_TAGS_TAG_DELETED]: {
|
|
5171
|
-
action:
|
|
5171
|
+
action: Te.SAVE,
|
|
5172
5172
|
category: Ae.TRANSACTION_DETAILS,
|
|
5173
5173
|
label: Ie.TAG_DELETE
|
|
5174
5174
|
},
|
|
5175
5175
|
[Y.ON_TRANSACTION_TAGS_TAG_EDIT_CLICK]: {
|
|
5176
|
-
action:
|
|
5176
|
+
action: Te.EDIT,
|
|
5177
5177
|
category: Ae.TRANSACTION_DETAILS,
|
|
5178
5178
|
label: Ie.TAG_EDIT
|
|
5179
5179
|
},
|
|
5180
5180
|
[Y.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED]: {
|
|
5181
|
-
action:
|
|
5181
|
+
action: Te.SAVE,
|
|
5182
5182
|
category: Ae.TRANSACTION_DETAILS,
|
|
5183
5183
|
label: Ie.TAG_EDIT
|
|
5184
5184
|
},
|
|
5185
5185
|
// flag
|
|
5186
5186
|
[Y.ON_TRANSACTION_TOGGLE_FLAG_CLICK]: {
|
|
5187
|
-
action:
|
|
5187
|
+
action: Te.SELECT,
|
|
5188
5188
|
category: Ae.TRANSACTION_DETAILS,
|
|
5189
5189
|
label: Ie.FLAG
|
|
5190
5190
|
},
|
|
5191
5191
|
// hide
|
|
5192
5192
|
[Y.ON_TRANSACTION_UNHIDDEN]: {
|
|
5193
|
-
action:
|
|
5193
|
+
action: Te.SAVE,
|
|
5194
5194
|
category: Ae.TRANSACTION_DETAILS,
|
|
5195
5195
|
label: Ie.UNHIDE_TRANSACTION
|
|
5196
5196
|
},
|
|
5197
5197
|
[Y.ON_TRANSACTION_UNHIDE_CLICK]: {
|
|
5198
|
-
action:
|
|
5198
|
+
action: Te.SELECT,
|
|
5199
5199
|
category: Ae.TRANSACTION_DETAILS,
|
|
5200
5200
|
label: Ie.UNHIDE_TRANSACTION
|
|
5201
5201
|
},
|
|
5202
5202
|
[Y.ON_TRANSACTION_UNHIDE_CANCEL_CLICK]: {
|
|
5203
|
-
action:
|
|
5203
|
+
action: Te.CLOSE,
|
|
5204
5204
|
category: Ae.TRANSACTION_DETAILS,
|
|
5205
5205
|
label: Ie.UNHIDE_TRANSACTION
|
|
5206
5206
|
},
|
|
5207
5207
|
// export CSV
|
|
5208
5208
|
[Y.ON_TRANSACTION_EXPORT_CSV_CLICK]: {
|
|
5209
|
-
action:
|
|
5209
|
+
action: Te.SELECT,
|
|
5210
5210
|
category: Ae.TRANSACTIONS_WIDGET,
|
|
5211
5211
|
label: Ie.EXPORT_CSV
|
|
5212
5212
|
},
|
|
5213
5213
|
// add transaction
|
|
5214
5214
|
[Y.ON_TRANSACTION_MANUAL_ADD_CLICK]: {
|
|
5215
|
-
action:
|
|
5215
|
+
action: Te.SELECT,
|
|
5216
5216
|
category: Ae.TRANSACTIONS_WIDGET,
|
|
5217
5217
|
label: Ie.ADD_TRANSACTION
|
|
5218
5218
|
},
|
|
5219
5219
|
[Y.ON_TRANSACTION_MANUAL_ADD_ADDED]: {
|
|
5220
|
-
action:
|
|
5220
|
+
action: Te.ADD,
|
|
5221
5221
|
category: Ae.TRANSACTIONS_WIDGET,
|
|
5222
5222
|
label: Ie.ADD_TRANSACTION
|
|
5223
5223
|
},
|
|
5224
5224
|
[Y.ON_TRANSACTION_DELETE_CLICK]: {
|
|
5225
|
-
action:
|
|
5225
|
+
action: Te.SELECT,
|
|
5226
5226
|
category: Ae.TRANSACTIONS_WIDGET,
|
|
5227
5227
|
label: Ie.DELETE_TRANSACTION
|
|
5228
5228
|
},
|
|
5229
5229
|
[Y.ON_TRANSACTION_DELETE_CANCEL]: {
|
|
5230
|
-
action:
|
|
5230
|
+
action: Te.CLOSE,
|
|
5231
5231
|
category: Ae.TRANSACTIONS_WIDGET,
|
|
5232
5232
|
label: Ie.DELETE_TRANSACTION
|
|
5233
5233
|
},
|
|
5234
5234
|
[Y.ON_TRANSACTION_DELETE_DELETED]: {
|
|
5235
|
-
action:
|
|
5235
|
+
action: Te.DELETE,
|
|
5236
5236
|
category: Ae.TRANSACTIONS_WIDGET,
|
|
5237
5237
|
label: Ie.DELETE_TRANSACTION
|
|
5238
5238
|
}
|
|
@@ -5243,7 +5243,7 @@ const fu = [
|
|
|
5243
5243
|
CATEGORY: "category",
|
|
5244
5244
|
ACCOUNT: "account",
|
|
5245
5245
|
AMOUNT: "amount"
|
|
5246
|
-
},
|
|
5246
|
+
}, Su = "uncategorized", Tu = (e, n, i, a, o, r) => {
|
|
5247
5247
|
const s = Au(e, o, r), c = Iu(s, i, a);
|
|
5248
5248
|
return n.forEach((d) => {
|
|
5249
5249
|
const u = c.findIndex((h) => h.guid === d), _ = r.filter((h) => h.parent_guid === d);
|
|
@@ -5257,7 +5257,7 @@ const fu = [
|
|
|
5257
5257
|
searchTerm: s = ""
|
|
5258
5258
|
} = e;
|
|
5259
5259
|
return i.filter((c) => !c.parent_guid).filter((c) => !!a.find((d) => d === c.account_guid)).filter((c) => c.date > He(o.start) && c.date < He(o.end)).filter(r).filter((c) => {
|
|
5260
|
-
if (s ===
|
|
5260
|
+
if (s === Su && c.has_been_split)
|
|
5261
5261
|
return !1;
|
|
5262
5262
|
if (/^spl/i.test(s) && (c.has_been_split || c.parent_guid))
|
|
5263
5263
|
return !0;
|
|
@@ -5347,16 +5347,16 @@ class Ru {
|
|
|
5347
5347
|
uiStore;
|
|
5348
5348
|
api = new Xi("/", "");
|
|
5349
5349
|
beatApi = new Yn("/", "");
|
|
5350
|
-
associatedBeats = [];
|
|
5351
|
-
cachedStartDate = At(he(), 90);
|
|
5352
|
-
filter = {};
|
|
5353
5350
|
isLoading = !0;
|
|
5354
|
-
rawTransactions = [];
|
|
5355
|
-
sortColumn = Ba.DATE;
|
|
5356
|
-
sortDirection = Ws.DESC;
|
|
5357
5351
|
taggings = [];
|
|
5358
5352
|
tags = [];
|
|
5359
5353
|
transactionRules = [];
|
|
5354
|
+
transactions = [];
|
|
5355
|
+
associatedBeats = [];
|
|
5356
|
+
cachedStartDate = At(he(), 90);
|
|
5357
|
+
sortColumn = Ba.DATE;
|
|
5358
|
+
sortDirection = Ws.DESC;
|
|
5359
|
+
filter = {};
|
|
5360
5360
|
onAnalyticEvent = Eu;
|
|
5361
5361
|
constructor(n) {
|
|
5362
5362
|
this.globalStore = n, this.uiStore = new Du(), this.api = new Xi(n.endpoint, n.sessionToken), this.beatApi = new Yn(n.endpoint, n.sessionToken), Be(this);
|
|
@@ -5374,7 +5374,7 @@ class Ru {
|
|
|
5374
5374
|
});
|
|
5375
5375
|
};
|
|
5376
5376
|
get sortedTransactions() {
|
|
5377
|
-
return
|
|
5377
|
+
return Tu(
|
|
5378
5378
|
this.filter,
|
|
5379
5379
|
this.uiStore.expandedSplits,
|
|
5380
5380
|
this.sortColumn,
|
|
@@ -5383,9 +5383,6 @@ class Ru {
|
|
|
5383
5383
|
this.transactions
|
|
5384
5384
|
);
|
|
5385
5385
|
}
|
|
5386
|
-
get transactions() {
|
|
5387
|
-
return this.augmentTransactions(this.rawTransactions);
|
|
5388
|
-
}
|
|
5389
5386
|
addTag = async (n) => {
|
|
5390
5387
|
await this.api.addTag({ name: n }), await this.loadTags();
|
|
5391
5388
|
};
|
|
@@ -5411,7 +5408,9 @@ class Ru {
|
|
|
5411
5408
|
};
|
|
5412
5409
|
addTransaction = async (n) => {
|
|
5413
5410
|
const i = await this.api.addTransaction(n);
|
|
5414
|
-
i && Z(
|
|
5411
|
+
i && Z(
|
|
5412
|
+
() => this.transactions = this.augmentTransactions([i, ...this.transactions])
|
|
5413
|
+
);
|
|
5415
5414
|
};
|
|
5416
5415
|
augmentTransactions = (n) => yu(
|
|
5417
5416
|
n,
|
|
@@ -5436,14 +5435,14 @@ class Ru {
|
|
|
5436
5435
|
Z(() => this.transactionRules = n);
|
|
5437
5436
|
};
|
|
5438
5437
|
loadTransactions = async (n = this.cachedStartDate, i = En()) => {
|
|
5439
|
-
this.setIsLoading(!0), this.
|
|
5438
|
+
this.setIsLoading(!0), this.transactions = [];
|
|
5440
5439
|
try {
|
|
5441
5440
|
const a = await this.api.getTransactionsByDateRange(
|
|
5442
5441
|
He(n),
|
|
5443
5442
|
He(i)
|
|
5444
5443
|
);
|
|
5445
5444
|
Z(() => {
|
|
5446
|
-
this.
|
|
5445
|
+
this.transactions = this.augmentTransactions(a);
|
|
5447
5446
|
});
|
|
5448
5447
|
} catch (a) {
|
|
5449
5448
|
console.error(`Error occurred while loading transactions: ${a}`);
|
|
@@ -5458,7 +5457,7 @@ class Ru {
|
|
|
5458
5457
|
});
|
|
5459
5458
|
};
|
|
5460
5459
|
modifyTransactionByAccountGuid = (n, i) => {
|
|
5461
|
-
this.
|
|
5460
|
+
this.transactions = this.transactions.map(
|
|
5462
5461
|
(a) => a.account_guid === n ? { ...a, ...i } : a
|
|
5463
5462
|
);
|
|
5464
5463
|
};
|
|
@@ -5473,7 +5472,7 @@ class Ru {
|
|
|
5473
5472
|
const i = this.transactions.findIndex((a) => a.guid === n);
|
|
5474
5473
|
if (i >= 0) {
|
|
5475
5474
|
const a = [...this.transactions];
|
|
5476
|
-
a.splice(i, 1), Z(() => this.
|
|
5475
|
+
a.splice(i, 1), Z(() => this.transactions = a);
|
|
5477
5476
|
}
|
|
5478
5477
|
};
|
|
5479
5478
|
setFilter = (n) => {
|
|
@@ -5493,12 +5492,12 @@ class Ru {
|
|
|
5493
5492
|
}
|
|
5494
5493
|
const r = this.transactions.findIndex((s) => s.guid === n.guid);
|
|
5495
5494
|
r >= 0 && Z(
|
|
5496
|
-
() => this.
|
|
5495
|
+
() => this.transactions = this.augmentTransactions([
|
|
5497
5496
|
...this.transactions.slice(0, r),
|
|
5498
5497
|
a,
|
|
5499
5498
|
...this.transactions.slice(r + 1),
|
|
5500
5499
|
...o
|
|
5501
|
-
]
|
|
5500
|
+
])
|
|
5502
5501
|
);
|
|
5503
5502
|
};
|
|
5504
5503
|
unSplitTransaction = async (n) => {
|
|
@@ -5511,7 +5510,7 @@ class Ru {
|
|
|
5511
5510
|
});
|
|
5512
5511
|
const o = a.findIndex((s) => s.guid === n), r = a[o];
|
|
5513
5512
|
r.has_been_split = !1, o >= 0 && Z(
|
|
5514
|
-
() => this.
|
|
5513
|
+
() => this.transactions = [
|
|
5515
5514
|
...a.slice(0, o),
|
|
5516
5515
|
r,
|
|
5517
5516
|
...a.slice(o + 1)
|
|
@@ -5532,11 +5531,11 @@ class Ru {
|
|
|
5532
5531
|
updateTransaction = async (n) => {
|
|
5533
5532
|
const i = await this.api.updateTransaction(n), a = this.transactions.findIndex((o) => o.guid === n.guid);
|
|
5534
5533
|
a >= 0 && Z(
|
|
5535
|
-
() => this.
|
|
5534
|
+
() => this.transactions = this.augmentTransactions([
|
|
5536
5535
|
...this.transactions.slice(0, a),
|
|
5537
5536
|
i,
|
|
5538
5537
|
...this.transactions.slice(a + 1)
|
|
5539
|
-
]
|
|
5538
|
+
])
|
|
5540
5539
|
);
|
|
5541
5540
|
};
|
|
5542
5541
|
}
|
|
@@ -5681,25 +5680,25 @@ const Pu = ({ transaction: e, onClick: n }) => {
|
|
|
5681
5680
|
account_guid: w?.account_guid,
|
|
5682
5681
|
transaction_guid: A
|
|
5683
5682
|
}), a?.(A);
|
|
5684
|
-
}, y = g.useRef(null),
|
|
5683
|
+
}, y = g.useRef(null), S = us({
|
|
5685
5684
|
count: h.length,
|
|
5686
5685
|
getScrollElement: () => y.current,
|
|
5687
5686
|
estimateSize: (A) => ur + (_r(A, h) ? hr : 0),
|
|
5688
5687
|
overscan: 5
|
|
5689
5688
|
});
|
|
5690
|
-
return g.useEffect(() =>
|
|
5689
|
+
return g.useEffect(() => S.measure(), [h]), g.useEffect(() => m(o), [o]), /* @__PURE__ */ t(ie, { children: /* @__PURE__ */ t(L, { height: n, overflow: "auto", ref: y, width: c, children: /* @__PURE__ */ l(
|
|
5691
5690
|
L,
|
|
5692
5691
|
{
|
|
5693
5692
|
height: (
|
|
5694
5693
|
// set the height to auto when there are no transactions so the zero state isn't set to 0
|
|
5695
|
-
|
|
5694
|
+
S.getVirtualItems().length === 0 ? "auto" : S.getTotalSize()
|
|
5696
5695
|
),
|
|
5697
5696
|
position: "relative",
|
|
5698
5697
|
width: "100%",
|
|
5699
5698
|
children: [
|
|
5700
5699
|
(u || r) && i,
|
|
5701
|
-
!u && !r &&
|
|
5702
|
-
!u && !r &&
|
|
5700
|
+
!u && !r && S.getVirtualItems().length === 0 && d,
|
|
5701
|
+
!u && !r && S.getVirtualItems().length > 0 && S.getVirtualItems().map((A) => {
|
|
5703
5702
|
const w = h[A.index], v = _r(A.index, h), R = $u(A.index, h), B = ur + (v ? hr : 0);
|
|
5704
5703
|
return /* @__PURE__ */ l(
|
|
5705
5704
|
L,
|
|
@@ -5861,7 +5860,7 @@ const Pu = ({ transaction: e, onClick: n }) => {
|
|
|
5861
5860
|
sortingOrder: ["asc", "desc"]
|
|
5862
5861
|
}
|
|
5863
5862
|
];
|
|
5864
|
-
return /* @__PURE__ */ t(
|
|
5863
|
+
return /* @__PURE__ */ t(St, { sx: { height: e, px: 24, width: "100%", boxShadow: "none" }, children: /* @__PURE__ */ t(
|
|
5865
5864
|
Hn,
|
|
5866
5865
|
{
|
|
5867
5866
|
columns: u,
|
|
@@ -5908,12 +5907,12 @@ const eh = ({
|
|
|
5908
5907
|
u = c.add_subcategory_title;
|
|
5909
5908
|
break;
|
|
5910
5909
|
case "edit":
|
|
5911
|
-
u =
|
|
5910
|
+
u = T(c.edit_subcategory_title, e);
|
|
5912
5911
|
break;
|
|
5913
5912
|
case "delete":
|
|
5914
|
-
u = c.delete_subcategory_heading, _ =
|
|
5913
|
+
u = c.delete_subcategory_heading, _ = T(
|
|
5915
5914
|
c.all_transactions_in_this_subcategory,
|
|
5916
|
-
/* @__PURE__ */ t(p, { bold: !0, children:
|
|
5915
|
+
/* @__PURE__ */ t(p, { bold: !0, children: T(c.all_parent_category, e) })
|
|
5917
5916
|
);
|
|
5918
5917
|
break;
|
|
5919
5918
|
}
|
|
@@ -6020,7 +6019,7 @@ const eh = ({
|
|
|
6020
6019
|
showSelected: s,
|
|
6021
6020
|
unselectable: c,
|
|
6022
6021
|
unselectableText: d
|
|
6023
|
-
} = _n(), { categories: u } = x(), { onEvent: _ } = j(), [h, m] = g.useState(!1), [C, f] = g.useState(!1), E = !!n.revision, y = n.guid === a,
|
|
6022
|
+
} = _n(), { categories: u } = x(), { onEvent: _ } = j(), [h, m] = g.useState(!1), [C, f] = g.useState(!1), E = !!n.revision, y = n.guid === a, S = !c.some((w) => w === n.guid);
|
|
6024
6023
|
return /* @__PURE__ */ l(
|
|
6025
6024
|
z,
|
|
6026
6025
|
{
|
|
@@ -6035,7 +6034,7 @@ const eh = ({
|
|
|
6035
6034
|
"aria-pressed": y,
|
|
6036
6035
|
color: "secondary",
|
|
6037
6036
|
onClick: () => {
|
|
6038
|
-
|
|
6037
|
+
S && (o(n.guid), i(n.guid), _(jt.ON_CATEGORY_SELECTED));
|
|
6039
6038
|
},
|
|
6040
6039
|
sx: { height: 44 },
|
|
6041
6040
|
children: [
|
|
@@ -6047,7 +6046,7 @@ const eh = ({
|
|
|
6047
6046
|
}
|
|
6048
6047
|
),
|
|
6049
6048
|
s && y && /* @__PURE__ */ t(Xa, { fontSize: "small" }),
|
|
6050
|
-
!
|
|
6049
|
+
!S && /* @__PURE__ */ t(yd, { label: d })
|
|
6051
6050
|
]
|
|
6052
6051
|
}
|
|
6053
6052
|
),
|
|
@@ -6055,7 +6054,7 @@ const eh = ({
|
|
|
6055
6054
|
/* @__PURE__ */ t(
|
|
6056
6055
|
Pe,
|
|
6057
6056
|
{
|
|
6058
|
-
"aria-label":
|
|
6057
|
+
"aria-label": T(u.edit_subcategory_aria, n.name),
|
|
6059
6058
|
onClick: () => {
|
|
6060
6059
|
m(!0), r(!0), _(jt.ON_SUBCATEGORY_EDIT_CLICK);
|
|
6061
6060
|
},
|
|
@@ -6065,7 +6064,7 @@ const eh = ({
|
|
|
6065
6064
|
/* @__PURE__ */ t(
|
|
6066
6065
|
Pe,
|
|
6067
6066
|
{
|
|
6068
|
-
"aria-label":
|
|
6067
|
+
"aria-label": T(u.delete_subcategory_aria, n.name),
|
|
6069
6068
|
edge: "end",
|
|
6070
6069
|
onClick: () => {
|
|
6071
6070
|
f(!0), r(!0), _(jt.ON_SUBCATEGORY_DELETE_CLICK);
|
|
@@ -6157,7 +6156,7 @@ const eh = ({
|
|
|
6157
6156
|
const _ = [
|
|
6158
6157
|
{
|
|
6159
6158
|
...d,
|
|
6160
|
-
name:
|
|
6159
|
+
name: T(i.all_parent_category, d.name),
|
|
6161
6160
|
parent_guid: d.guid
|
|
6162
6161
|
},
|
|
6163
6162
|
...r
|
|
@@ -6169,7 +6168,7 @@ const eh = ({
|
|
|
6169
6168
|
}
|
|
6170
6169
|
return c;
|
|
6171
6170
|
}, []))(e, n);
|
|
6172
|
-
return /* @__PURE__ */ t(
|
|
6171
|
+
return /* @__PURE__ */ t(St, { className: "mx-cat-category-list", sx: { boxShadow: "none" }, children: /* @__PURE__ */ t(ie, { children: o.map((r) => /* @__PURE__ */ t(
|
|
6173
6172
|
Vs,
|
|
6174
6173
|
{
|
|
6175
6174
|
category: r.category,
|
|
@@ -6434,12 +6433,12 @@ const zs = ({ transaction: e }) => {
|
|
|
6434
6433
|
});
|
|
6435
6434
|
}, C = (y) => {
|
|
6436
6435
|
if (e.is_manual && !e.guid) {
|
|
6437
|
-
const
|
|
6436
|
+
const S = a.find((A) => A.guid === y);
|
|
6438
6437
|
s({
|
|
6439
6438
|
...e,
|
|
6440
|
-
category:
|
|
6439
|
+
category: S?.name,
|
|
6441
6440
|
category_guid: y,
|
|
6442
|
-
top_level_category_guid:
|
|
6441
|
+
top_level_category_guid: S?.parent_guid || y
|
|
6443
6442
|
});
|
|
6444
6443
|
} else
|
|
6445
6444
|
h(y);
|
|
@@ -6493,7 +6492,7 @@ const zs = ({ transaction: e }) => {
|
|
|
6493
6492
|
Me,
|
|
6494
6493
|
{
|
|
6495
6494
|
copy: {
|
|
6496
|
-
title:
|
|
6495
|
+
title: T(
|
|
6497
6496
|
c.actions_apply_to_all_transaction_types,
|
|
6498
6497
|
e.description
|
|
6499
6498
|
)
|
|
@@ -6504,7 +6503,7 @@ const zs = ({ transaction: e }) => {
|
|
|
6504
6503
|
onSecondaryAction: () => m(!1),
|
|
6505
6504
|
primaryText: c.actions_apply_to_all,
|
|
6506
6505
|
secondaryText: c.actions_this_time_only,
|
|
6507
|
-
children: /* @__PURE__ */ t(p, { children:
|
|
6506
|
+
children: /* @__PURE__ */ t(p, { children: T(
|
|
6508
6507
|
c.actions_all_past_and_future,
|
|
6509
6508
|
e.description,
|
|
6510
6509
|
E?.name
|
|
@@ -6554,7 +6553,7 @@ const zs = ({ transaction: e }) => {
|
|
|
6554
6553
|
secondaryText: r.cancel_button,
|
|
6555
6554
|
title: s.date_edit_title,
|
|
6556
6555
|
children: /* @__PURE__ */ t(b, { alignItems: "center", mt: n.Spacing.XXLarge, children: /* @__PURE__ */ t(
|
|
6557
|
-
|
|
6556
|
+
S_,
|
|
6558
6557
|
{
|
|
6559
6558
|
beginDate: Fe(u),
|
|
6560
6559
|
copy: {
|
|
@@ -6609,7 +6608,7 @@ const zs = ({ transaction: e }) => {
|
|
|
6609
6608
|
}
|
|
6610
6609
|
)
|
|
6611
6610
|
] });
|
|
6612
|
-
},
|
|
6611
|
+
}, Sh = I(Eh), Th = ({ transaction: e }) => {
|
|
6613
6612
|
const { onEvent: n } = j(), { updateTransaction: i } = Ne(), { setShouldDisableDrawerScroll: a } = Lt(), { common: o, transactions: r } = x(), [s, c] = g.useState(!1), d = async () => {
|
|
6614
6613
|
await i({ ...e, merchant_guid: "" }), n(W.TRANSACTION_DETAILS_CLICK_DELETE_LOGO, {
|
|
6615
6614
|
transaction_guid: e.guid
|
|
@@ -6649,7 +6648,7 @@ const zs = ({ transaction: e }) => {
|
|
|
6649
6648
|
}
|
|
6650
6649
|
)
|
|
6651
6650
|
] });
|
|
6652
|
-
}, Ah = I(
|
|
6651
|
+
}, Ah = I(Th), Ih = ({ transaction: e }) => {
|
|
6653
6652
|
const { onEvent: n } = j(), { updateTransaction: i } = Ne(), { setShouldDisableDrawerScroll: a } = Lt(), { common: o, transactions: r } = x(), [s, c] = g.useState(!1), d = e.is_hidden, u = async () => {
|
|
6654
6653
|
await i({ ...e, is_hidden: !e.is_hidden }), n(
|
|
6655
6654
|
d ? Y.ON_TRANSACTION_UNHIDDEN : Y.ON_TRANSACTION_HIDDEN
|
|
@@ -6924,7 +6923,7 @@ const zs = ({ transaction: e }) => {
|
|
|
6924
6923
|
const s = gt(), { transactions: c } = x(), { onEvent: d } = j(), [u, _] = g.useState("");
|
|
6925
6924
|
return g.useEffect(() => {
|
|
6926
6925
|
_(o.length <= 1 ? c.split_transaction_errors_min_splits : ""), _(
|
|
6927
|
-
o[0].amount < 0 ?
|
|
6926
|
+
o[0].amount < 0 ? T(
|
|
6928
6927
|
c.split_transaction_errors_totals_must_equal_amount,
|
|
6929
6928
|
P(r.amount, "0,0.00")
|
|
6930
6929
|
) : ""
|
|
@@ -6984,7 +6983,7 @@ const zs = ({ transaction: e }) => {
|
|
|
6984
6983
|
}, [_, h] = g.useState(!1), [m, C] = g.useState(!1), [f, E] = g.useState([]), y = () => {
|
|
6985
6984
|
const k = [...f];
|
|
6986
6985
|
k.push({ ...u }), k[0].amount -= 1, E(k);
|
|
6987
|
-
},
|
|
6986
|
+
}, S = (k) => {
|
|
6988
6987
|
if (k > 0) {
|
|
6989
6988
|
const O = f[k], U = [...f];
|
|
6990
6989
|
U.splice(k, 1), U[0].amount += O.amount, E(U);
|
|
@@ -7055,7 +7054,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7055
7054
|
{
|
|
7056
7055
|
onAddSplit: y,
|
|
7057
7056
|
onCategoryChanged: w,
|
|
7058
|
-
onDeleteSplit:
|
|
7057
|
+
onDeleteSplit: S,
|
|
7059
7058
|
onUpdateAmount: A,
|
|
7060
7059
|
splits: f,
|
|
7061
7060
|
transaction: e
|
|
@@ -7078,7 +7077,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7078
7077
|
},
|
|
7079
7078
|
primaryText: o.delete_button,
|
|
7080
7079
|
secondaryText: o.cancel_button,
|
|
7081
|
-
children: /* @__PURE__ */ t(p, { variant: "Paragraph", children:
|
|
7080
|
+
children: /* @__PURE__ */ t(p, { variant: "Paragraph", children: T(
|
|
7082
7081
|
r.split_transaction_unsplit_description,
|
|
7083
7082
|
e.description
|
|
7084
7083
|
) })
|
|
@@ -7175,7 +7174,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7175
7174
|
}, Bh = I(Gh), Hh = ({ onTagChecked: e, selectedTags: n, tag: i }) => {
|
|
7176
7175
|
const { onEvent: a } = j(), { removeTag: o, updateTag: r } = Ne(), { common: s, transactions: c } = x(), [d, u] = g.useState(!1), [_, h] = g.useState(!1), [m, C] = g.useState(""), [f, E] = g.useState(""), y = async () => {
|
|
7177
7176
|
a(Y.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED), i && await r({ ...i, name: m }), u(!1);
|
|
7178
|
-
},
|
|
7177
|
+
}, S = async () => {
|
|
7179
7178
|
a(Y.ON_TRANSACTION_TAGS_TAG_DELETED), await o(i.guid), h(!1);
|
|
7180
7179
|
};
|
|
7181
7180
|
g.useEffect(() => {
|
|
@@ -7256,7 +7255,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7256
7255
|
copy: { title: c.tags_delete_title },
|
|
7257
7256
|
isOpen: _,
|
|
7258
7257
|
onClose: () => h(!1),
|
|
7259
|
-
onPrimaryAction:
|
|
7258
|
+
onPrimaryAction: S,
|
|
7260
7259
|
onSecondaryAction: () => a(Y.ON_TRANSACTION_TAGS_TAG_DELETE_CANCEL_CLICK),
|
|
7261
7260
|
primaryText: s.delete_button,
|
|
7262
7261
|
secondaryText: s.cancel_button,
|
|
@@ -7279,7 +7278,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7279
7278
|
}
|
|
7280
7279
|
),
|
|
7281
7280
|
/* @__PURE__ */ t(kh, {}),
|
|
7282
|
-
/* @__PURE__ */ t(
|
|
7281
|
+
/* @__PURE__ */ t(St, { sx: { boxShadow: "none" }, children: /* @__PURE__ */ t(ie, { children: r.map((s) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
7283
7282
|
/* @__PURE__ */ t(Ph, { onTagChecked: n, selectedTags: e, tag: s }),
|
|
7284
7283
|
/* @__PURE__ */ t(H, { sx: { ml: 24 } })
|
|
7285
7284
|
] }, s.guid)) }) })
|
|
@@ -7290,8 +7289,8 @@ const zs = ({ transaction: e }) => {
|
|
|
7290
7289
|
h(e.tags);
|
|
7291
7290
|
}, [d, e]);
|
|
7292
7291
|
const m = (E) => {
|
|
7293
|
-
const y = [..._],
|
|
7294
|
-
|
|
7292
|
+
const y = [..._], S = _.indexOf(E);
|
|
7293
|
+
S >= 0 ? y.splice(S, 1) : y.push(E), h(y);
|
|
7295
7294
|
}, C = async () => {
|
|
7296
7295
|
if (e.is_manual && !e.guid) {
|
|
7297
7296
|
c({ ...e, tags: _ }), u(!1);
|
|
@@ -7300,7 +7299,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7300
7299
|
await a(_, e.guid), await o({ ...e, tags: _ }), n(W.TRANSACTION_DETAILS_CLICK_TAGS, { transaction_guid: e.guid }), u(!1);
|
|
7301
7300
|
}, f = g.useMemo(
|
|
7302
7301
|
() => e.tags.map(
|
|
7303
|
-
(E, y,
|
|
7302
|
+
(E, y, S) => `${i.find((A) => A.guid === E)?.name}${y < S.length - 1 ? " / " : ""}`
|
|
7304
7303
|
),
|
|
7305
7304
|
[i, e]
|
|
7306
7305
|
);
|
|
@@ -7433,7 +7432,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7433
7432
|
[]
|
|
7434
7433
|
), a ? /* @__PURE__ */ t(L, { className: "mx-txn-transaction-details", width: "100%", children: i && /* @__PURE__ */ l(b, { children: [
|
|
7435
7434
|
/* @__PURE__ */ l(b, { gap: 12, p: 24, children: [
|
|
7436
|
-
/* @__PURE__ */ t(
|
|
7435
|
+
/* @__PURE__ */ t(St, { elevation: 2, sx: { width: 64 }, children: /* @__PURE__ */ t(
|
|
7437
7436
|
rn,
|
|
7438
7437
|
{
|
|
7439
7438
|
categoryGuid: i.top_level_category_guid || "",
|
|
@@ -7455,7 +7454,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7455
7454
|
/* @__PURE__ */ t(p, { bold: !0, color: "secondary", variant: "Tiny", children: i.feed_description })
|
|
7456
7455
|
] })
|
|
7457
7456
|
] }),
|
|
7458
|
-
/* @__PURE__ */ t(
|
|
7457
|
+
/* @__PURE__ */ t(St, { square: !0, sx: { boxShadow: "none" }, children: /* @__PURE__ */ t(ie, { children: n.map((s, c) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
7459
7458
|
s === li.Category && /* @__PURE__ */ t(zs, { transaction: i }),
|
|
7460
7459
|
s === li.Date && /* @__PURE__ */ t(Ys, { transaction: i }),
|
|
7461
7460
|
s === li.Memo && /* @__PURE__ */ t(Xs, { transaction: i }),
|
|
@@ -7463,14 +7462,14 @@ const zs = ({ transaction: e }) => {
|
|
|
7463
7462
|
/* @__PURE__ */ t(H, { variant: c < n.length - 1 ? "inset" : "fullWidth" })
|
|
7464
7463
|
] }, s)) }) }),
|
|
7465
7464
|
/* @__PURE__ */ t(p, { bold: !0, mb: 8, ml: 26, mt: 16, variant: "Body", children: "Actions" }),
|
|
7466
|
-
/* @__PURE__ */ t(
|
|
7465
|
+
/* @__PURE__ */ t(St, { square: !0, sx: { boxShadow: "none" }, children: /* @__PURE__ */ l(ie, { children: [
|
|
7467
7466
|
e.map((s, c) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
7468
7467
|
s === Hi.SplitTransaction && /* @__PURE__ */ t(Lh, { transaction: i }),
|
|
7469
7468
|
s === Hi.HideTransaction && /* @__PURE__ */ t(xh, { transaction: i }),
|
|
7470
7469
|
s === Hi.MerchantLogo && /* @__PURE__ */ t(Ah, { transaction: i }),
|
|
7471
7470
|
/* @__PURE__ */ t(H, { variant: c < e.length - 1 ? "inset" : "fullWidth" })
|
|
7472
7471
|
] }, s)),
|
|
7473
|
-
i.is_manual && /* @__PURE__ */ t(
|
|
7472
|
+
i.is_manual && /* @__PURE__ */ t(Sh, { transaction: i })
|
|
7474
7473
|
] }) })
|
|
7475
7474
|
] }) }) : /* @__PURE__ */ t(de, {});
|
|
7476
7475
|
}, ni = I(Yh), jh = ({ copy: e, isOpen: n, onClose: i, onPrimaryAction: a }) => {
|
|
@@ -7506,8 +7505,8 @@ const zs = ({ transaction: e }) => {
|
|
|
7506
7505
|
enter_amount: n.currency_input.enter_amount
|
|
7507
7506
|
}, m = (y) => {
|
|
7508
7507
|
c(y), r({ ...a, amount: Number(y) });
|
|
7509
|
-
}, C = (y,
|
|
7510
|
-
r({ ...a, transaction_type: Number(
|
|
7508
|
+
}, C = (y, S) => {
|
|
7509
|
+
r({ ...a, transaction_type: Number(S) });
|
|
7511
7510
|
}, f = (y) => {
|
|
7512
7511
|
u(y), r({ ...a, payee: y, description: y });
|
|
7513
7512
|
}, E = (y) => {
|
|
@@ -7612,7 +7611,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7612
7611
|
Me,
|
|
7613
7612
|
{
|
|
7614
7613
|
copy: {
|
|
7615
|
-
title:
|
|
7614
|
+
title: T(
|
|
7616
7615
|
o.actions_apply_to_all_transaction_types,
|
|
7617
7616
|
n.description
|
|
7618
7617
|
)
|
|
@@ -7623,7 +7622,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7623
7622
|
onSecondaryAction: () => u(!1),
|
|
7624
7623
|
primaryText: o.actions_apply_to_all,
|
|
7625
7624
|
secondaryText: o.actions_this_time_only,
|
|
7626
|
-
children: /* @__PURE__ */ t(p, { children:
|
|
7625
|
+
children: /* @__PURE__ */ t(p, { children: T(
|
|
7627
7626
|
o.actions_all_past_and_future,
|
|
7628
7627
|
n.description,
|
|
7629
7628
|
d?.name
|
|
@@ -7648,7 +7647,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7648
7647
|
addTransaction: f,
|
|
7649
7648
|
filter: E,
|
|
7650
7649
|
loadAssociatedBeats: y,
|
|
7651
|
-
setFilter:
|
|
7650
|
+
setFilter: S,
|
|
7652
7651
|
sortedTransactions: A,
|
|
7653
7652
|
tags: w,
|
|
7654
7653
|
transactions: v,
|
|
@@ -7660,16 +7659,16 @@ const zs = ({ transaction: e }) => {
|
|
|
7660
7659
|
selectedAccountGuids: ue,
|
|
7661
7660
|
setDisplayedDate: te,
|
|
7662
7661
|
setSelectedAccounts: ge
|
|
7663
|
-
} = le(), [De, Re] = g.useState(""), [
|
|
7662
|
+
} = le(), [De, Re] = g.useState(""), [Se, Oe] = g.useState(""), [It, Q] = g.useState(!1), [ne, Ue] = g.useState(!1), [Qe, K] = g.useState(!1);
|
|
7664
7663
|
g.useEffect(() => {
|
|
7665
7664
|
const rt = o.filter(($n) => !$n.is_hidden), Lo = Ze(he()), Mo = Ye(he());
|
|
7666
|
-
ge(rt), te(Lo, Mo),
|
|
7665
|
+
ge(rt), te(Lo, Mo), S({
|
|
7667
7666
|
accounts: rt.map(($n) => $n.guid),
|
|
7668
7667
|
custom: ($n) => !$n.accountIsClosed && !$n.accountIsHidden,
|
|
7669
7668
|
dateRange: { start: Lo, end: Mo }
|
|
7670
7669
|
}), K(!0), k(W.TRANSACTIONS_VIEW);
|
|
7671
7670
|
}, [o]), g.useEffect(() => {
|
|
7672
|
-
Qe && (
|
|
7671
|
+
Qe && (S({
|
|
7673
7672
|
...E,
|
|
7674
7673
|
accounts: ue,
|
|
7675
7674
|
dateRange: { start: O.start, end: O.end }
|
|
@@ -7680,10 +7679,10 @@ const zs = ({ transaction: e }) => {
|
|
|
7680
7679
|
const Le = g.useMemo(
|
|
7681
7680
|
() => o.filter((rt) => rt.is_manual),
|
|
7682
7681
|
[o]
|
|
7683
|
-
), Ge =
|
|
7682
|
+
), Ge = Se ? v.find((rt) => rt.guid === Se) : void 0, Pt = u && !!d.payee && !!d.account_guid && !!d.category_guid, dt = (rt) => {
|
|
7684
7683
|
te(rt[0], rt[1]);
|
|
7685
7684
|
}, ii = (rt) => {
|
|
7686
|
-
h(rt),
|
|
7685
|
+
h(rt), S({
|
|
7687
7686
|
...E,
|
|
7688
7687
|
searchTerm: rt
|
|
7689
7688
|
}), k(W.TRANSACTIONS_CLICK_SEARCH, { search_term: rt });
|
|
@@ -7915,7 +7914,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7915
7914
|
value: i || 0
|
|
7916
7915
|
}
|
|
7917
7916
|
),
|
|
7918
|
-
e === me.EveryYear && /* @__PURE__ */ t(
|
|
7917
|
+
e === me.EveryYear && /* @__PURE__ */ t(Ti, { dateAdapter: Qn, children: /* @__PURE__ */ t(
|
|
7919
7918
|
Ya,
|
|
7920
7919
|
{
|
|
7921
7920
|
disablePast: !0,
|
|
@@ -7981,7 +7980,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7981
7980
|
const E = g.useMemo(
|
|
7982
7981
|
() => c.find((w) => w.guid === C),
|
|
7983
7982
|
[C, c]
|
|
7984
|
-
), y = n.repeating_transaction_type === an.Income,
|
|
7983
|
+
), y = n.repeating_transaction_type === an.Income, S = async () => {
|
|
7985
7984
|
await r(n.guid), e();
|
|
7986
7985
|
}, A = () => {
|
|
7987
7986
|
m(!0), o(W.RECURRING_TRANSACTIONS_DETAILS_CLICK_DELETE);
|
|
@@ -8065,7 +8064,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8065
8064
|
},
|
|
8066
8065
|
isOpen: h,
|
|
8067
8066
|
onClose: () => m(!1),
|
|
8068
|
-
onPrimaryAction:
|
|
8067
|
+
onPrimaryAction: S,
|
|
8069
8068
|
children: /* @__PURE__ */ t(p, { children: y ? i.delete_income_description : i.delete_expense_description })
|
|
8070
8069
|
}
|
|
8071
8070
|
)
|
|
@@ -8222,7 +8221,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8222
8221
|
label: n,
|
|
8223
8222
|
onAddRecurringTransaction: i = () => null
|
|
8224
8223
|
}) => {
|
|
8225
|
-
const { recurring: a } = x(), { filter: o, setFilter: r, transactions: s } = Ne(), { addRepeatingTransaction: c } = ze(), { user: d } = Bt(), [u, _] = g.useState(!1), [h, m] = g.useState(""), [C, f] = g.useState(me.EveryMonth), [E, y] = g.useState(1), [
|
|
8224
|
+
const { recurring: a } = x(), { filter: o, setFilter: r, transactions: s } = Ne(), { addRepeatingTransaction: c } = ze(), { user: d } = Bt(), [u, _] = g.useState(!1), [h, m] = g.useState(""), [C, f] = g.useState(me.EveryMonth), [E, y] = g.useState(1), [S, A] = g.useState(15), w = g.useMemo(
|
|
8226
8225
|
() => s.find((M) => M.guid === h),
|
|
8227
8226
|
[h, s]
|
|
8228
8227
|
), v = () => {
|
|
@@ -8244,7 +8243,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8244
8243
|
recurrence_day: E,
|
|
8245
8244
|
recurrence_type: C,
|
|
8246
8245
|
repeating_transaction_type: e ? an.Income : an.Bill,
|
|
8247
|
-
second_recurrence_day:
|
|
8246
|
+
second_recurrence_day: S,
|
|
8248
8247
|
transaction_type: w.transaction_type,
|
|
8249
8248
|
user_guid: d.guid
|
|
8250
8249
|
};
|
|
@@ -8299,7 +8298,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8299
8298
|
onFirstDayChange: y,
|
|
8300
8299
|
onFrequencyChange: f,
|
|
8301
8300
|
onSecondDayChange: A,
|
|
8302
|
-
secondDay:
|
|
8301
|
+
secondDay: S,
|
|
8303
8302
|
transaction: w
|
|
8304
8303
|
}
|
|
8305
8304
|
)
|
|
@@ -8466,7 +8465,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8466
8465
|
}, s = /* @__PURE__ */ t(
|
|
8467
8466
|
ja,
|
|
8468
8467
|
{
|
|
8469
|
-
maxDate: Ye(
|
|
8468
|
+
maxDate: Ye(Tt(/* @__PURE__ */ new Date(), 1)),
|
|
8470
8469
|
minDate: Ze(/* @__PURE__ */ new Date()),
|
|
8471
8470
|
onMonthChange: r,
|
|
8472
8471
|
showDaysOutsideCurrentMonth: !0,
|
|
@@ -8509,7 +8508,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8509
8508
|
views: ["day"]
|
|
8510
8509
|
}
|
|
8511
8510
|
);
|
|
8512
|
-
return /* @__PURE__ */ t(b, { justifyContent: "center", children: /* @__PURE__ */ l(
|
|
8511
|
+
return /* @__PURE__ */ t(b, { justifyContent: "center", children: /* @__PURE__ */ l(Ti, { dateAdapter: Qn, children: [
|
|
8513
8512
|
i && s,
|
|
8514
8513
|
!i && s,
|
|
8515
8514
|
/* @__PURE__ */ t(og, {})
|
|
@@ -8528,7 +8527,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8528
8527
|
}, sg = (e, n) => {
|
|
8529
8528
|
switch (e.status) {
|
|
8530
8529
|
case Je.Paid:
|
|
8531
|
-
return e.expectedDate ?
|
|
8530
|
+
return e.expectedDate ? T(
|
|
8532
8531
|
n.paid_on,
|
|
8533
8532
|
se(
|
|
8534
8533
|
e.occurredOnDate || e.expectedDate,
|
|
@@ -8536,12 +8535,12 @@ const zs = ({ transaction: e }) => {
|
|
|
8536
8535
|
)
|
|
8537
8536
|
) : n.paid;
|
|
8538
8537
|
case Je.Missed:
|
|
8539
|
-
return
|
|
8538
|
+
return T(
|
|
8540
8539
|
n.missed_on,
|
|
8541
8540
|
se(e.expectedDate, oe.MONTH_DAY)
|
|
8542
8541
|
);
|
|
8543
8542
|
case Je.Upcoming:
|
|
8544
|
-
return
|
|
8543
|
+
return T(
|
|
8545
8544
|
n.upcoming_on,
|
|
8546
8545
|
se(e.expectedDate, oe.MONTH_DAY)
|
|
8547
8546
|
);
|
|
@@ -8732,7 +8731,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8732
8731
|
selectedDay: m,
|
|
8733
8732
|
selectedDayRecurrences: C,
|
|
8734
8733
|
upcomingRecurrences: f
|
|
8735
|
-
} = ze(), [E, y] = g.useState(0),
|
|
8734
|
+
} = ze(), [E, y] = g.useState(0), S = (v, R) => {
|
|
8736
8735
|
y(R);
|
|
8737
8736
|
}, A = (v) => {
|
|
8738
8737
|
a(W.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
|
|
@@ -8773,7 +8772,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8773
8772
|
}
|
|
8774
8773
|
),
|
|
8775
8774
|
(i || n) && /* @__PURE__ */ l(b, { children: [
|
|
8776
|
-
/* @__PURE__ */ l(qt, { onChange:
|
|
8775
|
+
/* @__PURE__ */ l(qt, { onChange: S, value: E, variant: "fullWidth", children: [
|
|
8777
8776
|
/* @__PURE__ */ t(
|
|
8778
8777
|
et,
|
|
8779
8778
|
{
|
|
@@ -8810,7 +8809,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8810
8809
|
{
|
|
8811
8810
|
onRecurrenceClick: w,
|
|
8812
8811
|
recurrences: C || u,
|
|
8813
|
-
title: m ?
|
|
8812
|
+
title: m ? T(
|
|
8814
8813
|
e.day_transactions,
|
|
8815
8814
|
se(m, oe.MONTH_DAY)
|
|
8816
8815
|
) : e.paid_activity
|
|
@@ -8876,7 +8875,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8876
8875
|
onResetClick: i ? () => o(i) : void 0,
|
|
8877
8876
|
recurrences: a || r.slice(0, 5),
|
|
8878
8877
|
sx: { width: s ? "100%" : "calc(100% - 336px)", mt: 12 },
|
|
8879
|
-
title: i ?
|
|
8878
|
+
title: i ? T(
|
|
8880
8879
|
e.day_transactions,
|
|
8881
8880
|
se(i, oe.MONTH_DAY)
|
|
8882
8881
|
) : e.upcoming_activity
|
|
@@ -9000,7 +8999,7 @@ const zs = ({ transaction: e }) => {
|
|
|
9000
8999
|
accounts: o
|
|
9001
9000
|
}), s().finally());
|
|
9002
9001
|
}, [a]);
|
|
9003
|
-
const { onEvent: E } = j(), y = pe(),
|
|
9002
|
+
const { onEvent: E } = j(), y = pe(), S = Wt("(max-width:288px)"), A = Wt("(min-width:450px)"), w = g.useMemo(() => {
|
|
9004
9003
|
const O = [
|
|
9005
9004
|
{ color: y.palette.success.main, percentage: `${_ / d}` }
|
|
9006
9005
|
];
|
|
@@ -9059,7 +9058,7 @@ const zs = ({ transaction: e }) => {
|
|
|
9059
9058
|
b,
|
|
9060
9059
|
{
|
|
9061
9060
|
sx: [
|
|
9062
|
-
v.length >= 10 &&
|
|
9061
|
+
v.length >= 10 && S ? { flexDirection: "column" } : { flexDirection: "row", gap: 2 },
|
|
9063
9062
|
{
|
|
9064
9063
|
alignItems: "baseline",
|
|
9065
9064
|
width: 180
|
|
@@ -9071,7 +9070,7 @@ const zs = ({ transaction: e }) => {
|
|
|
9071
9070
|
]
|
|
9072
9071
|
}
|
|
9073
9072
|
),
|
|
9074
|
-
|
|
9073
|
+
S ? /* @__PURE__ */ t(
|
|
9075
9074
|
_g,
|
|
9076
9075
|
{
|
|
9077
9076
|
logoSize: B,
|
|
@@ -9099,7 +9098,7 @@ const zs = ({ transaction: e }) => {
|
|
|
9099
9098
|
amount: O.amount,
|
|
9100
9099
|
bgcolor: O.bgColor,
|
|
9101
9100
|
isLargeScreen: A,
|
|
9102
|
-
isSmallScreen:
|
|
9101
|
+
isSmallScreen: S,
|
|
9103
9102
|
label: O.label
|
|
9104
9103
|
},
|
|
9105
9104
|
`recurrence-legend-${U}`
|
|
@@ -9126,7 +9125,7 @@ class Er {
|
|
|
9126
9125
|
).then((i) => i.repeating_transaction);
|
|
9127
9126
|
deleteRepeatingTransaction = async (n) => this.fetchInstance.delete(`${G.REPEATING_TRANSACTIONS}/${n}`).then((i) => i);
|
|
9128
9127
|
}
|
|
9129
|
-
const
|
|
9128
|
+
const Sr = (e) => $a(e.expectedDate, {
|
|
9130
9129
|
start: Ze(he()),
|
|
9131
9130
|
end: Ye(he())
|
|
9132
9131
|
}), si = (e, n) => e + n.amount;
|
|
@@ -9216,13 +9215,13 @@ class gg {
|
|
|
9216
9215
|
* Returns the expense recurrences for the current month.
|
|
9217
9216
|
*/
|
|
9218
9217
|
get currentMonthExpenses() {
|
|
9219
|
-
return this.expenses.filter(
|
|
9218
|
+
return this.expenses.filter(Sr);
|
|
9220
9219
|
}
|
|
9221
9220
|
/**
|
|
9222
9221
|
* Returns the income recurrences for the current month.
|
|
9223
9222
|
*/
|
|
9224
9223
|
get currentMonthIncome() {
|
|
9225
|
-
return this.income.filter(
|
|
9224
|
+
return this.income.filter(Sr);
|
|
9226
9225
|
}
|
|
9227
9226
|
/**
|
|
9228
9227
|
* Calculates the total amount of all expenses for the current month.
|
|
@@ -9362,9 +9361,9 @@ const mg = {
|
|
|
9362
9361
|
event: "account_details_click_account_name",
|
|
9363
9362
|
label: n.account_name,
|
|
9364
9363
|
name: "user_name",
|
|
9365
|
-
placeholder:
|
|
9364
|
+
placeholder: T(n.enter_value, n.account_name),
|
|
9366
9365
|
type: vt.Input,
|
|
9367
|
-
validation: (a) => a ? "" :
|
|
9366
|
+
validation: (a) => a ? "" : T(n.field_is_required, n.account_name),
|
|
9368
9367
|
valueFormatter: (a) => a
|
|
9369
9368
|
}
|
|
9370
9369
|
];
|
|
@@ -9372,7 +9371,7 @@ const mg = {
|
|
|
9372
9371
|
i.unshift({
|
|
9373
9372
|
label: n.account_balance,
|
|
9374
9373
|
name: "balance",
|
|
9375
|
-
placeholder:
|
|
9374
|
+
placeholder: T(n.enter_value, n.account_balance),
|
|
9376
9375
|
type: vt.Currency,
|
|
9377
9376
|
valueFormatter: (o) => P(o, "0,0.00")
|
|
9378
9377
|
});
|
|
@@ -9385,7 +9384,7 @@ const mg = {
|
|
|
9385
9384
|
label: n.account_type,
|
|
9386
9385
|
name: "account_type",
|
|
9387
9386
|
options: a,
|
|
9388
|
-
placeholder:
|
|
9387
|
+
placeholder: T(n.select_value, n.account_type),
|
|
9389
9388
|
type: vt.Select,
|
|
9390
9389
|
valueFormatter: (o) => a.find((r) => r.value === o)?.label
|
|
9391
9390
|
});
|
|
@@ -9400,7 +9399,7 @@ const mg = {
|
|
|
9400
9399
|
label: n.property_type,
|
|
9401
9400
|
name: "property_type",
|
|
9402
9401
|
options: a,
|
|
9403
|
-
placeholder:
|
|
9402
|
+
placeholder: T(n.select_value, n.property_type),
|
|
9404
9403
|
type: vt.Select,
|
|
9405
9404
|
valueFormatter: (o) => a.find((r) => r.value === o)?.label
|
|
9406
9405
|
});
|
|
@@ -9411,7 +9410,7 @@ const mg = {
|
|
|
9411
9410
|
event: "account_details_click_interest_rate",
|
|
9412
9411
|
label: a,
|
|
9413
9412
|
name: o,
|
|
9414
|
-
placeholder:
|
|
9413
|
+
placeholder: T(n.enter_value, a),
|
|
9415
9414
|
type: vt.Input,
|
|
9416
9415
|
validation: (r) => La(r) ? "" : n.error_amount_is_invalid,
|
|
9417
9416
|
valueFormatter: (r) => La(r) ? vi(r / 100) : r
|
|
@@ -9420,7 +9419,7 @@ const mg = {
|
|
|
9420
9419
|
return Eo(e) && (i.push({
|
|
9421
9420
|
label: n.minimum_payment,
|
|
9422
9421
|
name: "minimum_payment",
|
|
9423
|
-
placeholder:
|
|
9422
|
+
placeholder: T(n.enter_value, n.minimum_payment),
|
|
9424
9423
|
type: vt.Currency,
|
|
9425
9424
|
valueFormatter: (a) => P(a, "0,0.00")
|
|
9426
9425
|
}), e.payment_due_at ? i.push({
|
|
@@ -9434,23 +9433,23 @@ const mg = {
|
|
|
9434
9433
|
}) : i.push({
|
|
9435
9434
|
label: n.day_payment_due,
|
|
9436
9435
|
name: "day_payment_is_due",
|
|
9437
|
-
placeholder:
|
|
9436
|
+
placeholder: T(n.enter_value, n.day_payment_due),
|
|
9438
9437
|
type: vt.Date,
|
|
9439
|
-
valueFormatter: (a) =>
|
|
9438
|
+
valueFormatter: (a) => T(
|
|
9440
9439
|
n.day_of_every_month,
|
|
9441
9440
|
Ci(a <= 31 ? a : new Date(a).getDate())
|
|
9442
9441
|
)
|
|
9443
9442
|
})), fg(e) && i.push({
|
|
9444
9443
|
label: n.credit_limit,
|
|
9445
9444
|
name: "credit_limit",
|
|
9446
|
-
placeholder:
|
|
9445
|
+
placeholder: T(n.enter_value, n.credit_limit),
|
|
9447
9446
|
type: vt.Currency,
|
|
9448
9447
|
valueFormatter: (a) => P(a, "0,0.00")
|
|
9449
9448
|
}), yg(e) && i.push({
|
|
9450
9449
|
label: n.original_balance,
|
|
9451
9450
|
minAmount: 1,
|
|
9452
9451
|
name: "original_balance",
|
|
9453
|
-
placeholder:
|
|
9452
|
+
placeholder: T(n.enter_value, n.original_balance),
|
|
9454
9453
|
type: vt.Currency,
|
|
9455
9454
|
valueFormatter: (a) => P(a, "0,0.00")
|
|
9456
9455
|
}), i;
|
|
@@ -9465,7 +9464,7 @@ const mg = {
|
|
|
9465
9464
|
default:
|
|
9466
9465
|
if (i = n.current_balance, a = e.balance, e.minimum_payment && e.payment_due_at) {
|
|
9467
9466
|
const c = typeof e.payment_due_at == "number" ? new Date(e.payment_due_at * 1e3) : e.payment_due_at;
|
|
9468
|
-
o = /* @__PURE__ */ t(p, { component: "strong", variant: "XSmall", children:
|
|
9467
|
+
o = /* @__PURE__ */ t(p, { component: "strong", variant: "XSmall", children: T(
|
|
9469
9468
|
n.payment_due_on,
|
|
9470
9469
|
P(e.minimum_payment, "0,0.00"),
|
|
9471
9470
|
se(c, oe.FULL_MONTH_DAY)
|
|
@@ -9479,7 +9478,7 @@ const mg = {
|
|
|
9479
9478
|
secondValue: r,
|
|
9480
9479
|
hasAvailableBalance: s
|
|
9481
9480
|
};
|
|
9482
|
-
},
|
|
9481
|
+
}, Sg = ({
|
|
9483
9482
|
account: e,
|
|
9484
9483
|
onRowClick: n,
|
|
9485
9484
|
listItemProps: i,
|
|
@@ -9544,7 +9543,7 @@ const mg = {
|
|
|
9544
9543
|
children: n ? /* @__PURE__ */ t(_e, { alignItems: "flex-start", onClick: n, sx: { px: 24 }, children: h }) : h
|
|
9545
9544
|
}
|
|
9546
9545
|
);
|
|
9547
|
-
}, bi = I(
|
|
9546
|
+
}, bi = I(Sg), Tg = ({ remaining: e }) => /* @__PURE__ */ t(
|
|
9548
9547
|
z,
|
|
9549
9548
|
{
|
|
9550
9549
|
sx: {
|
|
@@ -9578,7 +9577,7 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
9578
9577
|
)
|
|
9579
9578
|
] }),
|
|
9580
9579
|
/* @__PURE__ */ t(H, {})
|
|
9581
|
-
] }),
|
|
9580
|
+
] }), Tr = I(Ag), Ig = ({ total: e, type: n }) => {
|
|
9582
9581
|
const { cashflow: i } = x();
|
|
9583
9582
|
return /* @__PURE__ */ l(q, { children: [
|
|
9584
9583
|
/* @__PURE__ */ l(
|
|
@@ -9653,7 +9652,7 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
9653
9652
|
{
|
|
9654
9653
|
subheader: /* @__PURE__ */ t(Ar, { total: u, type: yi.INCOME }),
|
|
9655
9654
|
sx: { width: "100%" },
|
|
9656
|
-
children: c.map((h) => /* @__PURE__ */ t(
|
|
9655
|
+
children: c.map((h) => /* @__PURE__ */ t(Tr, { recurrence: h }, h.repeatingTransactionGuid))
|
|
9657
9656
|
}
|
|
9658
9657
|
) }),
|
|
9659
9658
|
d.length > 0 && /* @__PURE__ */ t(z, { children: /* @__PURE__ */ t(
|
|
@@ -9661,11 +9660,11 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
9661
9660
|
{
|
|
9662
9661
|
subheader: /* @__PURE__ */ t(Ar, { total: _, type: yi.EXPENSE }),
|
|
9663
9662
|
sx: { width: "100%" },
|
|
9664
|
-
children: d.map((h) => /* @__PURE__ */ t(
|
|
9663
|
+
children: d.map((h) => /* @__PURE__ */ t(Tr, { recurrence: h }, h.repeatingTransactionGuid))
|
|
9665
9664
|
}
|
|
9666
9665
|
) }),
|
|
9667
9666
|
/* @__PURE__ */ t(
|
|
9668
|
-
|
|
9667
|
+
Tg,
|
|
9669
9668
|
{
|
|
9670
9669
|
remaining: (s.available_balance || s.balance || 0) + u - _
|
|
9671
9670
|
}
|
|
@@ -9986,9 +9985,9 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
9986
9985
|
() => a.filter(Ir(o, r)),
|
|
9987
9986
|
[r, o, a]
|
|
9988
9987
|
), m = g.useMemo(
|
|
9989
|
-
() => s.reduce((
|
|
9988
|
+
() => s.reduce((S, A) => S + (A?.balance || 0), 0),
|
|
9990
9989
|
[s]
|
|
9991
|
-
), C = _.reduce((
|
|
9990
|
+
), C = _.reduce((S, A) => S + A.amount, 0), f = h.reduce((S, A) => S + A.amount, 0), E = m - C + f, y = e < 725;
|
|
9992
9991
|
return /* @__PURE__ */ l(b, { sx: { mx: y ? 16 : 0, my: y ? 24 : 42 }, children: [
|
|
9993
9992
|
/* @__PURE__ */ l(
|
|
9994
9993
|
b,
|
|
@@ -10159,11 +10158,11 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10159
10158
|
transform: rotate(360deg);
|
|
10160
10159
|
}
|
|
10161
10160
|
`, Pg = () => {
|
|
10162
|
-
const { addRepeatingTransaction: e, repeatingTransactions: n } = ze(), { cashflow: i, common: a } = x(), { completeOnboarding: o } = io(), { isDirty: r } = ti(), { isMobile: s } = Ce(), { isCopyLoaded: c, setDisplayedDate: d } = le(), { filter: u, setFilter: _, transactions: h } = Ne(), m = pe(), [C, f] = Et(!0), [E, y] = g.useState(me.EveryMonth), [
|
|
10163
|
-
() => h.find((
|
|
10161
|
+
const { addRepeatingTransaction: e, repeatingTransactions: n } = ze(), { cashflow: i, common: a } = x(), { completeOnboarding: o } = io(), { isDirty: r } = ti(), { isMobile: s } = Ce(), { isCopyLoaded: c, setDisplayedDate: d } = le(), { filter: u, setFilter: _, transactions: h } = Ne(), m = pe(), [C, f] = Et(!0), [E, y] = g.useState(me.EveryMonth), [S, A] = g.useState(1), [w, v] = g.useState(15), [R, B] = Et(!1), [M, D] = Et(1), [k, O] = Et([]), [U, ee] = Et(""), ue = g.useMemo(
|
|
10162
|
+
() => h.find((Se) => Se.guid === U),
|
|
10164
10163
|
[U, h]
|
|
10165
10164
|
), te = !!n.filter(
|
|
10166
|
-
(
|
|
10165
|
+
(Se) => Se.repeating_transaction_type === an.Income
|
|
10167
10166
|
).length, ge = async () => {
|
|
10168
10167
|
D(2), d(
|
|
10169
10168
|
// Beginning of the month, 90 days before today
|
|
@@ -10173,8 +10172,8 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10173
10172
|
}, De = async () => {
|
|
10174
10173
|
if (!(k.length < 1)) {
|
|
10175
10174
|
B(!0);
|
|
10176
|
-
for (let
|
|
10177
|
-
const Oe = k[
|
|
10175
|
+
for (let Se = 0; Se < k.length; Se++) {
|
|
10176
|
+
const Oe = k[Se], It = Ga(E, Fe(Oe.date)), Q = {
|
|
10178
10177
|
account_guid: Oe.account_guid,
|
|
10179
10178
|
amount: Oe.amount,
|
|
10180
10179
|
merchant_guid: Oe.merchant_guid,
|
|
@@ -10232,13 +10231,13 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10232
10231
|
/* @__PURE__ */ t(Xt, { pb: 12, children: i.add_income_title }),
|
|
10233
10232
|
/* @__PURE__ */ t(ve, { mb: 24, children: i.add_income_description }),
|
|
10234
10233
|
k.length > 0 && !ue && /* @__PURE__ */ l(q, { children: [
|
|
10235
|
-
/* @__PURE__ */ t(ie, { children: k.map((
|
|
10234
|
+
/* @__PURE__ */ t(ie, { children: k.map((Se, Oe) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
10236
10235
|
/* @__PURE__ */ t(go, { bgcolor: "background.paper", children: ra(
|
|
10237
|
-
He(
|
|
10236
|
+
He(Se.nextDate || Se.date)
|
|
10238
10237
|
) }),
|
|
10239
|
-
/* @__PURE__ */ t(ho, { transaction:
|
|
10238
|
+
/* @__PURE__ */ t(ho, { transaction: Se }),
|
|
10240
10239
|
Oe !== k.length - 1 && /* @__PURE__ */ t(H, {})
|
|
10241
|
-
] },
|
|
10240
|
+
] }, Se.guid)) }),
|
|
10242
10241
|
/* @__PURE__ */ l(b, { alignItems: "center", direction: "row", children: [
|
|
10243
10242
|
/* @__PURE__ */ t(H, { sx: { flexGrow: 1 } }),
|
|
10244
10243
|
/* @__PURE__ */ t(
|
|
@@ -10255,12 +10254,12 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10255
10254
|
ec,
|
|
10256
10255
|
{
|
|
10257
10256
|
bgcolor: "background.paper",
|
|
10258
|
-
onSearch: (
|
|
10257
|
+
onSearch: (Se) => _({
|
|
10259
10258
|
...u,
|
|
10260
|
-
custom: (Oe) =>
|
|
10259
|
+
custom: (Oe) => Se ? nc(Oe, Se) : fi(Oe)
|
|
10261
10260
|
}),
|
|
10262
|
-
onSelected: (
|
|
10263
|
-
ee(
|
|
10261
|
+
onSelected: (Se) => {
|
|
10262
|
+
ee(Se), f(!1);
|
|
10264
10263
|
}
|
|
10265
10264
|
}
|
|
10266
10265
|
),
|
|
@@ -10270,7 +10269,7 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10270
10269
|
tc,
|
|
10271
10270
|
{
|
|
10272
10271
|
bgcolor: "background.paper",
|
|
10273
|
-
firstDay:
|
|
10272
|
+
firstDay: S,
|
|
10274
10273
|
frequency: E,
|
|
10275
10274
|
onFirstDayChange: A,
|
|
10276
10275
|
onFrequencyChange: y,
|
|
@@ -10285,12 +10284,12 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10285
10284
|
{
|
|
10286
10285
|
"aria-disabled": !ue,
|
|
10287
10286
|
onClick: () => {
|
|
10288
|
-
const
|
|
10289
|
-
|
|
10287
|
+
const Se = [...k];
|
|
10288
|
+
Se.push({
|
|
10290
10289
|
...ue,
|
|
10291
10290
|
nextDate: Ga(E, Fe(ue.date)),
|
|
10292
10291
|
frequency: E
|
|
10293
|
-
}), O(
|
|
10292
|
+
}), O(Se), ee("");
|
|
10294
10293
|
},
|
|
10295
10294
|
variant: "contained",
|
|
10296
10295
|
children: a.confirm_button
|
|
@@ -10342,7 +10341,7 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10342
10341
|
setSelectedAccounts: o,
|
|
10343
10342
|
shouldDisableNextDate: r,
|
|
10344
10343
|
shouldDisablePrevDate: s
|
|
10345
|
-
} = le(), { onEvent: c } = j(), { visibleCashAccounts: d } = Ee(), { setFilter: u } = Ne(), { userProfile: _ } = Bt(), { dateRange: h, setSelectedCashAccounts: m } = ti(), { loadRepeatingTransactions: C } = ze(), { cashflow: f } = x(), { isCopyLoaded: E, isInitialized: y } = le(), [
|
|
10344
|
+
} = le(), { onEvent: c } = j(), { visibleCashAccounts: d } = Ee(), { setFilter: u } = Ne(), { userProfile: _ } = Bt(), { dateRange: h, setSelectedCashAccounts: m } = ti(), { loadRepeatingTransactions: C } = ze(), { cashflow: f } = x(), { isCopyLoaded: E, isInitialized: y } = le(), [S, A] = g.useState(!1);
|
|
10346
10345
|
return g.useEffect(() => {
|
|
10347
10346
|
y && C().finally();
|
|
10348
10347
|
}, [y]), g.useEffect(() => {
|
|
@@ -10388,7 +10387,7 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10388
10387
|
ce,
|
|
10389
10388
|
{
|
|
10390
10389
|
ariaLabelClose: f.close_settings_aria,
|
|
10391
|
-
isOpen:
|
|
10390
|
+
isOpen: S,
|
|
10392
10391
|
onClose: () => A(!1),
|
|
10393
10392
|
shouldShowHeaderBorders: !1,
|
|
10394
10393
|
title: f.cashflow_settings,
|
|
@@ -10501,12 +10500,12 @@ function Vg(e, n, i = 0) {
|
|
|
10501
10500
|
const f = (m.interest_rate ?? 0) / 100 / 12, E = m.balance * f;
|
|
10502
10501
|
let y = m.monthly_payment ?? 0;
|
|
10503
10502
|
h === 0 && i && (y += i), m.balance += E;
|
|
10504
|
-
const
|
|
10505
|
-
if (
|
|
10503
|
+
const S = Math.min(m.balance, y + r);
|
|
10504
|
+
if (S <= E) {
|
|
10506
10505
|
m.is_impossible = !0;
|
|
10507
10506
|
continue;
|
|
10508
10507
|
}
|
|
10509
|
-
m.balance -=
|
|
10508
|
+
m.balance -= S, m.balance = m.balance < 0.01 ? 0 : m.balance, o += E, m.balance <= 0 && (r += y), S > 0 && (_ = !0);
|
|
10510
10509
|
}
|
|
10511
10510
|
_ && c.setMonth(c.getMonth() + 1);
|
|
10512
10511
|
}
|
|
@@ -10628,13 +10627,13 @@ const un = () => {
|
|
|
10628
10627
|
}
|
|
10629
10628
|
),
|
|
10630
10629
|
/* @__PURE__ */ l(ye, { flexDirection: "row", justifyContent: "space-between", sx: { pt: 12, px: 24, pb: 8 }, children: [
|
|
10631
|
-
/* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children:
|
|
10630
|
+
/* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: T(o.snowball_drawer_month_header, 1) }),
|
|
10632
10631
|
/* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: o.snowball_drawer_payment_header })
|
|
10633
10632
|
] }),
|
|
10634
10633
|
/* @__PURE__ */ l(ye, { bgcolor: a.palette.background.paper, mb: 24, children: [
|
|
10635
10634
|
/* @__PURE__ */ l(ye, { alignItems: "center", flexDirection: "row", pl: 24, children: [
|
|
10636
10635
|
/* @__PURE__ */ t(
|
|
10637
|
-
|
|
10636
|
+
Tn,
|
|
10638
10637
|
{
|
|
10639
10638
|
sx: {
|
|
10640
10639
|
display: "flex",
|
|
@@ -10661,13 +10660,13 @@ const un = () => {
|
|
|
10661
10660
|
},
|
|
10662
10661
|
children: [
|
|
10663
10662
|
/* @__PURE__ */ l(ye, { flexGrow: 1, children: [
|
|
10664
|
-
/* @__PURE__ */ t(p, { variant: "Body", children:
|
|
10663
|
+
/* @__PURE__ */ t(p, { variant: "Body", children: T(o.snowball_drawer_debt_label, "A") }),
|
|
10665
10664
|
/* @__PURE__ */ l(p, { color: a.palette.secondary.main, variant: "XSmall", children: [
|
|
10666
|
-
|
|
10665
|
+
T(
|
|
10667
10666
|
o.snowball_drawer_rollover_explainer_pt1,
|
|
10668
10667
|
"$100"
|
|
10669
10668
|
),
|
|
10670
|
-
/* @__PURE__ */ t("strong", { children:
|
|
10669
|
+
/* @__PURE__ */ t("strong", { children: T(o.snowball_drawer_debt_label, "B") }),
|
|
10671
10670
|
o.snowball_drawer_rollover_explainer_pt2
|
|
10672
10671
|
] })
|
|
10673
10672
|
] }),
|
|
@@ -10690,7 +10689,7 @@ const un = () => {
|
|
|
10690
10689
|
] }),
|
|
10691
10690
|
/* @__PURE__ */ l(ye, { alignItems: "center", flexDirection: "row", pl: 24, children: [
|
|
10692
10691
|
/* @__PURE__ */ t(
|
|
10693
|
-
|
|
10692
|
+
Tn,
|
|
10694
10693
|
{
|
|
10695
10694
|
sx: {
|
|
10696
10695
|
width: 20,
|
|
@@ -10712,7 +10711,7 @@ const un = () => {
|
|
|
10712
10711
|
pr: 24
|
|
10713
10712
|
},
|
|
10714
10713
|
children: [
|
|
10715
|
-
/* @__PURE__ */ t(p, { flexGrow: 1, variant: "Body", children:
|
|
10714
|
+
/* @__PURE__ */ t(p, { flexGrow: 1, variant: "Body", children: T(o.snowball_drawer_debt_label, "B") }),
|
|
10716
10715
|
/* @__PURE__ */ t(p, { variant: "Body", children: "$400.00" })
|
|
10717
10716
|
]
|
|
10718
10717
|
}
|
|
@@ -10720,7 +10719,7 @@ const un = () => {
|
|
|
10720
10719
|
] }),
|
|
10721
10720
|
/* @__PURE__ */ l(ye, { alignItems: "center", flexDirection: "row", pl: 24, py: 14, children: [
|
|
10722
10721
|
/* @__PURE__ */ t(
|
|
10723
|
-
|
|
10722
|
+
Tn,
|
|
10724
10723
|
{
|
|
10725
10724
|
sx: {
|
|
10726
10725
|
width: 20,
|
|
@@ -10732,7 +10731,7 @@ const un = () => {
|
|
|
10732
10731
|
}
|
|
10733
10732
|
),
|
|
10734
10733
|
/* @__PURE__ */ l(ye, { flexDirection: "row", flexGrow: 1, pr: 24, children: [
|
|
10735
|
-
/* @__PURE__ */ t(p, { flexGrow: 1, variant: "Body", children:
|
|
10734
|
+
/* @__PURE__ */ t(p, { flexGrow: 1, variant: "Body", children: T(o.snowball_drawer_debt_label, "C") }),
|
|
10736
10735
|
/* @__PURE__ */ t(p, { variant: "Body", children: "$1,000.00" })
|
|
10737
10736
|
] })
|
|
10738
10737
|
] }),
|
|
@@ -10755,13 +10754,13 @@ const un = () => {
|
|
|
10755
10754
|
)
|
|
10756
10755
|
] }),
|
|
10757
10756
|
/* @__PURE__ */ l(ye, { flexDirection: "row", justifyContent: "space-between", sx: { pt: 12, px: 24, pb: 8 }, children: [
|
|
10758
|
-
/* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children:
|
|
10757
|
+
/* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: T(o.snowball_drawer_month_header, 2) }),
|
|
10759
10758
|
/* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: o.snowball_drawer_payment_header })
|
|
10760
10759
|
] }),
|
|
10761
10760
|
/* @__PURE__ */ l(ye, { bgcolor: a.palette.background.paper, mb: 24, children: [
|
|
10762
10761
|
/* @__PURE__ */ l(ye, { alignItems: "center", flexDirection: "row", pl: 24, children: [
|
|
10763
10762
|
/* @__PURE__ */ t(
|
|
10764
|
-
|
|
10763
|
+
Tn,
|
|
10765
10764
|
{
|
|
10766
10765
|
sx: {
|
|
10767
10766
|
display: "flex",
|
|
@@ -10788,13 +10787,13 @@ const un = () => {
|
|
|
10788
10787
|
},
|
|
10789
10788
|
children: [
|
|
10790
10789
|
/* @__PURE__ */ l(ye, { flexGrow: 1, children: [
|
|
10791
|
-
/* @__PURE__ */ t(p, { variant: "Body", children:
|
|
10790
|
+
/* @__PURE__ */ t(p, { variant: "Body", children: T(o.snowball_drawer_debt_label, "B") }),
|
|
10792
10791
|
/* @__PURE__ */ l(p, { color: a.palette.secondary.main, variant: "XSmall", children: [
|
|
10793
|
-
|
|
10792
|
+
T(
|
|
10794
10793
|
o.snowball_drawer_rollover_explainer_pt1,
|
|
10795
10794
|
"$500"
|
|
10796
10795
|
),
|
|
10797
|
-
/* @__PURE__ */ t("strong", { children:
|
|
10796
|
+
/* @__PURE__ */ t("strong", { children: T(o.snowball_drawer_debt_label, "C") }),
|
|
10798
10797
|
o.snowball_drawer_rollover_explainer_pt2
|
|
10799
10798
|
] })
|
|
10800
10799
|
] }),
|
|
@@ -10817,7 +10816,7 @@ const un = () => {
|
|
|
10817
10816
|
] }),
|
|
10818
10817
|
/* @__PURE__ */ l(ye, { alignItems: "center", flexDirection: "row", pl: 24, children: [
|
|
10819
10818
|
/* @__PURE__ */ t(
|
|
10820
|
-
|
|
10819
|
+
Tn,
|
|
10821
10820
|
{
|
|
10822
10821
|
sx: {
|
|
10823
10822
|
width: 20,
|
|
@@ -10838,7 +10837,7 @@ const un = () => {
|
|
|
10838
10837
|
pr: 24
|
|
10839
10838
|
},
|
|
10840
10839
|
children: [
|
|
10841
|
-
/* @__PURE__ */ t(p, { flexGrow: 1, variant: "Body", children:
|
|
10840
|
+
/* @__PURE__ */ t(p, { flexGrow: 1, variant: "Body", children: T(o.snowball_drawer_debt_label, "C") }),
|
|
10842
10841
|
/* @__PURE__ */ t(p, { variant: "Body", children: "$1,000.00" })
|
|
10843
10842
|
]
|
|
10844
10843
|
}
|
|
@@ -10863,13 +10862,13 @@ const un = () => {
|
|
|
10863
10862
|
)
|
|
10864
10863
|
] }),
|
|
10865
10864
|
/* @__PURE__ */ l(ye, { flexDirection: "row", justifyContent: "space-between", sx: { pt: 12, px: 24, pb: 8 }, children: [
|
|
10866
|
-
/* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children:
|
|
10865
|
+
/* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: T(o.snowball_drawer_month_header, 3) }),
|
|
10867
10866
|
/* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: o.snowball_drawer_payment_header })
|
|
10868
10867
|
] }),
|
|
10869
10868
|
/* @__PURE__ */ l(ye, { bgcolor: a.palette.background.paper, mb: 24, children: [
|
|
10870
10869
|
/* @__PURE__ */ l(ye, { alignItems: "center", flexDirection: "row", pl: 24, children: [
|
|
10871
10870
|
/* @__PURE__ */ t(
|
|
10872
|
-
|
|
10871
|
+
Tn,
|
|
10873
10872
|
{
|
|
10874
10873
|
sx: {
|
|
10875
10874
|
display: "flex",
|
|
@@ -10895,7 +10894,7 @@ const un = () => {
|
|
|
10895
10894
|
pr: 24
|
|
10896
10895
|
},
|
|
10897
10896
|
children: [
|
|
10898
|
-
/* @__PURE__ */ t(ye, { flexGrow: 1, children: /* @__PURE__ */ t(p, { variant: "Body", children:
|
|
10897
|
+
/* @__PURE__ */ t(ye, { flexGrow: 1, children: /* @__PURE__ */ t(p, { variant: "Body", children: T(o.snowball_drawer_debt_label, "C") }) }),
|
|
10899
10898
|
/* @__PURE__ */ l(ye, { children: [
|
|
10900
10899
|
/* @__PURE__ */ t(p, { variant: "Body", children: "$1,500.00" }),
|
|
10901
10900
|
/* @__PURE__ */ t(
|
|
@@ -10939,7 +10938,7 @@ const un = () => {
|
|
|
10939
10938
|
if (!g.useContext(Pn))
|
|
10940
10939
|
throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
|
|
10941
10940
|
return Ee().uiStore;
|
|
10942
|
-
}, ga = (e) => e.top_level_category_guid === N.INCOME || e.category_guid === N.INCOME, Xg = (e) => !ga(e) && !dc(e), lc = (e) => Yo.includes(e.top_level_category_guid) || Yo.includes(e.category_guid), dc = (e) => e.top_level_category_guid === N.TRANSFER || e.category_guid === N.TRANSFER, Zg = (e) => !ga(e) && !lc(e) && !dc(e), qg = (e) => e.filter((n) => n.category_guid === n.top_level_category_guid),
|
|
10941
|
+
}, ga = (e) => e.top_level_category_guid === N.INCOME || e.category_guid === N.INCOME, Xg = (e) => !ga(e) && !dc(e), lc = (e) => Yo.includes(e.top_level_category_guid) || Yo.includes(e.category_guid), dc = (e) => e.top_level_category_guid === N.TRANSFER || e.category_guid === N.TRANSFER, Zg = (e) => !ga(e) && !lc(e) && !dc(e), qg = (e) => e.filter((n) => n.category_guid === n.top_level_category_guid), So = (e, n) => {
|
|
10943
10942
|
const i = [];
|
|
10944
10943
|
let a = Ze(Yt(/* @__PURE__ */ new Date(), 5));
|
|
10945
10944
|
const o = /* @__PURE__ */ new Date();
|
|
@@ -10947,17 +10946,17 @@ const un = () => {
|
|
|
10947
10946
|
i.push({
|
|
10948
10947
|
x: se(a, oe.MONTH_SHORT),
|
|
10949
10948
|
y: e.filter((r) => r.year === a.getFullYear() && r.month === a.getMonth() + 1).reduce((r, s) => r + s.total, 0)
|
|
10950
|
-
}), a =
|
|
10949
|
+
}), a = Tt(a, 1);
|
|
10951
10950
|
return i;
|
|
10952
10951
|
}, Qg = (e, n) => {
|
|
10953
10952
|
const i = e.filter(ga);
|
|
10954
|
-
return
|
|
10953
|
+
return So(i).map((a) => ({ ...a, y: Math.abs(a.y) }));
|
|
10955
10954
|
}, Jg = (e, n) => {
|
|
10956
10955
|
const i = e.filter(lc);
|
|
10957
|
-
return
|
|
10956
|
+
return So(i).map((a) => ({ ...a, y: Math.abs(a.y) }));
|
|
10958
10957
|
}, em = (e, n) => {
|
|
10959
10958
|
const i = e.filter(Zg);
|
|
10960
|
-
return
|
|
10959
|
+
return So(i);
|
|
10961
10960
|
}, tm = (e) => {
|
|
10962
10961
|
const n = [], i = e.filter(
|
|
10963
10962
|
(r) => r.top_level_category_guid !== N.INCOME && r.top_level_category_guid !== N.TRANSFER && r.total > 0
|
|
@@ -10968,7 +10967,7 @@ const un = () => {
|
|
|
10968
10967
|
n.push({
|
|
10969
10968
|
x: se(a, oe.MONTH_SHORT),
|
|
10970
10969
|
y: i.filter((r) => r.year === a.getFullYear() && r.month === a.getMonth() + 1).reduce((r, s) => r + s.total, 0)
|
|
10971
|
-
}), a =
|
|
10970
|
+
}), a = Tt(a, 1);
|
|
10972
10971
|
return n;
|
|
10973
10972
|
}, nm = (e, n) => {
|
|
10974
10973
|
const i = Qa.includes(n) ? Qg(e) : [], a = Ja.includes(n) ? Jg(e) : [], o = eo.includes(n) ? em(e) : [];
|
|
@@ -11060,7 +11059,7 @@ const un = () => {
|
|
|
11060
11059
|
] }),
|
|
11061
11060
|
_ && /* @__PURE__ */ t(b, { children: e || /* @__PURE__ */ t(sm, {}) })
|
|
11062
11061
|
] });
|
|
11063
|
-
},
|
|
11062
|
+
}, To = I(cm), lm = "#FF7B08";
|
|
11064
11063
|
function dm(e, n) {
|
|
11065
11064
|
const [i, a, o] = e.replace(/^#/, "").match(/.{1,2}/g).map((s) => parseInt(s, 16)), r = [
|
|
11066
11065
|
Math.max(0, Math.min(255, Math.round(i * n))),
|
|
@@ -11122,7 +11121,7 @@ const _c = ({
|
|
|
11122
11121
|
showMark: !1,
|
|
11123
11122
|
disableHighlight: !0
|
|
11124
11123
|
});
|
|
11125
|
-
const
|
|
11124
|
+
const S = (v) => y.findIndex((R) => R?.guid === v);
|
|
11126
11125
|
return /* @__PURE__ */ t(
|
|
11127
11126
|
os,
|
|
11128
11127
|
{
|
|
@@ -11162,10 +11161,10 @@ const _c = ({
|
|
|
11162
11161
|
strokeDasharray: "10 5",
|
|
11163
11162
|
strokeWidth: 1
|
|
11164
11163
|
},
|
|
11165
|
-
[`& .MuiLineElement-series-debt-${
|
|
11164
|
+
[`& .MuiLineElement-series-debt-${S(o ?? "0")}`]: {
|
|
11166
11165
|
opacity: 1
|
|
11167
11166
|
},
|
|
11168
|
-
[`& .MuiAreaElement-series-debt-${
|
|
11167
|
+
[`& .MuiAreaElement-series-debt-${S(o ?? "0")}`]: {
|
|
11169
11168
|
opacity: 1
|
|
11170
11169
|
},
|
|
11171
11170
|
...e
|
|
@@ -11502,8 +11501,8 @@ const _c = ({
|
|
|
11502
11501
|
return g.useEffect(() => {
|
|
11503
11502
|
a && e(1);
|
|
11504
11503
|
}, [a]), !a && !o ? /* @__PURE__ */ t(q, {}) : /* @__PURE__ */ l(ye, { gap: 16, children: [
|
|
11505
|
-
/* @__PURE__ */ t(
|
|
11506
|
-
|
|
11504
|
+
/* @__PURE__ */ t(St, { sx: { my: 16, mx: 24, ...n }, children: /* @__PURE__ */ l(
|
|
11505
|
+
Sn,
|
|
11507
11506
|
{
|
|
11508
11507
|
icon: a ? /* @__PURE__ */ t(aa, {}) : /* @__PURE__ */ t(Xa, { color: "success" }),
|
|
11509
11508
|
severity: "error",
|
|
@@ -11523,8 +11522,8 @@ const _c = ({
|
|
|
11523
11522
|
]
|
|
11524
11523
|
}
|
|
11525
11524
|
) }),
|
|
11526
|
-
a && /* @__PURE__ */ t(
|
|
11527
|
-
|
|
11525
|
+
a && /* @__PURE__ */ t(St, { sx: { mb: 16, mt: 100, mx: 24, ...n }, children: /* @__PURE__ */ l(
|
|
11526
|
+
Sn,
|
|
11528
11527
|
{
|
|
11529
11528
|
icon: /* @__PURE__ */ t(q, {}),
|
|
11530
11529
|
severity: "error",
|
|
@@ -11542,7 +11541,7 @@ const _c = ({
|
|
|
11542
11541
|
}
|
|
11543
11542
|
) })
|
|
11544
11543
|
] });
|
|
11545
|
-
}, Em = I(ym),
|
|
11544
|
+
}, Em = I(ym), Sm = () => {
|
|
11546
11545
|
const { debts: e } = x(), { showError: n, showCompleted: i } = un(), [a, o] = g.useState(0);
|
|
11547
11546
|
return /* @__PURE__ */ l(q, { children: [
|
|
11548
11547
|
(n || i) && /* @__PURE__ */ t(Em, { setTabValue: o, sx: { mt: -24 } }),
|
|
@@ -11578,7 +11577,7 @@ const _c = ({
|
|
|
11578
11577
|
/* @__PURE__ */ t(Xn, { index: 0, name: "debt-schedule", value: a, children: /* @__PURE__ */ t(gm, {}) }),
|
|
11579
11578
|
/* @__PURE__ */ t(Xn, { index: 1, name: "debt-details", value: a, children: /* @__PURE__ */ t(bm, {}) })
|
|
11580
11579
|
] });
|
|
11581
|
-
},
|
|
11580
|
+
}, Tm = I(Sm), Am = ({ isOpen: e, onClose: n, sx: i }) => {
|
|
11582
11581
|
const { debts: a } = x(), { showError: o, showCompleted: r } = un(), s = o || r ? /* @__PURE__ */ t(q, {}) : /* @__PURE__ */ t(um, {});
|
|
11583
11582
|
return /* @__PURE__ */ t(
|
|
11584
11583
|
ce,
|
|
@@ -11589,8 +11588,8 @@ const _c = ({
|
|
|
11589
11588
|
sx: { ...i },
|
|
11590
11589
|
title: a.details_title,
|
|
11591
11590
|
children: /* @__PURE__ */ l(b, { bgcolor: "background.default", children: [
|
|
11592
|
-
/* @__PURE__ */ t(
|
|
11593
|
-
/* @__PURE__ */ t(
|
|
11591
|
+
/* @__PURE__ */ t(To, { customDetailsChart: s }),
|
|
11592
|
+
/* @__PURE__ */ t(Tm, {})
|
|
11594
11593
|
] })
|
|
11595
11594
|
}
|
|
11596
11595
|
);
|
|
@@ -11815,14 +11814,14 @@ const $t = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
|
11815
11814
|
headerAlign: "right",
|
|
11816
11815
|
width: 20
|
|
11817
11816
|
}
|
|
11818
|
-
], C = g.useMemo(() => n.map((y,
|
|
11817
|
+
], C = g.useMemo(() => n.map((y, S) => ({
|
|
11819
11818
|
...y,
|
|
11820
|
-
id:
|
|
11819
|
+
id: S,
|
|
11821
11820
|
priority: Dm(y)
|
|
11822
11821
|
})), [n]), f = (y) => {
|
|
11823
11822
|
const w = y.target.closest("[data-id]")?.getAttribute("data-id"), v = n[Number(w)];
|
|
11824
11823
|
a?.(v?.guid ?? "");
|
|
11825
|
-
}, E = (y) => C.find((
|
|
11824
|
+
}, E = (y) => C.find((S) => S.guid === y)?.id;
|
|
11826
11825
|
return /* @__PURE__ */ t(
|
|
11827
11826
|
L,
|
|
11828
11827
|
{
|
|
@@ -12014,11 +12013,11 @@ const $t = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
|
12014
12013
|
"aria-label": "extra-paydown",
|
|
12015
12014
|
onClick: e,
|
|
12016
12015
|
sx: { justifyContent: "start", minWidth: 100, mx: 4 },
|
|
12017
|
-
children:
|
|
12016
|
+
children: T(s, P(r, "0,0"))
|
|
12018
12017
|
}
|
|
12019
12018
|
);
|
|
12020
12019
|
}), Fm = ({ onBackClick: e, sx: n }) => {
|
|
12021
|
-
const [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState(!1), [d, u] = g.useState(""), { isDesktop: _, isMobile: h } = Ce(), { debts: m } = x(), { onEvent: C } = j(), { isCopyLoaded: f, isInitialized: E, setSelectedAccounts: y } = le(), { setSelectedAccount:
|
|
12020
|
+
const [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState(!1), [d, u] = g.useState(""), { isDesktop: _, isMobile: h } = Ce(), { debts: m } = x(), { onEvent: C } = j(), { isCopyLoaded: f, isInitialized: E, setSelectedAccounts: y } = le(), { setSelectedAccount: S } = Ht(), { selectedDebtPriority: A, setSelectedDebtChartData: w } = un(), { visibleDebtAccounts: v } = Ee(), { goalsLoaded: R, loadGoals: B, monthlyCashFlowProfile: M } = tt(), { debts: D } = sa(), k = g.useMemo(() => {
|
|
12022
12021
|
const ge = M?.extra_payment ?? 0;
|
|
12023
12022
|
return Hm(D, A, ge);
|
|
12024
12023
|
}, [D, A, M]);
|
|
@@ -12031,7 +12030,7 @@ const $t = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
|
12031
12030
|
}, [E]);
|
|
12032
12031
|
const O = (ge) => u(ge), U = () => {
|
|
12033
12032
|
const ge = v.find((Re) => Re.guid === d), De = k.find((Re) => Re.guid === d);
|
|
12034
|
-
ge &&
|
|
12033
|
+
ge && S(ge), De && w(De), a(!0);
|
|
12035
12034
|
}, ee = () => C(W.DEBTS_CLICK_FILTER), ue = () => {
|
|
12036
12035
|
c(!0), C(W.DEBTS_CLICK_SNOWBALL_CTA);
|
|
12037
12036
|
}, te = () => {
|
|
@@ -12104,7 +12103,7 @@ const $t = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
|
12104
12103
|
]
|
|
12105
12104
|
}
|
|
12106
12105
|
);
|
|
12107
|
-
},
|
|
12106
|
+
}, TE = I(Fm), Wm = {
|
|
12108
12107
|
unnamed_label: "Unnamed Debt"
|
|
12109
12108
|
};
|
|
12110
12109
|
function $m(e, n) {
|
|
@@ -12177,7 +12176,7 @@ class wr {
|
|
|
12177
12176
|
updateMonthlyCashFlowProfile = async (n) => this.fetchInstance.put(`${G.MONTHLY_CASH_FLOW_PROFILE}`, n).then((i) => i.monthly_cash_flow_profile);
|
|
12178
12177
|
updateRetirementGoal = async (n) => this.fetchInstance.put(`${G.RETIREMENT_GOALS}/${n.guid}`, n).then((i) => i.retirement_goal);
|
|
12179
12178
|
}
|
|
12180
|
-
function
|
|
12179
|
+
function Sa({ title: e, subtitle: n }) {
|
|
12181
12180
|
return /* @__PURE__ */ l(b, { children: [
|
|
12182
12181
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e }),
|
|
12183
12182
|
/* @__PURE__ */ t(p, { sx: { fontWeight: 400 }, variant: "Body", children: n })
|
|
@@ -12193,10 +12192,10 @@ function mc(e, n) {
|
|
|
12193
12192
|
style: "percent",
|
|
12194
12193
|
minimumFractionDigits: 0,
|
|
12195
12194
|
maximumFractionDigits: 0
|
|
12196
|
-
}, c = n.is_complete ? n.completed_at : n.projected_to_complete_at, d = c ? Fe(c) : /* @__PURE__ */ new Date(), u =
|
|
12195
|
+
}, c = n.is_complete ? n.completed_at : n.projected_to_complete_at, d = c ? Fe(c) : /* @__PURE__ */ new Date(), u = T(
|
|
12197
12196
|
e.goal_percentage,
|
|
12198
12197
|
vi(a, s)
|
|
12199
|
-
), _ =
|
|
12198
|
+
), _ = T(
|
|
12200
12199
|
n.is_complete ? e.completed_label : e.goal_projection,
|
|
12201
12200
|
se(d, oe.MONTH_SHORT_YEAR)
|
|
12202
12201
|
);
|
|
@@ -12264,11 +12263,11 @@ function Km(e) {
|
|
|
12264
12263
|
const zm = (e, n) => {
|
|
12265
12264
|
switch (e) {
|
|
12266
12265
|
case V.DEBT_TRACK:
|
|
12267
|
-
return
|
|
12266
|
+
return T(n.zero_state_ongoing, "debt");
|
|
12268
12267
|
case V.SAVINGS_TRACK:
|
|
12269
|
-
return
|
|
12268
|
+
return T(n.zero_state_ongoing, "saving");
|
|
12270
12269
|
default:
|
|
12271
|
-
return
|
|
12270
|
+
return T(n.zero_state_ongoing, "retirement");
|
|
12272
12271
|
}
|
|
12273
12272
|
}, Ym = (e, n) => n ? P(e, e < 1e3 ? "0" : "0.00a").replace(
|
|
12274
12273
|
/(\d+)(?:\.0+|(\.\d*?[1-9])0*)([a-zA-Z]* ?\$?)/g,
|
|
@@ -12355,7 +12354,7 @@ const zm = (e, n) => {
|
|
|
12355
12354
|
const f = C.row;
|
|
12356
12355
|
return /* @__PURE__ */ l(b, { children: [
|
|
12357
12356
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: f.name }),
|
|
12358
|
-
/* @__PURE__ */ t(p, { variant: "XSmall", children:
|
|
12357
|
+
/* @__PURE__ */ t(p, { variant: "XSmall", children: T(
|
|
12359
12358
|
n.goal_projection,
|
|
12360
12359
|
se(
|
|
12361
12360
|
Fe(f.projected_to_complete_at || 0),
|
|
@@ -12458,7 +12457,7 @@ const zm = (e, n) => {
|
|
|
12458
12457
|
/* @__PURE__ */ t(ae, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
12459
12458
|
/* @__PURE__ */ l(b, { children: [
|
|
12460
12459
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e.name }),
|
|
12461
|
-
/* @__PURE__ */ t(p, { variant: "XSmall", children:
|
|
12460
|
+
/* @__PURE__ */ t(p, { variant: "XSmall", children: T(
|
|
12462
12461
|
i.goal_projection,
|
|
12463
12462
|
se(
|
|
12464
12463
|
Fe(e.projected_to_complete_at || 0),
|
|
@@ -12476,7 +12475,7 @@ const zm = (e, n) => {
|
|
|
12476
12475
|
/* @__PURE__ */ t(ae, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
12477
12476
|
/* @__PURE__ */ l(b, { children: [
|
|
12478
12477
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e.name }),
|
|
12479
|
-
/* @__PURE__ */ t(p, { variant: "XSmall", children:
|
|
12478
|
+
/* @__PURE__ */ t(p, { variant: "XSmall", children: T(
|
|
12480
12479
|
n.completed_label,
|
|
12481
12480
|
se(
|
|
12482
12481
|
Fe(e.completed_at || 0),
|
|
@@ -12542,7 +12541,7 @@ const zm = (e, n) => {
|
|
|
12542
12541
|
}
|
|
12543
12542
|
)
|
|
12544
12543
|
] });
|
|
12545
|
-
},
|
|
12544
|
+
}, Ta = I(({ trackType: e, onAddGoals: n }) => {
|
|
12546
12545
|
const { isMobile: i } = Ce(), { goals: a } = x(), { orderedGoals: o, setSelectedGoal: r } = tt(), s = o.filter((_) => _.track_type === e), c = s.filter(
|
|
12547
12546
|
(_) => _.track_type === V.SAVINGS_TRACK && !_.has_been_spent || _.track_type !== V.SAVINGS_TRACK && !_.is_complete
|
|
12548
12547
|
), d = s.filter(
|
|
@@ -12761,7 +12760,7 @@ const zm = (e, n) => {
|
|
|
12761
12760
|
/* @__PURE__ */ t(it, {})
|
|
12762
12761
|
] }),
|
|
12763
12762
|
/* @__PURE__ */ t(ce, { isOpen: a, onClose: () => o(!1), title: n.account_details, children: /* @__PURE__ */ l(b, { children: [
|
|
12764
|
-
/* @__PURE__ */ t(
|
|
12763
|
+
/* @__PURE__ */ t(To, {}),
|
|
12765
12764
|
/* @__PURE__ */ t(Oc, {})
|
|
12766
12765
|
] }) })
|
|
12767
12766
|
] });
|
|
@@ -12819,7 +12818,7 @@ const zm = (e, n) => {
|
|
|
12819
12818
|
color: "text.secondary",
|
|
12820
12819
|
sx: { textAlign: "center", whiteSpace: "wrap" },
|
|
12821
12820
|
variant: "Paragraph",
|
|
12822
|
-
children:
|
|
12821
|
+
children: T(o.details_change_account_description, e.name)
|
|
12823
12822
|
}
|
|
12824
12823
|
)
|
|
12825
12824
|
] }),
|
|
@@ -12949,7 +12948,7 @@ const zm = (e, n) => {
|
|
|
12949
12948
|
primaryText: n.details_birthday,
|
|
12950
12949
|
secondaryText: `${se(Fe(i.birthday ?? 0), oe.MONTH_DAY_YEAR)}`,
|
|
12951
12950
|
zeroStateText: !e.guid && !i.birthday ? n.add_birthday : void 0,
|
|
12952
|
-
children: /* @__PURE__ */ t(
|
|
12951
|
+
children: /* @__PURE__ */ t(Ti, { dateAdapter: Qn, children: /* @__PURE__ */ t(
|
|
12953
12952
|
Ya,
|
|
12954
12953
|
{
|
|
12955
12954
|
label: n.details_birthday,
|
|
@@ -12971,18 +12970,18 @@ const zm = (e, n) => {
|
|
|
12971
12970
|
setNewRetirementGoalAccounts: d,
|
|
12972
12971
|
setSelectedGoal: u
|
|
12973
12972
|
} = tt(), [_, h] = g.useState(!1), m = !e.guid, C = i.filter(
|
|
12974
|
-
(y) => m ? o.find((
|
|
12973
|
+
(y) => m ? o.find((S) => S.account_guid === y.guid) : r.find((S) => S.account_guid === y.guid)
|
|
12975
12974
|
), f = i.filter(
|
|
12976
|
-
(y) => !r.find((
|
|
12975
|
+
(y) => !r.find((S) => S.account_guid === y.guid)
|
|
12977
12976
|
), E = async (y) => {
|
|
12978
|
-
const
|
|
12977
|
+
const S = y.map((A) => ({
|
|
12979
12978
|
account_guid: A.guid,
|
|
12980
12979
|
retirement_goal_guid: e.guid
|
|
12981
12980
|
}));
|
|
12982
12981
|
if (m)
|
|
12983
|
-
d(
|
|
12982
|
+
d(S);
|
|
12984
12983
|
else
|
|
12985
|
-
for (const A of
|
|
12984
|
+
for (const A of S)
|
|
12986
12985
|
await a(A), c(n.alert_account_added);
|
|
12987
12986
|
u({
|
|
12988
12987
|
...s,
|
|
@@ -13069,16 +13068,16 @@ const zm = (e, n) => {
|
|
|
13069
13068
|
setAlert: h,
|
|
13070
13069
|
setSelectedGoal: m,
|
|
13071
13070
|
updateGoal: C
|
|
13072
|
-
} = tt(), { user: f } = Bt(), [E, y] = g.useState(!1),
|
|
13073
|
-
const O =
|
|
13071
|
+
} = tt(), { user: f } = Bt(), [E, y] = g.useState(!1), S = !_?.guid, A = _?.track_type === V.SAVINGS_TRACK && _.is_complete && !_.has_been_spent, w = g.useMemo(() => {
|
|
13072
|
+
const O = S ? d : u;
|
|
13074
13073
|
return n.filter((U) => O.some((ee) => ee.account_guid === U.guid));
|
|
13075
|
-
}, [
|
|
13074
|
+
}, [S, n, d, u]), v = g.useMemo(() => {
|
|
13076
13075
|
if (!_) return !1;
|
|
13077
13076
|
const { account_guid: O, track_type: U, name: ee, amount: ue, retirement_age: te } = _;
|
|
13078
13077
|
return U === V.SAVINGS_TRACK ? O ? !!ee && !!ue : !1 : U === V.RETIREMENT_TRACK ? w.length ? !!ee && !!ue && !!te && !!f.birthday : !1 : !0;
|
|
13079
13078
|
}, [_, w, f.birthday]);
|
|
13080
13079
|
let R = a.delete_button, B = () => y(!0);
|
|
13081
|
-
|
|
13080
|
+
S ? (B = () => M(), R = a.save_button) : A && (B = () => k(), R = i.mark_as_complete_button);
|
|
13082
13081
|
const M = async () => {
|
|
13083
13082
|
if (_) {
|
|
13084
13083
|
const O = _.track_type;
|
|
@@ -13098,12 +13097,12 @@ const zm = (e, n) => {
|
|
|
13098
13097
|
ce,
|
|
13099
13098
|
{
|
|
13100
13099
|
ariaLabelClose: a.close_aria,
|
|
13101
|
-
hasSecondaryAction:
|
|
13100
|
+
hasSecondaryAction: S,
|
|
13102
13101
|
isOpen: !!_,
|
|
13103
13102
|
isPrimaryDisabled: !v,
|
|
13104
13103
|
onClose: () => m(void 0),
|
|
13105
13104
|
onPrimaryAction: B,
|
|
13106
|
-
primaryColor:
|
|
13105
|
+
primaryColor: S || A ? "primary" : "error",
|
|
13107
13106
|
primaryText: R,
|
|
13108
13107
|
secondaryColor: "primary",
|
|
13109
13108
|
title: i.goal_details,
|
|
@@ -13120,18 +13119,18 @@ const zm = (e, n) => {
|
|
|
13120
13119
|
onPrimaryAction: D,
|
|
13121
13120
|
primaryColor: "error",
|
|
13122
13121
|
primaryText: a.delete_button,
|
|
13123
|
-
children: /* @__PURE__ */ t(p, { sx: { textWrap: "wrap" }, variant: "Paragraph", children:
|
|
13122
|
+
children: /* @__PURE__ */ t(p, { sx: { textWrap: "wrap" }, variant: "Paragraph", children: T(i.delete_description, _?.name || "") })
|
|
13124
13123
|
}
|
|
13125
13124
|
)
|
|
13126
13125
|
] });
|
|
13127
13126
|
}), AE = I(({ onBackClick: e, sx: n }) => {
|
|
13128
|
-
const { onEvent: i } = j(), { isMobile: a } = Ce(), { visibleAccounts: o } = Ee(), { isCopyLoaded: r, isInitialized: s, setSelectedAccounts: c } = le(), { goals: d, common: u } = x(), { alert: _, goals: h, goalsLoaded: m, loadGoals: C, monthlyCashFlowProfile: f, setAlert: E, retirmentGoals: y } = tt(), [
|
|
13127
|
+
const { onEvent: i } = j(), { isMobile: a } = Ce(), { visibleAccounts: o } = Ee(), { isCopyLoaded: r, isInitialized: s, setSelectedAccounts: c } = le(), { goals: d, common: u } = x(), { alert: _, goals: h, goalsLoaded: m, loadGoals: C, monthlyCashFlowProfile: f, setAlert: E, retirmentGoals: y } = tt(), [S, A] = g.useState(0), [w, v] = g.useState(!1), R = f?.amount_allocated_for_savings_goals || 0, B = f?.amount_allocated_for_debt_goals || 0, M = f?.amount_allocated_for_retirement_goals || 0, D = r ? T(
|
|
13129
13128
|
a ? d.tab_subtitle_mobile : d.tab_subtitle,
|
|
13130
13129
|
P(R, "0,0")
|
|
13131
|
-
) : "", k = r ?
|
|
13130
|
+
) : "", k = r ? T(
|
|
13132
13131
|
a ? d.tab_subtitle_mobile : d.tab_subtitle,
|
|
13133
13132
|
P(B, "0,0")
|
|
13134
|
-
) : "", O = r ?
|
|
13133
|
+
) : "", O = r ? T(
|
|
13135
13134
|
a ? d.tab_subtitle_mobile : d.tab_subtitle,
|
|
13136
13135
|
P(M, "0,0")
|
|
13137
13136
|
) : "";
|
|
@@ -13173,28 +13172,28 @@ const zm = (e, n) => {
|
|
|
13173
13172
|
onChange: (ge, De) => A(De),
|
|
13174
13173
|
sx: { bgcolor: "background.paper" },
|
|
13175
13174
|
textColor: "primary",
|
|
13176
|
-
value: te ? !1 :
|
|
13175
|
+
value: te ? !1 : S,
|
|
13177
13176
|
variant: "fullWidth",
|
|
13178
13177
|
children: [
|
|
13179
13178
|
/* @__PURE__ */ t(
|
|
13180
13179
|
et,
|
|
13181
13180
|
{
|
|
13182
13181
|
disabled: te,
|
|
13183
|
-
label: /* @__PURE__ */ t(
|
|
13182
|
+
label: /* @__PURE__ */ t(Sa, { subtitle: D, title: d.tab_saving_title })
|
|
13184
13183
|
}
|
|
13185
13184
|
),
|
|
13186
13185
|
/* @__PURE__ */ t(
|
|
13187
13186
|
et,
|
|
13188
13187
|
{
|
|
13189
13188
|
disabled: te,
|
|
13190
|
-
label: /* @__PURE__ */ t(
|
|
13189
|
+
label: /* @__PURE__ */ t(Sa, { subtitle: k, title: d.tab_debt_title })
|
|
13191
13190
|
}
|
|
13192
13191
|
),
|
|
13193
13192
|
/* @__PURE__ */ t(
|
|
13194
13193
|
et,
|
|
13195
13194
|
{
|
|
13196
13195
|
disabled: te,
|
|
13197
|
-
label: /* @__PURE__ */ t(
|
|
13196
|
+
label: /* @__PURE__ */ t(Sa, { subtitle: O, title: d.tab_retirement_title })
|
|
13198
13197
|
}
|
|
13199
13198
|
)
|
|
13200
13199
|
]
|
|
@@ -13216,9 +13215,9 @@ const zm = (e, n) => {
|
|
|
13216
13215
|
}
|
|
13217
13216
|
}
|
|
13218
13217
|
) : /* @__PURE__ */ l(q, { children: [
|
|
13219
|
-
|
|
13220
|
-
|
|
13221
|
-
|
|
13218
|
+
S === 0 && /* @__PURE__ */ t(Ta, { onAddGoals: ee, trackType: V.SAVINGS_TRACK }),
|
|
13219
|
+
S === 1 && /* @__PURE__ */ t(Ta, { onAddGoals: ee, trackType: V.DEBT_TRACK }),
|
|
13220
|
+
S === 2 && /* @__PURE__ */ t(Ta, { onAddGoals: ee, trackType: V.RETIREMENT_TRACK })
|
|
13222
13221
|
] })
|
|
13223
13222
|
] }),
|
|
13224
13223
|
/* @__PURE__ */ t(cp, { onClose: ue }),
|
|
@@ -13233,13 +13232,13 @@ const zm = (e, n) => {
|
|
|
13233
13232
|
}
|
|
13234
13233
|
),
|
|
13235
13234
|
/* @__PURE__ */ t(
|
|
13236
|
-
|
|
13235
|
+
Si,
|
|
13237
13236
|
{
|
|
13238
13237
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
13239
13238
|
autoHideDuration: 3500,
|
|
13240
13239
|
onClose: () => E(""),
|
|
13241
13240
|
open: !!_,
|
|
13242
|
-
children: /* @__PURE__ */ t(
|
|
13241
|
+
children: /* @__PURE__ */ t(Sn, { onClose: () => E(""), severity: "success", variant: "filled", children: _ })
|
|
13243
13242
|
}
|
|
13244
13243
|
)
|
|
13245
13244
|
]
|
|
@@ -13929,8 +13928,8 @@ const bp = {
|
|
|
13929
13928
|
for (let o = 0; o < i.length; o += n)
|
|
13930
13929
|
a.push(i.slice(o, o + n).map((r) => e[r]));
|
|
13931
13930
|
return a;
|
|
13932
|
-
}, Ep = bc(Io),
|
|
13933
|
-
const n = Rr(e,
|
|
13931
|
+
}, Ep = bc(Io), Sp = bc(Ao), Tp = (e) => {
|
|
13932
|
+
const n = Rr(e, Tc), i = Rr(e, Ec), a = (r, s) => {
|
|
13934
13933
|
const c = r.reduce((u, _) => u + Ic(_), 0), d = r.reduce((u, _) => {
|
|
13935
13934
|
const h = s(_);
|
|
13936
13935
|
return Object.keys(h).forEach((m) => u[m] = (u[m] || 0) + h[m]), u;
|
|
@@ -13940,7 +13939,7 @@ const bp = {
|
|
|
13940
13939
|
);
|
|
13941
13940
|
};
|
|
13942
13941
|
return {
|
|
13943
|
-
stocks: a(n,
|
|
13942
|
+
stocks: a(n, Sc),
|
|
13944
13943
|
bonds: a(i, yc)
|
|
13945
13944
|
};
|
|
13946
13945
|
}, Ap = (e) => {
|
|
@@ -13951,7 +13950,7 @@ const bp = {
|
|
|
13951
13950
|
}), c;
|
|
13952
13951
|
}, {});
|
|
13953
13952
|
return {
|
|
13954
|
-
stocks: a(n,
|
|
13953
|
+
stocks: a(n, Sc, bp),
|
|
13955
13954
|
bonds: a(i, yc, yp)
|
|
13956
13955
|
};
|
|
13957
13956
|
}, Ip = (e, n) => Object.fromEntries(
|
|
@@ -13961,7 +13960,7 @@ const bp = {
|
|
|
13961
13960
|
return {
|
|
13962
13961
|
[Io[n]]: 100
|
|
13963
13962
|
};
|
|
13964
|
-
},
|
|
13963
|
+
}, Sc = (e) => Ac(e, Tc, Ao), Tc = (e) => {
|
|
13965
13964
|
const {
|
|
13966
13965
|
large_core_weight: n,
|
|
13967
13966
|
large_growth_weight: i,
|
|
@@ -14002,7 +14001,7 @@ const bp = {
|
|
|
14002
14001
|
const a = n(i), o = xo(a);
|
|
14003
14002
|
return o > 80 && o < 120;
|
|
14004
14003
|
}), wp = (e, n) => {
|
|
14005
|
-
const i = n === wn.Stocks ?
|
|
14004
|
+
const i = n === wn.Stocks ? Sp : Ep, a = e[n];
|
|
14006
14005
|
return !a || !a || Object.keys(a).length === 0 ? i.map((o) => o.map(() => "0%")) : i.map((o) => o.map((r) => vp(a[r] ?? 0)));
|
|
14007
14006
|
}, xo = (e) => Object.values(e).reduce((n, i) => n + i, 0);
|
|
14008
14007
|
class Np {
|
|
@@ -14016,7 +14015,7 @@ class Np {
|
|
|
14016
14015
|
this.globalStore = n, this.api = new Dr(n.endpoint, n.sessionToken), Be(this);
|
|
14017
14016
|
}
|
|
14018
14017
|
get analysisChartData() {
|
|
14019
|
-
return wp(
|
|
14018
|
+
return wp(Tp(this.visibleHoldings), this.analysisType);
|
|
14020
14019
|
}
|
|
14021
14020
|
get analysisDetails() {
|
|
14022
14021
|
return Ap(this.visibleHoldings)[this.analysisType] || {};
|
|
@@ -14086,7 +14085,7 @@ const Dp = /^[ a-zA-ZÀ-ÿ0-9]+$/, Rp = 50, Or = 65, Op = ({
|
|
|
14086
14085
|
searchValue: c
|
|
14087
14086
|
}
|
|
14088
14087
|
),
|
|
14089
|
-
/* @__PURE__ */ t(
|
|
14088
|
+
/* @__PURE__ */ t(St, { sx: { boxShadow: "none" }, children: /* @__PURE__ */ t(ie, { children: /* @__PURE__ */ l(L, { height: e, overflow: "auto", ref: h, children: [
|
|
14090
14089
|
/* @__PURE__ */ l(L, { height: m.getTotalSize(), position: "relative", children: [
|
|
14091
14090
|
i && /* @__PURE__ */ t(de, { label: "Loading...", size: 32 }),
|
|
14092
14091
|
!i && m.getVirtualItems().length > 0 && m.getVirtualItems().map((C) => {
|
|
@@ -14698,7 +14697,7 @@ const qp = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14698
14697
|
selectedData: f,
|
|
14699
14698
|
setHoveredData: E,
|
|
14700
14699
|
setSelectedData: y
|
|
14701
|
-
} = Os(), { isMobile:
|
|
14700
|
+
} = Os(), { isMobile: S } = Ce(), { onEvent: A } = j(), [w, v] = g.useState(!1), [R, B] = g.useState(6), [M, D] = g.useState(!1), [k, O] = g.useState(!1), [U, ee] = g.useState(!1), ue = async () => {
|
|
14702
14701
|
await m(a), await h(R), v(!0);
|
|
14703
14702
|
};
|
|
14704
14703
|
g.useEffect(() => {
|
|
@@ -14718,7 +14717,7 @@ const qp = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14718
14717
|
E(null);
|
|
14719
14718
|
}, Re = () => {
|
|
14720
14719
|
A(W.NET_WORTH_WIDGET_CLICK_ASSETS_LIABILITIES), O(!0);
|
|
14721
|
-
},
|
|
14720
|
+
}, Se = async (Q) => {
|
|
14722
14721
|
const ne = Q[0], Ue = Q[1];
|
|
14723
14722
|
ne && Ue && B(ed(Ue, ne));
|
|
14724
14723
|
}, Oe = {
|
|
@@ -14737,14 +14736,14 @@ const qp = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14737
14736
|
{
|
|
14738
14737
|
accountOptions: c,
|
|
14739
14738
|
calendarActions: {
|
|
14740
|
-
onRangeChanged:
|
|
14739
|
+
onRangeChanged: Se
|
|
14741
14740
|
},
|
|
14742
|
-
dateRangeVariant:
|
|
14741
|
+
dateRangeVariant: S ? "timeframetabs" : "timeframebuttons",
|
|
14743
14742
|
onAccountsFilterClick: () => A(W.NET_WORTH_WIDGET_CLICK_FILTER),
|
|
14744
14743
|
onBackClick: e,
|
|
14745
14744
|
showDividerAboveDateSelector: !1,
|
|
14746
14745
|
sx: {
|
|
14747
|
-
p:
|
|
14746
|
+
p: S ? 0 : 48,
|
|
14748
14747
|
"& .MuiCardHeader-root": {
|
|
14749
14748
|
px: 16,
|
|
14750
14749
|
py: 12
|
|
@@ -14763,9 +14762,9 @@ const qp = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14763
14762
|
/* @__PURE__ */ l(
|
|
14764
14763
|
b,
|
|
14765
14764
|
{
|
|
14766
|
-
alignItems:
|
|
14767
|
-
direction:
|
|
14768
|
-
spacing:
|
|
14765
|
+
alignItems: S ? "center" : "flex-start",
|
|
14766
|
+
direction: S ? "column" : "row",
|
|
14767
|
+
spacing: S ? 0 : 48,
|
|
14769
14768
|
children: [
|
|
14770
14769
|
/* @__PURE__ */ t(kp, { ...Oe }),
|
|
14771
14770
|
/* @__PURE__ */ t(Pp, { ...Oe })
|
|
@@ -15039,13 +15038,13 @@ const Hr = "PARENT-ENTITY", m1 = (e, n) => ({
|
|
|
15039
15038
|
} = o;
|
|
15040
15039
|
for (const m of a.filter((C) => C.entity_guid === Hr)) {
|
|
15041
15040
|
const C = m1(m.notification_type, i), f = a.filter(
|
|
15042
|
-
(y) => y.entity_guid !== Hr && y.notification_type === m.notification_type && e.some((
|
|
15041
|
+
(y) => y.entity_guid !== Hr && y.notification_type === m.notification_type && e.some((S) => S.guid === y.entity_guid)
|
|
15043
15042
|
), E = [];
|
|
15044
15043
|
s && !u && m.email_channel && E.push(i.delivery_method_email_label), c && !_ && m.sms_channel && E.push(i.delivery_method_sms_label), d && !h && m.push_channel && E.push(i.delivery_method_push_label), r.push({
|
|
15045
15044
|
...m,
|
|
15046
15045
|
children: f.map((y) => ({
|
|
15047
15046
|
...y,
|
|
15048
|
-
account: e.find((
|
|
15047
|
+
account: e.find((S) => S.guid === y.entity_guid),
|
|
15049
15048
|
label: C
|
|
15050
15049
|
})),
|
|
15051
15050
|
deliveryMethodsLabel: E.join(", "),
|
|
@@ -15378,11 +15377,11 @@ const f1 = I(() => {
|
|
|
15378
15377
|
birthday: h.birthday,
|
|
15379
15378
|
postal_code: h.postal_code,
|
|
15380
15379
|
credit_score: h.credit_score
|
|
15381
|
-
}), [f, E] = g.useState(!1), [y,
|
|
15380
|
+
}), [f, E] = g.useState(!1), [y, S] = g.useState(!1), A = g.useRef(null), w = m.email && !h.email_is_verified && !f, v = m.phone && !h.phone_is_verified && !f;
|
|
15382
15381
|
g.useEffect(() => {
|
|
15383
15382
|
if (n) {
|
|
15384
15383
|
const O = (U) => {
|
|
15385
|
-
A.current && !A.current.contains(U.target) && f &&
|
|
15384
|
+
A.current && !A.current.contains(U.target) && f && S(!0);
|
|
15386
15385
|
};
|
|
15387
15386
|
return document.addEventListener("mousedown", O), () => {
|
|
15388
15387
|
document.removeEventListener("mousedown", O);
|
|
@@ -15397,9 +15396,9 @@ const f1 = I(() => {
|
|
|
15397
15396
|
}, B = async () => {
|
|
15398
15397
|
await _({ ...h, ...m }), E(!1);
|
|
15399
15398
|
}, M = () => {
|
|
15400
|
-
|
|
15399
|
+
S(!1), n && n();
|
|
15401
15400
|
}, D = () => {
|
|
15402
|
-
|
|
15401
|
+
S(!1);
|
|
15403
15402
|
}, k = (O) => {
|
|
15404
15403
|
const U = {
|
|
15405
15404
|
...m,
|
|
@@ -15476,7 +15475,7 @@ const f1 = I(() => {
|
|
|
15476
15475
|
] })
|
|
15477
15476
|
] }),
|
|
15478
15477
|
/* @__PURE__ */ l(b, { direction: s ? "column" : "row", spacing: s ? 44 : 24, sx: { mb: 44 }, children: [
|
|
15479
|
-
/* @__PURE__ */ t(
|
|
15478
|
+
/* @__PURE__ */ t(Ti, { dateAdapter: Qn, children: /* @__PURE__ */ t(
|
|
15480
15479
|
Ya,
|
|
15481
15480
|
{
|
|
15482
15481
|
label: o.birthdate,
|
|
@@ -15551,9 +15550,9 @@ const f1 = I(() => {
|
|
|
15551
15550
|
}
|
|
15552
15551
|
)
|
|
15553
15552
|
] });
|
|
15554
|
-
},
|
|
15553
|
+
}, S1 = I(E1);
|
|
15555
15554
|
var st = /* @__PURE__ */ ((e) => (e.Delete = "delete", e.Edit = "edit", e.Token = "token", e))(st || {});
|
|
15556
|
-
const
|
|
15555
|
+
const T1 = ({
|
|
15557
15556
|
devices: e,
|
|
15558
15557
|
onClickDeviceEdit: n,
|
|
15559
15558
|
onClickDeviceDelete: i
|
|
@@ -15644,7 +15643,7 @@ const S1 = ({
|
|
|
15644
15643
|
alignItems: "center",
|
|
15645
15644
|
p: "12px 16px"
|
|
15646
15645
|
},
|
|
15647
|
-
children: /* @__PURE__ */ t(p, { color: a.palette.text.secondary, variant: "Small", children:
|
|
15646
|
+
children: /* @__PURE__ */ t(p, { color: a.palette.text.secondary, variant: "Small", children: T(
|
|
15648
15647
|
o.mobile_devices_count,
|
|
15649
15648
|
/* @__PURE__ */ t("b", { children: e.length }),
|
|
15650
15649
|
/* @__PURE__ */ t("b", { children: e.length })
|
|
@@ -15759,7 +15758,7 @@ const S1 = ({
|
|
|
15759
15758
|
borderColor: a.palette.border.light,
|
|
15760
15759
|
p: "12px 16px"
|
|
15761
15760
|
},
|
|
15762
|
-
children: /* @__PURE__ */ t(p, { color: a.palette.text.secondary, variant: "Small", children:
|
|
15761
|
+
children: /* @__PURE__ */ t(p, { color: a.palette.text.secondary, variant: "Small", children: T(
|
|
15763
15762
|
o.mobile_devices_count,
|
|
15764
15763
|
/* @__PURE__ */ t("b", { children: e.length }),
|
|
15765
15764
|
/* @__PURE__ */ t("b", { children: e.length })
|
|
@@ -15830,19 +15829,19 @@ const S1 = ({
|
|
|
15830
15829
|
}
|
|
15831
15830
|
}
|
|
15832
15831
|
};
|
|
15833
|
-
},
|
|
15832
|
+
}, S = async () => {
|
|
15834
15833
|
if (e === st.Token && i(), e === st.Edit && a) {
|
|
15835
15834
|
const A = { ...a, name: m };
|
|
15836
15835
|
(await d(A)).success ? (_(c.mobile_devices_edit_success, "success"), h()) : _(
|
|
15837
|
-
|
|
15836
|
+
T(c.mobile_devices_edit_error, a.name),
|
|
15838
15837
|
"error"
|
|
15839
15838
|
), i();
|
|
15840
15839
|
}
|
|
15841
15840
|
e === st.Delete && a && ((await u(a.guid)).success ? (_(
|
|
15842
|
-
|
|
15841
|
+
T(c.mobile_devices_delete_success, a.name),
|
|
15843
15842
|
"success"
|
|
15844
15843
|
), h()) : _(
|
|
15845
|
-
|
|
15844
|
+
T(c.mobile_devices_delete_error, a.name),
|
|
15846
15845
|
"error"
|
|
15847
15846
|
), i());
|
|
15848
15847
|
};
|
|
@@ -15852,7 +15851,7 @@ const S1 = ({
|
|
|
15852
15851
|
copy: { title: f() },
|
|
15853
15852
|
isOpen: n,
|
|
15854
15853
|
onClose: i,
|
|
15855
|
-
onPrimaryAction:
|
|
15854
|
+
onPrimaryAction: S,
|
|
15856
15855
|
onSecondaryAction: i,
|
|
15857
15856
|
primaryColor: e === st.Delete ? "error" : void 0,
|
|
15858
15857
|
primaryText: E(),
|
|
@@ -15893,7 +15892,7 @@ const S1 = ({
|
|
|
15893
15892
|
h(A), u({ open: !0, type: st.Edit });
|
|
15894
15893
|
}, y = (A) => {
|
|
15895
15894
|
h(A), u({ open: !0, type: st.Delete });
|
|
15896
|
-
},
|
|
15895
|
+
}, S = () => {
|
|
15897
15896
|
u({ open: !1, type: "" }), h(void 0);
|
|
15898
15897
|
};
|
|
15899
15898
|
return !i || !a ? /* @__PURE__ */ t(de, {}) : /* @__PURE__ */ l(
|
|
@@ -15917,7 +15916,7 @@ const S1 = ({
|
|
|
15917
15916
|
onClickDeviceEdit: E
|
|
15918
15917
|
}
|
|
15919
15918
|
) : /* @__PURE__ */ t(
|
|
15920
|
-
|
|
15919
|
+
T1,
|
|
15921
15920
|
{
|
|
15922
15921
|
devices: r,
|
|
15923
15922
|
onClickDeviceDelete: y,
|
|
@@ -15936,7 +15935,7 @@ const S1 = ({
|
|
|
15936
15935
|
deviceToken: m,
|
|
15937
15936
|
dialogType: d.type,
|
|
15938
15937
|
isOpen: d.open,
|
|
15939
|
-
onClose:
|
|
15938
|
+
onClose: S
|
|
15940
15939
|
}
|
|
15941
15940
|
)
|
|
15942
15941
|
]
|
|
@@ -16114,7 +16113,7 @@ const S1 = ({
|
|
|
16114
16113
|
({ onProfileUpdated: e, profile: n }) => {
|
|
16115
16114
|
const { common: i, recurring: a, settings: o } = x(), { updateAccount: r } = Ee(), s = n.notification_type === Ct.DebtPaymentReminder, [c, d] = g.useState(!1), [u, _] = g.useState(n.threshold || 0), [h, m] = g.useState(
|
|
16116
16115
|
n.account?.day_payment_is_due || 0
|
|
16117
|
-
), C = n.account?.name || n.account?.feed_name || "", f = n.account?.day_payment_is_due ?
|
|
16116
|
+
), C = n.account?.name || n.account?.feed_name || "", f = n.account?.day_payment_is_due ? T(
|
|
16118
16117
|
o.notification_debt_payment_date,
|
|
16119
16118
|
Ci(n.account?.day_payment_is_due)
|
|
16120
16119
|
) : o.notification_debt_payment_zero_state, E = s ? f : P(n.threshold ?? 0, "0,0"), y = async () => {
|
|
@@ -16154,13 +16153,13 @@ const S1 = ({
|
|
|
16154
16153
|
onClose: () => d(!1),
|
|
16155
16154
|
onPrimaryAction: y,
|
|
16156
16155
|
primaryText: i.save_button,
|
|
16157
|
-
children: s ? /* @__PURE__ */ t(
|
|
16156
|
+
children: s ? /* @__PURE__ */ t(Ti, { dateAdapter: Qn, children: /* @__PURE__ */ t(
|
|
16158
16157
|
ja,
|
|
16159
16158
|
{
|
|
16160
16159
|
maxDate: Ye(/* @__PURE__ */ new Date()),
|
|
16161
16160
|
minDate: Ze(/* @__PURE__ */ new Date()),
|
|
16162
|
-
onChange: (
|
|
16163
|
-
m(
|
|
16161
|
+
onChange: (S) => {
|
|
16162
|
+
m(S.getDate());
|
|
16164
16163
|
},
|
|
16165
16164
|
slots: {
|
|
16166
16165
|
// Hides the arrows
|
|
@@ -16182,7 +16181,7 @@ const S1 = ({
|
|
|
16182
16181
|
autoFocus: !0,
|
|
16183
16182
|
fullWidth: !0,
|
|
16184
16183
|
minAmount: 0,
|
|
16185
|
-
setAmount: (
|
|
16184
|
+
setAmount: (S) => _(Number(S) || 0),
|
|
16186
16185
|
sx: { ".MuiTypography-Body": { p: 0 } }
|
|
16187
16186
|
}
|
|
16188
16187
|
)
|
|
@@ -16537,7 +16536,7 @@ const S1 = ({
|
|
|
16537
16536
|
] }),
|
|
16538
16537
|
/* @__PURE__ */ t(b, { sx: { flexDirection: { xs: "column", md: "row" }, gap: 12 }, children: [0, 1].map((_) => {
|
|
16539
16538
|
const h = _ === 0 ? 0 : u, m = _ === 0 ? u : i.length, C = i.slice(h, m);
|
|
16540
|
-
return /* @__PURE__ */ t(b, { sx: { flex: 1, gap: 12, maxWidth: { md: "calc(50% - 6px)" } }, children: C.map(({ guid: f, icon: E, topics: y, title:
|
|
16539
|
+
return /* @__PURE__ */ t(b, { sx: { flex: 1, gap: 12, maxWidth: { md: "calc(50% - 6px)" } }, children: C.map(({ guid: f, icon: E, topics: y, title: S }, A) => {
|
|
16541
16540
|
const w = A + h;
|
|
16542
16541
|
return /* @__PURE__ */ l(
|
|
16543
16542
|
Ai,
|
|
@@ -16565,7 +16564,7 @@ const S1 = ({
|
|
|
16565
16564
|
sx: { height: 64, p: "14px 24px" },
|
|
16566
16565
|
children: /* @__PURE__ */ l(b, { sx: { alignItems: "center", flexDirection: "row", gap: 12 }, children: [
|
|
16567
16566
|
/* @__PURE__ */ t($, { name: E, size: 24 }),
|
|
16568
|
-
/* @__PURE__ */ t(p, { variant: "Body", children:
|
|
16567
|
+
/* @__PURE__ */ t(p, { variant: "Body", children: S })
|
|
16569
16568
|
] })
|
|
16570
16569
|
}
|
|
16571
16570
|
),
|
|
@@ -16582,7 +16581,7 @@ const S1 = ({
|
|
|
16582
16581
|
{
|
|
16583
16582
|
"aria-label": v,
|
|
16584
16583
|
divider: !0,
|
|
16585
|
-
onClick: () => s({ guid: f, category:
|
|
16584
|
+
onClick: () => s({ guid: f, category: S, pageTitle: v, topicKey: R }),
|
|
16586
16585
|
sx: {
|
|
16587
16586
|
pl: "6px !important",
|
|
16588
16587
|
borderColor: "border.light",
|
|
@@ -16907,12 +16906,12 @@ const S1 = ({
|
|
|
16907
16906
|
X,
|
|
16908
16907
|
{
|
|
16909
16908
|
items: [
|
|
16910
|
-
|
|
16909
|
+
T(
|
|
16911
16910
|
e.accounts_overview.edit_account_step_1_instruction,
|
|
16912
16911
|
/* @__PURE__ */ t("b", { children: e.accounts_overview.edit_account_step_1_bold })
|
|
16913
16912
|
),
|
|
16914
16913
|
e.accounts_overview.edit_account_step_2_instruction,
|
|
16915
|
-
|
|
16914
|
+
T(
|
|
16916
16915
|
e.accounts_overview.edit_account_step_3_instruction,
|
|
16917
16916
|
/* @__PURE__ */ t("b", { children: e.accounts_overview.edit_account_step_3_bold_1 }),
|
|
16918
16917
|
/* @__PURE__ */ t("b", { children: e.accounts_overview.edit_account_step_3_bold_2 }),
|
|
@@ -16943,15 +16942,15 @@ const S1 = ({
|
|
|
16943
16942
|
X,
|
|
16944
16943
|
{
|
|
16945
16944
|
items: [
|
|
16946
|
-
|
|
16945
|
+
T(
|
|
16947
16946
|
e.accounts_overview.add_account_step_1_instruction,
|
|
16948
16947
|
/* @__PURE__ */ t("b", { children: e.accounts_overview.add_account_step_1_bold })
|
|
16949
16948
|
),
|
|
16950
|
-
|
|
16949
|
+
T(
|
|
16951
16950
|
e.accounts_overview.add_account_step_2_instruction,
|
|
16952
16951
|
/* @__PURE__ */ t("b", { children: e.accounts_overview.add_account_step_2_bold })
|
|
16953
16952
|
),
|
|
16954
|
-
|
|
16953
|
+
T(
|
|
16955
16954
|
e.accounts_overview.add_account_step_3_instruction,
|
|
16956
16955
|
/* @__PURE__ */ t("b", { children: e.accounts_overview.add_account_step_3_bold })
|
|
16957
16956
|
),
|
|
@@ -16964,7 +16963,7 @@ const S1 = ({
|
|
|
16964
16963
|
/* @__PURE__ */ t(
|
|
16965
16964
|
F,
|
|
16966
16965
|
{
|
|
16967
|
-
content:
|
|
16966
|
+
content: T(
|
|
16968
16967
|
e.accounts_overview.exclude_account_info_text,
|
|
16969
16968
|
/* @__PURE__ */ t("b", { children: e.accounts_overview.exclude_account_info_bold_1 }),
|
|
16970
16969
|
/* @__PURE__ */ t("b", { children: e.accounts_overview.exclude_account_info_bold_2 }),
|
|
@@ -16978,11 +16977,11 @@ const S1 = ({
|
|
|
16978
16977
|
X,
|
|
16979
16978
|
{
|
|
16980
16979
|
items: [
|
|
16981
|
-
|
|
16980
|
+
T(
|
|
16982
16981
|
e.accounts_overview.hide_account_step_1_instruction,
|
|
16983
16982
|
/* @__PURE__ */ t("b", { children: e.accounts_overview.hide_account_step_1_bold })
|
|
16984
16983
|
),
|
|
16985
|
-
|
|
16984
|
+
T(
|
|
16986
16985
|
e.accounts_overview.hide_account_step_2_instruction,
|
|
16987
16986
|
/* @__PURE__ */ t("b", { children: e.accounts_overview.hide_account_step_2_bold })
|
|
16988
16987
|
)
|
|
@@ -16995,11 +16994,11 @@ const S1 = ({
|
|
|
16995
16994
|
X,
|
|
16996
16995
|
{
|
|
16997
16996
|
items: [
|
|
16998
|
-
|
|
16997
|
+
T(
|
|
16999
16998
|
e.accounts_overview.unhide_account_step_1_instruction,
|
|
17000
16999
|
/* @__PURE__ */ t("b", { children: e.accounts_overview.unhide_account_step_1_bold })
|
|
17001
17000
|
),
|
|
17002
|
-
|
|
17001
|
+
T(
|
|
17003
17002
|
e.accounts_overview.unhide_account_step_2_instruction,
|
|
17004
17003
|
/* @__PURE__ */ t("b", { children: e.accounts_overview.unhide_account_step_2_bold })
|
|
17005
17004
|
)
|
|
@@ -17059,7 +17058,7 @@ const S1 = ({
|
|
|
17059
17058
|
{
|
|
17060
17059
|
items: [
|
|
17061
17060
|
e.need_to_fix_a_broken_account.step_1,
|
|
17062
|
-
|
|
17061
|
+
T(
|
|
17063
17062
|
e.need_to_fix_a_broken_account.step_2,
|
|
17064
17063
|
/* @__PURE__ */ t("b", { children: e.need_to_fix_a_broken_account.step_2_bold })
|
|
17065
17064
|
),
|
|
@@ -17093,13 +17092,13 @@ const S1 = ({
|
|
|
17093
17092
|
{
|
|
17094
17093
|
items: [
|
|
17095
17094
|
e.seeing_duplicate_accounts.step_1_instruction,
|
|
17096
|
-
|
|
17095
|
+
T(
|
|
17097
17096
|
e.seeing_duplicate_accounts.step_2_instruction,
|
|
17098
17097
|
/* @__PURE__ */ t("b", { children: e.seeing_duplicate_accounts.step_2_bold }),
|
|
17099
17098
|
/* @__PURE__ */ t("b", { children: e.seeing_duplicate_accounts.step_2_bold_2 })
|
|
17100
17099
|
),
|
|
17101
17100
|
e.seeing_duplicate_accounts.step_3_instruction,
|
|
17102
|
-
|
|
17101
|
+
T(
|
|
17103
17102
|
e.seeing_duplicate_accounts.step_4_instruction,
|
|
17104
17103
|
/* @__PURE__ */ t("b", { children: e.seeing_duplicate_accounts.step_4_bold })
|
|
17105
17104
|
)
|
|
@@ -17126,11 +17125,11 @@ const S1 = ({
|
|
|
17126
17125
|
X,
|
|
17127
17126
|
{
|
|
17128
17127
|
items: [
|
|
17129
|
-
|
|
17128
|
+
T(
|
|
17130
17129
|
i.overview_list_item_1_text,
|
|
17131
17130
|
/* @__PURE__ */ t("b", { children: i.overview_list_item_1_bold })
|
|
17132
17131
|
),
|
|
17133
|
-
|
|
17132
|
+
T(
|
|
17134
17133
|
i.overview_list_item_2_text,
|
|
17135
17134
|
/* @__PURE__ */ t("b", { children: i.overview_list_item_2_bold })
|
|
17136
17135
|
)
|
|
@@ -17152,11 +17151,11 @@ const S1 = ({
|
|
|
17152
17151
|
X,
|
|
17153
17152
|
{
|
|
17154
17153
|
items: [
|
|
17155
|
-
|
|
17154
|
+
T(
|
|
17156
17155
|
i.adjusting_income_list_items_1_text,
|
|
17157
17156
|
/* @__PURE__ */ t("b", { children: i.adjusting_income_list_items_1_bold })
|
|
17158
17157
|
),
|
|
17159
|
-
|
|
17158
|
+
T(
|
|
17160
17159
|
i.adjusting_income_list_items_2_text,
|
|
17161
17160
|
/* @__PURE__ */ t("b", { children: i.adjusting_income_list_items_2_bold })
|
|
17162
17161
|
)
|
|
@@ -17179,7 +17178,7 @@ const S1 = ({
|
|
|
17179
17178
|
items: [
|
|
17180
17179
|
i.create_budget_list_items_1,
|
|
17181
17180
|
i.create_budget_list_items_2,
|
|
17182
|
-
|
|
17181
|
+
T(
|
|
17183
17182
|
i.create_budget_list_items_3,
|
|
17184
17183
|
/* @__PURE__ */ t("b", { children: i.create_budget_list_items_3_bold_1 }),
|
|
17185
17184
|
/* @__PURE__ */ t("b", { children: i.create_budget_list_items_3_bold_2 }),
|
|
@@ -17234,7 +17233,7 @@ const S1 = ({
|
|
|
17234
17233
|
content: /* @__PURE__ */ t(
|
|
17235
17234
|
F,
|
|
17236
17235
|
{
|
|
17237
|
-
content:
|
|
17236
|
+
content: T(
|
|
17238
17237
|
e.cashflow_overview.expense_details_instruction,
|
|
17239
17238
|
/* @__PURE__ */ t("b", { children: e.cashflow_overview.edit_expense_details_bold_1 })
|
|
17240
17239
|
),
|
|
@@ -17271,7 +17270,7 @@ const S1 = ({
|
|
|
17271
17270
|
content: /* @__PURE__ */ t(
|
|
17272
17271
|
F,
|
|
17273
17272
|
{
|
|
17274
|
-
content:
|
|
17273
|
+
content: T(
|
|
17275
17274
|
n.overview_desc,
|
|
17276
17275
|
/* @__PURE__ */ t("b", { children: n.snowball_method })
|
|
17277
17276
|
)
|
|
@@ -17301,19 +17300,19 @@ const S1 = ({
|
|
|
17301
17300
|
X,
|
|
17302
17301
|
{
|
|
17303
17302
|
items: [
|
|
17304
|
-
|
|
17303
|
+
T(
|
|
17305
17304
|
n.debt_prioritization_list_1_item_1,
|
|
17306
17305
|
/* @__PURE__ */ t("b", { children: n.debt_prioritization_list_1_item_1_bold })
|
|
17307
17306
|
),
|
|
17308
|
-
|
|
17307
|
+
T(
|
|
17309
17308
|
n.debt_prioritization_list_1_item_2,
|
|
17310
17309
|
/* @__PURE__ */ t("b", { children: n.debt_prioritization_list_1_item_2_bold })
|
|
17311
17310
|
),
|
|
17312
|
-
|
|
17311
|
+
T(
|
|
17313
17312
|
n.debt_prioritization_list_1_item_3,
|
|
17314
17313
|
/* @__PURE__ */ t("b", { children: n.debt_prioritization_list_1_item_3_bold })
|
|
17315
17314
|
),
|
|
17316
|
-
|
|
17315
|
+
T(
|
|
17317
17316
|
n.debt_prioritization_list_1_item_3,
|
|
17318
17317
|
/* @__PURE__ */ t("b", { children: n.debt_prioritization_list_1_item_3_bold })
|
|
17319
17318
|
)
|
|
@@ -17345,15 +17344,15 @@ const S1 = ({
|
|
|
17345
17344
|
X,
|
|
17346
17345
|
{
|
|
17347
17346
|
items: [
|
|
17348
|
-
|
|
17347
|
+
T(
|
|
17349
17348
|
n.debt_chart_list_item_1,
|
|
17350
17349
|
/* @__PURE__ */ t("b", { children: n.debt_chart_list_item_1_bold })
|
|
17351
17350
|
),
|
|
17352
|
-
|
|
17351
|
+
T(
|
|
17353
17352
|
n.debt_chart_list_item_2,
|
|
17354
17353
|
/* @__PURE__ */ t("b", { children: n.debt_chart_list_item_2_bold })
|
|
17355
17354
|
),
|
|
17356
|
-
|
|
17355
|
+
T(
|
|
17357
17356
|
n.debt_chart_list_item_3,
|
|
17358
17357
|
/* @__PURE__ */ t("b", { children: n.debt_chart_list_item_3_bold })
|
|
17359
17358
|
)
|
|
@@ -17394,7 +17393,7 @@ const S1 = ({
|
|
|
17394
17393
|
{
|
|
17395
17394
|
items: [
|
|
17396
17395
|
n.debt_details_list_1_item_1,
|
|
17397
|
-
|
|
17396
|
+
T(
|
|
17398
17397
|
n.debt_details_list_1_item_2,
|
|
17399
17398
|
/* @__PURE__ */ t("b", { children: n.debt_details_list_1_item_2_bold })
|
|
17400
17399
|
)
|
|
@@ -17408,7 +17407,7 @@ const S1 = ({
|
|
|
17408
17407
|
{
|
|
17409
17408
|
items: [
|
|
17410
17409
|
n.debt_details_list_2_item_1,
|
|
17411
|
-
|
|
17410
|
+
T(
|
|
17412
17411
|
n.debt_details_list_2_item_2,
|
|
17413
17412
|
/* @__PURE__ */ t("b", { children: n.debt_details_list_2_item_2_bold })
|
|
17414
17413
|
),
|
|
@@ -17433,7 +17432,7 @@ const S1 = ({
|
|
|
17433
17432
|
items: [
|
|
17434
17433
|
n.hiding_accounts_list_1_item_1,
|
|
17435
17434
|
n.hiding_accounts_list_1_item_2,
|
|
17436
|
-
|
|
17435
|
+
T(
|
|
17437
17436
|
n.hiding_accounts_list_1_item_3,
|
|
17438
17437
|
/* @__PURE__ */ t("b", { children: n.hiding_accounts_list_1_item_3_bold })
|
|
17439
17438
|
)
|
|
@@ -17447,7 +17446,7 @@ const S1 = ({
|
|
|
17447
17446
|
{
|
|
17448
17447
|
items: [
|
|
17449
17448
|
n.hiding_accounts_list_2_item_1,
|
|
17450
|
-
|
|
17449
|
+
T(
|
|
17451
17450
|
n.hiding_accounts_list_2_item_2,
|
|
17452
17451
|
/* @__PURE__ */ t("b", { children: n.hiding_accounts_list_2_item_2_bold })
|
|
17453
17452
|
)
|
|
@@ -17467,11 +17466,11 @@ const S1 = ({
|
|
|
17467
17466
|
X,
|
|
17468
17467
|
{
|
|
17469
17468
|
items: [
|
|
17470
|
-
|
|
17469
|
+
T(
|
|
17471
17470
|
n.extra_payments_list_2_item_1,
|
|
17472
17471
|
/* @__PURE__ */ t("b", { children: n.extra_payments_list_2_item_1_bold })
|
|
17473
17472
|
),
|
|
17474
|
-
|
|
17473
|
+
T(
|
|
17475
17474
|
n.extra_payments_list_2_item_2,
|
|
17476
17475
|
/* @__PURE__ */ t("b", { children: n.extra_payments_list_2_item_2_bold })
|
|
17477
17476
|
)
|
|
@@ -17519,20 +17518,20 @@ const S1 = ({
|
|
|
17519
17518
|
X,
|
|
17520
17519
|
{
|
|
17521
17520
|
items: [
|
|
17522
|
-
|
|
17521
|
+
T(
|
|
17523
17522
|
i.data_private_secure_step1,
|
|
17524
17523
|
/* @__PURE__ */ t("b", { children: i.encryption_firewalls_bold_text })
|
|
17525
17524
|
),
|
|
17526
|
-
|
|
17525
|
+
T(
|
|
17527
17526
|
i.data_private_secure_step2,
|
|
17528
17527
|
/* @__PURE__ */ t("b", { children: i.secure_authentication_bold_text })
|
|
17529
17528
|
),
|
|
17530
|
-
|
|
17529
|
+
T(
|
|
17531
17530
|
i.data_private_secure_step3,
|
|
17532
17531
|
/* @__PURE__ */ t("b", { children: i.privacy_protection_bold_text }),
|
|
17533
17532
|
/* @__PURE__ */ t("b", { children: i.not_bold_text })
|
|
17534
17533
|
),
|
|
17535
|
-
|
|
17534
|
+
T(
|
|
17536
17535
|
i.data_private_secure_step4,
|
|
17537
17536
|
/* @__PURE__ */ t("b", { children: i.policy_updates_bold_text })
|
|
17538
17537
|
)
|
|
@@ -17553,11 +17552,11 @@ const S1 = ({
|
|
|
17553
17552
|
X,
|
|
17554
17553
|
{
|
|
17555
17554
|
items: [
|
|
17556
|
-
|
|
17555
|
+
T(
|
|
17557
17556
|
i.transactions_categorized_step1,
|
|
17558
17557
|
/* @__PURE__ */ t("b", { children: i.checks_atm_withdrawals_bold_text })
|
|
17559
17558
|
),
|
|
17560
|
-
|
|
17559
|
+
T(
|
|
17561
17560
|
i.transactions_categorized_step2,
|
|
17562
17561
|
/* @__PURE__ */ t("b", { children: i.limited_transaction_details_bold_text })
|
|
17563
17562
|
)
|
|
@@ -17575,11 +17574,11 @@ const S1 = ({
|
|
|
17575
17574
|
X,
|
|
17576
17575
|
{
|
|
17577
17576
|
items: [
|
|
17578
|
-
|
|
17577
|
+
T(
|
|
17579
17578
|
i.transactions_uncategorized_step1,
|
|
17580
17579
|
/* @__PURE__ */ t("b", { children: i.transactions_bold_text })
|
|
17581
17580
|
),
|
|
17582
|
-
|
|
17581
|
+
T(
|
|
17583
17582
|
i.transactions_uncategorized_step2,
|
|
17584
17583
|
/* @__PURE__ */ t("b", { children: i.categorize_bold_text })
|
|
17585
17584
|
),
|
|
@@ -17622,16 +17621,16 @@ const S1 = ({
|
|
|
17622
17621
|
X,
|
|
17623
17622
|
{
|
|
17624
17623
|
items: [
|
|
17625
|
-
|
|
17624
|
+
T(
|
|
17626
17625
|
i.display_issues_step1,
|
|
17627
17626
|
/* @__PURE__ */ t("b", { children: i.f12_bold_text })
|
|
17628
17627
|
),
|
|
17629
|
-
|
|
17628
|
+
T(
|
|
17630
17629
|
i.display_issues_step2,
|
|
17631
17630
|
/* @__PURE__ */ t("b", { children: i.browser_mode_bold_text })
|
|
17632
17631
|
),
|
|
17633
17632
|
i.display_issues_step3,
|
|
17634
|
-
|
|
17633
|
+
T(
|
|
17635
17634
|
i.display_issues_step4,
|
|
17636
17635
|
/* @__PURE__ */ t("b", { children: i.document_mode_bold_text })
|
|
17637
17636
|
),
|
|
@@ -17667,15 +17666,15 @@ const S1 = ({
|
|
|
17667
17666
|
X,
|
|
17668
17667
|
{
|
|
17669
17668
|
items: [
|
|
17670
|
-
|
|
17669
|
+
T(
|
|
17671
17670
|
n.setting_goals_step1,
|
|
17672
17671
|
/* @__PURE__ */ t("b", { children: n.savings_bold_text })
|
|
17673
17672
|
),
|
|
17674
|
-
|
|
17673
|
+
T(
|
|
17675
17674
|
n.setting_goals_step2,
|
|
17676
17675
|
/* @__PURE__ */ t("b", { children: n.debt_payoff_bold_text })
|
|
17677
17676
|
),
|
|
17678
|
-
|
|
17677
|
+
T(
|
|
17679
17678
|
n.setting_goals_step3,
|
|
17680
17679
|
/* @__PURE__ */ t("b", { children: n.retirement_bold_text })
|
|
17681
17680
|
)
|
|
@@ -17695,11 +17694,11 @@ const S1 = ({
|
|
|
17695
17694
|
X,
|
|
17696
17695
|
{
|
|
17697
17696
|
items: [
|
|
17698
|
-
|
|
17697
|
+
T(
|
|
17699
17698
|
n.create_goal_step1,
|
|
17700
17699
|
/* @__PURE__ */ t("b", { children: n.add_goal_bold_text })
|
|
17701
17700
|
),
|
|
17702
|
-
|
|
17701
|
+
T(
|
|
17703
17702
|
n.create_goal_step2,
|
|
17704
17703
|
/* @__PURE__ */ t("b", { children: n.savings_bold_text }),
|
|
17705
17704
|
/* @__PURE__ */ t("b", { children: n.debt_payoff_bold_text }),
|
|
@@ -17707,7 +17706,7 @@ const S1 = ({
|
|
|
17707
17706
|
),
|
|
17708
17707
|
n.create_goal_step3,
|
|
17709
17708
|
n.create_goal_step4,
|
|
17710
|
-
|
|
17709
|
+
T(
|
|
17711
17710
|
n.create_goal_step5,
|
|
17712
17711
|
/* @__PURE__ */ t("b", { children: n.save_bold_text })
|
|
17713
17712
|
)
|
|
@@ -17731,7 +17730,7 @@ const S1 = ({
|
|
|
17731
17730
|
items: [
|
|
17732
17731
|
n.savings_goals_step1,
|
|
17733
17732
|
n.savings_goals_step2,
|
|
17734
|
-
|
|
17733
|
+
T(
|
|
17735
17734
|
n.savings_goals_step3,
|
|
17736
17735
|
/* @__PURE__ */ t("b", { children: n.priority_bold_text }),
|
|
17737
17736
|
/* @__PURE__ */ t("b", { children: n.monthly_contribution_bold_text })
|
|
@@ -17755,7 +17754,7 @@ const S1 = ({
|
|
|
17755
17754
|
items: [
|
|
17756
17755
|
n.debt_payoff_goals_step1,
|
|
17757
17756
|
n.debt_payoff_goals_step2,
|
|
17758
|
-
|
|
17757
|
+
T(
|
|
17759
17758
|
n.debt_payoff_goals_step3,
|
|
17760
17759
|
/* @__PURE__ */ t("b", { children: n.fastest_payoff_bold_text }),
|
|
17761
17760
|
/* @__PURE__ */ t("b", { children: n.highest_interest_bold_text }),
|
|
@@ -17779,13 +17778,13 @@ const S1 = ({
|
|
|
17779
17778
|
X,
|
|
17780
17779
|
{
|
|
17781
17780
|
items: [
|
|
17782
|
-
|
|
17781
|
+
T(
|
|
17783
17782
|
n.retirement_goals_step1,
|
|
17784
17783
|
/* @__PURE__ */ t("b", { children: n.desired_retirement_age_bold_text }),
|
|
17785
17784
|
/* @__PURE__ */ t("b", { children: n.savings_goal_bold_text })
|
|
17786
17785
|
),
|
|
17787
17786
|
n.retirement_goals_step2,
|
|
17788
|
-
|
|
17787
|
+
T(
|
|
17789
17788
|
n.retirement_goals_step3,
|
|
17790
17789
|
/* @__PURE__ */ t("b", { children: n.blue_i_icon_bold_text })
|
|
17791
17790
|
)
|
|
@@ -17812,17 +17811,17 @@ const S1 = ({
|
|
|
17812
17811
|
X,
|
|
17813
17812
|
{
|
|
17814
17813
|
items: [
|
|
17815
|
-
|
|
17814
|
+
T(
|
|
17816
17815
|
n.adjusting_contribution_priorities_step1,
|
|
17817
17816
|
/* @__PURE__ */ t("b", { children: n.manage_goals_bold_text })
|
|
17818
17817
|
),
|
|
17819
|
-
|
|
17818
|
+
T(
|
|
17820
17819
|
n.create_goal_step2,
|
|
17821
17820
|
/* @__PURE__ */ t("b", { children: n.savings_bold_text }),
|
|
17822
17821
|
/* @__PURE__ */ t("b", { children: n.debt_payoff_bold_text }),
|
|
17823
17822
|
/* @__PURE__ */ t("b", { children: n.retirement_bold_text })
|
|
17824
17823
|
),
|
|
17825
|
-
|
|
17824
|
+
T(
|
|
17826
17825
|
n.adjusting_contribution_priorities_step3,
|
|
17827
17826
|
/* @__PURE__ */ t("b", { children: n.pencil_icon_bold_text })
|
|
17828
17827
|
),
|
|
@@ -17847,7 +17846,7 @@ const S1 = ({
|
|
|
17847
17846
|
/* @__PURE__ */ t(
|
|
17848
17847
|
F,
|
|
17849
17848
|
{
|
|
17850
|
-
content:
|
|
17849
|
+
content: T(
|
|
17851
17850
|
n.description_1,
|
|
17852
17851
|
/* @__PURE__ */ t("b", { children: n.description_1_bold_1 }),
|
|
17853
17852
|
/* @__PURE__ */ t("b", { children: n.description_1_bold_2 })
|
|
@@ -17858,7 +17857,7 @@ const S1 = ({
|
|
|
17858
17857
|
/* @__PURE__ */ t(
|
|
17859
17858
|
F,
|
|
17860
17859
|
{
|
|
17861
|
-
content:
|
|
17860
|
+
content: T(
|
|
17862
17861
|
n.list_1_description,
|
|
17863
17862
|
/* @__PURE__ */ t("b", { children: n.list_1_description_bold })
|
|
17864
17863
|
),
|
|
@@ -17881,7 +17880,7 @@ const S1 = ({
|
|
|
17881
17880
|
/* @__PURE__ */ t(
|
|
17882
17881
|
F,
|
|
17883
17882
|
{
|
|
17884
|
-
content:
|
|
17883
|
+
content: T(
|
|
17885
17884
|
n.list_2_description,
|
|
17886
17885
|
/* @__PURE__ */ t("b", { children: n.list_2_description_bold })
|
|
17887
17886
|
),
|
|
@@ -17911,20 +17910,20 @@ const S1 = ({
|
|
|
17911
17910
|
X,
|
|
17912
17911
|
{
|
|
17913
17912
|
items: [
|
|
17914
|
-
|
|
17913
|
+
T(
|
|
17915
17914
|
n.mobile_devices_overview_step1,
|
|
17916
17915
|
/* @__PURE__ */ t("b", { children: n.icon_mobile_bold_text })
|
|
17917
17916
|
),
|
|
17918
|
-
|
|
17917
|
+
T(
|
|
17919
17918
|
n.mobile_devices_overview_step2,
|
|
17920
17919
|
/* @__PURE__ */ t("b", { children: n.generate_access_code_bold_text })
|
|
17921
17920
|
),
|
|
17922
|
-
|
|
17921
|
+
T(
|
|
17923
17922
|
n.mobile_devices_overview_step3,
|
|
17924
17923
|
/* @__PURE__ */ t("b", { children: n.ios_bold_text }),
|
|
17925
17924
|
/* @__PURE__ */ t("b", { children: n.android_bold_text })
|
|
17926
17925
|
),
|
|
17927
|
-
|
|
17926
|
+
T(
|
|
17928
17927
|
n.mobile_devices_overview_step4,
|
|
17929
17928
|
/* @__PURE__ */ t("b", { children: n.access_code_bold_text })
|
|
17930
17929
|
)
|
|
@@ -17951,19 +17950,19 @@ const S1 = ({
|
|
|
17951
17950
|
X,
|
|
17952
17951
|
{
|
|
17953
17952
|
items: [
|
|
17954
|
-
|
|
17953
|
+
T(
|
|
17955
17954
|
n.preventing_app_crashes_step1,
|
|
17956
17955
|
/* @__PURE__ */ t("b", { children: n.update_bold_text })
|
|
17957
17956
|
),
|
|
17958
|
-
|
|
17957
|
+
T(
|
|
17959
17958
|
n.preventing_app_crashes_step2,
|
|
17960
17959
|
/* @__PURE__ */ t("b", { children: n.close_bold_text })
|
|
17961
17960
|
),
|
|
17962
|
-
|
|
17961
|
+
T(
|
|
17963
17962
|
n.preventing_app_crashes_step3,
|
|
17964
17963
|
/* @__PURE__ */ t("b", { children: n.restart_bold_text })
|
|
17965
17964
|
),
|
|
17966
|
-
|
|
17965
|
+
T(
|
|
17967
17966
|
n.preventing_app_crashes_step4,
|
|
17968
17967
|
/* @__PURE__ */ t("b", { children: n.reinstall_bold_text })
|
|
17969
17968
|
)
|
|
@@ -17983,7 +17982,7 @@ const S1 = ({
|
|
|
17983
17982
|
content: /* @__PURE__ */ t(
|
|
17984
17983
|
F,
|
|
17985
17984
|
{
|
|
17986
|
-
content:
|
|
17985
|
+
content: T(
|
|
17987
17986
|
i.net_worth_widget_overview_text,
|
|
17988
17987
|
/* @__PURE__ */ t("b", { children: i.accounts_bold_text })
|
|
17989
17988
|
)
|
|
@@ -18008,7 +18007,7 @@ const S1 = ({
|
|
|
18008
18007
|
/* @__PURE__ */ t(
|
|
18009
18008
|
F,
|
|
18010
18009
|
{
|
|
18011
|
-
content:
|
|
18010
|
+
content: T(
|
|
18012
18011
|
i.net_worth_history_step1,
|
|
18013
18012
|
/* @__PURE__ */ t("b", { children: i.dates_bold_text })
|
|
18014
18013
|
)
|
|
@@ -18027,7 +18026,7 @@ const S1 = ({
|
|
|
18027
18026
|
/* @__PURE__ */ t(
|
|
18028
18027
|
F,
|
|
18029
18028
|
{
|
|
18030
|
-
content:
|
|
18029
|
+
content: T(
|
|
18031
18030
|
i.gains_losses_subheader,
|
|
18032
18031
|
/* @__PURE__ */ t("b", { children: i.monthly_totals_bold_text })
|
|
18033
18032
|
)
|
|
@@ -18037,11 +18036,11 @@ const S1 = ({
|
|
|
18037
18036
|
X,
|
|
18038
18037
|
{
|
|
18039
18038
|
items: [
|
|
18040
|
-
|
|
18039
|
+
T(
|
|
18041
18040
|
i.gains_losses_step1,
|
|
18042
18041
|
/* @__PURE__ */ t("b", { children: i.gains_bold_text })
|
|
18043
18042
|
),
|
|
18044
|
-
|
|
18043
|
+
T(
|
|
18045
18044
|
i.gains_losses_step2,
|
|
18046
18045
|
/* @__PURE__ */ t("b", { children: i.losses_bold_text })
|
|
18047
18046
|
)
|
|
@@ -18070,7 +18069,7 @@ const S1 = ({
|
|
|
18070
18069
|
X,
|
|
18071
18070
|
{
|
|
18072
18071
|
items: [
|
|
18073
|
-
|
|
18072
|
+
T(
|
|
18074
18073
|
i.assests_liabilities_step1,
|
|
18075
18074
|
/* @__PURE__ */ t("b", { children: i.assets_liabilities_section_title })
|
|
18076
18075
|
),
|
|
@@ -18083,11 +18082,11 @@ const S1 = ({
|
|
|
18083
18082
|
X,
|
|
18084
18083
|
{
|
|
18085
18084
|
items: [
|
|
18086
|
-
|
|
18085
|
+
T(
|
|
18087
18086
|
i.assets_definition,
|
|
18088
18087
|
/* @__PURE__ */ t("b", { children: i.assets_bold_text })
|
|
18089
18088
|
),
|
|
18090
|
-
|
|
18089
|
+
T(
|
|
18091
18090
|
i.liabilities_definition,
|
|
18092
18091
|
/* @__PURE__ */ t("b", { children: i.liabilities_bold_text })
|
|
18093
18092
|
)
|
|
@@ -18111,7 +18110,7 @@ const S1 = ({
|
|
|
18111
18110
|
content: /* @__PURE__ */ t(
|
|
18112
18111
|
F,
|
|
18113
18112
|
{
|
|
18114
|
-
content:
|
|
18113
|
+
content: T(
|
|
18115
18114
|
e.notifications_overview.widget_overview_instruction,
|
|
18116
18115
|
/* @__PURE__ */ t("b", { children: e.notifications_overview.widget_overview_instruction_bold_1 }),
|
|
18117
18116
|
/* @__PURE__ */ t("b", { children: e.notifications_overview.widget_overview_instruction_bold_2 })
|
|
@@ -18138,7 +18137,7 @@ const S1 = ({
|
|
|
18138
18137
|
{
|
|
18139
18138
|
items: [
|
|
18140
18139
|
e.notifications_overview.managing_notifications_list_1,
|
|
18141
|
-
|
|
18140
|
+
T(
|
|
18142
18141
|
e.notifications_overview.managing_notifications_list_2,
|
|
18143
18142
|
/* @__PURE__ */ t("b", { children: e.notifications_overview.managing_notifications_list_2_bold_1 })
|
|
18144
18143
|
)
|
|
@@ -18165,19 +18164,19 @@ const S1 = ({
|
|
|
18165
18164
|
X,
|
|
18166
18165
|
{
|
|
18167
18166
|
items: [
|
|
18168
|
-
|
|
18167
|
+
T(
|
|
18169
18168
|
e.notifications_overview.notification_work_list_1,
|
|
18170
18169
|
/* @__PURE__ */ t("b", { children: e.notifications_overview.notification_work_list_1_bold })
|
|
18171
18170
|
),
|
|
18172
|
-
|
|
18171
|
+
T(
|
|
18173
18172
|
e.notifications_overview.notification_work_list_2,
|
|
18174
18173
|
/* @__PURE__ */ t("b", { children: e.notifications_overview.notification_work_list_2_bold })
|
|
18175
18174
|
),
|
|
18176
|
-
|
|
18175
|
+
T(
|
|
18177
18176
|
e.notifications_overview.notification_work_list_3,
|
|
18178
18177
|
/* @__PURE__ */ t("b", { children: e.notifications_overview.notification_work_list_3_bold })
|
|
18179
18178
|
),
|
|
18180
|
-
|
|
18179
|
+
T(
|
|
18181
18180
|
e.notifications_overview.notification_work_list_4,
|
|
18182
18181
|
/* @__PURE__ */ t("b", { children: e.notifications_overview.notification_work_list_4_bold })
|
|
18183
18182
|
)
|
|
@@ -18198,7 +18197,7 @@ const S1 = ({
|
|
|
18198
18197
|
{
|
|
18199
18198
|
items: [
|
|
18200
18199
|
e.notifications_overview.verify_email_list_1,
|
|
18201
|
-
|
|
18200
|
+
T(
|
|
18202
18201
|
e.notifications_overview.verify_email_list_2,
|
|
18203
18202
|
/* @__PURE__ */ t("b", { children: e.notifications_overview.verify_email_list_2_bold })
|
|
18204
18203
|
)
|
|
@@ -18220,7 +18219,7 @@ const S1 = ({
|
|
|
18220
18219
|
content: /* @__PURE__ */ t(
|
|
18221
18220
|
F,
|
|
18222
18221
|
{
|
|
18223
|
-
content:
|
|
18222
|
+
content: T(
|
|
18224
18223
|
n.overview_description,
|
|
18225
18224
|
/* @__PURE__ */ t("b", { children: n.recurring_transactions })
|
|
18226
18225
|
)
|
|
@@ -18237,7 +18236,7 @@ const S1 = ({
|
|
|
18237
18236
|
content: /* @__PURE__ */ t(
|
|
18238
18237
|
F,
|
|
18239
18238
|
{
|
|
18240
|
-
content:
|
|
18239
|
+
content: T(
|
|
18241
18240
|
n.calendar_dec,
|
|
18242
18241
|
/* @__PURE__ */ t("b", { children: n.calendar_bold })
|
|
18243
18242
|
)
|
|
@@ -18253,7 +18252,7 @@ const S1 = ({
|
|
|
18253
18252
|
/* @__PURE__ */ t(
|
|
18254
18253
|
F,
|
|
18255
18254
|
{
|
|
18256
|
-
content:
|
|
18255
|
+
content: T(
|
|
18257
18256
|
n.edit_recurring_transaction_dec_1,
|
|
18258
18257
|
/* @__PURE__ */ t("b", { children: n.edit_recurring_transaction_dec_bold_1 }),
|
|
18259
18258
|
/* @__PURE__ */ t("b", { children: n.edit_recurring_transaction_dec_bold_2 }),
|
|
@@ -18319,7 +18318,7 @@ const S1 = ({
|
|
|
18319
18318
|
items: [
|
|
18320
18319
|
i.widget_overview_instruction_1,
|
|
18321
18320
|
i.widget_overview_instruction_2,
|
|
18322
|
-
|
|
18321
|
+
T(
|
|
18323
18322
|
i.widget_overview_instruction_3,
|
|
18324
18323
|
/* @__PURE__ */ t("b", { children: i.widget_overview_instruction_3_bold })
|
|
18325
18324
|
)
|
|
@@ -18343,15 +18342,15 @@ const S1 = ({
|
|
|
18343
18342
|
X,
|
|
18344
18343
|
{
|
|
18345
18344
|
items: [
|
|
18346
|
-
|
|
18345
|
+
T(
|
|
18347
18346
|
i.date_range_section_list_1,
|
|
18348
18347
|
/* @__PURE__ */ t("b", { children: i.date_range_section_list_1_bold })
|
|
18349
18348
|
),
|
|
18350
|
-
|
|
18349
|
+
T(
|
|
18351
18350
|
i.date_range_section_list_2,
|
|
18352
18351
|
/* @__PURE__ */ t("b", { children: i.date_range_section_list_2_bold })
|
|
18353
18352
|
),
|
|
18354
|
-
|
|
18353
|
+
T(
|
|
18355
18354
|
i.date_range_section_list_3,
|
|
18356
18355
|
/* @__PURE__ */ t("b", { children: i.date_range_section_list_3_bold })
|
|
18357
18356
|
)
|
|
@@ -18372,12 +18371,12 @@ const S1 = ({
|
|
|
18372
18371
|
X,
|
|
18373
18372
|
{
|
|
18374
18373
|
items: [
|
|
18375
|
-
|
|
18374
|
+
T(
|
|
18376
18375
|
i.spending_categories_list_1,
|
|
18377
18376
|
/* @__PURE__ */ t("b", { children: i.spending_categories_list_1_bold_1 }),
|
|
18378
18377
|
/* @__PURE__ */ t("b", { children: i.spending_categories_list_1_bold_2 })
|
|
18379
18378
|
),
|
|
18380
|
-
|
|
18379
|
+
T(
|
|
18381
18380
|
i.spending_categories_list_2,
|
|
18382
18381
|
/* @__PURE__ */ t("b", { children: i.spending_categories_list_2_bold })
|
|
18383
18382
|
),
|
|
@@ -18421,11 +18420,11 @@ const S1 = ({
|
|
|
18421
18420
|
e.transactions_widget_overview.widget_overview_transaction_details,
|
|
18422
18421
|
e.transactions_widget_overview.widget_overview_filter_accounts,
|
|
18423
18422
|
e.transactions_widget_overview.widget_overview_search_transactions,
|
|
18424
|
-
|
|
18423
|
+
T(
|
|
18425
18424
|
e.transactions_widget_overview.widget_overview_add_transaction_text,
|
|
18426
18425
|
/* @__PURE__ */ t("b", { children: e.transactions_widget_overview.widget_overview_add_transaction_bold })
|
|
18427
18426
|
),
|
|
18428
|
-
|
|
18427
|
+
T(
|
|
18429
18428
|
e.transactions_widget_overview.widget_overview_export_csv_text,
|
|
18430
18429
|
/* @__PURE__ */ t("b", { children: e.transactions_widget_overview.widget_overview_export_csv_bold })
|
|
18431
18430
|
)
|
|
@@ -18519,7 +18518,7 @@ const S1 = ({
|
|
|
18519
18518
|
X,
|
|
18520
18519
|
{
|
|
18521
18520
|
items: [
|
|
18522
|
-
|
|
18521
|
+
T(
|
|
18523
18522
|
e.transactions_widget_overview.categorizing_transactions_select_category,
|
|
18524
18523
|
/* @__PURE__ */ t("b", { children: e.transactions_widget_overview.categorizing_transactions_category_bold })
|
|
18525
18524
|
),
|
|
@@ -18558,7 +18557,7 @@ const S1 = ({
|
|
|
18558
18557
|
{
|
|
18559
18558
|
items: [
|
|
18560
18559
|
e.transactions_widget_overview.transaction_rules_recategorize,
|
|
18561
|
-
|
|
18560
|
+
T(
|
|
18562
18561
|
e.transactions_widget_overview.transaction_rules_apply_to_all_text,
|
|
18563
18562
|
/* @__PURE__ */ t("b", { children: e.transactions_widget_overview.transaction_rules_apply_to_all_bold })
|
|
18564
18563
|
)
|
|
@@ -18577,12 +18576,12 @@ const S1 = ({
|
|
|
18577
18576
|
X,
|
|
18578
18577
|
{
|
|
18579
18578
|
items: [
|
|
18580
|
-
|
|
18579
|
+
T(
|
|
18581
18580
|
e.transactions_widget_overview.transaction_rules_go_to_settings,
|
|
18582
18581
|
/* @__PURE__ */ t("b", { children: e.transactions_widget_overview.transaction_rules_go_to_settings_bold })
|
|
18583
18582
|
),
|
|
18584
18583
|
e.transactions_widget_overview.transaction_rules_edit_payee_category,
|
|
18585
|
-
|
|
18584
|
+
T(
|
|
18586
18585
|
e.transactions_widget_overview.transaction_rules_save_text,
|
|
18587
18586
|
/* @__PURE__ */ t("b", { children: e.transactions_widget_overview.transaction_rules_save_bold })
|
|
18588
18587
|
)
|
|
@@ -18601,12 +18600,12 @@ const S1 = ({
|
|
|
18601
18600
|
X,
|
|
18602
18601
|
{
|
|
18603
18602
|
items: [
|
|
18604
|
-
|
|
18603
|
+
T(
|
|
18605
18604
|
e.transactions_widget_overview.transaction_rules_delete_go_to_settings,
|
|
18606
18605
|
/* @__PURE__ */ t("b", { children: e.transactions_widget_overview.transaction_rules_delete_go_to_settings_bold })
|
|
18607
18606
|
),
|
|
18608
18607
|
e.transactions_widget_overview.transaction_rules_select_rule_delete_icon,
|
|
18609
|
-
|
|
18608
|
+
T(
|
|
18610
18609
|
e.transactions_widget_overview.transaction_rules_delete_text,
|
|
18611
18610
|
/* @__PURE__ */ t("b", { children: e.transactions_widget_overview.transaction_rules_delete_bold })
|
|
18612
18611
|
)
|
|
@@ -18637,12 +18636,12 @@ const S1 = ({
|
|
|
18637
18636
|
{
|
|
18638
18637
|
items: [
|
|
18639
18638
|
e.transactions_widget_overview.split_transactions_select_transaction,
|
|
18640
|
-
|
|
18639
|
+
T(
|
|
18641
18640
|
e.transactions_widget_overview.split_transactions_select_split_transaction,
|
|
18642
18641
|
/* @__PURE__ */ t("b", { children: e.transactions_widget_overview.split_transactions_select_split_transaction_bold })
|
|
18643
18642
|
),
|
|
18644
18643
|
e.transactions_widget_overview.split_transactions_add_splits,
|
|
18645
|
-
|
|
18644
|
+
T(
|
|
18646
18645
|
e.transactions_widget_overview.split_transactions_save_text,
|
|
18647
18646
|
/* @__PURE__ */ t("b", { children: e.transactions_widget_overview.split_transactions_save_bold })
|
|
18648
18647
|
)
|
|
@@ -18662,11 +18661,11 @@ const S1 = ({
|
|
|
18662
18661
|
{
|
|
18663
18662
|
items: [
|
|
18664
18663
|
e.transactions_widget_overview.split_transactions_delete_select_split_transaction,
|
|
18665
|
-
|
|
18664
|
+
T(
|
|
18666
18665
|
e.transactions_widget_overview.split_transactions_delete_split_text,
|
|
18667
18666
|
/* @__PURE__ */ t("b", { children: e.transactions_widget_overview.split_transactions_delete_split_bold })
|
|
18668
18667
|
),
|
|
18669
|
-
|
|
18668
|
+
T(
|
|
18670
18669
|
e.transactions_widget_overview.split_transactions_delete_text,
|
|
18671
18670
|
/* @__PURE__ */ t("b", { children: e.transactions_widget_overview.split_transactions_delete_bold })
|
|
18672
18671
|
)
|
|
@@ -18686,16 +18685,16 @@ const S1 = ({
|
|
|
18686
18685
|
X,
|
|
18687
18686
|
{
|
|
18688
18687
|
items: [
|
|
18689
|
-
|
|
18688
|
+
T(
|
|
18690
18689
|
e.duplicate_transactions.duplicate_accounts,
|
|
18691
18690
|
/* @__PURE__ */ t("b", { children: e.duplicate_transactions.duplicate_accounts_bold }),
|
|
18692
18691
|
/* @__PURE__ */ t("b", { children: e.duplicate_transactions.account_details_mark_as_duplicate_bold })
|
|
18693
18692
|
),
|
|
18694
|
-
|
|
18693
|
+
T(
|
|
18695
18694
|
e.duplicate_transactions.both_debit_credit_sides,
|
|
18696
18695
|
/* @__PURE__ */ t("b", { children: e.duplicate_transactions.both_debit_credit_sides_bold })
|
|
18697
18696
|
),
|
|
18698
|
-
|
|
18697
|
+
T(
|
|
18699
18698
|
e.duplicate_transactions.data_issues_institution,
|
|
18700
18699
|
/* @__PURE__ */ t("b", { children: e.duplicate_transactions.data_issues_institution_bold })
|
|
18701
18700
|
)
|
|
@@ -18709,15 +18708,15 @@ const S1 = ({
|
|
|
18709
18708
|
X,
|
|
18710
18709
|
{
|
|
18711
18710
|
items: [
|
|
18712
|
-
|
|
18711
|
+
T(
|
|
18713
18712
|
e.missing_transactions.processing_time,
|
|
18714
18713
|
/* @__PURE__ */ t("b", { children: e.missing_transactions.processing_time_bold })
|
|
18715
18714
|
),
|
|
18716
|
-
|
|
18715
|
+
T(
|
|
18717
18716
|
e.missing_transactions.new_accounts,
|
|
18718
18717
|
/* @__PURE__ */ t("b", { children: e.missing_transactions.new_accounts_bold })
|
|
18719
18718
|
),
|
|
18720
|
-
|
|
18719
|
+
T(
|
|
18721
18720
|
e.missing_transactions.infrequent_logins,
|
|
18722
18721
|
/* @__PURE__ */ t("b", { children: e.missing_transactions.infrequent_logins_bold })
|
|
18723
18722
|
)
|
|
@@ -18732,7 +18731,7 @@ const S1 = ({
|
|
|
18732
18731
|
X,
|
|
18733
18732
|
{
|
|
18734
18733
|
items: [
|
|
18735
|
-
|
|
18734
|
+
T(
|
|
18736
18735
|
e.pending_transactions.pending_transactions_details,
|
|
18737
18736
|
/* @__PURE__ */ t("b", { children: "date, description, or amount" })
|
|
18738
18737
|
),
|
|
@@ -18749,7 +18748,7 @@ const S1 = ({
|
|
|
18749
18748
|
/* @__PURE__ */ t(
|
|
18750
18749
|
F,
|
|
18751
18750
|
{
|
|
18752
|
-
content:
|
|
18751
|
+
content: T(
|
|
18753
18752
|
e.export_transactions.export_transactions_title,
|
|
18754
18753
|
/* @__PURE__ */ t("b", { children: "CSV file" })
|
|
18755
18754
|
)
|
|
@@ -18760,11 +18759,11 @@ const S1 = ({
|
|
|
18760
18759
|
X,
|
|
18761
18760
|
{
|
|
18762
18761
|
items: [
|
|
18763
|
-
|
|
18762
|
+
T(
|
|
18764
18763
|
e.export_transactions.export_filter_transactions,
|
|
18765
18764
|
/* @__PURE__ */ t("b", { children: "Filter accounts" })
|
|
18766
18765
|
),
|
|
18767
|
-
|
|
18766
|
+
T(
|
|
18768
18767
|
e.export_transactions.export_csv,
|
|
18769
18768
|
/* @__PURE__ */ t("b", { children: "Export CSV" })
|
|
18770
18769
|
),
|
|
@@ -18791,15 +18790,15 @@ const S1 = ({
|
|
|
18791
18790
|
X,
|
|
18792
18791
|
{
|
|
18793
18792
|
items: [
|
|
18794
|
-
|
|
18793
|
+
T(
|
|
18795
18794
|
e.trends_widget_overview.widget_overview_y_axis_instruction,
|
|
18796
18795
|
/* @__PURE__ */ t("b", { children: e.trends_widget_overview.widget_overview_y_axis_bold })
|
|
18797
18796
|
),
|
|
18798
|
-
|
|
18797
|
+
T(
|
|
18799
18798
|
e.trends_widget_overview.widget_overview_x_axis_instruction,
|
|
18800
18799
|
/* @__PURE__ */ t("b", { children: e.trends_widget_overview.widget_overview_x_axis_bold })
|
|
18801
18800
|
),
|
|
18802
|
-
|
|
18801
|
+
T(
|
|
18803
18802
|
e.trends_widget_overview.widget_overview_colored_sections_instruction,
|
|
18804
18803
|
/* @__PURE__ */ t("b", { children: e.trends_widget_overview.widget_overview_colored_sections_bold })
|
|
18805
18804
|
)
|
|
@@ -18867,19 +18866,19 @@ const S1 = ({
|
|
|
18867
18866
|
X,
|
|
18868
18867
|
{
|
|
18869
18868
|
items: [
|
|
18870
|
-
|
|
18869
|
+
T(
|
|
18871
18870
|
i.insights_work_list_1,
|
|
18872
18871
|
/* @__PURE__ */ t("b", { children: i.insights_work_list_1_bold })
|
|
18873
18872
|
),
|
|
18874
|
-
|
|
18873
|
+
T(
|
|
18875
18874
|
i.insights_work_list_2,
|
|
18876
18875
|
/* @__PURE__ */ t("b", { children: i.insights_work_list_2_bold })
|
|
18877
18876
|
),
|
|
18878
|
-
|
|
18877
|
+
T(
|
|
18879
18878
|
i.insights_work_list_3,
|
|
18880
18879
|
/* @__PURE__ */ t("b", { children: i.insights_work_list_3_bold })
|
|
18881
18880
|
),
|
|
18882
|
-
|
|
18881
|
+
T(
|
|
18883
18882
|
i.insights_work_list_4,
|
|
18884
18883
|
/* @__PURE__ */ t("b", { children: i.insights_work_list_4_bold })
|
|
18885
18884
|
)
|
|
@@ -18901,7 +18900,7 @@ const S1 = ({
|
|
|
18901
18900
|
/* @__PURE__ */ t(
|
|
18902
18901
|
F,
|
|
18903
18902
|
{
|
|
18904
|
-
content:
|
|
18903
|
+
content: T(
|
|
18905
18904
|
i.dashboard_insights_content_1,
|
|
18906
18905
|
/* @__PURE__ */ t("b", { children: i.dashboard_insights_content_1_bold_1 }),
|
|
18907
18906
|
/* @__PURE__ */ t("b", { children: i.dashboard_insights_content_1_bold_2 }),
|
|
@@ -18923,7 +18922,7 @@ const S1 = ({
|
|
|
18923
18922
|
/* @__PURE__ */ t(
|
|
18924
18923
|
F,
|
|
18925
18924
|
{
|
|
18926
|
-
content:
|
|
18925
|
+
content: T(
|
|
18927
18926
|
i.full_feed_content,
|
|
18928
18927
|
/* @__PURE__ */ t("b", { children: i.full_feed_content_bold_1 }),
|
|
18929
18928
|
/* @__PURE__ */ t("b", { children: i.full_feed_content_bold_2 })
|
|
@@ -18934,15 +18933,15 @@ const S1 = ({
|
|
|
18934
18933
|
X,
|
|
18935
18934
|
{
|
|
18936
18935
|
items: [
|
|
18937
|
-
|
|
18936
|
+
T(
|
|
18938
18937
|
i.full_feed_list_1,
|
|
18939
18938
|
/* @__PURE__ */ t("b", { children: i.full_feed_list_1_bold })
|
|
18940
18939
|
),
|
|
18941
|
-
|
|
18940
|
+
T(
|
|
18942
18941
|
i.full_feed_list_2,
|
|
18943
18942
|
/* @__PURE__ */ t("b", { children: i.full_feed_list_2_bold })
|
|
18944
18943
|
),
|
|
18945
|
-
|
|
18944
|
+
T(
|
|
18946
18945
|
i.full_feed_list_3,
|
|
18947
18946
|
/* @__PURE__ */ t("b", { children: i.full_feed_list_3_bold })
|
|
18948
18947
|
)
|
|
@@ -18963,7 +18962,7 @@ const S1 = ({
|
|
|
18963
18962
|
/* @__PURE__ */ t(
|
|
18964
18963
|
F,
|
|
18965
18964
|
{
|
|
18966
|
-
content:
|
|
18965
|
+
content: T(
|
|
18967
18966
|
i.hide_insights_content_1,
|
|
18968
18967
|
/* @__PURE__ */ t("b", { children: i.hide_insights_content_1_bold })
|
|
18969
18968
|
)
|
|
@@ -19117,13 +19116,13 @@ const S1 = ({
|
|
|
19117
19116
|
) })
|
|
19118
19117
|
] }),
|
|
19119
19118
|
e.message && /* @__PURE__ */ t(
|
|
19120
|
-
|
|
19119
|
+
Si,
|
|
19121
19120
|
{
|
|
19122
19121
|
anchorOrigin: { vertical: "bottom", horizontal: "center" },
|
|
19123
19122
|
autoHideDuration: 3500,
|
|
19124
19123
|
onClose: () => d(""),
|
|
19125
19124
|
open: !!e.message && e.severity === "error" && !o,
|
|
19126
|
-
children: /* @__PURE__ */ t(
|
|
19125
|
+
children: /* @__PURE__ */ t(Sn, { onClose: () => d(""), severity: e.severity, variant: "filled", children: e.message })
|
|
19127
19126
|
}
|
|
19128
19127
|
)
|
|
19129
19128
|
]
|
|
@@ -19216,11 +19215,11 @@ const S1 = ({
|
|
|
19216
19215
|
d(Pr), _(Aa), i();
|
|
19217
19216
|
}, C = (E) => {
|
|
19218
19217
|
const {
|
|
19219
|
-
target: { name: y, value:
|
|
19218
|
+
target: { name: y, value: S }
|
|
19220
19219
|
} = E;
|
|
19221
19220
|
_((A) => ({
|
|
19222
19221
|
...A,
|
|
19223
|
-
[y]:
|
|
19222
|
+
[y]: S
|
|
19224
19223
|
}));
|
|
19225
19224
|
};
|
|
19226
19225
|
return /* @__PURE__ */ l(
|
|
@@ -19231,9 +19230,9 @@ const S1 = ({
|
|
|
19231
19230
|
onPrimaryAction: () => {
|
|
19232
19231
|
const E = {};
|
|
19233
19232
|
let y = !0;
|
|
19234
|
-
h.forEach(({ label:
|
|
19233
|
+
h.forEach(({ label: S, name: A, required: w }) => {
|
|
19235
19234
|
const v = u[A];
|
|
19236
|
-
w && !v && (E[A] = `${
|
|
19235
|
+
w && !v && (E[A] = `${S} ${e.request_support_required_message}`, y = !1), (A === "institutionWebsite" || A === "institutionLoginPage") && v && !/(.+)\.(.{2,})/g.test(v) && (E[A] = e.request_support_valid_url_message, y = !1);
|
|
19237
19236
|
}), d(E), y && (a(u), _(Aa));
|
|
19238
19237
|
},
|
|
19239
19238
|
secondaryColor: "primary",
|
|
@@ -19264,13 +19263,13 @@ const S1 = ({
|
|
|
19264
19263
|
y
|
|
19265
19264
|
)) }),
|
|
19266
19265
|
o.message && /* @__PURE__ */ t(
|
|
19267
|
-
|
|
19266
|
+
Si,
|
|
19268
19267
|
{
|
|
19269
19268
|
anchorOrigin: { vertical: "bottom", horizontal: "center" },
|
|
19270
19269
|
autoHideDuration: 3500,
|
|
19271
19270
|
onClose: () => s(""),
|
|
19272
19271
|
open: !!o.message && o.severity === "error" && !r,
|
|
19273
|
-
children: /* @__PURE__ */ t(
|
|
19272
|
+
children: /* @__PURE__ */ t(Sn, { onClose: () => s(""), severity: o.severity, variant: "filled", children: o.message })
|
|
19274
19273
|
}
|
|
19275
19274
|
)
|
|
19276
19275
|
]
|
|
@@ -19401,7 +19400,7 @@ const S1 = ({
|
|
|
19401
19400
|
fontWeight: 600
|
|
19402
19401
|
},
|
|
19403
19402
|
variant: "Body",
|
|
19404
|
-
children:
|
|
19403
|
+
children: T(e.request_support_institution_message_title, n)
|
|
19405
19404
|
}
|
|
19406
19405
|
),
|
|
19407
19406
|
/* @__PURE__ */ t(
|
|
@@ -19413,7 +19412,7 @@ const S1 = ({
|
|
|
19413
19412
|
mt: 2
|
|
19414
19413
|
},
|
|
19415
19414
|
variant: "ParagraphSmall",
|
|
19416
|
-
children:
|
|
19415
|
+
children: T(e.request_support_institution_message, n)
|
|
19417
19416
|
}
|
|
19418
19417
|
)
|
|
19419
19418
|
]
|
|
@@ -19448,7 +19447,7 @@ const S1 = ({
|
|
|
19448
19447
|
isOpen: !1,
|
|
19449
19448
|
topic: "",
|
|
19450
19449
|
type: void 0
|
|
19451
|
-
}),
|
|
19450
|
+
}), S = hp.map((D) => ({
|
|
19452
19451
|
...D,
|
|
19453
19452
|
title: e.help_by_category_list[D.guid].label,
|
|
19454
19453
|
topics: D.topics.map(({ type: k }, O) => ({
|
|
@@ -19523,7 +19522,7 @@ const S1 = ({
|
|
|
19523
19522
|
/* @__PURE__ */ t(
|
|
19524
19523
|
oC,
|
|
19525
19524
|
{
|
|
19526
|
-
helpByCategory:
|
|
19525
|
+
helpByCategory: S,
|
|
19527
19526
|
onClick: R
|
|
19528
19527
|
}
|
|
19529
19528
|
),
|
|
@@ -19637,20 +19636,20 @@ const S1 = ({
|
|
|
19637
19636
|
}), mC = I(({ selectedTab: e }) => {
|
|
19638
19637
|
const { alert: n, setAlert: i } = pt();
|
|
19639
19638
|
return /* @__PURE__ */ l(q, { children: [
|
|
19640
|
-
e === Vn.Profile && /* @__PURE__ */ t(
|
|
19639
|
+
e === Vn.Profile && /* @__PURE__ */ t(S1, {}),
|
|
19641
19640
|
e === Vn.Devices && /* @__PURE__ */ t(v1, {}),
|
|
19642
19641
|
e === Vn.Notifications && /* @__PURE__ */ t(No, {}),
|
|
19643
19642
|
e === Vn.TransactionRules && /* @__PURE__ */ t(vc, {}),
|
|
19644
19643
|
e === Vn.Help && /* @__PURE__ */ t(Dc, {}),
|
|
19645
19644
|
/* @__PURE__ */ t(
|
|
19646
|
-
|
|
19645
|
+
Si,
|
|
19647
19646
|
{
|
|
19648
19647
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
19649
19648
|
autoHideDuration: 3500,
|
|
19650
19649
|
onClose: () => i(""),
|
|
19651
19650
|
open: !!n.message,
|
|
19652
19651
|
children: /* @__PURE__ */ t(
|
|
19653
|
-
|
|
19652
|
+
Sn,
|
|
19654
19653
|
{
|
|
19655
19654
|
onClose: () => {
|
|
19656
19655
|
i("");
|
|
@@ -19689,7 +19688,7 @@ const RE = I(({ onBackClick: e, sx: n }) => {
|
|
|
19689
19688
|
/* @__PURE__ */ t(
|
|
19690
19689
|
qt,
|
|
19691
19690
|
{
|
|
19692
|
-
onChange: (y,
|
|
19691
|
+
onChange: (y, S) => E(S),
|
|
19693
19692
|
sx: { bgcolor: "background.paper" },
|
|
19694
19693
|
textColor: "primary",
|
|
19695
19694
|
value: f,
|
|
@@ -19952,7 +19951,7 @@ class fC {
|
|
|
19952
19951
|
};
|
|
19953
19952
|
};
|
|
19954
19953
|
get shouldDisableNextDate() {
|
|
19955
|
-
const n = Li(this.displayedDate), i = Li(
|
|
19954
|
+
const n = Li(this.displayedDate), i = Li(Tt(/* @__PURE__ */ new Date(), 1));
|
|
19956
19955
|
return n === i;
|
|
19957
19956
|
}
|
|
19958
19957
|
get shouldDisablePrevDate() {
|
|
@@ -20070,11 +20069,11 @@ const Ia = ({
|
|
|
20070
20069
|
(a) => a.member_guid === i.guid && i.successfully_aggregated_at && a.guid !== n.guid
|
|
20071
20070
|
);
|
|
20072
20071
|
}, EC = () => {
|
|
20073
|
-
const [e, n] = g.useState(!1), [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState({}), { selectedAccount: d } = Ht(), { mergeAccounts: u, updateAccount: _ } = Ee(), { accounts: h } = x(), m = yC(), { onEvent: C } = j(), { modifyTransactionByAccountGuid: f } = Ne(), E = async (
|
|
20072
|
+
const [e, n] = g.useState(!1), [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState({}), { selectedAccount: d } = Ht(), { mergeAccounts: u, updateAccount: _ } = Ee(), { accounts: h } = x(), m = yC(), { onEvent: C } = j(), { modifyTransactionByAccountGuid: f } = Ne(), E = async (S) => {
|
|
20074
20073
|
await _({
|
|
20075
20074
|
...d,
|
|
20076
|
-
...
|
|
20077
|
-
}), "is_closed" in
|
|
20075
|
+
...S
|
|
20076
|
+
}), "is_closed" in S && S.is_closed !== d.is_closed && f(d.guid, { accountIsClosed: S.is_closed });
|
|
20078
20077
|
}, y = () => {
|
|
20079
20078
|
u([d.guid, s.guid]).finally(
|
|
20080
20079
|
() => a(!1)
|
|
@@ -20132,7 +20131,7 @@ const Ia = ({
|
|
|
20132
20131
|
n(!1);
|
|
20133
20132
|
},
|
|
20134
20133
|
onPrimaryAction: () => E({ is_closed: !d.is_closed }),
|
|
20135
|
-
children:
|
|
20134
|
+
children: T(
|
|
20136
20135
|
d.is_closed ? h.this_will_resume_updating_the_balance : h.this_will_set_the_balance_of_your_account,
|
|
20137
20136
|
d.name
|
|
20138
20137
|
)
|
|
@@ -20145,20 +20144,20 @@ const Ia = ({
|
|
|
20145
20144
|
isOpen: i,
|
|
20146
20145
|
onClose: () => a(!1),
|
|
20147
20146
|
title: h.mark_as_duplicate,
|
|
20148
|
-
children: /* @__PURE__ */ t(ie, { children: m.map((
|
|
20149
|
-
const A = m.indexOf(
|
|
20147
|
+
children: /* @__PURE__ */ t(ie, { children: m.map((S) => {
|
|
20148
|
+
const A = m.indexOf(S) === m.length - 1;
|
|
20150
20149
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
20151
20150
|
/* @__PURE__ */ t(
|
|
20152
20151
|
bi,
|
|
20153
20152
|
{
|
|
20154
|
-
account:
|
|
20153
|
+
account: S,
|
|
20155
20154
|
onRowClick: () => {
|
|
20156
|
-
r(!0), c(
|
|
20155
|
+
r(!0), c(S);
|
|
20157
20156
|
}
|
|
20158
20157
|
}
|
|
20159
20158
|
),
|
|
20160
20159
|
/* @__PURE__ */ t(ie, { sx: { ml: A ? 0 : 24 } })
|
|
20161
|
-
] },
|
|
20160
|
+
] }, S.guid);
|
|
20162
20161
|
}) })
|
|
20163
20162
|
}
|
|
20164
20163
|
),
|
|
@@ -20173,7 +20172,7 @@ const Ia = ({
|
|
|
20173
20172
|
onClose: () => r(!1),
|
|
20174
20173
|
onPrimaryAction: y,
|
|
20175
20174
|
children: [
|
|
20176
|
-
|
|
20175
|
+
T(
|
|
20177
20176
|
h.this_means_accounts_will_be_merged,
|
|
20178
20177
|
d.name,
|
|
20179
20178
|
s.name
|
|
@@ -20183,13 +20182,13 @@ const Ia = ({
|
|
|
20183
20182
|
}
|
|
20184
20183
|
)
|
|
20185
20184
|
] });
|
|
20186
|
-
},
|
|
20185
|
+
}, SC = I(EC), Rc = (e, n) => {
|
|
20187
20186
|
const { connection_messages: i } = n;
|
|
20188
20187
|
switch (e.connection_status) {
|
|
20189
20188
|
case _t.CHALLENGED:
|
|
20190
20189
|
return {
|
|
20191
20190
|
cta: i.challenged_cta,
|
|
20192
|
-
main:
|
|
20191
|
+
main: T(
|
|
20193
20192
|
i.challenged_connection_description,
|
|
20194
20193
|
e.name
|
|
20195
20194
|
),
|
|
@@ -20210,7 +20209,7 @@ const Ia = ({
|
|
|
20210
20209
|
};
|
|
20211
20210
|
case _t.DELAYED:
|
|
20212
20211
|
return {
|
|
20213
|
-
main:
|
|
20212
|
+
main: T(
|
|
20214
20213
|
i.delayed_connection_description,
|
|
20215
20214
|
e.name
|
|
20216
20215
|
),
|
|
@@ -20220,7 +20219,7 @@ const Ia = ({
|
|
|
20220
20219
|
case _t.DENIED:
|
|
20221
20220
|
return {
|
|
20222
20221
|
cta: i.denied_cta,
|
|
20223
|
-
main:
|
|
20222
|
+
main: T(
|
|
20224
20223
|
i.denied_connection_description,
|
|
20225
20224
|
e.name
|
|
20226
20225
|
),
|
|
@@ -20235,7 +20234,7 @@ const Ia = ({
|
|
|
20235
20234
|
};
|
|
20236
20235
|
case _t.DISCONNECTED:
|
|
20237
20236
|
return {
|
|
20238
|
-
main:
|
|
20237
|
+
main: T(
|
|
20239
20238
|
i.disconnected_connection_description,
|
|
20240
20239
|
e.name
|
|
20241
20240
|
),
|
|
@@ -20257,7 +20256,7 @@ const Ia = ({
|
|
|
20257
20256
|
};
|
|
20258
20257
|
case _t.FAILED:
|
|
20259
20258
|
return {
|
|
20260
|
-
main:
|
|
20259
|
+
main: T(
|
|
20261
20260
|
i.failed_connection_description,
|
|
20262
20261
|
e.name
|
|
20263
20262
|
),
|
|
@@ -20267,7 +20266,7 @@ const Ia = ({
|
|
|
20267
20266
|
case _t.IMPAIRED:
|
|
20268
20267
|
return {
|
|
20269
20268
|
cta: i.impaired_cta,
|
|
20270
|
-
main:
|
|
20269
|
+
main: T(
|
|
20271
20270
|
i.impaired_connection_description,
|
|
20272
20271
|
e.name
|
|
20273
20272
|
),
|
|
@@ -20276,7 +20275,7 @@ const Ia = ({
|
|
|
20276
20275
|
};
|
|
20277
20276
|
case _t.IMPEDED:
|
|
20278
20277
|
return {
|
|
20279
|
-
main:
|
|
20278
|
+
main: T(
|
|
20280
20279
|
i.impeded_connection_description,
|
|
20281
20280
|
e.name,
|
|
20282
20281
|
e.name
|
|
@@ -20287,7 +20286,7 @@ const Ia = ({
|
|
|
20287
20286
|
case _t.IMPORTED:
|
|
20288
20287
|
return {
|
|
20289
20288
|
cta: i.imported_cta,
|
|
20290
|
-
main:
|
|
20289
|
+
main: T(
|
|
20291
20290
|
i.imported_connection_description,
|
|
20292
20291
|
e.name
|
|
20293
20292
|
),
|
|
@@ -20297,7 +20296,7 @@ const Ia = ({
|
|
|
20297
20296
|
case _t.LOCKED:
|
|
20298
20297
|
return {
|
|
20299
20298
|
cta: i.locked_cta,
|
|
20300
|
-
main:
|
|
20299
|
+
main: T(
|
|
20301
20300
|
i.locked_connection_description,
|
|
20302
20301
|
e.name
|
|
20303
20302
|
),
|
|
@@ -20322,7 +20321,7 @@ const Ia = ({
|
|
|
20322
20321
|
const a = () => {
|
|
20323
20322
|
const o = e.successfully_aggregated_at ? Fe(e.successfully_aggregated_at) : void 0, r = o && se(o, oe.TIME_STAMP_HOUR_MINUTE);
|
|
20324
20323
|
if (r)
|
|
20325
|
-
return Za(o) ?
|
|
20324
|
+
return Za(o) ? T(n.last_updated_at, n.today, r) : Ad(o) ? T(n.last_updated_at, n.yesterday, r) : T(
|
|
20326
20325
|
n.last_updated_at,
|
|
20327
20326
|
se(o, oe.MONTH_DAY_YEAR),
|
|
20328
20327
|
r
|
|
@@ -20341,10 +20340,10 @@ const Ia = ({
|
|
|
20341
20340
|
gridRow: 1,
|
|
20342
20341
|
gridColumn: 1,
|
|
20343
20342
|
zIndex: 2
|
|
20344
|
-
},
|
|
20343
|
+
}, TC = () => {
|
|
20345
20344
|
const [e, n] = g.useState(!1), {
|
|
20346
20345
|
palette: { mode: i }
|
|
20347
|
-
} = pe(), { selectedMember: a } = Ht(), { accounts: o, connect: r } = x(), s = Rc(a, r), c =
|
|
20346
|
+
} = pe(), { selectedMember: a } = Ht(), { accounts: o, connect: r } = x(), s = Rc(a, r), c = Ts.includes(a.connection_status) ? {
|
|
20348
20347
|
color: "error.main",
|
|
20349
20348
|
ctaCopy: s.cta ?? "",
|
|
20350
20349
|
icon: /* @__PURE__ */ t(aa, { sx: { ...xa } }),
|
|
@@ -20352,7 +20351,7 @@ const Ia = ({
|
|
|
20352
20351
|
secondaryMessage: `${s.title}.`
|
|
20353
20352
|
} : {
|
|
20354
20353
|
color: "success.main",
|
|
20355
|
-
icon: /* @__PURE__ */ t(
|
|
20354
|
+
icon: /* @__PURE__ */ t(Sd, { sx: { ...xa } }),
|
|
20356
20355
|
mainMessage: s.statusName,
|
|
20357
20356
|
secondaryMessage: s.title
|
|
20358
20357
|
};
|
|
@@ -20388,7 +20387,7 @@ const Ia = ({
|
|
|
20388
20387
|
},
|
|
20389
20388
|
size: 32,
|
|
20390
20389
|
children: /* @__PURE__ */ t(
|
|
20391
|
-
|
|
20390
|
+
Td,
|
|
20392
20391
|
{
|
|
20393
20392
|
sx: {
|
|
20394
20393
|
...xa,
|
|
@@ -20413,7 +20412,7 @@ const Ia = ({
|
|
|
20413
20412
|
}
|
|
20414
20413
|
)
|
|
20415
20414
|
] });
|
|
20416
|
-
}, AC = I(
|
|
20415
|
+
}, AC = I(TC), IC = ({ field: e, isOpen: n, onClose: i }) => {
|
|
20417
20416
|
const { updateAccount: a } = Ee(), { selectedAccount: o } = Ht(), { accounts: r } = x(), [s, c] = g.useState(o[e.name]), [d, u] = g.useState(""), [_, h] = g.useState(!0), m = () => {
|
|
20418
20417
|
c(""), u(""), i();
|
|
20419
20418
|
}, C = () => {
|
|
@@ -20455,7 +20454,7 @@ const Ia = ({
|
|
|
20455
20454
|
return /* @__PURE__ */ t(vd, { dateAdapter: Qn, children: /* @__PURE__ */ t(
|
|
20456
20455
|
ja,
|
|
20457
20456
|
{
|
|
20458
|
-
maxDate:
|
|
20457
|
+
maxDate: Tt(/* @__PURE__ */ new Date(), 1),
|
|
20459
20458
|
minDate: /* @__PURE__ */ new Date(),
|
|
20460
20459
|
onChange: (y) => {
|
|
20461
20460
|
o[e.name] && Number(o[e.name]) <= 31 ? c(y.getDate()) : c(y);
|
|
@@ -20500,7 +20499,7 @@ const Ia = ({
|
|
|
20500
20499
|
{
|
|
20501
20500
|
copy: {
|
|
20502
20501
|
close_aria: r.close_aria,
|
|
20503
|
-
title:
|
|
20502
|
+
title: T(r.edit_field, e.label)
|
|
20504
20503
|
},
|
|
20505
20504
|
disablePrimaryButton: !!d || !_,
|
|
20506
20505
|
isOpen: n,
|
|
@@ -20557,17 +20556,17 @@ const Ia = ({
|
|
|
20557
20556
|
return g.useEffect(() => e(W.ACCOUNT_DETAILS_VIEW), []), /* @__PURE__ */ l(ie, { children: [
|
|
20558
20557
|
/* @__PURE__ */ t(wC, {}),
|
|
20559
20558
|
/* @__PURE__ */ t(AC, {}),
|
|
20560
|
-
/* @__PURE__ */ t(
|
|
20559
|
+
/* @__PURE__ */ t(SC, {})
|
|
20561
20560
|
] });
|
|
20562
20561
|
}, DC = I(NC), RC = ({ setTabValue: e }) => {
|
|
20563
|
-
const [n, i] = g.useState(!1), { selectedMember: a } = Ht(), { accounts: o, connect: r } = x(), s = a.connection_status &&
|
|
20562
|
+
const [n, i] = g.useState(!1), { selectedMember: a } = Ht(), { accounts: o, connect: r } = x(), s = a.connection_status && Ts.includes(a.connection_status);
|
|
20564
20563
|
if (g.useEffect(() => {
|
|
20565
20564
|
s && e(1);
|
|
20566
20565
|
}, [s]), !s) return;
|
|
20567
20566
|
const c = Rc(a, r);
|
|
20568
20567
|
return /* @__PURE__ */ l(q, { children: [
|
|
20569
20568
|
/* @__PURE__ */ t(
|
|
20570
|
-
|
|
20569
|
+
St,
|
|
20571
20570
|
{
|
|
20572
20571
|
sx: {
|
|
20573
20572
|
mb: 16,
|
|
@@ -20575,7 +20574,7 @@ const Ia = ({
|
|
|
20575
20574
|
mx: 24
|
|
20576
20575
|
},
|
|
20577
20576
|
children: /* @__PURE__ */ l(
|
|
20578
|
-
|
|
20577
|
+
Sn,
|
|
20579
20578
|
{
|
|
20580
20579
|
icon: /* @__PURE__ */ t(aa, {}),
|
|
20581
20580
|
severity: "error",
|
|
@@ -20682,16 +20681,16 @@ const Ia = ({
|
|
|
20682
20681
|
() => a.filter((y) => y.is_closed),
|
|
20683
20682
|
[a]
|
|
20684
20683
|
), m = _.reduce(
|
|
20685
|
-
(y,
|
|
20684
|
+
(y, S) => (S.available_balance || S.balance || 0) + y,
|
|
20686
20685
|
0
|
|
20687
20686
|
), C = h.reduce(
|
|
20688
|
-
(y,
|
|
20687
|
+
(y, S) => (S.available_balance || S.balance || 0) + y,
|
|
20689
20688
|
0
|
|
20690
20689
|
);
|
|
20691
20690
|
g.useEffect(() => {
|
|
20692
20691
|
if (u) {
|
|
20693
20692
|
o(u);
|
|
20694
|
-
const y = s.find((
|
|
20693
|
+
const y = s.find((S) => S.guid === u?.member_guid) || {};
|
|
20695
20694
|
y && r(y);
|
|
20696
20695
|
}
|
|
20697
20696
|
}, [u, e]);
|
|
@@ -20701,7 +20700,7 @@ const Ia = ({
|
|
|
20701
20700
|
account_type: y.account_type
|
|
20702
20701
|
});
|
|
20703
20702
|
}, E = (y) => {
|
|
20704
|
-
const
|
|
20703
|
+
const S = y === "hidden" ? _ : h, A = y === "hidden" ? m : C, w = y === "hidden" ? i.account_hidden : i.account_closed;
|
|
20705
20704
|
return /* @__PURE__ */ t(L, { children: /* @__PURE__ */ t(
|
|
20706
20705
|
ie,
|
|
20707
20706
|
{
|
|
@@ -20718,7 +20717,7 @@ const Ia = ({
|
|
|
20718
20717
|
]
|
|
20719
20718
|
}
|
|
20720
20719
|
) }),
|
|
20721
|
-
children: /* @__PURE__ */ t(we, { children:
|
|
20720
|
+
children: /* @__PURE__ */ t(we, { children: S.map((v, R, B) => {
|
|
20722
20721
|
const M = R === B.length - 1;
|
|
20723
20722
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
20724
20723
|
/* @__PURE__ */ t(
|
|
@@ -20753,16 +20752,16 @@ const Ia = ({
|
|
|
20753
20752
|
};
|
|
20754
20753
|
return /* @__PURE__ */ l(L, { sx: { pt: 24 }, children: [
|
|
20755
20754
|
d.map((y) => {
|
|
20756
|
-
const
|
|
20755
|
+
const S = a.filter(
|
|
20757
20756
|
(w) => w.account_type === y && !w.is_closed && !w.is_hidden
|
|
20758
|
-
), A =
|
|
20757
|
+
), A = S.reduce(
|
|
20759
20758
|
(w, v) => (v.available_balance || v.balance || 0) + w,
|
|
20760
20759
|
0
|
|
20761
20760
|
);
|
|
20762
|
-
return
|
|
20761
|
+
return S.length === 0 ? null : /* @__PURE__ */ t(
|
|
20763
20762
|
ie,
|
|
20764
20763
|
{
|
|
20765
|
-
"aria-label": i.account_type_accounts[
|
|
20764
|
+
"aria-label": i.account_type_accounts[S[0]?.account_type],
|
|
20766
20765
|
subheader: /* @__PURE__ */ t(Mt, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ l(
|
|
20767
20766
|
we,
|
|
20768
20767
|
{
|
|
@@ -20775,8 +20774,8 @@ const Ia = ({
|
|
|
20775
20774
|
]
|
|
20776
20775
|
}
|
|
20777
20776
|
) }),
|
|
20778
|
-
children: /* @__PURE__ */ t(we, { children:
|
|
20779
|
-
const v = a.indexOf(w) === a.length - 1, R =
|
|
20777
|
+
children: /* @__PURE__ */ t(we, { children: S.map((w) => {
|
|
20778
|
+
const v = a.indexOf(w) === a.length - 1, R = S.indexOf(w) === S.length - 1;
|
|
20780
20779
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
20781
20780
|
/* @__PURE__ */ t(
|
|
20782
20781
|
bi,
|
|
@@ -20811,7 +20810,7 @@ const Ia = ({
|
|
|
20811
20810
|
onClose: () => n(""),
|
|
20812
20811
|
title: i.account_details,
|
|
20813
20812
|
children: [
|
|
20814
|
-
/* @__PURE__ */ t(
|
|
20813
|
+
/* @__PURE__ */ t(To, {}),
|
|
20815
20814
|
/* @__PURE__ */ t(Oc, {})
|
|
20816
20815
|
]
|
|
20817
20816
|
}
|
|
@@ -20824,7 +20823,7 @@ const Ia = ({
|
|
|
20824
20823
|
}, [c]);
|
|
20825
20824
|
const y = () => {
|
|
20826
20825
|
a(!0), E(W.ACCOUNTS_CLICK_CONNECT);
|
|
20827
|
-
},
|
|
20826
|
+
}, S = () => {
|
|
20828
20827
|
r(!0), E(W.ACCOUNTS_CLICK_CONNECT);
|
|
20829
20828
|
};
|
|
20830
20829
|
return _ ? /* @__PURE__ */ t(
|
|
@@ -20836,7 +20835,7 @@ const Ia = ({
|
|
|
20836
20835
|
{
|
|
20837
20836
|
iconName: "credit_card_gear",
|
|
20838
20837
|
label: d.manage,
|
|
20839
|
-
onClick:
|
|
20838
|
+
onClick: S
|
|
20840
20839
|
}
|
|
20841
20840
|
] : [],
|
|
20842
20841
|
onAccountsFilterClick: () => E(W.ACCOUNTS_CLICK_FILTER),
|
|
@@ -21487,7 +21486,7 @@ class KC {
|
|
|
21487
21486
|
if (o > -1) {
|
|
21488
21487
|
let r = Ln.Connected;
|
|
21489
21488
|
const s = this.members[o];
|
|
21490
|
-
|
|
21489
|
+
Ss.includes(s.connection_status) ? r = Ln.Error : Bd.includes(s.connection_status) ? r = Ln.Processing : Es.includes(s.connection_status) && (r = Ln.RequiresMfa);
|
|
21491
21490
|
let c = a.user_name || a.feed_name || "";
|
|
21492
21491
|
a.account_number && (c = `${c} *${a.account_number}`), i.push({
|
|
21493
21492
|
...a,
|
|
@@ -21672,7 +21671,7 @@ const zC = () => {
|
|
|
21672
21671
|
responsePayload: u,
|
|
21673
21672
|
resetStore: _,
|
|
21674
21673
|
survey: h
|
|
21675
|
-
} = no(), { analytics: m, common: C } = x(), { isCopyLoaded: f, isInitialized: E } = le(), [y,
|
|
21674
|
+
} = no(), { analytics: m, common: C } = x(), { isCopyLoaded: f, isInitialized: E } = le(), [y, S] = g.useState(!1);
|
|
21676
21675
|
g.useEffect(() => {
|
|
21677
21676
|
E && s();
|
|
21678
21677
|
}, [E]), g.useEffect(() => {
|
|
@@ -21683,11 +21682,11 @@ const zC = () => {
|
|
|
21683
21682
|
const A = () => {
|
|
21684
21683
|
e("survey dismissed", {
|
|
21685
21684
|
$survey_id: i
|
|
21686
|
-
}), _(),
|
|
21685
|
+
}), _(), S(!1);
|
|
21687
21686
|
}, w = () => {
|
|
21688
21687
|
r();
|
|
21689
21688
|
}, v = () => {
|
|
21690
|
-
e("survey sent", u), _(),
|
|
21689
|
+
e("survey sent", u), _(), S(!0);
|
|
21691
21690
|
};
|
|
21692
21691
|
return f ? !a && !y ? null : /* @__PURE__ */ l(
|
|
21693
21692
|
Dn,
|
|
@@ -21738,7 +21737,7 @@ const zC = () => {
|
|
|
21738
21737
|
] }),
|
|
21739
21738
|
y && /* @__PURE__ */ l(g.Fragment, { children: [
|
|
21740
21739
|
/* @__PURE__ */ t(b, { sx: { px: 24, py: 24 }, children: /* @__PURE__ */ t(p, { bold: !0, truncate: !1, children: m.thank_you }) }),
|
|
21741
|
-
/* @__PURE__ */ t(b, { sx: { px: 24, pb: 24 }, children: /* @__PURE__ */ t(
|
|
21740
|
+
/* @__PURE__ */ t(b, { sx: { px: 24, pb: 24 }, children: /* @__PURE__ */ t(Sn, { severity: "success", variant: "filled", children: m.feedback_sent_successfully }) })
|
|
21742
21741
|
] })
|
|
21743
21742
|
]
|
|
21744
21743
|
}
|
|
@@ -21809,8 +21808,8 @@ function s0({ bubble: e, isDraggable: n, onClick: i = () => {
|
|
|
21809
21808
|
const [a, o] = g.useState(!1);
|
|
21810
21809
|
if (g.useEffect(() => {
|
|
21811
21810
|
document.fonts.ready.then(() => {
|
|
21812
|
-
const
|
|
21813
|
-
|
|
21811
|
+
const S = Dt.select(`.icon-${c}`), A = S.node()?.getComputedTextLength();
|
|
21812
|
+
S.attr("x", () => h < Un ? A ? A / 2 - 12 : 12 : A ? A / 2 - 16 : 16);
|
|
21814
21813
|
});
|
|
21815
21814
|
}, []), !e) return;
|
|
21816
21815
|
const {
|
|
@@ -22012,7 +22011,7 @@ const c0 = ({
|
|
|
22012
22011
|
budget_category: A.category.name,
|
|
22013
22012
|
click_type: "bubble"
|
|
22014
22013
|
});
|
|
22015
|
-
},
|
|
22014
|
+
}, S = () => {
|
|
22016
22015
|
f(!0), s(W.ACCOUNTS_CLICK_CONNECT);
|
|
22017
22016
|
};
|
|
22018
22017
|
return d ? /* @__PURE__ */ t(b, { alignItems: "center", height: n, justifyContent: "center", width: Math.abs(E), children: /* @__PURE__ */ t(de, {}) }) : /* @__PURE__ */ l(L, { ml: o || m ? 0 : 24, sx: { alignSelf: "center" }, children: [
|
|
@@ -22021,7 +22020,7 @@ const c0 = ({
|
|
|
22021
22020
|
{
|
|
22022
22021
|
createBudgetOnClick: e,
|
|
22023
22022
|
isMiniWidget: a,
|
|
22024
|
-
onConnectAccountsClick:
|
|
22023
|
+
onConnectAccountsClick: S
|
|
22025
22024
|
}
|
|
22026
22025
|
) : /* @__PURE__ */ t(
|
|
22027
22026
|
l0,
|
|
@@ -22093,7 +22092,7 @@ const c0 = ({
|
|
|
22093
22092
|
}), h0 = I(
|
|
22094
22093
|
({ category: e }) => {
|
|
22095
22094
|
const { budgets: n } = x(), { budgets: i } = lt(), a = g.useMemo(() => {
|
|
22096
|
-
const o = i.find((c) => c.category_guid === e.guid), r = P(e.totalAverageAmount, "0,0"), s = o ?
|
|
22095
|
+
const o = i.find((c) => c.category_guid === e.guid), r = P(e.totalAverageAmount, "0,0"), s = o ? T(n.recalculate_previous_budget, P(o.amount, "0,0")) : n.recalculate_new_budget;
|
|
22097
22096
|
return `${r} - ${s}`;
|
|
22098
22097
|
}, [n, i]);
|
|
22099
22098
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
@@ -22137,11 +22136,11 @@ const c0 = ({
|
|
|
22137
22136
|
const { budgets: a } = x(), { totalBudgeted: o } = lt(), { projectedIncome: r } = ze(), s = r - o;
|
|
22138
22137
|
return /* @__PURE__ */ l(b, { gap: 16, children: [
|
|
22139
22138
|
/* @__PURE__ */ l(b, { children: [
|
|
22140
|
-
/* @__PURE__ */ t(p, { children:
|
|
22139
|
+
/* @__PURE__ */ t(p, { children: T(
|
|
22141
22140
|
a.add_description_top,
|
|
22142
22141
|
P(s, "0,0")
|
|
22143
22142
|
) }),
|
|
22144
|
-
/* @__PURE__ */ t(p, { children:
|
|
22143
|
+
/* @__PURE__ */ t(p, { children: T(a.add_description_bottom, n) })
|
|
22145
22144
|
] }),
|
|
22146
22145
|
/* @__PURE__ */ t(
|
|
22147
22146
|
Qt,
|
|
@@ -22186,7 +22185,7 @@ const c0 = ({
|
|
|
22186
22185
|
] });
|
|
22187
22186
|
}), p0 = I(({ onRecalculateBudgets: e }) => {
|
|
22188
22187
|
const { budgets: n } = x(), { addBudget: i, setAlert: a, unbudgetedCategories: o } = lt(), r = async (s, c) => {
|
|
22189
|
-
await i(s, c), a(
|
|
22188
|
+
await i(s, c), a(T(n.alert_budget_created, s.name));
|
|
22190
22189
|
};
|
|
22191
22190
|
return /* @__PURE__ */ l(b, { children: [
|
|
22192
22191
|
/* @__PURE__ */ t(u0, {}),
|
|
@@ -22251,8 +22250,8 @@ const c0 = ({
|
|
|
22251
22250
|
}), b0 = I(({ category: e, parentBudget: n }) => {
|
|
22252
22251
|
const { budgets: i, common: a } = x(), { setExpandedGuid: o, setOnSelect: r } = _n(), { addBudget: s } = lt(), [c, d] = g.useState(!1), [u, _] = g.useState(!1), [h, m] = g.useState(""), [C, f] = g.useState(void 0);
|
|
22253
22252
|
g.useEffect(() => {
|
|
22254
|
-
r((
|
|
22255
|
-
const A = e.subCategories.find((w) => w.guid ===
|
|
22253
|
+
r((S) => {
|
|
22254
|
+
const A = e.subCategories.find((w) => w.guid === S);
|
|
22256
22255
|
A && (f(A), m(`${A.currentAmount === 0 ? "" : A.currentAmount}`), _(!0));
|
|
22257
22256
|
});
|
|
22258
22257
|
}, []);
|
|
@@ -22308,7 +22307,7 @@ const c0 = ({
|
|
|
22308
22307
|
custom: (v) => v.category_guid === s.category_guid
|
|
22309
22308
|
}));
|
|
22310
22309
|
}, [s]);
|
|
22311
|
-
const
|
|
22310
|
+
const S = async () => {
|
|
22312
22311
|
s && await d({
|
|
22313
22312
|
...s,
|
|
22314
22313
|
amount: Number(E)
|
|
@@ -22354,7 +22353,7 @@ const c0 = ({
|
|
|
22354
22353
|
disablePrimaryButton: Number(E) <= 0,
|
|
22355
22354
|
isOpen: h,
|
|
22356
22355
|
onClose: () => m(!1),
|
|
22357
|
-
onPrimaryAction:
|
|
22356
|
+
onPrimaryAction: S,
|
|
22358
22357
|
primaryText: a.edit_save_button,
|
|
22359
22358
|
children: /* @__PURE__ */ t(
|
|
22360
22359
|
ma,
|
|
@@ -22376,7 +22375,7 @@ const c0 = ({
|
|
|
22376
22375
|
primaryColor: "error",
|
|
22377
22376
|
primaryText: "Delete",
|
|
22378
22377
|
secondaryColor: "secondary",
|
|
22379
|
-
children: /* @__PURE__ */ t(p, { variant: "Paragraph", children:
|
|
22378
|
+
children: /* @__PURE__ */ t(p, { variant: "Paragraph", children: T(a.delete_description, s.category.name) })
|
|
22380
22379
|
}
|
|
22381
22380
|
)
|
|
22382
22381
|
] })
|
|
@@ -22432,7 +22431,7 @@ const c0 = ({
|
|
|
22432
22431
|
)
|
|
22433
22432
|
] })
|
|
22434
22433
|
] });
|
|
22435
|
-
}),
|
|
22434
|
+
}), S0 = I(() => {
|
|
22436
22435
|
const { selectedAccountGuids: e } = le(), { budgets: n, common: i } = x(), {
|
|
22437
22436
|
dateRange: a,
|
|
22438
22437
|
deleteBudget: o,
|
|
@@ -22441,7 +22440,7 @@ const c0 = ({
|
|
|
22441
22440
|
setAlert: c,
|
|
22442
22441
|
setSelectedBudget: d,
|
|
22443
22442
|
updateBudget: u
|
|
22444
|
-
} = lt(), { setFilter: _ } = Ne(), [h, m] = g.useState(!1), [C, f] = g.useState(!1), [E, y] = g.useState(!1), [
|
|
22443
|
+
} = lt(), { setFilter: _ } = Ne(), [h, m] = g.useState(!1), [C, f] = g.useState(!1), [E, y] = g.useState(!1), [S, A] = g.useState("");
|
|
22445
22444
|
g.useEffect(() => {
|
|
22446
22445
|
r && !s && (A(`${r.amount}`), m(!0), _({
|
|
22447
22446
|
accounts: e,
|
|
@@ -22452,11 +22451,11 @@ const c0 = ({
|
|
|
22452
22451
|
const w = async () => {
|
|
22453
22452
|
r && (await u({
|
|
22454
22453
|
...r,
|
|
22455
|
-
amount: Number(
|
|
22456
|
-
percentage: r.category.totalAmount / Number(
|
|
22457
|
-
}), c(
|
|
22454
|
+
amount: Number(S),
|
|
22455
|
+
percentage: r.category.totalAmount / Number(S) * 100
|
|
22456
|
+
}), c(T(n.alert_budget_updated, r.category.name)));
|
|
22458
22457
|
}, v = async () => {
|
|
22459
|
-
r && (await o(r.guid), c(
|
|
22458
|
+
r && (await o(r.guid), c(T(n.alert_budget_deleted, r.category.name))), y(!1), R();
|
|
22460
22459
|
}, R = () => {
|
|
22461
22460
|
m(!1), setTimeout(() => {
|
|
22462
22461
|
d(void 0);
|
|
@@ -22483,7 +22482,7 @@ const c0 = ({
|
|
|
22483
22482
|
Me,
|
|
22484
22483
|
{
|
|
22485
22484
|
copy: { close_aria: i.close_aria, title: n.details_edit_title },
|
|
22486
|
-
disablePrimaryButton: Number(
|
|
22485
|
+
disablePrimaryButton: Number(S) <= 0,
|
|
22487
22486
|
isOpen: C,
|
|
22488
22487
|
onClose: () => f(!1),
|
|
22489
22488
|
onPrimaryAction: w,
|
|
@@ -22491,7 +22490,7 @@ const c0 = ({
|
|
|
22491
22490
|
children: /* @__PURE__ */ t(
|
|
22492
22491
|
ma,
|
|
22493
22492
|
{
|
|
22494
|
-
amount:
|
|
22493
|
+
amount: S,
|
|
22495
22494
|
categoryName: r.category.name,
|
|
22496
22495
|
onAmountChanged: A
|
|
22497
22496
|
}
|
|
@@ -22508,11 +22507,11 @@ const c0 = ({
|
|
|
22508
22507
|
primaryColor: "error",
|
|
22509
22508
|
primaryText: n.details_delete_button,
|
|
22510
22509
|
secondaryColor: "secondary",
|
|
22511
|
-
children: /* @__PURE__ */ t(p, { variant: "Paragraph", children:
|
|
22510
|
+
children: /* @__PURE__ */ t(p, { variant: "Paragraph", children: T(n.delete_description, r.category.name) })
|
|
22512
22511
|
}
|
|
22513
22512
|
)
|
|
22514
22513
|
] });
|
|
22515
|
-
}),
|
|
22514
|
+
}), T0 = ({ budget: e, onClick: n }) => {
|
|
22516
22515
|
const {
|
|
22517
22516
|
amount: i,
|
|
22518
22517
|
budgetColors: { background: a, description: o },
|
|
@@ -22551,7 +22550,7 @@ const c0 = ({
|
|
|
22551
22550
|
return /* @__PURE__ */ l(Rt, { elevation: 2, children: [
|
|
22552
22551
|
/* @__PURE__ */ t(dn, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ t(mt, { children: n.budget_categories_title }) }),
|
|
22553
22552
|
/* @__PURE__ */ t(Ot, { sx: { p: 0, ":last-child": { p: 0 } }, children: /* @__PURE__ */ t(ie, { children: i.map((r) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
22554
|
-
/* @__PURE__ */ t(
|
|
22553
|
+
/* @__PURE__ */ t(T0, { budget: r, onClick: o }),
|
|
22555
22554
|
/* @__PURE__ */ t(H, {})
|
|
22556
22555
|
] }, r.guid)) }) })
|
|
22557
22556
|
] });
|
|
@@ -22569,7 +22568,7 @@ const c0 = ({
|
|
|
22569
22568
|
}
|
|
22570
22569
|
];
|
|
22571
22570
|
return [w, B];
|
|
22572
|
-
}, [d, c]), [y,
|
|
22571
|
+
}, [d, c]), [y, S] = g.useMemo(() => {
|
|
22573
22572
|
const w = Math.abs(
|
|
22574
22573
|
s.reduce((B, M) => B + M.totalAmount, 0)
|
|
22575
22574
|
);
|
|
@@ -22597,7 +22596,7 @@ const c0 = ({
|
|
|
22597
22596
|
/* @__PURE__ */ l(b, { gap: 8, children: [
|
|
22598
22597
|
/* @__PURE__ */ t(p, { bold: !0, sx: { mb: 8 }, variant: "Body", children: a.spending_title }),
|
|
22599
22598
|
/* @__PURE__ */ t(jn, { data: E, height: 16 }),
|
|
22600
|
-
/* @__PURE__ */ t(p, { variant: "Small", children:
|
|
22599
|
+
/* @__PURE__ */ t(p, { variant: "Small", children: T(
|
|
22601
22600
|
a.spending_description,
|
|
22602
22601
|
P(f, "0,0"),
|
|
22603
22602
|
P(u, "0,0")
|
|
@@ -22616,8 +22615,8 @@ const c0 = ({
|
|
|
22616
22615
|
}
|
|
22617
22616
|
)
|
|
22618
22617
|
] }),
|
|
22619
|
-
/* @__PURE__ */ t(jn, { data:
|
|
22620
|
-
/* @__PURE__ */ t(p, { variant: "Small", children:
|
|
22618
|
+
/* @__PURE__ */ t(jn, { data: S, height: 16 }),
|
|
22619
|
+
/* @__PURE__ */ t(p, { variant: "Small", children: T(
|
|
22621
22620
|
a.income_description,
|
|
22622
22621
|
P(y, "0,0"),
|
|
22623
22622
|
P(_, "0,0")
|
|
@@ -22645,7 +22644,7 @@ const c0 = ({
|
|
|
22645
22644
|
isDataLoaded: f,
|
|
22646
22645
|
loadBudgetData: E,
|
|
22647
22646
|
setDateRange: y,
|
|
22648
|
-
setAlert:
|
|
22647
|
+
setAlert: S,
|
|
22649
22648
|
setTheme: A,
|
|
22650
22649
|
budgets: w
|
|
22651
22650
|
} = lt(), { loadRepeatingTransactions: v } = ze(), { reloadCategoryTotals: R } = $e(), { isSmallTablet: B, isMobile: M, isSmallMobile: D } = Ce(), k = B || M || D, [O, U] = g.useState(!1);
|
|
@@ -22717,7 +22716,7 @@ const c0 = ({
|
|
|
22717
22716
|
]
|
|
22718
22717
|
}
|
|
22719
22718
|
),
|
|
22720
|
-
/* @__PURE__ */ t(
|
|
22719
|
+
/* @__PURE__ */ t(S0, {}),
|
|
22721
22720
|
/* @__PURE__ */ t(
|
|
22722
22721
|
ce,
|
|
22723
22722
|
{
|
|
@@ -22729,19 +22728,19 @@ const c0 = ({
|
|
|
22729
22728
|
}
|
|
22730
22729
|
),
|
|
22731
22730
|
/* @__PURE__ */ t(
|
|
22732
|
-
|
|
22731
|
+
Si,
|
|
22733
22732
|
{
|
|
22734
22733
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
22735
22734
|
autoHideDuration: 3500,
|
|
22736
22735
|
onClose: () => {
|
|
22737
|
-
|
|
22736
|
+
S("");
|
|
22738
22737
|
},
|
|
22739
22738
|
open: !!m,
|
|
22740
22739
|
children: /* @__PURE__ */ t(
|
|
22741
|
-
|
|
22740
|
+
Sn,
|
|
22742
22741
|
{
|
|
22743
22742
|
onClose: () => {
|
|
22744
|
-
|
|
22743
|
+
S("");
|
|
22745
22744
|
},
|
|
22746
22745
|
severity: "success",
|
|
22747
22746
|
variant: "filled",
|
|
@@ -22842,7 +22841,7 @@ const c0 = ({
|
|
|
22842
22841
|
return m > 1 && m < 12 ? r.good_morning : m >= 12 && m < 18 ? r.good_afternoon : r.good_evening;
|
|
22843
22842
|
};
|
|
22844
22843
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
22845
|
-
/* @__PURE__ */ t(
|
|
22844
|
+
/* @__PURE__ */ t(St, { sx: { gap: 12, mb: d ? 24 : 0, p: 24 }, children: /* @__PURE__ */ l(b, { alignItems: "center", flexDirection: "row", justifyContent: "space-between", children: [
|
|
22846
22845
|
/* @__PURE__ */ t(b, { direction: "row", spacing: 2, children: /* @__PURE__ */ l(b, { children: [
|
|
22847
22846
|
/* @__PURE__ */ t(Xt, { children: _() }),
|
|
22848
22847
|
/* @__PURE__ */ t(p, { color: "text.secondary", sx: { fontSize: 15 }, children: r.heres_your_spending_overview })
|
|
@@ -23035,17 +23034,17 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23035
23034
|
const y = c.filter(
|
|
23036
23035
|
(w) => !!w[f.name]
|
|
23037
23036
|
);
|
|
23038
|
-
let
|
|
23037
|
+
let S = y.reduce(
|
|
23039
23038
|
(w, v) => w + Fi(v) * v[f.name] / 100,
|
|
23040
23039
|
0
|
|
23041
23040
|
);
|
|
23042
23041
|
const A = k0(
|
|
23043
23042
|
y,
|
|
23044
23043
|
f.name,
|
|
23045
|
-
|
|
23044
|
+
S
|
|
23046
23045
|
);
|
|
23047
23046
|
if (f.name === "allocations_cash" && d > 0) {
|
|
23048
|
-
|
|
23047
|
+
S += d;
|
|
23049
23048
|
const w = {
|
|
23050
23049
|
displayName: n.cash_balance_display_name,
|
|
23051
23050
|
name: "allocations_name",
|
|
@@ -23054,22 +23053,22 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23054
23053
|
};
|
|
23055
23054
|
A.push(w);
|
|
23056
23055
|
}
|
|
23057
|
-
|
|
23056
|
+
S > 0 && (o.push({
|
|
23058
23057
|
name: f.name,
|
|
23059
23058
|
displayName: a[E],
|
|
23060
23059
|
guid: `${f.name}-${E}`,
|
|
23061
23060
|
holdings: A,
|
|
23062
|
-
percentage:
|
|
23063
|
-
value:
|
|
23061
|
+
percentage: S / m,
|
|
23062
|
+
value: S,
|
|
23064
23063
|
color: O0[f.name]
|
|
23065
|
-
}), r +=
|
|
23064
|
+
}), r += S);
|
|
23066
23065
|
});
|
|
23067
23066
|
const C = o.map(
|
|
23068
|
-
({ displayName: f, guid: E, color: y, value:
|
|
23067
|
+
({ displayName: f, guid: E, color: y, value: S }) => ({
|
|
23069
23068
|
id: E,
|
|
23070
23069
|
color: y,
|
|
23071
23070
|
label: f,
|
|
23072
|
-
value:
|
|
23071
|
+
value: S / r * 100
|
|
23073
23072
|
})
|
|
23074
23073
|
);
|
|
23075
23074
|
return {
|
|
@@ -23087,7 +23086,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23087
23086
|
selectedTabs: a,
|
|
23088
23087
|
setSelectedTabs: o
|
|
23089
23088
|
}) => {
|
|
23090
|
-
const r = (
|
|
23089
|
+
const r = (S, A) => {
|
|
23091
23090
|
A !== null && o(A);
|
|
23092
23091
|
}, { isMobile: s } = Ce(), {
|
|
23093
23092
|
investments: { allocation: c }
|
|
@@ -23103,7 +23102,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23103
23102
|
fullWidth: !0,
|
|
23104
23103
|
onChange: r,
|
|
23105
23104
|
value: E ? -1 : a,
|
|
23106
|
-
children: f.map(({ label:
|
|
23105
|
+
children: f.map(({ label: S, value: A }) => /* @__PURE__ */ t(
|
|
23107
23106
|
qn,
|
|
23108
23107
|
{
|
|
23109
23108
|
sx: {
|
|
@@ -23124,13 +23123,13 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23124
23123
|
color: _
|
|
23125
23124
|
},
|
|
23126
23125
|
value: A,
|
|
23127
|
-
children: /* @__PURE__ */ t(p, { bold: !0, textTransform: "capitalize", variant: "Body", children:
|
|
23126
|
+
children: /* @__PURE__ */ t(p, { bold: !0, textTransform: "capitalize", variant: "Body", children: S })
|
|
23128
23127
|
},
|
|
23129
|
-
|
|
23128
|
+
S
|
|
23130
23129
|
))
|
|
23131
23130
|
}
|
|
23132
23131
|
),
|
|
23133
|
-
/* @__PURE__ */ t(ie, { sx: { px: 12 }, children: e.investmentsData.map((
|
|
23132
|
+
/* @__PURE__ */ t(ie, { sx: { px: 12 }, children: e.investmentsData.map((S) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
23134
23133
|
/* @__PURE__ */ t(
|
|
23135
23134
|
z,
|
|
23136
23135
|
{
|
|
@@ -23142,8 +23141,8 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23142
23141
|
children: /* @__PURE__ */ l(
|
|
23143
23142
|
_e,
|
|
23144
23143
|
{
|
|
23145
|
-
"aria-expanded": i ===
|
|
23146
|
-
onClick: () => n(
|
|
23144
|
+
"aria-expanded": i === S.guid,
|
|
23145
|
+
onClick: () => n(S.guid),
|
|
23147
23146
|
sx: { minHeight: 44, px: 12, py: 0 },
|
|
23148
23147
|
children: [
|
|
23149
23148
|
/* @__PURE__ */ t(
|
|
@@ -23152,7 +23151,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23152
23151
|
borderRadius: 4,
|
|
23153
23152
|
flexShrink: 0,
|
|
23154
23153
|
height: 8,
|
|
23155
|
-
sx: { backgroundColor:
|
|
23154
|
+
sx: { backgroundColor: S.color, mr: 8 },
|
|
23156
23155
|
width: 8
|
|
23157
23156
|
}
|
|
23158
23157
|
),
|
|
@@ -23164,8 +23163,8 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23164
23163
|
justifyContent: "space-between",
|
|
23165
23164
|
width: "100%",
|
|
23166
23165
|
children: [
|
|
23167
|
-
/* @__PURE__ */ t(p, { bold: i ===
|
|
23168
|
-
/* @__PURE__ */ t(p, { bold: i ===
|
|
23166
|
+
/* @__PURE__ */ t(p, { bold: i === S.guid, children: S.displayName }),
|
|
23167
|
+
/* @__PURE__ */ t(p, { bold: i === S.guid, variant: "Body", children: a === 0 ? hi(S.value) : Wa(S.percentage) })
|
|
23169
23168
|
]
|
|
23170
23169
|
}
|
|
23171
23170
|
)
|
|
@@ -23175,8 +23174,8 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23175
23174
|
}
|
|
23176
23175
|
),
|
|
23177
23176
|
/* @__PURE__ */ t(H, {}),
|
|
23178
|
-
|
|
23179
|
-
|
|
23177
|
+
S.holdings && S.holdings.length > 0 && /* @__PURE__ */ t(Jn, { in: i === S.guid, unmountOnExit: !0, children: /* @__PURE__ */ l(ie, { children: [
|
|
23178
|
+
S?.holdings?.map((A) => /* @__PURE__ */ t(
|
|
23180
23179
|
z,
|
|
23181
23180
|
{
|
|
23182
23181
|
sx: {
|
|
@@ -23196,7 +23195,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23196
23195
|
)),
|
|
23197
23196
|
/* @__PURE__ */ t(H, {})
|
|
23198
23197
|
] }) })
|
|
23199
|
-
] },
|
|
23198
|
+
] }, S.guid)) }),
|
|
23200
23199
|
E ? /* @__PURE__ */ l(q, { children: [
|
|
23201
23200
|
/* @__PURE__ */ t(p, { sx: { color: "secondary.main", p: 8, textAlign: "center" }, children: c.empty_data }),
|
|
23202
23201
|
/* @__PURE__ */ t(H, { sx: { borderColor: "border.light" } }),
|
|
@@ -23226,7 +23225,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23226
23225
|
[s]
|
|
23227
23226
|
), {
|
|
23228
23227
|
investments: { allocation: m }
|
|
23229
|
-
} = x(), C = g.useMemo(() => e.donutData.length > 0 ? e.donutData : [{ id: "0", color: u.palette.border.light, value: 100 }], [e, u]), f = _ ? "#0AC295" : "#09A57F", E = _ ? "grey.300" : "grey.700", y = () => h ? m.pie_chart_centered_click_for_details : i ? Wa(e.totalGainLossPercentage) : hi(e.totalGainLoss),
|
|
23228
|
+
} = x(), C = g.useMemo(() => e.donutData.length > 0 ? e.donutData : [{ id: "0", color: u.palette.border.light, value: 100 }], [e, u]), f = _ ? "#0AC295" : "#09A57F", E = _ ? "grey.300" : "grey.700", y = () => h ? m.pie_chart_centered_click_for_details : i ? Wa(e.totalGainLossPercentage) : hi(e.totalGainLoss), S = e.totalGainLoss >= 0 ? f : E;
|
|
23230
23229
|
return /* @__PURE__ */ t(
|
|
23231
23230
|
Bs,
|
|
23232
23231
|
{
|
|
@@ -23246,14 +23245,14 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23246
23245
|
{
|
|
23247
23246
|
name: e.totalGainLoss >= 0 ? "trending_up" : "trending_down",
|
|
23248
23247
|
size: 20,
|
|
23249
|
-
sx: { color:
|
|
23248
|
+
sx: { color: S }
|
|
23250
23249
|
}
|
|
23251
23250
|
),
|
|
23252
23251
|
/* @__PURE__ */ t(
|
|
23253
23252
|
p,
|
|
23254
23253
|
{
|
|
23255
23254
|
sx: {
|
|
23256
|
-
color:
|
|
23255
|
+
color: S,
|
|
23257
23256
|
fontWeight: 700
|
|
23258
23257
|
},
|
|
23259
23258
|
variant: "Small",
|
|
@@ -23510,8 +23509,8 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23510
23509
|
]
|
|
23511
23510
|
}
|
|
23512
23511
|
),
|
|
23513
|
-
n.map((C, f, E) => /* @__PURE__ */ t(b, { sx: { flexDirection: "row", gap: 4 }, children: C.map((y,
|
|
23514
|
-
const A = f === 0, w = f === E.length - 1, v =
|
|
23512
|
+
n.map((C, f, E) => /* @__PURE__ */ t(b, { sx: { flexDirection: "row", gap: 4 }, children: C.map((y, S) => {
|
|
23513
|
+
const A = f === 0, w = f === E.length - 1, v = S === 0, R = S === C.length - 1, B = Number(y.replace("%", "")) >= 25;
|
|
23515
23514
|
let M = "grey.200", D = "grey.900";
|
|
23516
23515
|
return d ? (M = B ? "grey.200" : "grey.700", D = B ? "grey.900" : "common.white") : (M = B ? "grey.700" : "grey.200", D = B ? "common.white" : "grey.900"), /* @__PURE__ */ t(
|
|
23517
23516
|
b,
|
|
@@ -23541,7 +23540,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23541
23540
|
}
|
|
23542
23541
|
)
|
|
23543
23542
|
},
|
|
23544
|
-
|
|
23543
|
+
S
|
|
23545
23544
|
);
|
|
23546
23545
|
}) }, f)),
|
|
23547
23546
|
/* @__PURE__ */ t(b, { sx: { alignSelf: "center", flexDirection: "row", pt: 12 }, children: h.map((C) => /* @__PURE__ */ t(b, { sx: { alignItems: "center", width: u }, children: /* @__PURE__ */ t(p, { color: "secondary.main", variant: m, children: C }) }, C)) }),
|
|
@@ -24030,7 +24029,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
24030
24029
|
}
|
|
24031
24030
|
];
|
|
24032
24031
|
return /* @__PURE__ */ t(
|
|
24033
|
-
|
|
24032
|
+
St,
|
|
24034
24033
|
{
|
|
24035
24034
|
sx: {
|
|
24036
24035
|
boxShadow: "none",
|
|
@@ -24054,7 +24053,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
24054
24053
|
const { isMobile: e } = Ce(), [n, i] = Et({}), [a, o] = Et(!1), { selectedAccountGuids: r } = le(), { visibleHoldings: s, updateHoldings: c } = Gn(), [d, u] = g.useState(!1), [_, h] = Et({
|
|
24055
24054
|
accounts: [],
|
|
24056
24055
|
holdings: []
|
|
24057
|
-
}), { accounts: m, investments: C } = x(), { isCopyLoaded: f } = le(), [E, y] = Et(null), [
|
|
24056
|
+
}), { accounts: m, investments: C } = x(), { isCopyLoaded: f } = le(), [E, y] = Et(null), [S, A] = Et(""), v = pe().palette.mode === "dark", R = v ? "#0AC295" : "#09A57F", B = v ? "grey.300" : "grey.700", M = (Q, ne = "lesserThan") => ne === "greaterThan" ? Q >= 0 ? R : B : Q <= 0 ? B : R, D = (Q, ne) => {
|
|
24058
24057
|
y(Q), A(ne.toFixed(2));
|
|
24059
24058
|
}, k = (Q) => {
|
|
24060
24059
|
const ne = Q.target.value;
|
|
@@ -24064,7 +24063,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
24064
24063
|
}, U = (Q) => {
|
|
24065
24064
|
const ne = s.find(({ guid: Qe }) => Qe === Q);
|
|
24066
24065
|
if (!ne) return;
|
|
24067
|
-
const Ue = Number(
|
|
24066
|
+
const Ue = Number(S);
|
|
24068
24067
|
if (c({ ...ne, cost_basis: Ue }), e) {
|
|
24069
24068
|
const Qe = _.holdings.map(
|
|
24070
24069
|
(K) => K.id === Q ? { ...K, costBasis: Ue } : K
|
|
@@ -24138,7 +24137,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
24138
24137
|
), Le = Qe ? K / Qe * 100 : 0;
|
|
24139
24138
|
if (e)
|
|
24140
24139
|
return /* @__PURE__ */ t(
|
|
24141
|
-
|
|
24140
|
+
St,
|
|
24142
24141
|
{
|
|
24143
24142
|
onClick: ne.length ? () => {
|
|
24144
24143
|
o(!0), h({
|
|
@@ -24428,10 +24427,10 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
24428
24427
|
]
|
|
24429
24428
|
}
|
|
24430
24429
|
),
|
|
24431
|
-
/* @__PURE__ */ t(Ii, { sx: { bgcolor: "background.default", p: 12 }, children: /* @__PURE__ */ t(
|
|
24430
|
+
/* @__PURE__ */ t(Ii, { sx: { bgcolor: "background.default", p: 12 }, children: /* @__PURE__ */ t(St, { sx: { border: 1, borderColor: "border.light" }, children: /* @__PURE__ */ t(
|
|
24432
24431
|
j0,
|
|
24433
24432
|
{
|
|
24434
|
-
currentEditedCostBasis:
|
|
24433
|
+
currentEditedCostBasis: S,
|
|
24435
24434
|
data: ne,
|
|
24436
24435
|
editingHoldingId: E,
|
|
24437
24436
|
handleCostBasisBlur: U,
|
|
@@ -24450,7 +24449,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
24450
24449
|
Y0,
|
|
24451
24450
|
{
|
|
24452
24451
|
accountHoldingsData: _,
|
|
24453
|
-
currentEditedCostBasis:
|
|
24452
|
+
currentEditedCostBasis: S,
|
|
24454
24453
|
editingHoldingId: E,
|
|
24455
24454
|
handleCostBasisBlur: U,
|
|
24456
24455
|
handleCostBasisChange: k,
|
|
@@ -24484,7 +24483,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
24484
24483
|
i(W.INVESTMENT_WIDGET_ACCOUNT_FILTER_CLICK);
|
|
24485
24484
|
};
|
|
24486
24485
|
if (!_ || !h) return /* @__PURE__ */ t(de, {});
|
|
24487
|
-
const
|
|
24486
|
+
const S = [
|
|
24488
24487
|
W.INVESTMENT_WIDGET_DETAILS_CLICK,
|
|
24489
24488
|
W.INVESTMENT_WIDGET_ALLOCATION_CLICK,
|
|
24490
24489
|
W.INVESTMENT_WIDGET_ANALYSIS_CLICK
|
|
@@ -24507,7 +24506,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
24507
24506
|
qt,
|
|
24508
24507
|
{
|
|
24509
24508
|
onChange: (v, R) => {
|
|
24510
|
-
f(R), i(
|
|
24509
|
+
f(R), i(S[R]);
|
|
24511
24510
|
},
|
|
24512
24511
|
sx: { bgcolor: "background.paper" },
|
|
24513
24512
|
textColor: "primary",
|
|
@@ -24799,7 +24798,7 @@ const Di = g.createContext(null), of = ({
|
|
|
24799
24798
|
variant: f,
|
|
24800
24799
|
widthOverrides: E
|
|
24801
24800
|
}, y) {
|
|
24802
|
-
const [
|
|
24801
|
+
const [S, A] = g.useState(2), [w, v] = g.useState(!1);
|
|
24803
24802
|
g.useEffect(() => {
|
|
24804
24803
|
E && E <= 325 && A(3);
|
|
24805
24804
|
}, [E]);
|
|
@@ -24815,7 +24814,7 @@ const Di = g.createContext(null), of = ({
|
|
|
24815
24814
|
lineHeight: "20px",
|
|
24816
24815
|
px: d ? 0 : 28,
|
|
24817
24816
|
overflow: "hidden",
|
|
24818
|
-
WebkitLineClamp:
|
|
24817
|
+
WebkitLineClamp: S,
|
|
24819
24818
|
WebkitBoxOrient: "vertical",
|
|
24820
24819
|
wordWrap: "break-word"
|
|
24821
24820
|
},
|
|
@@ -25807,12 +25806,12 @@ const Di = g.createContext(null), of = ({
|
|
|
25807
25806
|
}) => {
|
|
25808
25807
|
const { ref: C, inView: f } = bs({
|
|
25809
25808
|
threshold: $c
|
|
25810
|
-
}), { cardsCopy: E } = On(), { onEvent: y } = Ri(), { updateBeat:
|
|
25809
|
+
}), { cardsCopy: E } = On(), { onEvent: y } = Ri(), { updateBeat: S, updateOffer: A } = gf();
|
|
25811
25810
|
Mn(() => {
|
|
25812
25811
|
f && (i.has_been_displayed ? y(Gc(i.template)) : (i.guid.startsWith("OFR") ? A({
|
|
25813
25812
|
...i,
|
|
25814
25813
|
has_been_displayed: !0
|
|
25815
|
-
}) :
|
|
25814
|
+
}) : S({
|
|
25816
25815
|
...i,
|
|
25817
25816
|
has_been_displayed: !0
|
|
25818
25817
|
}), y(Bc(i.template))));
|
|
@@ -25962,7 +25961,7 @@ const Di = g.createContext(null), of = ({
|
|
|
25962
25961
|
variant: u,
|
|
25963
25962
|
widthOverrides: _
|
|
25964
25963
|
}) => {
|
|
25965
|
-
const h = Ef(a, d, _), m = g.useRef(null), [C, f] = g.useState(0), [E, y] = g.useState(null), [
|
|
25964
|
+
const h = Ef(a, d, _), m = g.useRef(null), [C, f] = g.useState(0), [E, y] = g.useState(null), [S, A] = g.useState(null), { carouselCopy: w } = On(), { onEvent: v } = Ri(), R = () => {
|
|
25966
25965
|
v(Vt.ON_CAROUSEL_FORWARD_CLICK), m.current && m.current.scrollTo({
|
|
25967
25966
|
left: (
|
|
25968
25967
|
// Adds the flex gap to the carousel ref's width
|
|
@@ -25980,8 +25979,8 @@ const Di = g.createContext(null), of = ({
|
|
|
25980
25979
|
}, M = () => {
|
|
25981
25980
|
m.current && f(m.current.scrollLeft);
|
|
25982
25981
|
}, D = () => {
|
|
25983
|
-
if (!
|
|
25984
|
-
|
|
25982
|
+
if (!S || !E) return;
|
|
25983
|
+
S - E > mf ? v(Vt.ON_CAROUSEL_FORWARD_SWIPE) : v(Vt.ON_CAROUSEL_BACK_SWIPE);
|
|
25985
25984
|
}, k = (te) => {
|
|
25986
25985
|
y(te.targetTouches[0].clientX);
|
|
25987
25986
|
}, O = (te) => {
|
|
@@ -26014,7 +26013,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26014
26013
|
ref: m,
|
|
26015
26014
|
children: [
|
|
26016
26015
|
e.map((te, ge) => {
|
|
26017
|
-
const De = ge + 1, Re = e.length + 1,
|
|
26016
|
+
const De = ge + 1, Re = e.length + 1, Se = T(
|
|
26018
26017
|
w.card_position_in_carousel_aria,
|
|
26019
26018
|
De.toString(),
|
|
26020
26019
|
Re.toString()
|
|
@@ -26022,7 +26021,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26022
26021
|
return /* @__PURE__ */ t(
|
|
26023
26022
|
pf,
|
|
26024
26023
|
{
|
|
26025
|
-
ariaLabel: `${
|
|
26024
|
+
ariaLabel: `${Se}: ${Q}, ${ne}`,
|
|
26026
26025
|
beat: te,
|
|
26027
26026
|
index: ge,
|
|
26028
26027
|
isActiveCard: ge === ee,
|
|
@@ -26083,7 +26082,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26083
26082
|
display: "none"
|
|
26084
26083
|
}
|
|
26085
26084
|
}
|
|
26086
|
-
}),
|
|
26085
|
+
}), Sf = ({
|
|
26087
26086
|
clientColorScheme: e,
|
|
26088
26087
|
onCardClick: n,
|
|
26089
26088
|
posthog: i,
|
|
@@ -26152,7 +26151,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26152
26151
|
]
|
|
26153
26152
|
}
|
|
26154
26153
|
) : /* @__PURE__ */ t(de, {});
|
|
26155
|
-
},
|
|
26154
|
+
}, Tf = I(Sf), Af = ({
|
|
26156
26155
|
heightOverrides: e,
|
|
26157
26156
|
widthOverrides: n,
|
|
26158
26157
|
children: i
|
|
@@ -26304,7 +26303,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26304
26303
|
showIcon: f,
|
|
26305
26304
|
showWithMargin: E = !0,
|
|
26306
26305
|
token: y = "",
|
|
26307
|
-
useDarkMode:
|
|
26306
|
+
useDarkMode: S,
|
|
26308
26307
|
userHasFullInsightFeedBeats: A,
|
|
26309
26308
|
variant: w,
|
|
26310
26309
|
widthOverrides: v
|
|
@@ -26325,7 +26324,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26325
26324
|
posthog: _,
|
|
26326
26325
|
showIcon: f,
|
|
26327
26326
|
showWithMargin: E,
|
|
26328
|
-
useDarkMode:
|
|
26327
|
+
useDarkMode: S,
|
|
26329
26328
|
widthOverrides: v
|
|
26330
26329
|
}, ue = {
|
|
26331
26330
|
carouselSize: B,
|
|
@@ -26339,7 +26338,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26339
26338
|
/* @__PURE__ */ t(of, { onEvent: O, onPageview: U, store: hn, children: /* @__PURE__ */ l(Af, { heightOverrides: r, widthOverrides: v, children: [
|
|
26340
26339
|
(e || !hn.isInitialized) && /* @__PURE__ */ t(If, {}),
|
|
26341
26340
|
D && C && /* @__PURE__ */ t(
|
|
26342
|
-
|
|
26341
|
+
Tf,
|
|
26343
26342
|
{
|
|
26344
26343
|
clientColorScheme: i,
|
|
26345
26344
|
onCardClick: c,
|
|
@@ -26589,8 +26588,8 @@ const Di = g.createContext(null), of = ({
|
|
|
26589
26588
|
), C = g.useMemo(
|
|
26590
26589
|
() => zc(a, o, c),
|
|
26591
26590
|
[a, o, c]
|
|
26592
|
-
), f = (y,
|
|
26593
|
-
h(
|
|
26591
|
+
), f = (y, S) => {
|
|
26592
|
+
h(S), u("");
|
|
26594
26593
|
}, E = (y) => {
|
|
26595
26594
|
u(d === y ? "" : y);
|
|
26596
26595
|
};
|
|
@@ -26804,7 +26803,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26804
26803
|
e.palette.chartMono.chartMono1,
|
|
26805
26804
|
e.palette.chartMono.chartMono6
|
|
26806
26805
|
], Hf = () => {
|
|
26807
|
-
const e = ln(), { categories: n, dateRangeCategoryTotals: i, loadDateRangeCategoryTotals: a } = $e(), { spending: o } = x(), { displayedDateRange: r, selectedAccounts: s, selectedAccountGuids: c } = le(), { setFilter: d, sortedTransactions: u } = Ne(), [_, h] = g.useState(""), [m, C] = g.useState(0), [f, E] = g.useState(""), [y,
|
|
26806
|
+
const e = ln(), { categories: n, dateRangeCategoryTotals: i, loadDateRangeCategoryTotals: a } = $e(), { spending: o } = x(), { displayedDateRange: r, selectedAccounts: s, selectedAccountGuids: c } = le(), { setFilter: d, sortedTransactions: u } = Ne(), [_, h] = g.useState(""), [m, C] = g.useState(0), [f, E] = g.useState(""), [y, S] = g.useState(!1);
|
|
26808
26807
|
g.useEffect(() => {
|
|
26809
26808
|
a(
|
|
26810
26809
|
s,
|
|
@@ -26847,7 +26846,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26847
26846
|
...k,
|
|
26848
26847
|
custom: (O) => D ? O.category_guid === D : O.top_level_category_guid === N.INCOME
|
|
26849
26848
|
});
|
|
26850
|
-
|
|
26849
|
+
S(!0);
|
|
26851
26850
|
};
|
|
26852
26851
|
return /* @__PURE__ */ l(L, { children: [
|
|
26853
26852
|
/* @__PURE__ */ l(qt, { onChange: R, value: m, variant: "fullWidth", children: [
|
|
@@ -26901,7 +26900,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26901
26900
|
{
|
|
26902
26901
|
ariaLabelClose: o.close_drawer_aria,
|
|
26903
26902
|
isOpen: y,
|
|
26904
|
-
onClose: () =>
|
|
26903
|
+
onClose: () => S(!1),
|
|
26905
26904
|
title: o.transactions_drawer_title,
|
|
26906
26905
|
children: /* @__PURE__ */ t(Rn, { onClick: E })
|
|
26907
26906
|
}
|
|
@@ -26983,7 +26982,7 @@ const Vf = (e) => e.reduce((i, a) => {
|
|
|
26983
26982
|
/* @__PURE__ */ t(
|
|
26984
26983
|
L,
|
|
26985
26984
|
{
|
|
26986
|
-
"aria-label":
|
|
26985
|
+
"aria-label": T(i.category_icon_label_aria, a),
|
|
26987
26986
|
role: "img",
|
|
26988
26987
|
children: /* @__PURE__ */ t(kt, { categoryGuid: n })
|
|
26989
26988
|
}
|
|
@@ -27043,11 +27042,11 @@ const Vf = (e) => e.reduce((i, a) => {
|
|
|
27043
27042
|
(E) => E.category_guid === i || E.top_level_category_guid === i
|
|
27044
27043
|
) : e).reduce(
|
|
27045
27044
|
(E, y) => {
|
|
27046
|
-
const { category_guid:
|
|
27045
|
+
const { category_guid: S, top_level_category_guid: A, month: w, total: v, year: R } = y, B = i ? S : A;
|
|
27047
27046
|
E[B] || (E[B] = {
|
|
27048
27047
|
id: B,
|
|
27049
27048
|
category: B,
|
|
27050
|
-
category_guid:
|
|
27049
|
+
category_guid: S,
|
|
27051
27050
|
top_level_category_guid: A
|
|
27052
27051
|
});
|
|
27053
27052
|
const M = se(new Date(R, w - 1), oe.MONTH_SHORT);
|
|
@@ -27115,7 +27114,7 @@ const Vf = (e) => e.reduce((i, a) => {
|
|
|
27115
27114
|
}, eb = I(Jf), tb = {
|
|
27116
27115
|
view_transactions: "View Transactions"
|
|
27117
27116
|
}, nb = ({ onBackClick: e, sx: n }) => {
|
|
27118
|
-
const i = at(), { onEvent: a } = j(), { isDesktop: o, isTablet: r, isMobile: s } = Ce(), { visibleAccounts: c } = Ee(), { loadMonthlyCategoryTotals: d, monthlyCategoryTotals: u, getCategoryName: _ } = $e(), { sortedTransactions: h } = Ne(), { isCopyLoaded: m, isInitialized: C, selectedAccounts: f, setSelectedAccounts: E } = le(), { trends: y } = x(),
|
|
27117
|
+
const i = at(), { onEvent: a } = j(), { isDesktop: o, isTablet: r, isMobile: s } = Ce(), { visibleAccounts: c } = Ee(), { loadMonthlyCategoryTotals: d, monthlyCategoryTotals: u, getCategoryName: _ } = $e(), { sortedTransactions: h } = Ne(), { isCopyLoaded: m, isInitialized: C, selectedAccounts: f, setSelectedAccounts: E } = le(), { trends: y } = x(), S = i.palette.mode === "dark", [A, w] = g.useState(!1), [v, R] = g.useState(!1), [B, M] = g.useState("Chart"), [D, k] = g.useState(""), [O, U] = g.useState({
|
|
27119
27118
|
start: zo(Ye(Yt(/* @__PURE__ */ new Date(), 6)), 1),
|
|
27120
27119
|
end: Ye(/* @__PURE__ */ new Date())
|
|
27121
27120
|
});
|
|
@@ -27163,7 +27162,7 @@ const Vf = (e) => e.reduce((i, a) => {
|
|
|
27163
27162
|
a(W.TRENDS_CLICK_FILTER);
|
|
27164
27163
|
}, Re = (ne) => {
|
|
27165
27164
|
k(ne);
|
|
27166
|
-
},
|
|
27165
|
+
}, Se = (ne) => {
|
|
27167
27166
|
k(ne), a(W.TRENDS_CLICK_LEGEND, { category: _(ne) });
|
|
27168
27167
|
}, Oe = (ne) => {
|
|
27169
27168
|
a(W.TRENDS_HOVER_LEGEND, { category: _(ne) });
|
|
@@ -27231,20 +27230,20 @@ const Vf = (e) => e.reduce((i, a) => {
|
|
|
27231
27230
|
fontWeight: 600,
|
|
27232
27231
|
height: 44,
|
|
27233
27232
|
width: 56,
|
|
27234
|
-
color:
|
|
27235
|
-
borderColor:
|
|
27233
|
+
color: S ? i.palette.grey[200] : i.palette.grey[600],
|
|
27234
|
+
borderColor: S ? i.palette.grey[600] : i.palette.grey[400],
|
|
27236
27235
|
"&:hover": {
|
|
27237
|
-
backgroundColor:
|
|
27238
|
-
borderColor:
|
|
27239
|
-
color:
|
|
27236
|
+
backgroundColor: S ? `${i.palette.primary.darker}25` : "inherit",
|
|
27237
|
+
borderColor: S ? i.palette.grey[500] : i.palette.primary.main,
|
|
27238
|
+
color: S ? i.palette.primary.light : i.palette.primary.dark
|
|
27240
27239
|
},
|
|
27241
27240
|
"&.Mui-selected": {
|
|
27242
|
-
backgroundColor:
|
|
27243
|
-
borderColor:
|
|
27244
|
-
color:
|
|
27241
|
+
backgroundColor: S ? i.palette.primary.darker : i.palette.primary.lighter,
|
|
27242
|
+
borderColor: S ? i.palette.primary.light : i.palette.primary.main,
|
|
27243
|
+
color: S ? i.palette.common.white : i.palette.primary.dark
|
|
27245
27244
|
},
|
|
27246
27245
|
"&.Mui-disabled": {
|
|
27247
|
-
borderColor:
|
|
27246
|
+
borderColor: S ? i.palette.grey[700] : i.palette.grey[400],
|
|
27248
27247
|
color: i.palette.grey[500]
|
|
27249
27248
|
}
|
|
27250
27249
|
},
|
|
@@ -27269,7 +27268,7 @@ const Vf = (e) => e.reduce((i, a) => {
|
|
|
27269
27268
|
B === "Chart" && /* @__PURE__ */ t(
|
|
27270
27269
|
k_,
|
|
27271
27270
|
{
|
|
27272
|
-
onClickLegend:
|
|
27271
|
+
onClickLegend: Se,
|
|
27273
27272
|
onHoverArea: It,
|
|
27274
27273
|
onHoverLegend: Oe,
|
|
27275
27274
|
onHoverPoint: Q,
|
|
@@ -27338,7 +27337,7 @@ export {
|
|
|
27338
27337
|
W as ANALYTICS_EVENTS,
|
|
27339
27338
|
$r as AccountApi,
|
|
27340
27339
|
Oc as AccountDetailsContent,
|
|
27341
|
-
|
|
27340
|
+
To as AccountDetailsHeader,
|
|
27342
27341
|
ks as AccountFilter,
|
|
27343
27342
|
As as AccountIcon,
|
|
27344
27343
|
Hd as AccountIconVariants,
|
|
@@ -27364,9 +27363,9 @@ export {
|
|
|
27364
27363
|
WE as BubbleBudgetsWidget,
|
|
27365
27364
|
G1 as BudgetNotificationProfiles,
|
|
27366
27365
|
Zn as BudgetNotificationTypes,
|
|
27367
|
-
|
|
27366
|
+
S_ as Calendar,
|
|
27368
27367
|
Gs as CalendarSelectionTypes,
|
|
27369
|
-
|
|
27368
|
+
Tf as CarouselHeader,
|
|
27370
27369
|
EE as CashflowApi,
|
|
27371
27370
|
hE as CashflowMiniWidget,
|
|
27372
27371
|
Fg as CashflowOnboarding,
|
|
@@ -27400,14 +27399,14 @@ export {
|
|
|
27400
27399
|
_c as DebtsChart,
|
|
27401
27400
|
Vm as DebtsStore,
|
|
27402
27401
|
Mm as DebtsTable,
|
|
27403
|
-
|
|
27402
|
+
TE as DebtsWidget,
|
|
27404
27403
|
v1 as DeviceTab,
|
|
27405
27404
|
Me as Dialog,
|
|
27406
27405
|
Bs as Donut,
|
|
27407
27406
|
ce as Drawer,
|
|
27408
27407
|
zn as EmptyState,
|
|
27409
27408
|
P_ as ErrorBoundary,
|
|
27410
|
-
|
|
27409
|
+
Ss as ErrorStatuses,
|
|
27411
27410
|
vu as ExpenseStatus,
|
|
27412
27411
|
ot as Fetch,
|
|
27413
27412
|
vt as FieldType,
|
|
@@ -27459,7 +27458,7 @@ export {
|
|
|
27459
27458
|
$p as NetWorthSummary,
|
|
27460
27459
|
wE as NetWorthWidget,
|
|
27461
27460
|
VE as NoRelevantInsightsCard,
|
|
27462
|
-
|
|
27461
|
+
Ts as NonConnectedStatuses,
|
|
27463
27462
|
Qo as NotificationApi,
|
|
27464
27463
|
ME as NotificationDrawer,
|
|
27465
27464
|
g1 as NotificationList,
|
|
@@ -27473,7 +27472,7 @@ export {
|
|
|
27473
27472
|
Yo as PaymentCategories,
|
|
27474
27473
|
$d as PlanTypes,
|
|
27475
27474
|
Bd as ProcessingStatuses,
|
|
27476
|
-
|
|
27475
|
+
S1 as ProfileTab,
|
|
27477
27476
|
ys as PropertyType,
|
|
27478
27477
|
Q4 as PropertyTypeName,
|
|
27479
27478
|
J4 as RECURRENCE_COPY,
|
|
@@ -27539,7 +27538,7 @@ export {
|
|
|
27539
27538
|
KE as ZeroStateCard,
|
|
27540
27539
|
Pc as ZeroStateIcon,
|
|
27541
27540
|
Md as analyticsSession,
|
|
27542
|
-
|
|
27541
|
+
T as buildDynamicCopy,
|
|
27543
27542
|
iE as buildPluralCopy,
|
|
27544
27543
|
Us as exportTransactionsToCSV,
|
|
27545
27544
|
P as formatCurrency,
|