@mx-cartographer/experiences 7.1.3-alpha.mm1 → 7.1.4-ram1-alpha-finstrong-credit-score-graph-check
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 +13 -0
- package/dist/{Account-DKy2na__.mjs → Account-CpRTVIHg.mjs} +1 -1
- package/dist/{AccountDetailsContent-CCOCsdoL.mjs → AccountDetailsContent-6aPMU6Hp.mjs} +10 -10
- package/dist/{AccountDetailsHeader-Ca9SPAjA.mjs → AccountDetailsHeader-BkUZYoV8.mjs} +8 -8
- package/dist/{AccountFields-DDAr5SEq.mjs → AccountFields-DOLjKu5l.mjs} +5 -5
- package/dist/{AccountListItem-CMes1Q7Z.mjs → AccountListItem-CTT5m4qx.mjs} +4 -4
- package/dist/{AccountStore-DYOG9MYj.mjs → AccountStore-DTfpr3h0.mjs} +60 -41
- package/dist/{Accounts-BNvFndCa.mjs → Accounts-D0BmvNxn.mjs} +1 -1
- package/dist/{BudgetUtil-B2ZXyw-g.mjs → BudgetUtil-D2Jcp-E-.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-DomNyubP.mjs} +3 -3
- package/dist/{CategoryStore-BCcpI3oJ.mjs → CategoryStore-C1IfDPCE.mjs} +1 -1
- package/dist/{CategoryUtil-BR3H5i6n.mjs → CategoryUtil-DUM8NuGO.mjs} +1 -1
- package/dist/{ConnectDrawer-CHG5Lv_B.mjs → ConnectDrawer--gJHyp-S.mjs} +9 -9
- package/dist/{ConnectionsDrawer-BeB6ab8V.mjs → ConnectionsDrawer-DabiwV9L.mjs} +3 -3
- package/dist/{CurrencyInput-CsCy7uaS.mjs → CurrencyInput-CC5cwVit.mjs} +1 -1
- package/dist/{DateUtil-BcuH7ErC.mjs → DateUtil-CBdcsyuk.mjs} +3 -3
- package/dist/{DebtsStore-BblTVTMD.mjs → DebtsStore-9aR2sTJQ.mjs} +1 -1
- package/dist/{Dialog-CWW597AF.mjs → Dialog-BPTr3qHE.mjs} +2 -2
- package/dist/Drawer-BEtCk82g.mjs +163 -0
- package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-Um-CDa4C.mjs} +3 -3
- package/dist/FinstrongStore-CC4SrBjA.mjs +436 -0
- package/dist/{GoalStore-CSsU4LR2.mjs → GoalStore-CiBKZvTg.mjs} +3 -3
- package/dist/{Help-B6dIcujh.mjs → Help-BZ8pIkkR.mjs} +2 -2
- package/dist/LineChart-CE3oLBQ0.mjs +566 -0
- package/dist/{ListItemAction-DHa3KJPs.mjs → ListItemAction-DGaxy7oz.mjs} +10 -10
- package/dist/{ManageIncome-DqG75uQd.mjs → ManageIncome-BaNgfwr5.mjs} +63 -61
- package/dist/{MicroWidgetContainer-DpeqN9n3.mjs → MicroWidgetContainer-C3iV1FBR.mjs} +1 -1
- package/dist/{MiniWidgetContainer-D0gfmbaF.mjs → MiniWidgetContainer-LtXXgZ6H.mjs} +1 -1
- package/dist/{NetWorthStore-BbA7H83o.mjs → NetWorthStore-MnpP5KEc.mjs} +2 -2
- package/dist/{NotificationSettings-BRm_EJZV.mjs → NotificationSettings-Ckx8tgQj.mjs} +5 -5
- package/dist/{OriginalBalanceAction-CAaVbVMO.mjs → OriginalBalanceAction-CGZDUsCc.mjs} +3 -3
- package/dist/{RecurringSettings-B9l_Axnd.mjs → RecurringSettings-DE4T4yQy.mjs} +4 -4
- package/dist/{RecurringTransactions-ej39mgA6.mjs → RecurringTransactions-CngsRZ3K.mjs} +45 -44
- package/dist/{RecurringTransactionsStore-DrzS1LmF.mjs → RecurringTransactionsStore-C4RVULF8.mjs} +1 -1
- package/dist/{SpendingData-D5vsfYKo.mjs → SpendingData-BuJ03S9d.mjs} +16 -16
- package/dist/SpendingLegend-D24CEkL3.mjs +170 -0
- package/dist/{TransactionDetails-DPvvi4Iu.mjs → TransactionDetails-DRlrltGq.mjs} +11 -8
- package/dist/{TransactionStore-CBrJOY0H.mjs → TransactionStore-D8MKYDMb.mjs} +3 -3
- package/dist/{TrendsStore-DCYbpXPO.mjs → TrendsStore-DL3Vuh71.mjs} +14 -14
- package/dist/{User-BQUxBeZV.mjs → User-BthIKO4w.mjs} +2 -2
- package/dist/{WidgetContainer-BMWagbIl.mjs → WidgetContainer-DJA1bxLn.mjs} +12 -12
- package/dist/accounts/components/AccountsListCompact.d.ts +10 -0
- package/dist/accounts/index.es.js +14 -14
- package/dist/accounts/stores/AccountStore.d.ts +4 -0
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/index.es.js +12 -12
- package/dist/cashflow/index.es.js +383 -389
- 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 +2 -0
- package/dist/common/components/charts/linechart/CustomMark.d.ts +2 -0
- package/dist/common/components/drawer/Drawer.d.ts +3 -0
- package/dist/common/components/drawer/Footer.d.ts +17 -0
- package/dist/common/context/GlobalDataProvider.d.ts +0 -1
- package/dist/common/context/hooks.d.ts +0 -3
- package/dist/common/context/index.d.ts +1 -1
- package/dist/common/index.es.js +57 -58
- package/dist/common/types/Finstrong.d.ts +50 -0
- package/dist/common/types/index.d.ts +1 -1
- package/dist/common/types/localization/FinstrongCopy.d.ts +57 -1
- package/dist/dashboard/index.es.js +77 -79
- package/dist/debts/index.es.js +11 -11
- package/dist/{exportTransactionsToCSV-7bVS7KXf.mjs → exportTransactionsToCSV-XqdHNe2V.mjs} +2 -2
- package/dist/finstrong/api/FinstrongApi.d.ts +5 -0
- package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +2 -1
- package/dist/finstrong/components/CreditOverTimeGraph.d.ts +1 -0
- package/dist/finstrong/components/CreditScore/CreditScoreContent.d.ts +4 -0
- package/dist/finstrong/components/CreditScore/CreditScoreHeader.d.ts +4 -0
- 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 +1 -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 +11 -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/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/TransactionList.d.ts +15 -0
- package/dist/finstrong/components/shared/Transactions.d.ts +11 -0
- package/dist/finstrong/constants/index.d.ts +8 -0
- package/dist/finstrong/index.es.js +2899 -1017
- package/dist/finstrong/stores/FinstrongStore.d.ts +9 -1
- package/dist/finstrong/util/finstrongUtils.d.ts +65 -1
- package/dist/goals/index.es.js +54 -54
- package/dist/help/index.es.js +3 -3
- package/dist/hooks-CBST3rkm.mjs +74 -0
- package/dist/investments/index.es.js +4 -4
- package/dist/merchants/index.es.js +1 -1
- package/dist/networth/index.es.js +34 -34
- package/dist/notifications/index.es.js +4 -4
- package/dist/recurringtransactions/index.es.js +24 -24
- package/dist/settings/index.es.js +8 -8
- package/dist/spending/index.es.js +222 -373
- package/dist/transactions/index.es.js +15 -15
- package/dist/trends/index.es.js +451 -451
- package/dist/{useAccountDisplayName-BEorBm5u.mjs → useAccountDisplayName-DH1CuQ9R.mjs} +2 -2
- package/dist/{useInsightsEnabled-DBpwEq10.mjs → useInsightsEnabled-jdvS1ppf.mjs} +1 -1
- package/package.json +1 -1
- package/dist/Drawer-kEE73B87.mjs +0 -113
- package/dist/FinstrongStore-F2c607dj.mjs +0 -101
- package/dist/LineChart-D4GI7nVh.mjs +0 -541
- package/dist/finstrong/utils/Finstrong.d.ts +0 -6
- package/dist/hooks-D6XlXHf4.mjs +0 -77
|
@@ -0,0 +1,566 @@
|
|
|
1
|
+
import { jsxs as i, Fragment as I, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import ae from "@mui/material/Box";
|
|
3
|
+
import { useTheme as X } from "@mui/material/styles";
|
|
4
|
+
import { ResponsiveChartContainer as ie, ChartsReferenceLine as oe, AreaPlot as le, LinePlot as se, MarkPlot as ce, BarPlot as de, ChartsXAxis as he, ChartsYAxis as me, ChartsAxisHighlight as ue } from "@mui/x-charts";
|
|
5
|
+
import { f as b, c as fe } from "./NumberFormatting-Buh7u8Oi.mjs";
|
|
6
|
+
import xe from "@mui/material/useMediaQuery";
|
|
7
|
+
import { observer as ge } from "mobx-react-lite";
|
|
8
|
+
import { Stack as f, Box as P, useTheme as ye } from "@mui/material";
|
|
9
|
+
import { Text as l } from "@mxenabled/mxui";
|
|
10
|
+
import { u as pe } from "./hooks-CBST3rkm.mjs";
|
|
11
|
+
import { ChartsTooltip as be } from "@mui/x-charts/ChartsTooltip";
|
|
12
|
+
const ke = (e) => {
|
|
13
|
+
const a = X(), s = e.showLabel, o = e.style, y = Number(e.x), m = Number(e.y), u = e.handlers?.onMarkClick, x = e.handlers?.onMouseEnter, c = e.handlers?.onMouseLeave, h = xe(a.breakpoints.up("sm")), r = e.valueFormatterString ? b(e.yData[e.dataIndex], e.valueFormatterString) : String(e.yData[e.dataIndex]), d = h ? a.typography.Small?.fontSize : a.typography.XSmall?.fontSize, C = d ? parseFloat(d.toString()) * 0.6 : 8, T = r.length * C + 8 + 8, D = 24, $ = y - T / 2, j = m - 30;
|
|
14
|
+
return /* @__PURE__ */ i(I, { children: [
|
|
15
|
+
s && /* @__PURE__ */ i(I, { children: [
|
|
16
|
+
e.labelBackgroundColor && /* @__PURE__ */ t(
|
|
17
|
+
"rect",
|
|
18
|
+
{
|
|
19
|
+
fill: e.labelBackgroundColor,
|
|
20
|
+
height: D,
|
|
21
|
+
rx: "3",
|
|
22
|
+
width: T,
|
|
23
|
+
x: $,
|
|
24
|
+
y: j
|
|
25
|
+
}
|
|
26
|
+
),
|
|
27
|
+
/* @__PURE__ */ t(
|
|
28
|
+
"text",
|
|
29
|
+
{
|
|
30
|
+
className: "MuiLineChart-markLabel",
|
|
31
|
+
dominantBaseline: "middle",
|
|
32
|
+
fill: e.labelFontColor ? e.labelFontColor : a.palette.text.primary,
|
|
33
|
+
style: {
|
|
34
|
+
fontSize: e.labelFontSize ? e.labelFontSize : d,
|
|
35
|
+
...e.style
|
|
36
|
+
},
|
|
37
|
+
textAnchor: "middle",
|
|
38
|
+
x: y,
|
|
39
|
+
y: m - 28 + D / 2,
|
|
40
|
+
children: r
|
|
41
|
+
}
|
|
42
|
+
)
|
|
43
|
+
] }),
|
|
44
|
+
e.showMark && /* @__PURE__ */ t(
|
|
45
|
+
"path",
|
|
46
|
+
{
|
|
47
|
+
cursor: u ? "pointer" : "unset",
|
|
48
|
+
d: "M4.514,0A4.514,4.514,0,1,1,-4.514,0A4.514,4.514,0,1,1,4.514,0",
|
|
49
|
+
height: "20px",
|
|
50
|
+
onClick: (M) => {
|
|
51
|
+
u?.(M, e.dataIndex);
|
|
52
|
+
},
|
|
53
|
+
onMouseEnter: () => {
|
|
54
|
+
x?.(e.dataIndex);
|
|
55
|
+
},
|
|
56
|
+
onMouseLeave: () => {
|
|
57
|
+
c?.();
|
|
58
|
+
},
|
|
59
|
+
style: {
|
|
60
|
+
fill: o?.fill ? o.fill : a.palette.background.paper,
|
|
61
|
+
stroke: o?.stroke ? o.stroke : a.palette.primary.main,
|
|
62
|
+
strokeWidth: 2,
|
|
63
|
+
transform: `translate(${e.x}px, ${e.y}px)`,
|
|
64
|
+
transformOrigin: `${e.x}px, ${e.y}px`,
|
|
65
|
+
filter: o?.filter ? o.filter : "none"
|
|
66
|
+
},
|
|
67
|
+
width: "20px"
|
|
68
|
+
}
|
|
69
|
+
)
|
|
70
|
+
] });
|
|
71
|
+
}, Ce = (e) => /* @__PURE__ */ i(I, { children: [
|
|
72
|
+
/* @__PURE__ */ t("clipPath", { id: e.id, children: /* @__PURE__ */ t("rect", { height: e.height, width: e.width, x: "0", y: "0" }) }),
|
|
73
|
+
/* @__PURE__ */ t("g", { children: /* @__PURE__ */ t(
|
|
74
|
+
"path",
|
|
75
|
+
{
|
|
76
|
+
cursor: "unset",
|
|
77
|
+
d: e.d,
|
|
78
|
+
style: {
|
|
79
|
+
strokeWidth: 2,
|
|
80
|
+
strokeLinejoin: "round",
|
|
81
|
+
fill: "none",
|
|
82
|
+
stroke: e.lineColor ? e.lineColor : e.stroke,
|
|
83
|
+
transition: "opacity 0.2s ease-in, stroke 0.2s ease-in",
|
|
84
|
+
opacity: 1
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
) })
|
|
88
|
+
] }), Me = ({
|
|
89
|
+
label: e,
|
|
90
|
+
customLegendVariant: a
|
|
91
|
+
}) => {
|
|
92
|
+
const s = a || "Small";
|
|
93
|
+
return typeof e == "string" ? /* @__PURE__ */ t(l, { variant: s, children: e }) : typeof e == "object" && e.amount && e.label ? /* @__PURE__ */ i(I, { children: [
|
|
94
|
+
/* @__PURE__ */ t(l, { variant: s, children: e.label }),
|
|
95
|
+
/* @__PURE__ */ t(l, { bold: !0, sx: { marginLeft: 8 }, variant: s, children: b(e.amount, "0,0") })
|
|
96
|
+
] }) : null;
|
|
97
|
+
}, we = ({
|
|
98
|
+
average: e,
|
|
99
|
+
customLegendVariant: a,
|
|
100
|
+
labels: s = [],
|
|
101
|
+
series: o,
|
|
102
|
+
style: y,
|
|
103
|
+
title: m,
|
|
104
|
+
valueFormatterString: u
|
|
105
|
+
}) => {
|
|
106
|
+
const { common: x } = pe(), c = a || "Small";
|
|
107
|
+
return /* @__PURE__ */ i(f, { style: { flexDirection: "row", gap: 24, ...y }, children: [
|
|
108
|
+
o.map((h, r) => {
|
|
109
|
+
const d = s[r];
|
|
110
|
+
return d ? /* @__PURE__ */ i(
|
|
111
|
+
f,
|
|
112
|
+
{
|
|
113
|
+
style: { alignItems: "center", flexDirection: "row", flexWrap: "wrap" },
|
|
114
|
+
children: [
|
|
115
|
+
/* @__PURE__ */ t(
|
|
116
|
+
P,
|
|
117
|
+
{
|
|
118
|
+
sx: {
|
|
119
|
+
width: 10,
|
|
120
|
+
height: 10,
|
|
121
|
+
backgroundColor: h.color,
|
|
122
|
+
marginRight: 8
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
),
|
|
126
|
+
/* @__PURE__ */ t(Me, { customLegendVariant: a, label: d })
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
r
|
|
130
|
+
) : null;
|
|
131
|
+
}),
|
|
132
|
+
e && /* @__PURE__ */ i(f, { sx: { alignItems: "center", flexDirection: "row" }, children: [
|
|
133
|
+
/* @__PURE__ */ t(l, { bold: !0, sx: { marginRight: 8 }, variant: c, children: "– –" }),
|
|
134
|
+
/* @__PURE__ */ i(l, { variant: c, children: [
|
|
135
|
+
m || x.average,
|
|
136
|
+
" "
|
|
137
|
+
] }),
|
|
138
|
+
/* @__PURE__ */ t(l, { bold: !0, variant: c, children: u ? b(e, u) : e })
|
|
139
|
+
] })
|
|
140
|
+
] });
|
|
141
|
+
}, Le = ge(we);
|
|
142
|
+
function ve({
|
|
143
|
+
customLabels: e,
|
|
144
|
+
labels: a = [],
|
|
145
|
+
valueFormatterString: s = "0,0"
|
|
146
|
+
}) {
|
|
147
|
+
const o = ye();
|
|
148
|
+
return /* @__PURE__ */ t(
|
|
149
|
+
be,
|
|
150
|
+
{
|
|
151
|
+
showCrosshair: !0,
|
|
152
|
+
slots: {
|
|
153
|
+
axisContent: (y) => {
|
|
154
|
+
const { axisValue: m, dataIndex: u, series: x } = y, c = u ?? 0;
|
|
155
|
+
if (e) {
|
|
156
|
+
const h = e[c]?.[0]?.header || String(m);
|
|
157
|
+
return /* @__PURE__ */ i(
|
|
158
|
+
f,
|
|
159
|
+
{
|
|
160
|
+
sx: {
|
|
161
|
+
backgroundColor: o.palette.background.paper,
|
|
162
|
+
boxShadow: "0 2px 8px 0 rgba(0, 0, 0, 0.12)",
|
|
163
|
+
flexDirection: "column",
|
|
164
|
+
alignItems: "flex-start",
|
|
165
|
+
borderRadius: "4px",
|
|
166
|
+
width: 250,
|
|
167
|
+
gap: 8,
|
|
168
|
+
px: 16,
|
|
169
|
+
py: 12
|
|
170
|
+
},
|
|
171
|
+
children: [
|
|
172
|
+
/* @__PURE__ */ i(
|
|
173
|
+
f,
|
|
174
|
+
{
|
|
175
|
+
sx: {
|
|
176
|
+
flexDirection: "row",
|
|
177
|
+
justifyContent: "space-between",
|
|
178
|
+
alignItems: "center",
|
|
179
|
+
alignSelf: "stretch",
|
|
180
|
+
gap: 8,
|
|
181
|
+
marginTop: 4
|
|
182
|
+
},
|
|
183
|
+
children: [
|
|
184
|
+
/* @__PURE__ */ t(l, { variant: "H3", children: h }),
|
|
185
|
+
/* @__PURE__ */ t(l, { bold: !0, variant: "H3", children: b(x[0]?.data[c], s) })
|
|
186
|
+
]
|
|
187
|
+
}
|
|
188
|
+
),
|
|
189
|
+
e[c]?.some((r) => (typeof r == "string" ? 0 : r.amount) !== 0) ? e[c]?.map((r) => {
|
|
190
|
+
const d = typeof r == "string" ? r : r.label, C = typeof r == "string" ? 0 : r.amount;
|
|
191
|
+
return C === 0 ? null : /* @__PURE__ */ i(
|
|
192
|
+
f,
|
|
193
|
+
{
|
|
194
|
+
sx: {
|
|
195
|
+
flexDirection: "row",
|
|
196
|
+
justifyContent: "space-between",
|
|
197
|
+
alignItems: "center",
|
|
198
|
+
alignSelf: "stretch",
|
|
199
|
+
gap: 8,
|
|
200
|
+
marginTop: 4
|
|
201
|
+
},
|
|
202
|
+
children: [
|
|
203
|
+
/* @__PURE__ */ i(
|
|
204
|
+
f,
|
|
205
|
+
{
|
|
206
|
+
sx: {
|
|
207
|
+
flexDirection: "row",
|
|
208
|
+
alignItems: "center",
|
|
209
|
+
gap: 8,
|
|
210
|
+
flex: 1,
|
|
211
|
+
minWidth: 0
|
|
212
|
+
},
|
|
213
|
+
children: [
|
|
214
|
+
/* @__PURE__ */ t(
|
|
215
|
+
P,
|
|
216
|
+
{
|
|
217
|
+
sx: {
|
|
218
|
+
width: "12px",
|
|
219
|
+
height: "12px",
|
|
220
|
+
backgroundColor: x[0]?.color,
|
|
221
|
+
borderRadius: "4px"
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
),
|
|
225
|
+
/* @__PURE__ */ t(l, { variant: "Body", children: d })
|
|
226
|
+
]
|
|
227
|
+
}
|
|
228
|
+
),
|
|
229
|
+
/* @__PURE__ */ t(l, { bold: !0, variant: "Body", children: b(Math.abs(C), s) })
|
|
230
|
+
]
|
|
231
|
+
},
|
|
232
|
+
d
|
|
233
|
+
);
|
|
234
|
+
}) : /* @__PURE__ */ t(l, { variant: "Body", children: "No data" })
|
|
235
|
+
]
|
|
236
|
+
}
|
|
237
|
+
);
|
|
238
|
+
}
|
|
239
|
+
return /* @__PURE__ */ i(
|
|
240
|
+
f,
|
|
241
|
+
{
|
|
242
|
+
sx: {
|
|
243
|
+
backgroundColor: o.palette.background.paper,
|
|
244
|
+
boxShadow: "0 2px 8px 0 rgba(0, 0, 0, 0.12)",
|
|
245
|
+
flexDirection: "column",
|
|
246
|
+
alignItems: "flex-start",
|
|
247
|
+
borderRadius: "4px",
|
|
248
|
+
width: 225,
|
|
249
|
+
gap: 8,
|
|
250
|
+
px: 16,
|
|
251
|
+
py: 12
|
|
252
|
+
},
|
|
253
|
+
children: [
|
|
254
|
+
/* @__PURE__ */ t(l, { variant: "H3", children: String(m) }),
|
|
255
|
+
x.map((h, r) => /* @__PURE__ */ i(
|
|
256
|
+
f,
|
|
257
|
+
{
|
|
258
|
+
sx: {
|
|
259
|
+
flexDirection: "row",
|
|
260
|
+
justifyContent: "space-between",
|
|
261
|
+
alignItems: "center",
|
|
262
|
+
alignSelf: "stretch",
|
|
263
|
+
gap: 8,
|
|
264
|
+
marginTop: 4
|
|
265
|
+
},
|
|
266
|
+
children: [
|
|
267
|
+
/* @__PURE__ */ i(f, { sx: { flexDirection: "row", alignItems: "center", gap: 8 }, children: [
|
|
268
|
+
/* @__PURE__ */ t(
|
|
269
|
+
P,
|
|
270
|
+
{
|
|
271
|
+
sx: {
|
|
272
|
+
width: "12px",
|
|
273
|
+
height: "12px",
|
|
274
|
+
backgroundColor: h.color,
|
|
275
|
+
borderRadius: "4px"
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
),
|
|
279
|
+
/* @__PURE__ */ t(l, { variant: "Body", children: typeof a[r] == "string" ? a[r] : a[r]?.label })
|
|
280
|
+
] }),
|
|
281
|
+
/* @__PURE__ */ t(l, { bold: !0, variant: "Body", children: b(h.data[c], s) })
|
|
282
|
+
]
|
|
283
|
+
},
|
|
284
|
+
h.id
|
|
285
|
+
))
|
|
286
|
+
]
|
|
287
|
+
}
|
|
288
|
+
);
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
trigger: "axis"
|
|
292
|
+
}
|
|
293
|
+
);
|
|
294
|
+
}
|
|
295
|
+
const Pe = ({
|
|
296
|
+
areaColor: e,
|
|
297
|
+
axisColor: a,
|
|
298
|
+
baseline: s = "max",
|
|
299
|
+
chartFor: o,
|
|
300
|
+
chartXaxisSx: y,
|
|
301
|
+
chartYaxisSx: m,
|
|
302
|
+
colors: u,
|
|
303
|
+
curveType: x = "linear",
|
|
304
|
+
customLegendVariant: c,
|
|
305
|
+
customTooltipLabels: h,
|
|
306
|
+
datasets: r,
|
|
307
|
+
height: d,
|
|
308
|
+
isGraphClippingXAxis: C = !1,
|
|
309
|
+
labels: W,
|
|
310
|
+
labelBackgroundColor: B,
|
|
311
|
+
labelFontColor: O,
|
|
312
|
+
labelFontSize: T,
|
|
313
|
+
margin: D,
|
|
314
|
+
markHandlers: $,
|
|
315
|
+
markStyles: j,
|
|
316
|
+
onItemClick: M,
|
|
317
|
+
showArea: E = !1,
|
|
318
|
+
showAverage: H = !1,
|
|
319
|
+
showAxisHighlight: Y = !1,
|
|
320
|
+
showBars: z = !1,
|
|
321
|
+
showLegend: q = !1,
|
|
322
|
+
showMarkLabel: Q = !1,
|
|
323
|
+
showTooltip: U = !1,
|
|
324
|
+
showXAxis: V = !1,
|
|
325
|
+
showXAxisTicks: F = !1,
|
|
326
|
+
showYAxis: J = !1,
|
|
327
|
+
showYAxisTicks: K = !1,
|
|
328
|
+
title: Z,
|
|
329
|
+
useCustomMark: _ = !1,
|
|
330
|
+
valueFormatterString: k,
|
|
331
|
+
width: ee
|
|
332
|
+
}) => {
|
|
333
|
+
const g = X(), te = r.flat().map((n) => n.x), w = r.flat().map((n) => n.y), G = Math.round(w.reduce((n, S) => S + n, 0) / w.length), L = Math.floor(Math.min(...w) / 100) * 100, v = Math.ceil(Math.max(...w) / 100) * 100, N = r.map((n, S) => ({
|
|
334
|
+
type: z ? "bar" : "line",
|
|
335
|
+
curve: x,
|
|
336
|
+
color: z ? g.palette.chart?.chart6 : u[S] ?? g.palette.primary.main,
|
|
337
|
+
data: n.map((p) => p.y),
|
|
338
|
+
area: E,
|
|
339
|
+
baseline: s,
|
|
340
|
+
showMark: !0,
|
|
341
|
+
valueFormatter: (p) => k ? b(p || 0, k) : String(p)
|
|
342
|
+
})), ne = {
|
|
343
|
+
...{
|
|
344
|
+
top: 60,
|
|
345
|
+
right: 35,
|
|
346
|
+
bottom: 50,
|
|
347
|
+
left: 50
|
|
348
|
+
},
|
|
349
|
+
...D
|
|
350
|
+
};
|
|
351
|
+
let R = o === "creditOverTime" ? 300 : L, A = v;
|
|
352
|
+
if (o === "networthChart") {
|
|
353
|
+
const n = v - L, S = n < v * 0.05 ? 0.25 : 0.2, p = Math.max(n * S, v * 0.015);
|
|
354
|
+
R = L - p < 0 ? L : L - p, A = v + p;
|
|
355
|
+
}
|
|
356
|
+
const re = () => {
|
|
357
|
+
if (o === "creditOverTime")
|
|
358
|
+
return [300, 450, 600, 725, 850];
|
|
359
|
+
if (o === "networthChart")
|
|
360
|
+
return fe(R, A, 5);
|
|
361
|
+
};
|
|
362
|
+
return /* @__PURE__ */ i(
|
|
363
|
+
ae,
|
|
364
|
+
{
|
|
365
|
+
sx: {
|
|
366
|
+
position: "relative",
|
|
367
|
+
touchAction: "pan-y",
|
|
368
|
+
// Allow vertical scrolling
|
|
369
|
+
"& svg": {
|
|
370
|
+
touchAction: "pan-y",
|
|
371
|
+
// Allow vertical scrolling on SVG
|
|
372
|
+
userSelect: "none"
|
|
373
|
+
// Prevent text selection
|
|
374
|
+
},
|
|
375
|
+
"& .recharts-wrapper": {
|
|
376
|
+
touchAction: "pan-y"
|
|
377
|
+
// For Recharts library specifically
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
children: [
|
|
381
|
+
/* @__PURE__ */ i(
|
|
382
|
+
ie,
|
|
383
|
+
{
|
|
384
|
+
height: d,
|
|
385
|
+
margin: ne,
|
|
386
|
+
series: N,
|
|
387
|
+
sx: {
|
|
388
|
+
p: 4,
|
|
389
|
+
"& .MuiBarLabel-root": {
|
|
390
|
+
fontSize: 10,
|
|
391
|
+
fontWeight: 600
|
|
392
|
+
},
|
|
393
|
+
"& .MuiAreaElement-root": {
|
|
394
|
+
opacity: 0.15
|
|
395
|
+
},
|
|
396
|
+
"& .MuiChartsAxis-tickLabel > tspan": {
|
|
397
|
+
fontFamily: g.typography.Small.fontFamily
|
|
398
|
+
},
|
|
399
|
+
"& .MuiLineChart-markLabel": {
|
|
400
|
+
fontFamily: g.typography.Small.fontFamily
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
width: ee,
|
|
404
|
+
xAxis: [{ data: te, scaleType: z ? "band" : "point" }],
|
|
405
|
+
yAxis: [
|
|
406
|
+
{
|
|
407
|
+
tickInterval: re(),
|
|
408
|
+
min: C ? -22 : R,
|
|
409
|
+
max: A || 100,
|
|
410
|
+
colorMap: E && N.length < 2 ? {
|
|
411
|
+
type: "continuous",
|
|
412
|
+
min: R,
|
|
413
|
+
max: A,
|
|
414
|
+
color: [
|
|
415
|
+
g.palette.background.paper,
|
|
416
|
+
u[0] ?? g.palette.primary.main
|
|
417
|
+
]
|
|
418
|
+
} : void 0,
|
|
419
|
+
valueFormatter: (n) => k ? b(n, k) : String(n)
|
|
420
|
+
}
|
|
421
|
+
],
|
|
422
|
+
children: [
|
|
423
|
+
H && /* @__PURE__ */ t(
|
|
424
|
+
oe,
|
|
425
|
+
{
|
|
426
|
+
lineStyle: {
|
|
427
|
+
stroke: B ? g.palette.neutral.main : g.palette.neutral.dark,
|
|
428
|
+
strokeDasharray: "10, 8",
|
|
429
|
+
strokeWidth: 2
|
|
430
|
+
},
|
|
431
|
+
y: G
|
|
432
|
+
}
|
|
433
|
+
),
|
|
434
|
+
/* @__PURE__ */ t(
|
|
435
|
+
le,
|
|
436
|
+
{
|
|
437
|
+
onItemClick: M,
|
|
438
|
+
...o === "creditOverTime" && {
|
|
439
|
+
slots: {
|
|
440
|
+
area: (n) => /* @__PURE__ */ i("g", { children: [
|
|
441
|
+
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ i("linearGradient", { id: "customGradient", x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
442
|
+
/* @__PURE__ */ t("stop", { offset: "0%", stopColor: e }),
|
|
443
|
+
/* @__PURE__ */ t("stop", { offset: "100%", stopColor: e, stopOpacity: 0.02 })
|
|
444
|
+
] }) }),
|
|
445
|
+
/* @__PURE__ */ t("path", { ...n, fill: "url(#customGradient)" })
|
|
446
|
+
] })
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
),
|
|
451
|
+
/* @__PURE__ */ t(
|
|
452
|
+
se,
|
|
453
|
+
{
|
|
454
|
+
onItemClick: M,
|
|
455
|
+
slots: {
|
|
456
|
+
line: (n) => /* @__PURE__ */ t(
|
|
457
|
+
Ce,
|
|
458
|
+
{
|
|
459
|
+
...n,
|
|
460
|
+
lineColor: n.ownerState.color ?? g.palette.primary.main
|
|
461
|
+
}
|
|
462
|
+
)
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
),
|
|
466
|
+
/* @__PURE__ */ t(
|
|
467
|
+
ce,
|
|
468
|
+
{
|
|
469
|
+
onItemClick: M,
|
|
470
|
+
slots: _ ? {
|
|
471
|
+
mark: (n) => /* @__PURE__ */ t(
|
|
472
|
+
ke,
|
|
473
|
+
{
|
|
474
|
+
handlers: $,
|
|
475
|
+
labelBackgroundColor: B,
|
|
476
|
+
labelFontColor: O,
|
|
477
|
+
labelFontSize: T,
|
|
478
|
+
showLabel: Q,
|
|
479
|
+
showMark: o !== "creditOverTime" || n.dataIndex === r[0].length - 1,
|
|
480
|
+
style: j?.(n.dataIndex) ?? {},
|
|
481
|
+
valueFormatterString: k,
|
|
482
|
+
yData: w,
|
|
483
|
+
...n
|
|
484
|
+
}
|
|
485
|
+
)
|
|
486
|
+
} : void 0
|
|
487
|
+
}
|
|
488
|
+
),
|
|
489
|
+
/* @__PURE__ */ t(
|
|
490
|
+
de,
|
|
491
|
+
{
|
|
492
|
+
barLabel: (n) => Number(n.value) > 0 ? `$${n.value}` : null,
|
|
493
|
+
borderRadius: 10
|
|
494
|
+
}
|
|
495
|
+
),
|
|
496
|
+
/* @__PURE__ */ t(
|
|
497
|
+
he,
|
|
498
|
+
{
|
|
499
|
+
disableLine: !V,
|
|
500
|
+
disableTicks: !F,
|
|
501
|
+
slotProps: a ? {
|
|
502
|
+
axisLine: {
|
|
503
|
+
style: {
|
|
504
|
+
stroke: a
|
|
505
|
+
}
|
|
506
|
+
},
|
|
507
|
+
axisTick: {
|
|
508
|
+
style: {
|
|
509
|
+
stroke: a
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
} : {},
|
|
513
|
+
sx: { ...y }
|
|
514
|
+
}
|
|
515
|
+
),
|
|
516
|
+
/* @__PURE__ */ t(
|
|
517
|
+
me,
|
|
518
|
+
{
|
|
519
|
+
disableLine: !J,
|
|
520
|
+
disableTicks: !K,
|
|
521
|
+
slotProps: a ? {
|
|
522
|
+
axisLine: {
|
|
523
|
+
style: {
|
|
524
|
+
stroke: a
|
|
525
|
+
}
|
|
526
|
+
},
|
|
527
|
+
axisTick: {
|
|
528
|
+
style: {
|
|
529
|
+
stroke: a
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
} : {},
|
|
533
|
+
sx: { ...m }
|
|
534
|
+
}
|
|
535
|
+
),
|
|
536
|
+
Y && /* @__PURE__ */ t(ue, { x: "line" }),
|
|
537
|
+
U && /* @__PURE__ */ t(
|
|
538
|
+
ve,
|
|
539
|
+
{
|
|
540
|
+
customLabels: h,
|
|
541
|
+
labels: W,
|
|
542
|
+
valueFormatterString: k
|
|
543
|
+
}
|
|
544
|
+
)
|
|
545
|
+
]
|
|
546
|
+
}
|
|
547
|
+
),
|
|
548
|
+
q && /* @__PURE__ */ t(
|
|
549
|
+
Le,
|
|
550
|
+
{
|
|
551
|
+
average: H ? G : void 0,
|
|
552
|
+
customLegendVariant: c,
|
|
553
|
+
labels: W,
|
|
554
|
+
series: N,
|
|
555
|
+
style: { position: "absolute", top: 16, left: 16 },
|
|
556
|
+
title: Z,
|
|
557
|
+
valueFormatterString: k
|
|
558
|
+
}
|
|
559
|
+
)
|
|
560
|
+
]
|
|
561
|
+
}
|
|
562
|
+
);
|
|
563
|
+
};
|
|
564
|
+
export {
|
|
565
|
+
Pe as L
|
|
566
|
+
};
|
|
@@ -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-CBST3rkm.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
|
};
|