@mx-cartographer/experiences 7.4.3 → 7.4.5-alpha.mega1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/{FinstrongStore-BnBCtVTl.mjs → FinstrongStore-BIrX0Xg2.mjs} +125 -115
- package/dist/cashflow/index.es.js +1 -1
- package/dist/common/index.es.js +1 -1
- package/dist/finstrong/constants/index.d.ts +0 -11
- package/dist/finstrong/index.es.js +601 -604
- package/dist/finstrong/stores/FinstrongStore.d.ts +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { makeAutoObservable as D, runInAction as d } from "mobx";
|
|
2
2
|
import { format as R } from "date-fns/format";
|
|
3
3
|
import { fromUnixTime as b } from "date-fns/fromUnixTime";
|
|
4
|
-
import { getUnixTime as
|
|
4
|
+
import { getUnixTime as _ } from "date-fns/getUnixTime";
|
|
5
5
|
import { subMonths as H } from "date-fns/subMonths";
|
|
6
6
|
import { F as x, A as h } from "./Fetch-DecPFeGU.mjs";
|
|
7
|
-
import { jsx as c, jsxs as
|
|
7
|
+
import { jsx as c, jsxs as C } from "react/jsx-runtime";
|
|
8
8
|
import { addDays as v } from "date-fns/addDays";
|
|
9
9
|
import { addMonths as M } from "date-fns/addMonths";
|
|
10
10
|
import { addYears as G } from "date-fns/addYears";
|
|
@@ -14,17 +14,17 @@ import { differenceInWeeks as A } from "date-fns/differenceInWeeks";
|
|
|
14
14
|
import { startOfToday as N } from "date-fns/startOfToday";
|
|
15
15
|
import { ChevronRight as P, Check as k } from "@mxenabled/mx-icons";
|
|
16
16
|
import $ from "react";
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
17
|
+
import z from "@mui/material/Avatar";
|
|
18
|
+
import K from "@mui/material/Box";
|
|
19
|
+
import B from "@mui/material/Divider";
|
|
20
|
+
import Y from "@mui/material/List";
|
|
21
|
+
import U from "@mui/material/ListItem";
|
|
22
|
+
import X from "@mui/material/ListItemAvatar";
|
|
23
|
+
import V from "@mui/material/ListItemButton";
|
|
24
|
+
import W from "@mui/material/ListItemText";
|
|
25
25
|
import { Text as y } from "@mxenabled/mxui";
|
|
26
|
-
import { f as
|
|
27
|
-
import { b as
|
|
26
|
+
import { f as O, a as T } from "./Dialog-BPTr3qHE.mjs";
|
|
27
|
+
import { b as j } from "./Localization-2MODESHW.mjs";
|
|
28
28
|
import { f as q } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
29
29
|
const m = {
|
|
30
30
|
creditScore: {
|
|
@@ -53,9 +53,9 @@ const m = {
|
|
|
53
53
|
OFF_TRACK: "OFF TRACK",
|
|
54
54
|
MISSING: "MISSING DATA"
|
|
55
55
|
};
|
|
56
|
-
var
|
|
57
|
-
const J = ({ list: e, onClickItem: t }) => /* @__PURE__ */ c(
|
|
58
|
-
|
|
56
|
+
var I = /* @__PURE__ */ ((e) => (e.Connections = "connections", e.CreditScore = "credit_score", e.DateOfBirth = "date_of_birth", e.MonthlyIncome = "monthly_income", e))(I || {});
|
|
57
|
+
const J = ({ list: e, onClickItem: t }) => /* @__PURE__ */ c(K, { sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ c(
|
|
58
|
+
Y,
|
|
59
59
|
{
|
|
60
60
|
sx: {
|
|
61
61
|
"& .MuiListItemSecondaryAction-root": {
|
|
@@ -63,14 +63,14 @@ const J = ({ list: e, onClickItem: t }) => /* @__PURE__ */ c(B, { sx: { bgcolor:
|
|
|
63
63
|
pr: 24
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
|
-
children: e.map((
|
|
67
|
-
/* @__PURE__ */ c(
|
|
68
|
-
/* @__PURE__ */ c(
|
|
69
|
-
|
|
66
|
+
children: e.map((n, r) => /* @__PURE__ */ C($.Fragment, { children: [
|
|
67
|
+
/* @__PURE__ */ c(U, { secondaryAction: /* @__PURE__ */ c(P, {}), children: /* @__PURE__ */ C(V, { onClick: () => t(n.key), children: [
|
|
68
|
+
/* @__PURE__ */ c(X, { children: /* @__PURE__ */ c(
|
|
69
|
+
z,
|
|
70
70
|
{
|
|
71
71
|
sx: {
|
|
72
72
|
bgcolor: "primary.main",
|
|
73
|
-
...!
|
|
73
|
+
...!n.isComplete && {
|
|
74
74
|
bgcolor: "transparent",
|
|
75
75
|
borderColor: "action.active",
|
|
76
76
|
borderStyle: "solid",
|
|
@@ -78,19 +78,19 @@ const J = ({ list: e, onClickItem: t }) => /* @__PURE__ */ c(B, { sx: { bgcolor:
|
|
|
78
78
|
color: "action.active"
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
|
-
children:
|
|
81
|
+
children: n.icon
|
|
82
82
|
}
|
|
83
83
|
) }),
|
|
84
84
|
/* @__PURE__ */ c(
|
|
85
|
-
|
|
85
|
+
W,
|
|
86
86
|
{
|
|
87
|
-
primary: /* @__PURE__ */ c(y, { sx: { color: "text.secondary" }, variant: "caption", children:
|
|
88
|
-
secondary: /* @__PURE__ */ c(y, { sx: { color: "text.primary", fontWeight: 600 }, variant: "body1", children:
|
|
87
|
+
primary: /* @__PURE__ */ c(y, { sx: { color: "text.secondary" }, variant: "caption", children: n.primaryText }),
|
|
88
|
+
secondary: /* @__PURE__ */ c(y, { sx: { color: "text.primary", fontWeight: 600 }, variant: "body1", children: n.secondaryText })
|
|
89
89
|
}
|
|
90
90
|
)
|
|
91
91
|
] }) }),
|
|
92
|
-
|
|
93
|
-
] },
|
|
92
|
+
r < e.length - 1 && /* @__PURE__ */ c(B, { sx: { color: "divider", ml: 68 } })
|
|
93
|
+
] }, n.key))
|
|
94
94
|
}
|
|
95
95
|
) }), Gt = J, Lt = (e) => e * (180 / Math.PI), wt = (e, t) => [
|
|
96
96
|
{
|
|
@@ -129,86 +129,86 @@ const J = ({ list: e, onClickItem: t }) => /* @__PURE__ */ c(B, { sx: { bgcolor:
|
|
|
129
129
|
GOOD: "#FFC02C",
|
|
130
130
|
VERY_GOOD: "#29C76B",
|
|
131
131
|
EXCEPTIONAL: "#008A5A"
|
|
132
|
-
}, Nt = (e, t,
|
|
133
|
-
status:
|
|
132
|
+
}, Nt = (e, t, n) => e >= 300 && e < 580 ? {
|
|
133
|
+
status: n.poor,
|
|
134
134
|
color: t ? u.POOR : g.POOR
|
|
135
135
|
} : e >= 580 && e < 670 ? {
|
|
136
|
-
status:
|
|
136
|
+
status: n.fair,
|
|
137
137
|
color: t ? u.FAIR : g.FAIR
|
|
138
138
|
} : e >= 670 && e < 740 ? {
|
|
139
|
-
status:
|
|
139
|
+
status: n.good,
|
|
140
140
|
color: t ? u.GOOD : g.GOOD
|
|
141
141
|
} : e >= 740 && e < 800 ? {
|
|
142
|
-
status:
|
|
142
|
+
status: n.very_good,
|
|
143
143
|
color: t ? u.VERY_GOOD : g.VERY_GOOD
|
|
144
144
|
} : e >= 800 && e <= 850 ? {
|
|
145
|
-
status:
|
|
145
|
+
status: n.exceptional,
|
|
146
146
|
color: t ? u.EXCEPTIONAL : g.EXCEPTIONAL
|
|
147
|
-
} : { status:
|
|
147
|
+
} : { status: n.missing_data }, Pt = (e, t, n, r) => {
|
|
148
148
|
const o = e.reduce((i, l) => i + l.value, 0);
|
|
149
149
|
let a = 0;
|
|
150
150
|
const s = e.map((i) => {
|
|
151
|
-
const l = i.value / o * t, p =
|
|
151
|
+
const l = i.value / o * t, p = n + a, f = p + l;
|
|
152
152
|
return a += l, {
|
|
153
153
|
...i,
|
|
154
154
|
startAngle: p,
|
|
155
155
|
endAngle: f
|
|
156
156
|
};
|
|
157
157
|
});
|
|
158
|
-
return [s[
|
|
159
|
-
}, kt = (e, t,
|
|
158
|
+
return [s[r].startAngle, s[r].endAngle];
|
|
159
|
+
}, kt = (e, t, n, r, o) => {
|
|
160
160
|
let a = 0, s = 0;
|
|
161
|
-
const i = Math.floor(
|
|
162
|
-
return i >
|
|
163
|
-
}, $t = (e, t,
|
|
164
|
-
const
|
|
165
|
-
return [
|
|
166
|
-
},
|
|
161
|
+
const i = Math.floor(r), l = r - i;
|
|
162
|
+
return i > n ? (a = e, s = t) : i === n && l > 0 && (a = e, s = o), [a, s];
|
|
163
|
+
}, $t = (e, t, n = 0) => {
|
|
164
|
+
const r = e * Math.sin(t - n), o = -e * Math.cos(t - n);
|
|
165
|
+
return [r, o];
|
|
166
|
+
}, zt = ({
|
|
167
167
|
dynamicCopy: e,
|
|
168
168
|
fallbackLabel: t,
|
|
169
|
-
icon:
|
|
170
|
-
key:
|
|
169
|
+
icon: n,
|
|
170
|
+
key: r,
|
|
171
171
|
label: o,
|
|
172
172
|
value: a
|
|
173
173
|
}) => {
|
|
174
|
-
const s = !!a, i = s ? Q(
|
|
174
|
+
const s = !!a, i = s ? Q(r, a) : e && j(e, t) || t;
|
|
175
175
|
return {
|
|
176
|
-
icon: s ? /* @__PURE__ */ c(k, {}) :
|
|
176
|
+
icon: s ? /* @__PURE__ */ c(k, {}) : n,
|
|
177
177
|
isComplete: s,
|
|
178
|
-
key:
|
|
178
|
+
key: r,
|
|
179
179
|
primaryText: o,
|
|
180
180
|
secondaryText: i
|
|
181
181
|
};
|
|
182
182
|
}, Q = (e, t) => ({
|
|
183
|
-
[
|
|
184
|
-
[
|
|
185
|
-
})[e]?.(t) ?? String(t),
|
|
183
|
+
[I.DateOfBirth]: (r) => R(new Date(Number(r) * 1e3), "MMM d, yyyy"),
|
|
184
|
+
[I.MonthlyIncome]: (r) => q(Number(r), "0.00")
|
|
185
|
+
})[e]?.(t) ?? String(t), Kt = (e) => e !== null ? Math.round(e * 100) : null, Bt = (e) => {
|
|
186
186
|
const t = new Date((/* @__PURE__ */ new Date()).getFullYear(), e - 1, 1);
|
|
187
|
-
return
|
|
187
|
+
return O(t, T.MONTH_SHORT);
|
|
188
|
+
}, Yt = (e) => {
|
|
189
|
+
const { good: t, poor: n } = m.daysOfCashOnHand;
|
|
190
|
+
return e === null ? "MISSING" : e >= t ? "GOOD" : e >= n ? "FAIR" : "OFF_TRACK";
|
|
188
191
|
}, Ut = (e) => {
|
|
189
|
-
const { good: t, poor:
|
|
190
|
-
return e === null ? "MISSING" : e >= t ? "GOOD" : e >=
|
|
192
|
+
const { good: t, poor: n } = m.emergencySavings;
|
|
193
|
+
return e === null ? "MISSING" : e >= t ? "GOOD" : e >= n ? "FAIR" : "OFF_TRACK";
|
|
191
194
|
}, Xt = (e) => {
|
|
192
|
-
const { good: t, poor:
|
|
193
|
-
return e === null ? "MISSING" : e
|
|
195
|
+
const { good: t, poor: n } = m.spendToIncomeRatio;
|
|
196
|
+
return e === null ? "MISSING" : e < t ? "GOOD" : e < n ? "FAIR" : "OFF_TRACK";
|
|
194
197
|
}, Vt = (e) => {
|
|
195
|
-
const { good: t, poor:
|
|
196
|
-
return e === null ? "MISSING" : e
|
|
198
|
+
const { good: t, poor: n } = m.debtToIncomeRatio;
|
|
199
|
+
return e === null ? "MISSING" : e <= t ? "GOOD" : e <= n ? "FAIR" : "OFF_TRACK";
|
|
197
200
|
}, Wt = (e) => {
|
|
198
|
-
const { good: t, poor:
|
|
199
|
-
return e === null ? "MISSING" : e
|
|
200
|
-
}, jt = (e) => {
|
|
201
|
-
const
|
|
202
|
-
return e === null ? "MISSING" : e >= t ? "GOOD" : e >= r ? "FAIR" : "OFF_TRACK";
|
|
203
|
-
}, Z = (e) => e === null ? "MISSING" : e === 0 ? "GOOD" : "OFF_TRACK", zt = (e, t) => {
|
|
204
|
-
const r = Z(e), n = {
|
|
201
|
+
const { good: t, poor: n } = m.creditScore;
|
|
202
|
+
return e === null ? "MISSING" : e >= t ? "GOOD" : e >= n ? "FAIR" : "OFF_TRACK";
|
|
203
|
+
}, Z = (e) => e === null ? "MISSING" : e === 0 ? "GOOD" : "OFF_TRACK", jt = (e, t) => {
|
|
204
|
+
const n = Z(e), r = {
|
|
205
205
|
GOOD: t.count_good_description,
|
|
206
206
|
OFF_TRACK: t.count_off_track_description,
|
|
207
207
|
MISSING: t.count_missing_description
|
|
208
208
|
};
|
|
209
209
|
return {
|
|
210
|
-
cardState:
|
|
211
|
-
description: n
|
|
210
|
+
cardState: n,
|
|
211
|
+
description: r[n],
|
|
212
212
|
title: t.count_card_title
|
|
213
213
|
};
|
|
214
214
|
}, qt = (e) => ({
|
|
@@ -216,11 +216,11 @@ const J = ({ list: e, onClickItem: t }) => /* @__PURE__ */ c(B, { sx: { bgcolor:
|
|
|
216
216
|
[S.FAIR]: { backgroundColor: "warning.lighter", color: "warning.dark" },
|
|
217
217
|
[S.OFF_TRACK]: { backgroundColor: "error.lighter", color: "error.dark" },
|
|
218
218
|
[S.MISSING]: { backgroundColor: "divider", color: "text.secondary" }
|
|
219
|
-
})[e], tt = 1, et = 1,
|
|
219
|
+
})[e], tt = 1, et = 1, nt = {
|
|
220
220
|
1: M,
|
|
221
221
|
2: G,
|
|
222
222
|
3: v
|
|
223
|
-
},
|
|
223
|
+
}, rt = {
|
|
224
224
|
1: w,
|
|
225
225
|
2: (e, t) => A(e, t) / 2,
|
|
226
226
|
3: A,
|
|
@@ -232,44 +232,44 @@ const J = ({ list: e, onClickItem: t }) => /* @__PURE__ */ c(B, { sx: { bgcolor:
|
|
|
232
232
|
], Jt = ({
|
|
233
233
|
contribution: e,
|
|
234
234
|
goalAmount: t,
|
|
235
|
-
goalPeriod:
|
|
236
|
-
targetPeriod:
|
|
235
|
+
goalPeriod: n,
|
|
236
|
+
targetPeriod: r,
|
|
237
237
|
totalSaved: o
|
|
238
238
|
}) => {
|
|
239
239
|
const a = t - o;
|
|
240
240
|
if (a <= 0) return 0;
|
|
241
|
-
const s = N(), i =
|
|
241
|
+
const s = N(), i = nt[r], l = rt[e];
|
|
242
242
|
if (!i || !l) return a;
|
|
243
|
-
const p = i(s,
|
|
243
|
+
const p = i(s, n), f = l(p, s);
|
|
244
244
|
return Math.max(a / (f || 1), 1);
|
|
245
|
-
}, Qt = (e) => !e || e <= 0 ? "0%" : e >= 1e3 ? "100%" : `${Math.round(e / 10)}%`, Zt = (e) => E.find((
|
|
246
|
-
x:
|
|
247
|
-
y:
|
|
248
|
-
})), ot = (e) => e.sort((t,
|
|
249
|
-
x:
|
|
245
|
+
}, Qt = (e) => !e || e <= 0 ? "0%" : e >= 1e3 ? "100%" : `${Math.round(e / 10)}%`, Zt = (e) => E.find((n) => e < n.upperLimit)?.targetAmount ?? et, te = (e) => E.find((r) => e < r.upperLimit)?.contributionPeriodIndex ?? tt, ee = (e, t) => [...e].sort((r, o) => r.year === o.year ? r.month - o.month : r.year - o.year).map((r) => ({
|
|
246
|
+
x: O(new Date(0, r.month - 1, 1), T.MONTH_SHORT),
|
|
247
|
+
y: r[t]
|
|
248
|
+
})), ot = (e) => e.sort((t, n) => t.monthly_health_score_average.month - n.monthly_health_score_average.month).map((t) => ({
|
|
249
|
+
x: O(
|
|
250
250
|
new Date(0, t.monthly_health_score_average.month - 1, 1),
|
|
251
|
-
|
|
251
|
+
T.MONTH_SHORT
|
|
252
252
|
),
|
|
253
253
|
y: Math.round(t.monthly_health_score_average.average_health_score)
|
|
254
|
-
})), at = (e) => e.map(({ transaction:
|
|
255
|
-
...
|
|
256
|
-
})).sort((
|
|
254
|
+
})), at = (e) => e.map(({ transaction: n }) => ({
|
|
255
|
+
...n
|
|
256
|
+
})).sort((n, r) => r.date - n.date);
|
|
257
257
|
class F {
|
|
258
258
|
fetchInstance;
|
|
259
|
-
constructor(t,
|
|
260
|
-
this.fetchInstance = new x(t,
|
|
259
|
+
constructor(t, n, r) {
|
|
260
|
+
this.fetchInstance = new x(t, n, void 0, r);
|
|
261
261
|
}
|
|
262
262
|
calculateHealthScore = async () => this.fetchInstance.post(`${h.HEALTH_SCORES}/calculate`).then((t) => t.health_score);
|
|
263
263
|
getAverageHealthScores = async () => this.fetchInstance.get(`${h.HEALTH_SCORES}/monthly_averages`).then((t) => t);
|
|
264
264
|
getDebtSpend = async () => this.fetchInstance.get(`${h.HEALTH_SCORES}/transactions/debt_spend`).then((t) => t);
|
|
265
265
|
getIncome = async () => this.fetchInstance.get(`${h.HEALTH_SCORES}/transactions/income`).then((t) => t);
|
|
266
266
|
getMonthlySummaries = async () => this.fetchInstance.get(`${h.HEALTH_SCORES}/monthly_summaries`).then((t) => t);
|
|
267
|
-
getHealthScoreChangeReports = async (t,
|
|
268
|
-
getPeerScore = async (t) => this.fetchInstance.get(`${h.HEALTH_SCORES}/average/${t}`).then((
|
|
267
|
+
getHealthScoreChangeReports = async (t, n) => this.fetchInstance.get(`${h.HEALTH_SCORES}/change_report/from/${t}/to/${n}`).then((r) => r);
|
|
268
|
+
getPeerScore = async (t) => this.fetchInstance.get(`${h.HEALTH_SCORES}/average/${t}`).then((n) => n);
|
|
269
269
|
getSpendingFeeTransactions = async () => this.fetchInstance.get(`${h.HEALTH_SCORES}/transactions/spending_fee`).then((t) => t);
|
|
270
270
|
getStandardSpend = async () => this.fetchInstance.get(`${h.HEALTH_SCORES}/transactions/standard_spend`).then((t) => t);
|
|
271
271
|
}
|
|
272
|
-
class
|
|
272
|
+
class ne {
|
|
273
273
|
api = new F("/", "");
|
|
274
274
|
augmentedChartData = [];
|
|
275
275
|
averageHealthScores = [];
|
|
@@ -283,17 +283,25 @@ class re {
|
|
|
283
283
|
healthScoreChange;
|
|
284
284
|
healthScoreChangeReports = [];
|
|
285
285
|
peerScore = null;
|
|
286
|
+
isSpendingInitialized = !1;
|
|
287
|
+
isIncomeInitialized = !1;
|
|
286
288
|
constructor(t) {
|
|
287
289
|
this.globalStore = t, this.api = new F(t.endpoint, t.sessionToken, t.onError), D(this);
|
|
288
290
|
}
|
|
291
|
+
setSpendingInitialized = (t) => {
|
|
292
|
+
this.isSpendingInitialized = t;
|
|
293
|
+
};
|
|
294
|
+
setIncomeInitialized = (t) => {
|
|
295
|
+
this.isIncomeInitialized = t;
|
|
296
|
+
};
|
|
289
297
|
calculateHealthScore = async () => {
|
|
290
298
|
try {
|
|
291
299
|
const t = await this.api.calculateHealthScore();
|
|
292
|
-
let
|
|
300
|
+
let n = 0;
|
|
293
301
|
await this.loadHealthScoreChangeReports();
|
|
294
|
-
const
|
|
295
|
-
|
|
296
|
-
this.healthScore = t, this.healthScoreChange =
|
|
302
|
+
const r = t?.health_score || 0, o = this.healthScoreChangeReports.at(-1)?.older_health_score || 0;
|
|
303
|
+
n = r - o, d(() => {
|
|
304
|
+
this.healthScore = t, this.healthScoreChange = n;
|
|
297
305
|
});
|
|
298
306
|
} catch (t) {
|
|
299
307
|
console.error("Error calculating health score:", t);
|
|
@@ -330,38 +338,39 @@ class re {
|
|
|
330
338
|
}
|
|
331
339
|
};
|
|
332
340
|
loadIncome = async () => {
|
|
341
|
+
this.setIncomeInitialized(!1);
|
|
333
342
|
try {
|
|
334
343
|
const t = await this.api.getIncome();
|
|
335
344
|
d(() => {
|
|
336
|
-
this.incomeTransactions = t;
|
|
345
|
+
this.incomeTransactions = t, this.setIncomeInitialized(!0);
|
|
337
346
|
});
|
|
338
347
|
} catch (t) {
|
|
339
348
|
console.error("Error loading income:", t);
|
|
340
349
|
}
|
|
341
350
|
};
|
|
342
351
|
loadHealthScoreChangeReports = async () => {
|
|
343
|
-
const t =
|
|
352
|
+
const t = _(H(/* @__PURE__ */ new Date(), 2)), n = _(/* @__PURE__ */ new Date());
|
|
344
353
|
try {
|
|
345
|
-
const
|
|
354
|
+
const r = await this.api.getHealthScoreChangeReports(
|
|
346
355
|
t,
|
|
347
|
-
|
|
356
|
+
n
|
|
348
357
|
);
|
|
349
358
|
d(() => {
|
|
350
|
-
this.healthScoreChangeReports =
|
|
359
|
+
this.healthScoreChangeReports = r;
|
|
351
360
|
});
|
|
352
|
-
} catch (
|
|
353
|
-
console.error("Error loading health score change reports:",
|
|
361
|
+
} catch (r) {
|
|
362
|
+
console.error("Error loading health score change reports:", r);
|
|
354
363
|
}
|
|
355
364
|
};
|
|
356
365
|
loadPeerScore = async () => {
|
|
357
366
|
const t = R(b(this.globalStore.appDataStore.user.birthday), "yyyy");
|
|
358
367
|
try {
|
|
359
|
-
const
|
|
368
|
+
const n = await this.api.getPeerScore(t);
|
|
360
369
|
d(() => {
|
|
361
|
-
this.peerScore =
|
|
370
|
+
this.peerScore = n;
|
|
362
371
|
});
|
|
363
|
-
} catch (
|
|
364
|
-
console.error("Error loading peer score:",
|
|
372
|
+
} catch (n) {
|
|
373
|
+
console.error("Error loading peer score:", n);
|
|
365
374
|
}
|
|
366
375
|
};
|
|
367
376
|
loadAugmentedChartData = async () => {
|
|
@@ -376,19 +385,20 @@ class re {
|
|
|
376
385
|
};
|
|
377
386
|
getSpendingFeeTransactions = async () => {
|
|
378
387
|
try {
|
|
379
|
-
const t = await this.api.getSpendingFeeTransactions(),
|
|
388
|
+
const t = await this.api.getSpendingFeeTransactions(), n = at(t);
|
|
380
389
|
d(() => {
|
|
381
|
-
this.spendingFeeTransactions =
|
|
390
|
+
this.spendingFeeTransactions = n;
|
|
382
391
|
});
|
|
383
392
|
} catch (t) {
|
|
384
393
|
console.error(`Error occurred while getting spending fee transactions: ${t}`);
|
|
385
394
|
}
|
|
386
395
|
};
|
|
387
396
|
loadSpendTransactions = async () => {
|
|
397
|
+
this.setSpendingInitialized(!1);
|
|
388
398
|
try {
|
|
389
399
|
const t = await this.api.getStandardSpend();
|
|
390
400
|
d(() => {
|
|
391
|
-
this.spendTransactions = [...t];
|
|
401
|
+
this.spendTransactions = [...t], this.setSpendingInitialized(!0);
|
|
392
402
|
});
|
|
393
403
|
} catch (t) {
|
|
394
404
|
console.error("Error loading spend transactions:", t);
|
|
@@ -409,9 +419,9 @@ class re {
|
|
|
409
419
|
};
|
|
410
420
|
}
|
|
411
421
|
export {
|
|
412
|
-
|
|
422
|
+
I as A,
|
|
413
423
|
u as C,
|
|
414
|
-
|
|
424
|
+
ne as F,
|
|
415
425
|
Gt as P,
|
|
416
426
|
kt as a,
|
|
417
427
|
$t as b,
|
|
@@ -422,20 +432,20 @@ export {
|
|
|
422
432
|
Pt as g,
|
|
423
433
|
qt as h,
|
|
424
434
|
S as i,
|
|
425
|
-
|
|
435
|
+
Wt as j,
|
|
426
436
|
te as k,
|
|
427
437
|
Zt as l,
|
|
428
438
|
Jt as m,
|
|
429
439
|
Qt as n,
|
|
430
|
-
|
|
440
|
+
Ut as o,
|
|
431
441
|
Z as p,
|
|
432
|
-
|
|
442
|
+
Yt as q,
|
|
433
443
|
Lt as r,
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
444
|
+
Kt as s,
|
|
445
|
+
Vt as t,
|
|
446
|
+
Bt as u,
|
|
447
|
+
Xt as v,
|
|
448
|
+
jt as w,
|
|
449
|
+
zt as x,
|
|
440
450
|
F as y
|
|
441
451
|
};
|
package/dist/common/index.es.js
CHANGED
|
@@ -63,7 +63,7 @@ import { startOfToday as O } from "date-fns/startOfToday";
|
|
|
63
63
|
import { f as wt, a as xt, b as L } from "../BudgetUtil-Df2nII9u.mjs";
|
|
64
64
|
import { g as Zo, e as Jo, c as ta, d as ea, i as sa } from "../BudgetUtil-Df2nII9u.mjs";
|
|
65
65
|
import { a as Ct } from "../DebtsStore-Bu8rRRSL.mjs";
|
|
66
|
-
import { F as vt } from "../FinstrongStore-
|
|
66
|
+
import { F as vt } from "../FinstrongStore-BIrX0Xg2.mjs";
|
|
67
67
|
import { A as Dt, m as At, a as Et, b as Tt } from "../InvestmentUtil-jOyOgzIB.mjs";
|
|
68
68
|
import { M as Bt } from "../MerchantStore-WvZ4gnQe.mjs";
|
|
69
69
|
import { N as It } from "../NetWorthStore-CpL_kqvx.mjs";
|
|
@@ -7,14 +7,3 @@ export declare enum KeyIndicatorsTabItemType {
|
|
|
7
7
|
HaveAGoodCreditScore = "haveAGoodCreditScore"
|
|
8
8
|
}
|
|
9
9
|
export declare const CALCULATING_ANIMATION_URL = "https://content.moneydesktop.com/storage/MD_Assets/serenity/loading_animation_final.gif";
|
|
10
|
-
export declare const DEBT_THRESHOLD: {
|
|
11
|
-
Good: number;
|
|
12
|
-
FairMin: number;
|
|
13
|
-
FairMax: number;
|
|
14
|
-
OffTrack: number;
|
|
15
|
-
};
|
|
16
|
-
export declare const SPEND_THRESHOLD: {
|
|
17
|
-
Good: number;
|
|
18
|
-
Fair: number;
|
|
19
|
-
OffTrack: number;
|
|
20
|
-
};
|