@mx-cartographer/experiences 8.0.0-alpha.bb4 → 8.0.0-alpha.sms2

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 (90) hide show
  1. package/dist/{Account-B4CDD-zq.mjs → Account-Cp30A3ad.mjs} +1 -1
  2. package/dist/AccountDetailsContent-C1HumFnW.mjs +683 -0
  3. package/dist/{AccountDetailsHeader-DRjFuyJT.mjs → AccountDetailsHeader-NMx79DGs.mjs} +17 -17
  4. package/dist/{AccountFields-Cl4KHoSj.mjs → AccountFields-CW6cIthP.mjs} +8 -8
  5. package/dist/AccountListItem-DxmAs98Z.mjs +90 -0
  6. package/dist/{AccountStore-HbVblv86.mjs → AccountStore-hIs-yA6W.mjs} +3 -3
  7. package/dist/{Accounts-CRUehOiy.mjs → Accounts-DUHkUyK4.mjs} +1 -1
  8. package/dist/{BudgetUtil-Jv8h9H9l.mjs → BudgetUtil-CIDAPPPT.mjs} +30 -30
  9. package/dist/{CashflowStore-CA190BPF.mjs → CashflowStore-naOtJcwo.mjs} +22 -15
  10. package/dist/{CategorySelectorDrawer-Dl006GKy.mjs → CategorySelectorDrawer-DqDAA_5I.mjs} +26 -26
  11. package/dist/{ConnectDrawer-DVp54lUH.mjs → ConnectDrawer-Dn1MlqLz.mjs} +60 -61
  12. package/dist/{ConnectionsDrawer-Dsc04-4Z.mjs → ConnectionsDrawer-CSo6AFkG.mjs} +2 -2
  13. package/dist/CurrencyInput-BrGvhgVK.mjs +85 -0
  14. package/dist/{DebtsStore-pL63fmdT.mjs → DebtsStore-hi1cqrRk.mjs} +3 -3
  15. package/dist/{Drawer-BF40nbsH.mjs → Drawer-Dqe5EqvA.mjs} +6 -6
  16. package/dist/{ExportCsvAction-QhQK4_FU.mjs → ExportCsvAction-CQ1grpwo.mjs} +3 -3
  17. package/dist/{FinstrongStore-BGf36b0z.mjs → FinstrongStore-dKZOZ2hM.mjs} +3 -3
  18. package/dist/{GoalStore-C1-w3Y1E.mjs → GoalStore-CFeAJloA.mjs} +3 -3
  19. package/dist/HeaderCell-DjuifqHJ.mjs +6 -0
  20. package/dist/{Help-DBfsTkAi.mjs → Help-i4OasOO-.mjs} +176 -158
  21. package/dist/{LineChart-C1PxNf7P.mjs → LineChart-bc1D9xBE.mjs} +78 -78
  22. package/dist/Loader-BSWSYqvn.mjs +24 -0
  23. package/dist/{ManageIncome-8EsStyIQ.mjs → ManageIncome-D_qVX5dN.mjs} +44 -44
  24. package/dist/{MiniWidgetContainer-CKzf_Ira.mjs → MiniWidgetContainer-D7MkHG15.mjs} +12 -12
  25. package/dist/{NetWorthStore-Bti6u-d9.mjs → NetWorthStore-8FFC1Bs0.mjs} +2 -2
  26. package/dist/{NotificationSettings-B74rQVYC.mjs → NotificationSettings-BsWiYD94.mjs} +67 -67
  27. package/dist/{OriginalBalanceAction-2Y_3U_mg.mjs → OriginalBalanceAction-62e0mU_3.mjs} +7 -7
  28. package/dist/{RecurringSettings-DAncu--R.mjs → RecurringSettings-RfZ8Wuhh.mjs} +3 -3
  29. package/dist/{RecurringTransactions-CxcSL1dY.mjs → RecurringTransactions-Bhx56aA3.mjs} +76 -76
  30. package/dist/{RecurringTransactionsStore-CNFxyGB6.mjs → RecurringTransactionsStore-D3EOKZ2B.mjs} +1 -1
  31. package/dist/{ResponsiveButton-Cn6-R7ue.mjs → ResponsiveButton-C6KH8JH4.mjs} +1 -1
  32. package/dist/SearchBox-B2_zLv8-.mjs +42 -0
  33. package/dist/{SingleSegmentDonut-7Uy6VEld.mjs → SingleSegmentDonut-PsRQPkmV.mjs} +1 -1
  34. package/dist/{SpendingLegend-6FqtMcBV.mjs → SpendingLegend-CZzDb-7d.mjs} +10 -10
  35. package/dist/TransactionDetails-Duv1X9ec.mjs +1379 -0
  36. package/dist/{TransactionStore-DbwAutwC.mjs → TransactionStore-DgLrYW4C.mjs} +3 -3
  37. package/dist/{User-BklmOUSd.mjs → User-DqNX2GAK.mjs} +107 -107
  38. package/dist/{ViewMoreMicroCard-DAkyNRlD.mjs → ViewMoreMicroCard-CH9E-jOx.mjs} +178 -177
  39. package/dist/{WidgetContainer-CDh9fjpR.mjs → WidgetContainer-B1Jzb4XA.mjs} +6 -6
  40. package/dist/accounts/index.es.js +45 -45
  41. package/dist/analytics/index.es.js +22 -22
  42. package/dist/budgets/index.es.js +266 -265
  43. package/dist/cashflow/index.es.js +155 -154
  44. package/dist/categories/index.es.js +1 -1
  45. package/dist/common/components/Loader.d.ts +2 -1
  46. package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +1 -1
  47. package/dist/common/components/barchart/Bar.d.ts +25 -0
  48. package/dist/common/components/barchart/BarChart.d.ts +34 -0
  49. package/dist/common/components/barchart/BarColumn.d.ts +37 -0
  50. package/dist/common/components/barchart/Legend.d.ts +8 -0
  51. package/dist/common/components/barchart/Util.d.ts +42 -0
  52. package/dist/common/components/barchart/index.d.ts +1 -0
  53. package/dist/common/components/charts/linechart/CustomMark.d.ts +1 -1
  54. package/dist/common/components/index.d.ts +1 -0
  55. package/dist/common/index.es.js +659 -394
  56. package/dist/common/utils/Theme.d.ts +3 -1
  57. package/dist/dashboard/index.es.js +21 -21
  58. package/dist/debts/components/DebtsChart.d.ts +2 -1
  59. package/dist/debts/index.es.js +438 -438
  60. package/dist/{exportTransactionsToCSV-BgV_wTLT.mjs → exportTransactionsToCSV-BFpuIAXW.mjs} +1 -1
  61. package/dist/finstrong/index.es.js +113 -113
  62. package/dist/goals/index.es.js +379 -385
  63. package/dist/help/components/content/BottomImageContent.d.ts +1 -1
  64. package/dist/help/components/content/LeftImageContent.d.ts +1 -1
  65. package/dist/help/components/content/RightImageContent.d.ts +1 -1
  66. package/dist/help/components/content/TopImageContent.d.ts +1 -1
  67. package/dist/help/index.es.js +3 -3
  68. package/dist/investments/index.es.js +279 -278
  69. package/dist/merchants/index.es.js +16 -16
  70. package/dist/microinsights/index.es.js +1 -1
  71. package/dist/networth/components/NetWorthChange.d.ts +1 -3
  72. package/dist/networth/index.es.js +185 -191
  73. package/dist/notifications/index.es.js +29 -29
  74. package/dist/recurringtransactions/index.es.js +82 -82
  75. package/dist/settings/index.es.js +254 -254
  76. package/dist/spending/index.es.js +43 -43
  77. package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +7 -0
  78. package/dist/transactions/index.es.js +150 -149
  79. package/dist/trends/index.es.js +297 -296
  80. package/dist/{useAccountDisplayName-CcIp09Xc.mjs → useAccountDisplayName-usSZCQ7I.mjs} +1 -1
  81. package/dist/{useCombineEvents-kNzLTWCp.mjs → useCombineEvents-CRwX-qWE.mjs} +2 -2
  82. package/dist/{useScreenSize-B5afALev.mjs → useScreenSize-B6JyS_Lj.mjs} +1 -1
  83. package/package.json +30 -30
  84. package/dist/AccountDetailsContent-adZTkM52.mjs +0 -683
  85. package/dist/AccountListItem-wgmlex-_.mjs +0 -90
  86. package/dist/CurrencyInput-D1cjbdCI.mjs +0 -85
  87. package/dist/HeaderCell-P8w6CmfO.mjs +0 -6
  88. package/dist/Loader-Ckqi9Rx6.mjs +0 -21
  89. package/dist/SearchBox-B7km148n.mjs +0 -39
  90. package/dist/TransactionDetails-Bn0qY5Hw.mjs +0 -1336
