@mx-cartographer/experiences 8.0.0-alpha.bb4 → 8.0.0-alpha.sms1

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 (106) hide show
  1. package/dist/{Account-B4CDD-zq.mjs → Account-BDXA6PWh.mjs} +1 -1
  2. package/dist/AccountDetailsContent-CUztd3-b.mjs +683 -0
  3. package/dist/{AccountDetailsHeader-DRjFuyJT.mjs → AccountDetailsHeader-i3KFhNuo.mjs} +18 -18
  4. package/dist/{AccountFields-Cl4KHoSj.mjs → AccountFields-QZspYAji.mjs} +10 -12
  5. package/dist/AccountListItem-DX5upmCS.mjs +90 -0
  6. package/dist/{AccountStore-HbVblv86.mjs → AccountStore-BcnDpyLL.mjs} +3 -3
  7. package/dist/{Accounts-CRUehOiy.mjs → Accounts-DXfZotRC.mjs} +1 -1
  8. package/dist/{BudgetUtil-Jv8h9H9l.mjs → BudgetUtil-Df2nII9u.mjs} +31 -31
  9. package/dist/{CashflowStore-CA190BPF.mjs → CashflowStore-D9Dpuz7X.mjs} +25 -18
  10. package/dist/{Category-Ccoew_sA.mjs → Category-CevNQ03n.mjs} +2 -2
  11. package/dist/{CategorySelectorDrawer-Dl006GKy.mjs → CategorySelectorDrawer-DqJK_rrL.mjs} +27 -27
  12. package/dist/{CategoryStore-MUwRWH9e.mjs → CategoryStore-DTgyAMM7.mjs} +2 -2
  13. package/dist/{CategoryUtil-DfVKKkRf.mjs → CategoryUtil-C5cR-nfQ.mjs} +4 -4
  14. package/dist/{ConnectDrawer-DVp54lUH.mjs → ConnectDrawer-BIbTqYOH.mjs} +47 -48
  15. package/dist/{ConnectionsDrawer-Dsc04-4Z.mjs → ConnectionsDrawer-BFfY3_zB.mjs} +2 -2
  16. package/dist/CurrencyInput-BFKcs-_K.mjs +85 -0
  17. package/dist/{DateUtil-CDPZw_-m.mjs → DateUtil-CBdcsyuk.mjs} +1 -1
  18. package/dist/{DebtsStore-pL63fmdT.mjs → DebtsStore-BbJB0nmu.mjs} +3 -3
  19. package/dist/{Dialog-CDV0kKxj.mjs → Dialog-BPTr3qHE.mjs} +24 -24
  20. package/dist/{Drawer-BF40nbsH.mjs → Drawer-BEtCk82g.mjs} +17 -17
  21. package/dist/{ExportCsvAction-QhQK4_FU.mjs → ExportCsvAction-DzTrtPzk.mjs} +3 -3
  22. package/dist/{FinstrongStore-BGf36b0z.mjs → FinstrongStore-BIrX0Xg2.mjs} +56 -56
  23. package/dist/{GoalStore-C1-w3Y1E.mjs → GoalStore-DpWY3gVb.mjs} +4 -4
  24. package/dist/HeaderCell-DjuifqHJ.mjs +6 -0
  25. package/dist/{Help-DBfsTkAi.mjs → Help-BnPXM_N2.mjs} +145 -124
  26. package/dist/{Help-c-zHlDbv.mjs → Help-DhcC-C05.mjs} +8 -8
  27. package/dist/{IconBacking-DgT8DCeh.mjs → IconBacking-B9oC6uL2.mjs} +11 -11
  28. package/dist/{LineChart-C1PxNf7P.mjs → LineChart-bc1D9xBE.mjs} +78 -78
  29. package/dist/{ListItemAction-BNCWQAN_.mjs → ListItemAction-uobBrm_a.mjs} +1 -1
  30. package/dist/Loader-DUaFpDGv.mjs +24 -0
  31. package/dist/{ManageIncome-8EsStyIQ.mjs → ManageIncome-NpXHhO1n.mjs} +46 -46
  32. package/dist/MicroWidgetContainer-DEiRnYVa.mjs +45 -0
  33. package/dist/MiniWidgetContainer-CmXpTylX.mjs +56 -0
  34. package/dist/{NetWorthStore-Bti6u-d9.mjs → NetWorthStore-lsuhEpn6.mjs} +4 -4
  35. package/dist/{NotificationSettings-B74rQVYC.mjs → NotificationSettings-CNmJWVeI.mjs} +77 -77
  36. package/dist/{OriginalBalanceAction-2Y_3U_mg.mjs → OriginalBalanceAction-DK8_LkPz.mjs} +8 -8
  37. package/dist/{RecurringSettings-DAncu--R.mjs → RecurringSettings-CqZh1SQa.mjs} +3 -3
  38. package/dist/{RecurringTransactions-CxcSL1dY.mjs → RecurringTransactions-BKcYmpv3.mjs} +77 -77
  39. package/dist/{RecurringTransactionsStore-CNFxyGB6.mjs → RecurringTransactionsStore-Ni5tSQIO.mjs} +1 -1
  40. package/dist/{ResponsiveButton-Cn6-R7ue.mjs → ResponsiveButton-DZFp78fJ.mjs} +10 -10
  41. package/dist/SearchBox-B2_zLv8-.mjs +42 -0
  42. package/dist/{SettingsStore-BASMQSIp.mjs → SettingsStore-krIRNwHK.mjs} +1 -1
  43. package/dist/{SingleSegmentDonut-7Uy6VEld.mjs → SingleSegmentDonut-BgbLgwHi.mjs} +6 -6
  44. package/dist/{SpendingData-DPQ96k3x.mjs → SpendingData-BuJ03S9d.mjs} +4 -4
  45. package/dist/{SpendingLegend-6FqtMcBV.mjs → SpendingLegend-CjX-hX2O.mjs} +12 -12
  46. package/dist/{StatusBar-CPfSXe80.mjs → StatusBar-BK_uYHAB.mjs} +6 -6
  47. package/dist/{TabContentContainer-CnMXkVqr.mjs → TabContentContainer-j01JYR_7.mjs} +8 -8
  48. package/dist/TransactionDetails-5M2vfr59.mjs +1379 -0
  49. package/dist/{TransactionStore-DbwAutwC.mjs → TransactionStore-D-Q3BU9Z.mjs} +58 -41
  50. package/dist/{TrendsStore-_mRaFUdf.mjs → TrendsStore-BW9FGQeE.mjs} +37 -37
  51. package/dist/{User-BklmOUSd.mjs → User-wXzDI4M8.mjs} +107 -107
  52. package/dist/{ViewMoreMicroCard-DAkyNRlD.mjs → ViewMoreMicroCard-C0832BMe.mjs} +233 -231
  53. package/dist/{WidgetContainer-CDh9fjpR.mjs → WidgetContainer-BhQ1Kx2z.mjs} +36 -36
  54. package/dist/accounts/index.es.js +94 -94
  55. package/dist/analytics/index.es.js +27 -27
  56. package/dist/budgets/index.es.js +251 -250
  57. package/dist/cashflow/index.es.js +158 -157
  58. package/dist/categories/index.es.js +2 -2
  59. package/dist/common/components/Loader.d.ts +2 -1
  60. package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +1 -1
  61. package/dist/common/components/barchart/Bar.d.ts +25 -0
  62. package/dist/common/components/barchart/BarChart.d.ts +34 -0
  63. package/dist/common/components/barchart/BarColumn.d.ts +37 -0
  64. package/dist/common/components/barchart/Legend.d.ts +8 -0
  65. package/dist/common/components/barchart/Util.d.ts +42 -0
  66. package/dist/common/components/barchart/index.d.ts +1 -0
  67. package/dist/common/components/charts/linechart/CustomMark.d.ts +1 -1
  68. package/dist/common/components/index.d.ts +1 -0
  69. package/dist/common/index.es.js +660 -395
  70. package/dist/common/utils/Theme.d.ts +3 -1
  71. package/dist/dashboard/index.es.js +21 -21
  72. package/dist/debts/components/DebtsChart.d.ts +2 -1
  73. package/dist/debts/index.es.js +440 -440
  74. package/dist/{exportTransactionsToCSV-BgV_wTLT.mjs → exportTransactionsToCSV-Cz2t0lmA.mjs} +3 -3
  75. package/dist/finstrong/index.es.js +118 -118
  76. package/dist/goals/index.es.js +380 -386
  77. package/dist/help/components/content/BottomImageContent.d.ts +1 -1
  78. package/dist/help/components/content/LeftImageContent.d.ts +1 -1
  79. package/dist/help/components/content/RightImageContent.d.ts +1 -1
  80. package/dist/help/components/content/TopImageContent.d.ts +1 -1
  81. package/dist/help/index.es.js +6 -6
  82. package/dist/investments/index.es.js +279 -278
  83. package/dist/merchants/index.es.js +7 -7
  84. package/dist/microinsights/index.es.js +1 -1
  85. package/dist/networth/components/NetWorthChange.d.ts +1 -3
  86. package/dist/networth/index.es.js +185 -191
  87. package/dist/notifications/index.es.js +30 -30
  88. package/dist/recurringtransactions/index.es.js +85 -85
  89. package/dist/settings/index.es.js +270 -270
  90. package/dist/spending/index.es.js +44 -44
  91. package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +7 -0
  92. package/dist/transactions/index.es.js +169 -168
  93. package/dist/trends/index.es.js +318 -317
  94. package/dist/{useAccountDisplayName-CcIp09Xc.mjs → useAccountDisplayName-CFNF8766.mjs} +1 -1
  95. package/dist/{useCombineEvents-kNzLTWCp.mjs → useCombineEvents-CRwX-qWE.mjs} +2 -2
  96. package/dist/{useScreenSize-B5afALev.mjs → useScreenSize-B6JyS_Lj.mjs} +1 -1
  97. package/package.json +50 -45
  98. package/dist/AccountDetailsContent-adZTkM52.mjs +0 -683
  99. package/dist/AccountListItem-wgmlex-_.mjs +0 -90
  100. package/dist/CurrencyInput-D1cjbdCI.mjs +0 -85
  101. package/dist/HeaderCell-P8w6CmfO.mjs +0 -6
  102. package/dist/Loader-Ckqi9Rx6.mjs +0 -21
  103. package/dist/MicroWidgetContainer-BGpNl5ZS.mjs +0 -45
  104. package/dist/MiniWidgetContainer-CKzf_Ira.mjs +0 -56
  105. package/dist/SearchBox-B7km148n.mjs +0 -39
  106. package/dist/TransactionDetails-Bn0qY5Hw.mjs +0 -1336
