@mx-cartographer/experiences 7.12.6 → 7.12.7

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.
@@ -1,12 +1,12 @@
1
1
  import { T as Sa } from "../TransactionApi-Ck5Ua-7F.mjs";
2
- import { C as Le, D as Me, M as Re, a as He, T as Pe } from "../TransactionDetails-DWZuZgBw.mjs";
3
- import { B as Da, b as Ia } from "../TransactionDetails-DWZuZgBw.mjs";
2
+ import { C as Me, D as Le, M as Re, a as He, T as Pe } from "../TransactionDetails-DmDYs0lX.mjs";
3
+ import { B as Da, b as Ia } from "../TransactionDetails-DmDYs0lX.mjs";
4
4
  import { T as E } from "../Transaction-B_2AG36b.mjs";
5
5
  import { O as Na } from "../Transaction-B_2AG36b.mjs";
6
6
  import { S as Z, D as Be } from "../TransactionStore-DIbZkSVI.mjs";
7
- import { T as Oa } from "../TransactionStore-DIbZkSVI.mjs";
8
- import { u as R, T as $e } from "../StatusIndicator-Bo80rdKq.mjs";
9
- import { a as La } from "../StatusIndicator-Bo80rdKq.mjs";
7
+ import { T as ka } from "../TransactionStore-DIbZkSVI.mjs";
8
+ import { u as R, T as $e } from "../StatusIndicator-BnYO7yL3.mjs";
9
+ import { a as Ma } from "../StatusIndicator-BnYO7yL3.mjs";
10
10
  import { e as Ve } from "../exportTransactionsToCSV-EwhjfqsJ.mjs";
11
11
  import { E as Ra } from "../ExportCsvAction-Bg6gO_Cz.mjs";
12
12
  import { jsxs as _, jsx as e } from "react/jsx-runtime";
@@ -17,7 +17,7 @@ import { DataGridPro as Ge } from "@mui/x-data-grid-pro";
17
17
  import { h as H, u as D, b as K, d as ne, l as Fe, a as Ue, g as Ke, o as ze } from "../hooks-BxkfR-Ff.mjs";
18
18
  import x from "@mui/material/Box";
19
19
  import { useTheme as qe } from "@mui/material/styles";
20
- import { Text as y, Icon as M, MerchantLogo as je, TextField as ee, P as Xe } from "@mxenabled/mxui";
20
+ import { Text as C, Icon as L, MerchantLogo as je, TextField as ee, P as Xe } from "@mxenabled/mxui";
21
21
  import { fromUnixTime as Ye } from "date-fns/fromUnixTime";
22
22
  import { f as Je, D as Qe } from "../DateFormats-BMpMrZpW.mjs";
23
23
  import S from "@mui/material/Stack";
@@ -45,20 +45,20 @@ import { W as gt } from "../WidgetContainer-B0ncgABX.mjs";
45
45
  import { A } from "../Analytics-BYItVAe-.mjs";
46
46
  import { S as ht } from "../SearchBox-B7km148n.mjs";
47
47
  import { D as te } from "../Drawer-DV4NTsFg.mjs";
