@mx-cartographer/experiences 8.0.0-alpha.bb4 → 8.0.0-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 +50 -0
- package/dist/{Account-B4CDD-zq.mjs → Account-CvR2-dSR.mjs} +1 -1
- package/dist/AccountDetailsContent-CitErkuS.mjs +686 -0
- package/dist/{AccountDetailsHeader-DRjFuyJT.mjs → AccountDetailsHeader-BkG3MNYo.mjs} +19 -19
- package/dist/{AccountFields-Cl4KHoSj.mjs → AccountFields-zCMqet85.mjs} +10 -12
- package/dist/AccountListItem-DHrz8Mml.mjs +90 -0
- package/dist/{AccountStore-HbVblv86.mjs → AccountStore-LgfBcYMe.mjs} +101 -75
- package/dist/Accounts-Bzy1_REQ.mjs +9 -0
- package/dist/{BudgetUtil-Jv8h9H9l.mjs → BudgetUtil-BmZXkL0C.mjs} +32 -32
- 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-B-I3kajA.mjs} +27 -27
- package/dist/CategoryStore-CA3tS1BO.mjs +186 -0
- package/dist/CategoryUtil-DUM8NuGO.mjs +78 -0
- package/dist/{ConnectDrawer-DVp54lUH.mjs → ConnectDrawer-BkvlItWx.mjs} +55 -56
- package/dist/{ConnectionsDrawer-Dsc04-4Z.mjs → ConnectionsDrawer-VmuVFHbL.mjs} +5 -5
- package/dist/CurrencyInput-itK0R3wV.mjs +85 -0
- package/dist/{DateUtil-CDPZw_-m.mjs → DateUtil-CBdcsyuk.mjs} +1 -1
- package/dist/{DebtsStore-pL63fmdT.mjs → DebtsStore-Bq-aPy-5.mjs} +3 -3
- package/dist/{Dialog-CDV0kKxj.mjs → Dialog-BPTr3qHE.mjs} +24 -24
- package/dist/Drawer-By9V-B5L.mjs +178 -0
- package/dist/{ExportCsvAction-QhQK4_FU.mjs → ExportCsvAction-Cglo8Mca.mjs} +4 -4
- package/dist/{FinstrongStore-BGf36b0z.mjs → FinstrongStore-BIrX0Xg2.mjs} +56 -56
- package/dist/{GoalStore-C1-w3Y1E.mjs → GoalStore-1P19goZ7.mjs} +111 -151
- package/dist/HeaderCell-DjuifqHJ.mjs +6 -0
- package/dist/{Help-c-zHlDbv.mjs → Help-DhcC-C05.mjs} +8 -8
- package/dist/{Help-DBfsTkAi.mjs → Help-Ea3BlXQp.mjs} +146 -125
- package/dist/{IconBacking-DgT8DCeh.mjs → IconBacking-B9oC6uL2.mjs} +11 -11
- package/dist/LineChart-KpPw1phO.mjs +580 -0
- package/dist/{ListItemAction-BNCWQAN_.mjs → ListItemAction-BxTkF6Tz.mjs} +2 -2
- package/dist/Loader-DUaFpDGv.mjs +24 -0
- package/dist/{ManageIncome-8EsStyIQ.mjs → ManageIncome-CaoQl609.mjs} +142 -142
- package/dist/MicroWidgetContainer-r6mtxRer.mjs +52 -0
- package/dist/MiniWidgetContainer-Bg02sF1Y.mjs +71 -0
- package/dist/{NetWorthStore-Bti6u-d9.mjs → NetWorthStore-rC0q7P7t.mjs} +4 -4
- package/dist/NotificationSettings-uzM8tCoH.mjs +674 -0
- package/dist/{NotificationStore-Ck2KdNmT.mjs → NotificationStore-CDX_kqHa.mjs} +14 -22
- package/dist/{OriginalBalanceAction-2Y_3U_mg.mjs → OriginalBalanceAction-C6jdS4ws.mjs} +9 -9
- package/dist/{RecurringSettings-DAncu--R.mjs → RecurringSettings-B4ybrS0B.mjs} +17 -17
- package/dist/{RecurringTransactions-CxcSL1dY.mjs → RecurringTransactions-BqijW_8S.mjs} +79 -79
- package/dist/{RecurringTransactionsStore-CNFxyGB6.mjs → RecurringTransactionsStore-BhBUVm9a.mjs} +81 -91
- 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-DQ1b9uqq.mjs +53 -0
- package/dist/{SpendingLegend-6FqtMcBV.mjs → SpendingLegend-CDO060GT.mjs} +65 -65
- 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-m5PddMQn.mjs +1380 -0
- package/dist/TransactionStore-PRlwE-TF.mjs +677 -0
- package/dist/TrendsStore-yO7qYv97.mjs +186 -0
- package/dist/{User-BklmOUSd.mjs → User-Cnlegl1N.mjs} +107 -107
- package/dist/{ViewMoreMicroCard-DAkyNRlD.mjs → ViewMoreMicroCard-DwR0v_ll.mjs} +211 -205
- package/dist/{WidgetContainer-CDh9fjpR.mjs → WidgetContainer-CoFDmQRE.mjs} +36 -36
- package/dist/accounts/index.es.js +200 -197
- package/dist/accounts/stores/AccountStore.d.ts +22 -25
- package/dist/accounts/utils/Accounts.d.ts +1 -2
- package/dist/analytics/index.es.js +27 -27
- package/dist/budgets/components/AddBudgets.d.ts +2 -1
- package/dist/budgets/index.es.js +703 -669
- package/dist/budgets/store/BudgetsStore.d.ts +0 -1
- package/dist/cashflow/index.es.js +420 -404
- package/dist/categories/index.es.js +2 -2
- package/dist/categories/stores/CategoryStore.d.ts +3 -6
- package/dist/categories/util/CategoryUtil.d.ts +2 -3
- package/dist/common/components/ErrorBoundary.d.ts +1 -1
- 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/charts/linechart/CustomTooltip.d.ts +6 -1
- package/dist/common/components/charts/stackedlinechart/CustomPointTooltip.d.ts +5 -2
- package/dist/common/components/index.d.ts +1 -0
- package/dist/common/hooks/index.d.ts +2 -0
- package/dist/common/hooks/useAriaLive.d.ts +1 -1
- package/dist/common/hooks/usePrevious.d.ts +2 -0
- package/dist/common/hooks/useWidgetLoadTimer.d.ts +6 -0
- package/dist/common/index.es.js +712 -436
- package/dist/common/stores/AppDataStore.d.ts +1 -3
- package/dist/common/stores/GlobalCopyStore.d.ts +1 -0
- package/dist/common/stores/GlobalStore.d.ts +3 -3
- package/dist/common/stores/GlobalUiStore.d.ts +2 -3
- package/dist/common/stores/UserStore.d.ts +2 -3
- package/dist/common/types/Account.d.ts +6 -9
- package/dist/common/types/localization/TransactionsCopy.d.ts +1 -0
- package/dist/common/utils/Theme.d.ts +3 -1
- package/dist/dashboard/index.es.js +93 -91
- package/dist/debts/components/DebtsChart.d.ts +2 -1
- package/dist/debts/index.es.js +529 -527
- package/dist/{exportTransactionsToCSV-BgV_wTLT.mjs → exportTransactionsToCSV-DuAaI5XA.mjs} +3 -3
- package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +4 -5
- package/dist/finstrong/index.es.js +876 -867
- package/dist/goals/index.es.js +526 -525
- package/dist/goals/stores/GoalStore.d.ts +4 -17
- 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 +13 -9
- package/dist/{hooks-C41HAxM5.mjs → hooks-ZMp65DFz.mjs} +11 -11
- package/dist/investments/index.es.js +534 -531
- package/dist/investments/stores/HoldingStore.d.ts +0 -1
- package/dist/merchants/index.es.js +8 -8
- package/dist/microinsights/MicroCardTemplate.d.ts +16 -0
- package/dist/microinsights/index.d.ts +1 -0
- package/dist/microinsights/index.es.js +101 -14
- package/dist/networth/components/NetWorthChange.d.ts +1 -3
- package/dist/networth/index.es.js +284 -285
- package/dist/notifications/index.es.js +95 -94
- package/dist/notifications/stores/NotificationStore.d.ts +1 -3
- package/dist/recurringtransactions/index.es.js +582 -562
- package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +2 -4
- package/dist/settings/index.es.js +340 -337
- package/dist/spending/index.es.js +281 -268
- package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +7 -0
- package/dist/transactions/index.es.js +253 -255
- package/dist/transactions/stores/TransactionStore.d.ts +77 -21
- package/dist/transactions/stores/UiStore.d.ts +2 -0
- package/dist/trends/components/TrendsTable.d.ts +0 -2
- package/dist/trends/index.es.js +838 -793
- package/dist/trends/utils/TrendsData.d.ts +1 -0
- package/dist/{useAccountDisplayName-CcIp09Xc.mjs → useAccountDisplayName-B7iXTNM8.mjs} +2 -2
- package/dist/{useCombineEvents-kNzLTWCp.mjs → useCombineEvents-CRwX-qWE.mjs} +2 -2
- package/dist/{useInsightsEnabled-CNjP5cfR.mjs → useInsightsEnabled-B7dxpDrX.mjs} +1 -1
- package/dist/{useScreenSize-B5afALev.mjs → useScreenSize-B6JyS_Lj.mjs} +1 -1
- package/dist/useWidgetLoadTimer-hIOioiKx.mjs +19 -0
- package/package.json +57 -52
- package/dist/AccountDetailsContent-adZTkM52.mjs +0 -683
- package/dist/AccountListItem-wgmlex-_.mjs +0 -90
- package/dist/Accounts-CRUehOiy.mjs +0 -27
- package/dist/CategoryStore-MUwRWH9e.mjs +0 -176
- package/dist/CategoryUtil-DfVKKkRf.mjs +0 -80
- package/dist/CurrencyInput-D1cjbdCI.mjs +0 -85
- package/dist/Drawer-BF40nbsH.mjs +0 -163
- package/dist/HeaderCell-P8w6CmfO.mjs +0 -6
- package/dist/LineChart-C1PxNf7P.mjs +0 -581
- package/dist/Loader-Ckqi9Rx6.mjs +0 -21
- package/dist/MicroWidgetContainer-BGpNl5ZS.mjs +0 -45
- package/dist/MiniWidgetContainer-CKzf_Ira.mjs +0 -56
- package/dist/NotificationSettings-B74rQVYC.mjs +0 -672
- package/dist/SearchBox-B7km148n.mjs +0 -39
- package/dist/SkeletonLoader-BaNboJjD.mjs +0 -38
- package/dist/SpendingData-DPQ96k3x.mjs +0 -55
- package/dist/TransactionDetails-Bn0qY5Hw.mjs +0 -1336
- package/dist/TransactionStore-DbwAutwC.mjs +0 -671
- package/dist/TrendsStore-_mRaFUdf.mjs +0 -182
- package/dist/common/components/SkeletonLoader.d.ts +0 -7
- package/dist/recurringtransactions/components/MicroWidgetContent.d.ts +0 -3
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import { jsxs as u, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import s from "@mui/material/Box";
|
|
3
|
+
import h from "@mui/material/Stack";
|
|
4
|
+
import { H2 as S, Drawer as B } from "@mxenabled/mxui";
|
|
5
|
+
import b from "@mui/material/Button";
|
|
6
|
+
import v from "@mui/material/IconButton";
|
|
7
|
+
import { ArrowBack as j } from "@mxenabled/mx-icons";
|
|
8
|
+
const $ = ({
|
|
9
|
+
footerStyles: a = {},
|
|
10
|
+
hasSecondaryAction: t = !0,
|
|
11
|
+
isPrimaryDisabled: i,
|
|
12
|
+
onPrimaryAction: o,
|
|
13
|
+
onSecondaryAction: e,
|
|
14
|
+
primaryButtonProps: n = {},
|
|
15
|
+
primaryColor: c = "primary",
|
|
16
|
+
primaryText: d = "Save",
|
|
17
|
+
secondaryColor: l = "primary",
|
|
18
|
+
secondaryText: p = "Cancel"
|
|
19
|
+
}) => /* @__PURE__ */ u(
|
|
20
|
+
h,
|
|
21
|
+
{
|
|
22
|
+
sx: {
|
|
23
|
+
bgcolor: "background.paper",
|
|
24
|
+
flexDirection: "row",
|
|
25
|
+
gap: 16,
|
|
26
|
+
justifyContent: "flex-end",
|
|
27
|
+
p: 24,
|
|
28
|
+
...a
|
|
29
|
+
},
|
|
30
|
+
children: [
|
|
31
|
+
t && /* @__PURE__ */ r(
|
|
32
|
+
b,
|
|
33
|
+
{
|
|
34
|
+
color: l,
|
|
35
|
+
onClick: e,
|
|
36
|
+
variant: o ? "outlined" : "contained",
|
|
37
|
+
children: p
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
o && /* @__PURE__ */ r(
|
|
41
|
+
b,
|
|
42
|
+
{
|
|
43
|
+
...n,
|
|
44
|
+
color: c,
|
|
45
|
+
disabled: i,
|
|
46
|
+
onClick: o,
|
|
47
|
+
variant: "contained",
|
|
48
|
+
children: d
|
|
49
|
+
}
|
|
50
|
+
)
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
), F = ({
|
|
54
|
+
ariaLabelClose: a,
|
|
55
|
+
onClose: t,
|
|
56
|
+
shouldShowBorders: i,
|
|
57
|
+
shouldShowShadow: o,
|
|
58
|
+
title: e
|
|
59
|
+
}) => /* @__PURE__ */ u(
|
|
60
|
+
h,
|
|
61
|
+
{
|
|
62
|
+
"aria-level": 1,
|
|
63
|
+
direction: "row",
|
|
64
|
+
role: "heading",
|
|
65
|
+
sx: {
|
|
66
|
+
alignItems: "center",
|
|
67
|
+
backgroundColor: "background.paper",
|
|
68
|
+
...i && {
|
|
69
|
+
borderBottom: 1,
|
|
70
|
+
borderTop: 1,
|
|
71
|
+
borderColor: "border.light"
|
|
72
|
+
},
|
|
73
|
+
...o && {
|
|
74
|
+
boxShadow: "0px 2px 8px 0px #6A73811F"
|
|
75
|
+
},
|
|
76
|
+
padding: "8px 8px 8px 8px"
|
|
77
|
+
},
|
|
78
|
+
children: [
|
|
79
|
+
/* @__PURE__ */ r(v, { "aria-label": a, color: "primary", onClick: t, children: /* @__PURE__ */ r(j, { color: "primary", sx: { fontSize: 22 } }) }),
|
|
80
|
+
/* @__PURE__ */ r(
|
|
81
|
+
s,
|
|
82
|
+
{
|
|
83
|
+
sx: {
|
|
84
|
+
flexGrow: 1,
|
|
85
|
+
margin: "auto",
|
|
86
|
+
textAlign: "center"
|
|
87
|
+
},
|
|
88
|
+
children: /* @__PURE__ */ r(
|
|
89
|
+
S,
|
|
90
|
+
{
|
|
91
|
+
bold: !0,
|
|
92
|
+
id: `${e?.replace(/\s+/g, "-").toLowerCase()}-header-title`,
|
|
93
|
+
variant: "Body",
|
|
94
|
+
children: e
|
|
95
|
+
}
|
|
96
|
+
)
|
|
97
|
+
}
|
|
98
|
+
),
|
|
99
|
+
/* @__PURE__ */ r(s, { width: "44px" })
|
|
100
|
+
]
|
|
101
|
+
}
|
|
102
|
+
), H = ({
|
|
103
|
+
ariaLabelClose: a = "Close",
|
|
104
|
+
children: t,
|
|
105
|
+
footerStyles: i = {},
|
|
106
|
+
hasSecondaryAction: o = !0,
|
|
107
|
+
id: e,
|
|
108
|
+
isOpen: n,
|
|
109
|
+
isPrimaryDisabled: c,
|
|
110
|
+
onClose: d,
|
|
111
|
+
onPrimaryAction: l,
|
|
112
|
+
onSecondaryAction: p,
|
|
113
|
+
primaryButtonProps: g,
|
|
114
|
+
primaryColor: m = "primary",
|
|
115
|
+
primaryText: w,
|
|
116
|
+
secondaryColor: f = "secondary",
|
|
117
|
+
secondaryText: k,
|
|
118
|
+
shouldShowHeaderBorders: C = !0,
|
|
119
|
+
shouldShowHeaderShadow: y = !1,
|
|
120
|
+
title: x,
|
|
121
|
+
...D
|
|
122
|
+
}) => /* @__PURE__ */ r(
|
|
123
|
+
B,
|
|
124
|
+
{
|
|
125
|
+
id: e,
|
|
126
|
+
isOpen: n,
|
|
127
|
+
onClose: d,
|
|
128
|
+
slotProps: {
|
|
129
|
+
root: {
|
|
130
|
+
role: "dialog",
|
|
131
|
+
"aria-modal": "true",
|
|
132
|
+
"aria-labelledby": `${x?.replace(/\s+/g, "-").toLowerCase()}-header-title`
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
sx: {
|
|
136
|
+
"& .MuiDrawer-paper": {
|
|
137
|
+
backgroundColor: "background.default",
|
|
138
|
+
borderRadius: 0
|
|
139
|
+
},
|
|
140
|
+
height: "100%",
|
|
141
|
+
"& .MuiToolbar-root": {
|
|
142
|
+
backgroundColor: "background.paper"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
...D,
|
|
146
|
+
children: /* @__PURE__ */ u(h, { height: "100%", justifyContent: "space-between", children: [
|
|
147
|
+
/* @__PURE__ */ r(
|
|
148
|
+
F,
|
|
149
|
+
{
|
|
150
|
+
ariaLabelClose: a,
|
|
151
|
+
onClose: d,
|
|
152
|
+
shouldShowBorders: C,
|
|
153
|
+
shouldShowShadow: y,
|
|
154
|
+
title: x
|
|
155
|
+
}
|
|
156
|
+
),
|
|
157
|
+
/* @__PURE__ */ r(s, { height: "100%", overflow: "auto", children: t }),
|
|
158
|
+
l && /* @__PURE__ */ r(
|
|
159
|
+
$,
|
|
160
|
+
{
|
|
161
|
+
footerStyles: i,
|
|
162
|
+
hasSecondaryAction: o,
|
|
163
|
+
isPrimaryDisabled: c,
|
|
164
|
+
onPrimaryAction: l,
|
|
165
|
+
onSecondaryAction: p ?? d,
|
|
166
|
+
primaryButtonProps: g,
|
|
167
|
+
primaryColor: m,
|
|
168
|
+
primaryText: w,
|
|
169
|
+
secondaryColor: f,
|
|
170
|
+
secondaryText: k
|
|
171
|
+
}
|
|
172
|
+
)
|
|
173
|
+
] })
|
|
174
|
+
}
|
|
175
|
+
), R = H;
|
|
176
|
+
export {
|
|
177
|
+
R as D
|
|
178
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
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-
|
|
7
|
-
import { g as _, h as C, u as l } from "./hooks-
|
|
4
|
+
import { e as p } from "./exportTransactionsToCSV-DuAaI5XA.mjs";
|
|
5
|
+
import { O as m } from "./User-Cnlegl1N.mjs";
|
|
6
|
+
import { R as x } from "./ResponsiveButton-DZFp78fJ.mjs";
|
|
7
|
+
import { g as _, h as C, u as l } from "./hooks-ZMp65DFz.mjs";
|
|
8
8
|
const v = ({ filter: t }) => {
|
|
9
9
|
const { onEvent: r } = _(), { tags: e, sortedTransactions: s } = C(), { transactions: n } = l(), a = () => {
|
|
10
10
|
r(m.ON_TRANSACTION_EXPORT_CSV_CLICK), p(t ? s.filter(t) : s, e);
|
|
@@ -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
|
};
|