@moneylion/react-native-offer-carousel 1.0.0 → 1.0.1

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 (737) hide show
  1. package/README.md +44 -0
  2. package/lib/commonjs/capabilities/configuration/src/brands/checkVisualEligibility.js +30 -0
  3. package/lib/commonjs/capabilities/configuration/src/brands/checkVisualEligibility.js.map +1 -0
  4. package/lib/commonjs/capabilities/configuration/src/brands/createDerivedBrands.js +40 -0
  5. package/lib/commonjs/capabilities/configuration/src/brands/createDerivedBrands.js.map +1 -0
  6. package/lib/commonjs/capabilities/configuration/src/brands/index.js +20 -0
  7. package/lib/commonjs/capabilities/configuration/src/brands/index.js.map +1 -0
  8. package/lib/commonjs/capabilities/configuration/src/brands/types.js +13 -0
  9. package/lib/commonjs/capabilities/configuration/src/brands/types.js.map +1 -0
  10. package/lib/commonjs/capabilities/core/src/domain/third-party-search/index.js +17 -0
  11. package/lib/commonjs/capabilities/core/src/domain/third-party-search/index.js.map +1 -0
  12. package/lib/commonjs/capabilities/core/src/domain/third-party-search/orderProductTypesByRankUtils.js +33 -0
  13. package/lib/commonjs/capabilities/core/src/domain/third-party-search/orderProductTypesByRankUtils.js.map +1 -0
  14. package/lib/commonjs/capabilities/core/src/index.js +17 -0
  15. package/lib/commonjs/capabilities/core/src/index.js.map +1 -0
  16. package/lib/commonjs/capabilities/core/src/system/cnfContext/CnfContext.js +18 -0
  17. package/lib/commonjs/capabilities/core/src/system/cnfContext/CnfContext.js.map +1 -0
  18. package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/App.js +18 -0
  19. package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/App.js.map +1 -0
  20. package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Brand.js +87 -0
  21. package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Brand.js.map +1 -0
  22. package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Configuration.js +41 -0
  23. package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Configuration.js.map +1 -0
  24. package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Request.js +21 -0
  25. package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Request.js.map +1 -0
  26. package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Session.js +12 -0
  27. package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Session.js.map +1 -0
  28. package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Signals.js +41 -0
  29. package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Signals.js.map +1 -0
  30. package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Subaccount.js +26 -0
  31. package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Subaccount.js.map +1 -0
  32. package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/index.js +83 -0
  33. package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/index.js.map +1 -0
  34. package/lib/commonjs/capabilities/offer-catalog/src/api/offerCatalogApi.js +131 -0
  35. package/lib/commonjs/capabilities/offer-catalog/src/api/offerCatalogApi.js.map +1 -0
  36. package/lib/commonjs/capabilities/offer-catalog/src/index.js +65 -0
  37. package/lib/commonjs/capabilities/offer-catalog/src/index.js.map +1 -0
  38. package/lib/commonjs/capabilities/offer-catalog/src/types/offerCatalogSchema.js +2 -0
  39. package/lib/commonjs/capabilities/offer-catalog/src/types/offerCatalogSchema.js.map +1 -0
  40. package/lib/commonjs/capabilities/offer-catalog/src/utils/arrayToMarkdownList.js +11 -0
  41. package/lib/commonjs/capabilities/offer-catalog/src/utils/arrayToMarkdownList.js.map +1 -0
  42. package/lib/commonjs/capabilities/offer-catalog/src/utils/contextUtil.js +70 -0
  43. package/lib/commonjs/capabilities/offer-catalog/src/utils/contextUtil.js.map +1 -0
  44. package/lib/commonjs/capabilities/offer-catalog/src/utils/errorUtil.js +21 -0
  45. package/lib/commonjs/capabilities/offer-catalog/src/utils/errorUtil.js.map +1 -0
  46. package/lib/commonjs/capabilities/offer-catalog/src/utils/formatUtils.js +161 -0
  47. package/lib/commonjs/capabilities/offer-catalog/src/utils/formatUtils.js.map +1 -0
  48. package/lib/commonjs/capabilities/offer-catalog/src/utils/getOfferUrl.js +44 -0
  49. package/lib/commonjs/capabilities/offer-catalog/src/utils/getOfferUrl.js.map +1 -0
  50. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/annualFee.js +78 -0
  51. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/annualFee.js.map +1 -0
  52. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/boolean.js +22 -0
  53. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/boolean.js.map +1 -0
  54. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.js +60 -0
  55. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.js.map +1 -0
  56. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/common.js +20 -0
  57. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/common.js.map +1 -0
  58. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/common.spec.js +62 -0
  59. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/common.spec.js.map +1 -0
  60. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.js +32 -0
  61. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.js.map +1 -0
  62. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.js +31 -0
  63. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.js.map +1 -0
  64. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/currency.js +22 -0
  65. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/currency.js.map +1 -0
  66. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.js +46 -0
  67. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.js.map +1 -0
  68. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.js +208 -0
  69. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.js.map +1 -0
  70. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.js +20 -0
  71. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.js.map +1 -0
  72. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.js +24 -0
  73. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.js.map +1 -0
  74. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.js +21 -0
  75. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.js.map +1 -0
  76. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.js +40 -0
  77. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.js.map +1 -0
  78. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/index.js +204 -0
  79. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/index.js.map +1 -0
  80. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.js +35 -0
  81. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.js.map +1 -0
  82. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.js +43 -0
  83. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.js.map +1 -0
  84. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/percentage.js +21 -0
  85. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/percentage.js.map +1 -0
  86. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/percentage.spec.js +32 -0
  87. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/percentage.spec.js.map +1 -0
  88. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.js +76 -0
  89. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.js.map +1 -0
  90. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.js +69 -0
  91. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.js.map +1 -0
  92. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrency.js +23 -0
  93. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrency.js.map +1 -0
  94. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.js +47 -0
  95. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.js.map +1 -0
  96. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.js +72 -0
  97. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.js.map +1 -0
  98. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.js +23 -0
  99. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.js.map +1 -0
  100. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.js +29 -0
  101. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.js.map +1 -0
  102. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.js +53 -0
  103. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.js.map +1 -0
  104. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.js +46 -0
  105. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.js.map +1 -0
  106. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.js +26 -0
  107. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.js.map +1 -0
  108. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.spec.js +83 -0
  109. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.spec.js.map +1 -0
  110. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.js +28 -0
  111. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.js.map +1 -0
  112. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.js +28 -0
  113. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.js.map +1 -0
  114. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.js +21 -0
  115. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.js.map +1 -0
  116. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.js +30 -0
  117. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.js.map +1 -0
  118. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/index.js +48 -0
  119. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/index.js.map +1 -0
  120. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/types.js +6 -0
  121. package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/types.js.map +1 -0
  122. package/lib/commonjs/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/index.js +6 -0
  123. package/lib/commonjs/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/index.js.map +1 -0
  124. package/lib/commonjs/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/oas/offer-catalog.js +2 -0
  125. package/lib/commonjs/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/oas/offer-catalog.js.map +1 -0
  126. package/lib/commonjs/capabilities/offers/pipeline/src/sources/ratetables/types/PublicApi.d.js +2 -0
  127. package/lib/commonjs/capabilities/offers/pipeline/src/sources/ratetables/types/PublicApi.d.js.map +1 -0
  128. package/lib/commonjs/capabilities/offers/pipeline/src/sources/ratetables/types/index.js +6 -0
  129. package/lib/commonjs/capabilities/offers/pipeline/src/sources/ratetables/types/index.js.map +1 -0
  130. package/lib/commonjs/capabilities/offers/pipeline/src/sources/ratetables/withDeviceSignals.js +74 -0
  131. package/lib/commonjs/capabilities/offers/pipeline/src/sources/ratetables/withDeviceSignals.js.map +1 -0
  132. package/lib/commonjs/capabilities/ui/elements/src/components/MarkdownText/Abbreviation.js +61 -0
  133. package/lib/commonjs/capabilities/ui/elements/src/components/MarkdownText/Abbreviation.js.map +1 -0
  134. package/lib/commonjs/capabilities/ui/elements/src/components/MarkdownText/components.js +143 -0
  135. package/lib/commonjs/capabilities/ui/elements/src/components/MarkdownText/components.js.map +1 -0
  136. package/lib/commonjs/capabilities/ui/elements/src/components/MarkdownText/index.js +54 -0
  137. package/lib/commonjs/capabilities/ui/elements/src/components/MarkdownText/index.js.map +1 -0
  138. package/lib/commonjs/capabilities/ui/elements/src/components/MarkdownText/markdownPreprocessor.js +122 -0
  139. package/lib/commonjs/capabilities/ui/elements/src/components/MarkdownText/markdownPreprocessor.js.map +1 -0
  140. package/lib/commonjs/capabilities/ui/elements/src/components/index.js +13 -0
  141. package/lib/commonjs/capabilities/ui/elements/src/components/index.js.map +1 -0
  142. package/lib/commonjs/capabilities/ui/elements/src/components/thumbor/index.js +110 -0
  143. package/lib/commonjs/capabilities/ui/elements/src/components/thumbor/index.js.map +1 -0
  144. package/lib/commonjs/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.js +91 -0
  145. package/lib/commonjs/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.js.map +1 -0
  146. package/lib/commonjs/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.test.js +44 -0
  147. package/lib/commonjs/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.test.js.map +1 -0
  148. package/lib/commonjs/capabilities/ui/elements/src/index.js +28 -0
  149. package/lib/commonjs/capabilities/ui/elements/src/index.js.map +1 -0
  150. package/lib/commonjs/capabilities/ui/elements/src/offerCardAttributes.js +23 -0
  151. package/lib/commonjs/capabilities/ui/elements/src/offerCardAttributes.js.map +1 -0
  152. package/lib/commonjs/components/Cards/VideosCard/VideosCard.js +1 -1
  153. package/lib/commonjs/components/Common/BaseOfferCard/Stat/Stat.js +1 -1
  154. package/lib/commonjs/components/Common/BaseOfferCard/Stat/Stat.js.map +1 -1
  155. package/lib/commonjs/components/Common/BaseOfferCard/index.js +4 -4
  156. package/lib/commonjs/components/Common/BaseOfferCard/index.js.map +1 -1
  157. package/lib/commonjs/components/Layouts/CreditCardOfferCard/statsBuilder.js +1 -1
  158. package/lib/commonjs/components/Layouts/DefaultOfferCard/statsBuilder.js +1 -1
  159. package/lib/commonjs/components/Modal/DescriptionPoints.js +3 -3
  160. package/lib/commonjs/components/Modal/DescriptionPoints.js.map +1 -1
  161. package/lib/commonjs/components/Modal/Disclaimer.js +1 -1
  162. package/lib/commonjs/components/Modal/Disclaimer.js.map +1 -1
  163. package/lib/commonjs/components/MoneyLionOfferCarousel.js +1 -1
  164. package/lib/commonjs/config/mocks/cnfContext.js +143 -0
  165. package/lib/commonjs/config/mocks/cnfContext.js.map +1 -0
  166. package/lib/commonjs/pageData.js +1 -1
  167. package/lib/commonjs/services/getProductTypesByQuery.js +1 -1
  168. package/lib/commonjs/utils/formatOfferUrl.js +1 -1
  169. package/lib/commonjs/utils/getOffersByProductTypes.js +2 -2
  170. package/lib/module/capabilities/configuration/src/brands/checkVisualEligibility.js +24 -0
  171. package/lib/module/capabilities/configuration/src/brands/checkVisualEligibility.js.map +1 -0
  172. package/lib/module/capabilities/configuration/src/brands/createDerivedBrands.js +34 -0
  173. package/lib/module/capabilities/configuration/src/brands/createDerivedBrands.js.map +1 -0
  174. package/lib/module/capabilities/configuration/src/brands/index.js +3 -0
  175. package/lib/module/capabilities/configuration/src/brands/index.js.map +1 -0
  176. package/lib/module/capabilities/configuration/src/brands/types.js +6 -0
  177. package/lib/module/capabilities/configuration/src/brands/types.js.map +1 -0
  178. package/lib/module/capabilities/core/src/domain/third-party-search/index.js +2 -0
  179. package/lib/module/capabilities/core/src/domain/third-party-search/index.js.map +1 -0
  180. package/lib/module/capabilities/core/src/domain/third-party-search/orderProductTypesByRankUtils.js +26 -0
  181. package/lib/module/capabilities/core/src/domain/third-party-search/orderProductTypesByRankUtils.js.map +1 -0
  182. package/lib/module/capabilities/core/src/index.js +2 -0
  183. package/lib/module/capabilities/core/src/index.js.map +1 -0
  184. package/lib/module/capabilities/core/src/system/cnfContext/CnfContext.js +12 -0
  185. package/lib/module/capabilities/core/src/system/cnfContext/CnfContext.js.map +1 -0
  186. package/lib/module/capabilities/core/src/system/cnfContext/schemas/App.js +12 -0
  187. package/lib/module/capabilities/core/src/system/cnfContext/schemas/App.js.map +1 -0
  188. package/lib/module/capabilities/core/src/system/cnfContext/schemas/Brand.js +81 -0
  189. package/lib/module/capabilities/core/src/system/cnfContext/schemas/Brand.js.map +1 -0
  190. package/lib/module/capabilities/core/src/system/cnfContext/schemas/Configuration.js +35 -0
  191. package/lib/module/capabilities/core/src/system/cnfContext/schemas/Configuration.js.map +1 -0
  192. package/lib/module/capabilities/core/src/system/cnfContext/schemas/Request.js +15 -0
  193. package/lib/module/capabilities/core/src/system/cnfContext/schemas/Request.js.map +1 -0
  194. package/lib/module/capabilities/core/src/system/cnfContext/schemas/Session.js +6 -0
  195. package/lib/module/capabilities/core/src/system/cnfContext/schemas/Session.js.map +1 -0
  196. package/lib/module/capabilities/core/src/system/cnfContext/schemas/Signals.js +35 -0
  197. package/lib/module/capabilities/core/src/system/cnfContext/schemas/Signals.js.map +1 -0
  198. package/lib/module/capabilities/core/src/system/cnfContext/schemas/Subaccount.js +20 -0
  199. package/lib/module/capabilities/core/src/system/cnfContext/schemas/Subaccount.js.map +1 -0
  200. package/lib/module/capabilities/core/src/system/cnfContext/schemas/index.js +8 -0
  201. package/lib/module/capabilities/core/src/system/cnfContext/schemas/index.js.map +1 -0
  202. package/lib/module/capabilities/offer-catalog/src/api/offerCatalogApi.js +122 -0
  203. package/lib/module/capabilities/offer-catalog/src/api/offerCatalogApi.js.map +1 -0
  204. package/lib/module/capabilities/offer-catalog/src/index.js +5 -0
  205. package/lib/module/capabilities/offer-catalog/src/index.js.map +1 -0
  206. package/lib/module/capabilities/offer-catalog/src/types/offerCatalogSchema.js +2 -0
  207. package/lib/module/capabilities/offer-catalog/src/types/offerCatalogSchema.js.map +1 -0
  208. package/lib/module/capabilities/offer-catalog/src/utils/arrayToMarkdownList.js +4 -0
  209. package/lib/module/capabilities/offer-catalog/src/utils/arrayToMarkdownList.js.map +1 -0
  210. package/lib/module/capabilities/offer-catalog/src/utils/contextUtil.js +58 -0
  211. package/lib/module/capabilities/offer-catalog/src/utils/contextUtil.js.map +1 -0
  212. package/lib/module/capabilities/offer-catalog/src/utils/errorUtil.js +15 -0
  213. package/lib/module/capabilities/offer-catalog/src/utils/errorUtil.js.map +1 -0
  214. package/lib/module/capabilities/offer-catalog/src/utils/formatUtils.js +151 -0
  215. package/lib/module/capabilities/offer-catalog/src/utils/formatUtils.js.map +1 -0
  216. package/lib/module/capabilities/offer-catalog/src/utils/getOfferUrl.js +37 -0
  217. package/lib/module/capabilities/offer-catalog/src/utils/getOfferUrl.js.map +1 -0
  218. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/annualFee.js +71 -0
  219. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/annualFee.js.map +1 -0
  220. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/boolean.js +15 -0
  221. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/boolean.js.map +1 -0
  222. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.js +59 -0
  223. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.js.map +1 -0
  224. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/common.js +13 -0
  225. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/common.js.map +1 -0
  226. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/common.spec.js +61 -0
  227. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/common.spec.js.map +1 -0
  228. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.js +25 -0
  229. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.js.map +1 -0
  230. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.js +30 -0
  231. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.js.map +1 -0
  232. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/currency.js +15 -0
  233. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/currency.js.map +1 -0
  234. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.js +39 -0
  235. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.js.map +1 -0
  236. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.js +207 -0
  237. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.js.map +1 -0
  238. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.js +13 -0
  239. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.js.map +1 -0
  240. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.js +23 -0
  241. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.js.map +1 -0
  242. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.js +14 -0
  243. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.js.map +1 -0
  244. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.js +39 -0
  245. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.js.map +1 -0
  246. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/index.js +20 -0
  247. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/index.js.map +1 -0
  248. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.js +28 -0
  249. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.js.map +1 -0
  250. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.js +42 -0
  251. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.js.map +1 -0
  252. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/percentage.js +14 -0
  253. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/percentage.js.map +1 -0
  254. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/percentage.spec.js +31 -0
  255. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/percentage.spec.js.map +1 -0
  256. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.js +69 -0
  257. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.js.map +1 -0
  258. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.js +68 -0
  259. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.js.map +1 -0
  260. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrency.js +16 -0
  261. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrency.js.map +1 -0
  262. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.js +40 -0
  263. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.js.map +1 -0
  264. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.js +71 -0
  265. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.js.map +1 -0
  266. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.js +16 -0
  267. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.js.map +1 -0
  268. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.js +28 -0
  269. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.js.map +1 -0
  270. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.js +46 -0
  271. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.js.map +1 -0
  272. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.js +45 -0
  273. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.js.map +1 -0
  274. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.js +19 -0
  275. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.js.map +1 -0
  276. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.spec.js +82 -0
  277. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.spec.js.map +1 -0
  278. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.js +21 -0
  279. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.js.map +1 -0
  280. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.js +27 -0
  281. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.js.map +1 -0
  282. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.js +14 -0
  283. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.js.map +1 -0
  284. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.js +29 -0
  285. package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.js.map +1 -0
  286. package/lib/module/capabilities/offer-catalog/src/utils/stats/index.js +41 -0
  287. package/lib/module/capabilities/offer-catalog/src/utils/stats/index.js.map +1 -0
  288. package/lib/module/capabilities/offer-catalog/src/utils/stats/types.js +2 -0
  289. package/lib/module/capabilities/offer-catalog/src/utils/stats/types.js.map +1 -0
  290. package/lib/module/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/index.js +2 -0
  291. package/lib/module/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/index.js.map +1 -0
  292. package/lib/module/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/oas/offer-catalog.js +2 -0
  293. package/lib/module/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/oas/offer-catalog.js.map +1 -0
  294. package/lib/module/capabilities/offers/pipeline/src/sources/ratetables/types/PublicApi.d.js +2 -0
  295. package/lib/module/capabilities/offers/pipeline/src/sources/ratetables/types/PublicApi.d.js.map +1 -0
  296. package/lib/module/capabilities/offers/pipeline/src/sources/ratetables/types/index.js +2 -0
  297. package/lib/module/capabilities/offers/pipeline/src/sources/ratetables/types/index.js.map +1 -0
  298. package/lib/module/capabilities/offers/pipeline/src/sources/ratetables/withDeviceSignals.js +65 -0
  299. package/lib/module/capabilities/offers/pipeline/src/sources/ratetables/withDeviceSignals.js.map +1 -0
  300. package/lib/module/capabilities/ui/elements/src/components/MarkdownText/Abbreviation.js +50 -0
  301. package/lib/module/capabilities/ui/elements/src/components/MarkdownText/Abbreviation.js.map +1 -0
  302. package/lib/module/capabilities/ui/elements/src/components/MarkdownText/components.js +134 -0
  303. package/lib/module/capabilities/ui/elements/src/components/MarkdownText/components.js.map +1 -0
  304. package/lib/module/capabilities/ui/elements/src/components/MarkdownText/index.js +46 -0
  305. package/lib/module/capabilities/ui/elements/src/components/MarkdownText/index.js.map +1 -0
  306. package/lib/module/capabilities/ui/elements/src/components/MarkdownText/markdownPreprocessor.js +115 -0
  307. package/lib/module/capabilities/ui/elements/src/components/MarkdownText/markdownPreprocessor.js.map +1 -0
  308. package/lib/module/capabilities/ui/elements/src/components/index.js +2 -0
  309. package/lib/module/capabilities/ui/elements/src/components/index.js.map +1 -0
  310. package/lib/module/capabilities/ui/elements/src/components/thumbor/index.js +103 -0
  311. package/lib/module/capabilities/ui/elements/src/components/thumbor/index.js.map +1 -0
  312. package/lib/module/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.js +86 -0
  313. package/lib/module/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.js.map +1 -0
  314. package/lib/module/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.test.js +43 -0
  315. package/lib/module/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.test.js.map +1 -0
  316. package/lib/module/capabilities/ui/elements/src/index.js +3 -0
  317. package/lib/module/capabilities/ui/elements/src/index.js.map +1 -0
  318. package/lib/module/capabilities/ui/elements/src/offerCardAttributes.js +16 -0
  319. package/lib/module/capabilities/ui/elements/src/offerCardAttributes.js.map +1 -0
  320. package/lib/module/components/Cards/VideosCard/VideosCard.js +1 -1
  321. package/lib/module/components/Common/BaseOfferCard/Stat/Stat.js +1 -2
  322. package/lib/module/components/Common/BaseOfferCard/Stat/Stat.js.map +1 -1
  323. package/lib/module/components/Common/BaseOfferCard/index.js +3 -4
  324. package/lib/module/components/Common/BaseOfferCard/index.js.map +1 -1
  325. package/lib/module/components/Layouts/CreditCardOfferCard/statsBuilder.js +1 -1
  326. package/lib/module/components/Layouts/CreditCardOfferCard/statsBuilder.js.map +1 -1
  327. package/lib/module/components/Layouts/DefaultOfferCard/statsBuilder.js +1 -1
  328. package/lib/module/components/Layouts/DefaultOfferCard/statsBuilder.js.map +1 -1
  329. package/lib/module/components/Modal/DescriptionPoints.js +2 -2
  330. package/lib/module/components/Modal/DescriptionPoints.js.map +1 -1
  331. package/lib/module/components/Modal/Disclaimer.js +1 -1
  332. package/lib/module/components/Modal/Disclaimer.js.map +1 -1
  333. package/lib/module/components/MoneyLionOfferCarousel.js +1 -1
  334. package/lib/module/components/MoneyLionOfferCarousel.js.map +1 -1
  335. package/lib/module/config/mocks/cnfContext.js +137 -0
  336. package/lib/module/config/mocks/cnfContext.js.map +1 -0
  337. package/lib/module/pageData.js +1 -1
  338. package/lib/module/pageData.js.map +1 -1
  339. package/lib/module/services/getProductTypesByQuery.js +1 -1
  340. package/lib/module/services/getProductTypesByQuery.js.map +1 -1
  341. package/lib/module/utils/formatOfferUrl.js +1 -1
  342. package/lib/module/utils/formatOfferUrl.js.map +1 -1
  343. package/lib/module/utils/getOffersByProductTypes.js +2 -2
  344. package/lib/module/utils/getOffersByProductTypes.js.map +1 -1
  345. package/lib/typescript/builder/builder.d.ts +2 -2
  346. package/lib/typescript/builder/builder.d.ts.map +1 -1
  347. package/lib/typescript/src/capabilities/configuration/src/brands/checkVisualEligibility.d.ts.map +1 -0
  348. package/lib/typescript/{capabilities → src/capabilities}/configuration/src/brands/createDerivedBrands.d.ts +1 -1
  349. package/lib/typescript/src/capabilities/configuration/src/brands/createDerivedBrands.d.ts.map +1 -0
  350. package/lib/typescript/src/capabilities/configuration/src/brands/index.d.ts.map +1 -0
  351. package/lib/typescript/{capabilities → src/capabilities}/configuration/src/brands/types.d.ts +1 -1
  352. package/lib/typescript/src/capabilities/configuration/src/brands/types.d.ts.map +1 -0
  353. package/lib/typescript/src/capabilities/core/src/domain/third-party-search/index.d.ts.map +1 -0
  354. package/lib/typescript/src/capabilities/core/src/domain/third-party-search/orderProductTypesByRankUtils.d.ts.map +1 -0
  355. package/lib/typescript/src/capabilities/core/src/index.d.ts.map +1 -0
  356. package/lib/typescript/src/capabilities/core/src/system/cnfContext/CnfContext.d.ts.map +1 -0
  357. package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/App.d.ts.map +1 -0
  358. package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/Brand.d.ts.map +1 -0
  359. package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/Configuration.d.ts.map +1 -0
  360. package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/Request.d.ts.map +1 -0
  361. package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/Session.d.ts.map +1 -0
  362. package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/Signals.d.ts.map +1 -0
  363. package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/Subaccount.d.ts.map +1 -0
  364. package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/index.d.ts.map +1 -0
  365. package/lib/typescript/src/capabilities/offer-catalog/src/api/offerCatalogApi.d.ts.map +1 -0
  366. package/lib/typescript/src/capabilities/offer-catalog/src/index.d.ts.map +1 -0
  367. package/lib/typescript/src/capabilities/offer-catalog/src/types/offerCatalogSchema.d.ts.map +1 -0
  368. package/lib/typescript/src/capabilities/offer-catalog/src/utils/arrayToMarkdownList.d.ts.map +1 -0
  369. package/lib/typescript/src/capabilities/offer-catalog/src/utils/contextUtil.d.ts.map +1 -0
  370. package/lib/typescript/src/capabilities/offer-catalog/src/utils/errorUtil.d.ts.map +1 -0
  371. package/lib/typescript/src/capabilities/offer-catalog/src/utils/formatUtils.d.ts.map +1 -0
  372. package/lib/typescript/src/capabilities/offer-catalog/src/utils/getOfferUrl.d.ts.map +1 -0
  373. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/annualFee.d.ts.map +1 -0
  374. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/boolean.d.ts.map +1 -0
  375. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.d.ts.map +1 -0
  376. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/common.d.ts.map +1 -0
  377. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/common.spec.d.ts.map +1 -0
  378. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.d.ts.map +1 -0
  379. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.d.ts.map +1 -0
  380. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/currency.d.ts.map +1 -0
  381. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.d.ts.map +1 -0
  382. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.d.ts.map +1 -0
  383. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.d.ts.map +1 -0
  384. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.d.ts.map +1 -0
  385. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.d.ts.map +1 -0
  386. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.d.ts.map +1 -0
  387. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/index.d.ts.map +1 -0
  388. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.d.ts.map +1 -0
  389. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.d.ts.map +1 -0
  390. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/percentage.d.ts.map +1 -0
  391. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/percentage.spec.d.ts.map +1 -0
  392. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.d.ts.map +1 -0
  393. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.d.ts.map +1 -0
  394. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrency.d.ts.map +1 -0
  395. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.d.ts.map +1 -0
  396. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.d.ts.map +1 -0
  397. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.d.ts.map +1 -0
  398. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.d.ts.map +1 -0
  399. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.d.ts.map +1 -0
  400. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.d.ts.map +1 -0
  401. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.d.ts.map +1 -0
  402. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.spec.d.ts.map +1 -0
  403. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.d.ts.map +1 -0
  404. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.d.ts.map +1 -0
  405. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.d.ts.map +1 -0
  406. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.d.ts.map +1 -0
  407. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/index.d.ts.map +1 -0
  408. package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/types.d.ts.map +1 -0
  409. package/lib/typescript/src/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/index.d.ts.map +1 -0
  410. package/lib/typescript/src/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/oas/offer-catalog.d.ts.map +1 -0
  411. package/lib/typescript/src/capabilities/offers/pipeline/src/sources/ratetables/types/index.d.ts.map +1 -0
  412. package/lib/typescript/{capabilities → src/capabilities}/offers/pipeline/src/sources/ratetables/withDeviceSignals.d.ts +9 -9
  413. package/lib/typescript/src/capabilities/offers/pipeline/src/sources/ratetables/withDeviceSignals.d.ts.map +1 -0
  414. package/lib/typescript/src/capabilities/ui/elements/src/components/MarkdownText/Abbreviation.d.ts.map +1 -0
  415. package/lib/typescript/{capabilities → src/capabilities}/ui/elements/src/components/MarkdownText/components.d.ts +1 -1
  416. package/lib/typescript/src/capabilities/ui/elements/src/components/MarkdownText/components.d.ts.map +1 -0
  417. package/lib/typescript/{capabilities → src/capabilities}/ui/elements/src/components/MarkdownText/index.d.ts +1 -1
  418. package/lib/typescript/src/capabilities/ui/elements/src/components/MarkdownText/index.d.ts.map +1 -0
  419. package/lib/typescript/src/capabilities/ui/elements/src/components/MarkdownText/markdownPreprocessor.d.ts.map +1 -0
  420. package/lib/typescript/src/capabilities/ui/elements/src/components/index.d.ts.map +1 -0
  421. package/lib/typescript/src/capabilities/ui/elements/src/components/thumbor/index.d.ts.map +1 -0
  422. package/lib/typescript/src/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.d.ts.map +1 -0
  423. package/lib/typescript/src/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.test.d.ts.map +1 -0
  424. package/lib/typescript/src/capabilities/ui/elements/src/index.d.ts.map +1 -0
  425. package/lib/typescript/src/capabilities/ui/elements/src/offerCardAttributes.d.ts.map +1 -0
  426. package/lib/typescript/src/components/Common/BaseOfferCard/Stat/Stat.d.ts +5 -1
  427. package/lib/typescript/src/components/Common/BaseOfferCard/Stat/Stat.d.ts.map +1 -1
  428. package/lib/typescript/src/components/Common/BaseOfferCard/index.d.ts +2 -2
  429. package/lib/typescript/src/components/Common/BaseOfferCard/index.d.ts.map +1 -1
  430. package/lib/typescript/src/components/Common/DynamicOfferCard/CallToAction.d.ts +1 -1
  431. package/lib/typescript/src/components/Common/DynamicOfferCard/CallToAction.d.ts.map +1 -1
  432. package/lib/typescript/src/components/Common/DynamicOfferCard/SeeMore.d.ts +1 -1
  433. package/lib/typescript/src/components/Common/DynamicOfferCard/SeeMore.d.ts.map +1 -1
  434. package/lib/typescript/src/components/Common/DynamicOfferCard/index.d.ts +1 -1
  435. package/lib/typescript/src/components/Common/DynamicOfferCard/index.d.ts.map +1 -1
  436. package/lib/typescript/src/components/DynamicOffers/Render/DynamicOffersRender.d.ts +1 -1
  437. package/lib/typescript/src/components/DynamicOffers/Render/DynamicOffersRender.d.ts.map +1 -1
  438. package/lib/typescript/src/components/DynamicOffers/Render/FallbackOfferTemplate.d.ts +1 -1
  439. package/lib/typescript/src/components/DynamicOffers/Render/FallbackOfferTemplate.d.ts.map +1 -1
  440. package/lib/typescript/src/components/DynamicOffers/Render/Offer.d.ts +1 -1
  441. package/lib/typescript/src/components/DynamicOffers/Render/Offer.d.ts.map +1 -1
  442. package/lib/typescript/src/components/Layouts/CreditCardOfferCard/index.d.ts +1 -1
  443. package/lib/typescript/src/components/Layouts/CreditCardOfferCard/index.d.ts.map +1 -1
  444. package/lib/typescript/src/components/Layouts/CreditCardOfferCard/statsBuilder.d.ts +2 -2
  445. package/lib/typescript/src/components/Layouts/CreditCardOfferCard/statsBuilder.d.ts.map +1 -1
  446. package/lib/typescript/src/components/Layouts/DefaultOfferCard/index.d.ts +1 -1
  447. package/lib/typescript/src/components/Layouts/DefaultOfferCard/index.d.ts.map +1 -1
  448. package/lib/typescript/src/components/Layouts/DefaultOfferCard/statsBuilder.d.ts +3 -3
  449. package/lib/typescript/src/components/Layouts/DefaultOfferCard/statsBuilder.d.ts.map +1 -1
  450. package/lib/typescript/src/components/Layouts/HeadlineWithDescriptionCard/index.d.ts +1 -1
  451. package/lib/typescript/src/components/Layouts/HeadlineWithDescriptionCard/index.d.ts.map +1 -1
  452. package/lib/typescript/src/components/Modal/OfferDetailsModal.d.ts +1 -1
  453. package/lib/typescript/src/components/Modal/OfferDetailsModal.d.ts.map +1 -1
  454. package/lib/typescript/src/config/mocks/cnfContext.d.ts.map +1 -0
  455. package/lib/typescript/src/context/EventHandlerProvider.d.ts +1 -1
  456. package/lib/typescript/src/context/EventHandlerProvider.d.ts.map +1 -1
  457. package/lib/typescript/src/pageData.d.ts +2 -2
  458. package/lib/typescript/src/pageData.d.ts.map +1 -1
  459. package/lib/typescript/src/services/getDynamicOffers.d.ts +3 -3
  460. package/lib/typescript/src/services/getDynamicOffers.d.ts.map +1 -1
  461. package/lib/typescript/src/utils/addClientTagsToOfferLinks.d.ts +1 -1
  462. package/lib/typescript/src/utils/addClientTagsToOfferLinks.d.ts.map +1 -1
  463. package/lib/typescript/src/utils/formatOfferUrl.d.ts +1 -1
  464. package/lib/typescript/src/utils/formatOfferUrl.d.ts.map +1 -1
  465. package/lib/typescript/src/utils/getDefaultProductType.d.ts +1 -1
  466. package/lib/typescript/src/utils/getDefaultProductType.d.ts.map +1 -1
  467. package/lib/typescript/src/utils/getEnableUseCachedOffers.d.ts +1 -1
  468. package/lib/typescript/src/utils/getEnableUseCachedOffers.d.ts.map +1 -1
  469. package/lib/typescript/src/utils/getOffersBasedOnLayout.d.ts +1 -1
  470. package/lib/typescript/src/utils/getOffersBasedOnLayout.d.ts.map +1 -1
  471. package/lib/typescript/src/utils/getOffersByProductTypes.d.ts +2 -2
  472. package/lib/typescript/src/utils/getOffersByProductTypes.d.ts.map +1 -1
  473. package/lib/typescript/src/utils/getProductTypesDefinition.d.ts +1 -1
  474. package/lib/typescript/src/utils/getProductTypesDefinition.d.ts.map +1 -1
  475. package/lib/typescript/src/utils/selectDynamicOffers.d.ts +1 -1
  476. package/lib/typescript/src/utils/selectDynamicOffers.d.ts.map +1 -1
  477. package/lib/typescript/src/utils/sortOffersByRecommendationScore.d.ts +1 -1
  478. package/lib/typescript/src/utils/sortOffersByRecommendationScore.d.ts.map +1 -1
  479. package/package.json +1 -1
  480. package/src/capabilities/configuration/src/brands/checkVisualEligibility.ts +29 -0
  481. package/src/capabilities/configuration/src/brands/createDerivedBrands.ts +39 -0
  482. package/src/capabilities/configuration/src/brands/index.ts +2 -0
  483. package/src/capabilities/configuration/src/brands/types.ts +8 -0
  484. package/src/capabilities/core/src/domain/third-party-search/index.ts +1 -0
  485. package/src/capabilities/core/src/domain/third-party-search/orderProductTypesByRankUtils.ts +33 -0
  486. package/src/capabilities/core/src/index.ts +1 -0
  487. package/src/capabilities/core/src/system/cnfContext/CnfContext.ts +21 -0
  488. package/src/capabilities/core/src/system/cnfContext/schemas/App.ts +13 -0
  489. package/src/capabilities/core/src/system/cnfContext/schemas/Brand.ts +119 -0
  490. package/src/capabilities/core/src/system/cnfContext/schemas/Configuration.ts +49 -0
  491. package/src/capabilities/core/src/system/cnfContext/schemas/Request.ts +16 -0
  492. package/src/capabilities/core/src/system/cnfContext/schemas/Session.ts +9 -0
  493. package/src/capabilities/core/src/system/cnfContext/schemas/Signals.ts +47 -0
  494. package/src/capabilities/core/src/system/cnfContext/schemas/Subaccount.ts +25 -0
  495. package/src/capabilities/core/src/system/cnfContext/schemas/index.ts +7 -0
  496. package/src/capabilities/offer-catalog/src/api/offerCatalogApi.ts +171 -0
  497. package/src/capabilities/offer-catalog/src/index.ts +10 -0
  498. package/src/capabilities/offer-catalog/src/types/offerCatalogSchema.ts +119 -0
  499. package/src/capabilities/offer-catalog/src/utils/arrayToMarkdownList.ts +3 -0
  500. package/src/capabilities/offer-catalog/src/utils/contextUtil.ts +73 -0
  501. package/src/capabilities/offer-catalog/src/utils/errorUtil.ts +18 -0
  502. package/src/capabilities/offer-catalog/src/utils/formatUtils.ts +168 -0
  503. package/src/capabilities/offer-catalog/src/utils/getOfferUrl.ts +61 -0
  504. package/src/capabilities/offer-catalog/src/utils/stats/formatters/annualFee.ts +103 -0
  505. package/src/capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.ts +58 -0
  506. package/src/capabilities/offer-catalog/src/utils/stats/formatters/boolean.ts +31 -0
  507. package/src/capabilities/offer-catalog/src/utils/stats/formatters/common.spec.ts +60 -0
  508. package/src/capabilities/offer-catalog/src/utils/stats/formatters/common.ts +31 -0
  509. package/src/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.ts +29 -0
  510. package/src/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.ts +36 -0
  511. package/src/capabilities/offer-catalog/src/utils/stats/formatters/currency.ts +24 -0
  512. package/src/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.ts +206 -0
  513. package/src/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.ts +83 -0
  514. package/src/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.ts +22 -0
  515. package/src/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.ts +25 -0
  516. package/src/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.ts +38 -0
  517. package/src/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.ts +24 -0
  518. package/src/capabilities/offer-catalog/src/utils/stats/formatters/index.ts +19 -0
  519. package/src/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.ts +41 -0
  520. package/src/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.ts +52 -0
  521. package/src/capabilities/offer-catalog/src/utils/stats/formatters/percentage.spec.ts +30 -0
  522. package/src/capabilities/offer-catalog/src/utils/stats/formatters/percentage.ts +23 -0
  523. package/src/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.ts +67 -0
  524. package/src/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.ts +92 -0
  525. package/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrency.ts +34 -0
  526. package/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.ts +70 -0
  527. package/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.ts +71 -0
  528. package/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.ts +27 -0
  529. package/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.ts +38 -0
  530. package/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.ts +44 -0
  531. package/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.ts +68 -0
  532. package/src/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.spec.ts +81 -0
  533. package/src/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.ts +38 -0
  534. package/src/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.ts +26 -0
  535. package/src/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.ts +45 -0
  536. package/src/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.ts +28 -0
  537. package/src/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.ts +23 -0
  538. package/src/capabilities/offer-catalog/src/utils/stats/index.ts +141 -0
  539. package/src/capabilities/offer-catalog/src/utils/stats/types.ts +47 -0
  540. package/src/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/index.ts +6 -0
  541. package/src/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/oas/offer-catalog.ts +2272 -0
  542. package/src/capabilities/offers/pipeline/src/sources/ratetables/types/PublicApi.d.ts +1924 -0
  543. package/src/capabilities/offers/pipeline/src/sources/ratetables/types/index.ts +5 -0
  544. package/src/capabilities/offers/pipeline/src/sources/ratetables/withDeviceSignals.ts +83 -0
  545. package/src/capabilities/ui/elements/src/components/MarkdownText/Abbreviation.tsx +66 -0
  546. package/src/capabilities/ui/elements/src/components/MarkdownText/components.tsx +175 -0
  547. package/src/capabilities/ui/elements/src/components/MarkdownText/index.tsx +52 -0
  548. package/src/capabilities/ui/elements/src/components/MarkdownText/markdownPreprocessor.ts +124 -0
  549. package/src/capabilities/ui/elements/src/components/index.ts +1 -0
  550. package/src/capabilities/ui/elements/src/components/thumbor/index.tsx +115 -0
  551. package/src/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.test.ts +42 -0
  552. package/src/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.ts +110 -0
  553. package/src/capabilities/ui/elements/src/index.ts +3 -0
  554. package/src/capabilities/ui/elements/src/offerCardAttributes.ts +28 -0
  555. package/src/components/Cards/VideosCard/VideosCard.tsx +1 -1
  556. package/src/components/Common/BaseOfferCard/Stat/Stat.tsx +7 -2
  557. package/src/components/Common/BaseOfferCard/index.tsx +3 -4
  558. package/src/components/Common/DynamicOfferCard/CallToAction.tsx +1 -1
  559. package/src/components/Common/DynamicOfferCard/SeeMore.tsx +1 -1
  560. package/src/components/Common/DynamicOfferCard/index.tsx +1 -1
  561. package/src/components/DynamicOffers/Render/DynamicOffersRender.tsx +1 -1
  562. package/src/components/DynamicOffers/Render/FallbackOfferTemplate.tsx +1 -1
  563. package/src/components/DynamicOffers/Render/Offer.tsx +1 -1
  564. package/src/components/Layouts/CreditCardOfferCard/index.tsx +1 -1
  565. package/src/components/Layouts/CreditCardOfferCard/statsBuilder.tsx +2 -2
  566. package/src/components/Layouts/DefaultOfferCard/index.tsx +1 -1
  567. package/src/components/Layouts/DefaultOfferCard/statsBuilder.tsx +2 -2
  568. package/src/components/Layouts/HeadlineWithDescriptionCard/index.tsx +1 -1
  569. package/src/components/Modal/DescriptionPoints.tsx +2 -2
  570. package/src/components/Modal/Disclaimer.tsx +1 -1
  571. package/src/components/Modal/OfferDetailsModal.tsx +1 -1
  572. package/src/components/MoneyLionOfferCarousel.tsx +2 -2
  573. package/src/config/mocks/cnfContext.ts +136 -0
  574. package/src/context/EventHandlerProvider.tsx +1 -1
  575. package/src/pageData.ts +2 -2
  576. package/src/services/getDynamicOffers.ts +2 -2
  577. package/src/services/getProductTypesByQuery.ts +1 -1
  578. package/src/utils/addClientTagsToOfferLinks.ts +1 -1
  579. package/src/utils/formatOfferUrl.ts +1 -1
  580. package/src/utils/getDefaultProductType.ts +1 -1
  581. package/src/utils/getEnableUseCachedOffers.ts +1 -1
  582. package/src/utils/getOffersBasedOnLayout.ts +1 -1
  583. package/src/utils/getOffersByProductTypes.ts +3 -3
  584. package/src/utils/getProductTypesDefinition.ts +1 -1
  585. package/src/utils/selectDynamicOffers.ts +1 -1
  586. package/src/utils/sortOffersByRecommendationScore.ts +1 -1
  587. package/lib/typescript/capabilities/configuration/src/brands/checkVisualEligibility.d.ts.map +0 -1
  588. package/lib/typescript/capabilities/configuration/src/brands/createDerivedBrands.d.ts.map +0 -1
  589. package/lib/typescript/capabilities/configuration/src/brands/index.d.ts.map +0 -1
  590. package/lib/typescript/capabilities/configuration/src/brands/types.d.ts.map +0 -1
  591. package/lib/typescript/capabilities/core/src/domain/third-party-search/index.d.ts.map +0 -1
  592. package/lib/typescript/capabilities/core/src/domain/third-party-search/orderProductTypesByRankUtils.d.ts.map +0 -1
  593. package/lib/typescript/capabilities/core/src/index.d.ts.map +0 -1
  594. package/lib/typescript/capabilities/core/src/system/cnfContext/CnfContext.d.ts.map +0 -1
  595. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/App.d.ts.map +0 -1
  596. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Brand.d.ts.map +0 -1
  597. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Configuration.d.ts.map +0 -1
  598. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Request.d.ts.map +0 -1
  599. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Session.d.ts.map +0 -1
  600. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Signals.d.ts.map +0 -1
  601. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Subaccount.d.ts.map +0 -1
  602. package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/index.d.ts.map +0 -1
  603. package/lib/typescript/capabilities/offer-catalog/src/api/offerCatalogApi.d.ts.map +0 -1
  604. package/lib/typescript/capabilities/offer-catalog/src/index.d.ts.map +0 -1
  605. package/lib/typescript/capabilities/offer-catalog/src/types/offerCatalogSchema.d.ts.map +0 -1
  606. package/lib/typescript/capabilities/offer-catalog/src/utils/arrayToMarkdownList.d.ts.map +0 -1
  607. package/lib/typescript/capabilities/offer-catalog/src/utils/contextUtil.d.ts.map +0 -1
  608. package/lib/typescript/capabilities/offer-catalog/src/utils/errorUtil.d.ts.map +0 -1
  609. package/lib/typescript/capabilities/offer-catalog/src/utils/formatUtils.d.ts.map +0 -1
  610. package/lib/typescript/capabilities/offer-catalog/src/utils/getOfferUrl.d.ts.map +0 -1
  611. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/annualFee.d.ts.map +0 -1
  612. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/boolean.d.ts.map +0 -1
  613. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.d.ts.map +0 -1
  614. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/common.d.ts.map +0 -1
  615. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/common.spec.d.ts.map +0 -1
  616. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.d.ts.map +0 -1
  617. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.d.ts.map +0 -1
  618. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/currency.d.ts.map +0 -1
  619. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.d.ts.map +0 -1
  620. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.d.ts.map +0 -1
  621. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.d.ts.map +0 -1
  622. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.d.ts.map +0 -1
  623. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.d.ts.map +0 -1
  624. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.d.ts.map +0 -1
  625. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/index.d.ts.map +0 -1
  626. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.d.ts.map +0 -1
  627. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.d.ts.map +0 -1
  628. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/percentage.d.ts.map +0 -1
  629. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/percentage.spec.d.ts.map +0 -1
  630. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.d.ts.map +0 -1
  631. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.d.ts.map +0 -1
  632. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrency.d.ts.map +0 -1
  633. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.d.ts.map +0 -1
  634. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.d.ts.map +0 -1
  635. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.d.ts.map +0 -1
  636. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.d.ts.map +0 -1
  637. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.d.ts.map +0 -1
  638. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.d.ts.map +0 -1
  639. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.d.ts.map +0 -1
  640. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.spec.d.ts.map +0 -1
  641. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.d.ts.map +0 -1
  642. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.d.ts.map +0 -1
  643. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.d.ts.map +0 -1
  644. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.d.ts.map +0 -1
  645. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/index.d.ts.map +0 -1
  646. package/lib/typescript/capabilities/offer-catalog/src/utils/stats/types.d.ts.map +0 -1
  647. package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/index.d.ts.map +0 -1
  648. package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/oas/offer-catalog.d.ts.map +0 -1
  649. package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/types/index.d.ts.map +0 -1
  650. package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/withDeviceSignals.d.ts.map +0 -1
  651. package/lib/typescript/capabilities/offers/ux/src/elements/Stat/HyphenIcon.d.ts +0 -7
  652. package/lib/typescript/capabilities/offers/ux/src/elements/Stat/HyphenIcon.d.ts.map +0 -1
  653. package/lib/typescript/capabilities/offers/ux/src/elements/Stat/Stat.d.ts +0 -12
  654. package/lib/typescript/capabilities/offers/ux/src/elements/Stat/Stat.d.ts.map +0 -1
  655. package/lib/typescript/capabilities/offers/ux/src/elements/Stat/index.d.ts +0 -2
  656. package/lib/typescript/capabilities/offers/ux/src/elements/Stat/index.d.ts.map +0 -1
  657. package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/Abbreviation.d.ts.map +0 -1
  658. package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/components.d.ts.map +0 -1
  659. package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/index.d.ts.map +0 -1
  660. package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/markdownPreprocessor.d.ts.map +0 -1
  661. package/lib/typescript/capabilities/ui/elements/src/components/index.d.ts.map +0 -1
  662. package/lib/typescript/capabilities/ui/elements/src/components/thumbor/index.d.ts.map +0 -1
  663. package/lib/typescript/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.d.ts.map +0 -1
  664. package/lib/typescript/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.test.d.ts.map +0 -1
  665. package/lib/typescript/capabilities/ui/elements/src/index.d.ts.map +0 -1
  666. package/lib/typescript/capabilities/ui/elements/src/offerCardAttributes.d.ts.map +0 -1
  667. package/lib/typescript/config/mocks/cnfContext.d.ts.map +0 -1
  668. /package/lib/typescript/{capabilities → src/capabilities}/configuration/src/brands/checkVisualEligibility.d.ts +0 -0
  669. /package/lib/typescript/{capabilities → src/capabilities}/configuration/src/brands/index.d.ts +0 -0
  670. /package/lib/typescript/{capabilities → src/capabilities}/core/src/domain/third-party-search/index.d.ts +0 -0
  671. /package/lib/typescript/{capabilities → src/capabilities}/core/src/domain/third-party-search/orderProductTypesByRankUtils.d.ts +0 -0
  672. /package/lib/typescript/{capabilities → src/capabilities}/core/src/index.d.ts +0 -0
  673. /package/lib/typescript/{capabilities → src/capabilities}/core/src/system/cnfContext/CnfContext.d.ts +0 -0
  674. /package/lib/typescript/{capabilities → src/capabilities}/core/src/system/cnfContext/schemas/App.d.ts +0 -0
  675. /package/lib/typescript/{capabilities → src/capabilities}/core/src/system/cnfContext/schemas/Brand.d.ts +0 -0
  676. /package/lib/typescript/{capabilities → src/capabilities}/core/src/system/cnfContext/schemas/Configuration.d.ts +0 -0
  677. /package/lib/typescript/{capabilities → src/capabilities}/core/src/system/cnfContext/schemas/Request.d.ts +0 -0
  678. /package/lib/typescript/{capabilities → src/capabilities}/core/src/system/cnfContext/schemas/Session.d.ts +0 -0
  679. /package/lib/typescript/{capabilities → src/capabilities}/core/src/system/cnfContext/schemas/Signals.d.ts +0 -0
  680. /package/lib/typescript/{capabilities → src/capabilities}/core/src/system/cnfContext/schemas/Subaccount.d.ts +0 -0
  681. /package/lib/typescript/{capabilities → src/capabilities}/core/src/system/cnfContext/schemas/index.d.ts +0 -0
  682. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/api/offerCatalogApi.d.ts +0 -0
  683. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/index.d.ts +0 -0
  684. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/types/offerCatalogSchema.d.ts +0 -0
  685. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/arrayToMarkdownList.d.ts +0 -0
  686. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/contextUtil.d.ts +0 -0
  687. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/errorUtil.d.ts +0 -0
  688. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/formatUtils.d.ts +0 -0
  689. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/getOfferUrl.d.ts +0 -0
  690. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/annualFee.d.ts +0 -0
  691. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/boolean.d.ts +0 -0
  692. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/boolean.spec.d.ts +0 -0
  693. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/common.d.ts +0 -0
  694. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/common.spec.d.ts +0 -0
  695. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/creditBureaus.d.ts +0 -0
  696. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.d.ts +0 -0
  697. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/currency.d.ts +0 -0
  698. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/currencyOrBasis.d.ts +0 -0
  699. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.d.ts +0 -0
  700. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/freeTrialDays.d.ts +0 -0
  701. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.d.ts +0 -0
  702. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.d.ts +0 -0
  703. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.d.ts +0 -0
  704. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/index.d.ts +0 -0
  705. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.d.ts +0 -0
  706. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.d.ts +0 -0
  707. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/percentage.d.ts +0 -0
  708. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/percentage.spec.d.ts +0 -0
  709. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/purchaseApr.d.ts +0 -0
  710. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.d.ts +0 -0
  711. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/rangeCurrency.d.ts +0 -0
  712. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.d.ts +0 -0
  713. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.d.ts +0 -0
  714. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.d.ts +0 -0
  715. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.d.ts +0 -0
  716. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/rangeMonths.d.ts +0 -0
  717. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.d.ts +0 -0
  718. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/rangePercent.d.ts +0 -0
  719. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/rangePercent.spec.d.ts +0 -0
  720. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/recommendedCredit.d.ts +0 -0
  721. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.d.ts +0 -0
  722. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/rewardsDisplay.d.ts +0 -0
  723. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.d.ts +0 -0
  724. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/index.d.ts +0 -0
  725. /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/types.d.ts +0 -0
  726. /package/lib/typescript/{capabilities → src/capabilities}/offers/pipeline/src/sources/ratetables/offer-catalog/types/index.d.ts +0 -0
  727. /package/lib/typescript/{capabilities → src/capabilities}/offers/pipeline/src/sources/ratetables/offer-catalog/types/oas/offer-catalog.d.ts +0 -0
  728. /package/lib/typescript/{capabilities → src/capabilities}/offers/pipeline/src/sources/ratetables/types/index.d.ts +0 -0
  729. /package/lib/typescript/{capabilities → src/capabilities}/ui/elements/src/components/MarkdownText/Abbreviation.d.ts +0 -0
  730. /package/lib/typescript/{capabilities → src/capabilities}/ui/elements/src/components/MarkdownText/markdownPreprocessor.d.ts +0 -0
  731. /package/lib/typescript/{capabilities → src/capabilities}/ui/elements/src/components/index.d.ts +0 -0
  732. /package/lib/typescript/{capabilities → src/capabilities}/ui/elements/src/components/thumbor/index.d.ts +0 -0
  733. /package/lib/typescript/{capabilities → src/capabilities}/ui/elements/src/components/thumbor/useSvgUriViewBox.d.ts +0 -0
  734. /package/lib/typescript/{capabilities → src/capabilities}/ui/elements/src/components/thumbor/useSvgUriViewBox.test.d.ts +0 -0
  735. /package/lib/typescript/{capabilities → src/capabilities}/ui/elements/src/index.d.ts +0 -0
  736. /package/lib/typescript/{capabilities → src/capabilities}/ui/elements/src/offerCardAttributes.d.ts +0 -0
  737. /package/lib/typescript/{config → src/config}/mocks/cnfContext.d.ts +0 -0
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.annualFee = void 0;
7
+ var _radash = require("radash");
8
+ var _tsPattern = require("ts-pattern");
9
+ var _formatUtils = require("../../formatUtils");
10
+ const determineContent = ({
11
+ minAnnualFeeValue,
12
+ maxAnnualFeeValue,
13
+ annualIntroFeeValue,
14
+ annualIntroFeeTermValue,
15
+ raw
16
+ }) => {
17
+ return (0, _tsPattern.match)({
18
+ minAnnualFeeValue,
19
+ maxAnnualFeeValue,
20
+ annualIntroFeeValue,
21
+ annualIntroFeeTermValue
22
+ }).with({
23
+ annualIntroFeeValue: _tsPattern.P.not(undefined)
24
+ }, ({
25
+ annualIntroFeeValue,
26
+ annualIntroFeeTermValue,
27
+ minAnnualFeeValue,
28
+ maxAnnualFeeValue
29
+ }) => {
30
+ const postIntroFee = (0, _formatUtils.formatRange)(minAnnualFeeValue, maxAnnualFeeValue, "amount");
31
+ return `${(0, _formatUtils.formatAmount)(annualIntroFeeValue)} for ${annualIntroFeeTermValue} years, then ${postIntroFee}`;
32
+ }).with({
33
+ minAnnualFeeValue: _tsPattern.P.not(undefined),
34
+ maxAnnualFeeValue: _tsPattern.P.not(undefined)
35
+ }, ({
36
+ minAnnualFeeValue,
37
+ maxAnnualFeeValue
38
+ }) => {
39
+ if (minAnnualFeeValue === maxAnnualFeeValue) {
40
+ return (0, _formatUtils.formatAmount)(minAnnualFeeValue, raw);
41
+ }
42
+ return (0, _formatUtils.formatRange)(minAnnualFeeValue, maxAnnualFeeValue, "amount");
43
+ }).with({
44
+ minAnnualFeeValue: _tsPattern.P.not(undefined)
45
+ }, ({
46
+ minAnnualFeeValue
47
+ }) => (0, _formatUtils.formatAmount)(minAnnualFeeValue)).with({
48
+ maxAnnualFeeValue: _tsPattern.P.not(undefined)
49
+ }, ({
50
+ maxAnnualFeeValue
51
+ }) => (0, _formatUtils.formatAmount)(maxAnnualFeeValue)).otherwise(() => "See Terms");
52
+ };
53
+ const annualFee = offer => ({
54
+ label,
55
+ minAnnualFeeField,
56
+ maxAnnualFeeField,
57
+ annualIntroFeeField,
58
+ annualIntroFeeTermField,
59
+ raw = false
60
+ }) => {
61
+ const minAnnualFeeValue = (0, _radash.get)(offer, minAnnualFeeField);
62
+ const maxAnnualFeeValue = (0, _radash.get)(offer, maxAnnualFeeField);
63
+ const annualIntroFeeValue = (0, _radash.get)(offer, annualIntroFeeField);
64
+ const annualIntroFeeTermValue = (0, _radash.get)(offer, annualIntroFeeTermField);
65
+ const content = determineContent({
66
+ minAnnualFeeValue,
67
+ maxAnnualFeeValue,
68
+ annualIntroFeeValue,
69
+ annualIntroFeeTermValue,
70
+ raw
71
+ });
72
+ return {
73
+ label,
74
+ content
75
+ };
76
+ };
77
+ exports.annualFee = annualFee;
78
+ //# sourceMappingURL=annualFee.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_radash","require","_tsPattern","_formatUtils","determineContent","minAnnualFeeValue","maxAnnualFeeValue","annualIntroFeeValue","annualIntroFeeTermValue","raw","match","with","P","not","undefined","postIntroFee","formatRange","formatAmount","otherwise","annualFee","offer","label","minAnnualFeeField","maxAnnualFeeField","annualIntroFeeField","annualIntroFeeTermField","get","content","exports"],"sourceRoot":"../../../../../../../../src","sources":["capabilities/offer-catalog/src/utils/stats/formatters/annualFee.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAEA,IAAAE,YAAA,GAAAF,OAAA;AAaA,MAAMG,gBAAgB,GAAGA,CAAC;EACzBC,iBAAiB;EACjBC,iBAAiB;EACjBC,mBAAmB;EACnBC,uBAAuB;EACvBC;AAQD,CAAC,KAAK;EACL,OAAO,IAAAC,gBAAK,EAAC;IACZL,iBAAiB;IACjBC,iBAAiB;IACjBC,mBAAmB;IACnBC;EACD,CAAC,CAAC,CACAG,IAAI,CACJ;IAAEJ,mBAAmB,EAAEK,YAAC,CAACC,GAAG,CAACC,SAAS;EAAE,CAAC,EACzC,CAAC;IACAP,mBAAmB;IACnBC,uBAAuB;IACvBH,iBAAiB;IACjBC;EACD,CAAC,KAAK;IACL,MAAMS,YAAY,GAAG,IAAAC,wBAAW,EAC/BX,iBAAiB,EACjBC,iBAAiB,EACjB,QACD,CAAC;IACD,OAAO,GAAG,IAAAW,yBAAY,EACrBV,mBACD,CAAC,QAAQC,uBAAuB,gBAAgBO,YAAY,EAAE;EAC/D,CACD,CAAC,CACAJ,IAAI,CACJ;IACCN,iBAAiB,EAAEO,YAAC,CAACC,GAAG,CAACC,SAAS,CAAC;IACnCR,iBAAiB,EAAEM,YAAC,CAACC,GAAG,CAACC,SAAS;EACnC,CAAC,EACD,CAAC;IAAET,iBAAiB;IAAEC;EAAkB,CAAC,KAAK;IAC7C,IAAID,iBAAiB,KAAKC,iBAAiB,EAAE;MAC5C,OAAO,IAAAW,yBAAY,EAACZ,iBAAiB,EAAEI,GAAG,CAAC;IAC5C;IACA,OAAO,IAAAO,wBAAW,EAACX,iBAAiB,EAAEC,iBAAiB,EAAE,QAAQ,CAAC;EACnE,CACD,CAAC,CACAK,IAAI,CAAC;IAAEN,iBAAiB,EAAEO,YAAC,CAACC,GAAG,CAACC,SAAS;EAAE,CAAC,EAAE,CAAC;IAAET;EAAkB,CAAC,KACpE,IAAAY,yBAAY,EAACZ,iBAAiB,CAC/B,CAAC,CACAM,IAAI,CAAC;IAAEL,iBAAiB,EAAEM,YAAC,CAACC,GAAG,CAACC,SAAS;EAAE,CAAC,EAAE,CAAC;IAAER;EAAkB,CAAC,KACpE,IAAAW,yBAAY,EAACX,iBAAiB,CAC/B,CAAC,CACAY,SAAS,CAAC,MAAM,WAAW,CAAC;AAC/B,CAAC;AAEM,MAAMC,SAAS,GACpBC,KAAgB,IACjB,CAAC;EACAC,KAAK;EACLC,iBAAiB;EACjBC,iBAAiB;EACjBC,mBAAmB;EACnBC,uBAAuB;EACvBhB,GAAG,GAAG;AACQ,CAAC,KAAuB;EACtC,MAAMJ,iBAAiB,GAAG,IAAAqB,WAAG,EAASN,KAAK,EAAEE,iBAAiB,CAAC;EAC/D,MAAMhB,iBAAiB,GAAG,IAAAoB,WAAG,EAASN,KAAK,EAAEG,iBAAiB,CAAC;EAC/D,MAAMhB,mBAAmB,GAAG,IAAAmB,WAAG,EAASN,KAAK,EAAEI,mBAAmB,CAAC;EACnE,MAAMhB,uBAAuB,GAAG,IAAAkB,WAAG,EAASN,KAAK,EAAEK,uBAAuB,CAAC;EAE3E,MAAME,OAAO,GAAGvB,gBAAgB,CAAC;IAChCC,iBAAiB;IACjBC,iBAAiB;IACjBC,mBAAmB;IACnBC,uBAAuB;IACvBC;EACD,CAAC,CAAC;EAEF,OAAO;IACNY,KAAK;IACLM;EACD,CAAC;AACF,CAAC;AAACC,OAAA,CAAAT,SAAA,GAAAA,SAAA","ignoreList":[]}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.fromBooleanStat = void 0;
7
+ var _radash = require("radash");
8
+ const fromBooleanStat = offer => ({
9
+ label,
10
+ fieldName,
11
+ falseValue,
12
+ trueValue
13
+ }) => {
14
+ const booleanValue = (0, _radash.get)(offer, fieldName, false);
15
+ const content = booleanValue ? trueValue ?? "True" : falseValue ?? "False";
16
+ return {
17
+ label,
18
+ content
19
+ };
20
+ };
21
+ exports.fromBooleanStat = fromBooleanStat;
22
+ //# sourceMappingURL=boolean.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_radash","require","fromBooleanStat","offer","label","fieldName","falseValue","trueValue","booleanValue","get","content","exports"],"sourceRoot":"../../../../../../../../src","sources":["capabilities/offer-catalog/src/utils/stats/formatters/boolean.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAYO,MAAMC,eAAe,GAC1BC,KAAgB,IACjB,CAAC;EACAC,KAAK;EACLC,SAAS;EACTC,UAAU;EACVC;AACY,CAAC,KAAuB;EACpC,MAAMC,YAAY,GAAG,IAAAC,WAAG,EAACN,KAAK,EAAEE,SAAS,EAAE,KAAK,CAAC;EAEjD,MAAMK,OAAO,GAAGF,YAAY,GACxBD,SAAS,IAAI,MAAM,GACnBD,UAAU,IAAI,OAAQ;EAE1B,OAAO;IACNF,KAAK;IACLM;EACD,CAAC;AACF,CAAC;AAACC,OAAA,CAAAT,eAAA,GAAAA,eAAA","ignoreList":[]}
@@ -0,0 +1,60 @@
1
+ // import { describe, expect, it } from "vitest";
2
+ // import { type BooleanStat, fromBooleanStat } from "./boolean";
3
+
4
+ // describe("fromBooleanStat", () => {
5
+ // it.each([
6
+ // [
7
+ // { isAvailable: true },
8
+ // { format: "boolean", label: "Availability", fieldName: "isAvailable" },
9
+ // { label: "Availability", content: "True" },
10
+ // ],
11
+ // [
12
+ // { isAvailable: false },
13
+ // { format: "boolean", label: "Availability", fieldName: "isAvailable" },
14
+ // { label: "Availability", content: "False" },
15
+ // ],
16
+ // [
17
+ // { isAvailable: true },
18
+ // {
19
+ // format: "boolean",
20
+ // label: "Availability",
21
+ // fieldName: "isAvailable",
22
+ // trueValue: "In Stock",
23
+ // },
24
+ // { label: "Availability", content: "In Stock" },
25
+ // ],
26
+ // [
27
+ // { isAvailable: false },
28
+ // {
29
+ // format: "boolean",
30
+ // label: "Availability",
31
+ // fieldName: "isAvailable",
32
+ // falseValue: "Out of Stock",
33
+ // },
34
+ // { label: "Availability", content: "Out of Stock" },
35
+ // ],
36
+ // [
37
+ // {},
38
+ // { format: "boolean", label: "Availability", fieldName: "isAvailable" },
39
+ // { label: "Availability", content: "False" },
40
+ // ],
41
+ // [
42
+ // {},
43
+ // {
44
+ // format: "boolean",
45
+ // label: "Availability",
46
+ // fieldName: "isAvailable",
47
+ // falseValue: "Unavailable",
48
+ // },
49
+ // { label: "Availability", content: "Unavailable" },
50
+ // ],
51
+ // ])(
52
+ // "should return the correct content for offer %j and stat %j",
53
+ // (offer, stats, expected) => {
54
+ // const result = fromBooleanStat(offer as BaseOffer)(stats as BooleanStat);
55
+ // expect(result).toEqual(expected);
56
+ // }
57
+ // );
58
+ // });
59
+ "use strict";
60
+ //# sourceMappingURL=boolean.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../../../../../src","sources":["capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.ts"],"mappings":"AAAA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA","ignoreList":[]}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.fromCommonStat = void 0;
7
+ var _radash = require("radash");
8
+ const fromCommonStat = offer => ({
9
+ label = "",
10
+ capitalized,
11
+ ...stat
12
+ }) => {
13
+ const content = "fieldName" in stat ? (0, _radash.get)(offer, stat.fieldName, stat.defaultValue ?? "") : stat.value;
14
+ return {
15
+ label,
16
+ content: capitalized ? (0, _radash.capitalize)(content.toString()) : content
17
+ };
18
+ };
19
+ exports.fromCommonStat = fromCommonStat;
20
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_radash","require","fromCommonStat","offer","label","capitalized","stat","content","get","fieldName","defaultValue","value","capitalize","toString","exports"],"sourceRoot":"../../../../../../../../src","sources":["capabilities/offer-catalog/src/utils/stats/formatters/common.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAkBO,MAAMC,cAAc,GACzBC,KAAgB,IACjB,CAAC;EAAEC,KAAK,GAAG,EAAE;EAAEC,WAAW;EAAE,GAAGC;AAAiB,CAAC,KAAuB;EACvE,MAAMC,OAAO,GACZ,WAAW,IAAID,IAAI,GAChB,IAAAE,WAAG,EAACL,KAAK,EAAEG,IAAI,CAACG,SAAS,EAAEH,IAAI,CAACI,YAAY,IAAI,EAAE,CAAC,GACnDJ,IAAI,CAACK,KAAK;EAEd,OAAO;IACNP,KAAK;IACLG,OAAO,EAAEF,WAAW,GAAG,IAAAO,kBAAU,EAACL,OAAO,CAACM,QAAQ,CAAC,CAAC,CAAC,GAAGN;EACzD,CAAC;AACF,CAAC;AAACO,OAAA,CAAAZ,cAAA,GAAAA,cAAA","ignoreList":[]}
@@ -0,0 +1,62 @@
1
+ // import type { BaseOffer } from '@capabilities/offer-catalog'
2
+ // import { describe, expect, it } from 'vitest'
3
+ // import { fromCommonStat } from './common'
4
+
5
+ // describe('fromCommonStat', () => {
6
+ // it.each([
7
+ // [{ title: 'special offer' }, 'Offer Title', 'special offer'],
8
+ // [{}, 'Missing Field', ''],
9
+ // ])('should return the correct content for offer %j', (offer, label, content) => {
10
+ // const result = fromCommonStat(offer as unknown as BaseOffer)({
11
+ // label,
12
+ // fieldName: 'title',
13
+ // format: 'common',
14
+ // })
15
+ // expect(result).toEqual({
16
+ // label,
17
+ // content,
18
+ // })
19
+ // })
20
+
21
+ // it.each([
22
+ // [{ title: 'special offer' }, 'Static Value', 'Special offer'],
23
+ // [{ title: 'limited time only' }, 'Description', 'Limited time only'],
24
+ // ])(
25
+ // 'should return the correct content for offer %j and capitalized',
26
+ // (offer, label, content) => {
27
+ // const result = fromCommonStat(offer as unknown as BaseOffer)({
28
+ // label,
29
+ // fieldName: 'title',
30
+ // format: 'common',
31
+ // capitalized: true,
32
+ // })
33
+ // expect(result).toEqual({
34
+ // label,
35
+ // content,
36
+ // })
37
+ // },
38
+ // )
39
+
40
+ // it.each([
41
+ // [{ score: 600 }, '600'],
42
+ // [{ score: undefined }, 'No minimum'],
43
+ // ])(
44
+ // 'should return the correct content for offer %j with the default value and fieldName',
45
+ // (offer, content) => {
46
+ // const result = fromCommonStat(offer as unknown as BaseOffer)({
47
+ // label: 'Minimum Credit Score',
48
+ // fieldName: 'score',
49
+ // format: 'common',
50
+ // defaultValue: 'No minimum',
51
+ // capitalized: true,
52
+ // })
53
+
54
+ // expect(result).toEqual({
55
+ // label: 'Minimum Credit Score',
56
+ // content,
57
+ // })
58
+ // },
59
+ // )
60
+ // })
61
+ "use strict";
62
+ //# sourceMappingURL=common.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../../../../../src","sources":["capabilities/offer-catalog/src/utils/stats/formatters/common.spec.ts"],"mappings":"AAAA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA","ignoreList":[]}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.creditBureaus = void 0;
7
+ var _radash = require("radash");
8
+ const creditBureaus = offer => ({
9
+ label,
10
+ fieldName
11
+ }) => {
12
+ const bureaus = (0, _radash.get)(offer, fieldName);
13
+ if (!bureaus || bureaus.length === 0) {
14
+ return {
15
+ label,
16
+ content: "N/A"
17
+ };
18
+ }
19
+ const content = formatBureaus(bureaus);
20
+ return {
21
+ label,
22
+ content
23
+ };
24
+ };
25
+ exports.creditBureaus = creditBureaus;
26
+ const formatBureaus = bureaus => {
27
+ if (bureaus.length === 3) {
28
+ return "All 3 Major Bureaus";
29
+ }
30
+ return bureaus.join(" & ");
31
+ };
32
+ //# sourceMappingURL=creditBureaus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_radash","require","creditBureaus","offer","label","fieldName","bureaus","get","length","content","formatBureaus","exports","join"],"sourceRoot":"../../../../../../../../src","sources":["capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAUO,MAAMC,aAAa,GACxBC,KAAgB,IACjB,CAAC;EAAEC,KAAK;EAAEC;AAAuB,CAAC,KAAuB;EACxD,MAAMC,OAAO,GAAG,IAAAC,WAAG,EAAWJ,KAAK,EAAEE,SAAS,CAAC;EAE/C,IAAI,CAACC,OAAO,IAAIA,OAAO,CAACE,MAAM,KAAK,CAAC,EAAE;IACrC,OAAO;MACNJ,KAAK;MACLK,OAAO,EAAE;IACV,CAAC;EACF;EAEA,MAAMA,OAAO,GAAGC,aAAa,CAACJ,OAAO,CAAC;EAEtC,OAAO;IACNF,KAAK;IACLK;EACD,CAAC;AACF,CAAC;AAACE,OAAA,CAAAT,aAAA,GAAAA,aAAA;AAEH,MAAMQ,aAAa,GAAIJ,OAAiB,IAAa;EACpD,IAAIA,OAAO,CAACE,MAAM,KAAK,CAAC,EAAE;IACzB,OAAO,qBAAqB;EAC7B;EACA,OAAOF,OAAO,CAACM,IAAI,CAAC,KAAK,CAAC;AAC3B,CAAC","ignoreList":[]}
@@ -0,0 +1,31 @@
1
+ // import type { BaseOffer } from '@capabilities/offer-catalog'
2
+ // import { describe, expect, it } from 'vitest'
3
+ // import { creditBureaus } from './creditBureaus' // Update this to the correct file path
4
+
5
+ // describe('creditBureaus', () => {
6
+ // it.each([
7
+ // [
8
+ // { bureaus: ['Experian', 'Equifax', 'TransUnion'] },
9
+ // 'Bureaus',
10
+ // 'All 3 Major Bureaus',
11
+ // ],
12
+ // [{ bureaus: ['Experian', 'Equifax'] }, 'Bureaus', 'Experian & Equifax'],
13
+ // [{ bureaus: ['Experian'] }, 'Bureaus', 'Experian'],
14
+ // [{ bureaus: [] }, 'Bureaus', 'N/A'],
15
+ // [{}, 'Bureaus', 'N/A'],
16
+ // [{ bureaus: undefined }, 'Bureaus', 'N/A'],
17
+ // [{ bureaus: null }, 'Bureaus', 'N/A'], // Added test case for null bureaus
18
+ // ])('should return the correct content for offer %j', (offer, label, content) => {
19
+ // const result = creditBureaus(offer as BaseOffer)({
20
+ // label,
21
+ // fieldName: 'bureaus',
22
+ // format: 'BureausStat',
23
+ // })
24
+ // expect(result).toEqual({
25
+ // label,
26
+ // content,
27
+ // })
28
+ // })
29
+ // })
30
+ "use strict";
31
+ //# sourceMappingURL=creditBureaus.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../../../../../src","sources":["capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.ts"],"mappings":"AAAA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA","ignoreList":[]}
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.fromCurrencyStat = void 0;
7
+ var _radash = require("radash");
8
+ var _formatUtils = require("../../formatUtils");
9
+ const fromCurrencyStat = offer => ({
10
+ label,
11
+ fieldName,
12
+ raw = false
13
+ }) => {
14
+ const value = (0, _radash.get)(offer, fieldName, undefined);
15
+ const content = (0, _formatUtils.formatAmount)(value, raw);
16
+ return {
17
+ label,
18
+ content
19
+ };
20
+ };
21
+ exports.fromCurrencyStat = fromCurrencyStat;
22
+ //# sourceMappingURL=currency.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_radash","require","_formatUtils","fromCurrencyStat","offer","label","fieldName","raw","value","get","undefined","content","formatAmount","exports"],"sourceRoot":"../../../../../../../../src","sources":["capabilities/offer-catalog/src/utils/stats/formatters/currency.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAGA,IAAAC,YAAA,GAAAD,OAAA;AASO,MAAME,gBAAgB,GAC3BC,KAAgB,IACjB,CAAC;EAAEC,KAAK;EAAEC,SAAS;EAAEC,GAAG,GAAG;AAAoB,CAAC,KAAuB;EACtE,MAAMC,KAAK,GAAG,IAAAC,WAAG,EAAqBL,KAAK,EAAEE,SAAS,EAAEI,SAAS,CAAC;EAElE,MAAMC,OAAO,GAAG,IAAAC,yBAAY,EAACJ,KAAK,EAAED,GAAG,CAAC;EAExC,OAAO;IACNF,KAAK;IACLM;EACD,CAAC;AACF,CAAC;AAACE,OAAA,CAAAV,gBAAA,GAAAA,gBAAA","ignoreList":[]}
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.fromRangeCurrencyOrBasisStat = void 0;
7
+ var _radash = require("radash");
8
+ var _formatUtils = require("../../formatUtils");
9
+ const fromRangeCurrencyOrBasisStat = offer => ({
10
+ label,
11
+ initialFieldNameCurrency,
12
+ endFieldNameCurrency,
13
+ initialFieldNameBasisPoints,
14
+ endFieldNameBasisPoints
15
+ }) => {
16
+ const initialCurrencyValue = (0, _radash.get)(offer, initialFieldNameCurrency);
17
+ const endCurrencyValue = (0, _radash.get)(offer, endFieldNameCurrency);
18
+ const initialBasisPointsValue = (0, _radash.get)(offer, initialFieldNameBasisPoints);
19
+ const endBasisPointsValue = (0, _radash.get)(offer, endFieldNameBasisPoints);
20
+ const allValues = [initialCurrencyValue, endCurrencyValue, initialBasisPointsValue, endBasisPointsValue];
21
+ if (allValues.every(value => value == null)) {
22
+ return {
23
+ label,
24
+ content: "N/A"
25
+ };
26
+ }
27
+ if (allValues.every(value => value === 0)) {
28
+ return {
29
+ label,
30
+ content: "FREE"
31
+ };
32
+ }
33
+ const centsComparison = formatComparison(initialCurrencyValue, endCurrencyValue, "amount");
34
+ const basisComparison = formatComparison(initialBasisPointsValue, endBasisPointsValue, "percentage");
35
+ const content = centsComparison && basisComparison ? `${centsComparison} or ${basisComparison}` : centsComparison || basisComparison || "N/A";
36
+ return {
37
+ label,
38
+ content
39
+ };
40
+ };
41
+ exports.fromRangeCurrencyOrBasisStat = fromRangeCurrencyOrBasisStat;
42
+ const formatComparison = (value1, value2, type) => {
43
+ const comparison = (0, _formatUtils.formatRange)(value1, value2, type);
44
+ return comparison === "FREE" || comparison === "N/A" ? undefined : comparison;
45
+ };
46
+ //# sourceMappingURL=currencyOrBasis.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_radash","require","_formatUtils","fromRangeCurrencyOrBasisStat","offer","label","initialFieldNameCurrency","endFieldNameCurrency","initialFieldNameBasisPoints","endFieldNameBasisPoints","initialCurrencyValue","get","endCurrencyValue","initialBasisPointsValue","endBasisPointsValue","allValues","every","value","content","centsComparison","formatComparison","basisComparison","exports","value1","value2","type","comparison","formatRange","undefined"],"sourceRoot":"../../../../../../../../src","sources":["capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.ts"],"mappings":";;;;;;AACA,IAAAA,OAAA,GAAAC,OAAA;AAGA,IAAAC,YAAA,GAAAD,OAAA;AAWO,MAAME,4BAA4B,GACvCC,KAAgB,IACjB,CAAC;EACAC,KAAK;EACLC,wBAAwB;EACxBC,oBAAoB;EACpBC,2BAA2B;EAC3BC;AACyB,CAAC,KAAuB;EACjD,MAAMC,oBAAoB,GAAG,IAAAC,WAAG,EAC/BP,KAAK,EACLE,wBACD,CAAC;EACD,MAAMM,gBAAgB,GAAG,IAAAD,WAAG,EAC3BP,KAAK,EACLG,oBACD,CAAC;EACD,MAAMM,uBAAuB,GAAG,IAAAF,WAAG,EAClCP,KAAK,EACLI,2BACD,CAAC;EACD,MAAMM,mBAAmB,GAAG,IAAAH,WAAG,EAC9BP,KAAK,EACLK,uBACD,CAAC;EAED,MAAMM,SAAS,GAAG,CACjBL,oBAAoB,EACpBE,gBAAgB,EAChBC,uBAAuB,EACvBC,mBAAmB,CACnB;EAED,IAAIC,SAAS,CAACC,KAAK,CAAEC,KAAK,IAAKA,KAAK,IAAI,IAAI,CAAC,EAAE;IAC9C,OAAO;MAAEZ,KAAK;MAAEa,OAAO,EAAE;IAAM,CAAC;EACjC;EAEA,IAAIH,SAAS,CAACC,KAAK,CAAEC,KAAK,IAAKA,KAAK,KAAK,CAAC,CAAC,EAAE;IAC5C,OAAO;MAAEZ,KAAK;MAAEa,OAAO,EAAE;IAAO,CAAC;EAClC;EAEA,MAAMC,eAAe,GAAGC,gBAAgB,CACvCV,oBAAoB,EACpBE,gBAAgB,EAChB,QACD,CAAC;EACD,MAAMS,eAAe,GAAGD,gBAAgB,CACvCP,uBAAuB,EACvBC,mBAAmB,EACnB,YACD,CAAC;EAED,MAAMI,OAAO,GACZC,eAAe,IAAIE,eAAe,GAC/B,GAAGF,eAAe,OAAOE,eAAe,EAAE,GAC1CF,eAAe,IAAIE,eAAe,IAAI,KAAK;EAE/C,OAAO;IAAEhB,KAAK;IAAEa;EAAQ,CAAC;AAC1B,CAAC;AAACI,OAAA,CAAAnB,4BAAA,GAAAA,4BAAA;AAEH,MAAMiB,gBAAgB,GAAGA,CACxBG,MAA0B,EAC1BC,MAA0B,EAC1BC,IAA6B,KACL;EACxB,MAAMC,UAAU,GAAG,IAAAC,wBAAW,EAACJ,MAAM,EAAEC,MAAM,EAAEC,IAAI,CAAC;EACpD,OAAOC,UAAU,KAAK,MAAM,IAAIA,UAAU,KAAK,KAAK,GAAGE,SAAS,GAAGF,UAAU;AAC9E,CAAC","ignoreList":[]}
@@ -0,0 +1,208 @@
1
+ // import type { BaseOffer } from '@capabilities/offer-catalog'
2
+ // import { describe, expect, it, vi } from 'vitest'
3
+ // import {
4
+ // type RangeCurrencyOrBasisStat,
5
+ // fromRangeCurrencyOrBasisStat,
6
+ // } from './currencyOrBasis'
7
+
8
+ // const cashAdvanceOffer: BaseOffer = {
9
+ // productVersions: [1],
10
+ // descriptionPoints: [
11
+ // 'Get approved instantly* for a Cash Advance from $10 to $300',
12
+ // 'Pay no interest or late fees — there’s no credit check either',
13
+ // 'Find out how much you qualify for now',
14
+ // ],
15
+ // fastTransferFeeBasisPointsMin: 0,
16
+ // uuid: '952c00ee-c1ab-4f1e-91ba-06d1a2d53ab1',
17
+ // amountCentsMax: 30000,
18
+ // createdAt: '2024-09-23T07:38:25.339782Z',
19
+ // internalName: 'Empower - Cash Advance',
20
+ // unmonetizedUrl: 'https://empower.me/cashadvance/',
21
+ // recommendationScore: 1,
22
+ // monetizedUrl:
23
+ // 'https://empower.onelink.me/GQnh/snwhc1rs?af_sub1=[LEAD_UUID]&af_sub2=[COMPANY_UUID]&af_sub4=network',
24
+ // headline: 'Top-rated Empower app delivers up to $300 Cash Advances*',
25
+ // productType: 'CashAdvance',
26
+ // updatedAt: '2024-09-23T07:38:25.339782Z',
27
+ // monthlyFeeCentsMin: 800,
28
+ // fastTransferFeeCentsMax: 0,
29
+ // version: 2,
30
+ // url: 'https://offers.moneylion.com/ref/ee0e415f-ca65-440b-b9c1-301e25089a1f',
31
+ // demandSubAccountUuid: '1fb97335-7793-4fab-90f2-be5f8b0bc29e',
32
+ // legalLanguage:
33
+ // '*Not everyone will qualify for a Cash Advance offer. Offer amounts range from $10 - $300. As of 3/31/2024, the average offer amount is $145. Instant delivery fees may apply. See Terms.',
34
+ // fastTransferFeeBasisPointsMax: 0,
35
+ // fastTransferFeeCentsMin: 0,
36
+ // productDisplayName: 'Cash Advance',
37
+ // monthlyFeeCentsMax: 800,
38
+ // amountCentsMin: 1000,
39
+ // demandSubAccountImageUrl:
40
+ // 'https://s3.amazonaws.com/images.evenfinancial.com/logos/dev/empower_thrive_-_cpa-425-wtxnb6m5.svg',
41
+ // status: 'active',
42
+ // demandSubAccountDisplayName: 'Empower Thrive',
43
+ // isMonetized: true,
44
+ // financialInstitutionUuid: '1fb97335-7793-4fab-90f2-be5f8b0bc29e',
45
+ // financialInstitutionImageUrl:
46
+ // 'https://s3.amazonaws.com/images.evenfinancial.com/logos/dev/empower_thrive_-_cpa-425-wtxnb6m5.svg',
47
+ // financialInstitutionDisplayName: 'Empower Thrive',
48
+ // }
49
+
50
+ // describe('fromRangeCurrencyOrBasisStat', () => {
51
+ // const label = 'Test Label'
52
+ // const options: RangeCurrencyOrBasisStat = {
53
+ // format: 'rangeCurrencyOrBasis',
54
+ // label,
55
+ // initialFieldNameCurrency: 'monthlyFeeCentsMin',
56
+ // endFieldNameCurrency: 'monthlyFeeCentsMax',
57
+ // initialFieldNameBasisPoints: 'fastTransferFeeBasisPointsMin',
58
+ // endFieldNameBasisPoints: 'fastTransferFeeBasisPointsMax',
59
+ // }
60
+
61
+ // // Mock the `get` function from 'radash'
62
+ // vi.mock('radash', () => ({
63
+ // get: (obj: any, path: string, defaultValue?: any) => {
64
+ // const value = obj[path]
65
+ // return value !== undefined ? value : defaultValue
66
+ // },
67
+ // }))
68
+
69
+ // vi.mock('@capabilities/offer-catalog', () => {
70
+ // const mockFormatRange = (
71
+ // value1: number | undefined,
72
+ // value2: number | undefined,
73
+ // type: 'amount' | 'percentage',
74
+ // ) => {
75
+ // if (value1 == null && value2 == null) return 'N/A'
76
+ // if (value1 === 0 && value2 === 0) return 'FREE'
77
+ // if (value1 != null && value2 != null && value1 === value2)
78
+ // return `${value1} ${type}`
79
+ // if (value1 != null && value2 != null) return `${value1}-${value2} ${type}`
80
+ // if (value1 != null) return `${value1} ${type}`
81
+ // if (value2 != null) return `${value2} ${type}`
82
+ // return 'N/A'
83
+ // }
84
+
85
+ // return {
86
+ // formatRange: mockFormatRange,
87
+ // }
88
+ // })
89
+
90
+ // it('returns formatted content based on cashAdvanceOffer data', () => {
91
+ // const result = fromRangeCurrencyOrBasisStat(cashAdvanceOffer)(options)
92
+ // expect(result).toEqual({ label, content: '800 amount' })
93
+ // })
94
+
95
+ // it('returns FREE when all relevant values are zero in cashAdvanceOffer', () => {
96
+ // const offerWithZeros = {
97
+ // ...cashAdvanceOffer,
98
+ // monthlyFeeCentsMin: 0,
99
+ // monthlyFeeCentsMax: 0,
100
+ // fastTransferFeeBasisPointsMin: 0,
101
+ // fastTransferFeeBasisPointsMax: 0,
102
+ // }
103
+ // const result = fromRangeCurrencyOrBasisStat(offerWithZeros)(options)
104
+ // expect(result).toEqual({ label, content: 'FREE' })
105
+ // })
106
+
107
+ // it('returns N/A when all relevant values are undefined in cashAdvanceOffer', () => {
108
+ // const offerWithUndefineds = {
109
+ // ...cashAdvanceOffer,
110
+ // monthlyFeeCentsMin: undefined,
111
+ // monthlyFeeCentsMax: undefined,
112
+ // fastTransferFeeBasisPointsMin: undefined,
113
+ // fastTransferFeeBasisPointsMax: undefined,
114
+ // }
115
+ // const result = fromRangeCurrencyOrBasisStat(offerWithUndefineds)(options)
116
+ // expect(result).toEqual({ label, content: 'N/A' })
117
+ // })
118
+
119
+ // it('returns basis points range when currency values are zero', () => {
120
+ // const offerWithZeroCurrency = {
121
+ // ...cashAdvanceOffer,
122
+ // monthlyFeeCentsMin: 0,
123
+ // monthlyFeeCentsMax: 0,
124
+ // fastTransferFeeBasisPointsMin: 100,
125
+ // fastTransferFeeBasisPointsMax: 200,
126
+ // }
127
+ // const result = fromRangeCurrencyOrBasisStat(offerWithZeroCurrency)(options)
128
+ // expect(result).toEqual({ label, content: '100-200 percentage' })
129
+ // })
130
+
131
+ // it('returns both currency and basis points ranges when both are defined', () => {
132
+ // const offerWithAllValues = {
133
+ // ...cashAdvanceOffer,
134
+ // monthlyFeeCentsMin: 500,
135
+ // monthlyFeeCentsMax: 1000,
136
+ // fastTransferFeeBasisPointsMin: 50,
137
+ // fastTransferFeeBasisPointsMax: 75,
138
+ // }
139
+ // const result = fromRangeCurrencyOrBasisStat(offerWithAllValues)(options)
140
+ // expect(result).toEqual({
141
+ // label,
142
+ // content: '500-1000 amount or 50-75 percentage',
143
+ // })
144
+ // })
145
+
146
+ // it('handles single value ranges for currency in cashAdvanceOffer', () => {
147
+ // const offerWithSingleCurrency = {
148
+ // ...cashAdvanceOffer,
149
+ // monthlyFeeCentsMin: 600,
150
+ // monthlyFeeCentsMax: 600,
151
+ // }
152
+ // const result = fromRangeCurrencyOrBasisStat(offerWithSingleCurrency)(options)
153
+ // expect(result).toEqual({ label, content: '600 amount' })
154
+ // })
155
+
156
+ // it('handles missing end values gracefully in cashAdvanceOffer', () => {
157
+ // const offerWithMissingEndValues = {
158
+ // ...cashAdvanceOffer,
159
+ // monthlyFeeCentsMin: 700,
160
+ // monthlyFeeCentsMax: undefined,
161
+ // fastTransferFeeBasisPointsMin: 25,
162
+ // fastTransferFeeBasisPointsMax: undefined,
163
+ // }
164
+ // const result = fromRangeCurrencyOrBasisStat(offerWithMissingEndValues)(options)
165
+ // expect(result).toEqual({
166
+ // label,
167
+ // content: '700 amount or 25 percentage',
168
+ // })
169
+ // })
170
+
171
+ // it('excludes FREE or N/A from content if formatRange returns them', () => {
172
+ // const offerWithFreeCurrency = {
173
+ // ...cashAdvanceOffer,
174
+ // monthlyFeeCentsMin: 0,
175
+ // monthlyFeeCentsMax: 0,
176
+ // fastTransferFeeBasisPointsMin: 15,
177
+ // fastTransferFeeBasisPointsMax: 15,
178
+ // }
179
+ // const result = fromRangeCurrencyOrBasisStat(offerWithFreeCurrency)(options)
180
+ // expect(result).toEqual({ label, content: '15 percentage' })
181
+ // })
182
+
183
+ // it('prefers basis points when currency comparison is FREE or N/A', () => {
184
+ // const offerWithNoCurrency = {
185
+ // ...cashAdvanceOffer,
186
+ // monthlyFeeCentsMin: undefined,
187
+ // monthlyFeeCentsMax: undefined,
188
+ // fastTransferFeeBasisPointsMin: 20,
189
+ // fastTransferFeeBasisPointsMax: 25,
190
+ // }
191
+ // const result = fromRangeCurrencyOrBasisStat(offerWithNoCurrency)(options)
192
+ // expect(result).toEqual({ label, content: '20-25 percentage' })
193
+ // })
194
+
195
+ // it('returns N/A when formatRange returns N/A for both currency and basis points', () => {
196
+ // const offerWithNoValues = {
197
+ // ...cashAdvanceOffer,
198
+ // monthlyFeeCentsMin: undefined,
199
+ // monthlyFeeCentsMax: undefined,
200
+ // fastTransferFeeBasisPointsMin: undefined,
201
+ // fastTransferFeeBasisPointsMax: undefined,
202
+ // }
203
+ // const result = fromRangeCurrencyOrBasisStat(offerWithNoValues)(options)
204
+ // expect(result).toEqual({ label, content: 'N/A' })
205
+ // })
206
+ // })
207
+ "use strict";
208
+ //# sourceMappingURL=currencyOrBasis.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../../../../../../src","sources":["capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAAA","ignoreList":[]}