@mx-cartographer/experiences 5.3.1-alpha.mega17 → 5.3.1-alpha.mega18
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 +201 -197
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1624,7 +1624,7 @@ const ac = (A, t) => {
|
|
|
1624
1624
|
selectedIndex: c,
|
|
1625
1625
|
valueFormatter: d = (f) => `${f}`
|
|
1626
1626
|
}) => {
|
|
1627
|
-
const f = KA(), E = uc(f), l = n.reduce(vc, []), v = A !== void 0 ? A : l.reduce(hc, 0) / l.length, u = Math.max(...l), H = Math.min(...l), b = l.reduce(lc, 0), p = u >= 0, y = H < 0, x = xr(p, y, r), w = xr(y, p, r), D = Rc(v, u, H, x || w),
|
|
1627
|
+
const f = KA(), E = uc(f), l = n.reduce(vc, []), v = A !== void 0 ? A : l.reduce(hc, 0) / l.length, u = Math.max(...l), H = Math.min(...l), b = l.reduce(lc, 0), p = u >= 0, y = H < 0, x = xr(p, y, r), w = xr(y, p, r), D = Rc(v, u, H, x || w), j = (O) => c === void 0 || O === c ? i : `${i}80`, m = () => /* @__PURE__ */ e(
|
|
1628
1628
|
yr,
|
|
1629
1629
|
{
|
|
1630
1630
|
averageLineHeight: D,
|
|
@@ -1638,7 +1638,7 @@ const ac = (A, t) => {
|
|
|
1638
1638
|
);
|
|
1639
1639
|
return /* @__PURE__ */ s("div", { className: `mx-cmn-bar-chart ${E}`, children: [
|
|
1640
1640
|
/* @__PURE__ */ s("div", { className: "mx-cmn-chart-container", children: [
|
|
1641
|
-
/* @__PURE__ */ e(
|
|
1641
|
+
/* @__PURE__ */ e(m, {}),
|
|
1642
1642
|
n.map((O, T) => /* @__PURE__ */ s(h.Fragment, { children: [
|
|
1643
1643
|
/* @__PURE__ */ e(
|
|
1644
1644
|
yr,
|
|
@@ -1646,7 +1646,7 @@ const ac = (A, t) => {
|
|
|
1646
1646
|
ariaLabel: O.ariaLabel,
|
|
1647
1647
|
averageLineHeight: D,
|
|
1648
1648
|
bottomHeight: w,
|
|
1649
|
-
color:
|
|
1649
|
+
color: j(T),
|
|
1650
1650
|
index: T,
|
|
1651
1651
|
onClick: a,
|
|
1652
1652
|
range: b,
|
|
@@ -1658,7 +1658,7 @@ const ac = (A, t) => {
|
|
|
1658
1658
|
xAxisLabel: O.label
|
|
1659
1659
|
}
|
|
1660
1660
|
),
|
|
1661
|
-
/* @__PURE__ */ e(
|
|
1661
|
+
/* @__PURE__ */ e(m, {})
|
|
1662
1662
|
] }, `column-${T}`))
|
|
1663
1663
|
] }),
|
|
1664
1664
|
/* @__PURE__ */ e(cc, { color: i, labelAverage: o, labelMain: I })
|
|
@@ -1793,9 +1793,9 @@ const gc = ({
|
|
|
1793
1793
|
const u = h.useMemo(() => {
|
|
1794
1794
|
const x = Pa({ start: QA(c), end: BA(c) }), w = [];
|
|
1795
1795
|
for (let D = 0; D < x.length; D++) {
|
|
1796
|
-
const
|
|
1797
|
-
for (let T = 0; T <
|
|
1798
|
-
O.push(
|
|
1796
|
+
const j = x[D], m = ua({ start: j, end: We(j, 6) }), O = [];
|
|
1797
|
+
for (let T = 0; T < m.length; T++)
|
|
1798
|
+
O.push(m[T]);
|
|
1799
1799
|
w.push(O);
|
|
1800
1800
|
}
|
|
1801
1801
|
return w;
|
|
@@ -1826,7 +1826,7 @@ const gc = ({
|
|
|
1826
1826
|
}
|
|
1827
1827
|
),
|
|
1828
1828
|
/* @__PURE__ */ e("div", { className: "mx-cmn-calendar-header-row", children: u[0].map((x, w) => /* @__PURE__ */ e("div", { className: "mx-cmn-calendar-header-cell", children: /* @__PURE__ */ e(R, { bold: !0, variant: "Small", children: le(x, "EEEEE") }) }, w)) }),
|
|
1829
|
-
u.map((x, w) => /* @__PURE__ */ e("div", { className: "mx-cmn-calendar-week", children: x.map((D,
|
|
1829
|
+
u.map((x, w) => /* @__PURE__ */ e("div", { className: "mx-cmn-calendar-week", children: x.map((D, j) => /* @__PURE__ */ e(
|
|
1830
1830
|
Hc,
|
|
1831
1831
|
{
|
|
1832
1832
|
beginDate: f,
|
|
@@ -1835,7 +1835,7 @@ const gc = ({
|
|
|
1835
1835
|
isInMonth: ba(D, c),
|
|
1836
1836
|
onClick: H
|
|
1837
1837
|
},
|
|
1838
|
-
|
|
1838
|
+
j
|
|
1839
1839
|
)) }, `w-${w}`)),
|
|
1840
1840
|
/* @__PURE__ */ e("div", { className: "mx-cmn-calendar-today-container", children: /* @__PURE__ */ e($, { onClick: b, size: "small", variant: "text", children: A.today }) })
|
|
1841
1841
|
] }) });
|
|
@@ -2028,15 +2028,15 @@ const gc = ({
|
|
|
2028
2028
|
valueFormatterString: v = "0,0",
|
|
2029
2029
|
width: u
|
|
2030
2030
|
}) => {
|
|
2031
|
-
const H = oe(), b = i.flat().map((
|
|
2031
|
+
const H = oe(), b = i.flat().map((j) => j.x), p = i.flat().map((j) => j.y), y = Math.round(p.reduce((j, m) => m + j, 0) / p.length), x = Math.floor(Math.min(...p) / 100) * 100, w = Math.ceil(Math.max(...p) / 100) * 100, D = i.map((j, m) => ({
|
|
2032
2032
|
type: c ? "bar" : "line",
|
|
2033
2033
|
curve: "linear",
|
|
2034
|
-
color: c ? H.palette.chart?.chart6 : t[
|
|
2035
|
-
data:
|
|
2034
|
+
color: c ? H.palette.chart?.chart6 : t[m] ?? H.palette.primary.main,
|
|
2035
|
+
data: j.map((O) => O.y),
|
|
2036
2036
|
area: d,
|
|
2037
2037
|
baseline: A,
|
|
2038
2038
|
showMark: !0,
|
|
2039
|
-
label: r[
|
|
2039
|
+
label: r[m],
|
|
2040
2040
|
valueFormatter: (O) => M(O || 0, v)
|
|
2041
2041
|
}));
|
|
2042
2042
|
return /* @__PURE__ */ s("div", { style: { position: "relative" }, children: [
|
|
@@ -2068,7 +2068,7 @@ const gc = ({
|
|
|
2068
2068
|
max: w,
|
|
2069
2069
|
color: [H.palette.background.paper, t[0] ?? H.palette.primary.main]
|
|
2070
2070
|
} : void 0,
|
|
2071
|
-
valueFormatter: (
|
|
2071
|
+
valueFormatter: (j) => M(j, v)
|
|
2072
2072
|
}
|
|
2073
2073
|
],
|
|
2074
2074
|
children: [
|
|
@@ -2077,7 +2077,7 @@ const gc = ({
|
|
|
2077
2077
|
Da,
|
|
2078
2078
|
{
|
|
2079
2079
|
slots: d && D.length < 2 ? {
|
|
2080
|
-
line: (
|
|
2080
|
+
line: (j) => /* @__PURE__ */ e(jc, { ...j, lineColor: t[0] ?? H.palette.primary.main })
|
|
2081
2081
|
} : void 0
|
|
2082
2082
|
}
|
|
2083
2083
|
),
|
|
@@ -2085,14 +2085,14 @@ const gc = ({
|
|
|
2085
2085
|
ja,
|
|
2086
2086
|
{
|
|
2087
2087
|
slots: l ? {
|
|
2088
|
-
mark: (
|
|
2088
|
+
mark: (j) => /* @__PURE__ */ e(
|
|
2089
2089
|
Dc,
|
|
2090
2090
|
{
|
|
2091
2091
|
handlers: I,
|
|
2092
2092
|
showLabel: E,
|
|
2093
|
-
style: a?.(
|
|
2093
|
+
style: a?.(j.dataIndex) ?? {},
|
|
2094
2094
|
yData: p,
|
|
2095
|
-
...
|
|
2095
|
+
...j
|
|
2096
2096
|
}
|
|
2097
2097
|
)
|
|
2098
2098
|
} : void 0
|
|
@@ -2101,7 +2101,7 @@ const gc = ({
|
|
|
2101
2101
|
/* @__PURE__ */ e(
|
|
2102
2102
|
ma,
|
|
2103
2103
|
{
|
|
2104
|
-
barLabel: (
|
|
2104
|
+
barLabel: (j) => Number(j.value) > 0 ? `$${j.value}` : null,
|
|
2105
2105
|
borderRadius: 10
|
|
2106
2106
|
}
|
|
2107
2107
|
),
|
|
@@ -2332,7 +2332,7 @@ const gc = ({
|
|
|
2332
2332
|
hoveredAreaData: null,
|
|
2333
2333
|
isAreaHovered: !1,
|
|
2334
2334
|
cursorPos: { x: 0, y: 0 }
|
|
2335
|
-
}), { hoveredSeriesId: H, hoveredAreaData: b, isAreaHovered: p, cursorPos: y } = v, x = p && H && b, w = !x, D = [...r, ...o],
|
|
2335
|
+
}), { hoveredSeriesId: H, hoveredAreaData: b, isAreaHovered: p, cursorPos: y } = v, x = p && H && b, w = !x, D = [...r, ...o], j = D[0]?.dataset.length ?? 0, m = D.flatMap((J) => J.dataset.map((wA) => wA.x)), O = D.flatMap((J) => J.dataset.map((wA) => wA.y)), T = r[0]?.dataset?.map(
|
|
2336
2336
|
(J, wA) => r.reduce((VA, Ze) => VA + Ze.dataset[wA]?.y || 0, 0)
|
|
2337
2337
|
) ?? [0], tA = Math.max(...T), Y = Math.max(
|
|
2338
2338
|
...o.flatMap((J) => J.dataset.map((wA) => wA.y))
|
|
@@ -2391,7 +2391,7 @@ const gc = ({
|
|
|
2391
2391
|
}), t?.(VA);
|
|
2392
2392
|
else if (Zi) {
|
|
2393
2393
|
const Vt = Ze?.data.map((Ji, _i) => ({
|
|
2394
|
-
x:
|
|
2394
|
+
x: m[_i],
|
|
2395
2395
|
y: Ji
|
|
2396
2396
|
})) ?? [];
|
|
2397
2397
|
u({
|
|
@@ -2465,7 +2465,7 @@ const gc = ({
|
|
|
2465
2465
|
Nc,
|
|
2466
2466
|
{
|
|
2467
2467
|
categoryGuids: WA(H),
|
|
2468
|
-
xData:
|
|
2468
|
+
xData: m,
|
|
2469
2469
|
...J
|
|
2470
2470
|
}
|
|
2471
2471
|
) : null
|
|
@@ -2477,10 +2477,10 @@ const gc = ({
|
|
|
2477
2477
|
width: a,
|
|
2478
2478
|
xAxis: [
|
|
2479
2479
|
{
|
|
2480
|
-
data:
|
|
2480
|
+
data: m,
|
|
2481
2481
|
scaleType: "time",
|
|
2482
2482
|
valueFormatter: (J) => nA(J, AA.MONTH_SHORT_YEAR),
|
|
2483
|
-
tickNumber:
|
|
2483
|
+
tickNumber: j
|
|
2484
2484
|
// How many ticks to show on the x-axis
|
|
2485
2485
|
}
|
|
2486
2486
|
],
|
|
@@ -2712,7 +2712,7 @@ const gc = ({
|
|
|
2712
2712
|
toolTipContent: o = "",
|
|
2713
2713
|
variant: I = "outlined"
|
|
2714
2714
|
}) => {
|
|
2715
|
-
const a = RA(), c = a.palette.mode === "dark", { isMobile: d } = zA(), [f, E] = h.useState(n), [l, v] = h.useState(i.dateRangePickerCopy.dateRangeThisMonth), [u, H] = h.useState(f), [b, p] = h.useState(!1), [y, x] = h.useState(!0), [w, D] = h.useState(6),
|
|
2715
|
+
const a = RA(), c = a.palette.mode === "dark", { isMobile: d } = zA(), [f, E] = h.useState(n), [l, v] = h.useState(i.dateRangePickerCopy.dateRangeThisMonth), [u, H] = h.useState(f), [b, p] = h.useState(!1), [y, x] = h.useState(!0), [w, D] = h.useState(6), j = {
|
|
2716
2716
|
buttons: [
|
|
2717
2717
|
{ label: "3M", value: 3 },
|
|
2718
2718
|
{ label: "6M", value: 6 },
|
|
@@ -2729,9 +2729,9 @@ const gc = ({
|
|
|
2729
2729
|
h.useEffect(() => {
|
|
2730
2730
|
H(n);
|
|
2731
2731
|
}, [n]), h.useEffect(() => {
|
|
2732
|
-
(I === "timeframebuttons" || I === "timeframetabs") && A.onRangeChanged(
|
|
2732
|
+
(I === "timeframebuttons" || I === "timeframetabs") && A.onRangeChanged(m());
|
|
2733
2733
|
}, [w]);
|
|
2734
|
-
const
|
|
2734
|
+
const m = () => {
|
|
2735
2735
|
const Y = BA(zt());
|
|
2736
2736
|
return [BA(Ne(Y, w)), Y];
|
|
2737
2737
|
}, O = (Y) => {
|
|
@@ -2851,7 +2851,7 @@ const gc = ({
|
|
|
2851
2851
|
exclusive: !0,
|
|
2852
2852
|
orientation: "horizontal",
|
|
2853
2853
|
value: w,
|
|
2854
|
-
children:
|
|
2854
|
+
children: j.buttons.map((Y) => /* @__PURE__ */ e(
|
|
2855
2855
|
gn,
|
|
2856
2856
|
{
|
|
2857
2857
|
onClick: () => tA(Y.value),
|
|
@@ -2893,7 +2893,7 @@ const gc = ({
|
|
|
2893
2893
|
textColor: "primary",
|
|
2894
2894
|
value: w,
|
|
2895
2895
|
variant: "fullWidth",
|
|
2896
|
-
children:
|
|
2896
|
+
children: j.tabs.map((Y) => /* @__PURE__ */ e(
|
|
2897
2897
|
GA,
|
|
2898
2898
|
{
|
|
2899
2899
|
label: /* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: Y.label }),
|
|
@@ -3153,7 +3153,7 @@ const pt = ({
|
|
|
3153
3153
|
sx: E = {},
|
|
3154
3154
|
title: l = ""
|
|
3155
3155
|
}) => {
|
|
3156
|
-
const [v, { height: u, width: H }] = II(), { onEvent: b } = K(), { isDesktop: p, isLargeDesktop: y, isMobile: x, isTablet: w } = zA(), { displayedDateRange: D, selectedAccountGuids:
|
|
3156
|
+
const [v, { height: u, width: H }] = II(), { onEvent: b } = K(), { isDesktop: p, isLargeDesktop: y, isMobile: x, isTablet: w } = zA(), { displayedDateRange: D, selectedAccountGuids: j, setSelectedAccountGuids: m } = pA(), { common: O } = X(), T = () => {
|
|
3157
3157
|
c && (c(), b(V.WIDGET_BACK_CLICK));
|
|
3158
3158
|
}, tA = {
|
|
3159
3159
|
accountFilterOptionsCopy: {
|
|
@@ -3225,9 +3225,9 @@ const pt = ({
|
|
|
3225
3225
|
accounts: A,
|
|
3226
3226
|
copy: tA,
|
|
3227
3227
|
onFilterClick: (uA) => {
|
|
3228
|
-
|
|
3228
|
+
m(uA), d?.();
|
|
3229
3229
|
},
|
|
3230
|
-
selectedAccountGuids:
|
|
3230
|
+
selectedAccountGuids: j,
|
|
3231
3231
|
showAccountNumbers: !1,
|
|
3232
3232
|
variant: "text"
|
|
3233
3233
|
}
|
|
@@ -3385,7 +3385,7 @@ const jr = "connect_widget", mr = "connections_widget", Wc = ({
|
|
|
3385
3385
|
}) => {
|
|
3386
3386
|
const [l, v] = h.useState(""), { common: u } = X(), H = r || u.currency_input, b = KA(), p = kc(b), y = /^[0-9]*$/, x = /^(\d)*(\,)?([0-9]{1,2})?$/, w = /^(\d)*(\.)?([0-9]{1,2})?$/;
|
|
3387
3387
|
let D;
|
|
3388
|
-
const
|
|
3388
|
+
const j = h.useRef(Wa());
|
|
3389
3389
|
if (A)
|
|
3390
3390
|
switch ($s()) {
|
|
3391
3391
|
case ui.CAD:
|
|
@@ -3398,9 +3398,9 @@ const jr = "connect_widget", mr = "connections_widget", Wc = ({
|
|
|
3398
3398
|
else
|
|
3399
3399
|
D = y;
|
|
3400
3400
|
h.useEffect(() => {
|
|
3401
|
-
|
|
3401
|
+
m(i);
|
|
3402
3402
|
}, [i]);
|
|
3403
|
-
const
|
|
3403
|
+
const m = (O) => {
|
|
3404
3404
|
!n && (O === "" || O === "." || O === ",") ? (v(""), f?.(!1)) : Number(O) < c ? (v(
|
|
3405
3405
|
z(
|
|
3406
3406
|
H.error_amount_must_be_equal_to,
|
|
@@ -3430,8 +3430,8 @@ const jr = "connect_widget", mr = "connections_widget", Wc = ({
|
|
|
3430
3430
|
pattern: "[0-9]*"
|
|
3431
3431
|
},
|
|
3432
3432
|
label: a,
|
|
3433
|
-
name: `currency-input-${
|
|
3434
|
-
onChange: (O) =>
|
|
3433
|
+
name: `currency-input-${j.current}`,
|
|
3434
|
+
onChange: (O) => m(O.target.value),
|
|
3435
3435
|
value: i,
|
|
3436
3436
|
...E
|
|
3437
3437
|
}
|
|
@@ -5181,51 +5181,55 @@ const Pe = () => {
|
|
|
5181
5181
|
width: a = "100%",
|
|
5182
5182
|
zeroState: c = /* @__PURE__ */ e(Df, {})
|
|
5183
5183
|
}) => {
|
|
5184
|
-
const { isLoading: d, sortedTransactions: f
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5184
|
+
const { isLoading: d, sortedTransactions: f } = PA(), E = h.useMemo(
|
|
5185
|
+
() => r ? f : f.filter((y) => !y.accountIsClosed),
|
|
5186
|
+
[f, f]
|
|
5187
|
+
), { setShowInsights: l, toggleSplit: v } = Pe(), { onEvent: u } = K(), H = (y) => {
|
|
5188
|
+
const x = E.find((w) => w.guid === y);
|
|
5189
|
+
if (x?.has_been_split) {
|
|
5190
|
+
v(x.guid);
|
|
5190
5191
|
return;
|
|
5191
5192
|
}
|
|
5192
|
-
|
|
5193
|
-
account_guid:
|
|
5194
|
-
transaction_guid:
|
|
5195
|
-
}), n?.(
|
|
5196
|
-
},
|
|
5197
|
-
count:
|
|
5198
|
-
getScrollElement: () =>
|
|
5199
|
-
estimateSize: (
|
|
5193
|
+
u(V.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
|
|
5194
|
+
account_guid: x?.account_guid,
|
|
5195
|
+
transaction_guid: y
|
|
5196
|
+
}), n?.(y);
|
|
5197
|
+
}, b = h.useRef(null), p = Oo({
|
|
5198
|
+
count: E.length,
|
|
5199
|
+
getScrollElement: () => b.current,
|
|
5200
|
+
estimateSize: (y) => Yr + (Tr(y, E) ? Vr : 0),
|
|
5200
5201
|
overscan: 5
|
|
5201
5202
|
});
|
|
5202
|
-
return h.useEffect(() =>
|
|
5203
|
+
return h.useEffect(() => p.measure, [E]), h.useEffect(() => l(o), [o]), /* @__PURE__ */ e(rA, { children: /* @__PURE__ */ e(L, { height: t, overflow: "auto", ref: b, width: a, children: /* @__PURE__ */ s(
|
|
5203
5204
|
L,
|
|
5204
5205
|
{
|
|
5205
|
-
height:
|
|
5206
|
+
height: (
|
|
5207
|
+
// set the height to auto when there are no transactions so the zero state isn't set to 0
|
|
5208
|
+
p.getVirtualItems().length === 0 ? "auto" : p.getTotalSize()
|
|
5209
|
+
),
|
|
5206
5210
|
position: "relative",
|
|
5207
5211
|
width: "100%",
|
|
5208
5212
|
children: [
|
|
5209
5213
|
(d || I) && i,
|
|
5210
|
-
!d && !I &&
|
|
5211
|
-
!d && !I &&
|
|
5212
|
-
const
|
|
5214
|
+
!d && !I && p.getVirtualItems().length === 0 && c,
|
|
5215
|
+
!d && !I && p.getVirtualItems().length > 0 && p.getVirtualItems().map((y) => {
|
|
5216
|
+
const x = E[y.index], w = Tr(y.index, E), D = jf(y.index, E), j = Yr + (w ? Vr : 0);
|
|
5213
5217
|
return /* @__PURE__ */ s(
|
|
5214
5218
|
L,
|
|
5215
5219
|
{
|
|
5216
5220
|
sx: {
|
|
5217
5221
|
height: j,
|
|
5218
5222
|
position: "absolute",
|
|
5219
|
-
transform: `translateY(${
|
|
5223
|
+
transform: `translateY(${y.start}px)`,
|
|
5220
5224
|
width: "100%"
|
|
5221
5225
|
},
|
|
5222
5226
|
children: [
|
|
5223
|
-
|
|
5224
|
-
/* @__PURE__ */ e(Bn, { onClick:
|
|
5225
|
-
/* @__PURE__ */ e(G, { sx: { ml:
|
|
5227
|
+
w && /* @__PURE__ */ e(Sn, { bgcolor: A, children: Mi(x.date) }),
|
|
5228
|
+
/* @__PURE__ */ e(Bn, { onClick: H, transaction: x }),
|
|
5229
|
+
/* @__PURE__ */ e(G, { sx: { ml: D ? 24 : 0 } })
|
|
5226
5230
|
]
|
|
5227
5231
|
},
|
|
5228
|
-
|
|
5232
|
+
x.guid
|
|
5229
5233
|
);
|
|
5230
5234
|
})
|
|
5231
5235
|
]
|
|
@@ -6520,9 +6524,9 @@ const hI = ({ transaction: A }) => {
|
|
|
6520
6524
|
}), E(!0);
|
|
6521
6525
|
}, D = async () => {
|
|
6522
6526
|
t(S.ON_TRANSACTION_SPLIT_SAVE_CLICK), await i({ ...A, has_been_split: !0 }, u), E(!1);
|
|
6523
|
-
}, m = async () => {
|
|
6524
|
-
t(S.ON_TRANSACTION_SPLIT_CANCEL_CLICK), H([{ ...c }, { ...d }]), E(!1);
|
|
6525
6527
|
}, j = async () => {
|
|
6528
|
+
t(S.ON_TRANSACTION_SPLIT_CANCEL_CLICK), H([{ ...c }, { ...d }]), E(!1);
|
|
6529
|
+
}, m = async () => {
|
|
6526
6530
|
t(V.TRANSACTION_DETAILS_CLICK_UNSPLIT, {
|
|
6527
6531
|
transaction_guid: A.guid
|
|
6528
6532
|
});
|
|
@@ -6550,7 +6554,7 @@ const hI = ({ transaction: A }) => {
|
|
|
6550
6554
|
ariaLabelClose: r.close_aria,
|
|
6551
6555
|
isOpen: f,
|
|
6552
6556
|
isPrimaryDisabled: O,
|
|
6553
|
-
onClose:
|
|
6557
|
+
onClose: j,
|
|
6554
6558
|
onPrimaryAction: D,
|
|
6555
6559
|
primaryText: r.save_button,
|
|
6556
6560
|
secondaryText: r.cancel_button,
|
|
@@ -6579,7 +6583,7 @@ const hI = ({ transaction: A }) => {
|
|
|
6579
6583
|
onClose: () => {
|
|
6580
6584
|
I(!1), v(!1);
|
|
6581
6585
|
},
|
|
6582
|
-
onPrimaryAction:
|
|
6586
|
+
onPrimaryAction: m,
|
|
6583
6587
|
onSecondaryAction: () => {
|
|
6584
6588
|
t(S.ON_TRANSACTION_UNSPLIT_CANCEL);
|
|
6585
6589
|
},
|
|
@@ -7168,7 +7172,7 @@ const hI = ({ transaction: A }) => {
|
|
|
7168
7172
|
tags: p,
|
|
7169
7173
|
transactions: y,
|
|
7170
7174
|
updateTransaction: x
|
|
7171
|
-
} = PA(), { common: w, transactions: D } = X(), { userProfile:
|
|
7175
|
+
} = PA(), { common: w, transactions: D } = X(), { userProfile: j } = Ue(), { onEvent: m } = K(), {
|
|
7172
7176
|
displayedDateRange: O,
|
|
7173
7177
|
isInitialized: T,
|
|
7174
7178
|
selectedAccountGuids: tA,
|
|
@@ -7183,7 +7187,7 @@ const hI = ({ transaction: A }) => {
|
|
|
7183
7187
|
iA(kA, nr), b({
|
|
7184
7188
|
dateRange: { start: kA, end: nr },
|
|
7185
7189
|
accounts: Y.map((oa) => oa.guid)
|
|
7186
|
-
}), Ke(!0),
|
|
7190
|
+
}), Ke(!0), m(V.TRANSACTIONS_VIEW);
|
|
7187
7191
|
}, []), h.useEffect(() => {
|
|
7188
7192
|
JA && (b({
|
|
7189
7193
|
...u,
|
|
@@ -7202,18 +7206,18 @@ const hI = ({ transaction: A }) => {
|
|
|
7202
7206
|
f(kA), b({
|
|
7203
7207
|
...u,
|
|
7204
7208
|
searchTerm: kA
|
|
7205
|
-
}),
|
|
7209
|
+
}), m(V.TRANSACTIONS_CLICK_SEARCH, { search_term: kA });
|
|
7206
7210
|
}, Ki = () => {
|
|
7207
|
-
fI(y, p),
|
|
7211
|
+
fI(y, p), m(V.TRANSACTIONS_CLICK_EXPORT);
|
|
7208
7212
|
}, Zi = () => {
|
|
7209
7213
|
Yt.length > 0 ? (l({
|
|
7210
7214
|
...cI,
|
|
7211
7215
|
date: gA(fA()),
|
|
7212
|
-
user_guid:
|
|
7216
|
+
user_guid: j?.user_guid || ""
|
|
7213
7217
|
}), uA(
|
|
7214
7218
|
"addTransaction"
|
|
7215
7219
|
/* AddTransaction */
|
|
7216
|
-
),
|
|
7220
|
+
), m(V.TRANSACTIONS_CLICK_ADD)) : (fe(!0), m(V.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
|
|
7217
7221
|
}, Vt = async () => {
|
|
7218
7222
|
wA && await v(a), uA("");
|
|
7219
7223
|
}, Ji = () => {
|
|
@@ -7240,7 +7244,7 @@ const hI = ({ transaction: A }) => {
|
|
|
7240
7244
|
calendarActions: {
|
|
7241
7245
|
onRangeChanged: VA
|
|
7242
7246
|
},
|
|
7243
|
-
onAccountsFilterClick: () =>
|
|
7247
|
+
onAccountsFilterClick: () => m(V.ACCOUNTS_CLICK_FILTER),
|
|
7244
7248
|
onBackClick: A,
|
|
7245
7249
|
sx: n,
|
|
7246
7250
|
title: D.transactions_title,
|
|
@@ -7274,7 +7278,7 @@ const hI = ({ transaction: A }) => {
|
|
|
7274
7278
|
jA(kA), uA(
|
|
7275
7279
|
"transaction"
|
|
7276
7280
|
/* Transaction */
|
|
7277
|
-
),
|
|
7281
|
+
), m(V.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: kA });
|
|
7278
7282
|
}
|
|
7279
7283
|
}
|
|
7280
7284
|
)
|
|
@@ -7514,10 +7518,10 @@ const hI = ({ transaction: A }) => {
|
|
|
7514
7518
|
});
|
|
7515
7519
|
}, []), h.useEffect(() => {
|
|
7516
7520
|
if (p && A.sequenceGuid) {
|
|
7517
|
-
const D = I.filter((
|
|
7521
|
+
const D = I.filter((j) => j.sequenceGuid === A.sequenceGuid).map((j) => j.transactionGuid);
|
|
7518
7522
|
c({
|
|
7519
7523
|
...a,
|
|
7520
|
-
custom: (
|
|
7524
|
+
custom: (j) => !!D.find((m) => j.guid === m)
|
|
7521
7525
|
});
|
|
7522
7526
|
} else !p && A.scheduledPaymentGuid && c({
|
|
7523
7527
|
...a,
|
|
@@ -7953,7 +7957,7 @@ const hI = ({ transaction: A }) => {
|
|
|
7953
7957
|
onAddActivity: i = () => null
|
|
7954
7958
|
}) => {
|
|
7955
7959
|
const { recurring: n } = X(), { addCashflowEvent: r, addCashflowSequence: o, addScheduledPayment: I } = ZA(), { filter: a, setFilter: c, transactions: d } = PA(), [f, E] = h.useState(!1), [l, v] = h.useState(""), [u, H] = h.useState(U.EveryMonth), [b, p] = h.useState(null), y = h.useMemo(
|
|
7956
|
-
() => d.find((
|
|
7960
|
+
() => d.find((j) => j.guid === l),
|
|
7957
7961
|
[l]
|
|
7958
7962
|
), x = () => {
|
|
7959
7963
|
E(!0), c(A ? { ...a, custom: ii } : { ...a, custom: Pn });
|
|
@@ -7963,14 +7967,14 @@ const hI = ({ transaction: A }) => {
|
|
|
7963
7967
|
return;
|
|
7964
7968
|
}
|
|
7965
7969
|
if (A) {
|
|
7966
|
-
const
|
|
7967
|
-
if (
|
|
7968
|
-
const O = zI(
|
|
7970
|
+
const j = HI(y, u, b), m = await o(j);
|
|
7971
|
+
if (m) {
|
|
7972
|
+
const O = zI(m, y);
|
|
7969
7973
|
await r(O);
|
|
7970
7974
|
}
|
|
7971
7975
|
} else {
|
|
7972
|
-
const
|
|
7973
|
-
await I(
|
|
7976
|
+
const j = AE(y, u, b);
|
|
7977
|
+
await I(j, y);
|
|
7974
7978
|
}
|
|
7975
7979
|
D();
|
|
7976
7980
|
}, D = () => {
|
|
@@ -7996,13 +8000,13 @@ const hI = ({ transaction: A }) => {
|
|
|
7996
8000
|
CI,
|
|
7997
8001
|
{
|
|
7998
8002
|
description: A ? n.add_income_description : n.add_expense_description,
|
|
7999
|
-
onSearch: (
|
|
8003
|
+
onSearch: (j) => {
|
|
8000
8004
|
c({
|
|
8001
8005
|
...a,
|
|
8002
|
-
custom: (
|
|
8006
|
+
custom: (m) => A ? j ? XI(m, j) : ii(m) : j ? iE(m, j) : Pn(m)
|
|
8003
8007
|
});
|
|
8004
8008
|
},
|
|
8005
|
-
onSelected: (
|
|
8009
|
+
onSelected: (j) => v(j)
|
|
8006
8010
|
}
|
|
8007
8011
|
)
|
|
8008
8012
|
}
|
|
@@ -8529,7 +8533,7 @@ const hI = ({ transaction: A }) => {
|
|
|
8529
8533
|
selectedDayActivities: a,
|
|
8530
8534
|
setSelectedDay: c,
|
|
8531
8535
|
upcomingActivities: d
|
|
8532
|
-
} = ZA(), [f, E] = h.useState(0), { onEvent: l } = K(), v = n.filter(en), u = o.filter(en), H = r.filter(en), b = v.filter(di).reduce(Ut, 0), p = u.filter(di).reduce(Ut, 0), y = H.filter(di).reduce(Ut, 0), x = v.filter(di).length, w = v.filter(An).reduce(Ut, 0), D = u.filter(An).reduce(Ut, 0),
|
|
8536
|
+
} = ZA(), [f, E] = h.useState(0), { onEvent: l } = K(), v = n.filter(en), u = o.filter(en), H = r.filter(en), b = v.filter(di).reduce(Ut, 0), p = u.filter(di).reduce(Ut, 0), y = H.filter(di).reduce(Ut, 0), x = v.filter(di).length, w = v.filter(An).reduce(Ut, 0), D = u.filter(An).reduce(Ut, 0), j = v.filter(An).length, m = (tA, Y) => {
|
|
8533
8537
|
E(Y);
|
|
8534
8538
|
}, O = (tA) => {
|
|
8535
8539
|
l(V.RECURRING_ACTIVITY_CLICK_UPCOMING, {
|
|
@@ -8558,7 +8562,7 @@ const hI = ({ transaction: A }) => {
|
|
|
8558
8562
|
expected: w,
|
|
8559
8563
|
paid: D,
|
|
8560
8564
|
title: A.deposits,
|
|
8561
|
-
total:
|
|
8565
|
+
total: j
|
|
8562
8566
|
}
|
|
8563
8567
|
),
|
|
8564
8568
|
!i && !t && /* @__PURE__ */ e(
|
|
@@ -8570,7 +8574,7 @@ const hI = ({ transaction: A }) => {
|
|
|
8570
8574
|
}
|
|
8571
8575
|
),
|
|
8572
8576
|
(i || t) && /* @__PURE__ */ s(L, { children: [
|
|
8573
|
-
/* @__PURE__ */ s(Se, { onChange:
|
|
8577
|
+
/* @__PURE__ */ s(Se, { onChange: m, value: f, variant: "fullWidth", children: [
|
|
8574
8578
|
/* @__PURE__ */ e(
|
|
8575
8579
|
GA,
|
|
8576
8580
|
{
|
|
@@ -9697,20 +9701,20 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9697
9701
|
transform: rotate(360deg);
|
|
9698
9702
|
}
|
|
9699
9703
|
`, Ah = () => {
|
|
9700
|
-
const { addCashflowEvent: A, addCashflowSequence: t, cashflowSequences: i } = ZA(), { cashflow: n, common: r } = X(), { completeOnboarding: o } = Nn(), { isDirty: I } = Nt(), { isMobile: a } = zA(), { setDisplayedDate: c } = pA(), { filter: d, setFilter: f, transactions: E } = PA(), l = RA(), [v, u] = Fe(!0), [H, b] = h.useState(U.EveryMonth), [p, y] = Fe(!1), [x, w] = h.useState(null), [D,
|
|
9704
|
+
const { addCashflowEvent: A, addCashflowSequence: t, cashflowSequences: i } = ZA(), { cashflow: n, common: r } = X(), { completeOnboarding: o } = Nn(), { isDirty: I } = Nt(), { isMobile: a } = zA(), { setDisplayedDate: c } = pA(), { filter: d, setFilter: f, transactions: E } = PA(), l = RA(), [v, u] = Fe(!0), [H, b] = h.useState(U.EveryMonth), [p, y] = Fe(!1), [x, w] = h.useState(null), [D, j] = Fe(1), [m, O] = Fe([]), [T, tA] = Fe(""), Y = h.useMemo(
|
|
9701
9705
|
() => E.find((cA) => cA.guid === T),
|
|
9702
9706
|
[T]
|
|
9703
9707
|
), iA = !!i.length, oA = async () => {
|
|
9704
|
-
|
|
9708
|
+
j(2), c(
|
|
9705
9709
|
// Beginning of the month, 90 days before today
|
|
9706
9710
|
QA(Ve(fA(), 90)),
|
|
9707
9711
|
fA()
|
|
9708
|
-
), f({ ...d, custom: ii }),
|
|
9712
|
+
), f({ ...d, custom: ii }), j(3);
|
|
9709
9713
|
}, sA = async () => {
|
|
9710
|
-
if (!(
|
|
9714
|
+
if (!(m.length < 1)) {
|
|
9711
9715
|
y(!0);
|
|
9712
|
-
for (let cA = 0; cA <
|
|
9713
|
-
const jA =
|
|
9716
|
+
for (let cA = 0; cA < m.length; cA++) {
|
|
9717
|
+
const jA = m[cA], WA = HI(
|
|
9714
9718
|
jA,
|
|
9715
9719
|
jA.frequency,
|
|
9716
9720
|
jA.nextDate
|
|
@@ -9722,7 +9726,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9722
9726
|
}
|
|
9723
9727
|
o();
|
|
9724
9728
|
}
|
|
9725
|
-
}, uA = !Y && v || !Y &&
|
|
9729
|
+
}, uA = !Y && v || !Y && m.length < 1;
|
|
9726
9730
|
return /* @__PURE__ */ s(
|
|
9727
9731
|
L,
|
|
9728
9732
|
{
|
|
@@ -9764,13 +9768,13 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9764
9768
|
children: [
|
|
9765
9769
|
/* @__PURE__ */ e(it, { pb: 12, children: n.add_income_title }),
|
|
9766
9770
|
/* @__PURE__ */ e(HA, { mb: 24, children: n.add_income_description }),
|
|
9767
|
-
|
|
9768
|
-
/* @__PURE__ */ e(rA, { children:
|
|
9771
|
+
m.length > 0 && !Y && /* @__PURE__ */ s(Z, { children: [
|
|
9772
|
+
/* @__PURE__ */ e(rA, { children: m.map((cA, jA) => /* @__PURE__ */ s(h.Fragment, { children: [
|
|
9769
9773
|
/* @__PURE__ */ e(Sn, { bgcolor: "background.paper", children: Mi(
|
|
9770
9774
|
gA(cA.nextDate || cA.date)
|
|
9771
9775
|
) }),
|
|
9772
9776
|
/* @__PURE__ */ e(Bn, { transaction: cA }),
|
|
9773
|
-
jA !==
|
|
9777
|
+
jA !== m.length - 1 && /* @__PURE__ */ e(G, {})
|
|
9774
9778
|
] }, cA.guid)) }),
|
|
9775
9779
|
/* @__PURE__ */ s(P, { alignItems: "center", direction: "row", children: [
|
|
9776
9780
|
/* @__PURE__ */ e(G, { sx: { flexGrow: 1 } }),
|
|
@@ -9817,7 +9821,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9817
9821
|
{
|
|
9818
9822
|
"aria-disabled": !Y || !x,
|
|
9819
9823
|
onClick: () => {
|
|
9820
|
-
const cA = [...
|
|
9824
|
+
const cA = [...m];
|
|
9821
9825
|
cA.push({ ...Y, nextDate: x, frequency: H }), O(cA), tA("");
|
|
9822
9826
|
},
|
|
9823
9827
|
variant: "contained",
|
|
@@ -9836,11 +9840,11 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9836
9840
|
)
|
|
9837
9841
|
] })
|
|
9838
9842
|
] }),
|
|
9839
|
-
|
|
9843
|
+
m.length > 0 && !Y && /* @__PURE__ */ s(P, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
|
|
9840
9844
|
/* @__PURE__ */ e(
|
|
9841
9845
|
$,
|
|
9842
9846
|
{
|
|
9843
|
-
"aria-disabled":
|
|
9847
|
+
"aria-disabled": m.length < 1 || p,
|
|
9844
9848
|
onClick: sA,
|
|
9845
9849
|
startIcon: p ? /* @__PURE__ */ e(
|
|
9846
9850
|
q,
|
|
@@ -10621,26 +10625,26 @@ const OI = ({
|
|
|
10621
10625
|
)
|
|
10622
10626
|
].sort((w, D) => w - D).map((w) => new Date(w)), E = d.map((w) => {
|
|
10623
10627
|
const D = new Map(w.dataset.map((O) => [new Date(O.x).getTime(), O.y]));
|
|
10624
|
-
let
|
|
10625
|
-
const
|
|
10626
|
-
const T = D.get(O.getTime()) ??
|
|
10627
|
-
return
|
|
10628
|
+
let j = D.get(f[0].getTime()) ?? 0;
|
|
10629
|
+
const m = f.map((O) => {
|
|
10630
|
+
const T = D.get(O.getTime()) ?? j;
|
|
10631
|
+
return j = T, { x: O, y: T };
|
|
10628
10632
|
});
|
|
10629
|
-
return { ...w, dataset:
|
|
10633
|
+
return { ...w, dataset: m };
|
|
10630
10634
|
}), l = E.reduce(
|
|
10631
10635
|
(w, D) => w + (D.dataset[0]?.y ?? 0),
|
|
10632
10636
|
0
|
|
10633
10637
|
), v = f.map((w, D) => {
|
|
10634
|
-
const
|
|
10635
|
-
return { x: w, y:
|
|
10638
|
+
const j = D / (f.length - 1), m = l * (1 - j);
|
|
10639
|
+
return { x: w, y: m };
|
|
10636
10640
|
}), u = Math.ceil(l / 100) * 100, H = f, b = E.map((w, D) => {
|
|
10637
|
-
const
|
|
10641
|
+
const j = 1 - D / E.length * 0.5, m = ph(Xh, j);
|
|
10638
10642
|
return {
|
|
10639
10643
|
id: `debt-${D}`,
|
|
10640
10644
|
guid: w.guid,
|
|
10641
10645
|
label: w.name,
|
|
10642
10646
|
data: w.dataset.map((O) => O.y),
|
|
10643
|
-
color:
|
|
10647
|
+
color: m,
|
|
10644
10648
|
curve: "linear",
|
|
10645
10649
|
type: "line",
|
|
10646
10650
|
area: !0,
|
|
@@ -10668,11 +10672,11 @@ const OI = ({
|
|
|
10668
10672
|
height: t,
|
|
10669
10673
|
onAreaClick: (w, D) => {
|
|
10670
10674
|
o?.();
|
|
10671
|
-
const
|
|
10672
|
-
c(V.DEBTS_CLICK_CHART_AREA, { account_guid:
|
|
10675
|
+
const j = b.find((m) => m.id === D.seriesId);
|
|
10676
|
+
c(V.DEBTS_CLICK_CHART_AREA, { account_guid: j?.guid });
|
|
10673
10677
|
},
|
|
10674
10678
|
onHighlightChange: (w) => {
|
|
10675
|
-
const D = b.find((
|
|
10679
|
+
const D = b.find((j) => j.id === w?.seriesId)?.guid;
|
|
10676
10680
|
I?.(D ?? "");
|
|
10677
10681
|
},
|
|
10678
10682
|
series: b,
|
|
@@ -11555,10 +11559,10 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
|
|
|
11555
11559
|
}
|
|
11556
11560
|
);
|
|
11557
11561
|
}), tl = ({ onBackClick: A, sx: t }) => {
|
|
11558
|
-
const [i, n] = h.useState(!1), [r, o] = h.useState(!1), [I, a] = h.useState(!1), [c, d] = h.useState(""), { isDesktop: f, isMobile: E } = zA(), { debts: l } = X(), { onEvent: v } = K(), { isInitialized: u, setSelectedAccounts: H } = pA(), { setSelectedAccount: b } = Xe(), { selectedDebtPriority: p, setSelectedDebtChartData: y } = ke(), { accounts: x } = CA(), { loadGoals: w, monthlyCashFlowProfile: D } = FA(), { debts:
|
|
11562
|
+
const [i, n] = h.useState(!1), [r, o] = h.useState(!1), [I, a] = h.useState(!1), [c, d] = h.useState(""), { isDesktop: f, isMobile: E } = zA(), { debts: l } = X(), { onEvent: v } = K(), { isInitialized: u, setSelectedAccounts: H } = pA(), { setSelectedAccount: b } = Xe(), { selectedDebtPriority: p, setSelectedDebtChartData: y } = ke(), { accounts: x } = CA(), { loadGoals: w, monthlyCashFlowProfile: D } = FA(), { debts: j } = Ni(), m = h.useMemo(() => {
|
|
11559
11563
|
const oA = D?.extra_payment ?? 0;
|
|
11560
|
-
return Al(
|
|
11561
|
-
}, [
|
|
11564
|
+
return Al(j, p, oA);
|
|
11565
|
+
}, [j, p, D]);
|
|
11562
11566
|
h.useEffect(() => {
|
|
11563
11567
|
H(x), v(V.DEBTS_VIEW);
|
|
11564
11568
|
}, []), h.useEffect(() => {
|
|
@@ -11567,7 +11571,7 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
|
|
|
11567
11571
|
u && w().finally();
|
|
11568
11572
|
}, [u]);
|
|
11569
11573
|
const O = (oA) => d(oA), T = () => {
|
|
11570
|
-
const oA = x.find((uA) => uA.guid === c), sA =
|
|
11574
|
+
const oA = x.find((uA) => uA.guid === c), sA = m.find((uA) => uA.guid === c);
|
|
11571
11575
|
oA && b(oA), sA && y(sA), n(!0);
|
|
11572
11576
|
}, tA = () => v(V.DEBTS_CLICK_FILTER), Y = () => {
|
|
11573
11577
|
a(!0), v(V.DEBTS_CLICK_SNOWBALL_CTA);
|
|
@@ -11600,7 +11604,7 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
|
|
|
11600
11604
|
/* @__PURE__ */ e(
|
|
11601
11605
|
OI,
|
|
11602
11606
|
{
|
|
11603
|
-
debts:
|
|
11607
|
+
debts: m,
|
|
11604
11608
|
height: E ? 250 : void 0,
|
|
11605
11609
|
hoveredDebtGuid: c,
|
|
11606
11610
|
onClickArea: T,
|
|
@@ -11611,7 +11615,7 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
|
|
|
11611
11615
|
/* @__PURE__ */ e(
|
|
11612
11616
|
ah,
|
|
11613
11617
|
{
|
|
11614
|
-
debts:
|
|
11618
|
+
debts: m,
|
|
11615
11619
|
onClickCta: Y,
|
|
11616
11620
|
sx: { mb: E ? "0px" : "64px" }
|
|
11617
11621
|
}
|
|
@@ -11622,7 +11626,7 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
|
|
|
11622
11626
|
/* @__PURE__ */ e(P, { sx: { mx: E ? "-24px" : 0 }, children: /* @__PURE__ */ e(
|
|
11623
11627
|
Zh,
|
|
11624
11628
|
{
|
|
11625
|
-
debts:
|
|
11629
|
+
debts: m,
|
|
11626
11630
|
hoveredDebtGuid: c,
|
|
11627
11631
|
onClickRow: T,
|
|
11628
11632
|
onHoverRow: O
|
|
@@ -12621,17 +12625,17 @@ const cl = (A, t) => {
|
|
|
12621
12625
|
u ? (y = () => x(), p = i.save_button) : H && (y = () => D(), p = t.mark_as_complete_button);
|
|
12622
12626
|
const x = async () => {
|
|
12623
12627
|
if (a) {
|
|
12624
|
-
const
|
|
12625
|
-
|
|
12628
|
+
const j = a.track_type;
|
|
12629
|
+
j !== B.RETIREMENT_TRACK ? await n(a) : j === B.RETIREMENT_TRACK && await r({ ...a, target_amount: a.amount }), c(t.alert_goal_added), d(void 0), j && A?.(j);
|
|
12626
12630
|
}
|
|
12627
12631
|
}, w = async () => {
|
|
12628
12632
|
a && (a.track_type !== B.RETIREMENT_TRACK ? await o(a.guid) : a.track_type === B.RETIREMENT_TRACK && await I(a), c(t.alert_goal_deleted), d(void 0));
|
|
12629
12633
|
}, D = async () => {
|
|
12630
|
-
const
|
|
12634
|
+
const j = {
|
|
12631
12635
|
...a,
|
|
12632
12636
|
has_been_spent: !0
|
|
12633
12637
|
};
|
|
12634
|
-
await f(
|
|
12638
|
+
await f(j), c(t.alert_goal_completed), d(void 0);
|
|
12635
12639
|
};
|
|
12636
12640
|
return /* @__PURE__ */ s(P, { children: [
|
|
12637
12641
|
/* @__PURE__ */ e(
|
|
@@ -12693,10 +12697,10 @@ const cl = (A, t) => {
|
|
|
12693
12697
|
]
|
|
12694
12698
|
}
|
|
12695
12699
|
), jP = C(({ onBackClick: A, sx: t }) => {
|
|
12696
|
-
const { onEvent: i } = K(), { isMobile: n } = zA(), { accounts: r } = CA(), { isInitialized: o, setSelectedAccounts: I } = pA(), { goals: a, common: c } = X(), { alert: d, goals: f, loadGoals: E, monthlyCashFlowProfile: l, setAlert: v, retirmentGoals: u } = FA(), [H, b] = h.useState(0), [p, y] = h.useState(!1), x = l?.amount_allocated_for_savings_goals || 0, w = l?.amount_allocated_for_debt_goals || 0, D = l?.amount_allocated_for_retirement_goals || 0,
|
|
12700
|
+
const { onEvent: i } = K(), { isMobile: n } = zA(), { accounts: r } = CA(), { isInitialized: o, setSelectedAccounts: I } = pA(), { goals: a, common: c } = X(), { alert: d, goals: f, loadGoals: E, monthlyCashFlowProfile: l, setAlert: v, retirmentGoals: u } = FA(), [H, b] = h.useState(0), [p, y] = h.useState(!1), x = l?.amount_allocated_for_savings_goals || 0, w = l?.amount_allocated_for_debt_goals || 0, D = l?.amount_allocated_for_retirement_goals || 0, j = z(
|
|
12697
12701
|
n ? a.tab_subtitle_mobile : a.tab_subtitle,
|
|
12698
12702
|
M(x, "0,0")
|
|
12699
|
-
),
|
|
12703
|
+
), m = z(
|
|
12700
12704
|
n ? a.tab_subtitle_mobile : a.tab_subtitle,
|
|
12701
12705
|
M(w, "0,0")
|
|
12702
12706
|
), O = z(
|
|
@@ -12748,14 +12752,14 @@ const cl = (A, t) => {
|
|
|
12748
12752
|
GA,
|
|
12749
12753
|
{
|
|
12750
12754
|
disabled: iA,
|
|
12751
|
-
label: /* @__PURE__ */ e(tn, { subtitle:
|
|
12755
|
+
label: /* @__PURE__ */ e(tn, { subtitle: j, title: a.tab_saving_title })
|
|
12752
12756
|
}
|
|
12753
12757
|
),
|
|
12754
12758
|
/* @__PURE__ */ e(
|
|
12755
12759
|
GA,
|
|
12756
12760
|
{
|
|
12757
12761
|
disabled: iA,
|
|
12758
|
-
label: /* @__PURE__ */ e(tn, { subtitle:
|
|
12762
|
+
label: /* @__PURE__ */ e(tn, { subtitle: m, title: a.tab_debt_title })
|
|
12759
12763
|
}
|
|
12760
12764
|
),
|
|
12761
12765
|
/* @__PURE__ */ e(
|
|
@@ -13837,7 +13841,7 @@ const Sl = ({
|
|
|
13837
13841
|
selectedData: v,
|
|
13838
13842
|
setHoveredData: u,
|
|
13839
13843
|
setSelectedData: H
|
|
13840
|
-
} = Qc(), { isMobile: b } = zA(), { onEvent: p } = K(), [y, x] = h.useState(!1), [w, D] = h.useState(6), [
|
|
13844
|
+
} = Qc(), { isMobile: b } = zA(), { onEvent: p } = K(), [y, x] = h.useState(!1), [w, D] = h.useState(6), [j, m] = h.useState(!1), [O, T] = h.useState(!1), [tA, Y] = h.useState(!1), iA = async () => {
|
|
13841
13845
|
await E(i), await f(w), x(!0);
|
|
13842
13846
|
};
|
|
13843
13847
|
h.useEffect(() => {
|
|
@@ -13850,7 +13854,7 @@ const Sl = ({
|
|
|
13850
13854
|
p(V.NET_WORTH_WIDGET_CLICK_TIMEFRAME, { time_period: w + "M" }), f(w);
|
|
13851
13855
|
}, [w]);
|
|
13852
13856
|
const oA = (Ie, bA) => {
|
|
13853
|
-
H(bA), Ie.currentTarget instanceof HTMLDivElement &&
|
|
13857
|
+
H(bA), Ie.currentTarget instanceof HTMLDivElement && m(!0);
|
|
13854
13858
|
}, sA = (Ie) => {
|
|
13855
13859
|
u(Ie);
|
|
13856
13860
|
}, uA = () => {
|
|
@@ -13921,8 +13925,8 @@ const Sl = ({
|
|
|
13921
13925
|
IA,
|
|
13922
13926
|
{
|
|
13923
13927
|
ariaLabelClose: "Close",
|
|
13924
|
-
isOpen:
|
|
13925
|
-
onClose: () =>
|
|
13928
|
+
isOpen: j,
|
|
13929
|
+
onClose: () => m(!1),
|
|
13926
13930
|
shouldShowHeaderBorders: !1,
|
|
13927
13931
|
shouldShowHeaderShadow: !0,
|
|
13928
13932
|
title: o.gains_and_losses,
|
|
@@ -17330,37 +17334,37 @@ const u9 = ({
|
|
|
17330
17334
|
isOpen: !1,
|
|
17331
17335
|
topic: "",
|
|
17332
17336
|
type: void 0
|
|
17333
|
-
}), b = zv.map((
|
|
17334
|
-
...
|
|
17335
|
-
title: A.help_by_category_list[
|
|
17336
|
-
topics:
|
|
17337
|
+
}), b = zv.map((m) => ({
|
|
17338
|
+
...m,
|
|
17339
|
+
title: A.help_by_category_list[m.guid].label,
|
|
17340
|
+
topics: m.topics.map(({ type: O }, T) => ({
|
|
17337
17341
|
type: O,
|
|
17338
|
-
label: A.help_by_category_list[
|
|
17342
|
+
label: A.help_by_category_list[m.guid].topics[T]
|
|
17339
17343
|
}))
|
|
17340
|
-
})), p = Object.keys(A.popular_topics_list).map((
|
|
17341
|
-
name: A.popular_topics_list[
|
|
17344
|
+
})), p = Object.keys(A.popular_topics_list).map((m, O) => ({
|
|
17345
|
+
name: A.popular_topics_list[m],
|
|
17342
17346
|
type: Cv[O].type
|
|
17343
17347
|
})), y = () => {
|
|
17344
17348
|
d(""), H({ isOpen: !1, topic: "", type: void 0 });
|
|
17345
|
-
}, x = (
|
|
17349
|
+
}, x = (m) => {
|
|
17346
17350
|
a.email && r({
|
|
17347
17351
|
email: a.email,
|
|
17348
|
-
message: c ? `Institution: ${c}, ${
|
|
17352
|
+
message: c ? `Institution: ${c}, ${m}` : m,
|
|
17349
17353
|
title: u.topic || "Contact Support"
|
|
17350
17354
|
});
|
|
17351
|
-
}, w = (
|
|
17352
|
-
O === "other" ? v(!0) : H({ isOpen: !0, topic:
|
|
17355
|
+
}, w = (m, O) => {
|
|
17356
|
+
O === "other" ? v(!0) : H({ isOpen: !0, topic: m, type: O });
|
|
17353
17357
|
}, D = () => {
|
|
17354
17358
|
I(""), E(!1), v(!1), y();
|
|
17355
|
-
},
|
|
17359
|
+
}, j = (m) => {
|
|
17356
17360
|
if (!a.email) {
|
|
17357
17361
|
I(A.request_support_email_not_exists_message, "error");
|
|
17358
17362
|
return;
|
|
17359
17363
|
}
|
|
17360
17364
|
r({
|
|
17361
17365
|
email: a.email,
|
|
17362
|
-
message: `Institution Website: ${
|
|
17363
|
-
title: `Institution Request: ${
|
|
17366
|
+
message: `Institution Website: ${m.institutionWebsite}${m.institutionLoginPage ? ` Institution Login Page: ${m.institutionLoginPage}` : ""} `,
|
|
17367
|
+
title: `Institution Request: ${m.institutionName}`
|
|
17364
17368
|
});
|
|
17365
17369
|
};
|
|
17366
17370
|
return /* @__PURE__ */ e(IA, { isOpen: t, onClose: i, title: A.request_support, children: o ? /* @__PURE__ */ e(ee, {}) : /* @__PURE__ */ s(h.Fragment, { children: [
|
|
@@ -17440,7 +17444,7 @@ const u9 = ({
|
|
|
17440
17444
|
copy: A,
|
|
17441
17445
|
isOpen: l,
|
|
17442
17446
|
onClose: () => v(!1),
|
|
17443
|
-
onSave:
|
|
17447
|
+
onSave: j
|
|
17444
17448
|
}
|
|
17445
17449
|
),
|
|
17446
17450
|
/* @__PURE__ */ e(
|
|
@@ -17448,8 +17452,8 @@ const u9 = ({
|
|
|
17448
17452
|
{
|
|
17449
17453
|
copy: A,
|
|
17450
17454
|
isOpen: u.isOpen,
|
|
17451
|
-
onClick: (
|
|
17452
|
-
d(
|
|
17455
|
+
onClick: (m) => {
|
|
17456
|
+
d(m), u.type === "internal" && E(!0);
|
|
17453
17457
|
},
|
|
17454
17458
|
onClose: y,
|
|
17455
17459
|
topic: u.topic
|
|
@@ -17657,7 +17661,7 @@ const u9 = ({
|
|
|
17657
17661
|
)
|
|
17658
17662
|
] });
|
|
17659
17663
|
}), Yv = () => {
|
|
17660
|
-
const { common: A, settings: t } = X(), { isDesktop: i, isMobile: n, isSmallMobile: r, isTablet: o } = zA(), { updateUser: I } = ge(), { user: a } = Ue(), [c, d] = h.useState(a.first_name), [f, E] = h.useState(a.last_name), [l, v] = h.useState(a.email), [u, H] = h.useState(a.phone), [b, p] = h.useState(a.postal_code), [y, x] = h.useState(a.credit_score), [w, D] = h.useState(yA(a.birthday ?? 0)),
|
|
17664
|
+
const { common: A, settings: t } = X(), { isDesktop: i, isMobile: n, isSmallMobile: r, isTablet: o } = zA(), { updateUser: I } = ge(), { user: a } = Ue(), [c, d] = h.useState(a.first_name), [f, E] = h.useState(a.last_name), [l, v] = h.useState(a.email), [u, H] = h.useState(a.phone), [b, p] = h.useState(a.postal_code), [y, x] = h.useState(a.credit_score), [w, D] = h.useState(yA(a.birthday ?? 0)), j = l && !a.email_is_verified, m = u && !a.phone_is_verified, O = async () => {
|
|
17661
17665
|
const T = {
|
|
17662
17666
|
...a,
|
|
17663
17667
|
first_name: c,
|
|
@@ -17712,7 +17716,7 @@ const u9 = ({
|
|
|
17712
17716
|
}
|
|
17713
17717
|
),
|
|
17714
17718
|
/* @__PURE__ */ s(P, { direction: n ? "column" : "row", children: [
|
|
17715
|
-
/* @__PURE__ */ s(P, { sx: { mb:
|
|
17719
|
+
/* @__PURE__ */ s(P, { sx: { mb: j ? 20 : 44, mr: n ? 0 : 24 }, children: [
|
|
17716
17720
|
/* @__PURE__ */ e(
|
|
17717
17721
|
$A,
|
|
17718
17722
|
{
|
|
@@ -17721,9 +17725,9 @@ const u9 = ({
|
|
|
17721
17725
|
onChange: (T) => v(T.target.value)
|
|
17722
17726
|
}
|
|
17723
17727
|
),
|
|
17724
|
-
|
|
17728
|
+
j && /* @__PURE__ */ e(Mv, {})
|
|
17725
17729
|
] }),
|
|
17726
|
-
/* @__PURE__ */ s(P, { sx: { mb:
|
|
17730
|
+
/* @__PURE__ */ s(P, { sx: { mb: m ? 20 : 44 }, children: [
|
|
17727
17731
|
/* @__PURE__ */ e(
|
|
17728
17732
|
$A,
|
|
17729
17733
|
{
|
|
@@ -17733,7 +17737,7 @@ const u9 = ({
|
|
|
17733
17737
|
type: "tel"
|
|
17734
17738
|
}
|
|
17735
17739
|
),
|
|
17736
|
-
|
|
17740
|
+
m && /* @__PURE__ */ e(Tv, {})
|
|
17737
17741
|
] })
|
|
17738
17742
|
] }),
|
|
17739
17743
|
/* @__PURE__ */ s(P, { direction: n ? "column" : "row", spacing: n ? 44 : 24, sx: { mb: 44 }, children: [
|
|
@@ -20484,21 +20488,21 @@ const SR = ({
|
|
|
20484
20488
|
] });
|
|
20485
20489
|
}), ZR = C(() => {
|
|
20486
20490
|
const A = RA(), { onEvent: t } = K(), { accounts: i } = CA(), { budgets: n, common: r, recurring: o } = X(), { incomeCategories: I, spendCategories: a } = qA(), { detailedBudgets: c, totalBudgeted: d } = te(), { projectedIncome: f } = ZA(), { setFilter: E } = PA(), [l, v] = h.useState(!1), [u, H] = h.useMemo(() => {
|
|
20487
|
-
const x = a.reduce((
|
|
20491
|
+
const x = a.reduce((m, O) => m + O.totalAmount, 0);
|
|
20488
20492
|
let w = x / d;
|
|
20489
20493
|
w > 1 && (w = 1);
|
|
20490
20494
|
let D = A.palette.success.main;
|
|
20491
20495
|
w > 0.8 && w < 1 ? D = A.palette.warning.main : w >= 1 && (D = A.palette.error.main);
|
|
20492
|
-
const
|
|
20496
|
+
const j = [
|
|
20493
20497
|
{
|
|
20494
20498
|
color: D,
|
|
20495
20499
|
percentage: `${w}`
|
|
20496
20500
|
}
|
|
20497
20501
|
];
|
|
20498
|
-
return [x,
|
|
20502
|
+
return [x, j];
|
|
20499
20503
|
}, [c, a]), [b, p] = h.useMemo(() => {
|
|
20500
20504
|
const x = Math.abs(
|
|
20501
|
-
I.reduce((
|
|
20505
|
+
I.reduce((j, m) => j + m.totalAmount, 0)
|
|
20502
20506
|
);
|
|
20503
20507
|
let w = x / f;
|
|
20504
20508
|
w > 1 && (w = 1);
|
|
@@ -20938,7 +20942,7 @@ const SR = ({
|
|
|
20938
20942
|
o && !I && (y(`${o.amount}`), l(!0), f({
|
|
20939
20943
|
accounts: A,
|
|
20940
20944
|
dateRange: n,
|
|
20941
|
-
custom: (
|
|
20945
|
+
custom: (j) => j.category_guid === o.category_guid || j.top_level_category_guid === o.category_guid
|
|
20942
20946
|
}));
|
|
20943
20947
|
}, [o]);
|
|
20944
20948
|
const x = async () => {
|
|
@@ -21005,13 +21009,13 @@ const SR = ({
|
|
|
21005
21009
|
)
|
|
21006
21010
|
] });
|
|
21007
21011
|
}), Ro = 480, VP = C(({ onBackClick: A, sx: t }) => {
|
|
21008
|
-
const i = RA(), { onEvent: n } = K(), { accounts: r } = CA(), { budgets: o, common: I } = X(), { isInitialized: a, selectedAccounts: c, setDisplayedDate: d, setSelectedAccounts: f } = pA(), { alert: E, dateRange: l, loadBudgets: v, setDateRange: u, setAlert: H, setTheme: b } = te(), { loadCashflowSequences: p } = ZA(), { isDesktop: y, isTablet: x } = zA(), { reloadCategoryTotals: w } = qA(), [D,
|
|
21012
|
+
const i = RA(), { onEvent: n } = K(), { accounts: r } = CA(), { budgets: o, common: I } = X(), { isInitialized: a, selectedAccounts: c, setDisplayedDate: d, setSelectedAccounts: f } = pA(), { alert: E, dateRange: l, loadBudgets: v, setDateRange: u, setAlert: H, setTheme: b } = te(), { loadCashflowSequences: p } = ZA(), { isDesktop: y, isTablet: x } = zA(), { reloadCategoryTotals: w } = qA(), [D, j] = h.useState(!1), [m, O] = h.useState(!1);
|
|
21009
21013
|
h.useEffect(() => {
|
|
21010
21014
|
b(i), f(r), d(l.start, l.end), n(V.BUDGETS_VIEW);
|
|
21011
21015
|
}, []), h.useEffect(() => {
|
|
21012
21016
|
f(r);
|
|
21013
21017
|
}, [r]), h.useEffect(() => {
|
|
21014
|
-
a && (w(c, l.start, l.end).finally(), D || (p().finally(), v().finally(() =>
|
|
21018
|
+
a && (w(c, l.start, l.end).finally(), D || (p().finally(), v().finally(() => j(!0))));
|
|
21015
21019
|
}, [a, c, l]);
|
|
21016
21020
|
const T = (sA) => {
|
|
21017
21021
|
u({ start: sA[0] || /* @__PURE__ */ new Date(), end: sA[1] || /* @__PURE__ */ new Date() });
|
|
@@ -21069,7 +21073,7 @@ const SR = ({
|
|
|
21069
21073
|
IA,
|
|
21070
21074
|
{
|
|
21071
21075
|
ariaLabelClose: I.close_aria,
|
|
21072
|
-
isOpen:
|
|
21076
|
+
isOpen: m,
|
|
21073
21077
|
onClose: () => O(!1),
|
|
21074
21078
|
title: o.add_new_title,
|
|
21075
21079
|
children: /* @__PURE__ */ e(e3, { onRecalculateBudgets: iA })
|
|
@@ -21444,7 +21448,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
21444
21448
|
h.useEffect(() => {
|
|
21445
21449
|
H && H <= 325 && y(3);
|
|
21446
21450
|
}, [H]);
|
|
21447
|
-
const { cardStyle: x, linkTextStyle: w } = E, D = u ? x : { border: "none", boxShadow: "none", ...x },
|
|
21451
|
+
const { cardStyle: x, linkTextStyle: w } = E, D = u ? x : { border: "none", boxShadow: "none", ...x }, j = /* @__PURE__ */ e(
|
|
21448
21452
|
HA,
|
|
21449
21453
|
{
|
|
21450
21454
|
className: "mx-micro-card-description",
|
|
@@ -21509,18 +21513,18 @@ const si = h.createContext(null), u3 = ({
|
|
|
21509
21513
|
rt,
|
|
21510
21514
|
{
|
|
21511
21515
|
avatar: f && I,
|
|
21512
|
-
subheader: c &&
|
|
21516
|
+
subheader: c && j,
|
|
21513
21517
|
sx: { color: l.headerColor, p: 0 },
|
|
21514
21518
|
title: v,
|
|
21515
21519
|
titleTypographyProps: { fontSize: 15, fontWeight: 600, variant: "h3" }
|
|
21516
21520
|
}
|
|
21517
21521
|
),
|
|
21518
|
-
/* @__PURE__ */ e(Ce, { sx: { p: 0 }, children: !c &&
|
|
21522
|
+
/* @__PURE__ */ e(Ce, { sx: { p: 0 }, children: !c && j }),
|
|
21519
21523
|
!!t && /* @__PURE__ */ e(qs, { sx: { padding: 0 }, children: /* @__PURE__ */ e(
|
|
21520
21524
|
L,
|
|
21521
21525
|
{
|
|
21522
|
-
sx: (
|
|
21523
|
-
color: l.buttonColor ? l.buttonColor :
|
|
21526
|
+
sx: (m) => ({
|
|
21527
|
+
color: l.buttonColor ? l.buttonColor : m.palette.primary.main,
|
|
21524
21528
|
// TODO: Per Cameron the theme package in @mxenabled/mxui will be getting a big update and this will be theme.palette.primary_main
|
|
21525
21529
|
fontSize: 14,
|
|
21526
21530
|
fontWeight: "bold",
|
|
@@ -22580,13 +22584,13 @@ const si = h.createContext(null), u3 = ({
|
|
|
22580
22584
|
top: 0,
|
|
22581
22585
|
behavior: "smooth"
|
|
22582
22586
|
});
|
|
22583
|
-
},
|
|
22587
|
+
}, j = () => {
|
|
22584
22588
|
w(xe.ON_CAROUSEL_BACK_CLICK), l.current && l.current.scrollTo({
|
|
22585
22589
|
left: (l.current.offsetWidth + 8) * (Math.floor(v / (l.current.offsetWidth + 8)) - 1),
|
|
22586
22590
|
top: 0,
|
|
22587
22591
|
behavior: "smooth"
|
|
22588
22592
|
});
|
|
22589
|
-
},
|
|
22593
|
+
}, m = () => {
|
|
22590
22594
|
l.current && u(l.current.scrollLeft);
|
|
22591
22595
|
}, O = () => {
|
|
22592
22596
|
if (!p || !H) return;
|
|
@@ -22616,7 +22620,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22616
22620
|
"div",
|
|
22617
22621
|
{
|
|
22618
22622
|
className: "mx-insights-micro-carousel-container",
|
|
22619
|
-
onScroll:
|
|
22623
|
+
onScroll: m,
|
|
22620
22624
|
onTouchEnd: O,
|
|
22621
22625
|
onTouchMove: T,
|
|
22622
22626
|
onTouchStart: tA,
|
|
@@ -22659,7 +22663,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22659
22663
|
currentBeatIndex: iA,
|
|
22660
22664
|
numBeats: A.length + 1,
|
|
22661
22665
|
onNextClick: D,
|
|
22662
|
-
onPreviousClick:
|
|
22666
|
+
onPreviousClick: j,
|
|
22663
22667
|
scrollRightBoundary: oA,
|
|
22664
22668
|
scrollX: v
|
|
22665
22669
|
}
|
|
@@ -22918,12 +22922,12 @@ const si = h.createContext(null), u3 = ({
|
|
|
22918
22922
|
variant: x,
|
|
22919
22923
|
widthOverrides: w
|
|
22920
22924
|
}) => {
|
|
22921
|
-
const [D,
|
|
22925
|
+
const [D, j] = Fe("STANDARD"), [m, O] = Fe(!1), T = ac([c], Je), tA = sc([d], Je);
|
|
22922
22926
|
h.useEffect(() => {
|
|
22923
22927
|
Je.isInitialized || Je.initialize(r, b, I);
|
|
22924
22928
|
}, [r, b, I, Je.isInitialized]), h.useEffect(() => {
|
|
22925
22929
|
const oA = window.innerHeight;
|
|
22926
|
-
oA < 180 ?
|
|
22930
|
+
oA < 180 ? j("STANDARD") : oA >= 180 && oA < 200 ? j("LARGE") : oA >= 200 && oA < 248 ? j("XLARGE") : oA >= 248 && j("XXLARGE");
|
|
22927
22931
|
}, [window.innerHeight]), h.useEffect(() => {
|
|
22928
22932
|
O(!A && Je.isInitialized);
|
|
22929
22933
|
}, [A, Je.isInitialized]);
|
|
@@ -22947,7 +22951,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22947
22951
|
/* @__PURE__ */ e(Ms, {}),
|
|
22948
22952
|
/* @__PURE__ */ e(u3, { onEvent: T, onPageview: tA, store: Je, children: /* @__PURE__ */ s(G3, { heightOverrides: o, widthOverrides: w, children: [
|
|
22949
22953
|
(A || !Je.isInitialized) && /* @__PURE__ */ e(M3, {}),
|
|
22950
|
-
|
|
22954
|
+
m && v && /* @__PURE__ */ e(
|
|
22951
22955
|
q3,
|
|
22952
22956
|
{
|
|
22953
22957
|
clientColorScheme: i,
|
|
@@ -22956,7 +22960,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22956
22960
|
widthOverrides: w
|
|
22957
22961
|
}
|
|
22958
22962
|
),
|
|
22959
|
-
|
|
22963
|
+
m && !!t.length && /* @__PURE__ */ e(
|
|
22960
22964
|
O3,
|
|
22961
22965
|
{
|
|
22962
22966
|
beats: t,
|
|
@@ -22966,8 +22970,8 @@ const si = h.createContext(null), u3 = ({
|
|
|
22966
22970
|
...Y
|
|
22967
22971
|
}
|
|
22968
22972
|
),
|
|
22969
|
-
|
|
22970
|
-
|
|
22973
|
+
m && !t.length && y && /* @__PURE__ */ e(ta, { clientColorScheme: i, ...iA }),
|
|
22974
|
+
m && !t.length && !y && /* @__PURE__ */ e(ia, { ...iA })
|
|
22971
22975
|
] }) })
|
|
22972
22976
|
] })
|
|
22973
22977
|
);
|
|
@@ -23432,9 +23436,9 @@ const si = h.createContext(null), u3 = ({
|
|
|
23432
23436
|
[u]
|
|
23433
23437
|
), D = (O, T) => {
|
|
23434
23438
|
v(T), E("");
|
|
23435
|
-
}, m = (O) => {
|
|
23436
|
-
E(f === O || O === "0" ? "" : O);
|
|
23437
23439
|
}, j = (O) => {
|
|
23440
|
+
E(f === O || O === "0" ? "" : O);
|
|
23441
|
+
}, m = (O) => {
|
|
23438
23442
|
const T = {
|
|
23439
23443
|
accounts: a,
|
|
23440
23444
|
dateRange: o
|
|
@@ -23489,8 +23493,8 @@ const si = h.createContext(null), u3 = ({
|
|
|
23489
23493
|
Xo,
|
|
23490
23494
|
{
|
|
23491
23495
|
data: y,
|
|
23492
|
-
onSelected:
|
|
23493
|
-
onViewTransactions:
|
|
23496
|
+
onSelected: j,
|
|
23497
|
+
onViewTransactions: m,
|
|
23494
23498
|
selectedId: f,
|
|
23495
23499
|
title: r.spend_tab_title
|
|
23496
23500
|
}
|
|
@@ -23499,8 +23503,8 @@ const si = h.createContext(null), u3 = ({
|
|
|
23499
23503
|
Xo,
|
|
23500
23504
|
{
|
|
23501
23505
|
data: x,
|
|
23502
|
-
onSelected:
|
|
23503
|
-
onViewTransactions:
|
|
23506
|
+
onSelected: j,
|
|
23507
|
+
onViewTransactions: m,
|
|
23504
23508
|
selectedId: f,
|
|
23505
23509
|
title: r.income_tab_title
|
|
23506
23510
|
}
|
|
@@ -23652,15 +23656,15 @@ const i7 = (A) => A.reduce((i, n) => {
|
|
|
23652
23656
|
(H) => H.category_guid === i || H.top_level_category_guid === i
|
|
23653
23657
|
) : A).reduce(
|
|
23654
23658
|
(H, b) => {
|
|
23655
|
-
const { category_guid: p, top_level_category_guid: y, month: x, total: w, year: D } = b,
|
|
23656
|
-
H[
|
|
23657
|
-
id:
|
|
23658
|
-
category:
|
|
23659
|
+
const { category_guid: p, top_level_category_guid: y, month: x, total: w, year: D } = b, j = i ? p : y;
|
|
23660
|
+
H[j] || (H[j] = {
|
|
23661
|
+
id: j,
|
|
23662
|
+
category: j,
|
|
23659
23663
|
category_guid: p,
|
|
23660
23664
|
top_level_category_guid: y
|
|
23661
23665
|
});
|
|
23662
|
-
const
|
|
23663
|
-
return H[
|
|
23666
|
+
const m = nA(new Date(D, x - 1), AA.MONTH_SHORT);
|
|
23667
|
+
return H[j][m] || (H[j][m] = 0), H[j][m] = H[j][m] + w, H;
|
|
23664
23668
|
},
|
|
23665
23669
|
{}
|
|
23666
23670
|
);
|
|
@@ -23721,7 +23725,7 @@ const i7 = (A) => A.reduce((i, n) => {
|
|
|
23721
23725
|
}, E7 = C(d7), h7 = {
|
|
23722
23726
|
view_transactions: "View Transactions"
|
|
23723
23727
|
}, l7 = ({ onBackClick: A, sx: t }) => {
|
|
23724
|
-
const i = oe(), { onEvent: n } = K(), { isDesktop: r, isTablet: o, isMobile: I } = zA(), { accounts: a } = CA(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: d, getCategoryName: f } = qA(), { sortedTransactions: E } = PA(), { isInitialized: l, selectedAccounts: v, setSelectedAccounts: u } = pA(), { trends: H } = X(), b = i.palette.mode === "dark", [p, y] = h.useState(!1), [x, w] = h.useState(!1), [D,
|
|
23728
|
+
const i = oe(), { onEvent: n } = K(), { isDesktop: r, isTablet: o, isMobile: I } = zA(), { accounts: a } = CA(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: d, getCategoryName: f } = qA(), { sortedTransactions: E } = PA(), { isInitialized: l, selectedAccounts: v, setSelectedAccounts: u } = pA(), { trends: H } = X(), b = i.palette.mode === "dark", [p, y] = h.useState(!1), [x, w] = h.useState(!1), [D, j] = h.useState("Chart"), [m, O] = h.useState(""), [T, tA] = h.useState({
|
|
23725
23729
|
start: Rr(BA(Ne(/* @__PURE__ */ new Date(), 6)), 1),
|
|
23726
23730
|
end: BA(/* @__PURE__ */ new Date())
|
|
23727
23731
|
});
|
|
@@ -23742,14 +23746,14 @@ const i7 = (A) => A.reduce((i, n) => {
|
|
|
23742
23746
|
d,
|
|
23743
23747
|
T.start,
|
|
23744
23748
|
T.end
|
|
23745
|
-
), JA =
|
|
23746
|
-
(Ke) => Ke.top_level_category_guid ===
|
|
23749
|
+
), JA = m.length ? bA.filter(
|
|
23750
|
+
(Ke) => Ke.top_level_category_guid === m || Ke.category_guid === m
|
|
23747
23751
|
) : Eh(bA);
|
|
23748
23752
|
return {
|
|
23749
23753
|
stackedDatasets: JA.filter(fh),
|
|
23750
23754
|
unstackedDatasets: JA.filter(Fi)
|
|
23751
23755
|
};
|
|
23752
|
-
}, [d,
|
|
23756
|
+
}, [d, m, T]), iA = h.useMemo(() => {
|
|
23753
23757
|
const bA = nA(
|
|
23754
23758
|
T.start,
|
|
23755
23759
|
I ? AA.MONTH_SHORT_YEAR : AA.MONTH_YEAR
|
|
@@ -23759,7 +23763,7 @@ const i7 = (A) => A.reduce((i, n) => {
|
|
|
23759
23763
|
);
|
|
23760
23764
|
return `${bA} - ${JA}`;
|
|
23761
23765
|
}, [T, I]), oA = (bA, JA) => {
|
|
23762
|
-
|
|
23766
|
+
j(JA ?? D), n(V.TRENDS_CLICK_TOGGLE);
|
|
23763
23767
|
}, sA = (bA) => {
|
|
23764
23768
|
const JA = Rr(bA?.[0], 1), Ke = bA?.[1], Yt = Ns(Ke, JA);
|
|
23765
23769
|
tA({ start: JA, end: Ke }), n(V.TRENDS_CLICK_DATE, {
|
|
@@ -23817,7 +23821,7 @@ const i7 = (A) => A.reduce((i, n) => {
|
|
|
23817
23821
|
textOverflow: "unset"
|
|
23818
23822
|
},
|
|
23819
23823
|
variant: r ? "H3" : "Body",
|
|
23820
|
-
children: f(
|
|
23824
|
+
children: f(m) || H.sub_title
|
|
23821
23825
|
}
|
|
23822
23826
|
),
|
|
23823
23827
|
/* @__PURE__ */ e(R, { variant: r ? "Body" : "Small", children: iA })
|
|
@@ -23865,7 +23869,7 @@ const i7 = (A) => A.reduce((i, n) => {
|
|
|
23865
23869
|
}
|
|
23866
23870
|
),
|
|
23867
23871
|
/* @__PURE__ */ s(P, { alignItems: "center", flexDirection: "row", width: "100%", children: [
|
|
23868
|
-
/* @__PURE__ */ e(L, { flexGrow: 1, children:
|
|
23872
|
+
/* @__PURE__ */ e(L, { flexGrow: 1, children: m && /* @__PURE__ */ s($, { onClick: () => O(""), sx: { p: 0, pr: 5 }, children: [
|
|
23869
23873
|
/* @__PURE__ */ e(q, { name: "arrow_back" }),
|
|
23870
23874
|
H.all_categories
|
|
23871
23875
|
] }) }),
|
|
@@ -23888,7 +23892,7 @@ const i7 = (A) => A.reduce((i, n) => {
|
|
|
23888
23892
|
{
|
|
23889
23893
|
monthlyCategoryTotals: d,
|
|
23890
23894
|
onClickRow: cA,
|
|
23891
|
-
selectedCategory:
|
|
23895
|
+
selectedCategory: m,
|
|
23892
23896
|
selectedDateRange: T
|
|
23893
23897
|
}
|
|
23894
23898
|
)
|
|
@@ -23899,7 +23903,7 @@ const i7 = (A) => A.reduce((i, n) => {
|
|
|
23899
23903
|
/* @__PURE__ */ e(
|
|
23900
23904
|
E7,
|
|
23901
23905
|
{
|
|
23902
|
-
categoryGuid:
|
|
23906
|
+
categoryGuid: m,
|
|
23903
23907
|
dateRange: T,
|
|
23904
23908
|
isOpen: x,
|
|
23905
23909
|
onClose: () => w(!1)
|