@mx-cartographer/experiences 7.4.7 → 7.4.8-alpha.mm0

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 (61) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/dist/{Account-01wOyrH1.mjs → Account-BrOTlmeK.mjs} +1 -1
  3. package/dist/{AccountDetailsContent-COMjOzwr.mjs → AccountDetailsContent-B7FqH05C.mjs} +8 -8
  4. package/dist/{AccountDetailsHeader-Cbi5G6fJ.mjs → AccountDetailsHeader-C8MxsxhN.mjs} +4 -4
  5. package/dist/{AccountFields-Cd_nOWmf.mjs → AccountFields-BQZ-o6Kj.mjs} +2 -2
  6. package/dist/{AccountListItem-DxY4cCF1.mjs → AccountListItem-aIE9WWTO.mjs} +4 -4
  7. package/dist/{AccountStore-C1zMBzHq.mjs → AccountStore-DqO84Aer.mjs} +2 -2
  8. package/dist/{Accounts-D7QljYas.mjs → Accounts-DC_A4UCa.mjs} +1 -1
  9. package/dist/{BudgetUtil-Df2nII9u.mjs → BudgetUtil-BmZXkL0C.mjs} +1 -1
  10. package/dist/{CategorySelectorDrawer-DqJK_rrL.mjs → CategorySelectorDrawer-SUgfE5GN.mjs} +1 -1
  11. package/dist/{ConnectDrawer-CuUj16NH.mjs → ConnectDrawer-KL8t1qSC.mjs} +1 -1
  12. package/dist/{ConnectionsDrawer-Bz4uwdFE.mjs → ConnectionsDrawer-DaK5uIL5.mjs} +2 -2
  13. package/dist/{CurrencyInput-BFKcs-_K.mjs → CurrencyInput-itK0R3wV.mjs} +1 -1
  14. package/dist/{DebtsStore-Bu8rRRSL.mjs → DebtsStore-DVPZbv2C.mjs} +1 -1
  15. package/dist/{ExportCsvAction-DzTrtPzk.mjs → ExportCsvAction-Cglo8Mca.mjs} +3 -3
  16. package/dist/{GoalStore-CrNhjvNc.mjs → GoalStore-o4rrjGSJ.mjs} +2 -2
  17. package/dist/{Help-BnPXM_N2.mjs → Help-BjLMsuMS.mjs} +1 -1
  18. package/dist/{LineChart-bc1D9xBE.mjs → LineChart-BQRxZF3p.mjs} +1 -1
  19. package/dist/{ListItemAction-uobBrm_a.mjs → ListItemAction-BxTkF6Tz.mjs} +1 -1
  20. package/dist/{ManageIncome-A69EUO5u.mjs → ManageIncome-rcnDYsBJ.mjs} +75 -75
  21. package/dist/{MicroWidgetContainer-DEiRnYVa.mjs → MicroWidgetContainer-B2hO9rOG.mjs} +1 -1
  22. package/dist/{MiniWidgetContainer-CmXpTylX.mjs → MiniWidgetContainer-98-hKFqm.mjs} +1 -1
  23. package/dist/{NetWorthStore-CpL_kqvx.mjs → NetWorthStore-DG2X69jG.mjs} +2 -2
  24. package/dist/{NotificationSettings-CNmJWVeI.mjs → NotificationSettings-C7FYNM7I.mjs} +250 -248
  25. package/dist/{OriginalBalanceAction-DK8_LkPz.mjs → OriginalBalanceAction-C6jdS4ws.mjs} +3 -3
  26. package/dist/{RecurringSettings-B0uObPlD.mjs → RecurringSettings-C81H1l38.mjs} +3 -3
  27. package/dist/{SpendingLegend-Bf-wbJvb.mjs → SpendingLegend-DqZxN_BZ.mjs} +2 -2
  28. package/dist/{TransactionDetails-COH0OKNG.mjs → TransactionDetails-BA_E5nQ-.mjs} +5 -5
  29. package/dist/{TransactionStore-Dz-G8Wd0.mjs → TransactionStore-PRlwE-TF.mjs} +2 -2
  30. package/dist/{User-wXzDI4M8.mjs → User-Cnlegl1N.mjs} +1 -1
  31. package/dist/{ViewMoreMicroCard-C0832BMe.mjs → ViewMoreMicroCard-DfPXJzbv.mjs} +105 -101
  32. package/dist/{WidgetContainer-6dsjtOVg.mjs → WidgetContainer-CaPjoWeE.mjs} +2 -2
  33. package/dist/accounts/index.es.js +148 -140
  34. package/dist/analytics/index.es.js +2 -2
  35. package/dist/budgets/index.es.js +483 -478
  36. package/dist/cashflow/index.es.js +367 -362
  37. package/dist/categories/index.es.js +1 -1
  38. package/dist/common/hooks/index.d.ts +1 -0
  39. package/dist/common/hooks/useWidgetLoadTimer.d.ts +6 -0
  40. package/dist/common/index.es.js +35 -33
  41. package/dist/dashboard/index.es.js +90 -88
  42. package/dist/debts/index.es.js +346 -342
  43. package/dist/{exportTransactionsToCSV-Cz2t0lmA.mjs → exportTransactionsToCSV-DuAaI5XA.mjs} +1 -1
  44. package/dist/finstrong/index.es.js +352 -350
  45. package/dist/goals/index.es.js +518 -511
  46. package/dist/help/index.es.js +13 -9
  47. package/dist/{hooks-C41HAxM5.mjs → hooks-ZMp65DFz.mjs} +11 -11
  48. package/dist/investments/index.es.js +395 -393
  49. package/dist/merchants/index.es.js +1 -1
  50. package/dist/microinsights/index.es.js +1 -1
  51. package/dist/networth/index.es.js +245 -240
  52. package/dist/notifications/index.es.js +2 -2
  53. package/dist/recurringtransactions/index.es.js +293 -285
  54. package/dist/settings/index.es.js +252 -249
  55. package/dist/spending/index.es.js +136 -124
  56. package/dist/transactions/index.es.js +77 -73
  57. package/dist/trends/index.es.js +601 -588
  58. package/dist/{useAccountDisplayName-CMMlIOXF.mjs → useAccountDisplayName-Cjx8YmKK.mjs} +2 -2
  59. package/dist/{useInsightsEnabled-CNjP5cfR.mjs → useInsightsEnabled-B7dxpDrX.mjs} +1 -1
  60. package/dist/useWidgetLoadTimer-C1NBkyLd.mjs +23 -0
  61. package/package.json +1 -1