48
- const ft = (t) => /* @__PURE__ */ _(y, { tabIndex: t.tabIndex, variant: "Small", children: [
48
+ const ft = (t) => /* @__PURE__ */ _(C, { tabIndex: t.tabIndex, variant: "Small", children: [
49
49
  `${t.row.account}`,
50
50
  t.row.number && ` | ${t.row.number}`
51
51
  ] }), Ct = (t) => {
52
- const { associatedBeats: r } = H(), { showInsights: o } = R(), { amount: a, transaction_type: l } = t.row, s = r.find((h) => h.associated_transaction_guid === t.row.guid), c = l === E.CREDIT;
52
+ const { associatedBeats: o } = H(), { showInsights: r } = R(), { amount: a, transaction_type: l } = t.row, s = o.find((h) => h.associated_transaction_guid === t.row.guid), c = l === E.CREDIT;
53
53
  return /* @__PURE__ */ _(S, { alignItems: "flex-end", tabIndex: t.tabIndex, children: [
54
- /* @__PURE__ */ _(y, { color: c ? "success.main" : "text.primary", variant: "Small", children: [
54
+ /* @__PURE__ */ _(C, { color: c ? "success.main" : "text.primary", variant: "Small", children: [
55
55
  c ? "+" : "",
56
56
  oe(a, "0,0.00")
57
57
  ] }),
58
- s && o && /* @__PURE__ */ e(y, { bold: !0, color: "primary.light", variant: "XSmall", children: s.short_title })
58
+ s && r && /* @__PURE__ */ e(C, { bold: !0, color: "primary.light", variant: "XSmall", children: s.short_title })
59
59
  ] });
60
60
  }, yt = (t) => {
61
- const { transactions: r } = D(), [o, a] = m.useState(!1);
61
+ const { transactions: o } = D(), [r, a] = m.useState(!1);
62
62
  return /* @__PURE__ */ _(
63
63
  S,
64
64
  {
@@ -70,22 +70,30 @@ const ft = (t) => /* @__PURE__ */ _(y, { tabIndex: t.tabIndex, variant: "Small",
70
70
  onMouseLeave: () => a(!1),
71
71
  width: "100%",
72
72
  children: [
73
- t.row.has_been_split && /* @__PURE__ */ e(M, { name: "call_split", size: 16 }),
74
- /* @__PURE__ */ e(y, { tabIndex: t.tabIndex, variant: "Small", children: t.row.has_been_split ? r.split_transaction_category_label : t.row.category }),
75
- !t.row.has_been_split && o && /* @__PURE__ */ e(M, { name: "edit", sx: { color: "action.active" } })
73
+ t.row.has_been_split && /* @__PURE__ */ e(L, { name: "call_split", size: 16 }),
74
+ /* @__PURE__ */ e(C, { tabIndex: t.tabIndex, variant: "Small", children: t.row.has_been_split ? o.split_transaction_category_label : t.row.category }),
75
+ !t.row.has_been_split && r && /* @__PURE__ */ e(L, { name: "edit", sx: { color: "action.active" } })
76
76
  ]
77
77
  }
78
78
  );
79
- }, Tt = w(yt), bt = (t) => /* @__PURE__ */ e(y, { tabIndex: t.tabIndex, variant: "Small", children: Je(Ye(t.row.date), Qe.MONTH_DAY) }), At = (t) => {
80
- const r = qe(), { transactions: o } = D(), { is_flagged: a, is_hidden: l, has_been_viewed: s, parent_guid: c } = t.row, f = !s && !!!c;
79
+ }, Tt = w(yt), bt = (t) => /* @__PURE__ */ e(C, { tabIndex: t.tabIndex, variant: "Small", children: Je(Ye(t.row.date), Qe.MONTH_DAY) }), At = (t) => {
80
+ const o = qe(), r = o.palette.mode === "dark", { transactions: a } = D(), { is_flagged: l, is_hidden: s, has_been_viewed: c, parent_guid: h } = t.row, f = !c && !!!h;
81
81
  return /* @__PURE__ */ _(
82
82
  x,
83
83
  {
84
- "aria-label": l ? o.is_hidden : o.is_flagged,
84
+ "aria-label": s ? a.is_hidden : a.is_flagged,
85
85
  tabIndex: t.tabIndex,
86
86
  children: [
87
- a && /* @__PURE__ */ e(M, { fill: !0, name: "flag", size: 16, sx: { color: "warning.dark" } }),
88
- !a && l && /* @__PURE__ */ e(M, { name: "visibility_off", size: 16 }),
87
+ l && /* @__PURE__ */ e(
88
+ L,
89
+ {
90
+ fill: !0,
91
+ name: "flag",
92
+ size: 16,
93
+ sx: { color: r ? "primary.main" : "warning.dark" }
94
+ }
95
+ ),
96
+ !l && s && /* @__PURE__ */ e(L, { name: "visibility_off", size: 16 }),
89
97
  f && /* @__PURE__ */ e(
90
98
  "svg",
91
99
  {
@@ -93,7 +101,7 @@ const ft = (t) => /* @__PURE__ */ _(y, { tabIndex: t.tabIndex, variant: "Small",
93
101
  style: {
94
102
  display: "inline-block",
95
103
  height: 16,
96
- fill: r.palette.primary.light,
104
+ fill: o.palette.primary.light,
97
105
  verticalAlign: "middle",
98
106
  width: 16
99
107
  },
@@ -104,7 +112,7 @@ const ft = (t) => /* @__PURE__ */ _(y, { tabIndex: t.tabIndex, variant: "Small",
104
112
  ]
105
113
  }
106
114
  );
107
- }, xt = w(At), N = (t) => /* @__PURE__ */ e(y, { fontWeight: 600, variant: "Small", children: t.colDef.headerName }), St = (t) => /* @__PURE__ */ _(S, { alignItems: "center", direction: "row", gap: 8, children: [
115
+ }, xt = w(At), N = (t) => /* @__PURE__ */ e(C, { fontWeight: 600, variant: "Small", children: t.colDef.headerName }), St = (t) => /* @__PURE__ */ _(S, { alignItems: "center", direction: "row", gap: 8, children: [
108
116
  /* @__PURE__ */ e(
109
117
  je,
110
118
  {
@@ -112,22 +120,22 @@ const ft = (t) => /* @__PURE__ */ _(y, { tabIndex: t.tabIndex, variant: "Small",
112
120
  merchantGuid: t.row.merchant_guid || ""
113
121
  }
114
122
  ),
115
- /* @__PURE__ */ e(y, { tabIndex: t.tabIndex, variant: "Small", children: t.row.payee })
123
+ /* @__PURE__ */ e(C, { tabIndex: t.tabIndex, variant: "Small", children: t.row.payee })
116
124
  ] }), wt = ({
117
125
  height: t = "100dvh",
118
- onCategoryClick: r,
119
- onRowClick: o
126
+ onCategoryClick: o,
127
+ onRowClick: r
120
128
  }) => {
121
- const { transactions: a } = D(), { isCopyLoaded: l } = K(), { isLoading: s, sortedTransactions: c } = H(), { clearExpandedSplits: h, toggleSplit: f } = R();
129
+ const { transactions: a } = D(), { isCopyLoaded: l } = K(), { isLoading: s, sortedTransactions: c } = H(), { clearExpandedSplits: h, toggleSplit: y } = R();
122
130
  m.useEffect(() => () => h(), []);
123
- const C = m.useMemo(
131
+ const f = m.useMemo(
124
132
  () => c.map((i) => ({
125
133
  id: i.guid,
126
134
  isHovering: !1,
127
135
  ...i
128
136
  })),
129
137
  [c]
130
- ), d = ({ row: { id: i, guid: g, has_been_split: v }, field: n }) => v ? f(i) : n === "category" ? r?.(g) : o?.(g), I = (i, g) => {
138
+ ), d = ({ row: { id: i, guid: g, has_been_split: v }, field: n }) => v ? y(i) : n === "category" ? o?.(g) : r?.(g), I = (i, g) => {
131
139
  g.key !== "Enter" && g.key !== " " || d(i);
132
140
  };
133
141
  if (!l)
@@ -198,7 +206,7 @@ const ft = (t) => /* @__PURE__ */ _(y, { tabIndex: t.tabIndex, variant: "Small",
198
206
  loading: s,
199
207
  onCellClick: d,
200
208
  onCellKeyDown: I,
201
- rows: C,
209
+ rows: f,
202
210
  slotProps: { baseIconButton: { color: "secondary", sx: { ml: 8 } } },
203
211
  sx: {
204
212
  "& .split-row": {
@@ -207,7 +215,7 @@ const ft = (t) => /* @__PURE__ */ _(y, { tabIndex: t.tabIndex, variant: "Small",
207
215
  }
208
216
  }
209
217
  ) });
210
- }, Dt = w(wt), It = ({ copy: t, isOpen: r, onClose: o, onPrimaryAction: a }) => {
218
+ }, Dt = w(wt), It = ({ copy: t, isOpen: o, onClose: r, onPrimaryAction: a }) => {
211
219
  const { common: l, transactions: s } = D(), { isCopyLoaded: c } = K();
212
220
  return c ? /* @__PURE__ */ _(
213
221
  re,
@@ -215,35 +223,35 @@ const ft = (t) => /* @__PURE__ */ _(y, { tabIndex: t.tabIndex, variant: "Small",
215
223
  copy: {
216
224
  title: t.title
217
225
  },
218
- isOpen: r,
219
- onClose: o,
226
+ isOpen: o,
227
+ onClose: r,
220
228
  onPrimaryAction: a,
221
229
  primaryText: s.add_manual_account,
222
230
  secondaryText: l.cancel_button,
223
231
  children: [
224
- /* @__PURE__ */ e(y, { component: "p", sx: { marginBottom: "20px" }, truncate: !1, children: s.add_account_modal_message }),
225
- /* @__PURE__ */ e(y, { component: "p", truncate: !1, children: s.add_account_modal_cta })
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 })
226
234
  ]
227
235
  }
228
236
  ) : /* @__PURE__ */ e(z, {});
229
237
  }, vt = w(It), Nt = () => {
230
- const { visibleAccounts: t } = ne(), { common: r, transactions: o } = D(), { manualTransaction: a, setIsAmountValid: l, updateManualTransaction: s } = R(), [c, h] = m.useState(""), [f, C] = m.useState(""), d = m.useMemo(
238
+ const { visibleAccounts: t } = ne(), { common: o, transactions: r } = D(), { manualTransaction: a, setIsAmountValid: l, updateManualTransaction: s } = R(), [c, h] = m.useState(""), [y, f] = m.useState(""), d = m.useMemo(
231
239
  () => t.filter((n) => n.is_manual),
232
240
  [t]
233
241
  ).map((n) => ({
234
242
  label: `${n.name} | ${oe(n.balance, "0,0.00")}`,
235
243
  value: n.guid
236
244
  })), I = {
237
- error_amount_is_invalid: r.currency_input.error_amount_is_invalid,
238
- error_amount_must_be_equal_to: r.currency_input.error_amount_must_be_equal_to,
239
- error_amount_must_be_less_than_or_equal_to: r.currency_input.error_amount_must_be_less_than_or_equal_to,
240
- enter_amount: r.currency_input.enter_amount
245
+ error_amount_is_invalid: o.currency_input.error_amount_is_invalid,
246
+ error_amount_must_be_equal_to: o.currency_input.error_amount_must_be_equal_to,
247
+ error_amount_must_be_less_than_or_equal_to: o.currency_input.error_amount_must_be_less_than_or_equal_to,
248
+ enter_amount: o.currency_input.enter_amount
241
249
  }, p = (n) => {
242
250
  h(n), s({ ...a, amount: Number(n) });
243
251
  }, i = (n, P) => {
244
252
  s({ ...a, transaction_type: Number(P) });
245
253
  }, g = (n) => {
246
- C(n), s({ ...a, payee: n, description: n });
254
+ f(n), s({ ...a, payee: n, description: n });
247
255
  }, v = (n) => {
248
256
  s({ ...a, account_guid: n });
249
257
  };
@@ -260,12 +268,12 @@ const ft = (t) => /* @__PURE__ */ _(y, { tabIndex: t.tabIndex, variant: "Small",
260
268
  {
261
269
  allowDecimals: !0,
262
270
  amount: c,
263
- ariaLabel: o.amount_title,
271
+ ariaLabel: r.amount_title,
264
272
  copy: I,
265
273
  inputProps: {
266
274
  noValidate: !0
267
275
  },
268
- label: o.amount_title,
276
+ label: r.amount_title,
269
277
  setAmount: p,
270
278
  setHasValidInput: l,
271
279
  sx: { bgcolor: "background.paper" },
@@ -277,9 +285,9 @@ const ft = (t) => /* @__PURE__ */ _(y, { tabIndex: t.tabIndex, variant: "Small",
277
285
  Z,
278
286
  {
279
287
  checked: a.transaction_type === E.CREDIT,
280
- label: o.manual_transaction_credit_button_label,
288
+ label: r.manual_transaction_credit_button_label,
281
289
  sx: { ml: { xs: 0, sm: 8 } },
282
- tooltip: o.manual_transaction_credit_button_tooltip,
290
+ tooltip: r.manual_transaction_credit_button_tooltip,
283
291
  value: E.CREDIT
284
292
  }
285
293
  ),
@@ -287,8 +295,8 @@ const ft = (t) => /* @__PURE__ */ _(y, { tabIndex: t.tabIndex, variant: "Small",
287
295
  Z,
288
296
  {
289
297
  checked: a.transaction_type === E.DEBIT,
290
- label: o.manual_transaction_debit_button_label,
291
- tooltip: o.manual_transaction_debit_button_tooltip,
298
+ label: r.manual_transaction_debit_button_label,
299
+ tooltip: r.manual_transaction_debit_button_tooltip,
292
300
  value: E.DEBIT
293
301
  }
294
302
  )
@@ -299,11 +307,11 @@ const ft = (t) => /* @__PURE__ */ _(y, { tabIndex: t.tabIndex, variant: "Small",
299
307
  /* @__PURE__ */ e(
300
308
  ee,
301
309
  {
302
- label: o.payee_title,
310
+ label: r.payee_title,
303
311
  name: "payee",
304
312
  onChange: (n) => g(n.target.value),
305
313
  sx: { bgcolor: "background.paper" },
306
- value: f
314
+ value: y
307
315
  }
308
316
  ),
309
317
  /* @__PURE__ */ e(
@@ -311,9 +319,9 @@ const ft = (t) => /* @__PURE__ */ _(y, { tabIndex: t.tabIndex, variant: "Small",
311
319
  {
312
320
  InputLabelProps: { shrink: !0 },
313
321
  SelectProps: { defaultValue: -1, IconComponent: st },
314
- label: o.manual_transaction_select_an_account,
322
+ label: r.manual_transaction_select_an_account,
315
323
  onChange: (n) => v(n.target.value),
316
- placeholder: o.manual_transaction_select,
324
+ placeholder: r.manual_transaction_select,
317
325
  select: !0,
318
326
  sx: { bgcolor: "background.paper" },
319
327
  children: d.map((n) => /* @__PURE__ */ e(rt, { value: n.value, children: n.label }, n.value))
@@ -322,27 +330,27 @@ const ft = (t) => /* @__PURE__ */ _(y, { tabIndex: t.tabIndex, variant: "Small",
322
330
  ] }),
323
331
  /* @__PURE__ */ e(ot, { light: !0 }),
324
332
  /* @__PURE__ */ _(x, { bgcolor: "background.paper", children: [
325
- /* @__PURE__ */ e(Le, { transaction: a }),
326
333
  /* @__PURE__ */ e(Me, { transaction: a }),
334
+ /* @__PURE__ */ e(Le, { transaction: a }),
327
335
  /* @__PURE__ */ e(Re, { transaction: a }),
328
336
  /* @__PURE__ */ e(He, { transaction: a })
329
337
  ] })
330
338
  ] });
331
- }, Et = w(Nt), Ot = ({ onClose: t, transaction: r }) => {
332
- const { addOrUpdateTransactionRule: o, updateTransaction: a } = H(), { transactions: l } = D(), { categories: s } = Fe(), [c, h] = m.useState(""), f = m.useMemo(
339
+ }, Et = w(Nt), kt = ({ onClose: t, transaction: o }) => {
340
+ const { addOrUpdateTransactionRule: r, updateTransaction: a } = H(), { transactions: l } = D(), { categories: s } = Fe(), [c, h] = m.useState(""), y = m.useMemo(
333
341
  () => s.find((d) => d.guid === c),
334
342
  [c]
335
- ), C = async (d) => {
336
- await a({ ...r, category_guid: c }), d && await o(c, r), h(""), t();
343
+ ), f = async (d) => {
344
+ await a({ ...o, category_guid: c }), d && await r(c, o), h(""), t();
337
345
  };
338
346
  return /* @__PURE__ */ _(x, { className: "mx-txn-edit-category-action", children: [
339
347
  /* @__PURE__ */ e(
340
348
  lt,
341
349
  {
342
- initialSelected: r.category_guid,
350
+ initialSelected: o.category_guid,
343
351
  onClose: t,
344
352
  onSelect: (d) => h(d),
345
- showDrawer: !!r,
353
+ showDrawer: !!o,
346
354
  title: l.actions_select_a_category
347
355
  }
348
356
  ),
@@ -352,30 +360,30 @@ const ft = (t) => /* @__PURE__ */ _(y, { tabIndex: t.tabIndex, variant: "Small",
352
360
  copy: {
353
361
  title: U(
354
362
  l.actions_apply_to_all_transaction_types,
355
- r.description
363
+ o.description
356
364
  )
357
365
  },
358
366
  isOpen: !!c,
359
- onClose: () => C(!1),
360
- onPrimaryAction: () => C(!0),
361
- onSecondaryAction: () => C(!1),
367
+ onClose: () => f(!1),
368
+ onPrimaryAction: () => f(!0),
369
+ onSecondaryAction: () => f(!1),
362
370
  primaryText: l.actions_apply_to_all,
363
371
  secondaryText: l.actions_this_time_only,
364
372
  children: /* @__PURE__ */ e(Xe, { variant: "Paragraph", children: U(
365
373
  l.actions_all_past_and_future,
366
- r.description,
367
- f?.name
374
+ o.description,
375
+ y?.name
368
376
  ) })
369
377
  }
370
378
  )
371
379
  ] });
372
- }, kt = w(Ot), ae = 120, Lt = ({
380
+ }, Ot = w(kt), ae = 120, Mt = ({
373
381
  onBackClick: t,
374
- height: r = "100dvh",
375
- showInsights: o = !1,
382
+ height: o = "100dvh",
383
+ showInsights: r = !1,
376
384
  sx: a = {}
377
385
  }) => {
378
- const { manualAccounts: l, refreshAccounts: s } = ne(), { is_mobile_webview: c, clientConfig: h, config: f } = Ue(), { setSearchValue: C } = dt(), { onEvent: d } = Ke(), { common: I, transactions: p } = D(), { displayedDateRange: i, isInitialized: g, selectedAccountGuids: v, setDisplayedDate: n } = K(), { isDesktop: P, isTablet: ie } = _t(), O = at(), {
386
+ const { manualAccounts: l, refreshAccounts: s } = ne(), { 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: n } = K(), { isDesktop: P, isTablet: ie } = _t(), k = at(), {
379
387
  addTransaction: se,
380
388
  filter: ce,
381
389
  isTransactionDataLoaded: B,
@@ -389,19 +397,19 @@ const ft = (t) => /* @__PURE__ */ _(y, { tabIndex: t.tabIndex, variant: "Small",
389
397
  } = H(), {
390
398
  clearExpandedSplits: pe,
391
399
  isAmountValid: ge,
392
- manualTransaction: k,
400
+ manualTransaction: O,
393
401
  searchValue: X,
394
402
  setSearchValue: he,
395
403
  setShowInsights: fe,
396
404
  updateManualTransaction: Ce
397
- } = R(), { userProfile: ye } = ze(), [$, T] = m.useState(""), [Y, L] = m.useState(""), [Te, V] = m.useState(!1), [be, J] = m.useState(!1), { announce: Ae, ariaLive: xe } = ut(), W = h?.transactions?.selected_account_guid;
405
+ } = R(), { userProfile: ye } = ze(), [$, T] = m.useState(""), [Y, M] = m.useState(""), [Te, V] = m.useState(!1), [be, J] = m.useState(!1), { announce: Ae, ariaLive: xe } = ut(), W = h?.transactions?.selected_account_guid;
398
406
  pt({
399
407
  widgetName: "TransactionWidget",
400
408
  isLoaded: B
401
409
  }), m.useEffect(() => {
402
410
  B || le().finally();
403
- const u = tt(F()), ke = Ze(F());
404
- n(u, ke), d(A.TRANSACTIONS_VIEW);
411
+ const u = tt(F()), Oe = Ze(F());
412
+ n(u, Oe), d(A.TRANSACTIONS_VIEW);
405
413
  }, []), m.useEffect(() => {
406
414
  g && q({
407
415
  accounts: W ? [W] : v,
@@ -409,13 +417,13 @@ const ft = (t) => /* @__PURE__ */ _(y, { tabIndex: t.tabIndex, variant: "Small",
409
417
  searchTerm: X
410
418
  });
411
419
  }, [g, i, v]), m.useEffect(() => {
412
- fe(o);
413
- }, [o]), m.useEffect(() => {
420
+ fe(r);
421
+ }, [r]), m.useEffect(() => {
414
422
  g && Ae(
415
423
  U(p.showing_transactions_count, j.length)
416
424
  );
417
425
  }, [g, j]);
418
- const b = Y ? me.find((u) => u.guid === Y) : void 0, Q = ge && !!k.payee && !!k.account_guid && !!k.category_guid, Se = (u) => {
426
+ const b = Y ? me.find((u) => u.guid === Y) : void 0, Q = ge && !!O.payee && !!O.account_guid && !!O.category_guid, Se = (u) => {
419
427
  pe(), n(u[0], u[1]);
420
428
  }, we = (u) => {
421
429
  he(u), q({
@@ -434,12 +442,12 @@ const ft = (t) => /* @__PURE__ */ _(y, { tabIndex: t.tabIndex, variant: "Small",
434
442
  /* AddTransaction */
435
443
  ), d(A.TRANSACTIONS_CLICK_ADD)) : (V(!0), d(A.TRANSACTIONS_ADD_MANUAL_ACCOUNT_MODAL));
436
444
  }, ve = async () => {
437
- Q && await se(k), T("");
445
+ Q && await se(O), T("");
438
446
  }, Ne = () => {
439
447
  V(!1), J(!0);
440
448
  }, Ee = async () => {
441
449
  J(!1), await s();
442
- }, Oe = async () => {
450
+ }, ke = async () => {
443
451
  b && !b.has_been_viewed && await _e({ ...b, has_been_viewed: !0 }), T("");
444
452
  };
445
453
  if (!g)
@@ -449,7 +457,7 @@ const ft = (t) => /* @__PURE__ */ _(y, { tabIndex: t.tabIndex, variant: "Small",
449
457
  iconName: "open_in_new",
450
458
  label: p.export_csv_btn,
451
459
  onClick: De
452
- }), f.show_connections_widget_in_master && G.push({
460
+ }), y.show_connections_widget_in_master && G.push({
453
461
  iconName: "add",
454
462
  label: p.add_transaction_btn,
455
463
  onClick: Ie
@@ -480,21 +488,21 @@ const ft = (t) => /* @__PURE__ */ _(y, { tabIndex: t.tabIndex, variant: "Small",
480
488
  x,
481
489
  {
482
490
  sx: {
483
- [O.breakpoints.down("md")]: { display: "none" },
484
- [O.breakpoints.up("md")]: { display: "block" }
491
+ [k.breakpoints.down("md")]: { display: "none" },
492
+ [k.breakpoints.up("md")]: { display: "block" }
485
493
  },
486
494
  children: /* @__PURE__ */ e(
487
495
  Dt,
488
496
  {
489
- height: `calc(${r} - ${ae}px)`,
497
+ height: `calc(${o} - ${ae}px)`,
490
498
  onCategoryClick: (u) => {
491
- L(u), T(
499
+ M(u), T(
492
500
  "category"
493
501
  /* Category */
494
502
  );
495
503
  },
496
504
  onRowClick: (u) => {
497
- L(u), T(
505
+ M(u), T(
498
506
  "transaction"
499
507
  /* Transaction */
500
508
  ), d(A.TRANSACTIONS_CLICK_DETAILS, { transaction_guid: u });
@@ -507,21 +515,21 @@ const ft = (t) => /* @__PURE__ */ _(y, { tabIndex: t.tabIndex, variant: "Small",
507
515
  x,
508
516
  {
509
517
  sx: {
510
- [O.breakpoints.down("md")]: { display: "block" },
511
- [O.breakpoints.up("md")]: { display: "none" }
518
+ [k.breakpoints.down("md")]: { display: "block" },
519
+ [k.breakpoints.up("md")]: { display: "none" }
512
520
  },
513
521
  children: /* @__PURE__ */ e(
514
522
  $e,
515
523
  {
516
- height: `calc(${r} - ${ae}px)`,
524
+ height: `calc(${o} - ${ae}px)`,
517
525
  onClick: (u) => {
518
- L(u), T(
526
+ M(u), T(
519
527
  "transaction"
520
528
  /* Transaction */
521
529
  );
522
530
  },
523
531
  showHiddenTransactions: !0,
524
- showInsights: o
532
+ showInsights: r
525
533
  }
526
534
  )
527
535
  }
@@ -532,16 +540,16 @@ const ft = (t) => /* @__PURE__ */ _(y, { tabIndex: t.tabIndex, variant: "Small",
532
540
  {
533
541
  ariaLabelClose: I.close_aria,
534
542
  isOpen: $ === "transaction" && !!b,
535
- onClose: Oe,
543
+ onClose: ke,
536
544
  title: p.details_title,
537
545
  children: b && /* @__PURE__ */ e(Pe, { transaction: b })
538
546
  }
539
547
  ),
540
548
  b && $ === "category" && /* @__PURE__ */ e(
541
- kt,
549
+ Ot,
542
550
  {
543
551
  onClose: () => {
544
- C(""), T(""), L("");
552
+ f(""), T(""), M("");
545
553
  },
546
554
  transaction: b
547
555
  }
@@ -580,7 +588,7 @@ const ft = (t) => /* @__PURE__ */ _(y, { tabIndex: t.tabIndex, variant: "Small",
580
588
  ]
581
589
  }
582
590
  );
583
- }, ba = w(Lt);
591
+ }, ba = w(Mt);
584
592
  export {
585
593
  vt as AddAccountModal,
586
594
  Da as BottomActions,
@@ -590,8 +598,8 @@ export {
590
598
  Sa as TransactionApi,
591
599
  Pe as TransactionDetails,
592
600
  $e as TransactionList,
593
- La as TransactionRow,
594
- Oa as TransactionStore,
601
+ Ma as TransactionRow,
602
+ ka as TransactionStore,
595
603
  Dt as TransactionTable,
596
604
  ba as TransactionWidget,
597
605
  Ve as exportTransactionsToCSV,
@@ -35,8 +35,8 @@ import { useGridApiContext as Yt, useGridRootProps as jt, DataGridPro as Ut } fr
35
35
  import Xt from "@mui/material/Badge";
36
36
  import Zt from "@mui/material/IconButton";
37
37
  import { A as v } from "../Analytics-BYItVAe-.mjs";
38
- import { T as ct } from "../StatusIndicator-Bo80rdKq.mjs";
39
- import { T as dt } from "../TransactionDetails-DWZuZgBw.mjs";
38
+ import { T as ct } from "../StatusIndicator-BnYO7yL3.mjs";
39
+ import { T as dt } from "../TransactionDetails-DmDYs0lX.mjs";
40
40
  import { D as We } from "../Drawer-DV4NTsFg.mjs";
41
41
  import { u as Ie } from "../useWidgetLoadTimer-DgN1bTyu.mjs";
42
42
  import { L as Le } from "../Loader-D3rjKx72.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "7.12.6",
3
+ "version": "7.12.7",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",