@mx-cartographer/experiences 6.26.27-alpha.mega1 → 6.26.27-alpha.mega2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +248 -248
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -18,8 +18,8 @@ import { getDay as ql } from "date-fns/getDay";
|
|
18
18
|
import { isBefore as ot } from "date-fns/isBefore";
|
19
19
|
import { nextDay as ea } from "date-fns/nextDay";
|
20
20
|
import { setDate as ta } from "date-fns/setDate";
|
21
|
-
import { startOfToday as
|
22
|
-
import { fromUnixTime as
|
21
|
+
import { startOfToday as Ae } from "date-fns/startOfToday";
|
22
|
+
import { fromUnixTime as Ke } from "date-fns/fromUnixTime";
|
23
23
|
import ja from "numeral";
|
24
24
|
import te from "@mui/material/Button";
|
25
25
|
import qn from "@mui/material/Tooltip";
|
@@ -38,18 +38,18 @@ import { css as Cn, keyframes as td } from "@mxenabled/cssinjs";
|
|
38
38
|
import { addDays as Fn } from "date-fns/addDays";
|
39
39
|
import { eachDayOfInterval as nd } from "date-fns/eachDayOfInterval";
|
40
40
|
import { eachWeekOfInterval as id } from "date-fns/eachWeekOfInterval";
|
41
|
-
import { endOfMonth as
|
41
|
+
import { endOfMonth as Ye } from "date-fns/endOfMonth";
|
42
42
|
import { format as Ln } from "date-fns/format";
|
43
43
|
import { isSameMonth as ad } from "date-fns/isSameMonth";
|
44
|
-
import { startOfMonth as
|
44
|
+
import { startOfMonth as Ve } from "date-fns/startOfMonth";
|
45
45
|
import { subMonths as Ht } from "date-fns/subMonths";
|
46
46
|
import Nt from "@mui/material/Paper";
|
47
|
-
import { ChevronLeft as Ws, ChevronRight as
|
47
|
+
import { ChevronLeft as Ws, ChevronRight as je, ArrowBack as od, Icon as pt, AccountBalance as co, ExpandMore as ui, CheckCircle as ma, Edit as rd, Delete as $s, Schedule as sd, MonetizationOn as cd, Cancel as Us, CurrencyExchange as ld, Check as dd, TrendingUp as Vs, ArrowRightAlt as _d, TrendingDown as Ks, Payments as lo, CalendarMonth as ud, CreditCard as zs, Savings as hd, ContentCopy as gd, MultilineChart as Ys, NoteStack as js, Person as Xs, ExpandLess as Zs, AddBox as qs, Trophy as md, Star as pd, Settings as fd } from "@mxenabled/mx-icons";
|
48
48
|
import { isSameDay as Dt } from "date-fns/isSameDay";
|
49
49
|
import { isWithinInterval as _o } from "date-fns/isWithinInterval";
|
50
50
|
import * as Rt from "d3";
|
51
51
|
import { selectAll as Cd, interpolateString as bd, arc as yd } from "d3";
|
52
|
-
import { useTheme as
|
52
|
+
import { useTheme as Xe, alpha as Dn, keyframes as Sd, ThemeProvider as Ed } from "@mui/material/styles";
|
53
53
|
import { ResponsiveChartContainer as Td, ChartsReferenceLine as Ad, AreaPlot as xd, LinePlot as Id, MarkPlot as wd, BarPlot as vd, ChartsXAxis as Dd, ChartsYAxis as Nd, ChartsAxisHighlight as Rd, LineChart as Qs, PieChart as Od } from "@mui/x-charts";
|
54
54
|
import { ChartsTooltip as Ld } from "@mui/x-charts/ChartsTooltip";
|
55
55
|
import bt from "@mui/material/Card";
|
@@ -867,15 +867,15 @@ const Ii = 44, yr = (e, n) => e.find((i) => i.guid === n), Y_ = (e, n) => e.find
|
|
867
867
|
}, Io = (e) => {
|
868
868
|
const n = ql(e);
|
869
869
|
let i = ea(e, n);
|
870
|
-
for (; ot(i,
|
870
|
+
for (; ot(i, Ae()); )
|
871
871
|
i = Ps(i, 1);
|
872
872
|
return i;
|
873
873
|
}, X_ = (e) => {
|
874
874
|
const n = Io(e);
|
875
875
|
return Ps(n, 1);
|
876
876
|
}, Z_ = (e) => {
|
877
|
-
let n = ta(
|
878
|
-
for (; ot(n,
|
877
|
+
let n = ta(Ae(), e.getDate());
|
878
|
+
for (; ot(n, Ae()); )
|
879
879
|
n = rn(n, 1);
|
880
880
|
return n;
|
881
881
|
}, q_ = (e) => {
|
@@ -883,13 +883,13 @@ const Ii = 44, yr = (e, n) => e.find((i) => i.guid === n), Y_ = (e, n) => e.find
|
|
883
883
|
return rn(n, 1);
|
884
884
|
}, pc = (e) => {
|
885
885
|
let n = Mi(e, 1);
|
886
|
-
for (; ot(n,
|
886
|
+
for (; ot(n, Ae()); )
|
887
887
|
n = Mi(n, 1);
|
888
888
|
return n;
|
889
889
|
}, Q_ = (e) => {
|
890
890
|
const n = pc(e);
|
891
891
|
return Mi(n, 1);
|
892
|
-
}, J_ = (e) => Ji(e, 1), ya = (e) => de(
|
892
|
+
}, J_ = (e) => Ji(e, 1), ya = (e) => de(Ke(e), ie.DAY_OF_WEEK_MONTH_DAY), fc = (e) => e ? de(Ke(e), ie.MONTH_YEAR) : "", eu = /(?<static>.*?)(?<dynamic>(?:_\d+{(?:.*?)}))|(?<staticEnd>.+)/g, T = (e, ...n) => {
|
893
893
|
if (!e) return "";
|
894
894
|
const i = n.some((r) => typeof r != "string"), o = [...e.matchAll(eu)].reduce(
|
895
895
|
(r, s, c) => {
|
@@ -1918,7 +1918,7 @@ const cu = (e, n) => {
|
|
1918
1918
|
/* @__PURE__ */ t(fn, { className: "mx-cmn-calendar-header-title", variant: "H3", children: de(n, ie.MONTH_YEAR) }),
|
1919
1919
|
/* @__PURE__ */ d("div", { className: "mx-cmn-calendar-header-button-container", children: [
|
1920
1920
|
/* @__PURE__ */ t(te, { "aria-label": e.prevAria, onClick: a, children: /* @__PURE__ */ t(Ws, { size: 24 }) }),
|
1921
|
-
/* @__PURE__ */ t(te, { "aria-label": e.nextAria, onClick: i, children: /* @__PURE__ */ t(
|
1921
|
+
/* @__PURE__ */ t(te, { "aria-label": e.nextAria, onClick: i, children: /* @__PURE__ */ t(je, { size: 24 }) })
|
1922
1922
|
] })
|
1923
1923
|
] });
|
1924
1924
|
}, Su = (e) => Cn({
|
@@ -1935,7 +1935,7 @@ const cu = (e, n) => {
|
|
1935
1935
|
gap: 4
|
1936
1936
|
}
|
1937
1937
|
}), Eu = ({ beginDate: e, date: n, endDate: i, isInMonth: a, onClick: o }) => {
|
1938
|
-
const r = Te(), s = Tu(r), c = e && i && _o(n, { start: e, end: i }) && !Dt(n, e) && !Dt(n, i), l = e && i && Dt(e, n) && !Dt(e, i), u = i && e && Dt(i, n) && !Dt(e, i), _ = e && Dt(e, n) || i && Dt(i, n), h = Dt(n,
|
1938
|
+
const r = Te(), s = Tu(r), c = e && i && _o(n, { start: e, end: i }) && !Dt(n, e) && !Dt(n, i), l = e && i && Dt(e, n) && !Dt(e, i), u = i && e && Dt(i, n) && !Dt(e, i), _ = e && Dt(e, n) || i && Dt(i, n), h = Dt(n, Ae());
|
1939
1939
|
return /* @__PURE__ */ t(
|
1940
1940
|
"div",
|
1941
1941
|
{
|
@@ -2027,12 +2027,12 @@ const xu = ({
|
|
2027
2027
|
selectionType: r = "Single"
|
2028
2028
|
/* Single */
|
2029
2029
|
}) => {
|
2030
|
-
const s = At(), c = Iu(s), [l, u] = g.useState(
|
2030
|
+
const s = At(), c = Iu(s), [l, u] = g.useState(Ae), [_, h] = g.useState(n), [m, p] = g.useState(i);
|
2031
2031
|
g.useEffect(() => {
|
2032
2032
|
h(n), p(i), n && u(n);
|
2033
2033
|
}, [n, i]);
|
2034
2034
|
const f = g.useMemo(() => {
|
2035
|
-
const w = id({ start:
|
2035
|
+
const w = id({ start: Ve(l), end: Ye(l) }), v = [];
|
2036
2036
|
for (let N = 0; N < w.length; N++) {
|
2037
2037
|
const R = w[N], M = nd({ start: R, end: Fn(R, 6) }), k = [];
|
2038
2038
|
for (let G = 0; G < M.length; G++)
|
@@ -2049,7 +2049,7 @@ const xu = ({
|
|
2049
2049
|
!_ || m ? (h(w), p(void 0)) : ot(w, _) ? (p(_), h(w), o?.(w, _)) : (p(w), o?.(_, w));
|
2050
2050
|
}
|
2051
2051
|
}, y = () => {
|
2052
|
-
const w =
|
2052
|
+
const w = Ae();
|
2053
2053
|
u(w), r !== "None" && (h(w), r === "Single" ? a?.(w) : (p(w), o?.(w, w)));
|
2054
2054
|
}, E = () => {
|
2055
2055
|
u(rn(l, 1));
|
@@ -2171,7 +2171,7 @@ const xu = ({
|
|
2171
2171
|
)
|
2172
2172
|
] });
|
2173
2173
|
}, Nu = (e) => {
|
2174
|
-
const n =
|
2174
|
+
const n = Xe(), i = e.showLabel, a = e.style, o = Number(e.x), r = Number(e.y), s = e.handlers?.onMarkClick, c = e.handlers?.onMouseEnter, l = e.handlers?.onMouseLeave, u = hn(n.breakpoints.up("sm")), _ = e.valueFormatterString ? H(e.yData[e.dataIndex], e.valueFormatterString) : String(e.yData[e.dataIndex]), h = u ? n.typography.Small?.fontSize : n.typography.XSmall?.fontSize, m = h ? parseFloat(h.toString()) * 0.6 : 8, y = _.length * m + 8 + 8, E = 24, I = o - y / 2, w = r - 30;
|
2175
2175
|
return /* @__PURE__ */ d(Z, { children: [
|
2176
2176
|
i && /* @__PURE__ */ d(Z, { children: [
|
2177
2177
|
e.labelBackgroundColor && /* @__PURE__ */ t(
|
@@ -2472,7 +2472,7 @@ const ni = ({
|
|
2472
2472
|
valueFormatterString: J,
|
2473
2473
|
width: he
|
2474
2474
|
}) => {
|
2475
|
-
const _e =
|
2475
|
+
const _e = Xe(), Le = s.flat().map((fe) => fe.x), Re = s.flat().map((fe) => fe.y), ue = Math.round(Re.reduce((fe, we) => we + fe, 0) / Re.length), me = Math.floor(Math.min(...Re) / 100) * 100, Qe = Math.ceil(Math.max(...Re) / 100) * 100, $ = s.map((fe, we) => ({
|
2476
2476
|
type: w ? "bar" : "line",
|
2477
2477
|
curve: a,
|
2478
2478
|
color: w ? _e.palette.chart?.chart6 : i[we] ?? _e.palette.primary.main,
|
@@ -2689,7 +2689,7 @@ const Ic = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
2689
2689
|
),
|
2690
2690
|
/* @__PURE__ */ t(C, { variant: "Body", children: o })
|
2691
2691
|
] });
|
2692
|
-
},
|
2692
|
+
}, Ze = ({
|
2693
2693
|
isIncome: e = !1,
|
2694
2694
|
amount: n = 0,
|
2695
2695
|
bold: i,
|
@@ -2708,7 +2708,7 @@ const Ic = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
2708
2708
|
cursorPosition: a,
|
2709
2709
|
chartContainerRef: o
|
2710
2710
|
}) => {
|
2711
|
-
const r =
|
2711
|
+
const r = Xe(), s = Gs(null), [c, l] = xt({ x: a.x, y: a.y });
|
2712
2712
|
if (Pn(() => {
|
2713
2713
|
(() => {
|
2714
2714
|
const h = s.current, m = o.current;
|
@@ -2734,7 +2734,7 @@ const Ic = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
2734
2734
|
/* @__PURE__ */ d(O, { alignItems: "center", display: "flex", flexDirection: "column", children: [
|
2735
2735
|
/* @__PURE__ */ t(Ic, { categoryGuid: e, topLevelCategoryGuid: n }),
|
2736
2736
|
/* @__PURE__ */ t(C, { variant: "Small", children: `${i.length}-month total` }),
|
2737
|
-
/* @__PURE__ */ t(
|
2737
|
+
/* @__PURE__ */ t(Ze, { amount: u, bold: !0, formatString: "0,0", variant: "body2" })
|
2738
2738
|
] }),
|
2739
2739
|
/* @__PURE__ */ t(P, { sx: { my: 16, width: "100%" } }),
|
2740
2740
|
/* @__PURE__ */ t(_t, { container: !0, children: i.map((_, h) => /* @__PURE__ */ d(g.Fragment, { children: [
|
@@ -2742,7 +2742,7 @@ const Ic = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
2742
2742
|
/* @__PURE__ */ t(_t, { item: !0, xs: 4, children: /* @__PURE__ */ d(O, { alignItems: "center", display: "flex", flexDirection: "column", children: [
|
2743
2743
|
/* @__PURE__ */ t(C, { color: r.palette.text.secondary, variant: "XSmall", children: _.x }),
|
2744
2744
|
/* @__PURE__ */ t(
|
2745
|
-
|
2745
|
+
Ze,
|
2746
2746
|
{
|
2747
2747
|
amount: _.y,
|
2748
2748
|
bold: !0,
|
@@ -2765,7 +2765,7 @@ const Ic = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
2765
2765
|
return s === void 0 || !c ? null : /* @__PURE__ */ t(ga, { sx: { pt: 4, px: 8 }, children: /* @__PURE__ */ t(Jl, { children: /* @__PURE__ */ d(un, { alignItems: "center", display: "flex", flexDirection: "column", children: [
|
2766
2766
|
/* @__PURE__ */ t(Ic, { categoryGuid: e, topLevelCategoryGuid: n }),
|
2767
2767
|
/* @__PURE__ */ t(C, { color: r.palette.text.secondary, variant: "Small", children: de(c, ie.MONTH_SHORT_YEAR) }),
|
2768
|
-
/* @__PURE__ */ t(
|
2768
|
+
/* @__PURE__ */ t(Ze, { amount: String(s), bold: !0, formatString: "0,0", variant: "Body" })
|
2769
2769
|
] }) }) });
|
2770
2770
|
}, Fu = ({
|
2771
2771
|
sx: e,
|
@@ -2835,7 +2835,7 @@ const Ic = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
2835
2835
|
availableHeight: s = 0,
|
2836
2836
|
minimumHeight: c = 350
|
2837
2837
|
}) => {
|
2838
|
-
const l =
|
2838
|
+
const l = Xe(), { isMobile: u } = Ce(), [_, { height: h }] = ii(), m = g.useRef(null), [p, f] = g.useState(0);
|
2839
2839
|
g.useEffect(() => {
|
2840
2840
|
const K = Math.max(s - h, c);
|
2841
2841
|
f(K);
|
@@ -3213,7 +3213,7 @@ const Ic = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
3213
3213
|
calendarActions: e,
|
3214
3214
|
color: n = "primary",
|
3215
3215
|
copy: i,
|
3216
|
-
range: a = [
|
3216
|
+
range: a = [Ve(Ae()), Ye(pn())],
|
3217
3217
|
shouldShrinkToIcon: o = !0,
|
3218
3218
|
variant: r = "outlined"
|
3219
3219
|
}) => {
|
@@ -3237,12 +3237,12 @@ const Ic = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
|
3237
3237
|
(r === "timeframebuttons" || r === "timeframetabs") && e.onRangeChanged(N());
|
3238
3238
|
}, [I]);
|
3239
3239
|
const N = () => {
|
3240
|
-
const G =
|
3241
|
-
return [
|
3240
|
+
const G = Ye(pn());
|
3241
|
+
return [Ye(Ht(G, I)), G];
|
3242
3242
|
}, R = (G) => {
|
3243
3243
|
const L = [...l], W = l[0], Y = l[1], J = G === "previous";
|
3244
3244
|
if (_ === i.dateRangePickerCopy.dateRangeThisMonth)
|
3245
|
-
L[0] = J ? Ht(W, 1) : rn(W, 1), L[1] =
|
3245
|
+
L[0] = J ? Ht(W, 1) : rn(W, 1), L[1] = Ye(J ? Ht(Y, 1) : rn(Y, 1));
|
3246
3246
|
else if (_ === i.dateRangePickerCopy.dateRangeYTD || _ === i.dateRangePickerCopy.dateRangeLastYear)
|
3247
3247
|
L[0] = J ? Za(ur(W), 1) : Ji(ur(W), 1), L[1] = J ? Za(_r(W), 1) : Ji(_r(W), 1);
|
3248
3248
|
else {
|
@@ -3576,7 +3576,7 @@ const Ea = ({
|
|
3576
3576
|
action: /* @__PURE__ */ t(
|
3577
3577
|
te,
|
3578
3578
|
{
|
3579
|
-
endIcon: /* @__PURE__ */ t(
|
3579
|
+
endIcon: /* @__PURE__ */ t(je, { size: 20 }),
|
3580
3580
|
onClick: a,
|
3581
3581
|
size: "small",
|
3582
3582
|
variant: "text",
|
@@ -3607,7 +3607,7 @@ const Ea = ({
|
|
3607
3607
|
/* @__PURE__ */ t(
|
3608
3608
|
_n,
|
3609
3609
|
{
|
3610
|
-
action: a ? /* @__PURE__ */ t($e, { "aria-label": n, onClick: a, children: /* @__PURE__ */ t(pt, { name: "close", size: 24 }) }) : o && /* @__PURE__ */ t(te, { endIcon: /* @__PURE__ */ t(
|
3610
|
+
action: a ? /* @__PURE__ */ t($e, { "aria-label": n, onClick: a, children: /* @__PURE__ */ t(pt, { name: "close", size: 24 }) }) : o && /* @__PURE__ */ t(te, { endIcon: /* @__PURE__ */ t(je, {}), onClick: o, children: /* @__PURE__ */ t(C, { bold: !0, variant: "Small", children: r }) }),
|
3611
3611
|
subheader: s || null,
|
3612
3612
|
subheaderTypographyProps: { variant: "Small" },
|
3613
3613
|
sx: { pb: 4 },
|
@@ -4154,7 +4154,7 @@ const Dr = "connect_widget", Nr = "connections_widget", ju = ({
|
|
4154
4154
|
/* @__PURE__ */ t(
|
4155
4155
|
te,
|
4156
4156
|
{
|
4157
|
-
endIcon: /* @__PURE__ */ t(
|
4157
|
+
endIcon: /* @__PURE__ */ t(je, {}),
|
4158
4158
|
onClick: () => r(!0),
|
4159
4159
|
sx: {
|
4160
4160
|
pl: 0,
|
@@ -4261,7 +4261,7 @@ const Dr = "connect_widget", Nr = "connections_widget", ju = ({
|
|
4261
4261
|
primaryTypographyProps: { variant: "body1" }
|
4262
4262
|
}
|
4263
4263
|
),
|
4264
|
-
!n && !l && /* @__PURE__ */ t(
|
4264
|
+
!n && !l && /* @__PURE__ */ t(je, {})
|
4265
4265
|
] }),
|
4266
4266
|
/* @__PURE__ */ t(
|
4267
4267
|
Be,
|
@@ -4616,7 +4616,7 @@ class oh {
|
|
4616
4616
|
api = new Or("/", "");
|
4617
4617
|
globalStore;
|
4618
4618
|
alert = "";
|
4619
|
-
dateRange = { start:
|
4619
|
+
dateRange = { start: Ve(Ae()), end: Ye(Ae()) };
|
4620
4620
|
budgets = [];
|
4621
4621
|
selectedBudget;
|
4622
4622
|
selectedSubBudget;
|
@@ -4760,7 +4760,7 @@ const Ei = () => {
|
|
4760
4760
|
}
|
4761
4761
|
),
|
4762
4762
|
/* @__PURE__ */ t(C, { bold: !0, sx: { flexGrow: 1, fontSize: 12 }, children: n.remaining_cash }),
|
4763
|
-
/* @__PURE__ */ t(
|
4763
|
+
/* @__PURE__ */ t(Ze, { amount: e, bold: !0, sx: { fontSize: 12 } })
|
4764
4764
|
] });
|
4765
4765
|
}, Mo = x(rh), sh = ({ onAddIncomeClick: e }) => {
|
4766
4766
|
const n = Te(), { availableWidth: i } = $n(), { isMobile: a } = Ce(), { visibleCashAccounts: o, visibleCashBalance: r } = Se(), { selectedAccountGuids: s } = re(), { cashflow: c } = A(), { userProfile: l } = ft(), {
|
@@ -4798,7 +4798,7 @@ const Ei = () => {
|
|
4798
4798
|
px: 24,
|
4799
4799
|
children: [
|
4800
4800
|
/* @__PURE__ */ d(b, { pb: 14, pt: 12, children: [
|
4801
|
-
/* @__PURE__ */ t(
|
4801
|
+
/* @__PURE__ */ t(Ze, { amount: I, variant: "H2" }),
|
4802
4802
|
/* @__PURE__ */ t(X, { variant: "XSmall", whiteSpace: "nowrap", children: T(
|
4803
4803
|
c.total_cash_accounts,
|
4804
4804
|
h.length
|
@@ -4806,12 +4806,12 @@ const Ei = () => {
|
|
4806
4806
|
] }),
|
4807
4807
|
/* @__PURE__ */ t(b, { pt: 18, children: /* @__PURE__ */ t(V, { name: "remove" }) }),
|
4808
4808
|
/* @__PURE__ */ d(b, { pb: 14, pt: 12, children: [
|
4809
|
-
/* @__PURE__ */ t(
|
4809
|
+
/* @__PURE__ */ t(Ze, { amount: w, variant: "H2" }),
|
4810
4810
|
/* @__PURE__ */ t(X, { variant: "XSmall", whiteSpace: "nowrap", children: T(c.expenses_due, _.length) })
|
4811
4811
|
] }),
|
4812
4812
|
/* @__PURE__ */ t(b, { pt: 18, children: /* @__PURE__ */ t(V, { name: "equal" }) }),
|
4813
4813
|
/* @__PURE__ */ d(b, { pb: 14, pr: 24, pt: 12, children: [
|
4814
|
-
/* @__PURE__ */ t(
|
4814
|
+
/* @__PURE__ */ t(Ze, { amount: v, variant: "H2" }),
|
4815
4815
|
/* @__PURE__ */ d(b, { alignItems: "center", direction: "row", gap: 8, children: [
|
4816
4816
|
/* @__PURE__ */ t(X, { variant: "XSmall", whiteSpace: "nowrap", children: c.available_to_spend }),
|
4817
4817
|
/* @__PURE__ */ t(Oo, { body: c.tooltip_body, title: c.tooltip_title })
|
@@ -4837,12 +4837,12 @@ const Ei = () => {
|
|
4837
4837
|
c.total_cash_accounts,
|
4838
4838
|
h.length
|
4839
4839
|
) }),
|
4840
|
-
/* @__PURE__ */ t(
|
4840
|
+
/* @__PURE__ */ t(Ze, { amount: r, bold: !0, variant: "XSmall" })
|
4841
4841
|
] }),
|
4842
4842
|
/* @__PURE__ */ t(P, {}),
|
4843
4843
|
/* @__PURE__ */ d(b, { direction: "row", justifyContent: "space-between", p: 16, children: [
|
4844
4844
|
/* @__PURE__ */ t(C, { variant: "Small", children: T(c.expenses_due, _.length) }),
|
4845
|
-
/* @__PURE__ */ t(
|
4845
|
+
/* @__PURE__ */ t(Ze, { amount: w, bold: !0, symbol: "-", variant: "XSmall" })
|
4846
4846
|
] }),
|
4847
4847
|
/* @__PURE__ */ t(P, {}),
|
4848
4848
|
/* @__PURE__ */ t(
|
@@ -4959,7 +4959,7 @@ const Ei = () => {
|
|
4959
4959
|
const u = e.transactions.find(
|
4960
4960
|
(_) => _.repeating_transaction_guid === e.guid && _.date > We(Ot(l.expectedDate, 5)) && _.date < We(Fn(l.expectedDate, 5))
|
4961
4961
|
);
|
4962
|
-
u ? (l.transaction = u, l.status = et.Paid, l.occurredOnDate =
|
4962
|
+
u ? (l.transaction = u, l.status = et.Paid, l.occurredOnDate = Ke(u.date)) : ot(l.expectedDate, Ot(Ae(), 3)) && (l.status = et.Missed);
|
4963
4963
|
}
|
4964
4964
|
return i;
|
4965
4965
|
}, uh = (e, n, i) => {
|
@@ -5040,7 +5040,7 @@ const Ei = () => {
|
|
5040
5040
|
recurrences: [i]
|
5041
5041
|
}), n;
|
5042
5042
|
}, []), sa = (e, n, i) => {
|
5043
|
-
const a = ea(
|
5043
|
+
const a = ea(Ae(), n.recurrence_day), o = ic(Ae(), n.recurrence_day), r = ki(n.recurrence_day), s = n.second_recurrence_day ? ki(n.second_recurrence_day) : "";
|
5044
5044
|
let c = i ? T(e.monthly_ordinal, r) : e.monthly;
|
5045
5045
|
switch (n.recurrence_type) {
|
5046
5046
|
case Ee.EveryQuarter:
|
@@ -5560,7 +5560,7 @@ const Dc = (e, n) => {
|
|
5560
5560
|
const i = Nh(Dh(e, n)), a = encodeURIComponent(i), o = document.createElement("a");
|
5561
5561
|
o.href = `data:attachment/csv;charset=utf-8,${a}`, o.download = "transactions.csv", document.body.appendChild(o), o.click(), document.body.removeChild(o);
|
5562
5562
|
}, Dh = (e, n) => e.map((i) => ({
|
5563
|
-
Date: de(
|
5563
|
+
Date: de(Ke(i.date), ie.YEAR_MONTH_DAY),
|
5564
5564
|
Description: Rh(i),
|
5565
5565
|
"Original Description": i.feed_description,
|
5566
5566
|
Amount: `${i.amount}`,
|
@@ -5587,7 +5587,7 @@ const Dc = (e, n) => {
|
|
5587
5587
|
}, kh = (e, n, i) => {
|
5588
5588
|
const {
|
5589
5589
|
accounts: a = [],
|
5590
|
-
dateRange: o = { start:
|
5590
|
+
dateRange: o = { start: Ve(Ae()), end: pn() },
|
5591
5591
|
custom: r = () => !0,
|
5592
5592
|
searchTerm: s = "",
|
5593
5593
|
showSplits: c = !1
|
@@ -5599,7 +5599,7 @@ const Dc = (e, n) => {
|
|
5599
5599
|
return !0;
|
5600
5600
|
const _ = l.tags.some(
|
5601
5601
|
(m) => Kt(s, n.find((p) => p.guid === m)?.name)
|
5602
|
-
), h =
|
5602
|
+
), h = Ke(l.date);
|
5603
5603
|
return Kt(s, l.payee) || Kt(s, l.feed_description) || Kt(s, l.category) || Kt(s, de(h, ie.MONTH)) || Kt(s, de(h, ie.DAY)) || Kt(s, de(h, ie.FULL_MONTH_DAY)) || Kt(s, de(h, ie.MONTH_DAY_YEAR)) || Kt(s, Ln(h, B_)) || Kt(s, l.account) || Kt(s, `${l.amount}`) || Kt(s, l.memo) || _;
|
5604
5604
|
});
|
5605
5605
|
}, Gh = (e, n, i) => [...e].sort((a, o) => {
|
@@ -5641,8 +5641,8 @@ const Nc = {
|
|
5641
5641
|
tags: []
|
5642
5642
|
};
|
5643
5643
|
let Wh = class {
|
5644
|
-
beginDate =
|
5645
|
-
endDate =
|
5644
|
+
beginDate = Ve(/* @__PURE__ */ new Date());
|
5645
|
+
endDate = Ye(/* @__PURE__ */ new Date());
|
5646
5646
|
expandedSplits = [];
|
5647
5647
|
isInitialized = !1;
|
5648
5648
|
height = 550;
|
@@ -5687,7 +5687,7 @@ class $h {
|
|
5687
5687
|
api = new ca("/", "");
|
5688
5688
|
beatApi = new li("/", "");
|
5689
5689
|
associatedBeats = [];
|
5690
|
-
cachedStartDate = Ot(
|
5690
|
+
cachedStartDate = Ot(Ae(), 90);
|
5691
5691
|
filter = {};
|
5692
5692
|
isLoading = !0;
|
5693
5693
|
rawTransactions = [];
|
@@ -5706,7 +5706,7 @@ class $h {
|
|
5706
5706
|
transactions: a
|
5707
5707
|
} = {}) => {
|
5708
5708
|
await Promise.all([
|
5709
|
-
this.loadAssociatedBeats(
|
5709
|
+
this.loadAssociatedBeats(Ve(/* @__PURE__ */ new Date()), n),
|
5710
5710
|
this.loadTags(),
|
5711
5711
|
this.loadTaggings(),
|
5712
5712
|
this.loadTransactionRules(i),
|
@@ -5798,7 +5798,7 @@ class $h {
|
|
5798
5798
|
loadTransactionsByDateRange = async (n, i) => {
|
5799
5799
|
console.warn("DEPRECATED: loadTransactionsByDateRange will be removed"), this.setFilter({
|
5800
5800
|
...this.filter,
|
5801
|
-
dateRange: { start:
|
5801
|
+
dateRange: { start: Ke(i), end: Ke(n) }
|
5802
5802
|
});
|
5803
5803
|
};
|
5804
5804
|
modifyTransactionByAccountGuid = (n, i) => {
|
@@ -5980,10 +5980,10 @@ const zh = ({ transaction: e, onClick: n }) => {
|
|
5980
5980
|
n && /* @__PURE__ */ t(C, { color: "secondary", variant: "XSmall", children: a.zero_state_there_are_no_transactions })
|
5981
5981
|
] });
|
5982
5982
|
}, jh = x(Yh), Br = (e, n) => {
|
5983
|
-
const i =
|
5983
|
+
const i = Ke(n[e].date), a = Ke(n[e - 1]?.date);
|
5984
5984
|
return !Dt(i, a);
|
5985
5985
|
}, Xh = (e, n) => {
|
5986
|
-
const i =
|
5986
|
+
const i = Ke(n[e].date), a = Ke(n[e + 1]?.date);
|
5987
5987
|
return Dt(i, a);
|
5988
5988
|
}, Hr = 65, Pr = 34, Zh = ({
|
5989
5989
|
bgcolor: e,
|
@@ -6078,8 +6078,8 @@ const zh = ({ transaction: e, onClick: n }) => {
|
|
6078
6078
|
]
|
6079
6079
|
}
|
6080
6080
|
);
|
6081
|
-
}, eg = x(Jh), tg = (e) => /* @__PURE__ */ t(C, { tabIndex: e.tabIndex, variant: "Small", children: de(
|
6082
|
-
const n =
|
6081
|
+
}, eg = x(Jh), tg = (e) => /* @__PURE__ */ t(C, { tabIndex: e.tabIndex, variant: "Small", children: de(Ke(e.row.date), ie.MONTH_DAY) }), ng = (e) => {
|
6082
|
+
const n = Xe(), { transactions: i } = A(), { is_flagged: a, is_hidden: o, has_been_viewed: r, parent_guid: s } = e.row, l = !r && !!!s;
|
6083
6083
|
return /* @__PURE__ */ d(
|
6084
6084
|
O,
|
6085
6085
|
{
|
@@ -6624,9 +6624,9 @@ const sg = ({
|
|
6624
6624
|
)
|
6625
6625
|
);
|
6626
6626
|
}, $r = (e) => {
|
6627
|
-
const n = [], i =
|
6627
|
+
const n = [], i = Ae();
|
6628
6628
|
for (let a = 0; a <= Fr; a++) {
|
6629
|
-
const o =
|
6629
|
+
const o = Ve(Ht(i, Fr - a)), s = e.filter(
|
6630
6630
|
(c) => c.year_month === Number(Ln(o, "yyyyMM"))
|
6631
6631
|
).reduce((c, l) => c + l.total, 0);
|
6632
6632
|
n.push({
|
@@ -6734,7 +6734,7 @@ class vg {
|
|
6734
6734
|
}
|
6735
6735
|
};
|
6736
6736
|
loadMonthlyCategoryTotals = async (n = this.globalStore.globalUiStore.selectedAccounts, i, a) => {
|
6737
|
-
const o = We(
|
6737
|
+
const o = We(Ve(i ?? Ht(/* @__PURE__ */ new Date(), 11))), r = We(Ye(a ?? /* @__PURE__ */ new Date()));
|
6738
6738
|
try {
|
6739
6739
|
const s = await this.api.getMonthlyCategoryTotals(o, r, n);
|
6740
6740
|
ee(() => {
|
@@ -6752,8 +6752,8 @@ class vg {
|
|
6752
6752
|
We(a),
|
6753
6753
|
n
|
6754
6754
|
), r = await this.api.getMonthlyCategoryTotals(
|
6755
|
-
We(
|
6756
|
-
We(
|
6755
|
+
We(Ve(Ht(a, 11))),
|
6756
|
+
We(Ye(a)),
|
6757
6757
|
n
|
6758
6758
|
);
|
6759
6759
|
ee(() => {
|
@@ -6892,7 +6892,7 @@ const Lc = ({ transaction: e }) => {
|
|
6892
6892
|
{
|
6893
6893
|
primary: s.date_title,
|
6894
6894
|
primaryTypographyProps: { variant: "XSmall" },
|
6895
|
-
secondary: /* @__PURE__ */ t(C, { bold: !0, variant: "Body", children: de(
|
6895
|
+
secondary: /* @__PURE__ */ t(C, { bold: !0, variant: "Body", children: de(Ke(e.date), ie.YEAR_MONTH_DAY) })
|
6896
6896
|
}
|
6897
6897
|
),
|
6898
6898
|
/* @__PURE__ */ t(gt, { children: /* @__PURE__ */ t(V, { name: "chevron_right", weight: It.Dark }) })
|
@@ -6912,7 +6912,7 @@ const Lc = ({ transaction: e }) => {
|
|
6912
6912
|
children: /* @__PURE__ */ t(b, { alignItems: "center", mt: n.Spacing.XXLarge, children: /* @__PURE__ */ t(
|
6913
6913
|
xu,
|
6914
6914
|
{
|
6915
|
-
beginDate:
|
6915
|
+
beginDate: Ke(u),
|
6916
6916
|
copy: {
|
6917
6917
|
nextAria: s.date_next_aria,
|
6918
6918
|
prevAria: s.date_prev_aria,
|
@@ -8022,7 +8022,7 @@ const Lc = ({ transaction: e }) => {
|
|
8022
8022
|
updateManualTransaction: Le
|
8023
8023
|
} = wt(), { userProfile: Re } = ft(), [ue, me] = g.useState(""), [Qe, $] = g.useState(""), [pe, be] = g.useState(!1), [fe, we] = g.useState(!1), [Ge, St] = g.useState(!1);
|
8024
8024
|
g.useEffect(() => {
|
8025
|
-
const ht = o.filter((ai) => !ai.is_hidden), or =
|
8025
|
+
const ht = o.filter((ai) => !ai.is_hidden), or = Ve(Ae()), rr = Ye(Ae());
|
8026
8026
|
y(ht), S(or, rr), R({
|
8027
8027
|
accounts: ht.map((ai) => ai.guid),
|
8028
8028
|
custom: (ai) => !ai.accountIsClosed && !ai.accountIsHidden,
|
@@ -8052,7 +8052,7 @@ const Lc = ({ transaction: e }) => {
|
|
8052
8052
|
}, Ma = () => {
|
8053
8053
|
Wt.length > 0 ? (Le({
|
8054
8054
|
...Nc,
|
8055
|
-
date: We(
|
8055
|
+
date: We(Ae()),
|
8056
8056
|
user_guid: Re?.user_guid || ""
|
8057
8057
|
}), me(
|
8058
8058
|
"addTransaction"
|
@@ -8235,7 +8235,7 @@ const Lc = ({ transaction: e }) => {
|
|
8235
8235
|
label: ki(y + 1)
|
8236
8236
|
}));
|
8237
8237
|
u[30].label += ` (${s.last_day_of_month})`;
|
8238
|
-
const _ = u.slice(0, 15), h = u.slice(14), m = e === Ee.EveryWeek || e === Ee.EveryOtherWeek, p = e === Ee.TwiceAMonth || e === Ee.EveryMonth || e === Ee.EveryOtherMonth || e === Ee.EveryQuarter || e === Ee.EveryOtherQuarter, f = ic(
|
8238
|
+
const _ = u.slice(0, 15), h = u.slice(14), m = e === Ee.EveryWeek || e === Ee.EveryOtherWeek, p = e === Ee.TwiceAMonth || e === Ee.EveryMonth || e === Ee.EveryOtherMonth || e === Ee.EveryQuarter || e === Ee.EveryOtherQuarter, f = ic(Ae(), n), S = (y) => {
|
8239
8239
|
y && o(r_(y));
|
8240
8240
|
};
|
8241
8241
|
return /* @__PURE__ */ d(b, { gap: 24, sx: { m: 24 }, children: [
|
@@ -8334,7 +8334,7 @@ const Lc = ({ transaction: e }) => {
|
|
8334
8334
|
g.useEffect(() => {
|
8335
8335
|
s({
|
8336
8336
|
accounts: a,
|
8337
|
-
dateRange: { start: Ot(
|
8337
|
+
dateRange: { start: Ot(Ae(), 90), end: Ye(Ae()) },
|
8338
8338
|
custom: (w) => w.repeating_transaction_guid === n.guid
|
8339
8339
|
});
|
8340
8340
|
}, [n]);
|
@@ -8593,7 +8593,7 @@ const Lc = ({ transaction: e }) => {
|
|
8593
8593
|
return;
|
8594
8594
|
}
|
8595
8595
|
i();
|
8596
|
-
const M = no(p,
|
8596
|
+
const M = no(p, Ke(w.date)), k = {
|
8597
8597
|
account_guid: w.account_guid,
|
8598
8598
|
amount: w.amount,
|
8599
8599
|
created_by: 0,
|
@@ -8823,13 +8823,13 @@ const Lc = ({ transaction: e }) => {
|
|
8823
8823
|
fr(/* @__PURE__ */ new Date()) * Ii + Vr
|
8824
8824
|
), s = (l) => {
|
8825
8825
|
r(fr(l) * Ii + Vr), a({
|
8826
|
-
start:
|
8827
|
-
end:
|
8826
|
+
start: Ve(l),
|
8827
|
+
end: Ye(l)
|
8828
8828
|
}), n(F.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
|
8829
8829
|
}, c = /* @__PURE__ */ t(
|
8830
8830
|
bo,
|
8831
8831
|
{
|
8832
|
-
minDate:
|
8832
|
+
minDate: Ve(/* @__PURE__ */ new Date()),
|
8833
8833
|
onMonthChange: s,
|
8834
8834
|
showDaysOutsideCurrentMonth: !0,
|
8835
8835
|
slots: {
|
@@ -9117,14 +9117,14 @@ const Lc = ({ transaction: e }) => {
|
|
9117
9117
|
}, G = () => {
|
9118
9118
|
const W = rn(s.start, 1);
|
9119
9119
|
S({
|
9120
|
-
start:
|
9121
|
-
end:
|
9120
|
+
start: Ve(W),
|
9121
|
+
end: Ye(W)
|
9122
9122
|
});
|
9123
9123
|
}, L = () => {
|
9124
9124
|
const W = Ht(s.start, 1);
|
9125
9125
|
S({
|
9126
|
-
start:
|
9127
|
-
end:
|
9126
|
+
start: Ve(W),
|
9127
|
+
end: Ye(W)
|
9128
9128
|
});
|
9129
9129
|
};
|
9130
9130
|
return /* @__PURE__ */ d(vn, { container: !0, sx: { pt: 16, px: 24, spacing: 24 }, children: [
|
@@ -9144,7 +9144,7 @@ const Lc = ({ transaction: e }) => {
|
|
9144
9144
|
children: /* @__PURE__ */ t(Ws, {})
|
9145
9145
|
}
|
9146
9146
|
),
|
9147
|
-
/* @__PURE__ */ t($e, { color: "primary", onClick: G, children: /* @__PURE__ */ t(
|
9147
|
+
/* @__PURE__ */ t($e, { color: "primary", onClick: G, children: /* @__PURE__ */ t(je, {}) })
|
9148
9148
|
] })
|
9149
9149
|
] }),
|
9150
9150
|
/* @__PURE__ */ t(
|
@@ -9229,9 +9229,9 @@ const Lc = ({ transaction: e }) => {
|
|
9229
9229
|
c(i);
|
9230
9230
|
}, [i]), g.useEffect(() => {
|
9231
9231
|
r && (h({
|
9232
|
-
dateRange: { start: Ot(
|
9232
|
+
dateRange: { start: Ot(Ae(), 90), end: pn() },
|
9233
9233
|
accounts: s
|
9234
|
-
}), _({ start:
|
9234
|
+
}), _({ start: Ve(/* @__PURE__ */ new Date()), end: Ye(/* @__PURE__ */ new Date()) }), u().finally());
|
9235
9235
|
}, [r]), o ? /* @__PURE__ */ d(
|
9236
9236
|
Ct,
|
9237
9237
|
{
|
@@ -9295,7 +9295,7 @@ const Lc = ({ transaction: e }) => {
|
|
9295
9295
|
l && u(i);
|
9296
9296
|
}, [l]), g.useEffect(() => {
|
9297
9297
|
_.length > 0 && (o({
|
9298
|
-
dateRange: { start: Ot(
|
9298
|
+
dateRange: { start: Ot(Ae(), 90), end: pn() },
|
9299
9299
|
accounts: _
|
9300
9300
|
}), s().finally());
|
9301
9301
|
}, [_]), !c || !l ? /* @__PURE__ */ t(ce, {}) : /* @__PURE__ */ t(
|
@@ -9406,9 +9406,9 @@ const Lc = ({ transaction: e }) => {
|
|
9406
9406
|
h(r);
|
9407
9407
|
}, [r]), g.useEffect(() => {
|
9408
9408
|
u && (N({
|
9409
|
-
dateRange: { start: Ot(
|
9409
|
+
dateRange: { start: Ot(Ae(), 90), end: pn() },
|
9410
9410
|
accounts: _
|
9411
|
-
}), I({ start:
|
9411
|
+
}), I({ start: Ve(/* @__PURE__ */ new Date()), end: Ye(/* @__PURE__ */ new Date()) }), m().finally(), i(!0));
|
9412
9412
|
}, [u]), g.useEffect(() => {
|
9413
9413
|
n && a(F.RECURRING_TRANSACTIONS_LOAD_WIDGET, {
|
9414
9414
|
state: p.length > 0 ? "default" : "zeroState"
|
@@ -9563,7 +9563,7 @@ class Em {
|
|
9563
9563
|
transactions = [];
|
9564
9564
|
repeatingTransactions = [];
|
9565
9565
|
selectedDay;
|
9566
|
-
dateRange = { start:
|
9566
|
+
dateRange = { start: Ve(Ae()), end: Ye(Ae()) };
|
9567
9567
|
isDataLoaded = !1;
|
9568
9568
|
constructor(n) {
|
9569
9569
|
this.globalStore = n, this.api = new Yr(n.endpoint, n.sessionToken), Fe(this);
|
@@ -9589,7 +9589,7 @@ class Em {
|
|
9589
9589
|
*/
|
9590
9590
|
get upcomingRecurrences() {
|
9591
9591
|
return this.recurrences.filter(
|
9592
|
-
(n) => sn(n.expectedDate, Ot(
|
9592
|
+
(n) => sn(n.expectedDate, Ot(Ae(), 3)) && ot(n.expectedDate, this.dateRange.end) && n.status === et.Upcoming
|
9593
9593
|
);
|
9594
9594
|
}
|
9595
9595
|
/**
|
@@ -9625,7 +9625,7 @@ class Em {
|
|
9625
9625
|
);
|
9626
9626
|
}
|
9627
9627
|
get nextIncomeRecurrence() {
|
9628
|
-
return this.upcomingIncome.find((n) => sn(n.expectedDate,
|
9628
|
+
return this.upcomingIncome.find((n) => sn(n.expectedDate, Ae()));
|
9629
9629
|
}
|
9630
9630
|
/**
|
9631
9631
|
* Returns the expense recurrences for the current month.
|
@@ -10005,7 +10005,7 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10005
10005
|
] }),
|
10006
10006
|
/* @__PURE__ */ t(C, { sx: { flexGrow: 1, fontSize: 13 }, children: e.name }),
|
10007
10007
|
/* @__PURE__ */ t(
|
10008
|
-
|
10008
|
+
Ze,
|
10009
10009
|
{
|
10010
10010
|
amount: e.amount,
|
10011
10011
|
bold: !0,
|
@@ -10173,9 +10173,9 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10173
10173
|
}
|
10174
10174
|
], l = g.useMemo(() => s.map((u) => {
|
10175
10175
|
const _ = a.filter(
|
10176
|
-
da(u, { start:
|
10176
|
+
da(u, { start: Ae(), end: Fn(Ae(), 30) })
|
10177
10177
|
).reduce((p, f) => p + f.amount, 0), h = o.filter(
|
10178
|
-
da(u, { start:
|
10178
|
+
da(u, { start: Ae(), end: Fn(Ae(), 30) })
|
10179
10179
|
).reduce((p, f) => p + f.amount, 0), m = (u.balance || 0) + h - _;
|
10180
10180
|
return {
|
10181
10181
|
account: u,
|
@@ -10287,7 +10287,7 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10287
10287
|
),
|
10288
10288
|
/* @__PURE__ */ t(C, { variant: "Small", children: `${f} ${p ? `*${p}` : ""}` })
|
10289
10289
|
] }),
|
10290
|
-
/* @__PURE__ */ t(
|
10290
|
+
/* @__PURE__ */ t(Ze, { amount: u.balance, bold: !0, variant: "Small" })
|
10291
10291
|
]
|
10292
10292
|
}
|
10293
10293
|
),
|
@@ -10302,7 +10302,7 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10302
10302
|
py: 12,
|
10303
10303
|
children: [
|
10304
10304
|
/* @__PURE__ */ t(C, { variant: "Small", children: i.projected_income }),
|
10305
|
-
/* @__PURE__ */ t(
|
10305
|
+
/* @__PURE__ */ t(Ze, { amount: u.income, bold: !0, symbol: "+", variant: "Small" })
|
10306
10306
|
]
|
10307
10307
|
}
|
10308
10308
|
),
|
@@ -10317,7 +10317,7 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10317
10317
|
py: 12,
|
10318
10318
|
children: [
|
10319
10319
|
/* @__PURE__ */ t(C, { variant: "Small", children: i.projected_expenses }),
|
10320
|
-
/* @__PURE__ */ t(
|
10320
|
+
/* @__PURE__ */ t(Ze, { amount: u.expenses, bold: !0, symbol: "-", variant: "Small" })
|
10321
10321
|
]
|
10322
10322
|
}
|
10323
10323
|
),
|
@@ -10406,12 +10406,12 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10406
10406
|
padding: n ? "14px 16px" : 0,
|
10407
10407
|
sx: { borderBottomLeftRadius: 4, borderBottomRightRadius: 4 },
|
10408
10408
|
children: [
|
10409
|
-
!n && /* @__PURE__ */ t(
|
10409
|
+
!n && /* @__PURE__ */ t(Ze, { amount: e, component: "h2", variant: "H2" }),
|
10410
10410
|
/* @__PURE__ */ d(b, { alignItems: "center", component: "span", direction: "row", gap: 8, mt: 2, children: [
|
10411
10411
|
/* @__PURE__ */ t(C, { bold: i, variant: "Small", children: a }),
|
10412
10412
|
r
|
10413
10413
|
] }),
|
10414
|
-
n && /* @__PURE__ */ t(
|
10414
|
+
n && /* @__PURE__ */ t(Ze, { amount: e, component: "h2", symbol: o, variant: "Small" })
|
10415
10415
|
]
|
10416
10416
|
}
|
10417
10417
|
), qr = (e, n) => (i) => i.accountGuid && e.includes(i.accountGuid) && (So(i.expectedDate) || sn(i.expectedDate, n.start)) && ot(i.expectedDate, n.end), Fm = () => {
|
@@ -10603,14 +10603,14 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10603
10603
|
).length, _e = async () => {
|
10604
10604
|
k(2), l(
|
10605
10605
|
// Beginning of the month, 90 days before today
|
10606
|
-
|
10607
|
-
|
10606
|
+
Ve(Ot(Ae(), 90)),
|
10607
|
+
Ae()
|
10608
10608
|
), _({ ...u, custom: Gi }), k(3);
|
10609
10609
|
}, Le = async () => {
|
10610
10610
|
if (!(G.length < 1)) {
|
10611
10611
|
R(!0);
|
10612
10612
|
for (let ue = 0; ue < G.length; ue++) {
|
10613
|
-
const me = G[ue], Qe = no(S,
|
10613
|
+
const me = G[ue], Qe = no(S, Ke(me.date)), $ = {
|
10614
10614
|
account_guid: me.account_guid,
|
10615
10615
|
amount: me.amount,
|
10616
10616
|
merchant_guid: me.merchant_guid,
|
@@ -10724,7 +10724,7 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10724
10724
|
const ue = [...G];
|
10725
10725
|
ue.push({
|
10726
10726
|
...J,
|
10727
|
-
nextDate: no(S,
|
10727
|
+
nextDate: no(S, Ke(J.date)),
|
10728
10728
|
frequency: S
|
10729
10729
|
}), L(ue), Y("");
|
10730
10730
|
},
|
@@ -10788,7 +10788,7 @@ const Om = ({ recurrence: e }) => /* @__PURE__ */ d(Z, { children: [
|
|
10788
10788
|
(R) => a.includes(R.guid) && v.includes(R.guid)
|
10789
10789
|
);
|
10790
10790
|
m(N), u({
|
10791
|
-
dateRange: { start: Ot(
|
10791
|
+
dateRange: { start: Ot(Ae(), 90), end: pn() },
|
10792
10792
|
accounts: N.map((R) => R.guid)
|
10793
10793
|
});
|
10794
10794
|
}, [l, i]), !y || !E ? /* @__PURE__ */ t(ce, {}) : _?.has_completed_cash_flow_onboarding ? /* @__PURE__ */ d(
|
@@ -10864,7 +10864,7 @@ class b2 {
|
|
10864
10864
|
}
|
10865
10865
|
let Zm = class {
|
10866
10866
|
// Cashflow is hard-coded to display 30 days starting from today
|
10867
|
-
dateRange = { start:
|
10867
|
+
dateRange = { start: Ae(), end: Fn(Ae(), 30) };
|
10868
10868
|
isDirty = !1;
|
10869
10869
|
nextIncome = void 0;
|
10870
10870
|
upcomingExpenses = [];
|
@@ -10874,13 +10874,13 @@ let Zm = class {
|
|
10874
10874
|
}
|
10875
10875
|
// Returns the number of days until the next income activity or 0 if there is no income activity
|
10876
10876
|
get daysUntilNextIncome() {
|
10877
|
-
return this.nextIncome ? Math.abs(Vd(
|
10877
|
+
return this.nextIncome ? Math.abs(Vd(Ae(), this.nextIncome.expectedDate)) : 0;
|
10878
10878
|
}
|
10879
10879
|
// Returns the expenses (Activities) until the next income activity or the end of the month
|
10880
10880
|
// if there is no income activity
|
10881
10881
|
get expensesTilNextIncome() {
|
10882
10882
|
return this.upcomingExpenses.filter(
|
10883
|
-
(n) => ot(n.expectedDate, this.nextIncome?.expectedDate ||
|
10883
|
+
(n) => ot(n.expectedDate, this.nextIncome?.expectedDate || Ye(/* @__PURE__ */ new Date()))
|
10884
10884
|
);
|
10885
10885
|
}
|
10886
10886
|
setNextIncome = (n) => {
|
@@ -11381,7 +11381,7 @@ const Sn = () => {
|
|
11381
11381
|
return isNaN(i) ? 0 : i;
|
11382
11382
|
}, Ko = (e, n) => {
|
11383
11383
|
const i = [];
|
11384
|
-
let a =
|
11384
|
+
let a = Ve(n?.start ?? Ht(/* @__PURE__ */ new Date(), 5));
|
11385
11385
|
const o = n?.end ?? /* @__PURE__ */ new Date();
|
11386
11386
|
for (; ot(a, o); )
|
11387
11387
|
i.push({
|
@@ -11402,8 +11402,8 @@ const Sn = () => {
|
|
11402
11402
|
const n = [], i = e.filter(
|
11403
11403
|
(r) => r.top_level_category_guid !== D.INCOME && r.top_level_category_guid !== D.TRANSFER && r.total > 0
|
11404
11404
|
);
|
11405
|
-
let a =
|
11406
|
-
const o =
|
11405
|
+
let a = Ve(Ht(/* @__PURE__ */ new Date(), 5));
|
11406
|
+
const o = Ye(/* @__PURE__ */ new Date());
|
11407
11407
|
for (; ot(a, o); )
|
11408
11408
|
n.push({
|
11409
11409
|
x: de(a, ie.MONTH_SHORT),
|
@@ -11428,7 +11428,7 @@ const Sn = () => {
|
|
11428
11428
|
}
|
11429
11429
|
return c;
|
11430
11430
|
}, dp = () => {
|
11431
|
-
const e =
|
11431
|
+
const e = Xe(), { selectedAccount: n } = Vt(), { monthlyCategoryTotals: i } = Ue(), { trends: a } = A(), o = [e.palette.chart?.chart1, e.palette.chart?.chart2], r = cp(i, n.account_type), s = lp(r, n.account_type, a), c = [le.LOAN, le.MORTGAGE].includes(n.account_type);
|
11432
11432
|
return /* @__PURE__ */ t("div", { "data-testid": "TrendsChart", children: /* @__PURE__ */ t(
|
11433
11433
|
ni,
|
11434
11434
|
{
|
@@ -11520,7 +11520,7 @@ const qc = ({
|
|
11520
11520
|
onClickArea: r,
|
11521
11521
|
onHoverArea: s
|
11522
11522
|
}) => {
|
11523
|
-
const c =
|
11523
|
+
const c = Xe(), { onEvent: l } = q(), u = a.filter((v) => !v.is_impossible), _ = [
|
11524
11524
|
...new Set(
|
11525
11525
|
u.flatMap((v) => v.dataset.map((N) => new Date(N.x).getTime()))
|
11526
11526
|
)
|
@@ -12609,7 +12609,7 @@ const qp = ({ list: e, onClickItem: n }) => /* @__PURE__ */ t(O, { sx: { bgcolor
|
|
12609
12609
|
}
|
12610
12610
|
},
|
12611
12611
|
children: e.map((i, a) => /* @__PURE__ */ d(g.Fragment, { children: [
|
12612
|
-
/* @__PURE__ */ t(j, { secondaryAction: /* @__PURE__ */ t(
|
12612
|
+
/* @__PURE__ */ t(j, { secondaryAction: /* @__PURE__ */ t(je, {}), children: /* @__PURE__ */ d(ge, { onClick: () => n(i.key), children: [
|
12613
12613
|
/* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(
|
12614
12614
|
Ft,
|
12615
12615
|
{
|
@@ -12742,7 +12742,7 @@ const qp = ({ list: e, onClickItem: n }) => /* @__PURE__ */ t(O, { sx: { bgcolor
|
|
12742
12742
|
unitsPerSegment: h,
|
12743
12743
|
isFinacialStrengthGraph: m
|
12744
12744
|
}) => {
|
12745
|
-
const p =
|
12745
|
+
const p = Xe(), f = [
|
12746
12746
|
{ offset: "13.62%", color: p.palette.chartMono.chartMono2 },
|
12747
12747
|
{ offset: "36.67%", color: p.palette.chartMono.chartMono3 },
|
12748
12748
|
{ offset: "59.72%", color: p.palette.chartMono.chartMono4 },
|
@@ -12796,7 +12796,7 @@ const qp = ({ list: e, onClickItem: n }) => /* @__PURE__ */ t(O, { sx: { bgcolor
|
|
12796
12796
|
footerRightContent: _,
|
12797
12797
|
isFinacialStrengthGraph: h = !1
|
12798
12798
|
}) => {
|
12799
|
-
const m =
|
12799
|
+
const m = Xe(), p = -Math.PI / 1.35, f = Math.PI / 1.35, S = f - p, y = S / (r - o), E = (n - o) * y, I = p + E + 0.02, w = i !== "SM" ? 0.1 : 0.12, v = e, N = e * (1 - w), R = v * 2.5, M = R / 2, k = R / 2, G = (N + v) / 2, L = n !== 25 && n !== 50 && n !== 75 && n !== 100 ? 0 : 0.12, [W, Y] = t1(G, I, L), J = n / 25, he = {
|
12800
12800
|
L: { markerSize: 12, healthScoreFontSize: 64 },
|
12801
12801
|
M: { markerSize: 10, healthScoreFontSize: 48 },
|
12802
12802
|
SM: { markerSize: 3, healthScoreFontSize: 14 }
|
@@ -12989,7 +12989,7 @@ const qp = ({ list: e, onClickItem: n }) => /* @__PURE__ */ t(O, { sx: { bgcolor
|
|
12989
12989
|
minValue: o = 300,
|
12990
12990
|
footerCenterContent: r
|
12991
12991
|
}) => {
|
12992
|
-
const c =
|
12992
|
+
const c = Xe().palette.mode === "dark", l = [
|
12993
12993
|
{
|
12994
12994
|
id: 1,
|
12995
12995
|
label: "Poor",
|
@@ -13114,7 +13114,7 @@ class r1 {
|
|
13114
13114
|
}
|
13115
13115
|
};
|
13116
13116
|
loadPeerScore = async () => {
|
13117
|
-
const n = Ln(
|
13117
|
+
const n = Ln(Ke(this.globalStore.appDataStore.user.birthday), "yyyy");
|
13118
13118
|
try {
|
13119
13119
|
const i = await this.api.getPeerScore(n);
|
13120
13120
|
ee(() => {
|
@@ -13180,7 +13180,7 @@ const Na = ({
|
|
13180
13180
|
/* @__PURE__ */ t(
|
13181
13181
|
te,
|
13182
13182
|
{
|
13183
|
-
endIcon: /* @__PURE__ */ t(
|
13183
|
+
endIcon: /* @__PURE__ */ t(je, {}),
|
13184
13184
|
onClick: () => c(!0),
|
13185
13185
|
size: "small",
|
13186
13186
|
sx: { p: 0, mt: 8, "&:hover": { backgroundColor: "transparent" } },
|
@@ -13199,7 +13199,7 @@ const Na = ({
|
|
13199
13199
|
}
|
13200
13200
|
);
|
13201
13201
|
}, s1 = x(() => {
|
13202
|
-
const e =
|
13202
|
+
const e = Xe(), [n, { width: i }] = ii(), { finstrong: a } = A(), { isCopyLoaded: o, isInitialized: r } = re(), { healthScore: s, healthScoreChange: c } = bi(), l = e.palette.mode === "dark", u = Xo(s?.health_score, a);
|
13203
13203
|
return !o || !r ? /* @__PURE__ */ t(ce, {}) : /* @__PURE__ */ d(bt, { ref: n, sx: { p: 16 }, children: [
|
13204
13204
|
/* @__PURE__ */ t(
|
13205
13205
|
_n,
|
@@ -13207,7 +13207,7 @@ const Na = ({
|
|
13207
13207
|
action: /* @__PURE__ */ t(
|
13208
13208
|
te,
|
13209
13209
|
{
|
13210
|
-
endIcon: /* @__PURE__ */ t(
|
13210
|
+
endIcon: /* @__PURE__ */ t(je, {}),
|
13211
13211
|
sx: {
|
13212
13212
|
fontSize: 13,
|
13213
13213
|
lineHeight: "16px",
|
@@ -13295,7 +13295,7 @@ const Na = ({
|
|
13295
13295
|
title: i
|
13296
13296
|
}) => {
|
13297
13297
|
let a;
|
13298
|
-
const { refreshAccounts: o } = Se(), { loadWidget: r } = bc(), { connect: s } = A(), c =
|
13298
|
+
const { refreshAccounts: o } = Se(), { loadWidget: r } = bc(), { connect: s } = A(), c = Xe(), [l, u] = g.useState(!1), [_, h] = g.useState(!1);
|
13299
13299
|
return g.useEffect(() => (n ? (u(!0), r({ widget: "connections_widget", mode: c.palette.mode }).then((m) => {
|
13300
13300
|
a = new Hd({
|
13301
13301
|
container: `#${Nr}`,
|
@@ -13368,7 +13368,7 @@ const Na = ({
|
|
13368
13368
|
}
|
13369
13369
|
);
|
13370
13370
|
}, d1 = x(l1), _1 = ({ isOpen: e, onClose: n }) => {
|
13371
|
-
const { finstrong: i } = A(), a =
|
13371
|
+
const { finstrong: i } = A(), a = Xe(), { updateUser: o, user: r } = ft(), [s, c] = g.useState(r.birthday), l = (_) => {
|
13372
13372
|
c(Math.floor(new Date(_).getTime() / 1e3));
|
13373
13373
|
};
|
13374
13374
|
return /* @__PURE__ */ t(
|
@@ -13540,7 +13540,7 @@ const Na = ({
|
|
13540
13540
|
poor: 110,
|
13541
13541
|
good: 100
|
13542
13542
|
}
|
13543
|
-
},
|
13543
|
+
}, ze = {
|
13544
13544
|
GOOD: "Good",
|
13545
13545
|
FAIR: "Fair",
|
13546
13546
|
OFF_TRACK: "Off Track",
|
@@ -13548,14 +13548,14 @@ const Na = ({
|
|
13548
13548
|
}, _i = ({
|
13549
13549
|
title: e,
|
13550
13550
|
description: n,
|
13551
|
-
cardState: i =
|
13551
|
+
cardState: i = ze.MISSING,
|
13552
13552
|
stateTitle: a
|
13553
13553
|
}) => {
|
13554
13554
|
const o = {
|
13555
|
-
[
|
13556
|
-
[
|
13557
|
-
[
|
13558
|
-
[
|
13555
|
+
[ze.GOOD]: { backgroundColor: "success.lighter", color: "success.main" },
|
13556
|
+
[ze.FAIR]: { backgroundColor: "warning.lighter", color: "warning.main" },
|
13557
|
+
[ze.OFF_TRACK]: { backgroundColor: "error.lighter", color: "error.main" },
|
13558
|
+
[ze.MISSING]: { backgroundColor: "divider", color: "text.secondary" }
|
13559
13559
|
}[i];
|
13560
13560
|
return /* @__PURE__ */ d(
|
13561
13561
|
b,
|
@@ -13597,16 +13597,16 @@ const Na = ({
|
|
13597
13597
|
}, p1 = () => {
|
13598
13598
|
const { healthScore: e } = bi(), { finstrong: n } = A(), { key_indicators_spend: i } = n, a = (c) => {
|
13599
13599
|
const { good: l, poor: u } = Pi.spendToIncomeRatio;
|
13600
|
-
let _ =
|
13601
|
-
return c !== null && (c < l ? (_ =
|
13600
|
+
let _ = ze.MISSING, h = i.ratio_missing_description, m = n.key_indicators_missing;
|
13601
|
+
return c !== null && (c < l ? (_ = ze.GOOD, h = T(i.ratio_good_description, c), m = n.key_indicators_good) : c >= l && c < u ? (_ = ze.FAIR, h = T(i.ratio_fair_description, c), m = n.key_indicators_fair) : c >= u && (_ = ze.OFF_TRACK, h = T(i.ratio_off_track_description, c), m = n.key_indicators_off_track)), {
|
13602
13602
|
cardState: _,
|
13603
13603
|
description: h,
|
13604
13604
|
title: i.ratio_card_title,
|
13605
13605
|
stateTitle: m
|
13606
13606
|
};
|
13607
13607
|
}, o = (c) => {
|
13608
|
-
let l =
|
13609
|
-
return c !== null && (c === 0 ? (l =
|
13608
|
+
let l = ze.MISSING, u = i.count_missing_description, _ = n.key_indicators_missing;
|
13609
|
+
return c !== null && (c === 0 ? (l = ze.GOOD, u = i.count_good_description, _ = n.key_indicators_good) : c >= 1 && (l = ze.OFF_TRACK, u = i.count_off_track_description, _ = n.key_indicators_off_track)), {
|
13610
13610
|
cardState: l,
|
13611
13611
|
description: u,
|
13612
13612
|
title: i.count_card_title,
|
@@ -13644,8 +13644,8 @@ const Na = ({
|
|
13644
13644
|
}, f1 = () => {
|
13645
13645
|
const { healthScore: e } = bi(), { finstrong: n } = A(), { key_indicators_save: i } = n, a = (c) => {
|
13646
13646
|
const { good: l, poor: u } = Pi.daysOfCashOnHand;
|
13647
|
-
let _ =
|
13648
|
-
return c !== null && (c >= l ? (_ =
|
13647
|
+
let _ = ze.MISSING, h = i.days_of_cash_missing_description, m = n.key_indicators_missing;
|
13648
|
+
return c !== null && (c >= l ? (_ = ze.GOOD, h = T(i.days_of_cash_good_description, c), m = n.key_indicators_good) : c < l && c >= u ? (_ = ze.FAIR, h = T(i.days_of_cash_fair_description, c), m = n.key_indicators_fair) : c < u && (_ = ze.OFF_TRACK, h = T(i.days_of_cash_off_track_description, c), m = n.key_indicators_off_track)), {
|
13649
13649
|
cardState: _,
|
13650
13650
|
description: h,
|
13651
13651
|
title: i.days_of_cash_title,
|
@@ -13653,11 +13653,11 @@ const Na = ({
|
|
13653
13653
|
};
|
13654
13654
|
}, o = (c) => {
|
13655
13655
|
const { good: l, poor: u } = Pi.emergencySavings;
|
13656
|
-
let _ =
|
13657
|
-
return c !== null && (c >= l ? (_ =
|
13656
|
+
let _ = ze.MISSING, h = i.emergency_savings_missing_description, m = n.key_indicators_missing;
|
13657
|
+
return c !== null && (c >= l ? (_ = ze.GOOD, h = i.emergency_savings_good_description, m = n.key_indicators_good) : c < l && c >= u ? (_ = ze.FAIR, h = T(
|
13658
13658
|
i.emergency_savings_fair_description,
|
13659
13659
|
H(c, "0,0.00")
|
13660
|
-
), m = n.key_indicators_fair) : c < u && (_ =
|
13660
|
+
), m = n.key_indicators_fair) : c < u && (_ = ze.OFF_TRACK, h = i.emergency_savings_off_track_description, m = n.key_indicators_off_track)), {
|
13661
13661
|
cardState: _,
|
13662
13662
|
description: h,
|
13663
13663
|
title: i.emergency_savings_title,
|
@@ -13695,8 +13695,8 @@ const Na = ({
|
|
13695
13695
|
}, C1 = () => {
|
13696
13696
|
const { healthScore: e } = bi(), { finstrong: n } = A(), { key_indicators_borrow: i } = n, { user: a } = ft(), o = (l) => {
|
13697
13697
|
const { good: u, poor: _ } = Pi.debtToIncomeRatio;
|
13698
|
-
let h =
|
13699
|
-
return l != null && (l <= u ? (h =
|
13698
|
+
let h = ze.MISSING, m = i.manage_debit_missing_description, p = n.key_indicators_missing;
|
13699
|
+
return l != null && (l <= u ? (h = ze.GOOD, m = i.manage_debit_good_description, p = n.key_indicators_good) : l > u && l <= _ ? (h = ze.FAIR, m = T(i.manage_debit_fair_description, l), p = n.key_indicators_fair) : l > _ && (h = ze.OFF_TRACK, m = T(
|
13700
13700
|
i.manage_debit_off_track_description,
|
13701
13701
|
l
|
13702
13702
|
), p = n.key_indicators_off_track)), {
|
@@ -13707,8 +13707,8 @@ const Na = ({
|
|
13707
13707
|
};
|
13708
13708
|
}, r = (l) => {
|
13709
13709
|
const { good: u, poor: _ } = Pi.creditScore;
|
13710
|
-
let h =
|
13711
|
-
return l !== null && (l >= u ? (h =
|
13710
|
+
let h = ze.MISSING, m = i.credit_score_missing_description, p = n.key_indicators_missing;
|
13711
|
+
return l !== null && (l >= u ? (h = ze.GOOD, m = T(i.credit_score_good_description, l), p = n.key_indicators_good) : l < u && l >= _ ? (h = ze.FAIR, m = T(i.credit_score_fair_description, l), p = n.key_indicators_fair) : l < _ && (h = ze.OFF_TRACK, m = T(
|
13712
13712
|
i.credit_score_off_track_description,
|
13713
13713
|
l
|
13714
13714
|
), p = n.key_indicators_off_track)), {
|
@@ -13931,7 +13931,7 @@ const Na = ({
|
|
13931
13931
|
) })
|
13932
13932
|
] }) });
|
13933
13933
|
}, T1 = x(E1), A1 = ({ isOpen: e, onClose: n }) => {
|
13934
|
-
const i =
|
13934
|
+
const i = Xe(), { finstrong: a } = A(), { isCopyLoaded: o, isInitialized: r } = re(), { healthScore: s, healthScoreChangeReports: c, augmentedChartData: l } = bi();
|
13935
13935
|
if (!o || !r) return /* @__PURE__ */ t(ce, {});
|
13936
13936
|
const u = Xo(s.health_score || 0, a), _ = c.slice().reverse();
|
13937
13937
|
return /* @__PURE__ */ t(
|
@@ -13993,7 +13993,7 @@ const Na = ({
|
|
13993
13993
|
/* @__PURE__ */ t(O, { children: /* @__PURE__ */ t(
|
13994
13994
|
te,
|
13995
13995
|
{
|
13996
|
-
endIcon: /* @__PURE__ */ t(
|
13996
|
+
endIcon: /* @__PURE__ */ t(je, {}),
|
13997
13997
|
onClick: e,
|
13998
13998
|
size: "small",
|
13999
13999
|
sx: {
|
@@ -14008,7 +14008,7 @@ const Na = ({
|
|
14008
14008
|
) })
|
14009
14009
|
] }) : /* @__PURE__ */ t(ce, {});
|
14010
14010
|
}, w1 = x(I1), v1 = ({ onBackClick: e, sx: n }) => {
|
14011
|
-
const i =
|
14011
|
+
const i = Xe(), { visibleAccounts: a } = Se(), { dateRange: o, isDataLoaded: r, loadBudgetData: s, setTheme: c } = ut(), { reloadCategoryTotals: l } = Ue(), { augmentedChartData: u, calculateHealthScore: _, healthScore: h, loadAugmentedChartData: m } = bi(), { finstrong: p, connect: f } = A(), { isCopyLoaded: S, isInitialized: y, selectedAccounts: E, setSelectedAccounts: I } = re(), { isMobile: w } = Ce(), [v, N] = g.useState(!1);
|
14012
14012
|
g.useEffect(() => {
|
14013
14013
|
c(i);
|
14014
14014
|
}, []), g.useEffect(() => I(a), [a]), g.useEffect(() => {
|
@@ -14064,7 +14064,7 @@ const Na = ({
|
|
14064
14064
|
/* @__PURE__ */ t(
|
14065
14065
|
te,
|
14066
14066
|
{
|
14067
|
-
endIcon: /* @__PURE__ */ t(
|
14067
|
+
endIcon: /* @__PURE__ */ t(je, {}),
|
14068
14068
|
onClick: () => G(!0),
|
14069
14069
|
sx: {
|
14070
14070
|
fontSize: 13
|
@@ -14161,7 +14161,7 @@ function il(e, n) {
|
|
14161
14161
|
style: "percent",
|
14162
14162
|
minimumFractionDigits: 0,
|
14163
14163
|
maximumFractionDigits: 0
|
14164
|
-
}, c = n.is_complete ? n.completed_at : n.projected_to_complete_at, l = c ?
|
14164
|
+
}, c = n.is_complete ? n.completed_at : n.projected_to_complete_at, l = c ? Ke(c) : /* @__PURE__ */ new Date(), u = T(
|
14165
14165
|
e.goal_percentage,
|
14166
14166
|
Ci(a, s)
|
14167
14167
|
), _ = T(
|
@@ -14326,7 +14326,7 @@ const N1 = (e, n) => {
|
|
14326
14326
|
/* @__PURE__ */ t(C, { variant: "XSmall", children: T(
|
14327
14327
|
n.goal_projection,
|
14328
14328
|
de(
|
14329
|
-
|
14329
|
+
Ke(f.projected_to_complete_at || 0),
|
14330
14330
|
ie.MONTH_SHORT_YEAR
|
14331
14331
|
)
|
14332
14332
|
) })
|
@@ -14368,7 +14368,7 @@ const N1 = (e, n) => {
|
|
14368
14368
|
justifyContent: "space-between",
|
14369
14369
|
children: [
|
14370
14370
|
/* @__PURE__ */ t(C, { color: "primary.light", variant: "Body", children: n.reorder_goals_title }),
|
14371
|
-
/* @__PURE__ */ t(
|
14371
|
+
/* @__PURE__ */ t(je, { color: "primary" })
|
14372
14372
|
]
|
14373
14373
|
}
|
14374
14374
|
) }) }) }),
|
@@ -14429,7 +14429,7 @@ const N1 = (e, n) => {
|
|
14429
14429
|
/* @__PURE__ */ t(C, { variant: "XSmall", children: T(
|
14430
14430
|
i.goal_projection,
|
14431
14431
|
de(
|
14432
|
-
|
14432
|
+
Ke(e.projected_to_complete_at || 0),
|
14433
14433
|
ie.MONTH_SHORT_YEAR
|
14434
14434
|
)
|
14435
14435
|
) })
|
@@ -14447,7 +14447,7 @@ const N1 = (e, n) => {
|
|
14447
14447
|
/* @__PURE__ */ t(C, { variant: "XSmall", children: T(
|
14448
14448
|
n.completed_label,
|
14449
14449
|
de(
|
14450
|
-
|
14450
|
+
Ke(e.completed_at || 0),
|
14451
14451
|
ie.MONTH_SHORT_YEAR
|
14452
14452
|
)
|
14453
14453
|
) })
|
@@ -14463,7 +14463,7 @@ const N1 = (e, n) => {
|
|
14463
14463
|
), [c, l] = g.useState(!1);
|
14464
14464
|
let u = n.manage_saving_goals, _ = n.manage_saving_drawer_title, h = n.manage_saving_title, m = n.manage_saving_description;
|
14465
14465
|
return e === z.DEBT_TRACK ? (u = n.manage_debt_goals, _ = n.manage_debt_drawer_title, h = n.manage_debt_title, m = n.manage_debt_description) : e === z.RETIREMENT_TRACK && (u = n.manage_retirement_goals, _ = n.manage_retirement_drawer_title, h = n.manage_retirement_title, m = n.manage_retirement_description), /* @__PURE__ */ d(b, { children: [
|
14466
|
-
/* @__PURE__ */ t(te, { endIcon: /* @__PURE__ */ t(
|
14466
|
+
/* @__PURE__ */ t(te, { endIcon: /* @__PURE__ */ t(je, {}), onClick: () => l(!0), children: u }),
|
14467
14467
|
/* @__PURE__ */ t(
|
14468
14468
|
se,
|
14469
14469
|
{
|
@@ -14591,7 +14591,7 @@ const N1 = (e, n) => {
|
|
14591
14591
|
children: [
|
14592
14592
|
/* @__PURE__ */ t(Pe, { children: /* @__PURE__ */ t(Ft, { sx: { bgcolor: a }, variant: "rounded", children: /* @__PURE__ */ t(pt, { name: o, sx: { color: "grey.900" } }) }) }),
|
14593
14593
|
/* @__PURE__ */ t(oe, { primary: r, secondary: s, sx: { mr: 24 } }),
|
14594
|
-
!h && /* @__PURE__ */ t(
|
14594
|
+
!h && /* @__PURE__ */ t(je, {}),
|
14595
14595
|
h && (u ? /* @__PURE__ */ t(Zs, {}) : /* @__PURE__ */ t(ui, {}))
|
14596
14596
|
]
|
14597
14597
|
}
|
@@ -14606,7 +14606,7 @@ const N1 = (e, n) => {
|
|
14606
14606
|
primaryTypographyProps: { variant: "Body" }
|
14607
14607
|
}
|
14608
14608
|
),
|
14609
|
-
/* @__PURE__ */ t(
|
14609
|
+
/* @__PURE__ */ t(je, {})
|
14610
14610
|
] }) }, p)) }) })
|
14611
14611
|
] }) });
|
14612
14612
|
}, ol = ({
|
@@ -14726,7 +14726,7 @@ const N1 = (e, n) => {
|
|
14726
14726
|
secondary: H(e.balance || 0, "0,0.00")
|
14727
14727
|
}
|
14728
14728
|
),
|
14729
|
-
/* @__PURE__ */ t(
|
14729
|
+
/* @__PURE__ */ t(je, {})
|
14730
14730
|
] }),
|
14731
14731
|
/* @__PURE__ */ t(se, { isOpen: a, onClose: () => o(!1), title: n.account_details, children: /* @__PURE__ */ d(b, { children: [
|
14732
14732
|
/* @__PURE__ */ t(jo, {}),
|
@@ -14778,7 +14778,7 @@ const N1 = (e, n) => {
|
|
14778
14778
|
/* @__PURE__ */ t(qs, { filled: !0 }),
|
14779
14779
|
o.details_add_account
|
14780
14780
|
] }) }),
|
14781
|
-
/* @__PURE__ */ t(
|
14781
|
+
/* @__PURE__ */ t(je, { color: "primary" })
|
14782
14782
|
] }) }) : /* @__PURE__ */ d(b, { sx: { gap: 8, my: 24, mx: 24 }, children: [
|
14783
14783
|
/* @__PURE__ */ t(te, { onClick: () => _(!0), variant: "text", children: o.details_change_account }),
|
14784
14784
|
/* @__PURE__ */ t(
|
@@ -14808,7 +14808,7 @@ const N1 = (e, n) => {
|
|
14808
14808
|
secondary: H(m?.balance || 0, "0,0.00")
|
14809
14809
|
}
|
14810
14810
|
),
|
14811
|
-
/* @__PURE__ */ t(
|
14811
|
+
/* @__PURE__ */ t(je, {})
|
14812
14812
|
] }) }, m.guid)) }),
|
14813
14813
|
/* @__PURE__ */ t(C, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: a.account_types[2] }),
|
14814
14814
|
/* @__PURE__ */ t(ae, { sx: { bgcolor: "background.paper" }, children: i.map((m) => /* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(ge, { onClick: () => h(m), children: [
|
@@ -14826,7 +14826,7 @@ const N1 = (e, n) => {
|
|
14826
14826
|
secondary: H(m?.balance || 0, "0,0.00")
|
14827
14827
|
}
|
14828
14828
|
),
|
14829
|
-
/* @__PURE__ */ t(
|
14829
|
+
/* @__PURE__ */ t(je, {})
|
14830
14830
|
] }) }, m.guid)) }),
|
14831
14831
|
/* @__PURE__ */ t(
|
14832
14832
|
wc,
|
@@ -14904,7 +14904,7 @@ const N1 = (e, n) => {
|
|
14904
14904
|
}
|
14905
14905
|
);
|
14906
14906
|
}, U1 = x(({ goal: e }) => {
|
14907
|
-
const { goals: n } = A(), { user: i, updateUser: a } = ft(), { setAlert: o } = dt(), [r, s] = g.useState(
|
14907
|
+
const { goals: n } = A(), { user: i, updateUser: a } = ft(), { setAlert: o } = dt(), [r, s] = g.useState(Ke(i.birthday ?? 0)), [c, l] = g.useState(null), u = e.is_complete, _ = async () => {
|
14908
14908
|
r && f_(r) && (await a({ ...i, birthday: We(r) }), o(n.alert_goal_updated_birthday));
|
14909
14909
|
};
|
14910
14910
|
return /* @__PURE__ */ t(
|
@@ -14915,7 +14915,7 @@ const N1 = (e, n) => {
|
|
14915
14915
|
label: n.details_birthday,
|
14916
14916
|
onSave: _,
|
14917
14917
|
primaryText: n.details_birthday,
|
14918
|
-
secondaryText: `${de(
|
14918
|
+
secondaryText: `${de(Ke(i.birthday ?? 0), ie.MONTH_DAY_YEAR)}`,
|
14919
14919
|
zeroStateText: !e.guid && !i.birthday ? n.add_birthday : void 0,
|
14920
14920
|
children: /* @__PURE__ */ t(gi, { dateAdapter: Jn, children: /* @__PURE__ */ t(
|
14921
14921
|
go,
|
@@ -14967,7 +14967,7 @@ const N1 = (e, n) => {
|
|
14967
14967
|
/* @__PURE__ */ t(qs, { filled: !0 }),
|
14968
14968
|
n.details_add_account
|
14969
14969
|
] }) }),
|
14970
|
-
/* @__PURE__ */ t(
|
14970
|
+
/* @__PURE__ */ t(je, { color: "primary" })
|
14971
14971
|
] }) }),
|
14972
14972
|
/* @__PURE__ */ t(
|
14973
14973
|
ol,
|
@@ -16115,8 +16115,8 @@ const bf = ({
|
|
16115
16115
|
onMouseLeave: o,
|
16116
16116
|
selectedData: r
|
16117
16117
|
}) => {
|
16118
|
-
const { isMobile: s } = Ce(), { availableWidth: c } = $n(), l =
|
16119
|
-
x: de(
|
16118
|
+
const { isMobile: s } = Ce(), { availableWidth: c } = $n(), l = Xe(), u = c - 320, _ = e.map((f) => ({
|
16119
|
+
x: de(Ke(f.x), ie.MONTH_SHORT),
|
16120
16120
|
y: f.y
|
16121
16121
|
})), h = r ? { index: e.findIndex((f) => f.x === r.x) } : void 0, m = n ? { index: e.findIndex((f) => f.x === n.x) } : void 0, p = (f) => ({
|
16122
16122
|
fill: f === h?.index ? l.palette.success.main : "",
|
@@ -16175,7 +16175,7 @@ const bf = ({
|
|
16175
16175
|
{
|
16176
16176
|
primary: /* @__PURE__ */ d(b, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
|
16177
16177
|
/* @__PURE__ */ t(C, { variant: "Body", children: fc(e.x) }),
|
16178
|
-
/* @__PURE__ */ t(
|
16178
|
+
/* @__PURE__ */ t(Ze, { amount: e.y, sx: { color: "inherit" }, variant: "Body" })
|
16179
16179
|
] })
|
16180
16180
|
}
|
16181
16181
|
)
|
@@ -16194,7 +16194,7 @@ const bf = ({
|
|
16194
16194
|
onMouseLeave: r,
|
16195
16195
|
selectedData: s
|
16196
16196
|
}) => {
|
16197
|
-
const { net_worth: c } = A(), l =
|
16197
|
+
const { net_worth: c } = A(), l = Xe(), u = (_) => {
|
16198
16198
|
const h = _.x === n?.x, m = _.x === s?.x, p = {
|
16199
16199
|
backgroundColor: "inherit",
|
16200
16200
|
borderBottom: "inherit",
|
@@ -16249,14 +16249,14 @@ const bf = ({
|
|
16249
16249
|
}
|
16250
16250
|
}
|
16251
16251
|
),
|
16252
|
-
/* @__PURE__ */ t(
|
16252
|
+
/* @__PURE__ */ t(Ze, { amount: a.change, color: s, variant: n }),
|
16253
16253
|
/* @__PURE__ */ t(C, { variant: "Small", children: e })
|
16254
16254
|
] });
|
16255
16255
|
}, Jo = x(xf), If = ({ hoveredData: e, selectedData: n }) => {
|
16256
|
-
const { net_worth: i } = A(), a =
|
16256
|
+
const { net_worth: i } = A(), a = Xe(), o = e || n, r = ec(ci(o.x), "MMMM");
|
16257
16257
|
return /* @__PURE__ */ d(b, { alignItems: "center", direction: "column", m: 24, children: [
|
16258
16258
|
/* @__PURE__ */ t(C, { color: a.palette.secondary.main, variant: "Small", children: `${r} ${i.net_worth}` }),
|
16259
|
-
/* @__PURE__ */ t(
|
16259
|
+
/* @__PURE__ */ t(Ze, { amount: o.y, variant: "H2" }),
|
16260
16260
|
/* @__PURE__ */ t(Jo, { currencyLabel: i.this_month, netWorth: o, theme: a })
|
16261
16261
|
] });
|
16262
16262
|
}, wf = x(If), gl = 13, vf = (e, n) => e.filter((i) => {
|
@@ -16265,9 +16265,9 @@ const bf = ({
|
|
16265
16265
|
}), Df = (e, n) => [...e, ...n], _s = (e) => {
|
16266
16266
|
if (e && e.length > 0)
|
16267
16267
|
return e[e.length - 1];
|
16268
|
-
}, Nf = (e, n) => e.year_month - n.year_month, Rf = () => Array.from({ length: gl }, (e, n) => Math.floor(
|
16268
|
+
}, Nf = (e, n) => e.year_month - n.year_month, Rf = () => Array.from({ length: gl }, (e, n) => Math.floor(Ve(Ht(/* @__PURE__ */ new Date(), n)).getTime() / 1e3)).sort(), Of = (e, n, i) => !e.length || !n.length ? [] : Rf().reduceRight((o, r) => {
|
16269
16269
|
const s = n.filter(
|
16270
|
-
({ year_month: _ }) => _ === parseInt(Ln(
|
16270
|
+
({ year_month: _ }) => _ === parseInt(Ln(Ke(r), "yyyyMM"))
|
16271
16271
|
), c = e.map((_) => {
|
16272
16272
|
const h = s.find((p) => p.account_guid === _.guid), m = {
|
16273
16273
|
change: 0,
|
@@ -16477,7 +16477,7 @@ const Gf = ({ amount: e, copy: n, trendValue: i }) => {
|
|
16477
16477
|
}
|
16478
16478
|
),
|
16479
16479
|
/* @__PURE__ */ t(
|
16480
|
-
|
16480
|
+
Ze,
|
16481
16481
|
{
|
16482
16482
|
amount: r.balance,
|
16483
16483
|
sx: {
|
@@ -16515,7 +16515,7 @@ const Gf = ({ amount: e, copy: n, trendValue: i }) => {
|
|
16515
16515
|
},
|
16516
16516
|
children: [
|
16517
16517
|
/* @__PURE__ */ t(C, { variant: "Body", children: r.current_net_worth }),
|
16518
|
-
/* @__PURE__ */ t(
|
16518
|
+
/* @__PURE__ */ t(Ze, { amount: e?.y ?? 0, variant: "H1" }),
|
16519
16519
|
e && /* @__PURE__ */ t(
|
16520
16520
|
Jo,
|
16521
16521
|
{
|
@@ -16534,7 +16534,7 @@ const Gf = ({ amount: e, copy: n, trendValue: i }) => {
|
|
16534
16534
|
{
|
16535
16535
|
primary: /* @__PURE__ */ d(b, { direction: "row", justifyContent: "space-between", children: [
|
16536
16536
|
/* @__PURE__ */ t(C, { sx: { fontWeight: 700 }, variant: "XSmall", children: r.assets }),
|
16537
|
-
/* @__PURE__ */ t(
|
16537
|
+
/* @__PURE__ */ t(Ze, { amount: a, sx: { fontWeight: 400 }, variant: "XSmall" })
|
16538
16538
|
] })
|
16539
16539
|
}
|
16540
16540
|
) }),
|
@@ -16544,7 +16544,7 @@ const Gf = ({ amount: e, copy: n, trendValue: i }) => {
|
|
16544
16544
|
{
|
16545
16545
|
primary: /* @__PURE__ */ d(b, { direction: "row", justifyContent: "space-between", children: [
|
16546
16546
|
/* @__PURE__ */ t(C, { sx: { fontWeight: 700 }, variant: "XSmall", children: r.liabilities }),
|
16547
|
-
/* @__PURE__ */ t(
|
16547
|
+
/* @__PURE__ */ t(Ze, { amount: o, sx: { fontWeight: 400 }, variant: "XSmall" })
|
16548
16548
|
] })
|
16549
16549
|
}
|
16550
16550
|
) }),
|
@@ -16571,7 +16571,7 @@ const Gf = ({ amount: e, copy: n, trendValue: i }) => {
|
|
16571
16571
|
{
|
16572
16572
|
primary: /* @__PURE__ */ d(b, { direction: "row", justifyContent: "space-between", children: [
|
16573
16573
|
/* @__PURE__ */ t(C, { sx: { fontWeight: 700 }, variant: "XSmall", children: r.gains }),
|
16574
|
-
/* @__PURE__ */ t(
|
16574
|
+
/* @__PURE__ */ t(Ze, { amount: a, sx: { fontWeight: 400 }, variant: "XSmall" })
|
16575
16575
|
] })
|
16576
16576
|
}
|
16577
16577
|
) }),
|
@@ -16582,7 +16582,7 @@ const Gf = ({ amount: e, copy: n, trendValue: i }) => {
|
|
16582
16582
|
primary: /* @__PURE__ */ d(b, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
|
16583
16583
|
/* @__PURE__ */ t(C, { variant: "Body", children: c.accountName }),
|
16584
16584
|
/* @__PURE__ */ t(
|
16585
|
-
|
16585
|
+
Ze,
|
16586
16586
|
{
|
16587
16587
|
amount: c.gain,
|
16588
16588
|
sx: { color: s.palette.success.main, fontWeight: 700 },
|
@@ -16600,7 +16600,7 @@ const Gf = ({ amount: e, copy: n, trendValue: i }) => {
|
|
16600
16600
|
{
|
16601
16601
|
primary: /* @__PURE__ */ d(b, { direction: "row", justifyContent: "space-between", children: [
|
16602
16602
|
/* @__PURE__ */ t(C, { sx: { fontWeight: 700 }, variant: "XSmall", children: r.losses }),
|
16603
|
-
/* @__PURE__ */ t(
|
16603
|
+
/* @__PURE__ */ t(Ze, { amount: o, sx: { fontWeight: 400 }, variant: "XSmall" })
|
16604
16604
|
] })
|
16605
16605
|
}
|
16606
16606
|
) }),
|
@@ -16614,7 +16614,7 @@ const Gf = ({ amount: e, copy: n, trendValue: i }) => {
|
|
16614
16614
|
{
|
16615
16615
|
primary: /* @__PURE__ */ d(b, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
|
16616
16616
|
/* @__PURE__ */ t(C, { variant: "Body", children: c.accountName }),
|
16617
|
-
/* @__PURE__ */ t(
|
16617
|
+
/* @__PURE__ */ t(Ze, { amount: c.loss, sx: { fontWeight: 700 }, variant: "Body" })
|
16618
16618
|
] }),
|
16619
16619
|
sx: { px: 16 }
|
16620
16620
|
}
|
@@ -17181,7 +17181,7 @@ const ml = x(() => {
|
|
17181
17181
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
17182
17182
|
/* @__PURE__ */ d(te, { onClick: l, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
|
17183
17183
|
/* @__PURE__ */ t(C, { variant: "Small", children: n.verify_email }),
|
17184
|
-
/* @__PURE__ */ t(
|
17184
|
+
/* @__PURE__ */ t(je, {})
|
17185
17185
|
] }),
|
17186
17186
|
/* @__PURE__ */ t(
|
17187
17187
|
Be,
|
@@ -17263,7 +17263,7 @@ const ml = x(() => {
|
|
17263
17263
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
17264
17264
|
/* @__PURE__ */ d(te, { onClick: h, sx: { height: "auto", p: 4, width: "fit-content" }, children: [
|
17265
17265
|
/* @__PURE__ */ t(C, { variant: "Small", children: n.verify_phone }),
|
17266
|
-
/* @__PURE__ */ t(
|
17266
|
+
/* @__PURE__ */ t(je, {})
|
17267
17267
|
] }),
|
17268
17268
|
/* @__PURE__ */ t(
|
17269
17269
|
Be,
|
@@ -17312,7 +17312,7 @@ const ml = x(() => {
|
|
17312
17312
|
)
|
17313
17313
|
] });
|
17314
17314
|
}), iC = ({ availableWidth: e, handleOnLeavClick: n }) => {
|
17315
|
-
const i =
|
17315
|
+
const i = Xe(), { common: a, settings: o } = A(), { isDesktop: r, isMobile: s, isSmallMobile: c, isTablet: l } = Ce(e), { config: u } = vt(), { updateUser: _ } = yt(), { user: h } = ft(), [m, p] = g.useState({
|
17316
17316
|
first_name: h.first_name,
|
17317
17317
|
last_name: h.last_name,
|
17318
17318
|
email: h.email,
|
@@ -17534,7 +17534,7 @@ const oC = ({
|
|
17534
17534
|
field: "created_at",
|
17535
17535
|
headerName: o.mobile_devices_column_added,
|
17536
17536
|
renderHeader: zt,
|
17537
|
-
valueFormatter: (c) => rc(
|
17537
|
+
valueFormatter: (c) => rc(Ke(c), { addSuffix: !0 }),
|
17538
17538
|
sortable: !0,
|
17539
17539
|
hideSortIcons: !1,
|
17540
17540
|
flex: 1,
|
@@ -17638,7 +17638,7 @@ const oC = ({
|
|
17638
17638
|
children: /* @__PURE__ */ d(b, { gap: 4, children: [
|
17639
17639
|
/* @__PURE__ */ t(C, { bold: !0, variant: "Body", children: l.name }),
|
17640
17640
|
/* @__PURE__ */ t(C, { color: a.palette.text.secondary, variant: "Small", children: `${l.make} ${l.model}` }),
|
17641
|
-
/* @__PURE__ */ t(C, { color: a.palette.text.secondary, variant: "Small", children: rc(
|
17641
|
+
/* @__PURE__ */ t(C, { color: a.palette.text.secondary, variant: "Small", children: rc(Ke(l.created_at), { addSuffix: !0 }) })
|
17642
17642
|
] })
|
17643
17643
|
}
|
17644
17644
|
),
|
@@ -18072,7 +18072,7 @@ const oC = ({
|
|
18072
18072
|
institutionGuid: n.account?.institution_guid
|
18073
18073
|
}
|
18074
18074
|
) : void 0,
|
18075
|
-
endIcon: /* @__PURE__ */ t(
|
18075
|
+
endIcon: /* @__PURE__ */ t(je, {}),
|
18076
18076
|
isChecked: n.is_enabled,
|
18077
18077
|
onClick: () => l(!0),
|
18078
18078
|
onToggle: () => e({
|
@@ -18098,8 +18098,8 @@ const oC = ({
|
|
18098
18098
|
children: s ? /* @__PURE__ */ t(gi, { dateAdapter: Jn, children: /* @__PURE__ */ t(
|
18099
18099
|
bo,
|
18100
18100
|
{
|
18101
|
-
maxDate:
|
18102
|
-
minDate:
|
18101
|
+
maxDate: Ye(/* @__PURE__ */ new Date()),
|
18102
|
+
minDate: Ve(/* @__PURE__ */ new Date()),
|
18103
18103
|
onChange: (E) => {
|
18104
18104
|
m(E.getDate());
|
18105
18105
|
},
|
@@ -18213,7 +18213,7 @@ const oC = ({
|
|
18213
18213
|
e.filter((c) => c.children && c.children.length > 0).map((c) => /* @__PURE__ */ t(
|
18214
18214
|
Lo,
|
18215
18215
|
{
|
18216
|
-
endIcon: /* @__PURE__ */ t(
|
18216
|
+
endIcon: /* @__PURE__ */ t(je, {}),
|
18217
18217
|
isChecked: c.is_enabled,
|
18218
18218
|
isDisabled: !c.is_enabled,
|
18219
18219
|
onClick: () => a(c.guid),
|
@@ -18510,15 +18510,15 @@ const oC = ({
|
|
18510
18510
|
/* @__PURE__ */ d(ae, { children: [
|
18511
18511
|
e.includes(Mt.Accounts) && /* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(ge, { onClick: () => u(Mt.Accounts), children: [
|
18512
18512
|
/* @__PURE__ */ t(oe, { primary: o.accounts_title, secondary: o.accounts_subtitle }),
|
18513
|
-
/* @__PURE__ */ t(
|
18513
|
+
/* @__PURE__ */ t(je, {})
|
18514
18514
|
] }) }),
|
18515
18515
|
e.includes(Mt.Budgets) && /* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(ge, { onClick: () => u(Mt.Budgets), children: [
|
18516
18516
|
/* @__PURE__ */ t(oe, { primary: o.budgets_title, secondary: o.budgets_subtitle }),
|
18517
|
-
/* @__PURE__ */ t(
|
18517
|
+
/* @__PURE__ */ t(je, {})
|
18518
18518
|
] }) }),
|
18519
18519
|
e.includes(Mt.Insights) && /* @__PURE__ */ t(j, { children: /* @__PURE__ */ d(ge, { onClick: () => u(Mt.Insights), children: [
|
18520
18520
|
/* @__PURE__ */ t(oe, { primary: o.insights_title, secondary: o.insights_subtitle }),
|
18521
|
-
/* @__PURE__ */ t(
|
18521
|
+
/* @__PURE__ */ t(je, {})
|
18522
18522
|
] }) })
|
18523
18523
|
] }),
|
18524
18524
|
y && /* @__PURE__ */ t(b, { sx: { px: 24 }, children: /* @__PURE__ */ t(bC, {}) }),
|
@@ -18654,7 +18654,7 @@ const oC = ({
|
|
18654
18654
|
imageLargeBreakPoint: o = 12,
|
18655
18655
|
sx: r
|
18656
18656
|
}) => {
|
18657
|
-
const s =
|
18657
|
+
const s = Xe();
|
18658
18658
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
18659
18659
|
/* @__PURE__ */ t(O, { sx: { pb: 48, ...r }, children: /* @__PURE__ */ d(_t, { container: !0, rowSpacing: 24, children: [
|
18660
18660
|
/* @__PURE__ */ t(_t, { item: !0, lg: 12, md: 12, sm: 12, xs: 12, children: n }),
|
@@ -18745,7 +18745,7 @@ const oC = ({
|
|
18745
18745
|
imageLargeBreakPoint: o = 4,
|
18746
18746
|
sx: r
|
18747
18747
|
}) => {
|
18748
|
-
const s =
|
18748
|
+
const s = Xe();
|
18749
18749
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
18750
18750
|
/* @__PURE__ */ t(O, { sx: { pb: 48, ...r }, children: /* @__PURE__ */ d(_t, { container: !0, spacing: 24, sx: { alignItems: "flex-start" }, children: [
|
18751
18751
|
/* @__PURE__ */ t(
|
@@ -18792,7 +18792,7 @@ const oC = ({
|
|
18792
18792
|
imageLargeBreakPoint: o = 4,
|
18793
18793
|
sx: r
|
18794
18794
|
}) => {
|
18795
|
-
const s =
|
18795
|
+
const s = Xe();
|
18796
18796
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
18797
18797
|
/* @__PURE__ */ t(O, { sx: { pb: 48, ...r }, children: /* @__PURE__ */ d(_t, { container: !0, spacing: 24, sx: { alignItems: "flex-start" }, children: [
|
18798
18798
|
/* @__PURE__ */ t(_t, { item: !0, lg: 12 - o, md: 12, sm: 12, xs: 12, children: n }),
|
@@ -18830,7 +18830,7 @@ const oC = ({
|
|
18830
18830
|
imageLargeBreakPoint: o = 12,
|
18831
18831
|
sx: r
|
18832
18832
|
}) => {
|
18833
|
-
const s =
|
18833
|
+
const s = Xe();
|
18834
18834
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
18835
18835
|
/* @__PURE__ */ t(O, { sx: { pb: 48, ...r }, children: /* @__PURE__ */ d(_t, { container: !0, rowSpacing: 24, children: [
|
18836
18836
|
/* @__PURE__ */ t(
|
@@ -18862,7 +18862,7 @@ const oC = ({
|
|
18862
18862
|
] }) }),
|
18863
18863
|
i && /* @__PURE__ */ t(P, {})
|
18864
18864
|
] });
|
18865
|
-
}, U = ({ content: e, sx: n }) => /* @__PURE__ */ t(X, { sx: { lineHeight: "24px", py: 6, ...n }, children: e }),
|
18865
|
+
}, U = ({ content: e, sx: n }) => /* @__PURE__ */ t(X, { sx: { lineHeight: "24px", py: 6, ...n }, children: e }), xe = ({ content: e, sx: n }) => /* @__PURE__ */ t(qe, { color: "text.primary", sx: { py: 12, whiteSpace: { sm: "nowrap", xs: "wrap" }, ...n }, children: e }), ne = ({
|
18866
18866
|
items: e,
|
18867
18867
|
listType: n = "ul",
|
18868
18868
|
subItemPlacement: i,
|
@@ -18940,7 +18940,7 @@ const oC = ({
|
|
18940
18940
|
imageLargeBreakPoint: 5
|
18941
18941
|
}
|
18942
18942
|
),
|
18943
|
-
/* @__PURE__ */ t(
|
18943
|
+
/* @__PURE__ */ t(xe, { content: e.accounts_overview.edit_account_title, sx: { pt: 48 } }),
|
18944
18944
|
/* @__PURE__ */ t(
|
18945
18945
|
Bt,
|
18946
18946
|
{
|
@@ -18975,7 +18975,7 @@ const oC = ({
|
|
18975
18975
|
imageLargeBreakPoint: 3
|
18976
18976
|
}
|
18977
18977
|
),
|
18978
|
-
/* @__PURE__ */ t(
|
18978
|
+
/* @__PURE__ */ t(xe, { content: e.accounts_overview.add_account_title, sx: { pt: 48 } }),
|
18979
18979
|
/* @__PURE__ */ t(
|
18980
18980
|
ln,
|
18981
18981
|
{
|
@@ -19015,7 +19015,7 @@ const oC = ({
|
|
19015
19015
|
)
|
19016
19016
|
}
|
19017
19017
|
),
|
19018
|
-
/* @__PURE__ */ t(
|
19018
|
+
/* @__PURE__ */ t(xe, { content: e.accounts_overview.hide_account_title }),
|
19019
19019
|
/* @__PURE__ */ t(
|
19020
19020
|
ne,
|
19021
19021
|
{
|
@@ -19032,7 +19032,7 @@ const oC = ({
|
|
19032
19032
|
listType: "ol"
|
19033
19033
|
}
|
19034
19034
|
),
|
19035
|
-
/* @__PURE__ */ t(
|
19035
|
+
/* @__PURE__ */ t(xe, { content: e.accounts_overview.unhide_account_title }),
|
19036
19036
|
/* @__PURE__ */ t(
|
19037
19037
|
ne,
|
19038
19038
|
{
|
@@ -19128,8 +19128,8 @@ const oC = ({
|
|
19128
19128
|
at,
|
19129
19129
|
{
|
19130
19130
|
content: /* @__PURE__ */ d(g.Fragment, { children: [
|
19131
|
-
/* @__PURE__ */ t(
|
19132
|
-
/* @__PURE__ */ t(
|
19131
|
+
/* @__PURE__ */ t(xe, { content: e.seeing_duplicate_accounts.warning_title }),
|
19132
|
+
/* @__PURE__ */ t(xe, { content: e.seeing_duplicate_accounts.instructions_title }),
|
19133
19133
|
/* @__PURE__ */ t(
|
19134
19134
|
ne,
|
19135
19135
|
{
|
@@ -19183,7 +19183,7 @@ const oC = ({
|
|
19183
19183
|
image: Oe.BUDGETS_WIDGET
|
19184
19184
|
}
|
19185
19185
|
),
|
19186
|
-
/* @__PURE__ */ t(
|
19186
|
+
/* @__PURE__ */ t(xe, { content: i.adjusting_income_title, sx: { pt: 48 } }),
|
19187
19187
|
/* @__PURE__ */ t(
|
19188
19188
|
Bt,
|
19189
19189
|
{
|
@@ -19210,7 +19210,7 @@ const oC = ({
|
|
19210
19210
|
image: Oe.BUDGETS_EDIT_INCOME
|
19211
19211
|
}
|
19212
19212
|
),
|
19213
|
-
/* @__PURE__ */ t(
|
19213
|
+
/* @__PURE__ */ t(xe, { content: i.create_budget_title, sx: { pt: 48 } }),
|
19214
19214
|
/* @__PURE__ */ t(
|
19215
19215
|
on,
|
19216
19216
|
{
|
@@ -19288,7 +19288,7 @@ const oC = ({
|
|
19288
19288
|
}
|
19289
19289
|
),
|
19290
19290
|
/* @__PURE__ */ t(
|
19291
|
-
|
19291
|
+
xe,
|
19292
19292
|
{
|
19293
19293
|
content: e.cashflow_overview.manage_expenses_section_title,
|
19294
19294
|
sx: { pt: 48 }
|
@@ -19528,19 +19528,19 @@ const oC = ({
|
|
19528
19528
|
};
|
19529
19529
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
19530
19530
|
i.overviewSection,
|
19531
|
-
/* @__PURE__ */ t(
|
19531
|
+
/* @__PURE__ */ t(xe, { content: n.snowball_method_title, sx: { pt: 48 } }),
|
19532
19532
|
i.snowballMethod,
|
19533
|
-
/* @__PURE__ */ t(
|
19533
|
+
/* @__PURE__ */ t(xe, { content: n.debt_prioritization, sx: { pt: 48 } }),
|
19534
19534
|
i.debtPrioritization,
|
19535
|
-
/* @__PURE__ */ t(
|
19535
|
+
/* @__PURE__ */ t(xe, { content: n.debt_chart, sx: { pt: 48 } }),
|
19536
19536
|
i.debtChart,
|
19537
|
-
/* @__PURE__ */ t(
|
19537
|
+
/* @__PURE__ */ t(xe, { content: n.debt_list, sx: { pt: 48 } }),
|
19538
19538
|
i.debtList,
|
19539
|
-
/* @__PURE__ */ t(
|
19539
|
+
/* @__PURE__ */ t(xe, { content: n.debt_details, sx: { pt: 48 } }),
|
19540
19540
|
i.debtDetails,
|
19541
|
-
/* @__PURE__ */ t(
|
19541
|
+
/* @__PURE__ */ t(xe, { content: n.hiding_accounts, sx: { pt: 48 } }),
|
19542
19542
|
i.hidingAccounts,
|
19543
|
-
/* @__PURE__ */ t(
|
19543
|
+
/* @__PURE__ */ t(xe, { content: n.extra_payments, sx: { pt: 48 } }),
|
19544
19544
|
i.extraPayments
|
19545
19545
|
] });
|
19546
19546
|
}, IC = ({ topicKey: e, copy: n }) => {
|
@@ -19703,7 +19703,7 @@ const oC = ({
|
|
19703
19703
|
at,
|
19704
19704
|
{
|
19705
19705
|
content: /* @__PURE__ */ d(g.Fragment, { children: [
|
19706
|
-
/* @__PURE__ */ t(
|
19706
|
+
/* @__PURE__ */ t(xe, { content: n.setting_goals_section_title }),
|
19707
19707
|
/* @__PURE__ */ t(U, { content: `${n.setting_goals_title_text}:` }),
|
19708
19708
|
/* @__PURE__ */ t(
|
19709
19709
|
ne,
|
@@ -19728,7 +19728,7 @@ const oC = ({
|
|
19728
19728
|
hasDivider: !0
|
19729
19729
|
}
|
19730
19730
|
),
|
19731
|
-
/* @__PURE__ */ t(
|
19731
|
+
/* @__PURE__ */ t(xe, { content: n.create_goal_section_title, sx: { pt: 48 } }),
|
19732
19732
|
/* @__PURE__ */ t(
|
19733
19733
|
ln,
|
19734
19734
|
{
|
@@ -19762,7 +19762,7 @@ const oC = ({
|
|
19762
19762
|
imageLargeBreakPoint: 10
|
19763
19763
|
}
|
19764
19764
|
),
|
19765
|
-
/* @__PURE__ */ t(
|
19765
|
+
/* @__PURE__ */ t(xe, { content: n.savings_goal_section_title, sx: { pt: 48 } }),
|
19766
19766
|
/* @__PURE__ */ t(
|
19767
19767
|
Bt,
|
19768
19768
|
{
|
@@ -19786,7 +19786,7 @@ const oC = ({
|
|
19786
19786
|
imageLargeBreakPoint: 3
|
19787
19787
|
}
|
19788
19788
|
),
|
19789
|
-
/* @__PURE__ */ t(
|
19789
|
+
/* @__PURE__ */ t(xe, { content: n.debt_payoff_goal_section_title, sx: { pt: 48 } }),
|
19790
19790
|
/* @__PURE__ */ t(
|
19791
19791
|
Bt,
|
19792
19792
|
{
|
@@ -19812,7 +19812,7 @@ const oC = ({
|
|
19812
19812
|
imageLargeBreakPoint: 3
|
19813
19813
|
}
|
19814
19814
|
),
|
19815
|
-
/* @__PURE__ */ t(
|
19815
|
+
/* @__PURE__ */ t(xe, { content: n.retirement_goal_section_title, sx: { pt: 48 } }),
|
19816
19816
|
/* @__PURE__ */ t(
|
19817
19817
|
Bt,
|
19818
19818
|
{
|
@@ -19840,7 +19840,7 @@ const oC = ({
|
|
19840
19840
|
}
|
19841
19841
|
),
|
19842
19842
|
/* @__PURE__ */ t(
|
19843
|
-
|
19843
|
+
xe,
|
19844
19844
|
{
|
19845
19845
|
content: n.adjusting_contribution_priorities_section_title,
|
19846
19846
|
sx: { pt: 48 }
|
@@ -19982,7 +19982,7 @@ const oC = ({
|
|
19982
19982
|
}
|
19983
19983
|
),
|
19984
19984
|
/* @__PURE__ */ t(
|
19985
|
-
|
19985
|
+
xe,
|
19986
19986
|
{
|
19987
19987
|
content: n.preventing_app_crashes_section_title,
|
19988
19988
|
sx: { pt: 48 }
|
@@ -20041,7 +20041,7 @@ const oC = ({
|
|
20041
20041
|
{
|
20042
20042
|
content: /* @__PURE__ */ d(g.Fragment, { children: [
|
20043
20043
|
/* @__PURE__ */ t(
|
20044
|
-
|
20044
|
+
xe,
|
20045
20045
|
{
|
20046
20046
|
content: i.net_worth_history_section_title,
|
20047
20047
|
sx: { pt: 48 }
|
@@ -20060,7 +20060,7 @@ const oC = ({
|
|
20060
20060
|
] })
|
20061
20061
|
}
|
20062
20062
|
),
|
20063
|
-
/* @__PURE__ */ t(
|
20063
|
+
/* @__PURE__ */ t(xe, { content: i.gains_losses_section_title, sx: { mt: 36 } }),
|
20064
20064
|
/* @__PURE__ */ t(
|
20065
20065
|
Bt,
|
20066
20066
|
{
|
@@ -20096,7 +20096,7 @@ const oC = ({
|
|
20096
20096
|
}
|
20097
20097
|
),
|
20098
20098
|
/* @__PURE__ */ t(
|
20099
|
-
|
20099
|
+
xe,
|
20100
20100
|
{
|
20101
20101
|
content: i.assets_liabilities_section_title,
|
20102
20102
|
sx: { mt: 36 }
|
@@ -20165,7 +20165,7 @@ const oC = ({
|
|
20165
20165
|
}
|
20166
20166
|
),
|
20167
20167
|
/* @__PURE__ */ t(
|
20168
|
-
|
20168
|
+
xe,
|
20169
20169
|
{
|
20170
20170
|
content: e.notifications_overview.managing_notifications_section_title,
|
20171
20171
|
sx: { pt: 48 }
|
@@ -20202,7 +20202,7 @@ const oC = ({
|
|
20202
20202
|
at,
|
20203
20203
|
{
|
20204
20204
|
content: /* @__PURE__ */ d(g.Fragment, { children: [
|
20205
|
-
/* @__PURE__ */ t(
|
20205
|
+
/* @__PURE__ */ t(xe, { content: e.notifications_overview.notification_work_section_title }),
|
20206
20206
|
/* @__PURE__ */ t(
|
20207
20207
|
ne,
|
20208
20208
|
{
|
@@ -20234,7 +20234,7 @@ const oC = ({
|
|
20234
20234
|
at,
|
20235
20235
|
{
|
20236
20236
|
content: /* @__PURE__ */ d(g.Fragment, { children: [
|
20237
|
-
/* @__PURE__ */ t(
|
20237
|
+
/* @__PURE__ */ t(xe, { content: e.notifications_overview.verify_email_section_title }),
|
20238
20238
|
/* @__PURE__ */ t(
|
20239
20239
|
ne,
|
20240
20240
|
{
|
@@ -20338,11 +20338,11 @@ const oC = ({
|
|
20338
20338
|
};
|
20339
20339
|
return /* @__PURE__ */ d(g.Fragment, { children: [
|
20340
20340
|
i.overviewSsction,
|
20341
|
-
/* @__PURE__ */ t(
|
20341
|
+
/* @__PURE__ */ t(xe, { content: n.calendar_title, sx: { pt: 48 } }),
|
20342
20342
|
i.calendarSection,
|
20343
|
-
/* @__PURE__ */ t(
|
20343
|
+
/* @__PURE__ */ t(xe, { content: n.edit_recurring_transaction_title, sx: { pt: 48 } }),
|
20344
20344
|
i.editSsction,
|
20345
|
-
/* @__PURE__ */ t(
|
20345
|
+
/* @__PURE__ */ t(xe, { content: n.payment_frequency_title, sx: { pt: 48 } }),
|
20346
20346
|
i.paymentFrequencySection
|
20347
20347
|
] });
|
20348
20348
|
}, LC = ({ copy: e, topicKey: n }) => {
|
@@ -20379,7 +20379,7 @@ const oC = ({
|
|
20379
20379
|
at,
|
20380
20380
|
{
|
20381
20381
|
content: /* @__PURE__ */ d(g.Fragment, { children: [
|
20382
|
-
/* @__PURE__ */ t(
|
20382
|
+
/* @__PURE__ */ t(xe, { content: i.date_range_section_title }),
|
20383
20383
|
/* @__PURE__ */ t(U, { content: i.date_range_section }),
|
20384
20384
|
/* @__PURE__ */ t(
|
20385
20385
|
ne,
|
@@ -20481,7 +20481,7 @@ const oC = ({
|
|
20481
20481
|
}
|
20482
20482
|
),
|
20483
20483
|
/* @__PURE__ */ t(
|
20484
|
-
|
20484
|
+
xe,
|
20485
20485
|
{
|
20486
20486
|
content: e.transactions_widget_overview.edit_transactions_title,
|
20487
20487
|
sx: { pt: 48 }
|
@@ -20533,7 +20533,7 @@ const oC = ({
|
|
20533
20533
|
}
|
20534
20534
|
),
|
20535
20535
|
/* @__PURE__ */ t(
|
20536
|
-
|
20536
|
+
xe,
|
20537
20537
|
{
|
20538
20538
|
content: e.transactions_widget_overview.categorizing_transactions_title,
|
20539
20539
|
sx: { pt: 48 }
|
@@ -20576,7 +20576,7 @@ const oC = ({
|
|
20576
20576
|
}
|
20577
20577
|
),
|
20578
20578
|
/* @__PURE__ */ t(
|
20579
|
-
|
20579
|
+
xe,
|
20580
20580
|
{
|
20581
20581
|
content: e.transactions_widget_overview.transaction_rules_title,
|
20582
20582
|
sx: { pt: 48 }
|
@@ -20665,7 +20665,7 @@ const oC = ({
|
|
20665
20665
|
at,
|
20666
20666
|
{
|
20667
20667
|
content: /* @__PURE__ */ d(g.Fragment, { children: [
|
20668
|
-
/* @__PURE__ */ t(
|
20668
|
+
/* @__PURE__ */ t(xe, { content: e.transactions_widget_overview.split_transactions_title }),
|
20669
20669
|
/* @__PURE__ */ t(U, { content: e.transactions_widget_overview.split_transactions_description }),
|
20670
20670
|
/* @__PURE__ */ t(
|
20671
20671
|
U,
|
@@ -20858,7 +20858,7 @@ const oC = ({
|
|
20858
20858
|
at,
|
20859
20859
|
{
|
20860
20860
|
content: /* @__PURE__ */ d(g.Fragment, { children: [
|
20861
|
-
/* @__PURE__ */ t(
|
20861
|
+
/* @__PURE__ */ t(xe, { content: e.trends_widget_overview.exploring_trends_title }),
|
20862
20862
|
/* @__PURE__ */ t(
|
20863
20863
|
ne,
|
20864
20864
|
{
|
@@ -20878,7 +20878,7 @@ const oC = ({
|
|
20878
20878
|
at,
|
20879
20879
|
{
|
20880
20880
|
content: /* @__PURE__ */ d(g.Fragment, { children: [
|
20881
|
-
/* @__PURE__ */ t(
|
20881
|
+
/* @__PURE__ */ t(xe, { content: e.trends_widget_overview.list_view_title }),
|
20882
20882
|
/* @__PURE__ */ t(U, { content: e.trends_widget_overview.list_view_description }),
|
20883
20883
|
/* @__PURE__ */ t(
|
20884
20884
|
ne,
|
@@ -20903,7 +20903,7 @@ const oC = ({
|
|
20903
20903
|
at,
|
20904
20904
|
{
|
20905
20905
|
content: /* @__PURE__ */ d(g.Fragment, { children: [
|
20906
|
-
/* @__PURE__ */ t(
|
20906
|
+
/* @__PURE__ */ t(xe, { content: i.insights_work_section_title }),
|
20907
20907
|
/* @__PURE__ */ t(U, { content: i.insights_work_description }),
|
20908
20908
|
/* @__PURE__ */ t(
|
20909
20909
|
ne,
|
@@ -20934,7 +20934,7 @@ const oC = ({
|
|
20934
20934
|
sx: { pt: 8 }
|
20935
20935
|
}
|
20936
20936
|
),
|
20937
|
-
/* @__PURE__ */ t(
|
20937
|
+
/* @__PURE__ */ t(xe, { content: i.dashboard_insights_section_title, sx: { mt: 48 } }),
|
20938
20938
|
/* @__PURE__ */ t(
|
20939
20939
|
on,
|
20940
20940
|
{
|
@@ -20956,7 +20956,7 @@ const oC = ({
|
|
20956
20956
|
image: Oe.INSIGHTS_CAROUSEL
|
20957
20957
|
}
|
20958
20958
|
),
|
20959
|
-
/* @__PURE__ */ t(
|
20959
|
+
/* @__PURE__ */ t(xe, { content: i.full_feed_section_title, sx: { mt: 48 } }),
|
20960
20960
|
/* @__PURE__ */ t(
|
20961
20961
|
Bt,
|
20962
20962
|
{
|
@@ -20997,7 +20997,7 @@ const oC = ({
|
|
20997
20997
|
imageLargeBreakPoint: 3
|
20998
20998
|
}
|
20999
20999
|
),
|
21000
|
-
/* @__PURE__ */ t(
|
21000
|
+
/* @__PURE__ */ t(xe, { content: i.hide_insights_section_title, sx: { mt: 48 } }),
|
21001
21001
|
/* @__PURE__ */ t(
|
21002
21002
|
at,
|
21003
21003
|
{
|
@@ -21336,7 +21336,7 @@ const oC = ({
|
|
21336
21336
|
secondaryTypographyProps: { variant: "XSmall" }
|
21337
21337
|
}
|
21338
21338
|
),
|
21339
|
-
/* @__PURE__ */ t(gt, { children: /* @__PURE__ */ t(
|
21339
|
+
/* @__PURE__ */ t(gt, { children: /* @__PURE__ */ t(je, {}) })
|
21340
21340
|
] }) }), bl = ({ list: e, onClick: n, sx: i }) => /* @__PURE__ */ t(O, { sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ t(ae, { sx: { "& .MuiDivider-root:last-child": { ml: 0 } }, children: e.map(({ name: a, guid: o, subtitle: r, type: s }, c) => /* @__PURE__ */ d(g.Fragment, { children: [
|
21341
21341
|
/* @__PURE__ */ t(
|
21342
21342
|
UC,
|
@@ -22004,7 +22004,7 @@ const e0 = (e) => e.reduce((i, a) => {
|
|
22004
22004
|
] });
|
22005
22005
|
}, o0 = (e) => {
|
22006
22006
|
const n = e.row[e.field];
|
22007
|
-
return /* @__PURE__ */ t(b, { alignItems: "flex-end", tabIndex: e.tabIndex, children: /* @__PURE__ */ t(
|
22007
|
+
return /* @__PURE__ */ t(b, { alignItems: "flex-end", tabIndex: e.tabIndex, children: /* @__PURE__ */ t(Ze, { amount: n, variant: "Small" }) });
|
22008
22008
|
}, r0 = ({ categoryGuid: e, topLevelCategoryGuid: n }) => {
|
22009
22009
|
const { categories: i } = A(), a = i.default_categories[e]?.replace(/&/g, "&") ?? ba[e];
|
22010
22010
|
return /* @__PURE__ */ d(b, { alignItems: "center", direction: "row", justifyContent: "center", children: [
|
@@ -22274,7 +22274,7 @@ const e0 = (e) => e.reduce((i, a) => {
|
|
22274
22274
|
}
|
22275
22275
|
);
|
22276
22276
|
}, k2 = x(u0), h0 = () => {
|
22277
|
-
const e =
|
22277
|
+
const e = Xe(), { monthlyCategoryTotals: n } = Ue(), { trends: i } = A(), a = sp(n);
|
22278
22278
|
return /* @__PURE__ */ t(
|
22279
22279
|
ni,
|
22280
22280
|
{
|
@@ -23957,7 +23957,7 @@ const Ui = g.createContext(null), I0 = ({
|
|
23957
23957
|
shouldApplyNewAnimation: c = !1,
|
23958
23958
|
visibleCardsCount: l = 1
|
23959
23959
|
}) => {
|
23960
|
-
const u =
|
23960
|
+
const u = Xe(), { carouselCopy: _ } = Kn(), h = Math.floor(s) > r || n - l + 1 === 0, m = s < 0 || i - 1 === n, p = u.palette.grey[500], f = e?.primary_300 ?? u.palette.primary.main;
|
23961
23961
|
return /* @__PURE__ */ d(
|
23962
23962
|
b,
|
23963
23963
|
{
|
@@ -24437,7 +24437,7 @@ const Ui = g.createContext(null), I0 = ({
|
|
24437
24437
|
visibleCardsCount: R = 1,
|
24438
24438
|
widthOverrides: M
|
24439
24439
|
}) => {
|
24440
|
-
const k =
|
24440
|
+
const k = Xe(), [G, L] = xt("STANDARD"), [W, Y] = xt(!1), J = cu([u], Tn), he = lu([_], Tn);
|
24441
24441
|
g.useEffect(() => {
|
24442
24442
|
Tn.isInitialized || Tn.initialize(r, I, c);
|
24443
24443
|
}, [r, I, c, Tn.isInitialized]), g.useEffect(() => {
|
@@ -24744,7 +24744,7 @@ const Ui = g.createContext(null), I0 = ({
|
|
24744
24744
|
selectedDateRange: i,
|
24745
24745
|
totals: a
|
24746
24746
|
}) => {
|
24747
|
-
const o =
|
24747
|
+
const o = Xe(), { trends: r } = A(), { isSmallMobile: s, isMobile: c, isSmallTablet: l, isTablet: u } = Ce(), _ = [o.palette.chart?.chart1, o.palette.chart?.chart2], h = tb(a, i), m = nb(h, r), [p, f] = g.useState(0), S = 458, y = 195, E = 56, I = c || s ? y : l || u ? S : p;
|
24748
24748
|
return g.useEffect(() => {
|
24749
24749
|
const w = Math.max(e - E, n);
|
24750
24750
|
f(w);
|
@@ -24925,8 +24925,8 @@ class rb {
|
|
24925
24925
|
visibleListLength = 5;
|
24926
24926
|
constructor(n) {
|
24927
24927
|
this.globalStore = n, this.selectedDateRange = {
|
24928
|
-
start: mo(
|
24929
|
-
end:
|
24928
|
+
start: mo(Ye(Ht(/* @__PURE__ */ new Date(), 6)), 1),
|
24929
|
+
end: Ye(/* @__PURE__ */ new Date())
|
24930
24930
|
}, Fe(this);
|
24931
24931
|
}
|
24932
24932
|
setSelectedCategoryData = (n) => {
|
@@ -25036,8 +25036,8 @@ class lb {
|
|
25036
25036
|
selectedAccountGuids = this.selectedAccounts.map((n) => n.guid);
|
25037
25037
|
displayedDate = /* @__PURE__ */ new Date();
|
25038
25038
|
displayedDateRange = {
|
25039
|
-
start:
|
25040
|
-
end:
|
25039
|
+
start: Ve(this.displayedDate),
|
25040
|
+
end: Ye(this.displayedDate)
|
25041
25041
|
};
|
25042
25042
|
constructor(n) {
|
25043
25043
|
Fe(this), this.globalStore = n;
|
@@ -25450,7 +25450,7 @@ const Va = ({
|
|
25450
25450
|
};
|
25451
25451
|
default: {
|
25452
25452
|
const a = () => {
|
25453
|
-
const o = e.successfully_aggregated_at ?
|
25453
|
+
const o = e.successfully_aggregated_at ? Ke(e.successfully_aggregated_at) : void 0, r = o && de(o, ie.TIME_STAMP_HOUR_MINUTE);
|
25454
25454
|
if (r)
|
25455
25455
|
return So(o) ? T(n.last_updated_at, n.today, r) : D_(o) ? T(n.last_updated_at, n.yesterday, r) : T(
|
25456
25456
|
n.last_updated_at,
|
@@ -27309,7 +27309,7 @@ const Jb = ({
|
|
27309
27309
|
return g.useEffect(() => {
|
27310
27310
|
s(n);
|
27311
27311
|
}, [n]), g.useEffect(() => {
|
27312
|
-
_ && !o && m(h,
|
27312
|
+
_ && !o && m(h, Ve(/* @__PURE__ */ new Date()), Ye(/* @__PURE__ */ new Date())).then(
|
27313
27313
|
() => {
|
27314
27314
|
r().finally();
|
27315
27315
|
}
|
@@ -27803,9 +27803,9 @@ const Jb = ({
|
|
27803
27803
|
setTheme: I,
|
27804
27804
|
detailedBudgets: w
|
27805
27805
|
} = ut(), { loadRepeatingTransactions: v, setDateRange: N } = rt(), { reloadCategoryTotals: R } = Ue(), { isSmallTablet: M, isMobile: k, isSmallMobile: G } = Ce(), L = M || k || G, [W, Y] = g.useState(!1);
|
27806
|
-
g.useEffect(() => {
|
27807
|
-
|
27808
|
-
}, []), g.useEffect(() => {
|
27806
|
+
g.useEffect(() => (I(i), h(o), y({ start: Ve(Ae()), end: Ye(Ae()) }), a(F.BUDGETS_VIEW), () => {
|
27807
|
+
y({ start: Ve(Ae()), end: Ye(Ae()) });
|
27808
|
+
}), []), g.useEffect(() => {
|
27809
27809
|
h(o);
|
27810
27810
|
}, [o]), g.useEffect(() => {
|
27811
27811
|
l && (_(p.start, p.end), R(u, p.start, p.end).finally(), N(p), f || (v().finally(), S().finally()));
|
@@ -27818,7 +27818,7 @@ const Jb = ({
|
|
27818
27818
|
Y(!0), a(F.BUDGETS_CLICK_ADD);
|
27819
27819
|
}, Le = () => {
|
27820
27820
|
Y(!1);
|
27821
|
-
}, Re = sn(p.end,
|
27821
|
+
}, Re = sn(p.end, Ve(/* @__PURE__ */ new Date()));
|
27822
27822
|
return !c || !l || !f ? /* @__PURE__ */ t(ce, {}) : /* @__PURE__ */ d(
|
27823
27823
|
Ct,
|
27824
27824
|
{
|
@@ -28531,7 +28531,7 @@ const Sy = ({ widgets: e, isLoading: n }) => {
|
|
28531
28531
|
), My = () => {
|
28532
28532
|
const {
|
28533
28533
|
investments: { analysis: e }
|
28534
|
-
} = A(), { analysisChartData: n, analysisDetails: i, analysisType: a, setAnalysisType: o } = Xn(), r = hn("(min-width:320px) and (max-width:375px)"), { isMobile: s } = Ce(), l =
|
28534
|
+
} = A(), { analysisChartData: n, analysisDetails: i, analysisType: a, setAnalysisType: o } = Xn(), r = hn("(min-width:320px) and (max-width:375px)"), { isMobile: s } = Ce(), l = Xe().palette.mode === "dark", { cellDimension: u, columns: _, rows: h, textVariant: m } = g.useMemo(() => {
|
28535
28535
|
const p = a === Hn.Stocks, f = Object.values(p ? e.stock_column_labels : e.bond_column_labels), S = Object.values(p ? e.stock_row_labels : e.bond_row_labels);
|
28536
28536
|
return { cellDimension: s ? 72 : 100, columns: f, rows: S, textVariant: s ? "XSmall" : "Body" };
|
28537
28537
|
}, [e, s, a]);
|
@@ -29834,8 +29834,8 @@ const Sy = ({ widgets: e, isLoading: n }) => {
|
|
29834
29834
|
g.useEffect(() => {
|
29835
29835
|
c(
|
29836
29836
|
a,
|
29837
|
-
|
29838
|
-
|
29837
|
+
Ve(/* @__PURE__ */ new Date()),
|
29838
|
+
Ye(/* @__PURE__ */ new Date())
|
29839
29839
|
).finally();
|
29840
29840
|
}, [a]);
|
29841
29841
|
const [u, _] = g.useState(""), [h, m] = g.useState(0), p = g.useMemo(
|
@@ -30180,7 +30180,7 @@ const Sy = ({ widgets: e, isLoading: n }) => {
|
|
30180
30180
|
g.useEffect(() => {
|
30181
30181
|
c(i);
|
30182
30182
|
}, [i]), g.useEffect(() => {
|
30183
|
-
_ && Array.isArray(_) && _.length === 2 ? s(_[0], _[1]) : s(
|
30183
|
+
_ && Array.isArray(_) && _.length === 2 ? s(_[0], _[1]) : s(Ve(Ae()), Ye(Ae())), m(!0), l(F.SPENDING_VIEW);
|
30184
30184
|
}, []);
|
30185
30185
|
const p = (f) => {
|
30186
30186
|
s(f[0], f[1]);
|
@@ -30254,7 +30254,7 @@ export {
|
|
30254
30254
|
E2 as CreditScoreGraph,
|
30255
30255
|
oa as CurrencyCodes,
|
30256
30256
|
en as CurrencyInput,
|
30257
|
-
|
30257
|
+
Ze as CurrencyText,
|
30258
30258
|
ie as DATE_FORMATS_INTL,
|
30259
30259
|
gc as DEFAULT_DONUT_SIZE,
|
30260
30260
|
mc as DEFAULT_STROKE_WIDTH,
|