@mx-cartographer/experiences 9.0.3 → 9.0.4

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 (93) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/{Account-BaJmiJAG.mjs → Account-DR7Plrqy.mjs} +10 -10
  3. package/dist/AccountDetailsDrawer-C8oJP3J4.mjs +921 -0
  4. package/dist/AccountDetailsHeader-ByGNPZpO.mjs +228 -0
  5. package/dist/{AccountUtils-T5_Odvos.mjs → AccountUtils-B8ZzWI-d.mjs} +3 -3
  6. package/dist/{Analytics-CzGzz_sE.mjs → Analytics-WeZYytR0.mjs} +3 -0
  7. package/dist/BeatMaterialIcon-1KOfRZrA.mjs +26 -0
  8. package/dist/{CategorySelectorDrawer-8soGrhB8.mjs → CategorySelectorDrawer-BArJC27L.mjs} +1 -1
  9. package/dist/Connect-BH0Pt6zc.mjs +42 -0
  10. package/dist/{ConnectCard-CCep7Zqe.mjs → ConnectCard-Dwfgv24k.mjs} +1 -1
  11. package/dist/{ConnectDrawer-Cnjr3Ddg.mjs → ConnectDrawer-DytyIhaF.mjs} +8 -9
  12. package/dist/{ConnectionsDrawer-CtfPXk0M.mjs → ConnectionsDrawer-BHJPKXYF.mjs} +8 -9
  13. package/dist/{CurrencyInput-adTIRtL3.mjs → CurrencyInput-DaGEQaLW.mjs} +1 -1
  14. package/dist/DateUtil-CzBmbjmA.mjs +74 -0
  15. package/dist/{DebtUtils-DD3186U-.mjs → DebtUtils-i4pI2Uoe.mjs} +6 -6
  16. package/dist/{EmbeddedCard-DPwJjqMH.mjs → EmbeddedCard-CQpbZrmP.mjs} +4 -4
  17. package/dist/{Error-Dogaw2jO.mjs → Error-Dtw6yxkf.mjs} +1 -1
  18. package/dist/{ExportCsvAction-Bw02ZJEj.mjs → ExportCsvAction-bovG-NJr.mjs} +2 -2
  19. package/dist/{GlobalAccountFilter-7Cg2-9A5.mjs → GlobalAccountFilter-CYqzqmAd.mjs} +10 -10
  20. package/dist/{Help-DJ8PrVHX.mjs → Help-5klKVqkX.mjs} +2 -2
  21. package/dist/{LineChart-CejWS_rh.mjs → LineChart-CUfiH86G.mjs} +1 -1
  22. package/dist/{ListItemAction-CzZ8s39Z.mjs → ListItemAction-BqUCLj_w.mjs} +1 -1
  23. package/dist/{ListItemWrapper-B5r-YQQ_.mjs → ListItemWrapper-BHIbqx7E.mjs} +3 -3
  24. package/dist/ManageIncome-Cz6hvpdA.mjs +902 -0
  25. package/dist/{MicroWidgetContainer-CfKdQfhi.mjs → MicroWidgetContainer-B2NnKBgW.mjs} +1 -1
  26. package/dist/{MiniWidgetContainer-BdPiUU-u.mjs → MiniWidgetContainer-Bmv_WeUd.mjs} +1 -1
  27. package/dist/{NetWorthUtils-DilGN1nW.mjs → NetWorthUtils-DfSH3z70.mjs} +2 -2
  28. package/dist/{NotificationSettings-B4JA5IKE.mjs → NotificationSettings-Ci89BBRI.mjs} +4 -4
  29. package/dist/{OriginalBalanceAction-BybTXDtO.mjs → OriginalBalanceAction-YrvxBYAl.mjs} +3 -3
  30. package/dist/{RecurringSettings-D2xbNb67.mjs → RecurringSettings-ClYjsmPz.mjs} +4 -4
  31. package/dist/RecurringTransactionsUtil-zOxq5pzY.mjs +298 -0
  32. package/dist/Select-CSpkK5cR.mjs +61 -0
  33. package/dist/{SpendingLegend-5Ct_FZ8o.mjs → SpendingLegend-Bn3DzGyK.mjs} +1 -1
  34. package/dist/TabContentContainer-B0eYJP5p.mjs +48 -0
  35. package/dist/{TransactionDetails-DctXr07p.mjs → TransactionDetails-DRN0GIaZ.mjs} +6 -6
  36. package/dist/{UserStore-CRpKQjpP.mjs → UserStore-DzWku3t0.mjs} +81 -40
  37. package/dist/{ViewMoreMicroCard-BD_MNc2z.mjs → ViewMoreMicroCard-Dxghxphh.mjs} +211 -231
  38. package/dist/{WidgetContainer-CmbU4CBH.mjs → WidgetContainer-D-LzIKFb.mjs} +3 -3
  39. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsDrawer.d.ts +6 -0
  40. package/dist/accounts/index.d.ts +1 -0
  41. package/dist/accounts/index.es.js +220 -1035
  42. package/dist/analytics/index.es.js +8 -8
  43. package/dist/budgets/index.es.js +11 -11
  44. package/dist/cashflow/index.es.js +41 -41
  45. package/dist/categories/index.es.js +1 -1
  46. package/dist/common/components/DataRow.d.ts +1 -0
  47. package/dist/common/constants/Analytics.d.ts +3 -0
  48. package/dist/common/index.es.js +82 -83
  49. package/dist/core/index.es.js +8 -8
  50. package/dist/core/stores/RecurringTransactionsStore.d.ts +27 -1
  51. package/dist/core/types/localization/RecurringCopy.d.ts +14 -1
  52. package/dist/core/utils/DateUtil.d.ts +2 -0
  53. package/dist/core/utils/RecurringTransactionsUtil.d.ts +2 -1
  54. package/dist/dashboard/index.es.js +4 -4
  55. package/dist/debts/index.es.js +73 -73
  56. package/dist/finstrong/index.es.js +17 -17
  57. package/dist/goals/index.es.js +22 -23
  58. package/dist/help/index.es.js +4 -4
  59. package/dist/{hooks-BaO_gOI6.mjs → hooks-97sNJ_lf.mjs} +9 -9
  60. package/dist/insights/index.es.js +4 -4
  61. package/dist/investments/index.es.js +6 -6
  62. package/dist/merchants/index.es.js +1 -1
  63. package/dist/microinsights/index.es.js +12 -11
  64. package/dist/networth/index.es.js +9 -9
  65. package/dist/notifications/index.es.js +9 -9
  66. package/dist/recurringtransactions/components/RecurringTransactionDetailsDrawer.d.ts +3 -0
  67. package/dist/recurringtransactions/components/RecurringTransactionList.d.ts +11 -0
  68. package/dist/recurringtransactions/components/UpcomingRecurrenceCard.d.ts +6 -0
  69. package/dist/recurringtransactions/components/actions/LinkTransactionDrawer.d.ts +10 -0
  70. package/dist/recurringtransactions/components/actions/MarkAsPaidDialog.d.ts +7 -0
  71. package/dist/recurringtransactions/components/actions/MarkAsUnpaidDialog.d.ts +7 -0
  72. package/dist/recurringtransactions/index.es.js +402 -376
  73. package/dist/settings/index.es.js +7 -7
  74. package/dist/spending/index.es.js +8 -8
  75. package/dist/transactions/index.es.js +12 -12
  76. package/dist/trends/index.es.js +13 -13
  77. package/dist/useAccountDisplayName-BsiXA0qf.mjs +23 -0
  78. package/dist/{useInsightsEnabled-DaNLPmUU.mjs → useInsightsEnabled-D5Sdm0TJ.mjs} +1 -1
  79. package/dist/{useWidgetLoadTimer-CJb-RELP.mjs → useWidgetLoadTimer-B0tB-yzL.mjs} +1 -1
  80. package/package.json +1 -1
  81. package/dist/Account-BxHMlV9R.mjs +0 -30
  82. package/dist/AccountDetailsHeader-DIysk_4w.mjs +0 -95
  83. package/dist/AccountDisplayName-CO7z3v99.mjs +0 -11
  84. package/dist/AccountFields-mwJ8NXsX.mjs +0 -141
  85. package/dist/AccountListItem-BDXHs4tV.mjs +0 -94
  86. package/dist/Accounts-CseLC3lL.mjs +0 -5
  87. package/dist/Connect-Dk6GZEsA.mjs +0 -39
  88. package/dist/DateUtil-Bhq59ZVg.mjs +0 -58
  89. package/dist/ManageIncome-D1yBODQi.mjs +0 -595
  90. package/dist/RecurringTransactionsUtil-B3rLEx_g.mjs +0 -253
  91. package/dist/Select-BFt-HD-L.mjs +0 -55
  92. package/dist/TabContentContainer-CnMXkVqr.mjs +0 -21
  93. package/dist/useAccountDisplayName-CFa_MrS6.mjs +0 -15
