@mx-cartographer/experiences 7.2.15-alpha-ram15-finstrong-testing → 7.2.15-alpha-ram17-finstrong-testing
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/finstrong/index.es.js +143 -139
- package/package.json +1 -1
|
@@ -2,14 +2,14 @@ import { jsxs as i, Fragment as z, jsx as e } from "react/jsx-runtime";
|
|
|
2
2
|
import C from "@mui/material/Box";
|
|
3
3
|
import u from "@mui/material/Stack";
|
|
4
4
|
import { useTheme as E, alpha as fe } from "@mui/material/styles";
|
|
5
|
-
import { PieChart as
|
|
6
|
-
import { TrendingUp as gt, ArrowRightAlt as
|
|
7
|
-
import { P as k, H3 as N, Text as I, InstitutionLogo as xt, H2 as Pe, MerchantLogo as
|
|
8
|
-
import { g as
|
|
5
|
+
import { PieChart as _n, BarPlot as hn } from "@mui/x-charts";
|
|
6
|
+
import { TrendingUp as gt, ArrowRightAlt as mn, TrendingDown as gn, AccountBalance as yt, ChevronRight as Z, MultilineChart as bt, CreditCard as Ke, CheckCircle as yn, Cancel as bn, Savings as fn, ContentCopy as xn, Add as ft, Cardiology as Sn, Payments as Cn, CalendarMonth as vn, ExpandMore as wn } from "@mxenabled/mx-icons";
|
|
7
|
+
import { P as k, H3 as N, Text as I, InstitutionLogo as xt, H2 as Pe, MerchantLogo as kn, Icon as Mn } from "@mxenabled/mxui";
|
|
8
|
+
import { g as Dn, a as In, r as rt, b as An, c as je, d as St, C as ve, e as we, f as Tn, h as On, i as Rn, j as Ct, k as at, l as Fn, m as it, n as Pn, o as vt, p as Bn, q as wt, s as Te, t as Ln, u as Wn, v as $n, w as zn, A as ee, x as En, P as Gn } from "../FinstrongStore-BbnA6Crl.mjs";
|
|
9
9
|
import { y as Gi, F as Hi } from "../FinstrongStore-BbnA6Crl.mjs";
|
|
10
10
|
import * as st from "d3";
|
|
11
11
|
import { observer as S } from "mobx-react-lite";
|
|
12
|
-
import { u as w, b as j, p as J, z as F, q as
|
|
12
|
+
import { u as w, b as j, p as J, z as F, q as Hn, a as kt, d as Me, m as Ye, g as Nn, f as Kn, j as Ve, h as jn, i as Yn } from "../hooks-C41HAxM5.mjs";
|
|
13
13
|
import { L as Q } from "../Loader-DUaFpDGv.mjs";
|
|
14
14
|
import m from "react";
|
|
15
15
|
import $ from "@mui/material/Button";
|
|
@@ -21,9 +21,9 @@ import pe from "@mui/material/Tab";
|
|
|
21
21
|
import qe from "@mui/material/Tabs";
|
|
22
22
|
import Oe from "@mui/material/TextField";
|
|
23
23
|
import { u as Ue } from "../useScreenSize-B6JyS_Lj.mjs";
|
|
24
|
-
import { D as
|
|
24
|
+
import { D as Vn, f as Xn, a as qn } from "../Dialog-BPTr3qHE.mjs";
|
|
25
25
|
import { u as It } from "../useDimensions-27p2evRx.mjs";
|
|
26
|
-
import
|
|
26
|
+
import Un from "@mui/material/Chip";
|
|
27
27
|
import { D as te } from "../Drawer-BEtCk82g.mjs";
|
|
28
28
|
import ne from "@mui/material/Divider";
|
|
29
29
|
import ye from "@mui/material/ListItem";
|
|
@@ -31,34 +31,34 @@ import At from "@mui/material/ListItemAvatar";
|
|
|
31
31
|
import be from "@mui/material/ListItemText";
|
|
32
32
|
import { g as Tt } from "../AccountFields-CPkGZ3SD.mjs";
|
|
33
33
|
import Re from "@mui/material/List";
|
|
34
|
-
import
|
|
35
|
-
import
|
|
34
|
+
import Zn from "@mui/material/ListItemButton";
|
|
35
|
+
import Jn from "@mui/material/ListSubheader";
|
|
36
36
|
import { f as W } from "../NumberFormatting-Buh7u8Oi.mjs";
|
|
37
|
-
import { S as ct, F as Ot, e as
|
|
38
|
-
import { Button as
|
|
39
|
-
import { S as
|
|
37
|
+
import { S as ct, F as Ot, e as Qn, R as Rt } from "../RecurringTransactions-CngsRZ3K.mjs";
|
|
38
|
+
import { Button as eo } from "@mui/material";
|
|
39
|
+
import { S as to } from "../StatusBar-BK_uYHAB.mjs";
|
|
40
40
|
import { h as Ze } from "../DateUtil-CBdcsyuk.mjs";
|
|
41
|
-
import { useVirtualizer as
|
|
42
|
-
import { u as
|
|
43
|
-
import { A as
|
|
41
|
+
import { useVirtualizer as no } from "@tanstack/react-virtual";
|
|
42
|
+
import { u as oo, s as Ne, h as Ft, S as Pt, b as Bt, Z as ro } from "../TransactionDetails-CaJruWq3.mjs";
|
|
43
|
+
import { A as ao, W as io } from "../WidgetContainer-6dsjtOVg.mjs";
|
|
44
44
|
import { T as ue } from "../TabContentContainer-j01JYR_7.mjs";
|
|
45
45
|
import { b as Y } from "../Localization-2MODESHW.mjs";
|
|
46
46
|
import { E as Fe } from "../EmptyState-DoxNUae-.mjs";
|
|
47
|
-
import
|
|
48
|
-
import { ChartsXAxis as
|
|
49
|
-
import { ChartsYAxis as
|
|
50
|
-
import { ResponsiveChartContainer as
|
|
51
|
-
import { useSpring as
|
|
52
|
-
import {
|
|
53
|
-
import { endOfMonth as
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
47
|
+
import so from "@mui/material/useMediaQuery";
|
|
48
|
+
import { ChartsXAxis as co } from "@mui/x-charts/ChartsXAxis";
|
|
49
|
+
import { ChartsYAxis as lo } from "@mui/x-charts/ChartsYAxis";
|
|
50
|
+
import { ResponsiveChartContainer as po } from "@mui/x-charts/ResponsiveChartContainer";
|
|
51
|
+
import { useSpring as uo, animated as lt } from "@react-spring/web";
|
|
52
|
+
import { startOfMonth as Lt } from "date-fns/startOfMonth";
|
|
53
|
+
import { endOfMonth as Wt } from "date-fns/endOfMonth";
|
|
54
|
+
import { g as _o, S as ho, b as mo } from "../SpendingLegend-CNmu1Tdv.mjs";
|
|
55
|
+
import { formatISO as go } from "date-fns/formatISO";
|
|
56
|
+
import { fromUnixTime as yo } from "date-fns/fromUnixTime";
|
|
57
57
|
import { startOfToday as dt } from "date-fns/startOfToday";
|
|
58
58
|
import { subDays as bo } from "date-fns/subDays";
|
|
59
59
|
import { c as fo, d as pt, S as xo, i as So } from "../ManageIncome-n6qSYGHO.mjs";
|
|
60
60
|
import { LocalizationProvider as Co, DatePicker as vo, StaticDatePicker as wo } from "@mui/x-date-pickers";
|
|
61
|
-
import { AdapterDateFns as
|
|
61
|
+
import { AdapterDateFns as $t } from "@mui/x-date-pickers/AdapterDateFnsV3";
|
|
62
62
|
import { R as ko } from "../RecurringSettings-BwnDPthJ.mjs";
|
|
63
63
|
import { LocalizationProvider as Mo } from "@mui/x-date-pickers/LocalizationProvider";
|
|
64
64
|
import { format as Do } from "date-fns/format";
|
|
@@ -92,12 +92,12 @@ const zo = ({
|
|
|
92
92
|
{ offset: "36.67%", color: x.palette.chartMono.chartMono3 },
|
|
93
93
|
{ offset: "59.72%", color: x.palette.chartMono.chartMono4 },
|
|
94
94
|
{ offset: "83.46%", color: x.palette.chartMono.chartMono5 }
|
|
95
|
-
], [y, D] =
|
|
95
|
+
], [y, D] = Dn(
|
|
96
96
|
t,
|
|
97
97
|
c,
|
|
98
98
|
o,
|
|
99
99
|
r
|
|
100
|
-
), [g, f] =
|
|
100
|
+
), [g, f] = In(
|
|
101
101
|
y,
|
|
102
102
|
D,
|
|
103
103
|
r,
|
|
@@ -127,7 +127,7 @@ const zo = ({
|
|
|
127
127
|
}
|
|
128
128
|
) })
|
|
129
129
|
] });
|
|
130
|
-
},
|
|
130
|
+
}, zt = ({
|
|
131
131
|
arcRadius: t = 100,
|
|
132
132
|
healthScore: r,
|
|
133
133
|
size: n = "L",
|
|
@@ -141,11 +141,11 @@ const zo = ({
|
|
|
141
141
|
footerRightContent: h,
|
|
142
142
|
isFinacialStrengthGraph: _ = !1
|
|
143
143
|
}) => {
|
|
144
|
-
const b = E(), x = -Math.PI / 1.35, v = Math.PI / 1.35, y = v - x, D = y / (a - c), g = (r - c) * D, f = x + g + 0.02, M = n !== "SM" ? 0.1 : 0.12, P = t, G = t * (1 - M), H = P * 2.5, T = H / 2, V = H / 2, re = (G + P) / 2, ae = r !== 25 && r !== 50 && r !== 75 && r !== 100 ? 0 : 0.12, [Ce, ie] =
|
|
144
|
+
const b = E(), x = -Math.PI / 1.35, v = Math.PI / 1.35, y = v - x, D = y / (a - c), g = (r - c) * D, f = x + g + 0.02, M = n !== "SM" ? 0.1 : 0.12, P = t, G = t * (1 - M), H = P * 2.5, T = H / 2, V = H / 2, re = (G + P) / 2, ae = r !== 25 && r !== 50 && r !== 75 && r !== 100 ? 0 : 0.12, [Ce, ie] = An(re, f, ae), X = r / 25, se = {
|
|
145
145
|
L: { markerSize: 12, healthScoreFontSize: 64 },
|
|
146
146
|
M: { markerSize: 10, healthScoreFontSize: 48 },
|
|
147
147
|
SM: { markerSize: 3, healthScoreFontSize: 14 }
|
|
148
|
-
}, ce = l === 0 ?
|
|
148
|
+
}, ce = l === 0 ? mn : gn;
|
|
149
149
|
return /* @__PURE__ */ i(
|
|
150
150
|
u,
|
|
151
151
|
{
|
|
@@ -157,7 +157,7 @@ const zo = ({
|
|
|
157
157
|
},
|
|
158
158
|
children: [
|
|
159
159
|
/* @__PURE__ */ e(
|
|
160
|
-
|
|
160
|
+
_n,
|
|
161
161
|
{
|
|
162
162
|
height: H,
|
|
163
163
|
margin: { top: 0, right: 0, bottom: 0, left: 0 },
|
|
@@ -304,7 +304,7 @@ const zo = ({
|
|
|
304
304
|
]
|
|
305
305
|
}
|
|
306
306
|
);
|
|
307
|
-
},
|
|
307
|
+
}, Et = S(
|
|
308
308
|
({ arcRadius: t, size: r = "L", healthScore: n, footerCenterContent: o }) => {
|
|
309
309
|
const c = [
|
|
310
310
|
{ id: 1, label: "Group A", value: 25 },
|
|
@@ -313,7 +313,7 @@ const zo = ({
|
|
|
313
313
|
{ id: 4, label: "Group D", value: 25 }
|
|
314
314
|
], { finstrong: a } = w(), s = je(n, a);
|
|
315
315
|
return /* @__PURE__ */ e(
|
|
316
|
-
|
|
316
|
+
zt,
|
|
317
317
|
{
|
|
318
318
|
arcRadius: t,
|
|
319
319
|
dialScoreData: c,
|
|
@@ -373,7 +373,7 @@ const zo = ({
|
|
|
373
373
|
p.credit_score_status
|
|
374
374
|
);
|
|
375
375
|
return /* @__PURE__ */ e(
|
|
376
|
-
|
|
376
|
+
zt,
|
|
377
377
|
{
|
|
378
378
|
arcRadius: t,
|
|
379
379
|
dialScoreData: l,
|
|
@@ -471,7 +471,7 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
471
471
|
!d || d === s.credit_score || a({ ...s, credit_score: d });
|
|
472
472
|
};
|
|
473
473
|
return /* @__PURE__ */ e(
|
|
474
|
-
|
|
474
|
+
Vn,
|
|
475
475
|
{
|
|
476
476
|
copy: { close_aria: n.close_aria, title: o.edit_credit_score },
|
|
477
477
|
disablePrimaryButton: !d || !p,
|
|
@@ -510,7 +510,7 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
510
510
|
)
|
|
511
511
|
}
|
|
512
512
|
);
|
|
513
|
-
},
|
|
513
|
+
}, Gt = S(Go), ze = {
|
|
514
514
|
credit_over_time_title: "Your Credit Over Time",
|
|
515
515
|
credit_over_time_zero_state_desc: "Add your credit score to start building a full picture of your credit health."
|
|
516
516
|
}, Ho = ({ chartFor: t }) => {
|
|
@@ -543,7 +543,7 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
543
543
|
title: ze.credit_over_time_title,
|
|
544
544
|
valueKey: "credit_score"
|
|
545
545
|
}
|
|
546
|
-
}[t], _ =
|
|
546
|
+
}[t], _ = Tn(o, h.valueKey), b = Math.max(...o.map((M) => M[h.valueKey])), x = () => b >= 1e6 ? { formatter: "0.000a", leftMargin: 55 } : b >= 1e3 ? { formatter: "0a", leftMargin: 35 } : { formatter: "0a", leftMargin: 30 }, { formatter: v, leftMargin: y } = x(), D = h.title, g = t === "creditOverTime";
|
|
547
547
|
let f;
|
|
548
548
|
if (g) {
|
|
549
549
|
const { color: M } = St(
|
|
@@ -599,7 +599,7 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
599
599
|
}, Je = S(Ho), No = {
|
|
600
600
|
updated_score: "Updated Score"
|
|
601
601
|
}, Ko = () => {
|
|
602
|
-
const { healthScoreChange: t } = F(), { user: r } = J(), { availableWidth: n } =
|
|
602
|
+
const { healthScoreChange: t } = F(), { user: r } = J(), { availableWidth: n } = Hn(), { isSmallMobile: o } = Ue(n), [c, a] = m.useState(!1);
|
|
603
603
|
return /* @__PURE__ */ i(u, { sx: { gap: 28 }, children: [
|
|
604
604
|
/* @__PURE__ */ e(
|
|
605
605
|
Eo,
|
|
@@ -611,18 +611,18 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
611
611
|
}
|
|
612
612
|
),
|
|
613
613
|
/* @__PURE__ */ e($, { onClick: () => a(!0), variant: "contained", children: No.updated_score }),
|
|
614
|
-
/* @__PURE__ */ e(
|
|
614
|
+
/* @__PURE__ */ e(Gt, { isOpen: c, onClose: () => a(!1) }),
|
|
615
615
|
/* @__PURE__ */ e(Je, { chartFor: "creditOverTime" })
|
|
616
616
|
] });
|
|
617
617
|
}, jo = S(Ko), Le = ({ status: t }) => {
|
|
618
|
-
const { finstrong: r } = w(), n =
|
|
618
|
+
const { finstrong: r } = w(), n = On(Rn[t]), o = {
|
|
619
619
|
GOOD: r.key_indicators_good,
|
|
620
620
|
FAIR: r.key_indicators_fair,
|
|
621
621
|
OFF_TRACK: r.key_indicators_off_track,
|
|
622
622
|
MISSING: r.key_indicators_missing
|
|
623
623
|
}[t];
|
|
624
624
|
return /* @__PURE__ */ e(
|
|
625
|
-
|
|
625
|
+
Un,
|
|
626
626
|
{
|
|
627
627
|
label: /* @__PURE__ */ e(
|
|
628
628
|
k,
|
|
@@ -706,7 +706,7 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
706
706
|
)
|
|
707
707
|
] })
|
|
708
708
|
] }) : /* @__PURE__ */ e(Q, {});
|
|
709
|
-
},
|
|
709
|
+
}, Ht = S(qo), Uo = ({
|
|
710
710
|
onClick: t,
|
|
711
711
|
shouldShowBalance: r = !0,
|
|
712
712
|
loadAccounts: n
|
|
@@ -730,7 +730,7 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
730
730
|
return /* @__PURE__ */ i(
|
|
731
731
|
Re,
|
|
732
732
|
{
|
|
733
|
-
subheader: /* @__PURE__ */ e(
|
|
733
|
+
subheader: /* @__PURE__ */ e(Jn, { sx: { pb: 4, position: "static", pt: 12, px: 24 }, children: /* @__PURE__ */ i(u, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
|
|
734
734
|
/* @__PURE__ */ e(I, { bold: !0, variant: "caption", children: c.account_types[l] }),
|
|
735
735
|
r && /* @__PURE__ */ e(I, { bold: !0, variant: "caption", children: W(h, "0,0.00") })
|
|
736
736
|
] }) }),
|
|
@@ -751,7 +751,7 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
751
751
|
r && /* @__PURE__ */ e(k, { bold: !0, variant: "body2", children: W(x ?? 0, "0,0.00") })
|
|
752
752
|
] });
|
|
753
753
|
return /* @__PURE__ */ i(m.Fragment, { children: [
|
|
754
|
-
/* @__PURE__ */ e(ye, { sx: { px: t ? 0 : 24 }, children: t ? /* @__PURE__ */ e(
|
|
754
|
+
/* @__PURE__ */ e(ye, { sx: { px: t ? 0 : 24 }, children: t ? /* @__PURE__ */ e(Zn, { onClick: () => s(_), children: y }) : y }),
|
|
755
755
|
b !== p.length - 1 && /* @__PURE__ */ e(ne, { variant: "inset" })
|
|
756
756
|
] }, _.guid);
|
|
757
757
|
}),
|
|
@@ -761,7 +761,7 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
761
761
|
l
|
|
762
762
|
);
|
|
763
763
|
}) }) : null;
|
|
764
|
-
},
|
|
764
|
+
}, Nt = S(Uo), Zo = ({ loadAccounts: t, loadMoreLabel: r }) => {
|
|
765
765
|
const n = E(), { config: o } = kt(), { connect: c, finstrong: a } = w(), { accounts: s } = w(), { selectedAccounts: d } = j(), [l, p] = m.useState(!1), [h, _] = m.useState(!1), b = m.useMemo(
|
|
766
766
|
() => d.filter(
|
|
767
767
|
(y) => t ? t.includes(y.account_type) : !0
|
|
@@ -804,7 +804,7 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
804
804
|
] })
|
|
805
805
|
}
|
|
806
806
|
) }),
|
|
807
|
-
/* @__PURE__ */ e(te, { isOpen: l, onClose: () => p(!1), title: a.accounts, children: /* @__PURE__ */ e(
|
|
807
|
+
/* @__PURE__ */ e(te, { isOpen: l, onClose: () => p(!1), title: a.accounts, children: /* @__PURE__ */ e(Nt, { loadAccounts: t }) })
|
|
808
808
|
] })
|
|
809
809
|
] }) : /* @__PURE__ */ i(z, { children: [
|
|
810
810
|
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(
|
|
@@ -826,7 +826,7 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
826
826
|
}
|
|
827
827
|
)
|
|
828
828
|
] });
|
|
829
|
-
},
|
|
829
|
+
}, Kt = S(Zo), Se = ({ balance: t, title: r, sx: n }) => /* @__PURE__ */ i(
|
|
830
830
|
u,
|
|
831
831
|
{
|
|
832
832
|
sx: {
|
|
@@ -881,7 +881,7 @@ const L = {
|
|
|
881
881
|
], tr = ({ total: t }) => {
|
|
882
882
|
const r = Math.ceil((t + 1) / 1e3) * 1e3, [n, o] = m.useState(0), [c, a] = m.useState(at(t)), [s, d] = m.useState(
|
|
883
883
|
at(t)
|
|
884
|
-
), [l, p] = m.useState(r), [h, _] = m.useState(
|
|
884
|
+
), [l, p] = m.useState(r), [h, _] = m.useState(Fn(t)), [b, x] = m.useState(ke.Months);
|
|
885
885
|
m.useEffect(() => {
|
|
886
886
|
o(
|
|
887
887
|
it({
|
|
@@ -998,7 +998,7 @@ const L = {
|
|
|
998
998
|
return /* @__PURE__ */ i(u, { sx: { gap: 24 }, children: [
|
|
999
999
|
/* @__PURE__ */ e(K, { sx: { bgcolor: "background.paper", p: 16 }, children: /* @__PURE__ */ i(u, { sx: { gap: 16 }, children: [
|
|
1000
1000
|
/* @__PURE__ */ e(Se, { balance: o, title: Ae.your_savings }),
|
|
1001
|
-
t.length ? /* @__PURE__ */ e(
|
|
1001
|
+
t.length ? /* @__PURE__ */ e(Kt, { loadAccounts: [He.SAVINGS], loadMoreLabel: Ae.connect_accounts }) : /* @__PURE__ */ e(eo, { onClick: () => n(!0), variant: "contained", children: Ae.connect_accounts })
|
|
1002
1002
|
] }) }),
|
|
1003
1003
|
/* @__PURE__ */ e(nr, { total: o }),
|
|
1004
1004
|
/* @__PURE__ */ e(
|
|
@@ -1063,7 +1063,7 @@ const L = {
|
|
|
1063
1063
|
)
|
|
1064
1064
|
] }),
|
|
1065
1065
|
/* @__PURE__ */ i(u, { children: [
|
|
1066
|
-
/* @__PURE__ */ e(
|
|
1066
|
+
/* @__PURE__ */ e(to, { data: s, height: 16 }),
|
|
1067
1067
|
o
|
|
1068
1068
|
] })
|
|
1069
1069
|
]
|
|
@@ -1073,7 +1073,7 @@ const L = {
|
|
|
1073
1073
|
), ar = {
|
|
1074
1074
|
sticky_label: "You have saved"
|
|
1075
1075
|
}, ir = ["$0", "$250", "$500", "$750", "$1k"], sr = () => {
|
|
1076
|
-
const { healthScore: t } = F(), r = Math.round(t.emergency_savings_on_hand ?? NaN) || null, n =
|
|
1076
|
+
const { healthScore: t } = F(), r = Math.round(t.emergency_savings_on_hand ?? NaN) || null, n = Pn(r), o = vt(r);
|
|
1077
1077
|
return /* @__PURE__ */ e(
|
|
1078
1078
|
We,
|
|
1079
1079
|
{
|
|
@@ -1110,19 +1110,19 @@ const L = {
|
|
|
1110
1110
|
showInsights: a = !1,
|
|
1111
1111
|
showLoader: s = !1,
|
|
1112
1112
|
width: d = "100%",
|
|
1113
|
-
zeroState: l = /* @__PURE__ */ e(
|
|
1113
|
+
zeroState: l = /* @__PURE__ */ e(ro, {})
|
|
1114
1114
|
}) => {
|
|
1115
|
-
const { getCategoryName: p } = Ye(), { onEvent: h } =
|
|
1115
|
+
const { getCategoryName: p } = Ye(), { onEvent: h } = Nn(), { categories: _ } = w(), { clearExpandedSplits: b, setShowInsights: x, toggleSplit: v } = oo(), y = (f) => {
|
|
1116
1116
|
const M = t.find((P) => P.guid === f);
|
|
1117
1117
|
if (M?.has_been_split) {
|
|
1118
1118
|
v(M.guid);
|
|
1119
1119
|
return;
|
|
1120
1120
|
}
|
|
1121
|
-
h(
|
|
1121
|
+
h(ao.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
|
|
1122
1122
|
account_guid: M?.account_guid,
|
|
1123
1123
|
transaction_guid: f
|
|
1124
1124
|
}), c?.(f);
|
|
1125
|
-
}, D = m.useRef(null), g =
|
|
1125
|
+
}, D = m.useRef(null), g = no({
|
|
1126
1126
|
count: t.length,
|
|
1127
1127
|
getScrollElement: () => D.current,
|
|
1128
1128
|
estimateSize: (f) => ut + (Ne(f, t) ? _t : 0),
|
|
@@ -1215,7 +1215,7 @@ const L = {
|
|
|
1215
1215
|
},
|
|
1216
1216
|
children: [
|
|
1217
1217
|
/* @__PURE__ */ e(u, { sx: { pb: 14 }, children: /* @__PURE__ */ e(
|
|
1218
|
-
|
|
1218
|
+
kn,
|
|
1219
1219
|
{
|
|
1220
1220
|
categoryGuid: y.top_level_category_guid || "",
|
|
1221
1221
|
merchantGuid: y.merchant_guid || "",
|
|
@@ -1300,7 +1300,7 @@ const L = {
|
|
|
1300
1300
|
width: "100%"
|
|
1301
1301
|
},
|
|
1302
1302
|
children: [
|
|
1303
|
-
/* @__PURE__ */ e(
|
|
1303
|
+
/* @__PURE__ */ e(yn, { filled: !0, size: 48, sx: { color: "success.main" } }),
|
|
1304
1304
|
/* @__PURE__ */ i(u, { sx: { alignItems: "center", gap: 4, pt: 24 }, children: [
|
|
1305
1305
|
/* @__PURE__ */ e(N, { children: t.pay_bills_on_time_zero_fees_title }),
|
|
1306
1306
|
/* @__PURE__ */ e(k, { variant: "subtitle1", children: t.pay_bills_on_time_zero_fees_description })
|
|
@@ -1322,8 +1322,8 @@ const L = {
|
|
|
1322
1322
|
{
|
|
1323
1323
|
amountColor: "text.primary",
|
|
1324
1324
|
amountPosition: "flex-start",
|
|
1325
|
-
formatDate: (o) =>
|
|
1326
|
-
secondaryIcon: /* @__PURE__ */ e(
|
|
1325
|
+
formatDate: (o) => Xn(new Date(o * 1e3), qn.MONTH_DAY),
|
|
1326
|
+
secondaryIcon: /* @__PURE__ */ e(bn, { color: "error", filled: !0, size: 12 }),
|
|
1327
1327
|
transactions: n.spendingFee
|
|
1328
1328
|
}
|
|
1329
1329
|
)
|
|
@@ -1331,7 +1331,7 @@ const L = {
|
|
|
1331
1331
|
}
|
|
1332
1332
|
) });
|
|
1333
1333
|
}, ur = S(pr), _r = () => {
|
|
1334
|
-
const { healthScore: t } = F(), { finstrong: r } = w(), { key_indicators_spend: n } = r, { pay_bills_on_time_drawer: o } = n, c =
|
|
1334
|
+
const { healthScore: t } = F(), { finstrong: r } = w(), { key_indicators_spend: n } = r, { pay_bills_on_time_drawer: o } = n, c = Bn(t.spending_fee_transaction_count);
|
|
1335
1335
|
return /* @__PURE__ */ i(
|
|
1336
1336
|
u,
|
|
1337
1337
|
{
|
|
@@ -1365,7 +1365,7 @@ const L = {
|
|
|
1365
1365
|
}
|
|
1366
1366
|
),
|
|
1367
1367
|
/* @__PURE__ */ e(
|
|
1368
|
-
|
|
1368
|
+
Kt,
|
|
1369
1369
|
{
|
|
1370
1370
|
loadAccounts: [He.SAVINGS, He.CHECKING],
|
|
1371
1371
|
loadMoreLabel: r.more_accounts
|
|
@@ -1638,7 +1638,7 @@ const L = {
|
|
|
1638
1638
|
style: o,
|
|
1639
1639
|
...c
|
|
1640
1640
|
}) => {
|
|
1641
|
-
const a = E(), s = m.useRef(null), { width: d } =
|
|
1641
|
+
const a = E(), s = m.useRef(null), { width: d } = uo({
|
|
1642
1642
|
width: o.width
|
|
1643
1643
|
});
|
|
1644
1644
|
m.useLayoutEffect(() => {
|
|
@@ -1671,7 +1671,7 @@ const L = {
|
|
|
1671
1671
|
}
|
|
1672
1672
|
)
|
|
1673
1673
|
] });
|
|
1674
|
-
},
|
|
1674
|
+
}, jt = ({
|
|
1675
1675
|
chartFor: t,
|
|
1676
1676
|
data: r,
|
|
1677
1677
|
title: n,
|
|
@@ -1682,9 +1682,9 @@ const L = {
|
|
|
1682
1682
|
totalComparison: d,
|
|
1683
1683
|
totalMain: l
|
|
1684
1684
|
}) => {
|
|
1685
|
-
const p = E(), h =
|
|
1685
|
+
const p = E(), h = so(p.breakpoints.down("xs")), _ = m.useMemo(
|
|
1686
1686
|
() => r.sort((g, f) => g.month - f.month).map((g) => {
|
|
1687
|
-
const f =
|
|
1687
|
+
const f = Ln(g.month), M = {
|
|
1688
1688
|
spending_vs_income: {
|
|
1689
1689
|
main: g.standard_spend,
|
|
1690
1690
|
comparison: g.income,
|
|
@@ -1795,7 +1795,7 @@ const L = {
|
|
|
1795
1795
|
] })
|
|
1796
1796
|
] }),
|
|
1797
1797
|
/* @__PURE__ */ i(
|
|
1798
|
-
|
|
1798
|
+
po,
|
|
1799
1799
|
{
|
|
1800
1800
|
colors: [`${p.palette.chartMono.chartMono5}`, `${p.palette.chartMono.chartMono3}`],
|
|
1801
1801
|
dataset: _,
|
|
@@ -1809,7 +1809,7 @@ const L = {
|
|
|
1809
1809
|
yAxis: [D],
|
|
1810
1810
|
children: [
|
|
1811
1811
|
/* @__PURE__ */ e(
|
|
1812
|
-
|
|
1812
|
+
hn,
|
|
1813
1813
|
{
|
|
1814
1814
|
slots: {
|
|
1815
1815
|
bar: (g) => {
|
|
@@ -1832,7 +1832,7 @@ const L = {
|
|
|
1832
1832
|
}
|
|
1833
1833
|
),
|
|
1834
1834
|
/* @__PURE__ */ e(
|
|
1835
|
-
|
|
1835
|
+
co,
|
|
1836
1836
|
{
|
|
1837
1837
|
sx: () => ({
|
|
1838
1838
|
".MuiChartsAxis-line": {
|
|
@@ -1852,7 +1852,7 @@ const L = {
|
|
|
1852
1852
|
}
|
|
1853
1853
|
),
|
|
1854
1854
|
/* @__PURE__ */ e(
|
|
1855
|
-
|
|
1855
|
+
lo,
|
|
1856
1856
|
{
|
|
1857
1857
|
sx: () => ({
|
|
1858
1858
|
".MuiChartsAxis-line": {
|
|
@@ -1937,7 +1937,7 @@ const L = {
|
|
|
1937
1937
|
] }),
|
|
1938
1938
|
n.length ? /* @__PURE__ */ i(z, { children: [
|
|
1939
1939
|
/* @__PURE__ */ e(
|
|
1940
|
-
|
|
1940
|
+
jt,
|
|
1941
1941
|
{
|
|
1942
1942
|
chartFor: "debt_payment_vs_income",
|
|
1943
1943
|
data: n,
|
|
@@ -2022,12 +2022,16 @@ const L = {
|
|
|
2022
2022
|
}
|
|
2023
2023
|
);
|
|
2024
2024
|
}, Fr = S(Rr), Pr = () => {
|
|
2025
|
-
const t = E(), { monthlySummaries: r, handleFinstrongWidgetPrimaryCtaClick: n } = F(), { finstrong: o, goals: c, spending: a } = w(), { selectedAccounts: s, selectedAccountGuids: d } = j(), { categories: l, dateRangeCategoryTotals: p, loadDateRangeCategoryTotals: h } = Ye(), { appDataStore: _ } =
|
|
2025
|
+
const t = E(), { monthlySummaries: r, handleFinstrongWidgetPrimaryCtaClick: n } = F(), { finstrong: o, goals: c, spending: a } = w(), { selectedAccounts: s, selectedAccountGuids: d } = j(), { categories: l, dateRangeCategoryTotals: p, loadDateRangeCategoryTotals: h } = Ye(), { appDataStore: _ } = Kn(), [b, x] = m.useState("");
|
|
2026
2026
|
console.log(d, "selectedAccountGuids"), m.useEffect(() => {
|
|
2027
|
-
h(
|
|
2027
|
+
h(
|
|
2028
|
+
s,
|
|
2029
|
+
Lt(/* @__PURE__ */ new Date()),
|
|
2030
|
+
Wt(/* @__PURE__ */ new Date())
|
|
2031
|
+
).finally();
|
|
2028
2032
|
}, [s]);
|
|
2029
2033
|
const v = m.useMemo(
|
|
2030
|
-
() =>
|
|
2034
|
+
() => _o(l, c, t, p),
|
|
2031
2035
|
[l, p]
|
|
2032
2036
|
);
|
|
2033
2037
|
console.log(JSON.parse(JSON.stringify(v)), "spendingData");
|
|
@@ -2042,7 +2046,7 @@ const L = {
|
|
|
2042
2046
|
), [r]);
|
|
2043
2047
|
return /* @__PURE__ */ i(u, { sx: { gap: 24 }, children: [
|
|
2044
2048
|
r.length ? /* @__PURE__ */ e(
|
|
2045
|
-
|
|
2049
|
+
jt,
|
|
2046
2050
|
{
|
|
2047
2051
|
..._.appData.client_profile?.allow_trends_widget && {
|
|
2048
2052
|
buttonLabel: o.key_indicators_spend.spend_less_than_you_make_drawer.view_more
|
|
@@ -2116,7 +2120,7 @@ const L = {
|
|
|
2116
2120
|
),
|
|
2117
2121
|
/* @__PURE__ */ i(u, { sx: { gap: 12, py: 16, flexDirection: "row", justifyContent: "center" }, children: [
|
|
2118
2122
|
/* @__PURE__ */ e(
|
|
2119
|
-
|
|
2123
|
+
ho,
|
|
2120
2124
|
{
|
|
2121
2125
|
data: v,
|
|
2122
2126
|
onSelected: y,
|
|
@@ -2125,7 +2129,7 @@ const L = {
|
|
|
2125
2129
|
}
|
|
2126
2130
|
),
|
|
2127
2131
|
/* @__PURE__ */ e(
|
|
2128
|
-
|
|
2132
|
+
mo,
|
|
2129
2133
|
{
|
|
2130
2134
|
data: v,
|
|
2131
2135
|
onSelected: y,
|
|
@@ -2220,7 +2224,7 @@ const L = {
|
|
|
2220
2224
|
}
|
|
2221
2225
|
}[t];
|
|
2222
2226
|
return /* @__PURE__ */ e(
|
|
2223
|
-
|
|
2227
|
+
Ht,
|
|
2224
2228
|
{
|
|
2225
2229
|
connectDescription: a?.connectDescription,
|
|
2226
2230
|
connectTitle: a?.connectTitle,
|
|
@@ -2281,7 +2285,7 @@ const L = {
|
|
|
2281
2285
|
] });
|
|
2282
2286
|
}, $r = () => {
|
|
2283
2287
|
const { finstrong: t } = w(), { key_indicators_spend: r } = t, { healthScore: n } = F(), o = (s) => {
|
|
2284
|
-
const d =
|
|
2288
|
+
const d = $n(s), l = {
|
|
2285
2289
|
GOOD: r.ratio_good_description,
|
|
2286
2290
|
FAIR: r.ratio_fair_description,
|
|
2287
2291
|
OFF_TRACK: r.ratio_off_track_description,
|
|
@@ -2293,7 +2297,7 @@ const L = {
|
|
|
2293
2297
|
title: r.ratio_card_title
|
|
2294
2298
|
};
|
|
2295
2299
|
}, { spendToIncomeRatio: c, spendFeeCount: a } = m.useMemo(() => {
|
|
2296
|
-
const s = n.spend_to_income_ratio !== null ? Math.round(n.spend_to_income_ratio * 100) : null, d = o(s), l =
|
|
2300
|
+
const s = n.spend_to_income_ratio !== null ? Math.round(n.spend_to_income_ratio * 100) : null, d = o(s), l = Wn(
|
|
2297
2301
|
n.spending_fee_transaction_count,
|
|
2298
2302
|
r
|
|
2299
2303
|
);
|
|
@@ -2384,7 +2388,7 @@ const L = {
|
|
|
2384
2388
|
] });
|
|
2385
2389
|
}, Gr = S(Er), Hr = () => {
|
|
2386
2390
|
const { healthScore: t } = F(), { finstrong: r } = w(), { key_indicators_borrow: n } = r, { user: o } = J(), c = (l) => {
|
|
2387
|
-
const p =
|
|
2391
|
+
const p = zn(l), h = {
|
|
2388
2392
|
GOOD: n.manage_debit_good_description,
|
|
2389
2393
|
FAIR: n.manage_debit_fair_description,
|
|
2390
2394
|
OFF_TRACK: n.manage_debit_off_track_description,
|
|
@@ -2468,7 +2472,7 @@ const L = {
|
|
|
2468
2472
|
pe,
|
|
2469
2473
|
{
|
|
2470
2474
|
"aria-controls": "save-details-tabpanel-1",
|
|
2471
|
-
icon: /* @__PURE__ */ e(
|
|
2475
|
+
icon: /* @__PURE__ */ e(fn, { sx: { mr: 8 } }),
|
|
2472
2476
|
iconPosition: "start",
|
|
2473
2477
|
id: "save-details-tab-1",
|
|
2474
2478
|
label: n.key_indicators_save.title,
|
|
@@ -2479,7 +2483,7 @@ const L = {
|
|
|
2479
2483
|
pe,
|
|
2480
2484
|
{
|
|
2481
2485
|
"aria-controls": "borrow-details-tabpanel-2",
|
|
2482
|
-
icon: /* @__PURE__ */ e(
|
|
2486
|
+
icon: /* @__PURE__ */ e(xn, { sx: { mr: 8 } }),
|
|
2483
2487
|
iconPosition: "start",
|
|
2484
2488
|
id: "borrow-details-tab-2",
|
|
2485
2489
|
label: n.key_indicators_borrow.title,
|
|
@@ -2571,7 +2575,7 @@ const L = {
|
|
|
2571
2575
|
const n = E(), o = (c) => {
|
|
2572
2576
|
r(Math.floor(new Date(c).getTime() / 1e3));
|
|
2573
2577
|
};
|
|
2574
|
-
return /* @__PURE__ */ e(C, { sx: { p: 24 }, children: /* @__PURE__ */ e(Co, { dateAdapter:
|
|
2578
|
+
return /* @__PURE__ */ e(C, { sx: { p: 24 }, children: /* @__PURE__ */ e(Co, { dateAdapter: $t, children: /* @__PURE__ */ e(
|
|
2575
2579
|
vo,
|
|
2576
2580
|
{
|
|
2577
2581
|
disableFuture: !0,
|
|
@@ -2620,7 +2624,7 @@ const L = {
|
|
|
2620
2624
|
value: n ? t : ""
|
|
2621
2625
|
}
|
|
2622
2626
|
) });
|
|
2623
|
-
}, na = S(ta),
|
|
2627
|
+
}, na = S(ta), Yt = ({ value: t, completeCopy: r }) => /* @__PURE__ */ i(u, { sx: { gap: 8 }, children: [
|
|
2624
2628
|
/* @__PURE__ */ e(u, { sx: { flexDirection: "row", gap: 4 }, children: Array.from({ length: 4 }).map((n, o) => /* @__PURE__ */ e(
|
|
2625
2629
|
C,
|
|
2626
2630
|
{
|
|
@@ -2648,7 +2652,7 @@ const L = {
|
|
|
2648
2652
|
/* @__PURE__ */ e(N, { children: r }),
|
|
2649
2653
|
/* @__PURE__ */ e(k, { variant: "subtitle1", children: n })
|
|
2650
2654
|
] }),
|
|
2651
|
-
/* @__PURE__ */ e(
|
|
2655
|
+
/* @__PURE__ */ e(Yt, { completeCopy: t, value: o })
|
|
2652
2656
|
] }), ht = {
|
|
2653
2657
|
step: O.ConnectAccounts,
|
|
2654
2658
|
type: "main"
|
|
@@ -2671,11 +2675,11 @@ const L = {
|
|
|
2671
2675
|
do_it_later: "Do It Later",
|
|
2672
2676
|
next: "Next"
|
|
2673
2677
|
}, ra = ({ isOpen: t, onClose: r }) => {
|
|
2674
|
-
const { visibleAccounts: n } = Me(), { calculateHealthScore: o } = F(), { finstrong: c } = w(), { setSelectedAccounts: a } = j(), { addRepeatingTransaction: s, setDateRange: d } = Ve(), { filter: l, setFilter: p, transactions: h } =
|
|
2678
|
+
const { visibleAccounts: n } = Me(), { calculateHealthScore: o } = F(), { finstrong: c } = w(), { setSelectedAccounts: a } = j(), { addRepeatingTransaction: s, setDateRange: d } = Ve(), { filter: l, setFilter: p, transactions: h } = jn(), { user: _, userProfile: b, updateUser: x, updateUserProfile: v } = J(), [y, D] = m.useState(_.credit_score || 0), [g, f] = m.useState(
|
|
2675
2679
|
ht
|
|
2676
2680
|
), [M, P] = m.useState(1), [G, H] = m.useState(Ot.EveryMonth), [T, V] = m.useState([]), [re, ae] = m.useState(!1), [Ce, ie] = m.useState(!1), [X, se] = m.useState(_.birthday), [ce, he] = m.useState(15), [q, Qe] = m.useState("");
|
|
2677
2681
|
m.useEffect(() => {
|
|
2678
|
-
d({ start:
|
|
2682
|
+
d({ start: Lt(dt()), end: Wt(dt()) });
|
|
2679
2683
|
}, []), m.useEffect(() => {
|
|
2680
2684
|
p({
|
|
2681
2685
|
accounts: n.map((A) => A.guid),
|
|
@@ -2689,23 +2693,23 @@ const L = {
|
|
|
2689
2693
|
const et = m.useMemo(
|
|
2690
2694
|
() => h.find((A) => A.guid === q),
|
|
2691
2695
|
[q, h]
|
|
2692
|
-
),
|
|
2696
|
+
), Vt = m.useMemo(() => ({
|
|
2693
2697
|
[O.ConnectAccounts]: !0,
|
|
2694
2698
|
[O.MonthlyIncome]: !!q,
|
|
2695
2699
|
[O.Birthday]: !!_.birthday || !!X,
|
|
2696
2700
|
[O.CreditScore]: !!_.credit_score || !!y
|
|
2697
|
-
})[g.step], [y, g, X, q, _]), le = n.length > 0,
|
|
2701
|
+
})[g.step], [y, g, X, q, _]), le = n.length > 0, Xt = m.useMemo(() => {
|
|
2698
2702
|
const { step: A } = g;
|
|
2699
2703
|
let R = 0;
|
|
2700
2704
|
return A >= O.MonthlyIncome && le && R++, A >= O.Birthday && T.length && R++, A >= O.CreditScore && (_.birthday || _.credit_score) && R++, R;
|
|
2701
|
-
}, [g.step, le, T.length, _.birthday, _.credit_score]),
|
|
2705
|
+
}, [g.step, le, T.length, _.birthday, _.credit_score]), qt = (A) => {
|
|
2702
2706
|
p({
|
|
2703
2707
|
...l,
|
|
2704
2708
|
custom: (R) => A ? So(R, A) : pt(R)
|
|
2705
2709
|
});
|
|
2706
|
-
},
|
|
2710
|
+
}, Ut = {
|
|
2707
2711
|
[O.ConnectAccounts]: {
|
|
2708
|
-
main: le ? /* @__PURE__ */ e(
|
|
2712
|
+
main: le ? /* @__PURE__ */ e(Nt, { shouldShowBalance: !1 }) : null,
|
|
2709
2713
|
mainActionContent: le ? B.next : B.add_accounts,
|
|
2710
2714
|
primaryText: B.connect_your_accounts_primary,
|
|
2711
2715
|
secondaryText: B.connect_your_accounts_secondary
|
|
@@ -2735,7 +2739,7 @@ const L = {
|
|
|
2735
2739
|
main: /* @__PURE__ */ e(
|
|
2736
2740
|
xo,
|
|
2737
2741
|
{
|
|
2738
|
-
onSearch:
|
|
2742
|
+
onSearch: qt,
|
|
2739
2743
|
onSelected: (A) => {
|
|
2740
2744
|
f({ step: O.MonthlyIncome, type: "detail" }), Qe(A);
|
|
2741
2745
|
}
|
|
@@ -2760,14 +2764,14 @@ const L = {
|
|
|
2760
2764
|
}, tt = () => {
|
|
2761
2765
|
f(ht), ae(!1), Qe(""), r();
|
|
2762
2766
|
}, nt = async () => {
|
|
2763
|
-
ae(!0), await
|
|
2764
|
-
},
|
|
2767
|
+
ae(!0), await en(T), await o(), await v({ ...b, has_completed_finstrong_onboarding: !0 }), tt();
|
|
2768
|
+
}, Zt = () => {
|
|
2765
2769
|
if (g.step === O.CreditScore) {
|
|
2766
2770
|
nt();
|
|
2767
2771
|
return;
|
|
2768
2772
|
}
|
|
2769
2773
|
f({ step: g.step + 1, type: "main" });
|
|
2770
|
-
},
|
|
2774
|
+
}, Jt = () => {
|
|
2771
2775
|
const { step: A } = g, R = A + 1;
|
|
2772
2776
|
switch (A) {
|
|
2773
2777
|
case O.Birthday:
|
|
@@ -2790,7 +2794,7 @@ const L = {
|
|
|
2790
2794
|
break;
|
|
2791
2795
|
}
|
|
2792
2796
|
R in O && f({ step: R, type: "main" });
|
|
2793
|
-
},
|
|
2797
|
+
}, Qt = () => {
|
|
2794
2798
|
const { step: A, type: R } = g;
|
|
2795
2799
|
if (R === "detail") {
|
|
2796
2800
|
f({ step: A, type: "main" });
|
|
@@ -2801,40 +2805,40 @@ const L = {
|
|
|
2801
2805
|
return;
|
|
2802
2806
|
}
|
|
2803
2807
|
A > O.ConnectAccounts && f({ step: A - 1, type: "main" });
|
|
2804
|
-
},
|
|
2808
|
+
}, en = async (A) => {
|
|
2805
2809
|
for (const R of A) {
|
|
2806
2810
|
const {
|
|
2807
2811
|
account_guid: ge,
|
|
2808
2812
|
amount: Ie,
|
|
2809
2813
|
date: de,
|
|
2810
|
-
description:
|
|
2811
|
-
feed_description:
|
|
2812
|
-
firstDay:
|
|
2814
|
+
description: on,
|
|
2815
|
+
feed_description: rn,
|
|
2816
|
+
firstDay: an,
|
|
2813
2817
|
frequency: ot,
|
|
2814
|
-
secondDay:
|
|
2815
|
-
merchant_guid:
|
|
2816
|
-
payee:
|
|
2817
|
-
transaction_type:
|
|
2818
|
-
} = R,
|
|
2818
|
+
secondDay: sn,
|
|
2819
|
+
merchant_guid: cn,
|
|
2820
|
+
payee: ln,
|
|
2821
|
+
transaction_type: dn
|
|
2822
|
+
} = R, pn = Qn(ot, yo(de)), un = {
|
|
2819
2823
|
account_guid: ge,
|
|
2820
2824
|
amount: Ie,
|
|
2821
2825
|
created_by: 0,
|
|
2822
|
-
description:
|
|
2823
|
-
merchant_guid:
|
|
2824
|
-
predicted_occurs_on:
|
|
2825
|
-
recurrence_day:
|
|
2826
|
+
description: ln || on || rn,
|
|
2827
|
+
merchant_guid: cn,
|
|
2828
|
+
predicted_occurs_on: go(pn, { representation: "date" }),
|
|
2829
|
+
recurrence_day: an,
|
|
2826
2830
|
recurrence_type: ot,
|
|
2827
2831
|
repeating_transaction_type: Rt.Income,
|
|
2828
|
-
second_recurrence_day:
|
|
2829
|
-
transaction_type:
|
|
2832
|
+
second_recurrence_day: sn,
|
|
2833
|
+
transaction_type: dn,
|
|
2830
2834
|
user_guid: _.guid
|
|
2831
2835
|
};
|
|
2832
|
-
await s(
|
|
2836
|
+
await s(un, R);
|
|
2833
2837
|
}
|
|
2834
|
-
}, me =
|
|
2838
|
+
}, me = Ut[g.step], De = g.step === O.ConnectAccounts, tn = {
|
|
2835
2839
|
fullWidth: !0,
|
|
2836
2840
|
...De && !le && { startIcon: /* @__PURE__ */ e(ft, {}) }
|
|
2837
|
-
},
|
|
2841
|
+
}, nn = !De || De && !le;
|
|
2838
2842
|
return /* @__PURE__ */ i(m.Fragment, { children: [
|
|
2839
2843
|
/* @__PURE__ */ i(
|
|
2840
2844
|
te,
|
|
@@ -2842,15 +2846,15 @@ const L = {
|
|
|
2842
2846
|
footerStyles: { px: 24, py: 16 },
|
|
2843
2847
|
hasSecondaryAction: !De,
|
|
2844
2848
|
isOpen: t,
|
|
2845
|
-
isPrimaryDisabled: !
|
|
2849
|
+
isPrimaryDisabled: !Vt,
|
|
2846
2850
|
onClose: tt,
|
|
2847
|
-
onSecondaryAction:
|
|
2848
|
-
primaryButtonProps:
|
|
2851
|
+
onSecondaryAction: Qt,
|
|
2852
|
+
primaryButtonProps: tn,
|
|
2849
2853
|
primaryText: me?.mainActionContent,
|
|
2850
2854
|
secondaryColor: "primary",
|
|
2851
2855
|
secondaryText: B.back,
|
|
2852
2856
|
title: c.title,
|
|
2853
|
-
...!re && { onPrimaryAction:
|
|
2857
|
+
...!re && { onPrimaryAction: Jt },
|
|
2854
2858
|
children: [
|
|
2855
2859
|
re && /* @__PURE__ */ i(u, { sx: { alignItems: "center", gap: 24, position: "relative", px: 16, top: 126 }, children: [
|
|
2856
2860
|
/* @__PURE__ */ e(Pe, { children: B.calculate_primary }),
|
|
@@ -2863,12 +2867,12 @@ const L = {
|
|
|
2863
2867
|
completeCopy: c.complete,
|
|
2864
2868
|
primaryText: me.primaryText,
|
|
2865
2869
|
secondaryText: me.secondaryText,
|
|
2866
|
-
value:
|
|
2870
|
+
value: Xt
|
|
2867
2871
|
}
|
|
2868
2872
|
),
|
|
2869
2873
|
g.type === "main" && /* @__PURE__ */ i(C, { children: [
|
|
2870
2874
|
me.main,
|
|
2871
|
-
|
|
2875
|
+
nn && /* @__PURE__ */ e(u, { sx: { alignItems: "center", px: 24, py: 12 }, children: /* @__PURE__ */ e($, { fullWidth: !0, onClick: Zt, children: B.do_it_later }) })
|
|
2872
2876
|
] }),
|
|
2873
2877
|
g.type === "detail" && me.detail
|
|
2874
2878
|
] })
|
|
@@ -2903,7 +2907,7 @@ const L = {
|
|
|
2903
2907
|
},
|
|
2904
2908
|
children: [
|
|
2905
2909
|
/* @__PURE__ */ i(u, { sx: { alignItems: { sm: "center" }, gap: 24, width: "100%" }, children: [
|
|
2906
|
-
/* @__PURE__ */ e(C, { sx: { textAlign: "center" }, children: /* @__PURE__ */ e(
|
|
2910
|
+
/* @__PURE__ */ e(C, { sx: { textAlign: "center" }, children: /* @__PURE__ */ e(Sn, { size: 72 }) }),
|
|
2907
2911
|
/* @__PURE__ */ i(u, { sx: { gap: 4, textAlign: "center", width: { sm: 400 } }, children: [
|
|
2908
2912
|
/* @__PURE__ */ e(Pe, { children: Ge.onboarding_title }),
|
|
2909
2913
|
/* @__PURE__ */ e(k, { sx: { color: "text.secondary" }, variant: "subtitle1", children: Ge.onboarding_subtitle })
|
|
@@ -2929,7 +2933,7 @@ const L = {
|
|
|
2929
2933
|
},
|
|
2930
2934
|
onSecondaryAction: r,
|
|
2931
2935
|
title: n.date_of_birth,
|
|
2932
|
-
children: /* @__PURE__ */ e(Mo, { dateAdapter:
|
|
2936
|
+
children: /* @__PURE__ */ e(Mo, { dateAdapter: $t, children: /* @__PURE__ */ e(
|
|
2933
2937
|
wo,
|
|
2934
2938
|
{
|
|
2935
2939
|
disableFuture: !0,
|
|
@@ -2976,7 +2980,7 @@ const L = {
|
|
|
2976
2980
|
{
|
|
2977
2981
|
dynamicCopy: a.add_profile_item,
|
|
2978
2982
|
fallbackLabel: a.monthly_income,
|
|
2979
|
-
icon: /* @__PURE__ */ e(
|
|
2983
|
+
icon: /* @__PURE__ */ e(Cn, {}),
|
|
2980
2984
|
key: ee.MonthlyIncome,
|
|
2981
2985
|
label: a.monthly_income,
|
|
2982
2986
|
value: l
|
|
@@ -2984,7 +2988,7 @@ const L = {
|
|
|
2984
2988
|
{
|
|
2985
2989
|
dynamicCopy: a.add_profile_item,
|
|
2986
2990
|
fallbackLabel: a.date_of_birth,
|
|
2987
|
-
icon: /* @__PURE__ */ e(
|
|
2991
|
+
icon: /* @__PURE__ */ e(vn, {}),
|
|
2988
2992
|
key: ee.DateOfBirth,
|
|
2989
2993
|
label: a.date_of_birth,
|
|
2990
2994
|
value: d.birthday
|
|
@@ -3008,7 +3012,7 @@ const L = {
|
|
|
3008
3012
|
n.length > 1 ? a.accounts : a.account
|
|
3009
3013
|
) : void 0
|
|
3010
3014
|
}
|
|
3011
|
-
].map((x) =>
|
|
3015
|
+
].map((x) => En(x));
|
|
3012
3016
|
return /* @__PURE__ */ i(te, { isOpen: t, onClose: r, title: a.financial_profile, children: [
|
|
3013
3017
|
/* @__PURE__ */ i(u, { sx: { gap: 20, p: 24 }, children: [
|
|
3014
3018
|
/* @__PURE__ */ i(u, { sx: { gap: 8 }, children: [
|
|
@@ -3016,14 +3020,14 @@ const L = {
|
|
|
3016
3020
|
/* @__PURE__ */ e(k, { children: a.financial_profile_description })
|
|
3017
3021
|
] }),
|
|
3018
3022
|
/* @__PURE__ */ e(
|
|
3019
|
-
|
|
3023
|
+
Yt,
|
|
3020
3024
|
{
|
|
3021
3025
|
completeCopy: a.complete,
|
|
3022
3026
|
value: b.reduce((x, v) => x + (v.isComplete ? 1 : 0), 0)
|
|
3023
3027
|
}
|
|
3024
3028
|
)
|
|
3025
3029
|
] }),
|
|
3026
|
-
/* @__PURE__ */ e(
|
|
3030
|
+
/* @__PURE__ */ e(Gn, { list: b, onClickItem: h }),
|
|
3027
3031
|
/* @__PURE__ */ e(C, { sx: { p: 24 }, children: /* @__PURE__ */ e(
|
|
3028
3032
|
Be,
|
|
3029
3033
|
{
|
|
@@ -3044,7 +3048,7 @@ const L = {
|
|
|
3044
3048
|
}
|
|
3045
3049
|
),
|
|
3046
3050
|
/* @__PURE__ */ e(ca, { isOpen: p === ee.DateOfBirth, onClose: () => h(null) }),
|
|
3047
|
-
/* @__PURE__ */ e(
|
|
3051
|
+
/* @__PURE__ */ e(Gt, { isOpen: p === ee.CreditScore, onClose: () => h(null) }),
|
|
3048
3052
|
/* @__PURE__ */ e(
|
|
3049
3053
|
Mt,
|
|
3050
3054
|
{
|
|
@@ -3078,7 +3082,7 @@ const L = {
|
|
|
3078
3082
|
const y = o > 0 ? n.up_from : n.down_from, D = Y(y, l, p);
|
|
3079
3083
|
return /* @__PURE__ */ i(z, { children: [
|
|
3080
3084
|
/* @__PURE__ */ e(
|
|
3081
|
-
|
|
3085
|
+
Mn,
|
|
3082
3086
|
{
|
|
3083
3087
|
fill: !0,
|
|
3084
3088
|
name: "circle",
|
|
@@ -3162,7 +3166,7 @@ const L = {
|
|
|
3162
3166
|
if (!c || !a) return /* @__PURE__ */ e(Q, {});
|
|
3163
3167
|
const p = je(s.health_score || 0, o), h = d.slice().reverse();
|
|
3164
3168
|
return /* @__PURE__ */ e(
|
|
3165
|
-
|
|
3169
|
+
Ht,
|
|
3166
3170
|
{
|
|
3167
3171
|
additionalContent: /* @__PURE__ */ e(u, { sx: { pl: 18, backgroundColor: "background.paper" }, children: /* @__PURE__ */ e(
|
|
3168
3172
|
Xe,
|
|
@@ -3192,7 +3196,7 @@ const L = {
|
|
|
3192
3196
|
sx: { backgroundColor: "background.paper", gap: 16, pb: 12, pt: 8, px: 24 },
|
|
3193
3197
|
children: [
|
|
3194
3198
|
/* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(
|
|
3195
|
-
|
|
3199
|
+
Et,
|
|
3196
3200
|
{
|
|
3197
3201
|
arcRadius: 20,
|
|
3198
3202
|
healthScore: s?.health_score,
|
|
@@ -3380,7 +3384,7 @@ const L = {
|
|
|
3380
3384
|
}
|
|
3381
3385
|
),
|
|
3382
3386
|
/* @__PURE__ */ e(u, { sx: { justifyContent: "center", alignItems: "center" }, children: /* @__PURE__ */ e(
|
|
3383
|
-
|
|
3387
|
+
Et,
|
|
3384
3388
|
{
|
|
3385
3389
|
arcRadius: c <= 323 ? 73 : 154,
|
|
3386
3390
|
footerCenterContent: p,
|
|
@@ -3406,7 +3410,7 @@ const L = {
|
|
|
3406
3410
|
/* @__PURE__ */ e(
|
|
3407
3411
|
Wo,
|
|
3408
3412
|
{
|
|
3409
|
-
expandIcon: /* @__PURE__ */ e(
|
|
3413
|
+
expandIcon: /* @__PURE__ */ e(wn, { size: 20 }),
|
|
3410
3414
|
sx: {
|
|
3411
3415
|
height: 52,
|
|
3412
3416
|
p: 0,
|
|
@@ -3450,7 +3454,7 @@ const L = {
|
|
|
3450
3454
|
)
|
|
3451
3455
|
] });
|
|
3452
3456
|
}), fa = ({ onBackClick: t, sx: r, onPrimaryCtaClick: n }) => {
|
|
3453
|
-
const { visibleAccounts: o } = Me(), { dateRange: c, isDataLoaded: a, loadBudgetData: s, setTheme: d } =
|
|
3457
|
+
const { visibleAccounts: o } = Me(), { dateRange: c, isDataLoaded: a, loadBudgetData: s, setTheme: d } = Yn(), { reloadCategoryTotals: l } = Ye(), p = F(), {
|
|
3454
3458
|
augmentedChartData: h,
|
|
3455
3459
|
calculateHealthScore: _,
|
|
3456
3460
|
healthScore: b,
|
|
@@ -3469,7 +3473,7 @@ const L = {
|
|
|
3469
3473
|
const ce = () => {
|
|
3470
3474
|
}, he = () => ae(!0);
|
|
3471
3475
|
return /* @__PURE__ */ i(
|
|
3472
|
-
|
|
3476
|
+
io,
|
|
3473
3477
|
{
|
|
3474
3478
|
accountOptions: o,
|
|
3475
3479
|
actions: [
|
|
@@ -3575,8 +3579,8 @@ const L = {
|
|
|
3575
3579
|
}, $i = S(fa);
|
|
3576
3580
|
export {
|
|
3577
3581
|
Eo as CreditScoreGraph,
|
|
3578
|
-
|
|
3579
|
-
|
|
3582
|
+
zt as DialScoreCard,
|
|
3583
|
+
Et as FinancialStrengthGraph,
|
|
3580
3584
|
Gi as FinstrongApi,
|
|
3581
3585
|
Hi as FinstrongStore,
|
|
3582
3586
|
$i as FinstrongWidget
|
package/package.json
CHANGED