@mx-cartographer/experiences 7.0.44-alpha.mega1 → 7.0.45

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 (67) hide show
  1. package/CHANGELOG.md +7 -3
  2. package/dist/{Account-CYkoSG86.mjs → Account-DNtjr75t.mjs} +1 -1
  3. package/dist/{AccountDetailsContent-BuXTLptM.mjs → AccountDetailsContent-eODMVIVq.mjs} +16 -16
  4. package/dist/{AccountDetailsHeader-BWl2e21n.mjs → AccountDetailsHeader-C0qgTju7.mjs} +38 -37
  5. package/dist/{AccountFields-x4A7Loe5.mjs → AccountFields-DDHk35Ou.mjs} +2 -2
  6. package/dist/AccountListItem-BxmUd4j3.mjs +90 -0
  7. package/dist/{AccountStore-WQAkYgx1.mjs → AccountStore-CpjCeykS.mjs} +2 -2
  8. package/dist/{Accounts-CeeJag5-.mjs → Accounts-nXcS0QUR.mjs} +1 -1
  9. package/dist/{BudgetUtil-n3gEKIub.mjs → BudgetUtil-2EncZLBQ.mjs} +1 -1
  10. package/dist/{CategorySelectorDrawer-993LpETZ.mjs → CategorySelectorDrawer-BmenK5bu.mjs} +1 -1
  11. package/dist/ConnectDrawer-YIWwEzuN.mjs +521 -0
  12. package/dist/{ConnectionsDrawer-CcBzf4l5.mjs → ConnectionsDrawer-Bf2DNDCF.mjs} +2 -2
  13. package/dist/{CurrencyInput-pHmLzc_c.mjs → CurrencyInput-CRtdzs3o.mjs} +1 -1
  14. package/dist/{DebtsStore-EZh5aBxe.mjs → DebtsStore-Dy3YG1fX.mjs} +1 -1
  15. package/dist/{ExportCsvAction-BKxnEFRu.mjs → ExportCsvAction-CebIvl-V.mjs} +3 -3
  16. package/dist/{GoalStore-B9lVADw5.mjs → GoalStore-voP4QA5C.mjs} +3 -3
  17. package/dist/{Help-PP2i0N9Y.mjs → Help-CzBAsKA2.mjs} +1 -1
  18. package/dist/{LineChart-CHTf3RcN.mjs → LineChart-B2Y7zwMu.mjs} +1 -1
  19. package/dist/{ListItemAction-DXyHyJn0.mjs → ListItemAction-DSrYDGAP.mjs} +1 -1
  20. package/dist/{ManageIncome-D1XoZlqY.mjs → ManageIncome-kMsgLN3T.mjs} +38 -38
  21. package/dist/{MicroWidgetContainer-Dpu8VDSP.mjs → MicroWidgetContainer-C4QQHfD7.mjs} +1 -1
  22. package/dist/{MiniWidgetContainer-BhHaL8eb.mjs → MiniWidgetContainer-DSG6mwaW.mjs} +1 -1
  23. package/dist/{NetWorthStore-N5esR-KJ.mjs → NetWorthStore-C5RMjsMS.mjs} +2 -2
  24. package/dist/{NotificationSettings-CWZR6ki-.mjs → NotificationSettings-BCtanw2c.mjs} +4 -4
  25. package/dist/{OriginalBalanceAction-DSA8sk5b.mjs → OriginalBalanceAction-CEuIYsc_.mjs} +3 -3
  26. package/dist/{RecurringSettings-DA6qT8ai.mjs → RecurringSettings-CETLT79T.mjs} +8 -8
  27. package/dist/{RecurringTransactionsStore-Djo9IeDd.mjs → RecurringTransactionsStore-DeLXfuC4.mjs} +1 -1
  28. package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-Dc34Tzx8.mjs} +1 -1
  29. package/dist/{TransactionDetails-DO_YihKP.mjs → TransactionDetails-B-rdHE3_.mjs} +5 -5
  30. package/dist/{TransactionStore-B2Vq95Fg.mjs → TransactionStore-CfQBEIsK.mjs} +2 -2
  31. package/dist/{TrendsStore-DWVFqEC-.mjs → TrendsStore-BKBnNQba.mjs} +1 -1
  32. package/dist/{User-Bfnq7dd4.mjs → User-8itAR7lR.mjs} +22 -21
  33. package/dist/{WidgetContainer-DfyV39Ru.mjs → WidgetContainer-p7NIdiNJ.mjs} +2 -2
  34. package/dist/accounts/index.es.js +123 -128
  35. package/dist/analytics/index.es.js +11 -11
  36. package/dist/budgets/index.es.js +10 -10
  37. package/dist/cashflow/index.es.js +26 -26
  38. package/dist/categories/index.es.js +1 -1
  39. package/dist/common/hooks/index.d.ts +1 -0
  40. package/dist/common/hooks/useAccountDisplayName.d.ts +3 -0
  41. package/dist/common/index.es.js +84 -80
  42. package/dist/common/types/AppData.d.ts +2 -0
  43. package/dist/common/utils/AccountDisplayName.d.ts +6 -0
  44. package/dist/common/utils/AccountFilter.d.ts +2 -6
  45. package/dist/dashboard/index.es.js +14 -14
  46. package/dist/debts/index.es.js +9 -9
  47. package/dist/{exportTransactionsToCSV-BgWQsGWy.mjs → exportTransactionsToCSV-CfylirZA.mjs} +1 -1
  48. package/dist/finstrong/index.es.js +6 -6
  49. package/dist/goals/index.es.js +529 -524
  50. package/dist/help/index.es.js +5 -5
  51. package/dist/{hooks-BAAimqdq.mjs → hooks-CE2TKk4a.mjs} +12 -12
  52. package/dist/investments/index.es.js +3 -3
  53. package/dist/merchants/index.es.js +1 -1
  54. package/dist/networth/index.es.js +7 -7
  55. package/dist/notifications/index.es.js +10 -10
  56. package/dist/recurringtransactions/index.es.js +11 -11
  57. package/dist/settings/index.es.js +7 -7
  58. package/dist/spending/index.es.js +4 -4
  59. package/dist/transactions/index.es.js +13 -13
  60. package/dist/trends/index.es.js +11 -11
  61. package/dist/useAccountDisplayName-DC1Lqjag.mjs +15 -0
  62. package/dist/{useInsightsEnabled-BwLaOKWW.mjs → useInsightsEnabled-DSnpkUq0.mjs} +1 -1
  63. package/package.json +1 -1
  64. package/dist/AccountListItem-D9mpJkCP.mjs +0 -89
  65. package/dist/ConnectDrawer-CNdzwKdX.mjs +0 -528
  66. package/dist/{ToggleListItem-r0Kx56wF.mjs → Notification-aGCHxikw.mjs} +1 -1
  67. package/dist/{RecurringTransactions-DTUx9VN1.mjs → RepeatingTransaction-BW4J-jeJ.mjs} +1 -1