@@ -1,25 +1,25 @@
1
- import { jsx as o, jsxs as N, Fragment as Te } from "react/jsx-runtime";
1
+ import { jsx as o, jsxs as w, Fragment as Te } from "react/jsx-runtime";
2
2
  import I, { useEffect as re, useState as ie } from "react";
3
3
  import { observer as U } from "mobx-react-lite";
4
4
  import k from "@mui/material/Stack";
5
5
  import ke from "@mui/material/Button";
6
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";
7
+ import { Close as He, ChevronLeft as $e, ChevronRight as Re } from "@mxenabled/mx-icons";
8
+ import { L as je } from "./Loader-CxeBwuPG.mjs";
9
9
  import ae from "@mui/material/Box";
10
10
  import ue from "@mui/material/IconButton";
11
11
  import { useTheme as P, alpha as s } from "@mui/material/styles";
12
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";
13
+ import { B as c } from "./BeatMaterialIcon-1KOfRZrA.mjs";
14
+ import { C as Ye } from "./Category-DEKZGLYe.mjs";
15
+ import { b as Xe } from "./Localization-DnoVyBNK.mjs";
16
+ import Ze from "@mui/material/CircularProgress";
16
17
  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 { a as Qe, u as qe, b as Je } from "./Analytics-CkYXKvco.mjs";
