@mx-cartographer/experiences 9.1.0-alpha.bb1 → 9.1.1

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 (248) hide show
  1. package/CHANGELOG.md +80 -0
  2. package/README.md +10 -10
  3. package/dist/Account-DR7Plrqy.mjs +119 -0
  4. package/dist/Account-DR7Plrqy.mjs.map +1 -0
  5. package/dist/AccountDetailsDrawer-C1hhmlmI.mjs +922 -0
  6. package/dist/AccountDetailsDrawer-C1hhmlmI.mjs.map +1 -0
  7. package/dist/AccountDetailsHeader-BliEZhz7.mjs +230 -0
  8. package/dist/AccountDetailsHeader-BliEZhz7.mjs.map +1 -0
  9. package/dist/AccountUtils-Cbh8r9cP.mjs +29 -0
  10. package/dist/AccountUtils-Cbh8r9cP.mjs.map +1 -0
  11. package/dist/Analytics-CkYXKvco.mjs +54 -0
  12. package/dist/Analytics-CkYXKvco.mjs.map +1 -0
  13. package/dist/Analytics-WeZYytR0.mjs +140 -0
  14. package/dist/Analytics-WeZYytR0.mjs.map +1 -0
  15. package/dist/ApiEndpoints-DXwIYNUV.mjs +50 -0
  16. package/dist/ApiEndpoints-DXwIYNUV.mjs.map +1 -0
  17. package/dist/BeatMaterialIcon-1KOfRZrA.mjs +27 -0
  18. package/dist/BeatMaterialIcon-1KOfRZrA.mjs.map +1 -0
  19. package/dist/BudgetUtil-Bg2AQJpQ.mjs +75 -0
  20. package/dist/BudgetUtil-Bg2AQJpQ.mjs.map +1 -0
  21. package/dist/Category-DEKZGLYe.mjs +302 -0
  22. package/dist/Category-DEKZGLYe.mjs.map +1 -0
  23. package/dist/CategorySelectorDrawer-NJsFsKP1.mjs +431 -0
  24. package/dist/CategorySelectorDrawer-NJsFsKP1.mjs.map +1 -0
  25. package/dist/Connect-BH0Pt6zc.mjs +43 -0
  26. package/dist/Connect-BH0Pt6zc.mjs.map +1 -0
  27. package/dist/ConnectCard-D7uxoH5Y.mjs +55 -0
  28. package/dist/ConnectCard-D7uxoH5Y.mjs.map +1 -0
  29. package/dist/ConnectDrawer-CW4LA3H3.mjs +58 -0
  30. package/dist/ConnectDrawer-CW4LA3H3.mjs.map +1 -0
  31. package/dist/ConnectionsDrawer-CZU9ku-k.mjs +54 -0
  32. package/dist/ConnectionsDrawer-CZU9ku-k.mjs.map +1 -0
  33. package/dist/CurrencyDialog-DumQCTPO.mjs +374 -0
  34. package/dist/CurrencyDialog-DumQCTPO.mjs.map +1 -0
  35. package/dist/CurrencyInput-DaGEQaLW.mjs +88 -0
  36. package/dist/CurrencyInput-DaGEQaLW.mjs.map +1 -0
  37. package/dist/CurrencyText-CCbE6MmF.mjs +21 -0
  38. package/dist/CurrencyText-CCbE6MmF.mjs.map +1 -0
  39. package/dist/DateFormats-HudZ3Bjs.mjs +65 -0
  40. package/dist/DateFormats-HudZ3Bjs.mjs.map +1 -0
  41. package/dist/DateUtil-CzBmbjmA.mjs +75 -0
  42. package/dist/DateUtil-CzBmbjmA.mjs.map +1 -0
  43. package/dist/DebtUtils-i4pI2Uoe.mjs +154 -0
  44. package/dist/DebtUtils-i4pI2Uoe.mjs.map +1 -0
  45. package/dist/Dialog-Bvd2n8hz.mjs +67 -0
  46. package/dist/Dialog-Bvd2n8hz.mjs.map +1 -0
  47. package/dist/Donut-SzzfZDHF.mjs +89 -0
  48. package/dist/Donut-SzzfZDHF.mjs.map +1 -0
  49. package/dist/Drawer-DsnW2o0v.mjs +175 -0
  50. package/dist/Drawer-DsnW2o0v.mjs.map +1 -0
  51. package/dist/EmbeddedCard-DH8vQ3qN.mjs +859 -0
  52. package/dist/EmbeddedCard-DH8vQ3qN.mjs.map +1 -0
  53. package/dist/EmptyState-CJUDc3kD.mjs +85 -0
  54. package/dist/EmptyState-CJUDc3kD.mjs.map +1 -0
  55. package/dist/Error-Dtw6yxkf.mjs +85 -0
  56. package/dist/Error-Dtw6yxkf.mjs.map +1 -0
  57. package/dist/ErrorBoundary-CsdOcnJ9.mjs +24 -0
  58. package/dist/ErrorBoundary-CsdOcnJ9.mjs.map +1 -0
  59. package/dist/ExportCsvAction-C9KWH3Az.mjs +25 -0
  60. package/dist/ExportCsvAction-C9KWH3Az.mjs.map +1 -0
  61. package/dist/GlobalAccountFilter-BhzR5Vb1.mjs +230 -0
  62. package/dist/GlobalAccountFilter-BhzR5Vb1.mjs.map +1 -0
  63. package/dist/GlobalCopyApi-wcnDUzMV.mjs +129 -0
  64. package/dist/GlobalCopyApi-wcnDUzMV.mjs.map +1 -0
  65. package/dist/GoalsUtil-C9EnLWvC.mjs +108 -0
  66. package/dist/GoalsUtil-C9EnLWvC.mjs.map +1 -0
  67. package/dist/HeaderCell-P8w6CmfO.mjs +7 -0
  68. package/dist/HeaderCell-P8w6CmfO.mjs.map +1 -0
  69. package/dist/Help-CkQTjORd.mjs +300 -0
  70. package/dist/Help-CkQTjORd.mjs.map +1 -0
  71. package/dist/Help-aERwhajy.mjs +3210 -0
  72. package/dist/Help-aERwhajy.mjs.map +1 -0
  73. package/dist/IconBacking-DgT8DCeh.mjs +40 -0
  74. package/dist/IconBacking-DgT8DCeh.mjs.map +1 -0
  75. package/dist/InformationTooltip-4su8bn1e.mjs +42 -0
  76. package/dist/InformationTooltip-4su8bn1e.mjs.map +1 -0
  77. package/dist/InvestmentUtil-BItV7uEs.mjs +135 -0
  78. package/dist/InvestmentUtil-BItV7uEs.mjs.map +1 -0
  79. package/dist/LineChart-CUfiH86G.mjs +613 -0
  80. package/dist/LineChart-CUfiH86G.mjs.map +1 -0
  81. package/dist/ListItemAction-BqUCLj_w.mjs +70 -0
  82. package/dist/ListItemAction-BqUCLj_w.mjs.map +1 -0
  83. package/dist/ListItemRow-kH1rn8Xu.mjs +68 -0
  84. package/dist/ListItemRow-kH1rn8Xu.mjs.map +1 -0
  85. package/dist/ListItemWrapper-DRse79Iu.mjs +44 -0
  86. package/dist/ListItemWrapper-DRse79Iu.mjs.map +1 -0
  87. package/dist/Loader-CxeBwuPG.mjs +22 -0
  88. package/dist/Loader-CxeBwuPG.mjs.map +1 -0
  89. package/dist/Localization-DnoVyBNK.mjs +39 -0
  90. package/dist/Localization-DnoVyBNK.mjs.map +1 -0
  91. package/dist/ManageIncome-Be9WHv-s.mjs +906 -0
  92. package/dist/ManageIncome-Be9WHv-s.mjs.map +1 -0
  93. package/dist/MicroWidgetContainer-B2NnKBgW.mjs +46 -0
  94. package/dist/MicroWidgetContainer-B2NnKBgW.mjs.map +1 -0
  95. package/dist/MiniWidgetContainer-Bmv_WeUd.mjs +67 -0
  96. package/dist/MiniWidgetContainer-Bmv_WeUd.mjs.map +1 -0
  97. package/dist/NetWorthUtils-Dj7CgAg2.mjs +96 -0
  98. package/dist/NetWorthUtils-Dj7CgAg2.mjs.map +1 -0
  99. package/dist/Notification-DTNYSd8P.mjs +8 -0
  100. package/dist/Notification-DTNYSd8P.mjs.map +1 -0
  101. package/dist/NotificationSettings-CW7okUrk.mjs +678 -0
  102. package/dist/NotificationSettings-CW7okUrk.mjs.map +1 -0
  103. package/dist/NotificationUtils-BRGFTePr.mjs +24 -0
  104. package/dist/NotificationUtils-BRGFTePr.mjs.map +1 -0
  105. package/dist/NumberFormatting--XMeeBfr.mjs +50 -0
  106. package/dist/NumberFormatting--XMeeBfr.mjs.map +1 -0
  107. package/dist/OriginalBalanceAction-YrvxBYAl.mjs +115 -0
  108. package/dist/OriginalBalanceAction-YrvxBYAl.mjs.map +1 -0
  109. package/dist/RecurringSettings-kRqAViNn.mjs +89 -0
  110. package/dist/RecurringSettings-kRqAViNn.mjs.map +1 -0
  111. package/dist/RecurringTransactionsUtil-CHWmqvW5.mjs +299 -0
  112. package/dist/RecurringTransactionsUtil-CHWmqvW5.mjs.map +1 -0
  113. package/dist/ResponsiveButton-CC9F_Ezk.mjs +46 -0
  114. package/dist/ResponsiveButton-CC9F_Ezk.mjs.map +1 -0
  115. package/dist/SearchBox-Cpgu_gdO.mjs +51 -0
  116. package/dist/SearchBox-Cpgu_gdO.mjs.map +1 -0
  117. package/dist/Select-CSpkK5cR.mjs +62 -0
  118. package/dist/Select-CSpkK5cR.mjs.map +1 -0
  119. package/dist/SelectionBox-B4xELRgp.mjs +49 -0
  120. package/dist/SelectionBox-B4xELRgp.mjs.map +1 -0
  121. package/dist/SingleSegmentDonut-7Uy6VEld.mjs +70 -0
  122. package/dist/SingleSegmentDonut-7Uy6VEld.mjs.map +1 -0
  123. package/dist/Sizes-DISGrlUg.mjs +7 -0
  124. package/dist/Sizes-DISGrlUg.mjs.map +1 -0
  125. package/dist/SkeletonLoader-BaNboJjD.mjs +39 -0
  126. package/dist/SkeletonLoader-BaNboJjD.mjs.map +1 -0
  127. package/dist/SpendingData-Fii_xATx.mjs +54 -0
  128. package/dist/SpendingData-Fii_xATx.mjs.map +1 -0
  129. package/dist/SpendingLegend-CxvNOg3c.mjs +204 -0
  130. package/dist/SpendingLegend-CxvNOg3c.mjs.map +1 -0
  131. package/dist/StatusBar-CPfSXe80.mjs +31 -0
  132. package/dist/StatusBar-CPfSXe80.mjs.map +1 -0
  133. package/dist/TabContentContainer-B0eYJP5p.mjs +49 -0
  134. package/dist/TabContentContainer-B0eYJP5p.mjs.map +1 -0
  135. package/dist/ToggleListItem-Dl1lXNwj.mjs +92 -0
  136. package/dist/ToggleListItem-Dl1lXNwj.mjs.map +1 -0
  137. package/dist/TransactionDetails-roZ5xLq8.mjs +1708 -0
  138. package/dist/TransactionDetails-roZ5xLq8.mjs.map +1 -0
  139. package/dist/TransactionUtils-BphBJBbU.mjs +235 -0
  140. package/dist/TransactionUtils-BphBJBbU.mjs.map +1 -0
  141. package/dist/TrendsUtil-D9z3kIj_.mjs +70 -0
  142. package/dist/TrendsUtil-D9z3kIj_.mjs.map +1 -0
  143. package/dist/UserStore-BjnNCO5a.mjs +3121 -0
  144. package/dist/UserStore-BjnNCO5a.mjs.map +1 -0
  145. package/dist/ViewMoreMicroCard-fnwE0hqd.mjs +1280 -0
  146. package/dist/ViewMoreMicroCard-fnwE0hqd.mjs.map +1 -0
  147. package/dist/WidgetContainer-DJnp6t6c.mjs +483 -0
  148. package/dist/WidgetContainer-DJnp6t6c.mjs.map +1 -0
  149. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsDrawer.d.ts +6 -0
  150. package/dist/accounts/index.d.ts +1 -0
  151. package/dist/accounts/index.es.js +784 -12
  152. package/dist/accounts/index.es.js.map +1 -0
  153. package/dist/analytics/index.es.js +140 -155
  154. package/dist/analytics/index.es.js.map +1 -0
  155. package/dist/budgets/index.es.js +1267 -1317
  156. package/dist/budgets/index.es.js.map +1 -0
  157. package/dist/cashflow/context/hooks.d.ts +7 -6
  158. package/dist/cashflow/index.es.js +944 -1076
  159. package/dist/cashflow/index.es.js.map +1 -0
  160. package/dist/categories/index.es.js +5 -4
  161. package/dist/categories/index.es.js.map +1 -0
  162. package/dist/common/components/DataRow.d.ts +1 -0
  163. package/dist/common/components/ListItemWrapper.d.ts +2 -1
  164. package/dist/common/constants/Analytics.d.ts +3 -0
  165. package/dist/common/index.es.js +310 -101
  166. package/dist/common/index.es.js.map +1 -0
  167. package/dist/core/index.es.js +105 -80
  168. package/dist/core/index.es.js.map +1 -0
  169. package/dist/core/stores/CashflowStore.d.ts +8 -7
  170. package/dist/core/stores/RecurringTransactionsStore.d.ts +53 -1
  171. package/dist/core/stores/TransactionStore.d.ts +1 -0
  172. package/dist/core/types/localization/RecurringCopy.d.ts +14 -1
  173. package/dist/core/types/localization/SpendingCopy.d.ts +1 -0
  174. package/dist/core/utils/AccountUtils.d.ts +8 -0
  175. package/dist/core/utils/DateUtil.d.ts +2 -0
  176. package/dist/core/utils/RecurringTransactionsUtil.d.ts +2 -1
  177. package/dist/dashboard/index.es.js +142 -185
  178. package/dist/dashboard/index.es.js.map +1 -0
  179. package/dist/debts/index.es.js +1273 -1384
  180. package/dist/debts/index.es.js.map +1 -0
  181. package/dist/finstrong/index.es.js +3473 -3367
  182. package/dist/finstrong/index.es.js.map +1 -0
  183. package/dist/goals/index.es.js +984 -1103
  184. package/dist/goals/index.es.js.map +1 -0
  185. package/dist/help/index.es.js +26 -3
  186. package/dist/help/index.es.js.map +1 -0
  187. package/dist/hooks-97sNJ_lf.mjs +78 -0
  188. package/dist/hooks-97sNJ_lf.mjs.map +1 -0
  189. package/dist/insights/components/insights/WeeklyNoSpendDays/BubbleWeek.d.ts +4 -1
  190. package/dist/insights/components/insights/WeeklyNoSpendDays/WeeklyNoSpendDays.d.ts +4 -2
  191. package/dist/insights/index.es.js +4871 -93
  192. package/dist/insights/index.es.js.map +1 -0
  193. package/dist/investments/index.es.js +1523 -1533
  194. package/dist/investments/index.es.js.map +1 -0
  195. package/dist/merchants/index.es.js +65 -75
  196. package/dist/merchants/index.es.js.map +1 -0
  197. package/dist/microinsights/index.es.js +826 -15
  198. package/dist/microinsights/index.es.js.map +1 -0
  199. package/dist/networth/index.es.js +504 -550
  200. package/dist/networth/index.es.js.map +1 -0
  201. package/dist/notifications/index.es.js +162 -169
  202. package/dist/notifications/index.es.js.map +1 -0
  203. package/dist/recurringtransactions/components/RecurringTransactionDetails.d.ts +3 -2
  204. package/dist/recurringtransactions/components/RecurringTransactionDetailsDrawer.d.ts +3 -0
  205. package/dist/recurringtransactions/components/RecurringTransactionList.d.ts +11 -0
  206. package/dist/recurringtransactions/components/UpcomingRecurrenceCard.d.ts +8 -0
  207. package/dist/recurringtransactions/components/actions/LinkTransactionDrawer.d.ts +10 -0
  208. package/dist/recurringtransactions/components/actions/MarkAsPaidDialog.d.ts +7 -0
  209. package/dist/recurringtransactions/components/actions/MarkAsUnpaidDialog.d.ts +7 -0
  210. package/dist/recurringtransactions/index.es.js +1012 -10
  211. package/dist/recurringtransactions/index.es.js.map +1 -0
  212. package/dist/settings/index.es.js +892 -13
  213. package/dist/settings/index.es.js.map +1 -0
  214. package/dist/spending/index.es.js +457 -400
  215. package/dist/spending/index.es.js.map +1 -0
  216. package/dist/transactions/components/shared/transactionlist/TransactionRow.d.ts +1 -0
  217. package/dist/transactions/index.es.js +604 -10
  218. package/dist/transactions/index.es.js.map +1 -0
  219. package/dist/trends/index.es.js +1408 -1268
  220. package/dist/trends/index.es.js.map +1 -0
  221. package/dist/useAccountDisplayName-BsiXA0qf.mjs +24 -0
  222. package/dist/useAccountDisplayName-BsiXA0qf.mjs.map +1 -0
  223. package/dist/useAriaLive-MkYebyUR.mjs +36 -0
  224. package/dist/useAriaLive-MkYebyUR.mjs.map +1 -0
  225. package/dist/useDimensions-CeDR9V8N.mjs +37 -0
  226. package/dist/useDimensions-CeDR9V8N.mjs.map +1 -0
  227. package/dist/useInsightsEnabled-D5Sdm0TJ.mjs +12 -0
  228. package/dist/useInsightsEnabled-D5Sdm0TJ.mjs.map +1 -0
  229. package/dist/useScreenSize-mWpmnh5w.mjs +37 -0
  230. package/dist/useScreenSize-mWpmnh5w.mjs.map +1 -0
  231. package/dist/useWidgetLoadTimer-B0tB-yzL.mjs +20 -0
  232. package/dist/useWidgetLoadTimer-B0tB-yzL.mjs.map +1 -0
  233. package/package.json +30 -30
  234. package/dist/Analytics-BKzTPees.mjs +0 -61
  235. package/dist/GlobalCopyApi-BeXzaDH9.mjs +0 -487
  236. package/dist/HeaderCell-EhCUSjvj.mjs +0 -10
  237. package/dist/Loader-BlVzRtUd.mjs +0 -73
  238. package/dist/MiniWidgetContainer-COwnjfy7.mjs +0 -110
  239. package/dist/OriginalBalanceAction-sbiqaxok.mjs +0 -110
  240. package/dist/SpendingLegend-D15ixlQ1.mjs +0 -222
  241. package/dist/accounts-DkyAiLpg.mjs +0 -15632
  242. package/dist/core-BexP5oiV.mjs +0 -4047
  243. package/dist/help-CctDYrAH.mjs +0 -2308
  244. package/dist/insights/components/insights/P2pCategorization/_tests_/P2pCategorizationMultipleTransaction.test.d.ts +0 -0
  245. package/dist/insights/components/insights/P2pCategorization/_tests_/P2pCategorizationSingleTransaction.test.d.ts +0 -0
  246. package/dist/microinsights-CRf3ChsJ.mjs +0 -1814
  247. package/dist/recurringtransactions-gbJ_NA8u.mjs +0 -1564
  248. package/dist/settings-ZMHe439l.mjs +0 -1526
