@mx-cartographer/experiences 7.0.11-alpha.al0 → 7.0.11-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 (103) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/{Account-D_kRKI6x.mjs → Account-BW3-oYEs.mjs} +1 -1
  3. package/dist/{AccountDetailsContent-Dfja2v8K.mjs → AccountDetailsContent-Tm7IjJIc.mjs} +16 -16
  4. package/dist/{AccountDetailsHeader-nc5mqlHm.mjs → AccountDetailsHeader-sum_Bgdy.mjs} +5 -5
  5. package/dist/{AccountFields-DeebSePp.mjs → AccountFields-CIz-r3gP.mjs} +2 -2
  6. package/dist/{AccountListItem-dh03tivj.mjs → AccountListItem-B-ZjJ4Gp.mjs} +3 -3
  7. package/dist/{AccountStore-Cp7xWX8n.mjs → AccountStore-BaMynkQT.mjs} +11 -11
  8. package/dist/{Accounts-DppzmFak.mjs → Accounts-CA-nqAjT.mjs} +1 -1
  9. package/dist/{BeatApi-D0WcLW3O.mjs → BeatApi-DLu87ijw.mjs} +3 -3
  10. package/dist/{BeatStore-y6WVs07e.mjs → BeatStore-By4aGoRM.mjs} +17 -17
  11. package/dist/{BudgetUtil-DmWvHV7C.mjs → BudgetUtil-CeSLAcsl.mjs} +1 -1
  12. package/dist/{CategorySelectorDrawer-uTU7Nwn2.mjs → CategorySelectorDrawer-BPvjZ-Xo.mjs} +1 -1
  13. package/dist/{CategoryStore-BfYppD3g.mjs → CategoryStore-BOyzQjQp.mjs} +4 -4
  14. package/dist/{ConnectDrawer-BfYwIgKa.mjs → ConnectDrawer-phFH6OHt.mjs} +5 -5
  15. package/dist/{ConnectionsDrawer-BKG07Loi.mjs → ConnectionsDrawer-ihxkAi1P.mjs} +2 -2
  16. package/dist/{CurrencyInput-BtrNBP3z.mjs → CurrencyInput-bEx2Mbd0.mjs} +1 -1
  17. package/dist/{DebtsStore-BR1o55kk.mjs → DebtsStore-Dp-CraCD.mjs} +1 -1
  18. package/dist/{ExportCsvAction-BH369hls.mjs → ExportCsvAction-CbMfQ2Wa.mjs} +3 -3
  19. package/dist/{Fetch-CJ9cgjgV.mjs → Fetch-CkFKy79O.mjs} +8 -9
  20. package/dist/{FinstrongStore-rC2F4Tq3.mjs → FinstrongStore-mkALvztw.mjs} +4 -4
  21. package/dist/{GoalStore-rZKi2YjE.mjs → GoalStore-BWHkOQ8o.mjs} +21 -21
  22. package/dist/{Help-t24Ldz-O.mjs → Help-B3oENhkG.mjs} +1 -1
  23. package/dist/{LineChart-CfEEnHUy.mjs → LineChart-BWWmmJxV.mjs} +204 -183
  24. package/dist/{ListItemAction-Cwadpg85.mjs → ListItemAction-DNZZ5fSa.mjs} +1 -1
  25. package/dist/{ManageIncome-xksS_sWM.mjs → ManageIncome-Bef4VWt7.mjs} +4 -4
  26. package/dist/MerchantStore-DVH-QOf0.mjs +37 -0
  27. package/dist/{MicroWidgetContainer-DwTAjSdX.mjs → MicroWidgetContainer-Dxz8uBN9.mjs} +1 -1
  28. package/dist/{MiniWidgetContainer-CxggrnHk.mjs → MiniWidgetContainer-CTyjmE1h.mjs} +1 -1
  29. package/dist/{NetWorthStore-5qSDIglU.mjs → NetWorthStore-B6xF9eGH.mjs} +2 -2
  30. package/dist/{NotificationSettings-Cny7J1hO.mjs → NotificationSettings-uXVwpIa1.mjs} +2 -2
  31. package/dist/{NotificationStore-DpV9hXSE.mjs → NotificationStore-DHtSGySy.mjs} +4 -8
  32. package/dist/{OriginalBalanceAction-DDMRgIBU.mjs → OriginalBalanceAction-DepsKiJz.mjs} +3 -3
  33. package/dist/{RecurringSettings-DXQ64A8U.mjs → RecurringSettings-1EOh67IT.mjs} +3 -3
  34. package/dist/{RecurringTransactionsStore-CXhnipfd.mjs → RecurringTransactionsStore-D62XJtdL.mjs} +16 -20
  35. package/dist/{SettingsStore-CLLqNa_S.mjs → SettingsStore-B4gi6oOw.mjs} +29 -33
  36. package/dist/{TransactionApi-C0HMGDBV.mjs → TransactionApi-DbbcjI2L.mjs} +29 -29
  37. package/dist/TransactionDetails-DYF-P762.mjs +1337 -0
  38. package/dist/{TransactionStore-Cu_KM_J9.mjs → TransactionStore-0tLtBEIC.mjs} +25 -29
  39. package/dist/TrendsStore-WrHxzdbQ.mjs +565 -0
  40. package/dist/{Transaction-CXMMfhz-.mjs → User-Dq9Qj764.mjs} +48 -46
  41. package/dist/{ViewMoreMicroCard-DJoNOqkD.mjs → ViewMoreMicroCard-BZI5VMNW.mjs} +2 -5
  42. package/dist/{WidgetContainer-QcfqagZD.mjs → WidgetContainer-C2NBfpDg.mjs} +2 -2
  43. package/dist/accounts/api/AccountApi.d.ts +2 -2
  44. package/dist/accounts/index.es.js +17 -17
  45. package/dist/analytics/index.es.js +2 -2
  46. package/dist/budgets/api/BudgetsApi.d.ts +2 -2
  47. package/dist/budgets/index.es.js +10 -10
  48. package/dist/cashflow/api/CashflowApi.d.ts +2 -3
  49. package/dist/cashflow/index.es.js +10 -10
  50. package/dist/categories/index.es.js +2 -2
  51. package/dist/common/api/AnalyticsApi.d.ts +2 -2
  52. package/dist/common/api/AppDataApi.d.ts +2 -2
  53. package/dist/common/api/BeatApi.d.ts +2 -2
  54. package/dist/common/api/CategoryApi.d.ts +3 -2
  55. package/dist/common/api/GlobalCopyApi.d.ts +1 -2
  56. package/dist/common/api/LocalizedCopyApi.d.ts +1 -2
  57. package/dist/common/api/NotificationApi.d.ts +2 -2
  58. package/dist/common/api/ScheduledPaymentsApi.d.ts +2 -3
  59. package/dist/common/api/UserApi.d.ts +2 -2
  60. package/dist/common/context/GlobalDataProvider.d.ts +2 -3
  61. package/dist/common/context/hooks.d.ts +1 -4
  62. package/dist/common/context/index.d.ts +1 -1
  63. package/dist/common/index.es.js +315 -321
  64. package/dist/common/stores/GlobalStore.d.ts +1 -2
  65. package/dist/common/types/index.d.ts +0 -1
  66. package/dist/common/utils/Fetch.d.ts +1 -3
  67. package/dist/dashboard/index.es.js +7 -7
  68. package/dist/debts/index.es.js +197 -180
  69. package/dist/{exportTransactionsToCSV-DpP_a1g8.mjs → exportTransactionsToCSV-BDlt8u0n.mjs} +1 -1
  70. package/dist/finstrong/api/FinstrongApi.d.ts +1 -2
  71. package/dist/finstrong/index.es.js +7 -7
  72. package/dist/goals/api/GoalApi.d.ts +2 -3
  73. package/dist/goals/index.es.js +11 -11
  74. package/dist/help/api/HelpApi.d.ts +2 -2
  75. package/dist/help/index.es.js +3 -3
  76. package/dist/hooks-DkUqN6JE.mjs +71 -0
  77. package/dist/insights/index.es.js +1 -1
  78. package/dist/investments/api/HoldingApi.d.ts +2 -3
  79. package/dist/investments/index.es.js +3 -3
  80. package/dist/merchants/api/MerchantApi.d.ts +1 -2
  81. package/dist/merchants/index.es.js +2 -2
  82. package/dist/microinsights/context/InsightsMicroWidgetDataProvider.d.ts +1 -2
  83. package/dist/microinsights/context/hooks.d.ts +1 -1
  84. package/dist/microinsights/index.es.js +1 -1
  85. package/dist/networth/index.es.js +7 -7
  86. package/dist/notifications/index.es.js +5 -5
  87. package/dist/recurringtransactions/api/RepeatingTransactionsApi.d.ts +2 -2
  88. package/dist/recurringtransactions/index.es.js +10 -10
  89. package/dist/settings/api/SettingsApi.d.ts +2 -3
  90. package/dist/settings/index.es.js +7 -7
  91. package/dist/spending/index.es.js +4 -4
  92. package/dist/transactions/api/TransactionApi.d.ts +2 -3
  93. package/dist/transactions/components/shared/transactiondetails/Description.d.ts +1 -0
  94. package/dist/transactions/components/shared/transactiondetails/TransactionDetailsView.d.ts +8 -0
  95. package/dist/transactions/index.es.js +121 -120
  96. package/dist/trends/index.es.js +10 -10
  97. package/dist/{useCombineEvents-Dbjzfwvo.mjs → useCombineEvents-DaDBSR_1.mjs} +29 -29
  98. package/package.json +1 -1
  99. package/dist/MerchantStore-h96aTml7.mjs +0 -37
  100. package/dist/TransactionDetails-v77agHHP.mjs +0 -1280
  101. package/dist/TrendsStore-B4Q-iLX0.mjs +0 -547
  102. package/dist/common/types/Handlers.d.ts +0 -2
  103. package/dist/hooks-DcS6DyRl.mjs +0 -74
