@mx-cartographer/experiences 7.13.0 → 7.13.2

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.
@@ -3,28 +3,28 @@ import h, { useEffect as ie, useState as re } from "react";
3
3
  import { observer as z } from "mobx-react-lite";
4
4
  import W from "@mui/material/Stack";
5
5
  import ae from "@mui/material/Button";
6
- import { CategoryIcon as ke, MerchantLogo as Ue, P as ue, Text as Ce, H3 as ze } from "@mxenabled/mxui";
7
- import { Icon as Ke, Close as Fe, ChevronLeft as $e, ChevronRight as Re } from "@mxenabled/mx-icons";
8
- import { L as He } from "./Loader-D3rjKx72.mjs";
6
+ import { CategoryIcon as ke, MerchantLogo as Ue, InstitutionLogo as ze, P as ue, Text as Ce, H3 as Ke } from "@mxenabled/mxui";
7
+ import { Icon as Fe, Close as $e, ChevronLeft as He, ChevronRight as Re } from "@mxenabled/mx-icons";
8
+ import { L as je } from "./Loader-D3rjKx72.mjs";
9
9
  import H from "@mui/material/Box";
10
10
  import se from "@mui/material/IconButton";
11
11
  import { alpha as c, useTheme as j } from "@mui/material/styles";
12
12
  import { useInView as Oe } from "react-intersection-observer";
13
- import { b as je } from "./Category-CevNQ03n.mjs";
13
+ import { b as Ye } from "./Category-CevNQ03n.mjs";
14
14
  import ce from "@mui/material/styles/useTheme";
15
- import { b as Ye } from "./Localization-CPkpIwIx.mjs";
16
- import Xe from "@mui/material/CircularProgress";
15
+ import { b as Xe } from "./Localization-CPkpIwIx.mjs";
16
+ import Ze from "@mui/material/CircularProgress";
17
17
  import { makeAutoObservable as le, runInAction as We } from "mobx";
18
- import { G as he, b as Ze, u as Qe, a as qe } from "./useCombineEvents-Bqojlv8q.mjs";
18
+ import { G as he, b as Qe, u as qe, a as Je } from "./useCombineEvents-Bqojlv8q.mjs";
19
19
  import { B as ge } from "./BeatApi-EFHXULDx.mjs";
20
- import { u as Je } from "./useWidgetLoadTimer-DgN1bTyu.mjs";
21
- import et from "@mui/material/Card";
22
- import tt from "@mui/material/CardActionArea";
23
- import ot from "@mui/material/Avatar";
20
+ import { u as et } from "./useWidgetLoadTimer-DgN1bTyu.mjs";
21
+ import tt from "@mui/material/Card";
22
+ import ot from "@mui/material/CardActionArea";
23
+ import nt from "@mui/material/Avatar";
24
24
  const Ee = {
25
25
  featureVersion: "spendVsIncomeTrends"
26
26
  };
