@mx-cartographer/insights-ui 1.16.11-alpha.lonniem.2 → 1.16.11-alpha.lonniem.4

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/dist/index.es.js CHANGED
@@ -1,17 +1,17 @@
1
1
  import { jsx as e, jsxs as d, Fragment as V } from "react/jsx-runtime";
2
2
  import * as i from "react";
3
- import v, { useState as oe, useRef as U, useLayoutEffect as se, useMemo as me, useCallback as He, forwardRef as Y, useEffect as xe } from "react";
4
- import { BottomSheetTransition as Le, P as S, Text as w, MerchantLogo as j, InstitutionLogo as G, H3 as ae, CategoryIcon as Ce, createMXTheme as Re, CheckmarkFilledIcon as Ie, H2 as ee } from "@mxenabled/mxui";
3
+ import Z, { useState as oe, useRef as T, useLayoutEffect as se, useMemo as me, useCallback as He, forwardRef as Y, useEffect as xe } from "react";
4
+ import { BottomSheetTransition as Le, P as S, Text as M, MerchantLogo as U, InstitutionLogo as G, H3 as ae, CategoryIcon as Ce, createMXTheme as Re, CheckmarkFilledIcon as Ie, H2 as ee } from "@mxenabled/mxui";
5
5
  import ge from "@mui/material/Dialog";
6
6
  import Ve from "react-confetti";
7
7
  import { Icon as g } from "@mxenabled/mx-icons";
8
8
  import u from "@mui/material/Box";
9
9
  import p from "@mui/material/Stack";
10
10
  import { useInView as Ge } from "react-intersection-observer";
11
- import X from "@mui/material/Card";
11
+ import j from "@mui/material/Card";
12
12
  import Se from "@mui/material/CardContent";
13
13
  import Oe from "@mui/material/CardHeader";
14
- import D from "@mui/material/IconButton";
14
+ import z from "@mui/material/IconButton";
15
15
  import ie from "@mui/material/ListItemIcon";
16
16
  import re from "@mui/material/ListItemText";
17
17
  import Ye from "@mui/material/Menu";
@@ -22,7 +22,7 @@ import { useChartContainerDimensions as ve } from "@mui/x-charts/internals";
22
22
  import { animated as I, to as q, useSpring as We } from "@react-spring/web";
23
23
  import ze from "@mui/material/Paper";
24
24
  import { CardHeader as De } from "@mui/material";
25
- import T from "@mui/material/Button";
25
+ import D from "@mui/material/Button";
26
26
  import Ze from "@mui/material/DialogTitle";
27
27
  import Te from "@mui/material/FormControl";
28
28
  import Ue from "@mui/material/FormControlLabel";
