@mx-cartographer/experiences 7.12.17 → 7.13.1

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.
Files changed (55) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/{AccountDetailsHeader-BkEF1gO-.mjs → AccountDetailsHeader-D9gbTbUt.mjs} +31 -31
  3. package/dist/{AccountFields-C_dcdCM7.mjs → AccountFields-CxqONzjY.mjs} +6 -6
  4. package/dist/AccountListItem-LcJVJysf.mjs +90 -0
  5. package/dist/{AccountStore-ypdfueW9.mjs → AccountStore-BNlTuxWN.mjs} +1 -1
  6. package/dist/{BudgetUtil--_QXyszn.mjs → BudgetUtil-CLhRnCoX.mjs} +75 -75
  7. package/dist/{CashflowStore-DEdQJU5i.mjs → CashflowStore-D3MKniVM.mjs} +11 -11
  8. package/dist/{CategorySelectorDrawer-wfUTIbLR.mjs → CategorySelectorDrawer-DYHNBd2v.mjs} +31 -31
  9. package/dist/{ConnectDrawer-CioFo6Wy.mjs → ConnectDrawer-C0wjwcJt.mjs} +1 -1
  10. package/dist/{ConnectionsDrawer-DqhSaMrJ.mjs → ConnectionsDrawer-IA7vnv1J.mjs} +1 -1
  11. package/dist/{Drawer-DV4NTsFg.mjs → Drawer-Bbe4AMB1.mjs} +5 -5
  12. package/dist/{GoalStore-0bd-Upkc.mjs → GoalStore-DB58sKTC.mjs} +8 -8
  13. package/dist/HeaderCell-P8w6CmfO.mjs +6 -0
  14. package/dist/{Help-CDu1Fvrc.mjs → Help-CpLfyvPv.mjs} +24 -24
  15. package/dist/{LineChart-B1qbKR8q.mjs → LineChart-DBSlRSEm.mjs} +102 -102
  16. package/dist/{ManageIncome-BnWWjP2g.mjs → ManageIncome-QvqN555q.mjs} +62 -62
  17. package/dist/{MiniWidgetContainer-Cu72GNsE.mjs → MiniWidgetContainer-xLWSV6Wz.mjs} +13 -13
  18. package/dist/{NotificationSettings-BH2yOwTB.mjs → NotificationSettings-DU3vJh5J.mjs} +139 -139
  19. package/dist/{OriginalBalanceAction-BM6rT_Cn.mjs → OriginalBalanceAction-DjpvVVFz.mjs} +6 -6
  20. package/dist/{RecurringSettings-BmXtfHtK.mjs → RecurringSettings-DdOcok2e.mjs} +2 -2
  21. package/dist/{RecurringTransactions-CYNpe_RS.mjs → RecurringTransactions-BOzBqfdg.mjs} +11 -11
  22. package/dist/{RecurringTransactionsStore-BD-OfVZ-.mjs → RecurringTransactionsStore-CcfPS0d3.mjs} +1 -1
  23. package/dist/{SpendingLegend-Bq6aXMNh.mjs → SpendingLegend-CJjjTGBw.mjs} +76 -76
  24. package/dist/{StatusIndicator-BV3oFzxo.mjs → StatusIndicator-CIKUOoN_.mjs} +53 -53
  25. package/dist/{TransactionDetails-DYlTwSDt.mjs → TransactionDetails-BpcWeXNU.mjs} +350 -350
  26. package/dist/{ViewMoreMicroCard-BhG9hCoO.mjs → ViewMoreMicroCard-ApUBfGOX.mjs} +107 -106
  27. package/dist/{WidgetContainer-B0ncgABX.mjs → WidgetContainer-D_iaToWJ.mjs} +12 -12
  28. package/dist/accounts/index.es.js +107 -107
  29. package/dist/analytics/index.es.js +18 -18
  30. package/dist/budgets/index.es.js +182 -182
  31. package/dist/cashflow/index.es.js +223 -223
  32. package/dist/categories/index.es.js +1 -1
  33. package/dist/common/index.es.js +54 -64
  34. package/dist/common/types/Beat.d.ts +2 -0
  35. package/dist/dashboard/index.es.js +9 -9
  36. package/dist/debts/index.es.js +469 -469
  37. package/dist/finstrong/index.es.js +68 -68
  38. package/dist/goals/index.es.js +437 -437
  39. package/dist/help/index.es.js +2 -2
  40. package/dist/insights/index.es.js +159 -159
  41. package/dist/investments/index.es.js +292 -292
  42. package/dist/merchants/index.es.js +12 -12
  43. package/dist/microinsights/beaticons/InstitutionLogoIcon.d.ts +5 -0
  44. package/dist/microinsights/beaticons/index.d.ts +1 -0
  45. package/dist/microinsights/index.es.js +1 -1
  46. package/dist/networth/index.es.js +175 -168
  47. package/dist/notifications/index.es.js +13 -13
  48. package/dist/recurringtransactions/index.es.js +69 -69
  49. package/dist/settings/index.es.js +187 -187
  50. package/dist/spending/index.es.js +58 -58
  51. package/dist/transactions/index.es.js +70 -70
  52. package/dist/trends/index.es.js +16 -16
  53. package/package.json +1 -1
  54. package/dist/AccountListItem-BAf03YhK.mjs +0 -90
  55. package/dist/HeaderCell-DjuifqHJ.mjs +0 -6
