@mx-cartographer/experiences 9.1.0-alpha.bb1 → 9.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (245) hide show
  1. package/CHANGELOG.md +75 -0
  2. package/README.md +10 -10
  3. package/dist/Account-DR7Plrqy.mjs +119 -0
  4. package/dist/Account-DR7Plrqy.mjs.map +1 -0
  5. package/dist/AccountDetailsDrawer-CZPeLsCq.mjs +922 -0
  6. package/dist/AccountDetailsDrawer-CZPeLsCq.mjs.map +1 -0
  7. package/dist/AccountDetailsHeader-BvbCUQSS.mjs +231 -0
  8. package/dist/AccountDetailsHeader-BvbCUQSS.mjs.map +1 -0
  9. package/dist/AccountUtils-B8ZzWI-d.mjs +28 -0
  10. package/dist/AccountUtils-B8ZzWI-d.mjs.map +1 -0
  11. package/dist/Analytics-CkYXKvco.mjs +54 -0
  12. package/dist/Analytics-CkYXKvco.mjs.map +1 -0
  13. package/dist/Analytics-WeZYytR0.mjs +140 -0
  14. package/dist/Analytics-WeZYytR0.mjs.map +1 -0
  15. package/dist/ApiEndpoints-DXwIYNUV.mjs +50 -0
  16. package/dist/ApiEndpoints-DXwIYNUV.mjs.map +1 -0
  17. package/dist/BeatMaterialIcon-1KOfRZrA.mjs +27 -0
  18. package/dist/BeatMaterialIcon-1KOfRZrA.mjs.map +1 -0
  19. package/dist/BudgetUtil-Bg2AQJpQ.mjs +75 -0
  20. package/dist/BudgetUtil-Bg2AQJpQ.mjs.map +1 -0
  21. package/dist/Category-DEKZGLYe.mjs +302 -0
  22. package/dist/Category-DEKZGLYe.mjs.map +1 -0
  23. package/dist/CategorySelectorDrawer-NJsFsKP1.mjs +431 -0
  24. package/dist/CategorySelectorDrawer-NJsFsKP1.mjs.map +1 -0
  25. package/dist/Connect-BH0Pt6zc.mjs +43 -0
  26. package/dist/Connect-BH0Pt6zc.mjs.map +1 -0
  27. package/dist/ConnectCard-D7uxoH5Y.mjs +55 -0
  28. package/dist/ConnectCard-D7uxoH5Y.mjs.map +1 -0
  29. package/dist/ConnectDrawer-CW4LA3H3.mjs +58 -0
  30. package/dist/ConnectDrawer-CW4LA3H3.mjs.map +1 -0
  31. package/dist/ConnectionsDrawer-CZU9ku-k.mjs +54 -0
  32. package/dist/ConnectionsDrawer-CZU9ku-k.mjs.map +1 -0
  33. package/dist/CurrencyDialog-DumQCTPO.mjs +374 -0
  34. package/dist/CurrencyDialog-DumQCTPO.mjs.map +1 -0
  35. package/dist/CurrencyInput-DaGEQaLW.mjs +88 -0
  36. package/dist/CurrencyInput-DaGEQaLW.mjs.map +1 -0
  37. package/dist/CurrencyText-CCbE6MmF.mjs +21 -0
  38. package/dist/CurrencyText-CCbE6MmF.mjs.map +1 -0
  39. package/dist/DateFormats-HudZ3Bjs.mjs +65 -0
  40. package/dist/DateFormats-HudZ3Bjs.mjs.map +1 -0
  41. package/dist/DateUtil-CzBmbjmA.mjs +75 -0
  42. package/dist/DateUtil-CzBmbjmA.mjs.map +1 -0
  43. package/dist/DebtUtils-i4pI2Uoe.mjs +154 -0
  44. package/dist/DebtUtils-i4pI2Uoe.mjs.map +1 -0
  45. package/dist/Dialog-Bvd2n8hz.mjs +67 -0
  46. package/dist/Dialog-Bvd2n8hz.mjs.map +1 -0
  47. package/dist/Donut-SzzfZDHF.mjs +89 -0
  48. package/dist/Donut-SzzfZDHF.mjs.map +1 -0
  49. package/dist/Drawer-DsnW2o0v.mjs +175 -0
  50. package/dist/Drawer-DsnW2o0v.mjs.map +1 -0
  51. package/dist/EmbeddedCard-DH8vQ3qN.mjs +859 -0
  52. package/dist/EmbeddedCard-DH8vQ3qN.mjs.map +1 -0
  53. package/dist/EmptyState-CJUDc3kD.mjs +85 -0
  54. package/dist/EmptyState-CJUDc3kD.mjs.map +1 -0
  55. package/dist/Error-Dtw6yxkf.mjs +85 -0
  56. package/dist/Error-Dtw6yxkf.mjs.map +1 -0
  57. package/dist/ErrorBoundary-CsdOcnJ9.mjs +24 -0
  58. package/dist/ErrorBoundary-CsdOcnJ9.mjs.map +1 -0
  59. package/dist/ExportCsvAction-C9KWH3Az.mjs +25 -0
  60. package/dist/ExportCsvAction-C9KWH3Az.mjs.map +1 -0
  61. package/dist/GlobalAccountFilter-BhzR5Vb1.mjs +230 -0
  62. package/dist/GlobalAccountFilter-BhzR5Vb1.mjs.map +1 -0
  63. package/dist/GlobalCopyApi-wcnDUzMV.mjs +129 -0
  64. package/dist/GlobalCopyApi-wcnDUzMV.mjs.map +1 -0
  65. package/dist/GoalsUtil-C9EnLWvC.mjs +108 -0
  66. package/dist/GoalsUtil-C9EnLWvC.mjs.map +1 -0
  67. package/dist/HeaderCell-P8w6CmfO.mjs +7 -0
  68. package/dist/HeaderCell-P8w6CmfO.mjs.map +1 -0
  69. package/dist/Help-CkQTjORd.mjs +300 -0
  70. package/dist/Help-CkQTjORd.mjs.map +1 -0
  71. package/dist/Help-aERwhajy.mjs +3210 -0
  72. package/dist/Help-aERwhajy.mjs.map +1 -0
  73. package/dist/IconBacking-DgT8DCeh.mjs +40 -0
  74. package/dist/IconBacking-DgT8DCeh.mjs.map +1 -0
  75. package/dist/InformationTooltip-4su8bn1e.mjs +42 -0
  76. package/dist/InformationTooltip-4su8bn1e.mjs.map +1 -0
  77. package/dist/InvestmentUtil-BItV7uEs.mjs +135 -0
  78. package/dist/InvestmentUtil-BItV7uEs.mjs.map +1 -0
  79. package/dist/LineChart-CUfiH86G.mjs +613 -0
  80. package/dist/LineChart-CUfiH86G.mjs.map +1 -0
  81. package/dist/ListItemAction-BqUCLj_w.mjs +70 -0
  82. package/dist/ListItemAction-BqUCLj_w.mjs.map +1 -0
  83. package/dist/ListItemRow-kH1rn8Xu.mjs +68 -0
  84. package/dist/ListItemRow-kH1rn8Xu.mjs.map +1 -0
  85. package/dist/ListItemWrapper-DRse79Iu.mjs +44 -0
  86. package/dist/ListItemWrapper-DRse79Iu.mjs.map +1 -0
  87. package/dist/Loader-CxeBwuPG.mjs +22 -0
  88. package/dist/Loader-CxeBwuPG.mjs.map +1 -0
  89. package/dist/Localization-DnoVyBNK.mjs +39 -0
  90. package/dist/Localization-DnoVyBNK.mjs.map +1 -0
  91. package/dist/ManageIncome-Dcsnnz86.mjs +906 -0
  92. package/dist/ManageIncome-Dcsnnz86.mjs.map +1 -0
  93. package/dist/MicroWidgetContainer-B2NnKBgW.mjs +46 -0
  94. package/dist/MicroWidgetContainer-B2NnKBgW.mjs.map +1 -0
  95. package/dist/MiniWidgetContainer-Bmv_WeUd.mjs +67 -0
  96. package/dist/MiniWidgetContainer-Bmv_WeUd.mjs.map +1 -0
  97. package/dist/NetWorthUtils-DfSH3z70.mjs +96 -0
  98. package/dist/NetWorthUtils-DfSH3z70.mjs.map +1 -0
  99. package/dist/Notification-DTNYSd8P.mjs +8 -0
  100. package/dist/Notification-DTNYSd8P.mjs.map +1 -0
  101. package/dist/NotificationSettings-CW7okUrk.mjs +678 -0
  102. package/dist/NotificationSettings-CW7okUrk.mjs.map +1 -0
  103. package/dist/NotificationUtils-BRGFTePr.mjs +24 -0
  104. package/dist/NotificationUtils-BRGFTePr.mjs.map +1 -0
  105. package/dist/NumberFormatting--XMeeBfr.mjs +50 -0
  106. package/dist/NumberFormatting--XMeeBfr.mjs.map +1 -0
  107. package/dist/OriginalBalanceAction-YrvxBYAl.mjs +115 -0
  108. package/dist/OriginalBalanceAction-YrvxBYAl.mjs.map +1 -0
  109. package/dist/RecurringSettings-D8hBbXV_.mjs +89 -0
  110. package/dist/RecurringSettings-D8hBbXV_.mjs.map +1 -0
  111. package/dist/RecurringTransactionsUtil-CHWmqvW5.mjs +299 -0
  112. package/dist/RecurringTransactionsUtil-CHWmqvW5.mjs.map +1 -0
  113. package/dist/ResponsiveButton-CC9F_Ezk.mjs +46 -0
  114. package/dist/ResponsiveButton-CC9F_Ezk.mjs.map +1 -0
  115. package/dist/SearchBox-Cpgu_gdO.mjs +51 -0
  116. package/dist/SearchBox-Cpgu_gdO.mjs.map +1 -0
  117. package/dist/Select-CSpkK5cR.mjs +62 -0
  118. package/dist/Select-CSpkK5cR.mjs.map +1 -0
  119. package/dist/SelectionBox-B4xELRgp.mjs +49 -0
  120. package/dist/SelectionBox-B4xELRgp.mjs.map +1 -0
  121. package/dist/SingleSegmentDonut-7Uy6VEld.mjs +70 -0
  122. package/dist/SingleSegmentDonut-7Uy6VEld.mjs.map +1 -0
  123. package/dist/Sizes-DISGrlUg.mjs +7 -0
  124. package/dist/Sizes-DISGrlUg.mjs.map +1 -0
  125. package/dist/SkeletonLoader-BaNboJjD.mjs +39 -0
  126. package/dist/SkeletonLoader-BaNboJjD.mjs.map +1 -0
  127. package/dist/SpendingData-Fii_xATx.mjs +54 -0
  128. package/dist/SpendingData-Fii_xATx.mjs.map +1 -0
  129. package/dist/SpendingLegend-CxvNOg3c.mjs +204 -0
  130. package/dist/SpendingLegend-CxvNOg3c.mjs.map +1 -0
  131. package/dist/StatusBar-CPfSXe80.mjs +31 -0
  132. package/dist/StatusBar-CPfSXe80.mjs.map +1 -0
  133. package/dist/TabContentContainer-B0eYJP5p.mjs +49 -0
  134. package/dist/TabContentContainer-B0eYJP5p.mjs.map +1 -0
  135. package/dist/ToggleListItem-Dl1lXNwj.mjs +92 -0
  136. package/dist/ToggleListItem-Dl1lXNwj.mjs.map +1 -0
  137. package/dist/TransactionDetails-roZ5xLq8.mjs +1708 -0
  138. package/dist/TransactionDetails-roZ5xLq8.mjs.map +1 -0
  139. package/dist/TransactionUtils-BphBJBbU.mjs +235 -0
  140. package/dist/TransactionUtils-BphBJBbU.mjs.map +1 -0
  141. package/dist/TrendsUtil-D9z3kIj_.mjs +70 -0
  142. package/dist/TrendsUtil-D9z3kIj_.mjs.map +1 -0
  143. package/dist/UserStore-C1fdL3Iu.mjs +3054 -0
  144. package/dist/UserStore-C1fdL3Iu.mjs.map +1 -0
  145. package/dist/ViewMoreMicroCard-fnwE0hqd.mjs +1280 -0
  146. package/dist/ViewMoreMicroCard-fnwE0hqd.mjs.map +1 -0
  147. package/dist/WidgetContainer-DJnp6t6c.mjs +483 -0
  148. package/dist/WidgetContainer-DJnp6t6c.mjs.map +1 -0
  149. package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsDrawer.d.ts +6 -0
  150. package/dist/accounts/index.d.ts +1 -0
  151. package/dist/accounts/index.es.js +784 -12
  152. package/dist/accounts/index.es.js.map +1 -0
  153. package/dist/analytics/index.es.js +140 -155
  154. package/dist/analytics/index.es.js.map +1 -0
  155. package/dist/budgets/index.es.js +1267 -1317
  156. package/dist/budgets/index.es.js.map +1 -0
  157. package/dist/cashflow/index.es.js +943 -1047
  158. package/dist/cashflow/index.es.js.map +1 -0
  159. package/dist/categories/index.es.js +5 -4
  160. package/dist/categories/index.es.js.map +1 -0
  161. package/dist/common/components/DataRow.d.ts +1 -0
  162. package/dist/common/components/ListItemWrapper.d.ts +2 -1
  163. package/dist/common/constants/Analytics.d.ts +3 -0
  164. package/dist/common/index.es.js +310 -101
  165. package/dist/common/index.es.js.map +1 -0
  166. package/dist/core/index.es.js +105 -80
  167. package/dist/core/index.es.js.map +1 -0
  168. package/dist/core/stores/RecurringTransactionsStore.d.ts +29 -1
  169. package/dist/core/stores/TransactionStore.d.ts +1 -0
  170. package/dist/core/types/localization/RecurringCopy.d.ts +14 -1
  171. package/dist/core/types/localization/SpendingCopy.d.ts +1 -0
  172. package/dist/core/utils/DateUtil.d.ts +2 -0
  173. package/dist/core/utils/RecurringTransactionsUtil.d.ts +2 -1
  174. package/dist/dashboard/index.es.js +142 -185
  175. package/dist/dashboard/index.es.js.map +1 -0
  176. package/dist/debts/index.es.js +1273 -1384
  177. package/dist/debts/index.es.js.map +1 -0
  178. package/dist/finstrong/index.es.js +3473 -3367
  179. package/dist/finstrong/index.es.js.map +1 -0
  180. package/dist/goals/index.es.js +984 -1103
  181. package/dist/goals/index.es.js.map +1 -0
  182. package/dist/help/index.es.js +26 -3
  183. package/dist/help/index.es.js.map +1 -0
  184. package/dist/hooks-97sNJ_lf.mjs +78 -0
  185. package/dist/hooks-97sNJ_lf.mjs.map +1 -0
  186. package/dist/insights/components/insights/WeeklyNoSpendDays/BubbleWeek.d.ts +4 -1
  187. package/dist/insights/components/insights/WeeklyNoSpendDays/WeeklyNoSpendDays.d.ts +4 -2
  188. package/dist/insights/index.es.js +4871 -93
  189. package/dist/insights/index.es.js.map +1 -0
  190. package/dist/investments/index.es.js +1523 -1533
  191. package/dist/investments/index.es.js.map +1 -0
  192. package/dist/merchants/index.es.js +65 -75
  193. package/dist/merchants/index.es.js.map +1 -0
  194. package/dist/microinsights/index.es.js +826 -15
  195. package/dist/microinsights/index.es.js.map +1 -0
  196. package/dist/networth/index.es.js +504 -550
  197. package/dist/networth/index.es.js.map +1 -0
  198. package/dist/notifications/index.es.js +162 -169
  199. package/dist/notifications/index.es.js.map +1 -0
  200. package/dist/recurringtransactions/components/RecurringTransactionDetails.d.ts +3 -2
  201. package/dist/recurringtransactions/components/RecurringTransactionDetailsDrawer.d.ts +3 -0
  202. package/dist/recurringtransactions/components/RecurringTransactionList.d.ts +11 -0
  203. package/dist/recurringtransactions/components/UpcomingRecurrenceCard.d.ts +8 -0
  204. package/dist/recurringtransactions/components/actions/LinkTransactionDrawer.d.ts +10 -0
  205. package/dist/recurringtransactions/components/actions/MarkAsPaidDialog.d.ts +7 -0
  206. package/dist/recurringtransactions/components/actions/MarkAsUnpaidDialog.d.ts +7 -0
  207. package/dist/recurringtransactions/index.es.js +1012 -10
  208. package/dist/recurringtransactions/index.es.js.map +1 -0
  209. package/dist/settings/index.es.js +892 -13
  210. package/dist/settings/index.es.js.map +1 -0
  211. package/dist/spending/index.es.js +457 -400
  212. package/dist/spending/index.es.js.map +1 -0
  213. package/dist/transactions/components/shared/transactionlist/TransactionRow.d.ts +1 -0
  214. package/dist/transactions/index.es.js +604 -10
  215. package/dist/transactions/index.es.js.map +1 -0
  216. package/dist/trends/index.es.js +1408 -1268
  217. package/dist/trends/index.es.js.map +1 -0
  218. package/dist/useAccountDisplayName-BsiXA0qf.mjs +24 -0
  219. package/dist/useAccountDisplayName-BsiXA0qf.mjs.map +1 -0
  220. package/dist/useAriaLive-MkYebyUR.mjs +36 -0
  221. package/dist/useAriaLive-MkYebyUR.mjs.map +1 -0
  222. package/dist/useDimensions-CeDR9V8N.mjs +37 -0
  223. package/dist/useDimensions-CeDR9V8N.mjs.map +1 -0
  224. package/dist/useInsightsEnabled-D5Sdm0TJ.mjs +12 -0
  225. package/dist/useInsightsEnabled-D5Sdm0TJ.mjs.map +1 -0
  226. package/dist/useScreenSize-mWpmnh5w.mjs +37 -0
  227. package/dist/useScreenSize-mWpmnh5w.mjs.map +1 -0
  228. package/dist/useWidgetLoadTimer-B0tB-yzL.mjs +20 -0
  229. package/dist/useWidgetLoadTimer-B0tB-yzL.mjs.map +1 -0
  230. package/package.json +30 -30
  231. package/dist/Analytics-BKzTPees.mjs +0 -61
  232. package/dist/GlobalCopyApi-BeXzaDH9.mjs +0 -487
  233. package/dist/HeaderCell-EhCUSjvj.mjs +0 -10
  234. package/dist/Loader-BlVzRtUd.mjs +0 -73
  235. package/dist/MiniWidgetContainer-COwnjfy7.mjs +0 -110
  236. package/dist/OriginalBalanceAction-sbiqaxok.mjs +0 -110
  237. package/dist/SpendingLegend-D15ixlQ1.mjs +0 -222
  238. package/dist/accounts-DkyAiLpg.mjs +0 -15632
  239. package/dist/core-BexP5oiV.mjs +0 -4047
  240. package/dist/help-CctDYrAH.mjs +0 -2308
  241. package/dist/insights/components/insights/P2pCategorization/_tests_/P2pCategorizationMultipleTransaction.test.d.ts +0 -0
  242. package/dist/insights/components/insights/P2pCategorization/_tests_/P2pCategorizationSingleTransaction.test.d.ts +0 -0
  243. package/dist/microinsights-CRf3ChsJ.mjs +0 -1814
  244. package/dist/recurringtransactions-gbJ_NA8u.mjs +0 -1564
  245. package/dist/settings-ZMHe439l.mjs +0 -1526
