@mx-cartographer/experiences 4.1.2-alpha.mega3 → 4.1.2-alpha.mega5
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/help/Help.d.ts +1 -0
- package/dist/index.es.js +133 -129
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t, jsxs as l, Fragment as Q } from "react/jsx-runtime";
|
|
2
|
-
import g, { useMemo as zo, useRef as ri, useEffect as
|
|
2
|
+
import g, { useMemo as zo, useRef as ri, useEffect as xA, useState as EA, createContext as Ko, useContext as qo } from "react";
|
|
3
3
|
import { observer as T } from "mobx-react-lite";
|
|
4
4
|
import N from "@mui/material/Box";
|
|
5
5
|
import H from "@mui/material/Divider";
|
|
@@ -42,7 +42,7 @@ import { endOfMonth as Re } from "date-fns/endOfMonth";
|
|
|
42
42
|
import { format as Ye } from "date-fns/format";
|
|
43
43
|
import { isSameMonth as $o } from "date-fns/isSameMonth";
|
|
44
44
|
import { startOfMonth as xe } from "date-fns/startOfMonth";
|
|
45
|
-
import { subMonths as
|
|
45
|
+
import { subMonths as bA } from "date-fns/subMonths";
|
|
46
46
|
import gA from "@mui/material/Paper";
|
|
47
47
|
import es from "@mui/icons-material/KeyboardArrowLeftRounded";
|
|
48
48
|
import As from "@mui/icons-material/KeyboardArrowRightRounded";
|
|
@@ -52,9 +52,9 @@ import * as tA from "d3";
|
|
|
52
52
|
import { selectAll as ts, interpolateString as ns, arc as as } from "d3";
|
|
53
53
|
import { useTheme as cA, keyframes as rs, ThemeProvider as is } from "@mui/material/styles";
|
|
54
54
|
import { ResponsiveChartContainer as os, AreaPlot as ss, LinePlot as cs, MarkPlot as ls, BarPlot as ds, ChartsXAxis as us, ChartsYAxis as hs, ChartsReferenceLine as gs, ChartsLegend as ms, LineChart as oi } from "@mui/x-charts";
|
|
55
|
-
import { Stack as de, Box as
|
|
56
|
-
import
|
|
57
|
-
import
|
|
55
|
+
import { Stack as de, Box as yA, useTheme as GA, Card as Cn, CardContent as Cs, Button as ps, List as fs, Divider as vs } from "@mui/material";
|
|
56
|
+
import fA from "@mui/material/Card";
|
|
57
|
+
import IA from "@mui/material/CardContent";
|
|
58
58
|
import QA from "@mui/material/Grid";
|
|
59
59
|
import { differenceInCalendarDays as ys } from "date-fns/differenceInCalendarDays";
|
|
60
60
|
import { endOfToday as ot } from "date-fns/endOfToday";
|
|
@@ -76,10 +76,10 @@ import ra from "@mui/material/CircularProgress";
|
|
|
76
76
|
import { v4 as Is } from "uuid";
|
|
77
77
|
import an from "@mui/material/InputAdornment";
|
|
78
78
|
import Ls from "@mui/material/Radio";
|
|
79
|
-
import
|
|
79
|
+
import vA from "@mui/material/Avatar";
|
|
80
80
|
import be from "@mui/material/ListItemAvatar";
|
|
81
81
|
import nA from "@mui/material/ListItemIcon";
|
|
82
|
-
import { ChevronRight as
|
|
82
|
+
import { ChevronRight as wA, Payments as Ds, NoteStack as xs, Person as Os, CheckCircle as _s, Icon as Wa, ExpandLess as Ns, ExpandMore as Ps, AccountBalance as Ms, AddBox as li } from "@mxenabled/mx-icons";
|
|
83
83
|
import { makeAutoObservable as De, runInAction as Y, reaction as Rs, observable as Hs } from "mobx";
|
|
84
84
|
import { differenceInDays as Bs } from "date-fns/differenceInDays";
|
|
85
85
|
import pn from "@mui/icons-material/ChevronRight";
|
|
@@ -1294,7 +1294,7 @@ const Wc = (e, A) => {
|
|
|
1294
1294
|
isTablet: $t(fe().breakpoints.between("md", "xl"))
|
|
1295
1295
|
}), Oi = (e) => {
|
|
1296
1296
|
const A = ri();
|
|
1297
|
-
return
|
|
1297
|
+
return xA(() => {
|
|
1298
1298
|
A.current = e;
|
|
1299
1299
|
}, [e]), A.current;
|
|
1300
1300
|
}, _i = ({
|
|
@@ -1763,7 +1763,7 @@ const ll = ({
|
|
|
1763
1763
|
}, I = () => {
|
|
1764
1764
|
d(oA(c, 1));
|
|
1765
1765
|
}, S = () => {
|
|
1766
|
-
d(
|
|
1766
|
+
d(bA(c, 1));
|
|
1767
1767
|
};
|
|
1768
1768
|
return /* @__PURE__ */ t("div", { className: `mx-cmn-calendar ${s}`, children: /* @__PURE__ */ l(gA, { sx: { boxShadow: "none" }, children: [
|
|
1769
1769
|
/* @__PURE__ */ t(
|
|
@@ -1940,7 +1940,7 @@ const ll = ({
|
|
|
1940
1940
|
return /* @__PURE__ */ l(de, { style: { flexDirection: "row", gap: 25, ...n }, children: [
|
|
1941
1941
|
e.map((r, i) => /* @__PURE__ */ l(de, { style: { alignItems: "center", flexDirection: "row" }, children: [
|
|
1942
1942
|
/* @__PURE__ */ t(
|
|
1943
|
-
|
|
1943
|
+
yA,
|
|
1944
1944
|
{
|
|
1945
1945
|
sx: {
|
|
1946
1946
|
width: 10,
|
|
@@ -2162,8 +2162,8 @@ const ll = ({
|
|
|
2162
2162
|
cursorPosition: a,
|
|
2163
2163
|
chartContainerRef: r
|
|
2164
2164
|
}) => {
|
|
2165
|
-
const i = cA(), o = ri(null), [s, c] =
|
|
2166
|
-
if (
|
|
2165
|
+
const i = cA(), o = ri(null), [s, c] = EA({ x: a.x, y: a.y });
|
|
2166
|
+
if (xA(() => {
|
|
2167
2167
|
(() => {
|
|
2168
2168
|
const h = o.current, m = r.current;
|
|
2169
2169
|
if (!h || !m) return;
|
|
@@ -2174,7 +2174,7 @@ const ll = ({
|
|
|
2174
2174
|
}, [a, r]), !n) return null;
|
|
2175
2175
|
const d = n.reduce((u, h) => u + h.y, 0);
|
|
2176
2176
|
return /* @__PURE__ */ t(
|
|
2177
|
-
|
|
2177
|
+
fA,
|
|
2178
2178
|
{
|
|
2179
2179
|
ref: o,
|
|
2180
2180
|
sx: {
|
|
@@ -2184,7 +2184,7 @@ const ll = ({
|
|
|
2184
2184
|
width: 250,
|
|
2185
2185
|
pointerEvents: "none"
|
|
2186
2186
|
},
|
|
2187
|
-
children: /* @__PURE__ */ l(
|
|
2187
|
+
children: /* @__PURE__ */ l(IA, { children: [
|
|
2188
2188
|
/* @__PURE__ */ l(N, { alignItems: "center", display: "flex", flexDirection: "column", children: [
|
|
2189
2189
|
/* @__PURE__ */ t(zi, { categoryGuid: e, topLevelCategoryGuid: A }),
|
|
2190
2190
|
/* @__PURE__ */ t(p, { variant: "Small", children: `${n.length}-month total` }),
|
|
@@ -2216,7 +2216,7 @@ const ll = ({
|
|
|
2216
2216
|
xData: r
|
|
2217
2217
|
}) => {
|
|
2218
2218
|
const i = GA(), o = a.data[n], s = r[n];
|
|
2219
|
-
return o === void 0 || !s ? null : /* @__PURE__ */ t(Cn, { sx: { pt: 4, px: 8 }, children: /* @__PURE__ */ t(Cs, { children: /* @__PURE__ */ l(
|
|
2219
|
+
return o === void 0 || !s ? null : /* @__PURE__ */ t(Cn, { sx: { pt: 4, px: 8 }, children: /* @__PURE__ */ t(Cs, { children: /* @__PURE__ */ l(yA, { alignItems: "center", display: "flex", flexDirection: "column", children: [
|
|
2220
2220
|
/* @__PURE__ */ t(zi, { categoryGuid: e, topLevelCategoryGuid: A }),
|
|
2221
2221
|
/* @__PURE__ */ t(p, { color: i.palette.text.secondary, variant: "Small", children: ne(s, Z.MONTH_SHORT_YEAR) }),
|
|
2222
2222
|
/* @__PURE__ */ t(Ie, { amount: String(o), bold: !0, formatString: "0,0", variant: "Body" })
|
|
@@ -2323,7 +2323,7 @@ const ll = ({
|
|
|
2323
2323
|
guid: Pe?.category_guid,
|
|
2324
2324
|
topLevelGuid: Pe?.top_level_category_guid
|
|
2325
2325
|
};
|
|
2326
|
-
},
|
|
2326
|
+
}, DA = (U) => {
|
|
2327
2327
|
m(U), n?.(U ?? "");
|
|
2328
2328
|
}, at = (U) => {
|
|
2329
2329
|
a?.(U ?? "");
|
|
@@ -2448,7 +2448,7 @@ const ll = ({
|
|
|
2448
2448
|
categoryGuids: we,
|
|
2449
2449
|
hoveredLegend: h,
|
|
2450
2450
|
onClickLegend: at,
|
|
2451
|
-
onHoverLegend:
|
|
2451
|
+
onHoverLegend: DA,
|
|
2452
2452
|
sx: { px: d ? 0 : 24 }
|
|
2453
2453
|
}
|
|
2454
2454
|
),
|
|
@@ -2681,11 +2681,11 @@ const ll = ({
|
|
|
2681
2681
|
}, [_]);
|
|
2682
2682
|
const z = () => {
|
|
2683
2683
|
const V = Re(ot());
|
|
2684
|
-
return [Re(
|
|
2684
|
+
return [Re(bA(V, _)), V];
|
|
2685
2685
|
}, K = (V) => {
|
|
2686
2686
|
const te = [...h], ue = h[0], Ce = h[1], he = V === "previous";
|
|
2687
2687
|
if (C === n.dateRangePickerCopy.dateRangeThisMonth)
|
|
2688
|
-
te[0] = he ?
|
|
2688
|
+
te[0] = he ? bA(ue, 1) : oA(ue, 1), te[1] = Re(he ? bA(Ce, 1) : oA(Ce, 1));
|
|
2689
2689
|
else if (C === n.dateRangePickerCopy.dateRangeYTD || C === n.dateRangePickerCopy.dateRangeLastYear)
|
|
2690
2690
|
te[0] = he ? Qa(Ua(ue), 1) : Kt(Ua(ue), 1), te[1] = he ? Qa(ja(ue), 1) : Kt(ja(ue), 1);
|
|
2691
2691
|
else {
|
|
@@ -3064,7 +3064,7 @@ const lt = ({
|
|
|
3064
3064
|
title: o = ""
|
|
3065
3065
|
}) => {
|
|
3066
3066
|
const [s, { height: c, width: d }] = qi();
|
|
3067
|
-
return /* @__PURE__ */ l(
|
|
3067
|
+
return /* @__PURE__ */ l(fA, { className: e, sx: { borderRadius: "8px", ...i }, children: [
|
|
3068
3068
|
/* @__PURE__ */ t(
|
|
3069
3069
|
FA,
|
|
3070
3070
|
{
|
|
@@ -3082,7 +3082,7 @@ const lt = ({
|
|
|
3082
3082
|
title: o ? /* @__PURE__ */ t($A, { sx: { pb: 4 }, children: o }) : null
|
|
3083
3083
|
}
|
|
3084
3084
|
),
|
|
3085
|
-
/* @__PURE__ */ t(
|
|
3085
|
+
/* @__PURE__ */ t(IA, { ref: s, sx: { p: 0 }, children: /* @__PURE__ */ t(Mi, { availableHeight: c, availableWidth: d, children: A }) })
|
|
3086
3086
|
] });
|
|
3087
3087
|
}, Nl = ({
|
|
3088
3088
|
accountOptions: e,
|
|
@@ -3135,7 +3135,7 @@ const lt = ({
|
|
|
3135
3135
|
dateRangePreviousAria: x.date_range_picker.previous_aria
|
|
3136
3136
|
}, F = r ? r.start : D.start, V = r ? r.end : D.end;
|
|
3137
3137
|
return /* @__PURE__ */ l(
|
|
3138
|
-
|
|
3138
|
+
fA,
|
|
3139
3139
|
{
|
|
3140
3140
|
className: o,
|
|
3141
3141
|
sx: {
|
|
@@ -3239,11 +3239,11 @@ const lt = ({
|
|
|
3239
3239
|
}
|
|
3240
3240
|
)
|
|
3241
3241
|
] }),
|
|
3242
|
-
/* @__PURE__ */ t(
|
|
3242
|
+
/* @__PURE__ */ t(IA, { ref: C, sx: { p: 0 }, children: /* @__PURE__ */ t(Mi, { availableHeight: f, availableWidth: v, children: a }) })
|
|
3243
3243
|
]
|
|
3244
3244
|
}
|
|
3245
3245
|
);
|
|
3246
|
-
},
|
|
3246
|
+
}, pA = T(Nl), Pl = ({ status: e = YA.Loading }) => {
|
|
3247
3247
|
const { connect: A } = L();
|
|
3248
3248
|
return /* @__PURE__ */ t(
|
|
3249
3249
|
N,
|
|
@@ -3545,7 +3545,7 @@ const hr = "connect_widget", gr = "connections_widget", Ml = ({
|
|
|
3545
3545
|
}
|
|
3546
3546
|
), dn = ({ iconName: e, label: A, onClick: n, value: a }) => {
|
|
3547
3547
|
const r = /* @__PURE__ */ l(Q, { children: [
|
|
3548
|
-
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(
|
|
3548
|
+
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(vA, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(B, { name: e, sx: { color: "text.primary" }, weight: Qe.Dark }) }) }),
|
|
3549
3549
|
/* @__PURE__ */ t(
|
|
3550
3550
|
J,
|
|
3551
3551
|
{
|
|
@@ -3592,7 +3592,7 @@ const hr = "connect_widget", gr = "connections_widget", Ml = ({
|
|
|
3592
3592
|
}
|
|
3593
3593
|
)
|
|
3594
3594
|
}
|
|
3595
|
-
),
|
|
3595
|
+
), LA = T(
|
|
3596
3596
|
({
|
|
3597
3597
|
children: e,
|
|
3598
3598
|
isDisabled: A = !1,
|
|
@@ -3630,7 +3630,7 @@ const hr = "connect_widget", gr = "connections_widget", Ml = ({
|
|
|
3630
3630
|
primaryTypographyProps: { variant: "Body" }
|
|
3631
3631
|
}
|
|
3632
3632
|
),
|
|
3633
|
-
!A && !c && /* @__PURE__ */ t(
|
|
3633
|
+
!A && !c && /* @__PURE__ */ t(wA, {})
|
|
3634
3634
|
] }),
|
|
3635
3635
|
/* @__PURE__ */ t(
|
|
3636
3636
|
Oe,
|
|
@@ -5521,7 +5521,7 @@ const Dd = ({
|
|
|
5521
5521
|
}, Lr = (e) => {
|
|
5522
5522
|
const A = [], n = ie();
|
|
5523
5523
|
for (let a = 0; a <= Tr; a++) {
|
|
5524
|
-
const r = xe(
|
|
5524
|
+
const r = xe(bA(n, Tr - a)), o = e.filter(
|
|
5525
5525
|
(s) => s.year_month === Number(Ye(r, "yyyyMM"))
|
|
5526
5526
|
).reduce((s, c) => s + c.total, 0);
|
|
5527
5527
|
A.push({
|
|
@@ -5624,7 +5624,7 @@ class Yd {
|
|
|
5624
5624
|
}
|
|
5625
5625
|
};
|
|
5626
5626
|
loadMonthlyCategoryTotals = async (A = this.globalStore.accountStore.accounts, n, a) => {
|
|
5627
|
-
const r = pe(xe(n ??
|
|
5627
|
+
const r = pe(xe(n ?? bA(/* @__PURE__ */ new Date(), 11))), i = pe(Re(a ?? /* @__PURE__ */ new Date()));
|
|
5628
5628
|
try {
|
|
5629
5629
|
const o = await this.api.getMonthlyCategoryTotals(r, i, A);
|
|
5630
5630
|
Y(() => {
|
|
@@ -5642,7 +5642,7 @@ class Yd {
|
|
|
5642
5642
|
pe(a),
|
|
5643
5643
|
A
|
|
5644
5644
|
), i = await this.api.getMonthlyCategoryTotals(
|
|
5645
|
-
pe(xe(
|
|
5645
|
+
pe(xe(bA(a, 11))),
|
|
5646
5646
|
pe(Re(a)),
|
|
5647
5647
|
A
|
|
5648
5648
|
);
|
|
@@ -5704,7 +5704,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
5704
5704
|
r(k.ON_TRANSACTION_CATEGORY_CLICK), d(!0);
|
|
5705
5705
|
},
|
|
5706
5706
|
children: [
|
|
5707
|
-
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(
|
|
5707
|
+
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(vA, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(
|
|
5708
5708
|
sA,
|
|
5709
5709
|
{
|
|
5710
5710
|
categoryGuid: e.top_level_category_guid,
|
|
@@ -5776,7 +5776,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
5776
5776
|
n(k.ON_TRANSACTION_DATE_CLICK), c(!0);
|
|
5777
5777
|
},
|
|
5778
5778
|
children: [
|
|
5779
|
-
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(
|
|
5779
|
+
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(vA, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(B, { name: "calendar_month", sx: { color: "text.primary" }, weight: Qe.Dark }) }) }),
|
|
5780
5780
|
/* @__PURE__ */ t(
|
|
5781
5781
|
J,
|
|
5782
5782
|
{
|
|
@@ -5827,7 +5827,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
5827
5827
|
A(k.ON_TRANSACTION_DELETE_CLICK), a(!0), s(!0);
|
|
5828
5828
|
},
|
|
5829
5829
|
children: [
|
|
5830
|
-
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(
|
|
5830
|
+
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(vA, { variant: "rounded", children: /* @__PURE__ */ t(Gt, { color: "secondary", fontSize: "small" }) }) }),
|
|
5831
5831
|
/* @__PURE__ */ t(
|
|
5832
5832
|
J,
|
|
5833
5833
|
{
|
|
@@ -5869,7 +5869,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
5869
5869
|
A(k.ON_TRANSACTION_DELETE_LOGO_CLICK), s(!0);
|
|
5870
5870
|
},
|
|
5871
5871
|
children: [
|
|
5872
|
-
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(
|
|
5872
|
+
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(vA, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(B, { name: "delete", sx: { color: "text.primary" }, weight: Qe.Dark }) }) }),
|
|
5873
5873
|
/* @__PURE__ */ t(J, { primary: i.merchant_logo_title, secondary: i.merchant_logo_desc }),
|
|
5874
5874
|
/* @__PURE__ */ t(nA, { children: /* @__PURE__ */ t(B, { name: "chevron_right", weight: Qe.Dark }) })
|
|
5875
5875
|
]
|
|
@@ -5918,7 +5918,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
5918
5918
|
},
|
|
5919
5919
|
role: "switch",
|
|
5920
5920
|
children: [
|
|
5921
|
-
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(
|
|
5921
|
+
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(vA, { sx: { bgcolor: "border.light" }, variant: "rounded", children: c ? /* @__PURE__ */ t(
|
|
5922
5922
|
B,
|
|
5923
5923
|
{
|
|
5924
5924
|
name: "visibilityOff",
|
|
@@ -6004,7 +6004,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
6004
6004
|
A(k.ON_TRANSACTION_MEMO_CLICK), s(!0);
|
|
6005
6005
|
},
|
|
6006
6006
|
children: [
|
|
6007
|
-
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(
|
|
6007
|
+
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(vA, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(B, { name: "article", sx: { color: "text.primary" }, weight: Qe.Dark }) }) }),
|
|
6008
6008
|
/* @__PURE__ */ t(
|
|
6009
6009
|
J,
|
|
6010
6010
|
{
|
|
@@ -6268,7 +6268,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
6268
6268
|
}, [f]);
|
|
6269
6269
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
|
6270
6270
|
e && /* @__PURE__ */ t(j, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(ae, { onClick: D, children: [
|
|
6271
|
-
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(
|
|
6271
|
+
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(vA, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(B, { name: "call_split", sx: { color: "text.primary" }, weight: Qe.Dark }) }) }),
|
|
6272
6272
|
/* @__PURE__ */ t(
|
|
6273
6273
|
J,
|
|
6274
6274
|
{
|
|
@@ -6553,7 +6553,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
6553
6553
|
A(k.ON_TRANSACTION_TAGS_CLICK), d(!0);
|
|
6554
6554
|
},
|
|
6555
6555
|
children: [
|
|
6556
|
-
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(
|
|
6556
|
+
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(vA, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(B, { name: "local_offer", sx: { color: "text.primary" }, weight: Qe.Dark }) }) }),
|
|
6557
6557
|
/* @__PURE__ */ t(
|
|
6558
6558
|
J,
|
|
6559
6559
|
{
|
|
@@ -6909,7 +6909,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
6909
6909
|
selectedAccounts: F,
|
|
6910
6910
|
setDisplayedDate: V,
|
|
6911
6911
|
setSelectedAccounts: te
|
|
6912
|
-
} = ye(), [ue, Ce] = g.useState(""), [he, we] = g.useState(""), [iA,
|
|
6912
|
+
} = ye(), [ue, Ce] = g.useState(""), [he, we] = g.useState(""), [iA, DA] = g.useState(!1), [at, Se] = g.useState(!1), [Je, PA] = g.useState(!1);
|
|
6913
6913
|
g.useEffect(() => {
|
|
6914
6914
|
te(r);
|
|
6915
6915
|
}, [r]), g.useEffect(() => {
|
|
@@ -6947,16 +6947,16 @@ const Ui = ({ transaction: e }) => {
|
|
|
6947
6947
|
}), Ce(
|
|
6948
6948
|
"addTransaction"
|
|
6949
6949
|
/* AddTransaction */
|
|
6950
|
-
), x(G.TRANSACTIONS_CLICK_ADD)) : (
|
|
6950
|
+
), x(G.TRANSACTIONS_CLICK_ADD)) : (DA(!0), x(G.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
|
|
6951
6951
|
}, Dt = async () => {
|
|
6952
6952
|
Ee && await C(s), Ce("");
|
|
6953
6953
|
}, Mn = () => {
|
|
6954
|
-
|
|
6954
|
+
DA(!1), Se(!0);
|
|
6955
6955
|
}, Rn = () => {
|
|
6956
6956
|
Se(!1), i();
|
|
6957
6957
|
};
|
|
6958
6958
|
return !K || !Je ? /* @__PURE__ */ t(Ve, {}) : /* @__PURE__ */ l(
|
|
6959
|
-
|
|
6959
|
+
pA,
|
|
6960
6960
|
{
|
|
6961
6961
|
accountOptions: r,
|
|
6962
6962
|
actions: [
|
|
@@ -7075,7 +7075,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
7075
7075
|
copy: { title: _.add_manual_account },
|
|
7076
7076
|
isOpen: iA,
|
|
7077
7077
|
onClose: () => {
|
|
7078
|
-
|
|
7078
|
+
DA(!1);
|
|
7079
7079
|
},
|
|
7080
7080
|
onPrimaryAction: Mn
|
|
7081
7081
|
}
|
|
@@ -8332,7 +8332,7 @@ const Ui = ({ transaction: e }) => {
|
|
|
8332
8332
|
}, [r, i]);
|
|
8333
8333
|
const [u, h] = g.useState(!1);
|
|
8334
8334
|
return /* @__PURE__ */ l(
|
|
8335
|
-
|
|
8335
|
+
pA,
|
|
8336
8336
|
{
|
|
8337
8337
|
accountOptions: n,
|
|
8338
8338
|
actions: [
|
|
@@ -9407,7 +9407,7 @@ const bh = ({ activity: e }) => /* @__PURE__ */ l(Q, { children: [
|
|
|
9407
9407
|
transform: rotate(360deg);
|
|
9408
9408
|
}
|
|
9409
9409
|
`, Kh = () => {
|
|
9410
|
-
const { addCashflowEvent: e, addCashflowSequence: A, cashflowSequences: n } = ke(), { cashflow: a, common: r } = L(), { completeOnboarding: i } = ya(), { isDirty: o } = Tt(), { isMobile: s } = Be(), { setDisplayedDate: c } = ye(), { filter: d, setFilter: u, transactions: h } = ge(), m = fe(), [C, f] =
|
|
9410
|
+
const { addCashflowEvent: e, addCashflowSequence: A, cashflowSequences: n } = ke(), { cashflow: a, common: r } = L(), { completeOnboarding: i } = ya(), { isDirty: o } = Tt(), { isMobile: s } = Be(), { setDisplayedDate: c } = ye(), { filter: d, setFilter: u, transactions: h } = ge(), m = fe(), [C, f] = EA(!0), [v, E] = g.useState(X.EveryMonth), [I, S] = EA(!1), [w, D] = g.useState(null), [_, O] = EA(1), [x, z] = EA([]), [K, q] = EA(""), F = g.useMemo(
|
|
9411
9411
|
() => h.find((he) => he.guid === K),
|
|
9412
9412
|
[K]
|
|
9413
9413
|
), V = !!n.length, te = async () => {
|
|
@@ -9424,9 +9424,9 @@ const bh = ({ activity: e }) => /* @__PURE__ */ l(Q, { children: [
|
|
|
9424
9424
|
we,
|
|
9425
9425
|
we.frequency,
|
|
9426
9426
|
we.nextDate
|
|
9427
|
-
),
|
|
9428
|
-
if (
|
|
9429
|
-
const at = eo(
|
|
9427
|
+
), DA = await A(iA);
|
|
9428
|
+
if (DA) {
|
|
9429
|
+
const at = eo(DA, we);
|
|
9430
9430
|
await e(at);
|
|
9431
9431
|
}
|
|
9432
9432
|
}
|
|
@@ -9589,7 +9589,7 @@ const bh = ({ activity: e }) => /* @__PURE__ */ l(Q, { children: [
|
|
|
9589
9589
|
);
|
|
9590
9590
|
m(I), d({ accounts: I.map((S) => S.guid) });
|
|
9591
9591
|
}, [c, n]), u?.has_completed_cash_flow_onboarding ? /* @__PURE__ */ l(
|
|
9592
|
-
|
|
9592
|
+
pA,
|
|
9593
9593
|
{
|
|
9594
9594
|
accountOptions: c,
|
|
9595
9595
|
actions: [
|
|
@@ -9631,7 +9631,7 @@ const bh = ({ activity: e }) => /* @__PURE__ */ l(Q, { children: [
|
|
|
9631
9631
|
]
|
|
9632
9632
|
}
|
|
9633
9633
|
) : /* @__PURE__ */ t(
|
|
9634
|
-
|
|
9634
|
+
pA,
|
|
9635
9635
|
{
|
|
9636
9636
|
onBackClick: e,
|
|
9637
9637
|
sx: { height: "100%", overflow: "auto" },
|
|
@@ -9854,7 +9854,7 @@ const tn = {
|
|
|
9854
9854
|
/* @__PURE__ */ l(de, { bgcolor: a.palette.background.paper, mb: 24, children: [
|
|
9855
9855
|
/* @__PURE__ */ l(de, { alignItems: "center", flexDirection: "row", pl: 24, children: [
|
|
9856
9856
|
/* @__PURE__ */ t(
|
|
9857
|
-
|
|
9857
|
+
yA,
|
|
9858
9858
|
{
|
|
9859
9859
|
sx: {
|
|
9860
9860
|
display: "flex",
|
|
@@ -9907,7 +9907,7 @@ const tn = {
|
|
|
9907
9907
|
] }),
|
|
9908
9908
|
/* @__PURE__ */ l(de, { alignItems: "center", flexDirection: "row", pl: 24, children: [
|
|
9909
9909
|
/* @__PURE__ */ t(
|
|
9910
|
-
|
|
9910
|
+
yA,
|
|
9911
9911
|
{
|
|
9912
9912
|
sx: {
|
|
9913
9913
|
width: 20,
|
|
@@ -9937,7 +9937,7 @@ const tn = {
|
|
|
9937
9937
|
] }),
|
|
9938
9938
|
/* @__PURE__ */ l(de, { alignItems: "center", flexDirection: "row", pl: 24, py: 14, children: [
|
|
9939
9939
|
/* @__PURE__ */ t(
|
|
9940
|
-
|
|
9940
|
+
yA,
|
|
9941
9941
|
{
|
|
9942
9942
|
sx: {
|
|
9943
9943
|
width: 20,
|
|
@@ -9978,7 +9978,7 @@ const tn = {
|
|
|
9978
9978
|
/* @__PURE__ */ l(de, { bgcolor: a.palette.background.paper, mb: 24, children: [
|
|
9979
9979
|
/* @__PURE__ */ l(de, { alignItems: "center", flexDirection: "row", pl: 24, children: [
|
|
9980
9980
|
/* @__PURE__ */ t(
|
|
9981
|
-
|
|
9981
|
+
yA,
|
|
9982
9982
|
{
|
|
9983
9983
|
sx: {
|
|
9984
9984
|
display: "flex",
|
|
@@ -10031,7 +10031,7 @@ const tn = {
|
|
|
10031
10031
|
] }),
|
|
10032
10032
|
/* @__PURE__ */ l(de, { alignItems: "center", flexDirection: "row", pl: 24, children: [
|
|
10033
10033
|
/* @__PURE__ */ t(
|
|
10034
|
-
|
|
10034
|
+
yA,
|
|
10035
10035
|
{
|
|
10036
10036
|
sx: {
|
|
10037
10037
|
width: 20,
|
|
@@ -10083,7 +10083,7 @@ const tn = {
|
|
|
10083
10083
|
/* @__PURE__ */ l(de, { bgcolor: a.palette.background.paper, mb: 24, children: [
|
|
10084
10084
|
/* @__PURE__ */ l(de, { alignItems: "center", flexDirection: "row", pl: 24, children: [
|
|
10085
10085
|
/* @__PURE__ */ t(
|
|
10086
|
-
|
|
10086
|
+
yA,
|
|
10087
10087
|
{
|
|
10088
10088
|
sx: {
|
|
10089
10089
|
display: "flex",
|
|
@@ -10153,7 +10153,7 @@ const tn = {
|
|
|
10153
10153
|
return ve().uiStore;
|
|
10154
10154
|
}, xn = (e) => e.top_level_category_guid === b.INCOME || e.category_guid === b.INCOME, Vh = (e) => !xn(e) && !co(e), so = (e) => Ar.includes(e.top_level_category_guid) || Ar.includes(e.category_guid), co = (e) => e.top_level_category_guid === b.TRANSFER || e.category_guid === b.TRANSFER, Jh = (e) => !xn(e) && !so(e) && !co(e), Zh = (e) => e.filter((A) => A.category_guid === A.top_level_category_guid), Ma = (e, A) => {
|
|
10155
10155
|
const n = [];
|
|
10156
|
-
let a = xe(
|
|
10156
|
+
let a = xe(bA(/* @__PURE__ */ new Date(), 5));
|
|
10157
10157
|
const r = /* @__PURE__ */ new Date();
|
|
10158
10158
|
for (; Te(a, r); )
|
|
10159
10159
|
n.push({
|
|
@@ -10174,7 +10174,7 @@ const tn = {
|
|
|
10174
10174
|
const A = [], n = e.filter(
|
|
10175
10175
|
(i) => i.top_level_category_guid !== b.INCOME && i.top_level_category_guid !== b.TRANSFER && i.total > 0
|
|
10176
10176
|
);
|
|
10177
|
-
let a = xe(
|
|
10177
|
+
let a = xe(bA(/* @__PURE__ */ new Date(), 5));
|
|
10178
10178
|
const r = Re(/* @__PURE__ */ new Date());
|
|
10179
10179
|
for (; Te(a, r); )
|
|
10180
10180
|
A.push({
|
|
@@ -10219,7 +10219,7 @@ const tn = {
|
|
|
10219
10219
|
i(!0);
|
|
10220
10220
|
});
|
|
10221
10221
|
}, [n, a]), !n || !r ? /* @__PURE__ */ t(Ve, {}) : /* @__PURE__ */ l(
|
|
10222
|
-
|
|
10222
|
+
fA,
|
|
10223
10223
|
{
|
|
10224
10224
|
sx: {
|
|
10225
10225
|
borderRadius: 2,
|
|
@@ -10236,7 +10236,7 @@ const tn = {
|
|
|
10236
10236
|
title: /* @__PURE__ */ t($A, { sx: { pb: 4 }, children: ne(/* @__PURE__ */ new Date(), Z.MONTH_LONG) })
|
|
10237
10237
|
}
|
|
10238
10238
|
),
|
|
10239
|
-
/* @__PURE__ */ t(
|
|
10239
|
+
/* @__PURE__ */ t(IA, { sx: { p: 0 }, children: /* @__PURE__ */ t(ig, {}) })
|
|
10240
10240
|
]
|
|
10241
10241
|
}
|
|
10242
10242
|
);
|
|
@@ -10411,7 +10411,7 @@ const lo = ({
|
|
|
10411
10411
|
const e = GA(), { selectedDebtChartData: A } = dt();
|
|
10412
10412
|
return /* @__PURE__ */ l(Q, { children: [
|
|
10413
10413
|
/* @__PURE__ */ l(
|
|
10414
|
-
|
|
10414
|
+
fA,
|
|
10415
10415
|
{
|
|
10416
10416
|
sx: {
|
|
10417
10417
|
borderRadius: 2,
|
|
@@ -10421,7 +10421,7 @@ const lo = ({
|
|
|
10421
10421
|
},
|
|
10422
10422
|
children: [
|
|
10423
10423
|
/* @__PURE__ */ t(FA, { sx: { pb: 0 }, title: /* @__PURE__ */ t($A, { sx: { pb: 4 }, children: Br.card_title }) }),
|
|
10424
|
-
/* @__PURE__ */ t(
|
|
10424
|
+
/* @__PURE__ */ t(IA, { sx: { p: 0 }, children: /* @__PURE__ */ t(lo, { debts: [A], height: 250 }) })
|
|
10425
10425
|
]
|
|
10426
10426
|
}
|
|
10427
10427
|
),
|
|
@@ -10518,7 +10518,7 @@ const lo = ({
|
|
|
10518
10518
|
}, 250);
|
|
10519
10519
|
};
|
|
10520
10520
|
return /* @__PURE__ */ t(
|
|
10521
|
-
|
|
10521
|
+
LA,
|
|
10522
10522
|
{
|
|
10523
10523
|
isDisabled: e.is_complete,
|
|
10524
10524
|
isSaveDisabled: !i || Number.isNaN(Number(i)),
|
|
@@ -10550,7 +10550,7 @@ const lo = ({
|
|
|
10550
10550
|
}, 250);
|
|
10551
10551
|
};
|
|
10552
10552
|
return /* @__PURE__ */ t(
|
|
10553
|
-
|
|
10553
|
+
LA,
|
|
10554
10554
|
{
|
|
10555
10555
|
isDisabled: e.is_complete,
|
|
10556
10556
|
isSaveDisabled: i === 0,
|
|
@@ -10584,7 +10584,7 @@ const lo = ({
|
|
|
10584
10584
|
}, 250);
|
|
10585
10585
|
};
|
|
10586
10586
|
return /* @__PURE__ */ t(
|
|
10587
|
-
|
|
10587
|
+
LA,
|
|
10588
10588
|
{
|
|
10589
10589
|
isDisabled: e.is_complete,
|
|
10590
10590
|
isSaveDisabled: i === 0,
|
|
@@ -10617,7 +10617,7 @@ const lo = ({
|
|
|
10617
10617
|
}, 250);
|
|
10618
10618
|
}, s = !a || isNaN(Number(a));
|
|
10619
10619
|
return /* @__PURE__ */ t(
|
|
10620
|
-
|
|
10620
|
+
LA,
|
|
10621
10621
|
{
|
|
10622
10622
|
isSaveDisabled: s,
|
|
10623
10623
|
label: `${A.details_interest_rate} (%)`,
|
|
@@ -10646,7 +10646,7 @@ const lo = ({
|
|
|
10646
10646
|
}, 250);
|
|
10647
10647
|
};
|
|
10648
10648
|
return /* @__PURE__ */ t(
|
|
10649
|
-
|
|
10649
|
+
LA,
|
|
10650
10650
|
{
|
|
10651
10651
|
isSaveDisabled: isNaN(a),
|
|
10652
10652
|
label: A.details_monthly_payment,
|
|
@@ -10678,7 +10678,7 @@ const lo = ({
|
|
|
10678
10678
|
}, 250);
|
|
10679
10679
|
};
|
|
10680
10680
|
return /* @__PURE__ */ t(
|
|
10681
|
-
|
|
10681
|
+
LA,
|
|
10682
10682
|
{
|
|
10683
10683
|
isSaveDisabled: isNaN(a),
|
|
10684
10684
|
label: A.details_original_balance,
|
|
@@ -11069,7 +11069,7 @@ const _g = ({
|
|
|
11069
11069
|
}, O = () => {
|
|
11070
11070
|
};
|
|
11071
11071
|
return !u || !n ? /* @__PURE__ */ t(Ve, {}) : /* @__PURE__ */ l(
|
|
11072
|
-
|
|
11072
|
+
pA,
|
|
11073
11073
|
{
|
|
11074
11074
|
accountOptions: I,
|
|
11075
11075
|
onAccountsFilterClick: O,
|
|
@@ -11332,11 +11332,11 @@ const mo = T(
|
|
|
11332
11332
|
}
|
|
11333
11333
|
];
|
|
11334
11334
|
let u = /* @__PURE__ */ t(Ds, {});
|
|
11335
|
-
return e.track_type === ee.DEBT_TRACK ? u = /* @__PURE__ */ t(xs, {}) : e.track_type === ee.RETIREMENT_TRACK && (u = /* @__PURE__ */ t(Os, {})), /* @__PURE__ */ t(
|
|
11335
|
+
return e.track_type === ee.DEBT_TRACK ? u = /* @__PURE__ */ t(xs, {}) : e.track_type === ee.RETIREMENT_TRACK && (u = /* @__PURE__ */ t(Os, {})), /* @__PURE__ */ t(fA, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ l(Ci, { disabled: !n, onClick: n, children: [
|
|
11336
11336
|
/* @__PURE__ */ t(
|
|
11337
11337
|
FA,
|
|
11338
11338
|
{
|
|
11339
|
-
avatar: /* @__PURE__ */ t(
|
|
11339
|
+
avatar: /* @__PURE__ */ t(vA, { sx: { bgcolor: r, color: i, height: 48, width: 48 }, variant: "rounded", children: u }),
|
|
11340
11340
|
subheader: /* @__PURE__ */ t(p, { variant: A ? "H3" : "H2", children: `
|
|
11341
11341
|
${R(e.current_amount, "0,0.00")}/
|
|
11342
11342
|
${R(e.amount, "0,0.00")}
|
|
@@ -11344,7 +11344,7 @@ const mo = T(
|
|
|
11344
11344
|
title: /* @__PURE__ */ t(Ut, { color: "text.secondary", fontWeight: 400, variant: "Body", children: e.name })
|
|
11345
11345
|
}
|
|
11346
11346
|
),
|
|
11347
|
-
/* @__PURE__ */ t(
|
|
11347
|
+
/* @__PURE__ */ t(IA, { sx: { pt: 0 }, children: /* @__PURE__ */ l(y, { gap: 6, children: [
|
|
11348
11348
|
/* @__PURE__ */ t(Ft, { data: d, height: 24 }),
|
|
11349
11349
|
/* @__PURE__ */ l(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
11350
11350
|
/* @__PURE__ */ t(p, { color: "text.secondary", variant: "XSmall", children: s }),
|
|
@@ -11364,7 +11364,7 @@ const mo = T(
|
|
|
11364
11364
|
}
|
|
11365
11365
|
};
|
|
11366
11366
|
return /* @__PURE__ */ t(y, { bgcolor: "background.paper", children: /* @__PURE__ */ t(
|
|
11367
|
-
|
|
11367
|
+
LA,
|
|
11368
11368
|
{
|
|
11369
11369
|
label: A.contribution_label,
|
|
11370
11370
|
onSave: c,
|
|
@@ -11442,7 +11442,7 @@ const mo = T(
|
|
|
11442
11442
|
justifyContent: "space-between",
|
|
11443
11443
|
children: [
|
|
11444
11444
|
/* @__PURE__ */ t(p, { variant: "Body", children: A.reorder_goals_title }),
|
|
11445
|
-
/* @__PURE__ */ t(
|
|
11445
|
+
/* @__PURE__ */ t(wA, {})
|
|
11446
11446
|
]
|
|
11447
11447
|
}
|
|
11448
11448
|
) }) }) }),
|
|
@@ -11494,7 +11494,7 @@ const mo = T(
|
|
|
11494
11494
|
justifyContent: "center",
|
|
11495
11495
|
".MuiAvatar-root": { height: "16px", width: "16px" }
|
|
11496
11496
|
},
|
|
11497
|
-
children: /* @__PURE__ */ t(
|
|
11497
|
+
children: /* @__PURE__ */ t(vA, { sx: { bgcolor: "text.primary", height: "16px", width: "16px" }, children: /* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: A + 1 }) })
|
|
11498
11498
|
}
|
|
11499
11499
|
),
|
|
11500
11500
|
/* @__PURE__ */ t(J, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
@@ -11533,7 +11533,7 @@ const mo = T(
|
|
|
11533
11533
|
const { goals: A, common: n } = L(), { orderedGoals: a } = Ue(), r = a.filter((C) => C.track_type === e), i = r.filter((C) => !C.is_complete), o = r.filter((C) => C.is_complete), [s, c] = g.useState(!1);
|
|
11534
11534
|
let d = A.manage_saving_goals, u = A.manage_saving_drawer_title, h = A.manage_saving_title, m = A.manage_saving_description;
|
|
11535
11535
|
return e === ee.DEBT_TRACK ? (d = A.manage_debt_goals, u = A.manage_debt_drawer_title, h = A.manage_debt_title, m = A.manage_debt_description) : e === ee.RETIREMENT_TRACK && (d = A.manage_retirement_goals, u = A.manage_retirement_drawer_title, h = A.manage_retirement_title, m = A.manage_retirement_description), /* @__PURE__ */ l(y, { children: [
|
|
11536
|
-
/* @__PURE__ */ t(oe, { endIcon: /* @__PURE__ */ t(
|
|
11536
|
+
/* @__PURE__ */ t(oe, { endIcon: /* @__PURE__ */ t(wA, {}), onClick: () => c(!0), children: d }),
|
|
11537
11537
|
/* @__PURE__ */ t(
|
|
11538
11538
|
re,
|
|
11539
11539
|
{
|
|
@@ -11575,7 +11575,7 @@ const mo = T(
|
|
|
11575
11575
|
e !== ee.RETIREMENT_TRACK && /* @__PURE__ */ l(y, { gap: 16, mt: 48, children: [
|
|
11576
11576
|
/* @__PURE__ */ t(p, { color: "text.secondary", variant: "Small", children: n.complete_title }),
|
|
11577
11577
|
s.length === 0 && /* @__PURE__ */ t(y, { alignItems: "center", bgcolor: "background.default", borderRadius: 2, py: 18, children: /* @__PURE__ */ t(p, { variant: "Small", children: c }) }),
|
|
11578
|
-
s.map((d) => /* @__PURE__ */ t(
|
|
11578
|
+
s.map((d) => /* @__PURE__ */ t(fA, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ t(Ci, { onClick: () => r(d), children: /* @__PURE__ */ t(IA, { sx: { ":last-child": { pb: 16 } }, children: /* @__PURE__ */ l(y, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
11579
11579
|
/* @__PURE__ */ l(y, { alignItems: "center", direction: "row", gap: 6, children: [
|
|
11580
11580
|
/* @__PURE__ */ t(B, { color: "success", fill: !0, name: "check_circle", size: 20 }),
|
|
11581
11581
|
/* @__PURE__ */ t(p, { color: "text.secondary", variant: "Body", children: d.name })
|
|
@@ -11596,9 +11596,9 @@ const mo = T(
|
|
|
11596
11596
|
c
|
|
11597
11597
|
),
|
|
11598
11598
|
children: [
|
|
11599
|
-
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(
|
|
11599
|
+
/* @__PURE__ */ t(be, { children: /* @__PURE__ */ t(vA, { sx: { bgcolor: a }, variant: "rounded", children: /* @__PURE__ */ t(Wa, { name: r, sx: { color: "grey.900" } }) }) }),
|
|
11600
11600
|
/* @__PURE__ */ t(J, { primary: i, secondary: o, sx: { mr: 24 } }),
|
|
11601
|
-
!h && /* @__PURE__ */ t(
|
|
11601
|
+
!h && /* @__PURE__ */ t(wA, {}),
|
|
11602
11602
|
h && (d ? /* @__PURE__ */ t(Ns, {}) : /* @__PURE__ */ t(Ps, {}))
|
|
11603
11603
|
]
|
|
11604
11604
|
}
|
|
@@ -11613,7 +11613,7 @@ const mo = T(
|
|
|
11613
11613
|
primaryTypographyProps: { variant: "Body" }
|
|
11614
11614
|
}
|
|
11615
11615
|
),
|
|
11616
|
-
/* @__PURE__ */ t(
|
|
11616
|
+
/* @__PURE__ */ t(wA, {})
|
|
11617
11617
|
] }) }, C)) }) })
|
|
11618
11618
|
] }) });
|
|
11619
11619
|
}, Co = ({
|
|
@@ -11662,7 +11662,7 @@ const mo = T(
|
|
|
11662
11662
|
/* @__PURE__ */ t(H, { variant: f < e.length - 1 ? "inset" : "fullWidth" })
|
|
11663
11663
|
] }, C.guid))
|
|
11664
11664
|
] }),
|
|
11665
|
-
/* @__PURE__ */ l(
|
|
11665
|
+
/* @__PURE__ */ l(fA, { sx: { m: 24 }, children: [
|
|
11666
11666
|
/* @__PURE__ */ t(
|
|
11667
11667
|
FA,
|
|
11668
11668
|
{
|
|
@@ -11671,12 +11671,12 @@ const mo = T(
|
|
|
11671
11671
|
title: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: i.connect_title })
|
|
11672
11672
|
}
|
|
11673
11673
|
),
|
|
11674
|
-
/* @__PURE__ */ t(
|
|
11674
|
+
/* @__PURE__ */ t(IA, { sx: { ":last-child": { pb: 4 }, ml: 28, py: 0 }, children: /* @__PURE__ */ l(y, { alignItems: "flex-start", spacing: 2, children: [
|
|
11675
11675
|
/* @__PURE__ */ t(p, { color: "text.secondary", sx: { textWrap: "wrap" }, variant: "ParagraphSmall", children: i.connect_description }),
|
|
11676
11676
|
/* @__PURE__ */ t(
|
|
11677
11677
|
oe,
|
|
11678
11678
|
{
|
|
11679
|
-
endIcon: /* @__PURE__ */ t(
|
|
11679
|
+
endIcon: /* @__PURE__ */ t(wA, {}),
|
|
11680
11680
|
onClick: m,
|
|
11681
11681
|
sx: {
|
|
11682
11682
|
pl: 0,
|
|
@@ -11763,7 +11763,7 @@ const mo = T(
|
|
|
11763
11763
|
secondary: R(e.balance || 0, "0,0.00")
|
|
11764
11764
|
}
|
|
11765
11765
|
),
|
|
11766
|
-
/* @__PURE__ */ t(
|
|
11766
|
+
/* @__PURE__ */ t(wA, {})
|
|
11767
11767
|
] }),
|
|
11768
11768
|
/* @__PURE__ */ t(re, { isOpen: a, onClose: () => r(!1), title: A.account_details, children: /* @__PURE__ */ l(y, { children: [
|
|
11769
11769
|
/* @__PURE__ */ t(Ra, {}),
|
|
@@ -11780,7 +11780,7 @@ const mo = T(
|
|
|
11780
11780
|
}, 250);
|
|
11781
11781
|
};
|
|
11782
11782
|
return /* @__PURE__ */ t(
|
|
11783
|
-
|
|
11783
|
+
LA,
|
|
11784
11784
|
{
|
|
11785
11785
|
isDisabled: e.is_complete,
|
|
11786
11786
|
isSaveDisabled: i === 0,
|
|
@@ -11815,7 +11815,7 @@ const mo = T(
|
|
|
11815
11815
|
/* @__PURE__ */ t(li, { filled: !0 }),
|
|
11816
11816
|
r.details_add_account
|
|
11817
11817
|
] }) }),
|
|
11818
|
-
/* @__PURE__ */ t(
|
|
11818
|
+
/* @__PURE__ */ t(wA, { color: "primary" })
|
|
11819
11819
|
] }) }) : /* @__PURE__ */ l(y, { gap: 8, mt: 24, mx: 24, children: [
|
|
11820
11820
|
/* @__PURE__ */ t(oe, { onClick: () => u(!0), variant: "text", children: r.details_change_account }),
|
|
11821
11821
|
/* @__PURE__ */ t(
|
|
@@ -11845,7 +11845,7 @@ const mo = T(
|
|
|
11845
11845
|
secondary: R(m?.balance || 0, "0,0.00")
|
|
11846
11846
|
}
|
|
11847
11847
|
),
|
|
11848
|
-
/* @__PURE__ */ t(
|
|
11848
|
+
/* @__PURE__ */ t(wA, {})
|
|
11849
11849
|
] }) }, m.guid)) }),
|
|
11850
11850
|
/* @__PURE__ */ t(p, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: a.account_types[2] }),
|
|
11851
11851
|
/* @__PURE__ */ t(Ae, { sx: { bgcolor: "background.paper" }, children: n.map((m) => /* @__PURE__ */ t(j, { children: /* @__PURE__ */ l(ae, { onClick: () => h(m.guid), children: [
|
|
@@ -11863,7 +11863,7 @@ const mo = T(
|
|
|
11863
11863
|
secondary: R(m?.balance || 0, "0,0.00")
|
|
11864
11864
|
}
|
|
11865
11865
|
),
|
|
11866
|
-
/* @__PURE__ */ t(
|
|
11866
|
+
/* @__PURE__ */ t(wA, {})
|
|
11867
11867
|
] }) }, m.guid)) })
|
|
11868
11868
|
] }) })
|
|
11869
11869
|
] });
|
|
@@ -11877,7 +11877,7 @@ const mo = T(
|
|
|
11877
11877
|
}, 250);
|
|
11878
11878
|
};
|
|
11879
11879
|
return /* @__PURE__ */ t(
|
|
11880
|
-
|
|
11880
|
+
LA,
|
|
11881
11881
|
{
|
|
11882
11882
|
isDisabled: e.is_complete,
|
|
11883
11883
|
isSaveDisabled: !i,
|
|
@@ -11910,7 +11910,7 @@ const mo = T(
|
|
|
11910
11910
|
}, 250);
|
|
11911
11911
|
};
|
|
11912
11912
|
return /* @__PURE__ */ t(
|
|
11913
|
-
|
|
11913
|
+
LA,
|
|
11914
11914
|
{
|
|
11915
11915
|
isDisabled: e.is_complete,
|
|
11916
11916
|
isSaveDisabled: !i || Number.isNaN(Number(i)) || i < 20 || i >= 100,
|
|
@@ -11937,7 +11937,7 @@ const mo = T(
|
|
|
11937
11937
|
i && gi(i) && (await a({ ...n, birthday: pe(i) }), r(A.alert_goal_updated_birthday));
|
|
11938
11938
|
};
|
|
11939
11939
|
return /* @__PURE__ */ t(
|
|
11940
|
-
|
|
11940
|
+
LA,
|
|
11941
11941
|
{
|
|
11942
11942
|
isDisabled: d,
|
|
11943
11943
|
isSaveDisabled: !!s,
|
|
@@ -11988,7 +11988,7 @@ const mo = T(
|
|
|
11988
11988
|
/* @__PURE__ */ t(li, { filled: !0 }),
|
|
11989
11989
|
A.details_add_account
|
|
11990
11990
|
] }) }),
|
|
11991
|
-
/* @__PURE__ */ t(
|
|
11991
|
+
/* @__PURE__ */ t(wA, { color: "primary" })
|
|
11992
11992
|
] }) }),
|
|
11993
11993
|
/* @__PURE__ */ t(
|
|
11994
11994
|
Co,
|
|
@@ -12128,7 +12128,7 @@ const mo = T(
|
|
|
12128
12128
|
E(!1), q === ee.SAVINGS_TRACK ? f(0) : q === ee.DEBT_TRACK ? f(1) : q === ee.RETIREMENT_TRACK && f(2);
|
|
12129
12129
|
};
|
|
12130
12130
|
return /* @__PURE__ */ l(
|
|
12131
|
-
|
|
12131
|
+
pA,
|
|
12132
12132
|
{
|
|
12133
12133
|
accountOptions: r,
|
|
12134
12134
|
actions: [
|
|
@@ -12604,7 +12604,11 @@ class o1 {
|
|
|
12604
12604
|
const {
|
|
12605
12605
|
appData: { client_communication_profile: A, client_profile: n }
|
|
12606
12606
|
} = this.globalStore.appDataStore;
|
|
12607
|
-
return
|
|
12607
|
+
return console.log({
|
|
12608
|
+
...A,
|
|
12609
|
+
...n,
|
|
12610
|
+
...this.appConfig
|
|
12611
|
+
}), i1({
|
|
12608
12612
|
...A,
|
|
12609
12613
|
...n,
|
|
12610
12614
|
...this.appConfig
|
|
@@ -12708,7 +12712,7 @@ const fo = 13, u1 = (e, A) => e.filter((n) => {
|
|
|
12708
12712
|
}), h1 = (e, A) => [...e, ...A], Fr = (e) => {
|
|
12709
12713
|
if (e && e.length > 0)
|
|
12710
12714
|
return e[e.length - 1];
|
|
12711
|
-
}, g1 = (e, A) => e.year_month - A.year_month, m1 = () => Array.from({ length: fo }, (e, A) => Math.floor(xe(
|
|
12715
|
+
}, g1 = (e, A) => e.year_month - A.year_month, m1 = () => Array.from({ length: fo }, (e, A) => Math.floor(xe(bA(/* @__PURE__ */ new Date(), A)).getTime() / 1e3)).sort(), C1 = (e, A, n) => !e.length || !A.length ? [] : m1().reduceRight((r, i) => {
|
|
12712
12716
|
const o = A.filter(
|
|
12713
12717
|
({ year_month: u }) => u === parseInt(Ye(Le(i), "yyyyMM"))
|
|
12714
12718
|
), s = e.map((u) => {
|
|
@@ -13197,7 +13201,7 @@ const y1 = ({
|
|
|
13197
13201
|
selectedData: m
|
|
13198
13202
|
};
|
|
13199
13203
|
return I ? /* @__PURE__ */ t(
|
|
13200
|
-
|
|
13204
|
+
pA,
|
|
13201
13205
|
{
|
|
13202
13206
|
accountOptions: i,
|
|
13203
13207
|
calendarActions: {
|
|
@@ -13367,15 +13371,15 @@ const H1 = (e, A) => {
|
|
|
13367
13371
|
const { isLoading: A, recentNotifications: n, markAllAsViewed: a } = Bi(), { notifications: r } = L(), i = (o) => {
|
|
13368
13372
|
e?.(o);
|
|
13369
13373
|
};
|
|
13370
|
-
return
|
|
13374
|
+
return xA(() => () => {
|
|
13371
13375
|
a().finally();
|
|
13372
13376
|
}, []), /* @__PURE__ */ l(fs, { sx: { p: 16 }, children: [
|
|
13373
13377
|
A && /* @__PURE__ */ t(Ve, { label: r?.loading, size: 40 }),
|
|
13374
|
-
!A && n.length === 0 && /* @__PURE__ */ t(
|
|
13378
|
+
!A && n.length === 0 && /* @__PURE__ */ t(yA, { sx: { p: 16 }, children: /* @__PURE__ */ t(p, { fontStyle: "italic", sx: { textAlign: "center" }, children: r.no_notifications }) }),
|
|
13375
13379
|
!A && n.slice().sort((o, s) => s.delivered_at - o.delivered_at).map((o, s) => {
|
|
13376
13380
|
const c = H1(s, n);
|
|
13377
|
-
return /* @__PURE__ */ l(
|
|
13378
|
-
c && /* @__PURE__ */ l(
|
|
13381
|
+
return /* @__PURE__ */ l(yA, { sx: { mb: 12 }, children: [
|
|
13382
|
+
c && /* @__PURE__ */ l(yA, { sx: { mb: 12 }, children: [
|
|
13379
13383
|
/* @__PURE__ */ t(q1, { date: o.delivered_at }),
|
|
13380
13384
|
/* @__PURE__ */ t(vs, {})
|
|
13381
13385
|
] }),
|
|
@@ -14192,7 +14196,7 @@ const Gn = ({
|
|
|
14192
14196
|
a(!0), m(G.ACCOUNTS_CLICK_CONNECT);
|
|
14193
14197
|
};
|
|
14194
14198
|
return /* @__PURE__ */ t(
|
|
14195
|
-
|
|
14199
|
+
pA,
|
|
14196
14200
|
{
|
|
14197
14201
|
accountOptions: o,
|
|
14198
14202
|
actions: [
|
|
@@ -15168,9 +15172,9 @@ const xm = ({
|
|
|
15168
15172
|
click_type: "list"
|
|
15169
15173
|
});
|
|
15170
15174
|
};
|
|
15171
|
-
return /* @__PURE__ */ l(
|
|
15175
|
+
return /* @__PURE__ */ l(fA, { elevation: 2, sx: { borderRadius: 2 }, children: [
|
|
15172
15176
|
/* @__PURE__ */ t(FA, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ t($A, { children: A.budget_categories_title }) }),
|
|
15173
|
-
/* @__PURE__ */ t(
|
|
15177
|
+
/* @__PURE__ */ t(IA, { sx: { p: 0, ":last-child": { p: 0 } }, children: /* @__PURE__ */ t(Ae, { children: n.map((i) => /* @__PURE__ */ l(g.Fragment, { children: [
|
|
15174
15178
|
/* @__PURE__ */ t(Pm, { budget: i, onClick: r }),
|
|
15175
15179
|
/* @__PURE__ */ t(H, {})
|
|
15176
15180
|
] }, i.guid)) }) })
|
|
@@ -15211,9 +15215,9 @@ const xm = ({
|
|
|
15211
15215
|
}
|
|
15212
15216
|
}), C(!0), A(G.BUDGETS_CLICK_EDIT_INCOME);
|
|
15213
15217
|
};
|
|
15214
|
-
return /* @__PURE__ */ l(
|
|
15218
|
+
return /* @__PURE__ */ l(fA, { elevation: 2, sx: { overflow: "visible", borderRadius: 2 }, children: [
|
|
15215
15219
|
/* @__PURE__ */ t(FA, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ t($A, { children: a.overview_title }) }),
|
|
15216
|
-
/* @__PURE__ */ t(
|
|
15220
|
+
/* @__PURE__ */ t(IA, { sx: { pt: 12, px: 24 }, children: /* @__PURE__ */ l(y, { gap: 24, children: [
|
|
15217
15221
|
/* @__PURE__ */ l(y, { gap: 8, children: [
|
|
15218
15222
|
/* @__PURE__ */ t(p, { bold: !0, sx: { mb: 8 }, variant: "Body", children: a.spending_title }),
|
|
15219
15223
|
/* @__PURE__ */ t(Ft, { data: v, height: 16 }),
|
|
@@ -15400,7 +15404,7 @@ const xm = ({
|
|
|
15400
15404
|
percentage: `${i}%`
|
|
15401
15405
|
}
|
|
15402
15406
|
];
|
|
15403
|
-
return /* @__PURE__ */ t(
|
|
15407
|
+
return /* @__PURE__ */ t(fA, { sx: { mt: 24, mx: 24 }, children: /* @__PURE__ */ t(IA, { children: /* @__PURE__ */ l(y, { alignItems: "center", gap: 16, children: [
|
|
15404
15408
|
/* @__PURE__ */ t(sA, { categoryGuid: r, size: 56 }),
|
|
15405
15409
|
/* @__PURE__ */ t(kA, { children: `${R(o, "0,0")} / ${R(A, "0,0")}` }),
|
|
15406
15410
|
/* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: a }),
|
|
@@ -15714,7 +15718,7 @@ const xm = ({
|
|
|
15714
15718
|
z(!1);
|
|
15715
15719
|
}, te = yt(m.end, xe(/* @__PURE__ */ new Date()));
|
|
15716
15720
|
return !s || !_ ? /* @__PURE__ */ t(Ve, {}) : /* @__PURE__ */ l(
|
|
15717
|
-
|
|
15721
|
+
pA,
|
|
15718
15722
|
{
|
|
15719
15723
|
accountOptions: r,
|
|
15720
15724
|
actions: [
|
|
@@ -15859,7 +15863,7 @@ const Qm = () => {
|
|
|
15859
15863
|
onRequestHelp: r,
|
|
15860
15864
|
onTopicSelect: i
|
|
15861
15865
|
}) => {
|
|
15862
|
-
const [o, s] =
|
|
15866
|
+
const [o, s] = EA(null), c = Math.ceil(A.length / 2);
|
|
15863
15867
|
return /* @__PURE__ */ l(Q, { children: [
|
|
15864
15868
|
/* @__PURE__ */ l(QA, { container: !0, sx: { alignItems: "center", mb: 24 }, children: [
|
|
15865
15869
|
/* @__PURE__ */ l(QA, { item: !0, md: 6, sm: 6, xs: 12, children: [
|
|
@@ -15956,13 +15960,13 @@ const Qm = () => {
|
|
|
15956
15960
|
help_title: "Help Tool"
|
|
15957
15961
|
}, U8 = () => {
|
|
15958
15962
|
const { helpCategories: e, setAppConfig: A } = yl(), n = window.app?.config;
|
|
15959
|
-
console.log(n, "::widgetProfile"),
|
|
15963
|
+
console.log(n, "::widgetProfile"), g.useEffect(() => {
|
|
15960
15964
|
A(n);
|
|
15961
15965
|
}, [n]);
|
|
15962
15966
|
const a = () => {
|
|
15963
15967
|
}, r = () => {
|
|
15964
15968
|
};
|
|
15965
|
-
return /* @__PURE__ */ t(N, { children: /* @__PURE__ */ t(
|
|
15969
|
+
return /* @__PURE__ */ t(pA, { children: /* @__PURE__ */ t(N, { children: /* @__PURE__ */ t(
|
|
15966
15970
|
Vm,
|
|
15967
15971
|
{
|
|
15968
15972
|
buttonText: Xn.button_text,
|
|
@@ -15972,7 +15976,7 @@ const Qm = () => {
|
|
|
15972
15976
|
onRequestHelp: a,
|
|
15973
15977
|
onTopicSelect: r
|
|
15974
15978
|
}
|
|
15975
|
-
) });
|
|
15979
|
+
) }) });
|
|
15976
15980
|
}, Ba = ({
|
|
15977
15981
|
bgcolor: e = "background.default",
|
|
15978
15982
|
children: A
|
|
@@ -16133,7 +16137,7 @@ const Qm = () => {
|
|
|
16133
16137
|
)
|
|
16134
16138
|
] });
|
|
16135
16139
|
}, So = Ko(void 0), Zm = ({ children: e }) => {
|
|
16136
|
-
const [A, n] =
|
|
16140
|
+
const [A, n] = EA({
|
|
16137
16141
|
isOpen: !1,
|
|
16138
16142
|
message: "",
|
|
16139
16143
|
severity: "success"
|
|
@@ -16259,7 +16263,7 @@ const Io = ({
|
|
|
16259
16263
|
() => A.reduce((w, D) => ({ ...w, [D.name]: !1 }), {}),
|
|
16260
16264
|
[A]
|
|
16261
16265
|
), [d, u] = g.useState(c), { toastState: h, hideToast: m } = To(), C = Oi(r);
|
|
16262
|
-
|
|
16266
|
+
xA(() => {
|
|
16263
16267
|
C && !r && u(c);
|
|
16264
16268
|
}, [C, r, c, u]);
|
|
16265
16269
|
const f = (w) => {
|
|
@@ -16507,7 +16511,7 @@ const Io = ({
|
|
|
16507
16511
|
isUpdateError: r,
|
|
16508
16512
|
isUpdateLoading: i
|
|
16509
16513
|
} = A, [o, s, c] = rC(n), { toastState: d, showToast: u, hideToast: h, setMessage: m } = To(), [C, f] = g.useState(!1), [v, E] = g.useState(!1), [I, S] = g.useState(""), [w, D] = g.useState(""), _ = Oi(i);
|
|
16510
|
-
|
|
16514
|
+
xA(() => {
|
|
16511
16515
|
_ && !i && (r ? u(e.something_went_wrong, "error") : u(void 0, "success"));
|
|
16512
16516
|
}, [_, r]);
|
|
16513
16517
|
const O = () => {
|
|
@@ -16882,8 +16886,8 @@ const Vt = g.createContext(null), hC = ({
|
|
|
16882
16886
|
store: n,
|
|
16883
16887
|
children: a
|
|
16884
16888
|
}) => /* @__PURE__ */ t(Vt.Provider, { value: { onEvent: e, onPageview: A, store: n, children: a }, children: a }), gC = ({ beat: e }) => {
|
|
16885
|
-
const [A, n] =
|
|
16886
|
-
return
|
|
16889
|
+
const [A, n] = EA(b.UNCATEGORIZED);
|
|
16890
|
+
return xA(() => {
|
|
16887
16891
|
e.primary_category_guid ? n(e.primary_category_guid) : e.category_guids?.length && n(e.category_guids[0]);
|
|
16888
16892
|
}, []), /* @__PURE__ */ t(sA, { categoryGuid: A, size: 16, sx: { minWidth: 16 } });
|
|
16889
16893
|
}, mC = ({ beat: e }) => {
|
|
@@ -17777,12 +17781,12 @@ const Vt = g.createContext(null), hC = ({
|
|
|
17777
17781
|
const C = window.app?.config.client_guid, { ref: f, inView: v } = vi({
|
|
17778
17782
|
threshold: Po
|
|
17779
17783
|
}), { cardsCopy: E } = ut(), { onEvent: I } = Jt(), { updateBeat: S } = wC();
|
|
17780
|
-
|
|
17784
|
+
xA(() => {
|
|
17781
17785
|
v && (n.has_been_displayed ? I(Do(n.template)) : (S({
|
|
17782
17786
|
...n,
|
|
17783
17787
|
has_been_displayed: !0
|
|
17784
17788
|
}), I(xo(n.template))));
|
|
17785
|
-
}, [v]),
|
|
17789
|
+
}, [v]), xA(() => {
|
|
17786
17790
|
d?.capture && v && n && C && d.capture("micro_widget_viewed_insight", {
|
|
17787
17791
|
beat_guid: n.guid,
|
|
17788
17792
|
insight_template: n.template,
|
|
@@ -18061,7 +18065,7 @@ const Vt = g.createContext(null), hC = ({
|
|
|
18061
18065
|
tabIndex: c ? 0 : -1,
|
|
18062
18066
|
children: [
|
|
18063
18067
|
n && /* @__PURE__ */ t("span", { "aria-label": n, style: { visibility: "hidden" } }),
|
|
18064
|
-
/* @__PURE__ */ l(
|
|
18068
|
+
/* @__PURE__ */ l(fA, { className: "mx-micro-card", sx: { backgroundColor: a }, variant: f, children: [
|
|
18065
18069
|
/* @__PURE__ */ t(
|
|
18066
18070
|
FA,
|
|
18067
18071
|
{
|
|
@@ -18252,7 +18256,7 @@ const Vt = g.createContext(null), hC = ({
|
|
|
18252
18256
|
variant: w,
|
|
18253
18257
|
widthOverrides: D
|
|
18254
18258
|
}) => {
|
|
18255
|
-
const [_, O] =
|
|
18259
|
+
const [_, O] = EA("STANDARD"), [x, z] = EA(!1), K = Wc([c], RA), q = Yc([d], RA);
|
|
18256
18260
|
g.useEffect(() => {
|
|
18257
18261
|
RA.isInitialized || RA.initialize(r, E, o);
|
|
18258
18262
|
}, [r, E, o, RA.isInitialized]), g.useEffect(() => {
|
|
@@ -18383,9 +18387,9 @@ const Vt = g.createContext(null), hC = ({
|
|
|
18383
18387
|
const d = qe(), u = window.app?.config.client_guid, { ref: h, inView: m } = vi({
|
|
18384
18388
|
threshold: Po
|
|
18385
18389
|
}), { cardsCopy: C } = ut(), { onEvent: f } = Jt();
|
|
18386
|
-
|
|
18390
|
+
xA(() => {
|
|
18387
18391
|
m && f(Oo.ON_VIEW_MORE_VIEWED);
|
|
18388
|
-
}, [m]),
|
|
18392
|
+
}, [m]), xA(() => {
|
|
18389
18393
|
i?.capture && m && u && i.capture("micro_widget_viewed_insight", {
|
|
18390
18394
|
insight_template: "read_more_card",
|
|
18391
18395
|
$groups: { client: u }
|
|
@@ -18977,7 +18981,7 @@ const Vt = g.createContext(null), hC = ({
|
|
|
18977
18981
|
i(h[0], h[1]);
|
|
18978
18982
|
};
|
|
18979
18983
|
return !r || !c ? /* @__PURE__ */ t(Ve, {}) : /* @__PURE__ */ t(
|
|
18980
|
-
|
|
18984
|
+
pA,
|
|
18981
18985
|
{
|
|
18982
18986
|
accountOptions: n,
|
|
18983
18987
|
calendarActions: { onRangeChanged: u },
|
|
@@ -19162,7 +19166,7 @@ const tp = (e) => e.reduce((n, a) => {
|
|
|
19162
19166
|
view_transactions: "View Transactions"
|
|
19163
19167
|
}, gp = ({ onBackClick: e, sx: A }) => {
|
|
19164
19168
|
const n = cA(), { onEvent: a } = $(), { isDesktop: r, isTablet: i, isMobile: o } = Be(), { accounts: s } = ve(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: d, getCategoryName: u } = _e(), { sortedTransactions: h } = ge(), { isInitialized: m, selectedAccounts: C, setSelectedAccounts: f } = ye(), { trends: v } = L(), E = n.palette.mode === "dark", [I, S] = g.useState(!1), [w, D] = g.useState(!1), [_, O] = g.useState("Chart"), [x, z] = g.useState(""), [K, q] = g.useState({
|
|
19165
|
-
start: er(Re(
|
|
19169
|
+
start: er(Re(bA(/* @__PURE__ */ new Date(), 6)), 1),
|
|
19166
19170
|
end: Re(/* @__PURE__ */ new Date())
|
|
19167
19171
|
});
|
|
19168
19172
|
g.useEffect(() => {
|
|
@@ -19213,13 +19217,13 @@ const tp = (e) => e.reduce((n, a) => {
|
|
|
19213
19217
|
z(Se), a(G.TRENDS_CLICK_LEGEND, { category: u(Se) });
|
|
19214
19218
|
}, iA = (Se) => {
|
|
19215
19219
|
a(G.TRENDS_HOVER_LEGEND, { category: u(Se) });
|
|
19216
|
-
},
|
|
19220
|
+
}, DA = (Se) => {
|
|
19217
19221
|
a(G.TRENDS_HOVER_AREA, { category: Se });
|
|
19218
19222
|
}, at = (Se) => {
|
|
19219
19223
|
a(G.TRENDS_HOVER_POINT, { category: Se });
|
|
19220
19224
|
};
|
|
19221
19225
|
return !m || !I ? /* @__PURE__ */ t(Ve, {}) : /* @__PURE__ */ l(
|
|
19222
|
-
|
|
19226
|
+
pA,
|
|
19223
19227
|
{
|
|
19224
19228
|
accountOptions: s,
|
|
19225
19229
|
calendarActions: { onRangeChanged: ue },
|
|
@@ -19316,7 +19320,7 @@ const tp = (e) => e.reduce((n, a) => {
|
|
|
19316
19320
|
Dl,
|
|
19317
19321
|
{
|
|
19318
19322
|
onClickLegend: we,
|
|
19319
|
-
onHoverArea:
|
|
19323
|
+
onHoverArea: DA,
|
|
19320
19324
|
onHoverLegend: iA,
|
|
19321
19325
|
onHoverPoint: at,
|
|
19322
19326
|
stackedDatasets: F.stackedDatasets,
|
|
@@ -19472,7 +19476,7 @@ export {
|
|
|
19472
19476
|
Pc as IterationItemTypes,
|
|
19473
19477
|
m8 as LOADING_STATUS,
|
|
19474
19478
|
va as LineChart,
|
|
19475
|
-
|
|
19479
|
+
LA as ListItemAction,
|
|
19476
19480
|
Bl as ListItemWrapper,
|
|
19477
19481
|
Ve as Loader,
|
|
19478
19482
|
v8 as LocalizedCopyApi,
|
|
@@ -19547,7 +19551,7 @@ export {
|
|
|
19547
19551
|
nd as UserVerification,
|
|
19548
19552
|
zC as ViewMoreMicroCard,
|
|
19549
19553
|
sr as WidgetApi,
|
|
19550
|
-
|
|
19554
|
+
pA as WidgetContainer,
|
|
19551
19555
|
Pi as WidgetContainerContext,
|
|
19552
19556
|
Mi as WidgetContainerProvider,
|
|
19553
19557
|
qC as ZeroStateCard,
|