@@ -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,7 +619,7 @@ 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
  {
623
624
  onClick: u,
624
625
  sx: {
@@ -627,13 +628,13 @@ const Y = h.createContext(null), lt = ({
627
628
  px: 16,
628
629
  height: "100%"
629
630
  },
630
- children: N
631
+ children: w
631
632
  }
632
- ) : /* @__PURE__ */ o(H, { sx: { pb: 8, pt: 16, px: 16, height: "100%" }, children: N })
633
+ ) : /* @__PURE__ */ o(H, { sx: { pb: 8, pt: 16, px: 16, height: "100%" }, children: w })
633
634
  }
634
635
  );
635
636
  }
636
- ), J = St, Tt = ({
637
+ ), J = Rt, Ot = ({
637
638
  ariaLabel: t,
638
639
  beat: e,
639
640
  index: n,
@@ -647,15 +648,15 @@ const Y = h.createContext(null), lt = ({
647
648
  }) => {
648
649
  const { ref: u, inView: d } = Oe({
649
650
  threshold: Pe
650
- }), { cardsCopy: m } = x(), { onEvent: _ } = X(), { updateBeat: A, updateOffer: I } = ft();
651
+ }), { cardsCopy: m } = x(), { onEvent: _ } = X(), { updateBeat: A, updateOffer: I } = At();
651
652
  ie(() => {
652
- d && (e.has_been_displayed ? _(we(e.template)) : (e.guid.startsWith("OFR") ? I({
653
+ d && (e.has_been_displayed ? _(Ne(e.template)) : (e.guid.startsWith("OFR") ? I({
653
654
  ...e,
654
655
  has_been_displayed: !0
655
656
  }) : A({
656
657
  ...e,
657
658
  has_been_displayed: !0
658
- }), _(Ne(e.template))));
659
+ }), _(we(e.template))));
659
660
  }, [d]), ie(() => {
660
661
  if (d && e)
661
662
  if (e.template === "MarketingOffer") {
@@ -698,7 +699,7 @@ const Y = h.createContext(null), lt = ({
698
699
  description: e?.html_micro_description && e?.html_micro_description.length > 0 ? e.html_micro_description : e.html_description || "",
699
700
  hasCardEffect: !0,
700
701
  heightOverrides: E,
701
- icon: g && /* @__PURE__ */ o(It, { beat: e }),
702
+ icon: g && /* @__PURE__ */ o(yt, { beat: e }),
702
703
  isActiveCard: r,
703
704
  onCardClick: S,
704
705
  onPrimaryAction: S,
@@ -709,7 +710,7 @@ const Y = h.createContext(null), lt = ({
709
710
  widthOverrides: s
710
711
  }
711
712
  );
712
- }, Rt = ({
713
+ }, Wt = ({
713
714
  currentBeatIndex: t,
714
715
  numBeats: e,
715
716
  onNextClick: n,
@@ -743,7 +744,7 @@ const Y = h.createContext(null), lt = ({
743
744
  disabled: u,
744
745
  onClick: r,
745
746
  children: /* @__PURE__ */ o(
746
- $e,
747
+ He,
747
748
  {
748
749
  style: {
749
750
  color: u ? m : _
@@ -798,7 +799,7 @@ const Y = h.createContext(null), lt = ({
798
799
  ]
799
800
  }
800
801
  );
801
- }, Ot = ({
802
+ }, Mt = ({
802
803
  activeCardIndex: t,
803
804
  beats: e,
804
805
  cardWidth: n,
@@ -818,15 +819,15 @@ const Y = h.createContext(null), lt = ({
818
819
  };
819
820
  return /* @__PURE__ */ M(Te, { children: [
820
821
  e.map((d, m) => {
821
- const _ = m + 1, A = e.length + 1, I = Ye(
822
+ const _ = m + 1, A = e.length + 1, I = Xe(
822
823
  E.card_position_in_carousel_aria,
823
824
  _.toString(),
824
825
  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;
826
+ ), 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
827
  return /* @__PURE__ */ o(
827
- Tt,
828
+ Ot,
828
829
  {
829
- ariaLabel: `${I}: ${v}, ${w}`,
830
+ ariaLabel: `${I}: ${v}, ${N}`,
830
831
  beat: d,
831
832
  index: m,
832
833
  isActiveCard: m === t,
@@ -838,7 +839,7 @@ const Y = h.createContext(null), lt = ({
838
839
  );
839
840
  }),
840
841
  /* @__PURE__ */ o(
841
- vt,
842
+ Bt,
842
843
  {
843
844
  isActiveCard: t === e.length,
844
845
  onCardClick: a,
@@ -847,7 +848,7 @@ const Y = h.createContext(null), lt = ({
847
848
  }
848
849
  )
849
850
  ] });
850
- }, Wt = ({
851
+ }, Nt = ({
851
852
  analyticsMetadata: t,
852
853
  allowSingleCardPeeking: e = !1,
853
854
  beats: n = [],
@@ -863,7 +864,7 @@ const Y = h.createContext(null), lt = ({
863
864
  visibleCardsCount: m = 1
864
865
  // Default to 1 card visible
865
866
  }) => {
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();
867
+ 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
868
  h.useEffect(() => {
868
869
  if (_.current && !e) {
869
870
  const O = _.current.offsetWidth, F = 8;
@@ -913,8 +914,8 @@ const Y = h.createContext(null), lt = ({
913
914
  }, Q = () => {
914
915
  _.current && S(_.current.scrollLeft);
915
916
  }, te = () => {
916
- if (!w || !f) return;
917
- w - f > At ? p(R.ON_CAROUSEL_FORWARD_SWIPE, t) : p(R.ON_CAROUSEL_BACK_SWIPE, t);
917
+ if (!N || !f) return;
918
+ N - f > Tt ? p(R.ON_CAROUSEL_FORWARD_SWIPE, t) : p(R.ON_CAROUSEL_BACK_SWIPE, t);
918
919
  }, oe = (O) => {
919
920
  v(O.targetTouches[0].clientX);
920
921
  }, ne = (O) => {
@@ -923,7 +924,7 @@ const Y = h.createContext(null), lt = ({
923
924
  return /* @__PURE__ */ M(
924
925
  W,
925
926
  {
926
- "aria-label": N.carousel_title,
927
+ "aria-label": w.carousel_title,
927
928
  "aria-roledescription": "carousel",
928
929
  ref: A,
929
930
  role: "region",
@@ -961,7 +962,7 @@ const Y = h.createContext(null), lt = ({
961
962
  }
962
963
  },
963
964
  children: /* @__PURE__ */ o(
964
- Ot,
965
+ Mt,
965
966
  {
966
967
  activeCardIndex: K,
967
968
  beats: n,
@@ -977,7 +978,7 @@ const Y = h.createContext(null), lt = ({
977
978
  }
978
979
  ),
979
980
  C && /* @__PURE__ */ o(
980
- Rt,
981
+ Wt,
981
982
  {
982
983
  currentBeatIndex: K + m - 1,
983
984
  numBeats: n.length + 1,
@@ -992,7 +993,7 @@ const Y = h.createContext(null), lt = ({
992
993
  ]
993
994
  }
994
995
  );
995
- }, Mt = z(Wt), wt = ({
996
+ }, wt = z(Nt), bt = ({
996
997
  analyticsMetadata: t,
997
998
  onCardClick: e,
998
999
  posthog: n,
@@ -1016,7 +1017,7 @@ const Y = h.createContext(null), lt = ({
1016
1017
  ...i
1017
1018
  },
1018
1019
  children: [
1019
- /* @__PURE__ */ o(ze, { children: a.carousel_title }),
1020
+ /* @__PURE__ */ o(Ke, { children: a.carousel_title }),
1020
1021
  /* @__PURE__ */ o(
1021
1022
  ae,
1022
1023
  {
@@ -1029,8 +1030,8 @@ const Y = h.createContext(null), lt = ({
1029
1030
  )
1030
1031
  ]
1031
1032
  }
1032
- ) : /* @__PURE__ */ o(He, {});
1033
- }, Nt = z(wt), bt = ({
1033
+ ) : /* @__PURE__ */ o(je, {});
1034
+ }, Lt = z(bt), Dt = ({
1034
1035
  heightOverrides: t,
1035
1036
  widthOverrides: e,
1036
1037
  children: n
@@ -1086,7 +1087,7 @@ const Y = h.createContext(null), lt = ({
1086
1087
  variant: a
1087
1088
  }
1088
1089
  );
1089
- }, io = z(Be), Ve = ({
1090
+ }, so = z(Be), Ve = ({
1090
1091
  ariaLabel: t,
1091
1092
  heightOverrides: e,
1092
1093
  onCardClick: n,
@@ -1112,7 +1113,7 @@ const Y = h.createContext(null), lt = ({
1112
1113
  variant: i
1113
1114
  }
1114
1115
  );
1115
- }, ao = z(Ve), Lt = () => /* @__PURE__ */ o(
1116
+ }, co = z(Ve), xt = () => /* @__PURE__ */ o(
1116
1117
  H,
1117
1118
  {
1118
1119
  sx: {
@@ -1122,9 +1123,9 @@ const Y = h.createContext(null), lt = ({
1122
1123
  justifyContent: "center",
1123
1124
  width: "100%"
1124
1125
  },
1125
- children: /* @__PURE__ */ o(Xe, {})
1126
+ children: /* @__PURE__ */ o(Ze, {})
1126
1127
  }
1127
- ), V = new ct(), Dt = ({
1128
+ ), V = new lt(), vt = ({
1128
1129
  allowSingleCardPeeking: t,
1129
1130
  areBeatsLoading: e,
1130
1131
  beats: n = [],
@@ -1148,19 +1149,19 @@ const Y = h.createContext(null), lt = ({
1148
1149
  showWithMargin: S = !0,
1149
1150
  token: f = "",
1150
1151
  userHasFullInsightFeedBeats: v,
1151
- variant: w,
1152
+ variant: N,
1152
1153
  visibleCardsCount: k = 1,
1153
1154
  widthOverrides: y
1154
1155
  }) => {
1155
- const [P, N] = re("STANDARD"), [p, ee] = re(!1), [Z, Q] = re(!1), te = Qe([E], V), oe = qe([u], V);
1156
- Je({
1156
+ const [P, w] = re("STANDARD"), [p, ee] = re(!1), [Z, Q] = re(!1), te = qe([E], V), oe = Je([u], V);
1157
+ et({
1157
1158
  widgetName: "InsightsMicroWidget",
1158
1159
  isLoaded: p
1159
1160
  }), h.useEffect(() => {
1160
1161
  !V.isInitialized && !Z && (V.initialize(i, f, C).catch(() => Q(!1)), Q(!0));
1161
1162
  }, [i, f, C, V.isInitialized, Z]), h.useEffect(() => {
1162
1163
  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");
1164
+ B < 180 ? w("STANDARD") : B >= 180 && B < 200 ? w("LARGE") : B >= 200 && B < 248 ? w("XLARGE") : B >= 248 && w("XXLARGE");
1164
1165
  }, [window.innerHeight]), h.useEffect(() => {
1165
1166
  ee(!e && V.isInitialized);
1166
1167
  }, [e, V.isInitialized]);
@@ -1174,17 +1175,17 @@ const Y = h.createContext(null), lt = ({
1174
1175
  widthOverrides: y
1175
1176
  }, K = {
1176
1177
  carouselSize: P,
1177
- variant: w,
1178
+ variant: N,
1178
1179
  showCTAColocatedWithText: r,
1179
1180
  heightOverrides: a,
1180
1181
  onCardClick: g,
1181
1182
  posthog: d,
1182
1183
  showIcon: I
1183
1184
  };
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, {}),
1185
+ return /* @__PURE__ */ o(dt, { onEvent: te, onPageview: oe, store: V, children: /* @__PURE__ */ M(Dt, { heightOverrides: a, widthOverrides: y, children: [
1186
+ !p && /* @__PURE__ */ o(xt, {}),
1186
1187
  p && A && /* @__PURE__ */ o(
1187
- Nt,
1188
+ Lt,
1188
1189
  {
1189
1190
  analyticsMetadata: Ee,
1190
1191
  headerSx: s,
@@ -1194,13 +1195,13 @@ const Y = h.createContext(null), lt = ({
1194
1195
  }
1195
1196
  ),
1196
1197
  p && !!n.length && /* @__PURE__ */ o(
1197
- Mt,
1198
+ wt,
1198
1199
  {
1199
1200
  allowSingleCardPeeking: t,
1200
1201
  analyticsMetadata: Ee,
1201
1202
  beats: n,
1202
1203
  showCarouselControls: _,
1203
- variant: m ? w : void 0,
1204
+ variant: m ? N : void 0,
1204
1205
  visibleCardsCount: k,
1205
1206
  ...ne
1206
1207
  }
@@ -1217,7 +1218,7 @@ const Y = h.createContext(null), lt = ({
1217
1218
  W,
1218
1219
  {
1219
1220
  sx: {
1220
- height: `calc(${yt[P]}px - 44px)`,
1221
+ height: `calc(${St[P]}px - 44px)`,
1221
1222
  width: S ? `calc(${y}px - 32px)` : "100%"
1222
1223
  },
1223
1224
  children: v ? /* @__PURE__ */ o(Be, { ...K }) : /* @__PURE__ */ o(Ve, { ...K })
@@ -1226,7 +1227,7 @@ const Y = h.createContext(null), lt = ({
1226
1227
  }
1227
1228
  )
1228
1229
  ] }) });
1229
- }, so = z(Dt), xt = ({
1230
+ }, lo = z(vt), Pt = ({
1230
1231
  ariaLabel: t,
1231
1232
  heightOverrides: e,
1232
1233
  isActiveCard: n,
@@ -1271,19 +1272,19 @@ const Y = h.createContext(null), lt = ({
1271
1272
  widthOverrides: a
1272
1273
  }
1273
1274
  );
1274
- }, vt = z(xt);
1275
+ }, Bt = z(Pt);
1275
1276
  export {
1276
- ct as A,
1277
+ lt as A,
1277
1278
  l as B,
1278
- Nt as C,
1279
- lt as I,
1280
- Mt as M,
1281
- io as N,
1279
+ Lt as C,
1280
+ dt as I,
1281
+ wt as M,
1282
+ so as N,
1282
1283
  Ee as T,
1283
- vt as V,
1284
- ao as Z,
1285
- Tt as a,
1286
- so as b,
1287
- Ct as c,
1284
+ Bt as V,
1285
+ co as Z,
1286
+ Ot as a,
1287
+ lo as b,
1288
+ ht as c,
1288
1289
  J as d
1289
1290
  };