@mx-cartographer/experiences 8.0.0-alpha.bb3 → 8.0.0-alpha.mega1

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 (203) hide show
  1. package/CHANGELOG.md +178 -1
  2. package/dist/{Account-Bxw0_4FU.mjs → Account-CvR2-dSR.mjs} +1 -1
  3. package/dist/{AccountDetailsContent-CAM9y39M.mjs → AccountDetailsContent-CitErkuS.mjs} +89 -82
  4. package/dist/AccountDetailsHeader-BkG3MNYo.mjs +87 -0
  5. package/dist/{AccountFields-C9FlatNb.mjs → AccountFields-zCMqet85.mjs} +6 -6
  6. package/dist/{AccountListItem-JFMZROh7.mjs → AccountListItem-DHrz8Mml.mjs} +9 -9
  7. package/dist/{AccountStore-BgNOyMdp.mjs → AccountStore-LgfBcYMe.mjs} +112 -75
  8. package/dist/Accounts-Bzy1_REQ.mjs +9 -0
  9. package/dist/{BeatApi-DhJpgCLz.mjs → BeatApi-De2IaqH2.mjs} +1 -1
  10. package/dist/{BeatStore-IBnXd4YK.mjs → BeatStore-D_NYuBSz.mjs} +1 -1
  11. package/dist/{BudgetUtil-B2ZXyw-g.mjs → BudgetUtil-BmZXkL0C.mjs} +2 -2
  12. package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-B-I3kajA.mjs} +23 -21
  13. package/dist/CategoryStore-CA3tS1BO.mjs +186 -0
  14. package/dist/CategoryUtil-DUM8NuGO.mjs +78 -0
  15. package/dist/{ConnectDrawer-BQNs-hjk.mjs → ConnectDrawer-BkvlItWx.mjs} +11 -11
  16. package/dist/{ConnectionsDrawer-ByGQE7D5.mjs → ConnectionsDrawer-VmuVFHbL.mjs} +5 -5
  17. package/dist/{CurrencyInput-DUsQbkXb.mjs → CurrencyInput-itK0R3wV.mjs} +2 -2
  18. package/dist/{CurrencyText-kyC1aseI.mjs → CurrencyText-Dr0EZ7bp.mjs} +1 -1
  19. package/dist/{DateUtil-BcuH7ErC.mjs → DateUtil-CBdcsyuk.mjs} +3 -3
  20. package/dist/{DebtsStore-C9bblOgW.mjs → DebtsStore-Bq-aPy-5.mjs} +1 -1
  21. package/dist/{Dialog-CWW597AF.mjs → Dialog-BPTr3qHE.mjs} +2 -2
  22. package/dist/{Donut-oaQFlbit.mjs → Donut-Dmy3JTWd.mjs} +12 -12
  23. package/dist/Drawer-By9V-B5L.mjs +178 -0
  24. package/dist/{EmptyState-DA_lfRBv.mjs → EmptyState-DoxNUae-.mjs} +24 -22
  25. package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-Cglo8Mca.mjs} +3 -3
  26. package/dist/{Fetch-87LIQbEA.mjs → Fetch-DecPFeGU.mjs} +24 -22
  27. package/dist/FinstrongStore-BIrX0Xg2.mjs +451 -0
  28. package/dist/{GoalStore-D-aB35SY.mjs → GoalStore-1P19goZ7.mjs} +112 -152
  29. package/dist/{Help-B6dIcujh.mjs → Help-Ea3BlXQp.mjs} +2 -2
  30. package/dist/LineChart-KpPw1phO.mjs +580 -0
  31. package/dist/{ListItemAction-DHa3KJPs.mjs → ListItemAction-BxTkF6Tz.mjs} +10 -10
  32. package/dist/{ManageIncome-1s_q5W4X.mjs → ManageIncome-CaoQl609.mjs} +91 -88
  33. package/dist/{MerchantStore-DrFvsUyy.mjs → MerchantStore-WvZ4gnQe.mjs} +1 -1
  34. package/dist/MicroWidgetContainer-r6mtxRer.mjs +52 -0
  35. package/dist/MiniWidgetContainer-Bg02sF1Y.mjs +71 -0
  36. package/dist/{NetWorthStore-DCsTZpuS.mjs → NetWorthStore-rC0q7P7t.mjs} +2 -2
  37. package/dist/{NotificationSettings-DqrkNMod.mjs → NotificationSettings-uzM8tCoH.mjs} +236 -231
  38. package/dist/{NotificationStore-BxP_P2dA.mjs → NotificationStore-CDX_kqHa.mjs} +7 -15
  39. package/dist/{NumberFormatting-Buh7u8Oi.mjs → NumberFormatting-DjTD0t3W.mjs} +9 -9
  40. package/dist/{OriginalBalanceAction-CWuVvRq9.mjs → OriginalBalanceAction-C6jdS4ws.mjs} +4 -4
  41. package/dist/{RecurringSettings-A_rAGCTP.mjs → RecurringSettings-B4ybrS0B.mjs} +4 -4
  42. package/dist/{RecurringTransactions-DK8dWldr.mjs → RecurringTransactions-BqijW_8S.mjs} +49 -48
  43. package/dist/{RecurringTransactionsStore-C4YOD7_D.mjs → RecurringTransactionsStore-BhBUVm9a.mjs} +26 -29
  44. package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-krIRNwHK.mjs} +3 -3
  45. package/dist/{SpendingData-D5vsfYKo.mjs → SpendingData-DQ1b9uqq.mjs} +11 -13
  46. package/dist/SpendingLegend-CDO060GT.mjs +193 -0
  47. package/dist/{ToggleListItem-r0Kx56wF.mjs → ToggleListItem-ciFTiqRS.mjs} +19 -14
  48. package/dist/TransactionApi-CjBoLleL.mjs +86 -0
  49. package/dist/TransactionDetails-m5PddMQn.mjs +1380 -0
  50. package/dist/TransactionStore-PRlwE-TF.mjs +677 -0
  51. package/dist/TrendsStore-yO7qYv97.mjs +186 -0
  52. package/dist/{User-BQUxBeZV.mjs → User-Cnlegl1N.mjs} +2 -2
  53. package/dist/{ViewMoreMicroCard-SCn2wt4i.mjs → ViewMoreMicroCard-DwR0v_ll.mjs} +711 -728
  54. package/dist/{WidgetContainer-BHWANqT4.mjs → WidgetContainer-CoFDmQRE.mjs} +4 -4
  55. package/dist/accounts/components/AccountsListCompact.d.ts +10 -0
  56. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +4 -1
  57. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.d.ts +2 -1
  58. package/dist/accounts/index.es.js +245 -235
  59. package/dist/accounts/stores/AccountStore.d.ts +24 -25
  60. package/dist/accounts/utils/Accounts.d.ts +1 -2
  61. package/dist/analytics/index.es.js +2 -2
  62. package/dist/budgets/components/AddBudgets.d.ts +2 -1
  63. package/dist/budgets/index.es.js +611 -580
  64. package/dist/budgets/store/BudgetsStore.d.ts +0 -1
  65. package/dist/cashflow/index.es.js +187 -180
  66. package/dist/categories/index.es.js +2 -2
  67. package/dist/categories/stores/CategoryStore.d.ts +2 -5
  68. package/dist/categories/util/CategoryUtil.d.ts +2 -3
  69. package/dist/common/components/Select.d.ts +4 -2
  70. package/dist/common/components/charts/LineChart.d.ts +12 -2
  71. package/dist/common/components/charts/index.d.ts +0 -3
  72. package/dist/common/components/charts/linechart/CustomLegend.d.ts +3 -1
  73. package/dist/common/components/charts/linechart/CustomMark.d.ts +4 -0
  74. package/dist/common/components/charts/linechart/CustomTooltip.d.ts +6 -1
  75. package/dist/common/components/charts/stackedlinechart/CustomPointTooltip.d.ts +5 -2
  76. package/dist/common/components/drawer/Drawer.d.ts +3 -0
  77. package/dist/common/components/drawer/Footer.d.ts +17 -0
  78. package/dist/common/hooks/index.d.ts +1 -0
  79. package/dist/common/hooks/useWidgetLoadTimer.d.ts +6 -0
  80. package/dist/common/index.es.js +397 -387
  81. package/dist/common/stores/AppDataStore.d.ts +1 -3
  82. package/dist/common/stores/GlobalCopyStore.d.ts +1 -0
  83. package/dist/common/stores/GlobalStore.d.ts +10 -4
  84. package/dist/common/stores/GlobalUiStore.d.ts +2 -3
  85. package/dist/common/stores/UserStore.d.ts +2 -3
  86. package/dist/common/types/Account.d.ts +6 -9
  87. package/dist/common/types/Finstrong.d.ts +54 -0
  88. package/dist/common/types/Global.d.ts +1 -0
  89. package/dist/common/types/Widgets.d.ts +1 -0
  90. package/dist/common/types/index.d.ts +1 -1
  91. package/dist/common/types/localization/FinstrongCopy.d.ts +105 -2
  92. package/dist/common/types/localization/GoalsCopy.d.ts +1 -0
  93. package/dist/common/types/localization/TransactionsCopy.d.ts +1 -0
  94. package/dist/dashboard/index.es.js +90 -88
  95. package/dist/debts/index.es.js +458 -448
  96. package/dist/exportTransactionsToCSV-DuAaI5XA.mjs +48 -0
  97. package/dist/finstrong/FinstrongWidget.d.ts +1 -1
  98. package/dist/finstrong/api/FinstrongApi.d.ts +5 -0
  99. package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +3 -1
  100. package/dist/finstrong/components/CreditScore/CreditScoreContent.d.ts +4 -0
  101. package/dist/finstrong/components/CreditScore/CreditScoreHeader.d.ts +4 -0
  102. package/dist/finstrong/components/FinancialStrengthGraph.d.ts +7 -1
  103. package/dist/finstrong/components/HaveManageableDebt/DebtPaymentTabContent.d.ts +3 -0
  104. package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtComponent.d.ts +3 -0
  105. package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtProgressBar.d.ts +4 -0
  106. package/dist/finstrong/components/HaveManageableDebt/IncomeTabContent.d.ts +3 -0
  107. package/dist/finstrong/components/KeyIndicatorsBorrowTab.d.ts +2 -2
  108. package/dist/finstrong/components/KeyIndicatorsDrawer.d.ts +4 -1
  109. package/dist/finstrong/components/KeyIndicatorsSaveTab.d.ts +2 -2
  110. package/dist/finstrong/components/KeyIndicatorsSpendTab.d.ts +2 -2
  111. package/dist/finstrong/components/KeyIndicatorsTabItem.d.ts +4 -3
  112. package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.d.ts +10 -0
  113. package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +2 -2
  114. package/dist/finstrong/components/MaintainingEmergencySavings/EstimatedContributionCalculator.d.ts +6 -0
  115. package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsContent.d.ts +4 -0
  116. package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsSticky.d.ts +4 -0
  117. package/dist/finstrong/components/ProgressBar.d.ts +15 -0
  118. package/dist/finstrong/components/SaveEnoughToLiveOn/AvailableTabContent.d.ts +3 -0
  119. package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnDrawerContent.d.ts +3 -0
  120. package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnProgressBar.d.ts +4 -0
  121. package/dist/finstrong/components/SaveEnoughToLiveOn/SpendingTabContent.d.ts +3 -0
  122. package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeComponent.d.ts +3 -0
  123. package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeProgressBar.d.ts +4 -0
  124. package/dist/finstrong/components/StatusChip.d.ts +5 -0
  125. package/dist/finstrong/components/onboarding/Onboarding.d.ts +2 -0
  126. package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +17 -0
  127. package/dist/finstrong/components/onboarding/OnboardingBirthday.d.ts +8 -0
  128. package/dist/finstrong/components/onboarding/OnboardingCreditScore.d.ts +8 -0
  129. package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +14 -0
  130. package/dist/finstrong/components/onboarding/OnboardingStepsHeader.d.ts +8 -0
  131. package/dist/finstrong/components/paybillsontime/PayBillsOnTimeDrawerComponent.d.ts +4 -0
  132. package/dist/finstrong/components/paybillsontime/PayBillsOnTimeStickyComponent.d.ts +4 -0
  133. package/dist/finstrong/components/shared/Accounts.d.ts +8 -0
  134. package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +24 -0
  135. package/dist/finstrong/components/shared/DialScoreCard.d.ts +7 -1
  136. package/dist/finstrong/components/shared/DoubleBarChart.d.ts +28 -0
  137. package/dist/finstrong/components/shared/LineGraph.d.ts +7 -0
  138. package/dist/finstrong/components/shared/TotalCard.d.ts +8 -0
  139. package/dist/finstrong/components/shared/Transactions.d.ts +11 -0
  140. package/dist/finstrong/constants/index.d.ts +9 -0
  141. package/dist/finstrong/index.es.js +3190 -1073
  142. package/dist/finstrong/stores/FinstrongStore.d.ts +25 -2
  143. package/dist/finstrong/util/finstrongUtils.d.ts +58 -1
  144. package/dist/goals/index.es.js +302 -291
  145. package/dist/goals/stores/GoalStore.d.ts +4 -17
  146. package/dist/help/index.es.js +13 -9
  147. package/dist/{hooks-D6XlXHf4.mjs → hooks-ZMp65DFz.mjs} +12 -12
  148. package/dist/insights/index.es.js +1 -1
  149. package/dist/investments/index.es.js +108 -104
  150. package/dist/investments/stores/HoldingStore.d.ts +0 -1
  151. package/dist/merchants/index.es.js +2 -2
  152. package/dist/microinsights/MicroCardTemplate.d.ts +16 -0
  153. package/dist/microinsights/beaticons/BeatIcon.d.ts +2 -9
  154. package/dist/microinsights/beaticons/BeatMerchantLogo.d.ts +3 -2
  155. package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +2 -1
  156. package/dist/microinsights/cards/{MicroInsightCard.d.ts → BaseCard.d.ts} +1 -8
  157. package/dist/microinsights/cards/{BeatCard.d.ts → InsightCard.d.ts} +2 -2
  158. package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +2 -5
  159. package/dist/microinsights/cards/ZeroStateCard.d.ts +2 -5
  160. package/dist/microinsights/carousel/BeatList.d.ts +10 -0
  161. package/dist/microinsights/carousel/CarouselControls.d.ts +1 -3
  162. package/dist/microinsights/carousel/CarouselHeader.d.ts +1 -2
  163. package/dist/microinsights/constants/App.d.ts +0 -1
  164. package/dist/microinsights/index.d.ts +4 -3
  165. package/dist/microinsights/index.es.js +101 -14
  166. package/dist/microinsights/interfaces.d.ts +0 -6
  167. package/dist/networth/index.es.js +197 -190
  168. package/dist/notifications/index.es.js +25 -25
  169. package/dist/notifications/stores/NotificationStore.d.ts +1 -3
  170. package/dist/recurringtransactions/index.es.js +395 -351
  171. package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +2 -3
  172. package/dist/settings/index.es.js +307 -298
  173. package/dist/spending/index.es.js +299 -438
  174. package/dist/spending/utils/SpendingData.d.ts +2 -1
  175. package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -0
  176. package/dist/transactions/components/shared/TransactionList.d.ts +1 -0
  177. package/dist/transactions/index.es.js +115 -112
  178. package/dist/transactions/stores/TransactionStore.d.ts +77 -21
  179. package/dist/trends/components/TrendsTable.d.ts +0 -2
  180. package/dist/trends/index.es.js +1025 -604
  181. package/dist/trends/utils/TrendsData.d.ts +1 -0
  182. package/dist/{useAccountDisplayName-BUAApBIb.mjs → useAccountDisplayName-B7iXTNM8.mjs} +2 -2
  183. package/dist/{useCombineEvents-BUDIR1ba.mjs → useCombineEvents-CRwX-qWE.mjs} +1 -1
  184. package/dist/{useInsightsEnabled-DBpwEq10.mjs → useInsightsEnabled-B7dxpDrX.mjs} +1 -1
  185. package/dist/useWidgetLoadTimer-hIOioiKx.mjs +19 -0
  186. package/package.json +4 -4
  187. package/dist/AccountDetailsHeader-JtSX6Uf9.mjs +0 -120
  188. package/dist/Accounts-BRf_YeTf.mjs +0 -27
  189. package/dist/CategoryStore-yHI0hWmK.mjs +0 -174
  190. package/dist/CategoryUtil-pZRIYOgN.mjs +0 -80
  191. package/dist/Drawer-kEE73B87.mjs +0 -113
  192. package/dist/FinstrongStore-F2c607dj.mjs +0 -101
  193. package/dist/LineChart-D4GI7nVh.mjs +0 -541
  194. package/dist/MicroWidgetContainer-DpeqN9n3.mjs +0 -45
  195. package/dist/MiniWidgetContainer-D0gfmbaF.mjs +0 -56
  196. package/dist/TransactionApi-B3Tksf7L.mjs +0 -86
  197. package/dist/TransactionDetails-oP1eSuiS.mjs +0 -1334
  198. package/dist/TransactionStore-ai3uII_r.mjs +0 -690
  199. package/dist/TrendsStore-DCYbpXPO.mjs +0 -559
  200. package/dist/common/components/SkeletonLoader.d.ts +0 -7
  201. package/dist/exportTransactionsToCSV-7bVS7KXf.mjs +0 -47
  202. package/dist/finstrong/utils/Finstrong.d.ts +0 -6
  203. package/dist/useAriaLive-B3_pRUio.mjs +0 -35