@@ -4,7 +4,7 @@ import { observer as P } from "mobx-react-lite";
4
4
  import k from "@mui/material/Stack";
5
5
  import xe from "@mui/material/Button";
6
6
  import Le from "@mui/material/Typography";
7
- import { BarChart as Ve, Error as ae, Campaign as Ne, ChevronLeft as He, ChevronRight as fe } from "@mxenabled/mx-icons";
7
+ import { BarChart as Ve, Error as ae, Campaign as Ne, ChevronLeft as He, ChevronRight as Ce } from "@mxenabled/mx-icons";
8
8
  import { L as ke } from "./Loader-DUaFpDGv.mjs";
9
9
  import Z from "@mui/material/Box";
10
10
  import se from "@mui/material/IconButton";
@@ -18,14 +18,15 @@ import Ue from "@mui/material/CircularProgress";
18
18
  import { makeAutoObservable as ie, runInAction as Re } from "mobx";
19
19
  import { G as ce, a as ze, u as Ke, b as $e } from "./useCombineEvents-CRwX-qWE.mjs";
20
20
  import { B as de } from "./BeatApi-De2IaqH2.mjs";
21
- import Ye from "@mui/material/Card";
22
- import je from "@mui/material/CardActions";
23
- import Xe from "@mui/material/CardContent";
24
- import Qe from "@mui/material/CardHeader";
21
+ import { u as Ye } from "./useWidgetLoadTimer-C1NBkyLd.mjs";
22
+ import je from "@mui/material/Card";
23
+ import Xe from "@mui/material/CardActions";
24
+ import Qe from "@mui/material/CardContent";
25
+ import qe from "@mui/material/CardHeader";
25
26
  const Ee = {
26
27
  featureVersion: "spendVsIncomeTrends"
27
28
  };
