@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
@@ -4,20 +4,20 @@ import { observer as A } from "mobx-react-lite";
4
4
  import M from "@mui/material/Box";
5
5
  import T from "@mui/material/Divider";
6
6
  import K from "@mui/material/List";
7
- import y from "@mui/material/Stack";
7
+ import h from "@mui/material/Stack";
8
8
  import { MerchantLogo as H, Text as S, H1 as oe, InstitutionLogo as ae, P as U } from "@mxenabled/mxui";
9
9
  import ie from "@mui/material/ListItem";
10
10
  import se from "@mui/material/ListItemAvatar";
11
11
  import ce from "@mui/material/ListItemButton";
12
12
  import le from "@mui/material/ListItemText";
13
- import { F as d, S as N, D as Y, g as Q, R, e as de } from "./RecurringTransactions-CxcSL1dY.mjs";
13
+ import { F as d, S as N, D as Y, g as Q, R, e as de } from "./RecurringTransactions-BKcYmpv3.mjs";
14
14
  import { subDays as _e } from "date-fns/subDays";
15
15
  import { startOfToday as z } from "date-fns/startOfToday";
16
16
  import { endOfMonth as ue } from "date-fns/endOfMonth";
17
17
  import { parseISO as me } from "date-fns/parseISO";
18
18
  import $ from "@mui/material/Button";
19
- import { Delete as pe, Add as ye, ReceiptLong as he } from "@mxenabled/mx-icons";
20
- import { T as X, a as ge, b as fe, S as Ce, c as be } from "./TransactionDetails-Bn0qY5Hw.mjs";
19
+ import { Delete as pe, Add as he, ReceiptLong as ye } from "@mxenabled/mx-icons";
20
+ import { T as X, a as ge, b as fe, S as Ce, c as be } from "./TransactionDetails-5M2vfr59.mjs";
21
21
  import { getDayOfYear as xe } from "date-fns/getDayOfYear";
22
22
  import { setDayOfYear as Se } from "date-fns/setDayOfYear";
23
23
  import { AdapterDateFns as ve } from "@mui/x-date-pickers/AdapterDateFnsV3";
@@ -25,15 +25,15 @@ import { DatePicker as we } from "@mui/x-date-pickers";
25
25
  import { LocalizationProvider as Ae } from "@mui/x-date-pickers/LocalizationProvider";
26
26
  import { u as w, j as F, g as G, b as Ie, h as Z, p as De } from "./hooks-C41HAxM5.mjs";
27
27
  import { b as Re, f as J } from "./NumberFormatting-DjTD0t3W.mjs";
28
- import { D as O } from "./Drawer-BF40nbsH.mjs";
29
- import { A as E } from "./WidgetContainer-CDh9fjpR.mjs";
30
- import { f as Ee, a as Te, D as Le } from "./Dialog-CDV0kKxj.mjs";
28
+ import { D as O } from "./Drawer-BEtCk82g.mjs";
29
+ import { A as E } from "./WidgetContainer-BhQ1Kx2z.mjs";
30
+ import { f as Ee, a as Te, D as Le } from "./Dialog-BPTr3qHE.mjs";
31
31
  import { formatISO as Oe } from "date-fns/formatISO";
32
32
  import { fromUnixTime as ke } from "date-fns/fromUnixTime";