@@ -1,15 +1,16 @@
1
1
  import { jsxs as i, Fragment as D, jsx as t } from "react/jsx-runtime";
2
+ import K from "@mui/material/Box";
2
3
  import { useTheme as N } from "@mui/material/styles";
3
- import { ResponsiveChartContainer as K, ChartsReferenceLine as Z, AreaPlot as _, LinePlot as ee, MarkPlot as te, BarPlot as ne, ChartsXAxis as re, ChartsYAxis as ae, ChartsAxisHighlight as ie } from "@mui/x-charts";
4
- import oe from "@mui/material/useMediaQuery";
4
+ import { ResponsiveChartContainer as Z, ChartsReferenceLine as _, AreaPlot as ee, LinePlot as te, MarkPlot as ne, BarPlot as re, ChartsXAxis as ae, ChartsYAxis as ie, ChartsAxisHighlight as oe } from "@mui/x-charts";
5
+ import le from "@mui/material/useMediaQuery";
5
6
  import { f as y } from "./NumberFormatting-CtWHhyBX.mjs";
6
- import { observer as le } from "mobx-react-lite";
7
- import { Stack as x, Box as A, useTheme as se } from "@mui/material";
7
+ import { observer as se } from "mobx-react-lite";
8
+ import { Stack as x, Box as W, useTheme as ce } from "@mui/material";
8
9
  import { Text as l } from "@mxenabled/mxui";
