@mx-cartographer/experiences 5.3.0 → 5.3.1-alpha.mega10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
|
@@ -20,7 +20,7 @@ import W from "@mui/material/ListItem";
|
|
|
20
20
|
import aA from "@mui/material/ListItemButton";
|
|
21
21
|
import eA from "@mui/material/ListItemText";
|
|
22
22
|
import wo from "@mui/material/Popover";
|
|
23
|
-
import
|
|
23
|
+
import P from "@mui/material/Stack";
|
|
24
24
|
import li from "@mui/material/Checkbox";
|
|
25
25
|
import { addMonths as Re } from "date-fns/addMonths";
|
|
26
26
|
import { addQuarters as Pt } from "date-fns/addQuarters";
|
|
@@ -1129,7 +1129,7 @@ const $i = (A, t) => A.reduce((i, n) => (i[n.guid] = t?.includes(n.guid), i), {}
|
|
|
1129
1129
|
handleClose: f,
|
|
1130
1130
|
showAccountNumbers: E
|
|
1131
1131
|
}) => {
|
|
1132
|
-
const l = oa(() => oc(A), [A]), v = A.length < 1, u = !!t, H = Object.values(c).every((
|
|
1132
|
+
const l = oa(() => oc(A), [A]), v = A.length < 1, u = !!t, H = Object.values(c).every((b) => !!b);
|
|
1133
1133
|
return /* @__PURE__ */ e(
|
|
1134
1134
|
wo,
|
|
1135
1135
|
{
|
|
@@ -1146,7 +1146,7 @@ const $i = (A, t) => A.reduce((i, n) => (i[n.guid] = t?.includes(n.guid), i), {}
|
|
|
1146
1146
|
horizontal: "left"
|
|
1147
1147
|
},
|
|
1148
1148
|
children: v ? /* @__PURE__ */ s(
|
|
1149
|
-
|
|
1149
|
+
P,
|
|
1150
1150
|
{
|
|
1151
1151
|
sx: {
|
|
1152
1152
|
alignItems: "center",
|
|
@@ -1201,10 +1201,10 @@ const $i = (A, t) => A.reduce((i, n) => (i[n.guid] = t?.includes(n.guid), i), {}
|
|
|
1201
1201
|
"data-ui-test": `checked-${H}`,
|
|
1202
1202
|
disableRipple: !0,
|
|
1203
1203
|
onChange: () => {
|
|
1204
|
-
const
|
|
1204
|
+
const b = {};
|
|
1205
1205
|
Object.keys(c).forEach((p) => {
|
|
1206
|
-
|
|
1207
|
-
}), d(
|
|
1206
|
+
b[p] = !H;
|
|
1207
|
+
}), d(b);
|
|
1208
1208
|
},
|
|
1209
1209
|
size: "small",
|
|
1210
1210
|
sx: {
|
|
@@ -1218,24 +1218,24 @@ const $i = (A, t) => A.reduce((i, n) => (i[n.guid] = t?.includes(n.guid), i), {}
|
|
|
1218
1218
|
label: H ? i.unselectAllAccounts : i.selectAllAccounts
|
|
1219
1219
|
}
|
|
1220
1220
|
) }),
|
|
1221
|
-
Object.keys(l).map((
|
|
1222
|
-
const p = l[
|
|
1221
|
+
Object.keys(l).map((b) => {
|
|
1222
|
+
const p = l[b], y = p.every(
|
|
1223
1223
|
(x) => c[x.guid]
|
|
1224
1224
|
);
|
|
1225
1225
|
return /* @__PURE__ */ e(W, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ e(
|
|
1226
1226
|
rA,
|
|
1227
1227
|
{
|
|
1228
|
-
"aria-label": z(i.accountTypeAccounts,
|
|
1228
|
+
"aria-label": z(i.accountTypeAccounts, b),
|
|
1229
1229
|
className: "mx-cmn-account-options-group",
|
|
1230
1230
|
dense: !0,
|
|
1231
1231
|
subheader: /* @__PURE__ */ e(me, { disableGutters: !0, children: /* @__PURE__ */ e(
|
|
1232
1232
|
aA,
|
|
1233
1233
|
{
|
|
1234
|
-
"aria-label": z(i.toggleAccountTypeAccounts,
|
|
1234
|
+
"aria-label": z(i.toggleAccountTypeAccounts, b),
|
|
1235
1235
|
"aria-pressed": y,
|
|
1236
1236
|
disableGutters: !0,
|
|
1237
1237
|
onClick: () => r(
|
|
1238
|
-
|
|
1238
|
+
b,
|
|
1239
1239
|
l,
|
|
1240
1240
|
y
|
|
1241
1241
|
),
|
|
@@ -1247,7 +1247,7 @@ const $i = (A, t) => A.reduce((i, n) => (i[n.guid] = t?.includes(n.guid), i), {}
|
|
|
1247
1247
|
children: /* @__PURE__ */ e(
|
|
1248
1248
|
eA,
|
|
1249
1249
|
{
|
|
1250
|
-
primary:
|
|
1250
|
+
primary: b,
|
|
1251
1251
|
primaryTypographyProps: { variant: "XSmall", fontWeight: "bold" }
|
|
1252
1252
|
}
|
|
1253
1253
|
)
|
|
@@ -1292,12 +1292,12 @@ const $i = (A, t) => A.reduce((i, n) => (i[n.guid] = t?.includes(n.guid), i), {}
|
|
|
1292
1292
|
);
|
|
1293
1293
|
})
|
|
1294
1294
|
}
|
|
1295
|
-
) },
|
|
1295
|
+
) }, b);
|
|
1296
1296
|
})
|
|
1297
1297
|
]
|
|
1298
1298
|
}
|
|
1299
1299
|
),
|
|
1300
|
-
/* @__PURE__ */ s(
|
|
1300
|
+
/* @__PURE__ */ s(P, { direction: "row", justifyContent: "flex-end", padding: 12, spacing: 16, width: "100%", children: [
|
|
1301
1301
|
/* @__PURE__ */ e($, { onClick: o, variant: "outlined", children: i.cancelButton }),
|
|
1302
1302
|
/* @__PURE__ */ e(
|
|
1303
1303
|
$,
|
|
@@ -1402,9 +1402,9 @@ const Ic = (A, t) => {
|
|
|
1402
1402
|
onAccountClick: (H) => {
|
|
1403
1403
|
l({ ...E, [H.guid]: !E[H.guid] });
|
|
1404
1404
|
},
|
|
1405
|
-
onAccountGroupClick: (H,
|
|
1405
|
+
onAccountGroupClick: (H, b, p) => {
|
|
1406
1406
|
const y = { ...E };
|
|
1407
|
-
|
|
1407
|
+
b[H].forEach((x) => {
|
|
1408
1408
|
y[x.guid] = !p;
|
|
1409
1409
|
}), l(y);
|
|
1410
1410
|
},
|
|
@@ -1546,7 +1546,7 @@ const Ic = (A, t) => {
|
|
|
1546
1546
|
width: E,
|
|
1547
1547
|
xAxisLabel: l = ""
|
|
1548
1548
|
}) => {
|
|
1549
|
-
const v = KA(), u = dc(v, E), H = d / I * c,
|
|
1549
|
+
const v = KA(), u = dc(v, E), H = d / I * c, b = Math.abs(d) / I * i, p = a === void 0 || a === r ? "primary" : "secondary";
|
|
1550
1550
|
return /* @__PURE__ */ s("div", { className: `mx-cmn-barchart-bar-column ${u}`, children: [
|
|
1551
1551
|
/* @__PURE__ */ e("div", { style: { height: c }, children: d >= 0 && /* @__PURE__ */ e(
|
|
1552
1552
|
wr,
|
|
@@ -1568,7 +1568,7 @@ const Ic = (A, t) => {
|
|
|
1568
1568
|
{
|
|
1569
1569
|
ariaLabel: A,
|
|
1570
1570
|
color: n,
|
|
1571
|
-
height:
|
|
1571
|
+
height: b,
|
|
1572
1572
|
index: r,
|
|
1573
1573
|
label: f,
|
|
1574
1574
|
onClick: o,
|
|
@@ -1624,13 +1624,13 @@ const Ic = (A, t) => {
|
|
|
1624
1624
|
selectedIndex: c,
|
|
1625
1625
|
valueFormatter: d = (f) => `${f}`
|
|
1626
1626
|
}) => {
|
|
1627
|
-
const f = KA(), E = Rc(f), l = n.reduce(lc, []), v = A !== void 0 ? A : l.reduce(Ec, 0) / l.length, u = Math.max(...l), H = Math.min(...l),
|
|
1627
|
+
const f = KA(), E = Rc(f), l = n.reduce(lc, []), v = A !== void 0 ? A : l.reduce(Ec, 0) / l.length, u = Math.max(...l), H = Math.min(...l), b = l.reduce(hc, 0), p = u >= 0, y = H < 0, x = xr(p, y, r), w = xr(y, p, r), D = vc(v, u, H, x || w), j = (O) => c === void 0 || O === c ? i : `${i}80`, m = () => /* @__PURE__ */ e(
|
|
1628
1628
|
yr,
|
|
1629
1629
|
{
|
|
1630
1630
|
averageLineHeight: D,
|
|
1631
1631
|
bottomHeight: w,
|
|
1632
1632
|
color: "",
|
|
1633
|
-
range:
|
|
1633
|
+
range: b,
|
|
1634
1634
|
topHeight: x,
|
|
1635
1635
|
value: 0,
|
|
1636
1636
|
width: void 0
|
|
@@ -1638,7 +1638,7 @@ const Ic = (A, t) => {
|
|
|
1638
1638
|
);
|
|
1639
1639
|
return /* @__PURE__ */ s("div", { className: `mx-cmn-bar-chart ${E}`, children: [
|
|
1640
1640
|
/* @__PURE__ */ s("div", { className: "mx-cmn-chart-container", children: [
|
|
1641
|
-
/* @__PURE__ */ e(
|
|
1641
|
+
/* @__PURE__ */ e(m, {}),
|
|
1642
1642
|
n.map((O, T) => /* @__PURE__ */ s(h.Fragment, { children: [
|
|
1643
1643
|
/* @__PURE__ */ e(
|
|
1644
1644
|
yr,
|
|
@@ -1646,10 +1646,10 @@ const Ic = (A, t) => {
|
|
|
1646
1646
|
ariaLabel: O.ariaLabel,
|
|
1647
1647
|
averageLineHeight: D,
|
|
1648
1648
|
bottomHeight: w,
|
|
1649
|
-
color:
|
|
1649
|
+
color: j(T),
|
|
1650
1650
|
index: T,
|
|
1651
1651
|
onClick: a,
|
|
1652
|
-
range:
|
|
1652
|
+
range: b,
|
|
1653
1653
|
selectedIndex: c,
|
|
1654
1654
|
topHeight: x,
|
|
1655
1655
|
value: O.value,
|
|
@@ -1658,7 +1658,7 @@ const Ic = (A, t) => {
|
|
|
1658
1658
|
xAxisLabel: O.label
|
|
1659
1659
|
}
|
|
1660
1660
|
),
|
|
1661
|
-
/* @__PURE__ */ e(
|
|
1661
|
+
/* @__PURE__ */ e(m, {})
|
|
1662
1662
|
] }, `column-${T}`))
|
|
1663
1663
|
] }),
|
|
1664
1664
|
/* @__PURE__ */ e(sc, { color: i, labelAverage: o, labelMain: I })
|
|
@@ -1793,9 +1793,9 @@ const Cc = ({
|
|
|
1793
1793
|
const u = h.useMemo(() => {
|
|
1794
1794
|
const x = ua({ start: QA(c), end: BA(c) }), w = [];
|
|
1795
1795
|
for (let D = 0; D < x.length; D++) {
|
|
1796
|
-
const
|
|
1797
|
-
for (let T = 0; T <
|
|
1798
|
-
O.push(
|
|
1796
|
+
const j = x[D], m = Ra({ start: j, end: We(j, 6) }), O = [];
|
|
1797
|
+
for (let T = 0; T < m.length; T++)
|
|
1798
|
+
O.push(m[T]);
|
|
1799
1799
|
w.push(O);
|
|
1800
1800
|
}
|
|
1801
1801
|
return w;
|
|
@@ -1807,7 +1807,7 @@ const Cc = ({
|
|
|
1807
1807
|
}
|
|
1808
1808
|
!f || l ? (E(x), v(void 0)) : mA(x, f) ? (v(f), E(x), r?.(x, f)) : (v(x), r?.(f, x));
|
|
1809
1809
|
}
|
|
1810
|
-
},
|
|
1810
|
+
}, b = () => {
|
|
1811
1811
|
const x = fA();
|
|
1812
1812
|
d(x), o !== "None" && (E(x), o === "Single" ? n?.(x) : (v(x), r?.(x, x)));
|
|
1813
1813
|
}, p = () => {
|
|
@@ -1826,7 +1826,7 @@ const Cc = ({
|
|
|
1826
1826
|
}
|
|
1827
1827
|
),
|
|
1828
1828
|
/* @__PURE__ */ e("div", { className: "mx-cmn-calendar-header-row", children: u[0].map((x, w) => /* @__PURE__ */ e("div", { className: "mx-cmn-calendar-header-cell", children: /* @__PURE__ */ e(R, { bold: !0, variant: "Small", children: le(x, "EEEEE") }) }, w)) }),
|
|
1829
|
-
u.map((x, w) => /* @__PURE__ */ e("div", { className: "mx-cmn-calendar-week", children: x.map((D,
|
|
1829
|
+
u.map((x, w) => /* @__PURE__ */ e("div", { className: "mx-cmn-calendar-week", children: x.map((D, j) => /* @__PURE__ */ e(
|
|
1830
1830
|
bc,
|
|
1831
1831
|
{
|
|
1832
1832
|
beginDate: f,
|
|
@@ -1835,9 +1835,9 @@ const Cc = ({
|
|
|
1835
1835
|
isInMonth: Pa(D, c),
|
|
1836
1836
|
onClick: H
|
|
1837
1837
|
},
|
|
1838
|
-
|
|
1838
|
+
j
|
|
1839
1839
|
)) }, `w-${w}`)),
|
|
1840
|
-
/* @__PURE__ */ e("div", { className: "mx-cmn-calendar-today-container", children: /* @__PURE__ */ e($, { onClick:
|
|
1840
|
+
/* @__PURE__ */ e("div", { className: "mx-cmn-calendar-today-container", children: /* @__PURE__ */ e($, { onClick: b, size: "small", variant: "text", children: A.today }) })
|
|
1841
1841
|
] }) });
|
|
1842
1842
|
}, gc = (A) => He({
|
|
1843
1843
|
width: zc,
|
|
@@ -2028,15 +2028,15 @@ const Cc = ({
|
|
|
2028
2028
|
valueFormatterString: v = "0,0",
|
|
2029
2029
|
width: u
|
|
2030
2030
|
}) => {
|
|
2031
|
-
const H = oe(),
|
|
2031
|
+
const H = oe(), b = i.flat().map((j) => j.x), p = i.flat().map((j) => j.y), y = Math.round(p.reduce((j, m) => m + j, 0) / p.length), x = Math.floor(Math.min(...p) / 100) * 100, w = Math.ceil(Math.max(...p) / 100) * 100, D = i.map((j, m) => ({
|
|
2032
2032
|
type: c ? "bar" : "line",
|
|
2033
2033
|
curve: "linear",
|
|
2034
|
-
color: c ? H.palette.chart?.chart6 : t[
|
|
2035
|
-
data:
|
|
2034
|
+
color: c ? H.palette.chart?.chart6 : t[m] ?? H.palette.primary.main,
|
|
2035
|
+
data: j.map((O) => O.y),
|
|
2036
2036
|
area: d,
|
|
2037
2037
|
baseline: A,
|
|
2038
2038
|
showMark: !0,
|
|
2039
|
-
label: r[
|
|
2039
|
+
label: r[m],
|
|
2040
2040
|
valueFormatter: (O) => M(O || 0, v)
|
|
2041
2041
|
}));
|
|
2042
2042
|
return /* @__PURE__ */ s("div", { style: { position: "relative" }, children: [
|
|
@@ -2057,7 +2057,7 @@ const Cc = ({
|
|
|
2057
2057
|
}
|
|
2058
2058
|
},
|
|
2059
2059
|
width: u,
|
|
2060
|
-
xAxis: [{ data:
|
|
2060
|
+
xAxis: [{ data: b, scaleType: c ? "band" : "point" }],
|
|
2061
2061
|
yAxis: [
|
|
2062
2062
|
{
|
|
2063
2063
|
min: x,
|
|
@@ -2068,7 +2068,7 @@ const Cc = ({
|
|
|
2068
2068
|
max: w,
|
|
2069
2069
|
color: [H.palette.background.paper, t[0] ?? H.palette.primary.main]
|
|
2070
2070
|
} : void 0,
|
|
2071
|
-
valueFormatter: (
|
|
2071
|
+
valueFormatter: (j) => M(j, v)
|
|
2072
2072
|
}
|
|
2073
2073
|
],
|
|
2074
2074
|
children: [
|
|
@@ -2077,7 +2077,7 @@ const Cc = ({
|
|
|
2077
2077
|
xa,
|
|
2078
2078
|
{
|
|
2079
2079
|
slots: d && D.length < 2 ? {
|
|
2080
|
-
line: (
|
|
2080
|
+
line: (j) => /* @__PURE__ */ e(Dc, { ...j, lineColor: t[0] ?? H.palette.primary.main })
|
|
2081
2081
|
} : void 0
|
|
2082
2082
|
}
|
|
2083
2083
|
),
|
|
@@ -2085,14 +2085,14 @@ const Cc = ({
|
|
|
2085
2085
|
Da,
|
|
2086
2086
|
{
|
|
2087
2087
|
slots: l ? {
|
|
2088
|
-
mark: (
|
|
2088
|
+
mark: (j) => /* @__PURE__ */ e(
|
|
2089
2089
|
xc,
|
|
2090
2090
|
{
|
|
2091
2091
|
handlers: I,
|
|
2092
2092
|
showLabel: E,
|
|
2093
|
-
style: a?.(
|
|
2093
|
+
style: a?.(j.dataIndex) ?? {},
|
|
2094
2094
|
yData: p,
|
|
2095
|
-
...
|
|
2095
|
+
...j
|
|
2096
2096
|
}
|
|
2097
2097
|
)
|
|
2098
2098
|
} : void 0
|
|
@@ -2101,7 +2101,7 @@ const Cc = ({
|
|
|
2101
2101
|
/* @__PURE__ */ e(
|
|
2102
2102
|
ja,
|
|
2103
2103
|
{
|
|
2104
|
-
barLabel: (
|
|
2104
|
+
barLabel: (j) => Number(j.value) > 0 ? `$${j.value}` : null,
|
|
2105
2105
|
borderRadius: 10
|
|
2106
2106
|
}
|
|
2107
2107
|
),
|
|
@@ -2181,7 +2181,7 @@ const Cc = ({
|
|
|
2181
2181
|
return t;
|
|
2182
2182
|
}, Xt = () => Qc(), nI = ({ categoryGuid: A, topLevelCategoryGuid: t }) => {
|
|
2183
2183
|
const { categories: i } = X(), { getCategoryName: n } = qA(), r = n(A);
|
|
2184
|
-
return /* @__PURE__ */ s(
|
|
2184
|
+
return /* @__PURE__ */ s(P, { alignItems: "center", direction: "column", gap: "8", justifyContent: "center", mb: 4, children: [
|
|
2185
2185
|
/* @__PURE__ */ e(
|
|
2186
2186
|
L,
|
|
2187
2187
|
{
|
|
@@ -2218,8 +2218,8 @@ const Cc = ({
|
|
|
2218
2218
|
const E = I.current, l = r.current;
|
|
2219
2219
|
if (!E || !l) return;
|
|
2220
2220
|
const v = E.getBoundingClientRect(), u = l.getBoundingClientRect();
|
|
2221
|
-
let H = n.x,
|
|
2222
|
-
H + v.width * 2 > u.right ? H = n.x - v.width : H - v.width < u.left && (H = n.x),
|
|
2221
|
+
let H = n.x, b = n.y;
|
|
2222
|
+
H + v.width * 2 > u.right ? H = n.x - v.width : H - v.width < u.left && (H = n.x), b + v.height * 2 > u.bottom && (b = n.y - v.height), c({ x: H, y: b });
|
|
2223
2223
|
})();
|
|
2224
2224
|
}, [n, r]), !i) return null;
|
|
2225
2225
|
const d = i.reduce((f, E) => f + E.y, 0);
|
|
@@ -2279,7 +2279,7 @@ const Cc = ({
|
|
|
2279
2279
|
onClickLegend: r
|
|
2280
2280
|
}) => {
|
|
2281
2281
|
const { isMobile: o } = zA(), { getCategoryName: I } = qA();
|
|
2282
|
-
return /* @__PURE__ */ e(
|
|
2282
|
+
return /* @__PURE__ */ e(P, { direction: "row", flexWrap: "wrap", gap: o ? 2 : 6, justifyContent: "start", sx: A, children: t.map(({ guid: a, top_level_guid: c }) => {
|
|
2283
2283
|
const d = i === a, f = st[a], E = st[c], l = f ?? E ?? st.default, v = l + "33";
|
|
2284
2284
|
return /* @__PURE__ */ s(
|
|
2285
2285
|
$,
|
|
@@ -2332,7 +2332,7 @@ const Cc = ({
|
|
|
2332
2332
|
hoveredAreaData: null,
|
|
2333
2333
|
isAreaHovered: !1,
|
|
2334
2334
|
cursorPos: { x: 0, y: 0 }
|
|
2335
|
-
}), { hoveredSeriesId: H, hoveredAreaData:
|
|
2335
|
+
}), { hoveredSeriesId: H, hoveredAreaData: b, isAreaHovered: p, cursorPos: y } = v, x = p && H && b, w = !x, D = [...r, ...o], j = D[0]?.dataset.length ?? 0, m = D.flatMap((J) => J.dataset.map((wA) => wA.x)), O = D.flatMap((J) => J.dataset.map((wA) => wA.y)), T = r[0]?.dataset?.map(
|
|
2336
2336
|
(J, wA) => r.reduce((VA, Ze) => VA + Ze.dataset[wA]?.y || 0, 0)
|
|
2337
2337
|
) ?? [0], tA = Math.max(...T), Y = Math.max(
|
|
2338
2338
|
...o.flatMap((J) => J.dataset.map((wA) => wA.y))
|
|
@@ -2391,7 +2391,7 @@ const Cc = ({
|
|
|
2391
2391
|
}), t?.(VA);
|
|
2392
2392
|
else if (Zi) {
|
|
2393
2393
|
const Vt = Ze?.data.map((Ji, _i) => ({
|
|
2394
|
-
x:
|
|
2394
|
+
x: m[_i],
|
|
2395
2395
|
y: Ji
|
|
2396
2396
|
})) ?? [];
|
|
2397
2397
|
u({
|
|
@@ -2440,7 +2440,7 @@ const Cc = ({
|
|
|
2440
2440
|
}, {})
|
|
2441
2441
|
};
|
|
2442
2442
|
return /* @__PURE__ */ e(L, { onMouseMove: Ke, ref: f, style: { position: "relative" }, children: /* @__PURE__ */ s(
|
|
2443
|
-
|
|
2443
|
+
P,
|
|
2444
2444
|
{
|
|
2445
2445
|
direction: { xs: "column", md: "column" },
|
|
2446
2446
|
spacing: { xs: 0, md: 4 },
|
|
@@ -2465,7 +2465,7 @@ const Cc = ({
|
|
|
2465
2465
|
Mc,
|
|
2466
2466
|
{
|
|
2467
2467
|
categoryGuids: WA(H),
|
|
2468
|
-
xData:
|
|
2468
|
+
xData: m,
|
|
2469
2469
|
...J
|
|
2470
2470
|
}
|
|
2471
2471
|
) : null
|
|
@@ -2477,10 +2477,10 @@ const Cc = ({
|
|
|
2477
2477
|
width: a,
|
|
2478
2478
|
xAxis: [
|
|
2479
2479
|
{
|
|
2480
|
-
data:
|
|
2480
|
+
data: m,
|
|
2481
2481
|
scaleType: "time",
|
|
2482
2482
|
valueFormatter: (J) => nA(J, AA.MONTH_SHORT_YEAR),
|
|
2483
|
-
tickNumber:
|
|
2483
|
+
tickNumber: j
|
|
2484
2484
|
// How many ticks to show on the x-axis
|
|
2485
2485
|
}
|
|
2486
2486
|
],
|
|
@@ -2508,7 +2508,7 @@ const Cc = ({
|
|
|
2508
2508
|
categoryGuids: WA(H),
|
|
2509
2509
|
chartContainerRef: f,
|
|
2510
2510
|
cursorPosition: y,
|
|
2511
|
-
hoveredAreaData:
|
|
2511
|
+
hoveredAreaData: b.map((J) => ({
|
|
2512
2512
|
...J,
|
|
2513
2513
|
x: nA(J.x, AA.MONTH_SHORT_YEAR)
|
|
2514
2514
|
}))
|
|
@@ -2520,7 +2520,7 @@ const Cc = ({
|
|
|
2520
2520
|
}, ti = ({ data: A, height: t = 8 }) => {
|
|
2521
2521
|
const i = `${t / 4}px`;
|
|
2522
2522
|
return /* @__PURE__ */ e(
|
|
2523
|
-
|
|
2523
|
+
P,
|
|
2524
2524
|
{
|
|
2525
2525
|
bgcolor: "grey.300",
|
|
2526
2526
|
borderRadius: i,
|
|
@@ -2608,7 +2608,7 @@ const Cc = ({
|
|
|
2608
2608
|
shouldShowShadow: n,
|
|
2609
2609
|
title: r
|
|
2610
2610
|
}) => /* @__PURE__ */ s(
|
|
2611
|
-
|
|
2611
|
+
P,
|
|
2612
2612
|
{
|
|
2613
2613
|
"aria-level": 1,
|
|
2614
2614
|
direction: "row",
|
|
@@ -2659,7 +2659,7 @@ const Cc = ({
|
|
|
2659
2659
|
shouldShowHeaderBorders: v = !0,
|
|
2660
2660
|
shouldShowHeaderShadow: u = !1,
|
|
2661
2661
|
title: H,
|
|
2662
|
-
...
|
|
2662
|
+
...b
|
|
2663
2663
|
}) => /* @__PURE__ */ e(
|
|
2664
2664
|
ca,
|
|
2665
2665
|
{
|
|
@@ -2675,8 +2675,8 @@ const Cc = ({
|
|
|
2675
2675
|
backgroundColor: "background.paper"
|
|
2676
2676
|
}
|
|
2677
2677
|
},
|
|
2678
|
-
...
|
|
2679
|
-
children: /* @__PURE__ */ s(
|
|
2678
|
+
...b,
|
|
2679
|
+
children: /* @__PURE__ */ s(P, { height: "100%", justifyContent: "space-between", children: [
|
|
2680
2680
|
/* @__PURE__ */ e(
|
|
2681
2681
|
Yc,
|
|
2682
2682
|
{
|
|
@@ -2712,7 +2712,7 @@ const Cc = ({
|
|
|
2712
2712
|
toolTipContent: o = "",
|
|
2713
2713
|
variant: I = "outlined"
|
|
2714
2714
|
}) => {
|
|
2715
|
-
const a = RA(), c = a.palette.mode === "dark", { isMobile: d } = zA(), [f, E] = h.useState(n), [l, v] = h.useState(i.dateRangePickerCopy.dateRangeThisMonth), [u, H] = h.useState(f), [
|
|
2715
|
+
const a = RA(), c = a.palette.mode === "dark", { isMobile: d } = zA(), [f, E] = h.useState(n), [l, v] = h.useState(i.dateRangePickerCopy.dateRangeThisMonth), [u, H] = h.useState(f), [b, p] = h.useState(!1), [y, x] = h.useState(!0), [w, D] = h.useState(6), j = {
|
|
2716
2716
|
buttons: [
|
|
2717
2717
|
{ label: "3M", value: 3 },
|
|
2718
2718
|
{ label: "6M", value: 6 },
|
|
@@ -2729,9 +2729,9 @@ const Cc = ({
|
|
|
2729
2729
|
h.useEffect(() => {
|
|
2730
2730
|
H(n);
|
|
2731
2731
|
}, [n]), h.useEffect(() => {
|
|
2732
|
-
(I === "timeframebuttons" || I === "timeframetabs") && A.onRangeChanged(
|
|
2732
|
+
(I === "timeframebuttons" || I === "timeframetabs") && A.onRangeChanged(m());
|
|
2733
2733
|
}, [w]);
|
|
2734
|
-
const
|
|
2734
|
+
const m = () => {
|
|
2735
2735
|
const Y = BA(zt());
|
|
2736
2736
|
return [BA(Ne(Y, w)), Y];
|
|
2737
2737
|
}, O = (Y) => {
|
|
@@ -2782,7 +2782,7 @@ const Cc = ({
|
|
|
2782
2782
|
[a.breakpoints.up("sm")]: { display: "inline-flex" }
|
|
2783
2783
|
},
|
|
2784
2784
|
children: [
|
|
2785
|
-
I === "readonly" && /* @__PURE__ */ s(
|
|
2785
|
+
I === "readonly" && /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
2786
2786
|
/* @__PURE__ */ e(q, { name: "calendar_month", size: 24 }),
|
|
2787
2787
|
/* @__PURE__ */ e(R, { bold: !0, children: nA(u[0], AA.MONTH_DAY) }),
|
|
2788
2788
|
/* @__PURE__ */ e(q, { name: "remove" }),
|
|
@@ -2851,7 +2851,7 @@ const Cc = ({
|
|
|
2851
2851
|
exclusive: !0,
|
|
2852
2852
|
orientation: "horizontal",
|
|
2853
2853
|
value: w,
|
|
2854
|
-
children:
|
|
2854
|
+
children: j.buttons.map((Y) => /* @__PURE__ */ e(
|
|
2855
2855
|
gn,
|
|
2856
2856
|
{
|
|
2857
2857
|
onClick: () => tA(Y.value),
|
|
@@ -2893,7 +2893,7 @@ const Cc = ({
|
|
|
2893
2893
|
textColor: "primary",
|
|
2894
2894
|
value: w,
|
|
2895
2895
|
variant: "fullWidth",
|
|
2896
|
-
children:
|
|
2896
|
+
children: j.tabs.map((Y) => /* @__PURE__ */ e(
|
|
2897
2897
|
GA,
|
|
2898
2898
|
{
|
|
2899
2899
|
label: /* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: Y.label }),
|
|
@@ -2907,11 +2907,11 @@ const Cc = ({
|
|
|
2907
2907
|
]
|
|
2908
2908
|
}
|
|
2909
2909
|
),
|
|
2910
|
-
|
|
2910
|
+
b && d && /* @__PURE__ */ e(
|
|
2911
2911
|
IA,
|
|
2912
2912
|
{
|
|
2913
2913
|
ariaLabelClose: i.dateRangeCloseAria,
|
|
2914
|
-
isOpen:
|
|
2914
|
+
isOpen: b,
|
|
2915
2915
|
onClose: () => p(!1),
|
|
2916
2916
|
onPrimaryAction: () => {
|
|
2917
2917
|
T(), p(!1);
|
|
@@ -2932,7 +2932,7 @@ const Cc = ({
|
|
|
2932
2932
|
)
|
|
2933
2933
|
}
|
|
2934
2934
|
),
|
|
2935
|
-
|
|
2935
|
+
b && !d && /* @__PURE__ */ e(
|
|
2936
2936
|
XA,
|
|
2937
2937
|
{
|
|
2938
2938
|
copy: { title: i.dateRangeEditTitle },
|
|
@@ -3153,8 +3153,8 @@ const pt = ({
|
|
|
3153
3153
|
sx: E = {},
|
|
3154
3154
|
title: l = ""
|
|
3155
3155
|
}) => {
|
|
3156
|
-
const [v, { height: u, width: H }] = oI(), { onEvent:
|
|
3157
|
-
c && (c(),
|
|
3156
|
+
const [v, { height: u, width: H }] = oI(), { onEvent: b } = K(), { isDesktop: p, isLargeDesktop: y, isMobile: x, isTablet: w } = zA(), { displayedDateRange: D, selectedAccountGuids: j, setSelectedAccountGuids: m } = pA(), { common: O } = X(), T = () => {
|
|
3157
|
+
c && (c(), b(V.WIDGET_BACK_CLICK));
|
|
3158
3158
|
}, tA = {
|
|
3159
3159
|
accountFilterOptionsCopy: {
|
|
3160
3160
|
accountTypeAccounts: O.account_filter.account_type_accounts,
|
|
@@ -3208,7 +3208,7 @@ const pt = ({
|
|
|
3208
3208
|
/* @__PURE__ */ e(
|
|
3209
3209
|
rt,
|
|
3210
3210
|
{
|
|
3211
|
-
action: /* @__PURE__ */ s(
|
|
3211
|
+
action: /* @__PURE__ */ s(P, { alignItems: "center", flexDirection: "row", children: [
|
|
3212
3212
|
p && i && /* @__PURE__ */ e(L, { sx: { flexGrow: 1 }, children: /* @__PURE__ */ e(
|
|
3213
3213
|
Dr,
|
|
3214
3214
|
{
|
|
@@ -3225,9 +3225,9 @@ const pt = ({
|
|
|
3225
3225
|
accounts: A,
|
|
3226
3226
|
copy: tA,
|
|
3227
3227
|
onFilterClick: (uA) => {
|
|
3228
|
-
|
|
3228
|
+
m(uA), d?.();
|
|
3229
3229
|
},
|
|
3230
|
-
selectedAccountGuids:
|
|
3230
|
+
selectedAccountGuids: j,
|
|
3231
3231
|
showAccountNumbers: !1,
|
|
3232
3232
|
variant: "text"
|
|
3233
3233
|
}
|
|
@@ -3266,7 +3266,7 @@ const pt = ({
|
|
|
3266
3266
|
p: p ? 48 : 24,
|
|
3267
3267
|
pb: 0
|
|
3268
3268
|
},
|
|
3269
|
-
title: p || w ? /* @__PURE__ */ e(it, { children: l }) : /* @__PURE__ */ s(
|
|
3269
|
+
title: p || w ? /* @__PURE__ */ e(it, { children: l }) : /* @__PURE__ */ s(P, { alignItems: "center", flexDirection: "row", children: [
|
|
3270
3270
|
x && c && /* @__PURE__ */ e(
|
|
3271
3271
|
NA,
|
|
3272
3272
|
{
|
|
@@ -3281,7 +3281,7 @@ const pt = ({
|
|
|
3281
3281
|
}
|
|
3282
3282
|
),
|
|
3283
3283
|
a && /* @__PURE__ */ e(G, { sx: { mt: p ? 48 : 24 } }),
|
|
3284
|
-
i && (x || w) && /* @__PURE__ */ s(
|
|
3284
|
+
i && (x || w) && /* @__PURE__ */ s(P, { gap: 24, justifyContent: "center", sx: { mt: 16 }, children: [
|
|
3285
3285
|
f && /* @__PURE__ */ e(G, {}),
|
|
3286
3286
|
/* @__PURE__ */ e(
|
|
3287
3287
|
Dr,
|
|
@@ -3308,7 +3308,7 @@ const pt = ({
|
|
|
3308
3308
|
position: "absolute",
|
|
3309
3309
|
width: "100%"
|
|
3310
3310
|
},
|
|
3311
|
-
children: /* @__PURE__ */ s(
|
|
3311
|
+
children: /* @__PURE__ */ s(P, { alignItems: "center", direction: "column", justifyContent: "center", sx: { height: "100%" }, children: [
|
|
3312
3312
|
A === ct.Loading && /* @__PURE__ */ e(Xn, { color: "primary", size: 48 }),
|
|
3313
3313
|
/* @__PURE__ */ e(
|
|
3314
3314
|
R,
|
|
@@ -3383,9 +3383,9 @@ const jr = "connect_widget", mr = "connections_widget", Fc = ({
|
|
|
3383
3383
|
setHasValidInput: f,
|
|
3384
3384
|
...E
|
|
3385
3385
|
}) => {
|
|
3386
|
-
const [l, v] = h.useState(""), { common: u } = X(), H = r || u.currency_input,
|
|
3386
|
+
const [l, v] = h.useState(""), { common: u } = X(), H = r || u.currency_input, b = KA(), p = Wc(b), y = /^[0-9]*$/, x = /^(\d)*(\,)?([0-9]{1,2})?$/, w = /^(\d)*(\.)?([0-9]{1,2})?$/;
|
|
3387
3387
|
let D;
|
|
3388
|
-
const
|
|
3388
|
+
const j = h.useRef(Fa());
|
|
3389
3389
|
if (A)
|
|
3390
3390
|
switch (_s()) {
|
|
3391
3391
|
case ui.CAD:
|
|
@@ -3398,9 +3398,9 @@ const jr = "connect_widget", mr = "connections_widget", Fc = ({
|
|
|
3398
3398
|
else
|
|
3399
3399
|
D = y;
|
|
3400
3400
|
h.useEffect(() => {
|
|
3401
|
-
|
|
3401
|
+
m(i);
|
|
3402
3402
|
}, [i]);
|
|
3403
|
-
const
|
|
3403
|
+
const m = (O) => {
|
|
3404
3404
|
!n && (O === "" || O === "." || O === ",") ? (v(""), f?.(!1)) : Number(O) < c ? (v(
|
|
3405
3405
|
z(
|
|
3406
3406
|
H.error_amount_must_be_equal_to,
|
|
@@ -3430,8 +3430,8 @@ const jr = "connect_widget", mr = "connections_widget", Fc = ({
|
|
|
3430
3430
|
pattern: "[0-9]*"
|
|
3431
3431
|
},
|
|
3432
3432
|
label: a,
|
|
3433
|
-
name: `currency-input-${
|
|
3434
|
-
onChange: (O) =>
|
|
3433
|
+
name: `currency-input-${j.current}`,
|
|
3434
|
+
onChange: (O) => m(O.target.value),
|
|
3435
3435
|
value: i,
|
|
3436
3436
|
...E
|
|
3437
3437
|
}
|
|
@@ -3442,7 +3442,7 @@ const jr = "connect_widget", mr = "connections_widget", Fc = ({
|
|
|
3442
3442
|
}
|
|
3443
3443
|
}), ee = ({ label: A = "", size: t = 32 }) => {
|
|
3444
3444
|
const i = KA();
|
|
3445
|
-
return /* @__PURE__ */ s(
|
|
3445
|
+
return /* @__PURE__ */ s(P, { alignItems: "center", gap: i.Spacing.XLarge, height: 450, justifyContent: "center", children: [
|
|
3446
3446
|
/* @__PURE__ */ e(Xn, { size: t }),
|
|
3447
3447
|
A && /* @__PURE__ */ e(R, { children: A })
|
|
3448
3448
|
] });
|
|
@@ -3572,7 +3572,7 @@ const jr = "connect_widget", mr = "connections_widget", Fc = ({
|
|
|
3572
3572
|
size: i,
|
|
3573
3573
|
sx: n
|
|
3574
3574
|
}) => /* @__PURE__ */ s(
|
|
3575
|
-
|
|
3575
|
+
P,
|
|
3576
3576
|
{
|
|
3577
3577
|
sx: {
|
|
3578
3578
|
display: "grid",
|
|
@@ -3623,7 +3623,7 @@ const jr = "connect_widget", mr = "connections_widget", Fc = ({
|
|
|
3623
3623
|
qt,
|
|
3624
3624
|
{
|
|
3625
3625
|
enterTouchDelay: 500,
|
|
3626
|
-
title: /* @__PURE__ */ s(
|
|
3626
|
+
title: /* @__PURE__ */ s(P, { gap: 2, p: 12, sx: { textOverflow: "none" }, children: [
|
|
3627
3627
|
/* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: i }),
|
|
3628
3628
|
/* @__PURE__ */ e(R, { sx: { whiteSpace: "unset" }, variant: "Small", children: A })
|
|
3629
3629
|
] }),
|
|
@@ -3660,7 +3660,7 @@ const jr = "connect_widget", mr = "connections_widget", Fc = ({
|
|
|
3660
3660
|
title: /* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: i })
|
|
3661
3661
|
}
|
|
3662
3662
|
),
|
|
3663
|
-
/* @__PURE__ */ e(Ce, { sx: { ":last-child": { pb: 4 }, ml: 28, py: 0 }, children: /* @__PURE__ */ s(
|
|
3663
|
+
/* @__PURE__ */ e(Ce, { sx: { ":last-child": { pb: 4 }, ml: 28, py: 0 }, children: /* @__PURE__ */ s(P, { alignItems: "flex-start", spacing: 2, children: [
|
|
3664
3664
|
/* @__PURE__ */ e(R, { color: "text.secondary", sx: { textWrap: "wrap" }, variant: "ParagraphSmall", children: A }),
|
|
3665
3665
|
/* @__PURE__ */ e(
|
|
3666
3666
|
$,
|
|
@@ -3710,7 +3710,7 @@ const jr = "connect_widget", mr = "connections_widget", Fc = ({
|
|
|
3710
3710
|
/* @__PURE__ */ e(
|
|
3711
3711
|
eA,
|
|
3712
3712
|
{
|
|
3713
|
-
primary: /* @__PURE__ */ s(
|
|
3713
|
+
primary: /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
3714
3714
|
/* @__PURE__ */ e(R, { variant: "Body", children: I }),
|
|
3715
3715
|
/* @__PURE__ */ e(
|
|
3716
3716
|
R,
|
|
@@ -3796,7 +3796,7 @@ const jr = "connect_widget", mr = "connections_widget", Fc = ({
|
|
|
3796
3796
|
pl: 0
|
|
3797
3797
|
},
|
|
3798
3798
|
children: [
|
|
3799
|
-
/* @__PURE__ */ e(eA, { primaryTypographyProps: { fontWeight: 400 }, children: /* @__PURE__ */ e(
|
|
3799
|
+
/* @__PURE__ */ e(eA, { primaryTypographyProps: { fontWeight: 400 }, children: /* @__PURE__ */ e(P, { alignItems: "center", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ s(P, { children: [
|
|
3800
3800
|
/* @__PURE__ */ e(R, { variant: "Body", children: r }),
|
|
3801
3801
|
/* @__PURE__ */ e(R, { color: "text.secondary", variant: "XSmall", children: o })
|
|
3802
3802
|
] }) }) }),
|
|
@@ -4210,18 +4210,18 @@ const Nt = () => {
|
|
|
4210
4210
|
}, [n, o]), h.useEffect(() => {
|
|
4211
4211
|
u && E(u), v(H);
|
|
4212
4212
|
}, [u, H]);
|
|
4213
|
-
const
|
|
4213
|
+
const b = h.useMemo(
|
|
4214
4214
|
() => n.filter((w) => o.includes(w.guid)).reduce((w, D) => w + (D?.balance || 0), 0),
|
|
4215
4215
|
[o, H]
|
|
4216
4216
|
), p = h.useMemo(
|
|
4217
4217
|
() => d.filter((w) => o.includes(w.accountGuid || "")).reduce((w, D) => w + D.amount, 0),
|
|
4218
4218
|
[o, d]
|
|
4219
4219
|
), y = h.useMemo(
|
|
4220
|
-
() =>
|
|
4221
|
-
[
|
|
4220
|
+
() => b - p,
|
|
4221
|
+
[b, p]
|
|
4222
4222
|
), x = a?.has_completed_cash_flow_onboarding && !!A;
|
|
4223
4223
|
return /* @__PURE__ */ e(L, { className: "mx-cashflow", pl: 16, pr: 16, pt: 16, children: i > 610 ? /* @__PURE__ */ s(
|
|
4224
|
-
|
|
4224
|
+
P,
|
|
4225
4225
|
{
|
|
4226
4226
|
border: `1px solid ${t.palette.border.light}`,
|
|
4227
4227
|
borderRadius: 1,
|
|
@@ -4229,27 +4229,27 @@ const Nt = () => {
|
|
|
4229
4229
|
justifyContent: "space-between",
|
|
4230
4230
|
px: 24,
|
|
4231
4231
|
children: [
|
|
4232
|
-
/* @__PURE__ */ s(
|
|
4233
|
-
/* @__PURE__ */ e(OA, { amount:
|
|
4232
|
+
/* @__PURE__ */ s(P, { pb: 14, pt: 12, children: [
|
|
4233
|
+
/* @__PURE__ */ e(OA, { amount: b, variant: "H2" }),
|
|
4234
4234
|
/* @__PURE__ */ e(HA, { variant: "XSmall", whiteSpace: "nowrap", children: z(
|
|
4235
4235
|
I.total_cash_accounts,
|
|
4236
4236
|
f.length
|
|
4237
4237
|
) })
|
|
4238
4238
|
] }),
|
|
4239
|
-
/* @__PURE__ */ e(
|
|
4240
|
-
/* @__PURE__ */ s(
|
|
4239
|
+
/* @__PURE__ */ e(P, { pt: 18, children: /* @__PURE__ */ e(q, { name: "remove" }) }),
|
|
4240
|
+
/* @__PURE__ */ s(P, { pb: 14, pt: 12, children: [
|
|
4241
4241
|
/* @__PURE__ */ e(OA, { amount: p, variant: "H2" }),
|
|
4242
4242
|
/* @__PURE__ */ e(HA, { variant: "XSmall", whiteSpace: "nowrap", children: z(I.expenses_due, d.length) })
|
|
4243
4243
|
] }),
|
|
4244
|
-
/* @__PURE__ */ e(
|
|
4245
|
-
/* @__PURE__ */ s(
|
|
4244
|
+
/* @__PURE__ */ e(P, { pt: 18, children: /* @__PURE__ */ e(q, { name: "equals" }) }),
|
|
4245
|
+
/* @__PURE__ */ s(P, { pb: 14, pr: 24, pt: 12, children: [
|
|
4246
4246
|
/* @__PURE__ */ e(OA, { amount: y, variant: "H2" }),
|
|
4247
|
-
/* @__PURE__ */ s(
|
|
4247
|
+
/* @__PURE__ */ s(P, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
4248
4248
|
/* @__PURE__ */ e(HA, { variant: "XSmall", whiteSpace: "nowrap", children: I.available_to_spend }),
|
|
4249
4249
|
/* @__PURE__ */ e(Ci, { body: I.tooltip_body, title: I.tooltip_title })
|
|
4250
4250
|
] })
|
|
4251
4251
|
] }),
|
|
4252
|
-
/* @__PURE__ */ e(
|
|
4252
|
+
/* @__PURE__ */ e(P, { borderLeft: `1px solid ${t.palette.border.light}`, pb: 12, pl: 24, pt: 12, children: x ? /* @__PURE__ */ s(Z, { children: [
|
|
4253
4253
|
/* @__PURE__ */ e(R, { variant: "H2", children: z(I.days, c) }),
|
|
4254
4254
|
/* @__PURE__ */ e(HA, { variant: "XSmall", whiteSpace: "nowrap", children: I.next_paycheck })
|
|
4255
4255
|
] }) : /* @__PURE__ */ e(
|
|
@@ -4263,8 +4263,8 @@ const Nt = () => {
|
|
|
4263
4263
|
) })
|
|
4264
4264
|
]
|
|
4265
4265
|
}
|
|
4266
|
-
) : /* @__PURE__ */ s(
|
|
4267
|
-
/* @__PURE__ */ s(
|
|
4266
|
+
) : /* @__PURE__ */ s(P, { border: `1px solid ${t.palette.border.light}`, borderRadius: 1, children: [
|
|
4267
|
+
/* @__PURE__ */ s(P, { direction: "row", justifyContent: "space-between", p: 16, children: [
|
|
4268
4268
|
/* @__PURE__ */ e(R, { variant: "Small", children: z(
|
|
4269
4269
|
I.total_cash_accounts,
|
|
4270
4270
|
f.length
|
|
@@ -4272,13 +4272,13 @@ const Nt = () => {
|
|
|
4272
4272
|
/* @__PURE__ */ e(OA, { amount: r, bold: !0, variant: "XSmall" })
|
|
4273
4273
|
] }),
|
|
4274
4274
|
/* @__PURE__ */ e(G, {}),
|
|
4275
|
-
/* @__PURE__ */ s(
|
|
4275
|
+
/* @__PURE__ */ s(P, { direction: "row", justifyContent: "space-between", p: 16, children: [
|
|
4276
4276
|
/* @__PURE__ */ e(R, { variant: "Small", children: z(I.expenses_due, d.length) }),
|
|
4277
4277
|
/* @__PURE__ */ e(OA, { amount: p, bold: !0, symbol: "-", variant: "XSmall" })
|
|
4278
4278
|
] }),
|
|
4279
4279
|
/* @__PURE__ */ e(G, {}),
|
|
4280
4280
|
/* @__PURE__ */ e(
|
|
4281
|
-
|
|
4281
|
+
P,
|
|
4282
4282
|
{
|
|
4283
4283
|
alignItems: "center",
|
|
4284
4284
|
bgcolor: "background.default",
|
|
@@ -4292,11 +4292,11 @@ const Nt = () => {
|
|
|
4292
4292
|
}
|
|
4293
4293
|
),
|
|
4294
4294
|
/* @__PURE__ */ e(G, {}),
|
|
4295
|
-
x ? /* @__PURE__ */ s(
|
|
4295
|
+
x ? /* @__PURE__ */ s(P, { direction: "row", justifyContent: "space-between", p: 16, children: [
|
|
4296
4296
|
/* @__PURE__ */ e(R, { variant: "Small", children: I.next_paycheck }),
|
|
4297
4297
|
/* @__PURE__ */ e(R, { bold: !0, variant: "XSmall", children: z(I.days, c) })
|
|
4298
4298
|
] }) : /* @__PURE__ */ s(
|
|
4299
|
-
|
|
4299
|
+
P,
|
|
4300
4300
|
{
|
|
4301
4301
|
alignItems: "center",
|
|
4302
4302
|
direction: "row",
|
|
@@ -5108,8 +5108,8 @@ const Pe = () => {
|
|
|
5108
5108
|
eA,
|
|
5109
5109
|
{
|
|
5110
5110
|
disableTypography: !0,
|
|
5111
|
-
secondary: /* @__PURE__ */ s(
|
|
5112
|
-
/* @__PURE__ */ s(
|
|
5111
|
+
secondary: /* @__PURE__ */ s(P, { direction: "row", justifyContent: "space-between", children: [
|
|
5112
|
+
/* @__PURE__ */ s(P, { alignItems: "center", direction: "row", gap: 4, children: [
|
|
5113
5113
|
A.is_flagged && /* @__PURE__ */ e(q, { fill: !0, name: "flag", size: 16, sx: { color: "warning.dark" } }),
|
|
5114
5114
|
A.is_hidden && /* @__PURE__ */ e(q, { name: "visibility_off", size: 16 }),
|
|
5115
5115
|
A.has_been_split && /* @__PURE__ */ e(q, { name: "call_split", size: 16 }),
|
|
@@ -5117,7 +5117,7 @@ const Pe = () => {
|
|
|
5117
5117
|
] }),
|
|
5118
5118
|
I && r && /* @__PURE__ */ e(R, { bold: !0, color: "action.active", variant: "XSmall", children: I.short_title })
|
|
5119
5119
|
] }),
|
|
5120
|
-
children: /* @__PURE__ */ s(
|
|
5120
|
+
children: /* @__PURE__ */ s(P, { direction: "row", justifyContent: "space-between", sx: { gap: 8 }, children: [
|
|
5121
5121
|
/* @__PURE__ */ s(R, { bold: !0, variant: "Body", children: [
|
|
5122
5122
|
A.is_hidden && n.hide_trnx_cancel_hidden_note,
|
|
5123
5123
|
A.payee || A.description || A.feed_description
|
|
@@ -5146,7 +5146,7 @@ const Pe = () => {
|
|
|
5146
5146
|
children: t
|
|
5147
5147
|
}) => /* @__PURE__ */ e(L, { display: "inline-block", pb: 4, pl: 24, pt: 4, sx: { bgcolor: A, width: "100%" }, children: /* @__PURE__ */ e(R, { bold: !0, variant: "XSmall", children: t }) }), xf = ({ showIcon: A = !0, showSubtitle: t = !0 }) => {
|
|
5148
5148
|
const i = KA(), { transactions: n } = X();
|
|
5149
|
-
return /* @__PURE__ */ s(
|
|
5149
|
+
return /* @__PURE__ */ s(P, { alignItems: "center", gap: i.Spacing.Small, height: "auto", mt: i.Spacing.Large, children: [
|
|
5150
5150
|
A && /* @__PURE__ */ e(bs, { color: "secondary", sx: { fontSize: 32 } }),
|
|
5151
5151
|
/* @__PURE__ */ e(R, { bold: !0, color: "secondary", variant: "Small", children: n.zero_state_no_transactions }),
|
|
5152
5152
|
t && /* @__PURE__ */ e(R, { color: "secondary", variant: "XSmall", children: n.zero_state_there_are_no_transactions })
|
|
@@ -5162,57 +5162,57 @@ const Pe = () => {
|
|
|
5162
5162
|
height: t = "calc(100dvh - 36px)",
|
|
5163
5163
|
loader: i = /* @__PURE__ */ e(ee, { label: "Loading", size: 40 }),
|
|
5164
5164
|
onClick: n,
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5165
|
+
showClosedAccounts: r = !1,
|
|
5166
|
+
showInsights: o = !1,
|
|
5167
|
+
showLoader: I = !1,
|
|
5168
|
+
width: a = "100%",
|
|
5169
|
+
zeroState: c = /* @__PURE__ */ e(Df, {})
|
|
5169
5170
|
}) => {
|
|
5170
|
-
const { isLoading:
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5171
|
+
const { isLoading: d, sortedTransactions: f } = PA(), E = [...f.filter((y) => !y.accountIsClosed)];
|
|
5172
|
+
console.log(r, [...E]);
|
|
5173
|
+
const { setShowInsights: l, toggleSplit: v } = Pe(), { onEvent: u } = K(), H = (y) => {
|
|
5174
|
+
const x = [...E].find((w) => w.guid === y);
|
|
5175
|
+
if (x?.has_been_split) {
|
|
5176
|
+
v(x.guid);
|
|
5174
5177
|
return;
|
|
5175
5178
|
}
|
|
5176
|
-
|
|
5177
|
-
account_guid:
|
|
5178
|
-
transaction_guid:
|
|
5179
|
-
}), n?.(
|
|
5180
|
-
},
|
|
5181
|
-
count:
|
|
5182
|
-
getScrollElement: () =>
|
|
5183
|
-
estimateSize: (
|
|
5179
|
+
u(V.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
|
|
5180
|
+
account_guid: x?.account_guid,
|
|
5181
|
+
transaction_guid: y
|
|
5182
|
+
}), n?.(y);
|
|
5183
|
+
}, b = h.useRef(null), p = mo({
|
|
5184
|
+
count: [...E].length,
|
|
5185
|
+
getScrollElement: () => b.current,
|
|
5186
|
+
estimateSize: (y) => Tr + (Nr(y, [...E]) ? Yr : 0),
|
|
5184
5187
|
overscan: 5
|
|
5185
5188
|
});
|
|
5186
|
-
return h.useEffect(() =>
|
|
5189
|
+
return h.useEffect(() => p.measure(), [E]), h.useEffect(() => l(o), [o]), /* @__PURE__ */ e(rA, { children: /* @__PURE__ */ e(L, { height: t, overflow: "auto", ref: b, width: a, children: /* @__PURE__ */ s(
|
|
5187
5190
|
L,
|
|
5188
5191
|
{
|
|
5189
|
-
height: (
|
|
5190
|
-
// set the height to auto when there are no transactions so the zero state isn't set to 0
|
|
5191
|
-
H.getVirtualItems().length === 0 ? "auto" : H.getTotalSize()
|
|
5192
|
-
),
|
|
5192
|
+
height: p.getVirtualItems().length === 0 ? "auto" : p.getTotalSize(),
|
|
5193
5193
|
position: "relative",
|
|
5194
5194
|
width: "100%",
|
|
5195
5195
|
children: [
|
|
5196
|
-
(
|
|
5197
|
-
!
|
|
5198
|
-
!
|
|
5199
|
-
const
|
|
5196
|
+
(d || I) && i,
|
|
5197
|
+
!d && !I && p.getVirtualItems().length === 0 && c,
|
|
5198
|
+
!d && !I && p.getVirtualItems().length > 0 && p.getVirtualItems().map((y) => {
|
|
5199
|
+
const x = [...E][y.index], w = Nr(y.index, [...E]), D = jf(y.index, [...E]), j = Tr + (w ? Yr : 0);
|
|
5200
5200
|
return /* @__PURE__ */ s(
|
|
5201
5201
|
L,
|
|
5202
5202
|
{
|
|
5203
5203
|
sx: {
|
|
5204
|
-
height:
|
|
5204
|
+
height: j,
|
|
5205
5205
|
position: "absolute",
|
|
5206
|
-
transform: `translateY(${
|
|
5206
|
+
transform: `translateY(${y.start}px)`,
|
|
5207
5207
|
width: "100%"
|
|
5208
5208
|
},
|
|
5209
5209
|
children: [
|
|
5210
|
-
|
|
5211
|
-
/* @__PURE__ */ e(Bn, { onClick:
|
|
5212
|
-
/* @__PURE__ */ e(G, { sx: { ml:
|
|
5210
|
+
w && /* @__PURE__ */ e(Sn, { bgcolor: A, children: Mi(x.date) }),
|
|
5211
|
+
/* @__PURE__ */ e(Bn, { onClick: H, transaction: x }),
|
|
5212
|
+
/* @__PURE__ */ e(G, { sx: { ml: D ? 24 : 0 } })
|
|
5213
5213
|
]
|
|
5214
5214
|
},
|
|
5215
|
-
|
|
5215
|
+
x.guid
|
|
5216
5216
|
);
|
|
5217
5217
|
})
|
|
5218
5218
|
]
|
|
@@ -5223,7 +5223,7 @@ const Pe = () => {
|
|
|
5223
5223
|
A.row.number && ` | ${A.row.number}`
|
|
5224
5224
|
] }), Lf = (A) => {
|
|
5225
5225
|
const { associatedBeats: t } = PA(), { showInsights: i } = Pe(), { amount: n, transaction_type: r } = A.row, o = t.find((a) => a.associated_transaction_guid === A.row.guid), I = r === se.CREDIT;
|
|
5226
|
-
return /* @__PURE__ */ s(
|
|
5226
|
+
return /* @__PURE__ */ s(P, { alignItems: "flex-end", tabIndex: A.tabIndex, children: [
|
|
5227
5227
|
/* @__PURE__ */ s(R, { color: I ? "success.main" : "text.primary", variant: "Small", children: [
|
|
5228
5228
|
I ? "+" : "",
|
|
5229
5229
|
M(n, "0,0.00")
|
|
@@ -5233,7 +5233,7 @@ const Pe = () => {
|
|
|
5233
5233
|
}, Qf = (A) => {
|
|
5234
5234
|
const { transactions: t } = X(), [i, n] = h.useState(!1);
|
|
5235
5235
|
return /* @__PURE__ */ s(
|
|
5236
|
-
|
|
5236
|
+
P,
|
|
5237
5237
|
{
|
|
5238
5238
|
alignItems: "center",
|
|
5239
5239
|
direction: "row",
|
|
@@ -5277,7 +5277,7 @@ const Pe = () => {
|
|
|
5277
5277
|
]
|
|
5278
5278
|
}
|
|
5279
5279
|
);
|
|
5280
|
-
}, Nf = C(Mf), St = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", children: A.colDef.headerName }), Tf = (A) => /* @__PURE__ */ s(
|
|
5280
|
+
}, Nf = C(Mf), St = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", children: A.colDef.headerName }), Tf = (A) => /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
5281
5281
|
/* @__PURE__ */ e(
|
|
5282
5282
|
vt,
|
|
5283
5283
|
{
|
|
@@ -5513,7 +5513,7 @@ const Bf = ({
|
|
|
5513
5513
|
showSelected: I,
|
|
5514
5514
|
unselectable: a,
|
|
5515
5515
|
unselectableText: c
|
|
5516
|
-
} = ot(), { categories: d } = X(), { onEvent: f } = K(), [E, l] = h.useState(!1), [v, u] = h.useState(!1), H = !!t.revision,
|
|
5516
|
+
} = ot(), { categories: d } = X(), { onEvent: f } = K(), [E, l] = h.useState(!1), [v, u] = h.useState(!1), H = !!t.revision, b = t.guid === n, p = !a.some((x) => x === t.guid);
|
|
5517
5517
|
return /* @__PURE__ */ s(
|
|
5518
5518
|
W,
|
|
5519
5519
|
{
|
|
@@ -5525,7 +5525,7 @@ const Bf = ({
|
|
|
5525
5525
|
/* @__PURE__ */ s(
|
|
5526
5526
|
aA,
|
|
5527
5527
|
{
|
|
5528
|
-
"aria-pressed":
|
|
5528
|
+
"aria-pressed": b,
|
|
5529
5529
|
color: "secondary",
|
|
5530
5530
|
onClick: () => {
|
|
5531
5531
|
p && (r(t.guid), i(t.guid), f(je.ON_CATEGORY_SELECTED));
|
|
@@ -5539,7 +5539,7 @@ const Bf = ({
|
|
|
5539
5539
|
primaryTypographyProps: { fontWeight: "normal", variant: "Body" }
|
|
5540
5540
|
}
|
|
5541
5541
|
),
|
|
5542
|
-
I &&
|
|
5542
|
+
I && b && /* @__PURE__ */ e(Oi, { fontSize: "small" }),
|
|
5543
5543
|
!p && /* @__PURE__ */ e(Xs, { label: c })
|
|
5544
5544
|
]
|
|
5545
5545
|
}
|
|
@@ -5698,7 +5698,7 @@ const Bf = ({
|
|
|
5698
5698
|
{
|
|
5699
5699
|
ariaLabel: c.search_aria,
|
|
5700
5700
|
cancelAriaLabel: c.cancel_search_aria,
|
|
5701
|
-
onChange: (
|
|
5701
|
+
onChange: (b) => E(b),
|
|
5702
5702
|
placeholder: c.search_placeholder,
|
|
5703
5703
|
searchValue: d
|
|
5704
5704
|
}
|
|
@@ -5926,26 +5926,26 @@ class cd {
|
|
|
5926
5926
|
getCategoryName = (t) => this.categories.find((n) => n.guid === t)?.name ?? qi[t];
|
|
5927
5927
|
}
|
|
5928
5928
|
const EI = ({ transaction: A }) => {
|
|
5929
|
-
const { addOrUpdateTransactionRule: t, updateTransaction: i } = PA(), { categories: n } = qA(), { onEvent: r } = K(), { setShouldDisableDrawerScroll: o, updateManualTransaction: I } = Pe(), { transactions: a } = X(), [c, d] = h.useState(!1), [f, E] = h.useState(""), l = async (
|
|
5930
|
-
await i({ ...A, category_guid: f }),
|
|
5929
|
+
const { addOrUpdateTransactionRule: t, updateTransaction: i } = PA(), { categories: n } = qA(), { onEvent: r } = K(), { setShouldDisableDrawerScroll: o, updateManualTransaction: I } = Pe(), { transactions: a } = X(), [c, d] = h.useState(!1), [f, E] = h.useState(""), l = async (b) => {
|
|
5930
|
+
await i({ ...A, category_guid: f }), b && await t(f, A), E(""), r(V.TRANSACTION_DETAILS_CLICK_CATEGORY, {
|
|
5931
5931
|
transaction_guid: A.guid
|
|
5932
5932
|
});
|
|
5933
|
-
}, v = (
|
|
5933
|
+
}, v = (b) => {
|
|
5934
5934
|
if (A.is_manual && !A.guid) {
|
|
5935
|
-
const p = n.find((y) => y.guid ===
|
|
5935
|
+
const p = n.find((y) => y.guid === b);
|
|
5936
5936
|
I({
|
|
5937
5937
|
...A,
|
|
5938
5938
|
category: p?.name,
|
|
5939
|
-
category_guid:
|
|
5940
|
-
top_level_category_guid: p?.parent_guid ||
|
|
5939
|
+
category_guid: b,
|
|
5940
|
+
top_level_category_guid: p?.parent_guid || b
|
|
5941
5941
|
});
|
|
5942
5942
|
} else
|
|
5943
|
-
E(
|
|
5943
|
+
E(b);
|
|
5944
5944
|
u();
|
|
5945
5945
|
}, u = () => {
|
|
5946
5946
|
d(!1), o(!1);
|
|
5947
5947
|
}, H = h.useMemo(
|
|
5948
|
-
() => n.find((
|
|
5948
|
+
() => n.find((b) => b.guid === f),
|
|
5949
5949
|
[f]
|
|
5950
5950
|
);
|
|
5951
5951
|
return /* @__PURE__ */ s(h.Fragment, { children: [
|
|
@@ -6051,7 +6051,7 @@ const EI = ({ transaction: A }) => {
|
|
|
6051
6051
|
primaryText: o.save_button,
|
|
6052
6052
|
secondaryText: o.cancel_button,
|
|
6053
6053
|
title: I.date_edit_title,
|
|
6054
|
-
children: /* @__PURE__ */ e(
|
|
6054
|
+
children: /* @__PURE__ */ e(P, { alignItems: "center", mt: t.Spacing.XXLarge, children: /* @__PURE__ */ e(
|
|
6055
6055
|
Cc,
|
|
6056
6056
|
{
|
|
6057
6057
|
beginDate: yA(d),
|
|
@@ -6219,7 +6219,7 @@ const EI = ({ transaction: A }) => {
|
|
|
6219
6219
|
] });
|
|
6220
6220
|
}, vd = C(ld), lI = ({ transaction: A }) => {
|
|
6221
6221
|
const { amount: t, description: i, isIncome: n, merchant_guid: r, payee: o, top_level_category_guid: I } = A;
|
|
6222
|
-
return /* @__PURE__ */ s(
|
|
6222
|
+
return /* @__PURE__ */ s(P, { className: "mx-txn-amount-header", direction: "row", gap: 12, px: 16, py: 24, children: [
|
|
6223
6223
|
/* @__PURE__ */ e(
|
|
6224
6224
|
vt,
|
|
6225
6225
|
{
|
|
@@ -6228,7 +6228,7 @@ const EI = ({ transaction: A }) => {
|
|
|
6228
6228
|
size: 64
|
|
6229
6229
|
}
|
|
6230
6230
|
),
|
|
6231
|
-
/* @__PURE__ */ s(
|
|
6231
|
+
/* @__PURE__ */ s(P, { overflow: "hidden'", children: [
|
|
6232
6232
|
/* @__PURE__ */ e(R, { bold: !0, mb: 4, truncate: !0, variant: "Body", children: i || o }),
|
|
6233
6233
|
/* @__PURE__ */ s(it, { color: n ? "success.main" : "text.primary", truncate: !0, children: [
|
|
6234
6234
|
n ? "+" : "",
|
|
@@ -6325,7 +6325,7 @@ const EI = ({ transaction: A }) => {
|
|
|
6325
6325
|
px: o.Spacing.XSmall,
|
|
6326
6326
|
children: [
|
|
6327
6327
|
/* @__PURE__ */ s(YA, { alignItems: l ? "center" : "start", container: !0, children: [
|
|
6328
|
-
/* @__PURE__ */ e(YA, { item: !0, xs: 7, children: /* @__PURE__ */ s(
|
|
6328
|
+
/* @__PURE__ */ e(YA, { item: !0, xs: 7, children: /* @__PURE__ */ s(P, { alignItems: "start", children: [
|
|
6329
6329
|
/* @__PURE__ */ e(
|
|
6330
6330
|
$,
|
|
6331
6331
|
{
|
|
@@ -6337,7 +6337,7 @@ const EI = ({ transaction: A }) => {
|
|
|
6337
6337
|
}
|
|
6338
6338
|
),
|
|
6339
6339
|
/* @__PURE__ */ e(L, { children: !r.category_guid && /* @__PURE__ */ s(
|
|
6340
|
-
|
|
6340
|
+
P,
|
|
6341
6341
|
{
|
|
6342
6342
|
color: "error.main",
|
|
6343
6343
|
direction: "row",
|
|
@@ -6350,8 +6350,8 @@ const EI = ({ transaction: A }) => {
|
|
|
6350
6350
|
}
|
|
6351
6351
|
) })
|
|
6352
6352
|
] }) }),
|
|
6353
|
-
/* @__PURE__ */ e(YA, { item: !0, xs: 5, children: l ? /* @__PURE__ */ e("div", { className: "mx-txn-split-manager-row-top-container", children: /* @__PURE__ */ e(R, { children: M(r.amount, "0,0.00") }) }) : /* @__PURE__ */ s(
|
|
6354
|
-
/* @__PURE__ */ s(
|
|
6353
|
+
/* @__PURE__ */ e(YA, { item: !0, xs: 5, children: l ? /* @__PURE__ */ e("div", { className: "mx-txn-split-manager-row-top-container", children: /* @__PURE__ */ e(R, { children: M(r.amount, "0,0.00") }) }) : /* @__PURE__ */ s(P, { alignItems: "start", children: [
|
|
6354
|
+
/* @__PURE__ */ s(P, { alignItems: "start", direction: "row", gap: o.Spacing.XSmall, children: [
|
|
6355
6355
|
/* @__PURE__ */ e(
|
|
6356
6356
|
qe,
|
|
6357
6357
|
{
|
|
@@ -6378,7 +6378,7 @@ const EI = ({ transaction: A }) => {
|
|
|
6378
6378
|
)
|
|
6379
6379
|
] }),
|
|
6380
6380
|
!c && /* @__PURE__ */ s(
|
|
6381
|
-
|
|
6381
|
+
P,
|
|
6382
6382
|
{
|
|
6383
6383
|
color: "error.main",
|
|
6384
6384
|
direction: "row",
|
|
@@ -6436,7 +6436,7 @@ const EI = ({ transaction: A }) => {
|
|
|
6436
6436
|
l
|
|
6437
6437
|
)),
|
|
6438
6438
|
d && /* @__PURE__ */ s(
|
|
6439
|
-
|
|
6439
|
+
P,
|
|
6440
6440
|
{
|
|
6441
6441
|
color: "error.main",
|
|
6442
6442
|
direction: "row",
|
|
@@ -6475,7 +6475,7 @@ const EI = ({ transaction: A }) => {
|
|
|
6475
6475
|
has_been_split: !1,
|
|
6476
6476
|
parent_guid: A.guid,
|
|
6477
6477
|
top_level_category_guid: void 0
|
|
6478
|
-
}, [f, E] = h.useState(!1), [l, v] = h.useState(!1), [u, H] = h.useState([]),
|
|
6478
|
+
}, [f, E] = h.useState(!1), [l, v] = h.useState(!1), [u, H] = h.useState([]), b = () => {
|
|
6479
6479
|
const T = [...u];
|
|
6480
6480
|
T.push({ ...d }), T[0].amount -= 1, H(T);
|
|
6481
6481
|
}, p = (T) => {
|
|
@@ -6507,9 +6507,9 @@ const EI = ({ transaction: A }) => {
|
|
|
6507
6507
|
}), E(!0);
|
|
6508
6508
|
}, D = async () => {
|
|
6509
6509
|
t(S.ON_TRANSACTION_SPLIT_SAVE_CLICK), await i({ ...A, has_been_split: !0 }, u), E(!1);
|
|
6510
|
-
}, m = async () => {
|
|
6511
|
-
t(S.ON_TRANSACTION_SPLIT_CANCEL_CLICK), H([{ ...c }, { ...d }]), E(!1);
|
|
6512
6510
|
}, j = async () => {
|
|
6511
|
+
t(S.ON_TRANSACTION_SPLIT_CANCEL_CLICK), H([{ ...c }, { ...d }]), E(!1);
|
|
6512
|
+
}, m = async () => {
|
|
6513
6513
|
t(V.TRANSACTION_DETAILS_CLICK_UNSPLIT, {
|
|
6514
6514
|
transaction_guid: A.guid
|
|
6515
6515
|
});
|
|
@@ -6537,7 +6537,7 @@ const EI = ({ transaction: A }) => {
|
|
|
6537
6537
|
ariaLabelClose: r.close_aria,
|
|
6538
6538
|
isOpen: f,
|
|
6539
6539
|
isPrimaryDisabled: O,
|
|
6540
|
-
onClose:
|
|
6540
|
+
onClose: j,
|
|
6541
6541
|
onPrimaryAction: D,
|
|
6542
6542
|
primaryText: r.save_button,
|
|
6543
6543
|
secondaryText: r.cancel_button,
|
|
@@ -6547,7 +6547,7 @@ const EI = ({ transaction: A }) => {
|
|
|
6547
6547
|
/* @__PURE__ */ e(
|
|
6548
6548
|
Hd,
|
|
6549
6549
|
{
|
|
6550
|
-
onAddSplit:
|
|
6550
|
+
onAddSplit: b,
|
|
6551
6551
|
onCategoryChanged: x,
|
|
6552
6552
|
onDeleteSplit: p,
|
|
6553
6553
|
onUpdateAmount: y,
|
|
@@ -6566,7 +6566,7 @@ const EI = ({ transaction: A }) => {
|
|
|
6566
6566
|
onClose: () => {
|
|
6567
6567
|
I(!1), v(!1);
|
|
6568
6568
|
},
|
|
6569
|
-
onPrimaryAction:
|
|
6569
|
+
onPrimaryAction: m,
|
|
6570
6570
|
onSecondaryAction: () => {
|
|
6571
6571
|
t(S.ON_TRANSACTION_UNSPLIT_CANCEL);
|
|
6572
6572
|
},
|
|
@@ -6595,7 +6595,7 @@ const EI = ({ transaction: A }) => {
|
|
|
6595
6595
|
d(I.length > 40 ? n.tags_error_name_must_be_40_chars : "");
|
|
6596
6596
|
}, [I]), /* @__PURE__ */ s(L, { className: "mx-txn-tag-manager-header", children: [
|
|
6597
6597
|
/* @__PURE__ */ s(
|
|
6598
|
-
|
|
6598
|
+
P,
|
|
6599
6599
|
{
|
|
6600
6600
|
alignItems: "center",
|
|
6601
6601
|
bgcolor: A.palette.background.default,
|
|
@@ -6667,7 +6667,7 @@ const EI = ({ transaction: A }) => {
|
|
|
6667
6667
|
}
|
|
6668
6668
|
) });
|
|
6669
6669
|
}, wd = C(pd), yd = ({ onTagChecked: A, selectedTags: t, tag: i }) => {
|
|
6670
|
-
const { onEvent: n } = K(), { removeTag: r, updateTag: o } = PA(), { common: I, transactions: a } = X(), [c, d] = h.useState(!1), [f, E] = h.useState(!1), [l, v] = h.useState(""), [u, H] = h.useState(""),
|
|
6670
|
+
const { onEvent: n } = K(), { removeTag: r, updateTag: o } = PA(), { common: I, transactions: a } = X(), [c, d] = h.useState(!1), [f, E] = h.useState(!1), [l, v] = h.useState(""), [u, H] = h.useState(""), b = async () => {
|
|
6671
6671
|
n(S.ON_TRANSACTION_TAGS_TAG_EDIT_SAVED), i && await o({ ...i, name: l }), d(!1);
|
|
6672
6672
|
}, p = async () => {
|
|
6673
6673
|
n(S.ON_TRANSACTION_TAGS_TAG_DELETED), await r(i.guid), E(!1);
|
|
@@ -6686,7 +6686,7 @@ const EI = ({ transaction: A }) => {
|
|
|
6686
6686
|
className: "mx-txn-transaction-manager-row",
|
|
6687
6687
|
disableGutters: !0,
|
|
6688
6688
|
disablePadding: !0,
|
|
6689
|
-
secondaryAction: !i.is_default_tag && /* @__PURE__ */ s(
|
|
6689
|
+
secondaryAction: !i.is_default_tag && /* @__PURE__ */ s(P, { direction: "row", children: [
|
|
6690
6690
|
/* @__PURE__ */ e(
|
|
6691
6691
|
NA,
|
|
6692
6692
|
{
|
|
@@ -6725,7 +6725,7 @@ const EI = ({ transaction: A }) => {
|
|
|
6725
6725
|
copy: { title: "Update tag name" },
|
|
6726
6726
|
isOpen: c,
|
|
6727
6727
|
onClose: () => d(!1),
|
|
6728
|
-
onPrimaryAction:
|
|
6728
|
+
onPrimaryAction: b,
|
|
6729
6729
|
onSecondaryAction: () => d(!1),
|
|
6730
6730
|
children: [
|
|
6731
6731
|
/* @__PURE__ */ e(
|
|
@@ -6784,8 +6784,8 @@ const EI = ({ transaction: A }) => {
|
|
|
6784
6784
|
E(A.tags);
|
|
6785
6785
|
}, [c, A]);
|
|
6786
6786
|
const l = (H) => {
|
|
6787
|
-
const
|
|
6788
|
-
p >= 0 ?
|
|
6787
|
+
const b = [...f], p = f.indexOf(H);
|
|
6788
|
+
p >= 0 ? b.splice(p, 1) : b.push(H), E(b);
|
|
6789
6789
|
}, v = async () => {
|
|
6790
6790
|
if (A.is_manual && !A.guid) {
|
|
6791
6791
|
a({ ...A, tags: f }), d(!1);
|
|
@@ -6794,7 +6794,7 @@ const EI = ({ transaction: A }) => {
|
|
|
6794
6794
|
await n(f, A.guid), await r({ ...A }), t(V.TRANSACTION_DETAILS_CLICK_TAGS, { transaction_guid: A.guid }), d(!1);
|
|
6795
6795
|
}, u = h.useMemo(
|
|
6796
6796
|
() => A.tags.map(
|
|
6797
|
-
(H,
|
|
6797
|
+
(H, b, p) => `${i.find((y) => y.guid === H)?.name}${b < p.length - 1 ? " / " : ""}`
|
|
6798
6798
|
),
|
|
6799
6799
|
[i, A]
|
|
6800
6800
|
);
|
|
@@ -6870,7 +6870,7 @@ const EI = ({ transaction: A }) => {
|
|
|
6870
6870
|
children: i.save_button
|
|
6871
6871
|
}
|
|
6872
6872
|
)
|
|
6873
|
-
] }) : /* @__PURE__ */ s(
|
|
6873
|
+
] }) : /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", gap: 4, children: [
|
|
6874
6874
|
/* @__PURE__ */ e(R, { bold: !0, children: A.description }),
|
|
6875
6875
|
/* @__PURE__ */ e(
|
|
6876
6876
|
NA,
|
|
@@ -6925,8 +6925,8 @@ const EI = ({ transaction: A }) => {
|
|
|
6925
6925
|
return h.useEffect(
|
|
6926
6926
|
() => o(V.TRANSACTION_DETAILS_VIEW, { transaction_guid: i.guid }),
|
|
6927
6927
|
[]
|
|
6928
|
-
), /* @__PURE__ */ e(L, { className: "mx-txn-transaction-details", width: "100%", children: i && /* @__PURE__ */ s(
|
|
6929
|
-
/* @__PURE__ */ s(
|
|
6928
|
+
), /* @__PURE__ */ e(L, { className: "mx-txn-transaction-details", width: "100%", children: i && /* @__PURE__ */ s(P, { children: [
|
|
6929
|
+
/* @__PURE__ */ s(P, { gap: n.Spacing.Small, p: n.Spacing.Large, children: [
|
|
6930
6930
|
/* @__PURE__ */ e(De, { elevation: 2, sx: { borderRadius: n.BorderRadius.Small, width: 64 }, children: /* @__PURE__ */ e(
|
|
6931
6931
|
vt,
|
|
6932
6932
|
{
|
|
@@ -6936,7 +6936,7 @@ const EI = ({ transaction: A }) => {
|
|
|
6936
6936
|
}
|
|
6937
6937
|
) }),
|
|
6938
6938
|
/* @__PURE__ */ e(Ld, { transaction: i }),
|
|
6939
|
-
/* @__PURE__ */ s(
|
|
6939
|
+
/* @__PURE__ */ s(P, { direction: "row", justifyContent: "space-between", children: [
|
|
6940
6940
|
/* @__PURE__ */ s(it, { color: i.isIncome ? "success.main" : "text.primary", children: [
|
|
6941
6941
|
i.isIncome ? "+" : "",
|
|
6942
6942
|
M(i.amount, "0,0.00")
|
|
@@ -6944,7 +6944,7 @@ const EI = ({ transaction: A }) => {
|
|
|
6944
6944
|
/* @__PURE__ */ e(qd, { transaction: i })
|
|
6945
6945
|
] }),
|
|
6946
6946
|
/* @__PURE__ */ s(
|
|
6947
|
-
|
|
6947
|
+
P,
|
|
6948
6948
|
{
|
|
6949
6949
|
bgcolor: "background.highlight",
|
|
6950
6950
|
borderRadius: n.BorderRadius.Small,
|
|
@@ -6997,29 +6997,29 @@ const EI = ({ transaction: A }) => {
|
|
|
6997
6997
|
);
|
|
6998
6998
|
}, Nd = C(Md), Td = () => {
|
|
6999
6999
|
const { selectedAccounts: A } = pA(), { common: t, transactions: i } = X(), { manualTransaction: n, setIsAmountValid: r, updateManualTransaction: o } = Pe(), [I, a] = h.useState(""), [c, d] = h.useState(""), f = h.useMemo(
|
|
7000
|
-
() => A.filter((
|
|
7000
|
+
() => A.filter((b) => b.is_manual),
|
|
7001
7001
|
[A]
|
|
7002
|
-
).map((
|
|
7003
|
-
label: `${
|
|
7004
|
-
value:
|
|
7002
|
+
).map((b) => ({
|
|
7003
|
+
label: `${b.name} | ${M(b.balance, "0,0.00")}`,
|
|
7004
|
+
value: b.guid
|
|
7005
7005
|
})), E = {
|
|
7006
7006
|
error_amount_is_invalid: t.currency_input.error_amount_is_invalid,
|
|
7007
7007
|
error_amount_must_be_equal_to: t.currency_input.error_amount_must_be_equal_to,
|
|
7008
7008
|
error_amount_must_be_less_than_or_equal_to: t.currency_input.error_amount_must_be_less_than_or_equal_to,
|
|
7009
7009
|
enter_amount: t.currency_input.enter_amount
|
|
7010
|
-
}, l = (
|
|
7011
|
-
a(
|
|
7012
|
-
}, v = (
|
|
7010
|
+
}, l = (b) => {
|
|
7011
|
+
a(b), o({ ...n, amount: Number(b) });
|
|
7012
|
+
}, v = (b, p) => {
|
|
7013
7013
|
o({ ...n, transaction_type: Number(p) });
|
|
7014
|
-
}, u = (
|
|
7015
|
-
d(
|
|
7016
|
-
}, H = (
|
|
7017
|
-
o({ ...n, account_guid:
|
|
7014
|
+
}, u = (b) => {
|
|
7015
|
+
d(b), o({ ...n, payee: b, description: b });
|
|
7016
|
+
}, H = (b) => {
|
|
7017
|
+
o({ ...n, account_guid: b });
|
|
7018
7018
|
};
|
|
7019
7019
|
return /* @__PURE__ */ s(L, { className: "mx-txn-manual-transaction-details", children: [
|
|
7020
|
-
/* @__PURE__ */ s(
|
|
7020
|
+
/* @__PURE__ */ s(P, { gap: 40, mx: 24, my: 32, children: [
|
|
7021
7021
|
/* @__PURE__ */ s(
|
|
7022
|
-
|
|
7022
|
+
P,
|
|
7023
7023
|
{
|
|
7024
7024
|
direction: "row",
|
|
7025
7025
|
sx: { flexDirection: { xs: "column", sm: "row" }, gap: { xs: 40, sm: 8 } },
|
|
@@ -7037,7 +7037,7 @@ const EI = ({ transaction: A }) => {
|
|
|
7037
7037
|
sx: { bgcolor: "background.paper" }
|
|
7038
7038
|
}
|
|
7039
7039
|
),
|
|
7040
|
-
/* @__PURE__ */ e(hs, { name: "TransactionType", onChange: v, row: !0, children: /* @__PURE__ */ s(
|
|
7040
|
+
/* @__PURE__ */ e(hs, { name: "TransactionType", onChange: v, row: !0, children: /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", children: [
|
|
7041
7041
|
/* @__PURE__ */ e(
|
|
7042
7042
|
Or,
|
|
7043
7043
|
{
|
|
@@ -7066,7 +7066,7 @@ const EI = ({ transaction: A }) => {
|
|
|
7066
7066
|
{
|
|
7067
7067
|
label: i.payee_title,
|
|
7068
7068
|
name: "payee",
|
|
7069
|
-
onChange: (
|
|
7069
|
+
onChange: (b) => u(b.target.value),
|
|
7070
7070
|
sx: { bgcolor: "background.paper" },
|
|
7071
7071
|
value: c
|
|
7072
7072
|
}
|
|
@@ -7077,11 +7077,11 @@ const EI = ({ transaction: A }) => {
|
|
|
7077
7077
|
InputLabelProps: { shrink: !0 },
|
|
7078
7078
|
SelectProps: { defaultValue: -1, IconComponent: ji },
|
|
7079
7079
|
label: i.manual_transaction_select_an_account,
|
|
7080
|
-
onChange: (
|
|
7080
|
+
onChange: (b) => H(b.target.value),
|
|
7081
7081
|
placeholder: i.manual_transaction_select,
|
|
7082
7082
|
select: !0,
|
|
7083
7083
|
sx: { bgcolor: "background.paper" },
|
|
7084
|
-
children: f.map((
|
|
7084
|
+
children: f.map((b) => /* @__PURE__ */ e(jn, { value: b.value, children: b.label }, b.value))
|
|
7085
7085
|
}
|
|
7086
7086
|
)
|
|
7087
7087
|
] }),
|
|
@@ -7151,11 +7151,11 @@ const EI = ({ transaction: A }) => {
|
|
|
7151
7151
|
addTransaction: v,
|
|
7152
7152
|
filter: u,
|
|
7153
7153
|
loadAssociatedBeats: H,
|
|
7154
|
-
setFilter:
|
|
7154
|
+
setFilter: b,
|
|
7155
7155
|
tags: p,
|
|
7156
7156
|
transactions: y,
|
|
7157
7157
|
updateTransaction: x
|
|
7158
|
-
} = PA(), { common: w, transactions: D } = X(), { userProfile:
|
|
7158
|
+
} = PA(), { common: w, transactions: D } = X(), { userProfile: j } = Ue(), { onEvent: m } = K(), {
|
|
7159
7159
|
displayedDateRange: O,
|
|
7160
7160
|
isInitialized: T,
|
|
7161
7161
|
selectedAccountGuids: tA,
|
|
@@ -7167,12 +7167,12 @@ const EI = ({ transaction: A }) => {
|
|
|
7167
7167
|
oA(r);
|
|
7168
7168
|
}, [r]), h.useEffect(() => {
|
|
7169
7169
|
const kA = QA(fA()), nr = BA(fA());
|
|
7170
|
-
iA(kA, nr),
|
|
7170
|
+
iA(kA, nr), b({
|
|
7171
7171
|
dateRange: { start: kA, end: nr },
|
|
7172
7172
|
accounts: Y.map((ra) => ra.guid)
|
|
7173
|
-
}), Ke(!0),
|
|
7173
|
+
}), Ke(!0), m(V.TRANSACTIONS_VIEW);
|
|
7174
7174
|
}, []), h.useEffect(() => {
|
|
7175
|
-
JA && (
|
|
7175
|
+
JA && (b({
|
|
7176
7176
|
...u,
|
|
7177
7177
|
dateRange: { start: O.start, end: O.end },
|
|
7178
7178
|
accounts: tA
|
|
@@ -7186,21 +7186,21 @@ const EI = ({ transaction: A }) => {
|
|
|
7186
7186
|
), J = cA ? y.find((kA) => kA.guid === cA) : void 0, wA = c && !!a.payee && !!a.account_guid && !!a.category_guid, VA = (kA) => {
|
|
7187
7187
|
iA(kA[0], kA[1]);
|
|
7188
7188
|
}, Ze = (kA) => {
|
|
7189
|
-
f(kA),
|
|
7189
|
+
f(kA), b({
|
|
7190
7190
|
...u,
|
|
7191
7191
|
searchTerm: kA
|
|
7192
|
-
}),
|
|
7192
|
+
}), m(V.TRANSACTIONS_CLICK_SEARCH, { search_term: kA });
|
|
7193
7193
|
}, Ki = () => {
|
|
7194
|
-
cI(y, p),
|
|
7194
|
+
cI(y, p), m(V.TRANSACTIONS_CLICK_EXPORT);
|
|
7195
7195
|
}, Zi = () => {
|
|
7196
7196
|
Yt.length > 0 ? (l({
|
|
7197
7197
|
...sI,
|
|
7198
7198
|
date: gA(fA()),
|
|
7199
|
-
user_guid:
|
|
7199
|
+
user_guid: j?.user_guid || ""
|
|
7200
7200
|
}), uA(
|
|
7201
7201
|
"addTransaction"
|
|
7202
7202
|
/* AddTransaction */
|
|
7203
|
-
),
|
|
7203
|
+
), m(V.TRANSACTIONS_CLICK_ADD)) : (fe(!0), m(V.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
|
|
7204
7204
|
}, Vt = async () => {
|
|
7205
7205
|
wA && await v(a), uA("");
|
|
7206
7206
|
}, Ji = () => {
|
|
@@ -7227,7 +7227,7 @@ const EI = ({ transaction: A }) => {
|
|
|
7227
7227
|
calendarActions: {
|
|
7228
7228
|
onRangeChanged: VA
|
|
7229
7229
|
},
|
|
7230
|
-
onAccountsFilterClick: () =>
|
|
7230
|
+
onAccountsFilterClick: () => m(V.ACCOUNTS_CLICK_FILTER),
|
|
7231
7231
|
onBackClick: A,
|
|
7232
7232
|
sx: n,
|
|
7233
7233
|
title: D.transactions_title,
|
|
@@ -7261,7 +7261,7 @@ const EI = ({ transaction: A }) => {
|
|
|
7261
7261
|
jA(kA), uA(
|
|
7262
7262
|
"transaction"
|
|
7263
7263
|
/* Transaction */
|
|
7264
|
-
),
|
|
7264
|
+
), m(V.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: kA });
|
|
7265
7265
|
}
|
|
7266
7266
|
}
|
|
7267
7267
|
)
|
|
@@ -7387,11 +7387,11 @@ const EI = ({ transaction: A }) => {
|
|
|
7387
7387
|
], E = async (u) => {
|
|
7388
7388
|
const H = { ...A, recurrenceType: u };
|
|
7389
7389
|
if (A.activityType === TA.Expense) {
|
|
7390
|
-
const
|
|
7391
|
-
|
|
7390
|
+
const b = n.find((p) => p.guid === A.scheduledPaymentGuid);
|
|
7391
|
+
b && await o(PI(H, b));
|
|
7392
7392
|
} else {
|
|
7393
|
-
const
|
|
7394
|
-
|
|
7393
|
+
const b = i.find((p) => p.guid === A.sequenceGuid);
|
|
7394
|
+
b && await r(uI(H, b));
|
|
7395
7395
|
}
|
|
7396
7396
|
c(!1);
|
|
7397
7397
|
}, l = () => {
|
|
@@ -7452,10 +7452,10 @@ const EI = ({ transaction: A }) => {
|
|
|
7452
7452
|
}, v = async () => {
|
|
7453
7453
|
const u = { ...A, expectedDate: d };
|
|
7454
7454
|
if (A.activityType === TA.Expense) {
|
|
7455
|
-
const H = n.find((
|
|
7455
|
+
const H = n.find((b) => b.guid === A.scheduledPaymentGuid);
|
|
7456
7456
|
H && await o(PI(u, H));
|
|
7457
7457
|
} else {
|
|
7458
|
-
const H = i.find((
|
|
7458
|
+
const H = i.find((b) => b.guid === A.sequenceGuid);
|
|
7459
7459
|
H && await r(uI(u, H));
|
|
7460
7460
|
}
|
|
7461
7461
|
c(!1);
|
|
@@ -7490,7 +7490,7 @@ const EI = ({ transaction: A }) => {
|
|
|
7490
7490
|
)
|
|
7491
7491
|
] });
|
|
7492
7492
|
}, kd = C(Wd), Kd = ({ activity: A, onDeleted: t }) => {
|
|
7493
|
-
const { recurring: i } = X(), { categories: n } = qA(), { deleteCashflowSequence: r, deleteScheduledPayment: o, paidActivities: I } = ZA(), { filter: a, setFilter: c, transactions: d } = PA(), { selectedAccountGuids: f } = pA(), { onEvent: E } = K(), [l, v] = h.useState(!1), [u, H] = h.useState(""),
|
|
7493
|
+
const { recurring: i } = X(), { categories: n } = qA(), { deleteCashflowSequence: r, deleteScheduledPayment: o, paidActivities: I } = ZA(), { filter: a, setFilter: c, transactions: d } = PA(), { selectedAccountGuids: f } = pA(), { onEvent: E } = K(), [l, v] = h.useState(!1), [u, H] = h.useState(""), b = n.find((D) => D.guid === A.categoryGuid), p = A.activityType === TA.Income, y = h.useMemo(
|
|
7494
7494
|
() => d.find((D) => D.guid === u),
|
|
7495
7495
|
[u]
|
|
7496
7496
|
);
|
|
@@ -7501,10 +7501,10 @@ const EI = ({ transaction: A }) => {
|
|
|
7501
7501
|
});
|
|
7502
7502
|
}, []), h.useEffect(() => {
|
|
7503
7503
|
if (p && A.sequenceGuid) {
|
|
7504
|
-
const D = I.filter((
|
|
7504
|
+
const D = I.filter((j) => j.sequenceGuid === A.sequenceGuid).map((j) => j.transactionGuid);
|
|
7505
7505
|
c({
|
|
7506
7506
|
...a,
|
|
7507
|
-
custom: (
|
|
7507
|
+
custom: (j) => !!D.find((m) => j.guid === m)
|
|
7508
7508
|
});
|
|
7509
7509
|
} else !p && A.scheduledPaymentGuid && c({
|
|
7510
7510
|
...a,
|
|
@@ -7521,8 +7521,8 @@ const EI = ({ transaction: A }) => {
|
|
|
7521
7521
|
}
|
|
7522
7522
|
);
|
|
7523
7523
|
};
|
|
7524
|
-
return /* @__PURE__ */ s(
|
|
7525
|
-
/* @__PURE__ */ s(
|
|
7524
|
+
return /* @__PURE__ */ s(P, { bgcolor: "background.default", direction: "column", height: "100%", children: [
|
|
7525
|
+
/* @__PURE__ */ s(P, { direction: "column", gap: 12, m: 24, children: [
|
|
7526
7526
|
/* @__PURE__ */ e(
|
|
7527
7527
|
vt,
|
|
7528
7528
|
{
|
|
@@ -7549,13 +7549,13 @@ const EI = ({ transaction: A }) => {
|
|
|
7549
7549
|
),
|
|
7550
7550
|
/* @__PURE__ */ e(G, { color: "secondary", variant: "inset" })
|
|
7551
7551
|
] }),
|
|
7552
|
-
|
|
7552
|
+
b && /* @__PURE__ */ s(Z, { children: [
|
|
7553
7553
|
/* @__PURE__ */ e(
|
|
7554
7554
|
zi,
|
|
7555
7555
|
{
|
|
7556
7556
|
iconName: "monetization_on",
|
|
7557
7557
|
label: i.category,
|
|
7558
|
-
value:
|
|
7558
|
+
value: b.name
|
|
7559
7559
|
}
|
|
7560
7560
|
),
|
|
7561
7561
|
/* @__PURE__ */ e(G, { color: "secondary", variant: "inset" })
|
|
@@ -7685,7 +7685,7 @@ const EI = ({ transaction: A }) => {
|
|
|
7685
7685
|
}
|
|
7686
7686
|
) }),
|
|
7687
7687
|
/* @__PURE__ */ e(eA, { children: /* @__PURE__ */ s(
|
|
7688
|
-
|
|
7688
|
+
P,
|
|
7689
7689
|
{
|
|
7690
7690
|
direction: "row",
|
|
7691
7691
|
gap: 4,
|
|
@@ -7695,9 +7695,9 @@ const EI = ({ transaction: A }) => {
|
|
|
7695
7695
|
justifyContent: "space-between"
|
|
7696
7696
|
},
|
|
7697
7697
|
children: [
|
|
7698
|
-
/* @__PURE__ */ s(
|
|
7698
|
+
/* @__PURE__ */ s(P, { direction: "column", width: "50%", children: [
|
|
7699
7699
|
/* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: A.name }),
|
|
7700
|
-
/* @__PURE__ */ e(
|
|
7700
|
+
/* @__PURE__ */ e(P, { alignItems: "center", direction: "row", gap: 6, children: t ? /* @__PURE__ */ s(P, { direction: "row", gap: 4, children: [
|
|
7701
7701
|
_d(A),
|
|
7702
7702
|
/* @__PURE__ */ e(R, { variant: "XSmall", children: Jd(A, r) })
|
|
7703
7703
|
] }) : /* @__PURE__ */ s(Z, { children: [
|
|
@@ -7713,7 +7713,7 @@ const EI = ({ transaction: A }) => {
|
|
|
7713
7713
|
] }) })
|
|
7714
7714
|
] }),
|
|
7715
7715
|
/* @__PURE__ */ e(
|
|
7716
|
-
|
|
7716
|
+
P,
|
|
7717
7717
|
{
|
|
7718
7718
|
alignItems: "center",
|
|
7719
7719
|
direction: "row",
|
|
@@ -7721,13 +7721,13 @@ const EI = ({ transaction: A }) => {
|
|
|
7721
7721
|
gap: 8,
|
|
7722
7722
|
justifyContent: "flex-end",
|
|
7723
7723
|
width: "50%",
|
|
7724
|
-
children: /* @__PURE__ */ s(
|
|
7724
|
+
children: /* @__PURE__ */ s(P, { alignItems: "flex-end", width: "100%", children: [
|
|
7725
7725
|
/* @__PURE__ */ s(R, { bold: !0, color: a ? "success.main" : "text.primary", variant: "Body", children: [
|
|
7726
7726
|
a ? "+" : "",
|
|
7727
7727
|
M(A.amount, "0,0.00")
|
|
7728
7728
|
] }),
|
|
7729
7729
|
!t && /* @__PURE__ */ s(
|
|
7730
|
-
|
|
7730
|
+
P,
|
|
7731
7731
|
{
|
|
7732
7732
|
alignItems: "center",
|
|
7733
7733
|
direction: "row",
|
|
@@ -7835,7 +7835,7 @@ const EI = ({ transaction: A }) => {
|
|
|
7835
7835
|
onSelected: n
|
|
7836
7836
|
}) => {
|
|
7837
7837
|
const { recurring: r } = X(), { searchValue: o, setSearchValue: I } = Pe();
|
|
7838
|
-
return /* @__PURE__ */ s(
|
|
7838
|
+
return /* @__PURE__ */ s(P, { sx: { bgcolor: A, gap: 16, pt: 8 }, children: [
|
|
7839
7839
|
t && /* @__PURE__ */ e(HA, { sx: { mx: 24 }, children: t }),
|
|
7840
7840
|
/* @__PURE__ */ e(
|
|
7841
7841
|
Ti,
|
|
@@ -7900,8 +7900,8 @@ const EI = ({ transaction: A }) => {
|
|
|
7900
7900
|
}
|
|
7901
7901
|
r(Number(f.target.value));
|
|
7902
7902
|
};
|
|
7903
|
-
return /* @__PURE__ */ s(
|
|
7904
|
-
/* @__PURE__ */ s(
|
|
7903
|
+
return /* @__PURE__ */ s(P, { bgcolor: A, gap: 24, height: "100%", children: [
|
|
7904
|
+
/* @__PURE__ */ s(P, { children: [
|
|
7905
7905
|
/* @__PURE__ */ e(Sn, { bgcolor: A, children: Mi(I.date) }),
|
|
7906
7906
|
/* @__PURE__ */ e(Bn, { transaction: I })
|
|
7907
7907
|
] }),
|
|
@@ -7939,33 +7939,33 @@ const EI = ({ transaction: A }) => {
|
|
|
7939
7939
|
label: t,
|
|
7940
7940
|
onAddActivity: i = () => null
|
|
7941
7941
|
}) => {
|
|
7942
|
-
const { recurring: n } = X(), { addCashflowEvent: r, addCashflowSequence: o, addScheduledPayment: I } = ZA(), { filter: a, setFilter: c, transactions: d } = PA(), [f, E] = h.useState(!1), [l, v] = h.useState(""), [u, H] = h.useState(U.EveryMonth), [
|
|
7943
|
-
() => d.find((
|
|
7942
|
+
const { recurring: n } = X(), { addCashflowEvent: r, addCashflowSequence: o, addScheduledPayment: I } = ZA(), { filter: a, setFilter: c, transactions: d } = PA(), [f, E] = h.useState(!1), [l, v] = h.useState(""), [u, H] = h.useState(U.EveryMonth), [b, p] = h.useState(null), y = h.useMemo(
|
|
7943
|
+
() => d.find((j) => j.guid === l),
|
|
7944
7944
|
[l]
|
|
7945
7945
|
), x = () => {
|
|
7946
7946
|
E(!0), c(A ? { ...a, custom: ii } : { ...a, custom: Pn });
|
|
7947
7947
|
}, w = async () => {
|
|
7948
|
-
if (i(), !y || !
|
|
7948
|
+
if (i(), !y || !b) {
|
|
7949
7949
|
D();
|
|
7950
7950
|
return;
|
|
7951
7951
|
}
|
|
7952
7952
|
if (A) {
|
|
7953
|
-
const
|
|
7954
|
-
if (
|
|
7955
|
-
const O = HI(
|
|
7953
|
+
const j = bI(y, u, b), m = await o(j);
|
|
7954
|
+
if (m) {
|
|
7955
|
+
const O = HI(m, y);
|
|
7956
7956
|
await r(O);
|
|
7957
7957
|
}
|
|
7958
7958
|
} else {
|
|
7959
|
-
const
|
|
7960
|
-
await I(
|
|
7959
|
+
const j = AE(y, u, b);
|
|
7960
|
+
await I(j, y);
|
|
7961
7961
|
}
|
|
7962
7962
|
D();
|
|
7963
7963
|
}, D = () => {
|
|
7964
7964
|
v(""), E(!1);
|
|
7965
7965
|
};
|
|
7966
7966
|
return /* @__PURE__ */ s(L, { children: [
|
|
7967
|
-
/* @__PURE__ */ e(W, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ e(aA, { onClick: x, children: /* @__PURE__ */ e(eA, { children: /* @__PURE__ */ s(
|
|
7968
|
-
/* @__PURE__ */ s(
|
|
7967
|
+
/* @__PURE__ */ e(W, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ e(aA, { onClick: x, children: /* @__PURE__ */ e(eA, { children: /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
7968
|
+
/* @__PURE__ */ s(P, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
7969
7969
|
/* @__PURE__ */ e(q, { fill: !0, name: "add_box", size: 24, sx: { color: "action.active" } }),
|
|
7970
7970
|
/* @__PURE__ */ e(R, { bold: !0, sx: { color: "action.active" }, variant: "Body", children: t })
|
|
7971
7971
|
] }),
|
|
@@ -7983,13 +7983,13 @@ const EI = ({ transaction: A }) => {
|
|
|
7983
7983
|
zI,
|
|
7984
7984
|
{
|
|
7985
7985
|
description: A ? n.add_income_description : n.add_expense_description,
|
|
7986
|
-
onSearch: (
|
|
7986
|
+
onSearch: (j) => {
|
|
7987
7987
|
c({
|
|
7988
7988
|
...a,
|
|
7989
|
-
custom: (
|
|
7989
|
+
custom: (m) => A ? j ? gI(m, j) : ii(m) : j ? iE(m, j) : Pn(m)
|
|
7990
7990
|
});
|
|
7991
7991
|
},
|
|
7992
|
-
onSelected: (
|
|
7992
|
+
onSelected: (j) => v(j)
|
|
7993
7993
|
}
|
|
7994
7994
|
)
|
|
7995
7995
|
}
|
|
@@ -8007,7 +8007,7 @@ const EI = ({ transaction: A }) => {
|
|
|
8007
8007
|
{
|
|
8008
8008
|
frequency: u,
|
|
8009
8009
|
isIncome: A,
|
|
8010
|
-
nextDate:
|
|
8010
|
+
nextDate: b,
|
|
8011
8011
|
onFrequencyChange: H,
|
|
8012
8012
|
onNextDateChange: p,
|
|
8013
8013
|
transaction: y
|
|
@@ -8336,13 +8336,13 @@ const EI = ({ transaction: A }) => {
|
|
|
8336
8336
|
)
|
|
8337
8337
|
}
|
|
8338
8338
|
);
|
|
8339
|
-
}, hE = C(EE), Ei = ({ icon: A, label: t }) => /* @__PURE__ */ s(
|
|
8339
|
+
}, hE = C(EE), Ei = ({ icon: A, label: t }) => /* @__PURE__ */ s(P, { alignItems: "center", flexDirection: "row", sx: { gap: 6 }, children: [
|
|
8340
8340
|
/* @__PURE__ */ e(A, {}),
|
|
8341
8341
|
/* @__PURE__ */ e(R, { variant: "XSmall", children: t })
|
|
8342
8342
|
] }), lE = () => {
|
|
8343
8343
|
const { recurring: A } = X();
|
|
8344
8344
|
return /* @__PURE__ */ s(
|
|
8345
|
-
|
|
8345
|
+
P,
|
|
8346
8346
|
{
|
|
8347
8347
|
alignItems: "center",
|
|
8348
8348
|
"aria-hidden": !0,
|
|
@@ -8409,7 +8409,7 @@ const EI = ({ transaction: A }) => {
|
|
|
8409
8409
|
views: ["day"]
|
|
8410
8410
|
}
|
|
8411
8411
|
);
|
|
8412
|
-
return /* @__PURE__ */ e(
|
|
8412
|
+
return /* @__PURE__ */ e(P, { justifyContent: "center", children: /* @__PURE__ */ s(Mt, { dateAdapter: Ct, children: [
|
|
8413
8413
|
i && I,
|
|
8414
8414
|
!i && I,
|
|
8415
8415
|
/* @__PURE__ */ e(vE, {})
|
|
@@ -8432,8 +8432,8 @@ const EI = ({ transaction: A }) => {
|
|
|
8432
8432
|
title: o
|
|
8433
8433
|
}) => {
|
|
8434
8434
|
const { recurring: I } = X(), a = uE(A);
|
|
8435
|
-
return /* @__PURE__ */ s(
|
|
8436
|
-
o && /* @__PURE__ */ s(
|
|
8435
|
+
return /* @__PURE__ */ s(P, { gap: 8, mt: 4, sx: r, children: [
|
|
8436
|
+
o && /* @__PURE__ */ s(P, { alignItems: "top", direction: "row", justifyContent: "space-between", px: 24, children: [
|
|
8437
8437
|
/* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: o }),
|
|
8438
8438
|
i && /* @__PURE__ */ e($, { onClick: i, sx: { mt: -12 }, variant: "text", children: I.reset })
|
|
8439
8439
|
] }),
|
|
@@ -8487,10 +8487,10 @@ const EI = ({ transaction: A }) => {
|
|
|
8487
8487
|
return n && d.push({ color: a.palette.error.main, percentage: `${n / t}` }), d;
|
|
8488
8488
|
}, [i, t, n]);
|
|
8489
8489
|
return /* @__PURE__ */ s(L, { px: 24, children: [
|
|
8490
|
-
/* @__PURE__ */ s(
|
|
8490
|
+
/* @__PURE__ */ s(P, { direction: "row", justifyContent: "space-between", children: [
|
|
8491
8491
|
/* @__PURE__ */ s(L, { children: [
|
|
8492
8492
|
/* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: `${r} ${A}` }),
|
|
8493
|
-
/* @__PURE__ */ s(
|
|
8493
|
+
/* @__PURE__ */ s(P, { direction: "row", gap: 2, mb: 8, children: [
|
|
8494
8494
|
/* @__PURE__ */ e(R, { bold: !0, variant: "XSmall", children: M(i, "0,0.00") }),
|
|
8495
8495
|
/* @__PURE__ */ e(R, { variant: "XSmall", children: I.paid?.toLowerCase() }),
|
|
8496
8496
|
n !== void 0 && /* @__PURE__ */ s(Z, { children: [
|
|
@@ -8516,7 +8516,7 @@ const EI = ({ transaction: A }) => {
|
|
|
8516
8516
|
selectedDayActivities: a,
|
|
8517
8517
|
setSelectedDay: c,
|
|
8518
8518
|
upcomingActivities: d
|
|
8519
|
-
} = ZA(), [f, E] = h.useState(0), { onEvent: l } = K(), v = n.filter(en), u = o.filter(en), H = r.filter(en),
|
|
8519
|
+
} = ZA(), [f, E] = h.useState(0), { onEvent: l } = K(), v = n.filter(en), u = o.filter(en), H = r.filter(en), b = v.filter(di).reduce(Ut, 0), p = u.filter(di).reduce(Ut, 0), y = H.filter(di).reduce(Ut, 0), x = v.filter(di).length, w = v.filter(An).reduce(Ut, 0), D = u.filter(An).reduce(Ut, 0), j = v.filter(An).length, m = (tA, Y) => {
|
|
8520
8520
|
E(Y);
|
|
8521
8521
|
}, O = (tA) => {
|
|
8522
8522
|
l(V.RECURRING_ACTIVITY_CLICK_UPCOMING, {
|
|
@@ -8528,11 +8528,11 @@ const EI = ({ transaction: A }) => {
|
|
|
8528
8528
|
});
|
|
8529
8529
|
};
|
|
8530
8530
|
return /* @__PURE__ */ s(tt, { container: !0, pt: 16, px: 24, spacing: 24, children: [
|
|
8531
|
-
/* @__PURE__ */ e(tt, { md: !0, sm: 12, children: /* @__PURE__ */ s(
|
|
8531
|
+
/* @__PURE__ */ e(tt, { md: !0, sm: 12, children: /* @__PURE__ */ s(P, { gap: 24, children: [
|
|
8532
8532
|
/* @__PURE__ */ e(
|
|
8533
8533
|
kr,
|
|
8534
8534
|
{
|
|
8535
|
-
expected:
|
|
8535
|
+
expected: b,
|
|
8536
8536
|
missed: y,
|
|
8537
8537
|
paid: p,
|
|
8538
8538
|
title: A.expenses,
|
|
@@ -8545,7 +8545,7 @@ const EI = ({ transaction: A }) => {
|
|
|
8545
8545
|
expected: w,
|
|
8546
8546
|
paid: D,
|
|
8547
8547
|
title: A.deposits,
|
|
8548
|
-
total:
|
|
8548
|
+
total: j
|
|
8549
8549
|
}
|
|
8550
8550
|
),
|
|
8551
8551
|
!i && !t && /* @__PURE__ */ e(
|
|
@@ -8557,7 +8557,7 @@ const EI = ({ transaction: A }) => {
|
|
|
8557
8557
|
}
|
|
8558
8558
|
),
|
|
8559
8559
|
(i || t) && /* @__PURE__ */ s(L, { children: [
|
|
8560
|
-
/* @__PURE__ */ s(Se, { onChange:
|
|
8560
|
+
/* @__PURE__ */ s(Se, { onChange: m, value: f, variant: "fullWidth", children: [
|
|
8561
8561
|
/* @__PURE__ */ e(
|
|
8562
8562
|
GA,
|
|
8563
8563
|
{
|
|
@@ -8581,7 +8581,7 @@ const EI = ({ transaction: A }) => {
|
|
|
8581
8581
|
f === 1 && /* @__PURE__ */ e(kt, { activities: u, onActivityClick: T })
|
|
8582
8582
|
] })
|
|
8583
8583
|
] }) }),
|
|
8584
|
-
!i && !t && /* @__PURE__ */ e(tt, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ s(
|
|
8584
|
+
!i && !t && /* @__PURE__ */ e(tt, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ s(P, { gap: 35, children: [
|
|
8585
8585
|
/* @__PURE__ */ e(wI, {}),
|
|
8586
8586
|
/* @__PURE__ */ e(
|
|
8587
8587
|
kt,
|
|
@@ -8626,7 +8626,7 @@ const EI = ({ transaction: A }) => {
|
|
|
8626
8626
|
sx: t,
|
|
8627
8627
|
title: n.title,
|
|
8628
8628
|
children: [
|
|
8629
|
-
r || !c ? /* @__PURE__ */ e(zE, {}) : /* @__PURE__ */ s(
|
|
8629
|
+
r || !c ? /* @__PURE__ */ e(zE, {}) : /* @__PURE__ */ s(P, { direction: "column", p: 48, spacing: 24, children: [
|
|
8630
8630
|
/* @__PURE__ */ e(_e, { height: 100, variant: "rounded", width: "100%" }),
|
|
8631
8631
|
/* @__PURE__ */ e(_e, { height: 100, variant: "rounded", width: "100%" }),
|
|
8632
8632
|
/* @__PURE__ */ e(_e, { height: 600, variant: "rounded", width: "100%" })
|
|
@@ -8652,7 +8652,7 @@ const EI = ({ transaction: A }) => {
|
|
|
8652
8652
|
),
|
|
8653
8653
|
[t, o]
|
|
8654
8654
|
), { availableWidth: a } = Xt(), c = a < 750;
|
|
8655
|
-
return /* @__PURE__ */ s(
|
|
8655
|
+
return /* @__PURE__ */ s(P, { flexDirection: c ? "column" : "row", width: "100%", children: [
|
|
8656
8656
|
/* @__PURE__ */ e(wI, {}),
|
|
8657
8657
|
!c && /* @__PURE__ */ e(G, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
|
|
8658
8658
|
/* @__PURE__ */ e(
|
|
@@ -9085,7 +9085,7 @@ const yE = {
|
|
|
9085
9085
|
var ni = /* @__PURE__ */ ((A) => (A.EXPENSE = "expense", A.INCOME = "income", A))(ni || {});
|
|
9086
9086
|
const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
9087
9087
|
/* @__PURE__ */ s(W, { sx: { display: "flex", alignItems: "center", gap: 16, px: 24, py: 12 }, children: [
|
|
9088
|
-
/* @__PURE__ */ s(
|
|
9088
|
+
/* @__PURE__ */ s(P, { alignItems: "center", height: 32, width: 32, children: [
|
|
9089
9089
|
/* @__PURE__ */ e(R, { bold: !0, sx: { fontSize: 11 }, children: nA(A.expectedDate, AA.MONTH) }),
|
|
9090
9090
|
/* @__PURE__ */ e(R, { bold: !0, sx: { fontSize: 11 }, children: nA(A.expectedDate, AA.DAY) })
|
|
9091
9091
|
] }),
|
|
@@ -9128,8 +9128,8 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9128
9128
|
] });
|
|
9129
9129
|
}, Zr = C(ME), Jr = (A, t) => (i) => i.accountGuid === A.guid && (mn(i.expectedDate) || Ot(i.expectedDate, t.start)) && mA(i.expectedDate, t.end), NE = () => {
|
|
9130
9130
|
const { availableWidth: A } = Xt(), { cashflow: t } = X(), { upcomingExpenses: i, upcomingIncome: n } = ZA(), { dateRange: r, selectedCashAccounts: o } = Nt();
|
|
9131
|
-
return /* @__PURE__ */ s(
|
|
9132
|
-
/* @__PURE__ */ s(
|
|
9131
|
+
return /* @__PURE__ */ s(P, { children: [
|
|
9132
|
+
/* @__PURE__ */ s(P, { direction: A < 400 ? "column" : "row", justifyContent: "space-between", children: [
|
|
9133
9133
|
/* @__PURE__ */ e(R, { bold: !0, sx: { fontSize: 15, mb: 12, whiteSpace: "normal" }, children: t.accounts_breakdown }),
|
|
9134
9134
|
/* @__PURE__ */ s(R, { bold: !0, sx: { fontSize: 15, mb: 12, whiteSpace: "normal" }, children: [
|
|
9135
9135
|
nA(r.start, AA.FULL_MONTH_DAY),
|
|
@@ -9138,7 +9138,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9138
9138
|
nA(r.end, AA.FULL_MONTH_DAY)
|
|
9139
9139
|
] })
|
|
9140
9140
|
] }),
|
|
9141
|
-
/* @__PURE__ */ e(
|
|
9141
|
+
/* @__PURE__ */ e(P, { children: o.map((I) => {
|
|
9142
9142
|
const a = n.filter(Jr(I, r)).sort((E, l) => gA(E.expectedDate) - gA(l.expectedDate)), c = i.filter(
|
|
9143
9143
|
Jr(I, r)
|
|
9144
9144
|
), d = a.reduce(
|
|
@@ -9206,7 +9206,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9206
9206
|
headerName: i.accounts,
|
|
9207
9207
|
renderCell: ({ value: { name: d, nickname: f, institution_guid: E, account_number: l } }) => {
|
|
9208
9208
|
const v = f || d;
|
|
9209
|
-
return /* @__PURE__ */ s(
|
|
9209
|
+
return /* @__PURE__ */ s(P, { alignItems: "center", flexDirection: "row", gap: 12, children: [
|
|
9210
9210
|
/* @__PURE__ */ e(
|
|
9211
9211
|
Oe,
|
|
9212
9212
|
{
|
|
@@ -9276,13 +9276,13 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9276
9276
|
},
|
|
9277
9277
|
children: [
|
|
9278
9278
|
/* @__PURE__ */ s(
|
|
9279
|
-
|
|
9279
|
+
P,
|
|
9280
9280
|
{
|
|
9281
9281
|
direction: A < 540 ? "column" : "row",
|
|
9282
9282
|
justifyContent: "space-between",
|
|
9283
9283
|
mb: 12,
|
|
9284
9284
|
children: [
|
|
9285
|
-
/* @__PURE__ */ s(
|
|
9285
|
+
/* @__PURE__ */ s(P, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
9286
9286
|
/* @__PURE__ */ e(
|
|
9287
9287
|
R,
|
|
9288
9288
|
{
|
|
@@ -9340,9 +9340,9 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9340
9340
|
borderRadius: 1,
|
|
9341
9341
|
marginBottom: 24
|
|
9342
9342
|
},
|
|
9343
|
-
children: /* @__PURE__ */ e(W, { sx: { minHeight: "auto" }, children: /* @__PURE__ */ s(
|
|
9343
|
+
children: /* @__PURE__ */ e(W, { sx: { minHeight: "auto" }, children: /* @__PURE__ */ s(P, { width: "100%", children: [
|
|
9344
9344
|
/* @__PURE__ */ s(
|
|
9345
|
-
|
|
9345
|
+
P,
|
|
9346
9346
|
{
|
|
9347
9347
|
alignItems: "center",
|
|
9348
9348
|
flexDirection: "row",
|
|
@@ -9350,7 +9350,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9350
9350
|
px: 16,
|
|
9351
9351
|
py: 12,
|
|
9352
9352
|
children: [
|
|
9353
|
-
/* @__PURE__ */ s(
|
|
9353
|
+
/* @__PURE__ */ s(P, { alignItems: "center", flexDirection: "row", gap: 8, width: "50%", children: [
|
|
9354
9354
|
/* @__PURE__ */ e(
|
|
9355
9355
|
Oe,
|
|
9356
9356
|
{
|
|
@@ -9367,7 +9367,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9367
9367
|
),
|
|
9368
9368
|
/* @__PURE__ */ e(G, { sx: { width: "100%" } }),
|
|
9369
9369
|
/* @__PURE__ */ s(
|
|
9370
|
-
|
|
9370
|
+
P,
|
|
9371
9371
|
{
|
|
9372
9372
|
alignItems: "center",
|
|
9373
9373
|
flexDirection: "row",
|
|
@@ -9382,7 +9382,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9382
9382
|
),
|
|
9383
9383
|
/* @__PURE__ */ e(G, { sx: { width: "100%" } }),
|
|
9384
9384
|
/* @__PURE__ */ s(
|
|
9385
|
-
|
|
9385
|
+
P,
|
|
9386
9386
|
{
|
|
9387
9387
|
alignItems: "center",
|
|
9388
9388
|
flexDirection: "row",
|
|
@@ -9397,7 +9397,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9397
9397
|
),
|
|
9398
9398
|
/* @__PURE__ */ e(G, { sx: { width: "100%" } }),
|
|
9399
9399
|
/* @__PURE__ */ e(
|
|
9400
|
-
|
|
9400
|
+
P,
|
|
9401
9401
|
{
|
|
9402
9402
|
alignItems: "center",
|
|
9403
9403
|
bgcolor: "background.default",
|
|
@@ -9467,7 +9467,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9467
9467
|
symbol: r,
|
|
9468
9468
|
tooltip: o
|
|
9469
9469
|
}) => /* @__PURE__ */ s(
|
|
9470
|
-
|
|
9470
|
+
P,
|
|
9471
9471
|
{
|
|
9472
9472
|
bgcolor: i ? "background.default" : "transparent",
|
|
9473
9473
|
direction: t ? "row" : "column",
|
|
@@ -9476,7 +9476,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9476
9476
|
sx: { borderBottomLeftRadius: 4, borderBottomRightRadius: 4 },
|
|
9477
9477
|
children: [
|
|
9478
9478
|
!t && /* @__PURE__ */ e(OA, { amount: A, component: "h2", variant: "H2" }),
|
|
9479
|
-
/* @__PURE__ */ s(
|
|
9479
|
+
/* @__PURE__ */ s(P, { alignItems: "center", component: "span", direction: "row", gap: 8, mt: 2, children: [
|
|
9480
9480
|
/* @__PURE__ */ e(R, { bold: i, variant: "Small", children: n }),
|
|
9481
9481
|
o
|
|
9482
9482
|
] }),
|
|
@@ -9493,9 +9493,9 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9493
9493
|
), l = h.useMemo(
|
|
9494
9494
|
() => c.reduce((y, x) => y + (x?.balance || 0), 0),
|
|
9495
9495
|
[c]
|
|
9496
|
-
), v = f.reduce((y, x) => y + x.amount, 0), u = E.reduce((y, x) => y + x.amount, 0), H = l - v + u,
|
|
9497
|
-
return /* @__PURE__ */ s(
|
|
9498
|
-
p ? /* @__PURE__ */ s(
|
|
9496
|
+
), v = f.reduce((y, x) => y + x.amount, 0), u = E.reduce((y, x) => y + x.amount, 0), H = l - v + u, b = o.length > 0 && d?.has_completed_cash_flow_onboarding, p = i < 725;
|
|
9497
|
+
return /* @__PURE__ */ s(P, { flexDirection: "row", gap: 24, justifyContent: "center", my: p ? 24 : 42, children: [
|
|
9498
|
+
p ? /* @__PURE__ */ s(P, { border: "1px solid", borderColor: "border.light", borderRadius: 1, mx: 16, width: "100%", children: [
|
|
9499
9499
|
/* @__PURE__ */ e(
|
|
9500
9500
|
It,
|
|
9501
9501
|
{
|
|
@@ -9505,7 +9505,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9505
9505
|
}
|
|
9506
9506
|
),
|
|
9507
9507
|
/* @__PURE__ */ e(G, {}),
|
|
9508
|
-
|
|
9508
|
+
b ? /* @__PURE__ */ e(
|
|
9509
9509
|
It,
|
|
9510
9510
|
{
|
|
9511
9511
|
amount: u,
|
|
@@ -9551,7 +9551,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9551
9551
|
)
|
|
9552
9552
|
] }) : /* @__PURE__ */ s(Z, { children: [
|
|
9553
9553
|
/* @__PURE__ */ e(It, { amount: l, label: n.cash_and_bank }),
|
|
9554
|
-
|
|
9554
|
+
b ? /* @__PURE__ */ s(Z, { children: [
|
|
9555
9555
|
/* @__PURE__ */ e(R, { sx: { fontSize: 25, lineHeight: 1 }, children: "+" }),
|
|
9556
9556
|
/* @__PURE__ */ e(
|
|
9557
9557
|
It,
|
|
@@ -9601,7 +9601,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9601
9601
|
] });
|
|
9602
9602
|
}, FE = C(UE), WE = ({ handleNextStep: A }) => {
|
|
9603
9603
|
const { completeOnboarding: t } = Nn(), { cashflow: i } = X(), n = RA();
|
|
9604
|
-
return /* @__PURE__ */ s(
|
|
9604
|
+
return /* @__PURE__ */ s(P, { children: [
|
|
9605
9605
|
/* @__PURE__ */ e(it, { pb: 12, children: i.welcome_title }),
|
|
9606
9606
|
/* @__PURE__ */ e(
|
|
9607
9607
|
lt,
|
|
@@ -9614,7 +9614,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9614
9614
|
}
|
|
9615
9615
|
),
|
|
9616
9616
|
/* @__PURE__ */ e(HA, { pb: 32, children: i.welcome_description }),
|
|
9617
|
-
/* @__PURE__ */ s(
|
|
9617
|
+
/* @__PURE__ */ s(P, { direction: "column", mb: 32, spacing: 32, children: [
|
|
9618
9618
|
/* @__PURE__ */ s(HA, { sx: { display: "flex", alignItems: "center", fontSize: 18 }, children: [
|
|
9619
9619
|
/* @__PURE__ */ e(
|
|
9620
9620
|
L,
|
|
@@ -9664,7 +9664,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9664
9664
|
i.bullet_three
|
|
9665
9665
|
] })
|
|
9666
9666
|
] }),
|
|
9667
|
-
/* @__PURE__ */ s(
|
|
9667
|
+
/* @__PURE__ */ s(P, { direction: "row", spacing: 16, children: [
|
|
9668
9668
|
/* @__PURE__ */ e($, { onClick: A, variant: "contained", children: i.get_started_button }),
|
|
9669
9669
|
/* @__PURE__ */ e($, { onClick: t, variant: "outlined", children: i.skip_button })
|
|
9670
9670
|
] })
|
|
@@ -9684,20 +9684,20 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9684
9684
|
transform: rotate(360deg);
|
|
9685
9685
|
}
|
|
9686
9686
|
`, Ah = () => {
|
|
9687
|
-
const { addCashflowEvent: A, addCashflowSequence: t, cashflowSequences: i } = ZA(), { cashflow: n, common: r } = X(), { completeOnboarding: o } = Nn(), { isDirty: I } = Nt(), { isMobile: a } = zA(), { setDisplayedDate: c } = pA(), { filter: d, setFilter: f, transactions: E } = PA(), l = RA(), [v, u] = Fe(!0), [H,
|
|
9687
|
+
const { addCashflowEvent: A, addCashflowSequence: t, cashflowSequences: i } = ZA(), { cashflow: n, common: r } = X(), { completeOnboarding: o } = Nn(), { isDirty: I } = Nt(), { isMobile: a } = zA(), { setDisplayedDate: c } = pA(), { filter: d, setFilter: f, transactions: E } = PA(), l = RA(), [v, u] = Fe(!0), [H, b] = h.useState(U.EveryMonth), [p, y] = Fe(!1), [x, w] = h.useState(null), [D, j] = Fe(1), [m, O] = Fe([]), [T, tA] = Fe(""), Y = h.useMemo(
|
|
9688
9688
|
() => E.find((cA) => cA.guid === T),
|
|
9689
9689
|
[T]
|
|
9690
9690
|
), iA = !!i.length, oA = async () => {
|
|
9691
|
-
|
|
9691
|
+
j(2), c(
|
|
9692
9692
|
// Beginning of the month, 90 days before today
|
|
9693
9693
|
QA(Ve(fA(), 90)),
|
|
9694
9694
|
fA()
|
|
9695
|
-
), f({ ...d, custom: ii }),
|
|
9695
|
+
), f({ ...d, custom: ii }), j(3);
|
|
9696
9696
|
}, sA = async () => {
|
|
9697
|
-
if (!(
|
|
9697
|
+
if (!(m.length < 1)) {
|
|
9698
9698
|
y(!0);
|
|
9699
|
-
for (let cA = 0; cA <
|
|
9700
|
-
const jA =
|
|
9699
|
+
for (let cA = 0; cA < m.length; cA++) {
|
|
9700
|
+
const jA = m[cA], WA = bI(
|
|
9701
9701
|
jA,
|
|
9702
9702
|
jA.frequency,
|
|
9703
9703
|
jA.nextDate
|
|
@@ -9709,7 +9709,7 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9709
9709
|
}
|
|
9710
9710
|
o();
|
|
9711
9711
|
}
|
|
9712
|
-
}, uA = !Y && v || !Y &&
|
|
9712
|
+
}, uA = !Y && v || !Y && m.length < 1;
|
|
9713
9713
|
return /* @__PURE__ */ s(
|
|
9714
9714
|
L,
|
|
9715
9715
|
{
|
|
@@ -9751,15 +9751,15 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9751
9751
|
children: [
|
|
9752
9752
|
/* @__PURE__ */ e(it, { pb: 12, children: n.add_income_title }),
|
|
9753
9753
|
/* @__PURE__ */ e(HA, { mb: 24, children: n.add_income_description }),
|
|
9754
|
-
|
|
9755
|
-
/* @__PURE__ */ e(rA, { children:
|
|
9754
|
+
m.length > 0 && !Y && /* @__PURE__ */ s(Z, { children: [
|
|
9755
|
+
/* @__PURE__ */ e(rA, { children: m.map((cA, jA) => /* @__PURE__ */ s(h.Fragment, { children: [
|
|
9756
9756
|
/* @__PURE__ */ e(Sn, { bgcolor: "background.paper", children: Mi(
|
|
9757
9757
|
gA(cA.nextDate || cA.date)
|
|
9758
9758
|
) }),
|
|
9759
9759
|
/* @__PURE__ */ e(Bn, { transaction: cA }),
|
|
9760
|
-
jA !==
|
|
9760
|
+
jA !== m.length - 1 && /* @__PURE__ */ e(G, {})
|
|
9761
9761
|
] }, cA.guid)) }),
|
|
9762
|
-
/* @__PURE__ */ s(
|
|
9762
|
+
/* @__PURE__ */ s(P, { alignItems: "center", direction: "row", children: [
|
|
9763
9763
|
/* @__PURE__ */ e(G, { sx: { flexGrow: 1 } }),
|
|
9764
9764
|
/* @__PURE__ */ e(
|
|
9765
9765
|
$,
|
|
@@ -9793,18 +9793,18 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9793
9793
|
frequency: H,
|
|
9794
9794
|
isIncome: !0,
|
|
9795
9795
|
nextDate: x,
|
|
9796
|
-
onFrequencyChange:
|
|
9796
|
+
onFrequencyChange: b,
|
|
9797
9797
|
onNextDateChange: w,
|
|
9798
9798
|
transaction: Y
|
|
9799
9799
|
}
|
|
9800
9800
|
),
|
|
9801
|
-
/* @__PURE__ */ s(
|
|
9801
|
+
/* @__PURE__ */ s(P, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
|
|
9802
9802
|
/* @__PURE__ */ e(
|
|
9803
9803
|
$,
|
|
9804
9804
|
{
|
|
9805
9805
|
"aria-disabled": !Y || !x,
|
|
9806
9806
|
onClick: () => {
|
|
9807
|
-
const cA = [...
|
|
9807
|
+
const cA = [...m];
|
|
9808
9808
|
cA.push({ ...Y, nextDate: x, frequency: H }), O(cA), tA("");
|
|
9809
9809
|
},
|
|
9810
9810
|
variant: "contained",
|
|
@@ -9823,11 +9823,11 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9823
9823
|
)
|
|
9824
9824
|
] })
|
|
9825
9825
|
] }),
|
|
9826
|
-
|
|
9826
|
+
m.length > 0 && !Y && /* @__PURE__ */ s(P, { direction: "row", gap: 16, ml: 24, mt: 32, children: [
|
|
9827
9827
|
/* @__PURE__ */ e(
|
|
9828
9828
|
$,
|
|
9829
9829
|
{
|
|
9830
|
-
"aria-disabled":
|
|
9830
|
+
"aria-disabled": m.length < 1 || p,
|
|
9831
9831
|
onClick: sA,
|
|
9832
9832
|
startIcon: p ? /* @__PURE__ */ e(
|
|
9833
9833
|
q,
|
|
@@ -9861,8 +9861,8 @@ const GE = ({ activity: A }) => /* @__PURE__ */ s(Z, { children: [
|
|
|
9861
9861
|
return h.useEffect(() => {
|
|
9862
9862
|
r(c);
|
|
9863
9863
|
}, [c]), h.useEffect(() => {
|
|
9864
|
-
const
|
|
9865
|
-
(y) => n.includes(y.guid) &&
|
|
9864
|
+
const b = c.map((y) => y.guid), p = i.filter(
|
|
9865
|
+
(y) => n.includes(y.guid) && b.includes(y.guid)
|
|
9866
9866
|
);
|
|
9867
9867
|
l(p), d({ accounts: p.map((y) => y.guid) });
|
|
9868
9868
|
}, [c, i]), f?.has_completed_cash_flow_onboarding ? /* @__PURE__ */ s(
|
|
@@ -10022,14 +10022,14 @@ function oh(A, t, i = 0) {
|
|
|
10022
10022
|
for (const [E, l] of n.entries()) {
|
|
10023
10023
|
if (l.balance <= 0.01 || l.is_impossible) continue;
|
|
10024
10024
|
const u = (l.interest_rate ?? 0) / 100 / 12, H = l.balance * u;
|
|
10025
|
-
let
|
|
10026
|
-
E === 0 && i && (
|
|
10027
|
-
const p = Math.min(l.balance,
|
|
10025
|
+
let b = l.monthly_payment ?? 0;
|
|
10026
|
+
E === 0 && i && (b += i), l.balance += H;
|
|
10027
|
+
const p = Math.min(l.balance, b + o);
|
|
10028
10028
|
if (p <= H) {
|
|
10029
10029
|
l.is_impossible = !0;
|
|
10030
10030
|
continue;
|
|
10031
10031
|
}
|
|
10032
|
-
l.balance -= p, l.balance = l.balance < 0.01 ? 0 : l.balance, r += H, l.balance <= 0 && (o +=
|
|
10032
|
+
l.balance -= p, l.balance = l.balance < 0.01 ? 0 : l.balance, r += H, l.balance <= 0 && (o += b), p > 0 && (f = !0);
|
|
10033
10033
|
}
|
|
10034
10034
|
f && a.setMonth(a.getMonth() + 1);
|
|
10035
10035
|
}
|
|
@@ -10559,8 +10559,8 @@ const ke = () => {
|
|
|
10559
10559
|
...Qn,
|
|
10560
10560
|
...qn
|
|
10561
10561
|
].includes(i.account_type);
|
|
10562
|
-
return /* @__PURE__ */ s(
|
|
10563
|
-
/* @__PURE__ */ s(
|
|
10562
|
+
return /* @__PURE__ */ s(P, { bgcolor: "background.default", p: 24, children: [
|
|
10563
|
+
/* @__PURE__ */ s(P, { gap: 12, children: [
|
|
10564
10564
|
/* @__PURE__ */ e(
|
|
10565
10565
|
Oe,
|
|
10566
10566
|
{
|
|
@@ -10571,18 +10571,18 @@ const ke = () => {
|
|
|
10571
10571
|
),
|
|
10572
10572
|
/* @__PURE__ */ e(R, { variant: "Small", children: d?.name })
|
|
10573
10573
|
] }),
|
|
10574
|
-
/* @__PURE__ */ s(
|
|
10574
|
+
/* @__PURE__ */ s(P, { gap: 8, mb: 24, mt: 4, children: [
|
|
10575
10575
|
/* @__PURE__ */ e(lt, { children: i.name || i.feed_name }),
|
|
10576
|
-
/* @__PURE__ */ s(
|
|
10576
|
+
/* @__PURE__ */ s(P, { direction: "row", justifyContent: "space-between", children: [
|
|
10577
10577
|
/* @__PURE__ */ e(R, { bold: I, variant: "Body", children: r }),
|
|
10578
10578
|
/* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: M(o, "0,0.00") })
|
|
10579
10579
|
] }),
|
|
10580
|
-
/* @__PURE__ */ s(
|
|
10580
|
+
/* @__PURE__ */ s(P, { direction: "row", justifyContent: "space-between", children: [
|
|
10581
10581
|
/* @__PURE__ */ e(R, { variant: "Small", children: a }),
|
|
10582
10582
|
/* @__PURE__ */ e(R, { variant: "Small", children: c })
|
|
10583
10583
|
] })
|
|
10584
10584
|
] }),
|
|
10585
|
-
f && /* @__PURE__ */ e(
|
|
10585
|
+
f && /* @__PURE__ */ e(P, { children: A || /* @__PURE__ */ e(Ch, {}) })
|
|
10586
10586
|
] });
|
|
10587
10587
|
}, $n = C(gh), Xh = "#FF7B08";
|
|
10588
10588
|
function ph(A, t) {
|
|
@@ -10608,26 +10608,26 @@ const mI = ({
|
|
|
10608
10608
|
)
|
|
10609
10609
|
].sort((w, D) => w - D).map((w) => new Date(w)), E = d.map((w) => {
|
|
10610
10610
|
const D = new Map(w.dataset.map((O) => [new Date(O.x).getTime(), O.y]));
|
|
10611
|
-
let
|
|
10612
|
-
const
|
|
10613
|
-
const T = D.get(O.getTime()) ??
|
|
10614
|
-
return
|
|
10611
|
+
let j = D.get(f[0].getTime()) ?? 0;
|
|
10612
|
+
const m = f.map((O) => {
|
|
10613
|
+
const T = D.get(O.getTime()) ?? j;
|
|
10614
|
+
return j = T, { x: O, y: T };
|
|
10615
10615
|
});
|
|
10616
|
-
return { ...w, dataset:
|
|
10616
|
+
return { ...w, dataset: m };
|
|
10617
10617
|
}), l = E.reduce(
|
|
10618
10618
|
(w, D) => w + (D.dataset[0]?.y ?? 0),
|
|
10619
10619
|
0
|
|
10620
10620
|
), v = f.map((w, D) => {
|
|
10621
|
-
const
|
|
10622
|
-
return { x: w, y:
|
|
10623
|
-
}), u = Math.ceil(l / 100) * 100, H = f,
|
|
10624
|
-
const
|
|
10621
|
+
const j = D / (f.length - 1), m = l * (1 - j);
|
|
10622
|
+
return { x: w, y: m };
|
|
10623
|
+
}), u = Math.ceil(l / 100) * 100, H = f, b = E.map((w, D) => {
|
|
10624
|
+
const j = 1 - D / E.length * 0.5, m = ph(Xh, j);
|
|
10625
10625
|
return {
|
|
10626
10626
|
id: `debt-${D}`,
|
|
10627
10627
|
guid: w.guid,
|
|
10628
10628
|
label: w.name,
|
|
10629
10629
|
data: w.dataset.map((O) => O.y),
|
|
10630
|
-
color:
|
|
10630
|
+
color: m,
|
|
10631
10631
|
curve: "linear",
|
|
10632
10632
|
type: "line",
|
|
10633
10633
|
area: !0,
|
|
@@ -10635,7 +10635,7 @@ const mI = ({
|
|
|
10635
10635
|
showMark: !1
|
|
10636
10636
|
};
|
|
10637
10637
|
});
|
|
10638
|
-
|
|
10638
|
+
b.push({
|
|
10639
10639
|
id: "payoff-line",
|
|
10640
10640
|
label: "Payoff Line",
|
|
10641
10641
|
data: v.map((w) => w.y),
|
|
@@ -10646,7 +10646,7 @@ const mI = ({
|
|
|
10646
10646
|
showMark: !1,
|
|
10647
10647
|
disableHighlight: !0
|
|
10648
10648
|
});
|
|
10649
|
-
const p = (w) =>
|
|
10649
|
+
const p = (w) => b.findIndex((D) => D?.guid === w);
|
|
10650
10650
|
return /* @__PURE__ */ e(
|
|
10651
10651
|
yo,
|
|
10652
10652
|
{
|
|
@@ -10655,14 +10655,14 @@ const mI = ({
|
|
|
10655
10655
|
height: t,
|
|
10656
10656
|
onAreaClick: (w, D) => {
|
|
10657
10657
|
o?.();
|
|
10658
|
-
const
|
|
10659
|
-
c(V.DEBTS_CLICK_CHART_AREA, { account_guid:
|
|
10658
|
+
const j = b.find((m) => m.id === D.seriesId);
|
|
10659
|
+
c(V.DEBTS_CLICK_CHART_AREA, { account_guid: j?.guid });
|
|
10660
10660
|
},
|
|
10661
10661
|
onHighlightChange: (w) => {
|
|
10662
|
-
const D =
|
|
10662
|
+
const D = b.find((j) => j.id === w?.seriesId)?.guid;
|
|
10663
10663
|
I?.(D ?? "");
|
|
10664
10664
|
},
|
|
10665
|
-
series:
|
|
10665
|
+
series: b,
|
|
10666
10666
|
skipAnimation: !0,
|
|
10667
10667
|
slotProps: {
|
|
10668
10668
|
legend: {
|
|
@@ -10755,12 +10755,12 @@ const mI = ({
|
|
|
10755
10755
|
children: o ? i.schedule_error_message : i.schedule_complete_message
|
|
10756
10756
|
}
|
|
10757
10757
|
) : /* @__PURE__ */ s(Z, { children: [
|
|
10758
|
-
/* @__PURE__ */ s(
|
|
10758
|
+
/* @__PURE__ */ s(P, { flexDirection: "row", justifyContent: "space-between", sx: { pt: 12, px: 24, pb: 8 }, children: [
|
|
10759
10759
|
/* @__PURE__ */ e(R, { bold: !0, variant: "XSmall", children: i.schedule_month_heading }),
|
|
10760
10760
|
/* @__PURE__ */ e(R, { bold: !0, variant: "XSmall", children: i.schedule_amount_heading })
|
|
10761
10761
|
] }),
|
|
10762
|
-
n.dataset.slice(1).map(({ x: I, y: a, payment: c }) => /* @__PURE__ */ e(
|
|
10763
|
-
|
|
10762
|
+
n.dataset.slice(1).map(({ x: I, y: a, payment: c }) => /* @__PURE__ */ e(P, { bgcolor: A.palette.background.paper, children: /* @__PURE__ */ e(P, { alignItems: "center", flexDirection: "row", pl: 24, children: /* @__PURE__ */ s(
|
|
10763
|
+
P,
|
|
10764
10764
|
{
|
|
10765
10765
|
sx: {
|
|
10766
10766
|
borderBottom: `1px solid ${A.palette.border.light}`,
|
|
@@ -10770,11 +10770,11 @@ const mI = ({
|
|
|
10770
10770
|
pr: 24
|
|
10771
10771
|
},
|
|
10772
10772
|
children: [
|
|
10773
|
-
/* @__PURE__ */ s(
|
|
10773
|
+
/* @__PURE__ */ s(P, { flexGrow: 1, children: [
|
|
10774
10774
|
/* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: nA(I, AA.MONTH_YEAR) }),
|
|
10775
10775
|
/* @__PURE__ */ e(R, { color: A.palette.secondary.main, variant: "XSmall", children: i.schedule_month_label })
|
|
10776
10776
|
] }),
|
|
10777
|
-
/* @__PURE__ */ s(
|
|
10777
|
+
/* @__PURE__ */ s(P, { children: [
|
|
10778
10778
|
/* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: M(a, "0,0.00") }),
|
|
10779
10779
|
/* @__PURE__ */ e(
|
|
10780
10780
|
R,
|
|
@@ -10790,8 +10790,8 @@ const mI = ({
|
|
|
10790
10790
|
]
|
|
10791
10791
|
}
|
|
10792
10792
|
) }) }, String(I))),
|
|
10793
|
-
/* @__PURE__ */ e(
|
|
10794
|
-
|
|
10793
|
+
/* @__PURE__ */ e(P, { bgcolor: "background.paper", children: /* @__PURE__ */ s(
|
|
10794
|
+
P,
|
|
10795
10795
|
{
|
|
10796
10796
|
sx: {
|
|
10797
10797
|
alignItems: "center",
|
|
@@ -11004,7 +11004,7 @@ const mI = ({
|
|
|
11004
11004
|
);
|
|
11005
11005
|
}), Lh = () => {
|
|
11006
11006
|
const { onEvent: A } = K(), { selectedDebtChartData: t } = ke();
|
|
11007
|
-
return h.useEffect(() => A(V.DEBT_DETAILS_VIEW), []), /* @__PURE__ */ s(
|
|
11007
|
+
return h.useEffect(() => A(V.DEBT_DETAILS_VIEW), []), /* @__PURE__ */ s(P, { bgcolor: "background.paper", children: [
|
|
11008
11008
|
t?.goal && /* @__PURE__ */ s(Z, { children: [
|
|
11009
11009
|
/* @__PURE__ */ e(LI, { goal: t.goal }),
|
|
11010
11010
|
/* @__PURE__ */ e(G, {}),
|
|
@@ -11112,7 +11112,7 @@ const mI = ({
|
|
|
11112
11112
|
onClose: t,
|
|
11113
11113
|
sx: { ...i },
|
|
11114
11114
|
title: n.details_title,
|
|
11115
|
-
children: /* @__PURE__ */ s(
|
|
11115
|
+
children: /* @__PURE__ */ s(P, { bgcolor: "background.default", children: [
|
|
11116
11116
|
/* @__PURE__ */ e($n, { customDetailsChart: I }),
|
|
11117
11117
|
/* @__PURE__ */ e(Nh, {})
|
|
11118
11118
|
] })
|
|
@@ -11154,20 +11154,20 @@ const mI = ({
|
|
|
11154
11154
|
);
|
|
11155
11155
|
}), Vh = () => {
|
|
11156
11156
|
const { debts: A } = X(), { totalMonthlyPayments: t } = Ni(), { monthlyCashFlowProfile: i } = FA(), n = t + Number(i?.extra_payment);
|
|
11157
|
-
return /* @__PURE__ */ s(
|
|
11158
|
-
/* @__PURE__ */ s(
|
|
11159
|
-
/* @__PURE__ */ s(
|
|
11157
|
+
return /* @__PURE__ */ s(P, { sx: { backgroundColor: "background.default", height: "100%" }, children: [
|
|
11158
|
+
/* @__PURE__ */ s(P, { p: 24, children: [
|
|
11159
|
+
/* @__PURE__ */ s(P, { alignItems: "center", gap: 4, mb: 24, children: [
|
|
11160
11160
|
/* @__PURE__ */ e(R, { variant: "Body", children: A.paydown_drawer_mimimum_label }),
|
|
11161
11161
|
/* @__PURE__ */ e(R, { bold: !0, variant: "H1", children: M(t, "0,0") }),
|
|
11162
11162
|
/* @__PURE__ */ e(R, { textAlign: "center", truncate: !1, variant: "Small", width: 208, children: A.paydown_drawer_minimum_info })
|
|
11163
11163
|
] }),
|
|
11164
|
-
/* @__PURE__ */ s(
|
|
11164
|
+
/* @__PURE__ */ s(P, { children: [
|
|
11165
11165
|
/* @__PURE__ */ e(R, { variant: "H3", children: A.paydown_drawer_subtitle }),
|
|
11166
11166
|
/* @__PURE__ */ e(R, { truncate: !1, variant: "ParagraphSmall", children: A.paydown_drawer_description })
|
|
11167
11167
|
] })
|
|
11168
11168
|
] }),
|
|
11169
|
-
/* @__PURE__ */ e(
|
|
11170
|
-
/* @__PURE__ */ e(
|
|
11169
|
+
/* @__PURE__ */ e(P, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ e(Yh, {}) }),
|
|
11170
|
+
/* @__PURE__ */ e(P, { flexDirection: "row-reverse", px: 24, py: 12, children: /* @__PURE__ */ s(P, { gap: 4, children: [
|
|
11171
11171
|
/* @__PURE__ */ e(R, { variant: "Small", children: A.paydown_drawer_total_payment }),
|
|
11172
11172
|
/* @__PURE__ */ e(R, { bold: !0, textAlign: "right", variant: "Body", children: M(n, "0,0") })
|
|
11173
11173
|
] }) })
|
|
@@ -11224,7 +11224,7 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
|
|
|
11224
11224
|
);
|
|
11225
11225
|
}, Kh = (A) => {
|
|
11226
11226
|
const t = A.row.account, i = On[t.account_type];
|
|
11227
|
-
return /* @__PURE__ */ s(
|
|
11227
|
+
return /* @__PURE__ */ s(P, { alignItems: "center", flexDirection: "row", children: [
|
|
11228
11228
|
/* @__PURE__ */ e(
|
|
11229
11229
|
Oe,
|
|
11230
11230
|
{
|
|
@@ -11232,7 +11232,7 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
|
|
|
11232
11232
|
institutionGuid: t.institution_guid || ""
|
|
11233
11233
|
}
|
|
11234
11234
|
),
|
|
11235
|
-
/* @__PURE__ */ s(
|
|
11235
|
+
/* @__PURE__ */ s(P, { ml: 12, children: [
|
|
11236
11236
|
/* @__PURE__ */ e(R, { variant: "Small", children: t.name }),
|
|
11237
11237
|
/* @__PURE__ */ e(R, { variant: "XSmall", children: i })
|
|
11238
11238
|
] })
|
|
@@ -11277,7 +11277,7 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
|
|
|
11277
11277
|
field: "balance",
|
|
11278
11278
|
headerName: c.table_column_balance,
|
|
11279
11279
|
renderHeader: we,
|
|
11280
|
-
valueFormatter: (
|
|
11280
|
+
valueFormatter: (b) => M(b, "0,0"),
|
|
11281
11281
|
sortable: !0,
|
|
11282
11282
|
hideSortIcons: a,
|
|
11283
11283
|
type: "number",
|
|
@@ -11290,7 +11290,7 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
|
|
|
11290
11290
|
field: "interest_rate",
|
|
11291
11291
|
headerName: c.table_column_interest_rate,
|
|
11292
11292
|
renderHeader: we,
|
|
11293
|
-
valueFormatter: (
|
|
11293
|
+
valueFormatter: (b) => isNaN(b) ? "---" : `${Number(b).toFixed(2)}%`,
|
|
11294
11294
|
sortable: !0,
|
|
11295
11295
|
hideSortIcons: a,
|
|
11296
11296
|
type: "number",
|
|
@@ -11303,7 +11303,7 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
|
|
|
11303
11303
|
field: "projected_payoff_date",
|
|
11304
11304
|
headerName: c.table_column_payoff_date,
|
|
11305
11305
|
renderHeader: we,
|
|
11306
|
-
valueFormatter: (
|
|
11306
|
+
valueFormatter: (b) => b ? nA(b, AA.MONTH_SHORT_YEAR) : "---",
|
|
11307
11307
|
sortable: !0,
|
|
11308
11308
|
hideSortIcons: a,
|
|
11309
11309
|
type: "number",
|
|
@@ -11316,7 +11316,7 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
|
|
|
11316
11316
|
field: "monthly_payment",
|
|
11317
11317
|
headerName: c.table_column_amount_due,
|
|
11318
11318
|
renderHeader: we,
|
|
11319
|
-
valueFormatter: (
|
|
11319
|
+
valueFormatter: (b) => typeof b == "number" ? M(b, "0,0") : "---",
|
|
11320
11320
|
sortable: !0,
|
|
11321
11321
|
hideSortIcons: a,
|
|
11322
11322
|
type: "number",
|
|
@@ -11339,14 +11339,14 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
|
|
|
11339
11339
|
headerAlign: "right",
|
|
11340
11340
|
width: 20
|
|
11341
11341
|
}
|
|
11342
|
-
], v = h.useMemo(() => t.map((
|
|
11343
|
-
...
|
|
11342
|
+
], v = h.useMemo(() => t.map((b, p) => ({
|
|
11343
|
+
...b,
|
|
11344
11344
|
id: p,
|
|
11345
|
-
priority: Fh(
|
|
11346
|
-
})), [t]), u = (
|
|
11347
|
-
const x =
|
|
11345
|
+
priority: Fh(b)
|
|
11346
|
+
})), [t]), u = (b) => {
|
|
11347
|
+
const x = b.target.closest("[data-id]")?.getAttribute("data-id"), w = t[Number(x)];
|
|
11348
11348
|
n?.(w?.guid ?? "");
|
|
11349
|
-
}, H = (
|
|
11349
|
+
}, H = (b) => v.find((p) => p.guid === b)?.id;
|
|
11350
11350
|
return /* @__PURE__ */ e(
|
|
11351
11351
|
L,
|
|
11352
11352
|
{
|
|
@@ -11366,11 +11366,11 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
|
|
|
11366
11366
|
disableColumnMenu: !0,
|
|
11367
11367
|
hideFooter: !0,
|
|
11368
11368
|
initialState: { sorting: { sortModel: d } },
|
|
11369
|
-
onRowClick: (
|
|
11370
|
-
r(), I(V.TRENDS_CLICK_TABLE_ROW, { account_guid:
|
|
11369
|
+
onRowClick: (b) => {
|
|
11370
|
+
r(), I(V.TRENDS_CLICK_TABLE_ROW, { account_guid: b.row.guid });
|
|
11371
11371
|
},
|
|
11372
|
-
onSortModelChange: (
|
|
11373
|
-
f(
|
|
11372
|
+
onSortModelChange: (b) => {
|
|
11373
|
+
f(b), I(V.TRENDS_CLICK_TABLE_SORT);
|
|
11374
11374
|
},
|
|
11375
11375
|
rows: v,
|
|
11376
11376
|
slotProps: {
|
|
@@ -11508,17 +11508,17 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
|
|
|
11508
11508
|
const E = o[d].dataset, v = (f.interest_rate ?? 0) / 100 / 12, u = f.balance * v;
|
|
11509
11509
|
let H = f.monthly_payment ?? 0;
|
|
11510
11510
|
d === 0 && (H += i), f.balance += u;
|
|
11511
|
-
const
|
|
11512
|
-
if (
|
|
11511
|
+
const b = Math.min(f.balance, H + I);
|
|
11512
|
+
if (b <= u) {
|
|
11513
11513
|
f.is_impossible = !0, o[d].is_impossible = !0, o[d].priority = void 0, E.push({ x: new Date(r), y: f.balance });
|
|
11514
11514
|
continue;
|
|
11515
11515
|
}
|
|
11516
|
-
f.balance -=
|
|
11516
|
+
f.balance -= b, f.balance = f.balance < 0.01 ? 0 : f.balance, E.push({
|
|
11517
11517
|
x: new Date(r),
|
|
11518
11518
|
y: Math.max(0, f.balance),
|
|
11519
|
-
payment:
|
|
11519
|
+
payment: b,
|
|
11520
11520
|
extra: I
|
|
11521
|
-
}), f.balance <= 0 && (I += H, o[d].projected_payoff_date = new Date(r)),
|
|
11521
|
+
}), f.balance <= 0 && (I += H, o[d].projected_payoff_date = new Date(r)), b > 0 && (c = !0);
|
|
11522
11522
|
}
|
|
11523
11523
|
c && r.setMonth(r.getMonth() + 1);
|
|
11524
11524
|
}
|
|
@@ -11542,10 +11542,10 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
|
|
|
11542
11542
|
}
|
|
11543
11543
|
);
|
|
11544
11544
|
}), tl = ({ onBackClick: A, sx: t }) => {
|
|
11545
|
-
const [i, n] = h.useState(!1), [r, o] = h.useState(!1), [I, a] = h.useState(!1), [c, d] = h.useState(""), { isDesktop: f, isMobile: E } = zA(), { debts: l } = X(), { onEvent: v } = K(), { isInitialized: u, setSelectedAccounts: H } = pA(), { setSelectedAccount:
|
|
11545
|
+
const [i, n] = h.useState(!1), [r, o] = h.useState(!1), [I, a] = h.useState(!1), [c, d] = h.useState(""), { isDesktop: f, isMobile: E } = zA(), { debts: l } = X(), { onEvent: v } = K(), { isInitialized: u, setSelectedAccounts: H } = pA(), { setSelectedAccount: b } = Xe(), { selectedDebtPriority: p, setSelectedDebtChartData: y } = ke(), { accounts: x } = CA(), { loadGoals: w, monthlyCashFlowProfile: D } = FA(), { debts: j } = Ni(), m = h.useMemo(() => {
|
|
11546
11546
|
const oA = D?.extra_payment ?? 0;
|
|
11547
|
-
return Al(
|
|
11548
|
-
}, [
|
|
11547
|
+
return Al(j, p, oA);
|
|
11548
|
+
}, [j, p, D]);
|
|
11549
11549
|
h.useEffect(() => {
|
|
11550
11550
|
H(x), v(V.DEBTS_VIEW);
|
|
11551
11551
|
}, []), h.useEffect(() => {
|
|
@@ -11554,8 +11554,8 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
|
|
|
11554
11554
|
u && w().finally();
|
|
11555
11555
|
}, [u]);
|
|
11556
11556
|
const O = (oA) => d(oA), T = () => {
|
|
11557
|
-
const oA = x.find((uA) => uA.guid === c), sA =
|
|
11558
|
-
oA &&
|
|
11557
|
+
const oA = x.find((uA) => uA.guid === c), sA = m.find((uA) => uA.guid === c);
|
|
11558
|
+
oA && b(oA), sA && y(sA), n(!0);
|
|
11559
11559
|
}, tA = () => v(V.DEBTS_CLICK_FILTER), Y = () => {
|
|
11560
11560
|
a(!0), v(V.DEBTS_CLICK_SNOWBALL_CTA);
|
|
11561
11561
|
}, iA = () => {
|
|
@@ -11574,9 +11574,9 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
|
|
|
11574
11574
|
sx: t,
|
|
11575
11575
|
title: l.title,
|
|
11576
11576
|
children: [
|
|
11577
|
-
/* @__PURE__ */ s(
|
|
11577
|
+
/* @__PURE__ */ s(P, { sx: { px: f ? "48px" : "24px" }, children: [
|
|
11578
11578
|
/* @__PURE__ */ s(
|
|
11579
|
-
|
|
11579
|
+
P,
|
|
11580
11580
|
{
|
|
11581
11581
|
sx: {
|
|
11582
11582
|
alignItems: E ? "flex-start" : "flex-end",
|
|
@@ -11587,7 +11587,7 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
|
|
|
11587
11587
|
/* @__PURE__ */ e(
|
|
11588
11588
|
mI,
|
|
11589
11589
|
{
|
|
11590
|
-
debts:
|
|
11590
|
+
debts: m,
|
|
11591
11591
|
height: E ? 250 : void 0,
|
|
11592
11592
|
hoveredDebtGuid: c,
|
|
11593
11593
|
onClickArea: T,
|
|
@@ -11598,7 +11598,7 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
|
|
|
11598
11598
|
/* @__PURE__ */ e(
|
|
11599
11599
|
ah,
|
|
11600
11600
|
{
|
|
11601
|
-
debts:
|
|
11601
|
+
debts: m,
|
|
11602
11602
|
onClickCta: Y,
|
|
11603
11603
|
sx: { mb: E ? "0px" : "64px" }
|
|
11604
11604
|
}
|
|
@@ -11606,10 +11606,10 @@ const we = (A) => /* @__PURE__ */ e(R, { fontWeight: 600, variant: "Small", chil
|
|
|
11606
11606
|
]
|
|
11607
11607
|
}
|
|
11608
11608
|
),
|
|
11609
|
-
/* @__PURE__ */ e(
|
|
11609
|
+
/* @__PURE__ */ e(P, { sx: { mx: E ? "-24px" : 0 }, children: /* @__PURE__ */ e(
|
|
11610
11610
|
Zh,
|
|
11611
11611
|
{
|
|
11612
|
-
debts:
|
|
11612
|
+
debts: m,
|
|
11613
11613
|
hoveredDebtGuid: c,
|
|
11614
11614
|
onClickRow: T,
|
|
11615
11615
|
onHoverRow: O
|
|
@@ -11745,7 +11745,7 @@ class eo {
|
|
|
11745
11745
|
updateRetirementGoal = async (t) => this.fetchInstance.put(`${Q.RETIREMENT_GOALS}/${t.guid}`, t).then((i) => i.retirement_goal);
|
|
11746
11746
|
}
|
|
11747
11747
|
function tn({ title: A, subtitle: t }) {
|
|
11748
|
-
return /* @__PURE__ */ s(
|
|
11748
|
+
return /* @__PURE__ */ s(P, { children: [
|
|
11749
11749
|
/* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: A }),
|
|
11750
11750
|
/* @__PURE__ */ e(R, { sx: { fontWeight: 400 }, variant: "Body", children: t })
|
|
11751
11751
|
] });
|
|
@@ -11867,9 +11867,9 @@ const cl = (A, t) => {
|
|
|
11867
11867
|
title: /* @__PURE__ */ e(lt, { color: "text.secondary", fontWeight: 400, variant: "Body", children: A.name })
|
|
11868
11868
|
}
|
|
11869
11869
|
),
|
|
11870
|
-
/* @__PURE__ */ e(Ce, { sx: { pt: 0 }, children: /* @__PURE__ */ s(
|
|
11870
|
+
/* @__PURE__ */ e(Ce, { sx: { pt: 0 }, children: /* @__PURE__ */ s(P, { gap: 6, children: [
|
|
11871
11871
|
/* @__PURE__ */ e(ti, { data: v, height: 24 }),
|
|
11872
|
-
/* @__PURE__ */ s(
|
|
11872
|
+
/* @__PURE__ */ s(P, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
11873
11873
|
/* @__PURE__ */ e(R, { color: "text.secondary", variant: "XSmall", children: f }),
|
|
11874
11874
|
A.projected_to_complete_at && /* @__PURE__ */ e(R, { color: "text.secondary", variant: "XSmall", children: E })
|
|
11875
11875
|
] })
|
|
@@ -11886,7 +11886,7 @@ const cl = (A, t) => {
|
|
|
11886
11886
|
A === B.SAVINGS_TRACK ? d.amount_allocated_for_savings_goals = I : A === B.DEBT_TRACK ? d.amount_allocated_for_debt_goals = I : A === B.RETIREMENT_TRACK && (d.amount_allocated_for_retirement_goals = I), await r(d), i(t.alert_contribution_updated);
|
|
11887
11887
|
}
|
|
11888
11888
|
};
|
|
11889
|
-
return /* @__PURE__ */ e(
|
|
11889
|
+
return /* @__PURE__ */ e(P, { bgcolor: "background.paper", children: /* @__PURE__ */ e(
|
|
11890
11890
|
Ge,
|
|
11891
11891
|
{
|
|
11892
11892
|
isSaveDisabled: !I || isNaN(I),
|
|
@@ -11920,7 +11920,7 @@ const cl = (A, t) => {
|
|
|
11920
11920
|
flex: 1,
|
|
11921
11921
|
renderCell: (v) => {
|
|
11922
11922
|
const u = v.row;
|
|
11923
|
-
return /* @__PURE__ */ s(
|
|
11923
|
+
return /* @__PURE__ */ s(P, { children: [
|
|
11924
11924
|
/* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: u.name }),
|
|
11925
11925
|
/* @__PURE__ */ e(R, { variant: "XSmall", children: z(
|
|
11926
11926
|
t.goal_projection,
|
|
@@ -11951,15 +11951,15 @@ const cl = (A, t) => {
|
|
|
11951
11951
|
})), E = ({ oldIndex: v, targetIndex: u }) => {
|
|
11952
11952
|
const H = [...a];
|
|
11953
11953
|
H.splice(u, 0, H.splice(v, 1)[0]);
|
|
11954
|
-
for (let
|
|
11955
|
-
H[
|
|
11954
|
+
for (let b = 0; b < H.length; b += 1)
|
|
11955
|
+
H[b].position = b + 1;
|
|
11956
11956
|
c(H);
|
|
11957
11957
|
}, l = async () => {
|
|
11958
11958
|
await n(a), r(t.alert_goals_reordered), I(!1);
|
|
11959
11959
|
};
|
|
11960
|
-
return /* @__PURE__ */ s(
|
|
11960
|
+
return /* @__PURE__ */ s(P, { children: [
|
|
11961
11961
|
/* @__PURE__ */ e(W, { children: /* @__PURE__ */ e(aA, { onClick: () => I(!0), children: /* @__PURE__ */ e(eA, { children: /* @__PURE__ */ s(
|
|
11962
|
-
|
|
11962
|
+
P,
|
|
11963
11963
|
{
|
|
11964
11964
|
alignItems: "center",
|
|
11965
11965
|
color: "action.active",
|
|
@@ -11979,7 +11979,7 @@ const cl = (A, t) => {
|
|
|
11979
11979
|
onClose: () => I(!1),
|
|
11980
11980
|
onPrimaryAction: l,
|
|
11981
11981
|
title: t.reorder_goals_title,
|
|
11982
|
-
children: /* @__PURE__ */ s(
|
|
11982
|
+
children: /* @__PURE__ */ s(P, { children: [
|
|
11983
11983
|
/* @__PURE__ */ e(HA, { sx: { my: 12, mx: 24 }, children: t.reorder_goals_description }),
|
|
11984
11984
|
/* @__PURE__ */ e(
|
|
11985
11985
|
Gt,
|
|
@@ -12022,8 +12022,8 @@ const cl = (A, t) => {
|
|
|
12022
12022
|
children: /* @__PURE__ */ e(Qe, { sx: { bgcolor: "text.primary", height: "16px", width: "16px" }, children: /* @__PURE__ */ e(R, { bold: !0, variant: "XSmall", children: t + 1 }) })
|
|
12023
12023
|
}
|
|
12024
12024
|
),
|
|
12025
|
-
/* @__PURE__ */ e(eA, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ s(
|
|
12026
|
-
/* @__PURE__ */ s(
|
|
12025
|
+
/* @__PURE__ */ e(eA, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
12026
|
+
/* @__PURE__ */ s(P, { children: [
|
|
12027
12027
|
/* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: A.name }),
|
|
12028
12028
|
/* @__PURE__ */ e(R, { variant: "XSmall", children: z(
|
|
12029
12029
|
i.goal_projection,
|
|
@@ -12040,8 +12040,8 @@ const cl = (A, t) => {
|
|
|
12040
12040
|
const { goals: t } = X();
|
|
12041
12041
|
return /* @__PURE__ */ e(W, { children: /* @__PURE__ */ s(aA, { children: [
|
|
12042
12042
|
/* @__PURE__ */ e(xA, { sx: { alignItems: "center", display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(_a, { color: "success", filled: !0, size: 20 }) }),
|
|
12043
|
-
/* @__PURE__ */ e(eA, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ s(
|
|
12044
|
-
/* @__PURE__ */ s(
|
|
12043
|
+
/* @__PURE__ */ e(eA, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
12044
|
+
/* @__PURE__ */ s(P, { children: [
|
|
12045
12045
|
/* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: A.name }),
|
|
12046
12046
|
/* @__PURE__ */ e(R, { variant: "XSmall", children: z(
|
|
12047
12047
|
t.completed_label,
|
|
@@ -12061,7 +12061,7 @@ const cl = (A, t) => {
|
|
|
12061
12061
|
(v) => v.track_type === B.SAVINGS_TRACK && v.has_been_spent || v.track_type !== B.SAVINGS_TRACK && v.is_complete
|
|
12062
12062
|
), [a, c] = h.useState(!1);
|
|
12063
12063
|
let d = t.manage_saving_goals, f = t.manage_saving_drawer_title, E = t.manage_saving_title, l = t.manage_saving_description;
|
|
12064
|
-
return A === B.DEBT_TRACK ? (d = t.manage_debt_goals, f = t.manage_debt_drawer_title, E = t.manage_debt_title, l = t.manage_debt_description) : A === B.RETIREMENT_TRACK && (d = t.manage_retirement_goals, f = t.manage_retirement_drawer_title, E = t.manage_retirement_title, l = t.manage_retirement_description), /* @__PURE__ */ s(
|
|
12064
|
+
return A === B.DEBT_TRACK ? (d = t.manage_debt_goals, f = t.manage_debt_drawer_title, E = t.manage_debt_title, l = t.manage_debt_description) : A === B.RETIREMENT_TRACK && (d = t.manage_retirement_goals, f = t.manage_retirement_drawer_title, E = t.manage_retirement_title, l = t.manage_retirement_description), /* @__PURE__ */ s(P, { children: [
|
|
12065
12065
|
/* @__PURE__ */ e($, { endIcon: /* @__PURE__ */ e(ce, {}), onClick: () => c(!0), children: d }),
|
|
12066
12066
|
/* @__PURE__ */ e(
|
|
12067
12067
|
IA,
|
|
@@ -12070,8 +12070,8 @@ const cl = (A, t) => {
|
|
|
12070
12070
|
isOpen: a,
|
|
12071
12071
|
onClose: () => c(!1),
|
|
12072
12072
|
title: f,
|
|
12073
|
-
children: /* @__PURE__ */ s(
|
|
12074
|
-
/* @__PURE__ */ s(
|
|
12073
|
+
children: /* @__PURE__ */ s(P, { children: [
|
|
12074
|
+
/* @__PURE__ */ s(P, { m: 24, children: [
|
|
12075
12075
|
/* @__PURE__ */ e(ne, { children: E }),
|
|
12076
12076
|
/* @__PURE__ */ e(HA, { color: "text.secondary", sx: { textWrap: "wrap" }, variant: "ParagraphSmall", children: l })
|
|
12077
12077
|
] }),
|
|
@@ -12080,7 +12080,7 @@ const cl = (A, t) => {
|
|
|
12080
12080
|
/* @__PURE__ */ s(rA, { sx: { bgcolor: "background.paper" }, children: [
|
|
12081
12081
|
o.map((v, u) => {
|
|
12082
12082
|
const H = u >= o.length - 1;
|
|
12083
|
-
return /* @__PURE__ */ s(
|
|
12083
|
+
return /* @__PURE__ */ s(P, { children: [
|
|
12084
12084
|
/* @__PURE__ */ e(hl, { goal: v, index: u }),
|
|
12085
12085
|
/* @__PURE__ */ e(
|
|
12086
12086
|
G,
|
|
@@ -12090,16 +12090,16 @@ const cl = (A, t) => {
|
|
|
12090
12090
|
)
|
|
12091
12091
|
] }, `ongoing-${v.guid}`);
|
|
12092
12092
|
}),
|
|
12093
|
-
A !== B.RETIREMENT_TRACK && /* @__PURE__ */ s(
|
|
12093
|
+
A !== B.RETIREMENT_TRACK && /* @__PURE__ */ s(P, { children: [
|
|
12094
12094
|
/* @__PURE__ */ e(El, { goals: o }),
|
|
12095
12095
|
/* @__PURE__ */ e(G, {})
|
|
12096
12096
|
] })
|
|
12097
12097
|
] }),
|
|
12098
|
-
A !== B.RETIREMENT_TRACK && I.length > 0 && /* @__PURE__ */ s(
|
|
12098
|
+
A !== B.RETIREMENT_TRACK && I.length > 0 && /* @__PURE__ */ s(P, { children: [
|
|
12099
12099
|
/* @__PURE__ */ e(R, { bold: !0, sx: { mb: 4, mx: 24, mt: 12 }, variant: "XSmall", children: t.complete_title }),
|
|
12100
12100
|
/* @__PURE__ */ e(rA, { sx: { bgcolor: "background.paper" }, children: I.map((v, u) => {
|
|
12101
12101
|
const H = u > o.length - 1;
|
|
12102
|
-
return /* @__PURE__ */ s(
|
|
12102
|
+
return /* @__PURE__ */ s(P, { children: [
|
|
12103
12103
|
/* @__PURE__ */ e(ll, { goal: v }),
|
|
12104
12104
|
/* @__PURE__ */ e(G, { variant: H ? "fullWidth" : "inset" })
|
|
12105
12105
|
] }, `complete-${v.guid}`);
|
|
@@ -12115,8 +12115,8 @@ const cl = (A, t) => {
|
|
|
12115
12115
|
), c = I.filter(
|
|
12116
12116
|
(f) => f.track_type === B.SAVINGS_TRACK && f.has_been_spent || f.track_type !== B.SAVINGS_TRACK && f.is_complete
|
|
12117
12117
|
), d = A === B.DEBT_TRACK ? n.zero_state_complete_debt : n.zero_state_complete_savings;
|
|
12118
|
-
return /* @__PURE__ */ s(
|
|
12119
|
-
/* @__PURE__ */ s(
|
|
12118
|
+
return /* @__PURE__ */ s(P, { mt: 16, mx: i ? 24 : 0, children: [
|
|
12119
|
+
/* @__PURE__ */ s(P, { alignItems: "center", direction: "row", justifyContent: "space-between", mb: 8, children: [
|
|
12120
12120
|
/* @__PURE__ */ e(R, { color: "text.secondary", variant: "Small", children: n.ongoing_title }),
|
|
12121
12121
|
/* @__PURE__ */ e(vl, { trackType: A })
|
|
12122
12122
|
] }),
|
|
@@ -12124,7 +12124,7 @@ const cl = (A, t) => {
|
|
|
12124
12124
|
// Goal should be full width in mobile or if it's the first goal (unless there are 2)
|
|
12125
12125
|
/* @__PURE__ */ e(tt, { xs: i || E === 0 && l.length !== 2 ? 12 : 6, children: /* @__PURE__ */ e(qI, { goal: f, onClick: () => o(f) }, f.guid) }, E)
|
|
12126
12126
|
)) }) : /* @__PURE__ */ s(
|
|
12127
|
-
|
|
12127
|
+
P,
|
|
12128
12128
|
{
|
|
12129
12129
|
alignItems: "center",
|
|
12130
12130
|
bgcolor: "background.default",
|
|
@@ -12138,11 +12138,11 @@ const cl = (A, t) => {
|
|
|
12138
12138
|
]
|
|
12139
12139
|
}
|
|
12140
12140
|
),
|
|
12141
|
-
A !== B.RETIREMENT_TRACK && /* @__PURE__ */ s(
|
|
12141
|
+
A !== B.RETIREMENT_TRACK && /* @__PURE__ */ s(P, { gap: 16, mt: 48, children: [
|
|
12142
12142
|
/* @__PURE__ */ e(R, { color: "text.secondary", variant: "Small", children: n.complete_title }),
|
|
12143
|
-
c.length === 0 && /* @__PURE__ */ e(
|
|
12144
|
-
c.map((f) => /* @__PURE__ */ e(ze, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ e(Go, { onClick: () => o(f), children: /* @__PURE__ */ e(Ce, { sx: { ":last-child": { pb: 16 } }, children: /* @__PURE__ */ s(
|
|
12145
|
-
/* @__PURE__ */ s(
|
|
12143
|
+
c.length === 0 && /* @__PURE__ */ e(P, { alignItems: "center", bgcolor: "background.default", borderRadius: 2, py: 18, children: /* @__PURE__ */ e(HA, { sx: { color: "text.secondary" }, variant: "Small", children: d }) }),
|
|
12144
|
+
c.map((f) => /* @__PURE__ */ e(ze, { elevation: 2, sx: { borderRadius: 2 }, children: /* @__PURE__ */ e(Go, { onClick: () => o(f), children: /* @__PURE__ */ e(Ce, { sx: { ":last-child": { pb: 16 } }, children: /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
12145
|
+
/* @__PURE__ */ s(P, { alignItems: "center", direction: "row", gap: 6, children: [
|
|
12146
12146
|
/* @__PURE__ */ e(q, { color: "success", fill: !0, name: "check_circle", size: 20 }),
|
|
12147
12147
|
/* @__PURE__ */ e(R, { color: "text.secondary", variant: "Body", children: f.name })
|
|
12148
12148
|
] }),
|
|
@@ -12152,7 +12152,7 @@ const cl = (A, t) => {
|
|
|
12152
12152
|
] });
|
|
12153
12153
|
}), Rl = ({ goalType: A, onClick: t }) => {
|
|
12154
12154
|
const { goals: i } = X(), { bgcolor: n, icon: r, label: o, description: I, subTypes: a, type: c } = A, [d, f] = h.useState(!1), E = a.length > 0;
|
|
12155
|
-
return /* @__PURE__ */ e(
|
|
12155
|
+
return /* @__PURE__ */ e(P, { children: /* @__PURE__ */ s(rA, { sx: { bgcolor: "background.paper" }, children: [
|
|
12156
12156
|
/* @__PURE__ */ e(W, { children: /* @__PURE__ */ s(
|
|
12157
12157
|
aA,
|
|
12158
12158
|
{
|
|
@@ -12266,7 +12266,7 @@ const cl = (A, t) => {
|
|
|
12266
12266
|
}
|
|
12267
12267
|
c(!1), A?.(B.DEBT_TRACK);
|
|
12268
12268
|
};
|
|
12269
|
-
return /* @__PURE__ */ s(
|
|
12269
|
+
return /* @__PURE__ */ s(P, { children: [
|
|
12270
12270
|
/* @__PURE__ */ e(rA, { sx: { bgcolor: "background.paper" }, children: d.map((l, v) => /* @__PURE__ */ e(Rl, { goalType: l, onClick: f }, v)) }),
|
|
12271
12271
|
/* @__PURE__ */ e(
|
|
12272
12272
|
GI,
|
|
@@ -12301,7 +12301,7 @@ const cl = (A, t) => {
|
|
|
12301
12301
|
),
|
|
12302
12302
|
/* @__PURE__ */ e(ce, {})
|
|
12303
12303
|
] }),
|
|
12304
|
-
/* @__PURE__ */ e(IA, { isOpen: n, onClose: () => r(!1), title: t.account_details, children: /* @__PURE__ */ s(
|
|
12304
|
+
/* @__PURE__ */ e(IA, { isOpen: n, onClose: () => r(!1), title: t.account_details, children: /* @__PURE__ */ s(P, { children: [
|
|
12305
12305
|
/* @__PURE__ */ e($n, {}),
|
|
12306
12306
|
/* @__PURE__ */ e(SI, {})
|
|
12307
12307
|
] }) })
|
|
@@ -12345,14 +12345,14 @@ const cl = (A, t) => {
|
|
|
12345
12345
|
const v = { ...A, account_guid: l };
|
|
12346
12346
|
c ? I(v) : (await a(v), o(r.alert_account_changed)), f(!1);
|
|
12347
12347
|
};
|
|
12348
|
-
return /* @__PURE__ */ s(
|
|
12348
|
+
return /* @__PURE__ */ s(P, { children: [
|
|
12349
12349
|
c ? /* @__PURE__ */ e(W, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ s(aA, { onClick: () => f(!0), children: [
|
|
12350
|
-
/* @__PURE__ */ e(eA, { children: /* @__PURE__ */ s(
|
|
12350
|
+
/* @__PURE__ */ e(eA, { children: /* @__PURE__ */ s(P, { alignItems: "center", color: "action.active", direction: "row", gap: 8, children: [
|
|
12351
12351
|
/* @__PURE__ */ e(jo, { filled: !0 }),
|
|
12352
12352
|
r.details_add_account
|
|
12353
12353
|
] }) }),
|
|
12354
12354
|
/* @__PURE__ */ e(ce, { color: "primary" })
|
|
12355
|
-
] }) }) : /* @__PURE__ */ s(
|
|
12355
|
+
] }) }) : /* @__PURE__ */ s(P, { sx: { gap: 8, my: 24, mx: 24 }, children: [
|
|
12356
12356
|
/* @__PURE__ */ e($, { onClick: () => f(!0), variant: "text", children: r.details_change_account }),
|
|
12357
12357
|
/* @__PURE__ */ e(
|
|
12358
12358
|
R,
|
|
@@ -12364,7 +12364,7 @@ const cl = (A, t) => {
|
|
|
12364
12364
|
}
|
|
12365
12365
|
)
|
|
12366
12366
|
] }),
|
|
12367
|
-
/* @__PURE__ */ e(IA, { isOpen: d, onClose: () => f(!1), title: r.details_change_account, children: /* @__PURE__ */ s(
|
|
12367
|
+
/* @__PURE__ */ e(IA, { isOpen: d, onClose: () => f(!1), title: r.details_change_account, children: /* @__PURE__ */ s(P, { children: [
|
|
12368
12368
|
/* @__PURE__ */ e(R, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: n.account_types[1] }),
|
|
12369
12369
|
/* @__PURE__ */ e(rA, { sx: { bgcolor: "background.paper" }, children: t.map((l) => /* @__PURE__ */ e(W, { children: /* @__PURE__ */ s(aA, { onClick: () => E(l.guid), children: [
|
|
12370
12370
|
/* @__PURE__ */ e(xA, { children: /* @__PURE__ */ e(
|
|
@@ -12514,24 +12514,24 @@ const cl = (A, t) => {
|
|
|
12514
12514
|
), l = i.filter(
|
|
12515
12515
|
(u) => !o.find((H) => H.account_guid === u.guid)
|
|
12516
12516
|
), v = async (u) => {
|
|
12517
|
-
const H = u.map((
|
|
12518
|
-
account_guid:
|
|
12517
|
+
const H = u.map((b) => ({
|
|
12518
|
+
account_guid: b.guid,
|
|
12519
12519
|
retirement_goal_guid: A.guid
|
|
12520
12520
|
}));
|
|
12521
12521
|
if (f)
|
|
12522
12522
|
a(H);
|
|
12523
12523
|
else
|
|
12524
|
-
for (const
|
|
12525
|
-
await n(
|
|
12524
|
+
for (const b of H)
|
|
12525
|
+
await n(b), I(t.alert_account_added);
|
|
12526
12526
|
d(!1);
|
|
12527
12527
|
};
|
|
12528
|
-
return /* @__PURE__ */ s(
|
|
12529
|
-
E.map((u) => /* @__PURE__ */ s(
|
|
12528
|
+
return /* @__PURE__ */ s(P, { children: [
|
|
12529
|
+
E.map((u) => /* @__PURE__ */ s(P, { children: [
|
|
12530
12530
|
/* @__PURE__ */ e(MI, { account: u }),
|
|
12531
12531
|
/* @__PURE__ */ e(G, {})
|
|
12532
12532
|
] }, u.guid)),
|
|
12533
12533
|
/* @__PURE__ */ e(W, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ s(aA, { onClick: () => d(!0), children: [
|
|
12534
|
-
/* @__PURE__ */ e(eA, { children: /* @__PURE__ */ s(
|
|
12534
|
+
/* @__PURE__ */ e(eA, { children: /* @__PURE__ */ s(P, { alignItems: "center", color: "action.active", direction: "row", gap: 8, children: [
|
|
12535
12535
|
/* @__PURE__ */ e(jo, { filled: !0 }),
|
|
12536
12536
|
t.details_add_account
|
|
12537
12537
|
] }) }),
|
|
@@ -12554,8 +12554,8 @@ const cl = (A, t) => {
|
|
|
12554
12554
|
[i, A]
|
|
12555
12555
|
), r = A.track_type;
|
|
12556
12556
|
let o = t.details_save_title;
|
|
12557
|
-
return A.track_type === B.DEBT_TRACK ? o = t.details_debt_title : A.track_type === B.RETIREMENT_TRACK && (o = t.details_retirement_title), /* @__PURE__ */ s(
|
|
12558
|
-
/* @__PURE__ */ s(
|
|
12557
|
+
return A.track_type === B.DEBT_TRACK ? o = t.details_debt_title : A.track_type === B.RETIREMENT_TRACK && (o = t.details_retirement_title), /* @__PURE__ */ s(P, { children: [
|
|
12558
|
+
/* @__PURE__ */ s(P, { mx: 24, children: [
|
|
12559
12559
|
/* @__PURE__ */ e(R, { color: "text.secondary", sx: { mb: 4, mt: 24 }, variant: "XSmall", children: o }),
|
|
12560
12560
|
/* @__PURE__ */ e(qI, { goal: A, isInDrawer: !0 }),
|
|
12561
12561
|
/* @__PURE__ */ e(R, { color: "text.secondary", sx: { mb: 4, mt: 24 }, variant: "XSmall", children: t.details_title })
|
|
@@ -12603,31 +12603,31 @@ const cl = (A, t) => {
|
|
|
12603
12603
|
setAlert: c,
|
|
12604
12604
|
setSelectedGoal: d,
|
|
12605
12605
|
updateGoal: f
|
|
12606
|
-
} = FA(), { user: E } = Ue(), [l, v] = h.useState(!1), u = !a?.guid, H = a?.track_type === B.SAVINGS_TRACK && a.is_complete && !a.has_been_spent,
|
|
12606
|
+
} = FA(), { user: E } = Ue(), [l, v] = h.useState(!1), u = !a?.guid, H = a?.track_type === B.SAVINGS_TRACK && a.is_complete && !a.has_been_spent, b = h.useMemo(() => a ? a.track_type === B.SAVINGS_TRACK ? !!a.name && !!a.amount : a.track_type === B.DEBT_TRACK ? !0 : a.track_type === B.RETIREMENT_TRACK ? !!a.name && !!a.amount && !!a.retirement_age && !!E.birthday : !0 : !1, [a]);
|
|
12607
12607
|
let p = i.delete_button, y = () => v(!0);
|
|
12608
12608
|
u ? (y = () => x(), p = i.save_button) : H && (y = () => D(), p = t.mark_as_complete_button);
|
|
12609
12609
|
const x = async () => {
|
|
12610
12610
|
if (a) {
|
|
12611
|
-
const
|
|
12612
|
-
|
|
12611
|
+
const j = a.track_type;
|
|
12612
|
+
j !== B.RETIREMENT_TRACK ? await n(a) : j === B.RETIREMENT_TRACK && await r({ ...a, target_amount: a.amount }), c(t.alert_goal_added), d(void 0), j && A?.(j);
|
|
12613
12613
|
}
|
|
12614
12614
|
}, w = async () => {
|
|
12615
12615
|
a && (a.track_type !== B.RETIREMENT_TRACK ? await o(a.guid) : a.track_type === B.RETIREMENT_TRACK && await I(a), c(t.alert_goal_deleted), d(void 0));
|
|
12616
12616
|
}, D = async () => {
|
|
12617
|
-
const
|
|
12617
|
+
const j = {
|
|
12618
12618
|
...a,
|
|
12619
12619
|
has_been_spent: !0
|
|
12620
12620
|
};
|
|
12621
|
-
await f(
|
|
12621
|
+
await f(j), c(t.alert_goal_completed), d(void 0);
|
|
12622
12622
|
};
|
|
12623
|
-
return /* @__PURE__ */ s(
|
|
12623
|
+
return /* @__PURE__ */ s(P, { children: [
|
|
12624
12624
|
/* @__PURE__ */ e(
|
|
12625
12625
|
IA,
|
|
12626
12626
|
{
|
|
12627
12627
|
ariaLabelClose: i.close_aria,
|
|
12628
12628
|
hasSecondaryAction: u,
|
|
12629
12629
|
isOpen: !!a,
|
|
12630
|
-
isPrimaryDisabled: !
|
|
12630
|
+
isPrimaryDisabled: !b,
|
|
12631
12631
|
onClose: () => d(void 0),
|
|
12632
12632
|
onPrimaryAction: y,
|
|
12633
12633
|
primaryColor: u || H ? "primary" : "error",
|
|
@@ -12658,7 +12658,7 @@ const cl = (A, t) => {
|
|
|
12658
12658
|
onClick: n,
|
|
12659
12659
|
subText: r
|
|
12660
12660
|
}) => /* @__PURE__ */ s(
|
|
12661
|
-
|
|
12661
|
+
P,
|
|
12662
12662
|
{
|
|
12663
12663
|
sx: {
|
|
12664
12664
|
mt: 54,
|
|
@@ -12680,10 +12680,10 @@ const cl = (A, t) => {
|
|
|
12680
12680
|
]
|
|
12681
12681
|
}
|
|
12682
12682
|
), jP = C(({ onBackClick: A, sx: t }) => {
|
|
12683
|
-
const { onEvent: i } = K(), { isMobile: n } = zA(), { accounts: r } = CA(), { isInitialized: o, setSelectedAccounts: I } = pA(), { goals: a, common: c } = X(), { alert: d, goals: f, loadGoals: E, monthlyCashFlowProfile: l, setAlert: v, retirmentGoals: u } = FA(), [H,
|
|
12683
|
+
const { onEvent: i } = K(), { isMobile: n } = zA(), { accounts: r } = CA(), { isInitialized: o, setSelectedAccounts: I } = pA(), { goals: a, common: c } = X(), { alert: d, goals: f, loadGoals: E, monthlyCashFlowProfile: l, setAlert: v, retirmentGoals: u } = FA(), [H, b] = h.useState(0), [p, y] = h.useState(!1), x = l?.amount_allocated_for_savings_goals || 0, w = l?.amount_allocated_for_debt_goals || 0, D = l?.amount_allocated_for_retirement_goals || 0, j = z(
|
|
12684
12684
|
n ? a.tab_subtitle_mobile : a.tab_subtitle,
|
|
12685
12685
|
M(x, "0,0")
|
|
12686
|
-
),
|
|
12686
|
+
), m = z(
|
|
12687
12687
|
n ? a.tab_subtitle_mobile : a.tab_subtitle,
|
|
12688
12688
|
M(w, "0,0")
|
|
12689
12689
|
), O = z(
|
|
@@ -12700,7 +12700,7 @@ const cl = (A, t) => {
|
|
|
12700
12700
|
}, tA = () => {
|
|
12701
12701
|
y(!0), i(V.GOALS_CLICK_ADD);
|
|
12702
12702
|
}, Y = (oA) => {
|
|
12703
|
-
y(!1), oA === B.SAVINGS_TRACK ?
|
|
12703
|
+
y(!1), oA === B.SAVINGS_TRACK ? b(0) : oA === B.DEBT_TRACK ? b(1) : oA === B.RETIREMENT_TRACK && b(2);
|
|
12704
12704
|
}, iA = h.useMemo(
|
|
12705
12705
|
() => f.length === 0 || f.every(({ track_type: oA }) => !oA) && u.length === 0,
|
|
12706
12706
|
[f, u]
|
|
@@ -12722,11 +12722,11 @@ const cl = (A, t) => {
|
|
|
12722
12722
|
title: a.title,
|
|
12723
12723
|
children: [
|
|
12724
12724
|
!o && /* @__PURE__ */ e(ee, {}),
|
|
12725
|
-
o && /* @__PURE__ */ s(
|
|
12725
|
+
o && /* @__PURE__ */ s(P, { mx: n ? 0 : 48, my: 24, children: [
|
|
12726
12726
|
/* @__PURE__ */ s(
|
|
12727
12727
|
Se,
|
|
12728
12728
|
{
|
|
12729
|
-
onChange: (oA, sA) =>
|
|
12729
|
+
onChange: (oA, sA) => b(sA),
|
|
12730
12730
|
sx: { bgcolor: "background.paper" },
|
|
12731
12731
|
value: iA ? !1 : H,
|
|
12732
12732
|
variant: "fullWidth",
|
|
@@ -12735,14 +12735,14 @@ const cl = (A, t) => {
|
|
|
12735
12735
|
GA,
|
|
12736
12736
|
{
|
|
12737
12737
|
disabled: iA,
|
|
12738
|
-
label: /* @__PURE__ */ e(tn, { subtitle:
|
|
12738
|
+
label: /* @__PURE__ */ e(tn, { subtitle: j, title: a.tab_saving_title })
|
|
12739
12739
|
}
|
|
12740
12740
|
),
|
|
12741
12741
|
/* @__PURE__ */ e(
|
|
12742
12742
|
GA,
|
|
12743
12743
|
{
|
|
12744
12744
|
disabled: iA,
|
|
12745
|
-
label: /* @__PURE__ */ e(tn, { subtitle:
|
|
12745
|
+
label: /* @__PURE__ */ e(tn, { subtitle: m, title: a.tab_debt_title })
|
|
12746
12746
|
}
|
|
12747
12747
|
),
|
|
12748
12748
|
/* @__PURE__ */ e(
|
|
@@ -13248,7 +13248,7 @@ const ml = /^[ a-zA-ZÀ-ÿ0-9]+$/, Ol = 50, io = 65, Ll = ({
|
|
|
13248
13248
|
estimateSize: () => io,
|
|
13249
13249
|
overscan: 5
|
|
13250
13250
|
});
|
|
13251
|
-
return h.useEffect(() => E.measure(), [n]), /* @__PURE__ */ s(
|
|
13251
|
+
return h.useEffect(() => E.measure(), [n]), /* @__PURE__ */ s(P, { className: "mx-mrt-lookup", children: [
|
|
13252
13252
|
/* @__PURE__ */ e(
|
|
13253
13253
|
Ti,
|
|
13254
13254
|
{
|
|
@@ -13283,7 +13283,7 @@ const ml = /^[ a-zA-ZÀ-ÿ0-9]+$/, Ol = 50, io = 65, Ll = ({
|
|
|
13283
13283
|
);
|
|
13284
13284
|
})
|
|
13285
13285
|
] }),
|
|
13286
|
-
!n.length && /* @__PURE__ */ e(
|
|
13286
|
+
!n.length && /* @__PURE__ */ e(P, { alignItems: "center", my: 24, children: /* @__PURE__ */ e(R, { bold: !0, color: "secondary", variant: "Small", children: o.search_zero_state }) })
|
|
13287
13287
|
] }) }) })
|
|
13288
13288
|
] });
|
|
13289
13289
|
}, mP = C(Ll);
|
|
@@ -13526,7 +13526,7 @@ const Sl = ({
|
|
|
13526
13526
|
children: /* @__PURE__ */ e(
|
|
13527
13527
|
eA,
|
|
13528
13528
|
{
|
|
13529
|
-
primary: /* @__PURE__ */ s(
|
|
13529
|
+
primary: /* @__PURE__ */ s(P, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
|
|
13530
13530
|
/* @__PURE__ */ e(R, { variant: "Body", children: Ko(A.x) }),
|
|
13531
13531
|
/* @__PURE__ */ e(OA, { amount: A.y, sx: { color: "inherit" }, variant: "Body" })
|
|
13532
13532
|
] })
|
|
@@ -13555,7 +13555,7 @@ const Sl = ({
|
|
|
13555
13555
|
};
|
|
13556
13556
|
return E && (v.color = l ? "inherit" : v.color, v.backgroundColor = c.palette.action.hover), l && (v.backgroundColor = c.palette.primary.main, v.borderBottom = c.palette.border.light, v.color = c.palette.common.white), v;
|
|
13557
13557
|
};
|
|
13558
|
-
return /* @__PURE__ */ s(
|
|
13558
|
+
return /* @__PURE__ */ s(P, { direction: "column", sx: { minWidth: 320 }, children: [
|
|
13559
13559
|
/* @__PURE__ */ s(rA, { children: [
|
|
13560
13560
|
/* @__PURE__ */ e(me, { sx: { backgroundColor: "transparent", mb: 8, mt: 12, px: 12 }, children: /* @__PURE__ */ e(R, { bold: !0, component: "h2", variant: "Body", children: a.monthly_totals }) }),
|
|
13561
13561
|
/* @__PURE__ */ e(G, {}),
|
|
@@ -13607,7 +13607,7 @@ const Sl = ({
|
|
|
13607
13607
|
] });
|
|
13608
13608
|
}, Ar = C(Zl), Jl = ({ hoveredData: A, selectedData: t }) => {
|
|
13609
13609
|
const { net_worth: i } = X(), n = oe(), r = A || t, o = Is(Ai(r.x), "MMMM");
|
|
13610
|
-
return /* @__PURE__ */ s(
|
|
13610
|
+
return /* @__PURE__ */ s(P, { alignItems: "center", direction: "column", m: 24, children: [
|
|
13611
13611
|
/* @__PURE__ */ e(R, { color: n.palette.secondary.main, variant: "Small", children: `${o} ${i.net_worth}` }),
|
|
13612
13612
|
/* @__PURE__ */ e(OA, { amount: r.y, variant: "H2" }),
|
|
13613
13613
|
/* @__PURE__ */ e(Ar, { currencyLabel: i.this_month, netWorth: r, theme: n })
|
|
@@ -13630,7 +13630,7 @@ const Sl = ({
|
|
|
13630
13630
|
/* @__PURE__ */ e(W, { sx: () => ({ py: 14 }), children: /* @__PURE__ */ e(
|
|
13631
13631
|
eA,
|
|
13632
13632
|
{
|
|
13633
|
-
primary: /* @__PURE__ */ s(
|
|
13633
|
+
primary: /* @__PURE__ */ s(P, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
|
|
13634
13634
|
/* @__PURE__ */ e(R, { variant: "Body", children: o.accountName }),
|
|
13635
13635
|
/* @__PURE__ */ e(OA, { amount: o.balance, variant: "Small" })
|
|
13636
13636
|
] }),
|
|
@@ -13679,7 +13679,7 @@ const Sl = ({
|
|
|
13679
13679
|
/* @__PURE__ */ e(me, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(
|
|
13680
13680
|
eA,
|
|
13681
13681
|
{
|
|
13682
|
-
primary: /* @__PURE__ */ s(
|
|
13682
|
+
primary: /* @__PURE__ */ s(P, { direction: "row", justifyContent: "space-between", children: [
|
|
13683
13683
|
/* @__PURE__ */ e(R, { sx: { fontWeight: 700 }, variant: "XSmall", children: o.assets }),
|
|
13684
13684
|
/* @__PURE__ */ e(OA, { amount: n, sx: { fontWeight: 400 }, variant: "XSmall" })
|
|
13685
13685
|
] })
|
|
@@ -13689,7 +13689,7 @@ const Sl = ({
|
|
|
13689
13689
|
/* @__PURE__ */ e(me, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(
|
|
13690
13690
|
eA,
|
|
13691
13691
|
{
|
|
13692
|
-
primary: /* @__PURE__ */ s(
|
|
13692
|
+
primary: /* @__PURE__ */ s(P, { direction: "row", justifyContent: "space-between", children: [
|
|
13693
13693
|
/* @__PURE__ */ e(R, { sx: { fontWeight: 700 }, variant: "XSmall", children: o.liabilities }),
|
|
13694
13694
|
/* @__PURE__ */ e(OA, { amount: r, sx: { fontWeight: 400 }, variant: "XSmall" })
|
|
13695
13695
|
] })
|
|
@@ -13707,7 +13707,7 @@ const Sl = ({
|
|
|
13707
13707
|
}) => {
|
|
13708
13708
|
const { net_worth: o } = X(), I = RA();
|
|
13709
13709
|
return /* @__PURE__ */ s(Z, { children: [
|
|
13710
|
-
/* @__PURE__ */ s(
|
|
13710
|
+
/* @__PURE__ */ s(P, { alignItems: "center", justifyContent: "space-between", mb: 8, pt: 24, children: [
|
|
13711
13711
|
/* @__PURE__ */ e(R, { variant: "Small", children: Ko(A?.x) }),
|
|
13712
13712
|
/* @__PURE__ */ e(R, { variant: "Body", children: o.total_change }),
|
|
13713
13713
|
A && /* @__PURE__ */ e(Ar, { currencyVariant: "H1", iconSize: 32, netWorth: A, theme: I })
|
|
@@ -13716,7 +13716,7 @@ const Sl = ({
|
|
|
13716
13716
|
/* @__PURE__ */ e(me, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(
|
|
13717
13717
|
eA,
|
|
13718
13718
|
{
|
|
13719
|
-
primary: /* @__PURE__ */ s(
|
|
13719
|
+
primary: /* @__PURE__ */ s(P, { direction: "row", justifyContent: "space-between", children: [
|
|
13720
13720
|
/* @__PURE__ */ e(R, { sx: { fontWeight: 700 }, variant: "XSmall", children: o.gains }),
|
|
13721
13721
|
/* @__PURE__ */ e(OA, { amount: n, sx: { fontWeight: 400 }, variant: "XSmall" })
|
|
13722
13722
|
] })
|
|
@@ -13726,7 +13726,7 @@ const Sl = ({
|
|
|
13726
13726
|
/* @__PURE__ */ e(W, { sx: { backgroundColor: I.palette.background.paper, py: 14 }, children: /* @__PURE__ */ e(
|
|
13727
13727
|
eA,
|
|
13728
13728
|
{
|
|
13729
|
-
primary: /* @__PURE__ */ s(
|
|
13729
|
+
primary: /* @__PURE__ */ s(P, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
|
|
13730
13730
|
/* @__PURE__ */ e(R, { variant: "Body", children: a.accountName }),
|
|
13731
13731
|
/* @__PURE__ */ e(
|
|
13732
13732
|
OA,
|
|
@@ -13745,7 +13745,7 @@ const Sl = ({
|
|
|
13745
13745
|
/* @__PURE__ */ e(me, { sx: { mb: 8, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(
|
|
13746
13746
|
eA,
|
|
13747
13747
|
{
|
|
13748
|
-
primary: /* @__PURE__ */ s(
|
|
13748
|
+
primary: /* @__PURE__ */ s(P, { direction: "row", justifyContent: "space-between", children: [
|
|
13749
13749
|
/* @__PURE__ */ e(R, { sx: { fontWeight: 700 }, variant: "XSmall", children: o.losses }),
|
|
13750
13750
|
/* @__PURE__ */ e(OA, { amount: r, sx: { fontWeight: 400 }, variant: "XSmall" })
|
|
13751
13751
|
] })
|
|
@@ -13759,7 +13759,7 @@ const Sl = ({
|
|
|
13759
13759
|
children: /* @__PURE__ */ e(
|
|
13760
13760
|
eA,
|
|
13761
13761
|
{
|
|
13762
|
-
primary: /* @__PURE__ */ s(
|
|
13762
|
+
primary: /* @__PURE__ */ s(P, { direction: "row", justifyContent: "space-between", sx: { fontWeight: 400 }, children: [
|
|
13763
13763
|
/* @__PURE__ */ e(R, { variant: "Body", children: a.accountName }),
|
|
13764
13764
|
/* @__PURE__ */ e(OA, { amount: a.loss, sx: { fontWeight: 700 }, variant: "Body" })
|
|
13765
13765
|
] }),
|
|
@@ -13824,7 +13824,7 @@ const Sl = ({
|
|
|
13824
13824
|
selectedData: v,
|
|
13825
13825
|
setHoveredData: u,
|
|
13826
13826
|
setSelectedData: H
|
|
13827
|
-
} = Lc(), { isMobile:
|
|
13827
|
+
} = Lc(), { isMobile: b } = zA(), { onEvent: p } = K(), [y, x] = h.useState(!1), [w, D] = h.useState(6), [j, m] = h.useState(!1), [O, T] = h.useState(!1), [tA, Y] = h.useState(!1), iA = async () => {
|
|
13828
13828
|
await E(i), await f(w), x(!0);
|
|
13829
13829
|
};
|
|
13830
13830
|
h.useEffect(() => {
|
|
@@ -13837,7 +13837,7 @@ const Sl = ({
|
|
|
13837
13837
|
p(V.NET_WORTH_WIDGET_CLICK_TIMEFRAME, { time_period: w + "M" }), f(w);
|
|
13838
13838
|
}, [w]);
|
|
13839
13839
|
const oA = (Ie, bA) => {
|
|
13840
|
-
H(bA), Ie.currentTarget instanceof HTMLDivElement &&
|
|
13840
|
+
H(bA), Ie.currentTarget instanceof HTMLDivElement && m(!0);
|
|
13841
13841
|
}, sA = (Ie) => {
|
|
13842
13842
|
u(Ie);
|
|
13843
13843
|
}, uA = () => {
|
|
@@ -13865,21 +13865,21 @@ const Sl = ({
|
|
|
13865
13865
|
calendarActions: {
|
|
13866
13866
|
onRangeChanged: jA
|
|
13867
13867
|
},
|
|
13868
|
-
dateRangeVariant:
|
|
13868
|
+
dateRangeVariant: b ? "timeframetabs" : "timeframebuttons",
|
|
13869
13869
|
onAccountsFilterClick: () => p(V.NET_WORTH_WIDGET_CLICK_FILTER),
|
|
13870
13870
|
onBackClick: A,
|
|
13871
13871
|
showDividerAboveDateSelector: !1,
|
|
13872
|
-
sx: { p:
|
|
13872
|
+
sx: { p: b ? 0 : 48 },
|
|
13873
13873
|
title: o.net_worth,
|
|
13874
13874
|
children: y && /* @__PURE__ */ s(Z, { children: [
|
|
13875
13875
|
l.length ? /* @__PURE__ */ s(Z, { children: [
|
|
13876
13876
|
v && /* @__PURE__ */ e(_l, { hoveredData: d, selectedData: v }),
|
|
13877
13877
|
/* @__PURE__ */ s(
|
|
13878
|
-
|
|
13878
|
+
P,
|
|
13879
13879
|
{
|
|
13880
|
-
alignItems:
|
|
13881
|
-
direction:
|
|
13882
|
-
spacing:
|
|
13880
|
+
alignItems: b ? "center" : "flex-start",
|
|
13881
|
+
direction: b ? "column" : "row",
|
|
13882
|
+
spacing: b ? 0 : 48,
|
|
13883
13883
|
children: [
|
|
13884
13884
|
/* @__PURE__ */ e(Ul, { ...WA }),
|
|
13885
13885
|
/* @__PURE__ */ e(Kl, { ...WA })
|
|
@@ -13908,8 +13908,8 @@ const Sl = ({
|
|
|
13908
13908
|
IA,
|
|
13909
13909
|
{
|
|
13910
13910
|
ariaLabelClose: "Close",
|
|
13911
|
-
isOpen:
|
|
13912
|
-
onClose: () =>
|
|
13911
|
+
isOpen: j,
|
|
13912
|
+
onClose: () => m(!1),
|
|
13913
13913
|
shouldShowHeaderBorders: !1,
|
|
13914
13914
|
shouldShowHeaderShadow: !0,
|
|
13915
13915
|
title: o.gains_and_losses,
|
|
@@ -14112,13 +14112,13 @@ const so = "PARENT-ENTITY", E9 = (A, t) => {
|
|
|
14112
14112
|
} = r;
|
|
14113
14113
|
for (const l of n.filter((v) => v.entity_guid === so)) {
|
|
14114
14114
|
const v = E9(l.notification_type, i), u = n.filter(
|
|
14115
|
-
(
|
|
14115
|
+
(b) => b.entity_guid !== so && b.notification_type === l.notification_type
|
|
14116
14116
|
), H = [];
|
|
14117
14117
|
I && !d && l.email_channel && H.push(i.delivery_method_email_label), a && !f && l.sms_channel && H.push(i.delivery_method_sms_label), c && !E && l.push_channel && H.push(i.delivery_method_push_label), o.push({
|
|
14118
14118
|
...l,
|
|
14119
|
-
children: u.map((
|
|
14120
|
-
...
|
|
14121
|
-
account: A.find((p) => p.guid ===
|
|
14119
|
+
children: u.map((b) => ({
|
|
14120
|
+
...b,
|
|
14121
|
+
account: A.find((p) => p.guid === b.entity_guid),
|
|
14122
14122
|
label: v
|
|
14123
14123
|
})),
|
|
14124
14124
|
deliveryMethodsLabel: H.join(", "),
|
|
@@ -16715,9 +16715,9 @@ const u9 = ({
|
|
|
16715
16715
|
}
|
|
16716
16716
|
)
|
|
16717
16717
|
] }),
|
|
16718
|
-
/* @__PURE__ */ e(
|
|
16718
|
+
/* @__PURE__ */ e(P, { sx: { flexDirection: { xs: "column", md: "row" }, gap: 12 }, children: [0, 1].map((f) => {
|
|
16719
16719
|
const E = f === 0 ? 0 : d, l = f === 0 ? d : i.length, v = i.slice(E, l);
|
|
16720
|
-
return /* @__PURE__ */ e(
|
|
16720
|
+
return /* @__PURE__ */ e(P, { sx: { flex: 1, gap: 12, maxWidth: { md: "calc(50% - 6px)" } }, children: v.map(({ guid: u, icon: H, topics: b, title: p }, y) => {
|
|
16721
16721
|
const x = y + E;
|
|
16722
16722
|
return /* @__PURE__ */ s(
|
|
16723
16723
|
yn,
|
|
@@ -16743,7 +16743,7 @@ const u9 = ({
|
|
|
16743
16743
|
{
|
|
16744
16744
|
expandIcon: /* @__PURE__ */ e(ji, { sx: { color: "text.primary" } }),
|
|
16745
16745
|
sx: { height: 64, p: "14px 24px" },
|
|
16746
|
-
children: /* @__PURE__ */ s(
|
|
16746
|
+
children: /* @__PURE__ */ s(P, { sx: { alignItems: "center", flexDirection: "row", gap: 12 }, children: [
|
|
16747
16747
|
/* @__PURE__ */ e(q, { name: H, size: 24 }),
|
|
16748
16748
|
/* @__PURE__ */ e(R, { variant: "Body", children: p })
|
|
16749
16749
|
] })
|
|
@@ -16757,7 +16757,7 @@ const u9 = ({
|
|
|
16757
16757
|
ml: 56,
|
|
16758
16758
|
p: 0
|
|
16759
16759
|
},
|
|
16760
|
-
children: /* @__PURE__ */ e(rA, { disablePadding: !0, children:
|
|
16760
|
+
children: /* @__PURE__ */ e(rA, { disablePadding: !0, children: b.map(({ label: w, topicKey: D }) => /* @__PURE__ */ e(
|
|
16761
16761
|
aA,
|
|
16762
16762
|
{
|
|
16763
16763
|
"aria-label": w,
|
|
@@ -16882,7 +16882,7 @@ const u9 = ({
|
|
|
16882
16882
|
title: o
|
|
16883
16883
|
}) => /* @__PURE__ */ s(h.Fragment, { children: [
|
|
16884
16884
|
/* @__PURE__ */ s(
|
|
16885
|
-
|
|
16885
|
+
P,
|
|
16886
16886
|
{
|
|
16887
16887
|
sx: {
|
|
16888
16888
|
gap: 8,
|
|
@@ -16892,7 +16892,7 @@ const u9 = ({
|
|
|
16892
16892
|
},
|
|
16893
16893
|
children: [
|
|
16894
16894
|
/* @__PURE__ */ s(L, { children: [
|
|
16895
|
-
/* @__PURE__ */ s(
|
|
16895
|
+
/* @__PURE__ */ s(P, { gap: 4, sx: { alignItems: "center", flexDirection: "row" }, children: [
|
|
16896
16896
|
t && /* @__PURE__ */ e(q, { name: "help", size: 20, sx: { color: "text.primary" } }),
|
|
16897
16897
|
/* @__PURE__ */ e(R, { color: "text.primary", variant: "H3", children: o })
|
|
16898
16898
|
] }),
|
|
@@ -16993,7 +16993,7 @@ const u9 = ({
|
|
|
16993
16993
|
onClick: t
|
|
16994
16994
|
}) => {
|
|
16995
16995
|
const [i, n] = h.useState(null);
|
|
16996
|
-
return /* @__PURE__ */ e(
|
|
16996
|
+
return /* @__PURE__ */ e(P, { sx: { flex: 1, gap: 12, p: 12 }, children: A.map(({ icon: r, topics: o, title: I }, a) => /* @__PURE__ */ s(
|
|
16997
16997
|
yn,
|
|
16998
16998
|
{
|
|
16999
16999
|
disableGutters: !0,
|
|
@@ -17008,7 +17008,7 @@ const u9 = ({
|
|
|
17008
17008
|
{
|
|
17009
17009
|
expandIcon: /* @__PURE__ */ e(ji, { sx: { color: "text.primary" } }),
|
|
17010
17010
|
sx: { p: "14px 24px", height: 64 },
|
|
17011
|
-
children: /* @__PURE__ */ s(
|
|
17011
|
+
children: /* @__PURE__ */ s(P, { sx: { alignItems: "center", flexDirection: "row", gap: 12 }, children: [
|
|
17012
17012
|
/* @__PURE__ */ e(q, { name: r, size: 24 }),
|
|
17013
17013
|
/* @__PURE__ */ e(R, { variant: "Body", children: I })
|
|
17014
17014
|
] })
|
|
@@ -17068,18 +17068,18 @@ const u9 = ({
|
|
|
17068
17068
|
{ name: "institutionName", required: !0 },
|
|
17069
17069
|
{ name: "institutionWebsite", required: !0 },
|
|
17070
17070
|
{ name: "institutionLoginPage", required: !1 }
|
|
17071
|
-
].map((H,
|
|
17071
|
+
].map((H, b) => ({
|
|
17072
17072
|
...H,
|
|
17073
|
-
label: A.popular_topics_missing_institution_fields[
|
|
17073
|
+
label: A.popular_topics_missing_institution_fields[b.toString()]
|
|
17074
17074
|
})), l = () => {
|
|
17075
17075
|
c(co), f(rn), i();
|
|
17076
17076
|
}, v = (H) => {
|
|
17077
17077
|
const {
|
|
17078
|
-
target: { name:
|
|
17078
|
+
target: { name: b, value: p }
|
|
17079
17079
|
} = H;
|
|
17080
17080
|
f((y) => ({
|
|
17081
17081
|
...y,
|
|
17082
|
-
[
|
|
17082
|
+
[b]: p
|
|
17083
17083
|
}));
|
|
17084
17084
|
};
|
|
17085
17085
|
return /* @__PURE__ */ s(
|
|
@@ -17089,11 +17089,11 @@ const u9 = ({
|
|
|
17089
17089
|
onClose: l,
|
|
17090
17090
|
onPrimaryAction: () => {
|
|
17091
17091
|
const H = {};
|
|
17092
|
-
let
|
|
17092
|
+
let b = !0;
|
|
17093
17093
|
E.forEach(({ label: p, name: y, required: x }) => {
|
|
17094
17094
|
const w = d[y];
|
|
17095
|
-
x && !w && (H[y] = `${p} ${A.request_support_required_message}`,
|
|
17096
|
-
}), c(H),
|
|
17095
|
+
x && !w && (H[y] = `${p} ${A.request_support_required_message}`, b = !1), (y === "institutionWebsite" || y === "institutionLoginPage") && w && !/(.+)\.(.{2,})/g.test(w) && (H[y] = A.request_support_valid_url_message, b = !1);
|
|
17096
|
+
}), c(H), b && (n(d), f(rn));
|
|
17097
17097
|
},
|
|
17098
17098
|
secondaryColor: "primary",
|
|
17099
17099
|
title: A.request_support,
|
|
@@ -17108,19 +17108,19 @@ const u9 = ({
|
|
|
17108
17108
|
title: A.popular_topics_missing_institution
|
|
17109
17109
|
}
|
|
17110
17110
|
),
|
|
17111
|
-
/* @__PURE__ */ e(
|
|
17111
|
+
/* @__PURE__ */ e(P, { sx: { gap: 24, p: 24 }, children: E.map(({ label: H, name: b }) => /* @__PURE__ */ e(
|
|
17112
17112
|
$A,
|
|
17113
17113
|
{
|
|
17114
17114
|
InputLabelProps: { shrink: !0 },
|
|
17115
|
-
error: !!a[
|
|
17115
|
+
error: !!a[b],
|
|
17116
17116
|
fullWidth: !0,
|
|
17117
|
-
helperText: a[
|
|
17117
|
+
helperText: a[b] || "",
|
|
17118
17118
|
label: H,
|
|
17119
|
-
name:
|
|
17119
|
+
name: b,
|
|
17120
17120
|
onChange: v,
|
|
17121
|
-
value: d[
|
|
17121
|
+
value: d[b]
|
|
17122
17122
|
},
|
|
17123
|
-
|
|
17123
|
+
b
|
|
17124
17124
|
)) }),
|
|
17125
17125
|
r.message && /* @__PURE__ */ e(
|
|
17126
17126
|
ri,
|
|
@@ -17190,7 +17190,7 @@ const u9 = ({
|
|
|
17190
17190
|
}),
|
|
17191
17191
|
[o, I]
|
|
17192
17192
|
);
|
|
17193
|
-
return /* @__PURE__ */ e(IA, { isOpen: t, onClose: n, title: A.request_support, children: /* @__PURE__ */ s(
|
|
17193
|
+
return /* @__PURE__ */ e(IA, { isOpen: t, onClose: n, title: A.request_support, children: /* @__PURE__ */ s(P, { children: [
|
|
17194
17194
|
/* @__PURE__ */ e(
|
|
17195
17195
|
ai,
|
|
17196
17196
|
{
|
|
@@ -17215,7 +17215,7 @@ const u9 = ({
|
|
|
17215
17215
|
] }) });
|
|
17216
17216
|
}, jv = ({ copy: A, onButtonClick: t }) => {
|
|
17217
17217
|
const i = mv();
|
|
17218
|
-
return /* @__PURE__ */ s(
|
|
17218
|
+
return /* @__PURE__ */ s(P, { sx: { alignItems: "center", gap: 5 }, children: [
|
|
17219
17219
|
/* @__PURE__ */ e(HA, { color: "text.secondary", sx: i, children: A.contact_support }),
|
|
17220
17220
|
/* @__PURE__ */ e(
|
|
17221
17221
|
R,
|
|
@@ -17288,7 +17288,7 @@ const u9 = ({
|
|
|
17288
17288
|
]
|
|
17289
17289
|
}
|
|
17290
17290
|
),
|
|
17291
|
-
/* @__PURE__ */ s(
|
|
17291
|
+
/* @__PURE__ */ s(P, { direction: "column", spacing: 8, sx: { mx: 24 }, children: [
|
|
17292
17292
|
/* @__PURE__ */ e($, { onClick: r, variant: "contained", children: I.done_button }),
|
|
17293
17293
|
/* @__PURE__ */ e($, { onClick: n, variant: "text", children: A.request_support_institution_back })
|
|
17294
17294
|
] })
|
|
@@ -17302,8 +17302,8 @@ const u9 = ({
|
|
|
17302
17302
|
}) => {
|
|
17303
17303
|
const { common: o } = X();
|
|
17304
17304
|
return /* @__PURE__ */ e(IA, { isOpen: i, onClose: r, title: A.request_support, children: /* @__PURE__ */ s(L, { sx: { px: 24 }, children: [
|
|
17305
|
-
/* @__PURE__ */ e(
|
|
17306
|
-
/* @__PURE__ */ s(
|
|
17305
|
+
/* @__PURE__ */ e(P, { sx: { alignItems: "center", pb: 24, pt: 80 }, children: /* @__PURE__ */ e(q, { color: "success", fill: !0, name: "check_circle", size: 64 }) }),
|
|
17306
|
+
/* @__PURE__ */ s(P, { sx: { alignItems: "center", gap: 16, pb: 48 }, children: [
|
|
17307
17307
|
/* @__PURE__ */ e(lt, { children: A.request_support_success }),
|
|
17308
17308
|
/* @__PURE__ */ e(HA, { align: "center", variant: "Body", children: A.request_support_submit_success_message }),
|
|
17309
17309
|
/* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: t })
|
|
@@ -17317,41 +17317,41 @@ const u9 = ({
|
|
|
17317
17317
|
isOpen: !1,
|
|
17318
17318
|
topic: "",
|
|
17319
17319
|
type: void 0
|
|
17320
|
-
}),
|
|
17321
|
-
...
|
|
17322
|
-
title: A.help_by_category_list[
|
|
17323
|
-
topics:
|
|
17320
|
+
}), b = zv.map((m) => ({
|
|
17321
|
+
...m,
|
|
17322
|
+
title: A.help_by_category_list[m.guid].label,
|
|
17323
|
+
topics: m.topics.map(({ type: O }, T) => ({
|
|
17324
17324
|
type: O,
|
|
17325
|
-
label: A.help_by_category_list[
|
|
17325
|
+
label: A.help_by_category_list[m.guid].topics[T]
|
|
17326
17326
|
}))
|
|
17327
|
-
})), p = Object.keys(A.popular_topics_list).map((
|
|
17328
|
-
name: A.popular_topics_list[
|
|
17327
|
+
})), p = Object.keys(A.popular_topics_list).map((m, O) => ({
|
|
17328
|
+
name: A.popular_topics_list[m],
|
|
17329
17329
|
type: Cv[O].type
|
|
17330
17330
|
})), y = () => {
|
|
17331
17331
|
d(""), H({ isOpen: !1, topic: "", type: void 0 });
|
|
17332
|
-
}, x = (
|
|
17332
|
+
}, x = (m) => {
|
|
17333
17333
|
a.email && r({
|
|
17334
17334
|
email: a.email,
|
|
17335
|
-
message: c ? `Institution: ${c}, ${
|
|
17335
|
+
message: c ? `Institution: ${c}, ${m}` : m,
|
|
17336
17336
|
title: u.topic || "Contact Support"
|
|
17337
17337
|
});
|
|
17338
|
-
}, w = (
|
|
17339
|
-
O === "other" ? v(!0) : H({ isOpen: !0, topic:
|
|
17338
|
+
}, w = (m, O) => {
|
|
17339
|
+
O === "other" ? v(!0) : H({ isOpen: !0, topic: m, type: O });
|
|
17340
17340
|
}, D = () => {
|
|
17341
17341
|
I(""), E(!1), v(!1), y();
|
|
17342
|
-
},
|
|
17342
|
+
}, j = (m) => {
|
|
17343
17343
|
if (!a.email) {
|
|
17344
17344
|
I(A.request_support_email_not_exists_message, "error");
|
|
17345
17345
|
return;
|
|
17346
17346
|
}
|
|
17347
17347
|
r({
|
|
17348
17348
|
email: a.email,
|
|
17349
|
-
message: `Institution Website: ${
|
|
17350
|
-
title: `Institution Request: ${
|
|
17349
|
+
message: `Institution Website: ${m.institutionWebsite}${m.institutionLoginPage ? ` Institution Login Page: ${m.institutionLoginPage}` : ""} `,
|
|
17350
|
+
title: `Institution Request: ${m.institutionName}`
|
|
17351
17351
|
});
|
|
17352
17352
|
};
|
|
17353
17353
|
return /* @__PURE__ */ e(IA, { isOpen: t, onClose: i, title: A.request_support, children: o ? /* @__PURE__ */ e(ee, {}) : /* @__PURE__ */ s(h.Fragment, { children: [
|
|
17354
|
-
/* @__PURE__ */ s(
|
|
17354
|
+
/* @__PURE__ */ s(P, { children: [
|
|
17355
17355
|
/* @__PURE__ */ e(
|
|
17356
17356
|
ai,
|
|
17357
17357
|
{
|
|
@@ -17392,7 +17392,7 @@ const u9 = ({
|
|
|
17392
17392
|
/* @__PURE__ */ e(
|
|
17393
17393
|
Xv,
|
|
17394
17394
|
{
|
|
17395
|
-
helpByCategory:
|
|
17395
|
+
helpByCategory: b,
|
|
17396
17396
|
onClick: w
|
|
17397
17397
|
}
|
|
17398
17398
|
),
|
|
@@ -17427,7 +17427,7 @@ const u9 = ({
|
|
|
17427
17427
|
copy: A,
|
|
17428
17428
|
isOpen: l,
|
|
17429
17429
|
onClose: () => v(!1),
|
|
17430
|
-
onSave:
|
|
17430
|
+
onSave: j
|
|
17431
17431
|
}
|
|
17432
17432
|
),
|
|
17433
17433
|
/* @__PURE__ */ e(
|
|
@@ -17435,8 +17435,8 @@ const u9 = ({
|
|
|
17435
17435
|
{
|
|
17436
17436
|
copy: A,
|
|
17437
17437
|
isOpen: u.isOpen,
|
|
17438
|
-
onClick: (
|
|
17439
|
-
d(
|
|
17438
|
+
onClick: (m) => {
|
|
17439
|
+
d(m), u.type === "internal" && E(!0);
|
|
17440
17440
|
},
|
|
17441
17441
|
onClose: y,
|
|
17442
17442
|
topic: u.topic
|
|
@@ -17533,7 +17533,7 @@ const u9 = ({
|
|
|
17533
17533
|
justifyContent: "center"
|
|
17534
17534
|
}
|
|
17535
17535
|
},
|
|
17536
|
-
children: /* @__PURE__ */ s(
|
|
17536
|
+
children: /* @__PURE__ */ s(P, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
|
|
17537
17537
|
/* @__PURE__ */ e(R, { bold: !0, truncate: !1, variant: "Body", children: t.confirm_your_email }),
|
|
17538
17538
|
/* @__PURE__ */ e(R, { truncate: !1, variant: "Small", children: t.confirm_email }),
|
|
17539
17539
|
/* @__PURE__ */ e(
|
|
@@ -17574,7 +17574,7 @@ const u9 = ({
|
|
|
17574
17574
|
justifyContent: "flex-end"
|
|
17575
17575
|
}
|
|
17576
17576
|
},
|
|
17577
|
-
children: /* @__PURE__ */ e(
|
|
17577
|
+
children: /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e($A, { onChange: (a) => I(a.target.value), sx: { width: 352 }, value: o }) })
|
|
17578
17578
|
}
|
|
17579
17579
|
);
|
|
17580
17580
|
}
|
|
@@ -17615,7 +17615,7 @@ const u9 = ({
|
|
|
17615
17615
|
justifyContent: "center"
|
|
17616
17616
|
}
|
|
17617
17617
|
},
|
|
17618
|
-
children: /* @__PURE__ */ s(
|
|
17618
|
+
children: /* @__PURE__ */ s(P, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
|
|
17619
17619
|
/* @__PURE__ */ e(R, { bold: !0, truncate: !1, variant: "Body", children: t.confirm_your_phone }),
|
|
17620
17620
|
/* @__PURE__ */ e(R, { truncate: !1, variant: "Small", children: t.confirm_phone }),
|
|
17621
17621
|
/* @__PURE__ */ e(
|
|
@@ -17644,7 +17644,7 @@ const u9 = ({
|
|
|
17644
17644
|
)
|
|
17645
17645
|
] });
|
|
17646
17646
|
}), Yv = () => {
|
|
17647
|
-
const { common: A, settings: t } = X(), { isDesktop: i, isMobile: n, isSmallMobile: r, isTablet: o } = zA(), { updateUser: I } = ge(), { user: a } = Ue(), [c, d] = h.useState(a.first_name), [f, E] = h.useState(a.last_name), [l, v] = h.useState(a.email), [u, H] = h.useState(a.phone), [
|
|
17647
|
+
const { common: A, settings: t } = X(), { isDesktop: i, isMobile: n, isSmallMobile: r, isTablet: o } = zA(), { updateUser: I } = ge(), { user: a } = Ue(), [c, d] = h.useState(a.first_name), [f, E] = h.useState(a.last_name), [l, v] = h.useState(a.email), [u, H] = h.useState(a.phone), [b, p] = h.useState(a.postal_code), [y, x] = h.useState(a.credit_score), [w, D] = h.useState(yA(a.birthday ?? 0)), j = l && !a.email_is_verified, m = u && !a.phone_is_verified, O = async () => {
|
|
17648
17648
|
const T = {
|
|
17649
17649
|
...a,
|
|
17650
17650
|
first_name: c,
|
|
@@ -17652,7 +17652,7 @@ const u9 = ({
|
|
|
17652
17652
|
email: l,
|
|
17653
17653
|
phone: u,
|
|
17654
17654
|
birthday: w ? gA(w) : null,
|
|
17655
|
-
postal_code:
|
|
17655
|
+
postal_code: b,
|
|
17656
17656
|
credit_score: y
|
|
17657
17657
|
};
|
|
17658
17658
|
await I(T);
|
|
@@ -17673,7 +17673,7 @@ const u9 = ({
|
|
|
17673
17673
|
/* @__PURE__ */ e(ne, { children: t.personal_details }),
|
|
17674
17674
|
/* @__PURE__ */ e(HA, { variant: "Body", children: t.update_information }),
|
|
17675
17675
|
/* @__PURE__ */ s(
|
|
17676
|
-
|
|
17676
|
+
P,
|
|
17677
17677
|
{
|
|
17678
17678
|
direction: n ? "column" : "row",
|
|
17679
17679
|
spacing: n ? 44 : 24,
|
|
@@ -17698,8 +17698,8 @@ const u9 = ({
|
|
|
17698
17698
|
]
|
|
17699
17699
|
}
|
|
17700
17700
|
),
|
|
17701
|
-
/* @__PURE__ */ s(
|
|
17702
|
-
/* @__PURE__ */ s(
|
|
17701
|
+
/* @__PURE__ */ s(P, { direction: n ? "column" : "row", children: [
|
|
17702
|
+
/* @__PURE__ */ s(P, { sx: { mb: j ? 20 : 44, mr: n ? 0 : 24 }, children: [
|
|
17703
17703
|
/* @__PURE__ */ e(
|
|
17704
17704
|
$A,
|
|
17705
17705
|
{
|
|
@@ -17708,9 +17708,9 @@ const u9 = ({
|
|
|
17708
17708
|
onChange: (T) => v(T.target.value)
|
|
17709
17709
|
}
|
|
17710
17710
|
),
|
|
17711
|
-
|
|
17711
|
+
j && /* @__PURE__ */ e(Mv, {})
|
|
17712
17712
|
] }),
|
|
17713
|
-
/* @__PURE__ */ s(
|
|
17713
|
+
/* @__PURE__ */ s(P, { sx: { mb: m ? 20 : 44 }, children: [
|
|
17714
17714
|
/* @__PURE__ */ e(
|
|
17715
17715
|
$A,
|
|
17716
17716
|
{
|
|
@@ -17720,10 +17720,10 @@ const u9 = ({
|
|
|
17720
17720
|
type: "tel"
|
|
17721
17721
|
}
|
|
17722
17722
|
),
|
|
17723
|
-
|
|
17723
|
+
m && /* @__PURE__ */ e(Tv, {})
|
|
17724
17724
|
] })
|
|
17725
17725
|
] }),
|
|
17726
|
-
/* @__PURE__ */ s(
|
|
17726
|
+
/* @__PURE__ */ s(P, { direction: n ? "column" : "row", spacing: n ? 44 : 24, sx: { mb: 44 }, children: [
|
|
17727
17727
|
/* @__PURE__ */ e(Mt, { dateAdapter: Ct, children: /* @__PURE__ */ e(
|
|
17728
17728
|
wn,
|
|
17729
17729
|
{
|
|
@@ -17736,13 +17736,13 @@ const u9 = ({
|
|
|
17736
17736
|
/* @__PURE__ */ e(
|
|
17737
17737
|
$A,
|
|
17738
17738
|
{
|
|
17739
|
-
defaultValue:
|
|
17739
|
+
defaultValue: b,
|
|
17740
17740
|
label: t.zip_code,
|
|
17741
17741
|
onChange: (T) => p(T.target.value)
|
|
17742
17742
|
}
|
|
17743
17743
|
)
|
|
17744
17744
|
] }),
|
|
17745
|
-
/* @__PURE__ */ s(
|
|
17745
|
+
/* @__PURE__ */ s(P, { children: [
|
|
17746
17746
|
/* @__PURE__ */ e(
|
|
17747
17747
|
$A,
|
|
17748
17748
|
{
|
|
@@ -17769,7 +17769,7 @@ const Bv = ({
|
|
|
17769
17769
|
field: "name",
|
|
17770
17770
|
headerName: r.mobile_devices_column_name,
|
|
17771
17771
|
renderHeader: we,
|
|
17772
|
-
renderCell: (a) => /* @__PURE__ */ s(
|
|
17772
|
+
renderCell: (a) => /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", gap: 4, children: [
|
|
17773
17773
|
/* @__PURE__ */ e(R, { variant: "Small", children: a.value }),
|
|
17774
17774
|
/* @__PURE__ */ e(
|
|
17775
17775
|
NA,
|
|
@@ -17808,7 +17808,7 @@ const Bv = ({
|
|
|
17808
17808
|
field: "delete",
|
|
17809
17809
|
headerName: "",
|
|
17810
17810
|
renderHeader: we,
|
|
17811
|
-
renderCell: (a) => /* @__PURE__ */ e(
|
|
17811
|
+
renderCell: (a) => /* @__PURE__ */ e(P, { mr: 4, children: /* @__PURE__ */ e(
|
|
17812
17812
|
NA,
|
|
17813
17813
|
{
|
|
17814
17814
|
"aria-label": r.mobile_devices_delete_label,
|
|
@@ -17873,7 +17873,7 @@ const Bv = ({
|
|
|
17873
17873
|
const n = RA(), { settings: r } = X(), [o, I] = h.useState(!1), a = (c) => (d, f) => {
|
|
17874
17874
|
I(f ? c : !1);
|
|
17875
17875
|
};
|
|
17876
|
-
return /* @__PURE__ */ s(
|
|
17876
|
+
return /* @__PURE__ */ s(P, { mx: -28, sx: { "& .MuiAccordion-root": { mb: 0, mt: 0 } }, children: [
|
|
17877
17877
|
A.map((c) => /* @__PURE__ */ s(
|
|
17878
17878
|
yn,
|
|
17879
17879
|
{
|
|
@@ -17890,7 +17890,7 @@ const Bv = ({
|
|
|
17890
17890
|
borderBottom: "1px solid",
|
|
17891
17891
|
borderColor: n.palette.border.light
|
|
17892
17892
|
},
|
|
17893
|
-
children: /* @__PURE__ */ s(
|
|
17893
|
+
children: /* @__PURE__ */ s(P, { gap: 4, children: [
|
|
17894
17894
|
/* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: c.name }),
|
|
17895
17895
|
/* @__PURE__ */ e(R, { color: n.palette.text.secondary, variant: "Small", children: `${c.make} ${c.model}` }),
|
|
17896
17896
|
/* @__PURE__ */ e(R, { color: n.palette.text.secondary, variant: "Small", children: Lo(yA(c.created_at), { addSuffix: !0 }) })
|
|
@@ -17903,7 +17903,7 @@ const Bv = ({
|
|
|
17903
17903
|
sx: { backgroundColor: n.palette.background.default, p: "0 0 0 24px" },
|
|
17904
17904
|
children: [
|
|
17905
17905
|
/* @__PURE__ */ s(
|
|
17906
|
-
|
|
17906
|
+
P,
|
|
17907
17907
|
{
|
|
17908
17908
|
onClick: () => t(c),
|
|
17909
17909
|
sx: {
|
|
@@ -17923,7 +17923,7 @@ const Bv = ({
|
|
|
17923
17923
|
}
|
|
17924
17924
|
),
|
|
17925
17925
|
/* @__PURE__ */ s(
|
|
17926
|
-
|
|
17926
|
+
P,
|
|
17927
17927
|
{
|
|
17928
17928
|
onClick: () => i(c),
|
|
17929
17929
|
sx: {
|
|
@@ -17995,7 +17995,7 @@ const Bv = ({
|
|
|
17995
17995
|
default:
|
|
17996
17996
|
return "";
|
|
17997
17997
|
}
|
|
17998
|
-
},
|
|
17998
|
+
}, b = () => {
|
|
17999
17999
|
const y = {
|
|
18000
18000
|
"& .MuiDialogContent-root": {
|
|
18001
18001
|
width: 400,
|
|
@@ -18054,9 +18054,9 @@ const Bv = ({
|
|
|
18054
18054
|
primaryColor: A === _A.Delete ? "error" : void 0,
|
|
18055
18055
|
primaryText: H(),
|
|
18056
18056
|
secondaryText: A === _A.Token ? I.back : I.cancel_button,
|
|
18057
|
-
sx:
|
|
18057
|
+
sx: b(),
|
|
18058
18058
|
children: [
|
|
18059
|
-
A === _A.Token && /* @__PURE__ */ s(
|
|
18059
|
+
A === _A.Token && /* @__PURE__ */ s(P, { spacing: 16, sx: { px: 40, textAlign: "center", width: "100%" }, children: [
|
|
18060
18060
|
/* @__PURE__ */ e(R, { bold: !0, truncate: !1, variant: "Body", children: a.mobile_devices_access_label }),
|
|
18061
18061
|
/* @__PURE__ */ e(R, { truncate: !1, variant: "Small", children: a.mobile_devices_access_info_1 }),
|
|
18062
18062
|
/* @__PURE__ */ e(
|
|
@@ -18073,7 +18073,7 @@ const Bv = ({
|
|
|
18073
18073
|
),
|
|
18074
18074
|
/* @__PURE__ */ e(R, { truncate: !1, variant: "Small", children: a.mobile_devices_access_info_2 })
|
|
18075
18075
|
] }),
|
|
18076
|
-
A === _A.Edit && /* @__PURE__ */ e(
|
|
18076
|
+
A === _A.Edit && /* @__PURE__ */ e(P, { children: /* @__PURE__ */ e($A, { onChange: (y) => v(y.target.value), value: l }) }),
|
|
18077
18077
|
A === _A.Delete && /* @__PURE__ */ e(HA, { children: a.mobile_devices_delete_info })
|
|
18078
18078
|
]
|
|
18079
18079
|
}
|
|
@@ -18084,17 +18084,17 @@ const Bv = ({
|
|
|
18084
18084
|
r();
|
|
18085
18085
|
}, []);
|
|
18086
18086
|
const l = async () => {
|
|
18087
|
-
const
|
|
18088
|
-
|
|
18089
|
-
}, v = (
|
|
18090
|
-
d(
|
|
18091
|
-
}, u = (
|
|
18092
|
-
d(
|
|
18087
|
+
const b = await o();
|
|
18088
|
+
b ? (E(b), a({ open: !0, type: _A.Token })) : i(t.mobile_devices_access_error, "error");
|
|
18089
|
+
}, v = (b) => {
|
|
18090
|
+
d(b), a({ open: !0, type: _A.Edit });
|
|
18091
|
+
}, u = (b) => {
|
|
18092
|
+
d(b), a({ open: !0, type: _A.Delete });
|
|
18093
18093
|
}, H = () => {
|
|
18094
18094
|
a({ open: !1, type: "" }), d(void 0);
|
|
18095
18095
|
};
|
|
18096
18096
|
return /* @__PURE__ */ s(
|
|
18097
|
-
|
|
18097
|
+
P,
|
|
18098
18098
|
{
|
|
18099
18099
|
sx: {
|
|
18100
18100
|
backgroundColor: "background.paper",
|
|
@@ -18102,7 +18102,7 @@ const Bv = ({
|
|
|
18102
18102
|
gap: 24
|
|
18103
18103
|
},
|
|
18104
18104
|
children: [
|
|
18105
|
-
/* @__PURE__ */ s(
|
|
18105
|
+
/* @__PURE__ */ s(P, { gap: 4, children: [
|
|
18106
18106
|
/* @__PURE__ */ e(ne, { children: t.mobile_devices_title }),
|
|
18107
18107
|
/* @__PURE__ */ e(HA, { variant: "Body", children: t.mobile_devices_info })
|
|
18108
18108
|
] }),
|
|
@@ -18121,7 +18121,7 @@ const Bv = ({
|
|
|
18121
18121
|
onClickDeviceEdit: v
|
|
18122
18122
|
}
|
|
18123
18123
|
),
|
|
18124
|
-
/* @__PURE__ */ s(
|
|
18124
|
+
/* @__PURE__ */ s(P, { sx: { alignItems: "center", px: 24, py: 12, gap: 4 }, children: [
|
|
18125
18125
|
/* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: t.mobile_devices_access_title }),
|
|
18126
18126
|
/* @__PURE__ */ e(HA, { align: "center", variant: "Small", children: t.mobile_devices_access_description }),
|
|
18127
18127
|
/* @__PURE__ */ e($, { onClick: l, variant: "text", children: t.mobile_devices_access_cta })
|
|
@@ -18300,8 +18300,8 @@ const Bv = ({
|
|
|
18300
18300
|
const { settings: A } = X(), { loadTransactionRules: t, transactionRules: i } = ge(), { isDesktop: n, isTablet: r } = zA();
|
|
18301
18301
|
return h.useEffect(() => {
|
|
18302
18302
|
t();
|
|
18303
|
-
}, []), /* @__PURE__ */ s(
|
|
18304
|
-
/* @__PURE__ */ s(
|
|
18303
|
+
}, []), /* @__PURE__ */ s(P, { spacing: 24, sx: { pb: 48, pt: 24 }, children: [
|
|
18304
|
+
/* @__PURE__ */ s(P, { sx: { px: r || n ? 0 : 24 }, children: [
|
|
18305
18305
|
/* @__PURE__ */ e(ne, { children: A.transaction_rules_label }),
|
|
18306
18306
|
/* @__PURE__ */ e(HA, { variant: "Body", children: A.transaction_rules_description })
|
|
18307
18307
|
] }),
|
|
@@ -18311,7 +18311,7 @@ const Bv = ({
|
|
|
18311
18311
|
const { settings: A } = X(), { clientCommunicationProfile: t, updateUserCommunicationsProfile: i, userCommunicationsProfile: n } = ge(), r = async (o) => {
|
|
18312
18312
|
await i(o);
|
|
18313
18313
|
};
|
|
18314
|
-
return /* @__PURE__ */ s(
|
|
18314
|
+
return /* @__PURE__ */ s(P, { children: [
|
|
18315
18315
|
/* @__PURE__ */ e(ne, { sx: { mt: 24 }, children: A.delivery_method_title }),
|
|
18316
18316
|
t.email_notifications_enabled && /* @__PURE__ */ s(Z, { children: [
|
|
18317
18317
|
/* @__PURE__ */ e(
|
|
@@ -18353,7 +18353,7 @@ const Bv = ({
|
|
|
18353
18353
|
secondaryText: A.delivery_method_push_subtitle
|
|
18354
18354
|
}
|
|
18355
18355
|
),
|
|
18356
|
-
t.sms_notifications_enabled && /* @__PURE__ */ e(ze, { sx: { backgroundColor: "background.default", mt: 12 }, children: /* @__PURE__ */ e(Ce, { children: /* @__PURE__ */ s(
|
|
18356
|
+
t.sms_notifications_enabled && /* @__PURE__ */ e(ze, { sx: { backgroundColor: "background.default", mt: 12 }, children: /* @__PURE__ */ e(Ce, { children: /* @__PURE__ */ s(P, { alignItems: "flex-start", direction: "row", gap: 6, children: [
|
|
18357
18357
|
/* @__PURE__ */ e(es, { color: "primary", filled: !0 }),
|
|
18358
18358
|
/* @__PURE__ */ e(R, { sx: { whiteSpace: "wrap" }, variant: "XSmall", children: A.delivery_method_sms_note_1 })
|
|
18359
18359
|
] }) }) })
|
|
@@ -18368,7 +18368,7 @@ const Bv = ({
|
|
|
18368
18368
|
) : n.notification_debt_payment_zero_state, u = o ? v : M(t.threshold ?? 0, "0,0"), H = async () => {
|
|
18369
18369
|
o && t.account ? await r({ ...t.account, day_payment_is_due: f }) : A({ ...t, threshold: c });
|
|
18370
18370
|
};
|
|
18371
|
-
return /* @__PURE__ */ s(
|
|
18371
|
+
return /* @__PURE__ */ s(P, { children: [
|
|
18372
18372
|
/* @__PURE__ */ e(
|
|
18373
18373
|
ln,
|
|
18374
18374
|
{
|
|
@@ -18396,8 +18396,8 @@ const Bv = ({
|
|
|
18396
18396
|
{
|
|
18397
18397
|
maxDate: Re(/* @__PURE__ */ new Date(), 1),
|
|
18398
18398
|
minDate: /* @__PURE__ */ new Date(),
|
|
18399
|
-
onChange: (
|
|
18400
|
-
E(
|
|
18399
|
+
onChange: (b) => {
|
|
18400
|
+
E(b.getDate());
|
|
18401
18401
|
},
|
|
18402
18402
|
views: ["day"]
|
|
18403
18403
|
}
|
|
@@ -18408,7 +18408,7 @@ const Bv = ({
|
|
|
18408
18408
|
autoFocus: !0,
|
|
18409
18409
|
fullWidth: !0,
|
|
18410
18410
|
minAmount: 0,
|
|
18411
|
-
setAmount: (
|
|
18411
|
+
setAmount: (b) => d(Number(b) || 0),
|
|
18412
18412
|
sx: { ".MuiTypography-Body": { p: 0 } }
|
|
18413
18413
|
}
|
|
18414
18414
|
)
|
|
@@ -18423,7 +18423,7 @@ const Bv = ({
|
|
|
18423
18423
|
opted_out_of_push_notifications: a,
|
|
18424
18424
|
opted_out_of_sms_notifications: c
|
|
18425
18425
|
} = r;
|
|
18426
|
-
return /* @__PURE__ */ s(
|
|
18426
|
+
return /* @__PURE__ */ s(P, { children: [
|
|
18427
18427
|
/* @__PURE__ */ e(R, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: i.delivery_method_title }),
|
|
18428
18428
|
/* @__PURE__ */ s(rA, { sx: { px: 24, bgcolor: "background.paper" }, children: [
|
|
18429
18429
|
/* @__PURE__ */ e(
|
|
@@ -18459,7 +18459,7 @@ const Bv = ({
|
|
|
18459
18459
|
)
|
|
18460
18460
|
] }),
|
|
18461
18461
|
/* @__PURE__ */ e(HA, { sx: { color: "text.secondary", mb: 32, mx: 24, mt: 12 }, variant: "ParagraphSmall", children: `* ${i.delivery_method_sms_note_2}` }),
|
|
18462
|
-
o && t.children?.length && t.children.length > 0 && /* @__PURE__ */ s(
|
|
18462
|
+
o && t.children?.length && t.children.length > 0 && /* @__PURE__ */ s(P, { children: [
|
|
18463
18463
|
/* @__PURE__ */ e(R, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: "Accounts" }),
|
|
18464
18464
|
/* @__PURE__ */ e(rA, { sx: { px: 24, bgcolor: "background.paper" }, children: t.children?.map((d) => /* @__PURE__ */ e(
|
|
18465
18465
|
eR,
|
|
@@ -18488,7 +18488,7 @@ const Bv = ({
|
|
|
18488
18488
|
const f = async (E) => {
|
|
18489
18489
|
await a(E);
|
|
18490
18490
|
};
|
|
18491
|
-
return /* @__PURE__ */ s(
|
|
18491
|
+
return /* @__PURE__ */ s(P, { sx: { px: i ? 24 : 0 }, children: [
|
|
18492
18492
|
/* @__PURE__ */ e(AR, {}),
|
|
18493
18493
|
/* @__PURE__ */ e(G, { sx: { my: 24 } }),
|
|
18494
18494
|
/* @__PURE__ */ e(ne, { mb: 24, children: t.accounts_title }),
|
|
@@ -18543,7 +18543,7 @@ const Bv = ({
|
|
|
18543
18543
|
onBackClick: A,
|
|
18544
18544
|
sx: { height: "calc(100dvh - 24px)", overflow: "auto", ...t },
|
|
18545
18545
|
title: i.title,
|
|
18546
|
-
children: /* @__PURE__ */ s(
|
|
18546
|
+
children: /* @__PURE__ */ s(P, { mx: o ? 0 : 48, my: 24, children: [
|
|
18547
18547
|
/* @__PURE__ */ s(
|
|
18548
18548
|
Se,
|
|
18549
18549
|
{
|
|
@@ -18796,12 +18796,12 @@ const on = ({
|
|
|
18796
18796
|
(n) => n.member_guid === i.guid && i.successfully_aggregated_at && n.guid !== t.guid
|
|
18797
18797
|
);
|
|
18798
18798
|
}, IR = () => {
|
|
18799
|
-
const [A, t] = h.useState(!1), [i, n] = h.useState(!1), [r, o] = h.useState(!1), [I, a] = h.useState({}), { selectedAccount: c } = Xe(), { mergeAccounts: d, updateAccount: f } = CA(), { accounts: E } = X(), l = oR(), { onEvent: v } = K(), u = (
|
|
18800
|
-
f({
|
|
18799
|
+
const [A, t] = h.useState(!1), [i, n] = h.useState(!1), [r, o] = h.useState(!1), [I, a] = h.useState({}), { selectedAccount: c } = Xe(), { mergeAccounts: d, updateAccount: f } = CA(), { accounts: E } = X(), l = oR(), { onEvent: v } = K(), { loadTransactions: u } = PA(), H = async (p) => {
|
|
18800
|
+
await f({
|
|
18801
18801
|
...c,
|
|
18802
|
-
...
|
|
18803
|
-
});
|
|
18804
|
-
},
|
|
18802
|
+
...p
|
|
18803
|
+
}), await u();
|
|
18804
|
+
}, b = () => {
|
|
18805
18805
|
d([c.guid, I.guid]).finally(
|
|
18806
18806
|
() => n(!1)
|
|
18807
18807
|
);
|
|
@@ -18812,7 +18812,7 @@ const on = ({
|
|
|
18812
18812
|
on,
|
|
18813
18813
|
{
|
|
18814
18814
|
onClick: () => {
|
|
18815
|
-
|
|
18815
|
+
H({ is_hidden: !c.is_hidden }), v(V.ACCOUNT_DETAILS_CLICK_HIDE, { account_guid: c.guid });
|
|
18816
18816
|
},
|
|
18817
18817
|
primaryText: c.is_hidden ? E.unhide_account : E.hide_Account,
|
|
18818
18818
|
secondaryText: c.is_hidden ? E.include_this_account : E.exclude_this_account,
|
|
@@ -18857,7 +18857,7 @@ const on = ({
|
|
|
18857
18857
|
onClose: () => {
|
|
18858
18858
|
t(!1);
|
|
18859
18859
|
},
|
|
18860
|
-
onPrimaryAction: () =>
|
|
18860
|
+
onPrimaryAction: () => H({ is_closed: !c.is_closed }),
|
|
18861
18861
|
children: z(
|
|
18862
18862
|
c.is_closed ? E.this_will_resume_updating_the_balance : E.this_will_set_the_balance_of_your_account,
|
|
18863
18863
|
c.name
|
|
@@ -18871,20 +18871,20 @@ const on = ({
|
|
|
18871
18871
|
isOpen: i,
|
|
18872
18872
|
onClose: () => n(!1),
|
|
18873
18873
|
title: E.mark_as_duplicate,
|
|
18874
|
-
children: /* @__PURE__ */ e(rA, { children: l.map((
|
|
18875
|
-
const
|
|
18874
|
+
children: /* @__PURE__ */ e(rA, { children: l.map((p) => {
|
|
18875
|
+
const y = l.indexOf(p) === l.length - 1;
|
|
18876
18876
|
return /* @__PURE__ */ s(h.Fragment, { children: [
|
|
18877
18877
|
/* @__PURE__ */ e(
|
|
18878
18878
|
Ui,
|
|
18879
18879
|
{
|
|
18880
|
-
account:
|
|
18880
|
+
account: p,
|
|
18881
18881
|
onRowClick: () => {
|
|
18882
|
-
o(!0), a(
|
|
18882
|
+
o(!0), a(p);
|
|
18883
18883
|
}
|
|
18884
18884
|
}
|
|
18885
18885
|
),
|
|
18886
|
-
/* @__PURE__ */ e(rA, { sx: { ml:
|
|
18887
|
-
] },
|
|
18886
|
+
/* @__PURE__ */ e(rA, { sx: { ml: y ? 0 : 24 } })
|
|
18887
|
+
] }, p.guid);
|
|
18888
18888
|
}) })
|
|
18889
18889
|
}
|
|
18890
18890
|
),
|
|
@@ -18897,7 +18897,7 @@ const on = ({
|
|
|
18897
18897
|
},
|
|
18898
18898
|
isOpen: r,
|
|
18899
18899
|
onClose: () => o(!1),
|
|
18900
|
-
onPrimaryAction:
|
|
18900
|
+
onPrimaryAction: b,
|
|
18901
18901
|
children: [
|
|
18902
18902
|
z(
|
|
18903
18903
|
E.this_means_accounts_will_be_merged,
|
|
@@ -19084,7 +19084,7 @@ const on = ({
|
|
|
19084
19084
|
};
|
|
19085
19085
|
return /* @__PURE__ */ s(Z, { children: [
|
|
19086
19086
|
/* @__PURE__ */ e(me, { sx: { mb: 4, mt: 12, mx: 8 }, children: /* @__PURE__ */ e(R, { bold: !0, component: "h2", variant: "XSmall", children: r.connection_status }) }),
|
|
19087
|
-
/* @__PURE__ */ e(W, { sx: { backgroundColor: "background.paper" }, children: n.is_manual || !a.ctaCopy ? /* @__PURE__ */ s(
|
|
19087
|
+
/* @__PURE__ */ e(W, { sx: { backgroundColor: "background.paper" }, children: n.is_manual || !a.ctaCopy ? /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", px: 24, py: 12, children: [
|
|
19088
19088
|
/* @__PURE__ */ e(xA, { children: /* @__PURE__ */ e(ft, { backingSx: { backgroundColor: a.color, borderRadius: 1 }, size: 32, children: a.icon }) }),
|
|
19089
19089
|
/* @__PURE__ */ e(eA, { primary: a.mainMessage, secondary: a.secondaryMessage })
|
|
19090
19090
|
] }) : /* @__PURE__ */ s(aA, { onClick: () => t(!0), children: [
|
|
@@ -19158,10 +19158,10 @@ const on = ({
|
|
|
19158
19158
|
},
|
|
19159
19159
|
label: A.label,
|
|
19160
19160
|
labelId: `${A.label}-select-label`,
|
|
19161
|
-
onChange: (
|
|
19161
|
+
onChange: (b) => a(b.target.value),
|
|
19162
19162
|
placeholder: A.placeholder,
|
|
19163
19163
|
value: I,
|
|
19164
|
-
children: A.options?.map((
|
|
19164
|
+
children: A.options?.map((b) => /* @__PURE__ */ e(jn, { value: b.value, children: b.label }, b.value))
|
|
19165
19165
|
}
|
|
19166
19166
|
)
|
|
19167
19167
|
] });
|
|
@@ -19183,8 +19183,8 @@ const on = ({
|
|
|
19183
19183
|
{
|
|
19184
19184
|
maxDate: Re(/* @__PURE__ */ new Date(), 1),
|
|
19185
19185
|
minDate: /* @__PURE__ */ new Date(),
|
|
19186
|
-
onChange: (
|
|
19187
|
-
r[A.name] && Number(r[A.name]) <= 31 ? a(
|
|
19186
|
+
onChange: (b) => {
|
|
19187
|
+
r[A.name] && Number(r[A.name]) <= 31 ? a(b.getDate()) : a(b);
|
|
19188
19188
|
},
|
|
19189
19189
|
views: ["day"]
|
|
19190
19190
|
}
|
|
@@ -19207,8 +19207,8 @@ const on = ({
|
|
|
19207
19207
|
...r,
|
|
19208
19208
|
[A.name]: I
|
|
19209
19209
|
}), l();
|
|
19210
|
-
}, H = (
|
|
19211
|
-
a(
|
|
19210
|
+
}, H = (b) => {
|
|
19211
|
+
a(b.target.value), A.validation && d(A.validation(b.target.value));
|
|
19212
19212
|
};
|
|
19213
19213
|
return /* @__PURE__ */ e(
|
|
19214
19214
|
XA,
|
|
@@ -19338,7 +19338,7 @@ const on = ({
|
|
|
19338
19338
|
accounts: [n.guid]
|
|
19339
19339
|
});
|
|
19340
19340
|
}, [n]), h.useEffect(() => i(V.ACCOUNT_DETAILS_VIEW_TRANSACTIONS), []), /* @__PURE__ */ s(Z, { children: [
|
|
19341
|
-
/* @__PURE__ */ e(Rt, { onClick: t }),
|
|
19341
|
+
/* @__PURE__ */ e(Rt, { onClick: t, showClosedAccounts: !0 }),
|
|
19342
19342
|
a && /* @__PURE__ */ e(
|
|
19343
19343
|
IA,
|
|
19344
19344
|
{
|
|
@@ -19421,7 +19421,7 @@ const on = ({
|
|
|
19421
19421
|
}
|
|
19422
19422
|
) }),
|
|
19423
19423
|
children: /* @__PURE__ */ e(rr, { children: E.map((u) => {
|
|
19424
|
-
const H = n.indexOf(u) === n.length - 1,
|
|
19424
|
+
const H = n.indexOf(u) === n.length - 1, b = E.indexOf(u) === E.length - 1;
|
|
19425
19425
|
return /* @__PURE__ */ s(h.Fragment, { children: [
|
|
19426
19426
|
/* @__PURE__ */ e(
|
|
19427
19427
|
Ui,
|
|
@@ -19435,8 +19435,8 @@ const on = ({
|
|
|
19435
19435
|
G,
|
|
19436
19436
|
{
|
|
19437
19437
|
sx: {
|
|
19438
|
-
mb:
|
|
19439
|
-
ml:
|
|
19438
|
+
mb: b ? 24 : 4,
|
|
19439
|
+
ml: b ? 24 : 68
|
|
19440
19440
|
}
|
|
19441
19441
|
}
|
|
19442
19442
|
)
|
|
@@ -19988,7 +19988,7 @@ const on = ({
|
|
|
19988
19988
|
primaryCtaLabel: i.primary_cta,
|
|
19989
19989
|
sx: t,
|
|
19990
19990
|
title: i.mini_title,
|
|
19991
|
-
children: /* @__PURE__ */ s(
|
|
19991
|
+
children: /* @__PURE__ */ s(P, { alignItems: "center", direction: "column", m: 24, children: [
|
|
19992
19992
|
/* @__PURE__ */ e(wR, {}),
|
|
19993
19993
|
/* @__PURE__ */ e(
|
|
19994
19994
|
R,
|
|
@@ -20285,7 +20285,7 @@ function BR({ bubble: A, isDraggable: t, onClick: i = () => {
|
|
|
20285
20285
|
} = A;
|
|
20286
20286
|
let u = 13;
|
|
20287
20287
|
E > 75 ? u = -20 : E > 50 && (u = -6);
|
|
20288
|
-
const H = `${A.category.name}: ${f}`,
|
|
20288
|
+
const H = `${A.category.name}: ${f}`, b = {
|
|
20289
20289
|
modifiers: [
|
|
20290
20290
|
{
|
|
20291
20291
|
name: "offset",
|
|
@@ -20311,7 +20311,7 @@ function BR({ bubble: A, isDraggable: t, onClick: i = () => {
|
|
|
20311
20311
|
{
|
|
20312
20312
|
followCursor: !0,
|
|
20313
20313
|
open: n,
|
|
20314
|
-
slotProps: { popper:
|
|
20314
|
+
slotProps: { popper: b },
|
|
20315
20315
|
title: H,
|
|
20316
20316
|
children: /* @__PURE__ */ e("circle", { fill: o, id: `circle-${d}`, r: E })
|
|
20317
20317
|
}
|
|
@@ -20384,7 +20384,7 @@ const SR = ({
|
|
|
20384
20384
|
}, [Ft, A, t]), /* @__PURE__ */ e("svg", { height: A, style: { overflow: "visible" }, width: Math.abs(t), children: Ft.nodes().map((o) => /* @__PURE__ */ e(BR, { bubble: o, isDraggable: i, onClick: n }, o.guid)) });
|
|
20385
20385
|
}, UR = C(SR), FR = () => {
|
|
20386
20386
|
const { budgets: A } = X();
|
|
20387
|
-
return /* @__PURE__ */ s(
|
|
20387
|
+
return /* @__PURE__ */ s(P, { alignItems: "center", gap: 12, sx: { mx: 24, textAlign: "center" }, children: [
|
|
20388
20388
|
/* @__PURE__ */ e(q, { name: "bubble_chart", size: 48 }),
|
|
20389
20389
|
/* @__PURE__ */ e(R, { bold: !0, variant: "Paragraph", children: A.zero_state_title }),
|
|
20390
20390
|
/* @__PURE__ */ e(R, { sx: { whiteSpace: "wrap" }, variant: "Paragraph", children: A.zero_state_description })
|
|
@@ -20397,7 +20397,7 @@ const SR = ({
|
|
|
20397
20397
|
click_type: "bubble"
|
|
20398
20398
|
});
|
|
20399
20399
|
};
|
|
20400
|
-
return I ? /* @__PURE__ */ e(
|
|
20400
|
+
return I ? /* @__PURE__ */ e(P, { alignItems: "center", height: A, justifyContent: "center", width: Math.abs(f), children: /* @__PURE__ */ e(ee, {}) }) : /* @__PURE__ */ e(L, { ml: i || d ? 0 : 24, children: i || !a ? /* @__PURE__ */ e(FR, {}) : /* @__PURE__ */ e(
|
|
20401
20401
|
UR,
|
|
20402
20402
|
{
|
|
20403
20403
|
height: A,
|
|
@@ -20417,7 +20417,7 @@ const SR = ({
|
|
|
20417
20417
|
primaryCtaLabel: a ? o.get_started_cta : o.details_cta,
|
|
20418
20418
|
title: o.budgets_title,
|
|
20419
20419
|
...A,
|
|
20420
|
-
children: /* @__PURE__ */ s(
|
|
20420
|
+
children: /* @__PURE__ */ s(P, { height: 450, mt: 32, children: [
|
|
20421
20421
|
/* @__PURE__ */ e(UI, { height: 370, shouldShowZeroState: a }),
|
|
20422
20422
|
!a && /* @__PURE__ */ s(L, { ml: 16, children: [
|
|
20423
20423
|
/* @__PURE__ */ e(R, { bold: !0, color: I < 0 ? "error.main" : "success.main", children: M(Math.abs(I), "0,0") }),
|
|
@@ -20441,14 +20441,14 @@ const SR = ({
|
|
|
20441
20441
|
/* @__PURE__ */ e(
|
|
20442
20442
|
eA,
|
|
20443
20443
|
{
|
|
20444
|
-
primary: /* @__PURE__ */ s(
|
|
20444
|
+
primary: /* @__PURE__ */ s(P, { component: "span", direction: "row", justifyContent: "space-between", children: [
|
|
20445
20445
|
/* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: A.category.name }),
|
|
20446
20446
|
/* @__PURE__ */ e(R, { fontWeight: 400, variant: "Body", children: `
|
|
20447
20447
|
${M(d, "0,0")} /
|
|
20448
20448
|
${M(i, "0,0")}
|
|
20449
20449
|
` })
|
|
20450
20450
|
] }),
|
|
20451
|
-
secondary: /* @__PURE__ */ s(
|
|
20451
|
+
secondary: /* @__PURE__ */ s(P, { component: "span", direction: "row", justifyContent: "space-between", children: [
|
|
20452
20452
|
/* @__PURE__ */ e(R, { variant: "XSmall", children: `${c.length} Sub-budgets` }),
|
|
20453
20453
|
/* @__PURE__ */ e(R, { bold: a > 100, color: r, variant: "XSmall", children: I })
|
|
20454
20454
|
] })
|
|
@@ -20471,21 +20471,21 @@ const SR = ({
|
|
|
20471
20471
|
] });
|
|
20472
20472
|
}), ZR = C(() => {
|
|
20473
20473
|
const A = RA(), { onEvent: t } = K(), { accounts: i } = CA(), { budgets: n, common: r, recurring: o } = X(), { incomeCategories: I, spendCategories: a } = qA(), { detailedBudgets: c, totalBudgeted: d } = te(), { projectedIncome: f } = ZA(), { setFilter: E } = PA(), [l, v] = h.useState(!1), [u, H] = h.useMemo(() => {
|
|
20474
|
-
const x = a.reduce((
|
|
20474
|
+
const x = a.reduce((m, O) => m + O.totalAmount, 0);
|
|
20475
20475
|
let w = x / d;
|
|
20476
20476
|
w > 1 && (w = 1);
|
|
20477
20477
|
let D = A.palette.success.main;
|
|
20478
20478
|
w > 0.8 && w < 1 ? D = A.palette.warning.main : w >= 1 && (D = A.palette.error.main);
|
|
20479
|
-
const
|
|
20479
|
+
const j = [
|
|
20480
20480
|
{
|
|
20481
20481
|
color: D,
|
|
20482
20482
|
percentage: `${w}`
|
|
20483
20483
|
}
|
|
20484
20484
|
];
|
|
20485
|
-
return [x,
|
|
20486
|
-
}, [c, a]), [
|
|
20485
|
+
return [x, j];
|
|
20486
|
+
}, [c, a]), [b, p] = h.useMemo(() => {
|
|
20487
20487
|
const x = Math.abs(
|
|
20488
|
-
I.reduce((
|
|
20488
|
+
I.reduce((j, m) => j + m.totalAmount, 0)
|
|
20489
20489
|
);
|
|
20490
20490
|
let w = x / f;
|
|
20491
20491
|
w > 1 && (w = 1);
|
|
@@ -20507,8 +20507,8 @@ const SR = ({
|
|
|
20507
20507
|
};
|
|
20508
20508
|
return /* @__PURE__ */ s(ze, { elevation: 2, sx: { overflow: "visible", borderRadius: 2 }, children: [
|
|
20509
20509
|
/* @__PURE__ */ e(rt, { sx: { pb: 8, pl: 24 }, title: /* @__PURE__ */ e(ne, { children: n.overview_title }) }),
|
|
20510
|
-
/* @__PURE__ */ e(Ce, { sx: { pt: 12, px: 24 }, children: /* @__PURE__ */ s(
|
|
20511
|
-
/* @__PURE__ */ s(
|
|
20510
|
+
/* @__PURE__ */ e(Ce, { sx: { pt: 12, px: 24 }, children: /* @__PURE__ */ s(P, { gap: 24, children: [
|
|
20511
|
+
/* @__PURE__ */ s(P, { gap: 8, children: [
|
|
20512
20512
|
/* @__PURE__ */ e(R, { bold: !0, sx: { mb: 8 }, variant: "Body", children: n.spending_title }),
|
|
20513
20513
|
/* @__PURE__ */ e(ti, { data: H, height: 16 }),
|
|
20514
20514
|
/* @__PURE__ */ e(R, { variant: "Small", children: z(
|
|
@@ -20517,8 +20517,8 @@ const SR = ({
|
|
|
20517
20517
|
M(d, "0,0")
|
|
20518
20518
|
) })
|
|
20519
20519
|
] }),
|
|
20520
|
-
/* @__PURE__ */ s(
|
|
20521
|
-
/* @__PURE__ */ s(
|
|
20520
|
+
/* @__PURE__ */ s(P, { gap: 8, children: [
|
|
20521
|
+
/* @__PURE__ */ s(P, { alignItems: "center", direction: "row", gap: 4, mb: -4, children: [
|
|
20522
20522
|
/* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: n.income_title }),
|
|
20523
20523
|
/* @__PURE__ */ e(
|
|
20524
20524
|
NA,
|
|
@@ -20533,7 +20533,7 @@ const SR = ({
|
|
|
20533
20533
|
/* @__PURE__ */ e(ti, { data: p, height: 16 }),
|
|
20534
20534
|
/* @__PURE__ */ e(R, { variant: "Small", children: z(
|
|
20535
20535
|
n.income_description,
|
|
20536
|
-
M(
|
|
20536
|
+
M(b, "0,0"),
|
|
20537
20537
|
M(f, "0,0")
|
|
20538
20538
|
) })
|
|
20539
20539
|
] })
|
|
@@ -20545,7 +20545,7 @@ const SR = ({
|
|
|
20545
20545
|
isOpen: l,
|
|
20546
20546
|
onClose: () => v(!1),
|
|
20547
20547
|
title: o.manage_income,
|
|
20548
|
-
children: /* @__PURE__ */ s(
|
|
20548
|
+
children: /* @__PURE__ */ s(P, { gap: 4, children: [
|
|
20549
20549
|
/* @__PURE__ */ e(R, { bold: !0, sx: { mt: 12, mx: 24 }, variant: "Small", children: n.income_title }),
|
|
20550
20550
|
/* @__PURE__ */ e(Zn, {})
|
|
20551
20551
|
] })
|
|
@@ -20554,18 +20554,18 @@ const SR = ({
|
|
|
20554
20554
|
] });
|
|
20555
20555
|
}), JR = C(() => {
|
|
20556
20556
|
const { budgets: A } = X(), { totalBudgeted: t } = te(), { projectedIncome: i } = ZA(), n = i - t;
|
|
20557
|
-
return /* @__PURE__ */ s(
|
|
20558
|
-
/* @__PURE__ */ s(
|
|
20557
|
+
return /* @__PURE__ */ s(P, { direction: "row", justifyContent: "center", my: 16, spacing: 20, children: [
|
|
20558
|
+
/* @__PURE__ */ s(P, { alignItems: "center", children: [
|
|
20559
20559
|
/* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: M(i, "0,0") }),
|
|
20560
20560
|
/* @__PURE__ */ e(R, { color: "secondary", variant: "Small", children: A.projected_income })
|
|
20561
20561
|
] }),
|
|
20562
20562
|
/* @__PURE__ */ e(R, { bold: !0, justifyContent: "center", variant: "Body", children: "-" }),
|
|
20563
|
-
/* @__PURE__ */ s(
|
|
20563
|
+
/* @__PURE__ */ s(P, { alignItems: "center", children: [
|
|
20564
20564
|
/* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: M(t, "0,0") }),
|
|
20565
20565
|
/* @__PURE__ */ e(R, { color: "secondary", variant: "Small", children: A.budgeted })
|
|
20566
20566
|
] }),
|
|
20567
20567
|
/* @__PURE__ */ e(R, { bold: !0, justifyContent: "center", variant: "Body", children: "=" }),
|
|
20568
|
-
/* @__PURE__ */ s(
|
|
20568
|
+
/* @__PURE__ */ s(P, { alignItems: "center", children: [
|
|
20569
20569
|
/* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: M(n, "0,0") }),
|
|
20570
20570
|
/* @__PURE__ */ e(R, { color: "secondary", variant: "Small", children: A.remaining })
|
|
20571
20571
|
] })
|
|
@@ -20599,8 +20599,8 @@ const SR = ({
|
|
|
20599
20599
|
onClose: () => a(!1),
|
|
20600
20600
|
onPrimaryAction: d,
|
|
20601
20601
|
title: t.recalculate_title,
|
|
20602
|
-
children: /* @__PURE__ */ s(
|
|
20603
|
-
/* @__PURE__ */ s(
|
|
20602
|
+
children: /* @__PURE__ */ s(P, { children: [
|
|
20603
|
+
/* @__PURE__ */ s(P, { mx: 24, my: 16, children: [
|
|
20604
20604
|
/* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: t.recalculate_description_top }),
|
|
20605
20605
|
/* @__PURE__ */ e(R, { variant: "ParagraphSmall", children: t.recalculate_description_bottom })
|
|
20606
20606
|
] }),
|
|
@@ -20615,8 +20615,8 @@ const SR = ({
|
|
|
20615
20615
|
onAmountChanged: i
|
|
20616
20616
|
}) => {
|
|
20617
20617
|
const { budgets: n } = X(), { totalBudgeted: r } = te(), { projectedIncome: o } = ZA(), I = o - r;
|
|
20618
|
-
return /* @__PURE__ */ s(
|
|
20619
|
-
/* @__PURE__ */ s(
|
|
20618
|
+
return /* @__PURE__ */ s(P, { gap: 16, children: [
|
|
20619
|
+
/* @__PURE__ */ s(P, { children: [
|
|
20620
20620
|
/* @__PURE__ */ e(R, { children: z(
|
|
20621
20621
|
n.add_description_top,
|
|
20622
20622
|
M(I, "0,0")
|
|
@@ -20668,7 +20668,7 @@ const SR = ({
|
|
|
20668
20668
|
const { budgets: t } = X(), { addBudget: i, setAlert: n, unbudgetedCategories: r } = te(), o = async (I, a) => {
|
|
20669
20669
|
await i(I, a), n(z(t.alert_budget_created, I.name));
|
|
20670
20670
|
};
|
|
20671
|
-
return /* @__PURE__ */ s(
|
|
20671
|
+
return /* @__PURE__ */ s(P, { children: [
|
|
20672
20672
|
/* @__PURE__ */ e(JR, {}),
|
|
20673
20673
|
/* @__PURE__ */ e(L, { bgcolor: "background.paper", children: /* @__PURE__ */ e(rA, { children: r.map((I) => /* @__PURE__ */ e(
|
|
20674
20674
|
A3,
|
|
@@ -20694,7 +20694,7 @@ const SR = ({
|
|
|
20694
20694
|
percentage: `${o}%`
|
|
20695
20695
|
}
|
|
20696
20696
|
];
|
|
20697
|
-
return /* @__PURE__ */ e(ze, { sx: { mt: 24, mx: 24 }, children: /* @__PURE__ */ e(Ce, { children: /* @__PURE__ */ s(
|
|
20697
|
+
return /* @__PURE__ */ e(ze, { sx: { mt: 24, mx: 24 }, children: /* @__PURE__ */ e(Ce, { children: /* @__PURE__ */ s(P, { alignItems: "center", gap: 16, children: [
|
|
20698
20698
|
/* @__PURE__ */ e(be, { categoryGuid: r, size: 56 }),
|
|
20699
20699
|
/* @__PURE__ */ e(it, { children: `${M(I, "0,0")} / ${M(t, "0,0")}` }),
|
|
20700
20700
|
/* @__PURE__ */ e(R, { bold: !0, variant: "XSmall", children: n }),
|
|
@@ -20702,7 +20702,7 @@ const SR = ({
|
|
|
20702
20702
|
] }) }) });
|
|
20703
20703
|
}, t3 = C(() => {
|
|
20704
20704
|
const { budgets: A } = X();
|
|
20705
|
-
return /* @__PURE__ */ s(
|
|
20705
|
+
return /* @__PURE__ */ s(P, { alignItems: "center", gap: 12, height: "auto", mb: 24, mt: 24, children: [
|
|
20706
20706
|
/* @__PURE__ */ e(q, { color: "secondary", name: "bubble_chart", sx: { fontSize: 32 } }),
|
|
20707
20707
|
/* @__PURE__ */ e(R, { bold: !0, color: "secondary", variant: "Small", children: A.zero_state_no_sub_budgets }),
|
|
20708
20708
|
/* @__PURE__ */ e(R, { color: "text.secondary", variant: "XSmall", children: A.zero_state_no_sub_budgets_description })
|
|
@@ -20720,8 +20720,8 @@ const SR = ({
|
|
|
20720
20720
|
/* @__PURE__ */ e(
|
|
20721
20721
|
eA,
|
|
20722
20722
|
{
|
|
20723
|
-
primary: /* @__PURE__ */ e(
|
|
20724
|
-
secondary: /* @__PURE__ */ e(
|
|
20723
|
+
primary: /* @__PURE__ */ e(P, { component: "span", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ e(R, { bold: !0, variant: "Body", children: A.category.name }) }),
|
|
20724
|
+
secondary: /* @__PURE__ */ e(P, { component: "span", direction: "row", justifyContent: "space-between", children: /* @__PURE__ */ e(R, { fontWeight: 400, variant: "Body", children: `
|
|
20725
20725
|
${M(o, "0,0")} /
|
|
20726
20726
|
${M(t, "0,0")}
|
|
20727
20727
|
` }) })
|
|
@@ -20738,12 +20738,12 @@ const SR = ({
|
|
|
20738
20738
|
}, []);
|
|
20739
20739
|
const H = () => {
|
|
20740
20740
|
r(A.guid), c(!0);
|
|
20741
|
-
},
|
|
20741
|
+
}, b = async () => {
|
|
20742
20742
|
v && Number(E) > 0 && (await I(v, Number(E), t.guid), f(!1), c(!1), u(void 0));
|
|
20743
20743
|
};
|
|
20744
20744
|
return /* @__PURE__ */ s(L, { children: [
|
|
20745
|
-
/* @__PURE__ */ e(W, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ e(aA, { onClick: H, children: /* @__PURE__ */ e(eA, { children: /* @__PURE__ */ s(
|
|
20746
|
-
/* @__PURE__ */ s(
|
|
20745
|
+
/* @__PURE__ */ e(W, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ e(aA, { onClick: H, children: /* @__PURE__ */ e(eA, { children: /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
20746
|
+
/* @__PURE__ */ s(P, { alignItems: "center", direction: "row", gap: 8, children: [
|
|
20747
20747
|
/* @__PURE__ */ e(q, { fill: !0, name: "add_box", size: 24, sx: { color: "action.active" } }),
|
|
20748
20748
|
/* @__PURE__ */ e(R, { bold: !0, sx: { color: "action.active" }, variant: "Body", children: i.add_sub_budget_button })
|
|
20749
20749
|
] }),
|
|
@@ -20767,7 +20767,7 @@ const SR = ({
|
|
|
20767
20767
|
disablePrimaryButton: Number(E) <= 0,
|
|
20768
20768
|
isOpen: d,
|
|
20769
20769
|
onClose: () => f(!1),
|
|
20770
|
-
onPrimaryAction:
|
|
20770
|
+
onPrimaryAction: b,
|
|
20771
20771
|
primaryText: i.add_save_button,
|
|
20772
20772
|
children: /* @__PURE__ */ e(
|
|
20773
20773
|
Wi,
|
|
@@ -20781,9 +20781,9 @@ const SR = ({
|
|
|
20781
20781
|
)
|
|
20782
20782
|
] });
|
|
20783
20783
|
}), r3 = C(({ budget: A }) => {
|
|
20784
|
-
const { category: t, subBudgets: i } = A, { budgets: n, common: r } = X(), { deleteBudget: o, selectedSubBudget: I, setSelectedSubBudget: a, updateBudget: c } = te(), { filter: d, setFilter: f } = PA(), [E, l] = h.useState(!1), [v, u] = h.useState(!1), [H,
|
|
20784
|
+
const { category: t, subBudgets: i } = A, { budgets: n, common: r } = X(), { deleteBudget: o, selectedSubBudget: I, setSelectedSubBudget: a, updateBudget: c } = te(), { filter: d, setFilter: f } = PA(), [E, l] = h.useState(!1), [v, u] = h.useState(!1), [H, b] = h.useState("");
|
|
20785
20785
|
h.useEffect(() => {
|
|
20786
|
-
I && (
|
|
20786
|
+
I && (b(`${I.amount}`), f({
|
|
20787
20787
|
...d,
|
|
20788
20788
|
custom: (w) => w.category_guid === I.category_guid
|
|
20789
20789
|
}));
|
|
@@ -20820,7 +20820,7 @@ const SR = ({
|
|
|
20820
20820
|
primaryText: n.details_edit_button,
|
|
20821
20821
|
secondaryText: n.details_delete_button,
|
|
20822
20822
|
title: n.details_title,
|
|
20823
|
-
children: I && /* @__PURE__ */ s(
|
|
20823
|
+
children: I && /* @__PURE__ */ s(P, { gap: 24, children: [
|
|
20824
20824
|
/* @__PURE__ */ e(FI, { budget: I }),
|
|
20825
20825
|
/* @__PURE__ */ e(Rt, { height: "100%" })
|
|
20826
20826
|
] })
|
|
@@ -20841,7 +20841,7 @@ const SR = ({
|
|
|
20841
20841
|
{
|
|
20842
20842
|
amount: H,
|
|
20843
20843
|
categoryName: I.category.name,
|
|
20844
|
-
onAmountChanged:
|
|
20844
|
+
onAmountChanged: b
|
|
20845
20845
|
}
|
|
20846
20846
|
)
|
|
20847
20847
|
}
|
|
@@ -20870,9 +20870,9 @@ const SR = ({
|
|
|
20870
20870
|
}, v = () => {
|
|
20871
20871
|
cI(o, I), r(t.alert_csv_downloaded);
|
|
20872
20872
|
};
|
|
20873
|
-
return /* @__PURE__ */ s(
|
|
20873
|
+
return /* @__PURE__ */ s(P, { gap: 24, children: [
|
|
20874
20874
|
/* @__PURE__ */ e(FI, { budget: A }),
|
|
20875
|
-
/* @__PURE__ */ s(
|
|
20875
|
+
/* @__PURE__ */ s(P, { children: [
|
|
20876
20876
|
/* @__PURE__ */ s(
|
|
20877
20877
|
Se,
|
|
20878
20878
|
{
|
|
@@ -20886,8 +20886,8 @@ const SR = ({
|
|
|
20886
20886
|
]
|
|
20887
20887
|
}
|
|
20888
20888
|
),
|
|
20889
|
-
a === 0 && /* @__PURE__ */ s(
|
|
20890
|
-
o.length > 0 && /* @__PURE__ */ e(
|
|
20889
|
+
a === 0 && /* @__PURE__ */ s(P, { children: [
|
|
20890
|
+
o.length > 0 && /* @__PURE__ */ e(P, { direction: "row", justifyContent: "right", mb: -24, mr: 8, mt: 8, zIndex: 1, children: /* @__PURE__ */ e(
|
|
20891
20891
|
$,
|
|
20892
20892
|
{
|
|
20893
20893
|
onClick: v,
|
|
@@ -20920,12 +20920,12 @@ const SR = ({
|
|
|
20920
20920
|
setAlert: a,
|
|
20921
20921
|
setSelectedBudget: c,
|
|
20922
20922
|
updateBudget: d
|
|
20923
|
-
} = te(), { setFilter: f } = PA(), [E, l] = h.useState(!1), [v, u] = h.useState(!1), [H,
|
|
20923
|
+
} = te(), { setFilter: f } = PA(), [E, l] = h.useState(!1), [v, u] = h.useState(!1), [H, b] = h.useState(!1), [p, y] = h.useState("");
|
|
20924
20924
|
h.useEffect(() => {
|
|
20925
20925
|
o && !I && (y(`${o.amount}`), l(!0), f({
|
|
20926
20926
|
accounts: A,
|
|
20927
20927
|
dateRange: n,
|
|
20928
|
-
custom: (
|
|
20928
|
+
custom: (j) => j.category_guid === o.category_guid || j.top_level_category_guid === o.category_guid
|
|
20929
20929
|
}));
|
|
20930
20930
|
}, [o]);
|
|
20931
20931
|
const x = async () => {
|
|
@@ -20935,7 +20935,7 @@ const SR = ({
|
|
|
20935
20935
|
percentage: o.category.totalAmount / Number(p) * 100
|
|
20936
20936
|
}), a(z(t.alert_budget_updated, o.category.name)));
|
|
20937
20937
|
}, w = async () => {
|
|
20938
|
-
o && (await r(o.guid), a(z(t.alert_budget_deleted, o.category.name))),
|
|
20938
|
+
o && (await r(o.guid), a(z(t.alert_budget_deleted, o.category.name))), b(!1), D();
|
|
20939
20939
|
}, D = () => {
|
|
20940
20940
|
l(!1), setTimeout(() => {
|
|
20941
20941
|
c(void 0);
|
|
@@ -20950,7 +20950,7 @@ const SR = ({
|
|
|
20950
20950
|
isOpen: E,
|
|
20951
20951
|
onClose: D,
|
|
20952
20952
|
onPrimaryAction: () => u(!0),
|
|
20953
|
-
onSecondaryAction: () =>
|
|
20953
|
+
onSecondaryAction: () => b(!0),
|
|
20954
20954
|
primaryText: t.details_edit_button,
|
|
20955
20955
|
secondaryColor: "error",
|
|
20956
20956
|
secondaryText: t.details_delete_button,
|
|
@@ -20982,7 +20982,7 @@ const SR = ({
|
|
|
20982
20982
|
{
|
|
20983
20983
|
copy: { close_aria: i.close_aria, title: t.delete_title },
|
|
20984
20984
|
isOpen: H,
|
|
20985
|
-
onClose: () =>
|
|
20985
|
+
onClose: () => b(!1),
|
|
20986
20986
|
onPrimaryAction: w,
|
|
20987
20987
|
primaryColor: "error",
|
|
20988
20988
|
primaryText: t.details_delete_button,
|
|
@@ -20992,13 +20992,13 @@ const SR = ({
|
|
|
20992
20992
|
)
|
|
20993
20993
|
] });
|
|
20994
20994
|
}), vo = 480, VP = C(({ onBackClick: A, sx: t }) => {
|
|
20995
|
-
const i = RA(), { onEvent: n } = K(), { accounts: r } = CA(), { budgets: o, common: I } = X(), { isInitialized: a, selectedAccounts: c, setDisplayedDate: d, setSelectedAccounts: f } = pA(), { alert: E, dateRange: l, loadBudgets: v, setDateRange: u, setAlert: H, setTheme:
|
|
20995
|
+
const i = RA(), { onEvent: n } = K(), { accounts: r } = CA(), { budgets: o, common: I } = X(), { isInitialized: a, selectedAccounts: c, setDisplayedDate: d, setSelectedAccounts: f } = pA(), { alert: E, dateRange: l, loadBudgets: v, setDateRange: u, setAlert: H, setTheme: b } = te(), { loadCashflowSequences: p } = ZA(), { isDesktop: y, isTablet: x } = zA(), { reloadCategoryTotals: w } = qA(), [D, j] = h.useState(!1), [m, O] = h.useState(!1);
|
|
20996
20996
|
h.useEffect(() => {
|
|
20997
|
-
|
|
20997
|
+
b(i), f(r), d(l.start, l.end), n(V.BUDGETS_VIEW);
|
|
20998
20998
|
}, []), h.useEffect(() => {
|
|
20999
20999
|
f(r);
|
|
21000
21000
|
}, [r]), h.useEffect(() => {
|
|
21001
|
-
a && (w(c, l.start, l.end).finally(), D || (p().finally(), v().finally(() =>
|
|
21001
|
+
a && (w(c, l.start, l.end).finally(), D || (p().finally(), v().finally(() => j(!0))));
|
|
21002
21002
|
}, [a, c, l]);
|
|
21003
21003
|
const T = (sA) => {
|
|
21004
21004
|
u({ start: sA[0] || /* @__PURE__ */ new Date(), end: sA[1] || /* @__PURE__ */ new Date() });
|
|
@@ -21027,8 +21027,8 @@ const SR = ({
|
|
|
21027
21027
|
title: o.budgets_title,
|
|
21028
21028
|
children: [
|
|
21029
21029
|
(!a || !D) && /* @__PURE__ */ e(ee, {}),
|
|
21030
|
-
a && D && /* @__PURE__ */ s(
|
|
21031
|
-
/* @__PURE__ */ e(
|
|
21030
|
+
a && D && /* @__PURE__ */ s(P, { direction: y || x ? "row" : "column", height: "100%", width: "100%", children: [
|
|
21031
|
+
/* @__PURE__ */ e(P, { height: y || x ? "calc(100dvh - 150px)" : 450, children: /* @__PURE__ */ e(
|
|
21032
21032
|
UI,
|
|
21033
21033
|
{
|
|
21034
21034
|
height: y || x ? 800 : 450,
|
|
@@ -21038,7 +21038,7 @@ const SR = ({
|
|
|
21038
21038
|
}
|
|
21039
21039
|
) }),
|
|
21040
21040
|
/* @__PURE__ */ s(
|
|
21041
|
-
|
|
21041
|
+
P,
|
|
21042
21042
|
{
|
|
21043
21043
|
gap: 24,
|
|
21044
21044
|
height: "100%",
|
|
@@ -21056,7 +21056,7 @@ const SR = ({
|
|
|
21056
21056
|
IA,
|
|
21057
21057
|
{
|
|
21058
21058
|
ariaLabelClose: I.close_aria,
|
|
21059
|
-
isOpen:
|
|
21059
|
+
isOpen: m,
|
|
21060
21060
|
onClose: () => O(!1),
|
|
21061
21061
|
title: o.add_new_title,
|
|
21062
21062
|
children: /* @__PURE__ */ e(e3, { onRecalculateBudgets: iA })
|
|
@@ -21082,7 +21082,7 @@ const a3 = C(() => {
|
|
|
21082
21082
|
appDataStore: { banner: t }
|
|
21083
21083
|
} = oi();
|
|
21084
21084
|
return !t?.redirect_url || !t?.image_url ? null : /* @__PURE__ */ e(
|
|
21085
|
-
|
|
21085
|
+
P,
|
|
21086
21086
|
{
|
|
21087
21087
|
sx: {
|
|
21088
21088
|
alignItems: "center",
|
|
@@ -21130,8 +21130,8 @@ const a3 = C(() => {
|
|
|
21130
21130
|
},
|
|
21131
21131
|
title: r.account_filter.title
|
|
21132
21132
|
};
|
|
21133
|
-
return /* @__PURE__ */ e(De, { sx: { mb: n ? 24 : 0, p: 24 }, children: /* @__PURE__ */ s(
|
|
21134
|
-
/* @__PURE__ */ s(
|
|
21133
|
+
return /* @__PURE__ */ e(De, { sx: { mb: n ? 24 : 0, p: 24 }, children: /* @__PURE__ */ s(P, { alignItems: "center", flexDirection: "row", justifyContent: "space-between", children: [
|
|
21134
|
+
/* @__PURE__ */ s(P, { children: [
|
|
21135
21135
|
/* @__PURE__ */ e(it, { children: (() => {
|
|
21136
21136
|
const c = (/* @__PURE__ */ new Date()).getHours();
|
|
21137
21137
|
return c > 1 && c < 12 ? r.good_morning : c >= 12 && c < 18 ? r.good_afternoon : r.good_evening;
|
|
@@ -21172,18 +21172,18 @@ const a3 = C(() => {
|
|
|
21172
21172
|
/* @__PURE__ */ e(tt, { xs: 12, children: r.isInitialized && /* @__PURE__ */ e(c3, {}) }),
|
|
21173
21173
|
/* @__PURE__ */ s(tt, { xl: 8, xs: 12, children: [
|
|
21174
21174
|
/* @__PURE__ */ e(a3, {}),
|
|
21175
|
-
t && /* @__PURE__ */ s(
|
|
21175
|
+
t && /* @__PURE__ */ s(P, { direction: "column", spacing: 24, children: [
|
|
21176
21176
|
/* @__PURE__ */ e(_e, { height: 100, variant: "rounded", width: "100%" }),
|
|
21177
21177
|
/* @__PURE__ */ e(_e, { height: 300, variant: "rounded", width: "100%" }),
|
|
21178
21178
|
/* @__PURE__ */ e(_e, { height: 300, variant: "rounded", width: "100%" })
|
|
21179
21179
|
] }),
|
|
21180
|
-
!t && /* @__PURE__ */ e(
|
|
21180
|
+
!t && /* @__PURE__ */ e(P, { direction: "column", spacing: 24, children: i ? c.map((f) => /* @__PURE__ */ e(h.Fragment, { children: f.component }, f.index)) : a.map((f) => /* @__PURE__ */ e(h.Fragment, { children: f.component }, f.index)) })
|
|
21181
21181
|
] }),
|
|
21182
|
-
i && /* @__PURE__ */ e(tt, { xl: 4, children: t ? /* @__PURE__ */ s(
|
|
21182
|
+
i && /* @__PURE__ */ e(tt, { xl: 4, children: t ? /* @__PURE__ */ s(P, { direction: "column", spacing: 24, children: [
|
|
21183
21183
|
/* @__PURE__ */ e(_e, { height: 200, variant: "rounded", width: "100%" }),
|
|
21184
21184
|
/* @__PURE__ */ e(_e, { height: 100, variant: "rounded", width: "100%" }),
|
|
21185
21185
|
/* @__PURE__ */ e(_e, { height: 300, variant: "rounded", width: "100%" })
|
|
21186
|
-
] }) : /* @__PURE__ */ e(
|
|
21186
|
+
] }) : /* @__PURE__ */ e(P, { direction: "column", spacing: 24, children: d.map((f) => /* @__PURE__ */ e(h.Fragment, { children: f.component }, f.index)) }) })
|
|
21187
21187
|
] });
|
|
21188
21188
|
}, BP = C(f3);
|
|
21189
21189
|
class d3 {
|
|
@@ -21426,12 +21426,12 @@ const si = h.createContext(null), u3 = ({
|
|
|
21426
21426
|
title: v,
|
|
21427
21427
|
variant: u,
|
|
21428
21428
|
widthOverrides: H
|
|
21429
|
-
},
|
|
21429
|
+
}, b) {
|
|
21430
21430
|
const [p, y] = h.useState(2);
|
|
21431
21431
|
h.useEffect(() => {
|
|
21432
21432
|
H && H <= 325 && y(3);
|
|
21433
21433
|
}, [H]);
|
|
21434
|
-
const { cardStyle: x, linkTextStyle: w } = E, D = u ? x : { border: "none", boxShadow: "none", ...x },
|
|
21434
|
+
const { cardStyle: x, linkTextStyle: w } = E, D = u ? x : { border: "none", boxShadow: "none", ...x }, j = /* @__PURE__ */ e(
|
|
21435
21435
|
HA,
|
|
21436
21436
|
{
|
|
21437
21437
|
className: "mx-micro-card-description",
|
|
@@ -21456,7 +21456,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
21456
21456
|
"aria-hidden": !a,
|
|
21457
21457
|
"aria-label": i,
|
|
21458
21458
|
onClick: () => d(),
|
|
21459
|
-
ref:
|
|
21459
|
+
ref: b,
|
|
21460
21460
|
role: "button",
|
|
21461
21461
|
style: {
|
|
21462
21462
|
height: "100%",
|
|
@@ -21485,7 +21485,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
21485
21485
|
},
|
|
21486
21486
|
variant: u,
|
|
21487
21487
|
children: /* @__PURE__ */ s(
|
|
21488
|
-
|
|
21488
|
+
P,
|
|
21489
21489
|
{
|
|
21490
21490
|
sx: {
|
|
21491
21491
|
gap: 8,
|
|
@@ -21496,18 +21496,18 @@ const si = h.createContext(null), u3 = ({
|
|
|
21496
21496
|
rt,
|
|
21497
21497
|
{
|
|
21498
21498
|
avatar: f && I,
|
|
21499
|
-
subheader: c &&
|
|
21499
|
+
subheader: c && j,
|
|
21500
21500
|
sx: { color: l.headerColor, p: 0 },
|
|
21501
21501
|
title: v,
|
|
21502
21502
|
titleTypographyProps: { fontSize: 15, fontWeight: 600, variant: "h3" }
|
|
21503
21503
|
}
|
|
21504
21504
|
),
|
|
21505
|
-
/* @__PURE__ */ e(Ce, { sx: { p: 0 }, children: !c &&
|
|
21505
|
+
/* @__PURE__ */ e(Ce, { sx: { p: 0 }, children: !c && j }),
|
|
21506
21506
|
!!t && /* @__PURE__ */ e(Qs, { sx: { padding: 0 }, children: /* @__PURE__ */ e(
|
|
21507
21507
|
L,
|
|
21508
21508
|
{
|
|
21509
|
-
sx: (
|
|
21510
|
-
color: l.buttonColor ? l.buttonColor :
|
|
21509
|
+
sx: (m) => ({
|
|
21510
|
+
color: l.buttonColor ? l.buttonColor : m.palette.primary.main,
|
|
21511
21511
|
// TODO: Per Cameron the theme package in @mxenabled/mxui will be getting a big update and this will be theme.palette.primary_main
|
|
21512
21512
|
fontSize: 14,
|
|
21513
21513
|
fontWeight: "bold",
|
|
@@ -22420,15 +22420,15 @@ const si = h.createContext(null), u3 = ({
|
|
|
22420
22420
|
}) => {
|
|
22421
22421
|
const { ref: v, inView: u } = No({
|
|
22422
22422
|
threshold: Aa
|
|
22423
|
-
}), { cardsCopy: H } = ut(), { onEvent:
|
|
22423
|
+
}), { cardsCopy: H } = ut(), { onEvent: b } = ci(), { updateBeat: p, updateOffer: y } = w3();
|
|
22424
22424
|
Ht(() => {
|
|
22425
|
-
u && (i.has_been_displayed ?
|
|
22425
|
+
u && (i.has_been_displayed ? b(kI(i.template)) : (i.guid.startsWith("OFR") ? y({
|
|
22426
22426
|
...i,
|
|
22427
22427
|
has_been_displayed: !0
|
|
22428
22428
|
}) : p({
|
|
22429
22429
|
...i,
|
|
22430
22430
|
has_been_displayed: !0
|
|
22431
|
-
}),
|
|
22431
|
+
}), b(KI(i.template))));
|
|
22432
22432
|
}, [u]), Ht(() => {
|
|
22433
22433
|
u && i && d?.capture("viewed_insight", {
|
|
22434
22434
|
beat_guid: i.guid,
|
|
@@ -22437,7 +22437,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22437
22437
|
});
|
|
22438
22438
|
}, [i, I, u]);
|
|
22439
22439
|
const x = () => {
|
|
22440
|
-
c && c(i),
|
|
22440
|
+
c && c(i), b(WI(i.template)), d?.capture("clicked_insight", {
|
|
22441
22441
|
beat_guid: i.guid,
|
|
22442
22442
|
template: i.template,
|
|
22443
22443
|
position: I
|
|
@@ -22558,7 +22558,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22558
22558
|
variant: d,
|
|
22559
22559
|
widthOverrides: f
|
|
22560
22560
|
}) => {
|
|
22561
|
-
const E = L3(n, c, f), l = h.useRef(null), [v, u] = h.useState(0), [H,
|
|
22561
|
+
const E = L3(n, c, f), l = h.useRef(null), [v, u] = h.useState(0), [H, b] = h.useState(null), [p, y] = h.useState(null), { carouselCopy: x } = ut(), { onEvent: w } = ci(), D = () => {
|
|
22562
22562
|
w(xe.ON_CAROUSEL_FORWARD_CLICK), l.current && l.current.scrollTo({
|
|
22563
22563
|
left: (
|
|
22564
22564
|
// Adds the flex gap to the carousel ref's width
|
|
@@ -22567,21 +22567,21 @@ const si = h.createContext(null), u3 = ({
|
|
|
22567
22567
|
top: 0,
|
|
22568
22568
|
behavior: "smooth"
|
|
22569
22569
|
});
|
|
22570
|
-
},
|
|
22570
|
+
}, j = () => {
|
|
22571
22571
|
w(xe.ON_CAROUSEL_BACK_CLICK), l.current && l.current.scrollTo({
|
|
22572
22572
|
left: (l.current.offsetWidth + 8) * (Math.floor(v / (l.current.offsetWidth + 8)) - 1),
|
|
22573
22573
|
top: 0,
|
|
22574
22574
|
behavior: "smooth"
|
|
22575
22575
|
});
|
|
22576
|
-
},
|
|
22576
|
+
}, m = () => {
|
|
22577
22577
|
l.current && u(l.current.scrollLeft);
|
|
22578
22578
|
}, O = () => {
|
|
22579
22579
|
if (!p || !H) return;
|
|
22580
22580
|
p - H > y3 ? w(xe.ON_CAROUSEL_FORWARD_SWIPE) : w(xe.ON_CAROUSEL_BACK_SWIPE);
|
|
22581
22581
|
}, T = (sA) => {
|
|
22582
|
-
|
|
22582
|
+
b(sA.targetTouches[0].clientX);
|
|
22583
22583
|
}, tA = (sA) => {
|
|
22584
|
-
|
|
22584
|
+
b(null), y(sA.targetTouches[0].clientX);
|
|
22585
22585
|
}, Y = {
|
|
22586
22586
|
clientColorScheme: t,
|
|
22587
22587
|
showCTAColocatedWithText: i,
|
|
@@ -22603,7 +22603,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22603
22603
|
"div",
|
|
22604
22604
|
{
|
|
22605
22605
|
className: "mx-insights-micro-carousel-container",
|
|
22606
|
-
onScroll:
|
|
22606
|
+
onScroll: m,
|
|
22607
22607
|
onTouchEnd: O,
|
|
22608
22608
|
onTouchMove: T,
|
|
22609
22609
|
onTouchStart: tA,
|
|
@@ -22646,7 +22646,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22646
22646
|
currentBeatIndex: iA,
|
|
22647
22647
|
numBeats: A.length + 1,
|
|
22648
22648
|
onNextClick: D,
|
|
22649
|
-
onPreviousClick:
|
|
22649
|
+
onPreviousClick: j,
|
|
22650
22650
|
scrollRightBoundary: oA,
|
|
22651
22651
|
scrollX: v
|
|
22652
22652
|
}
|
|
@@ -22689,7 +22689,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22689
22689
|
o && (o(xe.ON_VIEW_MORE_CLICKED), t(), i?.capture("clicked_view_more"));
|
|
22690
22690
|
};
|
|
22691
22691
|
return /* @__PURE__ */ s(
|
|
22692
|
-
|
|
22692
|
+
P,
|
|
22693
22693
|
{
|
|
22694
22694
|
alignItems: "center",
|
|
22695
22695
|
direction: "row",
|
|
@@ -22899,18 +22899,18 @@ const si = h.createContext(null), u3 = ({
|
|
|
22899
22899
|
showHeader: v,
|
|
22900
22900
|
showIcon: u,
|
|
22901
22901
|
showWithMargin: H = !0,
|
|
22902
|
-
token:
|
|
22902
|
+
token: b = "",
|
|
22903
22903
|
useDarkMode: p,
|
|
22904
22904
|
userHasFullInsightFeedBeats: y,
|
|
22905
22905
|
variant: x,
|
|
22906
22906
|
widthOverrides: w
|
|
22907
22907
|
}) => {
|
|
22908
|
-
const [D,
|
|
22908
|
+
const [D, j] = Fe("STANDARD"), [m, O] = Fe(!1), T = Ic([c], Je), tA = ac([d], Je);
|
|
22909
22909
|
h.useEffect(() => {
|
|
22910
|
-
Je.isInitialized || Je.initialize(r,
|
|
22911
|
-
}, [r,
|
|
22910
|
+
Je.isInitialized || Je.initialize(r, b, I);
|
|
22911
|
+
}, [r, b, I, Je.isInitialized]), h.useEffect(() => {
|
|
22912
22912
|
const oA = window.innerHeight;
|
|
22913
|
-
oA < 180 ?
|
|
22913
|
+
oA < 180 ? j("STANDARD") : oA >= 180 && oA < 200 ? j("LARGE") : oA >= 200 && oA < 248 ? j("XLARGE") : oA >= 248 && j("XXLARGE");
|
|
22914
22914
|
}, [window.innerHeight]), h.useEffect(() => {
|
|
22915
22915
|
O(!A && Je.isInitialized);
|
|
22916
22916
|
}, [A, Je.isInitialized]);
|
|
@@ -22934,7 +22934,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22934
22934
|
/* @__PURE__ */ e(Gs, {}),
|
|
22935
22935
|
/* @__PURE__ */ e(u3, { onEvent: T, onPageview: tA, store: Je, children: /* @__PURE__ */ s(G3, { heightOverrides: o, widthOverrides: w, children: [
|
|
22936
22936
|
(A || !Je.isInitialized) && /* @__PURE__ */ e(M3, {}),
|
|
22937
|
-
|
|
22937
|
+
m && v && /* @__PURE__ */ e(
|
|
22938
22938
|
q3,
|
|
22939
22939
|
{
|
|
22940
22940
|
clientColorScheme: i,
|
|
@@ -22943,7 +22943,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
22943
22943
|
widthOverrides: w
|
|
22944
22944
|
}
|
|
22945
22945
|
),
|
|
22946
|
-
|
|
22946
|
+
m && !!t.length && /* @__PURE__ */ e(
|
|
22947
22947
|
O3,
|
|
22948
22948
|
{
|
|
22949
22949
|
beats: t,
|
|
@@ -22953,8 +22953,8 @@ const si = h.createContext(null), u3 = ({
|
|
|
22953
22953
|
...Y
|
|
22954
22954
|
}
|
|
22955
22955
|
),
|
|
22956
|
-
|
|
22957
|
-
|
|
22956
|
+
m && !t.length && y && /* @__PURE__ */ e(ea, { clientColorScheme: i, ...iA }),
|
|
22957
|
+
m && !t.length && !y && /* @__PURE__ */ e(ta, { ...iA })
|
|
22958
22958
|
] }) })
|
|
22959
22959
|
] })
|
|
22960
22960
|
);
|
|
@@ -23087,7 +23087,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
23087
23087
|
donutData: I,
|
|
23088
23088
|
totalAmount: o
|
|
23089
23089
|
};
|
|
23090
|
-
}, pi = ({ amount: A, label: t }) => /* @__PURE__ */ s(
|
|
23090
|
+
}, pi = ({ amount: A, label: t }) => /* @__PURE__ */ s(P, { direction: "column", children: [
|
|
23091
23091
|
/* @__PURE__ */ e(R, { bold: !0, sx: { textTransform: "none" }, variant: "Body", children: t }),
|
|
23092
23092
|
/* @__PURE__ */ e(R, { variant: "XSmall", children: M(A, "0,0") })
|
|
23093
23093
|
] }), B3 = ({
|
|
@@ -23106,9 +23106,9 @@ const si = h.createContext(null), u3 = ({
|
|
|
23106
23106
|
), l = h.useMemo(() => A.donutData.length > 0 ? A.donutData : [{ id: "0", color: d.palette.border.light, value: 100 }], [A, d]), v = () => {
|
|
23107
23107
|
n?.(r);
|
|
23108
23108
|
}, u = f ? 32 : 48;
|
|
23109
|
-
return /* @__PURE__ */ e(yc, { data: l, onClick: i, selectedId: r, size: o, children: /* @__PURE__ */ e(
|
|
23109
|
+
return /* @__PURE__ */ e(yc, { data: l, onClick: i, selectedId: r, size: o, children: /* @__PURE__ */ e(P, { alignItems: "center", height: "100%", justifyContent: "center", width: "100%", children: /* @__PURE__ */ s(P, { alignItems: "center", justifyContent: "center", minHeight: o, minWidth: o, children: [
|
|
23110
23110
|
E && /* @__PURE__ */ s(
|
|
23111
|
-
|
|
23111
|
+
P,
|
|
23112
23112
|
{
|
|
23113
23113
|
alignItems: "center",
|
|
23114
23114
|
gap: a === "mini" ? 0 : 8,
|
|
@@ -23143,8 +23143,8 @@ const si = h.createContext(null), u3 = ({
|
|
|
23143
23143
|
}
|
|
23144
23144
|
)
|
|
23145
23145
|
] }) }) });
|
|
23146
|
-
}, wi = C(B3), Co = ({ data: A, onSelected: t, selectedId: i }) => /* @__PURE__ */ e(
|
|
23147
|
-
|
|
23146
|
+
}, wi = C(B3), Co = ({ data: A, onSelected: t, selectedId: i }) => /* @__PURE__ */ e(P, { gap: 8, height: "100%", justifyContent: "center", my: "auto", children: A.categoryData.map((n) => /* @__PURE__ */ s(
|
|
23147
|
+
P,
|
|
23148
23148
|
{
|
|
23149
23149
|
alignItems: "center",
|
|
23150
23150
|
"aria-label": n.name,
|
|
@@ -23185,8 +23185,8 @@ const si = h.createContext(null), u3 = ({
|
|
|
23185
23185
|
), l = h.useMemo(
|
|
23186
23186
|
() => na(r, o, n),
|
|
23187
23187
|
[r, o, n]
|
|
23188
|
-
), v = (H,
|
|
23189
|
-
f(
|
|
23188
|
+
), v = (H, b) => {
|
|
23189
|
+
f(b), c("");
|
|
23190
23190
|
}, u = (H) => {
|
|
23191
23191
|
c(a === H ? "" : H);
|
|
23192
23192
|
};
|
|
@@ -23217,7 +23217,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
23217
23217
|
}
|
|
23218
23218
|
)
|
|
23219
23219
|
] }),
|
|
23220
|
-
d === 0 && /* @__PURE__ */ e(L, { children: /* @__PURE__ */ s(
|
|
23220
|
+
d === 0 && /* @__PURE__ */ e(L, { children: /* @__PURE__ */ s(P, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
|
|
23221
23221
|
/* @__PURE__ */ e(
|
|
23222
23222
|
wi,
|
|
23223
23223
|
{
|
|
@@ -23236,7 +23236,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
23236
23236
|
}
|
|
23237
23237
|
)
|
|
23238
23238
|
] }) }),
|
|
23239
|
-
d === 1 && /* @__PURE__ */ e(L, { children: /* @__PURE__ */ s(
|
|
23239
|
+
d === 1 && /* @__PURE__ */ e(L, { children: /* @__PURE__ */ s(P, { direction: "row", gap: 16, justifyContent: "center", p: 24, children: [
|
|
23240
23240
|
/* @__PURE__ */ e(
|
|
23241
23241
|
wi,
|
|
23242
23242
|
{
|
|
@@ -23270,7 +23270,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
23270
23270
|
title: n
|
|
23271
23271
|
}) => {
|
|
23272
23272
|
const { spending: r } = X(), o = A.categoryData.find((I) => I.guid === i);
|
|
23273
|
-
return /* @__PURE__ */ s(
|
|
23273
|
+
return /* @__PURE__ */ s(P, { direction: "column", justifyContent: "center", maxWidth: 400, minWidth: 275, width: "100%", children: [
|
|
23274
23274
|
/* @__PURE__ */ e(R, { bold: !0, sx: { py: 12 }, children: `${n} ${r.by_category}` }),
|
|
23275
23275
|
/* @__PURE__ */ e(G, { "aria-hidden": "true" }),
|
|
23276
23276
|
/* @__PURE__ */ e(rA, { children: A.categoryData.map((I) => /* @__PURE__ */ s(h.Fragment, { children: [
|
|
@@ -23300,7 +23300,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
23300
23300
|
}
|
|
23301
23301
|
),
|
|
23302
23302
|
/* @__PURE__ */ s(
|
|
23303
|
-
|
|
23303
|
+
P,
|
|
23304
23304
|
{
|
|
23305
23305
|
alignItems: "center",
|
|
23306
23306
|
direction: "row",
|
|
@@ -23327,7 +23327,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
23327
23327
|
pr: 8,
|
|
23328
23328
|
py: 0
|
|
23329
23329
|
},
|
|
23330
|
-
children: /* @__PURE__ */ s(
|
|
23330
|
+
children: /* @__PURE__ */ s(P, { direction: "row", justifyContent: "space-between", width: "100%", children: [
|
|
23331
23331
|
/* @__PURE__ */ s(R, { children: [
|
|
23332
23332
|
a.name,
|
|
23333
23333
|
" "
|
|
@@ -23351,7 +23351,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
23351
23351
|
}) => {
|
|
23352
23352
|
const { isDesktop: o, isMobile: I } = zA(), { isLoadingCategoryTotals: a } = qA(), { spending: c } = X();
|
|
23353
23353
|
return /* @__PURE__ */ s(
|
|
23354
|
-
|
|
23354
|
+
P,
|
|
23355
23355
|
{
|
|
23356
23356
|
alignItems: I ? "center" : "flex-start",
|
|
23357
23357
|
direction: I ? "column" : "row",
|
|
@@ -23400,7 +23400,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
23400
23400
|
A.palette.chartMono.chartMono1,
|
|
23401
23401
|
A.palette.chartMono.chartMono6
|
|
23402
23402
|
], J3 = () => {
|
|
23403
|
-
const A = nt(), { categories: t, dateRangeCategoryTotals: i, loadDateRangeCategoryTotals: n } = qA(), { spending: r } = X(), { displayedDateRange: o, selectedAccounts: I, selectedAccountGuids: a } = pA(), { setFilter: c, sortedTransactions: d } = PA(), [f, E] = h.useState(""), [l, v] = h.useState(0), [u, H] = h.useState(""), [
|
|
23403
|
+
const A = nt(), { categories: t, dateRangeCategoryTotals: i, loadDateRangeCategoryTotals: n } = qA(), { spending: r } = X(), { displayedDateRange: o, selectedAccounts: I, selectedAccountGuids: a } = pA(), { setFilter: c, sortedTransactions: d } = PA(), [f, E] = h.useState(""), [l, v] = h.useState(0), [u, H] = h.useState(""), [b, p] = h.useState(!1);
|
|
23404
23404
|
h.useEffect(() => {
|
|
23405
23405
|
n(
|
|
23406
23406
|
I,
|
|
@@ -23419,9 +23419,9 @@ const si = h.createContext(null), u3 = ({
|
|
|
23419
23419
|
[u]
|
|
23420
23420
|
), D = (O, T) => {
|
|
23421
23421
|
v(T), E("");
|
|
23422
|
-
}, m = (O) => {
|
|
23423
|
-
E(f === O || O === "0" ? "" : O);
|
|
23424
23422
|
}, j = (O) => {
|
|
23423
|
+
E(f === O || O === "0" ? "" : O);
|
|
23424
|
+
}, m = (O) => {
|
|
23425
23425
|
const T = {
|
|
23426
23426
|
accounts: a,
|
|
23427
23427
|
dateRange: o
|
|
@@ -23476,8 +23476,8 @@ const si = h.createContext(null), u3 = ({
|
|
|
23476
23476
|
go,
|
|
23477
23477
|
{
|
|
23478
23478
|
data: y,
|
|
23479
|
-
onSelected:
|
|
23480
|
-
onViewTransactions:
|
|
23479
|
+
onSelected: j,
|
|
23480
|
+
onViewTransactions: m,
|
|
23481
23481
|
selectedId: f,
|
|
23482
23482
|
title: r.spend_tab_title
|
|
23483
23483
|
}
|
|
@@ -23486,8 +23486,8 @@ const si = h.createContext(null), u3 = ({
|
|
|
23486
23486
|
go,
|
|
23487
23487
|
{
|
|
23488
23488
|
data: x,
|
|
23489
|
-
onSelected:
|
|
23490
|
-
onViewTransactions:
|
|
23489
|
+
onSelected: j,
|
|
23490
|
+
onViewTransactions: m,
|
|
23491
23491
|
selectedId: f,
|
|
23492
23492
|
title: r.income_tab_title
|
|
23493
23493
|
}
|
|
@@ -23496,7 +23496,7 @@ const si = h.createContext(null), u3 = ({
|
|
|
23496
23496
|
IA,
|
|
23497
23497
|
{
|
|
23498
23498
|
ariaLabelClose: r.close_drawer_aria,
|
|
23499
|
-
isOpen:
|
|
23499
|
+
isOpen: b,
|
|
23500
23500
|
onClose: () => p(!1),
|
|
23501
23501
|
title: r.transactions_drawer_title,
|
|
23502
23502
|
children: /* @__PURE__ */ e(Rt, { onClick: H })
|
|
@@ -23556,7 +23556,7 @@ const i7 = (A) => A.reduce((i, n) => {
|
|
|
23556
23556
|
const n = i7(A), r = t7(t, i);
|
|
23557
23557
|
return Object.entries(n).map(([I, a]) => {
|
|
23558
23558
|
const c = a[0].top_level_category_guid, d = r.map((f) => {
|
|
23559
|
-
const E = a.filter((H) => H.year_month === f).reduce((H,
|
|
23559
|
+
const E = a.filter((H) => H.year_month === f).reduce((H, b) => H + Math.abs(b.amount), 0), l = Number(String(f).slice(0, 4)), v = Number(String(f).slice(4));
|
|
23560
23560
|
return { x: new Date(l, v - 1), y: E };
|
|
23561
23561
|
}).sort((f, E) => f.x.getTime() - E.x.getTime());
|
|
23562
23562
|
return {
|
|
@@ -23572,10 +23572,10 @@ const i7 = (A) => A.reduce((i, n) => {
|
|
|
23572
23572
|
return (i || 0) - (n || 0);
|
|
23573
23573
|
}, o7 = (A) => {
|
|
23574
23574
|
const t = A.row[A.field];
|
|
23575
|
-
return /* @__PURE__ */ e(
|
|
23575
|
+
return /* @__PURE__ */ e(P, { alignItems: "flex-end", tabIndex: A.tabIndex, children: /* @__PURE__ */ e(OA, { amount: t, variant: "Small" }) });
|
|
23576
23576
|
}, I7 = ({ categoryGuid: A, topLevelCategoryGuid: t }) => {
|
|
23577
23577
|
const { categories: i } = X(), n = qi[A];
|
|
23578
|
-
return /* @__PURE__ */ s(
|
|
23578
|
+
return /* @__PURE__ */ s(P, { alignItems: "center", direction: "row", justifyContent: "center", children: [
|
|
23579
23579
|
/* @__PURE__ */ e(
|
|
23580
23580
|
L,
|
|
23581
23581
|
{
|
|
@@ -23586,7 +23586,7 @@ const i7 = (A) => A.reduce((i, n) => {
|
|
|
23586
23586
|
),
|
|
23587
23587
|
/* @__PURE__ */ e(R, { sx: { ml: 12, pb: 6 }, variant: "Small", children: n })
|
|
23588
23588
|
] });
|
|
23589
|
-
}, a7 = (A) => /* @__PURE__ */ e(
|
|
23589
|
+
}, a7 = (A) => /* @__PURE__ */ e(P, { alignItems: "center", direction: "row", height: "100%", width: "100%", children: /* @__PURE__ */ e(
|
|
23590
23590
|
I7,
|
|
23591
23591
|
{
|
|
23592
23592
|
categoryGuid: A.row.category,
|
|
@@ -23638,16 +23638,16 @@ const i7 = (A) => A.reduce((i, n) => {
|
|
|
23638
23638
|
const u = (i ? A.filter(
|
|
23639
23639
|
(H) => H.category_guid === i || H.top_level_category_guid === i
|
|
23640
23640
|
) : A).reduce(
|
|
23641
|
-
(H,
|
|
23642
|
-
const { category_guid: p, top_level_category_guid: y, month: x, total: w, year: D } =
|
|
23643
|
-
H[
|
|
23644
|
-
id:
|
|
23645
|
-
category:
|
|
23641
|
+
(H, b) => {
|
|
23642
|
+
const { category_guid: p, top_level_category_guid: y, month: x, total: w, year: D } = b, j = i ? p : y;
|
|
23643
|
+
H[j] || (H[j] = {
|
|
23644
|
+
id: j,
|
|
23645
|
+
category: j,
|
|
23646
23646
|
category_guid: p,
|
|
23647
23647
|
top_level_category_guid: y
|
|
23648
23648
|
});
|
|
23649
|
-
const
|
|
23650
|
-
return H[
|
|
23649
|
+
const m = nA(new Date(D, x - 1), AA.MONTH_SHORT);
|
|
23650
|
+
return H[j][m] || (H[j][m] = 0), H[j][m] = H[j][m] + w, H;
|
|
23651
23651
|
},
|
|
23652
23652
|
{}
|
|
23653
23653
|
);
|
|
@@ -23708,7 +23708,7 @@ const i7 = (A) => A.reduce((i, n) => {
|
|
|
23708
23708
|
}, E7 = C(d7), h7 = {
|
|
23709
23709
|
view_transactions: "View Transactions"
|
|
23710
23710
|
}, l7 = ({ onBackClick: A, sx: t }) => {
|
|
23711
|
-
const i = oe(), { onEvent: n } = K(), { isDesktop: r, isTablet: o, isMobile: I } = zA(), { accounts: a } = CA(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: d, getCategoryName: f } = qA(), { sortedTransactions: E } = PA(), { isInitialized: l, selectedAccounts: v, setSelectedAccounts: u } = pA(), { trends: H } = X(),
|
|
23711
|
+
const i = oe(), { onEvent: n } = K(), { isDesktop: r, isTablet: o, isMobile: I } = zA(), { accounts: a } = CA(), { loadMonthlyCategoryTotals: c, monthlyCategoryTotals: d, getCategoryName: f } = qA(), { sortedTransactions: E } = PA(), { isInitialized: l, selectedAccounts: v, setSelectedAccounts: u } = pA(), { trends: H } = X(), b = i.palette.mode === "dark", [p, y] = h.useState(!1), [x, w] = h.useState(!1), [D, j] = h.useState("Chart"), [m, O] = h.useState(""), [T, tA] = h.useState({
|
|
23712
23712
|
start: Rr(BA(Ne(/* @__PURE__ */ new Date(), 6)), 1),
|
|
23713
23713
|
end: BA(/* @__PURE__ */ new Date())
|
|
23714
23714
|
});
|
|
@@ -23729,14 +23729,14 @@ const i7 = (A) => A.reduce((i, n) => {
|
|
|
23729
23729
|
d,
|
|
23730
23730
|
T.start,
|
|
23731
23731
|
T.end
|
|
23732
|
-
), JA =
|
|
23733
|
-
(Ke) => Ke.top_level_category_guid ===
|
|
23732
|
+
), JA = m.length ? bA.filter(
|
|
23733
|
+
(Ke) => Ke.top_level_category_guid === m || Ke.category_guid === m
|
|
23734
23734
|
) : Eh(bA);
|
|
23735
23735
|
return {
|
|
23736
23736
|
stackedDatasets: JA.filter(fh),
|
|
23737
23737
|
unstackedDatasets: JA.filter(Fi)
|
|
23738
23738
|
};
|
|
23739
|
-
}, [d,
|
|
23739
|
+
}, [d, m, T]), iA = h.useMemo(() => {
|
|
23740
23740
|
const bA = nA(
|
|
23741
23741
|
T.start,
|
|
23742
23742
|
I ? AA.MONTH_SHORT_YEAR : AA.MONTH_YEAR
|
|
@@ -23746,7 +23746,7 @@ const i7 = (A) => A.reduce((i, n) => {
|
|
|
23746
23746
|
);
|
|
23747
23747
|
return `${bA} - ${JA}`;
|
|
23748
23748
|
}, [T, I]), oA = (bA, JA) => {
|
|
23749
|
-
|
|
23749
|
+
j(JA ?? D), n(V.TRENDS_CLICK_TOGGLE);
|
|
23750
23750
|
}, sA = (bA) => {
|
|
23751
23751
|
const JA = Rr(bA?.[0], 1), Ke = bA?.[1], Yt = Ms(Ke, JA);
|
|
23752
23752
|
tA({ start: JA, end: Ke }), n(V.TRENDS_CLICK_DATE, {
|
|
@@ -23778,7 +23778,7 @@ const i7 = (A) => A.reduce((i, n) => {
|
|
|
23778
23778
|
title: H.title,
|
|
23779
23779
|
children: [
|
|
23780
23780
|
/* @__PURE__ */ s(
|
|
23781
|
-
|
|
23781
|
+
P,
|
|
23782
23782
|
{
|
|
23783
23783
|
sx: {
|
|
23784
23784
|
// eslint-disable-next-line no-nested-ternary
|
|
@@ -23786,7 +23786,7 @@ const i7 = (A) => A.reduce((i, n) => {
|
|
|
23786
23786
|
},
|
|
23787
23787
|
children: [
|
|
23788
23788
|
/* @__PURE__ */ s(
|
|
23789
|
-
|
|
23789
|
+
P,
|
|
23790
23790
|
{
|
|
23791
23791
|
flexDirection: "row",
|
|
23792
23792
|
justifyContent: "space-between",
|
|
@@ -23804,7 +23804,7 @@ const i7 = (A) => A.reduce((i, n) => {
|
|
|
23804
23804
|
textOverflow: "unset"
|
|
23805
23805
|
},
|
|
23806
23806
|
variant: r ? "H3" : "Body",
|
|
23807
|
-
children: f(
|
|
23807
|
+
children: f(m) || H.sub_title
|
|
23808
23808
|
}
|
|
23809
23809
|
),
|
|
23810
23810
|
/* @__PURE__ */ e(R, { variant: r ? "Body" : "Small", children: iA })
|
|
@@ -23824,20 +23824,20 @@ const i7 = (A) => A.reduce((i, n) => {
|
|
|
23824
23824
|
fontWeight: 600,
|
|
23825
23825
|
height: 44,
|
|
23826
23826
|
width: 56,
|
|
23827
|
-
color:
|
|
23828
|
-
borderColor:
|
|
23827
|
+
color: b ? i.palette.grey[200] : i.palette.grey[600],
|
|
23828
|
+
borderColor: b ? i.palette.grey[600] : i.palette.grey[400],
|
|
23829
23829
|
"&:hover": {
|
|
23830
|
-
backgroundColor:
|
|
23831
|
-
borderColor:
|
|
23832
|
-
color:
|
|
23830
|
+
backgroundColor: b ? `${i.palette.primary.darker}25` : "inherit",
|
|
23831
|
+
borderColor: b ? i.palette.grey[500] : i.palette.primary.main,
|
|
23832
|
+
color: b ? i.palette.primary.light : i.palette.primary.dark
|
|
23833
23833
|
},
|
|
23834
23834
|
"&.Mui-selected": {
|
|
23835
|
-
backgroundColor:
|
|
23836
|
-
borderColor:
|
|
23837
|
-
color:
|
|
23835
|
+
backgroundColor: b ? i.palette.primary.darker : i.palette.primary.lighter,
|
|
23836
|
+
borderColor: b ? i.palette.primary.light : i.palette.primary.main,
|
|
23837
|
+
color: b ? i.palette.common.white : i.palette.primary.dark
|
|
23838
23838
|
},
|
|
23839
23839
|
"&.Mui-disabled": {
|
|
23840
|
-
borderColor:
|
|
23840
|
+
borderColor: b ? i.palette.grey[700] : i.palette.grey[400],
|
|
23841
23841
|
color: i.palette.grey[500]
|
|
23842
23842
|
}
|
|
23843
23843
|
},
|
|
@@ -23851,8 +23851,8 @@ const i7 = (A) => A.reduce((i, n) => {
|
|
|
23851
23851
|
]
|
|
23852
23852
|
}
|
|
23853
23853
|
),
|
|
23854
|
-
/* @__PURE__ */ s(
|
|
23855
|
-
/* @__PURE__ */ e(L, { flexGrow: 1, children:
|
|
23854
|
+
/* @__PURE__ */ s(P, { alignItems: "center", flexDirection: "row", width: "100%", children: [
|
|
23855
|
+
/* @__PURE__ */ e(L, { flexGrow: 1, children: m && /* @__PURE__ */ s($, { onClick: () => O(""), sx: { p: 0, pr: 5 }, children: [
|
|
23856
23856
|
/* @__PURE__ */ e(q, { name: "arrow_back" }),
|
|
23857
23857
|
H.all_categories
|
|
23858
23858
|
] }) }),
|
|
@@ -23875,7 +23875,7 @@ const i7 = (A) => A.reduce((i, n) => {
|
|
|
23875
23875
|
{
|
|
23876
23876
|
monthlyCategoryTotals: d,
|
|
23877
23877
|
onClickRow: cA,
|
|
23878
|
-
selectedCategory:
|
|
23878
|
+
selectedCategory: m,
|
|
23879
23879
|
selectedDateRange: T
|
|
23880
23880
|
}
|
|
23881
23881
|
)
|
|
@@ -23886,7 +23886,7 @@ const i7 = (A) => A.reduce((i, n) => {
|
|
|
23886
23886
|
/* @__PURE__ */ e(
|
|
23887
23887
|
E7,
|
|
23888
23888
|
{
|
|
23889
|
-
categoryGuid:
|
|
23889
|
+
categoryGuid: m,
|
|
23890
23890
|
dateRange: T,
|
|
23891
23891
|
isOpen: x,
|
|
23892
23892
|
onClose: () => w(!1)
|