@mx-cartographer/experiences 7.2.14-alpha.san2 → 7.2.14-alpha.san4
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/components/KeyIndicatorsSpendTab.d.ts +1 -1
- package/dist/finstrong/components/KeyIndicatorsTabItem.d.ts +1 -1
- package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +1 -1
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeComponent.d.ts +1 -1
- package/dist/finstrong/index.es.js +71 -61
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
interface KeyIndicatorsSpendTabProps {
|
|
3
|
-
|
|
3
|
+
onPrimaryCtaClick?: (value: string) => () => void;
|
|
4
4
|
}
|
|
5
5
|
declare const _default: React.FunctionComponent<KeyIndicatorsSpendTabProps>;
|
|
6
6
|
export default _default;
|
|
@@ -6,7 +6,7 @@ interface KeyIndicatorsTabsItemProps {
|
|
|
6
6
|
title: string;
|
|
7
7
|
description: string;
|
|
8
8
|
cardState: keyof typeof CardStatus;
|
|
9
|
-
|
|
9
|
+
onPrimaryCtaClick?: (value: string) => () => void;
|
|
10
10
|
}
|
|
11
11
|
declare const KeyIndicatorsTabsItem: React.FC<KeyIndicatorsTabsItemProps>;
|
|
12
12
|
export default KeyIndicatorsTabsItem;
|
|
@@ -3,9 +3,9 @@ interface KeyIndicatorsTabItemDrawerProps {
|
|
|
3
3
|
drawerFor: KeyIndicatorsTabItemType;
|
|
4
4
|
isOpen: boolean;
|
|
5
5
|
onClose: () => void;
|
|
6
|
-
|
|
6
|
+
onPrimaryCtaClick?: (value: string) => () => void;
|
|
7
7
|
}
|
|
8
|
-
declare const _default: (({ drawerFor, isOpen, onClose,
|
|
8
|
+
declare const _default: (({ drawerFor, isOpen, onClose, onPrimaryCtaClick, }: KeyIndicatorsTabItemDrawerProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
9
9
|
displayName: string;
|
|
10
10
|
};
|
|
11
11
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
interface KeyIndicatorsTabsWidgetProps {
|
|
3
|
-
|
|
3
|
+
onPrimaryCtaClick?: (value: string) => () => void;
|
|
4
4
|
}
|
|
5
5
|
declare const _default: React.FunctionComponent<KeyIndicatorsTabsWidgetProps>;
|
|
6
6
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
interface SpendLessThanYouMakeComponentProps {
|
|
3
|
-
|
|
3
|
+
onPrimaryCtaClick?: (value: string) => () => void;
|
|
4
4
|
}
|
|
5
5
|
declare const _default: React.FunctionComponent<SpendLessThanYouMakeComponentProps>;
|
|
6
6
|
export default _default;
|
|
@@ -12,7 +12,7 @@ import { observer as S } from "mobx-react-lite";
|
|
|
12
12
|
import { u as w, b as j, p as Q, z as F, q as Hn, a as kt, d as ke, 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 J } from "../Loader-DUaFpDGv.mjs";
|
|
14
14
|
import m from "react";
|
|
15
|
-
import
|
|
15
|
+
import $ from "@mui/material/Button";
|
|
16
16
|
import K from "@mui/material/Card";
|
|
17
17
|
import { L as Xe } from "../LineChart-Ct9DNmhS.mjs";
|
|
18
18
|
import { C as Mt } from "../ConnectionsDrawer-Bz4uwdFE.mjs";
|
|
@@ -103,7 +103,7 @@ const zo = ({
|
|
|
103
103
|
r,
|
|
104
104
|
h,
|
|
105
105
|
_
|
|
106
|
-
), M = st.arc().innerRadius(l).outerRadius(d).startAngle(b).endAngle(D).padAngle(0.02).cornerRadius(8),
|
|
106
|
+
), M = st.arc().innerRadius(l).outerRadius(d).startAngle(b).endAngle(D).padAngle(0.02).cornerRadius(8), W = st.arc().innerRadius(l).outerRadius(d).startAngle(g).endAngle(C).padAngle(0.02).cornerRadius(8);
|
|
107
107
|
return /* @__PURE__ */ a(E, { children: [
|
|
108
108
|
/* @__PURE__ */ e(
|
|
109
109
|
"path",
|
|
@@ -112,7 +112,7 @@ const zo = ({
|
|
|
112
112
|
fill: y ? f.palette.divider : n
|
|
113
113
|
}
|
|
114
114
|
),
|
|
115
|
-
y && /* @__PURE__ */ e("path", { d:
|
|
115
|
+
y && /* @__PURE__ */ e("path", { d: W({}), fill: "url(#arcGradient)" }),
|
|
116
116
|
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e(
|
|
117
117
|
"linearGradient",
|
|
118
118
|
{
|
|
@@ -141,7 +141,7 @@ const zo = ({
|
|
|
141
141
|
footerRightContent: _,
|
|
142
142
|
isFinacialStrengthGraph: h = !1
|
|
143
143
|
}) => {
|
|
144
|
-
const y = G(), f = -Math.PI / 1.35, x = Math.PI / 1.35, b = x - f, D = b / (i - s), g = (r - s) * D, C = f + g + 0.02, M = n !== "SM" ? 0.1 : 0.12,
|
|
144
|
+
const y = G(), f = -Math.PI / 1.35, x = Math.PI / 1.35, b = x - f, D = b / (i - s), g = (r - s) * D, C = f + g + 0.02, M = n !== "SM" ? 0.1 : 0.12, W = t, H = t * (1 - M), O = W * 2.5, z = O / 2, V = O / 2, ee = (H + W) / 2, pe = r !== 25 && r !== 50 && r !== 75 && r !== 100 ? 0 : 0.12, [ue, _e] = An(ee, C, pe), X = r / 25, he = {
|
|
145
145
|
L: { markerSize: 12, healthScoreFontSize: 64 },
|
|
146
146
|
M: { markerSize: 10, healthScoreFontSize: 48 },
|
|
147
147
|
SM: { markerSize: 3, healthScoreFontSize: 14 }
|
|
@@ -165,7 +165,7 @@ const zo = ({
|
|
|
165
165
|
{
|
|
166
166
|
data: o,
|
|
167
167
|
innerRadius: H,
|
|
168
|
-
outerRadius:
|
|
168
|
+
outerRadius: W,
|
|
169
169
|
startAngle: Math.round(rt(f)),
|
|
170
170
|
// Use Math.degrees to convert
|
|
171
171
|
endAngle: Math.round(rt(x))
|
|
@@ -183,13 +183,13 @@ const zo = ({
|
|
|
183
183
|
arcColor: Me.color,
|
|
184
184
|
arcRadius: t,
|
|
185
185
|
arcStartAngle: f,
|
|
186
|
-
centerX:
|
|
186
|
+
centerX: z,
|
|
187
187
|
centerY: V,
|
|
188
188
|
dataIndex: Me.dataIndex,
|
|
189
189
|
dialScoreData: o,
|
|
190
190
|
innerArcRadius: H,
|
|
191
191
|
isFinacialStrengthGraph: h,
|
|
192
|
-
outterArcRadius:
|
|
192
|
+
outterArcRadius: W,
|
|
193
193
|
progressEndAngle: C,
|
|
194
194
|
totalAngularSpan: b,
|
|
195
195
|
unitsPerSegment: X
|
|
@@ -205,7 +205,7 @@ const zo = ({
|
|
|
205
205
|
children: r >= s && r <= i && /* @__PURE__ */ e(
|
|
206
206
|
"circle",
|
|
207
207
|
{
|
|
208
|
-
cx:
|
|
208
|
+
cx: z + ue,
|
|
209
209
|
cy: V + _e,
|
|
210
210
|
fill: y.palette.common.white,
|
|
211
211
|
r: he[n].markerSize,
|
|
@@ -221,7 +221,7 @@ const zo = ({
|
|
|
221
221
|
sx: {
|
|
222
222
|
position: "absolute",
|
|
223
223
|
top: `${V}px`,
|
|
224
|
-
left: `${
|
|
224
|
+
left: `${z}px`,
|
|
225
225
|
transform: "translate(-50%, -50%)",
|
|
226
226
|
textAlign: "center"
|
|
227
227
|
},
|
|
@@ -254,7 +254,7 @@ const zo = ({
|
|
|
254
254
|
sx: {
|
|
255
255
|
position: "absolute",
|
|
256
256
|
top: `${V * 2 * 0.83}px`,
|
|
257
|
-
left: `${
|
|
257
|
+
left: `${z}px`,
|
|
258
258
|
transform: "translate(-50%, -50%)",
|
|
259
259
|
textAlign: "center"
|
|
260
260
|
},
|
|
@@ -280,7 +280,7 @@ const zo = ({
|
|
|
280
280
|
sx: {
|
|
281
281
|
position: "absolute",
|
|
282
282
|
top: `${V * 2 * 0.83}px`,
|
|
283
|
-
left: `${
|
|
283
|
+
left: `${z - z / 2}px`,
|
|
284
284
|
// shift left from center
|
|
285
285
|
transform: "translate(-50%, -50%)",
|
|
286
286
|
textAlign: "left"
|
|
@@ -294,7 +294,7 @@ const zo = ({
|
|
|
294
294
|
sx: {
|
|
295
295
|
position: "absolute",
|
|
296
296
|
top: `${V * 2 * 0.83}px`,
|
|
297
|
-
left: `${
|
|
297
|
+
left: `${z + z / 2}px`,
|
|
298
298
|
transform: "translate(-50%, -50%)",
|
|
299
299
|
textAlign: "right"
|
|
300
300
|
},
|
|
@@ -434,7 +434,7 @@ const zo = ({
|
|
|
434
434
|
}
|
|
435
435
|
),
|
|
436
436
|
/* @__PURE__ */ e(
|
|
437
|
-
|
|
437
|
+
$,
|
|
438
438
|
{
|
|
439
439
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
440
440
|
onClick: () => d(!0),
|
|
@@ -610,7 +610,7 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
610
610
|
size: o ? "M" : "L"
|
|
611
611
|
}
|
|
612
612
|
),
|
|
613
|
-
/* @__PURE__ */ e(
|
|
613
|
+
/* @__PURE__ */ e($, { onClick: () => i(!0), variant: "contained", children: No.updated_score }),
|
|
614
614
|
/* @__PURE__ */ e(Gt, { isOpen: s, onClose: () => i(!1) }),
|
|
615
615
|
/* @__PURE__ */ e(Qe, { chartFor: "creditOverTime" })
|
|
616
616
|
] });
|
|
@@ -791,7 +791,7 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
791
791
|
] }, b.guid)) }),
|
|
792
792
|
y.length > 3 && /* @__PURE__ */ a(E, { children: [
|
|
793
793
|
/* @__PURE__ */ e(v, { children: /* @__PURE__ */ e(
|
|
794
|
-
|
|
794
|
+
$,
|
|
795
795
|
{
|
|
796
796
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
797
797
|
onClick: () => d(!0),
|
|
@@ -808,7 +808,7 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
808
808
|
] })
|
|
809
809
|
] }) : /* @__PURE__ */ a(E, { children: [
|
|
810
810
|
/* @__PURE__ */ e(v, { children: /* @__PURE__ */ e(
|
|
811
|
-
|
|
811
|
+
$,
|
|
812
812
|
{
|
|
813
813
|
onClick: () => h(!0),
|
|
814
814
|
size: "small",
|
|
@@ -984,7 +984,7 @@ const B = {
|
|
|
984
984
|
}
|
|
985
985
|
)
|
|
986
986
|
] }),
|
|
987
|
-
/* @__PURE__ */ e(
|
|
987
|
+
/* @__PURE__ */ e($, { fullWidth: !0, onClick: x, type: "submit", variant: "contained", children: B.calculate })
|
|
988
988
|
] }) }) });
|
|
989
989
|
}, nr = S(tr), Ae = {
|
|
990
990
|
connect_accounts: "Connect Accounts",
|
|
@@ -1113,7 +1113,7 @@ const B = {
|
|
|
1113
1113
|
zeroState: l = /* @__PURE__ */ e(ro, {})
|
|
1114
1114
|
}) => {
|
|
1115
1115
|
const { getCategoryName: d } = Ye(), { onEvent: _ } = Nn(), { categories: h } = w(), { clearExpandedSplits: y, setShowInsights: f, toggleSplit: x } = oo(), b = (C) => {
|
|
1116
|
-
const M = t.find((
|
|
1116
|
+
const M = t.find((W) => W.guid === C);
|
|
1117
1117
|
if (M?.has_been_split) {
|
|
1118
1118
|
x(M.guid);
|
|
1119
1119
|
return;
|
|
@@ -1141,7 +1141,7 @@ const B = {
|
|
|
1141
1141
|
c && o,
|
|
1142
1142
|
!c && g.getVirtualItems().length === 0 && l,
|
|
1143
1143
|
!c && g.getVirtualItems().length > 0 && g.getVirtualItems().map((C) => {
|
|
1144
|
-
const M = t[C.index],
|
|
1144
|
+
const M = t[C.index], W = Ne(C.index, t), H = Ft(C.index, t), O = ut + (W ? _t : 0);
|
|
1145
1145
|
return /* @__PURE__ */ a(
|
|
1146
1146
|
v,
|
|
1147
1147
|
{
|
|
@@ -1152,7 +1152,7 @@ const B = {
|
|
|
1152
1152
|
width: "100%"
|
|
1153
1153
|
},
|
|
1154
1154
|
children: [
|
|
1155
|
-
|
|
1155
|
+
W && /* @__PURE__ */ e(Pt, { bgcolor: r, children: Ze(M.date) }),
|
|
1156
1156
|
/* @__PURE__ */ e(
|
|
1157
1157
|
Bt,
|
|
1158
1158
|
{
|
|
@@ -1185,7 +1185,7 @@ const B = {
|
|
|
1185
1185
|
const i = G(), { connect: c, finstrong: p } = w(), [l, d] = m.useState(!1), [_, h] = m.useState(!1), y = 3, f = t.length > y, x = t.length - y;
|
|
1186
1186
|
return !t || t.length === 0 ? /* @__PURE__ */ a(E, { children: [
|
|
1187
1187
|
/* @__PURE__ */ e(v, { children: /* @__PURE__ */ e(
|
|
1188
|
-
|
|
1188
|
+
$,
|
|
1189
1189
|
{
|
|
1190
1190
|
onClick: () => h(!0),
|
|
1191
1191
|
size: "small",
|
|
@@ -1256,7 +1256,7 @@ const B = {
|
|
|
1256
1256
|
)) }),
|
|
1257
1257
|
f && /* @__PURE__ */ a(E, { children: [
|
|
1258
1258
|
/* @__PURE__ */ e(v, { children: /* @__PURE__ */ e(
|
|
1259
|
-
|
|
1259
|
+
$,
|
|
1260
1260
|
{
|
|
1261
1261
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
1262
1262
|
onClick: () => d(!0),
|
|
@@ -1574,7 +1574,7 @@ const B = {
|
|
|
1574
1574
|
// TODO: Need to add More Transactions functionality
|
|
1575
1575
|
/* @__PURE__ */ e(We, { transactions: r.income.map((c) => c.transaction) })
|
|
1576
1576
|
) : /* @__PURE__ */ e(
|
|
1577
|
-
|
|
1577
|
+
$,
|
|
1578
1578
|
{
|
|
1579
1579
|
onClick: () => {
|
|
1580
1580
|
i(!0);
|
|
@@ -1613,7 +1613,7 @@ const B = {
|
|
|
1613
1613
|
}
|
|
1614
1614
|
)
|
|
1615
1615
|
) : /* @__PURE__ */ e(
|
|
1616
|
-
|
|
1616
|
+
$,
|
|
1617
1617
|
{
|
|
1618
1618
|
onClick: () => {
|
|
1619
1619
|
i(!0);
|
|
@@ -1736,7 +1736,7 @@ const B = {
|
|
|
1736
1736
|
children: [
|
|
1737
1737
|
/* @__PURE__ */ e(N, { children: n }),
|
|
1738
1738
|
o && /* @__PURE__ */ e(
|
|
1739
|
-
|
|
1739
|
+
$,
|
|
1740
1740
|
{
|
|
1741
1741
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
1742
1742
|
onClick: s,
|
|
@@ -1813,11 +1813,11 @@ const B = {
|
|
|
1813
1813
|
{
|
|
1814
1814
|
slots: {
|
|
1815
1815
|
bar: (g) => {
|
|
1816
|
-
const { ownerState: C, style: M,
|
|
1816
|
+
const { ownerState: C, style: M, ...W } = g;
|
|
1817
1817
|
return /* @__PURE__ */ e(
|
|
1818
1818
|
Ar,
|
|
1819
1819
|
{
|
|
1820
|
-
|
|
1820
|
+
...W,
|
|
1821
1821
|
color: C.color,
|
|
1822
1822
|
data: h,
|
|
1823
1823
|
series: {
|
|
@@ -2022,7 +2022,7 @@ const B = {
|
|
|
2022
2022
|
}
|
|
2023
2023
|
);
|
|
2024
2024
|
}, Fr = S(Rr), Pr = ({
|
|
2025
|
-
|
|
2025
|
+
onPrimaryCtaClick: t
|
|
2026
2026
|
}) => {
|
|
2027
2027
|
const r = G(), { monthlySummaries: n } = F(), { finstrong: o, goals: s, spending: i } = w(), { selectedAccounts: c } = j(), { categories: p, dateRangeCategoryTotals: l, loadDateRangeCategoryTotals: d } = Ye(), { appDataStore: _ } = Kn(), [h, y] = m.useState("");
|
|
2028
2028
|
m.useEffect(() => {
|
|
@@ -2055,10 +2055,10 @@ const B = {
|
|
|
2055
2055
|
data: n,
|
|
2056
2056
|
legendLabelComparison: o.key_indicators_spend.spend_less_than_you_make_drawer.income,
|
|
2057
2057
|
legendLabelMain: o.key_indicators_spend.spend_less_than_you_make_drawer.spending,
|
|
2058
|
+
onClick: () => t?.("trends"),
|
|
2058
2059
|
title: o.key_indicators_spend.spend_less_than_you_make_drawer.trends,
|
|
2059
2060
|
totalComparison: L(D, "0,0.00"),
|
|
2060
|
-
totalMain: L(b, "0,0.00")
|
|
2061
|
-
onClick: t?.("Trends")
|
|
2061
|
+
totalMain: L(b, "0,0.00")
|
|
2062
2062
|
}
|
|
2063
2063
|
) : /* @__PURE__ */ e(
|
|
2064
2064
|
Fe,
|
|
@@ -2102,16 +2102,16 @@ const B = {
|
|
|
2102
2102
|
children: [
|
|
2103
2103
|
/* @__PURE__ */ e(N, { children: o.key_indicators_spend.spend_less_than_you_make_drawer.spending }),
|
|
2104
2104
|
_.appData.client_profile?.allow_spending_widget && /* @__PURE__ */ e(
|
|
2105
|
-
|
|
2105
|
+
$,
|
|
2106
2106
|
{
|
|
2107
2107
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
2108
|
+
onClick: () => t?.("spending"),
|
|
2108
2109
|
size: "small",
|
|
2109
2110
|
sx: {
|
|
2110
2111
|
pl: 8,
|
|
2111
2112
|
height: 24
|
|
2112
2113
|
},
|
|
2113
2114
|
variant: "text",
|
|
2114
|
-
onClick: t?.("Spending"),
|
|
2115
2115
|
children: o.key_indicators_spend.spend_less_than_you_make_drawer.view_more
|
|
2116
2116
|
}
|
|
2117
2117
|
)
|
|
@@ -2169,14 +2169,14 @@ const B = {
|
|
|
2169
2169
|
drawerFor: t,
|
|
2170
2170
|
isOpen: r,
|
|
2171
2171
|
onClose: n,
|
|
2172
|
-
|
|
2172
|
+
onPrimaryCtaClick: o
|
|
2173
2173
|
}) => {
|
|
2174
2174
|
const { finstrong: s } = w(), c = {
|
|
2175
2175
|
spendLessThanYouMake: {
|
|
2176
2176
|
title: s.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_title,
|
|
2177
2177
|
description: s.key_indicators_spend.spend_less_than_you_make_drawer.spend_less_than_you_make_description,
|
|
2178
2178
|
stickyComponent: /* @__PURE__ */ e(Fr, {}),
|
|
2179
|
-
content: /* @__PURE__ */ e(Br, {
|
|
2179
|
+
content: /* @__PURE__ */ e(Br, { onPrimaryCtaClick: o }),
|
|
2180
2180
|
drawerType: "connectDrawer",
|
|
2181
2181
|
connectTitle: s.connect_your_accounts,
|
|
2182
2182
|
connectDescription: s.connect_more_accounts_to_unlock_a_fuller_understanding_of_your_finances
|
|
@@ -2245,7 +2245,7 @@ const B = {
|
|
|
2245
2245
|
title: r,
|
|
2246
2246
|
description: n,
|
|
2247
2247
|
cardState: o = "MISSING",
|
|
2248
|
-
|
|
2248
|
+
onPrimaryCtaClick: s
|
|
2249
2249
|
}) => {
|
|
2250
2250
|
const [i, c] = m.useState(!1);
|
|
2251
2251
|
return /* @__PURE__ */ a(E, { children: [
|
|
@@ -2279,14 +2279,14 @@ const B = {
|
|
|
2279
2279
|
/* @__PURE__ */ e(
|
|
2280
2280
|
$r,
|
|
2281
2281
|
{
|
|
2282
|
-
handleFinstrongWidgetPrimaryCtaClick: s,
|
|
2283
2282
|
drawerFor: t,
|
|
2284
2283
|
isOpen: i,
|
|
2285
|
-
onClose: () => c(!1)
|
|
2284
|
+
onClose: () => c(!1),
|
|
2285
|
+
onPrimaryCtaClick: s
|
|
2286
2286
|
}
|
|
2287
2287
|
)
|
|
2288
2288
|
] });
|
|
2289
|
-
}, Wr = ({
|
|
2289
|
+
}, Wr = ({ onPrimaryCtaClick: t }) => {
|
|
2290
2290
|
const { finstrong: r } = w(), { key_indicators_spend: n } = r, { healthScore: o } = F(), s = (p) => {
|
|
2291
2291
|
const l = Wn(p), d = {
|
|
2292
2292
|
GOOD: n.ratio_good_description,
|
|
@@ -2318,8 +2318,8 @@ const B = {
|
|
|
2318
2318
|
cardState: i.cardState,
|
|
2319
2319
|
description: i.description,
|
|
2320
2320
|
drawerFor: de.SpendLessThanYouMake,
|
|
2321
|
-
|
|
2322
|
-
|
|
2321
|
+
onPrimaryCtaClick: t,
|
|
2322
|
+
title: i.title
|
|
2323
2323
|
}
|
|
2324
2324
|
),
|
|
2325
2325
|
/* @__PURE__ */ e(
|
|
@@ -2442,7 +2442,7 @@ const B = {
|
|
|
2442
2442
|
}
|
|
2443
2443
|
)
|
|
2444
2444
|
] });
|
|
2445
|
-
}, Nr = S(Hr), Kr = ({
|
|
2445
|
+
}, Nr = S(Hr), Kr = ({ onPrimaryCtaClick: t }) => {
|
|
2446
2446
|
const [r, n] = m.useState(0), { finstrong: o } = w();
|
|
2447
2447
|
return /* @__PURE__ */ a(E, { children: [
|
|
2448
2448
|
/* @__PURE__ */ a(
|
|
@@ -2497,7 +2497,7 @@ const B = {
|
|
|
2497
2497
|
]
|
|
2498
2498
|
}
|
|
2499
2499
|
),
|
|
2500
|
-
/* @__PURE__ */ e(le, { index: 0, name: "spend-details", value: r, children: /* @__PURE__ */ e(zr, {
|
|
2500
|
+
/* @__PURE__ */ e(le, { index: 0, name: "spend-details", value: r, children: /* @__PURE__ */ e(zr, { onPrimaryCtaClick: t }) }),
|
|
2501
2501
|
/* @__PURE__ */ e(le, { index: 1, name: "save-details", value: r, children: /* @__PURE__ */ e(Gr, {}) }),
|
|
2502
2502
|
/* @__PURE__ */ e(le, { index: 2, name: "borrow-details", value: r, children: /* @__PURE__ */ e(Nr, {}) })
|
|
2503
2503
|
] });
|
|
@@ -2510,7 +2510,7 @@ const B = {
|
|
|
2510
2510
|
/* @__PURE__ */ e(k, { sx: { width: { sm: 348 } }, variant: "subtitle1", children: r.missing_data_description })
|
|
2511
2511
|
] }),
|
|
2512
2512
|
/* @__PURE__ */ e(v, { children: /* @__PURE__ */ e(
|
|
2513
|
-
|
|
2513
|
+
$,
|
|
2514
2514
|
{
|
|
2515
2515
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
2516
2516
|
onClick: t,
|
|
@@ -2565,7 +2565,7 @@ const B = {
|
|
|
2565
2565
|
)
|
|
2566
2566
|
] }),
|
|
2567
2567
|
/* @__PURE__ */ e(v, { sx: { px: 24 }, children: /* @__PURE__ */ e(
|
|
2568
|
-
|
|
2568
|
+
$,
|
|
2569
2569
|
{
|
|
2570
2570
|
fullWidth: !0,
|
|
2571
2571
|
onClick: () => s({ step: T.MonthlyIncome, type: "main" }),
|
|
@@ -2681,7 +2681,7 @@ const B = {
|
|
|
2681
2681
|
}, ra = ({ isOpen: t, onClose: r }) => {
|
|
2682
2682
|
const { visibleAccounts: n } = ke(), { calculateHealthScore: o } = F(), { finstrong: s } = w(), { setSelectedAccounts: i } = j(), { addRepeatingTransaction: c, setDateRange: p } = Ve(), { filter: l, setFilter: d, transactions: _ } = jn(), { user: h, userProfile: y, updateUser: f, updateUserProfile: x } = Q(), [b, D] = m.useState(h.credit_score || 0), [g, C] = m.useState(
|
|
2683
2683
|
ht
|
|
2684
|
-
), [M,
|
|
2684
|
+
), [M, W] = m.useState(1), [H, O] = m.useState(Ot.EveryMonth), [z, V] = m.useState([]), [ee, pe] = m.useState(!1), [ue, _e] = m.useState(!1), [X, he] = m.useState(h.birthday), [ae, Me] = m.useState(15), [q, Je] = m.useState("");
|
|
2685
2685
|
m.useEffect(() => {
|
|
2686
2686
|
p({ start: Lt(dt()), end: $t(dt()) });
|
|
2687
2687
|
}, []), m.useEffect(() => {
|
|
@@ -2705,8 +2705,8 @@ const B = {
|
|
|
2705
2705
|
})[g.step], [b, g, X, q, h]), ie = n.length > 0, Xt = m.useMemo(() => {
|
|
2706
2706
|
const { step: A } = g;
|
|
2707
2707
|
let R = 0;
|
|
2708
|
-
return A >= T.MonthlyIncome && ie && R++, A >= T.Birthday &&
|
|
2709
|
-
}, [g.step, ie,
|
|
2708
|
+
return A >= T.MonthlyIncome && ie && R++, A >= T.Birthday && z.length && R++, A >= T.CreditScore && (h.birthday || h.credit_score) && R++, R;
|
|
2709
|
+
}, [g.step, ie, z.length, h.birthday, h.credit_score]), qt = (A) => {
|
|
2710
2710
|
d({
|
|
2711
2711
|
...l,
|
|
2712
2712
|
custom: (R) => A ? So(R, A) : pt(R)
|
|
@@ -2724,7 +2724,7 @@ const B = {
|
|
|
2724
2724
|
{
|
|
2725
2725
|
firstDay: M,
|
|
2726
2726
|
frequency: H,
|
|
2727
|
-
incomeTransactions:
|
|
2727
|
+
incomeTransactions: z,
|
|
2728
2728
|
secondDay: ae,
|
|
2729
2729
|
setCurrentStep: (A) => {
|
|
2730
2730
|
C(A), V((R) => {
|
|
@@ -2733,7 +2733,7 @@ const B = {
|
|
|
2733
2733
|
return Ie ? [...R, { ...Ie, firstDay: M, frequency: H, secondDay: ae }] : R;
|
|
2734
2734
|
});
|
|
2735
2735
|
},
|
|
2736
|
-
setFirstDay:
|
|
2736
|
+
setFirstDay: W,
|
|
2737
2737
|
setFrequency: O,
|
|
2738
2738
|
setSecondDay: Me,
|
|
2739
2739
|
transaction: et
|
|
@@ -2768,7 +2768,7 @@ const B = {
|
|
|
2768
2768
|
}, tt = () => {
|
|
2769
2769
|
C(ht), pe(!1), Je(""), r();
|
|
2770
2770
|
}, nt = async () => {
|
|
2771
|
-
pe(!0), await en(
|
|
2771
|
+
pe(!0), await en(z), await o(), await x({ ...y, has_completed_finstrong_onboarding: !0 }), tt();
|
|
2772
2772
|
}, Zt = () => {
|
|
2773
2773
|
if (g.step === T.CreditScore) {
|
|
2774
2774
|
nt();
|
|
@@ -2785,7 +2785,7 @@ const B = {
|
|
|
2785
2785
|
b && b !== h.credit_score && f({ ...h, credit_score: b }), nt();
|
|
2786
2786
|
return;
|
|
2787
2787
|
case T.MonthlyIncome:
|
|
2788
|
-
q &&
|
|
2788
|
+
q && z.findIndex(({ guid: ge }) => ge === q) === -1 && V((ge) => [
|
|
2789
2789
|
...ge,
|
|
2790
2790
|
{ ...et, firstDay: M, frequency: H, secondDay: ae }
|
|
2791
2791
|
]);
|
|
@@ -2804,7 +2804,7 @@ const B = {
|
|
|
2804
2804
|
C({ step: A, type: "main" });
|
|
2805
2805
|
return;
|
|
2806
2806
|
}
|
|
2807
|
-
if (A === T.Birthday &&
|
|
2807
|
+
if (A === T.Birthday && z.length) {
|
|
2808
2808
|
C({ step: A - 1, type: "detail" });
|
|
2809
2809
|
return;
|
|
2810
2810
|
}
|
|
@@ -2876,7 +2876,7 @@ const B = {
|
|
|
2876
2876
|
),
|
|
2877
2877
|
g.type === "main" && /* @__PURE__ */ a(v, { children: [
|
|
2878
2878
|
me.main,
|
|
2879
|
-
nn && /* @__PURE__ */ e(u, { sx: { alignItems: "center", px: 24, py: 12 }, children: /* @__PURE__ */ e(
|
|
2879
|
+
nn && /* @__PURE__ */ e(u, { sx: { alignItems: "center", px: 24, py: 12 }, children: /* @__PURE__ */ e($, { fullWidth: !0, onClick: Zt, children: P.do_it_later }) })
|
|
2880
2880
|
] }),
|
|
2881
2881
|
g.type === "detail" && me.detail
|
|
2882
2882
|
] })
|
|
@@ -2917,7 +2917,7 @@ const B = {
|
|
|
2917
2917
|
/* @__PURE__ */ e(k, { sx: { color: "text.secondary" }, variant: "subtitle1", children: Ge.onboarding_subtitle })
|
|
2918
2918
|
] })
|
|
2919
2919
|
] }),
|
|
2920
|
-
/* @__PURE__ */ e(
|
|
2920
|
+
/* @__PURE__ */ e($, { onClick: () => r(!0), variant: "contained", children: Ge.get_started })
|
|
2921
2921
|
]
|
|
2922
2922
|
}
|
|
2923
2923
|
),
|
|
@@ -3364,7 +3364,7 @@ const B = {
|
|
|
3364
3364
|
Wo,
|
|
3365
3365
|
{
|
|
3366
3366
|
action: /* @__PURE__ */ e(
|
|
3367
|
-
|
|
3367
|
+
$,
|
|
3368
3368
|
{
|
|
3369
3369
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
3370
3370
|
onClick: () => r(!0),
|
|
@@ -3464,13 +3464,13 @@ const B = {
|
|
|
3464
3464
|
healthScore: h,
|
|
3465
3465
|
loadAugmentedChartData: y,
|
|
3466
3466
|
loadMonthlySummaries: f
|
|
3467
|
-
} = F(), { finstrong: x, connect: b } = w(), { isCopyLoaded: D, isInitialized: g, selectedAccounts: C, setSelectedAccounts: M } = j(), { loadRepeatingTransactions:
|
|
3467
|
+
} = F(), { finstrong: x, connect: b } = w(), { isCopyLoaded: D, isInitialized: g, selectedAccounts: C, setSelectedAccounts: M } = j(), { loadRepeatingTransactions: W } = Ve(), { isMobile: H } = Ue(), O = G(), { userProfile: z } = Q(), [V, ee] = m.useState(!1), [pe, ue] = m.useState(!1), [_e, X] = m.useState(!1);
|
|
3468
3468
|
if (m.useEffect(() => {
|
|
3469
3469
|
p(O);
|
|
3470
3470
|
}, []), m.useEffect(() => M(o), [o]), m.useEffect(() => {
|
|
3471
3471
|
g && (_().finally(), y().finally(), f().finally());
|
|
3472
3472
|
}, [g]), m.useEffect(() => {
|
|
3473
|
-
g && (l(C, s.start, s.end), i || (c(),
|
|
3473
|
+
g && (l(C, s.start, s.end), i || (c(), W().finally()));
|
|
3474
3474
|
}, [s, i, g, C]), !D || !g) return /* @__PURE__ */ e(J, {});
|
|
3475
3475
|
const he = () => {
|
|
3476
3476
|
}, ae = () => ee(!0);
|
|
@@ -3491,7 +3491,7 @@ const B = {
|
|
|
3491
3491
|
sx: r,
|
|
3492
3492
|
title: x.title,
|
|
3493
3493
|
children: [
|
|
3494
|
-
|
|
3494
|
+
z.has_completed_finstrong_onboarding ? /* @__PURE__ */ a(
|
|
3495
3495
|
u,
|
|
3496
3496
|
{
|
|
3497
3497
|
sx: {
|
|
@@ -3517,7 +3517,7 @@ const B = {
|
|
|
3517
3517
|
/* @__PURE__ */ a(u, { direction: "row", sx: { alignItems: "center", justifyContent: "space-between" }, children: [
|
|
3518
3518
|
/* @__PURE__ */ e(N, { children: x.key_indicators }),
|
|
3519
3519
|
/* @__PURE__ */ e(
|
|
3520
|
-
|
|
3520
|
+
$,
|
|
3521
3521
|
{
|
|
3522
3522
|
endIcon: /* @__PURE__ */ e(Z, {}),
|
|
3523
3523
|
onClick: () => ue(!0),
|
|
@@ -3554,8 +3554,18 @@ const B = {
|
|
|
3554
3554
|
useCustomMark: !0
|
|
3555
3555
|
}
|
|
3556
3556
|
) : /* @__PURE__ */ e(Vr, { onClick: () => X(!0) }),
|
|
3557
|
-
h.health_score !== null && /* @__PURE__ */ e(jr, {
|
|
3558
|
-
] }) })
|
|
3557
|
+
h.health_score !== null && /* @__PURE__ */ e(jr, { onPrimaryCtaClick: n })
|
|
3558
|
+
] }) }),
|
|
3559
|
+
/* @__PURE__ */ e(
|
|
3560
|
+
$,
|
|
3561
|
+
{
|
|
3562
|
+
sx: { background: "red", width: 100 },
|
|
3563
|
+
onClick: () => {
|
|
3564
|
+
console.log("test"), n?.("trends");
|
|
3565
|
+
},
|
|
3566
|
+
children: "test"
|
|
3567
|
+
}
|
|
3568
|
+
)
|
|
3559
3569
|
]
|
|
3560
3570
|
}
|
|
3561
3571
|
) : /* @__PURE__ */ e(ia, {}),
|