@mx-cartographer/experiences 7.2.5-alpha.mm0 → 7.2.5-alpha.mm2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,15 @@
1
1
  import { jsx as e, jsxs as v } from "react/jsx-runtime";
2
- import u, { useState as te, useEffect as oe } from "react";
2
+ import p, { useState as te, useEffect as oe } from "react";
3
3
  import { observer as G } from "mobx-react-lite";
4
4
  import Pe from "@mui/material/Button";
5
5
  import K from "@mui/material/Stack";
6
6
  import Ge from "@mui/material/Typography";
7
- import { ChevronLeft as Ue, ChevronRight as Se } from "@mxenabled/mx-icons";
7
+ import { ChevronLeft as Ue, ChevronRight as Me } from "@mxenabled/mx-icons";
8
8
  import { L as be } from "./Loader-DUaFpDGv.mjs";
9
9
  import b from "@mui/material/Box";
10
10
  import pe from "@mui/material/IconButton";
11
11
  import { useTheme as ze } from "@mui/material/styles";
12
- import { useInView as Me } from "react-intersection-observer";
12
+ import { useInView as Se } from "react-intersection-observer";
13
13
  import { P as Ke, CategoryIcon as $e, useTokens as Ae, MerchantLogo as Ye, Icon as ie } from "@mxenabled/mxui";
14
14
  import se from "@mui/material/styles/useTheme";
15
15
  import { b as je } from "./Category-CevNQ03n.mjs";
@@ -21,8 +21,8 @@ import { G as _e, a as Je, u as et, b as tt } from "./useCombineEvents-BUDIR1ba.
21
21
  import { B as Ce } from "./BeatApi-DhJpgCLz.mjs";
22
22
  import it from "@mui/material/Card";
23
23
  import ot from "@mui/material/CardActions";
24
- import rt from "@mui/material/CardContent";
25
- import lt from "@mui/material/CardHeader";
24
+ import lt from "@mui/material/CardContent";
25
+ import rt from "@mui/material/CardHeader";
26
26
  const fe = {
27
27
  featureVersion: "spendVsIncomeTrends"
28
28
  };
@@ -56,7 +56,7 @@ class nt {
56
56
  return this.copyObject.zero_state;
57
57
  }
58
58
  }
