@mx-cartographer/experiences 7.2.15-alpha-ram2-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-C1IfDPCE.mjs → CategoryStore-2mI6CCiD.mjs} +7 -7
- package/dist/{SpendingLegend-CW8mIzqd.mjs → SpendingLegend-CopEyF2t.mjs} +69 -68
- package/dist/categories/index.es.js +1 -1
- package/dist/common/index.es.js +2 -2
- package/dist/finstrong/index.es.js +57 -55
- 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
|
-
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,87 +1,88 @@
|
|
|
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";
|
|
15
15
|
import $ from "@mui/material/Box";
|
|
16
|
-
const T = 5, B = (r, l,
|
|
16
|
+
const T = 5, B = (r, l, g) => g.reduce((s, t) => {
|
|
17
17
|
if (t.total > 0) {
|
|
18
18
|
const n = r.find((e) => e.guid === t.category_guid);
|
|
19
|
-
if (!n) return
|
|
20
|
-
const
|
|
21
|
-
if (!o) return
|
|
19
|
+
if (!n) return s;
|
|
20
|
+
const u = n.parent_guid ?? n.guid, o = r.find((e) => e.guid === u);
|
|
21
|
+
if (!o) return s;
|
|
22
22
|
const a = {
|
|
23
23
|
guid: n.guid,
|
|
24
|
-
name: n.guid ===
|
|
24
|
+
name: n.guid === u ? `General ${n.name}` : n.name,
|
|
25
25
|
color: S(o.guid, l),
|
|
26
26
|
amount: t.total
|
|
27
|
-
}, c =
|
|
28
|
-
c ? (c.amount += t.total, c.categoryTotals?.push(a)) :
|
|
29
|
-
guid:
|
|
27
|
+
}, c = s.find((e) => e.guid === u);
|
|
28
|
+
c ? (c.amount += t.total, c.categoryTotals?.push(a)) : s.push({
|
|
29
|
+
guid: u,
|
|
30
30
|
name: o.name,
|
|
31
31
|
color: S(o.guid, l),
|
|
32
32
|
categoryTotals: [a],
|
|
33
33
|
amount: t.total
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
-
return
|
|
37
|
-
}, []), to = (r, l,
|
|
38
|
-
|
|
36
|
+
return s;
|
|
37
|
+
}, []), to = (r, l, g, s) => {
|
|
38
|
+
console.log(JSON.parse(JSON.stringify(s)), "daterangecategorytotals"), console.log(JSON.parse(JSON.stringify(r)), "categories");
|
|
39
|
+
const t = B(r, g, s), n = t.filter(
|
|
39
40
|
(e) => e.guid !== p.INCOME && e.guid !== p.INVESTMENTS && e.guid !== p.TRANSFER
|
|
40
|
-
).sort((e,
|
|
41
|
-
(e,
|
|
41
|
+
).sort((e, m) => m.amount - e.amount), u = n.reduce(
|
|
42
|
+
(e, m) => e + m.amount,
|
|
42
43
|
0
|
|
43
44
|
), o = n.length > T ? T : n.length, a = n.slice(0, o), c = a.map((e) => ({
|
|
44
45
|
id: e.guid,
|
|
45
|
-
color: S(e.guid,
|
|
46
|
+
color: S(e.guid, g),
|
|
46
47
|
label: e.name,
|
|
47
|
-
value: e.amount /
|
|
48
|
+
value: e.amount / u * 100
|
|
48
49
|
}));
|
|
49
50
|
if (n.length > 5) {
|
|
50
|
-
const e = n.slice(T, t.length),
|
|
51
|
+
const e = n.slice(T, t.length), m = e.reduce(
|
|
51
52
|
(C, i) => C + i.amount,
|
|
52
53
|
0
|
|
53
54
|
);
|
|
54
55
|
a.push({
|
|
55
56
|
guid: "other",
|
|
56
|
-
color:
|
|
57
|
+
color: g.palette.categories.others || "",
|
|
57
58
|
name: l.saving_goal_other,
|
|
58
59
|
categoryTotals: e,
|
|
59
|
-
amount:
|
|
60
|
+
amount: m
|
|
60
61
|
}), c.push({
|
|
61
62
|
id: "other",
|
|
62
|
-
color:
|
|
63
|
+
color: g.palette.categories.others || "",
|
|
63
64
|
label: l.saving_goal_other,
|
|
64
|
-
value:
|
|
65
|
+
value: m / u * 100
|
|
65
66
|
});
|
|
66
67
|
}
|
|
67
68
|
return {
|
|
68
69
|
categoryData: a,
|
|
69
70
|
donutData: c,
|
|
70
|
-
totalAmount:
|
|
71
|
+
totalAmount: u
|
|
71
72
|
};
|
|
72
|
-
}, no = (r, l,
|
|
73
|
-
const
|
|
73
|
+
}, no = (r, l, g) => {
|
|
74
|
+
const s = r.filter(
|
|
74
75
|
(o) => o.guid === p.INCOME || o.parent_guid === p.INCOME
|
|
75
|
-
), t = l.filter((o) =>
|
|
76
|
+
), t = l.filter((o) => s.some((a) => a.guid === o.category_guid)).sort((o, a) => o.total - a.total).map((o, a) => ({
|
|
76
77
|
guid: o.category_guid,
|
|
77
78
|
name: r.find((c) => c.guid === o.category_guid)?.name,
|
|
78
|
-
color:
|
|
79
|
+
color: g[a],
|
|
79
80
|
categoryTotals: [],
|
|
80
81
|
amount: Math.abs(o.total)
|
|
81
82
|
})), n = t.reduce(
|
|
82
83
|
(o, a) => o + a.amount,
|
|
83
84
|
0
|
|
84
|
-
),
|
|
85
|
+
), u = t.map((o) => ({
|
|
85
86
|
id: o.guid,
|
|
86
87
|
color: o.color,
|
|
87
88
|
label: o.name,
|
|
@@ -89,37 +90,37 @@ const T = 5, B = (r, l, u) => u.reduce((g, t) => {
|
|
|
89
90
|
}));
|
|
90
91
|
return {
|
|
91
92
|
categoryData: t,
|
|
92
|
-
donutData:
|
|
93
|
+
donutData: u,
|
|
93
94
|
totalAmount: n
|
|
94
95
|
};
|
|
95
96
|
}, H = ({
|
|
96
97
|
data: r,
|
|
97
98
|
isIncome: l = !1,
|
|
98
|
-
onSelected:
|
|
99
|
-
onViewTransactions:
|
|
99
|
+
onSelected: g,
|
|
100
|
+
onViewTransactions: s,
|
|
100
101
|
selectedId: t,
|
|
101
102
|
size: n = 150,
|
|
102
|
-
totalLabel:
|
|
103
|
+
totalLabel: u,
|
|
103
104
|
variant: o = "mini"
|
|
104
105
|
}) => {
|
|
105
|
-
const { spending: a } = j(), c =
|
|
106
|
+
const { spending: a } = j(), c = G(), { isTablet: e } = R(), { announce: m, ariaLive: C } = M(), i = x.useMemo(
|
|
106
107
|
() => t ? r.categoryData.find((b) => b.guid === t) : void 0,
|
|
107
108
|
[t]
|
|
108
109
|
);
|
|
109
110
|
x.useEffect(() => {
|
|
110
111
|
if (i) {
|
|
111
112
|
const b = D(i.amount, "0,0");
|
|
112
|
-
|
|
113
|
+
m(`${i.name}: ${b}`);
|
|
113
114
|
}
|
|
114
|
-
}, [i,
|
|
115
|
-
const _ = x.useMemo(() => r.donutData.length > 0 ? r.donutData : [{ id: "0", color: c.palette.divider, value: 100 }], [r, c]),
|
|
116
|
-
|
|
117
|
-
},
|
|
118
|
-
return /* @__PURE__ */ y(
|
|
115
|
+
}, [i, m]);
|
|
116
|
+
const _ = x.useMemo(() => r.donutData.length > 0 ? r.donutData : [{ id: "0", color: c.palette.divider, value: 100 }], [r, c]), N = () => {
|
|
117
|
+
s?.(t);
|
|
118
|
+
}, E = e ? 32 : 48;
|
|
119
|
+
return /* @__PURE__ */ y(O, { children: [
|
|
119
120
|
C,
|
|
120
|
-
/* @__PURE__ */
|
|
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: [
|
|
121
122
|
i && /* @__PURE__ */ y(
|
|
122
|
-
|
|
123
|
+
h,
|
|
123
124
|
{
|
|
124
125
|
alignItems: "center",
|
|
125
126
|
gap: o === "mini" ? 0 : 8,
|
|
@@ -127,35 +128,35 @@ const T = 5, B = (r, l, u) => u.reduce((g, t) => {
|
|
|
127
128
|
mt: o === "mini" ? 0 : -16,
|
|
128
129
|
sx: o === "mini" ? { gap: 0, mb: 0 } : { gap: { xs: 4, xl: 8 }, mb: { xs: 4, xl: 8 } },
|
|
129
130
|
children: [
|
|
130
|
-
/* @__PURE__ */
|
|
131
|
-
|
|
131
|
+
/* @__PURE__ */ d(
|
|
132
|
+
v,
|
|
132
133
|
{
|
|
133
134
|
categoryGuid: l ? p.INCOME : i.guid,
|
|
134
|
-
size: o === "mini" ? 24 :
|
|
135
|
-
variant:
|
|
135
|
+
size: o === "mini" ? 24 : E,
|
|
136
|
+
variant: w.Transparent
|
|
136
137
|
}
|
|
137
138
|
),
|
|
138
|
-
/* @__PURE__ */
|
|
139
|
-
|
|
139
|
+
/* @__PURE__ */ d(
|
|
140
|
+
f,
|
|
140
141
|
{
|
|
141
142
|
color: "secondary",
|
|
142
143
|
noWrap: !0,
|
|
143
144
|
variant: o === "mini" ? "Tiny" : "Body",
|
|
144
|
-
children: i ? i.name :
|
|
145
|
+
children: i ? i.name : u
|
|
145
146
|
}
|
|
146
147
|
)
|
|
147
148
|
]
|
|
148
149
|
}
|
|
149
150
|
),
|
|
150
|
-
!i && o === "full" && /* @__PURE__ */
|
|
151
|
-
/* @__PURE__ */
|
|
152
|
-
!i && o === "mini" && /* @__PURE__ */
|
|
153
|
-
o === "full" && /* @__PURE__ */
|
|
154
|
-
|
|
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
|
+
o === "full" && /* @__PURE__ */ d(
|
|
155
|
+
k,
|
|
155
156
|
{
|
|
156
157
|
"aria-label": `View ${i?.name || ""} Transactions`,
|
|
157
158
|
disabled: r.categoryData.length === 0,
|
|
158
|
-
onClick:
|
|
159
|
+
onClick: N,
|
|
159
160
|
sx: { mt: { xl: 4, xs: 0 }, zIndex: 1 },
|
|
160
161
|
variant: "text",
|
|
161
162
|
children: a.view_transactions
|
|
@@ -163,26 +164,26 @@ const T = 5, B = (r, l, u) => u.reduce((g, t) => {
|
|
|
163
164
|
)
|
|
164
165
|
] }) }) })
|
|
165
166
|
] });
|
|
166
|
-
}, eo =
|
|
167
|
-
const
|
|
167
|
+
}, eo = I(H), ro = ({ data: r, onSelected: l, selectedId: g }) => {
|
|
168
|
+
const s = (t, n) => {
|
|
168
169
|
(t.key === "Enter" || t.key === " ") && (t.preventDefault(), l(n));
|
|
169
170
|
};
|
|
170
|
-
return /* @__PURE__ */
|
|
171
|
-
|
|
171
|
+
return /* @__PURE__ */ d(h, { gap: 8, height: "100%", justifyContent: "center", my: "auto", children: r.categoryData.map((t) => /* @__PURE__ */ y(
|
|
172
|
+
h,
|
|
172
173
|
{
|
|
173
174
|
alignItems: "center",
|
|
174
175
|
"aria-label": t.name,
|
|
175
|
-
"aria-pressed": t.guid ===
|
|
176
|
+
"aria-pressed": t.guid === g,
|
|
176
177
|
direction: "row",
|
|
177
178
|
gap: 8,
|
|
178
179
|
onClick: () => l(t.guid),
|
|
179
|
-
onKeyDown: (n) =>
|
|
180
|
+
onKeyDown: (n) => s(n, t.guid),
|
|
180
181
|
role: "button",
|
|
181
182
|
sx: { cursor: "pointer" },
|
|
182
183
|
tabIndex: 0,
|
|
183
184
|
children: [
|
|
184
|
-
/* @__PURE__ */
|
|
185
|
-
/* @__PURE__ */
|
|
185
|
+
/* @__PURE__ */ d($, { borderRadius: 4, height: 8, sx: { backgroundColor: t.color }, width: 8 }),
|
|
186
|
+
/* @__PURE__ */ d(f, { bold: t.guid === g, variant: "XSmall", children: t.name })
|
|
186
187
|
]
|
|
187
188
|
},
|
|
188
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;
|
|
@@ -1688,8 +1688,8 @@ const B = {
|
|
|
1688
1688
|
spending_vs_income: {
|
|
1689
1689
|
main: g.standard_spend,
|
|
1690
1690
|
comparison: g.income,
|
|
1691
|
-
formattedMain: L(g.standard_spend, "0.0a"),
|
|
1692
|
-
formattedComparison: L(g.income, "0.0a")
|
|
1691
|
+
formattedMain: L(Math.round(g.standard_spend / 100) * 100, "0.0a"),
|
|
1692
|
+
formattedComparison: L(Math.round(g.income / 100) * 100, "0.0a")
|
|
1693
1693
|
},
|
|
1694
1694
|
debt_payment_vs_income: {
|
|
1695
1695
|
main: g.income,
|
|
@@ -1760,17 +1760,17 @@ const B = {
|
|
|
1760
1760
|
sx: {
|
|
1761
1761
|
width: 10,
|
|
1762
1762
|
height: 10,
|
|
1763
|
-
backgroundColor: "chartMono.
|
|
1763
|
+
backgroundColor: "chartMono.chartMono5",
|
|
1764
1764
|
borderRadius: "2px"
|
|
1765
1765
|
}
|
|
1766
1766
|
}
|
|
1767
1767
|
),
|
|
1768
1768
|
/* @__PURE__ */ i(u, { sx: { alignItems: "center", flexDirection: "row" }, children: [
|
|
1769
1769
|
/* @__PURE__ */ i(I, { variant: "subtitle2", children: [
|
|
1770
|
-
|
|
1770
|
+
s,
|
|
1771
1771
|
" "
|
|
1772
1772
|
] }),
|
|
1773
|
-
!h &&
|
|
1773
|
+
!h && d && /* @__PURE__ */ e(I, { sx: { fontWeight: 700 }, variant: "subtitle2", children: d })
|
|
1774
1774
|
] })
|
|
1775
1775
|
] }),
|
|
1776
1776
|
/* @__PURE__ */ i(u, { alignItems: "center", direction: "row", spacing: 8, children: [
|
|
@@ -1780,30 +1780,30 @@ const B = {
|
|
|
1780
1780
|
sx: {
|
|
1781
1781
|
width: 10,
|
|
1782
1782
|
height: 10,
|
|
1783
|
-
backgroundColor: "chartMono.
|
|
1783
|
+
backgroundColor: "chartMono.chartMono3",
|
|
1784
1784
|
borderRadius: "2px"
|
|
1785
1785
|
}
|
|
1786
1786
|
}
|
|
1787
1787
|
),
|
|
1788
1788
|
/* @__PURE__ */ i(u, { sx: { alignItems: "center", flexDirection: "row" }, children: [
|
|
1789
1789
|
/* @__PURE__ */ i(I, { variant: "subtitle2", children: [
|
|
1790
|
-
|
|
1790
|
+
a,
|
|
1791
1791
|
" "
|
|
1792
1792
|
] }),
|
|
1793
|
-
!h &&
|
|
1793
|
+
!h && l && /* @__PURE__ */ e(I, { sx: { fontWeight: 700 }, variant: "subtitle2", children: l })
|
|
1794
1794
|
] })
|
|
1795
1795
|
] })
|
|
1796
1796
|
] }),
|
|
1797
1797
|
/* @__PURE__ */ i(
|
|
1798
1798
|
po,
|
|
1799
1799
|
{
|
|
1800
|
-
colors: [`${p.palette.chartMono.
|
|
1800
|
+
colors: [`${p.palette.chartMono.chartMono5}`, `${p.palette.chartMono.chartMono3}`],
|
|
1801
1801
|
dataset: _,
|
|
1802
1802
|
height: 240,
|
|
1803
1803
|
margin: { top: 20, bottom: 30, right: 10, left: 42 },
|
|
1804
1804
|
series: [
|
|
1805
|
-
{ dataKey: "
|
|
1806
|
-
{ dataKey: "
|
|
1805
|
+
{ dataKey: "comparison", type: "bar" },
|
|
1806
|
+
{ dataKey: "main", type: "bar" }
|
|
1807
1807
|
],
|
|
1808
1808
|
xAxis: [b],
|
|
1809
1809
|
yAxis: [D],
|
|
@@ -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,
|
|
@@ -2033,7 +2033,9 @@ const B = {
|
|
|
2033
2033
|
const f = m.useMemo(
|
|
2034
2034
|
() => _o(d, c, t, l),
|
|
2035
2035
|
[d, l]
|
|
2036
|
-
)
|
|
2036
|
+
);
|
|
2037
|
+
console.log(JSON.parse(JSON.stringify(f)), "spendingData");
|
|
2038
|
+
const w = (g) => {
|
|
2037
2039
|
b(_ === g ? "" : g);
|
|
2038
2040
|
}, { totalSpending: y, totalIncome: D } = m.useMemo(() => r?.reduce(
|
|
2039
2041
|
(g, { standard_spend: x = 0, income: M = 0 }) => ({
|
|
@@ -2385,7 +2387,7 @@ const B = {
|
|
|
2385
2387
|
)
|
|
2386
2388
|
] });
|
|
2387
2389
|
}, Gr = S(Er), Hr = () => {
|
|
2388
|
-
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) => {
|
|
2389
2391
|
const p = zn(l), h = {
|
|
2390
2392
|
GOOD: n.manage_debit_good_description,
|
|
2391
2393
|
FAIR: n.manage_debit_fair_description,
|
|
@@ -2519,7 +2521,7 @@ const B = {
|
|
|
2519
2521
|
children: r.connect_more_accounts_button
|
|
2520
2522
|
}
|
|
2521
2523
|
) })
|
|
2522
|
-
] }) : /* @__PURE__ */ e(
|
|
2524
|
+
] }) : /* @__PURE__ */ e(Q, {});
|
|
2523
2525
|
}, Vr = S(Yr), Xr = {
|
|
2524
2526
|
add_more_income: "Add More Income"
|
|
2525
2527
|
}, qr = ({
|
|
@@ -2569,7 +2571,7 @@ const B = {
|
|
|
2569
2571
|
) })
|
|
2570
2572
|
] }), Ur = S(qr), Zr = {
|
|
2571
2573
|
select_date: "Select Date"
|
|
2572
|
-
},
|
|
2574
|
+
}, Jr = ({ selectedDate: t, setSelectedDate: r }) => {
|
|
2573
2575
|
const n = E(), o = (c) => {
|
|
2574
2576
|
r(Math.floor(new Date(c).getTime() / 1e3));
|
|
2575
2577
|
};
|
|
@@ -2603,7 +2605,7 @@ const B = {
|
|
|
2603
2605
|
value: t ? new Date(t * 1e3) : null
|
|
2604
2606
|
}
|
|
2605
2607
|
) }) });
|
|
2606
|
-
},
|
|
2608
|
+
}, Qr = S(Jr), ea = {
|
|
2607
2609
|
credit_score: "Credit Score"
|
|
2608
2610
|
}, ta = ({ creditScore: t, setCreditScore: r }) => {
|
|
2609
2611
|
const n = !isNaN(t);
|
|
@@ -2673,9 +2675,9 @@ const B = {
|
|
|
2673
2675
|
do_it_later: "Do It Later",
|
|
2674
2676
|
next: "Next"
|
|
2675
2677
|
}, ra = ({ isOpen: t, onClose: r }) => {
|
|
2676
|
-
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(
|
|
2677
2679
|
ht
|
|
2678
|
-
), [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("");
|
|
2679
2681
|
m.useEffect(() => {
|
|
2680
2682
|
d({ start: Lt(dt()), end: Wt(dt()) });
|
|
2681
2683
|
}, []), m.useEffect(() => {
|
|
@@ -2739,7 +2741,7 @@ const B = {
|
|
|
2739
2741
|
{
|
|
2740
2742
|
onSearch: qt,
|
|
2741
2743
|
onSelected: (A) => {
|
|
2742
|
-
x({ step: O.MonthlyIncome, type: "detail" }),
|
|
2744
|
+
x({ step: O.MonthlyIncome, type: "detail" }), Qe(A);
|
|
2743
2745
|
}
|
|
2744
2746
|
}
|
|
2745
2747
|
),
|
|
@@ -2748,7 +2750,7 @@ const B = {
|
|
|
2748
2750
|
secondaryText: P.add_income_secondary
|
|
2749
2751
|
},
|
|
2750
2752
|
[O.Birthday]: {
|
|
2751
|
-
main: /* @__PURE__ */ e(
|
|
2753
|
+
main: /* @__PURE__ */ e(Qr, { selectedDate: X, setSelectedDate: se }),
|
|
2752
2754
|
mainActionContent: P.next,
|
|
2753
2755
|
primaryText: P.birthday_primary,
|
|
2754
2756
|
secondaryText: P.birthday_secondary
|
|
@@ -2760,7 +2762,7 @@ const B = {
|
|
|
2760
2762
|
secondaryText: P.credit_score_secondary
|
|
2761
2763
|
}
|
|
2762
2764
|
}, tt = () => {
|
|
2763
|
-
x(ht), ae(!1),
|
|
2765
|
+
x(ht), ae(!1), Qe(""), r();
|
|
2764
2766
|
}, nt = async () => {
|
|
2765
2767
|
ae(!0), await en(T), await o(), await w({ ...b, has_completed_finstrong_onboarding: !0 }), tt();
|
|
2766
2768
|
}, Zt = () => {
|
|
@@ -2769,7 +2771,7 @@ const B = {
|
|
|
2769
2771
|
return;
|
|
2770
2772
|
}
|
|
2771
2773
|
x({ step: g.step + 1, type: "main" });
|
|
2772
|
-
},
|
|
2774
|
+
}, Jt = () => {
|
|
2773
2775
|
const { step: A } = g, R = A + 1;
|
|
2774
2776
|
switch (A) {
|
|
2775
2777
|
case O.Birthday:
|
|
@@ -2792,7 +2794,7 @@ const B = {
|
|
|
2792
2794
|
break;
|
|
2793
2795
|
}
|
|
2794
2796
|
R in O && x({ step: R, type: "main" });
|
|
2795
|
-
},
|
|
2797
|
+
}, Qt = () => {
|
|
2796
2798
|
const { step: A, type: R } = g;
|
|
2797
2799
|
if (R === "detail") {
|
|
2798
2800
|
x({ step: A, type: "main" });
|
|
@@ -2817,7 +2819,7 @@ const B = {
|
|
|
2817
2819
|
merchant_guid: cn,
|
|
2818
2820
|
payee: ln,
|
|
2819
2821
|
transaction_type: dn
|
|
2820
|
-
} = R, pn =
|
|
2822
|
+
} = R, pn = Qn(ot, yo(de)), un = {
|
|
2821
2823
|
account_guid: ge,
|
|
2822
2824
|
amount: Ie,
|
|
2823
2825
|
created_by: 0,
|
|
@@ -2846,13 +2848,13 @@ const B = {
|
|
|
2846
2848
|
isOpen: t,
|
|
2847
2849
|
isPrimaryDisabled: !Vt,
|
|
2848
2850
|
onClose: tt,
|
|
2849
|
-
onSecondaryAction:
|
|
2851
|
+
onSecondaryAction: Qt,
|
|
2850
2852
|
primaryButtonProps: tn,
|
|
2851
2853
|
primaryText: me?.mainActionContent,
|
|
2852
2854
|
secondaryColor: "primary",
|
|
2853
2855
|
secondaryText: P.back,
|
|
2854
2856
|
title: c.title,
|
|
2855
|
-
...!re && { onPrimaryAction:
|
|
2857
|
+
...!re && { onPrimaryAction: Jt },
|
|
2856
2858
|
children: [
|
|
2857
2859
|
re && /* @__PURE__ */ i(u, { sx: { alignItems: "center", gap: 24, position: "relative", px: 16, top: 126 }, children: [
|
|
2858
2860
|
/* @__PURE__ */ e(Pe, { children: P.calculate_primary }),
|
|
@@ -2918,7 +2920,7 @@ const B = {
|
|
|
2918
2920
|
/* @__PURE__ */ e(aa, { isOpen: t, onClose: () => r(!1) })
|
|
2919
2921
|
] });
|
|
2920
2922
|
}, sa = ({ isOpen: t, onClose: r }) => {
|
|
2921
|
-
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) => {
|
|
2922
2924
|
d(Math.floor(new Date(h).getTime() / 1e3));
|
|
2923
2925
|
};
|
|
2924
2926
|
return /* @__PURE__ */ e(
|
|
@@ -2971,7 +2973,7 @@ const B = {
|
|
|
2971
2973
|
accounts: o,
|
|
2972
2974
|
common: c,
|
|
2973
2975
|
finstrong: a
|
|
2974
|
-
} = v(), { repeatingTransactions: s } = Ve(), { user: d } =
|
|
2976
|
+
} = v(), { repeatingTransactions: s } = Ve(), { user: d } = J(), l = s.reduce((f, w) => {
|
|
2975
2977
|
const { repeating_transaction_type: y, transactions: D, recurrence_type: g, amount: x } = w;
|
|
2976
2978
|
return y === Rt.Income && (D.length > 0 || g === Ot.EveryYear) ? f + x : f;
|
|
2977
2979
|
}, 0), [p, h] = m.useState(null), b = [
|
|
@@ -3161,7 +3163,7 @@ const B = {
|
|
|
3161
3163
|
] }) });
|
|
3162
3164
|
}, ua = S(pa), _a = ({ isOpen: t, onClose: r }) => {
|
|
3163
3165
|
const n = E(), { finstrong: o } = v(), { isCopyLoaded: c, isInitialized: a } = j(), { healthScore: s, healthScoreChangeReports: d, augmentedChartData: l } = F();
|
|
3164
|
-
if (!c || !a) return /* @__PURE__ */ e(
|
|
3166
|
+
if (!c || !a) return /* @__PURE__ */ e(Q, {});
|
|
3165
3167
|
const p = je(s.health_score || 0, o), h = d.slice().reverse();
|
|
3166
3168
|
return /* @__PURE__ */ e(
|
|
3167
3169
|
Ht,
|
|
@@ -3350,10 +3352,10 @@ const B = {
|
|
|
3350
3352
|
}
|
|
3351
3353
|
)
|
|
3352
3354
|
] })
|
|
3353
|
-
] }) }) : /* @__PURE__ */ e(
|
|
3355
|
+
] }) }) : /* @__PURE__ */ e(Q, {});
|
|
3354
3356
|
}, ya = S(ga), ba = S(() => {
|
|
3355
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);
|
|
3356
|
-
return !s || !d ? /* @__PURE__ */ e(
|
|
3358
|
+
return !s || !d ? /* @__PURE__ */ e(Q, {}) : /* @__PURE__ */ i(K, { ref: o, sx: { p: 16 }, children: [
|
|
3357
3359
|
/* @__PURE__ */ e(
|
|
3358
3360
|
$o,
|
|
3359
3361
|
{
|
|
@@ -3458,7 +3460,7 @@ const B = {
|
|
|
3458
3460
|
healthScore: b,
|
|
3459
3461
|
loadAugmentedChartData: f,
|
|
3460
3462
|
loadMonthlySummaries: w
|
|
3461
|
-
} = 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);
|
|
3462
3464
|
if (m.useEffect(() => {
|
|
3463
3465
|
d(T);
|
|
3464
3466
|
}, []), m.useEffect(() => {
|
|
@@ -3467,7 +3469,7 @@ const B = {
|
|
|
3467
3469
|
x && (_().finally(), f().finally(), w().finally());
|
|
3468
3470
|
}, [x]), m.useEffect(() => {
|
|
3469
3471
|
x && (l(M, c.start, c.end), a || (s(), G().finally()));
|
|
3470
|
-
}, [c, a, x, M]), !g || !x) return /* @__PURE__ */ e(
|
|
3472
|
+
}, [c, a, x, M]), !g || !x) return /* @__PURE__ */ e(Q, {});
|
|
3471
3473
|
const ce = () => {
|
|
3472
3474
|
}, he = () => ae(!0);
|
|
3473
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