@@ -1,1814 +0,0 @@
1
- import { f as Be, n as pe, s as be, t as he } from "./GlobalCopyApi-BeXzaDH9.mjs";
2
- import { i as Fe, n as Pe, r as Ze, t as Ge } from "./Analytics-BKzTPees.mjs";
3
- import { t as Ue } from "./Loader-BlVzRtUd.mjs";
4
- import f, { useEffect as le, useState as oe } from "react";
5
- import { observer as P } from "mobx-react-lite";
6
- import F from "@mui/material/Stack";
7
- import { CategoryIcon as ze, H3 as Ke, InstitutionLogo as $e, MerchantLogo as je, P as ue, Text as Ee } from "@mxenabled/mxui";
8
- import Ye from "@mui/material/Button";
9
- import { ChevronLeft as Xe, ChevronRight as ye, Close as Qe, Icon as qe } from "@mxenabled/mx-icons";
10
- import { Fragment as Ae, jsx as e, jsxs as R } from "react/jsx-runtime";
11
- import { alpha as n, useTheme as H } from "@mui/material/styles";
12
- import ae from "@mui/material/Box";
13
- import _e from "@mui/material/IconButton";
14
- import { makeAutoObservable as ne, runInAction as Me } from "mobx";
15
- import { Box as Je, Button as Ce, Card as et, CardActionArea as tt, IconButton as it, Stack as U } from "@mui/material";
16
- import rt from "@mui/material/CircularProgress";
17
- import ot from "@mui/material/Avatar";
18
- import { useInView as Se } from "react-intersection-observer";
19
- var lt = class {
20
- copyApi = new he("/", "");
21
- copyObject = {};
22
- namespace = "experiences";
23
- translationKey = "micro_insights";
24
- constructor() {
25
- ne(this);
26
- }
27
- initialize = async (i, t) => {
28
- this.copyApi = new he(i, t), await this.loadCopy();
29
- };
30
- loadCopy = async () => {
31
- const i = await this.copyApi.getGlobalCopy(this.namespace, this.translationKey);
32
- Me(() => {
33
- this.copyObject = i[this.translationKey];
34
- });
35
- };
36
- get cardsCopy() {
37
- return this.copyObject.cards;
38
- }
39
- get carouselCopy() {
40
- return this.copyObject.carousel;
41
- }
42
- get zeroStateCopy() {
43
- return this.copyObject.zero_state;
44
- }
45
- }, de = {
46
- BillAmountNotStandard: "BillAmountNotStandard",
47
- CanadianUpcomingDeadlineAlert: "CanadianUpcomingDeadlineAlert",
48
- DuplicatePaymentV2: "DuplicatePaymentV2",
49
- IntroducePulse: "IntroducePulse",
50
- LargeTransaction: "LargeTransaction",
51
- MonthlySpendToIncomeComparisonV2: "MonthlySpendToIncomeComparisonV2",
52
- QuarterlySummary: "QuarterlySummary",
53
- SpendingPlanCategorySpending: "SpendingPlanCategorySpending",
54
- SubscriptionPriceIncrease: "SubscriptionPriceIncrease",
55
- UncategorizedTransactionsV2: "UncategorizedTransactionsV2",
56
- UpcomingBill: "UpcomingBill",
57
- UnifiedDeposit: "UnifiedDeposit",
58
- WeeklySpendingPlanSummary: "WeeklySpendingPlanSummary",
59
- WeeklyNewMerchantsV2: "WeeklyNewMerchantsV2",
60
- MonthlySpendComparison: "MonthlySpendComparison",
61
- MonthlySpendToIncomeComparison: "MonthlySpendToIncomeComparison"
62
- }, S = window?.app?.clientConfig?.microwidget_instance_id || "", me = { INSIGHTS_MICRO_WIDGET: "/micro-insights-carousel" }, Oe = (i) => `on${i}Click`, Te = (i) => `on${i}View`, we = (i) => `on${i}ViewFirstTime`, se = (i) => i.replace(/([a-z])([A-Z])/g, "$1 $2"), at = () => Object.values(de).reduce((i, t) => ({
63
- ...i,
64
- [Oe(t)]: {
65
- action: W.MICRO_BEAT_CLICKED,
66
- category: D.BEAT_INTERACTION,
67
- label: se(t),
68
- value: S
69
- }
70
- }), {}), nt = () => Object.values(de).reduce((i, t) => ({
71
- ...i,
72
- [Te(t)]: {
73
- action: W.MICRO_BEAT_DISPLAYED,
74
- category: D.BEAT_INTERACTION,
75
- label: se(t),
76
- value: S
77
- }
78
- }), {}), dt = () => Object.values(de).reduce((i, t) => ({
79
- ...i,
80
- [we(t)]: {
81
- action: W.MICRO_BEAT_DISPLAYED_FIRST_TIME,
82
- category: D.BEAT_INTERACTION,
83
- label: se(t),
84
- value: S
85
- }
86
- }), {}), x = {
87
- CARD: "Card",
88
- CAROUSEL_CONTROL: "Carousel Control",
89
- MICRO_WIDGET: "Micro Widget",
90
- VIEW_MORE: "View More"
91
- }, D = {
92
- MICRO_WIDGET_INTERACTION: "Micro Widget Interaction",
93
- BEAT_INTERACTION: "Beat Interaction"
94
- }, O = {
95
- ON_CAROUSEL_BACK_CLICK: "onCarouselBackClick",
96
- ON_CAROUSEL_BACK_SWIPE: "onCarouselBackSwipe",
97
- ON_CAROUSEL_FORWARD_CLICK: "onCarouselForwardClick",
98
- ON_CAROUSEL_FORWARD_SWIPE: "onCarouselForwardSwipe",
99
- ON_NO_RELEVANT_INSIGHTS_CLICKED: "onNoRelevantInsightsClicked",
100
- ON_VIEW_MORE_CLICKED: "onViewMoreClicked"
101
- }, xe = { ON_VIEW_MORE_VIEWED: "onViewMoreCardView" }, W = {
102
- CONTROL_BACKWARD: "Control Backward",
103
- CONTROL_FORWARD: "Control Forward",
104
- MICRO_BEAT_CLICKED: "Micro Beat Clicked",
105
- MICRO_BEAT_DISPLAYED: "Micro Beat Displayed",
106
- MICRO_BEAT_DISPLAYED_FIRST_TIME: "Micro Beat Displayed For First Time",
107
- SWIPE_BACKWARD: "Swipe Backward",
108
- SWIPE_FORWARD: "Swipe Forward"
109
- }, N = {
110
- MICRO_WIDGET_CAROUSEL: "Micro Widget Carousel",
111
- MICRO_WIDGET_CAROUSEL_ZERO_STATE: "Micro Widget Carousel Zero State",
112
- MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS: "Micro Widget Carousel No Relevant Insights"
113
- }, fe = {
114
- [N.MICRO_WIDGET_CAROUSEL]: {
115
- label: x.MICRO_WIDGET,
116
- name: N.MICRO_WIDGET_CAROUSEL,
117
- path: me.INSIGHTS_MICRO_WIDGET,
118
- value: S
119
- },
120
- [N.MICRO_WIDGET_CAROUSEL_ZERO_STATE]: {
121
- label: x.MICRO_WIDGET,
122
- name: N.MICRO_WIDGET_CAROUSEL_ZERO_STATE,
123
- path: me.INSIGHTS_MICRO_WIDGET,
124
- value: S
125
- },
126
- [N.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS]: {
127
- label: x.MICRO_WIDGET,
128
- name: N.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS,
129
- path: "/micro-widget",
130
- value: S
131
- }
132
- }, ge = {
133
- [O.ON_CAROUSEL_BACK_CLICK]: {
134
- action: W.CONTROL_BACKWARD,
135
- category: D.MICRO_WIDGET_INTERACTION,
136
- label: x.CAROUSEL_CONTROL,
137
- value: S
138
- },
139
- [O.ON_CAROUSEL_FORWARD_CLICK]: {
140
- action: W.CONTROL_FORWARD,
141
- category: D.MICRO_WIDGET_INTERACTION,
142
- label: x.CAROUSEL_CONTROL,
143
- value: S
144
- },
145
- [O.ON_CAROUSEL_BACK_SWIPE]: {
146
- action: W.SWIPE_BACKWARD,
147
- category: D.MICRO_WIDGET_INTERACTION,
148
- label: x.CAROUSEL_CONTROL,
149
- value: S
150
- },
151
- [O.ON_CAROUSEL_FORWARD_SWIPE]: {
152
- action: W.SWIPE_FORWARD,
153
- category: D.MICRO_WIDGET_INTERACTION,
154
- label: x.CAROUSEL_CONTROL,
155
- value: S
156
- },
157
- [O.ON_VIEW_MORE_CLICKED]: {
158
- action: W.MICRO_BEAT_CLICKED,
159
- category: D.BEAT_INTERACTION,
160
- label: x.VIEW_MORE,
161
- value: S
162
- },
163
- [xe.ON_VIEW_MORE_VIEWED]: {
164
- action: W.MICRO_BEAT_DISPLAYED,
165
- category: D.BEAT_INTERACTION,
166
- label: x.VIEW_MORE,
167
- value: S
168
- },
169
- ...at(),
170
- ...nt(),
171
- ...dt()
172
- }, ve = async (i, t) => !t || !ge[i] ? null : t.sendAnalyticEvent(ge[i]).then((r) => r).catch((r) => {
173
- throw r;
174
- }), Re = async (i, t) => !t || !fe[i] ? null : t.sendAnalyticsPageview(fe[i]).then((r) => r).catch((r) => {
175
- throw r;
176
- }), st = class {
177
- onAnalyticEvent = ve;
178
- onAnalyticPageView = Re;
179
- beatApi = new pe("/", "");
180
- constructor() {
181
- ne(this);
182
- }
183
- initialize = async (i, t, r) => {
184
- this.onAnalyticEvent = (o, a) => {
185
- ve(o, a).then((l) => l).catch((l) => {
186
- throw l.status === 401 && r(), l;
187
- });
188
- }, this.onAnalyticPageView = (o, a) => {
189
- Re(o, a).then((l) => l).catch((l) => {
190
- throw l.status === 401 && r(), l;
191
- });
192
- }, this.beatApi = new pe(i, t);
193
- };
194
- updateBeat = async (i) => {
195
- this.beatApi.updateBeat(i);
196
- };
197
- updateOffer = async (i) => {
198
- this.beatApi.updateOffer(i);
199
- };
200
- }, ct = class {
201
- copyStore;
202
- endpoint = "/";
203
- insightsMicroWidgetStore;
204
- session = null;
205
- token = "";
206
- isInitialized = !1;
207
- constructor() {
208
- this.copyStore = new lt(), this.insightsMicroWidgetStore = new st(), ne(this);
209
- }
210
- initialize = async (i, t, r) => {
211
- await this.copyStore.initialize(i, t), await this.insightsMicroWidgetStore.initialize(i, t, r);
212
- const o = await Ge(i, t, "1.0.0", "Micro Insights Carousel");
213
- Me(() => {
214
- this.session = o, this.isInitialized = !0;
215
- });
216
- };
217
- }, z = f.createContext(null), pt = ({ onEvent: i, onPageview: t, store: r, children: o }) => /* @__PURE__ */ e(z.Provider, {
218
- value: {
219
- onEvent: i,
220
- onPageview: t,
221
- store: r,
222
- children: o
223
- },
224
- children: o
225
- }), ht = ({ beat: i }) => {
226
- const { primary_category_guid: t, category_guids: r } = i;
227
- return /* @__PURE__ */ e(ze, {
228
- categoryGuid: t || r?.[0] || Be.UNCATEGORIZED,
229
- size: 32,
230
- sx: { minWidth: 32 }
231
- });
232
- }, d = ({ avatarSx: i, bgColor: t, name: r, iconColor: o = "primary", fill: a = !0, sx: l }) => /* @__PURE__ */ e(ot, {
233
- sx: {
234
- bgcolor: t,
235
- width: 32,
236
- height: 32,
237
- ...i
238
- },
239
- variant: "rounded",
240
- children: /* @__PURE__ */ e(qe, {
241
- color: o,
242
- fill: a,
243
- name: r,
244
- size: 20,
245
- sx: l
246
- })
247
- }), ut = ({ beat: i }) => {
248
- const { category_guids: t, merchant_guids: r, primary_category_guid: o, primary_merchant_guid: a } = i;
249
- return /* @__PURE__ */ e(je, {
250
- categoryGuid: o || t && t[0] || "",
251
- merchantGuid: a || r[0],
252
- size: 32,
253
- sx: {
254
- display: "flex",
255
- mt: 2,
256
- minWidth: 32
257
- }
258
- });
259
- }, ei = ({ color: i = "currentColor", height: t, size: r = 16, styles: o, viewBox: a = "0 0 16 16", width: l }) => /* @__PURE__ */ e("svg", {
260
- "aria-hidden": !0,
261
- className: "kyper-icon",
262
- focusable: !1,
263
- height: t || r,
264
- style: o,
265
- viewBox: a,
266
- width: l || r,
267
- xmlns: "http://www.w3.org/2000/svg",
268
- children: /* @__PURE__ */ e("path", {
269
- d: "M16 1.5C16 0.671573 15.3284 0 14.5 0H1.5C0.671573 0 0 0.671573 0 1.5V14.5C0 15.3284 0.671573 16 1.5 16H14.5C15.3284 16 16 15.3284 16 14.5V1.5ZM12.8 5.1C13.0209 5.26568 13.0657 5.57909 12.9 5.8L9.90003 9.8C9.71746 10.0434 9.36163 10.0687 9.14648 9.85355L6.55413 7.2612L3.90003 10.8C3.73434 11.0209 3.42094 11.0657 3.20003 10.9C2.97912 10.7343 2.93434 10.4209 3.10003 10.2L6.10003 6.2C6.28259 5.95658 6.63843 5.93129 6.85358 6.14645L9.44593 8.7388L12.1 5.2C12.2657 4.97908 12.5791 4.93431 12.8 5.1Z",
270
- fill: i
271
- })
272
- }), Et = (i) => i ? i.data ? i.data.map((t) => {
273
- const r = {};
274
- return i.names?.map((o, a) => {
275
- r[o] = t[a];
276
- }), r;
277
- }) : [] : [], J = "primary", De = "success", We = "error", Le = (i) => {
278
- const t = Et(i), r = Math.floor(t.length / 2);
279
- if (r === 0 || r === t.length) return J;
280
- const o = t[0]?.amount, a = t[r]?.amount;
281
- return o == null || a == null ? J : o > a ? We : o < a ? De : J;
282
- }, _t = (i, t) => i < t ? De : i > t ? We : J, Ct = ({ beat: i }) => {
283
- const t = H(), r = Le(i.data_series), o = t.palette[r].main;
284
- return /* @__PURE__ */ e(d, {
285
- bgColor: n(o, 0.15),
286
- iconColor: r,
287
- name: "bar_chart"
288
- });
289
- }, mt = ({ beat: i }) => {
290
- const t = H(), r = i.payload?.average_spend || 0;
291
- let o = 0;
292
- if (i.data_series?.data && i.data_series.data.length > 0) {
293
- const l = (i.data_series.names || []).indexOf("amount");
294
- l !== -1 && (o = i.data_series.data[0][l] || 0);
295
- }
296
- const a = _t(o, r);
297
- return /* @__PURE__ */ e(d, {
298
- bgColor: n(t.palette[a].main, 0.15),
299
- iconColor: a,
300
- name: "timeline"
301
- });
302
- }, ft = ({ beat: i }) => {
303
- const t = H(), r = Le(i.data_series), o = t.palette[r].main;
304
- return /* @__PURE__ */ e(d, {
305
- bgColor: n(o, 0.15),
306
- fill: !1,
307
- iconColor: r,
308
- name: "area_chart"
309
- });
310
- }, ti = () => /* @__PURE__ */ R("svg", {
311
- fill: "none",
312
- height: "36",
313
- viewBox: "0 0 40 36",
314
- width: "40",
315
- xmlns: "http://www.w3.org/2000/svg",
316
- children: [
317
- /* @__PURE__ */ e("path", {
318
- clipRule: "evenodd",
319
- d: "M24.9618 32.6003H9.92084C9.60559 32.6003 9.34766 32.3424 9.34766 32.0271V18.3125C9.34766 17.9972 9.60559 17.7393 9.92084 17.7393H24.9618C25.2771 17.7393 25.535 17.9972 25.535 18.3125V32.0271C25.535 32.3424 25.2771 32.6003 24.9618 32.6003Z",
320
- fill: "#CDD3DD",
321
- fillRule: "evenodd"
322
- }),
323
- /* @__PURE__ */ e("path", {
324
- clipRule: "evenodd",
325
- d: "M25.535 18.3124V19.5952H9.34766V18.3124C9.34766 17.9974 9.6055 17.7393 9.92084 17.7393H24.9618C25.2771 17.7393 25.535 17.9974 25.535 18.3124Z",
326
- fill: "#E8F6FF",
327
- fillRule: "evenodd"
328
- }),
329
- /* @__PURE__ */ e("path", {
330
- clipRule: "evenodd",
331
- d: "M10.8689 18.7157C10.8689 18.96 10.6709 19.158 10.4266 19.158C10.1824 19.158 9.98438 18.96 9.98438 18.7157C9.98438 18.4714 10.1824 18.2734 10.4266 18.2734C10.6709 18.2734 10.8689 18.4714 10.8689 18.7157Z",
332
- fill: "#C3E4FF",
333
- fillRule: "evenodd"
334
- }),
335
- /* @__PURE__ */ e("path", {
336
- clipRule: "evenodd",
337
- d: "M12.2986 18.7157C12.2986 18.96 12.1006 19.158 11.8563 19.158C11.6121 19.158 11.4141 18.96 11.4141 18.7157C11.4141 18.4714 11.6121 18.2734 11.8563 18.2734C12.1006 18.2734 12.2986 18.4714 12.2986 18.7157Z",
338
- fill: "#C3E4FF",
339
- fillRule: "evenodd"
340
- }),
341
- /* @__PURE__ */ e("path", {
342
- clipRule: "evenodd",
343
- d: "M13.7263 18.7157C13.7263 18.96 13.5283 19.158 13.2841 19.158C13.0398 19.158 12.8418 18.96 12.8418 18.7157C12.8418 18.4714 13.0398 18.2734 13.2841 18.2734C13.5283 18.2734 13.7263 18.4714 13.7263 18.7157Z",
344
- fill: "#C3E4FF",
345
- fillRule: "evenodd"
346
- }),
347
- /* @__PURE__ */ e("path", {
348
- clipRule: "evenodd",
349
- d: "M26.7313 35.6692H11.6904C11.3751 35.6692 11.1172 35.4112 11.1172 35.096V21.3813C11.1172 21.0661 11.3751 20.8081 11.6904 20.8081H26.7313C27.0466 20.8081 27.3045 21.0661 27.3045 21.3813V35.096C27.3045 35.4112 27.0466 35.6692 26.7313 35.6692Z",
350
- fill: "#E4E8EE",
351
- fillRule: "evenodd"
352
- }),
353
- /* @__PURE__ */ e("path", {
354
- clipRule: "evenodd",
355
- d: "M27.3045 21.3813V22.6641H11.1172V21.3813C11.1172 21.0662 11.375 20.8081 11.6904 20.8081H26.7313C27.0467 20.8081 27.3045 21.0662 27.3045 21.3813Z",
356
- fill: "#E8F6FF",
357
- fillRule: "evenodd"
358
- }),
359
- /* @__PURE__ */ e("path", {
360
- clipRule: "evenodd",
361
- d: "M12.6404 21.7846C12.6404 22.0288 12.4424 22.2268 12.1981 22.2268C11.9539 22.2268 11.7559 22.0288 11.7559 21.7846C11.7559 21.5403 11.9539 21.3423 12.1981 21.3423C12.4424 21.3423 12.6404 21.5403 12.6404 21.7846Z",
362
- fill: "#C3E4FF",
363
- fillRule: "evenodd"
364
- }),
365
- /* @__PURE__ */ e("path", {
366
- clipRule: "evenodd",
367
- d: "M14.0701 21.7846C14.0701 22.0288 13.8721 22.2268 13.6278 22.2268C13.3836 22.2268 13.1855 22.0288 13.1855 21.7846C13.1855 21.5403 13.3836 21.3423 13.6278 21.3423C13.8721 21.3423 14.0701 21.5403 14.0701 21.7846Z",
368
- fill: "#C3E4FF",
369
- fillRule: "evenodd"
370
- }),
371
- /* @__PURE__ */ e("path", {
372
- clipRule: "evenodd",
373
- d: "M15.4959 21.7846C15.4959 22.0288 15.2979 22.2268 15.0536 22.2268C14.8094 22.2268 14.6113 22.0288 14.6113 21.7846C14.6113 21.5403 14.8094 21.3423 15.0536 21.3423C15.2979 21.3423 15.4959 21.5403 15.4959 21.7846Z",
374
- fill: "#C3E4FF",
375
- fillRule: "evenodd"
376
- }),
377
- /* @__PURE__ */ e("path", {
378
- clipRule: "evenodd",
379
- d: "M38.0145 25.175H22.9736C22.6584 25.175 22.4004 24.9171 22.4004 24.6018V10.8871C22.4004 10.5719 22.6584 10.314 22.9736 10.314H38.0145C38.3298 10.314 38.5878 10.5719 38.5878 10.8871V24.6018C38.5878 24.9171 38.3298 25.175 38.0145 25.175Z",
380
- fill: "#EEF1F6",
381
- fillRule: "evenodd"
382
- }),
383
- /* @__PURE__ */ e("mask", {
384
- height: "3",
385
- id: "mask0_1565_98011",
386
- maskUnits: "userSpaceOnUse",
387
- width: "17",
388
- x: "22",
389
- y: "10",
390
- children: /* @__PURE__ */ e("path", {
391
- clipRule: "evenodd",
392
- d: "M22.4004 10.3022H38.5878V12.1582H22.4004V10.3022Z",
393
- fill: "white",
394
- fillRule: "evenodd"
395
- })
396
- }),
397
- /* @__PURE__ */ e("g", {
398
- mask: "url(#mask0_1565_98011)",
399
- children: /* @__PURE__ */ e("path", {
400
- clipRule: "evenodd",
401
- d: "M38.5878 10.8754V12.1582H22.4004V10.8754C22.4004 10.5604 22.6582 10.3022 22.9736 10.3022H38.0146C38.3299 10.3022 38.5878 10.5604 38.5878 10.8754Z",
402
- fill: "#CDD3DD",
403
- fillRule: "evenodd"
404
- })
405
- }),
406
- /* @__PURE__ */ e("path", {
407
- clipRule: "evenodd",
408
- d: "M23.9099 11.2802C23.9099 11.5244 23.7119 11.7224 23.4677 11.7224C23.2234 11.7224 23.0254 11.5244 23.0254 11.2802C23.0254 11.0359 23.2234 10.8379 23.4677 10.8379C23.7119 10.8379 23.9099 11.0359 23.9099 11.2802Z",
409
- fill: "#C3E4FF",
410
- fillRule: "evenodd"
411
- }),
412
- /* @__PURE__ */ e("path", {
413
- clipRule: "evenodd",
414
- d: "M25.3377 11.2802C25.3377 11.5244 25.1397 11.7224 24.8954 11.7224C24.6511 11.7224 24.4531 11.5244 24.4531 11.2802C24.4531 11.0359 24.6511 10.8379 24.8954 10.8379C25.1397 10.8379 25.3377 11.0359 25.3377 11.2802Z",
415
- fill: "#C3E4FF",
416
- fillRule: "evenodd"
417
- }),
418
- /* @__PURE__ */ e("path", {
419
- clipRule: "evenodd",
420
- d: "M26.7654 11.2802C26.7654 11.5244 26.5674 11.7224 26.3231 11.7224C26.0789 11.7224 25.8809 11.5244 25.8809 11.2802C25.8809 11.0359 26.0789 10.8379 26.3231 10.8379C26.5674 10.8379 26.7654 11.0359 26.7654 11.2802Z",
421
- fill: "#C3E4FF",
422
- fillRule: "evenodd"
423
- }),
424
- /* @__PURE__ */ e("path", {
425
- clipRule: "evenodd",
426
- d: "M29.1719 27.6866H32.7022V27.0142H29.1719V27.6866Z",
427
- fill: "#C3E4FF",
428
- fillRule: "evenodd"
429
- }),
430
- /* @__PURE__ */ e("path", {
431
- clipRule: "evenodd",
432
- d: "M29.1719 28.6871H39.2264V28.3726H29.1719V28.6871Z",
433
- fill: "#EEF1F6",
434
- fillRule: "evenodd"
435
- }),
436
- /* @__PURE__ */ e("path", {
437
- clipRule: "evenodd",
438
- d: "M29.1719 30.5064H39.5626V30.1919H29.1719V30.5064Z",
439
- fill: "#EEF1F6",
440
- fillRule: "evenodd"
441
- }),
442
- /* @__PURE__ */ e("path", {
443
- clipRule: "evenodd",
444
- d: "M29.1719 31.4156H40.0029V31.1011H29.1719V31.4156Z",
445
- fill: "#EEF1F6",
446
- fillRule: "evenodd"
447
- }),
448
- /* @__PURE__ */ e("path", {
449
- clipRule: "evenodd",
450
- d: "M29.1719 32.3253H35.7521V32.0107H29.1719V32.3253Z",
451
- fill: "#EEF1F6",
452
- fillRule: "evenodd"
453
- }),
454
- /* @__PURE__ */ e("path", {
455
- clipRule: "evenodd",
456
- d: "M29.1719 29.5953H40.0029V29.2808H29.1719V29.5953Z",
457
- fill: "#EEF1F6",
458
- fillRule: "evenodd"
459
- }),
460
- /* @__PURE__ */ e("path", {
461
- clipRule: "evenodd",
462
- d: "M9.98438 11.9322H13.1338V11.2598H9.98438V11.9322Z",
463
- fill: "#C3E4FF",
464
- fillRule: "evenodd"
465
- }),
466
- /* @__PURE__ */ e("path", {
467
- clipRule: "evenodd",
468
- d: "M9.98438 12.9327H18.954V12.6182H9.98438V12.9327Z",
469
- fill: "#D6EEFF",
470
- fillRule: "evenodd"
471
- }),
472
- /* @__PURE__ */ e("path", {
473
- clipRule: "evenodd",
474
- d: "M9.98438 14.7506H19.254V14.436H9.98438V14.7506Z",
475
- fill: "#D6EEFF",
476
- fillRule: "evenodd"
477
- }),
478
- /* @__PURE__ */ e("path", {
479
- clipRule: "evenodd",
480
- d: "M9.98438 15.6602H16.8127V15.3457H9.98438V15.6602Z",
481
- fill: "#D6EEFF",
482
- fillRule: "evenodd"
483
- }),
484
- /* @__PURE__ */ e("path", {
485
- clipRule: "evenodd",
486
- d: "M9.98438 13.8409H19.6468V13.5264H9.98438V13.8409Z",
487
- fill: "#D6EEFF",
488
- fillRule: "evenodd"
489
- }),
490
- /* @__PURE__ */ R("g", {
491
- filter: "url(#filter0_d_1565_98011)",
492
- children: [
493
- /* @__PURE__ */ e("mask", {
494
- height: "22",
495
- id: "mask1_1565_98011",
496
- maskUnits: "userSpaceOnUse",
497
- width: "17",
498
- x: "16",
499
- y: "12",
500
- children: /* @__PURE__ */ e("path", {
501
- clipRule: "evenodd",
502
- d: "M16.5098 12.2725H32.8412V33.707H16.5098V12.2725Z",
503
- fill: "white",
504
- fillRule: "evenodd"
505
- })
506
- }),
507
- /* @__PURE__ */ e("g", {
508
- mask: "url(#mask1_1565_98011)",
509
- children: /* @__PURE__ */ e("path", {
510
- clipRule: "evenodd",
511
- d: "M32.3427 33.707H17.0083C16.7341 33.707 16.5098 33.4827 16.5098 33.2086V12.7709C16.5098 12.4968 16.7341 12.2725 17.0083 12.2725H32.3427C32.6169 12.2725 32.8412 12.4968 32.8412 12.7709V33.2086C32.8412 33.4827 32.6169 33.707 32.3427 33.707Z",
512
- fill: "white",
513
- fillRule: "evenodd"
514
- })
515
- }),
516
- /* @__PURE__ */ e("path", {
517
- clipRule: "evenodd",
518
- d: "M20.875 21.5786H31.134V21.1816H20.875V21.5786Z",
519
- fill: "#E4E8EE",
520
- fillRule: "evenodd"
521
- }),
522
- /* @__PURE__ */ e("path", {
523
- clipRule: "evenodd",
524
- d: "M20.875 22.4077H28.1023V22.0107H20.875V22.4077Z",
525
- fill: "#E4E8EE",
526
- fillRule: "evenodd"
527
- }),
528
- /* @__PURE__ */ e("path", {
529
- clipRule: "evenodd",
530
- d: "M20.875 31.8461H27.8799V31.3003H20.875V31.8461Z",
531
- fill: "#E4E8EE",
532
- fillRule: "evenodd"
533
- }),
534
- /* @__PURE__ */ e("path", {
535
- clipRule: "evenodd",
536
- d: "M18.7308 22.7869C18.1849 22.7869 17.7383 22.3404 17.7383 21.7946C17.7383 21.2488 18.1849 20.8022 18.7308 20.8022C19.2767 20.8022 19.7233 21.2488 19.7233 21.7946C19.7233 22.3404 19.2767 22.7869 18.7308 22.7869Z",
537
- fill: "#E4E8EE",
538
- fillRule: "evenodd",
539
- stroke: "#E4E8EE",
540
- strokeWidth: "0.176004"
541
- }),
542
- /* @__PURE__ */ e("path", {
543
- clipRule: "evenodd",
544
- d: "M18.7308 29.3841C18.1849 29.3841 17.7383 28.9375 17.7383 28.3917C17.7383 27.8459 18.1849 27.3994 18.7308 27.3994C19.2767 27.3994 19.7233 27.8459 19.7233 28.3917C19.7233 28.9375 19.2767 29.3841 18.7308 29.3841Z",
545
- fill: "#E4E8EE",
546
- fillRule: "evenodd",
547
- stroke: "#E4E8EE",
548
- strokeWidth: "0.176004"
549
- }),
550
- /* @__PURE__ */ e("path", {
551
- clipRule: "evenodd",
552
- d: "M18.7308 26.0862C18.1849 26.0862 17.7383 25.6397 17.7383 25.0939C17.7383 24.5481 18.1849 24.1016 18.7308 24.1016C19.2767 24.1016 19.7233 24.5481 19.7233 25.0939C19.7233 25.6397 19.2767 26.0862 18.7308 26.0862Z",
553
- fill: "#E4E8EE",
554
- fillRule: "evenodd",
555
- stroke: "#E4E8EE",
556
- strokeWidth: "0.176004"
557
- }),
558
- /* @__PURE__ */ e("path", {
559
- clipRule: "evenodd",
560
- d: "M20.875 24.8764H31.134V24.4795H20.875V24.8764Z",
561
- fill: "#E4E8EE",
562
- fillRule: "evenodd"
563
- }),
564
- /* @__PURE__ */ e("path", {
565
- clipRule: "evenodd",
566
- d: "M20.875 25.707H28.1023V25.3101H20.875V25.707Z",
567
- fill: "#E4E8EE",
568
- fillRule: "evenodd"
569
- }),
570
- /* @__PURE__ */ e("path", {
571
- clipRule: "evenodd",
572
- d: "M20.875 28.1758H31.134V27.7788H20.875V28.1758Z",
573
- fill: "#E4E8EE",
574
- fillRule: "evenodd"
575
- }),
576
- /* @__PURE__ */ e("path", {
577
- clipRule: "evenodd",
578
- d: "M20.875 29.0049H28.1023V28.6079H20.875V29.0049Z",
579
- fill: "#E4E8EE",
580
- fillRule: "evenodd"
581
- }),
582
- /* @__PURE__ */ e("path", {
583
- clipRule: "evenodd",
584
- d: "M17.7383 18.0811L18.4668 18.657L19.758 17.1641",
585
- fill: "#E4E8EE",
586
- fillRule: "evenodd"
587
- }),
588
- /* @__PURE__ */ e("path", {
589
- d: "M17.7383 18.0811L18.4668 18.657L19.758 17.1641",
590
- stroke: "#E4E8EE",
591
- strokeWidth: "0.264005"
592
- }),
593
- /* @__PURE__ */ e("path", {
594
- clipRule: "evenodd",
595
- d: "M17.7383 14.7823L18.4668 15.3582L19.758 13.8652",
596
- fill: "#E4E8EE",
597
- fillRule: "evenodd"
598
- }),
599
- /* @__PURE__ */ e("path", {
600
- d: "M17.7383 14.7823L18.4668 15.3582L19.758 13.8652",
601
- stroke: "#E4E8EE",
602
- strokeWidth: "0.264005"
603
- }),
604
- /* @__PURE__ */ e("path", {
605
- clipRule: "evenodd",
606
- d: "M20.875 14.3389H31.134V13.8369H20.875V14.3389Z",
607
- fill: "#E4E8EE",
608
- fillRule: "evenodd"
609
- }),
610
- /* @__PURE__ */ e("path", {
611
- clipRule: "evenodd",
612
- d: "M20.875 15.3878H28.1023V14.8857H20.875V15.3878Z",
613
- fill: "#E4E8EE",
614
- fillRule: "evenodd"
615
- }),
616
- /* @__PURE__ */ e("path", {
617
- clipRule: "evenodd",
618
- d: "M20.4648 14.0869H31.545H20.4648Z",
619
- fill: "#E4E8EE",
620
- fillRule: "evenodd"
621
- }),
622
- /* @__PURE__ */ e("path", {
623
- d: "M20.4648 14.0869H31.545",
624
- stroke: "#E4E8EE",
625
- strokeWidth: "0.0880018"
626
- }),
627
- /* @__PURE__ */ e("path", {
628
- clipRule: "evenodd",
629
- d: "M20.4648 15.1372H28.4939H20.4648Z",
630
- fill: "#E4E8EE",
631
- fillRule: "evenodd"
632
- }),
633
- /* @__PURE__ */ e("path", {
634
- d: "M20.4648 15.1372H28.4939",
635
- stroke: "#E4E8EE",
636
- strokeWidth: "0.0880018"
637
- }),
638
- /* @__PURE__ */ e("path", {
639
- clipRule: "evenodd",
640
- d: "M20.875 17.6368H31.134V17.1348H20.875V17.6368Z",
641
- fill: "#E4E8EE",
642
- fillRule: "evenodd"
643
- }),
644
- /* @__PURE__ */ e("path", {
645
- clipRule: "evenodd",
646
- d: "M20.875 18.6861H28.1023V18.1841H20.875V18.6861Z",
647
- fill: "#E4E8EE",
648
- fillRule: "evenodd"
649
- }),
650
- /* @__PURE__ */ e("path", {
651
- clipRule: "evenodd",
652
- d: "M20.4648 17.3858H31.545H20.4648Z",
653
- fill: "#E4E8EE",
654
- fillRule: "evenodd"
655
- }),
656
- /* @__PURE__ */ e("path", {
657
- d: "M20.4648 17.3858H31.545",
658
- stroke: "#E4E8EE",
659
- strokeWidth: "0.0880018"
660
- }),
661
- /* @__PURE__ */ e("path", {
662
- clipRule: "evenodd",
663
- d: "M20.4648 18.4356H28.4939H20.4648Z",
664
- fill: "#E4E8EE",
665
- fillRule: "evenodd"
666
- }),
667
- /* @__PURE__ */ e("path", {
668
- d: "M20.4648 18.4356H28.4939",
669
- stroke: "#E4E8EE",
670
- strokeWidth: "0.0880018"
671
- }),
672
- /* @__PURE__ */ e("path", {
673
- clipRule: "evenodd",
674
- d: "M18.2832 19.8984H31.0117H18.2832Z",
675
- fill: "#E4E8EE",
676
- fillRule: "evenodd"
677
- }),
678
- /* @__PURE__ */ e("path", {
679
- d: "M18.2832 19.8984H31.0117",
680
- stroke: "#E4E8EE",
681
- strokeWidth: "0.0880018"
682
- }),
683
- /* @__PURE__ */ e("path", {
684
- clipRule: "evenodd",
685
- d: "M18.7295 30.8101V32.3377V30.8101Z",
686
- fill: "#E4E8EE",
687
- fillRule: "evenodd"
688
- }),
689
- /* @__PURE__ */ e("path", {
690
- d: "M18.7295 30.8101V32.3377",
691
- stroke: "#E4E8EE",
692
- strokeWidth: "0.264005"
693
- }),
694
- /* @__PURE__ */ e("path", {
695
- clipRule: "evenodd",
696
- d: "M17.9668 31.5737H19.4947H17.9668Z",
697
- fill: "#E4E8EE",
698
- fillRule: "evenodd"
699
- }),
700
- /* @__PURE__ */ e("path", {
701
- d: "M17.9668 31.5737H19.4947",
702
- stroke: "#E4E8EE",
703
- strokeWidth: "0.264005"
704
- })
705
- ]
706
- }),
707
- /* @__PURE__ */ R("g", {
708
- filter: "url(#filter1_d_1565_98011)",
709
- children: [
710
- /* @__PURE__ */ e("circle", {
711
- cx: "15.0441",
712
- cy: "16.0441",
713
- fill: "#CDD3DD",
714
- r: "15.0441"
715
- }),
716
- /* @__PURE__ */ e("mask", {
717
- height: "30",
718
- id: "mask2_1565_98011",
719
- maskUnits: "userSpaceOnUse",
720
- width: "30",
721
- x: "0",
722
- y: "1",
723
- children: /* @__PURE__ */ e("circle", {
724
- cx: "15.0435",
725
- cy: "16.0445",
726
- fill: "#F8F9FB",
727
- r: "14.3951"
728
- })
729
- }),
730
- /* @__PURE__ */ R("g", {
731
- mask: "url(#mask2_1565_98011)",
732
- children: [
733
- /* @__PURE__ */ e("rect", {
734
- fill: "white",
735
- height: "31.1359",
736
- transform: "translate(0 0.162598)",
737
- width: "31.0101"
738
- }),
739
- /* @__PURE__ */ e("rect", {
740
- fill: "#A8B1BD",
741
- height: "3.0172",
742
- rx: "0.167622",
743
- width: "3.0172",
744
- x: "3.26953",
745
- y: "4.52002"
746
- }),
747
- /* @__PURE__ */ e("rect", {
748
- fill: "#A8B1BD",
749
- height: "3.0172",
750
- rx: "0.167622",
751
- width: "3.0172",
752
- x: "3.26953",
753
- y: "17.1758"
754
- }),
755
- /* @__PURE__ */ e("rect", {
756
- fill: "#A8B1BD",
757
- height: "3.0172",
758
- rx: "0.167622",
759
- width: "3.0172",
760
- x: "3.26953",
761
- y: "26.0186"
762
- }),
763
- /* @__PURE__ */ e("rect", {
764
- fill: "#A8B1BD",
765
- height: "3.0172",
766
- rx: "0.167622",
767
- width: "3.0172",
768
- x: "3.26953",
769
- y: "9.04541"
770
- }),
771
- /* @__PURE__ */ e("rect", {
772
- fill: "#CDD3DD",
773
- height: "1.17336",
774
- rx: "0.167622",
775
- width: "10.9793",
776
- x: "6.87305",
777
- y: "4.52002"
778
- }),
779
- /* @__PURE__ */ e("rect", {
780
- fill: "#CDD3DD",
781
- height: "1.17336",
782
- rx: "0.167622",
783
- width: "10.9793",
784
- x: "6.87305",
785
- y: "17.1758"
786
- }),
787
- /* @__PURE__ */ e("rect", {
788
- fill: "#CDD3DD",
789
- height: "1.17336",
790
- rx: "0.167622",
791
- width: "10.9793",
792
- x: "6.87305",
793
- y: "26.0186"
794
- }),
795
- /* @__PURE__ */ e("rect", {
796
- fill: "#CDD3DD",
797
- height: "1.17336",
798
- rx: "0.167622",
799
- width: "10.9793",
800
- x: "6.87305",
801
- y: "9.04541"
802
- }),
803
- /* @__PURE__ */ e("rect", {
804
- fill: "#EEF1F6",
805
- height: "0.880018",
806
- rx: "0.167622",
807
- width: "10.9793",
808
- x: "3.26953",
809
- y: "2.34131"
810
- }),
811
- /* @__PURE__ */ e("rect", {
812
- fill: "#EEF1F6",
813
- height: "0.880018",
814
- rx: "0.167622",
815
- width: "10.9793",
816
- x: "3.26953",
817
- y: "14.9971"
818
- }),
819
- /* @__PURE__ */ e("rect", {
820
- fill: "#EEF1F6",
821
- height: "0.880018",
822
- rx: "0.167622",
823
- width: "10.9793",
824
- x: "3.26953",
825
- y: "23.8389"
826
- }),
827
- /* @__PURE__ */ e("rect", {
828
- fill: "#EEF1F6",
829
- height: "1.17336",
830
- rx: "0.167622",
831
- width: "8.50684",
832
- x: "6.87305",
833
- y: "6.36377"
834
- }),
835
- /* @__PURE__ */ e("rect", {
836
- fill: "#EEF1F6",
837
- height: "1.17336",
838
- rx: "0.167622",
839
- width: "8.50684",
840
- x: "6.87305",
841
- y: "19.0195"
842
- }),
843
- /* @__PURE__ */ e("rect", {
844
- fill: "#EEF1F6",
845
- height: "1.17336",
846
- rx: "0.167622",
847
- width: "8.50684",
848
- x: "6.87305",
849
- y: "27.8613"
850
- }),
851
- /* @__PURE__ */ e("rect", {
852
- fill: "#EEF1F6",
853
- height: "1.17336",
854
- rx: "0.167622",
855
- width: "8.50684",
856
- x: "6.87305",
857
- y: "10.8892"
858
- }),
859
- /* @__PURE__ */ e("rect", {
860
- fill: "#A8B1BD",
861
- height: "1.17336",
862
- rx: "0.167622",
863
- width: "5.15439",
864
- x: "21.666",
865
- y: "5.44238"
866
- }),
867
- /* @__PURE__ */ e("rect", {
868
- fill: "#A8B1BD",
869
- height: "1.17336",
870
- rx: "0.167622",
871
- width: "5.15439",
872
- x: "21.666",
873
- y: "18.0972"
874
- }),
875
- /* @__PURE__ */ e("rect", {
876
- fill: "#A8B1BD",
877
- height: "1.17336",
878
- rx: "0.167622",
879
- width: "5.15439",
880
- x: "21.666",
881
- y: "26.9399"
882
- }),
883
- /* @__PURE__ */ e("rect", {
884
- fill: "#A8B1BD",
885
- height: "1.17336",
886
- rx: "0.167622",
887
- width: "5.15439",
888
- x: "21.666",
889
- y: "9.96826"
890
- }),
891
- /* @__PURE__ */ e("path", {
892
- d: "M2.64062 8.25H27.4487",
893
- stroke: "#E4E8EE",
894
- strokeWidth: "0.0838112"
895
- }),
896
- /* @__PURE__ */ e("path", {
897
- d: "M2.64062 20.9058H27.4487",
898
- stroke: "#E4E8EE",
899
- strokeWidth: "0.0838112"
900
- }),
901
- /* @__PURE__ */ e("path", {
902
- d: "M2.64062 29.7476H27.4487",
903
- stroke: "#E4E8EE",
904
- strokeWidth: "0.0838112"
905
- }),
906
- /* @__PURE__ */ e("path", {
907
- d: "M2.64062 12.7759H27.4487",
908
- stroke: "#E4E8EE",
909
- strokeWidth: "0.0838112"
910
- }),
911
- /* @__PURE__ */ e("path", {
912
- d: "M2.64062 3.72412H27.4487",
913
- stroke: "#E4E8EE",
914
- strokeWidth: "0.0838112"
915
- }),
916
- /* @__PURE__ */ e("path", {
917
- d: "M2.64062 16.3799H27.4487",
918
- stroke: "#E4E8EE",
919
- strokeWidth: "0.0838112"
920
- }),
921
- /* @__PURE__ */ e("path", {
922
- d: "M2.64062 25.2217H27.4487",
923
- stroke: "#E4E8EE",
924
- strokeWidth: "0.0838112"
925
- }),
926
- /* @__PURE__ */ e("path", {
927
- d: "M2.64062 8.25H27.4487",
928
- stroke: "#E4E8EE",
929
- strokeWidth: "0.0838112"
930
- }),
931
- /* @__PURE__ */ e("path", {
932
- d: "M2.64062 20.9058H27.4487",
933
- stroke: "#E4E8EE",
934
- strokeWidth: "0.0838112"
935
- }),
936
- /* @__PURE__ */ e("path", {
937
- d: "M2.64062 29.7476H27.4487",
938
- stroke: "#E4E8EE",
939
- strokeWidth: "0.0838112"
940
- })
941
- ]
942
- })
943
- ]
944
- }),
945
- /* @__PURE__ */ e("path", {
946
- d: "M24.1888 27.3166L24.4326 27.0728L25.6395 27.8404L32.2915 34.4924C32.4911 34.6919 32.4911 35.0154 32.2915 35.215C32.092 35.4145 31.7685 35.4145 31.569 35.215L24.9487 28.5947L24.1888 27.3166Z",
947
- fill: "#CDD3DD"
948
- }),
949
- /* @__PURE__ */ R("defs", { children: [/* @__PURE__ */ R("filter", {
950
- colorInterpolationFilters: "sRGB",
951
- filterUnits: "userSpaceOnUse",
952
- height: "22.1051",
953
- id: "filter0_d_1565_98011",
954
- width: "17.0025",
955
- x: "16.1745",
956
- y: "12.0629",
957
- children: [
958
- /* @__PURE__ */ e("feFlood", {
959
- floodOpacity: "0",
960
- result: "BackgroundImageFix"
961
- }),
962
- /* @__PURE__ */ e("feColorMatrix", {
963
- in: "SourceAlpha",
964
- result: "hardAlpha",
965
- type: "matrix",
966
- values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
967
- }),
968
- /* @__PURE__ */ e("feOffset", { dy: "0.125717" }),
969
- /* @__PURE__ */ e("feGaussianBlur", { stdDeviation: "0.167622" }),
970
- /* @__PURE__ */ e("feColorMatrix", {
971
- type: "matrix",
972
- values: "0 0 0 0 0.341176 0 0 0 0 0.4 0 0 0 0 0.458824 0 0 0 0.15 0"
973
- }),
974
- /* @__PURE__ */ e("feBlend", {
975
- in2: "BackgroundImageFix",
976
- mode: "normal",
977
- result: "effect1_dropShadow_1565_98011"
978
- }),
979
- /* @__PURE__ */ e("feBlend", {
980
- in: "SourceGraphic",
981
- in2: "effect1_dropShadow_1565_98011",
982
- mode: "normal",
983
- result: "shape"
984
- })
985
- ]
986
- }), /* @__PURE__ */ R("filter", {
987
- colorInterpolationFilters: "sRGB",
988
- filterUnits: "userSpaceOnUse",
989
- height: "31.7646",
990
- id: "filter1_d_1565_98011",
991
- width: "31.7641",
992
- x: "-0.838112",
993
- y: "0.580944",
994
- children: [
995
- /* @__PURE__ */ e("feFlood", {
996
- floodOpacity: "0",
997
- result: "BackgroundImageFix"
998
- }),
999
- /* @__PURE__ */ e("feColorMatrix", {
1000
- in: "SourceAlpha",
1001
- result: "hardAlpha",
1002
- type: "matrix",
1003
- values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
1004
- }),
1005
- /* @__PURE__ */ e("feOffset", { dy: "0.419056" }),
1006
- /* @__PURE__ */ e("feGaussianBlur", { stdDeviation: "0.419056" }),
1007
- /* @__PURE__ */ e("feColorMatrix", {
1008
- type: "matrix",
1009
- values: "0 0 0 0 0.341176 0 0 0 0 0.4 0 0 0 0 0.458824 0 0 0 0.16 0"
1010
- }),
1011
- /* @__PURE__ */ e("feBlend", {
1012
- in2: "BackgroundImageFix",
1013
- mode: "normal",
1014
- result: "effect1_dropShadow_1565_98011"
1015
- }),
1016
- /* @__PURE__ */ e("feBlend", {
1017
- in: "SourceGraphic",
1018
- in2: "effect1_dropShadow_1565_98011",
1019
- mode: "normal",
1020
- result: "shape"
1021
- })
1022
- ]
1023
- })] })
1024
- ]
1025
- }), gt = ({ beat: i }) => /* @__PURE__ */ e($e, {
1026
- alt: i.institutionName || "",
1027
- institutionGuid: i.institutionGuid || ""
1028
- }), vt = {
1029
- 0: (i, t) => /* @__PURE__ */ e(d, {
1030
- bgColor: n(t.palette.primary.main, 0.15),
1031
- name: "error"
1032
- }),
1033
- 1: (i) => /* @__PURE__ */ e(ht, { beat: i }),
1034
- 2: (i) => /* @__PURE__ */ e(ut, { beat: i }),
1035
- 3: (i) => /* @__PURE__ */ e(Ct, { beat: i }),
1036
- 4: (i, t) => /* @__PURE__ */ e(d, {
1037
- bgColor: n(t.palette.secondary.main, 0.15),
1038
- iconColor: "secondary",
1039
- name: "info"
1040
- }),
1041
- 5: (i, t) => /* @__PURE__ */ e(d, {
1042
- bgColor: n(t.palette.primary.main, 0.15),
1043
- name: "campaign"
1044
- }),
1045
- 6: (i, t) => /* @__PURE__ */ e(d, {
1046
- bgColor: n(t.palette.success.main, 0.15),
1047
- iconColor: "success",
1048
- name: "check_circle"
1049
- }),
1050
- 7: (i, t) => /* @__PURE__ */ e(d, {
1051
- bgColor: n(t.palette.primary.main, 0.15),
1052
- name: "today"
1053
- }),
1054
- 8: (i, t) => /* @__PURE__ */ e(d, {
1055
- bgColor: n(t.palette.primary.main, 0.15),
1056
- name: "calendar_clock"
1057
- }),
1058
- 9: (i, t) => /* @__PURE__ */ e(d, {
1059
- bgColor: n(t.palette.primary.main, 0.15),
1060
- name: "celebration"
1061
- }),
1062
- 10: (i, t) => /* @__PURE__ */ e(d, {
1063
- bgColor: n(t.palette.primary.main, 0.15),
1064
- name: "problem"
1065
- }),
1066
- 11: (i, t) => /* @__PURE__ */ e(d, {
1067
- avatarSx: { border: `1px solid ${t.palette.secondary.main}` },
1068
- bgColor: n(t.palette.secondary.main, 0.15),
1069
- fill: !1,
1070
- name: "category",
1071
- sx: { color: "text.primary" }
1072
- }),
1073
- 12: (i) => /* @__PURE__ */ e(ft, { beat: i }),
1074
- 13: () => /* @__PURE__ */ e(d, {
1075
- avatarSx: { border: "1px solid #EB00D0" },
1076
- bgColor: n("#EB00D0", 0.25),
1077
- fill: !1,
1078
- name: "money_bag",
1079
- sx: { color: "text.primary" }
1080
- }),
1081
- 14: (i, t) => /* @__PURE__ */ e(d, {
1082
- bgColor: n(t.palette.secondary.main, 0.15),
1083
- fill: !1,
1084
- iconColor: "secondary",
1085
- name: "person"
1086
- }),
1087
- 15: (i, t) => /* @__PURE__ */ e(d, {
1088
- bgColor: n(t.palette.primary.main, 0.15),
1089
- name: "payment_arrow_down"
1090
- }),
1091
- 16: (i, t) => /* @__PURE__ */ e(d, {
1092
- bgColor: n(t.palette.success.main, 0.15),
1093
- name: "beenhere",
1094
- sx: { color: "success.main" }
1095
- }),
1096
- 17: (i, t) => /* @__PURE__ */ e(d, {
1097
- bgColor: n(t.palette.primary.main, 0.15),
1098
- name: "savings"
1099
- }),
1100
- 18: (i, t) => /* @__PURE__ */ e(d, {
1101
- bgColor: i.payload.projected_overdraft_amount < 0 ? n(t.palette.warning.main, 0.15) : n(t.palette.error.main, 0.15),
1102
- iconColor: i?.payload?.projected_overdraft_amount < 0 ? "warning" : "error",
1103
- name: "error"
1104
- }),
1105
- 19: (i, t) => /* @__PURE__ */ e(d, {
1106
- bgColor: n(t.palette.primary.main, 0.15),
1107
- name: "finance_mode"
1108
- }),
1109
- 20: (i, t) => /* @__PURE__ */ e(d, {
1110
- bgColor: n(t.palette.primary.main, 0.15),
1111
- name: "tips_and_updates"
1112
- }),
1113
- 21: (i, t) => /* @__PURE__ */ e(d, {
1114
- bgColor: n(t.palette.primary.main, 0.15),
1115
- name: "currency_exchange"
1116
- }),
1117
- 22: (i, t) => /* @__PURE__ */ e(d, {
1118
- bgColor: n(t.palette.warning.main, 0.15),
1119
- name: "flag",
1120
- sx: { color: "warning.main" }
1121
- }),
1122
- 23: (i, t) => /* @__PURE__ */ e(d, {
1123
- bgColor: n(t.palette.primary.main, 0.15),
1124
- name: "thumb_up"
1125
- }),
1126
- 24: () => /* @__PURE__ */ e(d, {
1127
- bgColor: n("#EB00D0", 0.15),
1128
- name: "attach_money",
1129
- sx: { color: "#EB00D0" }
1130
- }),
1131
- 25: (i, t) => /* @__PURE__ */ e(d, {
1132
- bgColor: n(t.palette.primary.main, 0.15),
1133
- name: "note_stack"
1134
- }),
1135
- 26: (i, t) => /* @__PURE__ */ e(d, {
1136
- bgColor: n(t.palette.primary.main, 0.15),
1137
- fill: !1,
1138
- name: "price_change"
1139
- }),
1140
- 27: (i, t) => /* @__PURE__ */ e(d, {
1141
- bgColor: n(t.palette.primary.main, 0.15),
1142
- name: "directions_car"
1143
- }),
1144
- 28: (i, t) => /* @__PURE__ */ e(d, {
1145
- bgColor: n(t.palette.primary.main, 0.15),
1146
- name: "contract"
1147
- }),
1148
- 29: (i) => /* @__PURE__ */ e(mt, { beat: i }),
1149
- 30: (i, t) => /* @__PURE__ */ e(d, {
1150
- bgColor: n(t.palette.primary.main, 0.15),
1151
- name: "calendar_month"
1152
- }),
1153
- 31: (i, t) => /* @__PURE__ */ e(d, {
1154
- bgColor: n(t.palette.warning.main, 0.15),
1155
- name: "star_rate",
1156
- sx: { color: "warning.400" }
1157
- }),
1158
- 32: (i, t) => /* @__PURE__ */ e(d, {
1159
- bgColor: n(t.palette.primary.main, 0.15),
1160
- name: "help"
1161
- }),
1162
- 33: (i, t) => /* @__PURE__ */ e(d, {
1163
- bgColor: n(t.palette.primary.main, 0.15),
1164
- fill: !1,
1165
- name: "storefront"
1166
- }),
1167
- 34: (i) => /* @__PURE__ */ e(gt, { beat: i })
1168
- }, Rt = ({ beat: i }) => {
1169
- const t = H(), { icon_type: r } = i, o = r != null ? vt[r] : null;
1170
- return o ? o(i, t) : /* @__PURE__ */ e(d, {
1171
- bgColor: n(t.palette.primary.main, 0.15),
1172
- name: "error"
1173
- });
1174
- }, L = () => {
1175
- const i = f.useContext(z);
1176
- if (!i) throw new Error("useCopyStore() must be used within the InsightsMicroWidgetDataProvider");
1177
- return i.store.copyStore;
1178
- }, It = () => {
1179
- const i = f.useContext(z);
1180
- if (!i?.store?.insightsMicroWidgetStore) throw new Error("useInsightsMicroWidgetStore() must be used within the InsightsMicroWidgetDataProvider");
1181
- return i.store.insightsMicroWidgetStore;
1182
- }, K = () => {
1183
- const i = f.useContext(z);
1184
- if (!i) throw new Error("useEvent() must be used within the InsightsMicroWidgetDataProvider");
1185
- return { onEvent: i.onEvent };
1186
- }, Ve = () => {
1187
- const i = f.useContext(z);
1188
- if (!i) throw new Error("usePageview() must be used within the InsightsMicroWidgetDataProvider");
1189
- return { onPageview: i.onPageview };
1190
- }, yt = {
1191
- LARGE: 180,
1192
- STANDARD: 154,
1193
- XLARGE: 200,
1194
- XXLARGE: 248
1195
- }, ee = f.forwardRef(function({ ariaLabel: t, closeAriaLabel: r, description: o, elevation: a, icon: l, isActiveCard: h, heightOverrides: E, onClose: _, onCardClick: g, onPrimaryAction: C, onSecondaryAction: s, primaryActionText: c, secondaryActionText: p, title: m, variant: I, widthOverrides: y, ...T }, M) {
1196
- const A = !!(C && c), Z = /* @__PURE__ */ R(Ae, { children: [_ && /* @__PURE__ */ e(it, {
1197
- "aria-label": r,
1198
- onClick: (u) => {
1199
- u.stopPropagation(), _?.();
1200
- },
1201
- onMouseDown: (u) => {
1202
- u.stopPropagation();
1203
- },
1204
- onTouchStart: (u) => {
1205
- u.stopPropagation();
1206
- },
1207
- sx: {
1208
- minHeight: 40,
1209
- minWidth: 40,
1210
- position: "absolute",
1211
- right: 4,
1212
- top: 4
1213
- },
1214
- children: /* @__PURE__ */ e(Qe, {})
1215
- }), /* @__PURE__ */ R(U, {
1216
- sx: {
1217
- gap: 6,
1218
- height: "100%",
1219
- justifyContent: "space-between"
1220
- },
1221
- children: [/* @__PURE__ */ R(U, {
1222
- sx: {
1223
- flexDirection: "row",
1224
- gap: 12
1225
- },
1226
- children: [l && l, /* @__PURE__ */ R(U, {
1227
- sx: { gap: 6 },
1228
- children: [/* @__PURE__ */ e(U, {
1229
- sx: {
1230
- flexDirection: "row",
1231
- justifyContent: "space-between"
1232
- },
1233
- children: /* @__PURE__ */ e(ue, {
1234
- bold: !0,
1235
- sx: { lineHeight: "16px" },
1236
- variant: "body1",
1237
- children: m
1238
- })
1239
- }), /* @__PURE__ */ e(ue, {
1240
- dangerouslySetInnerHTML: { __html: o },
1241
- sx: {
1242
- display: "-webkit-box",
1243
- overflow: "hidden",
1244
- textOverflow: "ellipsis",
1245
- WebkitBoxOrient: "vertical",
1246
- WebkitLineClamp: A ? 2 : 3,
1247
- "& .bold-copy": {
1248
- fontWeight: "bold",
1249
- fontFamily: "inherit"
1250
- }
1251
- },
1252
- variant: "subtitle2"
1253
- })]
1254
- })]
1255
- }), A && /* @__PURE__ */ R(U, {
1256
- sx: {
1257
- alignItems: "center",
1258
- flexDirection: "row",
1259
- height: 28,
1260
- pb: 4,
1261
- pl: l ? 36 : 0
1262
- },
1263
- children: [A && /* @__PURE__ */ e(Ce, {
1264
- onClick: (u) => {
1265
- u.stopPropagation(), C?.();
1266
- },
1267
- onMouseDown: (u) => {
1268
- u.stopPropagation();
1269
- },
1270
- onTouchStart: (u) => {
1271
- u.stopPropagation();
1272
- },
1273
- size: "small",
1274
- sx: {
1275
- px: 8,
1276
- ml: l ? 0 : -8
1277
- },
1278
- variant: "text",
1279
- children: /* @__PURE__ */ e(Ee, {
1280
- bold: !0,
1281
- variant: "body2",
1282
- children: c
1283
- })
1284
- }), !!(s && p) && /* @__PURE__ */ e(Ce, {
1285
- onClick: (u) => {
1286
- u.stopPropagation(), s?.();
1287
- },
1288
- onMouseDown: (u) => {
1289
- u.stopPropagation();
1290
- },
1291
- onTouchStart: (u) => {
1292
- u.stopPropagation();
1293
- },
1294
- size: "small",
1295
- sx: { px: 8 },
1296
- variant: "text",
1297
- children: /* @__PURE__ */ e(Ee, {
1298
- bold: !0,
1299
- sx: { color: "text.secondary" },
1300
- variant: "body2",
1301
- children: p
1302
- })
1303
- })]
1304
- })]
1305
- })] });
1306
- return /* @__PURE__ */ e(et, {
1307
- "aria-hidden": !h,
1308
- "aria-label": t,
1309
- elevation: a,
1310
- ref: M,
1311
- role: "group",
1312
- sx: {
1313
- backgroundColor: "background.paper",
1314
- height: E ? "100%" : 120,
1315
- minWidth: y ? `${y}px` : "100%",
1316
- position: "relative",
1317
- my: 1,
1318
- borderRadius: 2
1319
- },
1320
- tabIndex: g || !h ? -1 : 0,
1321
- variant: I,
1322
- ...T,
1323
- children: g ? /* @__PURE__ */ e(tt, {
1324
- component: "div",
1325
- onClick: g,
1326
- sx: {
1327
- pb: 8,
1328
- pt: 16,
1329
- px: 16,
1330
- height: "100%"
1331
- },
1332
- children: Z
1333
- }) : /* @__PURE__ */ e(Je, {
1334
- sx: {
1335
- pb: 8,
1336
- pt: 16,
1337
- px: 16,
1338
- height: "100%"
1339
- },
1340
- children: Z
1341
- })
1342
- });
1343
- }), At = ({ ariaLabel: i, beat: t, elevation: r, index: o, isActiveCard: a, onCardClick: l, posthog: h, widthOverrides: E, variant: _, showIcon: g, heightOverrides: C }) => {
1344
- const { ref: s, inView: c } = Se({ threshold: 1 }), { cardsCopy: p } = L(), { onEvent: m } = K(), { updateBeat: I, updateOffer: y } = It();
1345
- le(() => {
1346
- c && (t.has_been_displayed ? m(Te(t.template)) : (t.guid.startsWith("OFR") ? y({
1347
- ...t,
1348
- has_been_displayed: !0
1349
- }) : I({
1350
- ...t,
1351
- has_been_displayed: !0
1352
- }), m(we(t.template))));
1353
- }, [c]), le(() => {
1354
- if (c && t) if (t.template === "MarketingOffer") {
1355
- const M = t;
1356
- h?.capture("viewed_messaging_insight", {
1357
- template: t.template,
1358
- campaign_guid: M.campaign_guid,
1359
- campaign_name: M.pulse_campaign_name
1360
- });
1361
- } else h?.capture("viewed_insight", {
1362
- beat_guid: t.guid,
1363
- template: t.template,
1364
- position: o
1365
- });
1366
- }, [
1367
- t,
1368
- o,
1369
- c
1370
- ]);
1371
- const T = () => {
1372
- if (l && l(t), m(Oe(t.template)), t.template === "MarketingOffer") {
1373
- const M = t;
1374
- h?.capture("clicked_messaging_insight", {
1375
- template: t.template,
1376
- campaign_guid: M.campaign_guid,
1377
- campaign_name: M.pulse_campaign_name
1378
- });
1379
- } else h?.capture("clicked_insight", {
1380
- beat_guid: t.guid,
1381
- template: t.template,
1382
- position: o
1383
- });
1384
- };
1385
- return /* @__PURE__ */ e(ee, {
1386
- "aria-roledescription": "slide",
1387
- ariaLabel: i,
1388
- description: t?.html_micro_description && t?.html_micro_description.length > 0 ? t.html_micro_description : t.html_description || "",
1389
- elevation: r,
1390
- heightOverrides: C,
1391
- icon: g && /* @__PURE__ */ e(Rt, { beat: t }),
1392
- isActiveCard: a,
1393
- onCardClick: T,
1394
- onPrimaryAction: T,
1395
- primaryActionText: t.micro_call_to_action || p?.micro_card_cta,
1396
- ref: s,
1397
- title: t.micro_title && t.micro_title.length > 0 ? t.micro_title : t.title,
1398
- variant: _,
1399
- widthOverrides: E
1400
- });
1401
- }, Mt = ({ currentBeatIndex: i, numBeats: t, onNextClick: r, onPreviousClick: o, scrollRightBoundary: a, scrollX: l, shouldApplyDotAnimation: h = !1, visibleCardsCount: E = 1 }) => {
1402
- const _ = H(), { carouselCopy: g } = L(), C = Math.floor(l) > a || i - E + 1 === 0, s = l < 0 || t - 1 === i, c = _.palette.grey[500], p = _.palette.primary.main;
1403
- return /* @__PURE__ */ R(F, {
1404
- direction: "row",
1405
- sx: {
1406
- alignItems: "center",
1407
- justifyContent: "center",
1408
- pt: 4,
1409
- width: "100%",
1410
- "& button:first-child": { mr: 8 }
1411
- },
1412
- children: [
1413
- /* @__PURE__ */ e(_e, {
1414
- "aria-disabled": C,
1415
- "aria-label": g?.previous_insight_cta_aria,
1416
- disabled: C,
1417
- onClick: o,
1418
- children: /* @__PURE__ */ e(Xe, { sx: { color: C ? c : p } })
1419
- }),
1420
- Array.from({ length: t }).map((m, I) => {
1421
- const y = I === i;
1422
- return /* @__PURE__ */ e(ae, {
1423
- className: "mx-insights-micro-carousel-dots",
1424
- sx: {
1425
- bgcolor: y ? p : c,
1426
- height: 8,
1427
- mr: 8,
1428
- ...h ? {
1429
- borderRadius: "4px",
1430
- transformOrigin: "center",
1431
- transition: "all 0.5s ease-out",
1432
- willChange: "width, background-color"
1433
- } : {
1434
- borderRadius: "50%",
1435
- p: 0
1436
- },
1437
- width: y && h ? 24 : 8
1438
- }
1439
- }, `carousel-button-${I}`);
1440
- }),
1441
- /* @__PURE__ */ e(_e, {
1442
- "aria-disabled": s,
1443
- "aria-label": g?.next_insight_cta_aria,
1444
- disabled: s,
1445
- onClick: r,
1446
- children: /* @__PURE__ */ e(ye, { sx: { color: s ? c : p } })
1447
- })
1448
- ]
1449
- });
1450
- }, St = ({ activeCardIndex: i, beats: t, cardWidth: r, elevation: o, heightOverrides: a, onCardClick: l, posthog: h, showIcon: E, variant: _ }) => {
1451
- const { carouselCopy: g } = L(), C = {
1452
- elevation: o,
1453
- heightOverrides: a,
1454
- posthog: h,
1455
- showIcon: E,
1456
- variant: _
1457
- };
1458
- return /* @__PURE__ */ R(Ae, { children: [t.map((s, c) => {
1459
- const p = c + 1, m = t.length + 1, I = be(g?.card_position_in_carousel_aria, p.toString(), m.toString()), y = s.micro_title && s.micro_title.length > 0, T = s.micro_description && s.micro_description.length > 0;
1460
- return /* @__PURE__ */ e(At, {
1461
- ariaLabel: `${I}: ${y ? s.micro_title : s.title}, ${T ? s.micro_description : s.description}`,
1462
- beat: s,
1463
- index: c,
1464
- isActiveCard: c === i,
1465
- onCardClick: l,
1466
- widthOverrides: r || void 0,
1467
- ...C
1468
- }, `${s.guid} ${c}`);
1469
- }), /* @__PURE__ */ e(Nt, {
1470
- isActiveCard: i === t.length,
1471
- onCardClick: l,
1472
- widthOverrides: r || void 0,
1473
- ...C
1474
- })] });
1475
- }, Ot = ({ analyticsMetadata: i, allowSingleCardPeeking: t, beats: r = [], elevation: o, heightOverrides: a, onCardClick: l, posthog: h, showCarouselControls: E, showIcon: _, showWithMargin: g = !0, variant: C, widthOverrides: s, visibleCardsCount: c = 1 }) => {
1476
- const p = f.useRef(null), m = f.useRef(null), [I, y] = f.useState(0), [T, M] = f.useState(null), [A, Z] = f.useState(null), [u, B] = f.useState(null), { carouselCopy: $ } = L(), { onEvent: w } = K();
1477
- f.useEffect(() => {
1478
- if (p.current && !t) {
1479
- const v = p.current.offsetWidth, G = 8;
1480
- let b;
1481
- c > 1 ? b = (v - (v - (c - 1) * G) / c / 3 - (c - 1) * G) / c : b = v, B(b);
1482
- }
1483
- }, [c, p.current?.offsetWidth]), f.useEffect(() => {
1484
- const v = m.current?.offsetWidth;
1485
- if (typeof v == "number" && t) {
1486
- const G = (q) => {
1487
- const ce = [
1488
- {
1489
- maxWidth: 375,
1490
- cardWidth: 268
1491
- },
1492
- {
1493
- maxWidth: 444,
1494
- cardWidth: 300
1495
- },
1496
- {
1497
- maxWidth: 599,
1498
- cardWidth: 350
1499
- },
1500
- {
1501
- maxWidth: 749,
1502
- cardWidth: 450
1503
- },
1504
- {
1505
- maxWidth: 900,
1506
- cardWidth: 600
1507
- }
1508
- ].find((ke) => q <= ke.maxWidth);
1509
- return ce ? ce.cardWidth : 750;
1510
- };
1511
- B(G(v));
1512
- const b = () => {
1513
- const q = m.current?.offsetWidth;
1514
- typeof q == "number" && B(G(q));
1515
- };
1516
- return window.addEventListener("resize", b), () => {
1517
- window.removeEventListener("resize", b);
1518
- };
1519
- }
1520
- }, [t, m]);
1521
- const k = () => {
1522
- w(O.ON_CAROUSEL_FORWARD_CLICK, i), p.current && u && p.current.scrollTo({
1523
- left: I + u + 8,
1524
- top: 0,
1525
- behavior: "smooth"
1526
- });
1527
- }, te = () => {
1528
- w(O.ON_CAROUSEL_BACK_CLICK, i), p.current && u && p.current.scrollTo({
1529
- left: Math.max(0, I - (u + 8)),
1530
- top: 0,
1531
- behavior: "smooth"
1532
- });
1533
- }, j = () => {
1534
- p.current && y(p.current.scrollLeft);
1535
- }, Y = () => {
1536
- !A || !T || (A - T > 50 ? w(O.ON_CAROUSEL_FORWARD_SWIPE, i) : w(O.ON_CAROUSEL_BACK_SWIPE, i));
1537
- }, ie = (v) => {
1538
- M(v.targetTouches[0].clientX);
1539
- }, re = (v) => {
1540
- M(null), Z(v.targetTouches[0].clientX);
1541
- }, X = u ? Math.round(I / (u + 8)) : 0, Q = p.current ? p.current.scrollWidth - p.current.offsetWidth : 0;
1542
- return /* @__PURE__ */ R(F, {
1543
- "aria-label": $?.carousel_title,
1544
- "aria-roledescription": "carousel",
1545
- ref: m,
1546
- role: "region",
1547
- sx: {
1548
- alignItems: "center",
1549
- boxSizing: "border-box",
1550
- height: a,
1551
- width: s || "100%"
1552
- },
1553
- children: [/* @__PURE__ */ e(F, {
1554
- direction: "row",
1555
- onScroll: j,
1556
- onTouchEnd: Y,
1557
- onTouchMove: ie,
1558
- onTouchStart: re,
1559
- ref: p,
1560
- sx: {
1561
- alignItems: "center",
1562
- height: a && "100%",
1563
- gap: 8,
1564
- listStyleType: "none",
1565
- m: 0,
1566
- maxWidth: g ? "calc(100% - 32px)" : "100%",
1567
- overflowX: "auto",
1568
- overflowY: "hidden",
1569
- p: 0,
1570
- scrollbarWidth: "none",
1571
- "-ms-overflow-style": "none",
1572
- "-webkit-overflow-scrolling": "touch",
1573
- "&::-webkit-scrollbar": { display: "none" }
1574
- },
1575
- children: /* @__PURE__ */ e(St, {
1576
- activeCardIndex: X,
1577
- beats: r,
1578
- cardWidth: u,
1579
- elevation: o,
1580
- heightOverrides: a,
1581
- onCardClick: l,
1582
- posthog: h,
1583
- showIcon: _,
1584
- variant: C
1585
- })
1586
- }), E && /* @__PURE__ */ e(Mt, {
1587
- currentBeatIndex: X + c - 1,
1588
- numBeats: r.length + 1,
1589
- onNextClick: k,
1590
- onPreviousClick: te,
1591
- scrollRightBoundary: Q,
1592
- scrollX: I,
1593
- shouldApplyDotAnimation: t,
1594
- visibleCardsCount: c
1595
- })]
1596
- });
1597
- }, Tt = P(Ot), wt = ({ analyticsMetadata: i, onCardClick: t, posthog: r, widthOverrides: o, headerSx: a }) => {
1598
- const { carouselCopy: l } = L(), { onEvent: h } = K(), E = () => {
1599
- h && (h(O.ON_VIEW_MORE_CLICKED, i), t(), r?.capture("clicked_view_more"));
1600
- };
1601
- return l ? /* @__PURE__ */ R(F, {
1602
- alignItems: "center",
1603
- direction: "row",
1604
- justifyContent: "space-between",
1605
- spacing: 2,
1606
- sx: {
1607
- p: 16,
1608
- pb: 8,
1609
- width: o || void 0,
1610
- ...a
1611
- },
1612
- children: [/* @__PURE__ */ e(Ke, { children: l.carousel_title }), /* @__PURE__ */ e(Ye, {
1613
- endIcon: /* @__PURE__ */ e(ye, { size: 20 }),
1614
- onClick: E,
1615
- size: "small",
1616
- variant: "text",
1617
- children: l.view_all_insights_in_full_feed_cta_aria
1618
- })]
1619
- }) : /* @__PURE__ */ e(Ue, {});
1620
- }, xt = P(wt), Dt = ({ heightOverrides: i, widthOverrides: t, children: r }) => {
1621
- const { carouselCopy: o } = L();
1622
- return /* @__PURE__ */ e(ae, {
1623
- "aria-label": o?.carousel_title,
1624
- "aria-roledescription": "carousel",
1625
- role: "group",
1626
- sx: {
1627
- boxSizing: "border-box",
1628
- height: i ? void 0 : "100%",
1629
- m: "0 auto",
1630
- width: t ? void 0 : "100%"
1631
- },
1632
- children: r
1633
- });
1634
- }, Ne = ({ ariaLabel: i, elevation: t, heightOverrides: r, onCardClick: o, posthog: a, showIcon: l, variant: h }) => {
1635
- const { cardsCopy: E } = L(), _ = H(), { onEvent: g } = K(), { onPageview: C } = Ve();
1636
- f.useEffect(() => {
1637
- C(N.MICRO_WIDGET_CAROUSEL_NO_RELEVANT_INSIGHTS);
1638
- }, []);
1639
- const s = () => {
1640
- o && o(), g(O.ON_NO_RELEVANT_INSIGHTS_CLICKED), a?.capture("clicked_insight", { template: "no_relevant_insights" });
1641
- };
1642
- return /* @__PURE__ */ e(ee, {
1643
- ariaLabel: i,
1644
- description: E.no_relevant_insights_card_description,
1645
- elevation: t,
1646
- heightOverrides: r,
1647
- icon: l && /* @__PURE__ */ e(d, {
1648
- bgColor: n(_.palette.primary.main, 0.15),
1649
- name: "lightbulb"
1650
- }),
1651
- onCardClick: s,
1652
- onPrimaryAction: s,
1653
- primaryActionText: E.micro_card_cta,
1654
- title: E.no_relevant_insights_card_title,
1655
- variant: h
1656
- });
1657
- }, ii = P(Ne), He = ({ ariaLabel: i, elevation: t, heightOverrides: r, onCardClick: o, showIcon: a, variant: l }) => {
1658
- const { onPageview: h } = Ve(), { zeroStateCopy: E } = L(), _ = H();
1659
- return f.useEffect(() => {
1660
- h(N.MICRO_WIDGET_CAROUSEL_ZERO_STATE);
1661
- }, []), /* @__PURE__ */ e(ee, {
1662
- ariaLabel: i,
1663
- description: E.carousel_zero_state_description,
1664
- elevation: t,
1665
- heightOverrides: r,
1666
- icon: a && /* @__PURE__ */ e(d, {
1667
- bgColor: n(_.palette.primary.main, 0.15),
1668
- name: "lightbulb"
1669
- }),
1670
- onCardClick: o,
1671
- title: E.carousel_zero_state_title,
1672
- variant: l
1673
- });
1674
- }, ri = P(He), Wt = () => /* @__PURE__ */ e(ae, {
1675
- sx: {
1676
- alignItems: "center",
1677
- display: "flex",
1678
- height: "100%",
1679
- justifyContent: "center",
1680
- width: "100%"
1681
- },
1682
- children: /* @__PURE__ */ e(rt, {})
1683
- }), Ie = { featureVersion: "spendVsIncomeTrends" }, V = new ct(), Lt = ({ allowSingleCardPeeking: i = !0, areBeatsLoading: t = !1, beats: r = [], cardStyle: o = "elevation 1", endpoint: a = "/", headerSx: l, heightOverrides: h, logOutUser: E = () => {
1684
- }, onCardClick: _ = () => {
1685
- }, onEvent: g = () => {
1686
- }, onPageview: C = () => {
1687
- }, posthog: s, showCarouselControls: c, showHeader: p, showIcon: m, showWithMargin: I = !0, token: y = "", userHasFullInsightFeedBeats: T, visibleCardsCount: M = 1, widthOverrides: A }) => {
1688
- const u = (() => {
1689
- if (o === "border") return "outlined";
1690
- if (o === "elevation 1") return "elevation";
1691
- if (o !== "flat")
1692
- return "elevation";
1693
- })(), B = o === "flat" ? 0 : 1, [$, w] = oe("STANDARD"), [k, te] = oe(!1), [j, Y] = oe(!1), ie = Ze([g], V), re = Fe([C], V);
1694
- Pe({
1695
- widgetName: "InsightsMicroWidget",
1696
- isLoaded: k
1697
- }), f.useEffect(() => {
1698
- !V.isInitialized && !j && (V.initialize(a, y, E).catch(() => Y(!1)), Y(!0));
1699
- }, [
1700
- a,
1701
- y,
1702
- E,
1703
- V.isInitialized,
1704
- j
1705
- ]), f.useEffect(() => {
1706
- const v = window.innerHeight;
1707
- v < 180 ? w("STANDARD") : v >= 180 && v < 200 ? w("LARGE") : v >= 200 && v < 248 ? w("XLARGE") : v >= 248 && w("XXLARGE");
1708
- }, [window.innerHeight]), f.useEffect(() => {
1709
- te(!t && V.isInitialized);
1710
- }, [t, V.isInitialized]);
1711
- const X = {
1712
- heightOverrides: h,
1713
- onCardClick: _,
1714
- posthog: s,
1715
- showIcon: m,
1716
- showWithMargin: I,
1717
- widthOverrides: A
1718
- }, Q = {
1719
- carouselSize: $,
1720
- elevation: B,
1721
- variant: u,
1722
- heightOverrides: h,
1723
- onCardClick: _,
1724
- posthog: s,
1725
- showIcon: m
1726
- };
1727
- return /* @__PURE__ */ e(pt, {
1728
- onEvent: ie,
1729
- onPageview: re,
1730
- store: V,
1731
- children: /* @__PURE__ */ R(Dt, {
1732
- heightOverrides: h,
1733
- widthOverrides: A,
1734
- children: [
1735
- !k && /* @__PURE__ */ e(Wt, {}),
1736
- k && p && /* @__PURE__ */ e(xt, {
1737
- analyticsMetadata: Ie,
1738
- headerSx: l,
1739
- onCardClick: _,
1740
- posthog: s,
1741
- widthOverrides: A
1742
- }),
1743
- k && !!r.length && /* @__PURE__ */ e(Tt, {
1744
- allowSingleCardPeeking: i,
1745
- analyticsMetadata: Ie,
1746
- beats: r,
1747
- elevation: B,
1748
- showCarouselControls: c,
1749
- variant: u,
1750
- visibleCardsCount: M,
1751
- ...X
1752
- }),
1753
- k && !r.length && /* @__PURE__ */ e(F, {
1754
- sx: {
1755
- alignItems: "center",
1756
- height: h,
1757
- width: A || "100%"
1758
- },
1759
- children: /* @__PURE__ */ e(F, {
1760
- sx: {
1761
- height: `calc(${yt[$]}px - 44px)`,
1762
- width: I ? `calc(${A}px - 32px)` : "100%"
1763
- },
1764
- children: T ? /* @__PURE__ */ e(Ne, { ...Q }) : /* @__PURE__ */ e(He, { ...Q })
1765
- })
1766
- })
1767
- ]
1768
- })
1769
- });
1770
- }, oi = P(Lt), Vt = ({ ariaLabel: i, elevation: t, heightOverrides: r, isActiveCard: o, onCardClick: a, posthog: l, widthOverrides: h, showIcon: E, variant: _ }) => {
1771
- const g = H(), { ref: C, inView: s } = Se({ threshold: 1 }), { cardsCopy: c } = L(), { onEvent: p } = K();
1772
- le(() => {
1773
- s && (p(xe.ON_VIEW_MORE_VIEWED), l?.capture("viewed_insight", { template: "view_more_card" }));
1774
- }, [s]);
1775
- const m = () => {
1776
- a && a(), p(O.ON_VIEW_MORE_CLICKED), l?.capture("clicked_insight", { template: "view_more_card" });
1777
- };
1778
- return /* @__PURE__ */ e(ee, {
1779
- "aria-roledescription": "slide",
1780
- ariaLabel: i,
1781
- description: c?.view_more_card_description,
1782
- elevation: t,
1783
- heightOverrides: r,
1784
- icon: E && /* @__PURE__ */ e(d, {
1785
- bgColor: n(g.palette.primary.main, 0.15),
1786
- name: "show_chart"
1787
- }),
1788
- isActiveCard: o,
1789
- onCardClick: m,
1790
- onPrimaryAction: m,
1791
- primaryActionText: c?.micro_card_cta,
1792
- ref: C,
1793
- title: c?.view_more_card_title,
1794
- variant: _,
1795
- widthOverrides: h
1796
- });
1797
- }, Nt = P(Vt);
1798
- export {
1799
- ii as a,
1800
- At as c,
1801
- Ct as d,
1802
- ei as f,
1803
- ct as h,
1804
- ri as i,
1805
- ee as l,
1806
- pt as m,
1807
- oi as n,
1808
- xt as o,
1809
- d as p,
1810
- Ie as r,
1811
- Tt as s,
1812
- Nt as t,
1813
- ti as u
1814
- };