@@ -1,62 +1,62 @@
1
- import { jsx as d, jsxs as M, Fragment as B } from "react/jsx-runtime";
1
+ import { jsxs as M, Fragment as B, jsx as d } from "react/jsx-runtime";
2
2
  import P from "@mui/material/Avatar";
3
3
  import w from "@mui/material/ListItem";
4
4
  import L from "@mui/material/ListItemAvatar";
5
5
  import U from "@mui/material/ListItemButton";
6
6
  import G from "@mui/material/ListItemText";
7
- import { Icon as I } from "@mxenabled/mxui";
8
- import S from "@mui/material/ListItemIcon";
9
- import C from "@mui/material/MenuItem";
10
- import $ from "@mui/material/TextField";
11
- import { ExpandMore as j } from "@mxenabled/mx-icons";
7
+ import { Icon as I, IconWeight as S } from "@mxenabled/mxui";
8
+ import C from "@mui/material/ListItemIcon";
9
+ import $ from "@mui/material/MenuItem";
10
+ import j from "@mui/material/TextField";
11
+ import { ExpandMore as z } from "@mxenabled/mx-icons";
12
12
  import { addDays as Q } from "date-fns/addDays";
13
13
  import { addMonths as f } from "date-fns/addMonths";
14
14
  import { addQuarters as A } from "date-fns/addQuarters";
