@mx-cartographer/experiences 7.2.15-alpha-ram3-finstromg-testing → 7.2.15-alpha-ram4-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/{CategoryStore-CKS21I3F.mjs → CategoryStore-2mI6CCiD.mjs} +7 -7
- package/dist/{SpendingLegend-Dnwcmcda.mjs → SpendingLegend-CopEyF2t.mjs} +28 -28
- package/dist/categories/index.es.js +1 -1
- package/dist/common/index.es.js +2 -2
- package/dist/finstrong/index.es.js +44 -44
- package/dist/spending/index.es.js +1 -1
- package/package.json +1 -1
|
@@ -5,7 +5,7 @@ import { startOfMonth as h } from "date-fns/startOfMonth";
|
|
|
5
5
|
import { endOfMonth as d } from "date-fns/endOfMonth";
|
|
6
6
|
import { a as T, g as m } from "./CategoryUtil-DUM8NuGO.mjs";
|
|
7
7
|
import { F as p, A as i } from "./Fetch-87LIQbEA.mjs";
|
|
8
|
-
import { b as f, c as
|
|
8
|
+
import { b as f, c as S } from "./Category-CevNQ03n.mjs";
|
|
9
9
|
class y {
|
|
10
10
|
fetchInstance;
|
|
11
11
|
constructor(t, e, o) {
|
|
@@ -31,7 +31,7 @@ class y {
|
|
|
31
31
|
removeCategory = async (t) => this.fetchInstance.delete(`${i.CATEGORIES}/${t}`);
|
|
32
32
|
updateCategory = async (t) => this.fetchInstance.put(`${i.CATEGORIES}/${t.guid}`, t).then((e) => e.category);
|
|
33
33
|
}
|
|
34
|
-
class
|
|
34
|
+
class w {
|
|
35
35
|
expandedGuid = null;
|
|
36
36
|
selectedGuid = null;
|
|
37
37
|
searchValue = "";
|
|
@@ -54,7 +54,7 @@ class S {
|
|
|
54
54
|
onSelect = (t) => this.savedOnSelect(t);
|
|
55
55
|
setOnSelect = (t) => this.savedOnSelect = t;
|
|
56
56
|
}
|
|
57
|
-
class
|
|
57
|
+
class A {
|
|
58
58
|
globalStore;
|
|
59
59
|
uiStore;
|
|
60
60
|
api = new y("/", "");
|
|
@@ -65,7 +65,7 @@ class G {
|
|
|
65
65
|
isLoadingCategoryTotals = !1;
|
|
66
66
|
monthlyTotalsLoaded = !1;
|
|
67
67
|
constructor(t) {
|
|
68
|
-
this.globalStore = t, this.uiStore = new
|
|
68
|
+
this.globalStore = t, this.uiStore = new w(), this.api = new y(t.endpoint, t.sessionToken, t.onError), u(this);
|
|
69
69
|
}
|
|
70
70
|
get detailedCategories() {
|
|
71
71
|
return T(
|
|
@@ -120,7 +120,7 @@ class G {
|
|
|
120
120
|
r(o),
|
|
121
121
|
t
|
|
122
122
|
);
|
|
123
|
-
console.log(e, o, "start date", "enddate"), console.log(a, "totals"), l(() => {
|
|
123
|
+
console.log(e, o, "start date", "enddate"), console.log(JSON.parse(JSON.stringify(a)), "totals"), l(() => {
|
|
124
124
|
this.dateRangeCategoryTotals = a, this.setIsLoadingCategoryTotals(!1), this.dataRangeTotalsLoaded = !0;
|
|
125
125
|
});
|
|
126
126
|
} catch (a) {
|
|
@@ -175,9 +175,9 @@ class G {
|
|
|
175
175
|
}
|
|
176
176
|
};
|
|
177
177
|
// TODO: Remove this after refactoring Trends components to use detailedCategories
|
|
178
|
-
getCategoryName = (t) => this.categories.find((o) => o.guid === t)?.name ??
|
|
178
|
+
getCategoryName = (t) => this.categories.find((o) => o.guid === t)?.name ?? S[t];
|
|
179
179
|
}
|
|
180
180
|
export {
|
|
181
|
-
|
|
181
|
+
A as C,
|
|
182
182
|
y as a
|
|
183
183
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { b as S } from "./CategoryUtil-DUM8NuGO.mjs";
|
|
2
2
|
import { b as p } from "./Category-CevNQ03n.mjs";
|
|
3
|
-
import { jsxs as y, Fragment as
|
|
3
|
+
import { jsxs as y, Fragment as O, jsx as d } from "react/jsx-runtime";
|
|
4
4
|
import x from "react";
|
|
5
|
-
import { observer as
|
|
6
|
-
import
|
|
7
|
-
import { CategoryIcon as
|
|
8
|
-
import { u as
|
|
9
|
-
import
|
|
10
|
-
import { useTheme as
|
|
11
|
-
import { D as
|
|
5
|
+
import { observer as I } from "mobx-react-lite";
|
|
6
|
+
import h from "@mui/material/Stack";
|
|
7
|
+
import { CategoryIcon as v, CategoryIconVariants as w, Text as f } from "@mxenabled/mxui";
|
|
8
|
+
import { u as M } from "./useAriaLive-B3_pRUio.mjs";
|
|
9
|
+
import k from "@mui/material/Button";
|
|
10
|
+
import { useTheme as G } from "@mui/material";
|
|
11
|
+
import { D as A } from "./Donut-oaQFlbit.mjs";
|
|
12
12
|
import { u as j } from "./hooks-C41HAxM5.mjs";
|
|
13
13
|
import { u as R } from "./useScreenSize-B6JyS_Lj.mjs";
|
|
14
14
|
import { f as D } from "./NumberFormatting-Buh7u8Oi.mjs";
|
|
@@ -35,7 +35,7 @@ const T = 5, B = (r, l, g) => g.reduce((s, t) => {
|
|
|
35
35
|
}
|
|
36
36
|
return s;
|
|
37
37
|
}, []), to = (r, l, g, s) => {
|
|
38
|
-
console.log(s, "daterangecategorytotals"), console.log(r, "categories");
|
|
38
|
+
console.log(JSON.parse(JSON.stringify(s)), "daterangecategorytotals"), console.log(JSON.parse(JSON.stringify(r)), "categories");
|
|
39
39
|
const t = B(r, g, s), n = t.filter(
|
|
40
40
|
(e) => e.guid !== p.INCOME && e.guid !== p.INVESTMENTS && e.guid !== p.TRANSFER
|
|
41
41
|
).sort((e, m) => m.amount - e.amount), u = n.reduce(
|
|
@@ -103,7 +103,7 @@ const T = 5, B = (r, l, g) => g.reduce((s, t) => {
|
|
|
103
103
|
totalLabel: u,
|
|
104
104
|
variant: o = "mini"
|
|
105
105
|
}) => {
|
|
106
|
-
const { spending: a } = j(), c =
|
|
106
|
+
const { spending: a } = j(), c = G(), { isTablet: e } = R(), { announce: m, ariaLive: C } = M(), i = x.useMemo(
|
|
107
107
|
() => t ? r.categoryData.find((b) => b.guid === t) : void 0,
|
|
108
108
|
[t]
|
|
109
109
|
);
|
|
@@ -113,14 +113,14 @@ const T = 5, B = (r, l, g) => g.reduce((s, t) => {
|
|
|
113
113
|
m(`${i.name}: ${b}`);
|
|
114
114
|
}
|
|
115
115
|
}, [i, m]);
|
|
116
|
-
const _ = x.useMemo(() => r.donutData.length > 0 ? r.donutData : [{ id: "0", color: c.palette.divider, value: 100 }], [r, c]),
|
|
116
|
+
const _ = x.useMemo(() => r.donutData.length > 0 ? r.donutData : [{ id: "0", color: c.palette.divider, value: 100 }], [r, c]), N = () => {
|
|
117
117
|
s?.(t);
|
|
118
|
-
},
|
|
119
|
-
return /* @__PURE__ */ y(
|
|
118
|
+
}, E = e ? 32 : 48;
|
|
119
|
+
return /* @__PURE__ */ y(O, { children: [
|
|
120
120
|
C,
|
|
121
|
-
/* @__PURE__ */ d(
|
|
121
|
+
/* @__PURE__ */ d(A, { data: _, onClick: g, selectedId: t, size: n, children: /* @__PURE__ */ d(h, { alignItems: "center", height: "100%", justifyContent: "center", width: "100%", children: /* @__PURE__ */ y(h, { alignItems: "center", justifyContent: "center", minHeight: n, minWidth: n, children: [
|
|
122
122
|
i && /* @__PURE__ */ y(
|
|
123
|
-
|
|
123
|
+
h,
|
|
124
124
|
{
|
|
125
125
|
alignItems: "center",
|
|
126
126
|
gap: o === "mini" ? 0 : 8,
|
|
@@ -129,15 +129,15 @@ const T = 5, B = (r, l, g) => g.reduce((s, t) => {
|
|
|
129
129
|
sx: o === "mini" ? { gap: 0, mb: 0 } : { gap: { xs: 4, xl: 8 }, mb: { xs: 4, xl: 8 } },
|
|
130
130
|
children: [
|
|
131
131
|
/* @__PURE__ */ d(
|
|
132
|
-
|
|
132
|
+
v,
|
|
133
133
|
{
|
|
134
134
|
categoryGuid: l ? p.INCOME : i.guid,
|
|
135
|
-
size: o === "mini" ? 24 :
|
|
136
|
-
variant:
|
|
135
|
+
size: o === "mini" ? 24 : E,
|
|
136
|
+
variant: w.Transparent
|
|
137
137
|
}
|
|
138
138
|
),
|
|
139
139
|
/* @__PURE__ */ d(
|
|
140
|
-
|
|
140
|
+
f,
|
|
141
141
|
{
|
|
142
142
|
color: "secondary",
|
|
143
143
|
noWrap: !0,
|
|
@@ -148,15 +148,15 @@ const T = 5, B = (r, l, g) => g.reduce((s, t) => {
|
|
|
148
148
|
]
|
|
149
149
|
}
|
|
150
150
|
),
|
|
151
|
-
!i && o === "full" && /* @__PURE__ */ d(
|
|
152
|
-
/* @__PURE__ */ d(
|
|
153
|
-
!i && o === "mini" && /* @__PURE__ */ d(
|
|
151
|
+
!i && o === "full" && /* @__PURE__ */ d(f, { bold: !0, color: "secondary", sx: { mb: { xs: 4, xl: 8 } }, children: u }),
|
|
152
|
+
/* @__PURE__ */ d(f, { variant: o === "mini" ? "H2" : "H1", children: i ? D(i.amount, "0,0") : D(r.totalAmount, "0,0") }),
|
|
153
|
+
!i && o === "mini" && /* @__PURE__ */ d(f, { color: "secondary", noWrap: !0, variant: "Tiny", children: u }),
|
|
154
154
|
o === "full" && /* @__PURE__ */ d(
|
|
155
|
-
|
|
155
|
+
k,
|
|
156
156
|
{
|
|
157
157
|
"aria-label": `View ${i?.name || ""} Transactions`,
|
|
158
158
|
disabled: r.categoryData.length === 0,
|
|
159
|
-
onClick:
|
|
159
|
+
onClick: N,
|
|
160
160
|
sx: { mt: { xl: 4, xs: 0 }, zIndex: 1 },
|
|
161
161
|
variant: "text",
|
|
162
162
|
children: a.view_transactions
|
|
@@ -164,12 +164,12 @@ const T = 5, B = (r, l, g) => g.reduce((s, t) => {
|
|
|
164
164
|
)
|
|
165
165
|
] }) }) })
|
|
166
166
|
] });
|
|
167
|
-
}, eo =
|
|
167
|
+
}, eo = I(H), ro = ({ data: r, onSelected: l, selectedId: g }) => {
|
|
168
168
|
const s = (t, n) => {
|
|
169
169
|
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), l(n));
|
|
170
170
|
};
|
|
171
|
-
return /* @__PURE__ */ d(
|
|
172
|
-
|
|
171
|
+
return /* @__PURE__ */ d(h, { gap: 8, height: "100%", justifyContent: "center", my: "auto", children: r.categoryData.map((t) => /* @__PURE__ */ y(
|
|
172
|
+
h,
|
|
173
173
|
{
|
|
174
174
|
alignItems: "center",
|
|
175
175
|
"aria-label": t.name,
|
|
@@ -183,7 +183,7 @@ const T = 5, B = (r, l, g) => g.reduce((s, t) => {
|
|
|
183
183
|
tabIndex: 0,
|
|
184
184
|
children: [
|
|
185
185
|
/* @__PURE__ */ d($, { borderRadius: 4, height: 8, sx: { backgroundColor: t.color }, width: 8 }),
|
|
186
|
-
/* @__PURE__ */ d(
|
|
186
|
+
/* @__PURE__ */ d(f, { bold: t.guid === g, variant: "XSmall", children: t.name })
|
|
187
187
|
]
|
|
188
188
|
},
|
|
189
189
|
t.guid
|
package/dist/common/index.es.js
CHANGED
|
@@ -2,8 +2,8 @@ import { G as k } from "../useCombineEvents-BUDIR1ba.mjs";
|
|
|
2
2
|
import { A as ss, a as rs, u as os, b as as } from "../useCombineEvents-BUDIR1ba.mjs";
|
|
3
3
|
import { F as S, A as h } from "../Fetch-87LIQbEA.mjs";
|
|
4
4
|
import { B as is } from "../BeatApi-DhJpgCLz.mjs";
|
|
5
|
-
import { C as et } from "../CategoryStore-
|
|
6
|
-
import { a as ds } from "../CategoryStore-
|
|
5
|
+
import { C as et } from "../CategoryStore-2mI6CCiD.mjs";
|
|
6
|
+
import { a as ds } from "../CategoryStore-2mI6CCiD.mjs";
|
|
7
7
|
import { N as st } from "../NotificationStore-C6PH6MKm.mjs";
|
|
8
8
|
import { a as us } from "../NotificationStore-C6PH6MKm.mjs";
|
|
9
9
|
import { T as rt } from "../User-wXzDI4M8.mjs";
|
|
@@ -9,8 +9,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,
|
|
|
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 v, b as j, p as
|
|
13
|
-
import { L as
|
|
12
|
+
import { u as v, 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
|
+
import { L as Q } from "../Loader-DUaFpDGv.mjs";
|
|
14
14
|
import m from "react";
|
|
15
15
|
import $ from "@mui/material/Button";
|
|
16
16
|
import K from "@mui/material/Card";
|
|
@@ -32,9 +32,9 @@ 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
34
|
import Zn from "@mui/material/ListItemButton";
|
|
35
|
-
import
|
|
35
|
+
import Jn from "@mui/material/ListSubheader";
|
|
36
36
|
import { f as L } from "../NumberFormatting-Buh7u8Oi.mjs";
|
|
37
|
-
import { S as ct, F as Ot, e as
|
|
37
|
+
import { S as ct, F as Ot, e as Qn, R as Rt } from "../RecurringTransactions-CngsRZ3K.mjs";
|
|
38
38
|
import { Button as eo } from "@mui/material";
|
|
39
39
|
import { S as to } from "../StatusBar-BK_uYHAB.mjs";
|
|
40
40
|
import { h as Ze } from "../DateUtil-CBdcsyuk.mjs";
|
|
@@ -51,7 +51,7 @@ import { ResponsiveChartContainer as po } from "@mui/x-charts/ResponsiveChartCon
|
|
|
51
51
|
import { useSpring as uo, animated as lt } from "@react-spring/web";
|
|
52
52
|
import { startOfMonth as Lt } from "date-fns/startOfMonth";
|
|
53
53
|
import { endOfMonth as Wt } from "date-fns/endOfMonth";
|
|
54
|
-
import { g as _o, S as ho, b as mo } from "../SpendingLegend-
|
|
54
|
+
import { g as _o, S as ho, b as mo } from "../SpendingLegend-CopEyF2t.mjs";
|
|
55
55
|
import { formatISO as go } from "date-fns/formatISO";
|
|
56
56
|
import { fromUnixTime as yo } from "date-fns/fromUnixTime";
|
|
57
57
|
import { startOfToday as dt } from "date-fns/startOfToday";
|
|
@@ -366,7 +366,7 @@ const zo = ({
|
|
|
366
366
|
color: d ? ve.EXCEPTIONAL : we.EXCEPTIONAL
|
|
367
367
|
}
|
|
368
368
|
], { finstrong: p } = v(), { isCopyLoaded: h } = j();
|
|
369
|
-
if (!h) return /* @__PURE__ */ e(
|
|
369
|
+
if (!h) return /* @__PURE__ */ e(Q, {});
|
|
370
370
|
const { status: _, color: b = "none" } = St(
|
|
371
371
|
n,
|
|
372
372
|
d,
|
|
@@ -465,7 +465,7 @@ const zo = ({
|
|
|
465
465
|
};
|
|
466
466
|
var _e = /* @__PURE__ */ ((t) => (t.SpendLessThanYouMake = "spendLessThanYouMake", t.PayBillsOnTime = "payBillsOnTime", t.SaveEnoughToLiveOn = "saveEnoughToLiveOn", t.MaintainEmergencySavings = "maintainEmergencySavings", t.HaveManageableDebt = "haveManageableDebt", t.HaveAGoodCreditScore = "haveAGoodCreditScore", t))(_e || {});
|
|
467
467
|
const Go = ({ isOpen: t, onClose: r }) => {
|
|
468
|
-
const { common: n, finstrong: o } = v(), { isMobile: c } = Ue(), { updateUser: a, user: s } =
|
|
468
|
+
const { common: n, finstrong: o } = v(), { isMobile: c } = Ue(), { updateUser: a, user: s } = J(), [d, l] = m.useState(s.credit_score || 0), p = !isNaN(d), h = () => {
|
|
469
469
|
r(), setTimeout(() => l(s.credit_score || 0), 300);
|
|
470
470
|
}, _ = () => {
|
|
471
471
|
!d || d === s.credit_score || a({ ...s, credit_score: d });
|
|
@@ -514,7 +514,7 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
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 }) => {
|
|
517
|
-
const r = E(), n = r.palette.mode === "dark", { monthlySummaries: o } = F(), { user: c } =
|
|
517
|
+
const r = E(), n = r.palette.mode === "dark", { monthlySummaries: o } = F(), { user: c } = J(), { finstrong: a } = v(), [s, { width: d }] = It(), l = {
|
|
518
518
|
savingsOverTime: {
|
|
519
519
|
icon: /* @__PURE__ */ e(gt, { size: 48, sx: { marginBottom: 8 } }),
|
|
520
520
|
title: a.key_indicators_save.zero_state_title,
|
|
@@ -596,10 +596,10 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
596
596
|
/* @__PURE__ */ e(k, { fontWeight: 600, variant: "body1", children: l.title }),
|
|
597
597
|
/* @__PURE__ */ e(k, { align: "center", variant: "subtitle1", children: l.description })
|
|
598
598
|
] }) });
|
|
599
|
-
},
|
|
599
|
+
}, Je = S(Ho), No = {
|
|
600
600
|
updated_score: "Updated Score"
|
|
601
601
|
}, Ko = () => {
|
|
602
|
-
const { healthScoreChange: t } = F(), { user: r } =
|
|
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,
|
|
@@ -612,7 +612,7 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
612
612
|
),
|
|
613
613
|
/* @__PURE__ */ e($, { onClick: () => a(!0), variant: "contained", children: No.updated_score }),
|
|
614
614
|
/* @__PURE__ */ e(Gt, { isOpen: c, onClose: () => a(!1) }),
|
|
615
|
-
/* @__PURE__ */ e(
|
|
615
|
+
/* @__PURE__ */ e(Je, { chartFor: "creditOverTime" })
|
|
616
616
|
] });
|
|
617
617
|
}, jo = S(Ko), Le = ({ status: t }) => {
|
|
618
618
|
const { finstrong: r } = v(), n = On(Rn[t]), o = {
|
|
@@ -645,7 +645,7 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
645
645
|
}, Yo = {
|
|
646
646
|
keep_strong_credit_score: "Keep a Strong Credit Score"
|
|
647
647
|
}, Vo = () => {
|
|
648
|
-
const { user: t } =
|
|
648
|
+
const { user: t } = J(), r = Ct(t.credit_score ?? null);
|
|
649
649
|
return /* @__PURE__ */ i(u, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
|
|
650
650
|
/* @__PURE__ */ e(N, { children: Yo.keep_strong_credit_score }),
|
|
651
651
|
/* @__PURE__ */ e(Le, { status: r })
|
|
@@ -705,7 +705,7 @@ const Go = ({ isOpen: t, onClose: r }) => {
|
|
|
705
705
|
}
|
|
706
706
|
)
|
|
707
707
|
] })
|
|
708
|
-
] }) : /* @__PURE__ */ e(
|
|
708
|
+
] }) : /* @__PURE__ */ e(Q, {});
|
|
709
709
|
}, Ht = S(qo), Uo = ({
|
|
710
710
|
onClick: t,
|
|
711
711
|
shouldShowBalance: r = !0,
|
|
@@ -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: L(h, "0,0.00") })
|
|
736
736
|
] }) }),
|
|
@@ -864,12 +864,12 @@ const B = {
|
|
|
864
864
|
suggested_goal: "Suggested Goal: $25,000",
|
|
865
865
|
weekly: "Weekly",
|
|
866
866
|
years: "Years"
|
|
867
|
-
},
|
|
867
|
+
}, Jo = [
|
|
868
868
|
{ id: U.Monthly, label: B.monthly },
|
|
869
869
|
{ id: U.BiWeekly, label: B.bi_weekly },
|
|
870
870
|
{ id: U.Weekly, label: B.weekly },
|
|
871
871
|
{ id: U.Daily, label: B.daily }
|
|
872
|
-
],
|
|
872
|
+
], Qo = {
|
|
873
873
|
[U.Monthly]: B.estimated_period_monthly,
|
|
874
874
|
[U.BiWeekly]: B.estimated_period_bi_weekly,
|
|
875
875
|
[U.Weekly]: B.estimated_period_weekly,
|
|
@@ -912,7 +912,7 @@ const B = {
|
|
|
912
912
|
/* @__PURE__ */ e(I, { variant: "h2", children: L(n, "0,0") }),
|
|
913
913
|
/* @__PURE__ */ i(I, { sx: { alignSelf: "end", height: 24 }, variant: "subtitle2", children: [
|
|
914
914
|
"/",
|
|
915
|
-
|
|
915
|
+
Qo[c]
|
|
916
916
|
] })
|
|
917
917
|
] }),
|
|
918
918
|
title: B.estimated_contribution
|
|
@@ -939,7 +939,7 @@ const B = {
|
|
|
939
939
|
{
|
|
940
940
|
label: B.how_often_contribute,
|
|
941
941
|
onChange: d,
|
|
942
|
-
options:
|
|
942
|
+
options: Jo,
|
|
943
943
|
required: !0,
|
|
944
944
|
value: s
|
|
945
945
|
}
|
|
@@ -1105,7 +1105,7 @@ const B = {
|
|
|
1105
1105
|
transactions: t,
|
|
1106
1106
|
bgcolor: r,
|
|
1107
1107
|
height: n = "calc(100dvh - 36px)",
|
|
1108
|
-
loader: o = /* @__PURE__ */ e(
|
|
1108
|
+
loader: o = /* @__PURE__ */ e(Q, { label: "Loading", size: 40 }),
|
|
1109
1109
|
onClick: c,
|
|
1110
1110
|
showInsights: a = !1,
|
|
1111
1111
|
showLoader: s = !1,
|
|
@@ -1390,7 +1390,7 @@ const B = {
|
|
|
1390
1390
|
}
|
|
1391
1391
|
),
|
|
1392
1392
|
/* @__PURE__ */ e($e, { amountColor: "text.primary", transactions: s })
|
|
1393
|
-
] }) : /* @__PURE__ */ e(
|
|
1393
|
+
] }) : /* @__PURE__ */ e(Q, {});
|
|
1394
1394
|
}, br = S(yr), fr = () => {
|
|
1395
1395
|
const [t, r] = m.useState(0), { finstrong: n } = v();
|
|
1396
1396
|
return /* @__PURE__ */ i(z, { children: [
|
|
@@ -1427,7 +1427,7 @@ const B = {
|
|
|
1427
1427
|
/* @__PURE__ */ e(ue, { index: 0, name: "available-details", value: t, children: /* @__PURE__ */ e(gr, {}) }),
|
|
1428
1428
|
/* @__PURE__ */ e(ue, { index: 1, name: "spending-details", value: t, children: /* @__PURE__ */ e(br, {}) })
|
|
1429
1429
|
] }),
|
|
1430
|
-
/* @__PURE__ */ e(
|
|
1430
|
+
/* @__PURE__ */ e(Je, { chartFor: "savingsOverTime" })
|
|
1431
1431
|
] });
|
|
1432
1432
|
}, xr = S(fr), Sr = () => {
|
|
1433
1433
|
const { finstrong: t } = v(), { healthScore: r } = F(), n = r.months_of_cash_on_hand, o = wt(n ? n * 30 : null), c = 183 / 6, a = Math.floor(n), s = Math.round((n - a) * c), d = n / 6 * 100;
|
|
@@ -1946,7 +1946,7 @@ const B = {
|
|
|
1946
1946
|
title: s.key_indicators_borrow.have_manageable_debt_drawer.debt_payment
|
|
1947
1947
|
}
|
|
1948
1948
|
),
|
|
1949
|
-
/* @__PURE__ */ e(
|
|
1949
|
+
/* @__PURE__ */ e(Je, { chartFor: "debtOverTime" })
|
|
1950
1950
|
] }) : /* @__PURE__ */ i(z, { children: [
|
|
1951
1951
|
/* @__PURE__ */ e(
|
|
1952
1952
|
Fe,
|
|
@@ -2034,7 +2034,7 @@ const B = {
|
|
|
2034
2034
|
() => _o(d, c, t, l),
|
|
2035
2035
|
[d, l]
|
|
2036
2036
|
);
|
|
2037
|
-
console.log(f, "spendingData");
|
|
2037
|
+
console.log(JSON.parse(JSON.stringify(f)), "spendingData");
|
|
2038
2038
|
const w = (g) => {
|
|
2039
2039
|
b(_ === g ? "" : g);
|
|
2040
2040
|
}, { totalSpending: y, totalIncome: D } = m.useMemo(() => r?.reduce(
|
|
@@ -2387,7 +2387,7 @@ const B = {
|
|
|
2387
2387
|
)
|
|
2388
2388
|
] });
|
|
2389
2389
|
}, Gr = S(Er), Hr = () => {
|
|
2390
|
-
const { healthScore: t } = F(), { finstrong: r } = v(), { key_indicators_borrow: n } = r, { user: o } =
|
|
2390
|
+
const { healthScore: t } = F(), { finstrong: r } = v(), { key_indicators_borrow: n } = r, { user: o } = J(), c = (l) => {
|
|
2391
2391
|
const p = zn(l), h = {
|
|
2392
2392
|
GOOD: n.manage_debit_good_description,
|
|
2393
2393
|
FAIR: n.manage_debit_fair_description,
|
|
@@ -2521,7 +2521,7 @@ const B = {
|
|
|
2521
2521
|
children: r.connect_more_accounts_button
|
|
2522
2522
|
}
|
|
2523
2523
|
) })
|
|
2524
|
-
] }) : /* @__PURE__ */ e(
|
|
2524
|
+
] }) : /* @__PURE__ */ e(Q, {});
|
|
2525
2525
|
}, Vr = S(Yr), Xr = {
|
|
2526
2526
|
add_more_income: "Add More Income"
|
|
2527
2527
|
}, qr = ({
|
|
@@ -2571,7 +2571,7 @@ const B = {
|
|
|
2571
2571
|
) })
|
|
2572
2572
|
] }), Ur = S(qr), Zr = {
|
|
2573
2573
|
select_date: "Select Date"
|
|
2574
|
-
},
|
|
2574
|
+
}, Jr = ({ selectedDate: t, setSelectedDate: r }) => {
|
|
2575
2575
|
const n = E(), o = (c) => {
|
|
2576
2576
|
r(Math.floor(new Date(c).getTime() / 1e3));
|
|
2577
2577
|
};
|
|
@@ -2605,7 +2605,7 @@ const B = {
|
|
|
2605
2605
|
value: t ? new Date(t * 1e3) : null
|
|
2606
2606
|
}
|
|
2607
2607
|
) }) });
|
|
2608
|
-
},
|
|
2608
|
+
}, Qr = S(Jr), ea = {
|
|
2609
2609
|
credit_score: "Credit Score"
|
|
2610
2610
|
}, ta = ({ creditScore: t, setCreditScore: r }) => {
|
|
2611
2611
|
const n = !isNaN(t);
|
|
@@ -2675,9 +2675,9 @@ const B = {
|
|
|
2675
2675
|
do_it_later: "Do It Later",
|
|
2676
2676
|
next: "Next"
|
|
2677
2677
|
}, ra = ({ isOpen: t, onClose: r }) => {
|
|
2678
|
-
const { visibleAccounts: n } = Me(), { calculateHealthScore: o } = F(), { finstrong: c } = v(), { setSelectedAccounts: a } = j(), { addRepeatingTransaction: s, setDateRange: d } = Ve(), { filter: l, setFilter: p, transactions: h } = jn(), { user: _, userProfile: b, updateUser: f, updateUserProfile: w } =
|
|
2678
|
+
const { visibleAccounts: n } = Me(), { calculateHealthScore: o } = F(), { finstrong: c } = v(), { setSelectedAccounts: a } = j(), { addRepeatingTransaction: s, setDateRange: d } = Ve(), { filter: l, setFilter: p, transactions: h } = jn(), { user: _, userProfile: b, updateUser: f, updateUserProfile: w } = J(), [y, D] = m.useState(_.credit_score || 0), [g, x] = m.useState(
|
|
2679
2679
|
ht
|
|
2680
|
-
), [M, W] = 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,
|
|
2680
|
+
), [M, W] = 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("");
|
|
2681
2681
|
m.useEffect(() => {
|
|
2682
2682
|
d({ start: Lt(dt()), end: Wt(dt()) });
|
|
2683
2683
|
}, []), m.useEffect(() => {
|
|
@@ -2741,7 +2741,7 @@ const B = {
|
|
|
2741
2741
|
{
|
|
2742
2742
|
onSearch: qt,
|
|
2743
2743
|
onSelected: (A) => {
|
|
2744
|
-
x({ step: O.MonthlyIncome, type: "detail" }),
|
|
2744
|
+
x({ step: O.MonthlyIncome, type: "detail" }), Qe(A);
|
|
2745
2745
|
}
|
|
2746
2746
|
}
|
|
2747
2747
|
),
|
|
@@ -2750,7 +2750,7 @@ const B = {
|
|
|
2750
2750
|
secondaryText: P.add_income_secondary
|
|
2751
2751
|
},
|
|
2752
2752
|
[O.Birthday]: {
|
|
2753
|
-
main: /* @__PURE__ */ e(
|
|
2753
|
+
main: /* @__PURE__ */ e(Qr, { selectedDate: X, setSelectedDate: se }),
|
|
2754
2754
|
mainActionContent: P.next,
|
|
2755
2755
|
primaryText: P.birthday_primary,
|
|
2756
2756
|
secondaryText: P.birthday_secondary
|
|
@@ -2762,7 +2762,7 @@ const B = {
|
|
|
2762
2762
|
secondaryText: P.credit_score_secondary
|
|
2763
2763
|
}
|
|
2764
2764
|
}, tt = () => {
|
|
2765
|
-
x(ht), ae(!1),
|
|
2765
|
+
x(ht), ae(!1), Qe(""), r();
|
|
2766
2766
|
}, nt = async () => {
|
|
2767
2767
|
ae(!0), await en(T), await o(), await w({ ...b, has_completed_finstrong_onboarding: !0 }), tt();
|
|
2768
2768
|
}, Zt = () => {
|
|
@@ -2771,7 +2771,7 @@ const B = {
|
|
|
2771
2771
|
return;
|
|
2772
2772
|
}
|
|
2773
2773
|
x({ step: g.step + 1, type: "main" });
|
|
2774
|
-
},
|
|
2774
|
+
}, Jt = () => {
|
|
2775
2775
|
const { step: A } = g, R = A + 1;
|
|
2776
2776
|
switch (A) {
|
|
2777
2777
|
case O.Birthday:
|
|
@@ -2794,7 +2794,7 @@ const B = {
|
|
|
2794
2794
|
break;
|
|
2795
2795
|
}
|
|
2796
2796
|
R in O && x({ step: R, type: "main" });
|
|
2797
|
-
},
|
|
2797
|
+
}, Qt = () => {
|
|
2798
2798
|
const { step: A, type: R } = g;
|
|
2799
2799
|
if (R === "detail") {
|
|
2800
2800
|
x({ step: A, type: "main" });
|
|
@@ -2819,7 +2819,7 @@ const B = {
|
|
|
2819
2819
|
merchant_guid: cn,
|
|
2820
2820
|
payee: ln,
|
|
2821
2821
|
transaction_type: dn
|
|
2822
|
-
} = R, pn =
|
|
2822
|
+
} = R, pn = Qn(ot, yo(de)), un = {
|
|
2823
2823
|
account_guid: ge,
|
|
2824
2824
|
amount: Ie,
|
|
2825
2825
|
created_by: 0,
|
|
@@ -2848,13 +2848,13 @@ const B = {
|
|
|
2848
2848
|
isOpen: t,
|
|
2849
2849
|
isPrimaryDisabled: !Vt,
|
|
2850
2850
|
onClose: tt,
|
|
2851
|
-
onSecondaryAction:
|
|
2851
|
+
onSecondaryAction: Qt,
|
|
2852
2852
|
primaryButtonProps: tn,
|
|
2853
2853
|
primaryText: me?.mainActionContent,
|
|
2854
2854
|
secondaryColor: "primary",
|
|
2855
2855
|
secondaryText: P.back,
|
|
2856
2856
|
title: c.title,
|
|
2857
|
-
...!re && { onPrimaryAction:
|
|
2857
|
+
...!re && { onPrimaryAction: Jt },
|
|
2858
2858
|
children: [
|
|
2859
2859
|
re && /* @__PURE__ */ i(u, { sx: { alignItems: "center", gap: 24, position: "relative", px: 16, top: 126 }, children: [
|
|
2860
2860
|
/* @__PURE__ */ e(Pe, { children: P.calculate_primary }),
|
|
@@ -2920,7 +2920,7 @@ const B = {
|
|
|
2920
2920
|
/* @__PURE__ */ e(aa, { isOpen: t, onClose: () => r(!1) })
|
|
2921
2921
|
] });
|
|
2922
2922
|
}, sa = ({ isOpen: t, onClose: r }) => {
|
|
2923
|
-
const { finstrong: n } = v(), o = E(), { updateUser: c, user: a } =
|
|
2923
|
+
const { finstrong: n } = v(), o = E(), { updateUser: c, user: a } = J(), [s, d] = m.useState(a.birthday), l = (h) => {
|
|
2924
2924
|
d(Math.floor(new Date(h).getTime() / 1e3));
|
|
2925
2925
|
};
|
|
2926
2926
|
return /* @__PURE__ */ e(
|
|
@@ -2973,7 +2973,7 @@ const B = {
|
|
|
2973
2973
|
accounts: o,
|
|
2974
2974
|
common: c,
|
|
2975
2975
|
finstrong: a
|
|
2976
|
-
} = v(), { repeatingTransactions: s } = Ve(), { user: d } =
|
|
2976
|
+
} = v(), { repeatingTransactions: s } = Ve(), { user: d } = J(), l = s.reduce((f, w) => {
|
|
2977
2977
|
const { repeating_transaction_type: y, transactions: D, recurrence_type: g, amount: x } = w;
|
|
2978
2978
|
return y === Rt.Income && (D.length > 0 || g === Ot.EveryYear) ? f + x : f;
|
|
2979
2979
|
}, 0), [p, h] = m.useState(null), b = [
|
|
@@ -3163,7 +3163,7 @@ const B = {
|
|
|
3163
3163
|
] }) });
|
|
3164
3164
|
}, ua = S(pa), _a = ({ isOpen: t, onClose: r }) => {
|
|
3165
3165
|
const n = E(), { finstrong: o } = v(), { isCopyLoaded: c, isInitialized: a } = j(), { healthScore: s, healthScoreChangeReports: d, augmentedChartData: l } = F();
|
|
3166
|
-
if (!c || !a) return /* @__PURE__ */ e(
|
|
3166
|
+
if (!c || !a) return /* @__PURE__ */ e(Q, {});
|
|
3167
3167
|
const p = je(s.health_score || 0, o), h = d.slice().reverse();
|
|
3168
3168
|
return /* @__PURE__ */ e(
|
|
3169
3169
|
Ht,
|
|
@@ -3352,10 +3352,10 @@ const B = {
|
|
|
3352
3352
|
}
|
|
3353
3353
|
)
|
|
3354
3354
|
] })
|
|
3355
|
-
] }) }) : /* @__PURE__ */ e(
|
|
3355
|
+
] }) }) : /* @__PURE__ */ e(Q, {});
|
|
3356
3356
|
}, ya = S(ga), ba = S(() => {
|
|
3357
3357
|
const [t, r] = m.useState(!1), n = E(), [o, { width: c }] = It(), { finstrong: a } = v(), { isCopyLoaded: s, isInitialized: d } = j(), { healthScore: l, healthScoreChange: p } = F(), h = n.palette.mode === "dark", _ = je(l?.health_score, a);
|
|
3358
|
-
return !s || !d ? /* @__PURE__ */ e(
|
|
3358
|
+
return !s || !d ? /* @__PURE__ */ e(Q, {}) : /* @__PURE__ */ i(K, { ref: o, sx: { p: 16 }, children: [
|
|
3359
3359
|
/* @__PURE__ */ e(
|
|
3360
3360
|
$o,
|
|
3361
3361
|
{
|
|
@@ -3460,7 +3460,7 @@ const B = {
|
|
|
3460
3460
|
healthScore: b,
|
|
3461
3461
|
loadAugmentedChartData: f,
|
|
3462
3462
|
loadMonthlySummaries: w
|
|
3463
|
-
} = p, { finstrong: y, connect: D } = v(), { isCopyLoaded: g, isInitialized: x, selectedAccounts: M, setSelectedAccounts: W } = j(), { loadRepeatingTransactions: G } = Ve(), { isMobile: H } = Ue(), T = E(), { userProfile: V } =
|
|
3463
|
+
} = p, { finstrong: y, connect: D } = v(), { isCopyLoaded: g, isInitialized: x, selectedAccounts: M, setSelectedAccounts: W } = j(), { loadRepeatingTransactions: G } = Ve(), { isMobile: H } = Ue(), T = E(), { userProfile: V } = J(), [re, ae] = m.useState(!1), [Ce, ie] = m.useState(!1), [X, se] = m.useState(!1);
|
|
3464
3464
|
if (m.useEffect(() => {
|
|
3465
3465
|
d(T);
|
|
3466
3466
|
}, []), m.useEffect(() => {
|
|
@@ -3469,7 +3469,7 @@ const B = {
|
|
|
3469
3469
|
x && (_().finally(), f().finally(), w().finally());
|
|
3470
3470
|
}, [x]), m.useEffect(() => {
|
|
3471
3471
|
x && (l(M, c.start, c.end), a || (s(), G().finally()));
|
|
3472
|
-
}, [c, a, x, M]), !g || !x) return /* @__PURE__ */ e(
|
|
3472
|
+
}, [c, a, x, M]), !g || !x) return /* @__PURE__ */ e(Q, {});
|
|
3473
3473
|
const ce = () => {
|
|
3474
3474
|
}, he = () => ae(!0);
|
|
3475
3475
|
return /* @__PURE__ */ i(
|
|
@@ -8,7 +8,7 @@ import S from "@mui/material/Stack";
|
|
|
8
8
|
import W from "@mui/material/Tab";
|
|
9
9
|
import nt from "@mui/material/Tabs";
|
|
10
10
|
import dt from "@mui/material/styles/useTheme";
|
|
11
|
-
import { g as ot, a as at, S as N, b as U } from "../SpendingLegend-
|
|
11
|
+
import { g as ot, a as at, S as N, b as U } from "../SpendingLegend-CopEyF2t.mjs";
|
|
12
12
|
import { Text as y } from "@mxenabled/mxui";
|
|
13
13
|
import { f as E } from "../NumberFormatting-Buh7u8Oi.mjs";
|
|
14
14
|
import { u as w, b as O, m as j, d as it, a as rt, h as gt, g as pt } from "../hooks-C41HAxM5.mjs";
|
package/package.json
CHANGED