@mx-cartographer/experiences 6.16.0-ram1 → 6.16.0-ram1-testing-unknown-accounts
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -5
- package/dist/index.es.js +703 -703
- package/dist/index.es.js.map +1 -1
- package/dist/transactions/stores/TransactionStore.d.ts +7 -6
- package/package.json +1 -1
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 St } 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 Sn, 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 Tt 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 Tl, MarkPlot as Sl, 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 Tn from "@mui/material/Alert";
|
|
95
|
+
import Ti 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 Si } 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 Td from "@mui/icons-material/CheckCircleRounded";
|
|
139
|
+
import Sd 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
|
+
], Ts = [
|
|
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
|
+
], Ss = [...Ts, ...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 = St(n, 1);
|
|
861
861
|
return n;
|
|
862
862
|
}, Xd = (e) => {
|
|
863
863
|
const n = to(e);
|
|
864
|
-
return
|
|
864
|
+
return St(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, S = (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 ? "" : S(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((T) => !!T);
|
|
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 T = {};
|
|
1400
1400
|
Object.keys(d).forEach((A) => {
|
|
1401
|
-
|
|
1402
|
-
}), u(
|
|
1401
|
+
T[A] = !y;
|
|
1402
|
+
}), u(T);
|
|
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((T) => {
|
|
1417
|
+
const A = C[T], 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": S(i.accountTypeAccounts, T),
|
|
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": S(i.toggleAccountTypeAccounts, T),
|
|
1430
1430
|
"aria-pressed": w,
|
|
1431
1431
|
disableGutters: !0,
|
|
1432
1432
|
onClick: () => o(
|
|
1433
|
-
|
|
1433
|
+
T,
|
|
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: T,
|
|
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
|
+
) }, T);
|
|
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, T) => {
|
|
1620
1620
|
const A = { ...h };
|
|
1621
1621
|
y[E].forEach((w) => {
|
|
1622
|
-
A[w.guid] = !
|
|
1622
|
+
A[w.guid] = !T;
|
|
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, T = 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: T, 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), T = f >= 0, A = E < 0, w = nr(T, A, o), v = nr(A, T, 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 T_ = ({
|
|
1997
1997
|
copy: e,
|
|
1998
1998
|
beginDate: n = void 0,
|
|
1999
1999
|
endDate: i = void 0,
|
|
@@ -2002,7 +2002,7 @@ const S_ = ({
|
|
|
2002
2002
|
selectionType: r = "Single"
|
|
2003
2003
|
/* Single */
|
|
2004
2004
|
}) => {
|
|
2005
|
-
const s = gt(), c =
|
|
2005
|
+
const s = gt(), c = S_(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 S_ = ({
|
|
|
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
|
+
}, T = () => {
|
|
2030
|
+
u(St(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(Tt, { 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: T,
|
|
2041
2041
|
onPreviousClick: A
|
|
2042
2042
|
}
|
|
2043
2043
|
),
|
|
@@ -2055,7 +2055,7 @@ const S_ = ({
|
|
|
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
|
+
}, S_ = (e) => Zt({
|
|
2059
2059
|
width: E_,
|
|
2060
2060
|
"& .MuiPaper-root": {
|
|
2061
2061
|
paddingLeft: 24,
|
|
@@ -2213,7 +2213,7 @@ const S_ = ({
|
|
|
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
|
+
Sn,
|
|
2217
2217
|
{
|
|
2218
2218
|
sx: {
|
|
2219
2219
|
width: 10,
|
|
@@ -2251,7 +2251,7 @@ const S_ = ({
|
|
|
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), T = i.flat().map((D) => D.y), A = Math.round(T.reduce((D, k) => k + D, 0) / T.length), w = Math.floor(Math.min(...T) / 100) * 100, v = Math.ceil(Math.max(...T) / 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 S_ = ({
|
|
|
2305
2305
|
children: [
|
|
2306
2306
|
/* @__PURE__ */ t(El, {}),
|
|
2307
2307
|
/* @__PURE__ */ t(
|
|
2308
|
-
|
|
2308
|
+
Tl,
|
|
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 S_ = ({
|
|
|
2313
2313
|
}
|
|
2314
2314
|
),
|
|
2315
2315
|
/* @__PURE__ */ t(
|
|
2316
|
-
|
|
2316
|
+
Sl,
|
|
2317
2317
|
{
|
|
2318
2318
|
slots: m ? {
|
|
2319
2319
|
mark: (D) => /* @__PURE__ */ t(
|
|
@@ -2322,7 +2322,7 @@ const S_ = ({
|
|
|
2322
2322
|
handlers: s,
|
|
2323
2323
|
showLabel: h,
|
|
2324
2324
|
style: c?.(D.dataIndex) ?? {},
|
|
2325
|
-
yData:
|
|
2325
|
+
yData: T,
|
|
2326
2326
|
...D
|
|
2327
2327
|
}
|
|
2328
2328
|
)
|
|
@@ -2380,7 +2380,7 @@ const S_ = ({
|
|
|
2380
2380
|
/* @__PURE__ */ t(
|
|
2381
2381
|
L,
|
|
2382
2382
|
{
|
|
2383
|
-
"aria-label":
|
|
2383
|
+
"aria-label": S(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 S_ = ({
|
|
|
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(Sn, { 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 S_ = ({
|
|
|
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: T, cursorPos: A } = C, w = T && 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 S_ = ({
|
|
|
2562
2562
|
guid: K,
|
|
2563
2563
|
top_level_guid: Le
|
|
2564
2564
|
}))
|
|
2565
|
-
],
|
|
2565
|
+
], Te = (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 S_ = ({
|
|
|
2573
2573
|
}, It = (K) => {
|
|
2574
2574
|
a?.(K ?? "");
|
|
2575
2575
|
}, Q = () => {
|
|
2576
|
-
const K =
|
|
2576
|
+
const K = Te(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 = Te(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 S_ = ({
|
|
|
2659
2659
|
itemContent: (K) => v && E ? /* @__PURE__ */ t(
|
|
2660
2660
|
L_,
|
|
2661
2661
|
{
|
|
2662
|
-
categoryGuids:
|
|
2662
|
+
categoryGuids: Te(E),
|
|
2663
2663
|
xData: M,
|
|
2664
2664
|
...K
|
|
2665
2665
|
}
|
|
@@ -2700,7 +2700,7 @@ const S_ = ({
|
|
|
2700
2700
|
w && /* @__PURE__ */ t(
|
|
2701
2701
|
O_,
|
|
2702
2702
|
{
|
|
2703
|
-
categoryGuids:
|
|
2703
|
+
categoryGuids: Te(E),
|
|
2704
2704
|
chartContainerRef: _,
|
|
2705
2705
|
cursorPosition: A,
|
|
2706
2706
|
hoveredAreaData: y.map((K) => ({
|
|
@@ -2907,7 +2907,7 @@ const S_ = ({
|
|
|
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), [T, 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 S_ = ({
|
|
|
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) : St(ee, 1), U[1] = Ye(te ? Yt(ue, 1) : St(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 S_ = ({
|
|
|
3000
3000
|
sx: {
|
|
3001
3001
|
p: d ? 0 : 8
|
|
3002
3002
|
},
|
|
3003
|
-
children:
|
|
3003
|
+
children: T ? 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: T, 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
|
+
T && 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: Te } = ge;
|
|
3466
|
+
return te ? T || 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: Te
|
|
3473
3473
|
},
|
|
3474
3474
|
De
|
|
3475
|
-
) : /* @__PURE__ */ t(Pe, { "aria-label":
|
|
3475
|
+
) : /* @__PURE__ */ t(Pe, { "aria-label": Te, onClick: Re, children: /* @__PURE__ */ t($, { name: De, size: 24 }) }, De) : T || 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: Te
|
|
3482
3482
|
},
|
|
3483
3483
|
De
|
|
3484
|
-
) : /* @__PURE__ */ t(Pe, { "aria-label":
|
|
3484
|
+
) : /* @__PURE__ */ t(Pe, { "aria-label": Te, 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 && T && { flexGrow: 1 },
|
|
3490
3490
|
...(A || w) && { alignSelf: "center" },
|
|
3491
3491
|
mr: 0
|
|
3492
3492
|
},
|
|
3493
|
-
p:
|
|
3493
|
+
p: T ? 48 : 24,
|
|
3494
3494
|
pb: 0
|
|
3495
3495
|
},
|
|
3496
|
-
title:
|
|
3496
|
+
title: T || 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: T ? 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(), T = 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
|
+
S(
|
|
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
|
+
S(
|
|
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 ${T}`,
|
|
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: S(
|
|
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: S(
|
|
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: T } = 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(T);
|
|
4484
|
+
}, [y, T]);
|
|
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, T]
|
|
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: S(
|
|
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: S(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: S(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: S(
|
|
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: S(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: S(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(St(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: St(i, 1) }), n.push({ ...e, expectedDate: St(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: St(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 = St(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 ? S(e.monthly_ordinal, r) : e.monthly;
|
|
4749
4749
|
switch (n.recurrence_type) {
|
|
4750
4750
|
case me.EveryQuarter:
|
|
4751
|
-
c = i ?
|
|
4751
|
+
c = i ? S(e.quarterly_ordinal, r) : e.quarterly;
|
|
4752
4752
|
break;
|
|
4753
4753
|
case me.EveryWeek:
|
|
4754
|
-
c = i ?
|
|
4754
|
+
c = i ? S(
|
|
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 ? S(
|
|
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 ? S(
|
|
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 ? S(e.every_other_month_ordinal, r) : e.every_other_month;
|
|
4773
4773
|
break;
|
|
4774
4774
|
case me.EveryOtherQuarter:
|
|
4775
|
-
c = i ?
|
|
4775
|
+
c = i ? S(e.every_other_quarter_ordinal, r) : e.every_other_quarter;
|
|
4776
4776
|
break;
|
|
4777
4777
|
case me.TwiceAMonth:
|
|
4778
|
-
c = i ?
|
|
4778
|
+
c = i ? S(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
|
+
}, Se = {
|
|
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: Se.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: Se.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: Se.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: Se.SPLIT,
|
|
5044
5044
|
category: Ae.TRANSACTION_DETAILS,
|
|
5045
5045
|
label: Ie.SPLITS
|
|
5046
5046
|
},
|
|
5047
5047
|
[Y.ON_TRANSACTION_UNSPLIT]: {
|
|
5048
|
-
action:
|
|
5048
|
+
action: Se.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: Se.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: Se.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: Se.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: Se.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: Se.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: Se.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: Se.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: Se.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: Se.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: Se.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: Se.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: Se.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: Se.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: Se.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: Se.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: Se.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: Se.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: Se.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: Se.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: Se.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: Se.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: Se.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: Se.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: Se.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: Se.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: Se.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: Se.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: Se.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: Se.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: Se.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: Se.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: Se.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: Se.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: Se.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: Se.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
|
+
}, Tu = "uncategorized", Su = (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 === Tu && 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
|
-
isLoading = !0;
|
|
5351
|
-
taggings = [];
|
|
5352
|
-
tags = [];
|
|
5353
|
-
transactionRules = [];
|
|
5354
|
-
transactions = [];
|
|
5355
5350
|
associatedBeats = [];
|
|
5356
5351
|
cachedStartDate = At(he(), 90);
|
|
5352
|
+
filter = {};
|
|
5353
|
+
isLoading = !0;
|
|
5354
|
+
rawTransactions = [];
|
|
5357
5355
|
sortColumn = Ba.DATE;
|
|
5358
5356
|
sortDirection = Ws.DESC;
|
|
5359
|
-
|
|
5357
|
+
taggings = [];
|
|
5358
|
+
tags = [];
|
|
5359
|
+
transactionRules = [];
|
|
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 Su(
|
|
5378
5378
|
this.filter,
|
|
5379
5379
|
this.uiStore.expandedSplits,
|
|
5380
5380
|
this.sortColumn,
|
|
@@ -5383,6 +5383,9 @@ class Ru {
|
|
|
5383
5383
|
this.transactions
|
|
5384
5384
|
);
|
|
5385
5385
|
}
|
|
5386
|
+
get transactions() {
|
|
5387
|
+
return this.augmentTransactions(this.rawTransactions);
|
|
5388
|
+
}
|
|
5386
5389
|
addTag = async (n) => {
|
|
5387
5390
|
await this.api.addTag({ name: n }), await this.loadTags();
|
|
5388
5391
|
};
|
|
@@ -5408,9 +5411,7 @@ class Ru {
|
|
|
5408
5411
|
};
|
|
5409
5412
|
addTransaction = async (n) => {
|
|
5410
5413
|
const i = await this.api.addTransaction(n);
|
|
5411
|
-
i && Z(
|
|
5412
|
-
() => this.transactions = this.augmentTransactions([i, ...this.transactions])
|
|
5413
|
-
);
|
|
5414
|
+
i && Z(() => this.rawTransactions = [i, ...this.transactions]);
|
|
5414
5415
|
};
|
|
5415
5416
|
augmentTransactions = (n) => yu(
|
|
5416
5417
|
n,
|
|
@@ -5435,14 +5436,14 @@ class Ru {
|
|
|
5435
5436
|
Z(() => this.transactionRules = n);
|
|
5436
5437
|
};
|
|
5437
5438
|
loadTransactions = async (n = this.cachedStartDate, i = En()) => {
|
|
5438
|
-
this.setIsLoading(!0), this.
|
|
5439
|
+
this.setIsLoading(!0), this.rawTransactions = [];
|
|
5439
5440
|
try {
|
|
5440
5441
|
const a = await this.api.getTransactionsByDateRange(
|
|
5441
5442
|
He(n),
|
|
5442
5443
|
He(i)
|
|
5443
5444
|
);
|
|
5444
5445
|
Z(() => {
|
|
5445
|
-
this.
|
|
5446
|
+
this.rawTransactions = a;
|
|
5446
5447
|
});
|
|
5447
5448
|
} catch (a) {
|
|
5448
5449
|
console.error(`Error occurred while loading transactions: ${a}`);
|
|
@@ -5457,7 +5458,7 @@ class Ru {
|
|
|
5457
5458
|
});
|
|
5458
5459
|
};
|
|
5459
5460
|
modifyTransactionByAccountGuid = (n, i) => {
|
|
5460
|
-
this.
|
|
5461
|
+
this.rawTransactions = this.transactions.map(
|
|
5461
5462
|
(a) => a.account_guid === n ? { ...a, ...i } : a
|
|
5462
5463
|
);
|
|
5463
5464
|
};
|
|
@@ -5472,7 +5473,7 @@ class Ru {
|
|
|
5472
5473
|
const i = this.transactions.findIndex((a) => a.guid === n);
|
|
5473
5474
|
if (i >= 0) {
|
|
5474
5475
|
const a = [...this.transactions];
|
|
5475
|
-
a.splice(i, 1), Z(() => this.
|
|
5476
|
+
a.splice(i, 1), Z(() => this.rawTransactions = a);
|
|
5476
5477
|
}
|
|
5477
5478
|
};
|
|
5478
5479
|
setFilter = (n) => {
|
|
@@ -5492,12 +5493,12 @@ class Ru {
|
|
|
5492
5493
|
}
|
|
5493
5494
|
const r = this.transactions.findIndex((s) => s.guid === n.guid);
|
|
5494
5495
|
r >= 0 && Z(
|
|
5495
|
-
() => this.
|
|
5496
|
+
() => this.rawTransactions = [
|
|
5496
5497
|
...this.transactions.slice(0, r),
|
|
5497
5498
|
a,
|
|
5498
5499
|
...this.transactions.slice(r + 1),
|
|
5499
5500
|
...o
|
|
5500
|
-
]
|
|
5501
|
+
]
|
|
5501
5502
|
);
|
|
5502
5503
|
};
|
|
5503
5504
|
unSplitTransaction = async (n) => {
|
|
@@ -5510,7 +5511,7 @@ class Ru {
|
|
|
5510
5511
|
});
|
|
5511
5512
|
const o = a.findIndex((s) => s.guid === n), r = a[o];
|
|
5512
5513
|
r.has_been_split = !1, o >= 0 && Z(
|
|
5513
|
-
() => this.
|
|
5514
|
+
() => this.rawTransactions = [
|
|
5514
5515
|
...a.slice(0, o),
|
|
5515
5516
|
r,
|
|
5516
5517
|
...a.slice(o + 1)
|
|
@@ -5531,11 +5532,11 @@ class Ru {
|
|
|
5531
5532
|
updateTransaction = async (n) => {
|
|
5532
5533
|
const i = await this.api.updateTransaction(n), a = this.transactions.findIndex((o) => o.guid === n.guid);
|
|
5533
5534
|
a >= 0 && Z(
|
|
5534
|
-
() => this.
|
|
5535
|
+
() => this.rawTransactions = [
|
|
5535
5536
|
...this.transactions.slice(0, a),
|
|
5536
5537
|
i,
|
|
5537
5538
|
...this.transactions.slice(a + 1)
|
|
5538
|
-
]
|
|
5539
|
+
]
|
|
5539
5540
|
);
|
|
5540
5541
|
};
|
|
5541
5542
|
}
|
|
@@ -5680,25 +5681,25 @@ const Pu = ({ transaction: e, onClick: n }) => {
|
|
|
5680
5681
|
account_guid: w?.account_guid,
|
|
5681
5682
|
transaction_guid: A
|
|
5682
5683
|
}), a?.(A);
|
|
5683
|
-
}, y = g.useRef(null),
|
|
5684
|
+
}, y = g.useRef(null), T = us({
|
|
5684
5685
|
count: h.length,
|
|
5685
5686
|
getScrollElement: () => y.current,
|
|
5686
5687
|
estimateSize: (A) => ur + (_r(A, h) ? hr : 0),
|
|
5687
5688
|
overscan: 5
|
|
5688
5689
|
});
|
|
5689
|
-
return g.useEffect(() =>
|
|
5690
|
+
return g.useEffect(() => T.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(
|
|
5690
5691
|
L,
|
|
5691
5692
|
{
|
|
5692
5693
|
height: (
|
|
5693
5694
|
// set the height to auto when there are no transactions so the zero state isn't set to 0
|
|
5694
|
-
|
|
5695
|
+
T.getVirtualItems().length === 0 ? "auto" : T.getTotalSize()
|
|
5695
5696
|
),
|
|
5696
5697
|
position: "relative",
|
|
5697
5698
|
width: "100%",
|
|
5698
5699
|
children: [
|
|
5699
5700
|
(u || r) && i,
|
|
5700
|
-
!u && !r &&
|
|
5701
|
-
!u && !r &&
|
|
5701
|
+
!u && !r && T.getVirtualItems().length === 0 && d,
|
|
5702
|
+
!u && !r && T.getVirtualItems().length > 0 && T.getVirtualItems().map((A) => {
|
|
5702
5703
|
const w = h[A.index], v = _r(A.index, h), R = $u(A.index, h), B = ur + (v ? hr : 0);
|
|
5703
5704
|
return /* @__PURE__ */ l(
|
|
5704
5705
|
L,
|
|
@@ -5860,7 +5861,7 @@ const Pu = ({ transaction: e, onClick: n }) => {
|
|
|
5860
5861
|
sortingOrder: ["asc", "desc"]
|
|
5861
5862
|
}
|
|
5862
5863
|
];
|
|
5863
|
-
return /* @__PURE__ */ t(
|
|
5864
|
+
return /* @__PURE__ */ t(Tt, { sx: { height: e, px: 24, width: "100%", boxShadow: "none" }, children: /* @__PURE__ */ t(
|
|
5864
5865
|
Hn,
|
|
5865
5866
|
{
|
|
5866
5867
|
columns: u,
|
|
@@ -5907,12 +5908,12 @@ const eh = ({
|
|
|
5907
5908
|
u = c.add_subcategory_title;
|
|
5908
5909
|
break;
|
|
5909
5910
|
case "edit":
|
|
5910
|
-
u =
|
|
5911
|
+
u = S(c.edit_subcategory_title, e);
|
|
5911
5912
|
break;
|
|
5912
5913
|
case "delete":
|
|
5913
|
-
u = c.delete_subcategory_heading, _ =
|
|
5914
|
+
u = c.delete_subcategory_heading, _ = S(
|
|
5914
5915
|
c.all_transactions_in_this_subcategory,
|
|
5915
|
-
/* @__PURE__ */ t(p, { bold: !0, children:
|
|
5916
|
+
/* @__PURE__ */ t(p, { bold: !0, children: S(c.all_parent_category, e) })
|
|
5916
5917
|
);
|
|
5917
5918
|
break;
|
|
5918
5919
|
}
|
|
@@ -6019,7 +6020,7 @@ const eh = ({
|
|
|
6019
6020
|
showSelected: s,
|
|
6020
6021
|
unselectable: c,
|
|
6021
6022
|
unselectableText: d
|
|
6022
|
-
} = _n(), { categories: u } = x(), { onEvent: _ } = j(), [h, m] = g.useState(!1), [C, f] = g.useState(!1), E = !!n.revision, y = n.guid === a,
|
|
6023
|
+
} = _n(), { categories: u } = x(), { onEvent: _ } = j(), [h, m] = g.useState(!1), [C, f] = g.useState(!1), E = !!n.revision, y = n.guid === a, T = !c.some((w) => w === n.guid);
|
|
6023
6024
|
return /* @__PURE__ */ l(
|
|
6024
6025
|
z,
|
|
6025
6026
|
{
|
|
@@ -6034,7 +6035,7 @@ const eh = ({
|
|
|
6034
6035
|
"aria-pressed": y,
|
|
6035
6036
|
color: "secondary",
|
|
6036
6037
|
onClick: () => {
|
|
6037
|
-
|
|
6038
|
+
T && (o(n.guid), i(n.guid), _(jt.ON_CATEGORY_SELECTED));
|
|
6038
6039
|
},
|
|
6039
6040
|
sx: { height: 44 },
|
|
6040
6041
|
children: [
|
|
@@ -6046,7 +6047,7 @@ const eh = ({
|
|
|
6046
6047
|
}
|
|
6047
6048
|
),
|
|
6048
6049
|
s && y && /* @__PURE__ */ t(Xa, { fontSize: "small" }),
|
|
6049
|
-
!
|
|
6050
|
+
!T && /* @__PURE__ */ t(yd, { label: d })
|
|
6050
6051
|
]
|
|
6051
6052
|
}
|
|
6052
6053
|
),
|
|
@@ -6054,7 +6055,7 @@ const eh = ({
|
|
|
6054
6055
|
/* @__PURE__ */ t(
|
|
6055
6056
|
Pe,
|
|
6056
6057
|
{
|
|
6057
|
-
"aria-label":
|
|
6058
|
+
"aria-label": S(u.edit_subcategory_aria, n.name),
|
|
6058
6059
|
onClick: () => {
|
|
6059
6060
|
m(!0), r(!0), _(jt.ON_SUBCATEGORY_EDIT_CLICK);
|
|
6060
6061
|
},
|
|
@@ -6064,7 +6065,7 @@ const eh = ({
|
|
|
6064
6065
|
/* @__PURE__ */ t(
|
|
6065
6066
|
Pe,
|
|
6066
6067
|
{
|
|
6067
|
-
"aria-label":
|
|
6068
|
+
"aria-label": S(u.delete_subcategory_aria, n.name),
|
|
6068
6069
|
edge: "end",
|
|
6069
6070
|
onClick: () => {
|
|
6070
6071
|
f(!0), r(!0), _(jt.ON_SUBCATEGORY_DELETE_CLICK);
|
|
@@ -6156,7 +6157,7 @@ const eh = ({
|
|
|
6156
6157
|
const _ = [
|
|
6157
6158
|
{
|
|
6158
6159
|
...d,
|
|
6159
|
-
name:
|
|
6160
|
+
name: S(i.all_parent_category, d.name),
|
|
6160
6161
|
parent_guid: d.guid
|
|
6161
6162
|
},
|
|
6162
6163
|
...r
|
|
@@ -6168,7 +6169,7 @@ const eh = ({
|
|
|
6168
6169
|
}
|
|
6169
6170
|
return c;
|
|
6170
6171
|
}, []))(e, n);
|
|
6171
|
-
return /* @__PURE__ */ t(
|
|
6172
|
+
return /* @__PURE__ */ t(Tt, { className: "mx-cat-category-list", sx: { boxShadow: "none" }, children: /* @__PURE__ */ t(ie, { children: o.map((r) => /* @__PURE__ */ t(
|
|
6172
6173
|
Vs,
|
|
6173
6174
|
{
|
|
6174
6175
|
category: r.category,
|
|
@@ -6433,12 +6434,12 @@ const zs = ({ transaction: e }) => {
|
|
|
6433
6434
|
});
|
|
6434
6435
|
}, C = (y) => {
|
|
6435
6436
|
if (e.is_manual && !e.guid) {
|
|
6436
|
-
const
|
|
6437
|
+
const T = a.find((A) => A.guid === y);
|
|
6437
6438
|
s({
|
|
6438
6439
|
...e,
|
|
6439
|
-
category:
|
|
6440
|
+
category: T?.name,
|
|
6440
6441
|
category_guid: y,
|
|
6441
|
-
top_level_category_guid:
|
|
6442
|
+
top_level_category_guid: T?.parent_guid || y
|
|
6442
6443
|
});
|
|
6443
6444
|
} else
|
|
6444
6445
|
h(y);
|
|
@@ -6492,7 +6493,7 @@ const zs = ({ transaction: e }) => {
|
|
|
6492
6493
|
Me,
|
|
6493
6494
|
{
|
|
6494
6495
|
copy: {
|
|
6495
|
-
title:
|
|
6496
|
+
title: S(
|
|
6496
6497
|
c.actions_apply_to_all_transaction_types,
|
|
6497
6498
|
e.description
|
|
6498
6499
|
)
|
|
@@ -6503,7 +6504,7 @@ const zs = ({ transaction: e }) => {
|
|
|
6503
6504
|
onSecondaryAction: () => m(!1),
|
|
6504
6505
|
primaryText: c.actions_apply_to_all,
|
|
6505
6506
|
secondaryText: c.actions_this_time_only,
|
|
6506
|
-
children: /* @__PURE__ */ t(p, { children:
|
|
6507
|
+
children: /* @__PURE__ */ t(p, { children: S(
|
|
6507
6508
|
c.actions_all_past_and_future,
|
|
6508
6509
|
e.description,
|
|
6509
6510
|
E?.name
|
|
@@ -6553,7 +6554,7 @@ const zs = ({ transaction: e }) => {
|
|
|
6553
6554
|
secondaryText: r.cancel_button,
|
|
6554
6555
|
title: s.date_edit_title,
|
|
6555
6556
|
children: /* @__PURE__ */ t(b, { alignItems: "center", mt: n.Spacing.XXLarge, children: /* @__PURE__ */ t(
|
|
6556
|
-
|
|
6557
|
+
T_,
|
|
6557
6558
|
{
|
|
6558
6559
|
beginDate: Fe(u),
|
|
6559
6560
|
copy: {
|
|
@@ -6608,7 +6609,7 @@ const zs = ({ transaction: e }) => {
|
|
|
6608
6609
|
}
|
|
6609
6610
|
)
|
|
6610
6611
|
] });
|
|
6611
|
-
},
|
|
6612
|
+
}, Th = I(Eh), Sh = ({ transaction: e }) => {
|
|
6612
6613
|
const { onEvent: n } = j(), { updateTransaction: i } = Ne(), { setShouldDisableDrawerScroll: a } = Lt(), { common: o, transactions: r } = x(), [s, c] = g.useState(!1), d = async () => {
|
|
6613
6614
|
await i({ ...e, merchant_guid: "" }), n(W.TRANSACTION_DETAILS_CLICK_DELETE_LOGO, {
|
|
6614
6615
|
transaction_guid: e.guid
|
|
@@ -6648,7 +6649,7 @@ const zs = ({ transaction: e }) => {
|
|
|
6648
6649
|
}
|
|
6649
6650
|
)
|
|
6650
6651
|
] });
|
|
6651
|
-
}, Ah = I(
|
|
6652
|
+
}, Ah = I(Sh), Ih = ({ transaction: e }) => {
|
|
6652
6653
|
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 () => {
|
|
6653
6654
|
await i({ ...e, is_hidden: !e.is_hidden }), n(
|
|
6654
6655
|
d ? Y.ON_TRANSACTION_UNHIDDEN : Y.ON_TRANSACTION_HIDDEN
|
|
@@ -6923,7 +6924,7 @@ const zs = ({ transaction: e }) => {
|
|
|
6923
6924
|
const s = gt(), { transactions: c } = x(), { onEvent: d } = j(), [u, _] = g.useState("");
|
|
6924
6925
|
return g.useEffect(() => {
|
|
6925
6926
|
_(o.length <= 1 ? c.split_transaction_errors_min_splits : ""), _(
|
|
6926
|
-
o[0].amount < 0 ?
|
|
6927
|
+
o[0].amount < 0 ? S(
|
|
6927
6928
|
c.split_transaction_errors_totals_must_equal_amount,
|
|
6928
6929
|
P(r.amount, "0,0.00")
|
|
6929
6930
|
) : ""
|
|
@@ -6983,7 +6984,7 @@ const zs = ({ transaction: e }) => {
|
|
|
6983
6984
|
}, [_, h] = g.useState(!1), [m, C] = g.useState(!1), [f, E] = g.useState([]), y = () => {
|
|
6984
6985
|
const k = [...f];
|
|
6985
6986
|
k.push({ ...u }), k[0].amount -= 1, E(k);
|
|
6986
|
-
},
|
|
6987
|
+
}, T = (k) => {
|
|
6987
6988
|
if (k > 0) {
|
|
6988
6989
|
const O = f[k], U = [...f];
|
|
6989
6990
|
U.splice(k, 1), U[0].amount += O.amount, E(U);
|
|
@@ -7054,7 +7055,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7054
7055
|
{
|
|
7055
7056
|
onAddSplit: y,
|
|
7056
7057
|
onCategoryChanged: w,
|
|
7057
|
-
onDeleteSplit:
|
|
7058
|
+
onDeleteSplit: T,
|
|
7058
7059
|
onUpdateAmount: A,
|
|
7059
7060
|
splits: f,
|
|
7060
7061
|
transaction: e
|
|
@@ -7077,7 +7078,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7077
7078
|
},
|
|
7078
7079
|
primaryText: o.delete_button,
|
|
7079
7080
|
secondaryText: o.cancel_button,
|
|
7080
|
-
children: /* @__PURE__ */ t(p, { variant: "Paragraph", children:
|
|
7081
|
+
children: /* @__PURE__ */ t(p, { variant: "Paragraph", children: S(
|
|
7081
7082
|
r.split_transaction_unsplit_description,
|
|
7082
7083
|
e.description
|
|
7083
7084
|
) })
|
|
@@ -7174,7 +7175,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7174
7175
|
}, Bh = I(Gh), Hh = ({ onTagChecked: e, selectedTags: n, tag: i }) => {
|
|
7175
7176
|
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 () => {
|
|
7176
7177
|
a(Y.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED), i && await r({ ...i, name: m }), u(!1);
|
|
7177
|
-
},
|
|
7178
|
+
}, T = async () => {
|
|
7178
7179
|
a(Y.ON_TRANSACTION_TAGS_TAG_DELETED), await o(i.guid), h(!1);
|
|
7179
7180
|
};
|
|
7180
7181
|
g.useEffect(() => {
|
|
@@ -7255,7 +7256,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7255
7256
|
copy: { title: c.tags_delete_title },
|
|
7256
7257
|
isOpen: _,
|
|
7257
7258
|
onClose: () => h(!1),
|
|
7258
|
-
onPrimaryAction:
|
|
7259
|
+
onPrimaryAction: T,
|
|
7259
7260
|
onSecondaryAction: () => a(Y.ON_TRANSACTION_TAGS_TAG_DELETE_CANCEL_CLICK),
|
|
7260
7261
|
primaryText: s.delete_button,
|
|
7261
7262
|
secondaryText: s.cancel_button,
|
|
@@ -7278,7 +7279,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7278
7279
|
}
|
|
7279
7280
|
),
|
|
7280
7281
|
/* @__PURE__ */ t(kh, {}),
|
|
7281
|
-
/* @__PURE__ */ t(
|
|
7282
|
+
/* @__PURE__ */ t(Tt, { sx: { boxShadow: "none" }, children: /* @__PURE__ */ t(ie, { children: r.map((s) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
7282
7283
|
/* @__PURE__ */ t(Ph, { onTagChecked: n, selectedTags: e, tag: s }),
|
|
7283
7284
|
/* @__PURE__ */ t(H, { sx: { ml: 24 } })
|
|
7284
7285
|
] }, s.guid)) }) })
|
|
@@ -7289,8 +7290,8 @@ const zs = ({ transaction: e }) => {
|
|
|
7289
7290
|
h(e.tags);
|
|
7290
7291
|
}, [d, e]);
|
|
7291
7292
|
const m = (E) => {
|
|
7292
|
-
const y = [..._],
|
|
7293
|
-
|
|
7293
|
+
const y = [..._], T = _.indexOf(E);
|
|
7294
|
+
T >= 0 ? y.splice(T, 1) : y.push(E), h(y);
|
|
7294
7295
|
}, C = async () => {
|
|
7295
7296
|
if (e.is_manual && !e.guid) {
|
|
7296
7297
|
c({ ...e, tags: _ }), u(!1);
|
|
@@ -7299,7 +7300,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7299
7300
|
await a(_, e.guid), await o({ ...e, tags: _ }), n(W.TRANSACTION_DETAILS_CLICK_TAGS, { transaction_guid: e.guid }), u(!1);
|
|
7300
7301
|
}, f = g.useMemo(
|
|
7301
7302
|
() => e.tags.map(
|
|
7302
|
-
(E, y,
|
|
7303
|
+
(E, y, T) => `${i.find((A) => A.guid === E)?.name}${y < T.length - 1 ? " / " : ""}`
|
|
7303
7304
|
),
|
|
7304
7305
|
[i, e]
|
|
7305
7306
|
);
|
|
@@ -7432,7 +7433,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7432
7433
|
[]
|
|
7433
7434
|
), a ? /* @__PURE__ */ t(L, { className: "mx-txn-transaction-details", width: "100%", children: i && /* @__PURE__ */ l(b, { children: [
|
|
7434
7435
|
/* @__PURE__ */ l(b, { gap: 12, p: 24, children: [
|
|
7435
|
-
/* @__PURE__ */ t(
|
|
7436
|
+
/* @__PURE__ */ t(Tt, { elevation: 2, sx: { width: 64 }, children: /* @__PURE__ */ t(
|
|
7436
7437
|
rn,
|
|
7437
7438
|
{
|
|
7438
7439
|
categoryGuid: i.top_level_category_guid || "",
|
|
@@ -7454,7 +7455,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7454
7455
|
/* @__PURE__ */ t(p, { bold: !0, color: "secondary", variant: "Tiny", children: i.feed_description })
|
|
7455
7456
|
] })
|
|
7456
7457
|
] }),
|
|
7457
|
-
/* @__PURE__ */ t(
|
|
7458
|
+
/* @__PURE__ */ t(Tt, { square: !0, sx: { boxShadow: "none" }, children: /* @__PURE__ */ t(ie, { children: n.map((s, c) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
7458
7459
|
s === li.Category && /* @__PURE__ */ t(zs, { transaction: i }),
|
|
7459
7460
|
s === li.Date && /* @__PURE__ */ t(Ys, { transaction: i }),
|
|
7460
7461
|
s === li.Memo && /* @__PURE__ */ t(Xs, { transaction: i }),
|
|
@@ -7462,14 +7463,14 @@ const zs = ({ transaction: e }) => {
|
|
|
7462
7463
|
/* @__PURE__ */ t(H, { variant: c < n.length - 1 ? "inset" : "fullWidth" })
|
|
7463
7464
|
] }, s)) }) }),
|
|
7464
7465
|
/* @__PURE__ */ t(p, { bold: !0, mb: 8, ml: 26, mt: 16, variant: "Body", children: "Actions" }),
|
|
7465
|
-
/* @__PURE__ */ t(
|
|
7466
|
+
/* @__PURE__ */ t(Tt, { square: !0, sx: { boxShadow: "none" }, children: /* @__PURE__ */ l(ie, { children: [
|
|
7466
7467
|
e.map((s, c) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
7467
7468
|
s === Hi.SplitTransaction && /* @__PURE__ */ t(Lh, { transaction: i }),
|
|
7468
7469
|
s === Hi.HideTransaction && /* @__PURE__ */ t(xh, { transaction: i }),
|
|
7469
7470
|
s === Hi.MerchantLogo && /* @__PURE__ */ t(Ah, { transaction: i }),
|
|
7470
7471
|
/* @__PURE__ */ t(H, { variant: c < e.length - 1 ? "inset" : "fullWidth" })
|
|
7471
7472
|
] }, s)),
|
|
7472
|
-
i.is_manual && /* @__PURE__ */ t(
|
|
7473
|
+
i.is_manual && /* @__PURE__ */ t(Th, { transaction: i })
|
|
7473
7474
|
] }) })
|
|
7474
7475
|
] }) }) : /* @__PURE__ */ t(de, {});
|
|
7475
7476
|
}, ni = I(Yh), jh = ({ copy: e, isOpen: n, onClose: i, onPrimaryAction: a }) => {
|
|
@@ -7505,8 +7506,8 @@ const zs = ({ transaction: e }) => {
|
|
|
7505
7506
|
enter_amount: n.currency_input.enter_amount
|
|
7506
7507
|
}, m = (y) => {
|
|
7507
7508
|
c(y), r({ ...a, amount: Number(y) });
|
|
7508
|
-
}, C = (y,
|
|
7509
|
-
r({ ...a, transaction_type: Number(
|
|
7509
|
+
}, C = (y, T) => {
|
|
7510
|
+
r({ ...a, transaction_type: Number(T) });
|
|
7510
7511
|
}, f = (y) => {
|
|
7511
7512
|
u(y), r({ ...a, payee: y, description: y });
|
|
7512
7513
|
}, E = (y) => {
|
|
@@ -7611,7 +7612,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7611
7612
|
Me,
|
|
7612
7613
|
{
|
|
7613
7614
|
copy: {
|
|
7614
|
-
title:
|
|
7615
|
+
title: S(
|
|
7615
7616
|
o.actions_apply_to_all_transaction_types,
|
|
7616
7617
|
n.description
|
|
7617
7618
|
)
|
|
@@ -7622,7 +7623,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7622
7623
|
onSecondaryAction: () => u(!1),
|
|
7623
7624
|
primaryText: o.actions_apply_to_all,
|
|
7624
7625
|
secondaryText: o.actions_this_time_only,
|
|
7625
|
-
children: /* @__PURE__ */ t(p, { children:
|
|
7626
|
+
children: /* @__PURE__ */ t(p, { children: S(
|
|
7626
7627
|
o.actions_all_past_and_future,
|
|
7627
7628
|
n.description,
|
|
7628
7629
|
d?.name
|
|
@@ -7647,7 +7648,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7647
7648
|
addTransaction: f,
|
|
7648
7649
|
filter: E,
|
|
7649
7650
|
loadAssociatedBeats: y,
|
|
7650
|
-
setFilter:
|
|
7651
|
+
setFilter: T,
|
|
7651
7652
|
sortedTransactions: A,
|
|
7652
7653
|
tags: w,
|
|
7653
7654
|
transactions: v,
|
|
@@ -7659,16 +7660,16 @@ const zs = ({ transaction: e }) => {
|
|
|
7659
7660
|
selectedAccountGuids: ue,
|
|
7660
7661
|
setDisplayedDate: te,
|
|
7661
7662
|
setSelectedAccounts: ge
|
|
7662
|
-
} = le(), [De, Re] = g.useState(""), [
|
|
7663
|
+
} = le(), [De, Re] = g.useState(""), [Te, Oe] = g.useState(""), [It, Q] = g.useState(!1), [ne, Ue] = g.useState(!1), [Qe, K] = g.useState(!1);
|
|
7663
7664
|
g.useEffect(() => {
|
|
7664
7665
|
const rt = o.filter(($n) => !$n.is_hidden), Lo = Ze(he()), Mo = Ye(he());
|
|
7665
|
-
ge(rt), te(Lo, Mo),
|
|
7666
|
+
ge(rt), te(Lo, Mo), T({
|
|
7666
7667
|
accounts: rt.map(($n) => $n.guid),
|
|
7667
7668
|
custom: ($n) => !$n.accountIsClosed && !$n.accountIsHidden,
|
|
7668
7669
|
dateRange: { start: Lo, end: Mo }
|
|
7669
7670
|
}), K(!0), k(W.TRANSACTIONS_VIEW);
|
|
7670
7671
|
}, [o]), g.useEffect(() => {
|
|
7671
|
-
Qe && (
|
|
7672
|
+
Qe && (T({
|
|
7672
7673
|
...E,
|
|
7673
7674
|
accounts: ue,
|
|
7674
7675
|
dateRange: { start: O.start, end: O.end }
|
|
@@ -7679,10 +7680,10 @@ const zs = ({ transaction: e }) => {
|
|
|
7679
7680
|
const Le = g.useMemo(
|
|
7680
7681
|
() => o.filter((rt) => rt.is_manual),
|
|
7681
7682
|
[o]
|
|
7682
|
-
), Ge =
|
|
7683
|
+
), Ge = Te ? v.find((rt) => rt.guid === Te) : void 0, Pt = u && !!d.payee && !!d.account_guid && !!d.category_guid, dt = (rt) => {
|
|
7683
7684
|
te(rt[0], rt[1]);
|
|
7684
7685
|
}, ii = (rt) => {
|
|
7685
|
-
h(rt),
|
|
7686
|
+
h(rt), T({
|
|
7686
7687
|
...E,
|
|
7687
7688
|
searchTerm: rt
|
|
7688
7689
|
}), k(W.TRANSACTIONS_CLICK_SEARCH, { search_term: rt });
|
|
@@ -7914,7 +7915,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7914
7915
|
value: i || 0
|
|
7915
7916
|
}
|
|
7916
7917
|
),
|
|
7917
|
-
e === me.EveryYear && /* @__PURE__ */ t(
|
|
7918
|
+
e === me.EveryYear && /* @__PURE__ */ t(Si, { dateAdapter: Qn, children: /* @__PURE__ */ t(
|
|
7918
7919
|
Ya,
|
|
7919
7920
|
{
|
|
7920
7921
|
disablePast: !0,
|
|
@@ -7980,7 +7981,7 @@ const zs = ({ transaction: e }) => {
|
|
|
7980
7981
|
const E = g.useMemo(
|
|
7981
7982
|
() => c.find((w) => w.guid === C),
|
|
7982
7983
|
[C, c]
|
|
7983
|
-
), y = n.repeating_transaction_type === an.Income,
|
|
7984
|
+
), y = n.repeating_transaction_type === an.Income, T = async () => {
|
|
7984
7985
|
await r(n.guid), e();
|
|
7985
7986
|
}, A = () => {
|
|
7986
7987
|
m(!0), o(W.RECURRING_TRANSACTIONS_DETAILS_CLICK_DELETE);
|
|
@@ -8064,7 +8065,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8064
8065
|
},
|
|
8065
8066
|
isOpen: h,
|
|
8066
8067
|
onClose: () => m(!1),
|
|
8067
|
-
onPrimaryAction:
|
|
8068
|
+
onPrimaryAction: T,
|
|
8068
8069
|
children: /* @__PURE__ */ t(p, { children: y ? i.delete_income_description : i.delete_expense_description })
|
|
8069
8070
|
}
|
|
8070
8071
|
)
|
|
@@ -8221,7 +8222,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8221
8222
|
label: n,
|
|
8222
8223
|
onAddRecurringTransaction: i = () => null
|
|
8223
8224
|
}) => {
|
|
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), [
|
|
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), [T, A] = g.useState(15), w = g.useMemo(
|
|
8225
8226
|
() => s.find((M) => M.guid === h),
|
|
8226
8227
|
[h, s]
|
|
8227
8228
|
), v = () => {
|
|
@@ -8243,7 +8244,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8243
8244
|
recurrence_day: E,
|
|
8244
8245
|
recurrence_type: C,
|
|
8245
8246
|
repeating_transaction_type: e ? an.Income : an.Bill,
|
|
8246
|
-
second_recurrence_day:
|
|
8247
|
+
second_recurrence_day: T,
|
|
8247
8248
|
transaction_type: w.transaction_type,
|
|
8248
8249
|
user_guid: d.guid
|
|
8249
8250
|
};
|
|
@@ -8298,7 +8299,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8298
8299
|
onFirstDayChange: y,
|
|
8299
8300
|
onFrequencyChange: f,
|
|
8300
8301
|
onSecondDayChange: A,
|
|
8301
|
-
secondDay:
|
|
8302
|
+
secondDay: T,
|
|
8302
8303
|
transaction: w
|
|
8303
8304
|
}
|
|
8304
8305
|
)
|
|
@@ -8465,7 +8466,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8465
8466
|
}, s = /* @__PURE__ */ t(
|
|
8466
8467
|
ja,
|
|
8467
8468
|
{
|
|
8468
|
-
maxDate: Ye(
|
|
8469
|
+
maxDate: Ye(St(/* @__PURE__ */ new Date(), 1)),
|
|
8469
8470
|
minDate: Ze(/* @__PURE__ */ new Date()),
|
|
8470
8471
|
onMonthChange: r,
|
|
8471
8472
|
showDaysOutsideCurrentMonth: !0,
|
|
@@ -8508,7 +8509,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8508
8509
|
views: ["day"]
|
|
8509
8510
|
}
|
|
8510
8511
|
);
|
|
8511
|
-
return /* @__PURE__ */ t(b, { justifyContent: "center", children: /* @__PURE__ */ l(
|
|
8512
|
+
return /* @__PURE__ */ t(b, { justifyContent: "center", children: /* @__PURE__ */ l(Si, { dateAdapter: Qn, children: [
|
|
8512
8513
|
i && s,
|
|
8513
8514
|
!i && s,
|
|
8514
8515
|
/* @__PURE__ */ t(og, {})
|
|
@@ -8527,7 +8528,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8527
8528
|
}, sg = (e, n) => {
|
|
8528
8529
|
switch (e.status) {
|
|
8529
8530
|
case Je.Paid:
|
|
8530
|
-
return e.expectedDate ?
|
|
8531
|
+
return e.expectedDate ? S(
|
|
8531
8532
|
n.paid_on,
|
|
8532
8533
|
se(
|
|
8533
8534
|
e.occurredOnDate || e.expectedDate,
|
|
@@ -8535,12 +8536,12 @@ const zs = ({ transaction: e }) => {
|
|
|
8535
8536
|
)
|
|
8536
8537
|
) : n.paid;
|
|
8537
8538
|
case Je.Missed:
|
|
8538
|
-
return
|
|
8539
|
+
return S(
|
|
8539
8540
|
n.missed_on,
|
|
8540
8541
|
se(e.expectedDate, oe.MONTH_DAY)
|
|
8541
8542
|
);
|
|
8542
8543
|
case Je.Upcoming:
|
|
8543
|
-
return
|
|
8544
|
+
return S(
|
|
8544
8545
|
n.upcoming_on,
|
|
8545
8546
|
se(e.expectedDate, oe.MONTH_DAY)
|
|
8546
8547
|
);
|
|
@@ -8731,7 +8732,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8731
8732
|
selectedDay: m,
|
|
8732
8733
|
selectedDayRecurrences: C,
|
|
8733
8734
|
upcomingRecurrences: f
|
|
8734
|
-
} = ze(), [E, y] = g.useState(0),
|
|
8735
|
+
} = ze(), [E, y] = g.useState(0), T = (v, R) => {
|
|
8735
8736
|
y(R);
|
|
8736
8737
|
}, A = (v) => {
|
|
8737
8738
|
a(W.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
|
|
@@ -8772,7 +8773,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8772
8773
|
}
|
|
8773
8774
|
),
|
|
8774
8775
|
(i || n) && /* @__PURE__ */ l(b, { children: [
|
|
8775
|
-
/* @__PURE__ */ l(qt, { onChange:
|
|
8776
|
+
/* @__PURE__ */ l(qt, { onChange: T, value: E, variant: "fullWidth", children: [
|
|
8776
8777
|
/* @__PURE__ */ t(
|
|
8777
8778
|
et,
|
|
8778
8779
|
{
|
|
@@ -8809,7 +8810,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8809
8810
|
{
|
|
8810
8811
|
onRecurrenceClick: w,
|
|
8811
8812
|
recurrences: C || u,
|
|
8812
|
-
title: m ?
|
|
8813
|
+
title: m ? S(
|
|
8813
8814
|
e.day_transactions,
|
|
8814
8815
|
se(m, oe.MONTH_DAY)
|
|
8815
8816
|
) : e.paid_activity
|
|
@@ -8875,7 +8876,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8875
8876
|
onResetClick: i ? () => o(i) : void 0,
|
|
8876
8877
|
recurrences: a || r.slice(0, 5),
|
|
8877
8878
|
sx: { width: s ? "100%" : "calc(100% - 336px)", mt: 12 },
|
|
8878
|
-
title: i ?
|
|
8879
|
+
title: i ? S(
|
|
8879
8880
|
e.day_transactions,
|
|
8880
8881
|
se(i, oe.MONTH_DAY)
|
|
8881
8882
|
) : e.upcoming_activity
|
|
@@ -8999,7 +9000,7 @@ const zs = ({ transaction: e }) => {
|
|
|
8999
9000
|
accounts: o
|
|
9000
9001
|
}), s().finally());
|
|
9001
9002
|
}, [a]);
|
|
9002
|
-
const { onEvent: E } = j(), y = pe(),
|
|
9003
|
+
const { onEvent: E } = j(), y = pe(), T = Wt("(max-width:288px)"), A = Wt("(min-width:450px)"), w = g.useMemo(() => {
|
|
9003
9004
|
const O = [
|
|
9004
9005
|
{ color: y.palette.success.main, percentage: `${_ / d}` }
|
|
9005
9006
|
];
|
|
@@ -9058,7 +9059,7 @@ const zs = ({ transaction: e }) => {
|
|
|
9058
9059
|
b,
|
|
9059
9060
|
{
|
|
9060
9061
|
sx: [
|
|
9061
|
-
v.length >= 10 &&
|
|
9062
|
+
v.length >= 10 && T ? { flexDirection: "column" } : { flexDirection: "row", gap: 2 },
|
|
9062
9063
|
{
|
|
9063
9064
|
alignItems: "baseline",
|
|
9064
9065
|
width: 180
|
|
@@ -9070,7 +9071,7 @@ const zs = ({ transaction: e }) => {
|
|
|
9070
9071
|
]
|
|
9071
9072
|
}
|
|
9072
9073
|
),
|
|
9073
|
-
|
|
9074
|
+
T ? /* @__PURE__ */ t(
|
|
9074
9075
|
_g,
|
|
9075
9076
|
{
|
|
9076
9077
|
logoSize: B,
|
|
@@ -9098,7 +9099,7 @@ const zs = ({ transaction: e }) => {
|
|
|
9098
9099
|
amount: O.amount,
|
|
9099
9100
|
bgcolor: O.bgColor,
|
|
9100
9101
|
isLargeScreen: A,
|
|
9101
|
-
isSmallScreen:
|
|
9102
|
+
isSmallScreen: T,
|
|
9102
9103
|
label: O.label
|
|
9103
9104
|
},
|
|
9104
9105
|
`recurrence-legend-${U}`
|
|
@@ -9125,7 +9126,7 @@ class Er {
|
|
|
9125
9126
|
).then((i) => i.repeating_transaction);
|
|
9126
9127
|
deleteRepeatingTransaction = async (n) => this.fetchInstance.delete(`${G.REPEATING_TRANSACTIONS}/${n}`).then((i) => i);
|
|
9127
9128
|
}
|
|
9128
|
-
const
|
|
9129
|
+
const Tr = (e) => $a(e.expectedDate, {
|
|
9129
9130
|
start: Ze(he()),
|
|
9130
9131
|
end: Ye(he())
|
|
9131
9132
|
}), si = (e, n) => e + n.amount;
|
|
@@ -9215,13 +9216,13 @@ class gg {
|
|
|
9215
9216
|
* Returns the expense recurrences for the current month.
|
|
9216
9217
|
*/
|
|
9217
9218
|
get currentMonthExpenses() {
|
|
9218
|
-
return this.expenses.filter(
|
|
9219
|
+
return this.expenses.filter(Tr);
|
|
9219
9220
|
}
|
|
9220
9221
|
/**
|
|
9221
9222
|
* Returns the income recurrences for the current month.
|
|
9222
9223
|
*/
|
|
9223
9224
|
get currentMonthIncome() {
|
|
9224
|
-
return this.income.filter(
|
|
9225
|
+
return this.income.filter(Tr);
|
|
9225
9226
|
}
|
|
9226
9227
|
/**
|
|
9227
9228
|
* Calculates the total amount of all expenses for the current month.
|
|
@@ -9361,9 +9362,9 @@ const mg = {
|
|
|
9361
9362
|
event: "account_details_click_account_name",
|
|
9362
9363
|
label: n.account_name,
|
|
9363
9364
|
name: "user_name",
|
|
9364
|
-
placeholder:
|
|
9365
|
+
placeholder: S(n.enter_value, n.account_name),
|
|
9365
9366
|
type: vt.Input,
|
|
9366
|
-
validation: (a) => a ? "" :
|
|
9367
|
+
validation: (a) => a ? "" : S(n.field_is_required, n.account_name),
|
|
9367
9368
|
valueFormatter: (a) => a
|
|
9368
9369
|
}
|
|
9369
9370
|
];
|
|
@@ -9371,7 +9372,7 @@ const mg = {
|
|
|
9371
9372
|
i.unshift({
|
|
9372
9373
|
label: n.account_balance,
|
|
9373
9374
|
name: "balance",
|
|
9374
|
-
placeholder:
|
|
9375
|
+
placeholder: S(n.enter_value, n.account_balance),
|
|
9375
9376
|
type: vt.Currency,
|
|
9376
9377
|
valueFormatter: (o) => P(o, "0,0.00")
|
|
9377
9378
|
});
|
|
@@ -9384,7 +9385,7 @@ const mg = {
|
|
|
9384
9385
|
label: n.account_type,
|
|
9385
9386
|
name: "account_type",
|
|
9386
9387
|
options: a,
|
|
9387
|
-
placeholder:
|
|
9388
|
+
placeholder: S(n.select_value, n.account_type),
|
|
9388
9389
|
type: vt.Select,
|
|
9389
9390
|
valueFormatter: (o) => a.find((r) => r.value === o)?.label
|
|
9390
9391
|
});
|
|
@@ -9399,7 +9400,7 @@ const mg = {
|
|
|
9399
9400
|
label: n.property_type,
|
|
9400
9401
|
name: "property_type",
|
|
9401
9402
|
options: a,
|
|
9402
|
-
placeholder:
|
|
9403
|
+
placeholder: S(n.select_value, n.property_type),
|
|
9403
9404
|
type: vt.Select,
|
|
9404
9405
|
valueFormatter: (o) => a.find((r) => r.value === o)?.label
|
|
9405
9406
|
});
|
|
@@ -9410,7 +9411,7 @@ const mg = {
|
|
|
9410
9411
|
event: "account_details_click_interest_rate",
|
|
9411
9412
|
label: a,
|
|
9412
9413
|
name: o,
|
|
9413
|
-
placeholder:
|
|
9414
|
+
placeholder: S(n.enter_value, a),
|
|
9414
9415
|
type: vt.Input,
|
|
9415
9416
|
validation: (r) => La(r) ? "" : n.error_amount_is_invalid,
|
|
9416
9417
|
valueFormatter: (r) => La(r) ? vi(r / 100) : r
|
|
@@ -9419,7 +9420,7 @@ const mg = {
|
|
|
9419
9420
|
return Eo(e) && (i.push({
|
|
9420
9421
|
label: n.minimum_payment,
|
|
9421
9422
|
name: "minimum_payment",
|
|
9422
|
-
placeholder:
|
|
9423
|
+
placeholder: S(n.enter_value, n.minimum_payment),
|
|
9423
9424
|
type: vt.Currency,
|
|
9424
9425
|
valueFormatter: (a) => P(a, "0,0.00")
|
|
9425
9426
|
}), e.payment_due_at ? i.push({
|
|
@@ -9433,23 +9434,23 @@ const mg = {
|
|
|
9433
9434
|
}) : i.push({
|
|
9434
9435
|
label: n.day_payment_due,
|
|
9435
9436
|
name: "day_payment_is_due",
|
|
9436
|
-
placeholder:
|
|
9437
|
+
placeholder: S(n.enter_value, n.day_payment_due),
|
|
9437
9438
|
type: vt.Date,
|
|
9438
|
-
valueFormatter: (a) =>
|
|
9439
|
+
valueFormatter: (a) => S(
|
|
9439
9440
|
n.day_of_every_month,
|
|
9440
9441
|
Ci(a <= 31 ? a : new Date(a).getDate())
|
|
9441
9442
|
)
|
|
9442
9443
|
})), fg(e) && i.push({
|
|
9443
9444
|
label: n.credit_limit,
|
|
9444
9445
|
name: "credit_limit",
|
|
9445
|
-
placeholder:
|
|
9446
|
+
placeholder: S(n.enter_value, n.credit_limit),
|
|
9446
9447
|
type: vt.Currency,
|
|
9447
9448
|
valueFormatter: (a) => P(a, "0,0.00")
|
|
9448
9449
|
}), yg(e) && i.push({
|
|
9449
9450
|
label: n.original_balance,
|
|
9450
9451
|
minAmount: 1,
|
|
9451
9452
|
name: "original_balance",
|
|
9452
|
-
placeholder:
|
|
9453
|
+
placeholder: S(n.enter_value, n.original_balance),
|
|
9453
9454
|
type: vt.Currency,
|
|
9454
9455
|
valueFormatter: (a) => P(a, "0,0.00")
|
|
9455
9456
|
}), i;
|
|
@@ -9464,7 +9465,7 @@ const mg = {
|
|
|
9464
9465
|
default:
|
|
9465
9466
|
if (i = n.current_balance, a = e.balance, e.minimum_payment && e.payment_due_at) {
|
|
9466
9467
|
const c = typeof e.payment_due_at == "number" ? new Date(e.payment_due_at * 1e3) : e.payment_due_at;
|
|
9467
|
-
o = /* @__PURE__ */ t(p, { component: "strong", variant: "XSmall", children:
|
|
9468
|
+
o = /* @__PURE__ */ t(p, { component: "strong", variant: "XSmall", children: S(
|
|
9468
9469
|
n.payment_due_on,
|
|
9469
9470
|
P(e.minimum_payment, "0,0.00"),
|
|
9470
9471
|
se(c, oe.FULL_MONTH_DAY)
|
|
@@ -9478,7 +9479,7 @@ const mg = {
|
|
|
9478
9479
|
secondValue: r,
|
|
9479
9480
|
hasAvailableBalance: s
|
|
9480
9481
|
};
|
|
9481
|
-
},
|
|
9482
|
+
}, Tg = ({
|
|
9482
9483
|
account: e,
|
|
9483
9484
|
onRowClick: n,
|
|
9484
9485
|
listItemProps: i,
|
|
@@ -9488,7 +9489,6 @@ const mg = {
|
|
|
9488
9489
|
e,
|
|
9489
9490
|
r
|
|
9490
9491
|
);
|
|
9491
|
-
console.log(s, "firstSubtitle"), console.log(c, "firstValue"), console.log(d, "secondSubtitle"), console.log(u, "secondValue");
|
|
9492
9492
|
let _;
|
|
9493
9493
|
(e.connectionStatus === Ln.Error || e.connectionStatus === Ln.RequiresMfa) && (_ = /* @__PURE__ */ t(pg, { size: 16 }));
|
|
9494
9494
|
const h = /* @__PURE__ */ l(q, { children: [
|
|
@@ -9544,7 +9544,7 @@ const mg = {
|
|
|
9544
9544
|
children: n ? /* @__PURE__ */ t(_e, { alignItems: "flex-start", onClick: n, sx: { px: 24 }, children: h }) : h
|
|
9545
9545
|
}
|
|
9546
9546
|
);
|
|
9547
|
-
}, bi = I(
|
|
9547
|
+
}, bi = I(Tg), Sg = ({ remaining: e }) => /* @__PURE__ */ t(
|
|
9548
9548
|
z,
|
|
9549
9549
|
{
|
|
9550
9550
|
sx: {
|
|
@@ -9578,7 +9578,7 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
9578
9578
|
)
|
|
9579
9579
|
] }),
|
|
9580
9580
|
/* @__PURE__ */ t(H, {})
|
|
9581
|
-
] }),
|
|
9581
|
+
] }), Sr = I(Ag), Ig = ({ total: e, type: n }) => {
|
|
9582
9582
|
const { cashflow: i } = x();
|
|
9583
9583
|
return /* @__PURE__ */ l(q, { children: [
|
|
9584
9584
|
/* @__PURE__ */ l(
|
|
@@ -9653,7 +9653,7 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
9653
9653
|
{
|
|
9654
9654
|
subheader: /* @__PURE__ */ t(Ar, { total: u, type: yi.INCOME }),
|
|
9655
9655
|
sx: { width: "100%" },
|
|
9656
|
-
children: c.map((h) => /* @__PURE__ */ t(
|
|
9656
|
+
children: c.map((h) => /* @__PURE__ */ t(Sr, { recurrence: h }, h.repeatingTransactionGuid))
|
|
9657
9657
|
}
|
|
9658
9658
|
) }),
|
|
9659
9659
|
d.length > 0 && /* @__PURE__ */ t(z, { children: /* @__PURE__ */ t(
|
|
@@ -9661,11 +9661,11 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
9661
9661
|
{
|
|
9662
9662
|
subheader: /* @__PURE__ */ t(Ar, { total: _, type: yi.EXPENSE }),
|
|
9663
9663
|
sx: { width: "100%" },
|
|
9664
|
-
children: d.map((h) => /* @__PURE__ */ t(
|
|
9664
|
+
children: d.map((h) => /* @__PURE__ */ t(Sr, { recurrence: h }, h.repeatingTransactionGuid))
|
|
9665
9665
|
}
|
|
9666
9666
|
) }),
|
|
9667
9667
|
/* @__PURE__ */ t(
|
|
9668
|
-
|
|
9668
|
+
Sg,
|
|
9669
9669
|
{
|
|
9670
9670
|
remaining: (s.available_balance || s.balance || 0) + u - _
|
|
9671
9671
|
}
|
|
@@ -9986,9 +9986,9 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
9986
9986
|
() => a.filter(Ir(o, r)),
|
|
9987
9987
|
[r, o, a]
|
|
9988
9988
|
), m = g.useMemo(
|
|
9989
|
-
() => s.reduce((
|
|
9989
|
+
() => s.reduce((T, A) => T + (A?.balance || 0), 0),
|
|
9990
9990
|
[s]
|
|
9991
|
-
), C = _.reduce((
|
|
9991
|
+
), C = _.reduce((T, A) => T + A.amount, 0), f = h.reduce((T, A) => T + A.amount, 0), E = m - C + f, y = e < 725;
|
|
9992
9992
|
return /* @__PURE__ */ l(b, { sx: { mx: y ? 16 : 0, my: y ? 24 : 42 }, children: [
|
|
9993
9993
|
/* @__PURE__ */ l(
|
|
9994
9994
|
b,
|
|
@@ -10159,11 +10159,11 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10159
10159
|
transform: rotate(360deg);
|
|
10160
10160
|
}
|
|
10161
10161
|
`, 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((
|
|
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), [T, 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(
|
|
10163
|
+
() => h.find((Te) => Te.guid === U),
|
|
10164
10164
|
[U, h]
|
|
10165
10165
|
), te = !!n.filter(
|
|
10166
|
-
(
|
|
10166
|
+
(Te) => Te.repeating_transaction_type === an.Income
|
|
10167
10167
|
).length, ge = async () => {
|
|
10168
10168
|
D(2), d(
|
|
10169
10169
|
// Beginning of the month, 90 days before today
|
|
@@ -10173,8 +10173,8 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10173
10173
|
}, De = async () => {
|
|
10174
10174
|
if (!(k.length < 1)) {
|
|
10175
10175
|
B(!0);
|
|
10176
|
-
for (let
|
|
10177
|
-
const Oe = k[
|
|
10176
|
+
for (let Te = 0; Te < k.length; Te++) {
|
|
10177
|
+
const Oe = k[Te], It = Ga(E, Fe(Oe.date)), Q = {
|
|
10178
10178
|
account_guid: Oe.account_guid,
|
|
10179
10179
|
amount: Oe.amount,
|
|
10180
10180
|
merchant_guid: Oe.merchant_guid,
|
|
@@ -10232,13 +10232,13 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10232
10232
|
/* @__PURE__ */ t(Xt, { pb: 12, children: i.add_income_title }),
|
|
10233
10233
|
/* @__PURE__ */ t(ve, { mb: 24, children: i.add_income_description }),
|
|
10234
10234
|
k.length > 0 && !ue && /* @__PURE__ */ l(q, { children: [
|
|
10235
|
-
/* @__PURE__ */ t(ie, { children: k.map((
|
|
10235
|
+
/* @__PURE__ */ t(ie, { children: k.map((Te, Oe) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
10236
10236
|
/* @__PURE__ */ t(go, { bgcolor: "background.paper", children: ra(
|
|
10237
|
-
He(
|
|
10237
|
+
He(Te.nextDate || Te.date)
|
|
10238
10238
|
) }),
|
|
10239
|
-
/* @__PURE__ */ t(ho, { transaction:
|
|
10239
|
+
/* @__PURE__ */ t(ho, { transaction: Te }),
|
|
10240
10240
|
Oe !== k.length - 1 && /* @__PURE__ */ t(H, {})
|
|
10241
|
-
] },
|
|
10241
|
+
] }, Te.guid)) }),
|
|
10242
10242
|
/* @__PURE__ */ l(b, { alignItems: "center", direction: "row", children: [
|
|
10243
10243
|
/* @__PURE__ */ t(H, { sx: { flexGrow: 1 } }),
|
|
10244
10244
|
/* @__PURE__ */ t(
|
|
@@ -10255,12 +10255,12 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10255
10255
|
ec,
|
|
10256
10256
|
{
|
|
10257
10257
|
bgcolor: "background.paper",
|
|
10258
|
-
onSearch: (
|
|
10258
|
+
onSearch: (Te) => _({
|
|
10259
10259
|
...u,
|
|
10260
|
-
custom: (Oe) =>
|
|
10260
|
+
custom: (Oe) => Te ? nc(Oe, Te) : fi(Oe)
|
|
10261
10261
|
}),
|
|
10262
|
-
onSelected: (
|
|
10263
|
-
ee(
|
|
10262
|
+
onSelected: (Te) => {
|
|
10263
|
+
ee(Te), f(!1);
|
|
10264
10264
|
}
|
|
10265
10265
|
}
|
|
10266
10266
|
),
|
|
@@ -10270,7 +10270,7 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10270
10270
|
tc,
|
|
10271
10271
|
{
|
|
10272
10272
|
bgcolor: "background.paper",
|
|
10273
|
-
firstDay:
|
|
10273
|
+
firstDay: T,
|
|
10274
10274
|
frequency: E,
|
|
10275
10275
|
onFirstDayChange: A,
|
|
10276
10276
|
onFrequencyChange: y,
|
|
@@ -10285,12 +10285,12 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10285
10285
|
{
|
|
10286
10286
|
"aria-disabled": !ue,
|
|
10287
10287
|
onClick: () => {
|
|
10288
|
-
const
|
|
10289
|
-
|
|
10288
|
+
const Te = [...k];
|
|
10289
|
+
Te.push({
|
|
10290
10290
|
...ue,
|
|
10291
10291
|
nextDate: Ga(E, Fe(ue.date)),
|
|
10292
10292
|
frequency: E
|
|
10293
|
-
}), O(
|
|
10293
|
+
}), O(Te), ee("");
|
|
10294
10294
|
},
|
|
10295
10295
|
variant: "contained",
|
|
10296
10296
|
children: a.confirm_button
|
|
@@ -10342,7 +10342,7 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10342
10342
|
setSelectedAccounts: o,
|
|
10343
10343
|
shouldDisableNextDate: r,
|
|
10344
10344
|
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(), [
|
|
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(), [T, A] = g.useState(!1);
|
|
10346
10346
|
return g.useEffect(() => {
|
|
10347
10347
|
y && C().finally();
|
|
10348
10348
|
}, [y]), g.useEffect(() => {
|
|
@@ -10388,7 +10388,7 @@ const Ag = ({ recurrence: e }) => /* @__PURE__ */ l(q, { children: [
|
|
|
10388
10388
|
ce,
|
|
10389
10389
|
{
|
|
10390
10390
|
ariaLabelClose: f.close_settings_aria,
|
|
10391
|
-
isOpen:
|
|
10391
|
+
isOpen: T,
|
|
10392
10392
|
onClose: () => A(!1),
|
|
10393
10393
|
shouldShowHeaderBorders: !1,
|
|
10394
10394
|
title: f.cashflow_settings,
|
|
@@ -10501,12 +10501,12 @@ function Vg(e, n, i = 0) {
|
|
|
10501
10501
|
const f = (m.interest_rate ?? 0) / 100 / 12, E = m.balance * f;
|
|
10502
10502
|
let y = m.monthly_payment ?? 0;
|
|
10503
10503
|
h === 0 && i && (y += i), m.balance += E;
|
|
10504
|
-
const
|
|
10505
|
-
if (
|
|
10504
|
+
const T = Math.min(m.balance, y + r);
|
|
10505
|
+
if (T <= E) {
|
|
10506
10506
|
m.is_impossible = !0;
|
|
10507
10507
|
continue;
|
|
10508
10508
|
}
|
|
10509
|
-
m.balance -=
|
|
10509
|
+
m.balance -= T, m.balance = m.balance < 0.01 ? 0 : m.balance, o += E, m.balance <= 0 && (r += y), T > 0 && (_ = !0);
|
|
10510
10510
|
}
|
|
10511
10511
|
_ && c.setMonth(c.getMonth() + 1);
|
|
10512
10512
|
}
|
|
@@ -10628,13 +10628,13 @@ const un = () => {
|
|
|
10628
10628
|
}
|
|
10629
10629
|
),
|
|
10630
10630
|
/* @__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:
|
|
10631
|
+
/* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: S(o.snowball_drawer_month_header, 1) }),
|
|
10632
10632
|
/* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: o.snowball_drawer_payment_header })
|
|
10633
10633
|
] }),
|
|
10634
10634
|
/* @__PURE__ */ l(ye, { bgcolor: a.palette.background.paper, mb: 24, children: [
|
|
10635
10635
|
/* @__PURE__ */ l(ye, { alignItems: "center", flexDirection: "row", pl: 24, children: [
|
|
10636
10636
|
/* @__PURE__ */ t(
|
|
10637
|
-
|
|
10637
|
+
Sn,
|
|
10638
10638
|
{
|
|
10639
10639
|
sx: {
|
|
10640
10640
|
display: "flex",
|
|
@@ -10661,13 +10661,13 @@ const un = () => {
|
|
|
10661
10661
|
},
|
|
10662
10662
|
children: [
|
|
10663
10663
|
/* @__PURE__ */ l(ye, { flexGrow: 1, children: [
|
|
10664
|
-
/* @__PURE__ */ t(p, { variant: "Body", children:
|
|
10664
|
+
/* @__PURE__ */ t(p, { variant: "Body", children: S(o.snowball_drawer_debt_label, "A") }),
|
|
10665
10665
|
/* @__PURE__ */ l(p, { color: a.palette.secondary.main, variant: "XSmall", children: [
|
|
10666
|
-
|
|
10666
|
+
S(
|
|
10667
10667
|
o.snowball_drawer_rollover_explainer_pt1,
|
|
10668
10668
|
"$100"
|
|
10669
10669
|
),
|
|
10670
|
-
/* @__PURE__ */ t("strong", { children:
|
|
10670
|
+
/* @__PURE__ */ t("strong", { children: S(o.snowball_drawer_debt_label, "B") }),
|
|
10671
10671
|
o.snowball_drawer_rollover_explainer_pt2
|
|
10672
10672
|
] })
|
|
10673
10673
|
] }),
|
|
@@ -10690,7 +10690,7 @@ const un = () => {
|
|
|
10690
10690
|
] }),
|
|
10691
10691
|
/* @__PURE__ */ l(ye, { alignItems: "center", flexDirection: "row", pl: 24, children: [
|
|
10692
10692
|
/* @__PURE__ */ t(
|
|
10693
|
-
|
|
10693
|
+
Sn,
|
|
10694
10694
|
{
|
|
10695
10695
|
sx: {
|
|
10696
10696
|
width: 20,
|
|
@@ -10712,7 +10712,7 @@ const un = () => {
|
|
|
10712
10712
|
pr: 24
|
|
10713
10713
|
},
|
|
10714
10714
|
children: [
|
|
10715
|
-
/* @__PURE__ */ t(p, { flexGrow: 1, variant: "Body", children:
|
|
10715
|
+
/* @__PURE__ */ t(p, { flexGrow: 1, variant: "Body", children: S(o.snowball_drawer_debt_label, "B") }),
|
|
10716
10716
|
/* @__PURE__ */ t(p, { variant: "Body", children: "$400.00" })
|
|
10717
10717
|
]
|
|
10718
10718
|
}
|
|
@@ -10720,7 +10720,7 @@ const un = () => {
|
|
|
10720
10720
|
] }),
|
|
10721
10721
|
/* @__PURE__ */ l(ye, { alignItems: "center", flexDirection: "row", pl: 24, py: 14, children: [
|
|
10722
10722
|
/* @__PURE__ */ t(
|
|
10723
|
-
|
|
10723
|
+
Sn,
|
|
10724
10724
|
{
|
|
10725
10725
|
sx: {
|
|
10726
10726
|
width: 20,
|
|
@@ -10732,7 +10732,7 @@ const un = () => {
|
|
|
10732
10732
|
}
|
|
10733
10733
|
),
|
|
10734
10734
|
/* @__PURE__ */ l(ye, { flexDirection: "row", flexGrow: 1, pr: 24, children: [
|
|
10735
|
-
/* @__PURE__ */ t(p, { flexGrow: 1, variant: "Body", children:
|
|
10735
|
+
/* @__PURE__ */ t(p, { flexGrow: 1, variant: "Body", children: S(o.snowball_drawer_debt_label, "C") }),
|
|
10736
10736
|
/* @__PURE__ */ t(p, { variant: "Body", children: "$1,000.00" })
|
|
10737
10737
|
] })
|
|
10738
10738
|
] }),
|
|
@@ -10755,13 +10755,13 @@ const un = () => {
|
|
|
10755
10755
|
)
|
|
10756
10756
|
] }),
|
|
10757
10757
|
/* @__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:
|
|
10758
|
+
/* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: S(o.snowball_drawer_month_header, 2) }),
|
|
10759
10759
|
/* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: o.snowball_drawer_payment_header })
|
|
10760
10760
|
] }),
|
|
10761
10761
|
/* @__PURE__ */ l(ye, { bgcolor: a.palette.background.paper, mb: 24, children: [
|
|
10762
10762
|
/* @__PURE__ */ l(ye, { alignItems: "center", flexDirection: "row", pl: 24, children: [
|
|
10763
10763
|
/* @__PURE__ */ t(
|
|
10764
|
-
|
|
10764
|
+
Sn,
|
|
10765
10765
|
{
|
|
10766
10766
|
sx: {
|
|
10767
10767
|
display: "flex",
|
|
@@ -10788,13 +10788,13 @@ const un = () => {
|
|
|
10788
10788
|
},
|
|
10789
10789
|
children: [
|
|
10790
10790
|
/* @__PURE__ */ l(ye, { flexGrow: 1, children: [
|
|
10791
|
-
/* @__PURE__ */ t(p, { variant: "Body", children:
|
|
10791
|
+
/* @__PURE__ */ t(p, { variant: "Body", children: S(o.snowball_drawer_debt_label, "B") }),
|
|
10792
10792
|
/* @__PURE__ */ l(p, { color: a.palette.secondary.main, variant: "XSmall", children: [
|
|
10793
|
-
|
|
10793
|
+
S(
|
|
10794
10794
|
o.snowball_drawer_rollover_explainer_pt1,
|
|
10795
10795
|
"$500"
|
|
10796
10796
|
),
|
|
10797
|
-
/* @__PURE__ */ t("strong", { children:
|
|
10797
|
+
/* @__PURE__ */ t("strong", { children: S(o.snowball_drawer_debt_label, "C") }),
|
|
10798
10798
|
o.snowball_drawer_rollover_explainer_pt2
|
|
10799
10799
|
] })
|
|
10800
10800
|
] }),
|
|
@@ -10817,7 +10817,7 @@ const un = () => {
|
|
|
10817
10817
|
] }),
|
|
10818
10818
|
/* @__PURE__ */ l(ye, { alignItems: "center", flexDirection: "row", pl: 24, children: [
|
|
10819
10819
|
/* @__PURE__ */ t(
|
|
10820
|
-
|
|
10820
|
+
Sn,
|
|
10821
10821
|
{
|
|
10822
10822
|
sx: {
|
|
10823
10823
|
width: 20,
|
|
@@ -10838,7 +10838,7 @@ const un = () => {
|
|
|
10838
10838
|
pr: 24
|
|
10839
10839
|
},
|
|
10840
10840
|
children: [
|
|
10841
|
-
/* @__PURE__ */ t(p, { flexGrow: 1, variant: "Body", children:
|
|
10841
|
+
/* @__PURE__ */ t(p, { flexGrow: 1, variant: "Body", children: S(o.snowball_drawer_debt_label, "C") }),
|
|
10842
10842
|
/* @__PURE__ */ t(p, { variant: "Body", children: "$1,000.00" })
|
|
10843
10843
|
]
|
|
10844
10844
|
}
|
|
@@ -10863,13 +10863,13 @@ const un = () => {
|
|
|
10863
10863
|
)
|
|
10864
10864
|
] }),
|
|
10865
10865
|
/* @__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:
|
|
10866
|
+
/* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: S(o.snowball_drawer_month_header, 3) }),
|
|
10867
10867
|
/* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: o.snowball_drawer_payment_header })
|
|
10868
10868
|
] }),
|
|
10869
10869
|
/* @__PURE__ */ l(ye, { bgcolor: a.palette.background.paper, mb: 24, children: [
|
|
10870
10870
|
/* @__PURE__ */ l(ye, { alignItems: "center", flexDirection: "row", pl: 24, children: [
|
|
10871
10871
|
/* @__PURE__ */ t(
|
|
10872
|
-
|
|
10872
|
+
Sn,
|
|
10873
10873
|
{
|
|
10874
10874
|
sx: {
|
|
10875
10875
|
display: "flex",
|
|
@@ -10895,7 +10895,7 @@ const un = () => {
|
|
|
10895
10895
|
pr: 24
|
|
10896
10896
|
},
|
|
10897
10897
|
children: [
|
|
10898
|
-
/* @__PURE__ */ t(ye, { flexGrow: 1, children: /* @__PURE__ */ t(p, { variant: "Body", children:
|
|
10898
|
+
/* @__PURE__ */ t(ye, { flexGrow: 1, children: /* @__PURE__ */ t(p, { variant: "Body", children: S(o.snowball_drawer_debt_label, "C") }) }),
|
|
10899
10899
|
/* @__PURE__ */ l(ye, { children: [
|
|
10900
10900
|
/* @__PURE__ */ t(p, { variant: "Body", children: "$1,500.00" }),
|
|
10901
10901
|
/* @__PURE__ */ t(
|
|
@@ -10939,7 +10939,7 @@ const un = () => {
|
|
|
10939
10939
|
if (!g.useContext(Pn))
|
|
10940
10940
|
throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
|
|
10941
10941
|
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),
|
|
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), To = (e, n) => {
|
|
10943
10943
|
const i = [];
|
|
10944
10944
|
let a = Ze(Yt(/* @__PURE__ */ new Date(), 5));
|
|
10945
10945
|
const o = /* @__PURE__ */ new Date();
|
|
@@ -10947,17 +10947,17 @@ const un = () => {
|
|
|
10947
10947
|
i.push({
|
|
10948
10948
|
x: se(a, oe.MONTH_SHORT),
|
|
10949
10949
|
y: e.filter((r) => r.year === a.getFullYear() && r.month === a.getMonth() + 1).reduce((r, s) => r + s.total, 0)
|
|
10950
|
-
}), a =
|
|
10950
|
+
}), a = St(a, 1);
|
|
10951
10951
|
return i;
|
|
10952
10952
|
}, Qg = (e, n) => {
|
|
10953
10953
|
const i = e.filter(ga);
|
|
10954
|
-
return
|
|
10954
|
+
return To(i).map((a) => ({ ...a, y: Math.abs(a.y) }));
|
|
10955
10955
|
}, Jg = (e, n) => {
|
|
10956
10956
|
const i = e.filter(lc);
|
|
10957
|
-
return
|
|
10957
|
+
return To(i).map((a) => ({ ...a, y: Math.abs(a.y) }));
|
|
10958
10958
|
}, em = (e, n) => {
|
|
10959
10959
|
const i = e.filter(Zg);
|
|
10960
|
-
return
|
|
10960
|
+
return To(i);
|
|
10961
10961
|
}, tm = (e) => {
|
|
10962
10962
|
const n = [], i = e.filter(
|
|
10963
10963
|
(r) => r.top_level_category_guid !== N.INCOME && r.top_level_category_guid !== N.TRANSFER && r.total > 0
|
|
@@ -10968,7 +10968,7 @@ const un = () => {
|
|
|
10968
10968
|
n.push({
|
|
10969
10969
|
x: se(a, oe.MONTH_SHORT),
|
|
10970
10970
|
y: i.filter((r) => r.year === a.getFullYear() && r.month === a.getMonth() + 1).reduce((r, s) => r + s.total, 0)
|
|
10971
|
-
}), a =
|
|
10971
|
+
}), a = St(a, 1);
|
|
10972
10972
|
return n;
|
|
10973
10973
|
}, nm = (e, n) => {
|
|
10974
10974
|
const i = Qa.includes(n) ? Qg(e) : [], a = Ja.includes(n) ? Jg(e) : [], o = eo.includes(n) ? em(e) : [];
|
|
@@ -11060,7 +11060,7 @@ const un = () => {
|
|
|
11060
11060
|
] }),
|
|
11061
11061
|
_ && /* @__PURE__ */ t(b, { children: e || /* @__PURE__ */ t(sm, {}) })
|
|
11062
11062
|
] });
|
|
11063
|
-
},
|
|
11063
|
+
}, So = I(cm), lm = "#FF7B08";
|
|
11064
11064
|
function dm(e, n) {
|
|
11065
11065
|
const [i, a, o] = e.replace(/^#/, "").match(/.{1,2}/g).map((s) => parseInt(s, 16)), r = [
|
|
11066
11066
|
Math.max(0, Math.min(255, Math.round(i * n))),
|
|
@@ -11122,7 +11122,7 @@ const _c = ({
|
|
|
11122
11122
|
showMark: !1,
|
|
11123
11123
|
disableHighlight: !0
|
|
11124
11124
|
});
|
|
11125
|
-
const
|
|
11125
|
+
const T = (v) => y.findIndex((R) => R?.guid === v);
|
|
11126
11126
|
return /* @__PURE__ */ t(
|
|
11127
11127
|
os,
|
|
11128
11128
|
{
|
|
@@ -11162,10 +11162,10 @@ const _c = ({
|
|
|
11162
11162
|
strokeDasharray: "10 5",
|
|
11163
11163
|
strokeWidth: 1
|
|
11164
11164
|
},
|
|
11165
|
-
[`& .MuiLineElement-series-debt-${
|
|
11165
|
+
[`& .MuiLineElement-series-debt-${T(o ?? "0")}`]: {
|
|
11166
11166
|
opacity: 1
|
|
11167
11167
|
},
|
|
11168
|
-
[`& .MuiAreaElement-series-debt-${
|
|
11168
|
+
[`& .MuiAreaElement-series-debt-${T(o ?? "0")}`]: {
|
|
11169
11169
|
opacity: 1
|
|
11170
11170
|
},
|
|
11171
11171
|
...e
|
|
@@ -11502,8 +11502,8 @@ const _c = ({
|
|
|
11502
11502
|
return g.useEffect(() => {
|
|
11503
11503
|
a && e(1);
|
|
11504
11504
|
}, [a]), !a && !o ? /* @__PURE__ */ t(q, {}) : /* @__PURE__ */ l(ye, { gap: 16, children: [
|
|
11505
|
-
/* @__PURE__ */ t(
|
|
11506
|
-
|
|
11505
|
+
/* @__PURE__ */ t(Tt, { sx: { my: 16, mx: 24, ...n }, children: /* @__PURE__ */ l(
|
|
11506
|
+
Tn,
|
|
11507
11507
|
{
|
|
11508
11508
|
icon: a ? /* @__PURE__ */ t(aa, {}) : /* @__PURE__ */ t(Xa, { color: "success" }),
|
|
11509
11509
|
severity: "error",
|
|
@@ -11523,8 +11523,8 @@ const _c = ({
|
|
|
11523
11523
|
]
|
|
11524
11524
|
}
|
|
11525
11525
|
) }),
|
|
11526
|
-
a && /* @__PURE__ */ t(
|
|
11527
|
-
|
|
11526
|
+
a && /* @__PURE__ */ t(Tt, { sx: { mb: 16, mt: 100, mx: 24, ...n }, children: /* @__PURE__ */ l(
|
|
11527
|
+
Tn,
|
|
11528
11528
|
{
|
|
11529
11529
|
icon: /* @__PURE__ */ t(q, {}),
|
|
11530
11530
|
severity: "error",
|
|
@@ -11542,7 +11542,7 @@ const _c = ({
|
|
|
11542
11542
|
}
|
|
11543
11543
|
) })
|
|
11544
11544
|
] });
|
|
11545
|
-
}, Em = I(ym),
|
|
11545
|
+
}, Em = I(ym), Tm = () => {
|
|
11546
11546
|
const { debts: e } = x(), { showError: n, showCompleted: i } = un(), [a, o] = g.useState(0);
|
|
11547
11547
|
return /* @__PURE__ */ l(q, { children: [
|
|
11548
11548
|
(n || i) && /* @__PURE__ */ t(Em, { setTabValue: o, sx: { mt: -24 } }),
|
|
@@ -11578,7 +11578,7 @@ const _c = ({
|
|
|
11578
11578
|
/* @__PURE__ */ t(Xn, { index: 0, name: "debt-schedule", value: a, children: /* @__PURE__ */ t(gm, {}) }),
|
|
11579
11579
|
/* @__PURE__ */ t(Xn, { index: 1, name: "debt-details", value: a, children: /* @__PURE__ */ t(bm, {}) })
|
|
11580
11580
|
] });
|
|
11581
|
-
},
|
|
11581
|
+
}, Sm = I(Tm), Am = ({ isOpen: e, onClose: n, sx: i }) => {
|
|
11582
11582
|
const { debts: a } = x(), { showError: o, showCompleted: r } = un(), s = o || r ? /* @__PURE__ */ t(q, {}) : /* @__PURE__ */ t(um, {});
|
|
11583
11583
|
return /* @__PURE__ */ t(
|
|
11584
11584
|
ce,
|
|
@@ -11589,8 +11589,8 @@ const _c = ({
|
|
|
11589
11589
|
sx: { ...i },
|
|
11590
11590
|
title: a.details_title,
|
|
11591
11591
|
children: /* @__PURE__ */ l(b, { bgcolor: "background.default", children: [
|
|
11592
|
-
/* @__PURE__ */ t(
|
|
11593
|
-
/* @__PURE__ */ t(
|
|
11592
|
+
/* @__PURE__ */ t(So, { customDetailsChart: s }),
|
|
11593
|
+
/* @__PURE__ */ t(Sm, {})
|
|
11594
11594
|
] })
|
|
11595
11595
|
}
|
|
11596
11596
|
);
|
|
@@ -11815,14 +11815,14 @@ const $t = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
|
11815
11815
|
headerAlign: "right",
|
|
11816
11816
|
width: 20
|
|
11817
11817
|
}
|
|
11818
|
-
], C = g.useMemo(() => n.map((y,
|
|
11818
|
+
], C = g.useMemo(() => n.map((y, T) => ({
|
|
11819
11819
|
...y,
|
|
11820
|
-
id:
|
|
11820
|
+
id: T,
|
|
11821
11821
|
priority: Dm(y)
|
|
11822
11822
|
})), [n]), f = (y) => {
|
|
11823
11823
|
const w = y.target.closest("[data-id]")?.getAttribute("data-id"), v = n[Number(w)];
|
|
11824
11824
|
a?.(v?.guid ?? "");
|
|
11825
|
-
}, E = (y) => C.find((
|
|
11825
|
+
}, E = (y) => C.find((T) => T.guid === y)?.id;
|
|
11826
11826
|
return /* @__PURE__ */ t(
|
|
11827
11827
|
L,
|
|
11828
11828
|
{
|
|
@@ -12014,11 +12014,11 @@ const $t = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
|
12014
12014
|
"aria-label": "extra-paydown",
|
|
12015
12015
|
onClick: e,
|
|
12016
12016
|
sx: { justifyContent: "start", minWidth: 100, mx: 4 },
|
|
12017
|
-
children:
|
|
12017
|
+
children: S(s, P(r, "0,0"))
|
|
12018
12018
|
}
|
|
12019
12019
|
);
|
|
12020
12020
|
}), 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:
|
|
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: T } = Ht(), { selectedDebtPriority: A, setSelectedDebtChartData: w } = un(), { visibleDebtAccounts: v } = Ee(), { goalsLoaded: R, loadGoals: B, monthlyCashFlowProfile: M } = tt(), { debts: D } = sa(), k = g.useMemo(() => {
|
|
12022
12022
|
const ge = M?.extra_payment ?? 0;
|
|
12023
12023
|
return Hm(D, A, ge);
|
|
12024
12024
|
}, [D, A, M]);
|
|
@@ -12031,7 +12031,7 @@ const $t = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
|
12031
12031
|
}, [E]);
|
|
12032
12032
|
const O = (ge) => u(ge), U = () => {
|
|
12033
12033
|
const ge = v.find((Re) => Re.guid === d), De = k.find((Re) => Re.guid === d);
|
|
12034
|
-
ge &&
|
|
12034
|
+
ge && T(ge), De && w(De), a(!0);
|
|
12035
12035
|
}, ee = () => C(W.DEBTS_CLICK_FILTER), ue = () => {
|
|
12036
12036
|
c(!0), C(W.DEBTS_CLICK_SNOWBALL_CTA);
|
|
12037
12037
|
}, te = () => {
|
|
@@ -12104,7 +12104,7 @@ const $t = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
|
12104
12104
|
]
|
|
12105
12105
|
}
|
|
12106
12106
|
);
|
|
12107
|
-
},
|
|
12107
|
+
}, SE = I(Fm), Wm = {
|
|
12108
12108
|
unnamed_label: "Unnamed Debt"
|
|
12109
12109
|
};
|
|
12110
12110
|
function $m(e, n) {
|
|
@@ -12177,7 +12177,7 @@ class wr {
|
|
|
12177
12177
|
updateMonthlyCashFlowProfile = async (n) => this.fetchInstance.put(`${G.MONTHLY_CASH_FLOW_PROFILE}`, n).then((i) => i.monthly_cash_flow_profile);
|
|
12178
12178
|
updateRetirementGoal = async (n) => this.fetchInstance.put(`${G.RETIREMENT_GOALS}/${n.guid}`, n).then((i) => i.retirement_goal);
|
|
12179
12179
|
}
|
|
12180
|
-
function
|
|
12180
|
+
function Ta({ title: e, subtitle: n }) {
|
|
12181
12181
|
return /* @__PURE__ */ l(b, { children: [
|
|
12182
12182
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e }),
|
|
12183
12183
|
/* @__PURE__ */ t(p, { sx: { fontWeight: 400 }, variant: "Body", children: n })
|
|
@@ -12193,10 +12193,10 @@ function mc(e, n) {
|
|
|
12193
12193
|
style: "percent",
|
|
12194
12194
|
minimumFractionDigits: 0,
|
|
12195
12195
|
maximumFractionDigits: 0
|
|
12196
|
-
}, c = n.is_complete ? n.completed_at : n.projected_to_complete_at, d = c ? Fe(c) : /* @__PURE__ */ new Date(), u =
|
|
12196
|
+
}, c = n.is_complete ? n.completed_at : n.projected_to_complete_at, d = c ? Fe(c) : /* @__PURE__ */ new Date(), u = S(
|
|
12197
12197
|
e.goal_percentage,
|
|
12198
12198
|
vi(a, s)
|
|
12199
|
-
), _ =
|
|
12199
|
+
), _ = S(
|
|
12200
12200
|
n.is_complete ? e.completed_label : e.goal_projection,
|
|
12201
12201
|
se(d, oe.MONTH_SHORT_YEAR)
|
|
12202
12202
|
);
|
|
@@ -12264,11 +12264,11 @@ function Km(e) {
|
|
|
12264
12264
|
const zm = (e, n) => {
|
|
12265
12265
|
switch (e) {
|
|
12266
12266
|
case V.DEBT_TRACK:
|
|
12267
|
-
return
|
|
12267
|
+
return S(n.zero_state_ongoing, "debt");
|
|
12268
12268
|
case V.SAVINGS_TRACK:
|
|
12269
|
-
return
|
|
12269
|
+
return S(n.zero_state_ongoing, "saving");
|
|
12270
12270
|
default:
|
|
12271
|
-
return
|
|
12271
|
+
return S(n.zero_state_ongoing, "retirement");
|
|
12272
12272
|
}
|
|
12273
12273
|
}, Ym = (e, n) => n ? P(e, e < 1e3 ? "0" : "0.00a").replace(
|
|
12274
12274
|
/(\d+)(?:\.0+|(\.\d*?[1-9])0*)([a-zA-Z]* ?\$?)/g,
|
|
@@ -12355,7 +12355,7 @@ const zm = (e, n) => {
|
|
|
12355
12355
|
const f = C.row;
|
|
12356
12356
|
return /* @__PURE__ */ l(b, { children: [
|
|
12357
12357
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: f.name }),
|
|
12358
|
-
/* @__PURE__ */ t(p, { variant: "XSmall", children:
|
|
12358
|
+
/* @__PURE__ */ t(p, { variant: "XSmall", children: S(
|
|
12359
12359
|
n.goal_projection,
|
|
12360
12360
|
se(
|
|
12361
12361
|
Fe(f.projected_to_complete_at || 0),
|
|
@@ -12458,7 +12458,7 @@ const zm = (e, n) => {
|
|
|
12458
12458
|
/* @__PURE__ */ t(ae, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
12459
12459
|
/* @__PURE__ */ l(b, { children: [
|
|
12460
12460
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e.name }),
|
|
12461
|
-
/* @__PURE__ */ t(p, { variant: "XSmall", children:
|
|
12461
|
+
/* @__PURE__ */ t(p, { variant: "XSmall", children: S(
|
|
12462
12462
|
i.goal_projection,
|
|
12463
12463
|
se(
|
|
12464
12464
|
Fe(e.projected_to_complete_at || 0),
|
|
@@ -12476,7 +12476,7 @@ const zm = (e, n) => {
|
|
|
12476
12476
|
/* @__PURE__ */ t(ae, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
12477
12477
|
/* @__PURE__ */ l(b, { children: [
|
|
12478
12478
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e.name }),
|
|
12479
|
-
/* @__PURE__ */ t(p, { variant: "XSmall", children:
|
|
12479
|
+
/* @__PURE__ */ t(p, { variant: "XSmall", children: S(
|
|
12480
12480
|
n.completed_label,
|
|
12481
12481
|
se(
|
|
12482
12482
|
Fe(e.completed_at || 0),
|
|
@@ -12542,7 +12542,7 @@ const zm = (e, n) => {
|
|
|
12542
12542
|
}
|
|
12543
12543
|
)
|
|
12544
12544
|
] });
|
|
12545
|
-
},
|
|
12545
|
+
}, Sa = I(({ trackType: e, onAddGoals: n }) => {
|
|
12546
12546
|
const { isMobile: i } = Ce(), { goals: a } = x(), { orderedGoals: o, setSelectedGoal: r } = tt(), s = o.filter((_) => _.track_type === e), c = s.filter(
|
|
12547
12547
|
(_) => _.track_type === V.SAVINGS_TRACK && !_.has_been_spent || _.track_type !== V.SAVINGS_TRACK && !_.is_complete
|
|
12548
12548
|
), d = s.filter(
|
|
@@ -12761,7 +12761,7 @@ const zm = (e, n) => {
|
|
|
12761
12761
|
/* @__PURE__ */ t(it, {})
|
|
12762
12762
|
] }),
|
|
12763
12763
|
/* @__PURE__ */ t(ce, { isOpen: a, onClose: () => o(!1), title: n.account_details, children: /* @__PURE__ */ l(b, { children: [
|
|
12764
|
-
/* @__PURE__ */ t(
|
|
12764
|
+
/* @__PURE__ */ t(So, {}),
|
|
12765
12765
|
/* @__PURE__ */ t(Oc, {})
|
|
12766
12766
|
] }) })
|
|
12767
12767
|
] });
|
|
@@ -12819,7 +12819,7 @@ const zm = (e, n) => {
|
|
|
12819
12819
|
color: "text.secondary",
|
|
12820
12820
|
sx: { textAlign: "center", whiteSpace: "wrap" },
|
|
12821
12821
|
variant: "Paragraph",
|
|
12822
|
-
children:
|
|
12822
|
+
children: S(o.details_change_account_description, e.name)
|
|
12823
12823
|
}
|
|
12824
12824
|
)
|
|
12825
12825
|
] }),
|
|
@@ -12949,7 +12949,7 @@ const zm = (e, n) => {
|
|
|
12949
12949
|
primaryText: n.details_birthday,
|
|
12950
12950
|
secondaryText: `${se(Fe(i.birthday ?? 0), oe.MONTH_DAY_YEAR)}`,
|
|
12951
12951
|
zeroStateText: !e.guid && !i.birthday ? n.add_birthday : void 0,
|
|
12952
|
-
children: /* @__PURE__ */ t(
|
|
12952
|
+
children: /* @__PURE__ */ t(Si, { dateAdapter: Qn, children: /* @__PURE__ */ t(
|
|
12953
12953
|
Ya,
|
|
12954
12954
|
{
|
|
12955
12955
|
label: n.details_birthday,
|
|
@@ -12971,18 +12971,18 @@ const zm = (e, n) => {
|
|
|
12971
12971
|
setNewRetirementGoalAccounts: d,
|
|
12972
12972
|
setSelectedGoal: u
|
|
12973
12973
|
} = tt(), [_, h] = g.useState(!1), m = !e.guid, C = i.filter(
|
|
12974
|
-
(y) => m ? o.find((
|
|
12974
|
+
(y) => m ? o.find((T) => T.account_guid === y.guid) : r.find((T) => T.account_guid === y.guid)
|
|
12975
12975
|
), f = i.filter(
|
|
12976
|
-
(y) => !r.find((
|
|
12976
|
+
(y) => !r.find((T) => T.account_guid === y.guid)
|
|
12977
12977
|
), E = async (y) => {
|
|
12978
|
-
const
|
|
12978
|
+
const T = y.map((A) => ({
|
|
12979
12979
|
account_guid: A.guid,
|
|
12980
12980
|
retirement_goal_guid: e.guid
|
|
12981
12981
|
}));
|
|
12982
12982
|
if (m)
|
|
12983
|
-
d(
|
|
12983
|
+
d(T);
|
|
12984
12984
|
else
|
|
12985
|
-
for (const A of
|
|
12985
|
+
for (const A of T)
|
|
12986
12986
|
await a(A), c(n.alert_account_added);
|
|
12987
12987
|
u({
|
|
12988
12988
|
...s,
|
|
@@ -13069,16 +13069,16 @@ const zm = (e, n) => {
|
|
|
13069
13069
|
setAlert: h,
|
|
13070
13070
|
setSelectedGoal: m,
|
|
13071
13071
|
updateGoal: C
|
|
13072
|
-
} = tt(), { user: f } = Bt(), [E, y] = g.useState(!1),
|
|
13073
|
-
const O =
|
|
13072
|
+
} = tt(), { user: f } = Bt(), [E, y] = g.useState(!1), T = !_?.guid, A = _?.track_type === V.SAVINGS_TRACK && _.is_complete && !_.has_been_spent, w = g.useMemo(() => {
|
|
13073
|
+
const O = T ? d : u;
|
|
13074
13074
|
return n.filter((U) => O.some((ee) => ee.account_guid === U.guid));
|
|
13075
|
-
}, [
|
|
13075
|
+
}, [T, n, d, u]), v = g.useMemo(() => {
|
|
13076
13076
|
if (!_) return !1;
|
|
13077
13077
|
const { account_guid: O, track_type: U, name: ee, amount: ue, retirement_age: te } = _;
|
|
13078
13078
|
return U === V.SAVINGS_TRACK ? O ? !!ee && !!ue : !1 : U === V.RETIREMENT_TRACK ? w.length ? !!ee && !!ue && !!te && !!f.birthday : !1 : !0;
|
|
13079
13079
|
}, [_, w, f.birthday]);
|
|
13080
13080
|
let R = a.delete_button, B = () => y(!0);
|
|
13081
|
-
|
|
13081
|
+
T ? (B = () => M(), R = a.save_button) : A && (B = () => k(), R = i.mark_as_complete_button);
|
|
13082
13082
|
const M = async () => {
|
|
13083
13083
|
if (_) {
|
|
13084
13084
|
const O = _.track_type;
|
|
@@ -13098,12 +13098,12 @@ const zm = (e, n) => {
|
|
|
13098
13098
|
ce,
|
|
13099
13099
|
{
|
|
13100
13100
|
ariaLabelClose: a.close_aria,
|
|
13101
|
-
hasSecondaryAction:
|
|
13101
|
+
hasSecondaryAction: T,
|
|
13102
13102
|
isOpen: !!_,
|
|
13103
13103
|
isPrimaryDisabled: !v,
|
|
13104
13104
|
onClose: () => m(void 0),
|
|
13105
13105
|
onPrimaryAction: B,
|
|
13106
|
-
primaryColor:
|
|
13106
|
+
primaryColor: T || A ? "primary" : "error",
|
|
13107
13107
|
primaryText: R,
|
|
13108
13108
|
secondaryColor: "primary",
|
|
13109
13109
|
title: i.goal_details,
|
|
@@ -13120,18 +13120,18 @@ const zm = (e, n) => {
|
|
|
13120
13120
|
onPrimaryAction: D,
|
|
13121
13121
|
primaryColor: "error",
|
|
13122
13122
|
primaryText: a.delete_button,
|
|
13123
|
-
children: /* @__PURE__ */ t(p, { sx: { textWrap: "wrap" }, variant: "Paragraph", children:
|
|
13123
|
+
children: /* @__PURE__ */ t(p, { sx: { textWrap: "wrap" }, variant: "Paragraph", children: S(i.delete_description, _?.name || "") })
|
|
13124
13124
|
}
|
|
13125
13125
|
)
|
|
13126
13126
|
] });
|
|
13127
13127
|
}), 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(), [
|
|
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(), [T, 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 ? S(
|
|
13129
13129
|
a ? d.tab_subtitle_mobile : d.tab_subtitle,
|
|
13130
13130
|
P(R, "0,0")
|
|
13131
|
-
) : "", k = r ?
|
|
13131
|
+
) : "", k = r ? S(
|
|
13132
13132
|
a ? d.tab_subtitle_mobile : d.tab_subtitle,
|
|
13133
13133
|
P(B, "0,0")
|
|
13134
|
-
) : "", O = r ?
|
|
13134
|
+
) : "", O = r ? S(
|
|
13135
13135
|
a ? d.tab_subtitle_mobile : d.tab_subtitle,
|
|
13136
13136
|
P(M, "0,0")
|
|
13137
13137
|
) : "";
|
|
@@ -13173,28 +13173,28 @@ const zm = (e, n) => {
|
|
|
13173
13173
|
onChange: (ge, De) => A(De),
|
|
13174
13174
|
sx: { bgcolor: "background.paper" },
|
|
13175
13175
|
textColor: "primary",
|
|
13176
|
-
value: te ? !1 :
|
|
13176
|
+
value: te ? !1 : T,
|
|
13177
13177
|
variant: "fullWidth",
|
|
13178
13178
|
children: [
|
|
13179
13179
|
/* @__PURE__ */ t(
|
|
13180
13180
|
et,
|
|
13181
13181
|
{
|
|
13182
13182
|
disabled: te,
|
|
13183
|
-
label: /* @__PURE__ */ t(
|
|
13183
|
+
label: /* @__PURE__ */ t(Ta, { subtitle: D, title: d.tab_saving_title })
|
|
13184
13184
|
}
|
|
13185
13185
|
),
|
|
13186
13186
|
/* @__PURE__ */ t(
|
|
13187
13187
|
et,
|
|
13188
13188
|
{
|
|
13189
13189
|
disabled: te,
|
|
13190
|
-
label: /* @__PURE__ */ t(
|
|
13190
|
+
label: /* @__PURE__ */ t(Ta, { subtitle: k, title: d.tab_debt_title })
|
|
13191
13191
|
}
|
|
13192
13192
|
),
|
|
13193
13193
|
/* @__PURE__ */ t(
|
|
13194
13194
|
et,
|
|
13195
13195
|
{
|
|
13196
13196
|
disabled: te,
|
|
13197
|
-
label: /* @__PURE__ */ t(
|
|
13197
|
+
label: /* @__PURE__ */ t(Ta, { subtitle: O, title: d.tab_retirement_title })
|
|
13198
13198
|
}
|
|
13199
13199
|
)
|
|
13200
13200
|
]
|
|
@@ -13216,9 +13216,9 @@ const zm = (e, n) => {
|
|
|
13216
13216
|
}
|
|
13217
13217
|
}
|
|
13218
13218
|
) : /* @__PURE__ */ l(q, { children: [
|
|
13219
|
-
|
|
13220
|
-
|
|
13221
|
-
|
|
13219
|
+
T === 0 && /* @__PURE__ */ t(Sa, { onAddGoals: ee, trackType: V.SAVINGS_TRACK }),
|
|
13220
|
+
T === 1 && /* @__PURE__ */ t(Sa, { onAddGoals: ee, trackType: V.DEBT_TRACK }),
|
|
13221
|
+
T === 2 && /* @__PURE__ */ t(Sa, { onAddGoals: ee, trackType: V.RETIREMENT_TRACK })
|
|
13222
13222
|
] })
|
|
13223
13223
|
] }),
|
|
13224
13224
|
/* @__PURE__ */ t(cp, { onClose: ue }),
|
|
@@ -13233,13 +13233,13 @@ const zm = (e, n) => {
|
|
|
13233
13233
|
}
|
|
13234
13234
|
),
|
|
13235
13235
|
/* @__PURE__ */ t(
|
|
13236
|
-
|
|
13236
|
+
Ti,
|
|
13237
13237
|
{
|
|
13238
13238
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
13239
13239
|
autoHideDuration: 3500,
|
|
13240
13240
|
onClose: () => E(""),
|
|
13241
13241
|
open: !!_,
|
|
13242
|
-
children: /* @__PURE__ */ t(
|
|
13242
|
+
children: /* @__PURE__ */ t(Tn, { onClose: () => E(""), severity: "success", variant: "filled", children: _ })
|
|
13243
13243
|
}
|
|
13244
13244
|
)
|
|
13245
13245
|
]
|
|
@@ -13929,8 +13929,8 @@ const bp = {
|
|
|
13929
13929
|
for (let o = 0; o < i.length; o += n)
|
|
13930
13930
|
a.push(i.slice(o, o + n).map((r) => e[r]));
|
|
13931
13931
|
return a;
|
|
13932
|
-
}, Ep = bc(Io),
|
|
13933
|
-
const n = Rr(e,
|
|
13932
|
+
}, Ep = bc(Io), Tp = bc(Ao), Sp = (e) => {
|
|
13933
|
+
const n = Rr(e, Sc), i = Rr(e, Ec), a = (r, s) => {
|
|
13934
13934
|
const c = r.reduce((u, _) => u + Ic(_), 0), d = r.reduce((u, _) => {
|
|
13935
13935
|
const h = s(_);
|
|
13936
13936
|
return Object.keys(h).forEach((m) => u[m] = (u[m] || 0) + h[m]), u;
|
|
@@ -13940,7 +13940,7 @@ const bp = {
|
|
|
13940
13940
|
);
|
|
13941
13941
|
};
|
|
13942
13942
|
return {
|
|
13943
|
-
stocks: a(n,
|
|
13943
|
+
stocks: a(n, Tc),
|
|
13944
13944
|
bonds: a(i, yc)
|
|
13945
13945
|
};
|
|
13946
13946
|
}, Ap = (e) => {
|
|
@@ -13951,7 +13951,7 @@ const bp = {
|
|
|
13951
13951
|
}), c;
|
|
13952
13952
|
}, {});
|
|
13953
13953
|
return {
|
|
13954
|
-
stocks: a(n,
|
|
13954
|
+
stocks: a(n, Tc, bp),
|
|
13955
13955
|
bonds: a(i, yc, yp)
|
|
13956
13956
|
};
|
|
13957
13957
|
}, Ip = (e, n) => Object.fromEntries(
|
|
@@ -13961,7 +13961,7 @@ const bp = {
|
|
|
13961
13961
|
return {
|
|
13962
13962
|
[Io[n]]: 100
|
|
13963
13963
|
};
|
|
13964
|
-
},
|
|
13964
|
+
}, Tc = (e) => Ac(e, Sc, Ao), Sc = (e) => {
|
|
13965
13965
|
const {
|
|
13966
13966
|
large_core_weight: n,
|
|
13967
13967
|
large_growth_weight: i,
|
|
@@ -14002,7 +14002,7 @@ const bp = {
|
|
|
14002
14002
|
const a = n(i), o = xo(a);
|
|
14003
14003
|
return o > 80 && o < 120;
|
|
14004
14004
|
}), wp = (e, n) => {
|
|
14005
|
-
const i = n === wn.Stocks ?
|
|
14005
|
+
const i = n === wn.Stocks ? Tp : Ep, a = e[n];
|
|
14006
14006
|
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
14007
|
}, xo = (e) => Object.values(e).reduce((n, i) => n + i, 0);
|
|
14008
14008
|
class Np {
|
|
@@ -14016,7 +14016,7 @@ class Np {
|
|
|
14016
14016
|
this.globalStore = n, this.api = new Dr(n.endpoint, n.sessionToken), Be(this);
|
|
14017
14017
|
}
|
|
14018
14018
|
get analysisChartData() {
|
|
14019
|
-
return wp(
|
|
14019
|
+
return wp(Sp(this.visibleHoldings), this.analysisType);
|
|
14020
14020
|
}
|
|
14021
14021
|
get analysisDetails() {
|
|
14022
14022
|
return Ap(this.visibleHoldings)[this.analysisType] || {};
|
|
@@ -14086,7 +14086,7 @@ const Dp = /^[ a-zA-ZÀ-ÿ0-9]+$/, Rp = 50, Or = 65, Op = ({
|
|
|
14086
14086
|
searchValue: c
|
|
14087
14087
|
}
|
|
14088
14088
|
),
|
|
14089
|
-
/* @__PURE__ */ t(
|
|
14089
|
+
/* @__PURE__ */ t(Tt, { sx: { boxShadow: "none" }, children: /* @__PURE__ */ t(ie, { children: /* @__PURE__ */ l(L, { height: e, overflow: "auto", ref: h, children: [
|
|
14090
14090
|
/* @__PURE__ */ l(L, { height: m.getTotalSize(), position: "relative", children: [
|
|
14091
14091
|
i && /* @__PURE__ */ t(de, { label: "Loading...", size: 32 }),
|
|
14092
14092
|
!i && m.getVirtualItems().length > 0 && m.getVirtualItems().map((C) => {
|
|
@@ -14698,7 +14698,7 @@ const qp = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14698
14698
|
selectedData: f,
|
|
14699
14699
|
setHoveredData: E,
|
|
14700
14700
|
setSelectedData: y
|
|
14701
|
-
} = Os(), { isMobile:
|
|
14701
|
+
} = Os(), { isMobile: T } = 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
14702
|
await m(a), await h(R), v(!0);
|
|
14703
14703
|
};
|
|
14704
14704
|
g.useEffect(() => {
|
|
@@ -14718,7 +14718,7 @@ const qp = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14718
14718
|
E(null);
|
|
14719
14719
|
}, Re = () => {
|
|
14720
14720
|
A(W.NET_WORTH_WIDGET_CLICK_ASSETS_LIABILITIES), O(!0);
|
|
14721
|
-
},
|
|
14721
|
+
}, Te = async (Q) => {
|
|
14722
14722
|
const ne = Q[0], Ue = Q[1];
|
|
14723
14723
|
ne && Ue && B(ed(Ue, ne));
|
|
14724
14724
|
}, Oe = {
|
|
@@ -14737,14 +14737,14 @@ const qp = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14737
14737
|
{
|
|
14738
14738
|
accountOptions: c,
|
|
14739
14739
|
calendarActions: {
|
|
14740
|
-
onRangeChanged:
|
|
14740
|
+
onRangeChanged: Te
|
|
14741
14741
|
},
|
|
14742
|
-
dateRangeVariant:
|
|
14742
|
+
dateRangeVariant: T ? "timeframetabs" : "timeframebuttons",
|
|
14743
14743
|
onAccountsFilterClick: () => A(W.NET_WORTH_WIDGET_CLICK_FILTER),
|
|
14744
14744
|
onBackClick: e,
|
|
14745
14745
|
showDividerAboveDateSelector: !1,
|
|
14746
14746
|
sx: {
|
|
14747
|
-
p:
|
|
14747
|
+
p: T ? 0 : 48,
|
|
14748
14748
|
"& .MuiCardHeader-root": {
|
|
14749
14749
|
px: 16,
|
|
14750
14750
|
py: 12
|
|
@@ -14763,9 +14763,9 @@ const qp = ({ amount: e, copy: n, trendValue: i }) => {
|
|
|
14763
14763
|
/* @__PURE__ */ l(
|
|
14764
14764
|
b,
|
|
14765
14765
|
{
|
|
14766
|
-
alignItems:
|
|
14767
|
-
direction:
|
|
14768
|
-
spacing:
|
|
14766
|
+
alignItems: T ? "center" : "flex-start",
|
|
14767
|
+
direction: T ? "column" : "row",
|
|
14768
|
+
spacing: T ? 0 : 48,
|
|
14769
14769
|
children: [
|
|
14770
14770
|
/* @__PURE__ */ t(kp, { ...Oe }),
|
|
14771
14771
|
/* @__PURE__ */ t(Pp, { ...Oe })
|
|
@@ -15039,13 +15039,13 @@ const Hr = "PARENT-ENTITY", m1 = (e, n) => ({
|
|
|
15039
15039
|
} = o;
|
|
15040
15040
|
for (const m of a.filter((C) => C.entity_guid === Hr)) {
|
|
15041
15041
|
const C = m1(m.notification_type, i), f = a.filter(
|
|
15042
|
-
(y) => y.entity_guid !== Hr && y.notification_type === m.notification_type && e.some((
|
|
15042
|
+
(y) => y.entity_guid !== Hr && y.notification_type === m.notification_type && e.some((T) => T.guid === y.entity_guid)
|
|
15043
15043
|
), E = [];
|
|
15044
15044
|
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
15045
|
...m,
|
|
15046
15046
|
children: f.map((y) => ({
|
|
15047
15047
|
...y,
|
|
15048
|
-
account: e.find((
|
|
15048
|
+
account: e.find((T) => T.guid === y.entity_guid),
|
|
15049
15049
|
label: C
|
|
15050
15050
|
})),
|
|
15051
15051
|
deliveryMethodsLabel: E.join(", "),
|
|
@@ -15378,11 +15378,11 @@ const f1 = I(() => {
|
|
|
15378
15378
|
birthday: h.birthday,
|
|
15379
15379
|
postal_code: h.postal_code,
|
|
15380
15380
|
credit_score: h.credit_score
|
|
15381
|
-
}), [f, E] = g.useState(!1), [y,
|
|
15381
|
+
}), [f, E] = g.useState(!1), [y, T] = g.useState(!1), A = g.useRef(null), w = m.email && !h.email_is_verified && !f, v = m.phone && !h.phone_is_verified && !f;
|
|
15382
15382
|
g.useEffect(() => {
|
|
15383
15383
|
if (n) {
|
|
15384
15384
|
const O = (U) => {
|
|
15385
|
-
A.current && !A.current.contains(U.target) && f &&
|
|
15385
|
+
A.current && !A.current.contains(U.target) && f && T(!0);
|
|
15386
15386
|
};
|
|
15387
15387
|
return document.addEventListener("mousedown", O), () => {
|
|
15388
15388
|
document.removeEventListener("mousedown", O);
|
|
@@ -15397,9 +15397,9 @@ const f1 = I(() => {
|
|
|
15397
15397
|
}, B = async () => {
|
|
15398
15398
|
await _({ ...h, ...m }), E(!1);
|
|
15399
15399
|
}, M = () => {
|
|
15400
|
-
|
|
15400
|
+
T(!1), n && n();
|
|
15401
15401
|
}, D = () => {
|
|
15402
|
-
|
|
15402
|
+
T(!1);
|
|
15403
15403
|
}, k = (O) => {
|
|
15404
15404
|
const U = {
|
|
15405
15405
|
...m,
|
|
@@ -15476,7 +15476,7 @@ const f1 = I(() => {
|
|
|
15476
15476
|
] })
|
|
15477
15477
|
] }),
|
|
15478
15478
|
/* @__PURE__ */ l(b, { direction: s ? "column" : "row", spacing: s ? 44 : 24, sx: { mb: 44 }, children: [
|
|
15479
|
-
/* @__PURE__ */ t(
|
|
15479
|
+
/* @__PURE__ */ t(Si, { dateAdapter: Qn, children: /* @__PURE__ */ t(
|
|
15480
15480
|
Ya,
|
|
15481
15481
|
{
|
|
15482
15482
|
label: o.birthdate,
|
|
@@ -15551,9 +15551,9 @@ const f1 = I(() => {
|
|
|
15551
15551
|
}
|
|
15552
15552
|
)
|
|
15553
15553
|
] });
|
|
15554
|
-
},
|
|
15554
|
+
}, T1 = I(E1);
|
|
15555
15555
|
var st = /* @__PURE__ */ ((e) => (e.Delete = "delete", e.Edit = "edit", e.Token = "token", e))(st || {});
|
|
15556
|
-
const
|
|
15556
|
+
const S1 = ({
|
|
15557
15557
|
devices: e,
|
|
15558
15558
|
onClickDeviceEdit: n,
|
|
15559
15559
|
onClickDeviceDelete: i
|
|
@@ -15644,7 +15644,7 @@ const T1 = ({
|
|
|
15644
15644
|
alignItems: "center",
|
|
15645
15645
|
p: "12px 16px"
|
|
15646
15646
|
},
|
|
15647
|
-
children: /* @__PURE__ */ t(p, { color: a.palette.text.secondary, variant: "Small", children:
|
|
15647
|
+
children: /* @__PURE__ */ t(p, { color: a.palette.text.secondary, variant: "Small", children: S(
|
|
15648
15648
|
o.mobile_devices_count,
|
|
15649
15649
|
/* @__PURE__ */ t("b", { children: e.length }),
|
|
15650
15650
|
/* @__PURE__ */ t("b", { children: e.length })
|
|
@@ -15759,7 +15759,7 @@ const T1 = ({
|
|
|
15759
15759
|
borderColor: a.palette.border.light,
|
|
15760
15760
|
p: "12px 16px"
|
|
15761
15761
|
},
|
|
15762
|
-
children: /* @__PURE__ */ t(p, { color: a.palette.text.secondary, variant: "Small", children:
|
|
15762
|
+
children: /* @__PURE__ */ t(p, { color: a.palette.text.secondary, variant: "Small", children: S(
|
|
15763
15763
|
o.mobile_devices_count,
|
|
15764
15764
|
/* @__PURE__ */ t("b", { children: e.length }),
|
|
15765
15765
|
/* @__PURE__ */ t("b", { children: e.length })
|
|
@@ -15830,19 +15830,19 @@ const T1 = ({
|
|
|
15830
15830
|
}
|
|
15831
15831
|
}
|
|
15832
15832
|
};
|
|
15833
|
-
},
|
|
15833
|
+
}, T = async () => {
|
|
15834
15834
|
if (e === st.Token && i(), e === st.Edit && a) {
|
|
15835
15835
|
const A = { ...a, name: m };
|
|
15836
15836
|
(await d(A)).success ? (_(c.mobile_devices_edit_success, "success"), h()) : _(
|
|
15837
|
-
|
|
15837
|
+
S(c.mobile_devices_edit_error, a.name),
|
|
15838
15838
|
"error"
|
|
15839
15839
|
), i();
|
|
15840
15840
|
}
|
|
15841
15841
|
e === st.Delete && a && ((await u(a.guid)).success ? (_(
|
|
15842
|
-
|
|
15842
|
+
S(c.mobile_devices_delete_success, a.name),
|
|
15843
15843
|
"success"
|
|
15844
15844
|
), h()) : _(
|
|
15845
|
-
|
|
15845
|
+
S(c.mobile_devices_delete_error, a.name),
|
|
15846
15846
|
"error"
|
|
15847
15847
|
), i());
|
|
15848
15848
|
};
|
|
@@ -15852,7 +15852,7 @@ const T1 = ({
|
|
|
15852
15852
|
copy: { title: f() },
|
|
15853
15853
|
isOpen: n,
|
|
15854
15854
|
onClose: i,
|
|
15855
|
-
onPrimaryAction:
|
|
15855
|
+
onPrimaryAction: T,
|
|
15856
15856
|
onSecondaryAction: i,
|
|
15857
15857
|
primaryColor: e === st.Delete ? "error" : void 0,
|
|
15858
15858
|
primaryText: E(),
|
|
@@ -15893,7 +15893,7 @@ const T1 = ({
|
|
|
15893
15893
|
h(A), u({ open: !0, type: st.Edit });
|
|
15894
15894
|
}, y = (A) => {
|
|
15895
15895
|
h(A), u({ open: !0, type: st.Delete });
|
|
15896
|
-
},
|
|
15896
|
+
}, T = () => {
|
|
15897
15897
|
u({ open: !1, type: "" }), h(void 0);
|
|
15898
15898
|
};
|
|
15899
15899
|
return !i || !a ? /* @__PURE__ */ t(de, {}) : /* @__PURE__ */ l(
|
|
@@ -15917,7 +15917,7 @@ const T1 = ({
|
|
|
15917
15917
|
onClickDeviceEdit: E
|
|
15918
15918
|
}
|
|
15919
15919
|
) : /* @__PURE__ */ t(
|
|
15920
|
-
|
|
15920
|
+
S1,
|
|
15921
15921
|
{
|
|
15922
15922
|
devices: r,
|
|
15923
15923
|
onClickDeviceDelete: y,
|
|
@@ -15936,7 +15936,7 @@ const T1 = ({
|
|
|
15936
15936
|
deviceToken: m,
|
|
15937
15937
|
dialogType: d.type,
|
|
15938
15938
|
isOpen: d.open,
|
|
15939
|
-
onClose:
|
|
15939
|
+
onClose: T
|
|
15940
15940
|
}
|
|
15941
15941
|
)
|
|
15942
15942
|
]
|
|
@@ -16114,7 +16114,7 @@ const T1 = ({
|
|
|
16114
16114
|
({ onProfileUpdated: e, profile: n }) => {
|
|
16115
16115
|
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
16116
|
n.account?.day_payment_is_due || 0
|
|
16117
|
-
), C = n.account?.name || n.account?.feed_name || "", f = n.account?.day_payment_is_due ?
|
|
16117
|
+
), C = n.account?.name || n.account?.feed_name || "", f = n.account?.day_payment_is_due ? S(
|
|
16118
16118
|
o.notification_debt_payment_date,
|
|
16119
16119
|
Ci(n.account?.day_payment_is_due)
|
|
16120
16120
|
) : o.notification_debt_payment_zero_state, E = s ? f : P(n.threshold ?? 0, "0,0"), y = async () => {
|
|
@@ -16154,13 +16154,13 @@ const T1 = ({
|
|
|
16154
16154
|
onClose: () => d(!1),
|
|
16155
16155
|
onPrimaryAction: y,
|
|
16156
16156
|
primaryText: i.save_button,
|
|
16157
|
-
children: s ? /* @__PURE__ */ t(
|
|
16157
|
+
children: s ? /* @__PURE__ */ t(Si, { dateAdapter: Qn, children: /* @__PURE__ */ t(
|
|
16158
16158
|
ja,
|
|
16159
16159
|
{
|
|
16160
16160
|
maxDate: Ye(/* @__PURE__ */ new Date()),
|
|
16161
16161
|
minDate: Ze(/* @__PURE__ */ new Date()),
|
|
16162
|
-
onChange: (
|
|
16163
|
-
m(
|
|
16162
|
+
onChange: (T) => {
|
|
16163
|
+
m(T.getDate());
|
|
16164
16164
|
},
|
|
16165
16165
|
slots: {
|
|
16166
16166
|
// Hides the arrows
|
|
@@ -16182,7 +16182,7 @@ const T1 = ({
|
|
|
16182
16182
|
autoFocus: !0,
|
|
16183
16183
|
fullWidth: !0,
|
|
16184
16184
|
minAmount: 0,
|
|
16185
|
-
setAmount: (
|
|
16185
|
+
setAmount: (T) => _(Number(T) || 0),
|
|
16186
16186
|
sx: { ".MuiTypography-Body": { p: 0 } }
|
|
16187
16187
|
}
|
|
16188
16188
|
)
|
|
@@ -16537,7 +16537,7 @@ const T1 = ({
|
|
|
16537
16537
|
] }),
|
|
16538
16538
|
/* @__PURE__ */ t(b, { sx: { flexDirection: { xs: "column", md: "row" }, gap: 12 }, children: [0, 1].map((_) => {
|
|
16539
16539
|
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:
|
|
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: T }, A) => {
|
|
16541
16541
|
const w = A + h;
|
|
16542
16542
|
return /* @__PURE__ */ l(
|
|
16543
16543
|
Ai,
|
|
@@ -16565,7 +16565,7 @@ const T1 = ({
|
|
|
16565
16565
|
sx: { height: 64, p: "14px 24px" },
|
|
16566
16566
|
children: /* @__PURE__ */ l(b, { sx: { alignItems: "center", flexDirection: "row", gap: 12 }, children: [
|
|
16567
16567
|
/* @__PURE__ */ t($, { name: E, size: 24 }),
|
|
16568
|
-
/* @__PURE__ */ t(p, { variant: "Body", children:
|
|
16568
|
+
/* @__PURE__ */ t(p, { variant: "Body", children: T })
|
|
16569
16569
|
] })
|
|
16570
16570
|
}
|
|
16571
16571
|
),
|
|
@@ -16582,7 +16582,7 @@ const T1 = ({
|
|
|
16582
16582
|
{
|
|
16583
16583
|
"aria-label": v,
|
|
16584
16584
|
divider: !0,
|
|
16585
|
-
onClick: () => s({ guid: f, category:
|
|
16585
|
+
onClick: () => s({ guid: f, category: T, pageTitle: v, topicKey: R }),
|
|
16586
16586
|
sx: {
|
|
16587
16587
|
pl: "6px !important",
|
|
16588
16588
|
borderColor: "border.light",
|
|
@@ -16907,12 +16907,12 @@ const T1 = ({
|
|
|
16907
16907
|
X,
|
|
16908
16908
|
{
|
|
16909
16909
|
items: [
|
|
16910
|
-
|
|
16910
|
+
S(
|
|
16911
16911
|
e.accounts_overview.edit_account_step_1_instruction,
|
|
16912
16912
|
/* @__PURE__ */ t("b", { children: e.accounts_overview.edit_account_step_1_bold })
|
|
16913
16913
|
),
|
|
16914
16914
|
e.accounts_overview.edit_account_step_2_instruction,
|
|
16915
|
-
|
|
16915
|
+
S(
|
|
16916
16916
|
e.accounts_overview.edit_account_step_3_instruction,
|
|
16917
16917
|
/* @__PURE__ */ t("b", { children: e.accounts_overview.edit_account_step_3_bold_1 }),
|
|
16918
16918
|
/* @__PURE__ */ t("b", { children: e.accounts_overview.edit_account_step_3_bold_2 }),
|
|
@@ -16943,15 +16943,15 @@ const T1 = ({
|
|
|
16943
16943
|
X,
|
|
16944
16944
|
{
|
|
16945
16945
|
items: [
|
|
16946
|
-
|
|
16946
|
+
S(
|
|
16947
16947
|
e.accounts_overview.add_account_step_1_instruction,
|
|
16948
16948
|
/* @__PURE__ */ t("b", { children: e.accounts_overview.add_account_step_1_bold })
|
|
16949
16949
|
),
|
|
16950
|
-
|
|
16950
|
+
S(
|
|
16951
16951
|
e.accounts_overview.add_account_step_2_instruction,
|
|
16952
16952
|
/* @__PURE__ */ t("b", { children: e.accounts_overview.add_account_step_2_bold })
|
|
16953
16953
|
),
|
|
16954
|
-
|
|
16954
|
+
S(
|
|
16955
16955
|
e.accounts_overview.add_account_step_3_instruction,
|
|
16956
16956
|
/* @__PURE__ */ t("b", { children: e.accounts_overview.add_account_step_3_bold })
|
|
16957
16957
|
),
|
|
@@ -16964,7 +16964,7 @@ const T1 = ({
|
|
|
16964
16964
|
/* @__PURE__ */ t(
|
|
16965
16965
|
F,
|
|
16966
16966
|
{
|
|
16967
|
-
content:
|
|
16967
|
+
content: S(
|
|
16968
16968
|
e.accounts_overview.exclude_account_info_text,
|
|
16969
16969
|
/* @__PURE__ */ t("b", { children: e.accounts_overview.exclude_account_info_bold_1 }),
|
|
16970
16970
|
/* @__PURE__ */ t("b", { children: e.accounts_overview.exclude_account_info_bold_2 }),
|
|
@@ -16978,11 +16978,11 @@ const T1 = ({
|
|
|
16978
16978
|
X,
|
|
16979
16979
|
{
|
|
16980
16980
|
items: [
|
|
16981
|
-
|
|
16981
|
+
S(
|
|
16982
16982
|
e.accounts_overview.hide_account_step_1_instruction,
|
|
16983
16983
|
/* @__PURE__ */ t("b", { children: e.accounts_overview.hide_account_step_1_bold })
|
|
16984
16984
|
),
|
|
16985
|
-
|
|
16985
|
+
S(
|
|
16986
16986
|
e.accounts_overview.hide_account_step_2_instruction,
|
|
16987
16987
|
/* @__PURE__ */ t("b", { children: e.accounts_overview.hide_account_step_2_bold })
|
|
16988
16988
|
)
|
|
@@ -16995,11 +16995,11 @@ const T1 = ({
|
|
|
16995
16995
|
X,
|
|
16996
16996
|
{
|
|
16997
16997
|
items: [
|
|
16998
|
-
|
|
16998
|
+
S(
|
|
16999
16999
|
e.accounts_overview.unhide_account_step_1_instruction,
|
|
17000
17000
|
/* @__PURE__ */ t("b", { children: e.accounts_overview.unhide_account_step_1_bold })
|
|
17001
17001
|
),
|
|
17002
|
-
|
|
17002
|
+
S(
|
|
17003
17003
|
e.accounts_overview.unhide_account_step_2_instruction,
|
|
17004
17004
|
/* @__PURE__ */ t("b", { children: e.accounts_overview.unhide_account_step_2_bold })
|
|
17005
17005
|
)
|
|
@@ -17059,7 +17059,7 @@ const T1 = ({
|
|
|
17059
17059
|
{
|
|
17060
17060
|
items: [
|
|
17061
17061
|
e.need_to_fix_a_broken_account.step_1,
|
|
17062
|
-
|
|
17062
|
+
S(
|
|
17063
17063
|
e.need_to_fix_a_broken_account.step_2,
|
|
17064
17064
|
/* @__PURE__ */ t("b", { children: e.need_to_fix_a_broken_account.step_2_bold })
|
|
17065
17065
|
),
|
|
@@ -17093,13 +17093,13 @@ const T1 = ({
|
|
|
17093
17093
|
{
|
|
17094
17094
|
items: [
|
|
17095
17095
|
e.seeing_duplicate_accounts.step_1_instruction,
|
|
17096
|
-
|
|
17096
|
+
S(
|
|
17097
17097
|
e.seeing_duplicate_accounts.step_2_instruction,
|
|
17098
17098
|
/* @__PURE__ */ t("b", { children: e.seeing_duplicate_accounts.step_2_bold }),
|
|
17099
17099
|
/* @__PURE__ */ t("b", { children: e.seeing_duplicate_accounts.step_2_bold_2 })
|
|
17100
17100
|
),
|
|
17101
17101
|
e.seeing_duplicate_accounts.step_3_instruction,
|
|
17102
|
-
|
|
17102
|
+
S(
|
|
17103
17103
|
e.seeing_duplicate_accounts.step_4_instruction,
|
|
17104
17104
|
/* @__PURE__ */ t("b", { children: e.seeing_duplicate_accounts.step_4_bold })
|
|
17105
17105
|
)
|
|
@@ -17126,11 +17126,11 @@ const T1 = ({
|
|
|
17126
17126
|
X,
|
|
17127
17127
|
{
|
|
17128
17128
|
items: [
|
|
17129
|
-
|
|
17129
|
+
S(
|
|
17130
17130
|
i.overview_list_item_1_text,
|
|
17131
17131
|
/* @__PURE__ */ t("b", { children: i.overview_list_item_1_bold })
|
|
17132
17132
|
),
|
|
17133
|
-
|
|
17133
|
+
S(
|
|
17134
17134
|
i.overview_list_item_2_text,
|
|
17135
17135
|
/* @__PURE__ */ t("b", { children: i.overview_list_item_2_bold })
|
|
17136
17136
|
)
|
|
@@ -17152,11 +17152,11 @@ const T1 = ({
|
|
|
17152
17152
|
X,
|
|
17153
17153
|
{
|
|
17154
17154
|
items: [
|
|
17155
|
-
|
|
17155
|
+
S(
|
|
17156
17156
|
i.adjusting_income_list_items_1_text,
|
|
17157
17157
|
/* @__PURE__ */ t("b", { children: i.adjusting_income_list_items_1_bold })
|
|
17158
17158
|
),
|
|
17159
|
-
|
|
17159
|
+
S(
|
|
17160
17160
|
i.adjusting_income_list_items_2_text,
|
|
17161
17161
|
/* @__PURE__ */ t("b", { children: i.adjusting_income_list_items_2_bold })
|
|
17162
17162
|
)
|
|
@@ -17179,7 +17179,7 @@ const T1 = ({
|
|
|
17179
17179
|
items: [
|
|
17180
17180
|
i.create_budget_list_items_1,
|
|
17181
17181
|
i.create_budget_list_items_2,
|
|
17182
|
-
|
|
17182
|
+
S(
|
|
17183
17183
|
i.create_budget_list_items_3,
|
|
17184
17184
|
/* @__PURE__ */ t("b", { children: i.create_budget_list_items_3_bold_1 }),
|
|
17185
17185
|
/* @__PURE__ */ t("b", { children: i.create_budget_list_items_3_bold_2 }),
|
|
@@ -17234,7 +17234,7 @@ const T1 = ({
|
|
|
17234
17234
|
content: /* @__PURE__ */ t(
|
|
17235
17235
|
F,
|
|
17236
17236
|
{
|
|
17237
|
-
content:
|
|
17237
|
+
content: S(
|
|
17238
17238
|
e.cashflow_overview.expense_details_instruction,
|
|
17239
17239
|
/* @__PURE__ */ t("b", { children: e.cashflow_overview.edit_expense_details_bold_1 })
|
|
17240
17240
|
),
|
|
@@ -17271,7 +17271,7 @@ const T1 = ({
|
|
|
17271
17271
|
content: /* @__PURE__ */ t(
|
|
17272
17272
|
F,
|
|
17273
17273
|
{
|
|
17274
|
-
content:
|
|
17274
|
+
content: S(
|
|
17275
17275
|
n.overview_desc,
|
|
17276
17276
|
/* @__PURE__ */ t("b", { children: n.snowball_method })
|
|
17277
17277
|
)
|
|
@@ -17301,19 +17301,19 @@ const T1 = ({
|
|
|
17301
17301
|
X,
|
|
17302
17302
|
{
|
|
17303
17303
|
items: [
|
|
17304
|
-
|
|
17304
|
+
S(
|
|
17305
17305
|
n.debt_prioritization_list_1_item_1,
|
|
17306
17306
|
/* @__PURE__ */ t("b", { children: n.debt_prioritization_list_1_item_1_bold })
|
|
17307
17307
|
),
|
|
17308
|
-
|
|
17308
|
+
S(
|
|
17309
17309
|
n.debt_prioritization_list_1_item_2,
|
|
17310
17310
|
/* @__PURE__ */ t("b", { children: n.debt_prioritization_list_1_item_2_bold })
|
|
17311
17311
|
),
|
|
17312
|
-
|
|
17312
|
+
S(
|
|
17313
17313
|
n.debt_prioritization_list_1_item_3,
|
|
17314
17314
|
/* @__PURE__ */ t("b", { children: n.debt_prioritization_list_1_item_3_bold })
|
|
17315
17315
|
),
|
|
17316
|
-
|
|
17316
|
+
S(
|
|
17317
17317
|
n.debt_prioritization_list_1_item_3,
|
|
17318
17318
|
/* @__PURE__ */ t("b", { children: n.debt_prioritization_list_1_item_3_bold })
|
|
17319
17319
|
)
|
|
@@ -17345,15 +17345,15 @@ const T1 = ({
|
|
|
17345
17345
|
X,
|
|
17346
17346
|
{
|
|
17347
17347
|
items: [
|
|
17348
|
-
|
|
17348
|
+
S(
|
|
17349
17349
|
n.debt_chart_list_item_1,
|
|
17350
17350
|
/* @__PURE__ */ t("b", { children: n.debt_chart_list_item_1_bold })
|
|
17351
17351
|
),
|
|
17352
|
-
|
|
17352
|
+
S(
|
|
17353
17353
|
n.debt_chart_list_item_2,
|
|
17354
17354
|
/* @__PURE__ */ t("b", { children: n.debt_chart_list_item_2_bold })
|
|
17355
17355
|
),
|
|
17356
|
-
|
|
17356
|
+
S(
|
|
17357
17357
|
n.debt_chart_list_item_3,
|
|
17358
17358
|
/* @__PURE__ */ t("b", { children: n.debt_chart_list_item_3_bold })
|
|
17359
17359
|
)
|
|
@@ -17394,7 +17394,7 @@ const T1 = ({
|
|
|
17394
17394
|
{
|
|
17395
17395
|
items: [
|
|
17396
17396
|
n.debt_details_list_1_item_1,
|
|
17397
|
-
|
|
17397
|
+
S(
|
|
17398
17398
|
n.debt_details_list_1_item_2,
|
|
17399
17399
|
/* @__PURE__ */ t("b", { children: n.debt_details_list_1_item_2_bold })
|
|
17400
17400
|
)
|
|
@@ -17408,7 +17408,7 @@ const T1 = ({
|
|
|
17408
17408
|
{
|
|
17409
17409
|
items: [
|
|
17410
17410
|
n.debt_details_list_2_item_1,
|
|
17411
|
-
|
|
17411
|
+
S(
|
|
17412
17412
|
n.debt_details_list_2_item_2,
|
|
17413
17413
|
/* @__PURE__ */ t("b", { children: n.debt_details_list_2_item_2_bold })
|
|
17414
17414
|
),
|
|
@@ -17433,7 +17433,7 @@ const T1 = ({
|
|
|
17433
17433
|
items: [
|
|
17434
17434
|
n.hiding_accounts_list_1_item_1,
|
|
17435
17435
|
n.hiding_accounts_list_1_item_2,
|
|
17436
|
-
|
|
17436
|
+
S(
|
|
17437
17437
|
n.hiding_accounts_list_1_item_3,
|
|
17438
17438
|
/* @__PURE__ */ t("b", { children: n.hiding_accounts_list_1_item_3_bold })
|
|
17439
17439
|
)
|
|
@@ -17447,7 +17447,7 @@ const T1 = ({
|
|
|
17447
17447
|
{
|
|
17448
17448
|
items: [
|
|
17449
17449
|
n.hiding_accounts_list_2_item_1,
|
|
17450
|
-
|
|
17450
|
+
S(
|
|
17451
17451
|
n.hiding_accounts_list_2_item_2,
|
|
17452
17452
|
/* @__PURE__ */ t("b", { children: n.hiding_accounts_list_2_item_2_bold })
|
|
17453
17453
|
)
|
|
@@ -17467,11 +17467,11 @@ const T1 = ({
|
|
|
17467
17467
|
X,
|
|
17468
17468
|
{
|
|
17469
17469
|
items: [
|
|
17470
|
-
|
|
17470
|
+
S(
|
|
17471
17471
|
n.extra_payments_list_2_item_1,
|
|
17472
17472
|
/* @__PURE__ */ t("b", { children: n.extra_payments_list_2_item_1_bold })
|
|
17473
17473
|
),
|
|
17474
|
-
|
|
17474
|
+
S(
|
|
17475
17475
|
n.extra_payments_list_2_item_2,
|
|
17476
17476
|
/* @__PURE__ */ t("b", { children: n.extra_payments_list_2_item_2_bold })
|
|
17477
17477
|
)
|
|
@@ -17519,20 +17519,20 @@ const T1 = ({
|
|
|
17519
17519
|
X,
|
|
17520
17520
|
{
|
|
17521
17521
|
items: [
|
|
17522
|
-
|
|
17522
|
+
S(
|
|
17523
17523
|
i.data_private_secure_step1,
|
|
17524
17524
|
/* @__PURE__ */ t("b", { children: i.encryption_firewalls_bold_text })
|
|
17525
17525
|
),
|
|
17526
|
-
|
|
17526
|
+
S(
|
|
17527
17527
|
i.data_private_secure_step2,
|
|
17528
17528
|
/* @__PURE__ */ t("b", { children: i.secure_authentication_bold_text })
|
|
17529
17529
|
),
|
|
17530
|
-
|
|
17530
|
+
S(
|
|
17531
17531
|
i.data_private_secure_step3,
|
|
17532
17532
|
/* @__PURE__ */ t("b", { children: i.privacy_protection_bold_text }),
|
|
17533
17533
|
/* @__PURE__ */ t("b", { children: i.not_bold_text })
|
|
17534
17534
|
),
|
|
17535
|
-
|
|
17535
|
+
S(
|
|
17536
17536
|
i.data_private_secure_step4,
|
|
17537
17537
|
/* @__PURE__ */ t("b", { children: i.policy_updates_bold_text })
|
|
17538
17538
|
)
|
|
@@ -17553,11 +17553,11 @@ const T1 = ({
|
|
|
17553
17553
|
X,
|
|
17554
17554
|
{
|
|
17555
17555
|
items: [
|
|
17556
|
-
|
|
17556
|
+
S(
|
|
17557
17557
|
i.transactions_categorized_step1,
|
|
17558
17558
|
/* @__PURE__ */ t("b", { children: i.checks_atm_withdrawals_bold_text })
|
|
17559
17559
|
),
|
|
17560
|
-
|
|
17560
|
+
S(
|
|
17561
17561
|
i.transactions_categorized_step2,
|
|
17562
17562
|
/* @__PURE__ */ t("b", { children: i.limited_transaction_details_bold_text })
|
|
17563
17563
|
)
|
|
@@ -17575,11 +17575,11 @@ const T1 = ({
|
|
|
17575
17575
|
X,
|
|
17576
17576
|
{
|
|
17577
17577
|
items: [
|
|
17578
|
-
|
|
17578
|
+
S(
|
|
17579
17579
|
i.transactions_uncategorized_step1,
|
|
17580
17580
|
/* @__PURE__ */ t("b", { children: i.transactions_bold_text })
|
|
17581
17581
|
),
|
|
17582
|
-
|
|
17582
|
+
S(
|
|
17583
17583
|
i.transactions_uncategorized_step2,
|
|
17584
17584
|
/* @__PURE__ */ t("b", { children: i.categorize_bold_text })
|
|
17585
17585
|
),
|
|
@@ -17622,16 +17622,16 @@ const T1 = ({
|
|
|
17622
17622
|
X,
|
|
17623
17623
|
{
|
|
17624
17624
|
items: [
|
|
17625
|
-
|
|
17625
|
+
S(
|
|
17626
17626
|
i.display_issues_step1,
|
|
17627
17627
|
/* @__PURE__ */ t("b", { children: i.f12_bold_text })
|
|
17628
17628
|
),
|
|
17629
|
-
|
|
17629
|
+
S(
|
|
17630
17630
|
i.display_issues_step2,
|
|
17631
17631
|
/* @__PURE__ */ t("b", { children: i.browser_mode_bold_text })
|
|
17632
17632
|
),
|
|
17633
17633
|
i.display_issues_step3,
|
|
17634
|
-
|
|
17634
|
+
S(
|
|
17635
17635
|
i.display_issues_step4,
|
|
17636
17636
|
/* @__PURE__ */ t("b", { children: i.document_mode_bold_text })
|
|
17637
17637
|
),
|
|
@@ -17667,15 +17667,15 @@ const T1 = ({
|
|
|
17667
17667
|
X,
|
|
17668
17668
|
{
|
|
17669
17669
|
items: [
|
|
17670
|
-
|
|
17670
|
+
S(
|
|
17671
17671
|
n.setting_goals_step1,
|
|
17672
17672
|
/* @__PURE__ */ t("b", { children: n.savings_bold_text })
|
|
17673
17673
|
),
|
|
17674
|
-
|
|
17674
|
+
S(
|
|
17675
17675
|
n.setting_goals_step2,
|
|
17676
17676
|
/* @__PURE__ */ t("b", { children: n.debt_payoff_bold_text })
|
|
17677
17677
|
),
|
|
17678
|
-
|
|
17678
|
+
S(
|
|
17679
17679
|
n.setting_goals_step3,
|
|
17680
17680
|
/* @__PURE__ */ t("b", { children: n.retirement_bold_text })
|
|
17681
17681
|
)
|
|
@@ -17695,11 +17695,11 @@ const T1 = ({
|
|
|
17695
17695
|
X,
|
|
17696
17696
|
{
|
|
17697
17697
|
items: [
|
|
17698
|
-
|
|
17698
|
+
S(
|
|
17699
17699
|
n.create_goal_step1,
|
|
17700
17700
|
/* @__PURE__ */ t("b", { children: n.add_goal_bold_text })
|
|
17701
17701
|
),
|
|
17702
|
-
|
|
17702
|
+
S(
|
|
17703
17703
|
n.create_goal_step2,
|
|
17704
17704
|
/* @__PURE__ */ t("b", { children: n.savings_bold_text }),
|
|
17705
17705
|
/* @__PURE__ */ t("b", { children: n.debt_payoff_bold_text }),
|
|
@@ -17707,7 +17707,7 @@ const T1 = ({
|
|
|
17707
17707
|
),
|
|
17708
17708
|
n.create_goal_step3,
|
|
17709
17709
|
n.create_goal_step4,
|
|
17710
|
-
|
|
17710
|
+
S(
|
|
17711
17711
|
n.create_goal_step5,
|
|
17712
17712
|
/* @__PURE__ */ t("b", { children: n.save_bold_text })
|
|
17713
17713
|
)
|
|
@@ -17731,7 +17731,7 @@ const T1 = ({
|
|
|
17731
17731
|
items: [
|
|
17732
17732
|
n.savings_goals_step1,
|
|
17733
17733
|
n.savings_goals_step2,
|
|
17734
|
-
|
|
17734
|
+
S(
|
|
17735
17735
|
n.savings_goals_step3,
|
|
17736
17736
|
/* @__PURE__ */ t("b", { children: n.priority_bold_text }),
|
|
17737
17737
|
/* @__PURE__ */ t("b", { children: n.monthly_contribution_bold_text })
|
|
@@ -17755,7 +17755,7 @@ const T1 = ({
|
|
|
17755
17755
|
items: [
|
|
17756
17756
|
n.debt_payoff_goals_step1,
|
|
17757
17757
|
n.debt_payoff_goals_step2,
|
|
17758
|
-
|
|
17758
|
+
S(
|
|
17759
17759
|
n.debt_payoff_goals_step3,
|
|
17760
17760
|
/* @__PURE__ */ t("b", { children: n.fastest_payoff_bold_text }),
|
|
17761
17761
|
/* @__PURE__ */ t("b", { children: n.highest_interest_bold_text }),
|
|
@@ -17779,13 +17779,13 @@ const T1 = ({
|
|
|
17779
17779
|
X,
|
|
17780
17780
|
{
|
|
17781
17781
|
items: [
|
|
17782
|
-
|
|
17782
|
+
S(
|
|
17783
17783
|
n.retirement_goals_step1,
|
|
17784
17784
|
/* @__PURE__ */ t("b", { children: n.desired_retirement_age_bold_text }),
|
|
17785
17785
|
/* @__PURE__ */ t("b", { children: n.savings_goal_bold_text })
|
|
17786
17786
|
),
|
|
17787
17787
|
n.retirement_goals_step2,
|
|
17788
|
-
|
|
17788
|
+
S(
|
|
17789
17789
|
n.retirement_goals_step3,
|
|
17790
17790
|
/* @__PURE__ */ t("b", { children: n.blue_i_icon_bold_text })
|
|
17791
17791
|
)
|
|
@@ -17812,17 +17812,17 @@ const T1 = ({
|
|
|
17812
17812
|
X,
|
|
17813
17813
|
{
|
|
17814
17814
|
items: [
|
|
17815
|
-
|
|
17815
|
+
S(
|
|
17816
17816
|
n.adjusting_contribution_priorities_step1,
|
|
17817
17817
|
/* @__PURE__ */ t("b", { children: n.manage_goals_bold_text })
|
|
17818
17818
|
),
|
|
17819
|
-
|
|
17819
|
+
S(
|
|
17820
17820
|
n.create_goal_step2,
|
|
17821
17821
|
/* @__PURE__ */ t("b", { children: n.savings_bold_text }),
|
|
17822
17822
|
/* @__PURE__ */ t("b", { children: n.debt_payoff_bold_text }),
|
|
17823
17823
|
/* @__PURE__ */ t("b", { children: n.retirement_bold_text })
|
|
17824
17824
|
),
|
|
17825
|
-
|
|
17825
|
+
S(
|
|
17826
17826
|
n.adjusting_contribution_priorities_step3,
|
|
17827
17827
|
/* @__PURE__ */ t("b", { children: n.pencil_icon_bold_text })
|
|
17828
17828
|
),
|
|
@@ -17847,7 +17847,7 @@ const T1 = ({
|
|
|
17847
17847
|
/* @__PURE__ */ t(
|
|
17848
17848
|
F,
|
|
17849
17849
|
{
|
|
17850
|
-
content:
|
|
17850
|
+
content: S(
|
|
17851
17851
|
n.description_1,
|
|
17852
17852
|
/* @__PURE__ */ t("b", { children: n.description_1_bold_1 }),
|
|
17853
17853
|
/* @__PURE__ */ t("b", { children: n.description_1_bold_2 })
|
|
@@ -17858,7 +17858,7 @@ const T1 = ({
|
|
|
17858
17858
|
/* @__PURE__ */ t(
|
|
17859
17859
|
F,
|
|
17860
17860
|
{
|
|
17861
|
-
content:
|
|
17861
|
+
content: S(
|
|
17862
17862
|
n.list_1_description,
|
|
17863
17863
|
/* @__PURE__ */ t("b", { children: n.list_1_description_bold })
|
|
17864
17864
|
),
|
|
@@ -17881,7 +17881,7 @@ const T1 = ({
|
|
|
17881
17881
|
/* @__PURE__ */ t(
|
|
17882
17882
|
F,
|
|
17883
17883
|
{
|
|
17884
|
-
content:
|
|
17884
|
+
content: S(
|
|
17885
17885
|
n.list_2_description,
|
|
17886
17886
|
/* @__PURE__ */ t("b", { children: n.list_2_description_bold })
|
|
17887
17887
|
),
|
|
@@ -17911,20 +17911,20 @@ const T1 = ({
|
|
|
17911
17911
|
X,
|
|
17912
17912
|
{
|
|
17913
17913
|
items: [
|
|
17914
|
-
|
|
17914
|
+
S(
|
|
17915
17915
|
n.mobile_devices_overview_step1,
|
|
17916
17916
|
/* @__PURE__ */ t("b", { children: n.icon_mobile_bold_text })
|
|
17917
17917
|
),
|
|
17918
|
-
|
|
17918
|
+
S(
|
|
17919
17919
|
n.mobile_devices_overview_step2,
|
|
17920
17920
|
/* @__PURE__ */ t("b", { children: n.generate_access_code_bold_text })
|
|
17921
17921
|
),
|
|
17922
|
-
|
|
17922
|
+
S(
|
|
17923
17923
|
n.mobile_devices_overview_step3,
|
|
17924
17924
|
/* @__PURE__ */ t("b", { children: n.ios_bold_text }),
|
|
17925
17925
|
/* @__PURE__ */ t("b", { children: n.android_bold_text })
|
|
17926
17926
|
),
|
|
17927
|
-
|
|
17927
|
+
S(
|
|
17928
17928
|
n.mobile_devices_overview_step4,
|
|
17929
17929
|
/* @__PURE__ */ t("b", { children: n.access_code_bold_text })
|
|
17930
17930
|
)
|
|
@@ -17951,19 +17951,19 @@ const T1 = ({
|
|
|
17951
17951
|
X,
|
|
17952
17952
|
{
|
|
17953
17953
|
items: [
|
|
17954
|
-
|
|
17954
|
+
S(
|
|
17955
17955
|
n.preventing_app_crashes_step1,
|
|
17956
17956
|
/* @__PURE__ */ t("b", { children: n.update_bold_text })
|
|
17957
17957
|
),
|
|
17958
|
-
|
|
17958
|
+
S(
|
|
17959
17959
|
n.preventing_app_crashes_step2,
|
|
17960
17960
|
/* @__PURE__ */ t("b", { children: n.close_bold_text })
|
|
17961
17961
|
),
|
|
17962
|
-
|
|
17962
|
+
S(
|
|
17963
17963
|
n.preventing_app_crashes_step3,
|
|
17964
17964
|
/* @__PURE__ */ t("b", { children: n.restart_bold_text })
|
|
17965
17965
|
),
|
|
17966
|
-
|
|
17966
|
+
S(
|
|
17967
17967
|
n.preventing_app_crashes_step4,
|
|
17968
17968
|
/* @__PURE__ */ t("b", { children: n.reinstall_bold_text })
|
|
17969
17969
|
)
|
|
@@ -17983,7 +17983,7 @@ const T1 = ({
|
|
|
17983
17983
|
content: /* @__PURE__ */ t(
|
|
17984
17984
|
F,
|
|
17985
17985
|
{
|
|
17986
|
-
content:
|
|
17986
|
+
content: S(
|
|
17987
17987
|
i.net_worth_widget_overview_text,
|
|
17988
17988
|
/* @__PURE__ */ t("b", { children: i.accounts_bold_text })
|
|
17989
17989
|
)
|
|
@@ -18008,7 +18008,7 @@ const T1 = ({
|
|
|
18008
18008
|
/* @__PURE__ */ t(
|
|
18009
18009
|
F,
|
|
18010
18010
|
{
|
|
18011
|
-
content:
|
|
18011
|
+
content: S(
|
|
18012
18012
|
i.net_worth_history_step1,
|
|
18013
18013
|
/* @__PURE__ */ t("b", { children: i.dates_bold_text })
|
|
18014
18014
|
)
|
|
@@ -18027,7 +18027,7 @@ const T1 = ({
|
|
|
18027
18027
|
/* @__PURE__ */ t(
|
|
18028
18028
|
F,
|
|
18029
18029
|
{
|
|
18030
|
-
content:
|
|
18030
|
+
content: S(
|
|
18031
18031
|
i.gains_losses_subheader,
|
|
18032
18032
|
/* @__PURE__ */ t("b", { children: i.monthly_totals_bold_text })
|
|
18033
18033
|
)
|
|
@@ -18037,11 +18037,11 @@ const T1 = ({
|
|
|
18037
18037
|
X,
|
|
18038
18038
|
{
|
|
18039
18039
|
items: [
|
|
18040
|
-
|
|
18040
|
+
S(
|
|
18041
18041
|
i.gains_losses_step1,
|
|
18042
18042
|
/* @__PURE__ */ t("b", { children: i.gains_bold_text })
|
|
18043
18043
|
),
|
|
18044
|
-
|
|
18044
|
+
S(
|
|
18045
18045
|
i.gains_losses_step2,
|
|
18046
18046
|
/* @__PURE__ */ t("b", { children: i.losses_bold_text })
|
|
18047
18047
|
)
|
|
@@ -18070,7 +18070,7 @@ const T1 = ({
|
|
|
18070
18070
|
X,
|
|
18071
18071
|
{
|
|
18072
18072
|
items: [
|
|
18073
|
-
|
|
18073
|
+
S(
|
|
18074
18074
|
i.assests_liabilities_step1,
|
|
18075
18075
|
/* @__PURE__ */ t("b", { children: i.assets_liabilities_section_title })
|
|
18076
18076
|
),
|
|
@@ -18083,11 +18083,11 @@ const T1 = ({
|
|
|
18083
18083
|
X,
|
|
18084
18084
|
{
|
|
18085
18085
|
items: [
|
|
18086
|
-
|
|
18086
|
+
S(
|
|
18087
18087
|
i.assets_definition,
|
|
18088
18088
|
/* @__PURE__ */ t("b", { children: i.assets_bold_text })
|
|
18089
18089
|
),
|
|
18090
|
-
|
|
18090
|
+
S(
|
|
18091
18091
|
i.liabilities_definition,
|
|
18092
18092
|
/* @__PURE__ */ t("b", { children: i.liabilities_bold_text })
|
|
18093
18093
|
)
|
|
@@ -18111,7 +18111,7 @@ const T1 = ({
|
|
|
18111
18111
|
content: /* @__PURE__ */ t(
|
|
18112
18112
|
F,
|
|
18113
18113
|
{
|
|
18114
|
-
content:
|
|
18114
|
+
content: S(
|
|
18115
18115
|
e.notifications_overview.widget_overview_instruction,
|
|
18116
18116
|
/* @__PURE__ */ t("b", { children: e.notifications_overview.widget_overview_instruction_bold_1 }),
|
|
18117
18117
|
/* @__PURE__ */ t("b", { children: e.notifications_overview.widget_overview_instruction_bold_2 })
|
|
@@ -18138,7 +18138,7 @@ const T1 = ({
|
|
|
18138
18138
|
{
|
|
18139
18139
|
items: [
|
|
18140
18140
|
e.notifications_overview.managing_notifications_list_1,
|
|
18141
|
-
|
|
18141
|
+
S(
|
|
18142
18142
|
e.notifications_overview.managing_notifications_list_2,
|
|
18143
18143
|
/* @__PURE__ */ t("b", { children: e.notifications_overview.managing_notifications_list_2_bold_1 })
|
|
18144
18144
|
)
|
|
@@ -18165,19 +18165,19 @@ const T1 = ({
|
|
|
18165
18165
|
X,
|
|
18166
18166
|
{
|
|
18167
18167
|
items: [
|
|
18168
|
-
|
|
18168
|
+
S(
|
|
18169
18169
|
e.notifications_overview.notification_work_list_1,
|
|
18170
18170
|
/* @__PURE__ */ t("b", { children: e.notifications_overview.notification_work_list_1_bold })
|
|
18171
18171
|
),
|
|
18172
|
-
|
|
18172
|
+
S(
|
|
18173
18173
|
e.notifications_overview.notification_work_list_2,
|
|
18174
18174
|
/* @__PURE__ */ t("b", { children: e.notifications_overview.notification_work_list_2_bold })
|
|
18175
18175
|
),
|
|
18176
|
-
|
|
18176
|
+
S(
|
|
18177
18177
|
e.notifications_overview.notification_work_list_3,
|
|
18178
18178
|
/* @__PURE__ */ t("b", { children: e.notifications_overview.notification_work_list_3_bold })
|
|
18179
18179
|
),
|
|
18180
|
-
|
|
18180
|
+
S(
|
|
18181
18181
|
e.notifications_overview.notification_work_list_4,
|
|
18182
18182
|
/* @__PURE__ */ t("b", { children: e.notifications_overview.notification_work_list_4_bold })
|
|
18183
18183
|
)
|
|
@@ -18198,7 +18198,7 @@ const T1 = ({
|
|
|
18198
18198
|
{
|
|
18199
18199
|
items: [
|
|
18200
18200
|
e.notifications_overview.verify_email_list_1,
|
|
18201
|
-
|
|
18201
|
+
S(
|
|
18202
18202
|
e.notifications_overview.verify_email_list_2,
|
|
18203
18203
|
/* @__PURE__ */ t("b", { children: e.notifications_overview.verify_email_list_2_bold })
|
|
18204
18204
|
)
|
|
@@ -18220,7 +18220,7 @@ const T1 = ({
|
|
|
18220
18220
|
content: /* @__PURE__ */ t(
|
|
18221
18221
|
F,
|
|
18222
18222
|
{
|
|
18223
|
-
content:
|
|
18223
|
+
content: S(
|
|
18224
18224
|
n.overview_description,
|
|
18225
18225
|
/* @__PURE__ */ t("b", { children: n.recurring_transactions })
|
|
18226
18226
|
)
|
|
@@ -18237,7 +18237,7 @@ const T1 = ({
|
|
|
18237
18237
|
content: /* @__PURE__ */ t(
|
|
18238
18238
|
F,
|
|
18239
18239
|
{
|
|
18240
|
-
content:
|
|
18240
|
+
content: S(
|
|
18241
18241
|
n.calendar_dec,
|
|
18242
18242
|
/* @__PURE__ */ t("b", { children: n.calendar_bold })
|
|
18243
18243
|
)
|
|
@@ -18253,7 +18253,7 @@ const T1 = ({
|
|
|
18253
18253
|
/* @__PURE__ */ t(
|
|
18254
18254
|
F,
|
|
18255
18255
|
{
|
|
18256
|
-
content:
|
|
18256
|
+
content: S(
|
|
18257
18257
|
n.edit_recurring_transaction_dec_1,
|
|
18258
18258
|
/* @__PURE__ */ t("b", { children: n.edit_recurring_transaction_dec_bold_1 }),
|
|
18259
18259
|
/* @__PURE__ */ t("b", { children: n.edit_recurring_transaction_dec_bold_2 }),
|
|
@@ -18319,7 +18319,7 @@ const T1 = ({
|
|
|
18319
18319
|
items: [
|
|
18320
18320
|
i.widget_overview_instruction_1,
|
|
18321
18321
|
i.widget_overview_instruction_2,
|
|
18322
|
-
|
|
18322
|
+
S(
|
|
18323
18323
|
i.widget_overview_instruction_3,
|
|
18324
18324
|
/* @__PURE__ */ t("b", { children: i.widget_overview_instruction_3_bold })
|
|
18325
18325
|
)
|
|
@@ -18343,15 +18343,15 @@ const T1 = ({
|
|
|
18343
18343
|
X,
|
|
18344
18344
|
{
|
|
18345
18345
|
items: [
|
|
18346
|
-
|
|
18346
|
+
S(
|
|
18347
18347
|
i.date_range_section_list_1,
|
|
18348
18348
|
/* @__PURE__ */ t("b", { children: i.date_range_section_list_1_bold })
|
|
18349
18349
|
),
|
|
18350
|
-
|
|
18350
|
+
S(
|
|
18351
18351
|
i.date_range_section_list_2,
|
|
18352
18352
|
/* @__PURE__ */ t("b", { children: i.date_range_section_list_2_bold })
|
|
18353
18353
|
),
|
|
18354
|
-
|
|
18354
|
+
S(
|
|
18355
18355
|
i.date_range_section_list_3,
|
|
18356
18356
|
/* @__PURE__ */ t("b", { children: i.date_range_section_list_3_bold })
|
|
18357
18357
|
)
|
|
@@ -18372,12 +18372,12 @@ const T1 = ({
|
|
|
18372
18372
|
X,
|
|
18373
18373
|
{
|
|
18374
18374
|
items: [
|
|
18375
|
-
|
|
18375
|
+
S(
|
|
18376
18376
|
i.spending_categories_list_1,
|
|
18377
18377
|
/* @__PURE__ */ t("b", { children: i.spending_categories_list_1_bold_1 }),
|
|
18378
18378
|
/* @__PURE__ */ t("b", { children: i.spending_categories_list_1_bold_2 })
|
|
18379
18379
|
),
|
|
18380
|
-
|
|
18380
|
+
S(
|
|
18381
18381
|
i.spending_categories_list_2,
|
|
18382
18382
|
/* @__PURE__ */ t("b", { children: i.spending_categories_list_2_bold })
|
|
18383
18383
|
),
|
|
@@ -18421,11 +18421,11 @@ const T1 = ({
|
|
|
18421
18421
|
e.transactions_widget_overview.widget_overview_transaction_details,
|
|
18422
18422
|
e.transactions_widget_overview.widget_overview_filter_accounts,
|
|
18423
18423
|
e.transactions_widget_overview.widget_overview_search_transactions,
|
|
18424
|
-
|
|
18424
|
+
S(
|
|
18425
18425
|
e.transactions_widget_overview.widget_overview_add_transaction_text,
|
|
18426
18426
|
/* @__PURE__ */ t("b", { children: e.transactions_widget_overview.widget_overview_add_transaction_bold })
|
|
18427
18427
|
),
|
|
18428
|
-
|
|
18428
|
+
S(
|
|
18429
18429
|
e.transactions_widget_overview.widget_overview_export_csv_text,
|
|
18430
18430
|
/* @__PURE__ */ t("b", { children: e.transactions_widget_overview.widget_overview_export_csv_bold })
|
|
18431
18431
|
)
|
|
@@ -18519,7 +18519,7 @@ const T1 = ({
|
|
|
18519
18519
|
X,
|
|
18520
18520
|
{
|
|
18521
18521
|
items: [
|
|
18522
|
-
|
|
18522
|
+
S(
|
|
18523
18523
|
e.transactions_widget_overview.categorizing_transactions_select_category,
|
|
18524
18524
|
/* @__PURE__ */ t("b", { children: e.transactions_widget_overview.categorizing_transactions_category_bold })
|
|
18525
18525
|
),
|
|
@@ -18558,7 +18558,7 @@ const T1 = ({
|
|
|
18558
18558
|
{
|
|
18559
18559
|
items: [
|
|
18560
18560
|
e.transactions_widget_overview.transaction_rules_recategorize,
|
|
18561
|
-
|
|
18561
|
+
S(
|
|
18562
18562
|
e.transactions_widget_overview.transaction_rules_apply_to_all_text,
|
|
18563
18563
|
/* @__PURE__ */ t("b", { children: e.transactions_widget_overview.transaction_rules_apply_to_all_bold })
|
|
18564
18564
|
)
|
|
@@ -18577,12 +18577,12 @@ const T1 = ({
|
|
|
18577
18577
|
X,
|
|
18578
18578
|
{
|
|
18579
18579
|
items: [
|
|
18580
|
-
|
|
18580
|
+
S(
|
|
18581
18581
|
e.transactions_widget_overview.transaction_rules_go_to_settings,
|
|
18582
18582
|
/* @__PURE__ */ t("b", { children: e.transactions_widget_overview.transaction_rules_go_to_settings_bold })
|
|
18583
18583
|
),
|
|
18584
18584
|
e.transactions_widget_overview.transaction_rules_edit_payee_category,
|
|
18585
|
-
|
|
18585
|
+
S(
|
|
18586
18586
|
e.transactions_widget_overview.transaction_rules_save_text,
|
|
18587
18587
|
/* @__PURE__ */ t("b", { children: e.transactions_widget_overview.transaction_rules_save_bold })
|
|
18588
18588
|
)
|
|
@@ -18601,12 +18601,12 @@ const T1 = ({
|
|
|
18601
18601
|
X,
|
|
18602
18602
|
{
|
|
18603
18603
|
items: [
|
|
18604
|
-
|
|
18604
|
+
S(
|
|
18605
18605
|
e.transactions_widget_overview.transaction_rules_delete_go_to_settings,
|
|
18606
18606
|
/* @__PURE__ */ t("b", { children: e.transactions_widget_overview.transaction_rules_delete_go_to_settings_bold })
|
|
18607
18607
|
),
|
|
18608
18608
|
e.transactions_widget_overview.transaction_rules_select_rule_delete_icon,
|
|
18609
|
-
|
|
18609
|
+
S(
|
|
18610
18610
|
e.transactions_widget_overview.transaction_rules_delete_text,
|
|
18611
18611
|
/* @__PURE__ */ t("b", { children: e.transactions_widget_overview.transaction_rules_delete_bold })
|
|
18612
18612
|
)
|
|
@@ -18637,12 +18637,12 @@ const T1 = ({
|
|
|
18637
18637
|
{
|
|
18638
18638
|
items: [
|
|
18639
18639
|
e.transactions_widget_overview.split_transactions_select_transaction,
|
|
18640
|
-
|
|
18640
|
+
S(
|
|
18641
18641
|
e.transactions_widget_overview.split_transactions_select_split_transaction,
|
|
18642
18642
|
/* @__PURE__ */ t("b", { children: e.transactions_widget_overview.split_transactions_select_split_transaction_bold })
|
|
18643
18643
|
),
|
|
18644
18644
|
e.transactions_widget_overview.split_transactions_add_splits,
|
|
18645
|
-
|
|
18645
|
+
S(
|
|
18646
18646
|
e.transactions_widget_overview.split_transactions_save_text,
|
|
18647
18647
|
/* @__PURE__ */ t("b", { children: e.transactions_widget_overview.split_transactions_save_bold })
|
|
18648
18648
|
)
|
|
@@ -18662,11 +18662,11 @@ const T1 = ({
|
|
|
18662
18662
|
{
|
|
18663
18663
|
items: [
|
|
18664
18664
|
e.transactions_widget_overview.split_transactions_delete_select_split_transaction,
|
|
18665
|
-
|
|
18665
|
+
S(
|
|
18666
18666
|
e.transactions_widget_overview.split_transactions_delete_split_text,
|
|
18667
18667
|
/* @__PURE__ */ t("b", { children: e.transactions_widget_overview.split_transactions_delete_split_bold })
|
|
18668
18668
|
),
|
|
18669
|
-
|
|
18669
|
+
S(
|
|
18670
18670
|
e.transactions_widget_overview.split_transactions_delete_text,
|
|
18671
18671
|
/* @__PURE__ */ t("b", { children: e.transactions_widget_overview.split_transactions_delete_bold })
|
|
18672
18672
|
)
|
|
@@ -18686,16 +18686,16 @@ const T1 = ({
|
|
|
18686
18686
|
X,
|
|
18687
18687
|
{
|
|
18688
18688
|
items: [
|
|
18689
|
-
|
|
18689
|
+
S(
|
|
18690
18690
|
e.duplicate_transactions.duplicate_accounts,
|
|
18691
18691
|
/* @__PURE__ */ t("b", { children: e.duplicate_transactions.duplicate_accounts_bold }),
|
|
18692
18692
|
/* @__PURE__ */ t("b", { children: e.duplicate_transactions.account_details_mark_as_duplicate_bold })
|
|
18693
18693
|
),
|
|
18694
|
-
|
|
18694
|
+
S(
|
|
18695
18695
|
e.duplicate_transactions.both_debit_credit_sides,
|
|
18696
18696
|
/* @__PURE__ */ t("b", { children: e.duplicate_transactions.both_debit_credit_sides_bold })
|
|
18697
18697
|
),
|
|
18698
|
-
|
|
18698
|
+
S(
|
|
18699
18699
|
e.duplicate_transactions.data_issues_institution,
|
|
18700
18700
|
/* @__PURE__ */ t("b", { children: e.duplicate_transactions.data_issues_institution_bold })
|
|
18701
18701
|
)
|
|
@@ -18709,15 +18709,15 @@ const T1 = ({
|
|
|
18709
18709
|
X,
|
|
18710
18710
|
{
|
|
18711
18711
|
items: [
|
|
18712
|
-
|
|
18712
|
+
S(
|
|
18713
18713
|
e.missing_transactions.processing_time,
|
|
18714
18714
|
/* @__PURE__ */ t("b", { children: e.missing_transactions.processing_time_bold })
|
|
18715
18715
|
),
|
|
18716
|
-
|
|
18716
|
+
S(
|
|
18717
18717
|
e.missing_transactions.new_accounts,
|
|
18718
18718
|
/* @__PURE__ */ t("b", { children: e.missing_transactions.new_accounts_bold })
|
|
18719
18719
|
),
|
|
18720
|
-
|
|
18720
|
+
S(
|
|
18721
18721
|
e.missing_transactions.infrequent_logins,
|
|
18722
18722
|
/* @__PURE__ */ t("b", { children: e.missing_transactions.infrequent_logins_bold })
|
|
18723
18723
|
)
|
|
@@ -18732,7 +18732,7 @@ const T1 = ({
|
|
|
18732
18732
|
X,
|
|
18733
18733
|
{
|
|
18734
18734
|
items: [
|
|
18735
|
-
|
|
18735
|
+
S(
|
|
18736
18736
|
e.pending_transactions.pending_transactions_details,
|
|
18737
18737
|
/* @__PURE__ */ t("b", { children: "date, description, or amount" })
|
|
18738
18738
|
),
|
|
@@ -18749,7 +18749,7 @@ const T1 = ({
|
|
|
18749
18749
|
/* @__PURE__ */ t(
|
|
18750
18750
|
F,
|
|
18751
18751
|
{
|
|
18752
|
-
content:
|
|
18752
|
+
content: S(
|
|
18753
18753
|
e.export_transactions.export_transactions_title,
|
|
18754
18754
|
/* @__PURE__ */ t("b", { children: "CSV file" })
|
|
18755
18755
|
)
|
|
@@ -18760,11 +18760,11 @@ const T1 = ({
|
|
|
18760
18760
|
X,
|
|
18761
18761
|
{
|
|
18762
18762
|
items: [
|
|
18763
|
-
|
|
18763
|
+
S(
|
|
18764
18764
|
e.export_transactions.export_filter_transactions,
|
|
18765
18765
|
/* @__PURE__ */ t("b", { children: "Filter accounts" })
|
|
18766
18766
|
),
|
|
18767
|
-
|
|
18767
|
+
S(
|
|
18768
18768
|
e.export_transactions.export_csv,
|
|
18769
18769
|
/* @__PURE__ */ t("b", { children: "Export CSV" })
|
|
18770
18770
|
),
|
|
@@ -18791,15 +18791,15 @@ const T1 = ({
|
|
|
18791
18791
|
X,
|
|
18792
18792
|
{
|
|
18793
18793
|
items: [
|
|
18794
|
-
|
|
18794
|
+
S(
|
|
18795
18795
|
e.trends_widget_overview.widget_overview_y_axis_instruction,
|
|
18796
18796
|
/* @__PURE__ */ t("b", { children: e.trends_widget_overview.widget_overview_y_axis_bold })
|
|
18797
18797
|
),
|
|
18798
|
-
|
|
18798
|
+
S(
|
|
18799
18799
|
e.trends_widget_overview.widget_overview_x_axis_instruction,
|
|
18800
18800
|
/* @__PURE__ */ t("b", { children: e.trends_widget_overview.widget_overview_x_axis_bold })
|
|
18801
18801
|
),
|
|
18802
|
-
|
|
18802
|
+
S(
|
|
18803
18803
|
e.trends_widget_overview.widget_overview_colored_sections_instruction,
|
|
18804
18804
|
/* @__PURE__ */ t("b", { children: e.trends_widget_overview.widget_overview_colored_sections_bold })
|
|
18805
18805
|
)
|
|
@@ -18867,19 +18867,19 @@ const T1 = ({
|
|
|
18867
18867
|
X,
|
|
18868
18868
|
{
|
|
18869
18869
|
items: [
|
|
18870
|
-
|
|
18870
|
+
S(
|
|
18871
18871
|
i.insights_work_list_1,
|
|
18872
18872
|
/* @__PURE__ */ t("b", { children: i.insights_work_list_1_bold })
|
|
18873
18873
|
),
|
|
18874
|
-
|
|
18874
|
+
S(
|
|
18875
18875
|
i.insights_work_list_2,
|
|
18876
18876
|
/* @__PURE__ */ t("b", { children: i.insights_work_list_2_bold })
|
|
18877
18877
|
),
|
|
18878
|
-
|
|
18878
|
+
S(
|
|
18879
18879
|
i.insights_work_list_3,
|
|
18880
18880
|
/* @__PURE__ */ t("b", { children: i.insights_work_list_3_bold })
|
|
18881
18881
|
),
|
|
18882
|
-
|
|
18882
|
+
S(
|
|
18883
18883
|
i.insights_work_list_4,
|
|
18884
18884
|
/* @__PURE__ */ t("b", { children: i.insights_work_list_4_bold })
|
|
18885
18885
|
)
|
|
@@ -18901,7 +18901,7 @@ const T1 = ({
|
|
|
18901
18901
|
/* @__PURE__ */ t(
|
|
18902
18902
|
F,
|
|
18903
18903
|
{
|
|
18904
|
-
content:
|
|
18904
|
+
content: S(
|
|
18905
18905
|
i.dashboard_insights_content_1,
|
|
18906
18906
|
/* @__PURE__ */ t("b", { children: i.dashboard_insights_content_1_bold_1 }),
|
|
18907
18907
|
/* @__PURE__ */ t("b", { children: i.dashboard_insights_content_1_bold_2 }),
|
|
@@ -18923,7 +18923,7 @@ const T1 = ({
|
|
|
18923
18923
|
/* @__PURE__ */ t(
|
|
18924
18924
|
F,
|
|
18925
18925
|
{
|
|
18926
|
-
content:
|
|
18926
|
+
content: S(
|
|
18927
18927
|
i.full_feed_content,
|
|
18928
18928
|
/* @__PURE__ */ t("b", { children: i.full_feed_content_bold_1 }),
|
|
18929
18929
|
/* @__PURE__ */ t("b", { children: i.full_feed_content_bold_2 })
|
|
@@ -18934,15 +18934,15 @@ const T1 = ({
|
|
|
18934
18934
|
X,
|
|
18935
18935
|
{
|
|
18936
18936
|
items: [
|
|
18937
|
-
|
|
18937
|
+
S(
|
|
18938
18938
|
i.full_feed_list_1,
|
|
18939
18939
|
/* @__PURE__ */ t("b", { children: i.full_feed_list_1_bold })
|
|
18940
18940
|
),
|
|
18941
|
-
|
|
18941
|
+
S(
|
|
18942
18942
|
i.full_feed_list_2,
|
|
18943
18943
|
/* @__PURE__ */ t("b", { children: i.full_feed_list_2_bold })
|
|
18944
18944
|
),
|
|
18945
|
-
|
|
18945
|
+
S(
|
|
18946
18946
|
i.full_feed_list_3,
|
|
18947
18947
|
/* @__PURE__ */ t("b", { children: i.full_feed_list_3_bold })
|
|
18948
18948
|
)
|
|
@@ -18963,7 +18963,7 @@ const T1 = ({
|
|
|
18963
18963
|
/* @__PURE__ */ t(
|
|
18964
18964
|
F,
|
|
18965
18965
|
{
|
|
18966
|
-
content:
|
|
18966
|
+
content: S(
|
|
18967
18967
|
i.hide_insights_content_1,
|
|
18968
18968
|
/* @__PURE__ */ t("b", { children: i.hide_insights_content_1_bold })
|
|
18969
18969
|
)
|
|
@@ -19117,13 +19117,13 @@ const T1 = ({
|
|
|
19117
19117
|
) })
|
|
19118
19118
|
] }),
|
|
19119
19119
|
e.message && /* @__PURE__ */ t(
|
|
19120
|
-
|
|
19120
|
+
Ti,
|
|
19121
19121
|
{
|
|
19122
19122
|
anchorOrigin: { vertical: "bottom", horizontal: "center" },
|
|
19123
19123
|
autoHideDuration: 3500,
|
|
19124
19124
|
onClose: () => d(""),
|
|
19125
19125
|
open: !!e.message && e.severity === "error" && !o,
|
|
19126
|
-
children: /* @__PURE__ */ t(
|
|
19126
|
+
children: /* @__PURE__ */ t(Tn, { onClose: () => d(""), severity: e.severity, variant: "filled", children: e.message })
|
|
19127
19127
|
}
|
|
19128
19128
|
)
|
|
19129
19129
|
]
|
|
@@ -19216,11 +19216,11 @@ const T1 = ({
|
|
|
19216
19216
|
d(Pr), _(Aa), i();
|
|
19217
19217
|
}, C = (E) => {
|
|
19218
19218
|
const {
|
|
19219
|
-
target: { name: y, value:
|
|
19219
|
+
target: { name: y, value: T }
|
|
19220
19220
|
} = E;
|
|
19221
19221
|
_((A) => ({
|
|
19222
19222
|
...A,
|
|
19223
|
-
[y]:
|
|
19223
|
+
[y]: T
|
|
19224
19224
|
}));
|
|
19225
19225
|
};
|
|
19226
19226
|
return /* @__PURE__ */ l(
|
|
@@ -19231,9 +19231,9 @@ const T1 = ({
|
|
|
19231
19231
|
onPrimaryAction: () => {
|
|
19232
19232
|
const E = {};
|
|
19233
19233
|
let y = !0;
|
|
19234
|
-
h.forEach(({ label:
|
|
19234
|
+
h.forEach(({ label: T, name: A, required: w }) => {
|
|
19235
19235
|
const v = u[A];
|
|
19236
|
-
w && !v && (E[A] = `${
|
|
19236
|
+
w && !v && (E[A] = `${T} ${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
19237
|
}), d(E), y && (a(u), _(Aa));
|
|
19238
19238
|
},
|
|
19239
19239
|
secondaryColor: "primary",
|
|
@@ -19264,13 +19264,13 @@ const T1 = ({
|
|
|
19264
19264
|
y
|
|
19265
19265
|
)) }),
|
|
19266
19266
|
o.message && /* @__PURE__ */ t(
|
|
19267
|
-
|
|
19267
|
+
Ti,
|
|
19268
19268
|
{
|
|
19269
19269
|
anchorOrigin: { vertical: "bottom", horizontal: "center" },
|
|
19270
19270
|
autoHideDuration: 3500,
|
|
19271
19271
|
onClose: () => s(""),
|
|
19272
19272
|
open: !!o.message && o.severity === "error" && !r,
|
|
19273
|
-
children: /* @__PURE__ */ t(
|
|
19273
|
+
children: /* @__PURE__ */ t(Tn, { onClose: () => s(""), severity: o.severity, variant: "filled", children: o.message })
|
|
19274
19274
|
}
|
|
19275
19275
|
)
|
|
19276
19276
|
]
|
|
@@ -19401,7 +19401,7 @@ const T1 = ({
|
|
|
19401
19401
|
fontWeight: 600
|
|
19402
19402
|
},
|
|
19403
19403
|
variant: "Body",
|
|
19404
|
-
children:
|
|
19404
|
+
children: S(e.request_support_institution_message_title, n)
|
|
19405
19405
|
}
|
|
19406
19406
|
),
|
|
19407
19407
|
/* @__PURE__ */ t(
|
|
@@ -19413,7 +19413,7 @@ const T1 = ({
|
|
|
19413
19413
|
mt: 2
|
|
19414
19414
|
},
|
|
19415
19415
|
variant: "ParagraphSmall",
|
|
19416
|
-
children:
|
|
19416
|
+
children: S(e.request_support_institution_message, n)
|
|
19417
19417
|
}
|
|
19418
19418
|
)
|
|
19419
19419
|
]
|
|
@@ -19448,7 +19448,7 @@ const T1 = ({
|
|
|
19448
19448
|
isOpen: !1,
|
|
19449
19449
|
topic: "",
|
|
19450
19450
|
type: void 0
|
|
19451
|
-
}),
|
|
19451
|
+
}), T = hp.map((D) => ({
|
|
19452
19452
|
...D,
|
|
19453
19453
|
title: e.help_by_category_list[D.guid].label,
|
|
19454
19454
|
topics: D.topics.map(({ type: k }, O) => ({
|
|
@@ -19523,7 +19523,7 @@ const T1 = ({
|
|
|
19523
19523
|
/* @__PURE__ */ t(
|
|
19524
19524
|
oC,
|
|
19525
19525
|
{
|
|
19526
|
-
helpByCategory:
|
|
19526
|
+
helpByCategory: T,
|
|
19527
19527
|
onClick: R
|
|
19528
19528
|
}
|
|
19529
19529
|
),
|
|
@@ -19637,20 +19637,20 @@ const T1 = ({
|
|
|
19637
19637
|
}), mC = I(({ selectedTab: e }) => {
|
|
19638
19638
|
const { alert: n, setAlert: i } = pt();
|
|
19639
19639
|
return /* @__PURE__ */ l(q, { children: [
|
|
19640
|
-
e === Vn.Profile && /* @__PURE__ */ t(
|
|
19640
|
+
e === Vn.Profile && /* @__PURE__ */ t(T1, {}),
|
|
19641
19641
|
e === Vn.Devices && /* @__PURE__ */ t(v1, {}),
|
|
19642
19642
|
e === Vn.Notifications && /* @__PURE__ */ t(No, {}),
|
|
19643
19643
|
e === Vn.TransactionRules && /* @__PURE__ */ t(vc, {}),
|
|
19644
19644
|
e === Vn.Help && /* @__PURE__ */ t(Dc, {}),
|
|
19645
19645
|
/* @__PURE__ */ t(
|
|
19646
|
-
|
|
19646
|
+
Ti,
|
|
19647
19647
|
{
|
|
19648
19648
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
19649
19649
|
autoHideDuration: 3500,
|
|
19650
19650
|
onClose: () => i(""),
|
|
19651
19651
|
open: !!n.message,
|
|
19652
19652
|
children: /* @__PURE__ */ t(
|
|
19653
|
-
|
|
19653
|
+
Tn,
|
|
19654
19654
|
{
|
|
19655
19655
|
onClose: () => {
|
|
19656
19656
|
i("");
|
|
@@ -19689,7 +19689,7 @@ const RE = I(({ onBackClick: e, sx: n }) => {
|
|
|
19689
19689
|
/* @__PURE__ */ t(
|
|
19690
19690
|
qt,
|
|
19691
19691
|
{
|
|
19692
|
-
onChange: (y,
|
|
19692
|
+
onChange: (y, T) => E(T),
|
|
19693
19693
|
sx: { bgcolor: "background.paper" },
|
|
19694
19694
|
textColor: "primary",
|
|
19695
19695
|
value: f,
|
|
@@ -19952,7 +19952,7 @@ class fC {
|
|
|
19952
19952
|
};
|
|
19953
19953
|
};
|
|
19954
19954
|
get shouldDisableNextDate() {
|
|
19955
|
-
const n = Li(this.displayedDate), i = Li(
|
|
19955
|
+
const n = Li(this.displayedDate), i = Li(St(/* @__PURE__ */ new Date(), 1));
|
|
19956
19956
|
return n === i;
|
|
19957
19957
|
}
|
|
19958
19958
|
get shouldDisablePrevDate() {
|
|
@@ -20070,11 +20070,11 @@ const Ia = ({
|
|
|
20070
20070
|
(a) => a.member_guid === i.guid && i.successfully_aggregated_at && a.guid !== n.guid
|
|
20071
20071
|
);
|
|
20072
20072
|
}, 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 (
|
|
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 (T) => {
|
|
20074
20074
|
await _({
|
|
20075
20075
|
...d,
|
|
20076
|
-
...
|
|
20077
|
-
}), "is_closed" in
|
|
20076
|
+
...T
|
|
20077
|
+
}), "is_closed" in T && T.is_closed !== d.is_closed && f(d.guid, { accountIsClosed: T.is_closed });
|
|
20078
20078
|
}, y = () => {
|
|
20079
20079
|
u([d.guid, s.guid]).finally(
|
|
20080
20080
|
() => a(!1)
|
|
@@ -20132,7 +20132,7 @@ const Ia = ({
|
|
|
20132
20132
|
n(!1);
|
|
20133
20133
|
},
|
|
20134
20134
|
onPrimaryAction: () => E({ is_closed: !d.is_closed }),
|
|
20135
|
-
children:
|
|
20135
|
+
children: S(
|
|
20136
20136
|
d.is_closed ? h.this_will_resume_updating_the_balance : h.this_will_set_the_balance_of_your_account,
|
|
20137
20137
|
d.name
|
|
20138
20138
|
)
|
|
@@ -20145,20 +20145,20 @@ const Ia = ({
|
|
|
20145
20145
|
isOpen: i,
|
|
20146
20146
|
onClose: () => a(!1),
|
|
20147
20147
|
title: h.mark_as_duplicate,
|
|
20148
|
-
children: /* @__PURE__ */ t(ie, { children: m.map((
|
|
20149
|
-
const A = m.indexOf(
|
|
20148
|
+
children: /* @__PURE__ */ t(ie, { children: m.map((T) => {
|
|
20149
|
+
const A = m.indexOf(T) === m.length - 1;
|
|
20150
20150
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
20151
20151
|
/* @__PURE__ */ t(
|
|
20152
20152
|
bi,
|
|
20153
20153
|
{
|
|
20154
|
-
account:
|
|
20154
|
+
account: T,
|
|
20155
20155
|
onRowClick: () => {
|
|
20156
|
-
r(!0), c(
|
|
20156
|
+
r(!0), c(T);
|
|
20157
20157
|
}
|
|
20158
20158
|
}
|
|
20159
20159
|
),
|
|
20160
20160
|
/* @__PURE__ */ t(ie, { sx: { ml: A ? 0 : 24 } })
|
|
20161
|
-
] },
|
|
20161
|
+
] }, T.guid);
|
|
20162
20162
|
}) })
|
|
20163
20163
|
}
|
|
20164
20164
|
),
|
|
@@ -20173,7 +20173,7 @@ const Ia = ({
|
|
|
20173
20173
|
onClose: () => r(!1),
|
|
20174
20174
|
onPrimaryAction: y,
|
|
20175
20175
|
children: [
|
|
20176
|
-
|
|
20176
|
+
S(
|
|
20177
20177
|
h.this_means_accounts_will_be_merged,
|
|
20178
20178
|
d.name,
|
|
20179
20179
|
s.name
|
|
@@ -20183,13 +20183,13 @@ const Ia = ({
|
|
|
20183
20183
|
}
|
|
20184
20184
|
)
|
|
20185
20185
|
] });
|
|
20186
|
-
},
|
|
20186
|
+
}, TC = I(EC), Rc = (e, n) => {
|
|
20187
20187
|
const { connection_messages: i } = n;
|
|
20188
20188
|
switch (e.connection_status) {
|
|
20189
20189
|
case _t.CHALLENGED:
|
|
20190
20190
|
return {
|
|
20191
20191
|
cta: i.challenged_cta,
|
|
20192
|
-
main:
|
|
20192
|
+
main: S(
|
|
20193
20193
|
i.challenged_connection_description,
|
|
20194
20194
|
e.name
|
|
20195
20195
|
),
|
|
@@ -20210,7 +20210,7 @@ const Ia = ({
|
|
|
20210
20210
|
};
|
|
20211
20211
|
case _t.DELAYED:
|
|
20212
20212
|
return {
|
|
20213
|
-
main:
|
|
20213
|
+
main: S(
|
|
20214
20214
|
i.delayed_connection_description,
|
|
20215
20215
|
e.name
|
|
20216
20216
|
),
|
|
@@ -20220,7 +20220,7 @@ const Ia = ({
|
|
|
20220
20220
|
case _t.DENIED:
|
|
20221
20221
|
return {
|
|
20222
20222
|
cta: i.denied_cta,
|
|
20223
|
-
main:
|
|
20223
|
+
main: S(
|
|
20224
20224
|
i.denied_connection_description,
|
|
20225
20225
|
e.name
|
|
20226
20226
|
),
|
|
@@ -20235,7 +20235,7 @@ const Ia = ({
|
|
|
20235
20235
|
};
|
|
20236
20236
|
case _t.DISCONNECTED:
|
|
20237
20237
|
return {
|
|
20238
|
-
main:
|
|
20238
|
+
main: S(
|
|
20239
20239
|
i.disconnected_connection_description,
|
|
20240
20240
|
e.name
|
|
20241
20241
|
),
|
|
@@ -20257,7 +20257,7 @@ const Ia = ({
|
|
|
20257
20257
|
};
|
|
20258
20258
|
case _t.FAILED:
|
|
20259
20259
|
return {
|
|
20260
|
-
main:
|
|
20260
|
+
main: S(
|
|
20261
20261
|
i.failed_connection_description,
|
|
20262
20262
|
e.name
|
|
20263
20263
|
),
|
|
@@ -20267,7 +20267,7 @@ const Ia = ({
|
|
|
20267
20267
|
case _t.IMPAIRED:
|
|
20268
20268
|
return {
|
|
20269
20269
|
cta: i.impaired_cta,
|
|
20270
|
-
main:
|
|
20270
|
+
main: S(
|
|
20271
20271
|
i.impaired_connection_description,
|
|
20272
20272
|
e.name
|
|
20273
20273
|
),
|
|
@@ -20276,7 +20276,7 @@ const Ia = ({
|
|
|
20276
20276
|
};
|
|
20277
20277
|
case _t.IMPEDED:
|
|
20278
20278
|
return {
|
|
20279
|
-
main:
|
|
20279
|
+
main: S(
|
|
20280
20280
|
i.impeded_connection_description,
|
|
20281
20281
|
e.name,
|
|
20282
20282
|
e.name
|
|
@@ -20287,7 +20287,7 @@ const Ia = ({
|
|
|
20287
20287
|
case _t.IMPORTED:
|
|
20288
20288
|
return {
|
|
20289
20289
|
cta: i.imported_cta,
|
|
20290
|
-
main:
|
|
20290
|
+
main: S(
|
|
20291
20291
|
i.imported_connection_description,
|
|
20292
20292
|
e.name
|
|
20293
20293
|
),
|
|
@@ -20297,7 +20297,7 @@ const Ia = ({
|
|
|
20297
20297
|
case _t.LOCKED:
|
|
20298
20298
|
return {
|
|
20299
20299
|
cta: i.locked_cta,
|
|
20300
|
-
main:
|
|
20300
|
+
main: S(
|
|
20301
20301
|
i.locked_connection_description,
|
|
20302
20302
|
e.name
|
|
20303
20303
|
),
|
|
@@ -20322,7 +20322,7 @@ const Ia = ({
|
|
|
20322
20322
|
const a = () => {
|
|
20323
20323
|
const o = e.successfully_aggregated_at ? Fe(e.successfully_aggregated_at) : void 0, r = o && se(o, oe.TIME_STAMP_HOUR_MINUTE);
|
|
20324
20324
|
if (r)
|
|
20325
|
-
return Za(o) ?
|
|
20325
|
+
return Za(o) ? S(n.last_updated_at, n.today, r) : Ad(o) ? S(n.last_updated_at, n.yesterday, r) : S(
|
|
20326
20326
|
n.last_updated_at,
|
|
20327
20327
|
se(o, oe.MONTH_DAY_YEAR),
|
|
20328
20328
|
r
|
|
@@ -20341,10 +20341,10 @@ const Ia = ({
|
|
|
20341
20341
|
gridRow: 1,
|
|
20342
20342
|
gridColumn: 1,
|
|
20343
20343
|
zIndex: 2
|
|
20344
|
-
},
|
|
20344
|
+
}, SC = () => {
|
|
20345
20345
|
const [e, n] = g.useState(!1), {
|
|
20346
20346
|
palette: { mode: i }
|
|
20347
|
-
} = pe(), { selectedMember: a } = Ht(), { accounts: o, connect: r } = x(), s = Rc(a, r), c =
|
|
20347
|
+
} = pe(), { selectedMember: a } = Ht(), { accounts: o, connect: r } = x(), s = Rc(a, r), c = Ss.includes(a.connection_status) ? {
|
|
20348
20348
|
color: "error.main",
|
|
20349
20349
|
ctaCopy: s.cta ?? "",
|
|
20350
20350
|
icon: /* @__PURE__ */ t(aa, { sx: { ...xa } }),
|
|
@@ -20352,7 +20352,7 @@ const Ia = ({
|
|
|
20352
20352
|
secondaryMessage: `${s.title}.`
|
|
20353
20353
|
} : {
|
|
20354
20354
|
color: "success.main",
|
|
20355
|
-
icon: /* @__PURE__ */ t(
|
|
20355
|
+
icon: /* @__PURE__ */ t(Td, { sx: { ...xa } }),
|
|
20356
20356
|
mainMessage: s.statusName,
|
|
20357
20357
|
secondaryMessage: s.title
|
|
20358
20358
|
};
|
|
@@ -20388,7 +20388,7 @@ const Ia = ({
|
|
|
20388
20388
|
},
|
|
20389
20389
|
size: 32,
|
|
20390
20390
|
children: /* @__PURE__ */ t(
|
|
20391
|
-
|
|
20391
|
+
Sd,
|
|
20392
20392
|
{
|
|
20393
20393
|
sx: {
|
|
20394
20394
|
...xa,
|
|
@@ -20413,7 +20413,7 @@ const Ia = ({
|
|
|
20413
20413
|
}
|
|
20414
20414
|
)
|
|
20415
20415
|
] });
|
|
20416
|
-
}, AC = I(
|
|
20416
|
+
}, AC = I(SC), IC = ({ field: e, isOpen: n, onClose: i }) => {
|
|
20417
20417
|
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
20418
|
c(""), u(""), i();
|
|
20419
20419
|
}, C = () => {
|
|
@@ -20455,7 +20455,7 @@ const Ia = ({
|
|
|
20455
20455
|
return /* @__PURE__ */ t(vd, { dateAdapter: Qn, children: /* @__PURE__ */ t(
|
|
20456
20456
|
ja,
|
|
20457
20457
|
{
|
|
20458
|
-
maxDate:
|
|
20458
|
+
maxDate: St(/* @__PURE__ */ new Date(), 1),
|
|
20459
20459
|
minDate: /* @__PURE__ */ new Date(),
|
|
20460
20460
|
onChange: (y) => {
|
|
20461
20461
|
o[e.name] && Number(o[e.name]) <= 31 ? c(y.getDate()) : c(y);
|
|
@@ -20500,7 +20500,7 @@ const Ia = ({
|
|
|
20500
20500
|
{
|
|
20501
20501
|
copy: {
|
|
20502
20502
|
close_aria: r.close_aria,
|
|
20503
|
-
title:
|
|
20503
|
+
title: S(r.edit_field, e.label)
|
|
20504
20504
|
},
|
|
20505
20505
|
disablePrimaryButton: !!d || !_,
|
|
20506
20506
|
isOpen: n,
|
|
@@ -20557,17 +20557,17 @@ const Ia = ({
|
|
|
20557
20557
|
return g.useEffect(() => e(W.ACCOUNT_DETAILS_VIEW), []), /* @__PURE__ */ l(ie, { children: [
|
|
20558
20558
|
/* @__PURE__ */ t(wC, {}),
|
|
20559
20559
|
/* @__PURE__ */ t(AC, {}),
|
|
20560
|
-
/* @__PURE__ */ t(
|
|
20560
|
+
/* @__PURE__ */ t(TC, {})
|
|
20561
20561
|
] });
|
|
20562
20562
|
}, 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 &&
|
|
20563
|
+
const [n, i] = g.useState(!1), { selectedMember: a } = Ht(), { accounts: o, connect: r } = x(), s = a.connection_status && Ss.includes(a.connection_status);
|
|
20564
20564
|
if (g.useEffect(() => {
|
|
20565
20565
|
s && e(1);
|
|
20566
20566
|
}, [s]), !s) return;
|
|
20567
20567
|
const c = Rc(a, r);
|
|
20568
20568
|
return /* @__PURE__ */ l(q, { children: [
|
|
20569
20569
|
/* @__PURE__ */ t(
|
|
20570
|
-
|
|
20570
|
+
Tt,
|
|
20571
20571
|
{
|
|
20572
20572
|
sx: {
|
|
20573
20573
|
mb: 16,
|
|
@@ -20575,7 +20575,7 @@ const Ia = ({
|
|
|
20575
20575
|
mx: 24
|
|
20576
20576
|
},
|
|
20577
20577
|
children: /* @__PURE__ */ l(
|
|
20578
|
-
|
|
20578
|
+
Tn,
|
|
20579
20579
|
{
|
|
20580
20580
|
icon: /* @__PURE__ */ t(aa, {}),
|
|
20581
20581
|
severity: "error",
|
|
@@ -20682,16 +20682,16 @@ const Ia = ({
|
|
|
20682
20682
|
() => a.filter((y) => y.is_closed),
|
|
20683
20683
|
[a]
|
|
20684
20684
|
), m = _.reduce(
|
|
20685
|
-
(y,
|
|
20685
|
+
(y, T) => (T.available_balance || T.balance || 0) + y,
|
|
20686
20686
|
0
|
|
20687
20687
|
), C = h.reduce(
|
|
20688
|
-
(y,
|
|
20688
|
+
(y, T) => (T.available_balance || T.balance || 0) + y,
|
|
20689
20689
|
0
|
|
20690
20690
|
);
|
|
20691
20691
|
g.useEffect(() => {
|
|
20692
20692
|
if (u) {
|
|
20693
20693
|
o(u);
|
|
20694
|
-
const y = s.find((
|
|
20694
|
+
const y = s.find((T) => T.guid === u?.member_guid) || {};
|
|
20695
20695
|
y && r(y);
|
|
20696
20696
|
}
|
|
20697
20697
|
}, [u, e]);
|
|
@@ -20701,7 +20701,7 @@ const Ia = ({
|
|
|
20701
20701
|
account_type: y.account_type
|
|
20702
20702
|
});
|
|
20703
20703
|
}, E = (y) => {
|
|
20704
|
-
const
|
|
20704
|
+
const T = y === "hidden" ? _ : h, A = y === "hidden" ? m : C, w = y === "hidden" ? i.account_hidden : i.account_closed;
|
|
20705
20705
|
return /* @__PURE__ */ t(L, { children: /* @__PURE__ */ t(
|
|
20706
20706
|
ie,
|
|
20707
20707
|
{
|
|
@@ -20718,7 +20718,7 @@ const Ia = ({
|
|
|
20718
20718
|
]
|
|
20719
20719
|
}
|
|
20720
20720
|
) }),
|
|
20721
|
-
children: /* @__PURE__ */ t(we, { children:
|
|
20721
|
+
children: /* @__PURE__ */ t(we, { children: T.map((v, R, B) => {
|
|
20722
20722
|
const M = R === B.length - 1;
|
|
20723
20723
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
20724
20724
|
/* @__PURE__ */ t(
|
|
@@ -20753,16 +20753,16 @@ const Ia = ({
|
|
|
20753
20753
|
};
|
|
20754
20754
|
return /* @__PURE__ */ l(L, { sx: { pt: 24 }, children: [
|
|
20755
20755
|
d.map((y) => {
|
|
20756
|
-
const
|
|
20756
|
+
const T = a.filter(
|
|
20757
20757
|
(w) => w.account_type === y && !w.is_closed && !w.is_hidden
|
|
20758
|
-
), A =
|
|
20759
|
-
(w, v) => (v.balance || 0) + w,
|
|
20758
|
+
), A = T.reduce(
|
|
20759
|
+
(w, v) => (v.available_balance || v.balance || 0) + w,
|
|
20760
20760
|
0
|
|
20761
20761
|
);
|
|
20762
|
-
return
|
|
20762
|
+
return T.length === 0 ? null : /* @__PURE__ */ t(
|
|
20763
20763
|
ie,
|
|
20764
20764
|
{
|
|
20765
|
-
"aria-label": i.account_type_accounts[
|
|
20765
|
+
"aria-label": i.account_type_accounts[T[0]?.account_type],
|
|
20766
20766
|
subheader: /* @__PURE__ */ t(Mt, { component: "h2", sx: { backgroundColor: "transparent", px: 24 }, children: /* @__PURE__ */ l(
|
|
20767
20767
|
we,
|
|
20768
20768
|
{
|
|
@@ -20775,8 +20775,8 @@ const Ia = ({
|
|
|
20775
20775
|
]
|
|
20776
20776
|
}
|
|
20777
20777
|
) }),
|
|
20778
|
-
children: /* @__PURE__ */ t(we, { children:
|
|
20779
|
-
const v = a.indexOf(w) === a.length - 1, R =
|
|
20778
|
+
children: /* @__PURE__ */ t(we, { children: T.map((w) => {
|
|
20779
|
+
const v = a.indexOf(w) === a.length - 1, R = T.indexOf(w) === T.length - 1;
|
|
20780
20780
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
20781
20781
|
/* @__PURE__ */ t(
|
|
20782
20782
|
bi,
|
|
@@ -20811,7 +20811,7 @@ const Ia = ({
|
|
|
20811
20811
|
onClose: () => n(""),
|
|
20812
20812
|
title: i.account_details,
|
|
20813
20813
|
children: [
|
|
20814
|
-
/* @__PURE__ */ t(
|
|
20814
|
+
/* @__PURE__ */ t(So, {}),
|
|
20815
20815
|
/* @__PURE__ */ t(Oc, {})
|
|
20816
20816
|
]
|
|
20817
20817
|
}
|
|
@@ -20824,7 +20824,7 @@ const Ia = ({
|
|
|
20824
20824
|
}, [c]);
|
|
20825
20825
|
const y = () => {
|
|
20826
20826
|
a(!0), E(W.ACCOUNTS_CLICK_CONNECT);
|
|
20827
|
-
},
|
|
20827
|
+
}, T = () => {
|
|
20828
20828
|
r(!0), E(W.ACCOUNTS_CLICK_CONNECT);
|
|
20829
20829
|
};
|
|
20830
20830
|
return _ ? /* @__PURE__ */ t(
|
|
@@ -20836,7 +20836,7 @@ const Ia = ({
|
|
|
20836
20836
|
{
|
|
20837
20837
|
iconName: "credit_card_gear",
|
|
20838
20838
|
label: d.manage,
|
|
20839
|
-
onClick:
|
|
20839
|
+
onClick: T
|
|
20840
20840
|
}
|
|
20841
20841
|
] : [],
|
|
20842
20842
|
onAccountsFilterClick: () => E(W.ACCOUNTS_CLICK_FILTER),
|
|
@@ -21487,7 +21487,7 @@ class KC {
|
|
|
21487
21487
|
if (o > -1) {
|
|
21488
21488
|
let r = Ln.Connected;
|
|
21489
21489
|
const s = this.members[o];
|
|
21490
|
-
|
|
21490
|
+
Ts.includes(s.connection_status) ? r = Ln.Error : Bd.includes(s.connection_status) ? r = Ln.Processing : Es.includes(s.connection_status) && (r = Ln.RequiresMfa);
|
|
21491
21491
|
let c = a.user_name || a.feed_name || "";
|
|
21492
21492
|
a.account_number && (c = `${c} *${a.account_number}`), i.push({
|
|
21493
21493
|
...a,
|
|
@@ -21672,7 +21672,7 @@ const zC = () => {
|
|
|
21672
21672
|
responsePayload: u,
|
|
21673
21673
|
resetStore: _,
|
|
21674
21674
|
survey: h
|
|
21675
|
-
} = no(), { analytics: m, common: C } = x(), { isCopyLoaded: f, isInitialized: E } = le(), [y,
|
|
21675
|
+
} = no(), { analytics: m, common: C } = x(), { isCopyLoaded: f, isInitialized: E } = le(), [y, T] = g.useState(!1);
|
|
21676
21676
|
g.useEffect(() => {
|
|
21677
21677
|
E && s();
|
|
21678
21678
|
}, [E]), g.useEffect(() => {
|
|
@@ -21683,11 +21683,11 @@ const zC = () => {
|
|
|
21683
21683
|
const A = () => {
|
|
21684
21684
|
e("survey dismissed", {
|
|
21685
21685
|
$survey_id: i
|
|
21686
|
-
}), _(),
|
|
21686
|
+
}), _(), T(!1);
|
|
21687
21687
|
}, w = () => {
|
|
21688
21688
|
r();
|
|
21689
21689
|
}, v = () => {
|
|
21690
|
-
e("survey sent", u), _(),
|
|
21690
|
+
e("survey sent", u), _(), T(!0);
|
|
21691
21691
|
};
|
|
21692
21692
|
return f ? !a && !y ? null : /* @__PURE__ */ l(
|
|
21693
21693
|
Dn,
|
|
@@ -21738,7 +21738,7 @@ const zC = () => {
|
|
|
21738
21738
|
] }),
|
|
21739
21739
|
y && /* @__PURE__ */ l(g.Fragment, { children: [
|
|
21740
21740
|
/* @__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(
|
|
21741
|
+
/* @__PURE__ */ t(b, { sx: { px: 24, pb: 24 }, children: /* @__PURE__ */ t(Tn, { severity: "success", variant: "filled", children: m.feedback_sent_successfully }) })
|
|
21742
21742
|
] })
|
|
21743
21743
|
]
|
|
21744
21744
|
}
|
|
@@ -21809,8 +21809,8 @@ function s0({ bubble: e, isDraggable: n, onClick: i = () => {
|
|
|
21809
21809
|
const [a, o] = g.useState(!1);
|
|
21810
21810
|
if (g.useEffect(() => {
|
|
21811
21811
|
document.fonts.ready.then(() => {
|
|
21812
|
-
const
|
|
21813
|
-
|
|
21812
|
+
const T = Dt.select(`.icon-${c}`), A = T.node()?.getComputedTextLength();
|
|
21813
|
+
T.attr("x", () => h < Un ? A ? A / 2 - 12 : 12 : A ? A / 2 - 16 : 16);
|
|
21814
21814
|
});
|
|
21815
21815
|
}, []), !e) return;
|
|
21816
21816
|
const {
|
|
@@ -22012,7 +22012,7 @@ const c0 = ({
|
|
|
22012
22012
|
budget_category: A.category.name,
|
|
22013
22013
|
click_type: "bubble"
|
|
22014
22014
|
});
|
|
22015
|
-
},
|
|
22015
|
+
}, T = () => {
|
|
22016
22016
|
f(!0), s(W.ACCOUNTS_CLICK_CONNECT);
|
|
22017
22017
|
};
|
|
22018
22018
|
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 +22021,7 @@ const c0 = ({
|
|
|
22021
22021
|
{
|
|
22022
22022
|
createBudgetOnClick: e,
|
|
22023
22023
|
isMiniWidget: a,
|
|
22024
|
-
onConnectAccountsClick:
|
|
22024
|
+
onConnectAccountsClick: T
|
|
22025
22025
|
}
|
|
22026
22026
|
) : /* @__PURE__ */ t(
|
|
22027
22027
|
l0,
|
|
@@ -22093,7 +22093,7 @@ const c0 = ({
|
|
|
22093
22093
|
}), h0 = I(
|
|
22094
22094
|
({ category: e }) => {
|
|
22095
22095
|
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 ?
|
|
22096
|
+
const o = i.find((c) => c.category_guid === e.guid), r = P(e.totalAverageAmount, "0,0"), s = o ? S(n.recalculate_previous_budget, P(o.amount, "0,0")) : n.recalculate_new_budget;
|
|
22097
22097
|
return `${r} - ${s}`;
|
|
22098
22098
|
}, [n, i]);
|
|
22099
22099
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
@@ -22137,11 +22137,11 @@ const c0 = ({
|
|
|
22137
22137
|
const { budgets: a } = x(), { totalBudgeted: o } = lt(), { projectedIncome: r } = ze(), s = r - o;
|
|
22138
22138
|
return /* @__PURE__ */ l(b, { gap: 16, children: [
|
|
22139
22139
|
/* @__PURE__ */ l(b, { children: [
|
|
22140
|
-
/* @__PURE__ */ t(p, { children:
|
|
22140
|
+
/* @__PURE__ */ t(p, { children: S(
|
|
22141
22141
|
a.add_description_top,
|
|
22142
22142
|
P(s, "0,0")
|
|
22143
22143
|
) }),
|
|
22144
|
-
/* @__PURE__ */ t(p, { children:
|
|
22144
|
+
/* @__PURE__ */ t(p, { children: S(a.add_description_bottom, n) })
|
|
22145
22145
|
] }),
|
|
22146
22146
|
/* @__PURE__ */ t(
|
|
22147
22147
|
Qt,
|
|
@@ -22186,7 +22186,7 @@ const c0 = ({
|
|
|
22186
22186
|
] });
|
|
22187
22187
|
}), p0 = I(({ onRecalculateBudgets: e }) => {
|
|
22188
22188
|
const { budgets: n } = x(), { addBudget: i, setAlert: a, unbudgetedCategories: o } = lt(), r = async (s, c) => {
|
|
22189
|
-
await i(s, c), a(
|
|
22189
|
+
await i(s, c), a(S(n.alert_budget_created, s.name));
|
|
22190
22190
|
};
|
|
22191
22191
|
return /* @__PURE__ */ l(b, { children: [
|
|
22192
22192
|
/* @__PURE__ */ t(u0, {}),
|
|
@@ -22251,8 +22251,8 @@ const c0 = ({
|
|
|
22251
22251
|
}), b0 = I(({ category: e, parentBudget: n }) => {
|
|
22252
22252
|
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
22253
|
g.useEffect(() => {
|
|
22254
|
-
r((
|
|
22255
|
-
const A = e.subCategories.find((w) => w.guid ===
|
|
22254
|
+
r((T) => {
|
|
22255
|
+
const A = e.subCategories.find((w) => w.guid === T);
|
|
22256
22256
|
A && (f(A), m(`${A.currentAmount === 0 ? "" : A.currentAmount}`), _(!0));
|
|
22257
22257
|
});
|
|
22258
22258
|
}, []);
|
|
@@ -22308,7 +22308,7 @@ const c0 = ({
|
|
|
22308
22308
|
custom: (v) => v.category_guid === s.category_guid
|
|
22309
22309
|
}));
|
|
22310
22310
|
}, [s]);
|
|
22311
|
-
const
|
|
22311
|
+
const T = async () => {
|
|
22312
22312
|
s && await d({
|
|
22313
22313
|
...s,
|
|
22314
22314
|
amount: Number(E)
|
|
@@ -22354,7 +22354,7 @@ const c0 = ({
|
|
|
22354
22354
|
disablePrimaryButton: Number(E) <= 0,
|
|
22355
22355
|
isOpen: h,
|
|
22356
22356
|
onClose: () => m(!1),
|
|
22357
|
-
onPrimaryAction:
|
|
22357
|
+
onPrimaryAction: T,
|
|
22358
22358
|
primaryText: a.edit_save_button,
|
|
22359
22359
|
children: /* @__PURE__ */ t(
|
|
22360
22360
|
ma,
|
|
@@ -22376,7 +22376,7 @@ const c0 = ({
|
|
|
22376
22376
|
primaryColor: "error",
|
|
22377
22377
|
primaryText: "Delete",
|
|
22378
22378
|
secondaryColor: "secondary",
|
|
22379
|
-
children: /* @__PURE__ */ t(p, { variant: "Paragraph", children:
|
|
22379
|
+
children: /* @__PURE__ */ t(p, { variant: "Paragraph", children: S(a.delete_description, s.category.name) })
|
|
22380
22380
|
}
|
|
22381
22381
|
)
|
|
22382
22382
|
] })
|
|
@@ -22432,7 +22432,7 @@ const c0 = ({
|
|
|
22432
22432
|
)
|
|
22433
22433
|
] })
|
|
22434
22434
|
] });
|
|
22435
|
-
}),
|
|
22435
|
+
}), T0 = I(() => {
|
|
22436
22436
|
const { selectedAccountGuids: e } = le(), { budgets: n, common: i } = x(), {
|
|
22437
22437
|
dateRange: a,
|
|
22438
22438
|
deleteBudget: o,
|
|
@@ -22441,7 +22441,7 @@ const c0 = ({
|
|
|
22441
22441
|
setAlert: c,
|
|
22442
22442
|
setSelectedBudget: d,
|
|
22443
22443
|
updateBudget: u
|
|
22444
|
-
} = lt(), { setFilter: _ } = Ne(), [h, m] = g.useState(!1), [C, f] = g.useState(!1), [E, y] = g.useState(!1), [
|
|
22444
|
+
} = lt(), { setFilter: _ } = Ne(), [h, m] = g.useState(!1), [C, f] = g.useState(!1), [E, y] = g.useState(!1), [T, A] = g.useState("");
|
|
22445
22445
|
g.useEffect(() => {
|
|
22446
22446
|
r && !s && (A(`${r.amount}`), m(!0), _({
|
|
22447
22447
|
accounts: e,
|
|
@@ -22452,11 +22452,11 @@ const c0 = ({
|
|
|
22452
22452
|
const w = async () => {
|
|
22453
22453
|
r && (await u({
|
|
22454
22454
|
...r,
|
|
22455
|
-
amount: Number(
|
|
22456
|
-
percentage: r.category.totalAmount / Number(
|
|
22457
|
-
}), c(
|
|
22455
|
+
amount: Number(T),
|
|
22456
|
+
percentage: r.category.totalAmount / Number(T) * 100
|
|
22457
|
+
}), c(S(n.alert_budget_updated, r.category.name)));
|
|
22458
22458
|
}, v = async () => {
|
|
22459
|
-
r && (await o(r.guid), c(
|
|
22459
|
+
r && (await o(r.guid), c(S(n.alert_budget_deleted, r.category.name))), y(!1), R();
|
|
22460
22460
|
}, R = () => {
|
|
22461
22461
|
m(!1), setTimeout(() => {
|
|
22462
22462
|
d(void 0);
|
|
@@ -22483,7 +22483,7 @@ const c0 = ({
|
|
|
22483
22483
|
Me,
|
|
22484
22484
|
{
|
|
22485
22485
|
copy: { close_aria: i.close_aria, title: n.details_edit_title },
|
|
22486
|
-
disablePrimaryButton: Number(
|
|
22486
|
+
disablePrimaryButton: Number(T) <= 0,
|
|
22487
22487
|
isOpen: C,
|
|
22488
22488
|
onClose: () => f(!1),
|
|
22489
22489
|
onPrimaryAction: w,
|
|
@@ -22491,7 +22491,7 @@ const c0 = ({
|
|
|
22491
22491
|
children: /* @__PURE__ */ t(
|
|
22492
22492
|
ma,
|
|
22493
22493
|
{
|
|
22494
|
-
amount:
|
|
22494
|
+
amount: T,
|
|
22495
22495
|
categoryName: r.category.name,
|
|
22496
22496
|
onAmountChanged: A
|
|
22497
22497
|
}
|
|
@@ -22508,11 +22508,11 @@ const c0 = ({
|
|
|
22508
22508
|
primaryColor: "error",
|
|
22509
22509
|
primaryText: n.details_delete_button,
|
|
22510
22510
|
secondaryColor: "secondary",
|
|
22511
|
-
children: /* @__PURE__ */ t(p, { variant: "Paragraph", children:
|
|
22511
|
+
children: /* @__PURE__ */ t(p, { variant: "Paragraph", children: S(n.delete_description, r.category.name) })
|
|
22512
22512
|
}
|
|
22513
22513
|
)
|
|
22514
22514
|
] });
|
|
22515
|
-
}),
|
|
22515
|
+
}), S0 = ({ budget: e, onClick: n }) => {
|
|
22516
22516
|
const {
|
|
22517
22517
|
amount: i,
|
|
22518
22518
|
budgetColors: { background: a, description: o },
|
|
@@ -22551,7 +22551,7 @@ const c0 = ({
|
|
|
22551
22551
|
return /* @__PURE__ */ l(Rt, { elevation: 2, children: [
|
|
22552
22552
|
/* @__PURE__ */ t(dn, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ t(mt, { children: n.budget_categories_title }) }),
|
|
22553
22553
|
/* @__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(
|
|
22554
|
+
/* @__PURE__ */ t(S0, { budget: r, onClick: o }),
|
|
22555
22555
|
/* @__PURE__ */ t(H, {})
|
|
22556
22556
|
] }, r.guid)) }) })
|
|
22557
22557
|
] });
|
|
@@ -22569,7 +22569,7 @@ const c0 = ({
|
|
|
22569
22569
|
}
|
|
22570
22570
|
];
|
|
22571
22571
|
return [w, B];
|
|
22572
|
-
}, [d, c]), [y,
|
|
22572
|
+
}, [d, c]), [y, T] = g.useMemo(() => {
|
|
22573
22573
|
const w = Math.abs(
|
|
22574
22574
|
s.reduce((B, M) => B + M.totalAmount, 0)
|
|
22575
22575
|
);
|
|
@@ -22597,7 +22597,7 @@ const c0 = ({
|
|
|
22597
22597
|
/* @__PURE__ */ l(b, { gap: 8, children: [
|
|
22598
22598
|
/* @__PURE__ */ t(p, { bold: !0, sx: { mb: 8 }, variant: "Body", children: a.spending_title }),
|
|
22599
22599
|
/* @__PURE__ */ t(jn, { data: E, height: 16 }),
|
|
22600
|
-
/* @__PURE__ */ t(p, { variant: "Small", children:
|
|
22600
|
+
/* @__PURE__ */ t(p, { variant: "Small", children: S(
|
|
22601
22601
|
a.spending_description,
|
|
22602
22602
|
P(f, "0,0"),
|
|
22603
22603
|
P(u, "0,0")
|
|
@@ -22616,8 +22616,8 @@ const c0 = ({
|
|
|
22616
22616
|
}
|
|
22617
22617
|
)
|
|
22618
22618
|
] }),
|
|
22619
|
-
/* @__PURE__ */ t(jn, { data:
|
|
22620
|
-
/* @__PURE__ */ t(p, { variant: "Small", children:
|
|
22619
|
+
/* @__PURE__ */ t(jn, { data: T, height: 16 }),
|
|
22620
|
+
/* @__PURE__ */ t(p, { variant: "Small", children: S(
|
|
22621
22621
|
a.income_description,
|
|
22622
22622
|
P(y, "0,0"),
|
|
22623
22623
|
P(_, "0,0")
|
|
@@ -22645,7 +22645,7 @@ const c0 = ({
|
|
|
22645
22645
|
isDataLoaded: f,
|
|
22646
22646
|
loadBudgetData: E,
|
|
22647
22647
|
setDateRange: y,
|
|
22648
|
-
setAlert:
|
|
22648
|
+
setAlert: T,
|
|
22649
22649
|
setTheme: A,
|
|
22650
22650
|
budgets: w
|
|
22651
22651
|
} = 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 +22717,7 @@ const c0 = ({
|
|
|
22717
22717
|
]
|
|
22718
22718
|
}
|
|
22719
22719
|
),
|
|
22720
|
-
/* @__PURE__ */ t(
|
|
22720
|
+
/* @__PURE__ */ t(T0, {}),
|
|
22721
22721
|
/* @__PURE__ */ t(
|
|
22722
22722
|
ce,
|
|
22723
22723
|
{
|
|
@@ -22729,19 +22729,19 @@ const c0 = ({
|
|
|
22729
22729
|
}
|
|
22730
22730
|
),
|
|
22731
22731
|
/* @__PURE__ */ t(
|
|
22732
|
-
|
|
22732
|
+
Ti,
|
|
22733
22733
|
{
|
|
22734
22734
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
22735
22735
|
autoHideDuration: 3500,
|
|
22736
22736
|
onClose: () => {
|
|
22737
|
-
|
|
22737
|
+
T("");
|
|
22738
22738
|
},
|
|
22739
22739
|
open: !!m,
|
|
22740
22740
|
children: /* @__PURE__ */ t(
|
|
22741
|
-
|
|
22741
|
+
Tn,
|
|
22742
22742
|
{
|
|
22743
22743
|
onClose: () => {
|
|
22744
|
-
|
|
22744
|
+
T("");
|
|
22745
22745
|
},
|
|
22746
22746
|
severity: "success",
|
|
22747
22747
|
variant: "filled",
|
|
@@ -22842,7 +22842,7 @@ const c0 = ({
|
|
|
22842
22842
|
return m > 1 && m < 12 ? r.good_morning : m >= 12 && m < 18 ? r.good_afternoon : r.good_evening;
|
|
22843
22843
|
};
|
|
22844
22844
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
22845
|
-
/* @__PURE__ */ t(
|
|
22845
|
+
/* @__PURE__ */ t(Tt, { sx: { gap: 12, mb: d ? 24 : 0, p: 24 }, children: /* @__PURE__ */ l(b, { alignItems: "center", flexDirection: "row", justifyContent: "space-between", children: [
|
|
22846
22846
|
/* @__PURE__ */ t(b, { direction: "row", spacing: 2, children: /* @__PURE__ */ l(b, { children: [
|
|
22847
22847
|
/* @__PURE__ */ t(Xt, { children: _() }),
|
|
22848
22848
|
/* @__PURE__ */ t(p, { color: "text.secondary", sx: { fontSize: 15 }, children: r.heres_your_spending_overview })
|
|
@@ -23035,17 +23035,17 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23035
23035
|
const y = c.filter(
|
|
23036
23036
|
(w) => !!w[f.name]
|
|
23037
23037
|
);
|
|
23038
|
-
let
|
|
23038
|
+
let T = y.reduce(
|
|
23039
23039
|
(w, v) => w + Fi(v) * v[f.name] / 100,
|
|
23040
23040
|
0
|
|
23041
23041
|
);
|
|
23042
23042
|
const A = k0(
|
|
23043
23043
|
y,
|
|
23044
23044
|
f.name,
|
|
23045
|
-
|
|
23045
|
+
T
|
|
23046
23046
|
);
|
|
23047
23047
|
if (f.name === "allocations_cash" && d > 0) {
|
|
23048
|
-
|
|
23048
|
+
T += d;
|
|
23049
23049
|
const w = {
|
|
23050
23050
|
displayName: n.cash_balance_display_name,
|
|
23051
23051
|
name: "allocations_name",
|
|
@@ -23054,22 +23054,22 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23054
23054
|
};
|
|
23055
23055
|
A.push(w);
|
|
23056
23056
|
}
|
|
23057
|
-
|
|
23057
|
+
T > 0 && (o.push({
|
|
23058
23058
|
name: f.name,
|
|
23059
23059
|
displayName: a[E],
|
|
23060
23060
|
guid: `${f.name}-${E}`,
|
|
23061
23061
|
holdings: A,
|
|
23062
|
-
percentage:
|
|
23063
|
-
value:
|
|
23062
|
+
percentage: T / m,
|
|
23063
|
+
value: T,
|
|
23064
23064
|
color: O0[f.name]
|
|
23065
|
-
}), r +=
|
|
23065
|
+
}), r += T);
|
|
23066
23066
|
});
|
|
23067
23067
|
const C = o.map(
|
|
23068
|
-
({ displayName: f, guid: E, color: y, value:
|
|
23068
|
+
({ displayName: f, guid: E, color: y, value: T }) => ({
|
|
23069
23069
|
id: E,
|
|
23070
23070
|
color: y,
|
|
23071
23071
|
label: f,
|
|
23072
|
-
value:
|
|
23072
|
+
value: T / r * 100
|
|
23073
23073
|
})
|
|
23074
23074
|
);
|
|
23075
23075
|
return {
|
|
@@ -23087,7 +23087,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23087
23087
|
selectedTabs: a,
|
|
23088
23088
|
setSelectedTabs: o
|
|
23089
23089
|
}) => {
|
|
23090
|
-
const r = (
|
|
23090
|
+
const r = (T, A) => {
|
|
23091
23091
|
A !== null && o(A);
|
|
23092
23092
|
}, { isMobile: s } = Ce(), {
|
|
23093
23093
|
investments: { allocation: c }
|
|
@@ -23103,7 +23103,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23103
23103
|
fullWidth: !0,
|
|
23104
23104
|
onChange: r,
|
|
23105
23105
|
value: E ? -1 : a,
|
|
23106
|
-
children: f.map(({ label:
|
|
23106
|
+
children: f.map(({ label: T, value: A }) => /* @__PURE__ */ t(
|
|
23107
23107
|
qn,
|
|
23108
23108
|
{
|
|
23109
23109
|
sx: {
|
|
@@ -23124,13 +23124,13 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23124
23124
|
color: _
|
|
23125
23125
|
},
|
|
23126
23126
|
value: A,
|
|
23127
|
-
children: /* @__PURE__ */ t(p, { bold: !0, textTransform: "capitalize", variant: "Body", children:
|
|
23127
|
+
children: /* @__PURE__ */ t(p, { bold: !0, textTransform: "capitalize", variant: "Body", children: T })
|
|
23128
23128
|
},
|
|
23129
|
-
|
|
23129
|
+
T
|
|
23130
23130
|
))
|
|
23131
23131
|
}
|
|
23132
23132
|
),
|
|
23133
|
-
/* @__PURE__ */ t(ie, { sx: { px: 12 }, children: e.investmentsData.map((
|
|
23133
|
+
/* @__PURE__ */ t(ie, { sx: { px: 12 }, children: e.investmentsData.map((T) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
23134
23134
|
/* @__PURE__ */ t(
|
|
23135
23135
|
z,
|
|
23136
23136
|
{
|
|
@@ -23142,8 +23142,8 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23142
23142
|
children: /* @__PURE__ */ l(
|
|
23143
23143
|
_e,
|
|
23144
23144
|
{
|
|
23145
|
-
"aria-expanded": i ===
|
|
23146
|
-
onClick: () => n(
|
|
23145
|
+
"aria-expanded": i === T.guid,
|
|
23146
|
+
onClick: () => n(T.guid),
|
|
23147
23147
|
sx: { minHeight: 44, px: 12, py: 0 },
|
|
23148
23148
|
children: [
|
|
23149
23149
|
/* @__PURE__ */ t(
|
|
@@ -23152,7 +23152,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23152
23152
|
borderRadius: 4,
|
|
23153
23153
|
flexShrink: 0,
|
|
23154
23154
|
height: 8,
|
|
23155
|
-
sx: { backgroundColor:
|
|
23155
|
+
sx: { backgroundColor: T.color, mr: 8 },
|
|
23156
23156
|
width: 8
|
|
23157
23157
|
}
|
|
23158
23158
|
),
|
|
@@ -23164,8 +23164,8 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23164
23164
|
justifyContent: "space-between",
|
|
23165
23165
|
width: "100%",
|
|
23166
23166
|
children: [
|
|
23167
|
-
/* @__PURE__ */ t(p, { bold: i ===
|
|
23168
|
-
/* @__PURE__ */ t(p, { bold: i ===
|
|
23167
|
+
/* @__PURE__ */ t(p, { bold: i === T.guid, children: T.displayName }),
|
|
23168
|
+
/* @__PURE__ */ t(p, { bold: i === T.guid, variant: "Body", children: a === 0 ? hi(T.value) : Wa(T.percentage) })
|
|
23169
23169
|
]
|
|
23170
23170
|
}
|
|
23171
23171
|
)
|
|
@@ -23175,8 +23175,8 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23175
23175
|
}
|
|
23176
23176
|
),
|
|
23177
23177
|
/* @__PURE__ */ t(H, {}),
|
|
23178
|
-
|
|
23179
|
-
|
|
23178
|
+
T.holdings && T.holdings.length > 0 && /* @__PURE__ */ t(Jn, { in: i === T.guid, unmountOnExit: !0, children: /* @__PURE__ */ l(ie, { children: [
|
|
23179
|
+
T?.holdings?.map((A) => /* @__PURE__ */ t(
|
|
23180
23180
|
z,
|
|
23181
23181
|
{
|
|
23182
23182
|
sx: {
|
|
@@ -23196,7 +23196,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23196
23196
|
)),
|
|
23197
23197
|
/* @__PURE__ */ t(H, {})
|
|
23198
23198
|
] }) })
|
|
23199
|
-
] },
|
|
23199
|
+
] }, T.guid)) }),
|
|
23200
23200
|
E ? /* @__PURE__ */ l(q, { children: [
|
|
23201
23201
|
/* @__PURE__ */ t(p, { sx: { color: "secondary.main", p: 8, textAlign: "center" }, children: c.empty_data }),
|
|
23202
23202
|
/* @__PURE__ */ t(H, { sx: { borderColor: "border.light" } }),
|
|
@@ -23226,7 +23226,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23226
23226
|
[s]
|
|
23227
23227
|
), {
|
|
23228
23228
|
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),
|
|
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), T = e.totalGainLoss >= 0 ? f : E;
|
|
23230
23230
|
return /* @__PURE__ */ t(
|
|
23231
23231
|
Bs,
|
|
23232
23232
|
{
|
|
@@ -23246,14 +23246,14 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23246
23246
|
{
|
|
23247
23247
|
name: e.totalGainLoss >= 0 ? "trending_up" : "trending_down",
|
|
23248
23248
|
size: 20,
|
|
23249
|
-
sx: { color:
|
|
23249
|
+
sx: { color: T }
|
|
23250
23250
|
}
|
|
23251
23251
|
),
|
|
23252
23252
|
/* @__PURE__ */ t(
|
|
23253
23253
|
p,
|
|
23254
23254
|
{
|
|
23255
23255
|
sx: {
|
|
23256
|
-
color:
|
|
23256
|
+
color: T,
|
|
23257
23257
|
fontWeight: 700
|
|
23258
23258
|
},
|
|
23259
23259
|
variant: "Small",
|
|
@@ -23510,8 +23510,8 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23510
23510
|
]
|
|
23511
23511
|
}
|
|
23512
23512
|
),
|
|
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 =
|
|
23513
|
+
n.map((C, f, E) => /* @__PURE__ */ t(b, { sx: { flexDirection: "row", gap: 4 }, children: C.map((y, T) => {
|
|
23514
|
+
const A = f === 0, w = f === E.length - 1, v = T === 0, R = T === C.length - 1, B = Number(y.replace("%", "")) >= 25;
|
|
23515
23515
|
let M = "grey.200", D = "grey.900";
|
|
23516
23516
|
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
23517
|
b,
|
|
@@ -23541,7 +23541,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23541
23541
|
}
|
|
23542
23542
|
)
|
|
23543
23543
|
},
|
|
23544
|
-
|
|
23544
|
+
T
|
|
23545
23545
|
);
|
|
23546
23546
|
}) }, f)),
|
|
23547
23547
|
/* @__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 +24030,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
24030
24030
|
}
|
|
24031
24031
|
];
|
|
24032
24032
|
return /* @__PURE__ */ t(
|
|
24033
|
-
|
|
24033
|
+
Tt,
|
|
24034
24034
|
{
|
|
24035
24035
|
sx: {
|
|
24036
24036
|
boxShadow: "none",
|
|
@@ -24054,7 +24054,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
24054
24054
|
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
24055
|
accounts: [],
|
|
24056
24056
|
holdings: []
|
|
24057
|
-
}), { accounts: m, investments: C } = x(), { isCopyLoaded: f } = le(), [E, y] = Et(null), [
|
|
24057
|
+
}), { accounts: m, investments: C } = x(), { isCopyLoaded: f } = le(), [E, y] = Et(null), [T, 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
24058
|
y(Q), A(ne.toFixed(2));
|
|
24059
24059
|
}, k = (Q) => {
|
|
24060
24060
|
const ne = Q.target.value;
|
|
@@ -24064,7 +24064,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
24064
24064
|
}, U = (Q) => {
|
|
24065
24065
|
const ne = s.find(({ guid: Qe }) => Qe === Q);
|
|
24066
24066
|
if (!ne) return;
|
|
24067
|
-
const Ue = Number(
|
|
24067
|
+
const Ue = Number(T);
|
|
24068
24068
|
if (c({ ...ne, cost_basis: Ue }), e) {
|
|
24069
24069
|
const Qe = _.holdings.map(
|
|
24070
24070
|
(K) => K.id === Q ? { ...K, costBasis: Ue } : K
|
|
@@ -24138,7 +24138,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
24138
24138
|
), Le = Qe ? K / Qe * 100 : 0;
|
|
24139
24139
|
if (e)
|
|
24140
24140
|
return /* @__PURE__ */ t(
|
|
24141
|
-
|
|
24141
|
+
Tt,
|
|
24142
24142
|
{
|
|
24143
24143
|
onClick: ne.length ? () => {
|
|
24144
24144
|
o(!0), h({
|
|
@@ -24428,10 +24428,10 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
24428
24428
|
]
|
|
24429
24429
|
}
|
|
24430
24430
|
),
|
|
24431
|
-
/* @__PURE__ */ t(Ii, { sx: { bgcolor: "background.default", p: 12 }, children: /* @__PURE__ */ t(
|
|
24431
|
+
/* @__PURE__ */ t(Ii, { sx: { bgcolor: "background.default", p: 12 }, children: /* @__PURE__ */ t(Tt, { sx: { border: 1, borderColor: "border.light" }, children: /* @__PURE__ */ t(
|
|
24432
24432
|
j0,
|
|
24433
24433
|
{
|
|
24434
|
-
currentEditedCostBasis:
|
|
24434
|
+
currentEditedCostBasis: T,
|
|
24435
24435
|
data: ne,
|
|
24436
24436
|
editingHoldingId: E,
|
|
24437
24437
|
handleCostBasisBlur: U,
|
|
@@ -24450,7 +24450,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
24450
24450
|
Y0,
|
|
24451
24451
|
{
|
|
24452
24452
|
accountHoldingsData: _,
|
|
24453
|
-
currentEditedCostBasis:
|
|
24453
|
+
currentEditedCostBasis: T,
|
|
24454
24454
|
editingHoldingId: E,
|
|
24455
24455
|
handleCostBasisBlur: U,
|
|
24456
24456
|
handleCostBasisChange: k,
|
|
@@ -24484,7 +24484,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
24484
24484
|
i(W.INVESTMENT_WIDGET_ACCOUNT_FILTER_CLICK);
|
|
24485
24485
|
};
|
|
24486
24486
|
if (!_ || !h) return /* @__PURE__ */ t(de, {});
|
|
24487
|
-
const
|
|
24487
|
+
const T = [
|
|
24488
24488
|
W.INVESTMENT_WIDGET_DETAILS_CLICK,
|
|
24489
24489
|
W.INVESTMENT_WIDGET_ALLOCATION_CLICK,
|
|
24490
24490
|
W.INVESTMENT_WIDGET_ANALYSIS_CLICK
|
|
@@ -24507,7 +24507,7 @@ const R0 = ({ widgets: e, isLoading: n }) => {
|
|
|
24507
24507
|
qt,
|
|
24508
24508
|
{
|
|
24509
24509
|
onChange: (v, R) => {
|
|
24510
|
-
f(R), i(
|
|
24510
|
+
f(R), i(T[R]);
|
|
24511
24511
|
},
|
|
24512
24512
|
sx: { bgcolor: "background.paper" },
|
|
24513
24513
|
textColor: "primary",
|
|
@@ -24799,7 +24799,7 @@ const Di = g.createContext(null), of = ({
|
|
|
24799
24799
|
variant: f,
|
|
24800
24800
|
widthOverrides: E
|
|
24801
24801
|
}, y) {
|
|
24802
|
-
const [
|
|
24802
|
+
const [T, A] = g.useState(2), [w, v] = g.useState(!1);
|
|
24803
24803
|
g.useEffect(() => {
|
|
24804
24804
|
E && E <= 325 && A(3);
|
|
24805
24805
|
}, [E]);
|
|
@@ -24815,7 +24815,7 @@ const Di = g.createContext(null), of = ({
|
|
|
24815
24815
|
lineHeight: "20px",
|
|
24816
24816
|
px: d ? 0 : 28,
|
|
24817
24817
|
overflow: "hidden",
|
|
24818
|
-
WebkitLineClamp:
|
|
24818
|
+
WebkitLineClamp: T,
|
|
24819
24819
|
WebkitBoxOrient: "vertical",
|
|
24820
24820
|
wordWrap: "break-word"
|
|
24821
24821
|
},
|
|
@@ -25807,12 +25807,12 @@ const Di = g.createContext(null), of = ({
|
|
|
25807
25807
|
}) => {
|
|
25808
25808
|
const { ref: C, inView: f } = bs({
|
|
25809
25809
|
threshold: $c
|
|
25810
|
-
}), { cardsCopy: E } = On(), { onEvent: y } = Ri(), { updateBeat:
|
|
25810
|
+
}), { cardsCopy: E } = On(), { onEvent: y } = Ri(), { updateBeat: T, updateOffer: A } = gf();
|
|
25811
25811
|
Mn(() => {
|
|
25812
25812
|
f && (i.has_been_displayed ? y(Gc(i.template)) : (i.guid.startsWith("OFR") ? A({
|
|
25813
25813
|
...i,
|
|
25814
25814
|
has_been_displayed: !0
|
|
25815
|
-
}) :
|
|
25815
|
+
}) : T({
|
|
25816
25816
|
...i,
|
|
25817
25817
|
has_been_displayed: !0
|
|
25818
25818
|
}), y(Bc(i.template))));
|
|
@@ -25962,7 +25962,7 @@ const Di = g.createContext(null), of = ({
|
|
|
25962
25962
|
variant: u,
|
|
25963
25963
|
widthOverrides: _
|
|
25964
25964
|
}) => {
|
|
25965
|
-
const h = Ef(a, d, _), m = g.useRef(null), [C, f] = g.useState(0), [E, y] = g.useState(null), [
|
|
25965
|
+
const h = Ef(a, d, _), m = g.useRef(null), [C, f] = g.useState(0), [E, y] = g.useState(null), [T, A] = g.useState(null), { carouselCopy: w } = On(), { onEvent: v } = Ri(), R = () => {
|
|
25966
25966
|
v(Vt.ON_CAROUSEL_FORWARD_CLICK), m.current && m.current.scrollTo({
|
|
25967
25967
|
left: (
|
|
25968
25968
|
// Adds the flex gap to the carousel ref's width
|
|
@@ -25980,8 +25980,8 @@ const Di = g.createContext(null), of = ({
|
|
|
25980
25980
|
}, M = () => {
|
|
25981
25981
|
m.current && f(m.current.scrollLeft);
|
|
25982
25982
|
}, D = () => {
|
|
25983
|
-
if (!
|
|
25984
|
-
|
|
25983
|
+
if (!T || !E) return;
|
|
25984
|
+
T - E > mf ? v(Vt.ON_CAROUSEL_FORWARD_SWIPE) : v(Vt.ON_CAROUSEL_BACK_SWIPE);
|
|
25985
25985
|
}, k = (te) => {
|
|
25986
25986
|
y(te.targetTouches[0].clientX);
|
|
25987
25987
|
}, O = (te) => {
|
|
@@ -26014,7 +26014,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26014
26014
|
ref: m,
|
|
26015
26015
|
children: [
|
|
26016
26016
|
e.map((te, ge) => {
|
|
26017
|
-
const De = ge + 1, Re = e.length + 1,
|
|
26017
|
+
const De = ge + 1, Re = e.length + 1, Te = S(
|
|
26018
26018
|
w.card_position_in_carousel_aria,
|
|
26019
26019
|
De.toString(),
|
|
26020
26020
|
Re.toString()
|
|
@@ -26022,7 +26022,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26022
26022
|
return /* @__PURE__ */ t(
|
|
26023
26023
|
pf,
|
|
26024
26024
|
{
|
|
26025
|
-
ariaLabel: `${
|
|
26025
|
+
ariaLabel: `${Te}: ${Q}, ${ne}`,
|
|
26026
26026
|
beat: te,
|
|
26027
26027
|
index: ge,
|
|
26028
26028
|
isActiveCard: ge === ee,
|
|
@@ -26083,7 +26083,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26083
26083
|
display: "none"
|
|
26084
26084
|
}
|
|
26085
26085
|
}
|
|
26086
|
-
}),
|
|
26086
|
+
}), Tf = ({
|
|
26087
26087
|
clientColorScheme: e,
|
|
26088
26088
|
onCardClick: n,
|
|
26089
26089
|
posthog: i,
|
|
@@ -26152,7 +26152,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26152
26152
|
]
|
|
26153
26153
|
}
|
|
26154
26154
|
) : /* @__PURE__ */ t(de, {});
|
|
26155
|
-
},
|
|
26155
|
+
}, Sf = I(Tf), Af = ({
|
|
26156
26156
|
heightOverrides: e,
|
|
26157
26157
|
widthOverrides: n,
|
|
26158
26158
|
children: i
|
|
@@ -26304,7 +26304,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26304
26304
|
showIcon: f,
|
|
26305
26305
|
showWithMargin: E = !0,
|
|
26306
26306
|
token: y = "",
|
|
26307
|
-
useDarkMode:
|
|
26307
|
+
useDarkMode: T,
|
|
26308
26308
|
userHasFullInsightFeedBeats: A,
|
|
26309
26309
|
variant: w,
|
|
26310
26310
|
widthOverrides: v
|
|
@@ -26325,7 +26325,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26325
26325
|
posthog: _,
|
|
26326
26326
|
showIcon: f,
|
|
26327
26327
|
showWithMargin: E,
|
|
26328
|
-
useDarkMode:
|
|
26328
|
+
useDarkMode: T,
|
|
26329
26329
|
widthOverrides: v
|
|
26330
26330
|
}, ue = {
|
|
26331
26331
|
carouselSize: B,
|
|
@@ -26339,7 +26339,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26339
26339
|
/* @__PURE__ */ t(of, { onEvent: O, onPageview: U, store: hn, children: /* @__PURE__ */ l(Af, { heightOverrides: r, widthOverrides: v, children: [
|
|
26340
26340
|
(e || !hn.isInitialized) && /* @__PURE__ */ t(If, {}),
|
|
26341
26341
|
D && C && /* @__PURE__ */ t(
|
|
26342
|
-
|
|
26342
|
+
Sf,
|
|
26343
26343
|
{
|
|
26344
26344
|
clientColorScheme: i,
|
|
26345
26345
|
onCardClick: c,
|
|
@@ -26589,8 +26589,8 @@ const Di = g.createContext(null), of = ({
|
|
|
26589
26589
|
), C = g.useMemo(
|
|
26590
26590
|
() => zc(a, o, c),
|
|
26591
26591
|
[a, o, c]
|
|
26592
|
-
), f = (y,
|
|
26593
|
-
h(
|
|
26592
|
+
), f = (y, T) => {
|
|
26593
|
+
h(T), u("");
|
|
26594
26594
|
}, E = (y) => {
|
|
26595
26595
|
u(d === y ? "" : y);
|
|
26596
26596
|
};
|
|
@@ -26804,7 +26804,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26804
26804
|
e.palette.chartMono.chartMono1,
|
|
26805
26805
|
e.palette.chartMono.chartMono6
|
|
26806
26806
|
], 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,
|
|
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, T] = g.useState(!1);
|
|
26808
26808
|
g.useEffect(() => {
|
|
26809
26809
|
a(
|
|
26810
26810
|
s,
|
|
@@ -26847,7 +26847,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26847
26847
|
...k,
|
|
26848
26848
|
custom: (O) => D ? O.category_guid === D : O.top_level_category_guid === N.INCOME
|
|
26849
26849
|
});
|
|
26850
|
-
|
|
26850
|
+
T(!0);
|
|
26851
26851
|
};
|
|
26852
26852
|
return /* @__PURE__ */ l(L, { children: [
|
|
26853
26853
|
/* @__PURE__ */ l(qt, { onChange: R, value: m, variant: "fullWidth", children: [
|
|
@@ -26901,7 +26901,7 @@ const Di = g.createContext(null), of = ({
|
|
|
26901
26901
|
{
|
|
26902
26902
|
ariaLabelClose: o.close_drawer_aria,
|
|
26903
26903
|
isOpen: y,
|
|
26904
|
-
onClose: () =>
|
|
26904
|
+
onClose: () => T(!1),
|
|
26905
26905
|
title: o.transactions_drawer_title,
|
|
26906
26906
|
children: /* @__PURE__ */ t(Rn, { onClick: E })
|
|
26907
26907
|
}
|
|
@@ -26983,7 +26983,7 @@ const Vf = (e) => e.reduce((i, a) => {
|
|
|
26983
26983
|
/* @__PURE__ */ t(
|
|
26984
26984
|
L,
|
|
26985
26985
|
{
|
|
26986
|
-
"aria-label":
|
|
26986
|
+
"aria-label": S(i.category_icon_label_aria, a),
|
|
26987
26987
|
role: "img",
|
|
26988
26988
|
children: /* @__PURE__ */ t(kt, { categoryGuid: n })
|
|
26989
26989
|
}
|
|
@@ -27043,11 +27043,11 @@ const Vf = (e) => e.reduce((i, a) => {
|
|
|
27043
27043
|
(E) => E.category_guid === i || E.top_level_category_guid === i
|
|
27044
27044
|
) : e).reduce(
|
|
27045
27045
|
(E, y) => {
|
|
27046
|
-
const { category_guid:
|
|
27046
|
+
const { category_guid: T, top_level_category_guid: A, month: w, total: v, year: R } = y, B = i ? T : A;
|
|
27047
27047
|
E[B] || (E[B] = {
|
|
27048
27048
|
id: B,
|
|
27049
27049
|
category: B,
|
|
27050
|
-
category_guid:
|
|
27050
|
+
category_guid: T,
|
|
27051
27051
|
top_level_category_guid: A
|
|
27052
27052
|
});
|
|
27053
27053
|
const M = se(new Date(R, w - 1), oe.MONTH_SHORT);
|
|
@@ -27115,7 +27115,7 @@ const Vf = (e) => e.reduce((i, a) => {
|
|
|
27115
27115
|
}, eb = I(Jf), tb = {
|
|
27116
27116
|
view_transactions: "View Transactions"
|
|
27117
27117
|
}, 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(),
|
|
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(), T = 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
27119
|
start: zo(Ye(Yt(/* @__PURE__ */ new Date(), 6)), 1),
|
|
27120
27120
|
end: Ye(/* @__PURE__ */ new Date())
|
|
27121
27121
|
});
|
|
@@ -27163,7 +27163,7 @@ const Vf = (e) => e.reduce((i, a) => {
|
|
|
27163
27163
|
a(W.TRENDS_CLICK_FILTER);
|
|
27164
27164
|
}, Re = (ne) => {
|
|
27165
27165
|
k(ne);
|
|
27166
|
-
},
|
|
27166
|
+
}, Te = (ne) => {
|
|
27167
27167
|
k(ne), a(W.TRENDS_CLICK_LEGEND, { category: _(ne) });
|
|
27168
27168
|
}, Oe = (ne) => {
|
|
27169
27169
|
a(W.TRENDS_HOVER_LEGEND, { category: _(ne) });
|
|
@@ -27231,20 +27231,20 @@ const Vf = (e) => e.reduce((i, a) => {
|
|
|
27231
27231
|
fontWeight: 600,
|
|
27232
27232
|
height: 44,
|
|
27233
27233
|
width: 56,
|
|
27234
|
-
color:
|
|
27235
|
-
borderColor:
|
|
27234
|
+
color: T ? i.palette.grey[200] : i.palette.grey[600],
|
|
27235
|
+
borderColor: T ? i.palette.grey[600] : i.palette.grey[400],
|
|
27236
27236
|
"&:hover": {
|
|
27237
|
-
backgroundColor:
|
|
27238
|
-
borderColor:
|
|
27239
|
-
color:
|
|
27237
|
+
backgroundColor: T ? `${i.palette.primary.darker}25` : "inherit",
|
|
27238
|
+
borderColor: T ? i.palette.grey[500] : i.palette.primary.main,
|
|
27239
|
+
color: T ? i.palette.primary.light : i.palette.primary.dark
|
|
27240
27240
|
},
|
|
27241
27241
|
"&.Mui-selected": {
|
|
27242
|
-
backgroundColor:
|
|
27243
|
-
borderColor:
|
|
27244
|
-
color:
|
|
27242
|
+
backgroundColor: T ? i.palette.primary.darker : i.palette.primary.lighter,
|
|
27243
|
+
borderColor: T ? i.palette.primary.light : i.palette.primary.main,
|
|
27244
|
+
color: T ? i.palette.common.white : i.palette.primary.dark
|
|
27245
27245
|
},
|
|
27246
27246
|
"&.Mui-disabled": {
|
|
27247
|
-
borderColor:
|
|
27247
|
+
borderColor: T ? i.palette.grey[700] : i.palette.grey[400],
|
|
27248
27248
|
color: i.palette.grey[500]
|
|
27249
27249
|
}
|
|
27250
27250
|
},
|
|
@@ -27269,7 +27269,7 @@ const Vf = (e) => e.reduce((i, a) => {
|
|
|
27269
27269
|
B === "Chart" && /* @__PURE__ */ t(
|
|
27270
27270
|
k_,
|
|
27271
27271
|
{
|
|
27272
|
-
onClickLegend:
|
|
27272
|
+
onClickLegend: Te,
|
|
27273
27273
|
onHoverArea: It,
|
|
27274
27274
|
onHoverLegend: Oe,
|
|
27275
27275
|
onHoverPoint: Q,
|
|
@@ -27338,7 +27338,7 @@ export {
|
|
|
27338
27338
|
W as ANALYTICS_EVENTS,
|
|
27339
27339
|
$r as AccountApi,
|
|
27340
27340
|
Oc as AccountDetailsContent,
|
|
27341
|
-
|
|
27341
|
+
So as AccountDetailsHeader,
|
|
27342
27342
|
ks as AccountFilter,
|
|
27343
27343
|
As as AccountIcon,
|
|
27344
27344
|
Hd as AccountIconVariants,
|
|
@@ -27364,9 +27364,9 @@ export {
|
|
|
27364
27364
|
WE as BubbleBudgetsWidget,
|
|
27365
27365
|
G1 as BudgetNotificationProfiles,
|
|
27366
27366
|
Zn as BudgetNotificationTypes,
|
|
27367
|
-
|
|
27367
|
+
T_ as Calendar,
|
|
27368
27368
|
Gs as CalendarSelectionTypes,
|
|
27369
|
-
|
|
27369
|
+
Sf as CarouselHeader,
|
|
27370
27370
|
EE as CashflowApi,
|
|
27371
27371
|
hE as CashflowMiniWidget,
|
|
27372
27372
|
Fg as CashflowOnboarding,
|
|
@@ -27400,14 +27400,14 @@ export {
|
|
|
27400
27400
|
_c as DebtsChart,
|
|
27401
27401
|
Vm as DebtsStore,
|
|
27402
27402
|
Mm as DebtsTable,
|
|
27403
|
-
|
|
27403
|
+
SE as DebtsWidget,
|
|
27404
27404
|
v1 as DeviceTab,
|
|
27405
27405
|
Me as Dialog,
|
|
27406
27406
|
Bs as Donut,
|
|
27407
27407
|
ce as Drawer,
|
|
27408
27408
|
zn as EmptyState,
|
|
27409
27409
|
P_ as ErrorBoundary,
|
|
27410
|
-
|
|
27410
|
+
Ts as ErrorStatuses,
|
|
27411
27411
|
vu as ExpenseStatus,
|
|
27412
27412
|
ot as Fetch,
|
|
27413
27413
|
vt as FieldType,
|
|
@@ -27459,7 +27459,7 @@ export {
|
|
|
27459
27459
|
$p as NetWorthSummary,
|
|
27460
27460
|
wE as NetWorthWidget,
|
|
27461
27461
|
VE as NoRelevantInsightsCard,
|
|
27462
|
-
|
|
27462
|
+
Ss as NonConnectedStatuses,
|
|
27463
27463
|
Qo as NotificationApi,
|
|
27464
27464
|
ME as NotificationDrawer,
|
|
27465
27465
|
g1 as NotificationList,
|
|
@@ -27473,7 +27473,7 @@ export {
|
|
|
27473
27473
|
Yo as PaymentCategories,
|
|
27474
27474
|
$d as PlanTypes,
|
|
27475
27475
|
Bd as ProcessingStatuses,
|
|
27476
|
-
|
|
27476
|
+
T1 as ProfileTab,
|
|
27477
27477
|
ys as PropertyType,
|
|
27478
27478
|
Q4 as PropertyTypeName,
|
|
27479
27479
|
J4 as RECURRENCE_COPY,
|
|
@@ -27539,7 +27539,7 @@ export {
|
|
|
27539
27539
|
KE as ZeroStateCard,
|
|
27540
27540
|
Pc as ZeroStateIcon,
|
|
27541
27541
|
Md as analyticsSession,
|
|
27542
|
-
|
|
27542
|
+
S as buildDynamicCopy,
|
|
27543
27543
|
iE as buildPluralCopy,
|
|
27544
27544
|
Us as exportTransactionsToCSV,
|
|
27545
27545
|
P as formatCurrency,
|