@mx-cartographer/experiences 7.2.9-alpha.san4 → 7.2.10

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 (125) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/{Account-CBQnFO6w.mjs → Account-B-CuHOYf.mjs} +1 -1
  3. package/dist/{AccountDetailsContent-CmdOOZw1.mjs → AccountDetailsContent-DfzPOeMI.mjs} +10 -10
  4. package/dist/{AccountDetailsHeader-CaIoP_2Q.mjs → AccountDetailsHeader-vcy67tuH.mjs} +8 -8
  5. package/dist/{AccountFields-CLbLAhLf.mjs → AccountFields-cUP-9Hm6.mjs} +5 -5
  6. package/dist/{AccountListItem-CPm3572e.mjs → AccountListItem-DChcf3SN.mjs} +4 -4
  7. package/dist/{AccountStore-DttEGFeu.mjs → AccountStore-D6KiXA1B.mjs} +29 -40
  8. package/dist/{Accounts-B5Yr0e_o.mjs → Accounts-IeEtQjzA.mjs} +1 -1
  9. package/dist/{BudgetUtil-wjoNuj7B.mjs → BudgetUtil-B2ZXyw-g.mjs} +1 -1
  10. package/dist/{CategorySelectorDrawer-ZO9N26Kx.mjs → CategorySelectorDrawer-DUe4lH5-.mjs} +3 -3
  11. package/dist/{CategoryStore-C1IfDPCE.mjs → CategoryStore-BCcpI3oJ.mjs} +1 -1
  12. package/dist/{CategoryUtil-DUM8NuGO.mjs → CategoryUtil-BR3H5i6n.mjs} +1 -1
  13. package/dist/{ConnectDrawer-FyY0AWYQ.mjs → ConnectDrawer-DaFRU5st.mjs} +2 -2
  14. package/dist/{ConnectionsDrawer-Cd_rztVC.mjs → ConnectionsDrawer-DHJ7qdWL.mjs} +3 -3
  15. package/dist/{CurrencyInput-CBOkNlNP.mjs → CurrencyInput-CsCy7uaS.mjs} +1 -1
  16. package/dist/{DateUtil-CBdcsyuk.mjs → DateUtil-BcuH7ErC.mjs} +3 -3
  17. package/dist/{DebtsStore-DB5U2WMC.mjs → DebtsStore-z3VARSO6.mjs} +1 -1
  18. package/dist/{Dialog-BPTr3qHE.mjs → Dialog-CWW597AF.mjs} +2 -2
  19. package/dist/Drawer-kEE73B87.mjs +113 -0
  20. package/dist/{ExportCsvAction-DlGZfm4y.mjs → ExportCsvAction-sX8Rg4Ov.mjs} +3 -3
  21. package/dist/FinstrongStore-F2c607dj.mjs +101 -0
  22. package/dist/{GoalStore-deVLYr7n.mjs → GoalStore-TD0BfzWX.mjs} +3 -3
  23. package/dist/{Help-BnPXM_N2.mjs → Help-B6dIcujh.mjs} +2 -2
  24. package/dist/{LineChart-Ct9DNmhS.mjs → LineChart-D4GI7nVh.mjs} +181 -209
  25. package/dist/{ListItemAction-uobBrm_a.mjs → ListItemAction-DHa3KJPs.mjs} +10 -10
  26. package/dist/{ManageIncome-DB_lKOIy.mjs → ManageIncome-D3n1EWxe.mjs} +61 -63
  27. package/dist/{MicroWidgetContainer-DEiRnYVa.mjs → MicroWidgetContainer-DpeqN9n3.mjs} +1 -1
  28. package/dist/{MiniWidgetContainer-CmXpTylX.mjs → MiniWidgetContainer-D0gfmbaF.mjs} +1 -1
  29. package/dist/{NetWorthStore-CUz0bwVm.mjs → NetWorthStore-B_1oulrt.mjs} +2 -2
  30. package/dist/{NotificationSettings-Bfb3T7nN.mjs → NotificationSettings-BRm_EJZV.mjs} +5 -5
  31. package/dist/{OriginalBalanceAction-BLiU-7Lf.mjs → OriginalBalanceAction-CAaVbVMO.mjs} +3 -3
  32. package/dist/{RecurringSettings-dJJxtLyU.mjs → RecurringSettings-C28GrQcP.mjs} +4 -4
  33. package/dist/{RecurringTransactions-CngsRZ3K.mjs → RecurringTransactions-ej39mgA6.mjs} +44 -45
  34. package/dist/{RecurringTransactionsStore-C4RVULF8.mjs → RecurringTransactionsStore-DrzS1LmF.mjs} +1 -1
  35. package/dist/{SpendingData-BuJ03S9d.mjs → SpendingData-D5vsfYKo.mjs} +16 -16
  36. package/dist/{TransactionDetails-CJvE4LNC.mjs → TransactionDetails-BWffqew4.mjs} +8 -11
  37. package/dist/{TransactionStore-DvOEbOzL.mjs → TransactionStore-DxPLdF3B.mjs} +3 -3
  38. package/dist/{TrendsStore-BVNxGsE4.mjs → TrendsStore-DCYbpXPO.mjs} +14 -14
  39. package/dist/{User-wXzDI4M8.mjs → User-BQUxBeZV.mjs} +2 -2
  40. package/dist/{WidgetContainer-GoNq8wwm.mjs → WidgetContainer-C88Ecu2W.mjs} +4 -4
  41. package/dist/accounts/index.es.js +14 -14
  42. package/dist/accounts/stores/AccountStore.d.ts +0 -2
  43. package/dist/analytics/index.es.js +2 -2
  44. package/dist/budgets/index.es.js +12 -12
  45. package/dist/cashflow/index.es.js +44 -44
  46. package/dist/categories/index.es.js +2 -2
  47. package/dist/common/components/Select.d.ts +2 -4
  48. package/dist/common/components/charts/LineChart.d.ts +2 -8
  49. package/dist/common/components/charts/linechart/CustomMark.d.ts +0 -4
  50. package/dist/common/components/drawer/Drawer.d.ts +0 -3
  51. package/dist/common/hooks/useAriaLive.d.ts +8 -0
  52. package/dist/common/index.es.js +33 -33
  53. package/dist/common/types/Finstrong.d.ts +0 -50
  54. package/dist/common/types/index.d.ts +1 -1
  55. package/dist/common/types/localization/FinstrongCopy.d.ts +1 -58
  56. package/dist/common/types/localization/TransactionsCopy.d.ts +1 -0
  57. package/dist/dashboard/index.es.js +2 -2
  58. package/dist/debts/index.es.js +11 -11
  59. package/dist/{exportTransactionsToCSV-hrNpJ77n.mjs → exportTransactionsToCSV-7bVS7KXf.mjs} +2 -2
  60. package/dist/finstrong/api/FinstrongApi.d.ts +0 -5
  61. package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +1 -3
  62. package/dist/finstrong/components/KeyIndicatorsBorrowTab.d.ts +2 -2
  63. package/dist/finstrong/components/KeyIndicatorsDrawer.d.ts +1 -4
  64. package/dist/finstrong/components/KeyIndicatorsSaveTab.d.ts +2 -2
  65. package/dist/finstrong/components/KeyIndicatorsSpendTab.d.ts +2 -2
  66. package/dist/finstrong/components/KeyIndicatorsTabItem.d.ts +3 -4
  67. package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +2 -2
  68. package/dist/finstrong/index.es.js +1055 -3130
  69. package/dist/finstrong/stores/FinstrongStore.d.ts +1 -9
  70. package/dist/finstrong/util/finstrongUtils.d.ts +1 -58
  71. package/dist/finstrong/utils/Finstrong.d.ts +6 -0
  72. package/dist/goals/index.es.js +14 -14
  73. package/dist/help/index.es.js +3 -3
  74. package/dist/{hooks-C41HAxM5.mjs → hooks-D6XlXHf4.mjs} +3 -3
  75. package/dist/investments/index.es.js +4 -4
  76. package/dist/merchants/index.es.js +1 -1
  77. package/dist/networth/index.es.js +34 -34
  78. package/dist/notifications/index.es.js +4 -4
  79. package/dist/recurringtransactions/index.es.js +13 -13
  80. package/dist/settings/index.es.js +8 -8
  81. package/dist/spending/index.es.js +373 -222
  82. package/dist/transactions/index.es.js +307 -271
  83. package/dist/trends/index.es.js +94 -94
  84. package/dist/{useAccountDisplayName-B5O6hQ1B.mjs → useAccountDisplayName-BcRqfar8.mjs} +2 -2
  85. package/dist/{useInsightsEnabled-CNjP5cfR.mjs → useInsightsEnabled-DBpwEq10.mjs} +1 -1
  86. package/package.json +1 -1
  87. package/dist/Drawer-BEtCk82g.mjs +0 -163
  88. package/dist/FinstrongStore-rVhw737g.mjs +0 -432
  89. package/dist/SpendingLegend-squvjEhu.mjs +0 -170
  90. package/dist/accounts/components/AccountsListCompact.d.ts +0 -10
  91. package/dist/common/components/drawer/Footer.d.ts +0 -17
  92. package/dist/finstrong/components/CreditScore/CreditScoreContent.d.ts +0 -4
  93. package/dist/finstrong/components/CreditScore/CreditScoreHeader.d.ts +0 -4
  94. package/dist/finstrong/components/HaveManageableDebt/DebtPaymentTabContent.d.ts +0 -3
  95. package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtComponent.d.ts +0 -3
  96. package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtProgressBar.d.ts +0 -4
  97. package/dist/finstrong/components/HaveManageableDebt/IncomeTabContent.d.ts +0 -3
  98. package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.d.ts +0 -10
  99. package/dist/finstrong/components/MaintainingEmergencySavings/EstimatedContributionCalculator.d.ts +0 -6
  100. package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsContent.d.ts +0 -4
  101. package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsSticky.d.ts +0 -4
  102. package/dist/finstrong/components/ProgressBar.d.ts +0 -15
  103. package/dist/finstrong/components/SaveEnoughToLiveOn/AvailableTabContent.d.ts +0 -3
  104. package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnDrawerContent.d.ts +0 -3
  105. package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnProgressBar.d.ts +0 -4
  106. package/dist/finstrong/components/SaveEnoughToLiveOn/SpendingTabContent.d.ts +0 -3
  107. package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeComponent.d.ts +0 -3
  108. package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeProgressBar.d.ts +0 -4
  109. package/dist/finstrong/components/StatusChip.d.ts +0 -5
  110. package/dist/finstrong/components/onboarding/Onboarding.d.ts +0 -2
  111. package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +0 -11
  112. package/dist/finstrong/components/onboarding/OnboardingBirthday.d.ts +0 -8
  113. package/dist/finstrong/components/onboarding/OnboardingCreditScore.d.ts +0 -8
  114. package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +0 -14
  115. package/dist/finstrong/components/onboarding/OnboardingStepsHeader.d.ts +0 -8
  116. package/dist/finstrong/components/paybillsontime/PayBillsOnTimeDrawerComponent.d.ts +0 -4
  117. package/dist/finstrong/components/paybillsontime/PayBillsOnTimeStickyComponent.d.ts +0 -4
  118. package/dist/finstrong/components/shared/Accounts.d.ts +0 -8
  119. package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +0 -25
  120. package/dist/finstrong/components/shared/DoubleBarChart.d.ts +0 -28
  121. package/dist/finstrong/components/shared/LineGraph.d.ts +0 -7
  122. package/dist/finstrong/components/shared/TotalCard.d.ts +0 -8
  123. package/dist/finstrong/components/shared/TransactionList.d.ts +0 -15
  124. package/dist/finstrong/components/shared/Transactions.d.ts +0 -11
  125. package/dist/finstrong/constants/index.d.ts +0 -8
