@mx-cartographer/experiences 7.1.4-ram1-alpha-finstrong-credit-score-graph-check → 7.1.5

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