@mx-cartographer/experiences 6.4.1-alpha.mega1 → 6.4.2-alpha.san1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/index.es.js +222 -214
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1784,7 +1784,7 @@ const Iu = (e, n) => {
|
|
|
1784
1784
|
selectedIndex: d,
|
|
1785
1785
|
valueFormatter: _ = (u) => `${u}`
|
|
1786
1786
|
}) => {
|
|
1787
|
-
const u = Et(), h = ku(u), m = a.reduce(Lu, []), C = e !== void 0 ? e : m.reduce(Ru, 0) / m.length, f = Math.max(...m), y = Math.min(...m), E = m.reduce(Ou, 0), T = f >= 0, x = y < 0, w = Er(T, x, o), v = Er(x, T, o), R = Mu(C, f, y, w || v),
|
|
1787
|
+
const u = Et(), h = ku(u), m = a.reduce(Lu, []), C = e !== void 0 ? e : m.reduce(Ru, 0) / m.length, f = Math.max(...m), y = Math.min(...m), E = m.reduce(Ou, 0), T = f >= 0, x = y < 0, w = Er(T, x, o), v = Er(x, T, o), R = Mu(C, f, y, w || v), O = (D) => d === void 0 || D === d ? i : `${i}80`, B = () => /* @__PURE__ */ t(
|
|
1788
1788
|
br,
|
|
1789
1789
|
{
|
|
1790
1790
|
averageLineHeight: R,
|
|
@@ -1799,23 +1799,23 @@ const Iu = (e, n) => {
|
|
|
1799
1799
|
return /* @__PURE__ */ l("div", { className: `mx-cmn-bar-chart ${h}`, children: [
|
|
1800
1800
|
/* @__PURE__ */ l("div", { className: "mx-cmn-chart-container", children: [
|
|
1801
1801
|
/* @__PURE__ */ t(B, {}),
|
|
1802
|
-
a.map((
|
|
1802
|
+
a.map((D, M) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
1803
1803
|
/* @__PURE__ */ t(
|
|
1804
1804
|
br,
|
|
1805
1805
|
{
|
|
1806
|
-
ariaLabel:
|
|
1806
|
+
ariaLabel: D.ariaLabel,
|
|
1807
1807
|
averageLineHeight: R,
|
|
1808
1808
|
bottomHeight: v,
|
|
1809
|
-
color:
|
|
1809
|
+
color: O(M),
|
|
1810
1810
|
index: M,
|
|
1811
1811
|
onClick: c,
|
|
1812
1812
|
range: E,
|
|
1813
1813
|
selectedIndex: d,
|
|
1814
1814
|
topHeight: w,
|
|
1815
|
-
value:
|
|
1816
|
-
valueLabel: _(
|
|
1815
|
+
value: D.value,
|
|
1816
|
+
valueLabel: _(D.value),
|
|
1817
1817
|
width: n,
|
|
1818
|
-
xAxisLabel:
|
|
1818
|
+
xAxisLabel: D.label
|
|
1819
1819
|
}
|
|
1820
1820
|
),
|
|
1821
1821
|
/* @__PURE__ */ t(B, {})
|
|
@@ -1953,10 +1953,10 @@ const $u = ({
|
|
|
1953
1953
|
const f = g.useMemo(() => {
|
|
1954
1954
|
const w = Hl({ start: Fe(d), end: Xe(d) }), v = [];
|
|
1955
1955
|
for (let R = 0; R < w.length; R++) {
|
|
1956
|
-
const
|
|
1956
|
+
const O = w[R], B = Pl({ start: O, end: Bt(O, 6) }), D = [];
|
|
1957
1957
|
for (let M = 0; M < B.length; M++)
|
|
1958
|
-
|
|
1959
|
-
v.push(
|
|
1958
|
+
D.push(B[M]);
|
|
1959
|
+
v.push(D);
|
|
1960
1960
|
}
|
|
1961
1961
|
return v;
|
|
1962
1962
|
}, [d]), y = (w) => {
|
|
@@ -1986,7 +1986,7 @@ const $u = ({
|
|
|
1986
1986
|
}
|
|
1987
1987
|
),
|
|
1988
1988
|
/* @__PURE__ */ t("div", { className: "mx-cmn-calendar-header-row", children: f[0].map((w, v) => /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-header-cell", children: /* @__PURE__ */ t(p, { bold: !0, variant: "Small", children: Dt(w, "EEEEE") }) }, v)) }),
|
|
1989
|
-
f.map((w, v) => /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-week", children: w.map((R,
|
|
1989
|
+
f.map((w, v) => /* @__PURE__ */ t("div", { className: "mx-cmn-calendar-week", children: w.map((R, O) => /* @__PURE__ */ t(
|
|
1990
1990
|
Pu,
|
|
1991
1991
|
{
|
|
1992
1992
|
beginDate: u,
|
|
@@ -1995,7 +1995,7 @@ const $u = ({
|
|
|
1995
1995
|
isInMonth: Fl(R, d),
|
|
1996
1996
|
onClick: y
|
|
1997
1997
|
},
|
|
1998
|
-
|
|
1998
|
+
O
|
|
1999
1999
|
)) }, `w-${v}`)),
|
|
2000
2000
|
/* @__PURE__ */ t("div", { className: "mx-cmn-calendar-today-container", children: /* @__PURE__ */ t(Q, { onClick: E, size: "small", variant: "text", children: e.today }) })
|
|
2001
2001
|
] }) });
|
|
@@ -2171,9 +2171,9 @@ const $u = ({
|
|
|
2171
2171
|
/* @__PURE__ */ t(p, { bold: !0, sx: { marginRight: 8 }, variant: "Small", children: "– –" }),
|
|
2172
2172
|
/* @__PURE__ */ l(p, { variant: "Small", children: [
|
|
2173
2173
|
a.average,
|
|
2174
|
-
"
|
|
2175
|
-
|
|
2176
|
-
|
|
2174
|
+
" "
|
|
2175
|
+
] }),
|
|
2176
|
+
/* @__PURE__ */ t(p, { bold: !0, variant: "Small", children: P(n, "0,0") })
|
|
2177
2177
|
] })
|
|
2178
2178
|
] });
|
|
2179
2179
|
}, Xu = A(ju), Io = ({
|
|
@@ -2193,23 +2193,31 @@ const $u = ({
|
|
|
2193
2193
|
valueFormatterString: C = "0,0",
|
|
2194
2194
|
width: f
|
|
2195
2195
|
}) => {
|
|
2196
|
-
const y = it(), E = i.flat().map((D) => D.x), T = i.flat().map((D) => D.y), x = Math.round(T.reduce((D,
|
|
2196
|
+
const y = it(), E = i.flat().map((D) => D.x), T = i.flat().map((D) => D.y), x = Math.round(T.reduce((D, M) => M + D, 0) / T.length), w = Math.floor(Math.min(...T) / 100) * 100, v = Math.ceil(Math.max(...T) / 100) * 100, R = i.map((D, M) => ({
|
|
2197
2197
|
type: d ? "bar" : "line",
|
|
2198
2198
|
curve: "linear",
|
|
2199
|
-
color: d ? y.palette.chart?.chart6 : n[
|
|
2200
|
-
data: D.map((
|
|
2199
|
+
color: d ? y.palette.chart?.chart6 : n[M] ?? y.palette.primary.main,
|
|
2200
|
+
data: D.map((W) => W.y),
|
|
2201
2201
|
area: _,
|
|
2202
2202
|
baseline: e,
|
|
2203
2203
|
showMark: !0,
|
|
2204
|
-
label: o[
|
|
2205
|
-
valueFormatter: (
|
|
2206
|
-
}))
|
|
2204
|
+
label: o[M],
|
|
2205
|
+
valueFormatter: (W) => P(W || 0, C)
|
|
2206
|
+
})), B = {
|
|
2207
|
+
...{
|
|
2208
|
+
top: 60,
|
|
2209
|
+
right: 50,
|
|
2210
|
+
bottom: 50,
|
|
2211
|
+
left: 50
|
|
2212
|
+
},
|
|
2213
|
+
...r
|
|
2214
|
+
};
|
|
2207
2215
|
return /* @__PURE__ */ l("div", { style: { position: "relative" }, children: [
|
|
2208
2216
|
/* @__PURE__ */ l(
|
|
2209
2217
|
jl,
|
|
2210
2218
|
{
|
|
2211
2219
|
height: a,
|
|
2212
|
-
margin:
|
|
2220
|
+
margin: B,
|
|
2213
2221
|
series: R,
|
|
2214
2222
|
sx: {
|
|
2215
2223
|
p: 4,
|
|
@@ -2497,11 +2505,11 @@ const $u = ({
|
|
|
2497
2505
|
hoveredAreaData: null,
|
|
2498
2506
|
isAreaHovered: !1,
|
|
2499
2507
|
cursorPos: { x: 0, y: 0 }
|
|
2500
|
-
}), { hoveredSeriesId: y, hoveredAreaData: E, isAreaHovered: T, cursorPos: x } = C, w = T && y && E, v = !w, R = [...o, ...r],
|
|
2508
|
+
}), { hoveredSeriesId: y, hoveredAreaData: E, isAreaHovered: T, cursorPos: x } = C, w = T && y && E, v = !w, R = [...o, ...r], O = R[0]?.dataset.length ?? 0, B = R.flatMap((le) => le.dataset.map((Be) => Be.x)), D = R.flatMap((le) => le.dataset.map((Be) => Be.y)), M = o[0]?.dataset?.map(
|
|
2501
2509
|
(le, Be) => o.reduce((de, qe) => de + qe.dataset[Be]?.y || 0, 0)
|
|
2502
2510
|
) ?? [0], W = Math.max(...M), U = Math.max(
|
|
2503
2511
|
...r.flatMap((le) => le.dataset.map((Be) => Be.y))
|
|
2504
|
-
), oe = Math.floor(Math.min(...
|
|
2512
|
+
), oe = Math.floor(Math.min(...D) / 100) * 100, Oe = Math.ceil(Math.max(W, U) / 100) * 100, ee = o.map((le, Be) => ({
|
|
2505
2513
|
id: `stacked-${Be}`,
|
|
2506
2514
|
guid: le.category_guid,
|
|
2507
2515
|
top_level_guid: le.top_level_category_guid,
|
|
@@ -2645,7 +2653,7 @@ const $u = ({
|
|
|
2645
2653
|
data: B,
|
|
2646
2654
|
scaleType: "time",
|
|
2647
2655
|
valueFormatter: (le) => ie(le, J.MONTH_SHORT_YEAR),
|
|
2648
|
-
tickNumber:
|
|
2656
|
+
tickNumber: O
|
|
2649
2657
|
// How many ticks to show on the x-axis
|
|
2650
2658
|
}
|
|
2651
2659
|
],
|
|
@@ -2893,9 +2901,9 @@ const $u = ({
|
|
|
2893
2901
|
g.useEffect(() => {
|
|
2894
2902
|
f(a);
|
|
2895
2903
|
}, [a]), g.useEffect(() => {
|
|
2896
|
-
(r === "timeframebuttons" || r === "timeframetabs") && e.onRangeChanged(
|
|
2904
|
+
(r === "timeframebuttons" || r === "timeframetabs") && e.onRangeChanged(O());
|
|
2897
2905
|
}, [w]);
|
|
2898
|
-
const
|
|
2906
|
+
const O = () => {
|
|
2899
2907
|
const W = Xe(hn());
|
|
2900
2908
|
return [Xe(qt(W, w)), W];
|
|
2901
2909
|
}, B = (W) => {
|
|
@@ -2909,7 +2917,7 @@ const $u = ({
|
|
|
2909
2917
|
U[0] = W === "previous" ? _t(oe, Ee) : Bt(oe, Ee), U[1] = W === "previous" ? _t(Oe, Ee) : Bt(Oe, Ee);
|
|
2910
2918
|
}
|
|
2911
2919
|
u(U), e.onRangeChanged(U);
|
|
2912
|
-
},
|
|
2920
|
+
}, D = () => {
|
|
2913
2921
|
u(C), x(
|
|
2914
2922
|
h === i.dateRangePickerCopy.dateRangeThisMonth || h === i.dateRangePickerCopy.dateRangeLastMonth
|
|
2915
2923
|
), e.onRangeChanged(C);
|
|
@@ -3060,7 +3068,7 @@ const $u = ({
|
|
|
3060
3068
|
isOpen: y,
|
|
3061
3069
|
onClose: () => E(!1),
|
|
3062
3070
|
onPrimaryAction: () => {
|
|
3063
|
-
|
|
3071
|
+
D(), E(!1);
|
|
3064
3072
|
},
|
|
3065
3073
|
primaryText: i.dateRangeEditApply,
|
|
3066
3074
|
title: i.dateRangeEditTitle,
|
|
@@ -3084,7 +3092,7 @@ const $u = ({
|
|
|
3084
3092
|
copy: { title: i.dateRangeEditTitle },
|
|
3085
3093
|
isOpen: !0,
|
|
3086
3094
|
onClose: () => E(!1),
|
|
3087
|
-
onPrimaryAction: () =>
|
|
3095
|
+
onPrimaryAction: () => D(),
|
|
3088
3096
|
primaryText: i.dateRangeEditApply,
|
|
3089
3097
|
sx: {
|
|
3090
3098
|
"& .MuiDialogContent-root": {
|
|
@@ -3307,10 +3315,10 @@ const Dn = ({
|
|
|
3307
3315
|
sx: h = {},
|
|
3308
3316
|
title: m = ""
|
|
3309
3317
|
}) => {
|
|
3310
|
-
const [C, { height: f, width: y }] = dc(), { onEvent: E } = z(), { isDesktop: T, isLargeDesktop: x, isMobile: w, isTablet: v } = be(), { displayedDateRange: R, isCopyLoaded:
|
|
3318
|
+
const [C, { height: f, width: y }] = dc(), { onEvent: E } = z(), { isDesktop: T, isLargeDesktop: x, isMobile: w, isTablet: v } = be(), { displayedDateRange: R, isCopyLoaded: O, selectedAccountGuids: B, setSelectedAccountGuids: D } = _e(), { common: M } = I(), W = () => {
|
|
3311
3319
|
d && (d(), E(F.WIDGET_BACK_CLICK));
|
|
3312
3320
|
};
|
|
3313
|
-
if (!
|
|
3321
|
+
if (!O)
|
|
3314
3322
|
return /* @__PURE__ */ t(ge, {});
|
|
3315
3323
|
const U = {
|
|
3316
3324
|
accountFilterOptionsCopy: {
|
|
@@ -3381,7 +3389,7 @@ const Dn = ({
|
|
|
3381
3389
|
accounts: e,
|
|
3382
3390
|
copy: U,
|
|
3383
3391
|
onFilterClick: (re) => {
|
|
3384
|
-
|
|
3392
|
+
D(re), _?.();
|
|
3385
3393
|
},
|
|
3386
3394
|
selectedAccountGuids: B,
|
|
3387
3395
|
showAccountNumbers: !1,
|
|
@@ -3542,7 +3550,7 @@ const Tr = "connect_widget", Ar = "connections_widget", l_ = ({
|
|
|
3542
3550
|
}) => {
|
|
3543
3551
|
const [m, C] = g.useState(""), { common: f } = I(), y = o || f.currency_input, E = Et(), T = d_(E), x = /^[0-9]*$/, w = /^(\d)*(\,)?([0-9]{1,2})?$/, v = /^(\d)*(\.)?([0-9]{1,2})?$/;
|
|
3544
3552
|
let R;
|
|
3545
|
-
const
|
|
3553
|
+
const O = g.useRef(bd());
|
|
3546
3554
|
if (e)
|
|
3547
3555
|
switch (bu()) {
|
|
3548
3556
|
case sa.CAD:
|
|
@@ -3557,18 +3565,18 @@ const Tr = "connect_widget", Ar = "connections_widget", l_ = ({
|
|
|
3557
3565
|
g.useEffect(() => {
|
|
3558
3566
|
B(i);
|
|
3559
3567
|
}, [i]);
|
|
3560
|
-
const B = (
|
|
3561
|
-
!a && (
|
|
3568
|
+
const B = (D) => {
|
|
3569
|
+
!a && (D === "" || D === "." || D === ",") ? (C(""), u?.(!1)) : Number(D) < d ? (C(
|
|
3562
3570
|
S(
|
|
3563
3571
|
y.error_amount_must_be_equal_to,
|
|
3564
3572
|
P(d, "0")
|
|
3565
3573
|
)
|
|
3566
|
-
), u?.(!1)) : Number(
|
|
3574
|
+
), u?.(!1)) : Number(D) > _r ? (C(
|
|
3567
3575
|
S(
|
|
3568
3576
|
y.error_amount_must_be_less_than_or_equal_to,
|
|
3569
3577
|
P(_r, e ? "0,0.00" : "0,0", Math.floor)
|
|
3570
3578
|
)
|
|
3571
|
-
), u?.(!1)) :
|
|
3579
|
+
), u?.(!1)) : D.toString().match(R) ? r() ? (C(""), u?.(!0)) : (C(s), u?.(!1)) : (C(y.error_amount_is_invalid), u?.(!1)), _(D.toString());
|
|
3572
3580
|
};
|
|
3573
3581
|
return /* @__PURE__ */ t(
|
|
3574
3582
|
An,
|
|
@@ -3587,8 +3595,8 @@ const Tr = "connect_widget", Ar = "connections_widget", l_ = ({
|
|
|
3587
3595
|
pattern: "[0-9]*"
|
|
3588
3596
|
},
|
|
3589
3597
|
label: c,
|
|
3590
|
-
name: `currency-input-${
|
|
3591
|
-
onChange: (
|
|
3598
|
+
name: `currency-input-${O.current}`,
|
|
3599
|
+
onChange: (D) => B(D.target.value),
|
|
3592
3600
|
value: i,
|
|
3593
3601
|
...h
|
|
3594
3602
|
}
|
|
@@ -4416,16 +4424,16 @@ const li = () => {
|
|
|
4416
4424
|
} = li(), { isDataLoaded: y, nextIncomeActivity: E, upcomingExpenses: T } = at();
|
|
4417
4425
|
g.useEffect(() => {
|
|
4418
4426
|
C(
|
|
4419
|
-
o.filter((
|
|
4427
|
+
o.filter((O) => s.includes(O.guid))
|
|
4420
4428
|
);
|
|
4421
4429
|
}, [o, s]), g.useEffect(() => {
|
|
4422
4430
|
E && m(E), f(T);
|
|
4423
4431
|
}, [E, T]);
|
|
4424
4432
|
const x = g.useMemo(
|
|
4425
|
-
() => o.filter((
|
|
4433
|
+
() => o.filter((O) => s.includes(O.guid)).reduce((O, B) => O + (B?.balance || 0), 0),
|
|
4426
4434
|
[s, T]
|
|
4427
4435
|
), w = g.useMemo(
|
|
4428
|
-
() => u.filter((
|
|
4436
|
+
() => u.filter((O) => s.includes(O.accountGuid || "")).reduce((O, B) => O + B.amount, 0),
|
|
4429
4437
|
[s, u]
|
|
4430
4438
|
), v = g.useMemo(
|
|
4431
4439
|
() => x - w,
|
|
@@ -5443,12 +5451,12 @@ const Y_ = ({ transaction: e, onClick: n }) => {
|
|
|
5443
5451
|
(_ || r) && i,
|
|
5444
5452
|
!_ && !r && T.getVirtualItems().length === 0 && d,
|
|
5445
5453
|
!_ && !r && T.getVirtualItems().length > 0 && T.getVirtualItems().map((x) => {
|
|
5446
|
-
const w = h[x.index], v = Dr(x.index, h), R = q_(x.index, h),
|
|
5454
|
+
const w = h[x.index], v = Dr(x.index, h), R = q_(x.index, h), O = Rr + (v ? Or : 0);
|
|
5447
5455
|
return /* @__PURE__ */ l(
|
|
5448
5456
|
L,
|
|
5449
5457
|
{
|
|
5450
5458
|
sx: {
|
|
5451
|
-
height:
|
|
5459
|
+
height: O,
|
|
5452
5460
|
position: "absolute",
|
|
5453
5461
|
transform: `translateY(${x.start}px)`,
|
|
5454
5462
|
width: "100%"
|
|
@@ -6752,7 +6760,7 @@ const Cc = ({ transaction: e }) => {
|
|
|
6752
6760
|
}), h(!0);
|
|
6753
6761
|
}, R = async () => {
|
|
6754
6762
|
n(j.ON_TRANSACTION_SPLIT_SAVE_CLICK), await i({ ...e, has_been_split: !0 }, f), h(!1);
|
|
6755
|
-
},
|
|
6763
|
+
}, O = async () => {
|
|
6756
6764
|
n(j.ON_TRANSACTION_SPLIT_CANCEL_CLICK), y([{ ...d }, { ..._ }]), h(!1);
|
|
6757
6765
|
}, B = async () => {
|
|
6758
6766
|
n(F.TRANSACTION_DETAILS_CLICK_UNSPLIT, {
|
|
@@ -6760,7 +6768,7 @@ const Cc = ({ transaction: e }) => {
|
|
|
6760
6768
|
});
|
|
6761
6769
|
const M = e.parent_guid ?? e.guid;
|
|
6762
6770
|
await a(M);
|
|
6763
|
-
},
|
|
6771
|
+
}, D = g.useMemo(() => {
|
|
6764
6772
|
const M = f.some((U) => !U.category_guid), W = f.some((U) => U.amount <= 0);
|
|
6765
6773
|
return M || W;
|
|
6766
6774
|
}, [f]);
|
|
@@ -6781,8 +6789,8 @@ const Cc = ({ transaction: e }) => {
|
|
|
6781
6789
|
{
|
|
6782
6790
|
ariaLabelClose: o.close_aria,
|
|
6783
6791
|
isOpen: u,
|
|
6784
|
-
isPrimaryDisabled:
|
|
6785
|
-
onClose:
|
|
6792
|
+
isPrimaryDisabled: D,
|
|
6793
|
+
onClose: O,
|
|
6786
6794
|
onPrimaryAction: R,
|
|
6787
6795
|
primaryText: o.save_button,
|
|
6788
6796
|
secondaryText: o.cancel_button,
|
|
@@ -7391,7 +7399,7 @@ const Cc = ({ transaction: e }) => {
|
|
|
7391
7399
|
tags: x,
|
|
7392
7400
|
transactions: w,
|
|
7393
7401
|
updateTransaction: v
|
|
7394
|
-
} = Ae(), { common: R, transactions:
|
|
7402
|
+
} = Ae(), { common: R, transactions: O } = I(), { userProfile: B } = an(), { onEvent: D } = z(), {
|
|
7395
7403
|
displayedDateRange: M,
|
|
7396
7404
|
isCopyLoaded: W,
|
|
7397
7405
|
isInitialized: U,
|
|
@@ -7408,7 +7416,7 @@ const Cc = ({ transaction: e }) => {
|
|
|
7408
7416
|
dateRange: { start: lt, end: Qo },
|
|
7409
7417
|
accounts: Oe.map(($a) => $a.guid),
|
|
7410
7418
|
custom: ($a) => !$a.accountIsClosed
|
|
7411
|
-
}), le(!0),
|
|
7419
|
+
}), le(!0), D(F.TRANSACTIONS_VIEW);
|
|
7412
7420
|
}, []), g.useEffect(() => {
|
|
7413
7421
|
Ye && (T({
|
|
7414
7422
|
...y,
|
|
@@ -7427,9 +7435,9 @@ const Cc = ({ transaction: e }) => {
|
|
|
7427
7435
|
h(lt), T({
|
|
7428
7436
|
...y,
|
|
7429
7437
|
searchTerm: lt
|
|
7430
|
-
}),
|
|
7438
|
+
}), D(F.TRANSACTIONS_CLICK_SEARCH, { search_term: lt });
|
|
7431
7439
|
}, ui = () => {
|
|
7432
|
-
gc(w, x),
|
|
7440
|
+
gc(w, x), D(F.TRANSACTIONS_CLICK_EXPORT);
|
|
7433
7441
|
}, Ha = () => {
|
|
7434
7442
|
Be.length > 0 ? (C({
|
|
7435
7443
|
...hc,
|
|
@@ -7438,7 +7446,7 @@ const Cc = ({ transaction: e }) => {
|
|
|
7438
7446
|
}), q(
|
|
7439
7447
|
"addTransaction"
|
|
7440
7448
|
/* AddTransaction */
|
|
7441
|
-
),
|
|
7449
|
+
), D(F.TRANSACTIONS_CLICK_ADD)) : (Ze(!0), D(F.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
|
|
7442
7450
|
}, Fa = async () => {
|
|
7443
7451
|
qe && await f(d), q("");
|
|
7444
7452
|
}, Sl = () => {
|
|
@@ -7455,28 +7463,28 @@ const Cc = ({ transaction: e }) => {
|
|
|
7455
7463
|
actions: [
|
|
7456
7464
|
{
|
|
7457
7465
|
iconName: "open_in_new",
|
|
7458
|
-
label:
|
|
7466
|
+
label: O.export_csv_btn,
|
|
7459
7467
|
onClick: ui
|
|
7460
7468
|
},
|
|
7461
7469
|
{
|
|
7462
7470
|
iconName: "add",
|
|
7463
|
-
label:
|
|
7471
|
+
label: O.add_transaction_btn,
|
|
7464
7472
|
onClick: Ha
|
|
7465
7473
|
}
|
|
7466
7474
|
],
|
|
7467
7475
|
calendarActions: {
|
|
7468
7476
|
onRangeChanged: sn
|
|
7469
7477
|
},
|
|
7470
|
-
onAccountsFilterClick: () =>
|
|
7478
|
+
onAccountsFilterClick: () => D(F.ACCOUNTS_CLICK_FILTER),
|
|
7471
7479
|
onBackClick: e,
|
|
7472
7480
|
sx: a,
|
|
7473
|
-
title:
|
|
7481
|
+
title: O.transactions_title,
|
|
7474
7482
|
children: [
|
|
7475
7483
|
/* @__PURE__ */ t(L, { mt: 16, children: /* @__PURE__ */ t(
|
|
7476
7484
|
Vi,
|
|
7477
7485
|
{
|
|
7478
7486
|
onChange: di,
|
|
7479
|
-
placeholder:
|
|
7487
|
+
placeholder: O.action_bar_search_placeholder,
|
|
7480
7488
|
searchValue: u
|
|
7481
7489
|
}
|
|
7482
7490
|
) }),
|
|
@@ -7501,7 +7509,7 @@ const Cc = ({ transaction: e }) => {
|
|
|
7501
7509
|
ke(lt), q(
|
|
7502
7510
|
"transaction"
|
|
7503
7511
|
/* Transaction */
|
|
7504
|
-
),
|
|
7512
|
+
), D(F.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: lt });
|
|
7505
7513
|
}
|
|
7506
7514
|
}
|
|
7507
7515
|
)
|
|
@@ -7536,7 +7544,7 @@ const Cc = ({ transaction: e }) => {
|
|
|
7536
7544
|
ariaLabelClose: R.close_aria,
|
|
7537
7545
|
isOpen: re === "transaction",
|
|
7538
7546
|
onClose: Al,
|
|
7539
|
-
title:
|
|
7547
|
+
title: O.details_title,
|
|
7540
7548
|
children: de && /* @__PURE__ */ t(Xn, { transaction: de })
|
|
7541
7549
|
}
|
|
7542
7550
|
),
|
|
@@ -7557,14 +7565,14 @@ const Cc = ({ transaction: e }) => {
|
|
|
7557
7565
|
isPrimaryDisabled: !qe,
|
|
7558
7566
|
onClose: () => q(""),
|
|
7559
7567
|
onPrimaryAction: Fa,
|
|
7560
|
-
title:
|
|
7568
|
+
title: O.add_transaction_title,
|
|
7561
7569
|
children: /* @__PURE__ */ t(og, {})
|
|
7562
7570
|
}
|
|
7563
7571
|
),
|
|
7564
7572
|
/* @__PURE__ */ t(
|
|
7565
7573
|
ig,
|
|
7566
7574
|
{
|
|
7567
|
-
copy: { title:
|
|
7575
|
+
copy: { title: O.add_manual_account },
|
|
7568
7576
|
isOpen: We,
|
|
7569
7577
|
onClose: () => {
|
|
7570
7578
|
Ze(!1);
|
|
@@ -7577,7 +7585,7 @@ const Cc = ({ transaction: e }) => {
|
|
|
7577
7585
|
{
|
|
7578
7586
|
onClose: Tl,
|
|
7579
7587
|
showConnectWidget: De,
|
|
7580
|
-
title:
|
|
7588
|
+
title: O.add_manual_account
|
|
7581
7589
|
}
|
|
7582
7590
|
)
|
|
7583
7591
|
]
|
|
@@ -7751,10 +7759,10 @@ const Cc = ({ transaction: e }) => {
|
|
|
7751
7759
|
});
|
|
7752
7760
|
}, []), g.useEffect(() => {
|
|
7753
7761
|
if (T && e.sequenceGuid) {
|
|
7754
|
-
const R = s.filter((
|
|
7762
|
+
const R = s.filter((O) => O.sequenceGuid === e.sequenceGuid).map((O) => O.transactionGuid);
|
|
7755
7763
|
d({
|
|
7756
7764
|
...c,
|
|
7757
|
-
custom: (
|
|
7765
|
+
custom: (O) => !!R.find((B) => O.guid === B)
|
|
7758
7766
|
});
|
|
7759
7767
|
} else !T && e.scheduledPaymentGuid && d({
|
|
7760
7768
|
...c,
|
|
@@ -8190,7 +8198,7 @@ const Cc = ({ transaction: e }) => {
|
|
|
8190
8198
|
onAddActivity: i = () => null
|
|
8191
8199
|
}) => {
|
|
8192
8200
|
const { recurring: a } = I(), { addCashflowEvent: o, addCashflowSequence: r, addScheduledPayment: s } = at(), { filter: c, setFilter: d, transactions: _ } = Ae(), [u, h] = g.useState(!1), [m, C] = g.useState(""), [f, y] = g.useState(Z.EveryMonth), [E, T] = g.useState(null), x = g.useMemo(
|
|
8193
|
-
() => _.find((
|
|
8201
|
+
() => _.find((O) => O.guid === m),
|
|
8194
8202
|
[m]
|
|
8195
8203
|
), w = () => {
|
|
8196
8204
|
h(!0), d(e ? { ...c, custom: Kn } : { ...c, custom: Di });
|
|
@@ -8200,14 +8208,14 @@ const Cc = ({ transaction: e }) => {
|
|
|
8200
8208
|
return;
|
|
8201
8209
|
}
|
|
8202
8210
|
if (e) {
|
|
8203
|
-
const
|
|
8211
|
+
const O = Ac(x, f, E), B = await r(O);
|
|
8204
8212
|
if (B) {
|
|
8205
|
-
const
|
|
8206
|
-
await o(
|
|
8213
|
+
const D = Ic(B, x);
|
|
8214
|
+
await o(D);
|
|
8207
8215
|
}
|
|
8208
8216
|
} else {
|
|
8209
|
-
const
|
|
8210
|
-
await s(
|
|
8217
|
+
const O = fg(x, f, E);
|
|
8218
|
+
await s(O, x);
|
|
8211
8219
|
}
|
|
8212
8220
|
R();
|
|
8213
8221
|
}, R = () => {
|
|
@@ -8233,13 +8241,13 @@ const Cc = ({ transaction: e }) => {
|
|
|
8233
8241
|
xc,
|
|
8234
8242
|
{
|
|
8235
8243
|
description: e ? a.add_income_description : a.add_expense_description,
|
|
8236
|
-
onSearch: (
|
|
8244
|
+
onSearch: (O) => {
|
|
8237
8245
|
d({
|
|
8238
8246
|
...c,
|
|
8239
|
-
custom: (B) => e ?
|
|
8247
|
+
custom: (B) => e ? O ? Go(B, O) : Kn(B) : O ? wc(B, O) : Di(B)
|
|
8240
8248
|
});
|
|
8241
8249
|
},
|
|
8242
|
-
onSelected: (
|
|
8250
|
+
onSelected: (O) => C(O)
|
|
8243
8251
|
}
|
|
8244
8252
|
)
|
|
8245
8253
|
}
|
|
@@ -8787,9 +8795,9 @@ const Cc = ({ transaction: e }) => {
|
|
|
8787
8795
|
selectedDayActivities: c,
|
|
8788
8796
|
setSelectedDay: d,
|
|
8789
8797
|
upcomingActivities: _
|
|
8790
|
-
} = at(), [u, h] = g.useState(0), { onEvent: m } = z(), C = a.filter(Ka), f = r.filter(Ka), y = o.filter(Ka), E = C.filter(qi).reduce(hi, 0), T = f.filter(qi).reduce(hi, 0), x = y.filter(qi).reduce(hi, 0), w = C.filter(qi).length, v = C.filter(Va).reduce(hi, 0), R = f.filter(Va).reduce(hi, 0),
|
|
8798
|
+
} = at(), [u, h] = g.useState(0), { onEvent: m } = z(), C = a.filter(Ka), f = r.filter(Ka), y = o.filter(Ka), E = C.filter(qi).reduce(hi, 0), T = f.filter(qi).reduce(hi, 0), x = y.filter(qi).reduce(hi, 0), w = C.filter(qi).length, v = C.filter(Va).reduce(hi, 0), R = f.filter(Va).reduce(hi, 0), O = C.filter(Va).length, B = (W, U) => {
|
|
8791
8799
|
h(U);
|
|
8792
|
-
},
|
|
8800
|
+
}, D = (W) => {
|
|
8793
8801
|
m(F.RECURRING_ACTIVITY_CLICK_UPCOMING, {
|
|
8794
8802
|
transaction_guid: W.transactionGuid
|
|
8795
8803
|
});
|
|
@@ -8816,14 +8824,14 @@ const Cc = ({ transaction: e }) => {
|
|
|
8816
8824
|
expected: v,
|
|
8817
8825
|
paid: R,
|
|
8818
8826
|
title: e.deposits,
|
|
8819
|
-
total:
|
|
8827
|
+
total: O
|
|
8820
8828
|
}
|
|
8821
8829
|
),
|
|
8822
8830
|
!i && !n && /* @__PURE__ */ t(
|
|
8823
8831
|
Ci,
|
|
8824
8832
|
{
|
|
8825
8833
|
activities: _,
|
|
8826
|
-
onActivityClick:
|
|
8834
|
+
onActivityClick: D,
|
|
8827
8835
|
title: e.upcoming_activity
|
|
8828
8836
|
}
|
|
8829
8837
|
),
|
|
@@ -8846,7 +8854,7 @@ const Cc = ({ transaction: e }) => {
|
|
|
8846
8854
|
Ci,
|
|
8847
8855
|
{
|
|
8848
8856
|
activities: _,
|
|
8849
|
-
onActivityClick:
|
|
8857
|
+
onActivityClick: D
|
|
8850
8858
|
}
|
|
8851
8859
|
),
|
|
8852
8860
|
u === 1 && /* @__PURE__ */ t(Ci, { activities: f, onActivityClick: M })
|
|
@@ -9990,7 +9998,7 @@ const em = ({ activity: e }) => /* @__PURE__ */ l(X, { children: [
|
|
|
9990
9998
|
transform: rotate(360deg);
|
|
9991
9999
|
}
|
|
9992
10000
|
`, mm = () => {
|
|
9993
|
-
const { addCashflowEvent: e, addCashflowSequence: n, cashflowSequences: i } = at(), { cashflow: a, common: o } = I(), { completeOnboarding: r } = vo(), { isDirty: s } = li(), { isMobile: c } = be(), { isCopyLoaded: d, setDisplayedDate: _ } = _e(), { filter: u, setFilter: h, transactions: m } = Ae(), C = me(), [f, y] = Tt(!0), [E, T] = g.useState(Z.EveryMonth), [x, w] = Tt(!1), [v, R] = g.useState(null), [
|
|
10001
|
+
const { addCashflowEvent: e, addCashflowSequence: n, cashflowSequences: i } = at(), { cashflow: a, common: o } = I(), { completeOnboarding: r } = vo(), { isDirty: s } = li(), { isMobile: c } = be(), { isCopyLoaded: d, setDisplayedDate: _ } = _e(), { filter: u, setFilter: h, transactions: m } = Ae(), C = me(), [f, y] = Tt(!0), [E, T] = g.useState(Z.EveryMonth), [x, w] = Tt(!1), [v, R] = g.useState(null), [O, B] = Tt(1), [D, M] = Tt([]), [W, U] = Tt(""), oe = g.useMemo(
|
|
9994
10002
|
() => m.find((q) => q.guid === W),
|
|
9995
10003
|
[W]
|
|
9996
10004
|
), Oe = !!i.length, ee = async () => {
|
|
@@ -10000,10 +10008,10 @@ const em = ({ activity: e }) => /* @__PURE__ */ l(X, { children: [
|
|
|
10000
10008
|
ne()
|
|
10001
10009
|
), h({ ...u, custom: Kn }), B(3);
|
|
10002
10010
|
}, Ee = async () => {
|
|
10003
|
-
if (!(
|
|
10011
|
+
if (!(D.length < 1)) {
|
|
10004
10012
|
w(!0);
|
|
10005
|
-
for (let q = 0; q <
|
|
10006
|
-
const Le =
|
|
10013
|
+
for (let q = 0; q < D.length; q++) {
|
|
10014
|
+
const Le = D[q], ke = Ac(
|
|
10007
10015
|
Le,
|
|
10008
10016
|
Le.frequency,
|
|
10009
10017
|
Le.nextDate
|
|
@@ -10015,7 +10023,7 @@ const em = ({ activity: e }) => /* @__PURE__ */ l(X, { children: [
|
|
|
10015
10023
|
}
|
|
10016
10024
|
await r();
|
|
10017
10025
|
}
|
|
10018
|
-
}, re = !oe && f || !oe &&
|
|
10026
|
+
}, re = !oe && f || !oe && D.length < 1;
|
|
10019
10027
|
return d ? /* @__PURE__ */ l(
|
|
10020
10028
|
L,
|
|
10021
10029
|
{
|
|
@@ -10030,7 +10038,7 @@ const em = ({ activity: e }) => /* @__PURE__ */ l(X, { children: [
|
|
|
10030
10038
|
py: 24
|
|
10031
10039
|
},
|
|
10032
10040
|
children: [
|
|
10033
|
-
|
|
10041
|
+
O === 1 && /* @__PURE__ */ t(
|
|
10034
10042
|
L,
|
|
10035
10043
|
{
|
|
10036
10044
|
sx: {
|
|
@@ -10039,7 +10047,7 @@ const em = ({ activity: e }) => /* @__PURE__ */ l(X, { children: [
|
|
|
10039
10047
|
children: /* @__PURE__ */ t(um, { handleNextStep: ee })
|
|
10040
10048
|
}
|
|
10041
10049
|
),
|
|
10042
|
-
|
|
10050
|
+
O === 2 && /* @__PURE__ */ t(
|
|
10043
10051
|
L,
|
|
10044
10052
|
{
|
|
10045
10053
|
sx: {
|
|
@@ -10048,7 +10056,7 @@ const em = ({ activity: e }) => /* @__PURE__ */ l(X, { children: [
|
|
|
10048
10056
|
children: /* @__PURE__ */ t(hm, {})
|
|
10049
10057
|
}
|
|
10050
10058
|
),
|
|
10051
|
-
|
|
10059
|
+
O === 3 && /* @__PURE__ */ l(
|
|
10052
10060
|
L,
|
|
10053
10061
|
{
|
|
10054
10062
|
sx: {
|
|
@@ -10057,13 +10065,13 @@ const em = ({ activity: e }) => /* @__PURE__ */ l(X, { children: [
|
|
|
10057
10065
|
children: [
|
|
10058
10066
|
/* @__PURE__ */ t(Jt, { pb: 12, children: a.add_income_title }),
|
|
10059
10067
|
/* @__PURE__ */ t(Re, { mb: 24, children: a.add_income_description }),
|
|
10060
|
-
|
|
10061
|
-
/* @__PURE__ */ t(ae, { children:
|
|
10068
|
+
D.length > 0 && !oe && /* @__PURE__ */ l(X, { children: [
|
|
10069
|
+
/* @__PURE__ */ t(ae, { children: D.map((q, Le) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
10062
10070
|
/* @__PURE__ */ t(wa, { bgcolor: "background.paper", children: $i(
|
|
10063
10071
|
Me(q.nextDate || q.date)
|
|
10064
10072
|
) }),
|
|
10065
10073
|
/* @__PURE__ */ t(va, { transaction: q }),
|
|
10066
|
-
Le !==
|
|
10074
|
+
Le !== D.length - 1 && /* @__PURE__ */ t(k, {})
|
|
10067
10075
|
] }, q.guid)) }),
|
|
10068
10076
|
/* @__PURE__ */ l(b, { alignItems: "center", direction: "row", children: [
|
|
10069
10077
|
/* @__PURE__ */ t(k, { sx: { flexGrow: 1 } }),
|
|
@@ -10110,7 +10118,7 @@ const em = ({ activity: e }) => /* @__PURE__ */ l(X, { children: [
|
|
|
10110
10118
|
{
|
|
10111
10119
|
"aria-disabled": !oe || !v,
|
|
10112
10120
|
onClick: () => {
|
|
10113
|
-
const q = [...
|
|
10121
|
+
const q = [...D];
|
|
10114
10122
|
q.push({ ...oe, nextDate: v, frequency: E }), M(q), U("");
|
|
10115
10123
|
},
|
|
10116
10124
|
variant: "contained",
|
|
@@ -10129,11 +10137,11 @@ const em = ({ activity: e }) => /* @__PURE__ */ l(X, { children: [
|
|
|
10129
10137
|
)
|
|
10130
10138
|
] })
|
|
10131
10139
|
] }),
|
|
10132
|
-
|
|
10140
|
+
D.length > 0 && !oe && /* @__PURE__ */ l(b, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
|
|
10133
10141
|
/* @__PURE__ */ t(
|
|
10134
10142
|
Q,
|
|
10135
10143
|
{
|
|
10136
|
-
"aria-disabled":
|
|
10144
|
+
"aria-disabled": D.length < 1 || x,
|
|
10137
10145
|
onClick: Ee,
|
|
10138
10146
|
startIcon: x ? /* @__PURE__ */ t(
|
|
10139
10147
|
H,
|
|
@@ -10904,26 +10912,26 @@ const Bc = ({
|
|
|
10904
10912
|
_.flatMap((v) => v.dataset.map((R) => new Date(R.x).getTime()))
|
|
10905
10913
|
)
|
|
10906
10914
|
].sort((v, R) => v - R).map((v) => new Date(v)), h = _.map((v) => {
|
|
10907
|
-
const R = new Map(v.dataset.map((
|
|
10908
|
-
let
|
|
10909
|
-
const B = u.map((
|
|
10910
|
-
const M = R.get(
|
|
10911
|
-
return
|
|
10915
|
+
const R = new Map(v.dataset.map((D) => [new Date(D.x).getTime(), D.y]));
|
|
10916
|
+
let O = R.get(u[0].getTime()) ?? 0;
|
|
10917
|
+
const B = u.map((D) => {
|
|
10918
|
+
const M = R.get(D.getTime()) ?? O;
|
|
10919
|
+
return O = M, { x: D, y: M };
|
|
10912
10920
|
});
|
|
10913
10921
|
return { ...v, dataset: B };
|
|
10914
10922
|
}), m = h.reduce(
|
|
10915
10923
|
(v, R) => v + (R.dataset[0]?.y ?? 0),
|
|
10916
10924
|
0
|
|
10917
10925
|
), C = u.map((v, R) => {
|
|
10918
|
-
const
|
|
10926
|
+
const O = R / (u.length - 1), B = m * (1 - O);
|
|
10919
10927
|
return { x: v, y: B };
|
|
10920
10928
|
}), f = Math.ceil(m / 100) * 100, y = u, E = h.map((v, R) => {
|
|
10921
|
-
const
|
|
10929
|
+
const O = 1 - R / h.length * 0.5, B = Fm(Hm, O);
|
|
10922
10930
|
return {
|
|
10923
10931
|
id: `debt-${R}`,
|
|
10924
10932
|
guid: v.guid,
|
|
10925
10933
|
label: v.name,
|
|
10926
|
-
data: v.dataset.map((
|
|
10934
|
+
data: v.dataset.map((D) => D.y),
|
|
10927
10935
|
color: B,
|
|
10928
10936
|
curve: "linear",
|
|
10929
10937
|
type: "line",
|
|
@@ -10952,11 +10960,11 @@ const Bc = ({
|
|
|
10952
10960
|
height: n,
|
|
10953
10961
|
onAreaClick: (v, R) => {
|
|
10954
10962
|
r?.();
|
|
10955
|
-
const
|
|
10956
|
-
d(F.DEBTS_CLICK_CHART_AREA, { account_guid:
|
|
10963
|
+
const O = E.find((B) => B.id === R.seriesId);
|
|
10964
|
+
d(F.DEBTS_CLICK_CHART_AREA, { account_guid: O?.guid });
|
|
10957
10965
|
},
|
|
10958
10966
|
onHighlightChange: (v) => {
|
|
10959
|
-
const R = E.find((
|
|
10967
|
+
const R = E.find((O) => O.id === v?.seriesId)?.guid;
|
|
10960
10968
|
s?.(R ?? "");
|
|
10961
10969
|
},
|
|
10962
10970
|
series: E,
|
|
@@ -11840,16 +11848,16 @@ const Kt = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
|
11840
11848
|
}
|
|
11841
11849
|
);
|
|
11842
11850
|
}), pp = ({ onBackClick: e, sx: n }) => {
|
|
11843
|
-
const [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState(!1), [d, _] = g.useState(""), { isDesktop: u, isMobile: h } = be(), { debts: m } = I(), { onEvent: C } = z(), { isCopyLoaded: f, isInitialized: y, setSelectedAccounts: E } = _e(), { setSelectedAccount: T } = Wt(), { selectedDebtPriority: x, setSelectedDebtChartData: w } = pn(), { visibleDebtAccounts: v } = we(), { goalsLoaded: R, loadGoals:
|
|
11851
|
+
const [i, a] = g.useState(!1), [o, r] = g.useState(!1), [s, c] = g.useState(!1), [d, _] = g.useState(""), { isDesktop: u, isMobile: h } = be(), { debts: m } = I(), { onEvent: C } = z(), { isCopyLoaded: f, isInitialized: y, setSelectedAccounts: E } = _e(), { setSelectedAccount: T } = Wt(), { selectedDebtPriority: x, setSelectedDebtChartData: w } = pn(), { visibleDebtAccounts: v } = we(), { goalsLoaded: R, loadGoals: O, monthlyCashFlowProfile: B } = ct(), { debts: D } = Ia(), M = g.useMemo(() => {
|
|
11844
11852
|
const Ee = B?.extra_payment ?? 0;
|
|
11845
|
-
return gp(
|
|
11846
|
-
}, [
|
|
11853
|
+
return gp(D, x, Ee);
|
|
11854
|
+
}, [D, x, B]);
|
|
11847
11855
|
g.useEffect(() => {
|
|
11848
11856
|
E(v), C(F.DEBTS_VIEW);
|
|
11849
11857
|
}, []), g.useEffect(() => {
|
|
11850
11858
|
E(v);
|
|
11851
11859
|
}, [v]), g.useEffect(() => {
|
|
11852
|
-
y &&
|
|
11860
|
+
y && O().finally();
|
|
11853
11861
|
}, [y]);
|
|
11854
11862
|
const W = (Ee) => _(Ee), U = () => {
|
|
11855
11863
|
const Ee = v.find((q) => q.guid === d), re = M.find((q) => q.guid === d);
|
|
@@ -12889,17 +12897,17 @@ const Tp = (e, n) => {
|
|
|
12889
12897
|
f ? (x = () => w(), T = i.save_button) : y && (x = () => R(), T = n.mark_as_complete_button);
|
|
12890
12898
|
const w = async () => {
|
|
12891
12899
|
if (c) {
|
|
12892
|
-
const
|
|
12893
|
-
|
|
12900
|
+
const O = c.track_type;
|
|
12901
|
+
O !== V.RETIREMENT_TRACK ? await a(c) : O === V.RETIREMENT_TRACK && await o({ ...c, target_amount: c.amount }), d(n.alert_goal_added), _(void 0), O && e?.(O);
|
|
12894
12902
|
}
|
|
12895
12903
|
}, v = async () => {
|
|
12896
12904
|
c && (c.track_type !== V.RETIREMENT_TRACK ? await r(c.guid) : c.track_type === V.RETIREMENT_TRACK && await s(c), d(n.alert_goal_deleted), _(void 0));
|
|
12897
12905
|
}, R = async () => {
|
|
12898
|
-
const
|
|
12906
|
+
const O = {
|
|
12899
12907
|
...c,
|
|
12900
12908
|
has_been_spent: !0
|
|
12901
12909
|
};
|
|
12902
|
-
await u(
|
|
12910
|
+
await u(O), d(n.alert_goal_completed), _(void 0);
|
|
12903
12911
|
};
|
|
12904
12912
|
return /* @__PURE__ */ l(b, { children: [
|
|
12905
12913
|
/* @__PURE__ */ t(
|
|
@@ -12933,12 +12941,12 @@ const Tp = (e, n) => {
|
|
|
12933
12941
|
)
|
|
12934
12942
|
] });
|
|
12935
12943
|
}), E4 = A(({ onBackClick: e, sx: n }) => {
|
|
12936
|
-
const { onEvent: i } = z(), { isMobile: a } = be(), { visibleAccounts: o } = we(), { isCopyLoaded: r, isInitialized: s, setSelectedAccounts: c } = _e(), { goals: d, common: _ } = I(), { alert: u, goals: h, goalsLoaded: m, loadGoals: C, monthlyCashFlowProfile: f, setAlert: y, retirmentGoals: E } = ct(), [T, x] = g.useState(0), [w, v] = g.useState(!1), R = f?.amount_allocated_for_savings_goals || 0,
|
|
12944
|
+
const { onEvent: i } = z(), { isMobile: a } = be(), { visibleAccounts: o } = we(), { isCopyLoaded: r, isInitialized: s, setSelectedAccounts: c } = _e(), { goals: d, common: _ } = I(), { alert: u, goals: h, goalsLoaded: m, loadGoals: C, monthlyCashFlowProfile: f, setAlert: y, retirmentGoals: E } = ct(), [T, x] = g.useState(0), [w, v] = g.useState(!1), R = f?.amount_allocated_for_savings_goals || 0, O = f?.amount_allocated_for_debt_goals || 0, B = f?.amount_allocated_for_retirement_goals || 0, D = r ? S(
|
|
12937
12945
|
a ? d.tab_subtitle_mobile : d.tab_subtitle,
|
|
12938
12946
|
P(R, "0,0")
|
|
12939
12947
|
) : "", M = r ? S(
|
|
12940
12948
|
a ? d.tab_subtitle_mobile : d.tab_subtitle,
|
|
12941
|
-
P(
|
|
12949
|
+
P(O, "0,0")
|
|
12942
12950
|
) : "", W = r ? S(
|
|
12943
12951
|
a ? d.tab_subtitle_mobile : d.tab_subtitle,
|
|
12944
12952
|
P(B, "0,0")
|
|
@@ -12947,7 +12955,7 @@ const Tp = (e, n) => {
|
|
|
12947
12955
|
c(o), i(F.GOALS_VIEW);
|
|
12948
12956
|
}, []), g.useEffect(() => {
|
|
12949
12957
|
s && C().finally();
|
|
12950
|
-
}, [s, R,
|
|
12958
|
+
}, [s, R, O, B]);
|
|
12951
12959
|
const U = () => {
|
|
12952
12960
|
i(F.GOALS_CLICK_FILTER);
|
|
12953
12961
|
}, oe = () => {
|
|
@@ -12987,7 +12995,7 @@ const Tp = (e, n) => {
|
|
|
12987
12995
|
Ke,
|
|
12988
12996
|
{
|
|
12989
12997
|
disabled: ee,
|
|
12990
|
-
label: /* @__PURE__ */ t(za, { subtitle:
|
|
12998
|
+
label: /* @__PURE__ */ t(za, { subtitle: D, title: d.tab_saving_title }),
|
|
12991
12999
|
sx: { "&.Mui-selected": { color: "primary.light" } }
|
|
12992
13000
|
}
|
|
12993
13001
|
),
|
|
@@ -14259,7 +14267,7 @@ const g1 = ({
|
|
|
14259
14267
|
selectedData: f,
|
|
14260
14268
|
setHoveredData: y,
|
|
14261
14269
|
setSelectedData: E
|
|
14262
|
-
} = Zu(), { isMobile: T } = be(), { onEvent: x } = z(), [w, v] = g.useState(!1), [R,
|
|
14270
|
+
} = Zu(), { isMobile: T } = be(), { onEvent: x } = z(), [w, v] = g.useState(!1), [R, O] = g.useState(6), [B, D] = g.useState(!1), [M, W] = g.useState(!1), [U, oe] = g.useState(!1), Oe = async () => {
|
|
14263
14271
|
await m(a), await h(R), v(!0);
|
|
14264
14272
|
};
|
|
14265
14273
|
g.useEffect(() => {
|
|
@@ -14272,7 +14280,7 @@ const g1 = ({
|
|
|
14272
14280
|
x(F.NET_WORTH_WIDGET_CLICK_TIMEFRAME, { time_period: R + "M" }), h(R).finally();
|
|
14273
14281
|
}, [R]);
|
|
14274
14282
|
const ee = (Ze, De) => {
|
|
14275
|
-
E(De), Ze.currentTarget instanceof HTMLDivElement &&
|
|
14283
|
+
E(De), Ze.currentTarget instanceof HTMLDivElement && D(!0);
|
|
14276
14284
|
}, Ee = (Ze) => {
|
|
14277
14285
|
y(Ze);
|
|
14278
14286
|
}, re = () => {
|
|
@@ -14281,7 +14289,7 @@ const g1 = ({
|
|
|
14281
14289
|
x(F.NET_WORTH_WIDGET_CLICK_ASSETS_LIABILITIES), W(!0);
|
|
14282
14290
|
}, Le = async (Ze) => {
|
|
14283
14291
|
const De = Ze[0], ot = Ze[1];
|
|
14284
|
-
De && ot &&
|
|
14292
|
+
De && ot && O(Nd(ot, De));
|
|
14285
14293
|
}, ke = {
|
|
14286
14294
|
chartData: C,
|
|
14287
14295
|
hoveredData: u,
|
|
@@ -14362,7 +14370,7 @@ const g1 = ({
|
|
|
14362
14370
|
{
|
|
14363
14371
|
ariaLabelClose: "Close",
|
|
14364
14372
|
isOpen: B,
|
|
14365
|
-
onClose: () =>
|
|
14373
|
+
onClose: () => D(!1),
|
|
14366
14374
|
shouldShowHeaderBorders: !1,
|
|
14367
14375
|
shouldShowHeaderShadow: !0,
|
|
14368
14376
|
title: s.gains_and_losses,
|
|
@@ -17833,37 +17841,37 @@ const V1 = ({
|
|
|
17833
17841
|
isOpen: !1,
|
|
17834
17842
|
topic: "",
|
|
17835
17843
|
type: void 0
|
|
17836
|
-
}), T = lC.map((
|
|
17837
|
-
...
|
|
17838
|
-
title: e.help_by_category_list[
|
|
17839
|
-
topics:
|
|
17844
|
+
}), T = lC.map((D) => ({
|
|
17845
|
+
...D,
|
|
17846
|
+
title: e.help_by_category_list[D.guid].label,
|
|
17847
|
+
topics: D.topics.map(({ type: M }, W) => ({
|
|
17840
17848
|
type: M,
|
|
17841
|
-
label: e.help_by_category_list[
|
|
17849
|
+
label: e.help_by_category_list[D.guid].topics[W]
|
|
17842
17850
|
}))
|
|
17843
|
-
})), x = Object.keys(e.popular_topics_list).map((
|
|
17844
|
-
name: e.popular_topics_list[
|
|
17851
|
+
})), x = Object.keys(e.popular_topics_list).map((D, M) => ({
|
|
17852
|
+
name: e.popular_topics_list[D],
|
|
17845
17853
|
type: dC[M].type
|
|
17846
17854
|
})), w = () => {
|
|
17847
17855
|
u(""), E({ isOpen: !1, topic: "", type: void 0 });
|
|
17848
|
-
}, v = (
|
|
17856
|
+
}, v = (D) => {
|
|
17849
17857
|
c.email && o({
|
|
17850
17858
|
email: c.email,
|
|
17851
|
-
message: _ ? `Institution: ${_}, ${
|
|
17859
|
+
message: _ ? `Institution: ${_}, ${D}` : D,
|
|
17852
17860
|
title: y.topic || "Contact Support"
|
|
17853
17861
|
});
|
|
17854
|
-
}, R = (
|
|
17855
|
-
M === "other" ? f(!0) : E({ isOpen: !0, topic:
|
|
17856
|
-
},
|
|
17862
|
+
}, R = (D, M) => {
|
|
17863
|
+
M === "other" ? f(!0) : E({ isOpen: !0, topic: D, type: M });
|
|
17864
|
+
}, O = () => {
|
|
17857
17865
|
s(""), m(!1), f(!1), w();
|
|
17858
|
-
}, B = (
|
|
17866
|
+
}, B = (D) => {
|
|
17859
17867
|
if (!c.email) {
|
|
17860
17868
|
s(e.request_support_email_not_exists_message, "error");
|
|
17861
17869
|
return;
|
|
17862
17870
|
}
|
|
17863
17871
|
o({
|
|
17864
17872
|
email: c.email,
|
|
17865
|
-
message: `Institution Website: ${
|
|
17866
|
-
title: `Institution Request: ${
|
|
17873
|
+
message: `Institution Website: ${D.institutionWebsite}${D.institutionLoginPage ? ` Institution Login Page: ${D.institutionLoginPage}` : ""} `,
|
|
17874
|
+
title: `Institution Request: ${D.institutionName}`
|
|
17867
17875
|
});
|
|
17868
17876
|
};
|
|
17869
17877
|
return /* @__PURE__ */ t(se, { isOpen: n, onClose: i, title: e.request_support, children: !d || r ? /* @__PURE__ */ t(ge, {}) : /* @__PURE__ */ l(g.Fragment, { children: [
|
|
@@ -17951,8 +17959,8 @@ const V1 = ({
|
|
|
17951
17959
|
{
|
|
17952
17960
|
copy: e,
|
|
17953
17961
|
isOpen: y.isOpen,
|
|
17954
|
-
onClick: (
|
|
17955
|
-
u(
|
|
17962
|
+
onClick: (D) => {
|
|
17963
|
+
u(D), y.type === "internal" && m(!0);
|
|
17956
17964
|
},
|
|
17957
17965
|
onClose: w,
|
|
17958
17966
|
topic: y.topic
|
|
@@ -17967,7 +17975,7 @@ const V1 = ({
|
|
|
17967
17975
|
onBack: () => {
|
|
17968
17976
|
s(""), y.type === "internal" && m(!1);
|
|
17969
17977
|
},
|
|
17970
|
-
onClose:
|
|
17978
|
+
onClose: O
|
|
17971
17979
|
}
|
|
17972
17980
|
),
|
|
17973
17981
|
/* @__PURE__ */ t(
|
|
@@ -18156,7 +18164,7 @@ const V1 = ({
|
|
|
18156
18164
|
)
|
|
18157
18165
|
] });
|
|
18158
18166
|
}), wC = () => {
|
|
18159
|
-
const e = it(), { common: n, settings: i } = I(), { isDesktop: a, isMobile: o, isSmallMobile: r, isTablet: s } = be(), { config: c } = Ui(), { updateUser: d } = $t(), { user: _ } = an(), [u, h] = g.useState(_.first_name), [m, C] = g.useState(_.last_name), [f, y] = g.useState(_.email), [E, T] = g.useState(_.phone), [x, w] = g.useState(_.postal_code), [v, R] = g.useState(_.credit_score), [
|
|
18167
|
+
const e = it(), { common: n, settings: i } = I(), { isDesktop: a, isMobile: o, isSmallMobile: r, isTablet: s } = be(), { config: c } = Ui(), { updateUser: d } = $t(), { user: _ } = an(), [u, h] = g.useState(_.first_name), [m, C] = g.useState(_.last_name), [f, y] = g.useState(_.email), [E, T] = g.useState(_.phone), [x, w] = g.useState(_.postal_code), [v, R] = g.useState(_.credit_score), [O, B] = g.useState(null), D = f && !_.email_is_verified, M = E && !_.phone_is_verified;
|
|
18160
18168
|
g.useEffect(() => {
|
|
18161
18169
|
if (_.birthday) {
|
|
18162
18170
|
const U = new Date(_.birthday * 1e3), oe = U.getUTCFullYear(), Oe = U.getUTCMonth(), ee = U.getUTCDate();
|
|
@@ -18170,7 +18178,7 @@ const V1 = ({
|
|
|
18170
18178
|
last_name: m,
|
|
18171
18179
|
email: f,
|
|
18172
18180
|
phone: E,
|
|
18173
|
-
birthday:
|
|
18181
|
+
birthday: O ? Me(O) : null,
|
|
18174
18182
|
postal_code: x,
|
|
18175
18183
|
credit_score: v
|
|
18176
18184
|
};
|
|
@@ -18218,7 +18226,7 @@ const V1 = ({
|
|
|
18218
18226
|
}
|
|
18219
18227
|
),
|
|
18220
18228
|
/* @__PURE__ */ l(b, { direction: o ? "column" : "row", children: [
|
|
18221
|
-
c.display_email_edit_field_in_settings && /* @__PURE__ */ l(b, { sx: { mb:
|
|
18229
|
+
c.display_email_edit_field_in_settings && /* @__PURE__ */ l(b, { sx: { mb: D ? 20 : 44, mr: o ? 0 : 24 }, children: [
|
|
18222
18230
|
/* @__PURE__ */ t(
|
|
18223
18231
|
rt,
|
|
18224
18232
|
{
|
|
@@ -18227,7 +18235,7 @@ const V1 = ({
|
|
|
18227
18235
|
onChange: (U) => y(U.target.value)
|
|
18228
18236
|
}
|
|
18229
18237
|
),
|
|
18230
|
-
|
|
18238
|
+
D && /* @__PURE__ */ t(IC, {})
|
|
18231
18239
|
] }),
|
|
18232
18240
|
c.display_sms_edit_field_in_settings && /* @__PURE__ */ l(b, { sx: { mb: M ? 20 : 44 }, children: [
|
|
18233
18241
|
/* @__PURE__ */ t(
|
|
@@ -18269,7 +18277,7 @@ const V1 = ({
|
|
|
18269
18277
|
"&:hover": { backgroundColor: Tn(e.palette.primary.light, 0.1) }
|
|
18270
18278
|
}
|
|
18271
18279
|
},
|
|
18272
|
-
value:
|
|
18280
|
+
value: O
|
|
18273
18281
|
}
|
|
18274
18282
|
) }),
|
|
18275
18283
|
/* @__PURE__ */ t(
|
|
@@ -20617,8 +20625,8 @@ const qa = ({
|
|
|
20617
20625
|
]
|
|
20618
20626
|
}
|
|
20619
20627
|
) }),
|
|
20620
|
-
children: /* @__PURE__ */ t(Se, { children: T.map((v, R,
|
|
20621
|
-
const B = R ===
|
|
20628
|
+
children: /* @__PURE__ */ t(Se, { children: T.map((v, R, O) => {
|
|
20629
|
+
const B = R === O.length - 1;
|
|
20622
20630
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
20623
20631
|
/* @__PURE__ */ t(
|
|
20624
20632
|
Ri,
|
|
@@ -22353,7 +22361,7 @@ const Zf = ({
|
|
|
22353
22361
|
r && !s && (x(`${r.amount}`), m(!0), u({
|
|
22354
22362
|
accounts: e,
|
|
22355
22363
|
dateRange: a,
|
|
22356
|
-
custom: (
|
|
22364
|
+
custom: (O) => O.category_guid === r.category_guid || O.top_level_category_guid === r.category_guid
|
|
22357
22365
|
}));
|
|
22358
22366
|
}, [r]);
|
|
22359
22367
|
const w = async () => {
|
|
@@ -22464,21 +22472,21 @@ const Zf = ({
|
|
|
22464
22472
|
] });
|
|
22465
22473
|
}), g0 = A(() => {
|
|
22466
22474
|
const e = me(), { onEvent: n } = z(), { visibleAccounts: i } = we(), { budgets: a, common: o, recurring: r } = I(), { incomeCategories: s, spendCategories: c } = ze(), { detailedBudgets: d, totalBudgeted: _ } = mt(), { projectedIncome: u } = at(), { setFilter: h } = Ae(), [m, C] = g.useState(!1), [f, y] = g.useMemo(() => {
|
|
22467
|
-
const w = c.reduce((B,
|
|
22475
|
+
const w = c.reduce((B, D) => B + D.totalAmount, 0);
|
|
22468
22476
|
let v = w / _;
|
|
22469
22477
|
v > 1 && (v = 1);
|
|
22470
22478
|
let R = e.palette.success.main;
|
|
22471
22479
|
v > 0.8 && v < 1 ? R = e.palette.warning.main : v >= 1 && (R = e.palette.error.main);
|
|
22472
|
-
const
|
|
22480
|
+
const O = [
|
|
22473
22481
|
{
|
|
22474
22482
|
color: R,
|
|
22475
22483
|
percentage: `${v}`
|
|
22476
22484
|
}
|
|
22477
22485
|
];
|
|
22478
|
-
return [w,
|
|
22486
|
+
return [w, O];
|
|
22479
22487
|
}, [d, c]), [E, T] = g.useMemo(() => {
|
|
22480
22488
|
const w = Math.abs(
|
|
22481
|
-
s.reduce((
|
|
22489
|
+
s.reduce((O, B) => O + B.totalAmount, 0)
|
|
22482
22490
|
);
|
|
22483
22491
|
let v = w / u;
|
|
22484
22492
|
v > 1 && (v = 1);
|
|
@@ -22555,7 +22563,7 @@ const Zf = ({
|
|
|
22555
22563
|
setAlert: T,
|
|
22556
22564
|
setTheme: x,
|
|
22557
22565
|
budgets: w
|
|
22558
|
-
} = mt(), { loadActivity: v } = at(), { isDesktop: R, isTablet:
|
|
22566
|
+
} = mt(), { loadActivity: v } = at(), { isDesktop: R, isTablet: O } = be(), { reloadCategoryTotals: B } = ze(), [D, M] = g.useState(!1);
|
|
22559
22567
|
g.useEffect(() => {
|
|
22560
22568
|
x(i), h(o), u(C.start, C.end), a(F.BUDGETS_VIEW);
|
|
22561
22569
|
}, []), g.useEffect(() => {
|
|
@@ -22593,19 +22601,19 @@ const Zf = ({
|
|
|
22593
22601
|
d && f && /* @__PURE__ */ l(
|
|
22594
22602
|
b,
|
|
22595
22603
|
{
|
|
22596
|
-
direction: R ||
|
|
22604
|
+
direction: R || O ? "row" : "column",
|
|
22597
22605
|
height: "100%",
|
|
22598
22606
|
sx: { justifyContent: "center" },
|
|
22599
22607
|
width: "100%",
|
|
22600
22608
|
children: [
|
|
22601
|
-
/* @__PURE__ */ t(b, { height: R ||
|
|
22609
|
+
/* @__PURE__ */ t(b, { height: R || O ? "calc(100dvh - 150px)" : 450, children: /* @__PURE__ */ t(
|
|
22602
22610
|
il,
|
|
22603
22611
|
{
|
|
22604
22612
|
createBudgetOnClick: oe,
|
|
22605
|
-
height: R ||
|
|
22613
|
+
height: R || O ? 800 : 450,
|
|
22606
22614
|
isDraggable: !0,
|
|
22607
22615
|
shouldShowZeroState: w.length === 0,
|
|
22608
|
-
unavailableWidth: R ||
|
|
22616
|
+
unavailableWidth: R || O ? hs : 0
|
|
22609
22617
|
}
|
|
22610
22618
|
) }),
|
|
22611
22619
|
w.length !== 0 && /* @__PURE__ */ l(
|
|
@@ -22614,7 +22622,7 @@ const Zf = ({
|
|
|
22614
22622
|
gap: 24,
|
|
22615
22623
|
height: "100%",
|
|
22616
22624
|
sx: { mr: 24, mt: 48 },
|
|
22617
|
-
width: R ||
|
|
22625
|
+
width: R || O ? hs : "100%",
|
|
22618
22626
|
children: [
|
|
22619
22627
|
/* @__PURE__ */ t(g0, {}),
|
|
22620
22628
|
/* @__PURE__ */ t(h0, {})
|
|
@@ -22629,7 +22637,7 @@ const Zf = ({
|
|
|
22629
22637
|
se,
|
|
22630
22638
|
{
|
|
22631
22639
|
ariaLabelClose: s.close_aria,
|
|
22632
|
-
isOpen:
|
|
22640
|
+
isOpen: D,
|
|
22633
22641
|
onClose: () => M(!1),
|
|
22634
22642
|
title: r.add_new_title,
|
|
22635
22643
|
children: /* @__PURE__ */ t(o0, { onRecalculateBudgets: Oe })
|
|
@@ -23340,9 +23348,9 @@ const b0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23340
23348
|
}
|
|
23341
23349
|
),
|
|
23342
23350
|
n.map((C, f, y) => /* @__PURE__ */ t(b, { sx: { flexDirection: "row", gap: 4 }, children: C.map((E, T) => {
|
|
23343
|
-
const x = f === 0, w = f === y.length - 1, v = T === 0, R = T === C.length - 1,
|
|
23344
|
-
let B = "grey.200",
|
|
23345
|
-
return d ? (B =
|
|
23351
|
+
const x = f === 0, w = f === y.length - 1, v = T === 0, R = T === C.length - 1, O = Number(E.replace("%", "")) >= 25;
|
|
23352
|
+
let B = "grey.200", D = "grey.900";
|
|
23353
|
+
return d ? (B = O ? "grey.200" : "grey.700", D = O ? "grey.900" : "common.white") : (B = O ? "grey.700" : "grey.200", D = O ? "common.white" : "grey.900"), /* @__PURE__ */ t(
|
|
23346
23354
|
b,
|
|
23347
23355
|
{
|
|
23348
23356
|
sx: {
|
|
@@ -23362,7 +23370,7 @@ const b0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23362
23370
|
p,
|
|
23363
23371
|
{
|
|
23364
23372
|
sx: {
|
|
23365
|
-
color:
|
|
23373
|
+
color: D,
|
|
23366
23374
|
fontWeight: s ? 600 : 700
|
|
23367
23375
|
},
|
|
23368
23376
|
variant: s ? "Body" : "H3",
|
|
@@ -23810,16 +23818,16 @@ const b0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23810
23818
|
slotProps: { baseIconButton: { sx: { display: "none" } } }
|
|
23811
23819
|
}
|
|
23812
23820
|
) });
|
|
23813
|
-
},
|
|
23821
|
+
}, O = () => {
|
|
23814
23822
|
h(!0), n(F.ACCOUNTS_CLICK_CONNECT);
|
|
23815
23823
|
}, B = (re) => (q, Le) => {
|
|
23816
23824
|
a((ke) => ({
|
|
23817
23825
|
...ke,
|
|
23818
23826
|
[re]: Le
|
|
23819
23827
|
}));
|
|
23820
|
-
}, { visibleHoldings:
|
|
23828
|
+
}, { visibleHoldings: D } = Ni(), { visibleInvestmentAccounts: M } = we(), W = M.filter(
|
|
23821
23829
|
({ guid: re }) => s.includes(re)
|
|
23822
|
-
), U = W.reduce((re, q) => re + (q.balance || 0), 0), oe = W.map(({ guid: re }) => re), ee =
|
|
23830
|
+
), U = W.reduce((re, q) => re + (q.balance || 0), 0), oe = W.map(({ guid: re }) => re), ee = D.filter(
|
|
23823
23831
|
({ account_guid: re }) => oe.includes(re)
|
|
23824
23832
|
).reduce((re, q) => {
|
|
23825
23833
|
const Le = q.market_value ? q.market_value - (q.cost_basis || 0) : 0;
|
|
@@ -23861,7 +23869,7 @@ const b0 = ({ widgets: e, isLoading: n }) => {
|
|
|
23861
23869
|
] })
|
|
23862
23870
|
] }),
|
|
23863
23871
|
W.map((re) => {
|
|
23864
|
-
const q =
|
|
23872
|
+
const q = D.filter((Ye) => Ye.account_guid === re.guid).map((Ye) => ({
|
|
23865
23873
|
id: Ye.guid,
|
|
23866
23874
|
qty: Ye.shares || 0,
|
|
23867
23875
|
holding: Ye.symbol || Ye.description || "Unknown",
|
|
@@ -24175,7 +24183,7 @@ const b0 = ({ widgets: e, isLoading: n }) => {
|
|
|
24175
24183
|
/* @__PURE__ */ t(p, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: y.overview.investment_accounts_footer }),
|
|
24176
24184
|
/* @__PURE__ */ t(p, { sx: { color: "text.secondary", fontWeight: 400 }, variant: "ParagraphSmall", children: y.overview.connect_more_accounts_description })
|
|
24177
24185
|
] }),
|
|
24178
|
-
/* @__PURE__ */ t(Q, { onClick:
|
|
24186
|
+
/* @__PURE__ */ t(Q, { onClick: O, sx: { fontWeight: 600 }, variant: "outlined", children: y.overview.connect_accounts })
|
|
24179
24187
|
] }),
|
|
24180
24188
|
/* @__PURE__ */ t(
|
|
24181
24189
|
k0,
|
|
@@ -24507,7 +24515,7 @@ const zi = g.createContext(null), V0 = ({
|
|
|
24507
24515
|
g.useEffect(() => {
|
|
24508
24516
|
y && y <= 325 && x(3);
|
|
24509
24517
|
}, [y]);
|
|
24510
|
-
const { cardStyle: R, linkTextStyle:
|
|
24518
|
+
const { cardStyle: R, linkTextStyle: O } = h, B = f ? R : { border: "none", boxShadow: "none", ...R }, D = /* @__PURE__ */ t(
|
|
24511
24519
|
Re,
|
|
24512
24520
|
{
|
|
24513
24521
|
className: "mx-micro-card-description",
|
|
@@ -24585,13 +24593,13 @@ const zi = g.createContext(null), V0 = ({
|
|
|
24585
24593
|
wn,
|
|
24586
24594
|
{
|
|
24587
24595
|
avatar: u && s,
|
|
24588
|
-
subheader: d &&
|
|
24596
|
+
subheader: d && D,
|
|
24589
24597
|
sx: { color: m.headerColor, p: 0 },
|
|
24590
24598
|
title: C,
|
|
24591
24599
|
titleTypographyProps: { fontSize: 15, fontWeight: 600, variant: "h3" }
|
|
24592
24600
|
}
|
|
24593
24601
|
),
|
|
24594
|
-
/* @__PURE__ */ t(Ft, { sx: { p: 0 }, children: !d &&
|
|
24602
|
+
/* @__PURE__ */ t(Ft, { sx: { p: 0 }, children: !d && D }),
|
|
24595
24603
|
!!n && /* @__PURE__ */ t(nu, { sx: { padding: 0 }, children: /* @__PURE__ */ t(
|
|
24596
24604
|
L,
|
|
24597
24605
|
{
|
|
@@ -24601,7 +24609,7 @@ const zi = g.createContext(null), V0 = ({
|
|
|
24601
24609
|
fontSize: 14,
|
|
24602
24610
|
fontWeight: "bold",
|
|
24603
24611
|
px: 28,
|
|
24604
|
-
...
|
|
24612
|
+
...O
|
|
24605
24613
|
}),
|
|
24606
24614
|
children: n
|
|
24607
24615
|
}
|
|
@@ -25675,7 +25683,7 @@ const zi = g.createContext(null), V0 = ({
|
|
|
25675
25683
|
top: 0,
|
|
25676
25684
|
behavior: "smooth"
|
|
25677
25685
|
});
|
|
25678
|
-
},
|
|
25686
|
+
}, O = () => {
|
|
25679
25687
|
v(Yt.ON_CAROUSEL_BACK_CLICK), m.current && m.current.scrollTo({
|
|
25680
25688
|
left: (m.current.offsetWidth + 8) * (Math.floor(C / (m.current.offsetWidth + 8)) - 1),
|
|
25681
25689
|
top: 0,
|
|
@@ -25683,7 +25691,7 @@ const zi = g.createContext(null), V0 = ({
|
|
|
25683
25691
|
});
|
|
25684
25692
|
}, B = () => {
|
|
25685
25693
|
m.current && f(m.current.scrollLeft);
|
|
25686
|
-
},
|
|
25694
|
+
}, D = () => {
|
|
25687
25695
|
if (!T || !y) return;
|
|
25688
25696
|
T - y > ey ? v(Yt.ON_CAROUSEL_FORWARD_SWIPE) : v(Yt.ON_CAROUSEL_BACK_SWIPE);
|
|
25689
25697
|
}, M = (ee) => {
|
|
@@ -25712,7 +25720,7 @@ const zi = g.createContext(null), V0 = ({
|
|
|
25712
25720
|
{
|
|
25713
25721
|
className: "mx-insights-micro-carousel-container",
|
|
25714
25722
|
onScroll: B,
|
|
25715
|
-
onTouchEnd:
|
|
25723
|
+
onTouchEnd: D,
|
|
25716
25724
|
onTouchMove: M,
|
|
25717
25725
|
onTouchStart: W,
|
|
25718
25726
|
ref: m,
|
|
@@ -25754,7 +25762,7 @@ const zi = g.createContext(null), V0 = ({
|
|
|
25754
25762
|
currentBeatIndex: oe,
|
|
25755
25763
|
numBeats: e.length + 1,
|
|
25756
25764
|
onNextClick: R,
|
|
25757
|
-
onPreviousClick:
|
|
25765
|
+
onPreviousClick: O,
|
|
25758
25766
|
scrollRightBoundary: Oe,
|
|
25759
25767
|
scrollX: C
|
|
25760
25768
|
}
|
|
@@ -26013,7 +26021,7 @@ const zi = g.createContext(null), V0 = ({
|
|
|
26013
26021
|
variant: w,
|
|
26014
26022
|
widthOverrides: v
|
|
26015
26023
|
}) => {
|
|
26016
|
-
const R = it(), [
|
|
26024
|
+
const R = it(), [O, B] = Tt("STANDARD"), [D, M] = Tt(!1), W = Iu([d], Cn), U = xu([_], Cn);
|
|
26017
26025
|
g.useEffect(() => {
|
|
26018
26026
|
Cn.isInitialized || Cn.initialize(o, E, s);
|
|
26019
26027
|
}, [o, E, s, Cn.isInitialized]), g.useEffect(() => {
|
|
@@ -26032,7 +26040,7 @@ const zi = g.createContext(null), V0 = ({
|
|
|
26032
26040
|
useDarkMode: T,
|
|
26033
26041
|
widthOverrides: v
|
|
26034
26042
|
}, Oe = {
|
|
26035
|
-
carouselSize:
|
|
26043
|
+
carouselSize: O,
|
|
26036
26044
|
variant: w,
|
|
26037
26045
|
...oe
|
|
26038
26046
|
};
|
|
@@ -26042,7 +26050,7 @@ const zi = g.createContext(null), V0 = ({
|
|
|
26042
26050
|
/* @__PURE__ */ t(au, {}),
|
|
26043
26051
|
/* @__PURE__ */ t(V0, { onEvent: W, onPageview: U, store: Cn, children: /* @__PURE__ */ l(ly, { heightOverrides: r, widthOverrides: v, children: [
|
|
26044
26052
|
(e || !Cn.isInitialized) && /* @__PURE__ */ t(dy, {}),
|
|
26045
|
-
|
|
26053
|
+
D && C && /* @__PURE__ */ t(
|
|
26046
26054
|
cy,
|
|
26047
26055
|
{
|
|
26048
26056
|
clientColorScheme: i,
|
|
@@ -26051,7 +26059,7 @@ const zi = g.createContext(null), V0 = ({
|
|
|
26051
26059
|
widthOverrides: v
|
|
26052
26060
|
}
|
|
26053
26061
|
),
|
|
26054
|
-
|
|
26062
|
+
D && !!n.length && /* @__PURE__ */ t(
|
|
26055
26063
|
oy,
|
|
26056
26064
|
{
|
|
26057
26065
|
beats: n,
|
|
@@ -26061,8 +26069,8 @@ const zi = g.createContext(null), V0 = ({
|
|
|
26061
26069
|
...oe
|
|
26062
26070
|
}
|
|
26063
26071
|
),
|
|
26064
|
-
|
|
26065
|
-
|
|
26072
|
+
D && !n.length && x && /* @__PURE__ */ t(hl, { clientColorScheme: i, ...Oe }),
|
|
26073
|
+
D && !n.length && !x && /* @__PURE__ */ t(gl, { ...Oe })
|
|
26066
26074
|
] }) })
|
|
26067
26075
|
] })
|
|
26068
26076
|
);
|
|
@@ -26490,7 +26498,7 @@ const zi = g.createContext(null), V0 = ({
|
|
|
26490
26498
|
onAddRecurringTransaction: i = () => null
|
|
26491
26499
|
}) => {
|
|
26492
26500
|
const { recurring: a } = I(), { filter: o, setFilter: r, transactions: s } = Ae(), { addRepeatingTransaction: c } = nn(), [d, _] = g.useState(!1), [u, h] = g.useState(""), [m, C] = g.useState(pe.EveryMonth), [f, y] = g.useState(1), [E, T] = g.useState(15), x = g.useMemo(
|
|
26493
|
-
() => s.find((
|
|
26501
|
+
() => s.find((O) => O.guid === u),
|
|
26494
26502
|
[u]
|
|
26495
26503
|
), w = () => {
|
|
26496
26504
|
_(!0), r(e ? { ...o, custom: Kn } : { ...o, custom: Di });
|
|
@@ -26500,12 +26508,12 @@ const zi = g.createContext(null), V0 = ({
|
|
|
26500
26508
|
return;
|
|
26501
26509
|
}
|
|
26502
26510
|
i();
|
|
26503
|
-
const
|
|
26511
|
+
const O = nf(m, He(x.date)), B = {
|
|
26504
26512
|
account_guid: x.account_guid,
|
|
26505
26513
|
amount: x.amount,
|
|
26506
26514
|
merchant_guid: x.merchant_guid,
|
|
26507
26515
|
description: x.feed_description || x.description,
|
|
26508
|
-
predicted_occurs_on: ki(
|
|
26516
|
+
predicted_occurs_on: ki(O, { representation: "date" }),
|
|
26509
26517
|
recurrence_day: f,
|
|
26510
26518
|
recurrence_type: m,
|
|
26511
26519
|
repeating_transaction_type: e ? xn.Income : xn.Bill,
|
|
@@ -26536,13 +26544,13 @@ const zi = g.createContext(null), V0 = ({
|
|
|
26536
26544
|
my,
|
|
26537
26545
|
{
|
|
26538
26546
|
description: e ? a.add_income_description : a.add_expense_description,
|
|
26539
|
-
onSearch: (
|
|
26547
|
+
onSearch: (O) => {
|
|
26540
26548
|
r({
|
|
26541
26549
|
...o,
|
|
26542
|
-
custom: (B) => e ?
|
|
26550
|
+
custom: (B) => e ? O ? Go(B, O) : Kn(B) : O ? wc(B, O) : Di(B)
|
|
26543
26551
|
});
|
|
26544
26552
|
},
|
|
26545
|
-
onSelected: (
|
|
26553
|
+
onSelected: (O) => h(O)
|
|
26546
26554
|
}
|
|
26547
26555
|
)
|
|
26548
26556
|
}
|
|
@@ -27586,19 +27594,19 @@ const zi = g.createContext(null), V0 = ({
|
|
|
27586
27594
|
() => El(n, i, My(e)),
|
|
27587
27595
|
[n, i]
|
|
27588
27596
|
), v = g.useMemo(
|
|
27589
|
-
() => _.find((
|
|
27597
|
+
() => _.find((D) => D.guid === f),
|
|
27590
27598
|
[f]
|
|
27591
|
-
), R = (
|
|
27599
|
+
), R = (D, M) => {
|
|
27592
27600
|
C(M), h("");
|
|
27593
|
-
},
|
|
27594
|
-
h(u ===
|
|
27595
|
-
}, B = (
|
|
27601
|
+
}, O = (D) => {
|
|
27602
|
+
h(u === D || D === "0" ? "" : D);
|
|
27603
|
+
}, B = (D) => {
|
|
27596
27604
|
const M = {
|
|
27597
27605
|
accounts: c,
|
|
27598
27606
|
dateRange: r
|
|
27599
27607
|
};
|
|
27600
27608
|
if (m === 0)
|
|
27601
|
-
if (
|
|
27609
|
+
if (D === "other") {
|
|
27602
27610
|
const W = x.categoryData.find((U) => U.guid === "other");
|
|
27603
27611
|
d({
|
|
27604
27612
|
...M,
|
|
@@ -27607,12 +27615,12 @@ const zi = g.createContext(null), V0 = ({
|
|
|
27607
27615
|
} else
|
|
27608
27616
|
d({
|
|
27609
27617
|
...M,
|
|
27610
|
-
custom: (W) =>
|
|
27618
|
+
custom: (W) => D ? W.top_level_category_guid === D : W.top_level_category_guid !== N.INCOME
|
|
27611
27619
|
});
|
|
27612
27620
|
else
|
|
27613
27621
|
d({
|
|
27614
27622
|
...M,
|
|
27615
|
-
custom: (W) =>
|
|
27623
|
+
custom: (W) => D ? W.category_guid === D : W.top_level_category_guid === N.INCOME
|
|
27616
27624
|
});
|
|
27617
27625
|
T(!0);
|
|
27618
27626
|
};
|
|
@@ -27649,7 +27657,7 @@ const zi = g.createContext(null), V0 = ({
|
|
|
27649
27657
|
As,
|
|
27650
27658
|
{
|
|
27651
27659
|
data: x,
|
|
27652
|
-
onSelected:
|
|
27660
|
+
onSelected: O,
|
|
27653
27661
|
onViewTransactions: B,
|
|
27654
27662
|
selectedId: u,
|
|
27655
27663
|
title: o.spend_tab_title
|
|
@@ -27659,7 +27667,7 @@ const zi = g.createContext(null), V0 = ({
|
|
|
27659
27667
|
As,
|
|
27660
27668
|
{
|
|
27661
27669
|
data: w,
|
|
27662
|
-
onSelected:
|
|
27670
|
+
onSelected: O,
|
|
27663
27671
|
onViewTransactions: B,
|
|
27664
27672
|
selectedId: u,
|
|
27665
27673
|
title: o.income_tab_title
|
|
@@ -27812,15 +27820,15 @@ const $y = (e) => e.reduce((i, a) => {
|
|
|
27812
27820
|
(y) => y.category_guid === i || y.top_level_category_guid === i
|
|
27813
27821
|
) : e).reduce(
|
|
27814
27822
|
(y, E) => {
|
|
27815
|
-
const { category_guid: T, top_level_category_guid: x, month: w, total: v, year: R } = E,
|
|
27816
|
-
y[
|
|
27817
|
-
id:
|
|
27818
|
-
category:
|
|
27823
|
+
const { category_guid: T, top_level_category_guid: x, month: w, total: v, year: R } = E, O = i ? T : x;
|
|
27824
|
+
y[O] || (y[O] = {
|
|
27825
|
+
id: O,
|
|
27826
|
+
category: O,
|
|
27819
27827
|
category_guid: T,
|
|
27820
27828
|
top_level_category_guid: x
|
|
27821
27829
|
});
|
|
27822
27830
|
const B = ie(new Date(R, w - 1), J.MONTH_SHORT);
|
|
27823
|
-
return y[
|
|
27831
|
+
return y[O][B] || (y[O][B] = 0), y[O][B] = y[O][B] + v, y;
|
|
27824
27832
|
},
|
|
27825
27833
|
{}
|
|
27826
27834
|
);
|
|
@@ -27881,7 +27889,7 @@ const $y = (e) => e.reduce((i, a) => {
|
|
|
27881
27889
|
}, Zy = A(qy), Qy = {
|
|
27882
27890
|
view_transactions: "View Transactions"
|
|
27883
27891
|
}, Jy = ({ onBackClick: e, sx: n }) => {
|
|
27884
|
-
const i = it(), { onEvent: a } = z(), { isDesktop: o, isTablet: r, isMobile: s } = be(), { visibleAccounts: c } = we(), { loadMonthlyCategoryTotals: d, monthlyCategoryTotals: _, getCategoryName: u } = ze(), { sortedTransactions: h } = Ae(), { isCopyLoaded: m, isInitialized: C, selectedAccounts: f, setSelectedAccounts: y } = _e(), { trends: E } = I(), T = i.palette.mode === "dark", [x, w] = g.useState(!1), [v, R] = g.useState(!1), [
|
|
27892
|
+
const i = it(), { onEvent: a } = z(), { isDesktop: o, isTablet: r, isMobile: s } = be(), { visibleAccounts: c } = we(), { loadMonthlyCategoryTotals: d, monthlyCategoryTotals: _, getCategoryName: u } = ze(), { sortedTransactions: h } = Ae(), { isCopyLoaded: m, isInitialized: C, selectedAccounts: f, setSelectedAccounts: y } = _e(), { trends: E } = I(), T = i.palette.mode === "dark", [x, w] = g.useState(!1), [v, R] = g.useState(!1), [O, B] = g.useState("Chart"), [D, M] = g.useState(""), [W, U] = g.useState({
|
|
27885
27893
|
start: dr(Xe(qt(/* @__PURE__ */ new Date(), 6)), 1),
|
|
27886
27894
|
end: Xe(/* @__PURE__ */ new Date())
|
|
27887
27895
|
});
|
|
@@ -27902,14 +27910,14 @@ const $y = (e) => e.reduce((i, a) => {
|
|
|
27902
27910
|
_,
|
|
27903
27911
|
W.start,
|
|
27904
27912
|
W.end
|
|
27905
|
-
), ot =
|
|
27906
|
-
(Ye) => Ye.top_level_category_guid ===
|
|
27913
|
+
), ot = D.length ? De.filter(
|
|
27914
|
+
(Ye) => Ye.top_level_category_guid === D || Ye.category_guid === D
|
|
27907
27915
|
) : vm(De);
|
|
27908
27916
|
return {
|
|
27909
27917
|
stackedDatasets: ot.filter(Im),
|
|
27910
27918
|
unstackedDatasets: ot.filter(La)
|
|
27911
27919
|
};
|
|
27912
|
-
}, [_,
|
|
27920
|
+
}, [_, D, W]), Oe = g.useMemo(() => {
|
|
27913
27921
|
const De = ie(
|
|
27914
27922
|
W.start,
|
|
27915
27923
|
s ? J.MONTH_SHORT_YEAR : J.MONTH_YEAR
|
|
@@ -27919,7 +27927,7 @@ const $y = (e) => e.reduce((i, a) => {
|
|
|
27919
27927
|
);
|
|
27920
27928
|
return `${De} - ${ot}`;
|
|
27921
27929
|
}, [W, s]), ee = (De, ot) => {
|
|
27922
|
-
B(ot ??
|
|
27930
|
+
B(ot ?? O), a(F.TRENDS_CLICK_TOGGLE);
|
|
27923
27931
|
}, Ee = (De) => {
|
|
27924
27932
|
const ot = dr(De?.[0], 1), Ye = De?.[1], le = ru(Ye, ot);
|
|
27925
27933
|
U({ start: ot, end: Ye }), a(F.TRENDS_CLICK_DATE, {
|
|
@@ -27977,7 +27985,7 @@ const $y = (e) => e.reduce((i, a) => {
|
|
|
27977
27985
|
textOverflow: "unset"
|
|
27978
27986
|
},
|
|
27979
27987
|
variant: o ? "H3" : "Body",
|
|
27980
|
-
children: u(
|
|
27988
|
+
children: u(D) || E.sub_title
|
|
27981
27989
|
}
|
|
27982
27990
|
),
|
|
27983
27991
|
/* @__PURE__ */ t(p, { variant: o ? "Body" : "Small", children: Oe })
|
|
@@ -27988,7 +27996,7 @@ const $y = (e) => e.reduce((i, a) => {
|
|
|
27988
27996
|
exclusive: !0,
|
|
27989
27997
|
onChange: ee,
|
|
27990
27998
|
orientation: "horizontal",
|
|
27991
|
-
value:
|
|
27999
|
+
value: O,
|
|
27992
28000
|
children: ["Chart", "Table"].map((De) => /* @__PURE__ */ t(
|
|
27993
28001
|
si,
|
|
27994
28002
|
{
|
|
@@ -28025,14 +28033,14 @@ const $y = (e) => e.reduce((i, a) => {
|
|
|
28025
28033
|
}
|
|
28026
28034
|
),
|
|
28027
28035
|
/* @__PURE__ */ l(b, { alignItems: "center", flexDirection: "row", width: "100%", children: [
|
|
28028
|
-
/* @__PURE__ */ t(L, { flexGrow: 1, children:
|
|
28036
|
+
/* @__PURE__ */ t(L, { flexGrow: 1, children: D && /* @__PURE__ */ l(Q, { onClick: () => M(""), sx: { p: 0, pr: 5 }, children: [
|
|
28029
28037
|
/* @__PURE__ */ t(H, { name: "arrow_back" }),
|
|
28030
28038
|
E.all_categories
|
|
28031
28039
|
] }) }),
|
|
28032
28040
|
/* @__PURE__ */ t(Q, { onClick: () => R(!0), sx: { px: 5 }, children: `${Qy.view_transactions} (${h.length})` })
|
|
28033
28041
|
] }),
|
|
28034
28042
|
/* @__PURE__ */ l(L, { children: [
|
|
28035
|
-
|
|
28043
|
+
O === "Chart" && /* @__PURE__ */ t(
|
|
28036
28044
|
i_,
|
|
28037
28045
|
{
|
|
28038
28046
|
onClickLegend: Le,
|
|
@@ -28043,12 +28051,12 @@ const $y = (e) => e.reduce((i, a) => {
|
|
|
28043
28051
|
unstackedDatasets: oe.unstackedDatasets
|
|
28044
28052
|
}
|
|
28045
28053
|
),
|
|
28046
|
-
|
|
28054
|
+
O === "Table" && /* @__PURE__ */ t(
|
|
28047
28055
|
jy,
|
|
28048
28056
|
{
|
|
28049
28057
|
monthlyCategoryTotals: _,
|
|
28050
28058
|
onClickRow: q,
|
|
28051
|
-
selectedCategory:
|
|
28059
|
+
selectedCategory: D,
|
|
28052
28060
|
selectedDateRange: W
|
|
28053
28061
|
}
|
|
28054
28062
|
)
|
|
@@ -28059,7 +28067,7 @@ const $y = (e) => e.reduce((i, a) => {
|
|
|
28059
28067
|
/* @__PURE__ */ t(
|
|
28060
28068
|
Zy,
|
|
28061
28069
|
{
|
|
28062
|
-
categoryGuid:
|
|
28070
|
+
categoryGuid: D,
|
|
28063
28071
|
dateRange: W,
|
|
28064
28072
|
isOpen: v,
|
|
28065
28073
|
onClose: () => R(!1)
|