@mx-cartographer/experiences 7.10.5 → 7.10.6

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
+ ## [7.10.6] - 02-09-2026
2
+
3
+ - **UPDATED** - MicroInsight Design fix
4
+
1
5
  ## [7.10.5] - 02-09-2026
2
6
 
3
7
  - **FIXED** - `Trends` Header ADA Fix
@@ -6,9 +6,9 @@ import ne from "@mui/material/Button";
6
6
  import { CategoryIcon as be, MerchantLogo as Pe, P as _e, Text as ue, H3 as Be } from "@mxenabled/mxui";
7
7
  import { Icon as Ve, Close as Ge, ChevronLeft as ke, ChevronRight as Te } from "@mxenabled/mx-icons";
8
8
  import { L as ze } from "./Loader-DUaFpDGv.mjs";
9
- import Q from "@mui/material/Box";
9
+ import H from "@mui/material/Box";
10
10
  import re from "@mui/material/IconButton";
11
- import { alpha as f, useTheme as H } from "@mui/material/styles";
11
+ import { alpha as f, useTheme as $ } from "@mui/material/styles";
12
12
  import { useInView as fe } from "react-intersection-observer";
13
13
  import { b as Ue } from "./Category-CevNQ03n.mjs";
14
14
  import Ke from "@mui/material/styles/useTheme";
@@ -156,7 +156,7 @@ const se = {
156
156
  path: "/micro-widget",
157
157
  value: O
158
158
  }
