@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 @@
1
+ {"version":3,"names":["React","BaseOfferCard","CallToAction","StyleSheet","DynamicOfferCard","children","offer","offerIndex","showBorder","showProductTypeLabel","createElement","TopBar","ProductType","productDisplayName","Container","PartnerContainer","PartnerImage","src","financialInstitutionImageUrl","alt","financialInstitutionDisplayName","Content","BottomBar","overrideUrl","style","styles","cta","context","create","marginTop"],"sourceRoot":"../../../../../src","sources":["components/Common/DynamicOfferCard/index.tsx"],"mappings":"AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,aAAa,QAAQ,kBAAkB;AAChD,SAASC,YAAY,QAAQ,gBAAgB;AAC7C,SAASC,UAAU,QAAQ,cAAc;AAUzC,SAASC,gBAAgBA,CAAC;EACzBC,QAAQ;EACRC,KAAK;EACLC,UAAU;EACVC,UAAU;EACVC;AAC6B,CAAC,EAAE;EAChC,oBACCT,KAAA,CAAAU,aAAA,CAACT,aAAa;IAACO,UAAU,EAAEA;EAAW,GACpCC,oBAAoB,iBACpBT,KAAA,CAAAU,aAAA,CAACT,aAAa,CAACU,MAAM,qBACpBX,KAAA,CAAAU,aAAA,CAACT,aAAa,CAACW,WAAW,QACxBN,KAAK,CAACO,kBACmB,CACN,CACtB,eACDb,KAAA,CAAAU,aAAA,CAACT,aAAa,CAACa,SAAS,qBACvBd,KAAA,CAAAU,aAAA,CAACT,aAAa,CAACc,gBAAgB,qBAC9Bf,KAAA,CAAAU,aAAA,CAACT,aAAa,CAACe,YAAY;IAC1BC,GAAG,EAAEX,KAAK,CAACY,4BAA6B;IACxCC,GAAG,EAAEb,KAAK,CAACc;EAAgC,CAC3C,CAAC,eACFpB,KAAA,CAAAU,aAAA,CAACT,aAAa,CAACoB,OAAO,QAAEhB,QAAgC,CACzB,CAAC,eAEjCL,KAAA,CAAAU,aAAA,CAACT,aAAa,CAACqB,SAAS,qBACvBtB,KAAA,CAAAU,aAAA,CAACR,YAAY;IACZI,KAAK,EAAEA,KAAM;IACbiB,WAAW,EAAEjB,KAAK,CAACiB,WAAY;IAC/BC,KAAK,EAAEC,MAAM,CAACC,GAAI;IAClBC,OAAO,EAAC,OAAO;IACfpB,UAAU,EAAEA;EAAW,GAEtB,UACY,CAKU,CACD,CACX,CAAC;AAElB;AAEA,SAASH,gBAAgB;AAEzB,MAAMqB,MAAM,GAAGtB,UAAU,CAACyB,MAAM,CAAC;EAChCF,GAAG,EAAE;IAAEG,SAAS,EAAE;EAAG;AACtB,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,4 @@
1
+ export { SeeMore } from "./DynamicOfferCard/SeeMore";
2
+ export { DynamicOfferCard } from "./DynamicOfferCard";
3
+ export { BaseOfferCard } from "./BaseOfferCard";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["SeeMore","DynamicOfferCard","BaseOfferCard"],"sourceRoot":"../../../../src","sources":["components/Common/index.ts"],"mappings":"AAAA,SAASA,OAAO,QAAQ,4BAA4B;AACpD,SAASC,gBAAgB,QAAQ,oBAAoB;AACrD,SAASC,aAAa,QAAQ,iBAAiB","ignoreList":[]}
@@ -0,0 +1,33 @@
1
+ import React from "react";
2
+ import { View, StyleSheet } from "react-native";
3
+
4
+ /**
5
+ * A simple horizontal divider component for React Native.
6
+ * @param {Object} props - Component props
7
+ * @param {string} [props.color] - Optional color for the divider (defaults to a neutral border color)
8
+ * @param {Object} [props.style] - Optional additional styles
9
+ * @returns {JSX.Element} - Rendered divider
10
+ */
11
+
12
+ const Divider = ({
13
+ color,
14
+ style
15
+ }) => {
16
+ return /*#__PURE__*/React.createElement(View, {
17
+ style: [styles.divider, color ? {
18
+ backgroundColor: color
19
+ } : null, style],
20
+ accessible: true
21
+ });
22
+ };
23
+ const styles = StyleSheet.create({
24
+ divider: {
25
+ height: 1,
26
+ width: "100%",
27
+ backgroundColor: "#E0E0E0",
28
+ // Default neutral border color
29
+ marginVertical: 12
30
+ }
31
+ });
32
+ export default Divider;
33
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","View","StyleSheet","Divider","color","style","createElement","styles","divider","backgroundColor","accessible","create","height","width","marginVertical"],"sourceRoot":"../../../../src","sources":["components/Divider/index.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,UAAU,QAAwC,cAAc;;AAE/E;AACA;AACA;AACA;AACA;AACA;AACA;;AAOA,MAAMC,OAAO,GAAGA,CAAC;EAAEC,KAAK;EAAEC;AAAoB,CAAC,KAAK;EACnD,oBACCL,KAAA,CAAAM,aAAA,CAACL,IAAI;IACJI,KAAK,EAAE,CAACE,MAAM,CAACC,OAAO,EAAEJ,KAAK,GAAG;MAAEK,eAAe,EAAEL;IAAM,CAAC,GAAG,IAAI,EAAEC,KAAK,CAAE;IAC1EK,UAAU,EAAE;EAAK,CACjB,CAAC;AAEJ,CAAC;AAED,MAAMH,MAAM,GAAGL,UAAU,CAACS,MAAM,CAAC;EAChCH,OAAO,EAAE;IACRI,MAAM,EAAE,CAAC;IACTC,KAAK,EAAE,MAAM;IACbJ,eAAe,EAAE,SAAS;IAAE;IAC5BK,cAAc,EAAE;EACjB;AACD,CAAC,CAAC;AAEF,eAAeX,OAAO","ignoreList":[]}
@@ -0,0 +1,24 @@
1
+ import React from "react";
2
+ import { productTypeBuilder } from "../../../builder/builder";
3
+ import { DynamicOffersRender, FallbackOfferTemplate } from "./Render";
4
+ import { View } from "react-native";
5
+ export const DynamicOffers = ({
6
+ title,
7
+ displayLayout,
8
+ showBorder,
9
+ showProductTypeLabel,
10
+ // shouldHideFooter,
11
+ offers
12
+ }) => {
13
+ if (offers.length === 0) return /*#__PURE__*/React.createElement(React.Fragment, null);
14
+ return /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(DynamicOffersRender, {
15
+ title: title,
16
+ offers: offers,
17
+ displayLayout: displayLayout,
18
+ fallbackTemplate: FallbackOfferTemplate,
19
+ productTypeBuilder: productTypeBuilder,
20
+ showBorder: showBorder,
21
+ showProductTypeLabel: showProductTypeLabel
22
+ }));
23
+ };
24
+ //# sourceMappingURL=DynamicOffers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","productTypeBuilder","DynamicOffersRender","FallbackOfferTemplate","View","DynamicOffers","title","displayLayout","showBorder","showProductTypeLabel","offers","length","createElement","Fragment","fallbackTemplate"],"sourceRoot":"../../../../src","sources":["components/DynamicOffers/DynamicOffers.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,kBAAkB,QAAQ,0BAA0B;AAC7D,SAASC,mBAAmB,EAAEC,qBAAqB,QAAQ,UAAU;AAGrE,SAASC,IAAI,QAAQ,cAAc;AAUnC,OAAO,MAAMC,aAAa,GAAGA,CAAC;EAC7BC,KAAK;EACLC,aAAa;EACbC,UAAU;EACVC,oBAAoB;EACpB;EACAC;AACkB,CAAC,KAAwB;EAC3C,IAAIA,MAAM,CAACC,MAAM,KAAK,CAAC,EAAE,oBAAOX,KAAA,CAAAY,aAAA,CAAAZ,KAAA,CAAAa,QAAA,MAAI,CAAC;EAErC,oBACCb,KAAA,CAAAY,aAAA,CAACR,IAAI,qBAOJJ,KAAA,CAAAY,aAAA,CAACV,mBAAmB;IACnBI,KAAK,EAAEA,KAAM;IACbI,MAAM,EAAEA,MAAO;IACfH,aAAa,EAAEA,aAAc;IAC7BO,gBAAgB,EAAEX,qBAAsB;IACxCF,kBAAkB,EAAEA,kBAAmB;IACvCO,UAAU,EAAEA,UAAW;IACvBC,oBAAoB,EAAEA;EAAqB,CAC3C,CAEI,CAAC;AAET,CAAC","ignoreList":[]}
@@ -0,0 +1,40 @@
1
+ import React, { Suspense } from "react";
2
+ import { match } from "ts-pattern";
3
+ import { DynamicOffers } from "./DynamicOffers";
4
+ import Skeleton from "../Skeleton";
5
+ import { View, StyleSheet } from "react-native";
6
+ export const DynamicOfferSkeleton = /*#__PURE__*/React.memo(({
7
+ displayLayout = "carousel"
8
+ }) => match(displayLayout).with("fixed", () => /*#__PURE__*/React.createElement(Skeleton, {
9
+ height: 300
10
+ })).otherwise(() => /*#__PURE__*/React.createElement(View, {
11
+ style: styles.skeletonContainer
12
+ }, /*#__PURE__*/React.createElement(Skeleton, {
13
+ height: 10,
14
+ width: 73
15
+ }), /*#__PURE__*/React.createElement(Skeleton, {
16
+ height: 300
17
+ }))));
18
+ export const DynamicOffersContainer = /*#__PURE__*/React.memo(({
19
+ config
20
+ }) => {
21
+ return /*#__PURE__*/React.createElement(Suspense, {
22
+ fallback: /*#__PURE__*/React.createElement(DynamicOfferSkeleton, {
23
+ displayLayout: config.displayLayout
24
+ })
25
+ }, /*#__PURE__*/React.createElement(DynamicOffers, {
26
+ offers: config.offers,
27
+ title: config.title,
28
+ showProductTypeLabel: config.showProductTypeLabel,
29
+ displayLayout: config.displayLayout,
30
+ showBorder: config.showBorder,
31
+ shouldHideFooter: config.shouldHideFooter
32
+ }));
33
+ });
34
+ const styles = StyleSheet.create({
35
+ skeletonContainer: {
36
+ gap: 2,
37
+ width: "100%"
38
+ }
39
+ });
40
+ //# sourceMappingURL=DynamicOffersContainer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","Suspense","match","DynamicOffers","Skeleton","View","StyleSheet","DynamicOfferSkeleton","memo","displayLayout","with","createElement","height","otherwise","style","styles","skeletonContainer","width","DynamicOffersContainer","config","fallback","offers","title","showProductTypeLabel","showBorder","shouldHideFooter","create","gap"],"sourceRoot":"../../../../src","sources":["components/DynamicOffers/DynamicOffersContainer.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AACvC,SAASC,KAAK,QAAQ,YAAY;AAElC,SAASC,aAAa,QAAgC,iBAAiB;AACvE,OAAOC,QAAQ,MAAM,aAAa;AAClC,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAE/C,OAAO,MAAMC,oBAAoB,gBAAGP,KAAK,CAACQ,IAAI,CAC7C,CAAC;EAAEC,aAAa,GAAG;AAAuC,CAAC,KAC1DP,KAAK,CAACO,aAAa,CAAC,CAClBC,IAAI,CAAC,OAAO,EAAE,mBAAMV,KAAA,CAAAW,aAAA,CAACP,QAAQ;EAACQ,MAAM,EAAE;AAAI,CAAE,CAAC,CAAC,CAC9CC,SAAS,CAAC,mBACVb,KAAA,CAAAW,aAAA,CAACN,IAAI;EAACS,KAAK,EAAEC,MAAM,CAACC;AAAkB,gBACrChB,KAAA,CAAAW,aAAA,CAACP,QAAQ;EAACQ,MAAM,EAAE,EAAG;EAACK,KAAK,EAAE;AAAG,CAAE,CAAC,eACnCjB,KAAA,CAAAW,aAAA,CAACP,QAAQ;EAACQ,MAAM,EAAE;AAAI,CAAE,CACnB,CACN,CACJ,CAAC;AAED,OAAO,MAAMM,sBAAsB,gBAAGlB,KAAK,CAACQ,IAAI,CAC/C,CAAC;EAAEW;AAAsC,CAAC,KAAK;EAC9C,oBACCnB,KAAA,CAAAW,aAAA,CAACV,QAAQ;IACRmB,QAAQ,eAAEpB,KAAA,CAAAW,aAAA,CAACJ,oBAAoB;MAACE,aAAa,EAAEU,MAAM,CAACV;IAAc,CAAE;EAAE,gBAExET,KAAA,CAAAW,aAAA,CAACR,aAAa;IACbkB,MAAM,EAAEF,MAAM,CAACE,MAAO;IACtBC,KAAK,EAAEH,MAAM,CAACG,KAAM;IACpBC,oBAAoB,EAAEJ,MAAM,CAACI,oBAAqB;IAClDd,aAAa,EAAEU,MAAM,CAACV,aAAc;IACpCe,UAAU,EAAEL,MAAM,CAACK,UAAW;IAC9BC,gBAAgB,EAAEN,MAAM,CAACM;EAAiB,CAC1C,CACQ,CAAC;AAEb,CACD,CAAC;AAED,MAAMV,MAAM,GAAGT,UAAU,CAACoB,MAAM,CAAC;EAChCV,iBAAiB,EAAE;IAAEW,GAAG,EAAE,CAAC;IAAEV,KAAK,EAAE;EAAO;AAC5C,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,196 @@
1
+ import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";
2
+ import { productTypeBuilder as builder } from "../../../../builder/builder";
3
+ import { Offer } from "./Offer";
4
+ import { InteractionManager, ScrollView, StyleSheet, View } from "react-native";
5
+ import { useEventHandler } from "../../../context/EventHandlerProvider";
6
+ export const DynamicOffersRender = ({
7
+ title,
8
+ offers,
9
+ displayLayout,
10
+ productTypeBuilder = builder,
11
+ fallbackTemplate,
12
+ showBorder,
13
+ showProductTypeLabel
14
+ }) => {
15
+ // Performance optimization: store card measurements
16
+ const [cardLayouts, setCardLayouts] = useState({});
17
+ const [scrollViewWidth, setScrollViewWidth] = useState(0);
18
+ const [scrollOffset, setScrollOffset] = useState(0);
19
+
20
+ // Callback to fire when offer is displayed in viewport
21
+ const {
22
+ onOfferDisplayInViewport,
23
+ leadUuid,
24
+ rateTableUuid
25
+ } = useEventHandler();
26
+
27
+ // Track which offers have been viewed
28
+ const viewedOffers = useRef(new Set());
29
+
30
+ // Track if initial visibility check has been done
31
+ const initialCheckDone = useRef(false);
32
+
33
+ // Reset tracking when offers change
34
+ useEffect(() => {
35
+ viewedOffers.current = new Set();
36
+ initialCheckDone.current = false;
37
+ setCardLayouts({});
38
+ }, [offers]);
39
+
40
+ // Handle card layout measurements
41
+ const handleCardLayout = useCallback((offerId, event) => {
42
+ const {
43
+ x,
44
+ width
45
+ } = event.nativeEvent.layout;
46
+ setCardLayouts(prev => {
47
+ var _prev$offerId, _prev$offerId2;
48
+ // Only update if measurements changed
49
+ if (prev[offerId] && ((_prev$offerId = prev[offerId]) === null || _prev$offerId === void 0 ? void 0 : _prev$offerId.x) === x && ((_prev$offerId2 = prev[offerId]) === null || _prev$offerId2 === void 0 ? void 0 : _prev$offerId2.width) === width) {
50
+ return prev;
51
+ }
52
+ return {
53
+ ...prev,
54
+ [offerId]: {
55
+ x,
56
+ width
57
+ }
58
+ };
59
+ });
60
+ }, []);
61
+
62
+ // Check which offers are visible
63
+ const checkVisibleOffers = useCallback(() => {
64
+ if (!onOfferDisplayInViewport || !scrollViewWidth) return;
65
+
66
+ // Calculate visible range
67
+ const visibleLeft = scrollOffset;
68
+ const visibleRight = scrollOffset + scrollViewWidth;
69
+
70
+ // Check each offer's visibility
71
+ offers.forEach((offer, index) => {
72
+ // Skip if already tracked
73
+ if (viewedOffers.current.has(offer.uuid)) return;
74
+ const layout = cardLayouts[offer.uuid];
75
+ if (!layout) return;
76
+
77
+ // Calculate card position
78
+ const cardLeft = layout.x;
79
+ const cardRight = cardLeft + layout.width;
80
+ const cardWidth = layout.width;
81
+
82
+ // Calculate visibility
83
+ let visibleWidth = 0;
84
+ if (cardLeft >= visibleLeft && cardRight <= visibleRight) {
85
+ // Fully visible
86
+ visibleWidth = cardWidth;
87
+ } else if (cardLeft < visibleLeft && cardRight > visibleLeft) {
88
+ // Partly visible from left
89
+ visibleWidth = cardRight - visibleLeft;
90
+ } else if (cardLeft < visibleRight && cardRight > visibleRight) {
91
+ // Partly visible from right
92
+ visibleWidth = visibleRight - cardLeft;
93
+ }
94
+
95
+ // Calculate visibility percentage
96
+ const visibilityPercentage = visibleWidth / cardWidth * 100;
97
+
98
+ // If ≥50% visible, track it and fire callback
99
+ if (visibilityPercentage >= 50) {
100
+ viewedOffers.current.add(offer.uuid);
101
+ onOfferDisplayInViewport({
102
+ timestamp: new Date().toISOString(),
103
+ offerUuid: offer.uuid,
104
+ leadUuid,
105
+ offer,
106
+ offerIndex: index,
107
+ rateTableUuid
108
+ });
109
+ }
110
+ });
111
+ }, [cardLayouts, leadUuid, offers, onOfferDisplayInViewport, rateTableUuid, scrollOffset, scrollViewWidth]);
112
+
113
+ // Handle ScrollView layout
114
+ const handleScrollViewLayout = useCallback(event => {
115
+ const {
116
+ width
117
+ } = event.nativeEvent.layout;
118
+ setScrollViewWidth(width);
119
+
120
+ // Do an initial visibility check after layout
121
+ InteractionManager.runAfterInteractions(() => {
122
+ checkVisibleOffers();
123
+ initialCheckDone.current = true;
124
+ });
125
+ }, [checkVisibleOffers]);
126
+
127
+ // Handle scroll events
128
+ const handleScroll = useCallback(event => {
129
+ const offsetX = event.nativeEvent.contentOffset.x;
130
+ setScrollOffset(offsetX);
131
+ }, []);
132
+
133
+ // Memoize offer components to prevent unnecessary re-renders
134
+ const offerComponents = useMemo(() => {
135
+ // Create offer components
136
+ return displayLayout === "fixed" ? [
137
+ // <VideosCard key="videos-card" videosContent={videosContent} showBorder={showBorder} />,
138
+ ...Offer({
139
+ productTypeBuilder,
140
+ offers,
141
+ showProductTypeLabel,
142
+ fallbackTemplate,
143
+ showBorder
144
+ })] : Offer({
145
+ productTypeBuilder,
146
+ offers,
147
+ showProductTypeLabel,
148
+ fallbackTemplate,
149
+ showBorder
150
+ });
151
+ }, [displayLayout, productTypeBuilder, offers, showProductTypeLabel, fallbackTemplate, showBorder]);
152
+
153
+ // Wrapped offer components with layout measurement
154
+ const wrappedOfferComponents = useMemo(() => {
155
+ return offerComponents.map((component, index) => {
156
+ // Skip non-offer items
157
+ if (index >= offers.length) return component;
158
+ const offer = offers[index];
159
+ if (!offer) return component;
160
+ return /*#__PURE__*/React.createElement(View, {
161
+ key: `offer-wrapper-${index}-${offer.uuid}`,
162
+ onLayout: e => handleCardLayout(offer.uuid, e)
163
+ }, component);
164
+ });
165
+ }, [offerComponents, offers, handleCardLayout]);
166
+
167
+ // Check visibility whenever relevant values change
168
+ useEffect(() => {
169
+ if (!initialCheckDone.current || Object.keys(cardLayouts).length === 0) return;
170
+
171
+ // Debounce the visibility check slightly for performance
172
+ const timeoutId = setTimeout(checkVisibleOffers, 100);
173
+ return () => clearTimeout(timeoutId);
174
+ }, [checkVisibleOffers, scrollOffset, scrollViewWidth, cardLayouts]);
175
+ return (
176
+ /*#__PURE__*/
177
+ // <OffersCarousel title={title} displayLayout={displayLayout}>
178
+ React.createElement(React.Fragment, null, title, /*#__PURE__*/React.createElement(ScrollView, {
179
+ horizontal: true,
180
+ showsHorizontalScrollIndicator: false,
181
+ contentContainerStyle: styles.contentContainer,
182
+ onLayout: handleScrollViewLayout,
183
+ onScroll: handleScroll,
184
+ scrollEventThrottle: 16 // Lower number for more precision, higher for better performance
185
+ }, wrappedOfferComponents))
186
+
187
+ // </OffersCarousel>
188
+ );
189
+ };
190
+ const styles = StyleSheet.create({
191
+ contentContainer: {
192
+ columnGap: 20,
193
+ paddingHorizontal: 16
194
+ }
195
+ });
196
+ //# sourceMappingURL=DynamicOffersRender.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useCallback","useEffect","useMemo","useRef","useState","productTypeBuilder","builder","Offer","InteractionManager","ScrollView","StyleSheet","View","useEventHandler","DynamicOffersRender","title","offers","displayLayout","fallbackTemplate","showBorder","showProductTypeLabel","cardLayouts","setCardLayouts","scrollViewWidth","setScrollViewWidth","scrollOffset","setScrollOffset","onOfferDisplayInViewport","leadUuid","rateTableUuid","viewedOffers","Set","initialCheckDone","current","handleCardLayout","offerId","event","x","width","nativeEvent","layout","prev","_prev$offerId","_prev$offerId2","checkVisibleOffers","visibleLeft","visibleRight","forEach","offer","index","has","uuid","cardLeft","cardRight","cardWidth","visibleWidth","visibilityPercentage","add","timestamp","Date","toISOString","offerUuid","offerIndex","handleScrollViewLayout","runAfterInteractions","handleScroll","offsetX","contentOffset","offerComponents","wrappedOfferComponents","map","component","length","createElement","key","onLayout","e","Object","keys","timeoutId","setTimeout","clearTimeout","Fragment","horizontal","showsHorizontalScrollIndicator","contentContainerStyle","styles","contentContainer","onScroll","scrollEventThrottle","create","columnGap","paddingHorizontal"],"sourceRoot":"../../../../../src","sources":["components/DynamicOffers/Render/DynamicOffersRender.tsx"],"mappings":"AAAA,OAAOA,KAAK,IACXC,WAAW,EACXC,SAAS,EACTC,OAAO,EACPC,MAAM,EACNC,QAAQ,QACF,OAAO;AAGd,SAASC,kBAAkB,IAAIC,OAAO,QAAQ,6BAA6B;AAC3E,SAASC,KAAK,QAAQ,SAAS;AAC/B,SACCC,kBAAkB,EAClBC,UAAU,EACVC,UAAU,EACVC,IAAI,QAIE,cAAc;AACrB,SAASC,eAAe,QAAQ,uCAAuC;AAgBvE,OAAO,MAAMC,mBAAmB,GAAGA,CAAC;EACnCC,K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WAAW,CAAC,CAAC;EAEpE;IAAA;IACC;IACArB,KAAA,CAAAyE,aAAA,CAAAzE,KAAA,CAAAkF,QAAA,QACEnE,KAAK,eACNf,KAAA,CAAAyE,aAAA,CAAC/D,UAAU;MACVyE,UAAU,EAAE,IAAK;MACjBC,8BAA8B,EAAE,KAAM;MACtCC,qBAAqB,EAAEC,MAAM,CAACC,gBAAiB;MAC/CZ,QAAQ,EAAEZ,sBAAuB;MACjCyB,QAAQ,EAAEvB,YAAa;MACvBwB,mBAAmB,EAAE,EAAG,CAAC;IAAA,GAExBpB,sBACU,CACX;;IAEF;EAAA;AAEF,CAAC;AAED,MAAMiB,MAAM,GAAG3E,UAAU,CAAC+E,MAAM,CAAC;EAChCH,gBAAgB,EAAE;IACjBI,SAAS,EAAE,EAAE;IACbC,iBAAiB,EAAE;EACpB;AACD,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,21 @@
1
+ import React from "react";
2
+ import { HeadlineWithDescriptionCard } from "../../Layouts/HeadlineWithDescriptionCard";
3
+ export function FallbackOfferTemplate({
4
+ offer,
5
+ offerIndex,
6
+ showBorder = true,
7
+ showProductTypeLabel = true
8
+ }) {
9
+ return /*#__PURE__*/React.createElement(HeadlineWithDescriptionCard, {
10
+ key: `${offerIndex}-${offer.uuid}`,
11
+ offer: offer,
12
+ offerIndex: offerIndex,
13
+ productTypeBuilder: {
14
+ productTypes: [],
15
+ layout: "headlineWithDescriptionCard"
16
+ },
17
+ showBorder: showBorder,
18
+ showProductTypeLabel: showProductTypeLabel
19
+ });
20
+ }
21
+ //# sourceMappingURL=FallbackOfferTemplate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","HeadlineWithDescriptionCard","FallbackOfferTemplate","offer","offerIndex","showBorder","showProductTypeLabel","createElement","key","uuid","productTypeBuilder","productTypes","layout"],"sourceRoot":"../../../../../src","sources":["components/DynamicOffers/Render/FallbackOfferTemplate.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,2BAA2B,QAAQ,2CAA2C;AAGvF,OAAO,SAASC,qBAAqBA,CAAC;EACrCC,KAAK;EACLC,UAAU;EACVC,UAAU,GAAG,IAAI;EACjBC,oBAAoB,GAAG;AAMxB,CAAC,EAAE;EACF,oBACCN,KAAA,CAAAO,aAAA,CAACN,2BAA2B;IAC3BO,GAAG,EAAE,GAAGJ,UAAU,IAAID,KAAK,CAACM,IAAI,EAAG;IACnCN,KAAK,EAAEA,KAAM;IACbC,UAAU,EAAEA,UAAW;IACvBM,kBAAkB,EAAE;MACnBC,YAAY,EAAE,EAAE;MAChBC,MAAM,EAAE;IACT,CAAE;IACFP,UAAU,EAAEA,UAAW;IACvBC,oBAAoB,EAAEA;EAAqB,CAC3C,CAAC;AAEJ","ignoreList":[]}
@@ -0,0 +1,61 @@
1
+ import React, { Fragment } from "react";
2
+ import { match } from "ts-pattern";
3
+ import { DefaultOfferCard, CreditCardOfferCard, HeadlineWithDescriptionCard } from "../../Layouts";
4
+ export const Offer = ({
5
+ productTypeBuilder,
6
+ offers,
7
+ showProductTypeLabel = true,
8
+ fallbackTemplate,
9
+ showBorder = true
10
+ }) => offers.map((offer, offerIndex) => {
11
+ const builder = productTypeBuilder.find(({
12
+ productTypes
13
+ }) => productTypes.includes(offer.productType));
14
+ if (!builder && !fallbackTemplate) {
15
+ console.error(`No builder or fallback template found for product type ${offer.productType},
16
+ please add it to the productTypeBuilder or inform a fallback template`);
17
+ return /*#__PURE__*/React.createElement(React.Fragment, null);
18
+ }
19
+ return /*#__PURE__*/React.createElement(Fragment, {
20
+ key: `${offerIndex}-${offer.uuid}`
21
+ }, match(builder).with({
22
+ layout: "defaultOfferCard"
23
+ }, layout => /*#__PURE__*/React.createElement(DefaultOfferCard, {
24
+ offerIndex: offerIndex,
25
+ key: `${offerIndex}-${offer.uuid}`,
26
+ offer: offer,
27
+ productTypeBuilder: layout,
28
+ showBorder: showBorder,
29
+ showProductTypeLabel: showProductTypeLabel
30
+ })).with({
31
+ layout: "creditCardOfferCard"
32
+ }, layout => /*#__PURE__*/React.createElement(CreditCardOfferCard, {
33
+ offerIndex: offerIndex,
34
+ key: `${offerIndex}-${offer.uuid}`,
35
+ offer: offer,
36
+ productTypeBuilder: layout,
37
+ showBorder: showBorder,
38
+ showProductTypeLabel: showProductTypeLabel
39
+ })).with({
40
+ layout: "headlineWithDescriptionCard"
41
+ }, layout => /*#__PURE__*/React.createElement(HeadlineWithDescriptionCard, {
42
+ offerIndex: offerIndex,
43
+ key: `${offerIndex}-${offer.uuid}`,
44
+ offer: offer,
45
+ productTypeBuilder: layout,
46
+ showBorder: showBorder,
47
+ showProductTypeLabel: showProductTypeLabel
48
+ })).with(undefined, () => {
49
+ if (!fallbackTemplate) {
50
+ return /*#__PURE__*/React.createElement(React.Fragment, null);
51
+ }
52
+ const FallbackTemplate = fallbackTemplate;
53
+ return /*#__PURE__*/React.createElement(FallbackTemplate, {
54
+ offerIndex: offerIndex,
55
+ key: `${offerIndex}-${offer.uuid}`,
56
+ offer: offer,
57
+ showProductTypeLabel: showProductTypeLabel
58
+ });
59
+ }).exhaustive());
60
+ });
61
+ //# sourceMappingURL=Offer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","Fragment","match","DefaultOfferCard","CreditCardOfferCard","HeadlineWithDescriptionCard","Offer","productTypeBuilder","offers","showProductTypeLabel","fallbackTemplate","showBorder","map","offer","offerIndex","builder","find","productTypes","includes","productType","console","error","createElement","key","uuid","with","layout","undefined","FallbackTemplate","exhaustive"],"sourceRoot":"../../../../../src","sources":["components/DynamicOffers/Render/Offer.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,QAAQ,QAAQ,OAAO;AAEvC,SAASC,KAAK,QAAQ,YAAY;AAIlC,SACCC,gBAAgB,EAChBC,mBAAmB,EACnBC,2BAA2B,QACrB,eAAe;AAmBtB,OAAO,MAAMC,KAAK,GAAGA,CAAC;EACrBC,kBAAkB;EAClBC,MAAM;EACNC,oBAAoB,GAAG,IAAI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oBAAoB,EAAEA;EAAqB,CAC3C,CACD,CAAC,CACDgB,IAAI,CAAC;IAAEC,MAAM,EAAE;EAA8B,CAAC,EAAGA,MAAM,iBACvD1B,KAAA,CAAAsB,aAAA,CAACjB,2BAA2B;IAC3BS,UAAU,EAAEA,UAAW;IACvBS,GAAG,EAAE,GAAGT,UAAU,IAAID,KAAK,CAACW,IAAI,EAAG;IACnCX,KAAK,EAAEA,KAAM;IACbN,kBAAkB,EAAEmB,MAAO;IAC3Bf,UAAU,EAAEA,UAAW;IACvBF,oBAAoB,EAAEA;EAAqB,CAC3C,CACD,CAAC,CACDgB,IAAI,CAACE,SAAS,EAAE,MAAM;IACtB,IAAI,CAACjB,gBAAgB,EAAE;MACtB,oBAAOV,KAAA,CAAAsB,aAAA,CAAAtB,KAAA,CAAAC,QAAA,MAAI,CAAC;IACb;IACA,MAAM2B,gBAAgB,GAAGlB,gBAAgB;IACzC,oBACCV,KAAA,CAAAsB,aAAA,CAACM,gBAAgB;MAChBd,UAAU,EAAEA,UAAW;MACvBS,GAAG,EAAE,GAAGT,UAAU,IAAID,KAAK,CAACW,IAAI,EAAG;MACnCX,KAAK,EAAEA,KAAM;MACbJ,oBAAoB,EAAEA;IAAqB,CAC3C,CAAC;EAEJ,CAAC,CAAC,CACDoB,UAAU,CAAC,CACJ,CAAC;AAEb,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,3 @@
1
+ export { DynamicOffersRender } from "./DynamicOffersRender";
2
+ export { FallbackOfferTemplate } from "./FallbackOfferTemplate";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["DynamicOffersRender","FallbackOfferTemplate"],"sourceRoot":"../../../../../src","sources":["components/DynamicOffers/Render/index.ts"],"mappings":"AAAA,SAASA,mBAAmB,QAAQ,uBAAuB;AAC3D,SAASC,qBAAqB,QAAQ,yBAAyB","ignoreList":[]}
@@ -0,0 +1,57 @@
1
+ import { get } from "radash";
2
+ import React from "react";
3
+ import { makeCreditCardOfferStats } from "./statsBuilder";
4
+ import { BaseOfferCard, SeeMore } from "../../Common";
5
+ import Divider from "../../Divider";
6
+ import Text from "../../Text";
7
+ import { CallToAction } from "../../Common/DynamicOfferCard/CallToAction";
8
+ import { StyleSheet } from "react-native";
9
+ export const CreditCardOfferCard = ({
10
+ offer,
11
+ productTypeBuilder,
12
+ // showBorder, TODO: this is unused in the cnf-app as well
13
+ showProductTypeLabel,
14
+ offerIndex
15
+ }) => {
16
+ const {
17
+ stats
18
+ } = makeCreditCardOfferStats(productTypeBuilder)(offer);
19
+ const descriptionPoints = get(offer, "descriptionPoints", []);
20
+ const legalLanguage = get(offer, "legalLanguage", "");
21
+ const showMoreInfo = descriptionPoints.length > 0 || !!legalLanguage;
22
+ const badges = get(offer, "badges", []);
23
+ const showBadge = badges.length > 0;
24
+ return /*#__PURE__*/React.createElement(BaseOfferCard, {
25
+ showBorder: showBadge
26
+ }, showProductTypeLabel && /*#__PURE__*/React.createElement(BaseOfferCard.TopBar, null, /*#__PURE__*/React.createElement(BaseOfferCard.ProductType, null, offer.productDisplayName)), /*#__PURE__*/React.createElement(BaseOfferCard.Container, null, /*#__PURE__*/React.createElement(BaseOfferCard.CreditCardContainer, null, showBadge && /*#__PURE__*/React.createElement(BaseOfferCard.Tip, null, badges[0]), /*#__PURE__*/React.createElement(BaseOfferCard.CreditCardImage, {
27
+ src: offer.financialInstitutionImageUrl
28
+ // imageAttributes={{ title: offer.financialInstitutionDisplayName }}
29
+ ,
30
+ alt: offer.financialInstitutionDisplayName
31
+ }), /*#__PURE__*/React.createElement(Text, {
32
+ variant: "body-2",
33
+ color: "neutral",
34
+ weight: "bold"
35
+ }, offer.financialInstitutionDisplayName), /*#__PURE__*/React.createElement(BaseOfferCard.Content, null, /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement(BaseOfferCard.Stats, null, stats.map(stat => /*#__PURE__*/React.createElement(BaseOfferCard.Stat, {
36
+ key: stat.label,
37
+ label: stat.label,
38
+ content: stat.content,
39
+ isHighlighted: stat.isHighlighted,
40
+ isNull: stat.isNull
41
+ })), showMoreInfo && /*#__PURE__*/React.createElement(SeeMore, {
42
+ offer: offer,
43
+ offerIndex: offerIndex
44
+ })))), /*#__PURE__*/React.createElement(BaseOfferCard.BottomBar, null, /*#__PURE__*/React.createElement(CallToAction, {
45
+ offer: offer,
46
+ overrideUrl: offer.overrideUrl,
47
+ style: styles.cta,
48
+ context: "offer",
49
+ offerIndex: offerIndex
50
+ }, "Continue"))));
51
+ };
52
+ const styles = StyleSheet.create({
53
+ cta: {
54
+ marginTop: 20
55
+ }
56
+ });
57
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["get","React","makeCreditCardOfferStats","BaseOfferCard","SeeMore","Divider","Text","CallToAction","StyleSheet","CreditCardOfferCard","offer","productTypeBuilder","showProductTypeLabel","offerIndex","stats","descriptionPoints","legalLanguage","showMoreInfo","length","badges","showBadge","createElement","showBorder","TopBar","ProductType","productDisplayName","Container","CreditCardContainer","Tip","CreditCardImage","src","financialInstitutionImageUrl","alt","financialInstitutionDisplayName","variant","color","weight","Content","Stats","map","stat","Stat","key","label","content","isHighlighted","isNull","BottomBar","overrideUrl","style","styles","cta","context","create","marginTop"],"sourceRoot":"../../../../../src","sources":["components/Layouts/CreditCardOfferCard/index.tsx"],"mappings":"AAAA,SAASA,GAAG,QAAQ,QAAQ;AAG5B,OAAOC,KAAK,MAAM,OAAO;AAGzB,SAASC,wBAAwB,QAAQ,gBAAgB;AACzD,SAASC,aAAa,EAAEC,OAAO,QAAQ,cAAc;AACrD,OAAOC,OAAO,MAAM,eAAe;AACnC,OAAOC,IAAI,MAAM,YAAY;AAC7B,SAASC,YAAY,QAAQ,4CAA4C;AACzE,SAASC,UAAU,QAAQ,cAAc;AAUzC,OAAO,MAAMC,mBAAmB,GAAGA,CAAC;EACnCC,KAAK;EACLC,kBAAkB;EAClB;EACAC,oBAAoB;EACpBC;AACyB,CAAC,KAAK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hC,KAAA,CAAAoB,aAAA,CAAClB,aAAa,CAACkC,OAAO,qBACrBpC,KAAA,CAAAoB,aAAA,CAAChB,OAAO,MAAE,CAAC,eACXJ,KAAA,CAAAoB,aAAA,CAAClB,aAAa,CAACmC,KAAK,QAClBxB,KAAK,CAACyB,GAAG,CAAEC,IAAI,iBACfvC,KAAA,CAAAoB,aAAA,CAAClB,aAAa,CAACsC,IAAI;IAClBC,GAAG,EAAEF,IAAI,CAACG,KAAM;IAChBA,KAAK,EAAEH,IAAI,CAACG,KAAM;IAClBC,OAAO,EAAEJ,IAAI,CAACI,OAAQ;IACtBC,aAAa,EAAEL,IAAI,CAACK,aAAc;IAClCC,MAAM,EAAEN,IAAI,CAACM;EAAO,CACpB,CACD,CAAC,EACD7B,YAAY,iBACZhB,KAAA,CAAAoB,aAAA,CAACjB,OAAO;IAACM,KAAK,EAAEA,KAAM;IAACG,UAAU,EAAEA;EAAW,CAAE,CAE7B,CACC,CACW,CAAC,eAEpCZ,KAAA,CAAAoB,aAAA,CAAClB,aAAa,CAAC4C,SAAS,qBACvB9C,KAAA,CAAAoB,aAAA,CAACd,YAAY;IACZG,KAAK,EAAEA,KAAM;IACbsC,WAAW,EAAEtC,KAAK,CAACsC,WAAY;IAC/BC,KAAK,EAAEC,MAAM,CAACC,GAAI;IAClBC,OAAO,EAAC,OAAO;IACfvC,UAAU,EAAEA;EAAW,GACvB,UAEa,CAGU,CACD,CACX,CAAC;AAElB,CAAC;AAED,MAAMqC,MAAM,GAAG1C,UAAU,CAAC6C,MAAM,CAAC;EAChCF,GAAG,EAAE;IAAEG,SAAS,EAAE;EAAG;AACtB,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,8 @@
1
+ import { statsToElementPropsBuilder } from "../../../../capabilities/offer-catalog/src/utils/stats";
2
+ export const makeCreditCardOfferStats = productTypeBuilder => offer => {
3
+ const stats = statsToElementPropsBuilder(productTypeBuilder.stats, offer);
4
+ return {
5
+ stats
6
+ };
7
+ };
8
+ //# sourceMappingURL=statsBuilder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["statsToElementPropsBuilder","makeCreditCardOfferStats","productTypeBuilder","offer","stats"],"sourceRoot":"../../../../../src","sources":["components/Layouts/CreditCardOfferCard/statsBuilder.tsx"],"mappings":"AAEA,SAASA,0BAA0B,QAAQ,wDAAwD;AAEnG,OAAO,MAAMC,wBAAwB,GACnCC,kBAAuC,IAAMC,KAAgB,IAAK;EAClE,MAAMC,KAAK,GAAGJ,0BAA0B,CAACE,kBAAkB,CAACE,KAAK,EAAED,KAAK,CAAC;EAEzE,OAAO;IAAEC;EAAM,CAAC;AACjB,CAAC","ignoreList":[]}
@@ -0,0 +1,45 @@
1
+ import { get } from "radash";
2
+ import React from "react";
3
+ import { makeDefaultOfferCardStats } from "./statsBuilder";
4
+ import { BaseOfferCard, DynamicOfferCard, SeeMore } from "../../Common";
5
+ export const DefaultOfferCard = ({
6
+ offer,
7
+ productTypeBuilder,
8
+ offerIndex,
9
+ showBorder,
10
+ showProductTypeLabel
11
+ }) => {
12
+ const {
13
+ stats,
14
+ topStats
15
+ } = makeDefaultOfferCardStats(productTypeBuilder)(offer);
16
+ const descriptionPoints = get(offer, "descriptionPoints", []);
17
+ const description = get(offer, "description", "");
18
+ const legalInformation = get(offer, "legalInformation", "");
19
+ const legalLanguage = get(offer, "legalLanguage", "");
20
+ const showMoreInfo = descriptionPoints.length > 0 || !!legalLanguage;
21
+ const contentDescription = description || legalInformation;
22
+ return /*#__PURE__*/React.createElement(DynamicOfferCard, {
23
+ key: `${offerIndex}-${offer.uuid}`,
24
+ offer: offer,
25
+ offerIndex: offerIndex,
26
+ showBorder: showBorder,
27
+ showProductTypeLabel: showProductTypeLabel
28
+ }, /*#__PURE__*/React.createElement(BaseOfferCard.TopContainer, null, topStats.map(stat => /*#__PURE__*/React.createElement(BaseOfferCard.Stat, {
29
+ key: `${offerIndex}-${stat.label}`,
30
+ label: stat.label,
31
+ content: stat.content,
32
+ isVertical: true
33
+ }))), /*#__PURE__*/React.createElement(BaseOfferCard.Stats, null, stats.map(stat => /*#__PURE__*/React.createElement(BaseOfferCard.Stat, {
34
+ key: `${offerIndex}-${stat.label}`,
35
+ label: stat.label,
36
+ content: stat.content
37
+ })), /*#__PURE__*/React.createElement(BaseOfferCard.DescriptionHandler, {
38
+ descriptionPoints: descriptionPoints,
39
+ contentDescription: contentDescription
40
+ }), showMoreInfo && /*#__PURE__*/React.createElement(SeeMore, {
41
+ offer: offer,
42
+ offerIndex: offerIndex
43
+ })));
44
+ };
45
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["get","React","makeDefaultOfferCardStats","BaseOfferCard","DynamicOfferCard","SeeMore","DefaultOfferCard","offer","productTypeBuilder","offerIndex","showBorder","showProductTypeLabel","stats","topStats","descriptionPoints","description","legalInformation","legalLanguage","showMoreInfo","length","contentDescription","createElement","key","uuid","TopContainer","map","stat","Stat","label","content","isVertical","Stats","DescriptionHandler"],"sourceRoot":"../../../../../src","sources":["components/Layouts/DefaultOfferCard/index.tsx"],"mappings":"AAAA,SAASA,GAAG,QAAQ,QAAQ;AAG5B,OAAOC,KAAK,MAAM,OAAO;AAEzB,SAASC,yBAAyB,QAAQ,gBAAgB;AAE1D,SAASC,aAAa,EAAEC,gBAAgB,EAAEC,OAAO,QAAQ,cAAc;AAUvE,OAAO,MAAMC,gBAAgB,GAAGA,CAAC;EAChCC,KAAK;EACLC,kBAAkB;EAClBC,UAAU;EACVC,UAAU;EACVC;AACsB,CAAC,KAAK;EAC5B,MAAM;IAAEC,KAAK;IAAEC;EAAS,CAAC,GACxBX,yBAAyB,CAACM,kBAAkB,CAAC,CAACD,KAAK,CAAC;EACrD,MAAMO,iBAAiB,GAAGd,GAAG,CAACO,KAAK,EAAE,mBAAmB,EAAE,EAAE,CAAC;EAC7D,MAAMQ,WAAW,GAAGf,GAAG,CAACO,KAAK,EAAE,aAAa,EAAE,EAAE,CAAC;EACjD,MAAMS,gBAAgB,GA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kB;IACrCM,kBAAkB,EAAEA;EAAmB,CACvC,CAAC,EAEDF,YAAY,iBAAIjB,KAAA,CAAAoB,aAAA,CAAChB,OAAO;IAACE,KAAK,EAAEA,KAAM;IAACE,UAAU,EAAEA;EAAW,CAAE,CAC7C,CACJ,CAAC;AAErB,CAAC","ignoreList":[]}
@@ -0,0 +1,10 @@
1
+ import { statsToElementPropsBuilder } from "../../../../capabilities/offer-catalog/src/utils/stats";
2
+ export const makeDefaultOfferCardStats = productTypeBuilder => offer => {
3
+ const stats = statsToElementPropsBuilder(productTypeBuilder.stats, offer);
4
+ const topStats = statsToElementPropsBuilder(productTypeBuilder.topStats, offer);
5
+ return {
6
+ stats,
7
+ topStats
8
+ };
9
+ };
10
+ //# sourceMappingURL=statsBuilder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["statsToElementPropsBuilder","makeDefaultOfferCardStats","productTypeBuilder","offer","stats","topStats"],"sourceRoot":"../../../../../src","sources":["components/Layouts/DefaultOfferCard/statsBuilder.tsx"],"mappings":"AAEA,SAASA,0BAA0B,QAAQ,wDAAwD;AAEnG,OAAO,MAAMC,yBAAyB,GACpCC,kBAAoC,IAAMC,KAAgB,IAAK;EAC/D,MAAMC,KAAK,GAAGJ,0BAA0B,CAACE,kBAAkB,CAACE,KAAK,EAAED,KAAK,CAAC;EACzE,MAAME,QAAQ,GAAGL,0BAA0B,CAC1CE,kBAAkB,CAACG,QAAQ,EAC3BF,KACD,CAAC;EAED,OAAO;IAAEC,KAAK;IAAEC;EAAS,CAAC;AAC3B,CAAC","ignoreList":[]}
@@ -0,0 +1,39 @@
1
+ import { get } from "radash";
2
+ import React from "react";
3
+ import { SeeMore } from "../../Common/DynamicOfferCard/SeeMore";
4
+ import { BaseOfferCard, DynamicOfferCard } from "../../Common";
5
+ export const HeadlineWithDescriptionCard = ({
6
+ offer,
7
+ productTypeBuilder,
8
+ offerIndex,
9
+ showBorder,
10
+ showProductTypeLabel
11
+ }) => {
12
+ const {
13
+ headlineField = "headline",
14
+ descriptionField = "description",
15
+ descriptionPointsField = "descriptionPoints"
16
+ } = productTypeBuilder;
17
+ const headline = get(offer, headlineField, "");
18
+ const description = get(offer, descriptionField, "");
19
+ const descriptionPoints = get(offer, descriptionPointsField, []);
20
+ const legalInformation = get(offer, "legalInformation", "");
21
+ const legalLanguage = get(offer, "legalLanguage", "");
22
+ const showMoreInfo = descriptionPoints.length > 0 || !!legalLanguage;
23
+ const contentDescription = description || legalInformation;
24
+ return /*#__PURE__*/React.createElement(DynamicOfferCard, {
25
+ key: `${offerIndex}-${offer.uuid}`,
26
+ offer: offer,
27
+ offerIndex: offerIndex,
28
+ showBorder: showBorder,
29
+ showProductTypeLabel: showProductTypeLabel
30
+ }, /*#__PURE__*/React.createElement(BaseOfferCard.TopContainer, null, /*#__PURE__*/React.createElement(BaseOfferCard.Headline, null, headline)), /*#__PURE__*/React.createElement(BaseOfferCard.DescriptionHandler, {
31
+ descriptionPoints: descriptionPoints,
32
+ contentDescription: contentDescription,
33
+ hasDivider: false
34
+ }), showMoreInfo && /*#__PURE__*/React.createElement(SeeMore, {
35
+ offer: offer,
36
+ offerIndex: offerIndex
37
+ }));
38
+ };
39
+ //# sourceMappingURL=index.js.map