9
- import { u as ce } from "./hooks-DcS6DyRl.mjs";
10
- import { ChartsTooltip as de } from "@mui/x-charts/ChartsTooltip";
11
- const he = (e) => {
12
- const a = N(), o = e.showLabel, s = e.style, g = Number(e.x), u = Number(e.y), m = e.handlers?.onMarkClick, f = e.handlers?.onMouseEnter, c = e.handlers?.onMouseLeave, d = oe(a.breakpoints.up("sm")), n = e.valueFormatterString ? y(e.yData[e.dataIndex], e.valueFormatterString) : String(e.yData[e.dataIndex]), h = d ? a.typography.Small?.fontSize : a.typography.XSmall?.fontSize, k = h ? parseFloat(h.toString()) * 0.6 : 8, C = n.length * k + 8 + 8, M = 24, S = g - C / 2, T = u - 30;
10
+ import { u as de } from "./hooks-DkUqN6JE.mjs";
11
+ import { ChartsTooltip as he } from "@mui/x-charts/ChartsTooltip";
12
+ const ue = (e) => {
13
+ const a = N(), o = e.showLabel, s = e.style, g = Number(e.x), m = Number(e.y), u = e.handlers?.onMarkClick, f = e.handlers?.onMouseEnter, c = e.handlers?.onMouseLeave, d = le(a.breakpoints.up("sm")), n = e.valueFormatterString ? y(e.yData[e.dataIndex], e.valueFormatterString) : String(e.yData[e.dataIndex]), h = d ? a.typography.Small?.fontSize : a.typography.XSmall?.fontSize, k = h ? parseFloat(h.toString()) * 0.6 : 8, C = n.length * k + 8 + 8, M = 24, S = g - C / 2, T = m - 30;
13
14
  return /* @__PURE__ */ i(D, { children: [
14
15
  o && /* @__PURE__ */ i(D, { children: [
15
16
  e.labelBackgroundColor && /* @__PURE__ */ t(
@@ -33,7 +34,7 @@ const he = (e) => {
33
34
  },
34
35
  textAnchor: "middle",
35
36
  x: g,
36
- y: u - 28 + M / 2,
37
+ y: m - 28 + M / 2,
37
38
  children: n
38
39
  }
39
40
  )
@@ -41,11 +42,11 @@ const he = (e) => {
41
42
  /* @__PURE__ */ t(
42
43
  "path",
43
44
  {
44
- cursor: m ? "pointer" : "unset",
45
+ cursor: u ? "pointer" : "unset",
45
46
  d: "M4.514,0A4.514,4.514,0,1,1,-4.514,0A4.514,4.514,0,1,1,4.514,0",
46
47
  height: "20px",
47
48
  onClick: (w) => {
48
- m?.(w, e.dataIndex);
49
+ u?.(w, e.dataIndex);
49
50
  },
50
51
  onMouseEnter: () => {
51
52
  f?.(e.dataIndex);
@@ -82,7 +83,7 @@ const he = (e) => {
82
83
  }
83
84
  }
84
85
  ) })
85
- ] }), ue = ({
86
+ ] }), xe = ({
86
87
  label: e,
87
88
  customLegendVariant: a
88
89
  }) => {
@@ -91,16 +92,16 @@ const he = (e) => {
91
92
  /* @__PURE__ */ t(l, { variant: o, children: e.label }),
92
93
  /* @__PURE__ */ t(l, { bold: !0, sx: { marginLeft: 8 }, variant: o, children: y(e.amount, "0,0") })
93
94
  ] }) : null;
94
- }, xe = ({
95
+ }, fe = ({
95
96
  average: e,
96
97
  customLegendVariant: a,
97
98
  labels: o = [],
98
99
  series: s,
99
100
  style: g,
100
- title: u,
101
- valueFormatterString: m
101
+ title: m,
102
+ valueFormatterString: u
102
103
  }) => {
103
- const { common: f } = ce(), c = a || "Small";
104
+ const { common: f } = de(), c = a || "Small";
104
105
  return /* @__PURE__ */ i(x, { style: { flexDirection: "row", gap: 24, ...g }, children: [
105
106
  s.map((d, n) => {
106
107
  const h = o[n];
@@ -110,7 +111,7 @@ const he = (e) => {
110
111
  style: { alignItems: "center", flexDirection: "row", flexWrap: "wrap" },
111
112
  children: [
112
113
  /* @__PURE__ */ t(
113
- A,
114
+ W,
114
115
  {
115
116
  sx: {
116
117
  width: 10,
@@ -120,7 +121,7 @@ const he = (e) => {
120
121
  }
121
122
  }
122
123
  ),
123
- /* @__PURE__ */ t(ue, { customLegendVariant: a, label: h })
124
+ /* @__PURE__ */ t(xe, { customLegendVariant: a, label: h })
124
125
  ]
125
126
  },
126
127
  n
@@ -129,28 +130,28 @@ const he = (e) => {
129
130
  e && /* @__PURE__ */ i(x, { sx: { alignItems: "center", flexDirection: "row" }, children: [
130
131
  /* @__PURE__ */ t(l, { bold: !0, sx: { marginRight: 8 }, variant: c, children: "– –" }),
131
132
  /* @__PURE__ */ i(l, { variant: c, children: [
132
- u || f.average,
133
+ m || f.average,
133
134
  "  "
134
135
  ] }),
135
- /* @__PURE__ */ t(l, { bold: !0, variant: c, children: m ? y(e, m) : e })
136
+ /* @__PURE__ */ t(l, { bold: !0, variant: c, children: u ? y(e, u) : e })
136
137
  ] })
137
138
  ] });
138
- }, fe = le(xe);
139
- function ge({
139
+ }, ge = se(fe);
140
+ function ye({
140
141
  customLabels: e,
141
142
  labels: a = [],
142
143
  valueFormatterString: o = "0,0"
143
144
  }) {
144
- const s = se();
145
+ const s = ce();
145
146
  return /* @__PURE__ */ t(
146
- de,
147
+ he,
147
148
  {
148
149
  showCrosshair: !0,
149
150
  slots: {
150
151
  axisContent: (g) => {
151
- const { axisValue: u, dataIndex: m, series: f } = g, c = m ?? 0;
152
+ const { axisValue: m, dataIndex: u, series: f } = g, c = u ?? 0;
152
153
  if (e) {
153
- const d = e[c]?.[0]?.header || String(u);
154
+ const d = e[c]?.[0]?.header || String(m);
154
155
  return /* @__PURE__ */ i(
155
156
  x,
156
157
  {
@@ -209,7 +210,7 @@ function ge({
209
210
  },
210
211
  children: [
211
212
  /* @__PURE__ */ t(
212
- A,
213
+ W,
213
214
  {
214
215
  sx: {
215
216
  width: "12px",
@@ -248,7 +249,7 @@ function ge({
248
249
  py: 12
249
250
  },
250
251
  children: [
251
- /* @__PURE__ */ t(l, { variant: "H3", children: String(u) }),
252
+ /* @__PURE__ */ t(l, { variant: "H3", children: String(m) }),
252
253
  f.map((d, n) => /* @__PURE__ */ i(
253
254
  x,
254
255
  {
@@ -263,7 +264,7 @@ function ge({
263
264
  children: [
264
265
  /* @__PURE__ */ i(x, { sx: { flexDirection: "row", alignItems: "center", gap: 8 }, children: [
265
266
  /* @__PURE__ */ t(
266
- A,
267
+ W,
267
268
  {
268
269
  sx: {
269
270
  width: "12px",
@@ -289,14 +290,14 @@ function ge({
289
290
  }
290
291
  );
291
292
  }
292
- const Te = ({
293
+ const Re = ({
293
294
  axisColor: e,
294
295
  baseline: a = "max",
295
296
  colors: o,
296
297
  curveType: s = "linear",
297
298
  customLegendVariant: g,
298
- customTooltipLabels: u,
299
- datasets: m,
299
+ customTooltipLabels: m,
300
+ datasets: u,
300
301
  height: f,
301
302
  isGraphClippingXAxis: c = !1,
302
303
  labels: d,
@@ -323,10 +324,10 @@ const Te = ({
323
324
  valueFormatterString: p,
324
325
  width: V
325
326
  }) => {
326
- const b = N(), q = m.flat().map((r) => r.x), L = m.flat().map((r) => r.y), z = Math.round(L.reduce((r, W) => W + r, 0) / L.length), I = Math.floor(Math.min(...L) / 100) * 100, P = Math.ceil(Math.max(...L) / 100) * 100, R = m.map((r, W) => ({
327
+ const b = N(), q = u.flat().map((r) => r.x), L = u.flat().map((r) => r.y), z = Math.round(L.reduce((r, R) => R + r, 0) / L.length), I = Math.floor(Math.min(...L) / 100) * 100, P = Math.ceil(Math.max(...L) / 100) * 100, A = u.map((r, R) => ({
327
328
  type: w ? "bar" : "line",
328
329
  curve: s,
329
- color: w ? b.palette.chart?.chart6 : o[W] ?? b.palette.primary.main,
330
+ color: w ? b.palette.chart?.chart6 : o[R] ?? b.palette.primary.main,
330
331
  data: r.map((v) => v.y),
331
332
  area: M,
332
333
  baseline: a,
@@ -341,162 +342,182 @@ const Te = ({
341
342
  },
342
343
  ...B
343
344
  };
344
- return /* @__PURE__ */ i("div", { style: { position: "relative" }, children: [
345
- /* @__PURE__ */ i(
346
- K,
347
- {
348
- height: f,
349
- margin: J,
350
- series: R,
351
- sx: {
352
- p: 4,
353
- "& .MuiBarLabel-root": {
354
- fontSize: 10,
355
- fontWeight: 600
356
- },
357
- "& .MuiAreaElement-root": {
358
- opacity: 0.15
359
- }
345
+ return /* @__PURE__ */ i(
346
+ K,
347
+ {
348
+ sx: {
349
+ position: "relative",
350
+ touchAction: "pan-y",
351
+ // Allow vertical scrolling
352
+ "& svg": {
353
+ touchAction: "pan-y",
354
+ // Allow vertical scrolling on SVG
355
+ userSelect: "none"
356
+ // Prevent text selection
360
357
  },
361
- width: V,
362
- xAxis: [{ data: q, scaleType: w ? "band" : "point" }],
363
- yAxis: [
358
+ "& .recharts-wrapper": {
359
+ touchAction: "pan-y"
360
+ // For Recharts library specifically
361
+ }
362
+ },
363
+ children: [
364
+ /* @__PURE__ */ i(
365
+ Z,
364
366
  {
365
- min: c ? -22 : I,
366
- max: P || 100,
367
- colorMap: M && R.length < 2 ? {
368
- type: "continuous",
369
- min: I,
370
- max: P,
371
- color: [
372
- b.palette.background.paper,
373
- o[0] ?? b.palette.primary.main
374
- ]
375
- } : void 0,
376
- valueFormatter: (r) => p ? y(r, p) : String(r)
377
- }
378
- ],
379
- children: [
380
- S && /* @__PURE__ */ t(
381
- Z,
382
- {
383
- lineStyle: {
384
- stroke: n ? b.palette.neutral.main : b.palette.neutral.dark,
385
- strokeDasharray: "10, 8",
386
- strokeWidth: 2
367
+ height: f,
368
+ margin: J,
369
+ series: A,
370
+ sx: {
371
+ p: 4,
372
+ "& .MuiBarLabel-root": {
373
+ fontSize: 10,
374
+ fontWeight: 600
387
375
  },
388
- y: z
389
- }
390
- ),
391
- /* @__PURE__ */ t(_, { onItemClick: C }),
392
- /* @__PURE__ */ t(
393
- ee,
394
- {
395
- onItemClick: C,
396
- slots: {
397
- line: (r) => /* @__PURE__ */ t(
398
- me,
399
- {
400
- ...r,
401
- lineColor: r.ownerState.color ?? b.palette.primary.main
402
- }
403
- )
376
+ "& .MuiAreaElement-root": {
377
+ opacity: 0.15
404
378
  }
405
- }
406
- ),
407
- /* @__PURE__ */ t(
408
- te,
409
- {
410
- onItemClick: C,
411
- slots: U ? {
412
- mark: (r) => /* @__PURE__ */ t(
413
- he,
414
- {
415
- handlers: $,
416
- labelBackgroundColor: n,
417
- labelFontColor: h,
418
- labelFontSize: k,
419
- showLabel: E,
420
- style: j?.(r.dataIndex) ?? {},
421
- valueFormatterString: p,
422
- yData: L,
423
- ...r
424
- }
425
- )
426
- } : void 0
427
- }
428
- ),
429
- /* @__PURE__ */ t(
430
- ne,
431
- {
432
- barLabel: (r) => Number(r.value) > 0 ? `$${r.value}` : null,
433
- borderRadius: 10
434
- }
435
- ),
436
- /* @__PURE__ */ t(
437
- re,
438
- {
439
- disableLine: !Y,
440
- disableTicks: !F,
441
- slotProps: e ? {
442
- axisLine: {
443
- style: {
444
- stroke: e
445
- }
446
- },
447
- axisTick: {
448
- style: {
449
- stroke: e
450
- }
379
+ },
380
+ width: V,
381
+ xAxis: [{ data: q, scaleType: w ? "band" : "point" }],
382
+ yAxis: [
383
+ {
384
+ min: c ? -22 : I,
385
+ max: P || 100,
386
+ colorMap: M && A.length < 2 ? {
387
+ type: "continuous",
388
+ min: I,
389
+ max: P,
390
+ color: [
391
+ b.palette.background.paper,
392
+ o[0] ?? b.palette.primary.main
393
+ ]
394
+ } : void 0,
395
+ valueFormatter: (r) => p ? y(r, p) : String(r)
396
+ }
397
+ ],
398
+ children: [
399
+ S && /* @__PURE__ */ t(
400
+ _,
401
+ {
402
+ lineStyle: {
403
+ stroke: n ? b.palette.neutral.main : b.palette.neutral.dark,
404
+ strokeDasharray: "10, 8",
405
+ strokeWidth: 2
406
+ },
407
+ y: z
451
408
  }
452
- } : {}
453
- }
454
- ),
455
- /* @__PURE__ */ t(
456
- ae,
457
- {
458
- disableLine: !G,
459
- disableTicks: !O,
460
- slotProps: e ? {
461
- axisLine: {
462
- style: {
463
- stroke: e
464
- }
465
- },
466
- axisTick: {
467
- style: {
468
- stroke: e
409
+ ),
410
+ /* @__PURE__ */ t(ee, { onItemClick: C }),
411
+ /* @__PURE__ */ t(
412
+ te,
413
+ {
414
+ onItemClick: C,
415
+ slots: {
416
+ line: (r) => /* @__PURE__ */ t(
417
+ me,
418
+ {
419
+ ...r,
420
+ lineColor: r.ownerState.color ?? b.palette.primary.main
421
+ }
422
+ )
469
423
  }
470
424
  }
471
- } : {}
472
- }
473
- ),
474
- T && /* @__PURE__ */ t(ie, { x: "line" }),
475
- X && /* @__PURE__ */ t(
476
- ge,
477
- {
478
- customLabels: u,
479
- labels: d,
480
- valueFormatterString: p
481
- }
482
- )
483
- ]
484
- }
485
- ),
486
- H && /* @__PURE__ */ t(
487
- fe,
488
- {
489
- average: S ? z : void 0,
490
- customLegendVariant: g,
491
- labels: d,
492
- series: R,
493
- style: { position: "absolute", top: 16, left: 16 },
494
- title: Q,
495
- valueFormatterString: p
496
- }
497
- )
498
- ] });
425
+ ),
426
+ /* @__PURE__ */ t(
427
+ ne,
428
+ {
429
+ onItemClick: C,
430
+ slots: U ? {
431
+ mark: (r) => /* @__PURE__ */ t(
432
+ ue,
433
+ {
434
+ handlers: $,
435
+ labelBackgroundColor: n,
436
+ labelFontColor: h,
437
+ labelFontSize: k,
438
+ showLabel: E,
439
+ style: j?.(r.dataIndex) ?? {},
440
+ valueFormatterString: p,
441
+ yData: L,
442
+ ...r
443
+ }
444
+ )
445
+ } : void 0
446
+ }
447
+ ),
448
+ /* @__PURE__ */ t(
449
+ re,
450
+ {
451
+ barLabel: (r) => Number(r.value) > 0 ? `$${r.value}` : null,
452
+ borderRadius: 10
453
+ }
454
+ ),
455
+ /* @__PURE__ */ t(
456
+ ae,
457
+ {
458
+ disableLine: !Y,
459
+ disableTicks: !F,
460
+ slotProps: e ? {
461
+ axisLine: {
462
+ style: {
463
+ stroke: e
464
+ }
465
+ },
466
+ axisTick: {
467
+ style: {
468
+ stroke: e
469
+ }
470
+ }
471
+ } : {}
472
+ }
473
+ ),
474
+ /* @__PURE__ */ t(
475
+ ie,
476
+ {
477
+ disableLine: !G,
478
+ disableTicks: !O,
479
+ slotProps: e ? {
480
+ axisLine: {
481
+ style: {
482
+ stroke: e
483
+ }
484
+ },
485
+ axisTick: {
486
+ style: {
487
+ stroke: e
488
+ }
489
+ }
490
+ } : {}
491
+ }
492
+ ),
493
+ T && /* @__PURE__ */ t(oe, { x: "line" }),
494
+ X && /* @__PURE__ */ t(
495
+ ye,
496
+ {
497
+ customLabels: m,
498
+ labels: d,
499
+ valueFormatterString: p
500
+ }
501
+ )
502
+ ]
503
+ }
504
+ ),
505
+ H && /* @__PURE__ */ t(
506
+ ge,
507
+ {
508
+ average: S ? z : void 0,
509
+ customLegendVariant: g,
510
+ labels: d,
511
+ series: A,
512
+ style: { position: "absolute", top: 16, left: 16 },
513
+ title: Q,
514
+ valueFormatterString: p
515
+ }
516
+ )
517
+ ]
518
+ }
519
+ );
499
520
  };
500
521
  export {
501
- Te as L
522
+ Re as L
502
523
  };
@@ -8,7 +8,7 @@ import L from "@mui/material/Stack";
8
8
  import { ChevronRight as g } from "@mxenabled/mx-icons";
9
9
  import { Text as m } from "@mxenabled/mxui";
10
10
  import { a as j } from "./Dialog-CWW597AF.mjs";
11
- import { u as P } from "./hooks-DcS6DyRl.mjs";
11
+ import { u as P } from "./hooks-DkUqN6JE.mjs";
12
12
  const D = v(
13
13
  ({
14
14
  children: n,
@@ -16,23 +16,23 @@ import { startOfToday as z } from "date-fns/startOfToday";
16
16
  import { endOfMonth as _e } from "date-fns/endOfMonth";
17
17
  import H from "@mui/material/Button";
18
18
  import { Delete as me, Add as ye, ReceiptLong as pe } from "@mxenabled/mx-icons";
19
- import { T as X, a as he, u as ge, S as fe, b as Ce } from "./TransactionDetails-v77agHHP.mjs";
19
+ import { T as X, a as he, u as ge, S as fe, b as Ce } from "./TransactionDetails-DYF-P762.mjs";
20
20
  import { getDayOfYear as be } from "date-fns/getDayOfYear";
21
21
  import { setDayOfYear as Se } from "date-fns/setDayOfYear";
22
22
  import { AdapterDateFns as ve } from "@mui/x-date-pickers/AdapterDateFnsV3";
23
23
  import { DatePicker as xe } from "@mui/x-date-pickers";
24
24
  import { LocalizationProvider as we } from "@mui/x-date-pickers/LocalizationProvider";
25
- import { u as w, h as M, e as F, a as Ae, f as Z, o as De } from "./hooks-DcS6DyRl.mjs";
25
+ import { u as w, h as M, e as F, a as Ae, f as Z, o as De } from "./hooks-DkUqN6JE.mjs";
26
26
  import { b as Ie, f as J } from "./NumberFormatting-CtWHhyBX.mjs";
27
27
  import { D as O } from "./Drawer-kEE73B87.mjs";
28
- import { A as R } from "./WidgetContainer-QcfqagZD.mjs";
28
+ import { A as R } from "./WidgetContainer-C2NBfpDg.mjs";
29
29
  import { f as Ee, D as Re, a as Te } from "./Dialog-CWW597AF.mjs";
30
30
  import { formatISO as Le } from "date-fns/formatISO";
31
31
  import { fromUnixTime as Oe } from "date-fns/fromUnixTime";
32
32
  import { S as ke } from "./SearchBox-B2_zLv8-.mjs";
33
33
  import { h as Ne } from "./DateUtil-BcuH7ErC.mjs";
34
34
  import { b as B } from "./Category-CevNQ03n.mjs";
35
- import { T as V } from "./Transaction-CXMMfhz-.mjs";
35
+ import { T as V } from "./User-Dq9Qj764.mjs";
36
36
  const ee = ({
37
37
  frequency: n,
38
38
  firstDay: t,
@@ -0,0 +1,37 @@
1
+ import { makeAutoObservable as m, runInAction as s } from "mobx";
2
+ import { F as p, A as c } from "./Fetch-CkFKy79O.mjs";
3
+ class h {
4
+ fetchInstance;
5
+ constructor(t, n) {
6
+ this.fetchInstance = new p(t, n);
7
+ }
8
+ getMerchants = async (t = [], n = [], r = 1, o = 25) => {
9
+ let a = c.MERCHANTS;
10
+ return a += `?page=${r}&per_page=${o}`, t.length && t.forEach((e) => a += `&fuzzy_name[]=${e}`), n.length && n.forEach((e) => a += `&guid[]=${e}`), this.fetchInstance.get(a).then((e) => e.merchants);
11
+ };
12
+ getMerchantByGuid = async (t) => this.fetchInstance.get(`${c.MERCHANTS}/${t}`).then((n) => n.merchant);
13
+ }
14
+ class l {
15
+ globalStore;
16
+ api = new h("/", "");
17
+ merchant = null;
18
+ merchants = [];
19
+ isLoading = !1;
20
+ constructor(t) {
21
+ this.globalStore = t, this.api = new h(t.endpoint, t.sessionToken), m(this);
22
+ }
23
+ loadMerchants = async (t = "") => {
24
+ this.isLoading = !0;
25
+ const n = await this.api.getMerchants([t]);
26
+ s(() => {
27
+ this.merchants = n, this.isLoading = !1;
28
+ });
29
+ };
30
+ loadMerchantByGuid = async (t) => {
31
+ const n = await this.api.getMerchantByGuid(t);
32
+ s(() => this.merchant = n);
33
+ };
34
+ }
35
+ export {
36
+ l as M
37
+ };
@@ -6,7 +6,7 @@ import b from "@mui/material/CardHeader";
6
6
  import { P as u, H3 as v } from "@mxenabled/mxui";
7
7
  import { ChevronRight as W } from "@mxenabled/mx-icons";
8
8
  import { u as M } from "./useDimensions-27p2evRx.mjs";
9
- import { W as w } from "./hooks-DcS6DyRl.mjs";
9
+ import { W as w } from "./hooks-DkUqN6JE.mjs";
10
10
  const H = ({
11
11
  children: e,
12
12
  className: o,
@@ -7,7 +7,7 @@ import b from "@mui/material/IconButton";
7
7
  import { Icon as C, ChevronRight as v } from "@mxenabled/mx-icons";
8
8
  import { Text as W, H3 as H } from "@mxenabled/mxui";
9
9
  import { u as I } from "./useDimensions-27p2evRx.mjs";
10
- import { W as M } from "./hooks-DcS6DyRl.mjs";
10
+ import { W as M } from "./hooks-DkUqN6JE.mjs";
11
11
  const j = ({
12
12
  className: t = "mx-cmn-mini-widget",
13
13
  closeLabel: a,
@@ -3,8 +3,8 @@ import { format as A } from "date-fns/format";
3
3
  import { fromUnixTime as W } from "date-fns/fromUnixTime";
4
4
  import { startOfMonth as _ } from "date-fns/startOfMonth";
5
5
  import { subMonths as B } from "date-fns/subMonths";
6
- import { a as b } from "./Accounts-DppzmFak.mjs";
7
- import { e as N, a as M, f as v } from "./ConnectDrawer-BfYwIgKa.mjs";
6
+ import { a as b } from "./Accounts-CA-nqAjT.mjs";
7
+ import { e as N, a as M, f as v } from "./ConnectDrawer-phFH6OHt.mjs";
8
8
  const f = 13, L = (n, t) => n.filter((e) => {
9
9
  const { is_closed: r, is_deleted: s, is_hidden: a, is_manual: i } = e;
10
10
  return r || s || a ? !1 : i || !e.guid ? !0 : t.some((l) => n.some((g) => l.guid === g.member_guid));
@@ -15,11 +15,11 @@ import { DateCalendar as te } from "@mui/x-date-pickers/DateCalendar";
15
15
  import { LocalizationProvider as ne } from "@mui/x-date-pickers/LocalizationProvider";
16
16
  import { AdapterDateFns as ie } from "@mui/x-date-pickers/AdapterDateFnsV3";
17
17
  import { A as oe, T as F, a as P, N as b } from "./Notification-ByMBpJ5u.mjs";
18
- import { u as D, r as T, o as w, c as se, e as ae, m as W, a as ce } from "./hooks-DcS6DyRl.mjs";
18
+ import { u as D, r as T, o as w, c as se, e as ae, m as W, a as ce } from "./hooks-DkUqN6JE.mjs";
19
19
  import { b as le } from "./Localization-2MODESHW.mjs";
20
20
  import { b as re, f as de } from "./NumberFormatting-CtWHhyBX.mjs";
21
21
  import { a as M } from "./Dialog-CWW597AF.mjs";
22
- import { C as me } from "./CurrencyInput-BtrNBP3z.mjs";
22
+ import { C as me } from "./CurrencyInput-bEx2Mbd0.mjs";
23
23
  import { u as _e } from "./useScreenSize-B6JyS_Lj.mjs";
24
24
  import { D as J } from "./Drawer-kEE73B87.mjs";
25
25
  import he from "@mui/material/Collapse";