27
- class nt {
27
+ class rt {
28
28
  copyApi = new he("/", "");
29
29
  copyObject = {};
30
30
  namespace = "experiences";
@@ -73,7 +73,7 @@ const de = {
73
73
  MonthlySpendToIncomeComparison: "MonthlySpendToIncomeComparison"
74
74
  }, T = window?.app?.clientConfig?.microwidget_instance_id || "", Ie = {
75
75
  INSIGHTS_MICRO_WIDGET: "/micro-insights-carousel"
76
- }, Me = (t) => `on${t}Click`, we = (t) => `on${t}View`, Ne = (t) => `on${t}ViewFirstTime`, _e = (t) => t.replace(/([a-z])([A-Z])/g, "$1 $2"), rt = () => Object.values(de).reduce(
76
+ }, Me = (t) => `on${t}Click`, Ne = (t) => `on${t}View`, we = (t) => `on${t}ViewFirstTime`, _e = (t) => t.replace(/([a-z])([A-Z])/g, "$1 $2"), it = () => Object.values(de).reduce(
77
77
  (t, e) => ({
78
78
  ...t,
79
79
  [Me(e)]: {
@@ -84,10 +84,10 @@ const de = {
84
84
  }
85
85
  }),
86
86
  {}
87
- ), it = () => Object.values(de).reduce(
87
+ ), at = () => Object.values(de).reduce(
88
88
  (t, e) => ({
89
89
  ...t,
90
- [we(e)]: {
90
+ [Ne(e)]: {
91
91
  action: D.MICRO_BEAT_DISPLAYED,
92
92
  category: L.BEAT_INTERACTION,
93
93
  label: _e(e),
@@ -95,10 +95,10 @@ const de = {
95
95
  }
96
96
  }),
97
97
  {}
98
- ), at = () => Object.values(de).reduce(
98
+ ), st = () => Object.values(de).reduce(
99
99
  (t, e) => ({
100
100
  ...t,
101
- [Ne(e)]: {
101
+ [we(e)]: {
102
102
  action: D.MICRO_BEAT_DISPLAYED_FIRST_TIME,
103
103
  category: L.BEAT_INTERACTION,
104
104
  label: _e(e),
@@ -195,15 +195,15 @@ const de = {
195
195
  label: b.VIEW_MORE,
196
196
  value: T
197
197
  },
198
- ...rt(),
199
198
  ...it(),
200
- ...at()
199
+ ...at(),
200
+ ...st()
201
201
  }, Ae = async (t, e) => !e || !ye[t] ? null : e.sendAnalyticEvent(ye[t]).then((n) => n).catch((n) => {
202
202
  throw n;
203
203
  }), Se = async (t, e) => !e || !fe[t] ? null : e.sendAnalyticsPageview(fe[t]).then((n) => n).catch((n) => {
204
204
  throw n;
205
205
  });
206
- class st {
206
+ class ct {
207
207
  onAnalyticEvent = Ae;
208
208
  onAnalyticPageView = Se;
209
209
  beatApi = new ge("/", "");
@@ -228,7 +228,7 @@ class st {
228
228
  this.beatApi.updateOffer(e);
229
229
  };
230
230
  }
231
- class ct {
231
+ class lt {
232
232
  copyStore;
233
233
  endpoint = "/";
234
234
  insightsMicroWidgetStore;
@@ -236,25 +236,25 @@ class ct {
236
236
  token = "";
237
237
  isInitialized = !1;
238
238
  constructor() {
239
- this.copyStore = new nt(), this.insightsMicroWidgetStore = new st(), le(this);
239
+ this.copyStore = new rt(), this.insightsMicroWidgetStore = new ct(), le(this);
240
240
  }
241
241
  initialize = async (e, n, r) => {
242
242
  await this.copyStore.initialize(e, n), await this.insightsMicroWidgetStore.initialize(e, n, r);
243
- const i = await Ze(e, n, "1.0.0", "Micro Insights Carousel");
243
+ const i = await Qe(e, n, "1.0.0", "Micro Insights Carousel");
244
244
  We(() => {
245
245
  this.session = i, this.isInitialized = !0;
246
246
  });
247
247
  };
248
248
  }
249
- const Y = h.createContext(null), lt = ({
249
+ const Y = h.createContext(null), dt = ({
250
250
  onEvent: t,
251
251
  onPageview: e,
252
252
  store: n,
253
253
  children: r
254
- }) => /* @__PURE__ */ o(Y.Provider, { value: { onEvent: t, onPageview: e, store: n, children: r }, children: r }), dt = ({ beat: t }) => {
255
- const { primary_category_guid: e, category_guids: n } = t, r = e || n?.[0] || je.UNCATEGORIZED;
254
+ }) => /* @__PURE__ */ o(Y.Provider, { value: { onEvent: t, onPageview: e, store: n, children: r }, children: r }), _t = ({ beat: t }) => {
255
+ const { primary_category_guid: e, category_guids: n } = t, r = e || n?.[0] || Ye.UNCATEGORIZED;
256
256
  return /* @__PURE__ */ o(ke, { categoryGuid: r, size: 32, sx: { minWidth: 32 } });
257
- }, _t = ({
257
+ }, pt = ({
258
258
  avatarSx: t,
259
259
  bgColor: e,
260
260
  name: n,
@@ -262,7 +262,7 @@ const Y = h.createContext(null), lt = ({
262
262
  fill: i = !0,
263
263
  sx: a
264
264
  }) => /* @__PURE__ */ o(
265
- ot,
265
+ nt,
266
266
  {
267
267
  sx: {
268
268
  bgcolor: e,
@@ -271,9 +271,9 @@ const Y = h.createContext(null), lt = ({
271
271
  ...t
272
272
  },
273
273
  variant: "rounded",
274
- children: /* @__PURE__ */ o(Ke, { color: r, fill: i, name: n, size: 20, sx: a })
274
+ children: /* @__PURE__ */ o(Fe, { color: r, fill: i, name: n, size: 20, sx: a })
275
275
  }
276
- ), l = _t, pt = ({ beat: t }) => {
276
+ ), l = pt, mt = ({ beat: t }) => {
277
277
  const { category_guids: e, merchant_guids: n, primary_category_guid: r, primary_merchant_guid: i } = t;
278
278
  return /* @__PURE__ */ o(
279
279
  Ue,
@@ -288,27 +288,27 @@ const Y = h.createContext(null), lt = ({
288
288
  }
289
289
  }
290
290
  );
291
- }, mt = (t) => t ? t.data ? t.data.map((e) => {
291
+ }, ut = (t) => t ? t.data ? t.data.map((e) => {
292
292
  const n = {};
293
293
  return t.names?.map((r, i) => {
294
294
  n[r] = e[i];
295
295
  }), n;
296
296
  }) : [] : [], q = "primary", Le = "success", De = "error", xe = (t) => {
297
- const e = mt(t), n = Math.floor(e.length / 2);
297
+ const e = ut(t), n = Math.floor(e.length / 2);
298
298
  if (n === 0 || n === e.length) return q;
299
299
  const r = e[0]?.amount, i = e[n]?.amount;
300
300
  return r == null || i == null ? q : r > i ? De : r < i ? Le : q;
301
- }, ut = (t, e) => t < e ? Le : t > e ? De : q, Ct = ({ beat: t }) => {
301
+ }, Ct = (t, e) => t < e ? Le : t > e ? De : q, ht = ({ beat: t }) => {
302
302
  const e = ce(), n = xe(t.data_series), r = e.palette[n].main;
303
303
  return /* @__PURE__ */ o(l, { bgColor: c(r, 0.15), iconColor: n, name: "bar_chart" });
304
- }, ht = ({ beat: t }) => {
304
+ }, gt = ({ beat: t }) => {
305
305
  const e = ce(), n = t.payload?.average_spend || 0;
306
306
  let r = 0;
307
307
  if (t.data_series?.data && t.data_series.data.length > 0) {
308
308
  const s = (t.data_series.names || []).indexOf("amount");
309
309
  s !== -1 && (r = t.data_series.data[0][s] || 0);
310
310
  }
311
- const i = ut(r, n);
311
+ const i = Ct(r, n);
312
312
  return /* @__PURE__ */ o(
313
313
  l,
314
314
  {
@@ -317,7 +317,7 @@ const Y = h.createContext(null), lt = ({
317
317
  name: "timeline"
318
318
  }
319
319
  );
320
- }, gt = ({ beat: t }) => {
320
+ }, Et = ({ beat: t }) => {
321
321
  const e = ce(), n = xe(t.data_series), r = e.palette[n].main;
322
322
  return /* @__PURE__ */ o(
323
323
  l,
@@ -328,11 +328,11 @@ const Y = h.createContext(null), lt = ({
328
328
  name: "area_chart"
329
329
  }
330
330
  );
331
- }, Et = {
331
+ }, It = ({ beat: t }) => /* @__PURE__ */ o(ze, { alt: t.institutionName || "", institutionGuid: t.institutionGuid || "" }), ft = {
332
332
  0: (t, e) => /* @__PURE__ */ o(l, { bgColor: c(e.palette.primary.main, 0.15), name: "error" }),
333
- 1: (t) => /* @__PURE__ */ o(dt, { beat: t }),
334
- 2: (t) => /* @__PURE__ */ o(pt, { beat: t }),
335
- 3: (t) => /* @__PURE__ */ o(Ct, { beat: t }),
333
+ 1: (t) => /* @__PURE__ */ o(_t, { beat: t }),
334
+ 2: (t) => /* @__PURE__ */ o(mt, { beat: t }),
335
+ 3: (t) => /* @__PURE__ */ o(ht, { beat: t }),
336
336
  4: (t, e) => /* @__PURE__ */ o(
337
337
  l,
338
338
  {
@@ -365,7 +365,7 @@ const Y = h.createContext(null), lt = ({
365
365
  sx: { color: "text.primary" }
366
366
  }
367
367
  ),
368
- 12: (t) => /* @__PURE__ */ o(gt, { beat: t }),
368
+ 12: (t) => /* @__PURE__ */ o(Et, { beat: t }),
369
369
  13: () => /* @__PURE__ */ o(
370
370
  l,
371
371
  {
@@ -434,7 +434,7 @@ const Y = h.createContext(null), lt = ({
434
434
  ),
435
435
  27: (t, e) => /* @__PURE__ */ o(l, { bgColor: c(e.palette.primary.main, 0.15), name: "directions_car" }),
436
436
  28: (t, e) => /* @__PURE__ */ o(l, { bgColor: c(e.palette.primary.main, 0.15), name: "contract" }),
437
- 29: (t) => /* @__PURE__ */ o(ht, { beat: t }),
437
+ 29: (t) => /* @__PURE__ */ o(gt, { beat: t }),
438
438
  30: (t, e) => /* @__PURE__ */ o(l, { bgColor: c(e.palette.primary.main, 0.15), name: "calendar_month" }),
439
439
  31: (t, e) => /* @__PURE__ */ o(
440
440
  l,
@@ -452,16 +452,17 @@ const Y = h.createContext(null), lt = ({
452
452
  fill: !1,
453
453
  name: "storefront"
454
454
  }
455
- )
456
- }, It = ({ beat: t }) => {
457
- const e = j(), { icon_type: n } = t, r = n != null ? Et[n] : null;
455
+ ),
456
+ 34: (t) => /* @__PURE__ */ o(It, { beat: t })
457
+ }, yt = ({ beat: t }) => {
458
+ const e = j(), { icon_type: n } = t, r = n != null ? ft[n] : null;
458
459
  return r ? r(t, e) : /* @__PURE__ */ o(l, { bgColor: c(e.palette.primary.main, 0.15), name: "error" });
459
460
  }, x = () => {
460
461
  const t = h.useContext(Y);
461
462
  if (!t)
462
463
  throw new Error("useCopyStore() must be used within the InsightsMicroWidgetDataProvider");
463
464
  return t.store.copyStore;
464
- }, ft = () => {
465
+ }, At = () => {
465
466
  const t = h.useContext(Y);
466
467
  if (!t?.store?.insightsMicroWidgetStore)
467
468
  throw new Error(
@@ -478,12 +479,12 @@ const Y = h.createContext(null), lt = ({
478
479
  if (!t)
479
480
  throw new Error("usePageview() must be used within the InsightsMicroWidgetDataProvider");
480
481
  return { onPageview: t.onPageview };
481
- }, yt = {
482
+ }, St = {
482
483
  LARGE: 180,
483
484
  STANDARD: 154,
484
485
  XLARGE: 200,
485
486
  XXLARGE: 248
486
- }, At = 50, Pe = 1, St = h.forwardRef(
487
+ }, Tt = 50, Pe = 1, Rt = h.forwardRef(
487
488
  function({
488
489
  ariaLabel: e,
489
490
  cardSx: n,
@@ -503,8 +504,8 @@ const Y = h.createContext(null), lt = ({
503
504
  variant: S,
504
505
  widthOverrides: f,
505
506
  ...v
506
- }, w) {
507
- const k = !!(d && _), y = !!(m && A), P = C ? et : H, N = /* @__PURE__ */ M(Te, { children: [
507
+ }, N) {
508
+ const k = !!(d && _), y = !!(m && A), P = C ? tt : H, w = /* @__PURE__ */ M(Te, { children: [
508
509
  E && /* @__PURE__ */ o(
509
510
  se,
510
511
  {
@@ -519,7 +520,7 @@ const Y = h.createContext(null), lt = ({
519
520
  p.stopPropagation();
520
521
  },
521
522
  sx: { minHeight: 40, minWidth: 40, position: "absolute", right: 4, top: 4 },
522
- children: /* @__PURE__ */ o(Fe, {})
523
+ children: /* @__PURE__ */ o($e, {})
523
524
  }
524
525
  ),
525
526
  /* @__PURE__ */ M(W, { sx: { gap: 6, height: "100%", justifyContent: "space-between" }, children: [
@@ -604,7 +605,7 @@ const Y = h.createContext(null), lt = ({
604
605
  {
605
606
  "aria-hidden": !s,
606
607
  "aria-label": e,
607
- ref: w,
608
+ ref: N,
608
609
  role: "group",
609
610
  sx: {
610
611
  backgroundColor: "background.paper",
@@ -618,8 +619,9 @@ const Y = h.createContext(null), lt = ({
618
619
  variant: S,
619
620
  ...v,
620
621
  children: u ? /* @__PURE__ */ o(
621
- tt,
622
+ ot,
622
623
  {
624
+ component: "div",
623
625
  onClick: u,
624
626
  sx: {
625
627
  pb: 8,
@@ -627,13 +629,13 @@ const Y = h.createContext(null), lt = ({
627
629
  px: 16,
628
630
  height: "100%"
629
631
  },
630
- children: N
632
+ children: w
631
633
  }
632
- ) : /* @__PURE__ */ o(H, { sx: { pb: 8, pt: 16, px: 16, height: "100%" }, children: N })
634
+ ) : /* @__PURE__ */ o(H, { sx: { pb: 8, pt: 16, px: 16, height: "100%" }, children: w })
633
635
  }
634
636
  );
635
637
  }
636
- ), J = St, Tt = ({
638
+ ), J = Rt, Ot = ({
637
639
  ariaLabel: t,
638
640
  beat: e,
639
641
  index: n,
@@ -647,15 +649,15 @@ const Y = h.createContext(null), lt = ({
647
649
  }) => {
648
650
  const { ref: u, inView: d } = Oe({
649
651
  threshold: Pe
650
- }), { cardsCopy: m } = x(), { onEvent: _ } = X(), { updateBeat: A, updateOffer: I } = ft();
652
+ }), { cardsCopy: m } = x(), { onEvent: _ } = X(), { updateBeat: A, updateOffer: I } = At();
651
653
  ie(() => {
652
- d && (e.has_been_displayed ? _(we(e.template)) : (e.guid.startsWith("OFR") ? I({
654
+ d && (e.has_been_displayed ? _(Ne(e.template)) : (e.guid.startsWith("OFR") ? I({
653
655
  ...e,
654
656
  has_been_displayed: !0
655
657
  }) : A({
656
658
  ...e,
657
659
  has_been_displayed: !0
658
- }), _(Ne(e.template))));
660
+ }), _(we(e.template))));
659
661
  }, [d]), ie(() => {
660
662
  if (d && e)
661
663
  if (e.template === "MarketingOffer") {
@@ -698,18 +700,18 @@ const Y = h.createContext(null), lt = ({
698
700
  description: e?.html_micro_description && e?.html_micro_description.length > 0 ? e.html_micro_description : e.html_description || "",
699
701
  hasCardEffect: !0,
700
702
  heightOverrides: E,
701
- icon: g && /* @__PURE__ */ o(It, { beat: e }),
703
+ icon: g && /* @__PURE__ */ o(yt, { beat: e }),
702
704
  isActiveCard: r,
703
705
  onCardClick: S,
704
706
  onPrimaryAction: S,
705
- primaryActionText: e.micro_call_to_action || m.micro_card_cta,
707
+ primaryActionText: e.micro_call_to_action || m?.micro_card_cta,
706
708
  ref: u,
707
709
  title: e.micro_title && e.micro_title.length > 0 ? e.micro_title : e.title,
708
710
  variant: C,
709
711
  widthOverrides: s
710
712
  }
711
713
  );
712
- }, Rt = ({
714
+ }, Wt = ({
713
715
  currentBeatIndex: t,
714
716
  numBeats: e,
715
717
  onNextClick: n,
@@ -739,11 +741,11 @@ const Y = h.createContext(null), lt = ({
739
741
  se,
740
742
  {
741
743
  "aria-disabled": u,
742
- "aria-label": E.previous_insight_cta_aria,
744
+ "aria-label": E?.previous_insight_cta_aria,
743
745
  disabled: u,
744
746
  onClick: r,
745
747
  children: /* @__PURE__ */ o(
746
- $e,
748
+ He,
747
749
  {
748
750
  style: {
749
751
  color: u ? m : _
@@ -782,7 +784,7 @@ const Y = h.createContext(null), lt = ({
782
784
  se,
783
785
  {
784
786
  "aria-disabled": d,
785
- "aria-label": E.next_insight_cta_aria,
787
+ "aria-label": E?.next_insight_cta_aria,
786
788
  disabled: d,
787
789
  onClick: n,
788
790
  children: /* @__PURE__ */ o(
@@ -798,7 +800,7 @@ const Y = h.createContext(null), lt = ({
798
800
  ]
799
801
  }
800
802
  );
801
- }, Ot = ({
803
+ }, Mt = ({
802
804
  activeCardIndex: t,
803
805
  beats: e,
804
806
  cardWidth: n,
@@ -818,15 +820,15 @@ const Y = h.createContext(null), lt = ({
818
820
  };
819
821
  return /* @__PURE__ */ M(Te, { children: [
820
822
  e.map((d, m) => {
821
- const _ = m + 1, A = e.length + 1, I = Ye(
822
- E.card_position_in_carousel_aria,
823
+ const _ = m + 1, A = e.length + 1, I = Xe(
824
+ E?.card_position_in_carousel_aria,
823
825
  _.toString(),
824
826
  A.toString()
825
- ), S = d.micro_title && d.micro_title.length > 0, f = d.micro_description && d.micro_description.length > 0, v = S ? d.micro_title : d.title, w = f ? d.micro_description : d.description;
827
+ ), S = d.micro_title && d.micro_title.length > 0, f = d.micro_description && d.micro_description.length > 0, v = S ? d.micro_title : d.title, N = f ? d.micro_description : d.description;
826
828
  return /* @__PURE__ */ o(
827
- Tt,
829
+ Ot,
828
830
  {
829
- ariaLabel: `${I}: ${v}, ${w}`,
831
+ ariaLabel: `${I}: ${v}, ${N}`,
830
832
  beat: d,
831
833
  index: m,
832
834
  isActiveCard: m === t,
@@ -838,7 +840,7 @@ const Y = h.createContext(null), lt = ({
838
840
  );
839
841
  }),
840
842
  /* @__PURE__ */ o(
841
- vt,
843
+ Bt,
842
844
  {
843
845
  isActiveCard: t === e.length,
844
846
  onCardClick: a,
@@ -847,7 +849,7 @@ const Y = h.createContext(null), lt = ({
847
849
  }
848
850
  )
849
851
  ] });
850
- }, Wt = ({
852
+ }, Nt = ({
851
853
  analyticsMetadata: t,
852
854
  allowSingleCardPeeking: e = !1,
853
855
  beats: n = [],
@@ -863,7 +865,7 @@ const Y = h.createContext(null), lt = ({
863
865
  visibleCardsCount: m = 1
864
866
  // Default to 1 card visible
865
867
  }) => {
866
- const _ = h.useRef(null), A = h.useRef(null), [I, S] = h.useState(0), [f, v] = h.useState(null), [w, k] = h.useState(null), [y, P] = h.useState(null), { carouselCopy: N } = x(), { onEvent: p } = X();
868
+ const _ = h.useRef(null), A = h.useRef(null), [I, S] = h.useState(0), [f, v] = h.useState(null), [N, k] = h.useState(null), [y, P] = h.useState(null), { carouselCopy: w } = x(), { onEvent: p } = X();
867
869
  h.useEffect(() => {
868
870
  if (_.current && !e) {
869
871
  const O = _.current.offsetWidth, F = 8;
@@ -913,8 +915,8 @@ const Y = h.createContext(null), lt = ({
913
915
  }, Q = () => {
914
916
  _.current && S(_.current.scrollLeft);
915
917
  }, te = () => {
916
- if (!w || !f) return;
917
- w - f > At ? p(R.ON_CAROUSEL_FORWARD_SWIPE, t) : p(R.ON_CAROUSEL_BACK_SWIPE, t);
918
+ if (!N || !f) return;
919
+ N - f > Tt ? p(R.ON_CAROUSEL_FORWARD_SWIPE, t) : p(R.ON_CAROUSEL_BACK_SWIPE, t);
918
920
  }, oe = (O) => {
919
921
  v(O.targetTouches[0].clientX);
920
922
  }, ne = (O) => {
@@ -923,7 +925,7 @@ const Y = h.createContext(null), lt = ({
923
925
  return /* @__PURE__ */ M(
924
926
  W,
925
927
  {
926
- "aria-label": N.carousel_title,
928
+ "aria-label": w?.carousel_title,
927
929
  "aria-roledescription": "carousel",
928
930
  ref: A,
929
931
  role: "region",
@@ -961,7 +963,7 @@ const Y = h.createContext(null), lt = ({
961
963
  }
962
964
  },
963
965
  children: /* @__PURE__ */ o(
964
- Ot,
966
+ Mt,
965
967
  {
966
968
  activeCardIndex: K,
967
969
  beats: n,
@@ -977,7 +979,7 @@ const Y = h.createContext(null), lt = ({
977
979
  }
978
980
  ),
979
981
  C && /* @__PURE__ */ o(
980
- Rt,
982
+ Wt,
981
983
  {
982
984
  currentBeatIndex: K + m - 1,
983
985
  numBeats: n.length + 1,
@@ -992,7 +994,7 @@ const Y = h.createContext(null), lt = ({
992
994
  ]
993
995
  }
994
996
  );
995
- }, Mt = z(Wt), wt = ({
997
+ }, wt = z(Nt), bt = ({
996
998
  analyticsMetadata: t,
997
999
  onCardClick: e,
998
1000
  posthog: n,
@@ -1016,7 +1018,7 @@ const Y = h.createContext(null), lt = ({
1016
1018
  ...i
1017
1019
  },
1018
1020
  children: [
1019
- /* @__PURE__ */ o(ze, { children: a.carousel_title }),
1021
+ /* @__PURE__ */ o(Ke, { children: a.carousel_title }),
1020
1022
  /* @__PURE__ */ o(
1021
1023
  ae,
1022
1024
  {
@@ -1029,8 +1031,8 @@ const Y = h.createContext(null), lt = ({
1029
1031
  )
1030
1032
  ]
1031
1033
  }
1032
- ) : /* @__PURE__ */ o(He, {});
1033
- }, Nt = z(wt), bt = ({
1034
+ ) : /* @__PURE__ */ o(je, {});
1035
+ }, Lt = z(bt), Dt = ({
1034
1036
  heightOverrides: t,
1035
1037
  widthOverrides: e,
1036
1038
  children: n
@@ -1086,7 +1088,7 @@ const Y = h.createContext(null), lt = ({
1086
1088
  variant: a
1087
1089
  }
1088
1090
  );
1089
- }, io = z(Be), Ve = ({
1091
+ }, so = z(Be), Ve = ({
1090
1092
  ariaLabel: t,
1091
1093
  heightOverrides: e,
1092
1094
  onCardClick: n,
@@ -1112,7 +1114,7 @@ const Y = h.createContext(null), lt = ({
1112
1114
  variant: i
1113
1115
  }
1114
1116
  );
1115
- }, ao = z(Ve), Lt = () => /* @__PURE__ */ o(
1117
+ }, co = z(Ve), xt = () => /* @__PURE__ */ o(
1116
1118
  H,
1117
1119
  {
1118
1120
  sx: {
@@ -1122,9 +1124,9 @@ const Y = h.createContext(null), lt = ({
1122
1124
  justifyContent: "center",
1123
1125
  width: "100%"
1124
1126
  },
1125
- children: /* @__PURE__ */ o(Xe, {})
1127
+ children: /* @__PURE__ */ o(Ze, {})
1126
1128
  }
1127
- ), V = new ct(), Dt = ({
1129
+ ), V = new lt(), vt = ({
1128
1130
  allowSingleCardPeeking: t,
1129
1131
  areBeatsLoading: e,
1130
1132
  beats: n = [],
@@ -1148,19 +1150,19 @@ const Y = h.createContext(null), lt = ({
1148
1150
  showWithMargin: S = !0,
1149
1151
  token: f = "",
1150
1152
  userHasFullInsightFeedBeats: v,
1151
- variant: w,
1153
+ variant: N,
1152
1154
  visibleCardsCount: k = 1,
1153
1155
  widthOverrides: y
1154
1156
  }) => {
1155
- const [P, N] = re("STANDARD"), [p, ee] = re(!1), [Z, Q] = re(!1), te = Qe([E], V), oe = qe([u], V);
1156
- Je({
1157
+ const [P, w] = re("STANDARD"), [p, ee] = re(!1), [Z, Q] = re(!1), te = qe([E], V), oe = Je([u], V);
1158
+ et({
1157
1159
  widgetName: "InsightsMicroWidget",
1158
1160
  isLoaded: p
1159
1161
  }), h.useEffect(() => {
1160
1162
  !V.isInitialized && !Z && (V.initialize(i, f, C).catch(() => Q(!1)), Q(!0));
1161
1163
  }, [i, f, C, V.isInitialized, Z]), h.useEffect(() => {
1162
1164
  const B = window.innerHeight;
1163
- B < 180 ? N("STANDARD") : B >= 180 && B < 200 ? N("LARGE") : B >= 200 && B < 248 ? N("XLARGE") : B >= 248 && N("XXLARGE");
1165
+ B < 180 ? w("STANDARD") : B >= 180 && B < 200 ? w("LARGE") : B >= 200 && B < 248 ? w("XLARGE") : B >= 248 && w("XXLARGE");
1164
1166
  }, [window.innerHeight]), h.useEffect(() => {
1165
1167
  ee(!e && V.isInitialized);
1166
1168
  }, [e, V.isInitialized]);
@@ -1174,17 +1176,17 @@ const Y = h.createContext(null), lt = ({
1174
1176
  widthOverrides: y
1175
1177
  }, K = {
1176
1178
  carouselSize: P,
1177
- variant: w,
1179
+ variant: N,
1178
1180
  showCTAColocatedWithText: r,
1179
1181
  heightOverrides: a,
1180
1182
  onCardClick: g,
1181
1183
  posthog: d,
1182
1184
  showIcon: I
1183
1185
  };
1184
- return /* @__PURE__ */ o(lt, { onEvent: te, onPageview: oe, store: V, children: /* @__PURE__ */ M(bt, { heightOverrides: a, widthOverrides: y, children: [
1185
- !p && /* @__PURE__ */ o(Lt, {}),
1186
+ return /* @__PURE__ */ o(dt, { onEvent: te, onPageview: oe, store: V, children: /* @__PURE__ */ M(Dt, { heightOverrides: a, widthOverrides: y, children: [
1187
+ !p && /* @__PURE__ */ o(xt, {}),
1186
1188
  p && A && /* @__PURE__ */ o(
1187
- Nt,
1189
+ Lt,
1188
1190
  {
1189
1191
  analyticsMetadata: Ee,
1190
1192
  headerSx: s,
@@ -1194,13 +1196,13 @@ const Y = h.createContext(null), lt = ({
1194
1196
  }
1195
1197
  ),
1196
1198
  p && !!n.length && /* @__PURE__ */ o(
1197
- Mt,
1199
+ wt,
1198
1200
  {
1199
1201
  allowSingleCardPeeking: t,
1200
1202
  analyticsMetadata: Ee,
1201
1203
  beats: n,
1202
1204
  showCarouselControls: _,
1203
- variant: m ? w : void 0,
1205
+ variant: m ? N : void 0,
1204
1206
  visibleCardsCount: k,
1205
1207
  ...ne
1206
1208
  }
@@ -1217,7 +1219,7 @@ const Y = h.createContext(null), lt = ({
1217
1219
  W,
1218
1220
  {
1219
1221
  sx: {
1220
- height: `calc(${yt[P]}px - 44px)`,
1222
+ height: `calc(${St[P]}px - 44px)`,
1221
1223
  width: S ? `calc(${y}px - 32px)` : "100%"
1222
1224
  },
1223
1225
  children: v ? /* @__PURE__ */ o(Be, { ...K }) : /* @__PURE__ */ o(Ve, { ...K })
@@ -1226,7 +1228,7 @@ const Y = h.createContext(null), lt = ({
1226
1228
  }
1227
1229
  )
1228
1230
  ] }) });
1229
- }, so = z(Dt), xt = ({
1231
+ }, lo = z(vt), Pt = ({
1230
1232
  ariaLabel: t,
1231
1233
  heightOverrides: e,
1232
1234
  isActiveCard: n,
@@ -1257,33 +1259,33 @@ const Y = h.createContext(null), lt = ({
1257
1259
  cardSx: {
1258
1260
  borderRadius: 2
1259
1261
  },
1260
- description: d.view_more_card_description,
1262
+ description: d?.view_more_card_description,
1261
1263
  hasCardEffect: !0,
1262
1264
  heightOverrides: e,
1263
1265
  icon: s && /* @__PURE__ */ o(l, { bgColor: c(g.palette.primary.main, 0.15), name: "show_chart" }),
1264
1266
  isActiveCard: n,
1265
1267
  onCardClick: _,
1266
1268
  onPrimaryAction: _,
1267
- primaryActionText: d.micro_card_cta,
1269
+ primaryActionText: d?.micro_card_cta,
1268
1270
  ref: E,
1269
- title: d.view_more_card_title,
1271
+ title: d?.view_more_card_title,
1270
1272
  variant: C,
1271
1273
  widthOverrides: a
1272
1274
  }
1273
1275
  );
1274
- }, vt = z(xt);
1276
+ }, Bt = z(Pt);
1275
1277
  export {
1276
- ct as A,
1278
+ lt as A,
1277
1279
  l as B,
1278
- Nt as C,
1279
- lt as I,
1280
- Mt as M,
1281
- io as N,
1280
+ Lt as C,
1281
+ dt as I,
1282
+ wt as M,
1283
+ so as N,
1282
1284
  Ee as T,
1283
- vt as V,
1284
- ao as Z,
1285
- Tt as a,
1286
- so as b,
1287
- Ct as c,
1285
+ Bt as V,
1286
+ co as Z,
1287
+ Ot as a,
1288
+ lo as b,
1289
+ ht as c,
1288
1290
  J as d
1289
1291
  };
@@ -11,7 +11,7 @@ import U from "@mui/material/ListSubheader";
11
11
  import P from "@mui/system/Stack";
12
12
  import { useTheme as M1, alpha as y1 } from "@mui/material/styles";
13
13
  import { u as S, A as x1 } from "../AccountDetailsHeader-D9gbTbUt.mjs";
14
- import { L as b1 } from "../LineChart-DBSlRSEm.mjs";
14
+ import { L as b1 } from "../LineChart-DBcA1UJI.mjs";
15
15
  import { g as w1, a as R1, b as S1 } from "../SpendingData-Bz1bCWAs.mjs";
16
16
  import { l as T1, u as y, d as k, g as I, h as m1, b as G, a as E1 } from "../hooks-BxkfR-Ff.mjs";
17
17
  import { A as N, g as L, N as p1 } from "../Account-BiB1F8lL.mjs";
@@ -56,7 +56,7 @@ import t3 from "@mui/material/Link";
56
56
  import n3 from "@mui/material/Paper";
57
57
  import { subDays as o3, startOfToday as i3, endOfToday as c3 } from "date-fns";
58
58
  import { T as a3 } from "../StatusIndicator-CIKUOoN_.mjs";
59
- import { T as s3 } from "../TransactionDetails-BpcWeXNU.mjs";
59
+ import { T as s3 } from "../TransactionDetails-CBrqmEw1.mjs";
60
60
  import { T as r1 } from "../TabContentContainer-j01JYR_7.mjs";
61
61
  import { f as d1 } from "../NumberFormatting-QCaNwbjv.mjs";
62
62
  import { C as l3 } from "../ConnectionsDrawer-IA7vnv1J.mjs";