@mx-cartographer/experiences 8.0.0-alpha.bb4 → 8.0.0-alpha.sms1
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/{Account-B4CDD-zq.mjs → Account-BDXA6PWh.mjs} +1 -1
- package/dist/AccountDetailsContent-CUztd3-b.mjs +683 -0
- package/dist/{AccountDetailsHeader-DRjFuyJT.mjs → AccountDetailsHeader-i3KFhNuo.mjs} +18 -18
- package/dist/{AccountFields-Cl4KHoSj.mjs → AccountFields-QZspYAji.mjs} +10 -12
- package/dist/AccountListItem-DX5upmCS.mjs +90 -0
- package/dist/{AccountStore-HbVblv86.mjs → AccountStore-BcnDpyLL.mjs} +3 -3
- package/dist/{Accounts-CRUehOiy.mjs → Accounts-DXfZotRC.mjs} +1 -1
- package/dist/{BudgetUtil-Jv8h9H9l.mjs → BudgetUtil-Df2nII9u.mjs} +31 -31
- package/dist/{CashflowStore-CA190BPF.mjs → CashflowStore-D9Dpuz7X.mjs} +25 -18
- package/dist/{Category-Ccoew_sA.mjs → Category-CevNQ03n.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-Dl006GKy.mjs → CategorySelectorDrawer-DqJK_rrL.mjs} +27 -27
- package/dist/{CategoryStore-MUwRWH9e.mjs → CategoryStore-DTgyAMM7.mjs} +2 -2
- package/dist/{CategoryUtil-DfVKKkRf.mjs → CategoryUtil-C5cR-nfQ.mjs} +4 -4
- package/dist/{ConnectDrawer-DVp54lUH.mjs → ConnectDrawer-BIbTqYOH.mjs} +47 -48
- package/dist/{ConnectionsDrawer-Dsc04-4Z.mjs → ConnectionsDrawer-BFfY3_zB.mjs} +2 -2
- package/dist/CurrencyInput-BFKcs-_K.mjs +85 -0
- package/dist/{DateUtil-CDPZw_-m.mjs → DateUtil-CBdcsyuk.mjs} +1 -1
- package/dist/{DebtsStore-pL63fmdT.mjs → DebtsStore-BbJB0nmu.mjs} +3 -3
- package/dist/{Dialog-CDV0kKxj.mjs → Dialog-BPTr3qHE.mjs} +24 -24
- package/dist/{Drawer-BF40nbsH.mjs → Drawer-BEtCk82g.mjs} +17 -17
- package/dist/{ExportCsvAction-QhQK4_FU.mjs → ExportCsvAction-DzTrtPzk.mjs} +3 -3
- package/dist/{FinstrongStore-BGf36b0z.mjs → FinstrongStore-BIrX0Xg2.mjs} +56 -56
- package/dist/{GoalStore-C1-w3Y1E.mjs → GoalStore-DpWY3gVb.mjs} +4 -4
- package/dist/HeaderCell-DjuifqHJ.mjs +6 -0
- package/dist/{Help-DBfsTkAi.mjs → Help-BnPXM_N2.mjs} +145 -124
- package/dist/{Help-c-zHlDbv.mjs → Help-DhcC-C05.mjs} +8 -8
- package/dist/{IconBacking-DgT8DCeh.mjs → IconBacking-B9oC6uL2.mjs} +11 -11
- package/dist/{LineChart-C1PxNf7P.mjs → LineChart-bc1D9xBE.mjs} +78 -78
- package/dist/{ListItemAction-BNCWQAN_.mjs → ListItemAction-uobBrm_a.mjs} +1 -1
- package/dist/Loader-DUaFpDGv.mjs +24 -0
- package/dist/{ManageIncome-8EsStyIQ.mjs → ManageIncome-NpXHhO1n.mjs} +46 -46
- package/dist/MicroWidgetContainer-DEiRnYVa.mjs +45 -0
- package/dist/MiniWidgetContainer-CmXpTylX.mjs +56 -0
- package/dist/{NetWorthStore-Bti6u-d9.mjs → NetWorthStore-lsuhEpn6.mjs} +4 -4
- package/dist/{NotificationSettings-B74rQVYC.mjs → NotificationSettings-CNmJWVeI.mjs} +77 -77
- package/dist/{OriginalBalanceAction-2Y_3U_mg.mjs → OriginalBalanceAction-DK8_LkPz.mjs} +8 -8
- package/dist/{RecurringSettings-DAncu--R.mjs → RecurringSettings-CqZh1SQa.mjs} +3 -3
- package/dist/{RecurringTransactions-CxcSL1dY.mjs → RecurringTransactions-BKcYmpv3.mjs} +77 -77
- package/dist/{RecurringTransactionsStore-CNFxyGB6.mjs → RecurringTransactionsStore-Ni5tSQIO.mjs} +1 -1
- package/dist/{ResponsiveButton-Cn6-R7ue.mjs → ResponsiveButton-DZFp78fJ.mjs} +10 -10
- package/dist/SearchBox-B2_zLv8-.mjs +42 -0
- package/dist/{SettingsStore-BASMQSIp.mjs → SettingsStore-krIRNwHK.mjs} +1 -1
- package/dist/{SingleSegmentDonut-7Uy6VEld.mjs → SingleSegmentDonut-BgbLgwHi.mjs} +6 -6
- package/dist/{SpendingData-DPQ96k3x.mjs → SpendingData-BuJ03S9d.mjs} +4 -4
- package/dist/{SpendingLegend-6FqtMcBV.mjs → SpendingLegend-CjX-hX2O.mjs} +12 -12
- package/dist/{StatusBar-CPfSXe80.mjs → StatusBar-BK_uYHAB.mjs} +6 -6
- package/dist/{TabContentContainer-CnMXkVqr.mjs → TabContentContainer-j01JYR_7.mjs} +8 -8
- package/dist/TransactionDetails-5M2vfr59.mjs +1379 -0
- package/dist/{TransactionStore-DbwAutwC.mjs → TransactionStore-D-Q3BU9Z.mjs} +58 -41
- package/dist/{TrendsStore-_mRaFUdf.mjs → TrendsStore-BW9FGQeE.mjs} +37 -37
- package/dist/{User-BklmOUSd.mjs → User-wXzDI4M8.mjs} +107 -107
- package/dist/{ViewMoreMicroCard-DAkyNRlD.mjs → ViewMoreMicroCard-C0832BMe.mjs} +233 -231
- package/dist/{WidgetContainer-CDh9fjpR.mjs → WidgetContainer-BhQ1Kx2z.mjs} +36 -36
- package/dist/accounts/index.es.js +94 -94
- package/dist/analytics/index.es.js +27 -27
- package/dist/budgets/index.es.js +251 -250
- package/dist/cashflow/index.es.js +158 -157
- package/dist/categories/index.es.js +2 -2
- package/dist/common/components/Loader.d.ts +2 -1
- package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +1 -1
- package/dist/common/components/barchart/Bar.d.ts +25 -0
- package/dist/common/components/barchart/BarChart.d.ts +34 -0
- package/dist/common/components/barchart/BarColumn.d.ts +37 -0
- package/dist/common/components/barchart/Legend.d.ts +8 -0
- package/dist/common/components/barchart/Util.d.ts +42 -0
- package/dist/common/components/barchart/index.d.ts +1 -0
- package/dist/common/components/charts/linechart/CustomMark.d.ts +1 -1
- package/dist/common/components/index.d.ts +1 -0
- package/dist/common/index.es.js +660 -395
- package/dist/common/utils/Theme.d.ts +3 -1
- package/dist/dashboard/index.es.js +21 -21
- package/dist/debts/components/DebtsChart.d.ts +2 -1
- package/dist/debts/index.es.js +440 -440
- package/dist/{exportTransactionsToCSV-BgV_wTLT.mjs → exportTransactionsToCSV-Cz2t0lmA.mjs} +3 -3
- package/dist/finstrong/index.es.js +118 -118
- package/dist/goals/index.es.js +380 -386
- package/dist/help/components/content/BottomImageContent.d.ts +1 -1
- package/dist/help/components/content/LeftImageContent.d.ts +1 -1
- package/dist/help/components/content/RightImageContent.d.ts +1 -1
- package/dist/help/components/content/TopImageContent.d.ts +1 -1
- package/dist/help/index.es.js +6 -6
- package/dist/investments/index.es.js +279 -278
- package/dist/merchants/index.es.js +7 -7
- package/dist/microinsights/index.es.js +1 -1
- package/dist/networth/components/NetWorthChange.d.ts +1 -3
- package/dist/networth/index.es.js +185 -191
- package/dist/notifications/index.es.js +30 -30
- package/dist/recurringtransactions/index.es.js +85 -85
- package/dist/settings/index.es.js +270 -270
- package/dist/spending/index.es.js +44 -44
- package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +7 -0
- package/dist/transactions/index.es.js +169 -168
- package/dist/trends/index.es.js +318 -317
- package/dist/{useAccountDisplayName-CcIp09Xc.mjs → useAccountDisplayName-CFNF8766.mjs} +1 -1
- package/dist/{useCombineEvents-kNzLTWCp.mjs → useCombineEvents-CRwX-qWE.mjs} +2 -2
- package/dist/{useScreenSize-B5afALev.mjs → useScreenSize-B6JyS_Lj.mjs} +1 -1
- package/package.json +50 -45
- package/dist/AccountDetailsContent-adZTkM52.mjs +0 -683
- package/dist/AccountListItem-wgmlex-_.mjs +0 -90
- package/dist/CurrencyInput-D1cjbdCI.mjs +0 -85
- package/dist/HeaderCell-P8w6CmfO.mjs +0 -6
- package/dist/Loader-Ckqi9Rx6.mjs +0 -21
- package/dist/MicroWidgetContainer-BGpNl5ZS.mjs +0 -45
- package/dist/MiniWidgetContainer-CKzf_Ira.mjs +0 -56
- package/dist/SearchBox-B7km148n.mjs +0 -39
- package/dist/TransactionDetails-Bn0qY5Hw.mjs +0 -1336
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { intlFormat as
|
|
2
|
-
import { g
|
|
3
|
-
import { jsx as a, jsxs as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { intlFormat as h } from "date-fns/intlFormat";
|
|
2
|
+
import { g } from "./Localization-2MODESHW.mjs";
|
|
3
|
+
import { jsx as a, jsxs as y } from "react/jsx-runtime";
|
|
4
|
+
import M from "@mui/material/Dialog";
|
|
5
|
+
import T from "@mui/material/DialogContent";
|
|
6
6
|
import { DialogHeader as u, DialogFooter as H } from "@mxenabled/mxui";
|
|
7
|
-
const
|
|
7
|
+
const L = "do", S = "MMM do, yyyy", x = {
|
|
8
8
|
TIME_STAMP_HOUR_MINUTE: {
|
|
9
9
|
hour: "numeric",
|
|
10
10
|
minute: "numeric"
|
|
@@ -60,14 +60,14 @@ const F = "do", L = "MMM do, yyyy", S = {
|
|
|
60
60
|
day: "numeric",
|
|
61
61
|
year: "numeric"
|
|
62
62
|
}
|
|
63
|
-
},
|
|
63
|
+
}, b = (i, o) => h(new Date(i), Object.assign(o), { locale: g() }), N = ({
|
|
64
64
|
className: i,
|
|
65
65
|
copy: o = {
|
|
66
66
|
title: "",
|
|
67
67
|
close_aria: "Close"
|
|
68
68
|
},
|
|
69
|
-
disablePrimaryButton:
|
|
70
|
-
isOpen:
|
|
69
|
+
disablePrimaryButton: n = !1,
|
|
70
|
+
isOpen: e = !1,
|
|
71
71
|
onClose: r,
|
|
72
72
|
onPrimaryAction: m,
|
|
73
73
|
primaryColor: c = "primary",
|
|
@@ -78,16 +78,16 @@ const F = "do", L = "MMM do, yyyy", S = {
|
|
|
78
78
|
children: A,
|
|
79
79
|
...d
|
|
80
80
|
}) => {
|
|
81
|
-
const
|
|
81
|
+
const D = () => {
|
|
82
82
|
m?.(), r();
|
|
83
|
-
},
|
|
83
|
+
}, O = () => {
|
|
84
84
|
t && t(), r();
|
|
85
85
|
};
|
|
86
|
-
return /* @__PURE__ */ a("div", { className: `mx-cmn-dialog ${i}`, children: /* @__PURE__ */
|
|
87
|
-
|
|
86
|
+
return /* @__PURE__ */ a("div", { className: `mx-cmn-dialog ${i}`, children: /* @__PURE__ */ y(
|
|
87
|
+
M,
|
|
88
88
|
{
|
|
89
89
|
onClose: r,
|
|
90
|
-
open:
|
|
90
|
+
open: e,
|
|
91
91
|
sx: {
|
|
92
92
|
"& .MuiDialog-paperScrollPaper": {
|
|
93
93
|
backgroundColor: "background.default"
|
|
@@ -97,13 +97,13 @@ const F = "do", L = "MMM do, yyyy", S = {
|
|
|
97
97
|
...d,
|
|
98
98
|
children: [
|
|
99
99
|
/* @__PURE__ */ a(u, { copy: { title: o.title, close_aria: o.close_aria }, onClose: r }),
|
|
100
|
-
/* @__PURE__ */ a(
|
|
100
|
+
/* @__PURE__ */ a(T, { sx: { lineHeight: 1.5 }, children: A }),
|
|
101
101
|
/* @__PURE__ */ a(
|
|
102
102
|
H,
|
|
103
103
|
{
|
|
104
|
-
isPrimaryDisabled:
|
|
105
|
-
onPrimaryAction:
|
|
106
|
-
onSecondaryAction:
|
|
104
|
+
isPrimaryDisabled: n,
|
|
105
|
+
onPrimaryAction: D,
|
|
106
|
+
onSecondaryAction: O,
|
|
107
107
|
primaryColor: c,
|
|
108
108
|
primaryText: _,
|
|
109
109
|
secondaryColor: l,
|
|
@@ -113,11 +113,11 @@ const F = "do", L = "MMM do, yyyy", S = {
|
|
|
113
113
|
]
|
|
114
114
|
}
|
|
115
115
|
) });
|
|
116
|
-
};
|
|
116
|
+
}, I = N;
|
|
117
117
|
export {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
118
|
+
I as D,
|
|
119
|
+
L as O,
|
|
120
|
+
x as a,
|
|
121
|
+
S as b,
|
|
122
|
+
b as f
|
|
123
123
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as h, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import u from "@mui/material/Box";
|
|
3
3
|
import s from "@mui/material/Stack";
|
|
4
|
-
import { H2 as
|
|
4
|
+
import { H2 as y, Drawer as B } from "@mxenabled/mxui";
|
|
5
5
|
import x from "@mui/material/Button";
|
|
6
|
-
import
|
|
6
|
+
import v from "@mui/material/IconButton";
|
|
7
7
|
import { ArrowBack as j } from "@mxenabled/mx-icons";
|
|
8
8
|
const F = ({
|
|
9
9
|
footerStyles: e = {},
|
|
@@ -68,7 +68,7 @@ const F = ({
|
|
|
68
68
|
...t && {
|
|
69
69
|
borderBottom: 1,
|
|
70
70
|
borderTop: 1,
|
|
71
|
-
borderColor: "
|
|
71
|
+
borderColor: "border.light"
|
|
72
72
|
},
|
|
73
73
|
...o && {
|
|
74
74
|
boxShadow: "0px 2px 8px 0px #6A73811F"
|
|
@@ -76,7 +76,7 @@ const F = ({
|
|
|
76
76
|
padding: "8px 8px 8px 8px"
|
|
77
77
|
},
|
|
78
78
|
children: [
|
|
79
|
-
/* @__PURE__ */ r(
|
|
79
|
+
/* @__PURE__ */ r(v, { "aria-label": e, color: "primary", onClick: a, children: /* @__PURE__ */ r(j, { color: "primary", sx: { fontSize: 22 } }) }),
|
|
80
80
|
/* @__PURE__ */ r(
|
|
81
81
|
u,
|
|
82
82
|
{
|
|
@@ -85,13 +85,13 @@ const F = ({
|
|
|
85
85
|
margin: "auto",
|
|
86
86
|
textAlign: "center"
|
|
87
87
|
},
|
|
88
|
-
children: /* @__PURE__ */ r(
|
|
88
|
+
children: /* @__PURE__ */ r(y, { bold: !0, variant: "Body", children: n })
|
|
89
89
|
}
|
|
90
90
|
),
|
|
91
91
|
/* @__PURE__ */ r(u, { width: "44px" })
|
|
92
92
|
]
|
|
93
93
|
}
|
|
94
|
-
),
|
|
94
|
+
), I = ({
|
|
95
95
|
ariaLabelClose: e = "Close",
|
|
96
96
|
children: a,
|
|
97
97
|
footerStyles: t = {},
|
|
@@ -105,14 +105,14 @@ const F = ({
|
|
|
105
105
|
primaryButtonProps: b,
|
|
106
106
|
primaryColor: m = "primary",
|
|
107
107
|
primaryText: g,
|
|
108
|
-
secondaryColor:
|
|
109
|
-
secondaryText:
|
|
108
|
+
secondaryColor: w = "secondary",
|
|
109
|
+
secondaryText: f,
|
|
110
110
|
shouldShowHeaderBorders: k = !0,
|
|
111
111
|
shouldShowHeaderShadow: C = !1,
|
|
112
|
-
title:
|
|
113
|
-
...
|
|
112
|
+
title: D,
|
|
113
|
+
...S
|
|
114
114
|
}) => /* @__PURE__ */ r(
|
|
115
|
-
|
|
115
|
+
B,
|
|
116
116
|
{
|
|
117
117
|
id: n,
|
|
118
118
|
isOpen: l,
|
|
@@ -127,7 +127,7 @@ const F = ({
|
|
|
127
127
|
backgroundColor: "background.paper"
|
|
128
128
|
}
|
|
129
129
|
},
|
|
130
|
-
...
|
|
130
|
+
...S,
|
|
131
131
|
children: /* @__PURE__ */ h(s, { height: "100%", justifyContent: "space-between", children: [
|
|
132
132
|
/* @__PURE__ */ r(
|
|
133
133
|
H,
|
|
@@ -136,7 +136,7 @@ const F = ({
|
|
|
136
136
|
onClose: i,
|
|
137
137
|
shouldShowBorders: k,
|
|
138
138
|
shouldShowShadow: C,
|
|
139
|
-
title:
|
|
139
|
+
title: D
|
|
140
140
|
}
|
|
141
141
|
),
|
|
142
142
|
/* @__PURE__ */ r(u, { height: "100%", overflow: "auto", children: a }),
|
|
@@ -151,13 +151,13 @@ const F = ({
|
|
|
151
151
|
primaryButtonProps: b,
|
|
152
152
|
primaryColor: m,
|
|
153
153
|
primaryText: g,
|
|
154
|
-
secondaryColor:
|
|
155
|
-
secondaryText:
|
|
154
|
+
secondaryColor: w,
|
|
155
|
+
secondaryText: f
|
|
156
156
|
}
|
|
157
157
|
)
|
|
158
158
|
] })
|
|
159
159
|
}
|
|
160
|
-
);
|
|
160
|
+
), q = I;
|
|
161
161
|
export {
|
|
162
|
-
|
|
162
|
+
q as D
|
|
163
163
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { observer as c } from "mobx-react-lite";
|
|
3
3
|
import { Icon as i } from "@mxenabled/mxui";
|
|
4
|
-
import { e as p } from "./exportTransactionsToCSV-
|
|
5
|
-
import { O as m } from "./User-
|
|
6
|
-
import { R as x } from "./ResponsiveButton-
|
|
4
|
+
import { e as p } from "./exportTransactionsToCSV-Cz2t0lmA.mjs";
|
|
5
|
+
import { O as m } from "./User-wXzDI4M8.mjs";
|
|
6
|
+
import { R as x } from "./ResponsiveButton-DZFp78fJ.mjs";
|
|
7
7
|
import { g as _, h as C, u as l } from "./hooks-C41HAxM5.mjs";
|
|
8
8
|
const v = ({ filter: t }) => {
|
|
9
9
|
const { onEvent: r } = _(), { tags: e, sortedTransactions: s } = C(), { transactions: n } = l(), a = () => {
|
|
@@ -23,7 +23,7 @@ import X from "@mui/material/ListItemAvatar";
|
|
|
23
23
|
import V from "@mui/material/ListItemButton";
|
|
24
24
|
import W from "@mui/material/ListItemText";
|
|
25
25
|
import { Text as y } from "@mxenabled/mxui";
|
|
26
|
-
import { f as O, a as T } from "./Dialog-
|
|
26
|
+
import { f as O, a as T } from "./Dialog-BPTr3qHE.mjs";
|
|
27
27
|
import { b as j } from "./Localization-2MODESHW.mjs";
|
|
28
28
|
import { f as q } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
29
29
|
const m = {
|
|
@@ -54,7 +54,7 @@ const m = {
|
|
|
54
54
|
MISSING: "MISSING DATA"
|
|
55
55
|
};
|
|
56
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
|
|
57
|
+
const J = ({ list: e, onClickItem: t }) => /* @__PURE__ */ c(K, { sx: { bgcolor: "background.paper" }, children: /* @__PURE__ */ c(
|
|
58
58
|
Y,
|
|
59
59
|
{
|
|
60
60
|
sx: {
|
|
@@ -92,7 +92,7 @@ const Mt = ({ list: e, onClickItem: t }) => /* @__PURE__ */ c(K, { sx: { bgcolor
|
|
|
92
92
|
r < e.length - 1 && /* @__PURE__ */ c(B, { sx: { color: "divider", ml: 68 } })
|
|
93
93
|
] }, n.key))
|
|
94
94
|
}
|
|
95
|
-
) }), Gt = (e) => e * (180 / Math.PI),
|
|
95
|
+
) }), Gt = J, Lt = (e) => e * (180 / Math.PI), wt = (e, t) => [
|
|
96
96
|
{
|
|
97
97
|
description: t.vulnerable_description,
|
|
98
98
|
max: 25,
|
|
@@ -129,7 +129,7 @@ const Mt = ({ list: e, onClickItem: t }) => /* @__PURE__ */ c(K, { sx: { bgcolor
|
|
|
129
129
|
GOOD: "#FFC02C",
|
|
130
130
|
VERY_GOOD: "#29C76B",
|
|
131
131
|
EXCEPTIONAL: "#008A5A"
|
|
132
|
-
},
|
|
132
|
+
}, Nt = (e, t, n) => e >= 300 && e < 580 ? {
|
|
133
133
|
status: n.poor,
|
|
134
134
|
color: t ? u.POOR : g.POOR
|
|
135
135
|
} : e >= 580 && e < 670 ? {
|
|
@@ -144,7 +144,7 @@ const Mt = ({ list: e, onClickItem: t }) => /* @__PURE__ */ c(K, { sx: { bgcolor
|
|
|
144
144
|
} : e >= 800 && e <= 850 ? {
|
|
145
145
|
status: n.exceptional,
|
|
146
146
|
color: t ? u.EXCEPTIONAL : g.EXCEPTIONAL
|
|
147
|
-
} : { status: n.missing_data },
|
|
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) => {
|
|
@@ -156,14 +156,14 @@ const Mt = ({ list: e, onClickItem: t }) => /* @__PURE__ */ c(K, { sx: { bgcolor
|
|
|
156
156
|
};
|
|
157
157
|
});
|
|
158
158
|
return [s[r].startAngle, s[r].endAngle];
|
|
159
|
-
},
|
|
159
|
+
}, kt = (e, t, n, r, o) => {
|
|
160
160
|
let a = 0, s = 0;
|
|
161
161
|
const i = Math.floor(r), l = r - i;
|
|
162
162
|
return i > n ? (a = e, s = t) : i === n && l > 0 && (a = e, s = o), [a, s];
|
|
163
|
-
},
|
|
163
|
+
}, $t = (e, t, n = 0) => {
|
|
164
164
|
const r = e * Math.sin(t - n), o = -e * Math.cos(t - n);
|
|
165
165
|
return [r, o];
|
|
166
|
-
},
|
|
166
|
+
}, zt = ({
|
|
167
167
|
dynamicCopy: e,
|
|
168
168
|
fallbackLabel: t,
|
|
169
169
|
icon: n,
|
|
@@ -171,7 +171,7 @@ const Mt = ({ list: e, onClickItem: t }) => /* @__PURE__ */ c(K, { sx: { bgcolor
|
|
|
171
171
|
label: o,
|
|
172
172
|
value: a
|
|
173
173
|
}) => {
|
|
174
|
-
const s = !!a, i = s ?
|
|
174
|
+
const s = !!a, i = s ? Q(r, a) : e && j(e, t) || t;
|
|
175
175
|
return {
|
|
176
176
|
icon: s ? /* @__PURE__ */ c(k, {}) : n,
|
|
177
177
|
isComplete: s,
|
|
@@ -179,29 +179,29 @@ const Mt = ({ list: e, onClickItem: t }) => /* @__PURE__ */ c(K, { sx: { bgcolor
|
|
|
179
179
|
primaryText: o,
|
|
180
180
|
secondaryText: i
|
|
181
181
|
};
|
|
182
|
-
},
|
|
182
|
+
}, Q = (e, t) => ({
|
|
183
183
|
[I.DateOfBirth]: (r) => R(new Date(Number(r) * 1e3), "MMM d, yyyy"),
|
|
184
184
|
[I.MonthlyIncome]: (r) => q(Number(r), "0.00")
|
|
185
|
-
})[e]?.(t) ?? String(t),
|
|
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
187
|
return O(t, T.MONTH_SHORT);
|
|
188
|
-
},
|
|
188
|
+
}, Yt = (e) => {
|
|
189
189
|
const { good: t, poor: n } = m.daysOfCashOnHand;
|
|
190
190
|
return e === null ? "MISSING" : e >= t ? "GOOD" : e >= n ? "FAIR" : "OFF_TRACK";
|
|
191
|
-
},
|
|
191
|
+
}, Ut = (e) => {
|
|
192
192
|
const { good: t, poor: n } = m.emergencySavings;
|
|
193
193
|
return e === null ? "MISSING" : e >= t ? "GOOD" : e >= n ? "FAIR" : "OFF_TRACK";
|
|
194
|
-
},
|
|
194
|
+
}, Xt = (e) => {
|
|
195
195
|
const { good: t, poor: n } = m.spendToIncomeRatio;
|
|
196
196
|
return e === null ? "MISSING" : e < t ? "GOOD" : e < n ? "FAIR" : "OFF_TRACK";
|
|
197
|
-
},
|
|
197
|
+
}, Vt = (e) => {
|
|
198
198
|
const { good: t, poor: n } = m.debtToIncomeRatio;
|
|
199
199
|
return e === null ? "MISSING" : e <= t ? "GOOD" : e <= n ? "FAIR" : "OFF_TRACK";
|
|
200
|
-
},
|
|
200
|
+
}, Wt = (e) => {
|
|
201
201
|
const { good: t, poor: n } = m.creditScore;
|
|
202
202
|
return e === null ? "MISSING" : e >= t ? "GOOD" : e >= n ? "FAIR" : "OFF_TRACK";
|
|
203
|
-
},
|
|
204
|
-
const n =
|
|
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
|
|
@@ -211,16 +211,16 @@ const Mt = ({ list: e, onClickItem: t }) => /* @__PURE__ */ c(K, { sx: { bgcolor
|
|
|
211
211
|
description: r[n],
|
|
212
212
|
title: t.count_card_title
|
|
213
213
|
};
|
|
214
|
-
},
|
|
215
|
-
[S.GOOD]: { backgroundColor: "success.
|
|
216
|
-
[S.FAIR]: { backgroundColor: "warning.
|
|
217
|
-
[S.OFF_TRACK]: { backgroundColor: "error.
|
|
214
|
+
}, qt = (e) => ({
|
|
215
|
+
[S.GOOD]: { backgroundColor: "success.lighter", color: "success.dark" },
|
|
216
|
+
[S.FAIR]: { backgroundColor: "warning.lighter", color: "warning.dark" },
|
|
217
|
+
[S.OFF_TRACK]: { backgroundColor: "error.lighter", color: "error.dark" },
|
|
218
218
|
[S.MISSING]: { backgroundColor: "divider", color: "text.secondary" }
|
|
219
|
-
})[e],
|
|
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,
|
|
@@ -229,7 +229,7 @@ const Mt = ({ list: e, onClickItem: t }) => /* @__PURE__ */ c(K, { sx: { bgcolor
|
|
|
229
229
|
{ contributionPeriodIndex: 3, targetAmount: 6, upperLimit: 500 },
|
|
230
230
|
{ contributionPeriodIndex: 3, targetAmount: 3, upperLimit: 900 },
|
|
231
231
|
{ contributionPeriodIndex: 2, targetAmount: 1, upperLimit: 1e3 }
|
|
232
|
-
],
|
|
232
|
+
], Jt = ({
|
|
233
233
|
contribution: e,
|
|
234
234
|
goalAmount: t,
|
|
235
235
|
goalPeriod: n,
|
|
@@ -238,20 +238,20 @@ const Mt = ({ list: e, onClickItem: t }) => /* @__PURE__ */ c(K, { sx: { bgcolor
|
|
|
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
243
|
const p = i(s, n), f = l(p, s);
|
|
244
244
|
return Math.max(a / (f || 1), 1);
|
|
245
|
-
},
|
|
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
246
|
x: O(new Date(0, r.month - 1, 1), T.MONTH_SHORT),
|
|
247
247
|
y: r[t]
|
|
248
|
-
})),
|
|
248
|
+
})), ot = (e) => e.sort((t, n) => t.monthly_health_score_average.month - n.monthly_health_score_average.month).map((t) => ({
|
|
249
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
|
-
})),
|
|
254
|
+
})), at = (e) => e.map(({ transaction: n }) => ({
|
|
255
255
|
...n
|
|
256
256
|
})).sort((n, r) => r.date - n.date);
|
|
257
257
|
class F {
|
|
@@ -269,7 +269,7 @@ class F {
|
|
|
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 = [];
|
|
@@ -377,7 +377,7 @@ class ee {
|
|
|
377
377
|
try {
|
|
378
378
|
const t = await this.api.getAverageHealthScores();
|
|
379
379
|
d(() => {
|
|
380
|
-
this.augmentedChartData =
|
|
380
|
+
this.augmentedChartData = ot(t);
|
|
381
381
|
});
|
|
382
382
|
} catch (t) {
|
|
383
383
|
console.error(`Error occurred while getting augmented chart data: ${t}`);
|
|
@@ -385,7 +385,7 @@ class ee {
|
|
|
385
385
|
};
|
|
386
386
|
getSpendingFeeTransactions = async () => {
|
|
387
387
|
try {
|
|
388
|
-
const t = await this.api.getSpendingFeeTransactions(), n =
|
|
388
|
+
const t = await this.api.getSpendingFeeTransactions(), n = at(t);
|
|
389
389
|
d(() => {
|
|
390
390
|
this.spendingFeeTransactions = n;
|
|
391
391
|
});
|
|
@@ -421,31 +421,31 @@ class ee {
|
|
|
421
421
|
export {
|
|
422
422
|
I as A,
|
|
423
423
|
u as C,
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
424
|
+
ne as F,
|
|
425
|
+
Gt as P,
|
|
426
|
+
kt as a,
|
|
427
|
+
$t as b,
|
|
428
|
+
wt as c,
|
|
429
|
+
Nt as d,
|
|
430
430
|
g as e,
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
431
|
+
ee as f,
|
|
432
|
+
Pt as g,
|
|
433
|
+
qt as h,
|
|
434
434
|
S as i,
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
435
|
+
Wt as j,
|
|
436
|
+
te as k,
|
|
437
|
+
Zt as l,
|
|
438
|
+
Jt as m,
|
|
439
|
+
Qt as n,
|
|
440
|
+
Ut as o,
|
|
441
|
+
Z as p,
|
|
442
|
+
Yt as q,
|
|
443
|
+
Lt as r,
|
|
444
|
+
Kt as s,
|
|
445
|
+
Vt as t,
|
|
446
|
+
Bt as u,
|
|
447
|
+
Xt as v,
|
|
448
|
+
jt as w,
|
|
449
|
+
zt as x,
|
|
450
450
|
F as y
|
|
451
451
|
};
|
|
@@ -7,7 +7,7 @@ import O from "@mui/material/CardHeader";
|
|
|
7
7
|
import w from "@mui/material/Stack";
|
|
8
8
|
import { AccountBalance as S, ChevronRight as L } from "@mxenabled/mx-icons";
|
|
9
9
|
import { Text as g } from "@mxenabled/mxui";
|
|
10
|
-
import { l as y } from "./ConnectDrawer-
|
|
10
|
+
import { l as y } from "./ConnectDrawer-BIbTqYOH.mjs";
|
|
11
11
|
import { a as b } from "./hooks-C41HAxM5.mjs";
|
|
12
12
|
import { makeAutoObservable as D, runInAction as E } from "mobx";
|
|
13
13
|
import { F as v, A as i } from "./Fetch-DecPFeGU.mjs";
|
|
@@ -16,7 +16,7 @@ import { addYears as F } from "date-fns/addYears";
|
|
|
16
16
|
import { getUnixTime as x } from "date-fns/getUnixTime";
|
|
17
17
|
import { b as d } from "./Localization-2MODESHW.mjs";
|
|
18
18
|
import { a as K } from "./NumberFormatting-DjTD0t3W.mjs";
|
|
19
|
-
import { f as B, a as P } from "./Dialog-
|
|
19
|
+
import { f as B, a as P } from "./Dialog-BPTr3qHE.mjs";
|
|
20
20
|
var a = /* @__PURE__ */ ((e) => (e[e.DEBT_TRACK = 1] = "DEBT_TRACK", e[e.SAVINGS_TRACK = 2] = "SAVINGS_TRACK", e[e.RETIREMENT_TRACK = 3] = "RETIREMENT_TRACK", e[e.EMERGENCY_FUND_TRACK = 4] = "EMERGENCY_FUND_TRACK", e))(a || {}), $ = /* @__PURE__ */ ((e) => (e[e.SAVE_AMOUNT = 1] = "SAVE_AMOUNT", e[e.KEEP_BALANCE_BELOW = 2] = "KEEP_BALANCE_BELOW", e[e.KEEP_BALANCE_ABOVE = 3] = "KEEP_BALANCE_ABOVE", e[e.ACTION = 4] = "ACTION", e))($ || {}), c = /* @__PURE__ */ ((e) => (e[e.AUTOMOBILE = 1] = "AUTOMOBILE", e[e.COLLEGE = 2] = "COLLEGE", e[e.HOUSE = 3] = "HOUSE", e[e.RECREATIONAL_VEHICLE = 4] = "RECREATIONAL_VEHICLE", e[e.VACATION = 5] = "VACATION", e[e.ELECTRONIC = 6] = "ELECTRONIC", e[e.OTHER = 7] = "OTHER", e[e.RETIREMENT = 8] = "RETIREMENT", e[e.EMERGENCY_FUND = 9] = "EMERGENCY_FUND", e[e.SETUP_BUDGETS = 10] = "SETUP_BUDGETS", e[e.START_MONEY_MANAGEMENT = 11] = "START_MONEY_MANAGEMENT", e[e.CREDIT_CARD = 12] = "CREDIT_CARD", e[e.LINE_OF_CREDIT = 13] = "LINE_OF_CREDIT", e[e.LOANS = 14] = "LOANS", e))(c || {});
|
|
21
21
|
const at = ({ description: e, label: t, title: o }) => {
|
|
22
22
|
const { config: r } = b(), [n, s] = u.useState(!1);
|
|
@@ -27,11 +27,11 @@ const at = ({ description: e, label: t, title: o }) => {
|
|
|
27
27
|
{
|
|
28
28
|
avatar: /* @__PURE__ */ l(S, {}),
|
|
29
29
|
sx: { ".MuiCardHeader-avatar": { mr: 8 } },
|
|
30
|
-
title: /* @__PURE__ */ l(g, { bold: !0, variant: "
|
|
30
|
+
title: /* @__PURE__ */ l(g, { bold: !0, variant: "Body", children: o })
|
|
31
31
|
}
|
|
32
32
|
),
|
|
33
33
|
/* @__PURE__ */ l(N, { sx: { ":last-child": { pb: 4 }, ml: 28, py: 0 }, children: /* @__PURE__ */ _(w, { alignItems: "flex-start", spacing: 2, children: [
|
|
34
|
-
/* @__PURE__ */ l(g, { color: "text.secondary", sx: { textWrap: "wrap" }, variant: "
|
|
34
|
+
/* @__PURE__ */ l(g, { color: "text.secondary", sx: { textWrap: "wrap" }, variant: "ParagraphSmall", children: e }),
|
|
35
35
|
r.show_connections_widget_in_master && /* @__PURE__ */ l(
|
|
36
36
|
T,
|
|
37
37
|
{
|