@mx-cartographer/experiences 8.0.10 → 8.0.11

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