@@ -0,0 +1,613 @@
1
+ import { jsxs as i, jsx as e, Fragment as E } from "react/jsx-runtime";
2
+ import U from "@mui/material/Box";
3
+ import { useTheme as N } from "@mui/material/styles";
4
+ import { BarPlot as gt } from "@mui/x-charts/BarChart";
5
+ import { ChartContainer as pt } from "@mui/x-charts/ChartContainer";
6
+ import { ChartsAxisHighlight as Lt } from "@mui/x-charts/ChartsAxisHighlight";
7
+ import { ChartsReferenceLine as bt } from "@mui/x-charts/ChartsReferenceLine";
8
+ import { useAxesTooltip as kt, ChartsTooltipContainer as Mt } from "@mui/x-charts/ChartsTooltip";
9
+ import { ChartsXAxis as wt } from "@mui/x-charts/ChartsXAxis";
10
+ import { ChartsYAxis as Ct } from "@mui/x-charts/ChartsYAxis";
11
+ import { AreaPlot as vt, LinePlot as St, MarkPlot as At } from "@mui/x-charts/LineChart";
12
+ import { observer as Dt } from "mobx-react-lite";
13
+ import z from "@mui/material/Stack";
14
+ import { Text as d } from "@mxenabled/mxui";
15
+ import { f as L, c as O } from "./NumberFormatting--XMeeBfr.mjs";
16
+ import { u as Tt } from "./hooks-97sNJ_lf.mjs";
17
+ import Rt from "@mui/material/useMediaQuery";
18
+ import { Stack as M, Box as $t } from "@mui/material";
19
+ const B = {
20
+ circle: "M4.514,0A4.514,4.514,0,1,1,-4.514,0A4.514,4.514,0,1,1,4.514,0",
21
+ square: "M-4,-4L4,-4L4,4L-4,4Z",
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",
23
+ star: "M0,-5L1.1,-1.5L4.8,-1.5L1.8,0.9L2.9,4.5L0,2.2L-2.9,4.5L-1.8,0.9L-4.8,-1.5L-1.1,-1.5Z",
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
+ triangle: "M0,-5L4.33,3.5L-4.33,3.5Z",
26
+ diamond: "M0,-5.5L3.9,0L0,5.5L-3.9,0Z"
27
+ }, _ = [
28
+ "circle",
29
+ "square",
30
+ "wye",
31
+ "star",
32
+ "cross",
33
+ "triangle",
34
+ "diamond"
35
+ ];
36
+ function Z(t) {
37
+ return _[t % _.length];
38
+ }
39
+ const Pt = ({
40
+ label: t,
41
+ customLegendVariant: a
42
+ }) => {
43
+ const l = a || "body2";
44
+ return typeof t == "string" ? /* @__PURE__ */ e(d, { variant: l, children: t }) : typeof t == "object" && t.amount !== void 0 && t.label ? /* @__PURE__ */ i(E, { children: [
45
+ /* @__PURE__ */ e(d, { variant: l, children: t.label }),
46
+ /* @__PURE__ */ e(d, { bold: !0, sx: { marginLeft: 8 }, variant: l, children: L(t.amount, "0,0") })
47
+ ] }) : null;
48
+ }, Et = ({
49
+ average: t,
50
+ customLegendVariant: a,
51
+ customLegendBoxSx: l,
52
+ labels: o = [],
53
+ series: f,
54
+ style: y,
55
+ title: m,
56
+ valueFormatterString: u
57
+ }) => {
58
+ const { common: g } = Tt(), s = a || "body2";
59
+ return /* @__PURE__ */ i(z, { style: { flexDirection: "row", gap: 24, ...y }, children: [
60
+ f.map((c, n) => {
61
+ const h = o[n];
62
+ return h ? /* @__PURE__ */ i(
63
+ z,
64
+ {
65
+ style: { alignItems: "center", flexDirection: "row", flexWrap: "wrap" },
66
+ children: [
67
+ l !== void 0 ? /* @__PURE__ */ e(
68
+ U,
69
+ {
70
+ sx: {
71
+ width: 10,
72
+ height: 10,
73
+ backgroundColor: c.color,
74
+ marginRight: 8,
75
+ ...l
76
+ }
77
+ }
78
+ ) : /* @__PURE__ */ e(
79
+ "svg",
80
+ {
81
+ "aria-hidden": "true",
82
+ height: 14,
83
+ style: { marginRight: 8, flexShrink: 0 },
84
+ viewBox: "-6 -6 12 12",
85
+ width: 14,
86
+ children: /* @__PURE__ */ e(
87
+ "path",
88
+ {
89
+ d: B[Z(n)],
90
+ fill: c.color,
91
+ stroke: c.color,
92
+ strokeWidth: 1
93
+ }
94
+ )
95
+ }
96
+ ),
97
+ /* @__PURE__ */ e(Pt, { customLegendVariant: a, label: h })
98
+ ]
99
+ },
100
+ n
101
+ ) : null;
102
+ }),
103
+ t !== void 0 && /* @__PURE__ */ i(z, { sx: { alignItems: "center", flexDirection: "row" }, children: [
104
+ /* @__PURE__ */ e(d, { bold: !0, sx: { marginRight: 8 }, variant: s, children: "– –" }),
105
+ /* @__PURE__ */ i(d, { variant: s, children: [
106
+ m || g.average,
107
+ "  "
108
+ ] }),
109
+ /* @__PURE__ */ e(d, { bold: !0, variant: s, children: u ? L(t, u) : t })
110
+ ] })
111
+ ] });
112
+ }, It = Dt(Et), Wt = (t) => /* @__PURE__ */ i(E, { children: [
113
+ /* @__PURE__ */ e("clipPath", { id: t.id, children: /* @__PURE__ */ e("rect", { height: t.height, width: t.width, x: "0", y: "0" }) }),
114
+ /* @__PURE__ */ e("g", { children: /* @__PURE__ */ e(
115
+ "path",
116
+ {
117
+ cursor: "unset",
118
+ d: t.d,
119
+ style: {
120
+ strokeWidth: 2,
121
+ strokeLinejoin: "round",
122
+ fill: "none",
123
+ stroke: t.lineColor ? t.lineColor : t.stroke,
124
+ transition: "opacity 0.2s ease-in, stroke 0.2s ease-in",
125
+ opacity: 1
126
+ }
127
+ }
128
+ ) })
129
+ ] }), jt = (t) => {
130
+ const a = N(), l = t.showLabel, o = t.style, f = o?.markLabelStyles, y = Number(t.x), m = Number(t.y), u = t.handlers?.onMarkClick, g = t.handlers?.onMouseEnter, s = t.handlers?.onMouseLeave, c = Rt(a.breakpoints.up("sm")), n = t.valueFormatterString ? L(t.yData[t.dataIndex], t.valueFormatterString) : String(t.yData[t.dataIndex]), h = c ? a.typography.body2?.fontSize : a.typography.caption?.fontSize, b = 30, D = 24, I = y - b / 2, T = m - 30;
131
+ return /* @__PURE__ */ i(E, { children: [
132
+ l && /* @__PURE__ */ i(E, { children: [
133
+ t.labelBackgroundColor && /* @__PURE__ */ e(
134
+ "rect",
135
+ {
136
+ fill: t.labelBackgroundColor,
137
+ height: D,
138
+ rx: "3",
139
+ width: b,
140
+ x: I,
141
+ y: T
142
+ }
143
+ ),
144
+ /* @__PURE__ */ e(
145
+ "text",
146
+ {
147
+ className: "MuiLineChart-markLabel",
148
+ dominantBaseline: "middle",
149
+ fill: t.labelFontColor ? t.labelFontColor : a.palette.text.primary,
150
+ style: {
151
+ fontSize: t.labelFontSize ? t.labelFontSize : h,
152
+ ...f
153
+ },
154
+ textAnchor: "middle",
155
+ x: y,
156
+ y: m - 28 + D / 2,
157
+ children: n
158
+ }
159
+ )
160
+ ] }),
161
+ t.showMark && /* @__PURE__ */ e(
162
+ "path",
163
+ {
164
+ cursor: u ? "pointer" : "unset",
165
+ d: B[t.shape ?? "circle"],
166
+ height: "20px",
167
+ onClick: (R) => {
168
+ u?.(R, t.dataIndex);
169
+ },
170
+ onMouseEnter: () => {
171
+ g?.(t.dataIndex);
172
+ },
173
+ onMouseLeave: () => {
174
+ s?.();
175
+ },
176
+ style: {
177
+ fill: o?.fill ? o.fill : a.palette.background.paper,
178
+ stroke: o?.stroke ? o.stroke : a.palette.primary.main,
179
+ strokeWidth: 2,
180
+ transform: `translate(${t.x}px, ${t.y}px)`,
181
+ transformOrigin: `${t.x}px, ${t.y}px`,
182
+ filter: o?.filter ? o.filter : "none"
183
+ },
184
+ width: "20px"
185
+ }
186
+ )
187
+ ] });
188
+ };
189
+ function zt({
190
+ customLabels: t,
191
+ isCurrency: a = !0,
192
+ labels: l = [],
193
+ series: o,
194
+ valueFormatterString: f = "0,0"
195
+ }) {
196
+ const y = kt(), m = N(), u = y?.[0];
197
+ if (!u) return null;
198
+ const { axisValue: g, dataIndex: s = 0 } = u;
199
+ if (t) {
200
+ const c = t[s]?.[0]?.header || String(g);
201
+ return /* @__PURE__ */ i(
202
+ M,
203
+ {
204
+ sx: {
205
+ backgroundColor: m.palette.background.paper,
206
+ boxShadow: "0 2px 8px 0 rgba(0, 0, 0, 0.12)",
207
+ flexDirection: "column",
208
+ alignItems: "flex-start",
209
+ borderRadius: "4px",
210
+ width: 250,
211
+ gap: 8,
212
+ px: 16,
213
+ py: 12
214
+ },
215
+ children: [
216
+ /* @__PURE__ */ i(
217
+ M,
218
+ {
219
+ sx: {
220
+ flexDirection: "row",
221
+ justifyContent: "space-between",
222
+ alignItems: "center",
223
+ alignSelf: "stretch",
224
+ gap: 8,
225
+ marginTop: 4
226
+ },
227
+ children: [
228
+ /* @__PURE__ */ e(d, { variant: "h3", children: c }),
229
+ /* @__PURE__ */ e(d, { bold: !0, variant: "h3", children: L(o[0]?.data[s], f) })
230
+ ]
231
+ }
232
+ ),
233
+ t[s]?.some((n) => (typeof n == "string" ? 0 : n.amount) !== 0) ? t[s]?.map((n) => {
234
+ const h = typeof n == "string" ? n : n.label, b = typeof n == "string" ? 0 : n.amount;
235
+ return b === 0 ? null : /* @__PURE__ */ i(
236
+ M,
237
+ {
238
+ sx: {
239
+ flexDirection: "row",
240
+ justifyContent: "space-between",
241
+ alignItems: "center",
242
+ alignSelf: "stretch",
243
+ gap: 8,
244
+ marginTop: 4
245
+ },
246
+ children: [
247
+ /* @__PURE__ */ i(
248
+ M,
249
+ {
250
+ sx: {
251
+ flexDirection: "row",
252
+ alignItems: "center",
253
+ gap: 8,
254
+ flex: 1,
255
+ minWidth: 0
256
+ },
257
+ children: [
258
+ /* @__PURE__ */ e(
259
+ $t,
260
+ {
261
+ sx: {
262
+ width: "12px",
263
+ height: "12px",
264
+ backgroundColor: o[0]?.color,
265
+ borderRadius: "4px"
266
+ }
267
+ }
268
+ ),
269
+ /* @__PURE__ */ e(d, { variant: "body1", children: h })
270
+ ]
271
+ }
272
+ ),
273
+ /* @__PURE__ */ e(d, { bold: !0, variant: "body1", children: L(Math.abs(b), f) })
274
+ ]
275
+ },
276
+ h
277
+ );
278
+ }) : /* @__PURE__ */ e(d, { variant: "body1", children: "No data" })
279
+ ]
280
+ }
281
+ );
282
+ }
283
+ return /* @__PURE__ */ i(
284
+ M,
285
+ {
286
+ sx: {
287
+ backgroundColor: m.palette.background.paper,
288
+ boxShadow: "0 2px 8px 0 rgba(0, 0, 0, 0.12)",
289
+ flexDirection: "column",
290
+ alignItems: "flex-start",
291
+ borderRadius: "4px",
292
+ width: 225,
293
+ gap: 8,
294
+ px: 16,
295
+ py: 12
296
+ },
297
+ children: [
298
+ /* @__PURE__ */ e(d, { variant: "h3", children: String(g) }),
299
+ o.map((c, n) => /* @__PURE__ */ i(
300
+ M,
301
+ {
302
+ sx: {
303
+ flexDirection: "row",
304
+ justifyContent: "space-between",
305
+ alignItems: "center",
306
+ alignSelf: "stretch",
307
+ gap: 8,
308
+ marginTop: 4
309
+ },
310
+ children: [
311
+ /* @__PURE__ */ i(M, { sx: { flexDirection: "row", alignItems: "center", gap: 8 }, children: [
312
+ /* @__PURE__ */ e("svg", { "aria-hidden": "true", height: 12, viewBox: "-6 -6 12 12", width: 12, children: /* @__PURE__ */ e("path", { d: B[Z(n)], fill: c.color }) }),
313
+ /* @__PURE__ */ e(d, { variant: "body1", children: typeof l[n] == "string" ? l[n] : l[n]?.label })
314
+ ] }),
315
+ /* @__PURE__ */ e(d, { bold: !0, variant: "body1", children: a ? L(c.data[s], f) : c.data[s] })
316
+ ]
317
+ },
318
+ `${c.id}-${n}`
319
+ ))
320
+ ]
321
+ }
322
+ );
323
+ }
324
+ const ne = ({
325
+ areaColor: t,
326
+ axisColor: a,
327
+ baseline: l = "max",
328
+ chartFor: o,
329
+ chartXaxisSx: f,
330
+ chartYaxisSx: y,
331
+ colors: m,
332
+ curveType: u = "linear",
333
+ customLegendVariant: g,
334
+ customLegendSx: s,
335
+ customLegendBoxSx: c,
336
+ customTooltipLabels: n,
337
+ datasets: h,
338
+ height: b,
339
+ isCurrency: D,
340
+ isGraphClippingXAxis: I = !1,
341
+ labels: T,
342
+ labelBackgroundColor: R,
343
+ labelFontColor: X,
344
+ labelFontSize: Y,
345
+ margin: K,
346
+ markHandlers: Q,
347
+ markStyles: V,
348
+ minRange: J,
349
+ maxRange: tt,
350
+ onItemClick: W,
351
+ peerAverage: H,
352
+ showArea: G = !1,
353
+ showAverage: q = !1,
354
+ showAxisHighlight: et = !1,
355
+ showBars: j = !1,
356
+ showLegend: rt = !1,
357
+ showMark: nt = !0,
358
+ showMarkLabel: at = !1,
359
+ showTooltip: it = !1,
360
+ showXAxis: ot = !1,
361
+ showXAxisTicks: lt = !1,
362
+ showYAxis: st = !1,
363
+ showYAxisTicks: ct = !1,
364
+ title: dt,
365
+ useCustomMark: ht = !1,
366
+ valueFormatterString: k,
367
+ width: mt,
368
+ xAxisScaleType: ut
369
+ }) => {
370
+ const x = N(), ft = h.flat().map((r) => r.x), C = h.flat().map((r) => r.y), F = H || Math.round(C.reduce((r, w) => w + r, 0) / C.length), v = Math.floor(Math.min(...C) / 100) * 100, S = Math.ceil(Math.max(...C) / 100) * 100, $ = h.map((r, w) => ({
371
+ type: j ? "bar" : "line",
372
+ curve: u,
373
+ color: j ? x.palette.chart?.chart6 : m[w] ?? x.palette.primary.main,
374
+ data: r.map((p) => p.y),
375
+ area: G,
376
+ baseline: l,
377
+ showMark: !0,
378
+ shape: Z(w),
379
+ valueFormatter: (p) => k ? L(p || 0, k) : String(p)
380
+ })), xt = {
381
+ ...{
382
+ top: 60,
383
+ right: 35,
384
+ bottom: 25,
385
+ left: -10
386
+ },
387
+ ...K
388
+ };
389
+ let A = J ?? v, P = tt ?? S;
390
+ if (o === "networthChart") {
391
+ const r = S - v, w = r < S * 0.05 ? 0.25 : 0.2, p = Math.max(r * w, S * 0.015);
392
+ A = v - p < 0 ? v : v - p, P = S + p;
393
+ }
394
+ const yt = () => {
395
+ if (o === "creditOverTime")
396
+ return O(A, 850, 5);
397
+ if (o === "networthChart")
398
+ return O(A, P, 5);
399
+ };
400
+ return /* @__PURE__ */ i(
401
+ U,
402
+ {
403
+ sx: {
404
+ position: "relative",
405
+ touchAction: "pan-y",
406
+ // Allow vertical scrolling
407
+ "& svg": {
408
+ touchAction: "pan-y",
409
+ // Allow vertical scrolling on SVG
410
+ userSelect: "none"
411
+ // Prevent text selection
412
+ },
413
+ "& .recharts-wrapper": {
414
+ touchAction: "pan-y"
415
+ // For Recharts library specifically
416
+ }
417
+ },
418
+ children: [
419
+ /* @__PURE__ */ i(
420
+ pt,
421
+ {
422
+ height: b,
423
+ margin: xt,
424
+ series: $,
425
+ sx: {
426
+ "& .MuiBarLabel-root": {
427
+ fontSize: 10,
428
+ fontWeight: 600
429
+ },
430
+ "& .MuiAreaElement-root": {
431
+ opacity: 0.15
432
+ },
433
+ "& .MuiChartsAxis-tickLabel > tspan": {
434
+ fontFamily: x.typography.body2.fontFamily
435
+ },
436
+ "& .MuiLineChart-markLabel": {
437
+ fontFamily: x.typography.body2.fontFamily
438
+ }
439
+ },
440
+ width: mt,
441
+ xAxis: [{ data: ft, scaleType: ut || (j ? "band" : "point") }],
442
+ yAxis: [
443
+ {
444
+ tickInterval: yt(),
445
+ min: I ? -22 : A,
446
+ max: P || 100,
447
+ colorMap: G && $.length < 2 ? {
448
+ type: "continuous",
449
+ min: A,
450
+ max: P,
451
+ color: [
452
+ x.palette.background.paper,
453
+ m[0] ?? x.palette.primary.main
454
+ ]
455
+ } : void 0,
456
+ valueFormatter: (r) => k ? L(r, k) : String(r),
457
+ width: 62
458
+ }
459
+ ],
460
+ children: [
461
+ q && /* @__PURE__ */ e(
462
+ bt,
463
+ {
464
+ lineStyle: {
465
+ stroke: R ? x.palette.neutral.main : x.palette.neutral.dark,
466
+ strokeDasharray: "10, 8",
467
+ strokeWidth: 2
468
+ },
469
+ y: F
470
+ }
471
+ ),
472
+ /* @__PURE__ */ e(
473
+ vt,
474
+ {
475
+ onItemClick: W,
476
+ ...t && {
477
+ slots: {
478
+ area: (r) => /* @__PURE__ */ i("g", { children: [
479
+ /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ i("linearGradient", { id: "customGradient", x1: "0", x2: "0", y1: "0", y2: "1", children: [
480
+ /* @__PURE__ */ e("stop", { offset: "0%", stopColor: t }),
481
+ /* @__PURE__ */ e("stop", { offset: "100%", stopColor: t, stopOpacity: 0.02 })
482
+ ] }) }),
483
+ /* @__PURE__ */ e("path", { ...r, fill: "url(#customGradient)" })
484
+ ] })
485
+ }
486
+ }
487
+ }
488
+ ),
489
+ /* @__PURE__ */ e(
490
+ St,
491
+ {
492
+ onItemClick: W,
493
+ slots: {
494
+ line: (r) => /* @__PURE__ */ e(
495
+ Wt,
496
+ {
497
+ ...r,
498
+ lineColor: t ?? r.ownerState.color ?? x.palette.primary.main
499
+ }
500
+ )
501
+ }
502
+ }
503
+ ),
504
+ /* @__PURE__ */ e(
505
+ At,
506
+ {
507
+ onItemClick: W,
508
+ slots: ht ? {
509
+ mark: (r) => /* @__PURE__ */ e(
510
+ jt,
511
+ {
512
+ handlers: Q,
513
+ labelBackgroundColor: R,
514
+ labelFontColor: X,
515
+ labelFontSize: Y,
516
+ showLabel: at,
517
+ showMark: nt || r.dataIndex === h[0].length - 1,
518
+ style: V?.(r.dataIndex) ?? {},
519
+ valueFormatterString: k,
520
+ yData: C,
521
+ ...r
522
+ }
523
+ )
524
+ } : void 0
525
+ }
526
+ ),
527
+ /* @__PURE__ */ e(
528
+ gt,
529
+ {
530
+ barLabel: (r) => Number(r.value) > 0 ? `$${r.value}` : null,
531
+ borderRadius: 10
532
+ }
533
+ ),
534
+ /* @__PURE__ */ e(
535
+ wt,
536
+ {
537
+ disableLine: !ot,
538
+ disableTicks: !lt,
539
+ slotProps: a ? {
540
+ axisLine: {
541
+ style: {
542
+ stroke: a
543
+ }
544
+ },
545
+ axisTick: {
546
+ style: {
547
+ stroke: a
548
+ }
549
+ }
550
+ } : {},
551
+ sx: { ...f }
552
+ }
553
+ ),
554
+ /* @__PURE__ */ e(
555
+ Ct,
556
+ {
557
+ disableLine: !st,
558
+ disableTicks: !ct,
559
+ slotProps: a ? {
560
+ axisLine: {
561
+ style: {
562
+ stroke: a
563
+ }
564
+ },
565
+ axisTick: {
566
+ style: {
567
+ stroke: a
568
+ }
569
+ }
570
+ } : {},
571
+ sx: { ...y }
572
+ }
573
+ ),
574
+ et && /* @__PURE__ */ e(Lt, { x: "line" }),
575
+ it && /* @__PURE__ */ e(Mt, { trigger: "axis", children: /* @__PURE__ */ e(
576
+ zt,
577
+ {
578
+ customLabels: n,
579
+ isCurrency: D,
580
+ labels: T,
581
+ series: $,
582
+ valueFormatterString: k
583
+ }
584
+ ) })
585
+ ]
586
+ }
587
+ ),
588
+ rt && /* @__PURE__ */ e(
589
+ It,
590
+ {
591
+ average: q ? F : void 0,
592
+ customLegendBoxSx: c,
593
+ customLegendVariant: g,
594
+ labels: T,
595
+ series: $,
596
+ style: {
597
+ position: "absolute",
598
+ top: 16,
599
+ left: 16,
600
+ ...s
601
+ },
602
+ title: dt,
603
+ valueFormatterString: k
604
+ }
605
+ )
606
+ ]
607
+ }
608
+ );
609
+ };
610
+ export {
611
+ ne as L
612
+ };
613
+ //# sourceMappingURL=LineChart-CUfiH86G.mjs.map