@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.
Files changed (38) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/{AccountDetailsContent-DsD3Wzu7.mjs → AccountDetailsContent-BpY7i5Vt.mjs} +5 -5
  3. package/dist/{AccountDetailsHeader-DN2pk4QW.mjs → AccountDetailsHeader-D0FKqNmV.mjs} +3 -3
  4. package/dist/{AccountFields-CuivK48n.mjs → AccountFields-CgkCSvJV.mjs} +1 -1
  5. package/dist/{AccountListItem-BAdwVscV.mjs → AccountListItem-DbpLvx5I.mjs} +2 -2
  6. package/dist/{BudgetUtil-2EncZLBQ.mjs → BudgetUtil-psfk-Amb.mjs} +1 -1
  7. package/dist/{CurrencyInput-CRtdzs3o.mjs → CurrencyInput-C4xNRL2W.mjs} +1 -1
  8. package/dist/{CurrencyText-YUhH2caW.mjs → CurrencyText-kyC1aseI.mjs} +1 -1
  9. package/dist/{GoalStore-DxOUk36P.mjs → GoalStore-BgiYFwWB.mjs} +1 -1
  10. package/dist/{LineChart-B2Y7zwMu.mjs → LineChart-B35qvXik.mjs} +186 -175
  11. package/dist/{ManageIncome-BX7dzGF8.mjs → ManageIncome-BXlzeXk6.mjs} +83 -74
  12. package/dist/{NotificationSettings-C215AwS0.mjs → NotificationSettings-BuShgjn6.mjs} +2 -2
  13. package/dist/NumberFormatting-Buh7u8Oi.mjs +48 -0
  14. package/dist/{OriginalBalanceAction-CEuIYsc_.mjs → OriginalBalanceAction-BsxcvNEF.mjs} +2 -2
  15. package/dist/{RecurringSettings-B486z99o.mjs → RecurringSettings-1t4mROQZ.mjs} +2 -2
  16. package/dist/{RecurringTransactions-DTUx9VN1.mjs → RecurringTransactions-ej39mgA6.mjs} +1 -1
  17. package/dist/{RecurringTransactionsStore-Djo9IeDd.mjs → RecurringTransactionsStore-DrzS1LmF.mjs} +1 -1
  18. package/dist/{TransactionDetails-DAp_CPCP.mjs → TransactionDetails-B2Z5S7FM.mjs} +2 -2
  19. package/dist/{TrendsStore-BKBnNQba.mjs → TrendsStore-ZZ8X36lJ.mjs} +2 -2
  20. package/dist/accounts/index.es.js +7 -7
  21. package/dist/budgets/index.es.js +5 -5
  22. package/dist/cashflow/index.es.js +7 -7
  23. package/dist/common/components/charts/LineChart.d.ts +5 -0
  24. package/dist/common/index.es.js +13 -13
  25. package/dist/common/utils/NumberFormatting.d.ts +1 -0
  26. package/dist/debts/index.es.js +4 -4
  27. package/dist/finstrong/index.es.js +3 -3
  28. package/dist/goals/index.es.js +7 -7
  29. package/dist/investments/index.es.js +1 -1
  30. package/dist/networth/index.es.js +67 -64
  31. package/dist/notifications/index.es.js +1 -1
  32. package/dist/recurringtransactions/index.es.js +8 -8
  33. package/dist/settings/index.es.js +2 -2
  34. package/dist/spending/index.es.js +2 -2
  35. package/dist/transactions/index.es.js +4 -4
  36. package/dist/trends/index.es.js +6 -6
  37. package/package.json +1 -1
  38. package/dist/NumberFormatting-CtWHhyBX.mjs +0 -40