@@ -1,31 +1,32 @@
1
- import { jsx as e, jsxs as g, Fragment as xe } from "react/jsx-runtime";
2
- import u, { useEffect as te, useState as ee } from "react";
1
+ import { jsx as e, jsxs as g, Fragment as De } from "react/jsx-runtime";
2
+ import u, { useEffect as ee, useState as J } from "react";
3
3
  import { observer as P } from "mobx-react-lite";
4
4
  import k from "@mui/material/Stack";
5
- import De from "@mui/material/Button";
5
+ import xe from "@mui/material/Button";
6
6
  import Le from "@mui/material/Typography";
7
- import { BarChart as Ve, Error as ae, Campaign as Ne, ChevronLeft as He, ChevronRight as Ce } from "@mxenabled/mx-icons";
8
- import { L as ke } from "./Loader-Ckqi9Rx6.mjs";
7
+ import { BarChart as Ve, Error as ae, Campaign as Ne, ChevronLeft as He, ChevronRight as fe } from "@mxenabled/mx-icons";
8
+ import { L as ke } from "./Loader-DUaFpDGv.mjs";
9
9
  import Z from "@mui/material/Box";
10
- import ce from "@mui/material/IconButton";
11
- import { useTheme as j } from "@mui/material/styles";
10
+ import se from "@mui/material/IconButton";
11
+ import { useTheme as Fe } from "@mui/material/styles";
12
12
  import { useInView as me } from "react-intersection-observer";
13
- import { P as Fe, CategoryIcon as Be, MerchantLogo as Ze } from "@mxenabled/mxui";
14
- import { b as Pe } from "./Category-Ccoew_sA.mjs";
15
- import { b as be } from "./Localization-2MODESHW.mjs";
16
- import Ge from "@mui/material/CircularProgress";
13
+ import { P as Be, CategoryIcon as Ze, MerchantLogo as Pe } from "@mxenabled/mxui";
14
+ import { b as be } from "./Category-CevNQ03n.mjs";
15
+ import te from "@mui/material/styles/useTheme";
16
+ import { b as Ge } from "./Localization-2MODESHW.mjs";
17
+ import Ue from "@mui/material/CircularProgress";
17
18
  import { makeAutoObservable as ie, runInAction as Re } from "mobx";
18
- import { G as se, b as Ue, u as ze, a as Ke } from "./useCombineEvents-kNzLTWCp.mjs";
19
+ import { G as ce, a as ze, u as Ke, b as $e } from "./useCombineEvents-CRwX-qWE.mjs";
19
20
  import { B as de } from "./BeatApi-De2IaqH2.mjs";
20
- import $e from "@mui/material/Card";
21
- import Ye from "@mui/material/CardActions";
22
- import je from "@mui/material/CardContent";
23
- import Xe from "@mui/material/CardHeader";
21
+ import Ye from "@mui/material/Card";
22
+ import je from "@mui/material/CardActions";
23
+ import Xe from "@mui/material/CardContent";
24
+ import Qe from "@mui/material/CardHeader";
24
25
  const Ee = {
25
26
  featureVersion: "spendVsIncomeTrends"
26
27
  };