@@ -3,36 +3,36 @@ import u from "react";
3
3
  import { observer as A } from "mobx-react-lite";
4
4
  import P from "@mui/material/Box";
5
5
  import T from "@mui/material/Divider";
6
- import j from "@mui/material/List";
7
- import y from "@mui/material/Stack";
6
+ import K from "@mui/material/List";
7
+ import h from "@mui/material/Stack";
8
8
  import { MerchantLogo as H, Text as S, H1 as re, 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 as E, e as de } from "./RecurringTransactions-DTUx9VN1.mjs";
13
+ import { F as d, S as N, D as Y, g as Q, R as E, e as de } from "./RepeatingTransaction-BW4J-jeJ.mjs";
14
14
  import { subDays as ue } from "date-fns/subDays";
15
15
  import { startOfToday as z } from "date-fns/startOfToday";
16
16
  import { endOfMonth as _e } from "date-fns/endOfMonth";
17
17
  import $ from "@mui/material/Button";
18
- import { Delete as me, Add as pe, ReceiptLong as ye } from "@mxenabled/mx-icons";
19
- import { T as X, a as he, u as ge, S as fe, b as Ce } from "./TransactionDetails-DO_YihKP.mjs";
18
+ import { Delete as me, Add as pe, ReceiptLong as he } from "@mxenabled/mx-icons";
19
+ import { T as X, a as ye, u as ge, S as fe, b as Ce } from "./TransactionDetails-B-rdHE3_.mjs";
20
20
  import { getDayOfYear as be } from "date-fns/getDayOfYear";
21
21
  import { setDayOfYear as xe } from "date-fns/setDayOfYear";
22
22
  import { AdapterDateFns as Se } from "@mui/x-date-pickers/AdapterDateFnsV3";
23
23
  import { DatePicker as ve } from "@mui/x-date-pickers";
24
24
  import { LocalizationProvider as we } from "@mui/x-date-pickers/LocalizationProvider";
25
- import { u as w, i as M, f as F, a as Ae, g as Z, o as De } from "./hooks-BAAimqdq.mjs";
25
+ import { u as w, j as M, g as F, b as Ae, h as Z, o as De } from "./hooks-CE2TKk4a.mjs";
26
26
  import { b as Ie, f as J } from "./NumberFormatting-CtWHhyBX.mjs";
27
27
  import { D as O } from "./Drawer-kEE73B87.mjs";
28
- import { A as R } from "./WidgetContainer-DfyV39Ru.mjs";
28
+ import { A as R } from "./WidgetContainer-p7NIdiNJ.mjs";
29
29
  import { f as Ee, D as Re, a as Te } from "./Dialog-CWW597AF.mjs";
30
30
  import { formatISO as Le } from "date-fns/formatISO";
31
31
  import { fromUnixTime as Oe } from "date-fns/fromUnixTime";
32
32
  import { S as ke } from "./SearchBox-B2_zLv8-.mjs";
33
33
  import { h as Ne } from "./DateUtil-BcuH7ErC.mjs";
34
34
  import { b as B } from "./Category-CevNQ03n.mjs";
