@redneckz/wildless-cms-uni-blocks 0.11.3 → 0.12.4
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/bin/migration-scripts/0.12.3.js +22 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +184 -255
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/CarouselProductCard/CarouselProductCard.d.ts +1 -1
- package/bundle/components/Headline/HeadlineContent.d.ts +0 -2
- package/bundle/components/MobileAppTile/renderDescription.d.ts +2 -0
- package/bundle/components/MobileAppTile/renderList.d.ts +2 -0
- package/bundle/components/PictureText/PictureTextContent.d.ts +2 -6
- package/bundle/components/ProductBlock/ProductBlockContent.d.ts +3 -22
- package/bundle/components/ProductGallery/ProductGalleryContent.d.ts +2 -2
- package/bundle/components/PromoTile/PromoTileContent.d.ts +2 -3
- package/bundle/components/RollupItem/renderRoundedIcon.d.ts +1 -1
- package/bundle/components/Tile/TileContent.d.ts +2 -13
- package/bundle/model/Align.d.ts +5 -0
- package/bundle/model/AlignText.d.ts +3 -0
- package/bundle/model/AlignType.d.ts +2 -0
- package/bundle/model/HeadlineType.d.ts +8 -1
- package/bundle/model/JSXBlock.d.ts +12 -5
- package/bundle/ui-kit/BaseProductTile/BaseProductTile.d.ts +7 -0
- package/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +22 -0
- package/bundle/{components → ui-kit}/BaseTile/BaseTile.d.ts +2 -0
- package/bundle/ui-kit/BenefitItem/BenefitItem.d.ts +5 -2
- package/bundle/ui-kit/BenefitItem/BenefitItemContent.d.ts +16 -0
- package/bundle/ui-kit/BenefitsList/BenefitsList.d.ts +6 -0
- package/bundle/ui-kit/BenefitsList/BenefitsListContent.d.ts +14 -0
- package/bundle/ui-kit/BenefitsList/renderBenefit.d.ts +4 -0
- package/bundle/ui-kit/Icon/RoundedIcon.d.ts +1 -1
- package/bundle/ui-kit/Img/Img.d.ts +2 -1
- package/bundle/ui-kit/Img/ImgProps.d.ts +0 -1
- package/bundle/ui-kit/List/ListContent.d.ts +6 -0
- package/bundle/ui-kit/List/ListItem.d.ts +1 -1
- package/bundle/ui-kit/List/ListProps.d.ts +0 -6
- package/bundle/ui-kit/SwipeListControl/SwipeListContainer.d.ts +4 -2
- package/bundle/ui-kit/SwipeListControl/SwipeListControl.d.ts +10 -1
- package/bundle/ui-kit/SwipeListControl/SwipeListControlContent.d.ts +16 -4
- package/bundle/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -1
- package/bundle/ui-kit/Tags/Tags.d.ts +2 -2
- package/bundle/utils/avg.d.ts +1 -0
- package/bundle/utils/deviation.d.ts +1 -0
- package/dist/components/ApplicationForm/ApplicationForm.js +1 -2
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/dist/components/ApplicationForm/ResponseNotification.js +1 -1
- package/dist/components/ApplicationForm/ResponseNotification.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js +2 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/Bonus/Bonus.js +1 -1
- package/dist/components/Bonus/Bonus.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/dist/components/BusinessBlock/BusinessBlock.js +1 -1
- package/dist/components/BusinessBlock/BusinessBlock.js.map +1 -1
- package/dist/components/ButtonsBlock/ButtonsBlock.js +1 -1
- package/dist/components/ButtonsBlock/ButtonsBlock.js.map +1 -1
- package/dist/components/Calculator/Calculator.js +1 -1
- package/dist/components/Calculator/Calculator.js.map +1 -1
- package/dist/components/CardTransfer/CardTransfer.js +1 -1
- package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/dist/components/Carousel/Carousel.js +1 -1
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +1 -1
- package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -1
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/dist/components/CarouselEventCard/CarouselEventCard.js +1 -1
- package/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
- package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +2 -2
- package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
- package/dist/components/CarouselLinks/CarouselLinks.js +3 -4
- package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/dist/components/CarouselProductCard/CarouselProductCard.d.ts +1 -1
- package/dist/components/CarouselProductCard/CarouselProductCard.js +5 -5
- package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -1
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -1
- package/dist/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -1
- package/dist/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.js +2 -1
- package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/dist/components/ContactsBlock/ContactsBlock.js +3 -2
- package/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/dist/components/DepositFiltration/DepositFiltration.js +1 -1
- package/dist/components/DepositFiltration/DepositFiltration.js.map +1 -1
- package/dist/components/ErrorBlock/ErrorBlock.js +1 -1
- package/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/dist/components/ExchangeRateOffice/ExchangeRateOffice.js +2 -2
- package/dist/components/ExchangeRateOffice/ExchangeRateOffice.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js +3 -2
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/dist/components/Footer/Footer.js +1 -1
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.js +2 -3
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/GracePeriod/GracePeriod.js +1 -1
- package/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/dist/components/Header/Header.js +1 -1
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Header/Header.mobile.js +1 -1
- package/dist/components/Header/Header.mobile.js.map +1 -1
- package/dist/components/Headline/Headline.js +2 -3
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/Headline/HeadlineContent.d.ts +0 -2
- package/dist/components/Headline/headlineVersionStyles.js +9 -9
- package/dist/components/Headline/headlineVersionStyles.js.map +1 -1
- package/dist/components/HorizontalLayout/HorizontalLayout.js +1 -1
- package/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/dist/components/ImgBlock/ImgBlock.js +1 -1
- package/dist/components/ImgBlock/ImgBlock.js.map +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +2 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/dist/components/InvestmentInfo/InvestmentInfo.js +3 -3
- package/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.js +1 -1
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.js +1 -2
- package/dist/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +6 -12
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/MobileAppTile/renderButtonSection.d.ts +0 -0
- package/dist/components/MobileAppTile/renderButtonSection.js +1 -0
- package/dist/components/MobileAppTile/renderButtonSection.js.map +1 -0
- package/dist/components/MobileAppTile/renderDescription.d.ts +2 -0
- package/dist/components/MobileAppTile/renderDescription.js +7 -0
- package/dist/components/MobileAppTile/renderDescription.js.map +1 -0
- package/dist/components/MobileAppTile/renderList.d.ts +2 -0
- package/dist/components/MobileAppTile/renderList.js +9 -0
- package/dist/components/MobileAppTile/renderList.js.map +1 -0
- package/dist/components/MortgageFiltration/MortgageFiltration.js +1 -1
- package/dist/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
- package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +2 -1
- package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/dist/components/ParagraphBlock/ParagraphBlock.js +1 -1
- package/dist/components/ParagraphBlock/ParagraphBlock.js.map +1 -1
- package/dist/components/PictureText/PictureText.js +2 -7
- package/dist/components/PictureText/PictureText.js.map +1 -1
- package/dist/components/PictureText/PictureTextContent.d.ts +2 -6
- package/dist/components/PictureText/renderInsuranceSumMonth.js +2 -8
- package/dist/components/PictureText/renderInsuranceSumMonth.js.map +1 -1
- package/dist/components/Placeholder/Placeholder.js +1 -6
- package/dist/components/Placeholder/Placeholder.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.js +3 -3
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +3 -22
- package/dist/components/ProductGallery/ProductGallery.js +2 -2
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.mobile.js +5 -6
- package/dist/components/ProductGallery/ProductGallery.mobile.js.map +1 -1
- package/dist/components/ProductGallery/ProductGalleryContent.d.ts +2 -2
- package/dist/components/ProductTile/ProductTile.js +1 -2
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/PromoTile/PromoTile.js +2 -5
- package/dist/components/PromoTile/PromoTile.js.map +1 -1
- package/dist/components/PromoTile/PromoTileContent.d.ts +2 -3
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +1 -1
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/dist/components/RichTextBlock/RichTextBlock.js +1 -1
- package/dist/components/RichTextBlock/RichTextBlock.js.map +1 -1
- package/dist/components/RollupItem/RollupItem.js +3 -3
- package/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/dist/components/RollupItem/renderRoundedIcon.d.ts +1 -1
- package/dist/components/RollupItem/renderRoundedIcon.js +2 -1
- package/dist/components/RollupItem/renderRoundedIcon.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRental.js +2 -2
- package/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.js +1 -1
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/SwipeListControlBlock/SwipeListControlBlock.js +1 -3
- package/dist/components/SwipeListControlBlock/SwipeListControlBlock.js.map +1 -1
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Tabs/Tabs.js.map +1 -1
- package/dist/components/TariffsTable/EmbeddableCellData.mobile.js +3 -6
- package/dist/components/TariffsTable/EmbeddableCellData.mobile.js.map +1 -1
- package/dist/components/TariffsTable/TableTileHeader.js +2 -2
- package/dist/components/TariffsTable/TableTileHeader.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.js +2 -1
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.mobile.js +3 -3
- package/dist/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableHorizontal.js +1 -1
- package/dist/components/TariffsTable/TariffsTableHorizontal.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableTileCell.js +2 -2
- package/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/dist/components/TextBlock/TextBlock.js +1 -3
- package/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/dist/components/Tile/Tile.js +2 -14
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/components/Tile/TileContent.d.ts +2 -13
- package/dist/components/VerticalLayout/VerticalLayout.js +1 -1
- package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/dist/components/Video/Video.js +1 -2
- package/dist/components/Video/Video.js.map +1 -1
- package/dist/content-page-repository/transformDocumentLink.js +1 -1
- package/dist/content-page-repository/transformDocumentLink.js.map +1 -1
- package/dist/content-page-repository/transformImg.js +1 -1
- package/dist/content-page-repository/transformImg.js.map +1 -1
- package/dist/model/Align.d.ts +5 -0
- package/dist/{ui-kit/BenefitItem/BenefitItemProps.js → model/Align.js} +1 -1
- package/dist/model/Align.js.map +1 -0
- package/dist/model/AlignText.d.ts +3 -0
- package/dist/model/AlignText.js +3 -0
- package/dist/model/AlignText.js.map +1 -1
- package/dist/model/AlignType.d.ts +2 -0
- package/dist/model/HeadlineType.d.ts +8 -1
- package/dist/model/JSXBlock.d.ts +12 -5
- package/dist/ui-kit/BaseProductTile/BaseProductTile.d.ts +7 -0
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js +18 -0
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -0
- package/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +22 -0
- package/dist/ui-kit/BaseProductTile/BaseProductTileContent.js +2 -0
- package/dist/ui-kit/BaseProductTile/BaseProductTileContent.js.map +1 -0
- package/{lib/components → dist/ui-kit}/BaseTile/BaseTile.d.ts +2 -0
- package/dist/ui-kit/BaseTile/BaseTile.js +13 -0
- package/dist/ui-kit/BaseTile/BaseTile.js.map +1 -0
- package/dist/ui-kit/BaseTile/getTileRightPadding.js.map +1 -0
- package/dist/ui-kit/BenefitItem/BenefitItem.d.ts +5 -2
- package/dist/ui-kit/BenefitItem/BenefitItem.js +3 -7
- package/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/dist/ui-kit/BenefitItem/BenefitItemContent.d.ts +16 -0
- package/{mobile/dist/ui-kit/SwipeListControl/SwipeListControlProps.js → dist/ui-kit/BenefitItem/BenefitItemContent.js} +1 -1
- package/dist/ui-kit/BenefitItem/BenefitItemContent.js.map +1 -0
- package/dist/ui-kit/BenefitsList/BenefitsList.d.ts +6 -0
- package/dist/ui-kit/BenefitsList/BenefitsList.js +14 -0
- package/dist/ui-kit/BenefitsList/BenefitsList.js.map +1 -0
- package/dist/ui-kit/BenefitsList/BenefitsListContent.d.ts +14 -0
- package/dist/ui-kit/{SwipeListControl/SwipeListControlProps.js → BenefitsList/BenefitsListContent.js} +1 -1
- package/dist/ui-kit/BenefitsList/BenefitsListContent.js.map +1 -0
- package/dist/ui-kit/BenefitsList/renderBenefit.d.ts +4 -0
- package/dist/ui-kit/BenefitsList/renderBenefit.js +13 -0
- package/dist/ui-kit/BenefitsList/renderBenefit.js.map +1 -0
- package/dist/ui-kit/BlockWrapper.js +3 -3
- package/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/dist/ui-kit/Button/ButtonInner.js +1 -1
- package/dist/ui-kit/Button/renderButtonsSection.js +1 -1
- package/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/dist/ui-kit/Heading/Heading.js +2 -1
- package/dist/ui-kit/Heading/Heading.js.map +1 -1
- package/dist/ui-kit/Icon/RoundedIcon.d.ts +1 -1
- package/dist/ui-kit/Icon/RoundedIcon.js +2 -2
- package/dist/ui-kit/Icon/RoundedIcon.js.map +1 -1
- package/dist/ui-kit/Img/Img.d.ts +2 -1
- package/dist/ui-kit/Img/Img.js +10 -2
- package/dist/ui-kit/Img/Img.js.map +1 -1
- package/dist/ui-kit/Img/ImgAsPicture.js +6 -12
- package/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/dist/ui-kit/Img/ImgProps.d.ts +0 -1
- package/dist/ui-kit/List/List.js.map +1 -1
- package/dist/ui-kit/List/ListContent.d.ts +6 -0
- package/dist/ui-kit/List/ListItem.d.ts +1 -1
- package/dist/ui-kit/List/ListProps.d.ts +0 -6
- package/dist/ui-kit/SwipeListControl/SwipeListContainer.d.ts +4 -2
- package/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControl.d.ts +10 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControl.js +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlContent.d.ts +16 -4
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -1
- package/dist/ui-kit/Tags/Tags.d.ts +2 -2
- package/dist/ui-kit/Tags/Tags.js +4 -5
- package/dist/ui-kit/Tags/Tags.js.map +1 -1
- package/dist/utils/avg.d.ts +1 -0
- package/dist/utils/avg.js +6 -0
- package/dist/utils/avg.js.map +1 -0
- package/dist/utils/deviation.d.ts +1 -0
- package/dist/utils/deviation.js +6 -0
- package/dist/utils/deviation.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.js +1 -2
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/lib/components/ApplicationForm/ResponseNotification.js +1 -1
- package/lib/components/ApplicationForm/ResponseNotification.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js +2 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/Bonus/Bonus.js +1 -1
- package/lib/components/Bonus/Bonus.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/lib/components/BusinessBlock/BusinessBlock.js +1 -1
- package/lib/components/BusinessBlock/BusinessBlock.js.map +1 -1
- package/lib/components/ButtonsBlock/ButtonsBlock.js +1 -1
- package/lib/components/ButtonsBlock/ButtonsBlock.js.map +1 -1
- package/lib/components/Calculator/Calculator.js +1 -1
- package/lib/components/Calculator/Calculator.js.map +1 -1
- package/lib/components/CardTransfer/CardTransfer.js +1 -1
- package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/lib/components/Carousel/Carousel.js +1 -1
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +1 -1
- package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -1
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/lib/components/CarouselEventCard/CarouselEventCard.js +1 -1
- package/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
- package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +2 -2
- package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
- package/lib/components/CarouselLinks/CarouselLinks.js +3 -4
- package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/lib/components/CarouselProductCard/CarouselProductCard.d.ts +1 -1
- package/lib/components/CarouselProductCard/CarouselProductCard.js +5 -5
- package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -1
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -1
- package/lib/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -1
- package/lib/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.js +2 -1
- package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/lib/components/ContactsBlock/ContactsBlock.js +3 -2
- package/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/lib/components/DepositFiltration/DepositFiltration.js +1 -1
- package/lib/components/DepositFiltration/DepositFiltration.js.map +1 -1
- package/lib/components/ErrorBlock/ErrorBlock.js +1 -1
- package/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/lib/components/ExchangeRateOffice/ExchangeRateOffice.js +2 -2
- package/lib/components/ExchangeRateOffice/ExchangeRateOffice.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js +3 -2
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/lib/components/Footer/Footer.js +1 -1
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js +2 -3
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/GracePeriod/GracePeriod.js +1 -1
- package/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/lib/components/Header/Header.js +1 -1
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/Header.mobile.js +1 -1
- package/lib/components/Header/Header.mobile.js.map +1 -1
- package/lib/components/Headline/Headline.js +2 -3
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/Headline/HeadlineContent.d.ts +0 -2
- package/lib/components/Headline/headlineVersionStyles.js +9 -9
- package/lib/components/Headline/headlineVersionStyles.js.map +1 -1
- package/lib/components/HorizontalLayout/HorizontalLayout.js +1 -1
- package/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/lib/components/ImgBlock/ImgBlock.js +1 -1
- package/lib/components/ImgBlock/ImgBlock.js.map +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +2 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/lib/components/InvestmentInfo/InvestmentInfo.js +3 -3
- package/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.js +1 -1
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.js +1 -2
- package/lib/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.fixture.mobile.d.ts +1 -0
- package/lib/components/MobileAppTile/MobileAppTile.js +6 -12
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/MobileAppTile/renderButtonSection.d.ts +0 -0
- package/lib/components/MobileAppTile/renderButtonSection.js +1 -0
- package/lib/components/MobileAppTile/renderButtonSection.js.map +1 -0
- package/lib/components/MobileAppTile/renderDescription.d.ts +1 -0
- package/lib/components/MobileAppTile/renderDescription.js +4 -0
- package/lib/components/MobileAppTile/renderDescription.js.map +1 -0
- package/lib/components/MobileAppTile/renderList.d.ts +1 -0
- package/lib/components/MobileAppTile/renderList.js +6 -0
- package/lib/components/MobileAppTile/renderList.js.map +1 -0
- package/lib/components/MortgageFiltration/MortgageFiltration.js +1 -1
- package/lib/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
- package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +2 -1
- package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/lib/components/ParagraphBlock/ParagraphBlock.js +1 -1
- package/lib/components/ParagraphBlock/ParagraphBlock.js.map +1 -1
- package/lib/components/PictureText/PictureText.js +3 -8
- package/lib/components/PictureText/PictureText.js.map +1 -1
- package/lib/components/PictureText/PictureTextContent.d.ts +2 -6
- package/lib/components/PictureText/renderInsuranceSumMonth.js +2 -8
- package/lib/components/PictureText/renderInsuranceSumMonth.js.map +1 -1
- package/lib/components/Placeholder/Placeholder.js +1 -6
- package/lib/components/Placeholder/Placeholder.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.js +3 -3
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +3 -22
- package/lib/components/ProductGallery/ProductGallery.js +2 -2
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.mobile.js +5 -6
- package/lib/components/ProductGallery/ProductGallery.mobile.js.map +1 -1
- package/lib/components/ProductGallery/ProductGalleryContent.d.ts +2 -2
- package/lib/components/ProductTile/ProductTile.js +1 -2
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/PromoTile/PromoTile.js +2 -5
- package/lib/components/PromoTile/PromoTile.js.map +1 -1
- package/lib/components/PromoTile/PromoTileContent.d.ts +2 -3
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +1 -1
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/lib/components/RichTextBlock/RichTextBlock.js +1 -1
- package/lib/components/RichTextBlock/RichTextBlock.js.map +1 -1
- package/lib/components/RollupItem/RollupItem.js +3 -3
- package/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/lib/components/RollupItem/renderRoundedIcon.d.ts +1 -1
- package/lib/components/RollupItem/renderRoundedIcon.js +2 -1
- package/lib/components/RollupItem/renderRoundedIcon.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRental.js +2 -2
- package/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.js +1 -1
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/SwipeListControlBlock/SwipeListControlBlock.js +1 -3
- package/lib/components/SwipeListControlBlock/SwipeListControlBlock.js.map +1 -1
- package/lib/components/Tabs/Tabs.js +1 -1
- package/lib/components/Tabs/Tabs.js.map +1 -1
- package/lib/components/TariffsTable/EmbeddableCellData.mobile.js +3 -6
- package/lib/components/TariffsTable/EmbeddableCellData.mobile.js.map +1 -1
- package/lib/components/TariffsTable/TableTileHeader.js +2 -2
- package/lib/components/TariffsTable/TableTileHeader.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.js +2 -1
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.mobile.js +3 -3
- package/lib/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableHorizontal.js +1 -1
- package/lib/components/TariffsTable/TariffsTableHorizontal.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableTileCell.js +2 -2
- package/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/lib/components/TextBlock/TextBlock.js +1 -3
- package/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/lib/components/Tile/Tile.js +3 -15
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/components/Tile/TileContent.d.ts +2 -13
- package/lib/components/VerticalLayout/VerticalLayout.js +1 -1
- package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/lib/components/Video/Video.js +1 -2
- package/lib/components/Video/Video.js.map +1 -1
- package/lib/content-page-repository/transformDocumentLink.js +1 -1
- package/lib/content-page-repository/transformDocumentLink.js.map +1 -1
- package/lib/content-page-repository/transformImg.js +1 -1
- package/lib/content-page-repository/transformImg.js.map +1 -1
- package/lib/model/Align.d.ts +5 -0
- package/lib/model/Align.js +2 -0
- package/lib/model/Align.js.map +1 -0
- package/lib/model/AlignText.d.ts +3 -0
- package/lib/model/AlignText.js +3 -0
- package/lib/model/AlignText.js.map +1 -1
- package/lib/model/AlignType.d.ts +2 -0
- package/lib/model/HeadlineType.d.ts +8 -1
- package/lib/model/JSXBlock.d.ts +12 -5
- package/lib/ui-kit/BaseProductTile/BaseProductTile.d.ts +7 -0
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js +16 -0
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -0
- package/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +22 -0
- package/lib/ui-kit/BaseProductTile/BaseProductTileContent.js +2 -0
- package/lib/ui-kit/BaseProductTile/BaseProductTileContent.js.map +1 -0
- package/{mobile/bundle/components → lib/ui-kit}/BaseTile/BaseTile.d.ts +2 -0
- package/lib/ui-kit/BaseTile/BaseTile.js +11 -0
- package/lib/ui-kit/BaseTile/BaseTile.js.map +1 -0
- package/lib/ui-kit/BaseTile/getTileRightPadding.js.map +1 -0
- package/lib/ui-kit/BenefitItem/BenefitItem.d.ts +5 -2
- package/lib/ui-kit/BenefitItem/BenefitItem.js +3 -7
- package/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/lib/ui-kit/BenefitItem/BenefitItemContent.d.ts +16 -0
- package/lib/ui-kit/BenefitItem/BenefitItemContent.js +2 -0
- package/lib/ui-kit/BenefitItem/BenefitItemContent.js.map +1 -0
- package/lib/ui-kit/BenefitsList/BenefitsList.d.ts +6 -0
- package/lib/ui-kit/BenefitsList/BenefitsList.js +12 -0
- package/lib/ui-kit/BenefitsList/BenefitsList.js.map +1 -0
- package/lib/ui-kit/BenefitsList/BenefitsListContent.d.ts +14 -0
- package/lib/ui-kit/BenefitsList/BenefitsListContent.js +2 -0
- package/lib/ui-kit/BenefitsList/BenefitsListContent.js.map +1 -0
- package/lib/ui-kit/BenefitsList/renderBenefit.d.ts +3 -0
- package/lib/ui-kit/BenefitsList/renderBenefit.js +10 -0
- package/lib/ui-kit/BenefitsList/renderBenefit.js.map +1 -0
- package/lib/ui-kit/BlockWrapper.js +3 -3
- package/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/lib/ui-kit/Button/ButtonInner.js +1 -1
- package/lib/ui-kit/Button/renderButtonsSection.js +1 -1
- package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/lib/ui-kit/Heading/Heading.js +2 -1
- package/lib/ui-kit/Heading/Heading.js.map +1 -1
- package/lib/ui-kit/Icon/RoundedIcon.d.ts +1 -1
- package/lib/ui-kit/Icon/RoundedIcon.js +2 -2
- package/lib/ui-kit/Icon/RoundedIcon.js.map +1 -1
- package/lib/ui-kit/Img/Img.d.ts +2 -1
- package/lib/ui-kit/Img/Img.js +10 -1
- package/lib/ui-kit/Img/Img.js.map +1 -1
- package/lib/ui-kit/Img/ImgAsPicture.js +6 -12
- package/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/lib/ui-kit/Img/ImgProps.d.ts +0 -1
- package/lib/ui-kit/List/List.js.map +1 -1
- package/lib/ui-kit/List/ListContent.d.ts +6 -0
- package/lib/ui-kit/List/ListItem.d.ts +1 -1
- package/lib/ui-kit/List/ListProps.d.ts +0 -6
- package/lib/ui-kit/SwipeListControl/SwipeListContainer.d.ts +4 -2
- package/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControl.d.ts +10 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControl.js +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlContent.d.ts +16 -4
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -1
- package/lib/ui-kit/Tags/Tags.d.ts +2 -2
- package/lib/ui-kit/Tags/Tags.js +4 -5
- package/lib/ui-kit/Tags/Tags.js.map +1 -1
- package/lib/utils/avg.d.ts +1 -0
- package/lib/utils/avg.js +3 -0
- package/lib/utils/avg.js.map +1 -0
- package/lib/utils/deviation.d.ts +1 -0
- package/lib/utils/deviation.js +3 -0
- package/lib/utils/deviation.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +122 -179
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/CarouselProductCard/CarouselProductCard.d.ts +1 -1
- package/mobile/bundle/components/Headline/HeadlineContent.d.ts +0 -2
- package/mobile/bundle/components/MobileAppTile/renderDescription.d.ts +2 -0
- package/mobile/bundle/components/MobileAppTile/renderList.d.ts +2 -0
- package/mobile/bundle/components/PictureText/PictureTextContent.d.ts +2 -6
- package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +3 -22
- package/mobile/bundle/components/ProductGallery/ProductGalleryContent.d.ts +2 -2
- package/mobile/bundle/components/PromoTile/PromoTileContent.d.ts +2 -3
- package/mobile/bundle/components/Tile/TileContent.d.ts +2 -13
- package/mobile/bundle/model/Align.d.ts +5 -0
- package/mobile/bundle/model/AlignText.d.ts +3 -0
- package/mobile/bundle/model/AlignType.d.ts +2 -0
- package/mobile/bundle/model/HeadlineType.d.ts +8 -1
- package/mobile/bundle/model/JSXBlock.d.ts +12 -5
- package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTile.d.ts +7 -0
- package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +22 -0
- package/{dist/components → mobile/bundle/ui-kit}/BaseTile/BaseTile.d.ts +2 -0
- package/mobile/bundle/ui-kit/BenefitItem/BenefitItem.d.ts +5 -2
- package/mobile/bundle/ui-kit/BenefitItem/BenefitItemContent.d.ts +16 -0
- package/mobile/bundle/ui-kit/BenefitsList/BenefitsList.d.ts +6 -0
- package/mobile/bundle/ui-kit/BenefitsList/BenefitsListContent.d.ts +14 -0
- package/mobile/bundle/ui-kit/BenefitsList/renderBenefit.d.ts +4 -0
- package/mobile/bundle/ui-kit/Icon/RoundedIcon.d.ts +1 -1
- package/mobile/bundle/ui-kit/Img/ImgProps.d.ts +0 -1
- package/mobile/bundle/ui-kit/List/ListContent.d.ts +6 -0
- package/mobile/bundle/ui-kit/List/ListItem.d.ts +1 -1
- package/mobile/bundle/ui-kit/List/ListProps.d.ts +0 -6
- package/mobile/bundle/ui-kit/SwipeListControl/SwipeListContainer.d.ts +4 -2
- package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControl.d.ts +10 -1
- package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlContent.d.ts +16 -4
- package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -1
- package/mobile/bundle/ui-kit/Tags/Tags.d.ts +2 -2
- package/mobile/bundle/utils/avg.d.ts +1 -0
- package/mobile/bundle/utils/deviation.d.ts +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +1 -2
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ResponseNotification.js +1 -1
- package/mobile/dist/components/ApplicationForm/ResponseNotification.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +2 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/Bonus/Bonus.js +1 -1
- package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BusinessBlock/BusinessBlock.js +1 -1
- package/mobile/dist/components/BusinessBlock/BusinessBlock.js.map +1 -1
- package/mobile/dist/components/ButtonsBlock/ButtonsBlock.js +1 -1
- package/mobile/dist/components/ButtonsBlock/ButtonsBlock.js.map +1 -1
- package/mobile/dist/components/Calculator/Calculator.js +1 -1
- package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.js +1 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/dist/components/Carousel/Carousel.js +1 -1
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +1 -1
- package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -1
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js +1 -1
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
- package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +2 -2
- package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js +3 -4
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.d.ts +1 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +5 -5
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -1
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -1
- package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +1 -1
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/dist/components/ContactsBlock/ContactsBlock.js +3 -2
- package/mobile/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/mobile/dist/components/DepositFiltration/DepositFiltration.js +1 -1
- package/mobile/dist/components/DepositFiltration/DepositFiltration.js.map +1 -1
- package/mobile/dist/components/ErrorBlock/ErrorBlock.js +1 -1
- package/mobile/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOffice.js +2 -2
- package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOffice.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +3 -2
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/dist/components/Footer/Footer.js +2 -3
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriod.js +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/dist/components/Header/Header.js +1 -1
- package/mobile/dist/components/Header/Header.js.map +1 -1
- package/mobile/dist/components/Headline/Headline.js +2 -3
- package/mobile/dist/components/Headline/Headline.js.map +1 -1
- package/mobile/dist/components/Headline/HeadlineContent.d.ts +0 -2
- package/mobile/dist/components/Headline/headlineVersionStyles.js +9 -9
- package/mobile/dist/components/Headline/headlineVersionStyles.js.map +1 -1
- package/mobile/dist/components/HorizontalLayout/HorizontalLayout.js +1 -1
- package/mobile/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/mobile/dist/components/ImgBlock/ImgBlock.js +1 -1
- package/mobile/dist/components/ImgBlock/ImgBlock.js.map +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +2 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js +3 -3
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.js +1 -2
- package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js +11 -3
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/renderButtonSection.d.ts +0 -0
- package/mobile/dist/components/MobileAppTile/renderButtonSection.js +1 -0
- package/mobile/dist/components/MobileAppTile/renderButtonSection.js.map +1 -0
- package/mobile/dist/components/MobileAppTile/renderDescription.d.ts +2 -0
- package/mobile/dist/components/MobileAppTile/renderDescription.js +7 -0
- package/mobile/dist/components/MobileAppTile/renderDescription.js.map +1 -0
- package/mobile/dist/components/MobileAppTile/renderList.d.ts +2 -0
- package/mobile/dist/components/MobileAppTile/renderList.js +9 -0
- package/mobile/dist/components/MobileAppTile/renderList.js.map +1 -0
- package/mobile/dist/components/MortgageFiltration/MortgageFiltration.js +1 -1
- package/mobile/dist/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
- package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +2 -1
- package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/mobile/dist/components/ParagraphBlock/ParagraphBlock.js +1 -1
- package/mobile/dist/components/ParagraphBlock/ParagraphBlock.js.map +1 -1
- package/mobile/dist/components/PictureText/PictureText.js +2 -7
- package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
- package/mobile/dist/components/PictureText/PictureTextContent.d.ts +2 -6
- package/mobile/dist/components/PictureText/renderInsuranceSumMonth.js +2 -8
- package/mobile/dist/components/PictureText/renderInsuranceSumMonth.js.map +1 -1
- package/mobile/dist/components/Placeholder/Placeholder.js +1 -6
- package/mobile/dist/components/Placeholder/Placeholder.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlock.js +3 -3
- package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +3 -22
- package/mobile/dist/components/ProductGallery/ProductGallery.js +5 -6
- package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryContent.d.ts +2 -2
- package/mobile/dist/components/ProductTile/ProductTile.js +1 -2
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/PromoTile/PromoTile.js +2 -5
- package/mobile/dist/components/PromoTile/PromoTile.js.map +1 -1
- package/mobile/dist/components/PromoTile/PromoTileContent.d.ts +2 -3
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +1 -1
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/mobile/dist/components/RichTextBlock/RichTextBlock.js +1 -1
- package/mobile/dist/components/RichTextBlock/RichTextBlock.js.map +1 -1
- package/mobile/dist/components/RollupItem/RollupItem.js +3 -3
- package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js +2 -2
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/SwipeListControlBlock/SwipeListControlBlock.js +1 -3
- package/mobile/dist/components/SwipeListControlBlock/SwipeListControlBlock.js.map +1 -1
- package/mobile/dist/components/Tabs/Tabs.js +1 -1
- package/mobile/dist/components/Tabs/Tabs.js.map +1 -1
- package/mobile/dist/components/TariffsTable/EmbeddableCellData.js +3 -6
- package/mobile/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TableTileHeader.js +2 -2
- package/mobile/dist/components/TariffsTable/TableTileHeader.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js +3 -3
- package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableHorizontal.js +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableHorizontal.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js +2 -2
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/mobile/dist/components/TextBlock/TextBlock.js +1 -3
- package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/dist/components/Tile/Tile.js +2 -14
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/components/Tile/TileContent.d.ts +2 -13
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js +1 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/dist/components/Video/Video.js +1 -2
- package/mobile/dist/components/Video/Video.js.map +1 -1
- package/mobile/dist/content-page-repository/transformDocumentLink.js +1 -1
- package/mobile/dist/content-page-repository/transformDocumentLink.js.map +1 -1
- package/mobile/dist/content-page-repository/transformImg.js +1 -1
- package/mobile/dist/content-page-repository/transformImg.js.map +1 -1
- package/mobile/dist/model/Align.d.ts +5 -0
- package/mobile/dist/{ui-kit/BenefitItem/BenefitItemProps.js → model/Align.js} +1 -1
- package/mobile/dist/model/Align.js.map +1 -0
- package/mobile/dist/model/AlignText.d.ts +3 -0
- package/mobile/dist/model/AlignText.js +3 -0
- package/mobile/dist/model/AlignText.js.map +1 -1
- package/mobile/dist/model/AlignType.d.ts +2 -0
- package/mobile/dist/model/HeadlineType.d.ts +8 -1
- package/mobile/dist/model/JSXBlock.d.ts +12 -5
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.d.ts +7 -0
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +18 -0
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -0
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +22 -0
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTileContent.js +2 -0
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTileContent.js.map +1 -0
- package/mobile/dist/ui-kit/BaseTile/BaseTile.d.ts +14 -0
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js +13 -0
- package/mobile/dist/ui-kit/BaseTile/BaseTile.js.map +1 -0
- package/mobile/dist/ui-kit/BaseTile/getTileRightPadding.js.map +1 -0
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.d.ts +5 -2
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +3 -7
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/dist/ui-kit/BenefitItem/BenefitItemContent.d.ts +16 -0
- package/mobile/dist/ui-kit/BenefitItem/BenefitItemContent.js +2 -0
- package/mobile/dist/ui-kit/BenefitItem/BenefitItemContent.js.map +1 -0
- package/mobile/dist/ui-kit/BenefitsList/BenefitsList.d.ts +6 -0
- package/mobile/dist/ui-kit/BenefitsList/BenefitsList.js +14 -0
- package/mobile/dist/ui-kit/BenefitsList/BenefitsList.js.map +1 -0
- package/mobile/dist/ui-kit/BenefitsList/BenefitsListContent.d.ts +14 -0
- package/mobile/dist/ui-kit/BenefitsList/BenefitsListContent.js +2 -0
- package/mobile/dist/ui-kit/BenefitsList/BenefitsListContent.js.map +1 -0
- package/mobile/dist/ui-kit/BenefitsList/renderBenefit.d.ts +4 -0
- package/mobile/dist/ui-kit/BenefitsList/renderBenefit.js +13 -0
- package/mobile/dist/ui-kit/BenefitsList/renderBenefit.js.map +1 -0
- package/mobile/dist/ui-kit/BlockWrapper.js +3 -3
- package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js +1 -1
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js +1 -1
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/mobile/dist/ui-kit/Heading/Heading.js +2 -1
- package/mobile/dist/ui-kit/Heading/Heading.js.map +1 -1
- package/mobile/dist/ui-kit/Icon/RoundedIcon.d.ts +1 -1
- package/mobile/dist/ui-kit/Icon/RoundedIcon.js +2 -2
- package/mobile/dist/ui-kit/Icon/RoundedIcon.js.map +1 -1
- package/mobile/dist/ui-kit/Img/Img.js +8 -2
- package/mobile/dist/ui-kit/Img/Img.js.map +1 -1
- package/mobile/dist/ui-kit/Img/ImgAsPicture.js +6 -12
- package/mobile/dist/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/mobile/dist/ui-kit/Img/ImgProps.d.ts +0 -1
- package/mobile/dist/ui-kit/List/List.js.map +1 -1
- package/mobile/dist/ui-kit/List/ListContent.d.ts +6 -0
- package/mobile/dist/ui-kit/List/ListItem.d.ts +1 -1
- package/mobile/dist/ui-kit/List/ListProps.d.ts +0 -6
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.d.ts +4 -2
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.d.ts +10 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlContent.d.ts +16 -4
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -1
- package/mobile/dist/ui-kit/Tags/Tags.d.ts +2 -2
- package/mobile/dist/ui-kit/Tags/Tags.js +4 -5
- package/mobile/dist/ui-kit/Tags/Tags.js.map +1 -1
- package/mobile/dist/utils/avg.d.ts +1 -0
- package/mobile/dist/utils/avg.js +6 -0
- package/mobile/dist/utils/avg.js.map +1 -0
- package/mobile/dist/utils/deviation.d.ts +1 -0
- package/mobile/dist/utils/deviation.js +6 -0
- package/mobile/dist/utils/deviation.js.map +1 -0
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +1 -2
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ResponseNotification.js +1 -1
- package/mobile/lib/components/ApplicationForm/ResponseNotification.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +2 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/Bonus/Bonus.js +1 -1
- package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BusinessBlock/BusinessBlock.js +1 -1
- package/mobile/lib/components/BusinessBlock/BusinessBlock.js.map +1 -1
- package/mobile/lib/components/ButtonsBlock/ButtonsBlock.js +1 -1
- package/mobile/lib/components/ButtonsBlock/ButtonsBlock.js.map +1 -1
- package/mobile/lib/components/Calculator/Calculator.js +1 -1
- package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
- package/mobile/lib/components/CardTransfer/CardTransfer.js +1 -1
- package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/lib/components/Carousel/Carousel.js +1 -1
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +1 -1
- package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +2 -1
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js +1 -1
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
- package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +2 -2
- package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js +3 -4
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.d.ts +1 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +5 -5
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -1
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -1
- package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +1 -1
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/lib/components/ContactsBlock/ContactsBlock.js +3 -2
- package/mobile/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/mobile/lib/components/DepositFiltration/DepositFiltration.js +1 -1
- package/mobile/lib/components/DepositFiltration/DepositFiltration.js.map +1 -1
- package/mobile/lib/components/ErrorBlock/ErrorBlock.js +1 -1
- package/mobile/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOffice.js +2 -2
- package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOffice.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +3 -2
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/lib/components/Footer/Footer.js +2 -3
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriod.js +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/lib/components/Header/Header.js +1 -1
- package/mobile/lib/components/Header/Header.js.map +1 -1
- package/mobile/lib/components/Headline/Headline.js +2 -3
- package/mobile/lib/components/Headline/Headline.js.map +1 -1
- package/mobile/lib/components/Headline/HeadlineContent.d.ts +0 -2
- package/mobile/lib/components/Headline/headlineVersionStyles.js +9 -9
- package/mobile/lib/components/Headline/headlineVersionStyles.js.map +1 -1
- package/mobile/lib/components/HorizontalLayout/HorizontalLayout.js +1 -1
- package/mobile/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/mobile/lib/components/ImgBlock/ImgBlock.js +1 -1
- package/mobile/lib/components/ImgBlock/ImgBlock.js.map +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +2 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js +3 -3
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.js +1 -2
- package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js +11 -3
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/renderButtonSection.d.ts +0 -0
- package/mobile/lib/components/MobileAppTile/renderButtonSection.js +1 -0
- package/mobile/lib/components/MobileAppTile/renderButtonSection.js.map +1 -0
- package/mobile/lib/components/MobileAppTile/renderDescription.d.ts +2 -0
- package/mobile/lib/components/MobileAppTile/renderDescription.js +4 -0
- package/mobile/lib/components/MobileAppTile/renderDescription.js.map +1 -0
- package/mobile/lib/components/MobileAppTile/renderList.d.ts +2 -0
- package/mobile/lib/components/MobileAppTile/renderList.js +6 -0
- package/mobile/lib/components/MobileAppTile/renderList.js.map +1 -0
- package/mobile/lib/components/MortgageFiltration/MortgageFiltration.js +1 -1
- package/mobile/lib/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
- package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +2 -1
- package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/mobile/lib/components/ParagraphBlock/ParagraphBlock.js +1 -1
- package/mobile/lib/components/ParagraphBlock/ParagraphBlock.js.map +1 -1
- package/mobile/lib/components/PictureText/PictureText.js +3 -8
- package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
- package/mobile/lib/components/PictureText/PictureTextContent.d.ts +2 -6
- package/mobile/lib/components/PictureText/renderInsuranceSumMonth.js +2 -8
- package/mobile/lib/components/PictureText/renderInsuranceSumMonth.js.map +1 -1
- package/mobile/lib/components/Placeholder/Placeholder.js +1 -6
- package/mobile/lib/components/Placeholder/Placeholder.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlock.js +3 -3
- package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +3 -22
- package/mobile/lib/components/ProductGallery/ProductGallery.js +5 -6
- package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryContent.d.ts +2 -2
- package/mobile/lib/components/ProductTile/ProductTile.js +1 -2
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/PromoTile/PromoTile.js +2 -5
- package/mobile/lib/components/PromoTile/PromoTile.js.map +1 -1
- package/mobile/lib/components/PromoTile/PromoTileContent.d.ts +2 -3
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +1 -1
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/mobile/lib/components/RichTextBlock/RichTextBlock.js +1 -1
- package/mobile/lib/components/RichTextBlock/RichTextBlock.js.map +1 -1
- package/mobile/lib/components/RollupItem/RollupItem.js +3 -3
- package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js +2 -2
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/SwipeListControlBlock/SwipeListControlBlock.js +1 -3
- package/mobile/lib/components/SwipeListControlBlock/SwipeListControlBlock.js.map +1 -1
- package/mobile/lib/components/Tabs/Tabs.js +1 -1
- package/mobile/lib/components/Tabs/Tabs.js.map +1 -1
- package/mobile/lib/components/TariffsTable/EmbeddableCellData.js +3 -6
- package/mobile/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TableTileHeader.js +2 -2
- package/mobile/lib/components/TariffsTable/TableTileHeader.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js +3 -3
- package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableHorizontal.js +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableHorizontal.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js +2 -2
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/mobile/lib/components/TextBlock/TextBlock.js +1 -3
- package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/lib/components/Tile/Tile.js +3 -15
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/components/Tile/TileContent.d.ts +2 -13
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js +1 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/lib/components/Video/Video.js +1 -2
- package/mobile/lib/components/Video/Video.js.map +1 -1
- package/mobile/lib/content-page-repository/transformDocumentLink.js +1 -1
- package/mobile/lib/content-page-repository/transformDocumentLink.js.map +1 -1
- package/mobile/lib/content-page-repository/transformImg.js +1 -1
- package/mobile/lib/content-page-repository/transformImg.js.map +1 -1
- package/mobile/lib/model/Align.d.ts +5 -0
- package/mobile/lib/model/Align.js +2 -0
- package/mobile/lib/model/Align.js.map +1 -0
- package/mobile/lib/model/AlignText.d.ts +3 -0
- package/mobile/lib/model/AlignText.js +3 -0
- package/mobile/lib/model/AlignText.js.map +1 -1
- package/mobile/lib/model/AlignType.d.ts +2 -0
- package/mobile/lib/model/HeadlineType.d.ts +8 -1
- package/mobile/lib/model/JSXBlock.d.ts +12 -5
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.d.ts +7 -0
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +16 -0
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -0
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTileContent.d.ts +22 -0
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTileContent.js +2 -0
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTileContent.js.map +1 -0
- package/mobile/lib/ui-kit/BaseTile/BaseTile.d.ts +14 -0
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js +11 -0
- package/mobile/lib/ui-kit/BaseTile/BaseTile.js.map +1 -0
- package/mobile/lib/ui-kit/BaseTile/getTileRightPadding.js.map +1 -0
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.d.ts +5 -2
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +3 -7
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/lib/ui-kit/BenefitItem/BenefitItemContent.d.ts +16 -0
- package/mobile/lib/ui-kit/BenefitItem/BenefitItemContent.js +2 -0
- package/mobile/lib/ui-kit/BenefitItem/BenefitItemContent.js.map +1 -0
- package/mobile/lib/ui-kit/BenefitsList/BenefitsList.d.ts +6 -0
- package/mobile/lib/ui-kit/BenefitsList/BenefitsList.js +12 -0
- package/mobile/lib/ui-kit/BenefitsList/BenefitsList.js.map +1 -0
- package/mobile/lib/ui-kit/BenefitsList/BenefitsListContent.d.ts +14 -0
- package/mobile/lib/ui-kit/BenefitsList/BenefitsListContent.js +2 -0
- package/mobile/lib/ui-kit/BenefitsList/BenefitsListContent.js.map +1 -0
- package/mobile/lib/ui-kit/BenefitsList/renderBenefit.d.ts +4 -0
- package/mobile/lib/ui-kit/BenefitsList/renderBenefit.js +10 -0
- package/mobile/lib/ui-kit/BenefitsList/renderBenefit.js.map +1 -0
- package/mobile/lib/ui-kit/BlockWrapper.js +3 -3
- package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js +1 -1
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js +1 -1
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/mobile/lib/ui-kit/Heading/Heading.js +2 -1
- package/mobile/lib/ui-kit/Heading/Heading.js.map +1 -1
- package/mobile/lib/ui-kit/Icon/RoundedIcon.d.ts +1 -1
- package/mobile/lib/ui-kit/Icon/RoundedIcon.js +2 -2
- package/mobile/lib/ui-kit/Icon/RoundedIcon.js.map +1 -1
- package/mobile/lib/ui-kit/Img/Img.js +8 -2
- package/mobile/lib/ui-kit/Img/Img.js.map +1 -1
- package/mobile/lib/ui-kit/Img/ImgAsPicture.js +6 -12
- package/mobile/lib/ui-kit/Img/ImgAsPicture.js.map +1 -1
- package/mobile/lib/ui-kit/Img/ImgProps.d.ts +0 -1
- package/mobile/lib/ui-kit/List/List.js.map +1 -1
- package/mobile/lib/ui-kit/List/ListContent.d.ts +6 -0
- package/mobile/lib/ui-kit/List/ListItem.d.ts +1 -1
- package/mobile/lib/ui-kit/List/ListProps.d.ts +0 -6
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.d.ts +4 -2
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListContainer.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.d.ts +10 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlContent.d.ts +16 -4
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.d.ts +1 -1
- package/mobile/lib/ui-kit/Tags/Tags.d.ts +2 -2
- package/mobile/lib/ui-kit/Tags/Tags.js +4 -5
- package/mobile/lib/ui-kit/Tags/Tags.js.map +1 -1
- package/mobile/lib/utils/avg.d.ts +1 -0
- package/mobile/lib/utils/avg.js +3 -0
- package/mobile/lib/utils/avg.js.map +1 -0
- package/mobile/lib/utils/deviation.d.ts +1 -0
- package/mobile/lib/utils/deviation.js +3 -0
- package/mobile/lib/utils/deviation.js.map +1 -0
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +1 -2
- package/mobile/src/components/ApplicationForm/ResponseNotification.tsx +1 -1
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +6 -1
- package/mobile/src/components/Bonus/Bonus.tsx +1 -1
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +2 -1
- package/mobile/src/components/BusinessBlock/BusinessBlock.tsx +8 -10
- package/mobile/src/components/ButtonsBlock/ButtonsBlock.tsx +1 -1
- package/mobile/src/components/Calculator/Calculator.tsx +2 -1
- package/mobile/src/components/CardTransfer/CardTransfer.tsx +5 -1
- package/mobile/src/components/Carousel/Carousel.tsx +1 -8
- package/mobile/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +1 -1
- package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +5 -1
- package/mobile/src/components/CarouselEventCard/CarouselEventCard.tsx +1 -1
- package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +9 -4
- package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +24 -24
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +10 -8
- package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +5 -1
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +2 -1
- package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCard.tsx +1 -1
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +2 -5
- package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +9 -3
- package/mobile/src/components/DepositFiltration/DepositFiltration.example.json +1 -1
- package/mobile/src/components/DepositFiltration/DepositFiltration.tsx +6 -1
- package/mobile/src/components/ErrorBlock/ErrorBlock.tsx +2 -5
- package/mobile/src/components/ExchangeRateOffice/ExchangeRateOffice.tsx +4 -7
- package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +1 -1
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +8 -8
- package/mobile/src/components/Footer/Footer.tsx +2 -3
- package/mobile/src/components/GracePeriod/GracePeriod.tsx +1 -1
- package/mobile/src/components/Header/Header.tsx +2 -2
- package/mobile/src/components/Headline/Headline.tsx +7 -7
- package/mobile/src/components/Headline/HeadlineContent.ts +2 -4
- package/mobile/src/components/Headline/headlineVersionStyles.ts +9 -9
- package/mobile/src/components/HorizontalLayout/HorizontalLayout.tsx +2 -7
- package/mobile/src/components/ImgBlock/ImgBlock.tsx +1 -1
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +3 -1
- package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +6 -6
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +1 -3
- package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +56 -20
- package/mobile/src/components/MobileAppTile/renderButtonSection.tsx +0 -0
- package/mobile/src/components/MobileAppTile/renderDescription.tsx +10 -0
- package/mobile/src/components/MobileAppTile/renderList.tsx +11 -0
- package/mobile/src/components/MortgageFiltration/MortgageFiltration.example.json +1 -1
- package/mobile/src/components/MortgageFiltration/MortgageFiltration.tsx +6 -1
- package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +2 -1
- package/mobile/src/components/ParagraphBlock/ParagraphBlock.tsx +1 -1
- package/mobile/src/components/PictureText/PictureText.tsx +13 -34
- package/mobile/src/components/PictureText/PictureTextContent.ts +2 -8
- package/mobile/src/components/PictureText/renderInsuranceSumMonth.tsx +14 -21
- package/mobile/src/components/Placeholder/Placeholder.tsx +13 -24
- package/mobile/src/components/ProductBlock/ProductBlock.tsx +4 -3
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +3 -28
- package/mobile/src/components/ProductGallery/ProductGallery.tsx +19 -26
- package/mobile/src/components/ProductGallery/ProductGalleryContent.ts +2 -2
- package/mobile/src/components/ProductTile/ProductTile.tsx +1 -3
- package/mobile/src/components/PromoTile/PromoTile.tsx +10 -23
- package/mobile/src/components/PromoTile/PromoTileContent.ts +2 -3
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +1 -5
- package/mobile/src/components/RichTextBlock/RichTextBlock.tsx +1 -1
- package/mobile/src/components/RollupItem/RollupItem.tsx +3 -2
- package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +2 -2
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +2 -1
- package/mobile/src/components/SwipeListControlBlock/SwipeListControlBlock.tsx +7 -9
- package/mobile/src/components/Tabs/Tabs.tsx +1 -0
- package/mobile/src/components/TariffsTable/EmbeddableCellData.tsx +8 -12
- package/mobile/src/components/TariffsTable/TableTileHeader.tsx +3 -3
- package/mobile/src/components/TariffsTable/TariffsTable.tsx +11 -7
- package/mobile/src/components/TariffsTable/TariffsTableHorizontal.tsx +1 -1
- package/mobile/src/components/TariffsTable/TariffsTableTileCell.tsx +3 -4
- package/mobile/src/components/TextBlock/TextBlock.tsx +23 -28
- package/mobile/src/components/Tile/Tile.tsx +10 -64
- package/mobile/src/components/Tile/TileContent.ts +2 -20
- package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +1 -1
- package/mobile/src/components/Video/Video.tsx +2 -3
- package/mobile/src/content-page-repository/transformDocumentLink.ts +1 -1
- package/mobile/src/content-page-repository/transformImg.ts +1 -1
- package/mobile/src/model/Align.ts +5 -0
- package/mobile/src/model/AlignText.ts +3 -0
- package/mobile/src/model/AlignType.ts +2 -0
- package/mobile/src/model/HeadlineType.ts +11 -1
- package/mobile/src/model/JSXBlock.ts +13 -5
- package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +68 -0
- package/mobile/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +30 -0
- package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +72 -0
- package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +22 -22
- package/mobile/src/ui-kit/BenefitItem/BenefitItemContent.ts +19 -0
- package/mobile/src/ui-kit/BenefitsList/BenefitsList.tsx +35 -0
- package/mobile/src/ui-kit/BenefitsList/BenefitsListContent.ts +15 -0
- package/mobile/src/ui-kit/BenefitsList/renderBenefit.tsx +14 -0
- package/mobile/src/ui-kit/BlockWrapper.tsx +17 -5
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +1 -1
- package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +2 -2
- package/mobile/src/ui-kit/Heading/Heading.tsx +4 -1
- package/mobile/src/ui-kit/Icon/RoundedIcon.tsx +3 -3
- package/mobile/src/ui-kit/Img/Img.tsx +26 -2
- package/mobile/src/ui-kit/Img/ImgAsPicture.tsx +17 -30
- package/mobile/src/ui-kit/Img/ImgProps.ts +0 -1
- package/mobile/src/ui-kit/List/List.tsx +2 -1
- package/mobile/src/ui-kit/List/ListContent.ts +7 -0
- package/mobile/src/ui-kit/List/ListItem.tsx +1 -1
- package/mobile/src/ui-kit/List/ListProps.ts +0 -7
- package/mobile/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +4 -2
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControl.tsx +12 -3
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlContent.ts +20 -7
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
- package/mobile/src/ui-kit/Tags/Tags.tsx +15 -13
- package/mobile/src/utils/avg.ts +3 -0
- package/mobile/src/utils/deviation.ts +4 -0
- package/package.json +1 -1
- package/src/components/ApplicationForm/ApplicationForm.tsx +1 -2
- package/src/components/ApplicationForm/ResponseNotification.tsx +1 -1
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +6 -1
- package/src/components/Bonus/Bonus.tsx +1 -1
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +2 -1
- package/src/components/BusinessBlock/BusinessBlock.tsx +8 -10
- package/src/components/ButtonsBlock/ButtonsBlock.tsx +1 -1
- package/src/components/Calculator/Calculator.tsx +2 -1
- package/src/components/CardTransfer/CardTransfer.tsx +5 -1
- package/src/components/Carousel/Carousel.tsx +1 -8
- package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +1 -1
- package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +5 -1
- package/src/components/CarouselEventCard/CarouselEventCard.tsx +1 -1
- package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +9 -4
- package/src/components/CarouselLinks/CarouselLinks.tsx +24 -24
- package/src/components/CarouselProductCard/CarouselProductCard.tsx +10 -8
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +5 -1
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.tsx +2 -1
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +2 -1
- package/src/components/CarouselRichTextCard/CarouselRichTextCard.tsx +1 -1
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +2 -5
- package/src/components/ComparisonTable/ComparisonTable.tsx +6 -1
- package/src/components/ContactsBlock/ContactsBlock.tsx +9 -3
- package/src/components/DepositFiltration/DepositFiltration.example.json +1 -1
- package/src/components/DepositFiltration/DepositFiltration.fixture.tsx +1 -1
- package/src/components/DepositFiltration/DepositFiltration.tsx +6 -1
- package/src/components/ErrorBlock/ErrorBlock.tsx +2 -5
- package/src/components/ExchangeRateOffice/ExchangeRateOffice.tsx +4 -7
- package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +1 -1
- package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +8 -8
- package/src/components/Footer/Footer.mobile.tsx +2 -3
- package/src/components/Footer/Footer.tsx +2 -2
- package/src/components/GracePeriod/GracePeriod.tsx +1 -1
- package/src/components/Header/Header.mobile.tsx +2 -2
- package/src/components/Header/Header.tsx +1 -0
- package/src/components/Headline/Headline.tsx +7 -7
- package/src/components/Headline/HeadlineContent.ts +2 -4
- package/src/components/Headline/headlineVersionStyles.ts +9 -9
- package/src/components/HorizontalLayout/HorizontalLayout.tsx +2 -7
- package/src/components/ImgBlock/ImgBlock.tsx +1 -1
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +3 -1
- package/src/components/InvestmentInfo/InvestmentInfo.tsx +6 -6
- package/src/components/LinkDocs/LinkDocs.mobile.tsx +1 -3
- package/src/components/LinkDocs/LinkDocs.tsx +1 -1
- package/src/components/MobileAppTile/MobileAppTile.fixture.mobile.tsx +73 -2
- package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +2 -2
- package/src/components/MobileAppTile/MobileAppTile.tsx +23 -41
- package/src/components/MobileAppTile/renderButtonSection.tsx +0 -0
- package/src/components/MobileAppTile/renderDescription.tsx +10 -0
- package/src/components/MobileAppTile/renderList.tsx +11 -0
- package/src/components/MortgageFiltration/MortgageFiltration.example.json +1 -1
- package/src/components/MortgageFiltration/MortgageFiltration.fixture.tsx +1 -1
- package/src/components/MortgageFiltration/MortgageFiltration.tsx +6 -1
- package/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +2 -1
- package/src/components/ParagraphBlock/ParagraphBlock.tsx +1 -1
- package/src/components/PictureText/PictureText.tsx +13 -34
- package/src/components/PictureText/PictureTextContent.ts +2 -8
- package/src/components/PictureText/renderInsuranceSumMonth.tsx +14 -21
- package/src/components/Placeholder/Placeholder.tsx +13 -24
- package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +5 -2
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +6 -3
- package/src/components/ProductBlock/ProductBlock.tsx +4 -3
- package/src/components/ProductBlock/ProductBlockContent.ts +3 -28
- package/src/components/ProductGallery/ProductGallery.mobile.tsx +19 -26
- package/src/components/ProductGallery/ProductGallery.tsx +8 -4
- package/src/components/ProductGallery/ProductGalleryContent.ts +2 -2
- package/src/components/ProductTile/ProductTile.tsx +1 -3
- package/src/components/PromoTile/PromoTile.tsx +10 -23
- package/src/components/PromoTile/PromoTileContent.ts +2 -3
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +1 -5
- package/src/components/RichTextBlock/RichTextBlock.tsx +1 -1
- package/src/components/RollupItem/RollupItem.tsx +3 -2
- package/src/components/RollupItem/renderRoundedIcon.tsx +2 -1
- package/src/components/SafeDepositRental/SafeDepositRental.tsx +2 -2
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +2 -1
- package/src/components/StepsBlock/StepsBlock.tsx +2 -6
- package/src/components/SwipeListControlBlock/SwipeListControlBlock.tsx +7 -9
- package/src/components/Tabs/Tabs.tsx +1 -0
- package/src/components/TariffsTable/EmbeddableCellData.mobile.tsx +8 -12
- package/src/components/TariffsTable/TableTileHeader.tsx +3 -3
- package/src/components/TariffsTable/TariffsTable.mobile.tsx +11 -7
- package/src/components/TariffsTable/TariffsTable.tsx +3 -1
- package/src/components/TariffsTable/TariffsTableHorizontal.tsx +1 -1
- package/src/components/TariffsTable/TariffsTableTileCell.tsx +3 -4
- package/src/components/TextBlock/TextBlock.tsx +23 -28
- package/src/components/Tile/Tile.fixture.tsx +1 -6
- package/src/components/Tile/Tile.tsx +10 -64
- package/src/components/Tile/TileContent.ts +2 -20
- package/src/components/VerticalLayout/VerticalLayout.tsx +1 -1
- package/src/components/Video/Video.tsx +2 -3
- package/src/content-page-repository/transformDocumentLink.ts +1 -1
- package/src/content-page-repository/transformImg.ts +1 -1
- package/src/icons/IconName.ts +5 -381
- package/src/model/Align.ts +5 -0
- package/src/model/AlignText.ts +3 -0
- package/src/model/AlignType.ts +2 -0
- package/src/model/HeadlineType.ts +11 -1
- package/src/model/JSXBlock.ts +13 -5
- package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +68 -0
- package/src/ui-kit/BaseProductTile/BaseProductTileContent.ts +30 -0
- package/src/ui-kit/BaseTile/BaseTile.tsx +72 -0
- package/src/ui-kit/BenefitItem/BenefitItem.tsx +22 -22
- package/src/ui-kit/BenefitItem/BenefitItemContent.ts +19 -0
- package/src/ui-kit/BenefitsList/BenefitsList.tsx +35 -0
- package/src/ui-kit/BenefitsList/BenefitsListContent.ts +15 -0
- package/src/ui-kit/BenefitsList/renderBenefit.tsx +14 -0
- package/src/ui-kit/BlockWrapper.tsx +17 -5
- package/src/ui-kit/Button/Button.fixture.tsx +1 -1
- package/src/ui-kit/Button/ButtonInner.tsx +1 -1
- package/src/ui-kit/Button/renderButtonsSection.tsx +2 -2
- package/src/ui-kit/Heading/Heading.tsx +4 -1
- package/src/ui-kit/Icon/RoundedIcon.tsx +3 -3
- package/src/ui-kit/Img/Img.tsx +29 -1
- package/src/ui-kit/Img/ImgAsPicture.tsx +17 -30
- package/src/ui-kit/Img/ImgProps.ts +0 -1
- package/src/ui-kit/List/List.tsx +2 -1
- package/src/ui-kit/List/ListContent.ts +7 -0
- package/src/ui-kit/List/ListItem.tsx +1 -1
- package/src/ui-kit/List/ListProps.ts +0 -7
- package/src/ui-kit/SwipeListControl/SwipeListContainer.tsx +4 -2
- package/src/ui-kit/SwipeListControl/SwipeListControl.tsx +12 -3
- package/src/ui-kit/SwipeListControl/SwipeListControlContent.ts +20 -7
- package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +1 -1
- package/src/ui-kit/Tags/Tags.tsx +15 -13
- package/src/utils/avg.ts +3 -0
- package/src/utils/deviation.ts +4 -0
- package/tailwind.config.cjs +32 -12
- package/bundle/components/BaseTile/getTileHeadingType.d.ts +0 -1
- package/bundle/components/BaseTile/getTileMinHeight.d.ts +0 -1
- package/bundle/components/MobileAppTile/MobileAppTile.mobile.d.ts +0 -5
- package/bundle/components/PictureText/positionStyle.d.ts +0 -1
- package/bundle/components/PictureText/positionStyle.mobile.d.ts +0 -1
- package/bundle/components/PictureText/renderBenefit.d.ts +0 -4
- package/bundle/components/PictureText/styleInsuranceSum.d.ts +0 -1
- package/bundle/components/PictureText/styleInsuranceSum.mobile.d.ts +0 -1
- package/bundle/components/PictureText/styleValueBlock.d.ts +0 -2
- package/bundle/components/PictureText/styleValueBlock.mobile.d.ts +0 -2
- package/bundle/components/ProductBlock/ProductBlockInner.d.ts +0 -4
- package/bundle/components/ProductBlock/renderBenefit.d.ts +0 -5
- package/bundle/ui-kit/BenefitItem/BenefitItemProps.d.ts +0 -34
- package/bundle/ui-kit/Img/Img.mobile.d.ts +0 -2
- package/bundle/ui-kit/Img/ImgInner.d.ts +0 -2
- package/bundle/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +0 -27
- package/dist/components/BaseTile/BaseTile.js +0 -8
- package/dist/components/BaseTile/BaseTile.js.map +0 -1
- package/dist/components/BaseTile/getTileHeadingType.d.ts +0 -1
- package/dist/components/BaseTile/getTileHeadingType.js +0 -17
- package/dist/components/BaseTile/getTileHeadingType.js.map +0 -1
- package/dist/components/BaseTile/getTileMinHeight.d.ts +0 -1
- package/dist/components/BaseTile/getTileMinHeight.js +0 -17
- package/dist/components/BaseTile/getTileMinHeight.js.map +0 -1
- package/dist/components/BaseTile/getTileRightPadding.js.map +0 -1
- package/dist/components/MobileAppTile/MobileAppTile.mobile.d.ts +0 -5
- package/dist/components/MobileAppTile/MobileAppTile.mobile.js +0 -10
- package/dist/components/MobileAppTile/MobileAppTile.mobile.js.map +0 -1
- package/dist/components/PictureText/positionStyle.d.ts +0 -1
- package/dist/components/PictureText/positionStyle.js +0 -4
- package/dist/components/PictureText/positionStyle.js.map +0 -1
- package/dist/components/PictureText/positionStyle.mobile.d.ts +0 -1
- package/dist/components/PictureText/positionStyle.mobile.js +0 -4
- package/dist/components/PictureText/positionStyle.mobile.js.map +0 -1
- package/dist/components/PictureText/renderBenefit.d.ts +0 -4
- package/dist/components/PictureText/renderBenefit.js +0 -26
- package/dist/components/PictureText/renderBenefit.js.map +0 -1
- package/dist/components/PictureText/styleInsuranceSum.d.ts +0 -1
- package/dist/components/PictureText/styleInsuranceSum.js +0 -4
- package/dist/components/PictureText/styleInsuranceSum.js.map +0 -1
- package/dist/components/PictureText/styleInsuranceSum.mobile.d.ts +0 -1
- package/dist/components/PictureText/styleInsuranceSum.mobile.js +0 -4
- package/dist/components/PictureText/styleInsuranceSum.mobile.js.map +0 -1
- package/dist/components/PictureText/styleValueBlock.d.ts +0 -2
- package/dist/components/PictureText/styleValueBlock.js +0 -5
- package/dist/components/PictureText/styleValueBlock.js.map +0 -1
- package/dist/components/PictureText/styleValueBlock.mobile.d.ts +0 -2
- package/dist/components/PictureText/styleValueBlock.mobile.js +0 -5
- package/dist/components/PictureText/styleValueBlock.mobile.js.map +0 -1
- package/dist/components/ProductBlock/ProductBlockInner.d.ts +0 -4
- package/dist/components/ProductBlock/ProductBlockInner.js +0 -17
- package/dist/components/ProductBlock/ProductBlockInner.js.map +0 -1
- package/dist/components/ProductBlock/renderBenefit.d.ts +0 -5
- package/dist/components/ProductBlock/renderBenefit.js +0 -7
- package/dist/components/ProductBlock/renderBenefit.js.map +0 -1
- package/dist/ui-kit/BenefitItem/BenefitItemProps.d.ts +0 -34
- package/dist/ui-kit/BenefitItem/BenefitItemProps.js.map +0 -1
- package/dist/ui-kit/Img/Img.mobile.d.ts +0 -2
- package/dist/ui-kit/Img/Img.mobile.js +0 -7
- package/dist/ui-kit/Img/Img.mobile.js.map +0 -1
- package/dist/ui-kit/Img/ImgInner.d.ts +0 -2
- package/dist/ui-kit/Img/ImgInner.js +0 -13
- package/dist/ui-kit/Img/ImgInner.js.map +0 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +0 -27
- package/dist/ui-kit/SwipeListControl/SwipeListControlProps.js.map +0 -1
- package/lib/components/BaseTile/BaseTile.js +0 -6
- package/lib/components/BaseTile/BaseTile.js.map +0 -1
- package/lib/components/BaseTile/getTileHeadingType.d.ts +0 -1
- package/lib/components/BaseTile/getTileHeadingType.js +0 -14
- package/lib/components/BaseTile/getTileHeadingType.js.map +0 -1
- package/lib/components/BaseTile/getTileMinHeight.d.ts +0 -1
- package/lib/components/BaseTile/getTileMinHeight.js +0 -14
- package/lib/components/BaseTile/getTileMinHeight.js.map +0 -1
- package/lib/components/BaseTile/getTileRightPadding.js.map +0 -1
- package/lib/components/MobileAppTile/MobileAppTile.mobile.d.ts +0 -5
- package/lib/components/MobileAppTile/MobileAppTile.mobile.js +0 -8
- package/lib/components/MobileAppTile/MobileAppTile.mobile.js.map +0 -1
- package/lib/components/PictureText/positionStyle.d.ts +0 -1
- package/lib/components/PictureText/positionStyle.js +0 -2
- package/lib/components/PictureText/positionStyle.js.map +0 -1
- package/lib/components/PictureText/positionStyle.mobile.d.ts +0 -1
- package/lib/components/PictureText/positionStyle.mobile.js +0 -2
- package/lib/components/PictureText/positionStyle.mobile.js.map +0 -1
- package/lib/components/PictureText/renderBenefit.d.ts +0 -3
- package/lib/components/PictureText/renderBenefit.js +0 -23
- package/lib/components/PictureText/renderBenefit.js.map +0 -1
- package/lib/components/PictureText/styleInsuranceSum.d.ts +0 -1
- package/lib/components/PictureText/styleInsuranceSum.js +0 -2
- package/lib/components/PictureText/styleInsuranceSum.js.map +0 -1
- package/lib/components/PictureText/styleInsuranceSum.mobile.d.ts +0 -1
- package/lib/components/PictureText/styleInsuranceSum.mobile.js +0 -2
- package/lib/components/PictureText/styleInsuranceSum.mobile.js.map +0 -1
- package/lib/components/PictureText/styleValueBlock.d.ts +0 -2
- package/lib/components/PictureText/styleValueBlock.js +0 -3
- package/lib/components/PictureText/styleValueBlock.js.map +0 -1
- package/lib/components/PictureText/styleValueBlock.mobile.d.ts +0 -2
- package/lib/components/PictureText/styleValueBlock.mobile.js +0 -3
- package/lib/components/PictureText/styleValueBlock.mobile.js.map +0 -1
- package/lib/components/ProductBlock/ProductBlockInner.d.ts +0 -4
- package/lib/components/ProductBlock/ProductBlockInner.js +0 -15
- package/lib/components/ProductBlock/ProductBlockInner.js.map +0 -1
- package/lib/components/ProductBlock/renderBenefit.d.ts +0 -4
- package/lib/components/ProductBlock/renderBenefit.js +0 -4
- package/lib/components/ProductBlock/renderBenefit.js.map +0 -1
- package/lib/ui-kit/BenefitItem/BenefitItemProps.d.ts +0 -34
- package/lib/ui-kit/BenefitItem/BenefitItemProps.js +0 -2
- package/lib/ui-kit/BenefitItem/BenefitItemProps.js.map +0 -1
- package/lib/ui-kit/Img/Img.mobile.d.ts +0 -2
- package/lib/ui-kit/Img/Img.mobile.js +0 -5
- package/lib/ui-kit/Img/Img.mobile.js.map +0 -1
- package/lib/ui-kit/Img/ImgInner.d.ts +0 -2
- package/lib/ui-kit/Img/ImgInner.js +0 -11
- package/lib/ui-kit/Img/ImgInner.js.map +0 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +0 -27
- package/lib/ui-kit/SwipeListControl/SwipeListControlProps.js +0 -2
- package/lib/ui-kit/SwipeListControl/SwipeListControlProps.js.map +0 -1
- package/mobile/bundle/components/BaseTile/getTileHeadingType.d.ts +0 -1
- package/mobile/bundle/components/BaseTile/getTileMinHeight.d.ts +0 -1
- package/mobile/bundle/components/PictureText/positionStyle.d.ts +0 -1
- package/mobile/bundle/components/PictureText/renderBenefit.d.ts +0 -4
- package/mobile/bundle/components/PictureText/styleInsuranceSum.d.ts +0 -1
- package/mobile/bundle/components/PictureText/styleValueBlock.d.ts +0 -2
- package/mobile/bundle/components/ProductBlock/ProductBlockInner.d.ts +0 -4
- package/mobile/bundle/components/ProductBlock/renderBenefit.d.ts +0 -5
- package/mobile/bundle/ui-kit/BenefitItem/BenefitItemProps.d.ts +0 -34
- package/mobile/bundle/ui-kit/Img/ImgInner.d.ts +0 -2
- package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +0 -27
- package/mobile/dist/components/BaseTile/BaseTile.d.ts +0 -12
- package/mobile/dist/components/BaseTile/BaseTile.js +0 -8
- package/mobile/dist/components/BaseTile/BaseTile.js.map +0 -1
- package/mobile/dist/components/BaseTile/getTileHeadingType.d.ts +0 -1
- package/mobile/dist/components/BaseTile/getTileHeadingType.js +0 -17
- package/mobile/dist/components/BaseTile/getTileHeadingType.js.map +0 -1
- package/mobile/dist/components/BaseTile/getTileMinHeight.d.ts +0 -1
- package/mobile/dist/components/BaseTile/getTileMinHeight.js +0 -17
- package/mobile/dist/components/BaseTile/getTileMinHeight.js.map +0 -1
- package/mobile/dist/components/BaseTile/getTileRightPadding.js.map +0 -1
- package/mobile/dist/components/PictureText/positionStyle.d.ts +0 -1
- package/mobile/dist/components/PictureText/positionStyle.js +0 -4
- package/mobile/dist/components/PictureText/positionStyle.js.map +0 -1
- package/mobile/dist/components/PictureText/renderBenefit.d.ts +0 -4
- package/mobile/dist/components/PictureText/renderBenefit.js +0 -26
- package/mobile/dist/components/PictureText/renderBenefit.js.map +0 -1
- package/mobile/dist/components/PictureText/styleInsuranceSum.d.ts +0 -1
- package/mobile/dist/components/PictureText/styleInsuranceSum.js +0 -4
- package/mobile/dist/components/PictureText/styleInsuranceSum.js.map +0 -1
- package/mobile/dist/components/PictureText/styleValueBlock.d.ts +0 -2
- package/mobile/dist/components/PictureText/styleValueBlock.js +0 -5
- package/mobile/dist/components/PictureText/styleValueBlock.js.map +0 -1
- package/mobile/dist/components/ProductBlock/ProductBlockInner.d.ts +0 -4
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js +0 -17
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +0 -1
- package/mobile/dist/components/ProductBlock/renderBenefit.d.ts +0 -5
- package/mobile/dist/components/ProductBlock/renderBenefit.js +0 -7
- package/mobile/dist/components/ProductBlock/renderBenefit.js.map +0 -1
- package/mobile/dist/ui-kit/BenefitItem/BenefitItemProps.d.ts +0 -34
- package/mobile/dist/ui-kit/BenefitItem/BenefitItemProps.js.map +0 -1
- package/mobile/dist/ui-kit/Img/ImgInner.d.ts +0 -2
- package/mobile/dist/ui-kit/Img/ImgInner.js +0 -13
- package/mobile/dist/ui-kit/Img/ImgInner.js.map +0 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +0 -27
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlProps.js.map +0 -1
- package/mobile/lib/components/BaseTile/BaseTile.d.ts +0 -12
- package/mobile/lib/components/BaseTile/BaseTile.js +0 -6
- package/mobile/lib/components/BaseTile/BaseTile.js.map +0 -1
- package/mobile/lib/components/BaseTile/getTileHeadingType.d.ts +0 -1
- package/mobile/lib/components/BaseTile/getTileHeadingType.js +0 -14
- package/mobile/lib/components/BaseTile/getTileHeadingType.js.map +0 -1
- package/mobile/lib/components/BaseTile/getTileMinHeight.d.ts +0 -1
- package/mobile/lib/components/BaseTile/getTileMinHeight.js +0 -14
- package/mobile/lib/components/BaseTile/getTileMinHeight.js.map +0 -1
- package/mobile/lib/components/BaseTile/getTileRightPadding.js.map +0 -1
- package/mobile/lib/components/PictureText/positionStyle.d.ts +0 -1
- package/mobile/lib/components/PictureText/positionStyle.js +0 -2
- package/mobile/lib/components/PictureText/positionStyle.js.map +0 -1
- package/mobile/lib/components/PictureText/renderBenefit.d.ts +0 -4
- package/mobile/lib/components/PictureText/renderBenefit.js +0 -23
- package/mobile/lib/components/PictureText/renderBenefit.js.map +0 -1
- package/mobile/lib/components/PictureText/styleInsuranceSum.d.ts +0 -1
- package/mobile/lib/components/PictureText/styleInsuranceSum.js +0 -2
- package/mobile/lib/components/PictureText/styleInsuranceSum.js.map +0 -1
- package/mobile/lib/components/PictureText/styleValueBlock.d.ts +0 -2
- package/mobile/lib/components/PictureText/styleValueBlock.js +0 -3
- package/mobile/lib/components/PictureText/styleValueBlock.js.map +0 -1
- package/mobile/lib/components/ProductBlock/ProductBlockInner.d.ts +0 -4
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js +0 -15
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +0 -1
- package/mobile/lib/components/ProductBlock/renderBenefit.d.ts +0 -5
- package/mobile/lib/components/ProductBlock/renderBenefit.js +0 -4
- package/mobile/lib/components/ProductBlock/renderBenefit.js.map +0 -1
- package/mobile/lib/ui-kit/BenefitItem/BenefitItemProps.d.ts +0 -34
- package/mobile/lib/ui-kit/BenefitItem/BenefitItemProps.js +0 -2
- package/mobile/lib/ui-kit/BenefitItem/BenefitItemProps.js.map +0 -1
- package/mobile/lib/ui-kit/Img/ImgInner.d.ts +0 -2
- package/mobile/lib/ui-kit/Img/ImgInner.js +0 -11
- package/mobile/lib/ui-kit/Img/ImgInner.js.map +0 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +0 -27
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlProps.js +0 -2
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlProps.js.map +0 -1
- package/mobile/src/components/BaseTile/BaseTile.tsx +0 -43
- package/mobile/src/components/BaseTile/getTileHeadingType.ts +0 -12
- package/mobile/src/components/BaseTile/getTileMinHeight.ts +0 -12
- package/mobile/src/components/PictureText/positionStyle.tsx +0 -1
- package/mobile/src/components/PictureText/renderBenefit.tsx +0 -34
- package/mobile/src/components/PictureText/styleInsuranceSum.tsx +0 -1
- package/mobile/src/components/PictureText/styleValueBlock.tsx +0 -2
- package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +0 -63
- package/mobile/src/components/ProductBlock/renderBenefit.tsx +0 -9
- package/mobile/src/ui-kit/BenefitItem/BenefitItemProps.ts +0 -38
- package/mobile/src/ui-kit/Img/ImgInner.tsx +0 -30
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlProps.ts +0 -31
- package/src/components/BaseTile/BaseTile.tsx +0 -43
- package/src/components/BaseTile/getTileHeadingType.ts +0 -12
- package/src/components/BaseTile/getTileMinHeight.ts +0 -12
- package/src/components/MobileAppTile/MobileAppTile.mobile.tsx +0 -33
- package/src/components/PictureText/positionStyle.mobile.tsx +0 -1
- package/src/components/PictureText/positionStyle.tsx +0 -1
- package/src/components/PictureText/renderBenefit.tsx +0 -34
- package/src/components/PictureText/styleInsuranceSum.mobile.tsx +0 -1
- package/src/components/PictureText/styleInsuranceSum.tsx +0 -1
- package/src/components/PictureText/styleValueBlock.mobile.tsx +0 -2
- package/src/components/PictureText/styleValueBlock.tsx +0 -2
- package/src/components/ProductBlock/ProductBlockInner.tsx +0 -63
- package/src/components/ProductBlock/renderBenefit.tsx +0 -9
- package/src/ui-kit/BenefitItem/BenefitItemProps.ts +0 -38
- package/src/ui-kit/Img/Img.mobile.tsx +0 -5
- package/src/ui-kit/Img/ImgInner.tsx +0 -30
- package/src/ui-kit/SwipeListControl/SwipeListControlProps.ts +0 -31
- /package/bundle/{components → ui-kit}/BaseTile/getTileRightPadding.d.ts +0 -0
- /package/dist/{components → ui-kit}/BaseTile/getTileRightPadding.d.ts +0 -0
- /package/dist/{components → ui-kit}/BaseTile/getTileRightPadding.js +0 -0
- /package/lib/{components → ui-kit}/BaseTile/getTileRightPadding.d.ts +0 -0
- /package/lib/{components → ui-kit}/BaseTile/getTileRightPadding.js +0 -0
- /package/mobile/bundle/{components → ui-kit}/BaseTile/getTileRightPadding.d.ts +0 -0
- /package/mobile/dist/{components → ui-kit}/BaseTile/getTileRightPadding.d.ts +0 -0
- /package/mobile/dist/{components → ui-kit}/BaseTile/getTileRightPadding.js +0 -0
- /package/mobile/lib/{components → ui-kit}/BaseTile/getTileRightPadding.d.ts +0 -0
- /package/mobile/lib/{components → ui-kit}/BaseTile/getTileRightPadding.js +0 -0
- /package/mobile/src/{components → ui-kit}/BaseTile/getTileRightPadding.ts +0 -0
- /package/src/{components → ui-kit}/BaseTile/getTileRightPadding.ts +0 -0
package/bundle/bundle.umd.js
CHANGED
|
@@ -337,16 +337,16 @@
|
|
|
337
337
|
transparent: 'bg-transparent text-primary-text',
|
|
338
338
|
'': '',
|
|
339
339
|
};
|
|
340
|
-
const BlockWrapper = JSX(({ className, version = 'primary', isTheme = true, block, tag = 'section', role, children }) => {
|
|
340
|
+
const BlockWrapper = JSX(({ className, version = 'primary', isTheme = true, defaultPadding = 'p-m', padding, block, tag = 'section', role, children, }) => {
|
|
341
341
|
const Tag = tag;
|
|
342
342
|
const ref = useBlockIntersectionObserver(block);
|
|
343
343
|
const [isHidden, setHidden] = useState(false);
|
|
344
344
|
useEffect(() => defaultEventBus.subscribe('tab', (event) => {
|
|
345
345
|
setHidden(Boolean(event.label && block?.labels?.length && !block.labels.includes(event.label)));
|
|
346
346
|
}), [block]);
|
|
347
|
-
|
|
347
|
+
const isGroup = version && isTheme;
|
|
348
|
+
return (jsx(Tag, { className: style('font-sans', isGroup ? 'group' : '', blockStyles[version], isHidden ? 'hidden' : '', padding || defaultPadding, className), ...(isGroup ? { 'data-ver': version } : {}), ...(block?.anchor ? { id: block.anchor, ref } : {}), role: role, children: children }));
|
|
348
349
|
});
|
|
349
|
-
const groupStyle = (isGroup) => (isGroup ? 'group' : '');
|
|
350
350
|
|
|
351
351
|
const headingTag = (tag) => tag;
|
|
352
352
|
|
|
@@ -361,7 +361,7 @@
|
|
|
361
361
|
};
|
|
362
362
|
const Heading = JSX(({ className = '', headingType = 'h3', as = 'h3', title, children }) => {
|
|
363
363
|
const Tag = headingTag(as);
|
|
364
|
-
return (jsx(Tag, { className:
|
|
364
|
+
return (jsx(Tag, { className: style('font-sans m-0', styles$4[headingType], className), children: title || children }));
|
|
365
365
|
});
|
|
366
366
|
|
|
367
367
|
const identity = (_) => _;
|
|
@@ -626,7 +626,7 @@
|
|
|
626
626
|
if (version === 'link') {
|
|
627
627
|
return '';
|
|
628
628
|
}
|
|
629
|
-
const withTextStyle = `${aboveText ? 'py-2.5 px-
|
|
629
|
+
const withTextStyle = `${aboveText ? 'py-2.5 px-9' : 'py-4 px-9'}`;
|
|
630
630
|
return [
|
|
631
631
|
'group/btn items-center justify-center',
|
|
632
632
|
isWithText(props) ? withTextStyle : 'h-12 w-12',
|
|
@@ -1044,39 +1044,32 @@
|
|
|
1044
1044
|
});
|
|
1045
1045
|
|
|
1046
1046
|
const sourcesComparator = (a, b) => a?.media && b?.media ? a.media - b.media : 0;
|
|
1047
|
-
const ImgAsPicture = JSX(({ className = '', image, imageClassName = '',
|
|
1047
|
+
const ImgAsPicture = JSX(({ className = '', image, imageClassName = '', pathPrefix }) => {
|
|
1048
1048
|
const router = useRouter();
|
|
1049
|
-
|
|
1050
|
-
return (jsxs("picture", { className: `${pictureStyles} ${className}`, children: [image?.sources?.length
|
|
1049
|
+
return (jsxs("picture", { className: className, children: [image?.sources?.length
|
|
1051
1050
|
? image.sources
|
|
1052
1051
|
.filter((_) => _?.src)
|
|
1053
1052
|
.sort(sourcesComparator)
|
|
1054
1053
|
.map(({ src, format, media }, index) => (jsx("source", { srcSet: adjustSrc(router, pathPrefix)(src), type: formatToMimeType(format), media: media ? `(max-width: ${media}px)` : '', ...image.size }, `${index}_${src}`)))
|
|
1055
1054
|
: null, image?.src
|
|
1056
|
-
? renderImg({ ...image, src: adjustSrc(router, pathPrefix)(image.src) }, imageClassName
|
|
1055
|
+
? renderImg({ ...image, src: adjustSrc(router, pathPrefix)(image.src) }, imageClassName)
|
|
1057
1056
|
: null] }));
|
|
1058
1057
|
});
|
|
1059
|
-
const renderImg = (image, imageClassName = '',
|
|
1060
|
-
const style = {
|
|
1058
|
+
const renderImg = (image, imageClassName = '') => (jsx("img", { src: image.src, className: style('object-contain', imageClassName), alt: image.alt || image.title, title: image.title || '', style: {
|
|
1061
1059
|
width: image.size?.width ? `${image.size?.width}px` : '100%',
|
|
1062
1060
|
height: image.size?.height ? `${image.size?.height}px` : 'auto',
|
|
1063
|
-
};
|
|
1064
|
-
const title = image.title || '';
|
|
1065
|
-
const alt = image.alt || image.title;
|
|
1066
|
-
const imgStyle = isMobile ? 'm-auto' : 'm-0';
|
|
1067
|
-
return (jsx("img", { src: image.src, className: `${imgStyle} ${imageClassName}`, alt: alt, title: title, style: style, ...image.size }));
|
|
1068
|
-
};
|
|
1061
|
+
}, ...image.size }));
|
|
1069
1062
|
const adjustSrc = (router, pathPrefix) => (src) => src && !isURL(src) ? adjustHref(router)(joinPath(pathPrefix, src)) : src;
|
|
1070
1063
|
const formatToMimeType = (format) => format ? `image/${String(format)}` : undefined;
|
|
1071
1064
|
|
|
1072
|
-
const
|
|
1065
|
+
const Img = JSX(({ className = '', image, imageClassName = '', pathPrefix, ...iconProps }) => {
|
|
1073
1066
|
if (!image?.src && !image?.icon) {
|
|
1074
1067
|
return null;
|
|
1075
1068
|
}
|
|
1076
|
-
return image.icon ? (jsx(Icon, { className: className, imageClassName: imageClassName, iconVersion: image?.iconVersion, name: image.icon, ...iconProps })) : (jsx(ImgAsPicture, { className: className, imageClassName: imageClassName, image: image,
|
|
1069
|
+
return image.icon ? (jsx(Icon, { className: className, imageClassName: imageClassName, iconVersion: image?.iconVersion, name: image.icon, ...iconProps })) : (jsx(ImgAsPicture, { className: className, imageClassName: imageClassName, image: image, pathPrefix: pathPrefix }));
|
|
1077
1070
|
});
|
|
1078
1071
|
|
|
1079
|
-
const renderContacts = () => (jsxs("div", { className: "flex", children: [jsxs("a", { className: "flex items-center text-primary-text no-underline mr-6", href: `tel:8 (800) 200-78-70`, "aria-label": "8 (800) 200-78-70", children: [jsx(
|
|
1072
|
+
const renderContacts = () => (jsxs("div", { className: "flex", children: [jsxs("a", { className: "flex items-center text-primary-text no-underline mr-6", href: `tel:8 (800) 200-78-70`, "aria-label": "8 (800) 200-78-70", children: [jsx(Img, { image: { icon: 'PhoneIcon' }, width: "24", height: "24", className: "mr-3" }), jsx("span", { children: "8 (800) 200-78-70" })] }), jsxs("a", { className: "flex items-center text-primary-text no-underline", "aria-label": "ved@rshb.ru", href: `mailto:ved@rshb.ru`, children: [jsx(Img, { image: { icon: 'MailIcon' }, width: "24", height: "24", className: "mr-3" }), jsx("span", { children: "ved@rshb.ru" })] })] }));
|
|
1080
1073
|
|
|
1081
1074
|
const SVG = JSX(({ className, viewBox, fill = 'none', width, height, paths, ...commonOptions }) => {
|
|
1082
1075
|
return (jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: className, viewBox: viewBox, fill: fill, width: width, height: height, children: paths.map(({ d, fill: pathFill, ...options }, i) => (jsx("path", { d: d, fill: pathFill || 'currentColor', ...commonOptions, ...options }, i))) }));
|
|
@@ -1146,8 +1139,8 @@
|
|
|
1146
1139
|
|
|
1147
1140
|
const ResponseNotification = JSX(({ responseType }) => {
|
|
1148
1141
|
const responseOK = responseType === 'OK';
|
|
1149
|
-
const backgroundColor = responseOK ? 'bg-
|
|
1150
|
-
return (jsxs("div", { className: `flex items-center mt-5 p-5 rounded-md ${backgroundColor}`, children: [responseOK ? (jsx(
|
|
1142
|
+
const backgroundColor = responseOK ? 'bg-ok' : 'bg-fail';
|
|
1143
|
+
return (jsxs("div", { className: `flex items-center mt-5 p-5 rounded-md ${backgroundColor}`, children: [responseOK ? (jsx(Img, { image: { icon: 'ResponceOKIcon' }, width: "42", height: "42", className: "mr-4" })) : (jsx(Img, { image: { icon: 'ResponceFailIcon' }, width: "37", height: "34", className: "mr-4" })), jsxs("div", { children: [jsx(Heading, { headingType: "h6", title: responseOK ? 'Ваша заявка отправлена' : 'Не удалось отправить заявку', className: "mb-1" }), jsx(Text, { size: "text-l-light", color: "text-secondary-text", children: responseOK ? 'Совсем скоро мы с вами свяжемся' : 'Пожалуйста, повторите позднее' })] })] }));
|
|
1151
1144
|
});
|
|
1152
1145
|
|
|
1153
1146
|
const COMPONENTS_MAP = {
|
|
@@ -1166,13 +1159,13 @@
|
|
|
1166
1159
|
setResponseType(status);
|
|
1167
1160
|
return status;
|
|
1168
1161
|
}, []);
|
|
1169
|
-
return (jsx(BlockWrapper, { className:
|
|
1162
|
+
return (jsx(BlockWrapper, { className: className, defaultPadding: "p-default", ...rest, children: jsxs("div", { className: "container max-w-[978px]", children: [title ? jsx(Heading, { headingType: "h3", title: title, className: "text-center mb-8" }) : null, COMPONENTS_MAP[typeForm]({ button, link, onSubmit: handleSubmit }), responseType ? jsx(ResponseNotification, { responseType: responseType }) : null] }) }));
|
|
1170
1163
|
});
|
|
1171
1164
|
|
|
1172
|
-
const BenefitsBlock = JSX(({ className = '', title, benefitList, ...rest }) => (jsxs(BlockWrapper, { className:
|
|
1165
|
+
const BenefitsBlock = JSX(({ className = '', title, benefitList, ...rest }) => (jsxs(BlockWrapper, { className: style('flex flex-col items-center', className), defaultPadding: "p-default", ...rest, children: [title ? (jsx(Heading, { headingType: "h3", as: "h2", className: "max-w-[47rem] text-center", title: title })) : null, benefitList?.length ? (jsx("div", { className: "flex flex-wrap w-full justify-center gap-x-20 mt-8", children: benefitList.map(renderStep$1) })) : null] })));
|
|
1173
1166
|
const renderStep$1 = (benefit, i) => {
|
|
1174
1167
|
const description = benefit.description;
|
|
1175
|
-
return (jsxs("div", { className: "flex items-center basis-1/2 max-w-[500px] mb-14", children: [benefit?.icon?.icon ? (jsx(
|
|
1168
|
+
return (jsxs("div", { className: "flex items-center basis-1/2 max-w-[500px] mb-14", children: [benefit?.icon?.icon ? (jsx(Img, { className: "w-12 h-12 min-w-12 p-3 rounded-icon bg-main-divider text-primary-main group-data-secondary:bg-white/30 group-data-secondary:text-black", image: benefit.icon })) : null, benefit?.icon?.src ? jsx(Img, { image: benefit.icon }) : null, jsxs("div", { className: "ml-5 h-full", children: [benefit?.label ? jsx(Heading, { headingType: "h6", children: benefit.label }) : null, renderDescription$4(description)] })] }, String(i)));
|
|
1176
1169
|
};
|
|
1177
1170
|
const renderDescription$4 = (description) => {
|
|
1178
1171
|
const benefitType = description?.benefitType || null;
|
|
@@ -1186,7 +1179,7 @@
|
|
|
1186
1179
|
return description?.items && description.items.length > 0 ? (jsx("ul", { className: listStyleType, children: description.items.map((_, i) => (jsx("li", { children: _ }, `benefitListItem-${i}`))) })) : null;
|
|
1187
1180
|
};
|
|
1188
1181
|
|
|
1189
|
-
const renderButtonsSection = (buttons, { className
|
|
1182
|
+
const renderButtonsSection = (buttons, { className, buttonClassName, isVertical } = {}) => buttons?.length && buttons.some((_) => _?.text || _?.icon?.icon) ? (jsx("div", { className: style('flex', isVertical ? 'flex-col gap-xs justify-items-stretch' : 'flex-wrap gap-s', className), children: buttons.map(renderButton(buttonClassName)) })) : null;
|
|
1190
1183
|
const renderButton = (buttonClassName = '') => (button, index) => {
|
|
1191
1184
|
const { text, icon, iconRight, version, ...rest } = button || {};
|
|
1192
1185
|
const iconVersionDefault = version === 'secondary' ? 'color' : 'white';
|
|
@@ -1194,38 +1187,38 @@
|
|
|
1194
1187
|
return text || icon?.icon ? (jsx(Button, { className: style('basis-full sm:basis-auto', buttonClassName), appendLeft: renderButtonIcon({ ...icon, iconVersion }), appendRight: renderButtonIcon({ ...iconRight, iconVersion }), version: version, text: text, ...rest }, index ? String(index) : '')) : null;
|
|
1195
1188
|
};
|
|
1196
1189
|
const DEFAULT_ICON_W = 24;
|
|
1197
|
-
const renderButtonIcon = (icon) => icon?.icon || icon?.src ? (jsx(
|
|
1190
|
+
const renderButtonIcon = (icon) => icon?.icon || icon?.src ? (jsx(Img, { image: icon, width: String(icon?.size?.width || DEFAULT_ICON_W), height: String(DEFAULT_ICON_W) })) : null;
|
|
1198
1191
|
|
|
1199
1192
|
const headlineVersionStyles = {
|
|
1200
1193
|
XXL: {
|
|
1201
1194
|
title: { headingType: 'h0', as: 'h1' },
|
|
1202
1195
|
descriptionSize: 'text-h5',
|
|
1203
|
-
descriptionStyle: 'mt-
|
|
1196
|
+
descriptionStyle: 'mt-m',
|
|
1204
1197
|
},
|
|
1205
1198
|
XL: {
|
|
1206
1199
|
title: { headingType: 'h1', as: 'h1' },
|
|
1207
1200
|
descriptionSize: 'text-xl-light',
|
|
1208
|
-
descriptionStyle: 'mt-
|
|
1201
|
+
descriptionStyle: 'mt-s',
|
|
1209
1202
|
},
|
|
1210
1203
|
L: {
|
|
1211
1204
|
title: { headingType: 'h2', as: 'h2' },
|
|
1212
1205
|
descriptionSize: 'text-xl-light',
|
|
1213
|
-
descriptionStyle: 'mt-
|
|
1206
|
+
descriptionStyle: 'mt-s',
|
|
1214
1207
|
},
|
|
1215
1208
|
M: {
|
|
1216
|
-
title: { headingType: 'h3', as: '
|
|
1209
|
+
title: { headingType: 'h3', as: 'h2' },
|
|
1217
1210
|
descriptionSize: 'text-xl-light',
|
|
1218
|
-
descriptionStyle: 'mt-
|
|
1211
|
+
descriptionStyle: 'mt-text',
|
|
1219
1212
|
},
|
|
1220
1213
|
S: {
|
|
1221
|
-
title: { headingType: 'h4', as: '
|
|
1214
|
+
title: { headingType: 'h4', as: 'h2' },
|
|
1222
1215
|
descriptionSize: 'text-xl-light',
|
|
1223
|
-
descriptionStyle: 'mt-
|
|
1216
|
+
descriptionStyle: 'mt-xs',
|
|
1224
1217
|
},
|
|
1225
1218
|
XS: {
|
|
1226
|
-
title: { headingType: 'h5', as: '
|
|
1219
|
+
title: { headingType: 'h5', as: 'h2' },
|
|
1227
1220
|
descriptionSize: 'text-l-light',
|
|
1228
|
-
descriptionStyle: 'mt-
|
|
1221
|
+
descriptionStyle: 'mt-xs',
|
|
1229
1222
|
},
|
|
1230
1223
|
};
|
|
1231
1224
|
// TODO Move to Gallery and rename
|
|
@@ -1240,16 +1233,15 @@
|
|
|
1240
1233
|
XS: 'text-xs-light',
|
|
1241
1234
|
};
|
|
1242
1235
|
|
|
1243
|
-
const Headline = JSX(({ className,
|
|
1236
|
+
const Headline = JSX(({ className, version = '', headlineVersion = 'XL', title, description, align = 'text-center', as, isPadding = true, isTheme = false, ...rest }) => {
|
|
1244
1237
|
const versionStyle = headlineVersionStyles[headlineVersion];
|
|
1245
|
-
const paddingStyle = isPadding ? 'p-default' : '';
|
|
1246
1238
|
const descriptionStyle = { marginTop: versionStyle.descriptionStyle };
|
|
1247
|
-
return (jsxs(BlockWrapper, { className:
|
|
1239
|
+
return (jsxs(BlockWrapper, { className: className, defaultPadding: isPadding ? 'p-default' : '', version: version, isTheme: isTheme, ...rest, children: [title ? (jsx(Heading, { className: style('whitespace-pre-wrap', align), ...versionStyle?.title, as: as || versionStyle?.title.as, title: title })) : null, description ? (jsx(Paragraph, { size: versionStyle.descriptionSize, align: align, ...descriptionStyle, children: description })) : null] }));
|
|
1248
1240
|
});
|
|
1249
1241
|
|
|
1250
1242
|
const Bonus = JSX((props) => {
|
|
1251
1243
|
const { className = '', title, description, bonusItems, ...rest } = props;
|
|
1252
|
-
return (jsx(BlockWrapper, { className:
|
|
1244
|
+
return (jsx(BlockWrapper, { className: className, defaultPadding: "p-default", ...rest, children: jsxs("div", { className: "container", children: [jsx(Headline, { className: "!p-0", title: title, description: description, headlineVersion: "M" }), jsx("div", { className: "flex flex-wrap w-full mt-9", children: bonusItems?.length
|
|
1253
1245
|
? bonusItems.map((_, i) => (jsxs("div", { className: "flex-grow w-[49%] border border-gray p-9 mb-3 mx-2 even:mr-0 odd:ml-0 last:odd:mx-0", children: [_?.title ? jsx(Text, { size: "text-h4", children: _.title }) : null, _?.description ? (jsx("div", { className: "mt-2", children: jsx(Paragraph, { size: "text-xl", font: "font-light", children: _.description }) })) : null, jsxs("div", { className: "flex justify-between items-end mt-3", children: [renderButtonsSection(_?.buttons), _.bonusItemContent?.bonusType
|
|
1254
1246
|
? renderBonusItemContent(_.bonusItemContent)
|
|
1255
1247
|
: null] })] }, String(i))))
|
|
@@ -1259,17 +1251,20 @@
|
|
|
1259
1251
|
? renderBonusCount(bonusItemContent)
|
|
1260
1252
|
: renderBonusImage(bonusItemContent) }));
|
|
1261
1253
|
const renderBonusCount = (_) => (jsxs("div", { className: "relative -bottom-3 h-auto flex items-end mt-14 shrink-0", children: [_.bonusCount ? (jsx("span", { className: "font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7", children: _.bonusCount })) : null, _.bonusName ? (jsx("span", { className: "text-h2 bg-clip-text text-transparent bg-green-to-yellow", children: _.bonusName })) : null] }));
|
|
1262
|
-
const renderBonusImage = (_) => _.image ? jsx(
|
|
1254
|
+
const renderBonusImage = (_) => _.image ? jsx(Img, { className: `w-12 h-12 min-w-12 p-3 rounded-icon`, image: _.image }) : null;
|
|
1263
1255
|
|
|
1256
|
+
/**
|
|
1257
|
+
* @deprecated
|
|
1258
|
+
*/
|
|
1264
1259
|
const AlignText = {
|
|
1265
1260
|
left: 'text-left',
|
|
1266
1261
|
center: 'text-center',
|
|
1267
1262
|
right: 'text-right',
|
|
1268
1263
|
};
|
|
1269
1264
|
|
|
1270
|
-
const BonusBenefitsBlock = JSX(({ bonusBenefits, cardTextAlign = 'center', className = '', columnsCount = '4', subtitle, title, ...rest }) => (jsxs(BlockWrapper, { className:
|
|
1265
|
+
const BonusBenefitsBlock = JSX(({ bonusBenefits, cardTextAlign = 'center', className = '', columnsCount = '4', subtitle, title, ...rest }) => (jsxs(BlockWrapper, { className: style('flex flex-col text-center', className), defaultPadding: "p-default", ...rest, children: [jsx(Headline, { className: "!p-0 mb-8", title: title, description: subtitle, headlineVersion: "M" }), bonusBenefits?.length ? (jsx("div", { className: `grid gap-1 ${AlignText[cardTextAlign]} ${getElementsColsValue(columnsCount)}`, children: bonusBenefits.map(renderBonusBenefit) })) : null] })));
|
|
1271
1266
|
const renderBonusBenefit = ({ icon, title, description }, i) => {
|
|
1272
|
-
return (jsxs("div", { className: style('flex flex-col items-center text-h6', !description && !title ? 'justify-center' : ''), children: [title ? jsx("span", { children: title }) : null, icon ? jsx(
|
|
1267
|
+
return (jsxs("div", { className: style('flex flex-col items-center text-h6', !description && !title ? 'justify-center' : ''), children: [title ? jsx("span", { children: title }) : null, icon ? jsx(Img, { image: icon, height: "180", className: "w-auto" }) : null, description ? jsx("span", { children: description }) : null] }, String(i)));
|
|
1273
1268
|
};
|
|
1274
1269
|
const getElementsColsValue = (colValue) => {
|
|
1275
1270
|
switch (colValue) {
|
|
@@ -1286,16 +1281,16 @@
|
|
|
1286
1281
|
|
|
1287
1282
|
const BusinessCard = JSX((props) => {
|
|
1288
1283
|
const { title, image, cardItems, button } = props;
|
|
1289
|
-
return (jsxs("div", { className: "border-gray border p-9 w-1/2", children: [image ? (jsxs("div", { className: "flex justify-center", children: [image?.src ? jsx(
|
|
1284
|
+
return (jsxs("div", { className: "border-gray border p-9 w-1/2", children: [image ? (jsxs("div", { className: "flex justify-center", children: [image?.src ? jsx(Img, { className: "mb-5", image: image }) : null, image?.icon ? jsx(Img, { image: image }) : null] })) : null, title ? jsx(Heading, { headingType: "h4", title: title, className: "mb-6" }) : null, cardItems?.length ? jsx("ul", { children: cardItems.map((_, i) => renderItem(_, String(i))) }) : null, renderButtonsSection([button], { buttonClassName: 'mt-6' })] }));
|
|
1290
1285
|
});
|
|
1291
1286
|
const renderItem = (item, key) => {
|
|
1292
1287
|
const { icon, text } = item;
|
|
1293
|
-
return (jsxs("li", { className: "flex items-center gap-3.5 mb-3 last:mb-0", children: [icon?.icon ? (jsx(
|
|
1288
|
+
return (jsxs("li", { className: "flex items-center gap-3.5 mb-3 last:mb-0", children: [icon?.icon ? (jsx(Img, { image: icon, className: "w-12 h-12 min-w-12 p-3 rounded-icon bg-main-divider" })) : null, icon?.src ? jsx(Img, { image: icon }) : null, jsx("span", { className: "text-xl-light", children: text })] }, key));
|
|
1294
1289
|
};
|
|
1295
1290
|
|
|
1296
|
-
const BusinessBlock = JSX(({ className
|
|
1291
|
+
const BusinessBlock = JSX(({ className, title, cards, ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-default", ...rest, children: [jsx(Heading, { headingType: "h3", title: title, className: "text-center mb-8" }), jsx("div", { className: "flex gap-5", children: cards?.length ? cards.map((_, i) => jsx(BusinessCard, { ..._ }, String(i))) : null })] })));
|
|
1297
1292
|
|
|
1298
|
-
const ButtonsBlock = JSX(({ buttons, className, ...rest }) => (jsx(BlockWrapper, { className: style('!bg-transparent', className), ...rest, children: renderButtonsSection(buttons) })));
|
|
1293
|
+
const ButtonsBlock = JSX(({ buttons, className, ...rest }) => (jsx(BlockWrapper, { className: style('!bg-transparent', className), defaultPadding: "p-0", ...rest, children: renderButtonsSection(buttons) })));
|
|
1299
1294
|
|
|
1300
1295
|
const useCarouselControls = (props) => {
|
|
1301
1296
|
const { itemCount, visibleItemCount } = props;
|
|
@@ -1322,7 +1317,7 @@
|
|
|
1322
1317
|
|
|
1323
1318
|
const ArrowButton = JSX(({ className, disabled, ...rest }) => (jsx(Button, { rounded: true, className: `group/btn shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${disabled
|
|
1324
1319
|
? 'bg-secondary-light text-secondary-text'
|
|
1325
|
-
: 'bg-white text-primary-text hover:text-primary-main'} ${className || ''}`, disabled: disabled, ...rest, children: jsx(
|
|
1320
|
+
: 'bg-white text-primary-text hover:text-primary-main'} ${className || ''}`, disabled: disabled, ...rest, children: jsx(Img, { className: "w-4 h-4 min-w-4 min-h-4 rounded-full box-border", image: { icon: 'ArrowLeftIcon', iconVersion: 'black' }, imageClassName: "group-hover/btn:text-primary-main", width: "16", height: "16" }) })));
|
|
1326
1321
|
const ScrollLeftButton = JSX((props) => (jsx(ArrowButton, { ...props, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E", "data-block-control": "scroll-left" })));
|
|
1327
1322
|
const ScrollRightButton = JSX((props) => (jsx(ArrowButton, { ...props, className: `${props.className || ''} rotate-180`, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right" })));
|
|
1328
1323
|
|
|
@@ -1869,7 +1864,7 @@
|
|
|
1869
1864
|
itemCount: calculatorTabs?.length,
|
|
1870
1865
|
visibleItemCount: COLUMNS_FOR_SCROLL,
|
|
1871
1866
|
});
|
|
1872
|
-
return (jsxs(BlockWrapper, { className: style('box-border overflow-hidden relative
|
|
1867
|
+
return (jsxs(BlockWrapper, { className: style('box-border overflow-hidden relative', className), defaultPadding: "p-0", ...rest, children: [jsxs("div", { className: "bg-white", children: [tabsNav.length > 1
|
|
1873
1868
|
? renderTabs$1({ activeIndex, tabsNav, slideIndexShift, onClick: handleSlideIndexShift })
|
|
1874
1869
|
: null, renderArrows({
|
|
1875
1870
|
...controls,
|
|
@@ -1888,7 +1883,7 @@
|
|
|
1888
1883
|
const iconClassName = isActive ? '' : `text-primary-main`;
|
|
1889
1884
|
const iconVersion = tab?.icon?.iconVersion;
|
|
1890
1885
|
const activeIconStyle = isActive ? 'white' : 'normal';
|
|
1891
|
-
return (jsxs("button", { type: "button", onClick: onClick, "aria-label": tab?.title, className: style('box-border relative border border-gray cursor-pointer text-left border-b-0 flex hover:h-[88px]', btnClassName), children: [jsx(
|
|
1886
|
+
return (jsxs("button", { type: "button", onClick: onClick, "aria-label": tab?.title, className: style('box-border relative border border-gray cursor-pointer text-left border-b-0 flex hover:h-[88px]', btnClassName), children: [jsx(Img, { className: `h-6 w-6 min-w-6 min-h-6 mr-4 ${iconClassName}`, image: {
|
|
1892
1887
|
...tab?.icon,
|
|
1893
1888
|
iconVersion: iconVersion ?? activeIconStyle,
|
|
1894
1889
|
}, width: "24", height: "24" }), jsxs("div", { className: "border-0", children: [jsx("div", { className: btnTitleClassName, children: tab?.title }), jsx("div", { className: btnDescClassName, children: tab.description })] })] }, String(i)));
|
|
@@ -1933,7 +1928,7 @@
|
|
|
1933
1928
|
? getDisabledButtonClasses({ version: button?.version })
|
|
1934
1929
|
: getRegularButtonClasses({ className: 'text-white', version: button?.version });
|
|
1935
1930
|
const link = useLink();
|
|
1936
|
-
return (jsxs(BlockWrapper, { className: style('
|
|
1931
|
+
return (jsxs(BlockWrapper, { className: style('flex flex-col items-center', className), defaultPadding: "p-default", ...rest, children: [title ? (jsx(Heading, { className: "pb-5 xl:pb-9 self-start xl:self-center", headingType: "h2", title: title })) : null, jsxs("form", { className: "w-full xl:max-w-[468px]", method: "POST", action: FORM_URL, children: [jsx(CurrencyInput, { name: AMOUNT_KEY, valid: !isDisabled, placeholder: placeholder, label: label, ...field(AMOUNT_KEY, { parse: Number, format: String }) }), button?.text ? (jsx("button", { type: "submit", className: style('w-full p-4 mt-5 xl:mt-6', buttonStyle), disabled: isDisabled, ...link(button), children: button.text })) : null] })] }));
|
|
1937
1932
|
});
|
|
1938
1933
|
|
|
1939
1934
|
const defaultBlockDecorator = ({ blockClassName, block, render }) => render({ blockClassName, block });
|
|
@@ -2169,7 +2164,7 @@
|
|
|
2169
2164
|
});
|
|
2170
2165
|
const [dotsActiveIndex] = scroll.visibleIndicesRange;
|
|
2171
2166
|
const isBankHistoryCarousel = childBlocks && childBlocks[0]?.type === 'CarouselBankHistoryCard';
|
|
2172
|
-
return (jsx(BlockWrapper, { className:
|
|
2167
|
+
return (jsx(BlockWrapper, { className: className, defaultPadding: getPaddingStyle$1(isPadding), ...rest, children: jsxs("div", { className: style(getAlignStyle(isAlignCenter), 'relative max-w-full'), children: [jsx(SwipeListContainer, { containerRef: containerRef, visibleItemCount: visibleItemCount, snapAlign: "snap-start", gap: ITEMS_GAP, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, children: renderChildren({
|
|
2173
2168
|
...rest,
|
|
2174
2169
|
renderProps: isBankHistoryCarousel
|
|
2175
2170
|
? (block, options) => renderBlock$1(block, options, {
|
|
@@ -2199,7 +2194,7 @@
|
|
|
2199
2194
|
const CarouselBankHistoryCard = JSX(({ title, description, blocksLength = 0, activeIndex, options }) => {
|
|
2200
2195
|
const orderNumber = Number(options?.key?.split('-').slice(-1)[0]) || 0;
|
|
2201
2196
|
const isActive = orderNumber === activeIndex;
|
|
2202
|
-
return (jsx(BlockWrapper, { className: "flex h-[485px]", children: isActive ? (jsx("div", { className: "relative flex items-center w-full", children: jsx(Headline, { headlineVersion: "M", title: title, description: description, align: "text-left", className: style('absolute z-10 h-[385px] w-[440px] p-8 text-white shadow-dark-blue', getActiveBlockPosition(orderNumber, blocksLength), getBackgroundColor(orderNumber)) }) })) : (jsx("div", { className: "flex w-full items-center justify-center", children: jsx("div", { className: style('flex justify-center items-center h-[300px] w-[340px] font-mohave text-title-large tracking-[-0.03em]', getBackgroundColor(orderNumber)), children: jsx("span", { className: getTextColor(orderNumber), children: title }) }) })) }));
|
|
2197
|
+
return (jsx(BlockWrapper, { className: "flex h-[485px]", defaultPadding: "p-0", children: isActive ? (jsx("div", { className: "relative flex items-center w-full", children: jsx(Headline, { headlineVersion: "M", title: title, description: description, align: "text-left", className: style('absolute z-10 h-[385px] w-[440px] p-8 text-white shadow-dark-blue', getActiveBlockPosition(orderNumber, blocksLength), getBackgroundColor(orderNumber)) }) })) : (jsx("div", { className: "flex w-full items-center justify-center", children: jsx("div", { className: style('flex justify-center items-center h-[300px] w-[340px] font-mohave text-title-large tracking-[-0.03em]', getBackgroundColor(orderNumber)), children: jsx("span", { className: getTextColor(orderNumber), children: title }) }) })) }));
|
|
2203
2198
|
});
|
|
2204
2199
|
const getBackgroundColor = (orderNumber) => {
|
|
2205
2200
|
const division = orderNumber % 3;
|
|
@@ -2269,7 +2264,7 @@
|
|
|
2269
2264
|
black: 'bg-black',
|
|
2270
2265
|
white: 'bg-white',
|
|
2271
2266
|
};
|
|
2272
|
-
const CarouselCatalogCard = JSX(({ className = '', title, description, image, price, button, colors, ...rest }) => (jsxs(BlockWrapper, { className:
|
|
2267
|
+
const CarouselCatalogCard = JSX(({ className = '', title, description, image, price, button, colors, ...rest }) => (jsxs(BlockWrapper, { className: style('border box-border border-gray min-w-[392px] h-full flex flex-col justify-left', className), ...rest, children: [image?.src ? jsx(Img, { className: "mb-5 flex justify-center", image: image }) : null, title ? (jsx(Heading, { headingType: "h6", as: "h4", className: "text-left mb-1.5", title: title })) : null, description ? (jsx("div", { className: "mb-4", children: jsx(Paragraph, { size: "text-m", align: "text-left", font: "font-light", children: description }) })) : null, colors?.length ? (jsxs("div", { className: "flex mb-4 text-secondary-text", children: [jsx("div", { className: "mr-1.5", children: jsx(Text, { size: "text-s", align: "text-left", font: "font-light", children: "\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0446\u0432\u0435\u0442\u0430:" }) }), colors.map(renderColorOption)] })) : null, price ? (jsxs(Text, { size: "text-h3", align: "text-left", children: [price, "\u00A0\u20BD"] })) : null, renderButtonsSection([button], { buttonClassName: 'mt-5 w-full' })] })));
|
|
2273
2268
|
const renderColorOption = (color, i) => (jsx("div", { role: "figure", className: `w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${cardStyleMap[color]}` }, String(i)));
|
|
2274
2269
|
|
|
2275
2270
|
const LinkWrapper = JSX(({ className = '', href, target, isRemote = false, children }) => {
|
|
@@ -2280,18 +2275,23 @@
|
|
|
2280
2275
|
});
|
|
2281
2276
|
|
|
2282
2277
|
const CarouselEventCard = JSX(({ className = '', icon, title, description, href, target, ...rest }) => {
|
|
2283
|
-
return (jsx(BlockWrapper, { className: style('w-[365px]', className), ...rest, children: jsxs(LinkWrapper, { className: "flex flex-col", href: href, target: target, children: [icon?.icon ? jsx(
|
|
2278
|
+
return (jsx(BlockWrapper, { className: style('w-[365px]', className), defaultPadding: "p-0", ...rest, children: jsxs(LinkWrapper, { className: "flex flex-col", href: href, target: target, children: [icon?.icon ? jsx(Img, { image: icon }) : null, icon?.src ? jsx(Img, { image: icon }) : null, title ? (jsx(Heading, { headingType: "h6", as: "h4", className: "text-left pt-3 mb-2", title: title })) : null, description ? (jsx("div", { className: "mb-4", children: jsx(Text, { font: "font-light", size: "text-m", color: "text-secondary-text", children: description }) })) : null] }) }));
|
|
2284
2279
|
});
|
|
2285
2280
|
|
|
2286
|
-
const
|
|
2287
|
-
|
|
2281
|
+
const imageAlignmentMap = {
|
|
2282
|
+
start: 'self-start',
|
|
2283
|
+
center: 'self-center',
|
|
2284
|
+
end: 'self-end',
|
|
2285
|
+
};
|
|
2286
|
+
const BaseTile = JSX(({ className, defaultPadding, padding, title = '', insetTitle = '', buttons, leftImage, rightImage, imageAlign, backImage, children, }) => (jsxs("div", { className: style('relative flex flex-col gap-lg font-sans overflow-hidden', padding || defaultPadding, className), children: [backImage ? jsx("div", { className: "absolute bottom-0 right-0 z-0", children: backImage }) : null, title ? jsx("div", { className: "relative", children: title }) : null, jsxs("div", { className: "grow relative flex flex-wrap sm:flex-nowrap justify-between items-stretch gap-lg", children: [renderImageContainer(leftImage, { imageAlign }), jsxs("div", { className: style('flex flex-col gap-lg max-w-[600px] xl:max-w-[728px]', leftImage ? '' : 'grow'), children: [insetTitle, jsx("div", { className: "grow", children: children }), buttons] }), renderImageContainer(rightImage, { className: '-order-1 sm:order-1', imageAlign })] })] })));
|
|
2287
|
+
const renderImageContainer = (image, { className, imageAlign }) => image ? (jsx("div", { className: style('flex-shrink-0', imageAlign && imageAlignmentMap[imageAlign], className), children: image })) : null;
|
|
2288
2288
|
|
|
2289
2289
|
const getItemListFontSize = (colValue) => (colValue === 1 ? 'text-h6' : 'text-l');
|
|
2290
2290
|
const cardColumnsModeStyleMap = {
|
|
2291
2291
|
1: 'flex-col',
|
|
2292
2292
|
2: 'gap-x-10 flex-wrap',
|
|
2293
2293
|
};
|
|
2294
|
-
const CarouselInvestmentCard = JSX(({ additionalDescription, cardsList = [],
|
|
2294
|
+
const CarouselInvestmentCard = JSX(({ className, padding, additionalDescription, cardsList = [], columnsMode = 1, description, image, title, ...rest }) => (jsx(BlockWrapper, { className: style('box-border text-left w-[697px]', 'border border-solid border-gray group-data-secondary:border-white/50', className), defaultPadding: "p-0", ...rest, children: jsxs(BaseTile, { className: "h-full", padding: padding, defaultPadding: "p-m", title: title ? jsx(Heading, { headingType: "h4", as: "h3", className: "mb-3.5 z-10", title: title }) : null, backImage: image?.src ? jsx(Img, { image: image }) : null, children: [jsxs("div", { className: "flex justify-between mb-4", children: [description ? (jsx("div", { className: "w-1/3", children: jsx(Text, { size: "text-h6", children: description }) })) : null, additionalDescription ? (jsx(Text, { size: "text-m", font: "font-light", color: "group-data-primary:text-secondary-text", children: additionalDescription })) : null] }), cardsList.length ? (jsx("ul", { className: style('list-none m-0 p-0 flex gap-y-2', cardColumnsModeStyleMap[columnsMode]), children: renderCardList(cardsList, columnsMode) })) : null] }) })));
|
|
2295
2295
|
const renderCardList = (cardsList, columnsMode) => {
|
|
2296
2296
|
const CARDS_COUNT_MAP = [4, 9];
|
|
2297
2297
|
const visibleCardsList = cardsList.slice(0, CARDS_COUNT_MAP[columnsMode - 1]);
|
|
@@ -2305,16 +2305,14 @@
|
|
|
2305
2305
|
const LinkButton = JSX(({ text, href = '', target = '', className = '' }) => {
|
|
2306
2306
|
const link = useLink();
|
|
2307
2307
|
const adjustedProps = link({ href, target });
|
|
2308
|
-
return text ? (jsxs("div", { className: `relative group/link cursor-pointer w-[328px] h-[82px] ${className}`, children: [jsxs("a", { className: LINK_CLASS_NAME, role: "link", ...adjustedProps, children: [jsx("div", { className: "p-0.5", children: text }), jsx("div", { className: "w-6 h-6", children: jsx(
|
|
2308
|
+
return text ? (jsxs("div", { className: `relative group/link cursor-pointer w-[328px] h-[82px] ${className}`, children: [jsxs("a", { className: LINK_CLASS_NAME, role: "link", ...adjustedProps, children: [jsx("div", { className: "p-0.5", children: text }), jsx("div", { className: "w-6 h-6", children: jsx(Img, { className: "w-4 h-4 min-w-4 min-h-4 rounded-full box-border brightness-0 group-hover/link:brightness-100", image: { icon: 'ArrowRightIcon', iconVersion: 'black' }, imageClassName: "group-hover/link:text-primary-main", width: "24", height: "24" }) })] }), jsx("div", { className: `${LINK_BORDER_CLASS_NAME} mx-1.5 mt-1.5` }), jsx("div", { className: `${LINK_BORDER_CLASS_NAME} mt-3 mr-3` })] })) : null;
|
|
2309
2309
|
});
|
|
2310
2310
|
|
|
2311
2311
|
const MAX_LINKS_COUNT = 10;
|
|
2312
|
-
const CarouselLinks = JSX(({ className
|
|
2313
|
-
return (jsxs(BlockWrapper, { className: `flex w-full p-10 overflow-hidden justify-between ${className}`, ...rest, children: [jsxs("div", { className: "flex flex-col max-w-96 pr-9 text-white text-xl-light", children: [jsx(Headline, { isPadding: false, title: title, description: description, as: "h1", align: "text-left" }), additionalDescription ? (jsx(Headline, { className: "pt-6", isPadding: false, description: additionalDescription, align: "text-left" })) : null] }), links?.length ? renderLinks(links) : null] }));
|
|
2314
|
-
});
|
|
2312
|
+
const CarouselLinks = JSX(({ className, additionalDescription, description, links, title, ...rest }) => (jsxs(BlockWrapper, { className: style('flex w-full overflow-hidden justify-between', className), ...rest, children: [jsxs("div", { className: "flex flex-col max-w-96 pr-m text-white text-xl-light", children: [jsx(Headline, { isPadding: false, title: title, description: description, as: "h1", align: "text-left" }), additionalDescription ? (jsx(Headline, { className: "pt-s", description: additionalDescription, align: "text-left", isPadding: false })) : null] }), links?.length ? renderLinks(links) : null] })));
|
|
2315
2313
|
const renderLinks = (links) => {
|
|
2316
2314
|
const itemCount = Math.ceil(links.length / MAX_LINKS_COUNT);
|
|
2317
|
-
return (jsx(Carousel, { className: "min-w-[832px] w-[832px]", isBlur: false, isCyclic: true, itemCount: itemCount, arrowsPadded: false, showDots: true, children: new Array(itemCount).fill(null).map((_, groupIndex) => (jsx("div", { className: "w-[672px] min-w-[672px] ml-10 mr-10 flex flex-wrap self-start", children: links
|
|
2315
|
+
return (jsx(Carousel, { className: "min-w-[832px] w-[832px]", version: "", isBlur: false, isCyclic: true, itemCount: itemCount, arrowsPadded: false, showDots: true, children: new Array(itemCount).fill(null).map((_, groupIndex) => (jsx("div", { className: "w-[672px] min-w-[672px] ml-10 mr-10 flex flex-wrap self-start", children: links
|
|
2318
2316
|
.slice(groupIndex * MAX_LINKS_COUNT, (groupIndex + 1) * MAX_LINKS_COUNT)
|
|
2319
2317
|
.map((link, index) => (jsx(LinkButton, { className: "m-1", ...link }, String(index)))) }, String(groupIndex)))) }));
|
|
2320
2318
|
};
|
|
@@ -2339,19 +2337,19 @@
|
|
|
2339
2337
|
const List = JSX(({ className, hasIndent, isDotted, items, listItemSize = 'M' }) => items?.length ? (jsx("section", { className: style('flex flex-col gap-2 text-left text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text', TEXT_SIZE_MAP[listItemSize], hasIndent ? ITEM_INDENT_MAP[listItemSize] : '', className), role: "list", children: items.map((item, i) => (jsx(ListItem, { isDotted: isDotted, size: listItemSize, children: item }, String(i)))) })) : null);
|
|
2340
2338
|
|
|
2341
2339
|
const CarouselProductCard = JSX(({ additionalDescription, align = 'text-center', button = {}, className = '', description, headlineSmallVersion = 'H6', href, icon, isDotted = true, isFullWidth = true, items = [], target, title, version = 'primary', ...rest }) => {
|
|
2342
|
-
return (jsxs(BlockWrapper, { className: style('h-full flex flex-col justify-between min-w-[260px]', 'box-border border-solid border border-gray', align, className), version: version, ...rest, children: [jsxs(LinkWrapper, { className: "p-
|
|
2343
|
-
className: style('p-
|
|
2340
|
+
return (jsxs(BlockWrapper, { className: style('h-full flex flex-col justify-between min-w-[260px]', 'box-border border-solid border border-gray', align, className), defaultPadding: "p-0", version: version, ...rest, children: [jsxs(LinkWrapper, { className: "p-s", href: href, target: target, children: [renderImage$3(icon), renderCardTitle(headlineSmallVersion, title), renderDescription$3(description, title), renderItems(items, isDotted, version), renderAdditionalDescription$1(additionalDescription)] }), renderButtonsSection([button], {
|
|
2341
|
+
className: style('p-s pt-0', isFullWidth ? '' : 'self-center min-w-[158px]'),
|
|
2344
2342
|
isVertical: isFullWidth,
|
|
2345
2343
|
})] }));
|
|
2346
2344
|
});
|
|
2347
|
-
const renderImage$3 = (image) => (jsxs("div", { className: "flex justify-center", children: [image?.src ? jsx(
|
|
2345
|
+
const renderImage$3 = (image) => (jsxs("div", { className: "flex justify-center", children: [image?.src ? jsx(Img, { className: "mb-5", image: image }) : null, image?.icon ? jsx(Img, { className: `w-8 h-8 min-w-8 mb-5`, image: image }) : null] }));
|
|
2348
2346
|
const renderCardTitle = (headlineSmallVersion, title) => title ? (jsx("div", { children: jsx(Text, { size: HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title }) })) : null;
|
|
2349
2347
|
const renderDescription$3 = (description, title) => description ? (jsx("div", { className: title ? 'mt-2' : '', children: jsx(Paragraph, { size: "text-l", children: description }) })) : null;
|
|
2350
2348
|
const renderAdditionalDescription$1 = (additionalDescription) => additionalDescription ? (jsx("div", { className: "mt-auto", children: jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text group-data-secondary:text-white/80", children: additionalDescription }) })) : null;
|
|
2351
2349
|
const renderItems = (items, isDotted, version = 'primary') => items?.length ? (jsx(List, { className: style('max-w-[308px] mt-2 text-s', version === 'primary' ? '!text-secondary-text' : ''), items: items.filter((item) => item?.text).map((item) => item.text), isDotted: isDotted })) : null;
|
|
2352
2350
|
|
|
2353
2351
|
const CarouselProgramsCard = JSX(({ className = '', title, icon, list = [], href, target, ...rest }) => {
|
|
2354
|
-
return (jsx(BlockWrapper, { className: style('border border-gray', className), ...rest, children: jsxs(LinkWrapper, { className: "flex", href: href, target: target, children: [jsxs("div", { className: "w-[200px] min-w-[200px] self-center", children: [icon?.icon ? jsx(
|
|
2352
|
+
return (jsx(BlockWrapper, { className: style('border border-gray', className), defaultPadding: "p-0", ...rest, children: jsxs(LinkWrapper, { className: "flex", href: href, target: target, children: [jsxs("div", { className: "w-[200px] min-w-[200px] self-center", children: [icon?.icon ? jsx(Img, { image: icon }) : null, icon?.src ? jsx(Img, { image: icon }) : null] }), jsxs("div", { className: "p-8 pl-3 w-full", children: [title ? jsx(Heading, { className: "mb-3.5", headingType: "h5", title: title }) : null, list.length ? (jsx("div", { className: "flex flex-col gap-3", children: list?.map(renderList$2) })) : null] })] }) }));
|
|
2355
2353
|
});
|
|
2356
2354
|
const renderList$2 = (_, i) => (jsxs("div", { className: "break-words", children: [_.title ? jsx("div", { className: "text-h6", children: _.title }) : null, _.description ? jsx("span", { className: "text-l-light mt-1", children: _.description }) : null] }, String(i)));
|
|
2357
2355
|
|
|
@@ -2399,7 +2397,7 @@
|
|
|
2399
2397
|
const { href, version, text = '' } = rest;
|
|
2400
2398
|
const { iconMapped, label } = ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
|
|
2401
2399
|
const iconCustom = getFilteredIcon(icon) ?? iconMapped;
|
|
2402
|
-
return (jsx(Button, { className: style(rounded ? 'rounded-full' : 'rounded-md', 'border border-solid hover:border-transparent', 'group-data-primary:border-main-divider', 'hover:bg-primary-main hover:text-black', 'group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover', 'group-data-gray:border-green', buttonStylesWithText(text, buttonSize)), "aria-label": label, rel: "noopener noreferrer", target: "_blank", text: text, version: version, ...rest, children: iconCustom && !text ? (jsx(
|
|
2400
|
+
return (jsx(Button, { className: style(rounded ? 'rounded-full' : 'rounded-md', 'border border-solid hover:border-transparent', 'group-data-primary:border-main-divider', 'hover:bg-primary-main hover:text-black', 'group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover', 'group-data-gray:border-green', buttonStylesWithText(text, buttonSize)), "aria-label": label, rel: "noopener noreferrer", target: "_blank", text: text, version: version, ...rest, children: iconCustom && !text ? (jsx(Img, { image: iconCustom, imageClassName: "group-hover/media:text-white", width: "24", height: "24" })) : null }));
|
|
2403
2401
|
});
|
|
2404
2402
|
const getFilteredIcon = (icon) => (icon?.src || icon?.icon ? icon : undefined);
|
|
2405
2403
|
|
|
@@ -2408,16 +2406,16 @@
|
|
|
2408
2406
|
const BORDER_STYLE = 'border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider';
|
|
2409
2407
|
|
|
2410
2408
|
const CarouselRecommendationCard = JSX(({ className = '', description, href, icon, items = [], socialMedia = [], target, title, align = 'text-left', version = 'primary', ...rest }) => {
|
|
2411
|
-
return (jsx(BlockWrapper, { className: style('relative
|
|
2409
|
+
return (jsx(BlockWrapper, { className: style('relative min-w-[524px] min-h-[218px] h-full box-border group-data-gray:bg-main-divider/50', BORDER_STYLE, className), defaultPadding: "p-s", version: version, ...rest, children: jsxs(LinkWrapper, { href: href, target: target, children: [jsx(Headline, { className: "mb-4", title: title, description: description, headlineVersion: "S", isPadding: false, align: align }), jsxs("div", { className: "w-1/2 h-full flex flex-col flex-1 justify-end", children: [items.length ? jsx(List, { items: items, listItemSize: "S" }) : null, socialMedia.length ? jsx(SocialMedia, { className: "pt-10", media: socialMedia }) : null] }), renderIconBlock$2(icon)] }) }));
|
|
2412
2410
|
});
|
|
2413
|
-
const renderIconBlock$2 = (icon) => (jsxs("div", { className: "absolute bottom-0 right-0", children: [icon?.icon ? jsx(
|
|
2411
|
+
const renderIconBlock$2 = (icon) => (jsxs("div", { className: "absolute bottom-0 right-0", children: [icon?.icon ? jsx(Img, { image: icon }) : null, icon?.src ? jsx(Img, { image: icon }) : null] }));
|
|
2414
2412
|
|
|
2415
2413
|
const RichText = JSX((props) => {
|
|
2416
2414
|
const { __html = '', richVersion = '' } = props;
|
|
2417
2415
|
return (jsx("div", { className: style(richVersion, 'md-container'), dangerouslySetInnerHTML: { __html } }));
|
|
2418
2416
|
});
|
|
2419
2417
|
|
|
2420
|
-
const CarouselRichTextCard = JSX(({ className = '', __html, richVersion = 'striped', ...rest }) => (jsx(BlockWrapper, { className: style('
|
|
2418
|
+
const CarouselRichTextCard = JSX(({ className = '', __html, richVersion = 'striped', ...rest }) => (jsx(BlockWrapper, { className: style('border border-gray h-full min-w-96', className), ...rest, children: jsx(RichText, { __html: __html, richVersion: richVersion }) })));
|
|
2421
2419
|
|
|
2422
2420
|
const Foldable = JSX(({ className = '', isFoldButtonOnTop = false, unfoldedByDefault = false, renderFoldableSection, renderFoldButton, }) => {
|
|
2423
2421
|
const [isUnfolded, setIsUnfolded] = useState(unfoldedByDefault);
|
|
@@ -2455,9 +2453,9 @@
|
|
|
2455
2453
|
const cellsNode = cardCells.map(renderCardInfo);
|
|
2456
2454
|
const visibleCells = cellsNode.slice(0, VISIBLE_CELLS_COUNT);
|
|
2457
2455
|
const hiddenCells = cellsNode.slice(VISIBLE_CELLS_COUNT);
|
|
2458
|
-
return (jsxs(BlockWrapper, { className: style('relative border border-gray flex flex-col', getPaddingStyle(isHighlighting),
|
|
2456
|
+
return (jsxs(BlockWrapper, { className: style('relative border border-gray flex flex-col', className), defaultPadding: getPaddingStyle(isHighlighting), ...rest, children: [isHighlighting ? renderHitIcon() : null, renderIconBlock$1(icon), title ? jsx(Heading, { className: "text-center pt-2", headingType: "h5", title: title }) : null, button ? jsx(Button, { className: "w-full mt-4", ...button }) : null, cardCells.length ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs("div", { children: [visibleCells, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenCells })] })), renderFoldButton: cardCells.length > 1 ? renderFoldButton$1 : null })) : null] }));
|
|
2459
2457
|
});
|
|
2460
|
-
const renderIconBlock$1 = (icon) => (jsx("div", { className: "w-[267px] min-w-[267px] self-center", children: icon?.src || icon?.icon ? jsx(
|
|
2458
|
+
const renderIconBlock$1 = (icon) => (jsx("div", { className: "w-[267px] min-w-[267px] self-center", children: icon?.src || icon?.icon ? jsx(Img, { image: icon }) : null }));
|
|
2461
2459
|
const renderFoldButton$1 = ({ isUnfolded, onToggle }) => (jsxs("button", { className: "w-full cursor-pointer text-primary-main pt-5 flex justify-between items-center", onClick: onToggle, children: [jsx("div", { children: isUnfolded ? 'Скрыть' : 'Подробнее о тарифе' }), jsx(Icon, { className: "text-primary-text", name: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', width: "16", height: "16" })] }));
|
|
2462
2460
|
const renderHitIcon = () => (jsxs("div", { className: "absolute -top-7 -right-4 h-[60px] w-[60px] bg-white flex flex-col items-center justify-center rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]", children: [jsx(Icon, { iconVersion: "black", name: "HeartIcon", width: "23", height: "22" }), jsx(Paragraph, { size: "text-s", font: "font-normal", align: "text-center", color: "text-primary-text", children: "\u0425\u0418\u0422" })] }));
|
|
2463
2461
|
|
|
@@ -2468,7 +2466,7 @@
|
|
|
2468
2466
|
const COLS_LENGTH_FOR_SCROLL$1 = 3;
|
|
2469
2467
|
const COLUMN_WIDTH$2 = 4 * 80 + 4 * 4; // w-80 + gap-4 = 336px
|
|
2470
2468
|
|
|
2471
|
-
const HeaderCell = JSX(({ icon, image, title, link }) => (jsxs("div", { className: `w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${BORDER_CLASSES} ${GRADIENT}`, role: "columnheader", children: [icon && !image?.src && (jsx(
|
|
2469
|
+
const HeaderCell = JSX(({ icon, image, title, link }) => (jsxs("div", { className: `w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${BORDER_CLASSES} ${GRADIENT}`, role: "columnheader", children: [icon && !image?.src && (jsx(Img, { className: "h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4", image: icon, width: "63", height: "63" })), image?.src && jsx(Img, { className: "mb-[18px]", image: image }), title ? (jsx(Heading, { headingType: "h4", as: "h3", className: "text-center text-white", title: title })) : null, link?.text && (jsx("div", { className: "mt-auto w-full", children: jsx(Button, { href: link.href, target: link.target, className: "mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active", children: jsx("div", { className: "text-xs-light font-medium py-[11px]", children: link.text }) }) }))] })));
|
|
2472
2470
|
|
|
2473
2471
|
const carouselContainerClassesMap = {
|
|
2474
2472
|
comparison: 'flex gap-4 duration-1000',
|
|
@@ -2524,15 +2522,15 @@
|
|
|
2524
2522
|
const ComparisonTable = JSX(({ className = '', title, rowHeaders, columns, visibleRowLength = 0, isColoredFirstColumn = false, ...rest }) => {
|
|
2525
2523
|
const [isShowAllRow, setIsShowAllRow] = useState(!visibleRowLength);
|
|
2526
2524
|
const handleToggle = useCallback(() => setIsShowAllRow((_) => !_), []);
|
|
2527
|
-
return (jsxs(BlockWrapper, { className:
|
|
2525
|
+
return (jsxs(BlockWrapper, { className: style('overflow-hidden relative', className), defaultPadding: "p-default", ...rest, children: [jsx(Heading, { headingType: "h2", className: "max-w-[47rem] text-center mb-9 mx-auto", title: title }), jsx(ComparisonTableBody, { columns: columns, rowHeaders: rowHeaders, isShowAllRow: isShowAllRow, isColoredFirstColumn: isColoredFirstColumn, visibleRowLength: visibleRowLength }), visibleRowLength
|
|
2528
2526
|
? renderShowMoreToggleButton({ isShowAllRow, onClick: handleToggle })
|
|
2529
2527
|
: null] }));
|
|
2530
2528
|
});
|
|
2531
2529
|
const renderShowMoreToggleButton = ({ isShowAllRow, onClick, }) => (jsx("div", { className: "pr-12", children: jsxs("div", { className: "flex w-full", children: [jsx("div", { className: FIRST_CELL_CLASSES$1 }), jsx("button", { onClick: onClick, className: "mt-5 flex-1 border-gray border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main", children: jsx("div", { className: "font-sans text-xs-light font-medium py-3", children: !isShowAllRow ? 'Показать все параметры' : 'Скрыть' }) })] }) }));
|
|
2532
2530
|
|
|
2533
|
-
const ContactsBlock = JSX(({ className
|
|
2531
|
+
const ContactsBlock = JSX(({ className, contacts, info, version = 'secondary', ...rest }) => (jsxs(BlockWrapper, { className: style('flex', className), defaultPadding: "p-default", version: version, ...rest, children: [info?.length ? renderBlocks(info) : null, contacts?.length ? renderBlocks(contacts) : null] })));
|
|
2534
2532
|
const renderBlocks = (info) => (jsx("div", { className: "flex grow basis-0", children: info.map((column, index) => renderBlocksColumn({ column, index })) }));
|
|
2535
|
-
const renderBlocksColumn = ({ column, index }) => column ? (jsx("div", { className: "flex flex-col grow basis-0 pr-11 last:pr-0", children: column.map(({ title = '', description, additionalDescription, button }, key) => (jsxs("div", { className: "mt-6 first:mt-0", children: [jsx(Headline, { className: "!p-0", title: title, description: description, headlineVersion: "XS", align: "text-left" }), additionalDescription ? (jsx("div", { className: "mt-1.5 opacity-80", children: jsx(Paragraph, { size: "text-m", font: "font-light", children: additionalDescription }) })) : null, button ? jsx(Button, { className: "mt-6", ...button }) : null] }, String(key)))) }, `col-${String(index)}`)) : null;
|
|
2533
|
+
const renderBlocksColumn = ({ column, index }) => column ? (jsx("div", { className: "flex flex-col grow basis-0 pr-11 last:pr-0", children: column.map(({ title = '', description, additionalDescription, button }, key) => (jsxs("div", { className: "mt-6 first:mt-0", children: [jsx(Headline, { className: "!p-0", title: title, description: description, headlineVersion: "XS", align: "text-left" }), additionalDescription ? (jsx("div", { className: "mt-1.5 opacity-80", children: jsx(Paragraph, { size: "text-m", font: "font-light", children: additionalDescription }) })) : null, button?.href ? jsx(Button, { className: "mt-6", ...button }) : null] }, String(key)))) }, `col-${String(index)}`)) : null;
|
|
2536
2534
|
|
|
2537
2535
|
const isEmpty = (v) => v === null ||
|
|
2538
2536
|
v === undefined ||
|
|
@@ -2571,7 +2569,7 @@
|
|
|
2571
2569
|
const DefaultFoldButton = JSX(({ className = '', label, icon, dataTheme = '', disabled = false, onClick }) => {
|
|
2572
2570
|
return (jsxs("button", { className: style('flex justify-center w-full px-0 py-4 border border-transparent outline-none focus:border-primary-text', disabled
|
|
2573
2571
|
? 'bg-main-divider text-main-disabled hover:bg-main-divider'
|
|
2574
|
-
: 'bg-primary-main text-white hover:bg-primary-hove', className), onClick: onClick, disabled: disabled, "data-theme": dataTheme, children: [jsx("span", { className: "text-h4 pr-3", children: label }), icon ? (jsx(
|
|
2572
|
+
: 'bg-primary-main text-white hover:bg-primary-hove', className), onClick: onClick, disabled: disabled, "data-theme": dataTheme, children: [jsx("span", { className: "text-h4 pr-3", children: label }), icon ? (jsx(Img, { image: {
|
|
2575
2573
|
icon,
|
|
2576
2574
|
iconVersion: 'white',
|
|
2577
2575
|
}, className: "flex-shrink-0 my-auto", width: "20", height: "20" })) : null] }));
|
|
@@ -2647,14 +2645,14 @@
|
|
|
2647
2645
|
parse: (min) => ({ min, max: maxValue }),
|
|
2648
2646
|
format: ({ min }) => min,
|
|
2649
2647
|
}) })] }));
|
|
2650
|
-
return (jsxs(BlockWrapper, { className: style(className), version: "transparent", ...rest, children: [renderFiltrationForm({ field, reset, filtrationSchema, resetButton, children: Inputs }), jsx(BaseFiltrationInner, { filtrationState: filtrationState, ...rest })] }));
|
|
2648
|
+
return (jsxs(BlockWrapper, { className: style(className), defaultPadding: "p-0", version: "transparent", ...rest, children: [renderFiltrationForm({ field, reset, filtrationSchema, resetButton, children: Inputs }), jsx(BaseFiltrationInner, { filtrationState: filtrationState, ...rest })] }));
|
|
2651
2649
|
});
|
|
2652
2650
|
DepositFiltration.childrenTypes = ['ProductTile'];
|
|
2653
2651
|
DepositFiltration.childSchema = (content) => content?.filtrationSchema || {};
|
|
2654
2652
|
|
|
2655
2653
|
const renderErrorContent = (error) => {
|
|
2656
2654
|
if (error?.errorContentType === 'Image' && error?.image) {
|
|
2657
|
-
return jsx(
|
|
2655
|
+
return jsx(Img, { image: error.image });
|
|
2658
2656
|
}
|
|
2659
2657
|
if (error?.errorContentType === 'Code' && error.code) {
|
|
2660
2658
|
return jsx("div", { className: "font-mohave text-title-extra gradient-color-text", children: error.code });
|
|
@@ -2662,7 +2660,7 @@
|
|
|
2662
2660
|
return null;
|
|
2663
2661
|
};
|
|
2664
2662
|
const getErrorBlockStyle = (text) => (text ? 'py-20 pt-3 pb-1' : 'mb-16 pb-2 mt-24 pt-3');
|
|
2665
|
-
const ErrorBlock = JSX(({ className = '', title, subtitle, error, button, ...rest }) => (jsxs(BlockWrapper, { className: style('flex flex-col justify-center items-center', getErrorBlockStyle(button?.text),
|
|
2663
|
+
const ErrorBlock = JSX(({ className = '', title, subtitle, error, button, ...rest }) => (jsxs(BlockWrapper, { className: style('flex flex-col justify-center items-center', className), defaultPadding: getErrorBlockStyle(button?.text), version: "transparent", ...rest, children: [jsx("div", { className: "flex justify-center py-20", children: renderErrorContent(error) }), title ? jsx(Heading, { headingType: "h1", className: "text-left mb-4", title: title }) : null, subtitle ? (jsx("div", { className: "font-sans text-xl-light mb-7 max-w-[613px] text-center", children: subtitle })) : null, button?.text ? (jsx(Button, { className: "py-4 px-9", version: button?.version, ...button, children: button.text })) : null] })));
|
|
2666
2664
|
|
|
2667
2665
|
var Currencies;
|
|
2668
2666
|
(function (Currencies) {
|
|
@@ -2683,7 +2681,7 @@
|
|
|
2683
2681
|
RUB: 'RoundRubleIcon',
|
|
2684
2682
|
};
|
|
2685
2683
|
const renderCurrencyRow$1 = ({ title, buyPrice, buyDifference, sellPrice, sellDifference, buyOfficeName, sellOfficeName, }) => {
|
|
2686
|
-
return (jsxs("tr", { className: "pb-1 text-h6", children: [jsx("td", { className: "pt-4", children: jsxs("div", { className: "flex items-center", children: [title ? (jsx(
|
|
2684
|
+
return (jsxs("tr", { className: "pb-1 text-h6", children: [jsx("td", { className: "pt-4", children: jsxs("div", { className: "flex items-center", children: [title ? (jsx(Img, { image: { icon: CURRENCY_ICONS_MAP$1[title] }, width: "24", height: "24" })) : null, jsx("span", { className: "ml-2", children: title })] }) }), renderCurrency(buyPrice, buyDifference), renderCurrency(sellPrice, sellDifference), renderOffice(buyPrice, buyOfficeName), renderOffice(sellPrice, sellOfficeName)] }, title));
|
|
2687
2685
|
};
|
|
2688
2686
|
const formatCurrency$1 = (value) => (value ? currencyNumberFormat$1.format(value) : '');
|
|
2689
2687
|
const renderCurrency = (price, difference) => {
|
|
@@ -2701,9 +2699,9 @@
|
|
|
2701
2699
|
return (jsx("th", { className: "pl-11", children: jsx(Text, { size: "text-m-light", align: "text-left", color: "text-secondary-text", children: title }) }));
|
|
2702
2700
|
};
|
|
2703
2701
|
|
|
2704
|
-
const ExchangeRateOffice = JSX(({ className
|
|
2702
|
+
const ExchangeRateOffice = JSX(({ className, currencies = [], actuality = '', officeName = '', ...rest }) => {
|
|
2705
2703
|
const fourRates = topNRates(currencies, 4);
|
|
2706
|
-
return (jsxs(BlockWrapper, { className:
|
|
2704
|
+
return (jsxs(BlockWrapper, { className: className, ...rest, children: [jsxs("div", { className: "flex flex-row flex-grow-0 justify-between mb-8", children: [jsx(Heading, { headingType: "h4", title: 'Курс обмена валют в ' + officeName, className: "whitespace-pre-wrap text-h4 mb-5" }), jsx("div", { className: "pl-11", children: jsx(Text, { size: "text-m-light", align: "text-left", color: "text-secondary-text", children: actuality }) })] }), jsx("div", { className: "flex flex-row pt-4 text-left", children: fourRates.length > 0 ? (jsxs("table", { className: style('h-fit w-fit', className), children: [jsx("thead", { children: jsxs("tr", { children: [jsx("th", { children: jsx(Text, { size: "text-m-light", align: "text-left", color: "text-secondary-text", children: "\u0412\u0430\u043B\u044E\u0442\u0430" }) }), renderTableHeader('Купить'), renderTableHeader('Продать'), renderTableHeader('Лучшая покупка'), renderTableHeader('Лучшая продажа')] }) }), jsx("tbody", { children: fourRates.map((item) => renderCurrencyRow$1(item)) })] })) : null })] }));
|
|
2707
2705
|
});
|
|
2708
2706
|
const topNRates = (rates, n) => rates.sort((a, b) => Number(a.id) - Number(b.id)).slice(0, n);
|
|
2709
2707
|
|
|
@@ -2729,10 +2727,10 @@
|
|
|
2729
2727
|
const CurrencyTable = JSX(({ className, exchangeCurrencyItems }) => (jsxs("table", { className: `h-fit w-fit ${className}`, children: [jsx("thead", { children: jsxs("tr", { children: [jsx("th", { className: TABLE_HEAD_STYLE, children: "\u0412\u0430\u043B\u044E\u0442\u0430" }), jsx("th", { className: TABLE_HEAD_STYLE_WITH_PL, children: "\u041A\u0443\u043F\u0438\u0442\u044C" }), jsx("th", { className: TABLE_HEAD_STYLE_WITH_PL, children: "\u041F\u0440\u043E\u0434\u0430\u0442\u044C" })] }) }), jsx("tbody", { children: exchangeCurrencyItems.map(renderCurrencyRow) })] })));
|
|
2730
2728
|
const renderCurrencyRow = (exchangeCurrencyItem) => {
|
|
2731
2729
|
const currency = exchangeCurrencyItem?.currency?.currency;
|
|
2732
|
-
return (jsxs("tr", { className: "pb-1 text-h6", children: [jsx("td", { className: "pt-4", children: jsxs("div", { className: "flex items-center", children: [currency ? (jsx(
|
|
2730
|
+
return (jsxs("tr", { className: "pb-1 text-h6", children: [jsx("td", { className: "pt-4", children: jsxs("div", { className: "flex items-center", children: [currency ? (jsx(Img, { image: { icon: CURRENCY_ICONS_MAP[currency] }, width: "24", height: "24" })) : null, jsx("span", { className: "ml-2", children: currency })] }) }), jsx("td", { className: "pt-4 pl-11", children: formatCurrency(exchangeCurrencyItem?.saleExchangeRate) }), jsx("td", { className: "pt-4 pl-11", children: formatCurrency(exchangeCurrencyItem?.buyExchangeRate) })] }, currency));
|
|
2733
2731
|
};
|
|
2734
2732
|
|
|
2735
|
-
const CurrentLocation$1 = JSX(({ className = '', address }) => (jsxs("div", { className: `flex ${className}`, children: [jsx(
|
|
2733
|
+
const CurrentLocation$1 = JSX(({ className = '', address }) => (jsxs("div", { className: `flex ${className}`, children: [jsx(Img, { image: { icon: 'GpsIcon' }, width: "24", height: "24" }), jsxs("div", { className: "ml-3", children: [address ? jsx("p", { className: "text-primary-main m-0 mb-1 text-l", children: address }) : null, jsx("p", { className: "text-secondary-text m-0 text-m", children: "\u041A\u0443\u0440\u0441 \u0443\u043A\u0430\u0437\u0430\u043D \u0434\u043B\u044F \u0437\u0430\u0434\u0430\u043D\u043D\u043E\u0433\u043E \u043E\u0444\u0438\u0441\u0430" })] })] })));
|
|
2736
2734
|
|
|
2737
2735
|
const roundTo = (value, precision = 2) => {
|
|
2738
2736
|
const factor = 10 ** precision;
|
|
@@ -2794,7 +2792,7 @@
|
|
|
2794
2792
|
setSelected: handleSelectBuy(calcState, handleSetCalcState, currencyRatesBuy),
|
|
2795
2793
|
value: calcState.inputBuy,
|
|
2796
2794
|
setValue: (value) => handleInputBuy(handleSetCalcState, currencyRatesBuy)(value, calcState.selectBuy, calcState.selectSell),
|
|
2797
|
-
}), button?.text ? (jsx(Button, { className: "py-4
|
|
2795
|
+
}), button?.text ? (jsx(Button, { className: "py-4", version: button?.version, ...button, children: button.text })) : null] }));
|
|
2798
2796
|
});
|
|
2799
2797
|
const handleSelectSell = (calcState, setCalcState, currencyRatesSell) => (value) => {
|
|
2800
2798
|
setCalcState({ selectSell: value });
|
|
@@ -2875,7 +2873,7 @@
|
|
|
2875
2873
|
currencyRatesBuy.unshift({ currency: { currency: Currency.RUB } });
|
|
2876
2874
|
const currencyRatesSell = currencyRates.filter((_) => _.saleExchangeRate);
|
|
2877
2875
|
currencyRatesSell.push({ currency: { currency: Currency.RUB } });
|
|
2878
|
-
return (jsx(BlockWrapper, { className:
|
|
2876
|
+
return (jsx(BlockWrapper, { className: style('box-border min-h-80', className), ...rest, children: jsx(BaseTile, { className: "h-full", title: jsx(Heading, { headingType: "h4", title: title, className: "whitespace-pre-wrap" }), children: jsxs("div", { className: "flex gap-xxl", children: [jsxs("div", { children: [currencyRates ? (jsx(CurrencyTable, { className: "mb-xl", exchangeCurrencyItems: currencyRates })) : null, jsx(CurrentLocation$1, { address: exchangeRates?.address })] }), currencyRates.length && currencyRatesBuy.length && currencyRatesSell.length ? (jsx(ExchangeCurrencyCalculator, { className: "grow", currencyRatesBuy: currencyRatesBuy, currencyRatesSell: currencyRatesSell, button: button })) : null] }) }) }));
|
|
2879
2877
|
});
|
|
2880
2878
|
const getCurrencyRates = (currencies) => {
|
|
2881
2879
|
return currencies?.filter((_) => _?.currency?.id === 1 || _?.currency?.id === 2) || [];
|
|
@@ -2898,7 +2896,7 @@
|
|
|
2898
2896
|
transparent: 'text-white',
|
|
2899
2897
|
};
|
|
2900
2898
|
const renderImage$2 = (bgColor, image, size) => {
|
|
2901
|
-
return image?.src ? (jsx(
|
|
2899
|
+
return image?.src ? (jsx(Img, { image: image, className: SVG_COLOR[bgColor], width: size?.width, height: size?.height, pathPrefix: "/wcms-resources/" })) : (jsx(Img, { image: {
|
|
2902
2900
|
icon: image?.icon || 'LogoIcon',
|
|
2903
2901
|
iconVersion: ICON_VERSION_MAP[bgColor],
|
|
2904
2902
|
}, className: SVG_COLOR[bgColor], width: size?.width, height: size?.height }));
|
|
@@ -2916,7 +2914,7 @@
|
|
|
2916
2914
|
return (jsxs("a", { className: `inline-flex items-center font-sans no-underline ${className}`, href: href || '/', target: targetBlank ? '_blank' : '_self', "aria-label": logo?.title || 'Россельхозбанк', children: [renderImage$2(bgColor, logo?.image, { width: '40', height: '45' }), showTitle ? renderTitle$2(children || logo?.title, bgColor) : null] }));
|
|
2917
2915
|
});
|
|
2918
2916
|
|
|
2919
|
-
const CloseButton = JSX(({ className, onClick }) => (jsx("button", { className: style('flex justify-center items-center w-12 h-12 p-1 bg-transparent border-none', className), onClick: onClick, title: "\u0417\u0430\u043A\u0440\u044B\u0442\u044C", children: jsx(
|
|
2917
|
+
const CloseButton = JSX(({ className, onClick }) => (jsx("button", { className: style('flex justify-center items-center w-12 h-12 p-1 bg-transparent border-none', className), onClick: onClick, title: "\u0417\u0430\u043A\u0440\u044B\u0442\u044C", children: jsx(Img, { image: { icon: 'CloseIcon' }, width: "24", height: "24" }) })));
|
|
2920
2918
|
|
|
2921
2919
|
function assertUnreachable(x) {
|
|
2922
2920
|
throw new Error(x);
|
|
@@ -3153,7 +3151,7 @@
|
|
|
3153
3151
|
const handleChange = useCallback((ev) => {
|
|
3154
3152
|
onChange && onChange(ev.target?.value || '');
|
|
3155
3153
|
}, [onChange]);
|
|
3156
|
-
return (jsxs("div", { className: style('font-sans relative', className), role: "form", children: [jsx("div", { className: "absolute h-full flex items-center pl-4 pointer-events-none", children: jsx(
|
|
3154
|
+
return (jsxs("div", { className: style('font-sans relative', className), role: "form", children: [jsx("div", { className: "absolute h-full flex items-center pl-4 pointer-events-none", children: jsx(Img, { image: { icon: 'LoupeIcon' }, width: "24", height: "24" }) }), jsx("input", { className: style('h-12 pl-12 w-full text-l text-black outline-none box-border', 'border border-solid rounded-md border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text'), value: value, type: "text", name: "search-bar-input", placeholder: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0441\u0430\u0439\u0442\u0443", autoFocus: autoFocus, onChange: handleChange, onFocus: onFocus })] }));
|
|
3157
3155
|
});
|
|
3158
3156
|
|
|
3159
3157
|
const SEARCH_DIALOG_ID = 'search';
|
|
@@ -3242,10 +3240,10 @@
|
|
|
3242
3240
|
const fallback = rest.options?.page?.fallback;
|
|
3243
3241
|
const sitemap = useSWRResource(projectSettings.SITEMAP || 'sitemap', fallback);
|
|
3244
3242
|
const { documents, relatedEnterprises, contacts, socialMedia, mobileApps, logo } = useSWRResource(projectSettings.FOOTER || 'footer', fallback);
|
|
3245
|
-
return (jsxs(BlockWrapper, { tag: "footer", className:
|
|
3243
|
+
return (jsxs(BlockWrapper, { tag: "footer", className: className, ...rest, children: [jsxs("div", { className: "flex items-stretch gap-[54px] pb-8 xl:gap-8", children: [jsx(Logo, { className: LEFT_COL_WIDTH_FULL_HD, logo: logo }), jsx(SearchBar$1, { className: "grow" })] }), jsxs("div", { className: "flex items-stretch gap-[54px] xl:gap-8", children: [jsxs("div", { className: `${LEFT_COL_WIDTH_FULL_HD} flex flex-col shrink-0 overflow-hidden`, children: [jsx(Contacts, { items: contacts, hasButton: true }), jsx(SocialMedia, { media: socialMedia, children: "\u0421\u043E\u0446\u0441\u0435\u0442\u0438" }), jsx(SocialMedia, { className: "mt-6", media: mobileApps, children: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" })] }), jsx(Sitemap, { className: "flex-grow", topItems: sitemap?.topItems })] }), jsx(HorizontalNavigation, { className: "mt-[98px]", links: relatedEnterprises }), jsx(TextInformation, { links: documents })] }));
|
|
3246
3244
|
});
|
|
3247
3245
|
|
|
3248
|
-
const GracePeriod = JSX(({ className = '', title, description, calendar, ...rest }) => (jsxs(BlockWrapper, { className:
|
|
3246
|
+
const GracePeriod = JSX(({ className = '', title, description, calendar, ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-default", ...rest, children: [jsx(Headline, { className: "!p-0 mb-4", title: title, description: description, headlineVersion: "M" }), calendar ? renderCalendar(calendar) : null] })));
|
|
3249
3247
|
const renderCalendar = (calendar) => {
|
|
3250
3248
|
const colCount = calendar.reduce((accumulator, currentValue) => currentValue?.month?.length ? accumulator + currentValue.month.length : accumulator, 0) || 1;
|
|
3251
3249
|
const colSize = 100 / colCount;
|
|
@@ -3259,7 +3257,7 @@
|
|
|
3259
3257
|
return (jsxs("div", { className: "w-full flex flex-col justify-center mt-13", children: [jsx("div", { className: "flex w-full mb-3 text-h6 text-center", children: mappedCalendar.map((_) => renderMonthNames(_, colSize)) }), jsx("div", { className: "flex w-full", children: mappedCalendar.map((_, ind) => (jsxs("div", { className: "pr-[11px] mr-3 border-r border-main-divider last:border-r-0 last:pr-0 last:mr-0", style: { flexBasis: _.flexBasis }, children: [jsx("div", { className: "flex", children: renderMonthImages(_) }), jsxs("div", { className: "text-s-light text-primary-text mt-3", children: [jsx("span", { children: _.text }), "\u2009", jsx("span", { className: "text-primary-main", children: _.greenText })] })] }, `monthItem-${ind}`))) })] }));
|
|
3260
3258
|
};
|
|
3261
3259
|
const renderMonthNames = (item, colSize) => item.month?.map((_, i) => (jsx("div", { style: { flexBasis: `${colSize}%` }, children: _.text }, `monthName-${i}`)));
|
|
3262
|
-
const renderMonthImages = (item) => item.month?.map((_) => _.image?.src ? (jsx("div", { className: "h-[207px] border-r pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0", children: jsx(
|
|
3260
|
+
const renderMonthImages = (item) => item.month?.map((_) => _.image?.src ? (jsx("div", { className: "h-[207px] border-r pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0", children: jsx(Img, { image: _.image, className: "flex" }) }, `monthImage-${_.image.src}`)) : null);
|
|
3263
3261
|
|
|
3264
3262
|
const STORAGE_DEFAULT_TTL = 86400000; // 24 * 60 * 60 * 1000
|
|
3265
3263
|
function useCachedAsyncData(key, fetcher, storage = globalThis?.localStorage) {
|
|
@@ -3363,7 +3361,7 @@
|
|
|
3363
3361
|
const ForeignOffice = JSX(({ icon, ...rest }) => {
|
|
3364
3362
|
const link = useLink();
|
|
3365
3363
|
const { text, target, href, onClick } = link(rest);
|
|
3366
|
-
return (jsxs("div", { className: "flex gap-x-3", children: [icon ? jsx(
|
|
3364
|
+
return (jsxs("div", { className: "flex gap-x-3", children: [icon ? jsx(Img, { pathPrefix: "/wcms-resources/", image: icon }) : null, text ? (jsx("a", { className: "hover:text-primary-hover", href: href, target: target, onClick: onClick, children: text })) : null] }));
|
|
3367
3365
|
});
|
|
3368
3366
|
|
|
3369
3367
|
const TopItem = JSX(({ className = '', active, flat, children, ...rest }) => {
|
|
@@ -3384,7 +3382,7 @@
|
|
|
3384
3382
|
};
|
|
3385
3383
|
const HeaderSecondaryMenuButton = JSX(({ className, isRounded, buttonSize = 'default', isGrayBg = false, disabled, ariaLabel, image, onClick, }) => (jsx("button", { className: style('group/btn border-0 flex shrink-0 items-center', isGrayBg ? 'p-3 rounded-full' : 'p-0 bg-inherit', isGrayBg && !isRounded ? 'bg-main-divider' : '', isRounded
|
|
3386
3384
|
? 'w-8 h-8 text-secondary-light hover:text-secondary-hove'
|
|
3387
|
-
: `${BUTTON_SIZE_STYLE[buttonSize]} text-primary-text hover:text-primary-main`, 'group-data-transparent:text-white', className), type: "button", disabled: disabled, "aria-label": ariaLabel, onClick: onClick, children: jsx(
|
|
3385
|
+
: `${BUTTON_SIZE_STYLE[buttonSize]} text-primary-text hover:text-primary-main`, 'group-data-transparent:text-white', className), type: "button", disabled: disabled, "aria-label": ariaLabel, onClick: onClick, children: jsx(Img, { image: image, className: style('h-full', isRounded ? 'bg-main-divider/20 rounded-full' : ''), imageClassName: "group-hover/btn:text-primary-hover group-hover/btn:invert-0" }) })));
|
|
3388
3386
|
|
|
3389
3387
|
const HeaderSecondaryMenu = JSX(({ className, version, locationName: location, officesLink }) => {
|
|
3390
3388
|
const iconVersion = version === 'transparent' ? 'white' : 'black';
|
|
@@ -3524,7 +3522,7 @@
|
|
|
3524
3522
|
const { topItems, logo, defaultLocation, foreignOffices, officesLink, internetBankUrl } = useSWRResource(projectSettings.SITEMAP || 'sitemap', rest.options?.page?.fallback);
|
|
3525
3523
|
const activeTopItem = topItems?.find(isTopItemActive(router));
|
|
3526
3524
|
const [location, onChangeLocation] = useLocation(defaultLocation);
|
|
3527
|
-
return (jsxs(BlockWrapper, { tag: "header", className: style('pt-6 px-20', showSubMenu && activeTopItem?.items?.length ? 'pb-4' : 'pb-5', className), version: version, ...rest, children: [jsxs("div", { className: "container", children: [jsxs("div", { className: "flex items-center", children: [jsx(Logo, { className: "mr-8", bgColor: bgColor, logo: logo }), topItems?.map((_, i) => (jsx(TopItem, { active: _ === activeTopItem, ..._ }, String(i)))), jsx(HeaderSecondaryMenu, { version: version, className: "ml-auto", locationName: location.name, officesLink: officesLink })] }), jsx("div", { className: style('mt-6 h-px bg-main-divider', version === 'transparent' ? 'opacity-30' : '') }), showSubMenu && activeTopItem?.items?.length ? (jsx(HeaderSubMenu, { subItems: activeTopItem.items, version: version, internetBankUrl: internetBankUrl })) : null] }), jsx(SearchDialog, { topItems: topItems }), jsx(LocationDialog, { currentLocation: location, foreignOffices: foreignOffices, onChangeLocation: onChangeLocation })] }));
|
|
3525
|
+
return (jsxs(BlockWrapper, { tag: "header", className: style('pt-6 px-20', showSubMenu && activeTopItem?.items?.length ? 'pb-4' : 'pb-5', className), defaultPadding: "", version: version, ...rest, children: [jsxs("div", { className: "container", children: [jsxs("div", { className: "flex items-center", children: [jsx(Logo, { className: "mr-8", bgColor: bgColor, logo: logo }), topItems?.map((_, i) => (jsx(TopItem, { active: _ === activeTopItem, ..._ }, String(i)))), jsx(HeaderSecondaryMenu, { version: version, className: "ml-auto", locationName: location.name, officesLink: officesLink })] }), jsx("div", { className: style('mt-6 h-px bg-main-divider', version === 'transparent' ? 'opacity-30' : '') }), showSubMenu && activeTopItem?.items?.length ? (jsx(HeaderSubMenu, { subItems: activeTopItem.items, version: version, internetBankUrl: internetBankUrl })) : null] }), jsx(SearchDialog, { topItems: topItems }), jsx(LocationDialog, { currentLocation: location, foreignOffices: foreignOffices, onChangeLocation: onChangeLocation })] }));
|
|
3528
3526
|
});
|
|
3529
3527
|
|
|
3530
3528
|
const gapStyles = {
|
|
@@ -3537,14 +3535,14 @@
|
|
|
3537
3535
|
'': '',
|
|
3538
3536
|
};
|
|
3539
3537
|
|
|
3540
|
-
const HorizontalLayout = JSX(({ className = '', gap = 'XS', isPadding = false, version = 'transparent', isTheme = false, ...rest }) => (jsx(BlockWrapper, { className: style('relative', 'grid grid-cols-12', isPadding ? 'p-default' : '',
|
|
3538
|
+
const HorizontalLayout = JSX(({ className = '', gap = 'XS', isPadding = false, version = 'transparent', isTheme = false, ...rest }) => (jsx(BlockWrapper, { className: style('relative', 'grid grid-cols-12', gapStyles[gap], className), defaultPadding: isPadding ? 'p-default' : '', version: version, isTheme: isTheme, ...rest, children: renderChildren(rest) })));
|
|
3541
3539
|
HorizontalLayout.childrenTypes = {
|
|
3542
3540
|
exclude: ['HorizontalLayout'],
|
|
3543
3541
|
};
|
|
3544
3542
|
|
|
3545
3543
|
const ImgBlock = JSX((props) => {
|
|
3546
3544
|
const { className, image, ...rest } = props;
|
|
3547
|
-
return (jsx(BlockWrapper, { className: className, ...rest, children: jsx(
|
|
3545
|
+
return (jsx(BlockWrapper, { className: className, defaultPadding: "p-0", ...rest, children: jsx(Img, { image: image }) }));
|
|
3548
3546
|
});
|
|
3549
3547
|
|
|
3550
3548
|
const InsuranceAmountBlockInner = JSX(({ className = '', cards = [], button }) => {
|
|
@@ -3585,19 +3583,19 @@
|
|
|
3585
3583
|
const btnClassName = isActive
|
|
3586
3584
|
? 'shadow-dark-blue border-primary-main'
|
|
3587
3585
|
: `ease-in duration-300 border-gray`;
|
|
3588
|
-
return (jsxs("button", { type: "button", onClick: onClick, className: `p-[30px] min-w-[460px] flex items-center bg-white border-solid border relative ${btnClassName}`, children: [slide?.icon ? (jsx(
|
|
3586
|
+
return (jsxs("button", { type: "button", onClick: onClick, className: `p-[30px] min-w-[460px] flex items-center bg-white border-solid border relative ${btnClassName}`, children: [slide?.icon ? (jsx(Img, { className: "p-5 rounded-full bg-secondary-light mr-[30px]", image: slide.icon, width: "108", height: "108" })) : null, jsxs("div", { className: "flex gap-3.5", children: [slide?.sum ? renderValueBlock$1('страховая сумма', slide.sum) : null, slide?.fee ? renderValueBlock$1('страховой взнос', slide.fee) : null] }), renderDoneIcon(isActive)] }, String(i)));
|
|
3589
3587
|
}
|
|
3590
3588
|
function renderValueBlock$1(title, sum) {
|
|
3591
3589
|
return (jsxs("div", { className: "flex flex-col text-left whitespace-pre", children: [jsxs("span", { className: "text-h6", children: [toLocalNumberFormat(2)(sum), " \u20BD"] }), jsx("span", { className: "text-secondary-text text-l mt-1", children: title })] }));
|
|
3592
3590
|
}
|
|
3593
3591
|
function renderDoneIcon(isActive) {
|
|
3594
|
-
return isActive ? (jsx(
|
|
3592
|
+
return isActive ? (jsx(Img, { className: `h-6 w-6 min-w-6 min-h-6 absolute right-4 top-4`, image: { icon: 'DoneIcon' }, width: "24", height: "24" })) : null;
|
|
3595
3593
|
}
|
|
3596
3594
|
|
|
3597
3595
|
const InsuranceAmountBlock = JSX(({ className = '', title, insuranceTabs = [], button, ...rest }) => {
|
|
3598
3596
|
const [activeSlideIndex, setActiveSlideIndex] = useState(0);
|
|
3599
3597
|
const handleActiveSlideIndex = useCallback((_) => setActiveSlideIndex(_), []);
|
|
3600
|
-
return (jsxs(BlockWrapper, { className:
|
|
3598
|
+
return (jsxs(BlockWrapper, { className: style('box-border overflow-hidden relative px-0', className), defaultPadding: "p-default", ...rest, children: [title ? jsx(Heading, { className: "text-center mb-8", title: title, headingType: "h3" }) : null, insuranceTabs?.length > 1 ? (jsx("div", { className: "p-1.5 bg-secondary-light w-fit mx-auto mb-7 rounded-md", children: insuranceTabs.map((item, i) => renderNavButton$1({
|
|
3601
3599
|
title: item?.title,
|
|
3602
3600
|
i,
|
|
3603
3601
|
isActive: Boolean(i === activeSlideIndex),
|
|
@@ -3635,11 +3633,11 @@
|
|
|
3635
3633
|
};
|
|
3636
3634
|
const InvestmentInfo = JSX((props) => {
|
|
3637
3635
|
const { className = '', items, isDotted, investmentZeroColumn, investmentColumns, ...rest } = props;
|
|
3638
|
-
const
|
|
3636
|
+
const columns = investmentColumns ? [...investmentColumns] : [];
|
|
3639
3637
|
if (investmentZeroColumn) {
|
|
3640
|
-
|
|
3638
|
+
columns.unshift(investmentZeroColumn);
|
|
3641
3639
|
}
|
|
3642
|
-
return (jsx(BlockWrapper, { className:
|
|
3640
|
+
return (jsx(BlockWrapper, { className: className, ...rest, children: jsxs("div", { className: "container text-m-light", children: [columns?.length ? (jsxs("div", { children: [jsxs("div", { className: "flex items-end relative pl-9 pr-5 text-white", children: [joinList(jsx("div", { className: "w-px h-4 bg-gray" }))(columns.map(renderInvestmentColumn)), jsx("div", { className: "absolute right-[30px] w-px h-4 bg-gray" })] }), jsx("div", { className: "border-t border-gray -mt-2 ml-9 mr-8" }), jsx("div", { className: "flex justify-between text-primary-text mt-3 -mx-10", children: columns.map(renderInvestmentColumnTitle) })] })) : null, items?.length ? (jsx(List, { className: "mt-9 max-w-[657px]", items: items, isDotted: isDotted, listItemSize: "M" })) : null] }) }));
|
|
3643
3641
|
});
|
|
3644
3642
|
const renderInvestmentColumn = (column, i, arr) => {
|
|
3645
3643
|
const isSecondColumn = i === 1;
|
|
@@ -3684,37 +3682,23 @@
|
|
|
3684
3682
|
double: 'flex-wrap',
|
|
3685
3683
|
single: 'flex-col',
|
|
3686
3684
|
};
|
|
3687
|
-
const LinkDocs = JSX(({ className = '', title, description, align = 'text-center', documents, icon = { icon: 'DocIcon' }, columnsMode = 'double', ...rest }) => (jsxs(BlockWrapper, { className:
|
|
3685
|
+
const LinkDocs = JSX(({ className = '', title, description, align = 'text-center', documents, icon = { icon: 'DocIcon' }, columnsMode = 'double', ...rest }) => (jsxs(BlockWrapper, { className: className, defaultPadding: "p-default", ...rest, children: [jsx(Headline, { className: "!p-0", title: title, description: description, align: align, headlineVersion: "M", as: "h2" }), documents?.length ? (jsx("div", { className: style('mt-8 flex gap-6', linkColumnsModeStyleMap[columnsMode]), role: "list", children: documents.map((doc, i) => (jsx("div", { className: columnsMode === 'double' ? 'basis-[calc(50%-20px)]' : '', role: "listitem", children: jsx(LinkDocsListItem, { doc: doc, icon: icon ? (jsx(Img, { className: "min-w-6 min-h-6", image: icon, width: "24", height: "24" })) : null }) }, String(i)))) })) : null] })));
|
|
3688
3686
|
|
|
3689
|
-
|
|
3690
|
-
const colSpan = getColSpan(className);
|
|
3691
|
-
if (colSpan <= 6) {
|
|
3692
|
-
return 'min-h-[300px]';
|
|
3693
|
-
}
|
|
3694
|
-
else if (colSpan <= 8) {
|
|
3695
|
-
return 'min-h-[320px]';
|
|
3696
|
-
}
|
|
3697
|
-
else {
|
|
3698
|
-
return 'min-h-[360px]';
|
|
3699
|
-
}
|
|
3700
|
-
}
|
|
3687
|
+
const renderDescription$2 = (description) => description ? (jsx("div", { className: "mb-5 pt-0.5 sm:mb-0 sm:pt-0", children: jsx(Text, { size: "text-xl", "font-weight": "light", children: description }) })) : null;
|
|
3701
3688
|
|
|
3702
|
-
const MobileAppTile = JSX(({ className = '', title = 'Мобильное приложение', qr, buttons, version = 'primary', items, image, headingType = 'h4', alignTitle = 'left', description, ...rest }) => {
|
|
3703
|
-
const containerStyle = version === 'secondary' ? 'p-3.5 min-w-[120px]' : 'min-w-[92px]';
|
|
3704
|
-
return (jsxs(BlockWrapper, { className: `flex justify-between p-default box-border relative min-h-80 ${getTileMinHeight(className)} ${className}`, version: version, ...rest, children: [jsxs(BaseTile, { className: "z-10", title: title ? (jsx(Heading, { headingType: headingType, as: "h3", title: title, className: `whitespace-pre-wrap mb-7 w-full ${AlignText[alignTitle]}` })) : null, buttons: renderButtonsSection(buttons, {
|
|
3705
|
-
className: 'mt-8',
|
|
3706
|
-
buttonClassName: 'min-w-[168px]',
|
|
3707
|
-
}), children: [renderDescription$2(description), jsxs("div", { className: "flex flex-1 items-center mb-3", children: [qr?.src ? (jsx("div", { className: `flex justify-center mr-5 bg-white rounded-md ${containerStyle}`, children: jsx(ImgInner, { className: "w-fit", image: qr }) })) : null, renderList$1(items)] })] }), image?.src ? (jsx("div", { className: "absolute right-0 bottom-0", children: jsx(ImgInner, { image: image }) })) : null] }));
|
|
3708
|
-
});
|
|
3709
3689
|
const renderList$1 = (items) => {
|
|
3710
|
-
return items?.length ? (jsx(List, { items: items,
|
|
3690
|
+
return items?.length ? (jsx(List, { items: items, className: "text-l-light mb-2 last:mb-0" })) : (jsx("span", { className: "text-m-light text-secondary-text", children: "\u041D\u0430\u0432\u0435\u0434\u0438\u0442\u0435 \u043A\u0430\u043C\u0435\u0440\u0443 \u0442\u0435\u043B\u0435\u0444\u043E\u043D\u0430 \u043D\u0430 QR-\u043A\u043E\u0434 \u0438 \u0441\u043A\u0430\u0447\u0430\u0439\u0442\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }));
|
|
3711
3691
|
};
|
|
3712
|
-
|
|
3692
|
+
|
|
3693
|
+
const MobileAppTile = JSX(({ className, padding, alignTitle = 'left', buttons = [], description, headingType = 'h4', image, items, qr, title = 'Мобильное приложение', version = 'primary', ...rest }) => {
|
|
3694
|
+
const containerStyle = version === 'secondary' ? 'p-3.5 min-w-[120px]' : 'min-w-[92px]';
|
|
3695
|
+
return (jsx(BlockWrapper, { className: style('min-h-80', className), defaultPadding: "p-0", version: version, ...rest, children: jsxs(BaseTile, { className: "h-full", padding: padding, defaultPadding: "p-default", title: title ? (jsx(Heading, { headingType: headingType, title: title, className: style('whitespace-pre-wrap', AlignText[alignTitle]) })) : null, backImage: image?.src ? jsx(Img, { image: image }) : null, buttons: renderButtonsSection(buttons, { isVertical: buttons.length > 3 }), children: [renderDescription$2(description), jsxs("div", { className: "flex flex-1 gap-s items-center", children: [qr?.src ? (jsx("div", { className: style('flex justify-center bg-white rounded-md', containerStyle), children: jsx(Img, { className: "w-fit", image: qr }) })) : null, renderList$1(items)] })] }) }));
|
|
3696
|
+
});
|
|
3713
3697
|
|
|
3714
3698
|
const initialFiltrationState = {};
|
|
3715
3699
|
const MortgageFiltration = JSX(({ className, filtrationSchema = {}, resetButton, ...rest }) => {
|
|
3716
3700
|
const [filtrationState, { field, reset }] = useForm(initialFiltrationState);
|
|
3717
|
-
return (jsxs(BlockWrapper, { className: style(className), version: "transparent", ...rest, children: [renderFiltrationForm({ field, reset, filtrationSchema, resetButton }), jsx(BaseFiltrationInner, { filtrationState: filtrationState, ...rest })] }));
|
|
3701
|
+
return (jsxs(BlockWrapper, { className: style(className), defaultPadding: "p-0", version: "transparent", ...rest, children: [renderFiltrationForm({ field, reset, filtrationSchema, resetButton }), jsx(BaseFiltrationInner, { filtrationState: filtrationState, ...rest })] }));
|
|
3718
3702
|
});
|
|
3719
3703
|
MortgageFiltration.childrenTypes = ['ProductTile'];
|
|
3720
3704
|
MortgageFiltration.childSchema = (content) => content?.filtrationSchema || {};
|
|
@@ -4072,18 +4056,18 @@
|
|
|
4072
4056
|
return (jsxs("div", { className: `flex flex-col font-sans bg-white w-full ${className}`, children: [jsxs("div", { className: "flex flex-col px-12 pt-12", children: [jsxs("div", { className: "flex justify-between", children: [jsx("div", { className: "text-h2", children: name }), renderCurrentDaySchedule(currentWeekDay)] }), jsxs("div", { className: "flex text-l-light pt-4", children: [jsx(Icon, { name: "GeolocationIcon", width: "24", height: "24", className: "pr-1" }), address] }), jsx("div", { className: "flex pt-4", children: nearbyOffices.map(renderNearbyOffice) })] }), jsxs("div", { className: "flex justify-between pt-8", children: [jsx("div", { className: "flex-grow h-full w-full overflow-hidden", children: point ? jsx(YandexMap, { points: [point], className: "h-full" }) : null }), jsx("div", { className: "w-[434px] min-w-[434px] pl-9 pr-12 pb-14 flex flex-col", children: workScheduleWeek.map(renderDay) })] })] }));
|
|
4073
4057
|
});
|
|
4074
4058
|
|
|
4075
|
-
const OfficeServicesBlock = JSX(({ className = '', title, servicesList, ...rest }) => (jsxs(BlockWrapper, { className:
|
|
4076
|
-
const renderListItems = (itemList, i) => (jsxs("li", { className: "flex mb-5 last:mb-0 list-none", children: [itemList.icon ? (jsx(
|
|
4059
|
+
const OfficeServicesBlock = JSX(({ className = '', title, servicesList, ...rest }) => (jsxs(BlockWrapper, { className: style('flex flex-col', className), ...rest, children: [title ? jsx(Heading, { headingType: "h5", className: "mb-5", title: title }) : null, servicesList?.length ? (jsx("ul", { className: "list-none m-0 p-0", children: servicesList.map(renderListItems) })) : null] })));
|
|
4060
|
+
const renderListItems = (itemList, i) => (jsxs("li", { className: "flex mb-5 last:mb-0 list-none", children: [itemList.icon ? (jsx(Img, { className: "mr-3 min-w-6 min-h-6 w-6 h-6", width: "24", height: "24", image: itemList.icon })) : null, itemList.label ? jsx("span", { className: "text-l-light", children: itemList.label }) : null] }, `list_item_${String(i)}`));
|
|
4061
|
+
|
|
4062
|
+
const ParagraphBlock = JSX(({ text, size, align, font, children, ...rest }) => (jsx(BlockWrapper, { defaultPadding: "p-0", ...rest, children: jsx(Paragraph, { size: size, align: align, font: font, children: text || children }) })));
|
|
4063
|
+
|
|
4064
|
+
const avg = (items = []) => (items?.length ? sum(items) / items.length : 0);
|
|
4077
4065
|
|
|
4078
|
-
const
|
|
4066
|
+
const deviation = (items) => items?.length ? Math.sqrt(Math.abs(avg(items.map((_) => _ ** 2)) - avg(items) ** 2)) : 0;
|
|
4079
4067
|
|
|
4080
4068
|
const labelSize$1 = 'text-h6';
|
|
4081
4069
|
|
|
4082
|
-
const BenefitItem = JSX((
|
|
4083
|
-
const { className = '', icon, label, description, benefitsVersion = 'normal' } = props;
|
|
4084
|
-
const listItemAlign = description ? 'items-start' : 'items-center';
|
|
4085
|
-
return (jsxs("div", { className: `flex gap-5 ${listItemAlign} ${className}`, children: [icon ? (jsx("div", { className: getBenefitIconBgStyle(benefitsVersion), children: jsx(ImgInner, { className: "w-6 h-6", image: { ...icon, iconVersion: icon.iconVersion || benefitsVersion } }) })) : null, jsxs("div", { className: "gap-0.5", children: [label ? (jsx(Text, { color: "text-primary-text group-data-secondary:text-white", size: labelSize$1, children: label })) : null, description ? (jsx(Paragraph, { font: "font-light", size: "text-m", color: "text-secondary-text group-data-secondary:text-white", children: description })) : null] })] }));
|
|
4086
|
-
});
|
|
4070
|
+
const BenefitItem = JSX(({ className, icon, label, description, benefitsVersion = 'normal' }) => (jsxs("div", { className: style('flex gap-s', description ? 'items-start' : 'items-center', className), children: [icon ? (jsx("div", { className: getBenefitIconBgStyle(benefitsVersion), children: jsx(Img, { className: "w-6 h-6", image: { ...icon, iconVersion: icon.iconVersion || benefitsVersion } }) })) : null, jsxs("div", { className: "gap-0.5", children: [label ? (jsx(Text, { color: "text-primary-text group-data-secondary:text-white", size: labelSize$1, children: label })) : null, description ? (jsx(Paragraph, { font: "font-light", size: "text-m", color: "text-secondary-text group-data-secondary:text-white", children: description })) : null] })] })));
|
|
4087
4071
|
function getBenefitIconBgStyle(benefitsVersion) {
|
|
4088
4072
|
const bgColorStyle = benefitsVersion === 'normal'
|
|
4089
4073
|
? 'bg-secondary-light text-primary-main'
|
|
@@ -4091,102 +4075,59 @@
|
|
|
4091
4075
|
return style('w-12 h-12 min-w-12 p-2.5 box-border flex items-center justify-center rounded-icon', bgColorStyle);
|
|
4092
4076
|
}
|
|
4093
4077
|
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
// eslint-disable-next-line consistent-return
|
|
4098
|
-
(version) => (benefit, i) => {
|
|
4099
|
-
const { type } = benefit;
|
|
4100
|
-
if (!(type === 'default' || type === 'rte')) {
|
|
4101
|
-
return null;
|
|
4102
|
-
}
|
|
4103
|
-
switch (type) {
|
|
4104
|
-
case 'default':
|
|
4105
|
-
return (jsx(BenefitItem, { icon: benefit.icon, label: benefit.label, description: benefit.description, version: version }, String(i)));
|
|
4106
|
-
case 'rte':
|
|
4107
|
-
return jsx(RichText, { __html: benefit.__html });
|
|
4108
|
-
default:
|
|
4109
|
-
assertUnreachable(benefit);
|
|
4078
|
+
const renderBenefit$1 = (benefitsVersion) => ({ type, ...benefit }, i) => {
|
|
4079
|
+
if (type === 'rte' && '__html' in benefit) {
|
|
4080
|
+
return jsx(RichText, { __html: benefit.__html });
|
|
4110
4081
|
}
|
|
4082
|
+
return jsx(BenefitItem, { benefitsVersion: benefitsVersion, ...benefit }, String(i));
|
|
4111
4083
|
};
|
|
4112
4084
|
|
|
4113
|
-
const
|
|
4085
|
+
const MAX_BENEFITS_LEN_DEVIATION = 16;
|
|
4086
|
+
const benefitLength = (_) => _.type === 'rte'
|
|
4087
|
+
? _.__html?.length || 0
|
|
4088
|
+
: Math.max(_.label?.length || 0, _.description?.length || 0);
|
|
4089
|
+
const isDistortedBenefits = (benefits) => deviation(benefits.map(benefitLength)) > MAX_BENEFITS_LEN_DEVIATION;
|
|
4090
|
+
const BenefitsList = JSX(({ className, benefitsVersion = 'normal', benefits }) => benefits?.length ? (jsx("div", { className: style('flex gap-x-m gap-y-s', isDistortedBenefits(benefits) ? 'flex-col' : 'flex-wrap', className), children: benefits.map(renderBenefit$1(benefitsVersion)) })) : null);
|
|
4114
4091
|
|
|
4115
|
-
const
|
|
4092
|
+
const Tags = JSX(({ className, tags }) => tags?.length ? (jsx("div", { className: style('flex flex-wrap gap-xs', className), role: "list", children: tags.map(renderTag) })) : null);
|
|
4093
|
+
const renderTag = (tag, key) => (jsx("div", { className: "py-2 px-2.5 border-solid border rounded-md border-gray", role: "listitem", children: jsx(Text, { size: "text-m-light", children: tag }) }, String(key)));
|
|
4116
4094
|
|
|
4117
|
-
const
|
|
4118
|
-
|
|
4095
|
+
const BaseProductTile = JSX(({ className, title, description, headlineVersion = 'L', align = 'text-left', isInsetTitle = true, benefits, benefitsVersion, __html, items, isDotted = true, listItemSize, tags, buttons, image, imageOptions: { imageAlign, directionRight = true } = {}, children, }) => {
|
|
4096
|
+
const img = image?.src ? jsx(Img, { image: image }) : null;
|
|
4097
|
+
const headline = (jsx(Headline, { title: title, description: description, headlineVersion: headlineVersion, align: align, isPadding: false }));
|
|
4098
|
+
return (jsx(BaseTile, { className: className, ...(isInsetTitle ? { insetTitle: headline } : { title: headline }), ...(directionRight ? { rightImage: img } : { leftImage: img }), imageAlign: imageAlign, buttons: renderButtonsSection(buttons), children: jsxs("div", { className: "flex flex-col gap-m", children: [jsx(BenefitsList, { benefitsVersion: benefitsVersion, benefits: benefits }), __html ? jsx(RichText, { __html: __html }) : null, items?.length ? (jsx(List, { items: items, isDotted: isDotted, listItemSize: listItemSize })) : null, children, tags?.length ? jsx(Tags, { tags: tags }) : null] }) }));
|
|
4099
|
+
});
|
|
4119
4100
|
|
|
4120
|
-
const renderInsuranceSumMonth = (sum
|
|
4121
|
-
const renderValueBlock = (title,
|
|
4122
|
-
const widthStyle = isAnotherBlock ? 'w-fit' : 'w-full';
|
|
4123
|
-
return (jsxs("div", { className: style(`flex w-full whitespace-pre`, styleValueBlock, widthStyle), children: [jsx(Text, { font: "font-light", size: "text-l", children: title }), jsxs(Text, { size: "text-h6", color: styleValueBlockText, children: [toLocalNumberFormat(2)(sum), " \u20BD"] })] }));
|
|
4124
|
-
};
|
|
4101
|
+
const renderInsuranceSumMonth = (sum, monthLimit) => sum || monthLimit ? (jsxs("div", { className: "flex flex-wrap xl:flex-nowrap xl:bg-main-divider xl:rounded-md p-xs gap-m", children: [Number(sum) > 0 ? renderValueBlock('Страховая сумма:', sum) : null, Number(monthLimit) > 0 ? renderValueBlock('Ежемесячный лимит:', monthLimit) : null] })) : null;
|
|
4102
|
+
const renderValueBlock = (title, value = 0) => (jsxs("div", { className: "basis-full flex flex-col-reverse sm:flex-row sm:justify-between items-baseline whitespace-pre", children: [jsx(Text, { font: "font-light", size: "text-l", children: title }), jsxs(Text, { size: "text-h6", color: "text-primary-text", children: [toLocalNumberFormat(2)(value), " \u20BD"] })] }));
|
|
4125
4103
|
|
|
4126
|
-
const PictureText = JSX(({ className = '',
|
|
4127
|
-
, align: "text-left" }), jsxs("div", { className: style('flex mt-6', positionStyle), children: [image?.src ? jsx(ImgInner, { className: directionRight ? 'order-2' : '', image: image }) : null, jsxs("div", { children: [benefits?.length ? (jsx("div", { className: "flex flex-col gap-4", children: benefits.map(renderBenefit$2(version)) })) : null, renderInsuranceSumMonth(Number(sum), Number(monthLimit))] })] })] })));
|
|
4128
|
-
|
|
4129
|
-
function getTileHeadingType(className = '') {
|
|
4130
|
-
const colSpan = getColSpan(className);
|
|
4131
|
-
if (colSpan <= 4) {
|
|
4132
|
-
return 'S';
|
|
4133
|
-
}
|
|
4134
|
-
else if (colSpan <= 8) {
|
|
4135
|
-
return 'M';
|
|
4136
|
-
}
|
|
4137
|
-
else {
|
|
4138
|
-
return 'L';
|
|
4139
|
-
}
|
|
4140
|
-
}
|
|
4141
|
-
|
|
4142
|
-
function getTileRightPadding(className = '') {
|
|
4143
|
-
const colSpan = getColSpan(className);
|
|
4144
|
-
if (colSpan <= 6) {
|
|
4145
|
-
return 'pr-9';
|
|
4146
|
-
}
|
|
4147
|
-
else if (colSpan <= 8) {
|
|
4148
|
-
return 'pr-[4.75rem]';
|
|
4149
|
-
}
|
|
4150
|
-
else {
|
|
4151
|
-
return 'pr-[9.4rem]';
|
|
4152
|
-
}
|
|
4153
|
-
}
|
|
4104
|
+
const PictureText = JSX(({ className, headlineVersion = 'M', align = 'text-center', sum, monthLimit, ...rest }) => (jsx(BlockWrapper, { className: className, defaultPadding: "p-default", ...rest, children: jsx(BaseProductTile, { className: "h-full", headlineVersion: headlineVersion, align: align, isInsetTitle: false, ...rest, imageOptions: { directionRight: false, imageAlign: 'center', ...rest.imageOptions }, children: renderInsuranceSumMonth(Number(sum), Number(monthLimit)) }) })));
|
|
4154
4105
|
|
|
4155
4106
|
const GOLDEN_RATIO = 1.618;
|
|
4156
|
-
const Placeholder = JSX(({ className, title, description = 'Блок в разработке...', ...rest }) => {
|
|
4157
|
-
return (jsxs(BlockWrapper, { className: style('p-9 box-border', className, getTileRightPadding(className), getTileMinHeight(className)), ...rest, children: [jsx(Headline, { className: "!p-0 max-w-[600px]", title: title, description: description, headlineVersion: getTileHeadingType(className) }), jsx("figure", { className: "m-0 min-w-[80%]", children: renderShimmer() })] }));
|
|
4158
|
-
});
|
|
4107
|
+
const Placeholder = JSX(({ className, title, description = 'Блок в разработке...', ...rest }) => (jsxs(BlockWrapper, { className: style('box-border', className), ...rest, children: [jsx(Headline, { className: "max-w-[600px]", title: title, description: description, headlineVersion: "L", align: "text-left", isPadding: false }), jsx("figure", { className: "m-0 mt-m min-w-[80%]", children: renderShimmer() })] })));
|
|
4159
4108
|
const renderShimmer = (size = 3) => goldenSequence(100, size)
|
|
4160
4109
|
.map((_) => Math.floor(_))
|
|
4161
4110
|
.map(renderShimmerItem);
|
|
4162
4111
|
const renderShimmerItem = (width, index) => (jsx("div", { style: { width: `${width || 100}%` }, className: "h-4 mt-2 bg-secondary-light" }, String(index)));
|
|
4163
4112
|
const goldenSequence = (first, size) => [first].concat(size > 0 ? goldenSequence(first / GOLDEN_RATIO, size - 1) : []);
|
|
4164
4113
|
|
|
4165
|
-
const renderBenefit$1 = (version = 'primary', benefitsVersion = 'normal') => (props, i) => jsx(BenefitItem, { version: version, benefitsVersion: benefitsVersion, ...props }, String(i));
|
|
4166
|
-
|
|
4167
|
-
const ProductBlockInner = JSX(({ className, version = 'primary', headlineVersion = 'L', title, description, benefits, benefitsVersion, items, isDotted = true, __html, buttons, image, directionRight = true, }) => {
|
|
4168
|
-
const benefitsWithLabel = benefits?.filter((_) => _.label);
|
|
4169
|
-
const img = image?.src ? jsx(ImgInner, { className: "mt-[-50px]", image: image }) : null;
|
|
4170
|
-
return (jsxs(BaseTile, { className: className, insetTitle: jsx(Headline, { className: "max-w-[600px] xl:max-w-[728px]", title: title, description: description, headlineVersion: headlineVersion, align: "text-left", isPadding: false }), ...(directionRight ? { rightImage: img } : { leftImage: img }), buttons: renderButtonsSection(buttons), children: [benefitsWithLabel?.length ? (jsx("div", { className: "flex flex-wrap gap-6", children: benefitsWithLabel.map(renderBenefit$1(version, benefitsVersion)) })) : null, __html ? (jsx("div", { className: "mt-5", children: jsx(RichText, { __html: __html }) })) : null, items?.length ? jsx(List, { className: "mt-5", items: items, isDotted: isDotted }) : null] }));
|
|
4171
|
-
});
|
|
4172
|
-
|
|
4173
4114
|
function renderBackwardButton({ text, href, target, icon }, version) {
|
|
4174
4115
|
const iconVersion = version === 'primary' ? 'white' : 'black';
|
|
4175
4116
|
const commonProps = { text, href, target, ariaLabel: text };
|
|
4176
|
-
return (jsxs("div", { className: "flex items-center gap-3", children: [jsx(Button, { className: "w-12 h-12 min-h-12 min-w-12 flex items-center justify-center", version: version, rounded: true, ...commonProps, children: jsx(
|
|
4117
|
+
return (jsxs("div", { className: "flex items-center gap-3", children: [jsx(Button, { className: "w-12 h-12 min-h-12 min-w-12 flex items-center justify-center", version: version, rounded: true, ...commonProps, children: jsx(Img, { className: "w-4 h-4", image: {
|
|
4177
4118
|
...icon,
|
|
4178
4119
|
icon: icon?.icon || 'ArrowLeftIcon',
|
|
4179
4120
|
iconVersion: icon?.iconVersion || iconVersion,
|
|
4180
4121
|
} }) }), jsx(Button, { version: "link", ...commonProps })] }));
|
|
4181
4122
|
}
|
|
4182
4123
|
|
|
4183
|
-
const ProductBlock = JSX(({ className, backwardButton, ...rest }) => (jsxs(BlockWrapper, { className: style('overflow-hidden
|
|
4124
|
+
const ProductBlock = JSX(({ className, backwardButton, ...rest }) => (jsxs(BlockWrapper, { className: style('overflow-hidden flex flex-col gap-lg box-border', className), defaultPadding: "p-default", ...rest, children: [backwardButton?.text
|
|
4184
4125
|
? renderBackwardButton(backwardButton, !rest.version || rest.version === 'primary' ? 'primary' : 'white')
|
|
4185
|
-
: null, jsx(
|
|
4126
|
+
: null, jsx(BaseProductTile, { className: "grow h-full", ...rest })] })));
|
|
4186
4127
|
|
|
4187
4128
|
const ProductGallery = JSX(({ className = '', slides = [], ...rest }) => {
|
|
4188
4129
|
const [activeSlideIndex, setActiveSlideIndex] = useState(0);
|
|
4189
|
-
return (jsxs(BlockWrapper, { className: style('box-border
|
|
4130
|
+
return (jsxs(BlockWrapper, { className: style('box-border overflow-hidden', className), defaultPadding: "py-default", ...rest, children: [jsx("div", { className: "flex duration-1000", style: { transform: `translateX(-${activeSlideIndex * 100}%)` }, role: "list", children: slides.map(({ productBlock }, i) => (jsx("div", { className: "box-border grow-0 shrink-0 basis-full", role: "listitem", children: jsx(BaseProductTile, { className: "pl-default h-full", headlineVersion: "XXL", ...productBlock, ...rest }) }, String(i)))) }), jsx("div", { className: "h-28 px-xs mt-m -mb-m flex gap-xs box-border", children: slides.map(renderNavButton({ activeSlideIndex, onClick: setActiveSlideIndex })) })] }));
|
|
4190
4131
|
});
|
|
4191
4132
|
const renderNavButton = ({ activeSlideIndex, onClick }) => ({ nav }, i) => {
|
|
4192
4133
|
const isActive = i === activeSlideIndex;
|
|
@@ -4237,10 +4178,10 @@
|
|
|
4237
4178
|
if (!image?.src) {
|
|
4238
4179
|
return null;
|
|
4239
4180
|
}
|
|
4240
|
-
return (jsx(
|
|
4181
|
+
return (jsx(Img, { className: style('absolute', directionRight ? 'right-0' : 'left-0', 'bottom-0'), image: image }));
|
|
4241
4182
|
}
|
|
4242
4183
|
|
|
4243
|
-
const ProductTile = JSX(({ className = '', title, headlineVersion = 'S', description, additionalDescription, benefits = [], buttons, image, directionRight = true, ...rest }) => (jsxs(BlockWrapper, { className: style('overflow-hidden
|
|
4184
|
+
const ProductTile = JSX(({ className = '', title, headlineVersion = 'S', description, additionalDescription, benefits = [], buttons, image, directionRight = true, ...rest }) => (jsxs(BlockWrapper, { className: style('overflow-hidden box-border relative min-h-[364px] flex flex-col justify-between', className), ...rest, children: [jsxs("div", { className: style('flex flex-col', directionRight ? '' : 'items-end'), children: [jsx(Headline, { className: style('!p-0 !bg-transparent z-10', title || description ? 'mb-3.5' : ''), title: title, description: description, headlineVersion: headlineVersion, as: "h2", align: "text-left" }), renderBenefits(benefits, image), renderAdditionalDescription(additionalDescription, image)] }), renderButtonsSection(buttons, {
|
|
4244
4185
|
className: style('mt-5 text-l', directionRight ? '' : 'justify-end'),
|
|
4245
4186
|
}), renderImage$1(image, directionRight)] })));
|
|
4246
4187
|
function renderBenefits(benefits, image) {
|
|
@@ -4252,7 +4193,7 @@
|
|
|
4252
4193
|
return (jsx("div", { className: style('z-10 grid grid-cols-[max-content_1fr] auto-rows-auto gap-x-6 gap-y-2.5 items-baseline', benefitsWidth), children: benefits.length ? benefits.map(renderBenefit) : null }));
|
|
4253
4194
|
}
|
|
4254
4195
|
|
|
4255
|
-
const PromoTile = JSX(({ className
|
|
4196
|
+
const PromoTile = JSX(({ className, title = 'Акции и спецпредложения', description, headlineVersion = 'S', date, buttons = [], ...rest }) => (jsx(BlockWrapper, { className: style('box-border', className), ...rest, children: jsxs(BaseTile, { className: "h-full", title: title ? (jsx(Headline, { title: title, headlineVersion: headlineVersion, align: "text-left", isPadding: false })) : null, buttons: renderButtonsSection(buttons), children: [date ? jsx("div", { className: "text-s mb-2", children: formatDate(date) }) : null, jsx("div", { className: "text-l", children: description })] }) })));
|
|
4256
4197
|
function formatDate(date) {
|
|
4257
4198
|
const dateObj = new Date(date);
|
|
4258
4199
|
const dateFormat = {
|
|
@@ -4263,34 +4204,35 @@
|
|
|
4263
4204
|
return dateObj.toLocaleString('ru-RU', dateFormat).replace('г.', '');
|
|
4264
4205
|
}
|
|
4265
4206
|
|
|
4266
|
-
const RepresentativeOfficeInfo = JSX(({ address, email, telephone, button, className = '', __html, icon, title, version = 'primary', ...rest }) => (jsxs(BlockWrapper, { className: style('box-border text-left
|
|
4207
|
+
const RepresentativeOfficeInfo = JSX(({ address, email, telephone, button, className = '', __html, icon, title, version = 'primary', ...rest }) => (jsxs(BlockWrapper, { className: style('box-border text-left', className), version: version, ...rest, children: [jsxs("div", { className: "w-full flex justify-between", children: [title ? jsx(Heading, { headingType: "h4", as: "h3", className: "mb-6", title: title }) : null, renderIconBlock(icon)] }), jsxs("div", { className: "w-full", children: [__html ? renderDescriptionBlock(__html) : null, renderBlock('Адрес', address, 'GeolocationIcon'), renderBlock('Телефон', telephone, 'PhoneIcon'), renderBlock('E-mail', email, 'MailIcon'), button?.text
|
|
4267
4208
|
? renderButtonsSection([button], {
|
|
4268
4209
|
className: 'mb-6',
|
|
4269
4210
|
})
|
|
4270
4211
|
: null] })] })));
|
|
4271
|
-
const renderIconBlock = (icon) => (jsxs("div", { className: "self-end", children: [icon?.src ? jsx(
|
|
4212
|
+
const renderIconBlock = (icon) => (jsxs("div", { className: "self-end", children: [icon?.src ? jsx(Img, { image: icon }) : null, icon?.icon ? jsx(Img, { image: icon }) : null] }));
|
|
4272
4213
|
const renderDescriptionBlock = (__html) => (jsx("div", { className: "border-b border-main-divider pb-5 my-5", children: jsx(RichText, { __html: __html }) }));
|
|
4273
4214
|
const renderBlock = (blockName, data, iconName) => (jsxs("div", { className: "flex mb-4", children: [jsx(Icon, { className: "pr-4", iconVersion: "black", name: iconName, width: "24", height: "24" }), jsxs("div", { className: "flex flex-col first:pb-1", children: [jsx(Text, { size: "text-m-light", children: blockName }), data ? (jsx(Text, { size: "text-h6", color: "text-green", children: data })) : null] })] }));
|
|
4274
4215
|
|
|
4275
4216
|
const RichTextBlock = JSX((props) => {
|
|
4276
4217
|
const { __html, richVersion, ...rest } = props;
|
|
4277
|
-
return (jsx(BlockWrapper, { ...rest, children: jsx(RichText, { __html: __html, richVersion: richVersion }) }));
|
|
4218
|
+
return (jsx(BlockWrapper, { defaultPadding: "p-0", ...rest, children: jsx(RichText, { __html: __html, richVersion: richVersion }) }));
|
|
4278
4219
|
});
|
|
4279
4220
|
|
|
4280
|
-
const renderRoundedIcon = (icon, iconBgVersion) => null;
|
|
4281
|
-
|
|
4282
4221
|
const foldableSectionStyles = 'grid grid-cols-12 [&>*]:pb-4';
|
|
4283
4222
|
|
|
4284
4223
|
const getIconName = (isUnfolded) => (isUnfolded ? 'MinusIcon' : 'PlusIcon');
|
|
4285
4224
|
|
|
4286
4225
|
const labelSize = 'text-h6';
|
|
4287
4226
|
|
|
4227
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4228
|
+
const renderRoundedIcon = (_icon, _iconBgVersion) => null;
|
|
4229
|
+
|
|
4288
4230
|
const rollupIconVersion = 'color';
|
|
4289
4231
|
|
|
4290
4232
|
const rollupItemStyles = 'border-0 border-b border-solid border-main-divider last:border-b-0';
|
|
4291
4233
|
|
|
4292
4234
|
const RollupItem = JSX(({ className = '', label = 'Развернуть', labelIcon, labelIconBgVersion, isExpanded, isFoldButtonOnTop = true, version = 'primary', ...rest }) => {
|
|
4293
|
-
return (jsx(BlockWrapper, { className: style('w-full', rollupItemStyles, className), tag: "div", version: "transparent", ...rest, children: jsx(Foldable, { isFoldButtonOnTop: isFoldButtonOnTop, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => (jsx(FoldableSection, { className: style('gap-5 [&>*]:p-0', foldableSectionStyles), isUnfolded: isUnfolded, children: renderChildren(rest) })), renderFoldButton: ({ isUnfolded, onToggle }) => renderFoldButton({
|
|
4235
|
+
return (jsx(BlockWrapper, { className: style('w-full', rollupItemStyles, className), defaultPadding: "p-0", tag: "div", version: "transparent", ...rest, children: jsx(Foldable, { isFoldButtonOnTop: isFoldButtonOnTop, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => (jsx(FoldableSection, { className: style('gap-5 [&>*]:p-0', foldableSectionStyles), isUnfolded: isUnfolded, children: renderChildren(rest) })), renderFoldButton: ({ isUnfolded, onToggle }) => renderFoldButton({
|
|
4294
4236
|
version,
|
|
4295
4237
|
label,
|
|
4296
4238
|
labelIcon,
|
|
@@ -4313,18 +4255,7 @@
|
|
|
4313
4255
|
})) : (jsx(DefaultFoldButton, { label: label, icon: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', onClick: onToggle }));
|
|
4314
4256
|
};
|
|
4315
4257
|
const renderPrimaryFoldButton = ({ label, labelIconBgVersion, icon, onToggle, labelIcon, }) => {
|
|
4316
|
-
return (jsxs("button", { className: style('border-none bg-transparent px-0 flex justify-between items-center w-full
|
|
4317
|
-
};
|
|
4318
|
-
|
|
4319
|
-
const SAFEBOXES_URL = '/api/v1/safeboxes';
|
|
4320
|
-
const EMPTY_VALUE = [];
|
|
4321
|
-
function useSafeBoxes(regionCode) {
|
|
4322
|
-
const { data } = useAsyncData(regionCode ? `${SAFEBOXES_URL}?regionCode=${regionCode}` : null, fetchSafeBoxes);
|
|
4323
|
-
return data || EMPTY_VALUE;
|
|
4324
|
-
}
|
|
4325
|
-
const fetchSafeBoxes = async (url) => {
|
|
4326
|
-
const result = await fetchJSON(url, { method: 'GET' });
|
|
4327
|
-
return result || EMPTY_VALUE;
|
|
4258
|
+
return (jsxs("button", { className: style('border-none bg-transparent px-0 flex justify-between items-center w-full group/button', labelIcon?.icon ? 'py-2' : 'py-5'), onClick: onToggle, children: [jsxs("div", { className: "flex items-center group-hover/button:text-primary-main", children: [renderRoundedIcon(), label ? (jsx(Text, { size: labelSize, font: "font-normal", children: label })) : null] }), icon ? jsx(Icon, { name: icon, iconVersion: rollupIconVersion, width: "24", height: "24" }) : null] }));
|
|
4328
4259
|
};
|
|
4329
4260
|
|
|
4330
4261
|
const WrapperSelect = JSX(({ data, fieldLabel, fieldValue, selected, placeholder = '', setSelected, label }) => {
|
|
@@ -4366,7 +4297,7 @@
|
|
|
4366
4297
|
|
|
4367
4298
|
const SafeDepositRentalTotal = JSX(({ days, tariffs = [] }) => {
|
|
4368
4299
|
const price = calculatePrice(days, tariffs);
|
|
4369
|
-
return (jsxs("div", { className: "flex flex-col justify-between", children: [jsxs("div", { className: "flex", children: [renderTotal('Аренда за', days, 'mr-11'), renderTotal('Цена', price + ' ₽')] }), jsxs("div", { className: "bg-primary-main px-10 pt-10 pb-4 text-center", children: [jsx(
|
|
4300
|
+
return (jsxs("div", { className: "flex flex-col justify-between", children: [jsxs("div", { className: "flex", children: [renderTotal('Аренда за', days, 'mr-11'), renderTotal('Цена', price + ' ₽')] }), jsxs("div", { className: "bg-primary-main px-10 pt-10 pb-4 text-center", children: [jsx(Img, { image: { icon: 'PackA4Icon' }, width: "290", height: "257" }), jsxs("span", { className: "text-s-light text-white opacity-80 mt-2 inline-block", children: ["\u041D\u0430 \u0440\u0438\u0441\u0443\u043D\u043A\u0438 \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0430 \u043F\u0430\u0447\u043A\u0430", jsx("br", {}), " \u043B\u0438\u0441\u0442\u043E\u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0430 \u04104"] })] })] }));
|
|
4370
4301
|
});
|
|
4371
4302
|
const renderTotal = (label, total, className = '') => {
|
|
4372
4303
|
return (jsxs("div", { className: className, children: [jsx("div", { className: "text-m-light text-secondary-text mb-1", children: label }), jsx("span", { className: "text-h3 text-primary-text", children: total })] }));
|
|
@@ -4422,6 +4353,17 @@
|
|
|
4422
4353
|
const getCaseVolume = (caseVolumes, selectedCaseVolume) => caseVolumes?.find((_) => _.volume === selectedCaseVolume);
|
|
4423
4354
|
const getTariffs = (safeBoxCases, selectedBoxSize) => safeBoxCases?.find((_) => _.safeBoxCasesSize === selectedBoxSize)?.tariffs;
|
|
4424
4355
|
|
|
4356
|
+
const SAFEBOXES_URL = '/api/v1/safeboxes';
|
|
4357
|
+
const EMPTY_VALUE = [];
|
|
4358
|
+
function useSafeBoxes(regionCode) {
|
|
4359
|
+
const { data } = useAsyncData(regionCode ? `${SAFEBOXES_URL}?regionCode=${regionCode}` : null, fetchSafeBoxes);
|
|
4360
|
+
return data || EMPTY_VALUE;
|
|
4361
|
+
}
|
|
4362
|
+
const fetchSafeBoxes = async (url) => {
|
|
4363
|
+
const result = await fetchJSON(url, { method: 'GET' });
|
|
4364
|
+
return result || EMPTY_VALUE;
|
|
4365
|
+
};
|
|
4366
|
+
|
|
4425
4367
|
const DEFAULT_DAYS = 26;
|
|
4426
4368
|
const SafeDepositRental = JSX(({ title, footnote, className = '', ...rest }) => {
|
|
4427
4369
|
const [showMap, setShowMap] = useState(false);
|
|
@@ -4438,7 +4380,7 @@
|
|
|
4438
4380
|
const branches = useSafeBoxes(selectedRegion);
|
|
4439
4381
|
const handleChangeSafeDepositState = useCallback((state) => setStateDepositState((oldState) => ({ ...oldState, ...state })), [setStateDepositState]);
|
|
4440
4382
|
const points = getCoordinates(getBranch(branches, safeDepositState.selectedBranch) || branches);
|
|
4441
|
-
return (jsxs(BlockWrapper, { className: className, ...rest, children: [jsxs("div", { className: "px-8 py-12", children: [title ? (jsx(Heading, { title: title, headingType: "h3", as: "h2", className: "text-primary-text mb-2.5 text-center" })) : null, jsx(SafeDepositRentalForm, { regions: regions, branches: branches, data: { ...safeDepositState, selectedRegion }, onClick: handleShowMap, onChange: handleChangeSafeDepositState }), footnote ? jsx("p", { className: "text-s-light text-secondary-text", children: footnote }) : null] }), points.length && showMap ? jsx(YandexMap, { points: points, className: "h-[640px]" }) : null] }));
|
|
4383
|
+
return (jsxs(BlockWrapper, { className: className, defaultPadding: "", ...rest, children: [jsxs("div", { className: "px-8 py-12", children: [title ? (jsx(Heading, { title: title, headingType: "h3", as: "h2", className: "text-primary-text mb-2.5 text-center" })) : null, jsx(SafeDepositRentalForm, { regions: regions, branches: branches, data: { ...safeDepositState, selectedRegion }, onClick: handleShowMap, onChange: handleChangeSafeDepositState }), footnote ? jsx("p", { className: "text-s-light text-secondary-text", children: footnote }) : null] }), points.length && showMap ? jsx(YandexMap, { points: points, className: "h-[640px]" }) : null] }));
|
|
4442
4384
|
});
|
|
4443
4385
|
const normalizeSelectedRegion = (selectedRegion, regions) => !selectedRegion && regions?.length && regions[0]?.code ? regions[0].code : selectedRegion;
|
|
4444
4386
|
|
|
@@ -4481,13 +4423,13 @@
|
|
|
4481
4423
|
const lineOpacity = getLineOpacity(showLines);
|
|
4482
4424
|
const paddingX = getPaddingX(steps.length);
|
|
4483
4425
|
const isMainButton = Boolean(buttons?.every((b) => b?.text));
|
|
4484
|
-
return (jsxs(BlockWrapper, { className: style('box-border
|
|
4426
|
+
return (jsxs(BlockWrapper, { className: style('box-border flex flex-col items-center overflow-hidden', className), defaultPadding: "p-default", version: version, ...rest, children: [title ? (jsx(Heading, { headingType: "h4", className: "max-w-[752px] text-center mb-9", title: title })) : null, steps?.length ? (jsxs("div", { className: "box-border", children: [jsx("div", { className: style('flex items-center', paddingX), children: joinList(jsx("div", { className: style('h-0.5 w-full bg-secondary-light flex-1', lineOpacity) }))(steps.map(renderStepIcon(styleMap, size, stepVersion))) }), jsx("div", { className: style('flex justify-between mt-4', shortGaps ? 'gap-x-3' : 'gap-x-[101px]'), children: steps.map(renderStep({ styleMap, isMainButton, version })) })] })) : null, renderButtonsSection(buttons, { className: 'mt-8' })] }));
|
|
4485
4427
|
});
|
|
4486
4428
|
const renderStepIcon = (styleMap, size, stepVersion) => ({ icon }, i) => {
|
|
4487
4429
|
const styleStepIconSize = size === 'normal' ? 'h-[100px] w-[100px]' : 'h-[63px] w-[63px]';
|
|
4488
4430
|
const stepVersionIconTextStyles = stepVersion === 'secondary' ? 'group-data-primary:text-white' : 'text-secondary-text';
|
|
4489
4431
|
const iconVersion = stepVersion === 'secondary' ? 'white' : 'color';
|
|
4490
|
-
return (jsx(BlockWrapper, { className: `${styleStepIconSize} flex justify-center items-center text-center rounded-full p-[26px] box-border z-10`, version: stepVersion, children: checkCanRenderIcon(icon) ? (jsx(
|
|
4432
|
+
return (jsx(BlockWrapper, { className: `${styleStepIconSize} flex justify-center items-center text-center rounded-full p-[26px] box-border z-10`, version: stepVersion, children: checkCanRenderIcon(icon) ? (jsx(Img, { image: { ...icon, iconVersion: icon.iconVersion || iconVersion }, width: "48", height: "48" })) : (jsx("span", { className: style('text-h4', stepVersion === 'transparent' ? styleMap.iconText : stepVersionIconTextStyles), children: i + 1 })) }, String(i)));
|
|
4491
4433
|
};
|
|
4492
4434
|
|
|
4493
4435
|
const DEFAULT_GAP = 14;
|
|
@@ -4497,7 +4439,7 @@
|
|
|
4497
4439
|
and get rid of a clipping effect caused by overflow: hidden.
|
|
4498
4440
|
*/
|
|
4499
4441
|
const DEFAULT_PADDING = 16;
|
|
4500
|
-
const SwipeListControl = JSX(({ className
|
|
4442
|
+
const SwipeListControl = JSX(({ className, version, gap = DEFAULT_GAP, padding = DEFAULT_PADDING, showDots = true, minHeight, children, onVisibleIndicesChange, listType = 'horizontal-list', }) => {
|
|
4501
4443
|
const itemCount = Array.isArray(children) ? children.length : 0;
|
|
4502
4444
|
const [containerRef, scroll] = useSwipeListScroll({
|
|
4503
4445
|
itemCount,
|
|
@@ -4507,9 +4449,7 @@
|
|
|
4507
4449
|
return (jsxs("div", { className: style(className, listType === 'vertical-list' ? 'relative h-full' : ''), children: [jsx(SwipeListContainer, { containerRef: containerRef, activeIndex: activeIndex, visibleItemCount: 1, gap: gap, padding: padding, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, listType: listType, minHeight: minHeight, children: children }), showDots ? (jsx(SwipeListControlDots, { containerRef: containerRef, activeIndex: activeIndex, dotCount: itemCount, listType: listType, version: version })) : null] }));
|
|
4508
4450
|
});
|
|
4509
4451
|
|
|
4510
|
-
const SwipeListControlBlock = JSX(({ listType, showDots, options, version, ...rest }) => {
|
|
4511
|
-
return (jsx(BlockWrapper, { version: version, ...rest, children: jsx(SwipeListControl, { listType: listType, showDots: showDots, version: version, children: renderChildren({ ...rest, options }) }) }));
|
|
4512
|
-
});
|
|
4452
|
+
const SwipeListControlBlock = JSX(({ listType, showDots, options, version, ...rest }) => (jsx(BlockWrapper, { version: version, defaultPadding: "p-0", ...rest, children: jsx(SwipeListControl, { listType: listType, showDots: showDots, version: version, children: renderChildren({ ...rest, options }) }) })));
|
|
4513
4453
|
SwipeListControlBlock.childrenTypes = {
|
|
4514
4454
|
exclude: ['SwipeListControlBlock'],
|
|
4515
4455
|
};
|
|
@@ -4673,7 +4613,7 @@
|
|
|
4673
4613
|
fireTabEvent(selectedTab);
|
|
4674
4614
|
setCurrentTab(selectedTab);
|
|
4675
4615
|
}, []);
|
|
4676
|
-
return (jsx(BlockWrapper, { className: `relative box-border flex gap-x-1 w-full ${isSticky ? 'sticky top-1 z-20' : ''} ${className}`, role: "tablist", ...rest, children: renderTabs({ tabs, onClick: handleClick, currentTab, ...rest }) }));
|
|
4616
|
+
return (jsx(BlockWrapper, { className: `relative box-border flex gap-x-1 w-full ${isSticky ? 'sticky top-1 z-20' : ''} ${className}`, defaultPadding: "p-0", role: "tablist", ...rest, children: renderTabs({ tabs, onClick: handleClick, currentTab, ...rest }) }));
|
|
4677
4617
|
});
|
|
4678
4618
|
const renderTabs = ({ tabsMode, tabs, ...rest }) => {
|
|
4679
4619
|
switch (tabsMode) {
|
|
@@ -4709,7 +4649,7 @@
|
|
|
4709
4649
|
const labelClassName = `text-h6 m-0 ${description ? 'mb-1' : ''}`;
|
|
4710
4650
|
return (jsxs("div", { children: [label ? jsx("div", { className: labelClassName, children: label }) : null, description ? jsx("div", { className: "text-secondary-text text-l-light", children: description }) : null] }));
|
|
4711
4651
|
};
|
|
4712
|
-
const renderImgCellData = ({ image }) => (image?.src ? jsx(
|
|
4652
|
+
const renderImgCellData = ({ image }) => (image?.src ? jsx(Img, { image: image }) : null);
|
|
4713
4653
|
const renderListCellData = ({ isDotted, ...rest }) => (jsx(List, { className: "flex flex-col justify-between items-start text-h6", isDotted: isDotted ?? true, ...rest }));
|
|
4714
4654
|
const renderTableCellData = JSX(({ isVisible, displayTable, dataUrl, pdfUrl, isOpen }) => isVisible ? (jsx(TableInnerButton, { isOpen: isOpen, onClick: () => {
|
|
4715
4655
|
displayTable({ dataUrl, pdfUrl });
|
|
@@ -4805,7 +4745,7 @@
|
|
|
4805
4745
|
const toggleTables = useCallback((key) => setHiddenTables((oldState) => ({ ...oldState, [key]: !oldState[key] })), []);
|
|
4806
4746
|
return (jsx("div", { children: items.map((_, tableIdx) => {
|
|
4807
4747
|
const key = `activeTabIdx:${activeTabIndex}-tableIdx:${tableIdx}`;
|
|
4808
|
-
return (jsxs("div", { className: "w-full", children: [jsxs("div", { className: "flex p-4 bg-gray text-xl-light text-center justify-center cursor-pointer relative", onClick: () => toggleTables(key), children: [_.title, jsx(
|
|
4748
|
+
return (jsxs("div", { className: "w-full", children: [jsxs("div", { className: "flex p-4 bg-gray text-xl-light text-center justify-center cursor-pointer relative", onClick: () => toggleTables(key), children: [_.title, jsx(Img, { image: { icon: hiddenTables[key] ? 'PlusIcon' : 'MinusIcon' }, className: "absolute right-[22px]", width: "24", height: "24" })] }), jsx("div", { className: `w-full pl-2 overflow-hidden transition-height duration-500 ease-in-out ${hiddenTables[key] ? 'h-0' : ''}`, children: jsx("div", { className: "relative", children: jsx(InnerTableBodyItem, { rows: _.rowsData }) }) })] }, key));
|
|
4809
4749
|
}) }));
|
|
4810
4750
|
});
|
|
4811
4751
|
|
|
@@ -4841,7 +4781,7 @@
|
|
|
4841
4781
|
const [openTableInnerIdx, setOpenTableInnerIdx] = useState(undefined);
|
|
4842
4782
|
const handleOpenTableInnerIdx = useCallback((_) => setOpenTableInnerIdx(_), []);
|
|
4843
4783
|
const onHideContentClick = () => setTableInner(undefined);
|
|
4844
|
-
return (jsxs(TariffsTableRowContainer, { onHideContentClick: onHideContentClick, tableInner: tableInner, ...rest, children: [jsx("div", { className: `text-s py-5 ${FIRST_CELL_CLASSES} ${DIVIDER_CLASSES}`, children: jsxs("div", { className: "flex items-center text-primary-text", role: "cell", children: [header?.icon ? (jsx(
|
|
4784
|
+
return (jsxs(TariffsTableRowContainer, { onHideContentClick: onHideContentClick, tableInner: tableInner, ...rest, children: [jsx("div", { className: `text-s py-5 ${FIRST_CELL_CLASSES} ${DIVIDER_CLASSES}`, children: jsxs("div", { className: "flex items-center text-primary-text", role: "cell", children: [header?.icon ? (jsx(Img, { className: "mr-3.5 max-w-6", image: header.icon, width: "24", height: "24" })) : null, header?.title ? jsx("div", { className: "text-m-light", children: header?.title }) : null] }) }), data?.length ? (jsx(TableCarouselContainer, { activeIndex: activeIndex, columnWidth: COLUMN_WIDTH$1, version: "tariff", children: data.map((cells, i) => (jsx(TariffsTableCell, { cells: cells, rowIdx: rowIdx, cellIdx: i, setTableInner: handleSetTableInner, tableInner: tableInner, openTableInnerIdx: openTableInnerIdx, setOpenTableInnerIdx: handleOpenTableInnerIdx, ...rest }, String(i)))) })) : null] }));
|
|
4845
4785
|
});
|
|
4846
4786
|
|
|
4847
4787
|
const TariffsTable = JSX(({ className = '', title, description, rowHeaders, tariffsColumns: columns, hiddenRowsNum = 0, ...rest }) => {
|
|
@@ -4857,7 +4797,7 @@
|
|
|
4857
4797
|
});
|
|
4858
4798
|
const rows = (rowData || []).map((row, i) => (jsx(TariffsTableRow, { row: row, activeIndex: activeIndex, rowIdx: i, ...rest }, String(i))));
|
|
4859
4799
|
const [visibleRows, hiddenRows] = hiddenRowsNum > 0 ? [rows.slice(0, -hiddenRowsNum), rows.slice(-hiddenRowsNum)] : [rows, []];
|
|
4860
|
-
return (jsxs(BlockWrapper, { className:
|
|
4800
|
+
return (jsxs(BlockWrapper, { className: style('overflow-hidden relative', className), defaultPadding: style('p-default', itemCount > 1 ? 'pr-0' : ''), ...rest, children: [renderTitle({ title, description }), renderDescription$1(description), hiddenRowsNum > 0 ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs(Wrapper, { controls: controls, children: [visibleRows, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] })), renderFoldButton: renderDefaultFoldButton })) : (jsx(Wrapper, { controls: controls, children: rows }))] }));
|
|
4861
4801
|
});
|
|
4862
4802
|
function renderTitle({ title, description }) {
|
|
4863
4803
|
return title ? (jsx(Heading, { headingType: "h3", className: `text-center ${description ? 'mb-2.5' : 'mb-8'}`, title: title })) : null;
|
|
@@ -4874,27 +4814,16 @@
|
|
|
4874
4814
|
})] }), isScrollAvailable ? (jsx("div", { className: "absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white" })) : null] }));
|
|
4875
4815
|
});
|
|
4876
4816
|
|
|
4877
|
-
const TextBlock = JSX(({ className = '', title, description, iconVersion, image, __html, items = [], ...rest }) => {
|
|
4878
|
-
return (jsxs(BlockWrapper, { className: style('px-9 py-4 flex gap-3 bg-white group-data-secondary:bg-primary-main/10', className), ...rest, children: [iconVersion === 'small' ? jsx("div", { className: "mt-1", children: renderIcon() }) : null, iconVersion === 'big' ? renderImage(image) : null, jsxs("div", { className: "flex flex-col w-fit gap-3", children: [title ? (jsx(Text, { size: "text-l", font: "font-medium", color: "text-primary-text group-data-secondary:text-white", children: title })) : null, description ? renderDescription(description) : null, items?.length ? renderList(items, true) : null, __html ? jsx(RichText, { __html: __html }) : null] })] }));
|
|
4879
|
-
});
|
|
4817
|
+
const TextBlock = JSX(({ className = '', title, description, iconVersion, image, __html, items = [], ...rest }) => (jsxs(BlockWrapper, { className: style('flex gap-3 bg-white group-data-secondary:bg-primary-main/10', className), ...rest, children: [iconVersion === 'small' ? jsx("div", { className: "mt-1", children: renderIcon() }) : null, iconVersion === 'big' ? renderImage(image) : null, jsxs("div", { className: "flex flex-col w-fit gap-3", children: [title ? (jsx(Text, { size: "text-l", font: "font-medium", color: "text-primary-text group-data-secondary:text-white", children: title })) : null, description ? renderDescription(description) : null, items?.length ? renderList(items, true) : null, __html ? jsx(RichText, { __html: __html }) : null] })] })));
|
|
4880
4818
|
const renderIcon = () => (jsx("div", { className: `rounded-full h-4 w-4 text-center text-xs-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main`, children: "i" }));
|
|
4881
|
-
const renderImage = (image) => image?.src ? jsx(
|
|
4819
|
+
const renderImage = (image) => image?.src ? jsx(Img, { className: "h-fit", image: image }) : null;
|
|
4882
4820
|
const renderDescription = (description) => (jsx(Paragraph, { size: "text-s", color: "text-secondary-text group-data-secondary:text-white", children: description }));
|
|
4883
4821
|
const renderList = (items, bullets) => {
|
|
4884
4822
|
const listStyle = bullets ? 'list-disc pl-6' : '';
|
|
4885
4823
|
return (jsx("ul", { className: style('text-secondary-text group-data-secondary:text-white/80', listStyle), children: items.map((_, i) => (jsx("li", { children: jsx(Text, { size: "text-s", font: "font-light", children: _ }) }, `listItem-${i}`))) }));
|
|
4886
4824
|
};
|
|
4887
4825
|
|
|
4888
|
-
const
|
|
4889
|
-
const { tags, className = '' } = props;
|
|
4890
|
-
return tags?.length ? (jsx("div", { className: `flex flex-wrap gap-2 ${className}`, children: tags.map(renderTag) })) : null;
|
|
4891
|
-
});
|
|
4892
|
-
const renderTag = (tag, key) => (jsx("span", { className: "text-m-light py-2 px-2.5 border-solid border rounded-md border-gray", children: tag }, String(key)));
|
|
4893
|
-
|
|
4894
|
-
const Tile = JSX(({ title, headingType = 'h3', __html, items, buttons, image, isDotted = true, listItemSize = 'M', className = '', tags, children, directionRight = true, ...rest }) => (jsxs(BlockWrapper, { className: style('flex grow justify-between items-stretch h-full p-9 pr-3 box-border', getTileRightPadding(className), getTileMinHeight(className), className), ...rest, children: [image?.src ? (jsx(ImgInner, { className: style('mt-auto ml-7', directionRight ? 'order-2' : ''), image: image })) : null, jsx(BaseTile, { title: title ? (jsx(Heading, { headingType: headingType, as: "h2", title: title, className: `whitespace-pre-wrap max-w-[600px]` })) : null, buttons: renderButtonsSection(buttons, {
|
|
4895
|
-
className: 'mt-8',
|
|
4896
|
-
buttonClassName: 'min-w-[158px]',
|
|
4897
|
-
}), children: jsxs("div", { children: [__html ? (jsx("div", { className: "max-w-[600px] mt-2.5", children: jsx(RichText, { __html: __html }) })) : null, children, jsx(List, { className: "mt-2.5", items: items, isDotted: isDotted, listItemSize: listItemSize }), tags?.length ? jsx(Tags, { tags: tags, className: "mt-5" }) : null] }) })] })));
|
|
4826
|
+
const Tile = JSX(({ className, headlineVersion = 'S', listItemSize = 'M', ...rest }) => (jsx(BlockWrapper, { className: className, ...rest, children: jsx(BaseProductTile, { className: "h-full", headlineVersion: headlineVersion, listItemSize: listItemSize, ...rest, imageOptions: { imageAlign: 'end', ...rest.imageOptions } }) })));
|
|
4898
4827
|
|
|
4899
4828
|
const alignStyle = {
|
|
4900
4829
|
stretch: 'items-stretch',
|
|
@@ -4904,7 +4833,7 @@
|
|
|
4904
4833
|
};
|
|
4905
4834
|
const VerticalLayout = JSX(({ className = '', gap = '', align = 'stretch', isPadding = false, isInnerPadding = true, version = 'transparent', isTheme = false, ...rest }) => {
|
|
4906
4835
|
const innerPaddingStyle = isInnerPadding ? '' : '!p-0';
|
|
4907
|
-
return (jsx(BlockWrapper, { className: style('relative', 'flex flex-col [&>*]:max-w-full',
|
|
4836
|
+
return (jsx(BlockWrapper, { className: style('relative', 'flex flex-col [&>*]:max-w-full', gapStyles[gap], align && alignStyle[align], className), defaultPadding: isPadding ? 'p-default' : '', version: version, isTheme: isTheme, ...rest, children: renderChildren({
|
|
4908
4837
|
...rest,
|
|
4909
4838
|
renderProps: (block, options) => renderBlock$1(block, options, { className: innerPaddingStyle }),
|
|
4910
4839
|
}) }));
|
|
@@ -4916,7 +4845,7 @@
|
|
|
4916
4845
|
|
|
4917
4846
|
const Video = JSX(({ className, title, url, previewImg, ...rest }) => {
|
|
4918
4847
|
const router = useRouter();
|
|
4919
|
-
return (jsxs(BlockWrapper, { className:
|
|
4848
|
+
return (jsxs(BlockWrapper, { className: className, defaultPadding: getPaddings(className), ...rest, children: [jsx(Headline, { title: title, headlineVersion: "M" }), url ? (jsx("video", { className: "m-auto w-full object-fill", preload: "metadata", poster: adjustHref(router)(previewImg?.src), style: { maxHeight: 524 }, controls: true, children: jsx("source", { src: adjustHref(router)(url) }) })) : null] }));
|
|
4920
4849
|
});
|
|
4921
4850
|
|
|
4922
4851
|
const Blocks = {
|
|
@@ -5120,7 +5049,7 @@
|
|
|
5120
5049
|
return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-lg sticky bottom-0 pointer-events-auto" }) }));
|
|
5121
5050
|
}
|
|
5122
5051
|
|
|
5123
|
-
const packageVersion = "0.
|
|
5052
|
+
const packageVersion = "0.12.4";
|
|
5124
5053
|
|
|
5125
5054
|
exports.Blocks = Blocks;
|
|
5126
5055
|
exports.ContentPage = ContentPage;
|