@mx-cartographer/experiences 8.0.0-alpha.bb4 → 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 (106) hide show
  1. package/dist/{Account-B4CDD-zq.mjs → Account-BDXA6PWh.mjs} +1 -1
  2. package/dist/AccountDetailsContent-CUztd3-b.mjs +683 -0
  3. package/dist/{AccountDetailsHeader-DRjFuyJT.mjs → AccountDetailsHeader-i3KFhNuo.mjs} +18 -18
  4. package/dist/{AccountFields-Cl4KHoSj.mjs → AccountFields-QZspYAji.mjs} +10 -12
  5. package/dist/AccountListItem-DX5upmCS.mjs +90 -0
  6. package/dist/{AccountStore-HbVblv86.mjs → AccountStore-BcnDpyLL.mjs} +3 -3
  7. package/dist/{Accounts-CRUehOiy.mjs → Accounts-DXfZotRC.mjs} +1 -1
  8. package/dist/{BudgetUtil-Jv8h9H9l.mjs → BudgetUtil-Df2nII9u.mjs} +31 -31
  9. package/dist/{CashflowStore-CA190BPF.mjs → CashflowStore-D9Dpuz7X.mjs} +25 -18
  10. package/dist/{Category-Ccoew_sA.mjs → Category-CevNQ03n.mjs} +2 -2
  11. package/dist/{CategorySelectorDrawer-Dl006GKy.mjs → CategorySelectorDrawer-DqJK_rrL.mjs} +27 -27
  12. package/dist/{CategoryStore-MUwRWH9e.mjs → CategoryStore-DTgyAMM7.mjs} +2 -2
  13. package/dist/{CategoryUtil-DfVKKkRf.mjs → CategoryUtil-C5cR-nfQ.mjs} +4 -4
  14. package/dist/{ConnectDrawer-DVp54lUH.mjs → ConnectDrawer-BIbTqYOH.mjs} +47 -48
  15. package/dist/{ConnectionsDrawer-Dsc04-4Z.mjs → ConnectionsDrawer-BFfY3_zB.mjs} +2 -2
  16. package/dist/CurrencyInput-BFKcs-_K.mjs +85 -0
  17. package/dist/{DateUtil-CDPZw_-m.mjs → DateUtil-CBdcsyuk.mjs} +1 -1
  18. package/dist/{DebtsStore-pL63fmdT.mjs → DebtsStore-BbJB0nmu.mjs} +3 -3
  19. package/dist/{Dialog-CDV0kKxj.mjs → Dialog-BPTr3qHE.mjs} +24 -24
  20. package/dist/{Drawer-BF40nbsH.mjs → Drawer-BEtCk82g.mjs} +17 -17
  21. package/dist/{ExportCsvAction-QhQK4_FU.mjs → ExportCsvAction-DzTrtPzk.mjs} +3 -3
  22. package/dist/{FinstrongStore-BGf36b0z.mjs → FinstrongStore-BIrX0Xg2.mjs} +56 -56
  23. package/dist/{GoalStore-C1-w3Y1E.mjs → GoalStore-DpWY3gVb.mjs} +4 -4
  24. package/dist/HeaderCell-DjuifqHJ.mjs +6 -0
  25. package/dist/{Help-DBfsTkAi.mjs → Help-BnPXM_N2.mjs} +145 -124
  26. package/dist/{Help-c-zHlDbv.mjs → Help-DhcC-C05.mjs} +8 -8
  27. package/dist/{IconBacking-DgT8DCeh.mjs → IconBacking-B9oC6uL2.mjs} +11 -11
  28. package/dist/{LineChart-C1PxNf7P.mjs → LineChart-bc1D9xBE.mjs} +78 -78
  29. package/dist/{ListItemAction-BNCWQAN_.mjs → ListItemAction-uobBrm_a.mjs} +1 -1
  30. package/dist/Loader-DUaFpDGv.mjs +24 -0
  31. package/dist/{ManageIncome-8EsStyIQ.mjs → ManageIncome-NpXHhO1n.mjs} +46 -46
  32. package/dist/MicroWidgetContainer-DEiRnYVa.mjs +45 -0
  33. package/dist/MiniWidgetContainer-CmXpTylX.mjs +56 -0
  34. package/dist/{NetWorthStore-Bti6u-d9.mjs → NetWorthStore-lsuhEpn6.mjs} +4 -4
  35. package/dist/{NotificationSettings-B74rQVYC.mjs → NotificationSettings-CNmJWVeI.mjs} +77 -77
  36. package/dist/{OriginalBalanceAction-2Y_3U_mg.mjs → OriginalBalanceAction-DK8_LkPz.mjs} +8 -8
  37. package/dist/{RecurringSettings-DAncu--R.mjs → RecurringSettings-CqZh1SQa.mjs} +3 -3
  38. package/dist/{RecurringTransactions-CxcSL1dY.mjs → RecurringTransactions-BKcYmpv3.mjs} +77 -77
  39. package/dist/{RecurringTransactionsStore-CNFxyGB6.mjs → RecurringTransactionsStore-Ni5tSQIO.mjs} +1 -1
  40. package/dist/{ResponsiveButton-Cn6-R7ue.mjs → ResponsiveButton-DZFp78fJ.mjs} +10 -10
  41. package/dist/SearchBox-B2_zLv8-.mjs +42 -0
  42. package/dist/{SettingsStore-BASMQSIp.mjs → SettingsStore-krIRNwHK.mjs} +1 -1
  43. package/dist/{SingleSegmentDonut-7Uy6VEld.mjs → SingleSegmentDonut-BgbLgwHi.mjs} +6 -6
  44. package/dist/{SpendingData-DPQ96k3x.mjs → SpendingData-BuJ03S9d.mjs} +4 -4
  45. package/dist/{SpendingLegend-6FqtMcBV.mjs → SpendingLegend-CjX-hX2O.mjs} +12 -12
  46. package/dist/{StatusBar-CPfSXe80.mjs → StatusBar-BK_uYHAB.mjs} +6 -6
  47. package/dist/{TabContentContainer-CnMXkVqr.mjs → TabContentContainer-j01JYR_7.mjs} +8 -8
  48. package/dist/TransactionDetails-5M2vfr59.mjs +1379 -0
  49. package/dist/{TransactionStore-DbwAutwC.mjs → TransactionStore-D-Q3BU9Z.mjs} +58 -41
  50. package/dist/{TrendsStore-_mRaFUdf.mjs → TrendsStore-BW9FGQeE.mjs} +37 -37
  51. package/dist/{User-BklmOUSd.mjs → User-wXzDI4M8.mjs} +107 -107
  52. package/dist/{ViewMoreMicroCard-DAkyNRlD.mjs → ViewMoreMicroCard-C0832BMe.mjs} +233 -231
  53. package/dist/{WidgetContainer-CDh9fjpR.mjs → WidgetContainer-BhQ1Kx2z.mjs} +36 -36
  54. package/dist/accounts/index.es.js +94 -94
  55. package/dist/analytics/index.es.js +27 -27
  56. package/dist/budgets/index.es.js +251 -250
  57. package/dist/cashflow/index.es.js +158 -157
  58. package/dist/categories/index.es.js +2 -2
  59. package/dist/common/components/Loader.d.ts +2 -1
  60. package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +1 -1
  61. package/dist/common/components/barchart/Bar.d.ts +25 -0
  62. package/dist/common/components/barchart/BarChart.d.ts +34 -0
  63. package/dist/common/components/barchart/BarColumn.d.ts +37 -0
  64. package/dist/common/components/barchart/Legend.d.ts +8 -0
  65. package/dist/common/components/barchart/Util.d.ts +42 -0
  66. package/dist/common/components/barchart/index.d.ts +1 -0
  67. package/dist/common/components/charts/linechart/CustomMark.d.ts +1 -1
  68. package/dist/common/components/index.d.ts +1 -0
  69. package/dist/common/index.es.js +660 -395
  70. package/dist/common/utils/Theme.d.ts +3 -1
  71. package/dist/dashboard/index.es.js +21 -21
  72. package/dist/debts/components/DebtsChart.d.ts +2 -1
  73. package/dist/debts/index.es.js +440 -440
  74. package/dist/{exportTransactionsToCSV-BgV_wTLT.mjs → exportTransactionsToCSV-Cz2t0lmA.mjs} +3 -3
  75. package/dist/finstrong/index.es.js +118 -118
  76. package/dist/goals/index.es.js +380 -386
  77. package/dist/help/components/content/BottomImageContent.d.ts +1 -1
  78. package/dist/help/components/content/LeftImageContent.d.ts +1 -1
  79. package/dist/help/components/content/RightImageContent.d.ts +1 -1
  80. package/dist/help/components/content/TopImageContent.d.ts +1 -1
  81. package/dist/help/index.es.js +6 -6
  82. package/dist/investments/index.es.js +279 -278
  83. package/dist/merchants/index.es.js +7 -7
  84. package/dist/microinsights/index.es.js +1 -1
  85. package/dist/networth/components/NetWorthChange.d.ts +1 -3
  86. package/dist/networth/index.es.js +185 -191
  87. package/dist/notifications/index.es.js +30 -30
  88. package/dist/recurringtransactions/index.es.js +85 -85
  89. package/dist/settings/index.es.js +270 -270
  90. package/dist/spending/index.es.js +44 -44
  91. package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +7 -0
  92. package/dist/transactions/index.es.js +169 -168
  93. package/dist/trends/index.es.js +318 -317
  94. package/dist/{useAccountDisplayName-CcIp09Xc.mjs → useAccountDisplayName-CFNF8766.mjs} +1 -1
  95. package/dist/{useCombineEvents-kNzLTWCp.mjs → useCombineEvents-CRwX-qWE.mjs} +2 -2
  96. package/dist/{useScreenSize-B5afALev.mjs → useScreenSize-B6JyS_Lj.mjs} +1 -1
  97. package/package.json +50 -45
  98. package/dist/AccountDetailsContent-adZTkM52.mjs +0 -683
  99. package/dist/AccountListItem-wgmlex-_.mjs +0 -90
  100. package/dist/CurrencyInput-D1cjbdCI.mjs +0 -85
  101. package/dist/HeaderCell-P8w6CmfO.mjs +0 -6
  102. package/dist/Loader-Ckqi9Rx6.mjs +0 -21
  103. package/dist/MicroWidgetContainer-BGpNl5ZS.mjs +0 -45
  104. package/dist/MiniWidgetContainer-CKzf_Ira.mjs +0 -56
  105. package/dist/SearchBox-B7km148n.mjs +0 -39
  106. package/dist/TransactionDetails-Bn0qY5Hw.mjs +0 -1336
