@mx-cartographer/experiences 7.0.63 → 7.0.65
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 +8 -0
- package/dist/{AccountDetailsContent-DsD3Wzu7.mjs → AccountDetailsContent-BpY7i5Vt.mjs} +5 -5
- package/dist/{AccountDetailsHeader-DN2pk4QW.mjs → AccountDetailsHeader-D0FKqNmV.mjs} +3 -3
- package/dist/{AccountFields-CuivK48n.mjs → AccountFields-CgkCSvJV.mjs} +1 -1
- package/dist/{AccountListItem-BAdwVscV.mjs → AccountListItem-DbpLvx5I.mjs} +2 -2
- package/dist/{BudgetUtil-2EncZLBQ.mjs → BudgetUtil-psfk-Amb.mjs} +1 -1
- package/dist/{CurrencyInput-CRtdzs3o.mjs → CurrencyInput-C4xNRL2W.mjs} +1 -1
- package/dist/{CurrencyText-YUhH2caW.mjs → CurrencyText-kyC1aseI.mjs} +1 -1
- package/dist/{GoalStore-DxOUk36P.mjs → GoalStore-BgiYFwWB.mjs} +1 -1
- package/dist/{LineChart-B2Y7zwMu.mjs → LineChart-B35qvXik.mjs} +186 -175
- package/dist/{ManageIncome-BX7dzGF8.mjs → ManageIncome-BXlzeXk6.mjs} +83 -74
- package/dist/{NotificationSettings-C215AwS0.mjs → NotificationSettings-BuShgjn6.mjs} +2 -2
- package/dist/NumberFormatting-Buh7u8Oi.mjs +48 -0
- package/dist/{OriginalBalanceAction-CEuIYsc_.mjs → OriginalBalanceAction-BsxcvNEF.mjs} +2 -2
- package/dist/{RecurringSettings-B486z99o.mjs → RecurringSettings-1t4mROQZ.mjs} +2 -2
- package/dist/{RecurringTransactions-DTUx9VN1.mjs → RecurringTransactions-ej39mgA6.mjs} +1 -1
- package/dist/{RecurringTransactionsStore-Djo9IeDd.mjs → RecurringTransactionsStore-DrzS1LmF.mjs} +1 -1
- package/dist/{TransactionDetails-DAp_CPCP.mjs → TransactionDetails-B2Z5S7FM.mjs} +2 -2
- package/dist/{TrendsStore-BKBnNQba.mjs → TrendsStore-ZZ8X36lJ.mjs} +2 -2
- package/dist/accounts/index.es.js +7 -7
- package/dist/budgets/index.es.js +5 -5
- package/dist/cashflow/index.es.js +7 -7
- package/dist/common/components/charts/LineChart.d.ts +5 -0
- package/dist/common/index.es.js +13 -13
- package/dist/common/utils/NumberFormatting.d.ts +1 -0
- package/dist/debts/index.es.js +4 -4
- package/dist/finstrong/index.es.js +3 -3
- package/dist/goals/index.es.js +7 -7
- package/dist/investments/index.es.js +1 -1
- package/dist/networth/index.es.js +67 -64
- package/dist/notifications/index.es.js +1 -1
- package/dist/recurringtransactions/index.es.js +8 -8
- package/dist/settings/index.es.js +2 -2
- package/dist/spending/index.es.js +2 -2
- package/dist/transactions/index.es.js +4 -4
- package/dist/trends/index.es.js +6 -6
- package/package.json +1 -1
- package/dist/NumberFormatting-CtWHhyBX.mjs +0 -40
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { jsxs as i, Fragment as
|
|
2
|
-
import
|
|
3
|
-
import { useTheme as
|
|
4
|
-
import { ResponsiveChartContainer as
|
|
5
|
-
import
|
|
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
|
|
14
|
-
return /* @__PURE__ */ i(
|
|
15
|
-
o && /* @__PURE__ */ i(
|
|
10
|
+
import { u as gt } from "./hooks-CE2TKk4a.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(
|
|
@@ -29,25 +29,25 @@ const mt = (t) => {
|
|
|
29
29
|
{
|
|
30
30
|
className: "MuiLineChart-markLabel",
|
|
31
31
|
dominantBaseline: "middle",
|
|
32
|
-
fill: t.labelFontColor ? t.labelFontColor :
|
|
32
|
+
fill: t.labelFontColor ? t.labelFontColor : r.palette.text.primary,
|
|
33
33
|
style: {
|
|
34
34
|
fontSize: t.labelFontSize ? t.labelFontSize : h
|
|
35
35
|
},
|
|
36
36
|
textAnchor: "middle",
|
|
37
37
|
x: y,
|
|
38
|
-
y:
|
|
39
|
-
children:
|
|
38
|
+
y: m - 28 + T / 2,
|
|
39
|
+
children: a
|
|
40
40
|
}
|
|
41
41
|
)
|
|
42
42
|
] }),
|
|
43
43
|
/* @__PURE__ */ e(
|
|
44
44
|
"path",
|
|
45
45
|
{
|
|
46
|
-
cursor:
|
|
46
|
+
cursor: x ? "pointer" : "unset",
|
|
47
47
|
d: "M4.514,0A4.514,4.514,0,1,1,-4.514,0A4.514,4.514,0,1,1,4.514,0",
|
|
48
48
|
height: "20px",
|
|
49
|
-
onClick: (
|
|
50
|
-
|
|
49
|
+
onClick: (R) => {
|
|
50
|
+
x?.(R, t.dataIndex);
|
|
51
51
|
},
|
|
52
52
|
onMouseEnter: () => {
|
|
53
53
|
f?.(t.dataIndex);
|
|
@@ -56,8 +56,8 @@ const mt = (t) => {
|
|
|
56
56
|
c?.();
|
|
57
57
|
},
|
|
58
58
|
style: {
|
|
59
|
-
fill: s?.fill ? s.fill :
|
|
60
|
-
stroke: s?.stroke ? s.stroke :
|
|
59
|
+
fill: s?.fill ? s.fill : r.palette.background.paper,
|
|
60
|
+
stroke: s?.stroke ? s.stroke : r.palette.primary.main,
|
|
61
61
|
strokeWidth: 2,
|
|
62
62
|
transform: `translate(${t.x}px, ${t.y}px)`,
|
|
63
63
|
transformOrigin: `${t.x}px, ${t.y}px`,
|
|
@@ -67,7 +67,7 @@ const mt = (t) => {
|
|
|
67
67
|
}
|
|
68
68
|
)
|
|
69
69
|
] });
|
|
70
|
-
},
|
|
70
|
+
}, bt = (t) => /* @__PURE__ */ i(B, { children: [
|
|
71
71
|
/* @__PURE__ */ e("clipPath", { id: t.id, children: /* @__PURE__ */ e("rect", { height: t.height, width: t.width, x: "0", y: "0" }) }),
|
|
72
72
|
/* @__PURE__ */ e("g", { children: /* @__PURE__ */ e(
|
|
73
73
|
"path",
|
|
@@ -84,35 +84,35 @@ const mt = (t) => {
|
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
) })
|
|
87
|
-
] }),
|
|
87
|
+
] }), kt = ({
|
|
88
88
|
label: t,
|
|
89
|
-
customLegendVariant:
|
|
89
|
+
customLegendVariant: r
|
|
90
90
|
}) => {
|
|
91
|
-
const o =
|
|
92
|
-
return typeof t == "string" ? /* @__PURE__ */ e(l, { variant: o, children: t }) : typeof t == "object" && t.amount && t.label ? /* @__PURE__ */ i(
|
|
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
93
|
/* @__PURE__ */ e(l, { variant: o, children: t.label }),
|
|
94
|
-
/* @__PURE__ */ e(l, { bold: !0, sx: { marginLeft: 8 }, variant: o, children:
|
|
94
|
+
/* @__PURE__ */ e(l, { bold: !0, sx: { marginLeft: 8 }, variant: o, children: b(t.amount, "0,0") })
|
|
95
95
|
] }) : null;
|
|
96
|
-
},
|
|
96
|
+
}, Ct = ({
|
|
97
97
|
average: t,
|
|
98
|
-
customLegendVariant:
|
|
98
|
+
customLegendVariant: r,
|
|
99
99
|
labels: o = [],
|
|
100
100
|
series: s,
|
|
101
101
|
style: y,
|
|
102
|
-
title:
|
|
103
|
-
valueFormatterString:
|
|
102
|
+
title: m,
|
|
103
|
+
valueFormatterString: x
|
|
104
104
|
}) => {
|
|
105
|
-
const { common: f } =
|
|
106
|
-
return /* @__PURE__ */ i(
|
|
107
|
-
s.map((d,
|
|
108
|
-
const h = o[
|
|
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];
|
|
109
109
|
return h ? /* @__PURE__ */ i(
|
|
110
|
-
|
|
110
|
+
u,
|
|
111
111
|
{
|
|
112
112
|
style: { alignItems: "center", flexDirection: "row", flexWrap: "wrap" },
|
|
113
113
|
children: [
|
|
114
114
|
/* @__PURE__ */ e(
|
|
115
|
-
|
|
115
|
+
N,
|
|
116
116
|
{
|
|
117
117
|
sx: {
|
|
118
118
|
width: 10,
|
|
@@ -122,39 +122,39 @@ const mt = (t) => {
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
),
|
|
125
|
-
/* @__PURE__ */ e(
|
|
125
|
+
/* @__PURE__ */ e(kt, { customLegendVariant: r, label: h })
|
|
126
126
|
]
|
|
127
127
|
},
|
|
128
|
-
|
|
128
|
+
a
|
|
129
129
|
) : null;
|
|
130
130
|
}),
|
|
131
|
-
t && /* @__PURE__ */ i(
|
|
131
|
+
t && /* @__PURE__ */ i(u, { sx: { alignItems: "center", flexDirection: "row" }, children: [
|
|
132
132
|
/* @__PURE__ */ e(l, { bold: !0, sx: { marginRight: 8 }, variant: c, children: "– –" }),
|
|
133
133
|
/* @__PURE__ */ i(l, { variant: c, children: [
|
|
134
|
-
|
|
134
|
+
m || f.average,
|
|
135
135
|
" "
|
|
136
136
|
] }),
|
|
137
|
-
/* @__PURE__ */ e(l, { bold: !0, variant: c, children:
|
|
137
|
+
/* @__PURE__ */ e(l, { bold: !0, variant: c, children: x ? b(t, x) : t })
|
|
138
138
|
] })
|
|
139
139
|
] });
|
|
140
|
-
},
|
|
141
|
-
function
|
|
140
|
+
}, Mt = xt(Ct);
|
|
141
|
+
function wt({
|
|
142
142
|
customLabels: t,
|
|
143
|
-
labels:
|
|
143
|
+
labels: r = [],
|
|
144
144
|
valueFormatterString: o = "0,0"
|
|
145
145
|
}) {
|
|
146
|
-
const s =
|
|
146
|
+
const s = ft();
|
|
147
147
|
return /* @__PURE__ */ e(
|
|
148
|
-
|
|
148
|
+
yt,
|
|
149
149
|
{
|
|
150
150
|
showCrosshair: !0,
|
|
151
151
|
slots: {
|
|
152
152
|
axisContent: (y) => {
|
|
153
|
-
const { axisValue:
|
|
153
|
+
const { axisValue: m, dataIndex: x, series: f } = y, c = x ?? 0;
|
|
154
154
|
if (t) {
|
|
155
|
-
const d = t[c]?.[0]?.header || String(
|
|
155
|
+
const d = t[c]?.[0]?.header || String(m);
|
|
156
156
|
return /* @__PURE__ */ i(
|
|
157
|
-
|
|
157
|
+
u,
|
|
158
158
|
{
|
|
159
159
|
sx: {
|
|
160
160
|
backgroundColor: s.palette.background.paper,
|
|
@@ -169,7 +169,7 @@ function yt({
|
|
|
169
169
|
},
|
|
170
170
|
children: [
|
|
171
171
|
/* @__PURE__ */ i(
|
|
172
|
-
|
|
172
|
+
u,
|
|
173
173
|
{
|
|
174
174
|
sx: {
|
|
175
175
|
flexDirection: "row",
|
|
@@ -181,14 +181,14 @@ function yt({
|
|
|
181
181
|
},
|
|
182
182
|
children: [
|
|
183
183
|
/* @__PURE__ */ e(l, { variant: "H3", children: d }),
|
|
184
|
-
/* @__PURE__ */ e(l, { bold: !0, variant: "H3", children:
|
|
184
|
+
/* @__PURE__ */ e(l, { bold: !0, variant: "H3", children: b(f[0]?.data[c], o) })
|
|
185
185
|
]
|
|
186
186
|
}
|
|
187
187
|
),
|
|
188
|
-
t[c]?.some((
|
|
189
|
-
const h = typeof
|
|
188
|
+
t[c]?.some((a) => (typeof a == "string" ? 0 : a.amount) !== 0) ? t[c]?.map((a) => {
|
|
189
|
+
const h = typeof a == "string" ? a : a.label, k = typeof a == "string" ? 0 : a.amount;
|
|
190
190
|
return k === 0 ? null : /* @__PURE__ */ i(
|
|
191
|
-
|
|
191
|
+
u,
|
|
192
192
|
{
|
|
193
193
|
sx: {
|
|
194
194
|
flexDirection: "row",
|
|
@@ -200,7 +200,7 @@ function yt({
|
|
|
200
200
|
},
|
|
201
201
|
children: [
|
|
202
202
|
/* @__PURE__ */ i(
|
|
203
|
-
|
|
203
|
+
u,
|
|
204
204
|
{
|
|
205
205
|
sx: {
|
|
206
206
|
flexDirection: "row",
|
|
@@ -211,7 +211,7 @@ function yt({
|
|
|
211
211
|
},
|
|
212
212
|
children: [
|
|
213
213
|
/* @__PURE__ */ e(
|
|
214
|
-
|
|
214
|
+
N,
|
|
215
215
|
{
|
|
216
216
|
sx: {
|
|
217
217
|
width: "12px",
|
|
@@ -225,7 +225,7 @@ function yt({
|
|
|
225
225
|
]
|
|
226
226
|
}
|
|
227
227
|
),
|
|
228
|
-
/* @__PURE__ */ e(l, { bold: !0, variant: "Body", children:
|
|
228
|
+
/* @__PURE__ */ e(l, { bold: !0, variant: "Body", children: b(Math.abs(k), o) })
|
|
229
229
|
]
|
|
230
230
|
},
|
|
231
231
|
h
|
|
@@ -236,7 +236,7 @@ function yt({
|
|
|
236
236
|
);
|
|
237
237
|
}
|
|
238
238
|
return /* @__PURE__ */ i(
|
|
239
|
-
|
|
239
|
+
u,
|
|
240
240
|
{
|
|
241
241
|
sx: {
|
|
242
242
|
backgroundColor: s.palette.background.paper,
|
|
@@ -250,9 +250,9 @@ function yt({
|
|
|
250
250
|
py: 12
|
|
251
251
|
},
|
|
252
252
|
children: [
|
|
253
|
-
/* @__PURE__ */ e(l, { variant: "H3", children: String(
|
|
254
|
-
f.map((d,
|
|
255
|
-
|
|
253
|
+
/* @__PURE__ */ e(l, { variant: "H3", children: String(m) }),
|
|
254
|
+
f.map((d, a) => /* @__PURE__ */ i(
|
|
255
|
+
u,
|
|
256
256
|
{
|
|
257
257
|
sx: {
|
|
258
258
|
flexDirection: "row",
|
|
@@ -263,9 +263,9 @@ function yt({
|
|
|
263
263
|
marginTop: 4
|
|
264
264
|
},
|
|
265
265
|
children: [
|
|
266
|
-
/* @__PURE__ */ i(
|
|
266
|
+
/* @__PURE__ */ i(u, { sx: { flexDirection: "row", alignItems: "center", gap: 8 }, children: [
|
|
267
267
|
/* @__PURE__ */ e(
|
|
268
|
-
|
|
268
|
+
N,
|
|
269
269
|
{
|
|
270
270
|
sx: {
|
|
271
271
|
width: "12px",
|
|
@@ -275,9 +275,9 @@ function yt({
|
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
277
|
),
|
|
278
|
-
/* @__PURE__ */ e(l, { variant: "Body", children: typeof a
|
|
278
|
+
/* @__PURE__ */ e(l, { variant: "Body", children: typeof r[a] == "string" ? r[a] : r[a]?.label })
|
|
279
279
|
] }),
|
|
280
|
-
/* @__PURE__ */ e(l, { bold: !0, variant: "Body", children:
|
|
280
|
+
/* @__PURE__ */ e(l, { bold: !0, variant: "Body", children: b(d.data[c], o) })
|
|
281
281
|
]
|
|
282
282
|
},
|
|
283
283
|
d.id
|
|
@@ -291,60 +291,68 @@ function yt({
|
|
|
291
291
|
}
|
|
292
292
|
);
|
|
293
293
|
}
|
|
294
|
-
const
|
|
294
|
+
const zt = ({
|
|
295
295
|
axisColor: t,
|
|
296
|
-
baseline:
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
296
|
+
baseline: r = "max",
|
|
297
|
+
chartFor: o,
|
|
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,
|
|
328
|
+
valueFormatterString: C,
|
|
329
|
+
width: _
|
|
327
330
|
}) => {
|
|
328
|
-
const g =
|
|
329
|
-
type:
|
|
330
|
-
curve:
|
|
331
|
-
color:
|
|
332
|
-
data:
|
|
333
|
-
area:
|
|
334
|
-
baseline:
|
|
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,
|
|
335
|
+
data: n.map((p) => p.y),
|
|
336
|
+
area: R,
|
|
337
|
+
baseline: r,
|
|
335
338
|
showMark: !0,
|
|
336
|
-
valueFormatter: (
|
|
337
|
-
})),
|
|
339
|
+
valueFormatter: (p) => C ? b(p || 0, C) : String(p)
|
|
340
|
+
})), et = {
|
|
338
341
|
...{
|
|
339
342
|
top: 60,
|
|
340
343
|
right: 35,
|
|
341
344
|
bottom: 50,
|
|
342
345
|
left: 50
|
|
343
346
|
},
|
|
344
|
-
...
|
|
347
|
+
...D
|
|
345
348
|
};
|
|
349
|
+
let A = L, W = S;
|
|
350
|
+
if (o === "networthChart") {
|
|
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;
|
|
353
|
+
}
|
|
346
354
|
return /* @__PURE__ */ i(
|
|
347
|
-
|
|
355
|
+
nt,
|
|
348
356
|
{
|
|
349
357
|
sx: {
|
|
350
358
|
position: "relative",
|
|
@@ -363,11 +371,11 @@ const Rt = ({
|
|
|
363
371
|
},
|
|
364
372
|
children: [
|
|
365
373
|
/* @__PURE__ */ i(
|
|
366
|
-
|
|
374
|
+
at,
|
|
367
375
|
{
|
|
368
|
-
height:
|
|
369
|
-
margin:
|
|
370
|
-
series:
|
|
376
|
+
height: a,
|
|
377
|
+
margin: et,
|
|
378
|
+
series: z,
|
|
371
379
|
sx: {
|
|
372
380
|
p: 4,
|
|
373
381
|
"& .MuiBarLabel-root": {
|
|
@@ -384,86 +392,87 @@ const Rt = ({
|
|
|
384
392
|
fontFamily: g.typography.Small.fontFamily
|
|
385
393
|
}
|
|
386
394
|
},
|
|
387
|
-
width:
|
|
388
|
-
xAxis: [{ data:
|
|
395
|
+
width: _,
|
|
396
|
+
xAxis: [{ data: tt, scaleType: j ? "band" : "point" }],
|
|
389
397
|
yAxis: [
|
|
390
398
|
{
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
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 ? {
|
|
394
403
|
type: "continuous",
|
|
395
|
-
min:
|
|
396
|
-
max:
|
|
404
|
+
min: A,
|
|
405
|
+
max: W,
|
|
397
406
|
color: [
|
|
398
407
|
g.palette.background.paper,
|
|
399
|
-
|
|
408
|
+
m[0] ?? g.palette.primary.main
|
|
400
409
|
]
|
|
401
410
|
} : void 0,
|
|
402
|
-
valueFormatter: (
|
|
411
|
+
valueFormatter: (n) => C ? b(n, C) : String(n)
|
|
403
412
|
}
|
|
404
413
|
],
|
|
405
414
|
children: [
|
|
406
|
-
|
|
407
|
-
|
|
415
|
+
H && /* @__PURE__ */ e(
|
|
416
|
+
rt,
|
|
408
417
|
{
|
|
409
418
|
lineStyle: {
|
|
410
|
-
stroke:
|
|
419
|
+
stroke: I ? g.palette.neutral.main : g.palette.neutral.dark,
|
|
411
420
|
strokeDasharray: "10, 8",
|
|
412
421
|
strokeWidth: 2
|
|
413
422
|
},
|
|
414
|
-
y:
|
|
423
|
+
y: F
|
|
415
424
|
}
|
|
416
425
|
),
|
|
417
|
-
/* @__PURE__ */ e(
|
|
426
|
+
/* @__PURE__ */ e(it, { onItemClick: M }),
|
|
418
427
|
/* @__PURE__ */ e(
|
|
419
|
-
|
|
428
|
+
ot,
|
|
420
429
|
{
|
|
421
|
-
onItemClick:
|
|
430
|
+
onItemClick: M,
|
|
422
431
|
slots: {
|
|
423
|
-
line: (
|
|
424
|
-
|
|
432
|
+
line: (n) => /* @__PURE__ */ e(
|
|
433
|
+
bt,
|
|
425
434
|
{
|
|
426
|
-
...
|
|
427
|
-
lineColor:
|
|
435
|
+
...n,
|
|
436
|
+
lineColor: n.ownerState.color ?? g.palette.primary.main
|
|
428
437
|
}
|
|
429
438
|
)
|
|
430
439
|
}
|
|
431
440
|
}
|
|
432
441
|
),
|
|
433
442
|
/* @__PURE__ */ e(
|
|
434
|
-
|
|
443
|
+
lt,
|
|
435
444
|
{
|
|
436
|
-
onItemClick:
|
|
437
|
-
slots:
|
|
438
|
-
mark: (
|
|
439
|
-
|
|
445
|
+
onItemClick: M,
|
|
446
|
+
slots: Z ? {
|
|
447
|
+
mark: (n) => /* @__PURE__ */ e(
|
|
448
|
+
pt,
|
|
440
449
|
{
|
|
441
|
-
handlers:
|
|
442
|
-
labelBackgroundColor:
|
|
443
|
-
labelFontColor:
|
|
444
|
-
labelFontSize:
|
|
445
|
-
showLabel:
|
|
446
|
-
style:
|
|
447
|
-
valueFormatterString:
|
|
450
|
+
handlers: T,
|
|
451
|
+
labelBackgroundColor: I,
|
|
452
|
+
labelFontColor: P,
|
|
453
|
+
labelFontSize: E,
|
|
454
|
+
showLabel: G,
|
|
455
|
+
style: $?.(n.dataIndex) ?? {},
|
|
456
|
+
valueFormatterString: C,
|
|
448
457
|
yData: w,
|
|
449
|
-
...
|
|
458
|
+
...n
|
|
450
459
|
}
|
|
451
460
|
)
|
|
452
461
|
} : void 0
|
|
453
462
|
}
|
|
454
463
|
),
|
|
455
464
|
/* @__PURE__ */ e(
|
|
456
|
-
|
|
465
|
+
st,
|
|
457
466
|
{
|
|
458
|
-
barLabel: (
|
|
467
|
+
barLabel: (n) => Number(n.value) > 0 ? `$${n.value}` : null,
|
|
459
468
|
borderRadius: 10
|
|
460
469
|
}
|
|
461
470
|
),
|
|
462
471
|
/* @__PURE__ */ e(
|
|
463
|
-
|
|
472
|
+
ct,
|
|
464
473
|
{
|
|
465
|
-
disableLine: !
|
|
466
|
-
disableTicks: !
|
|
474
|
+
disableLine: !Q,
|
|
475
|
+
disableTicks: !U,
|
|
467
476
|
slotProps: t ? {
|
|
468
477
|
axisLine: {
|
|
469
478
|
style: {
|
|
@@ -475,14 +484,16 @@ const Rt = ({
|
|
|
475
484
|
stroke: t
|
|
476
485
|
}
|
|
477
486
|
}
|
|
478
|
-
} : {}
|
|
487
|
+
} : {},
|
|
488
|
+
sx: { ...s }
|
|
479
489
|
}
|
|
480
490
|
),
|
|
481
491
|
/* @__PURE__ */ e(
|
|
482
|
-
|
|
492
|
+
dt,
|
|
483
493
|
{
|
|
484
|
-
disableLine: !
|
|
485
|
-
disableTicks: !
|
|
494
|
+
disableLine: !V,
|
|
495
|
+
disableTicks: !J,
|
|
496
|
+
sx: { ...y },
|
|
486
497
|
slotProps: t ? {
|
|
487
498
|
axisLine: {
|
|
488
499
|
style: {
|
|
@@ -497,28 +508,28 @@ const Rt = ({
|
|
|
497
508
|
} : {}
|
|
498
509
|
}
|
|
499
510
|
),
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
511
|
+
Y && /* @__PURE__ */ e(ht, { x: "line" }),
|
|
512
|
+
O && /* @__PURE__ */ e(
|
|
513
|
+
wt,
|
|
503
514
|
{
|
|
504
|
-
customLabels:
|
|
505
|
-
labels:
|
|
506
|
-
valueFormatterString:
|
|
515
|
+
customLabels: c,
|
|
516
|
+
labels: k,
|
|
517
|
+
valueFormatterString: C
|
|
507
518
|
}
|
|
508
519
|
)
|
|
509
520
|
]
|
|
510
521
|
}
|
|
511
522
|
),
|
|
512
|
-
|
|
513
|
-
|
|
523
|
+
q && /* @__PURE__ */ e(
|
|
524
|
+
Mt,
|
|
514
525
|
{
|
|
515
|
-
average:
|
|
516
|
-
customLegendVariant:
|
|
517
|
-
labels:
|
|
518
|
-
series:
|
|
526
|
+
average: H ? F : void 0,
|
|
527
|
+
customLegendVariant: f,
|
|
528
|
+
labels: k,
|
|
529
|
+
series: z,
|
|
519
530
|
style: { position: "absolute", top: 16, left: 16 },
|
|
520
|
-
title:
|
|
521
|
-
valueFormatterString:
|
|
531
|
+
title: K,
|
|
532
|
+
valueFormatterString: C
|
|
522
533
|
}
|
|
523
534
|
)
|
|
524
535
|
]
|
|
@@ -526,5 +537,5 @@ const Rt = ({
|
|
|
526
537
|
);
|
|
527
538
|
};
|
|
528
539
|
export {
|
|
529
|
-
|
|
540
|
+
zt as L
|
|
530
541
|
};
|