35
- import { T as V } from "./User-Bfnq7dd4.mjs";
35
+ import { T as V } from "./User-8itAR7lR.mjs";
36
36
  const ee = ({
37
37
  frequency: n,
38
38
  firstDay: t,
@@ -61,15 +61,15 @@ const ee = ({
61
61
  { id: 4, label: o.weekday_thursday },
62
62
  { id: 5, label: o.weekday_friday },
63
63
  { id: 6, label: o.weekday_saturday }
64
- ], h = [...Array(31).keys()].map((p) => ({
64
+ ], y = [...Array(31).keys()].map((p) => ({
65
65
  id: p + 1,
66
66
  label: Ie(p + 1)
67
67
  }));
68
- h[30].label += ` (${o.last_day_of_month})`;
69
- 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, D = xe(z(), t), f = (p) => {
68
+ y[30].label += ` (${o.last_day_of_month})`;
69
+ 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, D = xe(z(), t), f = (p) => {
70
70
  p && s(be(p));
71
71
  };
72
- return /* @__PURE__ */ c(y, { gap: 24, sx: { m: 24 }, children: [
72
+ return /* @__PURE__ */ c(h, { gap: 24, sx: { m: 24 }, children: [
73
73
  /* @__PURE__ */ e(
74
74
  N,
75
75
  {
@@ -93,7 +93,7 @@ const ee = ({
93
93
  {
94
94
  label: n === d.TwiceAMonth ? o.first_day_of_the_month : o.day_of_the_month,
95
95
  onChange: s,
96
- options: n === d.TwiceAMonth ? C : h,
96
+ options: n === d.TwiceAMonth ? C : y,
97
97
  value: t
98
98
  }
99
99
  ),
@@ -117,7 +117,7 @@ const ee = ({
117
117
  ) })
118
118
  ] });
119
119
  }, Me = A(({ repeatingTransaction: n }) => {
120
- const { recurring: t } = w(), { updateRepeatingTransaction: r } = M(), { onEvent: a } = F(), [s, l] = u.useState(!1), [o, i] = u.useState(n.recurrence_type), [m, h] = u.useState(n.recurrence_day), [C, v] = u.useState(n.second_recurrence_day), b = async () => {
120
+ const { recurring: t } = w(), { updateRepeatingTransaction: r } = M(), { onEvent: a } = F(), [s, l] = u.useState(!1), [o, i] = u.useState(n.recurrence_type), [m, y] = u.useState(n.recurrence_day), [C, v] = u.useState(n.second_recurrence_day), b = async () => {
121
121
  await r({
122
122
  ...n,
123
123
  recurrence_type: o,
@@ -150,7 +150,7 @@ const ee = ({
150
150
  {
151
151
  firstDay: m,
152
152
  frequency: o,
153
- onFirstDayChange: h,
153
+ onFirstDayChange: y,
154
154
  onFrequencyChange: i,
155
155
  onSecondDayChange: v,
156
156
  secondDay: C
@@ -161,7 +161,7 @@ const ee = ({
161
161
  ] });
162
162
  }), Fe = A(
163
163
  ({ onDeleted: n, recurringTransaction: t }) => {
164
- const { recurring: r } = w(), { selectedAccountGuids: a } = Ae(), { onEvent: s } = F(), { deleteRepeatingTransaction: l } = M(), { setFilter: o, transactions: i } = Z(), { amount: m, description: h, merchant_guid: C } = t, [v, b] = u.useState(!1), [g, D] = u.useState("");
164
+ const { recurring: r } = w(), { selectedAccountGuids: a } = Ae(), { onEvent: s } = F(), { deleteRepeatingTransaction: l } = M(), { setFilter: o, transactions: i } = Z(), { amount: m, description: y, merchant_guid: C } = t, [v, b] = u.useState(!1), [g, D] = u.useState("");
165
165
  u.useEffect(() => {
166
166
  o({
167
167
  accounts: a,
@@ -177,8 +177,8 @@ const ee = ({
177
177
  }, G = () => {
178
178
  b(!0), s(R.RECURRING_TRANSACTIONS_DETAILS_CLICK_DELETE);
179
179
  };
180
- return /* @__PURE__ */ c(y, { bgcolor: "background.default", direction: "column", height: "100%", children: [
181
- /* @__PURE__ */ c(y, { direction: "column", m: 24, children: [
180
+ return /* @__PURE__ */ c(h, { bgcolor: "background.default", direction: "column", height: "100%", children: [
181
+ /* @__PURE__ */ c(h, { direction: "column", m: 24, children: [
182
182
  /* @__PURE__ */ e(
183
183
  H,
184
184
  {
@@ -188,7 +188,7 @@ const ee = ({
188
188
  sx: { mb: 12 }
189
189
  }
190
190
  ),
191
- /* @__PURE__ */ e(S, { bold: !0, variant: "body1", children: h }),
191
+ /* @__PURE__ */ e(S, { bold: !0, variant: "body1", children: y }),
192
192
  /* @__PURE__ */ c(re, { color: p ? "success.main" : "text.primary", sx: { my: 4 }, children: [
193
193
  p ? "+" : "",
194
194
  J(m, "0,0.00")
@@ -198,7 +198,7 @@ const ee = ({
198
198
  Re.MONTH_DAY_YEAR
199
199
  )}` })
200
200
  ] }),
201
- /* @__PURE__ */ c(j, { sx: { bgcolor: "background.paper" }, children: [
201
+ /* @__PURE__ */ c(K, { sx: { bgcolor: "background.paper" }, children: [
202
202
  t.account && /* @__PURE__ */ c(L, { children: [
203
203
  /* @__PURE__ */ e(
204
204
  Y,
@@ -244,7 +244,7 @@ const ee = ({
244
244
  isOpen: !!g && !!f,
245
245
  onClose: () => D(""),
246
246
  title: r.transaction_details_drawer_title,
247
- children: f && /* @__PURE__ */ e(he, { transaction: f })
247
+ children: f && /* @__PURE__ */ e(ye, { transaction: f })
248
248
  }
249
249
  ),
250
250
  /* @__PURE__ */ e(
@@ -280,10 +280,10 @@ const ee = ({
280
280
  merchantGuid: t.merchant_guid
281
281
  }
282
282
  ) }),
283
- /* @__PURE__ */ e(le, { children: /* @__PURE__ */ c(y, { direction: "row", gap: 4, sx: { justifyContent: "space-between" }, children: [
284
- /* @__PURE__ */ c(y, { direction: "column", sx: { width: "50%" }, children: [
283
+ /* @__PURE__ */ e(le, { children: /* @__PURE__ */ c(h, { direction: "row", gap: 4, sx: { justifyContent: "space-between" }, children: [
284
+ /* @__PURE__ */ c(h, { direction: "column", sx: { width: "50%" }, children: [
285
285
  /* @__PURE__ */ e(S, { bold: !0, variant: "body1", children: t.description }),
286
- /* @__PURE__ */ c(y, { alignItems: "center", direction: "row", gap: 6, children: [
286
+ /* @__PURE__ */ c(h, { alignItems: "center", direction: "row", gap: 6, children: [
287
287
  t.account?.institution_guid && /* @__PURE__ */ e(
288
288
  ae,
289
289
  {
@@ -295,7 +295,7 @@ const ee = ({
295
295
  /* @__PURE__ */ e(S, { variant: "caption", children: o })
296
296
  ] })
297
297
  ] }),
298
- /* @__PURE__ */ c(y, { alignItems: "flex-end", sx: { width: "50%" }, children: [
298
+ /* @__PURE__ */ c(h, { alignItems: "flex-end", sx: { width: "50%" }, children: [
299
299
  /* @__PURE__ */ c(
300
300
  S,
301
301
  {
@@ -309,7 +309,7 @@ const ee = ({
309
309
  }
310
310
  ),
311
311
  /* @__PURE__ */ e(
312
- y,
312
+ h,
313
313
  {
314
314
  direction: "row",
315
315
  sx: {
@@ -351,7 +351,7 @@ const ee = ({
351
351
  onSelected: a
352
352
  }) => {
353
353
  const { recurring: s } = w(), { searchValue: l, setSearchValue: o } = ge();
354
- return /* @__PURE__ */ c(y, { sx: { bgcolor: n, gap: 16, pt: 8 }, children: [
354
+ return /* @__PURE__ */ c(h, { sx: { bgcolor: n, gap: 16, pt: 8 }, children: [
355
355
  t && /* @__PURE__ */ e(U, { sx: { mx: 24 }, children: t }),
356
356
  /* @__PURE__ */ e(
357
357
  ke,
@@ -380,8 +380,8 @@ const ee = ({
380
380
  transaction: i
381
381
  }) => {
382
382
  const { recurring: m } = w();
383
- return /* @__PURE__ */ c(y, { bgcolor: n, gap: 24, height: "100%", children: [
384
- /* @__PURE__ */ c(y, { children: [
383
+ return /* @__PURE__ */ c(h, { bgcolor: n, gap: 24, height: "100%", children: [
384
+ /* @__PURE__ */ c(h, { children: [
385
385
  /* @__PURE__ */ e(fe, { bgcolor: n, children: Ne(i.date) }),
386
386
  /* @__PURE__ */ e(Ce, { transaction: i })
387
387
  ] }),
@@ -405,14 +405,14 @@ const ee = ({
405
405
  label: t,
406
406
  onAddRecurringTransaction: r = () => null
407
407
  }) => {
408
- const { recurring: a } = w(), { filter: s, setFilter: l, transactions: o } = Z(), { addRepeatingTransaction: i } = M(), { user: m } = De(), [h, C] = u.useState(!1), [v, b] = u.useState(""), [g, D] = u.useState(d.EveryMonth), [f, p] = u.useState(1), [k, G] = u.useState(15), _ = u.useMemo(
408
+ const { recurring: a } = w(), { filter: s, setFilter: l, transactions: o } = Z(), { addRepeatingTransaction: i } = M(), { user: m } = De(), [y, C] = u.useState(!1), [v, b] = u.useState(""), [g, D] = u.useState(d.EveryMonth), [f, p] = u.useState(1), [k, G] = u.useState(15), _ = u.useMemo(
409
409
  () => o.find((x) => x.guid === v),
410
410
  [v, o]
411
411
  ), ne = () => {
412
412
  C(!0), l(n ? { ...s, custom: W } : { ...s, custom: q });
413
413
  }, oe = async () => {
414
414
  if (!_) {
415
- K();
415
+ j();
416
416
  return;
417
417
  }
418
418
  r();
@@ -431,8 +431,8 @@ const ee = ({
431
431
  transaction_type: _.transaction_type,
432
432
  user_guid: m.guid
433
433
  };
434
- await i(I, _), K();
435
- }, K = () => {
434
+ await i(I, _), j();
435
+ }, j = () => {
436
436
  b(""), C(!1);
437
437
  };
438
438
  return /* @__PURE__ */ c(L, { children: [
@@ -441,7 +441,7 @@ const ee = ({
441
441
  O,
442
442
  {
443
443
  ariaLabelClose: a.close_drawer_aria,
444
- isOpen: h,
444
+ isOpen: y,
445
445
  onClose: () => C(!1),
446
446
  title: t,
447
447
  children: /* @__PURE__ */ e(
@@ -486,8 +486,8 @@ const ee = ({
486
486
  ), Be = A(
487
487
  ({ zeroStateFor: n }) => {
488
488
  const { recurring: t } = w(), { onEvent: r } = F(), a = n === "income", s = a ? t.recurring_setting_zero_state_income_title : t.recurring_setting_zero_state_expenses_title, l = a ? t.recurring_setting_zero_state_income_description : t.recurring_setting_zero_state_expenses_description, o = a ? t.add_income : t.add_expense;
489
- return /* @__PURE__ */ c(y, { sx: { alignItems: "center", p: 24, pt: 48 }, children: [
490
- /* @__PURE__ */ e(ye, { size: 48 }),
489
+ return /* @__PURE__ */ c(h, { sx: { alignItems: "center", p: 24, pt: 48 }, children: [
490
+ /* @__PURE__ */ e(he, { size: 48 }),
491
491
  /* @__PURE__ */ e(U, { sx: { my: 8, fontWeight: 600 }, variant: "body1", children: s }),
492
492
  /* @__PURE__ */ e(U, { color: "text.secondary", sx: { mb: 32 }, variant: "subtitle2", children: l }),
493
493
  /* @__PURE__ */ e(
@@ -515,7 +515,7 @@ const ee = ({
515
515
  (i) => i.repeating_transaction_type === E.Income && (i.transactions.length > 0 || i.recurrence_type === d.EveryYear)
516
516
  );
517
517
  return /* @__PURE__ */ e(L, { children: o.length !== 0 ? /* @__PURE__ */ c(
518
- y,
518
+ h,
519
519
  {
520
520
  sx: {
521
521
  height: n ? "calc(100vh - 62px)" : "calc(100vh - 109px)",
@@ -523,7 +523,7 @@ const ee = ({
523
523
  },
524
524
  children: [
525
525
  n && /* @__PURE__ */ e(S, { bold: !0, sx: { mb: 4, mt: 12, mx: 24 }, variant: "Small", children: t.income }),
526
- /* @__PURE__ */ e(P, { sx: { flex: 1, overflow: "auto" }, children: /* @__PURE__ */ e(j, { sx: { bgcolor: "background.paper" }, children: o.map((i, m) => /* @__PURE__ */ c(u.Fragment, { children: [
526
+ /* @__PURE__ */ e(P, { sx: { flex: 1, overflow: "auto" }, children: /* @__PURE__ */ e(K, { sx: { bgcolor: "background.paper" }, children: o.map((i, m) => /* @__PURE__ */ c(u.Fragment, { children: [
527
527
  /* @__PURE__ */ e(Ge, { onClick: s, repeatingTransaction: i }),
528
528
  /* @__PURE__ */ e(
529
529
  T,
@@ -6,7 +6,7 @@ import b from "@mui/material/CardHeader";
6
6
  import { P as u, H3 as v } from "@mxenabled/mxui";
7
7
  import { ChevronRight as W } from "@mxenabled/mx-icons";
8
8
  import { u as M } from "./useDimensions-27p2evRx.mjs";
9
- import { W as w } from "./hooks-BAAimqdq.mjs";
9
+ import { W as w } from "./hooks-CE2TKk4a.mjs";
10
10
  const H = ({
11
11
  children: e,
12
12
  className: o,
@@ -7,7 +7,7 @@ import b from "@mui/material/IconButton";
7
7
  import { Icon as C, ChevronRight as v } from "@mxenabled/mx-icons";
8
8
  import { Text as W, H3 as H } from "@mxenabled/mxui";
9
9
  import { u as I } from "./useDimensions-27p2evRx.mjs";
10
- import { W as M } from "./hooks-BAAimqdq.mjs";
10
+ import { W as M } from "./hooks-CE2TKk4a.mjs";
11
11
  const j = ({
12
12
  className: t = "mx-cmn-mini-widget",
13
13
  closeLabel: a,
@@ -3,8 +3,8 @@ import { format as A } from "date-fns/format";
3
3
  import { fromUnixTime as W } from "date-fns/fromUnixTime";
4
4
  import { startOfMonth as _ } from "date-fns/startOfMonth";
5
5
  import { subMonths as B } from "date-fns/subMonths";
6
- import { a as b } from "./Accounts-CeeJag5-.mjs";
7
- import { e as N, a as M, f as v } from "./ConnectDrawer-CNdzwKdX.mjs";
6
+ import { a as b } from "./Accounts-nXcS0QUR.mjs";
7
+ import { e as N, a as M, f as v } from "./ConnectDrawer-YIWwEzuN.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));
@@ -14,12 +14,12 @@ import { startOfMonth as ee } from "date-fns/startOfMonth";
14
14
  import { DateCalendar as te } from "@mui/x-date-pickers/DateCalendar";
15
15
  import { LocalizationProvider as ne } from "@mui/x-date-pickers/LocalizationProvider";
16
16
  import { AdapterDateFns as ie } from "@mui/x-date-pickers/AdapterDateFnsV3";
17
- import { A as oe, T as F, a as P, N as y } from "./ToggleListItem-r0Kx56wF.mjs";
18
- import { u as D, r as T, o as A, c as se, f as ae, l as W, a as le } from "./hooks-BAAimqdq.mjs";
17
+ import { A as oe, T as F, a as P, N as y } from "./Notification-aGCHxikw.mjs";
18
+ import { u as D, r as T, o as A, d as se, g as ae, a as W, b as le } from "./hooks-CE2TKk4a.mjs";
19
19
  import { b as ce } from "./Localization-2MODESHW.mjs";
20
20
  import { b as re, f as de } from "./NumberFormatting-CtWHhyBX.mjs";
21
21
  import { a as M } from "./Dialog-CWW597AF.mjs";
22
- import { C as me } from "./CurrencyInput-pHmLzc_c.mjs";
22
+ import { C as me } from "./CurrencyInput-CRtdzs3o.mjs";
23
23
  import { u as he } from "./useScreenSize-B6JyS_Lj.mjs";
24
24
  import { D as J } from "./Drawer-kEE73B87.mjs";
25
25
  import _e from "@mui/material/Collapse";
@@ -30,7 +30,7 @@ import R from "@mui/material/Button";
30
30
  import L from "@mui/material/TextField";
31
31
  import { u as fe } from "./useDimensions-27p2evRx.mjs";
32
32
  import X from "@mui/material/styles/useTheme";
33
- import { u as ge } from "./useInsightsEnabled-BwLaOKWW.mjs";
33
+ import { u as ge } from "./useInsightsEnabled-DSnpkUq0.mjs";
34
34
  import { L as ye } from "./Loader-DUaFpDGv.mjs";
35
35
  const be = C(() => {
36
36
  const { common: n, settings: t } = D(), { sendEmailVerification: s } = T(), { user: c } = A(), i = X(), [d, a] = f.useState(!1), o = () => {
@@ -2,10 +2,10 @@ import { jsx as o } from "react/jsx-runtime";
2
2
  import _ from "react";
3
3
  import { observer as p } from "mobx-react-lite";
4
4
  import v from "@mui/material/TextField";
5
- import { L as y } from "./ListItemAction-DXyHyJn0.mjs";
6
- import { u as h, k as b } from "./hooks-BAAimqdq.mjs";
5
+ import { L as y } from "./ListItemAction-DSrYDGAP.mjs";
6
+ import { u as h, l as b } from "./hooks-CE2TKk4a.mjs";
7
7
  import { a as T, f as S } from "./NumberFormatting-CtWHhyBX.mjs";
8
- import { C as f } from "./CurrencyInput-pHmLzc_c.mjs";
8
+ import { C as f } from "./CurrencyInput-CRtdzs3o.mjs";
9
9
  const F = p(({ goal: e }) => {
10
10
  const { goals: a } = h(), { setAlert: r, setSelectedGoal: l, updateGoal: m } = b(), [t, s] = _.useState(e.interest_rate ?? 0), c = !e.guid, i = t < 0, d = async () => {
11
11
  const n = { ...e, interest_rate: t };
@@ -7,12 +7,12 @@ import b from "@mui/material/Tabs";
7
7
  import p from "@mui/material/Divider";
8
8
  import R from "@mui/material/List";
9
9
  import T from "@mui/material/Stack";
10
- import { R as C, A as S, a as E, M as v } from "./ManageIncome-D1XoZlqY.mjs";
11
- import { u as h, i as A, f } from "./hooks-BAAimqdq.mjs";
12
- import { R as y, F as N } from "./RecurringTransactions-DTUx9VN1.mjs";
13
- import { A as d } from "./WidgetContainer-DfyV39Ru.mjs";
10
+ import { R as C, A as S, a as E, M as v } from "./ManageIncome-kMsgLN3T.mjs";
11
+ import { u as h, j as A, g as _ } from "./hooks-CE2TKk4a.mjs";
12
+ import { R as y, F as N } from "./RepeatingTransaction-BW4J-jeJ.mjs";
13
+ import { A as d } from "./WidgetContainer-p7NIdiNJ.mjs";
14
14
  const I = u(() => {
15
- const { recurring: n } = h(), { repeatingTransactions: c } = A(), { onEvent: o } = f(), a = (r) => {
15
+ const { recurring: n } = h(), { repeatingTransactions: c } = A(), { onEvent: o } = _(), a = (r) => {
16
16
  o(d.RECURRING_TRANSACTIONS_CLICK_EXPENSE, {
17
17
  repeating_transaction_guid: r.guid
18
18
  });
@@ -29,12 +29,12 @@ const I = u(() => {
29
29
  maxHeight: "calc(100vh - 109px)"
30
30
  },
31
31
  children: [
32
- /* @__PURE__ */ e(s, { sx: { flex: 1, overflow: "auto" }, children: /* @__PURE__ */ e(R, { sx: { bgcolor: "background.paper" }, children: i.map((r, _) => /* @__PURE__ */ t(m.Fragment, { children: [
32
+ /* @__PURE__ */ e(s, { sx: { flex: 1, overflow: "auto" }, children: /* @__PURE__ */ e(R, { sx: { bgcolor: "background.paper" }, children: i.map((r, f) => /* @__PURE__ */ t(m.Fragment, { children: [
33
33
  /* @__PURE__ */ e(C, { onClick: a, repeatingTransaction: r }),
34
34
  /* @__PURE__ */ e(
35
35
  p,
36
36
  {
37
- variant: _ < i.length - 1 ? "inset" : "fullWidth"
37
+ variant: f < i.length - 1 ? "inset" : "fullWidth"
38
38
  }
39
39
  )
40
40
  ] }, r.guid)) }) }),
@@ -59,7 +59,7 @@ const I = u(() => {
59
59
  }
60
60
  ) : /* @__PURE__ */ e(E, { zeroStateFor: "expenses" }) });
61
61
  }), X = u(() => {
62
- const [n, c] = m.useState(0), { onEvent: o } = f(), { recurring: a } = h();
62
+ const [n, c] = m.useState(0), { onEvent: o } = _(), { recurring: a } = h();
63
63
  return /* @__PURE__ */ t(s, { bgcolor: "background.default", height: "100%", children: [
64
64
  /* @__PURE__ */ t(
65
65
  b,
@@ -8,7 +8,7 @@ import { startOfMonth as S } from "date-fns/startOfMonth";
8
8
  import { startOfToday as c } from "date-fns/startOfToday";
9
9
  import { subDays as y } from "date-fns/subDays";
10
10
  import { F as x, A as o } from "./Fetch-87LIQbEA.mjs";
11
- import { b as E, a, c as d, d as u } from "./RecurringTransactions-DTUx9VN1.mjs";
11
+ import { b as E, a, c as d, d as u } from "./RepeatingTransaction-BW4J-jeJ.mjs";
12
12
  var A = /* @__PURE__ */ ((r) => (r.Small = "small", r.Medium = "medium", r.Large = "large", r))(A || {});
13
13
  const U = 44;
14
14
  class h {
@@ -1,6 +1,6 @@
1
1
  import { makeAutoObservable as N, runInAction as l } from "mobx";
2
2
  import { F as D, A as r } from "./Fetch-87LIQbEA.mjs";
3
- import { B as f, A as n, I as i } from "./ToggleListItem-r0Kx56wF.mjs";
3
+ import { B as f, A as n, I as i } from "./Notification-aGCHxikw.mjs";
4
4
  import { T as m } from "./TransactionApi-B3Tksf7L.mjs";
5
5
  class y {
6
6
  fetchInstance;
@@ -9,15 +9,15 @@ import { MerchantLogo as pe, Icon as S, Text as T, useTokens as ee, CategoryIcon
9
9
  import B from "@mui/material/ListItemAvatar";
10
10
  import M from "@mui/material/ListItemText";
11
11
  import f from "@mui/material/Stack";
12
- import { T as Pe, L as Ge, O as h, C as Me, b as Ke, i as $e } from "./User-Bfnq7dd4.mjs";
13
- import { G as Be, g as v, u as A, f as L, m as xe, a as Fe, o as He } from "./hooks-BAAimqdq.mjs";
12
+ import { T as Pe, L as Ge, O as h, C as Me, b as Ke, i as $e } from "./User-8itAR7lR.mjs";
13
+ import { G as Be, h as v, u as A, g as L, m as xe, b as Fe, o as He } from "./hooks-CE2TKk4a.mjs";
14
14
  import { f as te } from "./NumberFormatting-CtWHhyBX.mjs";
15
15
  import { Receipt as ze, Delete as oe, ChevronRight as Ue, Cancel as ie, Search as Xe, Edit as Ve, Flag as We } from "@mxenabled/mx-icons";
16
16
  import { fromUnixTime as W } from "date-fns/fromUnixTime";
17
17
  import { isSameDay as Ne } from "date-fns/isSameDay";
18
18
  import { h as Ye } from "./DateUtil-BcuH7ErC.mjs";
19
19
  import { L as Ie } from "./Loader-DUaFpDGv.mjs";
20
- import { A as P } from "./WidgetContainer-DfyV39Ru.mjs";
20
+ import { A as P } from "./WidgetContainer-p7NIdiNJ.mjs";
21
21
  import ne from "@mui/material/Paper";
22
22
  import ce from "@mui/material/Button";
23
23
  import je from "@mui/material/FormGroup";
@@ -30,14 +30,14 @@ import F from "@mui/material/ListItem";
30
30
  import { a as V, f as Ee, D as Oe } from "./Dialog-CWW597AF.mjs";
31
31
  import U from "@mui/material/ListItemButton";
32
32
  import X from "@mui/material/ListItemIcon";
33
- import { a as we } from "./CategorySelectorDrawer-993LpETZ.mjs";
33
+ import { a as we } from "./CategorySelectorDrawer-BmenK5bu.mjs";
34
34
  import { b as se } from "./Localization-2MODESHW.mjs";
35
35
  import { getUnixTime as Ze } from "date-fns/getUnixTime";
36
36
  import { D as de } from "./Drawer-kEE73B87.mjs";
37
37
  import ye from "@mui/material/InputAdornment";
38
38
  import Je from "@mui/material/Checkbox";
39
39
  import ge from "@mui/material/Grid";
40
- import { C as Qe } from "./CurrencyInput-pHmLzc_c.mjs";
40
+ import { C as Qe } from "./CurrencyInput-CRtdzs3o.mjs";
41
41
  import et from "@mui/material/Switch";
42
42
  var q = /* @__PURE__ */ ((t) => (t[t.Category = 0] = "Category", t[t.Date = 1] = "Date", t[t.Memo = 2] = "Memo", t[t.Tags = 3] = "Tags", t))(q || {}), re = /* @__PURE__ */ ((t) => (t[t.SplitTransaction = 0] = "SplitTransaction", t[t.HideTransaction = 1] = "HideTransaction", t[t.MerchantLogo = 2] = "MerchantLogo", t))(re || {});
43
43
  const tt = [
@@ -13,10 +13,10 @@ import { isBefore as B } from "date-fns/isBefore";
13
13
  import { startOfMonth as R } from "date-fns/startOfMonth";
14
14
  import { startOfToday as G } from "date-fns/startOfToday";
15
15
  import { subDays as Y } from "date-fns/subDays";
16
- import { O as n, a as b, T as F } from "./User-Bfnq7dd4.mjs";
16
+ import { O as n, a as b, T as F } from "./User-8itAR7lR.mjs";
17
17
  import { T as p } from "./TransactionApi-B3Tksf7L.mjs";
18
18
  import { b as W } from "./Category-CevNQ03n.mjs";
19
- import { f as z } from "./exportTransactionsToCSV-BgWQsGWy.mjs";
19
+ import { f as z } from "./exportTransactionsToCSV-CfylirZA.mjs";
20
20
  import { format as k } from "date-fns/format";
21
21
  import { f as g, D as O, O as $ } from "./Dialog-CWW597AF.mjs";
22
22
  import { endOfMonth as X } from "date-fns/endOfMonth";
@@ -12,7 +12,7 @@ import Dt from "@mui/material/CardContent";
12
12
  import P from "@mui/material/Divider";
13
13
  import X from "@mui/material/Grid";
14
14
  import { CategoryIcon as At, Text as S } from "@mxenabled/mxui";
15
- import { u as Lt, m as Q } from "./hooks-BAAimqdq.mjs";
15
+ import { u as Lt, m as Q } from "./hooks-CE2TKk4a.mjs";
16
16
  import { b as Rt } from "./Localization-2MODESHW.mjs";
17
17
  import { C as O } from "./CurrencyText-YUhH2caW.mjs";
18
18
  import { useTheme as wt, Card as Ht, CardContent as It, Box as kt } from "@mui/material";
@@ -22,10 +22,9 @@ import { isWithinInterval as Q } from "date-fns/isWithinInterval";
22
22
  import nn from "@mui/material/styles/useTheme";
23
23
  import k from "@mui/material/ListItem";
24
24
  import an from "@mui/material/ListItemButton";
25
- import { f as tn } from "./hooks-BAAimqdq.mjs";
26
- var on = /* @__PURE__ */ ((n) => (n[n.CREDIT = 1] = "CREDIT", n[n.DEBIT = 2] = "DEBIT", n))(on || {}), en = /* @__PURE__ */ ((n) => (n[n.POSTED = 1] = "POSTED", n[n.PENDING = 2] = "PENDING", n))(en || {});
27
- const rn = ({ copy: n, date: a, onNextClick: o, onPreviousClick: r }) => {
28
- const c = v(), l = cn(c);
25
+ import { g as tn } from "./hooks-CE2TKk4a.mjs";
26
+ const on = ({ copy: n, date: a, onNextClick: o, onPreviousClick: r }) => {
27
+ const c = v(), l = en(c);
29
28
  return /* @__PURE__ */ h("div", { className: `mx-cmn-calendar-header ${l}`, children: [
30
29
  /* @__PURE__ */ e(z, { className: "mx-cmn-calendar-header-title", variant: "H3", children: q(a, J.MONTH_YEAR) }),
31
30
  /* @__PURE__ */ h("div", { className: "mx-cmn-calendar-header-button-container", children: [
@@ -33,7 +32,7 @@ const rn = ({ copy: n, date: a, onNextClick: o, onPreviousClick: r }) => {
33
32
  /* @__PURE__ */ e(E, { "aria-label": n.nextAria, onClick: o, children: /* @__PURE__ */ e(Z, { size: 24 }) })
34
33
  ] })
35
34
  ] });
36
- }, cn = (n) => p({
35
+ }, en = (n) => p({
37
36
  alignItems: "center",
38
37
  display: "flex",
39
38
  marginBottom: n.Spacing.Medium,
@@ -46,8 +45,8 @@ const rn = ({ copy: n, date: a, onNextClick: o, onPreviousClick: r }) => {
46
45
  display: "flex",
47
46
  gap: 4
48
47
  }
49
- }), sn = ({ beginDate: n, date: a, endDate: o, isInMonth: r, onClick: c }) => {
50
- const l = nn(), S = Tn(l), g = n && o && Q(a, { start: n, end: o }) && !T(a, n) && !T(a, o), s = n && o && T(n, a) && !T(n, o), N = o && n && T(o, a) && !T(n, o), i = n && T(n, a) || o && T(o, a), C = T(a, f());
48
+ }), rn = ({ beginDate: n, date: a, endDate: o, isInMonth: r, onClick: c }) => {
49
+ const l = nn(), S = cn(l), g = n && o && Q(a, { start: n, end: o }) && !T(a, n) && !T(a, o), s = n && o && T(n, a) && !T(n, o), N = o && n && T(o, a) && !T(n, o), i = n && T(n, a) || o && T(o, a), C = T(a, f());
51
50
  return /* @__PURE__ */ e(
52
51
  "div",
53
52
  {
@@ -83,7 +82,7 @@ const rn = ({ copy: n, date: a, onNextClick: o, onPreviousClick: r }) => {
83
82
  )
84
83
  }
85
84
  );
86
- }, Tn = (n) => p({
85
+ }, cn = (n) => p({
87
86
  height: I,
88
87
  width: I,
89
88
  display: "flex",
@@ -128,9 +127,9 @@ const rn = ({ copy: n, date: a, onNextClick: o, onPreviousClick: r }) => {
128
127
  paddingBottom: 5
129
128
  }
130
129
  }
131
- }), ln = 340, I = 44;
132
- var Cn = /* @__PURE__ */ ((n) => (n.None = "None", n.Single = "Single", n.Range = "Range", n))(Cn || {});
133
- const Nn = ({
130
+ }), sn = 340, I = 44;
131
+ var Tn = /* @__PURE__ */ ((n) => (n.None = "None", n.Single = "Single", n.Range = "Range", n))(Tn || {});
132
+ const ln = ({
134
133
  copy: n,
135
134
  beginDate: a = void 0,
136
135
  endDate: o = void 0,
@@ -139,7 +138,7 @@ const Nn = ({
139
138
  selectionType: l = "Single"
140
139
  /* Single */
141
140
  }) => {
142
- const S = v(), g = mn(S), [s, N] = A.useState(f), [i, C] = A.useState(a), [R, _] = A.useState(o);
141
+ const S = v(), g = Cn(S), [s, N] = A.useState(f), [i, C] = A.useState(a), [R, _] = A.useState(o);
143
142
  A.useEffect(() => {
144
143
  C(a), _(o), a && N(a);
145
144
  }, [a, o]);
@@ -170,7 +169,7 @@ const Nn = ({
170
169
  };
171
170
  return /* @__PURE__ */ e("div", { className: `mx-cmn-calendar ${g}`, children: /* @__PURE__ */ h(Y, { sx: { boxShadow: "none" }, children: [
172
171
  /* @__PURE__ */ e(
173
- rn,
172
+ on,
174
173
  {
175
174
  copy: n,
176
175
  date: s,
@@ -180,7 +179,7 @@ const Nn = ({
180
179
  ),
181
180
  /* @__PURE__ */ e("div", { className: "mx-cmn-calendar-header-row", children: D[0].map((t, m) => /* @__PURE__ */ e("div", { className: "mx-cmn-calendar-header-cell", children: /* @__PURE__ */ e(G, { bold: !0, variant: "Small", children: y(t, "EEEEE") }) }, m)) }),
182
181
  D.map((t, m) => /* @__PURE__ */ e("div", { className: "mx-cmn-calendar-week", children: t.map((d, O) => /* @__PURE__ */ e(
183
- sn,
182
+ rn,
184
183
  {
185
184
  beginDate: i,
186
185
  date: d,
@@ -192,8 +191,8 @@ const Nn = ({
192
191
  )) }, `w-${m}`)),
193
192
  /* @__PURE__ */ e("div", { className: "mx-cmn-calendar-today-container", children: /* @__PURE__ */ e(E, { onClick: M, size: "small", variant: "text", children: n.today }) })
194
193
  ] }) });
195
- }, mn = (n) => p({
196
- width: ln,
194
+ }, Cn = (n) => p({
195
+ width: sn,
197
196
  "& .MuiPaper-root": {
198
197
  paddingLeft: 24,
199
198
  paddingRight: 24,
@@ -233,7 +232,7 @@ const Nn = ({
233
232
  marginRight: "auto"
234
233
  }
235
234
  }
236
- }), Bn = Nn, Pn = ({
235
+ }), Bn = ln, Pn = ({
237
236
  children: n,
238
237
  clickEventName: a,
239
238
  onClick: o,
@@ -301,13 +300,15 @@ const Nn = ({
301
300
  ON_TRANSACTION_UNHIDE_CANCEL_CLICK: "onTransactionUnHideCancelClick",
302
301
  ON_TRANSACTION_UNSPLIT: "onTransactionUnsplit",
303
302
  ON_TRANSACTION_UNSPLIT_CANCEL: "onTransactionUnsplitCancel"
304
- }, Un = (n, a) => !!n.find((o) => o.feature_name === a)?.is_enabled;
303
+ };
304
+ var Nn = /* @__PURE__ */ ((n) => (n[n.CREDIT = 1] = "CREDIT", n[n.DEBIT = 2] = "DEBIT", n))(Nn || {}), mn = /* @__PURE__ */ ((n) => (n[n.POSTED = 1] = "POSTED", n[n.PENDING = 2] = "PENDING", n))(mn || {});
305
+ const Un = (n, a) => !!n.find((o) => o.feature_name === a)?.is_enabled;
305
306
  export {
306
307
  Bn as C,
307
308
  Pn as L,
308
309
  $n as O,
309
- on as T,
310
- en as a,
311
- Cn as b,
310
+ Nn as T,
311
+ mn as a,
312
+ Tn as b,
312
313
  Un as i
313
314
  };
@@ -12,7 +12,7 @@ import Y from "@mui/material/Stack";
12
12
  import { Icon as s, Text as j, DateRangePicker as J, H1 as le, H3 as Ce } from "@mxenabled/mxui";
13
13
  import { u as de } from "./useDimensions-27p2evRx.mjs";
14
14
  import { L as Te } from "./Loader-DUaFpDGv.mjs";
15
- import { f as Ie, a as Ee, u as Re, l as ge, W as Ae } from "./hooks-BAAimqdq.mjs";
15
+ import { g as Ie, b as Ee, u as Re, a as ge, W as Ae } from "./hooks-CE2TKk4a.mjs";
16
16
  import { u as ie } from "./useScreenSize-B6JyS_Lj.mjs";
17
17
  import { addMonths as Q } from "date-fns/addMonths";
18
18
  import { addDays as Se } from "date-fns/addDays";
@@ -36,7 +36,7 @@ import we from "@mui/material/ToggleButtonGroup";
36
36
  import Ke from "@mui/material/styles/useTheme";
37
37
  import { f as K, D as G, a as Ge } from "./Dialog-CWW597AF.mjs";
38
38
  import { D as Me } from "./Drawer-kEE73B87.mjs";
39
- import { i as We, j as ye } from "./ConnectDrawer-CNdzwKdX.mjs";
39
+ import { j as We, k as ye } from "./ConnectDrawer-YIWwEzuN.mjs";
40
40
  const xe = {
41
41
  ACCOUNTS_CLICK_ACCOUNT: "accounts_widget_click_account",
42
42
  ACCOUNTS_CLICK_CONNECT: "accounts_widget_click_connect_accounts",