@redneckz/wildless-cms-uni-blocks 0.6.26 → 0.6.27
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/bundle/ProjectSettings.d.ts +2 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +369 -408
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/BaseTile/BaseTile.d.ts +2 -2
- package/bundle/components/BusinessBlock/BusinessBlock.d.ts +5 -0
- package/bundle/components/BusinessBlock/BusinessBlockContent.d.ts +28 -0
- package/bundle/components/BusinessBlock/BusinessCard.d.ts +2 -0
- package/bundle/components/Calculator/BonusCalculatorForm.d.ts +2 -2
- package/bundle/components/Calculator/CreditCalculatorForm.d.ts +2 -2
- package/bundle/components/Calculator/DepositCalculatorForm.d.ts +2 -2
- package/bundle/components/Calculator/renderButtonSection.d.ts +1 -2
- package/bundle/components/Calculator/renderCalculatorBlock.d.ts +1 -1
- package/bundle/components/Catalog/CatalogCard.d.ts +2 -2
- package/bundle/components/ComparisonTable/ComparisonTableBody.d.ts +1 -3
- package/bundle/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +0 -3
- package/bundle/components/ContentPage/renderBlock.d.ts +0 -2
- package/bundle/components/ContentPage/renderBlockList.d.ts +1 -1
- package/bundle/components/ContentPage/renderSlots.d.ts +1 -1
- package/bundle/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +1 -2
- package/bundle/components/Footer/Contacts.d.ts +2 -2
- package/bundle/components/Footer/Footer.fallback.d.ts +2 -0
- package/bundle/components/Footer/FooterContent.d.ts +3 -19
- package/bundle/components/Footer/FooterDataProps.d.ts +12 -0
- package/bundle/components/Footer/FooterLink.d.ts +2 -2
- package/bundle/components/Footer/HorizontalNavigation.d.ts +1 -2
- package/bundle/components/Footer/HorizontalNavigation.mobile.d.ts +1 -2
- package/bundle/components/Footer/Sitemap.d.ts +2 -2
- package/bundle/components/Footer/SocialMedia.d.ts +2 -2
- package/bundle/components/Footer/SocialMedia.mobile.d.ts +2 -2
- package/bundle/components/Footer/useFooterData.d.ts +2 -0
- package/bundle/components/Gallery/GalleryContainer.d.ts +1 -3
- package/bundle/components/Gallery/GalleryContent.d.ts +1 -1
- package/bundle/components/Header/DropdownMenu.d.ts +0 -2
- package/bundle/components/Header/HeaderBurger.d.ts +0 -2
- package/bundle/components/Header/HeaderSubMenu.d.ts +0 -2
- package/bundle/components/Header/HeaderSubMenuItem.d.ts +0 -2
- package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +2 -2
- package/bundle/components/InvestmentGallery/InvestmentGalleryCard.d.ts +2 -2
- package/bundle/components/LikeControl/LikeControl.d.ts +5 -2
- package/bundle/components/LinkDocs/LinkDocsHorizontalList.d.ts +1 -5
- package/bundle/components/Placeholder/Placeholder.d.ts +0 -1
- package/bundle/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/bundle/components/Recommendation/RecommendationCard.d.ts +2 -2
- package/bundle/components/StepsBlock/renderStepContent.d.ts +2 -5
- package/bundle/components/Tabs/LinkTab.d.ts +8 -0
- package/bundle/components/Tabs/Tabs.d.ts +2 -2
- package/bundle/components/Tabs/TabsContent.d.ts +5 -5
- package/bundle/components/Tabs/renderGroupTab.d.ts +2 -2
- package/bundle/components/Tabs/renderTab.d.ts +4 -6
- package/bundle/components/TariffsTable/TariffsTableContent.d.ts +1 -1
- package/bundle/components/TariffsTable/TariffsTableRenderCell.d.ts +1 -3
- package/bundle/components/TariffsTable/TariffsTableRowContainer.d.ts +1 -3
- package/bundle/components/TariffsTable/TariffsTableTileCell.d.ts +3 -4
- package/bundle/components/VerticalLayout/VerticalLayout.d.ts +5 -0
- package/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +17 -0
- package/bundle/hooks/handlerDecorator.d.ts +5 -0
- package/bundle/hooks/useLink.d.ts +6 -16
- package/bundle/hooks/useRouter.d.ts +13 -0
- package/bundle/hooks/useTableArrowScrollControl.d.ts +1 -3
- package/bundle/index.d.ts +2 -0
- package/bundle/model/BlockVersion.d.ts +1 -0
- package/bundle/model/BlocksRegistry.d.ts +1 -1
- package/bundle/model/JSXBlock.d.ts +7 -8
- package/bundle/react/setup-fixture.d.ts +0 -3
- package/bundle/services/sitemap/SitemapProps.d.ts +1 -1
- package/bundle/services/sitemap/findActiveSubItem.d.ts +1 -1
- package/bundle/services/sitemap/isSubItemActive.d.ts +1 -1
- package/bundle/services/sitemap/isTopItemActive.d.ts +1 -1
- package/bundle/services/sitemap/useSWRResource.d.ts +2 -0
- package/bundle/ui-kit/BlockWrapper.d.ts +2 -2
- package/bundle/ui-kit/Button/ButtonSection.d.ts +2 -2
- package/bundle/ui-kit/Checkbox/CheckboxProps.d.ts +2 -2
- package/bundle/ui-kit/InnerTable/InnerTable.d.ts +2 -3
- package/bundle/ui-kit/InnerTable/InnerTableBody.d.ts +1 -2
- package/bundle/ui-kit/InnerTable/InnerTableBodyItem.d.ts +1 -2
- package/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +1 -2
- package/bundle/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +4 -5
- package/bundle/ui-kit/SearchBar/SearchBar.d.ts +2 -2
- package/bundle/ui-kit/SearchBar/SearchBar.mobile.d.ts +2 -2
- package/bundle/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +2 -2
- package/bundle/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +3 -2
- package/dist/ProjectSettings.d.ts +2 -0
- package/dist/ProjectSettings.js +3 -0
- package/dist/ProjectSettings.js.map +1 -1
- package/dist/components/Accordion/Accordion.js +1 -1
- package/dist/components/Accordion/Accordion.js.map +1 -1
- package/dist/components/Accordion/Accordion.mobile.js +1 -1
- package/dist/components/Accordion/Accordion.mobile.js.map +1 -1
- package/dist/components/BaseTile/BaseTile.d.ts +2 -2
- package/dist/components/BaseTile/BaseTile.js +1 -3
- package/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/dist/components/Blocks.js +10 -6
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.js +0 -2
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/Bonus/Bonus.js +3 -3
- 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.d.ts +5 -0
- package/dist/components/BusinessBlock/BusinessBlock.js +9 -0
- package/dist/components/BusinessBlock/BusinessBlock.js.map +1 -0
- package/dist/components/BusinessBlock/BusinessBlockContent.d.ts +28 -0
- package/dist/components/BusinessBlock/BusinessBlockContent.js +2 -0
- package/dist/components/BusinessBlock/BusinessBlockContent.js.map +1 -0
- package/dist/components/BusinessBlock/BusinessCard.d.ts +2 -0
- package/dist/components/BusinessBlock/BusinessCard.js +16 -0
- package/dist/components/BusinessBlock/BusinessCard.js.map +1 -0
- package/dist/components/Calculator/BonusCalculatorForm.d.ts +2 -2
- package/dist/components/Calculator/BonusCalculatorForm.js +2 -2
- package/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/Calculator.js +3 -5
- package/dist/components/Calculator/Calculator.js.map +1 -1
- package/dist/components/Calculator/CreditCalculatorForm.d.ts +2 -2
- package/dist/components/Calculator/CreditCalculatorForm.js +3 -8
- package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/DepositCalculatorForm.d.ts +2 -2
- package/dist/components/Calculator/DepositCalculatorForm.js +3 -8
- package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/renderButtonSection.d.ts +1 -2
- package/dist/components/Calculator/renderButtonSection.js +2 -2
- package/dist/components/Calculator/renderButtonSection.js.map +1 -1
- package/dist/components/Calculator/renderCalculatorBlock.d.ts +1 -1
- package/dist/components/Calculator/renderCalculatorBlock.js +2 -2
- package/dist/components/Calculator/renderCalculatorBlock.js.map +1 -1
- package/dist/components/CardTransfer/CardTransfer.js +3 -4
- package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/dist/components/Catalog/Catalog.js +11 -21
- package/dist/components/Catalog/Catalog.js.map +1 -1
- package/dist/components/Catalog/CatalogCard.d.ts +2 -2
- package/dist/components/Catalog/CatalogCard.js +1 -3
- package/dist/components/Catalog/CatalogCard.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.js +4 -6
- package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.mobile.js +3 -3
- package/dist/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTableBody.d.ts +1 -3
- package/dist/components/ComparisonTable/ComparisonTableBody.js +3 -9
- package/dist/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +0 -3
- package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js +1 -4
- package/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTableRows.js +2 -2
- package/dist/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
- package/dist/components/ComparisonTable/HeaderCell.js +1 -1
- package/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/dist/components/ContactsBlock/ContactsBlock.js +2 -2
- package/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/dist/components/ContentPage/ContentPage.js +4 -5
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/ContentPage/renderBlock.d.ts +0 -2
- package/dist/components/ContentPage/renderBlock.js +3 -3
- package/dist/components/ContentPage/renderBlock.js.map +1 -1
- package/dist/components/ContentPage/renderBlockList.d.ts +1 -1
- package/dist/components/ContentPage/renderBlockList.js +5 -12
- package/dist/components/ContentPage/renderBlockList.js.map +1 -1
- package/dist/components/ContentPage/renderSlots.d.ts +1 -1
- package/dist/components/ContentPage/renderSlots.js +10 -12
- package/dist/components/ContentPage/renderSlots.js.map +1 -1
- package/dist/components/ErrorBlock/ErrorBlock.js +1 -6
- package/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +1 -2
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +2 -5
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js +2 -2
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/dist/components/Footer/Contacts.d.ts +2 -2
- package/dist/components/Footer/Contacts.js +1 -10
- package/dist/components/Footer/Contacts.js.map +1 -1
- package/dist/components/Footer/Footer.fallback.d.ts +2 -0
- package/dist/components/Footer/Footer.fallback.js +13 -0
- package/dist/components/Footer/Footer.fallback.js.map +1 -0
- package/dist/components/Footer/Footer.js +6 -3
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.js +10 -9
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Footer/FooterContent.d.ts +3 -19
- package/dist/components/Footer/FooterDataProps.d.ts +12 -0
- package/dist/components/{ContentPage/ContentPageContext.js → Footer/FooterDataProps.js} +1 -1
- package/dist/components/Footer/FooterDataProps.js.map +1 -0
- package/dist/components/Footer/FooterLink.d.ts +2 -2
- package/dist/components/Footer/HorizontalNavigation.d.ts +1 -2
- package/dist/components/Footer/HorizontalNavigation.js +2 -5
- package/dist/components/Footer/HorizontalNavigation.js.map +1 -1
- package/dist/components/Footer/HorizontalNavigation.mobile.d.ts +1 -2
- package/dist/components/Footer/HorizontalNavigation.mobile.js +1 -6
- package/dist/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
- package/dist/components/Footer/HorizontalNavigationLink.js +6 -1
- package/dist/components/Footer/HorizontalNavigationLink.js.map +1 -1
- package/dist/components/Footer/MediaButton.js +5 -2
- package/dist/components/Footer/MediaButton.js.map +1 -1
- package/dist/components/Footer/Sitemap.d.ts +2 -2
- package/dist/components/Footer/Sitemap.js +14 -12
- package/dist/components/Footer/Sitemap.js.map +1 -1
- package/dist/components/Footer/SocialMedia.d.ts +2 -2
- package/dist/components/Footer/SocialMedia.js +1 -6
- package/dist/components/Footer/SocialMedia.js.map +1 -1
- package/dist/components/Footer/SocialMedia.mobile.d.ts +2 -2
- package/dist/components/Footer/SocialMedia.mobile.js +1 -6
- package/dist/components/Footer/SocialMedia.mobile.js.map +1 -1
- package/dist/components/Footer/TextInformation.js +1 -6
- package/dist/components/Footer/TextInformation.js.map +1 -1
- package/dist/components/Footer/TextInformation.mobile.js +2 -5
- package/dist/components/Footer/TextInformation.mobile.js.map +1 -1
- package/dist/components/Footer/TextInformationLink.js +6 -1
- package/dist/components/Footer/TextInformationLink.js.map +1 -1
- package/dist/components/Footer/useFooterData.d.ts +2 -0
- package/dist/{services/sitemap/useSitemap.js → components/Footer/useFooterData.js} +5 -5
- package/dist/components/Footer/useFooterData.js.map +1 -0
- package/dist/components/Gallery/Gallery.mobile.js +4 -4
- package/dist/components/Gallery/Gallery.mobile.js.map +1 -1
- package/dist/components/Gallery/GalleryContainer.d.ts +1 -3
- package/dist/components/Gallery/GalleryContainer.js +2 -2
- package/dist/components/Gallery/GalleryContainer.js.map +1 -1
- package/dist/components/Gallery/GalleryContent.d.ts +1 -1
- package/dist/components/Gallery/GalleryInner.js +2 -2
- package/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/dist/components/GracePeriod/GracePeriod.js +1 -3
- package/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/dist/components/Header/DropdownMenu.d.ts +0 -2
- package/dist/components/Header/DropdownMenu.js +3 -4
- package/dist/components/Header/DropdownMenu.js.map +1 -1
- package/dist/components/Header/Header.js +8 -9
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Header/Header.mobile.js +8 -14
- package/dist/components/Header/Header.mobile.js.map +1 -1
- package/dist/components/Header/HeaderBurger.d.ts +0 -2
- package/dist/components/Header/HeaderBurger.js +2 -2
- package/dist/components/Header/HeaderBurger.js.map +1 -1
- package/dist/components/Header/HeaderSubMenu.d.ts +0 -2
- package/dist/components/Header/HeaderSubMenu.js +4 -3
- package/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/dist/components/Header/HeaderSubMenuItem.d.ts +0 -2
- package/dist/components/Header/HeaderSubMenuItem.js +2 -5
- package/dist/components/Header/HeaderSubMenuItem.js.map +1 -1
- package/dist/components/Headline/Headline.js +1 -1
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +4 -6
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +2 -2
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/dist/components/InvestmentGallery/InvestmentGallery.js +3 -7
- package/dist/components/InvestmentGallery/InvestmentGallery.js.map +1 -1
- package/dist/components/InvestmentGallery/InvestmentGalleryCard.d.ts +2 -2
- package/dist/components/InvestmentGallery/InvestmentGalleryCard.js +2 -2
- package/dist/components/InvestmentGallery/InvestmentGalleryCard.js.map +1 -1
- package/dist/components/InvestmentInfo/InvestmentInfo.js +2 -2
- package/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/dist/components/LikeControl/LikeControl.d.ts +5 -2
- package/dist/components/LikeControl/LikeControl.js +5 -6
- package/dist/components/LikeControl/LikeControl.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.js +1 -3
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.js +1 -3
- package/dist/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsHorizontalList.d.ts +1 -5
- package/dist/components/LinkDocs/LinkDocsHorizontalList.js +3 -5
- package/dist/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -1
- package/dist/components/LinkList/LinkList.js +1 -3
- package/dist/components/LinkList/LinkList.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +4 -4
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -3
- package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/dist/components/OtherProducts/OtherProducts.js +1 -1
- package/dist/components/OtherProducts/OtherProducts.js.map +1 -1
- package/dist/components/PictureText/PictureText.js +1 -3
- package/dist/components/PictureText/PictureText.js.map +1 -1
- package/dist/components/Placeholder/Placeholder.d.ts +0 -1
- package/dist/components/Placeholder/Placeholder.js +2 -2
- package/dist/components/Placeholder/Placeholder.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.js +4 -7
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.js +2 -5
- package/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockInner.mobile.js +2 -2
- package/dist/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.js +1 -0
- package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.js +5 -5
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/ProductTile/ProductTile.js +4 -6
- package/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/dist/components/PromoTile/PromoTile.js +1 -3
- package/dist/components/PromoTile/PromoTile.js.map +1 -1
- package/dist/components/Recommendation/Recommendation.js +4 -9
- package/dist/components/Recommendation/Recommendation.js.map +1 -1
- package/dist/components/Recommendation/RecommendationCard.d.ts +2 -2
- package/dist/components/Recommendation/RecommendationCard.js +2 -2
- package/dist/components/Recommendation/RecommendationCard.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRental.js +3 -3
- package/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.js +3 -12
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/StepsBlock/renderStepContent.d.ts +2 -5
- package/dist/components/StepsBlock/renderStepContent.js +2 -3
- package/dist/components/StepsBlock/renderStepContent.js.map +1 -1
- package/dist/components/Tabs/LinkTab.d.ts +8 -0
- package/dist/components/Tabs/LinkTab.js +20 -0
- package/dist/components/Tabs/LinkTab.js.map +1 -0
- package/dist/components/Tabs/Tabs.d.ts +2 -2
- package/dist/components/Tabs/Tabs.js +2 -2
- package/dist/components/Tabs/Tabs.js.map +1 -1
- package/dist/components/Tabs/TabsContent.d.ts +5 -5
- package/dist/components/Tabs/renderGroupTab.d.ts +2 -2
- package/dist/components/Tabs/renderGroupTab.js +1 -1
- package/dist/components/Tabs/renderGroupTab.js.map +1 -1
- package/dist/components/Tabs/renderTab.d.ts +4 -6
- package/dist/components/Tabs/renderTab.js +5 -19
- package/dist/components/Tabs/renderTab.js.map +1 -1
- package/dist/components/TariffsTable/EmbeddableCellData.js +3 -5
- package/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.js +4 -7
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.mobile.js +2 -5
- package/dist/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableCell.js +1 -2
- package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -1
- package/dist/components/TariffsTable/TariffsTableHorizontal.js +1 -1
- package/dist/components/TariffsTable/TariffsTableHorizontal.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableRenderCell.d.ts +1 -3
- package/dist/components/TariffsTable/TariffsTableRenderCell.js +1 -2
- package/dist/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableRow.js +3 -3
- package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableRowContainer.d.ts +1 -3
- package/dist/components/TariffsTable/TariffsTableRowContainer.js +1 -3
- package/dist/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableTileCell.d.ts +3 -4
- package/dist/components/TariffsTable/TariffsTableTileCell.js +8 -13
- package/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableVertical.js +1 -1
- package/dist/components/TariffsTable/TariffsTableVertical.js.map +1 -1
- package/dist/components/Tile/Tile.js +2 -2
- package/dist/components/Tile/Tile.js.map +1 -1
- package/dist/components/VerticalLayout/VerticalLayout.d.ts +5 -0
- package/dist/components/VerticalLayout/VerticalLayout.js +35 -0
- package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -0
- package/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +17 -0
- package/dist/components/VerticalLayout/VerticalLayoutContent.js +2 -0
- package/dist/components/VerticalLayout/VerticalLayoutContent.js.map +1 -0
- package/dist/hooks/handlerDecorator.d.ts +5 -0
- package/dist/hooks/handlerDecorator.js +12 -0
- package/dist/hooks/handlerDecorator.js.map +1 -0
- package/dist/hooks/useLink.d.ts +6 -16
- package/dist/hooks/useLink.js +21 -17
- package/dist/hooks/useLink.js.map +1 -1
- package/dist/hooks/useRouter.d.ts +13 -0
- package/dist/hooks/useRouter.js +21 -0
- package/dist/hooks/useRouter.js.map +1 -0
- package/dist/hooks/useTableArrowScrollControl.d.ts +1 -3
- package/dist/hooks/useTableArrowScrollControl.js +13 -4
- package/dist/hooks/useTableArrowScrollControl.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/model/BlockVersion.d.ts +1 -0
- package/dist/model/BlockVersion.js +6 -1
- package/dist/model/BlockVersion.js.map +1 -1
- package/dist/model/BlocksRegistry.d.ts +1 -1
- package/dist/model/JSXBlock.d.ts +7 -8
- package/dist/react/setup-fixture.d.ts +0 -3
- package/dist/react/setup-fixture.js +9 -25
- package/dist/react/setup-fixture.js.map +1 -1
- package/dist/services/sitemap/SitemapProps.d.ts +1 -1
- package/dist/services/sitemap/findActiveSubItem.d.ts +1 -1
- package/dist/services/sitemap/isHrefActive.js +1 -2
- package/dist/services/sitemap/isHrefActive.js.map +1 -1
- package/dist/services/sitemap/isSubItemActive.d.ts +1 -1
- package/dist/services/sitemap/isTopItemActive.d.ts +1 -1
- package/dist/services/sitemap/useSWRResource.d.ts +2 -0
- package/dist/services/sitemap/useSWRResource.js +12 -0
- package/dist/services/sitemap/useSWRResource.js.map +1 -0
- package/dist/ui-kit/BlockWrapper.d.ts +2 -2
- package/dist/ui-kit/BlockWrapper.js +3 -2
- package/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/dist/ui-kit/Breadcrumb.js +6 -1
- package/dist/ui-kit/Breadcrumb.js.map +1 -1
- package/dist/ui-kit/Button/Button.js +8 -9
- package/dist/ui-kit/Button/Button.js.map +1 -1
- package/dist/ui-kit/Button/ButtonInner.js +2 -3
- package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/dist/ui-kit/Button/ButtonSection.d.ts +2 -2
- package/dist/ui-kit/Button/ButtonSection.js +1 -6
- package/dist/ui-kit/Button/ButtonSection.js.map +1 -1
- package/dist/ui-kit/Checkbox/Checkbox.js +1 -3
- package/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/dist/ui-kit/Checkbox/CheckboxProps.d.ts +2 -2
- package/dist/ui-kit/HeaderItem/HeaderItem.js +6 -1
- package/dist/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTable.d.ts +2 -3
- package/dist/ui-kit/InnerTable/InnerTable.js +2 -2
- package/dist/ui-kit/InnerTable/InnerTable.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableBody.d.ts +1 -2
- package/dist/ui-kit/InnerTable/InnerTableBody.js +2 -2
- package/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableBodyItem.d.ts +1 -2
- package/dist/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableButton.d.ts +1 -2
- package/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +4 -5
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +1 -3
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/dist/ui-kit/SearchBar/SearchBar.d.ts +2 -2
- package/dist/ui-kit/SearchBar/SearchBar.js +1 -3
- package/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/dist/ui-kit/SearchBar/SearchBar.mobile.d.ts +2 -2
- package/dist/ui-kit/SearchBar/SearchBar.mobile.js +1 -3
- package/dist/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -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/SwipeListControlProps.d.ts +2 -2
- package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +2 -2
- package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
- package/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +3 -2
- package/dist/ui-kit/TopItem/TopItem.js +6 -1
- package/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/dist/utils/adjustHref.js +2 -10
- package/dist/utils/adjustHref.js.map +1 -1
- package/lib/ProjectSettings.d.ts +2 -0
- package/lib/ProjectSettings.js +3 -0
- package/lib/ProjectSettings.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/Accordion/Accordion.fixture.d.ts +1 -0
- package/lib/components/Accordion/Accordion.fixture.mobile.d.ts +1 -0
- package/lib/components/Accordion/Accordion.js +1 -1
- package/lib/components/Accordion/Accordion.js.map +1 -1
- package/lib/components/Accordion/Accordion.mobile.js +1 -1
- package/lib/components/Accordion/Accordion.mobile.js.map +1 -1
- package/lib/components/BaseTile/BaseTile.d.ts +2 -2
- package/lib/components/BaseTile/BaseTile.js +1 -3
- package/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.fixture.d.ts +1 -0
- package/lib/components/Blocks.js +10 -6
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.js +0 -2
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/Bonus/Bonus.fixture.d.ts +1 -0
- package/lib/components/Bonus/Bonus.js +3 -3
- package/lib/components/Bonus/Bonus.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.d.ts +1 -0
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/lib/components/BusinessBlock/BusinessBlock.d.ts +5 -0
- package/lib/{ui-kit/Button/Button.fixture.mobile.d.ts → components/BusinessBlock/BusinessBlock.fixture.d.ts} +1 -1
- package/lib/components/BusinessBlock/BusinessBlock.js +7 -0
- package/lib/components/BusinessBlock/BusinessBlock.js.map +1 -0
- package/lib/components/BusinessBlock/BusinessBlockContent.d.ts +28 -0
- package/lib/components/BusinessBlock/BusinessBlockContent.js +2 -0
- package/lib/components/BusinessBlock/BusinessBlockContent.js.map +1 -0
- package/lib/components/BusinessBlock/BusinessCard.d.ts +2 -0
- package/lib/components/BusinessBlock/BusinessCard.js +14 -0
- package/lib/components/BusinessBlock/BusinessCard.js.map +1 -0
- package/lib/components/Calculator/BonusCalculatorForm.d.ts +2 -2
- package/lib/components/Calculator/BonusCalculatorForm.js +2 -2
- package/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/Calculator.fixture.d.ts +1 -0
- package/lib/components/Calculator/Calculator.js +3 -5
- package/lib/components/Calculator/Calculator.js.map +1 -1
- package/lib/components/Calculator/CreditCalculatorForm.d.ts +2 -2
- package/lib/components/Calculator/CreditCalculatorForm.js +3 -8
- package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/DepositCalculatorForm.d.ts +2 -2
- package/lib/components/Calculator/DepositCalculatorForm.js +3 -8
- package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/renderButtonSection.d.ts +1 -2
- package/lib/components/Calculator/renderButtonSection.js +2 -2
- package/lib/components/Calculator/renderButtonSection.js.map +1 -1
- package/lib/components/Calculator/renderCalculatorBlock.d.ts +1 -1
- package/lib/components/Calculator/renderCalculatorBlock.js +2 -2
- package/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
- package/lib/components/CardTransfer/CardTransfer.fixture.d.ts +1 -0
- package/lib/components/CardTransfer/CardTransfer.js +3 -4
- package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/lib/components/Catalog/Catalog.fixture.d.ts +1 -0
- package/lib/components/Catalog/Catalog.js +12 -22
- package/lib/components/Catalog/Catalog.js.map +1 -1
- package/lib/components/Catalog/CatalogCard.d.ts +2 -2
- package/lib/components/Catalog/CatalogCard.js +1 -3
- package/lib/components/Catalog/CatalogCard.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.fixture.d.ts +1 -0
- package/lib/components/ComparisonTable/ComparisonTable.fixture.mobile.d.ts +1 -0
- package/lib/components/ComparisonTable/ComparisonTable.js +5 -7
- package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.mobile.js +3 -3
- package/lib/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTableBody.d.ts +1 -3
- package/lib/components/ComparisonTable/ComparisonTableBody.js +3 -9
- package/lib/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +0 -3
- package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js +1 -4
- package/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTableRows.js +2 -2
- package/lib/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
- package/lib/components/ComparisonTable/HeaderCell.js +1 -1
- package/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/lib/components/ContactsBlock/ContactsBlock.fixture.d.ts +1 -0
- package/lib/components/ContactsBlock/ContactsBlock.js +2 -2
- package/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/lib/components/ContentPage/ContentPage.fixture.d.ts +1 -0
- package/lib/components/ContentPage/ContentPage.fixture.mobile.d.ts +1 -0
- package/lib/components/ContentPage/ContentPage.js +4 -5
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/ContentPage/renderBlock.d.ts +0 -2
- package/lib/components/ContentPage/renderBlock.js +3 -3
- package/lib/components/ContentPage/renderBlock.js.map +1 -1
- package/lib/components/ContentPage/renderBlockList.d.ts +1 -1
- package/lib/components/ContentPage/renderBlockList.js +5 -12
- package/lib/components/ContentPage/renderBlockList.js.map +1 -1
- package/lib/components/ContentPage/renderSlots.d.ts +1 -1
- package/lib/components/ContentPage/renderSlots.js +10 -12
- package/lib/components/ContentPage/renderSlots.js.map +1 -1
- package/lib/components/ErrorBlock/ErrorBlock.fixture.d.ts +1 -0
- package/lib/components/ErrorBlock/ErrorBlock.js +1 -6
- package/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +1 -2
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +2 -5
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTile.fixture.d.ts +1 -0
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js +2 -2
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/lib/components/Footer/Contacts.d.ts +2 -2
- package/lib/components/Footer/Contacts.js +1 -10
- package/lib/components/Footer/Contacts.js.map +1 -1
- package/lib/components/Footer/Footer.fallback.d.ts +2 -0
- package/lib/components/Footer/Footer.fallback.js +10 -0
- package/lib/components/Footer/Footer.fallback.js.map +1 -0
- package/lib/components/Footer/Footer.fixture.d.ts +1 -0
- package/lib/components/Footer/Footer.fixture.mobile.d.ts +1 -0
- package/lib/components/Footer/Footer.js +6 -3
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js +10 -9
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Footer/FooterContent.d.ts +3 -19
- package/lib/components/Footer/FooterDataProps.d.ts +12 -0
- package/lib/components/Footer/FooterDataProps.js +2 -0
- package/lib/components/Footer/FooterDataProps.js.map +1 -0
- package/lib/components/Footer/FooterLink.d.ts +2 -2
- package/lib/components/Footer/HorizontalNavigation.d.ts +1 -2
- package/lib/components/Footer/HorizontalNavigation.js +2 -5
- package/lib/components/Footer/HorizontalNavigation.js.map +1 -1
- package/lib/components/Footer/HorizontalNavigation.mobile.d.ts +1 -2
- package/lib/components/Footer/HorizontalNavigation.mobile.js +1 -6
- package/lib/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
- package/lib/components/Footer/HorizontalNavigationLink.js +6 -1
- package/lib/components/Footer/HorizontalNavigationLink.js.map +1 -1
- package/lib/components/Footer/MediaButton.js +5 -2
- package/lib/components/Footer/MediaButton.js.map +1 -1
- package/lib/components/Footer/Sitemap.d.ts +2 -2
- package/lib/components/Footer/Sitemap.js +14 -12
- package/lib/components/Footer/Sitemap.js.map +1 -1
- package/lib/components/Footer/SocialMedia.d.ts +2 -2
- package/lib/components/Footer/SocialMedia.js +1 -6
- package/lib/components/Footer/SocialMedia.js.map +1 -1
- package/lib/components/Footer/SocialMedia.mobile.d.ts +2 -2
- package/lib/components/Footer/SocialMedia.mobile.js +1 -6
- package/lib/components/Footer/SocialMedia.mobile.js.map +1 -1
- package/lib/components/Footer/TextInformation.js +1 -6
- package/lib/components/Footer/TextInformation.js.map +1 -1
- package/lib/components/Footer/TextInformation.mobile.js +2 -5
- package/lib/components/Footer/TextInformation.mobile.js.map +1 -1
- package/lib/components/Footer/TextInformationLink.js +6 -1
- package/lib/components/Footer/TextInformationLink.js.map +1 -1
- package/lib/components/Footer/useFooterData.d.ts +2 -0
- package/lib/{services/sitemap/useSitemap.js → components/Footer/useFooterData.js} +3 -3
- package/lib/components/Footer/useFooterData.js.map +1 -0
- package/lib/components/Gallery/Gallery.fixture.d.ts +1 -0
- package/lib/components/Gallery/Gallery.fixture.mobile.d.ts +1 -0
- package/lib/components/Gallery/Gallery.mobile.js +4 -4
- package/lib/components/Gallery/Gallery.mobile.js.map +1 -1
- package/lib/components/Gallery/GalleryContainer.d.ts +1 -3
- package/lib/components/Gallery/GalleryContainer.js +2 -2
- package/lib/components/Gallery/GalleryContainer.js.map +1 -1
- package/lib/components/Gallery/GalleryContent.d.ts +1 -1
- package/lib/components/Gallery/GalleryInner.js +2 -2
- package/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/lib/components/GracePeriod/GracePeriod.fixture.d.ts +1 -0
- package/lib/components/GracePeriod/GracePeriod.js +1 -3
- package/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/lib/components/Header/DropdownMenu.d.ts +0 -2
- package/lib/components/Header/DropdownMenu.js +3 -4
- package/lib/components/Header/DropdownMenu.js.map +1 -1
- package/lib/components/Header/Header.fixture.d.ts +1 -0
- package/lib/components/Header/Header.fixture.mobile.d.ts +1 -0
- package/lib/components/Header/Header.js +8 -9
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/Header.mobile.js +8 -14
- package/lib/components/Header/Header.mobile.js.map +1 -1
- package/lib/components/Header/HeaderBurger.d.ts +0 -2
- package/lib/components/Header/HeaderBurger.js +2 -2
- package/lib/components/Header/HeaderBurger.js.map +1 -1
- package/lib/components/Header/HeaderSubMenu.d.ts +0 -2
- package/lib/components/Header/HeaderSubMenu.js +4 -3
- package/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/lib/components/Header/HeaderSubMenuItem.d.ts +0 -2
- package/lib/components/Header/HeaderSubMenuItem.js +2 -5
- package/lib/components/Header/HeaderSubMenuItem.js.map +1 -1
- package/lib/components/Headline/Headline.fixture.d.ts +1 -0
- package/lib/components/Headline/Headline.fixture.mobile.d.ts +1 -0
- package/lib/components/Headline/Headline.js +1 -1
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.d.ts +1 -0
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +4 -6
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +2 -2
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/lib/components/InvestmentGallery/InvestmentGallery.fixture.d.ts +1 -0
- package/lib/components/InvestmentGallery/InvestmentGallery.js +3 -7
- package/lib/components/InvestmentGallery/InvestmentGallery.js.map +1 -1
- package/lib/components/InvestmentGallery/InvestmentGalleryCard.d.ts +2 -2
- package/lib/components/InvestmentGallery/InvestmentGalleryCard.js +2 -2
- package/lib/components/InvestmentGallery/InvestmentGalleryCard.js.map +1 -1
- package/lib/components/InvestmentInfo/InvestmentInfo.fixture.d.ts +1 -0
- package/lib/components/InvestmentInfo/InvestmentInfo.js +2 -2
- package/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/lib/components/LikeControl/LikeControl.d.ts +5 -2
- package/lib/components/LikeControl/LikeControl.fixture.d.ts +1 -0
- package/lib/components/LikeControl/LikeControl.js +4 -5
- package/lib/components/LikeControl/LikeControl.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.fixture.d.ts +1 -0
- package/lib/components/LinkDocs/LinkDocs.fixture.mobile.d.ts +1 -0
- package/lib/components/LinkDocs/LinkDocs.js +1 -3
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.js +1 -3
- package/lib/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsHorizontalList.d.ts +1 -5
- package/lib/components/LinkDocs/LinkDocsHorizontalList.js +3 -5
- package/lib/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -1
- package/lib/components/LinkList/LinkList.fixture.d.ts +1 -0
- package/lib/components/LinkList/LinkList.js +1 -3
- package/lib/components/LinkList/LinkList.js.map +1 -1
- package/lib/components/MiniGallery/MiniGallery.fixture.d.ts +1 -0
- package/lib/components/MobileAppTile/MobileAppTile.fixture.d.ts +1 -0
- package/lib/components/MobileAppTile/MobileAppTile.fixture.mobile.d.ts +1 -0
- package/lib/components/MobileAppTile/MobileAppTile.js +4 -4
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/OfficeMap/OfficeMap.fixture.d.ts +1 -0
- package/lib/components/OfficeServicesBlock/OfficeServicesBlock.fixture.d.ts +1 -0
- package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -3
- package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/lib/components/OtherProducts/OtherProducts.fixture.d.ts +1 -0
- package/lib/components/OtherProducts/OtherProducts.js +1 -1
- package/lib/components/OtherProducts/OtherProducts.js.map +1 -1
- package/lib/components/PictureText/PictureText.fixture.d.ts +1 -0
- package/lib/components/PictureText/PictureText.js +1 -3
- package/lib/components/PictureText/PictureText.js.map +1 -1
- package/lib/components/Placeholder/Placeholder.d.ts +0 -1
- package/lib/components/Placeholder/Placeholder.fixture.d.ts +1 -0
- package/lib/components/Placeholder/Placeholder.fixture.mobile.d.ts +1 -0
- package/lib/components/Placeholder/Placeholder.js +2 -2
- package/lib/components/Placeholder/Placeholder.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +1 -0
- package/lib/components/ProductBlock/ProductBlock.fixture.mobile.d.ts +1 -0
- package/lib/components/ProductBlock/ProductBlock.js +4 -7
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.js +2 -5
- package/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockInner.mobile.js +2 -2
- package/lib/components/ProductBlock/ProductBlockInner.mobile.js.map +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.js +1 -0
- package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.fixture.d.ts +1 -0
- package/lib/components/ProductGallery/ProductGallery.js +5 -5
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/ProductTile/ProductTile.fixture.d.ts +1 -0
- package/lib/components/ProductTile/ProductTile.js +4 -6
- package/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/lib/components/PromoTile/PromoTile.fixture.d.ts +1 -0
- package/lib/components/PromoTile/PromoTile.js +1 -3
- package/lib/components/PromoTile/PromoTile.js.map +1 -1
- package/lib/components/Recommendation/Recommendation.fixture.d.ts +1 -0
- package/lib/components/Recommendation/Recommendation.js +4 -9
- package/lib/components/Recommendation/Recommendation.js.map +1 -1
- package/lib/components/Recommendation/RecommendationCard.d.ts +2 -2
- package/lib/components/Recommendation/RecommendationCard.js +2 -2
- package/lib/components/Recommendation/RecommendationCard.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRental.fixture.d.ts +1 -0
- package/lib/components/SafeDepositRental/SafeDepositRental.js +3 -3
- package/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.fixture.d.ts +1 -0
- package/lib/components/StepsBlock/StepsBlock.fixture.mobile.d.ts +1 -0
- package/lib/components/StepsBlock/StepsBlock.js +3 -12
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/StepsBlock/renderStepContent.d.ts +2 -5
- package/lib/components/StepsBlock/renderStepContent.js +2 -3
- package/lib/components/StepsBlock/renderStepContent.js.map +1 -1
- package/lib/components/Tabs/LinkTab.d.ts +8 -0
- package/lib/components/Tabs/LinkTab.js +18 -0
- package/lib/components/Tabs/LinkTab.js.map +1 -0
- package/lib/components/Tabs/Tabs.d.ts +2 -2
- package/lib/components/Tabs/Tabs.fixture.d.ts +1 -0
- package/lib/components/Tabs/Tabs.js +2 -2
- package/lib/components/Tabs/Tabs.js.map +1 -1
- package/lib/components/Tabs/TabsContent.d.ts +5 -5
- package/lib/components/Tabs/renderGroupTab.d.ts +2 -2
- package/lib/components/Tabs/renderGroupTab.js +1 -1
- package/lib/components/Tabs/renderGroupTab.js.map +1 -1
- package/lib/components/Tabs/renderTab.d.ts +4 -6
- package/lib/components/Tabs/renderTab.js +5 -19
- package/lib/components/Tabs/renderTab.js.map +1 -1
- package/lib/components/TariffsTable/EmbeddableCellData.js +3 -5
- package/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.fixture.d.ts +1 -0
- package/lib/components/TariffsTable/TariffsTable.fixture.mobile.d.ts +1 -0
- package/lib/components/TariffsTable/TariffsTable.js +4 -7
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.mobile.js +2 -5
- package/lib/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableCell.js +1 -2
- package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -1
- package/lib/components/TariffsTable/TariffsTableHorizontal.js +1 -1
- package/lib/components/TariffsTable/TariffsTableHorizontal.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableRenderCell.d.ts +1 -3
- package/lib/components/TariffsTable/TariffsTableRenderCell.js +1 -2
- package/lib/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableRow.js +3 -3
- package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableRowContainer.d.ts +1 -3
- package/lib/components/TariffsTable/TariffsTableRowContainer.js +1 -3
- package/lib/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableTileCell.d.ts +3 -4
- package/lib/components/TariffsTable/TariffsTableTileCell.js +8 -13
- package/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableVertical.js +1 -1
- package/lib/components/TariffsTable/TariffsTableVertical.js.map +1 -1
- package/lib/components/TextBlock/TextBlock.fixture.d.ts +1 -0
- package/lib/components/TextBlock/TextBlock.fixture.mobile.d.ts +1 -0
- package/lib/components/Tile/Tile.fixture.d.ts +1 -0
- package/lib/components/Tile/Tile.js +2 -2
- package/lib/components/Tile/Tile.js.map +1 -1
- package/lib/components/VerticalLayout/VerticalLayout.d.ts +5 -0
- package/lib/components/VerticalLayout/VerticalLayout.fixture.d.ts +9 -0
- package/lib/components/VerticalLayout/VerticalLayout.js +33 -0
- package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -0
- package/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +17 -0
- package/lib/components/VerticalLayout/VerticalLayoutContent.js +2 -0
- package/lib/components/VerticalLayout/VerticalLayoutContent.js.map +1 -0
- package/lib/hooks/handlerDecorator.d.ts +5 -0
- package/lib/hooks/handlerDecorator.js +9 -0
- package/lib/hooks/handlerDecorator.js.map +1 -0
- package/lib/hooks/useLink.d.ts +6 -16
- package/lib/hooks/useLink.js +20 -15
- package/lib/hooks/useLink.js.map +1 -1
- package/lib/hooks/useRouter.d.ts +13 -0
- package/lib/hooks/useRouter.js +18 -0
- package/lib/hooks/useRouter.js.map +1 -0
- package/lib/hooks/useTableArrowScrollControl.d.ts +1 -3
- package/lib/hooks/useTableArrowScrollControl.js +13 -4
- package/lib/hooks/useTableArrowScrollControl.js.map +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -1
- package/lib/model/BlockVersion.d.ts +1 -0
- package/lib/model/BlockVersion.js +5 -0
- package/lib/model/BlockVersion.js.map +1 -1
- package/lib/model/BlocksRegistry.d.ts +1 -1
- package/lib/model/JSXBlock.d.ts +7 -8
- package/lib/react/setup-fixture.d.ts +0 -3
- package/lib/react/setup-fixture.js +9 -24
- package/lib/react/setup-fixture.js.map +1 -1
- package/lib/services/sitemap/SitemapProps.d.ts +1 -1
- package/lib/services/sitemap/findActiveSubItem.d.ts +1 -1
- package/lib/services/sitemap/isHrefActive.js +1 -2
- package/lib/services/sitemap/isHrefActive.js.map +1 -1
- package/lib/services/sitemap/isSubItemActive.d.ts +1 -1
- package/lib/services/sitemap/isTopItemActive.d.ts +1 -1
- package/lib/services/sitemap/useSWRResource.d.ts +2 -0
- package/lib/services/sitemap/useSWRResource.js +9 -0
- package/lib/services/sitemap/useSWRResource.js.map +1 -0
- package/lib/ui-kit/BlockWrapper.d.ts +2 -2
- package/lib/ui-kit/BlockWrapper.js +3 -2
- package/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/lib/ui-kit/Breadcrumb.js +6 -1
- package/lib/ui-kit/Breadcrumb.js.map +1 -1
- package/lib/ui-kit/Button/Button.js +8 -9
- package/lib/ui-kit/Button/Button.js.map +1 -1
- package/lib/ui-kit/Button/ButtonInner.js +2 -3
- package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/lib/ui-kit/Button/ButtonSection.d.ts +2 -2
- package/lib/ui-kit/Button/ButtonSection.js +1 -6
- package/lib/ui-kit/Button/ButtonSection.js.map +1 -1
- package/lib/ui-kit/Checkbox/Checkbox.js +1 -3
- package/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/lib/ui-kit/Checkbox/CheckboxProps.d.ts +2 -2
- package/lib/ui-kit/HeaderItem/HeaderItem.js +6 -1
- package/lib/ui-kit/HeaderItem/HeaderItem.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTable.d.ts +2 -3
- package/lib/ui-kit/InnerTable/InnerTable.js +2 -2
- package/lib/ui-kit/InnerTable/InnerTable.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableBody.d.ts +1 -2
- package/lib/ui-kit/InnerTable/InnerTableBody.js +2 -2
- package/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableBodyItem.d.ts +1 -2
- package/lib/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableButton.d.ts +1 -2
- package/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +4 -5
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.fixture.d.ts +1 -0
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +1 -3
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/lib/ui-kit/SearchBar/SearchBar.d.ts +2 -2
- package/lib/ui-kit/SearchBar/SearchBar.js +1 -3
- package/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/lib/ui-kit/SearchBar/SearchBar.mobile.d.ts +2 -2
- package/lib/ui-kit/SearchBar/SearchBar.mobile.js +1 -3
- package/lib/ui-kit/SearchBar/SearchBar.mobile.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.d.ts +1 -0
- package/lib/ui-kit/SwipeListControl/SwipeListControl.js +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControl.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +2 -2
- package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +2 -2
- package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
- package/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +3 -2
- package/lib/ui-kit/TopItem/TopItem.js +6 -1
- package/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/lib/utils/adjustHref.js +2 -10
- package/lib/utils/adjustHref.js.map +1 -1
- package/mobile/bundle/ProjectSettings.d.ts +2 -0
- package/mobile/bundle/bundle.umd.js +231 -248
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/BaseTile/BaseTile.d.ts +2 -2
- package/mobile/bundle/components/BusinessBlock/BusinessBlock.d.ts +5 -0
- package/mobile/bundle/components/BusinessBlock/BusinessBlockContent.d.ts +28 -0
- package/mobile/bundle/components/BusinessBlock/BusinessCard.d.ts +2 -0
- package/mobile/bundle/components/Calculator/BonusCalculatorForm.d.ts +2 -2
- package/mobile/bundle/components/Calculator/CreditCalculatorForm.d.ts +2 -2
- package/mobile/bundle/components/Calculator/DepositCalculatorForm.d.ts +2 -2
- package/mobile/bundle/components/Calculator/renderButtonSection.d.ts +1 -2
- package/mobile/bundle/components/Calculator/renderCalculatorBlock.d.ts +1 -1
- package/mobile/bundle/components/Catalog/CatalogCard.d.ts +2 -2
- package/mobile/bundle/components/ComparisonTable/ComparisonTableBody.d.ts +1 -3
- package/mobile/bundle/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +0 -3
- package/mobile/bundle/components/ContentPage/renderBlock.d.ts +0 -2
- package/mobile/bundle/components/ContentPage/renderBlockList.d.ts +1 -1
- package/mobile/bundle/components/ContentPage/renderSlots.d.ts +1 -1
- package/mobile/bundle/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +1 -2
- package/mobile/bundle/components/Footer/Contacts.d.ts +2 -2
- package/mobile/bundle/components/Footer/Footer.fallback.d.ts +2 -0
- package/mobile/bundle/components/Footer/FooterContent.d.ts +3 -19
- package/mobile/bundle/components/Footer/FooterDataProps.d.ts +12 -0
- package/mobile/bundle/components/Footer/FooterLink.d.ts +2 -2
- package/mobile/bundle/components/Footer/HorizontalNavigation.d.ts +1 -2
- package/mobile/bundle/components/Footer/Sitemap.d.ts +2 -2
- package/mobile/bundle/components/Footer/SocialMedia.d.ts +2 -2
- package/mobile/bundle/components/Footer/useFooterData.d.ts +2 -0
- package/mobile/bundle/components/Gallery/GalleryContainer.d.ts +1 -3
- package/mobile/bundle/components/Gallery/GalleryContent.d.ts +1 -1
- package/mobile/bundle/components/Header/DropdownMenu.d.ts +0 -2
- package/mobile/bundle/components/Header/HeaderBurger.d.ts +0 -2
- package/mobile/bundle/components/Header/HeaderSubMenu.d.ts +0 -2
- package/mobile/bundle/components/Header/HeaderSubMenuItem.d.ts +0 -2
- package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +2 -2
- package/mobile/bundle/components/InvestmentGallery/InvestmentGalleryCard.d.ts +2 -2
- package/mobile/bundle/components/LikeControl/LikeControl.d.ts +5 -2
- package/mobile/bundle/components/LinkDocs/LinkDocsHorizontalList.d.ts +1 -5
- package/mobile/bundle/components/Placeholder/Placeholder.d.ts +0 -1
- package/mobile/bundle/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/mobile/bundle/components/Recommendation/RecommendationCard.d.ts +2 -2
- package/mobile/bundle/components/StepsBlock/renderStepContent.d.ts +2 -5
- package/mobile/bundle/components/Tabs/LinkTab.d.ts +8 -0
- package/mobile/bundle/components/Tabs/Tabs.d.ts +2 -2
- package/mobile/bundle/components/Tabs/TabsContent.d.ts +5 -5
- package/mobile/bundle/components/Tabs/renderGroupTab.d.ts +2 -2
- package/mobile/bundle/components/Tabs/renderTab.d.ts +4 -6
- package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +1 -1
- package/mobile/bundle/components/TariffsTable/TariffsTableRenderCell.d.ts +1 -3
- package/mobile/bundle/components/TariffsTable/TariffsTableRowContainer.d.ts +1 -3
- package/mobile/bundle/components/TariffsTable/TariffsTableTileCell.d.ts +3 -4
- package/mobile/bundle/components/VerticalLayout/VerticalLayout.d.ts +5 -0
- package/mobile/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +17 -0
- package/mobile/bundle/hooks/handlerDecorator.d.ts +5 -0
- package/mobile/bundle/hooks/useLink.d.ts +6 -16
- package/mobile/bundle/hooks/useRouter.d.ts +13 -0
- package/mobile/bundle/hooks/useTableArrowScrollControl.d.ts +1 -3
- package/mobile/bundle/index.d.ts +2 -0
- package/mobile/bundle/model/BlockVersion.d.ts +1 -0
- package/mobile/bundle/model/BlocksRegistry.d.ts +1 -1
- package/mobile/bundle/model/JSXBlock.d.ts +7 -8
- package/mobile/bundle/react/setup-fixture.d.ts +0 -3
- package/mobile/bundle/services/sitemap/SitemapProps.d.ts +1 -1
- package/mobile/bundle/services/sitemap/findActiveSubItem.d.ts +1 -1
- package/mobile/bundle/services/sitemap/isSubItemActive.d.ts +1 -1
- package/mobile/bundle/services/sitemap/isTopItemActive.d.ts +1 -1
- package/mobile/bundle/services/sitemap/useSWRResource.d.ts +2 -0
- package/mobile/bundle/ui-kit/BlockWrapper.d.ts +2 -2
- package/mobile/bundle/ui-kit/Button/ButtonSection.d.ts +2 -2
- package/mobile/bundle/ui-kit/Checkbox/CheckboxProps.d.ts +2 -2
- package/mobile/bundle/ui-kit/InnerTable/InnerTable.d.ts +2 -3
- package/mobile/bundle/ui-kit/InnerTable/InnerTableBody.d.ts +1 -2
- package/mobile/bundle/ui-kit/InnerTable/InnerTableBodyItem.d.ts +1 -2
- package/mobile/bundle/ui-kit/InnerTable/InnerTableButton.d.ts +1 -2
- package/mobile/bundle/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +4 -5
- package/mobile/bundle/ui-kit/SearchBar/SearchBar.d.ts +2 -2
- package/mobile/bundle/ui-kit/SwipeListControl/SwipeListControlProps.d.ts +2 -2
- package/mobile/bundle/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +3 -2
- package/mobile/dist/ProjectSettings.d.ts +2 -0
- package/mobile/dist/ProjectSettings.js +3 -0
- package/mobile/dist/ProjectSettings.js.map +1 -1
- package/mobile/dist/components/Accordion/Accordion.js +1 -1
- package/mobile/dist/components/Accordion/Accordion.js.map +1 -1
- package/mobile/dist/components/BaseTile/BaseTile.d.ts +2 -2
- package/mobile/dist/components/BaseTile/BaseTile.js +1 -3
- package/mobile/dist/components/BaseTile/BaseTile.js.map +1 -1
- package/mobile/dist/components/Blocks.js +0 -2
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/Bonus/Bonus.js +3 -3
- 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.d.ts +5 -0
- package/mobile/dist/components/BusinessBlock/BusinessBlock.js +9 -0
- package/mobile/dist/components/BusinessBlock/BusinessBlock.js.map +1 -0
- package/mobile/dist/components/BusinessBlock/BusinessBlockContent.d.ts +28 -0
- package/mobile/dist/components/BusinessBlock/BusinessBlockContent.js +2 -0
- package/mobile/dist/components/BusinessBlock/BusinessBlockContent.js.map +1 -0
- package/mobile/dist/components/BusinessBlock/BusinessCard.d.ts +2 -0
- package/mobile/dist/components/BusinessBlock/BusinessCard.js +16 -0
- package/mobile/dist/components/BusinessBlock/BusinessCard.js.map +1 -0
- package/mobile/dist/components/Calculator/BonusCalculatorForm.d.ts +2 -2
- package/mobile/dist/components/Calculator/BonusCalculatorForm.js +2 -2
- package/mobile/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/Calculator.js +3 -5
- package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
- package/mobile/dist/components/Calculator/CreditCalculatorForm.d.ts +2 -2
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js +3 -8
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/DepositCalculatorForm.d.ts +2 -2
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js +3 -8
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/renderButtonSection.d.ts +1 -2
- package/mobile/dist/components/Calculator/renderButtonSection.js +2 -2
- package/mobile/dist/components/Calculator/renderButtonSection.js.map +1 -1
- package/mobile/dist/components/Calculator/renderCalculatorBlock.d.ts +1 -1
- package/mobile/dist/components/Calculator/renderCalculatorBlock.js +2 -2
- package/mobile/dist/components/Calculator/renderCalculatorBlock.js.map +1 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.js +3 -4
- package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/dist/components/Catalog/Catalog.js +11 -21
- package/mobile/dist/components/Catalog/Catalog.js.map +1 -1
- package/mobile/dist/components/Catalog/CatalogCard.d.ts +2 -2
- package/mobile/dist/components/Catalog/CatalogCard.js +1 -3
- package/mobile/dist/components/Catalog/CatalogCard.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTable.js +3 -3
- package/mobile/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTableBody.d.ts +1 -3
- package/mobile/dist/components/ComparisonTable/ComparisonTableBody.js +3 -9
- package/mobile/dist/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +0 -3
- package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js +1 -4
- package/mobile/dist/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTableRows.js +2 -2
- package/mobile/dist/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
- package/mobile/dist/components/ContactsBlock/ContactsBlock.js +2 -2
- package/mobile/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js +4 -5
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/components/ContentPage/renderBlock.d.ts +0 -2
- package/mobile/dist/components/ContentPage/renderBlock.js +3 -3
- package/mobile/dist/components/ContentPage/renderBlock.js.map +1 -1
- package/mobile/dist/components/ContentPage/renderBlockList.d.ts +1 -1
- package/mobile/dist/components/ContentPage/renderBlockList.js +5 -12
- package/mobile/dist/components/ContentPage/renderBlockList.js.map +1 -1
- package/mobile/dist/components/ContentPage/renderSlots.d.ts +1 -1
- package/mobile/dist/components/ContentPage/renderSlots.js +10 -12
- package/mobile/dist/components/ContentPage/renderSlots.js.map +1 -1
- package/mobile/dist/components/ErrorBlock/ErrorBlock.js +1 -6
- package/mobile/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +1 -2
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +2 -5
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js +2 -2
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/dist/components/Footer/Contacts.d.ts +2 -2
- package/mobile/dist/components/Footer/Contacts.js +1 -10
- package/mobile/dist/components/Footer/Contacts.js.map +1 -1
- package/mobile/dist/components/Footer/Footer.fallback.d.ts +2 -0
- package/mobile/dist/components/Footer/Footer.fallback.js +13 -0
- package/mobile/dist/components/Footer/Footer.fallback.js.map +1 -0
- package/mobile/dist/components/Footer/Footer.js +10 -9
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Footer/FooterContent.d.ts +3 -19
- package/mobile/dist/components/Footer/FooterDataProps.d.ts +12 -0
- package/mobile/dist/components/{ContentPage/ContentPageContext.js → Footer/FooterDataProps.js} +1 -1
- package/mobile/dist/components/Footer/FooterDataProps.js.map +1 -0
- package/mobile/dist/components/Footer/FooterLink.d.ts +2 -2
- package/mobile/dist/components/Footer/HorizontalNavigation.d.ts +1 -2
- package/mobile/dist/components/Footer/HorizontalNavigation.js +1 -6
- package/mobile/dist/components/Footer/HorizontalNavigation.js.map +1 -1
- package/mobile/dist/components/Footer/HorizontalNavigationLink.js +6 -1
- package/mobile/dist/components/Footer/HorizontalNavigationLink.js.map +1 -1
- package/mobile/dist/components/Footer/MediaButton.js +5 -2
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
- package/mobile/dist/components/Footer/Sitemap.d.ts +2 -2
- package/mobile/dist/components/Footer/Sitemap.js +14 -12
- package/mobile/dist/components/Footer/Sitemap.js.map +1 -1
- package/mobile/dist/components/Footer/SocialMedia.d.ts +2 -2
- package/mobile/dist/components/Footer/SocialMedia.js +1 -6
- package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/dist/components/Footer/TextInformation.js +2 -5
- package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
- package/mobile/dist/components/Footer/TextInformationLink.js +6 -1
- package/mobile/dist/components/Footer/TextInformationLink.js.map +1 -1
- package/mobile/dist/components/Footer/useFooterData.d.ts +2 -0
- package/mobile/dist/{services/sitemap/useSitemap.js → components/Footer/useFooterData.js} +5 -5
- package/mobile/dist/components/Footer/useFooterData.js.map +1 -0
- package/mobile/dist/components/Gallery/Gallery.js +4 -4
- package/mobile/dist/components/Gallery/Gallery.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryContainer.d.ts +1 -3
- package/mobile/dist/components/Gallery/GalleryContainer.js +2 -2
- package/mobile/dist/components/Gallery/GalleryContainer.js.map +1 -1
- package/mobile/dist/components/Gallery/GalleryContent.d.ts +1 -1
- package/mobile/dist/components/Gallery/GalleryInner.js +2 -2
- package/mobile/dist/components/Gallery/GalleryInner.js.map +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriod.js +1 -3
- package/mobile/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/dist/components/Header/DropdownMenu.d.ts +0 -2
- package/mobile/dist/components/Header/DropdownMenu.js +3 -4
- package/mobile/dist/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/dist/components/Header/Header.js +8 -14
- package/mobile/dist/components/Header/Header.js.map +1 -1
- package/mobile/dist/components/Header/HeaderBurger.d.ts +0 -2
- package/mobile/dist/components/Header/HeaderBurger.js +2 -2
- package/mobile/dist/components/Header/HeaderBurger.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSubMenu.d.ts +0 -2
- package/mobile/dist/components/Header/HeaderSubMenu.js +4 -3
- package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSubMenuItem.d.ts +0 -2
- package/mobile/dist/components/Header/HeaderSubMenuItem.js +2 -5
- package/mobile/dist/components/Header/HeaderSubMenuItem.js.map +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +4 -6
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +2 -2
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/dist/components/InvestmentGallery/InvestmentGallery.js +3 -7
- package/mobile/dist/components/InvestmentGallery/InvestmentGallery.js.map +1 -1
- package/mobile/dist/components/InvestmentGallery/InvestmentGalleryCard.d.ts +2 -2
- package/mobile/dist/components/InvestmentGallery/InvestmentGalleryCard.js +2 -2
- package/mobile/dist/components/InvestmentGallery/InvestmentGalleryCard.js.map +1 -1
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js +2 -2
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/mobile/dist/components/LikeControl/LikeControl.d.ts +5 -2
- package/mobile/dist/components/LikeControl/LikeControl.js +5 -6
- package/mobile/dist/components/LikeControl/LikeControl.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.js +1 -3
- package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.d.ts +1 -5
- package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.js +3 -5
- package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -1
- package/mobile/dist/components/LinkList/LinkList.js +1 -3
- package/mobile/dist/components/LinkList/LinkList.js.map +1 -1
- package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -3
- package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/mobile/dist/components/OtherProducts/OtherProducts.js +1 -1
- package/mobile/dist/components/OtherProducts/OtherProducts.js.map +1 -1
- package/mobile/dist/components/PictureText/PictureText.js +1 -3
- package/mobile/dist/components/PictureText/PictureText.js.map +1 -1
- package/mobile/dist/components/Placeholder/Placeholder.d.ts +0 -1
- package/mobile/dist/components/Placeholder/Placeholder.js +2 -2
- package/mobile/dist/components/Placeholder/Placeholder.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js +2 -2
- package/mobile/dist/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js +1 -0
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGallery.js +41 -4
- package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/dist/components/ProductTile/ProductTile.js +4 -6
- package/mobile/dist/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/dist/components/PromoTile/PromoTile.js +1 -3
- package/mobile/dist/components/PromoTile/PromoTile.js.map +1 -1
- package/mobile/dist/components/Recommendation/Recommendation.js +4 -9
- package/mobile/dist/components/Recommendation/Recommendation.js.map +1 -1
- package/mobile/dist/components/Recommendation/RecommendationCard.d.ts +2 -2
- package/mobile/dist/components/Recommendation/RecommendationCard.js +2 -2
- package/mobile/dist/components/Recommendation/RecommendationCard.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js +3 -3
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/dist/components/StepsBlock/renderStepContent.d.ts +2 -5
- package/mobile/dist/components/StepsBlock/renderStepContent.js +2 -3
- package/mobile/dist/components/StepsBlock/renderStepContent.js.map +1 -1
- package/mobile/dist/components/Tabs/LinkTab.d.ts +8 -0
- package/mobile/dist/components/Tabs/LinkTab.js +20 -0
- package/mobile/dist/components/Tabs/LinkTab.js.map +1 -0
- package/mobile/dist/components/Tabs/Tabs.d.ts +2 -2
- package/mobile/dist/components/Tabs/Tabs.js +2 -2
- package/mobile/dist/components/Tabs/Tabs.js.map +1 -1
- package/mobile/dist/components/Tabs/TabsContent.d.ts +5 -5
- package/mobile/dist/components/Tabs/renderGroupTab.d.ts +2 -2
- package/mobile/dist/components/Tabs/renderGroupTab.js +1 -1
- package/mobile/dist/components/Tabs/renderGroupTab.js.map +1 -1
- package/mobile/dist/components/Tabs/renderTab.d.ts +4 -6
- package/mobile/dist/components/Tabs/renderTab.js +5 -19
- package/mobile/dist/components/Tabs/renderTab.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js +2 -5
- package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js +1 -2
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +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/TariffsTableRenderCell.d.ts +1 -3
- package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.js +1 -2
- package/mobile/dist/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js +3 -3
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.d.ts +1 -3
- package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.js +1 -3
- package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.d.ts +3 -4
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js +8 -13
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableVertical.js +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableVertical.js.map +1 -1
- package/mobile/dist/components/Tile/Tile.js +2 -2
- package/mobile/dist/components/Tile/Tile.js.map +1 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayout.d.ts +5 -0
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js +35 -0
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -0
- package/mobile/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +17 -0
- package/mobile/dist/components/VerticalLayout/VerticalLayoutContent.js +2 -0
- package/mobile/dist/components/VerticalLayout/VerticalLayoutContent.js.map +1 -0
- package/mobile/dist/hooks/handlerDecorator.d.ts +5 -0
- package/mobile/dist/hooks/handlerDecorator.js +12 -0
- package/mobile/dist/hooks/handlerDecorator.js.map +1 -0
- package/mobile/dist/hooks/useLink.d.ts +6 -16
- package/mobile/dist/hooks/useLink.js +21 -17
- package/mobile/dist/hooks/useLink.js.map +1 -1
- package/mobile/dist/hooks/useRouter.d.ts +13 -0
- package/mobile/dist/hooks/useRouter.js +21 -0
- package/mobile/dist/hooks/useRouter.js.map +1 -0
- package/mobile/dist/hooks/useTableArrowScrollControl.d.ts +1 -3
- package/mobile/dist/hooks/useTableArrowScrollControl.js +13 -4
- package/mobile/dist/hooks/useTableArrowScrollControl.js.map +1 -1
- package/mobile/dist/index.d.ts +2 -0
- package/mobile/dist/index.js +5 -1
- package/mobile/dist/index.js.map +1 -1
- package/mobile/dist/model/BlockVersion.d.ts +1 -0
- package/mobile/dist/model/BlockVersion.js +6 -1
- package/mobile/dist/model/BlockVersion.js.map +1 -1
- package/mobile/dist/model/BlocksRegistry.d.ts +1 -1
- package/mobile/dist/model/JSXBlock.d.ts +7 -8
- package/mobile/dist/react/setup-fixture.d.ts +0 -3
- package/mobile/dist/react/setup-fixture.js +9 -25
- package/mobile/dist/react/setup-fixture.js.map +1 -1
- package/mobile/dist/services/sitemap/SitemapProps.d.ts +1 -1
- package/mobile/dist/services/sitemap/findActiveSubItem.d.ts +1 -1
- package/mobile/dist/services/sitemap/isHrefActive.js +1 -2
- package/mobile/dist/services/sitemap/isHrefActive.js.map +1 -1
- package/mobile/dist/services/sitemap/isSubItemActive.d.ts +1 -1
- package/mobile/dist/services/sitemap/isTopItemActive.d.ts +1 -1
- package/mobile/dist/services/sitemap/useSWRResource.d.ts +2 -0
- package/mobile/dist/services/sitemap/useSWRResource.js +12 -0
- package/mobile/dist/services/sitemap/useSWRResource.js.map +1 -0
- package/mobile/dist/ui-kit/BlockWrapper.d.ts +2 -2
- package/mobile/dist/ui-kit/BlockWrapper.js +3 -2
- package/mobile/dist/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/dist/ui-kit/Breadcrumb.js +6 -1
- package/mobile/dist/ui-kit/Breadcrumb.js.map +1 -1
- package/mobile/dist/ui-kit/Button/Button.js +10 -24
- package/mobile/dist/ui-kit/Button/Button.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js +2 -3
- package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonSection.d.ts +2 -2
- package/mobile/dist/ui-kit/Button/ButtonSection.js +1 -6
- package/mobile/dist/ui-kit/Button/ButtonSection.js.map +1 -1
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js +1 -3
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/mobile/dist/ui-kit/Checkbox/CheckboxProps.d.ts +2 -2
- package/mobile/dist/ui-kit/InnerTable/InnerTable.d.ts +2 -3
- package/mobile/dist/ui-kit/InnerTable/InnerTable.js +2 -2
- package/mobile/dist/ui-kit/InnerTable/InnerTable.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableBody.d.ts +1 -2
- package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js +2 -2
- package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableBodyItem.d.ts +1 -2
- package/mobile/dist/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.d.ts +1 -2
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +4 -5
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +1 -3
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/mobile/dist/ui-kit/SearchBar/SearchBar.d.ts +2 -2
- package/mobile/dist/ui-kit/SearchBar/SearchBar.js +1 -3
- package/mobile/dist/ui-kit/SearchBar/SearchBar.js.map +1 -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/SwipeListControlProps.d.ts +2 -2
- package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +2 -2
- package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
- package/mobile/dist/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +3 -2
- package/mobile/dist/ui-kit/TopItem/TopItem.js +6 -1
- package/mobile/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/dist/utils/adjustHref.js +2 -10
- package/mobile/dist/utils/adjustHref.js.map +1 -1
- package/mobile/lib/ProjectSettings.d.ts +2 -0
- package/mobile/lib/ProjectSettings.js +3 -0
- package/mobile/lib/ProjectSettings.js.map +1 -1
- package/mobile/lib/components/Accordion/Accordion.js +1 -1
- package/mobile/lib/components/Accordion/Accordion.js.map +1 -1
- package/mobile/lib/components/BaseTile/BaseTile.d.ts +2 -2
- package/mobile/lib/components/BaseTile/BaseTile.js +1 -3
- package/mobile/lib/components/BaseTile/BaseTile.js.map +1 -1
- package/mobile/lib/components/Blocks.js +0 -2
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/Bonus/Bonus.js +3 -3
- 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.d.ts +5 -0
- package/mobile/lib/components/BusinessBlock/BusinessBlock.js +7 -0
- package/mobile/lib/components/BusinessBlock/BusinessBlock.js.map +1 -0
- package/mobile/lib/components/BusinessBlock/BusinessBlockContent.d.ts +28 -0
- package/mobile/lib/components/BusinessBlock/BusinessBlockContent.js +2 -0
- package/mobile/lib/components/BusinessBlock/BusinessBlockContent.js.map +1 -0
- package/mobile/lib/components/BusinessBlock/BusinessCard.d.ts +2 -0
- package/mobile/lib/components/BusinessBlock/BusinessCard.js +14 -0
- package/mobile/lib/components/BusinessBlock/BusinessCard.js.map +1 -0
- package/mobile/lib/components/Calculator/BonusCalculatorForm.d.ts +2 -2
- package/mobile/lib/components/Calculator/BonusCalculatorForm.js +2 -2
- package/mobile/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/Calculator.js +3 -5
- package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
- package/mobile/lib/components/Calculator/CreditCalculatorForm.d.ts +2 -2
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js +3 -8
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/DepositCalculatorForm.d.ts +2 -2
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js +3 -8
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/renderButtonSection.d.ts +1 -2
- package/mobile/lib/components/Calculator/renderButtonSection.js +2 -2
- package/mobile/lib/components/Calculator/renderButtonSection.js.map +1 -1
- package/mobile/lib/components/Calculator/renderCalculatorBlock.d.ts +1 -1
- package/mobile/lib/components/Calculator/renderCalculatorBlock.js +2 -2
- package/mobile/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
- package/mobile/lib/components/CardTransfer/CardTransfer.js +3 -4
- package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/lib/components/Catalog/Catalog.js +12 -22
- package/mobile/lib/components/Catalog/Catalog.js.map +1 -1
- package/mobile/lib/components/Catalog/CatalogCard.d.ts +2 -2
- package/mobile/lib/components/Catalog/CatalogCard.js +1 -3
- package/mobile/lib/components/Catalog/CatalogCard.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTable.js +3 -3
- package/mobile/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTableBody.d.ts +1 -3
- package/mobile/lib/components/ComparisonTable/ComparisonTableBody.js +3 -9
- package/mobile/lib/components/ComparisonTable/ComparisonTableBody.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.d.ts +0 -3
- package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js +1 -4
- package/mobile/lib/components/ComparisonTable/ComparisonTableColumnHeaders.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTableRows.js +2 -2
- package/mobile/lib/components/ComparisonTable/ComparisonTableRows.js.map +1 -1
- package/mobile/lib/components/ContactsBlock/ContactsBlock.js +2 -2
- package/mobile/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js +4 -5
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/ContentPage/renderBlock.d.ts +0 -2
- package/mobile/lib/components/ContentPage/renderBlock.js +3 -3
- package/mobile/lib/components/ContentPage/renderBlock.js.map +1 -1
- package/mobile/lib/components/ContentPage/renderBlockList.d.ts +1 -1
- package/mobile/lib/components/ContentPage/renderBlockList.js +5 -12
- package/mobile/lib/components/ContentPage/renderBlockList.js.map +1 -1
- package/mobile/lib/components/ContentPage/renderSlots.d.ts +1 -1
- package/mobile/lib/components/ContentPage/renderSlots.js +10 -12
- package/mobile/lib/components/ContentPage/renderSlots.js.map +1 -1
- package/mobile/lib/components/ErrorBlock/ErrorBlock.js +1 -6
- package/mobile/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.d.ts +1 -2
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +2 -5
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js +2 -2
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/lib/components/Footer/Contacts.d.ts +2 -2
- package/mobile/lib/components/Footer/Contacts.js +1 -10
- package/mobile/lib/components/Footer/Contacts.js.map +1 -1
- package/mobile/lib/components/Footer/Footer.fallback.d.ts +2 -0
- package/mobile/lib/components/Footer/Footer.fallback.js +10 -0
- package/mobile/lib/components/Footer/Footer.fallback.js.map +1 -0
- package/mobile/lib/components/Footer/Footer.js +10 -9
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Footer/FooterContent.d.ts +3 -19
- package/mobile/lib/components/Footer/FooterDataProps.d.ts +12 -0
- package/mobile/lib/components/Footer/FooterDataProps.js +2 -0
- package/mobile/lib/components/Footer/FooterDataProps.js.map +1 -0
- package/mobile/lib/components/Footer/FooterLink.d.ts +2 -2
- package/mobile/lib/components/Footer/HorizontalNavigation.d.ts +1 -2
- package/mobile/lib/components/Footer/HorizontalNavigation.js +1 -6
- package/mobile/lib/components/Footer/HorizontalNavigation.js.map +1 -1
- package/mobile/lib/components/Footer/HorizontalNavigationLink.js +6 -1
- package/mobile/lib/components/Footer/HorizontalNavigationLink.js.map +1 -1
- package/mobile/lib/components/Footer/MediaButton.js +5 -2
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
- package/mobile/lib/components/Footer/Sitemap.d.ts +2 -2
- package/mobile/lib/components/Footer/Sitemap.js +14 -12
- package/mobile/lib/components/Footer/Sitemap.js.map +1 -1
- package/mobile/lib/components/Footer/SocialMedia.d.ts +2 -2
- package/mobile/lib/components/Footer/SocialMedia.js +1 -6
- package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/lib/components/Footer/TextInformation.js +2 -5
- package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
- package/mobile/lib/components/Footer/TextInformationLink.js +6 -1
- package/mobile/lib/components/Footer/TextInformationLink.js.map +1 -1
- package/mobile/lib/components/Footer/useFooterData.d.ts +2 -0
- package/mobile/lib/{services/sitemap/useSitemap.js → components/Footer/useFooterData.js} +3 -3
- package/mobile/lib/components/Footer/useFooterData.js.map +1 -0
- package/mobile/lib/components/Gallery/Gallery.js +4 -4
- package/mobile/lib/components/Gallery/Gallery.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryContainer.d.ts +1 -3
- package/mobile/lib/components/Gallery/GalleryContainer.js +2 -2
- package/mobile/lib/components/Gallery/GalleryContainer.js.map +1 -1
- package/mobile/lib/components/Gallery/GalleryContent.d.ts +1 -1
- package/mobile/lib/components/Gallery/GalleryInner.js +2 -2
- package/mobile/lib/components/Gallery/GalleryInner.js.map +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriod.js +1 -3
- package/mobile/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/lib/components/Header/DropdownMenu.d.ts +0 -2
- package/mobile/lib/components/Header/DropdownMenu.js +3 -4
- package/mobile/lib/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/lib/components/Header/Header.js +8 -14
- package/mobile/lib/components/Header/Header.js.map +1 -1
- package/mobile/lib/components/Header/HeaderBurger.d.ts +0 -2
- package/mobile/lib/components/Header/HeaderBurger.js +2 -2
- package/mobile/lib/components/Header/HeaderBurger.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSubMenu.d.ts +0 -2
- package/mobile/lib/components/Header/HeaderSubMenu.js +4 -3
- package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSubMenuItem.d.ts +0 -2
- package/mobile/lib/components/Header/HeaderSubMenuItem.js +2 -5
- package/mobile/lib/components/Header/HeaderSubMenuItem.js.map +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +4 -6
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.d.ts +2 -2
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/lib/components/InvestmentGallery/InvestmentGallery.js +3 -7
- package/mobile/lib/components/InvestmentGallery/InvestmentGallery.js.map +1 -1
- package/mobile/lib/components/InvestmentGallery/InvestmentGalleryCard.d.ts +2 -2
- package/mobile/lib/components/InvestmentGallery/InvestmentGalleryCard.js +2 -2
- package/mobile/lib/components/InvestmentGallery/InvestmentGalleryCard.js.map +1 -1
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js +2 -2
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/mobile/lib/components/LikeControl/LikeControl.d.ts +5 -2
- package/mobile/lib/components/LikeControl/LikeControl.js +4 -5
- package/mobile/lib/components/LikeControl/LikeControl.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.js +1 -3
- package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.d.ts +1 -5
- package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.js +3 -5
- package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.js.map +1 -1
- package/mobile/lib/components/LinkList/LinkList.js +1 -3
- package/mobile/lib/components/LinkList/LinkList.js.map +1 -1
- package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -3
- package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/mobile/lib/components/OtherProducts/OtherProducts.js +1 -1
- package/mobile/lib/components/OtherProducts/OtherProducts.js.map +1 -1
- package/mobile/lib/components/PictureText/PictureText.js +1 -3
- package/mobile/lib/components/PictureText/PictureText.js.map +1 -1
- package/mobile/lib/components/Placeholder/Placeholder.d.ts +0 -1
- package/mobile/lib/components/Placeholder/Placeholder.js +2 -2
- package/mobile/lib/components/Placeholder/Placeholder.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js +2 -2
- package/mobile/lib/components/ProductBlock/ProductBlockInner.js.map +1 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.d.ts +1 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js +1 -0
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGallery.js +42 -5
- package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/lib/components/ProductTile/ProductTile.js +4 -6
- package/mobile/lib/components/ProductTile/ProductTile.js.map +1 -1
- package/mobile/lib/components/PromoTile/PromoTile.js +1 -3
- package/mobile/lib/components/PromoTile/PromoTile.js.map +1 -1
- package/mobile/lib/components/Recommendation/Recommendation.js +4 -9
- package/mobile/lib/components/Recommendation/Recommendation.js.map +1 -1
- package/mobile/lib/components/Recommendation/RecommendationCard.d.ts +2 -2
- package/mobile/lib/components/Recommendation/RecommendationCard.js +2 -2
- package/mobile/lib/components/Recommendation/RecommendationCard.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js +3 -3
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/lib/components/StepsBlock/renderStepContent.d.ts +2 -5
- package/mobile/lib/components/StepsBlock/renderStepContent.js +2 -3
- package/mobile/lib/components/StepsBlock/renderStepContent.js.map +1 -1
- package/mobile/lib/components/Tabs/LinkTab.d.ts +8 -0
- package/mobile/lib/components/Tabs/LinkTab.js +18 -0
- package/mobile/lib/components/Tabs/LinkTab.js.map +1 -0
- package/mobile/lib/components/Tabs/Tabs.d.ts +2 -2
- package/mobile/lib/components/Tabs/Tabs.js +2 -2
- package/mobile/lib/components/Tabs/Tabs.js.map +1 -1
- package/mobile/lib/components/Tabs/TabsContent.d.ts +5 -5
- package/mobile/lib/components/Tabs/renderGroupTab.d.ts +2 -2
- package/mobile/lib/components/Tabs/renderGroupTab.js +1 -1
- package/mobile/lib/components/Tabs/renderGroupTab.js.map +1 -1
- package/mobile/lib/components/Tabs/renderTab.d.ts +4 -6
- package/mobile/lib/components/Tabs/renderTab.js +5 -19
- package/mobile/lib/components/Tabs/renderTab.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js +2 -5
- package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js +1 -2
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +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/TariffsTableRenderCell.d.ts +1 -3
- package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.js +1 -2
- package/mobile/lib/components/TariffsTable/TariffsTableRenderCell.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js +3 -3
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.d.ts +1 -3
- package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.js +1 -3
- package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.d.ts +3 -4
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js +8 -13
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableVertical.js +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableVertical.js.map +1 -1
- package/mobile/lib/components/Tile/Tile.js +2 -2
- package/mobile/lib/components/Tile/Tile.js.map +1 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayout.d.ts +5 -0
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js +33 -0
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -0
- package/mobile/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +17 -0
- package/mobile/lib/components/VerticalLayout/VerticalLayoutContent.js +2 -0
- package/mobile/lib/components/VerticalLayout/VerticalLayoutContent.js.map +1 -0
- package/mobile/lib/hooks/handlerDecorator.d.ts +5 -0
- package/mobile/lib/hooks/handlerDecorator.js +9 -0
- package/mobile/lib/hooks/handlerDecorator.js.map +1 -0
- package/mobile/lib/hooks/useLink.d.ts +6 -16
- package/mobile/lib/hooks/useLink.js +20 -15
- package/mobile/lib/hooks/useLink.js.map +1 -1
- package/mobile/lib/hooks/useRouter.d.ts +13 -0
- package/mobile/lib/hooks/useRouter.js +18 -0
- package/mobile/lib/hooks/useRouter.js.map +1 -0
- package/mobile/lib/hooks/useTableArrowScrollControl.d.ts +1 -3
- package/mobile/lib/hooks/useTableArrowScrollControl.js +13 -4
- package/mobile/lib/hooks/useTableArrowScrollControl.js.map +1 -1
- package/mobile/lib/index.d.ts +2 -0
- package/mobile/lib/index.js +2 -0
- package/mobile/lib/index.js.map +1 -1
- package/mobile/lib/model/BlockVersion.d.ts +1 -0
- package/mobile/lib/model/BlockVersion.js +5 -0
- package/mobile/lib/model/BlockVersion.js.map +1 -1
- package/mobile/lib/model/BlocksRegistry.d.ts +1 -1
- package/mobile/lib/model/JSXBlock.d.ts +7 -8
- package/mobile/lib/react/setup-fixture.d.ts +0 -3
- package/mobile/lib/react/setup-fixture.js +9 -24
- package/mobile/lib/react/setup-fixture.js.map +1 -1
- package/mobile/lib/services/sitemap/SitemapProps.d.ts +1 -1
- package/mobile/lib/services/sitemap/findActiveSubItem.d.ts +1 -1
- package/mobile/lib/services/sitemap/isHrefActive.js +1 -2
- package/mobile/lib/services/sitemap/isHrefActive.js.map +1 -1
- package/mobile/lib/services/sitemap/isSubItemActive.d.ts +1 -1
- package/mobile/lib/services/sitemap/isTopItemActive.d.ts +1 -1
- package/mobile/lib/services/sitemap/useSWRResource.d.ts +2 -0
- package/mobile/lib/services/sitemap/useSWRResource.js +9 -0
- package/mobile/lib/services/sitemap/useSWRResource.js.map +1 -0
- package/mobile/lib/ui-kit/BlockWrapper.d.ts +2 -2
- package/mobile/lib/ui-kit/BlockWrapper.js +3 -2
- package/mobile/lib/ui-kit/BlockWrapper.js.map +1 -1
- package/mobile/lib/ui-kit/Breadcrumb.js +6 -1
- package/mobile/lib/ui-kit/Breadcrumb.js.map +1 -1
- package/mobile/lib/ui-kit/Button/Button.js +10 -24
- package/mobile/lib/ui-kit/Button/Button.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js +2 -3
- package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonSection.d.ts +2 -2
- package/mobile/lib/ui-kit/Button/ButtonSection.js +1 -6
- package/mobile/lib/ui-kit/Button/ButtonSection.js.map +1 -1
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js +1 -3
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/mobile/lib/ui-kit/Checkbox/CheckboxProps.d.ts +2 -2
- package/mobile/lib/ui-kit/InnerTable/InnerTable.d.ts +2 -3
- package/mobile/lib/ui-kit/InnerTable/InnerTable.js +2 -2
- package/mobile/lib/ui-kit/InnerTable/InnerTable.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableBody.d.ts +1 -2
- package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js +2 -2
- package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableBodyItem.d.ts +1 -2
- package/mobile/lib/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.d.ts +1 -2
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.d.ts +4 -5
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +1 -3
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/mobile/lib/ui-kit/SearchBar/SearchBar.d.ts +2 -2
- package/mobile/lib/ui-kit/SearchBar/SearchBar.js +1 -3
- package/mobile/lib/ui-kit/SearchBar/SearchBar.js.map +1 -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/SwipeListControlProps.d.ts +2 -2
- package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js +2 -2
- package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControl.js.map +1 -1
- package/mobile/lib/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.d.ts +3 -2
- package/mobile/lib/ui-kit/TopItem/TopItem.js +6 -1
- package/mobile/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/lib/utils/adjustHref.js +2 -10
- package/mobile/lib/utils/adjustHref.js.map +1 -1
- package/mobile/src/ProjectSettings.ts +4 -0
- package/mobile/src/components/Accordion/Accordion.tsx +1 -2
- package/mobile/src/components/BaseTile/BaseTile.tsx +13 -14
- package/mobile/src/components/Blocks.ts +0 -2
- package/mobile/src/components/Bonus/Bonus.tsx +4 -10
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +2 -3
- package/mobile/src/components/BusinessBlock/BusinessBlock.example.json +65 -0
- package/mobile/src/components/BusinessBlock/BusinessBlock.tsx +19 -0
- package/mobile/src/components/BusinessBlock/BusinessBlock.ui.json +26 -0
- package/mobile/src/components/BusinessBlock/BusinessBlockContent.ts +31 -0
- package/mobile/src/components/BusinessBlock/BusinessCard.tsx +41 -0
- package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +5 -4
- package/mobile/src/components/Calculator/Calculator.tsx +2 -5
- package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +11 -11
- package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +11 -14
- package/mobile/src/components/Calculator/renderButtonSection.tsx +2 -3
- package/mobile/src/components/Calculator/renderCalculatorBlock.tsx +20 -23
- package/mobile/src/components/CardTransfer/CardTransfer.tsx +3 -5
- package/mobile/src/components/Catalog/Catalog.tsx +17 -41
- package/mobile/src/components/Catalog/CatalogCard.tsx +22 -24
- package/mobile/src/components/ComparisonTable/ComparisonTable.tsx +3 -5
- package/mobile/src/components/ComparisonTable/ComparisonTableBody.tsx +3 -16
- package/mobile/src/components/ComparisonTable/ComparisonTableColumnHeaders.tsx +10 -20
- package/mobile/src/components/ComparisonTable/ComparisonTableRows.tsx +2 -2
- package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +1 -2
- package/mobile/src/components/ContentPage/ContentPage.tsx +4 -10
- package/mobile/src/components/ContentPage/renderBlock.tsx +4 -9
- package/mobile/src/components/ContentPage/renderBlockList.tsx +9 -20
- package/mobile/src/components/ContentPage/renderSlots.tsx +4 -5
- package/mobile/src/components/ErrorBlock/ErrorBlock.tsx +14 -24
- package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +3 -12
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +1 -4
- package/mobile/src/components/Footer/Contacts.tsx +17 -28
- package/mobile/src/components/Footer/Footer.fallback.ts +13 -0
- package/mobile/src/components/Footer/Footer.tsx +38 -56
- package/mobile/src/components/Footer/FooterContent.ts +4 -19
- package/mobile/src/components/Footer/FooterDataProps.ts +13 -0
- package/mobile/src/components/Footer/FooterLink.ts +2 -2
- package/mobile/src/components/Footer/HorizontalNavigation.tsx +13 -25
- package/mobile/src/components/Footer/HorizontalNavigationLink.tsx +16 -10
- package/mobile/src/components/Footer/MediaButton.tsx +6 -1
- package/mobile/src/components/Footer/Sitemap.tsx +28 -30
- package/mobile/src/components/Footer/SocialMedia.tsx +9 -19
- package/mobile/src/components/Footer/TextInformation.tsx +3 -12
- package/mobile/src/components/Footer/TextInformationLink.tsx +16 -10
- package/mobile/src/components/Footer/useFooterData.ts +13 -0
- package/mobile/src/components/Gallery/Gallery.tsx +5 -10
- package/mobile/src/components/Gallery/GalleryContainer.tsx +4 -21
- package/mobile/src/components/Gallery/GalleryContent.ts +1 -1
- package/mobile/src/components/Gallery/GalleryInner.tsx +1 -3
- package/mobile/src/components/GracePeriod/GracePeriod.tsx +12 -18
- package/mobile/src/components/Header/DropdownMenu.tsx +34 -39
- package/mobile/src/components/Header/Header.tsx +25 -29
- package/mobile/src/components/Header/HeaderBurger.tsx +2 -4
- package/mobile/src/components/Header/HeaderSubMenu.tsx +3 -6
- package/mobile/src/components/Header/HeaderSubMenuItem.tsx +2 -22
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +3 -17
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +2 -2
- package/mobile/src/components/InvestmentGallery/InvestmentGallery.tsx +6 -21
- package/mobile/src/components/InvestmentGallery/InvestmentGalleryCard.tsx +3 -9
- package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +1 -6
- package/mobile/src/components/LikeControl/LikeControl.tsx +9 -13
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +19 -26
- package/mobile/src/components/LinkDocs/LinkDocsHorizontalList.tsx +15 -22
- package/mobile/src/components/LinkList/LinkList.tsx +7 -9
- package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +9 -16
- package/mobile/src/components/OtherProducts/OtherProducts.tsx +2 -6
- package/mobile/src/components/PictureText/PictureText.tsx +23 -27
- package/mobile/src/components/Placeholder/Placeholder.tsx +3 -6
- package/mobile/src/components/ProductBlock/ProductBlockInner.tsx +3 -12
- package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +3 -2
- package/mobile/src/components/ProductGallery/ProductGallery.tsx +111 -12
- package/mobile/src/components/ProductTile/ProductTile.tsx +24 -32
- package/mobile/src/components/PromoTile/PromoTile.tsx +31 -38
- package/mobile/src/components/Recommendation/Recommendation.tsx +12 -26
- package/mobile/src/components/Recommendation/RecommendationCard.tsx +5 -15
- package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +3 -3
- package/mobile/src/components/StepsBlock/renderStepContent.tsx +4 -10
- package/mobile/src/components/Tabs/LinkTab.tsx +46 -0
- package/mobile/src/components/Tabs/Tabs.tsx +7 -7
- package/mobile/src/components/Tabs/TabsContent.ts +5 -5
- package/mobile/src/components/Tabs/renderGroupTab.tsx +3 -3
- package/mobile/src/components/Tabs/renderTab.tsx +8 -27
- package/mobile/src/components/TariffsTable/TariffsTable.tsx +6 -17
- package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +0 -2
- package/mobile/src/components/TariffsTable/TariffsTableContent.ts +1 -1
- package/mobile/src/components/TariffsTable/TariffsTableHorizontal.tsx +9 -7
- package/mobile/src/components/TariffsTable/TariffsTableRenderCell.tsx +0 -5
- package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +4 -4
- package/mobile/src/components/TariffsTable/TariffsTableRowContainer.tsx +11 -15
- package/mobile/src/components/TariffsTable/TariffsTableTileCell.tsx +23 -34
- package/mobile/src/components/TariffsTable/TariffsTableVertical.tsx +9 -7
- package/mobile/src/components/Tile/Tile.tsx +2 -5
- package/mobile/src/components/VerticalLayout/VerticalLayout.example.json +17 -0
- package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +51 -0
- package/mobile/src/components/VerticalLayout/VerticalLayout.ui.json +1 -0
- package/mobile/src/components/VerticalLayout/VerticalLayoutContent.ts +19 -0
- package/mobile/src/hooks/handlerDecorator.ts +16 -0
- package/mobile/src/hooks/useLink.ts +26 -22
- package/mobile/src/hooks/useRouter.ts +28 -0
- package/mobile/src/hooks/useTableArrowScrollControl.ts +13 -7
- package/mobile/src/index.ts +3 -0
- package/mobile/src/model/BlockVersion.ts +6 -0
- package/mobile/src/model/BlocksRegistry.ts +1 -1
- package/mobile/src/model/JSXBlock.ts +5 -9
- package/mobile/src/react/setup-fixture.ts +9 -29
- package/mobile/src/services/sitemap/SitemapProps.ts +1 -1
- package/mobile/src/services/sitemap/findActiveSubItem.ts +1 -1
- package/mobile/src/services/sitemap/isHrefActive.ts +1 -5
- package/mobile/src/services/sitemap/isSubItemActive.ts +1 -1
- package/mobile/src/services/sitemap/isTopItemActive.ts +1 -1
- package/mobile/src/services/sitemap/useSWRResource.ts +11 -0
- package/mobile/src/ui-kit/BlockWrapper.tsx +6 -4
- package/mobile/src/ui-kit/Breadcrumb.tsx +12 -9
- package/mobile/src/ui-kit/Button/Button.tsx +40 -79
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +2 -3
- package/mobile/src/ui-kit/Button/ButtonSection.tsx +9 -14
- package/mobile/src/ui-kit/Checkbox/Checkbox.tsx +1 -3
- package/mobile/src/ui-kit/Checkbox/CheckboxProps.ts +2 -2
- package/mobile/src/ui-kit/InnerTable/InnerTable.tsx +6 -7
- package/mobile/src/ui-kit/InnerTable/InnerTableBody.tsx +3 -4
- package/mobile/src/ui-kit/InnerTable/InnerTableBodyItem.tsx +1 -2
- package/mobile/src/ui-kit/InnerTable/InnerTableButton.tsx +1 -2
- package/mobile/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +17 -20
- package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +4 -5
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControl.tsx +1 -1
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlProps.ts +2 -3
- package/mobile/src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx +2 -2
- package/mobile/src/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.ts +3 -2
- package/mobile/src/ui-kit/TopItem/TopItem.tsx +18 -23
- package/mobile/src/utils/adjustHref.ts +2 -13
- package/package.json +1 -1
- package/src/ProjectSettings.ts +4 -0
- package/src/components/Accordion/Accordion.fixture.mobile.tsx +5 -10
- package/src/components/Accordion/Accordion.fixture.tsx +17 -39
- package/src/components/Accordion/Accordion.mobile.tsx +1 -2
- package/src/components/Accordion/Accordion.tsx +1 -10
- package/src/components/BaseTile/BaseTile.tsx +13 -14
- package/src/components/BenefitsBlock/BenefitsBlock.fixture.tsx +2 -7
- package/src/components/Blocks.mobile.ts +0 -2
- package/src/components/Blocks.ts +10 -6
- package/src/components/Bonus/Bonus.fixture.tsx +2 -2
- package/src/components/Bonus/Bonus.tsx +4 -10
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.tsx +1 -3
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +2 -3
- package/src/components/BusinessBlock/BusinessBlock.example.json +65 -0
- package/src/components/BusinessBlock/BusinessBlock.fixture.tsx +74 -0
- package/src/components/BusinessBlock/BusinessBlock.tsx +19 -0
- package/src/components/BusinessBlock/BusinessBlock.ui.json +26 -0
- package/src/components/BusinessBlock/BusinessBlockContent.ts +31 -0
- package/src/components/BusinessBlock/BusinessCard.tsx +41 -0
- package/src/components/Calculator/BonusCalculatorForm.tsx +5 -4
- package/src/components/Calculator/Calculator.fixture.tsx +1 -3
- package/src/components/Calculator/Calculator.tsx +2 -5
- package/src/components/Calculator/CreditCalculatorForm.tsx +11 -11
- package/src/components/Calculator/DepositCalculatorForm.tsx +11 -14
- package/src/components/Calculator/renderButtonSection.tsx +2 -3
- package/src/components/Calculator/renderCalculatorBlock.tsx +20 -23
- package/src/components/CardTransfer/CardTransfer.fixture.tsx +3 -3
- package/src/components/CardTransfer/CardTransfer.tsx +3 -5
- package/src/components/Catalog/Catalog.fixture.tsx +1 -2
- package/src/components/Catalog/Catalog.tsx +17 -41
- package/src/components/Catalog/CatalogCard.tsx +22 -24
- package/src/components/ComparisonTable/ComparisonTable.fixture.mobile.tsx +1 -3
- package/src/components/ComparisonTable/ComparisonTable.fixture.tsx +1 -6
- package/src/components/ComparisonTable/ComparisonTable.mobile.tsx +3 -5
- package/src/components/ComparisonTable/ComparisonTable.tsx +16 -21
- package/src/components/ComparisonTable/ComparisonTableBody.tsx +3 -16
- package/src/components/ComparisonTable/ComparisonTableColumnHeaders.tsx +10 -20
- package/src/components/ComparisonTable/ComparisonTableRows.tsx +2 -2
- package/src/components/ComparisonTable/HeaderCell.tsx +1 -1
- package/src/components/ContactsBlock/ContactsBlock.fixture.tsx +3 -11
- package/src/components/ContactsBlock/ContactsBlock.tsx +1 -2
- package/src/components/ContentPage/ContentPage.fixture.mobile.tsx +2 -6
- package/src/components/ContentPage/ContentPage.fixture.tsx +1 -3
- package/src/components/ContentPage/ContentPage.tsx +4 -10
- package/src/components/ContentPage/renderBlock.tsx +4 -9
- package/src/components/ContentPage/renderBlockList.tsx +9 -20
- package/src/components/ContentPage/renderSlots.tsx +4 -5
- package/src/components/ErrorBlock/ErrorBlock.fixture.tsx +1 -3
- package/src/components/ErrorBlock/ErrorBlock.tsx +14 -24
- package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +3 -12
- package/src/components/ExchangeRateTile/ExchangeRateTile.fixture.tsx +3 -3
- package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +1 -4
- package/src/components/Footer/Contacts.tsx +17 -28
- package/src/components/Footer/Footer.fallback.ts +13 -0
- package/src/components/Footer/Footer.fixture.mobile.tsx +2 -84
- package/src/components/Footer/Footer.fixture.tsx +2 -141
- package/src/components/Footer/Footer.mobile.tsx +38 -56
- package/src/components/Footer/Footer.tsx +28 -43
- package/src/components/Footer/FooterContent.ts +4 -19
- package/src/components/Footer/FooterDataProps.ts +13 -0
- package/src/components/Footer/FooterLink.ts +2 -2
- package/src/components/Footer/HorizontalNavigation.mobile.tsx +13 -25
- package/src/components/Footer/HorizontalNavigation.tsx +19 -26
- package/src/components/Footer/HorizontalNavigationLink.tsx +16 -10
- package/src/components/Footer/MediaButton.tsx +6 -1
- package/src/components/Footer/Sitemap.tsx +28 -30
- package/src/components/Footer/SocialMedia.mobile.tsx +9 -19
- package/src/components/Footer/SocialMedia.tsx +12 -24
- package/src/components/Footer/TextInformation.mobile.tsx +3 -12
- package/src/components/Footer/TextInformation.tsx +15 -25
- package/src/components/Footer/TextInformationLink.tsx +16 -10
- package/src/components/Footer/useFooterData.ts +13 -0
- package/src/components/Gallery/Gallery.fixture.mobile.tsx +2 -4
- package/src/components/Gallery/Gallery.fixture.tsx +2 -6
- package/src/components/Gallery/Gallery.mobile.tsx +5 -10
- package/src/components/Gallery/GalleryContainer.tsx +4 -21
- package/src/components/Gallery/GalleryContent.ts +1 -1
- package/src/components/Gallery/GalleryInner.tsx +1 -3
- package/src/components/GracePeriod/GracePeriod.fixture.tsx +2 -2
- package/src/components/GracePeriod/GracePeriod.tsx +12 -18
- package/src/components/Header/DropdownMenu.tsx +34 -39
- package/src/components/Header/Header.fixture.mobile.tsx +3 -3
- package/src/components/Header/Header.fixture.tsx +4 -4
- package/src/components/Header/Header.mobile.tsx +25 -29
- package/src/components/Header/Header.tsx +11 -13
- package/src/components/Header/HeaderBurger.tsx +2 -4
- package/src/components/Header/HeaderSubMenu.tsx +3 -6
- package/src/components/Header/HeaderSubMenuItem.tsx +2 -22
- package/src/components/Headline/Headline.fixture.mobile.tsx +10 -14
- package/src/components/Headline/Headline.fixture.tsx +15 -15
- package/src/components/Headline/Headline.tsx +1 -2
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +1 -2
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +3 -17
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +2 -2
- package/src/components/InvestmentGallery/InvestmentGallery.fixture.tsx +1 -2
- package/src/components/InvestmentGallery/InvestmentGallery.tsx +6 -21
- package/src/components/InvestmentGallery/InvestmentGalleryCard.tsx +3 -9
- package/src/components/InvestmentInfo/InvestmentInfo.fixture.tsx +2 -2
- package/src/components/InvestmentInfo/InvestmentInfo.tsx +1 -6
- package/src/components/LikeControl/LikeControl.fixture.tsx +2 -2
- package/src/components/LikeControl/LikeControl.tsx +9 -13
- package/src/components/LinkDocs/LinkDocs.fixture.mobile.tsx +4 -14
- package/src/components/LinkDocs/LinkDocs.fixture.tsx +5 -20
- package/src/components/LinkDocs/LinkDocs.mobile.tsx +19 -26
- package/src/components/LinkDocs/LinkDocs.tsx +21 -25
- package/src/components/LinkDocs/LinkDocsHorizontalList.tsx +15 -22
- package/src/components/LinkList/LinkList.fixture.tsx +2 -2
- package/src/components/LinkList/LinkList.tsx +7 -9
- package/src/components/MiniGallery/MiniGallery.fixture.tsx +4 -8
- package/src/components/MobileAppTile/MobileAppTile.fixture.mobile.tsx +1 -2
- package/src/components/MobileAppTile/MobileAppTile.fixture.tsx +2 -10
- package/src/components/MobileAppTile/MobileAppTile.tsx +1 -4
- package/src/components/OfficeMap/OfficeMap.fixture.tsx +2 -2
- package/src/components/OfficeServicesBlock/OfficeServicesBlock.fixture.tsx +1 -2
- package/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +9 -16
- package/src/components/OtherProducts/OtherProducts.fixture.tsx +20 -32
- package/src/components/OtherProducts/OtherProducts.tsx +2 -6
- package/src/components/PictureText/PictureText.fixture.tsx +6 -16
- package/src/components/PictureText/PictureText.tsx +23 -27
- package/src/components/Placeholder/Placeholder.fixture.mobile.tsx +2 -2
- package/src/components/Placeholder/Placeholder.fixture.tsx +2 -2
- package/src/components/Placeholder/Placeholder.tsx +3 -6
- package/src/components/ProductBlock/ProductBlock.fixture.mobile.tsx +8 -27
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +7 -24
- package/src/components/ProductBlock/ProductBlock.tsx +6 -23
- package/src/components/ProductBlock/ProductBlockInner.mobile.tsx +3 -12
- package/src/components/ProductBlock/ProductBlockInner.tsx +9 -11
- package/src/components/ProductBlock/renderBackwardButton.tsx +3 -2
- package/src/components/ProductGallery/ProductGallery.fixture.tsx +1 -3
- package/src/components/ProductGallery/ProductGallery.tsx +4 -11
- package/src/components/ProductTile/ProductTile.fixture.tsx +2 -8
- package/src/components/ProductTile/ProductTile.tsx +24 -32
- package/src/components/PromoTile/PromoTile.fixture.tsx +1 -2
- package/src/components/PromoTile/PromoTile.tsx +31 -38
- package/src/components/Recommendation/Recommendation.fixture.tsx +1 -3
- package/src/components/Recommendation/Recommendation.tsx +12 -26
- package/src/components/Recommendation/RecommendationCard.tsx +5 -15
- package/src/components/SafeDepositRental/SafeDepositRental.fixture.tsx +1 -2
- package/src/components/SafeDepositRental/SafeDepositRental.tsx +3 -3
- package/src/components/StepsBlock/StepsBlock.fixture.mobile.tsx +1 -9
- package/src/components/StepsBlock/StepsBlock.fixture.tsx +2 -3
- package/src/components/StepsBlock/StepsBlock.tsx +5 -28
- package/src/components/StepsBlock/renderStepContent.tsx +4 -10
- package/src/components/Tabs/LinkTab.tsx +46 -0
- package/src/components/Tabs/Tabs.fixture.tsx +1 -2
- package/src/components/Tabs/Tabs.tsx +7 -7
- package/src/components/Tabs/TabsContent.ts +5 -5
- package/src/components/Tabs/renderGroupTab.tsx +3 -3
- package/src/components/Tabs/renderTab.tsx +8 -27
- package/src/components/TariffsTable/EmbeddableCellData.tsx +3 -5
- package/src/components/TariffsTable/TariffsTable.fixture.mobile.tsx +2 -7
- package/src/components/TariffsTable/TariffsTable.fixture.tsx +1 -6
- package/src/components/TariffsTable/TariffsTable.mobile.tsx +6 -17
- package/src/components/TariffsTable/TariffsTable.tsx +2 -8
- package/src/components/TariffsTable/TariffsTableCell.tsx +0 -2
- package/src/components/TariffsTable/TariffsTableContent.ts +1 -1
- package/src/components/TariffsTable/TariffsTableHorizontal.tsx +9 -7
- package/src/components/TariffsTable/TariffsTableRenderCell.tsx +0 -5
- package/src/components/TariffsTable/TariffsTableRow.tsx +4 -4
- package/src/components/TariffsTable/TariffsTableRowContainer.tsx +11 -15
- package/src/components/TariffsTable/TariffsTableTileCell.tsx +23 -34
- package/src/components/TariffsTable/TariffsTableVertical.tsx +9 -7
- package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +10 -60
- package/src/components/TextBlock/TextBlock.fixture.tsx +13 -49
- package/src/components/Tile/Tile.fixture.tsx +4 -7
- package/src/components/Tile/Tile.tsx +2 -5
- package/src/components/VerticalLayout/VerticalLayout.example.json +17 -0
- package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +41 -0
- package/src/components/VerticalLayout/VerticalLayout.tsx +51 -0
- package/src/components/VerticalLayout/VerticalLayout.ui.json +1 -0
- package/src/components/VerticalLayout/VerticalLayoutContent.ts +19 -0
- package/src/hooks/handlerDecorator.ts +16 -0
- package/src/hooks/useLink.ts +26 -22
- package/src/hooks/useRouter.ts +28 -0
- package/src/hooks/useTableArrowScrollControl.ts +13 -7
- package/src/icons/IconName.ts +5 -318
- package/src/index.ts +3 -0
- package/src/model/BlockVersion.ts +6 -0
- package/src/model/BlocksRegistry.ts +1 -1
- package/src/model/JSXBlock.ts +5 -9
- package/src/react/setup-fixture.ts +9 -29
- package/src/services/sitemap/SitemapProps.ts +1 -1
- package/src/services/sitemap/findActiveSubItem.ts +1 -1
- package/src/services/sitemap/isHrefActive.ts +1 -5
- package/src/services/sitemap/isSubItemActive.ts +1 -1
- package/src/services/sitemap/isTopItemActive.ts +1 -1
- package/src/services/sitemap/useSWRResource.ts +11 -0
- package/src/ui-kit/BlockWrapper.tsx +6 -4
- package/src/ui-kit/Breadcrumb.tsx +12 -9
- package/src/ui-kit/Button/Button.tsx +35 -80
- package/src/ui-kit/Button/ButtonInner.tsx +2 -3
- package/src/ui-kit/Button/ButtonSection.tsx +9 -14
- package/src/ui-kit/Checkbox/Checkbox.tsx +1 -3
- package/src/ui-kit/Checkbox/CheckboxProps.ts +2 -2
- package/src/ui-kit/HeaderItem/HeaderItem.tsx +18 -22
- package/src/ui-kit/InnerTable/InnerTable.tsx +6 -7
- package/src/ui-kit/InnerTable/InnerTableBody.tsx +3 -4
- package/src/ui-kit/InnerTable/InnerTableBodyItem.tsx +1 -2
- package/src/ui-kit/InnerTable/InnerTableButton.tsx +1 -2
- package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.fixture.tsx +2 -3
- package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +17 -20
- package/src/ui-kit/SearchBar/SearchBar.mobile.tsx +4 -5
- package/src/ui-kit/SearchBar/SearchBar.tsx +2 -5
- package/src/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.tsx +5 -7
- package/src/ui-kit/SwipeListControl/SwipeListControl.tsx +1 -1
- package/src/ui-kit/SwipeListControl/SwipeListControlProps.ts +2 -3
- package/src/ui-kit/TableArrowScrollControl/TableArrowScrollControl.tsx +2 -2
- package/src/ui-kit/TableArrowScrollControl/TableArrowScrollControlProps.ts +3 -2
- package/src/ui-kit/TopItem/TopItem.tsx +18 -23
- package/src/utils/adjustHref.ts +2 -13
- package/bundle/components/Calculator/renderPaymentTypeSelector.d.ts +0 -11
- package/bundle/components/ContentPage/ContentPageContext.d.ts +0 -17
- package/bundle/components/ProductGallery/ProductGallery.mobile.d.ts +0 -5
- package/bundle/components/ProductGallery/ProductGalleryBlock.d.ts +0 -8
- package/bundle/components/Tabs/renderLinkTab.d.ts +0 -9
- package/bundle/services/sitemap/useSitemap.d.ts +0 -3
- package/bundle/ui-kit/Button/Button.mobile.d.ts +0 -2
- package/bundle/utils/withoutMobilePath.d.ts +0 -2
- package/dist/components/Calculator/renderPaymentTypeSelector.d.ts +0 -11
- package/dist/components/Calculator/renderPaymentTypeSelector.js +0 -9
- package/dist/components/Calculator/renderPaymentTypeSelector.js.map +0 -1
- package/dist/components/ContentPage/ContentPageContext.d.ts +0 -17
- package/dist/components/ContentPage/ContentPageContext.js.map +0 -1
- package/dist/components/ProductGallery/ProductGallery.mobile.d.ts +0 -5
- package/dist/components/ProductGallery/ProductGallery.mobile.js +0 -11
- package/dist/components/ProductGallery/ProductGallery.mobile.js.map +0 -1
- package/dist/components/ProductGallery/ProductGalleryBlock.d.ts +0 -8
- package/dist/components/ProductGallery/ProductGalleryBlock.js +0 -11
- package/dist/components/ProductGallery/ProductGalleryBlock.js.map +0 -1
- package/dist/components/Tabs/renderLinkTab.d.ts +0 -9
- package/dist/components/Tabs/renderLinkTab.js +0 -10
- package/dist/components/Tabs/renderLinkTab.js.map +0 -1
- package/dist/services/sitemap/useSitemap.d.ts +0 -3
- package/dist/services/sitemap/useSitemap.js.map +0 -1
- package/dist/ui-kit/Button/Button.mobile.d.ts +0 -2
- package/dist/ui-kit/Button/Button.mobile.js +0 -31
- package/dist/ui-kit/Button/Button.mobile.js.map +0 -1
- package/dist/utils/withoutMobilePath.d.ts +0 -2
- package/dist/utils/withoutMobilePath.js +0 -6
- package/dist/utils/withoutMobilePath.js.map +0 -1
- package/lib/components/Calculator/renderPaymentTypeSelector.d.ts +0 -11
- package/lib/components/Calculator/renderPaymentTypeSelector.js +0 -6
- package/lib/components/Calculator/renderPaymentTypeSelector.js.map +0 -1
- package/lib/components/ContentPage/ContentPageContext.d.ts +0 -17
- package/lib/components/ContentPage/ContentPageContext.js +0 -2
- package/lib/components/ContentPage/ContentPageContext.js.map +0 -1
- package/lib/components/ProductGallery/ProductGallery.fixture.mobile.d.ts +0 -6
- package/lib/components/ProductGallery/ProductGallery.mobile.d.ts +0 -5
- package/lib/components/ProductGallery/ProductGallery.mobile.js +0 -9
- package/lib/components/ProductGallery/ProductGallery.mobile.js.map +0 -1
- package/lib/components/ProductGallery/ProductGalleryBlock.d.ts +0 -8
- package/lib/components/ProductGallery/ProductGalleryBlock.js +0 -9
- package/lib/components/ProductGallery/ProductGalleryBlock.js.map +0 -1
- package/lib/components/Tabs/renderLinkTab.d.ts +0 -9
- package/lib/components/Tabs/renderLinkTab.js +0 -7
- package/lib/components/Tabs/renderLinkTab.js.map +0 -1
- package/lib/services/sitemap/useSitemap.d.ts +0 -3
- package/lib/services/sitemap/useSitemap.js.map +0 -1
- package/lib/ui-kit/Button/Button.mobile.d.ts +0 -2
- package/lib/ui-kit/Button/Button.mobile.js +0 -29
- package/lib/ui-kit/Button/Button.mobile.js.map +0 -1
- package/lib/utils/withoutMobilePath.d.ts +0 -2
- package/lib/utils/withoutMobilePath.js +0 -3
- package/lib/utils/withoutMobilePath.js.map +0 -1
- package/mobile/bundle/components/Calculator/renderPaymentTypeSelector.d.ts +0 -11
- package/mobile/bundle/components/ContentPage/ContentPageContext.d.ts +0 -17
- package/mobile/bundle/components/ProductGallery/ProductGalleryBlock.d.ts +0 -8
- package/mobile/bundle/components/Tabs/renderLinkTab.d.ts +0 -9
- package/mobile/bundle/services/sitemap/useSitemap.d.ts +0 -3
- package/mobile/bundle/utils/withoutMobilePath.d.ts +0 -2
- package/mobile/dist/components/Calculator/renderPaymentTypeSelector.d.ts +0 -11
- package/mobile/dist/components/Calculator/renderPaymentTypeSelector.js +0 -9
- package/mobile/dist/components/Calculator/renderPaymentTypeSelector.js.map +0 -1
- package/mobile/dist/components/ContentPage/ContentPageContext.d.ts +0 -17
- package/mobile/dist/components/ContentPage/ContentPageContext.js.map +0 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.d.ts +0 -8
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js +0 -11
- package/mobile/dist/components/ProductGallery/ProductGalleryBlock.js.map +0 -1
- package/mobile/dist/components/Tabs/renderLinkTab.d.ts +0 -9
- package/mobile/dist/components/Tabs/renderLinkTab.js +0 -10
- package/mobile/dist/components/Tabs/renderLinkTab.js.map +0 -1
- package/mobile/dist/services/sitemap/useSitemap.d.ts +0 -3
- package/mobile/dist/services/sitemap/useSitemap.js.map +0 -1
- package/mobile/dist/utils/withoutMobilePath.d.ts +0 -2
- package/mobile/dist/utils/withoutMobilePath.js +0 -6
- package/mobile/dist/utils/withoutMobilePath.js.map +0 -1
- package/mobile/lib/components/Calculator/renderPaymentTypeSelector.d.ts +0 -11
- package/mobile/lib/components/Calculator/renderPaymentTypeSelector.js +0 -6
- package/mobile/lib/components/Calculator/renderPaymentTypeSelector.js.map +0 -1
- package/mobile/lib/components/ContentPage/ContentPageContext.d.ts +0 -17
- package/mobile/lib/components/ContentPage/ContentPageContext.js +0 -2
- package/mobile/lib/components/ContentPage/ContentPageContext.js.map +0 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.d.ts +0 -8
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js +0 -9
- package/mobile/lib/components/ProductGallery/ProductGalleryBlock.js.map +0 -1
- package/mobile/lib/components/Tabs/renderLinkTab.d.ts +0 -9
- package/mobile/lib/components/Tabs/renderLinkTab.js +0 -7
- package/mobile/lib/components/Tabs/renderLinkTab.js.map +0 -1
- package/mobile/lib/services/sitemap/useSitemap.d.ts +0 -3
- package/mobile/lib/services/sitemap/useSitemap.js.map +0 -1
- package/mobile/lib/utils/withoutMobilePath.d.ts +0 -2
- package/mobile/lib/utils/withoutMobilePath.js +0 -3
- package/mobile/lib/utils/withoutMobilePath.js.map +0 -1
- package/mobile/src/components/Calculator/renderPaymentTypeSelector.tsx +0 -14
- package/mobile/src/components/ContentPage/ContentPageContext.tsx +0 -20
- package/mobile/src/components/ProductGallery/ProductGalleryBlock.tsx +0 -28
- package/mobile/src/components/Tabs/renderLinkTab.tsx +0 -42
- package/mobile/src/services/sitemap/useSitemap.ts +0 -15
- package/mobile/src/utils/withoutMobilePath.ts +0 -3
- package/src/components/Calculator/renderPaymentTypeSelector.tsx +0 -14
- package/src/components/ContentPage/ContentPageContext.tsx +0 -20
- package/src/components/ProductGallery/ProductGallery.fixture.mobile.tsx +0 -234
- package/src/components/ProductGallery/ProductGallery.mobile.tsx +0 -21
- package/src/components/ProductGallery/ProductGalleryBlock.tsx +0 -28
- package/src/components/Tabs/renderLinkTab.tsx +0 -42
- package/src/services/sitemap/useSitemap.ts +0 -15
- package/src/ui-kit/Button/Button.fixture.mobile.tsx +0 -16
- package/src/ui-kit/Button/Button.mobile.tsx +0 -87
- package/src/utils/withoutMobilePath.ts +0 -3
package/bundle/bundle.umd.js
CHANGED
|
@@ -79,6 +79,9 @@
|
|
|
79
79
|
get SITEMAP() {
|
|
80
80
|
return this._.SITEMAP;
|
|
81
81
|
}
|
|
82
|
+
get FOOTER() {
|
|
83
|
+
return this._.FOOTER;
|
|
84
|
+
}
|
|
82
85
|
get CDN() {
|
|
83
86
|
return this._.CDN;
|
|
84
87
|
}
|
|
@@ -299,8 +302,9 @@
|
|
|
299
302
|
const OBSERVER_OPTIONS = {
|
|
300
303
|
threshold: new Array(THRESHOLD_ARRAY_LENGTH).fill(0).map(getIntersectionThreshold),
|
|
301
304
|
};
|
|
302
|
-
const BlockWrapper = JSX(({
|
|
305
|
+
const BlockWrapper = JSX(({ className, block, tag = 'section', role, children }) => {
|
|
303
306
|
const Tag = tag;
|
|
307
|
+
const { anchor, labels } = block || {};
|
|
304
308
|
const [isVisible, setVisible] = useState(true);
|
|
305
309
|
const anchorClickRef = useRef({});
|
|
306
310
|
const observerCallback = useMemo(() => changeHashOnObserve({ anchor, anchorClickRef }), [anchor]);
|
|
@@ -311,7 +315,7 @@
|
|
|
311
315
|
}), []);
|
|
312
316
|
useEffect(() => EventBus.inst.subscribe('tab', (event) => {
|
|
313
317
|
if (event.type === 'group') {
|
|
314
|
-
const hasSettings = labels?.length || anchor;
|
|
318
|
+
const hasSettings = labels?.length || block?.anchor;
|
|
315
319
|
setVisible(event.label ? !hasSettings || Boolean(labels?.includes(event.label)) : true);
|
|
316
320
|
}
|
|
317
321
|
else {
|
|
@@ -347,7 +351,7 @@
|
|
|
347
351
|
|
|
348
352
|
const AccordionItemsList = JSX(({ children }) => (jsx("ul", { className: "list-none m-0 p-0", children: children })));
|
|
349
353
|
|
|
350
|
-
const Accordion = JSX(({ className = '',
|
|
354
|
+
const Accordion = JSX(({ className = '', title, accordionAlignTitle = 'center', description, children, ...rest }) => (jsxs(BlockWrapper, { className: `p-[50px] mb-1 last:mb-0 font-sans bg-white text-primary-text ${className}`, ...rest, children: [title ? (jsx(Heading, { headingType: "h3", as: "h2", className: `mb-2.5 ${AlignText[accordionAlignTitle]}`, title: title })) : null, description ? jsx("div", { className: "mb-2.5 text-l", children: description }) : null, jsx(AccordionItemsList, { children: children })] })));
|
|
351
355
|
Accordion.childrenTypes = ['AccordionItem'];
|
|
352
356
|
|
|
353
357
|
const Foldable = JSX(({ isFoldButtonOnTop = false, unfoldedByDefault = false, renderFoldableSection, renderFoldButton, }) => {
|
|
@@ -515,40 +519,60 @@
|
|
|
515
519
|
isHash: isHash
|
|
516
520
|
});
|
|
517
521
|
|
|
518
|
-
const MOBILE_URL_PATH = '/mobile';
|
|
519
|
-
const withoutMobilePath = (href) => (href || '').replace(MOBILE_URL_PATH, '');
|
|
520
|
-
|
|
521
522
|
const adjustHref = (href, router) => {
|
|
522
|
-
if (!href) {
|
|
523
|
-
return href;
|
|
524
|
-
}
|
|
525
|
-
const relativeHref = toRelativeHref(href, router) || '';
|
|
526
|
-
const isMobilePage = router?.pathname.startsWith(MOBILE_URL_PATH);
|
|
527
|
-
return isMobilePage && !isURL(relativeHref) ? `${MOBILE_URL_PATH}${relativeHref}` : relativeHref;
|
|
528
|
-
};
|
|
529
|
-
const toRelativeHref = (href, router) => {
|
|
530
523
|
if (!href) {
|
|
531
524
|
return href;
|
|
532
525
|
}
|
|
533
526
|
const origin = getOrigin(router?.href);
|
|
527
|
+
// Relative URL
|
|
534
528
|
return origin ? href.replace(origin, '') || '/' : href;
|
|
535
529
|
};
|
|
536
530
|
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
531
|
+
/* eslint-disable @typescript-eslint/ban-types */
|
|
532
|
+
const handlerDecorator = (handler, targetContent) => {
|
|
533
|
+
return handlerDecorator._impl(handler, targetContent);
|
|
534
|
+
};
|
|
535
|
+
handlerDecorator._impl = (handler) => handler;
|
|
536
|
+
handlerDecorator.setup = (impl) => {
|
|
537
|
+
handlerDecorator._impl = impl;
|
|
538
|
+
};
|
|
539
|
+
|
|
540
|
+
function useRouter() {
|
|
541
|
+
return useRouter._impl();
|
|
542
|
+
}
|
|
543
|
+
useRouter._impl = () => ({
|
|
544
|
+
href: globalThis.location?.href || '/',
|
|
545
|
+
pathname: globalThis.location?.pathname || '/',
|
|
546
|
+
query: {},
|
|
547
|
+
push: () => {
|
|
548
|
+
// Do nothing
|
|
549
|
+
},
|
|
550
|
+
replace: () => {
|
|
551
|
+
// Do nothing
|
|
552
|
+
},
|
|
553
|
+
});
|
|
554
|
+
useRouter.setup = (impl) => {
|
|
555
|
+
useRouter._impl = impl;
|
|
556
|
+
};
|
|
557
|
+
|
|
558
|
+
function useLink() {
|
|
559
|
+
const router = useRouter();
|
|
560
|
+
return (props) => {
|
|
561
|
+
const href = adjustHref(props.href, router);
|
|
562
|
+
return {
|
|
563
|
+
...props,
|
|
564
|
+
href,
|
|
565
|
+
'aria-label': props.text,
|
|
566
|
+
onClick: handlerDecorator((ev) => {
|
|
567
|
+
props.onClick && props.onClick(ev);
|
|
568
|
+
const isLocalHref = href && !isURL(href);
|
|
569
|
+
const isLocalTarget = !props.target || props.target === '_self';
|
|
570
|
+
if (isLocalHref && isLocalTarget) {
|
|
571
|
+
ev?.preventDefault();
|
|
572
|
+
router.push(href);
|
|
573
|
+
}
|
|
574
|
+
}, props),
|
|
575
|
+
};
|
|
552
576
|
};
|
|
553
577
|
}
|
|
554
578
|
|
|
@@ -575,10 +599,10 @@
|
|
|
575
599
|
|
|
576
600
|
const ButtonInner = JSX((props) => {
|
|
577
601
|
const { text, aboveText, appendLeft, appendRight, version = 'primary' } = props;
|
|
578
|
-
return (jsxs("div", { className: getButtonStyle(props), children: [appendLeft ? jsx("div", { className: iconStyleMap[version], children: appendLeft }) : null, isWithText(props) ? (jsxs("div", { children: [jsx("div", { className: "text-xs-light text-left", children: aboveText }), jsx("div", { className: `text-left ${aboveText ? 'text-s -mt-0.5' : 'text-l'}`, children: text })] })) : null, appendRight ? jsx("div", { className: iconStyleMap[version], children: appendRight }) : null] }));
|
|
602
|
+
return (jsxs("div", { className: getButtonStyle(props), children: [appendLeft ? jsx("div", { className: iconStyleMap[version], children: appendLeft }) : null, isWithText(props) ? (jsxs("div", { children: [aboveText ? jsx("div", { className: "text-xs-light text-left", children: aboveText }) : null, jsx("div", { className: `text-left ${aboveText ? 'text-s -mt-0.5' : 'text-l'}`, children: text })] })) : null, appendRight ? jsx("div", { className: iconStyleMap[version], children: appendRight }) : null] }));
|
|
579
603
|
});
|
|
580
604
|
const getButtonStyle = (props) => {
|
|
581
|
-
const {
|
|
605
|
+
const { version, aboveText, rounded } = props;
|
|
582
606
|
if (version === 'link') {
|
|
583
607
|
return '';
|
|
584
608
|
}
|
|
@@ -587,7 +611,6 @@
|
|
|
587
611
|
'group flex items-center justify-center',
|
|
588
612
|
isWithText(props) ? withTextStyle : 'h-12 w-12',
|
|
589
613
|
rounded ? 'rounded-full' : '',
|
|
590
|
-
className,
|
|
591
614
|
].join(' ');
|
|
592
615
|
};
|
|
593
616
|
const isWithText = ({ text, aboveText, appendLeft }) => Boolean(text || aboveText || !appendLeft);
|
|
@@ -608,22 +631,16 @@
|
|
|
608
631
|
className,
|
|
609
632
|
].join(' ');
|
|
610
633
|
|
|
611
|
-
const Button = JSX(({
|
|
612
|
-
const
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
return (jsx("a", { className: getRegularButtonClasses({ className, version, rounded }), href: href, target: target, onClick: onClick, "aria-label": ariaLabel, role: href ? 'link' : 'button', rel: rel, children: children }));
|
|
617
|
-
});
|
|
618
|
-
const DisabledButton = JSX(({ className, children, ariaLabel, version, rounded }) => {
|
|
619
|
-
return (jsx("div", { role: "button", "aria-disabled": "true", "aria-label": ariaLabel, tabIndex: -1, className: getDisabledButtonClasses({ className, rounded, version }), children: children }));
|
|
634
|
+
const Button = JSX(({ disabled, children, ...rest }) => {
|
|
635
|
+
const link = useLink();
|
|
636
|
+
const adjustedProps = link(rest);
|
|
637
|
+
const buttonInner = children ?? jsx(ButtonInner, { ...adjustedProps });
|
|
638
|
+
return disabled ? (jsx(DisabledButton, { ...adjustedProps, children: buttonInner })) : (jsx(RegularButton, { ...adjustedProps, children: buttonInner }));
|
|
620
639
|
});
|
|
640
|
+
const RegularButton = JSX(({ className = '', href, rel, target, ariaLabel, version, rounded, onClick, children }) => (jsx("a", { className: getRegularButtonClasses({ className, version, rounded }), href: href, rel: rel, target: target, "aria-label": ariaLabel, role: href ? 'link' : 'button', onClick: onClick, children: children })));
|
|
641
|
+
const DisabledButton = JSX(({ className, ariaLabel, version, rounded, children }) => (jsx("div", { role: "button", "aria-disabled": "true", "aria-label": ariaLabel, tabIndex: -1, className: getDisabledButtonClasses({ className, rounded, version }), children: children })));
|
|
621
642
|
|
|
622
|
-
const ButtonSection = JSX(({
|
|
623
|
-
const { handlerDecorator } = context;
|
|
624
|
-
const router = context.useRouter();
|
|
625
|
-
return buttons && buttons?.length ? (jsx("div", { className: className, children: buttons.map((button, index) => renderButton({ button: useLink({ router, handlerDecorator }, button), index })) })) : null;
|
|
626
|
-
});
|
|
643
|
+
const ButtonSection = JSX(({ className = '', buttons }) => buttons && buttons?.length ? (jsx("div", { className: className, children: buttons.map((button, index) => renderButton({ button, index })) })) : null);
|
|
627
644
|
function renderButton({ button, buttonClassName, index }) {
|
|
628
645
|
const { icon, iconRight, version, ...rest } = button;
|
|
629
646
|
const iconVersion = version === 'secondary' ? 'color' : 'white';
|
|
@@ -704,17 +721,17 @@
|
|
|
704
721
|
XS: 'text-xs-light',
|
|
705
722
|
};
|
|
706
723
|
|
|
707
|
-
const Headline = JSX(({
|
|
724
|
+
const Headline = JSX(({ className = '', bgColorHeadline = 'transparent', align = 'center', title, description, headlineVersion = 'XL', as, ...rest }) => {
|
|
708
725
|
const STYLE_MAPS = HEADLINE_BLOCK_STYLE_MAPS[bgColorHeadline];
|
|
709
726
|
const SIZE_MAPS = HEADLINE_VERSION[headlineVersion];
|
|
710
727
|
return (jsxs(BlockWrapper, { className: `font-sans flex flex-col p-[50px] ${SIZE_MAPS.gap} ${STYLE_MAPS.background} ${className}`, ...rest, children: [title ? (jsx(Heading, { headingType: SIZE_MAPS?.headingType, as: as || SIZE_MAPS?.as, className: `whitespace-pre-wrap ${STYLE_MAPS.text} ${AlignText[align]}`, title: title })) : null, description ? (jsx(Description, { className: `${SIZE_MAPS.descriptionFont} ${STYLE_MAPS.text} ${AlignText[align]}`, description: description })) : null] }));
|
|
711
728
|
});
|
|
712
729
|
|
|
713
730
|
const Bonus = JSX((props) => {
|
|
714
|
-
const {
|
|
715
|
-
return (jsx(BlockWrapper, { className: `font-sans bg-white p-[50px] pb-9 ${className}`,
|
|
731
|
+
const { className = '', title, description, bonusItems, ...rest } = props;
|
|
732
|
+
return (jsx(BlockWrapper, { className: `font-sans bg-white p-[50px] pb-9 ${className}`, ...rest, children: jsxs("div", { className: "container", children: [jsx(Headline, { className: "!p-0", title: title, description: description, headlineVersion: "M", align: "center", ...rest }), jsx("div", { className: "flex flex-wrap w-full mt-9", children: bonusItems?.length
|
|
716
733
|
? bonusItems.map((_, i) => {
|
|
717
|
-
return (jsx("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: jsxs("div", { className: "flex justify-between w-full", children: [jsxs("div", { className: "flex flex-col justify-between mr-4", children: [jsxs("div", { children: [jsx("div", { className: "text-h4", children: _.title }), jsx("div", { className: "text-xl-light mt-2 max-w-[488px]", children: _.description })] }), _?.buttons?.length ?
|
|
734
|
+
return (jsx("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: jsxs("div", { className: "flex justify-between w-full", children: [jsxs("div", { className: "flex flex-col justify-between mr-4", children: [jsxs("div", { children: [jsx("div", { className: "text-h4", children: _.title }), jsx("div", { className: "text-xl-light mt-2 max-w-[488px]", children: _.description })] }), _?.buttons?.length ? jsx(ButtonSection, { buttons: _?.buttons }) : null] }), _.bonusItemContent?.bonusType
|
|
718
735
|
? renderBonusItemContent(_.bonusItemContent)
|
|
719
736
|
: null] }) }, String(i)));
|
|
720
737
|
})
|
|
@@ -726,12 +743,23 @@
|
|
|
726
743
|
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] }));
|
|
727
744
|
const renderBonusImage = (_) => _.image ? (jsx(ImgInner, { className: `w-[50px] h-[50px] min-w-[50px] p-3 rounded-full`, image: _.image })) : null;
|
|
728
745
|
|
|
729
|
-
const BonusBenefitsBlock = JSX(({
|
|
746
|
+
const BonusBenefitsBlock = JSX(({ className = '', title, subtitle, bonusBenefits, columnsCount = '4', ...rest }) => (jsxs(BlockWrapper, { className: `font-sans text-primary-text bg-white p-[50px] flex flex-col text-center ${className}`, ...rest, children: [jsx(Headline, { className: "!p-0", title: title, description: subtitle, headlineVersion: "M", align: "center", ...rest }), bonusBenefits?.length ? (jsx("div", { className: `grid gap-1 mt-8 ${getElementsColsValue(columnsCount)}`, children: bonusBenefits.map(renderBonusBenefit) })) : null] })));
|
|
730
747
|
const renderBonusBenefit = (bonusBenefit, i) => {
|
|
731
748
|
return (jsxs("div", { className: "flex flex-col items-center max-w-[292px]", children: [bonusBenefit?.icon ? (jsx(ImgInner, { className: "h-[160px] w-[180px] min-w-[180px] min-h-[160px]", image: bonusBenefit.icon, width: "180", height: "160" })) : null, jsx("div", { children: bonusBenefit?.label ? jsx("span", { className: "text-h6 m-0", children: bonusBenefit.label }) : null })] }, String(i)));
|
|
732
749
|
};
|
|
733
750
|
const getElementsColsValue = (colValue) => colValue === '4' ? 'grid-cols-4' : 'grid-cols-5';
|
|
734
751
|
|
|
752
|
+
const BusinessCard = JSX((props) => {
|
|
753
|
+
const { title, image, cardItems, button } = props;
|
|
754
|
+
return (jsxs("div", { className: "border-color-stroke border p-9 w-1/2", children: [image ? (jsxs("div", { className: "flex justify-center", children: [image?.src ? jsx(ImgInner, { className: "mb-5", image: image }) : null, image?.icon ? jsx(ImgInner, { image: image, asSVG: true }) : 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, button?.text ? renderButton({ button, buttonClassName: 'mt-6' }) : null] }));
|
|
755
|
+
});
|
|
756
|
+
const renderItem = (item, key) => {
|
|
757
|
+
const { icon, text } = item;
|
|
758
|
+
return (jsxs("li", { className: "flex items-center gap-3.5 mb-3 last:mb-0", children: [icon?.icon ? (jsx(ImgInner, { className: `w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider`, image: icon.icon, asSVG: true })) : null, icon?.src ? jsx(ImgInner, { image: icon.icon }) : null, jsx("span", { className: "text-xl-light", children: text })] }, key));
|
|
759
|
+
};
|
|
760
|
+
|
|
761
|
+
const BusinessBlock = JSX(({ className = '', title, cards, ...rest }) => (jsxs(BlockWrapper, { className: `font-sans bg-white p-[50px] pb-9 ${className}`, ...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 })] })));
|
|
762
|
+
|
|
735
763
|
const ArrowButton = JSX(({ className, disabled, ...rest }) => (jsx(Button, { rounded: true, className: `group 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
|
|
736
764
|
? 'bg-secondary-light text-secondary-text'
|
|
737
765
|
: 'bg-white text-primary-text hover:text-primary-main'} ${className || ''}`, disabled: disabled, ...rest, children: jsx(ImgInner, { className: "w-4 h-4 min-w-4 min-h-4 rounded-full box-border", image: { icon: 'ArrowLeftIcon', iconVersion: 'black' }, imageClassName: "group-hover:text-primary-main", width: "16", height: "16", asSVG: true }) })));
|
|
@@ -785,8 +813,8 @@
|
|
|
785
813
|
|
|
786
814
|
const Rate = JSX(({ rate, title = 'Ставка', unit, rateBlockClassName }) => (jsxs("div", { children: [jsx("div", { className: "text-l-light text-secondary-text", children: title }), jsxs("div", { className: "flex justify-start", children: [jsx("span", { className: `block gradient-color-text font-mohave text-title-huge pr-6 -mt-4 ${rateBlockClassName}`, children: String(rate).replace('.', ',') }), unit ? jsx("span", { className: "gradient-color-text text-[65px] leading-[75px]", children: unit }) : ''] })] })));
|
|
787
815
|
|
|
788
|
-
function renderButtonSection(
|
|
789
|
-
return buttons?.length ? (jsx(ButtonSection, {
|
|
816
|
+
function renderButtonSection(buttons) {
|
|
817
|
+
return buttons?.length ? (jsx(ButtonSection, { buttons: buttons, className: "flex flex-col mt-7 gap-2" })) : null;
|
|
790
818
|
}
|
|
791
819
|
|
|
792
820
|
const renderFootnote = (text) => text ? jsx("p", { className: "text-s-light text-secondary-text mt-7", children: text }) : null;
|
|
@@ -933,7 +961,7 @@
|
|
|
933
961
|
};
|
|
934
962
|
};
|
|
935
963
|
|
|
936
|
-
const BonusCalculatorForm = JSX(({
|
|
964
|
+
const BonusCalculatorForm = JSX(({ className = '', sourceBookDir = '', buttons, footnote }) => {
|
|
937
965
|
const [travelExpenseValue, setTravelExpenseValue] = useState(DEFAULT_TRAVEL_MIN_SUM);
|
|
938
966
|
const [restExpenseValue, setRestExpenseValue] = useState(DEFAULT_REST_MIN_SUM);
|
|
939
967
|
const userInputParams = {
|
|
@@ -954,7 +982,7 @@
|
|
|
954
982
|
moneyValue: restExpenseValue,
|
|
955
983
|
step: 500,
|
|
956
984
|
isShowItems: false,
|
|
957
|
-
}, setRestExpenseValue)] }), jsx("div", { children: monthBonus >= 0 ? (jsx(Rate, { title: "\u0411\u0430\u043B\u043B\u043E\u0432 \u0437\u0430 \u043C\u0435\u0441\u044F\u0446", rate: monthBonus, rateBlockClassName: "tracking-[-14px]" })) : null }), jsxs("div", { className: "w-full max-w-[350px]", children: [yearBonus >= 0 ? jsx(CalculatorValueBlock, { title: "\u0411\u0430\u043B\u043B\u043E\u0432 \u0437\u0430 \u0433\u043E\u0434", value: yearBonus }) : null, renderButtonSection(
|
|
985
|
+
}, setRestExpenseValue)] }), jsx("div", { children: monthBonus >= 0 ? (jsx(Rate, { title: "\u0411\u0430\u043B\u043B\u043E\u0432 \u0437\u0430 \u043C\u0435\u0441\u044F\u0446", rate: monthBonus, rateBlockClassName: "tracking-[-14px]" })) : null }), jsxs("div", { className: "w-full max-w-[350px]", children: [yearBonus >= 0 ? jsx(CalculatorValueBlock, { title: "\u0411\u0430\u043B\u043B\u043E\u0432 \u0437\u0430 \u0433\u043E\u0434", value: yearBonus }) : null, renderButtonSection(buttons), renderFootnote(footnote)] })] }));
|
|
958
986
|
});
|
|
959
987
|
|
|
960
988
|
const SVG = JSX(({ className, viewBox, fill = 'none', width, height, paths, ...commonOptions }) => {
|
|
@@ -973,11 +1001,11 @@
|
|
|
973
1001
|
return (jsx("div", { className: className, children: jsxs("label", { className: "flex items-center relative cursor-pointer group", children: [jsx("input", { className: `peer appearance-none w-5 h-5 border-solid cursor-pointer group-hover:border-checkbox-hover
|
|
974
1002
|
${isRadio ? 'rounded-full border-2' : 'rounded checked:bg-primary-main border'}
|
|
975
1003
|
${checked ? 'border-black' : 'border-main-stroke'}
|
|
976
|
-
checked:border-primary-main m-0`, type: "checkbox", onChange: (e) => {
|
|
977
|
-
onChange(e.target.checked);
|
|
978
|
-
}, checked: checked }), isRadio ? (jsx("div", { className: "left-1 w-3 h-3 rounded-full bg-primary-main hidden absolute peer-checked:block" })) : (jsx(SVG, { paths: CHECK_PATHS, className: "hidden absolute left-1 ml-px peer-checked:block", width: "11", height: "9", fill: "white", viewBox: "0 0 11 9" })), text ? jsx("span", { className: "font-sans ml-3 text-l-light", children: text }) : null] }) }));
|
|
1004
|
+
checked:border-primary-main m-0`, type: "checkbox", onChange: (e) => onChange && onChange(e.target.checked), checked: checked }), isRadio ? (jsx("div", { className: "left-1 w-3 h-3 rounded-full bg-primary-main hidden absolute peer-checked:block" })) : (jsx(SVG, { paths: CHECK_PATHS, className: "hidden absolute left-1 ml-px peer-checked:block", width: "11", height: "9", fill: "white", viewBox: "0 0 11 9" })), text ? jsx("span", { className: "font-sans ml-3 text-l-light", children: text }) : null] }) }));
|
|
979
1005
|
});
|
|
980
1006
|
|
|
1007
|
+
const RadioButtonGroup = JSX(({ items, checkedItem, onChange: onChangeCheckedItem }) => (jsx("div", { className: "flex flex-col gap-3", children: items?.map(({ id, text }) => (jsx(Checkbox, { isRadio: true, text: text, checked: checkedItem === id, onChange: () => onChangeCheckedItem && onChangeCheckedItem(id) }, String(id)))) })));
|
|
1008
|
+
|
|
981
1009
|
const STEP_MONTHS = 1;
|
|
982
1010
|
function renderMonthsInput(title, params, callback) {
|
|
983
1011
|
const { minMonths, maxMonths, monthsValue } = params;
|
|
@@ -988,14 +1016,6 @@
|
|
|
988
1016
|
return (jsx(InputRange, { className: "mt-7", title: title, items: [`От ${monthText(minMonths)}`, `До ${monthText(maxMonths)}`], min: minMonths, max: maxMonths, step: STEP_MONTHS, value: clamp(monthsValue, minMonths, maxMonths), onChange: callback }));
|
|
989
1017
|
}
|
|
990
1018
|
|
|
991
|
-
const RadioButtonGroup = JSX(({ items, checkedItem, onChangeCheckedItem }) => {
|
|
992
|
-
return (jsx("div", { className: "flex flex-col gap-3", children: items?.map(({ id, text }) => (jsx(Checkbox, { isRadio: true, text: text, checked: checkedItem === id, onChange: () => onChangeCheckedItem(id) }, id))) }));
|
|
993
|
-
});
|
|
994
|
-
|
|
995
|
-
function renderPaymentTypeSelector({ onChange, ...rest }) {
|
|
996
|
-
return jsx(RadioButtonGroup, { onChangeCheckedItem: onChange, ...rest });
|
|
997
|
-
}
|
|
998
|
-
|
|
999
1019
|
/**
|
|
1000
1020
|
* Формулы расчёта аннуитетных и дифференцированных платежей:
|
|
1001
1021
|
* https://finuslugi.ru/potrebitelskie_kredity/stat_annuitetnye_i_differentsirovannye_platezhi
|
|
@@ -1042,7 +1062,7 @@
|
|
|
1042
1062
|
text: 'Дифференцированный',
|
|
1043
1063
|
},
|
|
1044
1064
|
];
|
|
1045
|
-
const CreditCalculatorForm = JSX(({
|
|
1065
|
+
const CreditCalculatorForm = JSX(({ className = '', sourceBookDir, buttons, footnote }) => {
|
|
1046
1066
|
const [isAnnuity, toggleIsAnnuity] = useState(false);
|
|
1047
1067
|
const [isInsurance, toggleIsInsurance] = useState(true);
|
|
1048
1068
|
const [isSalaryClient, toggleIsSalaryClient] = useState(false);
|
|
@@ -1058,12 +1078,7 @@
|
|
|
1058
1078
|
monthsValue,
|
|
1059
1079
|
};
|
|
1060
1080
|
const calculatorParams = useCreditCalculatorParams(userInputParams, sourceBookDir);
|
|
1061
|
-
return (jsxs("section", { className: className, children: [jsxs("div", { className: "w-[468px]", children: [renderWantedSumInput('Сумма кредита, ₽', { ...calculatorParams, step: 500 }, setMoneyValue), renderMonthsInput('Срок кредита, месяцев', calculatorParams, setMonthsValue), jsxs("div", { className: "mt-7", children: [jsx(Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u0437\u0430\u0440\u043F\u043B\u0430\u0442\u0443 \u043D\u0430 \u0441\u0447\u0451\u0442 \u0432 \u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u0435", checked: isSalaryClient, onChange: toggleIsSalaryClient }), jsx(Checkbox, { className: "mt-3", text: "\u0420\u0430\u0431\u043E\u0442\u0430\u044E \u0432 \u0431\u044E\u0434\u0436\u0435\u0442\u043D\u043E\u0439 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", checked: isStateEmployee, onChange: toggleIsStateEmployee }), jsx(Checkbox, { className: "mt-3", text: "\u041A\u043E\u043C\u043F\u043B\u0435\u043A\u0441\u043D\u0430\u044F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u044F \u0437\u0430\u0449\u0438\u0442\u0430", checked: isInsurance, onChange: toggleIsInsurance })] })] }), jsx(Rate, { title: "\u0421\u0442\u0430\u0432\u043A\u0430", rate: calculatorParams.finalRate, rateBlockClassName: "tracking-[-25px]", unit: "%" }), jsxs("div", { className: "w-full max-w-[350px]", children: [jsx(CalculatorValueBlock, { title: isAnnuity ? 'Ежемесячный платеж' : 'Платёж в первый месяц', value: calculatorParams.monthlyPayment, postfix: "\u20BD" }),
|
|
1062
|
-
context,
|
|
1063
|
-
items: paymentTypeItems,
|
|
1064
|
-
checkedItem: isAnnuity ? ANNUITY : DIFFERENTIAL,
|
|
1065
|
-
onChange: (text) => toggleIsAnnuity(text === ANNUITY),
|
|
1066
|
-
}), renderButtonSection(context, buttons), renderFootnote(footnote)] })] }));
|
|
1081
|
+
return (jsxs("section", { className: className, children: [jsxs("div", { className: "w-[468px]", children: [renderWantedSumInput('Сумма кредита, ₽', { ...calculatorParams, step: 500 }, setMoneyValue), renderMonthsInput('Срок кредита, месяцев', calculatorParams, setMonthsValue), jsxs("div", { className: "mt-7", children: [jsx(Checkbox, { text: "\u041F\u043E\u043B\u0443\u0447\u0430\u044E \u0437\u0430\u0440\u043F\u043B\u0430\u0442\u0443 \u043D\u0430 \u0441\u0447\u0451\u0442 \u0432 \u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u0435", checked: isSalaryClient, onChange: toggleIsSalaryClient }), jsx(Checkbox, { className: "mt-3", text: "\u0420\u0430\u0431\u043E\u0442\u0430\u044E \u0432 \u0431\u044E\u0434\u0436\u0435\u0442\u043D\u043E\u0439 \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438", checked: isStateEmployee, onChange: toggleIsStateEmployee }), jsx(Checkbox, { className: "mt-3", text: "\u041A\u043E\u043C\u043F\u043B\u0435\u043A\u0441\u043D\u0430\u044F \u0441\u0442\u0440\u0430\u0445\u043E\u0432\u0430\u044F \u0437\u0430\u0449\u0438\u0442\u0430", checked: isInsurance, onChange: toggleIsInsurance })] })] }), jsx(Rate, { title: "\u0421\u0442\u0430\u0432\u043A\u0430", rate: calculatorParams.finalRate, rateBlockClassName: "tracking-[-25px]", unit: "%" }), jsxs("div", { className: "w-full max-w-[350px]", children: [jsx(CalculatorValueBlock, { title: isAnnuity ? 'Ежемесячный платеж' : 'Платёж в первый месяц', value: calculatorParams.monthlyPayment, postfix: "\u20BD" }), jsx(RadioButtonGroup, { items: paymentTypeItems, checkedItem: isAnnuity ? ANNUITY : DIFFERENTIAL, onChange: (text) => toggleIsAnnuity(text === ANNUITY) }), renderButtonSection(buttons), renderFootnote(footnote)] })] }));
|
|
1067
1082
|
});
|
|
1068
1083
|
|
|
1069
1084
|
const EVERY_MONTH = 'everyMonth';
|
|
@@ -1078,7 +1093,7 @@
|
|
|
1078
1093
|
text: 'В конце срока',
|
|
1079
1094
|
},
|
|
1080
1095
|
];
|
|
1081
|
-
const DepositCalculatorForm = JSX(({
|
|
1096
|
+
const DepositCalculatorForm = JSX(({ className = '', rate, buttons, footnote }) => {
|
|
1082
1097
|
const [moneyValue, setMoneyValue] = useState(DEFAULT_SUM);
|
|
1083
1098
|
const [monthsValue, setMonthsValue] = useState(DEFAULT_MONTHS);
|
|
1084
1099
|
const [isEveryMonth, toggleIsEveryMonth] = useState(false);
|
|
@@ -1092,12 +1107,7 @@
|
|
|
1092
1107
|
minMonths: DEFAULT_MIN_MONTHS,
|
|
1093
1108
|
maxMonths: DEFAULT_MAX_MONTHS,
|
|
1094
1109
|
monthsValue,
|
|
1095
|
-
}, setMonthsValue)] }), jsx(Rate, { rate: rate || 1, rateBlockClassName: "tracking-[-25px]", unit: "%" }), jsxs("div", { className: "w-full max-w-[350px]", children: [(jsx(CalculatorValueBlock, { title: "\u0414\u043E\u0445\u043E\u0434 \u043F\u043E \u0432\u043A\u043B\u0430\u0434\u0443", value: income, postfix: "\u20BD", prefix: "+" })) , (jsx(CalculatorValueBlock, { title: "\u0421\u0443\u043C\u043C\u0430 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: finallySum, postfix: "\u20BD" })) ,
|
|
1096
|
-
context,
|
|
1097
|
-
items: depositTypeItems,
|
|
1098
|
-
checkedItem: isEveryMonth ? EVERY_MONTH : AT_END_TERM,
|
|
1099
|
-
onChange: (text) => toggleIsEveryMonth(text === EVERY_MONTH),
|
|
1100
|
-
}), renderButtonSection(context, buttons), renderFootnote(footnote)] })] }));
|
|
1110
|
+
}, setMonthsValue)] }), jsx(Rate, { rate: rate || 1, rateBlockClassName: "tracking-[-25px]", unit: "%" }), jsxs("div", { className: "w-full max-w-[350px]", children: [(jsx(CalculatorValueBlock, { title: "\u0414\u043E\u0445\u043E\u0434 \u043F\u043E \u0432\u043A\u043B\u0430\u0434\u0443", value: income, postfix: "\u20BD", prefix: "+" })) , (jsx(CalculatorValueBlock, { title: "\u0421\u0443\u043C\u043C\u0430 \u0432 \u043A\u043E\u043D\u0446\u0435 \u0441\u0440\u043E\u043A\u0430", value: finallySum, postfix: "\u20BD" })) , jsx(RadioButtonGroup, { items: depositTypeItems, checkedItem: isEveryMonth ? EVERY_MONTH : AT_END_TERM, onChange: (text) => toggleIsEveryMonth(text === EVERY_MONTH) }), renderButtonSection(buttons), renderFootnote(footnote)] })] }));
|
|
1101
1111
|
});
|
|
1102
1112
|
|
|
1103
1113
|
const EmbeddableCalcBlocks = {
|
|
@@ -1106,16 +1116,16 @@
|
|
|
1106
1116
|
BonusCalculatorForm,
|
|
1107
1117
|
};
|
|
1108
1118
|
|
|
1109
|
-
const renderCalculatorBlock = (
|
|
1119
|
+
const renderCalculatorBlock = (block, i) => {
|
|
1110
1120
|
const type = block?.calcType;
|
|
1111
1121
|
if (!type || !(type in EmbeddableCalcBlocks)) {
|
|
1112
1122
|
return null;
|
|
1113
1123
|
}
|
|
1114
1124
|
const EmbeddedBlock = EmbeddableCalcBlocks[type];
|
|
1115
|
-
return (jsx("section", { className:
|
|
1125
|
+
return (jsx("section", { className: "box-border relative bg-white flex shrink-0 self-start basis-full", role: "listitem", children: jsxs("div", { className: "box-border p-9 w-full", children: [block?.title ? jsx(Heading, { className: "text-center mb-6", title: block.title }) : null, jsx(EmbeddedBlock, { ...block, className: "flex justify-between" })] }) }, String(i)));
|
|
1116
1126
|
};
|
|
1117
1127
|
|
|
1118
|
-
const Calculator = JSX(({ className = '',
|
|
1128
|
+
const Calculator = JSX(({ className = '', calculatorTabs = [], ...rest }) => {
|
|
1119
1129
|
const tabsNav = calculatorTabs.map((_) => _.nav || {});
|
|
1120
1130
|
const calculatorBlocks = calculatorTabs.map(({ calculatorBlock }) => calculatorBlock || {});
|
|
1121
1131
|
const [activeSlideIndex, setActiveSlideIndex] = useState(0);
|
|
@@ -1125,16 +1135,14 @@
|
|
|
1125
1135
|
const isGalleryScrollAvailable = calculatorTabs?.length > 3;
|
|
1126
1136
|
const showNextButton = isGalleryScrollAvailable && calculatorTabs?.length > tabsShift + 3;
|
|
1127
1137
|
const showPrevButton = tabsShift > 0;
|
|
1128
|
-
return (jsxs(BlockWrapper, {
|
|
1138
|
+
return (jsxs(BlockWrapper, { className: `box-border overflow-hidden relative font-sans w-100 text-primary-text bg-white ${className}`, ...rest, children: [jsxs("div", { className: "bg-white", children: [tabsNav.length > 1
|
|
1129
1139
|
? renderTabs({ tabsShift, tabsNav, activeSlideIndex, setActiveSlideIndex })
|
|
1130
1140
|
: null, renderArrows({
|
|
1131
1141
|
handler: [handlePrevClick, handleNextClick],
|
|
1132
1142
|
isShown: [showPrevButton, showNextButton],
|
|
1133
1143
|
btnClass: ['left-3', 'right-3'],
|
|
1134
1144
|
className: 'top-8',
|
|
1135
|
-
})] }), jsx("div", { className: "flex", style: { transform: `translateX(-${activeSlideIndex}00%)` }, role: "list", children: calculatorBlocks?.length
|
|
1136
|
-
? calculatorBlocks.map(renderCalculatorBlock({ context, className }))
|
|
1137
|
-
: null })] }));
|
|
1145
|
+
})] }), jsx("div", { className: "flex", style: { transform: `translateX(-${activeSlideIndex}00%)` }, role: "list", children: calculatorBlocks?.length ? calculatorBlocks.map(renderCalculatorBlock) : null })] }));
|
|
1138
1146
|
});
|
|
1139
1147
|
function renderNavButton$2({ tab, i, activeSlideIndex, onClick }) {
|
|
1140
1148
|
const isActiveBtn = i === activeSlideIndex;
|
|
@@ -1224,61 +1232,56 @@
|
|
|
1224
1232
|
const DEFAULT_TITLE = 'Укажите сумму перевода';
|
|
1225
1233
|
const DEFAULT_LABEL = 'Сумма перевода';
|
|
1226
1234
|
const DEFAULT_PLACEHOLDER = '1500';
|
|
1227
|
-
const CardTransfer = JSX(({ className = '', title = DEFAULT_TITLE, label = DEFAULT_LABEL, placeholder = DEFAULT_PLACEHOLDER, button,
|
|
1228
|
-
const router = context.useRouter();
|
|
1229
|
-
const { handlerDecorator } = context;
|
|
1235
|
+
const CardTransfer = JSX(({ className = '', title = DEFAULT_TITLE, label = DEFAULT_LABEL, placeholder = DEFAULT_PLACEHOLDER, button, ...rest }) => {
|
|
1230
1236
|
const [value, setValue] = useState('');
|
|
1231
1237
|
const isDisabled = !Number(getSanitizedValue(value));
|
|
1232
1238
|
const buttonStyle = isDisabled
|
|
1233
1239
|
? getDisabledButtonClasses({ version: button?.version })
|
|
1234
1240
|
: getRegularButtonClasses({ className: 'text-white', version: button?.version });
|
|
1235
|
-
|
|
1241
|
+
const link = useLink();
|
|
1242
|
+
return (jsxs(BlockWrapper, { className: `p-[50px] flex flex-col items-center font-sans bg-white ${className}`, ...rest, children: [title ? jsx(Heading, { className: "max-w-[684px] pb-9", headingType: "h2", title: title }) : null, jsxs("form", { className: "w-[468px]", method: "POST", action: FORM_URL, children: [jsx(CurrencyInput, { name: AMOUNT_KEY, value: value, onChange: setValue, valid: value === '' || !isDisabled, placeholder: placeholder, label: label }), button?.text ? (jsx("button", { type: "submit", className: `w-full p-4 mt-6 ${buttonStyle} `, disabled: isDisabled, ...link(button), children: button.text })) : null] })] }));
|
|
1236
1243
|
});
|
|
1237
1244
|
|
|
1238
1245
|
const cardStyleMap$1 = {
|
|
1239
1246
|
black: 'bg-black',
|
|
1240
1247
|
white: 'bg-white',
|
|
1241
1248
|
};
|
|
1242
|
-
const CatalogCard = JSX(({ className = '', title, description, image, price, button, colors }) => {
|
|
1243
|
-
return (jsxs("section", { className: `border border-solid box-border border-main-stroke p-[30px] min-w-[402px] flex flex-col justify-left ${className}`, role: "listitem", children: [image?.src ? jsx(ImgInner, { 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: "text-m-light text-left mb-4", children: description }) : null, colors?.length ? (jsxs("div", { className: "flex mb-4 text-s-light text-secondary-text", children: [jsx("div", { className: "mr-1.5", children: "\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0446\u0432\u0435\u0442\u0430: " }), colors.map(renderColorOption)] })) : null, price ? jsxs("div", { className: "text-h3 text-left", children: [price, "\u00A0\u20BD"] }) : null, button ? renderButton({ button, buttonClassName: 'mt-5 w-full' }) : null] }));
|
|
1244
|
-
});
|
|
1249
|
+
const CatalogCard = JSX(({ className = '', title, description, image, price, button, colors }) => (jsxs("section", { className: `border border-solid box-border border-main-stroke p-[30px] min-w-[402px] flex flex-col justify-left ${className}`, role: "listitem", children: [image?.src ? jsx(ImgInner, { 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: "text-m-light text-left mb-4", children: description }) : null, colors?.length ? (jsxs("div", { className: "flex mb-4 text-s-light text-secondary-text", children: [jsx("div", { className: "mr-1.5", children: "\u0414\u043E\u0441\u0442\u0443\u043F\u043D\u044B\u0435 \u0446\u0432\u0435\u0442\u0430: " }), colors.map(renderColorOption)] })) : null, price ? jsxs("div", { className: "text-h3 text-left", children: [price, "\u00A0\u20BD"] }) : null, button ? renderButton({ button, buttonClassName: 'mt-5 w-full' }) : null] })));
|
|
1245
1250
|
const renderColorOption = (color, i) => (jsx("span", { className: `w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${cardStyleMap$1[color]}` }, String(i)));
|
|
1246
1251
|
|
|
1247
1252
|
const BLUR_BLOCK_CLASSES$2 = 'absolute top-0 bottom-0 w-[84px]';
|
|
1248
1253
|
const CARD_FULL_VIEW_COUNT$2 = 3;
|
|
1249
1254
|
const CARD_SHIFT$1 = 430;
|
|
1250
|
-
const Catalog = JSX(({
|
|
1255
|
+
const Catalog = JSX(({ cards = [], className = '', title, description, ...rest }) => {
|
|
1251
1256
|
const [activeCardIndex, setActiveCardIndex] = useState(0);
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1257
|
+
const handleNextClick = useCallback(() => setActiveCardIndex((_) => _ + 1), []);
|
|
1258
|
+
const handlePrevClick = useCallback(() => setActiveCardIndex((_) => _ - 1), []);
|
|
1259
|
+
const isUseSlider = cards.length > CARD_FULL_VIEW_COUNT$2;
|
|
1260
|
+
const showNextButton = isUseSlider && cards.length - activeCardIndex > CARD_FULL_VIEW_COUNT$2;
|
|
1261
|
+
const showPrevButton = isUseSlider && activeCardIndex > 0;
|
|
1262
|
+
return (jsxs(BlockWrapper, { className: `bg-white relative font-sans p-[50px] overflow-hidden text-center ${className}`, ...rest, children: [jsx(Headline, { className: "!p-0", title: title, description: description, headlineVersion: "M", align: "center", ...rest }), jsx("div", { className: "flex duration-1000 gap-3.5 mt-8", style: { transform: `translateX(-${activeCardIndex * CARD_SHIFT$1}px)` }, role: "list", children: cards?.length ? cards.map((card, i) => jsx(CatalogCard, { ...card }, String(i))) : null }), renderArrows({
|
|
1263
|
+
handler: [handlePrevClick, handleNextClick],
|
|
1264
|
+
isShown: [showPrevButton, showNextButton],
|
|
1265
|
+
btnClass: ['left-8', 'right-8'],
|
|
1266
|
+
className: 'top-1/2 z-10 mt-6',
|
|
1256
1267
|
}), jsx("div", { className: `${BLUR_BLOCK_CLASSES$2} left-0 bg-opacity-from-white` }), jsx("div", { className: `${BLUR_BLOCK_CLASSES$2} right-0 bg-opacity-to-white` })] }));
|
|
1257
1268
|
});
|
|
1258
|
-
const renderCatalogCard = (context) => (card, i) => {
|
|
1259
|
-
return jsx(CatalogCard, { context: context, ...card }, String(i));
|
|
1260
|
-
};
|
|
1261
|
-
const renderNavButtons$2 = ({ cardsCount, activeCardIndex, setActiveCardIndex, }) => {
|
|
1262
|
-
const handleNextClick = () => setActiveCardIndex(activeCardIndex + 1);
|
|
1263
|
-
const handlePrevClick = () => setActiveCardIndex(activeCardIndex - 1);
|
|
1264
|
-
const isUseSlider = cardsCount > CARD_FULL_VIEW_COUNT$2;
|
|
1265
|
-
const showNextButton = isUseSlider && cardsCount - activeCardIndex > CARD_FULL_VIEW_COUNT$2;
|
|
1266
|
-
const showPrevButton = isUseSlider && activeCardIndex > 0;
|
|
1267
|
-
return renderArrows({
|
|
1268
|
-
handler: [handlePrevClick, handleNextClick],
|
|
1269
|
-
isShown: [showPrevButton, showNextButton],
|
|
1270
|
-
btnClass: ['left-8', 'right-8'],
|
|
1271
|
-
className: 'top-1/2 z-10 mt-6',
|
|
1272
|
-
});
|
|
1273
|
-
};
|
|
1274
1269
|
|
|
1275
|
-
const useTableArrowScrollControl = ({ columnsLength, colsLengthForScroll,
|
|
1276
|
-
const
|
|
1277
|
-
const
|
|
1270
|
+
const useTableArrowScrollControl = ({ columnsLength, colsLengthForScroll, }) => {
|
|
1271
|
+
const [activeCardIndex, setActiveCardIndex] = useState(0);
|
|
1272
|
+
const onNextClick = useCallback(() => setActiveCardIndex((_) => _ + 1), []);
|
|
1273
|
+
const onPrevClick = useCallback(() => setActiveCardIndex((_) => _ - 1), []);
|
|
1278
1274
|
const isScrollAvailable = columnsLength > colsLengthForScroll;
|
|
1279
1275
|
const showNextButton = isScrollAvailable && columnsLength - activeCardIndex > colsLengthForScroll;
|
|
1280
1276
|
const showPrevButton = Boolean(isScrollAvailable && activeCardIndex > 0);
|
|
1281
|
-
return {
|
|
1277
|
+
return {
|
|
1278
|
+
activeCardIndex,
|
|
1279
|
+
onNextClick,
|
|
1280
|
+
onPrevClick,
|
|
1281
|
+
isScrollAvailable,
|
|
1282
|
+
showNextButton,
|
|
1283
|
+
showPrevButton,
|
|
1284
|
+
};
|
|
1282
1285
|
};
|
|
1283
1286
|
|
|
1284
1287
|
const GRADIENT = 'bg-gradient-to-r from-main-gradient-start to-main-gradient-end';
|
|
@@ -1298,13 +1301,11 @@
|
|
|
1298
1301
|
|
|
1299
1302
|
const TableRowContainer = JSX(({ children }) => (jsx("div", { className: "self-start flex flex-col", role: "row", children: jsx("div", { className: "flex", children: children }) })));
|
|
1300
1303
|
|
|
1301
|
-
const ComparisonTableColumnHeaders = JSX(({ colHeaders, activeCardIndex,
|
|
1302
|
-
return (jsxs(TableRowContainer, { children: [jsx("div", { className: FIRST_CELL_CLASSES$1, role: "columnheader" }), jsx(TableCarouselContainer, { activeCardIndex: activeCardIndex, columnWidth: COLUMN_WIDTH$2, children: colHeaders.map((header, i) => (jsx(HeaderCell, { ...header, link: header.link && useLink({ router, handlerDecorator }, header.link) }, String(i)))) })] }));
|
|
1303
|
-
});
|
|
1304
|
+
const ComparisonTableColumnHeaders = JSX(({ colHeaders, activeCardIndex }) => (jsxs(TableRowContainer, { children: [jsx("div", { className: FIRST_CELL_CLASSES$1, role: "columnheader" }), jsx(TableCarouselContainer, { activeCardIndex: activeCardIndex, columnWidth: COLUMN_WIDTH$2, children: colHeaders.map((header, i) => (jsx(HeaderCell, { ...header }, String(i)))) })] })));
|
|
1304
1305
|
|
|
1305
|
-
const TableArrowScrollControl = JSX(({ isScrollAvailable,
|
|
1306
|
+
const TableArrowScrollControl = JSX(({ isScrollAvailable, onNextClick, onPrevClick, showNextButton, showPrevButton }) => {
|
|
1306
1307
|
return isScrollAvailable ? (jsx("div", { children: renderArrows({
|
|
1307
|
-
handler: [
|
|
1308
|
+
handler: [onPrevClick, onNextClick],
|
|
1308
1309
|
isShown: [showPrevButton, showNextButton],
|
|
1309
1310
|
btnClass: ['top-[108px]', 'top-11'],
|
|
1310
1311
|
className: 'right-7',
|
|
@@ -1324,13 +1325,11 @@
|
|
|
1324
1325
|
const titleStyle = (isLastRow = false) => `text-s py-7 ${DIVIDER_CLASSES$1} ${FIRST_CELL_CLASSES$1} ${isLastRow ? 'border-b-0' : 'border-solid'}`;
|
|
1325
1326
|
const TableRow = JSX(({ row: { header, data }, activeCardIndex, isColoredFirstColumn, isFirstRow, isLastRow }) => (jsxs(TableRowContainer, { children: [header?.title ? jsx("div", { className: titleStyle(isLastRow), children: header.title }) : null, data?.length ? (jsx(TableCarouselContainer, { activeCardIndex: activeCardIndex, columnWidth: COLUMN_WIDTH$2, children: data.map((cell, i) => (jsx(TableCell, { cell: cell, isFirstRow: isFirstRow, isLastRow: isLastRow, isFillGradient: isColoredFirstColumn && i === 0 }, String(i)))) })) : null] })));
|
|
1326
1327
|
|
|
1327
|
-
const ComparisonTableRows = JSX(({ rowData,
|
|
1328
|
-
return (jsxs("div", { className: "relative", children: [rowData.map((row, i, { length }) => (jsx(TableRow, { row: row, isFirstRow: i === 0, isLastRow: i + 1 === length, activeCardIndex: activeCardIndex, isColoredFirstColumn: isColoredFirstColumn }, String(i)))), jsx(TableArrowScrollControl, { ...tableArrowScrollProps })] }));
|
|
1328
|
+
const ComparisonTableRows = JSX(({ rowData, isColoredFirstColumn, ...tableArrowScrollProps }) => {
|
|
1329
|
+
return (jsxs("div", { className: "relative", children: [rowData.map((row, i, { length }) => (jsx(TableRow, { row: row, isFirstRow: i === 0, isLastRow: i + 1 === length, activeCardIndex: tableArrowScrollProps.activeCardIndex, isColoredFirstColumn: isColoredFirstColumn }, String(i)))), jsx(TableArrowScrollControl, { ...tableArrowScrollProps })] }));
|
|
1329
1330
|
});
|
|
1330
1331
|
|
|
1331
|
-
const ComparisonTableBody = JSX(({
|
|
1332
|
-
const router = context.useRouter();
|
|
1333
|
-
const { handlerDecorator } = context;
|
|
1332
|
+
const ComparisonTableBody = JSX(({ columns, rowHeaders, isShowAllRow, visibleRowLength, isColoredFirstColumn }) => {
|
|
1334
1333
|
const colHeaders = columns?.map(({ header }) => header || {});
|
|
1335
1334
|
const colData = columns?.map(({ data }) => data) || [];
|
|
1336
1335
|
const rowData = rowHeaders
|
|
@@ -1339,34 +1338,29 @@
|
|
|
1339
1338
|
data: colData.map((col) => col?.[i] || [{}]),
|
|
1340
1339
|
}))
|
|
1341
1340
|
.slice(0, isShowAllRow ? rowHeaders.length : visibleRowLength);
|
|
1342
|
-
const [activeCardIndex, setActiveCardIndex] = useState(0);
|
|
1343
1341
|
const tableArrowScrollProps = useTableArrowScrollControl({
|
|
1344
1342
|
columnsLength: colData.length,
|
|
1345
1343
|
colsLengthForScroll: COLS_LENGTH_FOR_SCROLL$1,
|
|
1346
|
-
activeCardIndex,
|
|
1347
|
-
setActiveCardIndex,
|
|
1348
1344
|
});
|
|
1349
|
-
const { isScrollAvailable } = tableArrowScrollProps;
|
|
1350
|
-
return (jsxs("div", { children: [jsxs("div", { role: "table", children: [colHeaders?.length ? (jsx(ComparisonTableColumnHeaders, { colHeaders: colHeaders, activeCardIndex: activeCardIndex
|
|
1345
|
+
const { activeCardIndex, isScrollAvailable } = tableArrowScrollProps;
|
|
1346
|
+
return (jsxs("div", { children: [jsxs("div", { role: "table", children: [colHeaders?.length ? (jsx(ComparisonTableColumnHeaders, { colHeaders: colHeaders, activeCardIndex: activeCardIndex })) : null, rowData?.length ? (jsx(ComparisonTableRows, { rowData: rowData, isColoredFirstColumn: isColoredFirstColumn, ...tableArrowScrollProps })) : null] }), isScrollAvailable ? (jsx("div", { className: "absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white" })) : null] }));
|
|
1351
1347
|
});
|
|
1352
1348
|
|
|
1353
|
-
const ComparisonTable = JSX(({ className = '',
|
|
1349
|
+
const ComparisonTable = JSX(({ className = '', title, rowHeaders, columns, visibleRowLength = 0, isColoredFirstColumn = false, ...rest }) => {
|
|
1354
1350
|
const [isShowAllRow, setIsShowAllRow] = useState(!visibleRowLength);
|
|
1355
|
-
const showToggle = () => setIsShowAllRow(!
|
|
1356
|
-
return (jsxs(BlockWrapper, {
|
|
1351
|
+
const showToggle = useCallback(() => setIsShowAllRow((_) => !_), []);
|
|
1352
|
+
return (jsxs(BlockWrapper, { className: `bg-white font-sans py-[50px] pl-[50px] overflow-hidden text-primary-text relative ${className}`, ...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
|
|
1357
1353
|
? renderShowMoreToggleButton({ isShowAllRow, onClick: showToggle })
|
|
1358
1354
|
: null] }));
|
|
1359
1355
|
});
|
|
1360
|
-
const renderShowMoreToggleButton = ({ isShowAllRow, onClick, }) => {
|
|
1361
|
-
return (jsx("div", { className: "pr-[50px]", 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-main-stroke 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 ? 'Показать все параметры' : 'Скрыть' }) })] }) }));
|
|
1362
|
-
};
|
|
1356
|
+
const renderShowMoreToggleButton = ({ isShowAllRow, onClick, }) => (jsx("div", { className: "pr-[50px]", 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-main-stroke 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 ? 'Показать все параметры' : 'Скрыть' }) })] }) }));
|
|
1363
1357
|
|
|
1364
1358
|
const contactsBlockStyleMap = {
|
|
1365
1359
|
primary: 'bg-white',
|
|
1366
1360
|
secondary: 'bg-primary-main text-white',
|
|
1367
1361
|
};
|
|
1368
|
-
const ContactsBlock = JSX(({ className = '', contacts,
|
|
1369
|
-
return (jsxs(BlockWrapper, {
|
|
1362
|
+
const ContactsBlock = JSX(({ className = '', contacts, info, version = 'secondary', ...rest }) => {
|
|
1363
|
+
return (jsxs(BlockWrapper, { className: `${contactsBlockStyleMap[version]} flex p-12 ${className}`, ...rest, children: [info ? renderInfo(info) : null, contacts ? renderContacts(contacts) : null] }));
|
|
1370
1364
|
});
|
|
1371
1365
|
const renderInfo = (info) => (jsx("div", { className: "flex grow basis-0 pr-11", children: info.map(({ title, description, button }, index) => (jsxs("div", { className: "grow basis-0 pr-11 last:pr-0", children: [jsx(Heading, { as: "h5", headingType: "h5", title: title, className: "pb-2.5" }), jsx(Description, { className: "text-l-light pb-6", description: description }), button ? jsx(Button, { ...button }) : null] }, String(index)))) }));
|
|
1372
1366
|
const renderContacts = (contacts) => (jsx("div", { className: "flex grow basis-0", children: contacts.map((contactsColumn, index) => renderContactsColumn({ contactsColumn, index })) }));
|
|
@@ -1381,15 +1375,9 @@
|
|
|
1381
1375
|
}
|
|
1382
1376
|
return null;
|
|
1383
1377
|
};
|
|
1384
|
-
const ErrorBlock = JSX(({
|
|
1385
|
-
const { useRouter, handlerDecorator } = context;
|
|
1386
|
-
const router = useRouter();
|
|
1387
|
-
return (jsxs("section", { className: `flex flex-col justify-center items-center mt-12 ${className}`, 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, ...useLink({ router, handlerDecorator }, button), children: button.text })) : null] }));
|
|
1388
|
-
});
|
|
1378
|
+
const ErrorBlock = JSX(({ className = '', title, subtitle, error, button }) => (jsxs("section", { className: `flex flex-col justify-center items-center mt-12 ${className}`, 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] })));
|
|
1389
1379
|
|
|
1390
|
-
const BaseTile = JSX(({ className = '', title = '', children, buttons, image })
|
|
1391
|
-
return (jsxs("div", { className: `font-sans flex flex-col grow h-full items-start ${className}`, children: [title, jsxs("div", { className: "flex grow w-full justify-between", children: [jsxs("div", { className: "flex flex-col justify-between w-full", children: [jsx("div", { className: "h-full", children: children }), buttons ? jsx("div", { className: "mt-auto pt-8", children: buttons }) : null] }), image] })] }));
|
|
1392
|
-
});
|
|
1380
|
+
const BaseTile = JSX(({ className = '', title = '', buttons, image, children }) => (jsxs("div", { className: `font-sans flex flex-col grow h-full items-start ${className}`, children: [title, jsxs("div", { className: "flex grow w-full justify-between", children: [jsxs("div", { className: "flex flex-col justify-between w-full", children: [jsx("div", { className: "h-full", children: children }), buttons ? jsx("div", { className: "mt-auto pt-8", children: buttons }) : null] }), image] })] })));
|
|
1393
1381
|
|
|
1394
1382
|
var Currency;
|
|
1395
1383
|
(function (Currency) {
|
|
@@ -1501,9 +1489,7 @@
|
|
|
1501
1489
|
return (jsxs("div", { className: "relative flex", children: [jsx(Input, { className: "shrink-0 text-l w-full appearance-none mr-[-90px]", placeholder: placeholder, type: "text", value: value, onChange: setValue }), ratesOptions.length ? (jsx(Select, { isBorder: false, onChange: (_) => setSelected(_.key), options: ratesOptions, value: selectedValue })) : null] }));
|
|
1502
1490
|
}
|
|
1503
1491
|
|
|
1504
|
-
const ExchangeCurrencyCalculator = JSX(({
|
|
1505
|
-
const { useRouter, handlerDecorator } = context;
|
|
1506
|
-
const router = useRouter();
|
|
1492
|
+
const ExchangeCurrencyCalculator = JSX(({ className = '', currencyRatesBuy, currencyRatesSell, button }) => {
|
|
1507
1493
|
const [calcState, setCalcState] = useState({
|
|
1508
1494
|
inputSell: '',
|
|
1509
1495
|
inputBuy: '',
|
|
@@ -1527,7 +1513,7 @@
|
|
|
1527
1513
|
setSelected: handleSelectBuy(calcState, handleSetCalcState, currencyRatesBuy),
|
|
1528
1514
|
value: calcState.inputBuy,
|
|
1529
1515
|
setValue: (value) => handleInputBuy(handleSetCalcState, currencyRatesBuy)(value, calcState.selectBuy, calcState.selectSell),
|
|
1530
|
-
}), button?.text ? (jsx(Button, { className: "py-4 mr-1", version: button?.version, ...
|
|
1516
|
+
}), button?.text ? (jsx(Button, { className: "py-4 mr-1", version: button?.version, ...button, children: button.text })) : null] }));
|
|
1531
1517
|
});
|
|
1532
1518
|
const handleSelectSell = (calcState, setCalcState, currencyRatesSell) => (value) => {
|
|
1533
1519
|
setCalcState({ selectSell: value });
|
|
@@ -1601,19 +1587,26 @@
|
|
|
1601
1587
|
}
|
|
1602
1588
|
};
|
|
1603
1589
|
|
|
1604
|
-
const ExchangeRateTile = JSX(({ className = '',
|
|
1590
|
+
const ExchangeRateTile = JSX(({ className = '', title = 'Курсы обмена валют', button, ...rest }) => {
|
|
1605
1591
|
const { exchangeRates } = useFetchExchangeRateData();
|
|
1606
1592
|
const currencyRates = getCurrencyRates(exchangeRates?.exchangeRate?.currencies);
|
|
1607
1593
|
const currencyRatesBuy = currencyRates.filter((_) => _.buyExchangeRate);
|
|
1608
1594
|
currencyRatesBuy.unshift({ currency: { currency: Currency.RUB } });
|
|
1609
1595
|
const currencyRatesSell = currencyRates.filter((_) => _.saleExchangeRate);
|
|
1610
1596
|
currencyRatesSell.push({ currency: { currency: Currency.RUB } });
|
|
1611
|
-
return (jsx(BlockWrapper, {
|
|
1597
|
+
return (jsx(BlockWrapper, { className: `bg-white text-primary-text font-sans p-9 box-border min-h-[320px] ${className}`, ...rest, children: jsx(BaseTile, { title: jsx(Heading, { headingType: "h4", title: title, className: "whitespace-pre-wrap text-h4 mb-5" }), children: jsxs("div", { className: "flex", children: [jsxs("div", { className: "mr-14 pt-4", children: [currencyRates ? (jsx(CurrencyTable, { className: "mb-[30px]", exchangeCurrencyItems: currencyRates })) : null, jsx(CurrentLocation, { address: exchangeRates?.address })] }), currencyRates.length && currencyRatesBuy.length && currencyRatesSell.length ? (jsx(ExchangeCurrencyCalculator, { className: "grow", currencyRatesBuy: currencyRatesBuy, currencyRatesSell: currencyRatesSell, button: button })) : null] }) }) }));
|
|
1612
1598
|
});
|
|
1613
1599
|
const getCurrencyRates = (currencies) => {
|
|
1614
1600
|
return currencies?.filter((_) => _?.currency?.id === 1 || _?.currency?.id === 2) || [];
|
|
1615
1601
|
};
|
|
1616
1602
|
|
|
1603
|
+
function useSWRResource(fileName, fallback = {}) {
|
|
1604
|
+
const { data } = useAsyncData(`/wcms-resources/${fileName}.json`, fetchJSONUnsafe, {
|
|
1605
|
+
fallback,
|
|
1606
|
+
});
|
|
1607
|
+
return data || {};
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1617
1610
|
const ICON_VERSION_MAP = {
|
|
1618
1611
|
'bg-white': 'color',
|
|
1619
1612
|
transparent: 'white',
|
|
@@ -1658,19 +1651,9 @@
|
|
|
1658
1651
|
}, children: jsx("div", { className: "text-s px-9 py-2.5", children: "\u041D\u0430\u0439\u0442\u0438" }) }))] }));
|
|
1659
1652
|
});
|
|
1660
1653
|
|
|
1661
|
-
const SearchBar = JSX((
|
|
1662
|
-
return jsx(SearchBarInner, { className: className });
|
|
1663
|
-
});
|
|
1654
|
+
const SearchBar = JSX((props) => jsx(SearchBarInner, { ...props }));
|
|
1664
1655
|
|
|
1665
|
-
const Contacts = JSX(({ className = '', items, hasButton,
|
|
1666
|
-
const router = context.useRouter();
|
|
1667
|
-
const { handlerDecorator } = context;
|
|
1668
|
-
return (jsxs("div", { className: className, children: [items?.length ? items.map(renderContact) : null, hasButton ? (jsx(Button, { version: "primary", className: "mb-6 w-full", ...useLink({ router, handlerDecorator }, {
|
|
1669
|
-
text: 'Обратная связь',
|
|
1670
|
-
href: '/',
|
|
1671
|
-
target: '_blank',
|
|
1672
|
-
}), ariaLabel: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C" })) : null] }));
|
|
1673
|
-
});
|
|
1656
|
+
const Contacts = JSX(({ className = '', items, hasButton }) => (jsxs("div", { className: className, children: [items?.length ? items.map(renderContact) : null, hasButton ? (jsx(Button, { version: "primary", className: "mb-6 w-full", href: "/", target: "_blank", ariaLabel: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C", text: "\u041E\u0431\u0440\u0430\u0442\u043D\u0430\u044F \u0441\u0432\u044F\u0437\u044C" })) : null] })));
|
|
1674
1657
|
const renderContact = (item, index) => {
|
|
1675
1658
|
const { type, text, description } = item;
|
|
1676
1659
|
return (jsxs("div", { className: "mb-4", children: [jsx("div", { children: renderText(type, text) }), jsx("div", { className: "mt-1 text-s-light text-secondary-text", children: description })] }, String(index)));
|
|
@@ -1687,12 +1670,14 @@
|
|
|
1687
1670
|
};
|
|
1688
1671
|
const formatTel = (s) => s.replaceAll(/\D/g, '');
|
|
1689
1672
|
|
|
1690
|
-
const HorizontalNavigationLink = JSX(({ className = '', index, text,
|
|
1673
|
+
const HorizontalNavigationLink = JSX(({ className = '', index, text, ...rest }) => {
|
|
1674
|
+
const link = useLink();
|
|
1675
|
+
const { href, target, onClick } = link(rest);
|
|
1676
|
+
return (jsx("a", { className: `text-secondary-text hover:text-primary-main inline-block no-underline ${className}`, href: href, target: target, onClick: onClick, children: text || `Документ ${index}` }));
|
|
1677
|
+
});
|
|
1691
1678
|
|
|
1692
|
-
const HorizontalNavigation = JSX(({
|
|
1693
|
-
|
|
1694
|
-
const { handlerDecorator } = context;
|
|
1695
|
-
return (jsx("div", { className: className, children: links?.length ? (jsx("div", { className: "flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider", children: links.map((_, i) => (jsx(HorizontalNavigationLink, { index: i, className: "text-l-light max-w-[292px]", ...useLink({ router, handlerDecorator }, _) }, String(i)))) })) : null }));
|
|
1679
|
+
const HorizontalNavigation = JSX(({ className = '', links }) => {
|
|
1680
|
+
return (jsx("div", { className: className, children: links?.length ? (jsx("div", { className: "flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider", children: links.map((_, i) => (jsx(HorizontalNavigationLink, { index: i, className: "text-l-light max-w-[292px]", ..._ }, String(i)))) })) : null }));
|
|
1696
1681
|
});
|
|
1697
1682
|
|
|
1698
1683
|
const cmp = (a) => (b) => a?.href === b?.href;
|
|
@@ -1700,25 +1685,21 @@
|
|
|
1700
1685
|
const subtract = (minuend, subtrahend) => (minuend || []).filter((_) => !subtrahend?.find(cmp(_)));
|
|
1701
1686
|
const mergeTopItems = (left, right) => substitute(left, right).concat(subtract(right, left));
|
|
1702
1687
|
|
|
1703
|
-
|
|
1704
|
-
const
|
|
1705
|
-
|
|
1706
|
-
}
|
|
1707
|
-
|
|
1708
|
-
const Sitemap = JSX(({ className = '', items, fallback, context }) => {
|
|
1709
|
-
const sitemap = useSitemap(fallback);
|
|
1688
|
+
const Sitemap = JSX(({ className = '', items, fallback }) => {
|
|
1689
|
+
const link = useLink();
|
|
1690
|
+
const sitemap = useSWRResource(projectSettings.SITEMAP || 'sitemap', fallback);
|
|
1710
1691
|
const mergedItems = mergeTopItems(sitemap.topItems, items);
|
|
1711
|
-
|
|
1712
|
-
router: context.useRouter(),
|
|
1713
|
-
handlerDecorator: context.handlerDecorator,
|
|
1714
|
-
};
|
|
1715
|
-
return (jsx("div", { className: `flex flex-grow items-start justify-between gap-[54px] xl:gap-5 ${className}`, children: mergedItems?.map((_, i) => renderColumn({ menuItem: _, index: i, ...linkParams })) }));
|
|
1692
|
+
return (jsx("div", { className: `flex flex-grow items-start justify-between gap-[54px] xl:gap-5 ${className}`, children: mergedItems?.map((_, i) => renderColumn(link(_), i)) }));
|
|
1716
1693
|
});
|
|
1717
|
-
const renderColumn = (
|
|
1718
|
-
const { text,
|
|
1719
|
-
return (jsxs("div", { className: "flex flex-col w-1/5 last:w-1/4 gap-3.5", children: [jsx("a", { className: "block leading-5 text-l text-primary-text hover:text-primary-main no-underline", href: href, target: target || '_self', children: text || `Раздел ${index}` }), items?.map((_, i) => (jsx(ColumnItem, { ...
|
|
1694
|
+
const renderColumn = (menuItem, index) => {
|
|
1695
|
+
const { text, items, href, target, onClick } = menuItem;
|
|
1696
|
+
return (jsxs("div", { className: "flex flex-col w-1/5 last:w-1/4 gap-3.5", children: [jsx("a", { className: "block leading-5 text-l text-primary-text hover:text-primary-main no-underline", href: href, target: target || '_self', onClick: onClick, children: text || `Раздел ${index}` }), items?.map((_, i) => (jsx(ColumnItem, { ..._, index: i }, String(i))))] }, String(index)));
|
|
1720
1697
|
};
|
|
1721
|
-
const ColumnItem = JSX(({ text,
|
|
1698
|
+
const ColumnItem = JSX(({ text, index, ...rest }) => {
|
|
1699
|
+
const link = useLink();
|
|
1700
|
+
const { href, target, onClick } = link(rest);
|
|
1701
|
+
return (jsx("a", { className: "block text-l-light text-secondary-text hover:text-primary-main no-underline", href: href, target: target || '_self', onClick: onClick, children: text || `Раздел ${index}` }));
|
|
1702
|
+
});
|
|
1722
1703
|
|
|
1723
1704
|
const ICONS_MAP = [
|
|
1724
1705
|
{
|
|
@@ -1747,7 +1728,9 @@
|
|
|
1747
1728
|
label: 'Google Play',
|
|
1748
1729
|
},
|
|
1749
1730
|
];
|
|
1750
|
-
const MediaButton = JSX(({
|
|
1731
|
+
const MediaButton = JSX(({ version = 'primary', ...rest }) => {
|
|
1732
|
+
const link = useLink();
|
|
1733
|
+
const { href, onClick } = link(rest);
|
|
1751
1734
|
const { icon, label } = ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
|
|
1752
1735
|
if (!icon) {
|
|
1753
1736
|
return null;
|
|
@@ -1756,27 +1739,24 @@
|
|
|
1756
1739
|
? 'bg-white hover:bg-secondary-hover'
|
|
1757
1740
|
: 'border-solid border-[1px] border-main-divider hover:border-transparent hover:bg-primary-main';
|
|
1758
1741
|
const isPrimary = version === 'primary';
|
|
1759
|
-
return (jsx("a", { className: `flex items-center justify-center rounded-md w-14 h-14 group box-border ${classes} ${isPrimary ? 'hover:text-black' : ''}`, href: href, "aria-label": label, target: "_blank", rel: "noopener noreferrer", children: icon ? (jsx(ImgInner, { image: getIconWithVersion(icon), imageClassName: "group-hover:text-white", width: "24", height: "24", asSVG: true })) : null }));
|
|
1760
|
-
});
|
|
1761
|
-
|
|
1762
|
-
const SocialMedia = JSX(({ className = '', media, version, context, children }) => {
|
|
1763
|
-
const router = context.useRouter();
|
|
1764
|
-
const { handlerDecorator } = context;
|
|
1765
|
-
return (jsxs("div", { className: "font-sans", children: [jsx("div", { className: `flex gap-2.5 ${className}`, children: media?.map((_, index) => (jsx(MediaButton, { version: version, ...useLink({ router, handlerDecorator }, _) }, String(index)))) }), jsx("span", { className: "text-s-light text-secondary-text", children: children })] }));
|
|
1742
|
+
return (jsx("a", { className: `flex items-center justify-center rounded-md w-14 h-14 group box-border ${classes} ${isPrimary ? 'hover:text-black' : ''}`, href: href, "aria-label": label, target: "_blank", rel: "noopener noreferrer", onClick: onClick, children: icon ? (jsx(ImgInner, { image: getIconWithVersion(icon), imageClassName: "group-hover:text-white", width: "24", height: "24", asSVG: true })) : null }));
|
|
1766
1743
|
});
|
|
1767
1744
|
|
|
1768
|
-
const
|
|
1745
|
+
const SocialMedia = JSX(({ className = '', media, version, children }) => (jsxs("div", { className: "font-sans", children: [jsx("div", { className: `flex gap-2.5 ${className}`, children: media?.map((_, index) => (jsx(MediaButton, { version: version, ..._ }, String(index)))) }), jsx("span", { className: "text-s-light text-secondary-text", children: children })] })));
|
|
1769
1746
|
|
|
1770
|
-
const
|
|
1771
|
-
const
|
|
1772
|
-
const {
|
|
1773
|
-
return (
|
|
1747
|
+
const TextInformationLink = JSX(({ className = '', index, ...rest }) => {
|
|
1748
|
+
const link = useLink();
|
|
1749
|
+
const { href, target, text, onClick } = link(rest);
|
|
1750
|
+
return (jsx("a", { className: `text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${className}`, href: href, target: target, onClick: onClick, children: text || `Документ ${index}` }));
|
|
1774
1751
|
});
|
|
1775
1752
|
|
|
1753
|
+
const TextInformation = JSX(({ className = '', links }) => (jsxs("div", { className: className, children: [jsx("div", { className: "pt-5", children: jsx("span", { className: "text-xs-light text-secondary-text", children: `\u00a9\u00A02000-${new Date().getFullYear()}\u00A0АО \u00ABРоссельхозбанк\u00BB Генеральная лицензия Банка России \u2116\u00A03349 от\u00A012.08.2015\u00A0г.` }) }), links?.length ? (jsx("div", { className: "flex justify-start items-start gap-5 pt-2.5", children: links.map((_, i) => (jsx(TextInformationLink, { index: i, ..._ }, String(i)))) })) : null] })));
|
|
1754
|
+
|
|
1776
1755
|
const LEFT_COL_WIDTH_FULL_HD = 'w-[204px]';
|
|
1777
|
-
const Footer = JSX(({ className,
|
|
1778
|
-
const fallback = page?.fallback;
|
|
1779
|
-
|
|
1756
|
+
const Footer = JSX(({ className, ...rest }) => {
|
|
1757
|
+
const fallback = rest.page?.fallback;
|
|
1758
|
+
const { documents, relatedEnterprises, contacts, socialMedia, mobileApps, topItems } = useSWRResource(projectSettings.FOOTER || 'footer', fallback);
|
|
1759
|
+
return (jsxs(BlockWrapper, { tag: "footer", className: `p-9 bg-white font-sans ${className || ''}`, ...rest, children: [jsxs("div", { className: "flex items-stretch gap-[54px] pb-[30px] xl:gap-8", children: [jsx(Logo, { className: LEFT_COL_WIDTH_FULL_HD }), jsx(SearchBar, { 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: "pt-[3px]", items: topItems, fallback: fallback })] }), jsx(HorizontalNavigation, { className: "mt-[98px]", links: relatedEnterprises }), jsx(TextInformation, { links: documents })] }));
|
|
1780
1760
|
});
|
|
1781
1761
|
|
|
1782
1762
|
const galleryLengthForScrollMap = {
|
|
@@ -1838,15 +1818,15 @@
|
|
|
1838
1818
|
const renderAdditionalDescription$1 = (additionalDescription) => additionalDescription ? (jsx("div", { className: "text-m-light text-secondary-text mt-auto", children: additionalDescription })) : null;
|
|
1839
1819
|
const renderItems$1 = (items, isDotted, version = 'primary') => (jsx(List, { className: `max-w-[308px] mt-2 text-s ${version === 'primary' ? '!text-secondary-text' : ''}`, itemClassName: "text-left", items: items.filter((item) => item?.text).map((item) => item.text), isDotted: isDotted, version: version }));
|
|
1840
1820
|
|
|
1841
|
-
const GalleryContainer = JSX(({
|
|
1842
|
-
return (jsxs("div", { children: [jsx(Headline, {
|
|
1821
|
+
const GalleryContainer = JSX(({ headlineVersion = 'M', cards = [], version = 'normal', activeCardIndex, ...rest }) => {
|
|
1822
|
+
return (jsxs("div", { children: [jsx(Headline, { ...rest, className: "!p-0", headlineVersion: headlineVersion, align: "center" }), jsx("div", { className: `flex mt-8 ${cards?.length <= galleryLengthForScrollMap[version] ? 'justify-center' : ''} duration-1000`, style: { transform: `translateX(-${activeCardIndex * cardWidthMap[version]}px)` }, role: "list", children: cards?.map((card, i) => renderCard({ card, version }, i)) })] }));
|
|
1843
1823
|
});
|
|
1844
1824
|
function renderCard({ card, version }, i) {
|
|
1845
1825
|
return (jsx("section", { className: `box-border border-solid border border-main-stroke p-6 mx-2 flex flex-col justify-between
|
|
1846
1826
|
items-stretch ${cardStyleMap[version]} ${VersionStyleMap[card.version ?? 'primary']} w-full col-span-4`, role: "listitem", children: jsx(GalleryCardInner, { ...card }) }, String(i)));
|
|
1847
1827
|
}
|
|
1848
1828
|
|
|
1849
|
-
const GalleryInner = JSX(({
|
|
1829
|
+
const GalleryInner = JSX(({ cards = [], className = '', version = 'normal', button, ...rest }) => {
|
|
1850
1830
|
const [activeCardIndex, setActiveCardIndex] = useState(0);
|
|
1851
1831
|
const handleNextClick = () => setActiveCardIndex(activeCardIndex + 1);
|
|
1852
1832
|
const handlePrevClick = () => setActiveCardIndex(activeCardIndex - 1);
|
|
@@ -1854,7 +1834,7 @@
|
|
|
1854
1834
|
const showNextButton = isGalleryScrollAvailable &&
|
|
1855
1835
|
cards?.length - activeCardIndex > galleryLengthForScrollMap[version];
|
|
1856
1836
|
const showPrevButton = isGalleryScrollAvailable && activeCardIndex > 0;
|
|
1857
|
-
return (jsxs(BlockWrapper, {
|
|
1837
|
+
return (jsxs(BlockWrapper, { className: `relative font-sans text-primary-text bg-white p-[42px] overflow-hidden flex flex-col ${className}`, ...rest, children: [jsx(GalleryContainer, { cards: cards, version: version, activeCardIndex: activeCardIndex, ...rest }), renderArrows({
|
|
1858
1838
|
handler: [handlePrevClick, handleNextClick],
|
|
1859
1839
|
isShown: [showPrevButton, showNextButton],
|
|
1860
1840
|
btnClass: ['left-8', 'right-8'],
|
|
@@ -1864,9 +1844,7 @@
|
|
|
1864
1844
|
|
|
1865
1845
|
const Gallery = JSX((props) => jsx(GalleryInner, { ...props, version: "normal" }));
|
|
1866
1846
|
|
|
1867
|
-
const GracePeriod = JSX(({
|
|
1868
|
-
return (jsxs(BlockWrapper, { className: `font-sans bg-white p-[50px] ${className}`, context: context, ...rest, children: [jsx(Headline, { context: context, className: "!p-0 mb-4", title: title, description: description, headlineVersion: "M", align: "center" }), calendar ? renderCalendar(calendar) : null] }));
|
|
1869
|
-
});
|
|
1847
|
+
const GracePeriod = JSX(({ className = '', title, description, calendar, ...rest }) => (jsxs(BlockWrapper, { className: `font-sans bg-white p-[50px] ${className}`, ...rest, children: [jsx(Headline, { className: "!p-0 mb-4", title: title, description: description, headlineVersion: "M", align: "center", ...rest }), calendar ? renderCalendar(calendar) : null] })));
|
|
1870
1848
|
const renderCalendar = (calendar) => {
|
|
1871
1849
|
const colCount = calendar.reduce((accumulator, currentValue) => currentValue?.month?.length ? accumulator + currentValue.month.length : accumulator, 0) || 1;
|
|
1872
1850
|
const colSize = 100 / colCount;
|
|
@@ -1885,7 +1863,7 @@
|
|
|
1885
1863
|
const checkIsHrefSameOrigin = (href, router) => getOrigin(href) === getOrigin(router.href);
|
|
1886
1864
|
|
|
1887
1865
|
const isHrefActive = (href, router, cmp = (targetHref, baseHref) => baseHref.startsWith(targetHref)) => {
|
|
1888
|
-
return cmp(withoutQuery(href),
|
|
1866
|
+
return cmp(withoutQuery(href), withoutQuery(isURL(href) ? router.href : router.pathname));
|
|
1889
1867
|
};
|
|
1890
1868
|
|
|
1891
1869
|
const isSubItemActive = (router) => (subItem) => isHrefActive(subItem.href, router);
|
|
@@ -1896,7 +1874,11 @@
|
|
|
1896
1874
|
|
|
1897
1875
|
const TEXT_CLASSES$2 = 'font-sans text-s-light';
|
|
1898
1876
|
const LINK_CLASSES$1 = 'inline-block border border-solid bg-transparent text-center no-underline';
|
|
1899
|
-
const TopItem = JSX(({ className = '',
|
|
1877
|
+
const TopItem = JSX(({ className = '', active, flat, ariaLabel, bgColor = 'bg-white', children, ...rest }) => {
|
|
1878
|
+
const link = useLink();
|
|
1879
|
+
const { href, target, text, onClick } = link(rest);
|
|
1880
|
+
return (jsx("a", { className: `${getLinkClasses(bgColor, active, flat)} ${className}`, href: href, target: target, onClick: onClick, rel: "noopener noreferrer", "aria-label": ariaLabel, children: jsx("span", { className: getTextClasses$1(bgColor, active, flat), children: text || children }) }));
|
|
1881
|
+
});
|
|
1900
1882
|
const getLinkClasses = (bgColor, active = false, flat = false) => {
|
|
1901
1883
|
let classes = 'border-transparent';
|
|
1902
1884
|
if (active) {
|
|
@@ -1960,20 +1942,23 @@
|
|
|
1960
1942
|
'bg-white': 'bg-primary-text',
|
|
1961
1943
|
transparent: 'bg-white',
|
|
1962
1944
|
};
|
|
1963
|
-
const DropdownMenu = JSX(({
|
|
1964
|
-
const
|
|
1965
|
-
const router = useRouter();
|
|
1945
|
+
const DropdownMenu = JSX(({ className, items, activeItem, bgColor }) => {
|
|
1946
|
+
const link = useLink();
|
|
1966
1947
|
const [visible, setVisible] = useState(false);
|
|
1967
1948
|
const handleToggle = useCallback(() => setVisible((_) => !_), []);
|
|
1968
1949
|
const handleClickOutside = useCallback(() => setVisible(false), []);
|
|
1969
1950
|
const ref = useOutsideClick(handleClickOutside);
|
|
1970
|
-
return (jsxs("div", { className: `${visible ? 'bg-white rounded-md shadow-blue-gray/24' : ''} ${className || ''}`, ref: ref, children: [jsx("button", { className: "flex justify-between items-center cursor-pointer h-6 ml-6", "aria-label": `${visible ? 'Скрыть другие разделы' : 'Показать другие разделы'}`, onClick: handleToggle, children: Array(3).fill(bgColor).map(renderDot) }), jsx("div", { className: `flex flex-col rounded-md bg-white p-6 pb-2 ${visible ? '' : 'hidden'}`, "aria-hidden": !visible, children: items?.map((item, i) => (jsx("a", { className: `text-l-light pb-4 hover:text-primary-main ${item === activeItem ? 'text-primary-main' : ''}`, ...
|
|
1951
|
+
return (jsxs("div", { className: `${visible ? 'bg-white rounded-md shadow-blue-gray/24' : ''} ${className || ''}`, ref: ref, children: [jsx("button", { className: "flex justify-between items-center cursor-pointer h-6 ml-6", "aria-label": `${visible ? 'Скрыть другие разделы' : 'Показать другие разделы'}`, onClick: handleToggle, children: Array(3).fill(bgColor).map(renderDot) }), jsx("div", { className: `flex flex-col rounded-md bg-white p-6 pb-2 ${visible ? '' : 'hidden'}`, "aria-hidden": !visible, children: items?.map((item, i) => (jsx("a", { className: `text-l-light pb-4 hover:text-primary-main ${item === activeItem ? 'text-primary-main' : ''}`, ...link(item), children: item.text }, item.href || String(i)))) })] }));
|
|
1971
1952
|
});
|
|
1972
1953
|
const renderDot = (bgColor, i) => (jsx("div", { className: `w-[3px] h-[3px] rounded mr-1 ${DOT_BG_COLORS_MAP[bgColor]}` }, String(i)));
|
|
1973
1954
|
|
|
1974
1955
|
const TEXT_CLASSES$1 = 'font-sans text-l-light';
|
|
1975
1956
|
const BORDER_CLASSES = 'absolute left-0 -bottom-3 w-full h-[2px]';
|
|
1976
|
-
const HeaderItem = JSX(({ className = '',
|
|
1957
|
+
const HeaderItem = JSX(({ className = '', active, bgColor = 'bg-white', dataItemName, children, ...rest }) => {
|
|
1958
|
+
const link = useLink();
|
|
1959
|
+
const { href, target, text, onClick } = link(rest);
|
|
1960
|
+
return (jsxs("a", { className: `relative inline-block bg-transparent text-center no-underline ${className}`, href: href, target: target, "data-item-name": dataItemName, onClick: onClick, children: [jsx("span", { className: getTextClasses(bgColor, active), children: text || children }), active ? jsx("div", { className: getBorderClasses(bgColor, active) }) : null] }));
|
|
1961
|
+
});
|
|
1977
1962
|
const getTextClasses = (bgColor, active = false) => {
|
|
1978
1963
|
let classes = 'text-white';
|
|
1979
1964
|
if (bgColor === 'bg-white') {
|
|
@@ -1988,9 +1973,7 @@
|
|
|
1988
1973
|
return `${bgColor === 'bg-white' ? 'bg-primary-main' : bgColor} ${BORDER_CLASSES}`;
|
|
1989
1974
|
};
|
|
1990
1975
|
|
|
1991
|
-
const HeaderSubMenuItem = JSX(({
|
|
1992
|
-
const { handlerDecorator } = context;
|
|
1993
|
-
const router = context.useRouter();
|
|
1976
|
+
const HeaderSubMenuItem = JSX(({ className, active, bgColor, observerOptions, onVisibilityChange, children, ...linkProps }) => {
|
|
1994
1977
|
const observerCallback = useCallback((entries) => {
|
|
1995
1978
|
if (!entries.length || !onVisibilityChange) {
|
|
1996
1979
|
return;
|
|
@@ -2000,11 +1983,11 @@
|
|
|
2000
1983
|
onVisibilityChange(entry.isIntersecting);
|
|
2001
1984
|
}, [onVisibilityChange]);
|
|
2002
1985
|
const ref = useIntersectionObserver(observerCallback, observerOptions);
|
|
2003
|
-
return (jsx("span", { ref: ref, children: jsx(HeaderItem, { className: className, active: active, bgColor: bgColor, ...
|
|
1986
|
+
return (jsx("span", { ref: ref, children: jsx(HeaderItem, { className: className, active: active, bgColor: bgColor, ...linkProps, children: children }) }));
|
|
2004
1987
|
});
|
|
2005
1988
|
|
|
2006
|
-
const HeaderSubMenu = JSX(({
|
|
2007
|
-
const router =
|
|
1989
|
+
const HeaderSubMenu = JSX(({ subItems = [], bgColor }) => {
|
|
1990
|
+
const router = useRouter();
|
|
2008
1991
|
const activeSubItem = findActiveSubItem(router)(subItems);
|
|
2009
1992
|
const [visibleItemsCount, setVisibleItemsCount] = useState(subItems.length);
|
|
2010
1993
|
const dropDownMenuItems = subItems.slice(visibleItemsCount);
|
|
@@ -2015,7 +1998,7 @@
|
|
|
2015
1998
|
? handleIntersectionActivation(index)
|
|
2016
1999
|
: handleIntersectionDeactivation(index));
|
|
2017
2000
|
}), [subItems]);
|
|
2018
|
-
return (jsxs("nav", { className: "relative mt-6", children: [jsx("div", { ref: subItemsListRef, className: "overflow-hidden whitespace-nowrap mr-52 pb-3", children: subItems.map((_, i) => (jsx(HeaderSubMenuItem, {
|
|
2001
|
+
return (jsxs("nav", { className: "relative mt-6", children: [jsx("div", { ref: subItemsListRef, className: "overflow-hidden whitespace-nowrap mr-52 pb-3", children: subItems.map((_, i) => (jsx(HeaderSubMenuItem, { className: `mr-8 ${visibleItemsCount - 1 < i ? 'invisible' : ''}`, active: _ === activeSubItem, bgColor: bgColor, observerOptions: observerOptions, onVisibilityChange: subItemsVisibilityHandlers[i], ..._ }, String(i)))) }), dropDownMenuItems.length ? (jsx(DropdownMenu, { className: "absolute w-52 -top-4 right-0 pt-4 z-40", items: dropDownMenuItems, activeItem: activeSubItem, bgColor: bgColor })) : null] }));
|
|
2019
2002
|
});
|
|
2020
2003
|
const handleIntersectionActivation = (index) => (prev) => Math.max(prev, index + 1);
|
|
2021
2004
|
const handleIntersectionDeactivation = (index) => (prev) => Math.min(prev, index);
|
|
@@ -2024,14 +2007,12 @@
|
|
|
2024
2007
|
'bg-white': 'bg-main-divider',
|
|
2025
2008
|
transparent: 'bg-main-divider opacity-30',
|
|
2026
2009
|
};
|
|
2027
|
-
const Header = JSX(({ bgColor = 'bg-white', className = '',
|
|
2028
|
-
const router =
|
|
2029
|
-
const
|
|
2030
|
-
const { handlerDecorator } = context;
|
|
2031
|
-
const { topItems } = useSitemap(fallback);
|
|
2010
|
+
const Header = JSX(({ bgColor = 'bg-white', className = '', defaultLocation = 'Москва', logo, showSubMenu = true, ...rest }) => {
|
|
2011
|
+
const router = useRouter();
|
|
2012
|
+
const { topItems } = useSWRResource(projectSettings.SITEMAP || 'sitemap', rest.page?.fallback);
|
|
2032
2013
|
const activeTopItem = showSubMenu ? getActiveItem(topItems, router) : null;
|
|
2033
|
-
const topMenu = topItems?.map((_, i) => (jsx(TopItem, { active: _ === activeTopItem,
|
|
2034
|
-
return (jsx(BlockWrapper, { tag: "header",
|
|
2014
|
+
const topMenu = topItems?.map((_, i) => (jsx(TopItem, { active: _ === activeTopItem, "aria-label": _.text, bgColor: bgColor, ..._ }, String(i))));
|
|
2015
|
+
return (jsx(BlockWrapper, { tag: "header", className: `pt-6 px-20 ${bgColor} ${className} ${showSubMenu && activeTopItem?.items?.length ? 'pb-4' : 'pb-5'}`, ...rest, children: jsxs("div", { className: "container", children: [jsxs("div", { className: "flex items-center", children: [jsx(Logo, { className: "mr-8", bgColor: bgColor, logo: logo }), topMenu, jsx(HeaderSecondaryMenu, { className: "ml-auto", defaultLocation: defaultLocation, bgColor: bgColor })] }), jsx("div", { className: `mt-6 h-[1px] ${BORDER_COLORS[bgColor]}` }), showSubMenu && activeTopItem?.items?.length ? (jsx(HeaderSubMenu, { subItems: activeTopItem.items, bgColor: bgColor })) : null] }) }));
|
|
2035
2016
|
});
|
|
2036
2017
|
const getActiveItem = (topItems, router) => {
|
|
2037
2018
|
const [firstPortal] = topItems || [];
|
|
@@ -2089,24 +2070,22 @@
|
|
|
2089
2070
|
return isActive ? (jsx(ImgInner, { className: `h-6 w-6 min-w-6 min-h-6 absolute right-4 top-4`, image: "DoneIcon", width: "24", height: "24" })) : null;
|
|
2090
2071
|
}
|
|
2091
2072
|
|
|
2092
|
-
const InsuranceAmountBlock = JSX(({ className = '',
|
|
2073
|
+
const InsuranceAmountBlock = JSX(({ className = '', title, insuranceTabs = [], button, ...rest }) => {
|
|
2093
2074
|
const [activeSlideIndex, setActiveSlideIndex] = useState(0);
|
|
2094
|
-
return (jsxs(BlockWrapper, {
|
|
2075
|
+
return (jsxs(BlockWrapper, { className: `box-border py-[50px] overflow-hidden relative font-sans w-100 bg-white ${className}`, ...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({
|
|
2095
2076
|
title: item?.title,
|
|
2096
2077
|
i,
|
|
2097
2078
|
activeSlideIndex,
|
|
2098
2079
|
onClick: () => setActiveSlideIndex(i),
|
|
2099
2080
|
})) })) : null, jsx("div", { className: "flex", style: { transform: `translateX(-${activeSlideIndex}00%)` }, role: "list", children: renderInsuranceGalleries({
|
|
2100
|
-
context,
|
|
2101
|
-
className,
|
|
2102
2081
|
insuranceTabs,
|
|
2103
2082
|
button,
|
|
2104
2083
|
}) })] }));
|
|
2105
2084
|
});
|
|
2106
|
-
const renderInsuranceGalleries = ({ insuranceTabs, button
|
|
2085
|
+
const renderInsuranceGalleries = ({ insuranceTabs, button }) => {
|
|
2107
2086
|
const insuranceGalleries = insuranceTabs?.map((_) => _.cards);
|
|
2108
2087
|
return insuranceGalleries?.length
|
|
2109
|
-
? insuranceGalleries.map((cards, i) => (jsx(InsuranceAmountBlockInner, {
|
|
2088
|
+
? insuranceGalleries.map((cards, i) => (jsx(InsuranceAmountBlockInner, { button: button, cards: cards }, String(i))))
|
|
2110
2089
|
: null;
|
|
2111
2090
|
};
|
|
2112
2091
|
function renderNavButton$1({ title, i, activeSlideIndex, onClick }) {
|
|
@@ -2135,12 +2114,12 @@
|
|
|
2135
2114
|
XL: 'h-[204px]',
|
|
2136
2115
|
};
|
|
2137
2116
|
const InvestmentInfo = JSX((props) => {
|
|
2138
|
-
const {
|
|
2117
|
+
const { className = '', items, isDotted, investmentZeroColumn, investmentColumns, ...rest } = props;
|
|
2139
2118
|
const colums = investmentColumns ? [...investmentColumns] : [];
|
|
2140
2119
|
if (investmentZeroColumn) {
|
|
2141
2120
|
colums.unshift(investmentZeroColumn);
|
|
2142
2121
|
}
|
|
2143
|
-
return (jsx(BlockWrapper, { className: `font-sans bg-white px-9 py-12 ${className}`,
|
|
2122
|
+
return (jsx(BlockWrapper, { className: `font-sans bg-white px-9 py-12 ${className}`, ...rest, children: jsxs("div", { className: "container text-m-light", children: [colums?.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-main-stroke" }))(colums.map(renderInvestmentColumn)), jsx("div", { className: "absolute right-[30px] w-px h-4 bg-main-stroke" })] }), jsx("div", { className: "border-t border-main-stroke -mt-2 ml-9 mr-8" }), jsx("div", { className: "flex justify-between text-primary-text mt-3 -mx-10", children: colums.map(renderInvestmentColumnTitle) })] })) : null, items?.length ? (jsx(List, { className: "mt-9 text-l-light max-w-[657px]", items: items, itemClassName: "mb-[7px]", isDotted: isDotted })) : null] }) }));
|
|
2144
2123
|
});
|
|
2145
2124
|
const renderInvestmentColumn = (column, i, arr) => {
|
|
2146
2125
|
const isSecondColumn = i === 1;
|
|
@@ -2191,9 +2170,7 @@
|
|
|
2191
2170
|
double: 'flex gap-x-5 gap-y-[26px] flex-wrap',
|
|
2192
2171
|
single: 'flex gap-3.5 flex-col',
|
|
2193
2172
|
};
|
|
2194
|
-
const LinkDocs = JSX(({
|
|
2195
|
-
return (jsxs(BlockWrapper, { className: `font-sans text-primary-text p-[50px] bg-white ${className}`, context: context, ...rest, children: [jsx(Headline, { className: "!p-0", title: title, description: description, context: context, align: align, headlineVersion: "M", as: "h2" }), jsx(LinkDocsList, { className: `mt-8 ${linkColumnsModeStyleMap[columnsMode]}`, columnsMode: columnsMode, documents: documents, icon: icon })] }));
|
|
2196
|
-
});
|
|
2173
|
+
const LinkDocs = JSX(({ className = '', title, description, align = 'center', documents, icon = { icon: 'DocIcon' }, columnsMode = 'double', ...rest }) => (jsxs(BlockWrapper, { className: `font-sans text-primary-text p-[50px] bg-white ${className}`, ...rest, children: [jsx(Headline, { className: "!p-0", title: title, description: description, align: align, headlineVersion: "M", as: "h2", ...rest }), jsx(LinkDocsList, { className: `mt-8 ${linkColumnsModeStyleMap[columnsMode]}`, columnsMode: columnsMode, documents: documents, icon: icon })] })));
|
|
2197
2174
|
|
|
2198
2175
|
const MiniGallery = JSX((props) => (jsx(GalleryInner, { ...props, version: "mini" })));
|
|
2199
2176
|
|
|
@@ -2216,15 +2193,15 @@
|
|
|
2216
2193
|
}
|
|
2217
2194
|
}
|
|
2218
2195
|
|
|
2219
|
-
const MobileAppTile = JSX(({ className = '',
|
|
2196
|
+
const MobileAppTile = JSX(({ className = '', title = 'Мобильное приложение', qr, buttons, version = 'primary', items, image, headingType = 'h4', alignTitle = 'left', description, ...rest }) => {
|
|
2220
2197
|
const textColorClass = version === 'primary' ? 'text-primary-text' : '';
|
|
2221
2198
|
const containerStyle = version === 'secondary' ? 'p-3.5 min-w-[120px]' : 'min-w-[92px]';
|
|
2222
2199
|
const buttonsWithClass = buttons?.map((_) => ({ ..._, className: 'min-w-[168px]' }));
|
|
2223
|
-
return (jsxs(BlockWrapper, {
|
|
2200
|
+
return (jsxs(BlockWrapper, { className: `flex justify-between font-sans p-9 box-border relative min-h-[320px]
|
|
2224
2201
|
${getTileMinHeight(className)}
|
|
2225
2202
|
${VersionStyleMap[version]}
|
|
2226
|
-
${className}`, ...rest, children: [jsxs(BaseTile, {
|
|
2227
|
-
${textColorClass} ${AlignText[alignTitle]}` })) : null, buttons: buttons?.length ? (jsx(ButtonSection, {
|
|
2203
|
+
${className}`, ...rest, children: [jsxs(BaseTile, { className: "z-10", title: title ? (jsx(Heading, { headingType: headingType, as: "h3", title: title, className: `whitespace-pre-wrap max-w-[509px] mb-6
|
|
2204
|
+
${textColorClass} ${AlignText[alignTitle]}` })) : null, buttons: buttons?.length ? (jsx(ButtonSection, { buttons: buttonsWithClass, className: "flex gap-4", ...rest })) : null, children: [renderDescription$1(description), jsxs("div", { className: "flex flex-1 items-center", 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(version, items)] })] }), image?.src ? (jsx("div", { className: "absolute right-0 bottom-0", children: jsx(ImgInner, { image: image }) })) : null] }));
|
|
2228
2205
|
});
|
|
2229
2206
|
const renderList$1 = (version, items) => {
|
|
2230
2207
|
return items?.length ? (jsx(List, { items: items, itemClassName: "text-l-light mb-2 last:mb-0", version: version })) : (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" }));
|
|
@@ -2629,12 +2606,10 @@
|
|
|
2629
2606
|
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", asSVG: true, 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) })] })] }));
|
|
2630
2607
|
});
|
|
2631
2608
|
|
|
2632
|
-
const OfficeServicesBlock = JSX(({ className = '',
|
|
2633
|
-
return (jsxs(BlockWrapper, { context: context, id: anchor, className: `font-sans bg-white p-8 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] }));
|
|
2634
|
-
});
|
|
2609
|
+
const OfficeServicesBlock = JSX(({ className = '', title, servicesList, ...rest }) => (jsxs(BlockWrapper, { className: `font-sans bg-white p-8 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] })));
|
|
2635
2610
|
const renderListItems = (itemList, i) => (jsxs("li", { className: "flex mb-5 last:mb-0 list-none", children: [itemList.icon ? (jsx(ImgInner, { className: "mr-3 min-w-6 min-h-6 w-6 h-6", width: "24", height: "24", asSVG: true, image: getIconWithVersion(itemList.icon) })) : null, itemList.label ? jsx("span", { className: "text-l-light", children: itemList.label }) : null] }, `list_item_${String(i)}`));
|
|
2636
2611
|
|
|
2637
|
-
const OtherProducts = JSX(({
|
|
2612
|
+
const OtherProducts = JSX(({ className = '', children, ...rest }) => (jsx(BlockWrapper, { className: `font-sans text-primary-text ${className}`, ...rest, children: children })));
|
|
2638
2613
|
OtherProducts.childrenTypes = ['OtherProductsItem'];
|
|
2639
2614
|
|
|
2640
2615
|
function getParentBlockDef(ancestors, type) {
|
|
@@ -2701,9 +2676,7 @@
|
|
|
2701
2676
|
return `w-[50px] h-[50px] min-w-[50px] rounded-full p-2.5 box-border flex items-center justify-center ${bgColorStyle}`;
|
|
2702
2677
|
}
|
|
2703
2678
|
|
|
2704
|
-
const PictureText = JSX(({ className = '',
|
|
2705
|
-
return (jsxs(BlockWrapper, { className: `relative font-sans py-12 px-24 ${VersionStyleMap[version]} ${className}`, context: context, ...rest, children: [jsx(Headline, { context: context, className: "!p-0", title: title, description: description, headlineVersion: "M", bgColorHeadline: version, align: "center" }), jsxs("div", { className: 'flex justify-center gap-[122px] mt-[30px]', children: [image?.src ? jsx(ImgInner, { className: directionRight ? 'order-2' : '', image: image }) : null, jsxs("div", { className: "w-[558px] m-auto", children: [benefits?.length ? (jsx("div", { className: "flex flex-col gap-4", children: benefits.map(renderBenefit$2(version)) })) : null, renderInsuranceSumMonth(Number(sum), Number(monthLimit))] })] })] }));
|
|
2706
|
-
});
|
|
2679
|
+
const PictureText = JSX(({ className = '', title, description, image, benefits, version = 'primary', sum, monthLimit, directionRight = false, ...rest }) => (jsxs(BlockWrapper, { className: `relative font-sans py-12 px-24 ${VersionStyleMap[version]} ${className}`, ...rest, children: [jsx(Headline, { className: "!p-0", title: title, description: description, headlineVersion: "M", bgColorHeadline: version, align: "center", ...rest }), jsxs("div", { className: 'flex justify-center gap-[122px] mt-[30px]', children: [image?.src ? jsx(ImgInner, { className: directionRight ? 'order-2' : '', image: image }) : null, jsxs("div", { className: "w-[558px] m-auto", children: [benefits?.length ? (jsx("div", { className: "flex flex-col gap-4", children: benefits.map(renderBenefit$2(version)) })) : null, renderInsuranceSumMonth(Number(sum), Number(monthLimit))] })] })] })));
|
|
2707
2680
|
const renderBenefit$2 = (version) => (benefit, i) => (jsx(BenefitItem, { icon: benefit.icon, label: benefit.label, description: benefit.description, version: version }, String(i)));
|
|
2708
2681
|
function renderInsuranceSumMonth(sum, monthLimit) {
|
|
2709
2682
|
return sum || monthLimit ? (jsxs("div", { className: "bg-main-divider rounded-md flex mt-7 gap-6 px-5 py-4", children: [Number(sum) > 0 ? renderValueBlock('Страховая сумма:', sum, Boolean(monthLimit)) : null, Number(monthLimit) > 0
|
|
@@ -2742,8 +2715,8 @@
|
|
|
2742
2715
|
}
|
|
2743
2716
|
|
|
2744
2717
|
const GOLDEN_RATIO = 1.618;
|
|
2745
|
-
const Placeholder = JSX(({ className,
|
|
2746
|
-
return (jsxs(BlockWrapper, {
|
|
2718
|
+
const Placeholder = JSX(({ className, title, description = 'Блок в разработке...', ...rest }) => {
|
|
2719
|
+
return (jsxs(BlockWrapper, { className: `bg-white text-primary-text font-sans 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), ...rest }), jsx("figure", { className: "m-0 min-w-[80%]", children: renderShimmer() })] }));
|
|
2747
2720
|
});
|
|
2748
2721
|
const renderShimmer = (size = 3) => goldenSequence(100, size)
|
|
2749
2722
|
.map((_) => Math.floor(_))
|
|
@@ -2751,24 +2724,26 @@
|
|
|
2751
2724
|
const renderShimmerItem = (width, index) => (jsx("div", { style: { width: `${width || 100}%` }, className: "h-4 mt-2 bg-secondary-light" }, String(index)));
|
|
2752
2725
|
const goldenSequence = (first, size) => [first].concat(size > 0 ? goldenSequence(first / GOLDEN_RATIO, size - 1) : []);
|
|
2753
2726
|
|
|
2754
|
-
const Breadcrumb = JSX(({
|
|
2727
|
+
const Breadcrumb = JSX(({ className = '', children, ...props }) => {
|
|
2728
|
+
const link = useLink();
|
|
2729
|
+
const { text, href, target, onClick } = link(props);
|
|
2730
|
+
return href ? (jsx("a", { className: `no-underline ${className}`, href: href, target: target, onClick: onClick, children: jsx("span", { className: className, children: text || children }) })) : (jsx("span", { className: className, children: text || children }));
|
|
2731
|
+
});
|
|
2755
2732
|
|
|
2756
2733
|
const renderBenefit$1 = (version = 'primary', benefitsVersion = 'normal') => ({ icon, label, description }, i) => (jsx(BenefitItem, { icon: icon, label: label, description: description, version: version, benefitsVersion: benefitsVersion }, String(i)));
|
|
2757
2734
|
|
|
2758
|
-
const ProductBlockInner = JSX(({ className = '',
|
|
2735
|
+
const ProductBlockInner = JSX(({ className = '', title, headlineVersion = 'L', description, benefits, benefitsVersion, buttons, image, items, version = 'primary', isDotted = true, textBlockClassName = '', ...rest }) => {
|
|
2759
2736
|
const benefitsCount = benefits?.filter((_) => _.label)?.length;
|
|
2760
2737
|
const benefitsContainerStyles = getBenefitsContainerStyles(benefitsCount);
|
|
2761
|
-
return (jsxs("div", { className: `flex grow justify-between items-stretch h-full ${className}`, children: [jsxs("div", { className: `flex flex-col ${textBlockClassName}`, children: [jsx(Headline, {
|
|
2738
|
+
return (jsxs("div", { className: `flex grow justify-between items-stretch h-full ${className}`, children: [jsxs("div", { className: `flex flex-col ${textBlockClassName}`, children: [jsx(Headline, { title: title, description: description, className: `!p-0 max-w-[600px]`, bgColorHeadline: version, headlineVersion: headlineVersion, align: "left", ...rest }), jsxs(BaseTile, { buttons: buttons?.length ? (jsx(ButtonSection, { buttons: buttons, className: "flex gap-4", ...rest })) : null, children: [benefitsCount ? (jsx("div", { className: benefitsContainerStyles, children: benefits.map(renderBenefit$1(version, benefitsVersion)) })) : null, items?.length ? (jsx(List, { className: "mt-5 text-h6", items: items, itemClassName: "mb-[7px]", version: version, isDotted: isDotted })) : null] })] }), image?.src && jsx(ImgInner, { className: "mt-[-50px]", image: image })] }));
|
|
2762
2739
|
});
|
|
2763
|
-
const getButtons = (context, buttons) => {
|
|
2764
|
-
return buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex gap-4" })) : null;
|
|
2765
|
-
};
|
|
2766
2740
|
const getBenefitsContainerStyles = (benefitsCount = 0) => `gap-6 mt-6 ${benefitsCount > 3 ? 'inline-grid grid-cols-[auto_auto]' : 'flex'}`;
|
|
2767
2741
|
|
|
2768
2742
|
function renderBackwardButton(button, version, className) {
|
|
2769
2743
|
const { text, href, target, onClick } = button;
|
|
2770
2744
|
const iconVersion = version === 'primary' ? 'white' : 'black';
|
|
2771
2745
|
const backwardIcon = button?.icon || { icon: 'ArrowLeftIcon' };
|
|
2746
|
+
// TODO Move click handler to Button
|
|
2772
2747
|
return (jsxs("div", { className: `flex items-center cursor-pointer ${className}`, onClick: onClick, children: [jsx(Button, { version: version, rounded: true, className: "w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3", ariaLabel: text, href: href, target: target, children: jsx(ImgInner, { className: "w-4 h-4", image: { ...backwardIcon, iconVersion: backwardIcon.iconVersion || iconVersion }, asSVG: true }) }), text ? jsx("span", { className: "text-m", children: text }) : null] }));
|
|
2773
2748
|
}
|
|
2774
2749
|
|
|
@@ -2777,13 +2752,11 @@
|
|
|
2777
2752
|
secondary: 'text-white/80',
|
|
2778
2753
|
};
|
|
2779
2754
|
const ProductBlock = JSX((props) => {
|
|
2780
|
-
const {
|
|
2781
|
-
const router = context.useRouter();
|
|
2782
|
-
const { handlerDecorator } = context;
|
|
2755
|
+
const { className = '', breadcrumbs, backwardButton, version = 'primary', ...rest } = props;
|
|
2783
2756
|
const buttonVersion = version === 'primary' ? version : 'white';
|
|
2784
|
-
return (jsxs(BlockWrapper, {
|
|
2785
|
-
? renderBackwardButton(
|
|
2786
|
-
: null, breadcrumbs?.length ? (jsx("div", { className: "text-xs-light mb-6", children: joinList(jsx("span", { className: `mx-2 ${breadcrumbsStyleMap[version]}`, children: "/" }))(breadcrumbs.map((breadcrumb, i) => (jsx(Breadcrumb, {
|
|
2757
|
+
return (jsxs(BlockWrapper, { className: `font-sans overflow-hidden p-[50px] flex flex-col box-border min-h-[454px] ${VersionStyleMap[version]} ${className}`, ...rest, children: [backwardButton?.text
|
|
2758
|
+
? renderBackwardButton(backwardButton, buttonVersion, 'mb-10 -mt-2.5')
|
|
2759
|
+
: null, breadcrumbs?.length ? (jsx("div", { className: "text-xs-light mb-6", children: joinList(jsx("span", { className: `mx-2 ${breadcrumbsStyleMap[version]}`, children: "/" }))(breadcrumbs.map((breadcrumb, i) => (jsx(Breadcrumb, { className: breadcrumbsStyleMap[version], ...breadcrumb }, String(i))))) })) : null, jsx(ProductBlockInner, { version: version, ...rest })] }));
|
|
2787
2760
|
});
|
|
2788
2761
|
|
|
2789
2762
|
const BorderVersionStyleMap = {
|
|
@@ -2795,12 +2768,12 @@
|
|
|
2795
2768
|
primary: { title: 'text-secondary-text', text: 'text-secondary-text' },
|
|
2796
2769
|
secondary: { title: 'text-white', text: 'text-white/80' },
|
|
2797
2770
|
};
|
|
2798
|
-
const ProductGallery = JSX(({ className = '',
|
|
2771
|
+
const ProductGallery = JSX(({ className = '', slides = [], version = 'primary', ...rest }) => {
|
|
2799
2772
|
const galleryNav = slides.map((s) => s.nav);
|
|
2800
2773
|
const galleryBlocks = slides.map((s) => s.productBlock);
|
|
2801
2774
|
const [activeSlideIndex, setActiveSlideIndex] = useState(0);
|
|
2802
|
-
return (jsxs(BlockWrapper, {
|
|
2803
|
-
${VersionStyleMap[version]}`, ...rest, children: [jsx("div", { className: "flex duration-1000 pb-14", style: { transform: `translateX(-${activeSlideIndex}00%)` }, role: "list", children: galleryBlocks.map((_, i) => renderProductBlock({ ..._, version }, i
|
|
2775
|
+
return (jsxs(BlockWrapper, { className: `box-border pt-[50px] overflow-hidden relative font-sans w-100 mb-6 ${className}
|
|
2776
|
+
${VersionStyleMap[version]}`, ...rest, children: [jsx("div", { className: "flex duration-1000 pb-14", style: { transform: `translateX(-${activeSlideIndex}00%)` }, role: "list", children: galleryBlocks.map((_, i) => renderProductBlock({ ..._, ...rest, version }, i)) }), jsx("div", { className: "flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border h-28", children: galleryNav.map((slide, i) => renderNavButton({
|
|
2804
2777
|
slide,
|
|
2805
2778
|
i,
|
|
2806
2779
|
activeSlideIndex,
|
|
@@ -2808,10 +2781,10 @@
|
|
|
2808
2781
|
version,
|
|
2809
2782
|
})) })] }));
|
|
2810
2783
|
});
|
|
2811
|
-
function renderProductBlock(block, i
|
|
2784
|
+
function renderProductBlock(block, i) {
|
|
2812
2785
|
const { version } = block;
|
|
2813
2786
|
const additionalClass = version ? productBlockStyleMap[version].title : '';
|
|
2814
|
-
return (jsx("section", { className: "box-border relative flex grow-0 shrink-0 basis-full", role: "listitem", children: jsx("div", { className: "flex grow", children: jsx(ProductBlockInner, { className: `pl-[50px] z-10 ${additionalClass}`,
|
|
2787
|
+
return (jsx("section", { className: "box-border relative flex grow-0 shrink-0 basis-full", role: "listitem", children: jsx("div", { className: "flex grow", children: jsx(ProductBlockInner, { className: `pl-[50px] z-10 ${additionalClass}`, textBlockClassName: "mb-[154px]", headlineVersion: "XXL", ...block }) }) }, String(i)));
|
|
2815
2788
|
}
|
|
2816
2789
|
function renderNavButton({ slide, i, activeSlideIndex, onClick, version }) {
|
|
2817
2790
|
const isActiveBtn = i === activeSlideIndex;
|
|
@@ -2830,12 +2803,10 @@
|
|
|
2830
2803
|
`, children: jsxs("div", { className: "border-0 px-6", children: [jsx("div", { className: `last:pb-0 ${btnTitleClassName}`, children: slide?.title }), jsx("div", { className: `text-secondary-text ${btnDescClassName}`, children: slide?.description })] }) }, String(i)));
|
|
2831
2804
|
}
|
|
2832
2805
|
|
|
2833
|
-
const ProductTile = JSX(({
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
: null, buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex self-end mt-5 gap-4 z-10 text-l" })) : null, image?.src ? jsx(ImgInner, { className: "absolute right-0 bottom-0", image: image }) : null] }));
|
|
2838
|
-
});
|
|
2806
|
+
const ProductTile = JSX(({ className = '', title, headlineVersion = 'S', description, additionalDescription, benefits = [], buttons, image, version = 'primary', ...rest }) => (jsxs(BlockWrapper, { className: `overflow-hidden font-sans p-9 box-border relative justify-between grid min-h-[364px]
|
|
2807
|
+
${className} ${VersionStyleMap[version]} ${getTileRightPadding(className)}`, ...rest, children: [jsx(Headline, { className: `!p-0 !bg-transparent z-10 ${title || description ? 'mb-3.5' : ''}`, as: "h2", title: title, description: description, headlineVersion: headlineVersion, bgColorHeadline: version, align: "left", ...rest }), renderBenefits(benefits, version, image), additionalDescription
|
|
2808
|
+
? renderAdditionalDescription(additionalDescription, image, version)
|
|
2809
|
+
: null, buttons?.length ? (jsx(ButtonSection, { buttons: buttons, className: "flex self-end mt-5 gap-4 z-10 text-l" })) : null, image?.src ? jsx(ImgInner, { className: "absolute right-0 bottom-0", image: image }) : null] })));
|
|
2839
2810
|
function renderBenefits(benefits, version, image) {
|
|
2840
2811
|
// picture width = 242px. Text can overlay picture 20px deep. Outer paddings_x = 36px. 242-36-20 = 186px
|
|
2841
2812
|
const BENEFITS_WIDTH = image?.src ? 'max-w-[calc(100%-186px)]' : '100%';
|
|
@@ -2865,9 +2836,7 @@
|
|
|
2865
2836
|
return (jsx("div", { className: `text-m-light mt-2.5 z-10 ${DESCRIPTION_WIDTH} ${descStyleMap[version]}`, children: additionalDescription }));
|
|
2866
2837
|
}
|
|
2867
2838
|
|
|
2868
|
-
const PromoTile = JSX(({ className = '',
|
|
2869
|
-
return (jsx(BlockWrapper, { context: context, className: `bg-white text-primary-text font-sans p-9 box-border ${className} ${VersionStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, ...rest, children: jsx(BaseTile, { context: context, title: title ? (jsx(Headline, { context: context, title: title, className: `!p-0 max-w-[600px]`, headlineVersion: getTileHeadingType(className), bgColorHeadline: version, align: "left", as: "h2" })) : null, buttons: buttons?.length ? (jsx(ButtonSection, { context: context, buttons: buttons, className: "flex gap-3" })) : null, children: jsxs("div", { className: "mt-1.5", children: [date ? jsx("div", { className: "text-s mb-2", children: formatDate(date) }) : null, jsx("div", { className: "text-l", children: description })] }) }) }));
|
|
2870
|
-
});
|
|
2839
|
+
const PromoTile = JSX(({ className = '', title = 'Акции и спецпредложения', date, description, buttons = [], version = 'primary', ...rest }) => (jsx(BlockWrapper, { className: `bg-white text-primary-text font-sans p-9 box-border ${className} ${VersionStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, ...rest, children: jsx(BaseTile, { title: title ? (jsx(Headline, { title: title, className: `!p-0 max-w-[600px]`, headlineVersion: getTileHeadingType(className), bgColorHeadline: version, align: "left", as: "h2", ...rest })) : null, buttons: buttons?.length ? jsx(ButtonSection, { buttons: buttons, className: "flex gap-3" }) : null, children: jsxs("div", { className: "mt-1.5", children: [date ? jsx("div", { className: "text-s mb-2", children: formatDate(date) }) : null, jsx("div", { className: "text-l", children: description })] }) }) })));
|
|
2871
2840
|
function formatDate(date) {
|
|
2872
2841
|
const dateObj = new Date(date);
|
|
2873
2842
|
const dateFormat = {
|
|
@@ -2878,30 +2847,25 @@
|
|
|
2878
2847
|
return dateObj.toLocaleString('ru-RU', dateFormat).replace('г.', '');
|
|
2879
2848
|
}
|
|
2880
2849
|
|
|
2881
|
-
const RecommendationCard = JSX(({
|
|
2850
|
+
const RecommendationCard = JSX(({ className = '', title, description, items, image, version, socialMedia }) => {
|
|
2882
2851
|
const tileTitle = title ? (jsx(Heading, { headingType: "h5", as: "h3", className: "mb-3.5 z-10", title: title })) : null;
|
|
2883
2852
|
const tileImage = image?.src ? (jsx(ImgInner, { className: "absolute bottom-0 right-0 m-0", image: image })) : null;
|
|
2884
|
-
return (jsx("section", { className: `relative overflow-hidden text-left border border-solid box-border p-7 min-w-[524px] min-h-[218px] ${className}`, role: "listitem", children: jsx(BaseTile, {
|
|
2853
|
+
return (jsx("section", { className: `relative overflow-hidden text-left border border-solid box-border p-7 min-w-[524px] min-h-[218px] ${className}`, role: "listitem", children: jsx(BaseTile, { className: "flex justify-between", title: tileTitle, image: tileImage, children: jsxs("div", { className: "h-full flex flex-col justify-between", children: [description ? jsx(Description, { className: "mb-2", description: description }) : null, items?.length ? (jsx(List, { className: "text-xl-light flex flex-col flex-1 gap-2 max-w-[236px]", items: items, version: version })) : null, socialMedia ? (jsx(SocialMedia, { className: "pt-10 pb-0", media: socialMedia, version: version })) : null] }) }) }));
|
|
2885
2854
|
});
|
|
2886
2855
|
|
|
2887
2856
|
const BLUR_BLOCK_CLASSES$1 = 'absolute top-0 bottom-0 w-[84px]';
|
|
2888
2857
|
const CARD_FULL_VIEW_COUNT$1 = 2;
|
|
2889
2858
|
const CARD_SHIFT = 525;
|
|
2890
|
-
const Recommendation = JSX(({
|
|
2859
|
+
const Recommendation = JSX(({ recommendations = [], className = '', title, version = 'primary', ...rest }) => {
|
|
2891
2860
|
const [activeCardIndex, setActiveCardIndex] = useState(0);
|
|
2892
|
-
return (jsxs(BlockWrapper, {
|
|
2893
|
-
|
|
2894
|
-
${className}`, ...rest, children: [title ? jsx(Heading, { headingType: "h3", className: "mb-6", title: title }) : null, jsxs("div", { children: [jsx("div", { className: "flex duration-1000 gap-3.5", style: { transform: `translateX(-${activeCardIndex * CARD_SHIFT}px)` }, role: "list", children: recommendations?.length
|
|
2895
|
-
? recommendations.map(renderRecommendationCard(context, BorderVersionStyleMap[version], version))
|
|
2861
|
+
return (jsxs(BlockWrapper, { className: `relative font-sans p-9 overflow-hidden text-center ${VersionStyleMap[version]} ${className}`, ...rest, children: [title ? jsx(Heading, { headingType: "h3", className: "mb-6", title: title }) : null, jsxs("div", { children: [jsx("div", { className: "flex duration-1000 gap-3.5", style: { transform: `translateX(-${activeCardIndex * CARD_SHIFT}px)` }, role: "list", children: recommendations?.length
|
|
2862
|
+
? recommendations.map((card, i) => (jsx(RecommendationCard, { version: version, className: BorderVersionStyleMap[version], ...card }, String(i))))
|
|
2896
2863
|
: null }), renderNavButtons$1({
|
|
2897
2864
|
cardsCount: recommendations.length,
|
|
2898
2865
|
activeCardIndex,
|
|
2899
2866
|
setActiveCardIndex,
|
|
2900
2867
|
})] }), jsx("div", { className: `${BLUR_BLOCK_CLASSES$1} left-0 ${version === 'secondary' ? 'bg-opacity-from-main' : 'bg-opacity-from-white'}` }), jsx("div", { className: `${BLUR_BLOCK_CLASSES$1} right-0 ${version === 'secondary' ? 'bg-opacity-to-main' : 'bg-opacity-to-white'}` })] }));
|
|
2901
2868
|
});
|
|
2902
|
-
const renderRecommendationCard = (context, className, version) => (card, i) => {
|
|
2903
|
-
return (jsx(RecommendationCard, { context: context, ...card, version: version, className: className }, String(i)));
|
|
2904
|
-
};
|
|
2905
2869
|
const renderNavButtons$1 = ({ cardsCount, activeCardIndex, setActiveCardIndex, }) => {
|
|
2906
2870
|
const handleNextClick = () => setActiveCardIndex(activeCardIndex + 1);
|
|
2907
2871
|
const handlePrevClick = () => setActiveCardIndex(activeCardIndex - 1);
|
|
@@ -3031,7 +2995,7 @@
|
|
|
3031
2995
|
}
|
|
3032
2996
|
|
|
3033
2997
|
const DEFAULT_DAYS = 26;
|
|
3034
|
-
const SafeDepositRental = JSX(({ title, footnote,
|
|
2998
|
+
const SafeDepositRental = JSX(({ title, footnote, className = '', ...rest }) => {
|
|
3035
2999
|
const [showMap, setShowMap] = useState(false);
|
|
3036
3000
|
const [safeDepositState, setStateDepositState] = useState({
|
|
3037
3001
|
selectedRegion: '',
|
|
@@ -3048,7 +3012,7 @@
|
|
|
3048
3012
|
setShowMap(!showMap);
|
|
3049
3013
|
};
|
|
3050
3014
|
const points = getCoordinates(getBranch(branches, safeDepositState.selectedBranch) || branches);
|
|
3051
|
-
return (jsxs(BlockWrapper, {
|
|
3015
|
+
return (jsxs(BlockWrapper, { className: className, ...rest, children: [jsxs("div", { className: "font-sans bg-white 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 }, onShowMapToggle: onShowMapToggle, 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] }));
|
|
3052
3016
|
});
|
|
3053
3017
|
const normalizeSelectedRegion = (selectedRegion, regions) => !selectedRegion && regions?.length && regions[0]?.code ? regions[0].code : selectedRegion;
|
|
3054
3018
|
|
|
@@ -3056,7 +3020,7 @@
|
|
|
3056
3020
|
|
|
3057
3021
|
const renderItems = ({ items, isDotted = true, version = 'primary', className = '', }) => items ? (jsx(List, { className: className, version: version, items: items, listItemSize: "M", isDotted: isDotted })) : null;
|
|
3058
3022
|
|
|
3059
|
-
const renderStepContent = ({ styleMap, isMainButton, version,
|
|
3023
|
+
const renderStepContent = ({ styleMap, isMainButton, version, }) => (step, i, { length }) => {
|
|
3060
3024
|
const { label, description, button, items, isDotted } = step;
|
|
3061
3025
|
const contentMarginClass = label && (description || items) ? 'mt-2' : '';
|
|
3062
3026
|
return (jsxs("div", { className: `relative flex flex-col items-center text-center whitespace-pre-line overflow-hidden ${getContainerWidth(length)}`, children: [jsxs("div", { className: `${button?.text ? 'mb-8' : ''} text-center`, children: [renderStepLabel(label), jsxs("div", { className: `${contentMarginClass} flex flex-col items-center`, children: [renderStepDescription({
|
|
@@ -3067,7 +3031,7 @@
|
|
|
3067
3031
|
isDotted,
|
|
3068
3032
|
version,
|
|
3069
3033
|
className: getItemsClasses({ className: 'text-left', description, styleMap }),
|
|
3070
|
-
})] })] }), button?.text && !isMainButton ? (jsx(Button, { className: "box-border py-3 h-12 w-full max-w-[240px] mt-auto",
|
|
3034
|
+
})] })] }), button?.text && !isMainButton ? (jsx(Button, { className: "box-border py-3 h-12 w-full max-w-[240px] mt-auto", version: version, ...button, children: button?.text })) : null] }, String(i)));
|
|
3071
3035
|
};
|
|
3072
3036
|
const renderStepLabel = (label) => label ? jsx("div", { className: "text-h6", children: label }) : null;
|
|
3073
3037
|
const renderStepDescription = ({ description, className = '', }) => (description ? jsx("div", { className: className, children: description }) : null);
|
|
@@ -3097,9 +3061,7 @@
|
|
|
3097
3061
|
|
|
3098
3062
|
const getLineOpacity = (showLines) => (showLines ? '' : 'opacity-0');
|
|
3099
3063
|
const getPaddingX = (steps) => (steps < 5 ? 'px-[88px]' : 'px-[55px]');
|
|
3100
|
-
const StepsBlock = JSX(({ className = '', showLines = true, steps = [], button, version = 'primary',
|
|
3101
|
-
const router = context.useRouter();
|
|
3102
|
-
const { handlerDecorator } = context;
|
|
3064
|
+
const StepsBlock = JSX(({ className = '', showLines = true, steps = [], button, version = 'primary', ...rest }) => {
|
|
3103
3065
|
const { title } = rest;
|
|
3104
3066
|
const styleMap = STEPS_BLOCK_STYLE_MAPS[version];
|
|
3105
3067
|
const shortGaps = steps.length > 3;
|
|
@@ -3113,13 +3075,7 @@
|
|
|
3113
3075
|
styleMap.background,
|
|
3114
3076
|
styleMap.title,
|
|
3115
3077
|
className,
|
|
3116
|
-
].join(' '),
|
|
3117
|
-
styleMap,
|
|
3118
|
-
isMainButton: Boolean(button?.text),
|
|
3119
|
-
version,
|
|
3120
|
-
router,
|
|
3121
|
-
handlerDecorator,
|
|
3122
|
-
})) })] })) : null, button?.text ? (jsx(Button, { className: "mt-8 min-w-[240px]", version: "primary", ...useLink({ router, handlerDecorator }, button) })) : null] }));
|
|
3078
|
+
].join(' '), ...rest, children: [title ? (jsx(Heading, { headingType: "h3", className: "max-w-[752px] text-center", title: title })) : null, steps?.length ? (jsxs("div", { className: `box-border ${titleMargin}`, children: [jsx("div", { className: `flex items-center ${paddingX}`, children: joinList(jsx("div", { className: `h-0.5 w-full bg-secondary-light ${lineOpacity}` }))(steps.map(renderStepIcon(styleMap, version))) }), jsx("div", { className: `flex justify-between mt-4 ${shortGaps ? 'gap-x-3' : 'gap-x-[101px]'}`, children: steps.map(renderStepContent({ styleMap, isMainButton: Boolean(button?.text), version })) })] })) : null, button?.text ? (jsx(Button, { className: "mt-8 min-w-[240px]", version: "primary", ...button })) : null] }));
|
|
3123
3079
|
});
|
|
3124
3080
|
const renderStepIcon = (styleMap, version) => ({ icon }, i) => {
|
|
3125
3081
|
return (jsx("div", { className: "flex flex-col items-center text-center", children: jsx("div", { className: `h-[100px] w-[100px] min-w-[100px] min-h-[100px] rounded-full p-[26px] box-border z-10 flex justify-center items-center
|
|
@@ -3137,10 +3093,22 @@
|
|
|
3137
3093
|
const ACTIVE_TEXT_CLASSES = 'text-white';
|
|
3138
3094
|
const INACTIVE_TEXT_CLASSES = 'text-secondary-text group-hover:text-primary-main';
|
|
3139
3095
|
|
|
3096
|
+
const LinkTab = JSX((props) => {
|
|
3097
|
+
const { tab, currentTab, onClick } = props;
|
|
3098
|
+
const active = currentTab?.type === 'link' && currentTab.href === tab.href;
|
|
3099
|
+
const handleClick = useCallback(() => {
|
|
3100
|
+
onClick && onClick(tab);
|
|
3101
|
+
EventBus.inst.fire('anchorClick', { isScrolling: true, label: tab.href });
|
|
3102
|
+
}, [tab, onClick]);
|
|
3103
|
+
const link = useLink();
|
|
3104
|
+
const adjustedProps = link({ ...tab, onClick: handleClick });
|
|
3105
|
+
return (jsx("a", { role: "tab", className: `${LINK_CLASSES} ${active ? ACTIVE_LINK_CLASSES : INACTIVE_LINK_CLASSES}`, target: tab.target, href: adjustedProps.href, onClick: adjustedProps.onClick, children: jsx("span", { className: `${TEXT_CLASSES} ${active ? ACTIVE_TEXT_CLASSES : INACTIVE_TEXT_CLASSES}`, children: tab.text }) }));
|
|
3106
|
+
});
|
|
3107
|
+
|
|
3140
3108
|
const BADGE_CLASSES = 'min-w-[22px] h-[22px] rounded-full text-xs ml-2 flex justify-center items-center';
|
|
3141
3109
|
const ACTIVE_BADGE_CLASSES = 'bg-white/30 text-white';
|
|
3142
3110
|
const INACTIVE_BADGE_CLASSES = 'bg-main-divider text-secondary-text group-hover:text-primary-main';
|
|
3143
|
-
const renderGroupTab = ({
|
|
3111
|
+
const renderGroupTab = ({ page, currentTab, showCounter, onClick }) => (tab, i) => {
|
|
3144
3112
|
const active = currentTab === tab;
|
|
3145
3113
|
const count = tab.ref && page?.blocks
|
|
3146
3114
|
? page.blocks.filter((block) => block?.labels?.includes(tab.ref)).length
|
|
@@ -3150,37 +3118,19 @@
|
|
|
3150
3118
|
const renderTitle$1 = (title, active) => (jsx("h3", { className: `${TEXT_CLASSES} ${active ? ACTIVE_TEXT_CLASSES : INACTIVE_TEXT_CLASSES}`, children: title }));
|
|
3151
3119
|
const renderCount = (count, active) => (jsx("div", { className: `${BADGE_CLASSES} ${active ? ACTIVE_BADGE_CLASSES : INACTIVE_BADGE_CLASSES}`, children: count }));
|
|
3152
3120
|
|
|
3153
|
-
const
|
|
3154
|
-
const active = currentTab?.type === 'link' && currentTab.href === href;
|
|
3155
|
-
return (jsx("a", { role: "tab", className: `${LINK_CLASSES} ${active ? ACTIVE_LINK_CLASSES : INACTIVE_LINK_CLASSES}`, target: target, href: href, onClick: onClick, children: jsx("span", { className: `${TEXT_CLASSES} ${active ? ACTIVE_TEXT_CLASSES : INACTIVE_TEXT_CLASSES}`, children: text }) }, String(i)));
|
|
3156
|
-
};
|
|
3157
|
-
|
|
3158
|
-
const renderTab = ({ onClick, currentTab, showCounter, page, context }) =>
|
|
3121
|
+
const renderTab = ({ page, currentTab, showCounter, onClick }) =>
|
|
3159
3122
|
// Linter doesn't understand that switch processes all cases
|
|
3160
3123
|
// eslint-disable-next-line consistent-return
|
|
3161
3124
|
(tab, i) => {
|
|
3162
|
-
const { useRouter, handlerDecorator } = context;
|
|
3163
|
-
const router = useRouter();
|
|
3164
3125
|
const type = tab.type;
|
|
3165
3126
|
if (!(type === 'group' || type === 'link')) {
|
|
3166
3127
|
return null;
|
|
3167
3128
|
}
|
|
3168
3129
|
switch (type) {
|
|
3169
3130
|
case 'group':
|
|
3170
|
-
return renderGroupTab({
|
|
3131
|
+
return renderGroupTab({ page, currentTab, showCounter, onClick })(tab, i);
|
|
3171
3132
|
case 'link': {
|
|
3172
|
-
|
|
3173
|
-
const linkClick = link.onClick;
|
|
3174
|
-
return renderLinkTab({
|
|
3175
|
-
...link,
|
|
3176
|
-
onClick: (ev) => {
|
|
3177
|
-
linkClick(ev);
|
|
3178
|
-
onClick(tab);
|
|
3179
|
-
EventBus.inst.fire('anchorClick', { isScrolling: true, label: tab.href });
|
|
3180
|
-
},
|
|
3181
|
-
currentTab,
|
|
3182
|
-
i,
|
|
3183
|
-
});
|
|
3133
|
+
return jsx(LinkTab, { tab: tab, currentTab: currentTab }, String(i));
|
|
3184
3134
|
}
|
|
3185
3135
|
default:
|
|
3186
3136
|
assertUnreachable(type);
|
|
@@ -3188,7 +3138,7 @@
|
|
|
3188
3138
|
};
|
|
3189
3139
|
|
|
3190
3140
|
const Tabs = JSX((props) => {
|
|
3191
|
-
const {
|
|
3141
|
+
const { className = '', tabs, showCounter, isSticky, ...rest } = props;
|
|
3192
3142
|
const [currentTab, setCurrentTab] = useState(tabs ? tabs[0] : undefined);
|
|
3193
3143
|
useEffect(() => EventBus.inst.subscribe('tab', (event) => {
|
|
3194
3144
|
if (!tabs) {
|
|
@@ -3211,7 +3161,7 @@
|
|
|
3211
3161
|
}
|
|
3212
3162
|
setCurrentTab(selectedTab);
|
|
3213
3163
|
};
|
|
3214
|
-
return (jsx(BlockWrapper, {
|
|
3164
|
+
return (jsx(BlockWrapper, { className: `${isSticky ? 'sticky top-1 z-20 ' : ''}box-border flex gap-x-1 ${className}`, role: "tablist", ...rest, children: tabs?.map(renderTab({ onClick: handleClick, currentTab, showCounter, ...rest })) }));
|
|
3215
3165
|
});
|
|
3216
3166
|
const checkTab = (event) => (_) => _.type === 'link' && _.href === `#${event.label}`;
|
|
3217
3167
|
|
|
@@ -3234,11 +3184,9 @@
|
|
|
3234
3184
|
};
|
|
3235
3185
|
const renderImgCellData = ({ image }) => (image?.src ? jsx(ImgInner, { image: image }) : null);
|
|
3236
3186
|
const renderListCellData = ({ isDotted, ...rest }) => (jsx(List, { className: "flex flex-col justify-between items-start text-h6", version: "primary", isDotted: isDotted ?? true, ...rest }));
|
|
3237
|
-
const renderTableCellData = JSX(({ isVisible, displayTable, dataUrl, pdfUrl, isOpen,
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
} })) : null;
|
|
3241
|
-
});
|
|
3187
|
+
const renderTableCellData = JSX(({ isVisible, displayTable, dataUrl, pdfUrl, isOpen }) => isVisible ? (jsx(TableInnerButton, { isOpen: isOpen, onClick: () => {
|
|
3188
|
+
displayTable({ dataUrl, pdfUrl });
|
|
3189
|
+
} })) : null);
|
|
3242
3190
|
const EmbeddableCellData = {
|
|
3243
3191
|
Buttons: renderButtonsCellData,
|
|
3244
3192
|
Img: renderImgCellData,
|
|
@@ -3247,7 +3195,7 @@
|
|
|
3247
3195
|
Table: renderTableCellData,
|
|
3248
3196
|
};
|
|
3249
3197
|
|
|
3250
|
-
const renderCellInner = ({ rowIdx,
|
|
3198
|
+
const renderCellInner = ({ rowIdx, cellIdx, setTableInner, tableInner, openTableInnerIdx, setOpenTableInnerIdx, }) => (cell, i) => {
|
|
3251
3199
|
const [isVisible, setVisibility] = useState(true);
|
|
3252
3200
|
useEffect(() => {
|
|
3253
3201
|
if (cellIdx !== openTableInnerIdx || !tableInner) {
|
|
@@ -3267,7 +3215,6 @@
|
|
|
3267
3215
|
fieldIdx: i,
|
|
3268
3216
|
displayTable,
|
|
3269
3217
|
isVisible,
|
|
3270
|
-
context,
|
|
3271
3218
|
},
|
|
3272
3219
|
})] }, String(i)));
|
|
3273
3220
|
};
|
|
@@ -3283,11 +3230,10 @@
|
|
|
3283
3230
|
return jsx(EmbeddableCellInner, { ...cellProps, ...rest });
|
|
3284
3231
|
};
|
|
3285
3232
|
|
|
3286
|
-
const TariffsTableCell = JSX(({
|
|
3233
|
+
const TariffsTableCell = JSX(({ cells, rowIdx, cellIdx, setTableInner, tableInner, openTableInnerIdx, setOpenTableInnerIdx, }) => {
|
|
3287
3234
|
return (jsx("div", { className: "first:pl-0 w-80 flex-grow flex flex-col border-solid border-main-divider border border-t-0 border-x-0", role: "cell", children: cells?.length
|
|
3288
3235
|
? cells.map(renderCellInner({
|
|
3289
3236
|
rowIdx,
|
|
3290
|
-
context,
|
|
3291
3237
|
cellIdx,
|
|
3292
3238
|
setTableInner,
|
|
3293
3239
|
tableInner,
|
|
@@ -3340,41 +3286,38 @@
|
|
|
3340
3286
|
};
|
|
3341
3287
|
const renderCols = (cols, rowIndex) => cols?.length > 0 ? (jsx("div", { className: `flex ${rowIndex} ${rowIndex === 0 ? 'text-secondary-text' : ''} last:mr-3`, children: cols.map((data, i) => (jsx("div", { className: `w-[76px] text-h6 mr-5 first:ml-8`, children: data }, String(i)))) })) : null;
|
|
3342
3288
|
|
|
3343
|
-
const InnerTableBody = JSX(({
|
|
3289
|
+
const InnerTableBody = JSX(({ activeTabIndex, items }) => {
|
|
3344
3290
|
const [hiddenTables, setHiddenTables] = useState({});
|
|
3345
3291
|
const toggleTable = (key) => {
|
|
3346
3292
|
setHiddenTables((oldState) => ({ ...oldState, [key]: !oldState[key] }));
|
|
3347
3293
|
};
|
|
3348
3294
|
return (jsx("div", { children: items.map((_, tableIdx) => {
|
|
3349
3295
|
const key = `activeTabIdx:${activeTabIndex}-tableIdx:${tableIdx}`;
|
|
3350
|
-
return (jsxs("div", { className: "w-full", children: [jsxs("div", { className: "flex p-4 bg-main-stroke text-xl-light text-center justify-center cursor-pointer relative", onClick: () => toggleTable(key), children: [_.title, jsx(ImgInner, { image: 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, {
|
|
3296
|
+
return (jsxs("div", { className: "w-full", children: [jsxs("div", { className: "flex p-4 bg-main-stroke text-xl-light text-center justify-center cursor-pointer relative", onClick: () => toggleTable(key), children: [_.title, jsx(ImgInner, { image: 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));
|
|
3351
3297
|
}) }));
|
|
3352
3298
|
});
|
|
3353
3299
|
|
|
3354
3300
|
const InnerTableHeader = JSX(({ currencies, linkToPDF, activeTabIndex, setActiveTabIndex }) => (jsxs("div", { className: "flex justify-between w-full pt-2.5 pb-3", children: [currencies && currencies.length > 1 ? (jsx("div", { className: "flex bg-secondary-light p-1.5 rounded-md", children: currencies.map((currency, idx) => (jsx("div", { className: `rounded-md text-xl-light px-4 py-3 cursor-pointer ${idx === activeTabIndex ? 'bg-primary-main text-white' : 'text-secondary-text'}`, onClick: () => setActiveTabIndex(idx), children: currency || idx + 1 }, currency))) })) : null, linkToPDF ? (jsx(Button, { href: linkToPDF, version: "secondary", target: "_blank", appendLeft: jsx(ImgInner, { image: "DocDownloadIcon", className: "mr-0.5", width: "20", height: "20", asSVG: true }), text: "\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432 PDF" })) : null] })));
|
|
3355
3301
|
|
|
3356
3302
|
const EMPTY_DATA = 'Данных нет';
|
|
3357
|
-
const InnerTable = JSX(({
|
|
3303
|
+
const InnerTable = JSX(({ dataUrl, pdfUrl, onClick }) => {
|
|
3358
3304
|
const { tableData } = useTariffsInnerTableData(dataUrl);
|
|
3359
3305
|
const [activeTabIndex, setActiveTabIndex] = useState(0);
|
|
3360
3306
|
const items = tableData?.[activeTabIndex]?.items ?? [];
|
|
3361
3307
|
const currencies = tableData?.map((item) => item.currency ?? '');
|
|
3362
|
-
return tableData ? (jsxs("div", { className: "bg-white z-10", children: [jsx(InnerTableHeader, { currencies: currencies, activeTabIndex: activeTabIndex, setActiveTabIndex: setActiveTabIndex, linkToPDF: pdfUrl }), jsx(InnerTableBody, {
|
|
3308
|
+
return tableData ? (jsxs("div", { className: "bg-white z-10", children: [jsx(InnerTableHeader, { currencies: currencies, activeTabIndex: activeTabIndex, setActiveTabIndex: setActiveTabIndex, linkToPDF: pdfUrl }), jsx(InnerTableBody, { activeTabIndex: activeTabIndex, items: items }), jsx(TableInnerButton, { onClick: onClick, isOpen: true })] })) : (jsxs("div", { className: "my-5 text-h6 text-center", children: [jsx("p", { children: EMPTY_DATA }), jsx(TableInnerButton, { onClick: onClick, isOpen: true })] }));
|
|
3363
3309
|
});
|
|
3364
3310
|
|
|
3365
|
-
const TariffsTableRowContainer = JSX(({
|
|
3366
|
-
return (jsxs("div", { className: "self-start flex flex-col", role: "row", children: [jsx("div", { className: "flex", children: children }), tableInner ? (jsx("div", { className: "origin-top animate-expansion", children: jsx(InnerTable, { context: context, ...tableInner, onClick: onHideContentClick }) })) : null] }));
|
|
3367
|
-
});
|
|
3311
|
+
const TariffsTableRowContainer = JSX(({ children, tableInner, onHideContentClick }) => (jsxs("div", { className: "self-start flex flex-col", role: "row", children: [jsx("div", { className: "flex", children: children }), tableInner ? (jsx("div", { className: "origin-top animate-expansion", children: jsx(InnerTable, { ...tableInner, onClick: onHideContentClick }) })) : null] })));
|
|
3368
3312
|
|
|
3369
|
-
const TariffsTableRow = JSX(({ row: { header, data }, activeCardIndex,
|
|
3313
|
+
const TariffsTableRow = JSX(({ row: { header, data }, activeCardIndex, rowIdx, ...rest }) => {
|
|
3370
3314
|
const [tableInner, setTableInner] = useState(undefined);
|
|
3371
3315
|
const [openTableInnerIdx, setOpenTableInnerIdx] = useState(undefined);
|
|
3372
3316
|
const onHideContentClick = () => setTableInner(undefined);
|
|
3373
|
-
return (jsxs(TariffsTableRowContainer, {
|
|
3317
|
+
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(ImgInner, { className: "mr-[14px] max-w-6 max-h-6", image: getIconWithVersion(header.icon), width: "24px", height: "24px", asSVG: true })) : null, header?.title ? jsx("div", { className: "text-m-light", children: header?.title }) : null] }) }), data?.length ? (jsx(TableCarouselContainer, { activeCardIndex: activeCardIndex, columnWidth: COLUMN_WIDTH$1, version: "tariff", children: data.map((cells, i) => (jsx(TariffsTableCell, { cells: cells, rowIdx: rowIdx, cellIdx: i, setTableInner: setTableInner, tableInner: tableInner, openTableInnerIdx: openTableInnerIdx, setOpenTableInnerIdx: setOpenTableInnerIdx, ...rest }, String(i)))) })) : null] }));
|
|
3374
3318
|
});
|
|
3375
3319
|
|
|
3376
|
-
const TariffsTable = JSX(({ className = '',
|
|
3377
|
-
const [activeCardIndex, setActiveCardIndex] = useState(0);
|
|
3320
|
+
const TariffsTable = JSX(({ className = '', title, description, rowHeaders, tariffsColumns: columns, hiddenRowsNum = 0, ...rest }) => {
|
|
3378
3321
|
const colData = columns?.map(({ data }) => data) || [];
|
|
3379
3322
|
const rowData = rowHeaders?.map((header, i) => ({
|
|
3380
3323
|
header,
|
|
@@ -3384,12 +3327,11 @@
|
|
|
3384
3327
|
const tableArrowScrollControlProps = useTableArrowScrollControl({
|
|
3385
3328
|
columnsLength,
|
|
3386
3329
|
colsLengthForScroll: COLS_LENGTH_FOR_SCROLL,
|
|
3387
|
-
activeCardIndex,
|
|
3388
|
-
setActiveCardIndex,
|
|
3389
3330
|
});
|
|
3390
|
-
const
|
|
3331
|
+
const { activeCardIndex } = tableArrowScrollControlProps;
|
|
3332
|
+
const rows = (rowData || []).map((row, i) => (jsx(TariffsTableRow, { row: row, activeCardIndex: activeCardIndex, rowIdx: i, ...rest }, String(i))));
|
|
3391
3333
|
const [visibleRows, hiddenRows] = hiddenRowsNum > 0 ? [rows.slice(0, -hiddenRowsNum), rows.slice(-hiddenRowsNum)] : [rows, []];
|
|
3392
|
-
return (jsxs(BlockWrapper, { className: `bg-white font-sans p-[50px] overflow-hidden text-primary-text relative ${columnsLength > 1 ? 'pr-0' : ''} ${className}`,
|
|
3334
|
+
return (jsxs(BlockWrapper, { className: `bg-white font-sans p-[50px] overflow-hidden text-primary-text relative ${columnsLength > 1 ? 'pr-0' : ''} ${className}`, ...rest, children: [renderTitle({ title, description }), renderDescription(description), hiddenRowsNum > 0 ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs(Wrapper, { tableArrowScrollControlProps: tableArrowScrollControlProps, children: [visibleRows, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] })), renderFoldButton: renderDefaultFoldButton })) : (jsx(Wrapper, { tableArrowScrollControlProps: tableArrowScrollControlProps, children: rows }))] }));
|
|
3393
3335
|
});
|
|
3394
3336
|
function renderTitle({ title, description }) {
|
|
3395
3337
|
return title ? (jsx(Heading, { headingType: "h3", className: `text-center ${description ? 'mb-2.5' : 'mb-8'}`, title: title })) : null;
|
|
@@ -3440,45 +3382,71 @@
|
|
|
3440
3382
|
const renderTag = (tag, key) => (jsx("span", { className: "text-m-light py-2 px-2.5 border-solid border rounded-md border-color-stroke", children: tag }, String(key)));
|
|
3441
3383
|
|
|
3442
3384
|
const Tile = JSX((props) => {
|
|
3443
|
-
const {
|
|
3385
|
+
const { title, headingType = 'h3', description, items, buttons, image, isDotted = true, listItemSize = 'M', className = '', version = 'primary', tags, children, ...rest } = props;
|
|
3444
3386
|
const headingClassName = version === 'primary' ? 'text-primary-text' : '';
|
|
3445
|
-
return (jsx(BlockWrapper, {
|
|
3387
|
+
return (jsx(BlockWrapper, { className: `overflow-hidden font-sans p-9 pr-3 box-border ${className} ${VersionStyleMap[version]} ${getTileRightPadding(className)} ${getTileMinHeight(className)} `, ...rest, children: jsxs(BaseTile, { title: title ? (jsx(Heading, { headingType: headingType, as: "h2", title: title, className: `whitespace-pre-wrap max-w-[600px] ${headingClassName}` })) : null, buttons: buttons?.length ? (jsx(ButtonSection, { buttons: buttons.map((button) => ({ ...button, className: 'min-w-[158px]' })), className: "flex mt-8 gap-3", ...rest })) : null, image: image?.src ? jsx(ImgInner, { className: "mt-auto ml-7", image: image }) : null, children: [description ? (jsx(Description, { className: "max-w-[600px] text-xl-light mt-2.5", description: description })) : null, children, renderList({ version, isDotted, listItemSize }, items), tags?.length ? jsx(Tags, { tags: tags, className: "mt-5" }) : null] }) }));
|
|
3446
3388
|
});
|
|
3447
3389
|
function renderList({ version, isDotted, listItemSize }, items) {
|
|
3448
3390
|
return items?.length ? (jsx(List, { items: items, isDotted: isDotted, className: "mt-2.5", listItemSize: listItemSize, itemClassName: "mb-1.5", version: version })) : null;
|
|
3449
3391
|
}
|
|
3450
3392
|
|
|
3393
|
+
const alignStyle = {
|
|
3394
|
+
left: 'items-start',
|
|
3395
|
+
center: 'items-center',
|
|
3396
|
+
right: 'items-end',
|
|
3397
|
+
};
|
|
3398
|
+
const gapStyleMap = {
|
|
3399
|
+
XXL: 'gap-10',
|
|
3400
|
+
XL: 'gap-8',
|
|
3401
|
+
L: 'gap-4',
|
|
3402
|
+
M: 'gap-3',
|
|
3403
|
+
S: 'gap-2',
|
|
3404
|
+
XS: 'gap-1',
|
|
3405
|
+
'': '',
|
|
3406
|
+
};
|
|
3407
|
+
const backgroundStyleMap = {
|
|
3408
|
+
transparent: '',
|
|
3409
|
+
primary: 'bg-white',
|
|
3410
|
+
secondary: 'bg-primary-main',
|
|
3411
|
+
};
|
|
3412
|
+
const VerticalLayout = JSX(({ className = '', children, gap = '', align = 'left', version = 'primary', ...rest }) => (jsx(BlockWrapper, { className: [
|
|
3413
|
+
'flex flex-col',
|
|
3414
|
+
gapStyleMap[gap],
|
|
3415
|
+
alignStyle[align],
|
|
3416
|
+
backgroundStyleMap[version],
|
|
3417
|
+
className,
|
|
3418
|
+
].join(' '), ...rest, children: children })));
|
|
3419
|
+
VerticalLayout.childrenTypes = {
|
|
3420
|
+
exclude: ['VerticalLayout'],
|
|
3421
|
+
};
|
|
3422
|
+
|
|
3451
3423
|
const getItemListFontSize = (colValue) => (colValue === 'single' ? 'text-h6' : 'text-l');
|
|
3452
3424
|
const cardColumnsModeStyleMap = {
|
|
3453
3425
|
double: 'flex gap-y-2 gap-x-10 flex-wrap',
|
|
3454
3426
|
single: 'flex gap-y-2 flex-col',
|
|
3455
3427
|
};
|
|
3456
|
-
const InvestmentGalleryCard = JSX(({ className = '', columnsMode = 'double',
|
|
3428
|
+
const InvestmentGalleryCard = JSX(({ className = '', columnsMode = 'double', description, additionalDescription, image, cardList, title, version = 'primary', }) => {
|
|
3457
3429
|
const tileTitle = title ? (jsx(Heading, { headingType: "h4", as: "h3", className: "mb-3.5 z-10", title: title })) : null;
|
|
3458
3430
|
const tileImage = image?.src ? (jsx(ImgInner, { className: "absolute bottom-0 right-0 m-0", image: image })) : null;
|
|
3459
3431
|
return (jsx("section", { className: `relative overflow-hidden text-left border border-solid box-border
|
|
3460
3432
|
p-9 min-w-[697px] min-h-[319px]
|
|
3461
3433
|
${BorderVersionStyleMap[version]}
|
|
3462
|
-
${className}`, role: "listitem", children: jsx(BaseTile, {
|
|
3434
|
+
${className}`, role: "listitem", children: jsx(BaseTile, { className: "flex justify-between", title: tileTitle, image: tileImage, children: jsxs("div", { className: "flex flex-col justify-between", children: [jsxs("div", { className: "flex itens-center justify-between mb-4", children: [description ? jsx(Description, { className: "text-h6", description: description }) : null, additionalDescription ? (jsxs("div", { className: "text-m-light text-secondary-text", children: [" ", additionalDescription, " "] })) : null] }), cardList?.length ? (jsx("div", { className: `${cardColumnsModeStyleMap[columnsMode]}`, role: "list", children: renderCardList(cardList, columnsMode) })) : null] }) }) }));
|
|
3463
3435
|
});
|
|
3464
3436
|
const renderCardList = (cardList, columnsMode) => cardList.map((item, i) => (jsxs("div", { className: columnsMode === 'double' ? 'basis-[calc(50%-20px)]' : '', role: "listitem", children: [item?.parameter ? (jsx("span", { className: `pr-2.5 ${getItemListFontSize(columnsMode)}`, children: item.parameter })) : null, item?.parameterDesccription ? (jsx("span", { className: "text-m-light text-secondary-text", children: item.parameterDesccription })) : null] }, String(i))));
|
|
3465
3437
|
|
|
3466
3438
|
const BLUR_BLOCK_CLASSES = 'absolute top-0 bottom-0 w-[84px]';
|
|
3467
3439
|
const CARD_FULL_VIEW_COUNT = 1;
|
|
3468
|
-
const InvestmentGallery = JSX(({
|
|
3440
|
+
const InvestmentGallery = JSX(({ cards = [], className = '', title, version = 'primary', ...rest }) => {
|
|
3469
3441
|
const [activeCardIndex, setActiveCardIndex] = useState(0);
|
|
3470
3442
|
const cardWidth = 525;
|
|
3471
|
-
return (jsxs(BlockWrapper, {
|
|
3472
|
-
${VersionStyleMap[version]}
|
|
3473
|
-
${className}`, ...rest, children: [title ? jsx(Heading, { headingType: "h3", className: "mb-9", title: title }) : null, jsxs("div", { children: [jsx("div", { className: "flex duration-1000 gap-3.5", style: { transform: `translateX(-${activeCardIndex * cardWidth}px)` }, role: "list", children: cards?.length
|
|
3474
|
-
? cards.map(renderInvestmentGalleryCard(context, className, version))
|
|
3475
|
-
: null }), renderNavButtons({
|
|
3443
|
+
return (jsxs(BlockWrapper, { className: `relative font-sans p-9 overflow-hidden text-center ${VersionStyleMap[version]} ${className}`, ...rest, children: [title ? jsx(Heading, { headingType: "h3", className: "mb-9", title: title }) : null, jsxs("div", { children: [jsx("div", { className: "flex duration-1000 gap-3.5", style: { transform: `translateX(-${activeCardIndex * cardWidth}px)` }, role: "list", children: cards?.length ? cards.map(renderInvestmentGalleryCard(className, version)) : null }), renderNavButtons({
|
|
3476
3444
|
cardsCount: cards.length,
|
|
3477
3445
|
activeCardIndex,
|
|
3478
3446
|
setActiveCardIndex,
|
|
3479
3447
|
})] }), jsx("div", { className: `${BLUR_BLOCK_CLASSES} left-0 ${version === 'secondary' ? 'bg-opacity-from-main' : 'bg-opacity-from-white'}` }), jsx("div", { className: `${BLUR_BLOCK_CLASSES} right-0 ${version === 'secondary' ? 'bg-opacity-to-main' : 'bg-opacity-to-white'}` })] }));
|
|
3480
3448
|
});
|
|
3481
|
-
const renderInvestmentGalleryCard = (
|
|
3449
|
+
const renderInvestmentGalleryCard = (className, version) => (card, i) => jsx(InvestmentGalleryCard, { className: className, version: version, ...card }, String(i));
|
|
3482
3450
|
const renderNavButtons = ({ cardsCount, activeCardIndex, setActiveCardIndex }) => {
|
|
3483
3451
|
const isUseSlider = cardsCount > CARD_FULL_VIEW_COUNT;
|
|
3484
3452
|
const showNextButton = isUseSlider && cardsCount - activeCardIndex > CARD_FULL_VIEW_COUNT;
|
|
@@ -3497,12 +3465,15 @@
|
|
|
3497
3465
|
Accordion,
|
|
3498
3466
|
AccordionItem,
|
|
3499
3467
|
BenefitsBlock,
|
|
3468
|
+
BusinessBlock,
|
|
3500
3469
|
Bonus,
|
|
3470
|
+
BonusBenefitsBlock,
|
|
3501
3471
|
CardTransfer,
|
|
3502
3472
|
ComparisonTable,
|
|
3503
3473
|
Calculator,
|
|
3504
3474
|
Catalog,
|
|
3505
3475
|
ContactsBlock,
|
|
3476
|
+
ErrorBlock,
|
|
3506
3477
|
ExchangeRateTile,
|
|
3507
3478
|
Footer,
|
|
3508
3479
|
Gallery,
|
|
@@ -3511,10 +3482,12 @@
|
|
|
3511
3482
|
Headline,
|
|
3512
3483
|
InsuranceAmountBlock,
|
|
3513
3484
|
InvestmentInfo,
|
|
3485
|
+
InvestmentGallery,
|
|
3514
3486
|
LinkDocs,
|
|
3515
3487
|
MiniGallery,
|
|
3516
3488
|
MobileAppTile,
|
|
3517
3489
|
PictureText,
|
|
3490
|
+
Placeholder,
|
|
3518
3491
|
ProductBlock,
|
|
3519
3492
|
ProductGallery,
|
|
3520
3493
|
ProductTile,
|
|
@@ -3524,16 +3497,13 @@
|
|
|
3524
3497
|
OtherProducts,
|
|
3525
3498
|
OtherProductsItem,
|
|
3526
3499
|
Recommendation,
|
|
3500
|
+
SafeDepositRental,
|
|
3527
3501
|
StepsBlock,
|
|
3502
|
+
Tabs,
|
|
3528
3503
|
TariffsTable,
|
|
3529
3504
|
TextBlock,
|
|
3530
3505
|
Tile,
|
|
3531
|
-
|
|
3532
|
-
BonusBenefitsBlock,
|
|
3533
|
-
SafeDepositRental,
|
|
3534
|
-
Tabs,
|
|
3535
|
-
ErrorBlock,
|
|
3536
|
-
InvestmentGallery,
|
|
3506
|
+
VerticalLayout,
|
|
3537
3507
|
};
|
|
3538
3508
|
|
|
3539
3509
|
function style2className(style) {
|
|
@@ -3575,30 +3545,27 @@
|
|
|
3575
3545
|
d: "M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77" }), jsx("path", { ...params, d: "M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z" })] }));
|
|
3576
3546
|
};
|
|
3577
3547
|
|
|
3578
|
-
const LikeControl = JSX(({ className
|
|
3579
|
-
const { useRouter, handlerDecorator = defaultHandlerDecorator } = context;
|
|
3548
|
+
const LikeControl = JSX(({ className = '' }) => {
|
|
3580
3549
|
const router = useRouter();
|
|
3581
3550
|
const likeService = useLikeService(router.pathname);
|
|
3582
|
-
return (jsxs(
|
|
3551
|
+
return (jsxs("div", { className: `border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${className}`, children: [jsx(LikeButton, { onClick: handlerDecorator(likeService.like), ariaLabel: "\u041F\u043E\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043E\u0442\u043C\u0435\u0442\u043A\u0443 \u00AB\u043B\u0430\u0439\u043A\u00BB" }), jsx(LikeButton, { onClick: handlerDecorator(likeService.dislike), className: "rotate-180", ariaLabel: "\u041F\u043E\u0441\u0442\u0430\u0432\u0438\u0442\u044C \u043E\u0442\u043C\u0435\u0442\u043A\u0443 \u00AB\u0434\u0438\u0437\u043B\u0430\u0439\u043A\u00BB" }), jsx("span", { className: "select-none", children: likeService.likeCount })] }));
|
|
3583
3552
|
});
|
|
3584
3553
|
|
|
3585
3554
|
const DEFAULT_SLOT_NAME = null;
|
|
3586
3555
|
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
}), {});
|
|
3598
|
-
}
|
|
3556
|
+
const renderSlots = ({ slots, parent, options, ancestors = [], }) => Object.entries(slots || {}).reduce((res, [slotName, slotBlocks]) => ({
|
|
3557
|
+
...res,
|
|
3558
|
+
[slotName]: renderBlocksList({
|
|
3559
|
+
blocks: slotBlocks,
|
|
3560
|
+
parent,
|
|
3561
|
+
slotName,
|
|
3562
|
+
options,
|
|
3563
|
+
ancestors,
|
|
3564
|
+
}),
|
|
3565
|
+
}), {});
|
|
3599
3566
|
|
|
3600
3567
|
function renderBlock({ block = {}, options, ancestors = [] }) {
|
|
3601
|
-
const { key, page, blockDecorator, blocksRegistry = {}
|
|
3568
|
+
const { key, page, blockDecorator, blocksRegistry = {} } = options;
|
|
3602
3569
|
const { type, slots, blocks: childBlocks } = block;
|
|
3603
3570
|
if (!(type && type in blocksRegistry)) {
|
|
3604
3571
|
console.warn(`No block with "${type}" is registered`);
|
|
@@ -3613,57 +3580,51 @@
|
|
|
3613
3580
|
ancestors,
|
|
3614
3581
|
// Adjusted by decorator block and blockClassName
|
|
3615
3582
|
render: ({ block: adjustedBlock, blockClassName: adjustedBlockClassName }) => {
|
|
3616
|
-
const {
|
|
3617
|
-
return BlockComponent ? (jsx(BlockComponent, {
|
|
3583
|
+
const { content } = adjustedBlock;
|
|
3584
|
+
return BlockComponent ? (jsx(BlockComponent, { page: page, block: adjustedBlock, className: adjustedBlockClassName, ancestors: ancestors, slots: blockSlots, ...content, children: children }, key)) : null;
|
|
3618
3585
|
},
|
|
3619
3586
|
}, key);
|
|
3620
3587
|
}
|
|
3621
3588
|
|
|
3622
|
-
const
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
const { renderChild = defaultChildRenderer } = BlockComponent || {};
|
|
3628
|
-
return blocks.map((_, j) => renderChild(renderBlock({
|
|
3629
|
-
block: _,
|
|
3630
|
-
options: { ...options, key: `${options.key ? options.key : _.type}-${j}` },
|
|
3631
|
-
ancestors: [...ancestors, [parent, slotName]],
|
|
3632
|
-
}), j));
|
|
3633
|
-
}
|
|
3589
|
+
const renderBlocksList = ({ blocks, parent, slotName = DEFAULT_SLOT_NAME, options, ancestors = [], }) => (blocks || []).map((_, j) => renderBlock({
|
|
3590
|
+
block: _,
|
|
3591
|
+
options: { ...options, key: `${options.key ? options.key : _.type}-${j}` },
|
|
3592
|
+
ancestors: [...ancestors, [parent, slotName]],
|
|
3593
|
+
}));
|
|
3634
3594
|
|
|
3635
3595
|
const defaultBlockDecorator = ({ blockClassName, block, render }) => render({ blockClassName, block });
|
|
3636
3596
|
const ContentPage = JSX((props) => {
|
|
3637
|
-
const { className = '', blocksRegistry, blockDecorator,
|
|
3597
|
+
const { className = '', blocksRegistry, blockDecorator, data = {} } = props;
|
|
3638
3598
|
const { style: pageStyle, blocks, slots, likeControl, colorPalette = 'pc' } = data;
|
|
3639
3599
|
const options = {
|
|
3640
3600
|
key: '',
|
|
3641
3601
|
blocksRegistry,
|
|
3642
3602
|
page: data,
|
|
3643
3603
|
blockDecorator: blockDecorator || defaultBlockDecorator,
|
|
3644
|
-
context,
|
|
3645
3604
|
};
|
|
3646
3605
|
const pageSlots = renderSlots({ slots, parent: data, options });
|
|
3647
|
-
return (jsxs("section", { className: `relative ${style2className(pageStyle)} ${className}`, "data-theme": colorPalette, children: [pageSlots?.header ? (jsx("div", { className: "mb-5 shadow-[0_8px_32px_0px_#00000014]", children: pageSlots.header })) : null, blocks?.length ? (jsxs("div", { className: "container grid grid-cols-12 gap-1", children: [renderBlocksList({ blocks, parent: data, options }), pageSlots?.footer ? pageSlots.footer : null] })) : null, likeControl ? renderLikeControl(
|
|
3606
|
+
return (jsxs("section", { className: `relative ${style2className(pageStyle)} ${className}`, "data-theme": colorPalette, children: [pageSlots?.header ? (jsx("div", { className: "mb-5 shadow-[0_8px_32px_0px_#00000014]", children: pageSlots.header })) : null, blocks?.length ? (jsxs("div", { className: "container grid grid-cols-12 gap-1", children: [renderBlocksList({ blocks, parent: data, options }), pageSlots?.footer ? pageSlots.footer : null] })) : null, likeControl ? renderLikeControl() : null] }));
|
|
3648
3607
|
});
|
|
3649
3608
|
ContentPage.childrenTypes = [];
|
|
3650
3609
|
ContentPage.slots = () => ['header', 'footer'];
|
|
3651
|
-
function renderLikeControl(
|
|
3652
|
-
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"
|
|
3610
|
+
function renderLikeControl() {
|
|
3611
|
+
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" }) }));
|
|
3653
3612
|
}
|
|
3654
3613
|
|
|
3655
|
-
const packageVersion = "0.6.
|
|
3614
|
+
const packageVersion = "0.6.27";
|
|
3656
3615
|
|
|
3657
3616
|
exports.Blocks = Blocks;
|
|
3658
3617
|
exports.ContentPage = ContentPage;
|
|
3659
3618
|
exports.DaDataAPI = DaDataAPI;
|
|
3660
3619
|
exports.LikeAPI = LikeAPI;
|
|
3620
|
+
exports.handlerDecorator = handlerDecorator;
|
|
3661
3621
|
exports.joinList = joinList;
|
|
3662
3622
|
exports.packageVersion = packageVersion;
|
|
3663
3623
|
exports.projectSettings = projectSettings;
|
|
3664
3624
|
exports.setup = setup;
|
|
3665
3625
|
exports.setupHooks = setupHooks;
|
|
3666
3626
|
exports.url = url;
|
|
3627
|
+
exports.useRouter = useRouter;
|
|
3667
3628
|
|
|
3668
3629
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3669
3630
|
|