@mx-cartographer/experiences 7.2.9-alpha.san4 → 7.2.10
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-CBQnFO6w.mjs → Account-B-CuHOYf.mjs} +1 -1
- package/dist/{AccountDetailsContent-CmdOOZw1.mjs → AccountDetailsContent-DfzPOeMI.mjs} +10 -10
- package/dist/{AccountDetailsHeader-CaIoP_2Q.mjs → AccountDetailsHeader-vcy67tuH.mjs} +8 -8
- package/dist/{AccountFields-CLbLAhLf.mjs → AccountFields-cUP-9Hm6.mjs} +5 -5
- package/dist/{AccountListItem-CPm3572e.mjs → AccountListItem-DChcf3SN.mjs} +4 -4
- package/dist/{AccountStore-DttEGFeu.mjs → AccountStore-D6KiXA1B.mjs} +29 -40
- package/dist/{Accounts-B5Yr0e_o.mjs → Accounts-IeEtQjzA.mjs} +1 -1
- package/dist/{BudgetUtil-wjoNuj7B.mjs → BudgetUtil-B2ZXyw-g.mjs} +1 -1
- package/dist/{CategorySelectorDrawer-ZO9N26Kx.mjs → CategorySelectorDrawer-DUe4lH5-.mjs} +3 -3
- package/dist/{CategoryStore-C1IfDPCE.mjs → CategoryStore-BCcpI3oJ.mjs} +1 -1
- package/dist/{CategoryUtil-DUM8NuGO.mjs → CategoryUtil-BR3H5i6n.mjs} +1 -1
- package/dist/{ConnectDrawer-FyY0AWYQ.mjs → ConnectDrawer-DaFRU5st.mjs} +2 -2
- package/dist/{ConnectionsDrawer-Cd_rztVC.mjs → ConnectionsDrawer-DHJ7qdWL.mjs} +3 -3
- package/dist/{CurrencyInput-CBOkNlNP.mjs → CurrencyInput-CsCy7uaS.mjs} +1 -1
- package/dist/{DateUtil-CBdcsyuk.mjs → DateUtil-BcuH7ErC.mjs} +3 -3
- package/dist/{DebtsStore-DB5U2WMC.mjs → DebtsStore-z3VARSO6.mjs} +1 -1
- package/dist/{Dialog-BPTr3qHE.mjs → Dialog-CWW597AF.mjs} +2 -2
- package/dist/Drawer-kEE73B87.mjs +113 -0
- package/dist/{ExportCsvAction-DlGZfm4y.mjs → ExportCsvAction-sX8Rg4Ov.mjs} +3 -3
- package/dist/FinstrongStore-F2c607dj.mjs +101 -0
- package/dist/{GoalStore-deVLYr7n.mjs → GoalStore-TD0BfzWX.mjs} +3 -3
- package/dist/{Help-BnPXM_N2.mjs → Help-B6dIcujh.mjs} +2 -2
- package/dist/{LineChart-Ct9DNmhS.mjs → LineChart-D4GI7nVh.mjs} +181 -209
- package/dist/{ListItemAction-uobBrm_a.mjs → ListItemAction-DHa3KJPs.mjs} +10 -10
- package/dist/{ManageIncome-DB_lKOIy.mjs → ManageIncome-D3n1EWxe.mjs} +61 -63
- package/dist/{MicroWidgetContainer-DEiRnYVa.mjs → MicroWidgetContainer-DpeqN9n3.mjs} +1 -1
- package/dist/{MiniWidgetContainer-CmXpTylX.mjs → MiniWidgetContainer-D0gfmbaF.mjs} +1 -1
- package/dist/{NetWorthStore-CUz0bwVm.mjs → NetWorthStore-B_1oulrt.mjs} +2 -2
- package/dist/{NotificationSettings-Bfb3T7nN.mjs → NotificationSettings-BRm_EJZV.mjs} +5 -5
- package/dist/{OriginalBalanceAction-BLiU-7Lf.mjs → OriginalBalanceAction-CAaVbVMO.mjs} +3 -3
- package/dist/{RecurringSettings-dJJxtLyU.mjs → RecurringSettings-C28GrQcP.mjs} +4 -4
- package/dist/{RecurringTransactions-CngsRZ3K.mjs → RecurringTransactions-ej39mgA6.mjs} +44 -45
- package/dist/{RecurringTransactionsStore-C4RVULF8.mjs → RecurringTransactionsStore-DrzS1LmF.mjs} +1 -1
- package/dist/{SpendingData-BuJ03S9d.mjs → SpendingData-D5vsfYKo.mjs} +16 -16
- package/dist/{TransactionDetails-CJvE4LNC.mjs → TransactionDetails-BWffqew4.mjs} +8 -11
- package/dist/{TransactionStore-DvOEbOzL.mjs → TransactionStore-DxPLdF3B.mjs} +3 -3
- package/dist/{TrendsStore-BVNxGsE4.mjs → TrendsStore-DCYbpXPO.mjs} +14 -14
- package/dist/{User-wXzDI4M8.mjs → User-BQUxBeZV.mjs} +2 -2
- package/dist/{WidgetContainer-GoNq8wwm.mjs → WidgetContainer-C88Ecu2W.mjs} +4 -4
- package/dist/accounts/index.es.js +14 -14
- package/dist/accounts/stores/AccountStore.d.ts +0 -2
- package/dist/analytics/index.es.js +2 -2
- package/dist/budgets/index.es.js +12 -12
- package/dist/cashflow/index.es.js +44 -44
- package/dist/categories/index.es.js +2 -2
- package/dist/common/components/Select.d.ts +2 -4
- package/dist/common/components/charts/LineChart.d.ts +2 -8
- package/dist/common/components/charts/linechart/CustomMark.d.ts +0 -4
- package/dist/common/components/drawer/Drawer.d.ts +0 -3
- package/dist/common/hooks/useAriaLive.d.ts +8 -0
- package/dist/common/index.es.js +33 -33
- package/dist/common/types/Finstrong.d.ts +0 -50
- package/dist/common/types/index.d.ts +1 -1
- package/dist/common/types/localization/FinstrongCopy.d.ts +1 -58
- package/dist/common/types/localization/TransactionsCopy.d.ts +1 -0
- package/dist/dashboard/index.es.js +2 -2
- package/dist/debts/index.es.js +11 -11
- package/dist/{exportTransactionsToCSV-hrNpJ77n.mjs → exportTransactionsToCSV-7bVS7KXf.mjs} +2 -2
- package/dist/finstrong/api/FinstrongApi.d.ts +0 -5
- package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +1 -3
- package/dist/finstrong/components/KeyIndicatorsBorrowTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsDrawer.d.ts +1 -4
- 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 +3 -4
- package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +2 -2
- package/dist/finstrong/index.es.js +1055 -3130
- package/dist/finstrong/stores/FinstrongStore.d.ts +1 -9
- package/dist/finstrong/util/finstrongUtils.d.ts +1 -58
- package/dist/finstrong/utils/Finstrong.d.ts +6 -0
- package/dist/goals/index.es.js +14 -14
- package/dist/help/index.es.js +3 -3
- package/dist/{hooks-C41HAxM5.mjs → hooks-D6XlXHf4.mjs} +3 -3
- 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 +13 -13
- package/dist/settings/index.es.js +8 -8
- package/dist/spending/index.es.js +373 -222
- package/dist/transactions/index.es.js +307 -271
- package/dist/trends/index.es.js +94 -94
- package/dist/{useAccountDisplayName-B5O6hQ1B.mjs → useAccountDisplayName-BcRqfar8.mjs} +2 -2
- package/dist/{useInsightsEnabled-CNjP5cfR.mjs → useInsightsEnabled-DBpwEq10.mjs} +1 -1
- package/package.json +1 -1
- package/dist/Drawer-BEtCk82g.mjs +0 -163
- package/dist/FinstrongStore-rVhw737g.mjs +0 -432
- package/dist/SpendingLegend-squvjEhu.mjs +0 -170
- package/dist/accounts/components/AccountsListCompact.d.ts +0 -10
- package/dist/common/components/drawer/Footer.d.ts +0 -17
- package/dist/finstrong/components/CreditScore/CreditScoreContent.d.ts +0 -4
- package/dist/finstrong/components/CreditScore/CreditScoreHeader.d.ts +0 -4
- package/dist/finstrong/components/HaveManageableDebt/DebtPaymentTabContent.d.ts +0 -3
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtComponent.d.ts +0 -3
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtProgressBar.d.ts +0 -4
- package/dist/finstrong/components/HaveManageableDebt/IncomeTabContent.d.ts +0 -3
- package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.d.ts +0 -10
- package/dist/finstrong/components/MaintainingEmergencySavings/EstimatedContributionCalculator.d.ts +0 -6
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsContent.d.ts +0 -4
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsSticky.d.ts +0 -4
- package/dist/finstrong/components/ProgressBar.d.ts +0 -15
- package/dist/finstrong/components/SaveEnoughToLiveOn/AvailableTabContent.d.ts +0 -3
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnDrawerContent.d.ts +0 -3
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnProgressBar.d.ts +0 -4
- package/dist/finstrong/components/SaveEnoughToLiveOn/SpendingTabContent.d.ts +0 -3
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeComponent.d.ts +0 -3
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeProgressBar.d.ts +0 -4
- package/dist/finstrong/components/StatusChip.d.ts +0 -5
- package/dist/finstrong/components/onboarding/Onboarding.d.ts +0 -2
- package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +0 -11
- package/dist/finstrong/components/onboarding/OnboardingBirthday.d.ts +0 -8
- package/dist/finstrong/components/onboarding/OnboardingCreditScore.d.ts +0 -8
- package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +0 -14
- package/dist/finstrong/components/onboarding/OnboardingStepsHeader.d.ts +0 -8
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeDrawerComponent.d.ts +0 -4
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeStickyComponent.d.ts +0 -4
- package/dist/finstrong/components/shared/Accounts.d.ts +0 -8
- package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +0 -25
- package/dist/finstrong/components/shared/DoubleBarChart.d.ts +0 -28
- package/dist/finstrong/components/shared/LineGraph.d.ts +0 -7
- package/dist/finstrong/components/shared/TotalCard.d.ts +0 -8
- package/dist/finstrong/components/shared/TransactionList.d.ts +0 -15
- package/dist/finstrong/components/shared/Transactions.d.ts +0 -11
- package/dist/finstrong/constants/index.d.ts +0 -8
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { jsxs as i, Fragment as
|
|
2
|
-
import
|
|
3
|
-
import { useTheme as
|
|
4
|
-
import { ResponsiveChartContainer as
|
|
5
|
-
import { f as b, c as
|
|
6
|
-
import
|
|
7
|
-
import { observer as
|
|
8
|
-
import { Stack as
|
|
1
|
+
import { jsxs as i, Fragment as B, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import nt from "@mui/material/Box";
|
|
3
|
+
import { useTheme as X } from "@mui/material/styles";
|
|
4
|
+
import { ResponsiveChartContainer as at, ChartsReferenceLine as rt, AreaPlot as it, LinePlot as ot, MarkPlot as lt, BarPlot as st, ChartsXAxis as ct, ChartsYAxis as dt, ChartsAxisHighlight as ht } from "@mui/x-charts";
|
|
5
|
+
import { f as b, c as mt } from "./NumberFormatting-Buh7u8Oi.mjs";
|
|
6
|
+
import ut from "@mui/material/useMediaQuery";
|
|
7
|
+
import { observer as xt } from "mobx-react-lite";
|
|
8
|
+
import { Stack as u, Box as N, useTheme as ft } from "@mui/material";
|
|
9
9
|
import { Text as l } from "@mxenabled/mxui";
|
|
10
|
-
import { u as
|
|
11
|
-
import { ChartsTooltip as
|
|
12
|
-
const
|
|
13
|
-
const r =
|
|
14
|
-
return /* @__PURE__ */ i(
|
|
15
|
-
|
|
10
|
+
import { u as gt } from "./hooks-D6XlXHf4.mjs";
|
|
11
|
+
import { ChartsTooltip as yt } from "@mui/x-charts/ChartsTooltip";
|
|
12
|
+
const pt = (t) => {
|
|
13
|
+
const r = X(), o = t.showLabel, s = t.style, y = Number(t.x), m = Number(t.y), x = t.handlers?.onMarkClick, f = t.handlers?.onMouseEnter, c = t.handlers?.onMouseLeave, d = ut(r.breakpoints.up("sm")), a = t.valueFormatterString ? b(t.yData[t.dataIndex], t.valueFormatterString) : String(t.yData[t.dataIndex]), h = d ? r.typography.Small?.fontSize : r.typography.XSmall?.fontSize, k = h ? parseFloat(h.toString()) * 0.6 : 8, D = a.length * k + 8 + 8, T = 24, $ = y - D / 2, M = m - 30;
|
|
14
|
+
return /* @__PURE__ */ i(B, { children: [
|
|
15
|
+
o && /* @__PURE__ */ i(B, { children: [
|
|
16
16
|
t.labelBackgroundColor && /* @__PURE__ */ e(
|
|
17
17
|
"rect",
|
|
18
18
|
{
|
|
19
19
|
fill: t.labelBackgroundColor,
|
|
20
|
-
height:
|
|
20
|
+
height: T,
|
|
21
21
|
rx: "3",
|
|
22
|
-
width:
|
|
23
|
-
x:
|
|
24
|
-
y:
|
|
22
|
+
width: D,
|
|
23
|
+
x: $,
|
|
24
|
+
y: M
|
|
25
25
|
}
|
|
26
26
|
),
|
|
27
27
|
/* @__PURE__ */ e(
|
|
@@ -31,44 +31,43 @@ const wt = (t) => {
|
|
|
31
31
|
dominantBaseline: "middle",
|
|
32
32
|
fill: t.labelFontColor ? t.labelFontColor : r.palette.text.primary,
|
|
33
33
|
style: {
|
|
34
|
-
fontSize: t.labelFontSize ? t.labelFontSize :
|
|
35
|
-
...k
|
|
34
|
+
fontSize: t.labelFontSize ? t.labelFontSize : h
|
|
36
35
|
},
|
|
37
36
|
textAnchor: "middle",
|
|
38
|
-
x:
|
|
39
|
-
y:
|
|
40
|
-
children:
|
|
37
|
+
x: y,
|
|
38
|
+
y: m - 28 + T / 2,
|
|
39
|
+
children: a
|
|
41
40
|
}
|
|
42
41
|
)
|
|
43
42
|
] }),
|
|
44
|
-
|
|
43
|
+
/* @__PURE__ */ e(
|
|
45
44
|
"path",
|
|
46
45
|
{
|
|
47
|
-
cursor:
|
|
46
|
+
cursor: x ? "pointer" : "unset",
|
|
48
47
|
d: "M4.514,0A4.514,4.514,0,1,1,-4.514,0A4.514,4.514,0,1,1,4.514,0",
|
|
49
48
|
height: "20px",
|
|
50
|
-
onClick: (
|
|
51
|
-
|
|
49
|
+
onClick: (R) => {
|
|
50
|
+
x?.(R, t.dataIndex);
|
|
52
51
|
},
|
|
53
52
|
onMouseEnter: () => {
|
|
54
|
-
|
|
53
|
+
f?.(t.dataIndex);
|
|
55
54
|
},
|
|
56
55
|
onMouseLeave: () => {
|
|
57
|
-
|
|
56
|
+
c?.();
|
|
58
57
|
},
|
|
59
58
|
style: {
|
|
60
|
-
fill:
|
|
61
|
-
stroke:
|
|
59
|
+
fill: s?.fill ? s.fill : r.palette.background.paper,
|
|
60
|
+
stroke: s?.stroke ? s.stroke : r.palette.primary.main,
|
|
62
61
|
strokeWidth: 2,
|
|
63
62
|
transform: `translate(${t.x}px, ${t.y}px)`,
|
|
64
63
|
transformOrigin: `${t.x}px, ${t.y}px`,
|
|
65
|
-
filter:
|
|
64
|
+
filter: s?.filter ? s.filter : "none"
|
|
66
65
|
},
|
|
67
66
|
width: "20px"
|
|
68
67
|
}
|
|
69
68
|
)
|
|
70
69
|
] });
|
|
71
|
-
},
|
|
70
|
+
}, bt = (t) => /* @__PURE__ */ i(B, { children: [
|
|
72
71
|
/* @__PURE__ */ e("clipPath", { id: t.id, children: /* @__PURE__ */ e("rect", { height: t.height, width: t.width, x: "0", y: "0" }) }),
|
|
73
72
|
/* @__PURE__ */ e("g", { children: /* @__PURE__ */ e(
|
|
74
73
|
"path",
|
|
@@ -85,35 +84,35 @@ const wt = (t) => {
|
|
|
85
84
|
}
|
|
86
85
|
}
|
|
87
86
|
) })
|
|
88
|
-
] }),
|
|
87
|
+
] }), kt = ({
|
|
89
88
|
label: t,
|
|
90
89
|
customLegendVariant: r
|
|
91
90
|
}) => {
|
|
92
|
-
const
|
|
93
|
-
return typeof t == "string" ? /* @__PURE__ */ e(l, { variant:
|
|
94
|
-
/* @__PURE__ */ e(l, { variant:
|
|
95
|
-
/* @__PURE__ */ e(l, { bold: !0, sx: { marginLeft: 8 }, variant:
|
|
91
|
+
const o = r || "Small";
|
|
92
|
+
return typeof t == "string" ? /* @__PURE__ */ e(l, { variant: o, children: t }) : typeof t == "object" && t.amount && t.label ? /* @__PURE__ */ i(B, { children: [
|
|
93
|
+
/* @__PURE__ */ e(l, { variant: o, children: t.label }),
|
|
94
|
+
/* @__PURE__ */ e(l, { bold: !0, sx: { marginLeft: 8 }, variant: o, children: b(t.amount, "0,0") })
|
|
96
95
|
] }) : null;
|
|
97
|
-
},
|
|
96
|
+
}, Ct = ({
|
|
98
97
|
average: t,
|
|
99
98
|
customLegendVariant: r,
|
|
100
|
-
labels:
|
|
101
|
-
series:
|
|
102
|
-
style:
|
|
99
|
+
labels: o = [],
|
|
100
|
+
series: s,
|
|
101
|
+
style: y,
|
|
103
102
|
title: m,
|
|
104
|
-
valueFormatterString:
|
|
103
|
+
valueFormatterString: x
|
|
105
104
|
}) => {
|
|
106
|
-
const { common: f } =
|
|
107
|
-
return /* @__PURE__ */ i(
|
|
108
|
-
|
|
109
|
-
const h =
|
|
105
|
+
const { common: f } = gt(), c = r || "Small";
|
|
106
|
+
return /* @__PURE__ */ i(u, { style: { flexDirection: "row", gap: 24, ...y }, children: [
|
|
107
|
+
s.map((d, a) => {
|
|
108
|
+
const h = o[a];
|
|
110
109
|
return h ? /* @__PURE__ */ i(
|
|
111
|
-
|
|
110
|
+
u,
|
|
112
111
|
{
|
|
113
112
|
style: { alignItems: "center", flexDirection: "row", flexWrap: "wrap" },
|
|
114
113
|
children: [
|
|
115
114
|
/* @__PURE__ */ e(
|
|
116
|
-
|
|
115
|
+
N,
|
|
117
116
|
{
|
|
118
117
|
sx: {
|
|
119
118
|
width: 10,
|
|
@@ -123,42 +122,42 @@ const wt = (t) => {
|
|
|
123
122
|
}
|
|
124
123
|
}
|
|
125
124
|
),
|
|
126
|
-
/* @__PURE__ */ e(
|
|
125
|
+
/* @__PURE__ */ e(kt, { customLegendVariant: r, label: h })
|
|
127
126
|
]
|
|
128
127
|
},
|
|
129
128
|
a
|
|
130
129
|
) : null;
|
|
131
130
|
}),
|
|
132
|
-
t && /* @__PURE__ */ i(
|
|
131
|
+
t && /* @__PURE__ */ i(u, { sx: { alignItems: "center", flexDirection: "row" }, children: [
|
|
133
132
|
/* @__PURE__ */ e(l, { bold: !0, sx: { marginRight: 8 }, variant: c, children: "– –" }),
|
|
134
133
|
/* @__PURE__ */ i(l, { variant: c, children: [
|
|
135
134
|
m || f.average,
|
|
136
135
|
" "
|
|
137
136
|
] }),
|
|
138
|
-
/* @__PURE__ */ e(l, { bold: !0, variant: c, children:
|
|
137
|
+
/* @__PURE__ */ e(l, { bold: !0, variant: c, children: x ? b(t, x) : t })
|
|
139
138
|
] })
|
|
140
139
|
] });
|
|
141
|
-
},
|
|
142
|
-
function
|
|
140
|
+
}, Mt = xt(Ct);
|
|
141
|
+
function wt({
|
|
143
142
|
customLabels: t,
|
|
144
143
|
labels: r = [],
|
|
145
|
-
valueFormatterString:
|
|
144
|
+
valueFormatterString: o = "0,0"
|
|
146
145
|
}) {
|
|
147
|
-
const
|
|
146
|
+
const s = ft();
|
|
148
147
|
return /* @__PURE__ */ e(
|
|
149
|
-
|
|
148
|
+
yt,
|
|
150
149
|
{
|
|
151
150
|
showCrosshair: !0,
|
|
152
151
|
slots: {
|
|
153
|
-
axisContent: (
|
|
154
|
-
const { axisValue: m, dataIndex:
|
|
152
|
+
axisContent: (y) => {
|
|
153
|
+
const { axisValue: m, dataIndex: x, series: f } = y, c = x ?? 0;
|
|
155
154
|
if (t) {
|
|
156
155
|
const d = t[c]?.[0]?.header || String(m);
|
|
157
156
|
return /* @__PURE__ */ i(
|
|
158
|
-
|
|
157
|
+
u,
|
|
159
158
|
{
|
|
160
159
|
sx: {
|
|
161
|
-
backgroundColor:
|
|
160
|
+
backgroundColor: s.palette.background.paper,
|
|
162
161
|
boxShadow: "0 2px 8px 0 rgba(0, 0, 0, 0.12)",
|
|
163
162
|
flexDirection: "column",
|
|
164
163
|
alignItems: "flex-start",
|
|
@@ -170,7 +169,7 @@ function Dt({
|
|
|
170
169
|
},
|
|
171
170
|
children: [
|
|
172
171
|
/* @__PURE__ */ i(
|
|
173
|
-
|
|
172
|
+
u,
|
|
174
173
|
{
|
|
175
174
|
sx: {
|
|
176
175
|
flexDirection: "row",
|
|
@@ -182,14 +181,14 @@ function Dt({
|
|
|
182
181
|
},
|
|
183
182
|
children: [
|
|
184
183
|
/* @__PURE__ */ e(l, { variant: "H3", children: d }),
|
|
185
|
-
/* @__PURE__ */ e(l, { bold: !0, variant: "H3", children: b(f[0]?.data[c],
|
|
184
|
+
/* @__PURE__ */ e(l, { bold: !0, variant: "H3", children: b(f[0]?.data[c], o) })
|
|
186
185
|
]
|
|
187
186
|
}
|
|
188
187
|
),
|
|
189
188
|
t[c]?.some((a) => (typeof a == "string" ? 0 : a.amount) !== 0) ? t[c]?.map((a) => {
|
|
190
|
-
const h = typeof a == "string" ? a : a.label,
|
|
191
|
-
return
|
|
192
|
-
|
|
189
|
+
const h = typeof a == "string" ? a : a.label, k = typeof a == "string" ? 0 : a.amount;
|
|
190
|
+
return k === 0 ? null : /* @__PURE__ */ i(
|
|
191
|
+
u,
|
|
193
192
|
{
|
|
194
193
|
sx: {
|
|
195
194
|
flexDirection: "row",
|
|
@@ -201,7 +200,7 @@ function Dt({
|
|
|
201
200
|
},
|
|
202
201
|
children: [
|
|
203
202
|
/* @__PURE__ */ i(
|
|
204
|
-
|
|
203
|
+
u,
|
|
205
204
|
{
|
|
206
205
|
sx: {
|
|
207
206
|
flexDirection: "row",
|
|
@@ -212,7 +211,7 @@ function Dt({
|
|
|
212
211
|
},
|
|
213
212
|
children: [
|
|
214
213
|
/* @__PURE__ */ e(
|
|
215
|
-
|
|
214
|
+
N,
|
|
216
215
|
{
|
|
217
216
|
sx: {
|
|
218
217
|
width: "12px",
|
|
@@ -226,7 +225,7 @@ function Dt({
|
|
|
226
225
|
]
|
|
227
226
|
}
|
|
228
227
|
),
|
|
229
|
-
/* @__PURE__ */ e(l, { bold: !0, variant: "Body", children: b(Math.abs(
|
|
228
|
+
/* @__PURE__ */ e(l, { bold: !0, variant: "Body", children: b(Math.abs(k), o) })
|
|
230
229
|
]
|
|
231
230
|
},
|
|
232
231
|
h
|
|
@@ -237,10 +236,10 @@ function Dt({
|
|
|
237
236
|
);
|
|
238
237
|
}
|
|
239
238
|
return /* @__PURE__ */ i(
|
|
240
|
-
|
|
239
|
+
u,
|
|
241
240
|
{
|
|
242
241
|
sx: {
|
|
243
|
-
backgroundColor:
|
|
242
|
+
backgroundColor: s.palette.background.paper,
|
|
244
243
|
boxShadow: "0 2px 8px 0 rgba(0, 0, 0, 0.12)",
|
|
245
244
|
flexDirection: "column",
|
|
246
245
|
alignItems: "flex-start",
|
|
@@ -253,7 +252,7 @@ function Dt({
|
|
|
253
252
|
children: [
|
|
254
253
|
/* @__PURE__ */ e(l, { variant: "H3", children: String(m) }),
|
|
255
254
|
f.map((d, a) => /* @__PURE__ */ i(
|
|
256
|
-
|
|
255
|
+
u,
|
|
257
256
|
{
|
|
258
257
|
sx: {
|
|
259
258
|
flexDirection: "row",
|
|
@@ -264,9 +263,9 @@ function Dt({
|
|
|
264
263
|
marginTop: 4
|
|
265
264
|
},
|
|
266
265
|
children: [
|
|
267
|
-
/* @__PURE__ */ i(
|
|
266
|
+
/* @__PURE__ */ i(u, { sx: { flexDirection: "row", alignItems: "center", gap: 8 }, children: [
|
|
268
267
|
/* @__PURE__ */ e(
|
|
269
|
-
|
|
268
|
+
N,
|
|
270
269
|
{
|
|
271
270
|
sx: {
|
|
272
271
|
width: "12px",
|
|
@@ -278,7 +277,7 @@ function Dt({
|
|
|
278
277
|
),
|
|
279
278
|
/* @__PURE__ */ e(l, { variant: "Body", children: typeof r[a] == "string" ? r[a] : r[a]?.label })
|
|
280
279
|
] }),
|
|
281
|
-
/* @__PURE__ */ e(l, { bold: !0, variant: "Body", children: b(d.data[c],
|
|
280
|
+
/* @__PURE__ */ e(l, { bold: !0, variant: "Body", children: b(d.data[c], o) })
|
|
282
281
|
]
|
|
283
282
|
},
|
|
284
283
|
d.id
|
|
@@ -292,78 +291,68 @@ function Dt({
|
|
|
292
291
|
}
|
|
293
292
|
);
|
|
294
293
|
}
|
|
295
|
-
const
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
baseline: s = "max",
|
|
294
|
+
const zt = ({
|
|
295
|
+
axisColor: t,
|
|
296
|
+
baseline: r = "max",
|
|
299
297
|
chartFor: o,
|
|
300
|
-
chartXaxisSx:
|
|
301
|
-
chartYaxisSx:
|
|
302
|
-
colors:
|
|
303
|
-
curveType:
|
|
304
|
-
customLegendVariant:
|
|
305
|
-
customTooltipLabels:
|
|
306
|
-
datasets:
|
|
307
|
-
height:
|
|
308
|
-
isGraphClippingXAxis:
|
|
309
|
-
labels:
|
|
310
|
-
labelBackgroundColor:
|
|
311
|
-
labelFontColor:
|
|
312
|
-
labelFontSize:
|
|
313
|
-
margin:
|
|
314
|
-
markHandlers:
|
|
315
|
-
markStyles:
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
showYAxisTicks: tt = !1,
|
|
331
|
-
title: et,
|
|
332
|
-
useCustomMark: nt = !1,
|
|
298
|
+
chartXaxisSx: s,
|
|
299
|
+
chartYaxisSx: y,
|
|
300
|
+
colors: m,
|
|
301
|
+
curveType: x = "linear",
|
|
302
|
+
customLegendVariant: f,
|
|
303
|
+
customTooltipLabels: c,
|
|
304
|
+
datasets: d,
|
|
305
|
+
height: a,
|
|
306
|
+
isGraphClippingXAxis: h = !1,
|
|
307
|
+
labels: k,
|
|
308
|
+
labelBackgroundColor: I,
|
|
309
|
+
labelFontColor: P,
|
|
310
|
+
labelFontSize: E,
|
|
311
|
+
margin: D,
|
|
312
|
+
markHandlers: T,
|
|
313
|
+
markStyles: $,
|
|
314
|
+
onItemClick: M,
|
|
315
|
+
showArea: R = !1,
|
|
316
|
+
showAverage: H = !1,
|
|
317
|
+
showAxisHighlight: Y = !1,
|
|
318
|
+
showBars: j = !1,
|
|
319
|
+
showLegend: q = !1,
|
|
320
|
+
showMarkLabel: G = !1,
|
|
321
|
+
showTooltip: O = !1,
|
|
322
|
+
showXAxis: Q = !1,
|
|
323
|
+
showXAxisTicks: U = !1,
|
|
324
|
+
showYAxis: V = !1,
|
|
325
|
+
showYAxisTicks: J = !1,
|
|
326
|
+
title: K,
|
|
327
|
+
useCustomMark: Z = !1,
|
|
333
328
|
valueFormatterString: C,
|
|
334
|
-
width:
|
|
329
|
+
width: _
|
|
335
330
|
}) => {
|
|
336
|
-
const g =
|
|
337
|
-
type:
|
|
338
|
-
curve:
|
|
339
|
-
color:
|
|
331
|
+
const g = X(), tt = d.flat().map((n) => n.x), w = d.flat().map((n) => n.y), F = Math.round(w.reduce((n, v) => v + n, 0) / w.length), L = Math.floor(Math.min(...w) / 100) * 100, S = Math.ceil(Math.max(...w) / 100) * 100, z = d.map((n, v) => ({
|
|
332
|
+
type: j ? "bar" : "line",
|
|
333
|
+
curve: x,
|
|
334
|
+
color: j ? g.palette.chart?.chart6 : m[v] ?? g.palette.primary.main,
|
|
340
335
|
data: n.map((p) => p.y),
|
|
341
|
-
area:
|
|
342
|
-
baseline:
|
|
336
|
+
area: R,
|
|
337
|
+
baseline: r,
|
|
343
338
|
showMark: !0,
|
|
344
339
|
valueFormatter: (p) => C ? b(p || 0, C) : String(p)
|
|
345
|
-
})),
|
|
340
|
+
})), et = {
|
|
346
341
|
...{
|
|
347
342
|
top: 60,
|
|
348
343
|
right: 35,
|
|
349
344
|
bottom: 50,
|
|
350
345
|
left: 50
|
|
351
346
|
},
|
|
352
|
-
...
|
|
347
|
+
...D
|
|
353
348
|
};
|
|
354
|
-
let
|
|
349
|
+
let A = L, W = S;
|
|
355
350
|
if (o === "networthChart") {
|
|
356
|
-
const n =
|
|
357
|
-
|
|
351
|
+
const n = S - L, v = n < S * 0.05 ? 0.25 : 0.2, p = Math.max(n * v, S * 0.015);
|
|
352
|
+
A = L - p < 0 ? L : L - p, W = S + p;
|
|
358
353
|
}
|
|
359
|
-
const ot = () => {
|
|
360
|
-
if (o === "creditOverTime")
|
|
361
|
-
return [300, 450, 600, 725, 850];
|
|
362
|
-
if (o === "networthChart")
|
|
363
|
-
return yt(R, A, 5);
|
|
364
|
-
};
|
|
365
354
|
return /* @__PURE__ */ i(
|
|
366
|
-
|
|
355
|
+
nt,
|
|
367
356
|
{
|
|
368
357
|
sx: {
|
|
369
358
|
position: "relative",
|
|
@@ -382,11 +371,11 @@ const Gt = ({
|
|
|
382
371
|
},
|
|
383
372
|
children: [
|
|
384
373
|
/* @__PURE__ */ i(
|
|
385
|
-
|
|
374
|
+
at,
|
|
386
375
|
{
|
|
387
|
-
height:
|
|
388
|
-
margin:
|
|
389
|
-
series:
|
|
376
|
+
height: a,
|
|
377
|
+
margin: et,
|
|
378
|
+
series: z,
|
|
390
379
|
sx: {
|
|
391
380
|
p: 4,
|
|
392
381
|
"& .MuiBarLabel-root": {
|
|
@@ -403,61 +392,45 @@ const Gt = ({
|
|
|
403
392
|
fontFamily: g.typography.Small.fontFamily
|
|
404
393
|
}
|
|
405
394
|
},
|
|
406
|
-
width:
|
|
407
|
-
xAxis: [{ data:
|
|
395
|
+
width: _,
|
|
396
|
+
xAxis: [{ data: tt, scaleType: j ? "band" : "point" }],
|
|
408
397
|
yAxis: [
|
|
409
398
|
{
|
|
410
|
-
tickInterval:
|
|
411
|
-
min:
|
|
412
|
-
max:
|
|
413
|
-
colorMap:
|
|
399
|
+
tickInterval: o === "networthChart" ? mt(A, W, 5) : void 0,
|
|
400
|
+
min: h ? -22 : A,
|
|
401
|
+
max: W || 100,
|
|
402
|
+
colorMap: R && z.length < 2 ? {
|
|
414
403
|
type: "continuous",
|
|
415
|
-
min:
|
|
416
|
-
max:
|
|
404
|
+
min: A,
|
|
405
|
+
max: W,
|
|
417
406
|
color: [
|
|
418
407
|
g.palette.background.paper,
|
|
419
|
-
|
|
408
|
+
m[0] ?? g.palette.primary.main
|
|
420
409
|
]
|
|
421
410
|
} : void 0,
|
|
422
411
|
valueFormatter: (n) => C ? b(n, C) : String(n)
|
|
423
412
|
}
|
|
424
413
|
],
|
|
425
414
|
children: [
|
|
426
|
-
|
|
427
|
-
|
|
415
|
+
H && /* @__PURE__ */ e(
|
|
416
|
+
rt,
|
|
428
417
|
{
|
|
429
418
|
lineStyle: {
|
|
430
|
-
stroke:
|
|
419
|
+
stroke: I ? g.palette.neutral.main : g.palette.neutral.dark,
|
|
431
420
|
strokeDasharray: "10, 8",
|
|
432
421
|
strokeWidth: 2
|
|
433
422
|
},
|
|
434
|
-
y:
|
|
435
|
-
}
|
|
436
|
-
),
|
|
437
|
-
/* @__PURE__ */ e(
|
|
438
|
-
dt,
|
|
439
|
-
{
|
|
440
|
-
onItemClick: z,
|
|
441
|
-
...t && {
|
|
442
|
-
slots: {
|
|
443
|
-
area: (n) => /* @__PURE__ */ i("g", { children: [
|
|
444
|
-
/* @__PURE__ */ e("defs", { children: /* @__PURE__ */ i("linearGradient", { id: "customGradient", x1: "0", x2: "0", y1: "0", y2: "1", children: [
|
|
445
|
-
/* @__PURE__ */ e("stop", { offset: "0%", stopColor: t }),
|
|
446
|
-
/* @__PURE__ */ e("stop", { offset: "100%", stopColor: t, stopOpacity: 0.02 })
|
|
447
|
-
] }) }),
|
|
448
|
-
/* @__PURE__ */ e("path", { ...n, fill: "url(#customGradient)" })
|
|
449
|
-
] })
|
|
450
|
-
}
|
|
451
|
-
}
|
|
423
|
+
y: F
|
|
452
424
|
}
|
|
453
425
|
),
|
|
426
|
+
/* @__PURE__ */ e(it, { onItemClick: M }),
|
|
454
427
|
/* @__PURE__ */ e(
|
|
455
|
-
|
|
428
|
+
ot,
|
|
456
429
|
{
|
|
457
|
-
onItemClick:
|
|
430
|
+
onItemClick: M,
|
|
458
431
|
slots: {
|
|
459
432
|
line: (n) => /* @__PURE__ */ e(
|
|
460
|
-
|
|
433
|
+
bt,
|
|
461
434
|
{
|
|
462
435
|
...n,
|
|
463
436
|
lineColor: n.ownerState.color ?? g.palette.primary.main
|
|
@@ -467,22 +440,21 @@ const Gt = ({
|
|
|
467
440
|
}
|
|
468
441
|
),
|
|
469
442
|
/* @__PURE__ */ e(
|
|
470
|
-
|
|
443
|
+
lt,
|
|
471
444
|
{
|
|
472
|
-
onItemClick:
|
|
473
|
-
slots:
|
|
445
|
+
onItemClick: M,
|
|
446
|
+
slots: Z ? {
|
|
474
447
|
mark: (n) => /* @__PURE__ */ e(
|
|
475
|
-
|
|
448
|
+
pt,
|
|
476
449
|
{
|
|
477
|
-
handlers:
|
|
478
|
-
labelBackgroundColor:
|
|
479
|
-
labelFontColor:
|
|
480
|
-
labelFontSize:
|
|
481
|
-
showLabel:
|
|
482
|
-
|
|
483
|
-
style: B?.(n.dataIndex) ?? {},
|
|
450
|
+
handlers: T,
|
|
451
|
+
labelBackgroundColor: I,
|
|
452
|
+
labelFontColor: P,
|
|
453
|
+
labelFontSize: E,
|
|
454
|
+
showLabel: G,
|
|
455
|
+
style: $?.(n.dataIndex) ?? {},
|
|
484
456
|
valueFormatterString: C,
|
|
485
|
-
yData:
|
|
457
|
+
yData: w,
|
|
486
458
|
...n
|
|
487
459
|
}
|
|
488
460
|
)
|
|
@@ -490,73 +462,73 @@ const Gt = ({
|
|
|
490
462
|
}
|
|
491
463
|
),
|
|
492
464
|
/* @__PURE__ */ e(
|
|
493
|
-
|
|
465
|
+
st,
|
|
494
466
|
{
|
|
495
467
|
barLabel: (n) => Number(n.value) > 0 ? `$${n.value}` : null,
|
|
496
468
|
borderRadius: 10
|
|
497
469
|
}
|
|
498
470
|
),
|
|
499
471
|
/* @__PURE__ */ e(
|
|
500
|
-
|
|
472
|
+
ct,
|
|
501
473
|
{
|
|
502
|
-
disableLine: !
|
|
503
|
-
disableTicks: !
|
|
504
|
-
slotProps:
|
|
474
|
+
disableLine: !Q,
|
|
475
|
+
disableTicks: !U,
|
|
476
|
+
slotProps: t ? {
|
|
505
477
|
axisLine: {
|
|
506
478
|
style: {
|
|
507
|
-
stroke:
|
|
479
|
+
stroke: t
|
|
508
480
|
}
|
|
509
481
|
},
|
|
510
482
|
axisTick: {
|
|
511
483
|
style: {
|
|
512
|
-
stroke:
|
|
484
|
+
stroke: t
|
|
513
485
|
}
|
|
514
486
|
}
|
|
515
487
|
} : {},
|
|
516
|
-
sx: { ...
|
|
488
|
+
sx: { ...s }
|
|
517
489
|
}
|
|
518
490
|
),
|
|
519
491
|
/* @__PURE__ */ e(
|
|
520
|
-
|
|
492
|
+
dt,
|
|
521
493
|
{
|
|
522
|
-
disableLine: !
|
|
523
|
-
disableTicks: !
|
|
524
|
-
|
|
494
|
+
disableLine: !V,
|
|
495
|
+
disableTicks: !J,
|
|
496
|
+
sx: { ...y },
|
|
497
|
+
slotProps: t ? {
|
|
525
498
|
axisLine: {
|
|
526
499
|
style: {
|
|
527
|
-
stroke:
|
|
500
|
+
stroke: t
|
|
528
501
|
}
|
|
529
502
|
},
|
|
530
503
|
axisTick: {
|
|
531
504
|
style: {
|
|
532
|
-
stroke:
|
|
505
|
+
stroke: t
|
|
533
506
|
}
|
|
534
507
|
}
|
|
535
|
-
} : {}
|
|
536
|
-
sx: { ...m }
|
|
508
|
+
} : {}
|
|
537
509
|
}
|
|
538
510
|
),
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
511
|
+
Y && /* @__PURE__ */ e(ht, { x: "line" }),
|
|
512
|
+
O && /* @__PURE__ */ e(
|
|
513
|
+
wt,
|
|
542
514
|
{
|
|
543
|
-
customLabels:
|
|
544
|
-
labels:
|
|
515
|
+
customLabels: c,
|
|
516
|
+
labels: k,
|
|
545
517
|
valueFormatterString: C
|
|
546
518
|
}
|
|
547
519
|
)
|
|
548
520
|
]
|
|
549
521
|
}
|
|
550
522
|
),
|
|
551
|
-
|
|
552
|
-
|
|
523
|
+
q && /* @__PURE__ */ e(
|
|
524
|
+
Mt,
|
|
553
525
|
{
|
|
554
|
-
average:
|
|
555
|
-
customLegendVariant:
|
|
556
|
-
labels:
|
|
557
|
-
series:
|
|
526
|
+
average: H ? F : void 0,
|
|
527
|
+
customLegendVariant: f,
|
|
528
|
+
labels: k,
|
|
529
|
+
series: z,
|
|
558
530
|
style: { position: "absolute", top: 16, left: 16 },
|
|
559
|
-
title:
|
|
531
|
+
title: K,
|
|
560
532
|
valueFormatterString: C
|
|
561
533
|
}
|
|
562
534
|
)
|
|
@@ -565,5 +537,5 @@ const Gt = ({
|
|
|
565
537
|
);
|
|
566
538
|
};
|
|
567
539
|
export {
|
|
568
|
-
|
|
540
|
+
zt as L
|
|
569
541
|
};
|