@mx-cartographer/experiences 7.6.10 → 7.6.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/finstrong/index.es.js +64 -61
- package/dist/goals/index.es.js +64 -52
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [7.6.12] - 01-16-2026
|
|
2
|
+
|
|
3
|
+
- **UPDATED** - Focus style for goal status cards
|
|
4
|
+
|
|
5
|
+
## [7.6.11] - 01-16-2026
|
|
6
|
+
|
|
7
|
+
- **UPDATED** - Fixes for `Finstrong` onboarding and sticky footer
|
|
8
|
+
|
|
1
9
|
## [7.6.10] - 01-16-2026
|
|
2
10
|
|
|
3
11
|
- **UPDATED** - `Finstrong` KeyIndicators Line Graph Style
|
|
@@ -9,7 +9,7 @@ import { g as gn, a as yn, r as Je, b as bn, c as He, d as ht, C as ke, e as Me,
|
|
|
9
9
|
import { y as bi, F as fi } from "../FinstrongStore-bEn_im_e.mjs";
|
|
10
10
|
import * as nt from "d3";
|
|
11
11
|
import { observer as w } from "mobx-react-lite";
|
|
12
|
-
import { u as x, b as U, a as Ne, o as ee, z as L, p as
|
|
12
|
+
import { u as x, b as U, a as Ne, o as ee, z as L, p as Tn, d as Ce, m as je, f as An, j as Ke, h as On, i as Rn } from "../hooks-ZMp65DFz.mjs";
|
|
13
13
|
import { L as te } from "../Loader-DUaFpDGv.mjs";
|
|
14
14
|
import m from "react";
|
|
15
15
|
import P from "@mui/material/Button";
|
|
@@ -55,7 +55,7 @@ import { startOfToday as rt } from "date-fns/startOfToday";
|
|
|
55
55
|
import { subDays as no } from "date-fns/subDays";
|
|
56
56
|
import { c as oo, d as at, S as ro, i as ao } from "../ManageIncome-1FRPmZFq.mjs";
|
|
57
57
|
import { LocalizationProvider as io, DatePicker as so, StaticDatePicker as co } from "@mui/x-date-pickers";
|
|
58
|
-
import { AdapterDateFns as
|
|
58
|
+
import { AdapterDateFns as Tt } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
59
59
|
import { R as lo } from "../RecurringSettings-z0XUW9qx.mjs";
|
|
60
60
|
import { LocalizationProvider as po } from "@mui/x-date-pickers/LocalizationProvider";
|
|
61
61
|
import { format as _o } from "date-fns/format";
|
|
@@ -126,7 +126,7 @@ const Mo = ({
|
|
|
126
126
|
}
|
|
127
127
|
) })
|
|
128
128
|
] });
|
|
129
|
-
},
|
|
129
|
+
}, At = ({
|
|
130
130
|
arcRadius: t = 100,
|
|
131
131
|
healthScore: o,
|
|
132
132
|
size: n = "L",
|
|
@@ -141,7 +141,7 @@ const Mo = ({
|
|
|
141
141
|
footerRightContent: h,
|
|
142
142
|
isFinacialStrengthGraph: y = !1
|
|
143
143
|
}) => {
|
|
144
|
-
const S = G(), v = -Math.PI / 1.35, f = Math.PI / 1.35, D = f - v, C = D / (i - s), g = (o - s) * C, b = v + g + 0.02, R = n !== "SM" ? 0.1 : 0.12, B = t, Y = t * (1 - R),
|
|
144
|
+
const S = G(), v = -Math.PI / 1.35, f = Math.PI / 1.35, D = f - v, C = D / (i - s), g = (o - s) * C, b = v + g + 0.02, R = n !== "SM" ? 0.1 : 0.12, B = t, Y = t * (1 - R), A = B * 2, $ = A / 2, z = A / 2, he = (Y + B) / 2, we = o !== 25 && o !== 50 && o !== 75 && o !== 100 ? 0 : 0.12, [Q, X] = bn(he, b, we), ue = o / 25, H = {
|
|
145
145
|
L: { markerSize: 12, healthScoreFontSize: 64 },
|
|
146
146
|
M: { markerSize: 8, healthScoreFontSize: 48 },
|
|
147
147
|
SM: { markerSize: 3, healthScoreFontSize: 14 }
|
|
@@ -156,8 +156,8 @@ const Mo = ({
|
|
|
156
156
|
p,
|
|
157
157
|
{
|
|
158
158
|
sx: {
|
|
159
|
-
width:
|
|
160
|
-
height: n === "SM" ?
|
|
159
|
+
width: A,
|
|
160
|
+
height: n === "SM" ? A - 7 : A,
|
|
161
161
|
position: "relative",
|
|
162
162
|
alignSelf: "center",
|
|
163
163
|
overflow: "visible"
|
|
@@ -166,7 +166,7 @@ const Mo = ({
|
|
|
166
166
|
/* @__PURE__ */ e(
|
|
167
167
|
nn,
|
|
168
168
|
{
|
|
169
|
-
height: n === "SM" ?
|
|
169
|
+
height: n === "SM" ? A - 7 : A,
|
|
170
170
|
hideLegend: !0,
|
|
171
171
|
margin: me,
|
|
172
172
|
series: [
|
|
@@ -206,7 +206,7 @@ const Mo = ({
|
|
|
206
206
|
stroke: "none"
|
|
207
207
|
}
|
|
208
208
|
},
|
|
209
|
-
width:
|
|
209
|
+
width: A
|
|
210
210
|
}
|
|
211
211
|
),
|
|
212
212
|
o >= s && o <= i && /* @__PURE__ */ e(
|
|
@@ -349,7 +349,7 @@ const Mo = ({
|
|
|
349
349
|
{ id: 4, label: "Group D", value: 25 }
|
|
350
350
|
], { finstrong: l } = x(), c = He(n, l);
|
|
351
351
|
return /* @__PURE__ */ e(
|
|
352
|
-
|
|
352
|
+
At,
|
|
353
353
|
{
|
|
354
354
|
arcRadius: t,
|
|
355
355
|
dialScoreData: i,
|
|
@@ -410,7 +410,7 @@ const Mo = ({
|
|
|
410
410
|
_.credit_score_status
|
|
411
411
|
);
|
|
412
412
|
return /* @__PURE__ */ e(
|
|
413
|
-
|
|
413
|
+
At,
|
|
414
414
|
{
|
|
415
415
|
arcRadius: t,
|
|
416
416
|
dialScoreData: d,
|
|
@@ -501,7 +501,7 @@ const Mo = ({
|
|
|
501
501
|
) : null;
|
|
502
502
|
};
|
|
503
503
|
var _e = /* @__PURE__ */ ((t) => (t.SpendLessThanYouMake = "spendLessThanYouMake", t.PayBillsOnTime = "payBillsOnTime", t.SaveEnoughToLiveOn = "saveEnoughToLiveOn", t.MaintainEmergencySavings = "maintainEmergencySavings", t.HaveManageableDebt = "haveManageableDebt", t.HaveAGoodCreditScore = "haveAGoodCreditScore", t))(_e || {});
|
|
504
|
-
const Io = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_animation_final.gif",
|
|
504
|
+
const Io = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_animation_final.gif", To = ({ isOpen: t, onClose: o }) => {
|
|
505
505
|
const { common: n, finstrong: r } = x(), { isMobile: s } = Ye(), { updateUser: i, user: l } = ee(), [c, d] = m.useState(l.credit_score || 0), _ = !isNaN(c), u = () => {
|
|
506
506
|
o(), setTimeout(() => d(l.credit_score || 0), 300);
|
|
507
507
|
}, h = () => {
|
|
@@ -547,7 +547,7 @@ const Io = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
547
547
|
)
|
|
548
548
|
}
|
|
549
549
|
);
|
|
550
|
-
}, Rt = w(
|
|
550
|
+
}, Rt = w(To), Ao = ({ chartFor: t }) => {
|
|
551
551
|
const o = G(), n = o.palette.mode === "dark", { monthlySummaries: r } = L(), { user: s } = ee(), { finstrong: i } = x(), [l, { width: c }] = St(), d = {
|
|
552
552
|
savingsOverTime: {
|
|
553
553
|
icon: /* @__PURE__ */ e(lt, { size: 48, sx: { marginBottom: 8 } }),
|
|
@@ -635,8 +635,8 @@ const Io = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
635
635
|
/* @__PURE__ */ e(M, { fontWeight: 600, variant: "body1", children: d.title }),
|
|
636
636
|
/* @__PURE__ */ e(M, { align: "center", variant: "subtitle1", children: d.description })
|
|
637
637
|
] }) });
|
|
638
|
-
}, qe = w(
|
|
639
|
-
const { healthScoreChangeReports: t } = L(), { finstrong: o } = x(), { user: n } = ee(), { availableWidth: r } =
|
|
638
|
+
}, qe = w(Ao), Oo = () => {
|
|
639
|
+
const { healthScoreChangeReports: t } = L(), { finstrong: o } = x(), { user: n } = ee(), { availableWidth: r } = Tn(), { isSmallMobile: s } = Ye(r), [i, l] = m.useState(!1), c = t.at(-1);
|
|
640
640
|
return /* @__PURE__ */ a(k, { children: [
|
|
641
641
|
/* @__PURE__ */ a(p, { sx: { gap: 28 }, children: [
|
|
642
642
|
/* @__PURE__ */ e(
|
|
@@ -1641,7 +1641,7 @@ const $o = ({ total: t }) => {
|
|
|
1641
1641
|
}
|
|
1642
1642
|
)
|
|
1643
1643
|
] });
|
|
1644
|
-
},
|
|
1644
|
+
}, Ae = (t, o = 1e3) => {
|
|
1645
1645
|
const n = Math.abs(t) >= o ? "0.[0]a" : "0";
|
|
1646
1646
|
return W(t, n);
|
|
1647
1647
|
}, Pt = ({
|
|
@@ -1661,14 +1661,14 @@ const $o = ({ total: t }) => {
|
|
|
1661
1661
|
spending_vs_income: {
|
|
1662
1662
|
main: g.standard_spend,
|
|
1663
1663
|
comparison: g.income,
|
|
1664
|
-
formattedMain:
|
|
1665
|
-
formattedComparison:
|
|
1664
|
+
formattedMain: Ae(g.standard_spend),
|
|
1665
|
+
formattedComparison: Ae(g.income)
|
|
1666
1666
|
},
|
|
1667
1667
|
debt_payment_vs_income: {
|
|
1668
1668
|
main: g.income,
|
|
1669
1669
|
comparison: g.debt_spend,
|
|
1670
|
-
formattedMain:
|
|
1671
|
-
formattedComparison:
|
|
1670
|
+
formattedMain: Ae(g.income),
|
|
1671
|
+
formattedComparison: Ae(g.debt_spend)
|
|
1672
1672
|
}
|
|
1673
1673
|
};
|
|
1674
1674
|
return {
|
|
@@ -2000,7 +2000,7 @@ const $o = ({ total: t }) => {
|
|
|
2000
2000
|
}
|
|
2001
2001
|
);
|
|
2002
2002
|
}, ur = w(hr), mr = () => {
|
|
2003
|
-
const { accounts: t } = Ce(), { categories: o, dateRangeCategoryTotals: n, loadDateRangeCategoryTotals: r } = je(), { monthlySummaries: s, handleFinstrongWidgetPrimaryCtaClick: i } = L(), { appDataStore: l } =
|
|
2003
|
+
const { accounts: t } = Ce(), { categories: o, dateRangeCategoryTotals: n, loadDateRangeCategoryTotals: r } = je(), { monthlySummaries: s, handleFinstrongWidgetPrimaryCtaClick: i } = L(), { appDataStore: l } = An(), { finstrong: c, goals: d, spending: _ } = x(), u = G(), [h, y] = m.useState("");
|
|
2004
2004
|
m.useEffect(() => {
|
|
2005
2005
|
r(
|
|
2006
2006
|
t,
|
|
@@ -2501,7 +2501,7 @@ const $o = ({ total: t }) => {
|
|
|
2501
2501
|
}
|
|
2502
2502
|
) })
|
|
2503
2503
|
] }) : /* @__PURE__ */ e(te, {});
|
|
2504
|
-
}, Ir = w(Dr),
|
|
2504
|
+
}, Ir = w(Dr), Tr = ({
|
|
2505
2505
|
firstDay: t,
|
|
2506
2506
|
frequency: o,
|
|
2507
2507
|
secondDay: n,
|
|
@@ -2549,11 +2549,11 @@ const $o = ({ total: t }) => {
|
|
|
2549
2549
|
}
|
|
2550
2550
|
) })
|
|
2551
2551
|
] });
|
|
2552
|
-
},
|
|
2552
|
+
}, Ar = w(Tr), Or = ({ selectedDate: t, setSelectedDate: o }) => {
|
|
2553
2553
|
const { finstrong: n } = x(), r = G(), s = (i) => {
|
|
2554
2554
|
o(Math.floor(new Date(i).getTime() / 1e3));
|
|
2555
2555
|
};
|
|
2556
|
-
return /* @__PURE__ */ e(k, { sx: { p: 24 }, children: /* @__PURE__ */ e(io, { dateAdapter:
|
|
2556
|
+
return /* @__PURE__ */ e(k, { sx: { p: 24 }, children: /* @__PURE__ */ e(io, { dateAdapter: Tt, children: /* @__PURE__ */ e(
|
|
2557
2557
|
so,
|
|
2558
2558
|
{
|
|
2559
2559
|
disableFuture: !0,
|
|
@@ -2635,12 +2635,12 @@ const $o = ({ total: t }) => {
|
|
|
2635
2635
|
}, Pr = ({ isOpen: t, onClose: o }) => {
|
|
2636
2636
|
const { visibleAccounts: n } = Ce(), { calculateHealthScore: r } = L(), { finstrong: s } = x(), { setSelectedAccounts: i } = U(), { addRepeatingTransaction: l, setDateRange: c } = Ke(), { filter: d, setFilter: _, transactions: u } = On(), { user: h, userProfile: y, updateUser: S, updateUserProfile: v } = ee(), [f, D] = m.useState(h.credit_score || 0), [C, g] = m.useState(
|
|
2637
2637
|
it
|
|
2638
|
-
), [b, R] = m.useState(1), [B, Y] = m.useState(wt.EveryMonth), [
|
|
2638
|
+
), [b, R] = m.useState(1), [B, Y] = m.useState(wt.EveryMonth), [A, $] = m.useState([]), [z, he] = m.useState(!1), [we, Q] = m.useState(!1), [X, ue] = m.useState(h.birthday), [H, me] = m.useState(15), [N, ie] = m.useState("");
|
|
2639
2639
|
m.useEffect(() => {
|
|
2640
2640
|
c({ start: Dt(rt()), end: It(rt()) });
|
|
2641
2641
|
}, []), m.useEffect(() => {
|
|
2642
2642
|
_({
|
|
2643
|
-
accounts: n.map((
|
|
2643
|
+
accounts: n.map((T) => T.guid),
|
|
2644
2644
|
dateRange: {
|
|
2645
2645
|
start: no(/* @__PURE__ */ new Date(), 90),
|
|
2646
2646
|
end: /* @__PURE__ */ new Date()
|
|
@@ -2649,7 +2649,7 @@ const $o = ({ total: t }) => {
|
|
|
2649
2649
|
}), i(n);
|
|
2650
2650
|
}, [n]);
|
|
2651
2651
|
const ge = m.useMemo(
|
|
2652
|
-
() => u.find((
|
|
2652
|
+
() => u.find((T) => T.guid === N),
|
|
2653
2653
|
[N, u]
|
|
2654
2654
|
), ne = m.useMemo(() => ({
|
|
2655
2655
|
[O.ConnectAccounts]: !0,
|
|
@@ -2657,13 +2657,13 @@ const $o = ({ total: t }) => {
|
|
|
2657
2657
|
[O.Birthday]: !!h.birthday || !!X,
|
|
2658
2658
|
[O.CreditScore]: !!h.credit_score || !!f
|
|
2659
2659
|
})[C.step], [f, C, X, N, h]), q = n.length > 0, $t = m.useMemo(() => {
|
|
2660
|
-
const { step:
|
|
2660
|
+
const { step: T } = C;
|
|
2661
2661
|
let F = 0;
|
|
2662
|
-
return
|
|
2663
|
-
}, [C.step, q,
|
|
2662
|
+
return T >= O.MonthlyIncome && q && F++, T >= O.Birthday && A.length && F++, T >= O.CreditScore && (h.birthday || h.credit_score) && F++, F;
|
|
2663
|
+
}, [C.step, q, A.length, h.birthday, h.credit_score]), zt = (T) => {
|
|
2664
2664
|
_({
|
|
2665
2665
|
...d,
|
|
2666
|
-
custom: (F) =>
|
|
2666
|
+
custom: (F) => T ? ao(F, T) : at(F)
|
|
2667
2667
|
});
|
|
2668
2668
|
}, Et = {
|
|
2669
2669
|
[O.ConnectAccounts]: {
|
|
@@ -2674,17 +2674,17 @@ const $o = ({ total: t }) => {
|
|
|
2674
2674
|
},
|
|
2675
2675
|
[O.MonthlyIncome]: {
|
|
2676
2676
|
detail: /* @__PURE__ */ e(
|
|
2677
|
-
|
|
2677
|
+
Ar,
|
|
2678
2678
|
{
|
|
2679
2679
|
firstDay: b,
|
|
2680
2680
|
frequency: B,
|
|
2681
|
-
incomeTransactions:
|
|
2681
|
+
incomeTransactions: A,
|
|
2682
2682
|
secondDay: H,
|
|
2683
|
-
setCurrentStep: (
|
|
2684
|
-
g(
|
|
2683
|
+
setCurrentStep: (T) => {
|
|
2684
|
+
g(T), $((F) => {
|
|
2685
2685
|
if (F.some((se) => se.guid === N)) return F.filter((se) => se.guid !== N);
|
|
2686
|
-
const
|
|
2687
|
-
return
|
|
2686
|
+
const Te = u.find((se) => se.guid === N);
|
|
2687
|
+
return Te ? [...F, { ...Te, firstDay: b, frequency: B, secondDay: H }] : F;
|
|
2688
2688
|
});
|
|
2689
2689
|
},
|
|
2690
2690
|
setFirstDay: R,
|
|
@@ -2698,8 +2698,8 @@ const $o = ({ total: t }) => {
|
|
|
2698
2698
|
ro,
|
|
2699
2699
|
{
|
|
2700
2700
|
onSearch: zt,
|
|
2701
|
-
onSelected: (
|
|
2702
|
-
g({ step: O.MonthlyIncome, type: "detail" }), ie(
|
|
2701
|
+
onSelected: (T) => {
|
|
2702
|
+
g({ step: O.MonthlyIncome, type: "detail" }), ie(T);
|
|
2703
2703
|
}
|
|
2704
2704
|
}
|
|
2705
2705
|
),
|
|
@@ -2722,7 +2722,7 @@ const $o = ({ total: t }) => {
|
|
|
2722
2722
|
}, Ue = () => {
|
|
2723
2723
|
g(it), he(!1), ie(""), o();
|
|
2724
2724
|
}, Qe = async () => {
|
|
2725
|
-
he(!0), await jt(
|
|
2725
|
+
he(!0), await jt(A), await r(), await v({ ...y, has_completed_finstrong_onboarding: !0 }), Ue();
|
|
2726
2726
|
}, Gt = () => {
|
|
2727
2727
|
if (C.step === O.CreditScore) {
|
|
2728
2728
|
Qe();
|
|
@@ -2730,8 +2730,8 @@ const $o = ({ total: t }) => {
|
|
|
2730
2730
|
}
|
|
2731
2731
|
g({ step: C.step + 1, type: "main" });
|
|
2732
2732
|
}, Ht = () => {
|
|
2733
|
-
const { step:
|
|
2734
|
-
switch (
|
|
2733
|
+
const { step: T } = C, F = T + 1;
|
|
2734
|
+
switch (T) {
|
|
2735
2735
|
case O.Birthday:
|
|
2736
2736
|
X && X !== h.birthday && S({ ...h, birthday: X });
|
|
2737
2737
|
break;
|
|
@@ -2739,7 +2739,7 @@ const $o = ({ total: t }) => {
|
|
|
2739
2739
|
f && f !== h.credit_score && S({ ...h, credit_score: f }), Qe();
|
|
2740
2740
|
return;
|
|
2741
2741
|
case O.MonthlyIncome:
|
|
2742
|
-
N &&
|
|
2742
|
+
N && A.findIndex(({ guid: be }) => be === N) === -1 && $((be) => [
|
|
2743
2743
|
...be,
|
|
2744
2744
|
{ ...ge, firstDay: b, frequency: B, secondDay: H }
|
|
2745
2745
|
]);
|
|
@@ -2753,21 +2753,21 @@ const $o = ({ total: t }) => {
|
|
|
2753
2753
|
}
|
|
2754
2754
|
F in O && g({ step: F, type: "main" });
|
|
2755
2755
|
}, Nt = () => {
|
|
2756
|
-
const { step:
|
|
2756
|
+
const { step: T, type: F } = C;
|
|
2757
2757
|
if (F === "detail") {
|
|
2758
|
-
g({ step:
|
|
2758
|
+
g({ step: T, type: "main" });
|
|
2759
2759
|
return;
|
|
2760
2760
|
}
|
|
2761
|
-
if (
|
|
2762
|
-
g({ step:
|
|
2761
|
+
if (T === O.Birthday && A.length) {
|
|
2762
|
+
g({ step: T - 1, type: "detail" });
|
|
2763
2763
|
return;
|
|
2764
2764
|
}
|
|
2765
|
-
|
|
2766
|
-
}, jt = async (
|
|
2767
|
-
for (const F of
|
|
2765
|
+
T > O.ConnectAccounts && g({ step: T - 1, type: "main" });
|
|
2766
|
+
}, jt = async (T) => {
|
|
2767
|
+
for (const F of T) {
|
|
2768
2768
|
const {
|
|
2769
2769
|
account_guid: be,
|
|
2770
|
-
amount:
|
|
2770
|
+
amount: Te,
|
|
2771
2771
|
date: se,
|
|
2772
2772
|
description: Xt,
|
|
2773
2773
|
feed_description: Yt,
|
|
@@ -2779,7 +2779,7 @@ const $o = ({ total: t }) => {
|
|
|
2779
2779
|
transaction_type: Jt
|
|
2780
2780
|
} = F, en = zn(Ze, to(se)), tn = {
|
|
2781
2781
|
account_guid: be,
|
|
2782
|
-
amount:
|
|
2782
|
+
amount: Te,
|
|
2783
2783
|
created_by: 0,
|
|
2784
2784
|
description: Zt || Xt || Yt,
|
|
2785
2785
|
merchant_guid: Qt,
|
|
@@ -2801,7 +2801,7 @@ const $o = ({ total: t }) => {
|
|
|
2801
2801
|
/* @__PURE__ */ e(
|
|
2802
2802
|
re,
|
|
2803
2803
|
{
|
|
2804
|
-
footerStyles: { px: 24, py: 16 },
|
|
2804
|
+
footerStyles: { borderTop: 1, borderColor: "divider", px: 24, py: 16 },
|
|
2805
2805
|
hasSecondaryAction: !Ie,
|
|
2806
2806
|
isOpen: t,
|
|
2807
2807
|
isPrimaryDisabled: !ne,
|
|
@@ -2855,7 +2855,9 @@ const $o = ({ total: t }) => {
|
|
|
2855
2855
|
{
|
|
2856
2856
|
sx: {
|
|
2857
2857
|
alignItems: "center",
|
|
2858
|
+
bgcolor: "background.default",
|
|
2858
2859
|
gap: 48,
|
|
2860
|
+
height: "calc(100dvh - 116px)",
|
|
2859
2861
|
pb: 24,
|
|
2860
2862
|
pt: 72,
|
|
2861
2863
|
px: 16
|
|
@@ -2881,6 +2883,7 @@ const $o = ({ total: t }) => {
|
|
|
2881
2883
|
return /* @__PURE__ */ e(
|
|
2882
2884
|
re,
|
|
2883
2885
|
{
|
|
2886
|
+
footerStyles: { borderTop: 1, borderColor: "divider", px: 24, py: 16 },
|
|
2884
2887
|
isOpen: t,
|
|
2885
2888
|
onClose: o,
|
|
2886
2889
|
onPrimaryAction: () => {
|
|
@@ -2888,7 +2891,7 @@ const $o = ({ total: t }) => {
|
|
|
2888
2891
|
},
|
|
2889
2892
|
onSecondaryAction: o,
|
|
2890
2893
|
title: n.date_of_birth,
|
|
2891
|
-
children: /* @__PURE__ */ e(p, { sx: { bgcolor: "background.default", height: "100%" }, children: /* @__PURE__ */ e(po, { dateAdapter:
|
|
2894
|
+
children: /* @__PURE__ */ e(p, { sx: { bgcolor: "background.default", height: "100%" }, children: /* @__PURE__ */ e(po, { dateAdapter: Tt, children: /* @__PURE__ */ e(
|
|
2892
2895
|
co,
|
|
2893
2896
|
{
|
|
2894
2897
|
disableFuture: !0,
|
|
@@ -3447,12 +3450,12 @@ const $o = ({ total: t }) => {
|
|
|
3447
3450
|
loadMonthlySummaries: v,
|
|
3448
3451
|
loadPeerScore: f,
|
|
3449
3452
|
peerScore: D
|
|
3450
|
-
} = _, { finstrong: C, connect: g } = x(), { isCopyLoaded: b, isInitialized: R } = U(), { loadRepeatingTransactions: B } = Ke(), { isSmallMobile: Y } = Ye(),
|
|
3453
|
+
} = _, { finstrong: C, connect: g } = x(), { isCopyLoaded: b, isInitialized: R } = U(), { loadRepeatingTransactions: B } = Ke(), { isSmallMobile: Y } = Ye(), A = G(), { userProfile: $ } = ee(), [z, he] = m.useState(!1), [we, Q] = m.useState(!1), [X, ue] = m.useState(!1), [H, me] = m.useState(!1);
|
|
3451
3454
|
if (wo({
|
|
3452
3455
|
widgetName: "FinstrongWidget",
|
|
3453
3456
|
isLoaded: z
|
|
3454
3457
|
}), m.useEffect(() => {
|
|
3455
|
-
c(
|
|
3458
|
+
c(A);
|
|
3456
3459
|
}, []), m.useEffect(() => {
|
|
3457
3460
|
n && (_.handleFinstrongWidgetPrimaryCtaClick = n);
|
|
3458
3461
|
}, [n, _]), m.useEffect(() => {
|
|
@@ -3525,9 +3528,9 @@ const $o = ({ total: t }) => {
|
|
|
3525
3528
|
ge ? /* @__PURE__ */ e(
|
|
3526
3529
|
Ve,
|
|
3527
3530
|
{
|
|
3528
|
-
axisColor:
|
|
3531
|
+
axisColor: A.palette.divider,
|
|
3529
3532
|
baseline: "min",
|
|
3530
|
-
colors: [
|
|
3533
|
+
colors: [A.palette.primary.main],
|
|
3531
3534
|
curveType: "natural",
|
|
3532
3535
|
customLegendBoxSx: { borderRadius: "2px" },
|
|
3533
3536
|
customLegendSx: { left: 0 },
|
|
@@ -3535,9 +3538,9 @@ const $o = ({ total: t }) => {
|
|
|
3535
3538
|
datasets: [u],
|
|
3536
3539
|
height: 300,
|
|
3537
3540
|
isGraphClippingXAxis: !0,
|
|
3538
|
-
labelBackgroundColor:
|
|
3539
|
-
labelFontColor:
|
|
3540
|
-
labelFontSize: typeof
|
|
3541
|
+
labelBackgroundColor: A.palette.border.dark,
|
|
3542
|
+
labelFontColor: A.palette.common.white,
|
|
3543
|
+
labelFontSize: typeof A.typography.XSmall?.fontSize == "string" ? parseFloat(A.typography.XSmall.fontSize) : A.typography.XSmall?.fontSize,
|
|
3541
3544
|
labels: [C.key_indicators_label],
|
|
3542
3545
|
margin: { right: 12, left: -37 },
|
|
3543
3546
|
peerAverage: ie,
|
|
@@ -3577,7 +3580,7 @@ const $o = ({ total: t }) => {
|
|
|
3577
3580
|
}, mi = w(Qr);
|
|
3578
3581
|
export {
|
|
3579
3582
|
Do as CreditScoreGraph,
|
|
3580
|
-
|
|
3583
|
+
At as DialScoreCard,
|
|
3581
3584
|
Ot as FinancialStrengthGraph,
|
|
3582
3585
|
bi as FinstrongApi,
|
|
3583
3586
|
fi as FinstrongStore,
|
package/dist/goals/index.es.js
CHANGED
|
@@ -24,18 +24,18 @@ import { S as Qe } from "../StatusBar-BK_uYHAB.mjs";
|
|
|
24
24
|
import E from "@mui/material/Divider";
|
|
25
25
|
import B from "@mui/material/List";
|
|
26
26
|
import { L as ee } from "../ListItemAction-CU42h39I.mjs";
|
|
27
|
-
import { C as
|
|
27
|
+
import { C as we } from "../CurrencyInput-itK0R3wV.mjs";
|
|
28
28
|
import { fromUnixTime as Q } from "date-fns/fromUnixTime";
|
|
29
|
-
import
|
|
29
|
+
import w from "@mui/material/ListItem";
|
|
30
30
|
import M from "@mui/material/ListItemButton";
|
|
31
|
-
import
|
|
31
|
+
import k from "@mui/material/ListItemText";
|
|
32
32
|
import { DataGridPro as et } from "@mui/x-data-grid-pro";
|
|
33
33
|
import { u as tt, A as U, W as nt } from "../WidgetContainer-COyiIVSd.mjs";
|
|
34
34
|
import { D as Y } from "../Drawer-DV4NTsFg.mjs";
|
|
35
35
|
import { b as L } from "../Localization-2MODESHW.mjs";
|
|
36
36
|
import { f as ae, D as re, a as ot } from "../Dialog-B4PI-_bL.mjs";
|
|
37
37
|
import V from "@mui/material/ListItemAvatar";
|
|
38
|
-
import { g as
|
|
38
|
+
import { g as ke, A as fe } from "../ConnectDrawer-CPvaP8lk.mjs";
|
|
39
39
|
import at from "@mui/material/Collapse";
|
|
40
40
|
import rt from "@mui/material/ListItemIcon";
|
|
41
41
|
import it from "@mui/material/Checkbox";
|
|
@@ -79,26 +79,38 @@ const Ct = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
79
79
|
}
|
|
80
80
|
];
|
|
81
81
|
let y = /* @__PURE__ */ e(Re, {});
|
|
82
|
-
return t.track_type === m.DEBT_TRACK ? y = /* @__PURE__ */ e(Ee, {}) : t.track_type === m.RETIREMENT_TRACK && (y = /* @__PURE__ */ e(ve, {})), /* @__PURE__ */ e(
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
82
|
+
return t.track_type === m.DEBT_TRACK ? y = /* @__PURE__ */ e(Ee, {}) : t.track_type === m.RETIREMENT_TRACK && (y = /* @__PURE__ */ e(ve, {})), /* @__PURE__ */ e(
|
|
83
|
+
Te,
|
|
84
|
+
{
|
|
85
|
+
elevation: 2,
|
|
86
|
+
sx: {
|
|
87
|
+
"&:focus-within": {
|
|
88
|
+
outline: "2px solid",
|
|
89
|
+
outlineColor: "primary.main"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
children: /* @__PURE__ */ r(Ce, { disabled: !s, onClick: s, children: [
|
|
93
|
+
/* @__PURE__ */ e(
|
|
94
|
+
Xe,
|
|
95
|
+
{
|
|
96
|
+
avatar: /* @__PURE__ */ e(oe, { sx: { bgcolor: g, color: i, height: 48, width: 48 }, variant: "rounded", children: y }),
|
|
97
|
+
subheader: /* @__PURE__ */ e(T, { variant: n || _ ? "H3" : "H2", children: `${x(t.current_amount, _ ? "0,0" : "0,0.00")} / ${Ct(
|
|
98
|
+
d,
|
|
99
|
+
_
|
|
100
|
+
)}` }),
|
|
101
|
+
title: /* @__PURE__ */ e(_e, { color: "text.secondary", fontWeight: 400, variant: "Body", children: t.name })
|
|
102
|
+
}
|
|
103
|
+
),
|
|
104
|
+
/* @__PURE__ */ e(Se, { sx: { pt: 0 }, children: /* @__PURE__ */ r(b, { gap: 6, children: [
|
|
105
|
+
/* @__PURE__ */ e(Qe, { data: h, height: 24 }),
|
|
106
|
+
/* @__PURE__ */ r(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
107
|
+
/* @__PURE__ */ e(T, { color: "text.secondary", variant: "XSmall", children: c }),
|
|
108
|
+
t.projected_to_complete_at && /* @__PURE__ */ e(T, { color: "text.secondary", variant: "XSmall", children: o })
|
|
109
|
+
] })
|
|
110
|
+
] }) })
|
|
99
111
|
] })
|
|
100
|
-
|
|
101
|
-
|
|
112
|
+
}
|
|
113
|
+
);
|
|
102
114
|
}
|
|
103
115
|
), St = K(({ trackType: t }) => {
|
|
104
116
|
const { goals: n } = R(), { setAlert: s, monthlyCashFlowProfile: l, updateMonthlyCashFlowProfile: p } = G(), a = A.useMemo(() => {
|
|
@@ -120,7 +132,7 @@ const Ct = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
120
132
|
primaryText: n.contribution_label,
|
|
121
133
|
secondaryText: x(a, "0,0.00"),
|
|
122
134
|
children: /* @__PURE__ */ e(
|
|
123
|
-
|
|
135
|
+
we,
|
|
124
136
|
{
|
|
125
137
|
amount: _,
|
|
126
138
|
autoFocus: !0,
|
|
@@ -189,7 +201,7 @@ const Ct = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
189
201
|
await l(u), p(n.alert_goals_reordered), i(!1);
|
|
190
202
|
};
|
|
191
203
|
return /* @__PURE__ */ r(b, { children: [
|
|
192
|
-
/* @__PURE__ */ e(
|
|
204
|
+
/* @__PURE__ */ e(w, { children: /* @__PURE__ */ e(M, { onClick: () => i(!0), children: /* @__PURE__ */ e(k, { children: /* @__PURE__ */ r(
|
|
193
205
|
b,
|
|
194
206
|
{
|
|
195
207
|
alignItems: "center",
|
|
@@ -241,7 +253,7 @@ const Ct = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
241
253
|
] });
|
|
242
254
|
}, Et = ({ goal: t, index: n }) => {
|
|
243
255
|
const { goals: s } = R(), { percentage: l } = ue(s, t), p = t.goal_type === me.KEEP_BALANCE_BELOW || t.has_been_spent ? s.goal_completed : L(s.goal_percentage_reached, `${l * 100}`);
|
|
244
|
-
return /* @__PURE__ */ e(
|
|
256
|
+
return /* @__PURE__ */ e(w, { children: /* @__PURE__ */ r(M, { children: [
|
|
245
257
|
t.track_type !== m.RETIREMENT_TRACK && /* @__PURE__ */ e(
|
|
246
258
|
V,
|
|
247
259
|
{
|
|
@@ -254,7 +266,7 @@ const Ct = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
254
266
|
children: /* @__PURE__ */ e(oe, { sx: { bgcolor: "text.primary", height: "16px", width: "16px" }, children: /* @__PURE__ */ e(T, { bold: !0, variant: "XSmall", children: n + 1 }) })
|
|
255
267
|
}
|
|
256
268
|
),
|
|
257
|
-
/* @__PURE__ */ e(
|
|
269
|
+
/* @__PURE__ */ e(k, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ r(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
258
270
|
/* @__PURE__ */ r(b, { children: [
|
|
259
271
|
/* @__PURE__ */ e(T, { bold: !0, variant: "Body", children: t.name }),
|
|
260
272
|
/* @__PURE__ */ e(T, { variant: "XSmall", children: t.is_complete ? p : L(
|
|
@@ -270,9 +282,9 @@ const Ct = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
270
282
|
] }) });
|
|
271
283
|
}, vt = ({ goal: t }) => {
|
|
272
284
|
const { goals: n } = R();
|
|
273
|
-
return /* @__PURE__ */ e(
|
|
285
|
+
return /* @__PURE__ */ e(w, { children: /* @__PURE__ */ r(M, { children: [
|
|
274
286
|
/* @__PURE__ */ e(V, { sx: { alignItems: "center", display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(Ye, { color: "success", filled: !0, size: 20 }) }),
|
|
275
|
-
/* @__PURE__ */ e(
|
|
287
|
+
/* @__PURE__ */ e(k, { primaryTypographyProps: { variant: "Body" }, children: /* @__PURE__ */ r(b, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
276
288
|
/* @__PURE__ */ r(b, { children: [
|
|
277
289
|
/* @__PURE__ */ e(T, { bold: !0, variant: "Body", children: t.name }),
|
|
278
290
|
/* @__PURE__ */ e(T, { variant: "XSmall", children: L(
|
|
@@ -413,7 +425,7 @@ const Ct = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
413
425
|
}), Gt = ({ goalType: t, onClick: n }) => {
|
|
414
426
|
const { goals: s } = R(), { bgcolor: l, icon: p, label: a, description: _, subTypes: g, type: i } = t, [u, c] = A.useState(!1), o = g.length > 0;
|
|
415
427
|
return /* @__PURE__ */ e(b, { children: /* @__PURE__ */ r(B, { sx: { bgcolor: "background.paper" }, children: [
|
|
416
|
-
/* @__PURE__ */ e(
|
|
428
|
+
/* @__PURE__ */ e(w, { children: /* @__PURE__ */ r(
|
|
417
429
|
M,
|
|
418
430
|
{
|
|
419
431
|
onClick: o ? () => c(!u) : () => n(
|
|
@@ -423,17 +435,17 @@ const Ct = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
423
435
|
),
|
|
424
436
|
children: [
|
|
425
437
|
/* @__PURE__ */ e(V, { children: /* @__PURE__ */ e(oe, { sx: { bgcolor: l }, variant: "rounded", children: /* @__PURE__ */ e(ye, { name: p, sx: { color: "grey.900" } }) }) }),
|
|
426
|
-
/* @__PURE__ */ e(
|
|
438
|
+
/* @__PURE__ */ e(k, { primary: a, secondary: _, sx: { mr: 24 } }),
|
|
427
439
|
!o && /* @__PURE__ */ e(O, {}),
|
|
428
440
|
o && (u ? /* @__PURE__ */ e(Ze, {}) : /* @__PURE__ */ e(qe, {}))
|
|
429
441
|
]
|
|
430
442
|
}
|
|
431
443
|
) }),
|
|
432
444
|
/* @__PURE__ */ e(E, { variant: "inset" }),
|
|
433
|
-
o && /* @__PURE__ */ e(at, { in: u, children: /* @__PURE__ */ e(B, { sx: { bgcolor: "background.default" }, children: g.map((d, h) => /* @__PURE__ */ e(
|
|
445
|
+
o && /* @__PURE__ */ e(at, { in: u, children: /* @__PURE__ */ e(B, { sx: { bgcolor: "background.default" }, children: g.map((d, h) => /* @__PURE__ */ e(w, { sx: { pl: 48 }, children: /* @__PURE__ */ r(M, { onClick: () => n(d.label, d.metaType, i), children: [
|
|
434
446
|
/* @__PURE__ */ e(rt, { sx: { mr: 8 }, children: /* @__PURE__ */ e(ye, { name: d.icon }) }),
|
|
435
447
|
/* @__PURE__ */ e(
|
|
436
|
-
|
|
448
|
+
k,
|
|
437
449
|
{
|
|
438
450
|
primary: d.label,
|
|
439
451
|
primaryTypographyProps: { variant: "Body" }
|
|
@@ -466,7 +478,7 @@ const Ct = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
466
478
|
/* @__PURE__ */ r(B, { sx: { bgcolor: "background.white" }, children: [
|
|
467
479
|
/* @__PURE__ */ e(E, { variant: "fullWidth" }),
|
|
468
480
|
t.map((o, d) => /* @__PURE__ */ r(A.Fragment, { children: [
|
|
469
|
-
/* @__PURE__ */ e(
|
|
481
|
+
/* @__PURE__ */ e(w, { children: /* @__PURE__ */ r(M, { onClick: () => c(o), children: [
|
|
470
482
|
/* @__PURE__ */ e(V, { children: /* @__PURE__ */ e(
|
|
471
483
|
ne,
|
|
472
484
|
{
|
|
@@ -475,9 +487,9 @@ const Ct = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
475
487
|
}
|
|
476
488
|
) }),
|
|
477
489
|
/* @__PURE__ */ e(
|
|
478
|
-
|
|
490
|
+
k,
|
|
479
491
|
{
|
|
480
|
-
primary:
|
|
492
|
+
primary: ke(o, {
|
|
481
493
|
allowNickname: g?.show_account_nicknames_in_master
|
|
482
494
|
}),
|
|
483
495
|
secondary: x(o.balance || 0, "0,0.00")
|
|
@@ -522,7 +534,7 @@ const Ct = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
522
534
|
interest_rate: y.interest_rate || 0,
|
|
523
535
|
meta_type: f,
|
|
524
536
|
monthly_payment: y.minimum_payment || 0,
|
|
525
|
-
name:
|
|
537
|
+
name: ke(y, {
|
|
526
538
|
allowNickname: _?.show_account_nicknames_in_master
|
|
527
539
|
}),
|
|
528
540
|
track_type: m.DEBT_TRACK
|
|
@@ -545,7 +557,7 @@ const Ct = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
545
557
|
] });
|
|
546
558
|
}, Oe = ({ account: t }) => {
|
|
547
559
|
const n = st(t);
|
|
548
|
-
return /* @__PURE__ */ r(
|
|
560
|
+
return /* @__PURE__ */ r(w, { sx: { bgcolor: "background.paper", p: 24 }, children: [
|
|
549
561
|
/* @__PURE__ */ e(V, { children: /* @__PURE__ */ e(
|
|
550
562
|
ne,
|
|
551
563
|
{
|
|
@@ -554,7 +566,7 @@ const Ct = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
554
566
|
}
|
|
555
567
|
) }),
|
|
556
568
|
/* @__PURE__ */ e(
|
|
557
|
-
|
|
569
|
+
k,
|
|
558
570
|
{
|
|
559
571
|
primary: n,
|
|
560
572
|
secondary: x(t.balance || 0, "0,0.00")
|
|
@@ -582,7 +594,7 @@ const Ct = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
582
594
|
secondaryText: x(t.amount, "0,0"),
|
|
583
595
|
zeroStateText: g && t.amount === 0 ? n.add_amount : void 0,
|
|
584
596
|
children: /* @__PURE__ */ e(
|
|
585
|
-
|
|
597
|
+
we,
|
|
586
598
|
{
|
|
587
599
|
amount: a,
|
|
588
600
|
autoFocus: !0,
|
|
@@ -595,14 +607,14 @@ const Ct = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
595
607
|
)
|
|
596
608
|
}
|
|
597
609
|
);
|
|
598
|
-
}),
|
|
610
|
+
}), wt = ({ goal: t }) => {
|
|
599
611
|
const { visibleCheckingAccounts: n, visibleSavingsAccounts: s } = j(), { accounts: l, goals: p } = R(), { setAlert: a, setSelectedGoal: _, updateGoal: g } = G(), i = !t.guid, [u, c] = A.useState(!1), o = async ({ balance: d, guid: h }) => {
|
|
600
612
|
const y = { ...t, account_guid: h, current_amount: d || 0 };
|
|
601
613
|
i ? _(y) : (await g(y), a(p.alert_account_changed)), c(!1);
|
|
602
614
|
};
|
|
603
615
|
return /* @__PURE__ */ r(b, { children: [
|
|
604
|
-
i && !t.account_guid ? /* @__PURE__ */ e(
|
|
605
|
-
/* @__PURE__ */ e(
|
|
616
|
+
i && !t.account_guid ? /* @__PURE__ */ e(w, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ r(M, { onClick: () => c(!0), children: [
|
|
617
|
+
/* @__PURE__ */ e(k, { children: /* @__PURE__ */ r(b, { alignItems: "center", color: "primary.main", direction: "row", gap: 8, children: [
|
|
606
618
|
/* @__PURE__ */ e(xe, { filled: !0 }),
|
|
607
619
|
p.details_add_account
|
|
608
620
|
] }) }),
|
|
@@ -621,7 +633,7 @@ const Ct = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
621
633
|
] }),
|
|
622
634
|
/* @__PURE__ */ e(Y, { isOpen: u, onClose: () => c(!1), title: p.details_change_account, children: /* @__PURE__ */ r(b, { children: [
|
|
623
635
|
n.length > 0 && /* @__PURE__ */ e(T, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: l.account_types[1] }),
|
|
624
|
-
/* @__PURE__ */ e(B, { sx: { bgcolor: "background.paper" }, children: n.map((d) => /* @__PURE__ */ e(
|
|
636
|
+
/* @__PURE__ */ e(B, { sx: { bgcolor: "background.paper" }, children: n.map((d) => /* @__PURE__ */ e(w, { children: /* @__PURE__ */ r(M, { onClick: () => o(d), children: [
|
|
625
637
|
/* @__PURE__ */ e(V, { children: /* @__PURE__ */ e(
|
|
626
638
|
ne,
|
|
627
639
|
{
|
|
@@ -630,7 +642,7 @@ const Ct = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
630
642
|
}
|
|
631
643
|
) }),
|
|
632
644
|
/* @__PURE__ */ e(
|
|
633
|
-
|
|
645
|
+
k,
|
|
634
646
|
{
|
|
635
647
|
primary: d?.name || d?.feed_name,
|
|
636
648
|
secondary: x(d?.balance || 0, "0,0.00")
|
|
@@ -639,7 +651,7 @@ const Ct = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
639
651
|
/* @__PURE__ */ e(O, {})
|
|
640
652
|
] }) }, d.guid)) }),
|
|
641
653
|
s.length > 0 && /* @__PURE__ */ e(T, { bold: !0, sx: { mb: 4, ml: 24, mt: 12 }, variant: "XSmall", children: l.account_types[2] }),
|
|
642
|
-
/* @__PURE__ */ e(B, { sx: { bgcolor: "background.paper" }, children: s.map((d) => /* @__PURE__ */ e(
|
|
654
|
+
/* @__PURE__ */ e(B, { sx: { bgcolor: "background.paper" }, children: s.map((d) => /* @__PURE__ */ e(w, { children: /* @__PURE__ */ r(M, { onClick: () => o(d), children: [
|
|
643
655
|
/* @__PURE__ */ e(V, { children: /* @__PURE__ */ e(
|
|
644
656
|
ne,
|
|
645
657
|
{
|
|
@@ -648,7 +660,7 @@ const Ct = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
648
660
|
}
|
|
649
661
|
) }),
|
|
650
662
|
/* @__PURE__ */ e(
|
|
651
|
-
|
|
663
|
+
k,
|
|
652
664
|
{
|
|
653
665
|
primary: d?.name || d?.feed_name,
|
|
654
666
|
secondary: x(d?.balance || 0, "0,0.00")
|
|
@@ -666,7 +678,7 @@ const Ct = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
666
678
|
)
|
|
667
679
|
] }) })
|
|
668
680
|
] });
|
|
669
|
-
},
|
|
681
|
+
}, kt = K(({ goal: t }) => {
|
|
670
682
|
const { goals: n } = R(), { setAlert: s, setSelectedGoal: l, updateGoal: p } = G(), [a, _] = A.useState(t.name), g = !t.guid, i = t.track_type === m.SAVINGS_TRACK && t.has_been_spent || t.track_type !== m.SAVINGS_TRACK && t.is_complete, u = async () => {
|
|
671
683
|
const o = { ...t, name: a };
|
|
672
684
|
t.name = a, g ? l(o) : (await p(o), s(n.alert_goal_updated_name));
|
|
@@ -790,8 +802,8 @@ const Ct = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
790
802
|
/* @__PURE__ */ e(Oe, { account: S }),
|
|
791
803
|
/* @__PURE__ */ e(E, {})
|
|
792
804
|
] }, S.guid)),
|
|
793
|
-
/* @__PURE__ */ e(
|
|
794
|
-
/* @__PURE__ */ e(
|
|
805
|
+
/* @__PURE__ */ e(w, { disableGutters: !0, disablePadding: !0, sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ r(M, { onClick: () => o(!0), children: [
|
|
806
|
+
/* @__PURE__ */ e(k, { children: /* @__PURE__ */ r(b, { alignItems: "center", color: "primary.main", direction: "row", gap: 8, children: [
|
|
795
807
|
/* @__PURE__ */ e(xe, { filled: !0 }),
|
|
796
808
|
n.details_add_account
|
|
797
809
|
] }) }),
|
|
@@ -821,7 +833,7 @@ const Ct = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
821
833
|
/* @__PURE__ */ e(T, { color: "text.secondary", sx: { mb: 4, mt: 24 }, variant: "XSmall", children: n.details_title })
|
|
822
834
|
] }),
|
|
823
835
|
/* @__PURE__ */ r(B, { sx: { bgcolor: "background.paper" }, children: [
|
|
824
|
-
/* @__PURE__ */ e(
|
|
836
|
+
/* @__PURE__ */ e(kt, { goal: t }),
|
|
825
837
|
/* @__PURE__ */ e(E, { sx: { ml: 24 } }),
|
|
826
838
|
(p === m.SAVINGS_TRACK || p === m.RETIREMENT_TRACK) && /* @__PURE__ */ r(X, { children: [
|
|
827
839
|
/* @__PURE__ */ e(Nt, { goal: t }),
|
|
@@ -851,7 +863,7 @@ const Ct = (t, n) => n ? x(t, t < 1e3 ? "0" : "0.00a").replace(
|
|
|
851
863
|
/* @__PURE__ */ e(Mt, { goal: t }),
|
|
852
864
|
/* @__PURE__ */ e(E, {})
|
|
853
865
|
] }),
|
|
854
|
-
t.track_type === m.SAVINGS_TRACK && !t.is_complete && /* @__PURE__ */ e(
|
|
866
|
+
t.track_type === m.SAVINGS_TRACK && !t.is_complete && /* @__PURE__ */ e(wt, { goal: t })
|
|
855
867
|
] });
|
|
856
868
|
}), Bt = K(({ onClose: t }) => {
|
|
857
869
|
const { visibleRetirementAccounts: n } = j(), { goals: s, common: l } = R(), {
|