59
- const he = {
59
+ const Ee = {
60
60
  BillAmountNotStandard: "BillAmountNotStandard",
61
61
  CanadianUpcomingDeadlineAlert: "CanadianUpcomingDeadlineAlert",
62
62
  DuplicatePaymentV2: "DuplicatePaymentV2",
@@ -73,38 +73,38 @@ const he = {
73
73
  WeeklyNewMerchantsV2: "WeeklyNewMerchantsV2",
74
74
  MonthlySpendComparison: "MonthlySpendComparison",
75
75
  MonthlySpendToIncomeComparison: "MonthlySpendToIncomeComparison"
76
- }, S = window?.app?.clientConfig?.microwidget_instance_id || "", me = {
76
+ }, M = window?.app?.clientConfig?.microwidget_instance_id || "", me = {
77
77
  INSIGHTS_MICRO_WIDGET: "/micro-insights-carousel"
78
- }, Te = (i) => `on${i}Click`, We = (i) => `on${i}View`, we = (i) => `on${i}ViewFirstTime`, Ee = (i) => i.replace(/([a-z])([A-Z])/g, "$1 $2"), at = () => Object.values(he).reduce(
78
+ }, Te = (i) => `on${i}Click`, We = (i) => `on${i}View`, we = (i) => `on${i}ViewFirstTime`, he = (i) => i.replace(/([a-z])([A-Z])/g, "$1 $2"), at = () => Object.values(Ee).reduce(
79
79
  (i, o) => ({
80
80
  ...i,
81
81
  [Te(o)]: {
82
82
  action: w.MICRO_BEAT_CLICKED,
83
83
  category: W.BEAT_INTERACTION,
84
- label: Ee(o),
85
- value: S
84
+ label: he(o),
85
+ value: M
86
86
  }
87
87
  }),
88
88
  {}
89
- ), ct = () => Object.values(he).reduce(
89
+ ), ct = () => Object.values(Ee).reduce(
90
90
  (i, o) => ({
91
91
  ...i,
92
92
  [We(o)]: {
93
93
  action: w.MICRO_BEAT_DISPLAYED,
94
94
  category: W.BEAT_INTERACTION,
95
- label: Ee(o),
96
- value: S
95
+ label: he(o),
96
+ value: M
97
97
  }
98
98
  }),
99
99
  {}
100
- ), st = () => Object.values(he).reduce(
100
+ ), st = () => Object.values(Ee).reduce(
101
101
  (i, o) => ({
102
102
  ...i,
103
103
  [we(o)]: {
104
104
  action: w.MICRO_BEAT_DISPLAYED_FIRST_TIME,
105
105
  category: W.BEAT_INTERACTION,
106
- label: Ee(o),
107
- value: S
106
+ label: he(o),
107
+ value: M
108
108
  }
109
109
  }),
110
110
  {}
@@ -116,14 +116,14 @@ const he = {
116
116
  }, W = {
117
117
  MICRO_WIDGET_INTERACTION: "Micro Widget Interaction",
118
118
  BEAT_INTERACTION: "Beat Interaction"
119
- }, M = {
119
+ }, S = {
120
120
  ON_CAROUSEL_BACK_CLICK: "onCarouselBackClick",
121
121
  ON_CAROUSEL_BACK_SWIPE: "onCarouselBackSwipe",
122
122
  ON_CAROUSEL_FORWARD_CLICK: "onCarouselForwardClick",
123
123
  ON_CAROUSEL_FORWARD_SWIPE: "onCarouselForwardSwipe",
124
124
  ON_NO_RELEVANT_INSIGHTS_CLICKED: "onNoRelevantInsightsClicked",
125
125
  ON_VIEW_MORE_CLICKED: "onViewMoreClicked"
126
- }, De = {
126
+ }, xe = {
127
127
  ON_VIEW_MORE_VIEWED: "onViewMoreCardView"
128
128
  }, w = {
129
129
  CONTROL_BACKWARD: "Control Backward",
@@ -142,60 +142,60 @@ const he = {
142
142
  label: T.MICRO_WIDGET,
143
143
  name: H.MICRO_WIDGET_CAROUSEL,
144
144
  path: me.INSIGHTS_MICRO_WIDGET,
145
- value: S
145
+ value: M
146
146
  },
147
147
  // zero state
148
148
  [H.MICRO_WIDGET_CAROUSEL_ZERO_STATE]: {
149
149
  label: T.MICRO_WIDGET,
150
150
  name: H.MICRO_WIDGET_CAROUSEL_ZERO_STATE,
151
151
  path: me.INSIGHTS_MICRO_WIDGET,
152
- value: S
152
+ value: M
153
153
  },
154
154
  // no relevant cards
155
155
  [H.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS]: {
156
156
  label: T.MICRO_WIDGET,
157
157
  name: H.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS,
158
158
  path: "/micro-widget",
159
- value: S
159
+ value: M
160
160
  }
161
161
  }, Re = {
162
162
  // carousel control interaction events - clicks and swipes
163
- [M.ON_CAROUSEL_BACK_CLICK]: {
163
+ [S.ON_CAROUSEL_BACK_CLICK]: {
164
164
  action: w.CONTROL_BACKWARD,
165
165
  category: W.MICRO_WIDGET_INTERACTION,
166
166
  label: T.CAROUSEL_CONTROL,
167
- value: S
167
+ value: M
168
168
  },
169
- [M.ON_CAROUSEL_FORWARD_CLICK]: {
169
+ [S.ON_CAROUSEL_FORWARD_CLICK]: {
170
170
  action: w.CONTROL_FORWARD,
171
171
  category: W.MICRO_WIDGET_INTERACTION,
172
172
  label: T.CAROUSEL_CONTROL,
173
- value: S
173
+ value: M
174
174
  },
175
- [M.ON_CAROUSEL_BACK_SWIPE]: {
175
+ [S.ON_CAROUSEL_BACK_SWIPE]: {
176
176
  action: w.SWIPE_BACKWARD,
177
177
  category: W.MICRO_WIDGET_INTERACTION,
178
178
  label: T.CAROUSEL_CONTROL,
179
- value: S
179
+ value: M
180
180
  },
181
- [M.ON_CAROUSEL_FORWARD_SWIPE]: {
181
+ [S.ON_CAROUSEL_FORWARD_SWIPE]: {
182
182
  action: w.SWIPE_FORWARD,
183
183
  category: W.MICRO_WIDGET_INTERACTION,
184
184
  label: T.CAROUSEL_CONTROL,
185
- value: S
185
+ value: M
186
186
  },
187
187
  // read more card events
188
- [M.ON_VIEW_MORE_CLICKED]: {
188
+ [S.ON_VIEW_MORE_CLICKED]: {
189
189
  action: w.MICRO_BEAT_CLICKED,
190
190
  category: W.BEAT_INTERACTION,
191
191
  label: T.VIEW_MORE,
192
- value: S
192
+ value: M
193
193
  },
194
- [De.ON_VIEW_MORE_VIEWED]: {
194
+ [xe.ON_VIEW_MORE_VIEWED]: {
195
195
  action: w.MICRO_BEAT_DISPLAYED,
196
196
  category: W.BEAT_INTERACTION,
197
197
  label: T.VIEW_MORE,
198
- value: S
198
+ value: M
199
199
  },
200
200
  ...at(),
201
201
  ...ct(),
@@ -212,14 +212,14 @@ class dt {
212
212
  constructor() {
213
213
  de(this);
214
214
  }
215
- initialize = async (o, t, r) => {
216
- this.onAnalyticEvent = (n, l) => {
217
- Ie(n, l).then((a) => a).catch((a) => {
218
- throw a.status === 401 && r(), a;
215
+ initialize = async (o, t, l) => {
216
+ this.onAnalyticEvent = (n, r) => {
217
+ Ie(n, r).then((a) => a).catch((a) => {
218
+ throw a.status === 401 && l(), a;
219
219
  });
220
- }, this.onAnalyticPageView = (n, l) => {
221
- ye(n, l).then((a) => a).catch((a) => {
222
- throw a.status === 401 && r(), a;
220
+ }, this.onAnalyticPageView = (n, r) => {
221
+ ye(n, r).then((a) => a).catch((a) => {
222
+ throw a.status === 401 && l(), a;
223
223
  });
224
224
  }, this.beatApi = new Ce(o, t);
225
225
  };
@@ -230,7 +230,7 @@ class dt {
230
230
  this.beatApi.updateOffer(o);
231
231
  };
232
232
  }
233
- class ht {
233
+ class Et {
234
234
  copyStore;
235
235
  endpoint = "/";
236
236
  insightsMicroWidgetStore;
@@ -240,39 +240,40 @@ class ht {
240
240
  constructor() {
241
241
  this.copyStore = new nt(), this.insightsMicroWidgetStore = new dt(), de(this);
242
242
  }
243
- initialize = async (o, t, r) => {
244
- await this.copyStore.initialize(o, t), await this.insightsMicroWidgetStore.initialize(o, t, r);
243
+ initialize = async (o, t, l) => {
244
+ await this.copyStore.initialize(o, t), await this.insightsMicroWidgetStore.initialize(o, t, l);
245
245
  const n = await Je(o, t, "1.0.0", "Micro Insights Carousel");
246
246
  Oe(() => {
247
247
  this.session = n, this.isInitialized = !0;
248
248
  });
249
249
  };
250
250
  }
251
- const $ = u.createContext(null), Et = ({
251
+ const $ = p.createContext(null), ht = ({
252
252
  onEvent: i,
253
253
  onPageview: o,
254
254
  store: t,
255
- children: r
256
- }) => /* @__PURE__ */ e($.Provider, { value: { onEvent: i, onPageview: o, store: t, children: r }, children: r }), re = u.forwardRef(
255
+ children: l
256
+ }) => /* @__PURE__ */ e($.Provider, { value: { onEvent: i, onPageview: o, store: t, children: l }, children: l }), le = p.forwardRef(
257
257
  function({
258
258
  actionText: o,
259
259
  ariaLabel: t,
260
- backgroundColor: r,
260
+ backgroundColor: l,
261
261
  description: n,
262
- heightOverrides: l,
262
+ heightOverrides: r,
263
263
  icon: a,
264
264
  isActiveCard: d,
265
- isZeroState: p,
266
- onCardClick: _ = () => {
265
+ isZeroState: _,
266
+ onCardClick: E = () => {
267
267
  },
268
268
  showIcon: C,
269
269
  style: f = {},
270
270
  fontColors: h = {},
271
271
  title: m,
272
272
  variant: c,
273
- widthOverrides: E
273
+ widthOverrides: u
274
274
  }, g) {
275
- const I = se(), [D, O] = u.useState(!1), { cardStyle: y, linkTextStyle: F } = f, z = c ? y : { border: "none", boxShadow: "none", ...y }, R = /* @__PURE__ */ e(
275
+ console.log("MicroInsightCard", { heightOverrides: r });
276
+ const I = se(), [x, O] = p.useState(!1), { cardStyle: y, linkTextStyle: F } = f, z = c ? y : { border: "none", boxShadow: "none", ...y }, R = /* @__PURE__ */ e(
276
277
  Ke,
277
278
  {
278
279
  className: "mx-micro-card-description",
@@ -283,8 +284,8 @@ const $ = u.createContext(null), Et = ({
283
284
  letterSpacing: 0.48,
284
285
  lineHeight: "20px",
285
286
  overflow: "hidden",
286
- pl: p ? 0 : 28,
287
- pr: p ? 0 : 8,
287
+ pl: _ ? 0 : 28,
288
+ pr: _ ? 0 : 8,
288
289
  WebkitBoxOrient: "vertical",
289
290
  WebkitLineClamp: 2,
290
291
  wordWrap: "break-word"
@@ -309,7 +310,7 @@ const $ = u.createContext(null), Et = ({
309
310
  role: "group",
310
311
  sx: {
311
312
  height: "100%",
312
- minWidth: E ? `${E}px` : "100%",
313
+ minWidth: u ? `${u}px` : "100%",
313
314
  fontFamily: I.typography.fontFamily
314
315
  },
315
316
  children: /* @__PURE__ */ e(
@@ -318,13 +319,13 @@ const $ = u.createContext(null), Et = ({
318
319
  "aria-hidden": !d,
319
320
  "aria-label": t,
320
321
  id: "divButton",
321
- onClick: () => _(),
322
+ onClick: () => E(),
322
323
  onKeyDown: () => O(!1),
323
324
  onKeyUp: () => O(!0),
324
325
  ref: g,
325
326
  role: "button",
326
327
  sx: {
327
- border: D ? "1px solid rgba(82, 138, 224, 0.8)" : void 0,
328
+ border: x ? "1px solid rgba(82, 138, 224, 0.8)" : void 0,
328
329
  borderRadius: "8px",
329
330
  height: "100%"
330
331
  },
@@ -334,11 +335,12 @@ const $ = u.createContext(null), Et = ({
334
335
  {
335
336
  "aria-roledescription": "slide",
336
337
  className: "mx-micro-card",
338
+ id: "MicroInsightCard",
337
339
  role: "group",
338
340
  sx: {
339
- backgroundColor: r,
341
+ backgroundColor: l,
340
342
  cursor: "pointer",
341
- height: l ? "100%" : 124,
343
+ height: r ? "100%" : 124,
342
344
  p: 16,
343
345
  ...z,
344
346
  "& .MuiCardHeader-avatar": {
@@ -356,16 +358,16 @@ const $ = u.createContext(null), Et = ({
356
358
  },
357
359
  children: [
358
360
  /* @__PURE__ */ e(
359
- lt,
361
+ rt,
360
362
  {
361
363
  avatar: C && a,
362
- subheader: p && R,
364
+ subheader: _ && R,
363
365
  sx: { color: h.headerColor, p: 0 },
364
366
  title: m,
365
367
  titleTypographyProps: { fontSize: 15, fontWeight: 600, variant: "h3" }
366
368
  }
367
369
  ),
368
- /* @__PURE__ */ e(rt, { sx: { p: 0 }, children: !p && R }),
370
+ /* @__PURE__ */ e(lt, { sx: { p: 0 }, children: !_ && R }),
369
371
  !!o && /* @__PURE__ */ e(
370
372
  ot,
371
373
  {
@@ -376,12 +378,12 @@ const $ = u.createContext(null), Et = ({
376
378
  children: /* @__PURE__ */ e(
377
379
  b,
378
380
  {
379
- sx: (x) => ({
380
- color: h.buttonColor ? h.buttonColor : x.palette.primary.main,
381
+ sx: (D) => ({
382
+ color: h.buttonColor ? h.buttonColor : D.palette.primary.main,
381
383
  fontSize: 14,
382
384
  fontWeight: "bold",
383
385
  px: 28,
384
- fontFamily: x.typography.fontFamily,
386
+ fontFamily: D.typography.fontFamily,
385
387
  ...F
386
388
  }),
387
389
  children: o
@@ -424,9 +426,9 @@ const $ = u.createContext(null), Et = ({
424
426
  color: i = "currentColor",
425
427
  height: o,
426
428
  size: t = 16,
427
- styles: r,
429
+ styles: l,
428
430
  viewBox: n = "0 0 16 16",
429
- width: l
431
+ width: r
430
432
  }) => /* @__PURE__ */ e(
431
433
  "svg",
432
434
  {
@@ -434,9 +436,9 @@ const $ = u.createContext(null), Et = ({
434
436
  className: "kyper-icon",
435
437
  focusable: !1,
436
438
  height: o || t,
437
- style: r,
439
+ style: l,
438
440
  viewBox: n,
439
- width: l || t,
441
+ width: r || t,
440
442
  xmlns: "http://www.w3.org/2000/svg",
441
443
  children: /* @__PURE__ */ e(
442
444
  "path",
@@ -448,16 +450,16 @@ const $ = u.createContext(null), Et = ({
448
450
  }
449
451
  ), mt = (i) => i ? i.data ? i.data.map((o) => {
450
452
  const t = {};
451
- return i.names?.map((r, n) => {
452
- t[r] = o[n];
453
+ return i.names?.map((l, n) => {
454
+ t[l] = o[n];
453
455
  }), t;
454
456
  }) : [] : [], gt = (i, o) => {
455
- const t = mt(i), r = t.length / 2, n = t.slice(0, r), l = t.slice(r);
456
- return !n.length || !l.length ? o.Color.Primary300 : n[0].amount > l[0].amount ? o.Color.Error300 : n[0].amount < l[0].amount ? o.Color.Success300 : o.Color.Primary300;
457
+ const t = mt(i), l = t.length / 2, n = t.slice(0, l), r = t.slice(l);
458
+ return !n.length || !r.length ? o.Color.Primary300 : n[0].amount > r[0].amount ? o.Color.Error300 : n[0].amount < r[0].amount ? o.Color.Success300 : o.Color.Primary300;
457
459
  }, Rt = ({ beat: i }) => {
458
460
  const o = Ae(), t = gt(i.data_series, o);
459
461
  return /* @__PURE__ */ e(ie, { name: "bar_chart", sx: { color: t } });
460
- }, xe = () => /* @__PURE__ */ v("svg", { fill: "none", height: "36", viewBox: "0 0 40 36", width: "40", xmlns: "http://www.w3.org/2000/svg", children: [
462
+ }, De = () => /* @__PURE__ */ v("svg", { fill: "none", height: "36", viewBox: "0 0 40 36", width: "40", xmlns: "http://www.w3.org/2000/svg", children: [
461
463
  /* @__PURE__ */ e(
462
464
  "path",
463
465
  {
@@ -1238,37 +1240,37 @@ const $ = u.createContext(null), Et = ({
1238
1240
  }
1239
1241
  )
1240
1242
  ] })
1241
- ] }), ve = ({ beat: i, clientColorScheme: o, color: t, type: r }) => {
1242
- const n = se(), l = o?.primary_300 ? o.primary_300 : n.palette.primary.main;
1243
- return r === 0 ? /* @__PURE__ */ e(ie, { fill: !0, name: "error", sx: { color: t || l } }) : r === 1 && i ? /* @__PURE__ */ e(ut, { beat: i }) : r === 2 && i ? /* @__PURE__ */ e(Ct, { beat: i }) : r === 3 && i ? /* @__PURE__ */ e(Rt, { beat: i }) : r === 5 && i ? /* @__PURE__ */ e(ie, { name: "campaign" }) : /* @__PURE__ */ e(
1243
+ ] }), ve = ({ beat: i, clientColorScheme: o, color: t, type: l }) => {
1244
+ const n = se(), r = o?.primary_300 ? o.primary_300 : n.palette.primary.main;
1245
+ return l === 0 ? /* @__PURE__ */ e(ie, { fill: !0, name: "error", sx: { color: t || r } }) : l === 1 && i ? /* @__PURE__ */ e(ut, { beat: i }) : l === 2 && i ? /* @__PURE__ */ e(Ct, { beat: i }) : l === 3 && i ? /* @__PURE__ */ e(Rt, { beat: i }) : l === 5 && i ? /* @__PURE__ */ e(ie, { name: "campaign" }) : /* @__PURE__ */ e(
1244
1246
  ie,
1245
1247
  {
1246
1248
  fill: !0,
1247
1249
  name: "info",
1248
1250
  sx: {
1249
- color: l
1251
+ color: r
1250
1252
  }
1251
1253
  }
1252
1254
  );
1253
1255
  }, k = () => {
1254
- const i = u.useContext($);
1256
+ const i = p.useContext($);
1255
1257
  if (!i)
1256
1258
  throw new Error("useCopyStore() must be used within the InsightsMicroWidgetDataProvider");
1257
1259
  return i.store.copyStore;
1258
1260
  }, It = () => {
1259
- const i = u.useContext($);
1261
+ const i = p.useContext($);
1260
1262
  if (!i?.store?.insightsMicroWidgetStore)
1261
1263
  throw new Error(
1262
1264
  "useInsightsMicroWidgetStore() must be used within the InsightsMicroWidgetDataProvider"
1263
1265
  );
1264
1266
  return i.store.insightsMicroWidgetStore;
1265
1267
  }, Y = () => {
1266
- const i = u.useContext($);
1268
+ const i = p.useContext($);
1267
1269
  if (!i)
1268
1270
  throw new Error("useEvent() must be used within the InsightsMicroWidgetDataProvider");
1269
1271
  return { onEvent: i.onEvent };
1270
1272
  }, Le = () => {
1271
- const i = u.useContext($);
1273
+ const i = p.useContext($);
1272
1274
  if (!i)
1273
1275
  throw new Error("usePageview() must be used within the InsightsMicroWidgetDataProvider");
1274
1276
  return { onPageview: i.onPageview };
@@ -1281,22 +1283,23 @@ const $ = u.createContext(null), Et = ({
1281
1283
  ariaLabel: i,
1282
1284
  backgroundColor: o,
1283
1285
  beat: t,
1284
- clientColorScheme: r,
1286
+ clientColorScheme: l,
1285
1287
  showCTAColocatedWithText: n = !0,
1286
- heightOverrides: l,
1288
+ heightOverrides: r,
1287
1289
  index: a,
1288
1290
  isActiveCard: d,
1289
- onCardClick: p,
1290
- posthog: _,
1291
+ onCardClick: _,
1292
+ posthog: E,
1291
1293
  showIcon: C,
1292
1294
  variant: f,
1293
1295
  widthOverrides: h
1294
1296
  }) => {
1295
- const { ref: m, inView: c } = Me({
1297
+ console.log("BeatCard", { heightOverrides: r });
1298
+ const { ref: m, inView: c } = Se({
1296
1299
  threshold: Ve
1297
- }), { cardsCopy: E } = k(), { onEvent: g } = Y(), { updateBeat: I, updateOffer: D } = It();
1300
+ }), { cardsCopy: u } = k(), { onEvent: g } = Y(), { updateBeat: I, updateOffer: x } = It();
1298
1301
  oe(() => {
1299
- c && (t.has_been_displayed ? g(We(t.template)) : (t.guid.startsWith("OFR") ? D({
1302
+ c && (t.has_been_displayed ? g(We(t.template)) : (t.guid.startsWith("OFR") ? x({
1300
1303
  ...t,
1301
1304
  has_been_displayed: !0
1302
1305
  }) : I({
@@ -1307,54 +1310,54 @@ const $ = u.createContext(null), Et = ({
1307
1310
  if (c && t)
1308
1311
  if (t.template === "MarketingOffer") {
1309
1312
  const y = t;
1310
- _?.capture("viewed_messaging_insight", {
1313
+ E?.capture("viewed_messaging_insight", {
1311
1314
  template: t.template,
1312
1315
  campaign_guid: y.campaign_guid,
1313
1316
  campaign_name: y.pulse_campaign_name
1314
1317
  });
1315
1318
  } else
1316
- _?.capture("viewed_insight", {
1319
+ E?.capture("viewed_insight", {
1317
1320
  beat_guid: t.guid,
1318
1321
  template: t.template,
1319
1322
  position: a
1320
1323
  });
1321
1324
  }, [t, a, c]);
1322
1325
  const O = () => {
1323
- if (p && p(t), g(Te(t.template)), t.template === "MarketingOffer") {
1326
+ if (_ && _(t), g(Te(t.template)), t.template === "MarketingOffer") {
1324
1327
  const y = t;
1325
- _?.capture("clicked_messaging_insight", {
1328
+ E?.capture("clicked_messaging_insight", {
1326
1329
  template: t.template,
1327
1330
  campaign_guid: y.campaign_guid,
1328
1331
  campaign_name: y.pulse_campaign_name
1329
1332
  });
1330
1333
  } else
1331
- _?.capture("clicked_insight", {
1334
+ E?.capture("clicked_insight", {
1332
1335
  beat_guid: t.guid,
1333
1336
  template: t.template,
1334
1337
  position: a
1335
1338
  });
1336
1339
  };
1337
1340
  return /* @__PURE__ */ e(
1338
- re,
1341
+ le,
1339
1342
  {
1340
- actionText: t.micro_call_to_action || E.micro_card_cta,
1343
+ actionText: t.micro_call_to_action || u.micro_card_cta,
1341
1344
  ariaLabel: i,
1342
1345
  backgroundColor: o,
1343
1346
  description: t?.html_micro_description && t?.html_micro_description.length > 0 ? t.html_micro_description : t.html_description,
1344
- fontColors: { buttonColor: r?.primary_300 },
1345
- heightOverrides: l,
1347
+ fontColors: { buttonColor: l?.primary_300 },
1348
+ heightOverrides: r,
1346
1349
  icon: ve && /* @__PURE__ */ e(
1347
1350
  ve,
1348
1351
  {
1349
1352
  beat: t,
1350
- clientColorScheme: r,
1353
+ clientColorScheme: l,
1351
1354
  color: t?.icon_color,
1352
1355
  type: t?.icon_type
1353
1356
  }
1354
1357
  ),
1355
1358
  isActiveCard: d,
1356
1359
  onCardClick: O,
1357
- posthog: _,
1360
+ posthog: E,
1358
1361
  ref: m,
1359
1362
  showCTAColocatedWithText: n,
1360
1363
  showIcon: C,
@@ -1363,18 +1366,18 @@ const $ = u.createContext(null), Et = ({
1363
1366
  widthOverrides: h
1364
1367
  }
1365
1368
  );
1366
- }, St = ({
1369
+ }, Mt = ({
1367
1370
  clientColorScheme: i,
1368
1371
  currentBeatIndex: o,
1369
1372
  numBeats: t,
1370
- onNextClick: r,
1373
+ onNextClick: l,
1371
1374
  onPreviousClick: n,
1372
- scrollRightBoundary: l,
1375
+ scrollRightBoundary: r,
1373
1376
  scrollX: a,
1374
1377
  shouldApplyNewAnimation: d = !1,
1375
- visibleCardsCount: p = 1
1378
+ visibleCardsCount: _ = 1
1376
1379
  }) => {
1377
- const _ = ze(), { carouselCopy: C } = k(), f = Math.floor(a) > l || o - p + 1 === 0, h = a < 0 || t - 1 === o, m = _.palette.grey[500], c = i?.primary_300 ?? _.palette.primary.main;
1380
+ const E = ze(), { carouselCopy: C } = k(), f = Math.floor(a) > r || o - _ + 1 === 0, h = a < 0 || t - 1 === o, m = E.palette.grey[500], c = i?.primary_300 ?? E.palette.primary.main;
1378
1381
  return /* @__PURE__ */ v(
1379
1382
  K,
1380
1383
  {
@@ -1407,7 +1410,7 @@ const $ = u.createContext(null), Et = ({
1407
1410
  )
1408
1411
  }
1409
1412
  ),
1410
- Array.from({ length: t }).map((E, g) => {
1413
+ Array.from({ length: t }).map((u, g) => {
1411
1414
  const I = g === o;
1412
1415
  return /* @__PURE__ */ e(
1413
1416
  b,
@@ -1439,9 +1442,9 @@ const $ = u.createContext(null), Et = ({
1439
1442
  "aria-disabled": h,
1440
1443
  "aria-label": C.next_insight_cta_aria,
1441
1444
  disabled: h,
1442
- onClick: r,
1445
+ onClick: l,
1443
1446
  children: /* @__PURE__ */ e(
1444
- Se,
1447
+ Me,
1445
1448
  {
1446
1449
  style: {
1447
1450
  color: h ? m : c
@@ -1453,17 +1456,17 @@ const $ = u.createContext(null), Et = ({
1453
1456
  ]
1454
1457
  }
1455
1458
  );
1456
- }, Mt = ({
1459
+ }, St = ({
1457
1460
  analyticsMetadata: i,
1458
1461
  allowSingleCardPeeking: o = !1,
1459
1462
  beats: t = [],
1460
- clientColorScheme: r,
1463
+ clientColorScheme: l,
1461
1464
  showCTAColocatedWithText: n,
1462
- heightOverrides: l,
1465
+ heightOverrides: r,
1463
1466
  onCardClick: a,
1464
1467
  posthog: d,
1465
- shouldApplyNewAnimation: p = !1,
1466
- showCarouselControls: _,
1468
+ shouldApplyNewAnimation: _ = !1,
1469
+ showCarouselControls: E,
1467
1470
  showIcon: C,
1468
1471
  showWithMargin: f = !0,
1469
1472
  variant: h,
@@ -1471,20 +1474,20 @@ const $ = u.createContext(null), Et = ({
1471
1474
  visibleCardsCount: c = 1
1472
1475
  // Default to 1 card visible
1473
1476
  }) => {
1474
- console.log("MicroBeatCarousel", { heightOverrides: l });
1475
- const E = u.useRef(null), g = u.useRef(null), [I, D] = u.useState(0), [O, y] = u.useState(null), [F, z] = u.useState(null), [R, x] = u.useState(null), [U, B] = u.useState(p), { carouselCopy: j } = k(), { onEvent: Z } = Y();
1476
- u.useEffect(() => {
1477
- if (E.current && !o) {
1478
- const s = E.current.offsetWidth, A = 8;
1477
+ console.log("MicroBeatCarousel", { heightOverrides: r });
1478
+ const u = p.useRef(null), g = p.useRef(null), [I, x] = p.useState(0), [O, y] = p.useState(null), [F, z] = p.useState(null), [R, D] = p.useState(null), [U, B] = p.useState(_), { carouselCopy: j } = k(), { onEvent: Z } = Y();
1479
+ p.useEffect(() => {
1480
+ if (u.current && !o) {
1481
+ const s = u.current.offsetWidth, A = 8;
1479
1482
  let N;
1480
1483
  if (c > 1) {
1481
1484
  const J = (s - (c - 1) * A) / c / 3;
1482
1485
  N = (s - J - (c - 1) * A) / c;
1483
1486
  } else
1484
1487
  N = s;
1485
- x(N);
1488
+ D(N);
1486
1489
  }
1487
- }, [c, E.current?.offsetWidth]), u.useEffect(() => {
1490
+ }, [c, u.current?.offsetWidth]), p.useEffect(() => {
1488
1491
  const s = g.current?.offsetWidth;
1489
1492
  if (typeof s == "number" && o) {
1490
1493
  const A = (P) => {
@@ -1498,10 +1501,10 @@ const $ = u.createContext(null), Et = ({
1498
1501
  ].find((ce) => P <= ce.maxWidth);
1499
1502
  return ee ? ee.cardWidth : 750;
1500
1503
  };
1501
- x(A(s));
1504
+ D(A(s));
1502
1505
  const N = () => {
1503
1506
  const P = g.current?.offsetWidth;
1504
- typeof P == "number" && x(A(P));
1507
+ typeof P == "number" && D(A(P));
1505
1508
  };
1506
1509
  return window.addEventListener("resize", N), () => {
1507
1510
  window.removeEventListener("resize", N);
@@ -1509,45 +1512,46 @@ const $ = u.createContext(null), Et = ({
1509
1512
  }
1510
1513
  }, [o, g]);
1511
1514
  const X = () => {
1512
- Z(M.ON_CAROUSEL_FORWARD_CLICK, i), E.current && R && E.current.scrollTo({
1515
+ Z(S.ON_CAROUSEL_FORWARD_CLICK, i), u.current && R && u.current.scrollTo({
1513
1516
  left: I + R + 8,
1514
1517
  top: 0,
1515
1518
  behavior: "smooth"
1516
1519
  });
1517
- }, le = () => {
1518
- Z(M.ON_CAROUSEL_BACK_CLICK, i), E.current && R && E.current.scrollTo({
1520
+ }, re = () => {
1521
+ Z(S.ON_CAROUSEL_BACK_CLICK, i), u.current && R && u.current.scrollTo({
1519
1522
  left: Math.max(0, I - (R + 8)),
1520
1523
  top: 0,
1521
1524
  behavior: "smooth"
1522
1525
  });
1523
1526
  }, ne = () => {
1524
- E.current && D(E.current.scrollLeft);
1527
+ u.current && x(u.current.scrollLeft);
1525
1528
  }, Q = () => {
1526
1529
  if (!F || !O) return;
1527
- F - O > yt ? Z(M.ON_CAROUSEL_FORWARD_SWIPE, i) : Z(M.ON_CAROUSEL_BACK_SWIPE, i);
1530
+ F - O > yt ? Z(S.ON_CAROUSEL_FORWARD_SWIPE, i) : Z(S.ON_CAROUSEL_BACK_SWIPE, i);
1528
1531
  }, q = (s) => {
1529
1532
  y(s.targetTouches[0].clientX);
1530
1533
  }, L = (s) => {
1531
1534
  y(null), z(s.targetTouches[0].clientX);
1532
1535
  }, ue = {
1533
- clientColorScheme: r,
1536
+ clientColorScheme: l,
1534
1537
  showCTAColocatedWithText: n,
1535
- heightOverrides: l,
1538
+ heightOverrides: r,
1536
1539
  posthog: d,
1537
1540
  showIcon: C,
1538
1541
  variant: h
1539
- }, ae = R ? Math.round(I / (R + 8)) : 0, Fe = E.current ? E.current.scrollWidth - E.current.offsetWidth : 0;
1542
+ }, ae = R ? Math.round(I / (R + 8)) : 0, Fe = u.current ? u.current.scrollWidth - u.current.offsetWidth : 0;
1540
1543
  return /* @__PURE__ */ v(
1541
1544
  K,
1542
1545
  {
1543
1546
  "aria-label": j.carousel_title,
1544
1547
  "aria-roledescription": "carousel",
1548
+ id: "MicroBeatCarousel",
1545
1549
  ref: g,
1546
1550
  role: "group/region",
1547
1551
  sx: {
1548
1552
  alignItems: "center",
1549
1553
  boxSizing: "border-box",
1550
- height: l,
1554
+ height: r,
1551
1555
  width: m || "100%"
1552
1556
  },
1553
1557
  children: [
@@ -1559,10 +1563,13 @@ const $ = u.createContext(null), Et = ({
1559
1563
  onTouchEnd: Q,
1560
1564
  onTouchMove: q,
1561
1565
  onTouchStart: L,
1562
- ref: E,
1566
+ ref: u,
1563
1567
  sx: {
1564
1568
  alignItems: "center",
1565
- height: l && "100%",
1569
+ height: (
1570
+ // eslint-disable-next-line no-nested-ternary
1571
+ r && E ? "calc(100% - 48px)" : r ? "100%" : void 0
1572
+ ),
1566
1573
  gap: 8,
1567
1574
  listStyleType: "none",
1568
1575
  m: 0,
@@ -1610,14 +1617,14 @@ const $ = u.createContext(null), Et = ({
1610
1617
  ]
1611
1618
  }
1612
1619
  ),
1613
- _ && /* @__PURE__ */ e(
1614
- St,
1620
+ E && /* @__PURE__ */ e(
1621
+ Mt,
1615
1622
  {
1616
- clientColorScheme: r,
1623
+ clientColorScheme: l,
1617
1624
  currentBeatIndex: ae + c - 1,
1618
1625
  numBeats: t.length + 1,
1619
1626
  onNextClick: X,
1620
- onPreviousClick: le,
1627
+ onPreviousClick: re,
1621
1628
  scrollRightBoundary: Fe,
1622
1629
  scrollX: I,
1623
1630
  shouldApplyNewAnimation: U,
@@ -1627,17 +1634,17 @@ const $ = u.createContext(null), Et = ({
1627
1634
  ]
1628
1635
  }
1629
1636
  );
1630
- }, At = G(Mt), Ot = ({
1637
+ }, At = G(St), Ot = ({
1631
1638
  analyticsMetadata: i,
1632
1639
  clientColorScheme: o,
1633
1640
  onCardClick: t,
1634
- posthog: r,
1641
+ posthog: l,
1635
1642
  widthOverrides: n
1636
1643
  }) => {
1637
- const { carouselCopy: l } = k(), { onEvent: a } = Y(), d = () => {
1638
- a && (a(M.ON_VIEW_MORE_CLICKED, i), t(), r?.capture("clicked_view_more"));
1644
+ const { carouselCopy: r } = k(), { onEvent: a } = Y(), d = () => {
1645
+ a && (a(S.ON_VIEW_MORE_CLICKED, i), t(), l?.capture("clicked_view_more"));
1639
1646
  };
1640
- return l ? /* @__PURE__ */ v(
1647
+ return r ? /* @__PURE__ */ v(
1641
1648
  K,
1642
1649
  {
1643
1650
  alignItems: "center",
@@ -1659,20 +1666,20 @@ const $ = u.createContext(null), Et = ({
1659
1666
  lineHeight: "24px"
1660
1667
  },
1661
1668
  variant: "h3",
1662
- children: l.carousel_title
1669
+ children: r.carousel_title
1663
1670
  }
1664
1671
  ),
1665
1672
  /* @__PURE__ */ e(
1666
1673
  Pe,
1667
1674
  {
1668
- endIcon: /* @__PURE__ */ e(Se, { size: 20 }),
1675
+ endIcon: /* @__PURE__ */ e(Me, { size: 20 }),
1669
1676
  onClick: d,
1670
1677
  size: "small",
1671
1678
  sx: {
1672
1679
  color: o?.primary_300
1673
1680
  },
1674
1681
  variant: "text",
1675
- children: l.view_all_insights_in_full_feed_cta_aria
1682
+ children: r.view_all_insights_in_full_feed_cta_aria
1676
1683
  }
1677
1684
  )
1678
1685
  ]
@@ -1684,11 +1691,12 @@ const $ = u.createContext(null), Et = ({
1684
1691
  children: t
1685
1692
  }) => {
1686
1693
  console.log("MicroWidgetContainer", { heightOverrides: i });
1687
- const { carouselCopy: r } = k();
1694
+ const { carouselCopy: l } = k();
1688
1695
  return /* @__PURE__ */ e(
1689
1696
  b,
1690
1697
  {
1691
- "aria-label": r?.carousel_title,
1698
+ id: "MicroWidgetContainer",
1699
+ "aria-label": l?.carousel_title,
1692
1700
  "aria-roledescription": "carousel",
1693
1701
  role: "group",
1694
1702
  sx: {
@@ -1704,35 +1712,35 @@ const $ = u.createContext(null), Et = ({
1704
1712
  ariaLabel: i,
1705
1713
  carouselSize: o,
1706
1714
  clientColorScheme: t,
1707
- heightOverrides: r,
1715
+ heightOverrides: l,
1708
1716
  onCardClick: n,
1709
- posthog: l,
1717
+ posthog: r,
1710
1718
  showIcon: a,
1711
1719
  showWithMargin: d,
1712
- variant: p,
1713
- widthOverrides: _
1720
+ variant: _,
1721
+ widthOverrides: E
1714
1722
  }) => {
1715
1723
  const { cardsCopy: C } = k(), { onEvent: f } = Y(), { onPageview: h } = Le();
1716
- u.useEffect(() => {
1724
+ p.useEffect(() => {
1717
1725
  h(H.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS);
1718
1726
  }, []);
1719
1727
  const m = () => {
1720
- n && n(), f(M.ON_NO_RELEVANT_INSIGHTS_CLICKED), l?.capture("clicked_insight", {
1728
+ n && n(), f(S.ON_NO_RELEVANT_INSIGHTS_CLICKED), r?.capture("clicked_insight", {
1721
1729
  template: "no_relevant_insights"
1722
1730
  });
1723
1731
  };
1724
1732
  return /* @__PURE__ */ e(
1725
- re,
1733
+ le,
1726
1734
  {
1727
1735
  actionText: C.micro_card_cta,
1728
1736
  ariaLabel: i,
1729
1737
  description: C.no_relevant_insights_card_description,
1730
1738
  fontColors: { buttonColor: t?.primary_300 },
1731
- heightOverrides: r,
1732
- icon: /* @__PURE__ */ e(xe, {}),
1739
+ heightOverrides: l,
1740
+ icon: /* @__PURE__ */ e(De, {}),
1733
1741
  isZeroState: !0,
1734
1742
  onCardClick: m,
1735
- posthog: l,
1743
+ posthog: r,
1736
1744
  showIcon: a,
1737
1745
  style: {
1738
1746
  cardStyle: {
@@ -1750,35 +1758,35 @@ const $ = u.createContext(null), Et = ({
1750
1758
  }
1751
1759
  },
1752
1760
  title: C.no_relevant_insights_card_title,
1753
- variant: p,
1754
- widthOverrides: _
1761
+ variant: _,
1762
+ widthOverrides: E
1755
1763
  }
1756
1764
  );
1757
- }, li = G(He), ke = ({
1765
+ }, ri = G(He), ke = ({
1758
1766
  ariaLabel: i,
1759
1767
  carouselSize: o,
1760
1768
  heightOverrides: t,
1761
- onCardClick: r,
1769
+ onCardClick: l,
1762
1770
  posthog: n,
1763
- showIcon: l,
1771
+ showIcon: r,
1764
1772
  showWithMargin: a,
1765
1773
  variant: d,
1766
- widthOverrides: p
1774
+ widthOverrides: _
1767
1775
  }) => {
1768
- const { onPageview: _ } = Le(), { zeroStateCopy: C } = k();
1769
- return u.useEffect(() => {
1770
- _(H.MICRO_WIDGET_CAROUSEL_ZERO_STATE);
1776
+ const { onPageview: E } = Le(), { zeroStateCopy: C } = k();
1777
+ return p.useEffect(() => {
1778
+ E(H.MICRO_WIDGET_CAROUSEL_ZERO_STATE);
1771
1779
  }, []), /* @__PURE__ */ e(
1772
- re,
1780
+ le,
1773
1781
  {
1774
1782
  ariaLabel: i,
1775
1783
  description: C.carousel_zero_state_description,
1776
1784
  heightOverrides: t,
1777
- icon: /* @__PURE__ */ e(xe, {}),
1785
+ icon: /* @__PURE__ */ e(De, {}),
1778
1786
  isZeroState: !0,
1779
- onCardClick: r,
1787
+ onCardClick: l,
1780
1788
  posthog: n,
1781
- showIcon: l,
1789
+ showIcon: r,
1782
1790
  style: {
1783
1791
  cardStyle: {
1784
1792
  card: {
@@ -1793,7 +1801,7 @@ const $ = u.createContext(null), Et = ({
1793
1801
  },
1794
1802
  title: C.carousel_zero_state_title,
1795
1803
  variant: d,
1796
- widthOverrides: p
1804
+ widthOverrides: _
1797
1805
  }
1798
1806
  );
1799
1807
  }, ni = G(ke), wt = () => /* @__PURE__ */ e(
@@ -1808,20 +1816,20 @@ const $ = u.createContext(null), Et = ({
1808
1816
  },
1809
1817
  children: /* @__PURE__ */ e(qe, {})
1810
1818
  }
1811
- ), V = new ht(), Dt = ({
1819
+ ), V = new Et(), xt = ({
1812
1820
  allowSingleCardPeeking: i,
1813
1821
  areBeatsLoading: o,
1814
1822
  beats: t = [],
1815
1823
  // This also determines the length of the carousel controls (beat.length + 1)
1816
- clientColorScheme: r,
1824
+ clientColorScheme: l,
1817
1825
  // Allows certain icons, view all and read more button to reflect the clients color scheme. Currently only supports primary_300
1818
1826
  showCTAColocatedWithText: n = !0,
1819
- endpoint: l = "/",
1827
+ endpoint: r = "/",
1820
1828
  heightOverrides: a,
1821
1829
  logOutUser: d,
1822
- onCardClick: p = () => {
1830
+ onCardClick: _ = () => {
1823
1831
  },
1824
- onEvent: _ = () => {
1832
+ onEvent: E = () => {
1825
1833
  },
1826
1834
  onPageview: C = () => {
1827
1835
  },
@@ -1829,10 +1837,10 @@ const $ = u.createContext(null), Et = ({
1829
1837
  shouldApplyNewAnimation: h = !1,
1830
1838
  showBorder: m = !0,
1831
1839
  showCarouselControls: c,
1832
- showHeader: E,
1840
+ showHeader: u,
1833
1841
  showIcon: g,
1834
1842
  showWithMargin: I = !0,
1835
- token: D = "",
1843
+ token: x = "",
1836
1844
  useDarkMode: O,
1837
1845
  userHasFullInsightFeedBeats: y,
1838
1846
  variant: F,
@@ -1840,37 +1848,37 @@ const $ = u.createContext(null), Et = ({
1840
1848
  widthOverrides: R
1841
1849
  }) => {
1842
1850
  console.log("InsightsMicroWidget", { heightOverrides: a });
1843
- const [x, U] = te("STANDARD"), [B, j] = te(!1), [Z, X] = te(!1), le = et([_], V), ne = tt([C], V);
1844
- u.useEffect(() => {
1845
- !V.isInitialized && !Z && (V.initialize(l, D, d).catch(() => X(!1)), X(!0));
1846
- }, [l, D, d, V.isInitialized, Z]), u.useEffect(() => {
1851
+ const [D, U] = te("STANDARD"), [B, j] = te(!1), [Z, X] = te(!1), re = et([E], V), ne = tt([C], V);
1852
+ p.useEffect(() => {
1853
+ !V.isInitialized && !Z && (V.initialize(r, x, d).catch(() => X(!1)), X(!0));
1854
+ }, [r, x, d, V.isInitialized, Z]), p.useEffect(() => {
1847
1855
  const L = window.innerHeight;
1848
1856
  L < 180 ? U("STANDARD") : L >= 180 && L < 200 ? U("LARGE") : L >= 200 && L < 248 ? U("XLARGE") : L >= 248 && U("XXLARGE");
1849
- }, [window.innerHeight]), u.useEffect(() => {
1857
+ }, [window.innerHeight]), p.useEffect(() => {
1850
1858
  j(!o && V.isInitialized);
1851
1859
  }, [o, V.isInitialized]);
1852
1860
  const Q = {
1853
1861
  showCTAColocatedWithText: n,
1854
1862
  heightOverrides: a,
1855
- onCardClick: p,
1863
+ onCardClick: _,
1856
1864
  posthog: f,
1857
1865
  showIcon: g,
1858
1866
  showWithMargin: I,
1859
1867
  useDarkMode: O,
1860
1868
  widthOverrides: R
1861
1869
  }, q = {
1862
- carouselSize: x,
1870
+ carouselSize: D,
1863
1871
  variant: F,
1864
1872
  ...Q
1865
1873
  };
1866
- return /* @__PURE__ */ e(Et, { onEvent: le, onPageview: ne, store: V, children: /* @__PURE__ */ v(Wt, { heightOverrides: a, widthOverrides: R, children: [
1874
+ return /* @__PURE__ */ e(ht, { onEvent: re, onPageview: ne, store: V, children: /* @__PURE__ */ v(Wt, { heightOverrides: a, widthOverrides: R, children: [
1867
1875
  !B && /* @__PURE__ */ e(wt, {}),
1868
- B && E && /* @__PURE__ */ e(
1876
+ B && u && /* @__PURE__ */ e(
1869
1877
  Tt,
1870
1878
  {
1871
1879
  analyticsMetadata: fe,
1872
- clientColorScheme: r,
1873
- onCardClick: p,
1880
+ clientColorScheme: l,
1881
+ onCardClick: _,
1874
1882
  posthog: f,
1875
1883
  widthOverrides: R
1876
1884
  }
@@ -1881,7 +1889,7 @@ const $ = u.createContext(null), Et = ({
1881
1889
  allowSingleCardPeeking: i,
1882
1890
  analyticsMetadata: fe,
1883
1891
  beats: t,
1884
- clientColorScheme: r,
1892
+ clientColorScheme: l,
1885
1893
  shouldApplyNewAnimation: h,
1886
1894
  showCarouselControls: c,
1887
1895
  variant: m ? F : void 0,
@@ -1889,66 +1897,66 @@ const $ = u.createContext(null), Et = ({
1889
1897
  ...Q
1890
1898
  }
1891
1899
  ),
1892
- B && !t.length && y && /* @__PURE__ */ e(He, { clientColorScheme: r, ...q }),
1900
+ B && !t.length && y && /* @__PURE__ */ e(He, { clientColorScheme: l, ...q }),
1893
1901
  B && !t.length && !y && /* @__PURE__ */ e(ke, { ...q })
1894
1902
  ] }) });
1895
- }, ai = G(Dt), xt = ({
1903
+ }, ai = G(xt), Dt = ({
1896
1904
  isActiveCard: i,
1897
1905
  ariaLabel: o,
1898
1906
  clientColorScheme: t,
1899
- heightOverrides: r,
1907
+ heightOverrides: l,
1900
1908
  onCardClick: n,
1901
- posthog: l,
1909
+ posthog: r,
1902
1910
  showIcon: a,
1903
1911
  variant: d,
1904
- widthOverrides: p
1912
+ widthOverrides: _
1905
1913
  }) => {
1906
- const _ = se(), { ref: C, inView: f } = Me({
1914
+ const E = se(), { ref: C, inView: f } = Se({
1907
1915
  threshold: Ve
1908
1916
  }), { cardsCopy: h } = k(), { onEvent: m } = Y();
1909
1917
  oe(() => {
1910
- f && (m(De.ON_VIEW_MORE_VIEWED), l?.capture("viewed_insight", {
1918
+ f && (m(xe.ON_VIEW_MORE_VIEWED), r?.capture("viewed_insight", {
1911
1919
  template: "view_more_card"
1912
1920
  }));
1913
1921
  }, [f]);
1914
1922
  const c = () => {
1915
- n && n(), m(M.ON_VIEW_MORE_CLICKED), l?.capture("clicked_insight", {
1923
+ n && n(), m(S.ON_VIEW_MORE_CLICKED), r?.capture("clicked_insight", {
1916
1924
  template: "view_more_card"
1917
1925
  });
1918
1926
  };
1919
1927
  return /* @__PURE__ */ e(
1920
- re,
1928
+ le,
1921
1929
  {
1922
1930
  actionText: h.micro_card_cta,
1923
1931
  ariaLabel: o,
1924
1932
  description: h.view_more_card_description,
1925
1933
  fontColors: { buttonColor: t?.primary_300 },
1926
- heightOverrides: r,
1927
- icon: /* @__PURE__ */ e(ft, { color: t?.primary_300 ?? _.palette.primary.main }),
1934
+ heightOverrides: l,
1935
+ icon: /* @__PURE__ */ e(ft, { color: t?.primary_300 ?? E.palette.primary.main }),
1928
1936
  isActiveCard: i,
1929
1937
  onCardClick: c,
1930
- posthog: l,
1938
+ posthog: r,
1931
1939
  ref: C,
1932
1940
  showIcon: a,
1933
1941
  title: h.view_more_card_title,
1934
1942
  variant: d,
1935
- widthOverrides: p
1943
+ widthOverrides: _
1936
1944
  }
1937
1945
  );
1938
- }, Lt = G(xt);
1946
+ }, Lt = G(Dt);
1939
1947
  export {
1940
- ht as A,
1948
+ Et as A,
1941
1949
  vt as B,
1942
1950
  Tt as C,
1943
- Et as I,
1951
+ ht as I,
1944
1952
  At as M,
1945
- li as N,
1953
+ ri as N,
1946
1954
  fe as T,
1947
1955
  Lt as V,
1948
1956
  ni as Z,
1949
- re as a,
1957
+ le as a,
1950
1958
  ai as b,
1951
1959
  ft as c,
1952
1960
  Rt as d,
1953
- xe as e
1961
+ De as e
1954
1962
  };
@@ -1,4 +1,4 @@
1
- import { A as s, B as e, C as o, c as t, b as i, I as d, M as n, a as C, d as c, N as I, V as M, Z as g, e as h } from "../ViewMoreMicroCard-BxRNJMMm.mjs";
1
+ import { A as s, B as e, C as o, c as t, b as i, I as d, M as n, a as C, d as c, N as I, V as M, Z as g, e as h } from "../ViewMoreMicroCard-vWvKWBNw.mjs";
2
2
  export {
3
3
  s as AppStore,
4
4
  e as BeatCard,
@@ -19,7 +19,7 @@ import { DataGridPro as mt } from "@mui/x-data-grid-pro";
19
19
  import { C as pt } from "../CurrencyText-kyC1aseI.mjs";
20
20
  import { b as Ct } from "../Localization-2MODESHW.mjs";
21
21
  import { H as Ie } from "../HeaderCell-DjuifqHJ.mjs";
22
- import { T as M, b as ft } from "../ViewMoreMicroCard-BxRNJMMm.mjs";
22
+ import { T as M, b as ft } from "../ViewMoreMicroCard-vWvKWBNw.mjs";
23
23
  import { A as _, W as ke } from "../WidgetContainer-C88Ecu2W.mjs";
24
24
  import { c as Tt } from "../Category-CevNQ03n.mjs";
25
25
  import { a as Ne, T as He } from "../TransactionDetails-BWffqew4.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "7.2.5-alpha.mm0",
3
+ "version": "7.2.5-alpha.mm2",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",