@mx-cartographer/experiences 7.3.2 → 7.4.0
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/{Account-YwUMFz93.mjs → Account-01wOyrH1.mjs} +1 -1
- package/dist/{AccountDetailsContent-BgCST7mK.mjs → AccountDetailsContent-gke-5zMF.mjs} +10 -10
- package/dist/{AccountDetailsHeader-jAFWoHj7.mjs → AccountDetailsHeader-CRzfuFA2.mjs} +7 -7
- package/dist/{AccountFields-DPxMPBF0.mjs → AccountFields-CPkGZ3SD.mjs} +5 -5
- package/dist/{AccountListItem-D6rWAreC.mjs → AccountListItem-D4uG9yC-.mjs} +4 -4
- package/dist/{AccountStore-B5E98oM1.mjs → AccountStore-C1zMBzHq.mjs} +40 -29
- package/dist/{Accounts-UIlYCmHb.mjs → Accounts-D7QljYas.mjs} +1 -1
- package/dist/{BudgetUtil-CXvenbdN.mjs → BudgetUtil-wjoNuj7B.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-Buy70Y3V.mjs → CategorySelectorDrawer-DqJK_rrL.mjs} +3 -3
- package/dist/{CategoryStore-BEdFs69_.mjs → CategoryStore-U7hOZAbP.mjs} +1 -1
- package/dist/{CategoryUtil-BR3H5i6n.mjs → CategoryUtil-DUM8NuGO.mjs} +1 -1
- package/dist/{ConnectDrawer-CbxHKlRv.mjs → ConnectDrawer-CuUj16NH.mjs} +2 -2
- package/dist/{ConnectionsDrawer-C6kanU7I.mjs → ConnectionsDrawer-Bz4uwdFE.mjs} +3 -3
- package/dist/{CurrencyInput-lSC7oPDg.mjs → CurrencyInput-xH-hqry9.mjs} +1 -1
- package/dist/{DateUtil-BcuH7ErC.mjs → DateUtil-CBdcsyuk.mjs} +3 -3
- package/dist/{DebtsStore-DgIcphe_.mjs → DebtsStore-Bu8rRRSL.mjs} +1 -1
- package/dist/{Dialog-CWW597AF.mjs → Dialog-BPTr3qHE.mjs} +2 -2
- package/dist/Drawer-BEtCk82g.mjs +163 -0
- package/dist/{EmptyState-DA_lfRBv.mjs → EmptyState-DoxNUae-.mjs} +24 -22
- package/dist/{ExportCsvAction-DNSgmdyv.mjs → ExportCsvAction-DzTrtPzk.mjs} +3 -3
- package/dist/FinstrongStore-CfD6bbJk.mjs +441 -0
- package/dist/{GoalStore-CAlmSu4U.mjs → GoalStore-j6QYHgEa.mjs} +3 -3
- package/dist/{Help-hi9I9EYP.mjs → Help-BnPXM_N2.mjs} +2 -2
- package/dist/LineChart-DttMO7uS.mjs +581 -0
- package/dist/{ListItemAction-BmL5buOf.mjs → ListItemAction-uobBrm_a.mjs} +10 -10
- package/dist/{ManageIncome-Cypo9qY4.mjs → ManageIncome-CU5C0AeO.mjs} +97 -95
- package/dist/{MicroWidgetContainer-CFdMGJKg.mjs → MicroWidgetContainer-DEiRnYVa.mjs} +1 -1
- package/dist/{MiniWidgetContainer-BdgBvpga.mjs → MiniWidgetContainer-CmXpTylX.mjs} +1 -1
- package/dist/{NetWorthStore-CxqIxAgN.mjs → NetWorthStore-CpL_kqvx.mjs} +2 -2
- package/dist/{NotificationSettings-DxytNHlN.mjs → NotificationSettings-DI5B1spM.mjs} +5 -5
- package/dist/{OriginalBalanceAction-V6FEoIDe.mjs → OriginalBalanceAction-CCmnsd7y.mjs} +3 -3
- package/dist/{RecurringSettings-iIupYxJW.mjs → RecurringSettings-Cm5Bqcai.mjs} +4 -4
- package/dist/{RecurringTransactions-ej39mgA6.mjs → RecurringTransactions-CngsRZ3K.mjs} +45 -44
- package/dist/{RecurringTransactionsStore-BiwCzScZ.mjs → RecurringTransactionsStore-Bc1wCiNB.mjs} +1 -1
- package/dist/{SpendingData-D5vsfYKo.mjs → SpendingData-BuJ03S9d.mjs} +16 -16
- package/dist/SpendingLegend-B2BYr8B4.mjs +193 -0
- package/dist/{TransactionDetails-BUoNbsu-.mjs → TransactionDetails-CtbBBSoU.mjs} +396 -386
- package/dist/{TransactionStore-CtGTg0XS.mjs → TransactionStore-Dz-G8Wd0.mjs} +3 -3
- package/dist/{TrendsStore-5PvDT_o6.mjs → TrendsStore-BW9FGQeE.mjs} +1 -1
- package/dist/{User-Bj34_i8g.mjs → User-wXzDI4M8.mjs} +2 -2
- package/dist/{WidgetContainer-BnTgAfQn.mjs → WidgetContainer-6dsjtOVg.mjs} +4 -4
- package/dist/accounts/components/AccountsListCompact.d.ts +10 -0
- package/dist/accounts/index.es.js +17 -17
- package/dist/accounts/stores/AccountStore.d.ts +2 -0
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/index.es.js +13 -13
- package/dist/cashflow/index.es.js +49 -49
- package/dist/categories/index.es.js +2 -2
- package/dist/common/components/Select.d.ts +4 -2
- package/dist/common/components/charts/LineChart.d.ts +12 -2
- package/dist/common/components/charts/linechart/CustomLegend.d.ts +3 -1
- package/dist/common/components/charts/linechart/CustomMark.d.ts +4 -0
- package/dist/common/components/drawer/Drawer.d.ts +3 -0
- package/dist/common/components/drawer/Footer.d.ts +17 -0
- package/dist/common/index.es.js +33 -33
- package/dist/common/types/Finstrong.d.ts +54 -0
- package/dist/common/types/Widgets.d.ts +1 -0
- package/dist/common/types/index.d.ts +1 -1
- package/dist/common/types/localization/FinstrongCopy.d.ts +105 -2
- package/dist/common/types/localization/GoalsCopy.d.ts +1 -0
- package/dist/dashboard/index.es.js +2 -2
- package/dist/debts/index.es.js +11 -11
- package/dist/{exportTransactionsToCSV-C4PkIYP6.mjs → exportTransactionsToCSV-Cz2t0lmA.mjs} +2 -2
- package/dist/finstrong/FinstrongWidget.d.ts +1 -1
- package/dist/finstrong/api/FinstrongApi.d.ts +5 -0
- package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +3 -1
- package/dist/finstrong/components/CreditScore/CreditScoreContent.d.ts +4 -0
- package/dist/finstrong/components/CreditScore/CreditScoreHeader.d.ts +4 -0
- package/dist/finstrong/components/FinancialStrengthGraph.d.ts +7 -1
- package/dist/finstrong/components/HaveManageableDebt/DebtPaymentTabContent.d.ts +3 -0
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtComponent.d.ts +3 -0
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtProgressBar.d.ts +4 -0
- package/dist/finstrong/components/HaveManageableDebt/IncomeTabContent.d.ts +3 -0
- package/dist/finstrong/components/KeyIndicatorsBorrowTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsDrawer.d.ts +4 -1
- package/dist/finstrong/components/KeyIndicatorsSaveTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsSpendTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsTabItem.d.ts +4 -3
- package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.d.ts +10 -0
- package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +2 -2
- package/dist/finstrong/components/MaintainingEmergencySavings/EstimatedContributionCalculator.d.ts +6 -0
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsContent.d.ts +4 -0
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsSticky.d.ts +4 -0
- package/dist/finstrong/components/ProgressBar.d.ts +15 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/AvailableTabContent.d.ts +3 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnDrawerContent.d.ts +3 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnProgressBar.d.ts +4 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SpendingTabContent.d.ts +3 -0
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeComponent.d.ts +3 -0
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeProgressBar.d.ts +4 -0
- package/dist/finstrong/components/StatusChip.d.ts +5 -0
- package/dist/finstrong/components/onboarding/Onboarding.d.ts +2 -0
- package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +17 -0
- package/dist/finstrong/components/onboarding/OnboardingBirthday.d.ts +8 -0
- package/dist/finstrong/components/onboarding/OnboardingCreditScore.d.ts +8 -0
- package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +14 -0
- package/dist/finstrong/components/onboarding/OnboardingStepsHeader.d.ts +8 -0
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeDrawerComponent.d.ts +4 -0
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeStickyComponent.d.ts +4 -0
- package/dist/finstrong/components/shared/Accounts.d.ts +8 -0
- package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +25 -0
- package/dist/finstrong/components/shared/DialScoreCard.d.ts +7 -1
- package/dist/finstrong/components/shared/DoubleBarChart.d.ts +28 -0
- package/dist/finstrong/components/shared/LineGraph.d.ts +7 -0
- package/dist/finstrong/components/shared/TotalCard.d.ts +8 -0
- package/dist/finstrong/components/shared/Transactions.d.ts +11 -0
- package/dist/finstrong/constants/index.d.ts +20 -0
- package/dist/finstrong/index.es.js +3174 -1069
- package/dist/finstrong/stores/FinstrongStore.d.ts +21 -2
- package/dist/finstrong/util/finstrongUtils.d.ts +58 -1
- package/dist/goals/index.es.js +15 -15
- package/dist/help/index.es.js +3 -3
- package/dist/{hooks-Cy8JnjCg.mjs → hooks-C41HAxM5.mjs} +4 -4
- package/dist/investments/index.es.js +5 -5
- package/dist/merchants/index.es.js +1 -1
- package/dist/networth/index.es.js +33 -33
- package/dist/notifications/index.es.js +4 -4
- package/dist/recurringtransactions/index.es.js +43 -43
- package/dist/settings/index.es.js +8 -8
- package/dist/spending/index.es.js +261 -436
- package/dist/transactions/components/shared/TransactionList.d.ts +1 -0
- package/dist/transactions/index.es.js +15 -15
- package/dist/trends/index.es.js +16 -16
- package/dist/{useAccountDisplayName-D6sQsNNQ.mjs → useAccountDisplayName-CMMlIOXF.mjs} +2 -2
- package/dist/{useInsightsEnabled-BxytCjq5.mjs → useInsightsEnabled-CNjP5cfR.mjs} +1 -1
- package/package.json +1 -1
- package/dist/Drawer-kEE73B87.mjs +0 -113
- package/dist/FinstrongStore-CL7t5lBL.mjs +0 -101
- package/dist/LineChart-eK4IQImU.mjs +0 -541
- package/dist/finstrong/utils/Finstrong.d.ts +0 -6
|
@@ -0,0 +1,581 @@
|
|
|
1
|
+
import { jsxs as a, Fragment as B, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import X from "@mui/material/Box";
|
|
3
|
+
import { useTheme as F } from "@mui/material/styles";
|
|
4
|
+
import { ResponsiveChartContainer as ue, ChartsReferenceLine as fe, AreaPlot as xe, LinePlot as ye, MarkPlot as ge, BarPlot as pe, ChartsXAxis as be, ChartsYAxis as ke, ChartsAxisHighlight as Me } from "@mui/x-charts";
|
|
5
|
+
import { f as p, c as Ce } from "./NumberFormatting-Buh7u8Oi.mjs";
|
|
6
|
+
import we from "@mui/material/useMediaQuery";
|
|
7
|
+
import { observer as Le } from "mobx-react-lite";
|
|
8
|
+
import P from "@mui/material/Stack";
|
|
9
|
+
import { Text as l } from "@mxenabled/mxui";
|
|
10
|
+
import { u as Se } from "./hooks-C41HAxM5.mjs";
|
|
11
|
+
import { useTheme as ve, Stack as M, Box as O } from "@mui/material";
|
|
12
|
+
import { ChartsTooltip as Te } from "@mui/x-charts/ChartsTooltip";
|
|
13
|
+
const De = (e) => {
|
|
14
|
+
const r = F(), s = e.showLabel, o = e.style, b = o?.markLabelStyles, x = Number(e.x), u = Number(e.y), h = e.handlers?.onMarkClick, m = e.handlers?.onMouseEnter, c = e.handlers?.onMouseLeave, i = we(r.breakpoints.up("sm")), f = e.valueFormatterString ? p(e.yData[e.dataIndex], e.valueFormatterString) : String(e.yData[e.dataIndex]), d = i ? r.typography.Small?.fontSize : r.typography.XSmall?.fontSize, v = 30, T = 24, D = x - v / 2, A = u - 30;
|
|
15
|
+
return /* @__PURE__ */ a(B, { children: [
|
|
16
|
+
s && /* @__PURE__ */ a(B, { children: [
|
|
17
|
+
e.labelBackgroundColor && /* @__PURE__ */ t(
|
|
18
|
+
"rect",
|
|
19
|
+
{
|
|
20
|
+
fill: e.labelBackgroundColor,
|
|
21
|
+
height: T,
|
|
22
|
+
rx: "3",
|
|
23
|
+
width: v,
|
|
24
|
+
x: D,
|
|
25
|
+
y: A
|
|
26
|
+
}
|
|
27
|
+
),
|
|
28
|
+
/* @__PURE__ */ t(
|
|
29
|
+
"text",
|
|
30
|
+
{
|
|
31
|
+
className: "MuiLineChart-markLabel",
|
|
32
|
+
dominantBaseline: "middle",
|
|
33
|
+
fill: e.labelFontColor ? e.labelFontColor : r.palette.text.primary,
|
|
34
|
+
style: {
|
|
35
|
+
fontSize: e.labelFontSize ? e.labelFontSize : d,
|
|
36
|
+
...b
|
|
37
|
+
},
|
|
38
|
+
textAnchor: "middle",
|
|
39
|
+
x,
|
|
40
|
+
y: u - 28 + T / 2,
|
|
41
|
+
children: f
|
|
42
|
+
}
|
|
43
|
+
)
|
|
44
|
+
] }),
|
|
45
|
+
e.showMark && /* @__PURE__ */ t(
|
|
46
|
+
"path",
|
|
47
|
+
{
|
|
48
|
+
cursor: h ? "pointer" : "unset",
|
|
49
|
+
d: "M4.514,0A4.514,4.514,0,1,1,-4.514,0A4.514,4.514,0,1,1,4.514,0",
|
|
50
|
+
height: "20px",
|
|
51
|
+
onClick: ($) => {
|
|
52
|
+
h?.($, e.dataIndex);
|
|
53
|
+
},
|
|
54
|
+
onMouseEnter: () => {
|
|
55
|
+
m?.(e.dataIndex);
|
|
56
|
+
},
|
|
57
|
+
onMouseLeave: () => {
|
|
58
|
+
c?.();
|
|
59
|
+
},
|
|
60
|
+
style: {
|
|
61
|
+
fill: o?.fill ? o.fill : r.palette.background.paper,
|
|
62
|
+
stroke: o?.stroke ? o.stroke : r.palette.primary.main,
|
|
63
|
+
strokeWidth: 2,
|
|
64
|
+
transform: `translate(${e.x}px, ${e.y}px)`,
|
|
65
|
+
transformOrigin: `${e.x}px, ${e.y}px`,
|
|
66
|
+
filter: o?.filter ? o.filter : "none"
|
|
67
|
+
},
|
|
68
|
+
width: "20px"
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
] });
|
|
72
|
+
}, Ae = (e) => /* @__PURE__ */ a(B, { children: [
|
|
73
|
+
/* @__PURE__ */ t("clipPath", { id: e.id, children: /* @__PURE__ */ t("rect", { height: e.height, width: e.width, x: "0", y: "0" }) }),
|
|
74
|
+
/* @__PURE__ */ t("g", { children: /* @__PURE__ */ t(
|
|
75
|
+
"path",
|
|
76
|
+
{
|
|
77
|
+
cursor: "unset",
|
|
78
|
+
d: e.d,
|
|
79
|
+
style: {
|
|
80
|
+
strokeWidth: 2,
|
|
81
|
+
strokeLinejoin: "round",
|
|
82
|
+
fill: "none",
|
|
83
|
+
stroke: e.lineColor ? e.lineColor : e.stroke,
|
|
84
|
+
transition: "opacity 0.2s ease-in, stroke 0.2s ease-in",
|
|
85
|
+
opacity: 1
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
) })
|
|
89
|
+
] }), Ie = ({
|
|
90
|
+
label: e,
|
|
91
|
+
customLegendVariant: r
|
|
92
|
+
}) => {
|
|
93
|
+
const s = r || "Small";
|
|
94
|
+
return typeof e == "string" ? /* @__PURE__ */ t(l, { variant: s, children: e }) : typeof e == "object" && e.amount !== void 0 && e.label ? /* @__PURE__ */ a(B, { children: [
|
|
95
|
+
/* @__PURE__ */ t(l, { variant: s, children: e.label }),
|
|
96
|
+
/* @__PURE__ */ t(l, { bold: !0, sx: { marginLeft: 8 }, variant: s, children: p(e.amount, "0,0") })
|
|
97
|
+
] }) : null;
|
|
98
|
+
}, Re = ({
|
|
99
|
+
average: e,
|
|
100
|
+
customLegendVariant: r,
|
|
101
|
+
customLegendBoxSx: s,
|
|
102
|
+
labels: o = [],
|
|
103
|
+
series: b,
|
|
104
|
+
style: x,
|
|
105
|
+
title: u,
|
|
106
|
+
valueFormatterString: h
|
|
107
|
+
}) => {
|
|
108
|
+
const { common: m } = Se(), c = r || "Small";
|
|
109
|
+
return /* @__PURE__ */ a(P, { style: { flexDirection: "row", gap: 24, ...x }, children: [
|
|
110
|
+
b.map((i, f) => {
|
|
111
|
+
const d = o[f];
|
|
112
|
+
return d ? /* @__PURE__ */ a(
|
|
113
|
+
P,
|
|
114
|
+
{
|
|
115
|
+
style: { alignItems: "center", flexDirection: "row", flexWrap: "wrap" },
|
|
116
|
+
children: [
|
|
117
|
+
/* @__PURE__ */ t(
|
|
118
|
+
X,
|
|
119
|
+
{
|
|
120
|
+
sx: {
|
|
121
|
+
width: 10,
|
|
122
|
+
height: 10,
|
|
123
|
+
backgroundColor: i.color,
|
|
124
|
+
marginRight: 8,
|
|
125
|
+
...s
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
),
|
|
129
|
+
/* @__PURE__ */ t(Ie, { customLegendVariant: r, label: d })
|
|
130
|
+
]
|
|
131
|
+
},
|
|
132
|
+
f
|
|
133
|
+
) : null;
|
|
134
|
+
}),
|
|
135
|
+
e && /* @__PURE__ */ a(P, { sx: { alignItems: "center", flexDirection: "row" }, children: [
|
|
136
|
+
/* @__PURE__ */ t(l, { bold: !0, sx: { marginRight: 8 }, variant: c, children: "– –" }),
|
|
137
|
+
/* @__PURE__ */ a(l, { variant: c, children: [
|
|
138
|
+
u || m.average,
|
|
139
|
+
" "
|
|
140
|
+
] }),
|
|
141
|
+
/* @__PURE__ */ t(l, { bold: !0, variant: c, children: h ? p(e, h) : e })
|
|
142
|
+
] })
|
|
143
|
+
] });
|
|
144
|
+
}, Be = Le(Re);
|
|
145
|
+
function $e({
|
|
146
|
+
customLabels: e,
|
|
147
|
+
labels: r = [],
|
|
148
|
+
valueFormatterString: s = "0,0"
|
|
149
|
+
}) {
|
|
150
|
+
const o = ve();
|
|
151
|
+
return /* @__PURE__ */ t(
|
|
152
|
+
Te,
|
|
153
|
+
{
|
|
154
|
+
showCrosshair: !0,
|
|
155
|
+
slots: {
|
|
156
|
+
axisContent: (b) => {
|
|
157
|
+
const { axisValue: x, dataIndex: u, series: h } = b, m = u ?? 0;
|
|
158
|
+
if (e) {
|
|
159
|
+
const c = e[m]?.[0]?.header || String(x);
|
|
160
|
+
return /* @__PURE__ */ a(
|
|
161
|
+
M,
|
|
162
|
+
{
|
|
163
|
+
sx: {
|
|
164
|
+
backgroundColor: o.palette.background.paper,
|
|
165
|
+
boxShadow: "0 2px 8px 0 rgba(0, 0, 0, 0.12)",
|
|
166
|
+
flexDirection: "column",
|
|
167
|
+
alignItems: "flex-start",
|
|
168
|
+
borderRadius: "4px",
|
|
169
|
+
width: 250,
|
|
170
|
+
gap: 8,
|
|
171
|
+
px: 16,
|
|
172
|
+
py: 12
|
|
173
|
+
},
|
|
174
|
+
children: [
|
|
175
|
+
/* @__PURE__ */ a(
|
|
176
|
+
M,
|
|
177
|
+
{
|
|
178
|
+
sx: {
|
|
179
|
+
flexDirection: "row",
|
|
180
|
+
justifyContent: "space-between",
|
|
181
|
+
alignItems: "center",
|
|
182
|
+
alignSelf: "stretch",
|
|
183
|
+
gap: 8,
|
|
184
|
+
marginTop: 4
|
|
185
|
+
},
|
|
186
|
+
children: [
|
|
187
|
+
/* @__PURE__ */ t(l, { variant: "H3", children: c }),
|
|
188
|
+
/* @__PURE__ */ t(l, { bold: !0, variant: "H3", children: p(h[0]?.data[m], s) })
|
|
189
|
+
]
|
|
190
|
+
}
|
|
191
|
+
),
|
|
192
|
+
e[m]?.some((i) => (typeof i == "string" ? 0 : i.amount) !== 0) ? e[m]?.map((i) => {
|
|
193
|
+
const f = typeof i == "string" ? i : i.label, d = typeof i == "string" ? 0 : i.amount;
|
|
194
|
+
return d === 0 ? null : /* @__PURE__ */ a(
|
|
195
|
+
M,
|
|
196
|
+
{
|
|
197
|
+
sx: {
|
|
198
|
+
flexDirection: "row",
|
|
199
|
+
justifyContent: "space-between",
|
|
200
|
+
alignItems: "center",
|
|
201
|
+
alignSelf: "stretch",
|
|
202
|
+
gap: 8,
|
|
203
|
+
marginTop: 4
|
|
204
|
+
},
|
|
205
|
+
children: [
|
|
206
|
+
/* @__PURE__ */ a(
|
|
207
|
+
M,
|
|
208
|
+
{
|
|
209
|
+
sx: {
|
|
210
|
+
flexDirection: "row",
|
|
211
|
+
alignItems: "center",
|
|
212
|
+
gap: 8,
|
|
213
|
+
flex: 1,
|
|
214
|
+
minWidth: 0
|
|
215
|
+
},
|
|
216
|
+
children: [
|
|
217
|
+
/* @__PURE__ */ t(
|
|
218
|
+
O,
|
|
219
|
+
{
|
|
220
|
+
sx: {
|
|
221
|
+
width: "12px",
|
|
222
|
+
height: "12px",
|
|
223
|
+
backgroundColor: h[0]?.color,
|
|
224
|
+
borderRadius: "4px"
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
),
|
|
228
|
+
/* @__PURE__ */ t(l, { variant: "Body", children: f })
|
|
229
|
+
]
|
|
230
|
+
}
|
|
231
|
+
),
|
|
232
|
+
/* @__PURE__ */ t(l, { bold: !0, variant: "Body", children: p(Math.abs(d), s) })
|
|
233
|
+
]
|
|
234
|
+
},
|
|
235
|
+
f
|
|
236
|
+
);
|
|
237
|
+
}) : /* @__PURE__ */ t(l, { variant: "Body", children: "No data" })
|
|
238
|
+
]
|
|
239
|
+
}
|
|
240
|
+
);
|
|
241
|
+
}
|
|
242
|
+
return /* @__PURE__ */ a(
|
|
243
|
+
M,
|
|
244
|
+
{
|
|
245
|
+
sx: {
|
|
246
|
+
backgroundColor: o.palette.background.paper,
|
|
247
|
+
boxShadow: "0 2px 8px 0 rgba(0, 0, 0, 0.12)",
|
|
248
|
+
flexDirection: "column",
|
|
249
|
+
alignItems: "flex-start",
|
|
250
|
+
borderRadius: "4px",
|
|
251
|
+
width: 225,
|
|
252
|
+
gap: 8,
|
|
253
|
+
px: 16,
|
|
254
|
+
py: 12
|
|
255
|
+
},
|
|
256
|
+
children: [
|
|
257
|
+
/* @__PURE__ */ t(l, { variant: "H3", children: String(x) }),
|
|
258
|
+
h.map((c, i) => /* @__PURE__ */ a(
|
|
259
|
+
M,
|
|
260
|
+
{
|
|
261
|
+
sx: {
|
|
262
|
+
flexDirection: "row",
|
|
263
|
+
justifyContent: "space-between",
|
|
264
|
+
alignItems: "center",
|
|
265
|
+
alignSelf: "stretch",
|
|
266
|
+
gap: 8,
|
|
267
|
+
marginTop: 4
|
|
268
|
+
},
|
|
269
|
+
children: [
|
|
270
|
+
/* @__PURE__ */ a(M, { sx: { flexDirection: "row", alignItems: "center", gap: 8 }, children: [
|
|
271
|
+
/* @__PURE__ */ t(
|
|
272
|
+
O,
|
|
273
|
+
{
|
|
274
|
+
sx: {
|
|
275
|
+
width: "12px",
|
|
276
|
+
height: "12px",
|
|
277
|
+
backgroundColor: c.color,
|
|
278
|
+
borderRadius: "4px"
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
),
|
|
282
|
+
/* @__PURE__ */ t(l, { variant: "Body", children: typeof r[i] == "string" ? r[i] : r[i]?.label })
|
|
283
|
+
] }),
|
|
284
|
+
/* @__PURE__ */ t(l, { bold: !0, variant: "Body", children: p(c.data[m], s) })
|
|
285
|
+
]
|
|
286
|
+
},
|
|
287
|
+
c.id
|
|
288
|
+
))
|
|
289
|
+
]
|
|
290
|
+
}
|
|
291
|
+
);
|
|
292
|
+
}
|
|
293
|
+
},
|
|
294
|
+
trigger: "axis"
|
|
295
|
+
}
|
|
296
|
+
);
|
|
297
|
+
}
|
|
298
|
+
const Qe = ({
|
|
299
|
+
areaColor: e,
|
|
300
|
+
axisColor: r,
|
|
301
|
+
baseline: s = "max",
|
|
302
|
+
chartFor: o,
|
|
303
|
+
chartXaxisSx: b,
|
|
304
|
+
chartYaxisSx: x,
|
|
305
|
+
colors: u,
|
|
306
|
+
curveType: h = "linear",
|
|
307
|
+
customLegendVariant: m,
|
|
308
|
+
customLegendSx: c,
|
|
309
|
+
customLegendBoxSx: i,
|
|
310
|
+
customTooltipLabels: f,
|
|
311
|
+
datasets: d,
|
|
312
|
+
height: v,
|
|
313
|
+
isGraphClippingXAxis: T = !1,
|
|
314
|
+
labels: D,
|
|
315
|
+
labelBackgroundColor: A,
|
|
316
|
+
labelFontColor: $,
|
|
317
|
+
labelFontSize: Y,
|
|
318
|
+
margin: q,
|
|
319
|
+
markHandlers: Q,
|
|
320
|
+
markStyles: U,
|
|
321
|
+
minRange: V,
|
|
322
|
+
maxRange: J,
|
|
323
|
+
onItemClick: j,
|
|
324
|
+
peerAverage: W,
|
|
325
|
+
showArea: E = !1,
|
|
326
|
+
showAverage: H = !1,
|
|
327
|
+
showAxisHighlight: K = !1,
|
|
328
|
+
showBars: z = !1,
|
|
329
|
+
showLegend: Z = !1,
|
|
330
|
+
showMark: _ = !0,
|
|
331
|
+
showMarkLabel: ee = !1,
|
|
332
|
+
showTooltip: te = !1,
|
|
333
|
+
showXAxis: ne = !1,
|
|
334
|
+
showXAxisTicks: re = !1,
|
|
335
|
+
showYAxis: ae = !1,
|
|
336
|
+
showYAxisTicks: ie = !1,
|
|
337
|
+
title: oe,
|
|
338
|
+
useCustomMark: le = !1,
|
|
339
|
+
valueFormatterString: k,
|
|
340
|
+
width: se,
|
|
341
|
+
xAxisScaleType: ce
|
|
342
|
+
}) => {
|
|
343
|
+
const y = F(), de = d.flat().map((n) => n.x), C = d.flat().map((n) => n.y), G = W || Math.round(C.reduce((n, S) => S + n, 0) / C.length), w = Math.floor(Math.min(...C) / 100) * 100, L = Math.ceil(Math.max(...C) / 100) * 100, N = d.map((n, S) => ({
|
|
344
|
+
type: z ? "bar" : "line",
|
|
345
|
+
curve: h,
|
|
346
|
+
color: z ? y.palette.chart?.chart6 : u[S] ?? y.palette.primary.main,
|
|
347
|
+
data: n.map((g) => g.y),
|
|
348
|
+
area: E,
|
|
349
|
+
baseline: s,
|
|
350
|
+
showMark: !0,
|
|
351
|
+
valueFormatter: (g) => k ? p(g || 0, k) : String(g)
|
|
352
|
+
})), he = {
|
|
353
|
+
...{
|
|
354
|
+
top: 60,
|
|
355
|
+
right: 35,
|
|
356
|
+
bottom: 50,
|
|
357
|
+
left: 50
|
|
358
|
+
},
|
|
359
|
+
...q
|
|
360
|
+
};
|
|
361
|
+
let I = V ?? w, R = J ?? L;
|
|
362
|
+
if (o === "networthChart") {
|
|
363
|
+
const n = L - w, S = n < L * 0.05 ? 0.25 : 0.2, g = Math.max(n * S, L * 0.015);
|
|
364
|
+
I = w - g < 0 ? w : w - g, R = L + g;
|
|
365
|
+
}
|
|
366
|
+
const me = () => {
|
|
367
|
+
if (o === "creditOverTime")
|
|
368
|
+
return [300, 450, 600, 725, 850];
|
|
369
|
+
if (o === "networthChart")
|
|
370
|
+
return Ce(I, R, 5);
|
|
371
|
+
};
|
|
372
|
+
return /* @__PURE__ */ a(
|
|
373
|
+
X,
|
|
374
|
+
{
|
|
375
|
+
sx: {
|
|
376
|
+
position: "relative",
|
|
377
|
+
touchAction: "pan-y",
|
|
378
|
+
// Allow vertical scrolling
|
|
379
|
+
"& svg": {
|
|
380
|
+
touchAction: "pan-y",
|
|
381
|
+
// Allow vertical scrolling on SVG
|
|
382
|
+
userSelect: "none"
|
|
383
|
+
// Prevent text selection
|
|
384
|
+
},
|
|
385
|
+
"& .recharts-wrapper": {
|
|
386
|
+
touchAction: "pan-y"
|
|
387
|
+
// For Recharts library specifically
|
|
388
|
+
}
|
|
389
|
+
},
|
|
390
|
+
children: [
|
|
391
|
+
/* @__PURE__ */ a(
|
|
392
|
+
ue,
|
|
393
|
+
{
|
|
394
|
+
height: v,
|
|
395
|
+
margin: he,
|
|
396
|
+
series: N,
|
|
397
|
+
sx: {
|
|
398
|
+
"& .MuiBarLabel-root": {
|
|
399
|
+
fontSize: 10,
|
|
400
|
+
fontWeight: 600
|
|
401
|
+
},
|
|
402
|
+
"& .MuiAreaElement-root": {
|
|
403
|
+
opacity: 0.15
|
|
404
|
+
},
|
|
405
|
+
"& .MuiChartsAxis-tickLabel > tspan": {
|
|
406
|
+
fontFamily: y.typography.Small.fontFamily
|
|
407
|
+
},
|
|
408
|
+
"& .MuiLineChart-markLabel": {
|
|
409
|
+
fontFamily: y.typography.Small.fontFamily
|
|
410
|
+
}
|
|
411
|
+
},
|
|
412
|
+
width: se,
|
|
413
|
+
xAxis: [{ data: de, scaleType: ce || (z ? "band" : "point") }],
|
|
414
|
+
yAxis: [
|
|
415
|
+
{
|
|
416
|
+
tickInterval: me(),
|
|
417
|
+
min: T ? -22 : I,
|
|
418
|
+
max: R || 100,
|
|
419
|
+
colorMap: E && N.length < 2 ? {
|
|
420
|
+
type: "continuous",
|
|
421
|
+
min: I,
|
|
422
|
+
max: R,
|
|
423
|
+
color: [
|
|
424
|
+
y.palette.background.paper,
|
|
425
|
+
u[0] ?? y.palette.primary.main
|
|
426
|
+
]
|
|
427
|
+
} : void 0,
|
|
428
|
+
valueFormatter: (n) => k ? p(n, k) : String(n)
|
|
429
|
+
}
|
|
430
|
+
],
|
|
431
|
+
children: [
|
|
432
|
+
H && /* @__PURE__ */ t(
|
|
433
|
+
fe,
|
|
434
|
+
{
|
|
435
|
+
lineStyle: {
|
|
436
|
+
stroke: A ? y.palette.neutral.main : y.palette.neutral.dark,
|
|
437
|
+
strokeDasharray: "10, 8",
|
|
438
|
+
strokeWidth: 2
|
|
439
|
+
},
|
|
440
|
+
y: G
|
|
441
|
+
}
|
|
442
|
+
),
|
|
443
|
+
/* @__PURE__ */ t(
|
|
444
|
+
xe,
|
|
445
|
+
{
|
|
446
|
+
onItemClick: j,
|
|
447
|
+
...e && {
|
|
448
|
+
slots: {
|
|
449
|
+
area: (n) => /* @__PURE__ */ a("g", { children: [
|
|
450
|
+
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ a("linearGradient", { id: "customGradient", x1: "0", x2: "0", y1: "0", y2: "1", children: [
|
|
451
|
+
/* @__PURE__ */ t("stop", { offset: "0%", stopColor: e }),
|
|
452
|
+
/* @__PURE__ */ t("stop", { offset: "100%", stopColor: e, stopOpacity: 0.02 })
|
|
453
|
+
] }) }),
|
|
454
|
+
/* @__PURE__ */ t("path", { ...n, fill: "url(#customGradient)" })
|
|
455
|
+
] })
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
),
|
|
460
|
+
/* @__PURE__ */ t(
|
|
461
|
+
ye,
|
|
462
|
+
{
|
|
463
|
+
onItemClick: j,
|
|
464
|
+
slots: {
|
|
465
|
+
line: (n) => /* @__PURE__ */ t(
|
|
466
|
+
Ae,
|
|
467
|
+
{
|
|
468
|
+
...n,
|
|
469
|
+
lineColor: e ?? n.ownerState.color ?? y.palette.primary.main
|
|
470
|
+
}
|
|
471
|
+
)
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
),
|
|
475
|
+
/* @__PURE__ */ t(
|
|
476
|
+
ge,
|
|
477
|
+
{
|
|
478
|
+
onItemClick: j,
|
|
479
|
+
slots: le ? {
|
|
480
|
+
mark: (n) => /* @__PURE__ */ t(
|
|
481
|
+
De,
|
|
482
|
+
{
|
|
483
|
+
handlers: Q,
|
|
484
|
+
labelBackgroundColor: A,
|
|
485
|
+
labelFontColor: $,
|
|
486
|
+
labelFontSize: Y,
|
|
487
|
+
showLabel: ee,
|
|
488
|
+
showMark: _ || n.dataIndex === d[0].length - 1,
|
|
489
|
+
style: U?.(n.dataIndex) ?? {},
|
|
490
|
+
valueFormatterString: k,
|
|
491
|
+
yData: C,
|
|
492
|
+
...n
|
|
493
|
+
}
|
|
494
|
+
)
|
|
495
|
+
} : void 0
|
|
496
|
+
}
|
|
497
|
+
),
|
|
498
|
+
/* @__PURE__ */ t(
|
|
499
|
+
pe,
|
|
500
|
+
{
|
|
501
|
+
barLabel: (n) => Number(n.value) > 0 ? `$${n.value}` : null,
|
|
502
|
+
borderRadius: 10
|
|
503
|
+
}
|
|
504
|
+
),
|
|
505
|
+
/* @__PURE__ */ t(
|
|
506
|
+
be,
|
|
507
|
+
{
|
|
508
|
+
disableLine: !ne,
|
|
509
|
+
disableTicks: !re,
|
|
510
|
+
slotProps: r ? {
|
|
511
|
+
axisLine: {
|
|
512
|
+
style: {
|
|
513
|
+
stroke: r
|
|
514
|
+
}
|
|
515
|
+
},
|
|
516
|
+
axisTick: {
|
|
517
|
+
style: {
|
|
518
|
+
stroke: r
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
} : {},
|
|
522
|
+
sx: { ...b }
|
|
523
|
+
}
|
|
524
|
+
),
|
|
525
|
+
/* @__PURE__ */ t(
|
|
526
|
+
ke,
|
|
527
|
+
{
|
|
528
|
+
disableLine: !ae,
|
|
529
|
+
disableTicks: !ie,
|
|
530
|
+
slotProps: r ? {
|
|
531
|
+
axisLine: {
|
|
532
|
+
style: {
|
|
533
|
+
stroke: r
|
|
534
|
+
}
|
|
535
|
+
},
|
|
536
|
+
axisTick: {
|
|
537
|
+
style: {
|
|
538
|
+
stroke: r
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
} : {},
|
|
542
|
+
sx: { ...x }
|
|
543
|
+
}
|
|
544
|
+
),
|
|
545
|
+
K && /* @__PURE__ */ t(Me, { x: "line" }),
|
|
546
|
+
te && /* @__PURE__ */ t(
|
|
547
|
+
$e,
|
|
548
|
+
{
|
|
549
|
+
customLabels: f,
|
|
550
|
+
labels: D,
|
|
551
|
+
valueFormatterString: k
|
|
552
|
+
}
|
|
553
|
+
)
|
|
554
|
+
]
|
|
555
|
+
}
|
|
556
|
+
),
|
|
557
|
+
Z && /* @__PURE__ */ t(
|
|
558
|
+
Be,
|
|
559
|
+
{
|
|
560
|
+
average: H ? G : void 0,
|
|
561
|
+
customLegendBoxSx: i,
|
|
562
|
+
customLegendVariant: m,
|
|
563
|
+
labels: D,
|
|
564
|
+
series: N,
|
|
565
|
+
style: {
|
|
566
|
+
position: "absolute",
|
|
567
|
+
top: 16,
|
|
568
|
+
left: 16,
|
|
569
|
+
...c
|
|
570
|
+
},
|
|
571
|
+
title: oe,
|
|
572
|
+
valueFormatterString: k
|
|
573
|
+
}
|
|
574
|
+
)
|
|
575
|
+
]
|
|
576
|
+
}
|
|
577
|
+
);
|
|
578
|
+
};
|
|
579
|
+
export {
|
|
580
|
+
Qe as L
|
|
581
|
+
};
|
|
@@ -6,10 +6,10 @@ import C from "@mui/material/ListItemButton";
|
|
|
6
6
|
import I from "@mui/material/ListItemText";
|
|
7
7
|
import L from "@mui/material/Stack";
|
|
8
8
|
import { ChevronRight as g } from "@mxenabled/mx-icons";
|
|
9
|
-
import { Text as
|
|
10
|
-
import {
|
|
11
|
-
import { u as P } from "./hooks-
|
|
12
|
-
const
|
|
9
|
+
import { Text as a } from "@mxenabled/mxui";
|
|
10
|
+
import { D as j } from "./Dialog-BPTr3qHE.mjs";
|
|
11
|
+
import { u as P } from "./hooks-C41HAxM5.mjs";
|
|
12
|
+
const q = v(
|
|
13
13
|
({
|
|
14
14
|
children: n,
|
|
15
15
|
isDisabled: i = !1,
|
|
@@ -21,7 +21,7 @@ const D = v(
|
|
|
21
21
|
secondaryText: y,
|
|
22
22
|
zeroStateText: o
|
|
23
23
|
}) => {
|
|
24
|
-
const { common:
|
|
24
|
+
const { common: m } = P(), [d, t] = b.useState(!1), h = () => {
|
|
25
25
|
t(!1), c?.();
|
|
26
26
|
}, u = () => {
|
|
27
27
|
t(!1), l();
|
|
@@ -32,9 +32,9 @@ const D = v(
|
|
|
32
32
|
I,
|
|
33
33
|
{
|
|
34
34
|
primary: /* @__PURE__ */ e(L, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
|
|
35
|
-
/* @__PURE__ */ r(
|
|
35
|
+
/* @__PURE__ */ r(a, { variant: "body1", children: f }),
|
|
36
36
|
/* @__PURE__ */ r(
|
|
37
|
-
|
|
37
|
+
a,
|
|
38
38
|
{
|
|
39
39
|
bold: !0,
|
|
40
40
|
color: o ? "primary.main" : "text.primary",
|
|
@@ -52,12 +52,12 @@ const D = v(
|
|
|
52
52
|
/* @__PURE__ */ r(
|
|
53
53
|
j,
|
|
54
54
|
{
|
|
55
|
-
copy: { title: p, close_aria:
|
|
55
|
+
copy: { title: p, close_aria: m.close_aria },
|
|
56
56
|
disablePrimaryButton: s,
|
|
57
57
|
isOpen: d,
|
|
58
58
|
onClose: h,
|
|
59
59
|
onPrimaryAction: u,
|
|
60
|
-
primaryText:
|
|
60
|
+
primaryText: m.save_button,
|
|
61
61
|
children: n
|
|
62
62
|
}
|
|
63
63
|
)
|
|
@@ -65,5 +65,5 @@ const D = v(
|
|
|
65
65
|
}
|
|
66
66
|
);
|
|
67
67
|
export {
|
|
68
|
-
|
|
68
|
+
q as L
|
|
69
69
|
};
|