@mx-cartographer/experiences 9.0.0-alpha.al9 → 9.0.0

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 (58) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/{AccountDetailsHeader-CfdnKyJK.mjs → AccountDetailsHeader-DIysk_4w.mjs} +1 -1
  3. package/dist/{AccountFields-CAy0x_4i.mjs → AccountFields-mwJ8NXsX.mjs} +18 -18
  4. package/dist/{AccountListItem-DJaIOxbb.mjs → AccountListItem-BDXHs4tV.mjs} +1 -1
  5. package/dist/{CategorySelectorDrawer-DVGuR3Ab.mjs → CategorySelectorDrawer-CmaDLhnf.mjs} +2 -2
  6. package/dist/{ConnectCard-CdXeMN22.mjs → ConnectCard-CCep7Zqe.mjs} +1 -1
  7. package/dist/{ConnectDrawer-CPsSusKE.mjs → ConnectDrawer-Cnjr3Ddg.mjs} +1 -1
  8. package/dist/{ConnectionsDrawer-DWPOixe6.mjs → ConnectionsDrawer-CtfPXk0M.mjs} +1 -1
  9. package/dist/{CurrencyInput-B59ugxPN.mjs → CurrencyInput-adTIRtL3.mjs} +28 -26
  10. package/dist/{Drawer-BNu88yNt.mjs → Drawer-BXqqBMxg.mjs} +29 -32
  11. package/dist/{EmbeddedCard-wENckl64.mjs → EmbeddedCard-DPwJjqMH.mjs} +1 -1
  12. package/dist/{ExportCsvAction-BkABqw52.mjs → ExportCsvAction-Bw02ZJEj.mjs} +1 -1
  13. package/dist/{Help-CNjuW34A.mjs → Help-DJ8PrVHX.mjs} +2 -2
  14. package/dist/{ManageIncome-D2hEHycu.mjs → ManageIncome-B1JfqslT.mjs} +5 -5
  15. package/dist/{NotificationSettings-CNsh4U5U.mjs → NotificationSettings-6p-h5phZ.mjs} +3 -3
  16. package/dist/{OriginalBalanceAction-BxOhy_ru.mjs → OriginalBalanceAction-CkJPnp2c.mjs} +1 -1
  17. package/dist/{RecurringSettings-Qqila2ld.mjs → RecurringSettings-cm6MK_aS.mjs} +1 -1
  18. package/dist/SearchBox-Cpgu_gdO.mjs +50 -0
  19. package/dist/{Select-KwuuoKM-.mjs → Select-BFt-HD-L.mjs} +15 -15
  20. package/dist/{ToggleListItem-BTDtw-N4.mjs → ToggleListItem-Dl1lXNwj.mjs} +7 -8
  21. package/dist/{TransactionDetails-CMUIncOc.mjs → TransactionDetails-C3dlAzYf.mjs} +10 -8
  22. package/dist/{ViewMoreMicroCard-DoVNDQVG.mjs → ViewMoreMicroCard-BD_MNc2z.mjs} +527 -526
  23. package/dist/{WidgetContainer-CmkRiOTH.mjs → WidgetContainer-DNuz_s7W.mjs} +1 -1
  24. package/dist/accounts/index.es.js +11 -11
  25. package/dist/budgets/index.es.js +8 -8
  26. package/dist/cashflow/index.es.js +6 -6
  27. package/dist/categories/index.es.js +1 -1
  28. package/dist/common/index.es.js +101 -100
  29. package/dist/common/utils/Theme.d.ts +4 -13
  30. package/dist/common/utils/index.d.ts +1 -1
  31. package/dist/core/types/AppData.d.ts +0 -14
  32. package/dist/core/types/Client.d.ts +13 -20
  33. package/dist/dashboard/index.es.js +33 -33
  34. package/dist/debts/index.es.js +6 -6
  35. package/dist/finstrong/index.es.js +9 -9
  36. package/dist/goals/index.es.js +5 -5
  37. package/dist/help/index.es.js +2 -2
  38. package/dist/insights/index.es.js +206 -209
  39. package/dist/investments/index.es.js +3 -3
  40. package/dist/merchants/index.es.js +1 -1
  41. package/dist/microinsights/MicroCardTemplate.d.ts +2 -4
  42. package/dist/microinsights/cards/InsightCard.d.ts +2 -2
  43. package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +3 -4
  44. package/dist/microinsights/cards/ViewMoreMicroCard.d.ts +3 -4
  45. package/dist/microinsights/cards/ZeroStateCard.d.ts +3 -4
  46. package/dist/microinsights/carousel/BeatList.d.ts +2 -2
  47. package/dist/microinsights/carousel/MicroBeatCarousel.d.ts +12 -1
  48. package/dist/microinsights/index.es.js +1 -1
  49. package/dist/microinsights/interfaces.d.ts +12 -4
  50. package/dist/networth/index.es.js +3 -3
  51. package/dist/notifications/index.es.js +2 -2
  52. package/dist/recurringtransactions/index.es.js +6 -6
  53. package/dist/settings/index.es.js +6 -6
  54. package/dist/spending/index.es.js +4 -4
  55. package/dist/transactions/index.es.js +35 -36
  56. package/dist/trends/index.es.js +8 -9
  57. package/package.json +4 -4
  58. package/dist/SearchBox-CwDgvWVJ.mjs +0 -48
