@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 @@
|
|
|
1
|
+
{"version":3,"names":["get","React","SeeMore","BaseOfferCard","DynamicOfferCard","HeadlineWithDescriptionCard","offer","productTypeBuilder","offerIndex","showBorder","showProductTypeLabel","headlineField","descriptionField","descriptionPointsField","headline","description","descriptionPoints","legalInformation","legalLanguage","showMoreInfo","length","contentDescription","createElement","key","uuid","TopContainer","Headline","DescriptionHandler","hasDivider"],"sour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A,CAACnB,aAAa,CAACsB,YAAY,qBAC1BxB,KAAA,CAAAqB,aAAA,CAACnB,aAAa,CAACuB,QAAQ,QAAEZ,QAAiC,CAC/B,CAAC,eAE7Bb,KAAA,CAAAqB,aAAA,CAACnB,aAAa,CAACwB,kBAAkB;IAChCX,iBAAiB,EAAEA,iBAAkB;IACrCK,kBAAkB,EAAEA,kBAAmB;IACvCO,UAAU,EAAE;EAAM,CAClB,CAAC,EAEDT,YAAY,iBAAIlB,KAAA,CAAAqB,aAAA,CAACpB,OAAO;IAACI,KAAK,EAAEA,KAAM;IAACE,UAAU,EAAEA;EAAW,CAAE,CAChD,CAAC;AAErB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["DefaultOfferCard","HeadlineWithDescriptionCard","CreditCardOfferCard"],"sourceRoot":"../../../../src","sources":["components/Layouts/index.ts"],"mappings":"AAAA,SAASA,gBAAgB,QAAQ,oBAAoB;AACrD,SAASC,2BAA2B,QAAQ,+BAA+B;AAC3E,SAASC,mBAAmB,QAAQ,uBAAuB","ignoreList":[]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { arrayToMarkdownList } from "../../../capabilities/offer-catalog/src/utils/arrayToMarkdownList";
|
|
3
|
+
import View from "../View";
|
|
4
|
+
import Text from "../Text";
|
|
5
|
+
import { MarkdownText } from "../../../capabilities/ui/elements/src/components/MarkdownText";
|
|
6
|
+
export function DescriptionPoints({
|
|
7
|
+
descriptionPoints
|
|
8
|
+
}) {
|
|
9
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
10
|
+
gap: 8
|
|
11
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
12
|
+
variant: "body-3",
|
|
13
|
+
weight: "bold",
|
|
14
|
+
color: "neutral"
|
|
15
|
+
}, "Offer Details"), /*#__PURE__*/React.createElement(MarkdownText, {
|
|
16
|
+
variant: "body-3",
|
|
17
|
+
color: "neutral",
|
|
18
|
+
content: arrayToMarkdownList(descriptionPoints)
|
|
19
|
+
}));
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=DescriptionPoints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","arrayToMarkdownList","View","Text","MarkdownText","DescriptionPoints","descriptionPoints","createElement","gap","variant","weight","color","content"],"sourceRoot":"../../../../src","sources":["components/Modal/DescriptionPoints.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,mBAAmB,QAAQ,mEAAmE;AACvG,OAAOC,IAAI,MAAM,SAAS;AAC1B,OAAOC,IAAI,MAAM,SAAS;AAC1B,SAASC,YAAY,QAAQ,+DAA+D;AAE5F,OAAO,SAASC,iBAAiBA,CAAC;EACjCC;AAGD,CAAC,EAAE;EACF,oBACCN,KAAA,CAAAO,aAAA,CAACL,IAAI;IAACM,GAAG,EAAE;EAAE,gBACZR,KAAA,CAAAO,aAAA,CAACJ,IAAI;IAACM,OAAO,EAAE,QAAS;IAACC,MAAM,EAAE,MAAO;IAACC,KAAK,EAAE;EAAU,GAAC,eAErD,CAAC,eACPX,KAAA,CAAAO,aAAA,CAACH,YAAY;IACZK,OAAO,EAAE,QAAS;IAClBE,KAAK,EAAE,SAAU;IACjBC,OAAO,EAAEX,mBAAmB,CAACK,iBAAiB;EAAE,CAChD,CACI,CAAC;AAET","ignoreList":[]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { MarkdownText } from "../../../capabilities/ui/elements/src/components/MarkdownText";
|
|
3
|
+
import Text from "../Text";
|
|
4
|
+
import View from "../View";
|
|
5
|
+
export function Disclaimer({
|
|
6
|
+
disclaimer
|
|
7
|
+
}) {
|
|
8
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
9
|
+
gap: 16
|
|
10
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
11
|
+
variant: "body-3",
|
|
12
|
+
weight: "bold",
|
|
13
|
+
color: "neutral"
|
|
14
|
+
}, "Provider Disclaimer"), /*#__PURE__*/React.createElement(MarkdownText, {
|
|
15
|
+
variant: "body-3",
|
|
16
|
+
color: "neutral",
|
|
17
|
+
content: disclaimer
|
|
18
|
+
}));
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=Disclaimer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","MarkdownText","Text","View","Disclaimer","disclaimer","createElement","gap","variant","weight","color","content"],"sourceRoot":"../../../../src","sources":["components/Modal/Disclaimer.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,YAAY,QAAQ,+DAA+D;AAC5F,OAAOC,IAAI,MAAM,SAAS;AAC1B,OAAOC,IAAI,MAAM,SAAS;AAE1B,OAAO,SAASC,UAAUA,CAAC;EAAEC;AAAmC,CAAC,EAAE;EAClE,oBACCL,KAAA,CAAAM,aAAA,CAACH,IAAI;IAACI,GAAG,EAAE;EAAG,gBACbP,KAAA,CAAAM,aAAA,CAACJ,IAAI;IAACM,OAAO,EAAE,QAAS;IAACC,MAAM,EAAE,MAAO;IAACC,KAAK,EAAE;EAAU,GAAC,qBAErD,CAAC,eACPV,KAAA,CAAAM,aAAA,CAACL,YAAY;IAACO,OAAO,EAAE,QAAS;IAACE,KAAK,EAAE,SAAU;IAACC,OAAO,EAAEN;EAAW,CAAE,CACpE,CAAC;AAET","ignoreList":[]}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Modal, View, SafeAreaView, ScrollView, TouchableOpacity, StyleSheet } from "react-native";
|
|
3
|
+
import Text from "../Text";
|
|
4
|
+
import { DescriptionPoints } from "./DescriptionPoints";
|
|
5
|
+
import { Disclaimer } from "./Disclaimer";
|
|
6
|
+
import { CallToAction } from "../Common/DynamicOfferCard/CallToAction";
|
|
7
|
+
import Divider from "../Divider";
|
|
8
|
+
const CTA_LABEL = "Continue";
|
|
9
|
+
export const OfferDetailsModal = ({
|
|
10
|
+
visible,
|
|
11
|
+
offer,
|
|
12
|
+
onClose,
|
|
13
|
+
offerIndex
|
|
14
|
+
}) => {
|
|
15
|
+
var _offer$descriptionPoi;
|
|
16
|
+
return /*#__PURE__*/React.createElement(Modal, {
|
|
17
|
+
animationType: "slide",
|
|
18
|
+
transparent: false,
|
|
19
|
+
visible: visible,
|
|
20
|
+
onRequestClose: onClose
|
|
21
|
+
}, /*#__PURE__*/React.createElement(SafeAreaView, {
|
|
22
|
+
style: styles.modalContainer
|
|
23
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
24
|
+
style: styles.modalHeader
|
|
25
|
+
}, /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
26
|
+
onPress: onClose,
|
|
27
|
+
style: styles.closeXButton,
|
|
28
|
+
hitSlop: {
|
|
29
|
+
top: 15,
|
|
30
|
+
right: 15,
|
|
31
|
+
bottom: 15,
|
|
32
|
+
left: 15
|
|
33
|
+
}
|
|
34
|
+
}, /*#__PURE__*/React.createElement(Text, {
|
|
35
|
+
style: styles.closeXText
|
|
36
|
+
}, "\u2715"))), /*#__PURE__*/React.createElement(ScrollView, {
|
|
37
|
+
style: styles.modalContent,
|
|
38
|
+
contentContainerStyle: styles.scrollContent
|
|
39
|
+
}, (offer === null || offer === void 0 || (_offer$descriptionPoi = offer.descriptionPoints) === null || _offer$descriptionPoi === void 0 ? void 0 : _offer$descriptionPoi.length) && /*#__PURE__*/React.createElement(DescriptionPoints, {
|
|
40
|
+
descriptionPoints: offer === null || offer === void 0 ? void 0 : offer.descriptionPoints
|
|
41
|
+
}), (offer === null || offer === void 0 ? void 0 : offer.descriptionPoints) && (offer === null || offer === void 0 ? void 0 : offer.legalLanguage) && /*#__PURE__*/React.createElement(Divider, null), (offer === null || offer === void 0 ? void 0 : offer.legalLanguage) && /*#__PURE__*/React.createElement(Disclaimer, {
|
|
42
|
+
disclaimer: offer.legalLanguage
|
|
43
|
+
})), /*#__PURE__*/React.createElement(CallToAction, {
|
|
44
|
+
offerIndex: offerIndex,
|
|
45
|
+
offer: offer,
|
|
46
|
+
overrideUrl: offer.overrideUrl,
|
|
47
|
+
style: styles.cta,
|
|
48
|
+
context: "offer_details"
|
|
49
|
+
}, CTA_LABEL)));
|
|
50
|
+
};
|
|
51
|
+
const styles = StyleSheet.create({
|
|
52
|
+
modalContainer: {
|
|
53
|
+
flex: 1,
|
|
54
|
+
backgroundColor: "#ffffff"
|
|
55
|
+
},
|
|
56
|
+
modalHeader: {
|
|
57
|
+
flexDirection: "row",
|
|
58
|
+
paddingTop: 16,
|
|
59
|
+
paddingHorizontal: 16,
|
|
60
|
+
paddingBottom: 32,
|
|
61
|
+
borderBottomWidth: 1,
|
|
62
|
+
borderBottomColor: "#e0e0e0",
|
|
63
|
+
position: "relative"
|
|
64
|
+
},
|
|
65
|
+
closeXButton: {
|
|
66
|
+
position: "absolute",
|
|
67
|
+
left: 16,
|
|
68
|
+
top: 16,
|
|
69
|
+
zIndex: 10
|
|
70
|
+
},
|
|
71
|
+
closeXText: {
|
|
72
|
+
fontSize: 20,
|
|
73
|
+
color: "#000000"
|
|
74
|
+
},
|
|
75
|
+
modalContent: {
|
|
76
|
+
flex: 1
|
|
77
|
+
},
|
|
78
|
+
scrollContent: {
|
|
79
|
+
padding: 16,
|
|
80
|
+
paddingBottom: 64
|
|
81
|
+
},
|
|
82
|
+
cta: {
|
|
83
|
+
marginHorizontal: 16,
|
|
84
|
+
marginBottom: 16
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
//# sourceMappingURL=OfferDetailsModal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Modal","View","SafeAreaView","ScrollView","TouchableOpacity","StyleSheet","Text","DescriptionPoints","Disclaimer","CallToAction","Divider","CTA_LABEL","OfferDetailsModal","visible","offer","onClose","offerIndex","_offer$descriptionPoi","createElement","animationType","transparent","onRequestClose","style","styles","modalContainer","modalHeader","onPress","closeXButton","hitSlop","top","right","bottom","left","closeXText","modalContent","contentContainerStyle","scrollContent","descriptionPoints","length","legalLanguage","disclaimer","overrideUrl","cta","context","create","flex","backgroundColor","flexDirection","paddingTop","paddingHorizontal","paddingBottom","borderBottomWidth","borderBottomColor","position","zIndex","fontSize","color","padding","marginHorizontal","marginBottom"],"sourceRoot":"../../../../src","sources":["components/Modal/OfferDetailsModal.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACCC,KAAK,EACLC,IAAI,EACJC,YAAY,EACZC,UAAU,EACVC,gBAAgB,EAChBC,UAAU,QACJ,cAAc;AACrB,OAAOC,IAAI,MAAM,SAAS;AAE1B,SAASC,iBAAiB,QAAQ,qBAAqB;AACvD,SAASC,UAAU,QAAQ,cAAc;AACzC,SAASC,YAAY,QAAQ,yCAAyC;AACtE,OAAOC,OAAO,MAAM,YAAY;AAShC,MAAMC,SAAS,GAAG,UAAU;AAE5B,OAAO,MAAMC,iBAAiB,GAAGA,CAAC;EACjCC,OAAO;EACPC,KAAK;EACLC,OAAO;EACPC;AACuB,CAAC,KAAK;EAAA,IAAAC,qBAAA;EAC7B,oBACClB,KAAA,CAAAmB,aAAA,CAAClB,KAAK;IACLmB,aAAa,EAAC,OAAO;IACrBC,WAAW,EAAE,KAAM;IACnBP,OAAO,EAAEA,OAAQ;IACjBQ,cAAc,EAAEN;EAAQ,gBAExBhB,KAAA,CAAAmB,aAAA,CAAChB,YAAY;IAACoB,KAAK,EAAEC,MAAM,CAACC;EAAe,gBAC1CzB,KAAA,CAAAmB,aAAA,CAACjB,IAAI;IAACqB,KAAK,EAAEC,MAAM,CAACE;EAAY,gBAC/B1B,KAAA,CAAAmB,aAAA,CAACd,gBAAgB;IAChBsB,OAAO,EAAEX,OAAQ;IACjBO,KAAK,EAAEC,MAAM,CAACI,YAAa;IAC3BC,OAAO,EAAE;MAAEC,GAAG,EAAE,EAAE;MAAEC,KAAK,EAAE,EAAE;MAAEC,MAAM,EAAE,EAAE;MAAEC,IAAI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ZsB,aAAa,EAAE,KAAK;IACpBC,UAAU,EAAE,EAAE;IACdC,iBAAiB,EAAE,EAAE;IACrBC,aAAa,EAAE,EAAE;IACjBC,iBAAiB,EAAE,CAAC;IACpBC,iBAAiB,EAAE,SAAS;IAC5BC,QAAQ,EAAE;EACX,CAAC;EACD1B,YAAY,EAAE;IACb0B,QAAQ,EAAE,UAAU;IACpBrB,IAAI,EAAE,EAAE;IACRH,GAAG,EAAE,EAAE;IACPyB,MAAM,EAAE;EACT,CAAC;EACDrB,UAAU,EAAE;IACXsB,QAAQ,EAAE,EAAE;IACZC,KAAK,EAAE;EACR,CAAC;EACDtB,YAAY,EAAE;IACbW,IAAI,EAAE;EACP,CAAC;EACDT,aAAa,EAAE;IACdqB,OAAO,EAAE,EAAE;IACXP,aAAa,EAAE;EAChB,CAAC;EACDR,GAAG,EAAE;IACJgB,gBAAgB,EAAE,EAAE;IACpBC,YAAY,EAAE;EACf;AACD,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
import React, { useEffect, useState } from "react";
|
|
2
|
+
import { localCnfContext } from "../../config/mocks/cnfContext";
|
|
3
|
+
import { Text } from "react-native";
|
|
4
|
+
import { getPageData } from "../pageData";
|
|
5
|
+
import { DynamicOffersContainer, DynamicOfferSkeleton } from "./DynamicOffers/DynamicOffersContainer";
|
|
6
|
+
import { ThemeProvider } from "../context/ThemeProvider";
|
|
7
|
+
import { EventHandlerProvider } from "../context/EventHandlerProvider";
|
|
8
|
+
import { getConfigApiBaseUrl } from "../apiEnvironment";
|
|
9
|
+
import { getDefaultPaletteColor } from "../utils/getDefaultPaletteColor";
|
|
10
|
+
const getConfiguration = async ({
|
|
11
|
+
channel,
|
|
12
|
+
zone,
|
|
13
|
+
subAccountToken,
|
|
14
|
+
isDev
|
|
15
|
+
}) => {
|
|
16
|
+
const url = `${getConfigApiBaseUrl(isDev)}/network/${channel}/${zone}/api/configuration`;
|
|
17
|
+
const headers = {
|
|
18
|
+
Authorization: `Bearer ${subAccountToken}`
|
|
19
|
+
};
|
|
20
|
+
try {
|
|
21
|
+
const response = await fetch(url, {
|
|
22
|
+
headers
|
|
23
|
+
});
|
|
24
|
+
if (!response.ok) {
|
|
25
|
+
throw new Error();
|
|
26
|
+
}
|
|
27
|
+
const data = await response.json();
|
|
28
|
+
return data;
|
|
29
|
+
} catch (error) {
|
|
30
|
+
console.error("Error fetching configuration", error);
|
|
31
|
+
return localCnfContext;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
export const MoneyLionOfferCarousel = props => {
|
|
35
|
+
var _context$brand$palett;
|
|
36
|
+
const {
|
|
37
|
+
channel,
|
|
38
|
+
zone,
|
|
39
|
+
subAccountToken,
|
|
40
|
+
fontFamily,
|
|
41
|
+
isDev
|
|
42
|
+
} = props;
|
|
43
|
+
const {
|
|
44
|
+
onInitialize,
|
|
45
|
+
onRateTableSubmit,
|
|
46
|
+
onRateTableResponse,
|
|
47
|
+
onOfferDisplayInViewport,
|
|
48
|
+
onOfferClick,
|
|
49
|
+
onOfferDetailsPageOpen,
|
|
50
|
+
onOfferDetailsPageClose
|
|
51
|
+
} = props;
|
|
52
|
+
const eventHandlers = {
|
|
53
|
+
onInitialize,
|
|
54
|
+
onRateTableSubmit,
|
|
55
|
+
onRateTableResponse,
|
|
56
|
+
onOfferDisplayInViewport,
|
|
57
|
+
onOfferClick,
|
|
58
|
+
onOfferDetailsPageOpen,
|
|
59
|
+
onOfferDetailsPageClose
|
|
60
|
+
};
|
|
61
|
+
const [context, setContext] = useState(null);
|
|
62
|
+
const [isLoading, setIsLoading] = useState(true);
|
|
63
|
+
const [error, setError] = useState(null);
|
|
64
|
+
const [pageData, setPageData] = useState(null);
|
|
65
|
+
useEffect(() => {
|
|
66
|
+
const fetchConfiguration = async () => {
|
|
67
|
+
try {
|
|
68
|
+
setIsLoading(true);
|
|
69
|
+
const data = await getConfiguration({
|
|
70
|
+
channel,
|
|
71
|
+
zone,
|
|
72
|
+
subAccountToken,
|
|
73
|
+
isDev
|
|
74
|
+
});
|
|
75
|
+
setContext({
|
|
76
|
+
...data.serializableContext,
|
|
77
|
+
isDev
|
|
78
|
+
});
|
|
79
|
+
} catch (err) {
|
|
80
|
+
setError(err instanceof Error ? err : new Error("Failed to fetch configuration"));
|
|
81
|
+
} finally {
|
|
82
|
+
setIsLoading(false);
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
fetchConfiguration();
|
|
86
|
+
}, [channel, zone, subAccountToken, isDev]);
|
|
87
|
+
useEffect(() => {
|
|
88
|
+
if (isLoading) {
|
|
89
|
+
onInitialize === null || onInitialize === void 0 || onInitialize({
|
|
90
|
+
timestamp: new Date().toISOString()
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
}, [isLoading, onInitialize]);
|
|
94
|
+
useEffect(() => {
|
|
95
|
+
const fetchPageData = async () => {
|
|
96
|
+
if (context) {
|
|
97
|
+
const data = await getPageData({
|
|
98
|
+
context,
|
|
99
|
+
params: props,
|
|
100
|
+
onRateTableSubmit
|
|
101
|
+
});
|
|
102
|
+
onRateTableResponse === null || onRateTableResponse === void 0 || onRateTableResponse({
|
|
103
|
+
timestamp: new Date().toISOString(),
|
|
104
|
+
isError: Boolean(data.isError),
|
|
105
|
+
offers: data.offers,
|
|
106
|
+
rateTableUuid: data.rateTableUuid,
|
|
107
|
+
leadUuid: data.leadUuid
|
|
108
|
+
});
|
|
109
|
+
setPageData(data);
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
fetchPageData();
|
|
113
|
+
}, [context, onRateTableResponse, onRateTableSubmit, props]);
|
|
114
|
+
if (isLoading) {
|
|
115
|
+
return /*#__PURE__*/React.createElement(DynamicOfferSkeleton, {
|
|
116
|
+
displayLayout: "fixed"
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
if (error) {
|
|
120
|
+
return /*#__PURE__*/React.createElement(Text, null, `Error: ${error.message}`); // Replace with your error component
|
|
121
|
+
}
|
|
122
|
+
if (!context) {
|
|
123
|
+
return /*#__PURE__*/React.createElement(Text, null, "Context is null"); // Replace with your error component
|
|
124
|
+
}
|
|
125
|
+
if (!pageData) {
|
|
126
|
+
return /*#__PURE__*/React.createElement(DynamicOfferSkeleton, {
|
|
127
|
+
displayLayout: "fixed"
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
const {
|
|
131
|
+
shouldHideFooter,
|
|
132
|
+
displayLayout,
|
|
133
|
+
showProductTypeLabel,
|
|
134
|
+
showBorder,
|
|
135
|
+
title,
|
|
136
|
+
offers,
|
|
137
|
+
rateTableUuid,
|
|
138
|
+
leadUuid
|
|
139
|
+
} = pageData;
|
|
140
|
+
const config = {
|
|
141
|
+
offers,
|
|
142
|
+
shouldHideFooter,
|
|
143
|
+
displayLayout,
|
|
144
|
+
showProductTypeLabel,
|
|
145
|
+
showBorder,
|
|
146
|
+
title
|
|
147
|
+
};
|
|
148
|
+
const palette = {
|
|
149
|
+
...context.brand.palette,
|
|
150
|
+
positive: ((_context$brand$palett = context.brand.palette) === null || _context$brand$palett === void 0 ? void 0 : _context$brand$palett.positive) ?? getDefaultPaletteColor("positive")
|
|
151
|
+
};
|
|
152
|
+
return /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
153
|
+
palette: palette,
|
|
154
|
+
fontFamily: fontFamily
|
|
155
|
+
}, /*#__PURE__*/React.createElement(EventHandlerProvider, {
|
|
156
|
+
eventHandlers: {
|
|
157
|
+
...eventHandlers,
|
|
158
|
+
rateTableUuid,
|
|
159
|
+
leadUuid
|
|
160
|
+
}
|
|
161
|
+
}, /*#__PURE__*/React.createElement(DynamicOffersContainer, {
|
|
162
|
+
config: config
|
|
163
|
+
})));
|
|
164
|
+
};
|
|
165
|
+
//# sourceMappingURL=MoneyLionOfferCarousel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useEffect","useState","localCnfContext","Text","getPageData","DynamicOffersContainer","DynamicOfferSkeleton","ThemeProvider","EventHandlerProvider","getConfigApiBaseUrl","getDefaultPaletteColor","getConfiguration","channel","zone","subAccountToken","isDev","url","headers","Authorization","response","fetch","ok","Error","data","json","error","console","MoneyLionOfferCarousel","props","_context$brand$palett","fontFamily","onInitialize","onRateTableSubmit","onRateTableResponse","onOfferDisplayInViewport","onOfferClick","onOfferDetailsPageOpen","onOfferDetailsPageClose","eventHandlers","context","setContext","isLoading","setIsLoading","setError","pageData","setPageData","fetchConfiguration","serializableContext","err","timestamp","Date","toISOString","fetchPageData","params","isError","Boolean","offers","rateTableUuid","leadUuid","createElement","displayLayout","message","shouldHideFooter","showProductTypeLabel","showBorder","title","config","palette","brand","positive"],"sourceRoot":"../../../src","sources":["components/MoneyLionOfferCarousel.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAClD,SAASC,eAAe,QAAQ,+BAA+B;AAC/D,SAASC,IAAI,QAAQ,cAAc;AAEnC,SAASC,WAAW,QAAQ,aAAa;AAEzC,SACCC,sBAAsB,EACtBC,oBAAoB,QACd,wCAAwC;AAE/C,SAASC,aAAa,QAAyB,0BAA0B;AACzE,SACCC,oBAAoB,QAEd,iCAAiC;AACxC,SAASC,mBAAmB,QAAQ,mBAAmB;AACvD,SAASC,sBAAsB,QAAQ,iCAAiC;AAiBxE,MAAMC,gBAAgB,GAAG,MAAAA,CAAO;EAC/BC,OAAO;EACPC,IAAI;EACJC,eAAe;EACfC;AAID,CAAC,KAAK;EACL,MAAMC,GAAG,GAAG,GAAGP,mBAAmB,CAACM,KAAK,CAAC,YAAYH,OAAO,IAAIC,IAAI,oBAAoB;EAExF,MAAMI,OAAO,GAAG;IACfC,aAAa,EAAE,UAAUJ,eAAe;EACzC,CAAC;EACD,IAAI;IACH,MAAMK,QAAQ,GAAG,MAAMC,KAAK,CAACJ,GAAG,EAAE;MAAEC;IAAQ,CAAC,CAAC;IAC9C,IAAI,CAACE,QAAQ,CAACE,EAAE,EAAE;MACjB,MAAM,IA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d,GAAGA,aAAa;MAChBmB,aAAa;MACbC;IACD;EAAE,gBAEF3D,KAAA,CAAA4D,aAAA,CAACtD,sBAAsB;IAAC6D,MAAM,EAAEA;EAAO,CAAE,CACpB,CACR,CAAC;AAElB,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React, { useEffect, useRef } from "react";
|
|
2
|
+
import { StyleSheet, Animated } from "react-native";
|
|
3
|
+
const Skeleton = props => {
|
|
4
|
+
const {
|
|
5
|
+
width = "100%",
|
|
6
|
+
height = 20,
|
|
7
|
+
borderRadius = "small",
|
|
8
|
+
style = {},
|
|
9
|
+
backgroundColor = "#E1E9EE"
|
|
10
|
+
} = props;
|
|
11
|
+
const opacityValue = useRef(new Animated.Value(1)).current;
|
|
12
|
+
const getBorderRadius = () => {
|
|
13
|
+
switch (borderRadius) {
|
|
14
|
+
case "small":
|
|
15
|
+
return 4;
|
|
16
|
+
case "medium":
|
|
17
|
+
return 8;
|
|
18
|
+
case "large":
|
|
19
|
+
return 16;
|
|
20
|
+
case "circular":
|
|
21
|
+
return 9999;
|
|
22
|
+
default:
|
|
23
|
+
return 4;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
const animation = Animated.loop(Animated.sequence([Animated.timing(opacityValue, {
|
|
28
|
+
toValue: 0.6,
|
|
29
|
+
duration: 1200,
|
|
30
|
+
useNativeDriver: true
|
|
31
|
+
}), Animated.timing(opacityValue, {
|
|
32
|
+
toValue: 1,
|
|
33
|
+
duration: 1200,
|
|
34
|
+
useNativeDriver: true
|
|
35
|
+
})]));
|
|
36
|
+
animation.start();
|
|
37
|
+
return () => {
|
|
38
|
+
animation.stop();
|
|
39
|
+
};
|
|
40
|
+
}, [opacityValue]);
|
|
41
|
+
return /*#__PURE__*/React.createElement(Animated.View, {
|
|
42
|
+
style: [styles.skeleton, {
|
|
43
|
+
width,
|
|
44
|
+
height,
|
|
45
|
+
borderRadius: getBorderRadius(),
|
|
46
|
+
backgroundColor,
|
|
47
|
+
opacity: opacityValue
|
|
48
|
+
}, style]
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
const styles = StyleSheet.create({
|
|
52
|
+
skeleton: {
|
|
53
|
+
minHeight: 20
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
export default Skeleton;
|
|
57
|
+
//# sourceMappingURL=Skeleton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","useEffect","useRef","StyleSheet","Animated","Skeleton","props","width","height","borderRadius","style","backgroundColor","opacityValue","Value","current","getBorderRadius","animation","loop","sequence","timing","toValue","duration","useNativeDriver","start","stop","createElement","View","styles","skeleton","opacity","create","minHeight"],"sourceRoot":"../../../../src","sources":["components/Skeleton/Skeleton.tsx"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,SAAS,EAAEC,MAAM,QAAQ,OAAO;AAChD,SAASC,UAAU,EAAEC,QAAQ,QAAQ,cAAc;AAYnD,MAAMC,QAAQ,GAAIC,KAAoB,IAAK;EAC1C,MAAM;IACLC,KAAK,GAAG,MAAM;IACdC,MAAM,GAAG,EAAE;IACXC,YAAY,GAAG,OAAO;IACtBC,KAAK,GAAG,CAAC,CAAC;IACVC,eAAe,GAAG;EACnB,CAAC,GAAGL,KAAK;EAET,MAAMM,YAAY,GAAGV,MAAM,CAAC,IAAIE,QAAQ,CAACS,KAAK,CAAC,CAAC,CAAC,CAAC,CAACC,OAAO;EAE1D,MAAMC,eAAe,GAAGA,CAAA,KAAc;IACrC,QAAQN,YAAY;MACnB,KAAK,OAAO;QACX,OAAO,CAAC;MACT,KAAK,QAAQ;QACZ,OAAO,CAAC;MACT,KAAK,OAAO;QACX,OAAO,EAAE;MACV,KAAK,UAAU;QACd,OAAO,IAAI;MACZ;QACC,OAAO,CAAC;IACV;EACD,CAAC;EAEDR,SAAS,CAAC,MAAM;IACf,MAAMe,SAAS,GAAGZ,QAAQ,CAACa,IAAI,CAC9Bb,QAAQ,CAACc,QAAQ,CAAC,CACjBd,QAAQ,CAACe,MAAM,CAACP,YAAY,EAAE;MAC7BQ,OAAO,EAAE,GAAG;MACZC,QAAQ,EAAE,IAAI;MACdC,eAAe,EAAE;IAClB,CAAC,CAAC,EACFlB,QAAQ,CAACe,MAAM,CAACP,YAAY,EAAE;MAC7BQ,OAAO,EAAE,CAAC;MACVC,QAAQ,EAAE,IAAI;MACdC,eAAe,EAAE;IAClB,CAAC,CAAC,CACF,CACF,CAAC;IAEDN,SAAS,CAACO,KAAK,CAAC,CAAC;IAEjB,OAAO,MAAM;MACZP,SAAS,CAACQ,IAAI,CAAC,CAAC;IACjB,CAAC;EACF,CAAC,EAAE,CAACZ,YAAY,CAAC,CAAC;EAElB,oBACCZ,KAAA,CAAAyB,aAAA,CAACrB,QAAQ,CAACsB,IAAI;IACbhB,KAAK,EAAE,CACNiB,MAAM,CAACC,QAAQ,EACf;MACCrB,KAAK;MACLC,MAAM;MACNC,YAAY,EAAEM,eAAe,CAAC,CAAC;MAC/BJ,eAAe;MACfkB,OAAO,EAAEjB;IACV,CAAC,EACDF,KAAK;EACJ,CACF,CAAC;AAEJ,CAAC;AAED,MAAMiB,MAAM,GAAGxB,UAAU,CAAC2B,MAAM,CAAC;EAChCF,QAAQ,EAAE;IACTG,SAAS,EAAE;EACZ;AACD,CAAC,CAAC;AAEF,eAAe1B,QAAQ","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["Skeleton"],"sourceRoot":"../../../../src","sources":["components/Skeleton/index.ts"],"mappings":"AAAA,OAAOA,QAAQ,MAAM,YAAY;AACjC,eAAeA,QAAQ","ignoreList":[]}
|
|
@@ -0,0 +1,179 @@
|
|
|
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
|
+
// Text.tsx
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { Text as RNText, StyleSheet } from "react-native";
|
|
5
|
+
import { useTheme } from "../../context/ThemeProvider";
|
|
6
|
+
|
|
7
|
+
// Define the variant types
|
|
8
|
+
|
|
9
|
+
// Credit Card Offer Card Tip
|
|
10
|
+
|
|
11
|
+
// Define text decoration
|
|
12
|
+
|
|
13
|
+
// Define text color
|
|
14
|
+
|
|
15
|
+
// Define text weight
|
|
16
|
+
|
|
17
|
+
// // Define wrap options
|
|
18
|
+
// export type TextWrap = "balance";
|
|
19
|
+
|
|
20
|
+
// Define props
|
|
21
|
+
|
|
22
|
+
const Text = ({
|
|
23
|
+
variant,
|
|
24
|
+
weight,
|
|
25
|
+
color,
|
|
26
|
+
decoration,
|
|
27
|
+
children,
|
|
28
|
+
style,
|
|
29
|
+
...restProps
|
|
30
|
+
}) => {
|
|
31
|
+
const {
|
|
32
|
+
fontFamily
|
|
33
|
+
} = useTheme();
|
|
34
|
+
|
|
35
|
+
// Create style array
|
|
36
|
+
const styleArray = [styles.base];
|
|
37
|
+
|
|
38
|
+
// Add variant styles
|
|
39
|
+
|
|
40
|
+
if (variant) {
|
|
41
|
+
styleArray.push(styles[variant]);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// Add font family styles
|
|
45
|
+
styleArray.push({
|
|
46
|
+
fontFamily: fontFamily[weight || "regular"]
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
// Add weight styles
|
|
50
|
+
styleArray.push({
|
|
51
|
+
fontWeight: weight === "medium" ? "500" : weight
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
// Add color styles
|
|
55
|
+
if (color) {
|
|
56
|
+
styleArray.push(styles[`color-${color}`]);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// Add decoration styles
|
|
60
|
+
if (decoration === "line-through") {
|
|
61
|
+
styleArray.push({
|
|
62
|
+
textDecorationLine: "line-through"
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// Add custom styles
|
|
67
|
+
if (style) {
|
|
68
|
+
styleArray.push(style);
|
|
69
|
+
}
|
|
70
|
+
return /*#__PURE__*/React.createElement(RNText, _extends({
|
|
71
|
+
style: styleArray,
|
|
72
|
+
ellipsizeMode: "tail"
|
|
73
|
+
}, restProps), children);
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
// Define styles
|
|
77
|
+
// Note: In a real implementation, these would be derived from a theme or design system
|
|
78
|
+
const styles = StyleSheet.create({
|
|
79
|
+
"base": {
|
|
80
|
+
fontFamily: "System"
|
|
81
|
+
},
|
|
82
|
+
// Variants
|
|
83
|
+
"title-1": {
|
|
84
|
+
fontSize: 32,
|
|
85
|
+
fontWeight: "bold",
|
|
86
|
+
lineHeight: 40
|
|
87
|
+
},
|
|
88
|
+
"title-2": {
|
|
89
|
+
fontSize: 28,
|
|
90
|
+
fontWeight: "bold",
|
|
91
|
+
lineHeight: 36
|
|
92
|
+
},
|
|
93
|
+
"title-3": {
|
|
94
|
+
fontSize: 24,
|
|
95
|
+
fontWeight: "bold",
|
|
96
|
+
lineHeight: 32
|
|
97
|
+
},
|
|
98
|
+
"title-4": {
|
|
99
|
+
fontSize: 20,
|
|
100
|
+
fontWeight: "bold",
|
|
101
|
+
lineHeight: 28
|
|
102
|
+
},
|
|
103
|
+
"title-5": {
|
|
104
|
+
fontSize: 18,
|
|
105
|
+
fontWeight: "bold",
|
|
106
|
+
lineHeight: 24
|
|
107
|
+
},
|
|
108
|
+
"title-6": {
|
|
109
|
+
fontSize: 16,
|
|
110
|
+
fontWeight: "bold",
|
|
111
|
+
lineHeight: 22
|
|
112
|
+
},
|
|
113
|
+
"featured-1": {
|
|
114
|
+
fontSize: 24,
|
|
115
|
+
lineHeight: 32
|
|
116
|
+
},
|
|
117
|
+
"featured-2": {
|
|
118
|
+
fontSize: 24,
|
|
119
|
+
lineHeight: 32
|
|
120
|
+
},
|
|
121
|
+
"featured-3": {
|
|
122
|
+
fontSize: 18,
|
|
123
|
+
lineHeight: 24
|
|
124
|
+
},
|
|
125
|
+
"body-1": {
|
|
126
|
+
fontSize: 18,
|
|
127
|
+
lineHeight: 24
|
|
128
|
+
},
|
|
129
|
+
"body-2": {
|
|
130
|
+
fontSize: 16,
|
|
131
|
+
lineHeight: 24
|
|
132
|
+
},
|
|
133
|
+
"body-3": {
|
|
134
|
+
fontSize: 14,
|
|
135
|
+
lineHeight: 20
|
|
136
|
+
},
|
|
137
|
+
"caption-1": {
|
|
138
|
+
fontSize: 12,
|
|
139
|
+
lineHeight: 16
|
|
140
|
+
},
|
|
141
|
+
"caption-2": {
|
|
142
|
+
fontSize: 12,
|
|
143
|
+
lineHeight: 16
|
|
144
|
+
},
|
|
145
|
+
// Weights
|
|
146
|
+
"weight-regular": {
|
|
147
|
+
fontWeight: "normal"
|
|
148
|
+
},
|
|
149
|
+
"weight-medium": {
|
|
150
|
+
fontWeight: "500"
|
|
151
|
+
},
|
|
152
|
+
"weight-bold": {
|
|
153
|
+
fontWeight: "bold"
|
|
154
|
+
},
|
|
155
|
+
// Colors
|
|
156
|
+
"color-neutral": {
|
|
157
|
+
color: "#2E2E2E"
|
|
158
|
+
},
|
|
159
|
+
"color-neutral-faded": {
|
|
160
|
+
color: "#6A6A6A"
|
|
161
|
+
},
|
|
162
|
+
"color-critical": {
|
|
163
|
+
color: "#D32F2F"
|
|
164
|
+
},
|
|
165
|
+
"color-warning": {
|
|
166
|
+
color: "#F57C00"
|
|
167
|
+
},
|
|
168
|
+
"color-positive": {
|
|
169
|
+
color: "#388E3C"
|
|
170
|
+
},
|
|
171
|
+
"color-primary": {
|
|
172
|
+
color: "#007c6a"
|
|
173
|
+
},
|
|
174
|
+
"color-disabled": {
|
|
175
|
+
color: "#AAAAAA"
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
export default Text;
|
|
179
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","Text","RNText","StyleSheet","useTheme","variant","weight","color","decoration","children","style","restProps","fontFamily","styleArray","styles","base","push","fontWeight","textDecorationLine","createElement","_extends","ellipsizeMode","create","fontSize","lineHeight"],"sourceRoot":"../../../../src","sources":["components/Text/index.tsx"],"mappings":";AAAA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SACCC,IAAI,IAAIC,MAAM,EACdC,UAAU,QAIJ,cAAc;AACrB,SAASC,QAAQ,QAAQ,6BAA6B;;AAEtD;;AAegB;;AAEhB;;AAGA;;AAUA;;AAGA;AACA;;AAEA;;AAUA,MAAMH,IAAyB,GAAGA,CAAC;EAClCI,OAAO;EACPC,MAAM;EACNC,KAAK;EACLC,UAAU;EACVC,QAAQ;EACRC,KAAK;EACL,GAAGC;AACJ,CAAC,KAAK;EACL,MAAM;IAAEC;EAAW,CAAC,GAAGR,QAAQ,CAAC,CAAC;;EAEjC;EACA,MAAMS,UAAkC,GAAG,CAACC,MAAM,CAACC,IAAI,CAAC;;EAExD;;EAEA,IAAIV,OAAO,EAAE;IACZQ,UAAU,CAACG,IAAI,CAACF,MAAM,CAACT,OAAO,CAAC,CAAC;EACjC;;EAEA;EACAQ,UAAU,CAACG,IAAI,CAAC;IAAEJ,UAAU,EAAEA,UAAU,CAACN,MAAM,IAAI,SAAS;EAAE,CAAC,CAAC;;EAEhE;EACAO,UAAU,CAACG,IAAI,CAAC;IAAEC,UAAU,EAAEX,MAAM,KAAK,QAAQ,GAAG,KAAK,GAAGA;EAAO,CAAC,CAAC;;EAErE;EACA,IAAIC,KAAK,EAAE;IACVM,UAAU,CAACG,IAAI,CAACF,MAAM,CAAC,SAASP,KAAK,EAAE,CAAC,CAAC;EAC1C;;EAEA;EACA,IAAIC,UAAU,KAAK,cAAc,EAAE;IAClCK,UAAU,CAACG,IAAI,CAAC;MAAEE,kBAAkB,EAAE;IAAe,CAAC,CAAC;EACxD;;EAEA;EACA,IAAIR,KAAK,EAAE;IACVG,UAAU,CAACG,IAAI,CAACN,KAA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