@moneylion/react-native-offer-carousel 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (598) hide show
  1. package/README.md +1 -0
  2. package/lib/commonjs/apiEnvironment.js +24 -0
  3. package/lib/commonjs/apiEnvironment.js.map +1 -0
  4. package/lib/commonjs/components/Button/index.js +119 -0
  5. package/lib/commonjs/components/Button/index.js.map +1 -0
  6. package/lib/commonjs/components/Cards/VideosCard/VideoContent.js +40 -0
  7. package/lib/commonjs/components/Cards/VideosCard/VideoContent.js.map +1 -0
  8. package/lib/commonjs/components/Cards/VideosCard/VideosCard.js +56 -0
  9. package/lib/commonjs/components/Cards/VideosCard/VideosCard.js.map +1 -0
  10. package/lib/commonjs/components/Cards/index.js +3 -0
  11. package/lib/commonjs/components/Cards/index.js.map +1 -0
  12. package/lib/commonjs/components/Common/BaseOfferCard/Content/Content.js +20 -0
  13. package/lib/commonjs/components/Common/BaseOfferCard/Content/Content.js.map +1 -0
  14. package/lib/commonjs/components/Common/BaseOfferCard/Content/index.js +17 -0
  15. package/lib/commonjs/components/Common/BaseOfferCard/Content/index.js.map +1 -0
  16. package/lib/commonjs/components/Common/BaseOfferCard/Stat/Stat.js +83 -0
  17. package/lib/commonjs/components/Common/BaseOfferCard/Stat/Stat.js.map +1 -0
  18. package/lib/commonjs/components/Common/BaseOfferCard/Stat/index.js +17 -0
  19. package/lib/commonjs/components/Common/BaseOfferCard/Stat/index.js.map +1 -0
  20. package/lib/commonjs/components/Common/BaseOfferCard/StatsContainer/StatsContainer.js +18 -0
  21. package/lib/commonjs/components/Common/BaseOfferCard/StatsContainer/StatsContainer.js.map +1 -0
  22. package/lib/commonjs/components/Common/BaseOfferCard/StatsContainer/index.js +17 -0
  23. package/lib/commonjs/components/Common/BaseOfferCard/StatsContainer/index.js.map +1 -0
  24. package/lib/commonjs/components/Common/BaseOfferCard/ThumbsUpIcon.js +29 -0
  25. package/lib/commonjs/components/Common/BaseOfferCard/ThumbsUpIcon.js.map +1 -0
  26. package/lib/commonjs/components/Common/BaseOfferCard/index.js +254 -0
  27. package/lib/commonjs/components/Common/BaseOfferCard/index.js.map +1 -0
  28. package/lib/commonjs/components/Common/DynamicOfferCard/CallToAction.js +45 -0
  29. package/lib/commonjs/components/Common/DynamicOfferCard/CallToAction.js.map +1 -0
  30. package/lib/commonjs/components/Common/DynamicOfferCard/SeeMore.js +72 -0
  31. package/lib/commonjs/components/Common/DynamicOfferCard/SeeMore.js.map +1 -0
  32. package/lib/commonjs/components/Common/DynamicOfferCard/index.js +37 -0
  33. package/lib/commonjs/components/Common/DynamicOfferCard/index.js.map +1 -0
  34. package/lib/commonjs/components/Common/index.js +27 -0
  35. package/lib/commonjs/components/Common/index.js.map +1 -0
  36. package/lib/commonjs/components/Divider/index.js +39 -0
  37. package/lib/commonjs/components/Divider/index.js.map +1 -0
  38. package/lib/commonjs/components/DynamicOffers/DynamicOffers.js +32 -0
  39. package/lib/commonjs/components/DynamicOffers/DynamicOffers.js.map +1 -0
  40. package/lib/commonjs/components/DynamicOffers/DynamicOffersContainer.js +49 -0
  41. package/lib/commonjs/components/DynamicOffers/DynamicOffersContainer.js.map +1 -0
  42. package/lib/commonjs/components/DynamicOffers/Render/DynamicOffersRender.js +205 -0
  43. package/lib/commonjs/components/DynamicOffers/Render/DynamicOffersRender.js.map +1 -0
  44. package/lib/commonjs/components/DynamicOffers/Render/FallbackOfferTemplate.js +28 -0
  45. package/lib/commonjs/components/DynamicOffers/Render/FallbackOfferTemplate.js.map +1 -0
  46. package/lib/commonjs/components/DynamicOffers/Render/Offer.js +70 -0
  47. package/lib/commonjs/components/DynamicOffers/Render/Offer.js.map +1 -0
  48. package/lib/commonjs/components/DynamicOffers/Render/index.js +20 -0
  49. package/lib/commonjs/components/DynamicOffers/Render/index.js.map +1 -0
  50. package/lib/commonjs/components/Layouts/CreditCardOfferCard/index.js +65 -0
  51. package/lib/commonjs/components/Layouts/CreditCardOfferCard/index.js.map +1 -0
  52. package/lib/commonjs/components/Layouts/CreditCardOfferCard/statsBuilder.js +15 -0
  53. package/lib/commonjs/components/Layouts/CreditCardOfferCard/statsBuilder.js.map +1 -0
  54. package/lib/commonjs/components/Layouts/DefaultOfferCard/index.js +53 -0
  55. package/lib/commonjs/components/Layouts/DefaultOfferCard/index.js.map +1 -0
  56. package/lib/commonjs/components/Layouts/DefaultOfferCard/statsBuilder.js +17 -0
  57. package/lib/commonjs/components/Layouts/DefaultOfferCard/statsBuilder.js.map +1 -0
  58. package/lib/commonjs/components/Layouts/HeadlineWithDescriptionCard/index.js +47 -0
  59. package/lib/commonjs/components/Layouts/HeadlineWithDescriptionCard/index.js.map +1 -0
  60. package/lib/commonjs/components/Layouts/index.js +27 -0
  61. package/lib/commonjs/components/Layouts/index.js.map +1 -0
  62. package/lib/commonjs/components/Modal/DescriptionPoints.js +28 -0
  63. package/lib/commonjs/components/Modal/DescriptionPoints.js.map +1 -0
  64. package/lib/commonjs/components/Modal/Disclaimer.js +27 -0
  65. package/lib/commonjs/components/Modal/Disclaimer.js.map +1 -0
  66. package/lib/commonjs/components/Modal/OfferDetailsModal.js +95 -0
  67. package/lib/commonjs/components/Modal/OfferDetailsModal.js.map +1 -0
  68. package/lib/commonjs/components/MoneyLionOfferCarousel.js +174 -0
  69. package/lib/commonjs/components/MoneyLionOfferCarousel.js.map +1 -0
  70. package/lib/commonjs/components/Skeleton/Skeleton.js +65 -0
  71. package/lib/commonjs/components/Skeleton/Skeleton.js.map +1 -0
  72. package/lib/commonjs/components/Skeleton/index.js +10 -0
  73. package/lib/commonjs/components/Skeleton/index.js.map +1 -0
  74. package/lib/commonjs/components/Text/index.js +184 -0
  75. package/lib/commonjs/components/Text/index.js.map +1 -0
  76. package/lib/commonjs/components/View/index.js +162 -0
  77. package/lib/commonjs/components/View/index.js.map +1 -0
  78. package/lib/commonjs/context/CNFProvider.js +2 -0
  79. package/lib/commonjs/context/CNFProvider.js.map +1 -0
  80. package/lib/commonjs/context/EventHandlerProvider.js +25 -0
  81. package/lib/commonjs/context/EventHandlerProvider.js.map +1 -0
  82. package/lib/commonjs/context/ThemeProvider.js +59 -0
  83. package/lib/commonjs/context/ThemeProvider.js.map +1 -0
  84. package/lib/commonjs/deps/configuration.js +2 -0
  85. package/lib/commonjs/deps/configuration.js.map +1 -0
  86. package/lib/commonjs/index.js +17 -0
  87. package/lib/commonjs/index.js.map +1 -0
  88. package/lib/commonjs/pageData.js +93 -0
  89. package/lib/commonjs/pageData.js.map +1 -0
  90. package/lib/commonjs/services/getDynamicOffers.js +55 -0
  91. package/lib/commonjs/services/getDynamicOffers.js.map +1 -0
  92. package/lib/commonjs/services/getProductTypes.js +50 -0
  93. package/lib/commonjs/services/getProductTypes.js.map +1 -0
  94. package/lib/commonjs/services/getProductTypesByQuery.js +55 -0
  95. package/lib/commonjs/services/getProductTypesByQuery.js.map +1 -0
  96. package/lib/commonjs/utils/addClientTagsToOfferLinks.js +25 -0
  97. package/lib/commonjs/utils/addClientTagsToOfferLinks.js.map +1 -0
  98. package/lib/commonjs/utils/formatOfferUrl.js +31 -0
  99. package/lib/commonjs/utils/formatOfferUrl.js.map +1 -0
  100. package/lib/commonjs/utils/getDefaultPaletteColor.js +20 -0
  101. package/lib/commonjs/utils/getDefaultPaletteColor.js.map +1 -0
  102. package/lib/commonjs/utils/getDefaultProductType.js +9 -0
  103. package/lib/commonjs/utils/getDefaultProductType.js.map +1 -0
  104. package/lib/commonjs/utils/getEnableUseCachedOffers.js +21 -0
  105. package/lib/commonjs/utils/getEnableUseCachedOffers.js.map +1 -0
  106. package/lib/commonjs/utils/getOffersBasedOnLayout.js +48 -0
  107. package/lib/commonjs/utils/getOffersBasedOnLayout.js.map +1 -0
  108. package/lib/commonjs/utils/getOffersByProductTypes.js +31 -0
  109. package/lib/commonjs/utils/getOffersByProductTypes.js.map +1 -0
  110. package/lib/commonjs/utils/getProductTypesDefinition.js +17 -0
  111. package/lib/commonjs/utils/getProductTypesDefinition.js.map +1 -0
  112. package/lib/commonjs/utils/index.js +116 -0
  113. package/lib/commonjs/utils/index.js.map +1 -0
  114. package/lib/commonjs/utils/layouts.js +27 -0
  115. package/lib/commonjs/utils/layouts.js.map +1 -0
  116. package/lib/commonjs/utils/parseStringProductTypes.js +14 -0
  117. package/lib/commonjs/utils/parseStringProductTypes.js.map +1 -0
  118. package/lib/commonjs/utils/resolveProductTypes.js +12 -0
  119. package/lib/commonjs/utils/resolveProductTypes.js.map +1 -0
  120. package/lib/commonjs/utils/selectDynamicOffers.js +13 -0
  121. package/lib/commonjs/utils/selectDynamicOffers.js.map +1 -0
  122. package/lib/commonjs/utils/sortOffersByRecommendationScore.js +12 -0
  123. package/lib/commonjs/utils/sortOffersByRecommendationScore.js.map +1 -0
  124. package/lib/commonjs/version.js +10 -0
  125. package/lib/commonjs/version.js.map +1 -0
  126. package/lib/module/apiEnvironment.js +15 -0
  127. package/lib/module/apiEnvironment.js.map +1 -0
  128. package/lib/module/components/Button/index.js +111 -0
  129. package/lib/module/components/Button/index.js.map +1 -0
  130. package/lib/module/components/Cards/VideosCard/VideoContent.js +32 -0
  131. package/lib/module/components/Cards/VideosCard/VideoContent.js.map +1 -0
  132. package/lib/module/components/Cards/VideosCard/VideosCard.js +55 -0
  133. package/lib/module/components/Cards/VideosCard/VideosCard.js.map +1 -0
  134. package/lib/module/components/Cards/index.js +2 -0
  135. package/lib/module/components/Cards/index.js.map +1 -0
  136. package/lib/module/components/Common/BaseOfferCard/Content/Content.js +13 -0
  137. package/lib/module/components/Common/BaseOfferCard/Content/Content.js.map +1 -0
  138. package/lib/module/components/Common/BaseOfferCard/Content/index.js +2 -0
  139. package/lib/module/components/Common/BaseOfferCard/Content/index.js.map +1 -0
  140. package/lib/module/components/Common/BaseOfferCard/Stat/Stat.js +76 -0
  141. package/lib/module/components/Common/BaseOfferCard/Stat/Stat.js.map +1 -0
  142. package/lib/module/components/Common/BaseOfferCard/Stat/index.js +2 -0
  143. package/lib/module/components/Common/BaseOfferCard/Stat/index.js.map +1 -0
  144. package/lib/module/components/Common/BaseOfferCard/StatsContainer/StatsContainer.js +10 -0
  145. package/lib/module/components/Common/BaseOfferCard/StatsContainer/StatsContainer.js.map +1 -0
  146. package/lib/module/components/Common/BaseOfferCard/StatsContainer/index.js +2 -0
  147. package/lib/module/components/Common/BaseOfferCard/StatsContainer/index.js.map +1 -0
  148. package/lib/module/components/Common/BaseOfferCard/ThumbsUpIcon.js +21 -0
  149. package/lib/module/components/Common/BaseOfferCard/ThumbsUpIcon.js.map +1 -0
  150. package/lib/module/components/Common/BaseOfferCard/index.js +248 -0
  151. package/lib/module/components/Common/BaseOfferCard/index.js.map +1 -0
  152. package/lib/module/components/Common/DynamicOfferCard/CallToAction.js +37 -0
  153. package/lib/module/components/Common/DynamicOfferCard/CallToAction.js.map +1 -0
  154. package/lib/module/components/Common/DynamicOfferCard/SeeMore.js +62 -0
  155. package/lib/module/components/Common/DynamicOfferCard/SeeMore.js.map +1 -0
  156. package/lib/module/components/Common/DynamicOfferCard/index.js +31 -0
  157. package/lib/module/components/Common/DynamicOfferCard/index.js.map +1 -0
  158. package/lib/module/components/Common/index.js +4 -0
  159. package/lib/module/components/Common/index.js.map +1 -0
  160. package/lib/module/components/Divider/index.js +33 -0
  161. package/lib/module/components/Divider/index.js.map +1 -0
  162. package/lib/module/components/DynamicOffers/DynamicOffers.js +24 -0
  163. package/lib/module/components/DynamicOffers/DynamicOffers.js.map +1 -0
  164. package/lib/module/components/DynamicOffers/DynamicOffersContainer.js +40 -0
  165. package/lib/module/components/DynamicOffers/DynamicOffersContainer.js.map +1 -0
  166. package/lib/module/components/DynamicOffers/Render/DynamicOffersRender.js +196 -0
  167. package/lib/module/components/DynamicOffers/Render/DynamicOffersRender.js.map +1 -0
  168. package/lib/module/components/DynamicOffers/Render/FallbackOfferTemplate.js +21 -0
  169. package/lib/module/components/DynamicOffers/Render/FallbackOfferTemplate.js.map +1 -0
  170. package/lib/module/components/DynamicOffers/Render/Offer.js +61 -0
  171. package/lib/module/components/DynamicOffers/Render/Offer.js.map +1 -0
  172. package/lib/module/components/DynamicOffers/Render/index.js +3 -0
  173. package/lib/module/components/DynamicOffers/Render/index.js.map +1 -0
  174. package/lib/module/components/Layouts/CreditCardOfferCard/index.js +57 -0
  175. package/lib/module/components/Layouts/CreditCardOfferCard/index.js.map +1 -0
  176. package/lib/module/components/Layouts/CreditCardOfferCard/statsBuilder.js +8 -0
  177. package/lib/module/components/Layouts/CreditCardOfferCard/statsBuilder.js.map +1 -0
  178. package/lib/module/components/Layouts/DefaultOfferCard/index.js +45 -0
  179. package/lib/module/components/Layouts/DefaultOfferCard/index.js.map +1 -0
  180. package/lib/module/components/Layouts/DefaultOfferCard/statsBuilder.js +10 -0
  181. package/lib/module/components/Layouts/DefaultOfferCard/statsBuilder.js.map +1 -0
  182. package/lib/module/components/Layouts/HeadlineWithDescriptionCard/index.js +39 -0
  183. package/lib/module/components/Layouts/HeadlineWithDescriptionCard/index.js.map +1 -0
  184. package/lib/module/components/Layouts/index.js +4 -0
  185. package/lib/module/components/Layouts/index.js.map +1 -0
  186. package/lib/module/components/Modal/DescriptionPoints.js +21 -0
  187. package/lib/module/components/Modal/DescriptionPoints.js.map +1 -0
  188. package/lib/module/components/Modal/Disclaimer.js +20 -0
  189. package/lib/module/components/Modal/Disclaimer.js.map +1 -0
  190. package/lib/module/components/Modal/OfferDetailsModal.js +87 -0
  191. package/lib/module/components/Modal/OfferDetailsModal.js.map +1 -0
  192. package/lib/module/components/MoneyLionOfferCarousel.js +165 -0
  193. package/lib/module/components/MoneyLionOfferCarousel.js.map +1 -0
  194. package/lib/module/components/Skeleton/Skeleton.js +57 -0
  195. package/lib/module/components/Skeleton/Skeleton.js.map +1 -0
  196. package/lib/module/components/Skeleton/index.js +3 -0
  197. package/lib/module/components/Skeleton/index.js.map +1 -0
  198. package/lib/module/components/Text/index.js +179 -0
  199. package/lib/module/components/Text/index.js.map +1 -0
  200. package/lib/module/components/View/index.js +155 -0
  201. package/lib/module/components/View/index.js.map +1 -0
  202. package/lib/module/context/CNFProvider.js +2 -0
  203. package/lib/module/context/CNFProvider.js.map +1 -0
  204. package/lib/module/context/EventHandlerProvider.js +15 -0
  205. package/lib/module/context/EventHandlerProvider.js.map +1 -0
  206. package/lib/module/context/ThemeProvider.js +49 -0
  207. package/lib/module/context/ThemeProvider.js.map +1 -0
  208. package/lib/module/deps/configuration.js +2 -0
  209. package/lib/module/deps/configuration.js.map +1 -0
  210. package/lib/module/index.js +2 -0
  211. package/lib/module/index.js.map +1 -0
  212. package/lib/module/pageData.js +86 -0
  213. package/lib/module/pageData.js.map +1 -0
  214. package/lib/module/services/getDynamicOffers.js +48 -0
  215. package/lib/module/services/getDynamicOffers.js.map +1 -0
  216. package/lib/module/services/getProductTypes.js +43 -0
  217. package/lib/module/services/getProductTypes.js.map +1 -0
  218. package/lib/module/services/getProductTypesByQuery.js +48 -0
  219. package/lib/module/services/getProductTypesByQuery.js.map +1 -0
  220. package/lib/module/utils/addClientTagsToOfferLinks.js +18 -0
  221. package/lib/module/utils/addClientTagsToOfferLinks.js.map +1 -0
  222. package/lib/module/utils/formatOfferUrl.js +25 -0
  223. package/lib/module/utils/formatOfferUrl.js.map +1 -0
  224. package/lib/module/utils/getDefaultPaletteColor.js +13 -0
  225. package/lib/module/utils/getDefaultPaletteColor.js.map +1 -0
  226. package/lib/module/utils/getDefaultProductType.js +2 -0
  227. package/lib/module/utils/getDefaultProductType.js.map +1 -0
  228. package/lib/module/utils/getEnableUseCachedOffers.js +14 -0
  229. package/lib/module/utils/getEnableUseCachedOffers.js.map +1 -0
  230. package/lib/module/utils/getOffersBasedOnLayout.js +39 -0
  231. package/lib/module/utils/getOffersBasedOnLayout.js.map +1 -0
  232. package/lib/module/utils/getOffersByProductTypes.js +24 -0
  233. package/lib/module/utils/getOffersByProductTypes.js.map +1 -0
  234. package/lib/module/utils/getProductTypesDefinition.js +10 -0
  235. package/lib/module/utils/getProductTypesDefinition.js.map +1 -0
  236. package/lib/module/utils/index.js +11 -0
  237. package/lib/module/utils/index.js.map +1 -0
  238. package/lib/module/utils/layouts.js +20 -0
  239. package/lib/module/utils/layouts.js.map +1 -0
  240. package/lib/module/utils/parseStringProductTypes.js +7 -0
  241. package/lib/module/utils/parseStringProductTypes.js.map +1 -0
  242. package/lib/module/utils/resolveProductTypes.js +5 -0
  243. package/lib/module/utils/resolveProductTypes.js.map +1 -0
  244. package/lib/module/utils/selectDynamicOffers.js +6 -0
  245. package/lib/module/utils/selectDynamicOffers.js.map +1 -0
  246. package/lib/module/utils/sortOffersByRecommendationScore.js +5 -0
  247. package/lib/module/utils/sortOffersByRecommendationScore.js.map +1 -0
  248. package/lib/module/version.js +3 -0
  249. package/lib/module/version.js.map +1 -0
  250. package/lib/typescript/builder/builder.d.ts +24 -0
  251. package/lib/typescript/builder/builder.d.ts.map +1 -0
  252. package/lib/typescript/builder/config/types.d.ts +89 -0
  253. package/lib/typescript/builder/config/types.d.ts.map +1 -0
  254. package/lib/typescript/builder/index.d.ts +3 -0
  255. package/lib/typescript/builder/index.d.ts.map +1 -0
  256. package/lib/typescript/capabilities/configuration/src/brands/checkVisualEligibility.d.ts +12 -0
  257. package/lib/typescript/capabilities/configuration/src/brands/checkVisualEligibility.d.ts.map +1 -0
  258. package/lib/typescript/capabilities/configuration/src/brands/createDerivedBrands.d.ts +9 -0
  259. package/lib/typescript/capabilities/configuration/src/brands/createDerivedBrands.d.ts.map +1 -0
  260. package/lib/typescript/capabilities/configuration/src/brands/index.d.ts +3 -0
  261. package/lib/typescript/capabilities/configuration/src/brands/index.d.ts.map +1 -0
  262. package/lib/typescript/capabilities/configuration/src/brands/types.d.ts +4 -0
  263. package/lib/typescript/capabilities/configuration/src/brands/types.d.ts.map +1 -0
  264. package/lib/typescript/capabilities/core/src/domain/third-party-search/index.d.ts +2 -0
  265. package/lib/typescript/capabilities/core/src/domain/third-party-search/index.d.ts.map +1 -0
  266. package/lib/typescript/capabilities/core/src/domain/third-party-search/orderProductTypesByRankUtils.d.ts +19 -0
  267. package/lib/typescript/capabilities/core/src/domain/third-party-search/orderProductTypesByRankUtils.d.ts.map +1 -0
  268. package/lib/typescript/capabilities/core/src/index.d.ts +2 -0
  269. package/lib/typescript/capabilities/core/src/index.d.ts.map +1 -0
  270. package/lib/typescript/capabilities/core/src/system/cnfContext/CnfContext.d.ts +103 -0
  271. package/lib/typescript/capabilities/core/src/system/cnfContext/CnfContext.d.ts.map +1 -0
  272. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/App.d.ts +13 -0
  273. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/App.d.ts.map +1 -0
  274. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Brand.d.ts +180 -0
  275. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Brand.d.ts.map +1 -0
  276. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Configuration.d.ts +59 -0
  277. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Configuration.d.ts.map +1 -0
  278. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Request.d.ts +16 -0
  279. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Request.d.ts.map +1 -0
  280. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Session.d.ts +8 -0
  281. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Session.d.ts.map +1 -0
  282. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Signals.d.ts +64 -0
  283. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Signals.d.ts.map +1 -0
  284. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Subaccount.d.ts +18 -0
  285. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Subaccount.d.ts.map +1 -0
  286. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/index.d.ts +8 -0
  287. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/index.d.ts.map +1 -0
  288. package/lib/typescript/capabilities/offer-catalog/src/api/offerCatalogApi.d.ts +5 -0
  289. package/lib/typescript/capabilities/offer-catalog/src/api/offerCatalogApi.d.ts.map +1 -0
  290. package/lib/typescript/capabilities/offer-catalog/src/index.d.ts +6 -0
  291. package/lib/typescript/capabilities/offer-catalog/src/index.d.ts.map +1 -0
  292. package/lib/typescript/capabilities/offer-catalog/src/types/offerCatalogSchema.d.ts +91 -0
  293. package/lib/typescript/capabilities/offer-catalog/src/types/offerCatalogSchema.d.ts.map +1 -0
  294. package/lib/typescript/capabilities/offer-catalog/src/utils/arrayToMarkdownList.d.ts +2 -0
  295. package/lib/typescript/capabilities/offer-catalog/src/utils/arrayToMarkdownList.d.ts.map +1 -0
  296. package/lib/typescript/capabilities/offer-catalog/src/utils/contextUtil.d.ts +8 -0
  297. package/lib/typescript/capabilities/offer-catalog/src/utils/contextUtil.d.ts.map +1 -0
  298. package/lib/typescript/capabilities/offer-catalog/src/utils/errorUtil.d.ts +6 -0
  299. package/lib/typescript/capabilities/offer-catalog/src/utils/errorUtil.d.ts.map +1 -0
  300. package/lib/typescript/capabilities/offer-catalog/src/utils/formatUtils.d.ts +68 -0
  301. package/lib/typescript/capabilities/offer-catalog/src/utils/formatUtils.d.ts.map +1 -0
  302. package/lib/typescript/capabilities/offer-catalog/src/utils/getOfferUrl.d.ts +24 -0
  303. package/lib/typescript/capabilities/offer-catalog/src/utils/getOfferUrl.d.ts.map +1 -0
  304. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/annualFee.d.ts +13 -0
  305. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/annualFee.d.ts.map +1 -0
  306. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/boolean.d.ts +11 -0
  307. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/boolean.d.ts.map +1 -0
  308. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.d.ts +1 -0
  309. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.d.ts.map +1 -0
  310. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/common.d.ts +14 -0
  311. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/common.d.ts.map +1 -0
  312. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/common.spec.d.ts +1 -0
  313. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/common.spec.d.ts.map +1 -0
  314. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.d.ts +9 -0
  315. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.d.ts.map +1 -0
  316. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.d.ts +1 -0
  317. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.d.ts.map +1 -0
  318. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/currency.d.ts +10 -0
  319. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/currency.d.ts.map +1 -0
  320. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.d.ts +12 -0
  321. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.d.ts.map +1 -0
  322. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.d.ts +1 -0
  323. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.d.ts.map +1 -0
  324. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.d.ts +9 -0
  325. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.d.ts.map +1 -0
  326. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.d.ts +1 -0
  327. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.d.ts.map +1 -0
  328. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.d.ts +9 -0
  329. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.d.ts.map +1 -0
  330. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.d.ts +1 -0
  331. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.d.ts.map +1 -0
  332. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/index.d.ts +20 -0
  333. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/index.d.ts.map +1 -0
  334. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.d.ts +11 -0
  335. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.d.ts.map +1 -0
  336. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.d.ts +1 -0
  337. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.d.ts.map +1 -0
  338. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/percentage.d.ts +9 -0
  339. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/percentage.d.ts.map +1 -0
  340. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/percentage.spec.d.ts +1 -0
  341. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/percentage.spec.d.ts.map +1 -0
  342. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.d.ts +12 -0
  343. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.d.ts.map +1 -0
  344. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.d.ts +1 -0
  345. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.d.ts.map +1 -0
  346. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrency.d.ts +10 -0
  347. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrency.d.ts.map +1 -0
  348. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.d.ts +12 -0
  349. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.d.ts.map +1 -0
  350. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.d.ts +1 -0
  351. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.d.ts.map +1 -0
  352. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.d.ts +10 -0
  353. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.d.ts.map +1 -0
  354. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.d.ts +1 -0
  355. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.d.ts.map +1 -0
  356. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.d.ts +10 -0
  357. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.d.ts.map +1 -0
  358. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.d.ts +1 -0
  359. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.d.ts.map +1 -0
  360. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.d.ts +11 -0
  361. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.d.ts.map +1 -0
  362. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.spec.d.ts +1 -0
  363. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.spec.d.ts.map +1 -0
  364. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.d.ts +9 -0
  365. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.d.ts.map +1 -0
  366. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.d.ts +1 -0
  367. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.d.ts.map +1 -0
  368. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.d.ts +9 -0
  369. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.d.ts.map +1 -0
  370. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.d.ts +1 -0
  371. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.d.ts.map +1 -0
  372. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/index.d.ts +5 -0
  373. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/index.d.ts.map +1 -0
  374. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/types.d.ts +9 -0
  375. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/types.d.ts.map +1 -0
  376. package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/index.d.ts +4 -0
  377. package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/index.d.ts.map +1 -0
  378. package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/oas/offer-catalog.d.ts +1837 -0
  379. package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/oas/offer-catalog.d.ts.map +1 -0
  380. package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/types/index.d.ts +5 -0
  381. package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/types/index.d.ts.map +1 -0
  382. package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/withDeviceSignals.d.ts +208 -0
  383. package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/withDeviceSignals.d.ts.map +1 -0
  384. package/lib/typescript/capabilities/offers/ux/src/elements/Stat/HyphenIcon.d.ts +7 -0
  385. package/lib/typescript/capabilities/offers/ux/src/elements/Stat/HyphenIcon.d.ts.map +1 -0
  386. package/lib/typescript/capabilities/offers/ux/src/elements/Stat/Stat.d.ts +12 -0
  387. package/lib/typescript/capabilities/offers/ux/src/elements/Stat/Stat.d.ts.map +1 -0
  388. package/lib/typescript/capabilities/offers/ux/src/elements/Stat/index.d.ts +2 -0
  389. package/lib/typescript/capabilities/offers/ux/src/elements/Stat/index.d.ts.map +1 -0
  390. package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/Abbreviation.d.ts +5 -0
  391. package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/Abbreviation.d.ts.map +1 -0
  392. package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/components.d.ts +9 -0
  393. package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/components.d.ts.map +1 -0
  394. package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/index.d.ts +7 -0
  395. package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/index.d.ts.map +1 -0
  396. package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/markdownPreprocessor.d.ts +2 -0
  397. package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/markdownPreprocessor.d.ts.map +1 -0
  398. package/lib/typescript/capabilities/ui/elements/src/components/index.d.ts +2 -0
  399. package/lib/typescript/capabilities/ui/elements/src/components/index.d.ts.map +1 -0
  400. package/lib/typescript/capabilities/ui/elements/src/components/thumbor/index.d.ts +10 -0
  401. package/lib/typescript/capabilities/ui/elements/src/components/thumbor/index.d.ts.map +1 -0
  402. package/lib/typescript/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.d.ts +14 -0
  403. package/lib/typescript/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.d.ts.map +1 -0
  404. package/lib/typescript/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.test.d.ts +1 -0
  405. package/lib/typescript/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.test.d.ts.map +1 -0
  406. package/lib/typescript/capabilities/ui/elements/src/index.d.ts +3 -0
  407. package/lib/typescript/capabilities/ui/elements/src/index.d.ts.map +1 -0
  408. package/lib/typescript/capabilities/ui/elements/src/offerCardAttributes.d.ts +10 -0
  409. package/lib/typescript/capabilities/ui/elements/src/offerCardAttributes.d.ts.map +1 -0
  410. package/lib/typescript/config/mocks/cnfContext.d.ts +3 -0
  411. package/lib/typescript/config/mocks/cnfContext.d.ts.map +1 -0
  412. package/lib/typescript/src/apiEnvironment.d.ts +13 -0
  413. package/lib/typescript/src/apiEnvironment.d.ts.map +1 -0
  414. package/lib/typescript/src/components/Button/index.d.ts +15 -0
  415. package/lib/typescript/src/components/Button/index.d.ts.map +1 -0
  416. package/lib/typescript/src/components/Cards/VideosCard/VideoContent.d.ts +9 -0
  417. package/lib/typescript/src/components/Cards/VideosCard/VideoContent.d.ts.map +1 -0
  418. package/lib/typescript/src/components/Cards/VideosCard/VideosCard.d.ts +1 -0
  419. package/lib/typescript/src/components/Cards/VideosCard/VideosCard.d.ts.map +1 -0
  420. package/lib/typescript/src/components/Cards/index.d.ts +1 -0
  421. package/lib/typescript/src/components/Cards/index.d.ts.map +1 -0
  422. package/lib/typescript/src/components/Common/BaseOfferCard/Content/Content.d.ts +4 -0
  423. package/lib/typescript/src/components/Common/BaseOfferCard/Content/Content.d.ts.map +1 -0
  424. package/lib/typescript/src/components/Common/BaseOfferCard/Content/index.d.ts +2 -0
  425. package/lib/typescript/src/components/Common/BaseOfferCard/Content/index.d.ts.map +1 -0
  426. package/lib/typescript/src/components/Common/BaseOfferCard/Stat/Stat.d.ts +8 -0
  427. package/lib/typescript/src/components/Common/BaseOfferCard/Stat/Stat.d.ts.map +1 -0
  428. package/lib/typescript/src/components/Common/BaseOfferCard/Stat/index.d.ts +2 -0
  429. package/lib/typescript/src/components/Common/BaseOfferCard/Stat/index.d.ts.map +1 -0
  430. package/lib/typescript/src/components/Common/BaseOfferCard/StatsContainer/StatsContainer.d.ts +4 -0
  431. package/lib/typescript/src/components/Common/BaseOfferCard/StatsContainer/StatsContainer.d.ts.map +1 -0
  432. package/lib/typescript/src/components/Common/BaseOfferCard/StatsContainer/index.d.ts +2 -0
  433. package/lib/typescript/src/components/Common/BaseOfferCard/StatsContainer/index.d.ts.map +1 -0
  434. package/lib/typescript/src/components/Common/BaseOfferCard/ThumbsUpIcon.d.ts +3 -0
  435. package/lib/typescript/src/components/Common/BaseOfferCard/ThumbsUpIcon.d.ts.map +1 -0
  436. package/lib/typescript/src/components/Common/BaseOfferCard/index.d.ts +42 -0
  437. package/lib/typescript/src/components/Common/BaseOfferCard/index.d.ts.map +1 -0
  438. package/lib/typescript/src/components/Common/DynamicOfferCard/CallToAction.d.ts +13 -0
  439. package/lib/typescript/src/components/Common/DynamicOfferCard/CallToAction.d.ts.map +1 -0
  440. package/lib/typescript/src/components/Common/DynamicOfferCard/SeeMore.d.ts +8 -0
  441. package/lib/typescript/src/components/Common/DynamicOfferCard/SeeMore.d.ts.map +1 -0
  442. package/lib/typescript/src/components/Common/DynamicOfferCard/index.d.ts +12 -0
  443. package/lib/typescript/src/components/Common/DynamicOfferCard/index.d.ts.map +1 -0
  444. package/lib/typescript/src/components/Common/index.d.ts +4 -0
  445. package/lib/typescript/src/components/Common/index.d.ts.map +1 -0
  446. package/lib/typescript/src/components/Divider/index.d.ts +16 -0
  447. package/lib/typescript/src/components/Divider/index.d.ts.map +1 -0
  448. package/lib/typescript/src/components/DynamicOffers/DynamicOffers.d.ts +12 -0
  449. package/lib/typescript/src/components/DynamicOffers/DynamicOffers.d.ts.map +1 -0
  450. package/lib/typescript/src/components/DynamicOffers/DynamicOffersContainer.d.ts +10 -0
  451. package/lib/typescript/src/components/DynamicOffers/DynamicOffersContainer.d.ts.map +1 -0
  452. package/lib/typescript/src/components/DynamicOffers/Render/DynamicOffersRender.d.ts +19 -0
  453. package/lib/typescript/src/components/DynamicOffers/Render/DynamicOffersRender.d.ts.map +1 -0
  454. package/lib/typescript/src/components/DynamicOffers/Render/FallbackOfferTemplate.d.ts +9 -0
  455. package/lib/typescript/src/components/DynamicOffers/Render/FallbackOfferTemplate.d.ts.map +1 -0
  456. package/lib/typescript/src/components/DynamicOffers/Render/Offer.d.ts +17 -0
  457. package/lib/typescript/src/components/DynamicOffers/Render/Offer.d.ts.map +1 -0
  458. package/lib/typescript/src/components/DynamicOffers/Render/index.d.ts +3 -0
  459. package/lib/typescript/src/components/DynamicOffers/Render/index.d.ts.map +1 -0
  460. package/lib/typescript/src/components/Layouts/CreditCardOfferCard/index.d.ts +13 -0
  461. package/lib/typescript/src/components/Layouts/CreditCardOfferCard/index.d.ts.map +1 -0
  462. package/lib/typescript/src/components/Layouts/CreditCardOfferCard/statsBuilder.d.ts +6 -0
  463. package/lib/typescript/src/components/Layouts/CreditCardOfferCard/statsBuilder.d.ts.map +1 -0
  464. package/lib/typescript/src/components/Layouts/DefaultOfferCard/index.d.ts +13 -0
  465. package/lib/typescript/src/components/Layouts/DefaultOfferCard/index.d.ts.map +1 -0
  466. package/lib/typescript/src/components/Layouts/DefaultOfferCard/statsBuilder.d.ts +7 -0
  467. package/lib/typescript/src/components/Layouts/DefaultOfferCard/statsBuilder.d.ts.map +1 -0
  468. package/lib/typescript/src/components/Layouts/HeadlineWithDescriptionCard/index.d.ts +13 -0
  469. package/lib/typescript/src/components/Layouts/HeadlineWithDescriptionCard/index.d.ts.map +1 -0
  470. package/lib/typescript/src/components/Layouts/index.d.ts +4 -0
  471. package/lib/typescript/src/components/Layouts/index.d.ts.map +1 -0
  472. package/lib/typescript/src/components/Modal/DescriptionPoints.d.ts +5 -0
  473. package/lib/typescript/src/components/Modal/DescriptionPoints.d.ts.map +1 -0
  474. package/lib/typescript/src/components/Modal/Disclaimer.d.ts +5 -0
  475. package/lib/typescript/src/components/Modal/Disclaimer.d.ts.map +1 -0
  476. package/lib/typescript/src/components/Modal/OfferDetailsModal.d.ts +11 -0
  477. package/lib/typescript/src/components/Modal/OfferDetailsModal.d.ts.map +1 -0
  478. package/lib/typescript/src/components/MoneyLionOfferCarousel.d.ts +20 -0
  479. package/lib/typescript/src/components/MoneyLionOfferCarousel.d.ts.map +1 -0
  480. package/lib/typescript/src/components/Skeleton/Skeleton.d.ts +12 -0
  481. package/lib/typescript/src/components/Skeleton/Skeleton.d.ts.map +1 -0
  482. package/lib/typescript/src/components/Skeleton/index.d.ts +3 -0
  483. package/lib/typescript/src/components/Skeleton/index.d.ts.map +1 -0
  484. package/lib/typescript/src/components/Text/index.d.ts +17 -0
  485. package/lib/typescript/src/components/Text/index.d.ts.map +1 -0
  486. package/lib/typescript/src/components/View/index.d.ts +23 -0
  487. package/lib/typescript/src/components/View/index.d.ts.map +1 -0
  488. package/lib/typescript/src/context/CNFProvider.d.ts +1 -0
  489. package/lib/typescript/src/context/CNFProvider.d.ts.map +1 -0
  490. package/lib/typescript/src/context/EventHandlerProvider.d.ts +71 -0
  491. package/lib/typescript/src/context/EventHandlerProvider.d.ts.map +1 -0
  492. package/lib/typescript/src/context/ThemeProvider.d.ts +31 -0
  493. package/lib/typescript/src/context/ThemeProvider.d.ts.map +1 -0
  494. package/lib/typescript/src/deps/configuration.d.ts +1 -0
  495. package/lib/typescript/src/deps/configuration.d.ts.map +1 -0
  496. package/lib/typescript/src/index.d.ts +2 -0
  497. package/lib/typescript/src/index.d.ts.map +1 -0
  498. package/lib/typescript/src/pageData.d.ts +19 -0
  499. package/lib/typescript/src/pageData.d.ts.map +1 -0
  500. package/lib/typescript/src/services/getDynamicOffers.d.ts +27 -0
  501. package/lib/typescript/src/services/getDynamicOffers.d.ts.map +1 -0
  502. package/lib/typescript/src/services/getProductTypes.d.ts +19 -0
  503. package/lib/typescript/src/services/getProductTypes.d.ts.map +1 -0
  504. package/lib/typescript/src/services/getProductTypesByQuery.d.ts +28 -0
  505. package/lib/typescript/src/services/getProductTypesByQuery.d.ts.map +1 -0
  506. package/lib/typescript/src/utils/addClientTagsToOfferLinks.d.ts +9 -0
  507. package/lib/typescript/src/utils/addClientTagsToOfferLinks.d.ts.map +1 -0
  508. package/lib/typescript/src/utils/formatOfferUrl.d.ts +64 -0
  509. package/lib/typescript/src/utils/formatOfferUrl.d.ts.map +1 -0
  510. package/lib/typescript/src/utils/getDefaultPaletteColor.d.ts +3 -0
  511. package/lib/typescript/src/utils/getDefaultPaletteColor.d.ts.map +1 -0
  512. package/lib/typescript/src/utils/getDefaultProductType.d.ts +3 -0
  513. package/lib/typescript/src/utils/getDefaultProductType.d.ts.map +1 -0
  514. package/lib/typescript/src/utils/getEnableUseCachedOffers.d.ts +12 -0
  515. package/lib/typescript/src/utils/getEnableUseCachedOffers.d.ts.map +1 -0
  516. package/lib/typescript/src/utils/getOffersBasedOnLayout.d.ts +26 -0
  517. package/lib/typescript/src/utils/getOffersBasedOnLayout.d.ts.map +1 -0
  518. package/lib/typescript/src/utils/getOffersByProductTypes.d.ts +17 -0
  519. package/lib/typescript/src/utils/getOffersByProductTypes.d.ts.map +1 -0
  520. package/lib/typescript/src/utils/getProductTypesDefinition.d.ts +14 -0
  521. package/lib/typescript/src/utils/getProductTypesDefinition.d.ts.map +1 -0
  522. package/lib/typescript/src/utils/index.d.ts +11 -0
  523. package/lib/typescript/src/utils/index.d.ts.map +1 -0
  524. package/lib/typescript/src/utils/layouts.d.ts +19 -0
  525. package/lib/typescript/src/utils/layouts.d.ts.map +1 -0
  526. package/lib/typescript/src/utils/parseStringProductTypes.d.ts +2 -0
  527. package/lib/typescript/src/utils/parseStringProductTypes.d.ts.map +1 -0
  528. package/lib/typescript/src/utils/resolveProductTypes.d.ts +14 -0
  529. package/lib/typescript/src/utils/resolveProductTypes.d.ts.map +1 -0
  530. package/lib/typescript/src/utils/selectDynamicOffers.d.ts +3 -0
  531. package/lib/typescript/src/utils/selectDynamicOffers.d.ts.map +1 -0
  532. package/lib/typescript/src/utils/sortOffersByRecommendationScore.d.ts +3 -0
  533. package/lib/typescript/src/utils/sortOffersByRecommendationScore.d.ts.map +1 -0
  534. package/lib/typescript/src/version.d.ts +2 -0
  535. package/lib/typescript/src/version.d.ts.map +1 -0
  536. package/package.json +139 -0
  537. package/src/apiEnvironment.ts +17 -0
  538. package/src/components/Button/index.tsx +140 -0
  539. package/src/components/Cards/VideosCard/VideoContent.tsx +38 -0
  540. package/src/components/Cards/VideosCard/VideosCard.tsx +54 -0
  541. package/src/components/Cards/index.ts +1 -0
  542. package/src/components/Common/BaseOfferCard/Content/Content.tsx +10 -0
  543. package/src/components/Common/BaseOfferCard/Content/index.tsx +1 -0
  544. package/src/components/Common/BaseOfferCard/Stat/Stat.tsx +91 -0
  545. package/src/components/Common/BaseOfferCard/Stat/index.tsx +1 -0
  546. package/src/components/Common/BaseOfferCard/StatsContainer/StatsContainer.tsx +8 -0
  547. package/src/components/Common/BaseOfferCard/StatsContainer/index.tsx +1 -0
  548. package/src/components/Common/BaseOfferCard/ThumbsUpIcon.tsx +27 -0
  549. package/src/components/Common/BaseOfferCard/index.tsx +282 -0
  550. package/src/components/Common/DynamicOfferCard/CallToAction.tsx +47 -0
  551. package/src/components/Common/DynamicOfferCard/SeeMore.tsx +76 -0
  552. package/src/components/Common/DynamicOfferCard/index.tsx +64 -0
  553. package/src/components/Common/index.ts +3 -0
  554. package/src/components/Divider/index.tsx +35 -0
  555. package/src/components/DynamicOffers/DynamicOffers.tsx +46 -0
  556. package/src/components/DynamicOffers/DynamicOffersContainer.tsx +41 -0
  557. package/src/components/DynamicOffers/Render/DynamicOffersRender.tsx +261 -0
  558. package/src/components/DynamicOffers/Render/FallbackOfferTemplate.tsx +29 -0
  559. package/src/components/DynamicOffers/Render/Offer.tsx +100 -0
  560. package/src/components/DynamicOffers/Render/index.ts +2 -0
  561. package/src/components/Layouts/CreditCardOfferCard/index.tsx +96 -0
  562. package/src/components/Layouts/CreditCardOfferCard/statsBuilder.tsx +10 -0
  563. package/src/components/Layouts/DefaultOfferCard/index.tsx +72 -0
  564. package/src/components/Layouts/DefaultOfferCard/statsBuilder.tsx +14 -0
  565. package/src/components/Layouts/HeadlineWithDescriptionCard/index.tsx +59 -0
  566. package/src/components/Layouts/index.ts +3 -0
  567. package/src/components/Modal/DescriptionPoints.tsx +24 -0
  568. package/src/components/Modal/Disclaimer.tsx +15 -0
  569. package/src/components/Modal/OfferDetailsModal.tsx +111 -0
  570. package/src/components/MoneyLionOfferCarousel.tsx +202 -0
  571. package/src/components/Skeleton/Skeleton.tsx +86 -0
  572. package/src/components/Skeleton/index.ts +2 -0
  573. package/src/components/Text/index.tsx +209 -0
  574. package/src/components/View/index.tsx +144 -0
  575. package/src/context/CNFProvider.tsx +0 -0
  576. package/src/context/EventHandlerProvider.tsx +89 -0
  577. package/src/context/ThemeProvider.tsx +91 -0
  578. package/src/deps/configuration.ts +0 -0
  579. package/src/index.tsx +1 -0
  580. package/src/pageData.ts +98 -0
  581. package/src/services/getDynamicOffers.ts +93 -0
  582. package/src/services/getProductTypes.ts +53 -0
  583. package/src/services/getProductTypesByQuery.ts +53 -0
  584. package/src/utils/addClientTagsToOfferLinks.ts +22 -0
  585. package/src/utils/formatOfferUrl.ts +32 -0
  586. package/src/utils/getDefaultPaletteColor.ts +15 -0
  587. package/src/utils/getDefaultProductType.ts +4 -0
  588. package/src/utils/getEnableUseCachedOffers.ts +13 -0
  589. package/src/utils/getOffersBasedOnLayout.ts +51 -0
  590. package/src/utils/getOffersByProductTypes.ts +36 -0
  591. package/src/utils/getProductTypesDefinition.ts +13 -0
  592. package/src/utils/index.ts +10 -0
  593. package/src/utils/layouts.ts +22 -0
  594. package/src/utils/parseStringProductTypes.ts +7 -0
  595. package/src/utils/resolveProductTypes.ts +18 -0
  596. package/src/utils/selectDynamicOffers.ts +18 -0
  597. package/src/utils/sortOffersByRecommendationScore.ts +6 -0
  598. package/src/version.ts +2 -0