28
- class qe {
29
+ class Je {
29
30
  copyApi = new ce("/", "");
30
31
  copyObject = {};
31
32
  namespace = "experiences";
@@ -74,7 +75,7 @@ const oe = {
74
75
  MonthlySpendToIncomeComparison: "MonthlySpendToIncomeComparison"
75
76
  }, v = window?.app?.clientConfig?.microwidget_instance_id || "", he = {
76
77
  INSIGHTS_MICRO_WIDGET: "/micro-insights-carousel"
77
- }, ge = (i) => `on${i}Click`, Ie = (i) => `on${i}View`, ye = (i) => `on${i}ViewFirstTime`, le = (i) => i.replace(/([a-z])([A-Z])/g, "$1 $2"), Je = () => Object.values(oe).reduce(
78
+ }, ge = (i) => `on${i}Click`, Ie = (i) => `on${i}View`, ye = (i) => `on${i}ViewFirstTime`, le = (i) => i.replace(/([a-z])([A-Z])/g, "$1 $2"), et = () => Object.values(oe).reduce(
78
79
  (i, o) => ({
79
80
  ...i,
80
81
  [ge(o)]: {
@@ -85,7 +86,7 @@ const oe = {
85
86
  }
86
87
  }),
87
88
  {}
88
- ), et = () => Object.values(oe).reduce(
89
+ ), tt = () => Object.values(oe).reduce(
89
90
  (i, o) => ({
90
91
  ...i,
91
92
  [Ie(o)]: {
@@ -96,7 +97,7 @@ const oe = {
96
97
  }
97
98
  }),
98
99
  {}
99
- ), tt = () => Object.values(oe).reduce(
100
+ ), it = () => Object.values(oe).reduce(
100
101
  (i, o) => ({
101
102
  ...i,
102
103
  [ye(o)]: {
@@ -196,17 +197,17 @@ const oe = {
196
197
  label: D.VIEW_MORE,
197
198
  value: v
198
199
  },
199
- ...Je(),
200
200
  ...et(),
201
- ...tt()
201
+ ...tt(),
202
+ ...it()
202
203
  }, _e = async (i, o) => !o || !pe[i] ? null : o.sendAnalyticEvent(pe[i]).then((t) => t).catch((t) => {
203
204
  throw t;
204
- }), Ce = async (i, o) => !o || !ue[i] ? null : o.sendAnalyticsPageview(ue[i]).then((t) => t).catch((t) => {
205
+ }), fe = async (i, o) => !o || !ue[i] ? null : o.sendAnalyticsPageview(ue[i]).then((t) => t).catch((t) => {
205
206
  throw t;
206
207
  });
207
- class it {
208
+ class ot {
208
209
  onAnalyticEvent = _e;
209
- onAnalyticPageView = Ce;
210
+ onAnalyticPageView = fe;
210
211
  beatApi = new de("/", "");
211
212
  constructor() {
212
213
  ie(this);
@@ -217,7 +218,7 @@ class it {
217
218
  throw a.status === 401 && l(), a;
218
219
  });
219
220
  }, this.onAnalyticPageView = (n, r) => {
220
- Ce(n, r).then((a) => a).catch((a) => {
221
+ fe(n, r).then((a) => a).catch((a) => {
221
222
  throw a.status === 401 && l(), a;
222
223
  });
223
224
  }, this.beatApi = new de(o, t);
@@ -229,7 +230,7 @@ class it {
229
230
  this.beatApi.updateOffer(o);
230
231
  };
231
232
  }
232
- class ot {
233
+ class lt {
233
234
  copyStore;
234
235
  endpoint = "/";
235
236
  insightsMicroWidgetStore;
@@ -237,7 +238,7 @@ class ot {
237
238
  token = "";
238
239
  isInitialized = !1;
239
240
  constructor() {
240
- this.copyStore = new qe(), this.insightsMicroWidgetStore = new it(), ie(this);
241
+ this.copyStore = new Je(), this.insightsMicroWidgetStore = new ot(), ie(this);
241
242
  }
242
243
  initialize = async (o, t, l) => {
243
244
  await this.copyStore.initialize(o, t), await this.insightsMicroWidgetStore.initialize(o, t, l);
@@ -247,7 +248,7 @@ class ot {
247
248
  });
248
249
  };
249
250
  }
250
- const U = u.createContext(null), lt = ({
251
+ const U = u.createContext(null), nt = ({
251
252
  onEvent: i,
252
253
  onPageview: o,
253
254
  store: t,
@@ -261,13 +262,13 @@ const U = u.createContext(null), lt = ({
261
262
  icon: a,
262
263
  isActiveCard: c,
263
264
  isZeroState: h,
264
- onCardClick: C = () => {
265
+ onCardClick: f = () => {
265
266
  },
266
267
  showIcon: p,
267
268
  style: d = {},
268
269
  title: E,
269
270
  variant: s,
270
- widthOverrides: f
271
+ widthOverrides: C
271
272
  }, _) {
272
273
  const R = te(), [O, I] = u.useState(!1), { cardStyle: m, linkTextStyle: T } = d, y = s ? m : { border: "none", boxShadow: "none", ...m }, M = /* @__PURE__ */ e(
273
274
  Be,
@@ -306,7 +307,7 @@ const U = u.createContext(null), lt = ({
306
307
  role: "group",
307
308
  sx: {
308
309
  height: "100%",
309
- minWidth: f ? `${f}px` : "100%",
310
+ minWidth: C ? `${C}px` : "100%",
310
311
  fontFamily: R.typography.fontFamily
311
312
  },
312
313
  children: /* @__PURE__ */ e(
@@ -315,7 +316,7 @@ const U = u.createContext(null), lt = ({
315
316
  "aria-hidden": !c,
316
317
  "aria-label": t,
317
318
  id: "divButton",
318
- onClick: () => C(),
319
+ onClick: () => f(),
319
320
  onKeyDown: () => I(!1),
320
321
  onKeyUp: () => I(!0),
321
322
  ref: _,
@@ -327,7 +328,7 @@ const U = u.createContext(null), lt = ({
327
328
  },
328
329
  tabIndex: c ? 0 : -1,
329
330
  children: /* @__PURE__ */ e(
330
- Ye,
331
+ je,
331
332
  {
332
333
  "aria-roledescription": "slide",
333
334
  className: "mx-micro-card",
@@ -353,7 +354,7 @@ const U = u.createContext(null), lt = ({
353
354
  },
354
355
  children: [
355
356
  /* @__PURE__ */ e(
356
- Qe,
357
+ qe,
357
358
  {
358
359
  avatar: p && a,
359
360
  subheader: h && M,
@@ -362,9 +363,9 @@ const U = u.createContext(null), lt = ({
362
363
  titleTypographyProps: { fontSize: 15, fontWeight: 600, variant: "h3" }
363
364
  }
364
365
  ),
365
- /* @__PURE__ */ e(Xe, { sx: { p: 0 }, children: !h && M }),
366
+ /* @__PURE__ */ e(Qe, { sx: { p: 0 }, children: !h && M }),
366
367
  !!o && /* @__PURE__ */ e(
367
- je,
368
+ Xe,
368
369
  {
369
370
  sx: {
370
371
  mt: "auto",
@@ -395,10 +396,10 @@ const U = u.createContext(null), lt = ({
395
396
  )
396
397
  }
397
398
  );
398
- }), nt = ({ beat: i }) => {
399
+ }), rt = ({ beat: i }) => {
399
400
  const { primary_category_guid: o, category_guids: t } = i, l = o || t?.[0] || be.UNCATEGORIZED;
400
401
  return /* @__PURE__ */ e(Ze, { categoryGuid: l, size: 16, sx: { minWidth: 16 } });
401
- }, rt = ({ beat: i }) => {
402
+ }, at = ({ beat: i }) => {
402
403
  const { category_guids: o, merchant_guids: t, primary_category_guid: l, primary_merchant_guid: n } = i;
403
404
  return /* @__PURE__ */ e(
404
405
  Pe,
@@ -412,7 +413,7 @@ const U = u.createContext(null), lt = ({
412
413
  }
413
414
  }
414
415
  );
415
- }, at = ({
416
+ }, st = ({
416
417
  color: i = "currentColor",
417
418
  height: o,
418
419
  size: t = 16,
@@ -438,16 +439,16 @@ const U = u.createContext(null), lt = ({
438
439
  }
439
440
  )
440
441
  }
441
- ), st = (i) => i ? i.data ? i.data.map((o) => {
442
+ ), ct = (i) => i ? i.data ? i.data.map((o) => {
442
443
  const t = {};
443
444
  return i.names?.map((l, n) => {
444
445
  t[l] = o[n];
445
446
  }), t;
446
- }) : [] : [], ct = (i, o) => {
447
- const t = st(i), l = t.length / 2, n = t.slice(0, l), r = t.slice(l);
447
+ }) : [] : [], dt = (i, o) => {
448
+ const t = ct(i), l = t.length / 2, n = t.slice(0, l), r = t.slice(l);
448
449
  return !n.length || !r.length ? o.palette.primary.main : n[0].amount > r[0].amount ? o.palette.error.main : n[0].amount < r[0].amount ? o.palette.success.main : o.palette.primary.main;
449
- }, dt = ({ beat: i }) => {
450
- const o = te(), t = ct(i.data_series, o);
450
+ }, Et = ({ beat: i }) => {
451
+ const o = te(), t = dt(i.data_series, o);
451
452
  return /* @__PURE__ */ e(Ve, { sx: { color: t } });
452
453
  }, Se = () => /* @__PURE__ */ g("svg", { fill: "none", height: "36", viewBox: "0 0 40 36", width: "40", xmlns: "http://www.w3.org/2000/svg", children: [
453
454
  /* @__PURE__ */ e(
@@ -1230,9 +1231,9 @@ const U = u.createContext(null), lt = ({
1230
1231
  }
1231
1232
  )
1232
1233
  ] })
1233
- ] }), Et = ({ beat: i }) => {
1234
+ ] }), ht = ({ beat: i }) => {
1234
1235
  const { icon_type: o, icon_color: t } = i;
1235
- return o === 0 ? /* @__PURE__ */ e(ae, { filled: !0, sx: { color: (l) => t || l.palette.primary.main } }) : o === 1 ? /* @__PURE__ */ e(nt, { beat: i }) : o === 2 ? /* @__PURE__ */ e(rt, { beat: i }) : o === 3 ? /* @__PURE__ */ e(dt, { beat: i }) : o === 5 ? /* @__PURE__ */ e(Ne, {}) : /* @__PURE__ */ e(
1236
+ return o === 0 ? /* @__PURE__ */ e(ae, { filled: !0, sx: { color: (l) => t || l.palette.primary.main } }) : o === 1 ? /* @__PURE__ */ e(rt, { beat: i }) : o === 2 ? /* @__PURE__ */ e(at, { beat: i }) : o === 3 ? /* @__PURE__ */ e(Et, { beat: i }) : o === 5 ? /* @__PURE__ */ e(Ne, {}) : /* @__PURE__ */ e(
1236
1237
  ae,
1237
1238
  {
1238
1239
  filled: !0,
@@ -1246,7 +1247,7 @@ const U = u.createContext(null), lt = ({
1246
1247
  if (!i)
1247
1248
  throw new Error("useCopyStore() must be used within the InsightsMicroWidgetDataProvider");
1248
1249
  return i.store.copyStore;
1249
- }, ht = () => {
1250
+ }, ut = () => {
1250
1251
  const i = u.useContext(U);
1251
1252
  if (!i?.store?.insightsMicroWidgetStore)
1252
1253
  throw new Error(
@@ -1263,12 +1264,12 @@ const U = u.createContext(null), lt = ({
1263
1264
  if (!i)
1264
1265
  throw new Error("usePageview() must be used within the InsightsMicroWidgetDataProvider");
1265
1266
  return { onPageview: i.onPageview };
1266
- }, ut = {
1267
+ }, pt = {
1267
1268
  LARGE: 180,
1268
1269
  STANDARD: 154,
1269
1270
  XLARGE: 200,
1270
1271
  XXLARGE: 248
1271
- }, pt = 50, Ae = 1, _t = ({
1272
+ }, _t = 50, Ae = 1, ft = ({
1272
1273
  ariaLabel: i,
1273
1274
  backgroundColor: o,
1274
1275
  beat: t,
@@ -1278,13 +1279,13 @@ const U = u.createContext(null), lt = ({
1278
1279
  isActiveCard: a,
1279
1280
  onCardClick: c,
1280
1281
  posthog: h,
1281
- showIcon: C,
1282
+ showIcon: f,
1282
1283
  variant: p,
1283
1284
  widthOverrides: d
1284
1285
  }) => {
1285
1286
  const { ref: E, inView: s } = me({
1286
1287
  threshold: Ae
1287
- }), { cardsCopy: f } = V(), { onEvent: _ } = z(), { updateBeat: R, updateOffer: O } = ht();
1288
+ }), { cardsCopy: C } = V(), { onEvent: _ } = z(), { updateBeat: R, updateOffer: O } = ut();
1288
1289
  ee(() => {
1289
1290
  s && (t.has_been_displayed ? _(Ie(t.template)) : (t.guid.startsWith("OFR") ? O({
1290
1291
  ...t,
@@ -1327,18 +1328,18 @@ const U = u.createContext(null), lt = ({
1327
1328
  return /* @__PURE__ */ e(
1328
1329
  j,
1329
1330
  {
1330
- actionText: t.micro_call_to_action || f.micro_card_cta,
1331
+ actionText: t.micro_call_to_action || C.micro_card_cta,
1331
1332
  ariaLabel: i,
1332
1333
  backgroundColor: o,
1333
1334
  description: t?.html_micro_description && t?.html_micro_description.length > 0 ? t.html_micro_description : t.html_description,
1334
1335
  heightOverrides: n,
1335
- icon: /* @__PURE__ */ e(Et, { beat: t }),
1336
+ icon: /* @__PURE__ */ e(ht, { beat: t }),
1336
1337
  isActiveCard: a,
1337
1338
  onCardClick: I,
1338
1339
  posthog: h,
1339
1340
  ref: E,
1340
1341
  showCTAColocatedWithText: l,
1341
- showIcon: C,
1342
+ showIcon: f,
1342
1343
  title: t.micro_title && t.micro_title.length > 0 ? t.micro_title : t.title,
1343
1344
  variant: p,
1344
1345
  widthOverrides: d
@@ -1354,7 +1355,7 @@ const U = u.createContext(null), lt = ({
1354
1355
  shouldApplyDotAnimation: a = !1,
1355
1356
  visibleCardsCount: c = 1
1356
1357
  }) => {
1357
- const h = Fe(), { carouselCopy: C } = V(), p = Math.floor(r) > n || i - c + 1 === 0, d = r < 0 || o - 1 === i, E = h.palette.grey[500], s = h.palette.primary.main;
1358
+ const h = Fe(), { carouselCopy: f } = V(), p = Math.floor(r) > n || i - c + 1 === 0, d = r < 0 || o - 1 === i, E = h.palette.grey[500], s = h.palette.primary.main;
1358
1359
  return /* @__PURE__ */ g(
1359
1360
  k,
1360
1361
  {
@@ -1374,7 +1375,7 @@ const U = u.createContext(null), lt = ({
1374
1375
  se,
1375
1376
  {
1376
1377
  "aria-disabled": p,
1377
- "aria-label": C.previous_insight_cta_aria,
1378
+ "aria-label": f.previous_insight_cta_aria,
1378
1379
  disabled: p,
1379
1380
  onClick: l,
1380
1381
  children: /* @__PURE__ */ e(
@@ -1387,7 +1388,7 @@ const U = u.createContext(null), lt = ({
1387
1388
  )
1388
1389
  }
1389
1390
  ),
1390
- Array.from({ length: o }).map((f, _) => {
1391
+ Array.from({ length: o }).map((C, _) => {
1391
1392
  const R = _ === i;
1392
1393
  return /* @__PURE__ */ e(
1393
1394
  Z,
@@ -1417,11 +1418,11 @@ const U = u.createContext(null), lt = ({
1417
1418
  se,
1418
1419
  {
1419
1420
  "aria-disabled": d,
1420
- "aria-label": C.next_insight_cta_aria,
1421
+ "aria-label": f.next_insight_cta_aria,
1421
1422
  disabled: d,
1422
1423
  onClick: t,
1423
1424
  children: /* @__PURE__ */ e(
1424
- fe,
1425
+ Ce,
1425
1426
  {
1426
1427
  style: {
1427
1428
  color: d ? E : s
@@ -1433,7 +1434,7 @@ const U = u.createContext(null), lt = ({
1433
1434
  ]
1434
1435
  }
1435
1436
  );
1436
- }, ft = ({
1437
+ }, mt = ({
1437
1438
  activeCardIndex: i,
1438
1439
  beats: o,
1439
1440
  cardWidth: t,
@@ -1444,7 +1445,7 @@ const U = u.createContext(null), lt = ({
1444
1445
  showIcon: c,
1445
1446
  variant: h
1446
1447
  }) => {
1447
- const { carouselCopy: C } = V(), p = {
1448
+ const { carouselCopy: f } = V(), p = {
1448
1449
  showCTAColocatedWithText: l,
1449
1450
  heightOverrides: n,
1450
1451
  posthog: a,
@@ -1453,13 +1454,13 @@ const U = u.createContext(null), lt = ({
1453
1454
  };
1454
1455
  return /* @__PURE__ */ g(De, { children: [
1455
1456
  o.map((d, E) => {
1456
- const s = E + 1, f = o.length + 1, _ = Ge(
1457
- C.card_position_in_carousel_aria,
1457
+ const s = E + 1, C = o.length + 1, _ = Ge(
1458
+ f.card_position_in_carousel_aria,
1458
1459
  s.toString(),
1459
- f.toString()
1460
+ C.toString()
1460
1461
  ), R = d.micro_title && d.micro_title.length > 0, O = d.micro_description && d.micro_description.length > 0, I = R ? d.micro_title : d.title, m = O ? d.micro_description : d.description;
1461
1462
  return /* @__PURE__ */ e(
1462
- _t,
1463
+ ft,
1463
1464
  {
1464
1465
  ariaLabel: `${_}: ${I}, ${m}`,
1465
1466
  beat: d,
@@ -1473,7 +1474,7 @@ const U = u.createContext(null), lt = ({
1473
1474
  );
1474
1475
  }),
1475
1476
  /* @__PURE__ */ e(
1476
- At,
1477
+ Ot,
1477
1478
  {
1478
1479
  isActiveCard: i === o.length,
1479
1480
  onCardClick: r,
@@ -1482,7 +1483,7 @@ const U = u.createContext(null), lt = ({
1482
1483
  }
1483
1484
  )
1484
1485
  ] });
1485
- }, mt = ({
1486
+ }, Rt = ({
1486
1487
  analyticsMetadata: i,
1487
1488
  allowSingleCardPeeking: o = !1,
1488
1489
  beats: t = [],
@@ -1492,13 +1493,13 @@ const U = u.createContext(null), lt = ({
1492
1493
  posthog: a,
1493
1494
  showCarouselControls: c,
1494
1495
  showIcon: h,
1495
- showWithMargin: C = !0,
1496
+ showWithMargin: f = !0,
1496
1497
  variant: p,
1497
1498
  widthOverrides: d,
1498
1499
  visibleCardsCount: E = 1
1499
1500
  // Default to 1 card visible
1500
1501
  }) => {
1501
- const s = u.useRef(null), f = u.useRef(null), [_, R] = u.useState(0), [O, I] = u.useState(null), [m, T] = u.useState(null), [y, M] = u.useState(null), { carouselCopy: W } = V(), { onEvent: F } = z();
1502
+ const s = u.useRef(null), C = u.useRef(null), [_, R] = u.useState(0), [O, I] = u.useState(null), [m, T] = u.useState(null), [y, M] = u.useState(null), { carouselCopy: W } = V(), { onEvent: F } = z();
1502
1503
  u.useEffect(() => {
1503
1504
  if (s.current && !o) {
1504
1505
  const A = s.current.offsetWidth, b = 8;
@@ -1511,7 +1512,7 @@ const U = u.createContext(null), lt = ({
1511
1512
  M(B);
1512
1513
  }
1513
1514
  }, [E, s.current?.offsetWidth]), u.useEffect(() => {
1514
- const A = f.current?.offsetWidth;
1515
+ const A = C.current?.offsetWidth;
1515
1516
  if (typeof A == "number" && o) {
1516
1517
  const b = (G) => {
1517
1518
  const re = [
@@ -1525,14 +1526,14 @@ const U = u.createContext(null), lt = ({
1525
1526
  };
1526
1527
  M(b(A));
1527
1528
  const B = () => {
1528
- const G = f.current?.offsetWidth;
1529
+ const G = C.current?.offsetWidth;
1529
1530
  typeof G == "number" && M(b(G));
1530
1531
  };
1531
1532
  return window.addEventListener("resize", B), () => {
1532
1533
  window.removeEventListener("resize", B);
1533
1534
  };
1534
1535
  }
1535
- }, [o, f]);
1536
+ }, [o, C]);
1536
1537
  const K = () => {
1537
1538
  F(S.ON_CAROUSEL_FORWARD_CLICK, i), s.current && y && s.current.scrollTo({
1538
1539
  left: _ + y + 8,
@@ -1549,7 +1550,7 @@ const U = u.createContext(null), lt = ({
1549
1550
  s.current && R(s.current.scrollLeft);
1550
1551
  }, Q = () => {
1551
1552
  if (!m || !O) return;
1552
- m - O > pt ? F(S.ON_CAROUSEL_FORWARD_SWIPE, i) : F(S.ON_CAROUSEL_BACK_SWIPE, i);
1553
+ m - O > _t ? F(S.ON_CAROUSEL_FORWARD_SWIPE, i) : F(S.ON_CAROUSEL_BACK_SWIPE, i);
1553
1554
  }, q = (A) => {
1554
1555
  I(A.targetTouches[0].clientX);
1555
1556
  }, Y = (A) => {
@@ -1560,7 +1561,7 @@ const U = u.createContext(null), lt = ({
1560
1561
  {
1561
1562
  "aria-label": W.carousel_title,
1562
1563
  "aria-roledescription": "carousel",
1563
- ref: f,
1564
+ ref: C,
1564
1565
  role: "group/region",
1565
1566
  sx: {
1566
1567
  alignItems: "center",
@@ -1584,7 +1585,7 @@ const U = u.createContext(null), lt = ({
1584
1585
  gap: 8,
1585
1586
  listStyleType: "none",
1586
1587
  m: 0,
1587
- maxWidth: C ? "calc(100% - 32px)" : "100%",
1588
+ maxWidth: f ? "calc(100% - 32px)" : "100%",
1588
1589
  overflowX: "auto",
1589
1590
  overflowY: "hidden",
1590
1591
  p: 0,
@@ -1596,7 +1597,7 @@ const U = u.createContext(null), lt = ({
1596
1597
  }
1597
1598
  },
1598
1599
  children: /* @__PURE__ */ e(
1599
- ft,
1600
+ mt,
1600
1601
  {
1601
1602
  activeCardIndex: w,
1602
1603
  beats: t,
@@ -1627,7 +1628,7 @@ const U = u.createContext(null), lt = ({
1627
1628
  ]
1628
1629
  }
1629
1630
  );
1630
- }, Rt = P(mt), gt = ({
1631
+ }, gt = P(Rt), It = ({
1631
1632
  analyticsMetadata: i,
1632
1633
  onCardClick: o,
1633
1634
  posthog: t,
@@ -1664,7 +1665,7 @@ const U = u.createContext(null), lt = ({
1664
1665
  /* @__PURE__ */ e(
1665
1666
  xe,
1666
1667
  {
1667
- endIcon: /* @__PURE__ */ e(fe, { size: 20 }),
1668
+ endIcon: /* @__PURE__ */ e(Ce, { size: 20 }),
1668
1669
  onClick: a,
1669
1670
  size: "small",
1670
1671
  sx: (c) => ({
@@ -1677,7 +1678,7 @@ const U = u.createContext(null), lt = ({
1677
1678
  ]
1678
1679
  }
1679
1680
  ) : /* @__PURE__ */ e(ke, {});
1680
- }, It = P(gt), yt = ({
1681
+ }, yt = P(It), vt = ({
1681
1682
  heightOverrides: i,
1682
1683
  widthOverrides: o,
1683
1684
  children: t
@@ -1710,7 +1711,7 @@ const U = u.createContext(null), lt = ({
1710
1711
  u.useEffect(() => {
1711
1712
  h(H.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS);
1712
1713
  }, []);
1713
- const C = () => {
1714
+ const f = () => {
1714
1715
  t && t(), c(S.ON_NO_RELEVANT_INSIGHTS_CLICKED), l?.capture("clicked_insight", {
1715
1716
  template: "no_relevant_insights"
1716
1717
  });
@@ -1724,7 +1725,7 @@ const U = u.createContext(null), lt = ({
1724
1725
  heightOverrides: o,
1725
1726
  icon: /* @__PURE__ */ e(Se, {}),
1726
1727
  isZeroState: !0,
1727
- onCardClick: C,
1728
+ onCardClick: f,
1728
1729
  posthog: l,
1729
1730
  showIcon: n,
1730
1731
  style: {
@@ -1736,7 +1737,7 @@ const U = u.createContext(null), lt = ({
1736
1737
  variant: r
1737
1738
  }
1738
1739
  );
1739
- }, Qt = P(Oe), Te = ({
1740
+ }, Jt = P(Oe), Te = ({
1740
1741
  ariaLabel: i,
1741
1742
  heightOverrides: o,
1742
1743
  onCardClick: t,
@@ -1762,7 +1763,7 @@ const U = u.createContext(null), lt = ({
1762
1763
  variant: r
1763
1764
  }
1764
1765
  );
1765
- }, qt = P(Te), vt = () => /* @__PURE__ */ e(
1766
+ }, ei = P(Te), St = () => /* @__PURE__ */ e(
1766
1767
  Z,
1767
1768
  {
1768
1769
  sx: {
@@ -1774,7 +1775,7 @@ const U = u.createContext(null), lt = ({
1774
1775
  },
1775
1776
  children: /* @__PURE__ */ e(Ue, {})
1776
1777
  }
1777
- ), N = new ot(), St = ({
1778
+ ), N = new lt(), Mt = ({
1778
1779
  allowSingleCardPeeking: i,
1779
1780
  areBeatsLoading: o,
1780
1781
  beats: t = [],
@@ -1787,13 +1788,13 @@ const U = u.createContext(null), lt = ({
1787
1788
  },
1788
1789
  onEvent: h = () => {
1789
1790
  },
1790
- onPageview: C = () => {
1791
+ onPageview: f = () => {
1791
1792
  },
1792
1793
  posthog: p,
1793
1794
  showBorder: d = !0,
1794
1795
  showCarouselControls: E,
1795
1796
  showHeader: s,
1796
- showIcon: f,
1797
+ showIcon: C,
1797
1798
  showWithMargin: _ = !0,
1798
1799
  token: R = "",
1799
1800
  userHasFullInsightFeedBeats: O,
@@ -1801,8 +1802,11 @@ const U = u.createContext(null), lt = ({
1801
1802
  visibleCardsCount: m = 1,
1802
1803
  widthOverrides: T
1803
1804
  }) => {
1804
- const [y, M] = J("STANDARD"), [W, F] = J(!1), [K, $] = J(!1), X = Ke([h], N), Q = $e([C], N);
1805
- u.useEffect(() => {
1805
+ const [y, M] = J("STANDARD"), [W, F] = J(!1), [K, $] = J(!1), X = Ke([h], N), Q = $e([f], N);
1806
+ Ye({
1807
+ widgetName: "InsightsMicroWidget",
1808
+ isLoaded: W
1809
+ }), u.useEffect(() => {
1806
1810
  !N.isInitialized && !K && (N.initialize(n, R, a).catch(() => $(!1)), $(!0));
1807
1811
  }, [n, R, a, N.isInitialized, K]), u.useEffect(() => {
1808
1812
  const w = window.innerHeight;
@@ -1815,7 +1819,7 @@ const U = u.createContext(null), lt = ({
1815
1819
  heightOverrides: r,
1816
1820
  onCardClick: c,
1817
1821
  posthog: p,
1818
- showIcon: f,
1822
+ showIcon: C,
1819
1823
  showWithMargin: _,
1820
1824
  widthOverrides: T
1821
1825
  }, Y = {
@@ -1825,12 +1829,12 @@ const U = u.createContext(null), lt = ({
1825
1829
  heightOverrides: r,
1826
1830
  onCardClick: c,
1827
1831
  posthog: p,
1828
- showIcon: f
1832
+ showIcon: C
1829
1833
  };
1830
- return /* @__PURE__ */ e(lt, { onEvent: X, onPageview: Q, store: N, children: /* @__PURE__ */ g(yt, { heightOverrides: r, widthOverrides: T, children: [
1831
- !W && /* @__PURE__ */ e(vt, {}),
1834
+ return /* @__PURE__ */ e(nt, { onEvent: X, onPageview: Q, store: N, children: /* @__PURE__ */ g(vt, { heightOverrides: r, widthOverrides: T, children: [
1835
+ !W && /* @__PURE__ */ e(St, {}),
1832
1836
  W && s && /* @__PURE__ */ e(
1833
- It,
1837
+ yt,
1834
1838
  {
1835
1839
  analyticsMetadata: Ee,
1836
1840
  onCardClick: c,
@@ -1839,7 +1843,7 @@ const U = u.createContext(null), lt = ({
1839
1843
  }
1840
1844
  ),
1841
1845
  W && !!t.length && /* @__PURE__ */ e(
1842
- Rt,
1846
+ gt,
1843
1847
  {
1844
1848
  allowSingleCardPeeking: i,
1845
1849
  analyticsMetadata: Ee,
@@ -1862,7 +1866,7 @@ const U = u.createContext(null), lt = ({
1862
1866
  k,
1863
1867
  {
1864
1868
  sx: {
1865
- height: `calc(${ut[y]}px - 44px)`,
1869
+ height: `calc(${pt[y]}px - 44px)`,
1866
1870
  width: _ ? `calc(${T}px - 32px)` : "100%"
1867
1871
  },
1868
1872
  children: O ? /* @__PURE__ */ e(Oe, { ...Y }) : /* @__PURE__ */ e(Te, { ...Y })
@@ -1871,7 +1875,7 @@ const U = u.createContext(null), lt = ({
1871
1875
  }
1872
1876
  )
1873
1877
  ] }) });
1874
- }, Jt = P(St), Mt = ({
1878
+ }, ti = P(Mt), At = ({
1875
1879
  isActiveCard: i,
1876
1880
  ariaLabel: o,
1877
1881
  heightOverrides: t,
@@ -1881,7 +1885,7 @@ const U = u.createContext(null), lt = ({
1881
1885
  variant: a,
1882
1886
  widthOverrides: c
1883
1887
  }) => {
1884
- const h = te(), { ref: C, inView: p } = me({
1888
+ const h = te(), { ref: f, inView: p } = me({
1885
1889
  threshold: Ae
1886
1890
  }), { cardsCopy: d } = V(), { onEvent: E } = z();
1887
1891
  ee(() => {
@@ -1901,31 +1905,31 @@ const U = u.createContext(null), lt = ({
1901
1905
  ariaLabel: o,
1902
1906
  description: d.view_more_card_description,
1903
1907
  heightOverrides: t,
1904
- icon: /* @__PURE__ */ e(at, { color: h.palette.primary.main }),
1908
+ icon: /* @__PURE__ */ e(st, { color: h.palette.primary.main }),
1905
1909
  isActiveCard: i,
1906
1910
  onCardClick: s,
1907
1911
  posthog: n,
1908
- ref: C,
1912
+ ref: f,
1909
1913
  showIcon: r,
1910
1914
  title: d.view_more_card_title,
1911
1915
  variant: a,
1912
1916
  widthOverrides: c
1913
1917
  }
1914
1918
  );
1915
- }, At = P(Mt);
1919
+ }, Ot = P(At);
1916
1920
  export {
1917
- ot as A,
1921
+ lt as A,
1918
1922
  j as B,
1919
- It as C,
1920
- lt as I,
1921
- Rt as M,
1922
- Qt as N,
1923
+ yt as C,
1924
+ nt as I,
1925
+ gt as M,
1926
+ Jt as N,
1923
1927
  Ee as T,
1924
- At as V,
1925
- qt as Z,
1926
- _t as a,
1927
- Jt as b,
1928
- at as c,
1929
- dt as d,
1928
+ Ot as V,
1929
+ ei as Z,
1930
+ ft as a,
1931
+ ti as b,
1932
+ st as c,
1933
+ Et as d,
1930
1934
  Se as e
1931
1935
  };
@@ -13,7 +13,7 @@ import { ChevronLeft as le } from "@mxenabled/mx-icons";
13
13
  import { Icon as T, Text as X, DateRangePicker as J, H1 as Ce, H3 as de } from "@mxenabled/mxui";
14
14
  import { u as Te } from "./useDimensions-27p2evRx.mjs";
15
15
  import { L as Ie } from "./Loader-DUaFpDGv.mjs";
16
- import { g as Ee, b as Re, u as ge, a as Ae, W as Se } from "./hooks-C41HAxM5.mjs";
16
+ import { g as Ee, b as Re, u as ge, a as Ae, W as Se } from "./hooks-ZMp65DFz.mjs";
17
17
  import { u as ie } from "./useScreenSize-B6JyS_Lj.mjs";
18
18
  import { addMonths as Q } from "date-fns/addMonths";
19
19
  import { addDays as ue } from "date-fns/addDays";
@@ -37,7 +37,7 @@ import Ke from "@mui/material/ToggleButtonGroup";
37
37
  import Ge from "@mui/material/styles/useTheme";
38
38
  import { f as K, a as G, D as Me } from "./Dialog-BPTr3qHE.mjs";
39
39
  import { D as We } from "./Drawer-BEtCk82g.mjs";
40
- import { k as ye, l as xe } from "./ConnectDrawer-CuUj16NH.mjs";
40
+ import { k as ye, l as xe } from "./ConnectDrawer-KL8t1qSC.mjs";
41
41
  const ve = {
42
42
  ACCOUNTS_CLICK_ACCOUNT: "accounts_widget_click_account",
43
43
  ACCOUNTS_CLICK_CONNECT: "accounts_widget_click_connect_accounts",