@mx-cartographer/experiences 9.0.15-alpha.al2 → 9.0.15-alpha.al4

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## [9.0.15-alpha] - 06-25-2026
2
+
3
+ - **ADDED** - recurring transactions a11y improvements
4
+
1
5
  ## [9.0.15] - 06-15-2026
2
6
 
3
7
  - **FIXED** - Critical Vulnerabilities fix
@@ -50,8 +50,8 @@ import $t from "@mui/material/AlertTitle";
50
50
  import Vt from "@mui/material/Link";
51
51
  import Wt from "@mui/material/Paper";
52
52
  import { endOfToday as zt, subDays as Yt, startOfToday as Gt } from "date-fns";
53
- import { T as Ht } from "./EmbeddedCard-CsIrZL3g.mjs";
54
- import { T as jt } from "./TransactionDetails-BRu5HpG8.mjs";
53
+ import { T as Ht } from "./EmbeddedCard-DH8vQ3qN.mjs";
54
+ import { T as jt } from "./TransactionDetails-roZ5xLq8.mjs";
55
55
  const Kt = (t, o) => {
56
56
  const n = tt.includes(o) ? mt(t) : [], a = et.includes(o) ? pt(t) : [], c = nt.includes(o) ? ht(t) : [];
57
57
  return [n, a, c].filter((l) => l.length > 0);
@@ -1,5 +1,5 @@
1
- import { jsxs as s, jsx as e } from "react/jsx-runtime";
2
- import I, { useMemo as X, useState as P, useEffect as q } from "react";
1
+ import { jsxs as a, jsx as e } from "react/jsx-runtime";
2
+ import x, { useMemo as X, useState as P, useEffect as q } from "react";
3
3
  import L from "@mui/material/Box";
4
4
  import Y from "@mui/material/Button";
5
5
  import l from "@mui/material/Stack";
@@ -15,7 +15,7 @@ import ht from "@mui/material/ListItemAvatar";
15
15
  import Ct from "@mui/material/ListItemText";
16
16
  import { useTheme as M } from "@mui/material/styles";
17
17
  import { f as H } from "./NumberFormatting--XMeeBfr.mjs";
18
- import { L as _t } from "./ListItemWrapper-Bw5FDCJ8.mjs";
18
+ import { L as _t } from "./ListItemWrapper-DRse79Iu.mjs";
19
19
  import { fromUnixTime as v } from "date-fns/fromUnixTime";
20
20
  import { isSameDay as F } from "date-fns/isSameDay";
21
21
  import { f as ut, D as pt } from "./DateFormats-HudZ3Bjs.mjs";
@@ -29,7 +29,7 @@ import { D as It } from "./Drawer-DsnW2o0v.mjs";
29
29
  import { ChartContainer as xt, ChartsReferenceLine as U, ChartsXAxis as St, BarPlot as Ot } from "@mui/x-charts";
30
30
  import Dt from "@mui/material/Card";
31
31
  const K = () => {
32
- if (!I.useContext(lt))
32
+ if (!x.useContext(lt))
33
33
  throw new Error("useTransactionsUiStore() must be used within the GlobalDataContext");
34
34
  return G().uiStore;
35
35
  }, bt = {
@@ -98,32 +98,33 @@ function fe(t) {
98
98
  type: "mx/pulse/client_configured_cta"
99
99
  });
100
100
  }