@@ -0,0 +1,155 @@
1
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
+ import React from "react";
3
+ import { View as RNView, StyleSheet } from "react-native";
4
+ const View = ({
5
+ children,
6
+ style,
7
+ backgroundColor,
8
+ borderColor,
9
+ direction,
10
+ height,
11
+ maxHeight,
12
+ minHeight,
13
+ width,
14
+ maxWidth,
15
+ minWidth,
16
+ gap,
17
+ attributes,
18
+ testID,
19
+ ...rest
20
+ }) => {
21
+ var _styles, _styles2;
22
+ // Create a single style object directly - faster than array.filter(Boolean)
23
+ const containerStyles = {
24
+ // Background color handling
25
+ ...(backgroundColor && {
26
+ backgroundColor: ((_styles = styles[`bg${backgroundColor}`]) === null || _styles === void 0 ? void 0 : _styles.backgroundColor) || backgroundColor
27
+ }),
28
+ // Border color handling
29
+ ...(borderColor && {
30
+ borderColor: (borderColor in ["neutral", "positive", "warning", "critical", "primary"] ? (_styles2 = styles[`border${borderColor}`]) === null || _styles2 === void 0 ? void 0 : _styles2.borderColor : undefined) || borderColor
31
+ }),
32
+ // Direction handling
33
+ ...(direction && styles[`direction${direction}`]),
34
+ // Dimension styles - applied only when provided
35
+ ...(height !== undefined && {
36
+ height
37
+ }),
38
+ ...(maxHeight !== undefined && {
39
+ maxHeight
40
+ }),
41
+ ...(minHeight !== undefined && {
42
+ minHeight
43
+ }),
44
+ ...(width !== undefined && {
45
+ width
46
+ }),
47
+ ...(maxWidth !== undefined && {
48
+ maxWidth
49
+ }),
50
+ ...(minWidth !== undefined && {
51
+ minWidth
52
+ }),
53
+ // Spacing
54
+ ...(gap !== undefined && {
55
+ gap
56
+ }),
57
+ // User-provided styles (highest priority)
58
+ ...(style || {})
59
+ };
60
+ return /*#__PURE__*/React.createElement(RNView, _extends({
61
+ style: containerStyles,
62
+ testID: (attributes === null || attributes === void 0 ? void 0 : attributes["data-testid"]) || testID
63
+ }, rest), children);
64
+ };
65
+ const styles = StyleSheet.create({
66
+ "bgneutral": {
67
+ backgroundColor: "#e0e0e0"
68
+ },
69
+ "bgneutral-faded": {
70
+ backgroundColor: "#f5f5f5"
71
+ },
72
+ "bgcritical": {
73
+ backgroundColor: "#f44336"
74
+ },
75
+ "bgcritical-faded": {
76
+ backgroundColor: "#ffebee"
77
+ },
78
+ "bgpositive": {
79
+ backgroundColor: "#4caf50"
80
+ },
81
+ "bgpositive-faded": {
82
+ backgroundColor: "#e8f5e9"
83
+ },
84
+ "bgwarning": {
85
+ backgroundColor: "#ff9800"
86
+ },
87
+ "bgwarning-faded": {
88
+ backgroundColor: "#fff3e0"
89
+ },
90
+ "bgprimary": {
91
+ backgroundColor: "#2196f3"
92
+ },
93
+ "bgprimary-faded": {
94
+ backgroundColor: "#ebfff9"
95
+ },
96
+ "bgelevation-base": {
97
+ backgroundColor: "#fafafa"
98
+ },
99
+ "bgelevation-raised": {
100
+ backgroundColor: "#eeeeee"
101
+ },
102
+ "bgelevation-overlay": {
103
+ backgroundColor: "#bdbdbd"
104
+ },
105
+ "bgpage": {
106
+ backgroundColor: "#ffffff"
107
+ },
108
+ "bgpage-faded": {
109
+ backgroundColor: "#f5f5f5"
110
+ },
111
+ "bgdisabled": {
112
+ backgroundColor: "#bdbdbd"
113
+ },
114
+ "bgdisabled-faded": {
115
+ backgroundColor: "#e0e0e0"
116
+ },
117
+ "bgbrand": {
118
+ backgroundColor: "#6200ea"
119
+ },
120
+ "bgwhite": {
121
+ backgroundColor: "#ffffff"
122
+ },
123
+ "bgblack": {
124
+ backgroundColor: "#000000"
125
+ },
126
+ "borderneutral": {
127
+ borderColor: "#bdbdbd"
128
+ },
129
+ "borderpositive": {
130
+ borderColor: "#388e3c"
131
+ },
132
+ "borderwarning": {
133
+ borderColor: "#f57c00"
134
+ },
135
+ "bordercritical": {
136
+ borderColor: "#d32f2f"
137
+ },
138
+ "borderprimary": {
139
+ borderColor: "#1976d2"
140
+ },
141
+ "directionrow": {
142
+ flexDirection: "row"
143
+ },
144
+ "directionrow-reverse": {
145
+ flexDirection: "row-reverse"
146
+ },
147
+ "directioncolumn": {
148
+ flexDirection: "column"
149
+ },
150
+ "directioncolumn-reverse": {
151
+ flexDirection: "column-reverse"
152
+ }
153
+ });
154
+ export default View;
155
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","View","RNView","StyleSheet","children","style","backgroundColor","borderColor","direction","height","maxHeight","minHeight","width","maxWidth","minWidth","gap","attributes","testID","rest","_styles","_styles2","containerStyles","styles","undefined","createElement","_extends","create","flexDirection"],"sourceRoot":"../../../../src","sources":["components/View/index.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,IAAIC,MAAM,EAAkBC,UAAU,QAAQ,cAAc;AA6CzE,MAAMF,IAAyB,GAAGA,CAAC;EAClCG,QAAQ;EACRC,KAAK;EACLC,eAAe;EACfC,WAAW;EACXC,SAAS;EACTC,MAAM;EACNC,SAAS;EACTC,SAAS;EACTC,KAAK;EACLC,QAAQ;EACRC,QAAQ;EACRC,GAAG;EACHC,UAAU;EACVC,MAAM;EACN,GAAGC;AACJ,CAAC,KAAK;EAAA,IAAAC,OAAA,EAAAC,QAAA;EACL;EACA,MAAMC,eAAoC,GAAG;IAC5C;IACA,IAAIf,eAAe,IAAI;MACtBA,eAAe,EACd,EAAAa,OAAA,GAAAG,MAAM,CAAC,KAAKhB,eAAe,EAAE,CAAC,cAAAa,OAAA,uBAA9BA,OAAA,CAAgCb,eAAe,KAAIA;IACrD,CAAC,CAAC;IAEF;IACA,IAAIC,WAAW,IAAI;MAClBA,WAAW,EACV,CAACA,WAAW,IACZ,CAAC,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,CAAC,IAAAa,QAAA,GACtDE,MAAM,CACN,SAASf,WAAW,EAAiE,CACrF,cAAAa,QAAA,uBAFAA,QAAA,CAEEb,WAAW,GACbgB,SAAS,KAAKhB;IACnB,CAAC,CAAC;IAEF;IACA,IAAIC,SAAS,IAAIc,MAAM,CAAC,YAAYd,SAAS,EAAE,CAAC,CAAC;IAEjD;IACA,IAAIC,MAAM,KAAKc,SAAS,IAAI;MAAEd;IAAO,CAAC,CAAC;IACvC,IAAIC,SAAS,KAAKa,SAAS,IAAI;MAAEb;IAAU,CAAC,CAAC;IAC7C,IAAIC,SAAS,KAAKY,SAAS,IAAI;MAAEZ;IAAU,CAAC,CAAC;IAC7C,IAAIC,KAAK,KAAKW,SAAS,IAAI;MAAEX;IAAM,CAAC,CAAC;IACrC,IAAIC,QAAQ,KAAKU,SAAS,IAAI;MAAEV;IAAS,CAAC,CAAC;IAC3C,IAAIC,QAAQ,KAAKS,SAAS,IAAI;MAAET;IAAS,CAAC,CAAC;IAE3C;IACA,IAAIC,GAAG,KAAKQ,SAAS,IAAI;MAAER;IAAI,CAAC,CAAC;IAEjC;IACA,IAAIV,KAAK,IAAI,CAAC,CAAC;EAChB,CAAC;EAED,oBACCL,KAAA,CAAAwB,aAAA,CAACtB,MAAM,EAAAuB,QAAA;IACNpB,KAAK,EAAEgB,eAAgB;IACvBJ,MAAM,EAAE,CAAAD,UAAU,aAAVA,UAAU,uBAAVA,UAAU,CAAG,aAAa,CAAC,KAAIC;EAAO,GAC1CC,IAAI,GAEPd,QACM,CAAC;AAEX,CAAC;AAED,MAAMkB,MAAM,GAAGnB,UAAU,CAACuB,MAAM,CAAC;EAChC,WAAW,EAAE;IAAEpB,eAAe,EAAE;EAAU,CAAC;EAC3C,iBAAiB,EAAE;IAAEA,eAAe,EAAE;EAAU,CAAC;EACjD,YAAY,EAAE;IAAEA,eAAe,EAAE;EAAU,CAAC;EAC5C,kBAAkB,EAAE;IAAEA,eAAe,EAAE;EAAU,CAAC;EAClD,YAAY,EAAE;IAAEA,eAAe,EAAE;EAAU,CAAC;EAC5C,kBAAkB,EAAE;IAAEA,eAAe,EAAE;EAAU,CAAC;EAClD,WAAW,EAAE;IAAEA,eAAe,EAAE;EAAU,CAAC;EAC3C,iBAAiB,EAAE;IAAEA,eAAe,EAAE;EAAU,CAAC;EACjD,WAAW,EAAE;IAAEA,eAAe,EAAE;EAAU,CAAC;EAC3C,iBAAiB,EAAE;IAAEA,eAAe,EAAE;EAAU,CAAC;EACjD,kBAAkB,EAAE;IAAEA,eAAe,EAAE;EAAU,CAAC;EAClD,oBAAoB,EAAE;IAAEA,eAAe,EAAE;EAAU,CAAC;EACpD,qBAAqB,EAAE;IAAEA,eAAe,EAAE;EAAU,CAAC;EACrD,QAAQ,EAAE;IAAEA,eAAe,EAAE;EAAU,CAAC;EACxC,cAAc,EAAE;IAAEA,eAAe,EAAE;EAAU,CAAC;EAC9C,YAAY,EAAE;IAAEA,eAAe,EAAE;EAAU,CAAC;EAC5C,kBAAkB,EAAE;IAAEA,eAAe,EAAE;EAAU,CAAC;EAClD,SAAS,EAAE;IAAEA,eAAe,EAAE;EAAU,CAAC;EACzC,SAAS,EAAE;IAAEA,eAAe,EAAE;EAAU,CAAC;EACzC,SAAS,EAAE;IAAEA,eAAe,EAAE;EAAU,CAAC;EACzC,eAAe,EAAE;IAAEC,WAAW,EAAE;EAAU,CAAC;EAC3C,gBAAgB,EAAE;IAAEA,WAAW,EAAE;EAAU,CAAC;EAC5C,eAAe,EAAE;IAAEA,WAAW,EAAE;EAAU,CAAC;EAC3C,gBAAgB,EAAE;IAAEA,WAAW,EAAE;EAAU,CAAC;EAC5C,eAAe,EAAE;IAAEA,WAAW,EAAE;EAAU,CAAC;EAC3C,cAAc,EAAE;IAAEoB,aAAa,EAAE;EAAM,CAAC;EACxC,sBAAsB,EAAE;IAAEA,aAAa,EAAE;EAAc,CAAC;EACxD,iBAAiB,EAAE;IAAEA,aAAa,EAAE;EAAS,CAAC;EAC9C,yBAAyB,EAAE;IAAEA,aAAa,EAAE;EAAiB;AAC9D,CAAC,CAAC;AAEF,eAAe1B,IAAI","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=CNFProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["context/CNFProvider.tsx"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,15 @@
1
+ import React, { createContext, useContext } from "react";
2
+ export const EventHandlerContext = /*#__PURE__*/createContext({
3
+ rateTableUuid: "",
4
+ leadUuid: ""
5
+ });
6
+ export const EventHandlerProvider = ({
7
+ children,
8
+ eventHandlers
9
+ }) => {
10
+ return /*#__PURE__*/React.createElement(EventHandlerContext.Provider, {
11
+ value: eventHandlers
12
+ }, children);
13
+ };
14
+ export const useEventHandler = () => useContext(EventHandlerContext);
15
+ //# sourceMappingURL=EventHandlerProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","createContext","useContext","EventHandlerContext","rateTableUuid","leadUuid","EventHandlerProvider","children","eventHandlers","createElement","Provider","value","useEventHandler"],"sourceRoot":"../../../src","sources":["context/EventHandlerProvider.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,aAAa,EAAEC,UAAU,QAAQ,OAAO;AAwExD,OAAO,MAAMC,mBAAmB,gBAAGF,aAAa,CAA0B;EACzEG,aAAa,EAAE,EAAE;EACjBC,QAAQ,EAAE;AACX,CAAC,CAAC;AAEF,OAAO,MAAMC,oBAGX,GAAGA,CAAC;EAAEC,QAAQ;EAAEC;AAAc,CAAC,KAAK;EACrC,oBACCR,KAAA,CAAAS,aAAA,CAACN,mBAAmB,CAACO,QAAQ;IAACC,KAAK,EAAEH;EAAc,GACjDD,QAC4B,CAAC;AAEjC,CAAC;AAED,OAAO,MAAMK,eAAe,GAAGA,CAAA,KAAMV,UAAU,CAACC,mBAAmB,CAAC","ignoreList":[]}
@@ -0,0 +1,49 @@
1
+ import React, { createContext, useContext, useState } from "react";
2
+ import { Platform } from "react-native";
3
+ const defaultFontFamily = {
4
+ regular: Platform.OS === "android" ? "sans-serif" : "System",
5
+ medium: Platform.OS === "android" ? "sans-serif-medium" : "System",
6
+ bold: Platform.OS === "android" ? "sans-serif-bold" : "System"
7
+ };
8
+ export const ThemeContext = /*#__PURE__*/createContext(null);
9
+ export const useTheme = () => {
10
+ const context = useContext(ThemeContext);
11
+ if (!context) {
12
+ throw new Error("useTheme must be used within a ThemeProvider");
13
+ }
14
+ return context;
15
+ };
16
+ export const ThemeProvider = ({
17
+ palette = {},
18
+ // should be safe to assert as ThemePalette since the fallback colors are already handled by the consumers of ThemeProvider
19
+ fontFamily = {},
20
+ children
21
+ }) => {
22
+ const [theme, setTheme] = useState(palette);
23
+ const [fonts, setFonts] = useState({
24
+ ...defaultFontFamily,
25
+ ...fontFamily
26
+ });
27
+ const updateTheme = newTheme => {
28
+ setTheme(prevTheme => ({
29
+ ...prevTheme,
30
+ ...newTheme
31
+ }));
32
+ };
33
+ const updateFontFamily = newFontFamily => {
34
+ setFonts(prevFonts => ({
35
+ ...prevFonts,
36
+ ...newFontFamily
37
+ }));
38
+ };
39
+ const contextValue = {
40
+ theme,
41
+ fontFamily: fonts,
42
+ updateTheme,
43
+ updateFontFamily
44
+ };
45
+ return /*#__PURE__*/React.createElement(ThemeContext.Provider, {
46
+ value: contextValue
47
+ }, children);
48
+ };
49
+ //# sourceMappingURL=ThemeProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","createContext","useContext","useState","Platform","defaultFontFamily","regular","OS","medium","bold","ThemeContext","useTheme","context","Error","ThemeProvider","palette","fontFamily","children","theme","setTheme","fonts","setFonts","updateTheme","newTheme","prevTheme","updateFontFamily","newFontFamily","prevFonts","contextValue","createElement","Provider","value"],"sourceRoot":"../../../src","sources":["context/ThemeProvider.tsx"],"mappings":"AAAA,OAAOA,KAAK,IACXC,aAAa,EAGbC,UAAU,EACVC,QAAQ,QACF,OAAO;AACd,SAASC,QAAQ,QAAQ,cAAc;AAiBvC,MAAMC,iBAA6B,GAAG;EACrCC,OAAO,EAAEF,QAAQ,CAACG,EAAE,KAAK,SAAS,GAAG,YAAY,GAAG,QAAQ;EAC5DC,MAAM,EAAEJ,QAAQ,CAACG,EAAE,KAAK,SAAS,GAAG,mBAAmB,GAAG,QAAQ;EAClEE,IAAI,EAAEL,QAAQ,CAACG,EAAE,KAAK,SAAS,GAAG,iBAAiB,GAAG;AACvD,CAAC;AASD,OAAO,MAAMG,YAAY,gBAAGT,aAAa,CAA0B,IAAI,CAAC;AAExE,OAAO,MAAMU,QAAQ,GAAGA,CAAA,KAAM;EAC7B,MAAMC,OAAO,GAAGV,UAAU,CAACQ,YAAY,CAAC;EACxC,IAAI,CAACE,OAAO,EAAE;IACb,MAAM,IAAIC,KAAK,CAAC,8CAA8C,CAAC;EAChE;EACA,OAAOD,OAAO;AACf,CAAC;AAQD,OAAO,MAAME,aAAqC,GAAGA,CAAC;EACrDC,OAAO,GAAG,CAAC,CAAiB;EAAE;EAC9BC,UAAU,GAAG,CAAC,CAAC;EACfC;AACD,CAAC,KAAK;EACL,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAGhB,QAAQ,CAAeY,OAAO,CAAC;EACzD,MAAM,CAACK,KAAK,EAAEC,QAAQ,CAAC,GAAGlB,QAAQ,CAAa;IAC9C,GAAGE,iBAAiB;IACpB,GAAGW;EACJ,CAAC,CAAC;EAEF,MAAMM,WAAW,GAAIC,QAA+B,IAAK;IACxDJ,QAAQ,CAAEK,SAAS,KAAM;MACxB,GAAGA,SAAS;MACZ,GAAGD;IACJ,CAAC,CAAC,CAAC;EACJ,CAAC;EAED,MAAME,gBAAgB,GAAIC,aAAkC,IAAK;IAChEL,QAAQ,CAAEM,SAAS,KAAM;MACxB,GAAGA,SAAS;MACZ,GAAGD;IACJ,CAAC,CAAC,CAAC;EACJ,CAAC;EAED,MAAME,YAAY,GAAG;IACpBV,KAAK;IACLF,UAAU,EAAEI,KAAK;IACjBE,WAAW;IACXG;EACD,CAAC;EAED,oBACCzB,KAAA,CAAA6B,aAAA,CAACnB,YAAY,CAACoB,QAAQ;IAACC,KAAK,EAAEH;EAAa,GACzCX,QACqB,CAAC;AAE1B,CAAC","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=configuration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["deps/configuration.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export * from "./components/MoneyLionOfferCarousel";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AAAA,cAAc,qCAAqC","ignoreList":[]}
@@ -0,0 +1,86 @@
1
+ import { getIsDevEnvironment } from "../capabilities/offer-catalog/src/utils/contextUtil";
2
+ import { getDynamicOffers } from "./services/getDynamicOffers";
3
+ // import { getDynamicOffers } from "./services/getDynamicOffers";
4
+ import { getDefaultProductType, getLayout, getProductTypesDefinition, resolveProductTypes } from "./utils";
5
+ import { getEnableUseCachedOffers } from "./utils/getEnableUseCachedOffers";
6
+ export async function getPageData({
7
+ context,
8
+ params,
9
+ onRateTableSubmit
10
+ }) {
11
+ const {
12
+ productType,
13
+ query,
14
+ tags,
15
+ displayLayout,
16
+ searchAPIToken,
17
+ showProductTypeLabel
18
+ } = params;
19
+
20
+ // Resolve Tags
21
+ const resolvedTags = `${tags === null || tags === void 0 ? void 0 : tags.trim()}`;
22
+ const enableUseCachedOffers = getEnableUseCachedOffers(context);
23
+ const defaultProductType = getDefaultProductType(context);
24
+
25
+ // TODO: Check if this is needed or if we can remove it
26
+ // const parsedStaticProductTypes = parseStringProductTypes(staticProductTypes);
27
+
28
+ const isDev = getIsDevEnvironment(context);
29
+ const {
30
+ productTypesDefinition,
31
+ partnersOverrideDefinition
32
+ } = getProductTypesDefinition(context);
33
+ const currentCountry = context.signals.deviceSignals.country;
34
+ const safeTags = encodeURI(resolvedTags);
35
+ const safeDisplayLayout = getLayout(displayLayout);
36
+
37
+ // Get product types and result type
38
+ const {
39
+ productTypes,
40
+ resultType
41
+ } = await resolveProductTypes({
42
+ defaultProductType,
43
+ productType,
44
+ query,
45
+ searchAPIToken,
46
+ isDev
47
+ });
48
+ onRateTableSubmit === null || onRateTableSubmit === void 0 || onRateTableSubmit({
49
+ timestamp: new Date().toISOString(),
50
+ productTypes,
51
+ resultType,
52
+ defaultProductType
53
+ });
54
+
55
+ // Get offers
56
+ const {
57
+ offers,
58
+ isError,
59
+ leadUuid,
60
+ rateTableUuid
61
+ } = await getDynamicOffers({
62
+ tags: safeTags,
63
+ displayLayout: safeDisplayLayout,
64
+ productTypes,
65
+ resultType,
66
+ enableUseCachedOffers,
67
+ productTypesDefinition: [...productTypesDefinition],
68
+ partnersOverrideDefinition: [...partnersOverrideDefinition],
69
+ context,
70
+ defaultProductType
71
+ });
72
+ return {
73
+ isError,
74
+ leadUuid,
75
+ rateTableUuid,
76
+ // title,
77
+ offers,
78
+ currentCountry,
79
+ // videosContent,
80
+ // showBorder,
81
+ // shouldHideFooter,
82
+ showProductTypeLabel,
83
+ displayLayout: safeDisplayLayout
84
+ };
85
+ }
86
+ //# sourceMappingURL=pageData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["getIsDevEnvironment","getDynamicOffers","getDefaultProductType","getLayout","getProductTypesDefinition","resolveProductTypes","getEnableUseCachedOffers","getPageData","context","params","onRateTableSubmit","productType","query","tags","displayLayout","searchAPIToken","showProductTypeLabel","resolvedTags","trim","enableUseCachedOffers","defaultProductType","isDev","productTypesDefinition","partnersOverrideDefinition","currentCountry","signals","deviceSignals","country","safeTags","encodeURI","safeDisplayLayout","productTypes","resultType","timestamp","Date","toISOString","offers","isError","leadUuid","rateTableUuid"],"sourceRoot":"../../src","sources":["pageData.ts"],"mappings":"AACA,SAASA,mBAAmB,QAAQ,qDAAqD;AAGzF,SAASC,gBAAgB,QAAQ,6BAA6B;AAC9D;AACA,SACCC,qBAAqB,EACrBC,SAAS,EACTC,yBAAyB,EACzBC,mBAAmB,QACb,SAAS;AAChB,SAASC,wBAAwB,QAAQ,kCAAkC;AAQ3E,OAAO,eAAeC,WAAWA,CAAC;EACjCC,OAAO;EACPC,MAAM;EACNC;AACiB,CAAC,EAAE;EACpB,MAAM;IACLC,WAAW;IACXC,KAAK;IACLC,IAAI;IACJC,aAAa;IACbC,cAAc;IACdC;EACD,CAAC,GAAGP,MAAM;;EAEV;EACA,MAAMQ,YAAY,GAAG,GAAGJ,IAAI,aAAJA,IAAI,uBAAJA,IAAI,CAAEK,IAAI,CAAC,CAAC,EAAE;EAEtC,MAAMC,qBAAqB,GAAGb,wBAAwB,CAACE,OAAO,CAAC;EAE/D,MAAMY,kBAAkB,GAAGlB,qBAAqB,CAACM,OAAO,CAAC;;EAEzD;EACA;;EAEA,MAAMa,KAAK,GAAGrB,mBAAmB,CAACQ,OAAO,CAAC;EAE1C,MAAM;IAAEc,sBAAsB;IAAEC;EAA2B,CAAC,GAC3DnB,yBAAyB,CAACI,OAAO,CAAC;EAEnC,MAAMgB,cAAc,GAAGhB,OAAO,CAACiB,OAAO,CAACC,aAAa,CAACC,OAAO;EAE5D,MAAMC,QAAQ,GAAGC,SAAS,CAACZ,YAAY,CAAC;EAExC,MAAMa,iBAAiB,GAAG3B,SAAS,CAACW,aAAa,CAAC;;EAElD;EACA,MAAM;IAAEiB,YAAY;IAAEC;EAAW,CAAC,GAAG,MAAM3B,mBAAmB,CAAC;IAC9De,kBAAkB;IAClBT,WAAW;IACXC,KAAK;IACLG,cAAc;IACdM;EACD,CAAC,CAAC;EAEFX,iBAAiB,aAAjBA,iBAAiB,eAAjBA,iBAAiB,CAAG;IACnBuB,SAAS,EAAE,IAAIC,IAAI,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC;IACnCJ,YAAY;IACZC,UAAU;IACVZ;EACD,CAAC,CAAC;;EAEF;EACA,MAAM;IAAEgB,MAAM;IAAEC,OAAO;IAAEC,QAAQ;IAAEC;EAAc,CAAC,GAAG,MAAMtC,gBAAgB,CAAC;IAC3EY,IAAI,EAAEe,QAAQ;IACdd,aAAa,EAAEgB,iBAAiB;IAChCC,YAAY;IACZC,UAAU;IACVb,qBAAqB;IACrBG,sBAAsB,EAAE,CAAC,GAAGA,sBAAsB,CAAC;IACnDC,0BAA0B,EAAE,CAAC,GAAGA,0BAA0B,CAAC;IAC3Df,OAAO;IACPY;EACD,CAAC,CAAC;EAEF,OAAO;IACNiB,OAAO;IACPC,QAAQ;IACRC,aAAa;IACb;IACAH,MAAM;IACNZ,cAAc;IACd;IACA;IACA;IACAR,oBAAoB;IACpBF,aAAa,EAAEgB;EAChB,CAAC;AACF","ignoreList":[]}
@@ -0,0 +1,48 @@
1
+ import { isEmpty } from "radash";
2
+ import { addClientTagsToOfferLinks, getOffersByProductTypes, selectDynamicOffers } from "../utils";
3
+ import { sortOffersByRecommendationScore } from "../utils/sortOffersByRecommendationScore";
4
+ import { pipe } from "effect";
5
+ import { formatOfferUrl } from "../utils/formatOfferUrl";
6
+ import { getOffersBasedOnLayout } from "../utils/getOffersBasedOnLayout";
7
+ /**
8
+ * Retrieves dynamic offers based on the provided parameters.
9
+ *
10
+ * @param {GetDynamicOffersProps} params - The parameters for retrieving dynamic offers.
11
+ * @returns {Promise<{ productTypeDisplayName: string; offers: typeof offers }>} An object containing the product type display name and the offers.
12
+ */
13
+ export const getDynamicOffers = async ({
14
+ tags,
15
+ displayLayout,
16
+ defaultProductType,
17
+ productTypes,
18
+ resultType,
19
+ enableUseCachedOffers,
20
+ productTypesDefinition,
21
+ partnersOverrideDefinition,
22
+ context
23
+ }) => {
24
+ // Get the initial offers
25
+ const initialOffersData = await getOffersByProductTypes({
26
+ enableUseCachedOffers,
27
+ productTypes,
28
+ tags,
29
+ context
30
+ });
31
+
32
+ // If no initial offers are returned, get offers for the default product type
33
+ // if initial offers are returned, return them
34
+ const offersData = isEmpty(initialOffersData === null || initialOffersData === void 0 ? void 0 : initialOffersData.offers) ? await getOffersByProductTypes({
35
+ enableUseCachedOffers,
36
+ productTypes: [defaultProductType],
37
+ tags,
38
+ context
39
+ }) : initialOffersData;
40
+ const sortedOffers = resultType === "QUERY" ? selectDynamicOffers(offersData.offers, productTypes) : sortOffersByRecommendationScore(offersData.offers);
41
+ return {
42
+ offers: pipe(sortedOffers, formatOfferUrl(productTypesDefinition, partnersOverrideDefinition), addClientTagsToOfferLinks(enableUseCachedOffers, tags), getOffersBasedOnLayout(displayLayout)),
43
+ isError: offersData.isError,
44
+ leadUuid: offersData.leadUuid,
45
+ rateTableUuid: offersData.uuid
46
+ };
47
+ };
48
+ //# sourceMappingURL=getDynamicOffers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["isEmpty","addClientTagsToOfferLinks","getOffersByProductTypes","selectDynamicOffers","sortOffersByRecommendationScore","pipe","formatOfferUrl","getOffersBasedOnLayout","getDynamicOffers","tags","displayLayout","defaultProductType","productTypes","resultType","enableUseCachedOffers","productTypesDefinition","partnersOverrideDefinition","context","initialOffersData","offersData","offers","sortedOffers","isError","leadUuid","rateTableUuid","uuid"],"sourceRoot":"../../../src","sources":["services/getDynamicOffers.ts"],"mappings":"AAAA,SAASA,OAAO,QAAQ,QAAQ;AAMhC,SACCC,yBAAyB,EACzBC,uBAAuB,EACvBC,mBAAmB,QAEb,UAAU;AAKjB,SAASC,+BAA+B,QAAQ,0CAA0C;AAC1F,SAASC,IAAI,QAAQ,QAAQ;AAC7B,SAASC,cAAc,QAAQ,yBAAyB;AACxD,SAASC,sBAAsB,QAAQ,iCAAiC;AAqBxE;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,gBAAgB,GAAG,MAAAA,CAAO;EACtCC,IAAI;EACJC,aAAa;EACbC,kBAAkB;EAClBC,YAAY;EACZC,UAAU;EACVC,qBAAqB;EACrBC,sBAAsB;EACtBC,0BAA0B;EAC1BC;AACqC,CAAC,KAAK;EAC3C;EACA,MAAMC,iBAAiB,GAAG,MAAMhB,uBAAuB,CAAC;IACvDY,qBAAqB;IACrBF,YAAY;IACZH,IAAI;IACJQ;EACD,CAAC,CAAC;;EAEF;EACA;EACA,MAAME,UAAU,GAAGnB,OAAO,CAACkB,iBAAiB,aAAjBA,iBAAiB,uBAAjBA,iBAAiB,CAAEE,MAAM,CAAC,GAClD,MAAMlB,uBAAuB,CAAC;IAC9BY,qBAAqB;IACrBF,YAAY,EAAE,CAACD,kBAAkB,CAAC;IAClCF,IAAI;IACJQ;EACD,CAAC,CAAC,GACDC,iBAAiB;EAEpB,MAAMG,YAAY,GACjBR,UAAU,KAAK,OAAO,GACnBV,mBAAmB,CAACgB,UAAU,CAACC,MAAM,EAAER,YAAY,CAAC,GACpDR,+BAA+B,CAACe,UAAU,CAACC,MAAM,CAAC;EAEtD,OAAO;IACNA,MAAM,EAAEf,IAAI,CACXgB,YAAY,EACZf,cAAc,CAACS,sBAAsB,EAAEC,0BAA0B,CAAC,EAClEf,yBAAyB,CAACa,qBAAqB,EAAEL,IAAI,CAAC,EACtDF,sBAAsB,CAACG,aAAa,CACrC,CAAC;IACDY,OAAO,EAAEH,UAAU,CAACG,OAAO;IAC3BC,QAAQ,EAAEJ,UAAU,CAACI,QAAQ;IAC7BC,aAAa,EAAEL,UAAU,CAACM;EAC3B,CAAC;AACF,CAAC","ignoreList":[]}
@@ -0,0 +1,43 @@
1
+ import { getProductTypesByQuery } from "./getProductTypesByQuery";
2
+ const parseProductTypes = query => {
3
+ return query.includes(",") ? query.split(",").map(productType => productType.trim()) : [query];
4
+ };
5
+
6
+ /**
7
+ * Get the product types
8
+ * @param props - The properties to get the product types
9
+ * @returns The product types
10
+ */
11
+ export const getProductTypes = async ({
12
+ productType,
13
+ defaultProductType,
14
+ query,
15
+ searchAPIToken,
16
+ isDev
17
+ }) => {
18
+ if (query && query.trim().length > 0) {
19
+ const productTypes = await getProductTypesByQuery({
20
+ query,
21
+ searchAPIToken,
22
+ isDev
23
+ });
24
+ return {
25
+ productTypes,
26
+ resultType: "QUERY"
27
+ };
28
+ }
29
+
30
+ // TODO: Check if need to add support for productType as enf app
31
+ if (productType && productType.trim().length > 0) {
32
+ const productTypes = await parseProductTypes(productType);
33
+ return {
34
+ productTypes,
35
+ resultType: "PRODUCT_TYPE"
36
+ };
37
+ }
38
+ return {
39
+ productTypes: [defaultProductType],
40
+ resultType: "DEFAULT"
41
+ };
42
+ };
43
+ //# sourceMappingURL=getProductTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["getProductTypesByQuery","parseProductTypes","query","includes","split","map","productType","trim","getProductTypes","defaultProductType","searchAPIToken","isDev","length","productTypes","resultType"],"sourceRoot":"../../../src","sources":["services/getProductTypes.ts"],"mappings":"AAAA,SAASA,sBAAsB,QAAQ,0BAA0B;AAiBjE,MAAMC,iBAAiB,GAAIC,KAAa,IAAe;EACtD,OAAOA,KAAK,CAACC,QAAQ,CAAC,GAAG,CAAC,GACvBD,KAAK,CAACE,KAAK,CAAC,GAAG,CAAC,CAACC,GAAG,CAAEC,WAAW,IAAKA,WAAW,CAACC,IAAI,CAAC,CAAC,CAAC,GACzD,CAACL,KAAK,CAAC;AACX,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMM,eAAe,GAAG,MAAAA,CAAO;EACrCF,WAAW;EACXG,kBAAkB;EAClBP,KAAK;EACLQ,cAAc;EACdC;AACqB,CAAC,KAAkC;EACxD,IAAIT,KAAK,IAAIA,KAAK,CAACK,IAAI,CAAC,CAAC,CAACK,MAAM,GAAG,CAAC,EAAE;IACrC,MAAMC,YAAY,GAAG,MAAMb,sBAAsB,CAAC;MACjDE,KAAK;MACLQ,cAAc;MACdC;IACD,CAAC,CAAC;IAEF,OAAO;MAAEE,YAAY;MAAEC,UAAU,EAAE;IAAQ,CAAC;EAC7C;;EAEA;EACA,IAAIR,WAAW,IAAIA,WAAW,CAACC,IAAI,CAAC,CAAC,CAACK,MAAM,GAAG,CAAC,EAAE;IACjD,MAAMC,YAAY,GAAG,MAAMZ,iBAAiB,CAACK,WAAW,CAAC;IACzD,OAAO;MAAEO,YAAY;MAAEC,UAAU,EAAE;IAAe,CAAC;EACpD;EAEA,OAAO;IAAED,YAAY,EAAE,CAACJ,kBAAkB,CAAC;IAAEK,UAAU,EAAE;EAAU,CAAC;AACrE,CAAC","ignoreList":[]}
@@ -0,0 +1,48 @@
1
+ import { pipe } from "effect";
2
+ import { orderProductTypesByRank } from "../../capabilities/core/src/domain/third-party-search";
3
+ import { getEwsSearchApiBaseUrl } from "../apiEnvironment";
4
+ /**
5
+ * Get product types by query
6
+ * @param query {string} - The query to get the product types for
7
+ * @param context The context to get the product types from
8
+ * @returns {Promise<string[]>} The product types
9
+ *
10
+ * @example
11
+ * ```ts
12
+ * const productTypes = await getProductTypesByQuery('best credit cards', {
13
+ * cnfEnv: {
14
+ * THIRD_PARTY_SEARCH_API_URL: 'https://api.third-party-search.com',
15
+ * THIRD_PARTY_SEARCH_API_TOKEN: 'your-token',
16
+ * },
17
+ * thirdPartySearchApiClient: makeThirdPartySearchApiClient,
18
+ * })
19
+ * // productTypes = ['credit-card', 'loan', 'insurance']
20
+ * or
21
+ * // productTypes = []
22
+ * ```
23
+ */
24
+
25
+ export const getProductTypesByQuery = async ({
26
+ query,
27
+ searchAPIToken,
28
+ isDev
29
+ }) => {
30
+ const url = `${getEwsSearchApiBaseUrl(isDev)}/search/product-types?query=${encodeURIComponent(query)}`;
31
+ const headers = {
32
+ Authorization: `Bearer ${searchAPIToken}`
33
+ };
34
+ try {
35
+ const response = await fetch(url, {
36
+ headers
37
+ });
38
+ if (!response.ok) {
39
+ throw new Error();
40
+ }
41
+ const productTypes = await response.json();
42
+ return pipe(productTypes, orderProductTypesByRank);
43
+ } catch (error) {
44
+ console.error("Error fetching ProductTypesByQuery", JSON.stringify(error));
45
+ return [];
46
+ }
47
+ };
48
+ //# sourceMappingURL=getProductTypesByQuery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["pipe","orderProductTypesByRank","getEwsSearchApiBaseUrl","getProductTypesByQuery","query","searchAPIToken","isDev","url","encodeURIComponent","headers","Authorization","response","fetch","ok","Error","productTypes","json","error","console","JSON","stringify"],"sourceRoot":"../../../src","sources":["services/getProductTypesByQuery.ts"],"mappings":"AAAA,SAASA,IAAI,QAAQ,QAAQ;AAC7B,SAASC,uBAAuB,QAAQ,uDAAuD;AAC/F,SAASC,sBAAsB,QAAQ,mBAAmB;AAQ1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAO,MAAMC,sBAAsB,GAAG,MAAAA,CAAO;EAC5CC,KAAK;EACLC,cAAc;EACdC;AAC4B,CAAC,KAAK;EAClC,MAAMC,GAAG,GAAG,GAAGL,sBAAsB,CAACI,KAAK,CAAC,+BAA+BE,kBAAkB,CAACJ,KAAK,CAAC,EAAE;EACtG,MAAMK,OAAO,GAAG;IACfC,aAAa,EAAE,UAAUL,cAAc;EACxC,CAAC;EACD,IAAI;IACH,MAAMM,QAAQ,GAAG,MAAMC,KAAK,CAACL,GAAG,EAAE;MAAEE;IAAQ,CAAC,CAAC;IAC9C,IAAI,CAACE,QAAQ,CAACE,EAAE,EAAE;MACjB,MAAM,IAAIC,KAAK,CAAC,CAAC;IAClB;IACA,MAAMC,YAAY,GAAG,MAAMJ,QAAQ,CAACK,IAAI,CAAC,CAAC;IAE1C,OAAOhB,IAAI,CAACe,YAAY,EAAEd,uBAAuB,CAAC;EACnD,CAAC,CAAC,OAAOgB,KAAK,EAAE;IACfC,OAAO,CAACD,KAAK,CAAC,oCAAoC,EAAEE,IAAI,CAACC,SAAS,CAACH,KAAK,CAAC,CAAC;IAC1E,OAAO,EAAE;EACV;AACD,CAAC","ignoreList":[]}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Add client tags to offer links
3
+ * @param enableUseCachedOffers - Whether to use cached offers
4
+ * @param clientTags - The client tags
5
+ * @returns The offers with the client tags added to the links
6
+ */
7
+ export const addClientTagsToOfferLinks = (enableUseCachedOffers, clientTags) => offers => {
8
+ if (!enableUseCachedOffers) {
9
+ return offers;
10
+ }
11
+ return offers.map(offer => {
12
+ return {
13
+ ...offer,
14
+ url: `${offer.url}?${clientTags}`
15
+ };
16
+ });
17
+ };
18
+ //# sourceMappingURL=addClientTagsToOfferLinks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["addClientTagsToOfferLinks","enableUseCachedOffers","clientTags","offers","map","offer","url"],"sourceRoot":"../../../src","sources":["utils/addClientTagsToOfferLinks.ts"],"mappings":"AAEA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,yBAAyB,GACrCA,CAACC,qBAA8B,EAAEC,UAAkB,KAClDC,MAAmB,IAAkB;EACrC,IAAI,CAACF,qBAAqB,EAAE;IAC3B,OAAOE,MAAM;EACd;EAEA,OAAOA,MAAM,CAACC,GAAG,CAAEC,KAAK,IAAK;IAC5B,OAAO;MACN,GAAGA,KAAK;MACRC,GAAG,EAAE,GAAGD,KAAK,CAACC,GAAG,IAAIJ,UAAU;IAChC,CAAC;EACF,CAAC,CAAC;AACH,CAAC","ignoreList":[]}
@@ -0,0 +1,25 @@
1
+ import { getOfferUrl } from "../../capabilities/offer-catalog/src";
2
+
3
+ /**
4
+ * Format the offer URL
5
+ * @param offers - The offers to format if needed
6
+ * @returns The offers with the formatted URL
7
+ */
8
+ export const formatOfferUrl = (productTypesDefinition, partnersOverrideDefinition) => offers => {
9
+ return offers.map(offer => {
10
+ const {
11
+ url,
12
+ overrideUrl
13
+ } = getOfferUrl({
14
+ offer,
15
+ productTypesDefinition,
16
+ partnersOverrideDefinition
17
+ });
18
+ return {
19
+ ...offer,
20
+ url,
21
+ overrideUrl
22
+ };
23
+ });
24
+ };
25
+ //# sourceMappingURL=formatOfferUrl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["getOfferUrl","formatOfferUrl","productTypesDefinition","partnersOverrideDefinition","offers","map","offer","url","overrideUrl"],"sourceRoot":"../../../src","sources":["utils/formatOfferUrl.ts"],"mappings":"AAAA,SACCA,WAAW,QAIL,sCAAsC;;AAE7C;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,cAAc,GAC1BA,CACCC,sBAA+C,EAC/CC,0BAA6C,KAE7CC,MAAmB,IAAK;EACxB,OAAOA,MAAM,CAACC,GAAG,CAAEC,KAAK,IAAK;IAC5B,MAAM;MAAEC,GAAG;MAAEC;IAAY,CAAC,GAAGR,WAAW,CAAC;MACxCM,KAAK;MACLJ,sBAAsB;MACtBC;IACD,CAAC,CAAC;IAEF,OAAO;MACN,GAAGG,KAAK;MACRC,GAAG;MACHC;IACD,CAAC;EACF,CAAC,CAAC;AACH,CAAC","ignoreList":[]}
@@ -0,0 +1,13 @@
1
+ export const getDefaultPaletteColor = colorKey => {
2
+ const defaultColors = {
3
+ positive: "#00E5C4"
4
+ // promotional: "#FFD700",
5
+ // generation: "#4CAF50",
6
+ // colorScheme: "#9E9E9E",
7
+ // critical: "#FF0000",
8
+ // highlight: "#FFA500",
9
+ // neutral: "#808080",
10
+ };
11
+ return defaultColors[colorKey] ?? "#000000"; // subject to change
12
+ };
13
+ //# sourceMappingURL=getDefaultPaletteColor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["getDefaultPaletteColor","colorKey","defaultColors","positive"],"sourceRoot":"../../../src","sources":["utils/getDefaultPaletteColor.ts"],"mappings":"AAEA,OAAO,MAAMA,sBAAsB,GAAIC,QAAgB,IAAa;EACnE,MAAMC,aAA8C,GAAG;IACtDC,QAAQ,EAAE;IACV;IACA;IACA;IACA;IACA;IACA;EACD,CAAC;EAED,OAAOD,aAAa,CAACD,QAAQ,CAAC,IAAI,SAAS,CAAC,CAAC;AAC9C,CAAC","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export const getDefaultProductType = context => context.configuration.configuration.defaultProductTypeSlug;
2
+ //# sourceMappingURL=getDefaultProductType.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["getDefaultProductType","context","configuration","defaultProductTypeSlug"],"sourceRoot":"../../../src","sources":["utils/getDefaultProductType.ts"],"mappings":"AAEA,OAAO,MAAMA,qBAAqB,GAAIC,OAAmB,IACxDA,OAAO,CAACC,aAAa,CAACA,aAAa,CAACC,sBAAsB","ignoreList":[]}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Get enabled cache offers request
3
+ *
4
+ * @param {DynamicOffersContext} cnfContext - The context object
5
+ * @returns {boolean} - The enabled cache offers request
6
+ *
7
+ * @description
8
+ * This function is used to get the enabled cache offers request from payload cms configuration
9
+ */
10
+ export const getEnableUseCachedOffers = context => {
11
+ var _context$configuratio;
12
+ return (_context$configuratio = context.configuration.configuration) === null || _context$configuratio === void 0 ? void 0 : _context$configuratio.enableUseCachedOffers;
13
+ };
14
+ //# sourceMappingURL=getEnableUseCachedOffers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["getEnableUseCachedOffers","context","_context$configuratio","configuration","enableUseCachedOffers"],"sourceRoot":"../../../src","sources":["utils/getEnableUseCachedOffers.ts"],"mappings":"AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,wBAAwB,GAAIC,OAAmB;EAAA,IAAAC,qBAAA;EAAA,QAAAA,qBAAA,GAC3DD,OAAO,CAACE,aAAa,CAACA,aAAa,cAAAD,qBAAA,uBAAnCA,qBAAA,CAAqCE,qBAAqB;AAAA","ignoreList":[]}
@@ -0,0 +1,39 @@
1
+ import { pipe } from "effect";
2
+ import { sortOffersByRecommendationScore } from "./sortOffersByRecommendationScore";
3
+ const MAX_OFFERS_TO_DISPLAY = 3;
4
+
5
+ /**
6
+ * Sorts the offers based on the layout.
7
+ *
8
+ * @param offers - The offers to sort.
9
+ * @returns The sorted offers.
10
+ */
11
+ export const sortFixedOffers = offers => {
12
+ const resultOffers = Array.from({
13
+ length: offers.length >= MAX_OFFERS_TO_DISPLAY ? MAX_OFFERS_TO_DISPLAY : offers.length
14
+ }, (_, index) => offers[index % offers.length]).filter(offer => offer !== undefined);
15
+ return resultOffers;
16
+ };
17
+
18
+ /**
19
+ * Gets the offers based on the layout.
20
+ *
21
+ * @param layout - The layout to get the offers for.
22
+ * @param offers - The offers to get.
23
+ * @returns The offers.
24
+ */
25
+ export const getOffersByLayout = layout => offers => {
26
+ return layout === "carousel" ? sortOffersByRecommendationScore(offers) : sortFixedOffers(offers);
27
+ };
28
+
29
+ /**
30
+ * Gets the offers based on the layout.
31
+ *
32
+ * @param layout - The layout to get the offers for.
33
+ * @param offers - The offers to get.
34
+ * @returns The offers.
35
+ */
36
+ export const getOffersBasedOnLayout = layout => offers => {
37
+ return pipe(offers, getOffersByLayout(layout));
38
+ };
39
+ //# sourceMappingURL=getOffersBasedOnLayout.js.map