15
- import { addYears as z } from "date-fns/addYears";
16
- import { formatISO as K } from "date-fns/formatISO";
17
- import { fromUnixTime as H } from "date-fns/fromUnixTime";
15
+ import { addYears as K } from "date-fns/addYears";
16
+ import { formatISO as H } from "date-fns/formatISO";
17
+ import { fromUnixTime as V } from "date-fns/fromUnixTime";
18
18
  import { getUnixTime as y } from "date-fns/getUnixTime";
19
19
  import { isAfter as h } from "date-fns/isAfter";
20
20
  import { isBefore as u } from "date-fns/isBefore";
21
- import { isSameDay as V } from "date-fns/isSameDay";
21
+ import { isSameDay as X } from "date-fns/isSameDay";
22
22
  import { nextDay as E } from "date-fns/nextDay";
23
23
  import { parseISO as J } from "date-fns/parseISO";
24
24
  import { setDate as g } from "date-fns/setDate";
25
25
  import { startOfToday as b } from "date-fns/startOfToday";
26
- import { subDays as _ } from "date-fns/subDays";
27
- import { subMonths as X } from "date-fns/subMonths";
26
+ import { subDays as D } from "date-fns/subDays";
27
+ import { subMonths as Z } from "date-fns/subMonths";
28
28
  import { subQuarters as N } from "date-fns/subQuarters";
29
- import { subYears as Z } from "date-fns/subYears";
30
- import { lastDayOfMonth as T } from "date-fns/lastDayOfMonth";
31
- import { setDayOfYear as q } from "date-fns/setDayOfYear";
32
- import { g as F, a as R, b as ee, c as te, d as re, e as oe, f as ae } from "./DateUtil-CDPZw_-m.mjs";
29
+ import { subYears as T } from "date-fns/subYears";
30
+ import { lastDayOfMonth as q } from "date-fns/lastDayOfMonth";
31
+ import { setDayOfYear as F } from "date-fns/setDayOfYear";
32
+ import { g as R, a as ee, b as te, c as re, d as oe, e as ae, f as ne } from "./DateUtil-CDPZw_-m.mjs";
33
33
  import { b as W } from "./NumberFormatting-DjTD0t3W.mjs";
34
34
  import { f as v, a as k } from "./Dialog-CDV0kKxj.mjs";
35
35
  import { b as l } from "./Localization-2MODESHW.mjs";
36
36
  var s = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.EveryWeek = 1] = "EveryWeek", e[e.EveryOtherWeek = 2] = "EveryOtherWeek", e[e.EveryMonth = 3] = "EveryMonth", e[e.EveryOtherMonth = 4] = "EveryOtherMonth", e[e.EveryQuarter = 5] = "EveryQuarter", e[e.EveryOtherQuarter = 6] = "EveryOtherQuarter", e[e.EveryYear = 7] = "EveryYear", e[e.TwiceAMonth = 8] = "TwiceAMonth", e))(s || {}), p = /* @__PURE__ */ ((e) => (e[e.Paid = 0] = "Paid", e[e.Missed = 1] = "Missed", e[e.Upcoming = 2] = "Upcoming", e))(p || {}), O = /* @__PURE__ */ ((e) => (e[e.Expense = 0] = "Expense", e[e.Income = 1] = "Income", e))(O || {}), Y = /* @__PURE__ */ ((e) => (e[e.Unknown = 0] = "Unknown", e[e.Subscription = 1] = "Subscription", e[e.Bill = 2] = "Bill", e[e.Income = 3] = "Income", e[e.Transfer = 4] = "Transfer", e))(Y || {});
