@mx-cartographer/experiences 8.0.0-alpha.sms2 → 9.0.0-alpha.mega1

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 (139) hide show
  1. package/CHANGELOG.md +217 -0
  2. package/dist/{Account-Cp30A3ad.mjs → Account-BIKn4XEZ.mjs} +1 -1
  3. package/dist/Account-CMjOp7S2.mjs +118 -0
  4. package/dist/AccountApi-DgZ8ILj1.mjs +19 -0
  5. package/dist/AccountDetailsHeader-BOV91g1o.mjs +95 -0
  6. package/dist/AccountDisplayName-CO7z3v99.mjs +11 -0
  7. package/dist/{AccountFields-CW6cIthP.mjs → AccountFields-BRRH37K1.mjs} +10 -11
  8. package/dist/{AccountListItem-DxmAs98Z.mjs → AccountListItem-Ds5C0mOT.mjs} +4 -4
  9. package/dist/{AccountStore-hIs-yA6W.mjs → AccountStore-BFKvXJSD.mjs} +79 -69
  10. package/dist/{Accounts-DUHkUyK4.mjs → Accounts-CuE8aSZN.mjs} +1 -1
  11. package/dist/{BudgetUtil-CIDAPPPT.mjs → BudgetUtil-CDSOZXem.mjs} +4 -4
  12. package/dist/CategorySelectorDrawer-C4aZYP4N.mjs +418 -0
  13. package/dist/CategoryStore-DEqAnHbi.mjs +186 -0
  14. package/dist/{CategoryUtil-DfVKKkRf.mjs → CategoryUtil-CFHBvaV4.mjs} +1 -1
  15. package/dist/{ConnectionsDrawer-CSo6AFkG.mjs → ConnectionsDrawer-BExzgE16.mjs} +5 -5
  16. package/dist/{CurrencyInput-BrGvhgVK.mjs → CurrencyInput-DDQ4DBrE.mjs} +1 -1
  17. package/dist/{CurrencyText-Dr0EZ7bp.mjs → CurrencyText-C-85TnUF.mjs} +3 -3
  18. package/dist/{DateUtil-CDPZw_-m.mjs → DateUtil-CVsMhbZU.mjs} +3 -3
  19. package/dist/{DebtsStore-hi1cqrRk.mjs → DebtsStore-Dv_T7Dts.mjs} +12 -12
  20. package/dist/{Dialog-CDV0kKxj.mjs → Dialog-CWymUiuO.mjs} +32 -35
  21. package/dist/Drawer-Bet2ZPJo.mjs +176 -0
  22. package/dist/{ExportCsvAction-CQ1grpwo.mjs → ExportCsvAction-oG_Mn66T.mjs} +3 -3
  23. package/dist/{FinstrongStore-dKZOZ2hM.mjs → FinstrongStore-BjFkMTIL.mjs} +6 -6
  24. package/dist/GlobalAccountFilter-BpWlPAl5.mjs +316 -0
  25. package/dist/{GoalStore-CFeAJloA.mjs → GoalStore-Dbjgft2i.mjs} +155 -137
  26. package/dist/{Help-i4OasOO-.mjs → Help-BW_ar-4B.mjs} +2 -2
  27. package/dist/LineChart-DHj-Bufi.mjs +580 -0
  28. package/dist/{ListItemAction-BNCWQAN_.mjs → ListItemAction-Cbr3417C.mjs} +10 -10
  29. package/dist/{ManageIncome-D_qVX5dN.mjs → ManageIncome-DIIyqDTp.mjs} +85 -85
  30. package/dist/{MicroWidgetContainer-BGpNl5ZS.mjs → MicroWidgetContainer-DSyYwRCU.mjs} +2 -2
  31. package/dist/{MiniWidgetContainer-D7MkHG15.mjs → MiniWidgetContainer-DKn7ndO6.mjs} +1 -1
  32. package/dist/NetWorthStore-B6ziBtaH.mjs +168 -0
  33. package/dist/NotificationSettings-e789PcRb.mjs +676 -0
  34. package/dist/{OriginalBalanceAction-62e0mU_3.mjs → OriginalBalanceAction-DFoG79Ba.mjs} +3 -3
  35. package/dist/{RecurringSettings-RfZ8Wuhh.mjs → RecurringSettings-BpCUcE8w.mjs} +4 -4
  36. package/dist/{RecurringTransactionsStore-D3EOKZ2B.mjs → RecurringTransactionsStore-D_--5PWH.mjs} +1 -1
  37. package/dist/{RecurringTransactions-Bhx56aA3.mjs → RepeatingTransaction-C2txVA9O.mjs} +3 -3
  38. package/dist/{SettingsStore-BASMQSIp.mjs → SettingsStore-CInvh-rQ.mjs} +1 -1
  39. package/dist/SpendingData-B7NuTQ9s.mjs +53 -0
  40. package/dist/SpendingLegend-BxefXiQd.mjs +193 -0
  41. package/dist/TransactionDetails-CPwv9xtZ.mjs +1374 -0
  42. package/dist/{TransactionStore-DgLrYW4C.mjs → TransactionStore-D2aMUClq.mjs} +128 -111
  43. package/dist/TrendsStore-BdsYfCc7.mjs +183 -0
  44. package/dist/{User-DqNX2GAK.mjs → User-CulNdZUr.mjs} +21 -20
  45. package/dist/ViewMoreMicroCard-CDWR16_h.mjs +1147 -0
  46. package/dist/WidgetContainer-mzejMmz2.mjs +555 -0
  47. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +1 -0
  48. package/dist/accounts/index.es.js +933 -232
  49. package/dist/accounts/stores/AccountStore.d.ts +6 -2
  50. package/dist/accounts/utils/AccountDetails.d.ts +5 -0
  51. package/dist/analytics/index.es.js +2 -2
  52. package/dist/budgets/components/AddBudgets.d.ts +2 -1
  53. package/dist/budgets/index.es.js +561 -522
  54. package/dist/cashflow/index.es.js +397 -396
  55. package/dist/categories/components/CustomCategories/AddSubcategory.d.ts +1 -0
  56. package/dist/categories/components/CustomCategories/DeleteSubcategory.d.ts +1 -0
  57. package/dist/categories/components/CustomCategories/RenameSubcategory.d.ts +1 -0
  58. package/dist/categories/components/SubcategoryRow.d.ts +1 -0
  59. package/dist/categories/index.es.js +2 -2
  60. package/dist/categories/stores/CategoryStore.d.ts +5 -3
  61. package/dist/common/components/GlobalAccountFilter.d.ts +11 -0
  62. package/dist/common/components/WidgetContainer.d.ts +7 -6
  63. package/dist/common/components/charts/linechart/CustomTooltip.d.ts +6 -1
  64. package/dist/common/components/charts/stackedlinechart/CustomPointTooltip.d.ts +5 -2
  65. package/dist/common/components/globalaccountfilter/GlobalAccountFilterList.d.ts +7 -0
  66. package/dist/common/components/index.d.ts +2 -2
  67. package/dist/common/hooks/index.d.ts +1 -0
  68. package/dist/common/hooks/useWidgetLoadTimer.d.ts +6 -0
  69. package/dist/common/index.es.js +325 -306
  70. package/dist/common/stores/GlobalUiStore.d.ts +7 -4
  71. package/dist/common/types/localization/AccountsCopy.d.ts +6 -0
  72. package/dist/common/types/localization/CategoryCopy.d.ts +3 -0
  73. package/dist/common/types/localization/CommonCopy.d.ts +3 -0
  74. package/dist/common/types/localization/GoalsCopy.d.ts +3 -1
  75. package/dist/common/types/localization/MicroInsightsCopy.d.ts +1 -0
  76. package/dist/common/types/localization/TransactionsCopy.d.ts +4 -0
  77. package/dist/common/types/localization/TrendsCopy.d.ts +4 -0
  78. package/dist/dashboard/index.es.js +95 -125
  79. package/dist/debts/index.es.js +466 -460
  80. package/dist/{exportTransactionsToCSV-BFpuIAXW.mjs → exportTransactionsToCSV-BU1jTY0Q.mjs} +4 -4
  81. package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +4 -5
  82. package/dist/finstrong/index.es.js +1660 -1553
  83. package/dist/goals/index.es.js +716 -677
  84. package/dist/goals/stores/GoalStore.d.ts +2 -0
  85. package/dist/help/index.es.js +14 -10
  86. package/dist/{hooks-C41HAxM5.mjs → hooks-fY_n74f7.mjs} +16 -16
  87. package/dist/investments/index.es.js +464 -457
  88. package/dist/merchants/index.es.js +1 -1
  89. package/dist/microinsights/MicroCardTemplate.d.ts +23 -0
  90. package/dist/microinsights/beaticons/BeatMaterialIcon.d.ts +8 -0
  91. package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +1 -2
  92. package/dist/microinsights/beaticons/index.d.ts +1 -0
  93. package/dist/microinsights/cards/InsightCard.d.ts +0 -2
  94. package/dist/microinsights/cards/ViewMoreMicroCard.d.ts +2 -5
  95. package/dist/microinsights/index.d.ts +2 -2
  96. package/dist/microinsights/index.es.js +824 -14
  97. package/dist/networth/components/NetWorthChart.d.ts +3 -2
  98. package/dist/networth/components/NetWorthList.d.ts +3 -3
  99. package/dist/networth/index.es.js +433 -438
  100. package/dist/networth/stores/NetWorthStore.d.ts +20 -9
  101. package/dist/networth/utils/NetWorthUtils.d.ts +2 -2
  102. package/dist/notifications/index.es.js +5 -5
  103. package/dist/recurringtransactions/index.es.js +331 -325
  104. package/dist/settings/index.es.js +293 -285
  105. package/dist/spending/components/SpendingChart.d.ts +1 -1
  106. package/dist/spending/components/SpendingList.d.ts +1 -1
  107. package/dist/spending/components/SpendingTabLabel.d.ts +1 -0
  108. package/dist/spending/index.es.js +250 -235
  109. package/dist/transactions/index.es.js +288 -281
  110. package/dist/transactions/stores/TransactionStore.d.ts +5 -0
  111. package/dist/trends/components/TrendsTable.d.ts +0 -2
  112. package/dist/trends/index.es.js +876 -802
  113. package/dist/trends/utils/TrendsData.d.ts +1 -0
  114. package/dist/trends/utils/TrendsTable.d.ts +12 -0
  115. package/dist/{useAccountDisplayName-usSZCQ7I.mjs → useAccountDisplayName-DbkgGLdg.mjs} +2 -2
  116. package/dist/useAriaLive-B3_pRUio.mjs +35 -0
  117. package/dist/{useInsightsEnabled-CNjP5cfR.mjs → useInsightsEnabled-dhmXeSyF.mjs} +1 -1
  118. package/dist/useWidgetLoadTimer-CrUzxN-P.mjs +19 -0
  119. package/package.json +26 -21
  120. package/dist/AccountDetailsContent-C1HumFnW.mjs +0 -683
  121. package/dist/AccountDetailsHeader-NMx79DGs.mjs +0 -87
  122. package/dist/CategorySelectorDrawer-DqDAA_5I.mjs +0 -399
  123. package/dist/CategoryStore-MUwRWH9e.mjs +0 -176
  124. package/dist/ConnectDrawer-Dn1MlqLz.mjs +0 -545
  125. package/dist/Drawer-Dqe5EqvA.mjs +0 -163
  126. package/dist/LineChart-bc1D9xBE.mjs +0 -581
  127. package/dist/NetWorthStore-8FFC1Bs0.mjs +0 -150
  128. package/dist/NotificationSettings-BsWiYD94.mjs +0 -672
  129. package/dist/SpendingData-DPQ96k3x.mjs +0 -55
  130. package/dist/SpendingLegend-CZzDb-7d.mjs +0 -193
  131. package/dist/TransactionDetails-Duv1X9ec.mjs +0 -1379
  132. package/dist/TrendsStore-_mRaFUdf.mjs +0 -182
  133. package/dist/ViewMoreMicroCard-CH9E-jOx.mjs +0 -1930
  134. package/dist/WidgetContainer-B1Jzb4XA.mjs +0 -565
  135. package/dist/common/components/accountfilter/AccountFilter.d.ts +0 -20
  136. package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +0 -31
  137. package/dist/common/components/accountfilter/index.d.ts +0 -1
  138. package/dist/microinsights/cards/BaseCard.d.ts +0 -13
  139. package/dist/{ToggleListItem-ciFTiqRS.mjs → Notification-Bs1fdbzI.mjs} +1 -1