@@ -1,27 +1,27 @@
1
- import { jsxs as i, Fragment as I, jsx as e } from "react/jsx-runtime";
2
- import lt from "@mui/material/Box";
3
- import { useTheme as Y } from "@mui/material/styles";
4
- import { ResponsiveChartContainer as st, ChartsReferenceLine as ct, AreaPlot as dt, LinePlot as ht, MarkPlot as mt, BarPlot as ut, ChartsXAxis as ft, ChartsYAxis as xt, ChartsAxisHighlight as gt } from "@mui/x-charts";
5
- import { f as b, c as yt } from "./NumberFormatting-Buh7u8Oi.mjs";
6
- import pt from "@mui/material/useMediaQuery";
7
- import { observer as bt } from "mobx-react-lite";
8
- import { Stack as x, Box as E, useTheme as kt } from "@mui/material";
1
+ import { jsxs as i, Fragment as B, jsx as e } from "react/jsx-runtime";
2
+ import nt from "@mui/material/Box";
3
+ import { useTheme as X } from "@mui/material/styles";
4
+ import { ResponsiveChartContainer as at, ChartsReferenceLine as rt, AreaPlot as it, LinePlot as ot, MarkPlot as lt, BarPlot as st, ChartsXAxis as ct, ChartsYAxis as dt, ChartsAxisHighlight as ht } from "@mui/x-charts";
5
+ import { f as b, c as mt } from "./NumberFormatting-Buh7u8Oi.mjs";
6
+ import ut from "@mui/material/useMediaQuery";
7
+ import { observer as xt } from "mobx-react-lite";
8
+ import { Stack as u, Box as N, useTheme as ft } from "@mui/material";
9
9
  import { Text as l } from "@mxenabled/mxui";