18
19
  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 {
20
+ import { u as et } from "./useWidgetLoadTimer-B0tB-yzL.mjs";
21
+ import { Card as tt, CardActionArea as ot, Box as nt, IconButton as it, Stack as F, Button as ge } from "@mui/material";
22
+ class rt {
23
23
  copyApi = new Ce("/", "");
24
24
  copyObject = {};
25
25
  namespace = "experiences";
@@ -68,44 +68,44 @@ const ce = {
68
68
  MonthlySpendToIncomeComparison: "MonthlySpendToIncomeComparison"
69
69
  }, O = window?.app?.clientConfig?.microwidget_instance_id || "", Ie = {
70
70
  INSIGHTS_MICRO_WIDGET: "/micro-insights-carousel"
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(
71
+ }, Ne = (t) => `on${t}Click`, we = (t) => `on${t}View`, Me = (t) => `on${t}ViewFirstTime`, le = (t) => t.replace(/([a-z])([A-Z])/g, "$1 $2"), at = () => Object.values(ce).reduce(
72
72
  (t, e) => ({
73
73
  ...t,
74
- [we(e)]: {
75
- action: b.MICRO_BEAT_CLICKED,
76
- category: L.BEAT_INTERACTION,
74
+ [Ne(e)]: {
75
+ action: v.MICRO_BEAT_CLICKED,
76
+ category: b.BEAT_INTERACTION,
77
77
  label: le(e),
78
78
  value: O
79
79
  }
80
80
  }),
81
81
  {}
82
- ), lt = () => Object.values(ce).reduce(
82
+ ), st = () => Object.values(ce).reduce(
83
83
  (t, e) => ({
84
84
  ...t,
85
- [Ne(e)]: {
86
- action: b.MICRO_BEAT_DISPLAYED,
87
- category: L.BEAT_INTERACTION,
85
+ [we(e)]: {
86
+ action: v.MICRO_BEAT_DISPLAYED,
87
+ category: b.BEAT_INTERACTION,
88
88
  label: le(e),
89
89
  value: O
90
90
  }
91
91
  }),
92
92
  {}
93
- ), dt = () => Object.values(ce).reduce(
93
+ ), ct = () => Object.values(ce).reduce(
94
94
  (t, e) => ({
95
95
  ...t,
96
96
  [Me(e)]: {
97
- action: b.MICRO_BEAT_DISPLAYED_FIRST_TIME,
98
- category: L.BEAT_INTERACTION,
97
+ action: v.MICRO_BEAT_DISPLAYED_FIRST_TIME,
98
+ category: b.BEAT_INTERACTION,
99
99
  label: le(e),
100
100
  value: O
101
101
  }
102
102
  }),
103
103
  {}
104
- ), v = {
104
+ ), L = {
105
105
  CAROUSEL_CONTROL: "Carousel Control",
106
106
  MICRO_WIDGET: "Micro Widget",
107
107
  VIEW_MORE: "View More"
108
- }, L = {
108
+ }, b = {
109
109
  MICRO_WIDGET_INTERACTION: "Micro Widget Interaction",
110
110
  BEAT_INTERACTION: "Beat Interaction"
111
111
  }, W = {
@@ -115,9 +115,9 @@ const ce = {
115
115
  ON_CAROUSEL_FORWARD_SWIPE: "onCarouselForwardSwipe",
116
116
  ON_NO_RELEVANT_INSIGHTS_CLICKED: "onNoRelevantInsightsClicked",
117
117
  ON_VIEW_MORE_CLICKED: "onViewMoreClicked"
118
- }, ve = {
118
+ }, Le = {
119
119
  ON_VIEW_MORE_VIEWED: "onViewMoreCardView"
120
- }, b = {
120
+ }, v = {
121
121
  CONTROL_BACKWARD: "Control Backward",
122
122
  CONTROL_FORWARD: "Control Forward",
123
123
  MICRO_BEAT_CLICKED: "Micro Beat Clicked",
@@ -131,21 +131,21 @@ const ce = {
131
131
  MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS: "Micro Widget Carousel No Relevant Insights"
132
132
  }, Ee = {
133
133
  [B.MICRO_WIDGET_CAROUSEL]: {
134
- label: v.MICRO_WIDGET,
134
+ label: L.MICRO_WIDGET,
135
135
  name: B.MICRO_WIDGET_CAROUSEL,
136
136
  path: Ie.INSIGHTS_MICRO_WIDGET,
137
137
  value: O
138
138
  },
139
139
  // zero state
140
140
  [B.MICRO_WIDGET_CAROUSEL_ZERO_STATE]: {
141
- label: v.MICRO_WIDGET,
141
+ label: L.MICRO_WIDGET,
142
142
  name: B.MICRO_WIDGET_CAROUSEL_ZERO_STATE,
143
143
  path: Ie.INSIGHTS_MICRO_WIDGET,
144
144
  value: O
145
145
  },
146
146
  // no relevant cards
147
147
  [B.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS]: {
148
- label: v.MICRO_WIDGET,
148
+ label: L.MICRO_WIDGET,
149
149
  name: B.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS,
150
150
  path: "/micro-widget",
151
151
  value: O
@@ -153,51 +153,51 @@ const ce = {
153
153
  }, fe = {
154
154
  // carousel control interaction events - clicks and swipes
155
155
  [W.ON_CAROUSEL_BACK_CLICK]: {
156
- action: b.CONTROL_BACKWARD,
157
- category: L.MICRO_WIDGET_INTERACTION,
158
- label: v.CAROUSEL_CONTROL,
156
+ action: v.CONTROL_BACKWARD,
157
+ category: b.MICRO_WIDGET_INTERACTION,
158
+ label: L.CAROUSEL_CONTROL,
159
159
  value: O
160
160
  },
161
161
  [W.ON_CAROUSEL_FORWARD_CLICK]: {
162
- action: b.CONTROL_FORWARD,
163
- category: L.MICRO_WIDGET_INTERACTION,
164
- label: v.CAROUSEL_CONTROL,
162
+ action: v.CONTROL_FORWARD,
163
+ category: b.MICRO_WIDGET_INTERACTION,
164
+ label: L.CAROUSEL_CONTROL,
165
165
  value: O
166
166
  },
167
167
  [W.ON_CAROUSEL_BACK_SWIPE]: {
168
- action: b.SWIPE_BACKWARD,
169
- category: L.MICRO_WIDGET_INTERACTION,
170
- label: v.CAROUSEL_CONTROL,
168
+ action: v.SWIPE_BACKWARD,
169
+ category: b.MICRO_WIDGET_INTERACTION,
170
+ label: L.CAROUSEL_CONTROL,
171
171
  value: O
172
172
  },
173
173
  [W.ON_CAROUSEL_FORWARD_SWIPE]: {
174
- action: b.SWIPE_FORWARD,
175
- category: L.MICRO_WIDGET_INTERACTION,
176
- label: v.CAROUSEL_CONTROL,
174
+ action: v.SWIPE_FORWARD,
175
+ category: b.MICRO_WIDGET_INTERACTION,
176
+ label: L.CAROUSEL_CONTROL,
177
177
  value: O
178
178
  },
179
179
  // read more card events
180
180
  [W.ON_VIEW_MORE_CLICKED]: {
181
- action: b.MICRO_BEAT_CLICKED,
182
- category: L.BEAT_INTERACTION,
183
- label: v.VIEW_MORE,
181
+ action: v.MICRO_BEAT_CLICKED,
182
+ category: b.BEAT_INTERACTION,
183
+ label: L.VIEW_MORE,
184
184
  value: O
185
185
  },
186
- [ve.ON_VIEW_MORE_VIEWED]: {
187
- action: b.MICRO_BEAT_DISPLAYED,
188
- category: L.BEAT_INTERACTION,
189
- label: v.VIEW_MORE,
186
+ [Le.ON_VIEW_MORE_VIEWED]: {
187
+ action: v.MICRO_BEAT_DISPLAYED,
188
+ category: b.BEAT_INTERACTION,
189
+ label: L.VIEW_MORE,
190
190
  value: O
191
191
  },
192
- ...ct(),
193
- ...lt(),
194
- ...dt()
192
+ ...at(),
193
+ ...st(),
194
+ ...ct()
195
195
  }, ye = async (t, e) => !e || !fe[t] ? null : e.sendAnalyticEvent(fe[t]).then((n) => n).catch((n) => {
196
196
  throw n;
197
197
  }), Ae = async (t, e) => !e || !Ee[t] ? null : e.sendAnalyticsPageview(Ee[t]).then((n) => n).catch((n) => {
198
198
  throw n;
199
199
  });
200
- class _t {
200
+ class lt {
201
201
  onAnalyticEvent = ye;
202
202
  onAnalyticPageView = Ae;
203
203
  beatApi = new he("/", "");
@@ -205,13 +205,13 @@ class _t {
205
205
  se(this);
206
206
  }
207
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;
208
+ this.onAnalyticEvent = (a, l) => {
209
+ ye(a, l).then((r) => r).catch((r) => {
210
+ throw r.status === 401 && i(), r;
211
211
  });
212
- }, this.onAnalyticPageView = (r, l) => {
213
- Ae(r, l).then((a) => a).catch((a) => {
214
- throw a.status === 401 && i(), a;
212
+ }, this.onAnalyticPageView = (a, l) => {
213
+ Ae(a, l).then((r) => r).catch((r) => {
214
+ throw r.status === 401 && i(), r;
215
215
  });
216
216
  }, this.beatApi = new he(e, n);
217
217
  };
@@ -222,7 +222,7 @@ class _t {
222
222
  this.beatApi.updateOffer(e);
223
223
  };
224
224
  }
225
- class pt {
225
+ class dt {
226
226
  copyStore;
227
227
  endpoint = "/";
228
228
  insightsMicroWidgetStore;
@@ -230,50 +230,31 @@ class pt {
230
230
  token = "";
231
231
  isInitialized = !1;
232
232
  constructor() {
233
- this.copyStore = new st(), this.insightsMicroWidgetStore = new _t(), se(this);
233
+ this.copyStore = new rt(), this.insightsMicroWidgetStore = new lt(), se(this);
234
234
  }
235
235
  initialize = async (e, n, i) => {
236
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");
237
+ const a = await Qe(e, n, "1.0.0", "Micro Insights Carousel");
238
238
  We(() => {
239
- this.session = r, this.isInitialized = !0;
239
+ this.session = a, this.isInitialized = !0;
240
240
  });
241
241
  };
242
242
  }
243
- const H = I.createContext(null), mt = ({
243
+ const H = I.createContext(null), _t = ({
244
244
  onEvent: t,
245
245
  onPageview: e,
246
246
  store: n,
247
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;
248
+ }) => /* @__PURE__ */ o(H.Provider, { value: { onEvent: t, onPageview: e, store: n, children: i }, children: i }), pt = ({ beat: t }) => {
249
+ const { primary_category_guid: e, category_guids: n } = t, i = e || n?.[0] || Ye.UNCATEGORIZED;
250
250
  return /* @__PURE__ */ o(Ue, { categoryGuid: i, size: 32, sx: { minWidth: 32 } });
251
- }, c = ({
252
- avatarSx: t,
253
- bgColor: e,
254
- name: n,
255
- iconColor: i = "primary",
256
- fill: r = !0,
257
- sx: l
258
- }) => /* @__PURE__ */ o(
259
- at,
260
- {
261
- sx: {
262
- bgcolor: e,
263
- width: 32,
264
- height: 32,
265
- ...t
266
- },
267
- variant: "rounded",
268
- children: /* @__PURE__ */ o(He, { color: i, fill: r, name: n, size: 20, sx: l })
269
- }
270
- ), Ct = ({ beat: t }) => {
271
- const { category_guids: e, merchant_guids: n, primary_category_guid: i, primary_merchant_guid: r } = t;
251
+ }, mt = ({ beat: t }) => {
252
+ const { category_guids: e, merchant_guids: n, primary_category_guid: i, primary_merchant_guid: a } = t;
272
253
  return /* @__PURE__ */ o(
273
254
  ze,
274
255
  {
275
256
  categoryGuid: i || e && e[0] || "",
276
- merchantGuid: r || n[0],
257
+ merchantGuid: a || n[0],
277
258
  size: 32,
278
259
  sx: {
279
260
  display: "flex",
@@ -282,36 +263,36 @@ const H = I.createContext(null), mt = ({
282
263
  }
283
264
  }
284
265
  );
285
- }, ht = (t) => t ? t.data ? t.data.map((e) => {
266
+ }, ut = (t) => t ? t.data ? t.data.map((e) => {
286
267
  const n = {};
287
- return t.names?.map((i, r) => {
288
- n[i] = e[r];
268
+ return t.names?.map((i, a) => {
269
+ n[i] = e[a];
289
270
  }), n;
290
- }) : [] : [], q = "primary", Le = "success", be = "error", De = (t) => {
291
- const e = ht(t), n = Math.floor(e.length / 2);
271
+ }) : [] : [], q = "primary", be = "success", ve = "error", De = (t) => {
272
+ const e = ut(t), n = Math.floor(e.length / 2);
292
273
  if (n === 0 || n === e.length) return q;
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 }) => {
274
+ const i = e[0]?.amount, a = e[n]?.amount;
275
+ return i == null || a == null ? q : i > a ? ve : i < a ? be : q;
276
+ }, Ct = (t, e) => t < e ? be : t > e ? ve : q, ht = ({ beat: t }) => {
296
277
  const e = P(), n = De(t.data_series), i = e.palette[n].main;
297
278
  return /* @__PURE__ */ o(c, { bgColor: s(i, 0.15), iconColor: n, name: "bar_chart" });
298
- }, Et = ({ beat: t }) => {
279
+ }, gt = ({ beat: t }) => {
299
280
  const e = P(), n = t.payload?.average_spend || 0;
300
281
  let i = 0;
301
282
  if (t.data_series?.data && t.data_series.data.length > 0) {
302
- const a = (t.data_series.names || []).indexOf("amount");
303
- a !== -1 && (i = t.data_series.data[0][a] || 0);
283
+ const r = (t.data_series.names || []).indexOf("amount");
284
+ r !== -1 && (i = t.data_series.data[0][r] || 0);
304
285
  }
305
- const r = gt(i, n);
286
+ const a = Ct(i, n);
306
287
  return /* @__PURE__ */ o(
307
288
  c,
308
289
  {
309
- bgColor: s(e.palette[r].main, 0.15),
310
- iconColor: r,
290
+ bgColor: s(e.palette[a].main, 0.15),
291
+ iconColor: a,
311
292
  name: "timeline"
312
293
  }
313
294
  );
314
- }, ft = ({ beat: t }) => {
295
+ }, It = ({ beat: t }) => {
315
296
  const e = P(), n = De(t.data_series), i = e.palette[n].main;
316
297
  return /* @__PURE__ */ o(
317
298
  c,
@@ -322,11 +303,11 @@ const H = I.createContext(null), mt = ({
322
303
  name: "area_chart"
323
304
  }
324
305
  );
325
- }, yt = ({ beat: t }) => /* @__PURE__ */ o(Ke, { alt: t.institutionName || "", institutionGuid: t.institutionGuid || "" }), At = {
306
+ }, Et = ({ beat: t }) => /* @__PURE__ */ o(Ke, { alt: t.institutionName || "", institutionGuid: t.institutionGuid || "" }), ft = {
326
307
  0: (t, e) => /* @__PURE__ */ o(c, { bgColor: s(e.palette.primary.main, 0.15), name: "error" }),
327
- 1: (t) => /* @__PURE__ */ o(ut, { beat: t }),
328
- 2: (t) => /* @__PURE__ */ o(Ct, { beat: t }),
329
- 3: (t) => /* @__PURE__ */ o(It, { beat: t }),
308
+ 1: (t) => /* @__PURE__ */ o(pt, { beat: t }),
309
+ 2: (t) => /* @__PURE__ */ o(mt, { beat: t }),
310
+ 3: (t) => /* @__PURE__ */ o(ht, { beat: t }),
330
311
  4: (t, e) => /* @__PURE__ */ o(
331
312
  c,
332
313
  {
@@ -359,7 +340,7 @@ const H = I.createContext(null), mt = ({
359
340
  sx: { color: "text.primary" }
360
341
  }
361
342
  ),
362
- 12: (t) => /* @__PURE__ */ o(ft, { beat: t }),
343
+ 12: (t) => /* @__PURE__ */ o(It, { beat: t }),
363
344
  13: () => /* @__PURE__ */ o(
364
345
  c,
365
346
  {
@@ -440,7 +421,7 @@ const H = I.createContext(null), mt = ({
440
421
  ),
441
422
  27: (t, e) => /* @__PURE__ */ o(c, { bgColor: s(e.palette.primary.main, 0.15), name: "directions_car" }),
442
423
  28: (t, e) => /* @__PURE__ */ o(c, { bgColor: s(e.palette.primary.main, 0.15), name: "contract" }),
443
- 29: (t) => /* @__PURE__ */ o(Et, { beat: t }),
424
+ 29: (t) => /* @__PURE__ */ o(gt, { beat: t }),
444
425
  30: (t, e) => /* @__PURE__ */ o(c, { bgColor: s(e.palette.primary.main, 0.15), name: "calendar_month" }),
445
426
  31: (t, e) => /* @__PURE__ */ o(
446
427
  c,
@@ -459,16 +440,16 @@ const H = I.createContext(null), mt = ({
459
440
  name: "storefront"
460
441
  }
461
442
  ),
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;
443
+ 34: (t) => /* @__PURE__ */ o(Et, { beat: t })
444
+ }, yt = ({ beat: t }) => {
445
+ const e = P(), { icon_type: n } = t, i = n != null ? ft[n] : null;
465
446
  return i ? i(t, e) : /* @__PURE__ */ o(c, { bgColor: s(e.palette.primary.main, 0.15), name: "error" });
466
447
  }, D = () => {
467
448
  const t = I.useContext(H);
468
449
  if (!t)
469
450
  throw new Error("useCopyStore() must be used within the InsightsMicroWidgetDataProvider");
470
451
  return t.store.copyStore;
471
- }, Tt = () => {
452
+ }, At = () => {
472
453
  const t = I.useContext(H);
473
454
  if (!t?.store?.insightsMicroWidgetStore)
474
455
  throw new Error(
@@ -485,19 +466,19 @@ const H = I.createContext(null), mt = ({
485
466
  if (!t)
486
467
  throw new Error("usePageview() must be used within the InsightsMicroWidgetDataProvider");
487
468
  return { onPageview: t.onPageview };
488
- }, Rt = {
469
+ }, St = {
489
470
  LARGE: 180,
490
471
  STANDARD: 154,
491
472
  XLARGE: 200,
492
473
  XXLARGE: 248
493
- }, Ot = 50, Be = 1, J = I.forwardRef(
474
+ }, Tt = 50, Be = 1, J = I.forwardRef(
494
475
  function({
495
476
  ariaLabel: e,
496
477
  closeAriaLabel: n,
497
478
  description: i,
498
- elevation: r,
479
+ elevation: a,
499
480
  icon: l,
500
- isActiveCard: a,
481
+ isActiveCard: r,
501
482
  heightOverrides: u,
502
483
  onClose: C,
503
484
  onCardClick: E,
@@ -508,11 +489,11 @@ const H = I.createContext(null), mt = ({
508
489
  title: g,
509
490
  variant: y,
510
491
  widthOverrides: S,
511
- ...w
492
+ ...N
512
493
  }, T) {
513
- const A = !!(h && _), R = /* @__PURE__ */ N(Te, { children: [
494
+ const A = !!(h && _), R = /* @__PURE__ */ w(Te, { children: [
514
495
  C && /* @__PURE__ */ o(
515
- rt,
496
+ it,
516
497
  {
517
498
  "aria-label": n,
518
499
  onClick: (m) => {
@@ -525,13 +506,13 @@ const H = I.createContext(null), mt = ({
525
506
  m.stopPropagation();
526
507
  },
527
508
  sx: { minHeight: 40, minWidth: 40, position: "absolute", right: 4, top: 4 },
528
- children: /* @__PURE__ */ o($e, {})
509
+ children: /* @__PURE__ */ o(He, {})
529
510
  }
530
511
  ),
531
- /* @__PURE__ */ N(F, { sx: { gap: 6, height: "100%", justifyContent: "space-between" }, children: [
532
- /* @__PURE__ */ N(F, { sx: { flexDirection: "row", gap: 12 }, children: [
512
+ /* @__PURE__ */ w(F, { sx: { gap: 6, height: "100%", justifyContent: "space-between" }, children: [
513
+ /* @__PURE__ */ w(F, { sx: { flexDirection: "row", gap: 12 }, children: [
533
514
  l && l,
534
- /* @__PURE__ */ N(F, { sx: { gap: 6 }, children: [
515
+ /* @__PURE__ */ w(F, { sx: { gap: 6 }, children: [
535
516
  /* @__PURE__ */ o(F, { sx: { flexDirection: "row", justifyContent: "space-between" }, children: /* @__PURE__ */ o(pe, { bold: !0, sx: { lineHeight: "16px" }, variant: "body1", children: g }) }),
536
517
  /* @__PURE__ */ o(
537
518
  pe,
@@ -553,7 +534,7 @@ const H = I.createContext(null), mt = ({
553
534
  )
554
535
  ] })
555
536
  ] }),
556
- A && /* @__PURE__ */ N(
537
+ A && /* @__PURE__ */ w(
557
538
  F,
558
539
  {
559
540
  sx: {
@@ -606,11 +587,11 @@ const H = I.createContext(null), mt = ({
606
587
  ] })
607
588
  ] });
608
589
  return /* @__PURE__ */ o(
609
- ot,
590
+ tt,
610
591
  {
611
- "aria-hidden": !a,
592
+ "aria-hidden": !r,
612
593
  "aria-label": e,
613
- elevation: r,
594
+ elevation: a,
614
595
  ref: T,
615
596
  role: "group",
616
597
  sx: {
@@ -621,11 +602,11 @@ const H = I.createContext(null), mt = ({
621
602
  my: 1,
622
603
  borderRadius: 2
623
604
  },
624
- tabIndex: E || !a ? -1 : 0,
605
+ tabIndex: E || !r ? -1 : 0,
625
606
  variant: y,
626
- ...w,
607
+ ...N,
627
608
  children: E ? /* @__PURE__ */ o(
628
- nt,
609
+ ot,
629
610
  {
630
611
  component: "div",
631
612
  onClick: E,
@@ -637,18 +618,18 @@ const H = I.createContext(null), mt = ({
637
618
  },
638
619
  children: R
639
620
  }
640
- ) : /* @__PURE__ */ o(it, { sx: { pb: 8, pt: 16, px: 16, height: "100%" }, children: R })
621
+ ) : /* @__PURE__ */ o(nt, { sx: { pb: 8, pt: 16, px: 16, height: "100%" }, children: R })
641
622
  }
642
623
  );
643
624
  }
644
- ), Wt = ({
625
+ ), Rt = ({
645
626
  ariaLabel: t,
646
627
  beat: e,
647
628
  elevation: n,
648
629
  index: i,
649
- isActiveCard: r,
630
+ isActiveCard: a,
650
631
  onCardClick: l,
651
- posthog: a,
632
+ posthog: r,
652
633
  widthOverrides: u,
653
634
  variant: C,
654
635
  showIcon: E,
@@ -656,9 +637,9 @@ const H = I.createContext(null), mt = ({
656
637
  }) => {
657
638
  const { ref: d, inView: _ } = Oe({
658
639
  threshold: Be
659
- }), { cardsCopy: p } = D(), { onEvent: g } = $(), { updateBeat: y, updateOffer: S } = Tt();
640
+ }), { cardsCopy: p } = D(), { onEvent: g } = $(), { updateBeat: y, updateOffer: S } = At();
660
641
  re(() => {
661
- _ && (e.has_been_displayed ? g(Ne(e.template)) : (e.guid.startsWith("OFR") ? S({
642
+ _ && (e.has_been_displayed ? g(we(e.template)) : (e.guid.startsWith("OFR") ? S({
662
643
  ...e,
663
644
  has_been_displayed: !0
664
645
  }) : y({
@@ -669,28 +650,28 @@ const H = I.createContext(null), mt = ({
669
650
  if (_ && e)
670
651
  if (e.template === "MarketingOffer") {
671
652
  const T = e;
672
- a?.capture("viewed_messaging_insight", {
653
+ r?.capture("viewed_messaging_insight", {
673
654
  template: e.template,
674
655
  campaign_guid: T.campaign_guid,
675
656
  campaign_name: T.pulse_campaign_name
676
657
  });
677
658
  } else
678
- a?.capture("viewed_insight", {
659
+ r?.capture("viewed_insight", {
679
660
  beat_guid: e.guid,
680
661
  template: e.template,
681
662
  position: i
682
663
  });
683
664
  }, [e, i, _]);
684
- const w = () => {
685
- if (l && l(e), g(we(e.template)), e.template === "MarketingOffer") {
665
+ const N = () => {
666
+ if (l && l(e), g(Ne(e.template)), e.template === "MarketingOffer") {
686
667
  const T = e;
687
- a?.capture("clicked_messaging_insight", {
668
+ r?.capture("clicked_messaging_insight", {
688
669
  template: e.template,
689
670
  campaign_guid: T.campaign_guid,
690
671
  campaign_name: T.pulse_campaign_name
691
672
  });
692
673
  } else
693
- a?.capture("clicked_insight", {
674
+ r?.capture("clicked_insight", {
694
675
  beat_guid: e.guid,
695
676
  template: e.template,
696
677
  position: i
@@ -704,10 +685,10 @@ const H = I.createContext(null), mt = ({
704
685
  description: e?.html_micro_description && e?.html_micro_description.length > 0 ? e.html_micro_description : e.html_description || "",
705
686
  elevation: n,
706
687
  heightOverrides: h,
707
- icon: E && /* @__PURE__ */ o(St, { beat: e }),
708
- isActiveCard: r,
709
- onCardClick: w,
710
- onPrimaryAction: w,
688
+ icon: E && /* @__PURE__ */ o(yt, { beat: e }),
689
+ isActiveCard: a,
690
+ onCardClick: N,
691
+ onPrimaryAction: N,
711
692
  primaryActionText: e.micro_call_to_action || p?.micro_card_cta,
712
693
  ref: d,
713
694
  title: e.micro_title && e.micro_title.length > 0 ? e.micro_title : e.title,
@@ -715,18 +696,18 @@ const H = I.createContext(null), mt = ({
715
696
  widthOverrides: u
716
697
  }
717
698
  );
718
- }, wt = ({
699
+ }, Ot = ({
719
700
  currentBeatIndex: t,
720
701
  numBeats: e,
721
702
  onNextClick: n,
722
703
  onPreviousClick: i,
723
- scrollRightBoundary: r,
704
+ scrollRightBoundary: a,
724
705
  scrollX: l,
725
- shouldApplyDotAnimation: a = !1,
706
+ shouldApplyDotAnimation: r = !1,
726
707
  visibleCardsCount: u = 1
727
708
  }) => {
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;
729
- return /* @__PURE__ */ N(
709
+ const C = P(), { carouselCopy: E } = D(), h = Math.floor(l) > a || t - u + 1 === 0, d = l < 0 || e - 1 === t, _ = C.palette.grey[500], p = C.palette.primary.main;
710
+ return /* @__PURE__ */ w(
730
711
  k,
731
712
  {
732
713
  direction: "row",
@@ -749,7 +730,7 @@ const H = I.createContext(null), mt = ({
749
730
  disabled: h,
750
731
  onClick: i,
751
732
  children: /* @__PURE__ */ o(
752
- je,
733
+ $e,
753
734
  {
754
735
  sx: {
755
736
  color: h ? _ : p
@@ -769,7 +750,7 @@ const H = I.createContext(null), mt = ({
769
750
  height: 8,
770
751
  mr: 8,
771
752
  // existing comment from meganthan "we were using `gap` instead of margin, but it doesn't work in safari browsers older than iOS 14.1"
772
- ...a ? {
753
+ ...r ? {
773
754
  borderRadius: "4px",
774
755
  transformOrigin: "center",
775
756
  transition: "all 0.5s ease-out",
@@ -778,7 +759,7 @@ const H = I.createContext(null), mt = ({
778
759
  borderRadius: "50%",
779
760
  p: 0
780
761
  },
781
- width: S && a ? 24 : 8
762
+ width: S && r ? 24 : 8
782
763
  }
783
764
  },
784
765
  `carousel-button-${y}`
@@ -804,33 +785,33 @@ const H = I.createContext(null), mt = ({
804
785
  ]
805
786
  }
806
787
  );
807
- }, Nt = ({
788
+ }, Wt = ({
808
789
  activeCardIndex: t,
809
790
  beats: e,
810
791
  cardWidth: n,
811
792
  elevation: i,
812
- heightOverrides: r,
793
+ heightOverrides: a,
813
794
  onCardClick: l,
814
- posthog: a,
795
+ posthog: r,
815
796
  showIcon: u,
816
797
  variant: C
817
798
  }) => {
818
799
  const { carouselCopy: E } = D(), h = {
819
800
  elevation: i,
820
- heightOverrides: r,
821
- posthog: a,
801
+ heightOverrides: a,
802
+ posthog: r,
822
803
  showIcon: u,
823
804
  variant: C
824
805
  };
825
- return /* @__PURE__ */ N(Te, { children: [
806
+ return /* @__PURE__ */ w(Te, { children: [
826
807
  e.map((d, _) => {
827
- const p = _ + 1, g = e.length + 1, y = Ze(
808
+ const p = _ + 1, g = e.length + 1, y = Xe(
828
809
  E?.card_position_in_carousel_aria,
829
810
  p.toString(),
830
811
  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;
812
+ ), S = d.micro_title && d.micro_title.length > 0, N = d.micro_description && d.micro_description.length > 0, T = S ? d.micro_title : d.title, A = N ? d.micro_description : d.description;
832
813
  return /* @__PURE__ */ o(
833
- Wt,
814
+ Rt,
834
815
  {
835
816
  ariaLabel: `${y}: ${T}, ${A}`,
836
817
  beat: d,
@@ -844,7 +825,7 @@ const H = I.createContext(null), mt = ({
844
825
  );
845
826
  }),
846
827
  /* @__PURE__ */ o(
847
- Vt,
828
+ Bt,
848
829
  {
849
830
  isActiveCard: t === e.length,
850
831
  onCardClick: l,
@@ -853,14 +834,14 @@ const H = I.createContext(null), mt = ({
853
834
  }
854
835
  )
855
836
  ] });
856
- }, Mt = ({
837
+ }, Nt = ({
857
838
  analyticsMetadata: t,
858
839
  allowSingleCardPeeking: e,
859
840
  beats: n = [],
860
841
  elevation: i,
861
- heightOverrides: r,
842
+ heightOverrides: a,
862
843
  onCardClick: l,
863
- posthog: a,
844
+ posthog: r,
864
845
  showCarouselControls: u,
865
846
  showIcon: C,
866
847
  showWithMargin: E = !0,
@@ -869,7 +850,7 @@ const H = I.createContext(null), mt = ({
869
850
  visibleCardsCount: _ = 1
870
851
  // Default to 1 card visible
871
852
  }) => {
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 } = $();
853
+ const p = I.useRef(null), g = I.useRef(null), [y, S] = I.useState(0), [N, T] = I.useState(null), [A, ee] = I.useState(null), [R, m] = I.useState(null), { carouselCopy: j } = D(), { onEvent: M } = $();
873
854
  I.useEffect(() => {
874
855
  if (p.current && !e) {
875
856
  const f = p.current.offsetWidth, z = 8;
@@ -919,14 +900,14 @@ const H = I.createContext(null), mt = ({
919
900
  }, Y = () => {
920
901
  p.current && S(p.current.scrollLeft);
921
902
  }, X = () => {
922
- if (!A || !w) return;
923
- A - w > Ot ? M(W.ON_CAROUSEL_FORWARD_SWIPE, t) : M(W.ON_CAROUSEL_BACK_SWIPE, t);
903
+ if (!A || !N) return;
904
+ A - N > Tt ? M(W.ON_CAROUSEL_FORWARD_SWIPE, t) : M(W.ON_CAROUSEL_BACK_SWIPE, t);
924
905
  }, oe = (f) => {
925
906
  T(f.targetTouches[0].clientX);
926
907
  }, ne = (f) => {
927
908
  T(null), ee(f.targetTouches[0].clientX);
928
909
  }, Z = R ? Math.round(y / (R + 8)) : 0, Q = p.current ? p.current.scrollWidth - p.current.offsetWidth : 0;
929
- return /* @__PURE__ */ N(
910
+ return /* @__PURE__ */ w(
930
911
  k,
931
912
  {
932
913
  "aria-label": j?.carousel_title,
@@ -936,7 +917,7 @@ const H = I.createContext(null), mt = ({
936
917
  sx: {
937
918
  alignItems: "center",
938
919
  boxSizing: "border-box",
939
- height: r,
920
+ height: a,
940
921
  width: d || "100%"
941
922
  },
942
923
  children: [
@@ -951,7 +932,7 @@ const H = I.createContext(null), mt = ({
951
932
  ref: p,
952
933
  sx: {
953
934
  alignItems: "center",
954
- height: r && "100%",
935
+ height: a && "100%",
955
936
  gap: 8,
956
937
  listStyleType: "none",
957
938
  m: 0,
@@ -967,15 +948,15 @@ const H = I.createContext(null), mt = ({
967
948
  }
968
949
  },
969
950
  children: /* @__PURE__ */ o(
970
- Nt,
951
+ Wt,
971
952
  {
972
953
  activeCardIndex: Z,
973
954
  beats: n,
974
955
  cardWidth: R,
975
956
  elevation: i,
976
- heightOverrides: r,
957
+ heightOverrides: a,
977
958
  onCardClick: l,
978
- posthog: a,
959
+ posthog: r,
979
960
  showIcon: C,
980
961
  variant: h
981
962
  }
@@ -983,7 +964,7 @@ const H = I.createContext(null), mt = ({
983
964
  }
984
965
  ),
985
966
  u && /* @__PURE__ */ o(
986
- wt,
967
+ Ot,
987
968
  {
988
969
  currentBeatIndex: Z + _ - 1,
989
970
  numBeats: n.length + 1,
@@ -998,17 +979,17 @@ const H = I.createContext(null), mt = ({
998
979
  ]
999
980
  }
1000
981
  );
1001
- }, vt = U(Mt), Lt = ({
982
+ }, wt = U(Nt), Mt = ({
1002
983
  analyticsMetadata: t,
1003
984
  onCardClick: e,
1004
985
  posthog: n,
1005
986
  widthOverrides: i,
1006
- headerSx: r
987
+ headerSx: a
1007
988
  }) => {
1008
- const { carouselCopy: l } = D(), { onEvent: a } = $(), u = () => {
1009
- a && (a(W.ON_VIEW_MORE_CLICKED, t), e(), n?.capture("clicked_view_more"));
989
+ const { carouselCopy: l } = D(), { onEvent: r } = $(), u = () => {
990
+ r && (r(W.ON_VIEW_MORE_CLICKED, t), e(), n?.capture("clicked_view_more"));
1010
991
  };
1011
- return l ? /* @__PURE__ */ N(
992
+ return l ? /* @__PURE__ */ w(
1012
993
  k,
1013
994
  {
1014
995
  alignItems: "center",
@@ -1019,7 +1000,7 @@ const H = I.createContext(null), mt = ({
1019
1000
  p: 16,
1020
1001
  pb: 8,
1021
1002
  width: i || void 0,
1022
- ...r
1003
+ ...a
1023
1004
  },
1024
1005
  children: [
1025
1006
  /* @__PURE__ */ o(Fe, { children: l.carousel_title }),
@@ -1035,8 +1016,8 @@ const H = I.createContext(null), mt = ({
1035
1016
  )
1036
1017
  ]
1037
1018
  }
1038
- ) : /* @__PURE__ */ o(Ye, {});
1039
- }, bt = U(Lt), Dt = ({
1019
+ ) : /* @__PURE__ */ o(je, {});
1020
+ }, Lt = U(Mt), bt = ({
1040
1021
  heightOverrides: t,
1041
1022
  widthOverrides: e,
1042
1023
  children: n
@@ -1062,16 +1043,16 @@ const H = I.createContext(null), mt = ({
1062
1043
  elevation: e,
1063
1044
  heightOverrides: n,
1064
1045
  onCardClick: i,
1065
- posthog: r,
1046
+ posthog: a,
1066
1047
  showIcon: l,
1067
- variant: a
1048
+ variant: r
1068
1049
  }) => {
1069
1050
  const { cardsCopy: u } = D(), C = P(), { onEvent: E } = $(), { onPageview: h } = xe();
1070
1051
  I.useEffect(() => {
1071
1052
  h(B.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS);
1072
1053
  }, []);
1073
1054
  const d = () => {
1074
- i && i(), E(W.ON_NO_RELEVANT_INSIGHTS_CLICKED), r?.capture("clicked_insight", {
1055
+ i && i(), E(W.ON_NO_RELEVANT_INSIGHTS_CLICKED), a?.capture("clicked_insight", {
1075
1056
  template: "no_relevant_insights"
1076
1057
  });
1077
1058
  };
@@ -1087,20 +1068,20 @@ const H = I.createContext(null), mt = ({
1087
1068
  onPrimaryAction: d,
1088
1069
  primaryActionText: u.micro_card_cta,
1089
1070
  title: u.no_relevant_insights_card_title,
1090
- variant: a
1071
+ variant: r
1091
1072
  }
1092
1073
  );
1093
- }, ao = U(Pe), Ve = ({
1074
+ }, io = U(Pe), Ve = ({
1094
1075
  ariaLabel: t,
1095
1076
  elevation: e,
1096
1077
  heightOverrides: n,
1097
1078
  onCardClick: i,
1098
- showIcon: r,
1079
+ showIcon: a,
1099
1080
  variant: l
1100
1081
  }) => {
1101
- const { onPageview: a } = xe(), { zeroStateCopy: u } = D(), C = P();
1082
+ const { onPageview: r } = xe(), { zeroStateCopy: u } = D(), C = P();
1102
1083
  return I.useEffect(() => {
1103
- a(B.MICRO_WIDGET_CAROUSEL_ZERO_STATE);
1084
+ r(B.MICRO_WIDGET_CAROUSEL_ZERO_STATE);
1104
1085
  }, []), /* @__PURE__ */ o(
1105
1086
  J,
1106
1087
  {
@@ -1108,13 +1089,13 @@ const H = I.createContext(null), mt = ({
1108
1089
  description: u.carousel_zero_state_description,
1109
1090
  elevation: e,
1110
1091
  heightOverrides: n,
1111
- icon: r && /* @__PURE__ */ o(c, { bgColor: s(C.palette.primary.main, 0.15), name: "lightbulb" }),
1092
+ icon: a && /* @__PURE__ */ o(c, { bgColor: s(C.palette.primary.main, 0.15), name: "lightbulb" }),
1112
1093
  onCardClick: i,
1113
1094
  title: u.carousel_zero_state_title,
1114
1095
  variant: l
1115
1096
  }
1116
1097
  );
1117
- }, so = U(Ve), xt = () => /* @__PURE__ */ o(
1098
+ }, ro = U(Ve), vt = () => /* @__PURE__ */ o(
1118
1099
  ae,
1119
1100
  {
1120
1101
  sx: {
@@ -1124,19 +1105,19 @@ const H = I.createContext(null), mt = ({
1124
1105
  justifyContent: "center",
1125
1106
  width: "100%"
1126
1107
  },
1127
- children: /* @__PURE__ */ o(Qe, {})
1108
+ children: /* @__PURE__ */ o(Ze, {})
1128
1109
  }
1129
1110
  ), Se = {
1130
1111
  featureVersion: "spendVsIncomeTrends"
1131
- }, x = new pt(), Bt = ({
1112
+ }, x = new dt(), Dt = ({
1132
1113
  allowSingleCardPeeking: t = !0,
1133
1114
  areBeatsLoading: e = !1,
1134
1115
  beats: n = [],
1135
1116
  // This also determines the length of the carousel controls (beat.length + 1)
1136
1117
  cardStyle: i = "elevation 1",
1137
- endpoint: r = "/",
1118
+ endpoint: a = "/",
1138
1119
  headerSx: l,
1139
- heightOverrides: a,
1120
+ heightOverrides: r,
1140
1121
  logOutUser: u = () => {
1141
1122
  },
1142
1123
  onCardClick: C = () => {
@@ -1151,7 +1132,7 @@ const H = I.createContext(null), mt = ({
1151
1132
  showIcon: g,
1152
1133
  showWithMargin: y = !0,
1153
1134
  token: S = "",
1154
- userHasFullInsightFeedBeats: w,
1135
+ userHasFullInsightFeedBeats: N,
1155
1136
  visibleCardsCount: T = 1,
1156
1137
  widthOverrides: A
1157
1138
  }) => {
@@ -1160,20 +1141,20 @@ const H = I.createContext(null), mt = ({
1160
1141
  if (i === "elevation 1") return "elevation";
1161
1142
  if (i !== "flat")
1162
1143
  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({
1144
+ })(), m = i === "flat" ? 0 : 1, [j, M] = ie("STANDARD"), [V, te] = ie(!1), [Y, X] = ie(!1), oe = qe([E], x), ne = Je([h], x);
1145
+ et({
1165
1146
  widgetName: "InsightsMicroWidget",
1166
1147
  isLoaded: V
1167
1148
  }), 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(() => {
1149
+ !x.isInitialized && !Y && (x.initialize(a, S, u).catch(() => X(!1)), X(!0));
1150
+ }, [a, S, u, x.isInitialized, Y]), I.useEffect(() => {
1170
1151
  const f = window.innerHeight;
1171
1152
  f < 180 ? M("STANDARD") : f >= 180 && f < 200 ? M("LARGE") : f >= 200 && f < 248 ? M("XLARGE") : f >= 248 && M("XXLARGE");
1172
1153
  }, [window.innerHeight]), I.useEffect(() => {
1173
1154
  te(!e && x.isInitialized);
1174
1155
  }, [e, x.isInitialized]);
1175
1156
  const Z = {
1176
- heightOverrides: a,
1157
+ heightOverrides: r,
1177
1158
  onCardClick: C,
1178
1159
  posthog: d,
1179
1160
  showIcon: g,
@@ -1183,15 +1164,15 @@ const H = I.createContext(null), mt = ({
1183
1164
  carouselSize: j,
1184
1165
  elevation: m,
1185
1166
  variant: R,
1186
- heightOverrides: a,
1167
+ heightOverrides: r,
1187
1168
  onCardClick: C,
1188
1169
  posthog: d,
1189
1170
  showIcon: g
1190
1171
  };
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, {}),
1172
+ return /* @__PURE__ */ o(_t, { onEvent: oe, onPageview: ne, store: x, children: /* @__PURE__ */ w(bt, { heightOverrides: r, widthOverrides: A, children: [
1173
+ !V && /* @__PURE__ */ o(vt, {}),
1193
1174
  V && p && /* @__PURE__ */ o(
1194
- bt,
1175
+ Lt,
1195
1176
  {
1196
1177
  analyticsMetadata: Se,
1197
1178
  headerSx: l,
@@ -1201,7 +1182,7 @@ const H = I.createContext(null), mt = ({
1201
1182
  }
1202
1183
  ),
1203
1184
  V && !!n.length && /* @__PURE__ */ o(
1204
- vt,
1185
+ wt,
1205
1186
  {
1206
1187
  allowSingleCardPeeking: t,
1207
1188
  analyticsMetadata: Se,
@@ -1218,30 +1199,30 @@ const H = I.createContext(null), mt = ({
1218
1199
  {
1219
1200
  sx: {
1220
1201
  alignItems: "center",
1221
- height: a,
1202
+ height: r,
1222
1203
  width: A || "100%"
1223
1204
  },
1224
1205
  children: /* @__PURE__ */ o(
1225
1206
  k,
1226
1207
  {
1227
1208
  sx: {
1228
- height: `calc(${Rt[j]}px - 44px)`,
1209
+ height: `calc(${St[j]}px - 44px)`,
1229
1210
  width: y ? `calc(${A}px - 32px)` : "100%"
1230
1211
  },
1231
- children: w ? /* @__PURE__ */ o(Pe, { ...Q }) : /* @__PURE__ */ o(Ve, { ...Q })
1212
+ children: N ? /* @__PURE__ */ o(Pe, { ...Q }) : /* @__PURE__ */ o(Ve, { ...Q })
1232
1213
  }
1233
1214
  )
1234
1215
  }
1235
1216
  )
1236
1217
  ] }) });
1237
- }, co = U(Bt), Pt = ({
1218
+ }, ao = U(Dt), xt = ({
1238
1219
  ariaLabel: t,
1239
1220
  elevation: e,
1240
1221
  heightOverrides: n,
1241
1222
  isActiveCard: i,
1242
- onCardClick: r,
1223
+ onCardClick: a,
1243
1224
  posthog: l,
1244
- widthOverrides: a,
1225
+ widthOverrides: r,
1245
1226
  showIcon: u,
1246
1227
  variant: C
1247
1228
  }) => {
@@ -1249,12 +1230,12 @@ const H = I.createContext(null), mt = ({
1249
1230
  threshold: Be
1250
1231
  }), { cardsCopy: _ } = D(), { onEvent: p } = $();
1251
1232
  re(() => {
1252
- d && (p(ve.ON_VIEW_MORE_VIEWED), l?.capture("viewed_insight", {
1233
+ d && (p(Le.ON_VIEW_MORE_VIEWED), l?.capture("viewed_insight", {
1253
1234
  template: "view_more_card"
1254
1235
  }));
1255
1236
  }, [d]);
1256
1237
  const g = () => {
1257
- r && r(), p(W.ON_VIEW_MORE_CLICKED), l?.capture("clicked_insight", {
1238
+ a && a(), p(W.ON_VIEW_MORE_CLICKED), l?.capture("clicked_insight", {
1258
1239
  template: "view_more_card"
1259
1240
  });
1260
1241
  };
@@ -1274,22 +1255,21 @@ const H = I.createContext(null), mt = ({
1274
1255
  ref: h,
1275
1256
  title: _?.view_more_card_title,
1276
1257
  variant: C,
1277
- widthOverrides: a
1258
+ widthOverrides: r
1278
1259
  }
1279
1260
  );
1280
- }, Vt = U(Pt);
1261
+ }, Bt = U(xt);
1281
1262
  export {
1282
- pt as A,
1283
- c as B,
1284
- bt as C,
1285
- Wt as I,
1286
- vt as M,
1287
- ao as N,
1263
+ dt as A,
1264
+ Lt as C,
1265
+ Rt as I,
1266
+ wt as M,
1267
+ io as N,
1288
1268
  Se as T,
1289
- Vt as V,
1290
- so as Z,
1291
- co as a,
1292
- mt as b,
1269
+ Bt as V,
1270
+ ro as Z,
1271
+ ao as a,
1272
+ _t as b,
1293
1273
  J as c,
1294
- It as d
1274
+ ht as d
1295
1275
  };