@mx-cartographer/experiences 7.6.16 → 7.6.18
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 +108 -108
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## [7.6.18] - 01-21-2026
|
|
2
|
+
|
|
3
|
+
- **FIXED** - Pay Bills On Time Drawer Loading Issue - Fees Transactions List | Bug Fixed
|
|
4
|
+
|
|
5
|
+
## [7.6.17] - 01-21-2026
|
|
6
|
+
|
|
7
|
+
- **FIXED** - Line Graph | Curve Type Bug Fixed
|
|
8
|
+
|
|
1
9
|
## [7.6.16] - 01-19-2026
|
|
2
10
|
|
|
3
11
|
- **UPDATED** - `MicroInsights` BeatIcons Updated
|
|
@@ -3,16 +3,16 @@ import M from "@mui/material/Box";
|
|
|
3
3
|
import p from "@mui/material/Stack";
|
|
4
4
|
import { useTheme as E, alpha as se } from "@mui/material/styles";
|
|
5
5
|
import { PieChart as en } from "@mui/x-charts/PieChart";
|
|
6
|
-
import { P as D, H3 as X, Text as I, InstitutionLogo as st, H2 as
|
|
7
|
-
import { TrendingUp as on, ArrowRightAlt as rn, TrendingDown as an, AccountBalance as ct, ChevronRight as
|
|
6
|
+
import { P as D, H3 as X, Text as I, InstitutionLogo as st, H2 as Le, MerchantLogo as tn, Icon as nn } from "@mxenabled/mxui";
|
|
7
|
+
import { TrendingUp as on, ArrowRightAlt as rn, TrendingDown as an, AccountBalance as ct, ChevronRight as J, CheckCircle as sn, Cancel as cn, CreditCard as lt, Savings as ln, ContentCopy as dn, MultilineChart as pn, Add as dt, Cardiology as _n, Payments as un, CalendarMonth as hn, ExpandMore as mn } from "@mxenabled/mx-icons";
|
|
8
8
|
import { g as gn, a as yn, r as Ze, b as bn, c as Ge, d as pt, C as ke, e as Me, f as fn, h as xn, i as Sn, j as _t, k as Je, l as Cn, m as et, n as vn, o as ut, p as wn, q as ht, s as Oe, t as mt, u as kn, v as gt, w as Mn, A as ne, x as Dn, P as In } from "../FinstrongStore-bEn_im_e.mjs";
|
|
9
9
|
import { y as gi, F as yi } from "../FinstrongStore-bEn_im_e.mjs";
|
|
10
10
|
import * as tt from "d3";
|
|
11
11
|
import { observer as v } from "mobx-react-lite";
|
|
12
|
-
import { u as x, b as U, a as He, o as
|
|
13
|
-
import { L as
|
|
12
|
+
import { u as x, b as U, a as He, o as ee, z as F, p as An, d as Se, m as Ne, f as Tn, j as je, h as On, i as Rn } from "../hooks-ZMp65DFz.mjs";
|
|
13
|
+
import { L as Q } from "../Loader-DUaFpDGv.mjs";
|
|
14
14
|
import m from "react";
|
|
15
|
-
import
|
|
15
|
+
import B from "@mui/material/Button";
|
|
16
16
|
import Y from "@mui/material/Card";
|
|
17
17
|
import { L as Ke } from "../LineChart-BF4QA-Lx.mjs";
|
|
18
18
|
import { C as yt } from "../ConnectionsDrawer-XlO1q6PK.mjs";
|
|
@@ -21,7 +21,7 @@ import ce from "@mui/material/Tab";
|
|
|
21
21
|
import Ve from "@mui/material/Tabs";
|
|
22
22
|
import Re from "@mui/material/TextField";
|
|
23
23
|
import { u as Xe } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
24
|
-
import { a as Fn, f as
|
|
24
|
+
import { a as Fn, f as Ln, D as Bn } from "../Dialog-B4PI-_bL.mjs";
|
|
25
25
|
import { u as ft } from "../useDimensions-27p2evRx.mjs";
|
|
26
26
|
import { E as Fe } from "../EmptyState-DoxNUae-.mjs";
|
|
27
27
|
import Pn from "@mui/material/Chip";
|
|
@@ -121,7 +121,7 @@ const ko = ({
|
|
|
121
121
|
x2: a - c * 0.8 * Math.cos(Math.PI / 1.35),
|
|
122
122
|
y1: l + c * 0.8 * Math.sin(Math.PI / 1.35),
|
|
123
123
|
y2: l - c * 0.8 * Math.sin(Math.PI / 1.35),
|
|
124
|
-
children: C.map((
|
|
124
|
+
children: C.map((L, T) => /* @__PURE__ */ e("stop", { offset: L.offset, stopColor: L.color }, T))
|
|
125
125
|
}
|
|
126
126
|
) })
|
|
127
127
|
] });
|
|
@@ -140,7 +140,7 @@ const ko = ({
|
|
|
140
140
|
footerRightContent: u,
|
|
141
141
|
isFinacialStrengthGraph: b = !1
|
|
142
142
|
}) => {
|
|
143
|
-
const S = E(), C = -Math.PI / 1.35, f = Math.PI / 1.35, w = f - C, k = w / (a - s), g = (o - s) * k, y = C + g + 0.02, $ = n !== "SM" ? 0.1 : 0.12,
|
|
143
|
+
const S = E(), C = -Math.PI / 1.35, f = Math.PI / 1.35, w = f - C, k = w / (a - s), g = (o - s) * k, y = C + g + 0.02, $ = n !== "SM" ? 0.1 : 0.12, L = t, T = t * (1 - $), P = L * 2, z = P / 2, G = P / 2, _e = (T + L) / 2, ue = o !== 25 && o !== 50 && o !== 75 && o !== 100 ? 0 : 0.12, [te, j] = bn(_e, y, ue), ve = o / 25, H = {
|
|
144
144
|
L: { markerSize: 12, healthScoreFontSize: 64 },
|
|
145
145
|
M: { markerSize: 8, healthScoreFontSize: 48 },
|
|
146
146
|
SM: { markerSize: 3, healthScoreFontSize: 14 }
|
|
@@ -172,7 +172,7 @@ const ko = ({
|
|
|
172
172
|
{
|
|
173
173
|
data: r,
|
|
174
174
|
innerRadius: T,
|
|
175
|
-
outerRadius:
|
|
175
|
+
outerRadius: L,
|
|
176
176
|
startAngle: Math.round(Ze(C)),
|
|
177
177
|
// Use Math.degrees to convert
|
|
178
178
|
endAngle: Math.round(Ze(f))
|
|
@@ -193,7 +193,7 @@ const ko = ({
|
|
|
193
193
|
dialScoreData: r,
|
|
194
194
|
innerArcRadius: T,
|
|
195
195
|
isFinacialStrengthGraph: b,
|
|
196
|
-
outterArcRadius:
|
|
196
|
+
outterArcRadius: L,
|
|
197
197
|
progressEndAngle: y,
|
|
198
198
|
totalAngularSpan: w,
|
|
199
199
|
unitsPerSegment: ve
|
|
@@ -402,7 +402,7 @@ const ko = ({
|
|
|
402
402
|
color: c ? ke.EXCEPTIONAL : Me.EXCEPTIONAL
|
|
403
403
|
}
|
|
404
404
|
], { finstrong: _ } = x(), { isCopyLoaded: h } = U();
|
|
405
|
-
if (!h) return /* @__PURE__ */ e(
|
|
405
|
+
if (!h) return /* @__PURE__ */ e(Q, {});
|
|
406
406
|
const { status: u, color: b = "none" } = pt(
|
|
407
407
|
n,
|
|
408
408
|
c,
|
|
@@ -425,7 +425,7 @@ const ko = ({
|
|
|
425
425
|
}
|
|
426
426
|
);
|
|
427
427
|
}
|
|
428
|
-
),
|
|
428
|
+
), Be = ({
|
|
429
429
|
drawerType: t,
|
|
430
430
|
isDashboard: o = !1,
|
|
431
431
|
hasIcon: n = !0,
|
|
@@ -470,9 +470,9 @@ const ko = ({
|
|
|
470
470
|
}
|
|
471
471
|
),
|
|
472
472
|
/* @__PURE__ */ e(
|
|
473
|
-
|
|
473
|
+
B,
|
|
474
474
|
{
|
|
475
|
-
endIcon: /* @__PURE__ */ e(
|
|
475
|
+
endIcon: /* @__PURE__ */ e(J, {}),
|
|
476
476
|
onClick: () => _(!0),
|
|
477
477
|
size: "small",
|
|
478
478
|
sx: { p: 0, mt: 8, "&:hover": { backgroundColor: "transparent" } },
|
|
@@ -501,7 +501,7 @@ const ko = ({
|
|
|
501
501
|
};
|
|
502
502
|
var pe = /* @__PURE__ */ ((t) => (t.SpendLessThanYouMake = "spendLessThanYouMake", t.PayBillsOnTime = "payBillsOnTime", t.SaveEnoughToLiveOn = "saveEnoughToLiveOn", t.MaintainEmergencySavings = "maintainEmergencySavings", t.HaveManageableDebt = "haveManageableDebt", t.HaveAGoodCreditScore = "haveAGoodCreditScore", t))(pe || {});
|
|
503
503
|
const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_animation_final.gif", Io = ({ isOpen: t, onClose: o }) => {
|
|
504
|
-
const { common: n, finstrong: r } = x(), { isMobile: s } = Xe(), { updateUser: a, user: l } =
|
|
504
|
+
const { common: n, finstrong: r } = x(), { isMobile: s } = Xe(), { updateUser: a, user: l } = ee(), [c, d] = m.useState(l.credit_score || 0), _ = !isNaN(c), h = () => {
|
|
505
505
|
o(), setTimeout(() => d(l.credit_score || 0), 300);
|
|
506
506
|
}, u = () => {
|
|
507
507
|
!c || c === l.credit_score || a({ ...l, credit_score: c });
|
|
@@ -547,7 +547,7 @@ const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
547
547
|
}
|
|
548
548
|
);
|
|
549
549
|
}, Tt = v(Io), Ao = ({ chartFor: t }) => {
|
|
550
|
-
const o = E(), n = o.palette.mode === "dark", { monthlySummaries: r } = F(), { user: s } =
|
|
550
|
+
const o = E(), n = o.palette.mode === "dark", { monthlySummaries: r } = F(), { user: s } = ee(), { finstrong: a } = x(), [l, { width: c }] = ft(), d = {
|
|
551
551
|
savingsOverTime: {
|
|
552
552
|
icon: "trending_up",
|
|
553
553
|
title: a.key_indicators_save.zero_state_title,
|
|
@@ -586,8 +586,8 @@ const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
586
586
|
);
|
|
587
587
|
$ = T;
|
|
588
588
|
}
|
|
589
|
-
const
|
|
590
|
-
return /* @__PURE__ */ e(Y, { ref: l, sx: { backgroundColor: "background.paper" }, children:
|
|
589
|
+
const L = u.some((T) => T.y !== 0);
|
|
590
|
+
return /* @__PURE__ */ e(Y, { ref: l, sx: { backgroundColor: "background.paper" }, children: L ? /* @__PURE__ */ i(p, { gap: 8, sx: { pl: 18 }, children: [
|
|
591
591
|
/* @__PURE__ */ e(D, { sx: { pb: 8, pt: 16 }, variant: "h3", children: g }),
|
|
592
592
|
/* @__PURE__ */ e(
|
|
593
593
|
Ke,
|
|
@@ -597,7 +597,7 @@ const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
597
597
|
baseline: "min",
|
|
598
598
|
chartFor: t,
|
|
599
599
|
colors: [o.palette.primary.main],
|
|
600
|
-
curveType: y ? "linear" : "
|
|
600
|
+
curveType: y ? "linear" : "monotoneX",
|
|
601
601
|
datasets: u ? [u] : [],
|
|
602
602
|
height: 244,
|
|
603
603
|
labelFontColor: y ? "text.primary" : "",
|
|
@@ -652,7 +652,7 @@ const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
652
652
|
}
|
|
653
653
|
) });
|
|
654
654
|
}, Ye = v(Ao), To = () => {
|
|
655
|
-
const { healthScoreChangeReports: t } = F(), { finstrong: o } = x(), { user: n } =
|
|
655
|
+
const { healthScoreChangeReports: t } = F(), { finstrong: o } = x(), { user: n } = ee(), { availableWidth: r } = An(), { isSmallMobile: s } = Xe(r), [a, l] = m.useState(!1), c = t.at(-1);
|
|
656
656
|
return /* @__PURE__ */ i(M, { children: [
|
|
657
657
|
/* @__PURE__ */ i(p, { sx: { gap: 28 }, children: [
|
|
658
658
|
/* @__PURE__ */ e(
|
|
@@ -664,7 +664,7 @@ const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
664
664
|
size: s ? "M" : "L"
|
|
665
665
|
}
|
|
666
666
|
),
|
|
667
|
-
/* @__PURE__ */ e(
|
|
667
|
+
/* @__PURE__ */ e(B, { onClick: () => l(!0), variant: "contained", children: o.credit_score_updated_score }),
|
|
668
668
|
/* @__PURE__ */ e(Ye, { chartFor: "creditOverTime" })
|
|
669
669
|
] }),
|
|
670
670
|
/* @__PURE__ */ e(Tt, { isOpen: a, onClose: () => l(!1) })
|
|
@@ -698,12 +698,12 @@ const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
698
698
|
}
|
|
699
699
|
);
|
|
700
700
|
}, Ro = () => {
|
|
701
|
-
const { finstrong: t } = x(), { user: o } =
|
|
701
|
+
const { finstrong: t } = x(), { user: o } = ee(), n = _t(o.credit_score ?? null);
|
|
702
702
|
return /* @__PURE__ */ i(p, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
|
|
703
703
|
/* @__PURE__ */ e(X, { children: t.credit_score_keep_strong_credit_score }),
|
|
704
704
|
/* @__PURE__ */ e(Pe, { status: n })
|
|
705
705
|
] });
|
|
706
|
-
}, Fo = v(Ro),
|
|
706
|
+
}, Fo = v(Ro), Lo = ({
|
|
707
707
|
additionalContent: t,
|
|
708
708
|
connectTitle: o,
|
|
709
709
|
connectDescription: n,
|
|
@@ -749,7 +749,7 @@ const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
749
749
|
/* @__PURE__ */ i(p, { sx: { bgcolor: "background.default", gap: 24, p: 24 }, children: [
|
|
750
750
|
r,
|
|
751
751
|
c && /* @__PURE__ */ e(
|
|
752
|
-
|
|
752
|
+
Be,
|
|
753
753
|
{
|
|
754
754
|
description: n,
|
|
755
755
|
drawerType: u,
|
|
@@ -759,8 +759,8 @@ const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
759
759
|
}
|
|
760
760
|
)
|
|
761
761
|
] })
|
|
762
|
-
] }) }) : /* @__PURE__ */ e(
|
|
763
|
-
}, Ot = v(
|
|
762
|
+
] }) }) : /* @__PURE__ */ e(Q, {});
|
|
763
|
+
}, Ot = v(Lo), Bo = ({
|
|
764
764
|
onClick: t,
|
|
765
765
|
shouldShowBalance: o = !0,
|
|
766
766
|
loadAccounts: n
|
|
@@ -815,7 +815,7 @@ const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
815
815
|
d
|
|
816
816
|
);
|
|
817
817
|
}) }) : null;
|
|
818
|
-
}, Rt = v(
|
|
818
|
+
}, Rt = v(Bo), Po = ({ loadAccounts: t, loadMoreLabel: o }) => {
|
|
819
819
|
const n = E(), { config: r } = He(), { connect: s, finstrong: a } = x(), { accounts: l } = x(), { selectedAccounts: c } = U(), [d, _] = m.useState(!1), [h, u] = m.useState(!1), b = m.useMemo(
|
|
820
820
|
() => c.filter(
|
|
821
821
|
(f) => t ? t.includes(f.account_type) : !0
|
|
@@ -845,9 +845,9 @@ const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
845
845
|
] }, f.guid)) }),
|
|
846
846
|
b.length > 3 && /* @__PURE__ */ i(N, { children: [
|
|
847
847
|
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
|
|
848
|
-
|
|
848
|
+
B,
|
|
849
849
|
{
|
|
850
|
-
endIcon: /* @__PURE__ */ e(
|
|
850
|
+
endIcon: /* @__PURE__ */ e(J, {}),
|
|
851
851
|
onClick: () => _(!0),
|
|
852
852
|
size: "small",
|
|
853
853
|
sx: { my: 0, px: 16, py: 12, width: "100%" },
|
|
@@ -862,7 +862,7 @@ const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
862
862
|
] })
|
|
863
863
|
] }) : /* @__PURE__ */ i(N, { children: [
|
|
864
864
|
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
|
|
865
|
-
|
|
865
|
+
B,
|
|
866
866
|
{
|
|
867
867
|
onClick: () => u(!0),
|
|
868
868
|
size: "small",
|
|
@@ -898,18 +898,18 @@ const Do = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_
|
|
|
898
898
|
]
|
|
899
899
|
}
|
|
900
900
|
);
|
|
901
|
-
var O = /* @__PURE__ */ ((t) => (t[t.ConnectAccounts = 1] = "ConnectAccounts", t[t.MonthlyIncome = 2] = "MonthlyIncome", t[t.Birthday = 3] = "Birthday", t[t.CreditScore = 4] = "CreditScore", t))(O || {}), De = /* @__PURE__ */ ((t) => (t[t.Months = 1] = "Months", t[t.Years = 2] = "Years", t[t.Days = 3] = "Days", t))(De || {}),
|
|
901
|
+
var O = /* @__PURE__ */ ((t) => (t[t.ConnectAccounts = 1] = "ConnectAccounts", t[t.MonthlyIncome = 2] = "MonthlyIncome", t[t.Birthday = 3] = "Birthday", t[t.CreditScore = 4] = "CreditScore", t))(O || {}), De = /* @__PURE__ */ ((t) => (t[t.Months = 1] = "Months", t[t.Years = 2] = "Years", t[t.Days = 3] = "Days", t))(De || {}), Z = /* @__PURE__ */ ((t) => (t[t.Monthly = 1] = "Monthly", t[t.BiWeekly = 2] = "BiWeekly", t[t.Weekly = 3] = "Weekly", t[t.Daily = 4] = "Daily", t))(Z || {});
|
|
902
902
|
const Wo = ({ total: t }) => {
|
|
903
903
|
const { finstrong: o } = x(), n = [
|
|
904
|
-
{ id:
|
|
905
|
-
{ id:
|
|
906
|
-
{ id:
|
|
907
|
-
{ id:
|
|
904
|
+
{ id: Z.Monthly, label: o.maintain_emergency_savings_monthly },
|
|
905
|
+
{ id: Z.BiWeekly, label: o.maintain_emergency_savings_bi_weekly },
|
|
906
|
+
{ id: Z.Weekly, label: o.maintain_emergency_savings_weekly },
|
|
907
|
+
{ id: Z.Daily, label: o.maintain_emergency_savings_daily }
|
|
908
908
|
], r = {
|
|
909
|
-
[
|
|
910
|
-
[
|
|
911
|
-
[
|
|
912
|
-
[
|
|
909
|
+
[Z.Monthly]: o.maintain_emergency_savings_estimated_period_monthly,
|
|
910
|
+
[Z.BiWeekly]: o.maintain_emergency_savings_estimated_period_bi_weekly,
|
|
911
|
+
[Z.Weekly]: o.maintain_emergency_savings_estimated_period_weekly,
|
|
912
|
+
[Z.Daily]: o.maintain_emergency_savings_estimated_period_daily
|
|
913
913
|
}, s = [
|
|
914
914
|
{ id: De.Months, label: o.maintain_emergency_savings_months },
|
|
915
915
|
{ id: De.Years, label: o.maintain_emergency_savings_years },
|
|
@@ -1024,7 +1024,7 @@ const Wo = ({ total: t }) => {
|
|
|
1024
1024
|
}
|
|
1025
1025
|
)
|
|
1026
1026
|
] }),
|
|
1027
|
-
/* @__PURE__ */ e(
|
|
1027
|
+
/* @__PURE__ */ e(B, { fullWidth: !0, onClick: g, type: "submit", variant: "contained", children: o.maintain_emergency_savings_calculate })
|
|
1028
1028
|
] }) }) });
|
|
1029
1029
|
}, $o = v(Wo), zo = () => {
|
|
1030
1030
|
const { savingsAccounts: t } = Se(), { finstrong: o } = x(), [n, r] = m.useState(!1), s = m.useMemo(
|
|
@@ -1040,7 +1040,7 @@ const Wo = ({ total: t }) => {
|
|
|
1040
1040
|
loadAccounts: [ze.SAVINGS],
|
|
1041
1041
|
loadMoreLabel: o.connect_more_accounts_button
|
|
1042
1042
|
}
|
|
1043
|
-
) : /* @__PURE__ */ e(
|
|
1043
|
+
) : /* @__PURE__ */ e(B, { onClick: () => r(!0), variant: "contained", children: o.connect_more_accounts_button })
|
|
1044
1044
|
] }) }),
|
|
1045
1045
|
/* @__PURE__ */ e($o, { total: s }),
|
|
1046
1046
|
/* @__PURE__ */ e(
|
|
@@ -1097,7 +1097,7 @@ const Wo = ({ total: t }) => {
|
|
|
1097
1097
|
justifyContent: "space-between"
|
|
1098
1098
|
},
|
|
1099
1099
|
children: [
|
|
1100
|
-
/* @__PURE__ */ e(
|
|
1100
|
+
/* @__PURE__ */ e(Le, { children: o }),
|
|
1101
1101
|
/* @__PURE__ */ e(Pe, { status: n })
|
|
1102
1102
|
]
|
|
1103
1103
|
}
|
|
@@ -1159,7 +1159,7 @@ const Wo = ({ total: t }) => {
|
|
|
1159
1159
|
) ?? S(g.top_level_category_guid)
|
|
1160
1160
|
})).sort((g, y) => y.date - g.date)), !t || t.length === 0 ? /* @__PURE__ */ i(N, { children: [
|
|
1161
1161
|
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
|
|
1162
|
-
|
|
1162
|
+
B,
|
|
1163
1163
|
{
|
|
1164
1164
|
onClick: () => b(!0),
|
|
1165
1165
|
size: "small",
|
|
@@ -1230,9 +1230,9 @@ const Wo = ({ total: t }) => {
|
|
|
1230
1230
|
)) }),
|
|
1231
1231
|
f && /* @__PURE__ */ i(N, { children: [
|
|
1232
1232
|
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
|
|
1233
|
-
|
|
1233
|
+
B,
|
|
1234
1234
|
{
|
|
1235
|
-
endIcon: /* @__PURE__ */ e(
|
|
1235
|
+
endIcon: /* @__PURE__ */ e(J, {}),
|
|
1236
1236
|
onClick: () => h(!0),
|
|
1237
1237
|
size: "small",
|
|
1238
1238
|
sx: { my: 0, px: 16, py: 12, width: "100%" },
|
|
@@ -1255,14 +1255,14 @@ const Wo = ({ total: t }) => {
|
|
|
1255
1255
|
] })
|
|
1256
1256
|
] });
|
|
1257
1257
|
}, Ko = () => {
|
|
1258
|
-
const {
|
|
1258
|
+
const [t, o] = m.useState(!0), {
|
|
1259
1259
|
finstrong: {
|
|
1260
|
-
key_indicators_spend: { pay_bills_on_time_drawer:
|
|
1260
|
+
key_indicators_spend: { pay_bills_on_time_drawer: n }
|
|
1261
1261
|
}
|
|
1262
|
-
} = x(), { getSpendingFeeTransactions:
|
|
1262
|
+
} = x(), { getSpendingFeeTransactions: r, allTransactions: s } = F();
|
|
1263
1263
|
return m.useEffect(() => {
|
|
1264
|
-
|
|
1265
|
-
}, []), /* @__PURE__ */ e(N, { children:
|
|
1264
|
+
r().finally(() => o(!1));
|
|
1265
|
+
}, []), t ? /* @__PURE__ */ e(Q, {}) : /* @__PURE__ */ e(N, { children: s.spendingFee.length === 0 ? /* @__PURE__ */ i(
|
|
1266
1266
|
Y,
|
|
1267
1267
|
{
|
|
1268
1268
|
sx: {
|
|
@@ -1276,8 +1276,8 @@ const Wo = ({ total: t }) => {
|
|
|
1276
1276
|
children: [
|
|
1277
1277
|
/* @__PURE__ */ e(sn, { filled: !0, size: 48, sx: { color: "success.main" } }),
|
|
1278
1278
|
/* @__PURE__ */ i(p, { sx: { alignItems: "center", gap: 4, pt: 24 }, children: [
|
|
1279
|
-
/* @__PURE__ */ e(X, { children:
|
|
1280
|
-
/* @__PURE__ */ e(D, { variant: "subtitle1", children:
|
|
1279
|
+
/* @__PURE__ */ e(X, { children: n.pay_bills_on_time_zero_fees_title }),
|
|
1280
|
+
/* @__PURE__ */ e(D, { variant: "subtitle1", children: n.pay_bills_on_time_zero_fees_description })
|
|
1281
1281
|
] })
|
|
1282
1282
|
]
|
|
1283
1283
|
}
|
|
@@ -1290,15 +1290,15 @@ const Wo = ({ total: t }) => {
|
|
|
1290
1290
|
backgroundColor: "background.paper"
|
|
1291
1291
|
},
|
|
1292
1292
|
children: [
|
|
1293
|
-
/* @__PURE__ */ e(X, { sx: { textAlign: "left", pb: 16 }, children:
|
|
1293
|
+
/* @__PURE__ */ e(X, { sx: { textAlign: "left", pb: 16 }, children: n.pay_bills_on_time_sticky_fee_count }),
|
|
1294
1294
|
/* @__PURE__ */ e(
|
|
1295
1295
|
$e,
|
|
1296
1296
|
{
|
|
1297
1297
|
amountColor: "text.primary",
|
|
1298
1298
|
amountPosition: "flex-start",
|
|
1299
|
-
formatDate: (
|
|
1299
|
+
formatDate: (a) => Ln(new Date(a * 1e3), Bn.MONTH_DAY),
|
|
1300
1300
|
secondaryIcon: /* @__PURE__ */ e(cn, { color: "error", filled: !0, size: 12 }),
|
|
1301
|
-
transactions:
|
|
1301
|
+
transactions: s.spendingFee
|
|
1302
1302
|
}
|
|
1303
1303
|
)
|
|
1304
1304
|
]
|
|
@@ -1318,7 +1318,7 @@ const Wo = ({ total: t }) => {
|
|
|
1318
1318
|
children: [
|
|
1319
1319
|
/* @__PURE__ */ e(D, { variant: "body2", children: r.pay_bills_on_time_sticky_description }),
|
|
1320
1320
|
/* @__PURE__ */ i(p, { direction: "row", sx: { alignItems: "center", justifyContent: "space-between" }, children: [
|
|
1321
|
-
/* @__PURE__ */ i(
|
|
1321
|
+
/* @__PURE__ */ i(Le, { children: [
|
|
1322
1322
|
t.spending_fee_transaction_count,
|
|
1323
1323
|
" ",
|
|
1324
1324
|
r.pay_bills_on_time_sticky_fee_count
|
|
@@ -1370,7 +1370,7 @@ const Wo = ({ total: t }) => {
|
|
|
1370
1370
|
}
|
|
1371
1371
|
),
|
|
1372
1372
|
/* @__PURE__ */ e($e, { amountColor: "text.primary", transactions: l })
|
|
1373
|
-
] }) : /* @__PURE__ */ e(
|
|
1373
|
+
] }) : /* @__PURE__ */ e(Q, {});
|
|
1374
1374
|
}, Zo = v(Qo), Jo = () => {
|
|
1375
1375
|
const [t, o] = m.useState(0), { finstrong: n } = x();
|
|
1376
1376
|
return /* @__PURE__ */ i(N, { children: [
|
|
@@ -1555,7 +1555,7 @@ const Wo = ({ total: t }) => {
|
|
|
1555
1555
|
// TODO: Need to add More Transactions functionality
|
|
1556
1556
|
/* @__PURE__ */ e($e, { transactions: o.income.map((l) => l.transaction) })
|
|
1557
1557
|
) : /* @__PURE__ */ e(
|
|
1558
|
-
|
|
1558
|
+
B,
|
|
1559
1559
|
{
|
|
1560
1560
|
onClick: () => {
|
|
1561
1561
|
a(!0);
|
|
@@ -1594,7 +1594,7 @@ const Wo = ({ total: t }) => {
|
|
|
1594
1594
|
}
|
|
1595
1595
|
)
|
|
1596
1596
|
) : /* @__PURE__ */ e(
|
|
1597
|
-
|
|
1597
|
+
B,
|
|
1598
1598
|
{
|
|
1599
1599
|
onClick: () => {
|
|
1600
1600
|
a(!0);
|
|
@@ -1660,7 +1660,7 @@ const Wo = ({ total: t }) => {
|
|
|
1660
1660
|
}, Te = (t, o = 1e3) => {
|
|
1661
1661
|
const n = Math.abs(t) >= o ? "0.[0]a" : "0";
|
|
1662
1662
|
return W(t, n);
|
|
1663
|
-
},
|
|
1663
|
+
}, Lt = ({
|
|
1664
1664
|
chartFor: t,
|
|
1665
1665
|
data: o,
|
|
1666
1666
|
title: n,
|
|
@@ -1720,9 +1720,9 @@ const Wo = ({ total: t }) => {
|
|
|
1720
1720
|
children: [
|
|
1721
1721
|
/* @__PURE__ */ e(X, { children: n }),
|
|
1722
1722
|
r && /* @__PURE__ */ e(
|
|
1723
|
-
|
|
1723
|
+
B,
|
|
1724
1724
|
{
|
|
1725
|
-
endIcon: /* @__PURE__ */ e(
|
|
1725
|
+
endIcon: /* @__PURE__ */ e(J, {}),
|
|
1726
1726
|
onClick: s,
|
|
1727
1727
|
size: "small",
|
|
1728
1728
|
sx: {
|
|
@@ -1872,7 +1872,7 @@ const Wo = ({ total: t }) => {
|
|
|
1872
1872
|
const { isIncomeInitialized: t, loadDebtSpend: o, loadIncome: n, monthlySummaries: r } = F(), [s, a] = m.useState(0), { finstrong: l } = x();
|
|
1873
1873
|
if (m.useEffect(() => {
|
|
1874
1874
|
t || (o().finally(), n().finally());
|
|
1875
|
-
}, [t]), !t) return /* @__PURE__ */ e(
|
|
1875
|
+
}, [t]), !t) return /* @__PURE__ */ e(Q, {});
|
|
1876
1876
|
const c = r.some(
|
|
1877
1877
|
(d) => d.debt_spend !== 0 || d.income !== 0
|
|
1878
1878
|
);
|
|
@@ -1932,7 +1932,7 @@ const Wo = ({ total: t }) => {
|
|
|
1932
1932
|
)
|
|
1933
1933
|
] }),
|
|
1934
1934
|
c ? /* @__PURE__ */ e(N, { children: /* @__PURE__ */ e(
|
|
1935
|
-
|
|
1935
|
+
Lt,
|
|
1936
1936
|
{
|
|
1937
1937
|
chartFor: "debt_payment_vs_income",
|
|
1938
1938
|
data: r,
|
|
@@ -2025,7 +2025,7 @@ const Wo = ({ total: t }) => {
|
|
|
2025
2025
|
), [s]);
|
|
2026
2026
|
return /* @__PURE__ */ i(p, { sx: { gap: 24 }, children: [
|
|
2027
2027
|
w > 0 || f > 0 ? /* @__PURE__ */ e(
|
|
2028
|
-
|
|
2028
|
+
Lt,
|
|
2029
2029
|
{
|
|
2030
2030
|
...l.appData.client_profile?.allow_trends_widget && {
|
|
2031
2031
|
buttonLabel: c.key_indicators_spend.spend_less_than_you_make_drawer.view_more
|
|
@@ -2083,9 +2083,9 @@ const Wo = ({ total: t }) => {
|
|
|
2083
2083
|
children: [
|
|
2084
2084
|
/* @__PURE__ */ e(X, { children: c.key_indicators_spend.spend_less_than_you_make_drawer.spending }),
|
|
2085
2085
|
l.appData.client_profile?.allow_spending_widget && /* @__PURE__ */ e(
|
|
2086
|
-
|
|
2086
|
+
B,
|
|
2087
2087
|
{
|
|
2088
|
-
endIcon: /* @__PURE__ */ e(
|
|
2088
|
+
endIcon: /* @__PURE__ */ e(J, {}),
|
|
2089
2089
|
onClick: () => a("spending")(),
|
|
2090
2090
|
size: "small",
|
|
2091
2091
|
sx: {
|
|
@@ -2259,7 +2259,7 @@ const Wo = ({ total: t }) => {
|
|
|
2259
2259
|
] }),
|
|
2260
2260
|
/* @__PURE__ */ e(D, { color: "secondary", variant: "subtitle2", children: n })
|
|
2261
2261
|
] }),
|
|
2262
|
-
/* @__PURE__ */ e(
|
|
2262
|
+
/* @__PURE__ */ e(J, { color: "secondary", size: 24 })
|
|
2263
2263
|
]
|
|
2264
2264
|
}
|
|
2265
2265
|
),
|
|
@@ -2376,7 +2376,7 @@ const Wo = ({ total: t }) => {
|
|
|
2376
2376
|
)
|
|
2377
2377
|
] });
|
|
2378
2378
|
}, Sr = v(xr), Cr = () => {
|
|
2379
|
-
const { healthScore: t } = F(), { finstrong: o } = x(), { key_indicators_borrow: n } = o, { user: r } =
|
|
2379
|
+
const { healthScore: t } = F(), { finstrong: o } = x(), { key_indicators_borrow: n } = o, { user: r } = ee(), s = (d) => {
|
|
2380
2380
|
const _ = mt(d), h = {
|
|
2381
2381
|
GOOD: n.manage_debit_good_description,
|
|
2382
2382
|
FAIR: n.manage_debit_fair_description,
|
|
@@ -2496,9 +2496,9 @@ const Wo = ({ total: t }) => {
|
|
|
2496
2496
|
/* @__PURE__ */ e(D, { sx: { width: { sm: 348 } }, variant: "subtitle1", children: o.missing_data_description })
|
|
2497
2497
|
] }),
|
|
2498
2498
|
/* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(
|
|
2499
|
-
|
|
2499
|
+
B,
|
|
2500
2500
|
{
|
|
2501
|
-
endIcon: /* @__PURE__ */ e(
|
|
2501
|
+
endIcon: /* @__PURE__ */ e(J, {}),
|
|
2502
2502
|
onClick: t,
|
|
2503
2503
|
size: "small",
|
|
2504
2504
|
sx: {
|
|
@@ -2511,7 +2511,7 @@ const Wo = ({ total: t }) => {
|
|
|
2511
2511
|
children: o.connect_more_accounts_button
|
|
2512
2512
|
}
|
|
2513
2513
|
) })
|
|
2514
|
-
] }) : /* @__PURE__ */ e(
|
|
2514
|
+
] }) : /* @__PURE__ */ e(Q, {});
|
|
2515
2515
|
}, Dr = v(Mr), Ir = ({
|
|
2516
2516
|
firstDay: t,
|
|
2517
2517
|
frequency: o,
|
|
@@ -2551,7 +2551,7 @@ const Wo = ({ total: t }) => {
|
|
|
2551
2551
|
)
|
|
2552
2552
|
] }),
|
|
2553
2553
|
/* @__PURE__ */ e(M, { sx: { px: 24 }, children: /* @__PURE__ */ e(
|
|
2554
|
-
|
|
2554
|
+
B,
|
|
2555
2555
|
{
|
|
2556
2556
|
fullWidth: !0,
|
|
2557
2557
|
onClick: () => s({ step: O.MonthlyIncome, type: "main" }),
|
|
@@ -2611,7 +2611,7 @@ const Wo = ({ total: t }) => {
|
|
|
2611
2611
|
value: r ? t : ""
|
|
2612
2612
|
}
|
|
2613
2613
|
) });
|
|
2614
|
-
}, Fr = v(Rr),
|
|
2614
|
+
}, Fr = v(Rr), Bt = ({ value: t, completeCopy: o }) => /* @__PURE__ */ i(p, { sx: { gap: 8 }, children: [
|
|
2615
2615
|
/* @__PURE__ */ e(p, { sx: { flexDirection: "row", gap: 4 }, children: Array.from({ length: 4 }).map((n, r) => /* @__PURE__ */ e(
|
|
2616
2616
|
M,
|
|
2617
2617
|
{
|
|
@@ -2629,7 +2629,7 @@ const Wo = ({ total: t }) => {
|
|
|
2629
2629
|
"% ",
|
|
2630
2630
|
o
|
|
2631
2631
|
] })
|
|
2632
|
-
] }),
|
|
2632
|
+
] }), Lr = ({
|
|
2633
2633
|
completeCopy: t,
|
|
2634
2634
|
primaryText: o,
|
|
2635
2635
|
secondaryText: n,
|
|
@@ -2639,14 +2639,14 @@ const Wo = ({ total: t }) => {
|
|
|
2639
2639
|
/* @__PURE__ */ e(X, { children: o }),
|
|
2640
2640
|
/* @__PURE__ */ e(D, { variant: "subtitle1", children: n })
|
|
2641
2641
|
] }),
|
|
2642
|
-
/* @__PURE__ */ e(
|
|
2642
|
+
/* @__PURE__ */ e(Bt, { completeCopy: t, value: r })
|
|
2643
2643
|
] }), at = {
|
|
2644
2644
|
step: O.ConnectAccounts,
|
|
2645
2645
|
type: "main"
|
|
2646
|
-
},
|
|
2647
|
-
const { visibleAccounts: n } = Se(), { calculateHealthScore: r } = F(), { finstrong: s } = x(), { setSelectedAccounts: a } = U(), { addRepeatingTransaction: l, setDateRange: c } = je(), { filter: d, setFilter: _, transactions: h } = On(), { user: u, userProfile: b, updateUser: S, updateUserProfile: C } =
|
|
2646
|
+
}, Br = ({ isOpen: t, onClose: o }) => {
|
|
2647
|
+
const { visibleAccounts: n } = Se(), { calculateHealthScore: r } = F(), { finstrong: s } = x(), { setSelectedAccounts: a } = U(), { addRepeatingTransaction: l, setDateRange: c } = je(), { filter: d, setFilter: _, transactions: h } = On(), { user: u, userProfile: b, updateUser: S, updateUserProfile: C } = ee(), [f, w] = m.useState(u.credit_score || 0), [k, g] = m.useState(
|
|
2648
2648
|
at
|
|
2649
|
-
), [y, $] = m.useState(1), [
|
|
2649
|
+
), [y, $] = m.useState(1), [L, T] = m.useState(Ct.EveryMonth), [P, z] = m.useState([]), [G, _e] = m.useState(!1), [ue, te] = m.useState(!1), [j, ve] = m.useState(u.birthday), [H, we] = m.useState(15), [K, ae] = m.useState("");
|
|
2650
2650
|
m.useEffect(() => {
|
|
2651
2651
|
c({ start: kt(ot()), end: Mt(ot()) });
|
|
2652
2652
|
}, []), m.useEffect(() => {
|
|
@@ -2688,14 +2688,14 @@ const Wo = ({ total: t }) => {
|
|
|
2688
2688
|
Ar,
|
|
2689
2689
|
{
|
|
2690
2690
|
firstDay: y,
|
|
2691
|
-
frequency:
|
|
2691
|
+
frequency: L,
|
|
2692
2692
|
incomeTransactions: P,
|
|
2693
2693
|
secondDay: H,
|
|
2694
2694
|
setCurrentStep: (A) => {
|
|
2695
2695
|
g(A), z((R) => {
|
|
2696
2696
|
if (R.some((ie) => ie.guid === K)) return R.filter((ie) => ie.guid !== K);
|
|
2697
2697
|
const Ae = h.find((ie) => ie.guid === K);
|
|
2698
|
-
return Ae ? [...R, { ...Ae, firstDay: y, frequency:
|
|
2698
|
+
return Ae ? [...R, { ...Ae, firstDay: y, frequency: L, secondDay: H }] : R;
|
|
2699
2699
|
});
|
|
2700
2700
|
},
|
|
2701
2701
|
setFirstDay: $,
|
|
@@ -2752,7 +2752,7 @@ const Wo = ({ total: t }) => {
|
|
|
2752
2752
|
case O.MonthlyIncome:
|
|
2753
2753
|
K && P.findIndex(({ guid: ye }) => ye === K) === -1 && z((ye) => [
|
|
2754
2754
|
...ye,
|
|
2755
|
-
{ ...he, firstDay: y, frequency:
|
|
2755
|
+
{ ...he, firstDay: y, frequency: L, secondDay: H }
|
|
2756
2756
|
]);
|
|
2757
2757
|
break;
|
|
2758
2758
|
case O.ConnectAccounts:
|
|
@@ -2827,12 +2827,12 @@ const Wo = ({ total: t }) => {
|
|
|
2827
2827
|
children: /* @__PURE__ */ i(p, { sx: { bgcolor: "background.default", height: "100%" }, children: [
|
|
2828
2828
|
G && /* @__PURE__ */ i(p, { sx: { alignItems: "center", gap: 24, position: "relative", px: 16, top: 126 }, children: [
|
|
2829
2829
|
/* @__PURE__ */ e("img", { alt: "", src: Do, style: { minHeight: 100, width: 211 } }),
|
|
2830
|
-
/* @__PURE__ */ e(
|
|
2830
|
+
/* @__PURE__ */ e(Le, { children: s.onboarding_calculate_primary }),
|
|
2831
2831
|
/* @__PURE__ */ e(D, { sx: { textAlign: "center" }, variant: "subtitle1", children: s.onboarding_calculate_secondary })
|
|
2832
2832
|
] }),
|
|
2833
2833
|
ge && !G && /* @__PURE__ */ i(m.Fragment, { children: [
|
|
2834
2834
|
/* @__PURE__ */ e(
|
|
2835
|
-
|
|
2835
|
+
Lr,
|
|
2836
2836
|
{
|
|
2837
2837
|
completeCopy: s.complete,
|
|
2838
2838
|
primaryText: ge.primaryText,
|
|
@@ -2842,7 +2842,7 @@ const Wo = ({ total: t }) => {
|
|
|
2842
2842
|
),
|
|
2843
2843
|
k.type === "main" && /* @__PURE__ */ i(M, { sx: { bgcolor: "background.default" }, children: [
|
|
2844
2844
|
ge.main,
|
|
2845
|
-
jt && /* @__PURE__ */ e(p, { sx: { alignItems: "center", px: 24, py: 12 }, children: /* @__PURE__ */ e(
|
|
2845
|
+
jt && /* @__PURE__ */ e(p, { sx: { alignItems: "center", px: 24, py: 12 }, children: /* @__PURE__ */ e(B, { fullWidth: !0, onClick: zt, children: s.onboarding_do_it_later }) })
|
|
2846
2846
|
] }),
|
|
2847
2847
|
k.type === "detail" && ge.detail
|
|
2848
2848
|
] })
|
|
@@ -2858,7 +2858,7 @@ const Wo = ({ total: t }) => {
|
|
|
2858
2858
|
}
|
|
2859
2859
|
)
|
|
2860
2860
|
] });
|
|
2861
|
-
}, Pr = v(
|
|
2861
|
+
}, Pr = v(Br), Wr = () => {
|
|
2862
2862
|
const { finstrong: t } = x(), [o, n] = m.useState(!1);
|
|
2863
2863
|
return /* @__PURE__ */ i(m.Fragment, { children: [
|
|
2864
2864
|
/* @__PURE__ */ i(
|
|
@@ -2877,18 +2877,18 @@ const Wo = ({ total: t }) => {
|
|
|
2877
2877
|
/* @__PURE__ */ i(p, { sx: { alignItems: { sm: "center" }, gap: 24, width: "100%" }, children: [
|
|
2878
2878
|
/* @__PURE__ */ e(M, { sx: { textAlign: "center" }, children: /* @__PURE__ */ e(_n, { size: 72 }) }),
|
|
2879
2879
|
/* @__PURE__ */ i(p, { sx: { gap: 4, textAlign: "center", width: { sm: 400 } }, children: [
|
|
2880
|
-
/* @__PURE__ */ e(
|
|
2880
|
+
/* @__PURE__ */ e(Le, { children: t.onboarding_title }),
|
|
2881
2881
|
/* @__PURE__ */ e(D, { sx: { color: "text.secondary" }, variant: "subtitle1", children: t.onboarding_subtitle })
|
|
2882
2882
|
] })
|
|
2883
2883
|
] }),
|
|
2884
|
-
/* @__PURE__ */ e(
|
|
2884
|
+
/* @__PURE__ */ e(B, { onClick: () => n(!0), variant: "contained", children: t.onboarding_get_started })
|
|
2885
2885
|
]
|
|
2886
2886
|
}
|
|
2887
2887
|
),
|
|
2888
2888
|
/* @__PURE__ */ e(Pr, { isOpen: o, onClose: () => n(!1) })
|
|
2889
2889
|
] });
|
|
2890
2890
|
}, $r = ({ isOpen: t, onClose: o }) => {
|
|
2891
|
-
const { finstrong: n } = x(), r = E(), { updateUser: s, user: a } =
|
|
2891
|
+
const { finstrong: n } = x(), r = E(), { updateUser: s, user: a } = ee(), [l, c] = m.useState(a.birthday), d = (h) => {
|
|
2892
2892
|
c(Math.floor(new Date(h).getTime() / 1e3));
|
|
2893
2893
|
};
|
|
2894
2894
|
return /* @__PURE__ */ e(
|
|
@@ -2949,7 +2949,7 @@ const Wo = ({ total: t }) => {
|
|
|
2949
2949
|
common: s,
|
|
2950
2950
|
finstrong: a,
|
|
2951
2951
|
recurring: l
|
|
2952
|
-
} = x(), { repeatingTransactions: c } = je(), { user: d } =
|
|
2952
|
+
} = x(), { repeatingTransactions: c } = je(), { user: d } = ee(), _ = c.reduce((C, f) => {
|
|
2953
2953
|
const { repeating_transaction_type: w, transactions: k, recurrence_type: g, amount: y } = f;
|
|
2954
2954
|
return w === vt.Income && (k.length > 0 || g === Ct.EveryYear) ? C + y : C;
|
|
2955
2955
|
}, 0), [h, u] = m.useState(null), S = [
|
|
@@ -2997,7 +2997,7 @@ const Wo = ({ total: t }) => {
|
|
|
2997
2997
|
/* @__PURE__ */ e(D, { children: a.financial_profile_description })
|
|
2998
2998
|
] }),
|
|
2999
2999
|
/* @__PURE__ */ e(
|
|
3000
|
-
|
|
3000
|
+
Bt,
|
|
3001
3001
|
{
|
|
3002
3002
|
completeCopy: a.complete,
|
|
3003
3003
|
value: S.reduce((C, f) => C + (f.isComplete ? 1 : 0), 0)
|
|
@@ -3006,7 +3006,7 @@ const Wo = ({ total: t }) => {
|
|
|
3006
3006
|
] }),
|
|
3007
3007
|
/* @__PURE__ */ e(In, { list: S, onClickItem: u }),
|
|
3008
3008
|
/* @__PURE__ */ e(M, { sx: { p: 24 }, children: /* @__PURE__ */ e(
|
|
3009
|
-
|
|
3009
|
+
Be,
|
|
3010
3010
|
{
|
|
3011
3011
|
description: a.connect_more_accounts_to_view_more_accurate_financial_picture,
|
|
3012
3012
|
drawerType: "connectDrawer",
|
|
@@ -3153,7 +3153,7 @@ const Wo = ({ total: t }) => {
|
|
|
3153
3153
|
] });
|
|
3154
3154
|
}, Nr = v(Hr), jr = ({ isOpen: t, onClose: o }) => {
|
|
3155
3155
|
const n = E(), { finstrong: r } = x(), { isCopyLoaded: s, isInitialized: a } = U(), { augmentedChartData: l, healthScore: c, healthScoreChangeReports: d, peerScore: _ } = F();
|
|
3156
|
-
if (!s || !a) return /* @__PURE__ */ e(
|
|
3156
|
+
if (!s || !a) return /* @__PURE__ */ e(Q, {});
|
|
3157
3157
|
const h = Ge(c.health_score || 0, r), u = d.slice().reverse();
|
|
3158
3158
|
return /* @__PURE__ */ e(
|
|
3159
3159
|
Ot,
|
|
@@ -3351,16 +3351,16 @@ const Wo = ({ total: t }) => {
|
|
|
3351
3351
|
}
|
|
3352
3352
|
)
|
|
3353
3353
|
] })
|
|
3354
|
-
] }) }) : /* @__PURE__ */ e(
|
|
3354
|
+
] }) }) : /* @__PURE__ */ e(Q, {});
|
|
3355
3355
|
}, Yr = v(Xr), qr = v(() => {
|
|
3356
3356
|
const [t, o] = m.useState(!1), n = E(), [r, { width: s }] = ft(), { finstrong: a } = x(), { isCopyLoaded: l, isInitialized: c } = U(), { healthScore: d, healthScoreChange: _ } = F(), h = n.palette.mode === "dark", u = Ge(d?.health_score, a);
|
|
3357
|
-
return !l || !c ? /* @__PURE__ */ e(
|
|
3357
|
+
return !l || !c ? /* @__PURE__ */ e(Q, {}) : /* @__PURE__ */ i(Y, { ref: r, sx: { p: 16, display: "flex", flexDirection: "column", gap: 8 }, children: [
|
|
3358
3358
|
/* @__PURE__ */ i(p, { direction: "row", sx: { alignItems: "center", justifyContent: "space-between" }, children: [
|
|
3359
3359
|
/* @__PURE__ */ e(X, { children: a.financial_strength_header }),
|
|
3360
3360
|
/* @__PURE__ */ e(
|
|
3361
|
-
|
|
3361
|
+
B,
|
|
3362
3362
|
{
|
|
3363
|
-
endIcon: /* @__PURE__ */ e(
|
|
3363
|
+
endIcon: /* @__PURE__ */ e(J, {}),
|
|
3364
3364
|
onClick: () => o(!0),
|
|
3365
3365
|
size: "small",
|
|
3366
3366
|
sx: {
|
|
@@ -3429,7 +3429,7 @@ const Wo = ({ total: t }) => {
|
|
|
3429
3429
|
]
|
|
3430
3430
|
}
|
|
3431
3431
|
) : /* @__PURE__ */ e(
|
|
3432
|
-
|
|
3432
|
+
Be,
|
|
3433
3433
|
{
|
|
3434
3434
|
buttonText: a.connect_more_accounts_title,
|
|
3435
3435
|
description: a.health_score_zero_description,
|
|
@@ -3465,7 +3465,7 @@ const Wo = ({ total: t }) => {
|
|
|
3465
3465
|
loadMonthlySummaries: S,
|
|
3466
3466
|
loadPeerScore: C,
|
|
3467
3467
|
peerScore: f
|
|
3468
|
-
} = _, { finstrong: w, connect: k } = x(), { isCopyLoaded: g, isInitialized: y } = U(), { loadRepeatingTransactions: $ } = je(), { isSmallMobile:
|
|
3468
|
+
} = _, { finstrong: w, connect: k } = x(), { isCopyLoaded: g, isInitialized: y } = U(), { loadRepeatingTransactions: $ } = je(), { isSmallMobile: L } = Xe(), T = E(), { userProfile: P } = ee(), [z, G] = m.useState(!1), [_e, ue] = m.useState(!1), [te, j] = m.useState(!1), [ve, H] = m.useState(!1);
|
|
3469
3469
|
if (vo({
|
|
3470
3470
|
widgetName: "FinstrongWidget",
|
|
3471
3471
|
isLoaded: z
|
|
@@ -3479,7 +3479,7 @@ const Wo = ({ total: t }) => {
|
|
|
3479
3479
|
y && (d(r, s.start, s.end).finally(() => {
|
|
3480
3480
|
G(!0);
|
|
3481
3481
|
}), a || (l(), $().finally()));
|
|
3482
|
-
}, [s, a, y, r]), !g || !y || !z) return /* @__PURE__ */ e(
|
|
3482
|
+
}, [s, a, y, r]), !g || !y || !z) return /* @__PURE__ */ e(Q, {});
|
|
3483
3483
|
const we = () => ue(!0), K = Math.round(f?.average_health_score?.average_health_score || 0), ae = h.some((he) => he.y !== 0);
|
|
3484
3484
|
return /* @__PURE__ */ i(
|
|
3485
3485
|
wo,
|
|
@@ -3495,11 +3495,11 @@ const Wo = ({ total: t }) => {
|
|
|
3495
3495
|
onBackClick: t,
|
|
3496
3496
|
sx: {
|
|
3497
3497
|
"& .MuiCardHeader-root": {
|
|
3498
|
-
px:
|
|
3499
|
-
pt:
|
|
3498
|
+
px: L ? 16 : 48,
|
|
3499
|
+
pt: L ? 12 : 48
|
|
3500
3500
|
},
|
|
3501
3501
|
"& .MuiDivider-root": {
|
|
3502
|
-
mt:
|
|
3502
|
+
mt: L ? 12 : 24
|
|
3503
3503
|
},
|
|
3504
3504
|
...o
|
|
3505
3505
|
},
|
|
@@ -3513,14 +3513,14 @@ const Wo = ({ total: t }) => {
|
|
|
3513
3513
|
flexDirection: { md: "row" },
|
|
3514
3514
|
gap: 24,
|
|
3515
3515
|
justifyContent: "center",
|
|
3516
|
-
pt:
|
|
3517
|
-
px:
|
|
3516
|
+
pt: L ? 16 : 24,
|
|
3517
|
+
px: L ? 16 : 48
|
|
3518
3518
|
},
|
|
3519
3519
|
children: [
|
|
3520
3520
|
/* @__PURE__ */ i(p, { sx: { gap: 24, width: { md: 432 }, height: "100%" }, children: [
|
|
3521
3521
|
/* @__PURE__ */ e(qr, {}),
|
|
3522
3522
|
/* @__PURE__ */ e(
|
|
3523
|
-
|
|
3523
|
+
Be,
|
|
3524
3524
|
{
|
|
3525
3525
|
description: w.connect_more_accounts_description,
|
|
3526
3526
|
drawerType: "connectDrawer",
|
|
@@ -3537,9 +3537,9 @@ const Wo = ({ total: t }) => {
|
|
|
3537
3537
|
children: [
|
|
3538
3538
|
/* @__PURE__ */ e(X, { children: w.key_indicators }),
|
|
3539
3539
|
/* @__PURE__ */ e(
|
|
3540
|
-
|
|
3540
|
+
B,
|
|
3541
3541
|
{
|
|
3542
|
-
endIcon: /* @__PURE__ */ e(
|
|
3542
|
+
endIcon: /* @__PURE__ */ e(J, {}),
|
|
3543
3543
|
onClick: () => j(!0),
|
|
3544
3544
|
size: "small",
|
|
3545
3545
|
sx: {
|