27
- class Qe {
28
- copyApi = new se("/", "");
28
+ class qe {
29
+ copyApi = new ce("/", "");
29
30
  copyObject = {};
30
31
  namespace = "experiences";
31
32
  translationKey = "micro_insights";
@@ -36,7 +37,7 @@ class Qe {
36
37
  // DEPRECATED: Initialize api in constructor and use loadCopy instead
37
38
  // TODO: Remove this function
38
39
  initialize = async (o, t) => {
39
- this.copyApi = new se(o, t), await this.loadCopy();
40
+ this.copyApi = new ce(o, t), await this.loadCopy();
40
41
  };
41
42
  loadCopy = async () => {
42
43
  const o = await this.copyApi.getGlobalCopy(this.namespace, this.translationKey);
@@ -71,46 +72,47 @@ const oe = {
71
72
  WeeklyNewMerchantsV2: "WeeklyNewMerchantsV2",
72
73
  MonthlySpendComparison: "MonthlySpendComparison",
73
74
  MonthlySpendToIncomeComparison: "MonthlySpendToIncomeComparison"
74
- }, y = window?.app?.clientConfig?.microwidget_instance_id || "", he = {
75
+ }, v = window?.app?.clientConfig?.microwidget_instance_id || "", he = {
75
76
  INSIGHTS_MICRO_WIDGET: "/micro-insights-carousel"
76
- }, ge = (i) => `on${i}Click`, Ie = (i) => `on${i}View`, ve = (i) => `on${i}ViewFirstTime`, le = (i) => i.replace(/([a-z])([A-Z])/g, "$1 $2"), qe = () => Object.values(oe).reduce(
77
+ }, ge = (i) => `on${i}Click`, Ie = (i) => `on${i}View`, ye = (i) => `on${i}ViewFirstTime`, le = (i) => i.replace(/([a-z])([A-Z])/g, "$1 $2"), Je = () => Object.values(oe).reduce(
77
78
  (i, o) => ({
78
79
  ...i,
79
80
  [ge(o)]: {
80
81
  action: L.MICRO_BEAT_CLICKED,
81
- category: D.BEAT_INTERACTION,
82
+ category: x.BEAT_INTERACTION,
82
83
  label: le(o),
83
- value: y
84
+ value: v
84
85
  }
85
86
  }),
86
87
  {}
87
- ), Je = () => Object.values(oe).reduce(
88
+ ), et = () => Object.values(oe).reduce(
88
89
  (i, o) => ({
89
90
  ...i,
90
91
  [Ie(o)]: {
91
92
  action: L.MICRO_BEAT_DISPLAYED,
92
- category: D.BEAT_INTERACTION,
93
+ category: x.BEAT_INTERACTION,
93
94
  label: le(o),
94
- value: y
95
+ value: v
95
96
  }
96
97
  }),
97
98
  {}
98
- ), et = () => Object.values(oe).reduce(
99
+ ), tt = () => Object.values(oe).reduce(
99
100
  (i, o) => ({
100
101
  ...i,
101
- [ve(o)]: {
102
+ [ye(o)]: {
102
103
  action: L.MICRO_BEAT_DISPLAYED_FIRST_TIME,
103
- category: D.BEAT_INTERACTION,
104
+ category: x.BEAT_INTERACTION,
104
105
  label: le(o),
105
- value: y
106
+ value: v
106
107
  }
107
108
  }),
108
109
  {}
109
- ), x = {
110
+ ), D = {
111
+ CARD: "Card",
110
112
  CAROUSEL_CONTROL: "Carousel Control",
111
113
  MICRO_WIDGET: "Micro Widget",
112
114
  VIEW_MORE: "View More"
113
- }, D = {
115
+ }, x = {
114
116
  MICRO_WIDGET_INTERACTION: "Micro Widget Interaction",
115
117
  BEAT_INTERACTION: "Beat Interaction"
116
118
  }, S = {
@@ -120,7 +122,7 @@ const oe = {
120
122
  ON_CAROUSEL_FORWARD_SWIPE: "onCarouselForwardSwipe",
121
123
  ON_NO_RELEVANT_INSIGHTS_CLICKED: "onNoRelevantInsightsClicked",
122
124
  ON_VIEW_MORE_CLICKED: "onViewMoreClicked"
123
- }, ye = {
125
+ }, ve = {
124
126
  ON_VIEW_MORE_VIEWED: "onViewMoreCardView"
125
127
  }, L = {
126
128
  CONTROL_BACKWARD: "Control Backward",
@@ -136,75 +138,75 @@ const oe = {
136
138
  MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS: "Micro Widget Carousel No Relevant Insights"
137
139
  }, ue = {
138
140
  [H.MICRO_WIDGET_CAROUSEL]: {
139
- label: x.MICRO_WIDGET,
141
+ label: D.MICRO_WIDGET,
140
142
  name: H.MICRO_WIDGET_CAROUSEL,
141
143
  path: he.INSIGHTS_MICRO_WIDGET,
142
- value: y
144
+ value: v
143
145
  },
144
146
  // zero state
145
147
  [H.MICRO_WIDGET_CAROUSEL_ZERO_STATE]: {
146
- label: x.MICRO_WIDGET,
148
+ label: D.MICRO_WIDGET,
147
149
  name: H.MICRO_WIDGET_CAROUSEL_ZERO_STATE,
148
150
  path: he.INSIGHTS_MICRO_WIDGET,
149
- value: y
151
+ value: v
150
152
  },
151
153
  // no relevant cards
152
154
  [H.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS]: {
153
- label: x.MICRO_WIDGET,
155
+ label: D.MICRO_WIDGET,
154
156
  name: H.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS,
155
157
  path: "/micro-widget",
156
- value: y
158
+ value: v
157
159
  }
158
160
  }, pe = {
159
161
  // carousel control interaction events - clicks and swipes
160
162
  [S.ON_CAROUSEL_BACK_CLICK]: {
161
163
  action: L.CONTROL_BACKWARD,
162
- category: D.MICRO_WIDGET_INTERACTION,
163
- label: x.CAROUSEL_CONTROL,
164
- value: y
164
+ category: x.MICRO_WIDGET_INTERACTION,
165
+ label: D.CAROUSEL_CONTROL,
166
+ value: v
165
167
  },
166
168
  [S.ON_CAROUSEL_FORWARD_CLICK]: {
167
169
  action: L.CONTROL_FORWARD,
168
- category: D.MICRO_WIDGET_INTERACTION,
169
- label: x.CAROUSEL_CONTROL,
170
- value: y
170
+ category: x.MICRO_WIDGET_INTERACTION,
171
+ label: D.CAROUSEL_CONTROL,
172
+ value: v
171
173
  },
172
174
  [S.ON_CAROUSEL_BACK_SWIPE]: {
173
175
  action: L.SWIPE_BACKWARD,
174
- category: D.MICRO_WIDGET_INTERACTION,
175
- label: x.CAROUSEL_CONTROL,
176
- value: y
176
+ category: x.MICRO_WIDGET_INTERACTION,
177
+ label: D.CAROUSEL_CONTROL,
178
+ value: v
177
179
  },
178
180
  [S.ON_CAROUSEL_FORWARD_SWIPE]: {
179
181
  action: L.SWIPE_FORWARD,
180
- category: D.MICRO_WIDGET_INTERACTION,
181
- label: x.CAROUSEL_CONTROL,
182
- value: y
182
+ category: x.MICRO_WIDGET_INTERACTION,
183
+ label: D.CAROUSEL_CONTROL,
184
+ value: v
183
185
  },
184
186
  // read more card events
185
187
  [S.ON_VIEW_MORE_CLICKED]: {
186
188
  action: L.MICRO_BEAT_CLICKED,
187
- category: D.BEAT_INTERACTION,
188
- label: x.VIEW_MORE,
189
- value: y
189
+ category: x.BEAT_INTERACTION,
190
+ label: D.VIEW_MORE,
191
+ value: v
190
192
  },
191
- [ye.ON_VIEW_MORE_VIEWED]: {
193
+ [ve.ON_VIEW_MORE_VIEWED]: {
192
194
  action: L.MICRO_BEAT_DISPLAYED,
193
- category: D.BEAT_INTERACTION,
194
- label: x.VIEW_MORE,
195
- value: y
195
+ category: x.BEAT_INTERACTION,
196
+ label: D.VIEW_MORE,
197
+ value: v
196
198
  },
197
- ...qe(),
198
199
  ...Je(),
199
- ...et()
200
+ ...et(),
201
+ ...tt()
200
202
  }, _e = async (i, o) => !o || !pe[i] ? null : o.sendAnalyticEvent(pe[i]).then((t) => t).catch((t) => {
201
203
  throw t;
202
- }), fe = async (i, o) => !o || !ue[i] ? null : o.sendAnalyticsPageview(ue[i]).then((t) => t).catch((t) => {
204
+ }), Ce = async (i, o) => !o || !ue[i] ? null : o.sendAnalyticsPageview(ue[i]).then((t) => t).catch((t) => {
203
205
  throw t;
204
206
  });
205
- class tt {
207
+ class it {
206
208
  onAnalyticEvent = _e;
207
- onAnalyticPageView = fe;
209
+ onAnalyticPageView = Ce;
208
210
  beatApi = new de("/", "");
209
211
  constructor() {
210
212
  ie(this);
@@ -215,7 +217,7 @@ class tt {
215
217
  throw a.status === 401 && l(), a;
216
218
  });
217
219
  }, this.onAnalyticPageView = (n, r) => {
218
- fe(n, r).then((a) => a).catch((a) => {
220
+ Ce(n, r).then((a) => a).catch((a) => {
219
221
  throw a.status === 401 && l(), a;
220
222
  });
221
223
  }, this.beatApi = new de(o, t);
@@ -227,7 +229,7 @@ class tt {
227
229
  this.beatApi.updateOffer(o);
228
230
  };
229
231
  }
230
- class it {
232
+ class ot {
231
233
  copyStore;
232
234
  endpoint = "/";
233
235
  insightsMicroWidgetStore;
@@ -235,40 +237,40 @@ class it {
235
237
  token = "";
236
238
  isInitialized = !1;
237
239
  constructor() {
238
- this.copyStore = new Qe(), this.insightsMicroWidgetStore = new tt(), ie(this);
240
+ this.copyStore = new qe(), this.insightsMicroWidgetStore = new it(), ie(this);
239
241
  }
240
242
  initialize = async (o, t, l) => {
241
243
  await this.copyStore.initialize(o, t), await this.insightsMicroWidgetStore.initialize(o, t, l);
242
- const n = await Ue(o, t, "1.0.0", "Micro Insights Carousel");
244
+ const n = await ze(o, t, "1.0.0", "Micro Insights Carousel");
243
245
  Re(() => {
244
246
  this.session = n, this.isInitialized = !0;
245
247
  });
246
248
  };
247
249
  }
248
- const U = u.createContext(null), ot = ({
250
+ const U = u.createContext(null), lt = ({
249
251
  onEvent: i,
250
252
  onPageview: o,
251
253
  store: t,
252
254
  children: l
253
- }) => /* @__PURE__ */ e(U.Provider, { value: { onEvent: i, onPageview: o, store: t, children: l }, children: l }), X = u.forwardRef(function({
255
+ }) => /* @__PURE__ */ e(U.Provider, { value: { onEvent: i, onPageview: o, store: t, children: l }, children: l }), j = u.forwardRef(function({
254
256
  actionText: o,
255
257
  ariaLabel: t,
256
258
  backgroundColor: l,
257
259
  description: n,
258
260
  heightOverrides: r,
259
261
  icon: a,
260
- isActiveCard: s,
262
+ isActiveCard: c,
261
263
  isZeroState: h,
262
- onCardClick: f = () => {
264
+ onCardClick: C = () => {
263
265
  },
264
266
  showIcon: p,
265
267
  style: d = {},
266
268
  title: E,
267
- variant: c,
268
- widthOverrides: C
269
+ variant: s,
270
+ widthOverrides: f
269
271
  }, _) {
270
- const R = j(), [O, I] = u.useState(!1), { cardStyle: m, linkTextStyle: T } = d, v = c ? m : { border: "none", boxShadow: "none", ...m }, M = /* @__PURE__ */ e(
271
- Fe,
272
+ const R = te(), [O, I] = u.useState(!1), { cardStyle: m, linkTextStyle: T } = d, y = s ? m : { border: "none", boxShadow: "none", ...m }, M = /* @__PURE__ */ e(
273
+ Be,
272
274
  {
273
275
  className: "mx-micro-card-description",
274
276
  color: "text.primary",
@@ -296,7 +298,7 @@ const U = u.createContext(null), ot = ({
296
298
  return /* @__PURE__ */ e(
297
299
  Z,
298
300
  {
299
- "aria-hidden": !s,
301
+ "aria-hidden": !c,
300
302
  "aria-label": t,
301
303
  "aria-labelledby": "divButton",
302
304
  "aria-roledescription": "slide",
@@ -304,16 +306,16 @@ const U = u.createContext(null), ot = ({
304
306
  role: "group",
305
307
  sx: {
306
308
  height: "100%",
307
- minWidth: C ? `${C}px` : "100%",
309
+ minWidth: f ? `${f}px` : "100%",
308
310
  fontFamily: R.typography.fontFamily
309
311
  },
310
312
  children: /* @__PURE__ */ e(
311
313
  Z,
312
314
  {
313
- "aria-hidden": !s,
315
+ "aria-hidden": !c,
314
316
  "aria-label": t,
315
317
  id: "divButton",
316
- onClick: () => f(),
318
+ onClick: () => C(),
317
319
  onKeyDown: () => I(!1),
318
320
  onKeyUp: () => I(!0),
319
321
  ref: _,
@@ -323,9 +325,9 @@ const U = u.createContext(null), ot = ({
323
325
  borderRadius: "8px",
324
326
  height: "100%"
325
327
  },
326
- tabIndex: s ? 0 : -1,
328
+ tabIndex: c ? 0 : -1,
327
329
  children: /* @__PURE__ */ e(
328
- $e,
330
+ Ye,
329
331
  {
330
332
  "aria-roledescription": "slide",
331
333
  className: "mx-micro-card",
@@ -336,12 +338,12 @@ const U = u.createContext(null), ot = ({
336
338
  cursor: "pointer",
337
339
  height: r ? "100%" : 124,
338
340
  p: 16,
339
- ...v,
341
+ ...y,
340
342
  "& .MuiCardHeader-avatar": {
341
343
  mr: "8px"
342
344
  }
343
345
  },
344
- variant: c,
346
+ variant: s,
345
347
  children: /* @__PURE__ */ g(
346
348
  k,
347
349
  {
@@ -351,7 +353,7 @@ const U = u.createContext(null), ot = ({
351
353
  },
352
354
  children: [
353
355
  /* @__PURE__ */ e(
354
- Xe,
356
+ Qe,
355
357
  {
356
358
  avatar: p && a,
357
359
  subheader: h && M,
@@ -360,9 +362,9 @@ const U = u.createContext(null), ot = ({
360
362
  titleTypographyProps: { fontSize: 15, fontWeight: 600, variant: "h3" }
361
363
  }
362
364
  ),
363
- /* @__PURE__ */ e(je, { sx: { p: 0 }, children: !h && M }),
365
+ /* @__PURE__ */ e(Xe, { sx: { p: 0 }, children: !h && M }),
364
366
  !!o && /* @__PURE__ */ e(
365
- Ye,
367
+ je,
366
368
  {
367
369
  sx: {
368
370
  mt: "auto",
@@ -393,13 +395,13 @@ const U = u.createContext(null), ot = ({
393
395
  )
394
396
  }
395
397
  );
396
- }), lt = ({ beat: i }) => {
397
- const { primary_category_guid: o, category_guids: t } = i, l = o || t?.[0] || Pe.UNCATEGORIZED;
398
- return /* @__PURE__ */ e(Be, { categoryGuid: l, size: 16, sx: { minWidth: 16 } });
399
- }, nt = ({ beat: i }) => {
398
+ }), nt = ({ beat: i }) => {
399
+ const { primary_category_guid: o, category_guids: t } = i, l = o || t?.[0] || be.UNCATEGORIZED;
400
+ return /* @__PURE__ */ e(Ze, { categoryGuid: l, size: 16, sx: { minWidth: 16 } });
401
+ }, rt = ({ beat: i }) => {
400
402
  const { category_guids: o, merchant_guids: t, primary_category_guid: l, primary_merchant_guid: n } = i;
401
403
  return /* @__PURE__ */ e(
402
- Ze,
404
+ Pe,
403
405
  {
404
406
  categoryGuid: l || o && o[0] || "",
405
407
  merchantGuid: n || t[0],
@@ -410,7 +412,7 @@ const U = u.createContext(null), ot = ({
410
412
  }
411
413
  }
412
414
  );
413
- }, rt = ({
415
+ }, at = ({
414
416
  color: i = "currentColor",
415
417
  height: o,
416
418
  size: t = 16,
@@ -436,16 +438,16 @@ const U = u.createContext(null), ot = ({
436
438
  }
437
439
  )
438
440
  }
439
- ), at = (i) => i ? i.data ? i.data.map((o) => {
441
+ ), st = (i) => i ? i.data ? i.data.map((o) => {
440
442
  const t = {};
441
443
  return i.names?.map((l, n) => {
442
444
  t[l] = o[n];
443
445
  }), t;
444
446
  }) : [] : [], ct = (i, o) => {
445
- const t = at(i), l = t.length / 2, n = t.slice(0, l), r = t.slice(l);
447
+ const t = st(i), l = t.length / 2, n = t.slice(0, l), r = t.slice(l);
446
448
  return !n.length || !r.length ? o.palette.primary.main : n[0].amount > r[0].amount ? o.palette.error.main : n[0].amount < r[0].amount ? o.palette.success.main : o.palette.primary.main;
447
- }, st = ({ beat: i }) => {
448
- const o = j(), t = ct(i.data_series, o);
449
+ }, dt = ({ beat: i }) => {
450
+ const o = te(), t = ct(i.data_series, o);
449
451
  return /* @__PURE__ */ e(Ve, { sx: { color: t } });
450
452
  }, Se = () => /* @__PURE__ */ g("svg", { fill: "none", height: "36", viewBox: "0 0 40 36", width: "40", xmlns: "http://www.w3.org/2000/svg", children: [
451
453
  /* @__PURE__ */ e(
@@ -1228,9 +1230,9 @@ const U = u.createContext(null), ot = ({
1228
1230
  }
1229
1231
  )
1230
1232
  ] })
1231
- ] }), dt = ({ beat: i }) => {
1233
+ ] }), Et = ({ beat: i }) => {
1232
1234
  const { icon_type: o, icon_color: t } = i;
1233
- return o === 0 ? /* @__PURE__ */ e(ae, { filled: !0, sx: { color: (l) => t || l.palette.primary.main } }) : o === 1 ? /* @__PURE__ */ e(lt, { beat: i }) : o === 2 ? /* @__PURE__ */ e(nt, { beat: i }) : o === 3 ? /* @__PURE__ */ e(st, { beat: i }) : o === 5 ? /* @__PURE__ */ e(Ne, {}) : /* @__PURE__ */ e(
1235
+ return o === 0 ? /* @__PURE__ */ e(ae, { filled: !0, sx: { color: (l) => t || l.palette.primary.main } }) : o === 1 ? /* @__PURE__ */ e(nt, { beat: i }) : o === 2 ? /* @__PURE__ */ e(rt, { beat: i }) : o === 3 ? /* @__PURE__ */ e(dt, { beat: i }) : o === 5 ? /* @__PURE__ */ e(Ne, {}) : /* @__PURE__ */ e(
1234
1236
  ae,
1235
1237
  {
1236
1238
  filled: !0,
@@ -1244,7 +1246,7 @@ const U = u.createContext(null), ot = ({
1244
1246
  if (!i)
1245
1247
  throw new Error("useCopyStore() must be used within the InsightsMicroWidgetDataProvider");
1246
1248
  return i.store.copyStore;
1247
- }, Et = () => {
1249
+ }, ht = () => {
1248
1250
  const i = u.useContext(U);
1249
1251
  if (!i?.store?.insightsMicroWidgetStore)
1250
1252
  throw new Error(
@@ -1261,12 +1263,12 @@ const U = u.createContext(null), ot = ({
1261
1263
  if (!i)
1262
1264
  throw new Error("usePageview() must be used within the InsightsMicroWidgetDataProvider");
1263
1265
  return { onPageview: i.onPageview };
1264
- }, ht = {
1266
+ }, ut = {
1265
1267
  LARGE: 180,
1266
1268
  STANDARD: 154,
1267
1269
  XLARGE: 200,
1268
1270
  XXLARGE: 248
1269
- }, ut = 50, Ae = 1, pt = ({
1271
+ }, pt = 50, Ae = 1, _t = ({
1270
1272
  ariaLabel: i,
1271
1273
  backgroundColor: o,
1272
1274
  beat: t,
@@ -1274,25 +1276,25 @@ const U = u.createContext(null), ot = ({
1274
1276
  heightOverrides: n,
1275
1277
  index: r,
1276
1278
  isActiveCard: a,
1277
- onCardClick: s,
1279
+ onCardClick: c,
1278
1280
  posthog: h,
1279
- showIcon: f,
1281
+ showIcon: C,
1280
1282
  variant: p,
1281
1283
  widthOverrides: d
1282
1284
  }) => {
1283
- const { ref: E, inView: c } = me({
1285
+ const { ref: E, inView: s } = me({
1284
1286
  threshold: Ae
1285
- }), { cardsCopy: C } = V(), { onEvent: _ } = z(), { updateBeat: R, updateOffer: O } = Et();
1286
- te(() => {
1287
- c && (t.has_been_displayed ? _(Ie(t.template)) : (t.guid.startsWith("OFR") ? O({
1287
+ }), { cardsCopy: f } = V(), { onEvent: _ } = z(), { updateBeat: R, updateOffer: O } = ht();
1288
+ ee(() => {
1289
+ s && (t.has_been_displayed ? _(Ie(t.template)) : (t.guid.startsWith("OFR") ? O({
1288
1290
  ...t,
1289
1291
  has_been_displayed: !0
1290
1292
  }) : R({
1291
1293
  ...t,
1292
1294
  has_been_displayed: !0
1293
- }), _(ve(t.template))));
1294
- }, [c]), te(() => {
1295
- if (c && t)
1295
+ }), _(ye(t.template))));
1296
+ }, [s]), ee(() => {
1297
+ if (s && t)
1296
1298
  if (t.template === "MarketingOffer") {
1297
1299
  const m = t;
1298
1300
  h?.capture("viewed_messaging_insight", {
@@ -1306,9 +1308,9 @@ const U = u.createContext(null), ot = ({
1306
1308
  template: t.template,
1307
1309
  position: r
1308
1310
  });
1309
- }, [t, r, c]);
1311
+ }, [t, r, s]);
1310
1312
  const I = () => {
1311
- if (s && s(t), _(ge(t.template)), t.template === "MarketingOffer") {
1313
+ if (c && c(t), _(ge(t.template)), t.template === "MarketingOffer") {
1312
1314
  const m = t;
1313
1315
  h?.capture("clicked_messaging_insight", {
1314
1316
  template: t.template,
@@ -1323,26 +1325,26 @@ const U = u.createContext(null), ot = ({
1323
1325
  });
1324
1326
  };
1325
1327
  return /* @__PURE__ */ e(
1326
- X,
1328
+ j,
1327
1329
  {
1328
- actionText: t.micro_call_to_action || C.micro_card_cta,
1330
+ actionText: t.micro_call_to_action || f.micro_card_cta,
1329
1331
  ariaLabel: i,
1330
1332
  backgroundColor: o,
1331
1333
  description: t?.html_micro_description && t?.html_micro_description.length > 0 ? t.html_micro_description : t.html_description,
1332
1334
  heightOverrides: n,
1333
- icon: /* @__PURE__ */ e(dt, { beat: t }),
1335
+ icon: /* @__PURE__ */ e(Et, { beat: t }),
1334
1336
  isActiveCard: a,
1335
1337
  onCardClick: I,
1336
1338
  posthog: h,
1337
1339
  ref: E,
1338
1340
  showCTAColocatedWithText: l,
1339
- showIcon: f,
1341
+ showIcon: C,
1340
1342
  title: t.micro_title && t.micro_title.length > 0 ? t.micro_title : t.title,
1341
1343
  variant: p,
1342
1344
  widthOverrides: d
1343
1345
  }
1344
1346
  );
1345
- }, _t = ({
1347
+ }, Ct = ({
1346
1348
  currentBeatIndex: i,
1347
1349
  numBeats: o,
1348
1350
  onNextClick: t,
@@ -1350,9 +1352,9 @@ const U = u.createContext(null), ot = ({
1350
1352
  scrollRightBoundary: n,
1351
1353
  scrollX: r,
1352
1354
  shouldApplyDotAnimation: a = !1,
1353
- visibleCardsCount: s = 1
1355
+ visibleCardsCount: c = 1
1354
1356
  }) => {
1355
- const h = j(), { carouselCopy: f } = V(), p = Math.floor(r) > n || i - s + 1 === 0, d = r < 0 || o - 1 === i, E = h.palette.grey[500], c = h.palette.primary.main;
1357
+ const h = Fe(), { carouselCopy: C } = V(), p = Math.floor(r) > n || i - c + 1 === 0, d = r < 0 || o - 1 === i, E = h.palette.grey[500], s = h.palette.primary.main;
1356
1358
  return /* @__PURE__ */ g(
1357
1359
  k,
1358
1360
  {
@@ -1369,30 +1371,30 @@ const U = u.createContext(null), ot = ({
1369
1371
  },
1370
1372
  children: [
1371
1373
  /* @__PURE__ */ e(
1372
- ce,
1374
+ se,
1373
1375
  {
1374
1376
  "aria-disabled": p,
1375
- "aria-label": f.previous_insight_cta_aria,
1377
+ "aria-label": C.previous_insight_cta_aria,
1376
1378
  disabled: p,
1377
1379
  onClick: l,
1378
1380
  children: /* @__PURE__ */ e(
1379
1381
  He,
1380
1382
  {
1381
- sx: {
1382
- color: p ? E : c
1383
+ style: {
1384
+ color: p ? E : s
1383
1385
  }
1384
1386
  }
1385
1387
  )
1386
1388
  }
1387
1389
  ),
1388
- Array.from({ length: o }).map((C, _) => {
1390
+ Array.from({ length: o }).map((f, _) => {
1389
1391
  const R = _ === i;
1390
1392
  return /* @__PURE__ */ e(
1391
1393
  Z,
1392
1394
  {
1393
1395
  className: "mx-insights-micro-carousel-dots",
1394
1396
  sx: {
1395
- bgcolor: R ? c : E,
1397
+ bgcolor: R ? s : E,
1396
1398
  height: 8,
1397
1399
  mr: 8,
1398
1400
  // existing comment from meganthan "we were using `gap` instead of margin, but it doesn't work in safari browsers older than iOS 14.1"
@@ -1412,17 +1414,17 @@ const U = u.createContext(null), ot = ({
1412
1414
  );
1413
1415
  }),
1414
1416
  /* @__PURE__ */ e(
1415
- ce,
1417
+ se,
1416
1418
  {
1417
1419
  "aria-disabled": d,
1418
- "aria-label": f.next_insight_cta_aria,
1420
+ "aria-label": C.next_insight_cta_aria,
1419
1421
  disabled: d,
1420
1422
  onClick: t,
1421
1423
  children: /* @__PURE__ */ e(
1422
- Ce,
1424
+ fe,
1423
1425
  {
1424
- sx: {
1425
- color: d ? E : c
1426
+ style: {
1427
+ color: d ? E : s
1426
1428
  }
1427
1429
  }
1428
1430
  )
@@ -1439,25 +1441,25 @@ const U = u.createContext(null), ot = ({
1439
1441
  heightOverrides: n,
1440
1442
  onCardClick: r,
1441
1443
  posthog: a,
1442
- showIcon: s,
1444
+ showIcon: c,
1443
1445
  variant: h
1444
1446
  }) => {
1445
- const { carouselCopy: f } = V(), p = {
1447
+ const { carouselCopy: C } = V(), p = {
1446
1448
  showCTAColocatedWithText: l,
1447
1449
  heightOverrides: n,
1448
1450
  posthog: a,
1449
- showIcon: s,
1451
+ showIcon: c,
1450
1452
  variant: h
1451
1453
  };
1452
- return /* @__PURE__ */ g(xe, { children: [
1454
+ return /* @__PURE__ */ g(De, { children: [
1453
1455
  o.map((d, E) => {
1454
- const c = E + 1, C = o.length + 1, _ = be(
1455
- f.card_position_in_carousel_aria,
1456
- c.toString(),
1457
- C.toString()
1456
+ const s = E + 1, f = o.length + 1, _ = Ge(
1457
+ C.card_position_in_carousel_aria,
1458
+ s.toString(),
1459
+ f.toString()
1458
1460
  ), R = d.micro_title && d.micro_title.length > 0, O = d.micro_description && d.micro_description.length > 0, I = R ? d.micro_title : d.title, m = O ? d.micro_description : d.description;
1459
1461
  return /* @__PURE__ */ e(
1460
- pt,
1462
+ _t,
1461
1463
  {
1462
1464
  ariaLabel: `${_}: ${I}, ${m}`,
1463
1465
  beat: d,
@@ -1471,7 +1473,7 @@ const U = u.createContext(null), ot = ({
1471
1473
  );
1472
1474
  }),
1473
1475
  /* @__PURE__ */ e(
1474
- Mt,
1476
+ At,
1475
1477
  {
1476
1478
  isActiveCard: i === o.length,
1477
1479
  onCardClick: r,
@@ -1480,7 +1482,7 @@ const U = u.createContext(null), ot = ({
1480
1482
  }
1481
1483
  )
1482
1484
  ] });
1483
- }, Ct = ({
1485
+ }, mt = ({
1484
1486
  analyticsMetadata: i,
1485
1487
  allowSingleCardPeeking: o = !1,
1486
1488
  beats: t = [],
@@ -1488,18 +1490,18 @@ const U = u.createContext(null), ot = ({
1488
1490
  heightOverrides: n,
1489
1491
  onCardClick: r,
1490
1492
  posthog: a,
1491
- showCarouselControls: s,
1493
+ showCarouselControls: c,
1492
1494
  showIcon: h,
1493
- showWithMargin: f = !0,
1495
+ showWithMargin: C = !0,
1494
1496
  variant: p,
1495
1497
  widthOverrides: d,
1496
1498
  visibleCardsCount: E = 1
1497
1499
  // Default to 1 card visible
1498
1500
  }) => {
1499
- const c = u.useRef(null), C = u.useRef(null), [_, R] = u.useState(0), [O, I] = u.useState(null), [m, T] = u.useState(null), [v, M] = u.useState(null), { carouselCopy: W } = V(), { onEvent: F } = z();
1501
+ const s = u.useRef(null), f = u.useRef(null), [_, R] = u.useState(0), [O, I] = u.useState(null), [m, T] = u.useState(null), [y, M] = u.useState(null), { carouselCopy: W } = V(), { onEvent: F } = z();
1500
1502
  u.useEffect(() => {
1501
- if (c.current && !o) {
1502
- const A = c.current.offsetWidth, b = 8;
1503
+ if (s.current && !o) {
1504
+ const A = s.current.offsetWidth, b = 8;
1503
1505
  let B;
1504
1506
  if (E > 1) {
1505
1507
  const ne = (A - (E - 1) * b) / E / 3;
@@ -1508,8 +1510,8 @@ const U = u.createContext(null), ot = ({
1508
1510
  B = A;
1509
1511
  M(B);
1510
1512
  }
1511
- }, [E, c.current?.offsetWidth]), u.useEffect(() => {
1512
- const A = C.current?.offsetWidth;
1513
+ }, [E, s.current?.offsetWidth]), u.useEffect(() => {
1514
+ const A = f.current?.offsetWidth;
1513
1515
  if (typeof A == "number" && o) {
1514
1516
  const b = (G) => {
1515
1517
  const re = [
@@ -1523,42 +1525,42 @@ const U = u.createContext(null), ot = ({
1523
1525
  };
1524
1526
  M(b(A));
1525
1527
  const B = () => {
1526
- const G = C.current?.offsetWidth;
1528
+ const G = f.current?.offsetWidth;
1527
1529
  typeof G == "number" && M(b(G));
1528
1530
  };
1529
1531
  return window.addEventListener("resize", B), () => {
1530
1532
  window.removeEventListener("resize", B);
1531
1533
  };
1532
1534
  }
1533
- }, [o, C]);
1535
+ }, [o, f]);
1534
1536
  const K = () => {
1535
- F(S.ON_CAROUSEL_FORWARD_CLICK, i), c.current && v && c.current.scrollTo({
1536
- left: _ + v + 8,
1537
+ F(S.ON_CAROUSEL_FORWARD_CLICK, i), s.current && y && s.current.scrollTo({
1538
+ left: _ + y + 8,
1537
1539
  top: 0,
1538
1540
  behavior: "smooth"
1539
1541
  });
1540
1542
  }, $ = () => {
1541
- F(S.ON_CAROUSEL_BACK_CLICK, i), c.current && v && c.current.scrollTo({
1542
- left: Math.max(0, _ - (v + 8)),
1543
+ F(S.ON_CAROUSEL_BACK_CLICK, i), s.current && y && s.current.scrollTo({
1544
+ left: Math.max(0, _ - (y + 8)),
1543
1545
  top: 0,
1544
1546
  behavior: "smooth"
1545
1547
  });
1548
+ }, X = () => {
1549
+ s.current && R(s.current.scrollLeft);
1546
1550
  }, Q = () => {
1547
- c.current && R(c.current.scrollLeft);
1548
- }, q = () => {
1549
1551
  if (!m || !O) return;
1550
- m - O > ut ? F(S.ON_CAROUSEL_FORWARD_SWIPE, i) : F(S.ON_CAROUSEL_BACK_SWIPE, i);
1551
- }, J = (A) => {
1552
+ m - O > pt ? F(S.ON_CAROUSEL_FORWARD_SWIPE, i) : F(S.ON_CAROUSEL_BACK_SWIPE, i);
1553
+ }, q = (A) => {
1552
1554
  I(A.targetTouches[0].clientX);
1553
1555
  }, Y = (A) => {
1554
1556
  I(null), T(A.targetTouches[0].clientX);
1555
- }, w = v ? Math.round(_ / (v + 8)) : 0, We = c.current ? c.current.scrollWidth - c.current.offsetWidth : 0;
1557
+ }, w = y ? Math.round(_ / (y + 8)) : 0, We = s.current ? s.current.scrollWidth - s.current.offsetWidth : 0;
1556
1558
  return /* @__PURE__ */ g(
1557
1559
  k,
1558
1560
  {
1559
1561
  "aria-label": W.carousel_title,
1560
1562
  "aria-roledescription": "carousel",
1561
- ref: C,
1563
+ ref: f,
1562
1564
  role: "group/region",
1563
1565
  sx: {
1564
1566
  alignItems: "center",
@@ -1571,18 +1573,18 @@ const U = u.createContext(null), ot = ({
1571
1573
  k,
1572
1574
  {
1573
1575
  direction: "row",
1574
- onScroll: Q,
1575
- onTouchEnd: q,
1576
- onTouchMove: J,
1576
+ onScroll: X,
1577
+ onTouchEnd: Q,
1578
+ onTouchMove: q,
1577
1579
  onTouchStart: Y,
1578
- ref: c,
1580
+ ref: s,
1579
1581
  sx: {
1580
1582
  alignItems: "center",
1581
1583
  height: n && "100%",
1582
1584
  gap: 8,
1583
1585
  listStyleType: "none",
1584
1586
  m: 0,
1585
- maxWidth: f ? "calc(100% - 32px)" : "100%",
1587
+ maxWidth: C ? "calc(100% - 32px)" : "100%",
1586
1588
  overflowX: "auto",
1587
1589
  overflowY: "hidden",
1588
1590
  p: 0,
@@ -1598,7 +1600,7 @@ const U = u.createContext(null), ot = ({
1598
1600
  {
1599
1601
  activeCardIndex: w,
1600
1602
  beats: t,
1601
- cardWidth: v,
1603
+ cardWidth: y,
1602
1604
  heightOverrides: n,
1603
1605
  onCardClick: r,
1604
1606
  posthog: a,
@@ -1609,8 +1611,8 @@ const U = u.createContext(null), ot = ({
1609
1611
  )
1610
1612
  }
1611
1613
  ),
1612
- s && /* @__PURE__ */ e(
1613
- _t,
1614
+ c && /* @__PURE__ */ e(
1615
+ Ct,
1614
1616
  {
1615
1617
  currentBeatIndex: w + E - 1,
1616
1618
  numBeats: t.length + 1,
@@ -1625,7 +1627,7 @@ const U = u.createContext(null), ot = ({
1625
1627
  ]
1626
1628
  }
1627
1629
  );
1628
- }, mt = P(Ct), Rt = ({
1630
+ }, Rt = P(mt), gt = ({
1629
1631
  analyticsMetadata: i,
1630
1632
  onCardClick: o,
1631
1633
  posthog: t,
@@ -1649,8 +1651,8 @@ const U = u.createContext(null), ot = ({
1649
1651
  /* @__PURE__ */ e(
1650
1652
  Le,
1651
1653
  {
1652
- sx: (s) => ({
1653
- color: s.palette.primary.main,
1654
+ sx: (c) => ({
1655
+ color: c.palette.primary.main,
1654
1656
  fontSize: 18,
1655
1657
  fontWeight: 700,
1656
1658
  lineHeight: "24px"
@@ -1660,13 +1662,13 @@ const U = u.createContext(null), ot = ({
1660
1662
  }
1661
1663
  ),
1662
1664
  /* @__PURE__ */ e(
1663
- De,
1665
+ xe,
1664
1666
  {
1665
- endIcon: /* @__PURE__ */ e(Ce, { size: 20 }),
1667
+ endIcon: /* @__PURE__ */ e(fe, { size: 20 }),
1666
1668
  onClick: a,
1667
1669
  size: "small",
1668
- sx: (s) => ({
1669
- color: s.palette.primary.main
1670
+ sx: (c) => ({
1671
+ color: c.palette.primary.main
1670
1672
  }),
1671
1673
  variant: "text",
1672
1674
  children: n.view_all_insights_in_full_feed_cta_aria
@@ -1675,7 +1677,7 @@ const U = u.createContext(null), ot = ({
1675
1677
  ]
1676
1678
  }
1677
1679
  ) : /* @__PURE__ */ e(ke, {});
1678
- }, gt = P(Rt), It = ({
1680
+ }, It = P(gt), yt = ({
1679
1681
  heightOverrides: i,
1680
1682
  widthOverrides: o,
1681
1683
  children: t
@@ -1704,17 +1706,17 @@ const U = u.createContext(null), ot = ({
1704
1706
  showIcon: n,
1705
1707
  variant: r
1706
1708
  }) => {
1707
- const { cardsCopy: a } = V(), { onEvent: s } = z(), { onPageview: h } = Me();
1709
+ const { cardsCopy: a } = V(), { onEvent: c } = z(), { onPageview: h } = Me();
1708
1710
  u.useEffect(() => {
1709
1711
  h(H.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS);
1710
1712
  }, []);
1711
- const f = () => {
1712
- t && t(), s(S.ON_NO_RELEVANT_INSIGHTS_CLICKED), l?.capture("clicked_insight", {
1713
+ const C = () => {
1714
+ t && t(), c(S.ON_NO_RELEVANT_INSIGHTS_CLICKED), l?.capture("clicked_insight", {
1713
1715
  template: "no_relevant_insights"
1714
1716
  });
1715
1717
  };
1716
1718
  return /* @__PURE__ */ e(
1717
- X,
1719
+ j,
1718
1720
  {
1719
1721
  actionText: a.micro_card_cta,
1720
1722
  ariaLabel: i,
@@ -1722,7 +1724,7 @@ const U = u.createContext(null), ot = ({
1722
1724
  heightOverrides: o,
1723
1725
  icon: /* @__PURE__ */ e(Se, {}),
1724
1726
  isZeroState: !0,
1725
- onCardClick: f,
1727
+ onCardClick: C,
1726
1728
  posthog: l,
1727
1729
  showIcon: n,
1728
1730
  style: {
@@ -1734,7 +1736,7 @@ const U = u.createContext(null), ot = ({
1734
1736
  variant: r
1735
1737
  }
1736
1738
  );
1737
- }, jt = P(Oe), Te = ({
1739
+ }, Qt = P(Oe), Te = ({
1738
1740
  ariaLabel: i,
1739
1741
  heightOverrides: o,
1740
1742
  onCardClick: t,
@@ -1742,25 +1744,25 @@ const U = u.createContext(null), ot = ({
1742
1744
  showIcon: n,
1743
1745
  variant: r
1744
1746
  }) => {
1745
- const { onPageview: a } = Me(), { zeroStateCopy: s } = V();
1747
+ const { onPageview: a } = Me(), { zeroStateCopy: c } = V();
1746
1748
  return u.useEffect(() => {
1747
1749
  a(H.MICRO_WIDGET_CAROUSEL_ZERO_STATE);
1748
1750
  }, []), /* @__PURE__ */ e(
1749
- X,
1751
+ j,
1750
1752
  {
1751
1753
  ariaLabel: i,
1752
- description: s.carousel_zero_state_description,
1754
+ description: c.carousel_zero_state_description,
1753
1755
  heightOverrides: o,
1754
1756
  icon: /* @__PURE__ */ e(Se, {}),
1755
1757
  isZeroState: !0,
1756
1758
  onCardClick: t,
1757
1759
  posthog: l,
1758
1760
  showIcon: n,
1759
- title: s.carousel_zero_state_title,
1761
+ title: c.carousel_zero_state_title,
1760
1762
  variant: r
1761
1763
  }
1762
1764
  );
1763
- }, Xt = P(Te), vt = () => /* @__PURE__ */ e(
1765
+ }, qt = P(Te), vt = () => /* @__PURE__ */ e(
1764
1766
  Z,
1765
1767
  {
1766
1768
  sx: {
@@ -1770,9 +1772,9 @@ const U = u.createContext(null), ot = ({
1770
1772
  justifyContent: "center",
1771
1773
  width: "100%"
1772
1774
  },
1773
- children: /* @__PURE__ */ e(Ge, {})
1775
+ children: /* @__PURE__ */ e(Ue, {})
1774
1776
  }
1775
- ), N = new it(), yt = ({
1777
+ ), N = new ot(), St = ({
1776
1778
  allowSingleCardPeeking: i,
1777
1779
  areBeatsLoading: o,
1778
1780
  beats: t = [],
@@ -1781,17 +1783,17 @@ const U = u.createContext(null), ot = ({
1781
1783
  endpoint: n = "/",
1782
1784
  heightOverrides: r,
1783
1785
  logOutUser: a,
1784
- onCardClick: s = () => {
1786
+ onCardClick: c = () => {
1785
1787
  },
1786
1788
  onEvent: h = () => {
1787
1789
  },
1788
- onPageview: f = () => {
1790
+ onPageview: C = () => {
1789
1791
  },
1790
1792
  posthog: p,
1791
1793
  showBorder: d = !0,
1792
1794
  showCarouselControls: E,
1793
- showHeader: c,
1794
- showIcon: C,
1795
+ showHeader: s,
1796
+ showIcon: f,
1795
1797
  showWithMargin: _ = !0,
1796
1798
  token: R = "",
1797
1799
  userHasFullInsightFeedBeats: O,
@@ -1799,7 +1801,7 @@ const U = u.createContext(null), ot = ({
1799
1801
  visibleCardsCount: m = 1,
1800
1802
  widthOverrides: T
1801
1803
  }) => {
1802
- const [v, M] = ee("STANDARD"), [W, F] = ee(!1), [K, $] = ee(!1), Q = ze([h], N), q = Ke([f], N);
1804
+ const [y, M] = J("STANDARD"), [W, F] = J(!1), [K, $] = J(!1), X = Ke([h], N), Q = $e([C], N);
1803
1805
  u.useEffect(() => {
1804
1806
  !N.isInitialized && !K && (N.initialize(n, R, a).catch(() => $(!1)), $(!0));
1805
1807
  }, [n, R, a, N.isInitialized, K]), u.useEffect(() => {
@@ -1808,36 +1810,36 @@ const U = u.createContext(null), ot = ({
1808
1810
  }, [window.innerHeight]), u.useEffect(() => {
1809
1811
  F(!o && N.isInitialized);
1810
1812
  }, [o, N.isInitialized]);
1811
- const J = {
1813
+ const q = {
1812
1814
  showCTAColocatedWithText: l,
1813
1815
  heightOverrides: r,
1814
- onCardClick: s,
1816
+ onCardClick: c,
1815
1817
  posthog: p,
1816
- showIcon: C,
1818
+ showIcon: f,
1817
1819
  showWithMargin: _,
1818
1820
  widthOverrides: T
1819
1821
  }, Y = {
1820
- carouselSize: v,
1822
+ carouselSize: y,
1821
1823
  variant: I,
1822
1824
  showCTAColocatedWithText: l,
1823
1825
  heightOverrides: r,
1824
- onCardClick: s,
1826
+ onCardClick: c,
1825
1827
  posthog: p,
1826
- showIcon: C
1828
+ showIcon: f
1827
1829
  };
1828
- return /* @__PURE__ */ e(ot, { onEvent: Q, onPageview: q, store: N, children: /* @__PURE__ */ g(It, { heightOverrides: r, widthOverrides: T, children: [
1830
+ return /* @__PURE__ */ e(lt, { onEvent: X, onPageview: Q, store: N, children: /* @__PURE__ */ g(yt, { heightOverrides: r, widthOverrides: T, children: [
1829
1831
  !W && /* @__PURE__ */ e(vt, {}),
1830
- W && c && /* @__PURE__ */ e(
1831
- gt,
1832
+ W && s && /* @__PURE__ */ e(
1833
+ It,
1832
1834
  {
1833
1835
  analyticsMetadata: Ee,
1834
- onCardClick: s,
1836
+ onCardClick: c,
1835
1837
  posthog: p,
1836
1838
  widthOverrides: T
1837
1839
  }
1838
1840
  ),
1839
1841
  W && !!t.length && /* @__PURE__ */ e(
1840
- mt,
1842
+ Rt,
1841
1843
  {
1842
1844
  allowSingleCardPeeking: i,
1843
1845
  analyticsMetadata: Ee,
@@ -1845,7 +1847,7 @@ const U = u.createContext(null), ot = ({
1845
1847
  showCarouselControls: E,
1846
1848
  variant: d ? I : void 0,
1847
1849
  visibleCardsCount: m,
1848
- ...J
1850
+ ...q
1849
1851
  }
1850
1852
  ),
1851
1853
  W && !t.length && /* @__PURE__ */ e(
@@ -1860,7 +1862,7 @@ const U = u.createContext(null), ot = ({
1860
1862
  k,
1861
1863
  {
1862
1864
  sx: {
1863
- height: `calc(${ht[v]}px - 44px)`,
1865
+ height: `calc(${ut[y]}px - 44px)`,
1864
1866
  width: _ ? `calc(${T}px - 32px)` : "100%"
1865
1867
  },
1866
1868
  children: O ? /* @__PURE__ */ e(Oe, { ...Y }) : /* @__PURE__ */ e(Te, { ...Y })
@@ -1869,7 +1871,7 @@ const U = u.createContext(null), ot = ({
1869
1871
  }
1870
1872
  )
1871
1873
  ] }) });
1872
- }, Qt = P(yt), St = ({
1874
+ }, Jt = P(St), Mt = ({
1873
1875
  isActiveCard: i,
1874
1876
  ariaLabel: o,
1875
1877
  heightOverrides: t,
@@ -1877,53 +1879,53 @@ const U = u.createContext(null), ot = ({
1877
1879
  posthog: n,
1878
1880
  showIcon: r,
1879
1881
  variant: a,
1880
- widthOverrides: s
1882
+ widthOverrides: c
1881
1883
  }) => {
1882
- const h = j(), { ref: f, inView: p } = me({
1884
+ const h = te(), { ref: C, inView: p } = me({
1883
1885
  threshold: Ae
1884
1886
  }), { cardsCopy: d } = V(), { onEvent: E } = z();
1885
- te(() => {
1886
- p && (E(ye.ON_VIEW_MORE_VIEWED), n?.capture("viewed_insight", {
1887
+ ee(() => {
1888
+ p && (E(ve.ON_VIEW_MORE_VIEWED), n?.capture("viewed_insight", {
1887
1889
  template: "view_more_card"
1888
1890
  }));
1889
1891
  }, [p]);
1890
- const c = () => {
1892
+ const s = () => {
1891
1893
  l && l(), E(S.ON_VIEW_MORE_CLICKED), n?.capture("clicked_insight", {
1892
1894
  template: "view_more_card"
1893
1895
  });
1894
1896
  };
1895
1897
  return /* @__PURE__ */ e(
1896
- X,
1898
+ j,
1897
1899
  {
1898
1900
  actionText: d.micro_card_cta,
1899
1901
  ariaLabel: o,
1900
1902
  description: d.view_more_card_description,
1901
1903
  heightOverrides: t,
1902
- icon: /* @__PURE__ */ e(rt, { color: h.palette.primary.main }),
1904
+ icon: /* @__PURE__ */ e(at, { color: h.palette.primary.main }),
1903
1905
  isActiveCard: i,
1904
- onCardClick: c,
1906
+ onCardClick: s,
1905
1907
  posthog: n,
1906
- ref: f,
1908
+ ref: C,
1907
1909
  showIcon: r,
1908
1910
  title: d.view_more_card_title,
1909
1911
  variant: a,
1910
- widthOverrides: s
1912
+ widthOverrides: c
1911
1913
  }
1912
1914
  );
1913
- }, Mt = P(St);
1915
+ }, At = P(Mt);
1914
1916
  export {
1915
- it as A,
1916
- X as B,
1917
- gt as C,
1918
- ot as I,
1919
- mt as M,
1920
- jt as N,
1917
+ ot as A,
1918
+ j as B,
1919
+ It as C,
1920
+ lt as I,
1921
+ Rt as M,
1922
+ Qt as N,
1921
1923
  Ee as T,
1922
- Mt as V,
1923
- Xt as Z,
1924
- pt as a,
1925
- Qt as b,
1926
- rt as c,
1927
- st as d,
1924
+ At as V,
1925
+ qt as Z,
1926
+ _t as a,
1927
+ Jt as b,
1928
+ at as c,
1929
+ dt as d,
1928
1930
  Se as e
1929
1931
  };