@mx-cartographer/experiences 8.0.0-alpha.bb3 → 8.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 (203) hide show
  1. package/CHANGELOG.md +178 -1
  2. package/dist/{Account-Bxw0_4FU.mjs → Account-CvR2-dSR.mjs} +1 -1
  3. package/dist/{AccountDetailsContent-CAM9y39M.mjs → AccountDetailsContent-CitErkuS.mjs} +89 -82
  4. package/dist/AccountDetailsHeader-BkG3MNYo.mjs +87 -0
  5. package/dist/{AccountFields-C9FlatNb.mjs → AccountFields-zCMqet85.mjs} +6 -6
  6. package/dist/{AccountListItem-JFMZROh7.mjs → AccountListItem-DHrz8Mml.mjs} +9 -9
  7. package/dist/{AccountStore-BgNOyMdp.mjs → AccountStore-LgfBcYMe.mjs} +112 -75
  8. package/dist/Accounts-Bzy1_REQ.mjs +9 -0
  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-BmZXkL0C.mjs} +2 -2
  12. package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-B-I3kajA.mjs} +23 -21
  13. package/dist/CategoryStore-CA3tS1BO.mjs +186 -0
  14. package/dist/CategoryUtil-DUM8NuGO.mjs +78 -0
  15. package/dist/{ConnectDrawer-BQNs-hjk.mjs → ConnectDrawer-BkvlItWx.mjs} +11 -11
  16. package/dist/{ConnectionsDrawer-ByGQE7D5.mjs → ConnectionsDrawer-VmuVFHbL.mjs} +5 -5
  17. package/dist/{CurrencyInput-DUsQbkXb.mjs → CurrencyInput-itK0R3wV.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-Bq-aPy-5.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-By9V-B5L.mjs +178 -0
  24. package/dist/{EmptyState-DA_lfRBv.mjs → EmptyState-DoxNUae-.mjs} +24 -22
  25. package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-Cglo8Mca.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-1P19goZ7.mjs} +112 -152
  29. package/dist/{Help-B6dIcujh.mjs → Help-Ea3BlXQp.mjs} +2 -2
  30. package/dist/LineChart-KpPw1phO.mjs +580 -0
  31. package/dist/{ListItemAction-DHa3KJPs.mjs → ListItemAction-BxTkF6Tz.mjs} +10 -10
  32. package/dist/{ManageIncome-1s_q5W4X.mjs → ManageIncome-CaoQl609.mjs} +91 -88
  33. package/dist/{MerchantStore-DrFvsUyy.mjs → MerchantStore-WvZ4gnQe.mjs} +1 -1
  34. package/dist/MicroWidgetContainer-r6mtxRer.mjs +52 -0
  35. package/dist/MiniWidgetContainer-Bg02sF1Y.mjs +71 -0
  36. package/dist/{NetWorthStore-DCsTZpuS.mjs → NetWorthStore-rC0q7P7t.mjs} +2 -2
  37. package/dist/{NotificationSettings-DqrkNMod.mjs → NotificationSettings-uzM8tCoH.mjs} +236 -231
  38. package/dist/{NotificationStore-BxP_P2dA.mjs → NotificationStore-CDX_kqHa.mjs} +7 -15
  39. package/dist/{NumberFormatting-Buh7u8Oi.mjs → NumberFormatting-DjTD0t3W.mjs} +9 -9
  40. package/dist/{OriginalBalanceAction-CWuVvRq9.mjs → OriginalBalanceAction-C6jdS4ws.mjs} +4 -4
  41. package/dist/{RecurringSettings-A_rAGCTP.mjs → RecurringSettings-B4ybrS0B.mjs} +4 -4
  42. package/dist/{RecurringTransactions-DK8dWldr.mjs → RecurringTransactions-BqijW_8S.mjs} +49 -48
  43. package/dist/{RecurringTransactionsStore-C4YOD7_D.mjs → RecurringTransactionsStore-BhBUVm9a.mjs} +26 -29
  44. package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-krIRNwHK.mjs} +3 -3
  45. package/dist/{SpendingData-D5vsfYKo.mjs → SpendingData-DQ1b9uqq.mjs} +11 -13
  46. package/dist/SpendingLegend-CDO060GT.mjs +193 -0
  47. package/dist/{ToggleListItem-r0Kx56wF.mjs → ToggleListItem-ciFTiqRS.mjs} +19 -14
  48. package/dist/TransactionApi-CjBoLleL.mjs +86 -0
  49. package/dist/TransactionDetails-m5PddMQn.mjs +1380 -0
  50. package/dist/TransactionStore-PRlwE-TF.mjs +677 -0
  51. package/dist/TrendsStore-yO7qYv97.mjs +186 -0
  52. package/dist/{User-BQUxBeZV.mjs → User-Cnlegl1N.mjs} +2 -2
  53. package/dist/{ViewMoreMicroCard-SCn2wt4i.mjs → ViewMoreMicroCard-DwR0v_ll.mjs} +711 -728
  54. package/dist/{WidgetContainer-BHWANqT4.mjs → WidgetContainer-CoFDmQRE.mjs} +4 -4
  55. package/dist/accounts/components/AccountsListCompact.d.ts +10 -0
  56. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +4 -1
  57. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.d.ts +2 -1
  58. package/dist/accounts/index.es.js +245 -235
  59. package/dist/accounts/stores/AccountStore.d.ts +24 -25
  60. package/dist/accounts/utils/Accounts.d.ts +1 -2
  61. package/dist/analytics/index.es.js +2 -2
  62. package/dist/budgets/components/AddBudgets.d.ts +2 -1
  63. package/dist/budgets/index.es.js +611 -580
  64. package/dist/budgets/store/BudgetsStore.d.ts +0 -1
  65. package/dist/cashflow/index.es.js +187 -180
  66. package/dist/categories/index.es.js +2 -2
  67. package/dist/categories/stores/CategoryStore.d.ts +2 -5
  68. package/dist/categories/util/CategoryUtil.d.ts +2 -3
  69. package/dist/common/components/Select.d.ts +4 -2
  70. package/dist/common/components/charts/LineChart.d.ts +12 -2
  71. package/dist/common/components/charts/index.d.ts +0 -3
  72. package/dist/common/components/charts/linechart/CustomLegend.d.ts +3 -1
  73. package/dist/common/components/charts/linechart/CustomMark.d.ts +4 -0
  74. package/dist/common/components/charts/linechart/CustomTooltip.d.ts +6 -1
  75. package/dist/common/components/charts/stackedlinechart/CustomPointTooltip.d.ts +5 -2
  76. package/dist/common/components/drawer/Drawer.d.ts +3 -0
  77. package/dist/common/components/drawer/Footer.d.ts +17 -0
  78. package/dist/common/hooks/index.d.ts +1 -0
  79. package/dist/common/hooks/useWidgetLoadTimer.d.ts +6 -0
  80. package/dist/common/index.es.js +397 -387
  81. package/dist/common/stores/AppDataStore.d.ts +1 -3
  82. package/dist/common/stores/GlobalCopyStore.d.ts +1 -0
  83. package/dist/common/stores/GlobalStore.d.ts +10 -4
  84. package/dist/common/stores/GlobalUiStore.d.ts +2 -3
  85. package/dist/common/stores/UserStore.d.ts +2 -3
  86. package/dist/common/types/Account.d.ts +6 -9
  87. package/dist/common/types/Finstrong.d.ts +54 -0
  88. package/dist/common/types/Global.d.ts +1 -0
  89. package/dist/common/types/Widgets.d.ts +1 -0
  90. package/dist/common/types/index.d.ts +1 -1
  91. package/dist/common/types/localization/FinstrongCopy.d.ts +105 -2
  92. package/dist/common/types/localization/GoalsCopy.d.ts +1 -0
  93. package/dist/common/types/localization/TransactionsCopy.d.ts +1 -0
  94. package/dist/dashboard/index.es.js +90 -88
  95. package/dist/debts/index.es.js +458 -448
  96. package/dist/exportTransactionsToCSV-DuAaI5XA.mjs +48 -0
  97. package/dist/finstrong/FinstrongWidget.d.ts +1 -1
  98. package/dist/finstrong/api/FinstrongApi.d.ts +5 -0
  99. package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +3 -1
  100. package/dist/finstrong/components/CreditScore/CreditScoreContent.d.ts +4 -0
  101. package/dist/finstrong/components/CreditScore/CreditScoreHeader.d.ts +4 -0
  102. package/dist/finstrong/components/FinancialStrengthGraph.d.ts +7 -1
  103. package/dist/finstrong/components/HaveManageableDebt/DebtPaymentTabContent.d.ts +3 -0
  104. package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtComponent.d.ts +3 -0
  105. package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtProgressBar.d.ts +4 -0
  106. package/dist/finstrong/components/HaveManageableDebt/IncomeTabContent.d.ts +3 -0
  107. package/dist/finstrong/components/KeyIndicatorsBorrowTab.d.ts +2 -2
  108. package/dist/finstrong/components/KeyIndicatorsDrawer.d.ts +4 -1
  109. package/dist/finstrong/components/KeyIndicatorsSaveTab.d.ts +2 -2
  110. package/dist/finstrong/components/KeyIndicatorsSpendTab.d.ts +2 -2
  111. package/dist/finstrong/components/KeyIndicatorsTabItem.d.ts +4 -3
  112. package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.d.ts +10 -0
  113. package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +2 -2
  114. package/dist/finstrong/components/MaintainingEmergencySavings/EstimatedContributionCalculator.d.ts +6 -0
  115. package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsContent.d.ts +4 -0
  116. package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsSticky.d.ts +4 -0
  117. package/dist/finstrong/components/ProgressBar.d.ts +15 -0
  118. package/dist/finstrong/components/SaveEnoughToLiveOn/AvailableTabContent.d.ts +3 -0
  119. package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnDrawerContent.d.ts +3 -0
  120. package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnProgressBar.d.ts +4 -0
  121. package/dist/finstrong/components/SaveEnoughToLiveOn/SpendingTabContent.d.ts +3 -0
  122. package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeComponent.d.ts +3 -0
  123. package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeProgressBar.d.ts +4 -0
  124. package/dist/finstrong/components/StatusChip.d.ts +5 -0
  125. package/dist/finstrong/components/onboarding/Onboarding.d.ts +2 -0
  126. package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +17 -0
  127. package/dist/finstrong/components/onboarding/OnboardingBirthday.d.ts +8 -0
  128. package/dist/finstrong/components/onboarding/OnboardingCreditScore.d.ts +8 -0
  129. package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +14 -0
  130. package/dist/finstrong/components/onboarding/OnboardingStepsHeader.d.ts +8 -0
  131. package/dist/finstrong/components/paybillsontime/PayBillsOnTimeDrawerComponent.d.ts +4 -0
  132. package/dist/finstrong/components/paybillsontime/PayBillsOnTimeStickyComponent.d.ts +4 -0
  133. package/dist/finstrong/components/shared/Accounts.d.ts +8 -0
  134. package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +24 -0
  135. package/dist/finstrong/components/shared/DialScoreCard.d.ts +7 -1
  136. package/dist/finstrong/components/shared/DoubleBarChart.d.ts +28 -0
  137. package/dist/finstrong/components/shared/LineGraph.d.ts +7 -0
  138. package/dist/finstrong/components/shared/TotalCard.d.ts +8 -0
  139. package/dist/finstrong/components/shared/Transactions.d.ts +11 -0
  140. package/dist/finstrong/constants/index.d.ts +9 -0
  141. package/dist/finstrong/index.es.js +3190 -1073
  142. package/dist/finstrong/stores/FinstrongStore.d.ts +25 -2
  143. package/dist/finstrong/util/finstrongUtils.d.ts +58 -1
  144. package/dist/goals/index.es.js +302 -291
  145. package/dist/goals/stores/GoalStore.d.ts +4 -17
  146. package/dist/help/index.es.js +13 -9
  147. package/dist/{hooks-D6XlXHf4.mjs → hooks-ZMp65DFz.mjs} +12 -12
  148. package/dist/insights/index.es.js +1 -1
  149. package/dist/investments/index.es.js +108 -104
  150. package/dist/investments/stores/HoldingStore.d.ts +0 -1
  151. package/dist/merchants/index.es.js +2 -2
  152. package/dist/microinsights/MicroCardTemplate.d.ts +16 -0
  153. package/dist/microinsights/beaticons/BeatIcon.d.ts +2 -9
  154. package/dist/microinsights/beaticons/BeatMerchantLogo.d.ts +3 -2
  155. package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +2 -1
  156. package/dist/microinsights/cards/{MicroInsightCard.d.ts → BaseCard.d.ts} +1 -8
  157. package/dist/microinsights/cards/{BeatCard.d.ts → InsightCard.d.ts} +2 -2
  158. package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +2 -5
  159. package/dist/microinsights/cards/ZeroStateCard.d.ts +2 -5
  160. package/dist/microinsights/carousel/BeatList.d.ts +10 -0
  161. package/dist/microinsights/carousel/CarouselControls.d.ts +1 -3
  162. package/dist/microinsights/carousel/CarouselHeader.d.ts +1 -2
  163. package/dist/microinsights/constants/App.d.ts +0 -1
  164. package/dist/microinsights/index.d.ts +4 -3
  165. package/dist/microinsights/index.es.js +101 -14
  166. package/dist/microinsights/interfaces.d.ts +0 -6
  167. package/dist/networth/index.es.js +197 -190
  168. package/dist/notifications/index.es.js +25 -25
  169. package/dist/notifications/stores/NotificationStore.d.ts +1 -3
  170. package/dist/recurringtransactions/index.es.js +395 -351
  171. package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +2 -3
  172. package/dist/settings/index.es.js +307 -298
  173. package/dist/spending/index.es.js +299 -438
  174. package/dist/spending/utils/SpendingData.d.ts +2 -1
  175. package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -0
  176. package/dist/transactions/components/shared/TransactionList.d.ts +1 -0
  177. package/dist/transactions/index.es.js +115 -112
  178. package/dist/transactions/stores/TransactionStore.d.ts +77 -21
  179. package/dist/trends/components/TrendsTable.d.ts +0 -2
  180. package/dist/trends/index.es.js +1025 -604
  181. package/dist/trends/utils/TrendsData.d.ts +1 -0
  182. package/dist/{useAccountDisplayName-BUAApBIb.mjs → useAccountDisplayName-B7iXTNM8.mjs} +2 -2
  183. package/dist/{useCombineEvents-BUDIR1ba.mjs → useCombineEvents-CRwX-qWE.mjs} +1 -1
  184. package/dist/{useInsightsEnabled-DBpwEq10.mjs → useInsightsEnabled-B7dxpDrX.mjs} +1 -1
  185. package/dist/useWidgetLoadTimer-hIOioiKx.mjs +19 -0
  186. package/package.json +4 -4
  187. package/dist/AccountDetailsHeader-JtSX6Uf9.mjs +0 -120
  188. package/dist/Accounts-BRf_YeTf.mjs +0 -27
  189. package/dist/CategoryStore-yHI0hWmK.mjs +0 -174
  190. package/dist/CategoryUtil-pZRIYOgN.mjs +0 -80
  191. package/dist/Drawer-kEE73B87.mjs +0 -113
  192. package/dist/FinstrongStore-F2c607dj.mjs +0 -101
  193. package/dist/LineChart-D4GI7nVh.mjs +0 -541
  194. package/dist/MicroWidgetContainer-DpeqN9n3.mjs +0 -45
  195. package/dist/MiniWidgetContainer-D0gfmbaF.mjs +0 -56
  196. package/dist/TransactionApi-B3Tksf7L.mjs +0 -86
  197. package/dist/TransactionDetails-oP1eSuiS.mjs +0 -1334
  198. package/dist/TransactionStore-ai3uII_r.mjs +0 -690
  199. package/dist/TrendsStore-DCYbpXPO.mjs +0 -559
  200. package/dist/common/components/SkeletonLoader.d.ts +0 -7
  201. package/dist/exportTransactionsToCSV-7bVS7KXf.mjs +0 -47
  202. package/dist/finstrong/utils/Finstrong.d.ts +0 -6
  203. package/dist/useAriaLive-B3_pRUio.mjs +0 -35
@@ -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-ZMp65DFz.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 && /* @__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: -8
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 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-ZMp65DFz.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
  };