@mx-cartographer/experiences 7.0.23-alpha.al10 → 7.0.23-alpha.al11

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 (58) hide show
  1. package/dist/{Account-CVVDlNDC.mjs → Account-BW3-oYEs.mjs} +1 -1
  2. package/dist/{AccountDetailsContent-bQKVSCZF.mjs → AccountDetailsContent-UxSEMBo_.mjs} +8 -8
  3. package/dist/{AccountDetailsHeader-BGQAu0Xm.mjs → AccountDetailsHeader-Eb3WvBGm.mjs} +8 -8
  4. package/dist/{AccountFields-CC7kzfPK.mjs → AccountFields-CIz-r3gP.mjs} +2 -2
  5. package/dist/{AccountListItem-wgvQjLxW.mjs → AccountListItem-B-ZjJ4Gp.mjs} +3 -3
  6. package/dist/{AccountStore-DpglOysH.mjs → AccountStore-DCDmxODy.mjs} +5 -5
  7. package/dist/{Accounts-ByViymVi.mjs → Accounts-CA-nqAjT.mjs} +1 -1
  8. package/dist/{BudgetUtil-gzgNEDE7.mjs → BudgetUtil-CeSLAcsl.mjs} +1 -1
  9. package/dist/{CategorySelectorDrawer-LpZcwQPa.mjs → CategorySelectorDrawer-BJ9jlCyt.mjs} +4 -4
  10. package/dist/{ConnectDrawer-C2minBK_.mjs → ConnectDrawer-phFH6OHt.mjs} +1 -1
  11. package/dist/{ConnectionsDrawer-Cd4dZuWL.mjs → ConnectionsDrawer-ihxkAi1P.mjs} +2 -2
  12. package/dist/{CurrencyInput-Dz4r9Rfe.mjs → CurrencyInput-bEx2Mbd0.mjs} +1 -1
  13. package/dist/{DebtsStore-B51DTXVj.mjs → DebtsStore-VkyMADzd.mjs} +1 -1
  14. package/dist/ExportCsvAction-CbMfQ2Wa.mjs +24 -0
  15. package/dist/{GoalStore-DqQ2FMx5.mjs → GoalStore-eSOkI6uE.mjs} +2 -2
  16. package/dist/{Help-DVPbIxMM.mjs → Help-KAAMEubC.mjs} +1 -1
  17. package/dist/{LineChart-DLk-bww5.mjs → LineChart-BWWmmJxV.mjs} +1 -1
  18. package/dist/{ListItemAction-DE6S0N5o.mjs → ListItemAction-DNZZ5fSa.mjs} +1 -1
  19. package/dist/{ManageIncome-BokhnWOn.mjs → ManageIncome-DbsiKUoO.mjs} +4 -4
  20. package/dist/{MicroWidgetContainer-5YscP1xa.mjs → MicroWidgetContainer-Dxz8uBN9.mjs} +1 -1
  21. package/dist/{MiniWidgetContainer-BlsgwNew.mjs → MiniWidgetContainer-CTyjmE1h.mjs} +1 -1
  22. package/dist/{NetWorthStore-C0hQSRzt.mjs → NetWorthStore-B6xF9eGH.mjs} +2 -2
  23. package/dist/{NotificationSettings-CWx6H-2z.mjs → NotificationSettings-BJFyyZYE.mjs} +2 -2
  24. package/dist/{OriginalBalanceAction-BKsSQVnI.mjs → OriginalBalanceAction-DepsKiJz.mjs} +3 -3
  25. package/dist/{RecurringSettings-CICRt51C.mjs → RecurringSettings-Dj29piAQ.mjs} +3 -3
  26. package/dist/ResponsiveButton-DZFp78fJ.mjs +45 -0
  27. package/dist/{TransactionDetails-BXl0m15s.mjs → TransactionDetails-C-z3HGTT.mjs} +37 -37
  28. package/dist/{TransactionStore-BElBVYfk.mjs → TransactionStore-0tLtBEIC.mjs} +209 -248
  29. package/dist/TrendsStore-WrHxzdbQ.mjs +565 -0
  30. package/dist/{User-DtwqVm3K.mjs → User-Dq9Qj764.mjs} +1 -1
  31. package/dist/ViewMoreMicroCard-DFAY0tA8.mjs +1974 -0
  32. package/dist/{WidgetContainer-DK8aZO5l.mjs → WidgetContainer-CdBs9WOZ.mjs} +2 -2
  33. package/dist/accounts/index.es.js +12 -12
  34. package/dist/analytics/index.es.js +8 -8
  35. package/dist/budgets/index.es.js +10 -10
  36. package/dist/cashflow/index.es.js +7 -7
  37. package/dist/categories/index.es.js +1 -1
  38. package/dist/common/index.es.js +518 -577
  39. package/dist/dashboard/index.es.js +9 -9
  40. package/dist/debts/index.es.js +9 -9
  41. package/dist/{exportTransactionsToCSV-Cf5VRYVr.mjs → exportTransactionsToCSV-BDlt8u0n.mjs} +1 -1
  42. package/dist/finstrong/index.es.js +6 -6
  43. package/dist/goals/index.es.js +11 -11
  44. package/dist/help/index.es.js +3 -3
  45. package/dist/{hooks-DUeXom8C.mjs → hooks-DkUqN6JE.mjs} +13 -13
  46. package/dist/investments/index.es.js +3 -3
  47. package/dist/merchants/index.es.js +1 -1
  48. package/dist/microinsights/index.es.js +14 -1969
  49. package/dist/networth/index.es.js +7 -7
  50. package/dist/notifications/index.es.js +2 -2
  51. package/dist/recurringtransactions/index.es.js +8 -8
  52. package/dist/settings/index.es.js +24 -24
  53. package/dist/spending/index.es.js +21 -21
  54. package/dist/transactions/index.es.js +259 -270
  55. package/dist/trends/index.es.js +789 -413
  56. package/package.json +1 -1
  57. package/dist/TrendsStore-DRuzsVVE.mjs +0 -505
  58. package/dist/TrendsWidget-CRi8EO04.mjs +0 -6
