@mx-cartographer/experiences 6.2.5 → 6.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -1
- package/dist/index.es.js +444 -437
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -6,7 +6,7 @@ import G from "@mui/material/Divider";
|
|
6
6
|
import ie from "@mui/material/List";
|
7
7
|
import Rt from "@mui/material/ListSubheader";
|
8
8
|
import Ee from "@mui/system/Stack";
|
9
|
-
import { AccountsIcon as yl, P as Oe, Icon as
|
9
|
+
import { AccountsIcon as yl, P as Oe, Icon as $, useTokens as ft, Text as p, H2 as $n, CategoryIcon as kt, DialogHeader as El, DialogFooter as Sl, Drawer as Tl, Footer as Al, DateRangePicker as Xr, H3 as mt, H1 as cn, TextField as An, IconWeight as bt, MerchantLogo as ln, CategoryIconVariants as Is, InstitutionLogo as pt, ChevronRightIcon as Il, THEMES as qr } from "@mxenabled/mxui";
|
10
10
|
import xl from "bowser";
|
11
11
|
import { getUnixTime as Le } from "date-fns/getUnixTime";
|
12
12
|
import { intlFormat as vl } from "date-fns/intlFormat";
|
@@ -26,14 +26,14 @@ import ee from "@mui/material/Button";
|
|
26
26
|
import Yn from "@mui/material/Tooltip";
|
27
27
|
import Ue from "@mui/material/IconButton";
|
28
28
|
import er from "@mui/material/FormControlLabel";
|
29
|
-
import
|
29
|
+
import X from "@mui/material/ListItem";
|
30
30
|
import de from "@mui/material/ListItemButton";
|
31
31
|
import re from "@mui/material/ListItemText";
|
32
32
|
import xs from "@mui/material/Popover";
|
33
33
|
import b from "@mui/material/Stack";
|
34
34
|
import ji from "@mui/material/Checkbox";
|
35
35
|
import { alpha as wl, lighten as Zr, darken as Qr, Stack as ye, Box as nn, useTheme as vn, Card as sa, CardContent as Nl, Button as Dl, List as Rl, Divider as Ol } from "@mui/material";
|
36
|
-
import
|
36
|
+
import pe from "@mui/material/styles/useTheme";
|
37
37
|
import Un from "@mui/material/useMediaQuery";
|
38
38
|
import { css as Qt, keyframes as Ll } from "@mxenabled/cssinjs";
|
39
39
|
import { addDays as Mt } from "date-fns/addDays";
|
@@ -1267,7 +1267,7 @@ const Wa = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
1267
1267
|
}
|
1268
1268
|
},
|
1269
1269
|
children: [
|
1270
|
-
/* @__PURE__ */ t(
|
1270
|
+
/* @__PURE__ */ t(X, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(
|
1271
1271
|
er,
|
1272
1272
|
{
|
1273
1273
|
control: /* @__PURE__ */ t(
|
@@ -1298,7 +1298,7 @@ const Wa = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
1298
1298
|
const T = m[y], v = T.every(
|
1299
1299
|
(w) => d[w.guid]
|
1300
1300
|
);
|
1301
|
-
return /* @__PURE__ */ t(
|
1301
|
+
return /* @__PURE__ */ t(X, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(
|
1302
1302
|
ie,
|
1303
1303
|
{
|
1304
1304
|
"aria-label": S(i.accountTypeAccounts, y),
|
@@ -1333,7 +1333,7 @@ const Wa = (e, n) => e.reduce((i, a) => (i[a.guid] = n?.includes(a.guid), i), {}
|
|
1333
1333
|
children: T.map((w) => {
|
1334
1334
|
const x = d[w.guid], R = `${w.name}${h && w.accountNumber ? ` *${w.accountNumber.slice(-4)}` : ""}`;
|
1335
1335
|
return /* @__PURE__ */ t(
|
1336
|
-
|
1336
|
+
X,
|
1337
1337
|
{
|
1338
1338
|
className: "mx-cmn-account-options-container",
|
1339
1339
|
disableGutters: !0,
|
@@ -1407,17 +1407,17 @@ const fu = (e, n) => {
|
|
1407
1407
|
}, [e, i]);
|
1408
1408
|
}, ve = () => ({
|
1409
1409
|
// Larger than 1400
|
1410
|
-
isLargeDesktop: Un(
|
1410
|
+
isLargeDesktop: Un(pe().breakpoints.up("xl")),
|
1411
1411
|
// Larger than 1200
|
1412
|
-
isDesktop: Un(
|
1412
|
+
isDesktop: Un(pe().breakpoints.up("lg")),
|
1413
1413
|
// Smaller than 768
|
1414
|
-
isMobile: Un(
|
1414
|
+
isMobile: Un(pe().breakpoints.down("sm")),
|
1415
1415
|
// Smaller than 400
|
1416
|
-
isSmallMobile: Un(
|
1416
|
+
isSmallMobile: Un(pe().breakpoints.down("xs")),
|
1417
1417
|
// Between 768 and 992
|
1418
|
-
isSmallTablet: Un(
|
1418
|
+
isSmallTablet: Un(pe().breakpoints.between("sm", "md")),
|
1419
1419
|
// Between 768 and 1200
|
1420
|
-
isTablet: Un(
|
1420
|
+
isTablet: Un(pe().breakpoints.between("sm", "lg"))
|
1421
1421
|
}), L2 = (e) => {
|
1422
1422
|
const n = As();
|
1423
1423
|
return Kn(() => {
|
@@ -1456,7 +1456,7 @@ const fu = (e, n) => {
|
|
1456
1456
|
color: "primary",
|
1457
1457
|
onClick: C,
|
1458
1458
|
sx: { p: 12 },
|
1459
|
-
children: /* @__PURE__ */ t(
|
1459
|
+
children: /* @__PURE__ */ t($, { name: "filter_alt", size: 24 })
|
1460
1460
|
}
|
1461
1461
|
) }) : /* @__PURE__ */ t(
|
1462
1462
|
ee,
|
@@ -1465,7 +1465,7 @@ const fu = (e, n) => {
|
|
1465
1465
|
"aria-haspopup": !0,
|
1466
1466
|
"aria-label": n.title,
|
1467
1467
|
onClick: C,
|
1468
|
-
startIcon: /* @__PURE__ */ t(
|
1468
|
+
startIcon: /* @__PURE__ */ t($, { name: "filter_alt", size: 24 }),
|
1469
1469
|
sx: { p: 12 },
|
1470
1470
|
variant: c,
|
1471
1471
|
children: n.title
|
@@ -1773,7 +1773,7 @@ const fu = (e, n) => {
|
|
1773
1773
|
gap: 4
|
1774
1774
|
}
|
1775
1775
|
}), Ru = ({ beginDate: e, date: n, endDate: i, isInMonth: a, onClick: r }) => {
|
1776
|
-
const o =
|
1776
|
+
const o = pe(), s = Ou(o), c = e && i && ai(n, { start: e, end: i }) && !dt(n, e) && !dt(n, i), d = e && i && dt(e, n) && !dt(e, i), _ = i && e && dt(i, n) && !dt(e, i), u = e && dt(e, n) || i && dt(i, n), h = dt(n, le());
|
1777
1777
|
return /* @__PURE__ */ t(
|
1778
1778
|
"div",
|
1779
1779
|
{
|
@@ -2413,9 +2413,9 @@ const Mu = ({
|
|
2413
2413
|
cursorPos: { x: 0, y: 0 }
|
2414
2414
|
}), { hoveredSeriesId: E, hoveredAreaData: y, isAreaHovered: T, cursorPos: v } = C, w = T && E && y, x = !w, R = [...r, ...o], D = R[0]?.dataset.length ?? 0, H = R.flatMap((se) => se.dataset.map((He) => He.x)), O = R.flatMap((se) => se.dataset.map((He) => He.y)), L = r[0]?.dataset?.map(
|
2415
2415
|
(se, He) => r.reduce((Fe, _n) => Fe + _n.dataset[He]?.y || 0, 0)
|
2416
|
-
) ?? [0], U = Math.max(...L),
|
2416
|
+
) ?? [0], U = Math.max(...L), P = Math.max(
|
2417
2417
|
...o.flatMap((se) => se.dataset.map((He) => He.y))
|
2418
|
-
),
|
2418
|
+
), j = Math.floor(Math.min(...O) / 100) * 100, he = Math.ceil(Math.max(U, P) / 100) * 100, V = r.map((se, He) => ({
|
2419
2419
|
id: `stacked-${He}`,
|
2420
2420
|
guid: se.category_guid,
|
2421
2421
|
top_level_guid: se.top_level_category_guid,
|
@@ -2437,7 +2437,7 @@ const Mu = ({
|
|
2437
2437
|
label: se.category_name,
|
2438
2438
|
type: "line",
|
2439
2439
|
valueFormatter: (Fe) => B(Fe, "0,0")
|
2440
|
-
})),
|
2440
|
+
})), me = [...V, ...Ce], _e = [
|
2441
2441
|
...V.map(({ guid: se, top_level_guid: He }) => ({
|
2442
2442
|
guid: se,
|
2443
2443
|
top_level_guid: He
|
@@ -2452,7 +2452,7 @@ const Mu = ({
|
|
2452
2452
|
guid: Fe?.category_guid,
|
2453
2453
|
topLevelGuid: Fe?.top_level_category_guid
|
2454
2454
|
};
|
2455
|
-
},
|
2455
|
+
}, ge = (se) => {
|
2456
2456
|
m(se), i?.(se ?? "");
|
2457
2457
|
}, ze = (se) => {
|
2458
2458
|
a?.(se ?? "");
|
@@ -2460,7 +2460,7 @@ const Mu = ({
|
|
2460
2460
|
const se = Pe(String(E)).guid;
|
2461
2461
|
se && a?.(se);
|
2462
2462
|
}, Te = (se) => {
|
2463
|
-
const He = String(se?.seriesId), Fe = Pe(He).guid, _n =
|
2463
|
+
const He = String(se?.seriesId), Fe = Pe(He).guid, _n = me.find((ui) => ui.id === He), Ga = _n && se?.dataIndex !== void 0, Ba = _n && se?.dataIndex === void 0;
|
2464
2464
|
if (Ga)
|
2465
2465
|
f({
|
2466
2466
|
hoveredSeriesId: He,
|
@@ -2532,7 +2532,7 @@ const Mu = ({
|
|
2532
2532
|
margin: { bottom: 50 },
|
2533
2533
|
onAreaClick: je,
|
2534
2534
|
onHighlightChange: Te,
|
2535
|
-
series:
|
2535
|
+
series: me,
|
2536
2536
|
skipAnimation: !0,
|
2537
2537
|
slotProps: {
|
2538
2538
|
legend: {
|
@@ -2565,8 +2565,8 @@ const Mu = ({
|
|
2565
2565
|
],
|
2566
2566
|
yAxis: [
|
2567
2567
|
{
|
2568
|
-
min:
|
2569
|
-
max:
|
2568
|
+
min: j,
|
2569
|
+
max: he || 100
|
2570
2570
|
}
|
2571
2571
|
]
|
2572
2572
|
}
|
@@ -2577,7 +2577,7 @@ const Mu = ({
|
|
2577
2577
|
categoryGuids: _e,
|
2578
2578
|
hoveredLegend: h,
|
2579
2579
|
onClickLegend: ze,
|
2580
|
-
onHoverLegend:
|
2580
|
+
onHoverLegend: ge,
|
2581
2581
|
sx: { px: _ ? 0 : 24 }
|
2582
2582
|
}
|
2583
2583
|
),
|
@@ -2791,7 +2791,7 @@ const Mu = ({
|
|
2791
2791
|
toolTipContent: o = "",
|
2792
2792
|
variant: s = "outlined"
|
2793
2793
|
}) => {
|
2794
|
-
const c =
|
2794
|
+
const c = pe(), d = c.palette.mode === "dark", { isMobile: _ } = ve(), [u, h] = g.useState(a), [m, C] = g.useState(i.dateRangePickerCopy.dateRangeThisMonth), [f, E] = g.useState(u), [y, T] = g.useState(!1), [v, w] = g.useState(!0), [x, R] = g.useState(6), D = {
|
2795
2795
|
buttons: [
|
2796
2796
|
{ label: "3M", value: 3 },
|
2797
2797
|
{ label: "6M", value: 6 },
|
@@ -2811,25 +2811,25 @@ const Mu = ({
|
|
2811
2811
|
(s === "timeframebuttons" || s === "timeframetabs") && e.onRangeChanged(H());
|
2812
2812
|
}, [x]);
|
2813
2813
|
const H = () => {
|
2814
|
-
const
|
2815
|
-
return [Xe(jt(
|
2816
|
-
}, O = (
|
2817
|
-
const
|
2814
|
+
const P = Xe(In());
|
2815
|
+
return [Xe(jt(P, x)), P];
|
2816
|
+
}, O = (P) => {
|
2817
|
+
const j = [...u], he = u[0], V = u[1], Ce = P === "previous";
|
2818
2818
|
if (m === i.dateRangePickerCopy.dateRangeThisMonth)
|
2819
|
-
|
2819
|
+
j[0] = Ce ? jt(he, 1) : gt(he, 1), j[1] = Xe(Ce ? jt(V, 1) : gt(V, 1));
|
2820
2820
|
else if (m === i.dateRangePickerCopy.dateRangeYTD || m === i.dateRangePickerCopy.dateRangeLastYear)
|
2821
|
-
|
2821
|
+
j[0] = Ce ? tr(eo(he), 1) : ni(eo(he), 1), j[1] = Ce ? tr(Jr(he), 1) : ni(Jr(he), 1);
|
2822
2822
|
else {
|
2823
|
-
const
|
2824
|
-
|
2823
|
+
const me = Jl(V, he);
|
2824
|
+
j[0] = P === "previous" ? ut(he, me) : Mt(he, me), j[1] = P === "previous" ? ut(V, me) : Mt(V, me);
|
2825
2825
|
}
|
2826
|
-
h(
|
2826
|
+
h(j), e.onRangeChanged(j);
|
2827
2827
|
}, L = () => {
|
2828
2828
|
h(f), w(
|
2829
2829
|
m === i.dateRangePickerCopy.dateRangeThisMonth || m === i.dateRangePickerCopy.dateRangeLastMonth
|
2830
2830
|
), e.onRangeChanged(f);
|
2831
|
-
}, U = (
|
2832
|
-
R(
|
2831
|
+
}, U = (P) => {
|
2832
|
+
R(P);
|
2833
2833
|
};
|
2834
2834
|
return /* @__PURE__ */ l(M, { className: "mx-cmn-date-range-selector", m: 4, children: [
|
2835
2835
|
/* @__PURE__ */ t(
|
@@ -2845,7 +2845,7 @@ const Mu = ({
|
|
2845
2845
|
"aria-describedby": "select-date",
|
2846
2846
|
"aria-label": "Select a date",
|
2847
2847
|
onClick: () => T(!0),
|
2848
|
-
children: /* @__PURE__ */ t(
|
2848
|
+
children: /* @__PURE__ */ t($, { name: "calendar_month" })
|
2849
2849
|
}
|
2850
2850
|
)
|
2851
2851
|
}
|
@@ -2862,9 +2862,9 @@ const Mu = ({
|
|
2862
2862
|
},
|
2863
2863
|
children: [
|
2864
2864
|
s === "readonly" && /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 8, children: [
|
2865
|
-
/* @__PURE__ */ t(
|
2865
|
+
/* @__PURE__ */ t($, { name: "calendar_month", size: 24 }),
|
2866
2866
|
/* @__PURE__ */ t(p, { bold: !0, children: ae(f[0], te.MONTH_DAY) }),
|
2867
|
-
/* @__PURE__ */ t(
|
2867
|
+
/* @__PURE__ */ t($, { name: "remove" }),
|
2868
2868
|
/* @__PURE__ */ t(p, { bold: !0, children: ae(f[1], te.MONTH_DAY_YEAR) })
|
2869
2869
|
] }),
|
2870
2870
|
s !== "readonly" && s !== "timeframebuttons" && s !== "timeframetabs" && /* @__PURE__ */ l(
|
@@ -2889,7 +2889,7 @@ const Mu = ({
|
|
2889
2889
|
"aria-label": i.dateRangePreviousAria,
|
2890
2890
|
color: e.shouldDisablePrevious ? "secondary" : "primary",
|
2891
2891
|
onClick: () => e.shouldDisablePrevious ? null : O("previous"),
|
2892
|
-
children: /* @__PURE__ */ t(
|
2892
|
+
children: /* @__PURE__ */ t($, { name: "chevron_left", size: 20 })
|
2893
2893
|
}
|
2894
2894
|
),
|
2895
2895
|
/* @__PURE__ */ t(
|
@@ -2898,7 +2898,7 @@ const Mu = ({
|
|
2898
2898
|
"aria-disabled": e.shouldDisablePicker,
|
2899
2899
|
color: n,
|
2900
2900
|
onClick: () => e.shouldDisablePicker ? null : T(!0),
|
2901
|
-
startIcon: /* @__PURE__ */ t(
|
2901
|
+
startIcon: /* @__PURE__ */ t($, { name: "calendar_month", size: 20 }),
|
2902
2902
|
sx: {
|
2903
2903
|
p: _ ? 0 : 8
|
2904
2904
|
},
|
@@ -2917,7 +2917,7 @@ const Mu = ({
|
|
2917
2917
|
"aria-label": i.dateRangeNextAria,
|
2918
2918
|
color: e.shouldDisableNext ? "secondary" : "primary",
|
2919
2919
|
onClick: () => e.shouldDisableNext ? null : O("next"),
|
2920
|
-
children: /* @__PURE__ */ t(
|
2920
|
+
children: /* @__PURE__ */ t($, { name: "chevron_right", size: 20 })
|
2921
2921
|
}
|
2922
2922
|
)
|
2923
2923
|
]
|
@@ -2930,10 +2930,10 @@ const Mu = ({
|
|
2930
2930
|
exclusive: !0,
|
2931
2931
|
orientation: "horizontal",
|
2932
2932
|
value: x,
|
2933
|
-
children: D.buttons.map((
|
2933
|
+
children: D.buttons.map((P) => /* @__PURE__ */ t(
|
2934
2934
|
wi,
|
2935
2935
|
{
|
2936
|
-
onClick: () => U(
|
2936
|
+
onClick: () => U(P.value),
|
2937
2937
|
sx: {
|
2938
2938
|
fontSize: 15,
|
2939
2939
|
fontWeight: 600,
|
@@ -2957,10 +2957,10 @@ const Mu = ({
|
|
2957
2957
|
color: c.palette.grey[500]
|
2958
2958
|
}
|
2959
2959
|
},
|
2960
|
-
value:
|
2961
|
-
children:
|
2960
|
+
value: P.value,
|
2961
|
+
children: P.label
|
2962
2962
|
},
|
2963
|
-
|
2963
|
+
P.label
|
2964
2964
|
))
|
2965
2965
|
}
|
2966
2966
|
),
|
@@ -2968,18 +2968,18 @@ const Mu = ({
|
|
2968
2968
|
Lt,
|
2969
2969
|
{
|
2970
2970
|
indicatorColor: "primary",
|
2971
|
-
onChange: (
|
2971
|
+
onChange: (P, j) => U(j),
|
2972
2972
|
textColor: "primary",
|
2973
2973
|
value: x,
|
2974
2974
|
variant: "fullWidth",
|
2975
|
-
children: D.tabs.map((
|
2975
|
+
children: D.tabs.map((P) => /* @__PURE__ */ t(
|
2976
2976
|
Ve,
|
2977
2977
|
{
|
2978
|
-
label: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children:
|
2978
|
+
label: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: P.label }),
|
2979
2979
|
sx: { minWidth: 80 },
|
2980
|
-
value:
|
2980
|
+
value: P.value
|
2981
2981
|
},
|
2982
|
-
|
2982
|
+
P.label
|
2983
2983
|
))
|
2984
2984
|
}
|
2985
2985
|
)
|
@@ -3002,8 +3002,8 @@ const Mu = ({
|
|
3002
3002
|
{
|
3003
3003
|
copy: i.dateRangePickerCopy,
|
3004
3004
|
dateRange: f,
|
3005
|
-
onRangeChanged: (
|
3006
|
-
E(
|
3005
|
+
onRangeChanged: (P, j) => {
|
3006
|
+
E(P), C(j);
|
3007
3007
|
},
|
3008
3008
|
selectedShortcut: m,
|
3009
3009
|
sx: { p: 16 }
|
@@ -3029,8 +3029,8 @@ const Mu = ({
|
|
3029
3029
|
{
|
3030
3030
|
copy: i.dateRangePickerCopy,
|
3031
3031
|
dateRange: f,
|
3032
|
-
onRangeChanged: (
|
3033
|
-
E(
|
3032
|
+
onRangeChanged: (P, j) => {
|
3033
|
+
E(P), C(j);
|
3034
3034
|
},
|
3035
3035
|
selectedShortcut: m,
|
3036
3036
|
sx: {
|
@@ -3103,7 +3103,7 @@ const Mu = ({
|
|
3103
3103
|
strokeWidth: a = Vs,
|
3104
3104
|
children: r
|
3105
3105
|
}) => {
|
3106
|
-
const o =
|
3106
|
+
const o = pe(), s = (i - a) / 2, c = -90, d = n > 100 ? 100 : n, _ = 2 * Math.PI * s * (1 - d / 100), u = i / 2;
|
3107
3107
|
return /* @__PURE__ */ l(
|
3108
3108
|
M,
|
3109
3109
|
{
|
@@ -3245,7 +3245,7 @@ const Dn = ({
|
|
3245
3245
|
};
|
3246
3246
|
if (!D)
|
3247
3247
|
return /* @__PURE__ */ t(ue, {});
|
3248
|
-
const
|
3248
|
+
const P = {
|
3249
3249
|
accountFilterOptionsCopy: {
|
3250
3250
|
accountTypeAccounts: L.account_filter.account_type_accounts,
|
3251
3251
|
cancelButton: L.cancel_button,
|
@@ -3259,7 +3259,7 @@ const Dn = ({
|
|
3259
3259
|
zeroStateTitle: L.account_filter.zero_state_title
|
3260
3260
|
},
|
3261
3261
|
title: L.account_filter.title
|
3262
|
-
},
|
3262
|
+
}, j = {
|
3263
3263
|
dateRangePickerCopy: {
|
3264
3264
|
dateRangeFrom: L.date_range_picker.from,
|
3265
3265
|
dateRangeTo: L.date_range_picker.to,
|
@@ -3277,7 +3277,7 @@ const Dn = ({
|
|
3277
3277
|
dateRangeEditTitle: L.date_range_picker.edit_title,
|
3278
3278
|
dateRangeNextAria: L.date_range_picker.next_aria,
|
3279
3279
|
dateRangePreviousAria: L.date_range_picker.previous_aria
|
3280
|
-
},
|
3280
|
+
}, he = r ? r.start : R.start, V = r ? r.end : R.end, Ce = n?.length > 1;
|
3281
3281
|
return /* @__PURE__ */ l(
|
3282
3282
|
Gt,
|
3283
3283
|
{
|
@@ -3303,8 +3303,8 @@ const Dn = ({
|
|
3303
3303
|
bo,
|
3304
3304
|
{
|
3305
3305
|
calendarActions: i,
|
3306
|
-
copy:
|
3307
|
-
range: [
|
3306
|
+
copy: j,
|
3307
|
+
range: [he, V],
|
3308
3308
|
shouldShrinkToIcon: !1,
|
3309
3309
|
variant: o
|
3310
3310
|
}
|
@@ -3313,37 +3313,37 @@ const Dn = ({
|
|
3313
3313
|
Qs,
|
3314
3314
|
{
|
3315
3315
|
accounts: e,
|
3316
|
-
copy:
|
3317
|
-
onFilterClick: (
|
3318
|
-
O(
|
3316
|
+
copy: P,
|
3317
|
+
onFilterClick: (me) => {
|
3318
|
+
O(me), _?.();
|
3319
3319
|
},
|
3320
3320
|
selectedAccountGuids: H,
|
3321
3321
|
showAccountNumbers: !1,
|
3322
3322
|
variant: "text"
|
3323
3323
|
}
|
3324
3324
|
),
|
3325
|
-
n?.map((
|
3326
|
-
if (g.isValidElement(
|
3327
|
-
const { iconName: _e, onClick: Pe, label:
|
3325
|
+
n?.map((me) => {
|
3326
|
+
if (g.isValidElement(me)) return me;
|
3327
|
+
const { iconName: _e, onClick: Pe, label: ge } = me;
|
3328
3328
|
return Ce ? v ? /* @__PURE__ */ t(
|
3329
3329
|
ee,
|
3330
3330
|
{
|
3331
3331
|
onClick: Pe,
|
3332
|
-
startIcon: /* @__PURE__ */ t(
|
3332
|
+
startIcon: /* @__PURE__ */ t($, { color: "primary", name: _e }),
|
3333
3333
|
sx: { my: 4 },
|
3334
|
-
children:
|
3334
|
+
children: ge
|
3335
3335
|
},
|
3336
3336
|
_e
|
3337
|
-
) : /* @__PURE__ */ t(Ue, { "aria-label":
|
3337
|
+
) : /* @__PURE__ */ t(Ue, { "aria-label": ge, color: "primary", onClick: Pe, children: /* @__PURE__ */ t($, { name: _e }) }, _e) : T || x ? /* @__PURE__ */ t(
|
3338
3338
|
ee,
|
3339
3339
|
{
|
3340
3340
|
onClick: Pe,
|
3341
|
-
startIcon: /* @__PURE__ */ t(
|
3341
|
+
startIcon: /* @__PURE__ */ t($, { name: _e }),
|
3342
3342
|
sx: { my: 4 },
|
3343
|
-
children:
|
3343
|
+
children: ge
|
3344
3344
|
},
|
3345
3345
|
_e
|
3346
|
-
) : /* @__PURE__ */ t(Ue, { "aria-label":
|
3346
|
+
) : /* @__PURE__ */ t(Ue, { "aria-label": ge, color: "primary", onClick: Pe, children: /* @__PURE__ */ t($, { name: _e }) }, _e);
|
3347
3347
|
})
|
3348
3348
|
] }),
|
3349
3349
|
sx: {
|
@@ -3364,7 +3364,7 @@ const Dn = ({
|
|
3364
3364
|
"aria-label": L.back_to_dashboard,
|
3365
3365
|
onClick: U,
|
3366
3366
|
sx: { p: 12, mr: 4 },
|
3367
|
-
children: /* @__PURE__ */ t(
|
3367
|
+
children: /* @__PURE__ */ t($, { name: "arrow_back", size: 24 })
|
3368
3368
|
}
|
3369
3369
|
),
|
3370
3370
|
/* @__PURE__ */ t(mt, { children: m })
|
@@ -3378,8 +3378,8 @@ const Dn = ({
|
|
3378
3378
|
bo,
|
3379
3379
|
{
|
3380
3380
|
calendarActions: i,
|
3381
|
-
copy:
|
3382
|
-
range: [
|
3381
|
+
copy: j,
|
3382
|
+
range: [he, V],
|
3383
3383
|
shouldShrinkToIcon: !1,
|
3384
3384
|
variant: o
|
3385
3385
|
}
|
@@ -3425,7 +3425,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3425
3425
|
let r;
|
3426
3426
|
const { refreshAccounts: o } = Re(), { loadWidget: s } = nc(), { connect: c } = I(), [d, _] = g.useState(!1), [u, h] = g.useState(!1), {
|
3427
3427
|
palette: { mode: m }
|
3428
|
-
} =
|
3428
|
+
} = pe();
|
3429
3429
|
return g.useEffect(() => (i ? (_(!0), s({ mode: m, ...e }).then((C) => {
|
3430
3430
|
r = new md({
|
3431
3431
|
container: `#${yo}`,
|
@@ -3539,7 +3539,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3539
3539
|
tooltipText: r,
|
3540
3540
|
variant: o = "text"
|
3541
3541
|
}) => {
|
3542
|
-
const s =
|
3542
|
+
const s = pe();
|
3543
3543
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
3544
3544
|
/* @__PURE__ */ t(
|
3545
3545
|
ee,
|
@@ -3580,14 +3580,14 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3580
3580
|
className: "mx-cat-cancel-search-button",
|
3581
3581
|
color: "primary",
|
3582
3582
|
onClick: () => i(""),
|
3583
|
-
children: /* @__PURE__ */ t(
|
3583
|
+
children: /* @__PURE__ */ t($, { name: "cancel", size: 24 })
|
3584
3584
|
}
|
3585
3585
|
);
|
3586
3586
|
return /* @__PURE__ */ t(M, { className: "mx-cmn-search-box", px: o.Spacing.Large, py: o.Spacing.Medium, children: /* @__PURE__ */ t(
|
3587
3587
|
An,
|
3588
3588
|
{
|
3589
3589
|
InputProps: {
|
3590
|
-
startAdornment: /* @__PURE__ */ t(Xi, { position: "start", children: /* @__PURE__ */ t(
|
3590
|
+
startAdornment: /* @__PURE__ */ t(Xi, { position: "start", children: /* @__PURE__ */ t($, { color: "disabled", name: "search", size: 26 }) }),
|
3591
3591
|
endAdornment: /* @__PURE__ */ t(Xi, { position: "end", sx: { p: 0 }, children: r ? s : null })
|
3592
3592
|
},
|
3593
3593
|
"aria-label": e,
|
@@ -3605,7 +3605,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3605
3605
|
tooltip: a = "",
|
3606
3606
|
value: r
|
3607
3607
|
}) => {
|
3608
|
-
const o =
|
3608
|
+
const o = pe(), s = o.palette.mode === "light" ? o.palette.grey[400] : o.palette.grey[700], c = e ? o.palette.action.active : s;
|
3609
3609
|
return /* @__PURE__ */ t(
|
3610
3610
|
M,
|
3611
3611
|
{
|
@@ -3686,7 +3686,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3686
3686
|
}
|
3687
3687
|
), Hn = ({ iconName: e, label: n, onClick: i, value: a }) => {
|
3688
3688
|
const r = /* @__PURE__ */ l(Z, { children: [
|
3689
|
-
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(
|
3689
|
+
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t($, { name: e, sx: { color: "text.primary" }, weight: bt.Dark }) }) }),
|
3690
3690
|
/* @__PURE__ */ t(
|
3691
3691
|
re,
|
3692
3692
|
{
|
@@ -3697,10 +3697,10 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3697
3697
|
}
|
3698
3698
|
)
|
3699
3699
|
] });
|
3700
|
-
return i ? /* @__PURE__ */ t(
|
3700
|
+
return i ? /* @__PURE__ */ t(X, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(de, { onClick: i, children: [
|
3701
3701
|
r,
|
3702
|
-
/* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(
|
3703
|
-
] }) }) : /* @__PURE__ */ t(
|
3702
|
+
/* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t($, { name: "chevron_right", size: 24 }) })
|
3703
|
+
] }) }) : /* @__PURE__ */ t(X, { disableGutters: !1, disablePadding: !1, children: r });
|
3704
3704
|
}, na = ({
|
3705
3705
|
body: e,
|
3706
3706
|
iconName: n = "info",
|
@@ -3723,7 +3723,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3723
3723
|
p: 0
|
3724
3724
|
},
|
3725
3725
|
children: /* @__PURE__ */ t(
|
3726
|
-
|
3726
|
+
$,
|
3727
3727
|
{
|
3728
3728
|
name: n,
|
3729
3729
|
sx: { color: "primary.light", fontSize: 16 },
|
@@ -3837,7 +3837,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3837
3837
|
}, C = () => {
|
3838
3838
|
h(!1), o();
|
3839
3839
|
};
|
3840
|
-
return /* @__PURE__ */ l(
|
3840
|
+
return /* @__PURE__ */ l(X, { children: [
|
3841
3841
|
/* @__PURE__ */ l(de, { onClick: () => h(!n), children: [
|
3842
3842
|
/* @__PURE__ */ t(
|
3843
3843
|
re,
|
@@ -3881,7 +3881,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3881
3881
|
sx: a = {}
|
3882
3882
|
}) => {
|
3883
3883
|
const { onEvent: r } = z();
|
3884
|
-
return i ? /* @__PURE__ */ t(
|
3884
|
+
return i ? /* @__PURE__ */ t(X, { sx: { bgcolor: "background.paper", ...a }, children: /* @__PURE__ */ t(
|
3885
3885
|
de,
|
3886
3886
|
{
|
3887
3887
|
onClick: () => {
|
@@ -3890,7 +3890,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3890
3890
|
children: e
|
3891
3891
|
}
|
3892
3892
|
) }) : /* @__PURE__ */ t(
|
3893
|
-
|
3893
|
+
X,
|
3894
3894
|
{
|
3895
3895
|
disableGutters: !1,
|
3896
3896
|
disablePadding: !1,
|
@@ -3908,7 +3908,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3908
3908
|
}) => {
|
3909
3909
|
const { isMobile: s } = ve();
|
3910
3910
|
return /* @__PURE__ */ t(
|
3911
|
-
|
3911
|
+
X,
|
3912
3912
|
{
|
3913
3913
|
secondaryAction: /* @__PURE__ */ t(da, { checked: e, onChange: a }),
|
3914
3914
|
sx: {
|
@@ -3947,7 +3947,7 @@ const yo = "connect_widget", Eo = "connections_widget", i_ = ({
|
|
3947
3947
|
}) => {
|
3948
3948
|
const { isMobile: o } = ve();
|
3949
3949
|
return /* @__PURE__ */ t(
|
3950
|
-
|
3950
|
+
X,
|
3951
3951
|
{
|
3952
3952
|
secondaryAction: /* @__PURE__ */ t(
|
3953
3953
|
da,
|
@@ -4334,7 +4334,7 @@ const di = () => {
|
|
4334
4334
|
/* @__PURE__ */ t(Ye, { amount: e, bold: !0, sx: { fontSize: 12 } })
|
4335
4335
|
] });
|
4336
4336
|
}, Ir = A(p_), C_ = ({ onAddIncomeClick: e }) => {
|
4337
|
-
const n =
|
4337
|
+
const n = pe(), { availableWidth: i } = Fn(), { isMobile: a } = ve(), { visibleCashAccounts: r, visibleCashBalance: o } = Re(), { selectedAccountGuids: s } = ce(), { cashflow: c } = I(), { userProfile: d } = dn(), {
|
4338
4338
|
daysUntilNextIncome: _,
|
4339
4339
|
expensesTilNextIncome: u,
|
4340
4340
|
selectedCashAccounts: h,
|
@@ -4375,12 +4375,12 @@ const di = () => {
|
|
4375
4375
|
h.length
|
4376
4376
|
) })
|
4377
4377
|
] }),
|
4378
|
-
/* @__PURE__ */ t(b, { pt: 18, children: /* @__PURE__ */ t(
|
4378
|
+
/* @__PURE__ */ t(b, { pt: 18, children: /* @__PURE__ */ t($, { name: "remove" }) }),
|
4379
4379
|
/* @__PURE__ */ l(b, { pb: 14, pt: 12, children: [
|
4380
4380
|
/* @__PURE__ */ t(Ye, { amount: w, variant: "H2" }),
|
4381
4381
|
/* @__PURE__ */ t(Oe, { variant: "XSmall", whiteSpace: "nowrap", children: S(c.expenses_due, u.length) })
|
4382
4382
|
] }),
|
4383
|
-
/* @__PURE__ */ t(b, { pt: 18, children: /* @__PURE__ */ t(
|
4383
|
+
/* @__PURE__ */ t(b, { pt: 18, children: /* @__PURE__ */ t($, { name: "equals" }) }),
|
4384
4384
|
/* @__PURE__ */ l(b, { pb: 14, pr: 24, pt: 12, children: [
|
4385
4385
|
/* @__PURE__ */ t(Ye, { amount: x, variant: "H2" }),
|
4386
4386
|
/* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 8, children: [
|
@@ -4395,7 +4395,7 @@ const di = () => {
|
|
4395
4395
|
ee,
|
4396
4396
|
{
|
4397
4397
|
onClick: e,
|
4398
|
-
startIcon: /* @__PURE__ */ t(
|
4398
|
+
startIcon: /* @__PURE__ */ t($, { name: "add" }),
|
4399
4399
|
sx: { fontSize: 13, lineHeight: "initial" },
|
4400
4400
|
children: c.add_income
|
4401
4401
|
}
|
@@ -4449,7 +4449,7 @@ const di = () => {
|
|
4449
4449
|
ee,
|
4450
4450
|
{
|
4451
4451
|
onClick: e,
|
4452
|
-
startIcon: /* @__PURE__ */ t(
|
4452
|
+
startIcon: /* @__PURE__ */ t($, { name: "add" }),
|
4453
4453
|
sx: { fontSize: 13 },
|
4454
4454
|
children: c.add_income
|
4455
4455
|
}
|
@@ -5258,9 +5258,9 @@ const It = () => {
|
|
5258
5258
|
disableTypography: !0,
|
5259
5259
|
secondary: /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", children: [
|
5260
5260
|
/* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 4, children: [
|
5261
|
-
e.is_flagged && /* @__PURE__ */ t(
|
5262
|
-
e.is_hidden && /* @__PURE__ */ t(
|
5263
|
-
e.has_been_split && /* @__PURE__ */ t(
|
5261
|
+
e.is_flagged && /* @__PURE__ */ t($, { fill: !0, name: "flag", size: 16, sx: { color: "warning.dark" } }),
|
5262
|
+
e.is_hidden && /* @__PURE__ */ t($, { name: "visibility_off", size: 16 }),
|
5263
|
+
e.has_been_split && /* @__PURE__ */ t($, { name: "call_split", size: 16 }),
|
5264
5264
|
/* @__PURE__ */ t(p, { variant: "XSmall", children: e.has_been_split ? a.split_transaction_category_label : e.category })
|
5265
5265
|
] }),
|
5266
5266
|
s && r && /* @__PURE__ */ t(p, { bold: !0, color: "action.active", variant: "XSmall", children: s.short_title })
|
@@ -5392,9 +5392,9 @@ const It = () => {
|
|
5392
5392
|
onMouseLeave: () => a(!1),
|
5393
5393
|
width: "100%",
|
5394
5394
|
children: [
|
5395
|
-
e.row.has_been_split && /* @__PURE__ */ t(
|
5395
|
+
e.row.has_been_split && /* @__PURE__ */ t($, { name: "call_split", size: 16 }),
|
5396
5396
|
/* @__PURE__ */ t(p, { tabIndex: e.tabIndex, variant: "Small", children: e.row.has_been_split ? n.split_transaction_category_label : e.row.category }),
|
5397
|
-
!e.row.has_been_split && i && /* @__PURE__ */ t(
|
5397
|
+
!e.row.has_been_split && i && /* @__PURE__ */ t($, { name: "edit", sx: { color: "action.active" } })
|
5398
5398
|
]
|
5399
5399
|
}
|
5400
5400
|
);
|
@@ -5406,8 +5406,8 @@ const It = () => {
|
|
5406
5406
|
"aria-label": r ? i.is_hidden : i.is_flagged,
|
5407
5407
|
tabIndex: e.tabIndex,
|
5408
5408
|
children: [
|
5409
|
-
a && /* @__PURE__ */ t(
|
5410
|
-
!a && r && /* @__PURE__ */ t(
|
5409
|
+
a && /* @__PURE__ */ t($, { fill: !0, name: "flag", size: 16, sx: { color: "warning.dark" } }),
|
5410
|
+
!a && r && /* @__PURE__ */ t($, { name: "visibility_off", size: 16 }),
|
5411
5411
|
d && /* @__PURE__ */ t(
|
5412
5412
|
"svg",
|
5413
5413
|
{
|
@@ -5597,7 +5597,7 @@ const J_ = ({
|
|
5597
5597
|
}, _ = () => {
|
5598
5598
|
i(!1), o(qt.ON_SUBCATEGORY_ADD_CANCEL_CLICK);
|
5599
5599
|
};
|
5600
|
-
return /* @__PURE__ */ l(
|
5600
|
+
return /* @__PURE__ */ l(X, { disableGutters: !0, disablePadding: !0, children: [
|
5601
5601
|
/* @__PURE__ */ t(de, { onClick: d, sx: { ml: 60 }, children: /* @__PURE__ */ t(
|
5602
5602
|
re,
|
5603
5603
|
{
|
@@ -5667,7 +5667,7 @@ const J_ = ({
|
|
5667
5667
|
unselectableText: d
|
5668
5668
|
} = pn(), { categories: _ } = I(), { onEvent: u } = z(), [h, m] = g.useState(!1), [C, f] = g.useState(!1), E = !!n.revision, y = n.guid === a, T = !c.some((w) => w === n.guid);
|
5669
5669
|
return /* @__PURE__ */ l(
|
5670
|
-
|
5670
|
+
X,
|
5671
5671
|
{
|
5672
5672
|
className: "mx-cat-subcategory-row",
|
5673
5673
|
disableGutters: !0,
|
@@ -5771,7 +5771,7 @@ const J_ = ({
|
|
5771
5771
|
r(d), o(d ? qt.ON_CATEGORY_EXPANDED : qt.ON_CATEGORY_COLLAPSED);
|
5772
5772
|
};
|
5773
5773
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
5774
|
-
/* @__PURE__ */ t(
|
5774
|
+
/* @__PURE__ */ t(X, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
5775
5775
|
de,
|
5776
5776
|
{
|
5777
5777
|
"aria-controls": `subcategories-${e.guid}`,
|
@@ -6096,7 +6096,7 @@ const hc = ({ transaction: e }) => {
|
|
6096
6096
|
[u]
|
6097
6097
|
);
|
6098
6098
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
6099
|
-
/* @__PURE__ */ t(
|
6099
|
+
/* @__PURE__ */ t(X, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
6100
6100
|
de,
|
6101
6101
|
{
|
6102
6102
|
onClick: () => {
|
@@ -6120,7 +6120,7 @@ const hc = ({ transaction: e }) => {
|
|
6120
6120
|
secondary: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e.category ?? c.actions_select_a_category })
|
6121
6121
|
}
|
6122
6122
|
),
|
6123
|
-
/* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(
|
6123
|
+
/* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t($, { name: "chevron_right", weight: bt.Dark }) })
|
6124
6124
|
]
|
6125
6125
|
}
|
6126
6126
|
) }),
|
@@ -6168,14 +6168,14 @@ const hc = ({ transaction: e }) => {
|
|
6168
6168
|
await a({ ...e, date: _ }), i(W.TRANSACTION_DETAILS_CLICK_DATE, { transaction_guid: e.guid }), d(!1);
|
6169
6169
|
};
|
6170
6170
|
return /* @__PURE__ */ l(M, { className: "mx-txn-date-action", children: [
|
6171
|
-
/* @__PURE__ */ t(
|
6171
|
+
/* @__PURE__ */ t(X, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
6172
6172
|
de,
|
6173
6173
|
{
|
6174
6174
|
onClick: () => {
|
6175
6175
|
i(q.ON_TRANSACTION_DATE_CLICK), d(!0);
|
6176
6176
|
},
|
6177
6177
|
children: [
|
6178
|
-
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(
|
6178
|
+
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t($, { name: "calendar_month", sx: { color: "text.primary" }, weight: bt.Dark }) }) }),
|
6179
6179
|
/* @__PURE__ */ t(
|
6180
6180
|
re,
|
6181
6181
|
{
|
@@ -6184,7 +6184,7 @@ const hc = ({ transaction: e }) => {
|
|
6184
6184
|
secondary: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: ae(Me(e.date), te.YEAR_MONTH_DAY) })
|
6185
6185
|
}
|
6186
6186
|
),
|
6187
|
-
/* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(
|
6187
|
+
/* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t($, { name: "chevron_right", weight: bt.Dark }) })
|
6188
6188
|
]
|
6189
6189
|
}
|
6190
6190
|
) }),
|
@@ -6219,7 +6219,7 @@ const hc = ({ transaction: e }) => {
|
|
6219
6219
|
await i(e.guid), n(q.ON_TRANSACTION_DELETE_DELETED);
|
6220
6220
|
};
|
6221
6221
|
return /* @__PURE__ */ l(M, { className: "mx-txn-delete", children: [
|
6222
|
-
e && /* @__PURE__ */ t(
|
6222
|
+
e && /* @__PURE__ */ t(X, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
6223
6223
|
de,
|
6224
6224
|
{
|
6225
6225
|
onClick: () => {
|
@@ -6261,16 +6261,16 @@ const hc = ({ transaction: e }) => {
|
|
6261
6261
|
});
|
6262
6262
|
};
|
6263
6263
|
return /* @__PURE__ */ l(M, { className: "mx-txn-delete-logo", children: [
|
6264
|
-
e && /* @__PURE__ */ t(
|
6264
|
+
e && /* @__PURE__ */ t(X, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
6265
6265
|
de,
|
6266
6266
|
{
|
6267
6267
|
onClick: () => {
|
6268
6268
|
n(q.ON_TRANSACTION_DELETE_LOGO_CLICK), c(!0);
|
6269
6269
|
},
|
6270
6270
|
children: [
|
6271
|
-
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(
|
6271
|
+
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t($, { name: "delete", sx: { color: "text.primary" }, weight: bt.Dark }) }) }),
|
6272
6272
|
/* @__PURE__ */ t(re, { primary: o.merchant_logo_title, secondary: o.merchant_logo_desc }),
|
6273
|
-
/* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(
|
6273
|
+
/* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t($, { name: "chevron_right", weight: bt.Dark }) })
|
6274
6274
|
]
|
6275
6275
|
}
|
6276
6276
|
) }),
|
@@ -6301,7 +6301,7 @@ const hc = ({ transaction: e }) => {
|
|
6301
6301
|
);
|
6302
6302
|
};
|
6303
6303
|
return /* @__PURE__ */ l(M, { className: "mx-txn-hide-transaction", children: [
|
6304
|
-
e && /* @__PURE__ */ t(
|
6304
|
+
e && /* @__PURE__ */ t(X, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
6305
6305
|
de,
|
6306
6306
|
{
|
6307
6307
|
"aria-checked": d,
|
@@ -6318,13 +6318,13 @@ const hc = ({ transaction: e }) => {
|
|
6318
6318
|
role: "switch",
|
6319
6319
|
children: [
|
6320
6320
|
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: d ? /* @__PURE__ */ t(
|
6321
|
-
|
6321
|
+
$,
|
6322
6322
|
{
|
6323
6323
|
name: "visibilityOff",
|
6324
6324
|
sx: { color: "text.primary" },
|
6325
6325
|
weight: bt.Dark
|
6326
6326
|
}
|
6327
|
-
) : /* @__PURE__ */ t(
|
6327
|
+
) : /* @__PURE__ */ t($, { name: "visibility", sx: { color: "text.primary" }, weight: bt.Dark }) }) }),
|
6328
6328
|
/* @__PURE__ */ t(
|
6329
6329
|
re,
|
6330
6330
|
{
|
@@ -6396,14 +6396,14 @@ const hc = ({ transaction: e }) => {
|
|
6396
6396
|
await i({ ...e, memo: d }), n(W.TRANSACTION_DETAILS_CLICK_MEMO, { transaction_guid: e.guid }), c(!1);
|
6397
6397
|
};
|
6398
6398
|
return /* @__PURE__ */ l("div", { className: "mx-txn-memo-action", children: [
|
6399
|
-
/* @__PURE__ */ t(
|
6399
|
+
/* @__PURE__ */ t(X, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
6400
6400
|
de,
|
6401
6401
|
{
|
6402
6402
|
onClick: () => {
|
6403
6403
|
n(q.ON_TRANSACTION_MEMO_CLICK), c(!0);
|
6404
6404
|
},
|
6405
6405
|
children: [
|
6406
|
-
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(
|
6406
|
+
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t($, { name: "article", sx: { color: "text.primary" }, weight: bt.Dark }) }) }),
|
6407
6407
|
/* @__PURE__ */ t(
|
6408
6408
|
re,
|
6409
6409
|
{
|
@@ -6420,7 +6420,7 @@ const hc = ({ transaction: e }) => {
|
|
6420
6420
|
)
|
6421
6421
|
}
|
6422
6422
|
),
|
6423
|
-
/* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(
|
6423
|
+
/* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t($, { name: "chevron_right", weight: bt.Dark }) })
|
6424
6424
|
]
|
6425
6425
|
}
|
6426
6426
|
) }),
|
@@ -6627,23 +6627,23 @@ const hc = ({ transaction: e }) => {
|
|
6627
6627
|
L.push({ ..._ }), L[0].amount -= 1, E(L);
|
6628
6628
|
}, T = (L) => {
|
6629
6629
|
if (L > 0) {
|
6630
|
-
const U = f[L],
|
6631
|
-
|
6630
|
+
const U = f[L], P = [...f];
|
6631
|
+
P.splice(L, 1), P[0].amount += U.amount, E(P);
|
6632
6632
|
}
|
6633
6633
|
}, v = (L, U) => {
|
6634
|
-
const
|
6635
|
-
|
6636
|
-
(
|
6634
|
+
const P = [...f];
|
6635
|
+
P[L].amount = U, P[0].amount = e.amount - P.reduce(
|
6636
|
+
(j, he, V) => j + (V !== 0 ? he.amount : 0),
|
6637
6637
|
0
|
6638
|
-
), E(
|
6638
|
+
), E(P);
|
6639
6639
|
}, w = (L, U) => {
|
6640
|
-
const
|
6641
|
-
|
6642
|
-
|
6640
|
+
const P = [...f], j = c.find((he) => he.guid === U);
|
6641
|
+
j && (P[L] = {
|
6642
|
+
...P[L],
|
6643
6643
|
category_guid: U,
|
6644
|
-
category:
|
6645
|
-
top_level_category_guid:
|
6646
|
-
}, E(
|
6644
|
+
category: j.name,
|
6645
|
+
top_level_category_guid: j.parent_guid || U
|
6646
|
+
}, E(P));
|
6647
6647
|
}, x = () => {
|
6648
6648
|
if (e.parent_guid || e.has_been_split) {
|
6649
6649
|
C(!0);
|
@@ -6663,12 +6663,12 @@ const hc = ({ transaction: e }) => {
|
|
6663
6663
|
const L = e.parent_guid ?? e.guid;
|
6664
6664
|
await a(L);
|
6665
6665
|
}, O = g.useMemo(() => {
|
6666
|
-
const L = f.some((
|
6666
|
+
const L = f.some((P) => !P.category_guid), U = f.some((P) => P.amount <= 0);
|
6667
6667
|
return L || U;
|
6668
6668
|
}, [f]);
|
6669
6669
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
6670
|
-
e && /* @__PURE__ */ t(
|
6671
|
-
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(
|
6670
|
+
e && /* @__PURE__ */ t(X, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(de, { onClick: x, children: [
|
6671
|
+
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t($, { name: "call_split", sx: { color: "text.primary" }, weight: bt.Dark }) }) }),
|
6672
6672
|
/* @__PURE__ */ t(
|
6673
6673
|
re,
|
6674
6674
|
{
|
@@ -6676,7 +6676,7 @@ const hc = ({ transaction: e }) => {
|
|
6676
6676
|
secondary: e.has_been_split || e.parent_guid ? o.split_transaction_unsplit_subtitle : o.split_transaction_desc
|
6677
6677
|
}
|
6678
6678
|
),
|
6679
|
-
/* @__PURE__ */ t(Ct, { children: e.has_been_split || e.parent_guid ? /* @__PURE__ */ t(
|
6679
|
+
/* @__PURE__ */ t(Ct, { children: e.has_been_split || e.parent_guid ? /* @__PURE__ */ t($, { name: "delete", weight: bt.Dark }) : /* @__PURE__ */ t($, { name: "chevron_right", weight: bt.Dark }) })
|
6680
6680
|
] }) }),
|
6681
6681
|
/* @__PURE__ */ l(
|
6682
6682
|
ne,
|
@@ -6727,7 +6727,7 @@ const hc = ({ transaction: e }) => {
|
|
6727
6727
|
)
|
6728
6728
|
] });
|
6729
6729
|
}, Oh = A(Rh), Lh = () => {
|
6730
|
-
const e =
|
6730
|
+
const e = pe(), { onEvent: n } = z(), { addTag: i } = Se(), { transactions: a } = I(), [r, o] = g.useState(!1), [s, c] = g.useState(""), [d, _] = g.useState(""), u = g.useRef(null);
|
6731
6731
|
g.useEffect(() => {
|
6732
6732
|
r && u?.current?.focus();
|
6733
6733
|
}, [r]);
|
@@ -6828,7 +6828,7 @@ const hc = ({ transaction: e }) => {
|
|
6828
6828
|
a(q.ON_TRANSACTION_TAGS_TAG_DELETE_CLICK), h(!0);
|
6829
6829
|
};
|
6830
6830
|
return /* @__PURE__ */ l(
|
6831
|
-
|
6831
|
+
X,
|
6832
6832
|
{
|
6833
6833
|
className: "mx-txn-transaction-manager-row",
|
6834
6834
|
disableGutters: !0,
|
@@ -6946,14 +6946,14 @@ const hc = ({ transaction: e }) => {
|
|
6946
6946
|
[i, e]
|
6947
6947
|
);
|
6948
6948
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
6949
|
-
/* @__PURE__ */ t(
|
6949
|
+
/* @__PURE__ */ t(X, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(
|
6950
6950
|
de,
|
6951
6951
|
{
|
6952
6952
|
onClick: () => {
|
6953
6953
|
n(q.ON_TRANSACTION_TAGS_CLICK), _(!0);
|
6954
6954
|
},
|
6955
6955
|
children: [
|
6956
|
-
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t(
|
6956
|
+
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Jt, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ t($, { name: "local_offer", sx: { color: "text.primary" }, weight: bt.Dark }) }) }),
|
6957
6957
|
/* @__PURE__ */ t(
|
6958
6958
|
re,
|
6959
6959
|
{
|
@@ -6962,7 +6962,7 @@ const hc = ({ transaction: e }) => {
|
|
6962
6962
|
secondary: /* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: e.tags?.length > 0 ? f : s.tags_desc })
|
6963
6963
|
}
|
6964
6964
|
),
|
6965
|
-
/* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(
|
6965
|
+
/* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t($, { name: "chevron_right", weight: bt.Dark }) })
|
6966
6966
|
]
|
6967
6967
|
}
|
6968
6968
|
) }),
|
@@ -7027,12 +7027,12 @@ const hc = ({ transaction: e }) => {
|
|
7027
7027
|
s(!0), r(q.ON_TRANSACTION_DESCRIPTION_EDIT_CLICK);
|
7028
7028
|
},
|
7029
7029
|
sx: { color: "action.active" },
|
7030
|
-
children: /* @__PURE__ */ t(
|
7030
|
+
children: /* @__PURE__ */ t($, { name: "create", size: 22 })
|
7031
7031
|
}
|
7032
7032
|
)
|
7033
7033
|
] }) });
|
7034
7034
|
}, Uh = A(Wh), Vh = ({ transaction: e }) => {
|
7035
|
-
const { updateTransaction: n } = Se(), { transactions: i } = I(), { onEvent: a } = z(), r =
|
7035
|
+
const { updateTransaction: n } = Se(), { transactions: i } = I(), { onEvent: a } = z(), r = pe(), o = async () => {
|
7036
7036
|
a(W.TRANSACTION_DETAILS_CLICK_FLAG, { transaction_guid: e.guid }), await n({ ...e, is_flagged: !e.is_flagged });
|
7037
7037
|
};
|
7038
7038
|
return /* @__PURE__ */ t("div", { className: "mx-txn-transaction-flag", children: /* @__PURE__ */ t(
|
@@ -7278,7 +7278,7 @@ const hc = ({ transaction: e }) => {
|
|
7278
7278
|
showInsights: i = !1,
|
7279
7279
|
sx: a = {}
|
7280
7280
|
}) => {
|
7281
|
-
const { visibleAccounts: r, refreshAccounts: o } = Re(), s =
|
7281
|
+
const { visibleAccounts: r, refreshAccounts: o } = Re(), s = pe(), { setSearchValue: c } = pn(), {
|
7282
7282
|
manualTransaction: d,
|
7283
7283
|
isAmountValid: _,
|
7284
7284
|
searchValue: u,
|
@@ -7296,28 +7296,28 @@ const hc = ({ transaction: e }) => {
|
|
7296
7296
|
} = Se(), { common: R, transactions: D } = I(), { userProfile: H } = dn(), { onEvent: O } = z(), {
|
7297
7297
|
displayedDateRange: L,
|
7298
7298
|
isCopyLoaded: U,
|
7299
|
-
isInitialized:
|
7300
|
-
selectedAccountGuids:
|
7301
|
-
selectedAccounts:
|
7299
|
+
isInitialized: P,
|
7300
|
+
selectedAccountGuids: j,
|
7301
|
+
selectedAccounts: he,
|
7302
7302
|
setDisplayedDate: V,
|
7303
7303
|
setSelectedAccounts: Ce
|
7304
|
-
} = ce(), [
|
7304
|
+
} = ce(), [me, _e] = g.useState(""), [Pe, ge] = g.useState(""), [ze, je] = g.useState(!1), [Te, _t] = g.useState(!1), [un, se] = g.useState(!1);
|
7305
7305
|
g.useEffect(() => {
|
7306
7306
|
Ce(r);
|
7307
7307
|
}, [r]), g.useEffect(() => {
|
7308
7308
|
const st = $e(le()), jr = Xe(le());
|
7309
7309
|
V(st, jr), T({
|
7310
7310
|
dateRange: { start: st, end: jr },
|
7311
|
-
accounts:
|
7311
|
+
accounts: he.map(($a) => $a.guid),
|
7312
7312
|
custom: ($a) => !$a.accountIsClosed
|
7313
7313
|
}), se(!0), O(W.TRANSACTIONS_VIEW);
|
7314
7314
|
}, []), g.useEffect(() => {
|
7315
7315
|
un && (T({
|
7316
7316
|
...E,
|
7317
7317
|
dateRange: { start: L.start, end: L.end },
|
7318
|
-
accounts:
|
7318
|
+
accounts: j
|
7319
7319
|
}), y(L.start).finally());
|
7320
|
-
}, [L,
|
7320
|
+
}, [L, j]), g.useEffect(() => {
|
7321
7321
|
m(i);
|
7322
7322
|
}, [i]);
|
7323
7323
|
const He = g.useMemo(
|
@@ -7350,7 +7350,7 @@ const hc = ({ transaction: e }) => {
|
|
7350
7350
|
}, fl = async () => {
|
7351
7351
|
Fe && !Fe.has_been_viewed && await x({ ...Fe, has_been_viewed: !0 }), _e("");
|
7352
7352
|
};
|
7353
|
-
return !U ||
|
7353
|
+
return !U || !P || !un ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ l(
|
7354
7354
|
Ot,
|
7355
7355
|
{
|
7356
7356
|
accountOptions: r,
|
@@ -7394,13 +7394,13 @@ const hc = ({ transaction: e }) => {
|
|
7394
7394
|
{
|
7395
7395
|
height: `calc(${n} - ${Lo}px)`,
|
7396
7396
|
onCategoryClick: (st) => {
|
7397
|
-
|
7397
|
+
ge(st), _e(
|
7398
7398
|
"category"
|
7399
7399
|
/* Category */
|
7400
7400
|
);
|
7401
7401
|
},
|
7402
7402
|
onRowClick: (st) => {
|
7403
|
-
|
7403
|
+
ge(st), _e(
|
7404
7404
|
"transaction"
|
7405
7405
|
/* Transaction */
|
7406
7406
|
), O(W.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: st });
|
@@ -7421,7 +7421,7 @@ const hc = ({ transaction: e }) => {
|
|
7421
7421
|
{
|
7422
7422
|
height: `calc(${n} - ${Lo}px)`,
|
7423
7423
|
onClick: (st) => {
|
7424
|
-
|
7424
|
+
ge(st), _e(
|
7425
7425
|
"transaction"
|
7426
7426
|
/* Transaction */
|
7427
7427
|
);
|
@@ -7436,17 +7436,17 @@ const hc = ({ transaction: e }) => {
|
|
7436
7436
|
ne,
|
7437
7437
|
{
|
7438
7438
|
ariaLabelClose: R.close_aria,
|
7439
|
-
isOpen:
|
7439
|
+
isOpen: me === "transaction",
|
7440
7440
|
onClose: fl,
|
7441
7441
|
title: D.details_title,
|
7442
7442
|
children: Fe && /* @__PURE__ */ t(qn, { transaction: Fe })
|
7443
7443
|
}
|
7444
7444
|
),
|
7445
|
-
Fe &&
|
7445
|
+
Fe && me === "category" && /* @__PURE__ */ t(
|
7446
7446
|
Qh,
|
7447
7447
|
{
|
7448
7448
|
onClose: () => {
|
7449
|
-
c(""), _e(""),
|
7449
|
+
c(""), _e(""), ge("");
|
7450
7450
|
},
|
7451
7451
|
transaction: Fe
|
7452
7452
|
}
|
@@ -7455,7 +7455,7 @@ const hc = ({ transaction: e }) => {
|
|
7455
7455
|
ne,
|
7456
7456
|
{
|
7457
7457
|
ariaLabelClose: R.close_aria,
|
7458
|
-
isOpen:
|
7458
|
+
isOpen: me === "addTransaction",
|
7459
7459
|
isPrimaryDisabled: !_n,
|
7460
7460
|
onClose: () => _e(""),
|
7461
7461
|
onPrimaryAction: Ha,
|
@@ -7567,7 +7567,7 @@ const hc = ({ transaction: e }) => {
|
|
7567
7567
|
e.activityType === Qe.Expense || f.id !== Q.EveryOtherMonth && f.id !== Q.EveryOtherQuarter
|
7568
7568
|
)
|
7569
7569
|
).map((f) => /* @__PURE__ */ l(g.Fragment, { children: [
|
7570
|
-
/* @__PURE__ */ t(
|
7570
|
+
/* @__PURE__ */ t(X, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(de, { onClick: () => h(f.id), children: [
|
7571
7571
|
/* @__PURE__ */ t(
|
7572
7572
|
re,
|
7573
7573
|
{
|
@@ -7575,7 +7575,7 @@ const hc = ({ transaction: e }) => {
|
|
7575
7575
|
primaryTypographyProps: { fontWeight: 400 }
|
7576
7576
|
}
|
7577
7577
|
),
|
7578
|
-
e.recurrenceType === f.id && /* @__PURE__ */ t(
|
7578
|
+
e.recurrenceType === f.id && /* @__PURE__ */ t($, { color: "primary", fill: !0, name: "check_circle", size: 24 })
|
7579
7579
|
] }) }, f.id),
|
7580
7580
|
/* @__PURE__ */ t(G, {})
|
7581
7581
|
] }, f.id)) })
|
@@ -7722,7 +7722,7 @@ const hc = ({ transaction: e }) => {
|
|
7722
7722
|
{
|
7723
7723
|
color: "error",
|
7724
7724
|
onClick: x,
|
7725
|
-
startIcon: /* @__PURE__ */ t(
|
7725
|
+
startIcon: /* @__PURE__ */ t($, { name: "delete" }),
|
7726
7726
|
sx: { mx: 24, my: 16 },
|
7727
7727
|
variant: "text",
|
7728
7728
|
children: T ? i.delete_income_title : i.delete_expense_title
|
@@ -7825,7 +7825,7 @@ const hc = ({ transaction: e }) => {
|
|
7825
7825
|
copy: r,
|
7826
7826
|
date: e.expectedDate,
|
7827
7827
|
type: e.recurrenceType
|
7828
|
-
} : { copy: r, date: null, type: e.recurrenceType })), /* @__PURE__ */ l(
|
7828
|
+
} : { copy: r, date: null, type: e.recurrenceType })), /* @__PURE__ */ l(X, { disableGutters: !0, disablePadding: !0, children: [
|
7829
7829
|
/* @__PURE__ */ l(de, { onClick: () => {
|
7830
7830
|
s(e.sequenceGuid || e.scheduledPaymentGuid || ""), i(e);
|
7831
7831
|
}, children: [
|
@@ -7888,8 +7888,8 @@ const hc = ({ transaction: e }) => {
|
|
7888
7888
|
textTransform: "uppercase",
|
7889
7889
|
width: "100%",
|
7890
7890
|
children: [
|
7891
|
-
d && /* @__PURE__ */ t(
|
7892
|
-
_ && /* @__PURE__ */ t(
|
7891
|
+
d && /* @__PURE__ */ t($, { color: "success", fill: !0, name: "check_circle", size: 12 }),
|
7892
|
+
_ && /* @__PURE__ */ t($, { color: "error", fill: !0, name: "cancel", size: 12 }),
|
7893
7893
|
/* @__PURE__ */ t(p, { bold: !0, color: "secondary.light", variant: "XSmall", children: h })
|
7894
7894
|
]
|
7895
7895
|
}
|
@@ -8063,7 +8063,7 @@ const hc = ({ transaction: e }) => {
|
|
8063
8063
|
{
|
8064
8064
|
InputLabelProps: { shrink: !0 },
|
8065
8065
|
SelectProps: {
|
8066
|
-
IconComponent: (u) => /* @__PURE__ */ t(
|
8066
|
+
IconComponent: (u) => /* @__PURE__ */ t($, { fill: !1, name: "expand_more", size: 20, sx: { mr: 4 }, ...u })
|
8067
8067
|
},
|
8068
8068
|
defaultValue: 0,
|
8069
8069
|
label: c.frequency,
|
@@ -8116,12 +8116,12 @@ const hc = ({ transaction: e }) => {
|
|
8116
8116
|
C(""), h(!1);
|
8117
8117
|
};
|
8118
8118
|
return /* @__PURE__ */ l(M, { children: [
|
8119
|
-
/* @__PURE__ */ t(
|
8119
|
+
/* @__PURE__ */ t(X, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(de, { onClick: w, children: /* @__PURE__ */ t(re, { children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
8120
8120
|
/* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 8, children: [
|
8121
|
-
/* @__PURE__ */ t(
|
8121
|
+
/* @__PURE__ */ t($, { fill: !0, name: "add_box", size: 24, sx: { color: "primary.light" } }),
|
8122
8122
|
/* @__PURE__ */ t(p, { bold: !0, sx: { color: "primary.light" }, variant: "Body", children: n })
|
8123
8123
|
] }),
|
8124
|
-
/* @__PURE__ */ t(
|
8124
|
+
/* @__PURE__ */ t($, { name: "chevron_right", size: 24, sx: { color: "primary.light" } })
|
8125
8125
|
] }) }) }) }),
|
8126
8126
|
/* @__PURE__ */ t(G, {}),
|
8127
8127
|
/* @__PURE__ */ t(
|
@@ -8622,7 +8622,7 @@ const hc = ({ transaction: e }) => {
|
|
8622
8622
|
),
|
8623
8623
|
/* @__PURE__ */ t(G, { sx: { mx: 24 } })
|
8624
8624
|
] }, `activity-${_}`)) : c.map((d, _) => /* @__PURE__ */ l(g.Fragment, { children: [
|
8625
|
-
/* @__PURE__ */ t(
|
8625
|
+
/* @__PURE__ */ t(X, { children: /* @__PURE__ */ t(
|
8626
8626
|
ie,
|
8627
8627
|
{
|
8628
8628
|
subheader: /* @__PURE__ */ t(Rt, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ t(p, { bold: !0, variant: "XSmall", children: ae(
|
@@ -8655,7 +8655,7 @@ const hc = ({ transaction: e }) => {
|
|
8655
8655
|
total: r,
|
8656
8656
|
onNewClick: o
|
8657
8657
|
}) => {
|
8658
|
-
const { recurring: s } = I(), c =
|
8658
|
+
const { recurring: s } = I(), c = pe(), d = g.useMemo(() => {
|
8659
8659
|
const _ = [{ color: c.palette.success.main, percentage: `${i / n}` }];
|
8660
8660
|
return a && _.push({ color: c.palette.error.main, percentage: `${a / n}` }), _;
|
8661
8661
|
}, [i, n, a]);
|
@@ -8676,7 +8676,7 @@ const hc = ({ transaction: e }) => {
|
|
8676
8676
|
/* @__PURE__ */ t(p, { variant: "XSmall", children: s.expected })
|
8677
8677
|
] })
|
8678
8678
|
] }),
|
8679
|
-
o && /* @__PURE__ */ t(ee, { onClick: o, startIcon: /* @__PURE__ */ t(
|
8679
|
+
o && /* @__PURE__ */ t(ee, { onClick: o, startIcon: /* @__PURE__ */ t($, { name: "add" }), variant: "text", children: s.add_new })
|
8680
8680
|
] }),
|
8681
8681
|
/* @__PURE__ */ t(oi, { data: d })
|
8682
8682
|
] });
|
@@ -8689,8 +8689,8 @@ const hc = ({ transaction: e }) => {
|
|
8689
8689
|
selectedDayActivities: c,
|
8690
8690
|
setSelectedDay: d,
|
8691
8691
|
upcomingActivities: _
|
8692
|
-
} = nt(), [u, h] = g.useState(0), { onEvent: m } = z(), C = a.filter(Va), f = o.filter(Va), E = r.filter(Va), y = C.filter(Fi).reduce(hi, 0), T = f.filter(Fi).reduce(hi, 0), v = E.filter(Fi).reduce(hi, 0), w = C.filter(Fi).length, x = C.filter(Ua).reduce(hi, 0), R = f.filter(Ua).reduce(hi, 0), D = C.filter(Ua).length, H = (U,
|
8693
|
-
h(
|
8692
|
+
} = nt(), [u, h] = g.useState(0), { onEvent: m } = z(), C = a.filter(Va), f = o.filter(Va), E = r.filter(Va), y = C.filter(Fi).reduce(hi, 0), T = f.filter(Fi).reduce(hi, 0), v = E.filter(Fi).reduce(hi, 0), w = C.filter(Fi).length, x = C.filter(Ua).reduce(hi, 0), R = f.filter(Ua).reduce(hi, 0), D = C.filter(Ua).length, H = (U, P) => {
|
8693
|
+
h(P);
|
8694
8694
|
}, O = (U) => {
|
8695
8695
|
m(W.RECURRING_ACTIVITY_CLICK_UPCOMING, {
|
8696
8696
|
transaction_guid: U.transactionGuid
|
@@ -9097,7 +9097,7 @@ const Gg = {
|
|
9097
9097
|
const a = Object.keys(oe).filter((r) => Number(r)).map((r) => ({
|
9098
9098
|
label: n.account_types[r],
|
9099
9099
|
value: Number(r),
|
9100
|
-
icon: /* @__PURE__ */ t(
|
9100
|
+
icon: /* @__PURE__ */ t($, { name: Ws[r] })
|
9101
9101
|
}));
|
9102
9102
|
i.push({
|
9103
9103
|
label: n.account_type,
|
@@ -9112,7 +9112,7 @@ const Gg = {
|
|
9112
9112
|
const a = Object.keys(Ps).filter((r) => Number(r)).map((r) => ({
|
9113
9113
|
label: n.property_types[r],
|
9114
9114
|
value: Number(r),
|
9115
|
-
icon: /* @__PURE__ */ t(
|
9115
|
+
icon: /* @__PURE__ */ t($, { name: ru[r] })
|
9116
9116
|
}));
|
9117
9117
|
i.push({
|
9118
9118
|
label: n.property_type,
|
@@ -9203,7 +9203,7 @@ const Gg = {
|
|
9203
9203
|
listItemProps: i,
|
9204
9204
|
shouldShowConnectionStatus: a = !1
|
9205
9205
|
}) => {
|
9206
|
-
const r =
|
9206
|
+
const r = pe(), { accounts: o } = I(), { firstSubtitle: s, firstValue: c, secondSubtitle: d, secondValue: _ } = wc(
|
9207
9207
|
e,
|
9208
9208
|
o
|
9209
9209
|
);
|
@@ -9255,7 +9255,7 @@ const Gg = {
|
|
9255
9255
|
)
|
9256
9256
|
] });
|
9257
9257
|
return /* @__PURE__ */ t(
|
9258
|
-
|
9258
|
+
X,
|
9259
9259
|
{
|
9260
9260
|
sx: { backgroundColor: "background.paper", color: e.is_closed ? "grey.700" : "" },
|
9261
9261
|
...i,
|
@@ -9263,7 +9263,7 @@ const Gg = {
|
|
9263
9263
|
}
|
9264
9264
|
);
|
9265
9265
|
}, xi = A(Ug), Vg = ({ remaining: e }) => /* @__PURE__ */ t(
|
9266
|
-
|
9266
|
+
X,
|
9267
9267
|
{
|
9268
9268
|
sx: {
|
9269
9269
|
alignItems: "center",
|
@@ -9280,7 +9280,7 @@ const Gg = {
|
|
9280
9280
|
);
|
9281
9281
|
var vi = /* @__PURE__ */ ((e) => (e.EXPENSE = "expense", e.INCOME = "income", e))(vi || {});
|
9282
9282
|
const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
9283
|
-
/* @__PURE__ */ l(
|
9283
|
+
/* @__PURE__ */ l(X, { sx: { display: "flex", alignItems: "center", gap: 16, px: 24, py: 12 }, children: [
|
9284
9284
|
/* @__PURE__ */ l(b, { alignItems: "center", height: 32, width: 32, children: [
|
9285
9285
|
/* @__PURE__ */ t(p, { bold: !0, sx: { fontSize: 11 }, children: ae(e.expectedDate, te.MONTH) }),
|
9286
9286
|
/* @__PURE__ */ t(p, { bold: !0, sx: { fontSize: 11 }, children: ae(e.expectedDate, te.DAY) })
|
@@ -9366,7 +9366,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9366
9366
|
}
|
9367
9367
|
),
|
9368
9368
|
/* @__PURE__ */ t(G, {}),
|
9369
|
-
c.length > 0 && /* @__PURE__ */ t(
|
9369
|
+
c.length > 0 && /* @__PURE__ */ t(X, { children: /* @__PURE__ */ t(
|
9370
9370
|
ie,
|
9371
9371
|
{
|
9372
9372
|
subheader: /* @__PURE__ */ t(Po, { total: _, type: vi.INCOME }),
|
@@ -9374,7 +9374,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9374
9374
|
children: c.map((h) => /* @__PURE__ */ t(Bo, { activity: h }, h.sequenceGuid))
|
9375
9375
|
}
|
9376
9376
|
) }),
|
9377
|
-
d.length > 0 && /* @__PURE__ */ t(
|
9377
|
+
d.length > 0 && /* @__PURE__ */ t(X, { children: /* @__PURE__ */ t(
|
9378
9378
|
ie,
|
9379
9379
|
{
|
9380
9380
|
subheader: /* @__PURE__ */ t(Po, { total: u, type: vi.EXPENSE }),
|
@@ -9395,7 +9395,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9395
9395
|
}) })
|
9396
9396
|
] });
|
9397
9397
|
}, jg = A(Yg), Xg = () => {
|
9398
|
-
const { availableWidth: e } = Fn(), n =
|
9398
|
+
const { availableWidth: e } = Fn(), n = pe(), { cashflow: i } = I(), { upcomingExpenses: a, upcomingIncome: r } = nt(), { dateRange: o, selectedCashAccounts: s } = di(), c = [
|
9399
9399
|
{
|
9400
9400
|
field: "account",
|
9401
9401
|
flex: 1.5,
|
@@ -9545,7 +9545,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9545
9545
|
borderRadius: 1,
|
9546
9546
|
marginBottom: 24
|
9547
9547
|
},
|
9548
|
-
children: /* @__PURE__ */ t(
|
9548
|
+
children: /* @__PURE__ */ t(X, { sx: { minHeight: "auto" }, children: /* @__PURE__ */ l(b, { width: "100%", children: [
|
9549
9549
|
/* @__PURE__ */ l(
|
9550
9550
|
b,
|
9551
9551
|
{
|
@@ -9722,7 +9722,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9722
9722
|
ee,
|
9723
9723
|
{
|
9724
9724
|
onClick: () => n(!0),
|
9725
|
-
startIcon: /* @__PURE__ */ t(
|
9725
|
+
startIcon: /* @__PURE__ */ t($, { name: "add" }),
|
9726
9726
|
sx: { fontSize: 13 },
|
9727
9727
|
children: a.add_income
|
9728
9728
|
}
|
@@ -9769,7 +9769,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9769
9769
|
ee,
|
9770
9770
|
{
|
9771
9771
|
onClick: () => n(!0),
|
9772
|
-
startIcon: /* @__PURE__ */ t(
|
9772
|
+
startIcon: /* @__PURE__ */ t($, { name: "add" }),
|
9773
9773
|
sx: { fontSize: 13 },
|
9774
9774
|
children: a.add_income
|
9775
9775
|
}
|
@@ -9805,7 +9805,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9805
9805
|
)
|
9806
9806
|
] });
|
9807
9807
|
}, em = A(Jg), tm = ({ handleNextStep: e }) => {
|
9808
|
-
const { completeOnboarding: n } = Tr(), { cashflow: i } = I(), a =
|
9808
|
+
const { completeOnboarding: n } = Tr(), { cashflow: i } = I(), a = pe();
|
9809
9809
|
return /* @__PURE__ */ l(b, { children: [
|
9810
9810
|
/* @__PURE__ */ t(cn, { pb: 12, children: i.welcome_title }),
|
9811
9811
|
/* @__PURE__ */ t(
|
@@ -9831,7 +9831,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9831
9831
|
mr: 24,
|
9832
9832
|
sx: { display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0 },
|
9833
9833
|
width: 44,
|
9834
|
-
children: /* @__PURE__ */ t(
|
9834
|
+
children: /* @__PURE__ */ t($, { color: "primary", name: "currency_exchange" })
|
9835
9835
|
}
|
9836
9836
|
),
|
9837
9837
|
i.bullet_one
|
@@ -9847,7 +9847,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9847
9847
|
mr: 24,
|
9848
9848
|
sx: { display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0 },
|
9849
9849
|
width: 44,
|
9850
|
-
children: /* @__PURE__ */ t(
|
9850
|
+
children: /* @__PURE__ */ t($, { color: "primary", name: "cardiology" })
|
9851
9851
|
}
|
9852
9852
|
),
|
9853
9853
|
i.bullet_two
|
@@ -9863,7 +9863,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9863
9863
|
mr: 24,
|
9864
9864
|
sx: { display: "flex", alignItems: "center", justifyContent: "center", flexShrink: 0 },
|
9865
9865
|
width: 44,
|
9866
|
-
children: /* @__PURE__ */ t(
|
9866
|
+
children: /* @__PURE__ */ t($, { color: "primary", name: "flare" })
|
9867
9867
|
}
|
9868
9868
|
),
|
9869
9869
|
i.bullet_three
|
@@ -9892,10 +9892,10 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9892
9892
|
transform: rotate(360deg);
|
9893
9893
|
}
|
9894
9894
|
`, om = () => {
|
9895
|
-
const { addCashflowEvent: e, addCashflowSequence: n, cashflowSequences: i } = nt(), { cashflow: a, common: r } = I(), { completeOnboarding: o } = Tr(), { isDirty: s } = di(), { isMobile: c } = ve(), { isCopyLoaded: d, setDisplayedDate: _ } = ce(), { filter: u, setFilter: h, transactions: m } = Se(), C =
|
9895
|
+
const { addCashflowEvent: e, addCashflowSequence: n, cashflowSequences: i } = nt(), { cashflow: a, common: r } = I(), { completeOnboarding: o } = Tr(), { isDirty: s } = di(), { isMobile: c } = ve(), { isCopyLoaded: d, setDisplayedDate: _ } = ce(), { filter: u, setFilter: h, transactions: m } = Se(), C = pe(), [f, E] = Et(!0), [y, T] = g.useState(Q.EveryMonth), [v, w] = Et(!1), [x, R] = g.useState(null), [D, H] = Et(1), [O, L] = Et([]), [U, P] = Et(""), j = g.useMemo(
|
9896
9896
|
() => m.find((_e) => _e.guid === U),
|
9897
9897
|
[U]
|
9898
|
-
),
|
9898
|
+
), he = !!i.length, V = async () => {
|
9899
9899
|
H(2), _(
|
9900
9900
|
// Beginning of the month, 90 days before today
|
9901
9901
|
$e(ut(le(), 90)),
|
@@ -9905,11 +9905,11 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9905
9905
|
if (!(O.length < 1)) {
|
9906
9906
|
w(!0);
|
9907
9907
|
for (let _e = 0; _e < O.length; _e++) {
|
9908
|
-
const Pe = O[_e],
|
9908
|
+
const Pe = O[_e], ge = yc(
|
9909
9909
|
Pe,
|
9910
9910
|
Pe.frequency,
|
9911
9911
|
Pe.nextDate
|
9912
|
-
), ze = await n(
|
9912
|
+
), ze = await n(ge);
|
9913
9913
|
if (ze) {
|
9914
9914
|
const je = Ec(ze, Pe);
|
9915
9915
|
await e(je);
|
@@ -9917,7 +9917,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9917
9917
|
}
|
9918
9918
|
await o();
|
9919
9919
|
}
|
9920
|
-
},
|
9920
|
+
}, me = !j && f || !j && O.length < 1;
|
9921
9921
|
return d ? /* @__PURE__ */ l(
|
9922
9922
|
M,
|
9923
9923
|
{
|
@@ -9959,7 +9959,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9959
9959
|
children: [
|
9960
9960
|
/* @__PURE__ */ t(cn, { pb: 12, children: a.add_income_title }),
|
9961
9961
|
/* @__PURE__ */ t(Oe, { mb: 24, children: a.add_income_description }),
|
9962
|
-
O.length > 0 && !
|
9962
|
+
O.length > 0 && !j && /* @__PURE__ */ l(Z, { children: [
|
9963
9963
|
/* @__PURE__ */ t(ie, { children: O.map((_e, Pe) => /* @__PURE__ */ l(g.Fragment, { children: [
|
9964
9964
|
/* @__PURE__ */ t(Ia, { bgcolor: "background.paper", children: Mi(
|
9965
9965
|
Le(_e.nextDate || _e.date)
|
@@ -9973,13 +9973,13 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9973
9973
|
ee,
|
9974
9974
|
{
|
9975
9975
|
onClick: () => E(!0),
|
9976
|
-
startIcon: /* @__PURE__ */ t(
|
9976
|
+
startIcon: /* @__PURE__ */ t($, { name: "add", size: 20 }),
|
9977
9977
|
children: a.add_additional_income_button
|
9978
9978
|
}
|
9979
9979
|
)
|
9980
9980
|
] })
|
9981
9981
|
] }),
|
9982
|
-
|
9982
|
+
me && /* @__PURE__ */ t(
|
9983
9983
|
Sc,
|
9984
9984
|
{
|
9985
9985
|
bgcolor: "background.paper",
|
@@ -9988,12 +9988,12 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
9988
9988
|
custom: (Pe) => _e ? Or(Pe, _e) : zn(Pe)
|
9989
9989
|
}),
|
9990
9990
|
onSelected: (_e) => {
|
9991
|
-
|
9991
|
+
P(_e), E(!1);
|
9992
9992
|
}
|
9993
9993
|
}
|
9994
9994
|
),
|
9995
|
-
!
|
9996
|
-
|
9995
|
+
!he && s && /* @__PURE__ */ t(Oe, { color: "error", mt: 16, children: a.confirm_error }),
|
9996
|
+
j && /* @__PURE__ */ l(Z, { children: [
|
9997
9997
|
/* @__PURE__ */ t(
|
9998
9998
|
Tc,
|
9999
9999
|
{
|
@@ -10003,17 +10003,17 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
10003
10003
|
nextDate: x,
|
10004
10004
|
onFrequencyChange: T,
|
10005
10005
|
onNextDateChange: R,
|
10006
|
-
transaction:
|
10006
|
+
transaction: j
|
10007
10007
|
}
|
10008
10008
|
),
|
10009
10009
|
/* @__PURE__ */ l(b, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
|
10010
10010
|
/* @__PURE__ */ t(
|
10011
10011
|
ee,
|
10012
10012
|
{
|
10013
|
-
"aria-disabled": !
|
10013
|
+
"aria-disabled": !j || !x,
|
10014
10014
|
onClick: () => {
|
10015
10015
|
const _e = [...O];
|
10016
|
-
_e.push({ ...
|
10016
|
+
_e.push({ ...j, nextDate: x, frequency: y }), L(_e), P("");
|
10017
10017
|
},
|
10018
10018
|
variant: "contained",
|
10019
10019
|
children: r.confirm_button
|
@@ -10023,7 +10023,7 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
10023
10023
|
ee,
|
10024
10024
|
{
|
10025
10025
|
onClick: () => {
|
10026
|
-
|
10026
|
+
P(""), E(!0), V();
|
10027
10027
|
},
|
10028
10028
|
variant: "outlined",
|
10029
10029
|
children: r.cancel_button
|
@@ -10031,14 +10031,14 @@ const Kg = ({ activity: e }) => /* @__PURE__ */ l(Z, { children: [
|
|
10031
10031
|
)
|
10032
10032
|
] })
|
10033
10033
|
] }),
|
10034
|
-
O.length > 0 && !
|
10034
|
+
O.length > 0 && !j && /* @__PURE__ */ l(b, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
|
10035
10035
|
/* @__PURE__ */ t(
|
10036
10036
|
ee,
|
10037
10037
|
{
|
10038
10038
|
"aria-disabled": O.length < 1 || v,
|
10039
10039
|
onClick: Ce,
|
10040
10040
|
startIcon: v ? /* @__PURE__ */ t(
|
10041
|
-
|
10041
|
+
$,
|
10042
10042
|
{
|
10043
10043
|
name: "progress_activity",
|
10044
10044
|
sx: {
|
@@ -11530,7 +11530,7 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
11530
11530
|
field: "chevron",
|
11531
11531
|
headerName: "",
|
11532
11532
|
renderHeader: void 0,
|
11533
|
-
renderCell: () => /* @__PURE__ */ t(
|
11533
|
+
renderCell: () => /* @__PURE__ */ t($, { name: "chevron_right'" }),
|
11534
11534
|
sortable: !0,
|
11535
11535
|
hideSortIcons: !0,
|
11536
11536
|
type: "custom",
|
@@ -11601,7 +11601,7 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
11601
11601
|
"aria-haspopup": !0,
|
11602
11602
|
"aria-label": "prioritize-debts",
|
11603
11603
|
onClick: i,
|
11604
|
-
startIcon: /* @__PURE__ */ t(
|
11604
|
+
startIcon: /* @__PURE__ */ t($, { name: o }),
|
11605
11605
|
sx: { justifyContent: "start", minWidth: 214, mx: 4 },
|
11606
11606
|
children: e
|
11607
11607
|
}
|
@@ -11613,7 +11613,7 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
11613
11613
|
"aria-haspopup": !0,
|
11614
11614
|
"aria-label": "prioritize-debts",
|
11615
11615
|
onClick: i,
|
11616
|
-
children: /* @__PURE__ */ t(
|
11616
|
+
children: /* @__PURE__ */ t($, { name: o })
|
11617
11617
|
}
|
11618
11618
|
);
|
11619
11619
|
}, ip = A(({ buttonEl: e, onClose: n }) => {
|
@@ -11649,7 +11649,7 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
11649
11649
|
horizontal: "left"
|
11650
11650
|
},
|
11651
11651
|
children: /* @__PURE__ */ t(ie, { children: c.map(({ priority: _, text: u }) => /* @__PURE__ */ l(
|
11652
|
-
|
11652
|
+
X,
|
11653
11653
|
{
|
11654
11654
|
onClick: () => d(_),
|
11655
11655
|
sx: {
|
@@ -11752,10 +11752,10 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
11752
11752
|
}, [x]), g.useEffect(() => {
|
11753
11753
|
E && D().finally();
|
11754
11754
|
}, [E]);
|
11755
|
-
const U = (Ce) => _(Ce),
|
11756
|
-
const Ce = x.find((_e) => _e.guid === d),
|
11757
|
-
Ce && T(Ce),
|
11758
|
-
},
|
11755
|
+
const U = (Ce) => _(Ce), P = () => {
|
11756
|
+
const Ce = x.find((_e) => _e.guid === d), me = L.find((_e) => _e.guid === d);
|
11757
|
+
Ce && T(Ce), me && w(me), a(!0);
|
11758
|
+
}, j = () => C(W.DEBTS_CLICK_FILTER), he = () => {
|
11759
11759
|
c(!0), C(W.DEBTS_CLICK_SNOWBALL_CTA);
|
11760
11760
|
}, V = () => {
|
11761
11761
|
o(!0), C(W.DEBTS_CLICK_PAYDOWN);
|
@@ -11768,7 +11768,7 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
11768
11768
|
/* @__PURE__ */ t(ap, {}, "prioritize-debts"),
|
11769
11769
|
/* @__PURE__ */ t(op, { onClick: V }, "extra-paydown")
|
11770
11770
|
],
|
11771
|
-
onAccountsFilterClick:
|
11771
|
+
onAccountsFilterClick: j,
|
11772
11772
|
onBackClick: e,
|
11773
11773
|
sx: n,
|
11774
11774
|
title: m.title,
|
@@ -11789,7 +11789,7 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
11789
11789
|
debts: L,
|
11790
11790
|
height: h ? 250 : void 0,
|
11791
11791
|
hoveredDebtGuid: d,
|
11792
|
-
onClickArea:
|
11792
|
+
onClickArea: P,
|
11793
11793
|
onHoverArea: U,
|
11794
11794
|
sx: { mr: h ? "4px" : "-48px" }
|
11795
11795
|
}
|
@@ -11798,7 +11798,7 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
11798
11798
|
hm,
|
11799
11799
|
{
|
11800
11800
|
debts: L,
|
11801
|
-
onClickCta:
|
11801
|
+
onClickCta: he,
|
11802
11802
|
sx: { mb: h ? "0px" : "64px" }
|
11803
11803
|
}
|
11804
11804
|
)
|
@@ -11810,7 +11810,7 @@ const Ut = (e) => /* @__PURE__ */ t(p, { fontWeight: 600, variant: "Small", chil
|
|
11810
11810
|
{
|
11811
11811
|
debts: L,
|
11812
11812
|
hoveredDebtGuid: d,
|
11813
|
-
onClickRow:
|
11813
|
+
onClickRow: P,
|
11814
11814
|
onHoverRow: U
|
11815
11815
|
}
|
11816
11816
|
) })
|
@@ -12114,7 +12114,7 @@ const gp = (e, n) => {
|
|
12114
12114
|
await a(c), r(n.alert_goals_reordered), s(!1);
|
12115
12115
|
};
|
12116
12116
|
return /* @__PURE__ */ l(b, { children: [
|
12117
|
-
/* @__PURE__ */ t(
|
12117
|
+
/* @__PURE__ */ t(X, { children: /* @__PURE__ */ t(de, { onClick: () => s(!0), children: /* @__PURE__ */ t(re, { children: /* @__PURE__ */ l(
|
12118
12118
|
b,
|
12119
12119
|
{
|
12120
12120
|
alignItems: "center",
|
@@ -12165,7 +12165,7 @@ const gp = (e, n) => {
|
|
12165
12165
|
] });
|
12166
12166
|
}, fp = ({ goal: e, index: n }) => {
|
12167
12167
|
const { goals: i } = I();
|
12168
|
-
return /* @__PURE__ */ t(
|
12168
|
+
return /* @__PURE__ */ t(X, { children: /* @__PURE__ */ l(de, { children: [
|
12169
12169
|
e.track_type !== K.RETIREMENT_TRACK && /* @__PURE__ */ t(
|
12170
12170
|
Ge,
|
12171
12171
|
{
|
@@ -12194,7 +12194,7 @@ const gp = (e, n) => {
|
|
12194
12194
|
] }) });
|
12195
12195
|
}, bp = ({ goal: e }) => {
|
12196
12196
|
const { goals: n } = I();
|
12197
|
-
return /* @__PURE__ */ t(
|
12197
|
+
return /* @__PURE__ */ t(X, { children: /* @__PURE__ */ l(de, { children: [
|
12198
12198
|
/* @__PURE__ */ t(Ge, { sx: { alignItems: "center", display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ t(la, { color: "success", filled: !0, size: 20 }) }),
|
12199
12199
|
/* @__PURE__ */ t(re, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
12200
12200
|
/* @__PURE__ */ l(b, { children: [
|
@@ -12325,7 +12325,7 @@ const gp = (e, n) => {
|
|
12325
12325
|
) }),
|
12326
12326
|
d.map((u) => /* @__PURE__ */ t(Gt, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ t(ks, { onClick: () => o(u), children: /* @__PURE__ */ t(Bt, { sx: { ":last-child": { pb: 16 } }, children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
12327
12327
|
/* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 6, children: [
|
12328
|
-
/* @__PURE__ */ t(
|
12328
|
+
/* @__PURE__ */ t($, { color: "success", fill: !0, name: "check_circle", size: 20 }),
|
12329
12329
|
/* @__PURE__ */ t(p, { color: "text.secondary", variant: "Body", children: u.name })
|
12330
12330
|
] }),
|
12331
12331
|
/* @__PURE__ */ t(p, { bold: !0, variant: "Body", children: B(u.amount, "0,0.00") })
|
@@ -12335,7 +12335,7 @@ const gp = (e, n) => {
|
|
12335
12335
|
}), Ep = ({ goalType: e, onClick: n }) => {
|
12336
12336
|
const { goals: i } = I(), { bgcolor: a, icon: r, label: o, description: s, subTypes: c, type: d } = e, [_, u] = g.useState(!1), h = c.length > 0;
|
12337
12337
|
return /* @__PURE__ */ t(b, { children: /* @__PURE__ */ l(ie, { sx: { bgcolor: "background.paper" }, children: [
|
12338
|
-
/* @__PURE__ */ t(
|
12338
|
+
/* @__PURE__ */ t(X, { children: /* @__PURE__ */ l(
|
12339
12339
|
de,
|
12340
12340
|
{
|
12341
12341
|
onClick: h ? () => u(!_) : () => n(
|
@@ -12352,7 +12352,7 @@ const gp = (e, n) => {
|
|
12352
12352
|
}
|
12353
12353
|
) }),
|
12354
12354
|
/* @__PURE__ */ t(G, { variant: "inset" }),
|
12355
|
-
h && /* @__PURE__ */ t(pa, { in: _, children: /* @__PURE__ */ t(ie, { sx: { bgcolor: "background.default" }, children: c.map((m, C) => /* @__PURE__ */ t(
|
12355
|
+
h && /* @__PURE__ */ t(pa, { in: _, children: /* @__PURE__ */ t(ie, { sx: { bgcolor: "background.default" }, children: c.map((m, C) => /* @__PURE__ */ t(X, { sx: { pl: 48 }, children: /* @__PURE__ */ l(de, { onClick: () => n(m.label, m.metaType, d), children: [
|
12356
12356
|
/* @__PURE__ */ t(Ct, { sx: { mr: 8 }, children: /* @__PURE__ */ t(yt, { name: m.icon }) }),
|
12357
12357
|
/* @__PURE__ */ t(
|
12358
12358
|
re,
|
@@ -12388,7 +12388,7 @@ const gp = (e, n) => {
|
|
12388
12388
|
/* @__PURE__ */ l(ie, { sx: { bgcolor: "background.white" }, children: [
|
12389
12389
|
/* @__PURE__ */ t(G, { variant: "fullWidth" }),
|
12390
12390
|
e.map((u, h) => /* @__PURE__ */ l(g.Fragment, { children: [
|
12391
|
-
/* @__PURE__ */ t(
|
12391
|
+
/* @__PURE__ */ t(X, { children: /* @__PURE__ */ l(de, { onClick: () => _(u), children: [
|
12392
12392
|
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(
|
12393
12393
|
pt,
|
12394
12394
|
{
|
@@ -12463,7 +12463,7 @@ const gp = (e, n) => {
|
|
12463
12463
|
] });
|
12464
12464
|
}, Hc = ({ account: e }) => {
|
12465
12465
|
const { accounts: n } = I(), { setSelectedAccount: i } = $t(), [a, r] = g.useState(!1);
|
12466
|
-
return /* @__PURE__ */ l(
|
12466
|
+
return /* @__PURE__ */ l(X, { sx: { bgcolor: "background.paper" }, children: [
|
12467
12467
|
/* @__PURE__ */ l(de, { onClick: () => {
|
12468
12468
|
i(e), r(!0);
|
12469
12469
|
}, children: [
|
@@ -12528,7 +12528,7 @@ const gp = (e, n) => {
|
|
12528
12528
|
d ? s(C) : (await c(C), o(r.alert_account_changed)), u(!1);
|
12529
12529
|
};
|
12530
12530
|
return /* @__PURE__ */ l(b, { children: [
|
12531
|
-
d ? /* @__PURE__ */ t(
|
12531
|
+
d ? /* @__PURE__ */ t(X, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ l(de, { onClick: () => u(!0), children: [
|
12532
12532
|
/* @__PURE__ */ t(re, { children: /* @__PURE__ */ l(b, { alignItems: "center", color: "action.active", direction: "row", gap: 8, children: [
|
12533
12533
|
/* @__PURE__ */ t(Ns, { filled: !0 }),
|
12534
12534
|
r.details_add_account
|
@@ -12548,7 +12548,7 @@ const gp = (e, n) => {
|
|
12548
12548
|
] }),
|
12549
12549
|
/* @__PURE__ */ t(ne, { isOpen: _, onClose: () => u(!1), title: r.details_change_account, children: /* @__PURE__ */ l(b, { children: [
|
12550
12550
|
/* @__PURE__ */ t(p, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: a.account_types[1] }),
|
12551
|
-
/* @__PURE__ */ t(ie, { sx: { bgcolor: "background.paper" }, children: n.map((m) => /* @__PURE__ */ t(
|
12551
|
+
/* @__PURE__ */ t(ie, { sx: { bgcolor: "background.paper" }, children: n.map((m) => /* @__PURE__ */ t(X, { children: /* @__PURE__ */ l(de, { onClick: () => h(m.guid), children: [
|
12552
12552
|
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(
|
12553
12553
|
pt,
|
12554
12554
|
{
|
@@ -12566,7 +12566,7 @@ const gp = (e, n) => {
|
|
12566
12566
|
/* @__PURE__ */ t(At, {})
|
12567
12567
|
] }) }, m.guid)) }),
|
12568
12568
|
/* @__PURE__ */ t(p, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: a.account_types[2] }),
|
12569
|
-
/* @__PURE__ */ t(ie, { sx: { bgcolor: "background.paper" }, children: i.map((m) => /* @__PURE__ */ t(
|
12569
|
+
/* @__PURE__ */ t(ie, { sx: { bgcolor: "background.paper" }, children: i.map((m) => /* @__PURE__ */ t(X, { children: /* @__PURE__ */ l(de, { onClick: () => h(m.guid), children: [
|
12570
12570
|
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(
|
12571
12571
|
pt,
|
12572
12572
|
{
|
@@ -12712,7 +12712,7 @@ const gp = (e, n) => {
|
|
12712
12712
|
/* @__PURE__ */ t(Hc, { account: f }),
|
12713
12713
|
/* @__PURE__ */ t(G, {})
|
12714
12714
|
] }, f.guid)),
|
12715
|
-
/* @__PURE__ */ t(
|
12715
|
+
/* @__PURE__ */ t(X, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ l(de, { onClick: () => _(!0), children: [
|
12716
12716
|
/* @__PURE__ */ t(re, { children: /* @__PURE__ */ l(b, { alignItems: "center", color: "action.active", direction: "row", gap: 8, children: [
|
12717
12717
|
/* @__PURE__ */ t(Ns, { filled: !0 }),
|
12718
12718
|
n.details_add_account
|
@@ -12849,11 +12849,11 @@ const gp = (e, n) => {
|
|
12849
12849
|
}, []), g.useEffect(() => {
|
12850
12850
|
s && C().finally();
|
12851
12851
|
}, [s, R, D, H]);
|
12852
|
-
const
|
12852
|
+
const P = () => {
|
12853
12853
|
i(W.GOALS_CLICK_FILTER);
|
12854
|
-
},
|
12854
|
+
}, j = () => {
|
12855
12855
|
x(!0), i(W.GOALS_CLICK_ADD);
|
12856
|
-
},
|
12856
|
+
}, he = (Ce) => {
|
12857
12857
|
x(!1), Ce === K.SAVINGS_TRACK ? v(0) : Ce === K.DEBT_TRACK ? v(1) : Ce === K.RETIREMENT_TRACK && v(2);
|
12858
12858
|
}, V = g.useMemo(
|
12859
12859
|
() => m && (h.length === 0 || h.every(({ track_type: Ce }) => !Ce) && y.length === 0),
|
@@ -12867,10 +12867,10 @@ const gp = (e, n) => {
|
|
12867
12867
|
{
|
12868
12868
|
iconName: "add",
|
12869
12869
|
label: d.add_title,
|
12870
|
-
onClick:
|
12870
|
+
onClick: j
|
12871
12871
|
}
|
12872
12872
|
],
|
12873
|
-
onAccountsFilterClick:
|
12873
|
+
onAccountsFilterClick: P,
|
12874
12874
|
onBackClick: e,
|
12875
12875
|
sx: n,
|
12876
12876
|
title: d.title,
|
@@ -12879,7 +12879,7 @@ const gp = (e, n) => {
|
|
12879
12879
|
/* @__PURE__ */ l(
|
12880
12880
|
Lt,
|
12881
12881
|
{
|
12882
|
-
onChange: (Ce,
|
12882
|
+
onChange: (Ce, me) => v(me),
|
12883
12883
|
sx: { bgcolor: "background.paper" },
|
12884
12884
|
value: V ? !1 : T,
|
12885
12885
|
variant: "fullWidth",
|
@@ -12916,7 +12916,7 @@ const gp = (e, n) => {
|
|
12916
12916
|
{
|
12917
12917
|
header: d.create_goals_header,
|
12918
12918
|
icon: "trophy",
|
12919
|
-
onClick:
|
12919
|
+
onClick: j,
|
12920
12920
|
primaryButton: d.add_goals_button,
|
12921
12921
|
subText: d.empty_state_subheader,
|
12922
12922
|
sx: {
|
@@ -12927,12 +12927,12 @@ const gp = (e, n) => {
|
|
12927
12927
|
}
|
12928
12928
|
}
|
12929
12929
|
) : /* @__PURE__ */ l(Z, { children: [
|
12930
|
-
T === 0 && /* @__PURE__ */ t(za, { onAddGoals:
|
12931
|
-
T === 1 && /* @__PURE__ */ t(za, { onAddGoals:
|
12932
|
-
T === 2 && /* @__PURE__ */ t(za, { onAddGoals:
|
12930
|
+
T === 0 && /* @__PURE__ */ t(za, { onAddGoals: j, trackType: K.SAVINGS_TRACK }),
|
12931
|
+
T === 1 && /* @__PURE__ */ t(za, { onAddGoals: j, trackType: K.DEBT_TRACK }),
|
12932
|
+
T === 2 && /* @__PURE__ */ t(za, { onAddGoals: j, trackType: K.RETIREMENT_TRACK })
|
12933
12933
|
] })
|
12934
12934
|
] }),
|
12935
|
-
/* @__PURE__ */ t(Dp, { onClose:
|
12935
|
+
/* @__PURE__ */ t(Dp, { onClose: he }),
|
12936
12936
|
/* @__PURE__ */ t(
|
12937
12937
|
ne,
|
12938
12938
|
{
|
@@ -12940,7 +12940,7 @@ const gp = (e, n) => {
|
|
12940
12940
|
isOpen: w,
|
12941
12941
|
onClose: () => x(!1),
|
12942
12942
|
title: d.add_goal_title,
|
12943
|
-
children: /* @__PURE__ */ t(Sp, { onClose:
|
12943
|
+
children: /* @__PURE__ */ t(Sp, { onClose: he })
|
12944
12944
|
}
|
12945
12945
|
),
|
12946
12946
|
/* @__PURE__ */ t(
|
@@ -13607,7 +13607,7 @@ const Vp = /^[ a-zA-ZÀ-ÿ0-9]+$/, Kp = 50, Zo = 65, zp = ({
|
|
13607
13607
|
sx: { transform: `translateY(${C.start}px)` },
|
13608
13608
|
width: "100%",
|
13609
13609
|
children: [
|
13610
|
-
/* @__PURE__ */ t(
|
13610
|
+
/* @__PURE__ */ t(X, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(de, { onClick: () => _(f.guid), children: [
|
13611
13611
|
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(ln, { categoryGuid: "", merchantGuid: f.guid }) }),
|
13612
13612
|
/* @__PURE__ */ t(re, { primary: f.name })
|
13613
13613
|
] }) }),
|
@@ -13842,7 +13842,7 @@ const n1 = ({
|
|
13842
13842
|
d(n(e));
|
13843
13843
|
}, [i, a]), /* @__PURE__ */ l(g.Fragment, { children: [
|
13844
13844
|
/* @__PURE__ */ t(
|
13845
|
-
|
13845
|
+
X,
|
13846
13846
|
{
|
13847
13847
|
sx: {
|
13848
13848
|
...c,
|
@@ -13926,7 +13926,7 @@ const n1 = ({
|
|
13926
13926
|
let o = r.palette.secondary.main, s = r.palette.secondary.main, c = "trending_flat";
|
13927
13927
|
return a.change < 0 ? c = "trending_down" : a.change > 0 && (o = r.palette.success.main, s = r.palette.success.main, c = "trending_up"), /* @__PURE__ */ l(ye, { alignItems: "center", direction: "row", spacing: 4, children: [
|
13928
13928
|
/* @__PURE__ */ t(
|
13929
|
-
|
13929
|
+
$,
|
13930
13930
|
{
|
13931
13931
|
name: c,
|
13932
13932
|
size: i,
|
@@ -13988,19 +13988,19 @@ const n1 = ({
|
|
13988
13988
|
}, Ra = A(u1), _1 = ({ accounts: e, name: n, icon: i }) => {
|
13989
13989
|
const [a, r] = g.useState(!1);
|
13990
13990
|
return /* @__PURE__ */ l(Z, { children: [
|
13991
|
-
/* @__PURE__ */ t(
|
13992
|
-
i && /* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(
|
13991
|
+
/* @__PURE__ */ t(X, { sx: (o) => ({ backgroundColor: o.palette.background.paper }), children: /* @__PURE__ */ l(de, { onClick: () => r(!a), children: [
|
13992
|
+
i && /* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t($, { name: i, size: 24, sx: { mr: 12 } }) }),
|
13993
13993
|
/* @__PURE__ */ t(
|
13994
13994
|
re,
|
13995
13995
|
{
|
13996
13996
|
primary: /* @__PURE__ */ t(p, { sx: { fontWeight: 700 }, variant: "Body", children: n })
|
13997
13997
|
}
|
13998
13998
|
),
|
13999
|
-
/* @__PURE__ */ t(Ct, { children: a ? /* @__PURE__ */ t(
|
13999
|
+
/* @__PURE__ */ t(Ct, { children: a ? /* @__PURE__ */ t($, { name: "expand_less", size: 24 }) : /* @__PURE__ */ t($, { name: "expand_more", size: 24 }) })
|
14000
14000
|
] }) }),
|
14001
14001
|
/* @__PURE__ */ t(G, {}),
|
14002
14002
|
/* @__PURE__ */ t(pa, { in: a, timeout: "auto", unmountOnExit: !0, children: e.map((o, s) => /* @__PURE__ */ l(ie, { children: [
|
14003
|
-
/* @__PURE__ */ t(
|
14003
|
+
/* @__PURE__ */ t(X, { sx: () => ({ py: 14 }), children: /* @__PURE__ */ t(
|
14004
14004
|
re,
|
14005
14005
|
{
|
14006
14006
|
primary: /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
|
@@ -14020,7 +14020,7 @@ const n1 = ({
|
|
14020
14020
|
totalAssets: a,
|
14021
14021
|
totalLiabilities: r
|
14022
14022
|
}) => {
|
14023
|
-
const { net_worth: o } = I(), s =
|
14023
|
+
const { net_worth: o } = I(), s = pe();
|
14024
14024
|
return /* @__PURE__ */ l(Z, { children: [
|
14025
14025
|
/* @__PURE__ */ l(
|
14026
14026
|
M,
|
@@ -14078,7 +14078,7 @@ const n1 = ({
|
|
14078
14078
|
totalGains: a,
|
14079
14079
|
totalLosses: r
|
14080
14080
|
}) => {
|
14081
|
-
const { net_worth: o } = I(), s =
|
14081
|
+
const { net_worth: o } = I(), s = pe();
|
14082
14082
|
return /* @__PURE__ */ l(Z, { children: [
|
14083
14083
|
/* @__PURE__ */ l(b, { alignItems: "center", justifyContent: "space-between", mb: 8, pt: 24, children: [
|
14084
14084
|
/* @__PURE__ */ t(p, { variant: "Small", children: Xs(e?.x) }),
|
@@ -14096,7 +14096,7 @@ const n1 = ({
|
|
14096
14096
|
}
|
14097
14097
|
) }),
|
14098
14098
|
n?.map((c) => /* @__PURE__ */ l(g.Fragment, { children: [
|
14099
|
-
/* @__PURE__ */ t(
|
14099
|
+
/* @__PURE__ */ t(X, { sx: { backgroundColor: s.palette.background.paper, py: 14 }, children: /* @__PURE__ */ t(
|
14100
14100
|
re,
|
14101
14101
|
{
|
14102
14102
|
primary: /* @__PURE__ */ l(b, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
|
@@ -14126,7 +14126,7 @@ const n1 = ({
|
|
14126
14126
|
) }),
|
14127
14127
|
i?.map((c) => /* @__PURE__ */ l(Z, { children: [
|
14128
14128
|
/* @__PURE__ */ t(
|
14129
|
-
|
14129
|
+
X,
|
14130
14130
|
{
|
14131
14131
|
sx: { backgroundColor: s.palette.background.paper, py: 14 },
|
14132
14132
|
children: /* @__PURE__ */ t(
|
@@ -14157,7 +14157,7 @@ const n1 = ({
|
|
14157
14157
|
selectedData: f,
|
14158
14158
|
setHoveredData: E,
|
14159
14159
|
setSelectedData: y
|
14160
|
-
} = Ku(), { isMobile: T } = ve(), { onEvent: v } = z(), [w, x] = g.useState(!1), [R, D] = g.useState(6), [H, O] = g.useState(!1), [L, U] = g.useState(!1), [
|
14160
|
+
} = Ku(), { isMobile: T } = ve(), { onEvent: v } = z(), [w, x] = g.useState(!1), [R, D] = g.useState(6), [H, O] = g.useState(!1), [L, U] = g.useState(!1), [P, j] = g.useState(!1), he = async () => {
|
14161
14161
|
await m(a), await h(R), x(!0);
|
14162
14162
|
};
|
14163
14163
|
g.useEffect(() => {
|
@@ -14165,7 +14165,7 @@ const n1 = ({
|
|
14165
14165
|
}, []), g.useEffect(() => {
|
14166
14166
|
r(c);
|
14167
14167
|
}, [c]), g.useEffect(() => {
|
14168
|
-
i &&
|
14168
|
+
i && he().finally();
|
14169
14169
|
}, [i, a]), g.useEffect(() => {
|
14170
14170
|
v(W.NET_WORTH_WIDGET_CLICK_TIMEFRAME, { time_period: R + "M" }), h(R).finally();
|
14171
14171
|
}, [R]);
|
@@ -14173,23 +14173,23 @@ const n1 = ({
|
|
14173
14173
|
y(Te), je.currentTarget instanceof HTMLDivElement && O(!0);
|
14174
14174
|
}, Ce = (je) => {
|
14175
14175
|
E(je);
|
14176
|
-
},
|
14176
|
+
}, me = () => {
|
14177
14177
|
E(null);
|
14178
14178
|
}, _e = () => {
|
14179
14179
|
v(W.NET_WORTH_WIDGET_CLICK_ASSETS_LIABILITIES), U(!0);
|
14180
14180
|
}, Pe = async (je) => {
|
14181
14181
|
const Te = je[0], _t = je[1];
|
14182
14182
|
Te && _t && D(Id(_t, Te));
|
14183
|
-
},
|
14183
|
+
}, ge = {
|
14184
14184
|
chartData: C,
|
14185
14185
|
hoveredData: u,
|
14186
14186
|
onButtonClick: _e,
|
14187
14187
|
onDataClick: V,
|
14188
14188
|
onMouseEnter: Ce,
|
14189
|
-
onMouseLeave:
|
14189
|
+
onMouseLeave: me,
|
14190
14190
|
selectedData: f
|
14191
14191
|
}, ze = () => {
|
14192
|
-
|
14192
|
+
j(!0), v(W.ACCOUNTS_CLICK_CONNECT);
|
14193
14193
|
};
|
14194
14194
|
return n ? /* @__PURE__ */ t(
|
14195
14195
|
Ot,
|
@@ -14226,8 +14226,8 @@ const n1 = ({
|
|
14226
14226
|
direction: T ? "column" : "row",
|
14227
14227
|
spacing: T ? 0 : 48,
|
14228
14228
|
children: [
|
14229
|
-
/* @__PURE__ */ t(i1, { ...
|
14230
|
-
/* @__PURE__ */ t(s1, { ...
|
14229
|
+
/* @__PURE__ */ t(i1, { ...ge }),
|
14230
|
+
/* @__PURE__ */ t(s1, { ...ge })
|
14231
14231
|
]
|
14232
14232
|
}
|
14233
14233
|
)
|
@@ -14250,8 +14250,8 @@ const n1 = ({
|
|
14250
14250
|
/* @__PURE__ */ t(
|
14251
14251
|
Ra,
|
14252
14252
|
{
|
14253
|
-
onClose: () =>
|
14254
|
-
showConnectionsWidget:
|
14253
|
+
onClose: () => j(!1),
|
14254
|
+
showConnectionsWidget: P,
|
14255
14255
|
title: o.manage_connections
|
14256
14256
|
}
|
14257
14257
|
),
|
@@ -17135,7 +17135,7 @@ const R1 = ({
|
|
17135
17135
|
expandIcon: /* @__PURE__ */ t(_a, { sx: { color: "text.primary" } }),
|
17136
17136
|
sx: { height: 64, p: "14px 24px" },
|
17137
17137
|
children: /* @__PURE__ */ l(b, { sx: { alignItems: "center", flexDirection: "row", gap: 12 }, children: [
|
17138
|
-
/* @__PURE__ */ t(
|
17138
|
+
/* @__PURE__ */ t($, { name: E, size: 24 }),
|
17139
17139
|
/* @__PURE__ */ t(p, { variant: "Body", children: T })
|
17140
17140
|
] })
|
17141
17141
|
}
|
@@ -17284,7 +17284,7 @@ const R1 = ({
|
|
17284
17284
|
children: [
|
17285
17285
|
/* @__PURE__ */ l(M, { children: [
|
17286
17286
|
/* @__PURE__ */ l(b, { gap: 4, sx: { alignItems: "center", flexDirection: "row" }, children: [
|
17287
|
-
n && /* @__PURE__ */ t(
|
17287
|
+
n && /* @__PURE__ */ t($, { name: "help", size: 20, sx: { color: "text.primary" } }),
|
17288
17288
|
/* @__PURE__ */ t(p, { color: "text.primary", variant: "H3", children: o })
|
17289
17289
|
] }),
|
17290
17290
|
i && /* @__PURE__ */ t(p, { color: "text.primary", variant: "H3", children: i })
|
@@ -17400,7 +17400,7 @@ const R1 = ({
|
|
17400
17400
|
expandIcon: /* @__PURE__ */ t(_a, { sx: { color: "text.primary" } }),
|
17401
17401
|
sx: { p: "14px 24px", height: 64 },
|
17402
17402
|
children: /* @__PURE__ */ l(b, { sx: { alignItems: "center", flexDirection: "row", gap: 12 }, children: [
|
17403
|
-
/* @__PURE__ */ t(
|
17403
|
+
/* @__PURE__ */ t($, { name: r, size: 24 }),
|
17404
17404
|
/* @__PURE__ */ t(p, { variant: "Body", children: s })
|
17405
17405
|
] })
|
17406
17406
|
}
|
@@ -17533,7 +17533,7 @@ const R1 = ({
|
|
17533
17533
|
subtitle: i,
|
17534
17534
|
guid: a,
|
17535
17535
|
sx: r
|
17536
|
-
}) => /* @__PURE__ */ t(
|
17536
|
+
}) => /* @__PURE__ */ t(X, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(de, { "aria-label": e, onClick: n, children: [
|
17537
17537
|
a && /* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(pt, { alt: e, institutionGuid: a || "", size: 32 }) }),
|
17538
17538
|
/* @__PURE__ */ t(
|
17539
17539
|
re,
|
@@ -17693,7 +17693,7 @@ const R1 = ({
|
|
17693
17693
|
}) => {
|
17694
17694
|
const { common: o } = I();
|
17695
17695
|
return /* @__PURE__ */ t(ne, { isOpen: i, onClose: r, title: e.request_support, children: /* @__PURE__ */ l(M, { sx: { px: 24 }, children: [
|
17696
|
-
/* @__PURE__ */ t(b, { sx: { alignItems: "center", pb: 24, pt: 80 }, children: /* @__PURE__ */ t(
|
17696
|
+
/* @__PURE__ */ t(b, { sx: { alignItems: "center", pb: 24, pt: 80 }, children: /* @__PURE__ */ t($, { color: "success", fill: !0, name: "check_circle", size: 64 }) }),
|
17697
17697
|
/* @__PURE__ */ l(b, { sx: { alignItems: "center", gap: 16, pb: 48 }, children: [
|
17698
17698
|
/* @__PURE__ */ t($n, { children: e.request_support_success }),
|
17699
17699
|
/* @__PURE__ */ t(Oe, { align: "center", variant: "Body", children: e.request_support_submit_success_message }),
|
@@ -17892,7 +17892,7 @@ const R1 = ({
|
|
17892
17892
|
)
|
17893
17893
|
] });
|
17894
17894
|
}, uC = A(dC), _C = A(() => {
|
17895
|
-
const { common: e, settings: n } = I(), { sendEmailVerification: i } = Ht(), { user: a } = dn(), r =
|
17895
|
+
const { common: e, settings: n } = I(), { sendEmailVerification: i } = Ht(), { user: a } = dn(), r = pe(), [o, s] = g.useState(!1), c = () => {
|
17896
17896
|
s(!1);
|
17897
17897
|
}, d = () => {
|
17898
17898
|
s(!0);
|
@@ -17966,7 +17966,7 @@ const R1 = ({
|
|
17966
17966
|
);
|
17967
17967
|
}
|
17968
17968
|
), gC = A(() => {
|
17969
|
-
const { common: e, settings: n } = I(), { sendPhoneVerification: i, verifyPhoneToken: a } = Ht(), { user: r } = dn(), o =
|
17969
|
+
const { common: e, settings: n } = I(), { sendPhoneVerification: i, verifyPhoneToken: a } = Ht(), { user: r } = dn(), o = pe(), [s, c] = g.useState(!1), [d, _] = g.useState(!1), u = () => {
|
17970
17970
|
c(!1);
|
17971
17971
|
}, h = () => {
|
17972
17972
|
c(!0);
|
@@ -18031,8 +18031,15 @@ const R1 = ({
|
|
18031
18031
|
)
|
18032
18032
|
] });
|
18033
18033
|
}), mC = () => {
|
18034
|
-
const e = tt(), { common: n, settings: i } = I(), { isDesktop: a, isMobile: r, isSmallMobile: o, isTablet: s } = ve(), { config: c } = Ea(), { updateUser: d } = Ht(), { user: _ } = dn(), [u, h] = g.useState(_.first_name), [m, C] = g.useState(_.last_name), [f, E] = g.useState(_.email), [y, T] = g.useState(_.phone), [v, w] = g.useState(_.postal_code), [x, R] = g.useState(_.credit_score), [D, H] = g.useState(
|
18035
|
-
|
18034
|
+
const e = tt(), { common: n, settings: i } = I(), { isDesktop: a, isMobile: r, isSmallMobile: o, isTablet: s } = ve(), { config: c } = Ea(), { updateUser: d } = Ht(), { user: _ } = dn(), [u, h] = g.useState(_.first_name), [m, C] = g.useState(_.last_name), [f, E] = g.useState(_.email), [y, T] = g.useState(_.phone), [v, w] = g.useState(_.postal_code), [x, R] = g.useState(_.credit_score), [D, H] = g.useState(null), O = f && !_.email_is_verified, L = y && !_.phone_is_verified;
|
18035
|
+
g.useEffect(() => {
|
18036
|
+
if (_.birthday) {
|
18037
|
+
const P = new Date(_.birthday * 1e3), j = P.getUTCFullYear(), he = P.getUTCMonth(), V = P.getUTCDate();
|
18038
|
+
H(new Date(j, he, V));
|
18039
|
+
}
|
18040
|
+
}, [_]);
|
18041
|
+
const U = async () => {
|
18042
|
+
const P = {
|
18036
18043
|
..._,
|
18037
18044
|
first_name: u,
|
18038
18045
|
last_name: m,
|
@@ -18042,7 +18049,7 @@ const R1 = ({
|
|
18042
18049
|
postal_code: v,
|
18043
18050
|
credit_score: x
|
18044
18051
|
};
|
18045
|
-
await d(
|
18052
|
+
await d(P);
|
18046
18053
|
};
|
18047
18054
|
return /* @__PURE__ */ l(
|
18048
18055
|
M,
|
@@ -18071,7 +18078,7 @@ const R1 = ({
|
|
18071
18078
|
{
|
18072
18079
|
defaultValue: u,
|
18073
18080
|
label: i.first_name,
|
18074
|
-
onChange: (
|
18081
|
+
onChange: (P) => h(P.target.value)
|
18075
18082
|
}
|
18076
18083
|
),
|
18077
18084
|
/* @__PURE__ */ t(
|
@@ -18079,7 +18086,7 @@ const R1 = ({
|
|
18079
18086
|
{
|
18080
18087
|
defaultValue: m,
|
18081
18088
|
label: i.last_name,
|
18082
|
-
onChange: (
|
18089
|
+
onChange: (P) => C(P.target.value)
|
18083
18090
|
}
|
18084
18091
|
)
|
18085
18092
|
]
|
@@ -18092,7 +18099,7 @@ const R1 = ({
|
|
18092
18099
|
{
|
18093
18100
|
defaultValue: f,
|
18094
18101
|
label: i.email_address,
|
18095
|
-
onChange: (
|
18102
|
+
onChange: (P) => E(P.target.value)
|
18096
18103
|
}
|
18097
18104
|
),
|
18098
18105
|
O && /* @__PURE__ */ t(_C, {})
|
@@ -18103,7 +18110,7 @@ const R1 = ({
|
|
18103
18110
|
{
|
18104
18111
|
defaultValue: y,
|
18105
18112
|
label: i.mobile_number,
|
18106
|
-
onChange: (
|
18113
|
+
onChange: (P) => T(P.target.value),
|
18107
18114
|
type: "tel"
|
18108
18115
|
}
|
18109
18116
|
),
|
@@ -18145,7 +18152,7 @@ const R1 = ({
|
|
18145
18152
|
{
|
18146
18153
|
defaultValue: v,
|
18147
18154
|
label: i.zip_code,
|
18148
|
-
onChange: (
|
18155
|
+
onChange: (P) => w(P.target.value)
|
18149
18156
|
}
|
18150
18157
|
)
|
18151
18158
|
] }),
|
@@ -18155,7 +18162,7 @@ const R1 = ({
|
|
18155
18162
|
{
|
18156
18163
|
defaultValue: x,
|
18157
18164
|
label: i.credit_score,
|
18158
|
-
onChange: (
|
18165
|
+
onChange: (P) => R(Number(P.target.value)),
|
18159
18166
|
sx: { mb: 44 }
|
18160
18167
|
}
|
18161
18168
|
),
|
@@ -18171,7 +18178,7 @@ const CC = ({
|
|
18171
18178
|
onClickDeviceEdit: n,
|
18172
18179
|
onClickDeviceDelete: i
|
18173
18180
|
}) => {
|
18174
|
-
const a =
|
18181
|
+
const a = pe(), { settings: r } = I(), o = [
|
18175
18182
|
{
|
18176
18183
|
field: "name",
|
18177
18184
|
headerName: r.mobile_devices_column_name,
|
@@ -18184,7 +18191,7 @@ const CC = ({
|
|
18184
18191
|
"aria-label": r.mobile_devices_edit_label,
|
18185
18192
|
color: "secondary",
|
18186
18193
|
onClick: () => n(c.row),
|
18187
|
-
children: /* @__PURE__ */ t(
|
18194
|
+
children: /* @__PURE__ */ t($, { name: "edit" })
|
18188
18195
|
}
|
18189
18196
|
)
|
18190
18197
|
] }),
|
@@ -18221,7 +18228,7 @@ const CC = ({
|
|
18221
18228
|
"aria-label": r.mobile_devices_delete_label,
|
18222
18229
|
color: "secondary",
|
18223
18230
|
onClick: () => i(c.row),
|
18224
|
-
children: /* @__PURE__ */ t(
|
18231
|
+
children: /* @__PURE__ */ t($, { name: "delete" })
|
18225
18232
|
}
|
18226
18233
|
) }),
|
18227
18234
|
sortable: !1,
|
@@ -18286,7 +18293,7 @@ const CC = ({
|
|
18286
18293
|
onClickDeviceEdit: n,
|
18287
18294
|
onClickDeviceDelete: i
|
18288
18295
|
}) => {
|
18289
|
-
const a =
|
18296
|
+
const a = pe(), { settings: r } = I(), [o, s] = g.useState(!1), c = (d) => (_, u) => {
|
18290
18297
|
s(u ? d : !1);
|
18291
18298
|
};
|
18292
18299
|
return /* @__PURE__ */ l(b, { mx: -28, sx: { "& .MuiAccordion-root": { mb: 0, mt: 0 } }, children: [
|
@@ -18300,7 +18307,7 @@ const CC = ({
|
|
18300
18307
|
/* @__PURE__ */ t(
|
18301
18308
|
Li,
|
18302
18309
|
{
|
18303
|
-
expandIcon: /* @__PURE__ */ t(
|
18310
|
+
expandIcon: /* @__PURE__ */ t($, { color: "secondary", name: "keyboard_arrow_down", size: 24 }),
|
18304
18311
|
sx: {
|
18305
18312
|
padding: "14px 24px",
|
18306
18313
|
borderBottom: "1px solid",
|
@@ -18333,7 +18340,7 @@ const CC = ({
|
|
18333
18340
|
borderColor: a.palette.border.light
|
18334
18341
|
},
|
18335
18342
|
children: [
|
18336
|
-
/* @__PURE__ */ t(Ue, { "aria-label": r.mobile_devices_edit_label, color: "secondary", children: /* @__PURE__ */ t(
|
18343
|
+
/* @__PURE__ */ t(Ue, { "aria-label": r.mobile_devices_edit_label, color: "secondary", children: /* @__PURE__ */ t($, { name: "edit" }) }),
|
18337
18344
|
/* @__PURE__ */ t(p, { variant: "Body", children: r.mobile_devices_edit_label })
|
18338
18345
|
]
|
18339
18346
|
}
|
@@ -18351,7 +18358,7 @@ const CC = ({
|
|
18351
18358
|
cursor: "pointer"
|
18352
18359
|
},
|
18353
18360
|
children: [
|
18354
|
-
/* @__PURE__ */ t(Ue, { "aria-label": r.mobile_devices_delete_label, color: "secondary", children: /* @__PURE__ */ t(
|
18361
|
+
/* @__PURE__ */ t(Ue, { "aria-label": r.mobile_devices_delete_label, color: "secondary", children: /* @__PURE__ */ t($, { name: "delete" }) }),
|
18355
18362
|
/* @__PURE__ */ t(p, { variant: "Body", children: r.mobile_devices_delete_label })
|
18356
18363
|
]
|
18357
18364
|
}
|
@@ -18387,7 +18394,7 @@ const CC = ({
|
|
18387
18394
|
device: a,
|
18388
18395
|
deviceToken: r = ""
|
18389
18396
|
}) => {
|
18390
|
-
const o =
|
18397
|
+
const o = pe(), { common: s, settings: c } = I(), { updateDevice: d, deleteDevice: _, setAlert: u, loadDevices: h } = Ht(), [m, C] = g.useState("");
|
18391
18398
|
g.useEffect(() => {
|
18392
18399
|
a && C(a.name);
|
18393
18400
|
}, [a, e]);
|
@@ -18557,8 +18564,8 @@ const CC = ({
|
|
18557
18564
|
);
|
18558
18565
|
}), Fr = A(
|
18559
18566
|
({ onClick: e, primaryText: n, secondaryText: i, sx: a }) => {
|
18560
|
-
const r =
|
18561
|
-
return /* @__PURE__ */ t(
|
18567
|
+
const r = pe();
|
18568
|
+
return /* @__PURE__ */ t(X, { sx: { bgcolor: r.palette.background.paper }, children: /* @__PURE__ */ l(de, { alignItems: "flex-start", onClick: e, sx: a, children: [
|
18562
18569
|
/* @__PURE__ */ t(re, { primary: n, secondary: i }),
|
18563
18570
|
/* @__PURE__ */ t(Ct, { children: /* @__PURE__ */ t(Il, {}) })
|
18564
18571
|
] }) });
|
@@ -18592,7 +18599,7 @@ const CC = ({
|
|
18592
18599
|
)
|
18593
18600
|
] });
|
18594
18601
|
}), TC = A(() => {
|
18595
|
-
const { common: e, settings: n } = I(), { selectedRule: i, updateRulePayee: a } = Ht(), r =
|
18602
|
+
const { common: e, settings: n } = I(), { selectedRule: i, updateRulePayee: a } = Ht(), r = pe(), [o, s] = g.useState(!1), c = i?.description ? i.description : i?.match_description, [d, _] = g.useState(c || ""), u = () => {
|
18596
18603
|
s(!0);
|
18597
18604
|
}, h = async () => {
|
18598
18605
|
d !== c && i && (i.description = d, await a(i), s(!1));
|
@@ -18632,7 +18639,7 @@ const CC = ({
|
|
18632
18639
|
)
|
18633
18640
|
] });
|
18634
18641
|
}), AC = A(({ onClose: e, onDelete: n, isOpen: i }) => {
|
18635
|
-
const { common: a, settings: r } = I(), o =
|
18642
|
+
const { common: a, settings: r } = I(), o = pe();
|
18636
18643
|
return /* @__PURE__ */ t(
|
18637
18644
|
ke,
|
18638
18645
|
{
|
@@ -18657,7 +18664,7 @@ const CC = ({
|
|
18657
18664
|
);
|
18658
18665
|
}), IC = A(
|
18659
18666
|
({ isOpen: e, onClose: n, onDelete: i }) => {
|
18660
|
-
const { common: a, settings: r } = I(), o =
|
18667
|
+
const { common: a, settings: r } = I(), o = pe(), [s, c] = g.useState(!1);
|
18661
18668
|
return /* @__PURE__ */ l(
|
18662
18669
|
ne,
|
18663
18670
|
{
|
@@ -18972,7 +18979,7 @@ const CC = ({
|
|
18972
18979
|
)
|
18973
18980
|
] });
|
18974
18981
|
}), Q2 = A(({ onBackClick: e, sx: n }) => {
|
18975
|
-
const { settings: i } = I(), { isCopyLoaded: a, isInitialized: r } = ce(), { config: o } = Ea(), { alert: s, setAlert: c } = Ht(), { isMobile: d } = ve(), _ =
|
18982
|
+
const { settings: i } = I(), { isCopyLoaded: a, isInitialized: r } = ce(), { config: o } = Ea(), { alert: s, setAlert: c } = Ht(), { isMobile: d } = ve(), _ = pe(), {
|
18976
18983
|
display_user_profile_in_settings: u,
|
18977
18984
|
display_mobile_devices_in_settings: h,
|
18978
18985
|
display_notification_settings_in_settings: m,
|
@@ -19698,7 +19705,7 @@ const Xa = ({
|
|
19698
19705
|
primaryText: a,
|
19699
19706
|
secondaryText: r
|
19700
19707
|
}) => /* @__PURE__ */ l(Z, { children: [
|
19701
|
-
/* @__PURE__ */ t(
|
19708
|
+
/* @__PURE__ */ t(X, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ l(de, { onClick: i, children: [
|
19702
19709
|
/* @__PURE__ */ t(re, { primary: a, secondary: r }),
|
19703
19710
|
e
|
19704
19711
|
] }) }),
|
@@ -19742,7 +19749,7 @@ const Xa = ({
|
|
19742
19749
|
},
|
19743
19750
|
primaryText: d.is_closed ? h.mark_as_open : h.mark_as_closed,
|
19744
19751
|
secondaryText: d.is_closed ? h.this_will_set_the_closed_account : h.this_will_set_the_account_balance_to_0,
|
19745
|
-
children: /* @__PURE__ */ t(
|
19752
|
+
children: /* @__PURE__ */ t($, { name: "chevron_right" })
|
19746
19753
|
}
|
19747
19754
|
),
|
19748
19755
|
m.length > 0 && /* @__PURE__ */ t(
|
@@ -19756,7 +19763,7 @@ const Xa = ({
|
|
19756
19763
|
},
|
19757
19764
|
primaryText: h.mark_as_duplicate,
|
19758
19765
|
secondaryText: h.if_a_connected_account_is_showing_up_twice,
|
19759
|
-
children: /* @__PURE__ */ t(
|
19766
|
+
children: /* @__PURE__ */ t($, { name: "chevron_right" })
|
19760
19767
|
}
|
19761
19768
|
),
|
19762
19769
|
/* @__PURE__ */ t(
|
@@ -19983,7 +19990,7 @@ const Xa = ({
|
|
19983
19990
|
}, qC = () => {
|
19984
19991
|
const [e, n] = g.useState(!1), {
|
19985
19992
|
palette: { mode: i }
|
19986
|
-
} =
|
19993
|
+
} = pe(), { selectedMember: a } = $t(), { accounts: r, connect: o } = I(), s = qc(a, o), c = Fs.includes(a.connection_status) ? {
|
19987
19994
|
color: "error.main",
|
19988
19995
|
ctaCopy: s.cta ?? "",
|
19989
19996
|
icon: /* @__PURE__ */ t(Ca, { sx: { ...qa } }),
|
@@ -19997,7 +20004,7 @@ const Xa = ({
|
|
19997
20004
|
};
|
19998
20005
|
return /* @__PURE__ */ l(Z, { children: [
|
19999
20006
|
/* @__PURE__ */ t(Rt, { sx: { mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ t(p, { bold: !0, component: "h2", variant: "XSmall", children: r.connection_status }) }),
|
20000
|
-
/* @__PURE__ */ t(
|
20007
|
+
/* @__PURE__ */ t(X, { sx: { backgroundColor: "background.paper" }, children: a.is_manual || !c.ctaCopy ? /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", px: 24, py: 12, children: [
|
20001
20008
|
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(Xt, { backingSx: { backgroundColor: c.color, borderRadius: 1 }, size: 32, children: c.icon }) }),
|
20002
20009
|
/* @__PURE__ */ t(re, { primary: c.mainMessage, secondary: c.secondaryMessage })
|
20003
20010
|
] }) : /* @__PURE__ */ l(de, { onClick: () => n(!0), children: [
|
@@ -20013,11 +20020,11 @@ const Xa = ({
|
|
20013
20020
|
] })
|
20014
20021
|
}
|
20015
20022
|
),
|
20016
|
-
/* @__PURE__ */ t(
|
20023
|
+
/* @__PURE__ */ t($, { name: "chevron_right" })
|
20017
20024
|
] }) }),
|
20018
20025
|
/* @__PURE__ */ t(G, { sx: { ml: a.is_manual || !a.institution_url ? 0 : 24 } }),
|
20019
20026
|
!a.is_manual && a.institution_url && /* @__PURE__ */ l(Z, { children: [
|
20020
|
-
/* @__PURE__ */ t(
|
20027
|
+
/* @__PURE__ */ t(X, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ l(de, { component: "a", href: a.institution_url, target: "_blank", children: [
|
20021
20028
|
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(
|
20022
20029
|
Xt,
|
20023
20030
|
{
|
@@ -20038,7 +20045,7 @@ const Xa = ({
|
|
20038
20045
|
}
|
20039
20046
|
) }),
|
20040
20047
|
/* @__PURE__ */ t(re, { primary: a.name, secondary: a.institution_url }),
|
20041
|
-
/* @__PURE__ */ t(
|
20048
|
+
/* @__PURE__ */ t($, { name: "launch" })
|
20042
20049
|
] }) }),
|
20043
20050
|
/* @__PURE__ */ t(G, {})
|
20044
20051
|
] }),
|
@@ -20164,7 +20171,7 @@ const Xa = ({
|
|
20164
20171
|
}
|
20165
20172
|
);
|
20166
20173
|
return /* @__PURE__ */ t(g.Fragment, { children: o ? /* @__PURE__ */ l(Z, { children: [
|
20167
|
-
/* @__PURE__ */ t(
|
20174
|
+
/* @__PURE__ */ t(X, { sx: { backgroundColor: "background.paper", px: 0 }, children: /* @__PURE__ */ l(
|
20168
20175
|
de,
|
20169
20176
|
{
|
20170
20177
|
onClick: () => {
|
@@ -20172,13 +20179,13 @@ const Xa = ({
|
|
20172
20179
|
},
|
20173
20180
|
children: [
|
20174
20181
|
f,
|
20175
|
-
/* @__PURE__ */ t(
|
20182
|
+
/* @__PURE__ */ t($, { name: "chevron_right" })
|
20176
20183
|
]
|
20177
20184
|
}
|
20178
20185
|
) }),
|
20179
20186
|
/* @__PURE__ */ t(G, { sx: { ml: C ? 0 : 24 } })
|
20180
20187
|
] }) : m && /* @__PURE__ */ l(Z, { children: [
|
20181
|
-
/* @__PURE__ */ t(
|
20188
|
+
/* @__PURE__ */ t(X, { sx: { backgroundColor: "background.paper", px: 24 }, children: f }),
|
20182
20189
|
/* @__PURE__ */ t(G, { sx: { ml: C ? 0 : 24 } })
|
20183
20190
|
] }) }, h.name);
|
20184
20191
|
}),
|
@@ -20515,7 +20522,7 @@ const Xa = ({
|
|
20515
20522
|
sx: n,
|
20516
20523
|
title: a.mini_title,
|
20517
20524
|
children: o ? /* @__PURE__ */ l(ie, { children: [
|
20518
|
-
s.length === 0 && /* @__PURE__ */ t(
|
20525
|
+
s.length === 0 && /* @__PURE__ */ t(X, { sx: { justifyContent: "center" }, children: a.no_accounts }),
|
20519
20526
|
s.map((d, _) => {
|
20520
20527
|
const u = s.indexOf(d) === s.length - 1;
|
20521
20528
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
@@ -21226,7 +21233,7 @@ class bf {
|
|
21226
21233
|
};
|
21227
21234
|
}
|
21228
21235
|
const yf = () => {
|
21229
|
-
const { question: e, response: n, setResponse: i } = Sr(), { analytics: a } = I(), r =
|
21236
|
+
const { question: e, response: n, setResponse: i } = Sr(), { analytics: a } = I(), r = pe(), o = e, s = (c, d) => {
|
21230
21237
|
i(d);
|
21231
21238
|
};
|
21232
21239
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
@@ -21296,7 +21303,7 @@ const yf = () => {
|
|
21296
21303
|
}
|
21297
21304
|
);
|
21298
21305
|
}, Tf = A(Sf), Af = () => {
|
21299
|
-
const { onEvent: e } = z(), n =
|
21306
|
+
const { onEvent: e } = z(), n = pe(), {
|
21300
21307
|
surveyId: i,
|
21301
21308
|
question: a,
|
21302
21309
|
isLastQuestion: r,
|
@@ -21422,7 +21429,7 @@ const yf = () => {
|
|
21422
21429
|
});
|
21423
21430
|
}, ds = 5, Lf = 2e3;
|
21424
21431
|
function Mf({ bubble: e }) {
|
21425
|
-
const n =
|
21432
|
+
const n = pe(), {
|
21426
21433
|
guid: i,
|
21427
21434
|
budgetColors: { mercury: a },
|
21428
21435
|
radius: r
|
@@ -21492,7 +21499,7 @@ function kf({ bubble: e, isDraggable: n, onClick: i = () => {
|
|
21492
21499
|
}
|
21493
21500
|
),
|
21494
21501
|
/* @__PURE__ */ t(
|
21495
|
-
|
21502
|
+
$,
|
21496
21503
|
{
|
21497
21504
|
className: `icon-${c}`,
|
21498
21505
|
component: "text",
|
@@ -21677,7 +21684,7 @@ const Gf = ({
|
|
21677
21684
|
] });
|
21678
21685
|
}
|
21679
21686
|
), Hf = (e) => {
|
21680
|
-
const n =
|
21687
|
+
const n = pe(), { accounts: i } = Re(), { budgets: a, isDataLoaded: r, loadBudgetData: o, setTheme: s } = lt(), { budgets: c } = I(), { isCopyLoaded: d, isInitialized: _ } = ce(), { reloadCategoryTotals: u } = Ke(), h = __(), m = a.length === 0;
|
21681
21688
|
return g.useEffect(() => {
|
21682
21689
|
s(n);
|
21683
21690
|
}, [n]), g.useEffect(() => {
|
@@ -21731,7 +21738,7 @@ const Gf = ({
|
|
21731
21738
|
return `${o} - ${s}`;
|
21732
21739
|
}, [n, i]);
|
21733
21740
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
21734
|
-
/* @__PURE__ */ t(
|
21741
|
+
/* @__PURE__ */ t(X, { children: /* @__PURE__ */ l(de, { children: [
|
21735
21742
|
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(kt, { categoryGuid: e.guid, variant: "filled" }) }),
|
21736
21743
|
/* @__PURE__ */ t(re, { primary: e.name, secondary: a })
|
21737
21744
|
] }) }),
|
@@ -21794,7 +21801,7 @@ const Gf = ({
|
|
21794
21801
|
`${e.totalAmount === 0 ? "" : e.totalAmount}`
|
21795
21802
|
);
|
21796
21803
|
return /* @__PURE__ */ l(g.Fragment, { children: [
|
21797
|
-
/* @__PURE__ */ t(
|
21804
|
+
/* @__PURE__ */ t(X, { children: /* @__PURE__ */ l(de, { onClick: () => o(!0), children: [
|
21798
21805
|
/* @__PURE__ */ t(Ge, { children: /* @__PURE__ */ t(kt, { categoryGuid: e.guid }) }),
|
21799
21806
|
/* @__PURE__ */ t(
|
21800
21807
|
re,
|
@@ -21803,7 +21810,7 @@ const Gf = ({
|
|
21803
21810
|
secondary: B(e.totalAmount, "0,0")
|
21804
21811
|
}
|
21805
21812
|
),
|
21806
|
-
/* @__PURE__ */ t(qd, { children: /* @__PURE__ */ t(
|
21813
|
+
/* @__PURE__ */ t(qd, { children: /* @__PURE__ */ t($, { name: "add", size: 20 }) })
|
21807
21814
|
] }) }, e.guid),
|
21808
21815
|
/* @__PURE__ */ t(
|
21809
21816
|
ke,
|
@@ -21857,7 +21864,7 @@ const Gf = ({
|
|
21857
21864
|
}, Kf = A(() => {
|
21858
21865
|
const { budgets: e } = I();
|
21859
21866
|
return /* @__PURE__ */ l(b, { alignItems: "center", gap: 12, height: "auto", mb: 24, mt: 24, children: [
|
21860
|
-
/* @__PURE__ */ t(
|
21867
|
+
/* @__PURE__ */ t($, { color: "secondary", name: "bubble_chart", sx: { fontSize: 32 } }),
|
21861
21868
|
/* @__PURE__ */ t(p, { bold: !0, color: "secondary", variant: "Small", children: e.zero_state_no_sub_budgets }),
|
21862
21869
|
/* @__PURE__ */ t(p, { color: "text.secondary", variant: "XSmall", children: e.zero_state_no_sub_budgets_description })
|
21863
21870
|
] });
|
@@ -21869,7 +21876,7 @@ const Gf = ({
|
|
21869
21876
|
percentage: r,
|
21870
21877
|
transaction_total: o
|
21871
21878
|
} = e, { setSelectedSubBudget: s } = lt();
|
21872
|
-
return /* @__PURE__ */ t(
|
21879
|
+
return /* @__PURE__ */ t(X, { children: /* @__PURE__ */ l(de, { onClick: () => s(e), children: [
|
21873
21880
|
/* @__PURE__ */ t(Ge, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ t(rc, { color: i, percent: r, size: 40, children: /* @__PURE__ */ t(kt, { categoryGuid: a.parent_guid, variant: "basic" }) }) }),
|
21874
21881
|
/* @__PURE__ */ t(
|
21875
21882
|
re,
|
@@ -21896,12 +21903,12 @@ const Gf = ({
|
|
21896
21903
|
C && Number(h) > 0 && (await s(C, Number(h), n.guid), u(!1), d(!1), f(void 0));
|
21897
21904
|
};
|
21898
21905
|
return /* @__PURE__ */ l(M, { children: [
|
21899
|
-
/* @__PURE__ */ t(
|
21906
|
+
/* @__PURE__ */ t(X, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ t(de, { onClick: E, children: /* @__PURE__ */ t(re, { children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
21900
21907
|
/* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 8, children: [
|
21901
|
-
/* @__PURE__ */ t(
|
21908
|
+
/* @__PURE__ */ t($, { fill: !0, name: "add_box", size: 24, sx: { color: "primary.light" } }),
|
21902
21909
|
/* @__PURE__ */ t(p, { bold: !0, sx: { color: "primary.light" }, variant: "Body", children: i.add_sub_budget_button })
|
21903
21910
|
] }),
|
21904
|
-
/* @__PURE__ */ t(
|
21911
|
+
/* @__PURE__ */ t($, { name: "chevron_right", size: 24, sx: { color: "primary.light" } })
|
21905
21912
|
] }) }) }) }),
|
21906
21913
|
/* @__PURE__ */ t(G, {}),
|
21907
21914
|
/* @__PURE__ */ t(
|
@@ -22057,7 +22064,7 @@ const Gf = ({
|
|
22057
22064
|
ee,
|
22058
22065
|
{
|
22059
22066
|
onClick: C,
|
22060
|
-
startIcon: /* @__PURE__ */ t(
|
22067
|
+
startIcon: /* @__PURE__ */ t($, { name: "ios_share" }),
|
22061
22068
|
variant: "text",
|
22062
22069
|
children: a.export_csv_btn
|
22063
22070
|
}
|
@@ -22167,7 +22174,7 @@ const Gf = ({
|
|
22167
22174
|
subBudgets: d,
|
22168
22175
|
transaction_total: _
|
22169
22176
|
} = e;
|
22170
|
-
return /* @__PURE__ */ t(
|
22177
|
+
return /* @__PURE__ */ t(X, { children: /* @__PURE__ */ l(de, { onClick: () => n?.(e), children: [
|
22171
22178
|
/* @__PURE__ */ t(Ge, { sx: { mb: -8, mr: 16 }, children: /* @__PURE__ */ t(rc, { color: a, percent: c, size: 40, children: /* @__PURE__ */ t(kt, { categoryGuid: o, variant: "basic" }) }) }),
|
22172
22179
|
/* @__PURE__ */ t(
|
22173
22180
|
re,
|
@@ -22201,7 +22208,7 @@ const Gf = ({
|
|
22201
22208
|
] }, o.guid)) }) })
|
22202
22209
|
] });
|
22203
22210
|
}), Jf = A(() => {
|
22204
|
-
const e =
|
22211
|
+
const e = pe(), { onEvent: n } = z(), { visibleAccounts: i } = Re(), { budgets: a, common: r, recurring: o } = I(), { incomeCategories: s, spendCategories: c } = Ke(), { detailedBudgets: d, totalBudgeted: _ } = lt(), { projectedIncome: u } = nt(), { setFilter: h } = Se(), [m, C] = g.useState(!1), [f, E] = g.useMemo(() => {
|
22205
22212
|
const w = c.reduce((H, O) => H + O.totalAmount, 0);
|
22206
22213
|
let x = w / _;
|
22207
22214
|
x > 1 && (x = 1);
|
@@ -22257,7 +22264,7 @@ const Gf = ({
|
|
22257
22264
|
"aria-label": o.manage_income,
|
22258
22265
|
onClick: v,
|
22259
22266
|
sx: { p: 0 },
|
22260
|
-
children: /* @__PURE__ */ t(
|
22267
|
+
children: /* @__PURE__ */ t($, { color: "primary", name: "edit" })
|
22261
22268
|
}
|
22262
22269
|
)
|
22263
22270
|
] }),
|
@@ -22284,7 +22291,7 @@ const Gf = ({
|
|
22284
22291
|
)
|
22285
22292
|
] });
|
22286
22293
|
}), _s = 480, o4 = A(({ onBackClick: e, sx: n }) => {
|
22287
|
-
const i =
|
22294
|
+
const i = pe(), { onEvent: a } = z(), { visibleAccounts: r } = Re(), { budgets: o, common: s } = I(), { isCopyLoaded: c, isInitialized: d, selectedAccounts: _, setDisplayedDate: u, setSelectedAccounts: h } = ce(), {
|
22288
22295
|
alert: m,
|
22289
22296
|
dateRange: C,
|
22290
22297
|
isDataLoaded: f,
|
@@ -22303,11 +22310,11 @@ const Gf = ({
|
|
22303
22310
|
}, [d, _, C]);
|
22304
22311
|
const U = (Ce) => {
|
22305
22312
|
y({ start: Ce[0] || /* @__PURE__ */ new Date(), end: Ce[1] || /* @__PURE__ */ new Date() });
|
22306
|
-
},
|
22313
|
+
}, P = () => {
|
22307
22314
|
a(W.BUDGETS_CLICK_FILTER);
|
22308
|
-
},
|
22315
|
+
}, j = () => {
|
22309
22316
|
L(!0), a(W.BUDGETS_CLICK_ADD);
|
22310
|
-
},
|
22317
|
+
}, he = () => {
|
22311
22318
|
L(!1);
|
22312
22319
|
}, V = Zt(C.end, $e(/* @__PURE__ */ new Date()));
|
22313
22320
|
return !c || !d || !f ? /* @__PURE__ */ t(ue, {}) : /* @__PURE__ */ l(
|
@@ -22318,11 +22325,11 @@ const Gf = ({
|
|
22318
22325
|
{
|
22319
22326
|
iconName: "add",
|
22320
22327
|
label: o.add_title,
|
22321
|
-
onClick:
|
22328
|
+
onClick: j
|
22322
22329
|
}
|
22323
22330
|
],
|
22324
22331
|
calendarActions: { onRangeChanged: U, shouldDisableNext: V },
|
22325
|
-
onAccountsFilterClick:
|
22332
|
+
onAccountsFilterClick: P,
|
22326
22333
|
onBackClick: e,
|
22327
22334
|
sx: n,
|
22328
22335
|
title: o.budgets_title,
|
@@ -22339,7 +22346,7 @@ const Gf = ({
|
|
22339
22346
|
/* @__PURE__ */ t(b, { height: R || D ? "calc(100dvh - 150px)" : 450, children: /* @__PURE__ */ t(
|
22340
22347
|
Qc,
|
22341
22348
|
{
|
22342
|
-
createBudgetOnClick:
|
22349
|
+
createBudgetOnClick: j,
|
22343
22350
|
height: R || D ? 800 : 450,
|
22344
22351
|
isDraggable: !0,
|
22345
22352
|
shouldShowZeroState: w.length === 0,
|
@@ -22370,7 +22377,7 @@ const Gf = ({
|
|
22370
22377
|
isOpen: O,
|
22371
22378
|
onClose: () => L(!1),
|
22372
22379
|
title: o.add_new_title,
|
22373
|
-
children: /* @__PURE__ */ t(Vf, { onRecalculateBudgets:
|
22380
|
+
children: /* @__PURE__ */ t(Vf, { onRecalculateBudgets: he })
|
22374
22381
|
}
|
22375
22382
|
),
|
22376
22383
|
/* @__PURE__ */ t(
|
@@ -22399,7 +22406,7 @@ const Gf = ({
|
|
22399
22406
|
}
|
22400
22407
|
);
|
22401
22408
|
}), e0 = A(() => {
|
22402
|
-
const e =
|
22409
|
+
const e = pe(), {
|
22403
22410
|
appDataStore: { banner: n, loadBanner: i, user: a }
|
22404
22411
|
} = Ta();
|
22405
22412
|
return g.useEffect(() => {
|
@@ -22516,7 +22523,7 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
22516
22523
|
copy: i,
|
22517
22524
|
setAnalysisType: a
|
22518
22525
|
}) => {
|
22519
|
-
const r =
|
22526
|
+
const r = pe(), o = r.palette.mode === "dark", s = g.useMemo(() => Object.keys(e).filter((d) => e[d] >= 1).map((d) => ({
|
22520
22527
|
key: d,
|
22521
22528
|
value: B(e[d], "0,0"),
|
22522
22529
|
formattedKey: Fp(d)
|
@@ -22574,7 +22581,7 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
22574
22581
|
"& .MuiListItem-divider": { borderColor: "border.light" },
|
22575
22582
|
"& .MuiListItem-root": { minHeight: 44, px: 12 }
|
22576
22583
|
},
|
22577
|
-
children: s.map(({ value: d, formattedKey: _ }) => /* @__PURE__ */ t(
|
22584
|
+
children: s.map(({ value: d, formattedKey: _ }) => /* @__PURE__ */ t(X, { divider: !0, secondaryAction: /* @__PURE__ */ t(p, { children: d }), children: /* @__PURE__ */ t(
|
22578
22585
|
re,
|
22579
22586
|
{
|
22580
22587
|
primary: _,
|
@@ -22985,22 +22992,22 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
22985
22992
|
holdings: [],
|
22986
22993
|
members: []
|
22987
22994
|
}), { accounts: C, investments: f } = I(), E = ({ data: O }) => {
|
22988
|
-
const { isCopyLoaded: L } = ce(), [U,
|
22995
|
+
const { isCopyLoaded: L } = ce(), [U, P] = Et(null), [j, he] = Et("");
|
22989
22996
|
if (!L || !d)
|
22990
22997
|
return /* @__PURE__ */ t(ue, {});
|
22991
|
-
const V = (
|
22992
|
-
|
22993
|
-
}, Ce = (
|
22994
|
-
const ze =
|
22995
|
-
/^\d*\.?\d*$/.test(ze) &&
|
22996
|
-
},
|
22997
|
-
if (
|
22998
|
+
const V = (ge, ze) => {
|
22999
|
+
P(ge), he(ze.toFixed(2));
|
23000
|
+
}, Ce = (ge) => {
|
23001
|
+
const ze = ge.target.value;
|
23002
|
+
/^\d*\.?\d*$/.test(ze) && he(ze);
|
23003
|
+
}, me = (ge, ze) => {
|
23004
|
+
if (ge.key === "Enter") {
|
22998
23005
|
const je = s.find(({ guid: Te }) => Te === ze);
|
22999
|
-
c({ ...je, cost_basis: Number(
|
23000
|
-
} else
|
23001
|
-
}, _e = (
|
23002
|
-
const ze = s.find(({ guid: je }) => je ===
|
23003
|
-
c({ ...ze, cost_basis: Number(
|
23006
|
+
c({ ...je, cost_basis: Number(j) }), P(null);
|
23007
|
+
} else ge.key === "Escape" && P(null);
|
23008
|
+
}, _e = (ge) => {
|
23009
|
+
const ze = s.find(({ guid: je }) => je === ge);
|
23010
|
+
c({ ...ze, cost_basis: Number(j) }), P(null);
|
23004
23011
|
}, Pe = [
|
23005
23012
|
{
|
23006
23013
|
field: "qty",
|
@@ -23015,9 +23022,9 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
23015
23022
|
headerName: f.overview.holding_header,
|
23016
23023
|
flex: 1,
|
23017
23024
|
renderHeader: Ui,
|
23018
|
-
renderCell: (
|
23019
|
-
/* @__PURE__ */ t(p, { sx: { color: "text.primary", fontWeight: 700 }, children:
|
23020
|
-
/* @__PURE__ */ t(p, { sx: { color: "text.secondary", fontWeight: 400 }, variant: "tiny", children:
|
23025
|
+
renderCell: (ge) => /* @__PURE__ */ t(Ee, { sx: { alignItems: "center", gap: 16, flexDirection: "row" }, children: /* @__PURE__ */ l(Ee, { children: [
|
23026
|
+
/* @__PURE__ */ t(p, { sx: { color: "text.primary", fontWeight: 700 }, children: ge.row.holding }),
|
23027
|
+
/* @__PURE__ */ t(p, { sx: { color: "text.secondary", fontWeight: 400 }, variant: "tiny", children: ge.row.description })
|
23021
23028
|
] }) })
|
23022
23029
|
},
|
23023
23030
|
{
|
@@ -23025,16 +23032,16 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
23025
23032
|
headerName: f.overview.cost_basis_header,
|
23026
23033
|
width: 132,
|
23027
23034
|
renderHeader: Ui,
|
23028
|
-
renderCell: (
|
23029
|
-
const ze = U ===
|
23035
|
+
renderCell: (ge) => {
|
23036
|
+
const ze = U === ge.row.id;
|
23030
23037
|
return /* @__PURE__ */ l(Ee, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
|
23031
23038
|
ze ? /* @__PURE__ */ t(
|
23032
23039
|
it,
|
23033
23040
|
{
|
23034
23041
|
autoFocus: !0,
|
23035
|
-
onBlur: () => _e(
|
23042
|
+
onBlur: () => _e(ge.row.id),
|
23036
23043
|
onChange: Ce,
|
23037
|
-
onKeyDown: (je) =>
|
23044
|
+
onKeyDown: (je) => me(je, ge.row.id),
|
23038
23045
|
size: "small",
|
23039
23046
|
sx: {
|
23040
23047
|
fontSize: 14,
|
@@ -23049,9 +23056,9 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
23049
23056
|
border: "none"
|
23050
23057
|
}
|
23051
23058
|
},
|
23052
|
-
value:
|
23059
|
+
value: j
|
23053
23060
|
}
|
23054
|
-
) : /* @__PURE__ */ t(p, { sx: { fontSize: 14 }, variant: "Small", children:
|
23061
|
+
) : /* @__PURE__ */ t(p, { sx: { fontSize: 14 }, variant: "Small", children: ge.value?.toLocaleString("en-US", {
|
23055
23062
|
currency: "USD",
|
23056
23063
|
maximumFractionDigits: 2,
|
23057
23064
|
minimumFractionDigits: 2,
|
@@ -23060,7 +23067,7 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
23060
23067
|
/* @__PURE__ */ t(
|
23061
23068
|
Ue,
|
23062
23069
|
{
|
23063
|
-
onClick: () => V(
|
23070
|
+
onClick: () => V(ge.row.id, ge.row.costBasis),
|
23064
23071
|
sx: { minWidth: 12, minHeight: 12 },
|
23065
23072
|
children: /* @__PURE__ */ t(yt, { name: "stylus", size: 12, sx: { color: "#49505A" } })
|
23066
23073
|
}
|
@@ -23075,20 +23082,20 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
23075
23082
|
headerName: f.overview.total_gain_loss_header,
|
23076
23083
|
width: 196,
|
23077
23084
|
renderHeader: Ui,
|
23078
|
-
renderCell: (
|
23079
|
-
const ze =
|
23085
|
+
renderCell: (ge) => {
|
23086
|
+
const ze = ge.row.costBasis, je = ze ? ge.row.totalGainLoss / ze * 100 : 0, Te = ge.value <= 0 ? "text.secondary" : "#0AC295";
|
23080
23087
|
return /* @__PURE__ */ l(Ee, { sx: { alignItems: "center", flexDirection: "row", gap: 2 }, children: [
|
23081
|
-
|
23088
|
+
ge.value !== 0 && /* @__PURE__ */ t(
|
23082
23089
|
yt,
|
23083
23090
|
{
|
23084
|
-
name:
|
23091
|
+
name: ge.value > 0 ? "trending_up" : "trending_down",
|
23085
23092
|
size: 16,
|
23086
23093
|
sx: { color: Te, mr: 1, verticalAlign: "middle" }
|
23087
23094
|
}
|
23088
23095
|
),
|
23089
23096
|
/* @__PURE__ */ t(p, { sx: { color: Te, fontWeight: 700 }, variant: "Small", children: ze ? `${je.toFixed(2)}%` : "0.00%" }),
|
23090
23097
|
/* @__PURE__ */ t(p, { sx: { color: "text.secondary" }, variant: "XSmall", children: "|" }),
|
23091
|
-
/* @__PURE__ */ t(p, { sx: { color: Te, fontWeight: 700 }, variant: "Small", children: Math.abs(
|
23098
|
+
/* @__PURE__ */ t(p, { sx: { color: Te, fontWeight: 700 }, variant: "Small", children: Math.abs(ge.value).toLocaleString("en-US", {
|
23092
23099
|
currency: "USD",
|
23093
23100
|
maximumFractionDigits: 2,
|
23094
23101
|
minimumFractionDigits: 2,
|
@@ -23105,7 +23112,7 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
23105
23112
|
headerName: f.overview.market_value_header,
|
23106
23113
|
width: 132,
|
23107
23114
|
renderHeader: Ui,
|
23108
|
-
renderCell: (
|
23115
|
+
renderCell: (ge) => /* @__PURE__ */ t(p, { sx: { fontWeight: 700 }, variant: "Small", children: ge.value?.toLocaleString("en-US", {
|
23109
23116
|
currency: "USD",
|
23110
23117
|
maximumFractionDigits: 2,
|
23111
23118
|
minimumFractionDigits: 2,
|
@@ -23129,8 +23136,8 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
23129
23136
|
}, y = () => {
|
23130
23137
|
u(!0), n(W.ACCOUNTS_CLICK_CONNECT);
|
23131
23138
|
}, T = (O) => (L, U) => {
|
23132
|
-
a((
|
23133
|
-
|
23139
|
+
a((P) => ({
|
23140
|
+
...P,
|
23134
23141
|
[O]: U
|
23135
23142
|
}));
|
23136
23143
|
}, { holdings: v } = ea(), { visibleInvestmentAccounts: w, members: x } = Re(), R = w.reduce((O, L) => O + (L.balance || 0), 0), D = v.reduce((O, L) => {
|
@@ -23175,24 +23182,24 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
23175
23182
|
x.map((O) => {
|
23176
23183
|
const L = w.filter((U) => U.member_guid === O.guid);
|
23177
23184
|
return /* @__PURE__ */ t(g.Fragment, { children: L.map((U) => {
|
23178
|
-
const
|
23179
|
-
id:
|
23180
|
-
qty:
|
23181
|
-
holding:
|
23182
|
-
costBasis:
|
23183
|
-
totalGainLoss:
|
23184
|
-
marketValue:
|
23185
|
-
description:
|
23186
|
-
})),
|
23187
|
-
(
|
23185
|
+
const P = v.filter((me) => me.account_guid === U.guid).map((me) => ({
|
23186
|
+
id: me.guid,
|
23187
|
+
qty: me.shares || 0,
|
23188
|
+
holding: me.symbol || me.description || "Unknown",
|
23189
|
+
costBasis: me.cost_basis || 0,
|
23190
|
+
totalGainLoss: me.market_value ? me.market_value - (me.cost_basis || 0) : 0,
|
23191
|
+
marketValue: me.market_value || 0,
|
23192
|
+
description: me.description || ""
|
23193
|
+
})), j = P.length > 0, he = U.balance, V = P.reduce(
|
23194
|
+
(me, _e) => _e.totalGainLoss + me,
|
23188
23195
|
0
|
23189
|
-
), Ce =
|
23196
|
+
), Ce = he ? V / he * 100 : 0;
|
23190
23197
|
return e ? /* @__PURE__ */ t(
|
23191
23198
|
Tt,
|
23192
23199
|
{
|
23193
|
-
onClick:
|
23200
|
+
onClick: P.length ? () => {
|
23194
23201
|
o(!0), m({
|
23195
|
-
holdings:
|
23202
|
+
holdings: P,
|
23196
23203
|
accounts: U,
|
23197
23204
|
members: O
|
23198
23205
|
});
|
@@ -23338,7 +23345,7 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
23338
23345
|
},
|
23339
23346
|
children: [
|
23340
23347
|
/* @__PURE__ */ t(p, { sx: { color: "text.secondary" }, variant: "XSmall", children: f.overview.total_value }),
|
23341
|
-
/* @__PURE__ */ t(p, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children:
|
23348
|
+
/* @__PURE__ */ t(p, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: he?.toLocaleString("en-US", {
|
23342
23349
|
currency: "USD",
|
23343
23350
|
maximumFractionDigits: 2,
|
23344
23351
|
minimumFractionDigits: 2,
|
@@ -23359,7 +23366,7 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
23359
23366
|
Ri,
|
23360
23367
|
{
|
23361
23368
|
expanded: i[U.guid] === !0,
|
23362
|
-
onChange:
|
23369
|
+
onChange: j ? T(U.guid) : () => {
|
23363
23370
|
},
|
23364
23371
|
sx: {
|
23365
23372
|
border: 1,
|
@@ -23396,7 +23403,7 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
23396
23403
|
{
|
23397
23404
|
name: "expand_more",
|
23398
23405
|
size: 20,
|
23399
|
-
sx: { color:
|
23406
|
+
sx: { color: P.length ? "#121417" : "#CDD3DD" }
|
23400
23407
|
}
|
23401
23408
|
),
|
23402
23409
|
/* @__PURE__ */ t(
|
@@ -23476,7 +23483,7 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
23476
23483
|
sx: { alignItems: "flex-end", gap: 12, pb: 14, pl: 16, pr: 16, pt: 14 },
|
23477
23484
|
children: /* @__PURE__ */ l(Ee, { sx: { alignItems: "flex-end" }, children: [
|
23478
23485
|
/* @__PURE__ */ t(p, { sx: { color: "text.secondary" }, variant: "XSmall", children: f.overview.total_value }),
|
23479
|
-
/* @__PURE__ */ t(p, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children:
|
23486
|
+
/* @__PURE__ */ t(p, { sx: { color: "text.primary", fontWeight: 600 }, variant: "Body", children: he?.toLocaleString("en-US", {
|
23480
23487
|
currency: "USD",
|
23481
23488
|
maximumFractionDigits: 2,
|
23482
23489
|
minimumFractionDigits: 2,
|
@@ -23489,7 +23496,7 @@ const i0 = ({ widgets: e, isLoading: n }) => {
|
|
23489
23496
|
]
|
23490
23497
|
}
|
23491
23498
|
),
|
23492
|
-
/* @__PURE__ */ t(Oi, { sx: { background: "background.default", p: 12 }, children: /* @__PURE__ */ t(Tt, { sx: { border: 1, borderColor: "border.light" }, children: /* @__PURE__ */ t(E, { data:
|
23499
|
+
/* @__PURE__ */ t(Oi, { sx: { background: "background.default", p: 12 }, children: /* @__PURE__ */ t(Tt, { sx: { border: 1, borderColor: "border.light" }, children: /* @__PURE__ */ t(E, { data: P }) }) })
|
23493
23500
|
]
|
23494
23501
|
},
|
23495
23502
|
U.guid
|
@@ -23990,7 +23997,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
23990
23997
|
return !r.length || !o.length ? n.Color.Primary300 : r[0].amount > o[0].amount ? n.Color.Error300 : r[0].amount < o[0].amount ? n.Color.Success300 : n.Color.Primary300;
|
23991
23998
|
}, v0 = ({ beat: e }) => {
|
23992
23999
|
const n = ft(), i = x0(e.data_series, n);
|
23993
|
-
return /* @__PURE__ */ t(
|
24000
|
+
return /* @__PURE__ */ t($, { name: "bar_chart", sx: { color: i } });
|
23994
24001
|
}, al = () => /* @__PURE__ */ l("svg", { fill: "none", height: "36", viewBox: "0 0 40 36", width: "40", xmlns: "http://www.w3.org/2000/svg", children: [
|
23995
24002
|
/* @__PURE__ */ t(
|
23996
24003
|
"path",
|
@@ -24773,9 +24780,9 @@ const Pi = g.createContext(null), b0 = ({
|
|
24773
24780
|
)
|
24774
24781
|
] })
|
24775
24782
|
] }), fs = ({ beat: e, clientColorScheme: n, color: i, type: a }) => {
|
24776
|
-
const r =
|
24777
|
-
return a === 0 ? /* @__PURE__ */ t(
|
24778
|
-
|
24783
|
+
const r = pe(), o = n?.primary_300 ? n.primary_300 : r.palette.primary.main;
|
24784
|
+
return a === 0 ? /* @__PURE__ */ t($, { fill: !0, name: "error", sx: { color: i || o } }) : a === 1 && e ? /* @__PURE__ */ t(y0, { beat: e }) : a === 2 && e ? /* @__PURE__ */ t(T0, { beat: e }) : a === 3 && e ? /* @__PURE__ */ t(v0, { beat: e }) : a === 5 && e ? /* @__PURE__ */ t($, { name: "campaign" }) : /* @__PURE__ */ t(
|
24785
|
+
$,
|
24779
24786
|
{
|
24780
24787
|
fill: !0,
|
24781
24788
|
name: "info",
|
@@ -25007,7 +25014,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25007
25014
|
y(V.targetTouches[0].clientX);
|
25008
25015
|
}, U = (V) => {
|
25009
25016
|
y(null), v(V.targetTouches[0].clientX);
|
25010
|
-
},
|
25017
|
+
}, P = {
|
25011
25018
|
clientColorScheme: n,
|
25012
25019
|
showCTAColocatedWithText: i,
|
25013
25020
|
heightOverrides: a,
|
@@ -25015,7 +25022,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25015
25022
|
showIcon: c,
|
25016
25023
|
variant: _,
|
25017
25024
|
widthOverrides: u
|
25018
|
-
},
|
25025
|
+
}, j = m.current && m.current.offsetWidth ? Math.round(C / m.current.offsetWidth) : 0, he = m.current ? m.current.scrollWidth - m.current.offsetWidth : 0;
|
25019
25026
|
return /* @__PURE__ */ l(
|
25020
25027
|
"div",
|
25021
25028
|
{
|
@@ -25035,20 +25042,20 @@ const Pi = g.createContext(null), b0 = ({
|
|
25035
25042
|
ref: m,
|
25036
25043
|
children: [
|
25037
25044
|
e.map((V, Ce) => {
|
25038
|
-
const
|
25045
|
+
const me = Ce + 1, _e = e.length + 1, Pe = S(
|
25039
25046
|
w.card_position_in_carousel_aria,
|
25040
|
-
|
25047
|
+
me.toString(),
|
25041
25048
|
_e.toString()
|
25042
|
-
),
|
25049
|
+
), ge = V.micro_title && V.micro_title.length > 0, ze = V.micro_description && V.micro_description.length > 0, je = ge ? V.micro_title : V.title, Te = ze ? V.micro_description : V.description;
|
25043
25050
|
return /* @__PURE__ */ t(
|
25044
25051
|
D0,
|
25045
25052
|
{
|
25046
25053
|
ariaLabel: `${Pe}: ${je}, ${Te}`,
|
25047
25054
|
beat: V,
|
25048
25055
|
index: Ce,
|
25049
|
-
isActiveCard: Ce ===
|
25056
|
+
isActiveCard: Ce === j,
|
25050
25057
|
onCardClick: r,
|
25051
|
-
|
25058
|
+
...P
|
25052
25059
|
},
|
25053
25060
|
`${V.guid} ${Ce}`
|
25054
25061
|
);
|
@@ -25056,9 +25063,9 @@ const Pi = g.createContext(null), b0 = ({
|
|
25056
25063
|
/* @__PURE__ */ t(
|
25057
25064
|
W0,
|
25058
25065
|
{
|
25059
|
-
isActiveCard:
|
25066
|
+
isActiveCard: j === e.length,
|
25060
25067
|
onCardClick: r,
|
25061
|
-
|
25068
|
+
...P
|
25062
25069
|
}
|
25063
25070
|
)
|
25064
25071
|
]
|
@@ -25068,11 +25075,11 @@ const Pi = g.createContext(null), b0 = ({
|
|
25068
25075
|
R0,
|
25069
25076
|
{
|
25070
25077
|
clientColorScheme: n,
|
25071
|
-
currentBeatIndex:
|
25078
|
+
currentBeatIndex: j,
|
25072
25079
|
numBeats: e.length + 1,
|
25073
25080
|
onNextClick: R,
|
25074
25081
|
onPreviousClick: D,
|
25075
|
-
scrollRightBoundary:
|
25082
|
+
scrollRightBoundary: he,
|
25076
25083
|
scrollX: C
|
25077
25084
|
}
|
25078
25085
|
)
|
@@ -25330,7 +25337,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25330
25337
|
variant: w,
|
25331
25338
|
widthOverrides: x
|
25332
25339
|
}) => {
|
25333
|
-
const R = tt(), [D, H] = Et("STANDARD"), [O, L] = Et(!1), U = fu([d], fn),
|
25340
|
+
const R = tt(), [D, H] = Et("STANDARD"), [O, L] = Et(!1), U = fu([d], fn), P = bu([_], fn);
|
25334
25341
|
g.useEffect(() => {
|
25335
25342
|
fn.isInitialized || fn.initialize(r, y, s);
|
25336
25343
|
}, [r, y, s, fn.isInitialized]), g.useEffect(() => {
|
@@ -25339,7 +25346,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25339
25346
|
}, [window.innerHeight]), g.useEffect(() => {
|
25340
25347
|
L(!e && fn.isInitialized);
|
25341
25348
|
}, [e, fn.isInitialized]);
|
25342
|
-
const
|
25349
|
+
const j = {
|
25343
25350
|
showCTAColocatedWithText: a,
|
25344
25351
|
heightOverrides: o,
|
25345
25352
|
onCardClick: c,
|
@@ -25348,16 +25355,16 @@ const Pi = g.createContext(null), b0 = ({
|
|
25348
25355
|
showWithMargin: E,
|
25349
25356
|
useDarkMode: T,
|
25350
25357
|
widthOverrides: x
|
25351
|
-
},
|
25358
|
+
}, he = {
|
25352
25359
|
carouselSize: D,
|
25353
25360
|
variant: w,
|
25354
|
-
...
|
25361
|
+
...j
|
25355
25362
|
};
|
25356
25363
|
return (
|
25357
25364
|
// The Theme provider must wrap the component so that the styles don't break when imported into other applications.
|
25358
25365
|
/* @__PURE__ */ l(Ul, { theme: R, children: [
|
25359
25366
|
/* @__PURE__ */ t(Jd, {}),
|
25360
|
-
/* @__PURE__ */ t(b0, { onEvent: U, onPageview:
|
25367
|
+
/* @__PURE__ */ t(b0, { onEvent: U, onPageview: P, store: fn, children: /* @__PURE__ */ l(P0, { heightOverrides: o, widthOverrides: x, children: [
|
25361
25368
|
(e || !fn.isInitialized) && /* @__PURE__ */ t(H0, {}),
|
25362
25369
|
O && C && /* @__PURE__ */ t(
|
25363
25370
|
B0,
|
@@ -25375,11 +25382,11 @@ const Pi = g.createContext(null), b0 = ({
|
|
25375
25382
|
clientColorScheme: i,
|
25376
25383
|
showCarouselControls: m,
|
25377
25384
|
variant: h ? w : void 0,
|
25378
|
-
...
|
25385
|
+
...j
|
25379
25386
|
}
|
25380
25387
|
),
|
25381
|
-
O && !n.length && v && /* @__PURE__ */ t(cl, { clientColorScheme: i, ...
|
25382
|
-
O && !n.length && !v && /* @__PURE__ */ t(ll, { ...
|
25388
|
+
O && !n.length && v && /* @__PURE__ */ t(cl, { clientColorScheme: i, ...he }),
|
25389
|
+
O && !n.length && !v && /* @__PURE__ */ t(ll, { ...he })
|
25383
25390
|
] }) })
|
25384
25391
|
] })
|
25385
25392
|
);
|
@@ -25394,7 +25401,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25394
25401
|
variant: c,
|
25395
25402
|
widthOverrides: d
|
25396
25403
|
}) => {
|
25397
|
-
const _ =
|
25404
|
+
const _ = pe(), { ref: u, inView: h } = Bs({
|
25398
25405
|
threshold: sl
|
25399
25406
|
}), { cardsCopy: m } = Wn(), { onEvent: C } = Hi();
|
25400
25407
|
Kn(() => {
|
@@ -25466,7 +25473,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25466
25473
|
onClose: () => o(!1),
|
25467
25474
|
title: n.frequency_title,
|
25468
25475
|
children: /* @__PURE__ */ t(ie, { children: c.map((h) => /* @__PURE__ */ l(g.Fragment, { children: [
|
25469
|
-
/* @__PURE__ */ t(
|
25476
|
+
/* @__PURE__ */ t(X, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ l(de, { onClick: () => d(h.id), children: [
|
25470
25477
|
/* @__PURE__ */ t(
|
25471
25478
|
re,
|
25472
25479
|
{
|
@@ -25640,7 +25647,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25640
25647
|
Di(n.predicted_occurs_on),
|
25641
25648
|
n.recurrence_type
|
25642
25649
|
);
|
25643
|
-
return /* @__PURE__ */ l(
|
25650
|
+
return /* @__PURE__ */ l(X, { disableGutters: !0, disablePadding: !0, children: [
|
25644
25651
|
/* @__PURE__ */ l(de, { onClick: () => {
|
25645
25652
|
e(n), r(!0);
|
25646
25653
|
}, children: [
|
@@ -25808,7 +25815,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
25808
25815
|
{
|
25809
25816
|
InputLabelProps: { shrink: !0 },
|
25810
25817
|
SelectProps: {
|
25811
|
-
IconComponent: (u) => /* @__PURE__ */ t(
|
25818
|
+
IconComponent: (u) => /* @__PURE__ */ t($, { fill: !1, name: "expand_more", size: 20, sx: { mr: 4 }, ...u })
|
25812
25819
|
},
|
25813
25820
|
defaultValue: 0,
|
25814
25821
|
label: c.frequency,
|
@@ -25865,12 +25872,12 @@ const Pi = g.createContext(null), b0 = ({
|
|
25865
25872
|
h(""), _(!1);
|
25866
25873
|
};
|
25867
25874
|
return /* @__PURE__ */ l(M, { children: [
|
25868
|
-
/* @__PURE__ */ t(
|
25875
|
+
/* @__PURE__ */ t(X, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ t(de, { onClick: T, children: /* @__PURE__ */ t(re, { children: /* @__PURE__ */ l(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
25869
25876
|
/* @__PURE__ */ l(b, { alignItems: "center", direction: "row", gap: 8, children: [
|
25870
|
-
/* @__PURE__ */ t(
|
25877
|
+
/* @__PURE__ */ t($, { fill: !0, name: "add_box", size: 24, sx: { color: "primary.light" } }),
|
25871
25878
|
/* @__PURE__ */ t(p, { bold: !0, sx: { color: "primary.light" }, variant: "Body", children: n })
|
25872
25879
|
] }),
|
25873
|
-
/* @__PURE__ */ t(
|
25880
|
+
/* @__PURE__ */ t($, { name: "chevron_right", size: 24, sx: { color: "primary.light" } })
|
25874
25881
|
] }) }) }) }),
|
25875
25882
|
/* @__PURE__ */ t(G, {}),
|
25876
25883
|
/* @__PURE__ */ t(
|
@@ -26066,7 +26073,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
26066
26073
|
}
|
26067
26074
|
);
|
26068
26075
|
}), bs = 58, hl = A(() => {
|
26069
|
-
const e =
|
26076
|
+
const e = pe(), { onEvent: n } = z(), { selectedDay: i } = Pt(), [a, r] = g.useState(
|
26070
26077
|
Zi(/* @__PURE__ */ new Date()) * hn + bs
|
26071
26078
|
), o = (c) => {
|
26072
26079
|
r(Zi(c) * hn + bs), n(W.RECURRING_TRANSACTIONS_CLICK_CALENDAR_RIGHT);
|
@@ -26167,7 +26174,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
26167
26174
|
[e]
|
26168
26175
|
), _ = e.type === Yt.Income, u = e.status === at.Paid, h = e.status === at.Missed, m = e.status === at.Upcoming;
|
26169
26176
|
let C = r.paid?.toLowerCase();
|
26170
|
-
return h ? C = r.missed?.toLowerCase() : m && (C = a ? ur(r, e.expectedDate, e.frequency) : ur(r, null, e.frequency)), /* @__PURE__ */ l(
|
26177
|
+
return h ? C = r.missed?.toLowerCase() : m && (C = a ? ur(r, e.expectedDate, e.frequency) : ur(r, null, e.frequency)), /* @__PURE__ */ l(X, { disableGutters: !0, disablePadding: !0, children: [
|
26171
26178
|
/* @__PURE__ */ l(de, { onClick: () => {
|
26172
26179
|
c(!0), i(e);
|
26173
26180
|
}, children: [
|
@@ -26279,7 +26286,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
26279
26286
|
),
|
26280
26287
|
/* @__PURE__ */ t(G, { sx: { mx: 24 } })
|
26281
26288
|
] }, `recurrence-${_}`)) : c.map((d, _) => /* @__PURE__ */ l(g.Fragment, { children: [
|
26282
|
-
/* @__PURE__ */ t(
|
26289
|
+
/* @__PURE__ */ t(X, { children: /* @__PURE__ */ t(
|
26283
26290
|
ie,
|
26284
26291
|
{
|
26285
26292
|
subheader: /* @__PURE__ */ t(Rt, { sx: { bgcolor: "background.paper", ml: 8, pb: 4, pt: 12 }, children: /* @__PURE__ */ t(p, { bold: !0, variant: "caption", children: ae(d.date, te.DAY_OF_WEEK_MONTH_DAY) }) }),
|
@@ -26300,7 +26307,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
26300
26307
|
}
|
26301
26308
|
), Es = A(
|
26302
26309
|
({ title: e, expected: n, paid: i, missed: a, total: r, onNewClick: o }) => {
|
26303
|
-
const s =
|
26310
|
+
const s = pe(), { recurring: c } = I(), d = g.useMemo(() => {
|
26304
26311
|
const _ = [{ color: s.palette.success.main, percentage: `${i / n}` }];
|
26305
26312
|
return a && _.push({ color: s.palette.error.main, percentage: `${a / n}` }), _;
|
26306
26313
|
}, [i, n, a]);
|
@@ -26668,7 +26675,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
26668
26675
|
},
|
26669
26676
|
a.guid
|
26670
26677
|
)) }), ab = () => {
|
26671
|
-
const e =
|
26678
|
+
const e = pe(), { spending: n } = I(), { selectedAccounts: i } = ce(), {
|
26672
26679
|
categories: a,
|
26673
26680
|
dateRangeCategoryTotals: r,
|
26674
26681
|
dataRangeTotalsLoaded: o,
|
@@ -26789,7 +26796,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
26789
26796
|
/* @__PURE__ */ t(G, { "aria-hidden": "true" }),
|
26790
26797
|
/* @__PURE__ */ t(ie, { children: e.categoryData.map((s) => /* @__PURE__ */ l(g.Fragment, { children: [
|
26791
26798
|
/* @__PURE__ */ t(
|
26792
|
-
|
26799
|
+
X,
|
26793
26800
|
{
|
26794
26801
|
disableGutters: !0,
|
26795
26802
|
disablePadding: !0,
|
@@ -26834,7 +26841,7 @@ const Pi = g.createContext(null), b0 = ({
|
|
26834
26841
|
/* @__PURE__ */ t(G, {}),
|
26835
26842
|
s.categoryTotals && s.categoryTotals.length > 0 && /* @__PURE__ */ t(pa, { in: o?.guid === s.guid, unmountOnExit: !0, children: /* @__PURE__ */ l(ie, { children: [
|
26836
26843
|
o?.categoryTotals?.map((c) => /* @__PURE__ */ t(
|
26837
|
-
|
26844
|
+
X,
|
26838
26845
|
{
|
26839
26846
|
sx: {
|
26840
26847
|
pl: 24,
|
@@ -26942,10 +26949,10 @@ const Pi = g.createContext(null), b0 = ({
|
|
26942
26949
|
};
|
26943
26950
|
if (m === 0)
|
26944
26951
|
if (O === "other") {
|
26945
|
-
const U = v.categoryData.find((
|
26952
|
+
const U = v.categoryData.find((P) => P.guid === "other");
|
26946
26953
|
d({
|
26947
26954
|
...L,
|
26948
|
-
custom: (
|
26955
|
+
custom: (P) => !!U?.categoryTotals?.find((j) => j.guid === P.top_level_category_guid)
|
26949
26956
|
});
|
26950
26957
|
} else
|
26951
26958
|
d({
|
@@ -27224,7 +27231,7 @@ const Cb = (e) => e.reduce((i, a) => {
|
|
27224
27231
|
}, vb = A(xb), wb = {
|
27225
27232
|
view_transactions: "View Transactions"
|
27226
27233
|
}, Nb = ({ onBackClick: e, sx: n }) => {
|
27227
|
-
const i = tt(), { onEvent: a } = z(), { isDesktop: r, isTablet: o, isMobile: s } = ve(), { visibleAccounts: c } = Re(), { loadMonthlyCategoryTotals: d, monthlyCategoryTotals: _, getCategoryName: u } = Ke(), { sortedTransactions: h } = Se(), { isCopyLoaded: m, isInitialized: C, selectedAccounts: f, setSelectedAccounts: E } = ce(), { trends: y } = I(), T = i.palette.mode === "dark", [v, w] = g.useState(!1), [x, R] = g.useState(!1), [D, H] = g.useState("Chart"), [O, L] = g.useState(""), [U,
|
27234
|
+
const i = tt(), { onEvent: a } = z(), { isDesktop: r, isTablet: o, isMobile: s } = ve(), { visibleAccounts: c } = Re(), { loadMonthlyCategoryTotals: d, monthlyCategoryTotals: _, getCategoryName: u } = Ke(), { sortedTransactions: h } = Se(), { isCopyLoaded: m, isInitialized: C, selectedAccounts: f, setSelectedAccounts: E } = ce(), { trends: y } = I(), T = i.palette.mode === "dark", [v, w] = g.useState(!1), [x, R] = g.useState(!1), [D, H] = g.useState("Chart"), [O, L] = g.useState(""), [U, P] = g.useState({
|
27228
27235
|
start: oo(Xe(jt(/* @__PURE__ */ new Date(), 6)), 1),
|
27229
27236
|
end: Xe(/* @__PURE__ */ new Date())
|
27230
27237
|
});
|
@@ -27239,7 +27246,7 @@ const Cb = (e) => e.reduce((i, a) => {
|
|
27239
27246
|
w(!0);
|
27240
27247
|
});
|
27241
27248
|
}, [C, f, U]);
|
27242
|
-
const
|
27249
|
+
const j = g.useMemo(() => {
|
27243
27250
|
if (!v) return { stackedDatasets: [], unstackedDatasets: [] };
|
27244
27251
|
const Te = fb(
|
27245
27252
|
_,
|
@@ -27252,7 +27259,7 @@ const Cb = (e) => e.reduce((i, a) => {
|
|
27252
27259
|
stackedDatasets: _t.filter(pm),
|
27253
27260
|
unstackedDatasets: _t.filter(Da)
|
27254
27261
|
};
|
27255
|
-
}, [_, O, U]),
|
27262
|
+
}, [_, O, U]), he = g.useMemo(() => {
|
27256
27263
|
const Te = ae(
|
27257
27264
|
U.start,
|
27258
27265
|
s ? te.MONTH_SHORT_YEAR : te.MONTH_YEAR
|
@@ -27265,16 +27272,16 @@ const Cb = (e) => e.reduce((i, a) => {
|
|
27265
27272
|
H(_t ?? D), a(W.TRENDS_CLICK_TOGGLE);
|
27266
27273
|
}, Ce = (Te) => {
|
27267
27274
|
const _t = oo(Te?.[0], 1), un = Te?.[1], se = eu(un, _t);
|
27268
|
-
|
27275
|
+
P({ start: _t, end: un }), a(W.TRENDS_CLICK_DATE, {
|
27269
27276
|
time_period: se + "M"
|
27270
27277
|
});
|
27271
|
-
},
|
27278
|
+
}, me = () => {
|
27272
27279
|
a(W.TRENDS_CLICK_FILTER);
|
27273
27280
|
}, _e = (Te) => {
|
27274
27281
|
L(Te);
|
27275
27282
|
}, Pe = (Te) => {
|
27276
27283
|
L(Te), a(W.TRENDS_CLICK_LEGEND, { category: u(Te) });
|
27277
|
-
},
|
27284
|
+
}, ge = (Te) => {
|
27278
27285
|
a(W.TRENDS_HOVER_LEGEND, { category: u(Te) });
|
27279
27286
|
}, ze = (Te) => {
|
27280
27287
|
a(W.TRENDS_HOVER_AREA, { category: Te });
|
@@ -27288,7 +27295,7 @@ const Cb = (e) => e.reduce((i, a) => {
|
|
27288
27295
|
calendarActions: { onRangeChanged: Ce },
|
27289
27296
|
dateRange: U,
|
27290
27297
|
dateRangeVariant: "timeframebuttons",
|
27291
|
-
onAccountsFilterClick:
|
27298
|
+
onAccountsFilterClick: me,
|
27292
27299
|
onBackClick: e,
|
27293
27300
|
sx: n,
|
27294
27301
|
title: y.title,
|
@@ -27323,7 +27330,7 @@ const Cb = (e) => e.reduce((i, a) => {
|
|
27323
27330
|
children: u(O) || y.sub_title
|
27324
27331
|
}
|
27325
27332
|
),
|
27326
|
-
/* @__PURE__ */ t(p, { variant: r ? "Body" : "Small", children:
|
27333
|
+
/* @__PURE__ */ t(p, { variant: r ? "Body" : "Small", children: he })
|
27327
27334
|
] }),
|
27328
27335
|
/* @__PURE__ */ t(
|
27329
27336
|
ca,
|
@@ -27358,7 +27365,7 @@ const Cb = (e) => e.reduce((i, a) => {
|
|
27358
27365
|
}
|
27359
27366
|
},
|
27360
27367
|
value: Te,
|
27361
|
-
children: Te === "Chart" ? /* @__PURE__ */ t(
|
27368
|
+
children: Te === "Chart" ? /* @__PURE__ */ t($, { name: "table_chart_view" }) : /* @__PURE__ */ t($, { name: "format_list_bulleted" })
|
27362
27369
|
},
|
27363
27370
|
Te
|
27364
27371
|
))
|
@@ -27369,7 +27376,7 @@ const Cb = (e) => e.reduce((i, a) => {
|
|
27369
27376
|
),
|
27370
27377
|
/* @__PURE__ */ l(b, { alignItems: "center", flexDirection: "row", width: "100%", children: [
|
27371
27378
|
/* @__PURE__ */ t(M, { flexGrow: 1, children: O && /* @__PURE__ */ l(ee, { onClick: () => L(""), sx: { p: 0, pr: 5 }, children: [
|
27372
|
-
/* @__PURE__ */ t(
|
27379
|
+
/* @__PURE__ */ t($, { name: "arrow_back" }),
|
27373
27380
|
y.all_categories
|
27374
27381
|
] }) }),
|
27375
27382
|
/* @__PURE__ */ t(ee, { onClick: () => R(!0), sx: { px: 5 }, children: `${wb.view_transactions} (${h.length})` })
|
@@ -27380,10 +27387,10 @@ const Cb = (e) => e.reduce((i, a) => {
|
|
27380
27387
|
{
|
27381
27388
|
onClickLegend: Pe,
|
27382
27389
|
onHoverArea: ze,
|
27383
|
-
onHoverLegend:
|
27390
|
+
onHoverLegend: ge,
|
27384
27391
|
onHoverPoint: je,
|
27385
|
-
stackedDatasets:
|
27386
|
-
unstackedDatasets:
|
27392
|
+
stackedDatasets: j.stackedDatasets,
|
27393
|
+
unstackedDatasets: j.unstackedDatasets
|
27387
27394
|
}
|
27388
27395
|
),
|
27389
27396
|
D === "Table" && /* @__PURE__ */ t(
|