@mx-cartographer/experiences 7.10.22 → 7.10.23-alpha.al0
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/debts/index.es.js
CHANGED
|
@@ -1,73 +1,75 @@
|
|
|
1
|
-
import { jsx as e, jsxs as s, Fragment as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as e, jsxs as s, Fragment as H } from "react/jsx-runtime";
|
|
2
|
+
import f from "react";
|
|
3
3
|
import { observer as v } from "mobx-react-lite";
|
|
4
|
-
import
|
|
5
|
-
import { useTheme as V, Card as
|
|
6
|
-
import { Text as l, P as
|
|
7
|
-
import { intervalToDuration as
|
|
8
|
-
import { addMonths as
|
|
9
|
-
import { fromUnixTime as
|
|
10
|
-
import { getUnixTime as
|
|
11
|
-
import { D as k, M as
|
|
12
|
-
import { a as
|
|
13
|
-
import { f as
|
|
14
|
-
import { f as
|
|
15
|
-
import { G as
|
|
4
|
+
import x from "@mui/material/Stack";
|
|
5
|
+
import { useTheme as V, Card as ge, Stack as _, Box as G } from "@mui/material";
|
|
6
|
+
import { Text as l, P as we, H3 as ke, InstitutionLogo as Pe, Icon as ae } from "@mxenabled/mxui";
|
|
7
|
+
import { intervalToDuration as Ne, formatDuration as Re } from "date-fns";
|
|
8
|
+
import { addMonths as me } from "date-fns/addMonths";
|
|
9
|
+
import { fromUnixTime as he } from "date-fns/fromUnixTime";
|
|
10
|
+
import { getUnixTime as ue } from "date-fns/getUnixTime";
|
|
11
|
+
import { D as k, M as Fe, I as Le } from "../DebtsStore-BIbOVCPe.mjs";
|
|
12
|
+
import { a as Jr } from "../DebtsStore-BIbOVCPe.mjs";
|
|
13
|
+
import { f as P, a as $e } from "../NumberFormatting-DjTD0t3W.mjs";
|
|
14
|
+
import { f as Z, D as J } from "../DateFormats-Cs-NbEZ7.mjs";
|
|
15
|
+
import { G as He, w as Q, u as C, l as Y, g as R, d as ee, a as Oe, b as We } from "../hooks-DWJQ4phS.mjs";
|
|
16
16
|
import { u as K } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
17
|
-
import { D as
|
|
18
|
-
import { b as
|
|
19
|
-
import { A as
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import { useTheme as
|
|
25
|
-
import { LineChart as
|
|
26
|
-
import { A
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
17
|
+
import { D as oe } from "../Drawer-DV4NTsFg.mjs";
|
|
18
|
+
import { b as E } from "../Localization-2MODESHW.mjs";
|
|
19
|
+
import { A as Ge, u as je } from "../AccountDetailsHeader-BQCtsUCR.mjs";
|
|
20
|
+
import ze from "@mui/material/Card";
|
|
21
|
+
import Xe from "@mui/material/CardContent";
|
|
22
|
+
import Ve from "@mui/material/CardHeader";
|
|
23
|
+
import ne from "@mui/material/Box";
|
|
24
|
+
import { useTheme as Ye } from "@mui/material/styles";
|
|
25
|
+
import { LineChart as Ke } from "@mui/x-charts/LineChart";
|
|
26
|
+
import { A } from "../Analytics-i5h6BxR1.mjs";
|
|
27
|
+
import be from "@mui/material/Tab";
|
|
28
|
+
import Ue from "@mui/material/Tabs";
|
|
29
|
+
import Ce from "@mui/material/List";
|
|
30
30
|
import j from "@mui/material/Divider";
|
|
31
|
-
import { M as
|
|
32
|
-
import
|
|
33
|
-
import { L as
|
|
34
|
-
import { C as
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import { Error as
|
|
39
|
-
import { T as
|
|
40
|
-
import { DataGridPro as
|
|
31
|
+
import { M as qe, I as Ze, O as Je } from "../OriginalBalanceAction-BaJhCWa3.mjs";
|
|
32
|
+
import Qe from "@mui/material/TextField";
|
|
33
|
+
import { L as te } from "../ListItemAction-DrDDQgt7.mjs";
|
|
34
|
+
import { C as ie } from "../CurrencyInput-niY2izw5.mjs";
|
|
35
|
+
import _e from "@mui/material/Alert";
|
|
36
|
+
import ye from "@mui/material/AlertTitle";
|
|
37
|
+
import fe from "@mui/material/Paper";
|
|
38
|
+
import { Error as et, CheckCircle as Se } from "@mxenabled/mx-icons";
|
|
39
|
+
import { T as xe } from "../TabContentContainer-j01JYR_7.mjs";
|
|
40
|
+
import { DataGridPro as tt } from "@mui/x-data-grid-pro";
|
|
41
41
|
import { H as z } from "../HeaderCell-DjuifqHJ.mjs";
|
|
42
|
-
import { f as
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
|
|
42
|
+
import { f as rt, A as X } from "../Account-BiB1F8lL.mjs";
|
|
43
|
+
import ve from "@mui/material/Button";
|
|
44
|
+
import at from "@mui/material/IconButton";
|
|
45
|
+
import ot from "@mui/material/ListItem";
|
|
46
|
+
import nt from "@mui/material/Popover";
|
|
47
|
+
import { b as it } from "../GlobalAccountFilter-CjTLppI0.mjs";
|
|
48
|
+
import { u as lt } from "../useWidgetLoadTimer-BbV8q0k6.mjs";
|
|
49
|
+
import { L as st } from "../Loader-DUaFpDGv.mjs";
|
|
50
|
+
import { W as ct } from "../WidgetContainer-CiyWaTc1.mjs";
|
|
51
|
+
import { E as dt } from "../EmptyState-DHAkGsjk.mjs";
|
|
52
|
+
const pt = (a, o = 0, r = 0) => {
|
|
51
53
|
if (r === 0) return 0;
|
|
52
|
-
const t = o / (
|
|
54
|
+
const t = o / (Fe * Le);
|
|
53
55
|
return Math.ceil(
|
|
54
56
|
t === 0 ? a / r : -Math.log(1 - t * a / r) / Math.log(1 + t)
|
|
55
57
|
);
|
|
56
|
-
},
|
|
58
|
+
}, mt = (a, o, r, t, n) => {
|
|
57
59
|
const i = [];
|
|
58
60
|
if (r === 0) {
|
|
59
|
-
for (let
|
|
60
|
-
const p = o - t * (
|
|
61
|
+
for (let d = 0; d < a; d++) {
|
|
62
|
+
const p = o - t * (d + 1), m = o - t * d, u = p >= 0 ? t : m;
|
|
61
63
|
i.push({
|
|
62
64
|
balance: p >= 0 ? p : 0,
|
|
63
65
|
interest: r,
|
|
64
|
-
payment:
|
|
65
|
-
principal:
|
|
66
|
-
timestamp:
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
payment: u,
|
|
67
|
+
principal: u,
|
|
68
|
+
timestamp: ue(
|
|
69
|
+
me(
|
|
70
|
+
he(n),
|
|
69
71
|
// convert seconds → Date
|
|
70
|
-
|
|
72
|
+
d + 1
|
|
71
73
|
// add (index + 1) months
|
|
72
74
|
)
|
|
73
75
|
)
|
|
@@ -75,34 +77,34 @@ const rt = (a, o = 0, r = 0) => {
|
|
|
75
77
|
}
|
|
76
78
|
return i;
|
|
77
79
|
}
|
|
78
|
-
const
|
|
79
|
-
for (let
|
|
80
|
-
const p =
|
|
80
|
+
const c = r / 1200;
|
|
81
|
+
for (let d = 0; d < a; d++) {
|
|
82
|
+
const p = ue(me(he(n), d + 1)), m = Math.pow(1 + c, d), u = o * m - t * ((m - 1) / c), w = Math.pow(1 + c, d + 1), b = o * w - t * ((w - 1) / c), B = t + Math.min(b, 0), M = u * c;
|
|
81
83
|
i.push({
|
|
82
|
-
balance: Math.max(0,
|
|
83
|
-
interest:
|
|
84
|
+
balance: Math.max(0, b),
|
|
85
|
+
interest: M,
|
|
84
86
|
payment: B,
|
|
85
|
-
principal: B -
|
|
87
|
+
principal: B - M,
|
|
86
88
|
timestamp: p
|
|
87
89
|
});
|
|
88
90
|
}
|
|
89
91
|
return i;
|
|
90
|
-
},
|
|
91
|
-
const { monthly_payment: o, interest_rate: r, balance: t, payment_due_date: n } = a, i =
|
|
92
|
+
}, ht = (a) => (a[a.length - 1] || {}).timestamp, ut = (a) => {
|
|
93
|
+
const { monthly_payment: o, interest_rate: r, balance: t, payment_due_date: n } = a, i = pt(t, r ?? 0, o ?? 0), c = mt(
|
|
92
94
|
i,
|
|
93
95
|
t,
|
|
94
96
|
r ?? 0,
|
|
95
97
|
o ?? 0,
|
|
96
98
|
n
|
|
97
|
-
),
|
|
99
|
+
), d = ht(c);
|
|
98
100
|
return {
|
|
99
101
|
...a,
|
|
100
|
-
minimumFinalPayment:
|
|
101
|
-
minimumPayments:
|
|
102
|
+
minimumFinalPayment: d,
|
|
103
|
+
minimumPayments: c
|
|
102
104
|
};
|
|
103
|
-
},
|
|
105
|
+
}, De = (a, o) => {
|
|
104
106
|
const [r, t] = a.reduce(
|
|
105
|
-
([n, i],
|
|
107
|
+
([n, i], c) => (c.is_paid_off || c.is_impossible ? i.push({ ...c, minimumPayments: [] }) : n.push(ut(c)), [n, i]),
|
|
106
108
|
[[], []]
|
|
107
109
|
);
|
|
108
110
|
switch (o) {
|
|
@@ -123,47 +125,47 @@ const rt = (a, o = 0, r = 0) => {
|
|
|
123
125
|
}
|
|
124
126
|
a.splice(0, a.length, ...r, ...t);
|
|
125
127
|
};
|
|
126
|
-
function
|
|
127
|
-
const t = a.map((
|
|
128
|
-
(
|
|
128
|
+
function bt(a, o, r = 0) {
|
|
129
|
+
const t = a.map((u) => ({ ...u })).filter(
|
|
130
|
+
(u) => u.interest_rate !== void 0 && u.monthly_payment !== void 0 && !u.is_paid_off
|
|
129
131
|
);
|
|
130
|
-
|
|
132
|
+
De(t, o);
|
|
131
133
|
let n = 0, i = 0;
|
|
132
|
-
const
|
|
133
|
-
for (; t.some((
|
|
134
|
-
let
|
|
135
|
-
for (const [w,
|
|
136
|
-
if (
|
|
137
|
-
const
|
|
138
|
-
let S =
|
|
139
|
-
w === 0 && r && (S += r),
|
|
140
|
-
const
|
|
141
|
-
if (
|
|
142
|
-
|
|
134
|
+
const c = /* @__PURE__ */ new Date(), d = /* @__PURE__ */ new Date();
|
|
135
|
+
for (; t.some((u) => u.balance >= 0.01 && !u.is_impossible); ) {
|
|
136
|
+
let u = !1;
|
|
137
|
+
for (const [w, b] of t.entries()) {
|
|
138
|
+
if (b.balance <= 0.01 || b.is_impossible) continue;
|
|
139
|
+
const M = (b.interest_rate ?? 0) / 100 / 12, I = b.balance * M;
|
|
140
|
+
let S = b.monthly_payment ?? 0;
|
|
141
|
+
w === 0 && r && (S += r), b.balance += I;
|
|
142
|
+
const D = Math.min(b.balance, S + i);
|
|
143
|
+
if (D <= I) {
|
|
144
|
+
b.is_impossible = !0;
|
|
143
145
|
continue;
|
|
144
146
|
}
|
|
145
|
-
|
|
147
|
+
b.balance -= D, b.balance = b.balance < 0.01 ? 0 : b.balance, n += I, b.balance <= 0 && (i += S), D > 0 && (u = !0);
|
|
146
148
|
}
|
|
147
|
-
|
|
149
|
+
u && d.setMonth(d.getMonth() + 1);
|
|
148
150
|
}
|
|
149
|
-
const p = t.some((
|
|
151
|
+
const p = t.some((u) => u.is_impossible && u.balance > 0), m = Ne({ start: c, end: d });
|
|
150
152
|
return {
|
|
151
|
-
payoffSavings: p ? "N/A" :
|
|
152
|
-
payoffDate: p ? "Never" :
|
|
153
|
-
payoffDuration: p ? "Stagnant" :
|
|
153
|
+
payoffSavings: p ? "N/A" : P(n, "0,0.00"),
|
|
154
|
+
payoffDate: p ? "Never" : Z(d, J.MONTH_YEAR),
|
|
155
|
+
payoffDuration: p ? "Stagnant" : Re(m, { format: ["years", "months"] }) || "0 months"
|
|
154
156
|
};
|
|
155
157
|
}
|
|
156
|
-
const
|
|
157
|
-
if (!
|
|
158
|
+
const L = () => {
|
|
159
|
+
if (!f.useContext(He))
|
|
158
160
|
throw new Error("useCateUiStore() must be used within the GlobalDataContext");
|
|
159
|
-
return
|
|
160
|
-
},
|
|
161
|
-
const t = V(), { isMobile: n } = K(), { debts: i } = C(), { selectedDebtPriority:
|
|
162
|
-
const w =
|
|
163
|
-
return
|
|
164
|
-
}, [a,
|
|
161
|
+
return Q().uiStore;
|
|
162
|
+
}, _t = ({ debts: a, onClickCta: o, sx: r }) => {
|
|
163
|
+
const t = V(), { isMobile: n } = K(), { debts: i } = C(), { selectedDebtPriority: c } = L(), { monthlyCashFlowProfile: d } = Y(), { payoffDate: p, payoffSavings: m, payoffDuration: u } = f.useMemo(() => {
|
|
164
|
+
const w = d?.extra_payment ?? 0;
|
|
165
|
+
return bt(a, c, w);
|
|
166
|
+
}, [a, c, d]);
|
|
165
167
|
return /* @__PURE__ */ e(
|
|
166
|
-
|
|
168
|
+
ge,
|
|
167
169
|
{
|
|
168
170
|
sx: {
|
|
169
171
|
boxShadow: t.shadows[2],
|
|
@@ -192,7 +194,7 @@ const F = () => {
|
|
|
192
194
|
/* @__PURE__ */ e(l, { sx: { whiteSpace: "normal" }, variant: "XSmall", children: i.snowball_card_amount_description })
|
|
193
195
|
] }),
|
|
194
196
|
/* @__PURE__ */ s(_, { gap: n ? "4px" : "0", children: [
|
|
195
|
-
/* @__PURE__ */ e(l, { bold: !0, variant: "Small", children:
|
|
197
|
+
/* @__PURE__ */ e(l, { bold: !0, variant: "Small", children: u }),
|
|
196
198
|
/* @__PURE__ */ e(l, { variant: "XSmall", children: i.snowball_card_duration_description })
|
|
197
199
|
] }),
|
|
198
200
|
/* @__PURE__ */ e(
|
|
@@ -209,10 +211,10 @@ const F = () => {
|
|
|
209
211
|
] })
|
|
210
212
|
}
|
|
211
213
|
);
|
|
212
|
-
},
|
|
213
|
-
const r = V(), { debts: t } = C(), [n, i] =
|
|
214
|
+
}, yt = v(_t), ft = ({ isOpen: a, onClose: o }) => {
|
|
215
|
+
const r = V(), { debts: t } = C(), [n, i] = f.useState(!1);
|
|
214
216
|
return /* @__PURE__ */ e(
|
|
215
|
-
|
|
217
|
+
oe,
|
|
216
218
|
{
|
|
217
219
|
ariaLabelClose: "",
|
|
218
220
|
isOpen: a,
|
|
@@ -223,10 +225,10 @@ const F = () => {
|
|
|
223
225
|
/* @__PURE__ */ s(_, { alignItems: "center", pb: 24, children: [
|
|
224
226
|
/* @__PURE__ */ e(l, { mb: 12, variant: "H3", children: t.snowball_drawer_subtitle }),
|
|
225
227
|
/* @__PURE__ */ e(l, { color: r.palette.secondary.main, variant: "Small", children: t.snowball_drawer_amount_description }),
|
|
226
|
-
/* @__PURE__ */ e(
|
|
228
|
+
/* @__PURE__ */ e(we, { variant: "H1", children: t.snowball_drawer_savings }),
|
|
227
229
|
/* @__PURE__ */ e(l, { color: r.palette.secondary.main, variant: "Small", children: t.snowball_drawer_duration_description })
|
|
228
230
|
] }),
|
|
229
|
-
/* @__PURE__ */ s(
|
|
231
|
+
/* @__PURE__ */ s(ge, { sx: { display: "grid", py: 16, px: 24 }, children: [
|
|
230
232
|
/* @__PURE__ */ e(l, { mb: 4, variant: "H3", children: t.snowball_drawer_question }),
|
|
231
233
|
/* @__PURE__ */ e(
|
|
232
234
|
l,
|
|
@@ -263,13 +265,13 @@ const F = () => {
|
|
|
263
265
|
}
|
|
264
266
|
),
|
|
265
267
|
/* @__PURE__ */ s(_, { flexDirection: "row", justifyContent: "space-between", sx: { pt: 12, px: 24, pb: 8 }, children: [
|
|
266
|
-
/* @__PURE__ */ e(l, { bold: !0, variant: "XSmall", children:
|
|
268
|
+
/* @__PURE__ */ e(l, { bold: !0, variant: "XSmall", children: E(t.snowball_drawer_month_header, 1) }),
|
|
267
269
|
/* @__PURE__ */ e(l, { bold: !0, variant: "XSmall", children: t.snowball_drawer_payment_header })
|
|
268
270
|
] }),
|
|
269
271
|
/* @__PURE__ */ s(_, { bgcolor: r.palette.background.paper, mb: 24, children: [
|
|
270
272
|
/* @__PURE__ */ s(_, { alignItems: "center", flexDirection: "row", pl: 24, children: [
|
|
271
273
|
/* @__PURE__ */ e(
|
|
272
|
-
|
|
274
|
+
G,
|
|
273
275
|
{
|
|
274
276
|
sx: {
|
|
275
277
|
display: "flex",
|
|
@@ -296,13 +298,13 @@ const F = () => {
|
|
|
296
298
|
},
|
|
297
299
|
children: [
|
|
298
300
|
/* @__PURE__ */ s(_, { flexGrow: 1, children: [
|
|
299
|
-
/* @__PURE__ */ e(l, { variant: "Body", children:
|
|
301
|
+
/* @__PURE__ */ e(l, { variant: "Body", children: E(t.snowball_drawer_debt_label, "A") }),
|
|
300
302
|
/* @__PURE__ */ s(l, { color: r.palette.secondary.main, variant: "XSmall", children: [
|
|
301
|
-
|
|
303
|
+
E(
|
|
302
304
|
t.snowball_drawer_rollover_explainer_pt1,
|
|
303
305
|
"$100"
|
|
304
306
|
),
|
|
305
|
-
/* @__PURE__ */ e("strong", { children:
|
|
307
|
+
/* @__PURE__ */ e("strong", { children: E(t.snowball_drawer_debt_label, "B") }),
|
|
306
308
|
t.snowball_drawer_rollover_explainer_pt2
|
|
307
309
|
] })
|
|
308
310
|
] }),
|
|
@@ -325,7 +327,7 @@ const F = () => {
|
|
|
325
327
|
] }),
|
|
326
328
|
/* @__PURE__ */ s(_, { alignItems: "center", flexDirection: "row", pl: 24, children: [
|
|
327
329
|
/* @__PURE__ */ e(
|
|
328
|
-
|
|
330
|
+
G,
|
|
329
331
|
{
|
|
330
332
|
sx: {
|
|
331
333
|
width: 20,
|
|
@@ -347,7 +349,7 @@ const F = () => {
|
|
|
347
349
|
pr: 24
|
|
348
350
|
},
|
|
349
351
|
children: [
|
|
350
|
-
/* @__PURE__ */ e(l, { flexGrow: 1, variant: "Body", children:
|
|
352
|
+
/* @__PURE__ */ e(l, { flexGrow: 1, variant: "Body", children: E(t.snowball_drawer_debt_label, "B") }),
|
|
351
353
|
/* @__PURE__ */ e(l, { variant: "Body", children: "$400.00" })
|
|
352
354
|
]
|
|
353
355
|
}
|
|
@@ -355,7 +357,7 @@ const F = () => {
|
|
|
355
357
|
] }),
|
|
356
358
|
/* @__PURE__ */ s(_, { alignItems: "center", flexDirection: "row", pl: 24, py: 14, children: [
|
|
357
359
|
/* @__PURE__ */ e(
|
|
358
|
-
|
|
360
|
+
G,
|
|
359
361
|
{
|
|
360
362
|
sx: {
|
|
361
363
|
width: 20,
|
|
@@ -367,7 +369,7 @@ const F = () => {
|
|
|
367
369
|
}
|
|
368
370
|
),
|
|
369
371
|
/* @__PURE__ */ s(_, { flexDirection: "row", flexGrow: 1, pr: 24, children: [
|
|
370
|
-
/* @__PURE__ */ e(l, { flexGrow: 1, variant: "Body", children:
|
|
372
|
+
/* @__PURE__ */ e(l, { flexGrow: 1, variant: "Body", children: E(t.snowball_drawer_debt_label, "C") }),
|
|
371
373
|
/* @__PURE__ */ e(l, { variant: "Body", children: "$1,000.00" })
|
|
372
374
|
] })
|
|
373
375
|
] }),
|
|
@@ -390,13 +392,13 @@ const F = () => {
|
|
|
390
392
|
)
|
|
391
393
|
] }),
|
|
392
394
|
/* @__PURE__ */ s(_, { flexDirection: "row", justifyContent: "space-between", sx: { pt: 12, px: 24, pb: 8 }, children: [
|
|
393
|
-
/* @__PURE__ */ e(l, { bold: !0, variant: "XSmall", children:
|
|
395
|
+
/* @__PURE__ */ e(l, { bold: !0, variant: "XSmall", children: E(t.snowball_drawer_month_header, 2) }),
|
|
394
396
|
/* @__PURE__ */ e(l, { bold: !0, variant: "XSmall", children: t.snowball_drawer_payment_header })
|
|
395
397
|
] }),
|
|
396
398
|
/* @__PURE__ */ s(_, { bgcolor: r.palette.background.paper, mb: 24, children: [
|
|
397
399
|
/* @__PURE__ */ s(_, { alignItems: "center", flexDirection: "row", pl: 24, children: [
|
|
398
400
|
/* @__PURE__ */ e(
|
|
399
|
-
|
|
401
|
+
G,
|
|
400
402
|
{
|
|
401
403
|
sx: {
|
|
402
404
|
display: "flex",
|
|
@@ -423,13 +425,13 @@ const F = () => {
|
|
|
423
425
|
},
|
|
424
426
|
children: [
|
|
425
427
|
/* @__PURE__ */ s(_, { flexGrow: 1, children: [
|
|
426
|
-
/* @__PURE__ */ e(l, { variant: "Body", children:
|
|
428
|
+
/* @__PURE__ */ e(l, { variant: "Body", children: E(t.snowball_drawer_debt_label, "B") }),
|
|
427
429
|
/* @__PURE__ */ s(l, { color: r.palette.secondary.main, variant: "XSmall", children: [
|
|
428
|
-
|
|
430
|
+
E(
|
|
429
431
|
t.snowball_drawer_rollover_explainer_pt1,
|
|
430
432
|
"$500"
|
|
431
433
|
),
|
|
432
|
-
/* @__PURE__ */ e("strong", { children:
|
|
434
|
+
/* @__PURE__ */ e("strong", { children: E(t.snowball_drawer_debt_label, "C") }),
|
|
433
435
|
t.snowball_drawer_rollover_explainer_pt2
|
|
434
436
|
] })
|
|
435
437
|
] }),
|
|
@@ -452,7 +454,7 @@ const F = () => {
|
|
|
452
454
|
] }),
|
|
453
455
|
/* @__PURE__ */ s(_, { alignItems: "center", flexDirection: "row", pl: 24, children: [
|
|
454
456
|
/* @__PURE__ */ e(
|
|
455
|
-
|
|
457
|
+
G,
|
|
456
458
|
{
|
|
457
459
|
sx: {
|
|
458
460
|
width: 20,
|
|
@@ -473,7 +475,7 @@ const F = () => {
|
|
|
473
475
|
pr: 24
|
|
474
476
|
},
|
|
475
477
|
children: [
|
|
476
|
-
/* @__PURE__ */ e(l, { flexGrow: 1, variant: "Body", children:
|
|
478
|
+
/* @__PURE__ */ e(l, { flexGrow: 1, variant: "Body", children: E(t.snowball_drawer_debt_label, "C") }),
|
|
477
479
|
/* @__PURE__ */ e(l, { variant: "Body", children: "$1,000.00" })
|
|
478
480
|
]
|
|
479
481
|
}
|
|
@@ -498,13 +500,13 @@ const F = () => {
|
|
|
498
500
|
)
|
|
499
501
|
] }),
|
|
500
502
|
/* @__PURE__ */ s(_, { flexDirection: "row", justifyContent: "space-between", sx: { pt: 12, px: 24, pb: 8 }, children: [
|
|
501
|
-
/* @__PURE__ */ e(l, { bold: !0, variant: "XSmall", children:
|
|
503
|
+
/* @__PURE__ */ e(l, { bold: !0, variant: "XSmall", children: E(t.snowball_drawer_month_header, 3) }),
|
|
502
504
|
/* @__PURE__ */ e(l, { bold: !0, variant: "XSmall", children: t.snowball_drawer_payment_header })
|
|
503
505
|
] }),
|
|
504
506
|
/* @__PURE__ */ s(_, { bgcolor: r.palette.background.paper, mb: 24, children: [
|
|
505
507
|
/* @__PURE__ */ s(_, { alignItems: "center", flexDirection: "row", pl: 24, children: [
|
|
506
508
|
/* @__PURE__ */ e(
|
|
507
|
-
|
|
509
|
+
G,
|
|
508
510
|
{
|
|
509
511
|
sx: {
|
|
510
512
|
display: "flex",
|
|
@@ -530,7 +532,7 @@ const F = () => {
|
|
|
530
532
|
pr: 24
|
|
531
533
|
},
|
|
532
534
|
children: [
|
|
533
|
-
/* @__PURE__ */ e(_, { flexGrow: 1, children: /* @__PURE__ */ e(l, { variant: "Body", children:
|
|
535
|
+
/* @__PURE__ */ e(_, { flexGrow: 1, children: /* @__PURE__ */ e(l, { variant: "Body", children: E(t.snowball_drawer_debt_label, "C") }) }),
|
|
534
536
|
/* @__PURE__ */ s(_, { children: [
|
|
535
537
|
/* @__PURE__ */ e(l, { variant: "Body", children: "$1,500.00" }),
|
|
536
538
|
/* @__PURE__ */ e(
|
|
@@ -570,50 +572,50 @@ const F = () => {
|
|
|
570
572
|
] })
|
|
571
573
|
}
|
|
572
574
|
);
|
|
573
|
-
},
|
|
574
|
-
function
|
|
575
|
-
const [r, t, n] = a.replace(/^#/, "").match(/.{1,2}/g).map((
|
|
575
|
+
}, xt = v(ft), gt = "#FF7B08";
|
|
576
|
+
function wt(a, o) {
|
|
577
|
+
const [r, t, n] = a.replace(/^#/, "").match(/.{1,2}/g).map((c) => parseInt(c, 16)), i = [
|
|
576
578
|
Math.max(0, Math.min(255, Math.round(r * o))),
|
|
577
579
|
Math.max(0, Math.min(255, Math.round(t * o))),
|
|
578
580
|
Math.max(0, Math.min(255, Math.round(n * o)))
|
|
579
581
|
];
|
|
580
582
|
return `rgb(${i[0]}, ${i[1]}, ${i[2]})`;
|
|
581
583
|
}
|
|
582
|
-
const
|
|
584
|
+
const Te = ({
|
|
583
585
|
sx: a,
|
|
584
586
|
height: o = 500,
|
|
585
587
|
width: r,
|
|
586
588
|
debts: t,
|
|
587
589
|
hoveredDebtGuid: n,
|
|
588
590
|
onClickArea: i,
|
|
589
|
-
onHoverArea:
|
|
591
|
+
onHoverArea: c
|
|
590
592
|
}) => {
|
|
591
|
-
const
|
|
593
|
+
const d = Ye(), { onEvent: p } = R(), m = t.filter((h) => !h.is_impossible), u = [
|
|
592
594
|
...new Set(
|
|
593
|
-
m.flatMap((h) => h.dataset.map((
|
|
595
|
+
m.flatMap((h) => h.dataset.map((g) => new Date(g.x).getTime()))
|
|
594
596
|
)
|
|
595
|
-
].sort((h,
|
|
596
|
-
const
|
|
597
|
-
let
|
|
598
|
-
const
|
|
599
|
-
const
|
|
600
|
-
return
|
|
597
|
+
].sort((h, g) => h - g).map((h) => new Date(h)), w = m.map((h) => {
|
|
598
|
+
const g = new Map(h.dataset.map((F) => [new Date(F.x).getTime(), F.y]));
|
|
599
|
+
let T = g.get(u[0].getTime()) ?? 0;
|
|
600
|
+
const N = u.map((F) => {
|
|
601
|
+
const O = g.get(F.getTime()) ?? T;
|
|
602
|
+
return T = O, { x: F, y: O };
|
|
601
603
|
});
|
|
602
|
-
return { ...h, dataset:
|
|
603
|
-
}),
|
|
604
|
-
(h,
|
|
604
|
+
return { ...h, dataset: N };
|
|
605
|
+
}), b = w.reduce(
|
|
606
|
+
(h, g) => h + (g.dataset[0]?.y ?? 0),
|
|
605
607
|
0
|
|
606
|
-
), B =
|
|
607
|
-
const
|
|
608
|
-
return { x: h, y:
|
|
609
|
-
}),
|
|
610
|
-
const
|
|
608
|
+
), B = u.map((h, g) => {
|
|
609
|
+
const T = g / (u.length - 1), N = b * (1 - T);
|
|
610
|
+
return { x: h, y: N };
|
|
611
|
+
}), M = Math.ceil(b / 100) * 100, I = u, S = w.map((h, g) => {
|
|
612
|
+
const T = 1 - g / w.length * 0.5, N = wt(gt, T);
|
|
611
613
|
return {
|
|
612
|
-
id: `debt-${
|
|
614
|
+
id: `debt-${g}`,
|
|
613
615
|
guid: h.guid,
|
|
614
616
|
label: h.name,
|
|
615
|
-
data: h.dataset.map((
|
|
616
|
-
color:
|
|
617
|
+
data: h.dataset.map((F) => F.y),
|
|
618
|
+
color: N,
|
|
617
619
|
curve: "linear",
|
|
618
620
|
type: "line",
|
|
619
621
|
area: !0,
|
|
@@ -625,16 +627,16 @@ const Ce = ({
|
|
|
625
627
|
id: "payoff-line",
|
|
626
628
|
label: "Payoff Line",
|
|
627
629
|
data: B.map((h) => h.y),
|
|
628
|
-
color:
|
|
630
|
+
color: d.palette.grey[700],
|
|
629
631
|
curve: "linear",
|
|
630
632
|
type: "line",
|
|
631
633
|
stack: void 0,
|
|
632
634
|
showMark: !1,
|
|
633
635
|
disableHighlight: !0
|
|
634
636
|
});
|
|
635
|
-
const
|
|
637
|
+
const D = (h) => S.findIndex((g) => g?.guid === h);
|
|
636
638
|
return /* @__PURE__ */ e(
|
|
637
|
-
|
|
639
|
+
ne,
|
|
638
640
|
{
|
|
639
641
|
sx: {
|
|
640
642
|
width: "100%",
|
|
@@ -649,21 +651,21 @@ const Ce = ({
|
|
|
649
651
|
}
|
|
650
652
|
},
|
|
651
653
|
children: /* @__PURE__ */ e(
|
|
652
|
-
|
|
654
|
+
Ke,
|
|
653
655
|
{
|
|
654
656
|
axisHighlight: { x: "none" },
|
|
655
657
|
disableLineItemHighlight: !0,
|
|
656
658
|
height: o,
|
|
657
659
|
hideLegend: !0,
|
|
658
660
|
margin: { bottom: 24, left: 32, right: 72, top: 48 },
|
|
659
|
-
onAreaClick: (h,
|
|
661
|
+
onAreaClick: (h, g) => {
|
|
660
662
|
i?.();
|
|
661
|
-
const
|
|
662
|
-
p(
|
|
663
|
+
const T = S.find((N) => N.id === g.seriesId);
|
|
664
|
+
p(A.DEBTS_CLICK_CHART_AREA, { account_guid: T?.guid });
|
|
663
665
|
},
|
|
664
666
|
onHighlightChange: (h) => {
|
|
665
|
-
const
|
|
666
|
-
|
|
667
|
+
const g = S.find((T) => T.id === h?.seriesId)?.guid;
|
|
668
|
+
c?.(g ?? "");
|
|
667
669
|
},
|
|
668
670
|
series: S,
|
|
669
671
|
skipAnimation: !0,
|
|
@@ -685,45 +687,45 @@ const Ce = ({
|
|
|
685
687
|
strokeDasharray: "10 5",
|
|
686
688
|
strokeWidth: 1
|
|
687
689
|
},
|
|
688
|
-
[`& .MuiLineElement-series-debt-${
|
|
690
|
+
[`& .MuiLineElement-series-debt-${D(n ?? "0")}`]: {
|
|
689
691
|
opacity: 1
|
|
690
692
|
},
|
|
691
|
-
[`& .MuiAreaElement-series-debt-${
|
|
693
|
+
[`& .MuiAreaElement-series-debt-${D(n ?? "0")}`]: {
|
|
692
694
|
opacity: 1
|
|
693
695
|
},
|
|
694
696
|
"& .MuiChartsAxis-tickLabel > tspan": {
|
|
695
|
-
fontFamily:
|
|
697
|
+
fontFamily: d.typography.Small.fontFamily
|
|
696
698
|
},
|
|
697
699
|
...a
|
|
698
700
|
},
|
|
699
701
|
width: r,
|
|
700
702
|
xAxis: [
|
|
701
703
|
{
|
|
702
|
-
data:
|
|
704
|
+
data: I,
|
|
703
705
|
disableTicks: !0,
|
|
704
|
-
min:
|
|
706
|
+
min: u[0],
|
|
705
707
|
scaleType: "time",
|
|
706
708
|
tickLabelMinGap: 24,
|
|
707
|
-
valueFormatter: (h) =>
|
|
709
|
+
valueFormatter: (h) => Z(h, J.MONTH_SHORT_YEAR)
|
|
708
710
|
}
|
|
709
711
|
],
|
|
710
712
|
yAxis: [
|
|
711
713
|
{
|
|
712
714
|
min: 0,
|
|
713
|
-
max:
|
|
715
|
+
max: M,
|
|
714
716
|
disableTicks: !0,
|
|
715
|
-
valueFormatter: (h) =>
|
|
717
|
+
valueFormatter: (h) => P(h, "0a")
|
|
716
718
|
}
|
|
717
719
|
]
|
|
718
720
|
}
|
|
719
721
|
)
|
|
720
722
|
}
|
|
721
723
|
);
|
|
722
|
-
},
|
|
723
|
-
const a = V(), { debts: o } = C(), { selectedDebtChartData: r } =
|
|
724
|
-
return /* @__PURE__ */ s(
|
|
724
|
+
}, Ct = () => {
|
|
725
|
+
const a = V(), { debts: o } = C(), { selectedDebtChartData: r } = L();
|
|
726
|
+
return /* @__PURE__ */ s(H, { children: [
|
|
725
727
|
/* @__PURE__ */ s(
|
|
726
|
-
|
|
728
|
+
ze,
|
|
727
729
|
{
|
|
728
730
|
sx: {
|
|
729
731
|
"& .MuiCardContent-root:last-child": {
|
|
@@ -731,8 +733,8 @@ const Ce = ({
|
|
|
731
733
|
}
|
|
732
734
|
},
|
|
733
735
|
children: [
|
|
734
|
-
/* @__PURE__ */ e(
|
|
735
|
-
/* @__PURE__ */ e(
|
|
736
|
+
/* @__PURE__ */ e(Ve, { sx: { pb: 0 }, title: /* @__PURE__ */ e(ke, { sx: { pb: 4 }, children: o.details_chart_title }) }),
|
|
737
|
+
/* @__PURE__ */ e(Xe, { sx: { p: 0 }, children: /* @__PURE__ */ e(Te, { debts: [r], height: 250 }) })
|
|
736
738
|
]
|
|
737
739
|
}
|
|
738
740
|
),
|
|
@@ -746,9 +748,9 @@ const Ce = ({
|
|
|
746
748
|
}
|
|
747
749
|
)
|
|
748
750
|
] });
|
|
749
|
-
},
|
|
750
|
-
const a = V(), { onEvent: o } = R(), { debts: r } = C(), { selectedDebtChartData: t, showCompleted: n, showError: i } =
|
|
751
|
-
return
|
|
751
|
+
}, St = v(Ct), vt = () => {
|
|
752
|
+
const a = V(), { onEvent: o } = R(), { debts: r } = C(), { selectedDebtChartData: t, showCompleted: n, showError: i } = L();
|
|
753
|
+
return f.useEffect(() => o(A.DEBT_SCHEDULE_VIEW), []), /* @__PURE__ */ e(Ce, { children: i || n ? /* @__PURE__ */ e(
|
|
752
754
|
l,
|
|
753
755
|
{
|
|
754
756
|
color: a.palette.secondary.main,
|
|
@@ -757,13 +759,13 @@ const Ce = ({
|
|
|
757
759
|
variant: "Small",
|
|
758
760
|
children: i ? r.schedule_error_message : r.schedule_complete_message
|
|
759
761
|
}
|
|
760
|
-
) : /* @__PURE__ */ s(
|
|
761
|
-
/* @__PURE__ */ s(
|
|
762
|
+
) : /* @__PURE__ */ s(H, { children: [
|
|
763
|
+
/* @__PURE__ */ s(x, { flexDirection: "row", justifyContent: "space-between", sx: { pt: 12, px: 24, pb: 8 }, children: [
|
|
762
764
|
/* @__PURE__ */ e(l, { bold: !0, variant: "XSmall", children: r.schedule_month_heading }),
|
|
763
765
|
/* @__PURE__ */ e(l, { bold: !0, variant: "XSmall", children: r.schedule_amount_heading })
|
|
764
766
|
] }),
|
|
765
|
-
t.dataset.slice(1).map(({ x:
|
|
766
|
-
|
|
767
|
+
t.dataset.slice(1).map(({ x: c, y: d, payment: p }) => /* @__PURE__ */ e(x, { bgcolor: a.palette.background.paper, children: /* @__PURE__ */ e(x, { alignItems: "center", flexDirection: "row", pl: 24, children: /* @__PURE__ */ s(
|
|
768
|
+
x,
|
|
767
769
|
{
|
|
768
770
|
sx: {
|
|
769
771
|
borderBottom: `1px solid ${a.palette.border.light}`,
|
|
@@ -773,12 +775,12 @@ const Ce = ({
|
|
|
773
775
|
pr: 24
|
|
774
776
|
},
|
|
775
777
|
children: [
|
|
776
|
-
/* @__PURE__ */ s(
|
|
777
|
-
/* @__PURE__ */ e(l, { bold: !0, variant: "Body", children:
|
|
778
|
+
/* @__PURE__ */ s(x, { flexGrow: 1, children: [
|
|
779
|
+
/* @__PURE__ */ e(l, { bold: !0, variant: "Body", children: Z(c, J.MONTH_YEAR) }),
|
|
778
780
|
/* @__PURE__ */ e(l, { color: a.palette.secondary.main, variant: "XSmall", children: r.schedule_month_label })
|
|
779
781
|
] }),
|
|
780
|
-
/* @__PURE__ */ s(
|
|
781
|
-
/* @__PURE__ */ e(l, { bold: !0, variant: "Body", children:
|
|
782
|
+
/* @__PURE__ */ s(x, { children: [
|
|
783
|
+
/* @__PURE__ */ e(l, { bold: !0, variant: "Body", children: P(d, "0,0.00") }),
|
|
782
784
|
/* @__PURE__ */ e(
|
|
783
785
|
l,
|
|
784
786
|
{
|
|
@@ -786,15 +788,15 @@ const Ce = ({
|
|
|
786
788
|
color: a.palette.success.main,
|
|
787
789
|
textAlign: "end",
|
|
788
790
|
variant: "Tiny",
|
|
789
|
-
children: `+${
|
|
791
|
+
children: `+${P(p, "0,0")}`
|
|
790
792
|
}
|
|
791
793
|
)
|
|
792
794
|
] })
|
|
793
795
|
]
|
|
794
796
|
}
|
|
795
|
-
) }) }, String(
|
|
796
|
-
/* @__PURE__ */ e(
|
|
797
|
-
|
|
797
|
+
) }) }, String(c))),
|
|
798
|
+
/* @__PURE__ */ e(x, { bgcolor: "background.paper", children: /* @__PURE__ */ s(
|
|
799
|
+
x,
|
|
798
800
|
{
|
|
799
801
|
sx: {
|
|
800
802
|
alignItems: "center",
|
|
@@ -810,28 +812,28 @@ const Ce = ({
|
|
|
810
812
|
}
|
|
811
813
|
) })
|
|
812
814
|
] }) });
|
|
813
|
-
},
|
|
814
|
-
const { debts: o } = C(), { updateAccount: r } =
|
|
815
|
-
await r({ ...a.account, interest_rate: n }), a.interest_rate = n, t(
|
|
815
|
+
}, Dt = v(vt), Tt = v(({ debt: a }) => {
|
|
816
|
+
const { debts: o } = C(), { updateAccount: r } = ee(), { onEvent: t } = R(), [n, i] = f.useState(a.interest_rate ?? 0), c = n < 0, d = async () => {
|
|
817
|
+
await r({ ...a.account, interest_rate: n }), a.interest_rate = n, t(A.DEBTS_SAVE_RATE_ACTION, { account_guid: a.guid });
|
|
816
818
|
}, p = () => {
|
|
817
819
|
setTimeout(() => {
|
|
818
820
|
i(a.interest_rate ?? 0);
|
|
819
821
|
}, 250);
|
|
820
822
|
};
|
|
821
823
|
return /* @__PURE__ */ e(
|
|
822
|
-
|
|
824
|
+
te,
|
|
823
825
|
{
|
|
824
|
-
isSaveDisabled:
|
|
826
|
+
isSaveDisabled: c,
|
|
825
827
|
label: `${o.details_interest_rate} (%)`,
|
|
826
828
|
onCancel: p,
|
|
827
|
-
onSave:
|
|
829
|
+
onSave: d,
|
|
828
830
|
primaryText: o.details_interest_rate,
|
|
829
|
-
secondaryText:
|
|
831
|
+
secondaryText: $e(Number(a.interest_rate) / 100),
|
|
830
832
|
zeroStateText: a.interest_rate ? void 0 : o.add_interest_rate,
|
|
831
833
|
children: /* @__PURE__ */ e(
|
|
832
|
-
|
|
834
|
+
Qe,
|
|
833
835
|
{
|
|
834
|
-
error:
|
|
836
|
+
error: c,
|
|
835
837
|
fullWidth: !0,
|
|
836
838
|
onChange: (m) => i(isNaN(parseFloat(m.target.value)) ? 0 : parseFloat(m.target.value)),
|
|
837
839
|
type: "number",
|
|
@@ -840,30 +842,30 @@ const Ce = ({
|
|
|
840
842
|
)
|
|
841
843
|
}
|
|
842
844
|
);
|
|
843
|
-
}),
|
|
844
|
-
const { debts: o } = C(), { updateAccount: r } =
|
|
845
|
-
await r({ ...a.account, minimum_payment: n }), a.monthly_payment = n, t(
|
|
845
|
+
}), At = v(({ debt: a }) => {
|
|
846
|
+
const { debts: o } = C(), { updateAccount: r } = ee(), { onEvent: t } = R(), [n, i] = f.useState(a.monthly_payment ?? 0), c = n < 0 || n > 9999999999e-2, d = async () => {
|
|
847
|
+
await r({ ...a.account, minimum_payment: n }), a.monthly_payment = n, t(A.DEBTS_SAVE_PAYMENT_ACTION, { account_guid: a.guid });
|
|
846
848
|
}, p = () => {
|
|
847
849
|
setTimeout(() => {
|
|
848
850
|
i(a.monthly_payment ?? 0);
|
|
849
851
|
}, 250);
|
|
850
852
|
};
|
|
851
853
|
return /* @__PURE__ */ e(
|
|
852
|
-
|
|
854
|
+
te,
|
|
853
855
|
{
|
|
854
|
-
isSaveDisabled:
|
|
856
|
+
isSaveDisabled: c,
|
|
855
857
|
label: o.details_monthly_payment,
|
|
856
858
|
onCancel: p,
|
|
857
|
-
onSave:
|
|
859
|
+
onSave: d,
|
|
858
860
|
primaryText: o.details_monthly_payment,
|
|
859
|
-
secondaryText:
|
|
861
|
+
secondaryText: P(a.monthly_payment, "0,0"),
|
|
860
862
|
zeroStateText: a.monthly_payment ? void 0 : o.add_monthly_payment,
|
|
861
863
|
children: /* @__PURE__ */ e(
|
|
862
|
-
|
|
864
|
+
ie,
|
|
863
865
|
{
|
|
864
866
|
amount: n,
|
|
865
867
|
autoFocus: !0,
|
|
866
|
-
error:
|
|
868
|
+
error: c,
|
|
867
869
|
fullWidth: !0,
|
|
868
870
|
minAmount: 0,
|
|
869
871
|
setAmount: (m) => i(isNaN(Number(m)) ? n : Number(m)),
|
|
@@ -872,30 +874,30 @@ const Ce = ({
|
|
|
872
874
|
)
|
|
873
875
|
}
|
|
874
876
|
);
|
|
875
|
-
}),
|
|
876
|
-
const { debts: o } = C(), { updateAccount: r } =
|
|
877
|
-
await r({ ...a.account, original_balance: n }), a.original_balance = n, t(
|
|
877
|
+
}), Et = v(({ debt: a }) => {
|
|
878
|
+
const { debts: o } = C(), { updateAccount: r } = ee(), { onEvent: t } = R(), [n, i] = f.useState(a.original_balance ?? 0), c = n < 0 || n > 9999999999e-2, d = async () => {
|
|
879
|
+
await r({ ...a.account, original_balance: n }), a.original_balance = n, t(A.DEBTS_SAVE_BALANCE_ACTION, { account_guid: a.guid });
|
|
878
880
|
}, p = () => {
|
|
879
881
|
setTimeout(() => {
|
|
880
882
|
i(a.original_balance ?? 0);
|
|
881
883
|
}, 250);
|
|
882
884
|
};
|
|
883
885
|
return /* @__PURE__ */ e(
|
|
884
|
-
|
|
886
|
+
te,
|
|
885
887
|
{
|
|
886
|
-
isSaveDisabled:
|
|
888
|
+
isSaveDisabled: c,
|
|
887
889
|
label: o.details_original_balance,
|
|
888
890
|
onCancel: p,
|
|
889
|
-
onSave:
|
|
891
|
+
onSave: d,
|
|
890
892
|
primaryText: o.details_original_balance,
|
|
891
|
-
secondaryText:
|
|
893
|
+
secondaryText: P(a.original_balance, "0,0"),
|
|
892
894
|
zeroStateText: a.original_balance ? void 0 : o.add_original_balance,
|
|
893
895
|
children: /* @__PURE__ */ e(
|
|
894
|
-
|
|
896
|
+
ie,
|
|
895
897
|
{
|
|
896
898
|
amount: n,
|
|
897
899
|
autoFocus: !0,
|
|
898
|
-
error:
|
|
900
|
+
error: c,
|
|
899
901
|
fullWidth: !0,
|
|
900
902
|
minAmount: 0,
|
|
901
903
|
setAmount: (m) => i(isNaN(Number(m)) ? n : Number(m)),
|
|
@@ -904,35 +906,35 @@ const Ce = ({
|
|
|
904
906
|
)
|
|
905
907
|
}
|
|
906
908
|
);
|
|
907
|
-
}),
|
|
908
|
-
const { onEvent: a } = R(), { selectedDebtChartData: o } =
|
|
909
|
-
return
|
|
910
|
-
o?.goal && /* @__PURE__ */ s(
|
|
911
|
-
/* @__PURE__ */ e(
|
|
909
|
+
}), It = () => {
|
|
910
|
+
const { onEvent: a } = R(), { selectedDebtChartData: o } = L();
|
|
911
|
+
return f.useEffect(() => a(A.DEBT_DETAILS_VIEW), []), /* @__PURE__ */ s(x, { bgcolor: "background.paper", children: [
|
|
912
|
+
o?.goal && /* @__PURE__ */ s(H, { children: [
|
|
913
|
+
/* @__PURE__ */ e(qe, { goal: o.goal }),
|
|
912
914
|
/* @__PURE__ */ e(j, {}),
|
|
913
|
-
/* @__PURE__ */ e(
|
|
915
|
+
/* @__PURE__ */ e(Ze, { goal: o.goal }),
|
|
914
916
|
/* @__PURE__ */ e(j, {}),
|
|
915
|
-
/* @__PURE__ */ e(
|
|
917
|
+
/* @__PURE__ */ e(Je, { goal: o.goal }),
|
|
916
918
|
/* @__PURE__ */ e(j, {})
|
|
917
919
|
] }),
|
|
918
|
-
!o?.goal && o?.account && /* @__PURE__ */ s(
|
|
919
|
-
/* @__PURE__ */ e(
|
|
920
|
+
!o?.goal && o?.account && /* @__PURE__ */ s(H, { children: [
|
|
921
|
+
/* @__PURE__ */ e(At, { debt: o }),
|
|
920
922
|
/* @__PURE__ */ e(j, {}),
|
|
921
|
-
/* @__PURE__ */ e(
|
|
923
|
+
/* @__PURE__ */ e(Tt, { debt: o }),
|
|
922
924
|
/* @__PURE__ */ e(j, {}),
|
|
923
|
-
/* @__PURE__ */ e(
|
|
925
|
+
/* @__PURE__ */ e(Et, { debt: o }),
|
|
924
926
|
/* @__PURE__ */ e(j, {})
|
|
925
927
|
] })
|
|
926
928
|
] });
|
|
927
|
-
},
|
|
928
|
-
const { debts: r } = C(), { showError: t, showCompleted: n } =
|
|
929
|
-
return
|
|
929
|
+
}, Bt = v(It), Mt = ({ setTabValue: a, sx: o }) => {
|
|
930
|
+
const { debts: r } = C(), { showError: t, showCompleted: n } = L();
|
|
931
|
+
return f.useEffect(() => {
|
|
930
932
|
t && a(1);
|
|
931
|
-
}, [t]), !t && !n ? /* @__PURE__ */ e(
|
|
932
|
-
/* @__PURE__ */ e(
|
|
933
|
-
|
|
933
|
+
}, [t]), !t && !n ? /* @__PURE__ */ e(H, {}) : /* @__PURE__ */ s(x, { gap: 16, children: [
|
|
934
|
+
/* @__PURE__ */ e(fe, { sx: { my: 16, mx: 24, ...o }, children: /* @__PURE__ */ s(
|
|
935
|
+
_e,
|
|
934
936
|
{
|
|
935
|
-
icon: t ? /* @__PURE__ */ e(
|
|
937
|
+
icon: t ? /* @__PURE__ */ e(et, { filled: !0 }) : /* @__PURE__ */ e(Se, { color: "success", filled: !0 }),
|
|
936
938
|
severity: "error",
|
|
937
939
|
sx: {
|
|
938
940
|
alignItems: "start",
|
|
@@ -945,15 +947,15 @@ const Ce = ({
|
|
|
945
947
|
}
|
|
946
948
|
},
|
|
947
949
|
children: [
|
|
948
|
-
/* @__PURE__ */ e(
|
|
950
|
+
/* @__PURE__ */ e(ye, { sx: { fontWeight: 600, marginTop: 2 }, variant: "Body", children: t ? r.status_error_title : r.status_complete_title }),
|
|
949
951
|
/* @__PURE__ */ e(l, { component: "p", sx: { whiteSpace: "wrap" }, variant: "ParagraphSmall", children: t ? r.status_error_description : r.status_complete_description })
|
|
950
952
|
]
|
|
951
953
|
}
|
|
952
954
|
) }),
|
|
953
|
-
t && /* @__PURE__ */ e(
|
|
954
|
-
|
|
955
|
+
t && /* @__PURE__ */ e(fe, { sx: { mb: 16, mt: 100, mx: 24, ...o }, children: /* @__PURE__ */ s(
|
|
956
|
+
_e,
|
|
955
957
|
{
|
|
956
|
-
icon: /* @__PURE__ */ e(
|
|
958
|
+
icon: /* @__PURE__ */ e(H, {}),
|
|
957
959
|
severity: "error",
|
|
958
960
|
sx: {
|
|
959
961
|
borderRadius: 2,
|
|
@@ -963,28 +965,28 @@ const Ce = ({
|
|
|
963
965
|
}
|
|
964
966
|
},
|
|
965
967
|
children: [
|
|
966
|
-
/* @__PURE__ */ e(
|
|
968
|
+
/* @__PURE__ */ e(ye, { sx: { fontWeight: 600, marginTop: 2 }, variant: "Body", children: r.status_info_title }),
|
|
967
969
|
/* @__PURE__ */ e(l, { component: "p", sx: { whiteSpace: "wrap" }, variant: "ParagraphSmall", children: r.status_info_description })
|
|
968
970
|
]
|
|
969
971
|
}
|
|
970
972
|
) })
|
|
971
973
|
] });
|
|
972
|
-
},
|
|
973
|
-
const { debts: a } = C(), { showError: o, showCompleted: r } =
|
|
974
|
-
return /* @__PURE__ */ s(
|
|
975
|
-
(o || r) && /* @__PURE__ */ e(
|
|
974
|
+
}, kt = v(Mt), Pt = () => {
|
|
975
|
+
const { debts: a } = C(), { showError: o, showCompleted: r } = L(), [t, n] = f.useState(0);
|
|
976
|
+
return /* @__PURE__ */ s(H, { children: [
|
|
977
|
+
(o || r) && /* @__PURE__ */ e(kt, { setTabValue: n, sx: { mt: -24 } }),
|
|
976
978
|
/* @__PURE__ */ s(
|
|
977
|
-
|
|
979
|
+
Ue,
|
|
978
980
|
{
|
|
979
981
|
"aria-label": a.details_tabs_aria_label,
|
|
980
982
|
centered: !0,
|
|
981
|
-
onChange: (i,
|
|
983
|
+
onChange: (i, c) => n(c),
|
|
982
984
|
textColor: "primary",
|
|
983
985
|
value: t,
|
|
984
986
|
variant: "fullWidth",
|
|
985
987
|
children: [
|
|
986
988
|
/* @__PURE__ */ e(
|
|
987
|
-
|
|
989
|
+
be,
|
|
988
990
|
{
|
|
989
991
|
"aria-controls": "debt-schedule-tabpanel-0",
|
|
990
992
|
id: "debt-schedule-tab-0",
|
|
@@ -992,7 +994,7 @@ const Ce = ({
|
|
|
992
994
|
}
|
|
993
995
|
),
|
|
994
996
|
/* @__PURE__ */ e(
|
|
995
|
-
|
|
997
|
+
be,
|
|
996
998
|
{
|
|
997
999
|
"aria-controls": "debt-details-tabpanel-1",
|
|
998
1000
|
id: "debt-details-tab-1",
|
|
@@ -1002,27 +1004,27 @@ const Ce = ({
|
|
|
1002
1004
|
]
|
|
1003
1005
|
}
|
|
1004
1006
|
),
|
|
1005
|
-
/* @__PURE__ */ e(
|
|
1006
|
-
/* @__PURE__ */ e(
|
|
1007
|
+
/* @__PURE__ */ e(xe, { index: 0, name: "debt-schedule", value: t, children: /* @__PURE__ */ e(Dt, {}) }),
|
|
1008
|
+
/* @__PURE__ */ e(xe, { index: 1, name: "debt-details", value: t, children: /* @__PURE__ */ e(Bt, {}) })
|
|
1007
1009
|
] });
|
|
1008
|
-
},
|
|
1009
|
-
const { debts: r } = C(), { showError: t, showCompleted: n } =
|
|
1010
|
+
}, Nt = v(Pt), Rt = ({ isOpen: a, onClose: o }) => {
|
|
1011
|
+
const { debts: r } = C(), { showError: t, showCompleted: n } = L(), i = t || n ? /* @__PURE__ */ e(H, {}) : /* @__PURE__ */ e(St, {});
|
|
1010
1012
|
return /* @__PURE__ */ e(
|
|
1011
|
-
|
|
1013
|
+
oe,
|
|
1012
1014
|
{
|
|
1013
1015
|
ariaLabelClose: r.details_close_aria,
|
|
1014
1016
|
isOpen: a,
|
|
1015
1017
|
onClose: o,
|
|
1016
1018
|
title: r.details_title,
|
|
1017
|
-
children: /* @__PURE__ */ s(
|
|
1018
|
-
/* @__PURE__ */ e(
|
|
1019
|
-
/* @__PURE__ */ e(
|
|
1019
|
+
children: /* @__PURE__ */ s(x, { bgcolor: "background.default", children: [
|
|
1020
|
+
/* @__PURE__ */ e(Ge, { customDetailsChart: i }),
|
|
1021
|
+
/* @__PURE__ */ e(Nt, {})
|
|
1020
1022
|
] })
|
|
1021
1023
|
}
|
|
1022
1024
|
);
|
|
1023
|
-
},
|
|
1024
|
-
const { debts: a } = C(), { monthlyCashFlowProfile: o, updateMonthlyCashFlowProfile: r } = Y(), { onEvent: t } = R(), [n, i] =
|
|
1025
|
-
o && (await r({ ...o, extra_payment: n }), o.extra_payment = n, t(
|
|
1025
|
+
}, Ft = v(() => {
|
|
1026
|
+
const { debts: a } = C(), { monthlyCashFlowProfile: o, updateMonthlyCashFlowProfile: r } = Y(), { onEvent: t } = R(), [n, i] = f.useState(o?.extra_payment ?? 0), c = n < 0 || n > 9999999999e-2, d = async () => {
|
|
1027
|
+
o && (await r({ ...o, extra_payment: n }), o.extra_payment = n, t(A.DEBTS_SAVE_PAYDOWN_ACTION, {
|
|
1026
1028
|
user_guid: o?.user_guid
|
|
1027
1029
|
}));
|
|
1028
1030
|
}, p = () => {
|
|
@@ -1031,21 +1033,21 @@ const Ce = ({
|
|
|
1031
1033
|
}, 250);
|
|
1032
1034
|
};
|
|
1033
1035
|
return /* @__PURE__ */ e(
|
|
1034
|
-
|
|
1036
|
+
te,
|
|
1035
1037
|
{
|
|
1036
|
-
isSaveDisabled:
|
|
1038
|
+
isSaveDisabled: c,
|
|
1037
1039
|
label: a.paydown_drawer_extra_payment,
|
|
1038
1040
|
onCancel: p,
|
|
1039
|
-
onSave:
|
|
1041
|
+
onSave: d,
|
|
1040
1042
|
primaryText: a.paydown_drawer_extra_payment,
|
|
1041
|
-
secondaryText:
|
|
1043
|
+
secondaryText: P(o?.extra_payment, "0,0"),
|
|
1042
1044
|
zeroStateText: o?.extra_payment ? void 0 : a.add_extra_payment,
|
|
1043
1045
|
children: /* @__PURE__ */ e(
|
|
1044
|
-
|
|
1046
|
+
ie,
|
|
1045
1047
|
{
|
|
1046
1048
|
amount: n,
|
|
1047
1049
|
autoFocus: !0,
|
|
1048
|
-
error:
|
|
1050
|
+
error: c,
|
|
1049
1051
|
fullWidth: !0,
|
|
1050
1052
|
minAmount: 0,
|
|
1051
1053
|
setAmount: (m) => i(isNaN(Number(m)) ? n : Number(m)),
|
|
@@ -1054,40 +1056,40 @@ const Ce = ({
|
|
|
1054
1056
|
)
|
|
1055
1057
|
}
|
|
1056
1058
|
);
|
|
1057
|
-
}),
|
|
1058
|
-
const { debts: a } = C(), { totalMonthlyPayments: o } =
|
|
1059
|
-
return /* @__PURE__ */ s(
|
|
1060
|
-
/* @__PURE__ */ s(
|
|
1061
|
-
/* @__PURE__ */ s(
|
|
1059
|
+
}), Lt = () => {
|
|
1060
|
+
const { debts: a } = C(), { totalMonthlyPayments: o } = Q(), { monthlyCashFlowProfile: r } = Y(), t = o + Number(r?.extra_payment);
|
|
1061
|
+
return /* @__PURE__ */ s(x, { sx: { backgroundColor: "background.default", height: "100%" }, children: [
|
|
1062
|
+
/* @__PURE__ */ s(x, { p: 24, children: [
|
|
1063
|
+
/* @__PURE__ */ s(x, { alignItems: "center", gap: 4, mb: 24, children: [
|
|
1062
1064
|
/* @__PURE__ */ e(l, { variant: "Body", children: a.paydown_drawer_mimimum_label }),
|
|
1063
|
-
/* @__PURE__ */ e(
|
|
1065
|
+
/* @__PURE__ */ e(we, { bold: !0, variant: "H1", children: P(o, "0,0") }),
|
|
1064
1066
|
/* @__PURE__ */ e(l, { textAlign: "center", truncate: !1, variant: "Small", width: 208, children: a.paydown_drawer_minimum_info })
|
|
1065
1067
|
] }),
|
|
1066
|
-
/* @__PURE__ */ s(
|
|
1068
|
+
/* @__PURE__ */ s(x, { children: [
|
|
1067
1069
|
/* @__PURE__ */ e(l, { variant: "H3", children: a.paydown_drawer_subtitle }),
|
|
1068
1070
|
/* @__PURE__ */ e(l, { truncate: !1, variant: "ParagraphSmall", children: a.paydown_drawer_description })
|
|
1069
1071
|
] })
|
|
1070
1072
|
] }),
|
|
1071
|
-
/* @__PURE__ */ e(
|
|
1072
|
-
/* @__PURE__ */ e(
|
|
1073
|
+
/* @__PURE__ */ e(x, { sx: { backgroundColor: "background.paper" }, children: /* @__PURE__ */ e(Ft, {}) }),
|
|
1074
|
+
/* @__PURE__ */ e(x, { flexDirection: "row-reverse", px: 24, py: 12, children: /* @__PURE__ */ s(x, { gap: 4, children: [
|
|
1073
1075
|
/* @__PURE__ */ e(l, { variant: "Small", children: a.paydown_drawer_total_payment }),
|
|
1074
|
-
/* @__PURE__ */ e(l, { bold: !0, textAlign: "right", variant: "Body", children:
|
|
1076
|
+
/* @__PURE__ */ e(l, { bold: !0, textAlign: "right", variant: "Body", children: P(t, "0,0") })
|
|
1075
1077
|
] }) })
|
|
1076
1078
|
] });
|
|
1077
|
-
},
|
|
1079
|
+
}, $t = v(Lt), Ht = ({ isOpen: a, onClose: o }) => {
|
|
1078
1080
|
const { debts: r } = C();
|
|
1079
1081
|
return /* @__PURE__ */ e(
|
|
1080
|
-
|
|
1082
|
+
oe,
|
|
1081
1083
|
{
|
|
1082
1084
|
ariaLabelClose: r.paydown_drawer_close_aria,
|
|
1083
1085
|
isOpen: a,
|
|
1084
1086
|
onClose: o,
|
|
1085
1087
|
title: r.paydown_drawer_title,
|
|
1086
|
-
children: /* @__PURE__ */ e(
|
|
1088
|
+
children: /* @__PURE__ */ e($t, {})
|
|
1087
1089
|
}
|
|
1088
1090
|
);
|
|
1089
1091
|
};
|
|
1090
|
-
function
|
|
1092
|
+
function Ot(a, o) {
|
|
1091
1093
|
const r = (t) => {
|
|
1092
1094
|
if (typeof t == "number") return t;
|
|
1093
1095
|
if (t === "!" || t === "✓") return 1 / 0;
|
|
@@ -1095,19 +1097,19 @@ function Mt(a, o) {
|
|
|
1095
1097
|
};
|
|
1096
1098
|
return r(a) - r(o);
|
|
1097
1099
|
}
|
|
1098
|
-
function
|
|
1100
|
+
function Wt(a) {
|
|
1099
1101
|
return a.is_paid_off ? "✓" : a.priority === void 0 || a.is_impossible ? "!" : a.priority;
|
|
1100
1102
|
}
|
|
1101
|
-
const
|
|
1103
|
+
const Gt = (a) => {
|
|
1102
1104
|
const o = {
|
|
1103
1105
|
text: "#121417",
|
|
1104
1106
|
background: "#FFB252"
|
|
1105
1107
|
};
|
|
1106
1108
|
return a === "!" && (o.text = "#FFFFFF", o.background = "#DF320C"), a === "✓" && (o.text = "#FFFFFF", o.background = "#09A57F"), o;
|
|
1107
|
-
},
|
|
1108
|
-
const o = String(a.formattedValue), r =
|
|
1109
|
+
}, jt = (a) => {
|
|
1110
|
+
const o = String(a.formattedValue), r = Gt(o);
|
|
1109
1111
|
return /* @__PURE__ */ e(
|
|
1110
|
-
|
|
1112
|
+
ne,
|
|
1111
1113
|
{
|
|
1112
1114
|
sx: {
|
|
1113
1115
|
display: "flex",
|
|
@@ -1123,69 +1125,69 @@ const kt = (a) => {
|
|
|
1123
1125
|
children: /* @__PURE__ */ e(l, { color: r.text, fontWeight: 700, variant: "Small", children: o })
|
|
1124
1126
|
}
|
|
1125
1127
|
);
|
|
1126
|
-
},
|
|
1127
|
-
const o = a.row.account, r =
|
|
1128
|
-
return /* @__PURE__ */ s(
|
|
1128
|
+
}, zt = (a) => {
|
|
1129
|
+
const o = a.row.account, r = rt[o.account_type];
|
|
1130
|
+
return /* @__PURE__ */ s(x, { alignItems: "center", flexDirection: "row", children: [
|
|
1129
1131
|
/* @__PURE__ */ e(
|
|
1130
|
-
|
|
1132
|
+
Pe,
|
|
1131
1133
|
{
|
|
1132
1134
|
alt: `${o.institutionName}`,
|
|
1133
1135
|
institutionGuid: o.institution_guid || ""
|
|
1134
1136
|
}
|
|
1135
1137
|
),
|
|
1136
|
-
/* @__PURE__ */ s(
|
|
1138
|
+
/* @__PURE__ */ s(x, { ml: 12, children: [
|
|
1137
1139
|
/* @__PURE__ */ e(l, { variant: "Small", children: o.name }),
|
|
1138
1140
|
/* @__PURE__ */ e(l, { variant: "XSmall", children: r })
|
|
1139
1141
|
] })
|
|
1140
1142
|
] });
|
|
1141
|
-
},
|
|
1143
|
+
}, Xt = ({
|
|
1142
1144
|
sx: a = {},
|
|
1143
1145
|
debts: o,
|
|
1144
1146
|
hoveredDebtGuid: r,
|
|
1145
1147
|
onHoverRow: t,
|
|
1146
1148
|
onClickRow: n
|
|
1147
1149
|
}) => {
|
|
1148
|
-
const i = V(), { onEvent:
|
|
1150
|
+
const i = V(), { onEvent: c } = R(), { isMobile: d } = K(), { debts: p, common: m } = C(), [u, w] = f.useState([
|
|
1149
1151
|
{ field: "priority", sort: "asc" }
|
|
1150
|
-
]),
|
|
1152
|
+
]), b = [
|
|
1151
1153
|
{
|
|
1152
1154
|
field: "priority",
|
|
1153
1155
|
headerName: p.table_column_priority,
|
|
1154
1156
|
renderHeader: z,
|
|
1155
|
-
renderCell:
|
|
1156
|
-
sortComparator:
|
|
1157
|
+
renderCell: jt,
|
|
1158
|
+
sortComparator: Ot,
|
|
1157
1159
|
sortable: !0,
|
|
1158
1160
|
hideSortIcons: !0,
|
|
1159
1161
|
type: "custom",
|
|
1160
1162
|
align: "left",
|
|
1161
1163
|
headerAlign: "left",
|
|
1162
|
-
minWidth:
|
|
1163
|
-
flex:
|
|
1164
|
+
minWidth: d ? 67 : 72,
|
|
1165
|
+
flex: d ? 0.2 : 0.4
|
|
1164
1166
|
},
|
|
1165
1167
|
{
|
|
1166
1168
|
field: "account",
|
|
1167
1169
|
headerName: p.table_column_account,
|
|
1168
1170
|
renderHeader: z,
|
|
1169
|
-
renderCell:
|
|
1171
|
+
renderCell: zt,
|
|
1170
1172
|
sortable: !1,
|
|
1171
1173
|
type: "custom",
|
|
1172
1174
|
align: "left",
|
|
1173
1175
|
headerAlign: "left",
|
|
1174
|
-
minWidth:
|
|
1176
|
+
minWidth: d ? 180 : 225,
|
|
1175
1177
|
flex: 1
|
|
1176
1178
|
},
|
|
1177
1179
|
{
|
|
1178
1180
|
field: "balance",
|
|
1179
1181
|
headerName: p.table_column_balance,
|
|
1180
1182
|
renderHeader: z,
|
|
1181
|
-
renderCell: (y) => /* @__PURE__ */ e(l, { color: i.palette.text.primary, variant: "Small", children:
|
|
1183
|
+
renderCell: (y) => /* @__PURE__ */ e(l, { color: i.palette.text.primary, variant: "Small", children: P(y.value, "0,0") }),
|
|
1182
1184
|
sortable: !0,
|
|
1183
|
-
hideSortIcons:
|
|
1185
|
+
hideSortIcons: d,
|
|
1184
1186
|
type: "number",
|
|
1185
1187
|
align: "left",
|
|
1186
1188
|
headerAlign: "left",
|
|
1187
|
-
minWidth:
|
|
1188
|
-
flex:
|
|
1189
|
+
minWidth: d ? 70 : 122,
|
|
1190
|
+
flex: d ? 0.4 : 0.6
|
|
1189
1191
|
},
|
|
1190
1192
|
{
|
|
1191
1193
|
field: "interest_rate",
|
|
@@ -1193,7 +1195,7 @@ const kt = (a) => {
|
|
|
1193
1195
|
renderHeader: z,
|
|
1194
1196
|
renderCell: (y) => /* @__PURE__ */ e(l, { color: i.palette.text.primary, variant: "Small", children: isNaN(y.value) ? "---" : `${Number(y.value).toFixed(2)}%` }),
|
|
1195
1197
|
sortable: !0,
|
|
1196
|
-
hideSortIcons:
|
|
1198
|
+
hideSortIcons: d,
|
|
1197
1199
|
type: "number",
|
|
1198
1200
|
align: "left",
|
|
1199
1201
|
headerAlign: "left",
|
|
@@ -1204,9 +1206,9 @@ const kt = (a) => {
|
|
|
1204
1206
|
field: "projected_payoff_date",
|
|
1205
1207
|
headerName: p.table_column_payoff_date,
|
|
1206
1208
|
renderHeader: z,
|
|
1207
|
-
renderCell: (y) => /* @__PURE__ */ e(l, { color: i.palette.text.primary, variant: "Small", children: y.value ?
|
|
1209
|
+
renderCell: (y) => /* @__PURE__ */ e(l, { color: i.palette.text.primary, variant: "Small", children: y.value ? Z(y.value, J.MONTH_SHORT_YEAR) : "---" }),
|
|
1208
1210
|
sortable: !0,
|
|
1209
|
-
hideSortIcons:
|
|
1211
|
+
hideSortIcons: d,
|
|
1210
1212
|
type: "number",
|
|
1211
1213
|
align: "left",
|
|
1212
1214
|
headerAlign: "left",
|
|
@@ -1217,9 +1219,9 @@ const kt = (a) => {
|
|
|
1217
1219
|
field: "monthly_payment",
|
|
1218
1220
|
headerName: p.table_column_amount_due,
|
|
1219
1221
|
renderHeader: z,
|
|
1220
|
-
renderCell: (y) => /* @__PURE__ */ e(l, { color: i.palette.text.primary, variant: "Small", children: typeof y.value == "number" ?
|
|
1222
|
+
renderCell: (y) => /* @__PURE__ */ e(l, { color: i.palette.text.primary, variant: "Small", children: typeof y.value == "number" ? P(y.value, "0,0") : "---" }),
|
|
1221
1223
|
sortable: !0,
|
|
1222
|
-
hideSortIcons:
|
|
1224
|
+
hideSortIcons: d,
|
|
1223
1225
|
type: "number",
|
|
1224
1226
|
align: "left",
|
|
1225
1227
|
headerAlign: "left",
|
|
@@ -1227,12 +1229,12 @@ const kt = (a) => {
|
|
|
1227
1229
|
flex: 0.6
|
|
1228
1230
|
}
|
|
1229
1231
|
], B = [
|
|
1230
|
-
...
|
|
1232
|
+
...b.slice(0, 3),
|
|
1231
1233
|
{
|
|
1232
1234
|
field: "chevron",
|
|
1233
1235
|
headerClassName: "chevron-header",
|
|
1234
1236
|
headerName: "",
|
|
1235
|
-
renderCell: () => /* @__PURE__ */ e(_, { "aria-label": m.see_details, role: "button", children: /* @__PURE__ */ e(
|
|
1237
|
+
renderCell: () => /* @__PURE__ */ e(_, { "aria-label": m.see_details, role: "button", children: /* @__PURE__ */ e(ae, { name: "chevron_right" }) }),
|
|
1236
1238
|
sortable: !1,
|
|
1237
1239
|
hideSortIcons: !0,
|
|
1238
1240
|
type: "custom",
|
|
@@ -1240,20 +1242,20 @@ const kt = (a) => {
|
|
|
1240
1242
|
headerAlign: "right",
|
|
1241
1243
|
width: 20
|
|
1242
1244
|
}
|
|
1243
|
-
],
|
|
1245
|
+
], M = f.useMemo(() => o.map((y, h) => ({
|
|
1244
1246
|
...y,
|
|
1245
1247
|
id: h,
|
|
1246
|
-
priority:
|
|
1247
|
-
})), [o]),
|
|
1248
|
-
const
|
|
1249
|
-
t?.(
|
|
1248
|
+
priority: Wt(y)
|
|
1249
|
+
})), [o]), I = (y) => {
|
|
1250
|
+
const T = y.target.closest("[data-id]")?.getAttribute("data-id"), N = o[Number(T)];
|
|
1251
|
+
t?.(N?.guid ?? "");
|
|
1250
1252
|
}, S = (y) => {
|
|
1251
|
-
|
|
1252
|
-
},
|
|
1253
|
-
|
|
1254
|
-
}, $ = (y) =>
|
|
1253
|
+
d || I(y);
|
|
1254
|
+
}, D = (y) => {
|
|
1255
|
+
d && I(y);
|
|
1256
|
+
}, $ = (y) => M.find((h) => h.guid === y)?.id;
|
|
1255
1257
|
return /* @__PURE__ */ e(
|
|
1256
|
-
|
|
1258
|
+
ne,
|
|
1257
1259
|
{
|
|
1258
1260
|
sx: {
|
|
1259
1261
|
height: "100dvh",
|
|
@@ -1264,30 +1266,30 @@ const kt = (a) => {
|
|
|
1264
1266
|
...a
|
|
1265
1267
|
},
|
|
1266
1268
|
children: /* @__PURE__ */ e(
|
|
1267
|
-
|
|
1269
|
+
tt,
|
|
1268
1270
|
{
|
|
1269
|
-
columns:
|
|
1271
|
+
columns: d ? B : b,
|
|
1270
1272
|
disableColumnFilter: !0,
|
|
1271
1273
|
disableColumnMenu: !0,
|
|
1272
1274
|
hideFooter: !0,
|
|
1273
|
-
initialState: { sorting: { sortModel:
|
|
1275
|
+
initialState: { sorting: { sortModel: u } },
|
|
1274
1276
|
onRowClick: (y) => {
|
|
1275
|
-
n(),
|
|
1277
|
+
n(), c(A.DEBTS_CLICK_TABLE_ROW, { account_guid: y.row.guid });
|
|
1276
1278
|
},
|
|
1277
1279
|
onSortModelChange: (y) => {
|
|
1278
|
-
w(y),
|
|
1280
|
+
w(y), c(A.DEBTS_CLICK_TABLE_SORT);
|
|
1279
1281
|
},
|
|
1280
|
-
rows:
|
|
1282
|
+
rows: M,
|
|
1281
1283
|
slotProps: {
|
|
1282
1284
|
baseIconButton: { color: "secondary", sx: { ml: 8 } },
|
|
1283
1285
|
row: {
|
|
1284
1286
|
onMouseEnter: S,
|
|
1285
|
-
onMouseLeave: () => !
|
|
1286
|
-
onTouchStart:
|
|
1287
|
-
onClick:
|
|
1287
|
+
onMouseLeave: () => !d && t?.(""),
|
|
1288
|
+
onTouchStart: D,
|
|
1289
|
+
onClick: d ? D : void 0
|
|
1288
1290
|
}
|
|
1289
1291
|
},
|
|
1290
|
-
sortModel:
|
|
1292
|
+
sortModel: u,
|
|
1291
1293
|
sortingOrder: ["asc", "desc"],
|
|
1292
1294
|
sx: {
|
|
1293
1295
|
"& .chevron-header": { display: "none" },
|
|
@@ -1300,33 +1302,33 @@ const kt = (a) => {
|
|
|
1300
1302
|
)
|
|
1301
1303
|
}
|
|
1302
1304
|
);
|
|
1303
|
-
},
|
|
1305
|
+
}, Vt = ({ buttonText: a, isOpen: o, onClick: r }) => {
|
|
1304
1306
|
const { isDesktop: t, isTablet: n } = K(), i = o ? "unfold_less" : "unfold_more";
|
|
1305
1307
|
return t || n ? /* @__PURE__ */ e(
|
|
1306
|
-
|
|
1308
|
+
ve,
|
|
1307
1309
|
{
|
|
1308
1310
|
"aria-controls": "prioritize-debts",
|
|
1309
1311
|
"aria-describedby": "prioritize-debts",
|
|
1310
1312
|
"aria-haspopup": !0,
|
|
1311
1313
|
"aria-label": "prioritize-debts",
|
|
1312
1314
|
onClick: r,
|
|
1313
|
-
startIcon: /* @__PURE__ */ e(
|
|
1315
|
+
startIcon: /* @__PURE__ */ e(ae, { name: i }),
|
|
1314
1316
|
sx: { justifyContent: "start", minWidth: 214, mx: 4 },
|
|
1315
1317
|
children: a
|
|
1316
1318
|
}
|
|
1317
1319
|
) : /* @__PURE__ */ e(
|
|
1318
|
-
|
|
1320
|
+
at,
|
|
1319
1321
|
{
|
|
1320
1322
|
"aria-controls": "prioritize-debts",
|
|
1321
1323
|
"aria-describedby": "prioritize-debts",
|
|
1322
1324
|
"aria-haspopup": !0,
|
|
1323
1325
|
"aria-label": "prioritize-debts",
|
|
1324
1326
|
onClick: r,
|
|
1325
|
-
children: /* @__PURE__ */ e(
|
|
1327
|
+
children: /* @__PURE__ */ e(ae, { name: i })
|
|
1326
1328
|
}
|
|
1327
1329
|
);
|
|
1328
|
-
},
|
|
1329
|
-
const { onEvent: r } = R(), { debts: t } = C(), { selectedDebtPriority: n, setSelectedDebtPriority: i } =
|
|
1330
|
+
}, Yt = v(({ buttonEl: a, onClose: o }) => {
|
|
1331
|
+
const { onEvent: r } = R(), { debts: t } = C(), { selectedDebtPriority: n, setSelectedDebtPriority: i } = L(), c = !!a, d = [
|
|
1330
1332
|
{
|
|
1331
1333
|
priority: k.FASTEST_PAYOFF_FIRST,
|
|
1332
1334
|
text: t.priority_sort_fastest_payoff
|
|
@@ -1344,10 +1346,10 @@ const kt = (a) => {
|
|
|
1344
1346
|
text: t.priority_sort_highest_balance
|
|
1345
1347
|
}
|
|
1346
1348
|
], p = (m) => {
|
|
1347
|
-
i(m), r(
|
|
1349
|
+
i(m), r(A.DEBTS_CLICK_PRIORITY, { debts_priority: m });
|
|
1348
1350
|
};
|
|
1349
1351
|
return /* @__PURE__ */ e(
|
|
1350
|
-
|
|
1352
|
+
nt,
|
|
1351
1353
|
{
|
|
1352
1354
|
anchorEl: a,
|
|
1353
1355
|
anchorOrigin: {
|
|
@@ -1356,13 +1358,13 @@ const kt = (a) => {
|
|
|
1356
1358
|
},
|
|
1357
1359
|
id: "prioritize-debts",
|
|
1358
1360
|
onClose: o,
|
|
1359
|
-
open:
|
|
1361
|
+
open: c,
|
|
1360
1362
|
transformOrigin: {
|
|
1361
1363
|
vertical: "top",
|
|
1362
1364
|
horizontal: "left"
|
|
1363
1365
|
},
|
|
1364
|
-
children: /* @__PURE__ */ e(
|
|
1365
|
-
|
|
1366
|
+
children: /* @__PURE__ */ e(Ce, { children: d.map(({ priority: m, text: u }) => /* @__PURE__ */ s(
|
|
1367
|
+
ot,
|
|
1366
1368
|
{
|
|
1367
1369
|
onClick: () => p(m),
|
|
1368
1370
|
sx: {
|
|
@@ -1380,34 +1382,34 @@ const kt = (a) => {
|
|
|
1380
1382
|
}
|
|
1381
1383
|
},
|
|
1382
1384
|
children: [
|
|
1383
|
-
/* @__PURE__ */ e(l, { color: "inherit", variant: "Small", children:
|
|
1384
|
-
n === m && /* @__PURE__ */ e(
|
|
1385
|
+
/* @__PURE__ */ e(l, { color: "inherit", variant: "Small", children: u }),
|
|
1386
|
+
n === m && /* @__PURE__ */ e(Se, { color: "inherit", filled: !0, fontSize: "small" })
|
|
1385
1387
|
]
|
|
1386
1388
|
},
|
|
1387
1389
|
m
|
|
1388
1390
|
)) })
|
|
1389
1391
|
}
|
|
1390
1392
|
);
|
|
1391
|
-
}),
|
|
1392
|
-
const { onEvent: a } = R(), { debts: o } = C(), { selectedDebtPriority: r } =
|
|
1393
|
-
n(m.currentTarget), a(
|
|
1394
|
-
},
|
|
1393
|
+
}), Kt = v(() => {
|
|
1394
|
+
const { onEvent: a } = R(), { debts: o } = C(), { selectedDebtPriority: r } = L(), [t, n] = f.useState(null), i = (m) => {
|
|
1395
|
+
n(m.currentTarget), a(A.DEBTS_CLICK_PRIORITIZE);
|
|
1396
|
+
}, c = () => {
|
|
1395
1397
|
n(null);
|
|
1396
|
-
},
|
|
1398
|
+
}, d = !!t, p = f.useMemo(() => ({
|
|
1397
1399
|
[k.FASTEST_PAYOFF_FIRST]: o.priority_sort_fastest_payoff,
|
|
1398
1400
|
[k.HIGHEST_INTEREST]: o.priority_sort_highest_interest,
|
|
1399
1401
|
[k.HIGHEST_BALANCE]: o.priority_sort_highest_balance,
|
|
1400
1402
|
[k.LOWEST_BALANCE]: o.priority_sort_lowest_balance
|
|
1401
1403
|
})[r] ?? o.priority_sort_lowest_balance, [r]);
|
|
1402
1404
|
return /* @__PURE__ */ s(_, { children: [
|
|
1403
|
-
/* @__PURE__ */ e(
|
|
1404
|
-
/* @__PURE__ */ e(
|
|
1405
|
+
/* @__PURE__ */ e(Vt, { buttonText: p, isOpen: d, onClick: i }),
|
|
1406
|
+
/* @__PURE__ */ e(Yt, { buttonEl: t, onClose: c })
|
|
1405
1407
|
] });
|
|
1406
|
-
}),
|
|
1408
|
+
}), Ut = (a, o, r = 0) => {
|
|
1407
1409
|
const t = a.map((p) => ({ ...p }));
|
|
1408
|
-
|
|
1410
|
+
De(t, o);
|
|
1409
1411
|
const n = /* @__PURE__ */ new Date(), i = [];
|
|
1410
|
-
let
|
|
1412
|
+
let c = 0, d = 1;
|
|
1411
1413
|
for (const p of t)
|
|
1412
1414
|
i.push({
|
|
1413
1415
|
...p,
|
|
@@ -1415,35 +1417,40 @@ const kt = (a) => {
|
|
|
1415
1417
|
dataset: [{ x: new Date(n), y: p.balance }]
|
|
1416
1418
|
});
|
|
1417
1419
|
for (; t.some((p) => p.balance >= 0.01 && !p.is_impossible); ) {
|
|
1418
|
-
let p = !1, m = !1,
|
|
1419
|
-
for (const [w,
|
|
1420
|
-
if (
|
|
1421
|
-
const B = i[w].dataset,
|
|
1422
|
-
let $ =
|
|
1423
|
-
!
|
|
1424
|
-
const h = Math.min(
|
|
1420
|
+
let p = !1, m = !1, u = !1;
|
|
1421
|
+
for (const [w, b] of t.entries()) {
|
|
1422
|
+
if (b.balance <= 0.01) continue;
|
|
1423
|
+
const B = i[w].dataset, I = (b.interest_rate ?? 0) / 100 / 12, S = b.balance * I, D = b.monthly_payment ?? 0;
|
|
1424
|
+
let $ = D, y = 0;
|
|
1425
|
+
!u && r > 0 && ($ += r, u = !0), !m && c > 0 && (y = c, m = !0), b.balance += S;
|
|
1426
|
+
const h = Math.min(b.balance, $ + y);
|
|
1425
1427
|
if (h <= S) {
|
|
1426
|
-
|
|
1428
|
+
b.is_impossible = !0, i[w].is_impossible = !0, i[w].priority = void 0, B.push({ x: new Date(n), y: b.balance });
|
|
1427
1429
|
continue;
|
|
1428
1430
|
}
|
|
1429
|
-
|
|
1431
|
+
b.balance -= h, b.balance = b.balance < 0.01 ? 0 : b.balance, B.push({
|
|
1430
1432
|
x: new Date(n),
|
|
1431
|
-
y: Math.max(0,
|
|
1433
|
+
y: Math.max(0, b.balance),
|
|
1432
1434
|
payment: h,
|
|
1433
1435
|
extra: y
|
|
1434
|
-
}),
|
|
1436
|
+
}), b.balance <= 0 && (c += D, i[w].projected_payoff_date = new Date(n)), h > 0 && (p = !0);
|
|
1435
1437
|
}
|
|
1436
1438
|
p && n.setMonth(n.getMonth() + 1);
|
|
1437
1439
|
}
|
|
1438
1440
|
return i.forEach((p) => {
|
|
1439
1441
|
(p.interest_rate === void 0 || p.monthly_payment === void 0) && (p.projected_payoff_date = void 0);
|
|
1440
1442
|
}), i.forEach((p) => {
|
|
1441
|
-
p.priority = !p.is_paid_off && !p.is_impossible ?
|
|
1443
|
+
p.priority = !p.is_paid_off && !p.is_impossible ? d++ : void 0;
|
|
1442
1444
|
}), i;
|
|
1443
|
-
},
|
|
1444
|
-
|
|
1445
|
+
}, qt = (a, o, r) => ({
|
|
1446
|
+
description: o ? a.empty_state_description : a.empty_state_description_no_aggregation,
|
|
1447
|
+
header: o ? a.empty_state_header : a.empty_state_header_no_aggregation,
|
|
1448
|
+
onClickHandler: o ? r : void 0,
|
|
1449
|
+
primaryButton: o ? a.connect_accounts : void 0
|
|
1450
|
+
}), Zt = v(({ onClick: a }) => {
|
|
1451
|
+
const { debts: o } = C(), { isDesktop: r } = K(), { totalMonthlyPayments: t } = Q(), { monthlyCashFlowProfile: n } = Y(), i = t + Number(n?.extra_payment), c = r ? o.paydown_button_long : o.paydown_button_short;
|
|
1445
1452
|
return /* @__PURE__ */ e(
|
|
1446
|
-
|
|
1453
|
+
ve,
|
|
1447
1454
|
{
|
|
1448
1455
|
"aria-controls": "extra-paydown",
|
|
1449
1456
|
"aria-describedby": "extra-paydown",
|
|
@@ -1451,38 +1458,47 @@ const kt = (a) => {
|
|
|
1451
1458
|
"aria-label": "extra-paydown",
|
|
1452
1459
|
onClick: a,
|
|
1453
1460
|
sx: { justifyContent: "start", minWidth: 100, mx: 4 },
|
|
1454
|
-
children:
|
|
1461
|
+
children: E(c, P(i, "0,0"))
|
|
1455
1462
|
}
|
|
1456
1463
|
);
|
|
1457
|
-
}),
|
|
1458
|
-
const { isDesktop: r, isMobile: t } = K(), {
|
|
1459
|
-
|
|
1464
|
+
}), Jt = ({ onBackClick: a, sx: o }) => {
|
|
1465
|
+
const { isDesktop: r, isMobile: t } = K(), { connect: n, debts: i } = C(), { onEvent: c } = R(), {
|
|
1466
|
+
config: { show_connections_widget_in_master: d }
|
|
1467
|
+
} = Oe(), { isInitialized: p } = We(), { setSelectedAccount: m } = je(), { selectedDebtPriority: u, setSelectedDebtChartData: w } = L(), { isAccountDataLoaded: b, loadAccountData: B, visibleDebtAccounts: M } = ee(), { isAllGoalDataLoaded: I, loadGoalData: S, monthlyCashFlowProfile: D } = Y(), { debts: $ } = Q(), [y, h] = f.useState(!1), [g, T] = f.useState(!1), [N, F] = f.useState(!1), [O, Ae] = f.useState(""), [Ee, le] = f.useState(!1);
|
|
1468
|
+
lt({
|
|
1460
1469
|
widgetName: "DebtsWidget",
|
|
1461
|
-
isLoaded:
|
|
1470
|
+
isLoaded: I
|
|
1462
1471
|
});
|
|
1463
|
-
const
|
|
1464
|
-
const
|
|
1465
|
-
return
|
|
1466
|
-
}, [
|
|
1467
|
-
|
|
1468
|
-
b ||
|
|
1469
|
-
}, []),
|
|
1470
|
-
|
|
1471
|
-
}, [
|
|
1472
|
-
const
|
|
1473
|
-
const
|
|
1474
|
-
|
|
1475
|
-
},
|
|
1476
|
-
|
|
1477
|
-
},
|
|
1478
|
-
|
|
1472
|
+
const U = f.useMemo(() => {
|
|
1473
|
+
const W = D?.extra_payment ?? 0;
|
|
1474
|
+
return Ut($, u, W);
|
|
1475
|
+
}, [$, u, D]);
|
|
1476
|
+
f.useEffect(() => {
|
|
1477
|
+
b || B().finally(), c(A.DEBTS_VIEW);
|
|
1478
|
+
}, []), f.useEffect(() => {
|
|
1479
|
+
p && S().finally();
|
|
1480
|
+
}, [p]);
|
|
1481
|
+
const se = (W) => Ae(W), ce = () => {
|
|
1482
|
+
const W = M.find((re) => re.guid === O), pe = U.find((re) => re.guid === O);
|
|
1483
|
+
W && m(W), pe && w(pe), h(!0);
|
|
1484
|
+
}, Ie = () => c(A.DEBTS_CLICK_FILTER), Be = () => {
|
|
1485
|
+
F(!0), c(A.DEBTS_CLICK_SNOWBALL_CTA);
|
|
1486
|
+
}, Me = () => {
|
|
1487
|
+
T(!0), c(A.DEBTS_CLICK_PAYDOWN);
|
|
1479
1488
|
};
|
|
1480
|
-
|
|
1481
|
-
|
|
1489
|
+
if (!p || !I)
|
|
1490
|
+
return /* @__PURE__ */ e(st, {});
|
|
1491
|
+
const de = $.length === 0, q = qt(
|
|
1492
|
+
i,
|
|
1493
|
+
d,
|
|
1494
|
+
() => le(!0)
|
|
1495
|
+
);
|
|
1496
|
+
return /* @__PURE__ */ s(
|
|
1497
|
+
ct,
|
|
1482
1498
|
{
|
|
1483
1499
|
actions: [
|
|
1484
|
-
/* @__PURE__ */ e(
|
|
1485
|
-
/* @__PURE__ */ e(
|
|
1500
|
+
/* @__PURE__ */ e(Kt, {}, "prioritize-debts"),
|
|
1501
|
+
/* @__PURE__ */ e(Zt, { onClick: Me }, "extra-paydown")
|
|
1486
1502
|
],
|
|
1487
1503
|
allowedAccountTypes: [
|
|
1488
1504
|
X.CREDIT_CARD,
|
|
@@ -1491,69 +1507,90 @@ const kt = (a) => {
|
|
|
1491
1507
|
X.LINE_OF_CREDIT,
|
|
1492
1508
|
X.CHECKING_LINE_OF_CREDIT
|
|
1493
1509
|
],
|
|
1494
|
-
onAccountsFilterClick:
|
|
1510
|
+
onAccountsFilterClick: Ie,
|
|
1495
1511
|
onBackClick: a,
|
|
1496
1512
|
sx: o,
|
|
1497
|
-
title:
|
|
1513
|
+
title: i.title,
|
|
1498
1514
|
children: [
|
|
1499
|
-
/* @__PURE__ */ s(
|
|
1500
|
-
/* @__PURE__ */
|
|
1501
|
-
|
|
1515
|
+
/* @__PURE__ */ s(x, { sx: { pt: 48, px: r ? "48px" : "24px" }, children: [
|
|
1516
|
+
de && /* @__PURE__ */ e(
|
|
1517
|
+
dt,
|
|
1502
1518
|
{
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
/* @__PURE__ */ e(
|
|
1510
|
-
Ce,
|
|
1511
|
-
{
|
|
1512
|
-
debts: H,
|
|
1513
|
-
height: t ? 250 : void 0,
|
|
1514
|
-
hoveredDebtGuid: E,
|
|
1515
|
-
onClickArea: ie,
|
|
1516
|
-
onHoverArea: ne,
|
|
1517
|
-
sx: { mr: t ? "4px" : "-48px" }
|
|
1518
|
-
}
|
|
1519
|
-
),
|
|
1520
|
-
/* @__PURE__ */ e(
|
|
1521
|
-
st,
|
|
1522
|
-
{
|
|
1523
|
-
debts: H,
|
|
1524
|
-
onClickCta: ve,
|
|
1525
|
-
sx: { mb: t ? "0px" : "64px" }
|
|
1526
|
-
}
|
|
1527
|
-
)
|
|
1528
|
-
]
|
|
1519
|
+
header: q.header,
|
|
1520
|
+
icon: "note_stack",
|
|
1521
|
+
onClick: q.onClickHandler,
|
|
1522
|
+
primaryButton: q.primaryButton,
|
|
1523
|
+
subText: q.description,
|
|
1524
|
+
sx: { maxWidth: 400 }
|
|
1529
1525
|
}
|
|
1530
1526
|
),
|
|
1531
|
-
/* @__PURE__ */
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1527
|
+
!de && /* @__PURE__ */ s(H, { children: [
|
|
1528
|
+
/* @__PURE__ */ s(
|
|
1529
|
+
x,
|
|
1530
|
+
{
|
|
1531
|
+
sx: {
|
|
1532
|
+
alignItems: t ? "flex-start" : "flex-end",
|
|
1533
|
+
flexDirection: t ? "column" : "row",
|
|
1534
|
+
mx: t ? "-12px" : 0
|
|
1535
|
+
},
|
|
1536
|
+
children: [
|
|
1537
|
+
/* @__PURE__ */ e(
|
|
1538
|
+
Te,
|
|
1539
|
+
{
|
|
1540
|
+
debts: U,
|
|
1541
|
+
height: t ? 250 : void 0,
|
|
1542
|
+
hoveredDebtGuid: O,
|
|
1543
|
+
onClickArea: ce,
|
|
1544
|
+
onHoverArea: se,
|
|
1545
|
+
sx: { mr: t ? "4px" : "-48px" }
|
|
1546
|
+
}
|
|
1547
|
+
),
|
|
1548
|
+
/* @__PURE__ */ e(
|
|
1549
|
+
yt,
|
|
1550
|
+
{
|
|
1551
|
+
debts: U,
|
|
1552
|
+
onClickCta: Be,
|
|
1553
|
+
sx: { mb: t ? "0px" : "64px" }
|
|
1554
|
+
}
|
|
1555
|
+
)
|
|
1556
|
+
]
|
|
1557
|
+
}
|
|
1558
|
+
),
|
|
1559
|
+
/* @__PURE__ */ e(x, { sx: { mx: t ? "-24px" : 0 }, children: /* @__PURE__ */ e(
|
|
1560
|
+
Xt,
|
|
1561
|
+
{
|
|
1562
|
+
debts: U,
|
|
1563
|
+
hoveredDebtGuid: O,
|
|
1564
|
+
onClickRow: ce,
|
|
1565
|
+
onHoverRow: se
|
|
1566
|
+
}
|
|
1567
|
+
) })
|
|
1568
|
+
] })
|
|
1540
1569
|
] }),
|
|
1541
1570
|
/* @__PURE__ */ e(
|
|
1542
|
-
|
|
1571
|
+
xt,
|
|
1543
1572
|
{
|
|
1544
|
-
isOpen:
|
|
1545
|
-
onClose: () =>
|
|
1573
|
+
isOpen: N,
|
|
1574
|
+
onClose: () => F(!1)
|
|
1546
1575
|
}
|
|
1547
1576
|
),
|
|
1548
|
-
/* @__PURE__ */ e(
|
|
1549
|
-
/* @__PURE__ */ e(
|
|
1577
|
+
/* @__PURE__ */ e(Rt, { isOpen: y, onClose: () => h(!1) }),
|
|
1578
|
+
/* @__PURE__ */ e(Ht, { isOpen: g, onClose: () => T(!1) }),
|
|
1579
|
+
/* @__PURE__ */ e(
|
|
1580
|
+
it,
|
|
1581
|
+
{
|
|
1582
|
+
onClose: () => le(!1),
|
|
1583
|
+
showConnectWidget: Ee,
|
|
1584
|
+
title: n.mini_title
|
|
1585
|
+
}
|
|
1586
|
+
)
|
|
1550
1587
|
]
|
|
1551
1588
|
}
|
|
1552
1589
|
);
|
|
1553
|
-
},
|
|
1590
|
+
}, Ur = v(Jt);
|
|
1554
1591
|
export {
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1592
|
+
Te as DebtsChart,
|
|
1593
|
+
Jr as DebtsStore,
|
|
1594
|
+
Xt as DebtsTable,
|
|
1595
|
+
Ur as DebtsWidget
|
|
1559
1596
|
};
|