@mx-cartographer/experiences 7.12.17 → 7.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/dist/{AccountDetailsHeader-BkEF1gO-.mjs → AccountDetailsHeader-D9gbTbUt.mjs} +31 -31
- package/dist/{AccountFields-C_dcdCM7.mjs → AccountFields-CxqONzjY.mjs} +6 -6
- package/dist/AccountListItem-LcJVJysf.mjs +90 -0
- package/dist/{AccountStore-ypdfueW9.mjs → AccountStore-BNlTuxWN.mjs} +1 -1
- package/dist/{BudgetUtil--_QXyszn.mjs → BudgetUtil-CLhRnCoX.mjs} +75 -75
- package/dist/{CashflowStore-DEdQJU5i.mjs → CashflowStore-D3MKniVM.mjs} +11 -11
- package/dist/{CategorySelectorDrawer-wfUTIbLR.mjs → CategorySelectorDrawer-DYHNBd2v.mjs} +31 -31
- package/dist/{ConnectDrawer-CioFo6Wy.mjs → ConnectDrawer-C0wjwcJt.mjs} +1 -1
- package/dist/{ConnectionsDrawer-DqhSaMrJ.mjs → ConnectionsDrawer-IA7vnv1J.mjs} +1 -1
- package/dist/{Drawer-DV4NTsFg.mjs → Drawer-Bbe4AMB1.mjs} +5 -5
- package/dist/{GoalStore-0bd-Upkc.mjs → GoalStore-DB58sKTC.mjs} +8 -8
- package/dist/HeaderCell-P8w6CmfO.mjs +6 -0
- package/dist/{Help-CDu1Fvrc.mjs → Help-CpLfyvPv.mjs} +24 -24
- package/dist/{LineChart-B1qbKR8q.mjs → LineChart-DBSlRSEm.mjs} +102 -102
- package/dist/{ManageIncome-BnWWjP2g.mjs → ManageIncome-QvqN555q.mjs} +62 -62
- package/dist/{MiniWidgetContainer-Cu72GNsE.mjs → MiniWidgetContainer-xLWSV6Wz.mjs} +13 -13
- package/dist/{NotificationSettings-BH2yOwTB.mjs → NotificationSettings-DU3vJh5J.mjs} +139 -139
- package/dist/{OriginalBalanceAction-BM6rT_Cn.mjs → OriginalBalanceAction-DjpvVVFz.mjs} +6 -6
- package/dist/{RecurringSettings-BmXtfHtK.mjs → RecurringSettings-DdOcok2e.mjs} +2 -2
- package/dist/{RecurringTransactions-CYNpe_RS.mjs → RecurringTransactions-BOzBqfdg.mjs} +11 -11
- package/dist/{RecurringTransactionsStore-BD-OfVZ-.mjs → RecurringTransactionsStore-CcfPS0d3.mjs} +1 -1
- package/dist/{SpendingLegend-Bq6aXMNh.mjs → SpendingLegend-CJjjTGBw.mjs} +76 -76
- package/dist/{StatusIndicator-BV3oFzxo.mjs → StatusIndicator-CIKUOoN_.mjs} +53 -53
- package/dist/{TransactionDetails-DYlTwSDt.mjs → TransactionDetails-BpcWeXNU.mjs} +350 -350
- package/dist/{WidgetContainer-B0ncgABX.mjs → WidgetContainer-D_iaToWJ.mjs} +12 -12
- package/dist/accounts/index.es.js +107 -107
- package/dist/analytics/index.es.js +18 -18
- package/dist/budgets/index.es.js +182 -182
- package/dist/cashflow/index.es.js +223 -223
- package/dist/categories/index.es.js +1 -1
- package/dist/common/index.es.js +54 -64
- package/dist/dashboard/index.es.js +9 -9
- package/dist/debts/index.es.js +469 -469
- package/dist/finstrong/index.es.js +68 -68
- package/dist/goals/index.es.js +437 -437
- package/dist/help/index.es.js +2 -2
- package/dist/insights/index.es.js +159 -159
- package/dist/investments/index.es.js +292 -292
- package/dist/merchants/index.es.js +12 -12
- package/dist/networth/index.es.js +175 -168
- package/dist/notifications/index.es.js +13 -13
- package/dist/recurringtransactions/index.es.js +69 -69
- package/dist/settings/index.es.js +187 -187
- package/dist/spending/index.es.js +58 -58
- package/dist/transactions/index.es.js +70 -70
- package/dist/trends/index.es.js +15 -15
- package/package.json +1 -1
- package/dist/AccountListItem-BAf03YhK.mjs +0 -90
- package/dist/HeaderCell-DjuifqHJ.mjs +0 -6
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { jsxs as i, jsx as e, Fragment as
|
|
2
|
-
import
|
|
3
|
-
import { useTheme as
|
|
4
|
-
import { BarPlot as
|
|
5
|
-
import { ChartContainer as
|
|
1
|
+
import { jsxs as i, jsx as e, Fragment as I } from "react/jsx-runtime";
|
|
2
|
+
import U from "@mui/material/Box";
|
|
3
|
+
import { useTheme as N } from "@mui/material/styles";
|
|
4
|
+
import { BarPlot as yt } from "@mui/x-charts/BarChart";
|
|
5
|
+
import { ChartContainer as gt } from "@mui/x-charts/ChartContainer";
|
|
6
6
|
import { ChartsAxisHighlight as pt } from "@mui/x-charts/ChartsAxisHighlight";
|
|
7
7
|
import { ChartsReferenceLine as Lt } from "@mui/x-charts/ChartsReferenceLine";
|
|
8
|
-
import { useAxesTooltip as
|
|
8
|
+
import { useAxesTooltip as bt, ChartsTooltipContainer as kt } from "@mui/x-charts/ChartsTooltip";
|
|
9
9
|
import { ChartsXAxis as Mt } from "@mui/x-charts/ChartsXAxis";
|
|
10
10
|
import { ChartsYAxis as wt } from "@mui/x-charts/ChartsYAxis";
|
|
11
|
-
import { AreaPlot as
|
|
11
|
+
import { AreaPlot as Ct, LinePlot as vt, MarkPlot as St } from "@mui/x-charts/LineChart";
|
|
12
12
|
import { f as p, c as O } from "./NumberFormatting-QCaNwbjv.mjs";
|
|
13
13
|
import { observer as At } from "mobx-react-lite";
|
|
14
|
-
import
|
|
14
|
+
import z from "@mui/material/Stack";
|
|
15
15
|
import { Text as s } from "@mxenabled/mxui";
|
|
16
16
|
import { u as Dt } from "./hooks-BxkfR-Ff.mjs";
|
|
17
17
|
import Tt from "@mui/material/useMediaQuery";
|
|
18
|
-
import { Stack as
|
|
19
|
-
const
|
|
18
|
+
import { Stack as k, Box as Rt } from "@mui/material";
|
|
19
|
+
const B = {
|
|
20
20
|
circle: "M4.514,0A4.514,4.514,0,1,1,-4.514,0A4.514,4.514,0,1,1,4.514,0",
|
|
21
21
|
square: "M-4,-4L4,-4L4,4L-4,4Z",
|
|
22
22
|
wye: "M0.6,0.6L0.6,4.5L-0.6,4.5L-0.6,0.6L-4,2.6L-3.4,1.5L-0.6,-0.1L-3.4,-1.5L-4,-2.6L-0.6,-0.6L-0.6,-4.5L0.6,-4.5L0.6,-0.6L4,-2.6L3.4,-1.5L0.6,-0.1L3.4,1.5L4,2.6L0.6,0.6Z",
|
|
@@ -24,7 +24,7 @@ const z = {
|
|
|
24
24
|
cross: "M-1.5,-5L1.5,-5L1.5,-1.5L5,-1.5L5,1.5L1.5,1.5L1.5,5L-1.5,5L-1.5,1.5L-5,1.5L-5,-1.5L-1.5,-1.5Z",
|
|
25
25
|
triangle: "M0,-5L4.33,3.5L-4.33,3.5Z",
|
|
26
26
|
diamond: "M0,-5.5L3.9,0L0,5.5L-3.9,0Z"
|
|
27
|
-
},
|
|
27
|
+
}, _ = [
|
|
28
28
|
"circle",
|
|
29
29
|
"square",
|
|
30
30
|
"wye",
|
|
@@ -33,19 +33,19 @@ const z = {
|
|
|
33
33
|
"triangle",
|
|
34
34
|
"diamond"
|
|
35
35
|
];
|
|
36
|
-
function
|
|
37
|
-
return
|
|
36
|
+
function Z(t) {
|
|
37
|
+
return _[t % _.length];
|
|
38
38
|
}
|
|
39
|
-
const
|
|
39
|
+
const Pt = ({
|
|
40
40
|
label: t,
|
|
41
41
|
customLegendVariant: r
|
|
42
42
|
}) => {
|
|
43
|
-
const l = r || "
|
|
44
|
-
return typeof t == "string" ? /* @__PURE__ */ e(s, { variant: l, children: t }) : typeof t == "object" && t.amount !== void 0 && t.label ? /* @__PURE__ */ i(
|
|
43
|
+
const l = r || "body2";
|
|
44
|
+
return typeof t == "string" ? /* @__PURE__ */ e(s, { variant: l, children: t }) : typeof t == "object" && t.amount !== void 0 && t.label ? /* @__PURE__ */ i(I, { children: [
|
|
45
45
|
/* @__PURE__ */ e(s, { variant: l, children: t.label }),
|
|
46
46
|
/* @__PURE__ */ e(s, { bold: !0, sx: { marginLeft: 8 }, variant: l, children: p(t.amount, "0,0") })
|
|
47
47
|
] }) : null;
|
|
48
|
-
},
|
|
48
|
+
}, Et = ({
|
|
49
49
|
average: t,
|
|
50
50
|
customLegendVariant: r,
|
|
51
51
|
customLegendBoxSx: l,
|
|
@@ -55,17 +55,17 @@ const Bt = ({
|
|
|
55
55
|
title: h,
|
|
56
56
|
valueFormatterString: f
|
|
57
57
|
}) => {
|
|
58
|
-
const { common: m } = Dt(), c = r || "
|
|
59
|
-
return /* @__PURE__ */ i(
|
|
58
|
+
const { common: m } = Dt(), c = r || "body2";
|
|
59
|
+
return /* @__PURE__ */ i(z, { style: { flexDirection: "row", gap: 24, ...x }, children: [
|
|
60
60
|
L.map((a, u) => {
|
|
61
61
|
const d = o[u];
|
|
62
62
|
return d ? /* @__PURE__ */ i(
|
|
63
|
-
|
|
63
|
+
z,
|
|
64
64
|
{
|
|
65
65
|
style: { alignItems: "center", flexDirection: "row", flexWrap: "wrap" },
|
|
66
66
|
children: [
|
|
67
67
|
l !== void 0 ? /* @__PURE__ */ e(
|
|
68
|
-
|
|
68
|
+
U,
|
|
69
69
|
{
|
|
70
70
|
sx: {
|
|
71
71
|
width: 10,
|
|
@@ -86,7 +86,7 @@ const Bt = ({
|
|
|
86
86
|
children: /* @__PURE__ */ e(
|
|
87
87
|
"path",
|
|
88
88
|
{
|
|
89
|
-
d:
|
|
89
|
+
d: B[Z(u)],
|
|
90
90
|
fill: a.color,
|
|
91
91
|
stroke: a.color,
|
|
92
92
|
strokeWidth: 1
|
|
@@ -94,13 +94,13 @@ const Bt = ({
|
|
|
94
94
|
)
|
|
95
95
|
}
|
|
96
96
|
),
|
|
97
|
-
/* @__PURE__ */ e(
|
|
97
|
+
/* @__PURE__ */ e(Pt, { customLegendVariant: r, label: d })
|
|
98
98
|
]
|
|
99
99
|
},
|
|
100
100
|
u
|
|
101
101
|
) : null;
|
|
102
102
|
}),
|
|
103
|
-
t !== void 0 && /* @__PURE__ */ i(
|
|
103
|
+
t !== void 0 && /* @__PURE__ */ i(z, { sx: { alignItems: "center", flexDirection: "row" }, children: [
|
|
104
104
|
/* @__PURE__ */ e(s, { bold: !0, sx: { marginRight: 8 }, variant: c, children: "– –" }),
|
|
105
105
|
/* @__PURE__ */ i(s, { variant: c, children: [
|
|
106
106
|
h || m.average,
|
|
@@ -109,7 +109,7 @@ const Bt = ({
|
|
|
109
109
|
/* @__PURE__ */ e(s, { bold: !0, variant: c, children: f ? p(t, f) : t })
|
|
110
110
|
] })
|
|
111
111
|
] });
|
|
112
|
-
},
|
|
112
|
+
}, It = At(Et), $t = (t) => /* @__PURE__ */ i(I, { children: [
|
|
113
113
|
/* @__PURE__ */ e("clipPath", { id: t.id, children: /* @__PURE__ */ e("rect", { height: t.height, width: t.width, x: "0", y: "0" }) }),
|
|
114
114
|
/* @__PURE__ */ e("g", { children: /* @__PURE__ */ e(
|
|
115
115
|
"path",
|
|
@@ -126,10 +126,10 @@ const Bt = ({
|
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
) })
|
|
129
|
-
] }),
|
|
130
|
-
const r =
|
|
131
|
-
return /* @__PURE__ */ i(
|
|
132
|
-
l && /* @__PURE__ */ i(
|
|
129
|
+
] }), Wt = (t) => {
|
|
130
|
+
const r = N(), l = t.showLabel, o = t.style, L = o?.markLabelStyles, x = Number(t.x), h = Number(t.y), f = t.handlers?.onMarkClick, m = t.handlers?.onMouseEnter, c = t.handlers?.onMouseLeave, a = Tt(r.breakpoints.up("sm")), u = t.valueFormatterString ? p(t.yData[t.dataIndex], t.valueFormatterString) : String(t.yData[t.dataIndex]), d = a ? r.typography.body2?.fontSize : r.typography.caption?.fontSize, A = 30, D = 24, T = x - A / 2, R = h - 30;
|
|
131
|
+
return /* @__PURE__ */ i(I, { children: [
|
|
132
|
+
l && /* @__PURE__ */ i(I, { children: [
|
|
133
133
|
t.labelBackgroundColor && /* @__PURE__ */ e(
|
|
134
134
|
"rect",
|
|
135
135
|
{
|
|
@@ -162,10 +162,10 @@ const Bt = ({
|
|
|
162
162
|
"path",
|
|
163
163
|
{
|
|
164
164
|
cursor: f ? "pointer" : "unset",
|
|
165
|
-
d:
|
|
165
|
+
d: B[t.shape ?? "circle"],
|
|
166
166
|
height: "20px",
|
|
167
|
-
onClick: (
|
|
168
|
-
f?.(
|
|
167
|
+
onClick: ($) => {
|
|
168
|
+
f?.($, t.dataIndex);
|
|
169
169
|
},
|
|
170
170
|
onMouseEnter: () => {
|
|
171
171
|
m?.(t.dataIndex);
|
|
@@ -186,19 +186,19 @@ const Bt = ({
|
|
|
186
186
|
)
|
|
187
187
|
] });
|
|
188
188
|
};
|
|
189
|
-
function
|
|
189
|
+
function jt({
|
|
190
190
|
customLabels: t,
|
|
191
191
|
labels: r = [],
|
|
192
192
|
series: l,
|
|
193
193
|
valueFormatterString: o = "0,0"
|
|
194
194
|
}) {
|
|
195
|
-
const L =
|
|
195
|
+
const L = bt(), x = N(), h = L?.[0];
|
|
196
196
|
if (!h) return null;
|
|
197
197
|
const { axisValue: f, dataIndex: m = 0 } = h;
|
|
198
198
|
if (t) {
|
|
199
199
|
const c = t[m]?.[0]?.header || String(f);
|
|
200
200
|
return /* @__PURE__ */ i(
|
|
201
|
-
|
|
201
|
+
k,
|
|
202
202
|
{
|
|
203
203
|
sx: {
|
|
204
204
|
backgroundColor: x.palette.background.paper,
|
|
@@ -213,7 +213,7 @@ function Ht({
|
|
|
213
213
|
},
|
|
214
214
|
children: [
|
|
215
215
|
/* @__PURE__ */ i(
|
|
216
|
-
|
|
216
|
+
k,
|
|
217
217
|
{
|
|
218
218
|
sx: {
|
|
219
219
|
flexDirection: "row",
|
|
@@ -224,15 +224,15 @@ function Ht({
|
|
|
224
224
|
marginTop: 4
|
|
225
225
|
},
|
|
226
226
|
children: [
|
|
227
|
-
/* @__PURE__ */ e(s, { variant: "
|
|
228
|
-
/* @__PURE__ */ e(s, { bold: !0, variant: "
|
|
227
|
+
/* @__PURE__ */ e(s, { variant: "h3", children: c }),
|
|
228
|
+
/* @__PURE__ */ e(s, { bold: !0, variant: "h3", children: p(l[0]?.data[m], o) })
|
|
229
229
|
]
|
|
230
230
|
}
|
|
231
231
|
),
|
|
232
232
|
t[m]?.some((a) => (typeof a == "string" ? 0 : a.amount) !== 0) ? t[m]?.map((a) => {
|
|
233
233
|
const u = typeof a == "string" ? a : a.label, d = typeof a == "string" ? 0 : a.amount;
|
|
234
234
|
return d === 0 ? null : /* @__PURE__ */ i(
|
|
235
|
-
|
|
235
|
+
k,
|
|
236
236
|
{
|
|
237
237
|
sx: {
|
|
238
238
|
flexDirection: "row",
|
|
@@ -244,7 +244,7 @@ function Ht({
|
|
|
244
244
|
},
|
|
245
245
|
children: [
|
|
246
246
|
/* @__PURE__ */ i(
|
|
247
|
-
|
|
247
|
+
k,
|
|
248
248
|
{
|
|
249
249
|
sx: {
|
|
250
250
|
flexDirection: "row",
|
|
@@ -265,22 +265,22 @@ function Ht({
|
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
267
|
),
|
|
268
|
-
/* @__PURE__ */ e(s, { variant: "
|
|
268
|
+
/* @__PURE__ */ e(s, { variant: "body1", children: u })
|
|
269
269
|
]
|
|
270
270
|
}
|
|
271
271
|
),
|
|
272
|
-
/* @__PURE__ */ e(s, { bold: !0, variant: "
|
|
272
|
+
/* @__PURE__ */ e(s, { bold: !0, variant: "body1", children: p(Math.abs(d), o) })
|
|
273
273
|
]
|
|
274
274
|
},
|
|
275
275
|
u
|
|
276
276
|
);
|
|
277
|
-
}) : /* @__PURE__ */ e(s, { variant: "
|
|
277
|
+
}) : /* @__PURE__ */ e(s, { variant: "body1", children: "No data" })
|
|
278
278
|
]
|
|
279
279
|
}
|
|
280
280
|
);
|
|
281
281
|
}
|
|
282
282
|
return /* @__PURE__ */ i(
|
|
283
|
-
|
|
283
|
+
k,
|
|
284
284
|
{
|
|
285
285
|
sx: {
|
|
286
286
|
backgroundColor: x.palette.background.paper,
|
|
@@ -294,9 +294,9 @@ function Ht({
|
|
|
294
294
|
py: 12
|
|
295
295
|
},
|
|
296
296
|
children: [
|
|
297
|
-
/* @__PURE__ */ e(s, { variant: "
|
|
297
|
+
/* @__PURE__ */ e(s, { variant: "h3", children: String(f) }),
|
|
298
298
|
l.map((c, a) => /* @__PURE__ */ i(
|
|
299
|
-
|
|
299
|
+
k,
|
|
300
300
|
{
|
|
301
301
|
sx: {
|
|
302
302
|
flexDirection: "row",
|
|
@@ -307,11 +307,11 @@ function Ht({
|
|
|
307
307
|
marginTop: 4
|
|
308
308
|
},
|
|
309
309
|
children: [
|
|
310
|
-
/* @__PURE__ */ i(
|
|
311
|
-
/* @__PURE__ */ e("svg", { "aria-hidden": "true", height: 12, viewBox: "-6 -6 12 12", width: 12, children: /* @__PURE__ */ e("path", { d:
|
|
312
|
-
/* @__PURE__ */ e(s, { variant: "
|
|
310
|
+
/* @__PURE__ */ i(k, { sx: { flexDirection: "row", alignItems: "center", gap: 8 }, children: [
|
|
311
|
+
/* @__PURE__ */ e("svg", { "aria-hidden": "true", height: 12, viewBox: "-6 -6 12 12", width: 12, children: /* @__PURE__ */ e("path", { d: B[Z(a)], fill: c.color }) }),
|
|
312
|
+
/* @__PURE__ */ e(s, { variant: "body1", children: typeof r[a] == "string" ? r[a] : r[a]?.label })
|
|
313
313
|
] }),
|
|
314
|
-
/* @__PURE__ */ e(s, { bold: !0, variant: "
|
|
314
|
+
/* @__PURE__ */ e(s, { bold: !0, variant: "body1", children: p(c.data[m], o) })
|
|
315
315
|
]
|
|
316
316
|
},
|
|
317
317
|
c.id
|
|
@@ -338,19 +338,19 @@ const ne = ({
|
|
|
338
338
|
isGraphClippingXAxis: D = !1,
|
|
339
339
|
labels: T,
|
|
340
340
|
labelBackgroundColor: R,
|
|
341
|
-
labelFontColor:
|
|
342
|
-
labelFontSize:
|
|
341
|
+
labelFontColor: $,
|
|
342
|
+
labelFontSize: X,
|
|
343
343
|
margin: Y,
|
|
344
344
|
markHandlers: K,
|
|
345
345
|
markStyles: Q,
|
|
346
346
|
minRange: V,
|
|
347
347
|
maxRange: J,
|
|
348
|
-
onItemClick:
|
|
349
|
-
peerAverage:
|
|
348
|
+
onItemClick: W,
|
|
349
|
+
peerAverage: H,
|
|
350
350
|
showArea: G = !1,
|
|
351
351
|
showAverage: q = !1,
|
|
352
352
|
showAxisHighlight: tt = !1,
|
|
353
|
-
showBars:
|
|
353
|
+
showBars: j = !1,
|
|
354
354
|
showLegend: et = !1,
|
|
355
355
|
showMark: nt = !0,
|
|
356
356
|
showMarkLabel: rt = !1,
|
|
@@ -361,20 +361,20 @@ const ne = ({
|
|
|
361
361
|
showYAxisTicks: st = !1,
|
|
362
362
|
title: ct,
|
|
363
363
|
useCustomMark: dt = !1,
|
|
364
|
-
valueFormatterString:
|
|
364
|
+
valueFormatterString: b,
|
|
365
365
|
width: ht,
|
|
366
366
|
xAxisScaleType: mt
|
|
367
367
|
}) => {
|
|
368
|
-
const
|
|
369
|
-
type:
|
|
368
|
+
const y = N(), ut = d.flat().map((n) => n.x), w = d.flat().map((n) => n.y), F = H || Math.round(w.reduce((n, M) => M + n, 0) / w.length), C = Math.floor(Math.min(...w) / 100) * 100, v = Math.ceil(Math.max(...w) / 100) * 100, P = d.map((n, M) => ({
|
|
369
|
+
type: j ? "bar" : "line",
|
|
370
370
|
curve: f,
|
|
371
|
-
color:
|
|
372
|
-
data: n.map((
|
|
371
|
+
color: j ? y.palette.chart?.chart6 : h[M] ?? y.palette.primary.main,
|
|
372
|
+
data: n.map((g) => g.y),
|
|
373
373
|
area: G,
|
|
374
374
|
baseline: l,
|
|
375
375
|
showMark: !0,
|
|
376
|
-
shape:
|
|
377
|
-
valueFormatter: (
|
|
376
|
+
shape: Z(M),
|
|
377
|
+
valueFormatter: (g) => b ? p(g || 0, b) : String(g)
|
|
378
378
|
})), ft = {
|
|
379
379
|
...{
|
|
380
380
|
top: 60,
|
|
@@ -384,19 +384,19 @@ const ne = ({
|
|
|
384
384
|
},
|
|
385
385
|
...Y
|
|
386
386
|
};
|
|
387
|
-
let
|
|
387
|
+
let S = V ?? C, E = J ?? v;
|
|
388
388
|
if (o === "networthChart") {
|
|
389
|
-
const n =
|
|
390
|
-
|
|
389
|
+
const n = v - C, M = n < v * 0.05 ? 0.25 : 0.2, g = Math.max(n * M, v * 0.015);
|
|
390
|
+
S = C - g < 0 ? C : C - g, E = v + g;
|
|
391
391
|
}
|
|
392
392
|
const xt = () => {
|
|
393
393
|
if (o === "creditOverTime")
|
|
394
|
-
return O(
|
|
394
|
+
return O(S, 850, 5);
|
|
395
395
|
if (o === "networthChart")
|
|
396
|
-
return O(
|
|
396
|
+
return O(S, E, 5);
|
|
397
397
|
};
|
|
398
398
|
return /* @__PURE__ */ i(
|
|
399
|
-
|
|
399
|
+
U,
|
|
400
400
|
{
|
|
401
401
|
sx: {
|
|
402
402
|
position: "relative",
|
|
@@ -415,11 +415,11 @@ const ne = ({
|
|
|
415
415
|
},
|
|
416
416
|
children: [
|
|
417
417
|
/* @__PURE__ */ i(
|
|
418
|
-
|
|
418
|
+
gt,
|
|
419
419
|
{
|
|
420
420
|
height: A,
|
|
421
421
|
margin: ft,
|
|
422
|
-
series:
|
|
422
|
+
series: P,
|
|
423
423
|
sx: {
|
|
424
424
|
"& .MuiBarLabel-root": {
|
|
425
425
|
fontSize: 10,
|
|
@@ -429,29 +429,29 @@ const ne = ({
|
|
|
429
429
|
opacity: 0.15
|
|
430
430
|
},
|
|
431
431
|
"& .MuiChartsAxis-tickLabel > tspan": {
|
|
432
|
-
fontFamily:
|
|
432
|
+
fontFamily: y.typography.body2.fontFamily
|
|
433
433
|
},
|
|
434
434
|
"& .MuiLineChart-markLabel": {
|
|
435
|
-
fontFamily:
|
|
435
|
+
fontFamily: y.typography.body2.fontFamily
|
|
436
436
|
}
|
|
437
437
|
},
|
|
438
438
|
width: ht,
|
|
439
|
-
xAxis: [{ data: ut, scaleType: mt || (
|
|
439
|
+
xAxis: [{ data: ut, scaleType: mt || (j ? "band" : "point") }],
|
|
440
440
|
yAxis: [
|
|
441
441
|
{
|
|
442
442
|
tickInterval: xt(),
|
|
443
|
-
min: D ? -22 :
|
|
444
|
-
max:
|
|
445
|
-
colorMap: G &&
|
|
443
|
+
min: D ? -22 : S,
|
|
444
|
+
max: E || 100,
|
|
445
|
+
colorMap: G && P.length < 2 ? {
|
|
446
446
|
type: "continuous",
|
|
447
|
-
min:
|
|
448
|
-
max:
|
|
447
|
+
min: S,
|
|
448
|
+
max: E,
|
|
449
449
|
color: [
|
|
450
|
-
|
|
451
|
-
h[0] ??
|
|
450
|
+
y.palette.background.paper,
|
|
451
|
+
h[0] ?? y.palette.primary.main
|
|
452
452
|
]
|
|
453
453
|
} : void 0,
|
|
454
|
-
valueFormatter: (n) =>
|
|
454
|
+
valueFormatter: (n) => b ? p(n, b) : String(n),
|
|
455
455
|
width: 62
|
|
456
456
|
}
|
|
457
457
|
],
|
|
@@ -460,7 +460,7 @@ const ne = ({
|
|
|
460
460
|
Lt,
|
|
461
461
|
{
|
|
462
462
|
lineStyle: {
|
|
463
|
-
stroke: R ?
|
|
463
|
+
stroke: R ? y.palette.neutral.main : y.palette.neutral.dark,
|
|
464
464
|
strokeDasharray: "10, 8",
|
|
465
465
|
strokeWidth: 2
|
|
466
466
|
},
|
|
@@ -468,9 +468,9 @@ const ne = ({
|
|
|
468
468
|
}
|
|
469
469
|
),
|
|
470
470
|
/* @__PURE__ */ e(
|
|
471
|
-
|
|
471
|
+
Ct,
|
|
472
472
|
{
|
|
473
|
-
onItemClick:
|
|
473
|
+
onItemClick: W,
|
|
474
474
|
...t && {
|
|
475
475
|
slots: {
|
|
476
476
|
area: (n) => /* @__PURE__ */ i("g", { children: [
|
|
@@ -485,36 +485,36 @@ const ne = ({
|
|
|
485
485
|
}
|
|
486
486
|
),
|
|
487
487
|
/* @__PURE__ */ e(
|
|
488
|
-
|
|
488
|
+
vt,
|
|
489
489
|
{
|
|
490
|
-
onItemClick:
|
|
490
|
+
onItemClick: W,
|
|
491
491
|
slots: {
|
|
492
492
|
line: (n) => /* @__PURE__ */ e(
|
|
493
|
-
|
|
493
|
+
$t,
|
|
494
494
|
{
|
|
495
495
|
...n,
|
|
496
|
-
lineColor: t ?? n.ownerState.color ??
|
|
496
|
+
lineColor: t ?? n.ownerState.color ?? y.palette.primary.main
|
|
497
497
|
}
|
|
498
498
|
)
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
501
|
),
|
|
502
502
|
/* @__PURE__ */ e(
|
|
503
|
-
|
|
503
|
+
St,
|
|
504
504
|
{
|
|
505
|
-
onItemClick:
|
|
505
|
+
onItemClick: W,
|
|
506
506
|
slots: dt ? {
|
|
507
507
|
mark: (n) => /* @__PURE__ */ e(
|
|
508
|
-
|
|
508
|
+
Wt,
|
|
509
509
|
{
|
|
510
510
|
handlers: K,
|
|
511
511
|
labelBackgroundColor: R,
|
|
512
|
-
labelFontColor:
|
|
513
|
-
labelFontSize:
|
|
512
|
+
labelFontColor: $,
|
|
513
|
+
labelFontSize: X,
|
|
514
514
|
showLabel: rt,
|
|
515
515
|
showMark: nt || n.dataIndex === d[0].length - 1,
|
|
516
516
|
style: Q?.(n.dataIndex) ?? {},
|
|
517
|
-
valueFormatterString:
|
|
517
|
+
valueFormatterString: b,
|
|
518
518
|
yData: w,
|
|
519
519
|
...n
|
|
520
520
|
}
|
|
@@ -523,7 +523,7 @@ const ne = ({
|
|
|
523
523
|
}
|
|
524
524
|
),
|
|
525
525
|
/* @__PURE__ */ e(
|
|
526
|
-
|
|
526
|
+
yt,
|
|
527
527
|
{
|
|
528
528
|
barLabel: (n) => Number(n.value) > 0 ? `$${n.value}` : null,
|
|
529
529
|
borderRadius: 10
|
|
@@ -570,26 +570,26 @@ const ne = ({
|
|
|
570
570
|
}
|
|
571
571
|
),
|
|
572
572
|
tt && /* @__PURE__ */ e(pt, { x: "line" }),
|
|
573
|
-
at && /* @__PURE__ */ e(
|
|
574
|
-
|
|
573
|
+
at && /* @__PURE__ */ e(kt, { trigger: "axis", children: /* @__PURE__ */ e(
|
|
574
|
+
jt,
|
|
575
575
|
{
|
|
576
576
|
customLabels: u,
|
|
577
577
|
labels: T,
|
|
578
|
-
series:
|
|
579
|
-
valueFormatterString:
|
|
578
|
+
series: P,
|
|
579
|
+
valueFormatterString: b
|
|
580
580
|
}
|
|
581
581
|
) })
|
|
582
582
|
]
|
|
583
583
|
}
|
|
584
584
|
),
|
|
585
585
|
et && /* @__PURE__ */ e(
|
|
586
|
-
|
|
586
|
+
It,
|
|
587
587
|
{
|
|
588
588
|
average: q ? F : void 0,
|
|
589
589
|
customLegendBoxSx: a,
|
|
590
590
|
customLegendVariant: m,
|
|
591
591
|
labels: T,
|
|
592
|
-
series:
|
|
592
|
+
series: P,
|
|
593
593
|
style: {
|
|
594
594
|
position: "absolute",
|
|
595
595
|
top: 16,
|
|
@@ -597,7 +597,7 @@ const ne = ({
|
|
|
597
597
|
...c
|
|
598
598
|
},
|
|
599
599
|
title: ct,
|
|
600
|
-
valueFormatterString:
|
|
600
|
+
valueFormatterString: b
|
|
601
601
|
}
|
|
602
602
|
)
|
|
603
603
|
]
|