@@ -1,68 +1,57 @@
1
- import { T as ba } from "../TransactionApi-DbbcjI2L.mjs";
2
- import { u as P, C as He, D as Pe, M as Ve, c as $e, T as We, a as Ge } from "../TransactionDetails-BXl0m15s.mjs";
3
- import { B as xa, d as Sa, b as wa } from "../TransactionDetails-BXl0m15s.mjs";
4
- import { O as Ue, T as M } from "../User-DtwqVm3K.mjs";
5
- import { R as Fe, S as ee, D as ze } from "../TransactionStore-BElBVYfk.mjs";
6
- import { T as va } from "../TransactionStore-BElBVYfk.mjs";
7
- import { e as re } from "../exportTransactionsToCSV-Cf5VRYVr.mjs";
8
- import { jsx as e, jsxs as _ } from "react/jsx-runtime";
9
- import { observer as b } from "mobx-react-lite";
10
- import { Icon as k, Text as f, MerchantLogo as Ke, TextField as te, P as je } from "@mxenabled/mxui";
11
- import { g as se, n as R, u as A, a as K, c as ie, j as qe, l as Xe, o as Ye } from "../hooks-DUeXom8C.mjs";
1
+ import { T as fa } from "../TransactionApi-DbbcjI2L.mjs";
2
+ import { u as B, C as Re, D as He, M as Be, c as Pe, T as $e, a as Ve } from "../TransactionDetails-C-z3HGTT.mjs";
3
+ import { B as ya, d as ba, b as Ta } from "../TransactionDetails-C-z3HGTT.mjs";
4
+ import { T as M } from "../User-Dq9Qj764.mjs";
5
+ import { O as Sa } from "../User-Dq9Qj764.mjs";
6
+ import { S as ee, D as We } from "../TransactionStore-0tLtBEIC.mjs";
7
+ import { T as wa } from "../TransactionStore-0tLtBEIC.mjs";
8
+ import { e as Ge } from "../exportTransactionsToCSV-BDlt8u0n.mjs";
9
+ import { E as va } from "../ExportCsvAction-CbMfQ2Wa.mjs";
10
+ import { jsxs as _, jsx as e } from "react/jsx-runtime";
12
11
  import u from "react";
13
- import Je from "@mui/material/Paper";
14
- import { DataGridPro as Qe } from "@mui/x-data-grid-pro";
15
- import S from "@mui/material/Box";
16
- import { useTheme as Ze } from "@mui/material/styles";
17
- import { fromUnixTime as et } from "date-fns/fromUnixTime";
18
- import { f as tt, D as at, a as ce } from "../Dialog-CWW597AF.mjs";
12
+ import { observer as S } from "mobx-react-lite";
13
+ import Ue from "@mui/material/Paper";
14
+ import { DataGridPro as Fe } from "@mui/x-data-grid-pro";
15
+ import A from "@mui/material/Box";
16
+ import { useTheme as ze } from "@mui/material/styles";
17
+ import { Text as C, Icon as H, MerchantLogo as Ke, TextField as te, P as qe } from "@mxenabled/mxui";
18
+ import { f as P, u as x, a as K, c as re, k as je, m as Xe, e as Ye, o as Je } from "../hooks-DkUqN6JE.mjs";
19
+ import { fromUnixTime as Qe } from "date-fns/fromUnixTime";
20
+ import { f as Ze, D as et, a as se } from "../Dialog-CWW597AF.mjs";
19
21
  import N from "@mui/material/Stack";
20
- import { f as le } from "../NumberFormatting-CtWHhyBX.mjs";
21
- import { L as j } from "../Loader-DUaFpDGv.mjs";
22
- import { endOfMonth as nt } from "date-fns/endOfMonth";
23
- import { getUnixTime as ot } from "date-fns/getUnixTime";
24
- import { startOfMonth as rt } from "date-fns/startOfMonth";
22
+ import { f as ie } from "../NumberFormatting-CtWHhyBX.mjs";
23
+ import { L as q } from "../Loader-DUaFpDGv.mjs";
24
+ import { endOfMonth as tt } from "date-fns/endOfMonth";
25
+ import { getUnixTime as at } from "date-fns/getUnixTime";
26
+ import { startOfMonth as nt } from "date-fns/startOfMonth";
25
27
  import { startOfToday as z } from "date-fns/startOfToday";
26
- import st from "@mui/material/styles/useTheme";
27
- import { j as it } from "../ConnectDrawer-C2minBK_.mjs";
28
- import ct from "@mui/material/Divider";
29
- import lt from "@mui/material/MenuItem";
30
- import dt from "@mui/material/RadioGroup";
31
- import { ExpandMore as ut } from "@mxenabled/mx-icons";
32
- import { C as mt } from "../CurrencyInput-Dz4r9Rfe.mjs";
33
- import { a as _t, u as pt } from "../CategorySelectorDrawer-LpZcwQPa.mjs";
28
+ import ot from "@mui/material/styles/useTheme";
29
+ import { j as rt } from "../ConnectDrawer-phFH6OHt.mjs";
30
+ import st from "@mui/material/Divider";
31
+ import it from "@mui/material/MenuItem";
32
+ import ct from "@mui/material/RadioGroup";
33
+ import { ExpandMore as lt } from "@mxenabled/mx-icons";
34
+ import { C as dt } from "../CurrencyInput-bEx2Mbd0.mjs";
35
+ import { a as ut, u as mt } from "../CategorySelectorDrawer-BJ9jlCyt.mjs";
34
36
  import { b as ae } from "../Localization-2MODESHW.mjs";
35
- import { A as x, W as gt } from "../WidgetContainer-DK8aZO5l.mjs";
36
- import { u as ht } from "../useScreenSize-B6JyS_Lj.mjs";
37
- import { S as Ct } from "../SearchBox-B2_zLv8-.mjs";
37
+ import { A as T, W as _t } from "../WidgetContainer-CdBs9WOZ.mjs";
38
+ import { u as pt } from "../useScreenSize-B6JyS_Lj.mjs";
39
+ import { S as gt } from "../SearchBox-B2_zLv8-.mjs";
38
40
  import { D as ne } from "../Drawer-kEE73B87.mjs";
