@mx-cartographer/experiences 7.2.9-alpha-ram2-finstrong-testing → 7.2.9-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.
|
@@ -23,7 +23,7 @@ import V from "@mui/material/ListItemAvatar";
|
|
|
23
23
|
import j from "@mui/material/ListItemButton";
|
|
24
24
|
import z from "@mui/material/ListItemText";
|
|
25
25
|
import { Text as F } from "@mxenabled/mxui";
|
|
26
|
-
import { f as
|
|
26
|
+
import { f as _, a as C } from "./Dialog-BPTr3qHE.mjs";
|
|
27
27
|
import { b as W } from "./Localization-2MODESHW.mjs";
|
|
28
28
|
const m = {
|
|
29
29
|
creditScore: {
|
|
@@ -52,7 +52,7 @@ const m = {
|
|
|
52
52
|
OFF_TRACK: "Off Track",
|
|
53
53
|
MISSING: "Missing"
|
|
54
54
|
};
|
|
55
|
-
var
|
|
55
|
+
var O = /* @__PURE__ */ ((e) => (e.Connections = "connections", e.CreditScore = "credit_score", e.DateOfBirth = "date_of_birth", e.MonthlyIncome = "monthly_income", e))(O || {});
|
|
56
56
|
const q = ({ list: e, onClickItem: t }) => /* @__PURE__ */ i(K, { sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ i(
|
|
57
57
|
U,
|
|
58
58
|
{
|
|
@@ -179,11 +179,11 @@ const q = ({ list: e, onClickItem: t }) => /* @__PURE__ */ i(K, { sx: { bgcolor:
|
|
|
179
179
|
secondaryText: c
|
|
180
180
|
};
|
|
181
181
|
}, J = (e, t) => ({
|
|
182
|
-
[
|
|
183
|
-
[
|
|
182
|
+
[O.DateOfBirth]: (n) => R(new Date(Number(n) * 1e3), "MMM d, yyyy"),
|
|
183
|
+
[O.MonthlyIncome]: (n) => `$${n}`
|
|
184
184
|
})[e]?.(t) ?? String(t), $t = (e) => e !== null ? Math.round(e * 100) : null, Bt = (e) => {
|
|
185
185
|
const t = new Date((/* @__PURE__ */ new Date()).getFullYear(), e - 1, 1);
|
|
186
|
-
return
|
|
186
|
+
return _(t, C.MONTH_SHORT);
|
|
187
187
|
}, Kt = (e) => {
|
|
188
188
|
const { good: t, poor: r } = m.daysOfCashOnHand;
|
|
189
189
|
return e === null ? "MISSING" : e >= t ? "GOOD" : e >= r ? "FAIR" : "OFF_TRACK";
|
|
@@ -243,9 +243,9 @@ const q = ({ list: e, onClickItem: t }) => /* @__PURE__ */ i(K, { sx: { bgcolor:
|
|
|
243
243
|
return Math.max(a / (f || 1), 1);
|
|
244
244
|
}, qt = (e) => !e || e <= 0 ? "0%" : e >= 1e3 ? "100%" : `${Math.round(e / 10)}%`, Jt = (e) => E.find((r) => e < r.upperLimit)?.targetAmount ?? tt, Qt = (e) => E.find((n) => e < n.upperLimit)?.contributionPeriodIndex ?? Z, Zt = (e, t) => e.map((n) => {
|
|
245
245
|
const o = new Date(0, n.month - 1, 1);
|
|
246
|
-
return { x:
|
|
247
|
-
}).reverse(), nt = (e) => e
|
|
248
|
-
x:
|
|
246
|
+
return { x: _(o, C.MONTH_SHORT), y: n[t] };
|
|
247
|
+
}).reverse(), nt = (e) => e.sort((t, r) => t.monthly_health_score_average.month - r.monthly_health_score_average.month).map((t) => ({
|
|
248
|
+
x: _(
|
|
249
249
|
new Date(0, t.monthly_health_score_average.month - 1, 1),
|
|
250
250
|
C.MONTH_SHORT
|
|
251
251
|
),
|
|
@@ -260,8 +260,8 @@ class y {
|
|
|
260
260
|
}
|
|
261
261
|
calculateHealthScore = async () => this.fetchInstance.post(`${h.HEALTH_SCORES}/calculate`).then((t) => t.health_score);
|
|
262
262
|
getAverageHealthScores = async () => this.fetchInstance.get(`${h.HEALTH_SCORES}/monthly_averages`).then((t) => t);
|
|
263
|
-
getDebtSpend = async () => this.fetchInstance.get(`${h.HEALTH_SCORES}/transactions/debt_spend`).then((t) => t
|
|
264
|
-
getIncome = async () => this.fetchInstance.get(`${h.HEALTH_SCORES}/transactions/income`).then((t) => t
|
|
263
|
+
getDebtSpend = async () => this.fetchInstance.get(`${h.HEALTH_SCORES}/transactions/debt_spend`).then((t) => t);
|
|
264
|
+
getIncome = async () => this.fetchInstance.get(`${h.HEALTH_SCORES}/transactions/income`).then((t) => t);
|
|
265
265
|
getMonthlySummaries = async () => this.fetchInstance.get(`${h.HEALTH_SCORES}/monthly_summaries`).then((t) => t);
|
|
266
266
|
getHealthScoreChangeReports = async (t, r) => this.fetchInstance.get(`${h.HEALTH_SCORES}/change_report/from/${t}/to/${r}`).then((n) => n);
|
|
267
267
|
getPeerScore = async (t) => this.fetchInstance.get(`${h.HEALTH_SCORES}/average/${t}`).then((r) => r.average_health_score);
|
|
@@ -400,7 +400,7 @@ class te {
|
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
402
|
export {
|
|
403
|
-
|
|
403
|
+
O as A,
|
|
404
404
|
u as C,
|
|
405
405
|
te as F,
|
|
406
406
|
vt as P,
|
package/dist/common/index.es.js
CHANGED
|
@@ -64,7 +64,7 @@ import { startOfToday as U } from "date-fns/startOfToday";
|
|
|
64
64
|
import { f as bt, a as wt, b as L } from "../BudgetUtil-wjoNuj7B.mjs";
|
|
65
65
|
import { g as ta, e as ea, c as sa, d as ra, i as oa } from "../BudgetUtil-wjoNuj7B.mjs";
|
|
66
66
|
import { a as xt } from "../DebtsStore-DB5U2WMC.mjs";
|
|
67
|
-
import { F as Ct } from "../FinstrongStore-
|
|
67
|
+
import { F as Ct } from "../FinstrongStore-rVhw737g.mjs";
|
|
68
68
|
import { A as vt, m as Dt, a as At, b as Et } from "../InvestmentUtil-jOyOgzIB.mjs";
|
|
69
69
|
import { M as Tt } from "../MerchantStore-DrFvsUyy.mjs";
|
|
70
70
|
import { N as Bt } from "../NetWorthStore-CUz0bwVm.mjs";
|
|
@@ -5,8 +5,8 @@ import { useTheme as G, alpha as ue } from "@mui/material/styles";
|
|
|
5
5
|
import { PieChart as Vt, BarPlot as Yt } from "@mui/x-charts";
|
|
6
6
|
import { TrendingUp as dt, ArrowRightAlt as Xt, TrendingDown as Ut, AccountBalance as pt, ChevronRight as Z, MultilineChart as ut, CreditCard as ze, CheckCircle as qt, Cancel as Zt, Savings as Qt, ContentCopy as Jt, Add as _t, Cardiology as en, Payments as tn, CalendarMonth as nn, ExpandMore as on } from "@mxenabled/mx-icons";
|
|
7
7
|
import { P as M, H3 as j, Text as A, InstitutionLogo as ht, H2 as Ie, MerchantLogo as rn, Icon as an } from "@mxenabled/mxui";
|
|
8
|
-
import { g as sn, a as cn, r as Qe, b as ln, c as Ge, d as mt, C as be, e as fe, f as dn, h as pn, i as un, j as gt, k as Je, l as _n, m as et, n as hn, o as yt, p as mn, q as bt, s as ke, t as gn, u as yn, v as bn, w as fn, A as ee, x as xn, P as Sn } from "../FinstrongStore-
|
|
9
|
-
import { y as yi, F as bi } from "../FinstrongStore-
|
|
8
|
+
import { g as sn, a as cn, r as Qe, b as ln, c as Ge, d as mt, C as be, e as fe, f as dn, h as pn, i as un, j as gt, k as Je, l as _n, m as et, n as hn, o as yt, p as mn, q as bt, s as ke, t as gn, u as yn, v as bn, w as fn, A as ee, x as xn, P as Sn } from "../FinstrongStore-rVhw737g.mjs";
|
|
9
|
+
import { y as yi, F as bi } from "../FinstrongStore-rVhw737g.mjs";
|
|
10
10
|
import * as tt from "d3";
|
|
11
11
|
import { observer as x } from "mobx-react-lite";
|
|
12
12
|
import { u as w, b as Y, p as Q, z as R, q as Cn, a as ft, d as Se, m as He, g as vn, f as wn, j as kn, h as Mn, i as xt } from "../hooks-C41HAxM5.mjs";
|
|
@@ -102,9 +102,7 @@ export declare const getSeriesGraphData: (monthlySummaries: MonthlySummaries[],
|
|
|
102
102
|
x: string;
|
|
103
103
|
y: number;
|
|
104
104
|
}[];
|
|
105
|
-
export declare const augmentChartData: (averageHealthScores: {
|
|
106
|
-
health_scores: MonthlyHealthScoreItem[];
|
|
107
|
-
}) => {
|
|
105
|
+
export declare const augmentChartData: (averageHealthScores: MonthlyHealthScoreItem[]) => {
|
|
108
106
|
x: string;
|
|
109
107
|
y: number;
|
|
110
108
|
}[];
|
package/package.json
CHANGED