@@ -1,48 +1,48 @@
1
- import { jsx as e, jsxs as v } from "react/jsx-runtime";
2
- import u, { useState as te, useEffect as oe } from "react";
3
- import { observer as G } from "mobx-react-lite";
4
- import Pe from "@mui/material/Button";
5
- import K from "@mui/material/Stack";
6
- import Ge from "@mui/material/Typography";
7
- import { ChevronLeft as be, ChevronRight as Se } from "@mxenabled/mx-icons";
8
- import { L as Ue } from "./Loader-DUaFpDGv.mjs";
9
- import U from "@mui/material/Box";
10
- import pe from "@mui/material/IconButton";
11
- import { useTheme as ze } from "@mui/material/styles";
12
- import { useInView as Me } from "react-intersection-observer";
13
- import { P as Ke, CategoryIcon as $e, useTokens as Ae, MerchantLogo as Ye, Icon as ie } from "@mxenabled/mxui";
14
- import se from "@mui/material/styles/useTheme";
15
- import { b as je } from "./Category-CevNQ03n.mjs";
16
- import { css as Xe } from "@mxenabled/cssinjs";
17
- import { b as Qe } from "./Localization-2MODESHW.mjs";
18
- import qe from "@mui/material/CircularProgress";
19
- import { makeAutoObservable as de, runInAction as Oe } from "mobx";
20
- import { G as _e, a as Je, u as et, b as tt } from "./useCombineEvents-BUDIR1ba.mjs";
21
- import { B as Ce } from "./BeatApi-DhJpgCLz.mjs";
22
- import it from "@mui/material/Card";
23
- import ot from "@mui/material/CardActions";
24
- import rt from "@mui/material/CardContent";
25
- import lt from "@mui/material/CardHeader";
26
- const fe = {
1
+ import { jsx as e, jsxs as g, Fragment as De } from "react/jsx-runtime";
2
+ import u, { useEffect as ee, useState as J } from "react";
3
+ import { observer as P } from "mobx-react-lite";
4
+ import k from "@mui/material/Stack";
5
+ import xe from "@mui/material/Button";
6
+ import Le from "@mui/material/Typography";
7
+ import { BarChart as Ve, Error as ae, Campaign as Ne, ChevronLeft as He, ChevronRight as Ce } from "@mxenabled/mx-icons";
8
+ import { L as ke } from "./Loader-DUaFpDGv.mjs";
9
+ import Z from "@mui/material/Box";
10
+ import se from "@mui/material/IconButton";
11
+ import { useTheme as Fe } from "@mui/material/styles";
12
+ import { useInView as me } from "react-intersection-observer";
13
+ import { P as Be, CategoryIcon as Ze, MerchantLogo as Pe } from "@mxenabled/mxui";
14
+ import { b as be } from "./Category-CevNQ03n.mjs";
15
+ import te from "@mui/material/styles/useTheme";
16
+ import { b as Ge } from "./Localization-2MODESHW.mjs";
17
+ import Ue from "@mui/material/CircularProgress";
18
+ import { makeAutoObservable as ie, runInAction as Re } from "mobx";
19
+ import { G as ce, a as ze, u as Ke, b as $e } from "./useCombineEvents-CRwX-qWE.mjs";
20
+ import { B as de } from "./BeatApi-De2IaqH2.mjs";
21
+ import { u as Ye } from "./useWidgetLoadTimer-hIOioiKx.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";
26
+ const Ee = {
27
27
  featureVersion: "spendVsIncomeTrends"
28
28
  };
29
- class nt {
30
- copyApi = new _e("/", "");
29
+ class Je {
30
+ copyApi = new ce("/", "");
31
31
  copyObject = {};
32
32
  namespace = "experiences";
33
33
  translationKey = "micro_insights";
34
34
  constructor() {
35
- de(this);
35
+ ie(this);
36
36
  }
37
37
  // NOTE: Not sure if this is special case, but other stores have this deprecation todo
38
38
  // DEPRECATED: Initialize api in constructor and use loadCopy instead
39
39
  // TODO: Remove this function
40
40
  initialize = async (o, t) => {
41
- this.copyApi = new _e(o, t), await this.loadCopy();
41
+ this.copyApi = new ce(o, t), await this.loadCopy();
42
42
  };
43
43
  loadCopy = async () => {
44
44
  const o = await this.copyApi.getGlobalCopy(this.namespace, this.translationKey);
45
- Oe(() => {
45
+ Re(() => {
46
46
  this.copyObject = o[this.translationKey];
47
47
  });
48
48
  };
@@ -56,7 +56,7 @@ class nt {
56
56
  return this.copyObject.zero_state;
57
57
  }
58
58
  }
59
- const he = {
59
+ const oe = {
60
60
  BillAmountNotStandard: "BillAmountNotStandard",
61
61
  CanadianUpcomingDeadlineAlert: "CanadianUpcomingDeadlineAlert",
62
62
  DuplicatePaymentV2: "DuplicatePaymentV2",
@@ -73,59 +73,59 @@ const he = {
73
73
  WeeklyNewMerchantsV2: "WeeklyNewMerchantsV2",
74
74
  MonthlySpendComparison: "MonthlySpendComparison",
75
75
  MonthlySpendToIncomeComparison: "MonthlySpendToIncomeComparison"
76
- }, S = window?.app?.clientConfig?.microwidget_instance_id || "", me = {
76
+ }, v = window?.app?.clientConfig?.microwidget_instance_id || "", he = {
77
77
  INSIGHTS_MICRO_WIDGET: "/micro-insights-carousel"
78
- }, Te = (i) => `on${i}Click`, We = (i) => `on${i}View`, we = (i) => `on${i}ViewFirstTime`, Ee = (i) => i.replace(/([a-z])([A-Z])/g, "$1 $2"), at = () => Object.values(he).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(
79
79
  (i, o) => ({
80
80
  ...i,
81
- [Te(o)]: {
82
- action: w.MICRO_BEAT_CLICKED,
83
- category: W.BEAT_INTERACTION,
84
- label: Ee(o),
85
- value: S
81
+ [ge(o)]: {
82
+ action: L.MICRO_BEAT_CLICKED,
83
+ category: x.BEAT_INTERACTION,
84
+ label: le(o),
85
+ value: v
86
86
  }
87
87
  }),
88
88
  {}
89
- ), ct = () => Object.values(he).reduce(
89
+ ), tt = () => Object.values(oe).reduce(
90
90
  (i, o) => ({
91
91
  ...i,
92
- [We(o)]: {
93
- action: w.MICRO_BEAT_DISPLAYED,
94
- category: W.BEAT_INTERACTION,
95
- label: Ee(o),
96
- value: S
92
+ [Ie(o)]: {
93
+ action: L.MICRO_BEAT_DISPLAYED,
94
+ category: x.BEAT_INTERACTION,
95
+ label: le(o),
96
+ value: v
97
97
  }
98
98
  }),
99
99
  {}
100
- ), st = () => Object.values(he).reduce(
100
+ ), it = () => Object.values(oe).reduce(
101
101
  (i, o) => ({
102
102
  ...i,
103
- [we(o)]: {
104
- action: w.MICRO_BEAT_DISPLAYED_FIRST_TIME,
105
- category: W.BEAT_INTERACTION,
106
- label: Ee(o),
107
- value: S
103
+ [ye(o)]: {
104
+ action: L.MICRO_BEAT_DISPLAYED_FIRST_TIME,
105
+ category: x.BEAT_INTERACTION,
106
+ label: le(o),
107
+ value: v
108
108
  }
109
109
  }),
110
110
  {}
111
- ), T = {
111
+ ), D = {
112
112
  CARD: "Card",
113
113
  CAROUSEL_CONTROL: "Carousel Control",
114
114
  MICRO_WIDGET: "Micro Widget",
115
115
  VIEW_MORE: "View More"
116
- }, W = {
116
+ }, x = {
117
117
  MICRO_WIDGET_INTERACTION: "Micro Widget Interaction",
118
118
  BEAT_INTERACTION: "Beat Interaction"
119
- }, M = {
119
+ }, S = {
120
120
  ON_CAROUSEL_BACK_CLICK: "onCarouselBackClick",
121
121
  ON_CAROUSEL_BACK_SWIPE: "onCarouselBackSwipe",
122
122
  ON_CAROUSEL_FORWARD_CLICK: "onCarouselForwardClick",
123
123
  ON_CAROUSEL_FORWARD_SWIPE: "onCarouselForwardSwipe",
124
124
  ON_NO_RELEVANT_INSIGHTS_CLICKED: "onNoRelevantInsightsClicked",
125
125
  ON_VIEW_MORE_CLICKED: "onViewMoreClicked"
126
- }, xe = {
126
+ }, ve = {
127
127
  ON_VIEW_MORE_VIEWED: "onViewMoreCardView"
128
- }, w = {
128
+ }, L = {
129
129
  CONTROL_BACKWARD: "Control Backward",
130
130
  CONTROL_FORWARD: "Control Forward",
131
131
  MICRO_BEAT_CLICKED: "Micro Beat Clicked",
@@ -137,91 +137,91 @@ const he = {
137
137
  MICRO_WIDGET_CAROUSEL: "Micro Widget Carousel",
138
138
  MICRO_WIDGET_CAROUSEL_ZERO_STATE: "Micro Widget Carousel Zero State",
139
139
  MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS: "Micro Widget Carousel No Relevant Insights"
140
- }, Re = {
140
+ }, ue = {
141
141
  [H.MICRO_WIDGET_CAROUSEL]: {
142
- label: T.MICRO_WIDGET,
142
+ label: D.MICRO_WIDGET,
143
143
  name: H.MICRO_WIDGET_CAROUSEL,
144
- path: me.INSIGHTS_MICRO_WIDGET,
145
- value: S
144
+ path: he.INSIGHTS_MICRO_WIDGET,
145
+ value: v
146
146
  },
147
147
  // zero state
148
148
  [H.MICRO_WIDGET_CAROUSEL_ZERO_STATE]: {
149
- label: T.MICRO_WIDGET,
149
+ label: D.MICRO_WIDGET,
150
150
  name: H.MICRO_WIDGET_CAROUSEL_ZERO_STATE,
151
- path: me.INSIGHTS_MICRO_WIDGET,
152
- value: S
151
+ path: he.INSIGHTS_MICRO_WIDGET,
152
+ value: v
153
153
  },
154
154
  // no relevant cards
155
155
  [H.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS]: {
156
- label: T.MICRO_WIDGET,
156
+ label: D.MICRO_WIDGET,
157
157
  name: H.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS,
158
158
  path: "/micro-widget",
159
- value: S
159
+ value: v
160
160
  }
161
- }, ge = {
161
+ }, pe = {
162
162
  // carousel control interaction events - clicks and swipes
163
- [M.ON_CAROUSEL_BACK_CLICK]: {
164
- action: w.CONTROL_BACKWARD,
165
- category: W.MICRO_WIDGET_INTERACTION,
166
- label: T.CAROUSEL_CONTROL,
167
- value: S
163
+ [S.ON_CAROUSEL_BACK_CLICK]: {
164
+ action: L.CONTROL_BACKWARD,
165
+ category: x.MICRO_WIDGET_INTERACTION,
166
+ label: D.CAROUSEL_CONTROL,
167
+ value: v
168
168
  },
169
- [M.ON_CAROUSEL_FORWARD_CLICK]: {
170
- action: w.CONTROL_FORWARD,
171
- category: W.MICRO_WIDGET_INTERACTION,
172
- label: T.CAROUSEL_CONTROL,
173
- value: S
169
+ [S.ON_CAROUSEL_FORWARD_CLICK]: {
170
+ action: L.CONTROL_FORWARD,
171
+ category: x.MICRO_WIDGET_INTERACTION,
172
+ label: D.CAROUSEL_CONTROL,
173
+ value: v
174
174
  },
175
- [M.ON_CAROUSEL_BACK_SWIPE]: {
176
- action: w.SWIPE_BACKWARD,
177
- category: W.MICRO_WIDGET_INTERACTION,
178
- label: T.CAROUSEL_CONTROL,
179
- value: S
175
+ [S.ON_CAROUSEL_BACK_SWIPE]: {
176
+ action: L.SWIPE_BACKWARD,
177
+ category: x.MICRO_WIDGET_INTERACTION,
178
+ label: D.CAROUSEL_CONTROL,
179
+ value: v
180
180
  },
181
- [M.ON_CAROUSEL_FORWARD_SWIPE]: {
182
- action: w.SWIPE_FORWARD,
183
- category: W.MICRO_WIDGET_INTERACTION,
184
- label: T.CAROUSEL_CONTROL,
185
- value: S
181
+ [S.ON_CAROUSEL_FORWARD_SWIPE]: {
182
+ action: L.SWIPE_FORWARD,
183
+ category: x.MICRO_WIDGET_INTERACTION,
184
+ label: D.CAROUSEL_CONTROL,
185
+ value: v
186
186
  },
187
187
  // read more card events
188
- [M.ON_VIEW_MORE_CLICKED]: {
189
- action: w.MICRO_BEAT_CLICKED,
190
- category: W.BEAT_INTERACTION,
191
- label: T.VIEW_MORE,
192
- value: S
188
+ [S.ON_VIEW_MORE_CLICKED]: {
189
+ action: L.MICRO_BEAT_CLICKED,
190
+ category: x.BEAT_INTERACTION,
191
+ label: D.VIEW_MORE,
192
+ value: v
193
193
  },
194
- [xe.ON_VIEW_MORE_VIEWED]: {
195
- action: w.MICRO_BEAT_DISPLAYED,
196
- category: W.BEAT_INTERACTION,
197
- label: T.VIEW_MORE,
198
- value: S
194
+ [ve.ON_VIEW_MORE_VIEWED]: {
195
+ action: L.MICRO_BEAT_DISPLAYED,
196
+ category: x.BEAT_INTERACTION,
197
+ label: D.VIEW_MORE,
198
+ value: v
199
199
  },
200
- ...at(),
201
- ...ct(),
202
- ...st()
203
- }, Ie = async (i, o) => !o || !ge[i] ? null : o.sendAnalyticEvent(ge[i]).then((t) => t).catch((t) => {
200
+ ...et(),
201
+ ...tt(),
202
+ ...it()
203
+ }, _e = async (i, o) => !o || !pe[i] ? null : o.sendAnalyticEvent(pe[i]).then((t) => t).catch((t) => {
204
204
  throw t;
205
- }), ye = async (i, o) => !o || !Re[i] ? null : o.sendAnalyticsPageview(Re[i]).then((t) => t).catch((t) => {
205
+ }), fe = async (i, o) => !o || !ue[i] ? null : o.sendAnalyticsPageview(ue[i]).then((t) => t).catch((t) => {
206
206
  throw t;
207
207
  });
208
- class dt {
209
- onAnalyticEvent = Ie;
210
- onAnalyticPageView = ye;
211
- beatApi = new Ce("/", "");
208
+ class ot {
209
+ onAnalyticEvent = _e;
210
+ onAnalyticPageView = fe;
211
+ beatApi = new de("/", "");
212
212
  constructor() {
213
- de(this);
213
+ ie(this);
214
214
  }
215
- initialize = async (o, t, r) => {
216
- this.onAnalyticEvent = (n, l) => {
217
- Ie(n, l).then((a) => a).catch((a) => {
218
- throw a.status === 401 && r(), a;
215
+ initialize = async (o, t, l) => {
216
+ this.onAnalyticEvent = (n, r) => {
217
+ _e(n, r).then((a) => a).catch((a) => {
218
+ throw a.status === 401 && l(), a;
219
219
  });
220
- }, this.onAnalyticPageView = (n, l) => {
221
- ye(n, l).then((a) => a).catch((a) => {
222
- throw a.status === 401 && r(), a;
220
+ }, this.onAnalyticPageView = (n, r) => {
221
+ fe(n, r).then((a) => a).catch((a) => {
222
+ throw a.status === 401 && l(), a;
223
223
  });
224
- }, this.beatApi = new Ce(o, t);
224
+ }, this.beatApi = new de(o, t);
225
225
  };
226
226
  updateBeat = async (o) => {
227
227
  this.beatApi.updateBeat(o);
@@ -230,7 +230,7 @@ class dt {
230
230
  this.beatApi.updateOffer(o);
231
231
  };
232
232
  }
233
- class ht {
233
+ class lt {
234
234
  copyStore;
235
235
  endpoint = "/";
236
236
  insightsMicroWidgetStore;
@@ -238,196 +238,188 @@ class ht {
238
238
  token = "";
239
239
  isInitialized = !1;
240
240
  constructor() {
241
- this.copyStore = new nt(), this.insightsMicroWidgetStore = new dt(), de(this);
241
+ this.copyStore = new Je(), this.insightsMicroWidgetStore = new ot(), ie(this);
242
242
  }
243
- initialize = async (o, t, r) => {
244
- await this.copyStore.initialize(o, t), await this.insightsMicroWidgetStore.initialize(o, t, r);
245
- const n = await Je(o, t, "1.0.0", "Micro Insights Carousel");
246
- Oe(() => {
243
+ initialize = async (o, t, l) => {
244
+ await this.copyStore.initialize(o, t), await this.insightsMicroWidgetStore.initialize(o, t, l);
245
+ const n = await ze(o, t, "1.0.0", "Micro Insights Carousel");
246
+ Re(() => {
247
247
  this.session = n, this.isInitialized = !0;
248
248
  });
249
249
  };
250
250
  }
251
- const $ = u.createContext(null), Et = ({
251
+ const U = u.createContext(null), nt = ({
252
252
  onEvent: i,
253
253
  onPageview: o,
254
254
  store: t,
255
- children: r
256
- }) => /* @__PURE__ */ e($.Provider, { value: { onEvent: i, onPageview: o, store: t, children: r }, children: r }), re = u.forwardRef(
257
- function({
258
- actionText: o,
259
- ariaLabel: t,
260
- backgroundColor: r,
261
- description: n,
262
- heightOverrides: l,
263
- icon: a,
264
- isActiveCard: d,
265
- isZeroState: p,
266
- onCardClick: _ = () => {
267
- },
268
- showIcon: C,
269
- style: f = {},
270
- fontColors: h = {},
271
- title: m,
272
- variant: c,
273
- widthOverrides: E
274
- }, R) {
275
- const I = se(), [x, O] = u.useState(!1), { cardStyle: y, linkTextStyle: F } = f, z = c ? y : { border: "none", boxShadow: "none", ...y }, g = /* @__PURE__ */ e(
276
- Ke,
277
- {
278
- className: "mx-micro-card-description",
279
- color: h.textColor ? "undefined" : "text.primary",
280
- sx: {
281
- display: "-webkit-box",
282
- fontSize: 13,
283
- letterSpacing: 0.48,
284
- lineHeight: "20px",
285
- overflow: "hidden",
286
- pl: p ? 0 : 28,
287
- pr: p ? 0 : 8,
288
- WebkitBoxOrient: "vertical",
289
- WebkitLineClamp: 2,
290
- wordWrap: "break-word"
291
- },
292
- children: n && /* @__PURE__ */ e(
293
- "span",
294
- {
295
- dangerouslySetInnerHTML: { __html: n },
296
- style: { fontFamily: I.typography.fontFamily }
297
- }
298
- )
299
- }
300
- );
301
- return /* @__PURE__ */ e(
302
- U,
303
- {
304
- "aria-hidden": !d,
305
- "aria-label": t,
306
- "aria-labelledby": "divButton",
307
- "aria-roledescription": "slide",
308
- ref: R,
309
- role: "group",
310
- sx: {
311
- height: "100%",
312
- minWidth: E ? `${E}px` : "100%",
313
- fontFamily: I.typography.fontFamily
314
- },
315
- children: /* @__PURE__ */ e(
316
- U,
317
- {
318
- "aria-hidden": !d,
319
- "aria-label": t,
320
- id: "divButton",
321
- onClick: () => _(),
322
- onKeyDown: () => O(!1),
323
- onKeyUp: () => O(!0),
324
- ref: R,
325
- role: "button",
326
- sx: {
327
- border: x ? "1px solid rgba(82, 138, 224, 0.8)" : void 0,
328
- borderRadius: "8px",
329
- height: "100%"
330
- },
331
- tabIndex: d ? 0 : -1,
332
- children: /* @__PURE__ */ e(
333
- it,
334
- {
335
- "aria-roledescription": "slide",
336
- className: "mx-micro-card",
337
- role: "group",
338
- sx: {
339
- backgroundColor: r,
340
- boxSizing: "border-box",
341
- cursor: "pointer",
342
- height: l ? "100%" : 124,
343
- p: 16,
344
- ...z,
345
- "& .MuiCardHeader-avatar": {
346
- color: h.iconColor,
347
- mr: "8px"
348
- }
349
- },
350
- variant: c,
351
- children: /* @__PURE__ */ v(
352
- K,
353
- {
354
- sx: {
355
- alignItems: "space-between",
356
- height: "100%"
357
- },
358
- children: [
359
- /* @__PURE__ */ e(
360
- lt,
361
- {
362
- avatar: C && a,
363
- subheader: p && g,
364
- sx: { color: h.headerColor, p: 0 },
365
- title: m,
366
- titleTypographyProps: { fontSize: 15, fontWeight: 600, variant: "h3" }
367
- }
368
- ),
369
- /* @__PURE__ */ e(rt, { sx: { p: 0 }, children: !p && g }),
370
- !!o && /* @__PURE__ */ e(
371
- ot,
372
- {
373
- sx: {
374
- mt: "auto",
375
- p: 0
376
- },
377
- children: /* @__PURE__ */ e(
378
- U,
379
- {
380
- sx: (D) => ({
381
- color: h.buttonColor ? h.buttonColor : D.palette.primary.main,
382
- fontSize: 14,
383
- fontWeight: "bold",
384
- px: 28,
385
- fontFamily: D.typography.fontFamily,
386
- ...F
387
- }),
388
- children: o
389
- }
390
- )
391
- }
392
- )
393
- ]
394
- }
395
- )
396
- }
397
- )
398
- }
399
- )
400
- }
401
- );
402
- }
403
- ), ut = ({ beat: i }) => {
404
- const [o, t] = te(je.UNCATEGORIZED);
405
- return oe(() => {
406
- i.primary_category_guid ? t(i.primary_category_guid) : i.category_guids?.length && t(i.category_guids[0]);
407
- }, []), /* @__PURE__ */ e($e, { categoryGuid: o, size: 16, sx: { minWidth: 16 } });
408
- }, pt = ({ beat: i }) => {
409
- const o = Ae(), t = _t(o);
255
+ children: l
256
+ }) => /* @__PURE__ */ e(U.Provider, { value: { onEvent: i, onPageview: o, store: t, children: l }, children: l }), j = u.forwardRef(function({
257
+ actionText: o,
258
+ ariaLabel: t,
259
+ backgroundColor: l,
260
+ description: n,
261
+ heightOverrides: r,
262
+ icon: a,
263
+ isActiveCard: c,
264
+ isZeroState: h,
265
+ onCardClick: f = () => {
266
+ },
267
+ showIcon: p,
268
+ style: d = {},
269
+ title: E,
270
+ variant: s,
271
+ widthOverrides: C
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(
274
+ Be,
275
+ {
276
+ className: "mx-micro-card-description",
277
+ color: "text.primary",
278
+ sx: {
279
+ display: "-webkit-box",
280
+ fontSize: 13,
281
+ letterSpacing: 0.48,
282
+ lineHeight: "20px",
283
+ overflow: "hidden",
284
+ pl: h ? 0 : 28,
285
+ pr: h ? 0 : 8,
286
+ WebkitBoxOrient: "vertical",
287
+ WebkitLineClamp: 2,
288
+ wordWrap: "break-word"
289
+ },
290
+ children: n && /* @__PURE__ */ e(
291
+ "span",
292
+ {
293
+ dangerouslySetInnerHTML: { __html: n },
294
+ style: { fontFamily: R.typography.fontFamily }
295
+ }
296
+ )
297
+ }
298
+ );
410
299
  return /* @__PURE__ */ e(
411
- Ye,
300
+ Z,
412
301
  {
413
- categoryGuid: i.primary_category_guid || i.category_guids && i.category_guids[0] || "",
414
- className: t,
415
- merchantGuid: i.primary_merchant_guid || i.merchant_guids[0],
416
- size: 16
302
+ "aria-hidden": !c,
303
+ "aria-label": t,
304
+ "aria-labelledby": "divButton",
305
+ "aria-roledescription": "slide",
306
+ ref: _,
307
+ role: "group",
308
+ sx: {
309
+ height: "100%",
310
+ minWidth: C ? `${C}px` : "100%",
311
+ fontFamily: R.typography.fontFamily
312
+ },
313
+ children: /* @__PURE__ */ e(
314
+ Z,
315
+ {
316
+ "aria-hidden": !c,
317
+ "aria-label": t,
318
+ id: "divButton",
319
+ onClick: () => f(),
320
+ onKeyDown: () => I(!1),
321
+ onKeyUp: () => I(!0),
322
+ ref: _,
323
+ role: "button",
324
+ sx: {
325
+ border: O ? "1px solid rgba(82, 138, 224, 0.8)" : void 0,
326
+ borderRadius: "8px",
327
+ height: "100%"
328
+ },
329
+ tabIndex: c ? 0 : -1,
330
+ children: /* @__PURE__ */ e(
331
+ je,
332
+ {
333
+ "aria-roledescription": "slide",
334
+ className: "mx-micro-card",
335
+ role: "group",
336
+ sx: {
337
+ backgroundColor: l,
338
+ boxSizing: "border-box",
339
+ cursor: "pointer",
340
+ height: r ? "100%" : 124,
341
+ p: 16,
342
+ ...y,
343
+ "& .MuiCardHeader-avatar": {
344
+ mr: "8px"
345
+ }
346
+ },
347
+ variant: s,
348
+ children: /* @__PURE__ */ g(
349
+ k,
350
+ {
351
+ sx: {
352
+ alignItems: "space-between",
353
+ height: "100%"
354
+ },
355
+ children: [
356
+ /* @__PURE__ */ e(
357
+ qe,
358
+ {
359
+ avatar: p && a,
360
+ subheader: h && M,
361
+ sx: { p: 0 },
362
+ title: E,
363
+ titleTypographyProps: { fontSize: 15, fontWeight: 600, variant: "h3" }
364
+ }
365
+ ),
366
+ /* @__PURE__ */ e(Qe, { sx: { p: 0 }, children: !h && M }),
367
+ !!o && /* @__PURE__ */ e(
368
+ Xe,
369
+ {
370
+ sx: {
371
+ mt: "auto",
372
+ p: 0
373
+ },
374
+ children: /* @__PURE__ */ e(
375
+ Z,
376
+ {
377
+ sx: (W) => ({
378
+ color: W.palette.primary.main,
379
+ fontSize: 14,
380
+ fontWeight: "bold",
381
+ px: 28,
382
+ fontFamily: W.typography.fontFamily,
383
+ ...T
384
+ }),
385
+ children: o
386
+ }
387
+ )
388
+ }
389
+ )
390
+ ]
391
+ }
392
+ )
393
+ }
394
+ )
395
+ }
396
+ )
417
397
  }
418
398
  );
419
- }, _t = (i) => Xe({
420
- marginTop: i.Spacing.XTiny,
421
- "& .kyper-categoryicon": {
422
- display: "flex"
423
- }
424
- }), Ct = G(pt), ft = ({
399
+ }), rt = ({ beat: i }) => {
400
+ const { primary_category_guid: o, category_guids: t } = i, l = o || t?.[0] || be.UNCATEGORIZED;
401
+ return /* @__PURE__ */ e(Ze, { categoryGuid: l, size: 16, sx: { minWidth: 16 } });
402
+ }, at = ({ beat: i }) => {
403
+ const { category_guids: o, merchant_guids: t, primary_category_guid: l, primary_merchant_guid: n } = i;
404
+ return /* @__PURE__ */ e(
405
+ Pe,
406
+ {
407
+ categoryGuid: l || o && o[0] || "",
408
+ merchantGuid: n || t[0],
409
+ size: 16,
410
+ sx: {
411
+ display: "flex",
412
+ mt: 2
413
+ }
414
+ }
415
+ );
416
+ }, st = ({
425
417
  color: i = "currentColor",
426
418
  height: o,
427
419
  size: t = 16,
428
- styles: r,
420
+ styles: l,
429
421
  viewBox: n = "0 0 16 16",
430
- width: l
422
+ width: r
431
423
  }) => /* @__PURE__ */ e(
432
424
  "svg",
433
425
  {
@@ -435,9 +427,9 @@ const $ = u.createContext(null), Et = ({
435
427
  className: "kyper-icon",
436
428
  focusable: !1,
437
429
  height: o || t,
438
- style: r,
430
+ style: l,
439
431
  viewBox: n,
440
- width: l || t,
432
+ width: r || t,
441
433
  xmlns: "http://www.w3.org/2000/svg",
442
434
  children: /* @__PURE__ */ e(
443
435
  "path",
@@ -447,18 +439,18 @@ const $ = u.createContext(null), Et = ({
447
439
  }
448
440
  )
449
441
  }
450
- ), mt = (i) => i ? i.data ? i.data.map((o) => {
442
+ ), ct = (i) => i ? i.data ? i.data.map((o) => {
451
443
  const t = {};
452
- return i.names?.map((r, n) => {
453
- t[r] = o[n];
444
+ return i.names?.map((l, n) => {
445
+ t[l] = o[n];
454
446
  }), t;
455
- }) : [] : [], Rt = (i, o) => {
456
- const t = mt(i), r = t.length / 2, n = t.slice(0, r), l = t.slice(r);
457
- return !n.length || !l.length ? o.Color.Primary300 : n[0].amount > l[0].amount ? o.Color.Error300 : n[0].amount < l[0].amount ? o.Color.Success300 : o.Color.Primary300;
458
- }, gt = ({ beat: i }) => {
459
- const o = Ae(), t = Rt(i.data_series, o);
460
- return /* @__PURE__ */ e(ie, { name: "bar_chart", sx: { color: t } });
461
- }, De = () => /* @__PURE__ */ v("svg", { fill: "none", height: "36", viewBox: "0 0 40 36", width: "40", xmlns: "http://www.w3.org/2000/svg", children: [
447
+ }) : [] : [], dt = (i, o) => {
448
+ const t = ct(i), l = t.length / 2, n = t.slice(0, l), r = t.slice(l);
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;
450
+ }, Et = ({ beat: i }) => {
451
+ const o = te(), t = dt(i.data_series, o);
452
+ return /* @__PURE__ */ e(Ve, { sx: { color: t } });
453
+ }, Se = () => /* @__PURE__ */ g("svg", { fill: "none", height: "36", viewBox: "0 0 40 36", width: "40", xmlns: "http://www.w3.org/2000/svg", children: [
462
454
  /* @__PURE__ */ e(
463
455
  "path",
464
456
  {
@@ -702,7 +694,7 @@ const $ = u.createContext(null), Et = ({
702
694
  fillRule: "evenodd"
703
695
  }
704
696
  ),
705
- /* @__PURE__ */ v("g", { filter: "url(#filter0_d_1565_98011)", children: [
697
+ /* @__PURE__ */ g("g", { filter: "url(#filter0_d_1565_98011)", children: [
706
698
  /* @__PURE__ */ e("mask", { height: "22", id: "mask1_1565_98011", maskUnits: "userSpaceOnUse", width: "17", x: "16", y: "12", children: /* @__PURE__ */ e(
707
699
  "path",
708
700
  {
@@ -958,10 +950,10 @@ const $ = u.createContext(null), Et = ({
958
950
  ),
959
951
  /* @__PURE__ */ e("path", { d: "M17.9668 31.5737H19.4947", stroke: "#E4E8EE", strokeWidth: "0.264005" })
960
952
  ] }),
961
- /* @__PURE__ */ v("g", { filter: "url(#filter1_d_1565_98011)", children: [
953
+ /* @__PURE__ */ g("g", { filter: "url(#filter1_d_1565_98011)", children: [
962
954
  /* @__PURE__ */ e("circle", { cx: "15.0441", cy: "16.0441", fill: "#CDD3DD", r: "15.0441" }),
963
955
  /* @__PURE__ */ e("mask", { height: "30", id: "mask2_1565_98011", maskUnits: "userSpaceOnUse", width: "30", x: "0", y: "1", children: /* @__PURE__ */ e("circle", { cx: "15.0435", cy: "16.0445", fill: "#F8F9FB", r: "14.3951" }) }),
964
- /* @__PURE__ */ v("g", { mask: "url(#mask2_1565_98011)", children: [
956
+ /* @__PURE__ */ g("g", { mask: "url(#mask2_1565_98011)", children: [
965
957
  /* @__PURE__ */ e("rect", { fill: "white", height: "31.1359", transform: "translate(0 0.162598)", width: "31.0101" }),
966
958
  /* @__PURE__ */ e("rect", { fill: "#A8B1BD", height: "3.0172", rx: "0.167622", width: "3.0172", x: "3.26953", y: "4.52002" }),
967
959
  /* @__PURE__ */ e("rect", { fill: "#A8B1BD", height: "3.0172", rx: "0.167622", width: "3.0172", x: "3.26953", y: "17.1758" }),
@@ -1151,8 +1143,8 @@ const $ = u.createContext(null), Et = ({
1151
1143
  fill: "#CDD3DD"
1152
1144
  }
1153
1145
  ),
1154
- /* @__PURE__ */ v("defs", { children: [
1155
- /* @__PURE__ */ v(
1146
+ /* @__PURE__ */ g("defs", { children: [
1147
+ /* @__PURE__ */ g(
1156
1148
  "filter",
1157
1149
  {
1158
1150
  colorInterpolationFilters: "sRGB",
@@ -1195,7 +1187,7 @@ const $ = u.createContext(null), Et = ({
1195
1187
  ]
1196
1188
  }
1197
1189
  ),
1198
- /* @__PURE__ */ v(
1190
+ /* @__PURE__ */ g(
1199
1191
  "filter",
1200
1192
  {
1201
1193
  colorInterpolationFilters: "sRGB",
@@ -1239,145 +1231,133 @@ const $ = u.createContext(null), Et = ({
1239
1231
  }
1240
1232
  )
1241
1233
  ] })
1242
- ] }), ve = ({ beat: i, clientColorScheme: o, color: t, type: r }) => {
1243
- const n = se(), l = o?.primary_300 ? o.primary_300 : n.palette.primary.main;
1244
- return r === 0 ? /* @__PURE__ */ e(ie, { fill: !0, name: "error", sx: { color: t || l } }) : r === 1 && i ? /* @__PURE__ */ e(ut, { beat: i }) : r === 2 && i ? /* @__PURE__ */ e(Ct, { beat: i }) : r === 3 && i ? /* @__PURE__ */ e(gt, { beat: i }) : r === 5 && i ? /* @__PURE__ */ e(ie, { name: "campaign" }) : /* @__PURE__ */ e(
1245
- ie,
1234
+ ] }), ht = ({ beat: i }) => {
1235
+ const { icon_type: o, icon_color: t } = i;
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(
1237
+ ae,
1246
1238
  {
1247
- fill: !0,
1248
- name: "info",
1239
+ filled: !0,
1249
1240
  sx: {
1250
- color: l
1241
+ color: (l) => l.palette.primary.main
1251
1242
  }
1252
1243
  }
1253
1244
  );
1254
- }, k = () => {
1255
- const i = u.useContext($);
1245
+ }, V = () => {
1246
+ const i = u.useContext(U);
1256
1247
  if (!i)
1257
1248
  throw new Error("useCopyStore() must be used within the InsightsMicroWidgetDataProvider");
1258
1249
  return i.store.copyStore;
1259
- }, It = () => {
1260
- const i = u.useContext($);
1250
+ }, ut = () => {
1251
+ const i = u.useContext(U);
1261
1252
  if (!i?.store?.insightsMicroWidgetStore)
1262
1253
  throw new Error(
1263
1254
  "useInsightsMicroWidgetStore() must be used within the InsightsMicroWidgetDataProvider"
1264
1255
  );
1265
1256
  return i.store.insightsMicroWidgetStore;
1266
- }, Y = () => {
1267
- const i = u.useContext($);
1257
+ }, z = () => {
1258
+ const i = u.useContext(U);
1268
1259
  if (!i)
1269
1260
  throw new Error("useEvent() must be used within the InsightsMicroWidgetDataProvider");
1270
1261
  return { onEvent: i.onEvent };
1271
- }, Le = () => {
1272
- const i = u.useContext($);
1262
+ }, Me = () => {
1263
+ const i = u.useContext(U);
1273
1264
  if (!i)
1274
1265
  throw new Error("usePageview() must be used within the InsightsMicroWidgetDataProvider");
1275
1266
  return { onPageview: i.onPageview };
1276
- }, Ne = {
1267
+ }, pt = {
1277
1268
  LARGE: 180,
1278
1269
  STANDARD: 154,
1279
1270
  XLARGE: 200,
1280
1271
  XXLARGE: 248
1281
- }, yt = 50, Ve = 1, vt = ({
1272
+ }, _t = 50, Ae = 1, ft = ({
1282
1273
  ariaLabel: i,
1283
1274
  backgroundColor: o,
1284
1275
  beat: t,
1285
- clientColorScheme: r,
1286
- showCTAColocatedWithText: n = !0,
1287
- heightOverrides: l,
1288
- index: a,
1289
- isActiveCard: d,
1290
- onCardClick: p,
1291
- posthog: _,
1292
- showIcon: C,
1293
- variant: f,
1294
- widthOverrides: h
1276
+ showCTAColocatedWithText: l = !0,
1277
+ heightOverrides: n,
1278
+ index: r,
1279
+ isActiveCard: a,
1280
+ onCardClick: c,
1281
+ posthog: h,
1282
+ showIcon: f,
1283
+ variant: p,
1284
+ widthOverrides: d
1295
1285
  }) => {
1296
- const { ref: m, inView: c } = Me({
1297
- threshold: Ve
1298
- }), { cardsCopy: E } = k(), { onEvent: R } = Y(), { updateBeat: I, updateOffer: x } = It();
1299
- oe(() => {
1300
- c && (t.has_been_displayed ? R(We(t.template)) : (t.guid.startsWith("OFR") ? x({
1286
+ const { ref: E, inView: s } = me({
1287
+ threshold: Ae
1288
+ }), { cardsCopy: C } = V(), { onEvent: _ } = z(), { updateBeat: R, updateOffer: O } = ut();
1289
+ ee(() => {
1290
+ s && (t.has_been_displayed ? _(Ie(t.template)) : (t.guid.startsWith("OFR") ? O({
1301
1291
  ...t,
1302
1292
  has_been_displayed: !0
1303
- }) : I({
1293
+ }) : R({
1304
1294
  ...t,
1305
1295
  has_been_displayed: !0
1306
- }), R(we(t.template))));
1307
- }, [c]), oe(() => {
1308
- if (c && t)
1296
+ }), _(ye(t.template))));
1297
+ }, [s]), ee(() => {
1298
+ if (s && t)
1309
1299
  if (t.template === "MarketingOffer") {
1310
- const y = t;
1311
- _?.capture("viewed_messaging_insight", {
1300
+ const m = t;
1301
+ h?.capture("viewed_messaging_insight", {
1312
1302
  template: t.template,
1313
- campaign_guid: y.campaign_guid,
1314
- campaign_name: y.pulse_campaign_name
1303
+ campaign_guid: m.campaign_guid,
1304
+ campaign_name: m.pulse_campaign_name
1315
1305
  });
1316
1306
  } else
1317
- _?.capture("viewed_insight", {
1307
+ h?.capture("viewed_insight", {
1318
1308
  beat_guid: t.guid,
1319
1309
  template: t.template,
1320
- position: a
1310
+ position: r
1321
1311
  });
1322
- }, [t, a, c]);
1323
- const O = () => {
1324
- if (p && p(t), R(Te(t.template)), t.template === "MarketingOffer") {
1325
- const y = t;
1326
- _?.capture("clicked_messaging_insight", {
1312
+ }, [t, r, s]);
1313
+ const I = () => {
1314
+ if (c && c(t), _(ge(t.template)), t.template === "MarketingOffer") {
1315
+ const m = t;
1316
+ h?.capture("clicked_messaging_insight", {
1327
1317
  template: t.template,
1328
- campaign_guid: y.campaign_guid,
1329
- campaign_name: y.pulse_campaign_name
1318
+ campaign_guid: m.campaign_guid,
1319
+ campaign_name: m.pulse_campaign_name
1330
1320
  });
1331
1321
  } else
1332
- _?.capture("clicked_insight", {
1322
+ h?.capture("clicked_insight", {
1333
1323
  beat_guid: t.guid,
1334
1324
  template: t.template,
1335
- position: a
1325
+ position: r
1336
1326
  });
1337
1327
  };
1338
1328
  return /* @__PURE__ */ e(
1339
- re,
1329
+ j,
1340
1330
  {
1341
- actionText: t.micro_call_to_action || E.micro_card_cta,
1331
+ actionText: t.micro_call_to_action || C.micro_card_cta,
1342
1332
  ariaLabel: i,
1343
1333
  backgroundColor: o,
1344
1334
  description: t?.html_micro_description && t?.html_micro_description.length > 0 ? t.html_micro_description : t.html_description,
1345
- fontColors: { buttonColor: r?.primary_300 },
1346
- heightOverrides: l,
1347
- icon: ve && /* @__PURE__ */ e(
1348
- ve,
1349
- {
1350
- beat: t,
1351
- clientColorScheme: r,
1352
- color: t?.icon_color,
1353
- type: t?.icon_type
1354
- }
1355
- ),
1356
- isActiveCard: d,
1357
- onCardClick: O,
1358
- posthog: _,
1359
- ref: m,
1360
- showCTAColocatedWithText: n,
1361
- showIcon: C,
1335
+ heightOverrides: n,
1336
+ icon: /* @__PURE__ */ e(ht, { beat: t }),
1337
+ isActiveCard: a,
1338
+ onCardClick: I,
1339
+ posthog: h,
1340
+ ref: E,
1341
+ showCTAColocatedWithText: l,
1342
+ showIcon: f,
1362
1343
  title: t.micro_title && t.micro_title.length > 0 ? t.micro_title : t.title,
1363
- variant: f,
1364
- widthOverrides: h
1344
+ variant: p,
1345
+ widthOverrides: d
1365
1346
  }
1366
1347
  );
1367
- }, St = ({
1368
- clientColorScheme: i,
1369
- currentBeatIndex: o,
1370
- numBeats: t,
1371
- onNextClick: r,
1372
- onPreviousClick: n,
1373
- scrollRightBoundary: l,
1374
- scrollX: a,
1375
- shouldApplyNewAnimation: d = !1,
1376
- visibleCardsCount: p = 1
1348
+ }, Ct = ({
1349
+ currentBeatIndex: i,
1350
+ numBeats: o,
1351
+ onNextClick: t,
1352
+ onPreviousClick: l,
1353
+ scrollRightBoundary: n,
1354
+ scrollX: r,
1355
+ shouldApplyDotAnimation: a = !1,
1356
+ visibleCardsCount: c = 1
1377
1357
  }) => {
1378
- const _ = ze(), { carouselCopy: C } = k(), f = Math.floor(a) > l || o - p + 1 === 0, h = a < 0 || t - 1 === o, m = _.palette.grey[500], c = i?.primary_300 ?? _.palette.primary.main;
1379
- return /* @__PURE__ */ v(
1380
- K,
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;
1359
+ return /* @__PURE__ */ g(
1360
+ k,
1381
1361
  {
1382
1362
  direction: "row",
1383
1363
  sx: {
@@ -1392,34 +1372,34 @@ const $ = u.createContext(null), Et = ({
1392
1372
  },
1393
1373
  children: [
1394
1374
  /* @__PURE__ */ e(
1395
- pe,
1375
+ se,
1396
1376
  {
1397
- "aria-disabled": f,
1398
- "aria-label": C.previous_insight_cta_aria,
1399
- disabled: f,
1400
- onClick: n,
1377
+ "aria-disabled": p,
1378
+ "aria-label": f.previous_insight_cta_aria,
1379
+ disabled: p,
1380
+ onClick: l,
1401
1381
  children: /* @__PURE__ */ e(
1402
- be,
1382
+ He,
1403
1383
  {
1404
1384
  style: {
1405
- color: f ? m : c
1385
+ color: p ? E : s
1406
1386
  }
1407
1387
  }
1408
1388
  )
1409
1389
  }
1410
1390
  ),
1411
- Array.from({ length: t }).map((E, R) => {
1412
- const I = R === o;
1391
+ Array.from({ length: o }).map((C, _) => {
1392
+ const R = _ === i;
1413
1393
  return /* @__PURE__ */ e(
1414
- U,
1394
+ Z,
1415
1395
  {
1416
1396
  className: "mx-insights-micro-carousel-dots",
1417
1397
  sx: {
1418
- bgcolor: I ? c : m,
1398
+ bgcolor: R ? s : E,
1419
1399
  height: 8,
1420
1400
  mr: 8,
1421
1401
  // existing comment from meganthan "we were using `gap` instead of margin, but it doesn't work in safari browsers older than iOS 14.1"
1422
- ...d ? {
1402
+ ...a ? {
1423
1403
  borderRadius: "4px",
1424
1404
  transformOrigin: "center",
1425
1405
  transition: "all 0.5s ease-out",
@@ -1428,24 +1408,24 @@ const $ = u.createContext(null), Et = ({
1428
1408
  borderRadius: "50%",
1429
1409
  p: 0
1430
1410
  },
1431
- width: I && d ? 24 : 8
1411
+ width: R && a ? 24 : 8
1432
1412
  }
1433
1413
  },
1434
- `carousel-button-${R}`
1414
+ `carousel-button-${_}`
1435
1415
  );
1436
1416
  }),
1437
1417
  /* @__PURE__ */ e(
1438
- pe,
1418
+ se,
1439
1419
  {
1440
- "aria-disabled": h,
1441
- "aria-label": C.next_insight_cta_aria,
1442
- disabled: h,
1443
- onClick: r,
1420
+ "aria-disabled": d,
1421
+ "aria-label": f.next_insight_cta_aria,
1422
+ disabled: d,
1423
+ onClick: t,
1444
1424
  children: /* @__PURE__ */ e(
1445
- Se,
1425
+ Ce,
1446
1426
  {
1447
1427
  style: {
1448
- color: h ? m : c
1428
+ color: d ? E : s
1449
1429
  }
1450
1430
  }
1451
1431
  )
@@ -1454,115 +1434,154 @@ const $ = u.createContext(null), Et = ({
1454
1434
  ]
1455
1435
  }
1456
1436
  );
1457
- }, Mt = ({
1437
+ }, mt = ({
1438
+ activeCardIndex: i,
1439
+ beats: o,
1440
+ cardWidth: t,
1441
+ showCTAColocatedWithText: l,
1442
+ heightOverrides: n,
1443
+ onCardClick: r,
1444
+ posthog: a,
1445
+ showIcon: c,
1446
+ variant: h
1447
+ }) => {
1448
+ const { carouselCopy: f } = V(), p = {
1449
+ showCTAColocatedWithText: l,
1450
+ heightOverrides: n,
1451
+ posthog: a,
1452
+ showIcon: c,
1453
+ variant: h
1454
+ };
1455
+ return /* @__PURE__ */ g(De, { children: [
1456
+ o.map((d, E) => {
1457
+ const s = E + 1, C = o.length + 1, _ = Ge(
1458
+ f.card_position_in_carousel_aria,
1459
+ s.toString(),
1460
+ C.toString()
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;
1462
+ return /* @__PURE__ */ e(
1463
+ ft,
1464
+ {
1465
+ ariaLabel: `${_}: ${I}, ${m}`,
1466
+ beat: d,
1467
+ index: E,
1468
+ isActiveCard: E === i,
1469
+ onCardClick: r,
1470
+ widthOverrides: t || void 0,
1471
+ ...p
1472
+ },
1473
+ `${d.guid} ${E}`
1474
+ );
1475
+ }),
1476
+ /* @__PURE__ */ e(
1477
+ Ot,
1478
+ {
1479
+ isActiveCard: i === o.length,
1480
+ onCardClick: r,
1481
+ widthOverrides: t || void 0,
1482
+ ...p
1483
+ }
1484
+ )
1485
+ ] });
1486
+ }, Rt = ({
1458
1487
  analyticsMetadata: i,
1459
1488
  allowSingleCardPeeking: o = !1,
1460
1489
  beats: t = [],
1461
- clientColorScheme: r,
1462
- showCTAColocatedWithText: n,
1463
- heightOverrides: l,
1464
- onCardClick: a,
1465
- posthog: d,
1466
- shouldApplyNewAnimation: p = !1,
1467
- showCarouselControls: _,
1468
- showIcon: C,
1490
+ showCTAColocatedWithText: l,
1491
+ heightOverrides: n,
1492
+ onCardClick: r,
1493
+ posthog: a,
1494
+ showCarouselControls: c,
1495
+ showIcon: h,
1469
1496
  showWithMargin: f = !0,
1470
- variant: h,
1471
- widthOverrides: m,
1472
- visibleCardsCount: c = 1
1497
+ variant: p,
1498
+ widthOverrides: d,
1499
+ visibleCardsCount: E = 1
1473
1500
  // Default to 1 card visible
1474
1501
  }) => {
1475
- const E = u.useRef(null), R = u.useRef(null), [I, x] = u.useState(0), [O, y] = u.useState(null), [F, z] = u.useState(null), [g, D] = u.useState(null), [b, B] = u.useState(p), { carouselCopy: j } = k(), { onEvent: Z } = Y();
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();
1476
1503
  u.useEffect(() => {
1477
- if (E.current && !o) {
1478
- const s = E.current.offsetWidth, A = 8;
1479
- let N;
1480
- if (c > 1) {
1481
- const J = (s - (c - 1) * A) / c / 3;
1482
- N = (s - J - (c - 1) * A) / c;
1504
+ if (s.current && !o) {
1505
+ const A = s.current.offsetWidth, b = 8;
1506
+ let B;
1507
+ if (E > 1) {
1508
+ const ne = (A - (E - 1) * b) / E / 3;
1509
+ B = (A - ne - (E - 1) * b) / E;
1483
1510
  } else
1484
- N = s;
1485
- D(N);
1511
+ B = A;
1512
+ M(B);
1486
1513
  }
1487
- }, [c, E.current?.offsetWidth]), u.useEffect(() => {
1488
- const s = R.current?.offsetWidth;
1489
- if (typeof s == "number" && o) {
1490
- const A = (P) => {
1491
- B(!0);
1492
- const ee = [
1514
+ }, [E, s.current?.offsetWidth]), u.useEffect(() => {
1515
+ const A = C.current?.offsetWidth;
1516
+ if (typeof A == "number" && o) {
1517
+ const b = (G) => {
1518
+ const re = [
1493
1519
  { maxWidth: 375, cardWidth: 268 },
1494
1520
  { maxWidth: 444, cardWidth: 300 },
1495
1521
  { maxWidth: 599, cardWidth: 350 },
1496
1522
  { maxWidth: 749, cardWidth: 450 },
1497
1523
  { maxWidth: 900, cardWidth: 600 }
1498
- ].find((ce) => P <= ce.maxWidth);
1499
- return ee ? ee.cardWidth : 750;
1524
+ ].find((we) => G <= we.maxWidth);
1525
+ return re ? re.cardWidth : 750;
1500
1526
  };
1501
- D(A(s));
1502
- const N = () => {
1503
- const P = R.current?.offsetWidth;
1504
- typeof P == "number" && D(A(P));
1527
+ M(b(A));
1528
+ const B = () => {
1529
+ const G = C.current?.offsetWidth;
1530
+ typeof G == "number" && M(b(G));
1505
1531
  };
1506
- return window.addEventListener("resize", N), () => {
1507
- window.removeEventListener("resize", N);
1532
+ return window.addEventListener("resize", B), () => {
1533
+ window.removeEventListener("resize", B);
1508
1534
  };
1509
1535
  }
1510
- }, [o, R]);
1511
- const X = () => {
1512
- Z(M.ON_CAROUSEL_FORWARD_CLICK, i), E.current && g && E.current.scrollTo({
1513
- left: I + g + 8,
1536
+ }, [o, C]);
1537
+ const K = () => {
1538
+ F(S.ON_CAROUSEL_FORWARD_CLICK, i), s.current && y && s.current.scrollTo({
1539
+ left: _ + y + 8,
1514
1540
  top: 0,
1515
1541
  behavior: "smooth"
1516
1542
  });
1517
- }, le = () => {
1518
- Z(M.ON_CAROUSEL_BACK_CLICK, i), E.current && g && E.current.scrollTo({
1519
- left: Math.max(0, I - (g + 8)),
1543
+ }, $ = () => {
1544
+ F(S.ON_CAROUSEL_BACK_CLICK, i), s.current && y && s.current.scrollTo({
1545
+ left: Math.max(0, _ - (y + 8)),
1520
1546
  top: 0,
1521
1547
  behavior: "smooth"
1522
1548
  });
1523
- }, ne = () => {
1524
- E.current && x(E.current.scrollLeft);
1549
+ }, X = () => {
1550
+ s.current && R(s.current.scrollLeft);
1525
1551
  }, Q = () => {
1526
- if (!F || !O) return;
1527
- F - O > yt ? Z(M.ON_CAROUSEL_FORWARD_SWIPE, i) : Z(M.ON_CAROUSEL_BACK_SWIPE, i);
1528
- }, q = (s) => {
1529
- y(s.targetTouches[0].clientX);
1530
- }, L = (s) => {
1531
- y(null), z(s.targetTouches[0].clientX);
1532
- }, ue = {
1533
- clientColorScheme: r,
1534
- showCTAColocatedWithText: n,
1535
- heightOverrides: l,
1536
- posthog: d,
1537
- showIcon: C,
1538
- variant: h
1539
- }, ae = g ? Math.round(I / (g + 8)) : 0, Fe = E.current ? E.current.scrollWidth - E.current.offsetWidth : 0;
1540
- return /* @__PURE__ */ v(
1541
- K,
1552
+ if (!m || !O) return;
1553
+ m - O > _t ? F(S.ON_CAROUSEL_FORWARD_SWIPE, i) : F(S.ON_CAROUSEL_BACK_SWIPE, i);
1554
+ }, q = (A) => {
1555
+ I(A.targetTouches[0].clientX);
1556
+ }, Y = (A) => {
1557
+ I(null), T(A.targetTouches[0].clientX);
1558
+ }, w = y ? Math.round(_ / (y + 8)) : 0, We = s.current ? s.current.scrollWidth - s.current.offsetWidth : 0;
1559
+ return /* @__PURE__ */ g(
1560
+ k,
1542
1561
  {
1543
- "aria-label": j.carousel_title,
1562
+ "aria-label": W.carousel_title,
1544
1563
  "aria-roledescription": "carousel",
1545
- ref: R,
1564
+ ref: C,
1546
1565
  role: "group/region",
1547
1566
  sx: {
1548
1567
  alignItems: "center",
1549
1568
  boxSizing: "border-box",
1550
- height: l,
1551
- width: m || "100%"
1569
+ height: n,
1570
+ width: d || "100%"
1552
1571
  },
1553
1572
  children: [
1554
- /* @__PURE__ */ v(
1555
- K,
1573
+ /* @__PURE__ */ e(
1574
+ k,
1556
1575
  {
1557
1576
  direction: "row",
1558
- onScroll: ne,
1577
+ onScroll: X,
1559
1578
  onTouchEnd: Q,
1560
1579
  onTouchMove: q,
1561
- onTouchStart: L,
1562
- ref: E,
1580
+ onTouchStart: Y,
1581
+ ref: s,
1563
1582
  sx: {
1564
1583
  alignItems: "center",
1565
- height: l && "100%",
1584
+ height: n && "100%",
1566
1585
  gap: 8,
1567
1586
  listStyleType: "none",
1568
1587
  m: 0,
@@ -1577,68 +1596,49 @@ const $ = u.createContext(null), Et = ({
1577
1596
  display: "none"
1578
1597
  }
1579
1598
  },
1580
- children: [
1581
- t.map((s, A) => {
1582
- const N = A + 1, P = t.length + 1, J = Qe(
1583
- j.card_position_in_carousel_aria,
1584
- N.toString(),
1585
- P.toString()
1586
- ), ee = s.micro_title && s.micro_title.length > 0, ce = s.micro_description && s.micro_description.length > 0, Be = ee ? s.micro_title : s.title, Ze = ce ? s.micro_description : s.description;
1587
- return /* @__PURE__ */ e(
1588
- vt,
1589
- {
1590
- ariaLabel: `${J}: ${Be}, ${Ze}`,
1591
- beat: s,
1592
- index: A,
1593
- isActiveCard: A === ae,
1594
- onCardClick: a,
1595
- widthOverrides: g || void 0,
1596
- ...ue
1597
- },
1598
- `${s.guid} ${A}`
1599
- );
1600
- }),
1601
- /* @__PURE__ */ e(
1602
- Lt,
1603
- {
1604
- isActiveCard: ae === t.length,
1605
- onCardClick: a,
1606
- widthOverrides: g || void 0,
1607
- ...ue
1608
- }
1609
- )
1610
- ]
1599
+ children: /* @__PURE__ */ e(
1600
+ mt,
1601
+ {
1602
+ activeCardIndex: w,
1603
+ beats: t,
1604
+ cardWidth: y,
1605
+ heightOverrides: n,
1606
+ onCardClick: r,
1607
+ posthog: a,
1608
+ showCTAColocatedWithText: l,
1609
+ showIcon: h,
1610
+ variant: p
1611
+ }
1612
+ )
1611
1613
  }
1612
1614
  ),
1613
- _ && /* @__PURE__ */ e(
1614
- St,
1615
+ c && /* @__PURE__ */ e(
1616
+ Ct,
1615
1617
  {
1616
- clientColorScheme: r,
1617
- currentBeatIndex: ae + c - 1,
1618
+ currentBeatIndex: w + E - 1,
1618
1619
  numBeats: t.length + 1,
1619
- onNextClick: X,
1620
- onPreviousClick: le,
1621
- scrollRightBoundary: Fe,
1622
- scrollX: I,
1623
- shouldApplyNewAnimation: b,
1624
- visibleCardsCount: c
1620
+ onNextClick: K,
1621
+ onPreviousClick: $,
1622
+ scrollRightBoundary: We,
1623
+ scrollX: _,
1624
+ shouldApplyDotAnimation: o,
1625
+ visibleCardsCount: E
1625
1626
  }
1626
1627
  )
1627
1628
  ]
1628
1629
  }
1629
1630
  );
1630
- }, At = G(Mt), Ot = ({
1631
+ }, gt = P(Rt), It = ({
1631
1632
  analyticsMetadata: i,
1632
- clientColorScheme: o,
1633
- onCardClick: t,
1634
- posthog: r,
1635
- widthOverrides: n
1633
+ onCardClick: o,
1634
+ posthog: t,
1635
+ widthOverrides: l
1636
1636
  }) => {
1637
- const { carouselCopy: l } = k(), { onEvent: a } = Y(), d = () => {
1638
- a && (a(M.ON_VIEW_MORE_CLICKED, i), t(), r?.capture("clicked_view_more"));
1637
+ const { carouselCopy: n } = V(), { onEvent: r } = z(), a = () => {
1638
+ r && (r(S.ON_VIEW_MORE_CLICKED, i), o(), t?.capture("clicked_view_more"));
1639
1639
  };
1640
- return l ? /* @__PURE__ */ v(
1641
- K,
1640
+ return n ? /* @__PURE__ */ g(
1641
+ k,
1642
1642
  {
1643
1643
  alignItems: "center",
1644
1644
  direction: "row",
@@ -1646,48 +1646,48 @@ const $ = u.createContext(null), Et = ({
1646
1646
  spacing: 2,
1647
1647
  sx: {
1648
1648
  padding: 16,
1649
- width: n || void 0
1649
+ width: l || void 0
1650
1650
  },
1651
1651
  children: [
1652
1652
  /* @__PURE__ */ e(
1653
- Ge,
1653
+ Le,
1654
1654
  {
1655
- sx: {
1656
- color: o?.primary_300,
1655
+ sx: (c) => ({
1656
+ color: c.palette.primary.main,
1657
1657
  fontSize: 18,
1658
1658
  fontWeight: 700,
1659
1659
  lineHeight: "24px"
1660
- },
1660
+ }),
1661
1661
  variant: "h3",
1662
- children: l.carousel_title
1662
+ children: n.carousel_title
1663
1663
  }
1664
1664
  ),
1665
1665
  /* @__PURE__ */ e(
1666
- Pe,
1666
+ xe,
1667
1667
  {
1668
- endIcon: /* @__PURE__ */ e(Se, { size: 20 }),
1669
- onClick: d,
1668
+ endIcon: /* @__PURE__ */ e(Ce, { size: 20 }),
1669
+ onClick: a,
1670
1670
  size: "small",
1671
- sx: {
1672
- color: o?.primary_300
1673
- },
1671
+ sx: (c) => ({
1672
+ color: c.palette.primary.main
1673
+ }),
1674
1674
  variant: "text",
1675
- children: l.view_all_insights_in_full_feed_cta_aria
1675
+ children: n.view_all_insights_in_full_feed_cta_aria
1676
1676
  }
1677
1677
  )
1678
1678
  ]
1679
1679
  }
1680
- ) : /* @__PURE__ */ e(Ue, {});
1681
- }, Tt = G(Ot), Wt = ({
1680
+ ) : /* @__PURE__ */ e(ke, {});
1681
+ }, yt = P(It), vt = ({
1682
1682
  heightOverrides: i,
1683
1683
  widthOverrides: o,
1684
1684
  children: t
1685
1685
  }) => {
1686
- const { carouselCopy: r } = k();
1686
+ const { carouselCopy: l } = V();
1687
1687
  return /* @__PURE__ */ e(
1688
- U,
1688
+ Z,
1689
1689
  {
1690
- "aria-label": r?.carousel_title,
1690
+ "aria-label": l?.carousel_title,
1691
1691
  "aria-roledescription": "carousel",
1692
1692
  role: "group",
1693
1693
  sx: {
@@ -1699,104 +1699,72 @@ const $ = u.createContext(null), Et = ({
1699
1699
  children: t
1700
1700
  }
1701
1701
  );
1702
- }, He = ({
1702
+ }, Oe = ({
1703
1703
  ariaLabel: i,
1704
- carouselSize: o,
1705
- clientColorScheme: t,
1706
- heightOverrides: r,
1707
- onCardClick: n,
1704
+ heightOverrides: o,
1705
+ onCardClick: t,
1708
1706
  posthog: l,
1709
- showIcon: a,
1710
- showWithMargin: d,
1711
- variant: p,
1712
- widthOverrides: _
1707
+ showIcon: n,
1708
+ variant: r
1713
1709
  }) => {
1714
- const { cardsCopy: C } = k(), { onEvent: f } = Y(), { onPageview: h } = Le();
1710
+ const { cardsCopy: a } = V(), { onEvent: c } = z(), { onPageview: h } = Me();
1715
1711
  u.useEffect(() => {
1716
1712
  h(H.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS);
1717
1713
  }, []);
1718
- const m = () => {
1719
- n && n(), f(M.ON_NO_RELEVANT_INSIGHTS_CLICKED), l?.capture("clicked_insight", {
1714
+ const f = () => {
1715
+ t && t(), c(S.ON_NO_RELEVANT_INSIGHTS_CLICKED), l?.capture("clicked_insight", {
1720
1716
  template: "no_relevant_insights"
1721
1717
  });
1722
1718
  };
1723
1719
  return /* @__PURE__ */ e(
1724
- re,
1720
+ j,
1725
1721
  {
1726
- actionText: C.micro_card_cta,
1722
+ actionText: a.micro_card_cta,
1727
1723
  ariaLabel: i,
1728
- description: C.no_relevant_insights_card_description,
1729
- fontColors: { buttonColor: t?.primary_300 },
1730
- heightOverrides: r,
1731
- icon: /* @__PURE__ */ e(De, {}),
1724
+ description: a.no_relevant_insights_card_description,
1725
+ heightOverrides: o,
1726
+ icon: /* @__PURE__ */ e(Se, {}),
1732
1727
  isZeroState: !0,
1733
- onCardClick: m,
1728
+ onCardClick: f,
1734
1729
  posthog: l,
1735
- showIcon: a,
1730
+ showIcon: n,
1736
1731
  style: {
1737
- cardStyle: {
1738
- card: {
1739
- height: `calc(${Ne[o]}px - 44px)`,
1740
- m: "0 auto",
1741
- width: d ? "calc(100% - 32px)" : "100%"
1742
- },
1743
- description: {
1744
- WebkitLineClamp: 4
1745
- }
1746
- },
1747
1732
  linkTextStyle: {
1748
1733
  ml: 48
1749
1734
  }
1750
1735
  },
1751
- title: C.no_relevant_insights_card_title,
1752
- variant: p,
1753
- widthOverrides: _
1736
+ title: a.no_relevant_insights_card_title,
1737
+ variant: r
1754
1738
  }
1755
1739
  );
1756
- }, li = G(He), ke = ({
1740
+ }, Jt = P(Oe), Te = ({
1757
1741
  ariaLabel: i,
1758
- carouselSize: o,
1759
- heightOverrides: t,
1760
- onCardClick: r,
1761
- posthog: n,
1762
- showIcon: l,
1763
- showWithMargin: a,
1764
- variant: d,
1765
- widthOverrides: p
1742
+ heightOverrides: o,
1743
+ onCardClick: t,
1744
+ posthog: l,
1745
+ showIcon: n,
1746
+ variant: r
1766
1747
  }) => {
1767
- const { onPageview: _ } = Le(), { zeroStateCopy: C } = k();
1748
+ const { onPageview: a } = Me(), { zeroStateCopy: c } = V();
1768
1749
  return u.useEffect(() => {
1769
- _(H.MICRO_WIDGET_CAROUSEL_ZERO_STATE);
1750
+ a(H.MICRO_WIDGET_CAROUSEL_ZERO_STATE);
1770
1751
  }, []), /* @__PURE__ */ e(
1771
- re,
1752
+ j,
1772
1753
  {
1773
1754
  ariaLabel: i,
1774
- description: C.carousel_zero_state_description,
1775
- heightOverrides: t,
1776
- icon: /* @__PURE__ */ e(De, {}),
1755
+ description: c.carousel_zero_state_description,
1756
+ heightOverrides: o,
1757
+ icon: /* @__PURE__ */ e(Se, {}),
1777
1758
  isZeroState: !0,
1778
- onCardClick: r,
1779
- posthog: n,
1780
- showIcon: l,
1781
- style: {
1782
- cardStyle: {
1783
- card: {
1784
- height: `calc(${Ne[o]}px - 44px)`,
1785
- m: "0 auto",
1786
- width: a ? "calc(100% - 32px)" : "100%"
1787
- },
1788
- description: {
1789
- WebkitLineClamp: 4
1790
- }
1791
- }
1792
- },
1793
- title: C.carousel_zero_state_title,
1794
- variant: d,
1795
- widthOverrides: p
1759
+ onCardClick: t,
1760
+ posthog: l,
1761
+ showIcon: n,
1762
+ title: c.carousel_zero_state_title,
1763
+ variant: r
1796
1764
  }
1797
1765
  );
1798
- }, ni = G(ke), wt = () => /* @__PURE__ */ e(
1799
- U,
1766
+ }, ei = P(Te), St = () => /* @__PURE__ */ e(
1767
+ Z,
1800
1768
  {
1801
1769
  sx: {
1802
1770
  alignItems: "center",
@@ -1805,148 +1773,163 @@ const $ = u.createContext(null), Et = ({
1805
1773
  justifyContent: "center",
1806
1774
  width: "100%"
1807
1775
  },
1808
- children: /* @__PURE__ */ e(qe, {})
1776
+ children: /* @__PURE__ */ e(Ue, {})
1809
1777
  }
1810
- ), V = new ht(), xt = ({
1778
+ ), N = new lt(), Mt = ({
1811
1779
  allowSingleCardPeeking: i,
1812
1780
  areBeatsLoading: o,
1813
1781
  beats: t = [],
1814
1782
  // This also determines the length of the carousel controls (beat.length + 1)
1815
- clientColorScheme: r,
1816
- // Allows certain icons, view all and read more button to reflect the clients color scheme. Currently only supports primary_300
1817
- showCTAColocatedWithText: n = !0,
1818
- endpoint: l = "/",
1819
- heightOverrides: a,
1820
- logOutUser: d,
1821
- onCardClick: p = () => {
1783
+ showCTAColocatedWithText: l = !0,
1784
+ endpoint: n = "/",
1785
+ heightOverrides: r,
1786
+ logOutUser: a,
1787
+ onCardClick: c = () => {
1822
1788
  },
1823
- onEvent: _ = () => {
1789
+ onEvent: h = () => {
1824
1790
  },
1825
- onPageview: C = () => {
1791
+ onPageview: f = () => {
1826
1792
  },
1827
- posthog: f,
1828
- shouldApplyNewAnimation: h = !1,
1829
- showBorder: m = !0,
1830
- showCarouselControls: c,
1831
- showHeader: E,
1832
- showIcon: R,
1833
- showWithMargin: I = !0,
1834
- token: x = "",
1835
- useDarkMode: O,
1836
- userHasFullInsightFeedBeats: y,
1837
- variant: F,
1838
- visibleCardsCount: z = 1,
1839
- widthOverrides: g
1793
+ posthog: p,
1794
+ showBorder: d = !0,
1795
+ showCarouselControls: E,
1796
+ showHeader: s,
1797
+ showIcon: C,
1798
+ showWithMargin: _ = !0,
1799
+ token: R = "",
1800
+ userHasFullInsightFeedBeats: O,
1801
+ variant: I,
1802
+ visibleCardsCount: m = 1,
1803
+ widthOverrides: T
1840
1804
  }) => {
1841
- const [D, b] = te("STANDARD"), [B, j] = te(!1), [Z, X] = te(!1), le = et([_], V), ne = tt([C], V);
1842
- u.useEffect(() => {
1843
- !V.isInitialized && !Z && (V.initialize(l, x, d).catch(() => X(!1)), X(!0));
1844
- }, [l, x, d, V.isInitialized, Z]), u.useEffect(() => {
1845
- const L = window.innerHeight;
1846
- L < 180 ? b("STANDARD") : L >= 180 && L < 200 ? b("LARGE") : L >= 200 && L < 248 ? b("XLARGE") : L >= 248 && b("XXLARGE");
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(() => {
1810
+ !N.isInitialized && !K && (N.initialize(n, R, a).catch(() => $(!1)), $(!0));
1811
+ }, [n, R, a, N.isInitialized, K]), u.useEffect(() => {
1812
+ const w = window.innerHeight;
1813
+ w < 180 ? M("STANDARD") : w >= 180 && w < 200 ? M("LARGE") : w >= 200 && w < 248 ? M("XLARGE") : w >= 248 && M("XXLARGE");
1847
1814
  }, [window.innerHeight]), u.useEffect(() => {
1848
- j(!o && V.isInitialized);
1849
- }, [o, V.isInitialized]);
1850
- const Q = {
1851
- showCTAColocatedWithText: n,
1852
- heightOverrides: a,
1853
- onCardClick: p,
1854
- posthog: f,
1855
- showIcon: R,
1856
- showWithMargin: I,
1857
- useDarkMode: O,
1858
- widthOverrides: g
1859
- }, q = {
1860
- carouselSize: D,
1861
- variant: F,
1862
- ...Q
1815
+ F(!o && N.isInitialized);
1816
+ }, [o, N.isInitialized]);
1817
+ const q = {
1818
+ showCTAColocatedWithText: l,
1819
+ heightOverrides: r,
1820
+ onCardClick: c,
1821
+ posthog: p,
1822
+ showIcon: C,
1823
+ showWithMargin: _,
1824
+ widthOverrides: T
1825
+ }, Y = {
1826
+ carouselSize: y,
1827
+ variant: I,
1828
+ showCTAColocatedWithText: l,
1829
+ heightOverrides: r,
1830
+ onCardClick: c,
1831
+ posthog: p,
1832
+ showIcon: C
1863
1833
  };
1864
- return /* @__PURE__ */ e(Et, { onEvent: le, onPageview: ne, store: V, children: /* @__PURE__ */ v(Wt, { heightOverrides: a, widthOverrides: g, children: [
1865
- !B && /* @__PURE__ */ e(wt, {}),
1866
- B && E && /* @__PURE__ */ e(
1867
- Tt,
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, {}),
1836
+ W && s && /* @__PURE__ */ e(
1837
+ yt,
1868
1838
  {
1869
- analyticsMetadata: fe,
1870
- clientColorScheme: r,
1871
- onCardClick: p,
1872
- posthog: f,
1873
- widthOverrides: g
1839
+ analyticsMetadata: Ee,
1840
+ onCardClick: c,
1841
+ posthog: p,
1842
+ widthOverrides: T
1874
1843
  }
1875
1844
  ),
1876
- B && !!t.length && /* @__PURE__ */ e(
1877
- At,
1845
+ W && !!t.length && /* @__PURE__ */ e(
1846
+ gt,
1878
1847
  {
1879
1848
  allowSingleCardPeeking: i,
1880
- analyticsMetadata: fe,
1849
+ analyticsMetadata: Ee,
1881
1850
  beats: t,
1882
- clientColorScheme: r,
1883
- shouldApplyNewAnimation: h,
1884
- showCarouselControls: c,
1885
- variant: m ? F : void 0,
1886
- visibleCardsCount: z,
1887
- ...Q
1851
+ showCarouselControls: E,
1852
+ variant: d ? I : void 0,
1853
+ visibleCardsCount: m,
1854
+ ...q
1888
1855
  }
1889
1856
  ),
1890
- B && !t.length && y && /* @__PURE__ */ e(He, { clientColorScheme: r, ...q }),
1891
- B && !t.length && !y && /* @__PURE__ */ e(ke, { ...q })
1857
+ W && !t.length && /* @__PURE__ */ e(
1858
+ k,
1859
+ {
1860
+ sx: {
1861
+ alignItems: "center",
1862
+ height: r,
1863
+ width: T || "100%"
1864
+ },
1865
+ children: /* @__PURE__ */ e(
1866
+ k,
1867
+ {
1868
+ sx: {
1869
+ height: `calc(${pt[y]}px - 44px)`,
1870
+ width: _ ? `calc(${T}px - 32px)` : "100%"
1871
+ },
1872
+ children: O ? /* @__PURE__ */ e(Oe, { ...Y }) : /* @__PURE__ */ e(Te, { ...Y })
1873
+ }
1874
+ )
1875
+ }
1876
+ )
1892
1877
  ] }) });
1893
- }, ai = G(xt), Dt = ({
1878
+ }, ti = P(Mt), At = ({
1894
1879
  isActiveCard: i,
1895
1880
  ariaLabel: o,
1896
- clientColorScheme: t,
1897
- heightOverrides: r,
1898
- onCardClick: n,
1899
- posthog: l,
1900
- showIcon: a,
1901
- variant: d,
1902
- widthOverrides: p
1881
+ heightOverrides: t,
1882
+ onCardClick: l,
1883
+ posthog: n,
1884
+ showIcon: r,
1885
+ variant: a,
1886
+ widthOverrides: c
1903
1887
  }) => {
1904
- const _ = se(), { ref: C, inView: f } = Me({
1905
- threshold: Ve
1906
- }), { cardsCopy: h } = k(), { onEvent: m } = Y();
1907
- oe(() => {
1908
- f && (m(xe.ON_VIEW_MORE_VIEWED), l?.capture("viewed_insight", {
1888
+ const h = te(), { ref: f, inView: p } = me({
1889
+ threshold: Ae
1890
+ }), { cardsCopy: d } = V(), { onEvent: E } = z();
1891
+ ee(() => {
1892
+ p && (E(ve.ON_VIEW_MORE_VIEWED), n?.capture("viewed_insight", {
1909
1893
  template: "view_more_card"
1910
1894
  }));
1911
- }, [f]);
1912
- const c = () => {
1913
- n && n(), m(M.ON_VIEW_MORE_CLICKED), l?.capture("clicked_insight", {
1895
+ }, [p]);
1896
+ const s = () => {
1897
+ l && l(), E(S.ON_VIEW_MORE_CLICKED), n?.capture("clicked_insight", {
1914
1898
  template: "view_more_card"
1915
1899
  });
1916
1900
  };
1917
1901
  return /* @__PURE__ */ e(
1918
- re,
1902
+ j,
1919
1903
  {
1920
- actionText: h.micro_card_cta,
1904
+ actionText: d.micro_card_cta,
1921
1905
  ariaLabel: o,
1922
- description: h.view_more_card_description,
1923
- fontColors: { buttonColor: t?.primary_300 },
1924
- heightOverrides: r,
1925
- icon: /* @__PURE__ */ e(ft, { color: t?.primary_300 ?? _.palette.primary.main }),
1906
+ description: d.view_more_card_description,
1907
+ heightOverrides: t,
1908
+ icon: /* @__PURE__ */ e(st, { color: h.palette.primary.main }),
1926
1909
  isActiveCard: i,
1927
- onCardClick: c,
1928
- posthog: l,
1929
- ref: C,
1930
- showIcon: a,
1931
- title: h.view_more_card_title,
1932
- variant: d,
1933
- widthOverrides: p
1910
+ onCardClick: s,
1911
+ posthog: n,
1912
+ ref: f,
1913
+ showIcon: r,
1914
+ title: d.view_more_card_title,
1915
+ variant: a,
1916
+ widthOverrides: c
1934
1917
  }
1935
1918
  );
1936
- }, Lt = G(Dt);
1919
+ }, Ot = P(At);
1937
1920
  export {
1938
- ht as A,
1939
- vt as B,
1940
- Tt as C,
1941
- Et as I,
1942
- At as M,
1943
- li as N,
1944
- fe as T,
1945
- Lt as V,
1946
- ni as Z,
1947
- re as a,
1948
- ai as b,
1949
- ft as c,
1950
- gt as d,
1951
- De as e
1921
+ lt as A,
1922
+ j as B,
1923
+ yt as C,
1924
+ nt as I,
1925
+ gt as M,
1926
+ Jt as N,
1927
+ Ee as T,
1928
+ Ot as V,
1929
+ ei as Z,
1930
+ ft as a,
1931
+ ti as b,
1932
+ st as c,
1933
+ Et as d,
1934
+ Se as e
1952
1935
  };