@@ -1,27 +1,26 @@
1
- import { jsx as o, jsxs as N, Fragment as Ae } from "react/jsx-runtime";
2
- import h, { useEffect as re, useState as ne } from "react";
3
- import { observer as z } from "mobx-react-lite";
4
- import w from "@mui/material/Stack";
5
- import ie from "@mui/material/Button";
6
- import { CategoryIcon as Ve, MerchantLogo as Ge, InstitutionLogo as ke, P as pe, Text as me, H3 as Ue } from "@mxenabled/mxui";
7
- import { Icon as ze, Close as Ke, ChevronLeft as Fe, ChevronRight as Se } from "@mxenabled/mx-icons";
8
- import { L as He } from "./Loader-CxeBwuPG.mjs";
9
- import j from "@mui/material/Box";
10
- import ae from "@mui/material/IconButton";
11
- import { useTheme as k, alpha as s } from "@mui/material/styles";
12
- import { useInView as Te } from "react-intersection-observer";
13
- import { C as $e } from "./Category-DEKZGLYe.mjs";
14
- import { b as je } from "./Localization-DnoVyBNK.mjs";
15
- import Ye from "@mui/material/CircularProgress";
16
- import { makeAutoObservable as se, runInAction as Re } from "mobx";
17
- import { a as Xe, u as Ze, b as Qe } from "./Analytics-CkYXKvco.mjs";
18
- import { G as ue, B as Ce } from "./GlobalCopyApi-wcnDUzMV.mjs";
19
- import { u as qe } from "./useWidgetLoadTimer-CJb-RELP.mjs";
20
- import Je from "@mui/material/Card";
21
- import et from "@mui/material/CardActionArea";
22
- import tt from "@mui/material/Avatar";
23
- class ot {
24
- copyApi = new ue("/", "");
1
+ import { jsx as o, jsxs as N, Fragment as Te } from "react/jsx-runtime";
2
+ import I, { useEffect as re, useState as ie } from "react";
3
+ import { observer as U } from "mobx-react-lite";
4
+ import k from "@mui/material/Stack";
5
+ import ke from "@mui/material/Button";
6
+ import { CategoryIcon as Ue, MerchantLogo as ze, InstitutionLogo as Ke, P as pe, Text as me, H3 as Fe } from "@mxenabled/mxui";
7
+ import { Icon as He, Close as $e, ChevronLeft as je, ChevronRight as Re } from "@mxenabled/mx-icons";
8
+ import { L as Ye } from "./Loader-CxeBwuPG.mjs";
9
+ import ae from "@mui/material/Box";
10
+ import ue from "@mui/material/IconButton";
11
+ import { useTheme as P, alpha as s } from "@mui/material/styles";
12
+ import { useInView as Oe } from "react-intersection-observer";
13
+ import { C as Xe } from "./Category-DEKZGLYe.mjs";
14
+ import { b as Ze } from "./Localization-DnoVyBNK.mjs";
15
+ import Qe from "@mui/material/CircularProgress";
16
+ import { makeAutoObservable as se, runInAction as We } from "mobx";
17
+ import { a as qe, u as Je, b as et } from "./Analytics-CkYXKvco.mjs";
18
+ import { G as Ce, B as he } from "./GlobalCopyApi-wcnDUzMV.mjs";
19
+ import { u as tt } from "./useWidgetLoadTimer-CJb-RELP.mjs";
20
+ import { Card as ot, CardActionArea as nt, Box as it, IconButton as rt, Stack as F, Button as ge } from "@mui/material";
21
+ import at from "@mui/material/Avatar";
22
+ class st {
23
+ copyApi = new Ce("/", "");
25
24
  copyObject = {};
26
25
  namespace = "experiences";
27
26
  translationKey = "micro_insights";
@@ -32,11 +31,11 @@ class ot {
32
31
  // DEPRECATED: Initialize api in constructor and use loadCopy instead
33
32
  // TODO: Remove this function
34
33
  initialize = async (e, n) => {
35
- this.copyApi = new ue(e, n), await this.loadCopy();
34
+ this.copyApi = new Ce(e, n), await this.loadCopy();
36
35
  };
37
36
  loadCopy = async () => {
38
37
  const e = await this.copyApi.getGlobalCopy(this.namespace, this.translationKey);
39
- Re(() => {
38
+ We(() => {
40
39
  this.copyObject = e[this.translationKey];
41
40
  });
42
41
  };
@@ -67,58 +66,58 @@ const ce = {
67
66
  WeeklyNewMerchantsV2: "WeeklyNewMerchantsV2",
68
67
  MonthlySpendComparison: "MonthlySpendComparison",
69
68
  MonthlySpendToIncomeComparison: "MonthlySpendToIncomeComparison"
70
- }, R = window?.app?.clientConfig?.microwidget_instance_id || "", he = {
69
+ }, O = window?.app?.clientConfig?.microwidget_instance_id || "", Ie = {
71
70
  INSIGHTS_MICRO_WIDGET: "/micro-insights-carousel"
72
- }, Oe = (t) => `on${t}Click`, We = (t) => `on${t}View`, we = (t) => `on${t}ViewFirstTime`, le = (t) => t.replace(/([a-z])([A-Z])/g, "$1 $2"), nt = () => Object.values(ce).reduce(
71
+ }, we = (t) => `on${t}Click`, Ne = (t) => `on${t}View`, Me = (t) => `on${t}ViewFirstTime`, le = (t) => t.replace(/([a-z])([A-Z])/g, "$1 $2"), ct = () => Object.values(ce).reduce(
73
72
  (t, e) => ({
74
73
  ...t,
75
- [Oe(e)]: {
76
- action: x.MICRO_BEAT_CLICKED,
74
+ [we(e)]: {
75
+ action: b.MICRO_BEAT_CLICKED,
77
76
  category: L.BEAT_INTERACTION,
78
77
  label: le(e),
79
- value: R
78
+ value: O
80
79
  }
81
80
  }),
82
81
  {}
83
- ), rt = () => Object.values(ce).reduce(
82
+ ), lt = () => Object.values(ce).reduce(
84
83
  (t, e) => ({
85
84
  ...t,
86
- [We(e)]: {
87
- action: x.MICRO_BEAT_DISPLAYED,
85
+ [Ne(e)]: {
86
+ action: b.MICRO_BEAT_DISPLAYED,
88
87
  category: L.BEAT_INTERACTION,
89
88
  label: le(e),
90
- value: R
89
+ value: O
91
90
  }
92
91
  }),
93
92
  {}
94
- ), it = () => Object.values(ce).reduce(
93
+ ), dt = () => Object.values(ce).reduce(
95
94
  (t, e) => ({
96
95
  ...t,
97
- [we(e)]: {
98
- action: x.MICRO_BEAT_DISPLAYED_FIRST_TIME,
96
+ [Me(e)]: {
97
+ action: b.MICRO_BEAT_DISPLAYED_FIRST_TIME,
99
98
  category: L.BEAT_INTERACTION,
100
99
  label: le(e),
101
- value: R
100
+ value: O
102
101
  }
103
102
  }),
104
103
  {}
105
- ), b = {
104
+ ), v = {
106
105
  CAROUSEL_CONTROL: "Carousel Control",
107
106
  MICRO_WIDGET: "Micro Widget",
108
107
  VIEW_MORE: "View More"
109
108
  }, L = {
110
109
  MICRO_WIDGET_INTERACTION: "Micro Widget Interaction",
111
110
  BEAT_INTERACTION: "Beat Interaction"
112
- }, O = {
111
+ }, W = {
113
112
  ON_CAROUSEL_BACK_CLICK: "onCarouselBackClick",
114
113
  ON_CAROUSEL_BACK_SWIPE: "onCarouselBackSwipe",
115
114
  ON_CAROUSEL_FORWARD_CLICK: "onCarouselForwardClick",
116
115
  ON_CAROUSEL_FORWARD_SWIPE: "onCarouselForwardSwipe",
117
116
  ON_NO_RELEVANT_INSIGHTS_CLICKED: "onNoRelevantInsightsClicked",
118
117
  ON_VIEW_MORE_CLICKED: "onViewMoreClicked"
119
- }, Ne = {
118
+ }, ve = {
120
119
  ON_VIEW_MORE_VIEWED: "onViewMoreCardView"
121
- }, x = {
120
+ }, b = {
122
121
  CONTROL_BACKWARD: "Control Backward",
123
122
  CONTROL_FORWARD: "Control Forward",
124
123
  MICRO_BEAT_CLICKED: "Micro Beat Clicked",
@@ -126,95 +125,95 @@ const ce = {
126
125
  MICRO_BEAT_DISPLAYED_FIRST_TIME: "Micro Beat Displayed For First Time",
127
126
  SWIPE_BACKWARD: "Swipe Backward",
128
127
  SWIPE_FORWARD: "Swipe Forward"
129
- }, G = {
128
+ }, B = {
130
129
  MICRO_WIDGET_CAROUSEL: "Micro Widget Carousel",
131
130
  MICRO_WIDGET_CAROUSEL_ZERO_STATE: "Micro Widget Carousel Zero State",
132
131
  MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS: "Micro Widget Carousel No Relevant Insights"
133
- }, ge = {
134
- [G.MICRO_WIDGET_CAROUSEL]: {
135
- label: b.MICRO_WIDGET,
136
- name: G.MICRO_WIDGET_CAROUSEL,
137
- path: he.INSIGHTS_MICRO_WIDGET,
138
- value: R
132
+ }, Ee = {
133
+ [B.MICRO_WIDGET_CAROUSEL]: {
134
+ label: v.MICRO_WIDGET,
135
+ name: B.MICRO_WIDGET_CAROUSEL,
136
+ path: Ie.INSIGHTS_MICRO_WIDGET,
137
+ value: O
139
138
  },
140
139
  // zero state
141
- [G.MICRO_WIDGET_CAROUSEL_ZERO_STATE]: {
142
- label: b.MICRO_WIDGET,
143
- name: G.MICRO_WIDGET_CAROUSEL_ZERO_STATE,
144
- path: he.INSIGHTS_MICRO_WIDGET,
145
- value: R
140
+ [B.MICRO_WIDGET_CAROUSEL_ZERO_STATE]: {
141
+ label: v.MICRO_WIDGET,
142
+ name: B.MICRO_WIDGET_CAROUSEL_ZERO_STATE,
143
+ path: Ie.INSIGHTS_MICRO_WIDGET,
144
+ value: O
146
145
  },
147
146
  // no relevant cards
148
- [G.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS]: {
149
- label: b.MICRO_WIDGET,
150
- name: G.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS,
147
+ [B.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS]: {
148
+ label: v.MICRO_WIDGET,
149
+ name: B.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS,
151
150
  path: "/micro-widget",
152
- value: R
151
+ value: O
153
152
  }
154
- }, Ee = {
153
+ }, fe = {
155
154
  // carousel control interaction events - clicks and swipes
156
- [O.ON_CAROUSEL_BACK_CLICK]: {
157
- action: x.CONTROL_BACKWARD,
155
+ [W.ON_CAROUSEL_BACK_CLICK]: {
156
+ action: b.CONTROL_BACKWARD,
158
157
  category: L.MICRO_WIDGET_INTERACTION,
159
- label: b.CAROUSEL_CONTROL,
160
- value: R
158
+ label: v.CAROUSEL_CONTROL,
159
+ value: O
161
160
  },
162
- [O.ON_CAROUSEL_FORWARD_CLICK]: {
163
- action: x.CONTROL_FORWARD,
161
+ [W.ON_CAROUSEL_FORWARD_CLICK]: {
162
+ action: b.CONTROL_FORWARD,
164
163
  category: L.MICRO_WIDGET_INTERACTION,
165
- label: b.CAROUSEL_CONTROL,
166
- value: R
164
+ label: v.CAROUSEL_CONTROL,
165
+ value: O
167
166
  },
168
- [O.ON_CAROUSEL_BACK_SWIPE]: {
169
- action: x.SWIPE_BACKWARD,
167
+ [W.ON_CAROUSEL_BACK_SWIPE]: {
168
+ action: b.SWIPE_BACKWARD,
170
169
  category: L.MICRO_WIDGET_INTERACTION,
171
- label: b.CAROUSEL_CONTROL,
172
- value: R
170
+ label: v.CAROUSEL_CONTROL,
171
+ value: O
173
172
  },
174
- [O.ON_CAROUSEL_FORWARD_SWIPE]: {
175
- action: x.SWIPE_FORWARD,
173
+ [W.ON_CAROUSEL_FORWARD_SWIPE]: {
174
+ action: b.SWIPE_FORWARD,
176
175
  category: L.MICRO_WIDGET_INTERACTION,
177
- label: b.CAROUSEL_CONTROL,
178
- value: R
176
+ label: v.CAROUSEL_CONTROL,
177
+ value: O
179
178
  },
180
179
  // read more card events
181
- [O.ON_VIEW_MORE_CLICKED]: {
182
- action: x.MICRO_BEAT_CLICKED,
180
+ [W.ON_VIEW_MORE_CLICKED]: {
181
+ action: b.MICRO_BEAT_CLICKED,
183
182
  category: L.BEAT_INTERACTION,
184
- label: b.VIEW_MORE,
185
- value: R
183
+ label: v.VIEW_MORE,
184
+ value: O
186
185
  },
187
- [Ne.ON_VIEW_MORE_VIEWED]: {
188
- action: x.MICRO_BEAT_DISPLAYED,
186
+ [ve.ON_VIEW_MORE_VIEWED]: {
187
+ action: b.MICRO_BEAT_DISPLAYED,
189
188
  category: L.BEAT_INTERACTION,
190
- label: b.VIEW_MORE,
191
- value: R
189
+ label: v.VIEW_MORE,
190
+ value: O
192
191
  },
193
- ...nt(),
194
- ...rt(),
195
- ...it()
196
- }, Ie = async (t, e) => !e || !Ee[t] ? null : e.sendAnalyticEvent(Ee[t]).then((n) => n).catch((n) => {
192
+ ...ct(),
193
+ ...lt(),
194
+ ...dt()
195
+ }, ye = async (t, e) => !e || !fe[t] ? null : e.sendAnalyticEvent(fe[t]).then((n) => n).catch((n) => {
197
196
  throw n;
198
- }), fe = async (t, e) => !e || !ge[t] ? null : e.sendAnalyticsPageview(ge[t]).then((n) => n).catch((n) => {
197
+ }), Ae = async (t, e) => !e || !Ee[t] ? null : e.sendAnalyticsPageview(Ee[t]).then((n) => n).catch((n) => {
199
198
  throw n;
200
199
  });
201
- class at {
202
- onAnalyticEvent = Ie;
203
- onAnalyticPageView = fe;
204
- beatApi = new Ce("/", "");
200
+ class _t {
201
+ onAnalyticEvent = ye;
202
+ onAnalyticPageView = Ae;
203
+ beatApi = new he("/", "");
205
204
  constructor() {
206
205
  se(this);
207
206
  }
208
- initialize = async (e, n, r) => {
209
- this.onAnalyticEvent = (i, l) => {
210
- Ie(i, l).then((a) => a).catch((a) => {
211
- throw a.status === 401 && r(), a;
207
+ initialize = async (e, n, i) => {
208
+ this.onAnalyticEvent = (r, l) => {
209
+ ye(r, l).then((a) => a).catch((a) => {
210
+ throw a.status === 401 && i(), a;
212
211
  });
213
- }, this.onAnalyticPageView = (i, l) => {
214
- fe(i, l).then((a) => a).catch((a) => {
215
- throw a.status === 401 && r(), a;
212
+ }, this.onAnalyticPageView = (r, l) => {
213
+ Ae(r, l).then((a) => a).catch((a) => {
214
+ throw a.status === 401 && i(), a;
216
215
  });
217
- }, this.beatApi = new Ce(e, n);
216
+ }, this.beatApi = new he(e, n);
218
217
  };
219
218
  updateBeat = async (e) => {
220
219
  this.beatApi.updateBeat(e);
@@ -223,7 +222,7 @@ class at {
223
222
  this.beatApi.updateOffer(e);
224
223
  };
225
224
  }
226
- class st {
225
+ class pt {
227
226
  copyStore;
228
227
  endpoint = "/";
229
228
  insightsMicroWidgetStore;
@@ -231,33 +230,33 @@ class st {
231
230
  token = "";
232
231
  isInitialized = !1;
233
232
  constructor() {
234
- this.copyStore = new ot(), this.insightsMicroWidgetStore = new at(), se(this);
233
+ this.copyStore = new st(), this.insightsMicroWidgetStore = new _t(), se(this);
235
234
  }
236
- initialize = async (e, n, r) => {
237
- await this.copyStore.initialize(e, n), await this.insightsMicroWidgetStore.initialize(e, n, r);
238
- const i = await Xe(e, n, "1.0.0", "Micro Insights Carousel");
239
- Re(() => {
240
- this.session = i, this.isInitialized = !0;
235
+ initialize = async (e, n, i) => {
236
+ await this.copyStore.initialize(e, n), await this.insightsMicroWidgetStore.initialize(e, n, i);
237
+ const r = await qe(e, n, "1.0.0", "Micro Insights Carousel");
238
+ We(() => {
239
+ this.session = r, this.isInitialized = !0;
241
240
  });
242
241
  };
243
242
  }
244
- const Y = h.createContext(null), ct = ({
243
+ const H = I.createContext(null), mt = ({
245
244
  onEvent: t,
246
245
  onPageview: e,
247
246
  store: n,
248
- children: r
249
- }) => /* @__PURE__ */ o(Y.Provider, { value: { onEvent: t, onPageview: e, store: n, children: r }, children: r }), lt = ({ beat: t }) => {
250
- const { primary_category_guid: e, category_guids: n } = t, r = e || n?.[0] || $e.UNCATEGORIZED;
251
- return /* @__PURE__ */ o(Ve, { categoryGuid: r, size: 32, sx: { minWidth: 32 } });
247
+ children: i
248
+ }) => /* @__PURE__ */ o(H.Provider, { value: { onEvent: t, onPageview: e, store: n, children: i }, children: i }), ut = ({ beat: t }) => {
249
+ const { primary_category_guid: e, category_guids: n } = t, i = e || n?.[0] || Xe.UNCATEGORIZED;
250
+ return /* @__PURE__ */ o(Ue, { categoryGuid: i, size: 32, sx: { minWidth: 32 } });
252
251
  }, c = ({
253
252
  avatarSx: t,
254
253
  bgColor: e,
255
254
  name: n,
256
- iconColor: r = "primary",
257
- fill: i = !0,
255
+ iconColor: i = "primary",
256
+ fill: r = !0,
258
257
  sx: l
259
258
  }) => /* @__PURE__ */ o(
260
- tt,
259
+ at,
261
260
  {
262
261
  sx: {
263
262
  bgcolor: e,
@@ -266,15 +265,15 @@ const Y = h.createContext(null), ct = ({
266
265
  ...t
267
266
  },
268
267
  variant: "rounded",
269
- children: /* @__PURE__ */ o(ze, { color: r, fill: i, name: n, size: 20, sx: l })
268
+ children: /* @__PURE__ */ o(He, { color: i, fill: r, name: n, size: 20, sx: l })
270
269
  }
271
- ), dt = ({ beat: t }) => {
272
- const { category_guids: e, merchant_guids: n, primary_category_guid: r, primary_merchant_guid: i } = t;
270
+ ), Ct = ({ beat: t }) => {
271
+ const { category_guids: e, merchant_guids: n, primary_category_guid: i, primary_merchant_guid: r } = t;
273
272
  return /* @__PURE__ */ o(
274
- Ge,
273
+ ze,
275
274
  {
276
- categoryGuid: r || e && e[0] || "",
277
- merchantGuid: i || n[0],
275
+ categoryGuid: i || e && e[0] || "",
276
+ merchantGuid: r || n[0],
278
277
  size: 32,
279
278
  sx: {
280
279
  display: "flex",
@@ -283,51 +282,51 @@ const Y = h.createContext(null), ct = ({
283
282
  }
284
283
  }
285
284
  );
286
- }, _t = (t) => t ? t.data ? t.data.map((e) => {
285
+ }, ht = (t) => t ? t.data ? t.data.map((e) => {
287
286
  const n = {};
288
- return t.names?.map((r, i) => {
289
- n[r] = e[i];
287
+ return t.names?.map((i, r) => {
288
+ n[i] = e[r];
290
289
  }), n;
291
- }) : [] : [], q = "primary", Me = "success", be = "error", Le = (t) => {
292
- const e = _t(t), n = Math.floor(e.length / 2);
290
+ }) : [] : [], q = "primary", Le = "success", be = "error", De = (t) => {
291
+ const e = ht(t), n = Math.floor(e.length / 2);
293
292
  if (n === 0 || n === e.length) return q;
294
- const r = e[0]?.amount, i = e[n]?.amount;
295
- return r == null || i == null ? q : r > i ? be : r < i ? Me : q;
296
- }, pt = (t, e) => t < e ? Me : t > e ? be : q, mt = ({ beat: t }) => {
297
- const e = k(), n = Le(t.data_series), r = e.palette[n].main;
298
- return /* @__PURE__ */ o(c, { bgColor: s(r, 0.15), iconColor: n, name: "bar_chart" });
299
- }, ut = ({ beat: t }) => {
300
- const e = k(), n = t.payload?.average_spend || 0;
301
- let r = 0;
293
+ const i = e[0]?.amount, r = e[n]?.amount;
294
+ return i == null || r == null ? q : i > r ? be : i < r ? Le : q;
295
+ }, gt = (t, e) => t < e ? Le : t > e ? be : q, It = ({ beat: t }) => {
296
+ const e = P(), n = De(t.data_series), i = e.palette[n].main;
297
+ return /* @__PURE__ */ o(c, { bgColor: s(i, 0.15), iconColor: n, name: "bar_chart" });
298
+ }, Et = ({ beat: t }) => {
299
+ const e = P(), n = t.payload?.average_spend || 0;
300
+ let i = 0;
302
301
  if (t.data_series?.data && t.data_series.data.length > 0) {
303
302
  const a = (t.data_series.names || []).indexOf("amount");
304
- a !== -1 && (r = t.data_series.data[0][a] || 0);
303
+ a !== -1 && (i = t.data_series.data[0][a] || 0);
305
304
  }
306
- const i = pt(r, n);
305
+ const r = gt(i, n);
307
306
  return /* @__PURE__ */ o(
308
307
  c,
309
308
  {
310
- bgColor: s(e.palette[i].main, 0.15),
311
- iconColor: i,
309
+ bgColor: s(e.palette[r].main, 0.15),
310
+ iconColor: r,
312
311
  name: "timeline"
313
312
  }
314
313
  );
315
- }, Ct = ({ beat: t }) => {
316
- const e = k(), n = Le(t.data_series), r = e.palette[n].main;
314
+ }, ft = ({ beat: t }) => {
315
+ const e = P(), n = De(t.data_series), i = e.palette[n].main;
317
316
  return /* @__PURE__ */ o(
318
317
  c,
319
318
  {
320
- bgColor: s(r, 0.15),
319
+ bgColor: s(i, 0.15),
321
320
  fill: !1,
322
321
  iconColor: n,
323
322
  name: "area_chart"
324
323
  }
325
324
  );
326
- }, ht = ({ beat: t }) => /* @__PURE__ */ o(ke, { alt: t.institutionName || "", institutionGuid: t.institutionGuid || "" }), gt = {
325
+ }, yt = ({ beat: t }) => /* @__PURE__ */ o(Ke, { alt: t.institutionName || "", institutionGuid: t.institutionGuid || "" }), At = {
327
326
  0: (t, e) => /* @__PURE__ */ o(c, { bgColor: s(e.palette.primary.main, 0.15), name: "error" }),
328
- 1: (t) => /* @__PURE__ */ o(lt, { beat: t }),
329
- 2: (t) => /* @__PURE__ */ o(dt, { beat: t }),
330
- 3: (t) => /* @__PURE__ */ o(mt, { beat: t }),
327
+ 1: (t) => /* @__PURE__ */ o(ut, { beat: t }),
328
+ 2: (t) => /* @__PURE__ */ o(Ct, { beat: t }),
329
+ 3: (t) => /* @__PURE__ */ o(It, { beat: t }),
331
330
  4: (t, e) => /* @__PURE__ */ o(
332
331
  c,
333
332
  {
@@ -360,7 +359,7 @@ const Y = h.createContext(null), ct = ({
360
359
  sx: { color: "text.primary" }
361
360
  }
362
361
  ),
363
- 12: (t) => /* @__PURE__ */ o(Ct, { beat: t }),
362
+ 12: (t) => /* @__PURE__ */ o(ft, { beat: t }),
364
363
  13: () => /* @__PURE__ */ o(
365
364
  c,
366
365
  {
@@ -441,7 +440,7 @@ const Y = h.createContext(null), ct = ({
441
440
  ),
442
441
  27: (t, e) => /* @__PURE__ */ o(c, { bgColor: s(e.palette.primary.main, 0.15), name: "directions_car" }),
443
442
  28: (t, e) => /* @__PURE__ */ o(c, { bgColor: s(e.palette.primary.main, 0.15), name: "contract" }),
444
- 29: (t) => /* @__PURE__ */ o(ut, { beat: t }),
443
+ 29: (t) => /* @__PURE__ */ o(Et, { beat: t }),
445
444
  30: (t, e) => /* @__PURE__ */ o(c, { bgColor: s(e.palette.primary.main, 0.15), name: "calendar_month" }),
446
445
  31: (t, e) => /* @__PURE__ */ o(
447
446
  c,
@@ -460,81 +459,80 @@ const Y = h.createContext(null), ct = ({
460
459
  name: "storefront"
461
460
  }
462
461
  ),
463
- 34: (t) => /* @__PURE__ */ o(ht, { beat: t })
464
- }, Et = ({ beat: t }) => {
465
- const e = k(), { icon_type: n } = t, r = n != null ? gt[n] : null;
466
- return r ? r(t, e) : /* @__PURE__ */ o(c, { bgColor: s(e.palette.primary.main, 0.15), name: "error" });
462
+ 34: (t) => /* @__PURE__ */ o(yt, { beat: t })
463
+ }, St = ({ beat: t }) => {
464
+ const e = P(), { icon_type: n } = t, i = n != null ? At[n] : null;
465
+ return i ? i(t, e) : /* @__PURE__ */ o(c, { bgColor: s(e.palette.primary.main, 0.15), name: "error" });
467
466
  }, D = () => {
468
- const t = h.useContext(Y);
467
+ const t = I.useContext(H);
469
468
  if (!t)
470
469
  throw new Error("useCopyStore() must be used within the InsightsMicroWidgetDataProvider");
471
470
  return t.store.copyStore;
472
- }, It = () => {
473
- const t = h.useContext(Y);
471
+ }, Tt = () => {
472
+ const t = I.useContext(H);
474
473
  if (!t?.store?.insightsMicroWidgetStore)
475
474
  throw new Error(
476
475
  "useInsightsMicroWidgetStore() must be used within the InsightsMicroWidgetDataProvider"
477
476
  );
478
477
  return t.store.insightsMicroWidgetStore;
479
- }, X = () => {
480
- const t = h.useContext(Y);
478
+ }, $ = () => {
479
+ const t = I.useContext(H);
481
480
  if (!t)
482
481
  throw new Error("useEvent() must be used within the InsightsMicroWidgetDataProvider");
483
482
  return { onEvent: t.onEvent };
484
483
  }, xe = () => {
485
- const t = h.useContext(Y);
484
+ const t = I.useContext(H);
486
485
  if (!t)
487
486
  throw new Error("usePageview() must be used within the InsightsMicroWidgetDataProvider");
488
487
  return { onPageview: t.onPageview };
489
- }, ft = {
488
+ }, Rt = {
490
489
  LARGE: 180,
491
490
  STANDARD: 154,
492
491
  XLARGE: 200,
493
492
  XXLARGE: 248
494
- }, yt = 50, De = 1, J = h.forwardRef(
493
+ }, Ot = 50, Be = 1, J = I.forwardRef(
495
494
  function({
496
495
  ariaLabel: e,
497
- cardSx: n,
498
- closeAriaLabel: r,
496
+ closeAriaLabel: n,
499
497
  description: i,
498
+ elevation: r,
500
499
  icon: l,
501
500
  isActiveCard: a,
502
- hasCardEffect: u = !1,
503
- heightOverrides: I,
504
- onClose: g,
505
- onCardClick: d,
506
- onPrimaryAction: _,
507
- onSecondaryAction: p,
508
- primaryActionText: m,
509
- secondaryActionText: f,
510
- title: S,
501
+ heightOverrides: u,
502
+ onClose: C,
503
+ onCardClick: E,
504
+ onPrimaryAction: h,
505
+ onSecondaryAction: d,
506
+ primaryActionText: _,
507
+ secondaryActionText: p,
508
+ title: g,
511
509
  variant: y,
512
- widthOverrides: A,
513
- ...M
514
- }, K) {
515
- const E = !!(_ && m), v = !!(p && f), P = u ? Je : j, T = /* @__PURE__ */ N(Ae, { children: [
516
- g && /* @__PURE__ */ o(
517
- ae,
510
+ widthOverrides: S,
511
+ ...w
512
+ }, T) {
513
+ const A = !!(h && _), R = /* @__PURE__ */ N(Te, { children: [
514
+ C && /* @__PURE__ */ o(
515
+ rt,
518
516
  {
519
- "aria-label": r,
520
- onClick: (C) => {
521
- C.stopPropagation(), g?.();
517
+ "aria-label": n,
518
+ onClick: (m) => {
519
+ m.stopPropagation(), C?.();
522
520
  },
523
- onMouseDown: (C) => {
524
- C.stopPropagation();
521
+ onMouseDown: (m) => {
522
+ m.stopPropagation();
525
523
  },
526
- onTouchStart: (C) => {
527
- C.stopPropagation();
524
+ onTouchStart: (m) => {
525
+ m.stopPropagation();
528
526
  },
529
527
  sx: { minHeight: 40, minWidth: 40, position: "absolute", right: 4, top: 4 },
530
- children: /* @__PURE__ */ o(Ke, {})
528
+ children: /* @__PURE__ */ o($e, {})
531
529
  }
532
530
  ),
533
- /* @__PURE__ */ N(w, { sx: { gap: 6, height: "100%", justifyContent: "space-between" }, children: [
534
- /* @__PURE__ */ N(w, { sx: { flexDirection: "row", gap: 12 }, children: [
531
+ /* @__PURE__ */ N(F, { sx: { gap: 6, height: "100%", justifyContent: "space-between" }, children: [
532
+ /* @__PURE__ */ N(F, { sx: { flexDirection: "row", gap: 12 }, children: [
535
533
  l && l,
536
- /* @__PURE__ */ N(w, { sx: { gap: 6 }, children: [
537
- /* @__PURE__ */ o(w, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: /* @__PURE__ */ o(pe, { bold: !0, sx: { lineHeight: "16px" }, variant: "body1", children: S }) }),
534
+ /* @__PURE__ */ N(F, { sx: { gap: 6 }, children: [
535
+ /* @__PURE__ */ o(F, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: /* @__PURE__ */ o(pe, { bold: !0, sx: { lineHeight: "16px" }, variant: "body1", children: g }) }),
538
536
  /* @__PURE__ */ o(
539
537
  pe,
540
538
  {
@@ -544,7 +542,7 @@ const Y = h.createContext(null), ct = ({
544
542
  overflow: "hidden",
545
543
  textOverflow: "ellipsis",
546
544
  WebkitBoxOrient: "vertical",
547
- WebkitLineClamp: E ? 2 : 3,
545
+ WebkitLineClamp: A ? 2 : 3,
548
546
  "& .bold-copy": {
549
547
  fontWeight: "bold",
550
548
  fontFamily: "inherit"
@@ -555,8 +553,8 @@ const Y = h.createContext(null), ct = ({
555
553
  )
556
554
  ] })
557
555
  ] }),
558
- E && /* @__PURE__ */ N(
559
- w,
556
+ A && /* @__PURE__ */ N(
557
+ F,
560
558
  {
561
559
  sx: {
562
560
  alignItems: "center",
@@ -566,40 +564,40 @@ const Y = h.createContext(null), ct = ({
566
564
  pl: l ? 36 : 0
567
565
  },
568
566
  children: [
569
- E && /* @__PURE__ */ o(
570
- ie,
567
+ A && /* @__PURE__ */ o(
568
+ ge,
571
569
  {
572
- onClick: (C) => {
573
- C.stopPropagation(), _?.();
570
+ onClick: (m) => {
571
+ m.stopPropagation(), h?.();
574
572
  },
575
- onMouseDown: (C) => {
576
- C.stopPropagation();
573
+ onMouseDown: (m) => {
574
+ m.stopPropagation();
577
575
  },
578
- onTouchStart: (C) => {
579
- C.stopPropagation();
576
+ onTouchStart: (m) => {
577
+ m.stopPropagation();
580
578
  },
581
579
  size: "small",
582
580
  sx: { px: 8, ml: l ? 0 : -8 },
583
581
  variant: "text",
584
- children: /* @__PURE__ */ o(me, { bold: !0, variant: "body2", children: m })
582
+ children: /* @__PURE__ */ o(me, { bold: !0, variant: "body2", children: _ })
585
583
  }
586
584
  ),
587
- v && /* @__PURE__ */ o(
588
- ie,
585
+ !!(d && p) && /* @__PURE__ */ o(
586
+ ge,
589
587
  {
590
- onClick: (C) => {
591
- C.stopPropagation(), p?.();
588
+ onClick: (m) => {
589
+ m.stopPropagation(), d?.();
592
590
  },
593
- onMouseDown: (C) => {
594
- C.stopPropagation();
591
+ onMouseDown: (m) => {
592
+ m.stopPropagation();
595
593
  },
596
- onTouchStart: (C) => {
597
- C.stopPropagation();
594
+ onTouchStart: (m) => {
595
+ m.stopPropagation();
598
596
  },
599
597
  size: "small",
600
598
  sx: { px: 8 },
601
599
  variant: "text",
602
- children: /* @__PURE__ */ o(me, { bold: !0, sx: { color: "text.secondary" }, variant: "body2", children: f })
600
+ children: /* @__PURE__ */ o(me, { bold: !0, sx: { color: "text.secondary" }, variant: "body2", children: p })
603
601
  }
604
602
  )
605
603
  ]
@@ -608,92 +606,94 @@ const Y = h.createContext(null), ct = ({
608
606
  ] })
609
607
  ] });
610
608
  return /* @__PURE__ */ o(
611
- P,
609
+ ot,
612
610
  {
613
611
  "aria-hidden": !a,
614
612
  "aria-label": e,
615
- ref: K,
613
+ elevation: r,
614
+ ref: T,
616
615
  role: "group",
617
616
  sx: {
618
617
  backgroundColor: "background.paper",
619
- height: I ? "100%" : 120,
620
- minWidth: A ? `${A}px` : "100%",
618
+ height: u ? "100%" : 120,
619
+ minWidth: S ? `${S}px` : "100%",
621
620
  position: "relative",
622
621
  my: 1,
623
- ...n
622
+ borderRadius: 2
624
623
  },
625
- tabIndex: d || !a ? -1 : 0,
624
+ tabIndex: E || !a ? -1 : 0,
626
625
  variant: y,
627
- ...M,
628
- children: d ? /* @__PURE__ */ o(
629
- et,
626
+ ...w,
627
+ children: E ? /* @__PURE__ */ o(
628
+ nt,
630
629
  {
631
630
  component: "div",
632
- onClick: d,
631
+ onClick: E,
633
632
  sx: {
634
633
  pb: 8,
635
634
  pt: 16,
636
635
  px: 16,
637
636
  height: "100%"
638
637
  },
639
- children: T
638
+ children: R
640
639
  }
641
- ) : /* @__PURE__ */ o(j, { sx: { pb: 8, pt: 16, px: 16, height: "100%" }, children: T })
640
+ ) : /* @__PURE__ */ o(it, { sx: { pb: 8, pt: 16, px: 16, height: "100%" }, children: R })
642
641
  }
643
642
  );
644
643
  }
645
- ), At = ({
644
+ ), Wt = ({
646
645
  ariaLabel: t,
647
646
  beat: e,
648
- index: n,
647
+ elevation: n,
648
+ index: i,
649
649
  isActiveCard: r,
650
- onCardClick: i,
651
- posthog: l,
652
- widthOverrides: a,
653
- variant: u,
654
- showIcon: I,
655
- heightOverrides: g
650
+ onCardClick: l,
651
+ posthog: a,
652
+ widthOverrides: u,
653
+ variant: C,
654
+ showIcon: E,
655
+ heightOverrides: h
656
656
  }) => {
657
- const { ref: d, inView: _ } = Te({
658
- threshold: De
659
- }), { cardsCopy: p } = D(), { onEvent: m } = X(), { updateBeat: f, updateOffer: S } = It();
657
+ const { ref: d, inView: _ } = Oe({
658
+ threshold: Be
659
+ }), { cardsCopy: p } = D(), { onEvent: g } = $(), { updateBeat: y, updateOffer: S } = Tt();
660
660
  re(() => {
661
- _ && (e.has_been_displayed ? m(We(e.template)) : (e.guid.startsWith("OFR") ? S({
661
+ _ && (e.has_been_displayed ? g(Ne(e.template)) : (e.guid.startsWith("OFR") ? S({
662
662
  ...e,
663
663
  has_been_displayed: !0
664
- }) : f({
664
+ }) : y({
665
665
  ...e,
666
666
  has_been_displayed: !0
667
- }), m(we(e.template))));
667
+ }), g(Me(e.template))));
668
668
  }, [_]), re(() => {
669
669
  if (_ && e)
670
670
  if (e.template === "MarketingOffer") {
671
- const A = e;
672
- l?.capture("viewed_messaging_insight", {
671
+ const T = e;
672
+ a?.capture("viewed_messaging_insight", {
673
673
  template: e.template,
674
- campaign_guid: A.campaign_guid,
675
- campaign_name: A.pulse_campaign_name
674
+ campaign_guid: T.campaign_guid,
675
+ campaign_name: T.pulse_campaign_name
676
676
  });
677
677
  } else
678
- l?.capture("viewed_insight", {
678
+ a?.capture("viewed_insight", {
679
679
  beat_guid: e.guid,
680
680
  template: e.template,
681
- position: n
681
+ position: i
682
682
  });
683
- }, [e, n, _]);
684
- const y = () => {
685
- if (i && i(e), m(Oe(e.template)), e.template === "MarketingOffer") {
686
- const A = e;
687
- l?.capture("clicked_messaging_insight", {
683
+ }, [e, i, _]);
684
+ const w = () => {
685
+ if (l && l(e), g(we(e.template)), e.template === "MarketingOffer") {
686
+ const T = e;
687
+ a?.capture("clicked_messaging_insight", {
688
688
  template: e.template,
689
- campaign_guid: A.campaign_guid,
690
- campaign_name: A.pulse_campaign_name
689
+ campaign_guid: T.campaign_guid,
690
+ campaign_name: T.pulse_campaign_name
691
691
  });
692
692
  } else
693
- l?.capture("clicked_insight", {
693
+ a?.capture("clicked_insight", {
694
694
  beat_guid: e.guid,
695
695
  template: e.template,
696
- position: n
696
+ position: i
697
697
  });
698
698
  };
699
699
  return /* @__PURE__ */ o(
@@ -701,36 +701,33 @@ const Y = h.createContext(null), ct = ({
701
701
  {
702
702
  "aria-roledescription": "slide",
703
703
  ariaLabel: t,
704
- cardSx: {
705
- borderRadius: 2
706
- },
707
704
  description: e?.html_micro_description && e?.html_micro_description.length > 0 ? e.html_micro_description : e.html_description || "",
708
- hasCardEffect: !0,
709
- heightOverrides: g,
710
- icon: I && /* @__PURE__ */ o(Et, { beat: e }),
705
+ elevation: n,
706
+ heightOverrides: h,
707
+ icon: E && /* @__PURE__ */ o(St, { beat: e }),
711
708
  isActiveCard: r,
712
- onCardClick: y,
713
- onPrimaryAction: y,
709
+ onCardClick: w,
710
+ onPrimaryAction: w,
714
711
  primaryActionText: e.micro_call_to_action || p?.micro_card_cta,
715
712
  ref: d,
716
713
  title: e.micro_title && e.micro_title.length > 0 ? e.micro_title : e.title,
717
- variant: u,
718
- widthOverrides: a
714
+ variant: C,
715
+ widthOverrides: u
719
716
  }
720
717
  );
721
- }, St = ({
718
+ }, wt = ({
722
719
  currentBeatIndex: t,
723
720
  numBeats: e,
724
721
  onNextClick: n,
725
- onPreviousClick: r,
726
- scrollRightBoundary: i,
722
+ onPreviousClick: i,
723
+ scrollRightBoundary: r,
727
724
  scrollX: l,
728
725
  shouldApplyDotAnimation: a = !1,
729
726
  visibleCardsCount: u = 1
730
727
  }) => {
731
- const I = k(), { carouselCopy: g } = D(), d = Math.floor(l) > i || t - u + 1 === 0, _ = l < 0 || e - 1 === t, p = I.palette.grey[500], m = I.palette.primary.main;
728
+ const C = P(), { carouselCopy: E } = D(), h = Math.floor(l) > r || t - u + 1 === 0, d = l < 0 || e - 1 === t, _ = C.palette.grey[500], p = C.palette.primary.main;
732
729
  return /* @__PURE__ */ N(
733
- w,
730
+ k,
734
731
  {
735
732
  direction: "row",
736
733
  sx: {
@@ -745,30 +742,30 @@ const Y = h.createContext(null), ct = ({
745
742
  },
746
743
  children: [
747
744
  /* @__PURE__ */ o(
748
- ae,
745
+ ue,
749
746
  {
750
- "aria-disabled": d,
751
- "aria-label": g?.previous_insight_cta_aria,
752
- disabled: d,
753
- onClick: r,
747
+ "aria-disabled": h,
748
+ "aria-label": E?.previous_insight_cta_aria,
749
+ disabled: h,
750
+ onClick: i,
754
751
  children: /* @__PURE__ */ o(
755
- Fe,
752
+ je,
756
753
  {
757
754
  sx: {
758
- color: d ? p : m
755
+ color: h ? _ : p
759
756
  }
760
757
  }
761
758
  )
762
759
  }
763
760
  ),
764
- Array.from({ length: e }).map((f, S) => {
765
- const y = S === t;
761
+ Array.from({ length: e }).map((g, y) => {
762
+ const S = y === t;
766
763
  return /* @__PURE__ */ o(
767
- j,
764
+ ae,
768
765
  {
769
766
  className: "mx-insights-micro-carousel-dots",
770
767
  sx: {
771
- bgcolor: y ? m : p,
768
+ bgcolor: S ? p : _,
772
769
  height: 8,
773
770
  mr: 8,
774
771
  // existing comment from meganthan "we were using `gap` instead of margin, but it doesn't work in safari browsers older than iOS 14.1"
@@ -781,24 +778,24 @@ const Y = h.createContext(null), ct = ({
781
778
  borderRadius: "50%",
782
779
  p: 0
783
780
  },
784
- width: y && a ? 24 : 8
781
+ width: S && a ? 24 : 8
785
782
  }
786
783
  },
787
- `carousel-button-${S}`
784
+ `carousel-button-${y}`
788
785
  );
789
786
  }),
790
787
  /* @__PURE__ */ o(
791
- ae,
788
+ ue,
792
789
  {
793
- "aria-disabled": _,
794
- "aria-label": g?.next_insight_cta_aria,
795
- disabled: _,
790
+ "aria-disabled": d,
791
+ "aria-label": E?.next_insight_cta_aria,
792
+ disabled: d,
796
793
  onClick: n,
797
794
  children: /* @__PURE__ */ o(
798
- Se,
795
+ Re,
799
796
  {
800
797
  sx: {
801
- color: _ ? p : m
798
+ color: d ? _ : p
802
799
  }
803
800
  }
804
801
  )
@@ -807,131 +804,134 @@ const Y = h.createContext(null), ct = ({
807
804
  ]
808
805
  }
809
806
  );
810
- }, Tt = ({
807
+ }, Nt = ({
811
808
  activeCardIndex: t,
812
809
  beats: e,
813
810
  cardWidth: n,
811
+ elevation: i,
814
812
  heightOverrides: r,
815
- onCardClick: i,
816
- posthog: l,
817
- showIcon: a,
818
- variant: u
813
+ onCardClick: l,
814
+ posthog: a,
815
+ showIcon: u,
816
+ variant: C
819
817
  }) => {
820
- const { carouselCopy: I } = D(), g = {
818
+ const { carouselCopy: E } = D(), h = {
819
+ elevation: i,
821
820
  heightOverrides: r,
822
- posthog: l,
823
- showIcon: a,
824
- variant: u
821
+ posthog: a,
822
+ showIcon: u,
823
+ variant: C
825
824
  };
826
- return /* @__PURE__ */ N(Ae, { children: [
825
+ return /* @__PURE__ */ N(Te, { children: [
827
826
  e.map((d, _) => {
828
- const p = _ + 1, m = e.length + 1, f = je(
829
- I?.card_position_in_carousel_aria,
827
+ const p = _ + 1, g = e.length + 1, y = Ze(
828
+ E?.card_position_in_carousel_aria,
830
829
  p.toString(),
831
- m.toString()
832
- ), S = d.micro_title && d.micro_title.length > 0, y = d.micro_description && d.micro_description.length > 0, A = S ? d.micro_title : d.title, M = y ? d.micro_description : d.description;
830
+ g.toString()
831
+ ), S = d.micro_title && d.micro_title.length > 0, w = d.micro_description && d.micro_description.length > 0, T = S ? d.micro_title : d.title, A = w ? d.micro_description : d.description;
833
832
  return /* @__PURE__ */ o(
834
- At,
833
+ Wt,
835
834
  {
836
- ariaLabel: `${f}: ${A}, ${M}`,
835
+ ariaLabel: `${y}: ${T}, ${A}`,
837
836
  beat: d,
838
837
  index: _,
839
838
  isActiveCard: _ === t,
840
- onCardClick: i,
839
+ onCardClick: l,
841
840
  widthOverrides: n || void 0,
842
- ...g
841
+ ...h
843
842
  },
844
843
  `${d.guid} ${_}`
845
844
  );
846
845
  }),
847
846
  /* @__PURE__ */ o(
848
- xt,
847
+ Vt,
849
848
  {
850
849
  isActiveCard: t === e.length,
851
- onCardClick: i,
850
+ onCardClick: l,
852
851
  widthOverrides: n || void 0,
853
- ...g
852
+ ...h
854
853
  }
855
854
  )
856
855
  ] });
857
- }, Rt = ({
856
+ }, Mt = ({
858
857
  analyticsMetadata: t,
859
- allowSingleCardPeeking: e = !1,
858
+ allowSingleCardPeeking: e,
860
859
  beats: n = [],
860
+ elevation: i,
861
861
  heightOverrides: r,
862
- onCardClick: i,
863
- posthog: l,
864
- showCarouselControls: a,
865
- showIcon: u,
866
- showWithMargin: I = !0,
867
- variant: g,
862
+ onCardClick: l,
863
+ posthog: a,
864
+ showCarouselControls: u,
865
+ showIcon: C,
866
+ showWithMargin: E = !0,
867
+ variant: h,
868
868
  widthOverrides: d,
869
869
  visibleCardsCount: _ = 1
870
870
  // Default to 1 card visible
871
871
  }) => {
872
- const p = h.useRef(null), m = h.useRef(null), [f, S] = h.useState(0), [y, A] = h.useState(null), [M, K] = h.useState(null), [E, v] = h.useState(null), { carouselCopy: P } = D(), { onEvent: T } = X();
873
- h.useEffect(() => {
872
+ const p = I.useRef(null), g = I.useRef(null), [y, S] = I.useState(0), [w, T] = I.useState(null), [A, ee] = I.useState(null), [R, m] = I.useState(null), { carouselCopy: j } = D(), { onEvent: M } = $();
873
+ I.useEffect(() => {
874
874
  if (p.current && !e) {
875
- const W = p.current.offsetWidth, H = 8;
876
- let U;
875
+ const f = p.current.offsetWidth, z = 8;
876
+ let G;
877
877
  if (_ > 1) {
878
- const de = (W - (_ - 1) * H) / _ / 3;
879
- U = (W - de - (_ - 1) * H) / _;
878
+ const de = (f - (_ - 1) * z) / _ / 3;
879
+ G = (f - de - (_ - 1) * z) / _;
880
880
  } else
881
- U = W;
882
- v(U);
881
+ G = f;
882
+ m(G);
883
883
  }
884
- }, [_, p.current?.offsetWidth]), h.useEffect(() => {
885
- const W = m.current?.offsetWidth;
886
- if (typeof W == "number" && e) {
887
- const H = ($) => {
884
+ }, [_, p.current?.offsetWidth]), I.useEffect(() => {
885
+ const f = g.current?.offsetWidth;
886
+ if (typeof f == "number" && e) {
887
+ const z = (K) => {
888
888
  const _e = [
889
889
  { maxWidth: 375, cardWidth: 268 },
890
890
  { maxWidth: 444, cardWidth: 300 },
891
891
  { maxWidth: 599, cardWidth: 350 },
892
892
  { maxWidth: 749, cardWidth: 450 },
893
893
  { maxWidth: 900, cardWidth: 600 }
894
- ].find((Be) => $ <= Be.maxWidth);
894
+ ].find((Ge) => K <= Ge.maxWidth);
895
895
  return _e ? _e.cardWidth : 750;
896
896
  };
897
- v(H(W));
898
- const U = () => {
899
- const $ = m.current?.offsetWidth;
900
- typeof $ == "number" && v(H($));
897
+ m(z(f));
898
+ const G = () => {
899
+ const K = g.current?.offsetWidth;
900
+ typeof K == "number" && m(z(K));
901
901
  };
902
- return window.addEventListener("resize", U), () => {
903
- window.removeEventListener("resize", U);
902
+ return window.addEventListener("resize", G), () => {
903
+ window.removeEventListener("resize", G);
904
904
  };
905
905
  }
906
- }, [e, m]);
907
- const C = () => {
908
- T(O.ON_CAROUSEL_FORWARD_CLICK, t), p.current && E && p.current.scrollTo({
909
- left: f + E + 8,
906
+ }, [e, g]);
907
+ const V = () => {
908
+ M(W.ON_CAROUSEL_FORWARD_CLICK, t), p.current && R && p.current.scrollTo({
909
+ left: y + R + 8,
910
910
  top: 0,
911
911
  behavior: "smooth"
912
912
  });
913
- }, Z = () => {
914
- T(O.ON_CAROUSEL_BACK_CLICK, t), p.current && E && p.current.scrollTo({
915
- left: Math.max(0, f - (E + 8)),
913
+ }, te = () => {
914
+ M(W.ON_CAROUSEL_BACK_CLICK, t), p.current && R && p.current.scrollTo({
915
+ left: Math.max(0, y - (R + 8)),
916
916
  top: 0,
917
917
  behavior: "smooth"
918
918
  });
919
- }, Q = () => {
919
+ }, Y = () => {
920
920
  p.current && S(p.current.scrollLeft);
921
- }, ee = () => {
922
- if (!M || !y) return;
923
- M - y > yt ? T(O.ON_CAROUSEL_FORWARD_SWIPE, t) : T(O.ON_CAROUSEL_BACK_SWIPE, t);
924
- }, te = (W) => {
925
- A(W.targetTouches[0].clientX);
926
- }, oe = (W) => {
927
- A(null), K(W.targetTouches[0].clientX);
928
- }, F = E ? Math.round(f / (E + 8)) : 0, B = p.current ? p.current.scrollWidth - p.current.offsetWidth : 0;
921
+ }, X = () => {
922
+ if (!A || !w) return;
923
+ A - w > Ot ? M(W.ON_CAROUSEL_FORWARD_SWIPE, t) : M(W.ON_CAROUSEL_BACK_SWIPE, t);
924
+ }, oe = (f) => {
925
+ T(f.targetTouches[0].clientX);
926
+ }, ne = (f) => {
927
+ T(null), ee(f.targetTouches[0].clientX);
928
+ }, Z = R ? Math.round(y / (R + 8)) : 0, Q = p.current ? p.current.scrollWidth - p.current.offsetWidth : 0;
929
929
  return /* @__PURE__ */ N(
930
- w,
930
+ k,
931
931
  {
932
- "aria-label": P?.carousel_title,
932
+ "aria-label": j?.carousel_title,
933
933
  "aria-roledescription": "carousel",
934
- ref: m,
934
+ ref: g,
935
935
  role: "region",
936
936
  sx: {
937
937
  alignItems: "center",
@@ -941,13 +941,13 @@ const Y = h.createContext(null), ct = ({
941
941
  },
942
942
  children: [
943
943
  /* @__PURE__ */ o(
944
- w,
944
+ k,
945
945
  {
946
946
  direction: "row",
947
- onScroll: Q,
948
- onTouchEnd: ee,
949
- onTouchMove: te,
950
- onTouchStart: oe,
947
+ onScroll: Y,
948
+ onTouchEnd: X,
949
+ onTouchMove: oe,
950
+ onTouchStart: ne,
951
951
  ref: p,
952
952
  sx: {
953
953
  alignItems: "center",
@@ -955,7 +955,7 @@ const Y = h.createContext(null), ct = ({
955
955
  gap: 8,
956
956
  listStyleType: "none",
957
957
  m: 0,
958
- maxWidth: I ? "calc(100% - 32px)" : "100%",
958
+ maxWidth: E ? "calc(100% - 32px)" : "100%",
959
959
  overflowX: "auto",
960
960
  overflowY: "hidden",
961
961
  p: 0,
@@ -967,29 +967,30 @@ const Y = h.createContext(null), ct = ({
967
967
  }
968
968
  },
969
969
  children: /* @__PURE__ */ o(
970
- Tt,
970
+ Nt,
971
971
  {
972
- activeCardIndex: F,
972
+ activeCardIndex: Z,
973
973
  beats: n,
974
- cardWidth: E,
974
+ cardWidth: R,
975
+ elevation: i,
975
976
  heightOverrides: r,
976
- onCardClick: i,
977
- posthog: l,
978
- showIcon: u,
979
- variant: g
977
+ onCardClick: l,
978
+ posthog: a,
979
+ showIcon: C,
980
+ variant: h
980
981
  }
981
982
  )
982
983
  }
983
984
  ),
984
- a && /* @__PURE__ */ o(
985
- St,
985
+ u && /* @__PURE__ */ o(
986
+ wt,
986
987
  {
987
- currentBeatIndex: F + _ - 1,
988
+ currentBeatIndex: Z + _ - 1,
988
989
  numBeats: n.length + 1,
989
- onNextClick: C,
990
- onPreviousClick: Z,
991
- scrollRightBoundary: B,
992
- scrollX: f,
990
+ onNextClick: V,
991
+ onPreviousClick: te,
992
+ scrollRightBoundary: Q,
993
+ scrollX: y,
993
994
  shouldApplyDotAnimation: e,
994
995
  visibleCardsCount: _
995
996
  }
@@ -997,18 +998,18 @@ const Y = h.createContext(null), ct = ({
997
998
  ]
998
999
  }
999
1000
  );
1000
- }, Ot = z(Rt), Wt = ({
1001
+ }, vt = U(Mt), Lt = ({
1001
1002
  analyticsMetadata: t,
1002
1003
  onCardClick: e,
1003
1004
  posthog: n,
1004
- widthOverrides: r,
1005
- headerSx: i
1005
+ widthOverrides: i,
1006
+ headerSx: r
1006
1007
  }) => {
1007
- const { carouselCopy: l } = D(), { onEvent: a } = X(), u = () => {
1008
- a && (a(O.ON_VIEW_MORE_CLICKED, t), e(), n?.capture("clicked_view_more"));
1008
+ const { carouselCopy: l } = D(), { onEvent: a } = $(), u = () => {
1009
+ a && (a(W.ON_VIEW_MORE_CLICKED, t), e(), n?.capture("clicked_view_more"));
1009
1010
  };
1010
1011
  return l ? /* @__PURE__ */ N(
1011
- w,
1012
+ k,
1012
1013
  {
1013
1014
  alignItems: "center",
1014
1015
  direction: "row",
@@ -1017,15 +1018,15 @@ const Y = h.createContext(null), ct = ({
1017
1018
  sx: {
1018
1019
  p: 16,
1019
1020
  pb: 8,
1020
- width: r || void 0,
1021
- ...i
1021
+ width: i || void 0,
1022
+ ...r
1022
1023
  },
1023
1024
  children: [
1024
- /* @__PURE__ */ o(Ue, { children: l.carousel_title }),
1025
+ /* @__PURE__ */ o(Fe, { children: l.carousel_title }),
1025
1026
  /* @__PURE__ */ o(
1026
- ie,
1027
+ ke,
1027
1028
  {
1028
- endIcon: /* @__PURE__ */ o(Se, { size: 20 }),
1029
+ endIcon: /* @__PURE__ */ o(Re, { size: 20 }),
1029
1030
  onClick: u,
1030
1031
  size: "small",
1031
1032
  variant: "text",
@@ -1034,17 +1035,17 @@ const Y = h.createContext(null), ct = ({
1034
1035
  )
1035
1036
  ]
1036
1037
  }
1037
- ) : /* @__PURE__ */ o(He, {});
1038
- }, wt = z(Wt), Nt = ({
1038
+ ) : /* @__PURE__ */ o(Ye, {});
1039
+ }, bt = U(Lt), Dt = ({
1039
1040
  heightOverrides: t,
1040
1041
  widthOverrides: e,
1041
1042
  children: n
1042
1043
  }) => {
1043
- const { carouselCopy: r } = D();
1044
+ const { carouselCopy: i } = D();
1044
1045
  return /* @__PURE__ */ o(
1045
- j,
1046
+ ae,
1046
1047
  {
1047
- "aria-label": r?.carousel_title,
1048
+ "aria-label": i?.carousel_title,
1048
1049
  "aria-roledescription": "carousel",
1049
1050
  role: "group",
1050
1051
  sx: {
@@ -1056,20 +1057,21 @@ const Y = h.createContext(null), ct = ({
1056
1057
  children: n
1057
1058
  }
1058
1059
  );
1059
- }, ve = ({
1060
+ }, Pe = ({
1060
1061
  ariaLabel: t,
1061
- heightOverrides: e,
1062
- onCardClick: n,
1062
+ elevation: e,
1063
+ heightOverrides: n,
1064
+ onCardClick: i,
1063
1065
  posthog: r,
1064
- showIcon: i,
1065
- variant: l
1066
+ showIcon: l,
1067
+ variant: a
1066
1068
  }) => {
1067
- const { cardsCopy: a } = D(), u = k(), { onEvent: I } = X(), { onPageview: g } = xe();
1068
- h.useEffect(() => {
1069
- g(G.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS);
1069
+ const { cardsCopy: u } = D(), C = P(), { onEvent: E } = $(), { onPageview: h } = xe();
1070
+ I.useEffect(() => {
1071
+ h(B.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS);
1070
1072
  }, []);
1071
1073
  const d = () => {
1072
- n && n(), I(O.ON_NO_RELEVANT_INSIGHTS_CLICKED), r?.capture("clicked_insight", {
1074
+ i && i(), E(W.ON_NO_RELEVANT_INSIGHTS_CLICKED), r?.capture("clicked_insight", {
1073
1075
  template: "no_relevant_insights"
1074
1076
  });
1075
1077
  };
@@ -1077,48 +1079,43 @@ const Y = h.createContext(null), ct = ({
1077
1079
  J,
1078
1080
  {
1079
1081
  ariaLabel: t,
1080
- cardSx: {
1081
- borderRadius: 2
1082
- },
1083
- description: a.no_relevant_insights_card_description,
1084
- hasCardEffect: !0,
1085
- heightOverrides: e,
1086
- icon: i && /* @__PURE__ */ o(c, { bgColor: s(u.palette.primary.main, 0.15), name: "lightbulb" }),
1082
+ description: u.no_relevant_insights_card_description,
1083
+ elevation: e,
1084
+ heightOverrides: n,
1085
+ icon: l && /* @__PURE__ */ o(c, { bgColor: s(C.palette.primary.main, 0.15), name: "lightbulb" }),
1087
1086
  onCardClick: d,
1088
1087
  onPrimaryAction: d,
1089
- primaryActionText: a.micro_card_cta,
1090
- title: a.no_relevant_insights_card_title,
1091
- variant: l
1088
+ primaryActionText: u.micro_card_cta,
1089
+ title: u.no_relevant_insights_card_title,
1090
+ variant: a
1092
1091
  }
1093
1092
  );
1094
- }, oo = z(ve), Pe = ({
1093
+ }, ao = U(Pe), Ve = ({
1095
1094
  ariaLabel: t,
1096
- heightOverrides: e,
1097
- onCardClick: n,
1095
+ elevation: e,
1096
+ heightOverrides: n,
1097
+ onCardClick: i,
1098
1098
  showIcon: r,
1099
- variant: i
1099
+ variant: l
1100
1100
  }) => {
1101
- const { onPageview: l } = xe(), { zeroStateCopy: a } = D(), u = k();
1102
- return h.useEffect(() => {
1103
- l(G.MICRO_WIDGET_CAROUSEL_ZERO_STATE);
1101
+ const { onPageview: a } = xe(), { zeroStateCopy: u } = D(), C = P();
1102
+ return I.useEffect(() => {
1103
+ a(B.MICRO_WIDGET_CAROUSEL_ZERO_STATE);
1104
1104
  }, []), /* @__PURE__ */ o(
1105
1105
  J,
1106
1106
  {
1107
1107
  ariaLabel: t,
1108
- cardSx: {
1109
- borderRadius: 2
1110
- },
1111
- description: a.carousel_zero_state_description,
1112
- hasCardEffect: !0,
1113
- heightOverrides: e,
1114
- icon: r && /* @__PURE__ */ o(c, { bgColor: s(u.palette.primary.main, 0.15), name: "lightbulb" }),
1115
- onCardClick: n,
1116
- title: a.carousel_zero_state_title,
1117
- variant: i
1108
+ description: u.carousel_zero_state_description,
1109
+ elevation: e,
1110
+ heightOverrides: n,
1111
+ icon: r && /* @__PURE__ */ o(c, { bgColor: s(C.palette.primary.main, 0.15), name: "lightbulb" }),
1112
+ onCardClick: i,
1113
+ title: u.carousel_zero_state_title,
1114
+ variant: l
1118
1115
  }
1119
1116
  );
1120
- }, no = z(Pe), Mt = () => /* @__PURE__ */ o(
1121
- j,
1117
+ }, so = U(Ve), xt = () => /* @__PURE__ */ o(
1118
+ ae,
1122
1119
  {
1123
1120
  sx: {
1124
1121
  alignItems: "center",
@@ -1127,130 +1124,137 @@ const Y = h.createContext(null), ct = ({
1127
1124
  justifyContent: "center",
1128
1125
  width: "100%"
1129
1126
  },
1130
- children: /* @__PURE__ */ o(Ye, {})
1127
+ children: /* @__PURE__ */ o(Qe, {})
1131
1128
  }
1132
- ), ye = {
1129
+ ), Se = {
1133
1130
  featureVersion: "spendVsIncomeTrends"
1134
- }, V = new st(), bt = ({
1131
+ }, x = new pt(), Bt = ({
1135
1132
  allowSingleCardPeeking: t = !0,
1136
1133
  areBeatsLoading: e = !1,
1137
1134
  beats: n = [],
1138
1135
  // This also determines the length of the carousel controls (beat.length + 1)
1136
+ cardStyle: i = "elevation 1",
1139
1137
  endpoint: r = "/",
1140
- heightOverrides: i,
1141
1138
  headerSx: l,
1142
- logOutUser: a = () => {
1139
+ heightOverrides: a,
1140
+ logOutUser: u = () => {
1143
1141
  },
1144
- onCardClick: u = () => {
1142
+ onCardClick: C = () => {
1145
1143
  },
1146
- onEvent: I = () => {
1144
+ onEvent: E = () => {
1147
1145
  },
1148
- onPageview: g = () => {
1146
+ onPageview: h = () => {
1149
1147
  },
1150
1148
  posthog: d,
1151
- showBorder: _ = !0,
1152
- showCarouselControls: p,
1153
- showHeader: m,
1154
- showIcon: f,
1155
- showWithMargin: S = !0,
1156
- token: y = "",
1157
- userHasFullInsightFeedBeats: A,
1158
- variant: M,
1159
- visibleCardsCount: K = 1,
1160
- widthOverrides: E
1149
+ showCarouselControls: _,
1150
+ showHeader: p,
1151
+ showIcon: g,
1152
+ showWithMargin: y = !0,
1153
+ token: S = "",
1154
+ userHasFullInsightFeedBeats: w,
1155
+ visibleCardsCount: T = 1,
1156
+ widthOverrides: A
1161
1157
  }) => {
1162
- const [v, P] = ne("STANDARD"), [T, C] = ne(!1), [Z, Q] = ne(!1), ee = Ze([I], V), te = Qe([g], V);
1163
- qe({
1158
+ const R = (() => {
1159
+ if (i === "border") return "outlined";
1160
+ if (i === "elevation 1") return "elevation";
1161
+ if (i !== "flat")
1162
+ return "elevation";
1163
+ })(), m = i === "flat" ? 0 : 1, [j, M] = ie("STANDARD"), [V, te] = ie(!1), [Y, X] = ie(!1), oe = Je([E], x), ne = et([h], x);
1164
+ tt({
1164
1165
  widgetName: "InsightsMicroWidget",
1165
- isLoaded: T
1166
- }), h.useEffect(() => {
1167
- !V.isInitialized && !Z && (V.initialize(r, y, a).catch(() => Q(!1)), Q(!0));
1168
- }, [r, y, a, V.isInitialized, Z]), h.useEffect(() => {
1169
- const B = window.innerHeight;
1170
- B < 180 ? P("STANDARD") : B >= 180 && B < 200 ? P("LARGE") : B >= 200 && B < 248 ? P("XLARGE") : B >= 248 && P("XXLARGE");
1171
- }, [window.innerHeight]), h.useEffect(() => {
1172
- C(!e && V.isInitialized);
1173
- }, [e, V.isInitialized]);
1174
- const oe = {
1175
- heightOverrides: i,
1176
- onCardClick: u,
1166
+ isLoaded: V
1167
+ }), I.useEffect(() => {
1168
+ !x.isInitialized && !Y && (x.initialize(r, S, u).catch(() => X(!1)), X(!0));
1169
+ }, [r, S, u, x.isInitialized, Y]), I.useEffect(() => {
1170
+ const f = window.innerHeight;
1171
+ f < 180 ? M("STANDARD") : f >= 180 && f < 200 ? M("LARGE") : f >= 200 && f < 248 ? M("XLARGE") : f >= 248 && M("XXLARGE");
1172
+ }, [window.innerHeight]), I.useEffect(() => {
1173
+ te(!e && x.isInitialized);
1174
+ }, [e, x.isInitialized]);
1175
+ const Z = {
1176
+ heightOverrides: a,
1177
+ onCardClick: C,
1177
1178
  posthog: d,
1178
- showIcon: f,
1179
- showWithMargin: S,
1180
- widthOverrides: E
1181
- }, F = {
1182
- carouselSize: v,
1183
- variant: M,
1184
- heightOverrides: i,
1185
- onCardClick: u,
1179
+ showIcon: g,
1180
+ showWithMargin: y,
1181
+ widthOverrides: A
1182
+ }, Q = {
1183
+ carouselSize: j,
1184
+ elevation: m,
1185
+ variant: R,
1186
+ heightOverrides: a,
1187
+ onCardClick: C,
1186
1188
  posthog: d,
1187
- showIcon: f
1189
+ showIcon: g
1188
1190
  };
1189
- return /* @__PURE__ */ o(ct, { onEvent: ee, onPageview: te, store: V, children: /* @__PURE__ */ N(Nt, { heightOverrides: i, widthOverrides: E, children: [
1190
- !T && /* @__PURE__ */ o(Mt, {}),
1191
- T && m && /* @__PURE__ */ o(
1192
- wt,
1191
+ return /* @__PURE__ */ o(mt, { onEvent: oe, onPageview: ne, store: x, children: /* @__PURE__ */ N(Dt, { heightOverrides: a, widthOverrides: A, children: [
1192
+ !V && /* @__PURE__ */ o(xt, {}),
1193
+ V && p && /* @__PURE__ */ o(
1194
+ bt,
1193
1195
  {
1194
- analyticsMetadata: ye,
1196
+ analyticsMetadata: Se,
1195
1197
  headerSx: l,
1196
- onCardClick: u,
1198
+ onCardClick: C,
1197
1199
  posthog: d,
1198
- widthOverrides: E
1200
+ widthOverrides: A
1199
1201
  }
1200
1202
  ),
1201
- T && !!n.length && /* @__PURE__ */ o(
1202
- Ot,
1203
+ V && !!n.length && /* @__PURE__ */ o(
1204
+ vt,
1203
1205
  {
1204
1206
  allowSingleCardPeeking: t,
1205
- analyticsMetadata: ye,
1207
+ analyticsMetadata: Se,
1206
1208
  beats: n,
1207
- showCarouselControls: p,
1208
- variant: _ ? M : void 0,
1209
- visibleCardsCount: K,
1210
- ...oe
1209
+ elevation: m,
1210
+ showCarouselControls: _,
1211
+ variant: R,
1212
+ visibleCardsCount: T,
1213
+ ...Z
1211
1214
  }
1212
1215
  ),
1213
- T && !n.length && /* @__PURE__ */ o(
1214
- w,
1216
+ V && !n.length && /* @__PURE__ */ o(
1217
+ k,
1215
1218
  {
1216
1219
  sx: {
1217
1220
  alignItems: "center",
1218
- height: i,
1219
- width: E || "100%"
1221
+ height: a,
1222
+ width: A || "100%"
1220
1223
  },
1221
1224
  children: /* @__PURE__ */ o(
1222
- w,
1225
+ k,
1223
1226
  {
1224
1227
  sx: {
1225
- height: `calc(${ft[v]}px - 44px)`,
1226
- width: S ? `calc(${E}px - 32px)` : "100%"
1228
+ height: `calc(${Rt[j]}px - 44px)`,
1229
+ width: y ? `calc(${A}px - 32px)` : "100%"
1227
1230
  },
1228
- children: A ? /* @__PURE__ */ o(ve, { ...F }) : /* @__PURE__ */ o(Pe, { ...F })
1231
+ children: w ? /* @__PURE__ */ o(Pe, { ...Q }) : /* @__PURE__ */ o(Ve, { ...Q })
1229
1232
  }
1230
1233
  )
1231
1234
  }
1232
1235
  )
1233
1236
  ] }) });
1234
- }, ro = z(bt), Lt = ({
1237
+ }, co = U(Bt), Pt = ({
1235
1238
  ariaLabel: t,
1236
- heightOverrides: e,
1237
- isActiveCard: n,
1239
+ elevation: e,
1240
+ heightOverrides: n,
1241
+ isActiveCard: i,
1238
1242
  onCardClick: r,
1239
- posthog: i,
1240
- widthOverrides: l,
1241
- showIcon: a,
1242
- variant: u
1243
+ posthog: l,
1244
+ widthOverrides: a,
1245
+ showIcon: u,
1246
+ variant: C
1243
1247
  }) => {
1244
- const I = k(), { ref: g, inView: d } = Te({
1245
- threshold: De
1246
- }), { cardsCopy: _ } = D(), { onEvent: p } = X();
1248
+ const E = P(), { ref: h, inView: d } = Oe({
1249
+ threshold: Be
1250
+ }), { cardsCopy: _ } = D(), { onEvent: p } = $();
1247
1251
  re(() => {
1248
- d && (p(Ne.ON_VIEW_MORE_VIEWED), i?.capture("viewed_insight", {
1252
+ d && (p(ve.ON_VIEW_MORE_VIEWED), l?.capture("viewed_insight", {
1249
1253
  template: "view_more_card"
1250
1254
  }));
1251
1255
  }, [d]);
1252
- const m = () => {
1253
- r && r(), p(O.ON_VIEW_MORE_CLICKED), i?.capture("clicked_insight", {
1256
+ const g = () => {
1257
+ r && r(), p(W.ON_VIEW_MORE_CLICKED), l?.capture("clicked_insight", {
1254
1258
  template: "view_more_card"
1255
1259
  });
1256
1260
  };
@@ -1259,36 +1263,33 @@ const Y = h.createContext(null), ct = ({
1259
1263
  {
1260
1264
  "aria-roledescription": "slide",
1261
1265
  ariaLabel: t,
1262
- cardSx: {
1263
- borderRadius: 2
1264
- },
1265
1266
  description: _?.view_more_card_description,
1266
- hasCardEffect: !0,
1267
- heightOverrides: e,
1268
- icon: a && /* @__PURE__ */ o(c, { bgColor: s(I.palette.primary.main, 0.15), name: "show_chart" }),
1269
- isActiveCard: n,
1270
- onCardClick: m,
1271
- onPrimaryAction: m,
1267
+ elevation: e,
1268
+ heightOverrides: n,
1269
+ icon: u && /* @__PURE__ */ o(c, { bgColor: s(E.palette.primary.main, 0.15), name: "show_chart" }),
1270
+ isActiveCard: i,
1271
+ onCardClick: g,
1272
+ onPrimaryAction: g,
1272
1273
  primaryActionText: _?.micro_card_cta,
1273
- ref: g,
1274
+ ref: h,
1274
1275
  title: _?.view_more_card_title,
1275
- variant: u,
1276
- widthOverrides: l
1276
+ variant: C,
1277
+ widthOverrides: a
1277
1278
  }
1278
1279
  );
1279
- }, xt = z(Lt);
1280
+ }, Vt = U(Pt);
1280
1281
  export {
1281
- st as A,
1282
+ pt as A,
1282
1283
  c as B,
1283
- wt as C,
1284
- At as I,
1285
- Ot as M,
1286
- oo as N,
1287
- ye as T,
1288
- xt as V,
1289
- no as Z,
1290
- ro as a,
1291
- ct as b,
1284
+ bt as C,
1285
+ Wt as I,
1286
+ vt as M,
1287
+ ao as N,
1288
+ Se as T,
1289
+ Vt as V,
1290
+ so as Z,
1291
+ co as a,
1292
+ mt as b,
1292
1293
  J as c,
1293
- mt as d
1294
+ It as d
1294
1295
  };