@mx-cartographer/experiences 8.1.0 → 8.1.1

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 (88) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/{Account-DuOz1a27.mjs → Account-BIKn4XEZ.mjs} +1 -1
  3. package/dist/{Account-BiB1F8lL.mjs → Account-CMjOp7S2.mjs} +2 -2
  4. package/dist/{AccountDetailsHeader-IPRH6Wja.mjs → AccountDetailsHeader-D_a0XUkL.mjs} +6 -6
  5. package/dist/{AccountFields-BbPSfzru.mjs → AccountFields-nrrEXd46.mjs} +30 -29
  6. package/dist/{AccountListItem-qpACFl6i.mjs → AccountListItem-D80egD01.mjs} +5 -5
  7. package/dist/{AccountStore-BeEiLNhW.mjs → AccountStore-nxHZqg1Z.mjs} +3 -3
  8. package/dist/{Accounts-o7ohkngR.mjs → Accounts-DX3xJE97.mjs} +1 -1
  9. package/dist/{Analytics-CjZ0emfs.mjs → Analytics-CxK7O19c.mjs} +2 -2
  10. package/dist/{BudgetUtil-CLh4xtj4.mjs → BudgetUtil-Cwvpb7xl.mjs} +46 -46
  11. package/dist/{CashflowStore-CeAzChyD.mjs → CashflowStore-BEi92kJg.mjs} +10 -10
  12. package/dist/{Category-CevNQ03n.mjs → Category-Ccoew_sA.mjs} +2 -2
  13. package/dist/{CategorySelectorDrawer-BG04ByUx.mjs → CategorySelectorDrawer-DjeHNx71.mjs} +7 -7
  14. package/dist/{CategoryStore-Bp1kO9Z-.mjs → CategoryStore-CA4NTaKH.mjs} +2 -2
  15. package/dist/{CategoryUtil-DKRCegQv.mjs → CategoryUtil-BJOHgYKS.mjs} +3 -3
  16. package/dist/{Connect-eYIWqCEr.mjs → Connect-BRLh-69J.mjs} +1 -1
  17. package/dist/{ConnectDrawer-C0wjwcJt.mjs → ConnectDrawer-5BpU4IQU.mjs} +3 -3
  18. package/dist/{ConnectionsDrawer-IA7vnv1J.mjs → ConnectionsDrawer-DxpSlJN7.mjs} +3 -3
  19. package/dist/{CurrencyInput-BkNVHxSV.mjs → CurrencyInput-CSJ3zMgE.mjs} +18 -18
  20. package/dist/DateUtil-D0TO0DaZ.mjs +58 -0
  21. package/dist/{DebtsStore-BZqNLaqd.mjs → DebtsStore-BJlC2-yO.mjs} +1 -1
  22. package/dist/{Dialog-Ck34yr-d.mjs → Dialog-iLlBR8TG.mjs} +6 -6
  23. package/dist/{Donut-CpxJlVvJ.mjs → Donut-D7ekbgf5.mjs} +12 -12
  24. package/dist/{Drawer-Bbe4AMB1.mjs → Drawer-XPaLYjiO.mjs} +11 -11
  25. package/dist/{EmbeddedCard-j7IGx3s1.mjs → EmbeddedCard-BCcn_fK2.mjs} +193 -193
  26. package/dist/{ExportCsvAction-7sjz7AXQ.mjs → ExportCsvAction-BPjdEUXx.mjs} +5 -5
  27. package/dist/{FinstrongStore-DgyDJTEP.mjs → FinstrongStore-DYawCv1d.mjs} +54 -54
  28. package/dist/{GlobalAccountFilter-CmnaZDS6.mjs → GlobalAccountFilter-CZbiDwBH.mjs} +1 -1
  29. package/dist/{GoalStore-DcaT4fM6.mjs → GoalStore-DmqM1ZfW.mjs} +1 -1
  30. package/dist/{Help-B8mD4aLJ.mjs → Help-CgpJK03Q.mjs} +6 -6
  31. package/dist/{Help-cTsMzSQh.mjs → Help-Dfw_GHKi.mjs} +95 -98
  32. package/dist/{IconBacking-B9oC6uL2.mjs → IconBacking-DgT8DCeh.mjs} +11 -11
  33. package/dist/{LineChart-DkD_s9NN.mjs → LineChart-jJVBE8V8.mjs} +1 -1
  34. package/dist/{ListItemAction-4KB7P75M.mjs → ListItemAction-Buv7tPLp.mjs} +4 -4
  35. package/dist/{Loader-D3rjKx72.mjs → Loader-CxeBwuPG.mjs} +5 -5
  36. package/dist/{ManageIncome-DwSE_a8L.mjs → ManageIncome-wgo-qbdP.mjs} +8 -8
  37. package/dist/MicroWidgetContainer-CEcwdfti.mjs +45 -0
  38. package/dist/MiniWidgetContainer-CmTGSUL5.mjs +66 -0
  39. package/dist/{NetWorthStore-Ba3q3VcH.mjs → NetWorthStore-BY-B_hxy.mjs} +4 -4
  40. package/dist/{NotificationSettings-DB-eNgSv.mjs → NotificationSettings-BFFIl-wS.mjs} +8 -8
  41. package/dist/{OriginalBalanceAction-AB1TGb5P.mjs → OriginalBalanceAction-C8VJZUat.mjs} +9 -9
  42. package/dist/{RecurringSettings-CZKeZC4m.mjs → RecurringSettings-Dn5pPRVS.mjs} +2 -2
  43. package/dist/{RecurringTransactions-kzlU8OFY.mjs → RecurringTransactions-DCt94TN4.mjs} +47 -47
  44. package/dist/{RecurringTransactionsStore-D62Dt2BF.mjs → RecurringTransactionsStore-CFJYC7lI.mjs} +1 -1
  45. package/dist/{ResponsiveButton-DZFp78fJ.mjs → ResponsiveButton-BNsV08Ud.mjs} +12 -12
  46. package/dist/{SettingsStore-Dsz1mvd3.mjs → SettingsStore-BcbuKfFO.mjs} +1 -1
  47. package/dist/{SingleSegmentDonut-BgbLgwHi.mjs → SingleSegmentDonut-PsRQPkmV.mjs} +5 -5
  48. package/dist/{SpendingData-CoZOmlZD.mjs → SpendingData-Dj85XEUp.mjs} +3 -3
  49. package/dist/{SpendingLegend-DljKEG69.mjs → SpendingLegend-RtFvutJ0.mjs} +4 -4
  50. package/dist/{StatusBar-BK_uYHAB.mjs → StatusBar-CPfSXe80.mjs} +6 -6
  51. package/dist/{TabContentContainer-j01JYR_7.mjs → TabContentContainer-CnMXkVqr.mjs} +8 -8
  52. package/dist/{TransactionDetails-CN-yZkin.mjs → TransactionDetails-Cb6vauzy.mjs} +21 -21
  53. package/dist/{TransactionStore-6ovFO8P1.mjs → TransactionStore-BUsP-unK.mjs} +40 -57
  54. package/dist/{TrendsStore-DZa6cyQC.mjs → TrendsStore-bYjIGqyR.mjs} +1 -1
  55. package/dist/{ViewMoreMicroCard-BsEitNRJ.mjs → ViewMoreMicroCard-C7dC9lDT.mjs} +93 -94
  56. package/dist/{WidgetContainer-Bc75FqK7.mjs → WidgetContainer-MhgZzIaI.mjs} +19 -19
  57. package/dist/accounts/index.es.js +28 -28
  58. package/dist/analytics/index.es.js +10 -10
  59. package/dist/budgets/index.es.js +18 -18
  60. package/dist/cashflow/index.es.js +109 -109
  61. package/dist/categories/index.es.js +2 -2
  62. package/dist/common/index.es.js +250 -250
  63. package/dist/core/index.es.js +64 -64
  64. package/dist/dashboard/index.es.js +21 -21
  65. package/dist/debts/index.es.js +21 -21
  66. package/dist/{exportTransactionsToCSV-Dnd5lVq7.mjs → exportTransactionsToCSV-B2Lp7AMl.mjs} +7 -7
  67. package/dist/finstrong/index.es.js +21 -21
  68. package/dist/goals/index.es.js +16 -16
  69. package/dist/help/index.es.js +5 -5
  70. package/dist/{hooks-BxkfR-Ff.mjs → hooks-HwStH7q_.mjs} +9 -9
  71. package/dist/insights/index.es.js +328 -328
  72. package/dist/investments/index.es.js +9 -9
  73. package/dist/merchants/index.es.js +9 -9
  74. package/dist/microinsights/index.es.js +1 -1
  75. package/dist/networth/index.es.js +25 -25
  76. package/dist/notifications/index.es.js +5 -5
  77. package/dist/recurringtransactions/index.es.js +23 -23
  78. package/dist/settings/index.es.js +95 -95
  79. package/dist/spending/index.es.js +64 -64
  80. package/dist/transactions/index.es.js +73 -73
  81. package/dist/trends/index.es.js +54 -54
  82. package/dist/{useAccountDisplayName-DKwT1mWv.mjs → useAccountDisplayName-SrQA7K_6.mjs} +1 -1
  83. package/dist/{useInsightsEnabled-DL_oNyI0.mjs → useInsightsEnabled-DzvRm5Bo.mjs} +1 -1
  84. package/dist/{useWidgetLoadTimer-DgN1bTyu.mjs → useWidgetLoadTimer-wkBTL5xx.mjs} +1 -1
  85. package/package.json +20 -20
  86. package/dist/DateUtil-C57sqxn4.mjs +0 -54
  87. package/dist/MicroWidgetContainer-B_EnfvCq.mjs +0 -45
  88. package/dist/MiniWidgetContainer-Bhkv-hpz.mjs +0 -66
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [8.1.1] - 04-22-2026
2
+
3
+ - **FIXED** - payment dates
4
+
1
5
  ## [8.1.0] - 04-21-2026
