@moneylion/react-native-offer-carousel 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/lib/commonjs/apiEnvironment.js +24 -0
- package/lib/commonjs/apiEnvironment.js.map +1 -0
- package/lib/commonjs/components/Button/index.js +119 -0
- package/lib/commonjs/components/Button/index.js.map +1 -0
- package/lib/commonjs/components/Cards/VideosCard/VideoContent.js +40 -0
- package/lib/commonjs/components/Cards/VideosCard/VideoContent.js.map +1 -0
- package/lib/commonjs/components/Cards/VideosCard/VideosCard.js +56 -0
- package/lib/commonjs/components/Cards/VideosCard/VideosCard.js.map +1 -0
- package/lib/commonjs/components/Cards/index.js +3 -0
- package/lib/commonjs/components/Cards/index.js.map +1 -0
- package/lib/commonjs/components/Common/BaseOfferCard/Content/Content.js +20 -0
- package/lib/commonjs/components/Common/BaseOfferCard/Content/Content.js.map +1 -0
- package/lib/commonjs/components/Common/BaseOfferCard/Content/index.js +17 -0
- package/lib/commonjs/components/Common/BaseOfferCard/Content/index.js.map +1 -0
- package/lib/commonjs/components/Common/BaseOfferCard/Stat/Stat.js +83 -0
- package/lib/commonjs/components/Common/BaseOfferCard/Stat/Stat.js.map +1 -0
- package/lib/commonjs/components/Common/BaseOfferCard/Stat/index.js +17 -0
- package/lib/commonjs/components/Common/BaseOfferCard/Stat/index.js.map +1 -0
- package/lib/commonjs/components/Common/BaseOfferCard/StatsContainer/StatsContainer.js +18 -0
- package/lib/commonjs/components/Common/BaseOfferCard/StatsContainer/StatsContainer.js.map +1 -0
- package/lib/commonjs/components/Common/BaseOfferCard/StatsContainer/index.js +17 -0
- package/lib/commonjs/components/Common/BaseOfferCard/StatsContainer/index.js.map +1 -0
- package/lib/commonjs/components/Common/BaseOfferCard/ThumbsUpIcon.js +29 -0
- package/lib/commonjs/components/Common/BaseOfferCard/ThumbsUpIcon.js.map +1 -0
- package/lib/commonjs/components/Common/BaseOfferCard/index.js +254 -0
- package/lib/commonjs/components/Common/BaseOfferCard/index.js.map +1 -0
- package/lib/commonjs/components/Common/DynamicOfferCard/CallToAction.js +45 -0
- package/lib/commonjs/components/Common/DynamicOfferCard/CallToAction.js.map +1 -0
- package/lib/commonjs/components/Common/DynamicOfferCard/SeeMore.js +72 -0
- package/lib/commonjs/components/Common/DynamicOfferCard/SeeMore.js.map +1 -0
- package/lib/commonjs/components/Common/DynamicOfferCard/index.js +37 -0
- package/lib/commonjs/components/Common/DynamicOfferCard/index.js.map +1 -0
- package/lib/commonjs/components/Common/index.js +27 -0
- package/lib/commonjs/components/Common/index.js.map +1 -0
- package/lib/commonjs/components/Divider/index.js +39 -0
- package/lib/commonjs/components/Divider/index.js.map +1 -0
- package/lib/commonjs/components/DynamicOffers/DynamicOffers.js +32 -0
- package/lib/commonjs/components/DynamicOffers/DynamicOffers.js.map +1 -0
- package/lib/commonjs/components/DynamicOffers/DynamicOffersContainer.js +49 -0
- package/lib/commonjs/components/DynamicOffers/DynamicOffersContainer.js.map +1 -0
- package/lib/commonjs/components/DynamicOffers/Render/DynamicOffersRender.js +205 -0
- package/lib/commonjs/components/DynamicOffers/Render/DynamicOffersRender.js.map +1 -0
- package/lib/commonjs/components/DynamicOffers/Render/FallbackOfferTemplate.js +28 -0
- package/lib/commonjs/components/DynamicOffers/Render/FallbackOfferTemplate.js.map +1 -0
- package/lib/commonjs/components/DynamicOffers/Render/Offer.js +70 -0
- package/lib/commonjs/components/DynamicOffers/Render/Offer.js.map +1 -0
- package/lib/commonjs/components/DynamicOffers/Render/index.js +20 -0
- package/lib/commonjs/components/DynamicOffers/Render/index.js.map +1 -0
- package/lib/commonjs/components/Layouts/CreditCardOfferCard/index.js +65 -0
- package/lib/commonjs/components/Layouts/CreditCardOfferCard/index.js.map +1 -0
- package/lib/commonjs/components/Layouts/CreditCardOfferCard/statsBuilder.js +15 -0
- package/lib/commonjs/components/Layouts/CreditCardOfferCard/statsBuilder.js.map +1 -0
- package/lib/commonjs/components/Layouts/DefaultOfferCard/index.js +53 -0
- package/lib/commonjs/components/Layouts/DefaultOfferCard/index.js.map +1 -0
- package/lib/commonjs/components/Layouts/DefaultOfferCard/statsBuilder.js +17 -0
- package/lib/commonjs/components/Layouts/DefaultOfferCard/statsBuilder.js.map +1 -0
- package/lib/commonjs/components/Layouts/HeadlineWithDescriptionCard/index.js +47 -0
- package/lib/commonjs/components/Layouts/HeadlineWithDescriptionCard/index.js.map +1 -0
- package/lib/commonjs/components/Layouts/index.js +27 -0
- package/lib/commonjs/components/Layouts/index.js.map +1 -0
- package/lib/commonjs/components/Modal/DescriptionPoints.js +28 -0
- package/lib/commonjs/components/Modal/DescriptionPoints.js.map +1 -0
- package/lib/commonjs/components/Modal/Disclaimer.js +27 -0
- package/lib/commonjs/components/Modal/Disclaimer.js.map +1 -0
- package/lib/commonjs/components/Modal/OfferDetailsModal.js +95 -0
- package/lib/commonjs/components/Modal/OfferDetailsModal.js.map +1 -0
- package/lib/commonjs/components/MoneyLionOfferCarousel.js +174 -0
- package/lib/commonjs/components/MoneyLionOfferCarousel.js.map +1 -0
- package/lib/commonjs/components/Skeleton/Skeleton.js +65 -0
- package/lib/commonjs/components/Skeleton/Skeleton.js.map +1 -0
- package/lib/commonjs/components/Skeleton/index.js +10 -0
- package/lib/commonjs/components/Skeleton/index.js.map +1 -0
- package/lib/commonjs/components/Text/index.js +184 -0
- package/lib/commonjs/components/Text/index.js.map +1 -0
- package/lib/commonjs/components/View/index.js +162 -0
- package/lib/commonjs/components/View/index.js.map +1 -0
- package/lib/commonjs/context/CNFProvider.js +2 -0
- package/lib/commonjs/context/CNFProvider.js.map +1 -0
- package/lib/commonjs/context/EventHandlerProvider.js +25 -0
- package/lib/commonjs/context/EventHandlerProvider.js.map +1 -0
- package/lib/commonjs/context/ThemeProvider.js +59 -0
- package/lib/commonjs/context/ThemeProvider.js.map +1 -0
- package/lib/commonjs/deps/configuration.js +2 -0
- package/lib/commonjs/deps/configuration.js.map +1 -0
- package/lib/commonjs/index.js +17 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/pageData.js +93 -0
- package/lib/commonjs/pageData.js.map +1 -0
- package/lib/commonjs/services/getDynamicOffers.js +55 -0
- package/lib/commonjs/services/getDynamicOffers.js.map +1 -0
- package/lib/commonjs/services/getProductTypes.js +50 -0
- package/lib/commonjs/services/getProductTypes.js.map +1 -0
- package/lib/commonjs/services/getProductTypesByQuery.js +55 -0
- package/lib/commonjs/services/getProductTypesByQuery.js.map +1 -0
- package/lib/commonjs/utils/addClientTagsToOfferLinks.js +25 -0
- package/lib/commonjs/utils/addClientTagsToOfferLinks.js.map +1 -0
- package/lib/commonjs/utils/formatOfferUrl.js +31 -0
- package/lib/commonjs/utils/formatOfferUrl.js.map +1 -0
- package/lib/commonjs/utils/getDefaultPaletteColor.js +20 -0
- package/lib/commonjs/utils/getDefaultPaletteColor.js.map +1 -0
- package/lib/commonjs/utils/getDefaultProductType.js +9 -0
- package/lib/commonjs/utils/getDefaultProductType.js.map +1 -0
- package/lib/commonjs/utils/getEnableUseCachedOffers.js +21 -0
- package/lib/commonjs/utils/getEnableUseCachedOffers.js.map +1 -0
- package/lib/commonjs/utils/getOffersBasedOnLayout.js +48 -0
- package/lib/commonjs/utils/getOffersBasedOnLayout.js.map +1 -0
- package/lib/commonjs/utils/getOffersByProductTypes.js +31 -0
- package/lib/commonjs/utils/getOffersByProductTypes.js.map +1 -0
- package/lib/commonjs/utils/getProductTypesDefinition.js +17 -0
- package/lib/commonjs/utils/getProductTypesDefinition.js.map +1 -0
- package/lib/commonjs/utils/index.js +116 -0
- package/lib/commonjs/utils/index.js.map +1 -0
- package/lib/commonjs/utils/layouts.js +27 -0
- package/lib/commonjs/utils/layouts.js.map +1 -0
- package/lib/commonjs/utils/parseStringProductTypes.js +14 -0
- package/lib/commonjs/utils/parseStringProductTypes.js.map +1 -0
- package/lib/commonjs/utils/resolveProductTypes.js +12 -0
- package/lib/commonjs/utils/resolveProductTypes.js.map +1 -0
- package/lib/commonjs/utils/selectDynamicOffers.js +13 -0
- package/lib/commonjs/utils/selectDynamicOffers.js.map +1 -0
- package/lib/commonjs/utils/sortOffersByRecommendationScore.js +12 -0
- package/lib/commonjs/utils/sortOffersByRecommendationScore.js.map +1 -0
- package/lib/commonjs/version.js +10 -0
- package/lib/commonjs/version.js.map +1 -0
- package/lib/module/apiEnvironment.js +15 -0
- package/lib/module/apiEnvironment.js.map +1 -0
- package/lib/module/components/Button/index.js +111 -0
- package/lib/module/components/Button/index.js.map +1 -0
- package/lib/module/components/Cards/VideosCard/VideoContent.js +32 -0
- package/lib/module/components/Cards/VideosCard/VideoContent.js.map +1 -0
- package/lib/module/components/Cards/VideosCard/VideosCard.js +55 -0
- package/lib/module/components/Cards/VideosCard/VideosCard.js.map +1 -0
- package/lib/module/components/Cards/index.js +2 -0
- package/lib/module/components/Cards/index.js.map +1 -0
- package/lib/module/components/Common/BaseOfferCard/Content/Content.js +13 -0
- package/lib/module/components/Common/BaseOfferCard/Content/Content.js.map +1 -0
- package/lib/module/components/Common/BaseOfferCard/Content/index.js +2 -0
- package/lib/module/components/Common/BaseOfferCard/Content/index.js.map +1 -0
- package/lib/module/components/Common/BaseOfferCard/Stat/Stat.js +76 -0
- package/lib/module/components/Common/BaseOfferCard/Stat/Stat.js.map +1 -0
- package/lib/module/components/Common/BaseOfferCard/Stat/index.js +2 -0
- package/lib/module/components/Common/BaseOfferCard/Stat/index.js.map +1 -0
- package/lib/module/components/Common/BaseOfferCard/StatsContainer/StatsContainer.js +10 -0
- package/lib/module/components/Common/BaseOfferCard/StatsContainer/StatsContainer.js.map +1 -0
- package/lib/module/components/Common/BaseOfferCard/StatsContainer/index.js +2 -0
- package/lib/module/components/Common/BaseOfferCard/StatsContainer/index.js.map +1 -0
- package/lib/module/components/Common/BaseOfferCard/ThumbsUpIcon.js +21 -0
- package/lib/module/components/Common/BaseOfferCard/ThumbsUpIcon.js.map +1 -0
- package/lib/module/components/Common/BaseOfferCard/index.js +248 -0
- package/lib/module/components/Common/BaseOfferCard/index.js.map +1 -0
- package/lib/module/components/Common/DynamicOfferCard/CallToAction.js +37 -0
- package/lib/module/components/Common/DynamicOfferCard/CallToAction.js.map +1 -0
- package/lib/module/components/Common/DynamicOfferCard/SeeMore.js +62 -0
- package/lib/module/components/Common/DynamicOfferCard/SeeMore.js.map +1 -0
- package/lib/module/components/Common/DynamicOfferCard/index.js +31 -0
- package/lib/module/components/Common/DynamicOfferCard/index.js.map +1 -0
- package/lib/module/components/Common/index.js +4 -0
- package/lib/module/components/Common/index.js.map +1 -0
- package/lib/module/components/Divider/index.js +33 -0
- package/lib/module/components/Divider/index.js.map +1 -0
- package/lib/module/components/DynamicOffers/DynamicOffers.js +24 -0
- package/lib/module/components/DynamicOffers/DynamicOffers.js.map +1 -0
- package/lib/module/components/DynamicOffers/DynamicOffersContainer.js +40 -0
- package/lib/module/components/DynamicOffers/DynamicOffersContainer.js.map +1 -0
- package/lib/module/components/DynamicOffers/Render/DynamicOffersRender.js +196 -0
- package/lib/module/components/DynamicOffers/Render/DynamicOffersRender.js.map +1 -0
- package/lib/module/components/DynamicOffers/Render/FallbackOfferTemplate.js +21 -0
- package/lib/module/components/DynamicOffers/Render/FallbackOfferTemplate.js.map +1 -0
- package/lib/module/components/DynamicOffers/Render/Offer.js +61 -0
- package/lib/module/components/DynamicOffers/Render/Offer.js.map +1 -0
- package/lib/module/components/DynamicOffers/Render/index.js +3 -0
- package/lib/module/components/DynamicOffers/Render/index.js.map +1 -0
- package/lib/module/components/Layouts/CreditCardOfferCard/index.js +57 -0
- package/lib/module/components/Layouts/CreditCardOfferCard/index.js.map +1 -0
- package/lib/module/components/Layouts/CreditCardOfferCard/statsBuilder.js +8 -0
- package/lib/module/components/Layouts/CreditCardOfferCard/statsBuilder.js.map +1 -0
- package/lib/module/components/Layouts/DefaultOfferCard/index.js +45 -0
- package/lib/module/components/Layouts/DefaultOfferCard/index.js.map +1 -0
- package/lib/module/components/Layouts/DefaultOfferCard/statsBuilder.js +10 -0
- package/lib/module/components/Layouts/DefaultOfferCard/statsBuilder.js.map +1 -0
- package/lib/module/components/Layouts/HeadlineWithDescriptionCard/index.js +39 -0
- package/lib/module/components/Layouts/HeadlineWithDescriptionCard/index.js.map +1 -0
- package/lib/module/components/Layouts/index.js +4 -0
- package/lib/module/components/Layouts/index.js.map +1 -0
- package/lib/module/components/Modal/DescriptionPoints.js +21 -0
- package/lib/module/components/Modal/DescriptionPoints.js.map +1 -0
- package/lib/module/components/Modal/Disclaimer.js +20 -0
- package/lib/module/components/Modal/Disclaimer.js.map +1 -0
- package/lib/module/components/Modal/OfferDetailsModal.js +87 -0
- package/lib/module/components/Modal/OfferDetailsModal.js.map +1 -0
- package/lib/module/components/MoneyLionOfferCarousel.js +165 -0
- package/lib/module/components/MoneyLionOfferCarousel.js.map +1 -0
- package/lib/module/components/Skeleton/Skeleton.js +57 -0
- package/lib/module/components/Skeleton/Skeleton.js.map +1 -0
- package/lib/module/components/Skeleton/index.js +3 -0
- package/lib/module/components/Skeleton/index.js.map +1 -0
- package/lib/module/components/Text/index.js +179 -0
- package/lib/module/components/Text/index.js.map +1 -0
- package/lib/module/components/View/index.js +155 -0
- package/lib/module/components/View/index.js.map +1 -0
- package/lib/module/context/CNFProvider.js +2 -0
- package/lib/module/context/CNFProvider.js.map +1 -0
- package/lib/module/context/EventHandlerProvider.js +15 -0
- package/lib/module/context/EventHandlerProvider.js.map +1 -0
- package/lib/module/context/ThemeProvider.js +49 -0
- package/lib/module/context/ThemeProvider.js.map +1 -0
- package/lib/module/deps/configuration.js +2 -0
- package/lib/module/deps/configuration.js.map +1 -0
- package/lib/module/index.js +2 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/pageData.js +86 -0
- package/lib/module/pageData.js.map +1 -0
- package/lib/module/services/getDynamicOffers.js +48 -0
- package/lib/module/services/getDynamicOffers.js.map +1 -0
- package/lib/module/services/getProductTypes.js +43 -0
- package/lib/module/services/getProductTypes.js.map +1 -0
- package/lib/module/services/getProductTypesByQuery.js +48 -0
- package/lib/module/services/getProductTypesByQuery.js.map +1 -0
- package/lib/module/utils/addClientTagsToOfferLinks.js +18 -0
- package/lib/module/utils/addClientTagsToOfferLinks.js.map +1 -0
- package/lib/module/utils/formatOfferUrl.js +25 -0
- package/lib/module/utils/formatOfferUrl.js.map +1 -0
- package/lib/module/utils/getDefaultPaletteColor.js +13 -0
- package/lib/module/utils/getDefaultPaletteColor.js.map +1 -0
- package/lib/module/utils/getDefaultProductType.js +2 -0
- package/lib/module/utils/getDefaultProductType.js.map +1 -0
- package/lib/module/utils/getEnableUseCachedOffers.js +14 -0
- package/lib/module/utils/getEnableUseCachedOffers.js.map +1 -0
- package/lib/module/utils/getOffersBasedOnLayout.js +39 -0
- package/lib/module/utils/getOffersBasedOnLayout.js.map +1 -0
- package/lib/module/utils/getOffersByProductTypes.js +24 -0
- package/lib/module/utils/getOffersByProductTypes.js.map +1 -0
- package/lib/module/utils/getProductTypesDefinition.js +10 -0
- package/lib/module/utils/getProductTypesDefinition.js.map +1 -0
- package/lib/module/utils/index.js +11 -0
- package/lib/module/utils/index.js.map +1 -0
- package/lib/module/utils/layouts.js +20 -0
- package/lib/module/utils/layouts.js.map +1 -0
- package/lib/module/utils/parseStringProductTypes.js +7 -0
- package/lib/module/utils/parseStringProductTypes.js.map +1 -0
- package/lib/module/utils/resolveProductTypes.js +5 -0
- package/lib/module/utils/resolveProductTypes.js.map +1 -0
- package/lib/module/utils/selectDynamicOffers.js +6 -0
- package/lib/module/utils/selectDynamicOffers.js.map +1 -0
- package/lib/module/utils/sortOffersByRecommendationScore.js +5 -0
- package/lib/module/utils/sortOffersByRecommendationScore.js.map +1 -0
- package/lib/module/version.js +3 -0
- package/lib/module/version.js.map +1 -0
- package/lib/typescript/builder/builder.d.ts +24 -0
- package/lib/typescript/builder/builder.d.ts.map +1 -0
- package/lib/typescript/builder/config/types.d.ts +89 -0
- package/lib/typescript/builder/config/types.d.ts.map +1 -0
- package/lib/typescript/builder/index.d.ts +3 -0
- package/lib/typescript/builder/index.d.ts.map +1 -0
- package/lib/typescript/capabilities/configuration/src/brands/checkVisualEligibility.d.ts +12 -0
- package/lib/typescript/capabilities/configuration/src/brands/checkVisualEligibility.d.ts.map +1 -0
- package/lib/typescript/capabilities/configuration/src/brands/createDerivedBrands.d.ts +9 -0
- package/lib/typescript/capabilities/configuration/src/brands/createDerivedBrands.d.ts.map +1 -0
- package/lib/typescript/capabilities/configuration/src/brands/index.d.ts +3 -0
- package/lib/typescript/capabilities/configuration/src/brands/index.d.ts.map +1 -0
- package/lib/typescript/capabilities/configuration/src/brands/types.d.ts +4 -0
- package/lib/typescript/capabilities/configuration/src/brands/types.d.ts.map +1 -0
- package/lib/typescript/capabilities/core/src/domain/third-party-search/index.d.ts +2 -0
- package/lib/typescript/capabilities/core/src/domain/third-party-search/index.d.ts.map +1 -0
- package/lib/typescript/capabilities/core/src/domain/third-party-search/orderProductTypesByRankUtils.d.ts +19 -0
- package/lib/typescript/capabilities/core/src/domain/third-party-search/orderProductTypesByRankUtils.d.ts.map +1 -0
- package/lib/typescript/capabilities/core/src/index.d.ts +2 -0
- package/lib/typescript/capabilities/core/src/index.d.ts.map +1 -0
- package/lib/typescript/capabilities/core/src/system/cnfContext/CnfContext.d.ts +103 -0
- package/lib/typescript/capabilities/core/src/system/cnfContext/CnfContext.d.ts.map +1 -0
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/App.d.ts +13 -0
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/App.d.ts.map +1 -0
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Brand.d.ts +180 -0
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Brand.d.ts.map +1 -0
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Configuration.d.ts +59 -0
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Configuration.d.ts.map +1 -0
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Request.d.ts +16 -0
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Request.d.ts.map +1 -0
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Session.d.ts +8 -0
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Session.d.ts.map +1 -0
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Signals.d.ts +64 -0
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Signals.d.ts.map +1 -0
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Subaccount.d.ts +18 -0
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Subaccount.d.ts.map +1 -0
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/index.d.ts +8 -0
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/index.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/api/offerCatalogApi.d.ts +5 -0
- package/lib/typescript/capabilities/offer-catalog/src/api/offerCatalogApi.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/index.d.ts +6 -0
- package/lib/typescript/capabilities/offer-catalog/src/index.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/types/offerCatalogSchema.d.ts +91 -0
- package/lib/typescript/capabilities/offer-catalog/src/types/offerCatalogSchema.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/arrayToMarkdownList.d.ts +2 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/arrayToMarkdownList.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/contextUtil.d.ts +8 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/contextUtil.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/errorUtil.d.ts +6 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/errorUtil.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/formatUtils.d.ts +68 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/formatUtils.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/getOfferUrl.d.ts +24 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/getOfferUrl.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/annualFee.d.ts +13 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/annualFee.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/boolean.d.ts +11 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/boolean.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.d.ts +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/common.d.ts +14 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/common.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/common.spec.d.ts +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/common.spec.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.d.ts +9 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.d.ts +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/currency.d.ts +10 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/currency.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.d.ts +12 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.d.ts +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.d.ts +9 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.d.ts +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.d.ts +9 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.d.ts +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/index.d.ts +20 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/index.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.d.ts +11 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.d.ts +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/percentage.d.ts +9 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/percentage.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/percentage.spec.d.ts +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/percentage.spec.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.d.ts +12 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.d.ts +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrency.d.ts +10 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrency.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.d.ts +12 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.d.ts +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.d.ts +10 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.d.ts +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.d.ts +10 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.d.ts +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.d.ts +11 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.spec.d.ts +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.spec.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.d.ts +9 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.d.ts +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.d.ts +9 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.d.ts +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/index.d.ts +5 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/index.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/types.d.ts +9 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/types.d.ts.map +1 -0
- package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/index.d.ts +4 -0
- package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/index.d.ts.map +1 -0
- package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/oas/offer-catalog.d.ts +1837 -0
- package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/oas/offer-catalog.d.ts.map +1 -0
- package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/types/index.d.ts +5 -0
- package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/types/index.d.ts.map +1 -0
- package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/withDeviceSignals.d.ts +208 -0
- package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/withDeviceSignals.d.ts.map +1 -0
- package/lib/typescript/capabilities/offers/ux/src/elements/Stat/HyphenIcon.d.ts +7 -0
- package/lib/typescript/capabilities/offers/ux/src/elements/Stat/HyphenIcon.d.ts.map +1 -0
- package/lib/typescript/capabilities/offers/ux/src/elements/Stat/Stat.d.ts +12 -0
- package/lib/typescript/capabilities/offers/ux/src/elements/Stat/Stat.d.ts.map +1 -0
- package/lib/typescript/capabilities/offers/ux/src/elements/Stat/index.d.ts +2 -0
- package/lib/typescript/capabilities/offers/ux/src/elements/Stat/index.d.ts.map +1 -0
- package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/Abbreviation.d.ts +5 -0
- package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/Abbreviation.d.ts.map +1 -0
- package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/components.d.ts +9 -0
- package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/components.d.ts.map +1 -0
- package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/index.d.ts +7 -0
- package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/index.d.ts.map +1 -0
- package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/markdownPreprocessor.d.ts +2 -0
- package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/markdownPreprocessor.d.ts.map +1 -0
- package/lib/typescript/capabilities/ui/elements/src/components/index.d.ts +2 -0
- package/lib/typescript/capabilities/ui/elements/src/components/index.d.ts.map +1 -0
- package/lib/typescript/capabilities/ui/elements/src/components/thumbor/index.d.ts +10 -0
- package/lib/typescript/capabilities/ui/elements/src/components/thumbor/index.d.ts.map +1 -0
- package/lib/typescript/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.d.ts +14 -0
- package/lib/typescript/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.d.ts.map +1 -0
- package/lib/typescript/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.test.d.ts +1 -0
- package/lib/typescript/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.test.d.ts.map +1 -0
- package/lib/typescript/capabilities/ui/elements/src/index.d.ts +3 -0
- package/lib/typescript/capabilities/ui/elements/src/index.d.ts.map +1 -0
- package/lib/typescript/capabilities/ui/elements/src/offerCardAttributes.d.ts +10 -0
- package/lib/typescript/capabilities/ui/elements/src/offerCardAttributes.d.ts.map +1 -0
- package/lib/typescript/config/mocks/cnfContext.d.ts +3 -0
- package/lib/typescript/config/mocks/cnfContext.d.ts.map +1 -0
- package/lib/typescript/src/apiEnvironment.d.ts +13 -0
- package/lib/typescript/src/apiEnvironment.d.ts.map +1 -0
- package/lib/typescript/src/components/Button/index.d.ts +15 -0
- package/lib/typescript/src/components/Button/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Cards/VideosCard/VideoContent.d.ts +9 -0
- package/lib/typescript/src/components/Cards/VideosCard/VideoContent.d.ts.map +1 -0
- package/lib/typescript/src/components/Cards/VideosCard/VideosCard.d.ts +1 -0
- package/lib/typescript/src/components/Cards/VideosCard/VideosCard.d.ts.map +1 -0
- package/lib/typescript/src/components/Cards/index.d.ts +1 -0
- package/lib/typescript/src/components/Cards/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Common/BaseOfferCard/Content/Content.d.ts +4 -0
- package/lib/typescript/src/components/Common/BaseOfferCard/Content/Content.d.ts.map +1 -0
- package/lib/typescript/src/components/Common/BaseOfferCard/Content/index.d.ts +2 -0
- package/lib/typescript/src/components/Common/BaseOfferCard/Content/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Common/BaseOfferCard/Stat/Stat.d.ts +8 -0
- package/lib/typescript/src/components/Common/BaseOfferCard/Stat/Stat.d.ts.map +1 -0
- package/lib/typescript/src/components/Common/BaseOfferCard/Stat/index.d.ts +2 -0
- package/lib/typescript/src/components/Common/BaseOfferCard/Stat/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Common/BaseOfferCard/StatsContainer/StatsContainer.d.ts +4 -0
- package/lib/typescript/src/components/Common/BaseOfferCard/StatsContainer/StatsContainer.d.ts.map +1 -0
- package/lib/typescript/src/components/Common/BaseOfferCard/StatsContainer/index.d.ts +2 -0
- package/lib/typescript/src/components/Common/BaseOfferCard/StatsContainer/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Common/BaseOfferCard/ThumbsUpIcon.d.ts +3 -0
- package/lib/typescript/src/components/Common/BaseOfferCard/ThumbsUpIcon.d.ts.map +1 -0
- package/lib/typescript/src/components/Common/BaseOfferCard/index.d.ts +42 -0
- package/lib/typescript/src/components/Common/BaseOfferCard/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Common/DynamicOfferCard/CallToAction.d.ts +13 -0
- package/lib/typescript/src/components/Common/DynamicOfferCard/CallToAction.d.ts.map +1 -0
- package/lib/typescript/src/components/Common/DynamicOfferCard/SeeMore.d.ts +8 -0
- package/lib/typescript/src/components/Common/DynamicOfferCard/SeeMore.d.ts.map +1 -0
- package/lib/typescript/src/components/Common/DynamicOfferCard/index.d.ts +12 -0
- package/lib/typescript/src/components/Common/DynamicOfferCard/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Common/index.d.ts +4 -0
- package/lib/typescript/src/components/Common/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Divider/index.d.ts +16 -0
- package/lib/typescript/src/components/Divider/index.d.ts.map +1 -0
- package/lib/typescript/src/components/DynamicOffers/DynamicOffers.d.ts +12 -0
- package/lib/typescript/src/components/DynamicOffers/DynamicOffers.d.ts.map +1 -0
- package/lib/typescript/src/components/DynamicOffers/DynamicOffersContainer.d.ts +10 -0
- package/lib/typescript/src/components/DynamicOffers/DynamicOffersContainer.d.ts.map +1 -0
- package/lib/typescript/src/components/DynamicOffers/Render/DynamicOffersRender.d.ts +19 -0
- package/lib/typescript/src/components/DynamicOffers/Render/DynamicOffersRender.d.ts.map +1 -0
- package/lib/typescript/src/components/DynamicOffers/Render/FallbackOfferTemplate.d.ts +9 -0
- package/lib/typescript/src/components/DynamicOffers/Render/FallbackOfferTemplate.d.ts.map +1 -0
- package/lib/typescript/src/components/DynamicOffers/Render/Offer.d.ts +17 -0
- package/lib/typescript/src/components/DynamicOffers/Render/Offer.d.ts.map +1 -0
- package/lib/typescript/src/components/DynamicOffers/Render/index.d.ts +3 -0
- package/lib/typescript/src/components/DynamicOffers/Render/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Layouts/CreditCardOfferCard/index.d.ts +13 -0
- package/lib/typescript/src/components/Layouts/CreditCardOfferCard/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Layouts/CreditCardOfferCard/statsBuilder.d.ts +6 -0
- package/lib/typescript/src/components/Layouts/CreditCardOfferCard/statsBuilder.d.ts.map +1 -0
- package/lib/typescript/src/components/Layouts/DefaultOfferCard/index.d.ts +13 -0
- package/lib/typescript/src/components/Layouts/DefaultOfferCard/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Layouts/DefaultOfferCard/statsBuilder.d.ts +7 -0
- package/lib/typescript/src/components/Layouts/DefaultOfferCard/statsBuilder.d.ts.map +1 -0
- package/lib/typescript/src/components/Layouts/HeadlineWithDescriptionCard/index.d.ts +13 -0
- package/lib/typescript/src/components/Layouts/HeadlineWithDescriptionCard/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Layouts/index.d.ts +4 -0
- package/lib/typescript/src/components/Layouts/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Modal/DescriptionPoints.d.ts +5 -0
- package/lib/typescript/src/components/Modal/DescriptionPoints.d.ts.map +1 -0
- package/lib/typescript/src/components/Modal/Disclaimer.d.ts +5 -0
- package/lib/typescript/src/components/Modal/Disclaimer.d.ts.map +1 -0
- package/lib/typescript/src/components/Modal/OfferDetailsModal.d.ts +11 -0
- package/lib/typescript/src/components/Modal/OfferDetailsModal.d.ts.map +1 -0
- package/lib/typescript/src/components/MoneyLionOfferCarousel.d.ts +20 -0
- package/lib/typescript/src/components/MoneyLionOfferCarousel.d.ts.map +1 -0
- package/lib/typescript/src/components/Skeleton/Skeleton.d.ts +12 -0
- package/lib/typescript/src/components/Skeleton/Skeleton.d.ts.map +1 -0
- package/lib/typescript/src/components/Skeleton/index.d.ts +3 -0
- package/lib/typescript/src/components/Skeleton/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Text/index.d.ts +17 -0
- package/lib/typescript/src/components/Text/index.d.ts.map +1 -0
- package/lib/typescript/src/components/View/index.d.ts +23 -0
- package/lib/typescript/src/components/View/index.d.ts.map +1 -0
- package/lib/typescript/src/context/CNFProvider.d.ts +1 -0
- package/lib/typescript/src/context/CNFProvider.d.ts.map +1 -0
- package/lib/typescript/src/context/EventHandlerProvider.d.ts +71 -0
- package/lib/typescript/src/context/EventHandlerProvider.d.ts.map +1 -0
- package/lib/typescript/src/context/ThemeProvider.d.ts +31 -0
- package/lib/typescript/src/context/ThemeProvider.d.ts.map +1 -0
- package/lib/typescript/src/deps/configuration.d.ts +1 -0
- package/lib/typescript/src/deps/configuration.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +2 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/pageData.d.ts +19 -0
- package/lib/typescript/src/pageData.d.ts.map +1 -0
- package/lib/typescript/src/services/getDynamicOffers.d.ts +27 -0
- package/lib/typescript/src/services/getDynamicOffers.d.ts.map +1 -0
- package/lib/typescript/src/services/getProductTypes.d.ts +19 -0
- package/lib/typescript/src/services/getProductTypes.d.ts.map +1 -0
- package/lib/typescript/src/services/getProductTypesByQuery.d.ts +28 -0
- package/lib/typescript/src/services/getProductTypesByQuery.d.ts.map +1 -0
- package/lib/typescript/src/utils/addClientTagsToOfferLinks.d.ts +9 -0
- package/lib/typescript/src/utils/addClientTagsToOfferLinks.d.ts.map +1 -0
- package/lib/typescript/src/utils/formatOfferUrl.d.ts +64 -0
- package/lib/typescript/src/utils/formatOfferUrl.d.ts.map +1 -0
- package/lib/typescript/src/utils/getDefaultPaletteColor.d.ts +3 -0
- package/lib/typescript/src/utils/getDefaultPaletteColor.d.ts.map +1 -0
- package/lib/typescript/src/utils/getDefaultProductType.d.ts +3 -0
- package/lib/typescript/src/utils/getDefaultProductType.d.ts.map +1 -0
- package/lib/typescript/src/utils/getEnableUseCachedOffers.d.ts +12 -0
- package/lib/typescript/src/utils/getEnableUseCachedOffers.d.ts.map +1 -0
- package/lib/typescript/src/utils/getOffersBasedOnLayout.d.ts +26 -0
- package/lib/typescript/src/utils/getOffersBasedOnLayout.d.ts.map +1 -0
- package/lib/typescript/src/utils/getOffersByProductTypes.d.ts +17 -0
- package/lib/typescript/src/utils/getOffersByProductTypes.d.ts.map +1 -0
- package/lib/typescript/src/utils/getProductTypesDefinition.d.ts +14 -0
- package/lib/typescript/src/utils/getProductTypesDefinition.d.ts.map +1 -0
- package/lib/typescript/src/utils/index.d.ts +11 -0
- package/lib/typescript/src/utils/index.d.ts.map +1 -0
- package/lib/typescript/src/utils/layouts.d.ts +19 -0
- package/lib/typescript/src/utils/layouts.d.ts.map +1 -0
- package/lib/typescript/src/utils/parseStringProductTypes.d.ts +2 -0
- package/lib/typescript/src/utils/parseStringProductTypes.d.ts.map +1 -0
- package/lib/typescript/src/utils/resolveProductTypes.d.ts +14 -0
- package/lib/typescript/src/utils/resolveProductTypes.d.ts.map +1 -0
- package/lib/typescript/src/utils/selectDynamicOffers.d.ts +3 -0
- package/lib/typescript/src/utils/selectDynamicOffers.d.ts.map +1 -0
- package/lib/typescript/src/utils/sortOffersByRecommendationScore.d.ts +3 -0
- package/lib/typescript/src/utils/sortOffersByRecommendationScore.d.ts.map +1 -0
- package/lib/typescript/src/version.d.ts +2 -0
- package/lib/typescript/src/version.d.ts.map +1 -0
- package/package.json +139 -0
- package/src/apiEnvironment.ts +17 -0
- package/src/components/Button/index.tsx +140 -0
- package/src/components/Cards/VideosCard/VideoContent.tsx +38 -0
- package/src/components/Cards/VideosCard/VideosCard.tsx +54 -0
- package/src/components/Cards/index.ts +1 -0
- package/src/components/Common/BaseOfferCard/Content/Content.tsx +10 -0
- package/src/components/Common/BaseOfferCard/Content/index.tsx +1 -0
- package/src/components/Common/BaseOfferCard/Stat/Stat.tsx +91 -0
- package/src/components/Common/BaseOfferCard/Stat/index.tsx +1 -0
- package/src/components/Common/BaseOfferCard/StatsContainer/StatsContainer.tsx +8 -0
- package/src/components/Common/BaseOfferCard/StatsContainer/index.tsx +1 -0
- package/src/components/Common/BaseOfferCard/ThumbsUpIcon.tsx +27 -0
- package/src/components/Common/BaseOfferCard/index.tsx +282 -0
- package/src/components/Common/DynamicOfferCard/CallToAction.tsx +47 -0
- package/src/components/Common/DynamicOfferCard/SeeMore.tsx +76 -0
- package/src/components/Common/DynamicOfferCard/index.tsx +64 -0
- package/src/components/Common/index.ts +3 -0
- package/src/components/Divider/index.tsx +35 -0
- package/src/components/DynamicOffers/DynamicOffers.tsx +46 -0
- package/src/components/DynamicOffers/DynamicOffersContainer.tsx +41 -0
- package/src/components/DynamicOffers/Render/DynamicOffersRender.tsx +261 -0
- package/src/components/DynamicOffers/Render/FallbackOfferTemplate.tsx +29 -0
- package/src/components/DynamicOffers/Render/Offer.tsx +100 -0
- package/src/components/DynamicOffers/Render/index.ts +2 -0
- package/src/components/Layouts/CreditCardOfferCard/index.tsx +96 -0
- package/src/components/Layouts/CreditCardOfferCard/statsBuilder.tsx +10 -0
- package/src/components/Layouts/DefaultOfferCard/index.tsx +72 -0
- package/src/components/Layouts/DefaultOfferCard/statsBuilder.tsx +14 -0
- package/src/components/Layouts/HeadlineWithDescriptionCard/index.tsx +59 -0
- package/src/components/Layouts/index.ts +3 -0
- package/src/components/Modal/DescriptionPoints.tsx +24 -0
- package/src/components/Modal/Disclaimer.tsx +15 -0
- package/src/components/Modal/OfferDetailsModal.tsx +111 -0
- package/src/components/MoneyLionOfferCarousel.tsx +202 -0
- package/src/components/Skeleton/Skeleton.tsx +86 -0
- package/src/components/Skeleton/index.ts +2 -0
- package/src/components/Text/index.tsx +209 -0
- package/src/components/View/index.tsx +144 -0
- package/src/context/CNFProvider.tsx +0 -0
- package/src/context/EventHandlerProvider.tsx +89 -0
- package/src/context/ThemeProvider.tsx +91 -0
- package/src/deps/configuration.ts +0 -0
- package/src/index.tsx +1 -0
- package/src/pageData.ts +98 -0
- package/src/services/getDynamicOffers.ts +93 -0
- package/src/services/getProductTypes.ts +53 -0
- package/src/services/getProductTypesByQuery.ts +53 -0
- package/src/utils/addClientTagsToOfferLinks.ts +22 -0
- package/src/utils/formatOfferUrl.ts +32 -0
- package/src/utils/getDefaultPaletteColor.ts +15 -0
- package/src/utils/getDefaultProductType.ts +4 -0
- package/src/utils/getEnableUseCachedOffers.ts +13 -0
- package/src/utils/getOffersBasedOnLayout.ts +51 -0
- package/src/utils/getOffersByProductTypes.ts +36 -0
- package/src/utils/getProductTypesDefinition.ts +13 -0
- package/src/utils/index.ts +10 -0
- package/src/utils/layouts.ts +22 -0
- package/src/utils/parseStringProductTypes.ts +7 -0
- package/src/utils/resolveProductTypes.ts +18 -0
- package/src/utils/selectDynamicOffers.ts +18 -0
- package/src/utils/sortOffersByRecommendationScore.ts +6 -0
- package/src/version.ts +2 -0
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
11
|
+
const View = ({
|
|
12
|
+
children,
|
|
13
|
+
style,
|
|
14
|
+
backgroundColor,
|
|
15
|
+
borderColor,
|
|
16
|
+
direction,
|
|
17
|
+
height,
|
|
18
|
+
maxHeight,
|
|
19
|
+
minHeight,
|
|
20
|
+
width,
|
|
21
|
+
maxWidth,
|
|
22
|
+
minWidth,
|
|
23
|
+
gap,
|
|
24
|
+
attributes,
|
|
25
|
+
testID,
|
|
26
|
+
...rest
|
|
27
|
+
}) => {
|
|
28
|
+
var _styles, _styles2;
|
|
29
|
+
// Create a single style object directly - faster than array.filter(Boolean)
|
|
30
|
+
const containerStyles = {
|
|
31
|
+
// Background color handling
|
|
32
|
+
...(backgroundColor && {
|
|
33
|
+
backgroundColor: ((_styles = styles[`bg${backgroundColor}`]) === null || _styles === void 0 ? void 0 : _styles.backgroundColor) || backgroundColor
|
|
34
|
+
}),
|
|
35
|
+
// Border color handling
|
|
36
|
+
...(borderColor && {
|
|
37
|
+
borderColor: (borderColor in ["neutral", "positive", "warning", "critical", "primary"] ? (_styles2 = styles[`border${borderColor}`]) === null || _styles2 === void 0 ? void 0 : _styles2.borderColor : undefined) || borderColor
|
|
38
|
+
}),
|
|
39
|
+
// Direction handling
|
|
40
|
+
...(direction && styles[`direction${direction}`]),
|
|
41
|
+
// Dimension styles - applied only when provided
|
|
42
|
+
...(height !== undefined && {
|
|
43
|
+
height
|
|
44
|
+
}),
|
|
45
|
+
...(maxHeight !== undefined && {
|
|
46
|
+
maxHeight
|
|
47
|
+
}),
|
|
48
|
+
...(minHeight !== undefined && {
|
|
49
|
+
minHeight
|
|
50
|
+
}),
|
|
51
|
+
...(width !== undefined && {
|
|
52
|
+
width
|
|
53
|
+
}),
|
|
54
|
+
...(maxWidth !== undefined && {
|
|
55
|
+
maxWidth
|
|
56
|
+
}),
|
|
57
|
+
...(minWidth !== undefined && {
|
|
58
|
+
minWidth
|
|
59
|
+
}),
|
|
60
|
+
// Spacing
|
|
61
|
+
...(gap !== undefined && {
|
|
62
|
+
gap
|
|
63
|
+
}),
|
|
64
|
+
// User-provided styles (highest priority)
|
|
65
|
+
...(style || {})
|
|
66
|
+
};
|
|
67
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, _extends({
|
|
68
|
+
style: containerStyles,
|
|
69
|
+
testID: (attributes === null || attributes === void 0 ? void 0 : attributes["data-testid"]) || testID
|
|
70
|
+
}, rest), children);
|
|
71
|
+
};
|
|
72
|
+
const styles = _reactNative.StyleSheet.create({
|
|
73
|
+
"bgneutral": {
|
|
74
|
+
backgroundColor: "#e0e0e0"
|
|
75
|
+
},
|
|
76
|
+
"bgneutral-faded": {
|
|
77
|
+
backgroundColor: "#f5f5f5"
|
|
78
|
+
},
|
|
79
|
+
"bgcritical": {
|
|
80
|
+
backgroundColor: "#f44336"
|
|
81
|
+
},
|
|
82
|
+
"bgcritical-faded": {
|
|
83
|
+
backgroundColor: "#ffebee"
|
|
84
|
+
},
|
|
85
|
+
"bgpositive": {
|
|
86
|
+
backgroundColor: "#4caf50"
|
|
87
|
+
},
|
|
88
|
+
"bgpositive-faded": {
|
|
89
|
+
backgroundColor: "#e8f5e9"
|
|
90
|
+
},
|
|
91
|
+
"bgwarning": {
|
|
92
|
+
backgroundColor: "#ff9800"
|
|
93
|
+
},
|
|
94
|
+
"bgwarning-faded": {
|
|
95
|
+
backgroundColor: "#fff3e0"
|
|
96
|
+
},
|
|
97
|
+
"bgprimary": {
|
|
98
|
+
backgroundColor: "#2196f3"
|
|
99
|
+
},
|
|
100
|
+
"bgprimary-faded": {
|
|
101
|
+
backgroundColor: "#ebfff9"
|
|
102
|
+
},
|
|
103
|
+
"bgelevation-base": {
|
|
104
|
+
backgroundColor: "#fafafa"
|
|
105
|
+
},
|
|
106
|
+
"bgelevation-raised": {
|
|
107
|
+
backgroundColor: "#eeeeee"
|
|
108
|
+
},
|
|
109
|
+
"bgelevation-overlay": {
|
|
110
|
+
backgroundColor: "#bdbdbd"
|
|
111
|
+
},
|
|
112
|
+
"bgpage": {
|
|
113
|
+
backgroundColor: "#ffffff"
|
|
114
|
+
},
|
|
115
|
+
"bgpage-faded": {
|
|
116
|
+
backgroundColor: "#f5f5f5"
|
|
117
|
+
},
|
|
118
|
+
"bgdisabled": {
|
|
119
|
+
backgroundColor: "#bdbdbd"
|
|
120
|
+
},
|
|
121
|
+
"bgdisabled-faded": {
|
|
122
|
+
backgroundColor: "#e0e0e0"
|
|
123
|
+
},
|
|
124
|
+
"bgbrand": {
|
|
125
|
+
backgroundColor: "#6200ea"
|
|
126
|
+
},
|
|
127
|
+
"bgwhite": {
|
|
128
|
+
backgroundColor: "#ffffff"
|
|
129
|
+
},
|
|
130
|
+
"bgblack": {
|
|
131
|
+
backgroundColor: "#000000"
|
|
132
|
+
},
|
|
133
|
+
"borderneutral": {
|
|
134
|
+
borderColor: "#bdbdbd"
|
|
135
|
+
},
|
|
136
|
+
"borderpositive": {
|
|
137
|
+
borderColor: "#388e3c"
|
|
138
|
+
},
|
|
139
|
+
"borderwarning": {
|
|
140
|
+
borderColor: "#f57c00"
|
|
141
|
+
},
|
|
142
|
+
"bordercritical": {
|
|
143
|
+
borderColor: "#d32f2f"
|
|
144
|
+
},
|
|
145
|
+
"borderprimary": {
|
|
146
|
+
borderColor: "#1976d2"
|
|
147
|
+
},
|
|
148
|
+
"directionrow": {
|
|
149
|
+
flexDirection: "row"
|
|
150
|
+
},
|
|
151
|
+
"directionrow-reverse": {
|
|
152
|
+
flexDirection: "row-reverse"
|
|
153
|
+
},
|
|
154
|
+
"directioncolumn": {
|
|
155
|
+
flexDirection: "column"
|
|
156
|
+
},
|
|
157
|
+
"directioncolumn-reverse": {
|
|
158
|
+
flexDirection: "column-reverse"
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
var _default = exports.default = View;
|
|
162
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","View","children","style","backgroundColor","borderColor","direction","height","maxHeight","minHeight","width","maxWidth","minWidth","gap","attributes","testID","rest","_styles","_styles2","containerStyles","styles","undefined","createElement","StyleSheet","create","flexDirection","_default","exports"],"sourceRoot":"../../../../src","sources":["components/View/index.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAA0E,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAAA,SAAAG,SAAA,WAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,CAAA,aAAAP,CAAA,MAAAA,CAAA,GAAAQ,SAAA,CAAAC,MAAA,EAAAT,CAAA,UAAAU,CAAA,GAAAF,SAAA,CAAAR,CAAA,YAAAW,CAAA,IAAAD,CAAA,OAAAE,cAAA,CAAAC,IAAA,CAAAH,CAAA,EAAAC,CAAA,MAAAJ,CAAA,CAAAI,CAAA,IAAAD,CAAA,CAAAC,CAAA,aAAAJ,CAAA,KAAAJ,QAAA,CAAAW,KAAA,OAAAN,SAAA;AA6C1E,MAAMO,IAAyB,GAAGA,CAAC;EAClCC,QAAQ;EACRC,KAAK;EACLC,eAAe;EACfC,WAAW;EACXC,SAAS;EACTC,MAAM;EACNC,SAAS;EACTC,SAAS;EACTC,KAAK;EACLC,QAAQ;EACRC,QAAQ;EACRC,GAAG;EACHC,UAAU;EACVC,MAAM;EACN,GAAGC;AACJ,CAAC,KAAK;EAAA,IAAAC,OAAA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C,gBAAgB,EAAE;IAAEA,WAAW,EAAE;EAAU,CAAC;EAC5C,eAAe,EAAE;IAAEA,WAAW,EAAE;EAAU,CAAC;EAC3C,gBAAgB,EAAE;IAAEA,WAAW,EAAE;EAAU,CAAC;EAC5C,eAAe,EAAE;IAAEA,WAAW,EAAE;EAAU,CAAC;EAC3C,cAAc,EAAE;IAAEoB,aAAa,EAAE;EAAM,CAAC;EACxC,sBAAsB,EAAE;IAAEA,aAAa,EAAE;EAAc,CAAC;EACxD,iBAAiB,EAAE;IAAEA,aAAa,EAAE;EAAS,CAAC;EAC9C,yBAAyB,EAAE;IAAEA,aAAa,EAAE;EAAiB;AAC9D,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAvC,OAAA,GAEYa,IAAI","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["context/CNFProvider.tsx"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useEventHandler = exports.EventHandlerProvider = exports.EventHandlerContext = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
9
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
10
|
+
const EventHandlerContext = exports.EventHandlerContext = /*#__PURE__*/(0, _react.createContext)({
|
|
11
|
+
rateTableUuid: "",
|
|
12
|
+
leadUuid: ""
|
|
13
|
+
});
|
|
14
|
+
const EventHandlerProvider = ({
|
|
15
|
+
children,
|
|
16
|
+
eventHandlers
|
|
17
|
+
}) => {
|
|
18
|
+
return /*#__PURE__*/_react.default.createElement(EventHandlerContext.Provider, {
|
|
19
|
+
value: eventHandlers
|
|
20
|
+
}, children);
|
|
21
|
+
};
|
|
22
|
+
exports.EventHandlerProvider = EventHandlerProvider;
|
|
23
|
+
const useEventHandler = () => (0, _react.useContext)(EventHandlerContext);
|
|
24
|
+
exports.useEventHandler = useEventHandler;
|
|
25
|
+
//# sourceMappingURL=EventHandlerProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","EventHandlerContext","exports","createContext","rateTableUuid","leadUuid","EventHandlerProvider","children","eventHandlers","createElement","Provider","value","useEventHandler","useContext"],"sourceRoot":"../../../src","sources":["context/EventHandlerProvider.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAAyD,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAH,wBAAAG,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,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AAA","ignoreList":[]}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useTheme = exports.ThemeProvider = exports.ThemeContext = void 0;
|
|
7
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
10
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
11
|
+
const defaultFontFamily = {
|
|
12
|
+
regular: _reactNative.Platform.OS === "android" ? "sans-serif" : "System",
|
|
13
|
+
medium: _reactNative.Platform.OS === "android" ? "sans-serif-medium" : "System",
|
|
14
|
+
bold: _reactNative.Platform.OS === "android" ? "sans-serif-bold" : "System"
|
|
15
|
+
};
|
|
16
|
+
const ThemeContext = exports.ThemeContext = /*#__PURE__*/(0, _react.createContext)(null);
|
|
17
|
+
const useTheme = () => {
|
|
18
|
+
const context = (0, _react.useContext)(ThemeContext);
|
|
19
|
+
if (!context) {
|
|
20
|
+
throw new Error("useTheme must be used within a ThemeProvider");
|
|
21
|
+
}
|
|
22
|
+
return context;
|
|
23
|
+
};
|
|
24
|
+
exports.useTheme = useTheme;
|
|
25
|
+
const ThemeProvider = ({
|
|
26
|
+
palette = {},
|
|
27
|
+
// should be safe to assert as ThemePalette since the fallback colors are already handled by the consumers of ThemeProvider
|
|
28
|
+
fontFamily = {},
|
|
29
|
+
children
|
|
30
|
+
}) => {
|
|
31
|
+
const [theme, setTheme] = (0, _react.useState)(palette);
|
|
32
|
+
const [fonts, setFonts] = (0, _react.useState)({
|
|
33
|
+
...defaultFontFamily,
|
|
34
|
+
...fontFamily
|
|
35
|
+
});
|
|
36
|
+
const updateTheme = newTheme => {
|
|
37
|
+
setTheme(prevTheme => ({
|
|
38
|
+
...prevTheme,
|
|
39
|
+
...newTheme
|
|
40
|
+
}));
|
|
41
|
+
};
|
|
42
|
+
const updateFontFamily = newFontFamily => {
|
|
43
|
+
setFonts(prevFonts => ({
|
|
44
|
+
...prevFonts,
|
|
45
|
+
...newFontFamily
|
|
46
|
+
}));
|
|
47
|
+
};
|
|
48
|
+
const contextValue = {
|
|
49
|
+
theme,
|
|
50
|
+
fontFamily: fonts,
|
|
51
|
+
updateTheme,
|
|
52
|
+
updateFontFamily
|
|
53
|
+
};
|
|
54
|
+
return /*#__PURE__*/_react.default.createElement(ThemeContext.Provider, {
|
|
55
|
+
value: contextValue
|
|
56
|
+
}, children);
|
|
57
|
+
};
|
|
58
|
+
exports.ThemeProvider = ThemeProvider;
|
|
59
|
+
//# sourceMappingURL=ThemeProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","defaultFontFamily","regular","Platform","OS","medium","bold","ThemeContext","exports","createContext","useTheme","context","useContext","Error","ThemeProvider","palette","fontFamily","children","theme","setTheme","useState","fonts","setFonts","updateTheme","newTheme","prevTheme","updateFontFamily","newFontFamily","prevFonts","contextValue","createElement","Provider","value"],"sourceRoot":"../../../src","sources":["context/ThemeProvider.tsx"],"mappings":";;;;;;AAAA,IAAAA,M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AED,oBACCjD,MAAA,CAAAU,OAAA,CAAA2C,aAAA,CAACvB,YAAY,CAACwB,QAAQ;IAACC,KAAK,EAAEH;EAAa,GACzCZ,QACqB,CAAC;AAE1B,CAAC;AAACT,OAAA,CAAAM,aAAA,GAAAA,aAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["deps/configuration.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _MoneyLionOfferCarousel = require("./components/MoneyLionOfferCarousel");
|
|
7
|
+
Object.keys(_MoneyLionOfferCarousel).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _MoneyLionOfferCarousel[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _MoneyLionOfferCarousel[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_MoneyLionOfferCarousel","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;AAAA,IAAAA,uBAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,uBAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,uBAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAT,uBAAA,CAAAK,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getPageData = getPageData;
|
|
7
|
+
var _contextUtil = require("../capabilities/offer-catalog/src/utils/contextUtil");
|
|
8
|
+
var _getDynamicOffers = require("./services/getDynamicOffers");
|
|
9
|
+
var _utils = require("./utils");
|
|
10
|
+
var _getEnableUseCachedOffers = require("./utils/getEnableUseCachedOffers");
|
|
11
|
+
// import { getDynamicOffers } from "./services/getDynamicOffers";
|
|
12
|
+
|
|
13
|
+
async function getPageData({
|
|
14
|
+
context,
|
|
15
|
+
params,
|
|
16
|
+
onRateTableSubmit
|
|
17
|
+
}) {
|
|
18
|
+
const {
|
|
19
|
+
productType,
|
|
20
|
+
query,
|
|
21
|
+
tags,
|
|
22
|
+
displayLayout,
|
|
23
|
+
searchAPIToken,
|
|
24
|
+
showProductTypeLabel
|
|
25
|
+
} = params;
|
|
26
|
+
|
|
27
|
+
// Resolve Tags
|
|
28
|
+
const resolvedTags = `${tags === null || tags === void 0 ? void 0 : tags.trim()}`;
|
|
29
|
+
const enableUseCachedOffers = (0, _getEnableUseCachedOffers.getEnableUseCachedOffers)(context);
|
|
30
|
+
const defaultProductType = (0, _utils.getDefaultProductType)(context);
|
|
31
|
+
|
|
32
|
+
// TODO: Check if this is needed or if we can remove it
|
|
33
|
+
// const parsedStaticProductTypes = parseStringProductTypes(staticProductTypes);
|
|
34
|
+
|
|
35
|
+
const isDev = (0, _contextUtil.getIsDevEnvironment)(context);
|
|
36
|
+
const {
|
|
37
|
+
productTypesDefinition,
|
|
38
|
+
partnersOverrideDefinition
|
|
39
|
+
} = (0, _utils.getProductTypesDefinition)(context);
|
|
40
|
+
const currentCountry = context.signals.deviceSignals.country;
|
|
41
|
+
const safeTags = encodeURI(resolvedTags);
|
|
42
|
+
const safeDisplayLayout = (0, _utils.getLayout)(displayLayout);
|
|
43
|
+
|
|
44
|
+
// Get product types and result type
|
|
45
|
+
const {
|
|
46
|
+
productTypes,
|
|
47
|
+
resultType
|
|
48
|
+
} = await (0, _utils.resolveProductTypes)({
|
|
49
|
+
defaultProductType,
|
|
50
|
+
productType,
|
|
51
|
+
query,
|
|
52
|
+
searchAPIToken,
|
|
53
|
+
isDev
|
|
54
|
+
});
|
|
55
|
+
onRateTableSubmit === null || onRateTableSubmit === void 0 || onRateTableSubmit({
|
|
56
|
+
timestamp: new Date().toISOString(),
|
|
57
|
+
productTypes,
|
|
58
|
+
resultType,
|
|
59
|
+
defaultProductType
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
// Get offers
|
|
63
|
+
const {
|
|
64
|
+
offers,
|
|
65
|
+
isError,
|
|
66
|
+
leadUuid,
|
|
67
|
+
rateTableUuid
|
|
68
|
+
} = await (0, _getDynamicOffers.getDynamicOffers)({
|
|
69
|
+
tags: safeTags,
|
|
70
|
+
displayLayout: safeDisplayLayout,
|
|
71
|
+
productTypes,
|
|
72
|
+
resultType,
|
|
73
|
+
enableUseCachedOffers,
|
|
74
|
+
productTypesDefinition: [...productTypesDefinition],
|
|
75
|
+
partnersOverrideDefinition: [...partnersOverrideDefinition],
|
|
76
|
+
context,
|
|
77
|
+
defaultProductType
|
|
78
|
+
});
|
|
79
|
+
return {
|
|
80
|
+
isError,
|
|
81
|
+
leadUuid,
|
|
82
|
+
rateTableUuid,
|
|
83
|
+
// title,
|
|
84
|
+
offers,
|
|
85
|
+
currentCountry,
|
|
86
|
+
// videosContent,
|
|
87
|
+
// showBorder,
|
|
88
|
+
// shouldHideFooter,
|
|
89
|
+
showProductTypeLabel,
|
|
90
|
+
displayLayout: safeDisplayLayout
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=pageData.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_contextUtil","require","_getDynamicOffers","_utils","_getEnableUseCachedOffers","getPageData","context","params","onRateTableSubmit","productType","query","tags","displayLayout","searchAPIToken","showProductTypeLabel","resolvedTags","trim","enableUseCachedOffers","getEnableUseCachedOffers","defaultProductType","getDefaultProductType","isDev","getIsDevEnvironment","productTypesDefinition","partnersOverrideDefinition","getProductTypesDefinition","currentCountry","signals","deviceSignals","country","safeTags","encodeURI","safeDisplayLayout","getLayout","productTypes","resultType","resolveProductTypes","timestamp","Date","toISOString","offers","isError","leadUuid","rateTableUuid","getDynamicOffers"],"sourceRoot":"../../src","sources":["pageData.ts"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AAGA,IAAAC,iBAAA,GAAAD,OAAA;AAEA,IAAAE,MAAA,GAAAF,OAAA;AAMA,IAAAG,yBAAA,GAAAH,OAAA;AAPA;;AAeO,eAAeI,WAAWA,CAAC;EACjCC,OAAO;EACPC,MAAM;EACNC;AACiB,CAAC,EAAE;EACpB,MAAM;IACLC,WAAW;IACXC,KAAK;IACLC,IAAI;IACJC,aAAa;IACbC,cAAc;IACdC;EACD,CAAC,GAAGP,MAAM;;EAEV;EACA,MAAMQ,YAAY,GAAG,GAAGJ,IAAI,aAAJA,IAAI,uBAAJA,IAAI,CAAEK,IAAI,CAAC,CAAC,EAAE;EAEtC,MAAMC,qBAAqB,GAAG,IAAAC,kDAAwB,EAACZ,OAAO,CAAC;EAE/D,MAAMa,kBAAkB,GAAG,IAAAC,4BAAqB,EAACd,OAAO,CAAC;;EAEzD;EACA;;EAEA,MAAMe,KAAK,GAAG,IAAAC,gCAAmB,EAAChB,OAAO,CAAC;EAE1C,MAAM;IAAEiB,sBAAsB;IAAEC;EAA2B,CAAC,GAC3D,IAAAC,gCAAyB,EAACnB,OAAO,CAAC;EAEnC,MAAMoB,cAAc,GAAGpB,OAAO,CAACqB,OAAO,CAACC,aAAa,CAACC,OAAO;EAE5D,MAAMC,QAAQ,GAAGC,SAAS,CAAChB,YAAY,CAAC;EAExC,MAAMiB,iBAAiB,GAAG,IAAAC,gBAAS,EAACrB,aAAa,CAAC;;EAElD;EACA,MAAM;IAAEsB,YAAY;IAAEC;EAAW,CAAC,GAAG,MAAM,IAAAC,0BAAmB,EAAC;IAC9DjB,kBAAkB;IAClBV,WAAW;IACXC,KAAK;IACLG,cAAc;IACdQ;EACD,CAAC,CAAC;EAEFb,iBAAiB,aAAjBA,iBAAiB,eAAjBA,iBAAiB,CAAG;IACnB6B,SAAS,EAAE,IAAIC,IAAI,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC;IACnCL,YAAY;IACZC,UAAU;IACVhB;EACD,CAAC,CAAC;;EAEF;EACA,MAAM;IAAEqB,MAAM;IAAEC,OAAO;IAAEC,QAAQ;IAAEC;EAAc,CAAC,GAAG,MAAM,IAAAC,kCAAgB,EAAC;IAC3EjC,IAAI,EAAEmB,QAAQ;IACdlB,aAAa,EAAEoB,iBAAiB;IAChCE,YAAY;IACZC,UAAU;IACVlB,qBAAqB;IACrBM,sBAAsB,EAAE,CAAC,GAAGA,sBAAsB,CAAC;IACnDC,0BAA0B,EAAE,CAAC,GAAGA,0BAA0B,CAAC;IAC3DlB,OAAO;IACPa;EACD,CAAC,CAAC;EAEF,OAAO;IACNsB,OAAO;IACPC,QAAQ;IACRC,aAAa;IACb;IACAH,MAAM;IACNd,cAAc;IACd;IACA;IACA;IACAZ,oBAAoB;IACpBF,aAAa,EAAEoB;EAChB,CAAC;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getDynamicOffers = void 0;
|
|
7
|
+
var _radash = require("radash");
|
|
8
|
+
var _utils = require("../utils");
|
|
9
|
+
var _sortOffersByRecommendationScore = require("../utils/sortOffersByRecommendationScore");
|
|
10
|
+
var _effect = require("effect");
|
|
11
|
+
var _formatOfferUrl = require("../utils/formatOfferUrl");
|
|
12
|
+
var _getOffersBasedOnLayout = require("../utils/getOffersBasedOnLayout");
|
|
13
|
+
/**
|
|
14
|
+
* Retrieves dynamic offers based on the provided parameters.
|
|
15
|
+
*
|
|
16
|
+
* @param {GetDynamicOffersProps} params - The parameters for retrieving dynamic offers.
|
|
17
|
+
* @returns {Promise<{ productTypeDisplayName: string; offers: typeof offers }>} An object containing the product type display name and the offers.
|
|
18
|
+
*/
|
|
19
|
+
const getDynamicOffers = async ({
|
|
20
|
+
tags,
|
|
21
|
+
displayLayout,
|
|
22
|
+
defaultProductType,
|
|
23
|
+
productTypes,
|
|
24
|
+
resultType,
|
|
25
|
+
enableUseCachedOffers,
|
|
26
|
+
productTypesDefinition,
|
|
27
|
+
partnersOverrideDefinition,
|
|
28
|
+
context
|
|
29
|
+
}) => {
|
|
30
|
+
// Get the initial offers
|
|
31
|
+
const initialOffersData = await (0, _utils.getOffersByProductTypes)({
|
|
32
|
+
enableUseCachedOffers,
|
|
33
|
+
productTypes,
|
|
34
|
+
tags,
|
|
35
|
+
context
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
// If no initial offers are returned, get offers for the default product type
|
|
39
|
+
// if initial offers are returned, return them
|
|
40
|
+
const offersData = (0, _radash.isEmpty)(initialOffersData === null || initialOffersData === void 0 ? void 0 : initialOffersData.offers) ? await (0, _utils.getOffersByProductTypes)({
|
|
41
|
+
enableUseCachedOffers,
|
|
42
|
+
productTypes: [defaultProductType],
|
|
43
|
+
tags,
|
|
44
|
+
context
|
|
45
|
+
}) : initialOffersData;
|
|
46
|
+
const sortedOffers = resultType === "QUERY" ? (0, _utils.selectDynamicOffers)(offersData.offers, productTypes) : (0, _sortOffersByRecommendationScore.sortOffersByRecommendationScore)(offersData.offers);
|
|
47
|
+
return {
|
|
48
|
+
offers: (0, _effect.pipe)(sortedOffers, (0, _formatOfferUrl.formatOfferUrl)(productTypesDefinition, partnersOverrideDefinition), (0, _utils.addClientTagsToOfferLinks)(enableUseCachedOffers, tags), (0, _getOffersBasedOnLayout.getOffersBasedOnLayout)(displayLayout)),
|
|
49
|
+
isError: offersData.isError,
|
|
50
|
+
leadUuid: offersData.leadUuid,
|
|
51
|
+
rateTableUuid: offersData.uuid
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
exports.getDynamicOffers = getDynamicOffers;
|
|
55
|
+
//# sourceMappingURL=getDynamicOffers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_radash","require","_utils","_sortOffersByRecommendationScore","_effect","_formatOfferUrl","_getOffersBasedOnLayout","getDynamicOffers","tags","displayLayout","defaultProductType","productTypes","resultType","enableUseCachedOffers","productTypesDefinition","partnersOverrideDefinition","context","initialOffersData","getOffersByProductTypes","offersData","isEmpty","offers","sortedOffers","selectDynamicOffers","sortOffersByRecommendationScore","pipe","formatOfferUrl","addClientTagsToOfferLinks","getOffersBasedOnLayout","isError","leadUuid","rateTableUuid","uuid","exports"],"sourceRoot":"../../../src","sources":["services/getDynamicOffers.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAMA,IAAAC,MAAA,GAAAD,OAAA;AAUA,IAAAE,gCAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,eAAA,GAAAJ,OAAA;AACA,IAAAK,uBAAA,GAAAL,OAAA;AAqBA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMM,gBAAgB,GAAG,MAAAA,CAAO;EACtCC,IAAI;EACJC,aAAa;EACbC,kBAAkB;EAClBC,YAAY;EACZC,UAAU;EACVC,qBAAqB;EACrBC,sBAAsB;EACtBC,0BAA0B;EAC1BC;AACqC,CAAC,KAAK;EAC3C;EACA,MAAMC,iBAAiB,GAAG,MAAM,IAAAC,8BAAuB,EAAC;IACvDL,qBAAqB;IACrBF,YAAY;IACZH,IAAI;IACJQ;EACD,CAAC,CAAC;;EAEF;EACA;EACA,MAAMG,UAAU,GAAG,IAAAC,eAAO,EAACH,iBAAiB,aAAjBA,iBAAiB,uBAAjBA,iBAAiB,CAAEI,MAAM,CAAC,GAClD,MAAM,IAAAH,8BAAuB,EAAC;IAC9BL,qBAAqB;IACrBF,YAAY,EAAE,CAACD,kBAAkB,CAAC;IAClCF,IAAI;IACJQ;EACD,CAAC,CAAC,GACDC,iBAAiB;EAEpB,MAAMK,YAAY,GACjBV,UAAU,KAAK,OAAO,GACnB,IAAAW,0BAAmB,EAACJ,UAAU,CAACE,MAAM,EAAEV,YAAY,CAAC,GACpD,IAAAa,gEAA+B,EAACL,UAAU,CAACE,MAAM,CAAC;EAEtD,OAAO;IACNA,MAAM,EAAE,IAAAI,YAAI,EACXH,YAAY,EACZ,IAAAI,8BAAc,EAACZ,sBAAsB,EAAEC,0BAA0B,CAAC,EAClE,IAAAY,gCAAyB,EAACd,qBAAqB,EAAEL,IAAI,CAAC,EACtD,IAAAoB,8CAAsB,EAACnB,aAAa,CACrC,CAAC;IACDoB,OAAO,EAAEV,UAAU,CAACU,OAAO;IAC3BC,QAAQ,EAAEX,UAAU,CAACW,QAAQ;IAC7BC,aAAa,EAAEZ,UAAU,CAACa;EAC3B,CAAC;AACF,CAAC;AAACC,OAAA,CAAA1B,gBAAA,GAAAA,gBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getProductTypes = void 0;
|
|
7
|
+
var _getProductTypesByQuery = require("./getProductTypesByQuery");
|
|
8
|
+
const parseProductTypes = query => {
|
|
9
|
+
return query.includes(",") ? query.split(",").map(productType => productType.trim()) : [query];
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Get the product types
|
|
14
|
+
* @param props - The properties to get the product types
|
|
15
|
+
* @returns The product types
|
|
16
|
+
*/
|
|
17
|
+
const getProductTypes = async ({
|
|
18
|
+
productType,
|
|
19
|
+
defaultProductType,
|
|
20
|
+
query,
|
|
21
|
+
searchAPIToken,
|
|
22
|
+
isDev
|
|
23
|
+
}) => {
|
|
24
|
+
if (query && query.trim().length > 0) {
|
|
25
|
+
const productTypes = await (0, _getProductTypesByQuery.getProductTypesByQuery)({
|
|
26
|
+
query,
|
|
27
|
+
searchAPIToken,
|
|
28
|
+
isDev
|
|
29
|
+
});
|
|
30
|
+
return {
|
|
31
|
+
productTypes,
|
|
32
|
+
resultType: "QUERY"
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// TODO: Check if need to add support for productType as enf app
|
|
37
|
+
if (productType && productType.trim().length > 0) {
|
|
38
|
+
const productTypes = await parseProductTypes(productType);
|
|
39
|
+
return {
|
|
40
|
+
productTypes,
|
|
41
|
+
resultType: "PRODUCT_TYPE"
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
productTypes: [defaultProductType],
|
|
46
|
+
resultType: "DEFAULT"
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
exports.getProductTypes = getProductTypes;
|
|
50
|
+
//# sourceMappingURL=getProductTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_getProductTypesByQuery","require","parseProductTypes","query","includes","split","map","productType","trim","getProductTypes","defaultProductType","searchAPIToken","isDev","length","productTypes","getProductTypesByQuery","resultType","exports"],"sourceRoot":"../../../src","sources":["services/getProductTypes.ts"],"mappings":";;;;;;AAAA,IAAAA,uBAAA,GAAAC,OAAA;AAiBA,MAAMC,iBAAiB,GAAIC,KAAa,IAAe;EACtD,OAAOA,KAAK,CAACC,QAAQ,CAAC,GAAG,CAAC,GACvBD,KAAK,CAACE,KAAK,CAAC,GAAG,CAAC,CAACC,GAAG,CAAEC,WAAW,IAAKA,WAAW,CAACC,IAAI,CAAC,CAAC,CAAC,GACzD,CAACL,KAAK,CAAC;AACX,CAAC;;AAED;AACA;AACA;AACA;AACA;AACO,MAAMM,eAAe,GAAG,MAAAA,CAAO;EACrCF,WAAW;EACXG,kBAAkB;EAClBP,KAAK;EACLQ,cAAc;EACdC;AACqB,CAAC,KAAkC;EACxD,IAAIT,KAAK,IAAIA,KAAK,CAACK,IAAI,CAAC,CAAC,CAACK,MAAM,GAAG,CAAC,EAAE;IACrC,MAAMC,YAAY,GAAG,MAAM,IAAAC,8CAAsB,EAAC;MACjDZ,KAAK;MACLQ,cAAc;MACdC;IACD,CAAC,CAAC;IAEF,OAAO;MAAEE,YAAY;MAAEE,UAAU,EAAE;IAAQ,CAAC;EAC7C;;EAEA;EACA,IAAIT,WAAW,IAAIA,WAAW,CAACC,IAAI,CAAC,CAAC,CAACK,MAAM,GAAG,CAAC,EAAE;IACjD,MAAMC,YAAY,GAAG,MAAMZ,iBAAiB,CAACK,WAAW,CAAC;IACzD,OAAO;MAAEO,YAAY;MAAEE,UAAU,EAAE;IAAe,CAAC;EACpD;EAEA,OAAO;IAAEF,YAAY,EAAE,CAACJ,kBAAkB,CAAC;IAAEM,UAAU,EAAE;EAAU,CAAC;AACrE,CAAC;AAACC,OAAA,CAAAR,eAAA,GAAAA,eAAA","ignoreList":[]}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getProductTypesByQuery = void 0;
|
|
7
|
+
var _effect = require("effect");
|
|
8
|
+
var _thirdPartySearch = require("../../capabilities/core/src/domain/third-party-search");
|
|
9
|
+
var _apiEnvironment = require("../apiEnvironment");
|
|
10
|
+
/**
|
|
11
|
+
* Get product types by query
|
|
12
|
+
* @param query {string} - The query to get the product types for
|
|
13
|
+
* @param context The context to get the product types from
|
|
14
|
+
* @returns {Promise<string[]>} The product types
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const productTypes = await getProductTypesByQuery('best credit cards', {
|
|
19
|
+
* cnfEnv: {
|
|
20
|
+
* THIRD_PARTY_SEARCH_API_URL: 'https://api.third-party-search.com',
|
|
21
|
+
* THIRD_PARTY_SEARCH_API_TOKEN: 'your-token',
|
|
22
|
+
* },
|
|
23
|
+
* thirdPartySearchApiClient: makeThirdPartySearchApiClient,
|
|
24
|
+
* })
|
|
25
|
+
* // productTypes = ['credit-card', 'loan', 'insurance']
|
|
26
|
+
* or
|
|
27
|
+
* // productTypes = []
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
|
|
31
|
+
const getProductTypesByQuery = async ({
|
|
32
|
+
query,
|
|
33
|
+
searchAPIToken,
|
|
34
|
+
isDev
|
|
35
|
+
}) => {
|
|
36
|
+
const url = `${(0, _apiEnvironment.getEwsSearchApiBaseUrl)(isDev)}/search/product-types?query=${encodeURIComponent(query)}`;
|
|
37
|
+
const headers = {
|
|
38
|
+
Authorization: `Bearer ${searchAPIToken}`
|
|
39
|
+
};
|
|
40
|
+
try {
|
|
41
|
+
const response = await fetch(url, {
|
|
42
|
+
headers
|
|
43
|
+
});
|
|
44
|
+
if (!response.ok) {
|
|
45
|
+
throw new Error();
|
|
46
|
+
}
|
|
47
|
+
const productTypes = await response.json();
|
|
48
|
+
return (0, _effect.pipe)(productTypes, _thirdPartySearch.orderProductTypesByRank);
|
|
49
|
+
} catch (error) {
|
|
50
|
+
console.error("Error fetching ProductTypesByQuery", JSON.stringify(error));
|
|
51
|
+
return [];
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
exports.getProductTypesByQuery = getProductTypesByQuery;
|
|
55
|
+
//# sourceMappingURL=getProductTypesByQuery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_effect","require","_thirdPartySearch","_apiEnvironment","getProductTypesByQuery","query","searchAPIToken","isDev","url","getEwsSearchApiBaseUrl","encodeURIComponent","headers","Authorization","response","fetch","ok","Error","productTypes","json","pipe","orderProductTypesByRank","error","console","JSON","stringify","exports"],"sourceRoot":"../../../src","sources":["services/getProductTypesByQuery.ts"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAF,OAAA;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEO,MAAMG,sBAAsB,GAAG,MAAAA,CAAO;EAC5CC,KAAK;EACLC,cAAc;EACdC;AAC4B,CAAC,KAAK;EAClC,MAAMC,GAAG,GAAG,GAAG,IAAAC,sCAAsB,EAACF,KAAK,CAAC,+BAA+BG,kBAAkB,CAACL,KAAK,CAAC,EAAE;EACtG,MAAMM,OAAO,GAAG;IACfC,aAAa,EAAE,UAAUN,cAAc;EACxC,CAAC;EACD,IAAI;IACH,MAAMO,QAAQ,GAAG,MAAMC,KAAK,CAACN,GAAG,EAAE;MAAEG;IAAQ,CAAC,CAAC;IAC9C,IAAI,CAACE,QAAQ,CAACE,EAAE,EAAE;MACjB,MAAM,IAAIC,KAAK,CAAC,CAAC;IAClB;IACA,MAAMC,YAAY,GAAG,MAAMJ,QAAQ,CAACK,IAAI,CAAC,CAAC;IAE1C,OAAO,IAAAC,YAAI,EAACF,YAAY,EAAEG,yCAAuB,CAAC;EACnD,CAAC,CAAC,OAAOC,KAAK,EAAE;IACfC,OAAO,CAACD,KAAK,CAAC,oCAAoC,EAAEE,IAAI,CAACC,SAAS,CAACH,KAAK,CAAC,CAAC;IAC1E,OAAO,EAAE;EACV;AACD,CAAC;AAACI,OAAA,CAAArB,sBAAA,GAAAA,sBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.addClientTagsToOfferLinks = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Add client tags to offer links
|
|
9
|
+
* @param enableUseCachedOffers - Whether to use cached offers
|
|
10
|
+
* @param clientTags - The client tags
|
|
11
|
+
* @returns The offers with the client tags added to the links
|
|
12
|
+
*/
|
|
13
|
+
const addClientTagsToOfferLinks = (enableUseCachedOffers, clientTags) => offers => {
|
|
14
|
+
if (!enableUseCachedOffers) {
|
|
15
|
+
return offers;
|
|
16
|
+
}
|
|
17
|
+
return offers.map(offer => {
|
|
18
|
+
return {
|
|
19
|
+
...offer,
|
|
20
|
+
url: `${offer.url}?${clientTags}`
|
|
21
|
+
};
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
exports.addClientTagsToOfferLinks = addClientTagsToOfferLinks;
|
|
25
|
+
//# sourceMappingURL=addClientTagsToOfferLinks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["addClientTagsToOfferLinks","enableUseCachedOffers","clientTags","offers","map","offer","url","exports"],"sourceRoot":"../../../src","sources":["utils/addClientTagsToOfferLinks.ts"],"mappings":";;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,yBAAyB,GACrCA,CAACC,qBAA8B,EAAEC,UAAkB,KAClDC,MAAmB,IAAkB;EACrC,IAAI,CAACF,qBAAqB,EAAE;IAC3B,OAAOE,MAAM;EACd;EAEA,OAAOA,MAAM,CAACC,GAAG,CAAEC,KAAK,IAAK;IAC5B,OAAO;MACN,GAAGA,KAAK;MACRC,GAAG,EAAE,GAAGD,KAAK,CAACC,GAAG,IAAIJ,UAAU;IAChC,CAAC;EACF,CAAC,CAAC;AACH,CAAC;AAACK,OAAA,CAAAP,yBAAA,GAAAA,yBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.formatOfferUrl = void 0;
|
|
7
|
+
var _src = require("../../capabilities/offer-catalog/src");
|
|
8
|
+
/**
|
|
9
|
+
* Format the offer URL
|
|
10
|
+
* @param offers - The offers to format if needed
|
|
11
|
+
* @returns The offers with the formatted URL
|
|
12
|
+
*/
|
|
13
|
+
const formatOfferUrl = (productTypesDefinition, partnersOverrideDefinition) => offers => {
|
|
14
|
+
return offers.map(offer => {
|
|
15
|
+
const {
|
|
16
|
+
url,
|
|
17
|
+
overrideUrl
|
|
18
|
+
} = (0, _src.getOfferUrl)({
|
|
19
|
+
offer,
|
|
20
|
+
productTypesDefinition,
|
|
21
|
+
partnersOverrideDefinition
|
|
22
|
+
});
|
|
23
|
+
return {
|
|
24
|
+
...offer,
|
|
25
|
+
url,
|
|
26
|
+
overrideUrl
|
|
27
|
+
};
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
exports.formatOfferUrl = formatOfferUrl;
|
|
31
|
+
//# sourceMappingURL=formatOfferUrl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_src","require","formatOfferUrl","productTypesDefinition","partnersOverrideDefinition","offers","map","offer","url","overrideUrl","getOfferUrl","exports"],"sourceRoot":"../../../src","sources":["utils/formatOfferUrl.ts"],"mappings":";;;;;;AAAA,IAAAA,IAAA,GAAAC,OAAA;AAOA;AACA;AACA;AACA;AACA;AACO,MAAMC,cAAc,GAC1BA,CACCC,sBAA+C,EAC/CC,0BAA6C,KAE7CC,MAAmB,IAAK;EACxB,OAAOA,MAAM,CAACC,GAAG,CAAEC,KAAK,IAAK;IAC5B,MAAM;MAAEC,GAAG;MAAEC;IAAY,CAAC,GAAG,IAAAC,gBAAW,EAAC;MACxCH,KAAK;MACLJ,sBAAsB;MACtBC;IACD,CAAC,CAAC;IAEF,OAAO;MACN,GAAGG,KAAK;MACRC,GAAG;MACHC;IACD,CAAC;EACF,CAAC,CAAC;AACH,CAAC;AAACE,OAAA,CAAAT,cAAA,GAAAA,cAAA","ignoreList":[]}
|