37
- const Te = ({ iconName: e, label: a, onClick: t, value: n }) => {
37
+ const qe = ({ iconName: e, label: a, onClick: t, value: n }) => {
38
38
  const o = /* @__PURE__ */ M(B, { children: [
39
- /* @__PURE__ */ d(L, { children: /* @__PURE__ */ d(P, { sx: { bgcolor: "neutral.light" }, variant: "rounded", children: /* @__PURE__ */ d(I, { name: e, sx: { color: "text.primary" } }) }) }),
39
+ /* @__PURE__ */ d(L, { children: /* @__PURE__ */ d(P, { sx: { bgcolor: "border.light" }, variant: "rounded", children: /* @__PURE__ */ d(I, { name: e, sx: { color: "text.primary" }, weight: S.Dark }) }) }),
40
40
  /* @__PURE__ */ d(
41
41
  G,
42
42
  {
43
43
  primary: a,
44
- primaryTypographyProps: { variant: "caption" },
44
+ primaryTypographyProps: { variant: "XSmall" },
45
45
  secondary: n,
46
- secondaryTypographyProps: { color: "text.default", variant: "body1", fontWeight: 600 }
46
+ secondaryTypographyProps: { color: "text.default", variant: "Body", fontWeight: 600 }
47
47
  }
48
48
  )
49
49
  ] });
50
50
  return t ? /* @__PURE__ */ d(w, { disableGutters: !0, disablePadding: !0, children: /* @__PURE__ */ M(U, { onClick: t, children: [
51
51
  o,
52
- /* @__PURE__ */ d(S, { children: /* @__PURE__ */ d(I, { name: "chevron_right", size: 24 }) })
52
+ /* @__PURE__ */ d(C, { children: /* @__PURE__ */ d(I, { name: "chevron_right", size: 24 }) })
53
53
  ] }) }) : /* @__PURE__ */ d(w, { disableGutters: !1, disablePadding: !1, children: o });
54
- }, qe = ({ label: e, onChange: a, options: t, value: n, ...o }) => /* @__PURE__ */ d(
55
- $,
54
+ }, Fe = ({ label: e, onChange: a, options: t, value: n, ...o }) => /* @__PURE__ */ d(
55
+ j,
56
56
  {
57
57
  InputLabelProps: { shrink: !0 },
58
58
  SelectProps: {
59
- IconComponent: (c) => /* @__PURE__ */ d(j, { size: 20, sx: { mr: 4 }, ...c })
59
+ IconComponent: (c) => /* @__PURE__ */ d(z, { size: 20, sx: { mr: 4 }, ...c })
60
60
  },
61
61
  defaultValue: 0,
62
62
  label: e,
@@ -67,13 +67,13 @@ const Te = ({ iconName: e, label: a, onClick: t, value: n }) => {
67
67
  value: n,
68
68
  variant: "outlined",
69
69
  ...o,
70
- children: t.map((c) => /* @__PURE__ */ d(C, { value: c.id, children: c.label }, c.id))
70
+ children: t.map((c) => /* @__PURE__ */ d($, { value: c.id, children: c.label }, c.id))
71
71
  }
72
- ), ne = (e) => {
72
+ ), se = (e) => {
73
73
  if (!e) return "";
74
74
  let a = e.user_name || e.feed_name || "";
75
75
  return e.account_number && (a = `${a} *${e.account_number}`), a;
76
- }, se = (e, a) => {
76
+ }, ce = (e, a) => {
77
77
  const t = [], n = e.transactions.find(
78
78
  (m) => m.repeating_transaction_guid === e.guid
79
79
  );
@@ -85,7 +85,7 @@ const Te = ({ iconName: e, label: a, onClick: t, value: n }) => {
85
85
  expectedDate: o,
86
86
  frequency: e.recurrence_type,
87
87
  institutionGuid: e.account?.institution_guid || "",
88
- institutionName: ne(e.account),
88
+ institutionName: se(e.account),
89
89
  merchantGuid: e.merchant_guid,
90
90
  name: e.description,
91
91
  recurrenceDay: e.recurrence_day,
@@ -97,102 +97,102 @@ const Te = ({ iconName: e, label: a, onClick: t, value: n }) => {
97
97
  }, c = a.start, i = a.end;
98
98
  switch (e.recurrence_type) {
99
99
  case s.EveryWeek:
100
- t.push(...ce(r, c, i));
100
+ t.push(...ie(r, c, i));
101
101
  break;
102
102
  case s.EveryOtherWeek:
103
- t.push(...ie(r, c, i));
103
+ t.push(...ue(r, c, i));
104
104
  break;
105
105
  case s.TwiceAMonth:
106
- t.push(...ue(r, c, i));
106
+ t.push(...de(r, c, i));
107
107
  break;
108
108
  case s.EveryMonth:
109
- t.push(...de(r, c, i));
109
+ t.push(...me(r, c, i));
110
110
  break;
111
111
  case s.EveryOtherMonth:
112
- t.push(...me(r, c, i));
112
+ t.push(...le(r, c, i));
113
113
  break;
114
114
  case s.EveryQuarter:
115
- t.push(...le(r, c, i));
115
+ t.push(...he(r, c, i));
116
116
  break;
117
117
  case s.EveryOtherQuarter:
118
- t.push(...he(r, c, i));
118
+ t.push(...fe(r, c, i));
119
119
  break;
120
120
  case s.EveryYear:
121
- t.push(...fe(r, c, i));
121
+ t.push(...pe(r, c, i));
122
122
  break;
123
123
  }
124
124
  for (const m of t) {
125
- const D = e.transactions.find(
126
- (x) => x.repeating_transaction_guid === e.guid && x.date > y(_(m.expectedDate, 5)) && x.date < y(Q(m.expectedDate, 5))
125
+ const _ = e.transactions.find(
126
+ (x) => x.repeating_transaction_guid === e.guid && x.date > y(D(m.expectedDate, 5)) && x.date < y(Q(m.expectedDate, 5))
127
127
  );
128
- D ? (m.transaction = D, m.status = p.Paid, m.occurredOnDate = H(D.date)) : u(m.expectedDate, _(b(), 3)) && (m.status = p.Missed);
128
+ _ ? (m.transaction = _, m.status = p.Paid, m.occurredOnDate = V(_.date)) : u(m.expectedDate, D(b(), 3)) && (m.status = p.Missed);
129
129
  }
130
130
  return t;
131
- }, ce = (e, a, t) => {
131
+ }, ie = (e, a, t) => {
132
132
  const n = [];
133
133
  let o = E(a, e.recurrenceDay);
134
134
  for (; u(o, t); )
135
135
  n.push({ ...e, expectedDate: o }), o = E(o, e.recurrenceDay);
136
136
  return n;
137
- }, ie = (e, a, t) => {
137
+ }, ue = (e, a, t) => {
138
138
  const n = [], o = e.expectedDate;
139
139
  if (u(o, t)) {
140
- let r = _(o, 14);
141
- for (; h(r, a) || V(r, a); )
142
- n.push({ ...e, expectedDate: r }), r = _(r, 14);
140
+ let r = D(o, 14);
141
+ for (; h(r, a) || X(r, a); )
142
+ n.push({ ...e, expectedDate: r }), r = D(r, 14);
143
143
  for (r = o; h(r, a) && u(r, t); )
144
144
  n.push({ ...e, expectedDate: r }), r = Q(r, 14);
145
145
  }
146
146
  return n;
147
- }, ue = (e, a, t) => {
147
+ }, de = (e, a, t) => {
148
148
  const n = [];
149
149
  let o = g(a, e.recurrenceDay);
150
150
  for (; u(o, t); )
151
151
  n.push({ ...e, expectedDate: o }), o = f(o, 1);
152
- let r = e.secondRecurrenceDay && e.secondRecurrenceDay < 28 ? g(a, e.secondRecurrenceDay) : T(a);
152
+ let r = e.secondRecurrenceDay && e.secondRecurrenceDay < 28 ? g(a, e.secondRecurrenceDay) : q(a);
153
153
  for (; u(r, t); )
154
154
  n.push({ ...e, expectedDate: r }), r = f(r, 1);
155
155
  return n;
156
- }, de = (e, a, t) => {
156
+ }, me = (e, a, t) => {
157
157
  const n = [];
158
158
  let o = g(a, e.recurrenceDay);
159
159
  for (n.push({ ...e, expectedDate: o }), o = f(o, 1); u(o, t); )
160
160
  n.push({ ...e, expectedDate: o }), o = f(o, 1);
161
161
  return n;
162
- }, me = (e, a, t) => {
162
+ }, le = (e, a, t) => {
163
163
  const n = [], o = e.expectedDate;
164
- let r = u(o, t) ? o : X(o, 2);
164
+ let r = u(o, t) ? o : Z(o, 2);
165
165
  for (; u(r, t); )
166
166
  h(r, a) && n.push({ ...e, expectedDate: r }), r = f(r, 2);
167
167
  return n;
168
- }, le = (e, a, t) => {
168
+ }, he = (e, a, t) => {
169
169
  const n = [], o = e.expectedDate;
170
170
  let r = u(o, t) ? o : N(o, 1);
171
171
  for (; u(r, t); )
172
172
  h(r, a) && n.push({ ...e, expectedDate: r }), r = A(r, 1);
173
173
  return n;
174
- }, he = (e, a, t) => {
174
+ }, fe = (e, a, t) => {
175
175
  const n = [], o = e.expectedDate;
176
176
  let r = u(o, t) ? o : N(o, 2);
177
177
  for (; u(r, t); )
178
178
  h(r, a) && n.push({ ...e, expectedDate: r }), r = A(r, 2);
179
179
  return n;
180
- }, fe = (e, a, t) => {
180
+ }, pe = (e, a, t) => {
181
181
  const n = [], o = e.expectedDate;
182
- let r = u(o, t) ? o : Z(o, 1);
182
+ let r = u(o, t) ? o : T(o, 1);
183
183
  for (; u(r, t); )
184
- h(r, a) && n.push({ ...e, expectedDate: r }), r = z(r, 1);
184
+ h(r, a) && n.push({ ...e, expectedDate: r }), r = K(r, 1);
185
185
  return n;
186
- }, Fe = (e, a) => {
186
+ }, Re = (e, a) => {
187
187
  const t = [];
188
188
  for (const n of e) {
189
- const o = se(n, a);
189
+ const o = ce(n, a);
190
190
  t.push(...o);
191
191
  }
192
192
  return t.sort(
193
193
  (n, o) => y(n.occurredOnDate || n.expectedDate) - y(o.occurredOnDate || o.expectedDate)
194
194
  );
195
- }, Re = (e, a, t) => {
195
+ }, et = (e, a, t) => {
196
196
  const n = [];
197
197
  for (const o of a) {
198
198
  const r = t.filter(
@@ -205,8 +205,8 @@ const Te = ({ iconName: e, label: a, onClick: t, value: n }) => {
205
205
  });
206
206
  }
207
207
  return n;
208
- }, et = (e) => e.reduce((a, t) => {
209
- const n = K(t.expectedDate, { representation: "date" }), o = a.find(
208
+ }, tt = (e) => e.reduce((a, t) => {
209
+ const n = H(t.expectedDate, { representation: "date" }), o = a.find(
210
210
  (r) => r.date.toString() === t.expectedDate.toString()
211
211
  );
212
212
  return o ? o.recurrences.push(t) : a.push({
@@ -214,8 +214,8 @@ const Te = ({ iconName: e, label: a, onClick: t, value: n }) => {
214
214
  id: `date-${n}`,
215
215
  recurrences: [t]
216
216
  }), a;
217
- }, []), tt = (e, a, t) => {
218
- const n = E(b(), a.recurrence_day), o = q(b(), a.recurrence_day), r = W(a.recurrence_day), c = a.second_recurrence_day ? W(a.second_recurrence_day) : "";
217
+ }, []), rt = (e, a, t) => {
218
+ const n = E(b(), a.recurrence_day), o = F(b(), a.recurrence_day), r = W(a.recurrence_day), c = a.second_recurrence_day ? W(a.second_recurrence_day) : "";
219
219
  let i = t ? l(e.monthly_ordinal, r) : e.monthly;
220
220
  switch (a.recurrence_type) {
221
221
  case s.EveryQuarter:
@@ -250,43 +250,43 @@ const Te = ({ iconName: e, label: a, onClick: t, value: n }) => {
250
250
  break;
251
251
  }
252
252
  return i;
253
- }, rt = (e, a) => {
253
+ }, ot = (e, a) => {
254
254
  let t = a;
255
255
  switch (e) {
256
256
  case s.EveryWeek:
257
- t = ae(a);
257
+ t = ne(a);
258
258
  break;
259
259
  case s.EveryOtherWeek:
260
- t = oe(a);
260
+ t = ae(a);
261
261
  break;
262
262
  case s.EveryMonth:
263
- t = re(a);
263
+ t = oe(a);
264
264
  break;
265
265
  case s.EveryOtherMonth:
266
- t = te(a);
266
+ t = re(a);
267
267
  break;
268
268
  case s.EveryQuarter:
269
- t = ee(a);
269
+ t = te(a);
270
270
  break;
271
271
  case s.EveryOtherQuarter:
272
- t = R(a);
272
+ t = ee(a);
273
273
  break;
274
274
  case s.EveryYear:
275
- t = F(a);
275
+ t = R(a);
276
276
  break;
277
277
  }
278
278
  return t;
279
279
  };
280
280
  export {
281
- Te as D,
281
+ qe as D,
282
282
  s as F,
283
283
  Y as R,
284
- qe as S,
285
- Re as a,
286
- Fe as b,
284
+ Fe as S,
285
+ et as a,
286
+ Re as b,
287
287
  p as c,
288
288
  O as d,
289
- rt as e,
290
- et as f,
291
- tt as g
289
+ ot as e,
290
+ tt as f,
291
+ rt as g
292
292
  };
@@ -8,7 +8,7 @@ import { startOfMonth as y } from "date-fns/startOfMonth";
8
8
  import { startOfToday as i } from "date-fns/startOfToday";
9
9
  import { subDays as I } from "date-fns/subDays";
10
10
  import { F as x, A as o } from "./Fetch-DecPFeGU.mjs";
11
- import { a as u, b as A, c as r, d } from "./RecurringTransactions-CxcSL1dY.mjs";
11
+ import { a as u, b as A, c as r, d } from "./RecurringTransactions-Bhx56aA3.mjs";
12
12
  var E = /* @__PURE__ */ ((a) => (a.Small = "small", a.Medium = "medium", a.Large = "large", a))(E || {});
13
13
  const G = 44;
14
14
  class h {
@@ -3,7 +3,7 @@ import p from "react";
3
3
  import d from "@mui/material/Button";
4
4
  import a from "@mui/material/IconButton";
5
5
  import c from "@mui/material/Tooltip";
6
- import { useTheme as f } from "@mui/material/styles";
6
+ import f from "@mui/material/styles/useTheme";
7
7
  const B = ({
8
8
  icon: e,
9
9
  label: i,
@@ -0,0 +1,42 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { observer as p } from "mobx-react-lite";
3
+ import d from "@mui/material/Box";
4
+ import h from "@mui/material/IconButton";
5
+ import a from "@mui/material/InputAdornment";
6
+ import { useTokens as x, TextField as u, Icon as c } from "@mxenabled/mxui";
7
+ const b = ({
8
+ ariaLabel: t = "Search",
9
+ cancelAriaLabel: s = "Cancel Search",
10
+ onChange: e,
11
+ placeholder: i = "Search",
12
+ searchValue: o
13
+ }) => {
14
+ const n = x(), m = /* @__PURE__ */ r(
15
+ h,
16
+ {
17
+ "aria-label": s,
18
+ className: "mx-cat-cancel-search-button",
19
+ color: "primary",
20
+ onClick: () => e(""),
21
+ children: /* @__PURE__ */ r(c, { name: "cancel", size: 24 })
22
+ }
23
+ );
24
+ return /* @__PURE__ */ r(d, { className: "mx-cmn-search-box", px: n.Spacing.Large, py: n.Spacing.Medium, children: /* @__PURE__ */ r(
25
+ u,
26
+ {
27
+ InputProps: {
28
+ startAdornment: /* @__PURE__ */ r(a, { position: "start", children: /* @__PURE__ */ r(c, { color: "disabled", name: "search", size: 26 }) }),
29
+ endAdornment: /* @__PURE__ */ r(a, { position: "end", sx: { p: 0 }, children: o ? m : null })
30
+ },
31
+ "aria-label": t,
32
+ name: "search",
33
+ onChange: (l) => e(l.target.value),
34
+ placeholder: i,
35
+ sx: { bgcolor: "background.paper", width: "100%" },
36
+ value: o
37
+ }
38
+ ) });
39
+ }, v = p(b);
40
+ export {
41
+ v as S
42
+ };
@@ -1,6 +1,6 @@
1
1
  import { jsxs as a, jsx as o } from "react/jsx-runtime";
2
2
  import l from "@mui/material/Box";
3
- import { useTheme as D } from "@mui/material/styles";
3
+ import D from "@mui/material/styles/useTheme";
4
4
  const p = 48, d = 4, y = ({
5
5
  color: m = "",
6
6
  percent: r = 0,
@@ -8,12 +8,12 @@ import f from "@mui/material/Stack";
8
8
  import { useTheme as k } from "@mui/material/styles";
9
9
  import { CategoryIcon as M, CategoryIconVariants as A, Text as h } from "@mxenabled/mxui";
10
10
  import { D as G } from "./Donut-Dmy3JTWd.mjs";
11
- import { u as O } from "./TransactionDetails-Bn0qY5Hw.mjs";
11
+ import { u as O } from "./TransactionDetails-Duv1X9ec.mjs";
12
12
  import { u as $ } from "./hooks-C41HAxM5.mjs";
13
- import { u as j } from "./useScreenSize-B5afALev.mjs";
13
+ import { u as j } from "./useScreenSize-B6JyS_Lj.mjs";
14
14
  import { f as x } from "./NumberFormatting-DjTD0t3W.mjs";
15
15
  import R from "@mui/material/Box";
16
- const D = 5, V = (i, l, g, d) => d.reduce((o, n) => {
16
+ const D = 5, B = (i, l, g, d) => d.reduce((o, n) => {
17
17
  const r = i.find((s) => s.guid === n.category_guid);
18
18
  if (!r) return o;
19
19
  const t = r.parent_guid ?? r.guid, a = i.find((s) => s.guid === t);
@@ -32,7 +32,7 @@ const D = 5, V = (i, l, g, d) => d.reduce((o, n) => {
32
32
  amount: n.total
33
33
  }), o;
34
34
  }, []), ot = (i, l, g, d) => {
35
- const o = V(i, l, g, d), n = o.filter(
35
+ const o = B(i, l, g, d), n = o.filter(
36
36
  (e) => e.guid !== p.INCOME && e.guid !== p.INVESTMENTS && e.guid !== p.TRANSFER
37
37
  ).sort((e, s) => s.amount - e.amount), r = n.reduce(
38
38
  (e, s) => e + s.amount,
@@ -89,7 +89,7 @@ const D = 5, V = (i, l, g, d) => d.reduce((o, n) => {
89
89
  donutData: r,
90
90
  totalAmount: n
91
91
  };
92
- }, B = ({
92
+ }, H = ({
93
93
  data: i,
94
94
  isIncome: l = !1,
95
95
  onSelected: g,
@@ -137,7 +137,7 @@ const D = 5, V = (i, l, g, d) => d.reduce((o, n) => {
137
137
  {
138
138
  color: "secondary",
139
139
  noWrap: !0,
140
- variant: t === "mini" ? "tiny" : "body1",
140
+ variant: t === "mini" ? "Tiny" : "Body",
141
141
  children: u ? u.name : r
142
142
  }
143
143
  )
@@ -145,8 +145,8 @@ const D = 5, V = (i, l, g, d) => d.reduce((o, n) => {
145
145
  }
146
146
  ),
147
147
  !u && t === "full" && /* @__PURE__ */ c(h, { bold: !0, color: "secondary", sx: { mb: { xs: 4, xl: 8 } }, children: r }),
148
- /* @__PURE__ */ c(h, { variant: t === "mini" ? "h2" : "h1", children: u ? x(u.amount, "0,0") : x(i.totalAmount, "0,0") }),
149
- !u && t === "mini" && /* @__PURE__ */ c(h, { color: "secondary", noWrap: !0, variant: "tiny", children: r }),
148
+ /* @__PURE__ */ c(h, { variant: t === "mini" ? "H2" : "H1", children: u ? x(u.amount, "0,0") : x(i.totalAmount, "0,0") }),
149
+ !u && t === "mini" && /* @__PURE__ */ c(h, { color: "secondary", noWrap: !0, variant: "Tiny", children: r }),
150
150
  t === "full" && /* @__PURE__ */ c(
151
151
  N,
152
152
  {
@@ -160,7 +160,7 @@ const D = 5, V = (i, l, g, d) => d.reduce((o, n) => {
160
160
  )
161
161
  ] }) }) })
162
162
  ] });
163
- }, et = w(B), at = ({ data: i, onSelected: l, selectedId: g }) => {
163
+ }, et = w(H), at = ({ data: i, onSelected: l, selectedId: g }) => {
164
164
  const d = (o, n) => {
165
165
  (o.key === "Enter" || o.key === " ") && (o.preventDefault(), l(n));
166
166
  };
@@ -179,7 +179,7 @@ const D = 5, V = (i, l, g, d) => d.reduce((o, n) => {
179
179
  tabIndex: 0,
180
180
  children: [
181
181
  /* @__PURE__ */ c(R, { borderRadius: 4, height: 8, sx: { backgroundColor: o.color }, width: 8 }),
182
- /* @__PURE__ */ c(h, { bold: o.guid === g, variant: "caption", children: o.name })
182
+ /* @__PURE__ */ c(h, { bold: o.guid === g, variant: "XSmall", children: o.name })
183
183
  ]
184
184
  },
185
185
  o.guid