33
- import { S as Ne } from "./SearchBox-B7km148n.mjs";
34
- import { h as Me } from "./DateUtil-CDPZw_-m.mjs";
35
- import { b as q } from "./Category-Ccoew_sA.mjs";
36
- import { T as V } from "./User-BklmOUSd.mjs";
33
+ import { S as Ne } from "./SearchBox-B2_zLv8-.mjs";
34
+ import { h as Me } from "./DateUtil-CBdcsyuk.mjs";
35
+ import { b as B } from "./Category-CevNQ03n.mjs";
36
+ import { T as V } from "./User-wXzDI4M8.mjs";
37
37
  const ee = ({
38
38
  frequency: n,
39
39
  firstDay: t,
@@ -62,15 +62,15 @@ const ee = ({
62
62
  { id: 4, label: r.weekday_thursday },
63
63
  { id: 5, label: r.weekday_friday },
64
64
  { id: 6, label: r.weekday_saturday }
65
- ], h = [...Array(31).keys()].map((p) => ({
65
+ ], y = [...Array(31).keys()].map((p) => ({
66
66
  id: p + 1,
67
67
  label: Re(p + 1)
68
68
  }));
69
- h[30].label += ` (${r.last_day_of_month})`;
70
- const C = h.slice(0, 15), v = h.slice(14), b = n === d.EveryWeek || n === d.EveryOtherWeek, g = n === d.TwiceAMonth || n === d.EveryMonth || n === d.EveryOtherMonth || n === d.EveryQuarter || n === d.EveryOtherQuarter, I = Se(z(), t), f = (p) => {
69
+ y[30].label += ` (${r.last_day_of_month})`;
70
+ const C = y.slice(0, 15), v = y.slice(14), b = n === d.EveryWeek || n === d.EveryOtherWeek, g = n === d.TwiceAMonth || n === d.EveryMonth || n === d.EveryOtherMonth || n === d.EveryQuarter || n === d.EveryOtherQuarter, I = Se(z(), t), f = (p) => {
71
71
  p && s(xe(p));
72
72
  };
73
- return /* @__PURE__ */ c(y, { gap: 24, sx: { m: 24 }, children: [
73
+ return /* @__PURE__ */ c(h, { gap: 24, sx: { m: 24 }, children: [
74
74
  /* @__PURE__ */ e(
75
75
  N,
76
76
  {
@@ -94,7 +94,7 @@ const ee = ({
94
94
  {
95
95
  label: n === d.TwiceAMonth ? r.first_day_of_the_month : r.day_of_the_month,
96
96
  onChange: s,
97
- options: n === d.TwiceAMonth ? C : h,
97
+ options: n === d.TwiceAMonth ? C : y,
98
98
  value: t
99
99
  }
100
100
  ),
@@ -118,7 +118,7 @@ const ee = ({
118
118
  ) })
119
119
  ] });
120
120
  }, Fe = A(({ repeatingTransaction: n }) => {
121
- const { recurring: t } = w(), { updateRepeatingTransaction: o } = F(), { onEvent: i } = G(), [s, l] = _.useState(!1), [r, a] = _.useState(n.recurrence_type), [m, h] = _.useState(n.recurrence_day), [C, v] = _.useState(n.second_recurrence_day), b = async () => {
121
+ const { recurring: t } = w(), { updateRepeatingTransaction: o } = F(), { onEvent: i } = G(), [s, l] = _.useState(!1), [r, a] = _.useState(n.recurrence_type), [m, y] = _.useState(n.recurrence_day), [C, v] = _.useState(n.second_recurrence_day), b = async () => {
122
122
  await o({
123
123
  ...n,
124
124
  recurrence_type: r,
@@ -151,7 +151,7 @@ const ee = ({
151
151
  {
152
152
  firstDay: m,
153
153
  frequency: r,
154
- onFirstDayChange: h,
154
+ onFirstDayChange: y,
155
155
  onFrequencyChange: a,
156
156
  onSecondDayChange: v,
157
157
  secondDay: C
@@ -162,7 +162,7 @@ const ee = ({
162
162
  ] });
163
163
  }), Ge = A(
164
164
  ({ onDeleted: n, recurringTransaction: t }) => {
165
- const { recurring: o } = w(), { selectedAccountGuids: i } = Ie(), { onEvent: s } = G(), { deleteRepeatingTransaction: l } = F(), { setFilter: r, transactions: a } = Z(), { amount: m, description: h, merchant_guid: C } = t, [v, b] = _.useState(!1), [g, I] = _.useState("");
165
+ const { recurring: o } = w(), { selectedAccountGuids: i } = Ie(), { onEvent: s } = G(), { deleteRepeatingTransaction: l } = F(), { setFilter: r, transactions: a } = Z(), { amount: m, description: y, merchant_guid: C } = t, [v, b] = _.useState(!1), [g, I] = _.useState("");
166
166
  _.useEffect(() => {
167
167
  r({
168
168
  accounts: i,
@@ -178,8 +178,8 @@ const ee = ({
178
178
  }, P = () => {
179
179
  b(!0), s(E.RECURRING_TRANSACTIONS_DETAILS_CLICK_DELETE);
180
180
  };
181
- return /* @__PURE__ */ c(y, { bgcolor: "background.default", direction: "column", height: "100%", children: [
182
- /* @__PURE__ */ c(y, { direction: "column", m: 24, children: [
181
+ return /* @__PURE__ */ c(h, { bgcolor: "background.default", direction: "column", height: "100%", children: [
182
+ /* @__PURE__ */ c(h, { direction: "column", m: 24, children: [
183
183
  /* @__PURE__ */ e(
184
184
  H,
185
185
  {
@@ -189,7 +189,7 @@ const ee = ({
189
189
  sx: { mb: 12 }
190
190
  }
191
191
  ),
192
- /* @__PURE__ */ e(S, { bold: !0, variant: "body1", children: h }),
192
+ /* @__PURE__ */ e(S, { bold: !0, variant: "body1", children: y }),
193
193
  /* @__PURE__ */ c(oe, { color: p ? "success.main" : "text.primary", sx: { my: 4 }, children: [
194
194
  p ? "+" : "",
195
195
  J(m, "0,0.00")
@@ -236,7 +236,7 @@ const ee = ({
236
236
  children: p ? o.delete_income_title : o.delete_expense_title
237
237
  }
238
238
  ),
239
- /* @__PURE__ */ e(S, { bold: !0, sx: { ml: 24, mt: 16 }, variant: "body1", children: o.paid_transactions }),
239
+ /* @__PURE__ */ e(S, { bold: !0, sx: { ml: 24, mt: 16 }, variant: "Body", children: o.paid_transactions }),
240
240
  /* @__PURE__ */ e(X, { height: "30dvh", onClick: I }),
241
241
  /* @__PURE__ */ e(
242
242
  O,
@@ -281,10 +281,10 @@ const ee = ({
281
281
  merchantGuid: t.merchant_guid
282
282
  }
283
283
  ) }),
284
- /* @__PURE__ */ e(le, { children: /* @__PURE__ */ c(y, { direction: "row", gap: 4, sx: { justifyContent: "space-between" }, children: [
285
- /* @__PURE__ */ c(y, { direction: "column", sx: { width: "50%" }, children: [
284
+ /* @__PURE__ */ e(le, { children: /* @__PURE__ */ c(h, { direction: "row", gap: 4, sx: { justifyContent: "space-between" }, children: [
285
+ /* @__PURE__ */ c(h, { direction: "column", sx: { width: "50%" }, children: [
286
286
  /* @__PURE__ */ e(S, { bold: !0, variant: "body1", children: t.description }),
287
- /* @__PURE__ */ c(y, { alignItems: "center", direction: "row", gap: 6, children: [
287
+ /* @__PURE__ */ c(h, { alignItems: "center", direction: "row", gap: 6, children: [
288
288
  t.account?.institution_guid && /* @__PURE__ */ e(
289
289
  ae,
290
290
  {
@@ -296,7 +296,7 @@ const ee = ({
296
296
  /* @__PURE__ */ e(S, { variant: "caption", children: r })
297
297
  ] })
298
298
  ] }),
299
- /* @__PURE__ */ c(y, { alignItems: "flex-end", sx: { width: "50%" }, children: [
299
+ /* @__PURE__ */ c(h, { alignItems: "flex-end", sx: { width: "50%" }, children: [
300
300
  /* @__PURE__ */ c(
301
301
  S,
302
302
  {
@@ -310,7 +310,7 @@ const ee = ({
310
310
  }
311
311
  ),
312
312
  /* @__PURE__ */ e(
313
- y,
313
+ h,
314
314
  {
315
315
  direction: "row",
316
316
  sx: {
@@ -352,7 +352,7 @@ const ee = ({
352
352
  onSelected: i
353
353
  }) => {
354
354
  const { recurring: s } = w(), { searchValue: l, setSearchValue: r } = fe();
355
- return /* @__PURE__ */ c(y, { sx: { bgcolor: n, gap: 16, pt: 8 }, children: [
355
+ return /* @__PURE__ */ c(h, { sx: { bgcolor: n, gap: 16, pt: 8 }, children: [
356
356
  t && /* @__PURE__ */ e(U, { sx: { mx: 24 }, children: t }),
357
357
  /* @__PURE__ */ e(
358
358
  Ne,
@@ -390,13 +390,13 @@ const ee = ({
390
390
  transaction: a
391
391
  }) => {
392
392
  const { recurring: m } = w();
393
- return /* @__PURE__ */ c(y, { bgcolor: n, gap: 24, height: "100%", children: [
394
- /* @__PURE__ */ c(y, { children: [
393
+ return /* @__PURE__ */ c(h, { bgcolor: n, gap: 24, height: "100%", children: [
394
+ /* @__PURE__ */ c(h, { children: [
395
395
  /* @__PURE__ */ e(Ce, { bgcolor: n, children: Me(a.date) }),
396
396
  /* @__PURE__ */ e(be, { transaction: a })
397
397
  ] }),
398
398
  /* @__PURE__ */ c(M, { children: [
399
- /* @__PURE__ */ e(S, { bold: !0, sx: { mx: 24 }, variant: "body1", children: m.payment_schedule }),
399
+ /* @__PURE__ */ e(S, { bold: !0, sx: { mx: 24 }, variant: "Body", children: m.payment_schedule }),
400
400
  /* @__PURE__ */ e(
401
401
  ee,
402
402
  {
@@ -411,17 +411,17 @@ const ee = ({
411
411
  ] })
412
412
  ] });
413
413
  }
414
- ), B = (n) => n.top_level_category_guid !== q.INCOME && n.transaction_type === V.DEBIT, ze = (n, t) => B(n) ? n.payee?.toLowerCase().includes(t.toLowerCase()) || n.description.toLowerCase().includes(t.toLowerCase()) || n.feed_description.toLowerCase().includes(t.toLowerCase()) : !1, W = (n) => n.top_level_category_guid === q.INCOME || n.top_level_category_guid === q.TRANSFER && n.transaction_type === V.CREDIT, qe = (n, t) => W(n) ? n.payee?.toLowerCase().includes(t.toLowerCase()) || n.description?.toLowerCase().includes(t.toLowerCase()) || n.feed_description?.toLowerCase().includes(t.toLowerCase()) : !1, te = A(
414
+ ), q = (n) => n.top_level_category_guid !== B.INCOME && n.transaction_type === V.DEBIT, ze = (n, t) => q(n) ? n.payee?.toLowerCase().includes(t.toLowerCase()) || n.description.toLowerCase().includes(t.toLowerCase()) || n.feed_description.toLowerCase().includes(t.toLowerCase()) : !1, W = (n) => n.top_level_category_guid === B.INCOME || n.top_level_category_guid === B.TRANSFER && n.transaction_type === V.CREDIT, Be = (n, t) => W(n) ? n.payee?.toLowerCase().includes(t.toLowerCase()) || n.description?.toLowerCase().includes(t.toLowerCase()) || n.feed_description?.toLowerCase().includes(t.toLowerCase()) : !1, te = A(
415
415
  ({
416
416
  isIncome: n = !1,
417
417
  label: t,
418
418
  onAddRecurringTransaction: o = () => null
419
419
  }) => {
420
- const { recurring: i } = w(), { filter: s, setFilter: l, transactions: r } = Z(), { addRepeatingTransaction: a } = F(), { user: m } = De(), [h, C] = _.useState(!1), [v, b] = _.useState(""), [g, I] = _.useState(d.EveryMonth), [f, p] = _.useState(1), [k, P] = _.useState(15), u = _.useMemo(
420
+ const { recurring: i } = w(), { filter: s, setFilter: l, transactions: r } = Z(), { addRepeatingTransaction: a } = F(), { user: m } = De(), [y, C] = _.useState(!1), [v, b] = _.useState(""), [g, I] = _.useState(d.EveryMonth), [f, p] = _.useState(1), [k, P] = _.useState(15), u = _.useMemo(
421
421
  () => r.find((x) => x.guid === v),
422
422
  [v, r]
423
423
  ), ne = () => {
424
- C(!0), l(n ? { ...s, custom: W } : { ...s, custom: B });
424
+ C(!0), l(n ? { ...s, custom: W } : { ...s, custom: q });
425
425
  }, re = async () => {
426
426
  if (!u) {
427
427
  j();
@@ -448,12 +448,12 @@ const ee = ({
448
448
  b(""), C(!1);
449
449
  };
450
450
  return /* @__PURE__ */ c(L, { children: [
451
- /* @__PURE__ */ e($, { onClick: ne, startIcon: /* @__PURE__ */ e(ye, { size: 24 }), variant: "contained", children: t }),
451
+ /* @__PURE__ */ e($, { onClick: ne, startIcon: /* @__PURE__ */ e(he, { size: 24 }), variant: "contained", children: t }),
452
452
  /* @__PURE__ */ e(
453
453
  O,
454
454
  {
455
455
  ariaLabelClose: i.close_drawer_aria,
456
- isOpen: h,
456
+ isOpen: y,
457
457
  onClose: () => C(!1),
458
458
  title: t,
459
459
  children: /* @__PURE__ */ e(
@@ -463,7 +463,7 @@ const ee = ({
463
463
  onSearch: (x) => {
464
464
  l({
465
465
  ...s,
466
- custom: (D) => n ? x ? qe(D, x) : W(D) : x ? ze(D, x) : B(D)
466
+ custom: (D) => n ? x ? Be(D, x) : W(D) : x ? ze(D, x) : q(D)
467
467
  });
468
468
  },
469
469
  onSelected: (x) => b(x)
@@ -495,11 +495,11 @@ const ee = ({
495
495
  )
496
496
  ] });
497
497
  }
498
- ), Be = A(
498
+ ), qe = A(
499
499
  ({ zeroStateFor: n }) => {
500
500
  const { recurring: t } = w(), { onEvent: o } = G(), i = n === "income", s = i ? t.recurring_setting_zero_state_income_title : t.recurring_setting_zero_state_expenses_title, l = i ? t.recurring_setting_zero_state_income_description : t.recurring_setting_zero_state_expenses_description, r = i ? t.add_income : t.add_expense;
501
- return /* @__PURE__ */ c(y, { sx: { alignItems: "center", p: 24, pt: 48 }, children: [
502
- /* @__PURE__ */ e(he, { size: 48 }),
501
+ return /* @__PURE__ */ c(h, { sx: { alignItems: "center", p: 24, pt: 48 }, children: [
502
+ /* @__PURE__ */ e(ye, { size: 48 }),
503
503
  /* @__PURE__ */ e(U, { sx: { my: 8, fontWeight: 600 }, variant: "body1", children: s }),
504
504
  /* @__PURE__ */ e(U, { color: "text.secondary", sx: { mb: 32 }, variant: "subtitle2", children: l }),
505
505
  /* @__PURE__ */ e(
@@ -527,14 +527,14 @@ const ee = ({
527
527
  (a) => a.repeating_transaction_type === R.Income && (a.transactions.length > 0 || a.recurrence_type === d.EveryYear)
528
528
  );
529
529
  return /* @__PURE__ */ e(L, { children: r.length !== 0 ? /* @__PURE__ */ c(
530
- y,
530
+ h,
531
531
  {
532
532
  sx: {
533
533
  height: n ? "calc(100vh - 62px)" : "calc(100vh - 109px)",
534
534
  maxHeight: n ? "calc(100vh - 62px)" : "calc(100vh - 109px)"
535
535
  },
536
536
  children: [
537
- n && /* @__PURE__ */ e(S, { bold: !0, sx: { mb: 4, mt: 12, mx: 24 }, variant: "body2", children: t.income }),
537
+ n && /* @__PURE__ */ e(S, { bold: !0, sx: { mb: 4, mt: 12, mx: 24 }, variant: "Small", children: t.income }),
538
538
  /* @__PURE__ */ e(M, { sx: { flex: 1, overflow: "auto" }, children: /* @__PURE__ */ e(K, { sx: { bgcolor: "background.paper" }, children: r.map((a, m) => /* @__PURE__ */ c(_.Fragment, { children: [
539
539
  /* @__PURE__ */ e(Pe, { onClick: s, repeatingTransaction: a }),
540
540
  /* @__PURE__ */ e(
@@ -570,16 +570,16 @@ const ee = ({
570
570
  ] })
571
571
  ]
572
572
  }
573
- ) : /* @__PURE__ */ e(Be, { zeroStateFor: "income" }) });
573
+ ) : /* @__PURE__ */ e(qe, { zeroStateFor: "income" }) });
574
574
  });
575
575
  export {
576
576
  te as A,
577
577
  It as M,
578
578
  Pe as R,
579
579
  Ue as S,
580
- Be as a,
580
+ qe as a,
581
581
  Ge as b,
582
582
  Ye as c,
583
583
  W as d,
584
- qe as i
584
+ Be as i
585
585
  };
@@ -0,0 +1,45 @@
1
+ import { jsx as r, jsxs as p, Fragment as f } from "react/jsx-runtime";
2
+ import x from "@mui/material/Button";
3
+ import C from "@mui/material/Card";
4
+ import g from "@mui/material/CardContent";
5
+ import b from "@mui/material/CardHeader";
6
+ import { P as u, H3 as v } from "@mxenabled/mxui";
7
+ import { ChevronRight as W } from "@mxenabled/mx-icons";
8
+ import { u as M } from "./useDimensions-27p2evRx.mjs";
9
+ import { W as w } from "./hooks-C41HAxM5.mjs";
10
+ const H = ({
11
+ children: e,
12
+ className: o,
13
+ ctaLabel: n,
14
+ onCTAClick: a,
15
+ subHeader: t,
16
+ sx: s,
17
+ title: c,
18
+ variant: d = "borderless"
19
+ }) => {
20
+ const [m, { height: l, width: h }] = M(), i = /* @__PURE__ */ p(f, { children: [
21
+ /* @__PURE__ */ r(
22
+ b,
23
+ {
24
+ action: /* @__PURE__ */ r(
25
+ x,
26
+ {
27
+ endIcon: /* @__PURE__ */ r(W, { size: 20 }),
28
+ onClick: a,
29
+ size: "small",
30
+ variant: "text",
31
+ children: n
32
+ }
33
+ ),
34
+ subheader: t && /* @__PURE__ */ r(u, { sx: { color: "text.secondary" }, variant: "body2", children: t }),
35
+ sx: { p: 0, pb: 8, width: "calc(100% - 8px)", "& .MuiCardHeader-action": { mt: 0 } },
36
+ title: /* @__PURE__ */ r(v, { sx: { width: "calc(100% - 10px)" }, children: c })
37
+ }
38
+ ),
39
+ /* @__PURE__ */ r(g, { ref: m, sx: { p: 0, ":last-child": { pb: 0 } }, children: /* @__PURE__ */ r(w, { availableHeight: l, availableWidth: h, children: e }) })
40
+ ] });
41
+ return d === "borderless" ? i : /* @__PURE__ */ r(C, { className: o, sx: { alignItems: "center", p: 16, ...s }, children: i });
42
+ }, F = H;
43
+ export {
44
+ F as M
45
+ };
@@ -0,0 +1,56 @@
1
+ import { jsxs as r, jsx as i, Fragment as g } from "react/jsx-runtime";
2
+ import x from "@mui/material/Box";
3
+ import C from "@mui/material/Button";
4
+ import u from "@mui/material/Card";
5
+ import v from "@mui/material/CardHeader";
6
+ import b from "@mui/material/CardContent";
7
+ import W from "@mui/material/IconButton";
8
+ import { Icon as z, ChevronRight as H } from "@mxenabled/mx-icons";
9
+ import { H3 as I, Text as B, P as M } from "@mxenabled/mxui";
10
+ import { u as S } from "./useDimensions-27p2evRx.mjs";
11
+ import { W as j } from "./hooks-C41HAxM5.mjs";
12
+ const w = ({
13
+ children: a,
14
+ className: m = "mx-cmn-mini-widget",
15
+ closeLabel: l,
16
+ contentStyles: d,
17
+ onClose: e,
18
+ onPrimaryCtaClick: o,
19
+ primaryCtaLabel: s = "",
20
+ subTitle: n = "",
21
+ sx: c = {},
22
+ title: t = ""
23
+ }) => {
24
+ const [p, { height: h, width: f }] = S();
25
+ return /* @__PURE__ */ r(u, { className: m, sx: { ...c }, children: [
26
+ /* @__PURE__ */ i(
27
+ v,
28
+ {
29
+ sx: { pb: 8 },
30
+ title: /* @__PURE__ */ r(g, { children: [
31
+ /* @__PURE__ */ r(
32
+ x,
33
+ {
34
+ sx: {
35
+ alignItems: "center",
36
+ display: "grid",
37
+ gap: 2,
38
+ gridTemplateColumns: "1fr auto",
39
+ pb: 4
40
+ },
41
+ children: [
42
+ t && /* @__PURE__ */ i(I, { children: t }),
43
+ e ? /* @__PURE__ */ i(W, { "aria-label": l, onClick: e, size: "small", children: /* @__PURE__ */ i(z, { name: "close", size: 24 }) }) : o && /* @__PURE__ */ i(C, { endIcon: /* @__PURE__ */ i(H, {}), onClick: o, size: "small", children: /* @__PURE__ */ i(B, { bold: !0, variant: "Small", children: s }) })
44
+ ]
45
+ }
46
+ ),
47
+ n && /* @__PURE__ */ i(M, { color: "text.secondary", sx: { fontSize: 15, lineHeight: "20px" }, variant: "Small", children: n })
48
+ ] })
49
+ }
50
+ ),
51
+ /* @__PURE__ */ i(b, { ref: p, sx: { p: 0, ...d }, children: /* @__PURE__ */ i(j, { availableHeight: h, availableWidth: f, children: a }) })
52
+ ] });
53
+ }, G = w;
54
+ export {
55
+ G as M
56
+ };
@@ -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-CRUehOiy.mjs";
7
- import { h as N, i as M, a as v } from "./ConnectDrawer-DVp54lUH.mjs";
6
+ import { a as b } from "./Accounts-DXfZotRC.mjs";
7
+ import { h as N, a as M, i as v } from "./ConnectDrawer-BIbTqYOH.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));
@@ -79,8 +79,8 @@ const f = 13, L = (n, t) => n.filter((e) => {
79
79
  return e[s] || (e[s] = []), e[s].push(r), e;
80
80
  }, {});
81
81
  return Object.entries(t).map(([e, r]) => ({
82
- icon: M[+e] || v[+e],
83
- name: N[+e],
82
+ icon: N[+e] || M[+e],
83
+ name: v[+e],
84
84
  accounts: r
85
85
  }));
86
86
  };