@@ -0,0 +1,580 @@
1
+ import { jsxs as a, jsx as e, Fragment as $ } from "react/jsx-runtime";
2
+ import Y from "@mui/material/Box";
3
+ import { useTheme as W } from "@mui/material/styles";
4
+ import { BarPlot as ft } from "@mui/x-charts/BarChart";
5
+ import { ChartContainer as xt } from "@mui/x-charts/ChartContainer";
6
+ import { ChartsAxisHighlight as yt } from "@mui/x-charts/ChartsAxisHighlight";
7
+ import { ChartsReferenceLine as gt } from "@mui/x-charts/ChartsReferenceLine";
8
+ import { useAxesTooltip as pt, ChartsTooltipContainer as bt } from "@mui/x-charts/ChartsTooltip";
9
+ import { ChartsXAxis as kt } from "@mui/x-charts/ChartsXAxis";
10
+ import { ChartsYAxis as Mt } from "@mui/x-charts/ChartsYAxis";
11
+ import { AreaPlot as Ct, LinePlot as wt, MarkPlot as Lt } from "@mui/x-charts/LineChart";
12
+ import { f as p, c as X } from "./NumberFormatting-DjTD0t3W.mjs";
13
+ import { observer as St } from "mobx-react-lite";
14
+ import P from "@mui/material/Stack";
15
+ import { Text as l } from "@mxenabled/mxui";
16
+ import { u as vt } from "./hooks-fY_n74f7.mjs";
17
+ import Dt from "@mui/material/useMediaQuery";
18
+ import { Stack as M, Box as F } from "@mui/material";
19
+ const Tt = ({
20
+ label: t,
21
+ customLegendVariant: r
22
+ }) => {
23
+ const s = r || "Small";
24
+ return typeof t == "string" ? /* @__PURE__ */ e(l, { variant: s, children: t }) : typeof t == "object" && t.amount !== void 0 && t.label ? /* @__PURE__ */ a($, { children: [
25
+ /* @__PURE__ */ e(l, { variant: s, children: t.label }),
26
+ /* @__PURE__ */ e(l, { bold: !0, sx: { marginLeft: 8 }, variant: s, children: p(t.amount, "0,0") })
27
+ ] }) : null;
28
+ }, At = ({
29
+ average: t,
30
+ customLegendVariant: r,
31
+ customLegendBoxSx: s,
32
+ labels: o = [],
33
+ series: b,
34
+ style: x,
35
+ title: h,
36
+ valueFormatterString: u
37
+ }) => {
38
+ const { common: m } = vt(), c = r || "Small";
39
+ return /* @__PURE__ */ a(P, { style: { flexDirection: "row", gap: 24, ...x }, children: [
40
+ b.map((i, f) => {
41
+ const d = o[f];
42
+ return d ? /* @__PURE__ */ a(
43
+ P,
44
+ {
45
+ style: { alignItems: "center", flexDirection: "row", flexWrap: "wrap" },
46
+ children: [
47
+ /* @__PURE__ */ e(
48
+ Y,
49
+ {
50
+ sx: {
51
+ width: 10,
52
+ height: 10,
53
+ backgroundColor: i.color,
54
+ marginRight: 8,
55
+ ...s
56
+ }
57
+ }
58
+ ),
59
+ /* @__PURE__ */ e(Tt, { customLegendVariant: r, label: d })
60
+ ]
61
+ },
62
+ f
63
+ ) : null;
64
+ }),
65
+ t !== void 0 && /* @__PURE__ */ a(P, { sx: { alignItems: "center", flexDirection: "row" }, children: [
66
+ /* @__PURE__ */ e(l, { bold: !0, sx: { marginRight: 8 }, variant: c, children: "– –" }),
67
+ /* @__PURE__ */ a(l, { variant: c, children: [
68
+ h || m.average,
69
+ "  "
70
+ ] }),
71
+ /* @__PURE__ */ e(l, { bold: !0, variant: c, children: u ? p(t, u) : t })
72
+ ] })
73
+ ] });
74
+ }, Bt = St(At), It = (t) => /* @__PURE__ */ a($, { children: [
75
+ /* @__PURE__ */ e("clipPath", { id: t.id, children: /* @__PURE__ */ e("rect", { height: t.height, width: t.width, x: "0", y: "0" }) }),
76
+ /* @__PURE__ */ e("g", { children: /* @__PURE__ */ e(
77
+ "path",
78
+ {
79
+ cursor: "unset",
80
+ d: t.d,
81
+ style: {
82
+ strokeWidth: 2,
83
+ strokeLinejoin: "round",
84
+ fill: "none",
85
+ stroke: t.lineColor ? t.lineColor : t.stroke,
86
+ transition: "opacity 0.2s ease-in, stroke 0.2s ease-in",
87
+ opacity: 1
88
+ }
89
+ }
90
+ ) })
91
+ ] }), Rt = (t) => {
92
+ const r = W(), s = t.showLabel, o = t.style, b = o?.markLabelStyles, x = Number(t.x), h = Number(t.y), u = t.handlers?.onMarkClick, m = t.handlers?.onMouseEnter, c = t.handlers?.onMouseLeave, i = Dt(r.breakpoints.up("sm")), f = t.valueFormatterString ? p(t.yData[t.dataIndex], t.valueFormatterString) : String(t.yData[t.dataIndex]), d = i ? r.typography.Small?.fontSize : r.typography.XSmall?.fontSize, D = 30, T = 24, A = x - D / 2, B = h - 30;
93
+ return /* @__PURE__ */ a($, { children: [
94
+ s && /* @__PURE__ */ a($, { children: [
95
+ t.labelBackgroundColor && /* @__PURE__ */ e(
96
+ "rect",
97
+ {
98
+ fill: t.labelBackgroundColor,
99
+ height: T,
100
+ rx: "3",
101
+ width: D,
102
+ x: A,
103
+ y: B
104
+ }
105
+ ),
106
+ /* @__PURE__ */ e(
107
+ "text",
108
+ {
109
+ className: "MuiLineChart-markLabel",
110
+ dominantBaseline: "middle",
111
+ fill: t.labelFontColor ? t.labelFontColor : r.palette.text.primary,
112
+ style: {
113
+ fontSize: t.labelFontSize ? t.labelFontSize : d,
114
+ ...b
115
+ },
116
+ textAnchor: "middle",
117
+ x,
118
+ y: h - 28 + T / 2,
119
+ children: f
120
+ }
121
+ )
122
+ ] }),
123
+ t.showMark && /* @__PURE__ */ e(
124
+ "path",
125
+ {
126
+ cursor: u ? "pointer" : "unset",
127
+ d: "M4.514,0A4.514,4.514,0,1,1,-4.514,0A4.514,4.514,0,1,1,4.514,0",
128
+ height: "20px",
129
+ onClick: (j) => {
130
+ u?.(j, t.dataIndex);
131
+ },
132
+ onMouseEnter: () => {
133
+ m?.(t.dataIndex);
134
+ },
135
+ onMouseLeave: () => {
136
+ c?.();
137
+ },
138
+ style: {
139
+ fill: o?.fill ? o.fill : r.palette.background.paper,
140
+ stroke: o?.stroke ? o.stroke : r.palette.primary.main,
141
+ strokeWidth: 2,
142
+ transform: `translate(${t.x}px, ${t.y}px)`,
143
+ transformOrigin: `${t.x}px, ${t.y}px`,
144
+ filter: o?.filter ? o.filter : "none"
145
+ },
146
+ width: "20px"
147
+ }
148
+ )
149
+ ] });
150
+ };
151
+ function $t({
152
+ customLabels: t,
153
+ labels: r = [],
154
+ series: s,
155
+ valueFormatterString: o = "0,0"
156
+ }) {
157
+ const b = pt(), x = W(), h = b?.[0];
158
+ if (!h) return null;
159
+ const { axisValue: u, dataIndex: m = 0 } = h;
160
+ if (t) {
161
+ const c = t[m]?.[0]?.header || String(u);
162
+ return /* @__PURE__ */ a(
163
+ M,
164
+ {
165
+ sx: {
166
+ backgroundColor: x.palette.background.paper,
167
+ boxShadow: "0 2px 8px 0 rgba(0, 0, 0, 0.12)",
168
+ flexDirection: "column",
169
+ alignItems: "flex-start",
170
+ borderRadius: "4px",
171
+ width: 250,
172
+ gap: 8,
173
+ px: 16,
174
+ py: 12
175
+ },
176
+ children: [
177
+ /* @__PURE__ */ a(
178
+ M,
179
+ {
180
+ sx: {
181
+ flexDirection: "row",
182
+ justifyContent: "space-between",
183
+ alignItems: "center",
184
+ alignSelf: "stretch",
185
+ gap: 8,
186
+ marginTop: 4
187
+ },
188
+ children: [
189
+ /* @__PURE__ */ e(l, { variant: "H3", children: c }),
190
+ /* @__PURE__ */ e(l, { bold: !0, variant: "H3", children: p(s[0]?.data[m], o) })
191
+ ]
192
+ }
193
+ ),
194
+ t[m]?.some((i) => (typeof i == "string" ? 0 : i.amount) !== 0) ? t[m]?.map((i) => {
195
+ const f = typeof i == "string" ? i : i.label, d = typeof i == "string" ? 0 : i.amount;
196
+ return d === 0 ? null : /* @__PURE__ */ a(
197
+ M,
198
+ {
199
+ sx: {
200
+ flexDirection: "row",
201
+ justifyContent: "space-between",
202
+ alignItems: "center",
203
+ alignSelf: "stretch",
204
+ gap: 8,
205
+ marginTop: 4
206
+ },
207
+ children: [
208
+ /* @__PURE__ */ a(
209
+ M,
210
+ {
211
+ sx: {
212
+ flexDirection: "row",
213
+ alignItems: "center",
214
+ gap: 8,
215
+ flex: 1,
216
+ minWidth: 0
217
+ },
218
+ children: [
219
+ /* @__PURE__ */ e(
220
+ F,
221
+ {
222
+ sx: {
223
+ width: "12px",
224
+ height: "12px",
225
+ backgroundColor: s[0]?.color,
226
+ borderRadius: "4px"
227
+ }
228
+ }
229
+ ),
230
+ /* @__PURE__ */ e(l, { variant: "Body", children: f })
231
+ ]
232
+ }
233
+ ),
234
+ /* @__PURE__ */ e(l, { bold: !0, variant: "Body", children: p(Math.abs(d), o) })
235
+ ]
236
+ },
237
+ f
238
+ );
239
+ }) : /* @__PURE__ */ e(l, { variant: "Body", children: "No data" })
240
+ ]
241
+ }
242
+ );
243
+ }
244
+ return /* @__PURE__ */ a(
245
+ M,
246
+ {
247
+ sx: {
248
+ backgroundColor: x.palette.background.paper,
249
+ boxShadow: "0 2px 8px 0 rgba(0, 0, 0, 0.12)",
250
+ flexDirection: "column",
251
+ alignItems: "flex-start",
252
+ borderRadius: "4px",
253
+ width: 225,
254
+ gap: 8,
255
+ px: 16,
256
+ py: 12
257
+ },
258
+ children: [
259
+ /* @__PURE__ */ e(l, { variant: "H3", children: String(u) }),
260
+ s.map((c, i) => /* @__PURE__ */ a(
261
+ M,
262
+ {
263
+ sx: {
264
+ flexDirection: "row",
265
+ justifyContent: "space-between",
266
+ alignItems: "center",
267
+ alignSelf: "stretch",
268
+ gap: 8,
269
+ marginTop: 4
270
+ },
271
+ children: [
272
+ /* @__PURE__ */ a(M, { sx: { flexDirection: "row", alignItems: "center", gap: 8 }, children: [
273
+ /* @__PURE__ */ e(
274
+ F,
275
+ {
276
+ sx: {
277
+ width: "12px",
278
+ height: "12px",
279
+ backgroundColor: c.color,
280
+ borderRadius: "4px"
281
+ }
282
+ }
283
+ ),
284
+ /* @__PURE__ */ e(l, { variant: "Body", children: typeof r[i] == "string" ? r[i] : r[i]?.label })
285
+ ] }),
286
+ /* @__PURE__ */ e(l, { bold: !0, variant: "Body", children: p(c.data[m], o) })
287
+ ]
288
+ },
289
+ c.id
290
+ ))
291
+ ]
292
+ }
293
+ );
294
+ }
295
+ const _t = ({
296
+ areaColor: t,
297
+ axisColor: r,
298
+ baseline: s = "max",
299
+ chartFor: o,
300
+ chartXaxisSx: b,
301
+ chartYaxisSx: x,
302
+ colors: h,
303
+ curveType: u = "linear",
304
+ customLegendVariant: m,
305
+ customLegendSx: c,
306
+ customLegendBoxSx: i,
307
+ customTooltipLabels: f,
308
+ datasets: d,
309
+ height: D,
310
+ isGraphClippingXAxis: T = !1,
311
+ labels: A,
312
+ labelBackgroundColor: B,
313
+ labelFontColor: j,
314
+ labelFontSize: q,
315
+ margin: Q,
316
+ markHandlers: U,
317
+ markStyles: V,
318
+ minRange: J,
319
+ maxRange: K,
320
+ onItemClick: z,
321
+ peerAverage: E,
322
+ showArea: H = !1,
323
+ showAverage: G = !1,
324
+ showAxisHighlight: Z = !1,
325
+ showBars: N = !1,
326
+ showLegend: _ = !1,
327
+ showMark: tt = !0,
328
+ showMarkLabel: et = !1,
329
+ showTooltip: nt = !1,
330
+ showXAxis: rt = !1,
331
+ showXAxisTicks: at = !1,
332
+ showYAxis: it = !1,
333
+ showYAxisTicks: ot = !1,
334
+ title: lt,
335
+ useCustomMark: st = !1,
336
+ valueFormatterString: k,
337
+ width: ct,
338
+ xAxisScaleType: dt
339
+ }) => {
340
+ const y = W(), ht = d.flat().map((n) => n.x), C = d.flat().map((n) => n.y), O = E || Math.round(C.reduce((n, v) => v + n, 0) / C.length), w = Math.floor(Math.min(...C) / 100) * 100, L = Math.ceil(Math.max(...C) / 100) * 100, I = d.map((n, v) => ({
341
+ type: N ? "bar" : "line",
342
+ curve: u,
343
+ color: N ? y.palette.chart?.chart6 : h[v] ?? y.palette.primary.main,
344
+ data: n.map((g) => g.y),
345
+ area: H,
346
+ baseline: s,
347
+ showMark: !0,
348
+ valueFormatter: (g) => k ? p(g || 0, k) : String(g)
349
+ })), mt = {
350
+ ...{
351
+ top: 60,
352
+ right: 35,
353
+ bottom: 25,
354
+ left: -10
355
+ },
356
+ ...Q
357
+ };
358
+ let S = J ?? w, R = K ?? L;
359
+ if (o === "networthChart") {
360
+ const n = L - w, v = n < L * 0.05 ? 0.25 : 0.2, g = Math.max(n * v, L * 0.015);
361
+ S = w - g < 0 ? w : w - g, R = L + g;
362
+ }
363
+ const ut = () => {
364
+ if (o === "creditOverTime")
365
+ return X(S, 850, 5);
366
+ if (o === "networthChart")
367
+ return X(S, R, 5);
368
+ };
369
+ return /* @__PURE__ */ a(
370
+ Y,
371
+ {
372
+ sx: {
373
+ position: "relative",
374
+ touchAction: "pan-y",
375
+ // Allow vertical scrolling
376
+ "& svg": {
377
+ touchAction: "pan-y",
378
+ // Allow vertical scrolling on SVG
379
+ userSelect: "none"
380
+ // Prevent text selection
381
+ },
382
+ "& .recharts-wrapper": {
383
+ touchAction: "pan-y"
384
+ // For Recharts library specifically
385
+ }
386
+ },
387
+ children: [
388
+ /* @__PURE__ */ a(
389
+ xt,
390
+ {
391
+ height: D,
392
+ margin: mt,
393
+ series: I,
394
+ sx: {
395
+ "& .MuiBarLabel-root": {
396
+ fontSize: 10,
397
+ fontWeight: 600
398
+ },
399
+ "& .MuiAreaElement-root": {
400
+ opacity: 0.15
401
+ },
402
+ "& .MuiChartsAxis-tickLabel > tspan": {
403
+ fontFamily: y.typography.Small.fontFamily
404
+ },
405
+ "& .MuiLineChart-markLabel": {
406
+ fontFamily: y.typography.Small.fontFamily
407
+ }
408
+ },
409
+ width: ct,
410
+ xAxis: [{ data: ht, scaleType: dt || (N ? "band" : "point") }],
411
+ yAxis: [
412
+ {
413
+ tickInterval: ut(),
414
+ min: T ? -22 : S,
415
+ max: R || 100,
416
+ colorMap: H && I.length < 2 ? {
417
+ type: "continuous",
418
+ min: S,
419
+ max: R,
420
+ color: [
421
+ y.palette.background.paper,
422
+ h[0] ?? y.palette.primary.main
423
+ ]
424
+ } : void 0,
425
+ valueFormatter: (n) => k ? p(n, k) : String(n),
426
+ width: 62
427
+ }
428
+ ],
429
+ children: [
430
+ G && /* @__PURE__ */ e(
431
+ gt,
432
+ {
433
+ lineStyle: {
434
+ stroke: B ? y.palette.neutral.main : y.palette.neutral.dark,
435
+ strokeDasharray: "10, 8",
436
+ strokeWidth: 2
437
+ },
438
+ y: O
439
+ }
440
+ ),
441
+ /* @__PURE__ */ e(
442
+ Ct,
443
+ {
444
+ onItemClick: z,
445
+ ...t && {
446
+ slots: {
447
+ area: (n) => /* @__PURE__ */ a("g", { children: [
448
+ /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ a("linearGradient", { id: "customGradient", x1: "0", x2: "0", y1: "0", y2: "1", children: [
449
+ /* @__PURE__ */ e("stop", { offset: "0%", stopColor: t }),
450
+ /* @__PURE__ */ e("stop", { offset: "100%", stopColor: t, stopOpacity: 0.02 })
451
+ ] }) }),
452
+ /* @__PURE__ */ e("path", { ...n, fill: "url(#customGradient)" })
453
+ ] })
454
+ }
455
+ }
456
+ }
457
+ ),
458
+ /* @__PURE__ */ e(
459
+ wt,
460
+ {
461
+ onItemClick: z,
462
+ slots: {
463
+ line: (n) => /* @__PURE__ */ e(
464
+ It,
465
+ {
466
+ ...n,
467
+ lineColor: t ?? n.ownerState.color ?? y.palette.primary.main
468
+ }
469
+ )
470
+ }
471
+ }
472
+ ),
473
+ /* @__PURE__ */ e(
474
+ Lt,
475
+ {
476
+ onItemClick: z,
477
+ slots: st ? {
478
+ mark: (n) => /* @__PURE__ */ e(
479
+ Rt,
480
+ {
481
+ handlers: U,
482
+ labelBackgroundColor: B,
483
+ labelFontColor: j,
484
+ labelFontSize: q,
485
+ showLabel: et,
486
+ showMark: tt || n.dataIndex === d[0].length - 1,
487
+ style: V?.(n.dataIndex) ?? {},
488
+ valueFormatterString: k,
489
+ yData: C,
490
+ ...n
491
+ }
492
+ )
493
+ } : void 0
494
+ }
495
+ ),
496
+ /* @__PURE__ */ e(
497
+ ft,
498
+ {
499
+ barLabel: (n) => Number(n.value) > 0 ? `$${n.value}` : null,
500
+ borderRadius: 10
501
+ }
502
+ ),
503
+ /* @__PURE__ */ e(
504
+ kt,
505
+ {
506
+ disableLine: !rt,
507
+ disableTicks: !at,
508
+ slotProps: r ? {
509
+ axisLine: {
510
+ style: {
511
+ stroke: r
512
+ }
513
+ },
514
+ axisTick: {
515
+ style: {
516
+ stroke: r
517
+ }
518
+ }
519
+ } : {},
520
+ sx: { ...b }
521
+ }
522
+ ),
523
+ /* @__PURE__ */ e(
524
+ Mt,
525
+ {
526
+ disableLine: !it,
527
+ disableTicks: !ot,
528
+ slotProps: r ? {
529
+ axisLine: {
530
+ style: {
531
+ stroke: r
532
+ }
533
+ },
534
+ axisTick: {
535
+ style: {
536
+ stroke: r
537
+ }
538
+ }
539
+ } : {},
540
+ sx: { ...x }
541
+ }
542
+ ),
543
+ Z && /* @__PURE__ */ e(yt, { x: "line" }),
544
+ nt && /* @__PURE__ */ e(bt, { trigger: "axis", children: /* @__PURE__ */ e(
545
+ $t,
546
+ {
547
+ customLabels: f,
548
+ labels: A,
549
+ series: I,
550
+ valueFormatterString: k
551
+ }
552
+ ) })
553
+ ]
554
+ }
555
+ ),
556
+ _ && /* @__PURE__ */ e(
557
+ Bt,
558
+ {
559
+ average: G ? O : void 0,
560
+ customLegendBoxSx: i,
561
+ customLegendVariant: m,
562
+ labels: A,
563
+ series: I,
564
+ style: {
565
+ position: "absolute",
566
+ top: 16,
567
+ left: 16,
568
+ ...c
569
+ },
570
+ title: lt,
571
+ valueFormatterString: k
572
+ }
573
+ )
574
+ ]
575
+ }
576
+ );
577
+ };
578
+ export {
579
+ _t as L
580
+ };
@@ -6,10 +6,10 @@ import C from "@mui/material/ListItemButton";
6
6
  import I from "@mui/material/ListItemText";