@@ -1,27 +1,27 @@
1
- import { jsxs as i, Fragment as D, jsx as e } from "react/jsx-runtime";
2
- import K from "@mui/material/Box";
3
- import { useTheme as P } from "@mui/material/styles";
4
- import { ResponsiveChartContainer as Z, ChartsReferenceLine as _, AreaPlot as tt, LinePlot as et, MarkPlot as nt, BarPlot as rt, ChartsXAxis as at, ChartsYAxis as it, ChartsAxisHighlight as ot } from "@mui/x-charts";
5
- import lt from "@mui/material/useMediaQuery";
6
- import { f as p } from "./NumberFormatting-CtWHhyBX.mjs";
7
- import { observer as st } from "mobx-react-lite";
8
- import { Stack as x, Box as W, useTheme as ct } from "@mui/material";
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 dt } from "./hooks-CE2TKk4a.mjs";
11
- import { ChartsTooltip as ht } from "@mui/x-charts/ChartsTooltip";
12
- const mt = (t) => {
13
- const a = P(), o = t.showLabel, s = t.style, y = Number(t.x), u = Number(t.y), m = t.handlers?.onMarkClick, f = t.handlers?.onMouseEnter, c = t.handlers?.onMouseLeave, d = lt(a.breakpoints.up("sm")), n = t.valueFormatterString ? p(t.yData[t.dataIndex], t.valueFormatterString) : String(t.yData[t.dataIndex]), h = d ? a.typography.Small?.fontSize : a.typography.XSmall?.fontSize, k = h ? parseFloat(h.toString()) * 0.6 : 8, C = n.length * k + 8 + 8, M = 24, S = y - C / 2, T = u - 30;
14
- return /* @__PURE__ */ i(D, { children: [
15
- o && /* @__PURE__ */ i(D, { children: [
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: M,
20
+ height: T,
21
21
  rx: "3",
22
- width: C,
23
- x: S,
24
- y: T
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 : a.palette.text.primary,
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: u - 28 + M / 2,
39
- children: n
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: m ? "pointer" : "unset",
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: (L) => {
50
- m?.(L, t.dataIndex);
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 : a.palette.background.paper,
60
- stroke: s?.stroke ? s.stroke : a.palette.primary.main,
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
- }, ut = (t) => /* @__PURE__ */ i(D, { children: [
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
- ] }), xt = ({
87
+ ] }), kt = ({
88
88
  label: t,
89
- customLegendVariant: a
89
+ customLegendVariant: r
90
90
  }) => {
91
- const o = a || "Small";
92
- return typeof t == "string" ? /* @__PURE__ */ e(l, { variant: o, children: t }) : typeof t == "object" && t.amount && t.label ? /* @__PURE__ */ i(D, { children: [
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: p(t.amount, "0,0") })
94
+ /* @__PURE__ */ e(l, { bold: !0, sx: { marginLeft: 8 }, variant: o, children: b(t.amount, "0,0") })
95
95
  ] }) : null;
96
- }, ft = ({
96
+ }, Ct = ({
97
97
  average: t,
98
- customLegendVariant: a,
98
+ customLegendVariant: r,
99
99
  labels: o = [],
100
100
  series: s,
101
101
  style: y,
102
- title: u,
103
- valueFormatterString: m
102
+ title: m,
103
+ valueFormatterString: x
104
104
  }) => {
105
- const { common: f } = dt(), c = a || "Small";
106
- return /* @__PURE__ */ i(x, { style: { flexDirection: "row", gap: 24, ...y }, children: [
107
- s.map((d, n) => {
108
- const h = o[n];
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
- x,
110
+ u,
111
111
  {
112
112
  style: { alignItems: "center", flexDirection: "row", flexWrap: "wrap" },
113
113
  children: [
114
114
  /* @__PURE__ */ e(
115
- W,
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(xt, { customLegendVariant: a, label: h })
125
+ /* @__PURE__ */ e(kt, { customLegendVariant: r, label: h })
126
126
  ]
127
127
  },
128
- n
128
+ a
129
129
  ) : null;
130
130
  }),
131
- t && /* @__PURE__ */ i(x, { sx: { alignItems: "center", flexDirection: "row" }, children: [
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
- u || f.average,
134
+ m || f.average,
135
135
  "  "
136
136
  ] }),
137
- /* @__PURE__ */ e(l, { bold: !0, variant: c, children: m ? p(t, m) : t })
137
+ /* @__PURE__ */ e(l, { bold: !0, variant: c, children: x ? b(t, x) : t })
138
138
  ] })
139
139
  ] });
140
- }, gt = st(ft);
141
- function yt({
140
+ }, Mt = xt(Ct);
141
+ function wt({
142
142
  customLabels: t,
143
- labels: a = [],
143
+ labels: r = [],
144
144
  valueFormatterString: o = "0,0"
145
145
  }) {
146
- const s = ct();
146
+ const s = ft();
147
147
  return /* @__PURE__ */ e(
148
- ht,
148
+ yt,
149
149
  {
150
150
  showCrosshair: !0,
151
151
  slots: {
152
152
  axisContent: (y) => {
153
- const { axisValue: u, dataIndex: m, series: f } = y, c = m ?? 0;
153
+ const { axisValue: m, dataIndex: x, series: f } = y, c = x ?? 0;
154
154
  if (t) {
155
- const d = t[c]?.[0]?.header || String(u);
155
+ const d = t[c]?.[0]?.header || String(m);
156
156
  return /* @__PURE__ */ i(
157
- x,
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
- x,
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: p(f[0]?.data[c], o) })
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((n) => (typeof n == "string" ? 0 : n.amount) !== 0) ? t[c]?.map((n) => {
189
- const h = typeof n == "string" ? n : n.label, k = typeof n == "string" ? 0 : n.amount;
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
- x,
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
- x,
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
- W,
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: p(Math.abs(k), o) })
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
- x,
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(u) }),
254
- f.map((d, n) => /* @__PURE__ */ i(
255
- x,
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(x, { sx: { flexDirection: "row", alignItems: "center", gap: 8 }, children: [
266
+ /* @__PURE__ */ i(u, { sx: { flexDirection: "row", alignItems: "center", gap: 8 }, children: [
267
267
  /* @__PURE__ */ e(
268
- W,
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[n] == "string" ? a[n] : a[n]?.label })
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: p(d.data[c], o) })
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 Rt = ({
294
+ const zt = ({
295
295
  axisColor: t,
296
- baseline: a = "max",
297
- colors: o,
298
- curveType: s = "linear",
299
- customLegendVariant: y,
300
- customTooltipLabels: u,
301
- datasets: m,
302
- height: f,
303
- isGraphClippingXAxis: c = !1,
304
- labels: d,
305
- labelBackgroundColor: n,
306
- labelFontColor: h,
307
- labelFontSize: k,
308
- margin: B,
309
- markHandlers: $,
310
- markStyles: j,
311
- onItemClick: C,
312
- showArea: M = !1,
313
- showAverage: S = !1,
314
- showAxisHighlight: T = !1,
315
- showBars: L = !1,
316
- showLegend: F = !1,
317
- showMarkLabel: H = !1,
318
- showTooltip: E = !1,
319
- showXAxis: X = !1,
320
- showXAxisTicks: Y = !1,
321
- showYAxis: G = !1,
322
- showYAxisTicks: O = !1,
323
- title: Q,
324
- useCustomMark: U = !1,
325
- valueFormatterString: b,
326
- width: V
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 = P(), q = m.flat().map((r) => r.x), w = m.flat().map((r) => r.y), z = Math.round(w.reduce((r, R) => R + r, 0) / w.length), I = Math.floor(Math.min(...w) / 100) * 100, N = Math.ceil(Math.max(...w) / 100) * 100, A = m.map((r, R) => ({
329
- type: L ? "bar" : "line",
330
- curve: s,
331
- color: L ? g.palette.chart?.chart6 : o[R] ?? g.palette.primary.main,
332
- data: r.map((v) => v.y),
333
- area: M,
334
- baseline: a,
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: (v) => b ? p(v || 0, b) : String(v)
337
- })), J = {
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
- ...B
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
- K,
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
- Z,
374
+ at,
367
375
  {
368
- height: f,
369
- margin: J,
370
- series: A,
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: V,
388
- xAxis: [{ data: q, scaleType: L ? "band" : "point" }],
395
+ width: _,
396
+ xAxis: [{ data: tt, scaleType: j ? "band" : "point" }],
389
397
  yAxis: [
390
398
  {
391
- min: c ? -22 : I,
392
- max: N || 100,
393
- colorMap: M && A.length < 2 ? {
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: I,
396
- max: N,
404
+ min: A,
405
+ max: W,
397
406
  color: [
398
407
  g.palette.background.paper,
399
- o[0] ?? g.palette.primary.main
408
+ m[0] ?? g.palette.primary.main
400
409
  ]
401
410
  } : void 0,
402
- valueFormatter: (r) => b ? p(r, b) : String(r)
411
+ valueFormatter: (n) => C ? b(n, C) : String(n)
403
412
  }
404
413
  ],
405
414
  children: [
406
- S && /* @__PURE__ */ e(
407
- _,
415
+ H && /* @__PURE__ */ e(
416
+ rt,
408
417
  {
409
418
  lineStyle: {
410
- stroke: n ? g.palette.neutral.main : g.palette.neutral.dark,
419
+ stroke: I ? g.palette.neutral.main : g.palette.neutral.dark,
411
420
  strokeDasharray: "10, 8",
412
421
  strokeWidth: 2
413
422
  },
414
- y: z
423
+ y: F
415
424
  }
416
425
  ),
417
- /* @__PURE__ */ e(tt, { onItemClick: C }),
426
+ /* @__PURE__ */ e(it, { onItemClick: M }),
418
427
  /* @__PURE__ */ e(
419
- et,
428
+ ot,
420
429
  {
421
- onItemClick: C,
430
+ onItemClick: M,
422
431
  slots: {
423
- line: (r) => /* @__PURE__ */ e(
424
- ut,
432
+ line: (n) => /* @__PURE__ */ e(
433
+ bt,
425
434
  {
426
- ...r,
427
- lineColor: r.ownerState.color ?? g.palette.primary.main
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
- nt,
443
+ lt,
435
444
  {
436
- onItemClick: C,
437
- slots: U ? {
438
- mark: (r) => /* @__PURE__ */ e(
439
- mt,
445
+ onItemClick: M,
446
+ slots: Z ? {
447
+ mark: (n) => /* @__PURE__ */ e(
448
+ pt,
440
449
  {
441
- handlers: $,
442
- labelBackgroundColor: n,
443
- labelFontColor: h,
444
- labelFontSize: k,
445
- showLabel: H,
446
- style: j?.(r.dataIndex) ?? {},
447
- valueFormatterString: b,
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
- ...r
458
+ ...n
450
459
  }
451
460
  )
452
461
  } : void 0
453
462
  }
454
463
  ),
455
464
  /* @__PURE__ */ e(
456
- rt,
465
+ st,
457
466
  {
458
- barLabel: (r) => Number(r.value) > 0 ? `$${r.value}` : null,
467
+ barLabel: (n) => Number(n.value) > 0 ? `$${n.value}` : null,
459
468
  borderRadius: 10
460
469
  }
461
470
  ),
462
471
  /* @__PURE__ */ e(
463
- at,
472
+ ct,
464
473
  {
465
- disableLine: !X,
466
- disableTicks: !Y,
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
- it,
492
+ dt,
483
493
  {
484
- disableLine: !G,
485
- disableTicks: !O,
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
- T && /* @__PURE__ */ e(ot, { x: "line" }),
501
- E && /* @__PURE__ */ e(
502
- yt,
511
+ Y && /* @__PURE__ */ e(ht, { x: "line" }),
512
+ O && /* @__PURE__ */ e(
513
+ wt,
503
514
  {
504
- customLabels: u,
505
- labels: d,
506
- valueFormatterString: b
515
+ customLabels: c,
516
+ labels: k,
517
+ valueFormatterString: C
507
518
  }
508
519
  )
509
520
  ]
510
521
  }
511
522
  ),
512
- F && /* @__PURE__ */ e(
513
- gt,
523
+ q && /* @__PURE__ */ e(
524
+ Mt,
514
525
  {
515
- average: S ? z : void 0,
516
- customLegendVariant: y,
517
- labels: d,
518
- series: A,
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: Q,
521
- valueFormatterString: b
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
- Rt as L
540
+ zt as L
530
541
  };