@mx-cartographer/experiences 8.0.0-alpha.bb3 → 8.0.0-alpha.sms1

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 (182) hide show
  1. package/CHANGELOG.md +128 -1
  2. package/dist/{Account-Bxw0_4FU.mjs → Account-BDXA6PWh.mjs} +1 -1
  3. package/dist/{AccountDetailsContent-CAM9y39M.mjs → AccountDetailsContent-CUztd3-b.mjs} +87 -83
  4. package/dist/AccountDetailsHeader-i3KFhNuo.mjs +87 -0
  5. package/dist/{AccountFields-C9FlatNb.mjs → AccountFields-QZspYAji.mjs} +6 -6
  6. package/dist/{AccountListItem-JFMZROh7.mjs → AccountListItem-DX5upmCS.mjs} +5 -5
  7. package/dist/{AccountStore-BgNOyMdp.mjs → AccountStore-BcnDpyLL.mjs} +19 -8
  8. package/dist/{Accounts-BRf_YeTf.mjs → Accounts-DXfZotRC.mjs} +1 -1
  9. package/dist/{BeatApi-DhJpgCLz.mjs → BeatApi-De2IaqH2.mjs} +1 -1
  10. package/dist/{BeatStore-IBnXd4YK.mjs → BeatStore-D_NYuBSz.mjs} +1 -1
  11. package/dist/{BudgetUtil-B2ZXyw-g.mjs → BudgetUtil-Df2nII9u.mjs} +2 -2
  12. package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-DqJK_rrL.mjs} +23 -21
  13. package/dist/{CategoryStore-yHI0hWmK.mjs → CategoryStore-DTgyAMM7.mjs} +12 -10
  14. package/dist/{CategoryUtil-pZRIYOgN.mjs → CategoryUtil-C5cR-nfQ.mjs} +1 -1
  15. package/dist/{ConnectDrawer-BQNs-hjk.mjs → ConnectDrawer-BIbTqYOH.mjs} +2 -2
  16. package/dist/{ConnectionsDrawer-ByGQE7D5.mjs → ConnectionsDrawer-BFfY3_zB.mjs} +3 -3
  17. package/dist/{CurrencyInput-DUsQbkXb.mjs → CurrencyInput-BFKcs-_K.mjs} +2 -2
  18. package/dist/{CurrencyText-kyC1aseI.mjs → CurrencyText-Dr0EZ7bp.mjs} +1 -1
  19. package/dist/{DateUtil-BcuH7ErC.mjs → DateUtil-CBdcsyuk.mjs} +3 -3
  20. package/dist/{DebtsStore-C9bblOgW.mjs → DebtsStore-BbJB0nmu.mjs} +1 -1
  21. package/dist/{Dialog-CWW597AF.mjs → Dialog-BPTr3qHE.mjs} +2 -2
  22. package/dist/{Donut-oaQFlbit.mjs → Donut-Dmy3JTWd.mjs} +12 -12
  23. package/dist/Drawer-BEtCk82g.mjs +163 -0
  24. package/dist/{EmptyState-DA_lfRBv.mjs → EmptyState-DoxNUae-.mjs} +24 -22
  25. package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-DzTrtPzk.mjs} +3 -3
  26. package/dist/{Fetch-87LIQbEA.mjs → Fetch-DecPFeGU.mjs} +24 -22
  27. package/dist/FinstrongStore-BIrX0Xg2.mjs +451 -0
  28. package/dist/{GoalStore-D-aB35SY.mjs → GoalStore-DpWY3gVb.mjs} +5 -5
  29. package/dist/{Help-B6dIcujh.mjs → Help-BnPXM_N2.mjs} +2 -2
  30. package/dist/LineChart-bc1D9xBE.mjs +581 -0
  31. package/dist/{ListItemAction-DHa3KJPs.mjs → ListItemAction-uobBrm_a.mjs} +10 -10
  32. package/dist/{ManageIncome-1s_q5W4X.mjs → ManageIncome-NpXHhO1n.mjs} +177 -174
  33. package/dist/{MerchantStore-DrFvsUyy.mjs → MerchantStore-WvZ4gnQe.mjs} +1 -1
  34. package/dist/{MicroWidgetContainer-DpeqN9n3.mjs → MicroWidgetContainer-DEiRnYVa.mjs} +1 -1
  35. package/dist/{MiniWidgetContainer-D0gfmbaF.mjs → MiniWidgetContainer-CmXpTylX.mjs} +1 -1
  36. package/dist/{NetWorthStore-DCsTZpuS.mjs → NetWorthStore-lsuhEpn6.mjs} +2 -2
  37. package/dist/{NotificationSettings-DqrkNMod.mjs → NotificationSettings-CNmJWVeI.mjs} +241 -238
  38. package/dist/{NotificationStore-BxP_P2dA.mjs → NotificationStore-Ck2KdNmT.mjs} +10 -10
  39. package/dist/{NumberFormatting-Buh7u8Oi.mjs → NumberFormatting-DjTD0t3W.mjs} +9 -9
  40. package/dist/{OriginalBalanceAction-CWuVvRq9.mjs → OriginalBalanceAction-DK8_LkPz.mjs} +4 -4
  41. package/dist/{RecurringSettings-A_rAGCTP.mjs → RecurringSettings-CqZh1SQa.mjs} +17 -17
  42. package/dist/{RecurringTransactions-DK8dWldr.mjs → RecurringTransactions-BKcYmpv3.mjs} +46 -45
  43. package/dist/{RecurringTransactionsStore-C4YOD7_D.mjs → RecurringTransactionsStore-Ni5tSQIO.mjs} +80 -73
  44. package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-krIRNwHK.mjs} +3 -3
  45. package/dist/SkeletonLoader-BaNboJjD.mjs +38 -0
  46. package/dist/{SpendingData-D5vsfYKo.mjs → SpendingData-BuJ03S9d.mjs} +16 -16
  47. package/dist/SpendingLegend-CjX-hX2O.mjs +193 -0
  48. package/dist/{ToggleListItem-r0Kx56wF.mjs → ToggleListItem-ciFTiqRS.mjs} +19 -14
  49. package/dist/TransactionApi-CjBoLleL.mjs +86 -0
  50. package/dist/TransactionDetails-5M2vfr59.mjs +1379 -0
  51. package/dist/{TransactionStore-ai3uII_r.mjs → TransactionStore-D-Q3BU9Z.mjs} +119 -121
  52. package/dist/TrendsStore-BW9FGQeE.mjs +182 -0
  53. package/dist/{User-BQUxBeZV.mjs → User-wXzDI4M8.mjs} +2 -2
  54. package/dist/{ViewMoreMicroCard-SCn2wt4i.mjs → ViewMoreMicroCard-C0832BMe.mjs} +702 -723
  55. package/dist/{WidgetContainer-BHWANqT4.mjs → WidgetContainer-BhQ1Kx2z.mjs} +4 -4
  56. package/dist/accounts/components/AccountsListCompact.d.ts +10 -0
  57. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +4 -1
  58. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.d.ts +2 -1
  59. package/dist/accounts/index.es.js +229 -222
  60. package/dist/accounts/stores/AccountStore.d.ts +2 -0
  61. package/dist/analytics/index.es.js +2 -2
  62. package/dist/budgets/index.es.js +380 -382
  63. package/dist/cashflow/index.es.js +405 -413
  64. package/dist/categories/index.es.js +2 -2
  65. package/dist/categories/stores/CategoryStore.d.ts +1 -1
  66. package/dist/common/components/ErrorBoundary.d.ts +1 -1
  67. package/dist/common/components/Select.d.ts +4 -2
  68. package/dist/common/components/charts/LineChart.d.ts +12 -2
  69. package/dist/common/components/charts/index.d.ts +0 -3
  70. package/dist/common/components/charts/linechart/CustomLegend.d.ts +3 -1
  71. package/dist/common/components/charts/linechart/CustomMark.d.ts +4 -0
  72. package/dist/common/components/drawer/Drawer.d.ts +3 -0
  73. package/dist/common/components/drawer/Footer.d.ts +17 -0
  74. package/dist/common/hooks/index.d.ts +0 -1
  75. package/dist/common/hooks/useAriaLive.d.ts +1 -1
  76. package/dist/common/index.es.js +320 -321
  77. package/dist/common/stores/GlobalStore.d.ts +7 -1
  78. package/dist/common/types/Finstrong.d.ts +54 -0
  79. package/dist/common/types/Global.d.ts +1 -0
  80. package/dist/common/types/Widgets.d.ts +1 -0
  81. package/dist/common/types/index.d.ts +1 -1
  82. package/dist/common/types/localization/FinstrongCopy.d.ts +105 -2
  83. package/dist/common/types/localization/GoalsCopy.d.ts +1 -0
  84. package/dist/dashboard/index.es.js +2 -2
  85. package/dist/debts/index.es.js +506 -498
  86. package/dist/exportTransactionsToCSV-Cz2t0lmA.mjs +48 -0
  87. package/dist/finstrong/FinstrongWidget.d.ts +1 -1
  88. package/dist/finstrong/api/FinstrongApi.d.ts +5 -0
  89. package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +3 -1
  90. package/dist/finstrong/components/CreditScore/CreditScoreContent.d.ts +4 -0
  91. package/dist/finstrong/components/CreditScore/CreditScoreHeader.d.ts +4 -0
  92. package/dist/finstrong/components/FinancialStrengthGraph.d.ts +7 -1
  93. package/dist/finstrong/components/HaveManageableDebt/DebtPaymentTabContent.d.ts +3 -0
  94. package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtComponent.d.ts +3 -0
  95. package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtProgressBar.d.ts +4 -0
  96. package/dist/finstrong/components/HaveManageableDebt/IncomeTabContent.d.ts +3 -0
  97. package/dist/finstrong/components/KeyIndicatorsBorrowTab.d.ts +2 -2
  98. package/dist/finstrong/components/KeyIndicatorsDrawer.d.ts +4 -1
  99. package/dist/finstrong/components/KeyIndicatorsSaveTab.d.ts +2 -2
  100. package/dist/finstrong/components/KeyIndicatorsSpendTab.d.ts +2 -2
  101. package/dist/finstrong/components/KeyIndicatorsTabItem.d.ts +4 -3
  102. package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.d.ts +10 -0
  103. package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +2 -2
  104. package/dist/finstrong/components/MaintainingEmergencySavings/EstimatedContributionCalculator.d.ts +6 -0
  105. package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsContent.d.ts +4 -0
  106. package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsSticky.d.ts +4 -0
  107. package/dist/finstrong/components/ProgressBar.d.ts +15 -0
  108. package/dist/finstrong/components/SaveEnoughToLiveOn/AvailableTabContent.d.ts +3 -0
  109. package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnDrawerContent.d.ts +3 -0
  110. package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnProgressBar.d.ts +4 -0
  111. package/dist/finstrong/components/SaveEnoughToLiveOn/SpendingTabContent.d.ts +3 -0
  112. package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeComponent.d.ts +3 -0
  113. package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeProgressBar.d.ts +4 -0
  114. package/dist/finstrong/components/StatusChip.d.ts +5 -0
  115. package/dist/finstrong/components/onboarding/Onboarding.d.ts +2 -0
  116. package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +17 -0
  117. package/dist/finstrong/components/onboarding/OnboardingBirthday.d.ts +8 -0
  118. package/dist/finstrong/components/onboarding/OnboardingCreditScore.d.ts +8 -0
  119. package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +14 -0
  120. package/dist/finstrong/components/onboarding/OnboardingStepsHeader.d.ts +8 -0
  121. package/dist/finstrong/components/paybillsontime/PayBillsOnTimeDrawerComponent.d.ts +4 -0
  122. package/dist/finstrong/components/paybillsontime/PayBillsOnTimeStickyComponent.d.ts +4 -0
  123. package/dist/finstrong/components/shared/Accounts.d.ts +8 -0
  124. package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +25 -0
  125. package/dist/finstrong/components/shared/DialScoreCard.d.ts +7 -1
  126. package/dist/finstrong/components/shared/DoubleBarChart.d.ts +28 -0
  127. package/dist/finstrong/components/shared/LineGraph.d.ts +7 -0
  128. package/dist/finstrong/components/shared/TotalCard.d.ts +8 -0
  129. package/dist/finstrong/components/shared/Transactions.d.ts +11 -0
  130. package/dist/finstrong/constants/index.d.ts +9 -0
  131. package/dist/finstrong/index.es.js +3171 -1063
  132. package/dist/finstrong/stores/FinstrongStore.d.ts +25 -2
  133. package/dist/finstrong/util/finstrongUtils.d.ts +58 -1
  134. package/dist/goals/index.es.js +566 -562
  135. package/dist/help/index.es.js +3 -3
  136. package/dist/{hooks-D6XlXHf4.mjs → hooks-C41HAxM5.mjs} +3 -3
  137. package/dist/insights/index.es.js +1 -1
  138. package/dist/investments/index.es.js +437 -435
  139. package/dist/merchants/index.es.js +2 -2
  140. package/dist/microinsights/beaticons/BeatIcon.d.ts +2 -9
  141. package/dist/microinsights/beaticons/BeatMerchantLogo.d.ts +3 -2
  142. package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +2 -1
  143. package/dist/microinsights/cards/{MicroInsightCard.d.ts → BaseCard.d.ts} +1 -8
  144. package/dist/microinsights/cards/{BeatCard.d.ts → InsightCard.d.ts} +2 -2
  145. package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +2 -5
  146. package/dist/microinsights/cards/ZeroStateCard.d.ts +2 -5
  147. package/dist/microinsights/carousel/BeatList.d.ts +10 -0
  148. package/dist/microinsights/carousel/CarouselControls.d.ts +1 -3
  149. package/dist/microinsights/carousel/CarouselHeader.d.ts +1 -2
  150. package/dist/microinsights/constants/App.d.ts +0 -1
  151. package/dist/microinsights/index.d.ts +3 -3
  152. package/dist/microinsights/index.es.js +7 -7
  153. package/dist/microinsights/interfaces.d.ts +0 -6
  154. package/dist/networth/index.es.js +188 -186
  155. package/dist/notifications/index.es.js +95 -96
  156. package/dist/recurringtransactions/components/MicroWidgetContent.d.ts +3 -0
  157. package/dist/recurringtransactions/index.es.js +584 -560
  158. package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +1 -0
  159. package/dist/settings/index.es.js +286 -280
  160. package/dist/spending/index.es.js +269 -421
  161. package/dist/spending/utils/SpendingData.d.ts +2 -1
  162. package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -0
  163. package/dist/transactions/components/shared/TransactionList.d.ts +1 -0
  164. package/dist/transactions/index.es.js +226 -220
  165. package/dist/transactions/stores/TransactionStore.d.ts +1 -1
  166. package/dist/transactions/stores/UiStore.d.ts +0 -2
  167. package/dist/trends/index.es.js +963 -586
  168. package/dist/{useAccountDisplayName-BUAApBIb.mjs → useAccountDisplayName-CFNF8766.mjs} +2 -2
  169. package/dist/{useCombineEvents-BUDIR1ba.mjs → useCombineEvents-CRwX-qWE.mjs} +1 -1
  170. package/dist/{useInsightsEnabled-DBpwEq10.mjs → useInsightsEnabled-CNjP5cfR.mjs} +1 -1
  171. package/package.json +7 -7
  172. package/dist/AccountDetailsHeader-JtSX6Uf9.mjs +0 -120
  173. package/dist/Drawer-kEE73B87.mjs +0 -113
  174. package/dist/FinstrongStore-F2c607dj.mjs +0 -101
  175. package/dist/LineChart-D4GI7nVh.mjs +0 -541
  176. package/dist/TransactionApi-B3Tksf7L.mjs +0 -86
  177. package/dist/TransactionDetails-oP1eSuiS.mjs +0 -1334
  178. package/dist/TrendsStore-DCYbpXPO.mjs +0 -559
  179. package/dist/common/hooks/usePrevious.d.ts +0 -2
  180. package/dist/exportTransactionsToCSV-7bVS7KXf.mjs +0 -47
  181. package/dist/finstrong/utils/Finstrong.d.ts +0 -6
  182. package/dist/useAriaLive-B3_pRUio.mjs +0 -35