10
- import { u as Ct } from "./hooks-C41HAxM5.mjs";
11
- import { ChartsTooltip as Mt } from "@mui/x-charts/ChartsTooltip";
12
- const wt = (t) => {
13
- const r = Y(), s = t.showLabel, o = t.style, k = o?.markLabelStyles, m = Number(t.x), u = Number(t.y), f = t.handlers?.onMarkClick, c = t.handlers?.onMouseEnter, d = t.handlers?.onMouseLeave, a = pt(r.breakpoints.up("sm")), h = t.valueFormatterString ? b(t.yData[t.dataIndex], t.valueFormatterString) : String(t.yData[t.dataIndex]), y = a ? r.typography.Small?.fontSize : r.typography.XSmall?.fontSize, v = y ? parseFloat(y.toString()) * 0.6 : 8, T = h.length * v + 8 + 8, D = 24, B = m - T / 2, $ = u - 30;
14
- return /* @__PURE__ */ i(I, { children: [
15
- s && /* @__PURE__ */ i(I, { children: [
10
+ import { u as gt } from "./hooks-D6XlXHf4.mjs";
11
+ import { ChartsTooltip as yt } from "@mui/x-charts/ChartsTooltip";
12
+ const pt = (t) => {
13
+ const r = X(), o = t.showLabel, s = t.style, y = Number(t.x), m = Number(t.y), x = t.handlers?.onMarkClick, f = t.handlers?.onMouseEnter, c = t.handlers?.onMouseLeave, d = ut(r.breakpoints.up("sm")), a = t.valueFormatterString ? b(t.yData[t.dataIndex], t.valueFormatterString) : String(t.yData[t.dataIndex]), h = d ? r.typography.Small?.fontSize : r.typography.XSmall?.fontSize, k = h ? parseFloat(h.toString()) * 0.6 : 8, D = a.length * k + 8 + 8, T = 24, $ = y - D / 2, M = m - 30;
14
+ return /* @__PURE__ */ i(B, { children: [
15
+ o && /* @__PURE__ */ i(B, { children: [
16
16
  t.labelBackgroundColor && /* @__PURE__ */ e(
17
17
  "rect",
18
18
  {
19
19
  fill: t.labelBackgroundColor,
20
- height: D,
20
+ height: T,
21
21
  rx: "3",
22
- width: T,
23
- x: B,
24
- y: $
22
+ width: D,
23
+ x: $,
24
+ y: M
25
25
  }
26
26
  ),
27
27
  /* @__PURE__ */ e(
@@ -31,44 +31,43 @@ const wt = (t) => {
31
31
  dominantBaseline: "middle",
32
32
  fill: t.labelFontColor ? t.labelFontColor : r.palette.text.primary,
33
33
  style: {
34
- fontSize: t.labelFontSize ? t.labelFontSize : y,
35
- ...k
34
+ fontSize: t.labelFontSize ? t.labelFontSize : h
36
35
  },
37
36
  textAnchor: "middle",
38
- x: m,
39
- y: u - 28 + D / 2,
40
- children: h
37
+ x: y,
38
+ y: m - 28 + T / 2,
39
+ children: a
41
40
  }
42
41
  )
43
42
  ] }),
44
- t.showMark && /* @__PURE__ */ e(
43
+ /* @__PURE__ */ e(
45
44
  "path",
46
45
  {
47
- cursor: f ? "pointer" : "unset",
46
+ cursor: x ? "pointer" : "unset",
48
47
  d: "M4.514,0A4.514,4.514,0,1,1,-4.514,0A4.514,4.514,0,1,1,4.514,0",
49
48
  height: "20px",
50
- onClick: (j) => {
51
- f?.(j, t.dataIndex);
49
+ onClick: (R) => {
50
+ x?.(R, t.dataIndex);
52
51
  },
53
52
  onMouseEnter: () => {
54
- c?.(t.dataIndex);
53
+ f?.(t.dataIndex);
55
54
  },
56
55
  onMouseLeave: () => {
57
- d?.();
56
+ c?.();
58
57
  },
59
58
  style: {
60
- fill: o?.fill ? o.fill : r.palette.background.paper,
61
- stroke: o?.stroke ? o.stroke : r.palette.primary.main,
59
+ fill: s?.fill ? s.fill : r.palette.background.paper,
60
+ stroke: s?.stroke ? s.stroke : r.palette.primary.main,
62
61
  strokeWidth: 2,
63
62
  transform: `translate(${t.x}px, ${t.y}px)`,
64
63
  transformOrigin: `${t.x}px, ${t.y}px`,
65
- filter: o?.filter ? o.filter : "none"
64
+ filter: s?.filter ? s.filter : "none"
66
65
  },
67
66
  width: "20px"
68
67
  }
69
68
  )
70
69
  ] });
71
- }, Lt = (t) => /* @__PURE__ */ i(I, { children: [
70
+ }, bt = (t) => /* @__PURE__ */ i(B, { children: [
72
71
  /* @__PURE__ */ e("clipPath", { id: t.id, children: /* @__PURE__ */ e("rect", { height: t.height, width: t.width, x: "0", y: "0" }) }),
73
72
  /* @__PURE__ */ e("g", { children: /* @__PURE__ */ e(
74
73
  "path",
@@ -85,35 +84,35 @@ const wt = (t) => {
85
84
  }
86
85
  }
87
86
  ) })
88
- ] }), St = ({
87
+ ] }), kt = ({
89
88
  label: t,
90
89
  customLegendVariant: r
91
90
  }) => {
92
- const s = r || "Small";
93
- return typeof t == "string" ? /* @__PURE__ */ e(l, { variant: s, children: t }) : typeof t == "object" && t.amount && t.label ? /* @__PURE__ */ i(I, { children: [
94
- /* @__PURE__ */ e(l, { variant: s, children: t.label }),
95
- /* @__PURE__ */ e(l, { bold: !0, sx: { marginLeft: 8 }, variant: s, children: b(t.amount, "0,0") })
91
+ const o = r || "Small";
92
+ return typeof t == "string" ? /* @__PURE__ */ e(l, { variant: o, children: t }) : typeof t == "object" && t.amount && t.label ? /* @__PURE__ */ i(B, { children: [
93
+ /* @__PURE__ */ e(l, { variant: o, children: t.label }),
94
+ /* @__PURE__ */ e(l, { bold: !0, sx: { marginLeft: 8 }, variant: o, children: b(t.amount, "0,0") })
96
95
  ] }) : null;
97
- }, vt = ({
96
+ }, Ct = ({
98
97
  average: t,
99
98
  customLegendVariant: r,
100
- labels: s = [],
101
- series: o,
102
- style: k,
99
+ labels: o = [],
100
+ series: s,
101
+ style: y,
103
102
  title: m,
104
- valueFormatterString: u
103
+ valueFormatterString: x
105
104
  }) => {
106
- const { common: f } = Ct(), c = r || "Small";
107
- return /* @__PURE__ */ i(x, { style: { flexDirection: "row", gap: 24, ...k }, children: [
108
- o.map((d, a) => {
109
- const h = s[a];
105
+ const { common: f } = gt(), c = r || "Small";
106
+ return /* @__PURE__ */ i(u, { style: { flexDirection: "row", gap: 24, ...y }, children: [
107
+ s.map((d, a) => {
108
+ const h = o[a];
110
109
  return h ? /* @__PURE__ */ i(
111
- x,
110
+ u,
112
111
  {
113
112
  style: { alignItems: "center", flexDirection: "row", flexWrap: "wrap" },
114
113
  children: [
115
114
  /* @__PURE__ */ e(
116
- E,
115
+ N,
117
116
  {
118
117
  sx: {
119
118
  width: 10,
@@ -123,42 +122,42 @@ const wt = (t) => {
123
122
  }
124
123
  }
125
124
  ),
126
- /* @__PURE__ */ e(St, { customLegendVariant: r, label: h })
125
+ /* @__PURE__ */ e(kt, { customLegendVariant: r, label: h })
127
126
  ]
128
127
  },
129
128
  a
130
129
  ) : null;
131
130
  }),
132
- t && /* @__PURE__ */ i(x, { sx: { alignItems: "center", flexDirection: "row" }, children: [
131
+ t && /* @__PURE__ */ i(u, { sx: { alignItems: "center", flexDirection: "row" }, children: [
133
132
  /* @__PURE__ */ e(l, { bold: !0, sx: { marginRight: 8 }, variant: c, children: "– –" }),
134
133
  /* @__PURE__ */ i(l, { variant: c, children: [
135
134
  m || f.average,
136
135
  "  "
137
136
  ] }),
138
- /* @__PURE__ */ e(l, { bold: !0, variant: c, children: u ? b(t, u) : t })
137
+ /* @__PURE__ */ e(l, { bold: !0, variant: c, children: x ? b(t, x) : t })
139
138
  ] })
140
139
  ] });
141
- }, Tt = bt(vt);
142
- function Dt({
140
+ }, Mt = xt(Ct);
141
+ function wt({
143
142
  customLabels: t,
144
143
  labels: r = [],
145
- valueFormatterString: s = "0,0"
144
+ valueFormatterString: o = "0,0"
146
145
  }) {
147
- const o = kt();
146
+ const s = ft();
148
147
  return /* @__PURE__ */ e(
149
- Mt,
148
+ yt,
150
149
  {
151
150
  showCrosshair: !0,
152
151
  slots: {
153
- axisContent: (k) => {
154
- const { axisValue: m, dataIndex: u, series: f } = k, c = u ?? 0;
152
+ axisContent: (y) => {
153
+ const { axisValue: m, dataIndex: x, series: f } = y, c = x ?? 0;
155
154
  if (t) {
156
155
  const d = t[c]?.[0]?.header || String(m);
157
156
  return /* @__PURE__ */ i(
158
- x,
157
+ u,
159
158
  {
160
159
  sx: {
161
- backgroundColor: o.palette.background.paper,
160
+ backgroundColor: s.palette.background.paper,
162
161
  boxShadow: "0 2px 8px 0 rgba(0, 0, 0, 0.12)",
163
162
  flexDirection: "column",
164
163
  alignItems: "flex-start",
@@ -170,7 +169,7 @@ function Dt({
170
169
  },
171
170
  children: [
172
171
  /* @__PURE__ */ i(
173
- x,
172
+ u,
174
173
  {
175
174
  sx: {
176
175
  flexDirection: "row",
@@ -182,14 +181,14 @@ function Dt({
182
181
  },
183
182
  children: [
184
183
  /* @__PURE__ */ e(l, { variant: "H3", children: d }),
185
- /* @__PURE__ */ e(l, { bold: !0, variant: "H3", children: b(f[0]?.data[c], s) })
184
+ /* @__PURE__ */ e(l, { bold: !0, variant: "H3", children: b(f[0]?.data[c], o) })
186
185
  ]
187
186
  }
188
187
  ),
189
188
  t[c]?.some((a) => (typeof a == "string" ? 0 : a.amount) !== 0) ? t[c]?.map((a) => {
190
- const h = typeof a == "string" ? a : a.label, y = typeof a == "string" ? 0 : a.amount;
191
- return y === 0 ? null : /* @__PURE__ */ i(
192
- x,
189
+ const h = typeof a == "string" ? a : a.label, k = typeof a == "string" ? 0 : a.amount;
190
+ return k === 0 ? null : /* @__PURE__ */ i(
191
+ u,
193
192
  {
194
193
  sx: {
195
194
  flexDirection: "row",
@@ -201,7 +200,7 @@ function Dt({
201
200
  },
202
201
  children: [
203
202
  /* @__PURE__ */ i(
204
- x,
203
+ u,
205
204
  {
206
205
  sx: {
207
206
  flexDirection: "row",
@@ -212,7 +211,7 @@ function Dt({
212
211
  },
213
212
  children: [
214
213
  /* @__PURE__ */ e(
215
- E,
214
+ N,
216
215
  {
217
216
  sx: {
218
217
  width: "12px",
@@ -226,7 +225,7 @@ function Dt({
226
225
  ]
227
226
  }
228
227
  ),
229
- /* @__PURE__ */ e(l, { bold: !0, variant: "Body", children: b(Math.abs(y), s) })
228
+ /* @__PURE__ */ e(l, { bold: !0, variant: "Body", children: b(Math.abs(k), o) })
230
229
  ]
231
230
  },
232
231
  h
@@ -237,10 +236,10 @@ function Dt({
237
236
  );
238
237
  }
239
238
  return /* @__PURE__ */ i(
240
- x,
239
+ u,
241
240
  {
242
241
  sx: {
243
- backgroundColor: o.palette.background.paper,
242
+ backgroundColor: s.palette.background.paper,
244
243
  boxShadow: "0 2px 8px 0 rgba(0, 0, 0, 0.12)",
245
244
  flexDirection: "column",
246
245
  alignItems: "flex-start",
@@ -253,7 +252,7 @@ function Dt({
253
252
  children: [
254
253
  /* @__PURE__ */ e(l, { variant: "H3", children: String(m) }),
255
254
  f.map((d, a) => /* @__PURE__ */ i(
256
- x,
255
+ u,
257
256
  {
258
257
  sx: {
259
258
  flexDirection: "row",
@@ -264,9 +263,9 @@ function Dt({
264
263
  marginTop: 4
265
264
  },
266
265
  children: [
267
- /* @__PURE__ */ i(x, { sx: { flexDirection: "row", alignItems: "center", gap: 8 }, children: [
266
+ /* @__PURE__ */ i(u, { sx: { flexDirection: "row", alignItems: "center", gap: 8 }, children: [
268
267
  /* @__PURE__ */ e(
269
- E,
268
+ N,
270
269
  {
271
270
  sx: {
272
271
  width: "12px",
@@ -278,7 +277,7 @@ function Dt({
278
277
  ),
279
278
  /* @__PURE__ */ e(l, { variant: "Body", children: typeof r[a] == "string" ? r[a] : r[a]?.label })
280
279
  ] }),
281
- /* @__PURE__ */ e(l, { bold: !0, variant: "Body", children: b(d.data[c], s) })
280
+ /* @__PURE__ */ e(l, { bold: !0, variant: "Body", children: b(d.data[c], o) })
282
281
  ]
283
282
  },
284
283
  d.id
@@ -292,78 +291,68 @@ function Dt({
292
291
  }
293
292
  );
294
293
  }
295
- const Gt = ({
296
- areaColor: t,
297
- axisColor: r,
298
- baseline: s = "max",
294
+ const zt = ({
295
+ axisColor: t,
296
+ baseline: r = "max",
299
297
  chartFor: o,
300
- chartXaxisSx: k,
301
- chartYaxisSx: m,
302
- colors: u,
303
- curveType: f = "linear",
304
- customLegendVariant: c,
305
- customTooltipLabels: d,
306
- datasets: a,
307
- height: h,
308
- isGraphClippingXAxis: y = !1,
309
- labels: v,
310
- labelBackgroundColor: W,
311
- labelFontColor: H,
312
- labelFontSize: G,
313
- margin: T,
314
- markHandlers: D,
315
- markStyles: B,
316
- minRange: $,
317
- maxRange: j,
318
- onItemClick: z,
319
- showArea: F = !1,
320
- showAverage: O = !1,
321
- showAxisHighlight: q = !1,
322
- showBars: N = !1,
323
- showLegend: Q = !1,
324
- showMark: U = !0,
325
- showMarkLabel: V = !1,
326
- showTooltip: J = !1,
327
- showXAxis: K = !1,
328
- showXAxisTicks: Z = !1,
329
- showYAxis: _ = !1,
330
- showYAxisTicks: tt = !1,
331
- title: et,
332
- useCustomMark: nt = !1,
298
+ chartXaxisSx: s,
299
+ chartYaxisSx: y,
300
+ colors: m,
301
+ curveType: x = "linear",
302
+ customLegendVariant: f,
303
+ customTooltipLabels: c,
304
+ datasets: d,
305
+ height: a,
306
+ isGraphClippingXAxis: h = !1,
307
+ labels: k,
308
+ labelBackgroundColor: I,
309
+ labelFontColor: P,
310
+ labelFontSize: E,
311
+ margin: D,
312
+ markHandlers: T,
313
+ markStyles: $,
314
+ onItemClick: M,
315
+ showArea: R = !1,
316
+ showAverage: H = !1,
317
+ showAxisHighlight: Y = !1,
318
+ showBars: j = !1,
319
+ showLegend: q = !1,
320
+ showMarkLabel: G = !1,
321
+ showTooltip: O = !1,
322
+ showXAxis: Q = !1,
323
+ showXAxisTicks: U = !1,
324
+ showYAxis: V = !1,
325
+ showYAxisTicks: J = !1,
326
+ title: K,
327
+ useCustomMark: Z = !1,
333
328
  valueFormatterString: C,
334
- width: rt
329
+ width: _
335
330
  }) => {
336
- const g = Y(), at = a.flat().map((n) => n.x), M = a.flat().map((n) => n.y), X = Math.round(M.reduce((n, S) => S + n, 0) / M.length), w = Math.floor(Math.min(...M) / 100) * 100, L = Math.ceil(Math.max(...M) / 100) * 100, P = a.map((n, S) => ({
337
- type: N ? "bar" : "line",
338
- curve: f,
339
- color: N ? g.palette.chart?.chart6 : u[S] ?? g.palette.primary.main,
331
+ const g = X(), tt = d.flat().map((n) => n.x), w = d.flat().map((n) => n.y), F = Math.round(w.reduce((n, v) => v + n, 0) / w.length), L = Math.floor(Math.min(...w) / 100) * 100, S = Math.ceil(Math.max(...w) / 100) * 100, z = d.map((n, v) => ({
332
+ type: j ? "bar" : "line",
333
+ curve: x,
334
+ color: j ? g.palette.chart?.chart6 : m[v] ?? g.palette.primary.main,
340
335
  data: n.map((p) => p.y),
341
- area: F,
342
- baseline: s,
336
+ area: R,
337
+ baseline: r,
343
338
  showMark: !0,
344
339
  valueFormatter: (p) => C ? b(p || 0, C) : String(p)
345
- })), it = {
340
+ })), et = {
346
341
  ...{
347
342
  top: 60,
348
343
  right: 35,
349
344
  bottom: 50,
350
345
  left: 50
351
346
  },
352
- ...T
347
+ ...D
353
348
  };
354
- let R = $ ?? w, A = j ?? L;
349
+ let A = L, W = S;
355
350
  if (o === "networthChart") {
356
- const n = L - w, S = n < L * 0.05 ? 0.25 : 0.2, p = Math.max(n * S, L * 0.015);
357
- R = w - p < 0 ? w : w - p, A = L + p;
351
+ const n = S - L, v = n < S * 0.05 ? 0.25 : 0.2, p = Math.max(n * v, S * 0.015);
352
+ A = L - p < 0 ? L : L - p, W = S + p;
358
353
  }
359
- const ot = () => {
360
- if (o === "creditOverTime")
361
- return [300, 450, 600, 725, 850];
362
- if (o === "networthChart")
363
- return yt(R, A, 5);
364
- };
365
354
  return /* @__PURE__ */ i(
366
- lt,
355
+ nt,
367
356
  {
368
357
  sx: {
369
358
  position: "relative",
@@ -382,11 +371,11 @@ const Gt = ({
382
371
  },
383
372
  children: [
384
373
  /* @__PURE__ */ i(
385
- st,
374
+ at,
386
375
  {
387
- height: h,
388
- margin: it,
389
- series: P,
376
+ height: a,
377
+ margin: et,
378
+ series: z,
390
379
  sx: {
391
380
  p: 4,
392
381
  "& .MuiBarLabel-root": {
@@ -403,61 +392,45 @@ const Gt = ({
403
392
  fontFamily: g.typography.Small.fontFamily
404
393
  }
405
394
  },
406
- width: rt,
407
- xAxis: [{ data: at, scaleType: N ? "band" : "point" }],
395
+ width: _,
396
+ xAxis: [{ data: tt, scaleType: j ? "band" : "point" }],
408
397
  yAxis: [
409
398
  {
410
- tickInterval: ot(),
411
- min: y ? -22 : R,
412
- max: A || 100,
413
- colorMap: F && P.length < 2 ? {
399
+ tickInterval: o === "networthChart" ? mt(A, W, 5) : void 0,
400
+ min: h ? -22 : A,
401
+ max: W || 100,
402
+ colorMap: R && z.length < 2 ? {
414
403
  type: "continuous",
415
- min: R,
416
- max: A,
404
+ min: A,
405
+ max: W,
417
406
  color: [
418
407
  g.palette.background.paper,
419
- u[0] ?? g.palette.primary.main
408
+ m[0] ?? g.palette.primary.main
420
409
  ]
421
410
  } : void 0,
422
411
  valueFormatter: (n) => C ? b(n, C) : String(n)
423
412
  }
424
413
  ],
425
414
  children: [
426
- O && /* @__PURE__ */ e(
427
- ct,
415
+ H && /* @__PURE__ */ e(
416
+ rt,
428
417
  {
429
418
  lineStyle: {
430
- stroke: W ? g.palette.neutral.main : g.palette.neutral.dark,
419
+ stroke: I ? g.palette.neutral.main : g.palette.neutral.dark,
431
420
  strokeDasharray: "10, 8",
432
421
  strokeWidth: 2
433
422
  },
434
- y: X
435
- }
436
- ),
437
- /* @__PURE__ */ e(
438
- dt,
439
- {
440
- onItemClick: z,
441
- ...t && {
442
- slots: {
443
- area: (n) => /* @__PURE__ */ i("g", { children: [
444
- /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ i("linearGradient", { id: "customGradient", x1: "0", x2: "0", y1: "0", y2: "1", children: [
445
- /* @__PURE__ */ e("stop", { offset: "0%", stopColor: t }),
446
- /* @__PURE__ */ e("stop", { offset: "100%", stopColor: t, stopOpacity: 0.02 })
447
- ] }) }),
448
- /* @__PURE__ */ e("path", { ...n, fill: "url(#customGradient)" })
449
- ] })
450
- }
451
- }
423
+ y: F
452
424
  }
453
425
  ),
426
+ /* @__PURE__ */ e(it, { onItemClick: M }),
454
427
  /* @__PURE__ */ e(
455
- ht,
428
+ ot,
456
429
  {
457
- onItemClick: z,
430
+ onItemClick: M,
458
431
  slots: {
459
432
  line: (n) => /* @__PURE__ */ e(
460
- Lt,
433
+ bt,
461
434
  {
462
435
  ...n,
463
436
  lineColor: n.ownerState.color ?? g.palette.primary.main
@@ -467,22 +440,21 @@ const Gt = ({
467
440
  }
468
441
  ),
469
442
  /* @__PURE__ */ e(
470
- mt,
443
+ lt,
471
444
  {
472
- onItemClick: z,
473
- slots: nt ? {
445
+ onItemClick: M,
446
+ slots: Z ? {
474
447
  mark: (n) => /* @__PURE__ */ e(
475
- wt,
448
+ pt,
476
449
  {
477
- handlers: D,
478
- labelBackgroundColor: W,
479
- labelFontColor: H,
480
- labelFontSize: G,
481
- showLabel: V,
482
- showMark: U || n.dataIndex === a[0].length - 1,
483
- style: B?.(n.dataIndex) ?? {},
450
+ handlers: T,
451
+ labelBackgroundColor: I,
452
+ labelFontColor: P,
453
+ labelFontSize: E,
454
+ showLabel: G,
455
+ style: $?.(n.dataIndex) ?? {},
484
456
  valueFormatterString: C,
485
- yData: M,
457
+ yData: w,
486
458
  ...n
487
459
  }
488
460
  )
@@ -490,73 +462,73 @@ const Gt = ({
490
462
  }
491
463
  ),
492
464
  /* @__PURE__ */ e(
493
- ut,
465
+ st,
494
466
  {
495
467
  barLabel: (n) => Number(n.value) > 0 ? `$${n.value}` : null,
496
468
  borderRadius: 10
497
469
  }
498
470
  ),
499
471
  /* @__PURE__ */ e(
500
- ft,
472
+ ct,
501
473
  {
502
- disableLine: !K,
503
- disableTicks: !Z,
504
- slotProps: r ? {
474
+ disableLine: !Q,
475
+ disableTicks: !U,
476
+ slotProps: t ? {
505
477
  axisLine: {
506
478
  style: {
507
- stroke: r
479
+ stroke: t
508
480
  }
509
481
  },
510
482
  axisTick: {
511
483
  style: {
512
- stroke: r
484
+ stroke: t
513
485
  }
514
486
  }
515
487
  } : {},
516
- sx: { ...k }
488
+ sx: { ...s }
517
489
  }
518
490
  ),
519
491
  /* @__PURE__ */ e(
520
- xt,
492
+ dt,
521
493
  {
522
- disableLine: !_,
523
- disableTicks: !tt,
524
- slotProps: r ? {
494
+ disableLine: !V,
495
+ disableTicks: !J,
496
+ sx: { ...y },
497
+ slotProps: t ? {
525
498
  axisLine: {
526
499
  style: {
527
- stroke: r
500
+ stroke: t
528
501
  }
529
502
  },
530
503
  axisTick: {
531
504
  style: {
532
- stroke: r
505
+ stroke: t
533
506
  }
534
507
  }
535
- } : {},
536
- sx: { ...m }
508
+ } : {}
537
509
  }
538
510
  ),
539
- q && /* @__PURE__ */ e(gt, { x: "line" }),
540
- J && /* @__PURE__ */ e(
541
- Dt,
511
+ Y && /* @__PURE__ */ e(ht, { x: "line" }),
512
+ O && /* @__PURE__ */ e(
513
+ wt,
542
514
  {
543
- customLabels: d,
544
- labels: v,
515
+ customLabels: c,
516
+ labels: k,
545
517
  valueFormatterString: C
546
518
  }
547
519
  )
548
520
  ]
549
521
  }
550
522
  ),
551
- Q && /* @__PURE__ */ e(
552
- Tt,
523
+ q && /* @__PURE__ */ e(
524
+ Mt,
553
525
  {
554
- average: O ? X : void 0,
555
- customLegendVariant: c,
556
- labels: v,
557
- series: P,
526
+ average: H ? F : void 0,
527
+ customLegendVariant: f,
528
+ labels: k,
529
+ series: z,
558
530
  style: { position: "absolute", top: 16, left: 16 },
559
- title: et,
531
+ title: K,
560
532
  valueFormatterString: C
561
533
  }
562
534
  )
@@ -565,5 +537,5 @@ const Gt = ({
565
537
  );
566
538
  };
567
539
  export {
568
- Gt as L
540
+ zt as L
569
541
  };