101
- const yt = ({ transaction: t, onClick: r }) => {
102
- const i = M().palette.mode === "dark", { associatedBeats: o } = G(), { expandedSplits: c } = K(), { transactions: T } = z(), { showInsights: g } = K(), C = t.transaction_type === it.CREDIT, d = I.useMemo(() => o.find((a) => a.associated_transaction_guid === t.guid), [o, t]), p = (a, u) => {
103
- const A = [];
104
- return a.is_flagged && A.push(
101
+ const yt = ({ transaction: t, onClick: r, component: n }) => {
102
+ const o = M().palette.mode === "dark", { associatedBeats: s } = G(), { expandedSplits: d } = K(), { transactions: g } = z(), { showInsights: u } = K(), T = t.transaction_type === it.CREDIT, _ = x.useMemo(() => s.find((c) => c.associated_transaction_guid === t.guid), [s, t]), p = (c, A) => {
103
+ const f = [];
104
+ return c.is_flagged && f.push(
105
105
  /* @__PURE__ */ e(
106
106
  k,
107
107
  {
108
108
  fill: !0,
109
109
  name: "flag",
110
110
  size: 16,
111
- sx: { color: u ? "primary.main" : "warning.dark" }
111
+ sx: { color: A ? "primary.main" : "warning.dark" }
112
112
  },
113
113
  "flag"
114
114
  )
115
- ), a.is_hidden && A.push(/* @__PURE__ */ e(k, { name: "visibility_off", size: 16 }, "hidden")), a.has_been_split && A.push(/* @__PURE__ */ e(k, { name: "call_split", size: 16 }, "split")), A;
116
- }, _ = (a, u) => a.is_hidden ? u.is_excluded : a.has_been_split ? u.split_transaction_category_label : a.category || "";
115
+ ), c.is_hidden && f.push(/* @__PURE__ */ e(k, { name: "visibility_off", size: 16 }, "hidden")), c.has_been_split && f.push(/* @__PURE__ */ e(k, { name: "call_split", size: 16 }, "split")), f;
116
+ }, C = (c, A) => c.is_hidden ? A.is_excluded : c.has_been_split ? A.split_transaction_category_label : c.category || "";
117
117
  return (
118
118
  //TODO: implement common/components/ListItemRow.tsx
119
- /* @__PURE__ */ s(
119
+ /* @__PURE__ */ a(
120
120
  _t,
121
121
  {
122
122
  clickEventName: bt.ON_TRANSACTION_LIST_ITEM_CLICK,
123
+ ...n && { component: n },
123
124
  onClick: r ? () => r(t.guid) : void 0,
124
125
  sx: t.is_hidden ? { backgroundColor: "grey.50", color: "text.secondary" } : void 0,
125
126
  children: [
126
- /* @__PURE__ */ e(ht, { children: t.parent_guid && c.includes(t.parent_guid) ? /* @__PURE__ */ e(I.Fragment, {}) : /* @__PURE__ */ e(
127
+ /* @__PURE__ */ e(ht, { children: t.parent_guid && d.includes(t.parent_guid) ? /* @__PURE__ */ e(x.Fragment, {}) : /* @__PURE__ */ e(
127
128
  J,
128
129
  {
129
130
  categoryGuid: t.top_level_category_guid || "",
@@ -134,36 +135,36 @@ const yt = ({ transaction: t, onClick: r }) => {
134
135
  Ct,
135
136
  {
136
137
  disableTypography: !0,
137
- secondary: /* @__PURE__ */ s(l, { direction: "row", justifyContent: "space-between", children: [
138
- /* @__PURE__ */ s(l, { alignItems: "center", direction: "row", gap: 4, children: [
139
- p(t, i),
140
- /* @__PURE__ */ e(m, { truncate: !0, variant: "caption", children: _(t, T) })
138
+ secondary: /* @__PURE__ */ a(l, { direction: "row", justifyContent: "space-between", children: [
139
+ /* @__PURE__ */ a(l, { alignItems: "center", direction: "row", gap: 4, children: [
140
+ p(t, o),
141
+ /* @__PURE__ */ e(m, { truncate: !0, variant: "caption", children: C(t, g) })
141
142
  ] }),
142
- d && g && /* @__PURE__ */ e(
143
+ _ && u && /* @__PURE__ */ e(
143
144
  m,
144
145
  {
145
146
  bold: !0,
146
147
  color: "action.active",
147
- onClick: (a) => {
148
- a.stopPropagation(), a.preventDefault(), Lt(d.guid);
148
+ onClick: (c) => {
149
+ c.stopPropagation(), c.preventDefault(), Lt(_.guid);
149
150
  },
150
151
  truncate: !0,
151
152
  variant: "caption",
152
- children: d.short_title
153
+ children: _.short_title
153
154
  }
154
155
  )
155
156
  ] }),
156
- children: /* @__PURE__ */ s(l, { direction: "row", justifyContent: "space-between", sx: { gap: 8 }, children: [
157
+ children: /* @__PURE__ */ a(l, { direction: "row", justifyContent: "space-between", sx: { gap: 8 }, children: [
157
158
  /* @__PURE__ */ e(m, { bold: !0, truncate: !0, variant: "body1", children: t.payee || t.description || t.feed_description }),
158
- /* @__PURE__ */ s(
159
+ /* @__PURE__ */ a(
159
160
  m,
160
161
  {
161
162
  bold: !0,
162
- color: C ? "success.main" : "text.primary",
163
+ color: T ? "success.main" : "text.primary",
163
164
  sx: { flexShrink: 0 },
164
165
  variant: "body1",
165
166
  children: [
166
- C ? "+" : "",
167
+ T ? "+" : "",
167
168
  H(t.amount, "0,0.00")
168
169
  ]
169
170
  }
@@ -180,7 +181,7 @@ const yt = ({ transaction: t, onClick: r }) => {
180
181
  children: r
181
182
  }) => /* @__PURE__ */ e(L, { display: "inline-block", sx: { bgcolor: t, py: 6, width: "100%" }, children: /* @__PURE__ */ e(m, { bold: !0, sx: { pl: 24 }, variant: "caption", children: r }) }), kt = ({ showIcon: t = !0, showSubtitle: r = !0 }) => {
182
183
  const { transactions: n } = z();
183
- return /* @__PURE__ */ s(l, { alignItems: "center", gap: 12, height: "auto", mb: 24, mt: 24, children: [
184
+ return /* @__PURE__ */ a(l, { alignItems: "center", gap: 12, height: "auto", mb: 24, mt: 24, children: [
184
185
  t && /* @__PURE__ */ e(nt, { color: "action", sx: { fontSize: 32 } }),
185
186
  /* @__PURE__ */ e(m, { bold: !0, color: "text.secondary", variant: "body2", children: n.zero_state_no_transactions }),
186
187
  r && /* @__PURE__ */ e(m, { color: "text.secondary", variant: "caption", children: n.zero_state_there_are_no_transactions })
@@ -208,78 +209,79 @@ const yt = ({ transaction: t, onClick: r }) => {
208
209
  height: n = "calc(100dvh - 36px)",
209
210
  loader: i = /* @__PURE__ */ e(Z, { label: "Loading", size: 40 }),
210
211
  onClick: o,
211
- showInsights: c = !1,
212
- showLoader: T = !1,
212
+ showInsights: s = !1,
213
+ showLoader: d = !1,
213
214
  transaction: g,
214
- width: C = "100%",
215
- zeroState: d = /* @__PURE__ */ e(vt, {})
215
+ width: u = "100%",
216
+ zeroState: T = /* @__PURE__ */ e(vt, {})
216
217
  }) => {
217
- const { isLoading: p, sortedTransactions: _ } = G(), a = I.useMemo(() => {
218
- const N = r ? _.filter(r) : _;
218
+ const { isLoading: _, sortedTransactions: p } = G(), C = x.useMemo(() => {
219
+ const N = r ? p.filter(r) : p;
219
220
  return g ?? N;
220
- }, [_, g]), { clearExpandedSplits: u, setShowInsights: A, toggleSplit: b } = K(), { onEvent: S } = dt(), O = (N) => {
221
- const D = a.find((y) => y.guid === N);
222
- if (D?.has_been_split) {
223
- b(D.guid);
221
+ }, [p, g]), { clearExpandedSplits: c, setShowInsights: A, toggleSplit: f } = K(), { onEvent: O } = dt(), D = (N) => {
222
+ const b = C.find((y) => y.guid === N);
223
+ if (b?.has_been_split) {
224
+ f(b.guid);
224
225
  return;
225
226
  }
226
- S(gt.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
227
- account_guid: D?.account_guid,
227
+ O(gt.ACCOUNT_DETAILS_CLICK_TRANSACTION, {
228
+ account_guid: b?.account_guid,
228
229
  transaction_guid: N
229
230
  }), o?.(N);
230
- }, w = I.useRef(null), f = at({
231
- count: a.length,
231
+ }, w = x.useRef(null), I = at({
232
+ count: C.length,
232
233
  getScrollElement: () => w.current,
233
- estimateSize: (N) => B + (W(N, a) ? j : 0),
234
+ estimateSize: (N) => B + (W(N, C) ? j : 0),
234
235
  overscan: 5
235
236
  });
236
- return I.useEffect(() => f.measure(), [a]), I.useEffect(() => A(c), [c]), I.useEffect(() => () => u(), []), /* @__PURE__ */ e(ct, { component: "div", role: "list", sx: { width: C }, children: /* @__PURE__ */ e(L, { height: n, overflow: "auto", ref: w, role: "presentation", width: C, children: /* @__PURE__ */ s(
237
+ return x.useEffect(() => I.measure(), [C]), x.useEffect(() => A(s), [s]), x.useEffect(() => () => c(), []), /* @__PURE__ */ e(ct, { component: "div", role: "list", sx: { width: u }, children: /* @__PURE__ */ e(L, { height: n, overflow: "auto", ref: w, role: "presentation", width: u, children: /* @__PURE__ */ a(
237
238
  L,
238
239
  {
239
240
  height: (
240
241
  // set the height to auto when there are no transactions so the zero state isn't set to 0
241
- f.getVirtualItems().length === 0 ? "auto" : f.getTotalSize()
242
+ I.getVirtualItems().length === 0 ? "auto" : I.getTotalSize()
242
243
  ),
243
244
  position: "relative",
244
245
  role: "presentation",
245
246
  width: "100%",
246
247
  children: [
247
- (p || T) && i,
248
- !p && !T && f.getVirtualItems().length === 0 && d,
249
- !p && !T && f.getVirtualItems().length > 0 && f.getVirtualItems().map((N) => {
250
- const D = a[N.index], y = W(N.index, a), h = Gt(N.index, a), x = B + (y ? j : 0);
251
- return /* @__PURE__ */ s(
248
+ (_ || d) && i,
249
+ !_ && !d && I.getVirtualItems().length === 0 && T,
250
+ !_ && !d && I.getVirtualItems().length > 0 && I.getVirtualItems().map((N) => {
251
+ const b = C[N.index], y = W(N.index, C), h = Gt(N.index, C), S = B + (y ? j : 0);
252
+ return /* @__PURE__ */ a(
252
253
  L,
253
254
  {
254
255
  role: "listitem",
255
256
  sx: {
256
- height: x,
257
+ height: S,
257
258
  position: "absolute",
258
259
  transform: `translateY(${N.start}px)`,
259
260
  width: "100%",
260
261
  bgcolor: "background.paper"
261
262
  },
262
263
  children: [
263
- y && /* @__PURE__ */ e(Rt, { bgcolor: t, children: mt(D.date) }),
264
+ y && /* @__PURE__ */ e(Rt, { bgcolor: t, children: mt(b.date) }),
264
265
  /* @__PURE__ */ e(
265
266
  wt,
266
267
  {
267
- ...o && { onClick: O },
268
- transaction: D
268
+ component: "div",
269
+ ...o && { onClick: D },
270
+ transaction: b
269
271
  }
270
272
  ),
271
273
  /* @__PURE__ */ e(st, { sx: { ml: h ? 68 : 0 } })
272
274
  ]
273
275
  },
274
- D.guid
276
+ b.guid
275
277
  );
276
278
  })
277
279
  ]
278
280
  }
279
281
  ) }) });
280
282
  }, Ht = V(Mt), Kt = ({ message: t, tipAriaLabel: r, onDismiss: n, onAction: i, sx: o }) => {
281
- const c = i || n, T = i ? "chevron_right" : "close";
282
- return /* @__PURE__ */ s(
283
+ const s = i || n, d = i ? "chevron_right" : "close";
284
+ return /* @__PURE__ */ a(
283
285
  l,
284
286
  {
285
287
  sx: {
@@ -296,18 +298,18 @@ const yt = ({ transaction: t, onClick: r }) => {
296
298
  ...o
297
299
  },
298
300
  children: [
299
- /* @__PURE__ */ s(l, { sx: { flexDirection: "row", gap: 4 }, children: [
301
+ /* @__PURE__ */ a(l, { sx: { flexDirection: "row", gap: 4 }, children: [
300
302
  /* @__PURE__ */ e(k, { color: "info", fill: !0, name: "lightbulb", size: 24 }),
301
303
  /* @__PURE__ */ e($, { color: "primary.dark", fontWeight: 400, noWrap: !1, variant: "subtitle2", children: t })
302
304
  ] }),
303
- c && /* @__PURE__ */ e(
305
+ s && /* @__PURE__ */ e(
304
306
  ft,
305
307
  {
306
308
  "aria-label": r,
307
- onClick: c,
309
+ onClick: s,
308
310
  size: "small",
309
311
  sx: { minHeight: 0, minWidth: 0, p: 0 },
310
- children: /* @__PURE__ */ e(k, { color: "primary", fill: !0, name: T, size: 20 })
312
+ children: /* @__PURE__ */ e(k, { color: "primary", fill: !0, name: d, size: 20 })
311
313
  }
312
314
  )
313
315
  ]
@@ -319,47 +321,47 @@ const yt = ({ transaction: t, onClick: r }) => {
319
321
  chart: n,
320
322
  children: i,
321
323
  data: o,
322
- defaultSelectedIndex: c,
323
- icon: T,
324
+ defaultSelectedIndex: s,
325
+ icon: d,
324
326
  onTabChange: g,
325
- tipSection: C
327
+ tipSection: u
326
328
  }) => {
327
- const { heading: d, subHeading: p } = r, _ = X(
328
- () => c ?? (o.length ? o.length - 1 : 0),
329
- [c, o.length]
330
- ), [a, u] = P(_), A = (S, O) => {
331
- g?.(O), u(O);
332
- }, b = (S) => {
333
- u(S);
329
+ const { heading: T, subHeading: _ } = r, p = X(
330
+ () => s ?? (o.length ? o.length - 1 : 0),
331
+ [s, o.length]
332
+ ), [C, c] = P(p), A = (O, D) => {
333
+ g?.(D), c(D);
334
+ }, f = (O) => {
335
+ c(O);
334
336
  };
335
- return /* @__PURE__ */ s(L, { sx: { bgcolor: "background.paper", width: "100%" }, children: [
336
- /* @__PURE__ */ e(Nt, { "aria-label": t, onChange: A, value: a, variant: "fullWidth", children: o.map((S, O) => /* @__PURE__ */ e(
337
+ return /* @__PURE__ */ a(L, { sx: { bgcolor: "background.paper", width: "100%" }, children: [
338
+ /* @__PURE__ */ e(Nt, { "aria-label": t, onChange: A, value: C, variant: "fullWidth", children: o.map((O, D) => /* @__PURE__ */ e(
337
339
  At,
338
340
  {
339
- id: `transaction-details-tab-${O}`,
340
- label: S.label,
341
+ id: `transaction-details-tab-${D}`,
342
+ label: O.label,
341
343
  sx: { minWidth: "auto", px: 0 }
342
344
  },
343
- `${S.label}-${O}`
345
+ `${O.label}-${D}`
344
346
  )) }),
345
- /* @__PURE__ */ e(l, { sx: { pt: 16, px: 24 }, children: (d || p) && /* @__PURE__ */ s(l, { sx: { gap: 4 }, children: [
346
- d && /* @__PURE__ */ e(tt, { children: d }),
347
- p && /* @__PURE__ */ s(l, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
348
- T,
349
- /* @__PURE__ */ e(m, { textTransform: "uppercase", variant: "body2", children: p.description })
347
+ /* @__PURE__ */ e(l, { sx: { pt: 16, px: 24 }, children: (T || _) && /* @__PURE__ */ a(l, { sx: { gap: 4 }, children: [
348
+ T && /* @__PURE__ */ e(tt, { children: T }),
349
+ _ && /* @__PURE__ */ a(l, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
350
+ d,
351
+ /* @__PURE__ */ e(m, { textTransform: "uppercase", variant: "body2", children: _.description })
350
352
  ] })
351
353
  ] }) }),
352
- n?.(a, b),
353
- C && /* @__PURE__ */ e(Kt, { ...C }),
354
- i?.(a)
354
+ n?.(C, f),
355
+ u && /* @__PURE__ */ e(Kt, { ...u }),
356
+ i?.(C)
355
357
  ] });
356
358
  }, Vt = (t) => {
357
359
  const [r, n] = P({ width: 0, height: 0 });
358
360
  return q(() => {
359
361
  const i = () => {
360
362
  if (t.current) {
361
- const { offsetWidth: o, offsetHeight: c } = t.current;
362
- n({ width: o, height: c });
363
+ const { offsetWidth: o, offsetHeight: s } = t.current;
364
+ n({ width: o, height: s });
363
365
  }
364
366
  };
365
367
  return i(), window.addEventListener("resize", i), () => {
@@ -372,10 +374,10 @@ const yt = ({ transaction: t, onClick: r }) => {
372
374
  monthlyAmount: n,
373
375
  monthlyAmountLabel: i,
374
376
  trendAmount: o,
375
- trendAmountLabel: c
377
+ trendAmountLabel: s
376
378
  }) => {
377
- const T = M();
378
- return /* @__PURE__ */ s(
379
+ const d = M();
380
+ return /* @__PURE__ */ a(
379
381
  l,
380
382
  {
381
383
  sx: {
@@ -388,7 +390,7 @@ const yt = ({ transaction: t, onClick: r }) => {
388
390
  ...r
389
391
  },
390
392
  children: [
391
- i && /* @__PURE__ */ s(l, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
393
+ i && /* @__PURE__ */ a(l, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
392
394
  /* @__PURE__ */ e(
393
395
  "svg",
394
396
  {
@@ -401,13 +403,13 @@ const yt = ({ transaction: t, onClick: r }) => {
401
403
  children: /* @__PURE__ */ e("rect", { fill: t, height: "12", rx: "2", width: "12" })
402
404
  }
403
405
  ),
404
- /* @__PURE__ */ s(m, { id: "chartLegendLabel", variant: "caption", children: [
406
+ /* @__PURE__ */ a(m, { id: "chartLegendLabel", variant: "caption", children: [
405
407
  i,
406
408
  ": ",
407
409
  n
408
410
  ] })
409
411
  ] }),
410
- c && /* @__PURE__ */ s(l, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
412
+ s && /* @__PURE__ */ a(l, { sx: { alignItems: "center", flexDirection: "row", gap: 8 }, children: [
411
413
  /* @__PURE__ */ e(
412
414
  "svg",
413
415
  {
@@ -417,11 +419,11 @@ const yt = ({ transaction: t, onClick: r }) => {
417
419
  height: "12",
418
420
  role: "figure",
419
421
  width: "12",
420
- children: /* @__PURE__ */ e("rect", { fill: T.palette.chart.chart7, height: "12", rx: "2", width: "12" })
422
+ children: /* @__PURE__ */ e("rect", { fill: d.palette.chart.chart7, height: "12", rx: "2", width: "12" })
421
423
  }
422
424
  ),
423
- /* @__PURE__ */ s(m, { id: "chartLegendLabel", variant: "caption", children: [
424
- c,
425
+ /* @__PURE__ */ a(m, { id: "chartLegendLabel", variant: "caption", children: [
426
+ s,
425
427
  ": ",
426
428
  o
427
429
  ] })
@@ -439,18 +441,18 @@ const yt = ({ transaction: t, onClick: r }) => {
439
441
  dataIndex: n,
440
442
  removeSelectedTabColorChange: i,
441
443
  selectedTabIndex: o,
442
- style: c,
443
- ...T
444
+ style: s,
445
+ ...d
444
446
  }) => {
445
- const g = M(), { ariaLabel: C, formattedAmount: d } = r[n], p = o === n ? "bold" : 400, _ = c.x ?? 0, a = c.y ?? 0, u = c.width ?? 0, A = c.height ?? 0;
446
- return /* @__PURE__ */ s("g", { "aria-label": C, children: [
447
+ const g = M(), { ariaLabel: u, formattedAmount: T } = r[n], _ = o === n ? "bold" : 400, p = s.x ?? 0, C = s.y ?? 0, c = s.width ?? 0, A = s.height ?? 0;
448
+ return /* @__PURE__ */ a("g", { "aria-label": u, children: [
447
449
  /* @__PURE__ */ e(
448
450
  "path",
449
451
  {
450
- ...T,
451
- d: Ut(u, A),
452
+ ...d,
453
+ d: Ut(c, A),
452
454
  fill: t[n],
453
- transform: `translate(${_}, ${a})`
455
+ transform: `translate(${p}, ${C})`
454
456
  }
455
457
  ),
456
458
  /* @__PURE__ */ e(
@@ -458,11 +460,11 @@ const yt = ({ transaction: t, onClick: r }) => {
458
460
  {
459
461
  fill: g.palette.text.primary,
460
462
  fontSize: 11,
461
- fontWeight: i ? "bold" : p,
463
+ fontWeight: i ? "bold" : _,
462
464
  textAnchor: "middle",
463
- x: _ + u / 2,
464
- y: a - 8,
465
- children: d
465
+ x: p + c / 2,
466
+ y: C - 8,
467
+ children: T
466
468
  }
467
469
  )
468
470
  ] });
@@ -477,15 +479,15 @@ const yt = ({ transaction: t, onClick: r }) => {
477
479
  right: 40,
478
480
  top: 20
479
481
  },
480
- onBarClick: c,
481
- legendPosition: T = "bottom",
482
+ onBarClick: s,
483
+ legendPosition: d = "bottom",
482
484
  monthlyAmountLabel: g,
483
- removeSelectedTabColorChange: C,
484
- selectedTabIndex: d,
485
- trendAmountLabel: p
485
+ removeSelectedTabColorChange: u,
486
+ selectedTabIndex: T,
487
+ trendAmountLabel: _
486
488
  }) => {
487
- const _ = I.useRef(null), { height: a, width: u } = Vt(_), A = M(), b = I.useMemo(() => {
488
- const h = n.map(({ value: R }) => R), x = Math.min(...h), E = Math.max(...h);
489
+ const p = x.useRef(null), { height: C, width: c } = Vt(p), A = M(), f = x.useMemo(() => {
490
+ const h = n.map(({ value: R }) => R), S = Math.min(...h), E = Math.max(...h);
489
491
  return {
490
492
  series: [
491
493
  {
@@ -503,38 +505,38 @@ const yt = ({ transaction: t, onClick: r }) => {
503
505
  yAxis: [
504
506
  {
505
507
  scaleType: "linear",
506
- min: x < 0 ? x * 1.2 : 0,
508
+ min: S < 0 ? S * 1.2 : 0,
507
509
  max: E > 0 ? E : 0
508
510
  }
509
511
  ]
510
512
  };
511
- }, [n]), S = I.useMemo(() => {
513
+ }, [n]), O = x.useMemo(() => {
512
514
  const h = `${r}80`;
513
- return C ? n.map(() => r) : d == null ? [...new Array(n.length - 1).fill(h), r] : n.map((x, E) => E === d ? r : h);
514
- }, [r, n, d]), O = I.useMemo(
515
- () => n[d ?? n.length - 1],
516
- [n, d]
517
- ), f = n.reduce((h, x) => Math.min(h, x.value), 1 / 0) < 0, N = /* @__PURE__ */ e(
515
+ return u ? n.map(() => r) : T == null ? [...new Array(n.length - 1).fill(h), r] : n.map((S, E) => E === T ? r : h);
516
+ }, [r, n, T]), D = x.useMemo(
517
+ () => n[T ?? n.length - 1],
518
+ [n, T]
519
+ ), I = n.reduce((h, S) => Math.min(h, S.value), 1 / 0) < 0, N = /* @__PURE__ */ e(
518
520
  zt,
519
521
  {
520
522
  color: r,
521
523
  legendStyle: { pl: o.left },
522
- monthlyAmount: O.formattedAmount,
524
+ monthlyAmount: D.formattedAmount,
523
525
  monthlyAmountLabel: g,
524
526
  trendAmount: t?.formattedAverage,
525
- trendAmountLabel: p
527
+ trendAmountLabel: _
526
528
  }
527
- ), D = g || p, y = (h, { dataIndex: x }) => c?.(x);
528
- return /* @__PURE__ */ s(l, { sx: { alignItems: "center", width: "100%" }, children: [
529
- D && T === "top" && N,
529
+ ), b = g || _, y = (h, { dataIndex: S }) => s?.(S);
530
+ return /* @__PURE__ */ a(l, { sx: { alignItems: "center", width: "100%" }, children: [
531
+ b && d === "top" && N,
530
532
  /* @__PURE__ */ e(
531
533
  L,
532
534
  {
533
- ref: _,
535
+ ref: p,
534
536
  sx: {
535
537
  height: i || 122,
536
- mb: T === "top" ? 0 : 4,
537
- mt: T === "top" ? 4 : 0,
538
+ mb: d === "top" ? 0 : 4,
539
+ mt: d === "top" ? 4 : 0,
538
540
  touchAction: "pan-y",
539
541
  width: "100%",
540
542
  "& svg": {
@@ -545,19 +547,19 @@ const yt = ({ transaction: t, onClick: r }) => {
545
547
  touchAction: "pan-y"
546
548
  }
547
549
  },
548
- children: /* @__PURE__ */ s(
550
+ children: /* @__PURE__ */ a(
549
551
  xt,
550
552
  {
551
- height: a,
553
+ height: C,
552
554
  margin: {
553
555
  bottom: o.bottom,
554
556
  left: o.left,
555
557
  right: o.right,
556
558
  top: o.top || 45
557
559
  },
558
- series: b.series,
559
- width: u,
560
- xAxis: b.xAxis,
560
+ series: f.series,
561
+ width: c,
562
+ xAxis: f.xAxis,
561
563
  yAxis: [{ width: 0 }],
562
564
  children: [
563
565
  t?.average && /* @__PURE__ */ e(
@@ -573,7 +575,7 @@ const yt = ({ transaction: t, onClick: r }) => {
573
575
  y: t?.average
574
576
  }
575
577
  ),
576
- f && /* @__PURE__ */ e(
578
+ I && /* @__PURE__ */ e(
577
579
  U,
578
580
  {
579
581
  labelAlign: "middle",
@@ -588,15 +590,15 @@ const yt = ({ transaction: t, onClick: r }) => {
588
590
  {
589
591
  slots: {
590
592
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
591
- axisTickLabel: ({ text: h, ownerState: x, ...E }) => {
592
- const R = n[d ?? n.length - 1]?.label;
593
+ axisTickLabel: ({ text: h, ownerState: S, ...E }) => {
594
+ const R = n[T ?? n.length - 1]?.label;
593
595
  return /* @__PURE__ */ e(
594
596
  "text",
595
597
  {
596
598
  ...E,
597
599
  style: {
598
600
  ...E.style,
599
- fontWeight: !C && R === h ? "bold" : 400
601
+ fontWeight: !u && R === h ? "bold" : 400
600
602
  },
601
603
  children: h
602
604
  }
@@ -605,13 +607,13 @@ const yt = ({ transaction: t, onClick: r }) => {
605
607
  },
606
608
  sx: (h) => ({
607
609
  "& .MuiChartsAxis-line": {
608
- stroke: f ? "none" : h.palette.text?.primary
610
+ stroke: I ? "none" : h.palette.text?.primary
609
611
  },
610
612
  "& .MuiChartsAxis-tickContainer:first-of-type .MuiChartsAxis-tick": {
611
613
  display: "none"
612
614
  },
613
615
  "& .MuiChartsAxis-tickLabel": {
614
- transform: f ? "translateY(15px)" : {}
616
+ transform: I ? "translateY(15px)" : {}
615
617
  }
616
618
  }),
617
619
  tickLabelStyle: {
@@ -625,16 +627,16 @@ const yt = ({ transaction: t, onClick: r }) => {
625
627
  onItemClick: y,
626
628
  slots: {
627
629
  bar: (h) => {
628
- const { ownerState: x, ...E } = h;
630
+ const { ownerState: S, ...E } = h;
629
631
  return /* @__PURE__ */ e(
630
632
  Wt,
631
633
  {
632
634
  ...E,
633
- colorRange: S,
635
+ colorRange: O,
634
636
  data: n,
635
- dataIndex: x.dataIndex,
636
- removeSelectedTabColorChange: C,
637
- selectedTabIndex: d ?? n.length - 1,
637
+ dataIndex: S.dataIndex,
638
+ removeSelectedTabColorChange: u,
639
+ selectedTabIndex: T ?? n.length - 1,
638
640
  style: {
639
641
  height: h.height,
640
642
  x: h.x,
@@ -652,7 +654,7 @@ const yt = ({ transaction: t, onClick: r }) => {
652
654
  )
653
655
  }
654
656
  ),
655
- D && T === "bottom" && N
657
+ b && d === "bottom" && N
656
658
  ] });
657
659
  }, Se = ({
658
660
  ariaLabel: t,
@@ -660,37 +662,37 @@ const yt = ({ transaction: t, onClick: r }) => {
660
662
  beat: n,
661
663
  data: i,
662
664
  defaultSelectedIndex: o = 0,
663
- icon: c,
664
- isOpen: T = !1,
665
+ icon: s,
666
+ isOpen: d = !1,
665
667
  onClose: g,
666
- onTabChange: C,
667
- tipSection: d,
668
- title: p,
669
- transactionListProps: _ = {}
668
+ onTabChange: u,
669
+ tipSection: T,
670
+ title: _,
671
+ transactionListProps: p = {}
670
672
  }) => {
671
- const { common: a, transactions: u } = z(), { isCopyLoaded: A } = Tt(), { sortedTransactionsWithSplits: b, tags: S } = G();
672
- return A ? /* @__PURE__ */ e(It, { ariaLabelClose: a.close_aria, isOpen: T, onClose: g, title: p, children: /* @__PURE__ */ e(
673
+ const { common: C, transactions: c } = z(), { isCopyLoaded: A } = Tt(), { sortedTransactionsWithSplits: f, tags: O } = G();
674
+ return A ? /* @__PURE__ */ e(It, { ariaLabelClose: C.close_aria, isOpen: d, onClose: g, title: _, children: /* @__PURE__ */ e(
673
675
  $t,
674
676
  {
675
677
  ariaLabel: t,
676
678
  beat: n,
677
- chart: (O, w) => /* @__PURE__ */ e(L, { sx: { pt: 16 }, children: /* @__PURE__ */ e(
679
+ chart: (D, w) => /* @__PURE__ */ e(L, { sx: { pt: 16 }, children: /* @__PURE__ */ e(
678
680
  Bt,
679
681
  {
680
682
  ...r,
681
- onBarClick: (f) => {
682
- w(f), r.onBarClick?.(f);
683
+ onBarClick: (I) => {
684
+ w(I), r.onBarClick?.(I);
683
685
  },
684
- selectedTabIndex: O
686
+ selectedTabIndex: D
685
687
  }
686
688
  ) }),
687
689
  data: i,
688
690
  defaultSelectedIndex: o,
689
- icon: c,
690
- onTabChange: C,
691
- tipSection: d,
692
- children: () => /* @__PURE__ */ s(I.Fragment, { children: [
693
- /* @__PURE__ */ s(
691
+ icon: s,
692
+ onTabChange: u,
693
+ tipSection: T,
694
+ children: () => /* @__PURE__ */ a(x.Fragment, { children: [
695
+ /* @__PURE__ */ a(
694
696
  l,
695
697
  {
696
698
  sx: {
@@ -705,25 +707,25 @@ const yt = ({ transaction: t, onClick: r }) => {
705
707
  px: 24
706
708
  },
707
709
  children: [
708
- /* @__PURE__ */ e(m, { bold: !0, variant: "body1", children: u.transactions_title }),
709
- (_?.transaction || b.length > 0) && /* @__PURE__ */ e(
710
+ /* @__PURE__ */ e(m, { bold: !0, variant: "body1", children: c.transactions_title }),
711
+ (p?.transaction || f.length > 0) && /* @__PURE__ */ e(
710
712
  Y,
711
713
  {
712
714
  onClick: () => {
713
715
  ot(
714
- _?.transaction || b,
715
- S
716
+ p?.transaction || f,
717
+ O
716
718
  );
717
719
  },
718
720
  startIcon: /* @__PURE__ */ e(rt, { name: "ios_share" }),
719
721
  sx: { height: 28 },
720
- children: /* @__PURE__ */ e(m, { bold: !0, variant: "body2", children: u.export_csv_btn })
722
+ children: /* @__PURE__ */ e(m, { bold: !0, variant: "body2", children: c.export_csv_btn })
721
723
  }
722
724
  )
723
725
  ]
724
726
  }
725
727
  ),
726
- /* @__PURE__ */ e(Ht, { ..._ })
728
+ /* @__PURE__ */ e(Ht, { ...p })
727
729
  ] })
728
730
  }
729
731
  ) }) : /* @__PURE__ */ e(Z, {});
@@ -733,20 +735,20 @@ const yt = ({ transaction: t, onClick: r }) => {
733
735
  count: n,
734
736
  completeColor: i = "success.main",
735
737
  icon: o,
736
- label: c,
737
- leftLabel: T,
738
+ label: s,
739
+ leftLabel: d,
738
740
  percentComplete: g = 0,
739
- rightLabel: C,
740
- sx: d
741
- }) => /* @__PURE__ */ s(l, { className: "details-container", sx: { p: 24, width: "100%", gap: 16, ...d }, children: [
742
- /* @__PURE__ */ s(l, { sx: { alignItems: "center", flexDirection: "row", gap: 12 }, children: [
741
+ rightLabel: u,
742
+ sx: T
743
+ }) => /* @__PURE__ */ a(l, { className: "details-container", sx: { p: 24, width: "100%", gap: 16, ...T }, children: [
744
+ /* @__PURE__ */ a(l, { sx: { alignItems: "center", flexDirection: "row", gap: 12 }, children: [
743
745
  /* @__PURE__ */ e(L, { children: o }),
744
- /* @__PURE__ */ s(l, { children: [
745
- typeof c == "string" ? /* @__PURE__ */ e($, { dangerouslySetInnerHTML: { __html: c }, variant: "body2" }) : c,
746
+ /* @__PURE__ */ a(l, { children: [
747
+ typeof s == "string" ? /* @__PURE__ */ e($, { dangerouslySetInnerHTML: { __html: s }, variant: "body2" }) : s,
746
748
  typeof t == "string" ? /* @__PURE__ */ e(et, { children: t }) : t
747
749
  ] })
748
750
  ] }),
749
- /* @__PURE__ */ s(l, { sx: { gap: 4 }, children: [
751
+ /* @__PURE__ */ a(l, { sx: { gap: 4 }, children: [
750
752
  /* @__PURE__ */ e(
751
753
  l,
752
754
  {
@@ -775,9 +777,9 @@ const yt = ({ transaction: t, onClick: r }) => {
775
777
  )
776
778
  }
777
779
  ),
778
- !n && /* @__PURE__ */ s(l, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
779
- /* @__PURE__ */ e(m, { variant: "body2", children: T }),
780
- /* @__PURE__ */ e(m, { variant: "body2", children: C })
780
+ !n && /* @__PURE__ */ a(l, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: [
781
+ /* @__PURE__ */ e(m, { variant: "body2", children: d }),
782
+ /* @__PURE__ */ e(m, { variant: "body2", children: u })
781
783
  ] })
782
784
  ] })
783
785
  ] }), De = ({
@@ -787,7 +789,7 @@ const yt = ({ transaction: t, onClick: r }) => {
787
789
  instanceSlot: i = void 0,
788
790
  onCtaClick: o = () => {
789
791
  }
790
- }) => /* @__PURE__ */ s(Dt, { sx: { pt: 8, pr: 16, pb: 12, pl: 8, borderRadius: "8px" }, children: [
792
+ }) => /* @__PURE__ */ a(Dt, { sx: { pt: 8, pr: 16, pb: 12, pl: 8, borderRadius: "8px" }, children: [
791
793
  /* @__PURE__ */ e(
792
794
  l,
793
795
  {
@@ -801,7 +803,7 @@ const yt = ({ transaction: t, onClick: r }) => {
801
803
  children: /* @__PURE__ */ e(m, { bold: !0, variant: "body1", children: t })
802
804
  }
803
805
  ),
804
- /* @__PURE__ */ s(
806
+ /* @__PURE__ */ a(
805
807
  l,
806
808
  {
807
809
  sx: {
@@ -811,7 +813,7 @@ const yt = ({ transaction: t, onClick: r }) => {
811
813
  justifyContent: "space-between"
812
814
  },
813
815
  children: [
814
- /* @__PURE__ */ s(l, { children: [
816
+ /* @__PURE__ */ a(l, { children: [
815
817
  /* @__PURE__ */ e(l, { sx: { pt: 2, pl: 8, pb: 8 }, children: /* @__PURE__ */ e($, { sx: { fontWeight: 400 }, variant: "subtitle2", children: r }) }),
816
818
  /* @__PURE__ */ e(l, { sx: { alignItems: "flex-start" }, children: /* @__PURE__ */ e(
817
819
  Y,
@@ -2,7 +2,7 @@ import { jsx as o } from "react/jsx-runtime";
2
2
  import { observer as c } from "mobx-react-lite";
3
3
  import { Icon as i } from "@mxenabled/mxui";
4
4
  import { e as p } from "./TransactionUtils-BphBJBbU.mjs";
5
- import { O as m } from "./EmbeddedCard-CsIrZL3g.mjs";
5
+ import { O as m } from "./EmbeddedCard-DH8vQ3qN.mjs";
6
6
  import { f as x, g as _, u as C } from "./hooks-97sNJ_lf.mjs";
7
7
  import { R as l } from "./ResponsiveButton-CC9F_Ezk.mjs";
8
8
  const v = ({ filter: t }) => {
@@ -0,0 +1,43 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import o from "@mui/material/ListItem";
3
+ import l from "@mui/material/ListItemButton";
4
+ import { f } from "./hooks-97sNJ_lf.mjs";
5
+ const g = ({
6
+ children: t,
7
+ clickEventName: e,
8
+ component: r,
9
+ onClick: a,
10
+ sx: i = {}
11
+ }) => {
12
+ const { onEvent: p } = f();
13
+ return a ? /* @__PURE__ */ s(
14
+ o,
15
+ {
16
+ className: "list-wrapper",
17
+ ...r && { component: r },
18
+ sx: { bgcolor: "background.paper", ...i },
19
+ children: /* @__PURE__ */ s(
20
+ l,
21
+ {
22
+ onClick: () => {
23
+ e && p(e), a();
24
+ },
25
+ children: t
26
+ }
27
+ )
28
+ }
29
+ ) : /* @__PURE__ */ s(
30
+ o,
31
+ {
32
+ className: "list-wrapper",
33
+ ...r && { component: r },
34
+ disableGutters: !1,
35
+ disablePadding: !1,
36
+ sx: { bgcolor: "background.paper", ...i },
37
+ children: t
38
+ }
39
+ );
40
+ };
41
+ export {
42
+ g as L
43
+ };
@@ -17,12 +17,12 @@ import { startOfToday as U } from "date-fns/startOfToday";
17
17
  import { endOfMonth as We } from "date-fns/endOfMonth";
18
18
  import fe from "@mui/material/Button";
19
19
  import { CheckCircle as Ke, Cancel as qe, Icon as je, ChevronRight as He, Delete as Qe, Add as $e, ReceiptLong as Xe } from "@mxenabled/mx-icons";
20
- import { T as Ze } from "./TransactionDetails-BRu5HpG8.mjs";
21
- import { a as Je } from "./AccountDetailsDrawer-DhBGzsRl.mjs";
20
+ import { T as Ze } from "./TransactionDetails-roZ5xLq8.mjs";
21
+ import { a as Je } from "./AccountDetailsDrawer-CZPeLsCq.mjs";
22
22
  import { u as Ve } from "./AccountDetailsHeader-BvbCUQSS.mjs";
23
23
  import { C as ee } from "./Category-DEKZGLYe.mjs";
24
24
  import { T as ge } from "./TransactionUtils-BphBJBbU.mjs";
25
- import { u as Ce, T as et, S as tt, a as nt } from "./EmbeddedCard-CsIrZL3g.mjs";
25
+ import { u as Ce, T as et, S as tt, a as nt } from "./EmbeddedCard-DH8vQ3qN.mjs";
26
26
  import { u as x, h as Y, g as re, f as K, a as at, c as ot, C as rt } from "./hooks-97sNJ_lf.mjs";
27
27
  import { S as it } from "./SearchBox-Cpgu_gdO.mjs";
28
28
  import { D as z } from "./Drawer-DsnW2o0v.mjs";
@@ -40,7 +40,7 @@ import { getUnixTime as mt } from "date-fns/getUnixTime";
40
40
  import _t from "@mui/material/IconButton";
41
41
  import pt from "@mui/material/Menu";
42
42
  import ht from "@mui/material/MenuItem";
43
- import { L as yt } from "./ListItemWrapper-Bw5FDCJ8.mjs";
43
+ import { L as yt } from "./ListItemWrapper-DRse79Iu.mjs";
44
44
  import { f as Se, D as xe } from "./DateFormats-HudZ3Bjs.mjs";
45
45
  import ft from "@mui/material/Card";
46
46
  import gt from "@mui/material/CardActionArea";
@@ -713,7 +713,7 @@ const Q = (n) => n.top_level_category_guid !== ee.INCOME && n.transaction_type =
713
713
  return /* @__PURE__ */ l(p, { bgcolor: n, gap: 24, height: "100%", children: [
714
714
  /* @__PURE__ */ l(p, { children: [
715
715
  /* @__PURE__ */ e(tt, { bgcolor: n, children: kt(d.date) }),
716
- /* @__PURE__ */ e(nt, { transaction: d })
716
+ /* @__PURE__ */ e(nt, { component: "div", transaction: d })
717
717
  ] }),
718
718
  /* @__PURE__ */ l(j, { children: [
719
719
  /* @__PURE__ */ e(y, { bold: !0, sx: { mx: 24 }, variant: "body1", children: h.payment_schedule }),
@@ -7,7 +7,7 @@ import R from "@mui/material/Tabs";
7
7
  import d from "@mui/material/Divider";
8
8
  import b from "@mui/material/List";
9
9
  import T from "@mui/material/Stack";
10
- import { R as C, A as S, a as E, M as v } from "./ManageIncome-DucNK5Pr.mjs";
10
+ import { R as C, A as S, a as E, M as v } from "./ManageIncome-Dcsnnz86.mjs";
11
11
  import { u as _, h as A, f } from "./hooks-97sNJ_lf.mjs";
12
12
  import { R as y, F as N } from "./RecurringTransactionsUtil-CHWmqvW5.mjs";
13
13
  import { A as m } from "./Analytics-WeZYytR0.mjs";
@@ -22,7 +22,7 @@ import Xe from "@mui/material/FormGroup";
22
22
  import ue from "@mui/material/IconButton";
23
23
  import $e from "@mui/material/TextField";
24
24
  import { u as Ae } from "./useAriaLive-MkYebyUR.mjs";
25
- import { b as Ze, T as Je, u as ne, O as f, c as et, d as tt, E as at, C as nt } from "./EmbeddedCard-CsIrZL3g.mjs";
25
+ import { b as Ze, T as Je, u as ne, O as f, c as et, d as tt, E as at, C as nt } from "./EmbeddedCard-DH8vQ3qN.mjs";
26
26
  import { u as E, g as M, o as rt, c as ot, l as we, f as G, a as it, C as st } from "./hooks-97sNJ_lf.mjs";
27
27
  import { A as j } from "./Analytics-WeZYytR0.mjs";
28
28
  import lt from "@mui/material/ToggleButton";
@@ -12,8 +12,8 @@ import Z from "@mui/system/Stack";
12
12
  import { f as U } from "../NumberFormatting--XMeeBfr.mjs";
13
13
  import { u as X, g as e1 } from "../AccountDetailsHeader-BvbCUQSS.mjs";
14
14
  import { A as K1, a as z1, b as $1 } from "../AccountDetailsHeader-BvbCUQSS.mjs";
15
- import { A as E, a as t1 } from "../AccountDetailsDrawer-DhBGzsRl.mjs";
16
- import { b as q1, u as J1 } from "../AccountDetailsDrawer-DhBGzsRl.mjs";
15
+ import { A as E, a as t1 } from "../AccountDetailsDrawer-CZPeLsCq.mjs";
16
+ import { b as q1, u as J1 } from "../AccountDetailsDrawer-CZPeLsCq.mjs";
17
17
  import { i as z, u as R, a as x, c as N, f as $ } from "../hooks-97sNJ_lf.mjs";
18
18
  import { A } from "../Analytics-WeZYytR0.mjs";
19
19
  import { C as l1 } from "../ConnectionsDrawer-CZU9ku-k.mjs";
@@ -35,8 +35,8 @@ import { A as P } from "../Analytics-WeZYytR0.mjs";
35
35
  import Ee from "@mui/material/Tab";
36
36
  import Qe from "@mui/material/Tabs";
37
37
  import { e as et, g as we } from "../TransactionUtils-BphBJBbU.mjs";
38
- import { T as ve } from "../EmbeddedCard-CsIrZL3g.mjs";
39
- import { T as tt, c as ot } from "../TransactionDetails-BRu5HpG8.mjs";
38
+ import { T as ve } from "../EmbeddedCard-DH8vQ3qN.mjs";
39
+ import { T as tt, c as ot } from "../TransactionDetails-roZ5xLq8.mjs";
40
40
  import Te from "@mui/material/Card";
41
41
  import De from "@mui/material/CardContent";
42
42
  import { S as Se } from "../StatusBar-CPfSXe80.mjs";
@@ -45,7 +45,7 @@ import { u as nt, C as at } from "../CategorySelectorDrawer-NJsFsKP1.mjs";
45
45
  import Pe from "@mui/material/CardHeader";
46
46
  import { subDays as rt } from "date-fns/subDays";
47
47
  import st from "@mui/material/IconButton";
48
- import { M as it } from "../ManageIncome-DucNK5Pr.mjs";
48
+ import { M as it } from "../ManageIncome-Dcsnnz86.mjs";
49
49
  import { u as je } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
50
50
  import { W as ct } from "../WidgetContainer-DJnp6t6c.mjs";
51
51
  import { g as lt, a as dt } from "../BudgetUtil-Bg2AQJpQ.mjs";
@@ -17,13 +17,13 @@ import { I as pe } from "../InformationTooltip-4su8bn1e.mjs";
17
17
  import { u as Oe } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
18
18
  import { M as Ze } from "../MiniWidgetContainer-Bmv_WeUd.mjs";
19
19
  import { E as et } from "../EmptyState-CJUDc3kD.mjs";
20
- import { R as tt } from "../RecurringSettings-D9P4-Yr1.mjs";
20
+ import { R as tt } from "../RecurringSettings-D8hBbXV_.mjs";
21
21
  import nt from "@mui/material/Tabs";
22
22
  import ye from "@mui/material/Tab";
23
23
  import { getUnixTime as le } from "date-fns/getUnixTime";
24
24
  import Q from "@mui/material/List";
25
25
  import ee from "@mui/material/ListItem";
26
- import { A as ot } from "../AccountDetailsDrawer-DhBGzsRl.mjs";
26
+ import { A as ot } from "../AccountDetailsDrawer-CZPeLsCq.mjs";
27
27
  import { f as U, D as Y } from "../DateFormats-HudZ3Bjs.mjs";
28
28
  import it from "@mui/material/ListSubheader";
29
29
  import { f as J } from "../NumberFormatting--XMeeBfr.mjs";
@@ -34,7 +34,7 @@ import { addDays as _e } from "date-fns/addDays";
34
34
  import { DataGridPro as at } from "@mui/x-data-grid-pro";
35
35
  import { T as Ce } from "../TabContentContainer-B0eYJP5p.mjs";
36
36
  import W from "@mui/material/Button";
37
- import { M as rt, S as st, i as ct, b as we, c as lt } from "../ManageIncome-DucNK5Pr.mjs";
37
+ import { M as rt, S as st, i as ct, b as we, c as lt } from "../ManageIncome-Dcsnnz86.mjs";
38
38
  import { D as He } from "../Drawer-DsnW2o0v.mjs";
39
39
  import { subDays as We } from "date-fns/subDays";
40
40
  import { endOfToday as dt } from "date-fns/endOfToday";
@@ -44,7 +44,7 @@ import { A as Se } from "../Analytics-WeZYytR0.mjs";
44
44
  import { formatISO as ut } from "date-fns/formatISO";
45
45
  import { fromUnixTime as De } from "date-fns/fromUnixTime";
46
46
  import { startOfMonth as pt } from "date-fns/startOfMonth";
47
- import { S as ht, a as ft } from "../EmbeddedCard-CsIrZL3g.mjs";
47
+ import { S as ht, a as ft } from "../EmbeddedCard-DH8vQ3qN.mjs";
48
48
  import { F as gt, R as Ie, d as ve } from "../RecurringTransactionsUtil-CHWmqvW5.mjs";
49
49
  import { k as bt } from "../DateUtil-CzBmbjmA.mjs";
50
50
  const q = () => {
@@ -1,7 +1,8 @@
1
- import { default as React } from 'react';
1
+ import { default as React, ElementType } from 'react';
2
2
  import { SxProps } from '@mui/material/styles';
3
3
  interface ListItemWrapperProps {
4
4
  clickEventName?: string;
5
+ component?: ElementType;
5
6
  onClick?: () => void;
6
7
  sx?: SxProps;
7
8
  }
@@ -32,7 +32,7 @@ import { G as oe } from "../GlobalAccountFilter-BhzR5Vb1.mjs";
32
32
  import { G as ae, m as se, n as ne, W as ie, c as ue, i as le, o as me, p as de, l as ce, q as fe, r as pe, f as ye, s as ge, u as xe, e as Ee, a as he, k as Se, t as Ce, v as _e, w as ve, b as ke, x as be, y as Oe, z as De, h as Te, A as Ie, g as Ae, B as Me, C as Pe, D as we } from "../hooks-97sNJ_lf.mjs";
33
33
  import { L as Le } from "../ListItemAction-BqUCLj_w.mjs";
34
34
  import { L as Ue } from "../ListItemRow-kH1rn8Xu.mjs";
35
- import { L as Be } from "../ListItemWrapper-Bw5FDCJ8.mjs";
35
+ import { L as Be } from "../ListItemWrapper-DRse79Iu.mjs";
36
36
  import { S as qe } from "../SearchBox-Cpgu_gdO.mjs";
37
37
  import { S as Fe, T as $e } from "../Sizes-DISGrlUg.mjs";
38
38
  import { T as Qe, a as je } from "../ToggleListItem-Dl1lXNwj.mjs";
@@ -49,7 +49,7 @@ import { S as dt } from "../Select-CSpkK5cR.mjs";
49
49
  import { c as je } from "../Account-DR7Plrqy.mjs";
50
50
  import { S as zn } from "../StatusBar-CPfSXe80.mjs";
51
51
  import { k as Dt } from "../DateUtil-CzBmbjmA.mjs";
52
- import { T as Hn, s as Kn, h as Vn, S as jn, a as Yn } from "../EmbeddedCard-CsIrZL3g.mjs";
52
+ import { T as Hn, s as Kn, h as Vn, S as jn, a as Yn } from "../EmbeddedCard-DH8vQ3qN.mjs";
53
53
  import { T as ge } from "../TabContentContainer-B0eYJP5p.mjs";
54
54
  import Xn from "@mui/material/useMediaQuery";
55
55
  import { BarPlot as Un } from "@mui/x-charts/BarChart";
@@ -62,11 +62,11 @@ import { g as Jn, S as eo, b as to } from "../SpendingLegend-CxvNOg3c.mjs";
62
62
  import { formatISO as no } from "date-fns/formatISO";
63
63
  import { fromUnixTime as oo } from "date-fns/fromUnixTime";
64
64
  import { subDays as ro } from "date-fns/subDays";
65
- import { c as ao, b as pt, S as io, i as so } from "../ManageIncome-DucNK5Pr.mjs";
65
+ import { c as ao, b as pt, S as io, i as so } from "../ManageIncome-Dcsnnz86.mjs";
66
66
  import { F as Tt, d as co, R as Ot } from "../RecurringTransactionsUtil-CHWmqvW5.mjs";
67
67
  import { LocalizationProvider as lo, DatePicker as po, StaticDatePicker as uo } from "@mui/x-date-pickers";
68
68
  import { AdapterDateFns as Rt } from "@mui/x-date-pickers/AdapterDateFnsV3";
69
- import { R as _o } from "../RecurringSettings-D9P4-Yr1.mjs";
69
+ import { R as _o } from "../RecurringSettings-D8hBbXV_.mjs";
70
70
  import { LocalizationProvider as mo } from "@mui/x-date-pickers/LocalizationProvider";
71
71
  import ho from "@mui/lab/Timeline";
72
72
  import go, { timelineItemClasses as yo } from "@mui/lab/TimelineItem";
@@ -2805,7 +2805,7 @@ const tr = ({ total: t }) => {
2805
2805
  return u.push(
2806
2806
  /* @__PURE__ */ s(m.Fragment, { children: [
2807
2807
  v && /* @__PURE__ */ e(jn, { children: Dt(h.date) }),
2808
- /* @__PURE__ */ e(Yn, { transaction: h }),
2808
+ /* @__PURE__ */ e(Yn, { component: "div", transaction: h }),
2809
2809
  /* @__PURE__ */ e(ae, { sx: { ml: x ? 44 : 0 } })
2810
2810
  ] }, h.guid)
2811
2811
  ), u;
@@ -1,8 +1,8 @@
1
1
  import { jsx as t, jsxs as c, Fragment as N } from "react/jsx-runtime";
2
2
  import { BottomSheetTransition as r2, Text as E, MerchantLogo as Q, InstitutionLogo as F, P as J, H3 as h1, H2 as c1, Icon as k1, CategoryIcon as g1, createMXTheme as i2 } from "@mxenabled/mxui";
3
3
  import C from "@mui/material/Stack";
4
- import { e as K, p as n2, B as z1, b as l2 } from "../EmbeddedCard-CsIrZL3g.mjs";
5
- import { f as d5, C as C5, E as m5 } from "../EmbeddedCard-CsIrZL3g.mjs";
4
+ import { e as K, p as n2, B as z1, b as l2 } from "../EmbeddedCard-DH8vQ3qN.mjs";
5
+ import { f as d5, C as C5, E as m5 } from "../EmbeddedCard-DH8vQ3qN.mjs";
6
6
  import { CardHeader as a2, Stack as v, Button as A1, Card as j1, Box as L1, ToggleButtonGroup as o2, TextField as s2, Grow as c2, Alert as h2, useTheme as d2, useMediaQuery as H1, AppBar as C2, Toolbar as m2, IconButton as u1, List as p2, ListItem as E2, Divider as u2 } from "@mui/material";
7
7
  import { useTheme as f2, styled as x2, Stack as f1 } from "@mui/system";
8
8
  import { Link as y2, Icon as S, CheckCircle as W1, ChevronRight as M2 } from "@mxenabled/mx-icons";
@@ -8,8 +8,8 @@ import { startOfToday as Q } from "date-fns/startOfToday";
8
8
  import { subDays as ee } from "date-fns/subDays";
9
9
  import Be from "@mui/material/Alert";
10
10
  import Fe from "@mui/material/Snackbar";
11
- import { R as De } from "../RecurringSettings-D9P4-Yr1.mjs";
12
- import { M as Jn } from "../RecurringSettings-D9P4-Yr1.mjs";
11
+ import { R as De } from "../RecurringSettings-D8hBbXV_.mjs";
12
+ import { M as Jn } from "../RecurringSettings-D8hBbXV_.mjs";
13
13
  import { addMonths as Ue } from "date-fns/addMonths";
14
14
  import { subMonths as Ye } from "date-fns/subMonths";
15
15
  import { isBefore as je } from "date-fns/isBefore";
@@ -52,8 +52,8 @@ import { f as L } from "../NumberFormatting--XMeeBfr.mjs";
52
52
  import N from "@mui/material/Box";
53
53
  import { u as ve } from "../useScreenSize-mWpmnh5w.mjs";
54
54
  import { S as Le } from "../StatusBar-CPfSXe80.mjs";
55
- import { d as Ct } from "../ManageIncome-DucNK5Pr.mjs";
56
- import { c as er, M as tr, S as nr } from "../ManageIncome-DucNK5Pr.mjs";
55
+ import { d as Ct } from "../ManageIncome-Dcsnnz86.mjs";
56
+ import { c as er, M as tr, S as nr } from "../ManageIncome-Dcsnnz86.mjs";
57
57
  import { D as ie } from "../Drawer-DsnW2o0v.mjs";
58
58
  import { S as Ae } from "../SkeletonLoader-BaNboJjD.mjs";
59
59
  import { u as oe } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
@@ -19,8 +19,8 @@ import { startOfToday as J } from "date-fns/startOfToday";
19
19
  import St from "@mui/material/Button";
20
20
  import { useTheme as Tt } from "@mui/material";
21
21
  import { e as Mt } from "../TransactionUtils-BphBJBbU.mjs";
22
- import { T as Dt } from "../EmbeddedCard-CsIrZL3g.mjs";
23
- import { T as xt } from "../TransactionDetails-BRu5HpG8.mjs";
22
+ import { T as Dt } from "../EmbeddedCard-DH8vQ3qN.mjs";
23
+ import { T as xt } from "../TransactionDetails-roZ5xLq8.mjs";
24
24
  import vt from "@mui/material/Collapse";
25
25
  import wt from "@mui/material/Divider";
26
26
  import Q from "@mui/material/List";
@@ -1,6 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { Transaction } from '../../../../core';
3
3
  interface TransactionRowProps {
4
+ component?: React.ElementType;
4
5
  onClick?: (guid: string) => void;
5
6
  transaction: Transaction;
6
7
  }
@@ -1,8 +1,8 @@
1
- import { C as Be, D as He, M as Pe, a as We, T as $e } from "../TransactionDetails-BRu5HpG8.mjs";
2
- import { B as xa, b as Aa } from "../TransactionDetails-BRu5HpG8.mjs";
3
- import { u as B, T as Ge } from "../EmbeddedCard-CsIrZL3g.mjs";
4
- import { a as Sa } from "../EmbeddedCard-CsIrZL3g.mjs";
5
- import { E as va } from "../ExportCsvAction-DPffdVf-.mjs";
1
+ import { C as Be, D as He, M as Pe, a as We, T as $e } from "../TransactionDetails-roZ5xLq8.mjs";
2
+ import { B as xa, b as Aa } from "../TransactionDetails-roZ5xLq8.mjs";
3
+ import { u as B, T as Ge } from "../EmbeddedCard-DH8vQ3qN.mjs";
4
+ import { a as Sa } from "../EmbeddedCard-DH8vQ3qN.mjs";
5
+ import { E as va } from "../ExportCsvAction-C9KWH3Az.mjs";
6
6
  import { jsxs as m, jsx as e } from "react/jsx-runtime";
7
7
  import u from "react";
8
8
  import { observer as D } from "mobx-react-lite";
@@ -34,8 +34,8 @@ import { useGridApiContext as Yt, useGridRootProps as jt, DataGridPro as Ut } fr
34
34
  import Xt from "@mui/material/Badge";
35
35
  import Zt from "@mui/material/IconButton";
36
36
  import { A as w } from "../Analytics-WeZYytR0.mjs";
37
- import { T as ct } from "../EmbeddedCard-CsIrZL3g.mjs";
38
- import { T as dt } from "../TransactionDetails-BRu5HpG8.mjs";
37
+ import { T as ct } from "../EmbeddedCard-DH8vQ3qN.mjs";
38
+ import { T as dt } from "../TransactionDetails-roZ5xLq8.mjs";
39
39
  import { D as Pe } from "../Drawer-DsnW2o0v.mjs";
40
40
  import { u as Ie } from "../useWidgetLoadTimer-B0tB-yzL.mjs";
41
41
  import { L as Le } from "../Loader-CxeBwuPG.mjs";
@@ -55,7 +55,7 @@ import { g as Oe } from "../TransactionUtils-BphBJBbU.mjs";
55
55
  import { L as uo } from "../ListItemRow-kH1rn8Xu.mjs";
56
56
  import { Stack as mo } from "@mui/material";
57
57
  import ho from "@mui/material/ListItemAvatar";
58
- import { E as go } from "../ExportCsvAction-DPffdVf-.mjs";
58
+ import { E as go } from "../ExportCsvAction-C9KWH3Az.mjs";
59
59
  import { u as po } from "../useInsightsEnabled-D5Sdm0TJ.mjs";
60
60
  import { E as fo } from "../EmptyState-CJUDc3kD.mjs";
61
61
  import { C as yo } from "../ConnectDrawer-CW4LA3H3.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "9.0.15-alpha.al2",
3
+ "version": "9.0.15-alpha.al4",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",
@@ -1,33 +0,0 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import a from "@mui/material/ListItem";
3
- import i from "@mui/material/ListItemButton";
4
- import { f as m } from "./hooks-97sNJ_lf.mjs";
5
- const b = ({
6
- children: s,
7
- clickEventName: t,
8
- onClick: e,
9
- sx: o = {}
10
- }) => {
11
- const { onEvent: p } = m();
12
- return e ? /* @__PURE__ */ r(a, { className: "list-wrapper", sx: { bgcolor: "background.paper", ...o }, children: /* @__PURE__ */ r(
13
- i,
14
- {
15
- onClick: () => {
16
- t && p(t), e();
17
- },
18
- children: s
19
- }
20
- ) }) : /* @__PURE__ */ r(
21
- a,
22
- {
23
- className: "list-wrapper",
24
- disableGutters: !1,
25
- disablePadding: !1,
26
- sx: { bgcolor: "background.paper", ...o },
27
- children: s
28
- }
29
- );
30
- };
31
- export {
32
- b as L
33
- };