159
- }, Ie = {
159
+ }, ge = {
160
160
  // carousel control interaction events - clicks and swipes
161
161
  [y.ON_CAROUSEL_BACK_CLICK]: {
162
162
  action: P.CONTROL_BACKWARD,
@@ -198,13 +198,13 @@ const se = {
198
198
  ...et(),
199
199
  ...tt(),
200
200
  ...ot()
201
- }, ge = async (t, e) => !e || !Ie[t] ? null : e.sendAnalyticEvent(Ie[t]).then((o) => o).catch((o) => {
201
+ }, Ie = async (t, e) => !e || !ge[t] ? null : e.sendAnalyticEvent(ge[t]).then((o) => o).catch((o) => {
202
202
  throw o;
203
203
  }), Ae = async (t, e) => !e || !Ee[t] ? null : e.sendAnalyticsPageview(Ee[t]).then((o) => o).catch((o) => {
204
204
  throw o;
205
205
  });
206
206
  class it {
207
- onAnalyticEvent = ge;
207
+ onAnalyticEvent = Ie;
208
208
  onAnalyticPageView = Ae;
209
209
  beatApi = new he("/", "");
210
210
  constructor() {
@@ -212,7 +212,7 @@ class it {
212
212
  }
213
213
  initialize = async (e, o, n) => {
214
214
  this.onAnalyticEvent = (r, a) => {
215
- ge(r, a).then((s) => s).catch((s) => {
215
+ Ie(r, a).then((s) => s).catch((s) => {
216
216
  throw s.status === 401 && n(), s;
217
217
  });
218
218
  }, this.onAnalyticPageView = (r, a) => {
@@ -246,12 +246,12 @@ class nt {
246
246
  });
247
247
  };
248
248
  }
249
- const $ = h.createContext(null), rt = ({
249
+ const j = h.createContext(null), rt = ({
250
250
  onEvent: t,
251
251
  onPageview: e,
252
252
  store: o,
253
253
  children: n
254
- }) => /* @__PURE__ */ i($.Provider, { value: { onEvent: t, onPageview: e, store: o, children: n }, children: n }), at = ({ beat: t }) => {
254
+ }) => /* @__PURE__ */ i(j.Provider, { value: { onEvent: t, onPageview: e, store: o, children: n }, children: n }), at = ({ beat: t }) => {
255
255
  const { primary_category_guid: e, category_guids: o } = t, n = e || o?.[0] || Ue.UNCATEGORIZED;
256
256
  return /* @__PURE__ */ i(be, { categoryGuid: n, size: 32, sx: { minWidth: 32 } });
257
257
  }, st = ({
@@ -322,27 +322,27 @@ const $ = h.createContext(null), rt = ({
322
322
  8: (t, e) => /* @__PURE__ */ i(R, { bgColor: f(e.palette.primary.main, 0.15), name: "calendar_clock" }),
323
323
  9: (t, e) => /* @__PURE__ */ i(R, { bgColor: f(e.palette.primary.main, 0.15), name: "celebration" })
324
324
  }, pt = ({ beat: t }) => {
325
- const e = H(), { icon_type: o } = t, n = o != null ? ut[o] : null;
325
+ const e = $(), { icon_type: o } = t, n = o != null ? ut[o] : null;
326
326
  return n ? n(t, e) : /* @__PURE__ */ i(R, { bgColor: f(e.palette.primary.main, 0.15), name: "error" });
327
327
  }, B = () => {
328
- const t = h.useContext($);
328
+ const t = h.useContext(j);
329
329
  if (!t)
330
330
  throw new Error("useCopyStore() must be used within the InsightsMicroWidgetDataProvider");
331
331
  return t.store.copyStore;
332
332
  }, ht = () => {
333
- const t = h.useContext($);
333
+ const t = h.useContext(j);
334
334
  if (!t?.store?.insightsMicroWidgetStore)
335
335
  throw new Error(
336
336
  "useInsightsMicroWidgetStore() must be used within the InsightsMicroWidgetDataProvider"
337
337
  );
338
338
  return t.store.insightsMicroWidgetStore;
339
- }, j = () => {
340
- const t = h.useContext($);
339
+ }, Y = () => {
340
+ const t = h.useContext(j);
341
341
  if (!t)
342
342
  throw new Error("useEvent() must be used within the InsightsMicroWidgetDataProvider");
343
343
  return { onEvent: t.onEvent };
344
344
  }, Me = () => {
345
- const t = h.useContext($);
345
+ const t = h.useContext(j);
346
346
  if (!t)
347
347
  throw new Error("usePageview() must be used within the InsightsMicroWidgetDataProvider");
348
348
  return { onPageview: t.onPageview };
@@ -360,25 +360,25 @@ const $ = h.createContext(null), rt = ({
360
360
  icon: a,
361
361
  isActiveCard: s,
362
362
  hasCardEffect: p = !1,
363
- heightOverrides: m,
364
- onClose: C,
363
+ heightOverrides: C,
364
+ onClose: m,
365
365
  onCardClick: _,
366
366
  onPrimaryAction: c,
367
367
  onSecondaryAction: d,
368
368
  primaryActionText: l,
369
- secondaryActionText: I,
369
+ secondaryActionText: g,
370
370
  title: E,
371
371
  variant: A,
372
- widthOverrides: g,
372
+ widthOverrides: I,
373
373
  ...D
374
374
  }, V) {
375
- const S = !!(c && l), T = !!(d && I), M = p ? Ze : Q, w = /* @__PURE__ */ L(Se, { children: [
376
- C && /* @__PURE__ */ i(
375
+ const S = !!(c && l), T = !!(d && g), M = p ? Ze : H, w = /* @__PURE__ */ L(Se, { children: [
376
+ m && /* @__PURE__ */ i(
377
377
  re,
378
378
  {
379
379
  "aria-label": n,
380
380
  onClick: (u) => {
381
- u.stopPropagation(), C?.();
381
+ u.stopPropagation(), m?.();
382
382
  },
383
383
  onMouseDown: (u) => {
384
384
  u.stopPropagation();
@@ -435,7 +435,7 @@ const $ = h.createContext(null), rt = ({
435
435
  u.stopPropagation();
436
436
  },
437
437
  size: "small",
438
- sx: { px: a ? 8 : 0 },
438
+ sx: { px: 8, ml: a ? 0 : -8 },
439
439
  variant: "text",
440
440
  children: /* @__PURE__ */ i(ue, { bold: !0, variant: "body2", children: l })
441
441
  }
@@ -455,7 +455,7 @@ const $ = h.createContext(null), rt = ({
455
455
  size: "small",
456
456
  sx: { px: 8 },
457
457
  variant: "text",
458
- children: /* @__PURE__ */ i(ue, { bold: !0, sx: { color: "text.secondary" }, variant: "body2", children: I })
458
+ children: /* @__PURE__ */ i(ue, { bold: !0, sx: { color: "text.secondary" }, variant: "body2", children: g })
459
459
  }
460
460
  )
461
461
  ]
@@ -472,9 +472,10 @@ const $ = h.createContext(null), rt = ({
472
472
  role: "group",
473
473
  sx: {
474
474
  backgroundColor: "background.paper",
475
- height: m ? "100%" : 124,
476
- minWidth: g ? `${g}px` : "100%",
475
+ height: C ? "100%" : 120,
476
+ minWidth: I ? `${I}px` : "100%",
477
477
  position: "relative",
478
+ my: 1,
478
479
  ...o
479
480
  },
480
481
  tabIndex: _ || !s ? -1 : 0,
@@ -488,15 +489,15 @@ const $ = h.createContext(null), rt = ({
488
489
  pb: 8,
489
490
  pt: 16,
490
491
  px: 16,
491
- height: m ? "100%" : 124
492
+ height: "100%"
492
493
  },
493
494
  children: w
494
495
  }
495
- ) : w
496
+ ) : /* @__PURE__ */ i(H, { sx: { pb: 8, pt: 16, px: 16, height: "100%" }, children: w })
496
497
  }
497
498
  );
498
499
  }
499
- ), q = Et, It = ({
500
+ ), q = Et, gt = ({
500
501
  ariaLabel: t,
501
502
  beat: e,
502
503
  index: o,
@@ -505,28 +506,28 @@ const $ = h.createContext(null), rt = ({
505
506
  posthog: a,
506
507
  widthOverrides: s,
507
508
  variant: p,
508
- showIcon: m,
509
- heightOverrides: C
509
+ showIcon: C,
510
+ heightOverrides: m
510
511
  }) => {
511
512
  const { ref: _, inView: c } = fe({
512
513
  threshold: we
513
- }), { cardsCopy: d } = B(), { onEvent: l } = j(), { updateBeat: I, updateOffer: E } = ht();
514
+ }), { cardsCopy: d } = B(), { onEvent: l } = Y(), { updateBeat: g, updateOffer: E } = ht();
514
515
  ie(() => {
515
516
  c && (e.has_been_displayed ? l(ye(e.template)) : (e.guid.startsWith("OFR") ? E({
516
517
  ...e,
517
518
  has_been_displayed: !0
518
- }) : I({
519
+ }) : g({
519
520
  ...e,
520
521
  has_been_displayed: !0
521
522
  }), l(We(e.template))));
522
523
  }, [c]), ie(() => {
523
524
  if (c && e)
524
525
  if (e.template === "MarketingOffer") {
525
- const g = e;
526
+ const I = e;
526
527
  a?.capture("viewed_messaging_insight", {
527
528
  template: e.template,
528
- campaign_guid: g.campaign_guid,
529
- campaign_name: g.pulse_campaign_name
529
+ campaign_guid: I.campaign_guid,
530
+ campaign_name: I.pulse_campaign_name
530
531
  });
531
532
  } else
532
533
  a?.capture("viewed_insight", {
@@ -537,11 +538,11 @@ const $ = h.createContext(null), rt = ({
537
538
  }, [e, o, c]);
538
539
  const A = () => {
539
540
  if (r && r(e), l(Oe(e.template)), e.template === "MarketingOffer") {
540
- const g = e;
541
+ const I = e;
541
542
  a?.capture("clicked_messaging_insight", {
542
543
  template: e.template,
543
- campaign_guid: g.campaign_guid,
544
- campaign_name: g.pulse_campaign_name
544
+ campaign_guid: I.campaign_guid,
545
+ campaign_name: I.pulse_campaign_name
545
546
  });
546
547
  } else
547
548
  a?.capture("clicked_insight", {
@@ -560,8 +561,8 @@ const $ = h.createContext(null), rt = ({
560
561
  },
561
562
  description: e?.html_micro_description && e?.html_micro_description.length > 0 ? e.html_micro_description : e.html_description || "",
562
563
  hasCardEffect: !0,
563
- heightOverrides: C,
564
- icon: m && /* @__PURE__ */ i(pt, { beat: e }),
564
+ heightOverrides: m,
565
+ icon: C && /* @__PURE__ */ i(pt, { beat: e }),
565
566
  isActiveCard: n,
566
567
  onCardClick: A,
567
568
  onPrimaryAction: A,
@@ -572,7 +573,7 @@ const $ = h.createContext(null), rt = ({
572
573
  widthOverrides: s
573
574
  }
574
575
  );
575
- }, gt = ({
576
+ }, It = ({
576
577
  currentBeatIndex: t,
577
578
  numBeats: e,
578
579
  onNextClick: o,
@@ -582,7 +583,7 @@ const $ = h.createContext(null), rt = ({
582
583
  shouldApplyDotAnimation: s = !1,
583
584
  visibleCardsCount: p = 1
584
585
  }) => {
585
- const m = H(), { carouselCopy: C } = B(), _ = Math.floor(a) > r || t - p + 1 === 0, c = a < 0 || e - 1 === t, d = m.palette.grey[500], l = m.palette.primary.main;
586
+ const C = $(), { carouselCopy: m } = B(), _ = Math.floor(a) > r || t - p + 1 === 0, c = a < 0 || e - 1 === t, d = C.palette.grey[500], l = C.palette.primary.main;
586
587
  return /* @__PURE__ */ L(
587
588
  N,
588
589
  {
@@ -602,7 +603,7 @@ const $ = h.createContext(null), rt = ({
602
603
  re,
603
604
  {
604
605
  "aria-disabled": _,
605
- "aria-label": C.previous_insight_cta_aria,
606
+ "aria-label": m.previous_insight_cta_aria,
606
607
  disabled: _,
607
608
  onClick: n,
608
609
  children: /* @__PURE__ */ i(
@@ -615,10 +616,10 @@ const $ = h.createContext(null), rt = ({
615
616
  )
616
617
  }
617
618
  ),
618
- Array.from({ length: e }).map((I, E) => {
619
+ Array.from({ length: e }).map((g, E) => {
619
620
  const A = E === t;
620
621
  return /* @__PURE__ */ i(
621
- Q,
622
+ H,
622
623
  {
623
624
  className: "mx-insights-micro-carousel-dots",
624
625
  sx: {
@@ -645,7 +646,7 @@ const $ = h.createContext(null), rt = ({
645
646
  re,
646
647
  {
647
648
  "aria-disabled": c,
648
- "aria-label": C.next_insight_cta_aria,
649
+ "aria-label": m.next_insight_cta_aria,
649
650
  disabled: c,
650
651
  onClick: o,
651
652
  children: /* @__PURE__ */ i(
@@ -670,24 +671,24 @@ const $ = h.createContext(null), rt = ({
670
671
  onCardClick: a,
671
672
  posthog: s,
672
673
  showIcon: p,
673
- variant: m
674
+ variant: C
674
675
  }) => {
675
- const { carouselCopy: C } = B(), _ = {
676
+ const { carouselCopy: m } = B(), _ = {
676
677
  showCTAColocatedWithText: n,
677
678
  heightOverrides: r,
678
679
  posthog: s,
679
680
  showIcon: p,
680
- variant: m
681
+ variant: C
681
682
  };
682
683
  return /* @__PURE__ */ L(Se, { children: [
683
684
  e.map((c, d) => {
684
- const l = d + 1, I = e.length + 1, E = Fe(
685
- C.card_position_in_carousel_aria,
685
+ const l = d + 1, g = e.length + 1, E = Fe(
686
+ m.card_position_in_carousel_aria,
686
687
  l.toString(),
687
- I.toString()
688
- ), A = c.micro_title && c.micro_title.length > 0, g = c.micro_description && c.micro_description.length > 0, D = A ? c.micro_title : c.title, V = g ? c.micro_description : c.description;
688
+ g.toString()
689
+ ), A = c.micro_title && c.micro_title.length > 0, I = c.micro_description && c.micro_description.length > 0, D = A ? c.micro_title : c.title, V = I ? c.micro_description : c.description;
689
690
  return /* @__PURE__ */ i(
690
- It,
691
+ gt,
691
692
  {
692
693
  ariaLabel: `${E}: ${D}, ${V}`,
693
694
  beat: c,
@@ -719,14 +720,14 @@ const $ = h.createContext(null), rt = ({
719
720
  onCardClick: a,
720
721
  posthog: s,
721
722
  showCarouselControls: p,
722
- showIcon: m,
723
- showWithMargin: C = !0,
723
+ showIcon: C,
724
+ showWithMargin: m = !0,
724
725
  variant: _,
725
726
  widthOverrides: c,
726
727
  visibleCardsCount: d = 1
727
728
  // Default to 1 card visible
728
729
  }) => {
729
- const l = h.useRef(null), I = h.useRef(null), [E, A] = h.useState(0), [g, D] = h.useState(null), [V, S] = h.useState(null), [T, M] = h.useState(null), { carouselCopy: w } = B(), { onEvent: u } = j();
730
+ const l = h.useRef(null), g = h.useRef(null), [E, A] = h.useState(0), [I, D] = h.useState(null), [V, S] = h.useState(null), [T, M] = h.useState(null), { carouselCopy: w } = B(), { onEvent: u } = Y();
730
731
  h.useEffect(() => {
731
732
  if (l.current && !e) {
732
733
  const W = l.current.offsetWidth, K = 8;
@@ -739,7 +740,7 @@ const $ = h.createContext(null), rt = ({
739
740
  M(z);
740
741
  }
741
742
  }, [d, l.current?.offsetWidth]), h.useEffect(() => {
742
- const W = I.current?.offsetWidth;
743
+ const W = g.current?.offsetWidth;
743
744
  if (typeof W == "number" && e) {
744
745
  const K = (F) => {
745
746
  const de = [
@@ -753,21 +754,21 @@ const $ = h.createContext(null), rt = ({
753
754
  };
754
755
  M(K(W));
755
756
  const z = () => {
756
- const F = I.current?.offsetWidth;
757
+ const F = g.current?.offsetWidth;
757
758
  typeof F == "number" && M(K(F));
758
759
  };
759
760
  return window.addEventListener("resize", z), () => {
760
761
  window.removeEventListener("resize", z);
761
762
  };
762
763
  }
763
- }, [e, I]);
764
- const Y = () => {
764
+ }, [e, g]);
765
+ const X = () => {
765
766
  u(y.ON_CAROUSEL_FORWARD_CLICK, t), l.current && T && l.current.scrollTo({
766
767
  left: E + T + 8,
767
768
  top: 0,
768
769
  behavior: "smooth"
769
770
  });
770
- }, X = () => {
771
+ }, Z = () => {
771
772
  u(y.ON_CAROUSEL_BACK_CLICK, t), l.current && T && l.current.scrollTo({
772
773
  left: Math.max(0, E - (T + 8)),
773
774
  top: 0,
@@ -776,11 +777,11 @@ const $ = h.createContext(null), rt = ({
776
777
  }, J = () => {
777
778
  l.current && A(l.current.scrollLeft);
778
779
  }, ee = () => {
779
- if (!V || !g) return;
780
- V - g > Ct ? u(y.ON_CAROUSEL_FORWARD_SWIPE, t) : u(y.ON_CAROUSEL_BACK_SWIPE, t);
780
+ if (!V || !I) return;
781
+ V - I > Ct ? u(y.ON_CAROUSEL_FORWARD_SWIPE, t) : u(y.ON_CAROUSEL_BACK_SWIPE, t);
781
782
  }, te = (W) => {
782
783
  D(W.targetTouches[0].clientX);
783
- }, Z = (W) => {
784
+ }, Q = (W) => {
784
785
  D(null), S(W.targetTouches[0].clientX);
785
786
  }, v = T ? Math.round(E / (T + 8)) : 0, ve = l.current ? l.current.scrollWidth - l.current.offsetWidth : 0;
786
787
  return /* @__PURE__ */ L(
@@ -788,7 +789,7 @@ const $ = h.createContext(null), rt = ({
788
789
  {
789
790
  "aria-label": w.carousel_title,
790
791
  "aria-roledescription": "carousel",
791
- ref: I,
792
+ ref: g,
792
793
  role: "group/region",
793
794
  sx: {
794
795
  alignItems: "center",
@@ -804,7 +805,7 @@ const $ = h.createContext(null), rt = ({
804
805
  onScroll: J,
805
806
  onTouchEnd: ee,
806
807
  onTouchMove: te,
807
- onTouchStart: Z,
808
+ onTouchStart: Q,
808
809
  ref: l,
809
810
  sx: {
810
811
  alignItems: "center",
@@ -812,7 +813,7 @@ const $ = h.createContext(null), rt = ({
812
813
  gap: 8,
813
814
  listStyleType: "none",
814
815
  m: 0,
815
- maxWidth: C ? "calc(100% - 32px)" : "100%",
816
+ maxWidth: m ? "calc(100% - 32px)" : "100%",
816
817
  overflowX: "auto",
817
818
  overflowY: "hidden",
818
819
  p: 0,
@@ -833,19 +834,19 @@ const $ = h.createContext(null), rt = ({
833
834
  onCardClick: a,
834
835
  posthog: s,
835
836
  showCTAColocatedWithText: n,
836
- showIcon: m,
837
+ showIcon: C,
837
838
  variant: _
838
839
  }
839
840
  )
840
841
  }
841
842
  ),
842
843
  p && /* @__PURE__ */ i(
843
- gt,
844
+ It,
844
845
  {
845
846
  currentBeatIndex: v + d - 1,
846
847
  numBeats: o.length + 1,
847
- onNextClick: Y,
848
- onPreviousClick: X,
848
+ onNextClick: X,
849
+ onPreviousClick: Z,
849
850
  scrollRightBoundary: ve,
850
851
  scrollX: E,
851
852
  shouldApplyDotAnimation: e,
@@ -861,7 +862,7 @@ const $ = h.createContext(null), rt = ({
861
862
  posthog: o,
862
863
  widthOverrides: n
863
864
  }) => {
864
- const { carouselCopy: r } = B(), { onEvent: a } = j(), s = () => {
865
+ const { carouselCopy: r } = B(), { onEvent: a } = Y(), s = () => {
865
866
  a && (a(y.ON_VIEW_MORE_CLICKED, t), e(), o?.capture("clicked_view_more"));
866
867
  };
867
868
  return r ? /* @__PURE__ */ L(
@@ -898,7 +899,7 @@ const $ = h.createContext(null), rt = ({
898
899
  }) => {
899
900
  const { carouselCopy: n } = B();
900
901
  return /* @__PURE__ */ i(
901
- Q,
902
+ H,
902
903
  {
903
904
  "aria-label": n?.carousel_title,
904
905
  "aria-roledescription": "carousel",
@@ -920,12 +921,12 @@ const $ = h.createContext(null), rt = ({
920
921
  showIcon: r,
921
922
  variant: a
922
923
  }) => {
923
- const { cardsCopy: s } = B(), p = H(), { onEvent: m } = j(), { onPageview: C } = Me();
924
+ const { cardsCopy: s } = B(), p = $(), { onEvent: C } = Y(), { onPageview: m } = Me();
924
925
  h.useEffect(() => {
925
- C(k.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS);
926
+ m(k.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS);
926
927
  }, []);
927
928
  const _ = () => {
928
- o && o(), m(y.ON_NO_RELEVANT_INSIGHTS_CLICKED), n?.capture("clicked_insight", {
929
+ o && o(), C(y.ON_NO_RELEVANT_INSIGHTS_CLICKED), n?.capture("clicked_insight", {
929
930
  template: "no_relevant_insights"
930
931
  });
931
932
  };
@@ -954,7 +955,7 @@ const $ = h.createContext(null), rt = ({
954
955
  showIcon: n,
955
956
  variant: r
956
957
  }) => {
957
- const { onPageview: a } = Me(), { zeroStateCopy: s } = B(), p = H();
958
+ const { onPageview: a } = Me(), { zeroStateCopy: s } = B(), p = $();
958
959
  return h.useEffect(() => {
959
960
  a(k.MICRO_WIDGET_CAROUSEL_ZERO_STATE);
960
961
  }, []), /* @__PURE__ */ i(
@@ -974,7 +975,7 @@ const $ = h.createContext(null), rt = ({
974
975
  }
975
976
  );
976
977
  }, eo = U(De), yt = () => /* @__PURE__ */ i(
977
- Q,
978
+ H,
978
979
  {
979
980
  sx: {
980
981
  alignItems: "center",
@@ -996,29 +997,29 @@ const $ = h.createContext(null), rt = ({
996
997
  logOutUser: s,
997
998
  onCardClick: p = () => {
998
999
  },
999
- onEvent: m = () => {
1000
+ onEvent: C = () => {
1000
1001
  },
1001
- onPageview: C = () => {
1002
+ onPageview: m = () => {
1002
1003
  },
1003
1004
  posthog: _,
1004
1005
  showBorder: c = !0,
1005
1006
  showCarouselControls: d,
1006
1007
  showHeader: l,
1007
- showIcon: I,
1008
+ showIcon: g,
1008
1009
  showWithMargin: E = !0,
1009
1010
  token: A = "",
1010
- userHasFullInsightFeedBeats: g,
1011
+ userHasFullInsightFeedBeats: I,
1011
1012
  variant: D,
1012
1013
  visibleCardsCount: V = 1,
1013
1014
  widthOverrides: S
1014
1015
  }) => {
1015
- const [T, M] = oe("STANDARD"), [w, u] = oe(!1), [Y, X] = oe(!1), J = je([m], G), ee = Ye([C], G);
1016
+ const [T, M] = oe("STANDARD"), [w, u] = oe(!1), [X, Z] = oe(!1), J = je([C], G), ee = Ye([m], G);
1016
1017
  Xe({
1017
1018
  widgetName: "InsightsMicroWidget",
1018
1019
  isLoaded: w
1019
1020
  }), h.useEffect(() => {
1020
- !G.isInitialized && !Y && (G.initialize(r, A, s).catch(() => X(!1)), X(!0));
1021
- }, [r, A, s, G.isInitialized, Y]), h.useEffect(() => {
1021
+ !G.isInitialized && !X && (G.initialize(r, A, s).catch(() => Z(!1)), Z(!0));
1022
+ }, [r, A, s, G.isInitialized, X]), h.useEffect(() => {
1022
1023
  const v = window.innerHeight;
1023
1024
  v < 180 ? M("STANDARD") : v >= 180 && v < 200 ? M("LARGE") : v >= 200 && v < 248 ? M("XLARGE") : v >= 248 && M("XXLARGE");
1024
1025
  }, [window.innerHeight]), h.useEffect(() => {
@@ -1029,17 +1030,17 @@ const $ = h.createContext(null), rt = ({
1029
1030
  heightOverrides: a,
1030
1031
  onCardClick: p,
1031
1032
  posthog: _,
1032
- showIcon: I,
1033
+ showIcon: g,
1033
1034
  showWithMargin: E,
1034
1035
  widthOverrides: S
1035
- }, Z = {
1036
+ }, Q = {
1036
1037
  carouselSize: T,
1037
1038
  variant: D,
1038
1039
  showCTAColocatedWithText: n,
1039
1040
  heightOverrides: a,
1040
1041
  onCardClick: p,
1041
1042
  posthog: _,
1042
- showIcon: I
1043
+ showIcon: g
1043
1044
  };
1044
1045
  return /* @__PURE__ */ i(rt, { onEvent: J, onPageview: ee, store: G, children: /* @__PURE__ */ L(Ot, { heightOverrides: a, widthOverrides: S, children: [
1045
1046
  !w && /* @__PURE__ */ i(yt, {}),
@@ -1079,7 +1080,7 @@ const $ = h.createContext(null), rt = ({
1079
1080
  height: `calc(${mt[T]}px - 44px)`,
1080
1081
  width: E ? `calc(${S}px - 32px)` : "100%"
1081
1082
  },
1082
- children: g ? /* @__PURE__ */ i(Le, { ...Z }) : /* @__PURE__ */ i(De, { ...Z })
1083
+ children: I ? /* @__PURE__ */ i(Le, { ...Q }) : /* @__PURE__ */ i(De, { ...Q })
1083
1084
  }
1084
1085
  )
1085
1086
  }
@@ -1095,9 +1096,9 @@ const $ = h.createContext(null), rt = ({
1095
1096
  showIcon: s,
1096
1097
  variant: p
1097
1098
  }) => {
1098
- const m = H(), { ref: C, inView: _ } = fe({
1099
+ const C = $(), { ref: m, inView: _ } = fe({
1099
1100
  threshold: we
1100
- }), { cardsCopy: c } = B(), { onEvent: d } = j();
1101
+ }), { cardsCopy: c } = B(), { onEvent: d } = Y();
1101
1102
  ie(() => {
1102
1103
  _ && (d(Ne.ON_VIEW_MORE_VIEWED), r?.capture("viewed_insight", {
1103
1104
  template: "view_more_card"
@@ -1119,12 +1120,12 @@ const $ = h.createContext(null), rt = ({
1119
1120
  description: c.view_more_card_description,
1120
1121
  hasCardEffect: !0,
1121
1122
  heightOverrides: e,
1122
- icon: s && /* @__PURE__ */ i(R, { bgColor: f(m.palette.primary.main, 0.15), name: "show_chart" }),
1123
+ icon: s && /* @__PURE__ */ i(R, { bgColor: f(C.palette.primary.main, 0.15), name: "show_chart" }),
1123
1124
  isActiveCard: o,
1124
1125
  onCardClick: l,
1125
1126
  onPrimaryAction: l,
1126
1127
  primaryActionText: c.micro_card_cta,
1127
- ref: C,
1128
+ ref: m,
1128
1129
  title: c.view_more_card_title,
1129
1130
  variant: p,
1130
1131
  widthOverrides: a
@@ -1141,7 +1142,7 @@ export {
1141
1142
  me as T,
1142
1143
  Mt as V,
1143
1144
  eo as Z,
1144
- It as a,
1145
+ gt as a,
1145
1146
  to as b,
1146
1147
  _t as c,
1147
1148
  q as d
@@ -1,4 +1,4 @@
1
- import { A as u, B as s, C as c, a as v, b as C, I as R, M as H, d as M, c as F, N as V, V as k, Z as x } from "../ViewMoreMicroCard-B8C76vIW.mjs";
1
+ import { A as u, B as s, C as c, a as v, b as C, I as R, M as H, d as M, c as F, N as V, V as k, Z as x } from "../ViewMoreMicroCard-CO1x7Twm.mjs";
2
2
  import { jsx as e, jsxs as l } from "react/jsx-runtime";
3
3
  const a = ({
4
4
  color: i = "currentColor",
@@ -29,7 +29,7 @@ import { c as kt, i as Ht, d as Nt, e as Wt, b as ot, g as nt, f as ze } from ".
29
29
  import Ot from "@mui/material/ToggleButton";
30
30
  import Gt from "@mui/material/ToggleButtonGroup";
31
31
  import { DataGridPro as Bt } from "@mui/x-data-grid-pro";
32
- import { T as G, b as Vt } from "../ViewMoreMicroCard-B8C76vIW.mjs";
32
+ import { T as G, b as Vt } from "../ViewMoreMicroCard-CO1x7Twm.mjs";
33
33
  import { parseISO as st } from "date-fns/parseISO";
34
34
  import { H as ke } from "../HeaderCell-DjuifqHJ.mjs";
35
35
  import { A as v, W as rt } from "../WidgetContainer-BNltq9UG.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "7.10.5",
3
+ "version": "7.10.6",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",