@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,55 @@
|
|
|
1
|
+
// import { memo } from "react";
|
|
2
|
+
// import { VideoContent, type VideoContentProps } from "./VideoContent";
|
|
3
|
+
// import { GenericOfferVertical } from "../../../../capabilities/ui/elements/src";
|
|
4
|
+
// import React from "react";
|
|
5
|
+
// import Text from "../../Text";
|
|
6
|
+
// import { View, StyleSheet } from "react-native";
|
|
7
|
+
|
|
8
|
+
// type VideosContent = {
|
|
9
|
+
// title: string;
|
|
10
|
+
// subtitle: string;
|
|
11
|
+
// videos: VideoContentProps[];
|
|
12
|
+
// };
|
|
13
|
+
|
|
14
|
+
// export type VideosCardProps = {
|
|
15
|
+
// videosContent: VideosContent;
|
|
16
|
+
// showBorder: boolean;
|
|
17
|
+
// };
|
|
18
|
+
|
|
19
|
+
// export const VideosCard = memo(
|
|
20
|
+
// ({
|
|
21
|
+
// videosContent: { title, subtitle, videos },
|
|
22
|
+
// showBorder,
|
|
23
|
+
// }: VideosCardProps) => {
|
|
24
|
+
// const renderVideos = () =>
|
|
25
|
+
// videos.map((video) => <VideoContent key={video.muxId} {...video} />);
|
|
26
|
+
|
|
27
|
+
// return (
|
|
28
|
+
// <GenericOfferVertical showBorder={showBorder}>
|
|
29
|
+
// <GenericOfferVertical.Container>
|
|
30
|
+
// <View style={styles.textContainer}>
|
|
31
|
+
// <Text variant="featured-2" weight="bold">
|
|
32
|
+
// {title}
|
|
33
|
+
// </Text>
|
|
34
|
+
// <Text variant="body-3" weight="regular">
|
|
35
|
+
// {subtitle}
|
|
36
|
+
// </Text>
|
|
37
|
+
// </View>
|
|
38
|
+
// <View style={styles.videoContainer}>{renderVideos()}</View>
|
|
39
|
+
// </GenericOfferVertical.Container>
|
|
40
|
+
// </GenericOfferVertical>
|
|
41
|
+
// );
|
|
42
|
+
// }
|
|
43
|
+
// );
|
|
44
|
+
|
|
45
|
+
// const styles = StyleSheet.create({
|
|
46
|
+
// textContainer: {
|
|
47
|
+
// gap: 1,
|
|
48
|
+
// },
|
|
49
|
+
// videoContainer: {
|
|
50
|
+
// flexDirection: "row",
|
|
51
|
+
// gap: 3,
|
|
52
|
+
// justifyContent: "space-between",
|
|
53
|
+
// },
|
|
54
|
+
// });
|
|
55
|
+
//# sourceMappingURL=VideosCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/Cards/VideosCard/VideosCard.tsx"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;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;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["components/Cards/index.ts"],"mappings":"AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
+
import React from "react";
|
|
3
|
+
import View from "../../../View";
|
|
4
|
+
export function Content({
|
|
5
|
+
children,
|
|
6
|
+
...rest
|
|
7
|
+
}) {
|
|
8
|
+
return /*#__PURE__*/React.createElement(View, _extends({
|
|
9
|
+
gap: 4,
|
|
10
|
+
width: "100%"
|
|
11
|
+
}, rest), children);
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=Content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","Content","children","rest","createElement","_extends","gap","width"],"sourceRoot":"../../../../../../src","sources":["components/Common/BaseOfferCard/Content/Content.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,IAAI,MAA0B,eAAe;AAEpD,OAAO,SAASC,OAAOA,CAAC;EAAEC,QAAQ;EAAE,GAAGC;AAAgB,CAAC,EAAE;EACzD,oBACCJ,KAAA,CAAAK,aAAA,CAACJ,IAAI,EAAAK,QAAA;IAACC,GAAG,EAAE,CAAE;IAACC,KAAK,EAAE;EAAO,GAAKJ,IAAI,GACnCD,QACI,CAAC;AAET","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["components/Common/BaseOfferCard/Content/index.tsx"],"mappings":"AAAA,cAAc,WAAW","ignoreList":[]}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { MarkdownText } from "../../../../../capabilities/ui/elements/src/components/MarkdownText";
|
|
3
|
+
import Text from "../../../Text";
|
|
4
|
+
import { StyleSheet, View } from "react-native";
|
|
5
|
+
|
|
6
|
+
// Custom function to capitalize first letter but preserve other capitalization
|
|
7
|
+
function smartCapitalize(text) {
|
|
8
|
+
// For other words, capitalize first letter of each word
|
|
9
|
+
return text.split(" ").map(word => {
|
|
10
|
+
if (word.length === 0) return word;
|
|
11
|
+
return word.charAt(0).toUpperCase() + word.slice(1);
|
|
12
|
+
}).join(" ");
|
|
13
|
+
}
|
|
14
|
+
const VerticalStat = props => {
|
|
15
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
16
|
+
style: styles.verticalStatContainer
|
|
17
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
18
|
+
variant: "featured-2",
|
|
19
|
+
color: "neutral",
|
|
20
|
+
weight: "bold"
|
|
21
|
+
}, String(props.content).trim()), /*#__PURE__*/React.createElement(MarkdownText, {
|
|
22
|
+
variant: "body-3",
|
|
23
|
+
weight: "regular",
|
|
24
|
+
color: "neutral-faded",
|
|
25
|
+
content: props.label.trim()
|
|
26
|
+
}));
|
|
27
|
+
};
|
|
28
|
+
export const Stat = ({
|
|
29
|
+
content,
|
|
30
|
+
label,
|
|
31
|
+
isVertical,
|
|
32
|
+
isHighlighted,
|
|
33
|
+
isNull
|
|
34
|
+
}) => {
|
|
35
|
+
// Handle container layout change
|
|
36
|
+
|
|
37
|
+
if (isNull) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
if (isVertical) {
|
|
41
|
+
return /*#__PURE__*/React.createElement(VerticalStat, {
|
|
42
|
+
content: content,
|
|
43
|
+
label: label
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
47
|
+
style: [styles.horizontalStatContainer, isHighlighted ? styles.highlightedContainer : null]
|
|
48
|
+
}, /*#__PURE__*/React.createElement(MarkdownText, {
|
|
49
|
+
variant: "body-3",
|
|
50
|
+
color: "neutral-faded",
|
|
51
|
+
content: label.trim()
|
|
52
|
+
}), /*#__PURE__*/React.createElement(Text, {
|
|
53
|
+
variant: "body-3",
|
|
54
|
+
color: "neutral",
|
|
55
|
+
weight: "bold"
|
|
56
|
+
}, smartCapitalize(String(content).trim())));
|
|
57
|
+
};
|
|
58
|
+
const styles = StyleSheet.create({
|
|
59
|
+
verticalStatContainer: {
|
|
60
|
+
gap: 4,
|
|
61
|
+
flexDirection: "column"
|
|
62
|
+
},
|
|
63
|
+
horizontalStatContainer: {
|
|
64
|
+
gap: 1,
|
|
65
|
+
flexDirection: "row",
|
|
66
|
+
justifyContent: "space-between",
|
|
67
|
+
flexWrap: "wrap"
|
|
68
|
+
},
|
|
69
|
+
highlightedContainer: {
|
|
70
|
+
padding: 8,
|
|
71
|
+
backgroundColor: "#f4f4f4",
|
|
72
|
+
// Light gray equivalent to neutral-faded
|
|
73
|
+
borderRadius: 8 // medium border radius
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
//# sourceMappingURL=Stat.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","MarkdownText","Text","StyleSheet","View","smartCapitalize","text","split","map","word","length","charAt","toUpperCase","slice","join","VerticalStat","props","createElement","style","styles","verticalStatContainer","variant","color","weight","String","content","trim","label","Stat","isVertical","isHighlighted","isNull","horizontalStatContainer","highlightedContainer","create","gap","flexDirection","justifyContent","flexWrap","padding","backgroundColor","borderRadius"],"sourceRoot":"../../../../../../src","sources":["components/Common/BaseOfferCard/Stat/Stat.tsx"],"mappings":"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AA,CAAAiB,aAAA,CAACF,YAAY;MAACU,OAAO,EAAEA,OAAQ;MAACE,KAAK,EAAEA;IAAM,CAAE,CAAC;EACxD;EAEA,oBACC3B,KAAA,CAAAiB,aAAA,CAACb,IAAI;IACJc,KAAK,EAAE,CACNC,MAAM,CAACa,uBAAuB,EAC9BF,aAAa,GAAGX,MAAM,CAACc,oBAAoB,GAAG,IAAI;EACjD,gBAEFjC,KAAA,CAAAiB,aAAA,CAAChB,YAAY;IACZoB,OAAO,EAAE,QAAS;IAClBC,KAAK,EAAE,eAAgB;IACvBG,OAAO,EAAEE,KAAK,CAACD,IAAI,CAAC;EAAE,CACtB,CAAC,eACF1B,KAAA,CAAAiB,aAAA,CAACf,IAAI;IAACmB,OAAO,EAAC,QAAQ;IAACC,KAAK,EAAC,SAAS;IAACC,MAAM,EAAC;EAAM,GAClDlB,eAAe,CAACmB,MAAM,CAACC,OAAO,CAAC,CAACC,IAAI,CAAC,CAAC,CAClC,CACD,CAAC;AAET,CAAC;AAED,MAAMP,MAAM,GAAGhB,UAAU,CAAC+B,MAAM,CAAC;EAChCd,qBAAqB,EAAE;IACtBe,GAAG,EAAE,CAAC;IACNC,aAAa,EAAE;EAChB,CAAC;EACDJ,uBAAuB,EAAE;IACxBG,GAAG,EAAE,CAAC;IACNC,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,eAAe;IAC/BC,QAAQ,EAAE;EACX,CAAC;EACDL,oBAAoB,EAAE;IACrBM,OAAO,EAAE,CAAC;IACVC,eAAe,EAAE,SAAS;IAAE;IAC5BC,YAAY,EAAE,CAAC,CAAE;EAClB;AACD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["components/Common/BaseOfferCard/Stat/index.tsx"],"mappings":"AAAA,cAAc,QAAQ","ignoreList":[]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
+
import React from "react";
|
|
3
|
+
import View from "../../../View";
|
|
4
|
+
export const StatsContainer = ({
|
|
5
|
+
children,
|
|
6
|
+
...viewProps
|
|
7
|
+
}) => /*#__PURE__*/React.createElement(View, _extends({}, viewProps, {
|
|
8
|
+
gap: 4
|
|
9
|
+
}), children);
|
|
10
|
+
//# sourceMappingURL=StatsContainer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","StatsContainer","children","viewProps","createElement","_extends","gap"],"sourceRoot":"../../../../../../src","sources":["components/Common/BaseOfferCard/StatsContainer/StatsContainer.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,IAAI,MAA0B,eAAe;AAEpD,OAAO,MAAMC,cAAc,GAAGA,CAAC;EAAEC,QAAQ;EAAE,GAAGC;AAAqB,CAAC,kBACnEJ,KAAA,CAAAK,aAAA,CAACJ,IAAI,EAAAK,QAAA,KAAKF,SAAS;EAAEG,GAAG,EAAE;AAAE,IAC1BJ,QACI,CACN","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["components/Common/BaseOfferCard/StatsContainer/index.tsx"],"mappings":"AAAA,cAAc,kBAAkB","ignoreList":[]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export const ThumbsUpIcon = () => /*#__PURE__*/React.createElement("svg", {
|
|
3
|
+
width: "13",
|
|
4
|
+
height: "12",
|
|
5
|
+
viewBox: "0 0 13 12",
|
|
6
|
+
fill: "none",
|
|
7
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
8
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
9
|
+
d: "M12.8349 4.99359L12.0782 7.71044C11.9052 8.33122 11.4165 8.8054 10.8156 8.97501C10.5694 9.04451 10.3256 8.85546 10.3256 8.5996C10.3256 8.42574 10.4407 8.27334 10.6081 8.22597C10.9522 8.12787 11.2329 7.85591 11.3314 7.50307L12.0885 4.78622C12.1765 4.47516 12.109 4.13304 11.9122 3.87382C11.7151 3.61438 11.404 3.46421 11.0825 3.46421H7.93031C7.82148 3.46421 7.71779 3.41751 7.64517 3.33461C7.57254 3.2517 7.53634 3.14265 7.54662 3.03383L7.68137 1.63406C7.71266 1.32814 7.52093 1.043 7.22528 0.949597C7.14238 0.923675 7.07489 0.954737 7.04897 1.01708L6.5987 2.14802C6.51937 2.34713 6.31937 2.47718 6.10641 2.45484C5.94596 2.43808 5.84541 2.34042 5.813 2.15071C5.79021 2.01707 5.81122 1.87965 5.86641 1.75607L6.33345 0.711163C6.52004 0.291278 6.99177 0.0734024 7.42752 0.208373C8.09612 0.410383 8.51622 1.043 8.44874 1.71697L8.37388 2.49551C8.36405 2.59808 8.44449 2.68657 8.54729 2.68657H11.0773C11.6425 2.68657 12.1868 2.95606 12.5292 3.40723C12.8713 3.85818 12.9855 4.44924 12.8349 4.99359Z",
|
|
10
|
+
fill: "black",
|
|
11
|
+
fillOpacity: "0.6"
|
|
12
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
13
|
+
d: "M9.76404 5.48096C9.42192 5.03001 8.87756 4.76029 8.31243 4.76029H5.59066L5.68384 3.79092C5.71982 3.4307 5.61681 3.08254 5.41077 2.80523C5.23133 2.56389 4.97391 2.37618 4.6624 2.2821C4.22687 2.14735 3.75514 2.36501 3.56833 2.78511L2.43292 5.36185H1.00723C0.509358 5.36185 0.0999756 5.77146 0.0999756 6.26911V9.28115C0.0999756 9.77903 0.509358 10.1889 1.00723 10.1889H2.56275L3.0966 10.5725C3.59447 10.9303 4.18039 11.1167 4.79201 11.1167H7.5607C8.37477 11.1167 9.09544 10.5674 9.31309 9.78439L10.07 7.06776C10.2203 6.52341 10.1064 5.93191 9.76404 5.48096ZM9.32337 6.86017L8.5665 9.57679C8.44204 10.0228 8.02751 10.339 7.5607 10.339H4.79201C4.34084 10.339 3.91045 10.1991 3.54777 9.93992L2.91515 9.48361C2.84766 9.43691 2.7699 9.41098 2.687 9.41098H1.00723C0.934606 9.41098 0.877623 9.354 0.877623 9.28138V6.26933C0.877623 6.19671 0.934606 6.13973 1.00723 6.13973V6.13459H2.687C2.75046 6.13459 2.81124 6.11917 2.86509 6.09101C2.94353 6.05056 3.00789 5.98397 3.04476 5.90107L4.28385 3.09103C4.30978 3.02891 4.37704 2.99785 4.46017 3.02377C4.60877 3.0707 4.731 3.16612 4.8119 3.28813C4.89257 3.40902 4.93212 3.55583 4.91648 3.70801L4.78173 5.10778C4.77122 5.21683 4.80743 5.32565 4.88027 5.40878C4.9196 5.4537 4.9681 5.48811 5.02195 5.51001C5.06687 5.52878 5.11558 5.53839 5.16564 5.53839H8.31757C8.63913 5.53839 8.95019 5.68856 9.14728 5.94777C9.34415 6.20699 9.41141 6.54888 9.32337 6.86017Z",
|
|
14
|
+
fill: "black",
|
|
15
|
+
fillOpacity: "0.6"
|
|
16
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
17
|
+
d: "M3.03448 6.92743V8.52965C3.03448 8.74216 2.85817 8.91848 2.64565 8.91848C2.43314 8.91848 2.25661 8.74216 2.25661 8.52965V6.92743C2.25661 6.71492 2.43314 6.53861 2.64565 6.53861C2.72677 6.53861 2.80253 6.5643 2.86509 6.60788C2.96699 6.67849 3.03448 6.79603 3.03448 6.92743Z",
|
|
18
|
+
fill: "black",
|
|
19
|
+
fillOpacity: "0.6"
|
|
20
|
+
}));
|
|
21
|
+
//# sourceMappingURL=ThumbsUpIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","ThumbsUpIcon","createElement","width","height","viewBox","fill","xmlns","d","fillOpacity"],"sourceRoot":"../../../../../src","sources":["components/Common/BaseOfferCard/ThumbsUpIcon.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,OAAO,MAAMC,YAAY,GAAGA,CAAA,kBAC3BD,KAAA,CAAAE,aAAA;EACCC,KAAK,EAAC,IAAI;EACVC,MAAM,EAAC,IAAI;EACXC,OAAO,EAAC,WAAW;EACnBC,IAAI,EAAC,MAAM;EACXC,KAAK,EAAC;AAA4B,gBAElCP,KAAA,CAAAE,aAAA;EACCM,CAAC,EAAC,g+BAAg+B;EACl+BF,IAAI,EAAC,OAAO;EACZG,WAAW,EAAC;AAAK,CACjB,CAAC,eACFT,KAAA,CAAAE,aAAA;EACCM,CAAC,EAAC,+2CAA+2C;EACj3CF,IAAI,EAAC,OAAO;EACZG,WAAW,EAAC;AAAK,CACjB,CAAC,eACFT,KAAA,CAAAE,aAAA;EACCM,CAAC,EAAC,kRAAkR;EACpRF,IAAI,EAAC,OAAO;EACZG,WAAW,EAAC;AAAK,CACjB,CACG,CACL","ignoreList":[]}
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { ThumborImage } from "../../../../capabilities/ui/elements/src";
|
|
4
|
+
// import { ThumbsUpIcon } from "./ThumbsUpIcon";
|
|
5
|
+
import { MarkdownText } from "../../../../capabilities/ui/elements/src/components/MarkdownText";
|
|
6
|
+
import { arrayToMarkdownList } from "../../../../capabilities/offer-catalog/src";
|
|
7
|
+
import { StatsContainer } from "./StatsContainer";
|
|
8
|
+
import { Content } from "./Content";
|
|
9
|
+
import { Stat } from "./Stat";
|
|
10
|
+
import Button from "../../Button";
|
|
11
|
+
import Divider from "../../Divider";
|
|
12
|
+
import Text from "../../Text";
|
|
13
|
+
import View from "../../View";
|
|
14
|
+
import { StyleSheet } from "react-native";
|
|
15
|
+
const CardWidth = 282;
|
|
16
|
+
const BaseOfferCard = ({
|
|
17
|
+
children,
|
|
18
|
+
showBorder = true,
|
|
19
|
+
...rest
|
|
20
|
+
}) => /*#__PURE__*/React.createElement(View, _extends({
|
|
21
|
+
borderColor: showBorder ? "neutral" : undefined,
|
|
22
|
+
direction: "column",
|
|
23
|
+
backgroundColor: "white",
|
|
24
|
+
width: CardWidth,
|
|
25
|
+
gap: 1,
|
|
26
|
+
style: styles.baseOfferCard
|
|
27
|
+
}, rest), children);
|
|
28
|
+
const Container = ({
|
|
29
|
+
children,
|
|
30
|
+
...rest
|
|
31
|
+
}) => /*#__PURE__*/React.createElement(View
|
|
32
|
+
// height={"100%"}
|
|
33
|
+
, _extends({
|
|
34
|
+
maxHeight: "100%"
|
|
35
|
+
// minHeight={100}
|
|
36
|
+
,
|
|
37
|
+
style: styles.container
|
|
38
|
+
}, rest), children);
|
|
39
|
+
const Tip = ({
|
|
40
|
+
children
|
|
41
|
+
}) => /*#__PURE__*/React.createElement(Text, {
|
|
42
|
+
variant: "caption-2",
|
|
43
|
+
color: "positive",
|
|
44
|
+
weight: "bold",
|
|
45
|
+
style: styles.tip
|
|
46
|
+
}, children);
|
|
47
|
+
const CreditCardImage = props => {
|
|
48
|
+
const calculatedWidth = CardWidth - 50;
|
|
49
|
+
const cardImageAspectRatio = 230 / 145;
|
|
50
|
+
const calculatedHeight = calculatedWidth / cardImageAspectRatio;
|
|
51
|
+
return /*#__PURE__*/React.createElement(ThumborImage, _extends({
|
|
52
|
+
width: calculatedWidth,
|
|
53
|
+
height: calculatedHeight,
|
|
54
|
+
resizeMode: "contain"
|
|
55
|
+
}, props));
|
|
56
|
+
};
|
|
57
|
+
const CreditCardContainer = ({
|
|
58
|
+
children,
|
|
59
|
+
...rest
|
|
60
|
+
}) => /*#__PURE__*/React.createElement(View, _extends({
|
|
61
|
+
width: "100%",
|
|
62
|
+
direction: "column",
|
|
63
|
+
gap: 16,
|
|
64
|
+
style: styles.creditCardContainer
|
|
65
|
+
}, rest), children);
|
|
66
|
+
const PartnerContainer = ({
|
|
67
|
+
children,
|
|
68
|
+
...rest
|
|
69
|
+
}) => /*#__PURE__*/React.createElement(View, _extends({
|
|
70
|
+
width: "100%",
|
|
71
|
+
direction: "column",
|
|
72
|
+
gap: 3
|
|
73
|
+
}, rest, {
|
|
74
|
+
style: styles.partnerContainer
|
|
75
|
+
}), children);
|
|
76
|
+
const PartnerImage = props => {
|
|
77
|
+
// In the parent component that uses ThumborImage
|
|
78
|
+
// -32 is to account for the left + right margin of the image
|
|
79
|
+
const calculatedWidth = CardWidth - 32;
|
|
80
|
+
return /*#__PURE__*/React.createElement(ThumborImage, _extends({
|
|
81
|
+
width: calculatedWidth,
|
|
82
|
+
resizeMode: "contain",
|
|
83
|
+
height: 32
|
|
84
|
+
}, props));
|
|
85
|
+
};
|
|
86
|
+
const TopContainer = ({
|
|
87
|
+
children,
|
|
88
|
+
...viewProps
|
|
89
|
+
}) => /*#__PURE__*/React.createElement(View, _extends({}, viewProps, {
|
|
90
|
+
gap: 3,
|
|
91
|
+
direction: "column"
|
|
92
|
+
}), children, /*#__PURE__*/React.createElement(Divider, null));
|
|
93
|
+
const TopBar = ({
|
|
94
|
+
children,
|
|
95
|
+
...viewProps
|
|
96
|
+
}) => /*#__PURE__*/React.createElement(View, _extends({
|
|
97
|
+
direction: "row",
|
|
98
|
+
backgroundColor: "primary-faded"
|
|
99
|
+
}, viewProps, {
|
|
100
|
+
style: styles.topBar
|
|
101
|
+
}), children);
|
|
102
|
+
const ProductType = ({
|
|
103
|
+
children,
|
|
104
|
+
...rest
|
|
105
|
+
}) => /*#__PURE__*/React.createElement(Text, _extends({
|
|
106
|
+
weight: "bold",
|
|
107
|
+
variant: "caption-1",
|
|
108
|
+
color: "primary"
|
|
109
|
+
}, rest), children);
|
|
110
|
+
const ChosenBy = ({
|
|
111
|
+
children,
|
|
112
|
+
...rest
|
|
113
|
+
}) => /*#__PURE__*/React.createElement(View, _extends({
|
|
114
|
+
width: "100%",
|
|
115
|
+
style: styles.chosenBy
|
|
116
|
+
}, rest), /*#__PURE__*/React.createElement(View, {
|
|
117
|
+
direction: "row",
|
|
118
|
+
style: {
|
|
119
|
+
alignItems: "center"
|
|
120
|
+
}
|
|
121
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
122
|
+
variant: "caption-1",
|
|
123
|
+
weight: "bold"
|
|
124
|
+
}, "Chosen by ", children)));
|
|
125
|
+
const BottomBar = ({
|
|
126
|
+
children,
|
|
127
|
+
...viewProps
|
|
128
|
+
}) => /*#__PURE__*/React.createElement(View, _extends({
|
|
129
|
+
gap: 5
|
|
130
|
+
}, viewProps, {
|
|
131
|
+
style: styles.bottomBar
|
|
132
|
+
}), children);
|
|
133
|
+
const Headline = ({
|
|
134
|
+
children,
|
|
135
|
+
...rest
|
|
136
|
+
}) => /*#__PURE__*/React.createElement(Text, _extends({
|
|
137
|
+
variant: "body-2",
|
|
138
|
+
color: "neutral",
|
|
139
|
+
weight: "bold",
|
|
140
|
+
numberOfLines: 2
|
|
141
|
+
}, rest), children);
|
|
142
|
+
const Description = ({
|
|
143
|
+
children,
|
|
144
|
+
...rest
|
|
145
|
+
}) => /*#__PURE__*/React.createElement(Text, _extends({
|
|
146
|
+
variant: "body-3",
|
|
147
|
+
color: "neutral-faded",
|
|
148
|
+
numberOfLines: 4
|
|
149
|
+
}, rest), children);
|
|
150
|
+
const DescriptionPoints = ({
|
|
151
|
+
descriptionPoints,
|
|
152
|
+
...rest
|
|
153
|
+
}) => descriptionPoints.length > 0 && /*#__PURE__*/React.createElement(MarkdownText, _extends({
|
|
154
|
+
content: arrayToMarkdownList(descriptionPoints),
|
|
155
|
+
color: "neutral-faded",
|
|
156
|
+
variant: "body-3"
|
|
157
|
+
}, rest));
|
|
158
|
+
const DescriptionHandler = ({
|
|
159
|
+
descriptionPoints,
|
|
160
|
+
contentDescription,
|
|
161
|
+
hasDivider = true
|
|
162
|
+
}) => {
|
|
163
|
+
const renderContentDescription = () => {
|
|
164
|
+
if (descriptionPoints.length > 0) {
|
|
165
|
+
return /*#__PURE__*/React.createElement(DescriptionPoints, {
|
|
166
|
+
numberOfLines: 4,
|
|
167
|
+
color: "neutral-faded",
|
|
168
|
+
variant: "body-3",
|
|
169
|
+
descriptionPoints: descriptionPoints
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
if (contentDescription) {
|
|
173
|
+
return /*#__PURE__*/React.createElement(Description, {
|
|
174
|
+
variant: "body-3",
|
|
175
|
+
color: "neutral-faded"
|
|
176
|
+
}, contentDescription);
|
|
177
|
+
}
|
|
178
|
+
return null;
|
|
179
|
+
};
|
|
180
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
181
|
+
gap: 3,
|
|
182
|
+
direction: "column"
|
|
183
|
+
}, hasDivider && /*#__PURE__*/React.createElement(Divider, null), renderContentDescription());
|
|
184
|
+
};
|
|
185
|
+
const CallToAction = ({
|
|
186
|
+
children,
|
|
187
|
+
...rest
|
|
188
|
+
}) => /*#__PURE__*/React.createElement(Button, _extends({
|
|
189
|
+
color: "positive"
|
|
190
|
+
}, rest), children);
|
|
191
|
+
BaseOfferCard.Container = Container;
|
|
192
|
+
BaseOfferCard.TopContainer = TopContainer;
|
|
193
|
+
BaseOfferCard.Stats = StatsContainer;
|
|
194
|
+
BaseOfferCard.CallToAction = CallToAction;
|
|
195
|
+
BaseOfferCard.ChosenBy = ChosenBy;
|
|
196
|
+
BaseOfferCard.BottomBar = BottomBar;
|
|
197
|
+
BaseOfferCard.Content = Content;
|
|
198
|
+
BaseOfferCard.PartnerContainer = PartnerContainer;
|
|
199
|
+
BaseOfferCard.PartnerImage = PartnerImage;
|
|
200
|
+
BaseOfferCard.Headline = Headline;
|
|
201
|
+
BaseOfferCard.Description = Description;
|
|
202
|
+
BaseOfferCard.DescriptionPoints = DescriptionPoints;
|
|
203
|
+
BaseOfferCard.DescriptionHandler = DescriptionHandler;
|
|
204
|
+
BaseOfferCard.Stat = Stat;
|
|
205
|
+
BaseOfferCard.Tip = Tip;
|
|
206
|
+
BaseOfferCard.CreditCardImage = CreditCardImage;
|
|
207
|
+
BaseOfferCard.CreditCardContainer = CreditCardContainer;
|
|
208
|
+
BaseOfferCard.TopBar = TopBar;
|
|
209
|
+
BaseOfferCard.ProductType = ProductType;
|
|
210
|
+
export { BaseOfferCard };
|
|
211
|
+
const styles = StyleSheet.create({
|
|
212
|
+
container: {
|
|
213
|
+
justifyContent: "space-between",
|
|
214
|
+
padding: 16,
|
|
215
|
+
flexDirection: "column",
|
|
216
|
+
display: "flex",
|
|
217
|
+
flexGrow: 1
|
|
218
|
+
},
|
|
219
|
+
tip: {
|
|
220
|
+
textAlign: "center"
|
|
221
|
+
},
|
|
222
|
+
creditCardContainer: {
|
|
223
|
+
alignItems: "center"
|
|
224
|
+
},
|
|
225
|
+
partnerContainer: {
|
|
226
|
+
alignItems: "flex-start"
|
|
227
|
+
},
|
|
228
|
+
baseOfferCard: {
|
|
229
|
+
borderRadius: 16,
|
|
230
|
+
overflow: "hidden",
|
|
231
|
+
flex: 1,
|
|
232
|
+
display: "flex"
|
|
233
|
+
},
|
|
234
|
+
topBar: {
|
|
235
|
+
paddingHorizontal: 16,
|
|
236
|
+
paddingVertical: 8,
|
|
237
|
+
justifyContent: "space-between",
|
|
238
|
+
alignItems: "baseline"
|
|
239
|
+
},
|
|
240
|
+
bottomBar: {
|
|
241
|
+
marginTop: "auto"
|
|
242
|
+
},
|
|
243
|
+
chosenBy: {
|
|
244
|
+
justifyContent: "center",
|
|
245
|
+
alignItems: "center"
|
|
246
|
+
}
|
|
247
|
+
});
|
|
248
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","ThumborImage","MarkdownText","arrayToMarkdownList","StatsContainer","Content","Stat","Button","Divider","Text","View","StyleSheet","CardWidth","BaseOfferCard","children","showBorder","rest","createElement","_extends","borderColor","undefined","direction","backgroundColor","width","gap","style","styles","baseOfferCard","Container","maxHeight","container","Tip","variant","color","weight","tip","CreditCardImage","props","calculatedWidth","cardImageAspectRatio","calculatedHeight","height","resizeMode","CreditCardContainer","creditCardContainer","PartnerContainer","partnerContainer","PartnerImage","TopContainer","viewProps","TopBar","topBar","ProductType","ChosenBy","chosenBy","alignItems","BottomBar","bottomBar","Headline","numberOfLines","Description","DescriptionPoints","descriptionPoints","length","content","DescriptionHandler","contentDescription","hasDivider","renderContentDescription","CallToAction","Stats","create","justifyContent","padding","flexDirection","display","flexGrow","textAlign","borderRadius","overflow","flex","paddingHorizontal","paddingVertical","marginTop"],"sourceRoot":"../../../../../src","sources":["components/Common/BaseOfferCard/index.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAA+B,OAAO;AAElD,SAASC,YAAY,QAAQ,0CAA0C;AACvE;AACA,SAASC,YAAY,QAAQ,kEAAkE;AAC/F,SAASC,mBAAmB,QAAQ,4CAA4C;AAChF,SAASC,cAAc,QAAQ,kBAAkB;AACjD,SAASC,OAAO,QAAQ,WAAW;AACnC,SAASC,IAAI,QAAQ,QAAQ;AAC7B,OAAOC,MAAM,MAAM,cAAc;AACjC,OAAOC,OAAO,MAAM,eAAe;AACnC,OAAOC,IAAI,MAA0B,YAAY;AACjD,OAAOC,IAAI,MAA0B,YAAY;AACjD,SAASC,UAAU,QAAQ,cAAc;AAEzC,MAAMC,SAAS,GAAG,GAAG;AAErB,MAAMC,aAAa,GAAGA,CAAC;EACtBC,QAAQ;EACRC,UAAU,GAAG,IAAI;EACjB,GAAGC;AACiC,CAAC,kBACrChB,KAAA,CAAAiB,aAAA,CAACP,IAAI,EAAAQ,QAAA;EACJC,WAAW,EAAEJ,UAAU,GAAG,SAAS,GAAGK,SAAU;EAChDC,SAAS,EAAE,QAAS;EACpBC,eAAe,EAAE,OAAQ;EACzBC,KAAK,EAAEX,SAAU;EACjBY,GAAG,EAAE,CAAE;EACPC,KAAK,EAAEC,MAAM,CAACC;AAAc,GACxBX,IAAI,GAEPF,QACI,CACN;AAED,MA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DxB,MAAM,EAAE;IACP8B,iBAAiB,EAAE,EAAE;IACrBC,eAAe,EAAE,CAAC;IAClBV,cAAc,EAAE,eAAe;IAC/BjB,UAAU,EAAE;EACb,CAAC;EACDE,SAAS,EAAE;IACV0B,SAAS,EAAE;EACZ,CAAC;EACD7B,QAAQ,EAAE;IAAEkB,cAAc,EAAE,QAAQ;IAAEjB,UAAU,EAAE;EAAS;AAC5D,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { BaseOfferCard } from "../BaseOfferCard";
|
|
4
|
+
import { Linking } from "react-native";
|
|
5
|
+
import { useEventHandler } from "../../../context/EventHandlerProvider";
|
|
6
|
+
export const CallToAction = ({
|
|
7
|
+
children,
|
|
8
|
+
offer,
|
|
9
|
+
context,
|
|
10
|
+
offerIndex,
|
|
11
|
+
...rest
|
|
12
|
+
}) => {
|
|
13
|
+
const {
|
|
14
|
+
onOfferClick,
|
|
15
|
+
rateTableUuid,
|
|
16
|
+
leadUuid
|
|
17
|
+
} = useEventHandler();
|
|
18
|
+
return /*#__PURE__*/React.createElement(BaseOfferCard.CallToAction, _extends({
|
|
19
|
+
onPress: () => {
|
|
20
|
+
onOfferClick === null || onOfferClick === void 0 || onOfferClick({
|
|
21
|
+
timestamp: new Date().toISOString(),
|
|
22
|
+
offerUuid: offer.uuid,
|
|
23
|
+
rateTableUuid,
|
|
24
|
+
leadUuid,
|
|
25
|
+
offer,
|
|
26
|
+
offerIndex,
|
|
27
|
+
context
|
|
28
|
+
});
|
|
29
|
+
Linking.canOpenURL(offer.url).then(supported => {
|
|
30
|
+
if (supported) {
|
|
31
|
+
Linking.openURL(offer.url);
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
}, rest), children);
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=CallToAction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","BaseOfferCard","Linking","useEventHandler","CallToAction","children","offer","context","offerIndex","rest","onOfferClick","rateTableUuid","leadUuid","createElement","_extends","onPress","timestamp","Date","toISOString","offerUuid","uuid","canOpenURL","url","then","supported","openURL"],"sourceRoot":"../../../../../src","sources":["components/Common/DynamicOfferCard/CallToAction.tsx"],"mappings":";AAAA,OAAOA,KAAK,MAA+B,OAAO;AAClD,SAASC,aAAa,QAAQ,kBAAkB;AAGhD,SAASC,OAAO,QAAQ,cAAc;AACtC,SAASC,eAAe,QAAQ,uCAAuC;AAUvE,OAAO,MAAMC,YAAY,GAAGA,CAAC;EAC5BC,QAAQ;EACRC,KAAK;EACLC,OAAO;EACPC,UAAU;EACV,GAAGC;AACM,CAAC,KAAK;EACf,MAAM;IAAEC,YAAY;IAAEC,aAAa;IAAEC;EAAS,CAAC,GAAGT,eAAe,CAAC,CAAC;EACnE,oBACCH,KAAA,CAAAa,aAAA,CAACZ,aAAa,CAACG,YAAY,EAAAU,QAAA;IAC1BC,OAAO,EAAEA,CAAA,KAAM;MACdL,YAAY,aAAZA,YAAY,eAAZA,YAAY,CAAG;QACdM,SAAS,EAAE,IAAIC,IAAI,CAAC,CAAC,CAACC,WAAW,CAAC,CAAC;QACnCC,SAAS,EAAEb,KAAK,CAACc,IAAI;QACrBT,aAAa;QACbC,QAAQ;QACRN,KAAK;QACLE,UAAU;QACVD;MACD,CAAC,CAAC;MACFL,OAAO,CAACmB,UAAU,CAACf,KAAK,CAACgB,GAAG,CAAC,CAACC,IAAI,CAAEC,SAAS,IAAK;QACjD,IAAIA,SAAS,EAAE;UACdtB,OAAO,CAACuB,OAAO,CAACnB,KAAK,CAACgB,GAAG,CAAC;QAC3B;MACD,CAAC,CAAC;IACH;EAAE,GACEb,IAAI,GAEPJ,QAC0B,CAAC;AAE/B,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import React, { useCallback, useState } from "react";
|
|
2
|
+
import Text from "../../Text";
|
|
3
|
+
import { TouchableOpacity, StyleSheet } from "react-native";
|
|
4
|
+
import { OfferDetailsModal } from "../../Modal/OfferDetailsModal";
|
|
5
|
+
import { useEventHandler } from "../../../context/EventHandlerProvider";
|
|
6
|
+
export const SeeMore = ({
|
|
7
|
+
offer,
|
|
8
|
+
offerIndex
|
|
9
|
+
}) => {
|
|
10
|
+
const [modalVisible, setModalVisible] = useState(false);
|
|
11
|
+
const {
|
|
12
|
+
onOfferDetailsPageOpen,
|
|
13
|
+
onOfferDetailsPageClose,
|
|
14
|
+
rateTableUuid,
|
|
15
|
+
leadUuid
|
|
16
|
+
} = useEventHandler();
|
|
17
|
+
const handleMoreInfoClick = useCallback(() => {
|
|
18
|
+
onOfferDetailsPageOpen === null || onOfferDetailsPageOpen === void 0 || onOfferDetailsPageOpen({
|
|
19
|
+
timestamp: new Date().toISOString(),
|
|
20
|
+
offerUuid: offer.uuid,
|
|
21
|
+
leadUuid: leadUuid,
|
|
22
|
+
offer,
|
|
23
|
+
offerIndex,
|
|
24
|
+
rateTableUuid
|
|
25
|
+
});
|
|
26
|
+
setModalVisible(true);
|
|
27
|
+
}, [leadUuid, offer, offerIndex, onOfferDetailsPageOpen, rateTableUuid]);
|
|
28
|
+
const handleCloseModal = useCallback(() => {
|
|
29
|
+
onOfferDetailsPageClose === null || onOfferDetailsPageClose === void 0 || onOfferDetailsPageClose({
|
|
30
|
+
timestamp: new Date().toISOString(),
|
|
31
|
+
offerUuid: offer.uuid,
|
|
32
|
+
leadUuid: leadUuid,
|
|
33
|
+
offer,
|
|
34
|
+
offerIndex,
|
|
35
|
+
rateTableUuid
|
|
36
|
+
});
|
|
37
|
+
setModalVisible(false);
|
|
38
|
+
}, [leadUuid, offer, offerIndex, onOfferDetailsPageClose, rateTableUuid]);
|
|
39
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
40
|
+
onPress: handleMoreInfoClick,
|
|
41
|
+
style: styles.container
|
|
42
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
43
|
+
variant: "body-3",
|
|
44
|
+
color: "neutral",
|
|
45
|
+
weight: "medium",
|
|
46
|
+
style: styles.text
|
|
47
|
+
}, "See details")), /*#__PURE__*/React.createElement(OfferDetailsModal, {
|
|
48
|
+
offerIndex: offerIndex,
|
|
49
|
+
visible: modalVisible,
|
|
50
|
+
offer: offer,
|
|
51
|
+
onClose: handleCloseModal
|
|
52
|
+
}));
|
|
53
|
+
};
|
|
54
|
+
const styles = StyleSheet.create({
|
|
55
|
+
container: {
|
|
56
|
+
marginTop: 12
|
|
57
|
+
},
|
|
58
|
+
text: {
|
|
59
|
+
textDecorationLine: "underline"
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
//# sourceMappingURL=SeeMore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useCallback","useState","Text","TouchableOpacity","StyleSheet","OfferDetailsModal","useEventHandler","SeeMore","offer","offerIndex","modalVisible","setModalVisible","onOfferDetailsPageOpen","onOfferDetailsPageClose","rateTableUuid","leadUuid","handleMoreInfoClick","timestamp","Date","toISOString","offerUuid","uuid","handleCloseModal","createElement","Fragment","onPress","style","styles","container","variant","color","weight","text","visible","onClose","create","marginTop","textDecorationLine"],"sourceRoot":"../../../../../src","sources":["components/Common/DynamicOfferCard/SeeMore.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,WAAW,EAAEC,QAAQ,QAAQ,OAAO;AAEpD,OAAOC,IAAI,MAAM,YAAY;AAC7B,SAASC,gBAAgB,EAAEC,UAAU,QAAQ,cAAc;AAC3D,SAASC,iBAAiB,QAAQ,+BAA+B;AACjE,SAASC,eAAe,QAAQ,uCAAuC;AAOvE,OAAO,MAAMC,O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,CAACC;EAAU,gBACvE7B,KAAA,CAAAwB,aAAA,CAACrB,IAAI;IACJ2B,OAAO,EAAE,QAAS;IAClBC,KAAK,EAAE,SAAU;IACjBC,MAAM,EAAE,QAAS;IACjBL,KAAK,EAAEC,MAAM,CAACK;EAAK,GACnB,aAEK,CACW,CAAC,eAEnBjC,KAAA,CAAAwB,aAAA,CAAClB,iBAAiB;IACjBI,UAAU,EAAEA,UAAW;IACvBwB,OAAO,EAAEvB,YAAa;IACtBF,KAAK,EAAEA,KAAM;IACb0B,OAAO,EAAEZ;EAAiB,CAC1B,CACA,CAAC;AAEL,CAAC;AAED,MAAMK,MAAM,GAAGvB,UAAU,CAAC+B,MAAM,CAAC;EAChCP,SAAS,EAAE;IACVQ,SAAS,EAAE;EACZ,CAAC;EACDJ,IAAI,EAAE;IACLK,kBAAkB,EAAE;EACrB;AACD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { BaseOfferCard } from "../BaseOfferCard";
|
|
3
|
+
import { CallToAction } from "./CallToAction";
|
|
4
|
+
import { StyleSheet } from "react-native";
|
|
5
|
+
function DynamicOfferCard({
|
|
6
|
+
children,
|
|
7
|
+
offer,
|
|
8
|
+
offerIndex,
|
|
9
|
+
showBorder,
|
|
10
|
+
showProductTypeLabel
|
|
11
|
+
}) {
|
|
12
|
+
return /*#__PURE__*/React.createElement(BaseOfferCard, {
|
|
13
|
+
showBorder: showBorder
|
|
14
|
+
}, showProductTypeLabel && /*#__PURE__*/React.createElement(BaseOfferCard.TopBar, null, /*#__PURE__*/React.createElement(BaseOfferCard.ProductType, null, offer.productDisplayName)), /*#__PURE__*/React.createElement(BaseOfferCard.Container, null, /*#__PURE__*/React.createElement(BaseOfferCard.PartnerContainer, null, /*#__PURE__*/React.createElement(BaseOfferCard.PartnerImage, {
|
|
15
|
+
src: offer.financialInstitutionImageUrl,
|
|
16
|
+
alt: offer.financialInstitutionDisplayName
|
|
17
|
+
}), /*#__PURE__*/React.createElement(BaseOfferCard.Content, null, children)), /*#__PURE__*/React.createElement(BaseOfferCard.BottomBar, null, /*#__PURE__*/React.createElement(CallToAction, {
|
|
18
|
+
offer: offer,
|
|
19
|
+
overrideUrl: offer.overrideUrl,
|
|
20
|
+
style: styles.cta,
|
|
21
|
+
context: "offer",
|
|
22
|
+
offerIndex: offerIndex
|
|
23
|
+
}, "Continue"))));
|
|
24
|
+
}
|
|
25
|
+
export { DynamicOfferCard };
|
|
26
|
+
const styles = StyleSheet.create({
|
|
27
|
+
cta: {
|
|
28
|
+
marginTop: 20
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=index.js.map
|