39
- const ft = ({ filter: t }) => {
40
- const { onEvent: o } = se(), { tags: n, sortedTransactions: a } = R(), { transactions: s } = A(), c = () => {
41
- o(Ue.ON_TRANSACTION_EXPORT_CSV_CLICK), re(t ? a.filter(t) : a, n);
42
- };
43
- return /* @__PURE__ */ e("div", { className: "mx-txn-export-csv-action", children: /* @__PURE__ */ e(
44
- Fe,
45
- {
46
- icon: /* @__PURE__ */ e(k, { name: "open_in_new" }),
47
- label: s.export_csv_btn,
48
- onClick: c,
49
- tooltipText: s.export_csv_title
50
- }
51
- ) });
52
- }, Ca = b(ft), yt = (t) => /* @__PURE__ */ _(f, { tabIndex: t.tabIndex, variant: "Small", children: [
41
+ const ht = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small", children: [
53
42
  `${t.row.account}`,
54
43
  t.row.number && ` | ${t.row.number}`
55
- ] }), Tt = (t) => {
56
- const { associatedBeats: o } = R(), { showInsights: n } = P(), { amount: a, transaction_type: s } = t.row, c = o.find((h) => h.associated_transaction_guid === t.row.guid), d = s === M.CREDIT;
44
+ ] }), ft = (t) => {
45
+ const { associatedBeats: r } = P(), { showInsights: n } = B(), { amount: a, transaction_type: i } = t.row, l = r.find((h) => h.associated_transaction_guid === t.row.guid), d = i === M.CREDIT;
57
46
  return /* @__PURE__ */ _(N, { alignItems: "flex-end", tabIndex: t.tabIndex, children: [
58
- /* @__PURE__ */ _(f, { color: d ? "success.main" : "text.primary", variant: "Small", children: [
47
+ /* @__PURE__ */ _(C, { color: d ? "success.main" : "text.primary", variant: "Small", children: [
59
48
  d ? "+" : "",
60
- le(a, "0,0.00")
49
+ ie(a, "0,0.00")
61
50
  ] }),
62
- c && n && /* @__PURE__ */ e(f, { bold: !0, color: "primary.light", variant: "XSmall", children: c.short_title })
51
+ l && n && /* @__PURE__ */ e(C, { bold: !0, color: "primary.light", variant: "XSmall", children: l.short_title })
63
52
  ] });
64
- }, bt = (t) => {
65
- const { transactions: o } = A(), [n, a] = u.useState(!1);
53
+ }, Ct = (t) => {
54
+ const { transactions: r } = x(), [n, a] = u.useState(!1);
66
55
  return /* @__PURE__ */ _(
67
56
  N,
68
57
  {
@@ -74,30 +63,30 @@ const ft = ({ filter: t }) => {
74
63
  onMouseLeave: () => a(!1),
75
64
  width: "100%",
76
65
  children: [
77
- t.row.has_been_split && /* @__PURE__ */ e(k, { name: "call_split", size: 16 }),
78
- /* @__PURE__ */ e(f, { tabIndex: t.tabIndex, variant: "Small", children: t.row.has_been_split ? o.split_transaction_category_label : t.row.category }),
79
- !t.row.has_been_split && n && /* @__PURE__ */ e(k, { name: "edit", sx: { color: "action.active" } })
66
+ t.row.has_been_split && /* @__PURE__ */ e(H, { name: "call_split", size: 16 }),
67
+ /* @__PURE__ */ e(C, { tabIndex: t.tabIndex, variant: "Small", children: t.row.has_been_split ? r.split_transaction_category_label : t.row.category }),
68
+ !t.row.has_been_split && n && /* @__PURE__ */ e(H, { name: "edit", sx: { color: "action.active" } })
80
69
  ]
81
70
  }
82
71
  );
83
- }, At = b(bt), xt = (t) => /* @__PURE__ */ e(f, { tabIndex: t.tabIndex, variant: "Small", children: tt(et(t.row.date), at.MONTH_DAY) }), St = (t) => {
84
- const o = Ze(), { transactions: n } = A(), { is_flagged: a, is_hidden: s, has_been_viewed: c, parent_guid: d } = t.row, C = !c && !!!d;
72
+ }, yt = S(Ct), bt = (t) => /* @__PURE__ */ e(C, { tabIndex: t.tabIndex, variant: "Small", children: Ze(Qe(t.row.date), et.MONTH_DAY) }), Tt = (t) => {
73
+ const r = ze(), { transactions: n } = x(), { is_flagged: a, is_hidden: i, has_been_viewed: l, parent_guid: d } = t.row, f = !l && !!!d;
85
74
  return /* @__PURE__ */ _(
86
- S,
75
+ A,
87
76
  {
88
- "aria-label": s ? n.is_hidden : n.is_flagged,
77
+ "aria-label": i ? n.is_hidden : n.is_flagged,
89
78
  tabIndex: t.tabIndex,
90
79
  children: [
91
- a && /* @__PURE__ */ e(k, { fill: !0, name: "flag", size: 16, sx: { color: "warning.dark" } }),
92
- !a && s && /* @__PURE__ */ e(k, { name: "visibility_off", size: 16 }),
93
- C && /* @__PURE__ */ e(
80
+ a && /* @__PURE__ */ e(H, { fill: !0, name: "flag", size: 16, sx: { color: "warning.dark" } }),
81
+ !a && i && /* @__PURE__ */ e(H, { name: "visibility_off", size: 16 }),
82
+ f && /* @__PURE__ */ e(
94
83
  "svg",
95
84
  {
96
85
  "data-testid": "svg",
97
86
  style: {
98
87
  display: "inline-block",
99
88
  height: 16,
100
- fill: o.palette.primary.light,
89
+ fill: r.palette.primary.light,
101
90
  verticalAlign: "middle",
102
91
  width: 16
103
92
  },
@@ -108,7 +97,7 @@ const ft = ({ filter: t }) => {
108
97
  ]
109
98
  }
110
99
  );
111
- }, wt = b(St), O = (t) => /* @__PURE__ */ e(f, { fontWeight: 600, variant: "Small", children: t.colDef.headerName }), It = (t) => /* @__PURE__ */ _(N, { alignItems: "center", direction: "row", gap: 8, children: [
100
+ }, At = S(Tt), E = (t) => /* @__PURE__ */ e(C, { fontWeight: 600, variant: "Small", children: t.colDef.headerName }), St = (t) => /* @__PURE__ */ _(N, { alignItems: "center", direction: "row", gap: 8, children: [
112
101
  /* @__PURE__ */ e(
113
102
  Ke,
114
103
  {
@@ -116,24 +105,24 @@ const ft = ({ filter: t }) => {
116
105
  merchantGuid: t.row.merchant_guid || ""
117
106
  }
118
107
  ),
119
- /* @__PURE__ */ e(f, { tabIndex: t.tabIndex, variant: "Small", children: t.row.payee })
120
- ] }), vt = ({
108
+ /* @__PURE__ */ e(C, { tabIndex: t.tabIndex, variant: "Small", children: t.row.payee })
109
+ ] }), xt = ({
121
110
  height: t = "100dvh",
122
- onCategoryClick: o,
111
+ onCategoryClick: r,
123
112
  onRowClick: n
124
113
  }) => {
125
- const { transactions: a } = A(), { isCopyLoaded: s } = K(), { isLoading: c, sortedTransactions: d } = R(), { clearExpandedSplits: h, toggleSplit: C } = P();
114
+ const { transactions: a } = x(), { isCopyLoaded: i } = K(), { isLoading: l, sortedTransactions: d } = P(), { clearExpandedSplits: h, toggleSplit: f } = B();
126
115
  u.useEffect(() => () => h(), []);
127
116
  const m = u.useMemo(
128
- () => d.map((i) => ({
129
- id: i.guid,
117
+ () => d.map((s) => ({
118
+ id: s.guid,
130
119
  isHovering: !1,
131
- ...i
120
+ ...s
132
121
  })),
133
122
  [d]
134
- ), p = ({ row: { id: i, guid: w, has_been_split: E }, field: I }) => E ? C(i) : I === "category" ? o?.(w) : n?.(w);
135
- if (!s)
136
- return /* @__PURE__ */ e(j, {});
123
+ ), p = ({ row: { id: s, guid: w, has_been_split: O }, field: I }) => O ? f(s) : I === "category" ? r?.(w) : n?.(w);
124
+ if (!i)
125
+ return /* @__PURE__ */ e(q, {});
137
126
  const g = [
138
127
  {
139
128
  field: "flag",
@@ -141,15 +130,15 @@ const ft = ({ filter: t }) => {
141
130
  minWidth: 32,
142
131
  width: 32,
143
132
  sortable: !1,
144
- renderCell: (i) => /* @__PURE__ */ e(wt, { ...i }),
133
+ renderCell: (s) => /* @__PURE__ */ e(At, { ...s }),
145
134
  renderHeader: () => /* @__PURE__ */ e("span", { "aria-label": a.transaction_status, role: "presentation" })
146
135
  },
147
136
  {
148
137
  field: "date",
149
138
  headerName: a.date_title,
150
139
  width: 103,
151
- renderHeader: O,
152
- renderCell: (i) => i.row.parent_guid ? null : /* @__PURE__ */ e(xt, { ...i }),
140
+ renderHeader: E,
141
+ renderCell: (s) => s.row.parent_guid ? null : /* @__PURE__ */ e(bt, { ...s }),
153
142
  sortingOrder: ["desc", "asc"]
154
143
  },
155
144
  {
@@ -157,47 +146,47 @@ const ft = ({ filter: t }) => {
157
146
  field: "payee",
158
147
  headerName: a.payee_title,
159
148
  flex: 0.33,
160
- renderHeader: O,
161
- renderCell: It,
149
+ renderHeader: E,
150
+ renderCell: St,
162
151
  sortingOrder: ["asc", "desc"]
163
152
  },
164
153
  {
165
154
  field: "category",
166
155
  headerName: a.category_title,
167
156
  flex: 0.25,
168
- renderHeader: O,
169
- renderCell: (i) => /* @__PURE__ */ e(At, { ...i }),
157
+ renderHeader: E,
158
+ renderCell: (s) => /* @__PURE__ */ e(yt, { ...s }),
170
159
  sortingOrder: ["asc", "desc"]
171
160
  },
172
161
  {
173
162
  field: "account",
174
163
  headerName: a.account_title,
175
164
  flex: 0.33,
176
- renderHeader: O,
177
- renderCell: (i) => i.row.parent_guid ? null : /* @__PURE__ */ e(yt, { ...i }),
165
+ renderHeader: E,
166
+ renderCell: (s) => s.row.parent_guid ? null : /* @__PURE__ */ e(ht, { ...s }),
178
167
  sortingOrder: ["asc", "desc"]
179
168
  },
180
169
  {
181
170
  field: "amount",
182
171
  headerName: a.amount_title,
183
172
  flex: 0.25,
184
- renderHeader: O,
185
- renderCell: Tt,
173
+ renderHeader: E,
174
+ renderCell: ft,
186
175
  align: "right",
187
176
  headerAlign: "right",
188
177
  sortingOrder: ["asc", "desc"]
189
178
  }
190
179
  ];
191
- return /* @__PURE__ */ e(Je, { sx: { height: t, px: 24, width: "100%", boxShadow: "none" }, children: /* @__PURE__ */ e(
192
- Qe,
180
+ return /* @__PURE__ */ e(Ue, { sx: { height: t, px: 24, width: "100%", boxShadow: "none" }, children: /* @__PURE__ */ e(
181
+ Fe,
193
182
  {
194
183
  columns: g,
195
184
  disableColumnFilter: !0,
196
185
  disableColumnMenu: !0,
197
- getCellClassName: (i) => i.row.parent_guid ? "split-row" : "",
186
+ getCellClassName: (s) => s.row.parent_guid ? "split-row" : "",
198
187
  hideFooter: !0,
199
188
  initialState: { sorting: { sortModel: [{ field: "date", sort: "desc" }] } },
200
- loading: c,
189
+ loading: l,
201
190
  onCellClick: p,
202
191
  rows: m,
203
192
  slotProps: { baseIconButton: { color: "secondary", sx: { ml: 8 } } },
@@ -208,47 +197,47 @@ const ft = ({ filter: t }) => {
208
197
  }
209
198
  }
210
199
  ) });
211
- }, Dt = b(vt), Nt = ({ copy: t, isOpen: o, onClose: n, onPrimaryAction: a }) => {
212
- const { common: s, transactions: c } = A(), { isCopyLoaded: d } = K();
200
+ }, wt = S(xt), It = ({ copy: t, isOpen: r, onClose: n, onPrimaryAction: a }) => {
201
+ const { common: i, transactions: l } = x(), { isCopyLoaded: d } = K();
213
202
  return d ? /* @__PURE__ */ _(
214
- ce,
203
+ se,
215
204
  {
216
205
  copy: {
217
206
  title: t.title
218
207
  },
219
- isOpen: o,
208
+ isOpen: r,
220
209
  onClose: n,
221
210
  onPrimaryAction: a,
222
- primaryText: c.add_manual_account,
223
- secondaryText: s.cancel_button,
211
+ primaryText: l.add_manual_account,
212
+ secondaryText: i.cancel_button,
224
213
  children: [
225
- /* @__PURE__ */ e(f, { component: "p", sx: { marginBottom: "20px" }, truncate: !1, children: c.add_account_modal_message }),
226
- /* @__PURE__ */ e(f, { component: "p", truncate: !1, children: c.add_account_modal_cta })
214
+ /* @__PURE__ */ e(C, { component: "p", sx: { marginBottom: "20px" }, truncate: !1, children: l.add_account_modal_message }),
215
+ /* @__PURE__ */ e(C, { component: "p", truncate: !1, children: l.add_account_modal_cta })
227
216
  ]
228
217
  }
229
- ) : /* @__PURE__ */ e(j, {});
230
- }, Et = b(Nt), Ot = () => {
231
- const { visibleAccounts: t } = ie(), { common: o, transactions: n } = A(), { manualTransaction: a, setIsAmountValid: s, updateManualTransaction: c } = P(), [d, h] = u.useState(""), [C, m] = u.useState(""), p = u.useMemo(
232
- () => t.filter((r) => r.is_manual),
218
+ ) : /* @__PURE__ */ e(q, {});
219
+ }, vt = S(It), Dt = () => {
220
+ const { visibleAccounts: t } = re(), { common: r, transactions: n } = x(), { manualTransaction: a, setIsAmountValid: i, updateManualTransaction: l } = B(), [d, h] = u.useState(""), [f, m] = u.useState(""), p = u.useMemo(
221
+ () => t.filter((o) => o.is_manual),
233
222
  [t]
234
- ).map((r) => ({
235
- label: `${r.name} | ${le(r.balance, "0,0.00")}`,
236
- value: r.guid
223
+ ).map((o) => ({
224
+ label: `${o.name} | ${ie(o.balance, "0,0.00")}`,
225
+ value: o.guid
237
226
  })), g = {
238
- error_amount_is_invalid: o.currency_input.error_amount_is_invalid,
239
- error_amount_must_be_equal_to: o.currency_input.error_amount_must_be_equal_to,
240
- error_amount_must_be_less_than_or_equal_to: o.currency_input.error_amount_must_be_less_than_or_equal_to,
241
- enter_amount: o.currency_input.enter_amount
242
- }, i = (r) => {
243
- h(r), c({ ...a, amount: Number(r) });
244
- }, w = (r, V) => {
245
- c({ ...a, transaction_type: Number(V) });
246
- }, E = (r) => {
247
- m(r), c({ ...a, payee: r, description: r });
248
- }, I = (r) => {
249
- c({ ...a, account_guid: r });
227
+ error_amount_is_invalid: r.currency_input.error_amount_is_invalid,
228
+ error_amount_must_be_equal_to: r.currency_input.error_amount_must_be_equal_to,
229
+ error_amount_must_be_less_than_or_equal_to: r.currency_input.error_amount_must_be_less_than_or_equal_to,
230
+ enter_amount: r.currency_input.enter_amount
231
+ }, s = (o) => {
232
+ h(o), l({ ...a, amount: Number(o) });
233
+ }, w = (o, $) => {
234
+ l({ ...a, transaction_type: Number($) });
235
+ }, O = (o) => {
236
+ m(o), l({ ...a, payee: o, description: o });
237
+ }, I = (o) => {
238
+ l({ ...a, account_guid: o });
250
239
  };
251
- return /* @__PURE__ */ _(S, { className: "mx-txn-manual-transaction-details", children: [
240
+ return /* @__PURE__ */ _(A, { className: "mx-txn-manual-transaction-details", children: [
252
241
  /* @__PURE__ */ _(N, { gap: 40, mx: 24, my: 32, children: [
253
242
  /* @__PURE__ */ _(
254
243
  N,
@@ -257,7 +246,7 @@ const ft = ({ filter: t }) => {
257
246
  sx: { flexDirection: { xs: "column", sm: "row" }, gap: { xs: 40, sm: 8 } },
258
247
  children: [
259
248
  /* @__PURE__ */ e(
260
- mt,
249
+ dt,
261
250
  {
262
251
  allowDecimals: !0,
263
252
  amount: d,
@@ -267,13 +256,13 @@ const ft = ({ filter: t }) => {
267
256
  noValidate: !0
268
257
  },
269
258
  label: n.amount_title,
270
- setAmount: i,
271
- setHasValidInput: s,
259
+ setAmount: s,
260
+ setHasValidInput: i,
272
261
  sx: { bgcolor: "background.paper" },
273
262
  type: "number"
274
263
  }
275
264
  ),
276
- /* @__PURE__ */ e(dt, { name: "TransactionType", onChange: w, row: !0, children: /* @__PURE__ */ _(N, { alignItems: "center", direction: "row", children: [
265
+ /* @__PURE__ */ e(ct, { name: "TransactionType", onChange: w, row: !0, children: /* @__PURE__ */ _(N, { alignItems: "center", direction: "row", children: [
277
266
  /* @__PURE__ */ e(
278
267
  ee,
279
268
  {
@@ -302,223 +291,223 @@ const ft = ({ filter: t }) => {
302
291
  {
303
292
  label: n.payee_title,
304
293
  name: "payee",
305
- onChange: (r) => E(r.target.value),
294
+ onChange: (o) => O(o.target.value),
306
295
  sx: { bgcolor: "background.paper" },
307
- value: C
296
+ value: f
308
297
  }
309
298
  ),
310
299
  /* @__PURE__ */ e(
311
300
  te,
312
301
  {
313
302
  InputLabelProps: { shrink: !0 },
314
- SelectProps: { defaultValue: -1, IconComponent: ut },
303
+ SelectProps: { defaultValue: -1, IconComponent: lt },
315
304
  label: n.manual_transaction_select_an_account,
316
- onChange: (r) => I(r.target.value),
305
+ onChange: (o) => I(o.target.value),
317
306
  placeholder: n.manual_transaction_select,
318
307
  select: !0,
319
308
  sx: { bgcolor: "background.paper" },
320
- children: p.map((r) => /* @__PURE__ */ e(lt, { value: r.value, children: r.label }, r.value))
309
+ children: p.map((o) => /* @__PURE__ */ e(it, { value: o.value, children: o.label }, o.value))
321
310
  }
322
311
  )
323
312
  ] }),
324
- /* @__PURE__ */ e(ct, { light: !0 }),
325
- /* @__PURE__ */ _(S, { bgcolor: "background.paper", children: [
313
+ /* @__PURE__ */ e(st, { light: !0 }),
314
+ /* @__PURE__ */ _(A, { bgcolor: "background.paper", children: [
315
+ /* @__PURE__ */ e(Re, { transaction: a }),
326
316
  /* @__PURE__ */ e(He, { transaction: a }),
327
- /* @__PURE__ */ e(Pe, { transaction: a }),
328
- /* @__PURE__ */ e(Ve, { transaction: a }),
329
- /* @__PURE__ */ e($e, { transaction: a })
317
+ /* @__PURE__ */ e(Be, { transaction: a }),
318
+ /* @__PURE__ */ e(Pe, { transaction: a })
330
319
  ] })
331
320
  ] });
332
- }, Mt = b(Ot), kt = ({ onClose: t, transaction: o }) => {
333
- const { addOrUpdateTransactionRule: n, updateTransaction: a } = R(), { transactions: s } = A(), { categories: c } = qe(), [d, h] = u.useState(""), C = u.useMemo(
334
- () => c.find((p) => p.guid === d),
321
+ }, Nt = S(Dt), Ot = ({ onClose: t, transaction: r }) => {
322
+ const { addOrUpdateTransactionRule: n, updateTransaction: a } = P(), { transactions: i } = x(), { categories: l } = je(), [d, h] = u.useState(""), f = u.useMemo(
323
+ () => l.find((p) => p.guid === d),
335
324
  [d]
336
325
  ), m = async (p) => {
337
- await a({ ...o, category_guid: d }), p && await n(d, o), h(""), t();
326
+ await a({ ...r, category_guid: d }), p && await n(d, r), h(""), t();
338
327
  };
339
- return /* @__PURE__ */ _(S, { className: "mx-txn-edit-category-action", children: [
328
+ return /* @__PURE__ */ _(A, { className: "mx-txn-edit-category-action", children: [
340
329
  /* @__PURE__ */ e(
341
- _t,
330
+ ut,
342
331
  {
343
- initialSelected: o.category_guid,
332
+ initialSelected: r.category_guid,
344
333
  onClose: t,
345
334
  onSelect: (p) => h(p),
346
- showDrawer: !!o,
347
- title: s.actions_select_a_category
335
+ showDrawer: !!r,
336
+ title: i.actions_select_a_category
348
337
  }
349
338
  ),
350
339
  /* @__PURE__ */ e(
351
- ce,
340
+ se,
352
341
  {
353
342
  copy: {
354
343
  title: ae(
355
- s.actions_apply_to_all_transaction_types,
356
- o.description
344
+ i.actions_apply_to_all_transaction_types,
345
+ r.description
357
346
  )
358
347
  },
359
348
  isOpen: !!d,
360
349
  onClose: () => m(!1),
361
350
  onPrimaryAction: () => m(!0),
362
351
  onSecondaryAction: () => m(!1),
363
- primaryText: s.actions_apply_to_all,
364
- secondaryText: s.actions_this_time_only,
365
- children: /* @__PURE__ */ e(je, { variant: "Paragraph", children: ae(
366
- s.actions_all_past_and_future,
367
- o.description,
368
- C?.name
352
+ primaryText: i.actions_apply_to_all,
353
+ secondaryText: i.actions_this_time_only,
354
+ children: /* @__PURE__ */ e(qe, { variant: "Paragraph", children: ae(
355
+ i.actions_all_past_and_future,
356
+ r.description,
357
+ f?.name
369
358
  ) })
370
359
  }
371
360
  )
372
361
  ] });
373
- }, Rt = b(kt), oe = 120, Lt = ({
362
+ }, Et = S(Ot), oe = 120, Mt = ({
374
363
  onBackClick: t,
375
- height: o = "100dvh",
364
+ height: r = "100dvh",
376
365
  showInsights: n = !1,
377
366
  sx: a = {}
378
367
  }) => {
379
- const { visibleAccounts: s, refreshAccounts: c } = ie(), { is_mobile_webview: d, clientConfig: h } = Xe(), { setSearchValue: C } = pt(), { onEvent: m } = se(), { common: p, transactions: g } = A(), {
380
- displayedDateRange: i,
368
+ const { visibleAccounts: i, refreshAccounts: l } = re(), { is_mobile_webview: d, clientConfig: h } = Xe(), { setSearchValue: f } = mt(), { onEvent: m } = Ye(), { common: p, transactions: g } = x(), {
369
+ displayedDateRange: s,
381
370
  isCopyLoaded: w,
382
- isInitialized: E,
371
+ isInitialized: O,
383
372
  selectedAccountGuids: I,
384
- setDisplayedDate: r,
385
- setSelectedAccounts: V
386
- } = K(), { isDesktop: de, isTablet: ue } = ht(), L = st(), {
387
- addTransaction: me,
388
- filter: q,
389
- loadAssociatedBeats: _e,
390
- setFilter: $,
391
- sortedTransactionsWithSplits: pe,
392
- tags: ge,
393
- transactions: he,
394
- updateTransaction: Ce
395
- } = R(), {
396
- clearExpandedSplits: fe,
397
- isAmountValid: ye,
398
- manualTransaction: B,
399
- searchValue: Te,
400
- setSearchValue: be,
401
- setShowInsights: Ae,
402
- updateManualTransaction: xe
403
- } = P(), { userProfile: Se } = Ye(), [W, y] = u.useState(""), [X, H] = u.useState(""), [we, G] = u.useState(!1), [Ie, Y] = u.useState(!1), [U, ve] = u.useState(!1), v = h?.transactions?.selected_account_guid;
373
+ setDisplayedDate: o,
374
+ setSelectedAccounts: $
375
+ } = K(), { isDesktop: ce, isTablet: le } = pt(), k = ot(), {
376
+ addTransaction: de,
377
+ filter: j,
378
+ loadAssociatedBeats: ue,
379
+ setFilter: V,
380
+ sortedTransactionsWithSplits: me,
381
+ tags: _e,
382
+ transactions: pe,
383
+ updateTransaction: ge
384
+ } = P(), {
385
+ clearExpandedSplits: he,
386
+ isAmountValid: fe,
387
+ manualTransaction: L,
388
+ searchValue: Ce,
389
+ setSearchValue: ye,
390
+ setShowInsights: be,
391
+ updateManualTransaction: Te
392
+ } = B(), { userProfile: Ae } = Je(), [W, y] = u.useState(""), [X, R] = u.useState(""), [Se, G] = u.useState(!1), [xe, Y] = u.useState(!1), [U, we] = u.useState(!1), v = h?.transactions?.selected_account_guid;
404
393
  u.useEffect(() => {
405
- const l = v ? [{ guid: v }] : s.filter((D) => !D.is_hidden), Q = rt(z()), Z = nt(z());
406
- v || V(l), r(Q, Z), $({
407
- accounts: l.map((D) => D.guid),
394
+ const c = v ? [{ guid: v }] : i.filter((D) => !D.is_hidden), Q = nt(z()), Z = tt(z());
395
+ v || $(c), o(Q, Z), V({
396
+ accounts: c.map((D) => D.guid),
408
397
  custom: (D) => !D.accountIsClosed && !D.accountIsHidden,
409
398
  dateRange: { start: Q, end: Z }
410
- }), ve(!0), m(x.TRANSACTIONS_VIEW);
411
- }, [s]), u.useEffect(() => {
412
- U && ($({
413
- ...q,
399
+ }), we(!0), m(T.TRANSACTIONS_VIEW);
400
+ }, [i]), u.useEffect(() => {
401
+ U && (V({
402
+ ...j,
414
403
  accounts: v ? [v] : I,
415
- dateRange: { start: i.start, end: i.end }
416
- }), _e(i.start).finally());
417
- }, [U, i, I]), u.useEffect(() => {
418
- Ae(n);
404
+ dateRange: { start: s.start, end: s.end }
405
+ }), ue(s.start).finally());
406
+ }, [U, s, I]), u.useEffect(() => {
407
+ be(n);
419
408
  }, [n]);
420
- const De = u.useMemo(
421
- () => s.filter((l) => l.is_manual),
422
- [s]
423
- ), T = X ? he.find((l) => l.guid === X) : void 0, J = ye && !!B.payee && !!B.account_guid && !!B.category_guid, Ne = (l) => {
424
- fe(), r(l[0], l[1]);
425
- }, Ee = (l) => {
426
- be(l), $({
427
- ...q,
428
- searchTerm: l
429
- }), m(x.TRANSACTIONS_CLICK_SEARCH, { search_term: l });
409
+ const Ie = u.useMemo(
410
+ () => i.filter((c) => c.is_manual),
411
+ [i]
412
+ ), b = X ? pe.find((c) => c.guid === X) : void 0, J = fe && !!L.payee && !!L.account_guid && !!L.category_guid, ve = (c) => {
413
+ he(), o(c[0], c[1]);
414
+ }, De = (c) => {
415
+ ye(c), V({
416
+ ...j,
417
+ searchTerm: c
418
+ }), m(T.TRANSACTIONS_CLICK_SEARCH, { search_term: c });
419
+ }, Ne = () => {
420
+ Ge(me, _e), m(T.TRANSACTIONS_CLICK_EXPORT);
430
421
  }, Oe = () => {
431
- re(pe, ge), m(x.TRANSACTIONS_CLICK_EXPORT);
432
- }, Me = () => {
433
- De.length > 0 ? (xe({
434
- ...ze,
435
- date: ot(z()),
436
- user_guid: Se?.user_guid || ""
422
+ Ie.length > 0 ? (Te({
423
+ ...We,
424
+ date: at(z()),
425
+ user_guid: Ae?.user_guid || ""
437
426
  }), y(
438
427
  "addTransaction"
439
428
  /* AddTransaction */
440
- ), m(x.TRANSACTIONS_CLICK_ADD)) : (G(!0), m(x.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
441
- }, ke = async () => {
442
- J && await me(B), y("");
443
- }, Re = () => {
429
+ ), m(T.TRANSACTIONS_CLICK_ADD)) : (G(!0), m(T.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
430
+ }, Ee = async () => {
431
+ J && await de(L), y("");
432
+ }, Me = () => {
444
433
  G(!1), Y(!0);
434
+ }, ke = async () => {
435
+ Y(!1), await l();
445
436
  }, Le = async () => {
446
- Y(!1), await c();
447
- }, Be = async () => {
448
- T && !T.has_been_viewed && await Ce({ ...T, has_been_viewed: !0 }), y("");
437
+ b && !b.has_been_viewed && await ge({ ...b, has_been_viewed: !0 }), y("");
449
438
  };
450
- if (!w || !E || !U)
451
- return /* @__PURE__ */ e(j, {});
439
+ if (!w || !O || !U)
440
+ return /* @__PURE__ */ e(q, {});
452
441
  const F = [];
453
- return !d && (de || ue) && F.push({
442
+ return !d && (ce || le) && F.push({
454
443
  iconName: "open_in_new",
455
444
  label: g.export_csv_btn,
456
- onClick: Oe
445
+ onClick: Ne
457
446
  }), F.push({
458
447
  iconName: "add",
459
448
  label: g.add_transaction_btn,
460
- onClick: Me
449
+ onClick: Oe
461
450
  }), /* @__PURE__ */ _(
462
- gt,
451
+ _t,
463
452
  {
464
- ...!v && { accountOptions: s },
453
+ ...!v && { accountOptions: i },
465
454
  actions: F,
466
455
  calendarActions: {
467
- onRangeChanged: Ne
456
+ onRangeChanged: ve
468
457
  },
469
- onAccountsFilterClick: () => m(x.ACCOUNTS_CLICK_FILTER),
458
+ onAccountsFilterClick: () => m(T.ACCOUNTS_CLICK_FILTER),
470
459
  onBackClick: t,
471
460
  sx: a,
472
461
  title: g.transactions_title,
473
462
  children: [
474
- /* @__PURE__ */ e(S, { mt: 16, children: /* @__PURE__ */ e(
475
- Ct,
463
+ /* @__PURE__ */ e(A, { mt: 16, children: /* @__PURE__ */ e(
464
+ gt,
476
465
  {
477
- onChange: Ee,
466
+ onChange: De,
478
467
  placeholder: g.action_bar_search_placeholder,
479
- searchValue: Te
468
+ searchValue: Ce
480
469
  }
481
470
  ) }),
482
471
  /* @__PURE__ */ e(
483
- S,
472
+ A,
484
473
  {
485
474
  sx: {
486
- [L.breakpoints.down("md")]: { display: "none" },
487
- [L.breakpoints.up("md")]: { display: "block" }
475
+ [k.breakpoints.down("md")]: { display: "none" },
476
+ [k.breakpoints.up("md")]: { display: "block" }
488
477
  },
489
478
  children: /* @__PURE__ */ e(
490
- Dt,
479
+ wt,
491
480
  {
492
- height: `calc(${o} - ${oe}px)`,
493
- onCategoryClick: (l) => {
494
- H(l), y(
481
+ height: `calc(${r} - ${oe}px)`,
482
+ onCategoryClick: (c) => {
483
+ R(c), y(
495
484
  "category"
496
485
  /* Category */
497
486
  );
498
487
  },
499
- onRowClick: (l) => {
500
- H(l), y(
488
+ onRowClick: (c) => {
489
+ R(c), y(
501
490
  "transaction"
502
491
  /* Transaction */
503
- ), m(x.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: l });
492
+ ), m(T.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: c });
504
493
  }
505
494
  }
506
495
  )
507
496
  }
508
497
  ),
509
498
  /* @__PURE__ */ e(
510
- S,
499
+ A,
511
500
  {
512
501
  sx: {
513
- [L.breakpoints.down("md")]: { display: "block" },
514
- [L.breakpoints.up("md")]: { display: "none" }
502
+ [k.breakpoints.down("md")]: { display: "block" },
503
+ [k.breakpoints.up("md")]: { display: "none" }
515
504
  },
516
505
  children: /* @__PURE__ */ e(
517
- We,
506
+ $e,
518
507
  {
519
- height: `calc(${o} - ${oe}px)`,
520
- onClick: (l) => {
521
- H(l), y(
508
+ height: `calc(${r} - ${oe}px)`,
509
+ onClick: (c) => {
510
+ R(c), y(
522
511
  "transaction"
523
512
  /* Transaction */
524
513
  );
@@ -533,19 +522,19 @@ const ft = ({ filter: t }) => {
533
522
  ne,
534
523
  {
535
524
  ariaLabelClose: p.close_aria,
536
- isOpen: W === "transaction" && !!T,
537
- onClose: Be,
525
+ isOpen: W === "transaction" && !!b,
526
+ onClose: Le,
538
527
  title: g.details_title,
539
- children: T && /* @__PURE__ */ e(Ge, { transaction: T })
528
+ children: b && /* @__PURE__ */ e(Ve, { transaction: b })
540
529
  }
541
530
  ),
542
- T && W === "category" && /* @__PURE__ */ e(
543
- Rt,
531
+ b && W === "category" && /* @__PURE__ */ e(
532
+ Et,
544
533
  {
545
534
  onClose: () => {
546
- C(""), y(""), H("");
535
+ f(""), y(""), R("");
547
536
  },
548
- transaction: T
537
+ transaction: b
549
538
  }
550
539
  ),
551
540
  /* @__PURE__ */ e(
@@ -555,47 +544,47 @@ const ft = ({ filter: t }) => {
555
544
  isOpen: W === "addTransaction",
556
545
  isPrimaryDisabled: !J,
557
546
  onClose: () => y(""),
558
- onPrimaryAction: ke,
547
+ onPrimaryAction: Ee,
559
548
  title: g.add_transaction_title,
560
- children: /* @__PURE__ */ e(Mt, {})
549
+ children: /* @__PURE__ */ e(Nt, {})
561
550
  }
562
551
  ),
563
552
  /* @__PURE__ */ e(
564
- Et,
553
+ vt,
565
554
  {
566
555
  copy: { title: g.add_manual_account },
567
- isOpen: we,
556
+ isOpen: Se,
568
557
  onClose: () => {
569
558
  G(!1);
570
559
  },
571
- onPrimaryAction: Re
560
+ onPrimaryAction: Me
572
561
  }
573
562
  ),
574
563
  /* @__PURE__ */ e(
575
- it,
564
+ rt,
576
565
  {
577
- onClose: Le,
578
- showConnectWidget: Ie,
566
+ onClose: ke,
567
+ showConnectWidget: xe,
579
568
  title: g.add_manual_account
580
569
  }
581
570
  )
582
571
  ]
583
572
  }
584
573
  );
585
- }, fa = b(Lt);
574
+ }, pa = S(Mt);
586
575
  export {
587
- Et as AddAccountModal,
588
- xa as BottomActions,
589
- Ca as ExportCsvAction,
590
- Ue as TRANSACTION_EVENTS,
591
- Sa as TopActions,
592
- ba as TransactionApi,
593
- Ge as TransactionDetails,
594
- We as TransactionList,
595
- wa as TransactionRow,
596
- va as TransactionStore,
597
- Dt as TransactionTable,
598
- fa as TransactionWidget,
599
- re as exportTransactionsToCSV,
600
- P as useTransactionsUiStore
576
+ vt as AddAccountModal,
577
+ ya as BottomActions,
578
+ va as ExportCsvAction,
579
+ Sa as TRANSACTION_EVENTS,
580
+ ba as TopActions,
581
+ fa as TransactionApi,
582
+ Ve as TransactionDetails,
583
+ $e as TransactionList,
584
+ Ta as TransactionRow,
585
+ wa as TransactionStore,
586
+ wt as TransactionTable,
587
+ pa as TransactionWidget,
588
+ Ge as exportTransactionsToCSV,
589
+ B as useTransactionsUiStore
601
590
  };