@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,162 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _reactNative = require("react-native");
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
+ 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); }
11
+ const View = ({
12
+ children,
13
+ style,
14
+ backgroundColor,
15
+ borderColor,
16
+ direction,
17
+ height,
18
+ maxHeight,
19
+ minHeight,
20
+ width,
21
+ maxWidth,
22
+ minWidth,
23
+ gap,
24
+ attributes,
25
+ testID,
26
+ ...rest
27
+ }) => {
28
+ var _styles, _styles2;
29
+ // Create a single style object directly - faster than array.filter(Boolean)
30
+ const containerStyles = {
31
+ // Background color handling
32
+ ...(backgroundColor && {
33
+ backgroundColor: ((_styles = styles[`bg${backgroundColor}`]) === null || _styles === void 0 ? void 0 : _styles.backgroundColor) || backgroundColor
34
+ }),
35
+ // Border color handling
36
+ ...(borderColor && {
37
+ borderColor: (borderColor in ["neutral", "positive", "warning", "critical", "primary"] ? (_styles2 = styles[`border${borderColor}`]) === null || _styles2 === void 0 ? void 0 : _styles2.borderColor : undefined) || borderColor
38
+ }),
39
+ // Direction handling
40
+ ...(direction && styles[`direction${direction}`]),
41
+ // Dimension styles - applied only when provided
42
+ ...(height !== undefined && {
43
+ height
44
+ }),
45
+ ...(maxHeight !== undefined && {
46
+ maxHeight
47
+ }),
48
+ ...(minHeight !== undefined && {
49
+ minHeight
50
+ }),
51
+ ...(width !== undefined && {
52
+ width
53
+ }),
54
+ ...(maxWidth !== undefined && {
55
+ maxWidth
56
+ }),
57
+ ...(minWidth !== undefined && {
58
+ minWidth
59
+ }),
60
+ // Spacing
61
+ ...(gap !== undefined && {
62
+ gap
63
+ }),
64
+ // User-provided styles (highest priority)
65
+ ...(style || {})
66
+ };
67
+ return /*#__PURE__*/_react.default.createElement(_reactNative.View, _extends({
68
+ style: containerStyles,
69
+ testID: (attributes === null || attributes === void 0 ? void 0 : attributes["data-testid"]) || testID
70
+ }, rest), children);
71
+ };
72
+ const styles = _reactNative.StyleSheet.create({
73
+ "bgneutral": {
74
+ backgroundColor: "#e0e0e0"
75
+ },
76
+ "bgneutral-faded": {
77
+ backgroundColor: "#f5f5f5"
78
+ },
79
+ "bgcritical": {
80
+ backgroundColor: "#f44336"
81
+ },
82
+ "bgcritical-faded": {
83
+ backgroundColor: "#ffebee"
84
+ },
85
+ "bgpositive": {
86
+ backgroundColor: "#4caf50"
87
+ },
88
+ "bgpositive-faded": {
89
+ backgroundColor: "#e8f5e9"
90
+ },
91
+ "bgwarning": {
92
+ backgroundColor: "#ff9800"
93
+ },
94
+ "bgwarning-faded": {
95
+ backgroundColor: "#fff3e0"
96
+ },
97
+ "bgprimary": {
98
+ backgroundColor: "#2196f3"
99
+ },
100
+ "bgprimary-faded": {
101
+ backgroundColor: "#ebfff9"
102
+ },
103
+ "bgelevation-base": {
104
+ backgroundColor: "#fafafa"
105
+ },
106
+ "bgelevation-raised": {
107
+ backgroundColor: "#eeeeee"
108
+ },
109
+ "bgelevation-overlay": {
110
+ backgroundColor: "#bdbdbd"
111
+ },
112
+ "bgpage": {
113
+ backgroundColor: "#ffffff"
114
+ },
115
+ "bgpage-faded": {
116
+ backgroundColor: "#f5f5f5"
117
+ },
118
+ "bgdisabled": {
119
+ backgroundColor: "#bdbdbd"
120
+ },
121
+ "bgdisabled-faded": {
122
+ backgroundColor: "#e0e0e0"
123
+ },
124
+ "bgbrand": {
125
+ backgroundColor: "#6200ea"
126
+ },
127
+ "bgwhite": {
128
+ backgroundColor: "#ffffff"
129
+ },
130
+ "bgblack": {
131
+ backgroundColor: "#000000"
132
+ },
133
+ "borderneutral": {
134
+ borderColor: "#bdbdbd"
135
+ },
136
+ "borderpositive": {
137
+ borderColor: "#388e3c"
138
+ },
139
+ "borderwarning": {
140
+ borderColor: "#f57c00"
141
+ },
142
+ "bordercritical": {
143
+ borderColor: "#d32f2f"
144
+ },
145
+ "borderprimary": {
146
+ borderColor: "#1976d2"
147
+ },
148
+ "directionrow": {
149
+ flexDirection: "row"
150
+ },
151
+ "directionrow-reverse": {
152
+ flexDirection: "row-reverse"
153
+ },
154
+ "directioncolumn": {
155
+ flexDirection: "column"
156
+ },
157
+ "directioncolumn-reverse": {
158
+ flexDirection: "column-reverse"
159
+ }
160
+ });
161
+ var _default = exports.default = View;
162
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","View","children","style","backgroundColor","borderColor","direction","height","maxHeight","minHeight","width","maxWidth","minWidth","gap","attributes","testID","rest","_styles","_styles2","containerStyles","styles","undefined","createElement","StyleSheet","create","flexDirection","_default","exports"],"sourceRoot":"../../../../src","sources":["components/View/index.tsx"],"mappings":"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","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=CNFProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["context/CNFProvider.tsx"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useEventHandler = exports.EventHandlerProvider = exports.EventHandlerContext = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
9
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
10
+ const EventHandlerContext = exports.EventHandlerContext = /*#__PURE__*/(0, _react.createContext)({
11
+ rateTableUuid: "",
12
+ leadUuid: ""
13
+ });
14
+ const EventHandlerProvider = ({
15
+ children,
16
+ eventHandlers
17
+ }) => {
18
+ return /*#__PURE__*/_react.default.createElement(EventHandlerContext.Provider, {
19
+ value: eventHandlers
20
+ }, children);
21
+ };
22
+ exports.EventHandlerProvider = EventHandlerProvider;
23
+ const useEventHandler = () => (0, _react.useContext)(EventHandlerContext);
24
+ exports.useEventHandler = useEventHandler;
25
+ //# sourceMappingURL=EventHandlerProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","EventHandlerContext","exports","createContext","rateTableUuid","leadUuid","EventHandlerProvider","children","eventHandlers","createElement","Provider","value","useEventHandler","useContext"],"sourceRoot":"../../../src","sources":["context/EventHandlerProvider.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAAyD,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAH,wBAAAG,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAAAV,GAAA,IAAAU,CAAA,CAAAC,GAAA,IAAAP,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAG,CAAA,IAAAT,CAAA,CAAAM,CAAA,IAAAd,CAAA,CAAAc,CAAA,YAAAN,CAAA,CAAAH,OAAA,GAAAL,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAe,GAAA,CAAAlB,CAAA,EAAAQ,CAAA,GAAAA,CAAA;AAwElD,MAAMW,mBAAmB,GAAAC,OAAA,CAAAD,mBAAA,gBAAG,IAAAE,oBAAa,EAA0B;EACzEC,aAAa,EAAE,EAAE;EACjBC,QAAQ,EAAE;AACX,CAAC,CAAC;AAEK,MAAMC,oBAGX,GAAGA,CAAC;EAAEC,QAAQ;EAAEC;AAAc,CAAC,KAAK;EACrC,oBACC9B,MAAA,CAAAS,OAAA,CAAAsB,aAAA,CAACR,mBAAmB,CAACS,QAAQ;IAACC,KAAK,EAAEH;EAAc,GACjDD,QAC4B,CAAC;AAEjC,CAAC;AAACL,OAAA,CAAAI,oBAAA,GAAAA,oBAAA;AAEK,MAAMM,eAAe,GAAGA,CAAA,KAAM,IAAAC,iBAAU,EAACZ,mBAAmB,CAAC;AAACC,OAAA,CAAAU,eAAA,GAAAA,eAAA","ignoreList":[]}
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useTheme = exports.ThemeProvider = exports.ThemeContext = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _reactNative = require("react-native");
9
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
10
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
11
+ const defaultFontFamily = {
12
+ regular: _reactNative.Platform.OS === "android" ? "sans-serif" : "System",
13
+ medium: _reactNative.Platform.OS === "android" ? "sans-serif-medium" : "System",
14
+ bold: _reactNative.Platform.OS === "android" ? "sans-serif-bold" : "System"
15
+ };
16
+ const ThemeContext = exports.ThemeContext = /*#__PURE__*/(0, _react.createContext)(null);
17
+ const useTheme = () => {
18
+ const context = (0, _react.useContext)(ThemeContext);
19
+ if (!context) {
20
+ throw new Error("useTheme must be used within a ThemeProvider");
21
+ }
22
+ return context;
23
+ };
24
+ exports.useTheme = useTheme;
25
+ const ThemeProvider = ({
26
+ palette = {},
27
+ // should be safe to assert as ThemePalette since the fallback colors are already handled by the consumers of ThemeProvider
28
+ fontFamily = {},
29
+ children
30
+ }) => {
31
+ const [theme, setTheme] = (0, _react.useState)(palette);
32
+ const [fonts, setFonts] = (0, _react.useState)({
33
+ ...defaultFontFamily,
34
+ ...fontFamily
35
+ });
36
+ const updateTheme = newTheme => {
37
+ setTheme(prevTheme => ({
38
+ ...prevTheme,
39
+ ...newTheme
40
+ }));
41
+ };
42
+ const updateFontFamily = newFontFamily => {
43
+ setFonts(prevFonts => ({
44
+ ...prevFonts,
45
+ ...newFontFamily
46
+ }));
47
+ };
48
+ const contextValue = {
49
+ theme,
50
+ fontFamily: fonts,
51
+ updateTheme,
52
+ updateFontFamily
53
+ };
54
+ return /*#__PURE__*/_react.default.createElement(ThemeContext.Provider, {
55
+ value: contextValue
56
+ }, children);
57
+ };
58
+ exports.ThemeProvider = ThemeProvider;
59
+ //# sourceMappingURL=ThemeProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","defaultFontFamily","regular","Platform","OS","medium","bold","ThemeContext","exports","createContext","useTheme","context","useContext","Error","ThemeProvider","palette","fontFamily","children","theme","setTheme","useState","fonts","setFonts","updateTheme","newTheme","prevTheme","updateFontFamily","newFontFamily","prevFonts","contextValue","createElement","Provider","value"],"sourceRoot":"../../../src","sources":["context/ThemeProvider.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAOA,IAAAC,YAAA,GAAAD,OAAA;AAAwC,SAAAE,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAJ,wBAAAI,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAAAV,GAAA,IAAAU,CAAA,CAAAC,GAAA,IAAAP,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAG,CAAA,IAAAT,CAAA,CAAAM,CAAA,IAAAd,CAAA,CAAAc,CAAA,YAAAN,CAAA,CAAAH,OAAA,GAAAL,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAe,GAAA,CAAAlB,CAAA,EAAAQ,CAAA,GAAAA,CAAA;AAiBxC,MAAMW,iBAA6B,GAAG;EACrCC,OAAO,EAAEC,qBAAQ,CAACC,EAAE,KAAK,SAAS,GAAG,YAAY,GAAG,QAAQ;EAC5DC,MAAM,EAAEF,qBAAQ,CAACC,EAAE,KAAK,SAAS,GAAG,mBAAmB,GAAG,QAAQ;EAClEE,IAAI,EAAEH,qBAAQ,CAACC,EAAE,KAAK,SAAS,GAAG,iBAAiB,GAAG;AACvD,CAAC;AASM,MAAMG,YAAY,GAAAC,OAAA,CAAAD,YAAA,gBAAG,IAAAE,oBAAa,EAA0B,IAAI,CAAC;AAEjE,MAAMC,QAAQ,GAAGA,CAAA,KAAM;EAC7B,MAAMC,OAAO,GAAG,IAAAC,iBAAU,EAACL,YAAY,CAAC;EACxC,IAAI,CAACI,OAAO,EAAE;IACb,MAAM,IAAIE,KAAK,CAAC,8CAA8C,CAAC;EAChE;EACA,OAAOF,OAAO;AACf,CAAC;AAACH,OAAA,CAAAE,QAAA,GAAAA,QAAA;AAQK,MAAMI,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,GAAG,IAAAC,eAAQ,EAAeL,OAAO,CAAC;EACzD,MAAM,CAACM,KAAK,EAAEC,QAAQ,CAAC,GAAG,IAAAF,eAAQ,EAAa;IAC9C,GAAGnB,iBAAiB;IACpB,GAAGe;EACJ,CAAC,CAAC;EAEF,MAAMO,WAAW,GAAIC,QAA+B,IAAK;IACxDL,QAAQ,CAAEM,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;IACpBX,KAAK;IACLF,UAAU,EAAEK,KAAK;IACjBE,WAAW;IACXG;EACD,CAAC;EAED,oBACCjD,MAAA,CAAAU,OAAA,CAAA2C,aAAA,CAACvB,YAAY,CAACwB,QAAQ;IAACC,KAAK,EAAEH;EAAa,GACzCZ,QACqB,CAAC;AAE1B,CAAC;AAACT,OAAA,CAAAM,aAAA,GAAAA,aAAA","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=configuration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["deps/configuration.ts"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ var _MoneyLionOfferCarousel = require("./components/MoneyLionOfferCarousel");
7
+ Object.keys(_MoneyLionOfferCarousel).forEach(function (key) {
8
+ if (key === "default" || key === "__esModule") return;
9
+ if (key in exports && exports[key] === _MoneyLionOfferCarousel[key]) return;
10
+ Object.defineProperty(exports, key, {
11
+ enumerable: true,
12
+ get: function () {
13
+ return _MoneyLionOfferCarousel[key];
14
+ }
15
+ });
16
+ });
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_MoneyLionOfferCarousel","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;AAAA,IAAAA,uBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,uBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,uBAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,uBAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getPageData = getPageData;
7
+ var _contextUtil = require("../capabilities/offer-catalog/src/utils/contextUtil");
8
+ var _getDynamicOffers = require("./services/getDynamicOffers");
9
+ var _utils = require("./utils");
10
+ var _getEnableUseCachedOffers = require("./utils/getEnableUseCachedOffers");
11
+ // import { getDynamicOffers } from "./services/getDynamicOffers";
12
+
13
+ async function getPageData({
14
+ context,
15
+ params,
16
+ onRateTableSubmit
17
+ }) {
18
+ const {
19
+ productType,
20
+ query,
21
+ tags,
22
+ displayLayout,
23
+ searchAPIToken,
24
+ showProductTypeLabel
25
+ } = params;
26
+
27
+ // Resolve Tags
28
+ const resolvedTags = `${tags === null || tags === void 0 ? void 0 : tags.trim()}`;
29
+ const enableUseCachedOffers = (0, _getEnableUseCachedOffers.getEnableUseCachedOffers)(context);
30
+ const defaultProductType = (0, _utils.getDefaultProductType)(context);
31
+
32
+ // TODO: Check if this is needed or if we can remove it
33
+ // const parsedStaticProductTypes = parseStringProductTypes(staticProductTypes);
34
+
35
+ const isDev = (0, _contextUtil.getIsDevEnvironment)(context);
36
+ const {
37
+ productTypesDefinition,
38
+ partnersOverrideDefinition
39
+ } = (0, _utils.getProductTypesDefinition)(context);
40
+ const currentCountry = context.signals.deviceSignals.country;
41
+ const safeTags = encodeURI(resolvedTags);
42
+ const safeDisplayLayout = (0, _utils.getLayout)(displayLayout);
43
+
44
+ // Get product types and result type
45
+ const {
46
+ productTypes,
47
+ resultType
48
+ } = await (0, _utils.resolveProductTypes)({
49
+ defaultProductType,
50
+ productType,
51
+ query,
52
+ searchAPIToken,
53
+ isDev
54
+ });
55
+ onRateTableSubmit === null || onRateTableSubmit === void 0 || onRateTableSubmit({
56
+ timestamp: new Date().toISOString(),
57
+ productTypes,
58
+ resultType,
59
+ defaultProductType
60
+ });
61
+
62
+ // Get offers
63
+ const {
64
+ offers,
65
+ isError,
66
+ leadUuid,
67
+ rateTableUuid
68
+ } = await (0, _getDynamicOffers.getDynamicOffers)({
69
+ tags: safeTags,
70
+ displayLayout: safeDisplayLayout,
71
+ productTypes,
72
+ resultType,
73
+ enableUseCachedOffers,
74
+ productTypesDefinition: [...productTypesDefinition],
75
+ partnersOverrideDefinition: [...partnersOverrideDefinition],
76
+ context,
77
+ defaultProductType
78
+ });
79
+ return {
80
+ isError,
81
+ leadUuid,
82
+ rateTableUuid,
83
+ // title,
84
+ offers,
85
+ currentCountry,
86
+ // videosContent,
87
+ // showBorder,
88
+ // shouldHideFooter,
89
+ showProductTypeLabel,
90
+ displayLayout: safeDisplayLayout
91
+ };
92
+ }
93
+ //# sourceMappingURL=pageData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_contextUtil","require","_getDynamicOffers","_utils","_getEnableUseCachedOffers","getPageData","context","params","onRateTableSubmit","productType","query","tags","displayLayout","searchAPIToken","showProductTypeLabel","resolvedTags","trim","enableUseCachedOffers","getEnableUseCachedOffers","defaultProductType","getDefaultProductType","isDev","getIsDevEnvironment","productTypesDefinition","partnersOverrideDefinition","getProductTypesDefinition","currentCountry","signals","deviceSignals","country","safeTags","encodeURI","safeDisplayLayout","getLayout","productTypes","resultType","resolveProductTypes","timestamp","Date","toISOString","offers","isError","leadUuid","rateTableUuid","getDynamicOffers"],"sourceRoot":"../../src","sources":["pageData.ts"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AAGA,IAAAC,iBAAA,GAAAD,OAAA;AAEA,IAAAE,MAAA,GAAAF,OAAA;AAMA,IAAAG,yBAAA,GAAAH,OAAA;AAPA;;AAeO,eAAeI,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,GAAG,IAAAC,kDAAwB,EAACZ,OAAO,CAAC;EAE/D,MAAMa,kBAAkB,GAAG,IAAAC,4BAAqB,EAACd,OAAO,CAAC;;EAEzD;EACA;;EAEA,MAAMe,KAAK,GAAG,IAAAC,gCAAmB,EAAChB,OAAO,CAAC;EAE1C,MAAM;IAAEiB,sBAAsB;IAAEC;EAA2B,CAAC,GAC3D,IAAAC,gCAAyB,EAACnB,OAAO,CAAC;EAEnC,MAAMoB,cAAc,GAAGpB,OAAO,CAACqB,OAAO,CAACC,aAAa,CAACC,OAAO;EAE5D,MAAMC,QAAQ,GAAGC,SAAS,CAAChB,YAAY,CAAC;EAExC,MAAMiB,iBAAiB,GAAG,IAAAC,gBAAS,EAACrB,aAAa,CAAC;;EAElD;EACA,MAAM;IAAEsB,YAAY;IAAEC;EAAW,CAAC,GAAG,MAAM,IAAAC,0BAAmB,EAAC;IAC9DjB,kBAAkB;IAClBV,WAAW;IACXC,KAAK;IACLG,cAAc;IACdQ;EACD,CAAC,CAAC;EAEFb,iBAAiB,aAAjBA,iBAAiB,eAAjBA,iBAAiB,CAAG;IACnB6B,SAAS,EAAE,IAAIC,IAAI,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC;IACnCL,YAAY;IACZC,UAAU;IACVhB;EACD,CAAC,CAAC;;EAEF;EACA,MAAM;IAAEqB,MAAM;IAAEC,OAAO;IAAEC,QAAQ;IAAEC;EAAc,CAAC,GAAG,MAAM,IAAAC,kCAAgB,EAAC;IAC3EjC,IAAI,EAAEmB,QAAQ;IACdlB,aAAa,EAAEoB,iBAAiB;IAChCE,YAAY;IACZC,UAAU;IACVlB,qBAAqB;IACrBM,sBAAsB,EAAE,CAAC,GAAGA,sBAAsB,CAAC;IACnDC,0BAA0B,EAAE,CAAC,GAAGA,0BAA0B,CAAC;IAC3DlB,OAAO;IACPa;EACD,CAAC,CAAC;EAEF,OAAO;IACNsB,OAAO;IACPC,QAAQ;IACRC,aAAa;IACb;IACAH,MAAM;IACNd,cAAc;IACd;IACA;IACA;IACAZ,oBAAoB;IACpBF,aAAa,EAAEoB;EAChB,CAAC;AACF","ignoreList":[]}
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getDynamicOffers = void 0;
7
+ var _radash = require("radash");
8
+ var _utils = require("../utils");
9
+ var _sortOffersByRecommendationScore = require("../utils/sortOffersByRecommendationScore");
10
+ var _effect = require("effect");
11
+ var _formatOfferUrl = require("../utils/formatOfferUrl");
12
+ var _getOffersBasedOnLayout = require("../utils/getOffersBasedOnLayout");
13
+ /**
14
+ * Retrieves dynamic offers based on the provided parameters.
15
+ *
16
+ * @param {GetDynamicOffersProps} params - The parameters for retrieving dynamic offers.
17
+ * @returns {Promise<{ productTypeDisplayName: string; offers: typeof offers }>} An object containing the product type display name and the offers.
18
+ */
19
+ const getDynamicOffers = async ({
20
+ tags,
21
+ displayLayout,
22
+ defaultProductType,
23
+ productTypes,
24
+ resultType,
25
+ enableUseCachedOffers,
26
+ productTypesDefinition,
27
+ partnersOverrideDefinition,
28
+ context
29
+ }) => {
30
+ // Get the initial offers
31
+ const initialOffersData = await (0, _utils.getOffersByProductTypes)({
32
+ enableUseCachedOffers,
33
+ productTypes,
34
+ tags,
35
+ context
36
+ });
37
+
38
+ // If no initial offers are returned, get offers for the default product type
39
+ // if initial offers are returned, return them
40
+ const offersData = (0, _radash.isEmpty)(initialOffersData === null || initialOffersData === void 0 ? void 0 : initialOffersData.offers) ? await (0, _utils.getOffersByProductTypes)({
41
+ enableUseCachedOffers,
42
+ productTypes: [defaultProductType],
43
+ tags,
44
+ context
45
+ }) : initialOffersData;
46
+ const sortedOffers = resultType === "QUERY" ? (0, _utils.selectDynamicOffers)(offersData.offers, productTypes) : (0, _sortOffersByRecommendationScore.sortOffersByRecommendationScore)(offersData.offers);
47
+ return {
48
+ offers: (0, _effect.pipe)(sortedOffers, (0, _formatOfferUrl.formatOfferUrl)(productTypesDefinition, partnersOverrideDefinition), (0, _utils.addClientTagsToOfferLinks)(enableUseCachedOffers, tags), (0, _getOffersBasedOnLayout.getOffersBasedOnLayout)(displayLayout)),
49
+ isError: offersData.isError,
50
+ leadUuid: offersData.leadUuid,
51
+ rateTableUuid: offersData.uuid
52
+ };
53
+ };
54
+ exports.getDynamicOffers = getDynamicOffers;
55
+ //# sourceMappingURL=getDynamicOffers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_radash","require","_utils","_sortOffersByRecommendationScore","_effect","_formatOfferUrl","_getOffersBasedOnLayout","getDynamicOffers","tags","displayLayout","defaultProductType","productTypes","resultType","enableUseCachedOffers","productTypesDefinition","partnersOverrideDefinition","context","initialOffersData","getOffersByProductTypes","offersData","isEmpty","offers","sortedOffers","selectDynamicOffers","sortOffersByRecommendationScore","pipe","formatOfferUrl","addClientTagsToOfferLinks","getOffersBasedOnLayout","isError","leadUuid","rateTableUuid","uuid","exports"],"sourceRoot":"../../../src","sources":["services/getDynamicOffers.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAMA,IAAAC,MAAA,GAAAD,OAAA;AAUA,IAAAE,gCAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,eAAA,GAAAJ,OAAA;AACA,IAAAK,uBAAA,GAAAL,OAAA;AAqBA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMM,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,MAAM,IAAAC,8BAAuB,EAAC;IACvDL,qBAAqB;IACrBF,YAAY;IACZH,IAAI;IACJQ;EACD,CAAC,CAAC;;EAEF;EACA;EACA,MAAMG,UAAU,GAAG,IAAAC,eAAO,EAACH,iBAAiB,aAAjBA,iBAAiB,uBAAjBA,iBAAiB,CAAEI,MAAM,CAAC,GAClD,MAAM,IAAAH,8BAAuB,EAAC;IAC9BL,qBAAqB;IACrBF,YAAY,EAAE,CAACD,kBAAkB,CAAC;IAClCF,IAAI;IACJQ;EACD,CAAC,CAAC,GACDC,iBAAiB;EAEpB,MAAMK,YAAY,GACjBV,UAAU,KAAK,OAAO,GACnB,IAAAW,0BAAmB,EAACJ,UAAU,CAACE,MAAM,EAAEV,YAAY,CAAC,GACpD,IAAAa,gEAA+B,EAACL,UAAU,CAACE,MAAM,CAAC;EAEtD,OAAO;IACNA,MAAM,EAAE,IAAAI,YAAI,EACXH,YAAY,EACZ,IAAAI,8BAAc,EAACZ,sBAAsB,EAAEC,0BAA0B,CAAC,EAClE,IAAAY,gCAAyB,EAACd,qBAAqB,EAAEL,IAAI,CAAC,EACtD,IAAAoB,8CAAsB,EAACnB,aAAa,CACrC,CAAC;IACDoB,OAAO,EAAEV,UAAU,CAACU,OAAO;IAC3BC,QAAQ,EAAEX,UAAU,CAACW,QAAQ;IAC7BC,aAAa,EAAEZ,UAAU,CAACa;EAC3B,CAAC;AACF,CAAC;AAACC,OAAA,CAAA1B,gBAAA,GAAAA,gBAAA","ignoreList":[]}
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getProductTypes = void 0;
7
+ var _getProductTypesByQuery = require("./getProductTypesByQuery");
8
+ const parseProductTypes = query => {
9
+ return query.includes(",") ? query.split(",").map(productType => productType.trim()) : [query];
10
+ };
11
+
12
+ /**
13
+ * Get the product types
14
+ * @param props - The properties to get the product types
15
+ * @returns The product types
16
+ */
17
+ const getProductTypes = async ({
18
+ productType,
19
+ defaultProductType,
20
+ query,
21
+ searchAPIToken,
22
+ isDev
23
+ }) => {
24
+ if (query && query.trim().length > 0) {
25
+ const productTypes = await (0, _getProductTypesByQuery.getProductTypesByQuery)({
26
+ query,
27
+ searchAPIToken,
28
+ isDev
29
+ });
30
+ return {
31
+ productTypes,
32
+ resultType: "QUERY"
33
+ };
34
+ }
35
+
36
+ // TODO: Check if need to add support for productType as enf app
37
+ if (productType && productType.trim().length > 0) {
38
+ const productTypes = await parseProductTypes(productType);
39
+ return {
40
+ productTypes,
41
+ resultType: "PRODUCT_TYPE"
42
+ };
43
+ }
44
+ return {
45
+ productTypes: [defaultProductType],
46
+ resultType: "DEFAULT"
47
+ };
48
+ };
49
+ exports.getProductTypes = getProductTypes;
50
+ //# sourceMappingURL=getProductTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_getProductTypesByQuery","require","parseProductTypes","query","includes","split","map","productType","trim","getProductTypes","defaultProductType","searchAPIToken","isDev","length","productTypes","getProductTypesByQuery","resultType","exports"],"sourceRoot":"../../../src","sources":["services/getProductTypes.ts"],"mappings":";;;;;;AAAA,IAAAA,uBAAA,GAAAC,OAAA;AAiBA,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;AACO,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,MAAM,IAAAC,8CAAsB,EAAC;MACjDZ,KAAK;MACLQ,cAAc;MACdC;IACD,CAAC,CAAC;IAEF,OAAO;MAAEE,YAAY;MAAEE,UAAU,EAAE;IAAQ,CAAC;EAC7C;;EAEA;EACA,IAAIT,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;MAAEE,UAAU,EAAE;IAAe,CAAC;EACpD;EAEA,OAAO;IAAEF,YAAY,EAAE,CAACJ,kBAAkB,CAAC;IAAEM,UAAU,EAAE;EAAU,CAAC;AACrE,CAAC;AAACC,OAAA,CAAAR,eAAA,GAAAA,eAAA","ignoreList":[]}
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.getProductTypesByQuery = void 0;
7
+ var _effect = require("effect");
8
+ var _thirdPartySearch = require("../../capabilities/core/src/domain/third-party-search");
9
+ var _apiEnvironment = require("../apiEnvironment");
10
+ /**
11
+ * Get product types by query
12
+ * @param query {string} - The query to get the product types for
13
+ * @param context The context to get the product types from
14
+ * @returns {Promise<string[]>} The product types
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * const productTypes = await getProductTypesByQuery('best credit cards', {
19
+ * cnfEnv: {
20
+ * THIRD_PARTY_SEARCH_API_URL: 'https://api.third-party-search.com',
21
+ * THIRD_PARTY_SEARCH_API_TOKEN: 'your-token',
22
+ * },
23
+ * thirdPartySearchApiClient: makeThirdPartySearchApiClient,
24
+ * })
25
+ * // productTypes = ['credit-card', 'loan', 'insurance']
26
+ * or
27
+ * // productTypes = []
28
+ * ```
29
+ */
30
+
31
+ const getProductTypesByQuery = async ({
32
+ query,
33
+ searchAPIToken,
34
+ isDev
35
+ }) => {
36
+ const url = `${(0, _apiEnvironment.getEwsSearchApiBaseUrl)(isDev)}/search/product-types?query=${encodeURIComponent(query)}`;
37
+ const headers = {
38
+ Authorization: `Bearer ${searchAPIToken}`
39
+ };
40
+ try {
41
+ const response = await fetch(url, {
42
+ headers
43
+ });
44
+ if (!response.ok) {
45
+ throw new Error();
46
+ }
47
+ const productTypes = await response.json();
48
+ return (0, _effect.pipe)(productTypes, _thirdPartySearch.orderProductTypesByRank);
49
+ } catch (error) {
50
+ console.error("Error fetching ProductTypesByQuery", JSON.stringify(error));
51
+ return [];
52
+ }
53
+ };
54
+ exports.getProductTypesByQuery = getProductTypesByQuery;
55
+ //# sourceMappingURL=getProductTypesByQuery.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_effect","require","_thirdPartySearch","_apiEnvironment","getProductTypesByQuery","query","searchAPIToken","isDev","url","getEwsSearchApiBaseUrl","encodeURIComponent","headers","Authorization","response","fetch","ok","Error","productTypes","json","pipe","orderProductTypesByRank","error","console","JSON","stringify","exports"],"sourceRoot":"../../../src","sources":["services/getProductTypesByQuery.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAF,OAAA;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO,MAAMG,sBAAsB,GAAG,MAAAA,CAAO;EAC5CC,KAAK;EACLC,cAAc;EACdC;AAC4B,CAAC,KAAK;EAClC,MAAMC,GAAG,GAAG,GAAG,IAAAC,sCAAsB,EAACF,KAAK,CAAC,+BAA+BG,kBAAkB,CAACL,KAAK,CAAC,EAAE;EACtG,MAAMM,OAAO,GAAG;IACfC,aAAa,EAAE,UAAUN,cAAc;EACxC,CAAC;EACD,IAAI;IACH,MAAMO,QAAQ,GAAG,MAAMC,KAAK,CAACN,GAAG,EAAE;MAAEG;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,OAAO,IAAAC,YAAI,EAACF,YAAY,EAAEG,yCAAuB,CAAC;EACnD,CAAC,CAAC,OAAOC,KAAK,EAAE;IACfC,OAAO,CAACD,KAAK,CAAC,oCAAoC,EAAEE,IAAI,CAACC,SAAS,CAACH,KAAK,CAAC,CAAC;IAC1E,OAAO,EAAE;EACV;AACD,CAAC;AAACI,OAAA,CAAArB,sBAAA,GAAAA,sBAAA","ignoreList":[]}
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.addClientTagsToOfferLinks = void 0;
7
+ /**
8
+ * Add client tags to offer links
9
+ * @param enableUseCachedOffers - Whether to use cached offers
10
+ * @param clientTags - The client tags
11
+ * @returns The offers with the client tags added to the links
12
+ */
13
+ const addClientTagsToOfferLinks = (enableUseCachedOffers, clientTags) => offers => {
14
+ if (!enableUseCachedOffers) {
15
+ return offers;
16
+ }
17
+ return offers.map(offer => {
18
+ return {
19
+ ...offer,
20
+ url: `${offer.url}?${clientTags}`
21
+ };
22
+ });
23
+ };
24
+ exports.addClientTagsToOfferLinks = addClientTagsToOfferLinks;
25
+ //# sourceMappingURL=addClientTagsToOfferLinks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["addClientTagsToOfferLinks","enableUseCachedOffers","clientTags","offers","map","offer","url","exports"],"sourceRoot":"../../../src","sources":["utils/addClientTagsToOfferLinks.ts"],"mappings":";;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACO,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;AAACK,OAAA,CAAAP,yBAAA,GAAAA,yBAAA","ignoreList":[]}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.formatOfferUrl = void 0;
7
+ var _src = require("../../capabilities/offer-catalog/src");
8
+ /**
9
+ * Format the offer URL
10
+ * @param offers - The offers to format if needed
11
+ * @returns The offers with the formatted URL
12
+ */
13
+ const formatOfferUrl = (productTypesDefinition, partnersOverrideDefinition) => offers => {
14
+ return offers.map(offer => {
15
+ const {
16
+ url,
17
+ overrideUrl
18
+ } = (0, _src.getOfferUrl)({
19
+ offer,
20
+ productTypesDefinition,
21
+ partnersOverrideDefinition
22
+ });
23
+ return {
24
+ ...offer,
25
+ url,
26
+ overrideUrl
27
+ };
28
+ });
29
+ };
30
+ exports.formatOfferUrl = formatOfferUrl;
31
+ //# sourceMappingURL=formatOfferUrl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_src","require","formatOfferUrl","productTypesDefinition","partnersOverrideDefinition","offers","map","offer","url","overrideUrl","getOfferUrl","exports"],"sourceRoot":"../../../src","sources":["utils/formatOfferUrl.ts"],"mappings":";;;;;;AAAA,IAAAA,IAAA,GAAAC,OAAA;AAOA;AACA;AACA;AACA;AACA;AACO,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,GAAG,IAAAC,gBAAW,EAAC;MACxCH,KAAK;MACLJ,sBAAsB;MACtBC;IACD,CAAC,CAAC;IAEF,OAAO;MACN,GAAGG,KAAK;MACRC,GAAG;MACHC;IACD,CAAC;EACF,CAAC,CAAC;AACH,CAAC;AAACE,OAAA,CAAAT,cAAA,GAAAA,cAAA","ignoreList":[]}