@@ -9,16 +9,16 @@ import h from "@mui/material/Box";
9
9
  import A from "@mui/material/Divider";
10
10
  import D from "@mui/material/List";
11
11
  import { Text as m, InstitutionLogo as B, CategoryIcon as T } from "@mxenabled/mxui";
12
- import { h as I } from "../DateUtil-CDPZw_-m.mjs";
12
+ import { h as I } from "../DateUtil-CBdcsyuk.mjs";
13
13
  import { useTheme as R, Card as O } from "@mui/material";
14
14
  import { d as G, i as E, u as _, o as x, b as N, a as j } from "../hooks-C41HAxM5.mjs";
15
15
  import { Icon as z, Settings as U } from "@mxenabled/mx-icons";
16
16
  import F from "@mui/material/Button";
17
17
  import P from "@mui/material/Stack";
18
- import { L as S } from "../Loader-Ckqi9Rx6.mjs";
18
+ import { L as S } from "../Loader-DUaFpDGv.mjs";
19
19
  import W from "@mui/material/IconButton";
20
- import { N as $ } from "../NotificationSettings-B74rQVYC.mjs";
21
- import { D as b } from "../Drawer-BF40nbsH.mjs";
20
+ import { N as $ } from "../NotificationSettings-CNmJWVeI.mjs";
21
+ import { D as b } from "../Drawer-BEtCk82g.mjs";
22
22
  const _t = (e) => {
23
23
  switch (e) {
24
24
  case y.BudgetExceeded:
@@ -35,8 +35,8 @@ const _t = (e) => {
35
35
  default:
36
36
  return null;
37
37
  }
38
- }, M = ({ date: e }) => /* @__PURE__ */ t(h, { sx: { display: "flex", justifyContent: "center", mt: 12, py: 8 }, children: /* @__PURE__ */ t(m, { bold: !0, variant: "body2", children: I(e) }) }), V = ({ notification: e }) => {
39
- const { accounts: n } = G(), { budgets: r } = E(), { accounts: s } = _(), o = n.find((i) => i.guid === e.entity_guid), a = r.find((i) => i.guid === e.entity_guid), d = e.entity_guid.includes("GOL"), u = {
38
+ }, H = ({ date: e }) => /* @__PURE__ */ t(h, { sx: { display: "flex", justifyContent: "center", mt: 12, py: 8 }, children: /* @__PURE__ */ t(m, { bold: !0, variant: "Small", children: I(e) }) }), M = ({ notification: e }) => {
39
+ const { accounts: n } = G(), { budgets: r } = E(), { accounts: a } = _(), o = n.find((i) => i.guid === e.entity_guid), s = r.find((i) => i.guid === e.entity_guid), d = e.entity_guid.includes("GOL"), u = {
40
40
  badge: {
41
41
  display: "flex",
42
42
  alignItems: "center",
@@ -48,13 +48,13 @@ const _t = (e) => {
48
48
  return o || d ? /* @__PURE__ */ t("div", { style: u.badge, children: /* @__PURE__ */ t(
49
49
  B,
50
50
  {
51
- alt: o?.institutionName || s.institution_logo_alt,
51
+ alt: o?.institutionName || a.institution_logo_alt,
52
52
  institutionGuid: o?.institution_guid ?? "",
53
53
  size: 33
54
54
  }
55
- ) }) : /* @__PURE__ */ t("div", { style: u.badge, children: /* @__PURE__ */ t(T, { categoryGuid: a?.category_guid, size: 36 }) });
56
- }, X = p(V), Y = ({ notification: e, onClick: n }) => {
57
- const { updateNotification: r } = x(), s = R(), o = {
55
+ ) }) : /* @__PURE__ */ t("div", { style: u.badge, children: /* @__PURE__ */ t(T, { categoryGuid: s?.category_guid, size: 36 }) });
56
+ }, V = p(M), X = ({ notification: e, onClick: n }) => {
57
+ const { updateNotification: r } = x(), a = R(), o = {
58
58
  card: {
59
59
  alignItems: "center",
60
60
  cursor: "pointer",
@@ -63,14 +63,14 @@ const _t = (e) => {
63
63
  paddingX: 24,
64
64
  paddingY: 12,
65
65
  "&:focus": {
66
- backgroundColor: s.palette.background.default
66
+ backgroundColor: a.palette.background.default
67
67
  },
68
68
  "&:hover": {
69
- backgroundColor: s.palette.background.default
69
+ backgroundColor: a.palette.background.default
70
70
  }
71
71
  },
72
72
  dot: {
73
- backgroundColor: s.palette.primary.main,
73
+ backgroundColor: a.palette.primary.main,
74
74
  borderRadius: "100%",
75
75
  flex: "0 0 auto",
76
76
  marginLeft: -8,
@@ -83,15 +83,15 @@ const _t = (e) => {
83
83
  n(e), r({ ...e, has_been_viewed: !0 }).finally();
84
84
  }, sx: o.card, children: [
85
85
  e.has_been_viewed ? null : /* @__PURE__ */ t("div", { "data-testid": "new-message-dot", style: o.dot }),
86
- /* @__PURE__ */ t(X, { notification: e }),
87
- /* @__PURE__ */ t(m, { bold: !e.has_been_viewed, truncate: !1, variant: "body2", children: e.content })
86
+ /* @__PURE__ */ t(V, { notification: e }),
87
+ /* @__PURE__ */ t(m, { bold: !e.has_been_viewed, truncate: !1, variant: "Small", children: e.content })
88
88
  ] });
89
- }, q = p(
89
+ }, Y = p(
90
90
  ({ onManageNotifications: e }) => {
91
91
  const { notifications: n } = _();
92
92
  return /* @__PURE__ */ l(P, { sx: { alignItems: "center", height: "95%", justifyContent: "center" }, children: [
93
93
  /* @__PURE__ */ t(z, { name: "notifications", size: 32 }),
94
- /* @__PURE__ */ t(m, { sx: { pt: 32 }, variant: "h3", children: n.notification_empty_state.no_new_notifications }),
94
+ /* @__PURE__ */ t(m, { sx: { pt: 32 }, variant: "H3", children: n.notification_empty_state.no_new_notifications }),
95
95
  /* @__PURE__ */ t(
96
96
  m,
97
97
  {
@@ -109,36 +109,36 @@ const _t = (e) => {
109
109
  /* @__PURE__ */ t(F, { onClick: e, sx: { p: "12px 16px" }, variant: "outlined", children: n.notification_empty_state.manage_notifications })
110
110
  ] });
111
111
  }
112
- ), H = ({ onClick: e, onManageNotifications: n }) => {
113
- const { isLoading: r, loadNotifications: s, newNotifications: o, markAllAsViewed: a } = x(), { isInitialized: d } = N(), u = (i) => {
112
+ ), q = ({ onClick: e, onManageNotifications: n }) => {
113
+ const { isLoading: r, loadNotifications: a, newNotifications: o, markAllAsViewed: s } = x(), { isInitialized: d } = N(), u = (i) => {
114
114
  e?.(i);
115
115
  };
116
116
  return L(() => {
117
- s().then(() => a()).finally();
117
+ a().then(() => s()).finally();
118
118
  }, []), !d || r ? /* @__PURE__ */ t(S, {}) : /* @__PURE__ */ l(C, { children: [
119
- o.length === 0 && /* @__PURE__ */ t(q, { onManageNotifications: n }),
119
+ o.length === 0 && /* @__PURE__ */ t(Y, { onManageNotifications: n }),
120
120
  /* @__PURE__ */ t(D, { sx: { p: 16 }, children: o.slice().sort((i, c) => c.delivered_at - i.delivered_at).map((i, c) => {
121
121
  const w = v(c, o);
122
122
  return /* @__PURE__ */ l(h, { sx: { mb: 12 }, children: [
123
123
  w && /* @__PURE__ */ l(h, { sx: { mb: 12 }, children: [
124
- /* @__PURE__ */ t(M, { date: i.delivered_at }),
124
+ /* @__PURE__ */ t(H, { date: i.delivered_at }),
125
125
  /* @__PURE__ */ t(A, {})
126
126
  ] }),
127
- /* @__PURE__ */ t(Y, { notification: i, onClick: u })
127
+ /* @__PURE__ */ t(X, { notification: i, onClick: u })
128
128
  ] }, i.guid);
129
129
  }) })
130
130
  ] });
131
- }, J = p(H), yt = p(
132
- ({ notificationTypes: e, isOpen: n, onClose: r, onNotificationClick: s }) => {
133
- const { config: o } = j(), { notifications: a, settings: d } = _(), { isCopyLoaded: u } = N(), [i, c] = k.useState(!1);
131
+ }, J = p(q), yt = p(
132
+ ({ notificationTypes: e, isOpen: n, onClose: r, onNotificationClick: a }) => {
133
+ const { config: o } = j(), { notifications: s, settings: d } = _(), { isCopyLoaded: u } = N(), [i, c] = k.useState(!1);
134
134
  return u ? /* @__PURE__ */ l(C, { children: [
135
135
  /* @__PURE__ */ l(
136
136
  b,
137
137
  {
138
- ariaLabelClose: a.close_notifications,
138
+ ariaLabelClose: s.close_notifications,
139
139
  isOpen: n,
140
140
  onClose: r,
141
- title: a.notifications_title,
141
+ title: s.notifications_title,
142
142
  children: [
143
143
  /* @__PURE__ */ t(
144
144
  W,
@@ -156,7 +156,7 @@ const _t = (e) => {
156
156
  /* @__PURE__ */ t(
157
157
  J,
158
158
  {
159
- onClick: s,
159
+ onClick: a,
160
160
  onManageNotifications: () => c(!0)
161
161
  }
162
162
  )
@@ -166,7 +166,7 @@ const _t = (e) => {
166
166
  /* @__PURE__ */ t(
167
167
  b,
168
168
  {
169
- ariaLabelClose: a.close_notification_settings,
169
+ ariaLabelClose: s.close_notification_settings,
170
170
  isOpen: i,
171
171
  onClose: () => c(!1),
172
172
  title: d.notification_settings_title,
@@ -1,76 +1,76 @@
1
- import { jsx as e, jsxs as a, Fragment as P } from "react/jsx-runtime";
1
+ import { jsx as e, jsxs as a, Fragment as B } from "react/jsx-runtime";
2
2
  import x from "react";
3
3
  import { observer as C } from "mobx-react-lite";
4
4
  import { endOfMonth as W } from "date-fns/endOfMonth";
5
- import { endOfToday as X } from "date-fns/endOfToday";
5
+ import { endOfToday as Z } from "date-fns/endOfToday";
6
6
  import { startOfMonth as N } from "date-fns/startOfMonth";
7
7
  import { startOfToday as J } from "date-fns/startOfToday";
8
8
  import { subDays as Q } from "date-fns/subDays";
9
- import { R as De } from "../RecurringSettings-DAncu--R.mjs";
10
- import { M as vn } from "../RecurringSettings-DAncu--R.mjs";
9
+ import { R as De } from "../RecurringSettings-CqZh1SQa.mjs";
10
+ import { M as vn } from "../RecurringSettings-CqZh1SQa.mjs";
11
11
  import { addMonths as We } from "date-fns/addMonths";
12
12
  import { subMonths as $e } from "date-fns/subMonths";
13
- import { isBefore as Pe } from "date-fns/isBefore";
14
- import q from "@mui/material/Grid";
13
+ import { isBefore as Be } from "date-fns/isBefore";
14
+ import q from "@mui/material/Unstable_Grid2";
15
15
  import ge from "@mui/material/IconButton";
16
16
  import d from "@mui/material/Stack";
17
17
  import he from "@mui/material/Tab";
18
- import ze from "@mui/material/Tabs";
19
- import { Cancel as Te, CheckCircle as we, Schedule as Be, MonetizationOn as Fe, ChevronLeft as He, ChevronRight as Ue, CurrencyExchange as je } from "@mxenabled/mx-icons";
18
+ import Pe from "@mui/material/Tabs";
19
+ import { Schedule as He, MonetizationOn as Fe, Cancel as Te, CheckCircle as Se, ChevronLeft as ze, ChevronRight as Ue, CurrencyExchange as je } from "@mxenabled/mx-icons";
20
20
  import { Text as f, MerchantLogo as ee, InstitutionLogo as Ke, H3 as Ye, P as V } from "@mxenabled/mxui";
21
21
  import { getWeeksInMonth as fe } from "date-fns/getWeeksInMonth";
22
- import { useTheme as te } from "@mui/material/styles";
22
+ import te from "@mui/material/styles/useTheme";
23
23
  import { AdapterDateFns as qe } from "@mui/x-date-pickers/AdapterDateFnsV3";
24
24
  import { DateCalendar as Ve } from "@mui/x-date-pickers/DateCalendar";
25
- import { LocalizationProvider as Ze } from "@mui/x-date-pickers/LocalizationProvider";
26
- import { isSameDay as Xe } from "date-fns/isSameDay";
25
+ import { LocalizationProvider as Xe } from "@mui/x-date-pickers/LocalizationProvider";
26
+ import { isSameDay as Ze } from "date-fns/isSameDay";
27
27
  import Je from "@mui/material/Badge";
28
28
  import { PickersDay as Qe } from "@mui/x-date-pickers/PickersDay";
29
- import { I as z } from "../IconBacking-DgT8DCeh.mjs";
30
- import { u as R, b as B, j as _, g as F, q as Se, d as ne, h as re, n as et } from "../hooks-C41HAxM5.mjs";
31
- import { d as M, c as T, g as xe, f as tt } from "../RecurringTransactions-CxcSL1dY.mjs";
32
- import { T as O } from "../RecurringTransactionsStore-CNFxyGB6.mjs";
33
- import { R as An } from "../RecurringTransactionsStore-CNFxyGB6.mjs";
34
- import { A as I, W as nt } from "../WidgetContainer-CDh9fjpR.mjs";
29
+ import { I as P } from "../IconBacking-B9oC6uL2.mjs";
30
+ import { u as R, b as H, j as _, g as F, q as we, d as ne, h as re, n as et } from "../hooks-C41HAxM5.mjs";
31
+ import { d as M, c as T, g as xe, f as tt } from "../RecurringTransactions-BKcYmpv3.mjs";
32
+ import { T as O } from "../RecurringTransactionsStore-Ni5tSQIO.mjs";
33
+ import { R as An } from "../RecurringTransactionsStore-Ni5tSQIO.mjs";
34
+ import { A as I, W as nt } from "../WidgetContainer-BhQ1Kx2z.mjs";
35
35
  import rt from "@mui/material/Button";
36
- import Z from "@mui/material/Divider";
36
+ import X from "@mui/material/Divider";
37
37
  import be from "@mui/material/List";
38
38
  import _e from "@mui/material/ListItem";
39
39
  import it from "@mui/material/ListSubheader";
40
40
  import ot from "@mui/material/ListItemAvatar";
41
41
  import at from "@mui/material/ListItemButton";
42
42
  import st from "@mui/material/ListItemText";
43
- import { b as ct } from "../ManageIncome-8EsStyIQ.mjs";
44
- import { c as Gn, M as Nn, S as On } from "../ManageIncome-8EsStyIQ.mjs";
45
- import { D as ie } from "../Drawer-BF40nbsH.mjs";
43
+ import { b as ct } from "../ManageIncome-NpXHhO1n.mjs";
44
+ import { c as Gn, M as Nn, S as On } from "../ManageIncome-NpXHhO1n.mjs";
46
45
  import { f as v } from "../NumberFormatting-DjTD0t3W.mjs";
46
+ import { D as ie } from "../Drawer-BEtCk82g.mjs";
47
47
  import { b as E } from "../Localization-2MODESHW.mjs";
48
- import { f as L, a as A } from "../Dialog-CDV0kKxj.mjs";
48
+ import { f as L, a as A } from "../Dialog-BPTr3qHE.mjs";
49
49
  import G from "@mui/material/Box";
50
- import { S as Ie } from "../StatusBar-CPfSXe80.mjs";
51
- import { u as oe } from "../useScreenSize-B5afALev.mjs";
50
+ import { S as Ie } from "../StatusBar-BK_uYHAB.mjs";
51
+ import { u as oe } from "../useScreenSize-B6JyS_Lj.mjs";
52
52
  import { S as Me } from "../SkeletonLoader-BaNboJjD.mjs";
53
- import { L as ae } from "../Loader-Ckqi9Rx6.mjs";
54
- import { M as lt } from "../MiniWidgetContainer-CKzf_Ira.mjs";
53
+ import { L as ae } from "../Loader-DUaFpDGv.mjs";
54
+ import { M as lt } from "../MiniWidgetContainer-CmXpTylX.mjs";
55
55
  import { u as dt } from "../useDimensions-27p2evRx.mjs";
56
- import { M as ut } from "../MicroWidgetContainer-BGpNl5ZS.mjs";
57
- const H = {
56
+ import { M as ut } from "../MicroWidgetContainer-DEiRnYVa.mjs";
57
+ const z = {
58
58
  gridRow: 1,
59
59
  gridColumn: 1,
60
60
  zIndex: 2
61
- }, U = (t) => t ? { margin: "0 0 -6px -4px" } : void 0, se = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(z, { size: n, sx: { ...U(t) }, children: /* @__PURE__ */ e(Be, { color: "primary", filled: !0, sx: { fontSize: n, ...H } }) }), ce = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(z, { size: n, sx: { ...U(t) }, children: /* @__PURE__ */ e(
61
+ }, U = (t) => t ? { margin: "0 0 -6px -4px" } : void 0, se = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(P, { size: n, sx: { ...U(t) }, children: /* @__PURE__ */ e(He, { color: "primary", filled: !0, sx: { fontSize: n, ...z } }) }), ce = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(P, { size: n, sx: { ...U(t) }, children: /* @__PURE__ */ e(
62
62
  Fe,
63
63
  {
64
64
  filled: !0,
65
- sx: { color: "categories.income", fontSize: n, ...H }
65
+ sx: { color: "categories.income", fontSize: n, ...z }
66
66
  }
67
- ) }), le = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(z, { size: n, sx: { ...U(t) }, children: /* @__PURE__ */ e(Te, { color: "error", filled: !0, sx: { fontSize: n, ...H } }) }), de = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(z, { size: n, sx: { ...U(t) }, children: /* @__PURE__ */ e(we, { color: "success", filled: !0, sx: { fontSize: n, ...H } }) }), mt = C(
67
+ ) }), le = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(P, { size: n, sx: { ...U(t) }, children: /* @__PURE__ */ e(Te, { color: "error", filled: !0, sx: { fontSize: n, ...z } }) }), de = ({ isOffset: t = !1, size: n = 16 }) => /* @__PURE__ */ e(P, { size: n, sx: { ...U(t) }, children: /* @__PURE__ */ e(Se, { color: "success", filled: !0, sx: { fontSize: n, ...z } }) }), mt = C(
68
68
  ({ day: t, outsideCurrentMonth: n, ...r }) => {
69
- const { recurring: i } = R(), { selectedAccountGuids: o } = B(), { recurrences: c, setSelectedDay: u } = _(), s = x.useMemo(
69
+ const { recurring: i } = R(), { selectedAccountGuids: o } = H(), { recurrences: c, setSelectedDay: u } = _(), s = x.useMemo(
70
70
  () => c.filter((g) => o.includes(g.accountGuid)),
71
71
  [o, c]
72
72
  ).filter(
73
- (g) => Xe(g.occurredOnDate || g.expectedDate, t)
73
+ (g) => Ze(g.occurredOnDate || g.expectedDate, t)
74
74
  ), l = s.some(
75
75
  (g) => g.type !== M.Income && g.status === T.Upcoming
76
76
  ), m = s.some(
@@ -81,7 +81,7 @@ const H = {
81
81
  return /* @__PURE__ */ e(
82
82
  Je,
83
83
  {
84
- badgeContent: s.length > 0 && /* @__PURE__ */ a(P, { children: [
84
+ badgeContent: s.length > 0 && /* @__PURE__ */ a(B, { children: [
85
85
  m && /* @__PURE__ */ e(le, { isOffset: !0 }),
86
86
  h && /* @__PURE__ */ e(de, { isOffset: !0 }),
87
87
  l && /* @__PURE__ */ e(se, { isOffset: !0 }),
@@ -121,7 +121,7 @@ const H = {
121
121
  }
122
122
  ), $ = ({ icon: t, label: n }) => /* @__PURE__ */ a(d, { alignItems: "center", flexDirection: "row", sx: { gap: 6 }, children: [
123
123
  /* @__PURE__ */ e(t, {}),
124
- /* @__PURE__ */ e(f, { variant: "caption", children: n })
124
+ /* @__PURE__ */ e(f, { variant: "XSmall", children: n })
125
125
  ] }), pt = C(() => {
126
126
  const { recurring: t } = R();
127
127
  return /* @__PURE__ */ a(
@@ -183,8 +183,8 @@ const H = {
183
183
  pr: 8
184
184
  },
185
185
  "& .MuiPickersCalendarHeader-label": {
186
- fontFamily: t.typography.body1.fontFamily,
187
- fontSize: t.typography.body1.fontSize,
186
+ fontFamily: t.typography.Body.fontFamily,
187
+ fontSize: t.typography.Body.fontSize,
188
188
  fontWeight: 600
189
189
  },
190
190
  "& .MuiDayCalendar-slideTransition": {
@@ -232,7 +232,7 @@ const H = {
232
232
  children: "Calendar filter for recurring transactions list. Filter by month or select specific date."
233
233
  }
234
234
  ),
235
- /* @__PURE__ */ a(Ze, { dateAdapter: qe, children: [
235
+ /* @__PURE__ */ a(Xe, { dateAdapter: qe, children: [
236
236
  r && s,
237
237
  !r && s,
238
238
  /* @__PURE__ */ e(pt, {})
@@ -310,7 +310,7 @@ const H = {
310
310
  /* @__PURE__ */ e(d, { alignItems: "center", direction: "row", gap: 6, children: n ? /* @__PURE__ */ a(d, { direction: "row", gap: 4, children: [
311
311
  gt(t),
312
312
  /* @__PURE__ */ e(f, { variant: "caption", children: ht(t, o) })
313
- ] }) : /* @__PURE__ */ a(P, { children: [
313
+ ] }) : /* @__PURE__ */ a(B, { children: [
314
314
  t.institutionGuid && /* @__PURE__ */ e(
315
315
  Ke,
316
316
  {
@@ -339,7 +339,7 @@ const H = {
339
339
  width: "100%"
340
340
  },
341
341
  children: [
342
- m && /* @__PURE__ */ e(we, { color: "success", filled: !0, size: 12 }),
342
+ m && /* @__PURE__ */ e(Se, { color: "success", filled: !0, size: 12 }),
343
343
  h && /* @__PURE__ */ e(Te, { color: "error", filled: !0, size: 12 }),
344
344
  /* @__PURE__ */ e(f, { bold: !0, color: "text.secondary", variant: "caption", children: y })
345
345
  ]
@@ -397,7 +397,7 @@ const H = {
397
397
  recurrence: s
398
398
  }
399
399
  ),
400
- /* @__PURE__ */ e(Z, { sx: { mx: 24 } })
400
+ /* @__PURE__ */ e(X, { sx: { mx: 24 } })
401
401
  ] }, `recurrence-${l}`)) : p.map((s, l) => /* @__PURE__ */ a(x.Fragment, { children: [
402
402
  /* @__PURE__ */ e(_e, { children: /* @__PURE__ */ e(
403
403
  be,
@@ -414,7 +414,7 @@ const H = {
414
414
  ) }, `day-recurrence-${h}`))
415
415
  }
416
416
  ) }, s.id),
417
- /* @__PURE__ */ e(Z, { sx: { mx: 24 } })
417
+ /* @__PURE__ */ e(X, { sx: { mx: 24 } })
418
418
  ] }, `recurrence-${l}`)) })
419
419
  ] });
420
420
  }
@@ -434,7 +434,7 @@ const H = {
434
434
  /* @__PURE__ */ e(G, { sx: { bgcolor: "success.main", height: 8, mr: 8, width: 8 } }),
435
435
  !s && /* @__PURE__ */ e(f, { bold: !0, variant: "body2", children: v(i, "0,0.00") }),
436
436
  /* @__PURE__ */ e(f, { variant: "caption", children: l.paid?.toLowerCase() }),
437
- r !== void 0 && /* @__PURE__ */ a(P, { children: [
437
+ r !== void 0 && /* @__PURE__ */ a(B, { children: [
438
438
  /* @__PURE__ */ e(G, { sx: { bgcolor: "error.main", height: 8, ml: 16, mr: 8, width: 8 } }),
439
439
  !s && /* @__PURE__ */ e(f, { bold: !0, variant: "body2", children: v(r, "0,0.00") }),
440
440
  /* @__PURE__ */ e(f, { variant: "caption", children: l.missed?.toLowerCase() })
@@ -446,7 +446,7 @@ const H = {
446
446
  ] });
447
447
  }
448
448
  ), ft = C(() => {
449
- const { recurring: t } = R(), { availableWidth: n } = Se(), { isDesktop: r, isSmallMobile: i, isMobile: o } = oe(n), { onEvent: c } = F(), {
449
+ const { recurring: t } = R(), { availableWidth: n } = we(), { isDesktop: r, isSmallMobile: i, isMobile: o } = oe(n), { onEvent: c } = F(), {
450
450
  currentMonthExpenses: u,
451
451
  currentMonthIncome: p,
452
452
  dateRange: s,
@@ -458,31 +458,31 @@ const H = {
458
458
  paidIncomeTotal: g,
459
459
  selectedDay: D,
460
460
  selectedDayRecurrences: j,
461
- setDateRange: S,
461
+ setDateRange: w,
462
462
  upcomingExpenseTotal: K,
463
463
  upcomingIncomeTotal: Le,
464
464
  upcomingRecurrences: ue
465
- } = _(), [Y, Ae] = x.useState(0), Ee = Pe(s.start, /* @__PURE__ */ new Date()), Ge = (w, ke) => {
465
+ } = _(), [Y, Ae] = x.useState(0), Ee = Be(s.start, /* @__PURE__ */ new Date()), Ge = (S, ke) => {
466
466
  Ae(ke);
467
- }, me = (w) => {
467
+ }, me = (S) => {
468
468
  c(I.RECURRING_TRANSACTIONS_CLICK_UPCOMING, {
469
- transaction_guid: w.transaction?.guid
469
+ transaction_guid: S.transaction?.guid
470
470
  });
471
- }, pe = (w) => {
471
+ }, pe = (S) => {
472
472
  c(I.RECURRING_TRANSACTIONS_CLICK_PAID, {
473
- transaction_guid: w.transaction?.guid
473
+ transaction_guid: S.transaction?.guid
474
474
  });
475
475
  }, Ne = () => {
476
- const w = We(s.start, 1);
477
- S({
478
- start: N(w),
479
- end: W(w)
476
+ const S = We(s.start, 1);
477
+ w({
478
+ start: N(S),
479
+ end: W(S)
480
480
  });
481
481
  }, Oe = () => {
482
- const w = $e(s.start, 1);
483
- S({
484
- start: N(w),
485
- end: W(w)
482
+ const S = $e(s.start, 1);
483
+ w({
484
+ start: N(S),
485
+ end: W(S)
486
486
  });
487
487
  };
488
488
  return /* @__PURE__ */ a(
@@ -493,7 +493,7 @@ const H = {
493
493
  pt: 16
494
494
  },
495
495
  children: [
496
- /* @__PURE__ */ a(q, { size: { md: "grow", sm: 12 }, width: "100%", children: [
496
+ /* @__PURE__ */ a(q, { md: !0, sm: 12, width: "100%", children: [
497
497
  /* @__PURE__ */ a(d, { sx: { gap: 16, px: r ? 48 : 24 }, children: [
498
498
  /* @__PURE__ */ a(d, { alignItems: "center", direction: "row", justifyContent: "space-between", children: [
499
499
  /* @__PURE__ */ e(Ye, { children: E(
@@ -507,7 +507,7 @@ const H = {
507
507
  color: "primary",
508
508
  disabled: Ee,
509
509
  onClick: Oe,
510
- children: /* @__PURE__ */ e(He, {})
510
+ children: /* @__PURE__ */ e(ze, {})
511
511
  }
512
512
  ),
513
513
  /* @__PURE__ */ e(ge, { color: "primary", onClick: Ne, children: /* @__PURE__ */ e(Ue, {}) })
@@ -545,7 +545,7 @@ const H = {
545
545
  )
546
546
  ] }),
547
547
  !r && /* @__PURE__ */ a(d, { sx: { px: o ? 0 : 24 }, children: [
548
- /* @__PURE__ */ a(ze, { onChange: Ge, value: Y, variant: "fullWidth", children: [
548
+ /* @__PURE__ */ a(Pe, { onChange: Ge, value: Y, variant: "fullWidth", children: [
549
549
  /* @__PURE__ */ e(
550
550
  he,
551
551
  {
@@ -575,7 +575,7 @@ const H = {
575
575
  )
576
576
  ] })
577
577
  ] }),
578
- r && /* @__PURE__ */ e(q, { size: { xs: "auto" }, sx: { minWidth: 450 }, children: /* @__PURE__ */ a(d, { gap: 24, children: [
578
+ r && /* @__PURE__ */ e(q, { sx: { minWidth: 450 }, xs: "auto", children: /* @__PURE__ */ a(d, { gap: 24, children: [
579
579
  /* @__PURE__ */ e(ve, {}),
580
580
  /* @__PURE__ */ e(
581
581
  k,
@@ -593,7 +593,7 @@ const H = {
593
593
  }
594
594
  );
595
595
  }), Tn = C(({ onBackClick: t, sx: n = {} }) => {
596
- const { accounts: r } = ne(), { recurring: i } = R(), { isInitialized: o, selectedAccountGuids: c, setSelectedAccounts: u } = B(), { isDataLoaded: p, loadRepeatingTransactionData: s, setDateRange: l } = _(), { setFilter: m } = re(), { onEvent: h } = F(), { onLoad: b } = et(), { isMobile: y } = oe(), [g, D] = x.useState(!1);
596
+ const { accounts: r } = ne(), { recurring: i } = R(), { isInitialized: o, selectedAccountGuids: c, setSelectedAccounts: u } = H(), { isDataLoaded: p, loadRepeatingTransactionData: s, setDateRange: l } = _(), { setFilter: m } = re(), { onEvent: h } = F(), { onLoad: b } = et(), { isMobile: y } = oe(), [g, D] = x.useState(!1);
597
597
  return x.useEffect(() => {
598
598
  p || s().finally(() => {
599
599
  b?.("RecurringTransactionsWidget");
@@ -602,7 +602,7 @@ const H = {
602
602
  u(r);
603
603
  }, [r]), x.useEffect(() => {
604
604
  m({
605
- dateRange: { start: Q(J(), 90), end: X() },
605
+ dateRange: { start: Q(J(), 90), end: Z() },
606
606
  accounts: c
607
607
  }), l({ start: N(/* @__PURE__ */ new Date()), end: W(/* @__PURE__ */ new Date()) });
608
608
  }, [c]), o ? /* @__PURE__ */ a(
@@ -640,10 +640,10 @@ const H = {
640
640
  }
641
641
  ) : /* @__PURE__ */ e(ae, {});
642
642
  }), xt = C(() => {
643
- const { recurring: t } = R(), { availableWidth: n } = Se(), { selectedDay: r, selectedDayRecurrences: i, setSelectedDay: o, upcomingRecurrences: c } = _(), u = n < 750;
643
+ const { recurring: t } = R(), { availableWidth: n } = we(), { selectedDay: r, selectedDayRecurrences: i, setSelectedDay: o, upcomingRecurrences: c } = _(), u = n < 750;
644
644
  return /* @__PURE__ */ a(d, { flexDirection: u ? "column" : "row", width: "100%", children: [
645
645
  /* @__PURE__ */ e(ve, {}),
646
- !u && /* @__PURE__ */ e(Z, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
646
+ !u && /* @__PURE__ */ e(X, { flexItem: !0, orientation: "vertical", sx: { my: 16, ml: 16 } }),
647
647
  /* @__PURE__ */ e(
648
648
  k,
649
649
  {
@@ -658,16 +658,16 @@ const H = {
658
658
  }
659
659
  )
660
660
  ] });
661
- }), wn = C(
661
+ }), Sn = C(
662
662
  ({ onPrimaryCtaClick: t, sx: n }) => {
663
- const { accounts: r } = ne(), { recurring: i } = R(), { setFilter: o } = re(), { isDataLoaded: c, loadRepeatingTransactionData: u } = _(), { isInitialized: p, setSelectedAccounts: s, selectedAccountGuids: l } = B();
663
+ const { accounts: r } = ne(), { recurring: i } = R(), { setFilter: o } = re(), { isDataLoaded: c, loadRepeatingTransactionData: u } = _(), { isInitialized: p, setSelectedAccounts: s, selectedAccountGuids: l } = H();
664
664
  return x.useEffect(() => {
665
665
  c || u().finally();
666
666
  }, []), x.useEffect(() => {
667
667
  s(r);
668
668
  }, [r]), x.useEffect(() => {
669
669
  l.length > 0 && o({
670
- dateRange: { start: Q(J(), 90), end: X() },
670
+ dateRange: { start: Q(J(), 90), end: Z() },
671
671
  accounts: l
672
672
  });
673
673
  }, [l]), p ? /* @__PURE__ */ e(
@@ -769,13 +769,13 @@ const H = {
769
769
  paidExpenseTotal: u,
770
770
  upcomingExpenseTotal: p
771
771
  } = _(), { recurring: s } = R(), l = r <= 288, m = r >= 450, h = 32, b = i.length > 0, y = x.useMemo(() => v(o, o === 0 ? "0,0" : "0,0.00"), [o]), g = x.useMemo(() => {
772
- const S = [
772
+ const w = [
773
773
  { color: t.palette.success.main, percentage: `${u / o}` }
774
774
  ];
775
- return c && S.push({
775
+ return c && w.push({
776
776
  color: t.palette.error.main,
777
777
  percentage: `${c / o}`
778
- }), S;
778
+ }), w;
779
779
  }, [
780
780
  u,
781
781
  o,
@@ -802,11 +802,11 @@ const H = {
802
802
  },
803
803
  {
804
804
  amount: p,
805
- bgColor: "neutral.light",
805
+ bgColor: "border.light",
806
806
  label: s.upcoming
807
807
  }
808
808
  ];
809
- return /* @__PURE__ */ a(P, { children: [
809
+ return /* @__PURE__ */ a(B, { children: [
810
810
  /* @__PURE__ */ a(d, { ref: n, sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
811
811
  /* @__PURE__ */ a(
812
812
  d,
@@ -825,11 +825,11 @@ const H = {
825
825
  f,
826
826
  {
827
827
  sx: { width: "100%" },
828
- variant: y.length >= 10 && l ? "h3" : "h2",
828
+ variant: y.length >= 10 && l ? "H3" : "H2",
829
829
  children: y
830
830
  }
831
831
  ),
832
- /* @__PURE__ */ e(V, { sx: { pr: 12 }, variant: "caption", children: s.expected })
832
+ /* @__PURE__ */ e(V, { sx: { pr: 12 }, variant: "XSmall", children: s.expected })
833
833
  ]
834
834
  }
835
835
  ),
@@ -846,14 +846,14 @@ const H = {
846
846
  gap: 16,
847
847
  mt: 4
848
848
  },
849
- children: j.map((S, K) => /* @__PURE__ */ e(
849
+ children: j.map((w, K) => /* @__PURE__ */ e(
850
850
  yt,
851
851
  {
852
- amount: S.amount,
853
- bgcolor: S.bgColor,
852
+ amount: w.amount,
853
+ bgcolor: w.bgColor,
854
854
  isLargeScreen: m,
855
855
  isSmallScreen: l,
856
- label: S.label
856
+ label: w.label
857
857
  },
858
858
  `recurrence-legend-${K}`
859
859
  ))
@@ -861,9 +861,9 @@ const H = {
861
861
  )
862
862
  ] })
863
863
  ] });
864
- }), Sn = C(
864
+ }), wn = C(
865
865
  ({ onCTAClick: t }) => {
866
- const { onEvent: n } = F(), { accounts: r } = ne(), { isInitialized: i, selectedAccountGuids: o, setSelectedAccounts: c } = B(), {
866
+ const { onEvent: n } = F(), { accounts: r } = ne(), { isInitialized: i, selectedAccountGuids: o, setSelectedAccounts: c } = H(), {
867
867
  loadRepeatingTransactionData: u,
868
868
  upcomingRecurrences: p,
869
869
  repeatingTransactions: s,
@@ -880,7 +880,7 @@ const H = {
880
880
  i && c(r);
881
881
  }, [i, r]), x.useEffect(() => {
882
882
  i && (h({
883
- dateRange: { start: Q(J(), 90), end: X() },
883
+ dateRange: { start: Q(J(), 90), end: Z() },
884
884
  accounts: o
885
885
  }), l({ start: N(/* @__PURE__ */ new Date()), end: W(/* @__PURE__ */ new Date()) }));
886
886
  }, [i, o]);
@@ -923,8 +923,8 @@ export {
923
923
  Nn as ManageIncome,
924
924
  De as RecurringSettings,
925
925
  _n as RecurringSettingsDrawer,
926
- Sn as RecurringTransactionsMicroWidget,
927
- wn as RecurringTransactionsMiniWidget,
926
+ wn as RecurringTransactionsMicroWidget,
927
+ Sn as RecurringTransactionsMiniWidget,
928
928
  An as RecurringTransactionsStore,
929
929
  Tn as RecurringTransactionsWidget,
930
930
  On as SelectTransaction