@@ -0,0 +1,581 @@
1
+ import { jsxs as a, Fragment as B, jsx as t } from "react/jsx-runtime";
2
+ import F from "@mui/material/Box";
3
+ import { useTheme as Y } from "@mui/material/styles";
4
+ import { ResponsiveChartContainer as fe, ChartsReferenceLine as xe, AreaPlot as ye, LinePlot as ge, MarkPlot as pe, BarPlot as be, ChartsXAxis as ke, ChartsYAxis as Me, ChartsAxisHighlight as Ce } from "@mui/x-charts";
5
+ import { f as p, c as O } from "./NumberFormatting-DjTD0t3W.mjs";
6
+ import we from "@mui/material/useMediaQuery";
7
+ import { observer as Le } from "mobx-react-lite";
8
+ import P from "@mui/material/Stack";
9
+ import { Text as l } from "@mxenabled/mxui";
10
+ import { u as Se } from "./hooks-C41HAxM5.mjs";
11
+ import { useTheme as ve, Stack as M, Box as X } from "@mui/material";
12
+ import { ChartsTooltip as Te } from "@mui/x-charts/ChartsTooltip";
13
+ const De = (e) => {
14
+ const r = Y(), s = e.showLabel, o = e.style, b = o?.markLabelStyles, x = Number(e.x), u = Number(e.y), h = e.handlers?.onMarkClick, m = e.handlers?.onMouseEnter, c = e.handlers?.onMouseLeave, i = we(r.breakpoints.up("sm")), f = e.valueFormatterString ? p(e.yData[e.dataIndex], e.valueFormatterString) : String(e.yData[e.dataIndex]), d = i ? r.typography.Small?.fontSize : r.typography.XSmall?.fontSize, T = 30, D = 24, A = x - T / 2, I = u - 30;
15
+ return /* @__PURE__ */ a(B, { children: [
16
+ s && /* @__PURE__ */ a(B, { children: [
17
+ e.labelBackgroundColor && /* @__PURE__ */ t(
18
+ "rect",
19
+ {
20
+ fill: e.labelBackgroundColor,
21
+ height: D,
22
+ rx: "3",
23
+ width: T,
24
+ x: A,
25
+ y: I
26
+ }
27
+ ),
28
+ /* @__PURE__ */ t(
29
+ "text",
30
+ {
31
+ className: "MuiLineChart-markLabel",
32
+ dominantBaseline: "middle",
33
+ fill: e.labelFontColor ? e.labelFontColor : r.palette.text.primary,
34
+ style: {
35
+ fontSize: e.labelFontSize ? e.labelFontSize : d,
36
+ ...b
37
+ },
38
+ textAnchor: "middle",
39
+ x,
40
+ y: u - 28 + D / 2,
41
+ children: f
42
+ }
43
+ )
44
+ ] }),
45
+ e.showMark && /* @__PURE__ */ t(
46
+ "path",
47
+ {
48
+ cursor: h ? "pointer" : "unset",
49
+ d: "M4.514,0A4.514,4.514,0,1,1,-4.514,0A4.514,4.514,0,1,1,4.514,0",
50
+ height: "20px",
51
+ onClick: ($) => {
52
+ h?.($, e.dataIndex);
53
+ },
54
+ onMouseEnter: () => {
55
+ m?.(e.dataIndex);
56
+ },
57
+ onMouseLeave: () => {
58
+ c?.();
59
+ },
60
+ style: {
61
+ fill: o?.fill ? o.fill : r.palette.background.paper,
62
+ stroke: o?.stroke ? o.stroke : r.palette.primary.main,
63
+ strokeWidth: 2,
64
+ transform: `translate(${e.x}px, ${e.y}px)`,
65
+ transformOrigin: `${e.x}px, ${e.y}px`,
66
+ filter: o?.filter ? o.filter : "none"
67
+ },
68
+ width: "20px"
69
+ }
70
+ )
71
+ ] });
72
+ }, Ae = (e) => /* @__PURE__ */ a(B, { children: [
73
+ /* @__PURE__ */ t("clipPath", { id: e.id, children: /* @__PURE__ */ t("rect", { height: e.height, width: e.width, x: "0", y: "0" }) }),
74
+ /* @__PURE__ */ t("g", { children: /* @__PURE__ */ t(
75
+ "path",
76
+ {
77
+ cursor: "unset",
78
+ d: e.d,
79
+ style: {
80
+ strokeWidth: 2,
81
+ strokeLinejoin: "round",
82
+ fill: "none",
83
+ stroke: e.lineColor ? e.lineColor : e.stroke,
84
+ transition: "opacity 0.2s ease-in, stroke 0.2s ease-in",
85
+ opacity: 1
86
+ }
87
+ }
88
+ ) })
89
+ ] }), Ie = ({
90
+ label: e,
91
+ customLegendVariant: r
92
+ }) => {
93
+ const s = r || "Small";
94
+ return typeof e == "string" ? /* @__PURE__ */ t(l, { variant: s, children: e }) : typeof e == "object" && e.amount !== void 0 && e.label ? /* @__PURE__ */ a(B, { children: [
95
+ /* @__PURE__ */ t(l, { variant: s, children: e.label }),
96
+ /* @__PURE__ */ t(l, { bold: !0, sx: { marginLeft: 8 }, variant: s, children: p(e.amount, "0,0") })
97
+ ] }) : null;
98
+ }, Re = ({
99
+ average: e,
100
+ customLegendVariant: r,
101
+ customLegendBoxSx: s,
102
+ labels: o = [],
103
+ series: b,
104
+ style: x,
105
+ title: u,
106
+ valueFormatterString: h
107
+ }) => {
108
+ const { common: m } = Se(), c = r || "Small";
109
+ return /* @__PURE__ */ a(P, { style: { flexDirection: "row", gap: 24, ...x }, children: [
110
+ b.map((i, f) => {
111
+ const d = o[f];
112
+ return d ? /* @__PURE__ */ a(
113
+ P,
114
+ {
115
+ style: { alignItems: "center", flexDirection: "row", flexWrap: "wrap" },
116
+ children: [
117
+ /* @__PURE__ */ t(
118
+ F,
119
+ {
120
+ sx: {
121
+ width: 10,
122
+ height: 10,
123
+ backgroundColor: i.color,
124
+ marginRight: 8,
125
+ ...s
126
+ }
127
+ }
128
+ ),
129
+ /* @__PURE__ */ t(Ie, { customLegendVariant: r, label: d })
130
+ ]
131
+ },
132
+ f
133
+ ) : null;
134
+ }),
135
+ e && /* @__PURE__ */ a(P, { sx: { alignItems: "center", flexDirection: "row" }, children: [
136
+ /* @__PURE__ */ t(l, { bold: !0, sx: { marginRight: 8 }, variant: c, children: "– –" }),
137
+ /* @__PURE__ */ a(l, { variant: c, children: [
138
+ u || m.average,
139
+ "  "
140
+ ] }),
141
+ /* @__PURE__ */ t(l, { bold: !0, variant: c, children: h ? p(e, h) : e })
142
+ ] })
143
+ ] });
144
+ }, Be = Le(Re);
145
+ function $e({
146
+ customLabels: e,
147
+ labels: r = [],
148
+ valueFormatterString: s = "0,0"
149
+ }) {
150
+ const o = ve();
151
+ return /* @__PURE__ */ t(
152
+ Te,
153
+ {
154
+ showCrosshair: !0,
155
+ slots: {
156
+ axisContent: (b) => {
157
+ const { axisValue: x, dataIndex: u, series: h } = b, m = u ?? 0;
158
+ if (e) {
159
+ const c = e[m]?.[0]?.header || String(x);
160
+ return /* @__PURE__ */ a(
161
+ M,
162
+ {
163
+ sx: {
164
+ backgroundColor: o.palette.background.paper,
165
+ boxShadow: "0 2px 8px 0 rgba(0, 0, 0, 0.12)",
166
+ flexDirection: "column",
167
+ alignItems: "flex-start",
168
+ borderRadius: "4px",
169
+ width: 250,
170
+ gap: 8,
171
+ px: 16,
172
+ py: 12
173
+ },
174
+ children: [
175
+ /* @__PURE__ */ a(
176
+ M,
177
+ {
178
+ sx: {
179
+ flexDirection: "row",
180
+ justifyContent: "space-between",
181
+ alignItems: "center",
182
+ alignSelf: "stretch",
183
+ gap: 8,
184
+ marginTop: 4
185
+ },
186
+ children: [
187
+ /* @__PURE__ */ t(l, { variant: "H3", children: c }),
188
+ /* @__PURE__ */ t(l, { bold: !0, variant: "H3", children: p(h[0]?.data[m], s) })
189
+ ]
190
+ }
191
+ ),
192
+ e[m]?.some((i) => (typeof i == "string" ? 0 : i.amount) !== 0) ? e[m]?.map((i) => {
193
+ const f = typeof i == "string" ? i : i.label, d = typeof i == "string" ? 0 : i.amount;
194
+ return d === 0 ? null : /* @__PURE__ */ a(
195
+ M,
196
+ {
197
+ sx: {
198
+ flexDirection: "row",
199
+ justifyContent: "space-between",
200
+ alignItems: "center",
201
+ alignSelf: "stretch",
202
+ gap: 8,
203
+ marginTop: 4
204
+ },
205
+ children: [
206
+ /* @__PURE__ */ a(
207
+ M,
208
+ {
209
+ sx: {
210
+ flexDirection: "row",
211
+ alignItems: "center",
212
+ gap: 8,
213
+ flex: 1,
214
+ minWidth: 0
215
+ },
216
+ children: [
217
+ /* @__PURE__ */ t(
218
+ X,
219
+ {
220
+ sx: {
221
+ width: "12px",
222
+ height: "12px",
223
+ backgroundColor: h[0]?.color,
224
+ borderRadius: "4px"
225
+ }
226
+ }
227
+ ),
228
+ /* @__PURE__ */ t(l, { variant: "Body", children: f })
229
+ ]
230
+ }
231
+ ),
232
+ /* @__PURE__ */ t(l, { bold: !0, variant: "Body", children: p(Math.abs(d), s) })
233
+ ]
234
+ },
235
+ f
236
+ );
237
+ }) : /* @__PURE__ */ t(l, { variant: "Body", children: "No data" })
238
+ ]
239
+ }
240
+ );
241
+ }
242
+ return /* @__PURE__ */ a(
243
+ M,
244
+ {
245
+ sx: {
246
+ backgroundColor: o.palette.background.paper,
247
+ boxShadow: "0 2px 8px 0 rgba(0, 0, 0, 0.12)",
248
+ flexDirection: "column",
249
+ alignItems: "flex-start",
250
+ borderRadius: "4px",
251
+ width: 225,
252
+ gap: 8,
253
+ px: 16,
254
+ py: 12
255
+ },
256
+ children: [
257
+ /* @__PURE__ */ t(l, { variant: "H3", children: String(x) }),
258
+ h.map((c, i) => /* @__PURE__ */ a(
259
+ M,
260
+ {
261
+ sx: {
262
+ flexDirection: "row",
263
+ justifyContent: "space-between",
264
+ alignItems: "center",
265
+ alignSelf: "stretch",
266
+ gap: 8,
267
+ marginTop: 4
268
+ },
269
+ children: [
270
+ /* @__PURE__ */ a(M, { sx: { flexDirection: "row", alignItems: "center", gap: 8 }, children: [
271
+ /* @__PURE__ */ t(
272
+ X,
273
+ {
274
+ sx: {
275
+ width: "12px",
276
+ height: "12px",
277
+ backgroundColor: c.color,
278
+ borderRadius: "4px"
279
+ }
280
+ }
281
+ ),
282
+ /* @__PURE__ */ t(l, { variant: "Body", children: typeof r[i] == "string" ? r[i] : r[i]?.label })
283
+ ] }),
284
+ /* @__PURE__ */ t(l, { bold: !0, variant: "Body", children: p(c.data[m], s) })
285
+ ]
286
+ },
287
+ c.id
288
+ ))
289
+ ]
290
+ }
291
+ );
292
+ }
293
+ },
294
+ trigger: "axis"
295
+ }
296
+ );
297
+ }
298
+ const Qe = ({
299
+ areaColor: e,
300
+ axisColor: r,
301
+ baseline: s = "max",
302
+ chartFor: o,
303
+ chartXaxisSx: b,
304
+ chartYaxisSx: x,
305
+ colors: u,
306
+ curveType: h = "linear",
307
+ customLegendVariant: m,
308
+ customLegendSx: c,
309
+ customLegendBoxSx: i,
310
+ customTooltipLabels: f,
311
+ datasets: d,
312
+ height: T,
313
+ isGraphClippingXAxis: D = !1,
314
+ labels: A,
315
+ labelBackgroundColor: I,
316
+ labelFontColor: $,
317
+ labelFontSize: q,
318
+ margin: Q,
319
+ markHandlers: U,
320
+ markStyles: V,
321
+ minRange: J,
322
+ maxRange: K,
323
+ onItemClick: j,
324
+ peerAverage: W,
325
+ showArea: E = !1,
326
+ showAverage: H = !1,
327
+ showAxisHighlight: Z = !1,
328
+ showBars: z = !1,
329
+ showLegend: _ = !1,
330
+ showMark: ee = !0,
331
+ showMarkLabel: te = !1,
332
+ showTooltip: ne = !1,
333
+ showXAxis: re = !1,
334
+ showXAxisTicks: ae = !1,
335
+ showYAxis: ie = !1,
336
+ showYAxisTicks: oe = !1,
337
+ title: le,
338
+ useCustomMark: se = !1,
339
+ valueFormatterString: k,
340
+ width: ce,
341
+ xAxisScaleType: de
342
+ }) => {
343
+ const y = Y(), he = d.flat().map((n) => n.x), C = d.flat().map((n) => n.y), G = W || 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, N = d.map((n, v) => ({
344
+ type: z ? "bar" : "line",
345
+ curve: h,
346
+ color: z ? y.palette.chart?.chart6 : u[v] ?? y.palette.primary.main,
347
+ data: n.map((g) => g.y),
348
+ area: E,
349
+ baseline: s,
350
+ showMark: !0,
351
+ valueFormatter: (g) => k ? p(g || 0, k) : String(g)
352
+ })), me = {
353
+ ...{
354
+ top: 60,
355
+ right: 35,
356
+ bottom: 50,
357
+ left: 50
358
+ },
359
+ ...Q
360
+ };
361
+ let S = J ?? w, R = K ?? L;
362
+ if (o === "networthChart") {
363
+ const n = L - w, v = n < L * 0.05 ? 0.25 : 0.2, g = Math.max(n * v, L * 0.015);
364
+ S = w - g < 0 ? w : w - g, R = L + g;
365
+ }
366
+ const ue = () => {
367
+ if (o === "creditOverTime")
368
+ return O(S, 850, 5);
369
+ if (o === "networthChart")
370
+ return O(S, R, 5);
371
+ };
372
+ return /* @__PURE__ */ a(
373
+ F,
374
+ {
375
+ sx: {
376
+ position: "relative",
377
+ touchAction: "pan-y",
378
+ // Allow vertical scrolling
379
+ "& svg": {
380
+ touchAction: "pan-y",
381
+ // Allow vertical scrolling on SVG
382
+ userSelect: "none"
383
+ // Prevent text selection
384
+ },
385
+ "& .recharts-wrapper": {
386
+ touchAction: "pan-y"
387
+ // For Recharts library specifically
388
+ }
389
+ },
390
+ children: [
391
+ /* @__PURE__ */ a(
392
+ fe,
393
+ {
394
+ height: T,
395
+ margin: me,
396
+ series: N,
397
+ sx: {
398
+ "& .MuiBarLabel-root": {
399
+ fontSize: 10,
400
+ fontWeight: 600
401
+ },
402
+ "& .MuiAreaElement-root": {
403
+ opacity: 0.15
404
+ },
405
+ "& .MuiChartsAxis-tickLabel > tspan": {
406
+ fontFamily: y.typography.Small.fontFamily
407
+ },
408
+ "& .MuiLineChart-markLabel": {
409
+ fontFamily: y.typography.Small.fontFamily
410
+ }
411
+ },
412
+ width: ce,
413
+ xAxis: [{ data: he, scaleType: de || (z ? "band" : "point") }],
414
+ yAxis: [
415
+ {
416
+ tickInterval: ue(),
417
+ min: D ? -22 : S,
418
+ max: R || 100,
419
+ colorMap: E && N.length < 2 ? {
420
+ type: "continuous",
421
+ min: S,
422
+ max: R,
423
+ color: [
424
+ y.palette.background.paper,
425
+ u[0] ?? y.palette.primary.main
426
+ ]
427
+ } : void 0,
428
+ valueFormatter: (n) => k ? p(n, k) : String(n)
429
+ }
430
+ ],
431
+ children: [
432
+ H && /* @__PURE__ */ t(
433
+ xe,
434
+ {
435
+ lineStyle: {
436
+ stroke: I ? y.palette.neutral.main : y.palette.neutral.dark,
437
+ strokeDasharray: "10, 8",
438
+ strokeWidth: 2
439
+ },
440
+ y: G
441
+ }
442
+ ),
443
+ /* @__PURE__ */ t(
444
+ ye,
445
+ {
446
+ onItemClick: j,
447
+ ...e && {
448
+ slots: {
449
+ area: (n) => /* @__PURE__ */ a("g", { children: [
450
+ /* @__PURE__ */ t("defs", { children: /* @__PURE__ */ a("linearGradient", { id: "customGradient", x1: "0", x2: "0", y1: "0", y2: "1", children: [
451
+ /* @__PURE__ */ t("stop", { offset: "0%", stopColor: e }),
452
+ /* @__PURE__ */ t("stop", { offset: "100%", stopColor: e, stopOpacity: 0.02 })
453
+ ] }) }),
454
+ /* @__PURE__ */ t("path", { ...n, fill: "url(#customGradient)" })
455
+ ] })
456
+ }
457
+ }
458
+ }
459
+ ),
460
+ /* @__PURE__ */ t(
461
+ ge,
462
+ {
463
+ onItemClick: j,
464
+ slots: {
465
+ line: (n) => /* @__PURE__ */ t(
466
+ Ae,
467
+ {
468
+ ...n,
469
+ lineColor: e ?? n.ownerState.color ?? y.palette.primary.main
470
+ }
471
+ )
472
+ }
473
+ }
474
+ ),
475
+ /* @__PURE__ */ t(
476
+ pe,
477
+ {
478
+ onItemClick: j,
479
+ slots: se ? {
480
+ mark: (n) => /* @__PURE__ */ t(
481
+ De,
482
+ {
483
+ handlers: U,
484
+ labelBackgroundColor: I,
485
+ labelFontColor: $,
486
+ labelFontSize: q,
487
+ showLabel: te,
488
+ showMark: ee || n.dataIndex === d[0].length - 1,
489
+ style: V?.(n.dataIndex) ?? {},
490
+ valueFormatterString: k,
491
+ yData: C,
492
+ ...n
493
+ }
494
+ )
495
+ } : void 0
496
+ }
497
+ ),
498
+ /* @__PURE__ */ t(
499
+ be,
500
+ {
501
+ barLabel: (n) => Number(n.value) > 0 ? `$${n.value}` : null,
502
+ borderRadius: 10
503
+ }
504
+ ),
505
+ /* @__PURE__ */ t(
506
+ ke,
507
+ {
508
+ disableLine: !re,
509
+ disableTicks: !ae,
510
+ slotProps: r ? {
511
+ axisLine: {
512
+ style: {
513
+ stroke: r
514
+ }
515
+ },
516
+ axisTick: {
517
+ style: {
518
+ stroke: r
519
+ }
520
+ }
521
+ } : {},
522
+ sx: { ...b }
523
+ }
524
+ ),
525
+ /* @__PURE__ */ t(
526
+ Me,
527
+ {
528
+ disableLine: !ie,
529
+ disableTicks: !oe,
530
+ slotProps: r ? {
531
+ axisLine: {
532
+ style: {
533
+ stroke: r
534
+ }
535
+ },
536
+ axisTick: {
537
+ style: {
538
+ stroke: r
539
+ }
540
+ }
541
+ } : {},
542
+ sx: { ...x }
543
+ }
544
+ ),
545
+ Z && /* @__PURE__ */ t(Ce, { x: "line" }),
546
+ ne && /* @__PURE__ */ t(
547
+ $e,
548
+ {
549
+ customLabels: f,
550
+ labels: A,
551
+ valueFormatterString: k
552
+ }
553
+ )
554
+ ]
555
+ }
556
+ ),
557
+ _ && /* @__PURE__ */ t(
558
+ Be,
559
+ {
560
+ average: H ? G : void 0,
561
+ customLegendBoxSx: i,
562
+ customLegendVariant: m,
563
+ labels: A,
564
+ series: N,
565
+ style: {
566
+ position: "absolute",
567
+ top: 16,
568
+ left: 16,
569
+ ...c
570
+ },
571
+ title: le,
572
+ valueFormatterString: k
573
+ }
574
+ )
575
+ ]
576
+ }
577
+ );
578
+ };
579
+ export {
580
+ Qe as L
581
+ };
@@ -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 m } from "@mxenabled/mxui";
10
- import { a as j } from "./Dialog-CWW597AF.mjs";
11
- import { u as P } from "./hooks-D6XlXHf4.mjs";
12
- const D = v(
9
+ import { Text as a } from "@mxenabled/mxui";
10
+ import { D as j } from "./Dialog-BPTr3qHE.mjs";
11
+ import { u as P } from "./hooks-C41HAxM5.mjs";
12
+ const q = v(
13
13
  ({
14
14
  children: n,
15
15
  isDisabled: i = !1,
@@ -21,7 +21,7 @@ const D = v(
21
21
  secondaryText: y,
22
22
  zeroStateText: o
23
23
  }) => {
24
- const { common: a } = P(), [d, t] = b.useState(!1), h = () => {
24
+ const { common: m } = 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 D = v(
32
32
  I,
33
33
  {
34
34
  primary: /* @__PURE__ */ e(L, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
35
- /* @__PURE__ */ r(m, { variant: "body1", children: f }),
35
+ /* @__PURE__ */ r(a, { variant: "body1", children: f }),
36
36
  /* @__PURE__ */ r(
37
- m,
37
+ a,
38
38
  {
39
39
  bold: !0,
40
40
  color: o ? "primary.main" : "text.primary",
@@ -52,12 +52,12 @@ const D = v(
52
52
  /* @__PURE__ */ r(
53
53
  j,
54
54
  {
55
- copy: { title: p, close_aria: a.close_aria },
55
+ copy: { title: p, close_aria: m.close_aria },
56
56
  disablePrimaryButton: s,
57
57
  isOpen: d,
58
58
  onClose: h,
59
59
  onPrimaryAction: u,
60
- primaryText: a.save_button,
60
+ primaryText: m.save_button,
61
61
  children: n
62
62
  }
63
63
  )
@@ -65,5 +65,5 @@ const D = v(
65
65
  }
66
66
  );
67
67
  export {
68
- D as L
68
+ q as L
69
69
  };