2
6
 
3
7
  **UPDATED** - All apis have been moved into `src/core/api`
@@ -1,4 +1,4 @@
1
- import { A as C } from "./Account-BiB1F8lL.mjs";
1
+ import { A as C } from "./Account-CMjOp7S2.mjs";
2
2
  const I = [
3
3
  C.ANY,
4
4
  C.CASH,
@@ -111,8 +111,8 @@ export {
111
111
  G as b,
112
112
  C as c,
113
113
  N as d,
114
- H as e,
115
- A as f,
114
+ A as e,
115
+ H as f,
116
116
  R as g,
117
117
  T as h
118
118
  };
@@ -3,15 +3,15 @@ import { observer as f } from "mobx-react-lite";
3
3
  import s from "@mui/material/Stack";
4
4
  import { H3 as T, InstitutionLogo as x, Text as l, H2 as D } from "@mxenabled/mxui";
5
5
  import p from "react";
6
- import { G as N, d as _, l as P, f as G, u as O } from "./hooks-BxkfR-Ff.mjs";
7
- import { g as R } from "./AccountFields-BbPSfzru.mjs";
8
- import { A as r } from "./Account-BiB1F8lL.mjs";
6
+ import { G as N, d as _, l as P, f as G, u as O } from "./hooks-HwStH7q_.mjs";
7
+ import { g as R } from "./AccountFields-nrrEXd46.mjs";
8
+ import { A as r } from "./Account-CMjOp7S2.mjs";
9
9
  import w from "@mui/material/Card";
10
10
  import v from "@mui/material/CardContent";
11
11
  import L from "@mui/material/CardHeader";
12
- import { L as H } from "./Loader-D3rjKx72.mjs";
13
- import { I as M, P as U, S as Y } from "./Account-DuOz1a27.mjs";
14
- import { u as j } from "./useAccountDisplayName-DKwT1mWv.mjs";
12
+ import { L as H } from "./Loader-CxeBwuPG.mjs";
13
+ import { I as M, P as U, S as Y } from "./Account-BIKn4XEZ.mjs";
14
+ import { u as j } from "./useAccountDisplayName-SrQA7K_6.mjs";
15
15
  import { f as z } from "./NumberFormatting-CyrvFgfd.mjs";
16
16
  const C = () => {
17
17
  if (!p.useContext(N))
@@ -1,12 +1,13 @@
1
1
  import { jsx as u } from "react/jsx-runtime";
2
- import { Icon as p, Text as y } from "@mxenabled/mxui";
3
- import { A as d, a as v, P as h, b as F } from "./Account-BiB1F8lL.mjs";
4
- import { i as T, u as D, a as A, b as g, c as O } from "./Accounts-o7ohkngR.mjs";
2
+ import { Text as y, Icon as p } from "@mxenabled/mxui";
3
+ import { A as b, a as v, P as h, b as F } from "./Account-CMjOp7S2.mjs";
4
+ import { i as T, u as A, a as D, b as g, c as O } from "./Accounts-DX3xJE97.mjs";
5
5
  import { F as m } from "./Accounts-CseLC3lL.mjs";
6
- import { f as _, i as b, a as N, b as C } from "./NumberFormatting-CyrvFgfd.mjs";
6
+ import { f as C } from "./DateUtil-D0TO0DaZ.mjs";
7
7
  import { b as i } from "./Localization-CkQ49EKr.mjs";
8
8
  import { f as o, D as f } from "./DateFormats-CaOj_4eI.mjs";
9
- const x = (l, e) => {
9
+ import { f as s, i as d, a as N, b as S } from "./NumberFormatting-CyrvFgfd.mjs";
10
+ const U = (l, e) => {
10
11
  const r = [
11
12
  {
12
13
  event: "account_details_click_account_name",
@@ -24,9 +25,9 @@ const x = (l, e) => {
24
25
  name: "balance",
25
26
  placeholder: i(e.enter_value, e.account_balance),
26
27
  type: m.Currency,
27
- valueFormatter: (t) => _(t, "0,0.00")
28
+ valueFormatter: (t) => s(t, "0,0.00")
28
29
  });
29
- const a = Object.keys(d).filter((t) => Number(t)).map((t) => ({
30
+ const a = Object.keys(b).filter((t) => Number(t)).map((t) => ({
30
31
  label: e.account_types[t],
31
32
  value: Number(t),
32
33
  icon: /* @__PURE__ */ u(p, { name: v[t] })
@@ -40,7 +41,7 @@ const x = (l, e) => {
40
41
  valueFormatter: (t) => a.find((n) => n.value === t)?.label
41
42
  });
42
43
  }
43
- if (l.account_type === d.PROPERTY) {
44
+ if (l.account_type === b.PROPERTY) {
44
45
  const a = Object.keys(h).filter((t) => Number(t)).map((t) => ({
45
46
  label: e.property_types[t],
46
47
  value: Number(t),
@@ -55,7 +56,7 @@ const x = (l, e) => {
55
56
  valueFormatter: (t) => a.find((n) => n.value === t)?.label
56
57
  });
57
58
  }
58
- if (D(l)) {
59
+ if (A(l)) {
59
60
  let a = e.interest_rate, t = "interest_rate";
60
61
  l.is_manual || (typeof l.apr == "number" && (a = e.apr, t = "apr"), typeof l.apy == "number" && (a = e.apy, t = "apy")), r.push({
61
62
  event: "account_details_click_interest_rate",
@@ -63,16 +64,16 @@ const x = (l, e) => {
63
64
  name: t,
64
65
  placeholder: i(e.enter_value, a),
65
66
  type: m.Input,
66
- validation: (n) => b(n) ? "" : e.error_amount_is_invalid,
67
- valueFormatter: (n) => b(n) ? N(n / 100) : n
67
+ validation: (n) => d(n) ? "" : e.error_amount_is_invalid,
68
+ valueFormatter: (n) => d(n) ? N(n / 100) : n
68
69
  });
69
70
  }
70
- return A(l) && (r.push({
71
+ return D(l) && (r.push({
71
72
  label: e.minimum_payment,
72
73
  name: "minimum_payment",
73
74
  placeholder: i(e.enter_value, e.minimum_payment),
74
75
  type: m.Currency,
75
- valueFormatter: (a) => _(a, "0,0.00")
76
+ valueFormatter: (a) => s(a, "0,0.00")
76
77
  }), l.payment_due_at ? r.push({
77
78
  label: e.next_payment,
78
79
  name: "payment_due_at",
@@ -88,53 +89,53 @@ const x = (l, e) => {
88
89
  type: m.Date,
89
90
  valueFormatter: (a) => i(
90
91
  e.day_of_every_month,
91
- C(a <= 31 ? a : new Date(a).getDate())
92
+ S(a <= 31 ? a : new Date(a).getDate())
92
93
  )
93
94
  })), g(l) && r.push({
94
95
  label: e.credit_limit,
95
96
  name: "credit_limit",
96
97
  placeholder: i(e.enter_value, e.credit_limit),
97
98
  type: m.Currency,
98
- valueFormatter: (a) => _(a, "0,0.00")
99
+ valueFormatter: (a) => s(a, "0,0.00")
99
100
  }), O(l) && r.push({
100
101
  label: e.original_balance,
101
102
  minAmount: 1,
102
103
  name: "original_balance",
103
104
  placeholder: i(e.enter_value, e.original_balance),
104
105
  type: m.Currency,
105
- valueFormatter: (a) => _(a, "0,0.00")
106
+ valueFormatter: (a) => s(a, "0,0.00")
106
107
  }), r;
107
- }, S = (l, e) => {
108
- let r = "", a = null, t = null, n = null, s = !1;
108
+ }, I = (l, e) => {
109
+ let r = "", a = null, t = null, n = null, _ = !1;
109
110
  switch (l.account_type) {
110
111
  case 1:
111
112
  case 2: {
112
- l.available_balance ? (r = e.available_balance, a = l.available_balance, t = l.available_balance ? e.current_balance : null, n = _(l.balance, "0,0.00"), s = !0) : (r = e.current_balance, a = l.balance);
113
+ l.available_balance ? (r = e.available_balance, a = l.available_balance, t = l.available_balance ? e.current_balance : null, n = s(l.balance, "0,0.00"), _ = !0) : (r = e.current_balance, a = l.balance);
113
114
  break;
114
115
  }
115
116
  default:
116
117
  if (r = e.current_balance, a = l.balance, l.minimum_payment && l.payment_due_at) {
117
- const c = typeof l.payment_due_at == "number" ? new Date(l.payment_due_at * 1e3) : l.payment_due_at;
118
+ const c = C(l.payment_due_at);
118
119
  t = /* @__PURE__ */ u(y, { component: "strong", variant: "caption", children: i(
119
120
  e.payment_due_on,
120
- _(l.minimum_payment, "0,0.00"),
121
+ s(l.minimum_payment, "0,0.00"),
121
122
  o(c, f.FULL_MONTH_DAY)
122
123
  ) });
123
- } else l.credit_limit && (t = e.available_credit, n = _(l.credit_limit - (l?.balance ?? 0), "0,0.00"));
124
+ } else l.credit_limit && (t = e.available_credit, n = s(l.credit_limit - (l?.balance ?? 0), "0,0.00"));
124
125
  }
125
126
  return {
126
127
  firstSubtitle: r,
127
128
  firstValue: a,
128
129
  secondSubtitle: t,
129
130
  secondValue: n,
130
- hasAvailableBalance: s
131
+ hasAvailableBalance: _
131
132
  };
132
- }, B = (l, e) => l.reduce((a, t) => {
133
- const s = S(t, e).firstValue || 0;
134
- return a + s;
133
+ }, Y = (l, e) => l.reduce((a, t) => {
134
+ const _ = I(t, e).firstValue || 0;
135
+ return a + _;
135
136
  }, 0);
136
137
  export {
137
- x as a,
138
- B as b,
139
- S as g
138
+ U as a,
139
+ Y as b,
140
+ I as g
140
141
  };
@@ -9,11 +9,11 @@ import _ from "@mui/material/ListItemText";
9
9
  import L from "@mui/material/styles/useTheme";
10
10
  import { InstitutionLogo as A, Text as o } from "@mxenabled/mxui";
11
11
  import { Error as B } from "@mxenabled/mx-icons";
12
- import { I as j } from "./IconBacking-B9oC6uL2.mjs";
13
- import { g as T } from "./AccountFields-BbPSfzru.mjs";
14
- import { u as $ } from "./useAccountDisplayName-DKwT1mWv.mjs";
15
- import { u as k } from "./hooks-BxkfR-Ff.mjs";
16
- import { C as c } from "./Account-BiB1F8lL.mjs";
12
+ import { I as j } from "./IconBacking-DgT8DCeh.mjs";
13
+ import { g as T } from "./AccountFields-nrrEXd46.mjs";
14
+ import { u as $ } from "./useAccountDisplayName-SrQA7K_6.mjs";
15
+ import { u as k } from "./hooks-HwStH7q_.mjs";
16
+ import { C as c } from "./Account-CMjOp7S2.mjs";
17
17
  import { f as w } from "./NumberFormatting-CyrvFgfd.mjs";
18
18
  const E = {
19
19
  gridRow: 1,
@@ -1,8 +1,8 @@
1
1
  import { makeAutoObservable as h, runInAction as a } from "mobx";
2
- import { i as g } from "./BudgetUtil-CLh4xtj4.mjs";
2
+ import { i as g } from "./BudgetUtil-Cwvpb7xl.mjs";
3
3
  import { A as d } from "./AccountApi-WEM2M9tg.mjs";
4
- import { d as p } from "./Accounts-o7ohkngR.mjs";
5
- import { A as s, d as u } from "./Account-BiB1F8lL.mjs";
4
+ import { d as p } from "./Accounts-DX3xJE97.mjs";
5
+ import { A as s, d as u } from "./Account-CMjOp7S2.mjs";
6
6
  class m {
7
7
  isLoading = !1;
8
8
  selectedAccount = {};
@@ -1,4 +1,4 @@
1
- import { A as e, C as u, E as p, c as y, M as d } from "./Account-BiB1F8lL.mjs";
1
+ import { A as e, C as u, E as p, c as y, M as d } from "./Account-CMjOp7S2.mjs";
2
2
  const m = (t) => t && (t.account_type === e.CREDIT_CARD || t.account_type === e.LOAN || t.account_type === e.MORTGAGE || t.account_type === e.LINE_OF_CREDIT || t.account_type === e.CHECKING_LINE_OF_CREDIT), I = (t) => t.is_manual || !t.guid, f = (t) => t.account_type === e.LINE_OF_CREDIT || t.account_type === e.CREDIT_CARD || t.account_type === e.CHECKING_LINE_OF_CREDIT, R = (t) => t.account_type === e.SAVINGS || t.account_type === e.CHECKING || t.account_type === e.LINE_OF_CREDIT || t.account_type === e.CREDIT_CARD || t.account_type === e.LOAN || t.account_type === e.MORTGAGE, A = (t) => t.account_type === e.LOAN || t.account_type === e.MORTGAGE, N = (t, n, s, _, a) => t.filter((i) => !(i.member_is_managed_by_user && _)).filter((i) => !(!i.member_is_managed_by_user && a)).sort(C).map((i) => {
3
3
  const r = n.find((c) => c.guid === i.institution_guid), o = s.find((c) => c.guid === i.member_guid);
4
4
  return E(i, r, o);
@@ -47,7 +47,7 @@ const A = (s, i) => {
47
47
  };
48
48
  };
49
49
  export {
50
- d as a,
51
- w as b,
50
+ w as a,
51
+ d as b,
52
52
  A as u
53
53
  };
@@ -6,7 +6,7 @@ import { addMonths as P } from "date-fns/addMonths";
6
6
  import { eachDayOfInterval as Y } from "date-fns/eachDayOfInterval";
7
7
  import { eachWeekOfInterval as Z } from "date-fns/eachWeekOfInterval";
8
8
  import { endOfMonth as q } from "date-fns/endOfMonth";
9
- import { format as L } from "date-fns/format";
9
+ import { format as z } from "date-fns/format";
10
10
  import { isBefore as J } from "date-fns/isBefore";
11
11
  import { isSameMonth as K } from "date-fns/isSameMonth";
12
12
  import { startOfMonth as Q } from "date-fns/startOfMonth";
@@ -14,7 +14,7 @@ import { startOfToday as I } from "date-fns/startOfToday";
14
14
  import { subMonths as U } from "date-fns/subMonths";
15
15
  import C from "@mui/material/Button";
16
16
  import V from "@mui/material/Paper";
17
- import { H2 as X, Text as z, H3 as tt, P as et } from "@mxenabled/mxui";
17
+ import { H2 as X, Text as D, H3 as tt, P as et } from "@mxenabled/mxui";
18
18
  import { ChevronLeft as nt, ChevronRight as ot, Icon as rt } from "@mxenabled/mx-icons";
19
19
  import { f as at, D as it } from "./DateFormats-CaOj_4eI.mjs";
20
20
  import { isSameDay as f } from "date-fns/isSameDay";
@@ -25,11 +25,11 @@ import dt from "@mui/material/DialogActions";
25
25
  import mt from "@mui/material/DialogContent";
26
26
  import ut from "@mui/material/IconButton";
27
27
  import gt from "@mui/material/InputAdornment";
28
- import E from "@mui/material/Stack";
28
+ import T from "@mui/material/Stack";
29
29
  import ft from "@mui/material/TextField";
30
30
  import { u as pt } from "./useScreenSize-CUcpY7aJ.mjs";
31
- import { m as ht } from "./hooks-BxkfR-Ff.mjs";
32
- import { b as T } from "./Category-CevNQ03n.mjs";
31
+ import { m as ht } from "./hooks-HwStH7q_.mjs";
32
+ import { b as $ } from "./Category-Ccoew_sA.mjs";
33
33
  import { b as j } from "./Localization-CkQ49EKr.mjs";
34
34
  import { f as O } from "./NumberFormatting-CyrvFgfd.mjs";
35
35
  const xt = ({ copy: t, date: n, onNextClick: e, onPreviousClick: o }) => {
@@ -77,14 +77,14 @@ const xt = ({ copy: t, date: n, onNextClick: e, onPreviousClick: o }) => {
77
77
  onClick: () => a(n),
78
78
  variant: u ? "contained" : "text",
79
79
  children: /* @__PURE__ */ r(
80
- z,
80
+ D,
81
81
  {
82
82
  className: `
83
83
  mx-cmn-calendar-day-text
84
84
  ${u ? "mx-cmn-day-selected" : ""}
85
85
  ${p ? "mx-cmn-today" : ""}`,
86
86
  variant: "body2",
87
- children: L(n, "d")
87
+ children: z(n, "d")
88
88
  }
89
89
  )
90
90
  }
@@ -138,7 +138,7 @@ const xt = ({ copy: t, date: n, onNextClick: e, onPreviousClick: o }) => {
138
138
  }
139
139
  }), vt = 340, B = 44;
140
140
  var kt = /* @__PURE__ */ ((t) => (t.None = "None", t.Single = "Single", t.Range = "Range", t))(kt || {});
141
- const Bt = ({
141
+ const ie = ({
142
142
  copy: t,
143
143
  beginDate: n = void 0,
144
144
  endDate: e = void 0,
@@ -147,17 +147,17 @@ const Bt = ({
147
147
  selectionType: s = "Single"
148
148
  /* Single */
149
149
  }) => {
150
- const d = wt(), [i, l] = k.useState(I), [m, u] = k.useState(n), [p, g] = k.useState(e);
150
+ const d = Bt(), [i, l] = k.useState(I), [m, u] = k.useState(n), [p, g] = k.useState(e);
151
151
  k.useEffect(() => {
152
152
  u(n), g(e), n && l(n);
153
153
  }, [n, e]);
154
154
  const v = k.useMemo(() => {
155
155
  const c = Z({ start: Q(i), end: q(i) }), y = [];
156
156
  for (let b = 0; b < c.length; b++) {
157
- const w = c[b], $ = Y({ start: w, end: G(w, 6) }), A = [];
158
- for (let M = 0; M < $.length; M++)
159
- A.push($[M]);
160
- y.push(A);
157
+ const w = c[b], A = Y({ start: w, end: G(w, 6) }), E = [];
158
+ for (let M = 0; M < A.length; M++)
159
+ E.push(A[M]);
160
+ y.push(E);
161
161
  }
162
162
  return y;
163
163
  }, [i]), _ = (c) => {
@@ -186,7 +186,7 @@ const Bt = ({
186
186
  onPreviousClick: x
187
187
  }
188
188
  ),
189
- /* @__PURE__ */ r("div", { className: "mx-cmn-calendar-header-row", children: v[0].map((c, y) => /* @__PURE__ */ r("div", { className: "mx-cmn-calendar-header-cell", children: /* @__PURE__ */ r(z, { bold: !0, variant: "body2", children: L(c, "EEEEE") }) }, y)) }),
189
+ /* @__PURE__ */ r("div", { className: "mx-cmn-calendar-header-row", children: v[0].map((c, y) => /* @__PURE__ */ r("div", { className: "mx-cmn-calendar-header-cell", children: /* @__PURE__ */ r(D, { bold: !0, variant: "body2", children: z(c, "EEEEE") }) }, y)) }),
190
190
  v.map((c, y) => /* @__PURE__ */ r("div", { className: "mx-cmn-calendar-week", children: c.map((b, w) => /* @__PURE__ */ r(
191
191
  bt,
192
192
  {
@@ -200,7 +200,7 @@ const Bt = ({
200
200
  )) }, `w-${y}`)),
201
201
  /* @__PURE__ */ r("div", { className: "mx-cmn-calendar-today-container", children: /* @__PURE__ */ r(C, { onClick: S, size: "small", variant: "text", children: t.today }) })
202
202
  ] }) });
203
- }, wt = () => R({
203
+ }, Bt = () => R({
204
204
  width: vt,
205
205
  "& .MuiPaper-root": {
206
206
  paddingLeft: 24,
@@ -241,7 +241,7 @@ const Bt = ({
241
241
  marginRight: "auto"
242
242
  }
243
243
  }
244
- }), ce = Bt, _t = ({
244
+ }), se = ({
245
245
  closeAriaLabel: t,
246
246
  content: n,
247
247
  inputLabel: e,
@@ -279,7 +279,7 @@ const Bt = ({
279
279
  },
280
280
  children: [
281
281
  /* @__PURE__ */ h(
282
- E,
282
+ T,
283
283
  {
284
284
  sx: {
285
285
  alignItems: "center",
@@ -305,7 +305,7 @@ const Bt = ({
305
305
  ]
306
306
  }
307
307
  ),
308
- /* @__PURE__ */ h(E, { sx: { gap: 24, px: 24 }, children: [
308
+ /* @__PURE__ */ h(T, { sx: { gap: 24, px: 24 }, children: [
309
309
  /* @__PURE__ */ r(et, { variant: "subtitle1", children: n }),
310
310
  e && /* @__PURE__ */ r(
311
311
  ft,
@@ -367,11 +367,11 @@ const Bt = ({
367
367
  ) })
368
368
  }
369
369
  );
370
- }, le = _t, W = (t, n) => t.find((e) => e.guid === n), St = (t, n) => t.find((e) => e.guid === n), Nt = (t, n) => {
370
+ }, W = (t, n) => t.find((e) => e.guid === n), wt = (t, n) => t.find((e) => e.guid === n), _t = (t, n) => {
371
371
  const e = t.find((o) => o.subCategories.find((a) => a.guid === n));
372
372
  if (e)
373
373
  return e.subCategories.find((o) => o.guid === n);
374
- }, de = (t, n) => {
374
+ }, ce = (t, n) => {
375
375
  const e = [];
376
376
  for (const o of n) {
377
377
  const a = W(t, o.category_guid);
@@ -392,10 +392,10 @@ const Bt = ({
392
392
  });
393
393
  }
394
394
  return e;
395
- }, me = (t, n) => {
395
+ }, le = (t, n) => {
396
396
  const e = t.find((o) => o.guid === n);
397
- return e ? e.guid === T.INCOME || e.parent_guid === T.INCOME : !1;
398
- }, ue = (t, n) => !!t.find((e) => e.feature_name === n)?.is_enabled, H = (t, n) => !t && !n ? 0 : !t && n ? 101 : n / t * 100, D = (t, n) => {
397
+ return e ? e.guid === $.INCOME || e.parent_guid === $.INCOME : !1;
398
+ }, de = (t, n) => !!t.find((e) => e.feature_name === n)?.is_enabled, H = (t, n) => !t && !n ? 0 : !t && n ? 101 : n / t * 100, F = (t, n) => {
399
399
  const e = {
400
400
  background: n.palette.success.main,
401
401
  description: t <= 100 ? n.palette.text.secondary : n.palette.error.main,
@@ -403,21 +403,21 @@ const Bt = ({
403
403
  mercury: n.palette.success.lighter
404
404
  };
405
405
  return t > 100 ? (e.background = n.palette.error.main, e.mercury = n.palette.error.lighter) : t > 80 && (e.background = n.palette.warning.main, e.text = n.palette.grey[900], e.mercury = n.palette.warning.lighter), e;
406
- }, ge = () => {
406
+ }, me = () => {
407
407
  const { detailedBudgets: t } = ht();
408
408
  return t.map((e) => {
409
409
  const o = e.transaction_total;
410
410
  return e.amount - o;
411
411
  }).reduce((e, o) => e + o, 0);
412
- }, fe = (t, n, e, o) => {
412
+ }, ue = (t, n, e, o) => {
413
413
  const a = [];
414
414
  for (const s of t) {
415
- const d = St(n, s.category_guid);
415
+ const d = wt(n, s.category_guid);
416
416
  if (!d) continue;
417
417
  const i = d.totalAmount, l = H(s.amount, i), m = s.amount - i;
418
418
  a.push({
419
419
  ...s,
420
- budgetColors: D(l, o),
420
+ budgetColors: F(l, o),
421
421
  category: d,
422
422
  description: j(
423
423
  m < 0 ? e.budget_remaining_over : e.budget_remaining_left,
@@ -429,14 +429,14 @@ const Bt = ({
429
429
  });
430
430
  }
431
431
  for (const s of t) {
432
- const d = Nt(n, s.category_guid);
432
+ const d = _t(n, s.category_guid);
433
433
  if (!d) continue;
434
434
  const i = d.currentAmount, l = a.find((p) => p.category_guid === d.parent_guid);
435
435
  if (!l) continue;
436
436
  const m = s.amount - i, u = H(s.amount, i);
437
437
  l && l.subBudgets.push({
438
438
  ...s,
439
- budgetColors: D(u, o),
439
+ budgetColors: F(u, o),
440
440
  category: d,
441
441
  description: j(
442
442
  m < 0 ? e.budget_remaining_over : e.budget_remaining_left,
@@ -448,11 +448,11 @@ const Bt = ({
448
448
  });
449
449
  }
450
450
  return a;
451
- }, F = (t, n) => t.find((e) => e.guid === n), pe = (t, n, e) => {
452
- const o = F(t, e);
451
+ }, L = (t, n) => t.find((e) => e.guid === n), ge = (t, n, e) => {
452
+ const o = L(t, e);
453
453
  if (o)
454
- return F(o.subBudgets, n);
455
- }, he = (t, n) => {
454
+ return L(o.subBudgets, n);
455
+ }, fe = (t, n) => {
456
456
  const e = Math.max(0, n - t), o = n > 0 ? Math.min(100, t / n * 100) : 0;
457
457
  let a = "success";
458
458
  return o >= 100 ? a = "error" : o >= 50 && (a = "warning"), {
@@ -462,18 +462,18 @@ const Bt = ({
462
462
  };
463
463
  };
464
464
  export {
465
- le as C,
466
- pe as a,
467
- fe as b,
468
- ce as c,
469
- kt as d,
470
- St as e,
471
- F as f,
465
+ ie as C,
466
+ ge as a,
467
+ ue as b,
468
+ kt as c,
469
+ se as d,
470
+ ce as e,
471
+ L as f,
472
472
  W as g,
473
- Nt as h,
474
- ue as i,
475
- de as j,
476
- me as k,
477
- he as l,
478
- ge as u
473
+ wt as h,
474
+ de as i,
475
+ _t as j,
476
+ le as k,
477
+ fe as l,
478
+ me as u
479
479
  };
@@ -1,26 +1,26 @@
1
1
  import { jsx as t, jsxs as m } from "react/jsx-runtime";
2
2
  import { useState as l } from "react";
3
3
  import p from "@mui/material/IconButton";
4
- import f from "@mui/material/Stack";
5
- import d from "@mui/material/Tooltip";
6
- import { Text as a, Icon as h } from "@mxenabled/mxui";
4
+ import d from "@mui/material/Stack";
5
+ import f from "@mui/material/Tooltip";
6
+ import { Icon as h, Text as a } from "@mxenabled/mxui";
7
7
  import { makeAutoObservable as c } from "mobx";
8
8
  import { addDays as u } from "date-fns/addDays";
9
9
  import { differenceInDays as x } from "date-fns/differenceInDays";
10
10
  import { endOfMonth as g } from "date-fns/endOfMonth";
11
11
  import { isBefore as S } from "date-fns/isBefore";
12
12
  import { startOfToday as s } from "date-fns/startOfToday";
13
- const I = ({
13
+ const _ = ({
14
14
  body: o,
15
15
  iconName: e = "info",
16
16
  title: n
17
17
  }) => {
18
18
  const [i, r] = l(!1);
19
19
  return /* @__PURE__ */ t(
20
- d,
20
+ f,
21
21
  {
22
22
  open: i,
23
- title: /* @__PURE__ */ m(f, { gap: 2, p: 12, sx: { textOverflow: "none" }, children: [
23
+ title: /* @__PURE__ */ m(d, { gap: 2, p: 12, sx: { textOverflow: "none" }, children: [
24
24
  /* @__PURE__ */ t(a, { bold: !0, variant: "body1", children: n }),
25
25
  /* @__PURE__ */ t(a, { sx: { whiteSpace: "unset" }, variant: "body2", children: o })
26
26
  ] }),
@@ -41,7 +41,7 @@ const I = ({
41
41
  )
42
42
  }
43
43
  );
44
- }, k = I;
44
+ };
45
45
  class b {
46
46
  // Cashflow is hard-coded to display 30 days starting from today
47
47
  dateRange = { start: s(), end: u(s(), 30) };
@@ -71,7 +71,7 @@ class b {
71
71
  };
72
72
  setSelectedCashAccounts = (e) => this.selectedCashAccounts = e;
73
73
  }
74
- class N {
74
+ class k {
75
75
  globalStore;
76
76
  uiStore;
77
77
  constructor(e) {
@@ -86,6 +86,6 @@ class N {
86
86
  };
87
87
  }
88
88
  export {
89
- N as C,
90
- k as I
89
+ k as C,
90
+ _ as I
91
91
  };
@@ -293,9 +293,9 @@ const A = {
293
293
  UNKNOWN: "help"
294
294
  };
295
295
  export {
296
- T as C,
296
+ E as C,
297
297
  e as P,
298
- E as a,
298
+ T as a,
299
299
  A as b,
300
300
  a as c
301
301
  };
@@ -2,7 +2,7 @@ import { jsx as t, jsxs as _ } from "react/jsx-runtime";
2
2
  import { observer as E } from "mobx-react-lite";
3
3
  import p from "react";
4
4
  import $ from "@mui/material/Stack";
5
- import { G as K, l as f, u as S, g as A, b as B } from "./hooks-BxkfR-Ff.mjs";
5
+ import { G as K, l as f, u as S, g as A, b as B } from "./hooks-HwStH7q_.mjs";
6
6
  import U from "@mui/material/List";
7
7
  import V from "@mui/material/Paper";
8
8
  import Y from "@mui/material/Divider";
@@ -16,14 +16,14 @@ import { Text as q, TextField as H, CategoryIcon as J } from "@mxenabled/mxui";
16
16
  import Q from "@mui/material/Collapse";
17
17
  import Z from "@mui/material/DialogContent";
18
18
  import { b as g } from "./Localization-CkQ49EKr.mjs";
19
- import { D as ee } from "./Dialog-Ck34yr-d.mjs";
19
+ import { D as ee } from "./Dialog-iLlBR8TG.mjs";
20
20
  import te from "@mui/material/Box";
21
21
  import oe from "@mui/material/Chip";
22
22
  import v from "@mui/material/IconButton";
23
23
  import { u as ae } from "./useAriaLive-MkYebyUR.mjs";
24
+ import { L as k } from "./Loader-CxeBwuPG.mjs";
24
25
  import { S as re } from "./SearchBox-CwDgvWVJ.mjs";
25
- import { L as k } from "./Loader-D3rjKx72.mjs";
26
- import { D as ne } from "./Drawer-Bbe4AMB1.mjs";
26
+ import { D as ne } from "./Drawer-XPaLYjiO.mjs";
27
27
  const b = () => {
28
28
  if (!p.useContext(K))
29
29
  throw new Error("useCategoryUiStore() must be used within the GlobalDataContext");
@@ -420,8 +420,8 @@ const se = ({
420
420
  ) : /* @__PURE__ */ t(k, {});
421
421
  }, Je = E(fe);
422
422
  export {
423
- De as C,
424
- Je as a,
425
- he as b,
423
+ he as C,
424
+ De as a,
425
+ Je as b,
426
426
  b as u
427
427
  };
@@ -4,8 +4,8 @@ import { subMonths as n } from "date-fns/subMonths";
4
4
  import { startOfMonth as y } from "date-fns/startOfMonth";
5
5
  import { endOfMonth as g } from "date-fns/endOfMonth";
6
6
  import { C as d } from "./CategoryApi-CogDFScz.mjs";
7
- import { a as u, g as C } from "./CategoryUtil-DKRCegQv.mjs";
8
- import { b as l, c as T } from "./Category-CevNQ03n.mjs";
7
+ import { a as u, g as C } from "./CategoryUtil-BJOHgYKS.mjs";
8
+ import { b as l, c as T } from "./Category-Ccoew_sA.mjs";
9
9
  class m {
10
10
  expandedGuid = null;
11
11
  selectedGuid = null;
@@ -3,7 +3,7 @@ import { startOfMonth as T } from "date-fns/startOfMonth";
3
3
  import { startOfToday as C } from "date-fns/startOfToday";
4
4
  import { subMonths as N } from "date-fns/subMonths";
5
5
  import { CategoryIconList as O } from "@mxenabled/mxui";
6
- import { C as b, a as D, b as E } from "./Category-CevNQ03n.mjs";
6
+ import { C as b, a as D, b as E } from "./Category-Ccoew_sA.mjs";
7
7
  import { f as R, D as v } from "./DateFormats-CaOj_4eI.mjs";
8
8
  const H = 3, f = 12, k = (t, o, e, r) => t.filter((n) => !n.parent_guid).map(
9
9
  (n) => p(
@@ -33,8 +33,8 @@ const H = 3, f = 12, k = (t, o, e, r) => t.filter((n) => !n.parent_guid).map(
33
33
  ...t,
34
34
  currentAmount: c,
35
35
  averageAmount: _(m),
36
- color: b[i],
37
- icon: D[i],
36
+ color: D[i],
37
+ icon: b[i],
38
38
  isTransfer: i === E.TRANSFER,
39
39
  monthlyAmounts: m,
40
40
  name: h,
@@ -5,7 +5,7 @@ import s from "@mui/material/CircularProgress";
5
5
  import m from "@mui/material/Stack";
6
6
  import { Text as a } from "@mxenabled/mxui";
7
7
  import { M as t } from "./Accounts-CseLC3lL.mjs";
8
- import { u as p } from "./hooks-BxkfR-Ff.mjs";
8
+ import { u as p } from "./hooks-HwStH7q_.mjs";
9
9
  const l = ({ status: r = t.Loading }) => {
10
10
  const { connect: n } = p();
11
11
  return /* @__PURE__ */ o(
@@ -3,10 +3,10 @@ import s from "react";
3
3
  import { observer as _ } from "mobx-react-lite";
4
4
  import g from "@mui/material/styles/useTheme";
5
5
  import { ConnectWidget as x } from "@mxenabled/web-widget-sdk";
6
- import { b as a, a as c } from "./Connect-eYIWqCEr.mjs";
6
+ import { b as a, a as c } from "./Connect-BRLh-69J.mjs";
7
7
  import { M as i } from "./Accounts-CseLC3lL.mjs";
8
- import { d as D, e as L, u as w } from "./hooks-BxkfR-Ff.mjs";
9
- import { D as y } from "./Drawer-Bbe4AMB1.mjs";
8
+ import { d as D, e as L, u as w } from "./hooks-HwStH7q_.mjs";
9
+ import { D as y } from "./Drawer-XPaLYjiO.mjs";
10
10
  const I = ({
11
11
  loadWidgetProps: l,
12
12
  onClose: m,