@@ -44,8 +44,8 @@ const Be = ({
44
44
  showBackground: a = !1,
45
45
  width: c = 450
46
46
  }) => {
47
- const [h, m] = v.useState(!1);
48
- return v.useEffect(() => {
47
+ const [h, m] = Z.useState(!1);
48
+ return Z.useEffect(() => {
49
49
  m(!!t);
50
50
  }, [t]), /* @__PURE__ */ e(
51
51
  ge,
@@ -112,10 +112,10 @@ const Be = ({
112
112
  percent: n,
113
113
  height: l = 12
114
114
  }) => {
115
- const [s, o] = Ge({ triggerOnce: !0 }), [a, c] = v.useState("0%"), h = n > 100 ? 100 : n;
116
- return v.useEffect(() => {
115
+ const [s, o] = Ge({ triggerOnce: !0 }), [a, c] = Z.useState("0%"), h = n > 100 ? 100 : n;
116
+ return Z.useEffect(() => {
117
117
  o && c(`${h}%`);
118
- }, [o, h]), /* @__PURE__ */ e(v.Fragment, { children: /* @__PURE__ */ d(
118
+ }, [o, h]), /* @__PURE__ */ e(Z.Fragment, { children: /* @__PURE__ */ d(
119
119
  u,
120
120
  {
121
121
  ref: s,
@@ -220,7 +220,7 @@ const Be = ({
220
220
  }
221
221
  ),
222
222
  /* @__PURE__ */ e(
223
- X,
223
+ j,
224
224
  {
225
225
  className: "mx-insights-gradient-box-card",
226
226
  sx: {
@@ -240,18 +240,18 @@ const Be = ({
240
240
  subHeader: o,
241
241
  height: a
242
242
  }) => {
243
- const [c, h] = v.useState(null), m = () => {
244
- const E = document.getElementsByClassName("mx-mini-insight-card")[0].clientHeight, y = document.getElementsByClassName("mx-mini-insight-card-header")[0].clientHeight + document.getElementsByClassName("mx-mini-insight-card-content-body")[0].clientHeight, x = E - y - 24;
245
- h(Math.floor(x / 20));
243
+ const [c, h] = Z.useState(null), m = () => {
244
+ const E = document.getElementsByClassName("mx-mini-insight-card")[0].clientHeight, y = document.getElementsByClassName("mx-mini-insight-card-header")[0].clientHeight + document.getElementsByClassName("mx-mini-insight-card-content-body")[0].clientHeight, k = E - y - 24;
245
+ h(Math.floor(k / 20));
246
246
  };
247
- return v.useEffect(() => (m(), window.addEventListener("resize", m), () => window.removeEventListener("resize", m)), []), /* @__PURE__ */ e(
248
- X,
247
+ return Z.useEffect(() => (m(), window.addEventListener("resize", m), () => window.removeEventListener("resize", m)), []), /* @__PURE__ */ e(
248
+ j,
249
249
  {
250
250
  ref: s,
251
251
  "aria-labelledby": t.guid,
252
252
  className: "mx-mini-insight-card",
253
253
  sx: { height: a, pb: 24, pt: 0, px: 0 },
254
- children: t.dismissed_at ? n : /* @__PURE__ */ d(v.Fragment, { children: [
254
+ children: t.dismissed_at ? n : /* @__PURE__ */ d(Z.Fragment, { children: [
255
255
  /* @__PURE__ */ e(
256
256
  Oe,
257
257
  {
@@ -311,17 +311,17 @@ const Be = ({
311
311
  tabIndex: o = 0,
312
312
  ...a
313
313
  }) => {
314
- const [c, h] = oe(null), m = () => h(null), E = (x, C) => {
315
- m(), l(x, C);
314
+ const [c, h] = oe(null), m = () => h(null), E = (k, x) => {
315
+ m(), l(k, x);
316
316
  };
317
317
  return /* @__PURE__ */ d(V, { children: [
318
318
  /* @__PURE__ */ e(
319
- D,
319
+ z,
320
320
  {
321
321
  "aria-hidden": t,
322
322
  "aria-label": r,
323
- onClick: (x) => {
324
- h(x.currentTarget), s();
323
+ onClick: (k) => {
324
+ h(k.currentTarget), s();
325
325
  },
326
326
  sx: { position: "relative !important", bottom: 6 },
327
327
  tabIndex: o,
@@ -349,8 +349,8 @@ const Be = ({
349
349
  onClose: m,
350
350
  open: !!c,
351
351
  transformOrigin: { horizontal: "right", vertical: "top" },
352
- children: n.map(({ icon: x, key: C, text: J }, f) => /* @__PURE__ */ d(Fe, { onClick: () => E(f, C), sx: { p: 12 }, children: [
353
- /* @__PURE__ */ e(ie, { sx: { minWidth: "32px !important" }, children: x }),
352
+ children: n.map(({ icon: k, key: x, text: J }, v) => /* @__PURE__ */ d(Fe, { onClick: () => E(v, x), sx: { p: 12 }, children: [
353
+ /* @__PURE__ */ e(ie, { sx: { minWidth: "32px !important" }, children: k }),
354
354
  /* @__PURE__ */ e(
355
355
  re,
356
356
  {
@@ -362,7 +362,7 @@ const Be = ({
362
362
  }
363
363
  }
364
364
  )
365
- ] }, C))
365
+ ] }, x))
366
366
  }
367
367
  )
368
368
  ] });
@@ -397,7 +397,7 @@ const Be = ({
397
397
  children: /* @__PURE__ */ e("rect", { fill: r, height: "6", rx: "2", width: "6", x: "0.4375" })
398
398
  }
399
399
  ),
400
- /* @__PURE__ */ e(w, { id: "chartLegendLabel", sx: { fontSize: 11, fontWeight: 400 }, variant: "XSmall", children: l })
400
+ /* @__PURE__ */ e(M, { id: "chartLegendLabel", sx: { fontSize: 11, fontWeight: 400 }, variant: "XSmall", children: l })
401
401
  ] }),
402
402
  t && n && /* @__PURE__ */ d(p, { alignItems: "center", flexDirection: "row", gap: 8, children: [
403
403
  /* @__PURE__ */ e(
@@ -421,7 +421,7 @@ const Be = ({
421
421
  ))
422
422
  }
423
423
  ),
424
- /* @__PURE__ */ d(w, { sx: { fontSize: 11, fontWeight: 400, ml: 0 }, variant: "XSmall", children: [
424
+ /* @__PURE__ */ d(M, { sx: { fontSize: 11, fontWeight: 400, ml: 0 }, variant: "XSmall", children: [
425
425
  n,
426
426
  ": ",
427
427
  t
@@ -438,18 +438,18 @@ const Be = ({
438
438
  style: o,
439
439
  ...a
440
440
  }) => {
441
- const c = F(), h = U(null);
441
+ const c = F(), h = T(null);
442
442
  se(() => {
443
443
  const f = new ResizeObserver(() => {
444
444
  window.requestAnimationFrame(() => {
445
445
  if (h.current) {
446
- const { width: k, height: A } = h.current.getBoundingClientRect();
447
- if (A === 0) {
448
- const $ = h.current;
449
- $.style.height = "1px", $.style.transform = `translate3d(${o.x?.get()}px, ${Number(o.y?.get()) - 1}px, 0px)`;
446
+ const { width: C, height: W } = h.current.getBoundingClientRect();
447
+ if (W === 0) {
448
+ const w = h.current;
449
+ w.style.height = "1px", w.style.transform = `translate3d(${o.x?.get()}px, ${Number(o.y?.get()) - 1}px, 0px)`;
450
450
  }
451
- const W = k / 2, z = h.current.querySelector("text");
452
- z && z.setAttribute("transform", `translate(${W}, -10)`);
451
+ const P = C / 2, $ = h.current.querySelector("text");
452
+ $ && $.setAttribute("transform", `translate(${P}, -10)`);
453
453
  }
454
454
  });
455
455
  });
@@ -457,7 +457,7 @@ const Be = ({
457
457
  h.current && f.unobserve(h.current);
458
458
  };
459
459
  }, []);
460
- const { ariaLabel: m, category: E, categoryGuid: y, formattedAmount: x, imageSize: C, merchantGuid: J } = r[n];
460
+ const { ariaLabel: m, category: E, categoryGuid: y, formattedAmount: k, imageSize: x, merchantGuid: J } = r[n], v = s === n ? "bold" : 400;
461
461
  return /* @__PURE__ */ d("g", { "aria-label": m, children: [
462
462
  /* @__PURE__ */ e(
463
463
  I.rect,
@@ -472,33 +472,33 @@ const Be = ({
472
472
  (J || y) && /* @__PURE__ */ e(
473
473
  I.foreignObject,
474
474
  {
475
- height: C || 32,
476
- width: C || 32,
475
+ height: x || 32,
476
+ width: x || 32,
477
477
  x: o.x && o.width ? q(
478
478
  [o.x, o.width],
479
- (f, k) => Number(f ?? 0) + Number(k ?? 0) / 2 - (C || 32) / 2
479
+ (f, C) => Number(f ?? 0) + Number(C ?? 0) / 2 - (x || 32) / 2
480
480
  ) : 0,
481
481
  y: o.y && o.height ? q(
482
482
  [o.y, o.height],
483
- (f, k) => Number(f ?? 0) + Number(k ?? 0) / 2 - (C || 32) / 2
483
+ (f, C) => Number(f ?? 0) + Number(C ?? 0) / 2 - (x || 32) / 2
484
484
  ) : 0,
485
485
  children: /* @__PURE__ */ e(
486
486
  I.div,
487
487
  {
488
488
  style: {
489
- width: C || 32,
490
- height: C || 32,
489
+ width: x || 32,
490
+ height: x || 32,
491
491
  display: "flex",
492
492
  alignItems: "center",
493
493
  justifyContent: "center"
494
494
  },
495
495
  children: /* @__PURE__ */ e(
496
- j,
496
+ U,
497
497
  {
498
498
  alt: E,
499
499
  categoryGuid: y || "",
500
500
  merchantGuid: J || "",
501
- size: C || 32
501
+ size: x || 32
502
502
  }
503
503
  )
504
504
  }
@@ -510,11 +510,11 @@ const Be = ({
510
510
  {
511
511
  fill: c.palette.text.primary,
512
512
  fontSize: 11,
513
- fontWeight: s === n && !l ? "bold" : 400,
513
+ fontWeight: l ? "bold" : v,
514
514
  textAnchor: "middle",
515
- x: o.x && o.width ? q([o.x, o.width], (f, k) => Number(f ?? 0) + Number(k ?? 0) / 2) : 0,
515
+ x: o.x && o.width ? q([o.x, o.width], (f, C) => Number(f ?? 0) + Number(C ?? 0) / 2) : 0,
516
516
  y: o.y ? o.y.to((f) => f - (E ? 26 : 14)) : 0,
517
- children: x
517
+ children: k
518
518
  }
519
519
  ),
520
520
  E && /* @__PURE__ */ e(
@@ -524,7 +524,7 @@ const Be = ({
524
524
  fontSize: 9,
525
525
  fontWeight: s === n && !l ? "bold" : 400,
526
526
  textAnchor: "middle",
527
- x: o.x && o.width ? q([o.x, o.width], (f, k) => Number(f ?? 0) + Number(k ?? 0) / 2) : 0,
527
+ x: o.x && o.width ? q([o.x, o.width], (f, C) => Number(f ?? 0) + Number(C ?? 0) / 2) : 0,
528
528
  y: o.y ? o.y.to((f) => f - 14) : 0,
529
529
  children: E
530
530
  }
@@ -548,18 +548,18 @@ const Be = ({
548
548
  removeSelectedTabColorChange: m,
549
549
  onBarClick: E
550
550
  }) => {
551
- const y = F(), { containerRef: x, height: C, width: J } = ve(), k = n.reduce((M, H) => Math.min(M, H.value), 1 / 0) < 0, A = me(() => {
552
- const M = `${r}80`;
553
- return m ? n.map(() => M) : h === void 0 ? [...new Array(n.length - 1).fill(M), r] : n.map((H, L) => L === h ? r : M);
551
+ const y = F(), { containerRef: k, height: x, width: J } = ve(), f = n.reduce((w, H) => Math.min(w, H.value), 1 / 0) < 0, C = me(() => {
552
+ const w = `${r}80`;
553
+ return m ? n.map(() => r) : h === void 0 ? [...new Array(n.length - 1).fill(w), r] : n.map((H, L) => L === h ? r : w);
554
554
  }, [r, n, h]), W = He(
555
- (M, { dataIndex: H }) => E && E(H),
555
+ (w, { dataIndex: H }) => E && E(H),
556
556
  [E]
557
- ), z = me(() => {
558
- const M = n.map(({ value: R }) => R), H = Math.min(...M), L = Math.max(...M);
557
+ ), P = me(() => {
558
+ const w = n.map(({ value: R }) => R), H = Math.min(...w), L = Math.max(...w);
559
559
  return {
560
560
  series: [
561
561
  {
562
- data: M,
562
+ data: w,
563
563
  type: "bar"
564
564
  }
565
565
  ],
@@ -585,21 +585,21 @@ const Be = ({
585
585
  /* @__PURE__ */ e(
586
586
  u,
587
587
  {
588
- ref: x,
588
+ ref: k,
589
589
  sx: { height: s || (l ? 120 : 172), width: "100%", mb: 8 },
590
590
  children: /* @__PURE__ */ d(
591
591
  we,
592
592
  {
593
- height: C,
593
+ height: x,
594
594
  margin: {
595
595
  top: 45,
596
596
  right: o.right,
597
597
  bottom: o.bottom,
598
598
  left: o.left
599
599
  },
600
- series: z.series,
600
+ series: P.series,
601
601
  width: J,
602
- xAxis: z.xAxis,
602
+ xAxis: P.xAxis,
603
603
  children: [
604
604
  t?.average && // show average line if available
605
605
  /* @__PURE__ */ e(
@@ -615,7 +615,7 @@ const Be = ({
615
615
  y: t?.average
616
616
  }
617
617
  ),
618
- k && // show lowest value line if negative values are allowed and if the lowest value is negative
618
+ f && // show lowest value line if negative values are allowed and if the lowest value is negative
619
619
  /* @__PURE__ */ e(
620
620
  ne,
621
621
  {
@@ -633,7 +633,7 @@ const Be = ({
633
633
  position: "bottom",
634
634
  slots: {
635
635
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
636
- axisTickLabel: ({ text: M, ownerState: H, ...L }) => {
636
+ axisTickLabel: ({ text: w, ownerState: H, ...L }) => {
637
637
  const R = n[h ?? n.length - 1]?.label;
638
638
  return /* @__PURE__ */ e(
639
639
  "text",
@@ -641,23 +641,23 @@ const Be = ({
641
641
  ...L,
642
642
  style: {
643
643
  ...L.style,
644
- fontWeight: !m && R === M ? "bold" : 400
644
+ fontWeight: !m && R === w ? "bold" : 400
645
645
  },
646
- children: M
646
+ children: w
647
647
  }
648
648
  );
649
649
  }
650
650
  },
651
- sx: (M) => ({
651
+ sx: (w) => ({
652
652
  ".MuiChartsAxis-line": {
653
- stroke: k ? "none" : M.palette.border?.dark
653
+ stroke: f ? "none" : w.palette.border?.dark
654
654
  // If there is a negative value hide this line and use the reference line
655
655
  },
656
656
  "MuiChartsAxis-root-MuiChartsXAxis-root": {
657
657
  transform: "translate(0, 150)"
658
658
  },
659
659
  ".MuiChartsAxis-tickLabel": {
660
- transform: k ? "translateY(15px)" : {}
660
+ transform: f ? "translateY(15px)" : {}
661
661
  // Add padding to move labels further down. Must use an empty transform to prevent errors
662
662
  }
663
663
  }),
@@ -671,13 +671,13 @@ const Be = ({
671
671
  {
672
672
  onItemClick: W,
673
673
  slots: {
674
- bar: (M) => {
675
- const { ownerState: H, style: L, ...R } = M;
674
+ bar: (w) => {
675
+ const { ownerState: H, style: L, ...R } = w;
676
676
  return /* @__PURE__ */ e(
677
677
  rt,
678
678
  {
679
679
  ...R,
680
- colorRange: A,
680
+ colorRange: C,
681
681
  data: n,
682
682
  dataIndex: H.dataIndex,
683
683
  removeSelectedTabColorChange: m,
@@ -712,15 +712,15 @@ const Be = ({
712
712
  style: l,
713
713
  ...s
714
714
  }) => {
715
- const o = F(), a = U(null), { width: c } = We({
715
+ const o = F(), a = T(null), { width: c } = We({
716
716
  width: l.width
717
717
  });
718
718
  se(() => {
719
719
  const J = new ResizeObserver(() => {
720
720
  window.requestAnimationFrame(() => {
721
721
  if (a.current) {
722
- const { width: f } = a.current.getBoundingClientRect(), k = f / 2, A = a.current.querySelector("text");
723
- A && A.setAttribute("transform", `translate(${k}, -8)`);
722
+ const { width: v } = a.current.getBoundingClientRect(), f = v / 2, C = a.current.querySelector("text");
723
+ C && C.setAttribute("transform", `translate(${f}, -8)`);
724
724
  }
725
725
  });
726
726
  });
@@ -728,8 +728,8 @@ const Be = ({
728
728
  a.current && J.unobserve(a.current);
729
729
  };
730
730
  }, []);
731
- const { ariaLabelComparison: h, ariaLabelMain: m, formattedComparison: E, formattedMain: y } = r[n.index], x = n.type === 0 ? m : h, C = n.type === 0 ? y : E;
732
- return /* @__PURE__ */ d("g", { "aria-label": x, children: [
731
+ const { ariaLabelComparison: h, ariaLabelMain: m, formattedComparison: E, formattedMain: y } = r[n.index], k = n.type === 0 ? m : h, x = n.type === 0 ? y : E;
732
+ return /* @__PURE__ */ d("g", { "aria-label": k, children: [
733
733
  /* @__PURE__ */ e(I.rect, { ...s, ref: a, fill: t, rx: 2, style: l }),
734
734
  /* @__PURE__ */ e(
735
735
  I.text,
@@ -741,7 +741,7 @@ const Be = ({
741
741
  transform: c.to((J) => `translate(${J / 2}, -8)`),
742
742
  x: l.x,
743
743
  y: l.y,
744
- children: C
744
+ children: x
745
745
  }
746
746
  )
747
747
  ] });
@@ -776,7 +776,7 @@ const Be = ({
776
776
  children: /* @__PURE__ */ e("rect", { fill: s, height: "6", rx: "2", width: "6", x: "0.4375" })
777
777
  }
778
778
  ),
779
- /* @__PURE__ */ e(w, { id: "legendMain", sx: { fontSize: 11, fontWeight: 400 }, variant: "XSmall", children: n })
779
+ /* @__PURE__ */ e(M, { id: "legendMain", sx: { fontSize: 11, fontWeight: 400 }, variant: "XSmall", children: n })
780
780
  ] }),
781
781
  r && /* @__PURE__ */ d(p, { alignItems: "center", flexDirection: "row", gap: 8, children: [
782
782
  /* @__PURE__ */ e(
@@ -791,7 +791,7 @@ const Be = ({
791
791
  children: /* @__PURE__ */ e("rect", { fill: t, height: "6", rx: "2", width: "6", x: "0.4375" })
792
792
  }
793
793
  ),
794
- /* @__PURE__ */ e(w, { id: "legendComparison", sx: { fontSize: 11, fontWeight: 400 }, variant: "XSmall", children: r })
794
+ /* @__PURE__ */ e(M, { id: "legendComparison", sx: { fontSize: 11, fontWeight: 400 }, variant: "XSmall", children: r })
795
795
  ] })
796
796
  ]
797
797
  }
@@ -812,9 +812,9 @@ const Be = ({
812
812
  },
813
813
  onBarClick: m
814
814
  }) => {
815
- const E = F(), { containerRef: y, height: x, width: C } = ve(), J = ({ dataIndex: f, seriesId: k }) => {
816
- const A = k.toString().split("-").pop();
817
- m?.(f * 2 + Number(A));
815
+ const E = F(), { containerRef: y, height: k, width: x } = ve(), J = ({ dataIndex: v, seriesId: f }) => {
816
+ const C = f.toString().split("-").pop();
817
+ m?.(v * 2 + Number(C));
818
818
  };
819
819
  return /* @__PURE__ */ d(p, { alignItems: "center", sx: { mb: o ? 16 : 24, width: "100%" }, children: [
820
820
  /* @__PURE__ */ e(u, { ref: y, sx: { height: o ? 120 : 172, width: "100%", mb: 8 }, children: /* @__PURE__ */ d(
@@ -822,13 +822,13 @@ const Be = ({
822
822
  {
823
823
  colors: l,
824
824
  dataset: s,
825
- height: x,
825
+ height: k,
826
826
  margin: h,
827
827
  series: [
828
828
  { dataKey: "main", type: "bar" },
829
829
  { dataKey: "comparison", type: "bar" }
830
830
  ],
831
- width: C,
831
+ width: x,
832
832
  xAxis: [{ barGapRatio: r, categoryGapRatio: n, dataKey: "label", scaleType: "band" }],
833
833
  children: [
834
834
  t?.average && /* @__PURE__ */ e(
@@ -849,9 +849,9 @@ const Be = ({
849
849
  {
850
850
  disableTicks: !0,
851
851
  position: "bottom",
852
- sx: (f) => ({
852
+ sx: (v) => ({
853
853
  ".MuiChartsAxis-line": {
854
- stroke: f.palette.border?.darker
854
+ stroke: v.palette.border?.darker
855
855
  }
856
856
  }),
857
857
  tickLabelStyle: {
@@ -864,21 +864,21 @@ const Be = ({
864
864
  /* @__PURE__ */ e(
865
865
  Je,
866
866
  {
867
- onItemClick: (f, { dataIndex: k, seriesId: A }) => J({ dataIndex: k, seriesId: A.toString() }),
867
+ onItemClick: (v, { dataIndex: f, seriesId: C }) => J({ dataIndex: f, seriesId: C.toString() }),
868
868
  slots: {
869
- bar: (f) => {
870
- const { ownerState: k, style: A, ...W } = f;
869
+ bar: (v) => {
870
+ const { ownerState: f, style: C, ...W } = v;
871
871
  return /* @__PURE__ */ e(
872
872
  nt,
873
873
  {
874
874
  ...W,
875
- color: k.color,
875
+ color: f.color,
876
876
  data: s,
877
877
  series: {
878
- index: k.dataIndex,
879
- type: Number(k.id.toString().split("-").pop())
878
+ index: f.dataIndex,
879
+ type: Number(f.id.toString().split("-").pop())
880
880
  },
881
- style: A
881
+ style: C
882
882
  }
883
883
  );
884
884
  }
@@ -911,7 +911,7 @@ const Be = ({
911
911
  }
912
912
  });
913
913
  }, K = ({ divProps: t, image: r, isMini: n = !1 }) => {
914
- const l = F(), s = U(null), o = {
914
+ const l = F(), s = T(null), o = {
915
915
  100: l.palette.primary.lighter,
916
916
  200: l.palette.primary.light,
917
917
  300: l.palette.primary.main,
@@ -937,7 +937,7 @@ const Be = ({
937
937
  }
938
938
  );
939
939
  };
940
- function P() {
940
+ function X() {
941
941
  return /* @__PURE__ */ e(K, { divProps: { style: {} }, image: st });
942
942
  }
943
943
  const de = (t) => {
@@ -969,7 +969,7 @@ const de = (t) => {
969
969
  rightLowerText: c,
970
970
  rightUpperText: h
971
971
  }) => {
972
- const m = o ? ye : fe, E = U(null), { height: y, width: x } = de(E);
972
+ const m = o ? ye : fe, E = T(null), { height: y, width: k } = de(E);
973
973
  return /* @__PURE__ */ d(
974
974
  u,
975
975
  {
@@ -980,9 +980,9 @@ const de = (t) => {
980
980
  sx: { bgcolor: "grey.200", p: 16 },
981
981
  width: "100%",
982
982
  children: [
983
- /* @__PURE__ */ e(ce, { height: y, shouldRun: r.shouldRun, width: x }),
983
+ /* @__PURE__ */ e(ce, { height: y, shouldRun: r.shouldRun, width: k }),
984
984
  /* @__PURE__ */ d(
985
- X,
985
+ j,
986
986
  {
987
987
  elevation: 1,
988
988
  sx: {
@@ -1029,7 +1029,7 @@ const de = (t) => {
1029
1029
  textSX: c
1030
1030
  }) => /* @__PURE__ */ d(V, { children: [
1031
1031
  s && /* @__PURE__ */ e(g, { color: r, fill: n, name: s, size: o, sx: l }),
1032
- /* @__PURE__ */ e(w, { bold: t, sx: c, children: a })
1032
+ /* @__PURE__ */ e(M, { bold: t, sx: c, children: a })
1033
1033
  ] }), N = 48, mt = ({ account: t, headerString: r }) => /* @__PURE__ */ d(V, { children: [
1034
1034
  /* @__PURE__ */ e(
1035
1035
  ze,
@@ -1198,14 +1198,14 @@ const de = (t) => {
1198
1198
  )
1199
1199
  }
1200
1200
  ), wt = ({ content: t, isLoading: r, sx: n }) => {
1201
- const [l, s] = oe(0), o = U(null), a = () => {
1201
+ const [l, s] = oe(0), o = T(null), a = () => {
1202
1202
  if (o.current) {
1203
1203
  const c = o.current, h = c.parentElement;
1204
1204
  if (h) {
1205
- const E = Array.from(h.children).reduce((f, k) => k !== c ? f + k.clientHeight : f, 0), x = h.clientHeight - E, C = parseInt(
1205
+ const E = Array.from(h.children).reduce((v, f) => f !== c ? v + f.clientHeight : v, 0), k = h.clientHeight - E, x = parseInt(
1206
1206
  window.getComputedStyle(c).lineHeight,
1207
1207
  10
1208
- ), J = Math.floor(x / C);
1208
+ ), J = Math.floor(k / x);
1209
1209
  J !== l && s(J);
1210
1210
  }
1211
1211
  }
@@ -1267,7 +1267,7 @@ const de = (t) => {
1267
1267
  /* @__PURE__ */ e(p, { sx: { alignItems: "center", ...h && c && { mx: -16 } }, children: n }),
1268
1268
  l === "bottom" && y(),
1269
1269
  t && /* @__PURE__ */ e(
1270
- w,
1270
+ M,
1271
1271
  {
1272
1272
  sx: {
1273
1273
  color: "text.secondary",
@@ -1280,7 +1280,7 @@ const de = (t) => {
1280
1280
  }
1281
1281
  )
1282
1282
  ] });
1283
- }, b = ({
1283
+ }, A = ({
1284
1284
  altLoadingText: t,
1285
1285
  asteriskText: r,
1286
1286
  beat: n,
@@ -1365,14 +1365,14 @@ const de = (t) => {
1365
1365
  variant: "ParagraphSmall"
1366
1366
  }
1367
1367
  ),
1368
- a && l && /* @__PURE__ */ d(T, { fullWidth: !0, onClick: l, sx: { mb: c }, children: [
1368
+ a && l && /* @__PURE__ */ d(D, { fullWidth: !0, onClick: l, sx: { mb: c }, children: [
1369
1369
  a,
1370
1370
  /* @__PURE__ */ e(g, { name: "chevron_right" })
1371
1371
  ] })
1372
1372
  ]
1373
1373
  }
1374
1374
  );
1375
- }, Z = ({
1375
+ }, b = ({
1376
1376
  beat: t,
1377
1377
  disabled: r = !1,
1378
1378
  hide: n = !1,
@@ -1382,7 +1382,7 @@ const de = (t) => {
1382
1382
  variant: a = !s && "text",
1383
1383
  ...c
1384
1384
  }) => n ? null : /* @__PURE__ */ e(
1385
- T,
1385
+ D,
1386
1386
  {
1387
1387
  disabled: r,
1388
1388
  fullWidth: !0,
@@ -1423,7 +1423,7 @@ const de = (t) => {
1423
1423
  }) => /* @__PURE__ */ d(Ze, { fontSize: 18, id: "alert-dialog-title", children: [
1424
1424
  t,
1425
1425
  /* @__PURE__ */ e(
1426
- D,
1426
+ z,
1427
1427
  {
1428
1428
  "aria-label": s ? r.ratingExist : r.ratingDoesntExist,
1429
1429
  "data-ui-test": "feedback-close-button",
@@ -1465,7 +1465,7 @@ const de = (t) => {
1465
1465
  },
1466
1466
  children: [
1467
1467
  /* @__PURE__ */ e(
1468
- T,
1468
+ D,
1469
1469
  {
1470
1470
  className: "mx-insights-beat-feedback-submit-button",
1471
1471
  "data-ui-test": "submit-button",
@@ -1484,7 +1484,7 @@ const de = (t) => {
1484
1484
  }
1485
1485
  ),
1486
1486
  /* @__PURE__ */ e(
1487
- T,
1487
+ D,
1488
1488
  {
1489
1489
  className: "mx-insights-beat-feedback-no-thanks-button",
1490
1490
  "data-ui-test": "no-thanks-button",
@@ -1621,7 +1621,7 @@ const de = (t) => {
1621
1621
  legendLabelMain: a,
1622
1622
  onBarClick: c,
1623
1623
  ...h
1624
- }) => /* @__PURE__ */ e(b, { ...h, beat: r, button: /* @__PURE__ */ e(Z, { ...n, beat: r }), children: s.length > 0 ? /* @__PURE__ */ e(
1624
+ }) => /* @__PURE__ */ e(A, { ...h, beat: r, button: /* @__PURE__ */ e(b, { ...n, beat: r }), children: s.length > 0 ? /* @__PURE__ */ e(
1625
1625
  _,
1626
1626
  {
1627
1627
  amounts: t,
@@ -1647,13 +1647,13 @@ const Pi = ({
1647
1647
  selectedTabIndex: h,
1648
1648
  ...m
1649
1649
  }) => /* @__PURE__ */ e(
1650
- b,
1650
+ A,
1651
1651
  {
1652
1652
  ...m,
1653
1653
  beat: r,
1654
1654
  button: s.length ? /* @__PURE__ */ d(p, { spacing: 10, sx: { pt: 8 }, children: [
1655
1655
  /* @__PURE__ */ e(
1656
- Z,
1656
+ b,
1657
1657
  {
1658
1658
  ...n,
1659
1659
  beat: r,
@@ -1661,7 +1661,7 @@ const Pi = ({
1661
1661
  }
1662
1662
  ),
1663
1663
  /* @__PURE__ */ e(
1664
- Z,
1664
+ b,
1665
1665
  {
1666
1666
  ...n,
1667
1667
  beat: r,
@@ -1688,7 +1688,7 @@ const Pi = ({
1688
1688
  onBarClick: c,
1689
1689
  selectedTabIndex: h
1690
1690
  }
1691
- ) : /* @__PURE__ */ e(P, {})
1691
+ ) : /* @__PURE__ */ e(X, {})
1692
1692
  }
1693
1693
  ), qi = ({
1694
1694
  beat: t,
@@ -1701,13 +1701,13 @@ const Pi = ({
1701
1701
  }) => {
1702
1702
  const { primary_transaction: c, primary_category_guid: h } = t;
1703
1703
  if (!c) return null;
1704
- const m = c.top_level_category_guid || c.category_guid || h || "", E = c.merchant_guid || "", y = m || h, x = s ? "linear-gradient(#19B07B, #006642)" : "linear-gradient(#D9FDEA, #8DF1CE)";
1704
+ const m = c.top_level_category_guid || c.category_guid || h || "", E = c.merchant_guid || "", y = m || h, k = s ? "linear-gradient(#19B07B, #006642)" : "linear-gradient(#D9FDEA, #8DF1CE)";
1705
1705
  return /* @__PURE__ */ e(
1706
- b,
1706
+ A,
1707
1707
  {
1708
1708
  ...a,
1709
1709
  beat: t,
1710
- button: /* @__PURE__ */ e(u, { sx: { pb: 16, px: 16 }, children: /* @__PURE__ */ e(Z, { ...r, beat: t }) }),
1710
+ button: /* @__PURE__ */ e(u, { sx: { pb: 16, px: 16 }, children: /* @__PURE__ */ e(b, { ...r, beat: t }) }),
1711
1711
  contentProps: {
1712
1712
  hasFullWidthImage: !0,
1713
1713
  sx: { px: 0 }
@@ -1716,9 +1716,9 @@ const Pi = ({
1716
1716
  ...a.header,
1717
1717
  hasFullWidthImage: !0
1718
1718
  },
1719
- children: /* @__PURE__ */ e(u, { sx: { background: x, p: 16, width: "100%" }, children: /* @__PURE__ */ e(X, { sx: { bgcolor: s ? "grey.800" : "common.white", p: 16 }, children: /* @__PURE__ */ d(p, { sx: { alignItems: "center", gap: 12 }, children: [
1719
+ children: /* @__PURE__ */ e(u, { sx: { background: k, p: 16, width: "100%" }, children: /* @__PURE__ */ e(j, { sx: { bgcolor: s ? "grey.800" : "common.white", p: 16 }, children: /* @__PURE__ */ d(p, { sx: { alignItems: "center", gap: 12 }, children: [
1720
1720
  /* @__PURE__ */ e(
1721
- j,
1721
+ U,
1722
1722
  {
1723
1723
  alt: c.description,
1724
1724
  categoryGuid: m,
@@ -1728,7 +1728,7 @@ const Pi = ({
1728
1728
  ),
1729
1729
  /* @__PURE__ */ d(p, { sx: { alignItems: "center", gap: 4 }, children: [
1730
1730
  /* @__PURE__ */ e(ae, { color: "success.main", children: l }),
1731
- /* @__PURE__ */ e(w, { bold: !0, sx: { fontSize: 13, lineHeight: "16px" }, children: o }),
1731
+ /* @__PURE__ */ e(M, { bold: !0, sx: { fontSize: 13, lineHeight: "16px" }, children: o }),
1732
1732
  /* @__PURE__ */ d(p, { sx: { alignItems: "center", flexDirection: "row", gap: 4 }, children: [
1733
1733
  y && /* @__PURE__ */ e(
1734
1734
  Ce,
@@ -1740,7 +1740,7 @@ const Pi = ({
1740
1740
  variant: "transparent"
1741
1741
  }
1742
1742
  ),
1743
- /* @__PURE__ */ e(w, { color: "text.secondary", sx: { fontSize: 11, lineHeight: "16px" }, children: n })
1743
+ /* @__PURE__ */ e(M, { color: "text.secondary", sx: { fontSize: 11, lineHeight: "16px" }, children: n })
1744
1744
  ] })
1745
1745
  ] })
1746
1746
  ] }) }) })
@@ -1766,7 +1766,7 @@ const Pi = ({
1766
1766
  account_2_alt_text: l,
1767
1767
  isSuccess: s
1768
1768
  }) => {
1769
- const o = v.useRef(null), { height: a, width: c } = de(o);
1769
+ const o = Z.useRef(null), { height: a, width: c } = de(o);
1770
1770
  return /* @__PURE__ */ e(
1771
1771
  u,
1772
1772
  {
@@ -1934,7 +1934,7 @@ const Pi = ({
1934
1934
  ] })
1935
1935
  ] }),
1936
1936
  /* @__PURE__ */ d(u, { children: [
1937
- /* @__PURE__ */ e(w, { bold: !0, fontSize: 15, sx: { p: "16px 24px 8px 24px" }, children: t.shared_info_header_text }),
1937
+ /* @__PURE__ */ e(M, { bold: !0, fontSize: 15, sx: { p: "16px 24px 8px 24px" }, children: t.shared_info_header_text }),
1938
1938
  /* @__PURE__ */ e(S, { color: "textSecondary", fontSize: 13, sx: { mb: 16, mx: 24 }, children: t.shared_info_description }),
1939
1939
  /* @__PURE__ */ e(Ee, { sx: { p: "16px 24px" }, children: t.shared_info_list_array.map((n, l) => /* @__PURE__ */ d(
1940
1940
  ue,
@@ -1974,10 +1974,10 @@ const Pi = ({
1974
1974
  )) })
1975
1975
  ] }),
1976
1976
  /* @__PURE__ */ d(p, { sx: { alignItems: "center", justifyContent: "center", pb: 16 }, children: [
1977
- /* @__PURE__ */ e(w, { bold: !0, sx: { p: "16px 24px 8px 24px" }, children: t.footer_title }),
1977
+ /* @__PURE__ */ e(M, { bold: !0, sx: { p: "16px 24px 8px 24px" }, children: t.footer_title }),
1978
1978
  /* @__PURE__ */ d(u, { sx: { display: "flex", gap: 24, p: "12px 24px" }, children: [
1979
1979
  /* @__PURE__ */ e(
1980
- D,
1980
+ z,
1981
1981
  {
1982
1982
  "aria-label": t.aria_label_thumbs_down,
1983
1983
  onClick: () => r("no"),
@@ -1985,7 +1985,7 @@ const Pi = ({
1985
1985
  }
1986
1986
  ),
1987
1987
  /* @__PURE__ */ e(
1988
- D,
1988
+ z,
1989
1989
  {
1990
1990
  "aria-label": t.aria_label_thumbs_up,
1991
1991
  onClick: () => r("yes"),
@@ -2023,7 +2023,7 @@ const Pi = ({
2023
2023
  marginBottom: 16,
2024
2024
  width: r ? "30%" : "50%"
2025
2025
  }, o = t ? { ...s, width: r ? "50%" : "70%" } : s;
2026
- return /* @__PURE__ */ e(b, { ...n, isMini: r, children: /* @__PURE__ */ e(K, { divProps: { style: o }, image: l }) });
2026
+ return /* @__PURE__ */ e(A, { ...n, isMini: r, children: /* @__PURE__ */ e(K, { divProps: { style: o }, image: l }) });
2027
2027
  }, _i = ({
2028
2028
  altLoadingText: t,
2029
2029
  beat: r,
@@ -2031,13 +2031,13 @@ const Pi = ({
2031
2031
  header: l,
2032
2032
  isMini: s
2033
2033
  }) => /* @__PURE__ */ e(
2034
- b,
2034
+ A,
2035
2035
  {
2036
2036
  altLoadingText: t,
2037
2037
  beat: r,
2038
2038
  button: /* @__PURE__ */ d(p, { spacing: 10, children: [
2039
2039
  /* @__PURE__ */ e(
2040
- Z,
2040
+ b,
2041
2041
  {
2042
2042
  beat: r,
2043
2043
  ...n,
@@ -2045,7 +2045,7 @@ const Pi = ({
2045
2045
  }
2046
2046
  ),
2047
2047
  r.supporting_action && /* @__PURE__ */ e(
2048
- Z,
2048
+ b,
2049
2049
  {
2050
2050
  ...n,
2051
2051
  beat: r,
@@ -2075,10 +2075,10 @@ const Pi = ({
2075
2075
  onBarClick: a,
2076
2076
  ...c
2077
2077
  }) => /* @__PURE__ */ e(
2078
- b,
2078
+ A,
2079
2079
  {
2080
2080
  beat: t,
2081
- button: l.length ? /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(Z, { ...r, beat: t }) }) : null,
2081
+ button: l.length ? /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(b, { ...r, beat: t }) }) : null,
2082
2082
  ...c,
2083
2083
  children: l.length ? /* @__PURE__ */ e(
2084
2084
  he,
@@ -2096,7 +2096,7 @@ const Pi = ({
2096
2096
  },
2097
2097
  onBarClick: a
2098
2098
  }
2099
- ) : /* @__PURE__ */ e(P, {})
2099
+ ) : /* @__PURE__ */ e(X, {})
2100
2100
  }
2101
2101
  ), e1 = ({
2102
2102
  goalCompletionDate: t = "",
@@ -2151,7 +2151,7 @@ const Pi = ({
2151
2151
  children: [
2152
2152
  /* @__PURE__ */ e(g, { color: "secondary", fill: !0, name: "bid_landscape", sx: { mr: 4 } }),
2153
2153
  /* @__PURE__ */ e(
2154
- w,
2154
+ M,
2155
2155
  {
2156
2156
  dangerouslySetInnerHTML: { __html: t },
2157
2157
  "data-ui-test": "mefr-contributed-text",
@@ -2173,7 +2173,7 @@ const Pi = ({
2173
2173
  children: [
2174
2174
  /* @__PURE__ */ e(g, { name: "calendar_month", sx: { mr: 4 } }),
2175
2175
  /* @__PURE__ */ e(
2176
- w,
2176
+ M,
2177
2177
  {
2178
2178
  dangerouslySetInnerHTML: { __html: t },
2179
2179
  "data-ui-test": "mefr-projected-text",
@@ -2198,7 +2198,7 @@ const Pi = ({
2198
2198
  children: [
2199
2199
  /* @__PURE__ */ e(g, { name: "paid", sx: { mr: 4 } }),
2200
2200
  /* @__PURE__ */ e(
2201
- w,
2201
+ M,
2202
2202
  {
2203
2203
  className: "mx-insights-mefr-saved-text",
2204
2204
  dangerouslySetInnerHTML: { __html: r },
@@ -2218,10 +2218,10 @@ const Pi = ({
2218
2218
  onBarClick: a,
2219
2219
  ...c
2220
2220
  }) => /* @__PURE__ */ e(
2221
- b,
2221
+ A,
2222
2222
  {
2223
2223
  beat: t,
2224
- button: l.length ? /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(Z, { ...r, beat: t }) }) : null,
2224
+ button: l.length ? /* @__PURE__ */ e(p, { children: /* @__PURE__ */ e(b, { ...r, beat: t }) }) : null,
2225
2225
  ...c,
2226
2226
  children: l.length ? /* @__PURE__ */ e(
2227
2227
  he,
@@ -2239,7 +2239,7 @@ const Pi = ({
2239
2239
  },
2240
2240
  onBarClick: a
2241
2241
  }
2242
- ) : /* @__PURE__ */ e(P, {})
2242
+ ) : /* @__PURE__ */ e(X, {})
2243
2243
  }
2244
2244
  ), i1 = ({
2245
2245
  amounts: t,
@@ -2251,7 +2251,7 @@ const Pi = ({
2251
2251
  legendLabelMain: a,
2252
2252
  onBarClick: c,
2253
2253
  ...h
2254
- }) => /* @__PURE__ */ e(b, { ...h, beat: r, button: /* @__PURE__ */ e(Z, { ...n, beat: r }), children: s.length > 0 ? /* @__PURE__ */ e(
2254
+ }) => /* @__PURE__ */ e(A, { ...h, beat: r, button: /* @__PURE__ */ e(b, { ...n, beat: r }), children: s.length > 0 ? /* @__PURE__ */ e(
2255
2255
  _,
2256
2256
  {
2257
2257
  amounts: t,
@@ -2273,11 +2273,11 @@ const Pi = ({
2273
2273
  onBarClick: a,
2274
2274
  ...c
2275
2275
  }) => /* @__PURE__ */ e(
2276
- b,
2276
+ A,
2277
2277
  {
2278
2278
  ...c,
2279
2279
  beat: t,
2280
- button: l.length ? /* @__PURE__ */ e(p, { spacing: 10, sx: { pt: 8 }, children: /* @__PURE__ */ e(Z, { ...r, beat: t }) }) : null,
2280
+ button: l.length ? /* @__PURE__ */ e(p, { spacing: 10, sx: { pt: 8 }, children: /* @__PURE__ */ e(b, { ...r, beat: t }) }) : null,
2281
2281
  children: l.length ? /* @__PURE__ */ e(
2282
2282
  he,
2283
2283
  {
@@ -2294,7 +2294,7 @@ const Pi = ({
2294
2294
  },
2295
2295
  onBarClick: a
2296
2296
  }
2297
- ) : /* @__PURE__ */ e(P, {})
2297
+ ) : /* @__PURE__ */ e(X, {})
2298
2298
  }
2299
2299
  ), n1 = ({
2300
2300
  beat: t,
@@ -2302,11 +2302,11 @@ const Pi = ({
2302
2302
  transactions: n,
2303
2303
  ...l
2304
2304
  }) => /* @__PURE__ */ e(
2305
- b,
2305
+ A,
2306
2306
  {
2307
2307
  ...l,
2308
2308
  beat: t,
2309
- button: t.call_to_action && /* @__PURE__ */ e(Z, { ...r, beat: t }),
2309
+ button: t.call_to_action && /* @__PURE__ */ e(b, { ...r, beat: t }),
2310
2310
  children: n.length > 1 ? /* @__PURE__ */ e(
2311
2311
  Kt,
2312
2312
  {
@@ -2365,7 +2365,7 @@ const Pi = ({
2365
2365
  position: "absolute"
2366
2366
  },
2367
2367
  children: /* @__PURE__ */ e(
2368
- j,
2368
+ U,
2369
2369
  {
2370
2370
  alt: a.feedDescription,
2371
2371
  categoryGuid: a.categoryGuid || "",
@@ -2418,7 +2418,7 @@ const Pi = ({
2418
2418
  },
2419
2419
  children: [
2420
2420
  /* @__PURE__ */ e(
2421
- j,
2421
+ U,
2422
2422
  {
2423
2423
  alt: n,
2424
2424
  categoryGuid: r || "",
@@ -2427,14 +2427,14 @@ const Pi = ({
2427
2427
  }
2428
2428
  ),
2429
2429
  /* @__PURE__ */ e(
2430
- w,
2430
+ M,
2431
2431
  {
2432
2432
  bold: !0,
2433
2433
  sx: { fontSize: 18, overflow: "hidden", textOverflow: "ellipsis", maxWidth: 255 },
2434
2434
  children: l
2435
2435
  }
2436
2436
  ),
2437
- /* @__PURE__ */ e(w, { color: "secondary", fontSize: "small", children: t })
2437
+ /* @__PURE__ */ e(M, { color: "secondary", fontSize: "small", children: t })
2438
2438
  ]
2439
2439
  }
2440
2440
  ), l1 = ({
@@ -2448,12 +2448,12 @@ const Pi = ({
2448
2448
  selectedTabIndex: c,
2449
2449
  ...h
2450
2450
  }) => /* @__PURE__ */ e(
2451
- b,
2451
+ A,
2452
2452
  {
2453
2453
  ...h,
2454
2454
  beat: r,
2455
2455
  button: s.length ? /* @__PURE__ */ e(p, { spacing: 10, sx: { pt: 8 }, children: /* @__PURE__ */ e(
2456
- Z,
2456
+ b,
2457
2457
  {
2458
2458
  ...n,
2459
2459
  beat: r,
@@ -2477,7 +2477,7 @@ const Pi = ({
2477
2477
  onBarClick: a,
2478
2478
  selectedTabIndex: c
2479
2479
  }
2480
- ) : /* @__PURE__ */ e(P, {})
2480
+ ) : /* @__PURE__ */ e(X, {})
2481
2481
  }
2482
2482
  ), o1 = ({
2483
2483
  account: t,
@@ -2578,8 +2578,8 @@ const Pi = ({
2578
2578
  leftUpperText: m,
2579
2579
  rightLowerText: E,
2580
2580
  rightUpperText: y,
2581
- sourceAccountGuid: x
2582
- }) => /* @__PURE__ */ e(v.Fragment, { children: a ? /* @__PURE__ */ e(
2581
+ sourceAccountGuid: k
2582
+ }) => /* @__PURE__ */ e(Z.Fragment, { children: a ? /* @__PURE__ */ e(
2583
2583
  be,
2584
2584
  {
2585
2585
  account: t,
@@ -2598,7 +2598,7 @@ const Pi = ({
2598
2598
  destinationAccountGuid: n,
2599
2599
  externalAccountName: l,
2600
2600
  heldAccountName: s,
2601
- sourceAccountGuid: x
2601
+ sourceAccountGuid: k
2602
2602
  }
2603
2603
  ) }), Dt = ({
2604
2604
  beat: t,
@@ -2628,7 +2628,7 @@ const Pi = ({
2628
2628
  }
2629
2629
  };
2630
2630
  return /* @__PURE__ */ e(p, { sx: a.boxContainer, children: /* @__PURE__ */ d(
2631
- X,
2631
+ j,
2632
2632
  {
2633
2633
  sx: {
2634
2634
  ...a.card,
@@ -2636,7 +2636,7 @@ const Pi = ({
2636
2636
  },
2637
2637
  children: [
2638
2638
  /* @__PURE__ */ e(
2639
- j,
2639
+ U,
2640
2640
  {
2641
2641
  alt: l,
2642
2642
  categoryGuid: t.primary_transaction?.top_level_category_guid || "",
@@ -2685,11 +2685,11 @@ const Pi = ({
2685
2685
  isMini: o,
2686
2686
  ...a
2687
2687
  }) => /* @__PURE__ */ e(
2688
- b,
2688
+ A,
2689
2689
  {
2690
2690
  ...a,
2691
2691
  beat: t,
2692
- button: /* @__PURE__ */ e(u, { sx: { pt: 8, px: 16 }, children: /* @__PURE__ */ e(Z, { ...r, beat: t }) }),
2692
+ button: /* @__PURE__ */ e(u, { sx: { pt: 8, px: 16 }, children: /* @__PURE__ */ e(b, { ...r, beat: t }) }),
2693
2693
  contentProps: {
2694
2694
  hasFullWidthImage: !0
2695
2695
  },
@@ -2727,7 +2727,7 @@ const Pi = ({
2727
2727
  const o = t[l];
2728
2728
  return /* @__PURE__ */ d(le, { alignItems: "center", spacing: 3, children: [
2729
2729
  /* @__PURE__ */ e(
2730
- w,
2730
+ M,
2731
2731
  {
2732
2732
  sx: {
2733
2733
  color: o ? "success.main" : "text.secondary",
@@ -2749,10 +2749,10 @@ const Pi = ({
2749
2749
  displayData: l,
2750
2750
  ...s
2751
2751
  }) => {
2752
- const { no_spend_days: o } = t.payload, { noSpendDays: a, dollarBillAltText: c, daysOfTheWeek: h } = l, m = $t[o.length || 0], E = v.useRef(null), { height: y, width: x } = de(E);
2753
- return /* @__PURE__ */ e(b, { ...s, beat: t, button: /* @__PURE__ */ e(Z, { ...r, beat: t }), children: n ? /* @__PURE__ */ e(At, {}) : /* @__PURE__ */ d(le, { ref: E, alignItems: "center", justifyContent: "center", width: "100%", children: [
2752
+ const { no_spend_days: o } = t.payload, { noSpendDays: a, dollarBillAltText: c, daysOfTheWeek: h } = l, m = $t[o.length || 0], E = Z.useRef(null), { height: y, width: k } = de(E);
2753
+ return /* @__PURE__ */ e(A, { ...s, beat: t, button: /* @__PURE__ */ e(b, { ...r, beat: t }), children: n ? /* @__PURE__ */ e(At, {}) : /* @__PURE__ */ d(le, { ref: E, alignItems: "center", justifyContent: "center", width: "100%", children: [
2754
2754
  /* @__PURE__ */ e("img", { alt: c, src: m, width: 138 }),
2755
- o?.length >= 4 && /* @__PURE__ */ e(ce, { height: y, shouldRun: !0, width: x }),
2755
+ o?.length >= 4 && /* @__PURE__ */ e(ce, { height: y, shouldRun: !0, width: k }),
2756
2756
  /* @__PURE__ */ e(Tt, { daysOfTheWeek: h, noSpendDays: a })
2757
2757
  ] }) });
2758
2758
  }, ei = ({
@@ -2764,7 +2764,7 @@ const Pi = ({
2764
2764
  }) => /* @__PURE__ */ d(ge, { fullScreen: !0, onClose: l, open: n, ...s, children: [
2765
2765
  /* @__PURE__ */ e(Ze, { children: r.title }),
2766
2766
  /* @__PURE__ */ e(
2767
- D,
2767
+ z,
2768
2768
  {
2769
2769
  "aria-label": r.close_dialog_aria,
2770
2770
  onClick: l,
@@ -2817,8 +2817,8 @@ const Pi = ({
2817
2817
  isLoading: s,
2818
2818
  ...o
2819
2819
  }) => {
2820
- const [a, c] = v.useState(t.were_working_on_it), [h, m] = v.useState(0);
2821
- return v.useEffect(() => {
2820
+ const [a, c] = Z.useState(t.were_working_on_it), [h, m] = Z.useState(0);
2821
+ return Z.useEffect(() => {
2822
2822
  if (h <= 2) {
2823
2823
  const E = [t.were_working_on_it, t.were_getting_closer, t.almost_there], y = setTimeout(() => {
2824
2824
  m(h + 1), c(E[h]);
@@ -2875,8 +2875,8 @@ const Pi = ({
2875
2875
  s && /* @__PURE__ */ d(V, { children: [
2876
2876
  /* @__PURE__ */ e(ee, { children: t.connecting }),
2877
2877
  /* @__PURE__ */ e(u, { sx: { my: 24, width: "50%" }, children: /* @__PURE__ */ e(Ne, { "aria-label": t.loading }) }),
2878
- /* @__PURE__ */ e(w, { bold: !0, variant: "Body", children: t.syncing_your_information }),
2879
- /* @__PURE__ */ e(w, { sx: { mt: 8 }, variant: "Small", children: a })
2878
+ /* @__PURE__ */ e(M, { bold: !0, variant: "Body", children: t.syncing_your_information }),
2879
+ /* @__PURE__ */ e(M, { sx: { mt: 8 }, variant: "Small", children: a })
2880
2880
  ] }),
2881
2881
  l && /* @__PURE__ */ d(p, { sx: { gap: 24, px: 24, pb: 24 }, children: [
2882
2882
  /* @__PURE__ */ d(p, { children: [
@@ -2896,7 +2896,7 @@ const Pi = ({
2896
2896
  }
2897
2897
  )
2898
2898
  ] }),
2899
- /* @__PURE__ */ e(T, { onClick: o.onClose, sx: { mx: "auto" }, variant: "contained", children: t.error_button_text })
2899
+ /* @__PURE__ */ e(D, { onClick: o.onClose, sx: { mx: "auto" }, variant: "contained", children: t.error_button_text })
2900
2900
  ] })
2901
2901
  ] })
2902
2902
  ] });
@@ -2904,7 +2904,7 @@ const Pi = ({
2904
2904
  export {
2905
2905
  ke as AccountBox,
2906
2906
  _ as BarChart,
2907
- b as BeatCard,
2907
+ A as BeatCard,
2908
2908
  ji as BeatFeedbackText,
2909
2909
  Xi as BillAmountNotStandard,
2910
2910
  Yi as BottomSheet,
@@ -2923,14 +2923,14 @@ export {
2923
2923
  Ni as DiscoveredAccountsLearnMoreDrawerContent,
2924
2924
  Qi as DiscoveredAccountsMiniInsight,
2925
2925
  he as DoubleBarChart,
2926
- P as EmptyBarChart,
2926
+ X as EmptyBarChart,
2927
2927
  Bi as FederalBankHoliday,
2928
2928
  Di as FeedbackButtons,
2929
2929
  Ti as FeedbackDescription,
2930
2930
  zi as FeedbackHeader,
2931
2931
  Ui as FeedbackOptions,
2932
2932
  mt as FullFeedBodyHeader,
2933
- Z as InsightButton,
2933
+ b as InsightButton,
2934
2934
  Ot as LastMonthsContributionSection,
2935
2935
  Et as LeftBox,
2936
2936
  At as LinedCardZeroState,