7
7
  import L from "@mui/material/Stack";
8
8
  import { ChevronRight as g } from "@mxenabled/mx-icons";
9
- import { Text as a } from "@mxenabled/mxui";
10
- import { D as j } from "./Dialog-CDV0kKxj.mjs";
11
- import { u as P } from "./hooks-C41HAxM5.mjs";
12
- const q = v(
9
+ import { Text as m } from "@mxenabled/mxui";
10
+ import { a as j } from "./Dialog-CWymUiuO.mjs";
11
+ import { u as P } from "./hooks-fY_n74f7.mjs";
12
+ const D = v(
13
13
  ({
14
14
  children: n,
15
15
  isDisabled: i = !1,
@@ -21,7 +21,7 @@ const q = v(
21
21
  secondaryText: y,
22
22
  zeroStateText: o
23
23
  }) => {
24
- const { common: m } = P(), [d, t] = b.useState(!1), h = () => {
24
+ const { common: a } = P(), [d, t] = b.useState(!1), h = () => {
25
25
  t(!1), c?.();
26
26
  }, u = () => {
27
27
  t(!1), l();
@@ -32,9 +32,9 @@ const q = v(
32
32
  I,
33
33
  {
34
34
  primary: /* @__PURE__ */ e(L, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
35
- /* @__PURE__ */ r(a, { variant: "body1", children: f }),
35
+ /* @__PURE__ */ r(m, { variant: "body1", children: f }),
36
36
  /* @__PURE__ */ r(
37
- a,
37
+ m,
38
38
  {
39
39
  bold: !0,
40
40
  color: o ? "primary.main" : "text.primary",
@@ -52,12 +52,12 @@ const q = v(
52
52
  /* @__PURE__ */ r(
53
53
  j,
54
54
  {
55
- copy: { title: p, close_aria: m.close_aria },
55
+ copy: { title: p, close_aria: a.close_aria },
56
56
  disablePrimaryButton: s,
57
57
  isOpen: d,
58
58
  onClose: h,
59
59
  onPrimaryAction: u,
60
- primaryText: m.save_button,
60
+ primaryText: a.save_button,
61
61
  children: n
62
62
  }
63
63
  )
@@ -65,5 +65,5 @@ const q = v(
65
65
  }
66
66
  );
67
67
  export {
68
- q as L
68
+ D as L
69
69
  };