@redneckz/wildless-cms-uni-blocks 0.14.162 → 0.14.164
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/migration-scripts/0.14.163.js +52 -0
- package/bundle/BlockRenderer/renderBlock.d.ts +1 -1
- package/bundle/BlockRenderer/renderChildren.d.ts +1 -1
- package/bundle/ProjectSettings.d.ts +2 -24
- package/bundle/UniBlock/UniBlock.d.ts +17 -0
- package/{dist/model/JSXBlock.d.ts → bundle/UniBlock/UniBlockProps.d.ts} +2 -14
- package/bundle/UniBlock/extractContent.d.ts +6 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +299 -404
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/AdTile/AdTile.d.ts +1 -1
- package/bundle/components/AdTile/AdTileContent.d.ts +1 -1
- package/bundle/components/ApplicationForm/ApplicationForm.d.ts +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/bundle/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -1
- package/bundle/components/BonusBenefitsBlock/BonusBenefitsBlock.d.ts +1 -1
- package/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +1 -1
- package/bundle/components/ButtonsBlock/ButtonsBlock.d.ts +1 -1
- package/bundle/components/Calculator/Calculator.d.ts +1 -1
- package/bundle/components/Calculator/Calculator.mobile.d.ts +1 -1
- package/bundle/components/CardTransfer/CardTransfer.d.ts +1 -1
- package/bundle/components/CardTransfer/CardTransferContent.d.ts +1 -1
- package/bundle/components/Carousel/Carousel.d.ts +2 -2
- package/bundle/components/Carousel/CarouselContent.d.ts +1 -1
- package/bundle/components/Carousel/renderCarouselCards.d.ts +1 -1
- package/bundle/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -1
- package/bundle/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.d.ts +1 -1
- package/bundle/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.d.ts +1 -1
- package/bundle/components/CarouselCard/CarouselCard.d.ts +1 -1
- package/bundle/components/CarouselCard/CarouselCardContent.d.ts +1 -1
- package/bundle/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +1 -1
- package/bundle/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +1 -1
- package/bundle/components/CarouselLinks/CarouselLinks.d.ts +1 -1
- package/bundle/components/CarouselLinks/CarouselLinks.mobile.d.ts +1 -1
- package/bundle/components/CarouselLinks/CarouselLinksContent.d.ts +1 -1
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +1 -1
- package/bundle/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
- package/bundle/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +1 -1
- package/bundle/components/ComparisonTable/ComparisonTable.d.ts +1 -1
- package/bundle/components/ComparisonTable/ComparisonTable.mobile.d.ts +1 -1
- package/bundle/components/ComparisonTable/ComparisonTableContent.d.ts +1 -1
- package/bundle/components/ComparisonTable/TableColumn.d.ts +1 -1
- package/bundle/components/ContactsBlock/ContactsBlock.d.ts +1 -1
- package/bundle/components/ContactsBlock/ContactsBlockContent.d.ts +1 -1
- package/bundle/components/ContentPage/ContentPage.d.ts +4 -4
- package/bundle/components/ContentPage/computeAPIFallback.d.ts +3 -4
- package/bundle/components/ContentPage/loadModuleFallback.d.ts +2 -0
- package/bundle/components/ContentPage/renderContentPageHead.d.ts +3 -2
- package/bundle/components/DepositFiltration/DepositFiltration.d.ts +2 -2
- package/bundle/components/Depository/Depository.d.ts +2 -2
- package/bundle/components/Depository/DepositoryContent.d.ts +1 -1
- package/bundle/components/ErrorBlock/ErrorBlock.d.ts +1 -1
- package/bundle/components/ErrorBlock/ErrorBlockContent.d.ts +1 -1
- package/bundle/components/ExchangeRateTile/ExchangeRateTile.d.ts +1 -1
- package/bundle/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +1 -1
- package/bundle/components/Footer/Contacts.d.ts +1 -1
- package/bundle/components/Footer/Footer.d.ts +1 -1
- package/bundle/components/Footer/Footer.mobile.d.ts +1 -1
- package/bundle/components/Footer/FooterContent.d.ts +6 -33
- package/bundle/components/Footer/FooterProps.d.ts +4 -1
- package/bundle/components/GracePeriod/GracePeriod.d.ts +1 -1
- package/bundle/components/GracePeriod/GracePeriodContent.d.ts +1 -1
- package/bundle/components/Header/Header.d.ts +1 -1
- package/bundle/components/Header/Header.mobile.d.ts +1 -1
- package/bundle/components/Header/HeaderContent.d.ts +3 -14
- package/bundle/components/Header/HeaderProps.d.ts +4 -1
- package/bundle/components/Header/HeaderSecondaryMenu.d.ts +2 -3
- package/bundle/components/Headline/Headline.d.ts +1 -1
- package/bundle/components/Headline/HeadlineContent.d.ts +1 -1
- package/bundle/components/HorizontalLayout/HorizontalLayout.d.ts +2 -2
- package/bundle/components/HorizontalLayout/HorizontalLayout.mobile.d.ts +2 -2
- package/bundle/components/HorizontalLayout/HorizontalLayoutContent.d.ts +1 -1
- package/bundle/components/ImgBlock/ImgBlock.d.ts +1 -1
- package/bundle/components/ImgBlock/ImgBlockContent.d.ts +1 -1
- package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +1 -1
- package/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +1 -1
- package/bundle/components/InvestmentInfo/InvestmentInfo.d.ts +1 -1
- package/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +1 -1
- package/bundle/components/LinkDocs/LinkDocs.d.ts +1 -1
- package/bundle/components/LinkDocs/LinkDocsContent.d.ts +1 -1
- package/bundle/components/MobileAppTile/MobileAppTile.d.ts +1 -1
- package/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
- package/bundle/components/MortgageFiltration/MortgageFiltration.d.ts +2 -2
- package/bundle/components/OfficesAtmsMap/OfficesAtmsMap.d.ts +1 -1
- package/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -1
- package/bundle/components/Placeholder/Placeholder.d.ts +1 -1
- package/bundle/components/Placeholder/PlaceholderContent.d.ts +1 -1
- package/bundle/components/ProductBlock/ProductBlock.d.ts +2 -2
- package/bundle/components/ProductBlock/ProductBlockContent.d.ts +1 -1
- package/bundle/components/ProductGallery/ProductGallery.d.ts +1 -1
- package/bundle/components/ProductGallery/ProductGallery.mobile.d.ts +1 -1
- package/bundle/components/ProductGallery/ProductGalleryContent.d.ts +1 -1
- package/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +1 -1
- package/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +1 -1
- package/bundle/components/RichTextBlock/RichTextBlock.d.ts +1 -1
- package/bundle/components/RichTextBlock/RichTextBlockContent.d.ts +1 -1
- package/bundle/components/RollupItem/RollupItem.d.ts +2 -2
- package/bundle/components/RollupItem/RollupItemContent.d.ts +1 -1
- package/bundle/components/SafeDepositRental/SafeDepositRental.d.ts +1 -1
- package/bundle/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -1
- package/bundle/components/StepsBlock/StepsBlock.d.ts +1 -1
- package/bundle/components/StepsBlock/StepsBlock.mobile.d.ts +1 -1
- package/bundle/components/StepsBlock/StepsBlockContent.d.ts +1 -1
- package/bundle/{ui-kit → components}/StickyBottomMenu/BurgerMenuDialog.d.ts +2 -3
- package/bundle/components/StickyBottomMenu/StickyBottomMenu.mobile.d.ts +2 -0
- package/bundle/components/StickyBottomMenu/StickyBottomMenuContent.d.ts +5 -0
- package/{lib/ui-kit → bundle/components}/StickyBottomMenu/StickyBottomMenuItem.d.ts +2 -2
- package/bundle/components/StickyBottomMenu/StickyBottomMenuProps.d.ts +7 -0
- package/bundle/{ui-kit → components}/StickyBottomMenu/TopItemMobile.d.ts +2 -2
- package/bundle/components/StickyBottomMenu/useBurgerMenuDialog.d.ts +7 -0
- package/bundle/components/SwipeListControlBlock/SwipeListControlBlock.d.ts +2 -2
- package/bundle/components/Tabs/Tabs.d.ts +1 -1
- package/bundle/components/Tabs/TabsContent.d.ts +1 -1
- package/bundle/components/TabsLayout/TabsLayout.d.ts +2 -2
- package/bundle/components/TabsLayout/TabsLayoutContent.d.ts +1 -1
- package/bundle/components/TariffsTable/TariffsTable.d.ts +1 -1
- package/bundle/components/TariffsTable/TariffsTableCell.d.ts +1 -1
- package/bundle/components/TariffsTable/TariffsTableContent.d.ts +1 -1
- package/bundle/components/TariffsTable/TariffsTableRow.d.ts +1 -1
- package/bundle/components/TariffsTable/TariffsTableRowContainer.d.ts +1 -1
- package/bundle/components/TariffsTable/TariffsTableTileCell.d.ts +1 -1
- package/bundle/components/TextBlock/TextBlock.d.ts +1 -1
- package/bundle/components/TextBlock/TextBlockContent.d.ts +1 -1
- package/bundle/components/UnitBlock/UnitBlock.d.ts +1 -1
- package/bundle/components/UnitBlock/UnitBlockContent.d.ts +1 -1
- package/bundle/components/VerticalLayout/VerticalLayout.d.ts +2 -2
- package/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +1 -1
- package/bundle/components/Video/Video.d.ts +1 -1
- package/bundle/components/Video/VideoContent.d.ts +1 -1
- package/bundle/content-page-repository/computeImgOutputPath.d.ts +1 -1
- package/bundle/data/FooterData.d.ts +35 -0
- package/bundle/data/JSONRefObject.d.ts +4 -0
- package/bundle/data/PortalData.d.ts +3 -0
- package/{dist/services/sitemap → bundle/data}/SitemapData.d.ts +4 -5
- package/bundle/data/StickyMobileData.d.ts +15 -0
- package/bundle/hooks/useJSONRef/fetchRefs.d.ts +2 -0
- package/bundle/hooks/useJSONRef/useJSONRef.d.ts +1 -0
- package/bundle/index.d.ts +0 -1
- package/bundle/model/AlignStyles.d.ts +1 -0
- package/bundle/model/BlocksRegistry.d.ts +2 -2
- package/bundle/model/ContentPageBase.d.ts +21 -0
- package/bundle/model/ContentPageDef.d.ts +8 -23
- package/bundle/model/ContentPageMeta.d.ts +100 -0
- package/bundle/model/Picture.d.ts +0 -16
- package/bundle/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +1 -1
- package/bundle/ui-kit/BaseProductTile/BaseProductTile.d.ts +1 -1
- package/bundle/ui-kit/BaseTile/BaseTile.d.ts +1 -1
- package/bundle/ui-kit/BlockWrapper.d.ts +1 -1
- package/bundle/ui-kit/DialogManager/isDialogOpen.d.ts +1 -1
- package/bundle/ui-kit/Foldable/DefaultFoldButton.d.ts +1 -1
- package/bundle/ui-kit/LocationDialog/LocationDialog.d.ts +6 -2
- package/bundle/ui-kit/LocationDialog/renderForeignOffices.d.ts +1 -1
- package/bundle/ui-kit/LocationDialog/useLocationDialog.d.ts +2 -1
- package/bundle/ui-kit/SearchBar/SearchBar.d.ts +2 -1
- package/bundle/ui-kit/SearchDialog/SearchDialog.d.ts +2 -0
- package/bundle/ui-kit/SearchDialog/useSearchDialog.d.ts +1 -1
- package/bundle/ui-kit/Sitemap/Sitemap.d.ts +1 -1
- package/bundle/ui-kit/TextWithIcon/TextWithIcon.d.ts +1 -1
- package/dist/BlockRenderer/renderBlock.d.ts +1 -1
- package/dist/BlockRenderer/renderChildren.d.ts +1 -1
- package/dist/ProjectSettings.d.ts +2 -24
- package/dist/ProjectSettings.js +10 -47
- package/dist/ProjectSettings.js.map +1 -1
- package/dist/UniBlock/UniBlock.d.ts +17 -0
- package/dist/UniBlock/UniBlock.js +17 -0
- package/dist/UniBlock/UniBlock.js.map +1 -0
- package/{bundle/model/JSXBlock.d.ts → dist/UniBlock/UniBlockProps.d.ts} +2 -14
- package/dist/UniBlock/UniBlockProps.js +2 -0
- package/dist/UniBlock/UniBlockProps.js.map +1 -0
- package/dist/UniBlock/extractContent.d.ts +6 -0
- package/dist/UniBlock/extractContent.js +5 -0
- package/dist/UniBlock/extractContent.js.map +1 -0
- package/dist/components/AdTile/AdTile.d.ts +1 -1
- package/dist/components/AdTile/AdTile.js +5 -2
- package/dist/components/AdTile/AdTile.js.map +1 -1
- package/dist/components/AdTile/AdTileContent.d.ts +1 -1
- package/dist/components/ApplicationForm/ApplicationForm.d.ts +1 -1
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/dist/components/ApplicationForm/ApplicationFormUltraPremium.js +0 -1
- package/dist/components/ApplicationForm/ApplicationFormUltraPremium.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -1
- package/dist/components/Blocks.js +2 -0
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.js +2 -0
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.d.ts +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +1 -1
- package/dist/components/ButtonsBlock/ButtonsBlock.d.ts +1 -1
- package/dist/components/ButtonsBlock/ButtonsBlock.js.map +1 -1
- package/dist/components/Calculator/Calculator.d.ts +1 -1
- package/dist/components/Calculator/Calculator.js.map +1 -1
- package/dist/components/Calculator/Calculator.mobile.d.ts +1 -1
- package/dist/components/Calculator/Calculator.mobile.js.map +1 -1
- package/dist/components/CardTransfer/CardTransfer.d.ts +1 -1
- package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/dist/components/CardTransfer/CardTransferContent.d.ts +1 -1
- package/dist/components/Carousel/Carousel.d.ts +2 -2
- package/dist/components/Carousel/Carousel.js +18 -17
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/Carousel/CarouselContent.d.ts +1 -1
- package/dist/components/Carousel/renderCarouselCards.d.ts +1 -1
- package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -1
- package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
- package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.d.ts +1 -1
- package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.js.map +1 -1
- package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.d.ts +1 -1
- package/dist/components/CarouselCard/CarouselCard.d.ts +1 -1
- package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/dist/components/CarouselCard/CarouselCardContent.d.ts +1 -1
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +1 -1
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +1 -1
- package/dist/components/CarouselLinks/CarouselLinks.d.ts +1 -1
- package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/dist/components/CarouselLinks/CarouselLinks.mobile.d.ts +1 -1
- package/dist/components/CarouselLinks/CarouselLinks.mobile.js.map +1 -1
- package/dist/components/CarouselLinks/CarouselLinksContent.d.ts +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.d.ts +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.mobile.d.ts +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTableContent.d.ts +1 -1
- package/dist/components/ComparisonTable/TableColumn.d.ts +1 -1
- package/dist/components/ComparisonTable/TableColumn.js.map +1 -1
- package/dist/components/ContactsBlock/ContactsBlock.d.ts +1 -1
- package/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/dist/components/ContactsBlock/ContactsBlockContent.d.ts +1 -1
- package/dist/components/ContentPage/ContentPage.d.ts +4 -4
- package/dist/components/ContentPage/ContentPage.js +21 -11
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/ContentPage/ContentPage.page.json +18 -2
- package/dist/components/ContentPage/computeAPIFallback.d.ts +3 -4
- package/dist/components/ContentPage/computeAPIFallback.js +28 -46
- package/dist/components/ContentPage/computeAPIFallback.js.map +1 -1
- package/dist/components/ContentPage/loadModuleFallback.d.ts +2 -0
- package/dist/components/ContentPage/loadModuleFallback.js +36 -0
- package/dist/components/ContentPage/loadModuleFallback.js.map +1 -0
- package/dist/components/ContentPage/mapSlot.js +1 -4
- package/dist/components/ContentPage/mapSlot.js.map +1 -1
- package/dist/components/ContentPage/renderContentPageHead.d.ts +3 -2
- package/dist/components/ContentPage/renderContentPageHead.js.map +1 -1
- package/dist/components/ContentPage/useContentPageData.js +1 -1
- package/dist/components/ContentPage/useContentPageData.js.map +1 -1
- package/dist/components/DepositFiltration/DepositFiltration.d.ts +2 -2
- package/dist/components/DepositFiltration/DepositFiltration.js +11 -11
- package/dist/components/DepositFiltration/DepositFiltration.js.map +1 -1
- package/dist/components/Depository/Depository.d.ts +2 -2
- package/dist/components/Depository/Depository.js +2 -2
- package/dist/components/Depository/Depository.js.map +1 -1
- package/dist/components/Depository/DepositoryContent.d.ts +1 -1
- package/dist/components/ErrorBlock/ErrorBlock.d.ts +1 -1
- package/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/dist/components/ErrorBlock/ErrorBlockContent.d.ts +1 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTile.d.ts +1 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +1 -1
- package/dist/components/Footer/Contacts.d.ts +1 -1
- package/dist/components/Footer/Contacts.js.map +1 -1
- package/dist/components/Footer/Footer.d.ts +1 -1
- package/dist/components/Footer/Footer.js +6 -10
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.d.ts +1 -1
- package/dist/components/Footer/Footer.mobile.js +6 -9
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Footer/FooterContent.d.ts +6 -33
- package/dist/components/Footer/FooterProps.d.ts +4 -1
- package/dist/components/Footer/HorizontalNavigation.js +1 -3
- package/dist/components/Footer/HorizontalNavigation.js.map +1 -1
- package/dist/components/GracePeriod/GracePeriod.d.ts +1 -1
- package/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/dist/components/GracePeriod/GracePeriodContent.d.ts +1 -1
- package/dist/components/Header/Header.d.ts +1 -1
- package/dist/components/Header/Header.js +6 -12
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Header/Header.mobile.d.ts +1 -1
- package/dist/components/Header/Header.mobile.js +4 -11
- package/dist/components/Header/Header.mobile.js.map +1 -1
- package/dist/components/Header/HeaderContent.d.ts +3 -14
- package/dist/components/Header/HeaderProps.d.ts +4 -1
- package/dist/components/Header/HeaderSecondaryMenu.d.ts +2 -3
- package/dist/components/Header/HeaderSecondaryMenu.js +5 -8
- package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/dist/components/Headline/Headline.d.ts +1 -1
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/Headline/HeadlineContent.d.ts +1 -1
- package/dist/components/HorizontalLayout/HorizontalLayout.d.ts +2 -2
- package/dist/components/HorizontalLayout/HorizontalLayout.js +5 -6
- package/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/dist/components/HorizontalLayout/HorizontalLayout.mobile.d.ts +2 -2
- package/dist/components/HorizontalLayout/HorizontalLayout.mobile.js +2 -3
- package/dist/components/HorizontalLayout/HorizontalLayout.mobile.js.map +1 -1
- package/dist/components/HorizontalLayout/HorizontalLayoutContent.d.ts +1 -1
- package/dist/components/ImgBlock/ImgBlock.d.ts +1 -1
- package/dist/components/ImgBlock/ImgBlock.js.map +1 -1
- package/dist/components/ImgBlock/ImgBlockContent.d.ts +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +1 -1
- package/dist/components/InvestmentInfo/InvestmentInfo.d.ts +1 -1
- package/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +1 -1
- package/dist/components/LinkDocs/LinkDocs.d.ts +1 -1
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsContent.d.ts +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.d.ts +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
- package/dist/components/MortgageFiltration/MortgageFiltration.d.ts +2 -2
- package/dist/components/MortgageFiltration/MortgageFiltration.js +5 -4
- package/dist/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
- package/dist/components/OfficesAtmsMap/OfficesAtmsMap.d.ts +1 -1
- package/dist/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -1
- package/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -1
- package/dist/components/Placeholder/Placeholder.d.ts +1 -1
- package/dist/components/Placeholder/Placeholder.js.map +1 -1
- package/dist/components/Placeholder/PlaceholderContent.d.ts +1 -1
- package/dist/components/ProductBlock/ProductBlock.d.ts +2 -2
- package/dist/components/ProductBlock/ProductBlock.js +2 -3
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -1
- package/dist/components/ProductGallery/ProductGallery.d.ts +1 -1
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/ProductGallery/ProductGallery.mobile.d.ts +1 -1
- package/dist/components/ProductGallery/ProductGallery.mobile.js.map +1 -1
- package/dist/components/ProductGallery/ProductGalleryContent.d.ts +1 -1
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +1 -1
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +1 -1
- package/dist/components/RichTextBlock/RichTextBlock.d.ts +1 -1
- package/dist/components/RichTextBlock/RichTextBlock.js.map +1 -1
- package/dist/components/RichTextBlock/RichTextBlockContent.d.ts +1 -1
- package/dist/components/RollupItem/RollupItem.d.ts +2 -2
- package/dist/components/RollupItem/RollupItem.js +5 -6
- package/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/dist/components/RollupItem/RollupItemContent.d.ts +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRental.d.ts +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -1
- package/dist/components/StepsBlock/StepsBlock.d.ts +1 -1
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.d.ts +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlockContent.d.ts +1 -1
- package/{mobile/dist/ui-kit → dist/components}/StickyBottomMenu/ActiveSubMenuItem.js +2 -2
- package/dist/components/StickyBottomMenu/ActiveSubMenuItem.js.map +1 -0
- package/dist/{ui-kit → components}/StickyBottomMenu/BurgerMenuDialog.d.ts +2 -3
- package/{mobile/dist/ui-kit → dist/components}/StickyBottomMenu/BurgerMenuDialog.js +14 -14
- package/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -0
- package/dist/components/StickyBottomMenu/StickyBottomMenu.js +6 -0
- package/dist/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -0
- package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.d.ts +2 -0
- package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js +21 -0
- package/dist/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -0
- package/dist/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuBurger.js +1 -1
- package/dist/components/StickyBottomMenu/StickyBottomMenuBurger.js.map +1 -0
- package/dist/components/StickyBottomMenu/StickyBottomMenuContent.d.ts +5 -0
- package/dist/components/StickyBottomMenu/StickyBottomMenuContent.js.map +1 -0
- package/{mobile/bundle/ui-kit → dist/components}/StickyBottomMenu/StickyBottomMenuItem.d.ts +2 -2
- package/{mobile/dist/ui-kit → dist/components}/StickyBottomMenu/StickyBottomMenuItem.js +1 -1
- package/dist/components/StickyBottomMenu/StickyBottomMenuItem.js.map +1 -0
- package/dist/components/StickyBottomMenu/StickyBottomMenuProps.d.ts +7 -0
- package/dist/components/StickyBottomMenu/StickyBottomMenuProps.js.map +1 -0
- package/dist/{ui-kit → components}/StickyBottomMenu/TopItemMobile.d.ts +2 -2
- package/dist/components/StickyBottomMenu/TopItemMobile.js.map +1 -0
- package/dist/components/StickyBottomMenu/useBurgerMenuDialog.d.ts +7 -0
- package/dist/{ui-kit → components}/StickyBottomMenu/useBurgerMenuDialog.js +8 -9
- package/dist/components/StickyBottomMenu/useBurgerMenuDialog.js.map +1 -0
- package/dist/components/SwipeListControlBlock/SwipeListControlBlock.d.ts +2 -2
- package/dist/components/SwipeListControlBlock/SwipeListControlBlock.js +2 -5
- package/dist/components/SwipeListControlBlock/SwipeListControlBlock.js.map +1 -1
- package/dist/components/Tabs/Tabs.d.ts +1 -1
- package/dist/components/Tabs/Tabs.js.map +1 -1
- package/dist/components/Tabs/TabsContent.d.ts +1 -1
- package/dist/components/TabsLayout/TabsLayout.d.ts +2 -2
- package/dist/components/TabsLayout/TabsLayout.js +5 -4
- package/dist/components/TabsLayout/TabsLayout.js.map +1 -1
- package/dist/components/TabsLayout/TabsLayoutContent.d.ts +1 -1
- package/dist/components/TariffsTable/TariffsTable.d.ts +1 -1
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableCell.d.ts +1 -1
- package/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -1
- package/dist/components/TariffsTable/TariffsTableRow.d.ts +1 -1
- package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableRowContainer.d.ts +1 -1
- package/dist/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableTileCell.d.ts +1 -1
- package/dist/components/TextBlock/TextBlock.d.ts +1 -1
- package/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/dist/components/TextBlock/TextBlockContent.d.ts +1 -1
- package/dist/components/UnitBlock/UnitBlock.d.ts +1 -1
- package/dist/components/UnitBlock/UnitBlock.js.map +1 -1
- package/dist/components/UnitBlock/UnitBlockContent.d.ts +1 -1
- package/dist/components/VerticalLayout/VerticalLayout.d.ts +2 -2
- package/dist/components/VerticalLayout/VerticalLayout.js +3 -4
- package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +1 -1
- package/dist/components/Video/Video.d.ts +1 -1
- package/dist/components/Video/Video.js.map +1 -1
- package/dist/components/Video/VideoContent.d.ts +1 -1
- package/dist/content-page-repository/computeImgOutputPath.d.ts +1 -1
- package/dist/content-page-repository/computeImgOutputPath.js +2 -2
- package/dist/content-page-repository/computeImgOutputPath.js.map +1 -1
- package/dist/content-page-repository/transformContentPage.js +2 -4
- package/dist/content-page-repository/transformContentPage.js.map +1 -1
- package/dist/content-page-repository/transformImg.js +2 -3
- package/dist/content-page-repository/transformImg.js.map +1 -1
- package/dist/data/FooterData.d.ts +35 -0
- package/{mobile/dist/model/JSXBlock.js → dist/data/FooterData.js} +1 -1
- package/dist/data/FooterData.js.map +1 -0
- package/dist/data/JSONRefObject.d.ts +4 -0
- package/dist/data/JSONRefObject.js +2 -0
- package/dist/data/JSONRefObject.js.map +1 -0
- package/dist/data/PortalData.d.ts +3 -0
- package/dist/{model/JSXBlock.js → data/PortalData.js} +1 -1
- package/dist/data/PortalData.js.map +1 -0
- package/{lib/services/sitemap → dist/data}/SitemapData.d.ts +4 -5
- package/dist/data/SitemapData.js.map +1 -0
- package/dist/data/StickyMobileData.d.ts +15 -0
- package/dist/data/StickyMobileData.js +2 -0
- package/dist/data/StickyMobileData.js.map +1 -0
- package/dist/hooks/useJSONRef/fetchRefs.d.ts +2 -0
- package/dist/hooks/useJSONRef/fetchRefs.js +16 -0
- package/dist/hooks/useJSONRef/fetchRefs.js.map +1 -0
- package/dist/hooks/useJSONRef/useJSONRef.d.ts +1 -0
- package/dist/hooks/useJSONRef/useJSONRef.js +19 -0
- package/dist/hooks/useJSONRef/useJSONRef.js.map +1 -0
- package/dist/hooks/useSWRResource.js +1 -3
- package/dist/hooks/useSWRResource.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +1 -3
- package/dist/index.js.map +1 -1
- package/dist/model/AlignStyles.d.ts +1 -0
- package/dist/model/AlignStyles.js +1 -0
- package/dist/model/AlignStyles.js.map +1 -1
- package/dist/model/BlocksRegistry.d.ts +2 -2
- package/dist/model/ContentPageBase.d.ts +21 -0
- package/dist/{components/Footer/FooterDataProps.js → model/ContentPageBase.js} +1 -1
- package/dist/model/ContentPageBase.js.map +1 -0
- package/dist/model/ContentPageDef.d.ts +8 -23
- package/dist/model/ContentPageMeta.d.ts +100 -0
- package/{mobile/dist/components/Footer/FooterDataProps.js → dist/model/ContentPageMeta.js} +1 -1
- package/dist/model/ContentPageMeta.js.map +1 -0
- package/dist/model/Picture.d.ts +0 -16
- package/dist/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +1 -1
- package/dist/ui-kit/BaseProductTile/BaseProductTile.d.ts +1 -1
- package/dist/ui-kit/BaseTile/BaseTile.d.ts +1 -1
- package/dist/ui-kit/BlockWrapper.d.ts +1 -1
- package/dist/ui-kit/DialogManager/isDialogOpen.d.ts +1 -1
- package/dist/ui-kit/DialogManager/isDialogOpen.js +1 -1
- package/dist/ui-kit/DialogManager/isDialogOpen.js.map +1 -1
- package/dist/ui-kit/Foldable/DefaultFoldButton.d.ts +1 -1
- package/dist/ui-kit/LocationDialog/LocationDialog.d.ts +6 -2
- package/dist/ui-kit/LocationDialog/LocationDialog.js +1 -3
- package/dist/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
- package/dist/ui-kit/LocationDialog/renderForeignOffices.d.ts +1 -1
- package/dist/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
- package/dist/ui-kit/LocationDialog/useLocationDialog.d.ts +2 -1
- package/dist/ui-kit/LocationDialog/useLocationDialog.js +2 -2
- package/dist/ui-kit/LocationDialog/useLocationDialog.js.map +1 -1
- package/dist/ui-kit/SearchBar/SearchBar.d.ts +2 -1
- package/dist/ui-kit/SearchBar/SearchBar.js +4 -4
- package/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/dist/ui-kit/SearchDialog/SearchDialog.d.ts +2 -0
- package/dist/ui-kit/SearchDialog/SearchDialog.js +1 -12
- package/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
- package/dist/ui-kit/SearchDialog/useSearchDialog.d.ts +1 -1
- package/dist/ui-kit/SearchDialog/useSearchDialog.js +2 -2
- package/dist/ui-kit/SearchDialog/useSearchDialog.js.map +1 -1
- package/dist/ui-kit/Sitemap/Sitemap.d.ts +1 -1
- package/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/dist/ui-kit/TextWithIcon/TextWithIcon.d.ts +1 -1
- package/dist/wlc.json +0 -2
- package/lib/BlockRenderer/renderBlock.d.ts +1 -1
- package/lib/BlockRenderer/renderChildren.d.ts +1 -1
- package/lib/ProjectSettings.d.ts +2 -24
- package/lib/ProjectSettings.js +10 -47
- package/lib/ProjectSettings.js.map +1 -1
- package/lib/UniBlock/UniBlock.d.ts +17 -0
- package/lib/UniBlock/UniBlock.js +14 -0
- package/lib/UniBlock/UniBlock.js.map +1 -0
- package/{mobile/bundle/model/JSXBlock.d.ts → lib/UniBlock/UniBlockProps.d.ts} +2 -14
- package/lib/UniBlock/UniBlockProps.js +2 -0
- package/lib/UniBlock/UniBlockProps.js.map +1 -0
- package/lib/UniBlock/extractContent.d.ts +6 -0
- package/lib/UniBlock/extractContent.js +2 -0
- package/lib/UniBlock/extractContent.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/AdTile/AdTile.d.ts +1 -1
- package/lib/components/AdTile/AdTile.js +5 -2
- package/lib/components/AdTile/AdTile.js.map +1 -1
- package/lib/components/AdTile/AdTileContent.d.ts +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.d.ts +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/lib/components/ApplicationForm/ApplicationFormUltraPremium.js +0 -1
- package/lib/components/ApplicationForm/ApplicationFormUltraPremium.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -1
- package/lib/components/Blocks.js +2 -0
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.js +2 -0
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.d.ts +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +1 -1
- package/lib/components/ButtonsBlock/ButtonsBlock.d.ts +1 -1
- package/lib/components/ButtonsBlock/ButtonsBlock.js.map +1 -1
- package/lib/components/Calculator/Calculator.d.ts +1 -1
- package/lib/components/Calculator/Calculator.js.map +1 -1
- package/lib/components/Calculator/Calculator.mobile.d.ts +1 -1
- package/lib/components/Calculator/Calculator.mobile.js.map +1 -1
- package/lib/components/CardTransfer/CardTransfer.d.ts +1 -1
- package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/lib/components/CardTransfer/CardTransferContent.d.ts +1 -1
- package/lib/components/Carousel/Carousel.d.ts +2 -2
- package/lib/components/Carousel/Carousel.js +18 -17
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/Carousel/CarouselContent.d.ts +1 -1
- package/lib/components/Carousel/renderCarouselCards.d.ts +1 -1
- package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -1
- package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
- package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.d.ts +1 -1
- package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.js.map +1 -1
- package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.d.ts +1 -1
- package/lib/components/CarouselCard/CarouselCard.d.ts +1 -1
- package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/lib/components/CarouselCard/CarouselCardContent.d.ts +1 -1
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +1 -1
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +1 -1
- package/lib/components/CarouselLinks/CarouselLinks.d.ts +1 -1
- package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/lib/components/CarouselLinks/CarouselLinks.mobile.d.ts +1 -1
- package/lib/components/CarouselLinks/CarouselLinks.mobile.js.map +1 -1
- package/lib/components/CarouselLinks/CarouselLinksContent.d.ts +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.d.ts +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.mobile.d.ts +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.mobile.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTableContent.d.ts +1 -1
- package/lib/components/ComparisonTable/TableColumn.d.ts +1 -1
- package/lib/components/ComparisonTable/TableColumn.js.map +1 -1
- package/lib/components/ContactsBlock/ContactsBlock.d.ts +1 -1
- package/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/lib/components/ContactsBlock/ContactsBlockContent.d.ts +1 -1
- package/lib/components/ContentPage/ContentPage.d.ts +4 -4
- package/lib/components/ContentPage/ContentPage.js +21 -11
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/ContentPage/ContentPage.page.json +18 -2
- package/lib/components/ContentPage/computeAPIFallback.d.ts +3 -4
- package/lib/components/ContentPage/computeAPIFallback.js +26 -19
- package/lib/components/ContentPage/computeAPIFallback.js.map +1 -1
- package/lib/components/ContentPage/loadModuleFallback.d.ts +2 -0
- package/lib/components/ContentPage/loadModuleFallback.js +10 -0
- package/lib/components/ContentPage/loadModuleFallback.js.map +1 -0
- package/lib/components/ContentPage/mapSlot.js +1 -4
- package/lib/components/ContentPage/mapSlot.js.map +1 -1
- package/lib/components/ContentPage/renderContentPageHead.d.ts +3 -2
- package/lib/components/ContentPage/renderContentPageHead.js.map +1 -1
- package/lib/components/ContentPage/useContentPageData.js +1 -1
- package/lib/components/ContentPage/useContentPageData.js.map +1 -1
- package/lib/components/DepositFiltration/DepositFiltration.d.ts +2 -2
- package/lib/components/DepositFiltration/DepositFiltration.js +11 -11
- package/lib/components/DepositFiltration/DepositFiltration.js.map +1 -1
- package/lib/components/Depository/Depository.d.ts +2 -2
- package/lib/components/Depository/Depository.js +2 -2
- package/lib/components/Depository/Depository.js.map +1 -1
- package/lib/components/Depository/DepositoryContent.d.ts +1 -1
- package/lib/components/ErrorBlock/ErrorBlock.d.ts +1 -1
- package/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/lib/components/ErrorBlock/ErrorBlockContent.d.ts +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTile.d.ts +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +1 -1
- package/lib/components/Footer/Contacts.d.ts +1 -1
- package/lib/components/Footer/Contacts.js.map +1 -1
- package/lib/components/Footer/Footer.d.ts +1 -1
- package/lib/components/Footer/Footer.js +6 -10
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.d.ts +1 -1
- package/lib/components/Footer/Footer.mobile.js +6 -9
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Footer/FooterContent.d.ts +6 -33
- package/lib/components/Footer/FooterProps.d.ts +4 -1
- package/lib/components/Footer/HorizontalNavigation.js +1 -3
- package/lib/components/Footer/HorizontalNavigation.js.map +1 -1
- package/lib/components/GracePeriod/GracePeriod.d.ts +1 -1
- package/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/lib/components/GracePeriod/GracePeriodContent.d.ts +1 -1
- package/lib/components/Header/Header.d.ts +1 -1
- package/lib/components/Header/Header.js +6 -12
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/Header.mobile.d.ts +1 -1
- package/lib/components/Header/Header.mobile.js +4 -11
- package/lib/components/Header/Header.mobile.js.map +1 -1
- package/lib/components/Header/HeaderContent.d.ts +3 -14
- package/lib/components/Header/HeaderProps.d.ts +4 -1
- package/lib/components/Header/HeaderSecondaryMenu.d.ts +2 -3
- package/lib/components/Header/HeaderSecondaryMenu.js +5 -8
- package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/lib/components/Headline/Headline.d.ts +1 -1
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/Headline/HeadlineContent.d.ts +1 -1
- package/lib/components/HorizontalLayout/HorizontalLayout.d.ts +2 -2
- package/lib/components/HorizontalLayout/HorizontalLayout.js +5 -6
- package/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/lib/components/HorizontalLayout/HorizontalLayout.mobile.d.ts +2 -2
- package/lib/components/HorizontalLayout/HorizontalLayout.mobile.js +2 -3
- package/lib/components/HorizontalLayout/HorizontalLayout.mobile.js.map +1 -1
- package/lib/components/HorizontalLayout/HorizontalLayoutContent.d.ts +1 -1
- package/lib/components/ImgBlock/ImgBlock.d.ts +1 -1
- package/lib/components/ImgBlock/ImgBlock.js.map +1 -1
- package/lib/components/ImgBlock/ImgBlockContent.d.ts +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +1 -1
- package/lib/components/InvestmentInfo/InvestmentInfo.d.ts +1 -1
- package/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +1 -1
- package/lib/components/LinkDocs/LinkDocs.d.ts +1 -1
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsContent.d.ts +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.d.ts +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
- package/lib/components/MortgageFiltration/MortgageFiltration.d.ts +2 -2
- package/lib/components/MortgageFiltration/MortgageFiltration.js +5 -4
- package/lib/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMap.d.ts +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -1
- package/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -1
- package/lib/components/Placeholder/Placeholder.d.ts +1 -1
- package/lib/components/Placeholder/Placeholder.js.map +1 -1
- package/lib/components/Placeholder/PlaceholderContent.d.ts +1 -1
- package/lib/components/ProductBlock/ProductBlock.d.ts +2 -2
- package/lib/components/ProductBlock/ProductBlock.js +2 -3
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -1
- package/lib/components/ProductGallery/ProductGallery.d.ts +1 -1
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/ProductGallery/ProductGallery.mobile.d.ts +1 -1
- package/lib/components/ProductGallery/ProductGallery.mobile.js.map +1 -1
- package/lib/components/ProductGallery/ProductGalleryContent.d.ts +1 -1
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +1 -1
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +1 -1
- package/lib/components/RichTextBlock/RichTextBlock.d.ts +1 -1
- package/lib/components/RichTextBlock/RichTextBlock.js.map +1 -1
- package/lib/components/RichTextBlock/RichTextBlockContent.d.ts +1 -1
- package/lib/components/RollupItem/RollupItem.d.ts +2 -2
- package/lib/components/RollupItem/RollupItem.js +5 -6
- package/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/lib/components/RollupItem/RollupItemContent.d.ts +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRental.d.ts +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -1
- package/lib/components/StepsBlock/StepsBlock.d.ts +1 -1
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.d.ts +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlockContent.d.ts +1 -1
- package/{mobile/lib/ui-kit → lib/components}/StickyBottomMenu/ActiveSubMenuItem.js +2 -2
- package/lib/components/StickyBottomMenu/ActiveSubMenuItem.js.map +1 -0
- package/lib/{ui-kit → components}/StickyBottomMenu/BurgerMenuDialog.d.ts +2 -3
- package/lib/{ui-kit → components}/StickyBottomMenu/BurgerMenuDialog.js +14 -14
- package/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -0
- package/lib/components/StickyBottomMenu/StickyBottomMenu.js +4 -0
- package/lib/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -0
- package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.d.ts +2 -0
- package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js +19 -0
- package/lib/components/StickyBottomMenu/StickyBottomMenu.mobile.js.map +1 -0
- package/{mobile/lib/ui-kit → lib/components}/StickyBottomMenu/StickyBottomMenuBurger.js +1 -1
- package/lib/components/StickyBottomMenu/StickyBottomMenuBurger.js.map +1 -0
- package/lib/components/StickyBottomMenu/StickyBottomMenuContent.d.ts +5 -0
- package/lib/components/StickyBottomMenu/StickyBottomMenuContent.js.map +1 -0
- package/{bundle/ui-kit → lib/components}/StickyBottomMenu/StickyBottomMenuItem.d.ts +2 -2
- package/lib/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuItem.js +1 -1
- package/lib/components/StickyBottomMenu/StickyBottomMenuItem.js.map +1 -0
- package/lib/components/StickyBottomMenu/StickyBottomMenuProps.d.ts +7 -0
- package/lib/components/StickyBottomMenu/StickyBottomMenuProps.js.map +1 -0
- package/lib/{ui-kit → components}/StickyBottomMenu/TopItemMobile.d.ts +2 -2
- package/lib/components/StickyBottomMenu/TopItemMobile.js.map +1 -0
- package/lib/components/StickyBottomMenu/useBurgerMenuDialog.d.ts +7 -0
- package/lib/components/StickyBottomMenu/useBurgerMenuDialog.js +22 -0
- package/lib/components/StickyBottomMenu/useBurgerMenuDialog.js.map +1 -0
- package/lib/components/SwipeListControlBlock/SwipeListControlBlock.d.ts +2 -2
- package/lib/components/SwipeListControlBlock/SwipeListControlBlock.js +2 -5
- package/lib/components/SwipeListControlBlock/SwipeListControlBlock.js.map +1 -1
- package/lib/components/Tabs/Tabs.d.ts +1 -1
- package/lib/components/Tabs/Tabs.js.map +1 -1
- package/lib/components/Tabs/TabsContent.d.ts +1 -1
- package/lib/components/TabsLayout/TabsLayout.d.ts +2 -2
- package/lib/components/TabsLayout/TabsLayout.js +5 -4
- package/lib/components/TabsLayout/TabsLayout.js.map +1 -1
- package/lib/components/TabsLayout/TabsLayoutContent.d.ts +1 -1
- package/lib/components/TariffsTable/TariffsTable.d.ts +1 -1
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableCell.d.ts +1 -1
- package/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -1
- package/lib/components/TariffsTable/TariffsTableRow.d.ts +1 -1
- package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableRowContainer.d.ts +1 -1
- package/lib/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableTileCell.d.ts +1 -1
- package/lib/components/TextBlock/TextBlock.d.ts +1 -1
- package/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/lib/components/TextBlock/TextBlockContent.d.ts +1 -1
- package/lib/components/UnitBlock/UnitBlock.d.ts +1 -1
- package/lib/components/UnitBlock/UnitBlock.js.map +1 -1
- package/lib/components/UnitBlock/UnitBlockContent.d.ts +1 -1
- package/lib/components/VerticalLayout/VerticalLayout.d.ts +2 -2
- package/lib/components/VerticalLayout/VerticalLayout.js +3 -4
- package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +1 -1
- package/lib/components/Video/Video.d.ts +1 -1
- package/lib/components/Video/Video.js.map +1 -1
- package/lib/components/Video/VideoContent.d.ts +1 -1
- package/lib/content-page-repository/computeImgOutputPath.d.ts +1 -1
- package/lib/content-page-repository/computeImgOutputPath.js +2 -2
- package/lib/content-page-repository/computeImgOutputPath.js.map +1 -1
- package/lib/content-page-repository/transformContentPage.js +2 -4
- package/lib/content-page-repository/transformContentPage.js.map +1 -1
- package/lib/content-page-repository/transformImg.js +2 -3
- package/lib/content-page-repository/transformImg.js.map +1 -1
- package/lib/data/FooterData.d.ts +35 -0
- package/lib/data/FooterData.js +2 -0
- package/lib/data/FooterData.js.map +1 -0
- package/lib/data/JSONRefObject.d.ts +4 -0
- package/lib/data/JSONRefObject.js +2 -0
- package/lib/data/JSONRefObject.js.map +1 -0
- package/lib/data/PortalData.d.ts +3 -0
- package/lib/data/PortalData.js +2 -0
- package/lib/data/PortalData.js.map +1 -0
- package/{bundle/services/sitemap → lib/data}/SitemapData.d.ts +4 -5
- package/lib/data/SitemapData.js.map +1 -0
- package/lib/data/StickyMobileData.d.ts +15 -0
- package/lib/data/StickyMobileData.js +2 -0
- package/lib/data/StickyMobileData.js.map +1 -0
- package/lib/hooks/useJSONRef/fetchRefs.d.ts +2 -0
- package/lib/hooks/useJSONRef/fetchRefs.js +13 -0
- package/lib/hooks/useJSONRef/fetchRefs.js.map +1 -0
- package/lib/hooks/useJSONRef/useJSONRef.d.ts +1 -0
- package/lib/hooks/useJSONRef/useJSONRef.js +16 -0
- package/lib/hooks/useJSONRef/useJSONRef.js.map +1 -0
- package/lib/hooks/useSWRResource.js +1 -3
- package/lib/hooks/useSWRResource.js.map +1 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -1
- package/lib/index.js.map +1 -1
- package/lib/model/AlignStyles.d.ts +1 -0
- package/lib/model/AlignStyles.js +1 -0
- package/lib/model/AlignStyles.js.map +1 -1
- package/lib/model/BlocksRegistry.d.ts +2 -2
- package/lib/model/ContentPageBase.d.ts +21 -0
- package/lib/model/ContentPageBase.js +2 -0
- package/lib/model/ContentPageBase.js.map +1 -0
- package/lib/model/ContentPageDef.d.ts +8 -23
- package/lib/model/ContentPageMeta.d.ts +100 -0
- package/lib/model/ContentPageMeta.js +2 -0
- package/lib/model/ContentPageMeta.js.map +1 -0
- package/lib/model/Picture.d.ts +0 -16
- package/lib/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +1 -1
- package/lib/ui-kit/BaseProductTile/BaseProductTile.d.ts +1 -1
- package/lib/ui-kit/BaseTile/BaseTile.d.ts +1 -1
- package/lib/ui-kit/BlockWrapper.d.ts +1 -1
- package/lib/ui-kit/DialogManager/isDialogOpen.d.ts +1 -1
- package/lib/ui-kit/DialogManager/isDialogOpen.js +1 -1
- package/lib/ui-kit/DialogManager/isDialogOpen.js.map +1 -1
- package/lib/ui-kit/Foldable/DefaultFoldButton.d.ts +1 -1
- package/lib/ui-kit/LocationDialog/LocationDialog.d.ts +6 -2
- package/lib/ui-kit/LocationDialog/LocationDialog.js +1 -3
- package/lib/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
- package/lib/ui-kit/LocationDialog/renderForeignOffices.d.ts +1 -1
- package/lib/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
- package/lib/ui-kit/LocationDialog/useLocationDialog.d.ts +2 -1
- package/lib/ui-kit/LocationDialog/useLocationDialog.js +2 -2
- package/lib/ui-kit/LocationDialog/useLocationDialog.js.map +1 -1
- package/lib/ui-kit/SearchBar/SearchBar.d.ts +2 -1
- package/lib/ui-kit/SearchBar/SearchBar.js +4 -4
- package/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/lib/ui-kit/SearchDialog/SearchDialog.d.ts +2 -0
- package/lib/ui-kit/SearchDialog/SearchDialog.js +2 -13
- package/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
- package/lib/ui-kit/SearchDialog/useSearchDialog.d.ts +1 -1
- package/lib/ui-kit/SearchDialog/useSearchDialog.js +2 -2
- package/lib/ui-kit/SearchDialog/useSearchDialog.js.map +1 -1
- package/lib/ui-kit/Sitemap/Sitemap.d.ts +1 -1
- package/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/lib/ui-kit/TextWithIcon/TextWithIcon.d.ts +1 -1
- package/lib/wlc.json +0 -2
- package/mobile/bundle/BlockRenderer/renderBlock.d.ts +1 -1
- package/mobile/bundle/BlockRenderer/renderChildren.d.ts +1 -1
- package/mobile/bundle/ProjectSettings.d.ts +2 -24
- package/mobile/bundle/UniBlock/UniBlock.d.ts +17 -0
- package/{lib/model/JSXBlock.d.ts → mobile/bundle/UniBlock/UniBlockProps.d.ts} +2 -14
- package/mobile/bundle/UniBlock/extractContent.d.ts +6 -0
- package/mobile/bundle/bundle.umd.js +1019 -1124
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/AdTile/AdTile.d.ts +1 -1
- package/mobile/bundle/components/AdTile/AdTileContent.d.ts +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationForm.d.ts +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/mobile/bundle/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/mobile/bundle/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -1
- package/mobile/bundle/components/BonusBenefitsBlock/BonusBenefitsBlock.d.ts +1 -1
- package/mobile/bundle/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +1 -1
- package/mobile/bundle/components/ButtonsBlock/ButtonsBlock.d.ts +1 -1
- package/mobile/bundle/components/Calculator/Calculator.d.ts +1 -1
- package/mobile/bundle/components/CardTransfer/CardTransfer.d.ts +1 -1
- package/mobile/bundle/components/CardTransfer/CardTransferContent.d.ts +1 -1
- package/mobile/bundle/components/Carousel/Carousel.d.ts +2 -2
- package/mobile/bundle/components/Carousel/CarouselContent.d.ts +1 -1
- package/mobile/bundle/components/Carousel/renderCarouselCards.d.ts +1 -1
- package/mobile/bundle/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -1
- package/mobile/bundle/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.d.ts +1 -1
- package/mobile/bundle/components/CarouselCard/CarouselCard.d.ts +1 -1
- package/mobile/bundle/components/CarouselCard/CarouselCardContent.d.ts +1 -1
- package/mobile/bundle/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +1 -1
- package/mobile/bundle/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +1 -1
- package/mobile/bundle/components/CarouselLinks/CarouselLinks.d.ts +1 -1
- package/mobile/bundle/components/CarouselLinks/CarouselLinksContent.d.ts +1 -1
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/mobile/bundle/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +1 -1
- package/mobile/bundle/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
- package/mobile/bundle/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +1 -1
- package/mobile/bundle/components/ComparisonTable/ComparisonTable.d.ts +1 -1
- package/mobile/bundle/components/ComparisonTable/ComparisonTableContent.d.ts +1 -1
- package/mobile/bundle/components/ComparisonTable/TableColumn.d.ts +1 -1
- package/mobile/bundle/components/ContactsBlock/ContactsBlock.d.ts +1 -1
- package/mobile/bundle/components/ContactsBlock/ContactsBlockContent.d.ts +1 -1
- package/mobile/bundle/components/ContentPage/ContentPage.d.ts +4 -4
- package/mobile/bundle/components/ContentPage/computeAPIFallback.d.ts +3 -4
- package/mobile/bundle/components/ContentPage/loadModuleFallback.d.ts +2 -0
- package/mobile/bundle/components/ContentPage/renderContentPageHead.d.ts +3 -2
- package/mobile/bundle/components/DepositFiltration/DepositFiltration.d.ts +2 -2
- package/mobile/bundle/components/Depository/Depository.d.ts +2 -2
- package/mobile/bundle/components/Depository/DepositoryContent.d.ts +1 -1
- package/mobile/bundle/components/ErrorBlock/ErrorBlock.d.ts +1 -1
- package/mobile/bundle/components/ErrorBlock/ErrorBlockContent.d.ts +1 -1
- package/mobile/bundle/components/ExchangeRateTile/ExchangeRateTile.d.ts +1 -1
- package/mobile/bundle/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +1 -1
- package/mobile/bundle/components/Footer/Contacts.d.ts +1 -1
- package/mobile/bundle/components/Footer/Footer.d.ts +1 -1
- package/mobile/bundle/components/Footer/FooterContent.d.ts +6 -33
- package/mobile/bundle/components/Footer/FooterProps.d.ts +4 -1
- package/mobile/bundle/components/GracePeriod/GracePeriod.d.ts +1 -1
- package/mobile/bundle/components/GracePeriod/GracePeriodContent.d.ts +1 -1
- package/mobile/bundle/components/Header/Header.d.ts +1 -1
- package/mobile/bundle/components/Header/HeaderContent.d.ts +3 -14
- package/mobile/bundle/components/Header/HeaderProps.d.ts +4 -1
- package/mobile/bundle/components/Header/HeaderSecondaryMenu.d.ts +2 -3
- package/mobile/bundle/components/Headline/Headline.d.ts +1 -1
- package/mobile/bundle/components/Headline/HeadlineContent.d.ts +1 -1
- package/mobile/bundle/components/HorizontalLayout/HorizontalLayout.d.ts +2 -2
- package/mobile/bundle/components/HorizontalLayout/HorizontalLayoutContent.d.ts +1 -1
- package/mobile/bundle/components/ImgBlock/ImgBlock.d.ts +1 -1
- package/mobile/bundle/components/ImgBlock/ImgBlockContent.d.ts +1 -1
- package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +1 -1
- package/mobile/bundle/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +1 -1
- package/mobile/bundle/components/InvestmentInfo/InvestmentInfo.d.ts +1 -1
- package/mobile/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +1 -1
- package/mobile/bundle/components/LinkDocs/LinkDocs.d.ts +1 -1
- package/mobile/bundle/components/LinkDocs/LinkDocsContent.d.ts +1 -1
- package/mobile/bundle/components/MobileAppTile/MobileAppTile.d.ts +1 -1
- package/mobile/bundle/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
- package/mobile/bundle/components/MortgageFiltration/MortgageFiltration.d.ts +2 -2
- package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMap.d.ts +1 -1
- package/mobile/bundle/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -1
- package/mobile/bundle/components/Placeholder/Placeholder.d.ts +1 -1
- package/mobile/bundle/components/Placeholder/PlaceholderContent.d.ts +1 -1
- package/mobile/bundle/components/ProductBlock/ProductBlock.d.ts +2 -2
- package/mobile/bundle/components/ProductBlock/ProductBlockContent.d.ts +1 -1
- package/mobile/bundle/components/ProductGallery/ProductGallery.d.ts +1 -1
- package/mobile/bundle/components/ProductGallery/ProductGalleryContent.d.ts +1 -1
- package/mobile/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +1 -1
- package/mobile/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +1 -1
- package/mobile/bundle/components/RichTextBlock/RichTextBlock.d.ts +1 -1
- package/mobile/bundle/components/RichTextBlock/RichTextBlockContent.d.ts +1 -1
- package/mobile/bundle/components/RollupItem/RollupItem.d.ts +2 -2
- package/mobile/bundle/components/RollupItem/RollupItemContent.d.ts +1 -1
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRental.d.ts +1 -1
- package/mobile/bundle/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -1
- package/mobile/bundle/components/StepsBlock/StepsBlock.d.ts +1 -1
- package/mobile/bundle/components/StepsBlock/StepsBlockContent.d.ts +1 -1
- package/mobile/bundle/{ui-kit → components}/StickyBottomMenu/BurgerMenuDialog.d.ts +2 -3
- package/mobile/bundle/components/StickyBottomMenu/StickyBottomMenu.d.ts +2 -0
- package/mobile/bundle/components/StickyBottomMenu/StickyBottomMenuContent.d.ts +5 -0
- package/{dist/ui-kit → mobile/bundle/components}/StickyBottomMenu/StickyBottomMenuItem.d.ts +2 -2
- package/mobile/bundle/components/StickyBottomMenu/StickyBottomMenuProps.d.ts +7 -0
- package/mobile/{dist/ui-kit → bundle/components}/StickyBottomMenu/TopItemMobile.d.ts +2 -2
- package/mobile/bundle/components/StickyBottomMenu/useBurgerMenuDialog.d.ts +7 -0
- package/mobile/bundle/components/SwipeListControlBlock/SwipeListControlBlock.d.ts +2 -2
- package/mobile/bundle/components/Tabs/Tabs.d.ts +1 -1
- package/mobile/bundle/components/Tabs/TabsContent.d.ts +1 -1
- package/mobile/bundle/components/TabsLayout/TabsLayout.d.ts +2 -2
- package/mobile/bundle/components/TabsLayout/TabsLayoutContent.d.ts +1 -1
- package/mobile/bundle/components/TariffsTable/TariffsTable.d.ts +1 -1
- package/mobile/bundle/components/TariffsTable/TariffsTableCell.d.ts +1 -1
- package/mobile/bundle/components/TariffsTable/TariffsTableContent.d.ts +1 -1
- package/mobile/bundle/components/TariffsTable/TariffsTableRow.d.ts +1 -1
- package/mobile/bundle/components/TariffsTable/TariffsTableRowContainer.d.ts +1 -1
- package/mobile/bundle/components/TariffsTable/TariffsTableTileCell.d.ts +1 -1
- package/mobile/bundle/components/TextBlock/TextBlock.d.ts +1 -1
- package/mobile/bundle/components/TextBlock/TextBlockContent.d.ts +1 -1
- package/mobile/bundle/components/UnitBlock/UnitBlock.d.ts +1 -1
- package/mobile/bundle/components/UnitBlock/UnitBlockContent.d.ts +1 -1
- package/mobile/bundle/components/VerticalLayout/VerticalLayout.d.ts +2 -2
- package/mobile/bundle/components/VerticalLayout/VerticalLayoutContent.d.ts +1 -1
- package/mobile/bundle/components/Video/Video.d.ts +1 -1
- package/mobile/bundle/components/Video/VideoContent.d.ts +1 -1
- package/mobile/bundle/content-page-repository/computeImgOutputPath.d.ts +1 -1
- package/mobile/bundle/data/FooterData.d.ts +35 -0
- package/mobile/bundle/data/JSONRefObject.d.ts +4 -0
- package/mobile/bundle/data/PortalData.d.ts +3 -0
- package/mobile/bundle/{services/sitemap → data}/SitemapData.d.ts +4 -5
- package/mobile/bundle/data/StickyMobileData.d.ts +15 -0
- package/mobile/bundle/hooks/useJSONRef/fetchRefs.d.ts +2 -0
- package/mobile/bundle/hooks/useJSONRef/useJSONRef.d.ts +1 -0
- package/mobile/bundle/index.d.ts +0 -1
- package/mobile/bundle/model/BlocksRegistry.d.ts +2 -2
- package/mobile/bundle/model/ContentPageBase.d.ts +21 -0
- package/mobile/bundle/model/ContentPageDef.d.ts +8 -23
- package/mobile/bundle/model/ContentPageMeta.d.ts +100 -0
- package/mobile/bundle/model/Picture.d.ts +0 -16
- package/mobile/bundle/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +1 -1
- package/mobile/bundle/ui-kit/BaseProductTile/BaseProductTile.d.ts +1 -1
- package/mobile/bundle/ui-kit/BaseTile/BaseTile.d.ts +1 -1
- package/mobile/bundle/ui-kit/BlockWrapper.d.ts +1 -1
- package/mobile/bundle/ui-kit/DialogManager/isDialogOpen.d.ts +1 -1
- package/mobile/bundle/ui-kit/Foldable/DefaultFoldButton.d.ts +1 -1
- package/mobile/bundle/ui-kit/LocationDialog/LocationDialog.d.ts +6 -2
- package/mobile/bundle/ui-kit/LocationDialog/renderForeignOffices.d.ts +1 -1
- package/mobile/bundle/ui-kit/LocationDialog/useLocationDialog.d.ts +2 -1
- package/mobile/bundle/ui-kit/SearchBar/SearchBar.d.ts +2 -1
- package/mobile/bundle/ui-kit/SearchDialog/SearchDialog.d.ts +2 -0
- package/mobile/bundle/ui-kit/SearchDialog/useSearchDialog.d.ts +1 -1
- package/mobile/bundle/ui-kit/Sitemap/Sitemap.d.ts +1 -1
- package/mobile/bundle/ui-kit/TextWithIcon/TextWithIcon.d.ts +1 -1
- package/mobile/dist/BlockRenderer/renderBlock.d.ts +1 -1
- package/mobile/dist/BlockRenderer/renderChildren.d.ts +1 -1
- package/mobile/dist/ProjectSettings.d.ts +2 -24
- package/mobile/dist/ProjectSettings.js +10 -47
- package/mobile/dist/ProjectSettings.js.map +1 -1
- package/mobile/dist/UniBlock/UniBlock.d.ts +17 -0
- package/mobile/dist/UniBlock/UniBlock.js +17 -0
- package/mobile/dist/UniBlock/UniBlock.js.map +1 -0
- package/mobile/dist/UniBlock/UniBlockProps.d.ts +24 -0
- package/mobile/dist/UniBlock/UniBlockProps.js +2 -0
- package/mobile/dist/UniBlock/UniBlockProps.js.map +1 -0
- package/mobile/dist/UniBlock/extractContent.d.ts +6 -0
- package/mobile/dist/UniBlock/extractContent.js +5 -0
- package/mobile/dist/UniBlock/extractContent.js.map +1 -0
- package/mobile/dist/components/AdTile/AdTile.d.ts +1 -1
- package/mobile/dist/components/AdTile/AdTile.js +5 -2
- package/mobile/dist/components/AdTile/AdTile.js.map +1 -1
- package/mobile/dist/components/AdTile/AdTileContent.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationForm.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormUltraPremium.js +0 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormUltraPremium.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -1
- package/mobile/dist/components/Blocks.js +2 -0
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.d.ts +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +1 -1
- package/mobile/dist/components/ButtonsBlock/ButtonsBlock.d.ts +1 -1
- package/mobile/dist/components/ButtonsBlock/ButtonsBlock.js.map +1 -1
- package/mobile/dist/components/Calculator/Calculator.d.ts +1 -1
- package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.d.ts +1 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/dist/components/CardTransfer/CardTransferContent.d.ts +1 -1
- package/mobile/dist/components/Carousel/Carousel.d.ts +2 -2
- package/mobile/dist/components/Carousel/Carousel.js +18 -17
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/Carousel/CarouselContent.d.ts +1 -1
- package/mobile/dist/components/Carousel/renderCarouselCards.d.ts +1 -1
- package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -1
- package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
- package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.d.ts +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCard.d.ts +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCardContent.d.ts +1 -1
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +1 -1
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +1 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinks.d.ts +1 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinksContent.d.ts +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +1 -1
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTable.d.ts +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/ComparisonTableContent.d.ts +1 -1
- package/mobile/dist/components/ComparisonTable/TableColumn.d.ts +1 -1
- package/mobile/dist/components/ComparisonTable/TableColumn.js.map +1 -1
- package/mobile/dist/components/ContactsBlock/ContactsBlock.d.ts +1 -1
- package/mobile/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/mobile/dist/components/ContactsBlock/ContactsBlockContent.d.ts +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.d.ts +4 -4
- package/mobile/dist/components/ContentPage/ContentPage.js +21 -11
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.page.json +18 -2
- package/mobile/dist/components/ContentPage/computeAPIFallback.d.ts +3 -4
- package/mobile/dist/components/ContentPage/computeAPIFallback.js +28 -46
- package/mobile/dist/components/ContentPage/computeAPIFallback.js.map +1 -1
- package/mobile/dist/components/ContentPage/loadModuleFallback.d.ts +2 -0
- package/mobile/dist/components/ContentPage/loadModuleFallback.js +36 -0
- package/mobile/dist/components/ContentPage/loadModuleFallback.js.map +1 -0
- package/mobile/dist/components/ContentPage/mapSlot.js +1 -4
- package/mobile/dist/components/ContentPage/mapSlot.js.map +1 -1
- package/mobile/dist/components/ContentPage/renderContentPageHead.d.ts +3 -2
- package/mobile/dist/components/ContentPage/renderContentPageHead.js.map +1 -1
- package/mobile/dist/components/ContentPage/useContentPageData.js +1 -1
- package/mobile/dist/components/ContentPage/useContentPageData.js.map +1 -1
- package/mobile/dist/components/DepositFiltration/DepositFiltration.d.ts +2 -2
- package/mobile/dist/components/DepositFiltration/DepositFiltration.js +11 -11
- package/mobile/dist/components/DepositFiltration/DepositFiltration.js.map +1 -1
- package/mobile/dist/components/Depository/Depository.d.ts +2 -2
- package/mobile/dist/components/Depository/Depository.js +2 -2
- package/mobile/dist/components/Depository/Depository.js.map +1 -1
- package/mobile/dist/components/Depository/DepositoryContent.d.ts +1 -1
- package/mobile/dist/components/ErrorBlock/ErrorBlock.d.ts +1 -1
- package/mobile/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/mobile/dist/components/ErrorBlock/ErrorBlockContent.d.ts +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.d.ts +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +1 -1
- package/mobile/dist/components/Footer/Contacts.d.ts +1 -1
- package/mobile/dist/components/Footer/Contacts.js.map +1 -1
- package/mobile/dist/components/Footer/Footer.d.ts +1 -1
- package/mobile/dist/components/Footer/Footer.js +6 -9
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Footer/FooterContent.d.ts +6 -33
- package/mobile/dist/components/Footer/FooterProps.d.ts +4 -1
- package/mobile/dist/components/GracePeriod/GracePeriod.d.ts +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriodContent.d.ts +1 -1
- package/mobile/dist/components/Header/Header.d.ts +1 -1
- package/mobile/dist/components/Header/Header.js +4 -11
- package/mobile/dist/components/Header/Header.js.map +1 -1
- package/mobile/dist/components/Header/HeaderContent.d.ts +3 -14
- package/mobile/dist/components/Header/HeaderProps.d.ts +4 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenu.d.ts +2 -3
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js +5 -8
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/dist/components/Headline/Headline.d.ts +1 -1
- package/mobile/dist/components/Headline/Headline.js.map +1 -1
- package/mobile/dist/components/Headline/HeadlineContent.d.ts +1 -1
- package/mobile/dist/components/HorizontalLayout/HorizontalLayout.d.ts +2 -2
- package/mobile/dist/components/HorizontalLayout/HorizontalLayout.js +2 -3
- package/mobile/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/mobile/dist/components/HorizontalLayout/HorizontalLayoutContent.d.ts +1 -1
- package/mobile/dist/components/ImgBlock/ImgBlock.d.ts +1 -1
- package/mobile/dist/components/ImgBlock/ImgBlock.js.map +1 -1
- package/mobile/dist/components/ImgBlock/ImgBlockContent.d.ts +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +1 -1
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.d.ts +1 -1
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.d.ts +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.d.ts +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
- package/mobile/dist/components/MortgageFiltration/MortgageFiltration.d.ts +2 -2
- package/mobile/dist/components/MortgageFiltration/MortgageFiltration.js +5 -4
- package/mobile/dist/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMap.d.ts +1 -1
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -1
- package/mobile/dist/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -1
- package/mobile/dist/components/Placeholder/Placeholder.d.ts +1 -1
- package/mobile/dist/components/Placeholder/Placeholder.js.map +1 -1
- package/mobile/dist/components/Placeholder/PlaceholderContent.d.ts +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlock.d.ts +2 -2
- package/mobile/dist/components/ProductBlock/ProductBlock.js +2 -3
- package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlockContent.d.ts +1 -1
- package/mobile/dist/components/ProductGallery/ProductGallery.d.ts +1 -1
- package/mobile/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/dist/components/ProductGallery/ProductGalleryContent.d.ts +1 -1
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +1 -1
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +1 -1
- package/mobile/dist/components/RichTextBlock/RichTextBlock.d.ts +1 -1
- package/mobile/dist/components/RichTextBlock/RichTextBlock.js.map +1 -1
- package/mobile/dist/components/RichTextBlock/RichTextBlockContent.d.ts +1 -1
- package/mobile/dist/components/RollupItem/RollupItem.d.ts +2 -2
- package/mobile/dist/components/RollupItem/RollupItem.js +5 -6
- package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/dist/components/RollupItem/RollupItemContent.d.ts +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.d.ts +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.d.ts +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlockContent.d.ts +1 -1
- package/{dist/ui-kit → mobile/dist/components}/StickyBottomMenu/ActiveSubMenuItem.js +2 -2
- package/mobile/dist/components/StickyBottomMenu/ActiveSubMenuItem.js.map +1 -0
- package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.d.ts +6 -0
- package/{dist/ui-kit → mobile/dist/components}/StickyBottomMenu/BurgerMenuDialog.js +14 -14
- package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -0
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.d.ts +2 -0
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js +21 -0
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -0
- package/mobile/dist/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuBurger.js +1 -1
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuBurger.js.map +1 -0
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuContent.d.ts +5 -0
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuContent.js.map +1 -0
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuItem.d.ts +8 -0
- package/{dist/ui-kit → mobile/dist/components}/StickyBottomMenu/StickyBottomMenuItem.js +1 -1
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuItem.js.map +1 -0
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuProps.d.ts +7 -0
- package/mobile/dist/components/StickyBottomMenu/StickyBottomMenuProps.js.map +1 -0
- package/mobile/{bundle/ui-kit → dist/components}/StickyBottomMenu/TopItemMobile.d.ts +2 -2
- package/mobile/dist/components/StickyBottomMenu/TopItemMobile.js.map +1 -0
- package/mobile/dist/components/StickyBottomMenu/useBurgerMenuDialog.d.ts +7 -0
- package/mobile/dist/{ui-kit → components}/StickyBottomMenu/useBurgerMenuDialog.js +8 -9
- package/mobile/dist/components/StickyBottomMenu/useBurgerMenuDialog.js.map +1 -0
- package/mobile/dist/components/SwipeListControlBlock/SwipeListControlBlock.d.ts +2 -2
- package/mobile/dist/components/SwipeListControlBlock/SwipeListControlBlock.js +2 -5
- package/mobile/dist/components/SwipeListControlBlock/SwipeListControlBlock.js.map +1 -1
- package/mobile/dist/components/Tabs/Tabs.d.ts +1 -1
- package/mobile/dist/components/Tabs/Tabs.js.map +1 -1
- package/mobile/dist/components/Tabs/TabsContent.d.ts +1 -1
- package/mobile/dist/components/TabsLayout/TabsLayout.d.ts +2 -2
- package/mobile/dist/components/TabsLayout/TabsLayout.js +5 -4
- package/mobile/dist/components/TabsLayout/TabsLayout.js.map +1 -1
- package/mobile/dist/components/TabsLayout/TabsLayoutContent.d.ts +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.d.ts +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableCell.d.ts +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableContent.d.ts +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRow.d.ts +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.d.ts +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableTileCell.d.ts +1 -1
- package/mobile/dist/components/TextBlock/TextBlock.d.ts +1 -1
- package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/dist/components/TextBlock/TextBlockContent.d.ts +1 -1
- package/mobile/dist/components/UnitBlock/UnitBlock.d.ts +1 -1
- package/mobile/dist/components/UnitBlock/UnitBlock.js.map +1 -1
- package/mobile/dist/components/UnitBlock/UnitBlockContent.d.ts +1 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayout.d.ts +2 -2
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js +3 -4
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayoutContent.d.ts +1 -1
- package/mobile/dist/components/Video/Video.d.ts +1 -1
- package/mobile/dist/components/Video/Video.js.map +1 -1
- package/mobile/dist/components/Video/VideoContent.d.ts +1 -1
- package/mobile/dist/content-page-repository/computeImgOutputPath.d.ts +1 -1
- package/mobile/dist/content-page-repository/computeImgOutputPath.js +2 -2
- package/mobile/dist/content-page-repository/computeImgOutputPath.js.map +1 -1
- package/mobile/dist/content-page-repository/transformContentPage.js +2 -4
- package/mobile/dist/content-page-repository/transformContentPage.js.map +1 -1
- package/mobile/dist/content-page-repository/transformImg.js +2 -3
- package/mobile/dist/content-page-repository/transformImg.js.map +1 -1
- package/mobile/dist/data/FooterData.d.ts +35 -0
- package/mobile/dist/data/FooterData.js +2 -0
- package/mobile/dist/data/FooterData.js.map +1 -0
- package/mobile/dist/data/JSONRefObject.d.ts +4 -0
- package/mobile/dist/data/JSONRefObject.js +2 -0
- package/mobile/dist/data/JSONRefObject.js.map +1 -0
- package/mobile/dist/data/PortalData.d.ts +3 -0
- package/mobile/dist/data/PortalData.js +2 -0
- package/mobile/dist/data/PortalData.js.map +1 -0
- package/mobile/dist/data/SitemapData.d.ts +36 -0
- package/mobile/dist/data/SitemapData.js.map +1 -0
- package/mobile/dist/data/StickyMobileData.d.ts +15 -0
- package/mobile/dist/data/StickyMobileData.js +2 -0
- package/mobile/dist/data/StickyMobileData.js.map +1 -0
- package/mobile/dist/hooks/useJSONRef/fetchRefs.d.ts +2 -0
- package/mobile/dist/hooks/useJSONRef/fetchRefs.js +16 -0
- package/mobile/dist/hooks/useJSONRef/fetchRefs.js.map +1 -0
- package/mobile/dist/hooks/useJSONRef/useJSONRef.d.ts +1 -0
- package/mobile/dist/hooks/useJSONRef/useJSONRef.js +19 -0
- package/mobile/dist/hooks/useJSONRef/useJSONRef.js.map +1 -0
- package/mobile/dist/hooks/useSWRResource.js +1 -3
- package/mobile/dist/hooks/useSWRResource.js.map +1 -1
- package/mobile/dist/index.d.ts +0 -1
- package/mobile/dist/index.js +1 -3
- package/mobile/dist/index.js.map +1 -1
- package/mobile/dist/model/BlocksRegistry.d.ts +2 -2
- package/mobile/dist/model/ContentPageBase.d.ts +21 -0
- package/mobile/dist/model/ContentPageBase.js +2 -0
- package/mobile/dist/model/ContentPageBase.js.map +1 -0
- package/mobile/dist/model/ContentPageDef.d.ts +8 -23
- package/mobile/dist/model/ContentPageMeta.d.ts +100 -0
- package/mobile/dist/model/ContentPageMeta.js +2 -0
- package/mobile/dist/model/ContentPageMeta.js.map +1 -0
- package/mobile/dist/model/Picture.d.ts +0 -16
- package/mobile/dist/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +1 -1
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.d.ts +1 -1
- package/mobile/dist/ui-kit/BaseTile/BaseTile.d.ts +1 -1
- package/mobile/dist/ui-kit/BlockWrapper.d.ts +1 -1
- package/mobile/dist/ui-kit/DialogManager/isDialogOpen.d.ts +1 -1
- package/mobile/dist/ui-kit/DialogManager/isDialogOpen.js +1 -1
- package/mobile/dist/ui-kit/DialogManager/isDialogOpen.js.map +1 -1
- package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.d.ts +1 -1
- package/mobile/dist/ui-kit/LocationDialog/LocationDialog.d.ts +6 -2
- package/mobile/dist/ui-kit/LocationDialog/LocationDialog.js +1 -3
- package/mobile/dist/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
- package/mobile/dist/ui-kit/LocationDialog/renderForeignOffices.d.ts +1 -1
- package/mobile/dist/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
- package/mobile/dist/ui-kit/LocationDialog/useLocationDialog.d.ts +2 -1
- package/mobile/dist/ui-kit/LocationDialog/useLocationDialog.js +2 -2
- package/mobile/dist/ui-kit/LocationDialog/useLocationDialog.js.map +1 -1
- package/mobile/dist/ui-kit/SearchBar/SearchBar.d.ts +2 -1
- package/mobile/dist/ui-kit/SearchBar/SearchBar.js +4 -4
- package/mobile/dist/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/mobile/dist/ui-kit/SearchDialog/SearchDialog.d.ts +2 -0
- package/mobile/dist/ui-kit/SearchDialog/SearchDialog.js +1 -12
- package/mobile/dist/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
- package/mobile/dist/ui-kit/SearchDialog/useSearchDialog.d.ts +1 -1
- package/mobile/dist/ui-kit/SearchDialog/useSearchDialog.js +2 -2
- package/mobile/dist/ui-kit/SearchDialog/useSearchDialog.js.map +1 -1
- package/mobile/dist/ui-kit/Sitemap/Sitemap.d.ts +1 -1
- package/mobile/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/mobile/dist/ui-kit/TextWithIcon/TextWithIcon.d.ts +1 -1
- package/mobile/dist/wlc.json +0 -2
- package/mobile/lib/BlockRenderer/renderBlock.d.ts +1 -1
- package/mobile/lib/BlockRenderer/renderChildren.d.ts +1 -1
- package/mobile/lib/ProjectSettings.d.ts +2 -24
- package/mobile/lib/ProjectSettings.js +10 -47
- package/mobile/lib/ProjectSettings.js.map +1 -1
- package/mobile/lib/UniBlock/UniBlock.d.ts +17 -0
- package/mobile/lib/UniBlock/UniBlock.js +14 -0
- package/mobile/lib/UniBlock/UniBlock.js.map +1 -0
- package/mobile/lib/UniBlock/UniBlockProps.d.ts +24 -0
- package/mobile/lib/UniBlock/UniBlockProps.js +2 -0
- package/mobile/lib/UniBlock/UniBlockProps.js.map +1 -0
- package/mobile/lib/UniBlock/extractContent.d.ts +6 -0
- package/mobile/lib/UniBlock/extractContent.js +2 -0
- package/mobile/lib/UniBlock/extractContent.js.map +1 -0
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/AdTile/AdTile.d.ts +1 -1
- package/mobile/lib/components/AdTile/AdTile.js +5 -2
- package/mobile/lib/components/AdTile/AdTile.js.map +1 -1
- package/mobile/lib/components/AdTile/AdTileContent.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormUltraPremium.js +0 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormUltraPremium.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.d.ts +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlockContent.d.ts +1 -1
- package/mobile/lib/components/Blocks.js +2 -0
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.d.ts +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlockContent.d.ts +1 -1
- package/mobile/lib/components/ButtonsBlock/ButtonsBlock.d.ts +1 -1
- package/mobile/lib/components/ButtonsBlock/ButtonsBlock.js.map +1 -1
- package/mobile/lib/components/Calculator/Calculator.d.ts +1 -1
- package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
- package/mobile/lib/components/CardTransfer/CardTransfer.d.ts +1 -1
- package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/lib/components/CardTransfer/CardTransferContent.d.ts +1 -1
- package/mobile/lib/components/Carousel/Carousel.d.ts +2 -2
- package/mobile/lib/components/Carousel/Carousel.js +18 -17
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/Carousel/CarouselContent.d.ts +1 -1
- package/mobile/lib/components/Carousel/renderCarouselCards.d.ts +1 -1
- package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.d.ts +1 -1
- package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
- package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.d.ts +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCard.d.ts +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCardContent.d.ts +1 -1
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.d.ts +1 -1
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCardContent.d.ts +1 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinks.d.ts +1 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinksContent.d.ts +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.d.ts +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCardContent.d.ts +1 -1
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.d.ts +1 -1
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTable.d.ts +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/ComparisonTableContent.d.ts +1 -1
- package/mobile/lib/components/ComparisonTable/TableColumn.d.ts +1 -1
- package/mobile/lib/components/ComparisonTable/TableColumn.js.map +1 -1
- package/mobile/lib/components/ContactsBlock/ContactsBlock.d.ts +1 -1
- package/mobile/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/mobile/lib/components/ContactsBlock/ContactsBlockContent.d.ts +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.d.ts +4 -4
- package/mobile/lib/components/ContentPage/ContentPage.js +21 -11
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.page.json +18 -2
- package/mobile/lib/components/ContentPage/computeAPIFallback.d.ts +3 -4
- package/mobile/lib/components/ContentPage/computeAPIFallback.js +26 -19
- package/mobile/lib/components/ContentPage/computeAPIFallback.js.map +1 -1
- package/mobile/lib/components/ContentPage/loadModuleFallback.d.ts +2 -0
- package/mobile/lib/components/ContentPage/loadModuleFallback.js +10 -0
- package/mobile/lib/components/ContentPage/loadModuleFallback.js.map +1 -0
- package/mobile/lib/components/ContentPage/mapSlot.js +1 -4
- package/mobile/lib/components/ContentPage/mapSlot.js.map +1 -1
- package/mobile/lib/components/ContentPage/renderContentPageHead.d.ts +3 -2
- package/mobile/lib/components/ContentPage/renderContentPageHead.js.map +1 -1
- package/mobile/lib/components/ContentPage/useContentPageData.js +1 -1
- package/mobile/lib/components/ContentPage/useContentPageData.js.map +1 -1
- package/mobile/lib/components/DepositFiltration/DepositFiltration.d.ts +2 -2
- package/mobile/lib/components/DepositFiltration/DepositFiltration.js +11 -11
- package/mobile/lib/components/DepositFiltration/DepositFiltration.js.map +1 -1
- package/mobile/lib/components/Depository/Depository.d.ts +2 -2
- package/mobile/lib/components/Depository/Depository.js +2 -2
- package/mobile/lib/components/Depository/Depository.js.map +1 -1
- package/mobile/lib/components/Depository/DepositoryContent.d.ts +1 -1
- package/mobile/lib/components/ErrorBlock/ErrorBlock.d.ts +1 -1
- package/mobile/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/mobile/lib/components/ErrorBlock/ErrorBlockContent.d.ts +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.d.ts +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTile.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeRateTileContent.d.ts +1 -1
- package/mobile/lib/components/Footer/Contacts.d.ts +1 -1
- package/mobile/lib/components/Footer/Contacts.js.map +1 -1
- package/mobile/lib/components/Footer/Footer.d.ts +1 -1
- package/mobile/lib/components/Footer/Footer.js +6 -9
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Footer/FooterContent.d.ts +6 -33
- package/mobile/lib/components/Footer/FooterProps.d.ts +4 -1
- package/mobile/lib/components/GracePeriod/GracePeriod.d.ts +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriodContent.d.ts +1 -1
- package/mobile/lib/components/Header/Header.d.ts +1 -1
- package/mobile/lib/components/Header/Header.js +4 -11
- package/mobile/lib/components/Header/Header.js.map +1 -1
- package/mobile/lib/components/Header/HeaderContent.d.ts +3 -14
- package/mobile/lib/components/Header/HeaderProps.d.ts +4 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenu.d.ts +2 -3
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js +5 -8
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/lib/components/Headline/Headline.d.ts +1 -1
- package/mobile/lib/components/Headline/Headline.js.map +1 -1
- package/mobile/lib/components/Headline/HeadlineContent.d.ts +1 -1
- package/mobile/lib/components/HorizontalLayout/HorizontalLayout.d.ts +2 -2
- package/mobile/lib/components/HorizontalLayout/HorizontalLayout.js +2 -3
- package/mobile/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/mobile/lib/components/HorizontalLayout/HorizontalLayoutContent.d.ts +1 -1
- package/mobile/lib/components/ImgBlock/ImgBlock.d.ts +1 -1
- package/mobile/lib/components/ImgBlock/ImgBlock.js.map +1 -1
- package/mobile/lib/components/ImgBlock/ImgBlockContent.d.ts +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.d.ts +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js.map +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockContent.d.ts +1 -1
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.d.ts +1 -1
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.d.ts +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.d.ts +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/MobileAppTileContent.d.ts +1 -1
- package/mobile/lib/components/MortgageFiltration/MortgageFiltration.d.ts +2 -2
- package/mobile/lib/components/MortgageFiltration/MortgageFiltration.js +5 -4
- package/mobile/lib/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMap.d.ts +1 -1
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMap.js.map +1 -1
- package/mobile/lib/components/OfficesAtmsMap/OfficesAtmsMapContent.d.ts +1 -1
- package/mobile/lib/components/Placeholder/Placeholder.d.ts +1 -1
- package/mobile/lib/components/Placeholder/Placeholder.js.map +1 -1
- package/mobile/lib/components/Placeholder/PlaceholderContent.d.ts +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlock.d.ts +2 -2
- package/mobile/lib/components/ProductBlock/ProductBlock.js +2 -3
- package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlockContent.d.ts +1 -1
- package/mobile/lib/components/ProductGallery/ProductGallery.d.ts +1 -1
- package/mobile/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/mobile/lib/components/ProductGallery/ProductGalleryContent.d.ts +1 -1
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +1 -1
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +1 -1
- package/mobile/lib/components/RichTextBlock/RichTextBlock.d.ts +1 -1
- package/mobile/lib/components/RichTextBlock/RichTextBlock.js.map +1 -1
- package/mobile/lib/components/RichTextBlock/RichTextBlockContent.d.ts +1 -1
- package/mobile/lib/components/RollupItem/RollupItem.d.ts +2 -2
- package/mobile/lib/components/RollupItem/RollupItem.js +5 -6
- package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/lib/components/RollupItem/RollupItemContent.d.ts +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.d.ts +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalContent.d.ts +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.d.ts +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlockContent.d.ts +1 -1
- package/{lib/ui-kit → mobile/lib/components}/StickyBottomMenu/ActiveSubMenuItem.js +2 -2
- package/mobile/lib/components/StickyBottomMenu/ActiveSubMenuItem.js.map +1 -0
- package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.d.ts +6 -0
- package/mobile/lib/{ui-kit → components}/StickyBottomMenu/BurgerMenuDialog.js +14 -14
- package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -0
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.d.ts +2 -0
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js +19 -0
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenu.js.map +1 -0
- package/{lib/ui-kit → mobile/lib/components}/StickyBottomMenu/StickyBottomMenuBurger.js +1 -1
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuBurger.js.map +1 -0
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuContent.d.ts +5 -0
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuContent.js.map +1 -0
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuItem.d.ts +8 -0
- package/mobile/lib/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuItem.js +1 -1
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuItem.js.map +1 -0
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuProps.d.ts +7 -0
- package/mobile/lib/components/StickyBottomMenu/StickyBottomMenuProps.js.map +1 -0
- package/mobile/lib/components/StickyBottomMenu/TopItemMobile.d.ts +10 -0
- package/mobile/lib/components/StickyBottomMenu/TopItemMobile.js.map +1 -0
- package/mobile/lib/components/StickyBottomMenu/useBurgerMenuDialog.d.ts +7 -0
- package/mobile/lib/components/StickyBottomMenu/useBurgerMenuDialog.js +22 -0
- package/mobile/lib/components/StickyBottomMenu/useBurgerMenuDialog.js.map +1 -0
- package/mobile/lib/components/SwipeListControlBlock/SwipeListControlBlock.d.ts +2 -2
- package/mobile/lib/components/SwipeListControlBlock/SwipeListControlBlock.js +2 -5
- package/mobile/lib/components/SwipeListControlBlock/SwipeListControlBlock.js.map +1 -1
- package/mobile/lib/components/Tabs/Tabs.d.ts +1 -1
- package/mobile/lib/components/Tabs/Tabs.js.map +1 -1
- package/mobile/lib/components/Tabs/TabsContent.d.ts +1 -1
- package/mobile/lib/components/TabsLayout/TabsLayout.d.ts +2 -2
- package/mobile/lib/components/TabsLayout/TabsLayout.js +5 -4
- package/mobile/lib/components/TabsLayout/TabsLayout.js.map +1 -1
- package/mobile/lib/components/TabsLayout/TabsLayoutContent.d.ts +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.d.ts +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableCell.d.ts +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableContent.d.ts +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRow.d.ts +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.d.ts +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRowContainer.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableTileCell.d.ts +1 -1
- package/mobile/lib/components/TextBlock/TextBlock.d.ts +1 -1
- package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/lib/components/TextBlock/TextBlockContent.d.ts +1 -1
- package/mobile/lib/components/UnitBlock/UnitBlock.d.ts +1 -1
- package/mobile/lib/components/UnitBlock/UnitBlock.js.map +1 -1
- package/mobile/lib/components/UnitBlock/UnitBlockContent.d.ts +1 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayout.d.ts +2 -2
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js +3 -4
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayoutContent.d.ts +1 -1
- package/mobile/lib/components/Video/Video.d.ts +1 -1
- package/mobile/lib/components/Video/Video.js.map +1 -1
- package/mobile/lib/components/Video/VideoContent.d.ts +1 -1
- package/mobile/lib/content-page-repository/computeImgOutputPath.d.ts +1 -1
- package/mobile/lib/content-page-repository/computeImgOutputPath.js +2 -2
- package/mobile/lib/content-page-repository/computeImgOutputPath.js.map +1 -1
- package/mobile/lib/content-page-repository/transformContentPage.js +2 -4
- package/mobile/lib/content-page-repository/transformContentPage.js.map +1 -1
- package/mobile/lib/content-page-repository/transformImg.js +2 -3
- package/mobile/lib/content-page-repository/transformImg.js.map +1 -1
- package/mobile/lib/data/FooterData.d.ts +35 -0
- package/mobile/lib/data/FooterData.js +2 -0
- package/mobile/lib/data/FooterData.js.map +1 -0
- package/mobile/lib/data/JSONRefObject.d.ts +4 -0
- package/mobile/lib/data/JSONRefObject.js +2 -0
- package/mobile/lib/data/JSONRefObject.js.map +1 -0
- package/mobile/lib/data/PortalData.d.ts +3 -0
- package/mobile/lib/data/PortalData.js +2 -0
- package/mobile/lib/data/PortalData.js.map +1 -0
- package/mobile/lib/data/SitemapData.d.ts +36 -0
- package/mobile/lib/data/SitemapData.js.map +1 -0
- package/mobile/lib/data/StickyMobileData.d.ts +15 -0
- package/mobile/lib/data/StickyMobileData.js +2 -0
- package/mobile/lib/data/StickyMobileData.js.map +1 -0
- package/mobile/lib/hooks/useJSONRef/fetchRefs.d.ts +2 -0
- package/mobile/lib/hooks/useJSONRef/fetchRefs.js +13 -0
- package/mobile/lib/hooks/useJSONRef/fetchRefs.js.map +1 -0
- package/mobile/lib/hooks/useJSONRef/useJSONRef.d.ts +1 -0
- package/mobile/lib/hooks/useJSONRef/useJSONRef.js +16 -0
- package/mobile/lib/hooks/useJSONRef/useJSONRef.js.map +1 -0
- package/mobile/lib/hooks/useSWRResource.js +1 -3
- package/mobile/lib/hooks/useSWRResource.js.map +1 -1
- package/mobile/lib/index.d.ts +0 -1
- package/mobile/lib/index.js +0 -1
- package/mobile/lib/index.js.map +1 -1
- package/mobile/lib/model/BlocksRegistry.d.ts +2 -2
- package/mobile/lib/model/ContentPageBase.d.ts +21 -0
- package/mobile/lib/model/ContentPageBase.js +2 -0
- package/mobile/lib/model/ContentPageBase.js.map +1 -0
- package/mobile/lib/model/ContentPageDef.d.ts +8 -23
- package/mobile/lib/model/ContentPageMeta.d.ts +100 -0
- package/mobile/lib/model/ContentPageMeta.js +2 -0
- package/mobile/lib/model/ContentPageMeta.js.map +1 -0
- package/mobile/lib/model/Picture.d.ts +0 -16
- package/mobile/lib/ui-kit/BaseFiltration/BaseFiltrationInner.d.ts +1 -1
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.d.ts +1 -1
- package/mobile/lib/ui-kit/BaseTile/BaseTile.d.ts +1 -1
- package/mobile/lib/ui-kit/BlockWrapper.d.ts +1 -1
- package/mobile/lib/ui-kit/DialogManager/isDialogOpen.d.ts +1 -1
- package/mobile/lib/ui-kit/DialogManager/isDialogOpen.js +1 -1
- package/mobile/lib/ui-kit/DialogManager/isDialogOpen.js.map +1 -1
- package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.d.ts +1 -1
- package/mobile/lib/ui-kit/LocationDialog/LocationDialog.d.ts +6 -2
- package/mobile/lib/ui-kit/LocationDialog/LocationDialog.js +1 -3
- package/mobile/lib/ui-kit/LocationDialog/LocationDialog.js.map +1 -1
- package/mobile/lib/ui-kit/LocationDialog/renderForeignOffices.d.ts +1 -1
- package/mobile/lib/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
- package/mobile/lib/ui-kit/LocationDialog/useLocationDialog.d.ts +2 -1
- package/mobile/lib/ui-kit/LocationDialog/useLocationDialog.js +2 -2
- package/mobile/lib/ui-kit/LocationDialog/useLocationDialog.js.map +1 -1
- package/mobile/lib/ui-kit/SearchBar/SearchBar.d.ts +2 -1
- package/mobile/lib/ui-kit/SearchBar/SearchBar.js +4 -4
- package/mobile/lib/ui-kit/SearchBar/SearchBar.js.map +1 -1
- package/mobile/lib/ui-kit/SearchDialog/SearchDialog.d.ts +2 -0
- package/mobile/lib/ui-kit/SearchDialog/SearchDialog.js +2 -13
- package/mobile/lib/ui-kit/SearchDialog/SearchDialog.js.map +1 -1
- package/mobile/lib/ui-kit/SearchDialog/useSearchDialog.d.ts +1 -1
- package/mobile/lib/ui-kit/SearchDialog/useSearchDialog.js +2 -2
- package/mobile/lib/ui-kit/SearchDialog/useSearchDialog.js.map +1 -1
- package/mobile/lib/ui-kit/Sitemap/Sitemap.d.ts +1 -1
- package/mobile/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/mobile/lib/ui-kit/TextWithIcon/TextWithIcon.d.ts +1 -1
- package/mobile/lib/wlc.json +0 -2
- package/mobile/src/BlockRenderer/renderBlock.tsx +1 -1
- package/mobile/src/BlockRenderer/renderChildren.ts +1 -1
- package/mobile/src/ProjectSettings.ts +18 -57
- package/mobile/src/UniBlock/UniBlock.tsx +34 -0
- package/mobile/src/{model/JSXBlock.ts → UniBlock/UniBlockProps.ts} +2 -16
- package/mobile/src/UniBlock/extractContent.ts +16 -0
- package/mobile/src/components/AdTile/AdTile.tsx +13 -3
- package/mobile/src/components/AdTile/AdTileContent.ts +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormUltraPremium.tsx +0 -2
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/mobile/src/components/BenefitsBlock/BenefitsBlockContent.ts +1 -1
- package/mobile/src/components/Blocks.ts +2 -0
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -1
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +1 -1
- package/mobile/src/components/ButtonsBlock/ButtonsBlock.tsx +1 -1
- package/mobile/src/components/Calculator/Calculator.tsx +1 -1
- package/mobile/src/components/CardTransfer/CardTransfer.tsx +1 -1
- package/mobile/src/components/CardTransfer/CardTransferContent.ts +1 -1
- package/mobile/src/components/Carousel/Carousel.tsx +20 -20
- package/mobile/src/components/Carousel/CarouselContent.ts +1 -1
- package/mobile/src/components/Carousel/renderCarouselCards.tsx +1 -1
- package/mobile/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +1 -1
- package/mobile/src/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.ts +1 -1
- package/mobile/src/components/CarouselCard/CarouselCard.tsx +1 -1
- package/mobile/src/components/CarouselCard/CarouselCardContent.ts +1 -1
- package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +1 -1
- package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCardContent.ts +1 -1
- package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +1 -1
- package/mobile/src/components/CarouselLinks/CarouselLinksContent.ts +1 -1
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -1
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +1 -1
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +1 -1
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCardContent.ts +1 -1
- package/mobile/src/components/ComparisonTable/ComparisonTable.tsx +1 -1
- package/mobile/src/components/ComparisonTable/ComparisonTableContent.ts +1 -1
- package/mobile/src/components/ComparisonTable/TableColumn.tsx +1 -1
- package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
- package/mobile/src/components/ContactsBlock/ContactsBlockContent.ts +1 -1
- package/mobile/src/components/ContentPage/ContentPage.page.json +18 -2
- package/mobile/src/components/ContentPage/ContentPage.tsx +37 -27
- package/mobile/src/components/ContentPage/computeAPIFallback.ts +52 -28
- package/mobile/src/components/ContentPage/loadModuleFallback.ts +11 -0
- package/mobile/src/components/ContentPage/mapSlot.ts +2 -6
- package/mobile/src/components/ContentPage/renderContentPageHead.tsx +3 -2
- package/mobile/src/components/ContentPage/useContentPageData.ts +3 -3
- package/mobile/src/components/DepositFiltration/DepositFiltration.tsx +13 -14
- package/mobile/src/components/Depository/Depository.tsx +50 -52
- package/mobile/src/components/Depository/DepositoryContent.ts +1 -1
- package/mobile/src/components/ErrorBlock/ErrorBlock.tsx +1 -1
- package/mobile/src/components/ErrorBlock/ErrorBlockContent.ts +1 -1
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTile.tsx +1 -1
- package/mobile/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +1 -1
- package/mobile/src/components/Footer/Contacts.tsx +1 -1
- package/mobile/src/components/Footer/Footer.tsx +18 -21
- package/mobile/src/components/Footer/FooterContent.ts +6 -37
- package/mobile/src/components/Footer/FooterProps.ts +6 -2
- package/mobile/src/components/GracePeriod/GracePeriod.tsx +1 -1
- package/mobile/src/components/GracePeriod/GracePeriodContent.ts +1 -1
- package/mobile/src/components/Header/Header.tsx +5 -16
- package/mobile/src/components/Header/HeaderContent.ts +3 -16
- package/mobile/src/components/Header/HeaderProps.ts +6 -2
- package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +16 -14
- package/mobile/src/components/Headline/Headline.tsx +1 -1
- package/mobile/src/components/Headline/HeadlineContent.ts +1 -1
- package/mobile/src/components/HorizontalLayout/HorizontalLayout.tsx +4 -5
- package/mobile/src/components/HorizontalLayout/HorizontalLayoutContent.ts +1 -1
- package/mobile/src/components/ImgBlock/ImgBlock.tsx +1 -1
- package/mobile/src/components/ImgBlock/ImgBlockContent.ts +1 -1
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +1 -1
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +1 -1
- package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +1 -1
- package/mobile/src/components/InvestmentInfo/InvestmentInfoContent.ts +1 -1
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +1 -1
- package/mobile/src/components/LinkDocs/LinkDocsContent.ts +1 -1
- package/mobile/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
- package/mobile/src/components/MobileAppTile/MobileAppTileContent.ts +1 -1
- package/mobile/src/components/MortgageFiltration/MortgageFiltration.tsx +7 -7
- package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMap.tsx +1 -1
- package/mobile/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +1 -1
- package/mobile/src/components/Placeholder/Placeholder.tsx +1 -1
- package/mobile/src/components/Placeholder/PlaceholderContent.ts +1 -1
- package/mobile/src/components/ProductBlock/ProductBlock.tsx +4 -5
- package/mobile/src/components/ProductBlock/ProductBlockContent.ts +1 -1
- package/mobile/src/components/ProductGallery/ProductGallery.tsx +1 -1
- package/mobile/src/components/ProductGallery/ProductGalleryContent.ts +1 -1
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +1 -1
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.ts +1 -1
- package/mobile/src/components/RichTextBlock/RichTextBlock.tsx +1 -1
- package/mobile/src/components/RichTextBlock/RichTextBlockContent.ts +1 -1
- package/mobile/src/components/RollupItem/RollupItem.tsx +6 -7
- package/mobile/src/components/RollupItem/RollupItemContent.ts +1 -1
- package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +1 -1
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalContent.ts +1 -1
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +1 -1
- package/mobile/src/components/StepsBlock/StepsBlockContent.ts +1 -1
- package/{src/ui-kit → mobile/src/components}/StickyBottomMenu/ActiveSubMenuItem.tsx +2 -2
- package/{src/ui-kit → mobile/src/components}/StickyBottomMenu/BurgerMenuDialog.tsx +46 -32
- package/mobile/src/components/StickyBottomMenu/StickyBottomMenu.example.json +1 -0
- package/mobile/src/components/StickyBottomMenu/StickyBottomMenu.tsx +44 -0
- package/mobile/src/components/StickyBottomMenu/StickyBottomMenu.ui.json +1 -0
- package/{src/ui-kit → mobile/src/components}/StickyBottomMenu/StickyBottomMenuBurger.tsx +1 -1
- package/mobile/src/components/StickyBottomMenu/StickyBottomMenuContent.ts +6 -0
- package/mobile/src/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuItem.tsx +3 -3
- package/mobile/src/components/StickyBottomMenu/StickyBottomMenuProps.ts +8 -0
- package/{src/ui-kit → mobile/src/components}/StickyBottomMenu/TopItemMobile.tsx +2 -2
- package/mobile/src/components/StickyBottomMenu/useBurgerMenuDialog.tsx +33 -0
- package/mobile/src/components/SwipeListControlBlock/SwipeListControlBlock.tsx +7 -9
- package/mobile/src/components/Tabs/Tabs.tsx +1 -1
- package/mobile/src/components/Tabs/TabsContent.ts +1 -1
- package/mobile/src/components/TabsLayout/TabsLayout.tsx +7 -6
- package/mobile/src/components/TabsLayout/TabsLayoutContent.ts +1 -1
- package/mobile/src/components/TariffsTable/TariffsTable.tsx +1 -1
- package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +1 -1
- package/mobile/src/components/TariffsTable/TariffsTableContent.ts +1 -1
- package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +1 -1
- package/mobile/src/components/TariffsTable/TariffsTableRowContainer.tsx +1 -1
- package/mobile/src/components/TariffsTable/TariffsTableTileCell.tsx +1 -1
- package/mobile/src/components/TextBlock/TextBlock.tsx +1 -1
- package/mobile/src/components/TextBlock/TextBlockContent.ts +1 -1
- package/mobile/src/components/UnitBlock/UnitBlock.tsx +1 -1
- package/mobile/src/components/UnitBlock/UnitBlockContent.ts +1 -1
- package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +4 -5
- package/mobile/src/components/VerticalLayout/VerticalLayoutContent.ts +1 -1
- package/mobile/src/components/Video/Video.tsx +1 -1
- package/mobile/src/components/Video/VideoContent.ts +1 -1
- package/mobile/src/content-page-repository/computeImgOutputPath.ts +2 -2
- package/mobile/src/content-page-repository/transformContentPage.ts +2 -6
- package/mobile/src/content-page-repository/transformImg.ts +4 -8
- package/mobile/src/data/FooterData.ts +39 -0
- package/mobile/src/data/JSONRefObject.ts +4 -0
- package/mobile/src/data/PortalData.ts +3 -0
- package/mobile/src/{services/sitemap → data}/SitemapData.ts +4 -5
- package/mobile/src/data/StickyMobileData.ts +17 -0
- package/mobile/src/hooks/useJSONRef/fetchRefs.ts +27 -0
- package/mobile/src/hooks/useJSONRef/useJSONRef.ts +18 -0
- package/mobile/src/hooks/useSWRResource.ts +1 -3
- package/mobile/src/index.ts +0 -1
- package/mobile/src/model/BlocksRegistry.ts +2 -2
- package/mobile/src/model/ContentPageBase.ts +23 -0
- package/mobile/src/model/ContentPageDef.ts +11 -25
- package/mobile/src/model/ContentPageMeta.ts +100 -0
- package/mobile/src/model/Picture.ts +0 -26
- package/mobile/src/ui-kit/BaseFiltration/BaseFiltrationInner.tsx +1 -1
- package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +1 -1
- package/mobile/src/ui-kit/BaseTile/BaseTile.tsx +1 -1
- package/mobile/src/ui-kit/BlockWrapper.tsx +1 -1
- package/mobile/src/ui-kit/DialogManager/isDialogOpen.ts +2 -2
- package/mobile/src/ui-kit/Foldable/DefaultFoldButton.tsx +1 -1
- package/mobile/src/ui-kit/LocationDialog/LocationDialog.tsx +7 -4
- package/mobile/src/ui-kit/LocationDialog/renderForeignOffices.tsx +1 -1
- package/mobile/src/ui-kit/LocationDialog/useLocationDialog.tsx +3 -3
- package/mobile/src/ui-kit/SearchBar/SearchBar.tsx +6 -5
- package/mobile/src/ui-kit/SearchDialog/SearchDialog.tsx +4 -17
- package/mobile/src/ui-kit/SearchDialog/useSearchDialog.tsx +2 -2
- package/mobile/src/ui-kit/Sitemap/Sitemap.tsx +1 -1
- package/mobile/src/ui-kit/TextWithIcon/TextWithIcon.tsx +1 -1
- package/mobile/src/wlc.json +0 -2
- package/package.json +2 -2
- package/src/BlockRenderer/renderBlock.tsx +1 -1
- package/src/BlockRenderer/renderChildren.ts +1 -1
- package/src/ProjectSettings.ts +18 -57
- package/src/UniBlock/UniBlock.tsx +34 -0
- package/src/{model/JSXBlock.ts → UniBlock/UniBlockProps.ts} +2 -16
- package/src/UniBlock/extractContent.ts +16 -0
- package/src/components/AdTile/AdTile.tsx +13 -3
- package/src/components/AdTile/AdTileContent.ts +1 -1
- package/src/components/ApplicationForm/ApplicationForm.tsx +1 -1
- package/src/components/ApplicationForm/ApplicationFormContent.ts +1 -1
- package/src/components/ApplicationForm/ApplicationFormUltraPremium.tsx +0 -2
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/src/components/BenefitsBlock/BenefitsBlockContent.ts +1 -1
- package/src/components/Blocks.mobile.ts +2 -0
- package/src/components/Blocks.ts +2 -0
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -1
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlockContent.ts +1 -1
- package/src/components/ButtonsBlock/ButtonsBlock.tsx +1 -1
- package/src/components/Calculator/Calculator.mobile.tsx +1 -1
- package/src/components/Calculator/Calculator.tsx +1 -1
- package/src/components/CardTransfer/CardTransfer.tsx +1 -1
- package/src/components/CardTransfer/CardTransferContent.ts +1 -1
- package/src/components/Carousel/Carousel.tsx +20 -20
- package/src/components/Carousel/CarouselContent.ts +1 -1
- package/src/components/Carousel/renderCarouselCards.tsx +1 -1
- package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.tsx +1 -1
- package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +1 -1
- package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCardContent.ts +1 -1
- package/src/components/CarouselCard/CarouselCard.tsx +1 -1
- package/src/components/CarouselCard/CarouselCardContent.ts +1 -1
- package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +1 -1
- package/src/components/CarouselCatalogCard/CarouselCatalogCardContent.ts +1 -1
- package/src/components/CarouselLinks/CarouselLinks.mobile.tsx +1 -1
- package/src/components/CarouselLinks/CarouselLinks.tsx +1 -1
- package/src/components/CarouselLinks/CarouselLinksContent.ts +1 -1
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -1
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCardContent.ts +1 -1
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +1 -1
- package/src/components/CarouselTariffsCard/CarouselTariffsCardContent.ts +1 -1
- package/src/components/ComparisonTable/ComparisonTable.mobile.tsx +1 -1
- package/src/components/ComparisonTable/ComparisonTable.tsx +1 -1
- package/src/components/ComparisonTable/ComparisonTableContent.ts +1 -1
- package/src/components/ComparisonTable/TableColumn.tsx +1 -1
- package/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
- package/src/components/ContactsBlock/ContactsBlockContent.ts +1 -1
- package/src/components/ContentPage/ContentPage.page.json +18 -2
- package/src/components/ContentPage/ContentPage.tsx +37 -27
- package/src/components/ContentPage/computeAPIFallback.ts +52 -28
- package/src/components/ContentPage/loadModuleFallback.ts +11 -0
- package/src/components/ContentPage/mapSlot.ts +2 -6
- package/src/components/ContentPage/renderContentPageHead.tsx +3 -2
- package/src/components/ContentPage/useContentPageData.ts +3 -3
- package/src/components/DepositFiltration/DepositFiltration.tsx +13 -14
- package/src/components/Depository/Depository.tsx +50 -52
- package/src/components/Depository/DepositoryContent.ts +1 -1
- package/src/components/ErrorBlock/ErrorBlock.tsx +1 -1
- package/src/components/ErrorBlock/ErrorBlockContent.ts +1 -1
- package/src/components/ExchangeRateTile/ExchangeRateTile.tsx +1 -1
- package/src/components/ExchangeRateTile/ExchangeRateTileContent.ts +1 -1
- package/src/components/Footer/Contacts.tsx +1 -1
- package/src/components/Footer/Footer.fixture.mobile.tsx +11 -1
- package/src/components/Footer/Footer.fixture.tsx +11 -1
- package/src/components/Footer/Footer.mobile.tsx +18 -21
- package/src/components/Footer/Footer.tsx +7 -13
- package/src/components/Footer/FooterContent.ts +6 -37
- package/src/components/Footer/FooterProps.ts +6 -2
- package/src/components/Footer/HorizontalNavigation.tsx +16 -18
- package/src/components/GracePeriod/GracePeriod.tsx +1 -1
- package/src/components/GracePeriod/GracePeriodContent.ts +1 -1
- package/src/components/Header/Header.fixture.mobile.tsx +12 -2
- package/src/components/Header/Header.fixture.tsx +14 -6
- package/src/components/Header/Header.mobile.tsx +5 -16
- package/src/components/Header/Header.tsx +7 -24
- package/src/components/Header/HeaderContent.ts +3 -16
- package/src/components/Header/HeaderProps.ts +6 -2
- package/src/components/Header/HeaderSecondaryMenu.tsx +16 -14
- package/src/components/Headline/Headline.tsx +1 -1
- package/src/components/Headline/HeadlineContent.ts +1 -1
- package/src/components/HorizontalLayout/HorizontalLayout.mobile.tsx +4 -5
- package/src/components/HorizontalLayout/HorizontalLayout.tsx +6 -7
- package/src/components/HorizontalLayout/HorizontalLayoutContent.ts +1 -1
- package/src/components/ImgBlock/ImgBlock.tsx +1 -1
- package/src/components/ImgBlock/ImgBlockContent.ts +1 -1
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +1 -1
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockContent.ts +1 -1
- package/src/components/InvestmentInfo/InvestmentInfo.tsx +1 -1
- package/src/components/InvestmentInfo/InvestmentInfoContent.ts +1 -1
- package/src/components/LinkDocs/LinkDocs.tsx +1 -1
- package/src/components/LinkDocs/LinkDocsContent.ts +1 -1
- package/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
- package/src/components/MobileAppTile/MobileAppTileContent.ts +1 -1
- package/src/components/MortgageFiltration/MortgageFiltration.tsx +7 -7
- package/src/components/OfficesAtmsMap/OfficesAtmsMap.tsx +1 -1
- package/src/components/OfficesAtmsMap/OfficesAtmsMapContent.ts +1 -1
- package/src/components/Placeholder/Placeholder.tsx +1 -1
- package/src/components/Placeholder/PlaceholderContent.ts +1 -1
- package/src/components/ProductBlock/ProductBlock.tsx +4 -5
- package/src/components/ProductBlock/ProductBlockContent.ts +1 -1
- package/src/components/ProductGallery/ProductGallery.mobile.tsx +1 -1
- package/src/components/ProductGallery/ProductGallery.tsx +1 -1
- package/src/components/ProductGallery/ProductGalleryContent.ts +1 -1
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +1 -1
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.ts +1 -1
- package/src/components/RichTextBlock/RichTextBlock.tsx +1 -1
- package/src/components/RichTextBlock/RichTextBlockContent.ts +1 -1
- package/src/components/RollupItem/RollupItem.tsx +6 -7
- package/src/components/RollupItem/RollupItemContent.ts +1 -1
- package/src/components/SafeDepositRental/SafeDepositRental.tsx +1 -1
- package/src/components/SafeDepositRental/SafeDepositRentalContent.ts +1 -1
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +1 -1
- package/src/components/StepsBlock/StepsBlock.tsx +1 -1
- package/src/components/StepsBlock/StepsBlockContent.ts +1 -1
- package/{mobile/src/ui-kit → src/components}/StickyBottomMenu/ActiveSubMenuItem.tsx +2 -2
- package/{mobile/src/ui-kit → src/components}/StickyBottomMenu/BurgerMenuDialog.tsx +46 -32
- package/src/components/StickyBottomMenu/StickyBottomMenu.example.json +1 -0
- package/src/components/StickyBottomMenu/StickyBottomMenu.fixture.mobile.tsx +21 -0
- package/src/components/StickyBottomMenu/StickyBottomMenu.fixture.tsx +11 -0
- package/src/components/StickyBottomMenu/StickyBottomMenu.mobile.tsx +44 -0
- package/src/{ui-kit → components}/StickyBottomMenu/StickyBottomMenu.tsx +3 -1
- package/src/components/StickyBottomMenu/StickyBottomMenu.ui.json +1 -0
- package/{mobile/src/ui-kit → src/components}/StickyBottomMenu/StickyBottomMenuBurger.tsx +1 -1
- package/src/components/StickyBottomMenu/StickyBottomMenuContent.ts +6 -0
- package/src/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuItem.tsx +3 -3
- package/src/components/StickyBottomMenu/StickyBottomMenuProps.ts +8 -0
- package/{mobile/src/ui-kit → src/components}/StickyBottomMenu/TopItemMobile.tsx +2 -2
- package/src/components/StickyBottomMenu/useBurgerMenuDialog.tsx +33 -0
- package/src/components/SwipeListControlBlock/SwipeListControlBlock.tsx +7 -9
- package/src/components/Tabs/Tabs.tsx +1 -1
- package/src/components/Tabs/TabsContent.ts +1 -1
- package/src/components/TabsLayout/TabsLayout.tsx +7 -6
- package/src/components/TabsLayout/TabsLayoutContent.ts +1 -1
- package/src/components/TariffsTable/TariffsTable.tsx +1 -1
- package/src/components/TariffsTable/TariffsTableCell.tsx +1 -1
- package/src/components/TariffsTable/TariffsTableContent.ts +1 -1
- package/src/components/TariffsTable/TariffsTableRow.tsx +1 -1
- package/src/components/TariffsTable/TariffsTableRowContainer.tsx +1 -1
- package/src/components/TariffsTable/TariffsTableTileCell.tsx +1 -1
- package/src/components/TextBlock/TextBlock.tsx +1 -1
- package/src/components/TextBlock/TextBlockContent.ts +1 -1
- package/src/components/UnitBlock/UnitBlock.tsx +1 -1
- package/src/components/UnitBlock/UnitBlockContent.ts +1 -1
- package/src/components/VerticalLayout/VerticalLayout.tsx +4 -5
- package/src/components/VerticalLayout/VerticalLayoutContent.ts +1 -1
- package/src/components/Video/Video.tsx +1 -1
- package/src/components/Video/VideoContent.ts +1 -1
- package/src/content-page-repository/computeImgOutputPath.ts +2 -2
- package/src/content-page-repository/transformContentPage.ts +2 -6
- package/src/content-page-repository/transformImg.ts +4 -8
- package/src/data/FooterData.ts +39 -0
- package/src/data/JSONRefObject.ts +4 -0
- package/src/data/PortalData.ts +3 -0
- package/src/{services/sitemap → data}/SitemapData.ts +4 -5
- package/src/data/StickyMobileData.ts +17 -0
- package/src/hooks/useJSONRef/fetchRefs.ts +27 -0
- package/src/hooks/useJSONRef/useJSONRef.ts +18 -0
- package/src/hooks/useSWRResource.ts +1 -3
- package/src/index.ts +0 -1
- package/src/model/AlignStyles.ts +1 -0
- package/src/model/BlocksRegistry.ts +2 -2
- package/src/model/ContentPageBase.ts +23 -0
- package/src/model/ContentPageDef.ts +11 -25
- package/src/model/ContentPageMeta.ts +100 -0
- package/src/model/Picture.ts +0 -26
- package/src/ui-kit/BaseFiltration/BaseFiltrationInner.tsx +1 -1
- package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +1 -1
- package/src/ui-kit/BaseTile/BaseTile.tsx +1 -1
- package/src/ui-kit/BlockWrapper.tsx +1 -1
- package/src/ui-kit/DialogManager/isDialogOpen.ts +2 -2
- package/src/ui-kit/Foldable/DefaultFoldButton.tsx +1 -1
- package/src/ui-kit/LocationDialog/LocationDialog.tsx +7 -4
- package/src/ui-kit/LocationDialog/renderForeignOffices.tsx +1 -1
- package/src/ui-kit/LocationDialog/useLocationDialog.tsx +3 -3
- package/src/ui-kit/SearchBar/SearchBar.tsx +6 -5
- package/src/ui-kit/SearchDialog/SearchDialog.tsx +4 -17
- package/src/ui-kit/SearchDialog/useSearchDialog.tsx +2 -2
- package/src/ui-kit/Sitemap/Sitemap.tsx +1 -1
- package/src/ui-kit/TextWithIcon/TextWithIcon.tsx +1 -1
- package/src/wlc.json +0 -2
- package/bin/migration-scripts/0.6.19.js +0 -21
- package/bin/migration-scripts/0.6.21.js +0 -15
- package/bundle/api/LikeAPI.d.ts +0 -9
- package/bundle/components/AdTile/useAdTile.d.ts +0 -2
- package/bundle/components/ContentPage/ContentPage.fallback.d.ts +0 -1
- package/bundle/components/Footer/Footer.fallback.d.ts +0 -2
- package/bundle/components/Footer/FooterDataProps.d.ts +0 -12
- package/bundle/components/Footer/useFooterData.d.ts +0 -2
- package/bundle/components/Header/Header.fallback.d.ts +0 -2
- package/bundle/components/LikeControl/LikeControl.d.ts +0 -6
- package/bundle/content-page-repository/alignImg.d.ts +0 -9
- package/bundle/hooks/fallbackWCMSResource.d.ts +0 -2
- package/bundle/hooks/useLikeService.d.ts +0 -5
- package/bundle/services/sitemap/useSitemap.d.ts +0 -3
- package/bundle/ui-kit/LinkButton/LikeButton.d.ts +0 -8
- package/bundle/ui-kit/StickyBottomMenu/ActiveSubMenu.d.ts +0 -7
- package/bundle/ui-kit/StickyBottomMenu/StickyBottomMenu.mobile.d.ts +0 -2
- package/bundle/ui-kit/StickyBottomMenu/StickyBottomMenuContent.d.ts +0 -22
- package/bundle/ui-kit/StickyBottomMenu/StickyBottomMenuProps.d.ts +0 -5
- package/bundle/ui-kit/StickyBottomMenu/useBurgerMenuDialog.d.ts +0 -6
- package/dist/api/LikeAPI.d.ts +0 -9
- package/dist/api/LikeAPI.js +0 -121
- package/dist/api/LikeAPI.js.map +0 -1
- package/dist/components/AdTile/useAdTile.d.ts +0 -2
- package/dist/components/AdTile/useAdTile.js +0 -12
- package/dist/components/AdTile/useAdTile.js.map +0 -1
- package/dist/components/ContentPage/ContentPage.fallback.d.ts +0 -1
- package/dist/components/ContentPage/ContentPage.fallback.js +0 -7
- package/dist/components/ContentPage/ContentPage.fallback.js.map +0 -1
- package/dist/components/Footer/Footer.fallback.d.ts +0 -2
- package/dist/components/Footer/Footer.fallback.js +0 -10
- package/dist/components/Footer/Footer.fallback.js.map +0 -1
- package/dist/components/Footer/FooterDataProps.d.ts +0 -12
- package/dist/components/Footer/FooterDataProps.js.map +0 -1
- package/dist/components/Footer/useFooterData.d.ts +0 -2
- package/dist/components/Footer/useFooterData.js +0 -11
- package/dist/components/Footer/useFooterData.js.map +0 -1
- package/dist/components/Header/Header.fallback.d.ts +0 -2
- package/dist/components/Header/Header.fallback.js +0 -10
- package/dist/components/Header/Header.fallback.js.map +0 -1
- package/dist/components/LikeControl/LikeControl.d.ts +0 -6
- package/dist/components/LikeControl/LikeControl.js +0 -14
- package/dist/components/LikeControl/LikeControl.js.map +0 -1
- package/dist/content-page-repository/alignImg.d.ts +0 -9
- package/dist/content-page-repository/alignImg.js +0 -23
- package/dist/content-page-repository/alignImg.js.map +0 -1
- package/dist/hooks/fallbackWCMSResource.d.ts +0 -2
- package/dist/hooks/fallbackWCMSResource.js +0 -10
- package/dist/hooks/fallbackWCMSResource.js.map +0 -1
- package/dist/hooks/useLikeService.d.ts +0 -5
- package/dist/hooks/useLikeService.js +0 -27
- package/dist/hooks/useLikeService.js.map +0 -1
- package/dist/model/JSXBlock.js.map +0 -1
- package/dist/services/sitemap/SitemapData.js.map +0 -1
- package/dist/services/sitemap/useSitemap.d.ts +0 -3
- package/dist/services/sitemap/useSitemap.js +0 -7
- package/dist/services/sitemap/useSitemap.js.map +0 -1
- package/dist/ui-kit/LinkButton/LikeButton.d.ts +0 -8
- package/dist/ui-kit/LinkButton/LikeButton.js +0 -14
- package/dist/ui-kit/LinkButton/LikeButton.js.map +0 -1
- package/dist/ui-kit/StickyBottomMenu/ActiveSubMenu.d.ts +0 -7
- package/dist/ui-kit/StickyBottomMenu/ActiveSubMenu.js +0 -7
- package/dist/ui-kit/StickyBottomMenu/ActiveSubMenu.js.map +0 -1
- package/dist/ui-kit/StickyBottomMenu/ActiveSubMenuItem.js.map +0 -1
- package/dist/ui-kit/StickyBottomMenu/BurgerMenuDialog.js.map +0 -1
- package/dist/ui-kit/StickyBottomMenu/StickyBottomMenu.js +0 -5
- package/dist/ui-kit/StickyBottomMenu/StickyBottomMenu.js.map +0 -1
- package/dist/ui-kit/StickyBottomMenu/StickyBottomMenu.mobile.d.ts +0 -2
- package/dist/ui-kit/StickyBottomMenu/StickyBottomMenu.mobile.js +0 -28
- package/dist/ui-kit/StickyBottomMenu/StickyBottomMenu.mobile.js.map +0 -1
- package/dist/ui-kit/StickyBottomMenu/StickyBottomMenuBurger.js.map +0 -1
- package/dist/ui-kit/StickyBottomMenu/StickyBottomMenuContent.d.ts +0 -22
- package/dist/ui-kit/StickyBottomMenu/StickyBottomMenuContent.js.map +0 -1
- package/dist/ui-kit/StickyBottomMenu/StickyBottomMenuItem.js.map +0 -1
- package/dist/ui-kit/StickyBottomMenu/StickyBottomMenuProps.d.ts +0 -5
- package/dist/ui-kit/StickyBottomMenu/StickyBottomMenuProps.js.map +0 -1
- package/dist/ui-kit/StickyBottomMenu/TopItemMobile.js.map +0 -1
- package/dist/ui-kit/StickyBottomMenu/useBurgerMenuDialog.d.ts +0 -6
- package/dist/ui-kit/StickyBottomMenu/useBurgerMenuDialog.js.map +0 -1
- package/lib/api/LikeAPI.d.ts +0 -9
- package/lib/api/LikeAPI.js +0 -118
- package/lib/api/LikeAPI.js.map +0 -1
- package/lib/components/AdTile/useAdTile.d.ts +0 -2
- package/lib/components/AdTile/useAdTile.js +0 -9
- package/lib/components/AdTile/useAdTile.js.map +0 -1
- package/lib/components/ContentPage/ContentPage.fallback.d.ts +0 -1
- package/lib/components/ContentPage/ContentPage.fallback.js +0 -4
- package/lib/components/ContentPage/ContentPage.fallback.js.map +0 -1
- package/lib/components/Footer/Footer.fallback.d.ts +0 -2
- package/lib/components/Footer/Footer.fallback.js +0 -7
- package/lib/components/Footer/Footer.fallback.js.map +0 -1
- package/lib/components/Footer/FooterDataProps.d.ts +0 -12
- package/lib/components/Footer/FooterDataProps.js +0 -2
- package/lib/components/Footer/FooterDataProps.js.map +0 -1
- package/lib/components/Footer/useFooterData.d.ts +0 -2
- package/lib/components/Footer/useFooterData.js +0 -8
- package/lib/components/Footer/useFooterData.js.map +0 -1
- package/lib/components/Header/Header.fallback.d.ts +0 -2
- package/lib/components/Header/Header.fallback.js +0 -7
- package/lib/components/Header/Header.fallback.js.map +0 -1
- package/lib/components/LikeControl/LikeControl.d.ts +0 -6
- package/lib/components/LikeControl/LikeControl.js +0 -12
- package/lib/components/LikeControl/LikeControl.js.map +0 -1
- package/lib/content-page-repository/alignImg.d.ts +0 -9
- package/lib/content-page-repository/alignImg.js +0 -17
- package/lib/content-page-repository/alignImg.js.map +0 -1
- package/lib/hooks/fallbackWCMSResource.d.ts +0 -2
- package/lib/hooks/fallbackWCMSResource.js +0 -7
- package/lib/hooks/fallbackWCMSResource.js.map +0 -1
- package/lib/hooks/useLikeService.d.ts +0 -5
- package/lib/hooks/useLikeService.js +0 -24
- package/lib/hooks/useLikeService.js.map +0 -1
- package/lib/model/JSXBlock.js +0 -2
- package/lib/model/JSXBlock.js.map +0 -1
- package/lib/services/sitemap/SitemapData.js.map +0 -1
- package/lib/services/sitemap/useSitemap.d.ts +0 -3
- package/lib/services/sitemap/useSitemap.js +0 -4
- package/lib/services/sitemap/useSitemap.js.map +0 -1
- package/lib/ui-kit/LinkButton/LikeButton.d.ts +0 -8
- package/lib/ui-kit/LinkButton/LikeButton.fixture.d.ts +0 -6
- package/lib/ui-kit/LinkButton/LikeButton.js +0 -12
- package/lib/ui-kit/LinkButton/LikeButton.js.map +0 -1
- package/lib/ui-kit/StickyBottomMenu/ActiveSubMenu.d.ts +0 -7
- package/lib/ui-kit/StickyBottomMenu/ActiveSubMenu.js +0 -5
- package/lib/ui-kit/StickyBottomMenu/ActiveSubMenu.js.map +0 -1
- package/lib/ui-kit/StickyBottomMenu/ActiveSubMenuItem.js.map +0 -1
- package/lib/ui-kit/StickyBottomMenu/BurgerMenuDialog.js.map +0 -1
- package/lib/ui-kit/StickyBottomMenu/StickyBottomMenu.js +0 -3
- package/lib/ui-kit/StickyBottomMenu/StickyBottomMenu.js.map +0 -1
- package/lib/ui-kit/StickyBottomMenu/StickyBottomMenu.mobile.d.ts +0 -2
- package/lib/ui-kit/StickyBottomMenu/StickyBottomMenu.mobile.js +0 -26
- package/lib/ui-kit/StickyBottomMenu/StickyBottomMenu.mobile.js.map +0 -1
- package/lib/ui-kit/StickyBottomMenu/StickyBottomMenuBurger.js.map +0 -1
- package/lib/ui-kit/StickyBottomMenu/StickyBottomMenuContent.d.ts +0 -22
- package/lib/ui-kit/StickyBottomMenu/StickyBottomMenuContent.js.map +0 -1
- package/lib/ui-kit/StickyBottomMenu/StickyBottomMenuItem.js.map +0 -1
- package/lib/ui-kit/StickyBottomMenu/StickyBottomMenuProps.d.ts +0 -5
- package/lib/ui-kit/StickyBottomMenu/StickyBottomMenuProps.js.map +0 -1
- package/lib/ui-kit/StickyBottomMenu/TopItemMobile.js.map +0 -1
- package/lib/ui-kit/StickyBottomMenu/useBurgerMenuDialog.d.ts +0 -6
- package/lib/ui-kit/StickyBottomMenu/useBurgerMenuDialog.js +0 -23
- package/lib/ui-kit/StickyBottomMenu/useBurgerMenuDialog.js.map +0 -1
- package/mobile/bundle/api/LikeAPI.d.ts +0 -9
- package/mobile/bundle/components/AdTile/useAdTile.d.ts +0 -2
- package/mobile/bundle/components/ContentPage/ContentPage.fallback.d.ts +0 -1
- package/mobile/bundle/components/Footer/Footer.fallback.d.ts +0 -2
- package/mobile/bundle/components/Footer/FooterDataProps.d.ts +0 -12
- package/mobile/bundle/components/Footer/useFooterData.d.ts +0 -2
- package/mobile/bundle/components/Header/Header.fallback.d.ts +0 -2
- package/mobile/bundle/components/LikeControl/LikeControl.d.ts +0 -6
- package/mobile/bundle/content-page-repository/alignImg.d.ts +0 -9
- package/mobile/bundle/hooks/fallbackWCMSResource.d.ts +0 -2
- package/mobile/bundle/hooks/useLikeService.d.ts +0 -5
- package/mobile/bundle/services/sitemap/useSitemap.d.ts +0 -3
- package/mobile/bundle/ui-kit/LinkButton/LikeButton.d.ts +0 -8
- package/mobile/bundle/ui-kit/StickyBottomMenu/ActiveSubMenu.d.ts +0 -7
- package/mobile/bundle/ui-kit/StickyBottomMenu/StickyBottomMenu.d.ts +0 -2
- package/mobile/bundle/ui-kit/StickyBottomMenu/StickyBottomMenuContent.d.ts +0 -22
- package/mobile/bundle/ui-kit/StickyBottomMenu/StickyBottomMenuProps.d.ts +0 -5
- package/mobile/bundle/ui-kit/StickyBottomMenu/useBurgerMenuDialog.d.ts +0 -6
- package/mobile/dist/api/LikeAPI.d.ts +0 -9
- package/mobile/dist/api/LikeAPI.js +0 -121
- package/mobile/dist/api/LikeAPI.js.map +0 -1
- package/mobile/dist/components/AdTile/useAdTile.d.ts +0 -2
- package/mobile/dist/components/AdTile/useAdTile.js +0 -12
- package/mobile/dist/components/AdTile/useAdTile.js.map +0 -1
- package/mobile/dist/components/ContentPage/ContentPage.fallback.d.ts +0 -1
- package/mobile/dist/components/ContentPage/ContentPage.fallback.js +0 -7
- package/mobile/dist/components/ContentPage/ContentPage.fallback.js.map +0 -1
- package/mobile/dist/components/Footer/Footer.fallback.d.ts +0 -2
- package/mobile/dist/components/Footer/Footer.fallback.js +0 -10
- package/mobile/dist/components/Footer/Footer.fallback.js.map +0 -1
- package/mobile/dist/components/Footer/FooterDataProps.d.ts +0 -12
- package/mobile/dist/components/Footer/FooterDataProps.js.map +0 -1
- package/mobile/dist/components/Footer/useFooterData.d.ts +0 -2
- package/mobile/dist/components/Footer/useFooterData.js +0 -11
- package/mobile/dist/components/Footer/useFooterData.js.map +0 -1
- package/mobile/dist/components/Header/Header.fallback.d.ts +0 -2
- package/mobile/dist/components/Header/Header.fallback.js +0 -10
- package/mobile/dist/components/Header/Header.fallback.js.map +0 -1
- package/mobile/dist/components/LikeControl/LikeControl.d.ts +0 -6
- package/mobile/dist/components/LikeControl/LikeControl.js +0 -14
- package/mobile/dist/components/LikeControl/LikeControl.js.map +0 -1
- package/mobile/dist/content-page-repository/alignImg.d.ts +0 -9
- package/mobile/dist/content-page-repository/alignImg.js +0 -23
- package/mobile/dist/content-page-repository/alignImg.js.map +0 -1
- package/mobile/dist/hooks/fallbackWCMSResource.d.ts +0 -2
- package/mobile/dist/hooks/fallbackWCMSResource.js +0 -10
- package/mobile/dist/hooks/fallbackWCMSResource.js.map +0 -1
- package/mobile/dist/hooks/useLikeService.d.ts +0 -5
- package/mobile/dist/hooks/useLikeService.js +0 -27
- package/mobile/dist/hooks/useLikeService.js.map +0 -1
- package/mobile/dist/model/JSXBlock.d.ts +0 -36
- package/mobile/dist/model/JSXBlock.js.map +0 -1
- package/mobile/dist/services/sitemap/SitemapData.d.ts +0 -37
- package/mobile/dist/services/sitemap/SitemapData.js.map +0 -1
- package/mobile/dist/services/sitemap/useSitemap.d.ts +0 -3
- package/mobile/dist/services/sitemap/useSitemap.js +0 -7
- package/mobile/dist/services/sitemap/useSitemap.js.map +0 -1
- package/mobile/dist/ui-kit/LinkButton/LikeButton.d.ts +0 -8
- package/mobile/dist/ui-kit/LinkButton/LikeButton.js +0 -14
- package/mobile/dist/ui-kit/LinkButton/LikeButton.js.map +0 -1
- package/mobile/dist/ui-kit/StickyBottomMenu/ActiveSubMenu.d.ts +0 -7
- package/mobile/dist/ui-kit/StickyBottomMenu/ActiveSubMenu.js +0 -7
- package/mobile/dist/ui-kit/StickyBottomMenu/ActiveSubMenu.js.map +0 -1
- package/mobile/dist/ui-kit/StickyBottomMenu/ActiveSubMenuItem.js.map +0 -1
- package/mobile/dist/ui-kit/StickyBottomMenu/BurgerMenuDialog.d.ts +0 -7
- package/mobile/dist/ui-kit/StickyBottomMenu/BurgerMenuDialog.js.map +0 -1
- package/mobile/dist/ui-kit/StickyBottomMenu/StickyBottomMenu.d.ts +0 -2
- package/mobile/dist/ui-kit/StickyBottomMenu/StickyBottomMenu.js +0 -28
- package/mobile/dist/ui-kit/StickyBottomMenu/StickyBottomMenu.js.map +0 -1
- package/mobile/dist/ui-kit/StickyBottomMenu/StickyBottomMenuBurger.js.map +0 -1
- package/mobile/dist/ui-kit/StickyBottomMenu/StickyBottomMenuContent.d.ts +0 -22
- package/mobile/dist/ui-kit/StickyBottomMenu/StickyBottomMenuContent.js.map +0 -1
- package/mobile/dist/ui-kit/StickyBottomMenu/StickyBottomMenuItem.d.ts +0 -8
- package/mobile/dist/ui-kit/StickyBottomMenu/StickyBottomMenuItem.js.map +0 -1
- package/mobile/dist/ui-kit/StickyBottomMenu/StickyBottomMenuProps.d.ts +0 -5
- package/mobile/dist/ui-kit/StickyBottomMenu/StickyBottomMenuProps.js.map +0 -1
- package/mobile/dist/ui-kit/StickyBottomMenu/TopItemMobile.js.map +0 -1
- package/mobile/dist/ui-kit/StickyBottomMenu/useBurgerMenuDialog.d.ts +0 -6
- package/mobile/dist/ui-kit/StickyBottomMenu/useBurgerMenuDialog.js.map +0 -1
- package/mobile/lib/api/LikeAPI.d.ts +0 -9
- package/mobile/lib/api/LikeAPI.js +0 -118
- package/mobile/lib/api/LikeAPI.js.map +0 -1
- package/mobile/lib/components/AdTile/useAdTile.d.ts +0 -2
- package/mobile/lib/components/AdTile/useAdTile.js +0 -9
- package/mobile/lib/components/AdTile/useAdTile.js.map +0 -1
- package/mobile/lib/components/ContentPage/ContentPage.fallback.d.ts +0 -1
- package/mobile/lib/components/ContentPage/ContentPage.fallback.js +0 -4
- package/mobile/lib/components/ContentPage/ContentPage.fallback.js.map +0 -1
- package/mobile/lib/components/Footer/Footer.fallback.d.ts +0 -2
- package/mobile/lib/components/Footer/Footer.fallback.js +0 -7
- package/mobile/lib/components/Footer/Footer.fallback.js.map +0 -1
- package/mobile/lib/components/Footer/FooterDataProps.d.ts +0 -12
- package/mobile/lib/components/Footer/FooterDataProps.js +0 -2
- package/mobile/lib/components/Footer/FooterDataProps.js.map +0 -1
- package/mobile/lib/components/Footer/useFooterData.d.ts +0 -2
- package/mobile/lib/components/Footer/useFooterData.js +0 -8
- package/mobile/lib/components/Footer/useFooterData.js.map +0 -1
- package/mobile/lib/components/Header/Header.fallback.d.ts +0 -2
- package/mobile/lib/components/Header/Header.fallback.js +0 -7
- package/mobile/lib/components/Header/Header.fallback.js.map +0 -1
- package/mobile/lib/components/LikeControl/LikeControl.d.ts +0 -6
- package/mobile/lib/components/LikeControl/LikeControl.js +0 -12
- package/mobile/lib/components/LikeControl/LikeControl.js.map +0 -1
- package/mobile/lib/content-page-repository/alignImg.d.ts +0 -9
- package/mobile/lib/content-page-repository/alignImg.js +0 -17
- package/mobile/lib/content-page-repository/alignImg.js.map +0 -1
- package/mobile/lib/hooks/fallbackWCMSResource.d.ts +0 -2
- package/mobile/lib/hooks/fallbackWCMSResource.js +0 -7
- package/mobile/lib/hooks/fallbackWCMSResource.js.map +0 -1
- package/mobile/lib/hooks/useLikeService.d.ts +0 -5
- package/mobile/lib/hooks/useLikeService.js +0 -24
- package/mobile/lib/hooks/useLikeService.js.map +0 -1
- package/mobile/lib/model/JSXBlock.d.ts +0 -36
- package/mobile/lib/model/JSXBlock.js +0 -2
- package/mobile/lib/model/JSXBlock.js.map +0 -1
- package/mobile/lib/services/sitemap/SitemapData.d.ts +0 -37
- package/mobile/lib/services/sitemap/SitemapData.js.map +0 -1
- package/mobile/lib/services/sitemap/useSitemap.d.ts +0 -3
- package/mobile/lib/services/sitemap/useSitemap.js +0 -4
- package/mobile/lib/services/sitemap/useSitemap.js.map +0 -1
- package/mobile/lib/ui-kit/LinkButton/LikeButton.d.ts +0 -8
- package/mobile/lib/ui-kit/LinkButton/LikeButton.js +0 -12
- package/mobile/lib/ui-kit/LinkButton/LikeButton.js.map +0 -1
- package/mobile/lib/ui-kit/StickyBottomMenu/ActiveSubMenu.d.ts +0 -7
- package/mobile/lib/ui-kit/StickyBottomMenu/ActiveSubMenu.js +0 -5
- package/mobile/lib/ui-kit/StickyBottomMenu/ActiveSubMenu.js.map +0 -1
- package/mobile/lib/ui-kit/StickyBottomMenu/ActiveSubMenuItem.js.map +0 -1
- package/mobile/lib/ui-kit/StickyBottomMenu/BurgerMenuDialog.d.ts +0 -7
- package/mobile/lib/ui-kit/StickyBottomMenu/BurgerMenuDialog.js.map +0 -1
- package/mobile/lib/ui-kit/StickyBottomMenu/StickyBottomMenu.d.ts +0 -2
- package/mobile/lib/ui-kit/StickyBottomMenu/StickyBottomMenu.js +0 -26
- package/mobile/lib/ui-kit/StickyBottomMenu/StickyBottomMenu.js.map +0 -1
- package/mobile/lib/ui-kit/StickyBottomMenu/StickyBottomMenuBurger.js.map +0 -1
- package/mobile/lib/ui-kit/StickyBottomMenu/StickyBottomMenuContent.d.ts +0 -22
- package/mobile/lib/ui-kit/StickyBottomMenu/StickyBottomMenuContent.js.map +0 -1
- package/mobile/lib/ui-kit/StickyBottomMenu/StickyBottomMenuItem.d.ts +0 -8
- package/mobile/lib/ui-kit/StickyBottomMenu/StickyBottomMenuItem.js.map +0 -1
- package/mobile/lib/ui-kit/StickyBottomMenu/StickyBottomMenuProps.d.ts +0 -5
- package/mobile/lib/ui-kit/StickyBottomMenu/StickyBottomMenuProps.js.map +0 -1
- package/mobile/lib/ui-kit/StickyBottomMenu/TopItemMobile.d.ts +0 -10
- package/mobile/lib/ui-kit/StickyBottomMenu/TopItemMobile.js.map +0 -1
- package/mobile/lib/ui-kit/StickyBottomMenu/useBurgerMenuDialog.d.ts +0 -6
- package/mobile/lib/ui-kit/StickyBottomMenu/useBurgerMenuDialog.js +0 -23
- package/mobile/lib/ui-kit/StickyBottomMenu/useBurgerMenuDialog.js.map +0 -1
- package/mobile/src/api/LikeAPI.ts +0 -154
- package/mobile/src/components/AdTile/useAdTile.ts +0 -17
- package/mobile/src/components/ContentPage/ContentPage.fallback.ts +0 -9
- package/mobile/src/components/Footer/Footer.fallback.ts +0 -8
- package/mobile/src/components/Footer/FooterDataProps.ts +0 -13
- package/mobile/src/components/Footer/useFooterData.ts +0 -13
- package/mobile/src/components/Header/Header.fallback.ts +0 -13
- package/mobile/src/components/LikeControl/LikeControl.tsx +0 -32
- package/mobile/src/content-page-repository/alignImg.ts +0 -31
- package/mobile/src/hooks/fallbackWCMSResource.ts +0 -14
- package/mobile/src/hooks/useLikeService.ts +0 -29
- package/mobile/src/services/sitemap/useSitemap.ts +0 -7
- package/mobile/src/ui-kit/LinkButton/LikeButton.tsx +0 -46
- package/mobile/src/ui-kit/StickyBottomMenu/ActiveSubMenu.tsx +0 -17
- package/mobile/src/ui-kit/StickyBottomMenu/StickyBottomMenu.tsx +0 -52
- package/mobile/src/ui-kit/StickyBottomMenu/StickyBottomMenuContent.ts +0 -24
- package/mobile/src/ui-kit/StickyBottomMenu/StickyBottomMenuProps.tsx +0 -6
- package/mobile/src/ui-kit/StickyBottomMenu/useBurgerMenuDialog.tsx +0 -34
- package/src/api/LikeAPI.ts +0 -154
- package/src/components/AdTile/useAdTile.ts +0 -17
- package/src/components/ContentPage/ContentPage.fallback.ts +0 -9
- package/src/components/Footer/Footer.fallback.ts +0 -8
- package/src/components/Footer/FooterDataProps.ts +0 -13
- package/src/components/Footer/useFooterData.ts +0 -13
- package/src/components/Header/Header.fallback.ts +0 -13
- package/src/components/LikeControl/LikeControl.fixture.tsx +0 -11
- package/src/components/LikeControl/LikeControl.tsx +0 -32
- package/src/content-page-repository/alignImg.ts +0 -31
- package/src/hooks/fallbackWCMSResource.ts +0 -14
- package/src/hooks/useLikeService.ts +0 -29
- package/src/services/sitemap/useSitemap.ts +0 -7
- package/src/ui-kit/LinkButton/LikeButton.fixture.tsx +0 -6
- package/src/ui-kit/LinkButton/LikeButton.tsx +0 -46
- package/src/ui-kit/StickyBottomMenu/ActiveSubMenu.tsx +0 -17
- package/src/ui-kit/StickyBottomMenu/StickyBottomMenu.fixture.mobile.tsx +0 -36
- package/src/ui-kit/StickyBottomMenu/StickyBottomMenu.mobile.tsx +0 -52
- package/src/ui-kit/StickyBottomMenu/StickyBottomMenuContent.ts +0 -24
- package/src/ui-kit/StickyBottomMenu/StickyBottomMenuProps.tsx +0 -6
- package/src/ui-kit/StickyBottomMenu/useBurgerMenuDialog.tsx +0 -34
- /package/bundle/{ui-kit → components}/StickyBottomMenu/ActiveSubMenuItem.d.ts +0 -0
- /package/bundle/{ui-kit → components}/StickyBottomMenu/StickyBottomMenu.d.ts +0 -0
- /package/bundle/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuBurger.d.ts +0 -0
- /package/dist/{ui-kit → components}/StickyBottomMenu/ActiveSubMenuItem.d.ts +0 -0
- /package/dist/{ui-kit → components}/StickyBottomMenu/StickyBottomMenu.d.ts +0 -0
- /package/dist/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuBurger.d.ts +0 -0
- /package/dist/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuContent.js +0 -0
- /package/dist/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuProps.js +0 -0
- /package/dist/{ui-kit → components}/StickyBottomMenu/TopItemMobile.js +0 -0
- /package/dist/{services/sitemap → data}/SitemapData.js +0 -0
- /package/lib/{ui-kit → components}/StickyBottomMenu/ActiveSubMenuItem.d.ts +0 -0
- /package/lib/{ui-kit → components}/StickyBottomMenu/StickyBottomMenu.d.ts +0 -0
- /package/lib/components/{LikeControl/LikeControl.fixture.d.ts → StickyBottomMenu/StickyBottomMenu.fixture.d.ts} +0 -0
- /package/lib/{ui-kit → components}/StickyBottomMenu/StickyBottomMenu.fixture.mobile.d.ts +0 -0
- /package/lib/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuBurger.d.ts +0 -0
- /package/lib/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuContent.js +0 -0
- /package/lib/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuProps.js +0 -0
- /package/lib/{ui-kit → components}/StickyBottomMenu/TopItemMobile.js +0 -0
- /package/lib/{services/sitemap → data}/SitemapData.js +0 -0
- /package/mobile/bundle/{ui-kit → components}/StickyBottomMenu/ActiveSubMenuItem.d.ts +0 -0
- /package/mobile/bundle/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuBurger.d.ts +0 -0
- /package/mobile/dist/{ui-kit → components}/StickyBottomMenu/ActiveSubMenuItem.d.ts +0 -0
- /package/mobile/dist/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuBurger.d.ts +0 -0
- /package/mobile/dist/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuContent.js +0 -0
- /package/mobile/dist/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuProps.js +0 -0
- /package/mobile/dist/{ui-kit → components}/StickyBottomMenu/TopItemMobile.js +0 -0
- /package/mobile/dist/{services/sitemap → data}/SitemapData.js +0 -0
- /package/mobile/lib/{ui-kit → components}/StickyBottomMenu/ActiveSubMenuItem.d.ts +0 -0
- /package/mobile/lib/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuBurger.d.ts +0 -0
- /package/mobile/lib/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuContent.js +0 -0
- /package/mobile/lib/{ui-kit → components}/StickyBottomMenu/StickyBottomMenuProps.js +0 -0
- /package/mobile/lib/{ui-kit → components}/StickyBottomMenu/TopItemMobile.js +0 -0
- /package/mobile/lib/{services/sitemap → data}/SitemapData.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('path'), require('fs/promises')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'path', 'fs/promises'], factory) :
|
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.UniMobileBlocks = {}));
|
|
5
5
|
})(this, (function (exports) { 'use strict';
|
|
6
6
|
|
|
@@ -53,175 +53,6 @@
|
|
|
53
53
|
};
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
const appendSlash = (url) => url && !url.endsWith('/') ? `${url}/` : url;
|
|
57
|
-
|
|
58
|
-
const DEFAULT_PROJECT_SETTINGS = { PROD_BRANCH: 'master' };
|
|
59
|
-
const projectSettings = new (class {
|
|
60
|
-
_ = DEFAULT_PROJECT_SETTINGS;
|
|
61
|
-
setup(_) {
|
|
62
|
-
this._ = _;
|
|
63
|
-
}
|
|
64
|
-
get TEST_BRANCH() {
|
|
65
|
-
return this._.TEST_BRANCH;
|
|
66
|
-
}
|
|
67
|
-
get RC_BRANCH() {
|
|
68
|
-
return this._.RC_BRANCH;
|
|
69
|
-
}
|
|
70
|
-
get PROD_BRANCH() {
|
|
71
|
-
return this._.PROD_BRANCH || DEFAULT_PROJECT_SETTINGS.PROD_BRANCH;
|
|
72
|
-
}
|
|
73
|
-
get FORCED_DRAFT_FLOW() {
|
|
74
|
-
return this._.FORCED_DRAFT_FLOW;
|
|
75
|
-
}
|
|
76
|
-
get ASSIST_PROJECT_ID() {
|
|
77
|
-
return this._.ASSIST_PROJECT_ID;
|
|
78
|
-
}
|
|
79
|
-
get SITEMAP() {
|
|
80
|
-
return this._.SITEMAP;
|
|
81
|
-
}
|
|
82
|
-
get STICKY_MOBILE_MENU() {
|
|
83
|
-
return this._.STICKY_MOBILE_MENU;
|
|
84
|
-
}
|
|
85
|
-
get FOOTER() {
|
|
86
|
-
return this._.FOOTER;
|
|
87
|
-
}
|
|
88
|
-
get PORTAL_DATA() {
|
|
89
|
-
return this._.PORTAL_DATA;
|
|
90
|
-
}
|
|
91
|
-
get CHAT_BOT() {
|
|
92
|
-
return this._.CHAT_BOT;
|
|
93
|
-
}
|
|
94
|
-
get CDN() {
|
|
95
|
-
return appendSlash(this._.CDN);
|
|
96
|
-
}
|
|
97
|
-
get BASE_PATH() {
|
|
98
|
-
return appendSlash(this._.BASE_PATH);
|
|
99
|
-
}
|
|
100
|
-
get YANDEX_MAP_API_KEY() {
|
|
101
|
-
return this._.YANDEX_MAP_API_KEY;
|
|
102
|
-
}
|
|
103
|
-
get YANDEX_METRIKA_ID() {
|
|
104
|
-
return this._.YANDEX_METRIKA_ID;
|
|
105
|
-
}
|
|
106
|
-
})();
|
|
107
|
-
|
|
108
|
-
const AUTH_PREFIX = 'guest';
|
|
109
|
-
const STORAGE_KEY = 'likesToken';
|
|
110
|
-
// eslint-disable-next-line max-lines-per-function
|
|
111
|
-
function LikeAPI() {
|
|
112
|
-
async function getLikeCount(...nodeIds) {
|
|
113
|
-
if (!nodeIds.length) {
|
|
114
|
-
return [];
|
|
115
|
-
}
|
|
116
|
-
const { token: Authorization } = await auth();
|
|
117
|
-
try {
|
|
118
|
-
const response = await fetch(`/assist/v1/public/projects/${projectSettings.ASSIST_PROJECT_ID}/nodes/likes`, {
|
|
119
|
-
method: 'POST',
|
|
120
|
-
mode: 'cors',
|
|
121
|
-
headers: { 'Content-Type': 'application/json', Authorization },
|
|
122
|
-
body: JSON.stringify({
|
|
123
|
-
node_ids: nodeIds,
|
|
124
|
-
}),
|
|
125
|
-
});
|
|
126
|
-
const { likes } = await response.json();
|
|
127
|
-
return likes || [];
|
|
128
|
-
}
|
|
129
|
-
catch (e) {
|
|
130
|
-
console.error(e);
|
|
131
|
-
return [];
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
async function like(nodeId) {
|
|
135
|
-
if (!nodeId) {
|
|
136
|
-
return 0;
|
|
137
|
-
}
|
|
138
|
-
const { token: Authorization, name } = await auth();
|
|
139
|
-
try {
|
|
140
|
-
const response = await fetch(`/assist/v1/public/projects/${projectSettings.ASSIST_PROJECT_ID}/nodes/like`, {
|
|
141
|
-
method: 'POST',
|
|
142
|
-
mode: 'cors',
|
|
143
|
-
headers: {
|
|
144
|
-
'Content-Type': 'application/json',
|
|
145
|
-
Authorization,
|
|
146
|
-
UserID: name,
|
|
147
|
-
},
|
|
148
|
-
body: JSON.stringify({
|
|
149
|
-
node_id: nodeId,
|
|
150
|
-
user_name: name,
|
|
151
|
-
}),
|
|
152
|
-
});
|
|
153
|
-
const { likes } = await response.json();
|
|
154
|
-
return likes || 0;
|
|
155
|
-
}
|
|
156
|
-
catch (e) {
|
|
157
|
-
console.error(e);
|
|
158
|
-
return 0;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
async function dislike(nodeId) {
|
|
162
|
-
if (!nodeId) {
|
|
163
|
-
return 0;
|
|
164
|
-
}
|
|
165
|
-
const { token: Authorization, name } = await auth();
|
|
166
|
-
try {
|
|
167
|
-
const response = await fetch(`/assist/v1/public/projects/${projectSettings.ASSIST_PROJECT_ID}/nodes/unlike`, {
|
|
168
|
-
method: 'POST',
|
|
169
|
-
mode: 'cors',
|
|
170
|
-
headers: {
|
|
171
|
-
'Content-Type': 'application/json',
|
|
172
|
-
Authorization,
|
|
173
|
-
UserID: name,
|
|
174
|
-
},
|
|
175
|
-
body: JSON.stringify({
|
|
176
|
-
node_id: nodeId,
|
|
177
|
-
user_name: name,
|
|
178
|
-
}),
|
|
179
|
-
});
|
|
180
|
-
const { likes } = await response.json();
|
|
181
|
-
return likes || 0;
|
|
182
|
-
}
|
|
183
|
-
catch (e) {
|
|
184
|
-
console.error(e);
|
|
185
|
-
return 0;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
async function auth() {
|
|
189
|
-
try {
|
|
190
|
-
const userData = JSON.parse(globalThis.localStorage?.getItem(STORAGE_KEY) || '');
|
|
191
|
-
if (userData?.token) {
|
|
192
|
-
return userData;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
catch (e) {
|
|
196
|
-
// do nothing
|
|
197
|
-
}
|
|
198
|
-
try {
|
|
199
|
-
const response = await fetch(`/assist/v1/public/auth`, {
|
|
200
|
-
method: 'POST',
|
|
201
|
-
mode: 'cors',
|
|
202
|
-
headers: {
|
|
203
|
-
'Content-Type': 'application/json',
|
|
204
|
-
},
|
|
205
|
-
body: JSON.stringify({
|
|
206
|
-
prefix: AUTH_PREFIX,
|
|
207
|
-
}),
|
|
208
|
-
});
|
|
209
|
-
const { token, name } = await response.json();
|
|
210
|
-
globalThis.localStorage?.setItem(STORAGE_KEY, JSON.stringify({ token, name }));
|
|
211
|
-
return { token, name };
|
|
212
|
-
}
|
|
213
|
-
catch (e) {
|
|
214
|
-
console.error(e);
|
|
215
|
-
return {};
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
return {
|
|
219
|
-
getLikeCount,
|
|
220
|
-
like,
|
|
221
|
-
dislike,
|
|
222
|
-
};
|
|
223
|
-
}
|
|
224
|
-
|
|
225
56
|
const jsx = (...args) => globalThis._uni._jsx(...args);
|
|
226
57
|
const jsxs = (...args) => globalThis._uni._jsxs(...args);
|
|
227
58
|
|
|
@@ -444,6 +275,21 @@
|
|
|
444
275
|
: null;
|
|
445
276
|
}
|
|
446
277
|
|
|
278
|
+
const appendSlash = (url) => url && !url.endsWith('/') ? `${url}/` : url;
|
|
279
|
+
|
|
280
|
+
const URI_KEYS = ['CDN', 'BASE_PATH'];
|
|
281
|
+
const projectSettings = new Proxy({
|
|
282
|
+
_: {},
|
|
283
|
+
setup(_) {
|
|
284
|
+
this._ = _;
|
|
285
|
+
},
|
|
286
|
+
}, {
|
|
287
|
+
get(target, p) {
|
|
288
|
+
const result = target._[p] || target[p];
|
|
289
|
+
return URI_KEYS.includes(p) ? appendSlash(result) : result;
|
|
290
|
+
},
|
|
291
|
+
});
|
|
292
|
+
|
|
447
293
|
const dirname = (path) => path?.split('/').slice(0, -1).join('/');
|
|
448
294
|
|
|
449
295
|
const isUUID = (src) => {
|
|
@@ -825,74 +671,75 @@
|
|
|
825
671
|
const leftOrRightImage = (img, directionRight) => directionRight ? { rightImage: img } : { leftImage: img };
|
|
826
672
|
const renderTags = (tags) => (tags?.length ? jsx(Tags, { tags: tags }) : null);
|
|
827
673
|
|
|
828
|
-
const
|
|
829
|
-
|
|
674
|
+
const isJSONArray = (_) => Boolean(_ && Array.isArray(_));
|
|
675
|
+
const isJSONRecord = (_) => Boolean(_ && !Array.isArray(_) && typeof _ === 'object');
|
|
676
|
+
const isJSONRef = (_) => Boolean(isJSONRecord(_) && typeof _.$ref === 'string');
|
|
830
677
|
|
|
831
|
-
const
|
|
678
|
+
const mapJSONNode = (json, handlers) => {
|
|
679
|
+
if (isJSONRef(json)) {
|
|
680
|
+
return handlers.ref(json);
|
|
681
|
+
}
|
|
682
|
+
else if (isJSONRecord(json)) {
|
|
683
|
+
return handlers.record(json);
|
|
684
|
+
}
|
|
685
|
+
else if (isJSONArray(json)) {
|
|
686
|
+
return handlers.array(json);
|
|
687
|
+
}
|
|
688
|
+
else {
|
|
689
|
+
return handlers.scalar ? handlers.scalar(json) : json;
|
|
690
|
+
}
|
|
691
|
+
};
|
|
832
692
|
|
|
833
|
-
const
|
|
834
|
-
const applyCache = (fetcher, cache = defaultCache) => (args) => {
|
|
835
|
-
const key = computeKey(args);
|
|
836
|
-
const cachedData = cache.get(key);
|
|
837
|
-
if (key && isFilled(cachedData)) {
|
|
838
|
-
return cachedData;
|
|
839
|
-
}
|
|
840
|
-
const data = fetcher(...args);
|
|
841
|
-
if (key && isFilled(data)) {
|
|
842
|
-
cache.set(key, Promise.resolve(data));
|
|
843
|
-
}
|
|
844
|
-
return data;
|
|
845
|
-
};
|
|
846
|
-
const isKey = (args) => Boolean(args?.every(_ => (Array.isArray(_) ? isKey(_) : !_ || typeof _ === 'string')));
|
|
847
|
-
const computeKey = (args) => (isKey(args) ? args.toString() : '');
|
|
693
|
+
const mergeRecords = (entries) => entries.reduce((acc, _) => Object.assign(acc, _), {});
|
|
848
694
|
|
|
849
|
-
const
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
695
|
+
const parseJPointer = (uri) => uri.includes('#')
|
|
696
|
+
? uri
|
|
697
|
+
.substring(uri.indexOf('#') + 1)
|
|
698
|
+
.split('/')
|
|
699
|
+
.filter(Boolean)
|
|
700
|
+
: [];
|
|
701
|
+
|
|
702
|
+
const resolveJPointer = (json, uri) => parseJPointer(uri).reduce(selectNodeByKey, json);
|
|
703
|
+
const selectNodeByKey = (json, key) => {
|
|
704
|
+
if (!json || !key) {
|
|
705
|
+
return json;
|
|
706
|
+
}
|
|
707
|
+
if (isJSONRecord(json)) {
|
|
708
|
+
return json[key];
|
|
709
|
+
}
|
|
710
|
+
else if (isJSONArray(json)) {
|
|
711
|
+
return json[parseInt(key, 10)];
|
|
712
|
+
}
|
|
713
|
+
else {
|
|
714
|
+
return json;
|
|
715
|
+
}
|
|
716
|
+
};
|
|
717
|
+
|
|
718
|
+
const resolveRef = (json, resolver) => mapJSONNode(json, {
|
|
719
|
+
ref: ({ $ref, ...rest }) => resolveRef($ref ? resolveJPointer(resolver($ref), $ref) : rest, resolver),
|
|
720
|
+
record: record => mergeRecords(Object.entries(record).map(([key, value]) => ({ [key]: resolveRef(value, resolver) }))),
|
|
721
|
+
array: list => list.map(_ => resolveRef(_, resolver))
|
|
722
|
+
});
|
|
723
|
+
|
|
724
|
+
const visitRef = (json, visitor, path = []) => {
|
|
725
|
+
mapJSONNode(json, {
|
|
726
|
+
ref: json => visitor(json.$ref, path),
|
|
727
|
+
record: record => {
|
|
728
|
+
for (const key in record)
|
|
729
|
+
visitRef(record[key], visitor, [...path, key]);
|
|
730
|
+
},
|
|
731
|
+
array: list => {
|
|
732
|
+
for (let i = 0; i < list.length; i++)
|
|
733
|
+
visitRef(list[i], visitor, [...path, i]);
|
|
734
|
+
}
|
|
735
|
+
});
|
|
736
|
+
};
|
|
737
|
+
|
|
738
|
+
const collectRef = (json) => {
|
|
739
|
+
const refs = [];
|
|
740
|
+
visitRef(json, _ => refs.push(_));
|
|
741
|
+
return refs;
|
|
742
|
+
};
|
|
896
743
|
|
|
897
744
|
async function fetchJSON(url, options) {
|
|
898
745
|
try {
|
|
@@ -914,27 +761,52 @@
|
|
|
914
761
|
return response.json();
|
|
915
762
|
};
|
|
916
763
|
|
|
917
|
-
const
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
764
|
+
const unique = (list) => [...new Set(list)];
|
|
765
|
+
|
|
766
|
+
const refsCache = {};
|
|
767
|
+
const EXCLUSIONS = ['/portal-resources']; // portal-resources are handled only at compile-time
|
|
768
|
+
const fetchRefs = async (refs) => Object.fromEntries((await Promise.allSettled(unique(refs)
|
|
769
|
+
.filter(($ref) => !EXCLUSIONS.some((_) => $ref.startsWith(_)))
|
|
770
|
+
.map(async ($ref) => [
|
|
771
|
+
$ref,
|
|
772
|
+
(refsCache[$ref] ||= await fetchJSONUnsafe($ref)),
|
|
773
|
+
])))
|
|
774
|
+
.filter((res) => res.status === 'fulfilled')
|
|
775
|
+
.map(({ value }) => value));
|
|
776
|
+
|
|
777
|
+
const useJSONRef = (content, fallback) => {
|
|
778
|
+
const refs = collectRef(content);
|
|
779
|
+
const [refsMap, setRefsMap] = useState({});
|
|
780
|
+
useEffect(() => {
|
|
781
|
+
if (refs.length) {
|
|
782
|
+
fetchRefs(refs).then(setRefsMap);
|
|
783
|
+
}
|
|
784
|
+
}, [refs.join()]);
|
|
785
|
+
return refs.length
|
|
786
|
+
? resolveRef(content, (_) => refsMap[_] || fallback?.[_])
|
|
787
|
+
: content;
|
|
788
|
+
};
|
|
789
|
+
|
|
790
|
+
const extractContent = ({ block, options, className, defaultPadding, padding, isTheme, version, children, ...content }) => content;
|
|
791
|
+
|
|
792
|
+
function UniBlock(InputComponent, meta = {}) {
|
|
793
|
+
const OutputComponent = JSX((props) => {
|
|
794
|
+
const content = useJSONRef(extractContent(props), props.options?.page?.fallback);
|
|
795
|
+
return jsx(InputComponent, { ...props, ...content });
|
|
923
796
|
});
|
|
924
|
-
|
|
797
|
+
Object.assign(OutputComponent, meta);
|
|
798
|
+
return OutputComponent;
|
|
925
799
|
}
|
|
926
800
|
|
|
927
|
-
const
|
|
928
|
-
const data = useSWRResource(sourceBook);
|
|
929
|
-
const tileIndex = useMemo(() => randomNumInRange(0, data?.items?.length), [data]);
|
|
930
|
-
return data?.items?.[tileIndex];
|
|
931
|
-
};
|
|
932
|
-
const randomNumInRange = (min = 0, max = 0) => Math.floor(Math.random() * (max - min) + min);
|
|
801
|
+
const ProductBlock = UniBlock(({ className, padding, ...rest }) => (jsx(BlockWrapper, { className: style('overflow-hidden flex flex-col gap-3xl box-border', className), padding: "p-0", ...rest, children: jsx(BaseProductTile, { defaultPadding: "p-6xl", padding: padding, className: "grow h-full", ...rest }) })), { childrenTypes: ['UnitBlock'] });
|
|
933
802
|
|
|
934
803
|
const AdTile = JSX((props) => {
|
|
935
|
-
const
|
|
804
|
+
const { items } = (props.options?.page?.adSourceBook ?? {});
|
|
805
|
+
const tileIndex = useMemo(() => randomNumber(0, items?.length), [items]);
|
|
806
|
+
const content = items?.[tileIndex];
|
|
936
807
|
return content ? (jsx(ClientOnly, { children: jsx(ProductBlock, { ...content, ...props }) })) : null;
|
|
937
808
|
});
|
|
809
|
+
const randomNumber = (min = 0, max = 0) => Math.floor(Math.random() * (max - min) + min);
|
|
938
810
|
|
|
939
811
|
const formatPhone = (phone) => phone?.replace(/[^+\d]/g, '');
|
|
940
812
|
|
|
@@ -1136,6 +1008,72 @@
|
|
|
1136
1008
|
},
|
|
1137
1009
|
];
|
|
1138
1010
|
|
|
1011
|
+
const isFilled = (_) => _ !== null && _ !== undefined;
|
|
1012
|
+
|
|
1013
|
+
const defaultCache = new Map();
|
|
1014
|
+
const applyCache = (fetcher, cache = defaultCache) => (args) => {
|
|
1015
|
+
const key = computeKey(args);
|
|
1016
|
+
const cachedData = cache.get(key);
|
|
1017
|
+
if (key && isFilled(cachedData)) {
|
|
1018
|
+
return cachedData;
|
|
1019
|
+
}
|
|
1020
|
+
const data = fetcher(...args);
|
|
1021
|
+
if (key && isFilled(data)) {
|
|
1022
|
+
cache.set(key, Promise.resolve(data));
|
|
1023
|
+
}
|
|
1024
|
+
return data;
|
|
1025
|
+
};
|
|
1026
|
+
const isKey = (args) => Boolean(args?.every(_ => (Array.isArray(_) ? isKey(_) : !_ || typeof _ === 'string')));
|
|
1027
|
+
const computeKey = (args) => (isKey(args) ? args.toString() : '');
|
|
1028
|
+
|
|
1029
|
+
const isFallbackKey = (args) => Boolean(args && Array.isArray(args) && args.length === 1 && typeof args[0] === 'string');
|
|
1030
|
+
function useAsyncData(key, fetcher, { fallback, cache } = {}) {
|
|
1031
|
+
const args = useMemo(() => keyToArgs(key), [key]);
|
|
1032
|
+
const [data, setData] = useState(undefined);
|
|
1033
|
+
const [error, setError] = useState(undefined);
|
|
1034
|
+
useEffect(() => {
|
|
1035
|
+
const isEmptyKey = !args.some(isFilled);
|
|
1036
|
+
if (isEmptyKey) {
|
|
1037
|
+
return;
|
|
1038
|
+
}
|
|
1039
|
+
let canceled = false;
|
|
1040
|
+
const setResult = (newData, err) => {
|
|
1041
|
+
if (!canceled) {
|
|
1042
|
+
setData(newData);
|
|
1043
|
+
setError(err);
|
|
1044
|
+
}
|
|
1045
|
+
};
|
|
1046
|
+
(async () => {
|
|
1047
|
+
try {
|
|
1048
|
+
setResult(await applyCache(fetcher, cache)(args));
|
|
1049
|
+
}
|
|
1050
|
+
catch (err) {
|
|
1051
|
+
setResult(undefined, err);
|
|
1052
|
+
}
|
|
1053
|
+
})();
|
|
1054
|
+
return () => {
|
|
1055
|
+
canceled = true;
|
|
1056
|
+
};
|
|
1057
|
+
}, [fetcher, cache, args]);
|
|
1058
|
+
const fallbackData = fallback && isFallbackKey(args) && fallback[args[0]];
|
|
1059
|
+
return {
|
|
1060
|
+
data: !data && fallbackData ? fallbackData : data,
|
|
1061
|
+
error,
|
|
1062
|
+
mutate: () => Promise.resolve(undefined) // TODO Clean up cache
|
|
1063
|
+
};
|
|
1064
|
+
}
|
|
1065
|
+
function keyToArgs(key) {
|
|
1066
|
+
if (Array.isArray(key)) {
|
|
1067
|
+
return key;
|
|
1068
|
+
}
|
|
1069
|
+
else if (key instanceof Function) {
|
|
1070
|
+
return keyToArgs(key());
|
|
1071
|
+
}
|
|
1072
|
+
else {
|
|
1073
|
+
return [key];
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1139
1077
|
const REGIONS_URL$1 = '/api/v1/regions';
|
|
1140
1078
|
function useRegions() {
|
|
1141
1079
|
const { data } = useAsyncData(REGIONS_URL$1, fetchJSONUnsafe);
|
|
@@ -1593,14 +1531,14 @@
|
|
|
1593
1531
|
});
|
|
1594
1532
|
|
|
1595
1533
|
const BRANCHES_URL = '/api/v1/branches';
|
|
1596
|
-
const EMPTY_VALUE$
|
|
1534
|
+
const EMPTY_VALUE$4 = [];
|
|
1597
1535
|
function useBranches(regionCode) {
|
|
1598
1536
|
const { data } = useAsyncData(regionCode ? `${BRANCHES_URL}?regionCode=${regionCode}` : null, fetchSafeBoxes$1);
|
|
1599
|
-
return data || EMPTY_VALUE$
|
|
1537
|
+
return data || EMPTY_VALUE$4;
|
|
1600
1538
|
}
|
|
1601
1539
|
const fetchSafeBoxes$1 = async (url) => {
|
|
1602
1540
|
const result = await fetchJSON(url, { method: 'GET' });
|
|
1603
|
-
return result || EMPTY_VALUE$
|
|
1541
|
+
return result || EMPTY_VALUE$4;
|
|
1604
1542
|
};
|
|
1605
1543
|
|
|
1606
1544
|
const REGIONS_URL = '/api/v1/premiumBranchesByRegions';
|
|
@@ -1831,6 +1769,14 @@
|
|
|
1831
1769
|
});
|
|
1832
1770
|
const getLegalEntity = (typeFormKey = '', serviceDirectionKey = '') => typeFormKey === 'FEEDBACK_QS' && serviceDirectionKey === 'Юридическое лицо / ИП';
|
|
1833
1771
|
|
|
1772
|
+
const EMPTY_VALUE$3 = {};
|
|
1773
|
+
const DEFAULT_PATH_DIR = '/wcms-resources';
|
|
1774
|
+
function useSWRResource(filename, options = {}) {
|
|
1775
|
+
const { fallback = EMPTY_VALUE$3, pathDir = DEFAULT_PATH_DIR } = options;
|
|
1776
|
+
const { data } = useAsyncData(filename ? `${pathDir}/${filename}.json` : null, fetchJSONUnsafe, { fallback });
|
|
1777
|
+
return data || EMPTY_VALUE$3;
|
|
1778
|
+
}
|
|
1779
|
+
|
|
1834
1780
|
const ApplicationFormGrantSupport = JSX((props) => {
|
|
1835
1781
|
const { button, sourceBookDir } = props;
|
|
1836
1782
|
const { regions } = useSWRResource(sourceBookDir || 'regions-grant-support');
|
|
@@ -3194,7 +3140,7 @@
|
|
|
3194
3140
|
|
|
3195
3141
|
const VISIBLE_ITEM_COUNT = 0;
|
|
3196
3142
|
|
|
3197
|
-
const Carousel =
|
|
3143
|
+
const Carousel = UniBlock(({ className, itemCount, visibleItemCount = VISIBLE_ITEM_COUNT, noCardBorder, isAlignCenter, arrowsPadded = true, isGap = true, cardSize = 'normal', ...rest }) => {
|
|
3198
3144
|
const { blocks: childBlocks = [] } = rest.block || {};
|
|
3199
3145
|
const count = itemCount || childBlocks?.length;
|
|
3200
3146
|
const [activeIndex, { inc: increaseActiveIndex, dec: decreaseActiveIndex }] = useCarouselControls({
|
|
@@ -3206,21 +3152,22 @@
|
|
|
3206
3152
|
// TODO Remove
|
|
3207
3153
|
const isBankHistoryCarousel = childBlocks && childBlocks[0]?.type === 'CarouselBankHistoryCard';
|
|
3208
3154
|
return (jsxs(BlockWrapper, { className: className, defaultPadding: "p-6xl", ...rest, children: [jsxs("div", { className: style(isAlignCenter ? 'flex justify-center' : '', 'relative max-w-full'), children: [jsx(SwipeListContainer, { containerRef: containerRef, visibleItemCount: visibleItemCount, snapAlign: "snap-start", gap: isGap ? ITEMS_GAP : undefined, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, children: renderCarouselCards({ noCardBorder, activeIndex, cardSize, ...rest }) }), jsx(CarouselScrollButtons, { scroll: scroll, arrowsPadded: arrowsPadded, onScrollLeft: decreaseActiveIndex, onScrollRight: increaseActiveIndex, hasEdgeBlocks: isBankHistoryCarousel, activeIndex: activeIndex, itemCount: count })] }), jsx(SwipeListControlDots, { className: "@5xl:hidden", containerRef: containerRef, activeIndex: dotsActiveIndex, dotCount: count, listType: "horizontal-list" })] }));
|
|
3209
|
-
}
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3155
|
+
}, {
|
|
3156
|
+
childrenTypes: [
|
|
3157
|
+
'CarouselCard',
|
|
3158
|
+
'CarouselBankHistoryCard',
|
|
3159
|
+
'CarouselCatalogCard',
|
|
3160
|
+
'CarouselRecommendationCard',
|
|
3161
|
+
'CarouselTariffsCard',
|
|
3162
|
+
'RichTextBlock',
|
|
3163
|
+
'ProductBlock',
|
|
3164
|
+
],
|
|
3165
|
+
childSchema: () => ({
|
|
3166
|
+
isHighlighting: {
|
|
3167
|
+
title: 'Выделить карточку',
|
|
3168
|
+
type: 'boolean',
|
|
3169
|
+
},
|
|
3170
|
+
}),
|
|
3224
3171
|
});
|
|
3225
3172
|
|
|
3226
3173
|
const CarouselBankHistoryCard = JSX(({ title, description, className }) => (jsx(BlockWrapper, { className: className, defaultPadding: "p-6xl", children: jsx(Headline, { headlineVersion: "XS", title: title, description: description, align: "text-left", className: "text-primary-text", isEmbedded: true }) })));
|
|
@@ -3485,8 +3432,6 @@
|
|
|
3485
3432
|
return (jsxs("div", { children: [item?.title ? (jsx("div", { className: "mb-m", children: jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: item.title }) })) : null, jsx(SlideCheckboxGroup, { items: options, multiple: !item?.single, ...field(key) })] }, key));
|
|
3486
3433
|
};
|
|
3487
3434
|
|
|
3488
|
-
const unique = (list) => [...new Set(list)];
|
|
3489
|
-
|
|
3490
3435
|
const isRateRow = (rateRow) => {
|
|
3491
3436
|
return typeof rateRow?.minMonths === 'number' && typeof rateRow?.maxMonths === 'number';
|
|
3492
3437
|
};
|
|
@@ -3533,7 +3478,7 @@
|
|
|
3533
3478
|
},
|
|
3534
3479
|
period: 3,
|
|
3535
3480
|
};
|
|
3536
|
-
const DepositFiltration =
|
|
3481
|
+
const DepositFiltration = UniBlock(({ className, filtrationSchema = {}, resetButton, sumInput, periodInput, ...rest }) => {
|
|
3537
3482
|
const { source, months } = useDepositsPeriods(rest.block?.blocks);
|
|
3538
3483
|
const [filtrationState, { field, reset }] = useForm(initialFiltrationState$1);
|
|
3539
3484
|
const blocksToRender = filtrationState === initialFiltrationState$1
|
|
@@ -3544,15 +3489,15 @@
|
|
|
3544
3489
|
format: ({ min }) => String(min),
|
|
3545
3490
|
}) }), jsx(InputRange, { title: periodInput?.title, items: ['От 3 мес', 'До 5 лет'], list: months, ...field('period') })] }));
|
|
3546
3491
|
return (jsxs(BlockWrapper, { className: style('space-y-2xs', className), defaultPadding: "p-0", version: "transparent", ...rest, children: [renderFiltrationForm$1({ field, reset, filtrationSchema, resetButton, children: Inputs }), jsx(BaseFiltrationInner, { blocksToRender: blocksToRender, ...rest })] }));
|
|
3547
|
-
}
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3492
|
+
}, {
|
|
3493
|
+
childrenTypes: ['ProductTile'],
|
|
3494
|
+
childSchema: (content) => ({
|
|
3495
|
+
...(content?.filtrationSchema || {}),
|
|
3496
|
+
sourceBook: {
|
|
3497
|
+
type: 'string',
|
|
3498
|
+
title: 'Адрес справочника',
|
|
3499
|
+
},
|
|
3500
|
+
}),
|
|
3556
3501
|
});
|
|
3557
3502
|
|
|
3558
3503
|
const renderErrorContent = (error) => {
|
|
@@ -3758,8 +3703,6 @@
|
|
|
3758
3703
|
return currencies?.filter((_) => _?.currency?.id === 1 || _?.currency?.id === 2) || [];
|
|
3759
3704
|
};
|
|
3760
3705
|
|
|
3761
|
-
const useSitemap = (fallback) => useSWRResource(projectSettings.SITEMAP || 'sitemap', { fallback });
|
|
3762
|
-
|
|
3763
3706
|
const mapCookie = (name, mapper) => {
|
|
3764
3707
|
const cookies = globalThis.document?.cookie.split(';') ?? [];
|
|
3765
3708
|
const [, value] = cookies.map((_) => _.split('=')).find(([key]) => key.trim() === name) || [];
|
|
@@ -3780,7 +3723,7 @@
|
|
|
3780
3723
|
|
|
3781
3724
|
const rollupItemStyles = '';
|
|
3782
3725
|
|
|
3783
|
-
const RollupItem =
|
|
3726
|
+
const RollupItem = UniBlock(({ className = '', isExpanded, isFoldButtonOnTop = true, label = 'Развернуть', labelIcon, labelIconBgVersion, foldButtonVersion = 'default',
|
|
3784
3727
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
3785
3728
|
version, ...rest }) => (jsx(BlockWrapper, { className: style('w-full', rollupItemStyles, className), defaultPadding: "p-0", tag: "div", version: "transparent", ...rest, children: jsx(Foldable, { isFoldButtonOnTop: isFoldButtonOnTop, unfoldedByDefault: isExpanded, renderFoldableSection: ({ isUnfolded }) => (jsx(FoldableSection, { className: style('gap-lg', foldableSectionStyles), isUnfolded: isUnfolded, children: renderChildren({
|
|
3786
3729
|
...rest,
|
|
@@ -3792,10 +3735,9 @@
|
|
|
3792
3735
|
labelIconBgVersion,
|
|
3793
3736
|
isUnfolded,
|
|
3794
3737
|
onToggle,
|
|
3795
|
-
}) }) }))
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
};
|
|
3738
|
+
}) }) })), {
|
|
3739
|
+
childrenTypes: { exclude: ['RollupItem'] },
|
|
3740
|
+
});
|
|
3799
3741
|
const renderFoldButton$1 = ({ foldButtonVersion, label: defaultLabel, labelIcon, labelIconBgVersion, isUnfolded, onToggle, }) => {
|
|
3800
3742
|
const label = defaultLabel || (isUnfolded ? 'Скрыть' : 'Развернуть');
|
|
3801
3743
|
const icon = getIconName(isUnfolded);
|
|
@@ -3846,16 +3788,16 @@
|
|
|
3846
3788
|
|
|
3847
3789
|
const TextInformation = JSX(({ className = '', links }) => (jsxs("div", { className: style('@container', className), children: [jsx("div", { className: "pt-lg", children: jsx(Text, { size: "text-xs", font: "font-light", color: "text-secondary-text", children: `\u00a9\u00A02000-${new Date().getFullYear()}\u00A0АО \u00ABРоссельхозбанк\u00BB Генеральная лицензия Банка России \u2116\u00A03349 от\u00A012.08.2015\u00A0г.` }) }), links?.length ? (jsx("div", { className: "flex flex-col @5xl:flex-row justify-start items-start gap-x-lg gap-y-xs pt-lg", children: links.map((_, i) => (jsx(TextInformationLink, { index: i, ..._ }, String(i)))) })) : null] })));
|
|
3848
3790
|
|
|
3849
|
-
const Footer =
|
|
3850
|
-
const
|
|
3851
|
-
const {
|
|
3852
|
-
const { relatedEnterprises, contacts, socialMedia, mobileApps, horizontalNavigationTitle, documents, } = useSWRResource(projectSettings.FOOTER || 'footer', { fallback });
|
|
3791
|
+
const Footer = UniBlock(({ className, footer, ...rest }) => {
|
|
3792
|
+
const { topItems } = rest.options?.page?.sitemap ?? {};
|
|
3793
|
+
const { relatedEnterprises, contacts, socialMedia, mobileApps, horizontalNavigationTitle, documents, } = footer || {};
|
|
3853
3794
|
const handleOnClick = useCallback(() => {
|
|
3854
3795
|
const [name, oldValue, newValue] = COOKIE_REPLACE;
|
|
3855
3796
|
mapCookie(name, (value) => value?.replace(oldValue, newValue));
|
|
3856
3797
|
}, []);
|
|
3857
|
-
return (jsxs(BlockWrapper, { tag: "footer", className: className, defaultPadding: "p-4xl pb-24", ...rest, children: [jsx("div", { className: "mb-lg pb-xs border-b border-main-divider", children: topItems
|
|
3798
|
+
return (jsxs(BlockWrapper, { tag: "footer", className: className, defaultPadding: "p-4xl pb-24", ...rest, children: [jsx("div", { className: "mb-lg pb-xs border-b border-main-divider", children: renderTopItems(topItems) }), jsx(Contacts, { className: "overflow-hidden", items: contacts }), jsxs("div", { className: "mt-xl", children: [jsx(SocialMedia, { className: "mb-xl", media: socialMedia, stretched: true, children: "\u0421\u043E\u0446\u0441\u0435\u0442\u0438" }), jsxs("div", { className: "mb-xl", children: [jsx("div", { className: "flex flex-col gap-4 mb-xs", children: mobileApps?.map(renderButton) }), jsx(Text, { size: "text-s", font: "font-light", color: "text-secondary-text", children: "\u041C\u043E\u0431\u0438\u043B\u044C\u043D\u043E\u0435 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" })] })] }), jsx("div", { className: "py-lg border-t border-main-divider", children: jsx(HorizontalNavigationLink, { text: "\u0412\u0435\u0440\u043D\u0443\u0442\u044C\u0441\u044F \u043D\u0430 \u043F\u0440\u0435\u0436\u043D\u044E\u044E \u0432\u0435\u0440\u0441\u0438\u044E \u0441\u0430\u0439\u0442\u0430", className: "text-l font-light max-w-[292px]", href: "https://old.rshb.ru", onClick: handleOnClick }) }), jsx(HorizontalNavigation, { className: "py-lg border-y border-main-divider", title: horizontalNavigationTitle, links: relatedEnterprises }), jsx(TextInformation, { links: documents })] }));
|
|
3858
3799
|
});
|
|
3800
|
+
const renderTopItems = (topItems) => topItems?.map((item, i) => (jsx(RollupItem, { foldButtonVersion: "accordion", label: item?.text, labelIcon: item?.icon, children: jsx(LinkList, { items: item.items, basePath: appendSlash(item.href) }) }, String(i))));
|
|
3859
3801
|
const renderButton = ({ href = '/', text }, i) => {
|
|
3860
3802
|
const { label } = findIconByHref(href);
|
|
3861
3803
|
return (jsx(LinkButton, { className: "w-full", text: text || label, version: "secondary", href: href, target: "_blank" }, String(i)));
|
|
@@ -3910,12 +3852,9 @@
|
|
|
3910
3852
|
'bg-white': 'primary',
|
|
3911
3853
|
transparent: 'transparent',
|
|
3912
3854
|
};
|
|
3913
|
-
const Header =
|
|
3914
|
-
const { logo } =
|
|
3915
|
-
const { internetBankUrl } =
|
|
3916
|
-
fallback: rest.options?.page?.fallback,
|
|
3917
|
-
pathDir: joinPath(projectSettings.BASE_PATH, 'portal-resources'),
|
|
3918
|
-
});
|
|
3855
|
+
const Header = UniBlock(({ bgColor = 'bg-white', version = BG_COLOR_TO_BLOCK_VERSION[bgColor], portal, ...rest }) => {
|
|
3856
|
+
const { logo } = rest.options?.page?.sitemap ?? {};
|
|
3857
|
+
const { internetBankUrl } = portal || {};
|
|
3919
3858
|
return (jsx(BlockWrapper, { tag: "header", defaultPadding: "", version: version, ...rest, children: jsx("div", { className: "container px-lg py-2xs box-border", children: jsx(HeaderTop, { bgColor: bgColor, logo: logo, internetBankUrl: internetBankUrl, version: version, ...rest }) }) }));
|
|
3920
3859
|
});
|
|
3921
3860
|
|
|
@@ -3929,7 +3868,7 @@
|
|
|
3929
3868
|
'': '',
|
|
3930
3869
|
};
|
|
3931
3870
|
|
|
3932
|
-
const VerticalLayout =
|
|
3871
|
+
const VerticalLayout = UniBlock(({ className = '', padding = 'p-0', gap = '', isInnerPadding = true, version = 'transparent', isTheme = false, isCardBorder = false, image, ...rest }) => {
|
|
3933
3872
|
const router = useRouter();
|
|
3934
3873
|
return (jsx(BlockWrapper, { className: style('relative flex flex-col', gapStyles[gap], image?.src ? 'bg-right-bottom bg-no-repeat' : '', className), ...(image?.src
|
|
3935
3874
|
? { style: { backgroundImage: `url(${adjustSrc(router)(image?.src)})` } }
|
|
@@ -3940,11 +3879,9 @@
|
|
|
3940
3879
|
padding: isInnerPadding ? '' : 'p-0',
|
|
3941
3880
|
},
|
|
3942
3881
|
}) }));
|
|
3943
|
-
});
|
|
3944
|
-
VerticalLayout.childrenTypes = [];
|
|
3882
|
+
}, { childrenTypes: [] });
|
|
3945
3883
|
|
|
3946
|
-
const HorizontalLayout =
|
|
3947
|
-
HorizontalLayout.childrenTypes = [];
|
|
3884
|
+
const HorizontalLayout = UniBlock((props) => jsx(VerticalLayout, { ...props }), { childrenTypes: [] });
|
|
3948
3885
|
|
|
3949
3886
|
const ImgBlock = JSX((props) => {
|
|
3950
3887
|
const { className, image, ...rest } = props;
|
|
@@ -4105,7 +4042,7 @@
|
|
|
4105
4042
|
propertyType: [],
|
|
4106
4043
|
stage: [],
|
|
4107
4044
|
};
|
|
4108
|
-
const MortgageFiltration =
|
|
4045
|
+
const MortgageFiltration = UniBlock(({ className, hotFilters, filtrationSchema = {}, resetButton, ...rest }) => {
|
|
4109
4046
|
const [filtrationState, { field, reset, update: replaceFiltrationState }] = useForm(initialFiltrationState);
|
|
4110
4047
|
const blocksToRender = filtrationState === initialFiltrationState
|
|
4111
4048
|
? rest.block?.blocks
|
|
@@ -4118,9 +4055,10 @@
|
|
|
4118
4055
|
onFiltrationStateChange: handleFiltrationStateChange,
|
|
4119
4056
|
});
|
|
4120
4057
|
return (jsxs(BlockWrapper, { className: style('space-y-2xs', className), defaultPadding: "p-0", version: "transparent", ...rest, children: [jsx(TabsControl, { ...tabsControlProps }), renderFiltrationForm$1({ field, reset, filtrationSchema, resetButton }), jsx(BaseFiltrationInner, { blocksToRender: blocksToRender, ...rest })] }));
|
|
4058
|
+
}, {
|
|
4059
|
+
childrenTypes: ['ProductTile'],
|
|
4060
|
+
childSchema: (content) => content?.filtrationSchema || {},
|
|
4121
4061
|
});
|
|
4122
|
-
MortgageFiltration.childrenTypes = ['ProductTile'];
|
|
4123
|
-
MortgageFiltration.childSchema = (content) => content?.filtrationSchema || {};
|
|
4124
4062
|
|
|
4125
4063
|
function renderClusterer(yandexMaps, map, points) {
|
|
4126
4064
|
map.geoObjects.removeAll();
|
|
@@ -4798,947 +4736,904 @@
|
|
|
4798
4736
|
};
|
|
4799
4737
|
const getIconSizeStyle = (size) => (size === 'normal' ? '38' : '24');
|
|
4800
4738
|
|
|
4801
|
-
const
|
|
4802
|
-
const
|
|
4803
|
-
const [containerRef, scroll] = useSwipeListScroll({
|
|
4804
|
-
itemCount: items?.length || 0,
|
|
4805
|
-
});
|
|
4806
|
-
return (jsxs("div", { className: style('relative overflow-x-auto no-scrollbar', className), role: "tablist", children: [jsx(SwipeListContainer, { containerRef: containerRef, snapAlign: "snap-start", onVisibleIndicesChange: scroll.handleVisibleIndicesChange, children: items.map(renderTab(value, onChange, tabsType)) }), scroll.canScrollLeft ? (jsx(ScrollLeftButton, { className: style('left-6', scrollButtonStyle), onClick: scroll.scrollLeft })) : null, scroll.canScrollRight ? (jsx(ScrollRightButton, { className: style('right-6', scrollButtonStyle), onClick: scroll.scrollRight })) : null] }));
|
|
4807
|
-
});
|
|
4739
|
+
const isHrefActive = (router) => ({ href }) => !href ? false : withoutQuery(getRouterHref(href, router)).startsWith(withoutQuery(href));
|
|
4740
|
+
const getRouterHref = (href, router) => isURL(href) ? router.href : router.pathname;
|
|
4808
4741
|
|
|
4809
|
-
const
|
|
4810
|
-
switch (tabsMode) {
|
|
4811
|
-
case 'wideScreen':
|
|
4812
|
-
return jsx(TabsControl, { ...props });
|
|
4813
|
-
case 'centered':
|
|
4814
|
-
return (jsx("div", { className: "flex", children: jsx(TabsControl, { className: "m-auto p-xs rounded-md bg-main-gray", tabsType: "rounded", ...props }) }));
|
|
4815
|
-
case 'scrollable':
|
|
4816
|
-
return (jsx("div", { className: "flex", children: jsx(ScrollableTabsControl, { className: "m-auto", tabsType: "underlined", ...props }) }));
|
|
4817
|
-
default:
|
|
4818
|
-
return null;
|
|
4819
|
-
}
|
|
4820
|
-
};
|
|
4742
|
+
const isTopItemActive = (router) => isHrefActive(projectSettings.BASE_PATH ? { pathname: projectSettings.BASE_PATH } : router);
|
|
4821
4743
|
|
|
4822
|
-
|
|
4823
|
-
const Tabs = JSX(({ className = '', isSticky, tabs = [], tabsMode, ...rest }) => {
|
|
4744
|
+
function useActiveRoute(items = []) {
|
|
4824
4745
|
const router = useRouter();
|
|
4825
|
-
const
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
useEffect(() => {
|
|
4829
|
-
if (!tabs || !tabs[0]) {
|
|
4830
|
-
return;
|
|
4831
|
-
}
|
|
4832
|
-
const defaultTabIndex = router.query[TAB_QUERY_PARAM_KEY]
|
|
4833
|
-
? tabs.findIndex((_) => _.type === 'group' && _.ref === router.query[TAB_QUERY_PARAM_KEY]) || 0
|
|
4834
|
-
: 0;
|
|
4835
|
-
const defaultTab = tabs[defaultTabIndex] || tabs[0];
|
|
4836
|
-
setActiveTabIndex(defaultTabIndex);
|
|
4837
|
-
fireTabEvent(defaultTab);
|
|
4838
|
-
}, [isReady]);
|
|
4839
|
-
useEffect(() => {
|
|
4840
|
-
const activeTab = tabs[activeTabIndex];
|
|
4841
|
-
if (activeTab?.type === 'group') {
|
|
4842
|
-
defaultEventBus.subject('tab', {
|
|
4843
|
-
type: activeTab.type,
|
|
4844
|
-
label: activeTab.ref,
|
|
4845
|
-
groupName: activeTab.name,
|
|
4846
|
-
});
|
|
4847
|
-
}
|
|
4848
|
-
}, [tabs, activeTabIndex]);
|
|
4849
|
-
const updateUrlSearchTabParam = (_) => {
|
|
4850
|
-
const searchParams = new URLSearchParams(router.query);
|
|
4851
|
-
if (_.name) {
|
|
4852
|
-
searchParams.set(TAB_QUERY_PARAM_KEY, _.name);
|
|
4853
|
-
}
|
|
4854
|
-
else {
|
|
4855
|
-
searchParams.delete(TAB_QUERY_PARAM_KEY);
|
|
4856
|
-
}
|
|
4857
|
-
router.replace(`${router.pathname}?${searchParams}`, '', { scroll: false });
|
|
4858
|
-
};
|
|
4859
|
-
const handleChange = useCallback((_) => {
|
|
4860
|
-
const index = tabsControlItems.indexOf(_);
|
|
4861
|
-
const tab = tabs[index];
|
|
4862
|
-
setActiveTabIndex(index);
|
|
4863
|
-
fireTabEvent(tab);
|
|
4864
|
-
if (tab.type === 'group') {
|
|
4865
|
-
updateUrlSearchTabParam(_);
|
|
4866
|
-
}
|
|
4867
|
-
}, [tabs, tabsControlItems]);
|
|
4868
|
-
return (jsx(BlockWrapper, { className: style(isSticky ? 'sticky top-1 z-20' : '', className), defaultPadding: "p-0", ...rest, children: renderTabs({
|
|
4869
|
-
items: tabsControlItems,
|
|
4870
|
-
value: tabsControlItems[activeTabIndex],
|
|
4871
|
-
tabsMode,
|
|
4872
|
-
onChange: handleChange,
|
|
4873
|
-
}) }));
|
|
4874
|
-
});
|
|
4875
|
-
const fireTabEvent = (tab) => {
|
|
4876
|
-
if (tab.type === 'group') {
|
|
4877
|
-
defaultEventBus.fire('tab', { type: tab.type, label: tab.ref, groupName: tab.name });
|
|
4878
|
-
}
|
|
4879
|
-
if (tab.type === 'link') {
|
|
4880
|
-
defaultEventBus.fire('tab', { type: tab.type, label: tab.href });
|
|
4881
|
-
}
|
|
4882
|
-
};
|
|
4883
|
-
const normalizeTab = (_) => _?.type === 'group' ? { text: _.title, name: _.ref } : _;
|
|
4746
|
+
const activeIndex = items.findIndex(isTopItemActive(router));
|
|
4747
|
+
return [activeIndex, items[activeIndex]];
|
|
4748
|
+
}
|
|
4884
4749
|
|
|
4885
|
-
const
|
|
4886
|
-
start: 'text-start',
|
|
4887
|
-
center: 'text-center',
|
|
4888
|
-
end: 'text-end',
|
|
4889
|
-
};
|
|
4750
|
+
const StickyBottomMenuBurger = JSX(({ isActive, onClick }) => (jsxs("button", { className: style(isActive ? 'text-primary-main' : 'text-primary-text', `w-10 m-4 flex justify-center items-center flex-col text-xs cursor-pointer`), onClick: onClick, children: [jsx(Icon, { className: "w-6 h-6", name: "BurgerIcon", iconVersion: isActive ? 'color' : 'black' }), "\u041C\u0435\u043D\u044E"] })));
|
|
4890
4751
|
|
|
4891
|
-
const
|
|
4892
|
-
|
|
4893
|
-
|
|
4894
|
-
: '
|
|
4895
|
-
title: isActive ? 'mb-xs text-xl' : 'mb-2xs text-l',
|
|
4896
|
-
desc: `font-light ${isActive ? 'text-l text-white' : 'text-m text-secondary-text'}`,
|
|
4897
|
-
icon: isActive ? '' : 'text-primary-main',
|
|
4898
|
-
iconVersion: (isActive ? 'white' : 'normal'),
|
|
4899
|
-
});
|
|
4900
|
-
const TabsLayoutButton = JSX(({ tab, className, onClick, isActive }) => {
|
|
4901
|
-
const buttonClassNames = getButtonClassNames(isActive);
|
|
4902
|
-
return (jsxs("button", { type: "button", onClick: onClick, "aria-label": tab?.title, className: style('border border-gray cursor-pointer text-left border-b-0 mt-auto flex gap-2xs', buttonClassNames.btn, className), children: [tab?.icon ? (jsx(Img, { className: style('h-6 w-6 min-w-6 min-h-6', buttonClassNames.icon), image: {
|
|
4903
|
-
...tab?.icon,
|
|
4904
|
-
iconVersion: tab?.icon?.iconVersion ?? buttonClassNames.iconVersion,
|
|
4905
|
-
}, width: "24", height: "24" })) : null, jsxs("div", { className: "border-0", children: [tab?.title ? jsx("div", { className: buttonClassNames.title, children: tab.title }) : null, tab?.description ? jsx("div", { className: buttonClassNames.desc, children: tab.description }) : null] })] }));
|
|
4752
|
+
const StickyBottomMenuItem = JSX(({ isActive, item, onClick }) => {
|
|
4753
|
+
const link = useLink({ isRemote: true });
|
|
4754
|
+
const { href, onClick: handleClick } = link({ href: item?.href, onClick });
|
|
4755
|
+
return (jsxs("a", { className: style(isActive ? 'text-primary-main' : 'text-primary-text', `w-10 m-4 flex justify-center items-center flex-col text-xs cursor-pointer`), href: href, target: "_self", title: item?.title || '', onClick: handleClick, children: [jsx(Icon, { className: "w-6 h-6", name: item?.icon?.icon, iconVersion: isActive ? 'color' : 'black' }), item?.title || ''] }));
|
|
4906
4756
|
});
|
|
4907
4757
|
|
|
4908
|
-
|
|
4909
|
-
useEffect(() => {
|
|
4910
|
-
const timerId = globalThis.setTimeout(effect, delay);
|
|
4911
|
-
return () => {
|
|
4912
|
-
globalThis.clearTimeout(timerId);
|
|
4913
|
-
};
|
|
4914
|
-
}, deps);
|
|
4915
|
-
}
|
|
4758
|
+
const isDialogOpen = (id, dialogs) => Boolean(dialogs.find((item) => item.id === id, id));
|
|
4916
4759
|
|
|
4917
|
-
|
|
4918
|
-
|
|
4919
|
-
const
|
|
4920
|
-
const
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
* and default routing won't work if the link is external.
|
|
4926
|
-
*/
|
|
4927
|
-
if (tab.href && !isLocalURL(tab.href)) {
|
|
4928
|
-
globalThis.location.href = tab.href;
|
|
4929
|
-
}
|
|
4930
|
-
},
|
|
4931
|
-
});
|
|
4932
|
-
useDebouncedEffect(onClick, [], REDIRECT_DELAY);
|
|
4933
|
-
return jsx(Shimmer, { className: "col-span-12 p-xl", size: 5 });
|
|
4934
|
-
});
|
|
4760
|
+
function useList(initialList = []) {
|
|
4761
|
+
const [list, setList] = useState(initialList);
|
|
4762
|
+
const push = useCallback((item) => setList(_ => [..._, item]), []);
|
|
4763
|
+
const pop = useCallback(() => setList(_ => _.slice(0, -1)), []);
|
|
4764
|
+
const remove = useCallback((item) => setList(_ => _.filter(currentItem => currentItem !== item)), []);
|
|
4765
|
+
const clear = useCallback(() => setList([]), []);
|
|
4766
|
+
return [list, { setList, push, pop, remove, clear }];
|
|
4767
|
+
}
|
|
4935
4768
|
|
|
4936
|
-
const
|
|
4937
|
-
const [
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
}, [
|
|
4769
|
+
const useDialogsList = ({ onCloseAll, onClose, } = {}) => {
|
|
4770
|
+
const [dialogs, { push, pop, clear }] = useList();
|
|
4771
|
+
const closeAll = useCallback(() => {
|
|
4772
|
+
onCloseAll && onCloseAll(dialogs);
|
|
4773
|
+
clear();
|
|
4774
|
+
}, [dialogs, onCloseAll]);
|
|
4775
|
+
const close = useCallback(() => {
|
|
4776
|
+
onClose && onClose(dialogs[dialogs.length - 1]);
|
|
4777
|
+
pop();
|
|
4778
|
+
}, [dialogs, onClose]);
|
|
4779
|
+
useEffect(() => defaultEventBus.subscribe('dialog', (action) => {
|
|
4780
|
+
switch (action.type) {
|
|
4781
|
+
case 'open':
|
|
4782
|
+
push(action);
|
|
4783
|
+
break;
|
|
4784
|
+
case 'close':
|
|
4785
|
+
if (action.all) {
|
|
4786
|
+
closeAll();
|
|
4787
|
+
}
|
|
4788
|
+
else {
|
|
4789
|
+
close();
|
|
4790
|
+
}
|
|
4791
|
+
break;
|
|
4792
|
+
default:
|
|
4793
|
+
assertUnreachable(action);
|
|
4794
|
+
}
|
|
4795
|
+
}), [closeAll, close]);
|
|
4796
|
+
return dialogs;
|
|
4946
4797
|
};
|
|
4947
4798
|
|
|
4948
|
-
const
|
|
4949
|
-
const [activeTabIndex, setActiveTabIndex] = useState(getInitSelectedIndex(tabs));
|
|
4950
|
-
const slotName = getSlotName(tabs[activeTabIndex], activeTabIndex);
|
|
4951
|
-
const itemCount = tabs.length;
|
|
4952
|
-
const [activeSlideIndex, { inc: incActiveSlideIndex, dec: decActiveSlideIndex }] = useCarouselControls({ itemCount }, activeTabIndex);
|
|
4953
|
-
const [containerRef, scroll] = useSwipeListScroll({ itemCount });
|
|
4954
|
-
useScrollToTab(activeTabIndex, scroll);
|
|
4955
|
-
return (jsxs(BlockWrapper, { className: style(className), defaultPadding: "p-0", ...rest, children: [jsxs("div", { className: "relative border-b-8 border-primary-main", children: [jsx(SwipeListContainer, { itemClassName: "flex", containerRef: containerRef, snapAlign: "snap-end", gap: 8, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, children: tabs.map(renderTabButton(activeTabIndex, setActiveTabIndex, tabAlign)) }), jsx(CarouselScrollButtons, { scroll: scroll, arrowsPadded: true, onScrollLeft: decActiveSlideIndex, onScrollRight: incActiveSlideIndex, activeIndex: activeSlideIndex, itemCount: itemCount })] }), jsx("div", { className: "space-y-px @5xl:space-y-0 @5xl:grid @5xl:grid-cols-12 @5xl:gap-2xs", children: tabs[activeTabIndex]?.href ? (jsx(TabsLayoutRedirectSection, { tab: tabs[activeTabIndex] })) : (renderBlocksList(block?.slots?.[slotName], {
|
|
4956
|
-
...rest?.options,
|
|
4957
|
-
slotName,
|
|
4958
|
-
parent: block,
|
|
4959
|
-
})) })] }));
|
|
4960
|
-
});
|
|
4961
|
-
TabsLayout.slots = ({ tabs }) => tabs?.filter((_) => !_.href).map(getSlotName) || [];
|
|
4962
|
-
TabsLayout.childrenTypes = { exclude: ['TabsLayout'] }; //TODO: fix this on wcms
|
|
4963
|
-
const getSlotName = (tab, index) => tab?.title || `Слот №${index}`;
|
|
4964
|
-
const getInitSelectedIndex = (tabs) => tabs.reduce((selectedIndex, tab, i) => (tab.selected ? i : selectedIndex), 0);
|
|
4965
|
-
const renderTabButton = (activeTabIndex, onClick, tabAlign = 'start') => (tab, i) => (jsx(TabsLayoutButton, { className: alignTabStyle[tabAlign], tab: tab, isActive: activeTabIndex === i, onClick: () => onClick(i) }, String(i)));
|
|
4799
|
+
const CloseButton = JSX(({ className, onClose }) => (jsx("button", { className: style('flex justify-center items-center w-12 h-12 p-2xs bg-transparent border-none', className), onClick: onClose, title: "\u0417\u0430\u043A\u0440\u044B\u0442\u044C", children: jsx(Img, { image: { icon: 'CloseIcon' }, width: "24", height: "24" }) })));
|
|
4966
4800
|
|
|
4967
|
-
const
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4801
|
+
const Dialog = JSX(({ className, head, children, onClose }) => {
|
|
4802
|
+
const { close } = useDialogManager();
|
|
4803
|
+
const handleClose = useCallback(() => {
|
|
4804
|
+
close();
|
|
4805
|
+
onClose && onClose();
|
|
4806
|
+
}, [onClose]);
|
|
4807
|
+
return (jsxs("div", { className: style('relative min-h-full bg-white pt-0 p-5', className), children: [jsxs("div", { className: "sticky py-xl top-0 bg-white z-10", children: [jsx(CloseButton, { className: "absolute top-0 right-0", onClose: handleClose }), jsx("div", { className: "container", children: head })] }), jsx("div", { className: "container pb-6xl", children: children })] }));
|
|
4808
|
+
});
|
|
4971
4809
|
|
|
4972
|
-
const
|
|
4973
|
-
|
|
4974
|
-
|
|
4810
|
+
const groupBy = (list, keyGetter) => {
|
|
4811
|
+
const result = new Map();
|
|
4812
|
+
for (const item of list) {
|
|
4813
|
+
const key = keyGetter(item);
|
|
4814
|
+
const group = result.get(key) || [];
|
|
4815
|
+
result.set(key, [...group, item]);
|
|
4816
|
+
}
|
|
4817
|
+
return result;
|
|
4975
4818
|
};
|
|
4976
|
-
const TableCarouselContainer = JSX(({ children, activeIndex, columnWidth, version = 'comparison' }) => (jsx("div", { className: "flex flex-1 overflow-hidden", children: jsx("div", { className: carouselContainerClassesMap[version], style: { transform: `translateX(-${activeIndex * columnWidth}px)` }, children: children }) })));
|
|
4977
|
-
|
|
4978
|
-
const TableInnerButton = JSX(({ className = '', isOpen, onClick }) => (jsx(LinkButton, { className: className, appendRight: jsx(Img, { image: { icon: isOpen ? 'ArrowUpIcon' : 'ArrowDownIcon' }, width: "20", height: "20" }), text: isOpen ? 'Скрыть' : 'Показать', version: "gray", onClick: onClick })));
|
|
4979
4819
|
|
|
4980
|
-
const
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
const renderListCellData = ({ isDotted, ...rest }) => (jsx(List, { className: "flex flex-col justify-between items-start text-h6", isDotted: isDotted ?? true, ...rest }));
|
|
4986
|
-
const renderInnerTableCellData = ({ isVisible, displayTable, dataUrl, pdfUrl, isOpen, }) => isVisible ? (jsx(TableInnerButton, { isOpen: isOpen, onClick: () => {
|
|
4987
|
-
displayTable({ dataUrl, pdfUrl });
|
|
4988
|
-
} })) : null;
|
|
4989
|
-
const EmbeddableCellData = {
|
|
4990
|
-
Buttons: renderButtonsCellData,
|
|
4991
|
-
Img: renderImgCellData,
|
|
4992
|
-
List: renderListCellData,
|
|
4993
|
-
LabelDescription: renderLabelDescriptionCellData,
|
|
4994
|
-
Table: renderInnerTableCellData,
|
|
4995
|
-
};
|
|
4996
|
-
|
|
4997
|
-
const RenderCellInner = JSX(({ cell, fieldIdx, rowIdx, cellIdx, setTableInner, tableInner, openTableInnerIdx, setOpenTableInnerIdx, }) => {
|
|
4998
|
-
const [isVisible, setVisibility] = useState(true);
|
|
4999
|
-
useEffect(() => {
|
|
5000
|
-
if (cellIdx !== openTableInnerIdx || !tableInner) {
|
|
5001
|
-
setVisibility(true);
|
|
5002
|
-
}
|
|
5003
|
-
}, [tableInner, openTableInnerIdx]);
|
|
5004
|
-
const displayTable = (props) => {
|
|
5005
|
-
setVisibility(false);
|
|
5006
|
-
setOpenTableInnerIdx(cellIdx);
|
|
5007
|
-
setTableInner(props);
|
|
5008
|
-
};
|
|
5009
|
-
return renderCell({
|
|
5010
|
-
cell,
|
|
5011
|
-
cellProps: {
|
|
5012
|
-
rowIdx,
|
|
5013
|
-
cellIdx,
|
|
5014
|
-
fieldIdx,
|
|
5015
|
-
displayTable,
|
|
5016
|
-
isVisible,
|
|
5017
|
-
},
|
|
5018
|
-
});
|
|
5019
|
-
});
|
|
5020
|
-
const renderCell = ({ cell, cellProps }) => {
|
|
5021
|
-
if (!cell) {
|
|
5022
|
-
return null;
|
|
4820
|
+
const JARO_WINKLER_P = 0.1;
|
|
4821
|
+
const JARO_WINKLER_MAX_L = 4;
|
|
4822
|
+
const jaroWinklerDistance = (s1) => (s2) => {
|
|
4823
|
+
if (s1 === s2) {
|
|
4824
|
+
return 1;
|
|
5023
4825
|
}
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
return null;
|
|
4826
|
+
if (!s1 || !s2) {
|
|
4827
|
+
return 0;
|
|
5027
4828
|
}
|
|
5028
|
-
const
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
const TariffsTableCell = JSX(({ cells, rowIdx, cellIdx, setTableInner, tableInner, openTableInnerIdx, setOpenTableInnerIdx, }) => {
|
|
5033
|
-
return (jsx("div", { className: "w-80 flex-grow flex flex-col gap-m @4xl:gap-lg", role: "cell", children: cells?.length
|
|
5034
|
-
? cells.map((_, i) => (jsx(RenderCellInner, { cell: _, fieldIdx: i, rowIdx: rowIdx, cellIdx: cellIdx, setTableInner: setTableInner, tableInner: tableInner, openTableInnerIdx: openTableInnerIdx, setOpenTableInnerIdx: setOpenTableInnerIdx }, String(i))))
|
|
5035
|
-
: null }));
|
|
5036
|
-
});
|
|
5037
|
-
|
|
5038
|
-
const COLUMN_WIDTH = 140;
|
|
5039
|
-
const getHorizontalShift = (columns, activeColumnIndex) => sum(columns.slice(0, activeColumnIndex).map((_) => _?.cols?.length ?? 1)) * COLUMN_WIDTH;
|
|
5040
|
-
|
|
5041
|
-
const renderInnerTableRow = (activeColumnIndex) => (rowData, rowIdx) => {
|
|
5042
|
-
if (!rowData?.length) {
|
|
5043
|
-
return null;
|
|
4829
|
+
const { m, s1Matches, s2Matches } = computeM(s1, s2);
|
|
4830
|
+
if (m === 0) {
|
|
4831
|
+
return 0;
|
|
5044
4832
|
}
|
|
5045
|
-
const
|
|
5046
|
-
const
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
}, children: columns?.map((_, i) => (jsxs("div", { className: "flex flex-col flex-grow gap-s justify-center py-xl odd:bg-main-divider", children: [_?.data ? jsx(Text, { size: "text-xl", children: _.data }) : null, _?.cols ? renderCols(_.cols, activeColumnIndex) : null] }, `row${i}`))) }) })] }, String(rowIdx)));
|
|
4833
|
+
const t = computeT(s1, s2, { s1Matches, s2Matches });
|
|
4834
|
+
const jaroWeight = (m / s1.length + m / s2.length + (m - t / 2) / m) / 3;
|
|
4835
|
+
const winklerWeight = jaroWeight > 0.7 ? computePrefixL(s1, s2) * JARO_WINKLER_P : 0;
|
|
4836
|
+
return jaroWeight + winklerWeight * (1 - jaroWeight);
|
|
5050
4837
|
};
|
|
5051
|
-
|
|
5052
|
-
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
return data || {};
|
|
4838
|
+
function computeM(s1, s2) {
|
|
4839
|
+
const range = Math.max(0, Math.floor(Math.max(s1.length, s2.length) / 2) - 1);
|
|
4840
|
+
const s1Matches = Array.from({ length: s1.length });
|
|
4841
|
+
const s2Matches = Array.from({ length: s2.length });
|
|
4842
|
+
let m = 0;
|
|
4843
|
+
for (let i = 0; i < s1.length; i++) {
|
|
4844
|
+
const low = Math.max(0, i - range);
|
|
4845
|
+
const high = Math.min(i + range, s2.length - 1);
|
|
4846
|
+
for (let j = low; j <= high; j++) {
|
|
4847
|
+
if (s1Matches[i] || s2Matches[j] || s1[i] !== s2[j]) {
|
|
4848
|
+
continue;
|
|
4849
|
+
}
|
|
4850
|
+
m++;
|
|
4851
|
+
s1Matches[i] = true;
|
|
4852
|
+
s2Matches[j] = true;
|
|
4853
|
+
}
|
|
4854
|
+
}
|
|
4855
|
+
return { m, s1Matches, s2Matches };
|
|
5070
4856
|
}
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
4857
|
+
function computeT(s1, s2, { s1Matches, s2Matches }) {
|
|
4858
|
+
let t = 0;
|
|
4859
|
+
for (let i = 0, k = 0; i < s1.length; i++) {
|
|
4860
|
+
if (!s1Matches[i]) {
|
|
4861
|
+
continue;
|
|
4862
|
+
}
|
|
4863
|
+
let j = k;
|
|
4864
|
+
for (; j < s2.length; j++) {
|
|
4865
|
+
if (s2Matches[j]) {
|
|
4866
|
+
k = j + 1;
|
|
4867
|
+
break;
|
|
4868
|
+
}
|
|
4869
|
+
}
|
|
4870
|
+
if (s1[i] !== s2[j]) {
|
|
4871
|
+
t++;
|
|
4872
|
+
}
|
|
4873
|
+
}
|
|
4874
|
+
return t;
|
|
5074
4875
|
}
|
|
5075
|
-
function
|
|
5076
|
-
|
|
4876
|
+
function computePrefixL(s1, s2) {
|
|
4877
|
+
let prefixL = 0;
|
|
4878
|
+
while (s1[prefixL] === s2[prefixL] && prefixL < JARO_WINKLER_MAX_L) {
|
|
4879
|
+
prefixL++;
|
|
4880
|
+
}
|
|
4881
|
+
return prefixL;
|
|
5077
4882
|
}
|
|
5078
4883
|
|
|
5079
|
-
const
|
|
5080
|
-
const
|
|
5081
|
-
const
|
|
5082
|
-
const
|
|
5083
|
-
|
|
5084
|
-
const items = tableData?.[activeTabIndex]?.items ?? [];
|
|
5085
|
-
const currencies = tableData?.map((item) => item.currency ?? '');
|
|
5086
|
-
return tableData ? (jsxs("div", { className: "bg-white z-10", children: [jsx(InnerTableHeader, { currencies: currencies, activeTabIndex: activeTabIndex, setActiveTabIndex: handleActiveTabIndex, linkToPDF: pdfUrl }), jsx(InnerTableBody, { activeTabIndex: activeTabIndex, items: items }), jsx(TableInnerButton, { className: "mt-xl", onClick: onClick, isOpen: true })] })) : (jsxs("div", { className: "my-lg space-y-m text-center", children: [jsx(Text, { size: "text-h6", children: EMPTY_DATA }), jsx(TableInnerButton, { onClick: onClick, isOpen: true })] }));
|
|
4884
|
+
const renderForeignOffices = (foreignOffices) => foreignOffices?.length ? (jsxs("div", { className: "sm:border-t sm:border-main-divider mt-2xs pt-2xs", children: [jsx("div", { className: "mb-m", children: jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: "\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043B\u044C\u0441\u0442\u0432\u0430 \u0437\u0430 \u0440\u0443\u0431\u0435\u0436\u043E\u043C:" }) }), jsx("div", { className: "flex flex-col sm:flex-row gap-5xl", children: foreignOffices.map((office, i) => (jsx(ForeignOffice, { ...office }, String(i)))) })] })) : null;
|
|
4885
|
+
const ForeignOffice = JSX(({ icon, ...rest }) => {
|
|
4886
|
+
const link = useLink();
|
|
4887
|
+
const { text, target, href, onClick } = link(rest);
|
|
4888
|
+
return (jsxs("div", { className: "flex gap-s items-center", children: [icon ? jsx(Img, { pathPrefix: "/wcms-resources/", image: icon }) : null, text ? (jsx("a", { className: "hover:text-primary-hover", href: href, target: target, onClick: onClick, children: jsx(Text, { size: "text-l", font: "font-light", color: "text-primary-text", children: text }) })) : null] }));
|
|
5087
4889
|
});
|
|
5088
4890
|
|
|
5089
|
-
const
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
const [tableInner, setTableInner] = useState(undefined);
|
|
5093
|
-
const handleSetTableInner = useCallback((_) => setTableInner(_), []);
|
|
5094
|
-
const [openTableInnerIdx, setOpenTableInnerIdx] = useState(undefined);
|
|
5095
|
-
const handleOpenTableInnerIdx = useCallback((_) => setOpenTableInnerIdx(_), []);
|
|
5096
|
-
const onHideContentClick = () => setTableInner(undefined);
|
|
5097
|
-
return (jsxs(TariffsTableRowContainer, { onHideContentClick: onHideContentClick, tableInner: tableInner, ...rest, children: [jsx("div", { className: style('text-s', firstCellStyle), children: jsxs("div", { className: "flex gap-m items-center", role: "cell", children: [header?.icon ? (jsx(Img, { className: "hidden @4xl:block max-w-6 shrink-0", image: header.icon, width: "24", height: "24" })) : null, header?.title ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-primary-text", children: header?.title })) : null] }) }), data?.length ? (jsx(TableCarouselContainer, { activeIndex: activeIndex, columnWidth: COLUMN_WIDTH$1, version: "tariff", children: data.map((cells, i) => (jsx(TariffsTableCell, { cells: cells, rowIdx: rowIdx, cellIdx: i, setTableInner: handleSetTableInner, tableInner: tableInner, openTableInnerIdx: openTableInnerIdx, setOpenTableInnerIdx: handleOpenTableInnerIdx, ...rest }, String(i)))) })) : null] }));
|
|
5098
|
-
});
|
|
4891
|
+
const renderRegion = (onChangeLocation) => (region) => (jsx("div", { className: "mb-xs sm:mb-2xs", children: jsx("button", { className: "cursor-pointer hover:text-primary-hover", onClick: () => {
|
|
4892
|
+
onChangeLocation && onChangeLocation(region);
|
|
4893
|
+
}, children: jsx(Text, { size: "text-l", font: "font-light", children: region.name || '' }) }) }, region.id));
|
|
5099
4894
|
|
|
5100
|
-
|
|
5101
|
-
function renderArrows({ dec, inc, canDec, canInc, btnClass, className = '', }) {
|
|
5102
|
-
const isVisible = canDec || canInc;
|
|
5103
|
-
if (!isVisible) {
|
|
5104
|
-
return null;
|
|
5105
|
-
}
|
|
5106
|
-
return (jsxs("div", { children: [canDec ? (jsx(ArrowButton, { className: style('absolute z-40', btnClass[0], className), onClick: dec, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E", "data-block-control": "scroll-left", disabled: !canDec })) : null, canInc ? (jsx(ArrowButton, { className: style('absolute z-40 rotate-180', btnClass[1], className), onClick: inc, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right", disabled: !canInc })) : null] }));
|
|
5107
|
-
}
|
|
4895
|
+
const renderRegionGroup = (onChangeLocation) => ([letter, regions]) => (jsxs("div", { className: "break-inside-avoid mb-2xl w-56", children: [jsx("div", { className: "mb-s", children: jsx(Text, { size: "text-h6", children: letter }) }), regions.map(renderRegion(onChangeLocation))] }, letter));
|
|
5108
4896
|
|
|
5109
|
-
const
|
|
5110
|
-
|
|
5111
|
-
|
|
5112
|
-
...controls,
|
|
5113
|
-
btnClass: ['top-28', 'top-11'],
|
|
5114
|
-
className: 'right-7',
|
|
5115
|
-
})] }), isScrollAvailable ? (jsx("div", { className: "absolute top-0 right-0 bottom-0 w-20 bg-opacity-to-white" })) : null] }));
|
|
4897
|
+
const SearchBar$1 = JSX(({ className, searchTerm, onSearch }) => {
|
|
4898
|
+
return (jsxs("form", { className: `font-sans relative ${className}`, children: [jsx("div", { className: "absolute rounded h-full flex items-center justify-center pl-m max-w-44 gap-s pointer-events-none", children: searchTerm ? null : (jsx("label", { htmlFor: "search-bar-input", className: `text-secondary-text `, children: "\u041F\u043E\u0438\u0441\u043A \u043F\u043E \u0444\u0438\u043B\u0438\u0430\u043B\u0430\u043C" })) }), jsx("input", { id: "search-bar-input", className: `h-12 pl-m w-full peer text-l text-black border border-solid rounded-md box-border
|
|
4899
|
+
outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text`, value: searchTerm, onChange: (e) => onSearch(e.target.value.toLowerCase()), type: "text", name: "location-search-bar-input" })] }));
|
|
5116
4900
|
});
|
|
5117
4901
|
|
|
5118
|
-
const
|
|
5119
|
-
|
|
5120
|
-
const
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
const
|
|
5125
|
-
const
|
|
5126
|
-
|
|
5127
|
-
|
|
5128
|
-
});
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
4902
|
+
const SEARCH_TERM_MIN_LENGTH = 3;
|
|
4903
|
+
const LocationDialog = JSX(({ foreignOffices, defaultLocation }) => {
|
|
4904
|
+
const [currentLocation, selectCurrentLocation] = useLocation(defaultLocation);
|
|
4905
|
+
const [query, setQuery] = useState('');
|
|
4906
|
+
const regions = cleanUpRegions(useRegions()).sort((a, b) => a.name.localeCompare(b.name));
|
|
4907
|
+
const regionsGroupByLetter = groupBy(regions, regionFirstLetter);
|
|
4908
|
+
const { close } = useDialogManager();
|
|
4909
|
+
const handleChangeLocation = useCallback((region) => {
|
|
4910
|
+
selectCurrentLocation(region);
|
|
4911
|
+
close();
|
|
4912
|
+
}, []);
|
|
4913
|
+
return (jsxs(Dialog, { className: "pb-20", head: jsxs("div", { children: [jsx(Text, { size: "text-h4", color: "text-primary-text", children: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0438\u043B\u0438\u0430\u043B" }), currentLocation ? (jsxs("div", { className: "mb-s", children: [jsx(Text, { size: "text-l", font: "font-light", children: "\u0421\u0435\u0439\u0447\u0430\u0441 \u0432\u044B\u0431\u0440\u0430\u043D:\u00A0" }), jsx("button", { onClick: () => selectCurrentLocation(currentLocation), children: jsx(Text, { color: "text-primary-main", children: currentLocation.name }) })] })) : null, jsx(SearchBar$1, { onSearch: setQuery, searchTerm: query })] }), children: [query && query.length >= SEARCH_TERM_MIN_LENGTH ? (jsx("div", { children: regions
|
|
4914
|
+
.filter(({ name }) => name && jaroWinklerDistance(name.toLowerCase())(query.toLowerCase()) >= 0.8)
|
|
4915
|
+
.map(renderRegion(handleChangeLocation)) })) : (jsx("div", { className: "columns-1 sm:columns-5", children: Array.from(regionsGroupByLetter.entries()).map(renderRegionGroup(handleChangeLocation)) })), renderForeignOffices(foreignOffices)] }));
|
|
5132
4916
|
});
|
|
4917
|
+
const regionFirstLetter = (region) => region.name?.charAt(0) || '';
|
|
4918
|
+
const cleanUpRegions = (regions) => regions.map((region) => ({
|
|
4919
|
+
...region,
|
|
4920
|
+
name: region.name?.replace(/республика|область|край'/gi, '').trim() || '',
|
|
4921
|
+
}));
|
|
5133
4922
|
|
|
5134
|
-
const
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
4923
|
+
const useLocationDialog = (props) => {
|
|
4924
|
+
const { open, close } = useDialogManager();
|
|
4925
|
+
return {
|
|
4926
|
+
open: (options = {}) => open(jsx(LocationDialog, { ...props }), options),
|
|
4927
|
+
close,
|
|
4928
|
+
};
|
|
4929
|
+
};
|
|
5141
4930
|
|
|
5142
|
-
const
|
|
5143
|
-
const
|
|
5144
|
-
|
|
4931
|
+
const SearchInput = JSX(({ className, value, autoFocus, onChange, onFocus, placeholder = 'Поиск по сайту' }) => {
|
|
4932
|
+
const handleChange = useCallback((ev) => {
|
|
4933
|
+
onChange && onChange(ev.target?.value || '');
|
|
4934
|
+
}, [onChange]);
|
|
4935
|
+
return (jsxs("div", { className: style('font-sans relative', className), role: "form", children: [jsx("div", { className: "absolute h-full flex items-center pl-m pointer-events-none", children: jsx(Img, { image: { icon: 'LoupeIcon', iconVersion: 'black' }, width: "24", height: "24" }) }), jsx("input", { className: style('h-14 w-full px-10 text-l text-black outline-none box-border border border-solid rounded-md', 'border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text'), value: value, type: "text", name: "search-bar-input", placeholder: placeholder, autoFocus: autoFocus, onChange: handleChange, onFocus: onFocus })] }));
|
|
5145
4936
|
});
|
|
5146
4937
|
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
Carousel,
|
|
5156
|
-
CarouselBankHistoryCard,
|
|
5157
|
-
CarouselCard,
|
|
5158
|
-
CarouselCatalogCard,
|
|
5159
|
-
CarouselLinks,
|
|
5160
|
-
CarouselRecommendationCard,
|
|
5161
|
-
CarouselTariffsCard,
|
|
5162
|
-
ComparisonTable,
|
|
5163
|
-
DepositFiltration,
|
|
5164
|
-
ErrorBlock,
|
|
5165
|
-
ExchangeRateTile,
|
|
5166
|
-
Footer,
|
|
5167
|
-
Header,
|
|
5168
|
-
Headline,
|
|
5169
|
-
HorizontalLayout,
|
|
5170
|
-
ImgBlock,
|
|
5171
|
-
LinkDocs,
|
|
5172
|
-
MobileAppTile,
|
|
5173
|
-
MortgageFiltration,
|
|
5174
|
-
OfficesAtmsMap,
|
|
5175
|
-
Placeholder,
|
|
5176
|
-
ProductBlock,
|
|
5177
|
-
ProductGallery,
|
|
5178
|
-
RepresentativeOfficeInfo,
|
|
5179
|
-
RichTextBlock,
|
|
5180
|
-
RollupItem,
|
|
5181
|
-
SafeDepositRental,
|
|
5182
|
-
StepsBlock,
|
|
5183
|
-
Tabs,
|
|
5184
|
-
TabsLayout,
|
|
5185
|
-
TariffsTable,
|
|
5186
|
-
TextBlock,
|
|
5187
|
-
UnitBlock,
|
|
5188
|
-
VerticalLayout,
|
|
5189
|
-
};
|
|
4938
|
+
function useDebouncedEffect(effect, deps, delay = 300) {
|
|
4939
|
+
useEffect(() => {
|
|
4940
|
+
const timerId = globalThis.setTimeout(effect, delay);
|
|
4941
|
+
return () => {
|
|
4942
|
+
globalThis.clearTimeout(timerId);
|
|
4943
|
+
};
|
|
4944
|
+
}, deps);
|
|
4945
|
+
}
|
|
5190
4946
|
|
|
5191
|
-
const
|
|
4947
|
+
const compareBy = (indexOf) => (a, b) => indexOf(a) - indexOf(b);
|
|
4948
|
+
const desc = (cmp) => (a, b) => -cmp(a, b);
|
|
5192
4949
|
|
|
5193
|
-
const
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
open();
|
|
5200
|
-
}
|
|
5201
|
-
}, [], DIALOG_INITIAL_DELAY);
|
|
5202
|
-
const handleClose = useCallback(() => {
|
|
5203
|
-
globalThis.localStorage?.setItem(COOKIE_DIALOG_ID, 'true');
|
|
5204
|
-
close();
|
|
5205
|
-
}, []);
|
|
5206
|
-
return opened ? (jsx("div", { className: "container fixed left-0 right-0 bottom-0 z-50", children: jsxs("div", { className: "bg-white m-xl p-xl rounded-md flex sm:items-center shadow-main-black", children: [jsx("div", { className: "sm:flex-1", children: jsxs(Paragraph, { size: "text-s", font: "font-light", color: "text-primary-text", children: ["\u0410\u041E \u00AB\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u00BB \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442", jsx(LinkWrapper, { isRemote: true, className: linkWrapperStyle(termLink?.href), ...termLink, children: "cookie" }), "(\u0444\u0430\u0439\u043B\u044B \u0441 \u0434\u0430\u043D\u043D\u044B\u043C\u0438 \u043E \u043F\u0440\u043E\u0448\u043B\u044B\u0445 \u043F\u043E\u0441\u0435\u0449\u0435\u043D\u0438\u044F\u0445 \u0441\u0430\u0439\u0442\u0430) \u0434\u043B\u044F \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043E\u0432 \u0438 \u0443\u0434\u043E\u0431\u0441\u0442\u0432\u0430 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u0435\u0439. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0437\u0430\u043F\u0440\u0435\u0442\u0438\u0442\u044C \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435 cookie \u0432 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430\u0445 \u0441\u0432\u043E\u0435\u0433\u043E \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430.", jsx(LinkWrapper, { isRemote: true, className: linkWrapperStyle(personalDataPolicyLink?.href), ...personalDataPolicyLink, children: "\u041E\u0431\u0440\u0430\u0431\u043E\u0442\u043A\u0430 \u0412\u0430\u0448\u0438\u0445 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445" }), "\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u044F\u043C\u0438 \u0424\u0435\u0434\u0435\u0440\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0437\u0430\u043A\u043E\u043D\u0430 \u043E\u0442 27.07.2006 \u2116 152-\u04243 \u00AB\u041E \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445\u00BB."] }) }), jsx("div", { className: "ml-s sm:ml-0 w-24 flex justify-end", children: jsx(CloseButton, { className: "bg-main-gray rounded-md", onClose: handleClose }) })] }) })) : null;
|
|
5207
|
-
});
|
|
5208
|
-
const linkWrapperStyle = (href) => style('inline mx-2xs', href ? 'text-green-dark' : '');
|
|
4950
|
+
const joinMaps = (aggregate, emptyVal) => (acc, map) => {
|
|
4951
|
+
for (const [key, b] of map) {
|
|
4952
|
+
acc.set(key, aggregate(acc.get(key) || emptyVal, b));
|
|
4953
|
+
}
|
|
4954
|
+
return acc;
|
|
4955
|
+
};
|
|
5209
4956
|
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
const clear = useCallback(() => setList([]), []);
|
|
5216
|
-
return [list, { setList, push, pop, remove, clear }];
|
|
5217
|
-
}
|
|
4957
|
+
const MIN_TERM_LEN = 3;
|
|
4958
|
+
const tokenize = (text) => text
|
|
4959
|
+
.toLowerCase()
|
|
4960
|
+
.split(/[^0-9a-zа-я-]+/)
|
|
4961
|
+
.filter((token) => token.length >= MIN_TERM_LEN && !/[0-9a-z]/.test(token));
|
|
5218
4962
|
|
|
5219
|
-
const
|
|
5220
|
-
const
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
}, [dialogs, onCloseAll]);
|
|
5225
|
-
const close = useCallback(() => {
|
|
5226
|
-
onClose && onClose(dialogs[dialogs.length - 1]);
|
|
5227
|
-
pop();
|
|
5228
|
-
}, [dialogs, onClose]);
|
|
5229
|
-
useEffect(() => defaultEventBus.subscribe('dialog', (action) => {
|
|
5230
|
-
switch (action.type) {
|
|
5231
|
-
case 'open':
|
|
5232
|
-
push(action);
|
|
5233
|
-
break;
|
|
5234
|
-
case 'close':
|
|
5235
|
-
if (action.all) {
|
|
5236
|
-
closeAll();
|
|
5237
|
-
}
|
|
5238
|
-
else {
|
|
5239
|
-
close();
|
|
5240
|
-
}
|
|
5241
|
-
break;
|
|
5242
|
-
default:
|
|
5243
|
-
assertUnreachable(action);
|
|
5244
|
-
}
|
|
5245
|
-
}), [closeAll, close]);
|
|
5246
|
-
return dialogs;
|
|
4963
|
+
const textRank = (queryTokens) => (text) => {
|
|
4964
|
+
const textTokens = tokenize(text || '');
|
|
4965
|
+
return textTokens.length
|
|
4966
|
+
? sum(queryTokens.map((qToken) => max(textTokens.map(jaroWinklerDistance(qToken)))))
|
|
4967
|
+
: 0;
|
|
5247
4968
|
};
|
|
5248
4969
|
|
|
5249
|
-
const
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
const
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
4970
|
+
const JW_THRESHOLD = 0.8;
|
|
4971
|
+
const RANK_EPS = 0.001;
|
|
4972
|
+
const search = (query) => (searchIndex) => {
|
|
4973
|
+
const { corpus, dictionary } = searchIndex || {};
|
|
4974
|
+
if (!query || !corpus?.length || !dictionary || !Object.keys(dictionary).length) {
|
|
4975
|
+
return [];
|
|
4976
|
+
}
|
|
4977
|
+
const queryTokens = tokenize(query);
|
|
4978
|
+
if (!queryTokens.length) {
|
|
4979
|
+
return [];
|
|
4980
|
+
}
|
|
4981
|
+
const dictEntries = Object.entries(dictionary);
|
|
4982
|
+
const pagesRanking = queryTokens
|
|
4983
|
+
.map(computePagesRankingPerToken(dictEntries))
|
|
4984
|
+
.reduce(joinMaps((a, b) => a + b, 0), new Map());
|
|
4985
|
+
const relevantPages = [...pagesRanking.entries()]
|
|
4986
|
+
.filter(([, pageRank]) => pageRank >= (JW_THRESHOLD - RANK_EPS) * queryTokens.length) // Multiplication of query tokens
|
|
4987
|
+
.map(([pageIndex]) => corpus[pageIndex]);
|
|
4988
|
+
return sortResultsByRank(queryTokens)(relevantPages);
|
|
4989
|
+
};
|
|
4990
|
+
const computePagesRankingPerToken = (dictEntries) => (qToken) => dictEntries
|
|
4991
|
+
.map(([stem, pageIndices]) => [jaroWinklerDistance(qToken)(stem), pageIndices])
|
|
4992
|
+
.filter(([stemRank]) => stemRank >= JW_THRESHOLD)
|
|
4993
|
+
.map(([stemRank, pageIndices]) => fillMapWith(pageIndices, stemRank))
|
|
4994
|
+
.reduce(joinMaps(Math.max, 0), new Map());
|
|
4995
|
+
const sortResultsByRank = (queryTokens) => (results) => zip(results, results.map(({ title }) => title).map(textRank(queryTokens)))
|
|
4996
|
+
.sort(desc(compareBy(([, pageTitleRank]) => pageTitleRank)))
|
|
4997
|
+
.map(([corpusItem]) => corpusItem);
|
|
4998
|
+
const fillMapWith = (keys, value) => new Map(keys.map((_) => [_, value]));
|
|
4999
|
+
|
|
5000
|
+
const SEARCH_INDEX_FILENAME = 'search.index.json';
|
|
5001
|
+
const useSearch = ({ basePathList, initialQuery = '', }) => {
|
|
5002
|
+
const [query, setQuery] = useState(initialQuery || '');
|
|
5266
5003
|
useEffect(() => {
|
|
5267
|
-
if (
|
|
5268
|
-
|
|
5269
|
-
globalThis.document?.body.classList.add('overflow-hidden');
|
|
5004
|
+
if (initialQuery !== undefined && initialQuery !== null) {
|
|
5005
|
+
setQuery(initialQuery);
|
|
5270
5006
|
}
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5007
|
+
}, [initialQuery]);
|
|
5008
|
+
const { data } = useAsyncData(basePathList?.length ? basePathList : null, fetchSearchIndex);
|
|
5009
|
+
const [result, setResult] = useState(null);
|
|
5010
|
+
useDebouncedEffect(() => {
|
|
5011
|
+
if (data) {
|
|
5012
|
+
setResult(data.map(search(query)));
|
|
5274
5013
|
}
|
|
5275
|
-
}, [
|
|
5276
|
-
return
|
|
5277
|
-
}
|
|
5014
|
+
}, [data, query]);
|
|
5015
|
+
return [result, { value: query, onChange: setQuery }];
|
|
5016
|
+
};
|
|
5017
|
+
const fetchSearchIndex = async (...basePathList) => (await Promise.allSettled(basePathList.map((basePath) => fetchJSON(joinPath(basePath, '/', SEARCH_INDEX_FILENAME))))).map((_) => (_.status === 'fulfilled' ? _.value : {}));
|
|
5278
5018
|
|
|
5279
|
-
const
|
|
5280
|
-
const
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
assertUnreachable(action);
|
|
5295
|
-
}
|
|
5296
|
-
}), []);
|
|
5297
|
-
const escapeHandler = useCallback(({ key }) => {
|
|
5298
|
-
if (key === 'Escape') {
|
|
5299
|
-
close();
|
|
5300
|
-
}
|
|
5301
|
-
}, [close]);
|
|
5302
|
-
useEventListener(globalThis.document, 'keydown', escapeHandler);
|
|
5303
|
-
return popup ? (jsx("div", { className: "absolute z-50", style: {
|
|
5304
|
-
left: `${popup.left}px`,
|
|
5305
|
-
top: `${popup.top}px`,
|
|
5306
|
-
...(popup.width ? { width: `${popup.width}px` } : {}),
|
|
5307
|
-
}, role: "dialog", children: popup.popup })) : null;
|
|
5019
|
+
const Sitemap = JSX(({ className, topItems }) => {
|
|
5020
|
+
const link = useLink({ isRemote: true });
|
|
5021
|
+
return (jsx("div", { className: style('flex items-start justify-between', className), children: topItems?.map(link).map(renderColumn) }));
|
|
5022
|
+
});
|
|
5023
|
+
const FOOTER_AREA_KEYS = ['all', 'footer'];
|
|
5024
|
+
const renderColumn = (menuItem, index) => {
|
|
5025
|
+
const { text, items = [], href, target, onClick } = menuItem;
|
|
5026
|
+
const visibleSubItems = items.filter((_) => !_.displayArea || FOOTER_AREA_KEYS.includes(_.displayArea.toLowerCase()));
|
|
5027
|
+
return (jsxs("div", { className: "flex flex-col gap-s w-1/4", children: [jsx("a", { className: "leading-5 text-l text-primary-text hover:text-primary-main no-underline", href: href, target: target || '_self', onClick: onClick, children: text || `Раздел ${index}` }), visibleSubItems.map((_, i) => (jsx(ColumnItem, { ..._, basePath: appendSlash(href), index: i }, String(i))))] }, String(index)));
|
|
5028
|
+
};
|
|
5029
|
+
const ColumnItem = JSX(({ text, index, basePath, ...rest }) => {
|
|
5030
|
+
const isAnotherPortal = projectSettings.BASE_PATH && basePath ? !projectSettings.BASE_PATH.startsWith(basePath) : false;
|
|
5031
|
+
const link = useLink({ isRemote: isAnotherPortal, basePath });
|
|
5032
|
+
const { href, target, onClick } = link(rest);
|
|
5033
|
+
return (jsx("a", { className: style('text-l font-light text-secondary-text hover:text-primary-main no-underline', 'overflow-x-hidden overflow-ellipsis whitespace-nowrap'), href: href, target: target || '_self', onClick: onClick, children: text || `Раздел ${index}` }));
|
|
5308
5034
|
});
|
|
5309
5035
|
|
|
5310
|
-
const
|
|
5311
|
-
|
|
5036
|
+
const SearchDialog = JSX(({ initialQuery, topItems }) => {
|
|
5037
|
+
const basePathList = useMemo(() => topItems?.map((_) => _.href || '/'), [topItems]);
|
|
5038
|
+
const [searchResult, searchInputProps] = useSearch({
|
|
5039
|
+
basePathList,
|
|
5040
|
+
initialQuery,
|
|
5041
|
+
});
|
|
5042
|
+
const searchItems = useMemo(() => combineTopItemsAndSearchResult(topItems)(searchResult), [topItems, searchResult]);
|
|
5043
|
+
return (jsx(Dialog, { head: jsx(SearchInput, { autoFocus: true, ...searchInputProps }), children: jsx(Sitemap, { topItems: searchItems }) }));
|
|
5044
|
+
});
|
|
5045
|
+
const combineTopItemsAndSearchResult = (topItems) => (searchResult) => topItems?.length && searchResult?.length
|
|
5046
|
+
? zip(topItems, searchResult).map(([_, portalSearchResult]) => ({
|
|
5047
|
+
..._,
|
|
5048
|
+
items: portalSearchResult?.map(({ title, uri }) => ({ text: title, href: joinPath('/', uri) })),
|
|
5049
|
+
}))
|
|
5050
|
+
: [];
|
|
5312
5051
|
|
|
5313
|
-
const
|
|
5052
|
+
const useSearchDialog = (initialProps = {}) => {
|
|
5053
|
+
const { open, close } = useDialogManager();
|
|
5054
|
+
return {
|
|
5055
|
+
open: (props = {}, options = {}) => open(jsx(SearchDialog, { ...initialProps, ...props }), options),
|
|
5056
|
+
close,
|
|
5057
|
+
};
|
|
5058
|
+
};
|
|
5314
5059
|
|
|
5315
|
-
|
|
5060
|
+
const MIN_QUERY_LEN = 3;
|
|
5061
|
+
const SearchBar = JSX(({ className, ...rest }) => {
|
|
5062
|
+
const [value, setValue] = useState('');
|
|
5063
|
+
const resetQueryOnDialogClose = useCallback(() => setValue(''), []);
|
|
5064
|
+
const searchDialog = useSearchDialog(rest);
|
|
5065
|
+
const handleInitialInputChange = useCallback((_) => {
|
|
5066
|
+
setValue(_);
|
|
5067
|
+
if (isQueryLongEnough(_)) {
|
|
5068
|
+
searchDialog.open({ initialQuery: _ }, { onClose: resetQueryOnDialogClose });
|
|
5069
|
+
}
|
|
5070
|
+
}, [resetQueryOnDialogClose, searchDialog]);
|
|
5071
|
+
return (jsxs("div", { className: style('relative', className), children: [jsx(SearchInput, { value: value, onChange: handleInitialInputChange }), jsx(CloseButton, { className: "absolute top-0 right-0 sm:hidden", onClose: resetQueryOnDialogClose })] }));
|
|
5072
|
+
});
|
|
5073
|
+
const isQueryLongEnough = (_) => _ && _.length >= MIN_QUERY_LEN;
|
|
5074
|
+
|
|
5075
|
+
const ActiveSubMenuItem = JSX(({ item, basePath }) => {
|
|
5076
|
+
const isAnotherPortal = projectSettings.BASE_PATH && basePath ? !projectSettings.BASE_PATH.startsWith(basePath) : false;
|
|
5077
|
+
const link = useLink({ isRemote: isAnotherPortal, basePath });
|
|
5078
|
+
const { href, target, onClick } = link(item);
|
|
5316
5079
|
const router = useRouter();
|
|
5317
|
-
const
|
|
5318
|
-
return [
|
|
5319
|
-
}
|
|
5080
|
+
const isActive = isHrefActive(router)({ href });
|
|
5081
|
+
return (jsxs("a", { className: style(isActive ? 'text-primary-main' : 'text-primary-text', `py-3 text-h5 font-light flex justify-between cursor-pointer`), href: href, target: target, onClick: onClick, children: [item.text, jsx(Img, { image: { icon: 'ChevronLeftIcon', iconVersion: 'black' }, width: "24", height: "24", className: "text-secondary-text rotate-180 opacity-30" })] }));
|
|
5082
|
+
});
|
|
5320
5083
|
|
|
5321
|
-
const
|
|
5084
|
+
const TopItemMobile = ({ item, isActive, onClick }) => (jsxs("button", { type: "button", className: "relative", onClick: onClick, children: [jsx("span", { className: style('whitespace-nowrap', isActive ? 'text-primary-main' : ''), children: item.text }), isActive ? (jsx("div", { className: "absolute left-0 right-0 -bottom-3 h-0.5 bg-primary-main group-data-transparent:bg-transparent" })) : null] }));
|
|
5322
5085
|
|
|
5323
|
-
const
|
|
5324
|
-
const
|
|
5325
|
-
const
|
|
5326
|
-
|
|
5086
|
+
const BurgerMenuDialog = JSX((props) => {
|
|
5087
|
+
const { topItems, defaultLocation, officesLink } = props;
|
|
5088
|
+
const [location] = useLocation(defaultLocation);
|
|
5089
|
+
const locationDialog = useLocationDialog(props);
|
|
5090
|
+
const [containerRef, scroll] = useSwipeListScroll({
|
|
5091
|
+
itemCount: topItems?.length ?? 0,
|
|
5092
|
+
});
|
|
5093
|
+
const [activeIndex] = useActiveRoute(topItems);
|
|
5094
|
+
const [activeTopItemIndex, setActiveTopItemIndex] = useState(activeIndex);
|
|
5095
|
+
const activeRoute = useMemo(() => topItems?.[activeTopItemIndex], [topItems, activeTopItemIndex]);
|
|
5096
|
+
const activeMenuSubItems = activeRoute?.items || [];
|
|
5097
|
+
useEffect(() => {
|
|
5098
|
+
setActiveTopItemIndex(activeIndex);
|
|
5099
|
+
}, [activeIndex]);
|
|
5100
|
+
useEffect(() => {
|
|
5101
|
+
if (activeTopItemIndex > 0) {
|
|
5102
|
+
scroll.scrollTo(activeTopItemIndex);
|
|
5103
|
+
}
|
|
5104
|
+
}, [activeTopItemIndex, scroll]);
|
|
5105
|
+
const handleTopItemClick = useCallback((idx) => setActiveTopItemIndex(idx), []);
|
|
5106
|
+
return (jsx(Dialog, { head: jsx("div", { className: "flex items-center", children: jsx(Heading, { as: "h4", title: "\u041C\u0435\u043D\u044E" }) }), children: jsxs("div", { className: "flex flex-col flex-nowrap relative w-full h-auto m-auto bg-white pb-24 box-border rounded-md", children: [jsx("div", { className: "w-full mb-3", children: jsx(SwipeListContainer, { containerRef: containerRef, visibleItemCount: 0, gap: 20, className: "pb-3", children: topItems?.map((item, i) => (jsx(TopItemMobile, { item: item, isActive: activeTopItemIndex === i, onClick: () => handleTopItemClick(i) }, String(i)))) }) }), jsxs("div", { className: "relative grow overflow-auto", children: [renderActiveSubMenu(activeMenuSubItems, activeRoute?.href), jsx(SearchBar, { className: "grow mb-5", ...props }), renderOfficeLink(officesLink), renderLocation(location, () => locationDialog.open())] })] }) }));
|
|
5327
5107
|
});
|
|
5108
|
+
const renderActiveSubMenu = (activeMenuSubItems, basePath) => activeMenuSubItems ? (jsx("div", { children: activeMenuSubItems.map((_, i) => (jsx(ActiveSubMenuItem, { item: _, basePath: basePath }, String(i)))) })) : null;
|
|
5109
|
+
const renderOfficeLink = (officesLink) => officesLink ? (jsxs("a", { className: "flex items-center mb-3", href: officesLink, rel: "noopener noreferrer", "aria-label": "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B", children: [jsx(Img, { image: { icon: 'MapOpenedIcon', iconVersion: 'black' }, width: "24", height: "24", className: "text-primary-main box-border mr-xs bg-main-divider p-xs rounded-md" }), jsx("span", { children: "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B" })] })) : null;
|
|
5110
|
+
const renderLocation = (location, onClick) => (jsxs("div", { className: "flex items-center text-s cursor-pointer", onClick: onClick, children: [jsx(Img, { image: { icon: 'GeolocationIcon', iconVersion: 'black' }, width: "24", height: "24", className: "text-primary-main box-border mr-xs bg-main-divider p-xs rounded-md" }), jsxs("div", { className: "flex flex-col items-start", children: [jsx(Text, { size: "text-h5", children: location.name }), jsx(Text, { color: "text-secondary-text", size: "text-s", children: "\u0412\u0430\u0448\u0430 \u043B\u043E\u043A\u0430\u0446\u0438\u044F" })] })] }));
|
|
5328
5111
|
|
|
5329
|
-
const
|
|
5112
|
+
const BURGER_MENU_DIALOG_ID = 'burgerMenuDialog';
|
|
5113
|
+
const useBurgerMenuDialog = (props) => {
|
|
5114
|
+
const { open: openDialog, closeAll, close } = useDialogManager();
|
|
5115
|
+
const dialogs = useDialogsList();
|
|
5116
|
+
const isBurgerMenuOpen = isDialogOpen(BURGER_MENU_DIALOG_ID, dialogs);
|
|
5117
|
+
const open = () => openDialog(jsx(BurgerMenuDialog, { ...props }), { id: BURGER_MENU_DIALOG_ID });
|
|
5118
|
+
const toggle = () => {
|
|
5119
|
+
if (isBurgerMenuOpen) {
|
|
5120
|
+
closeAll();
|
|
5121
|
+
}
|
|
5122
|
+
else {
|
|
5123
|
+
open();
|
|
5124
|
+
}
|
|
5125
|
+
};
|
|
5126
|
+
return [isBurgerMenuOpen, { open, close, toggle }];
|
|
5127
|
+
};
|
|
5330
5128
|
|
|
5331
|
-
const
|
|
5332
|
-
|
|
5333
|
-
const
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
|
|
5129
|
+
const EMPTY_MENU = [];
|
|
5130
|
+
const StickyBottomMenu = UniBlock(({ sticky, ...rest }) => {
|
|
5131
|
+
const { menuItems = EMPTY_MENU } = sticky ?? {};
|
|
5132
|
+
const [isBurgerMenuDialogOpen, { toggle, close }] = useBurgerMenuDialog(rest.options?.page?.sitemap ?? {});
|
|
5133
|
+
const [, activeItem] = useActiveRoute(menuItems);
|
|
5134
|
+
const middleIdx = Math.floor(menuItems.length / 2);
|
|
5135
|
+
const leftItems = menuItems.slice(0, middleIdx);
|
|
5136
|
+
const rightItems = menuItems.slice(middleIdx);
|
|
5137
|
+
return (jsx(BlockWrapper, { className: "h-[74px]", defaultPadding: "p-0", ...rest, children: jsxs("div", { className: "ml-auto container bg-white flex justify-center shadow-blue-gray", children: [leftItems.map(renderMenuItem(activeItem, close)), jsx(StickyBottomMenuBurger, { isActive: isBurgerMenuDialogOpen, onClick: toggle }), rightItems.map(renderMenuItem(activeItem, close))] }) }));
|
|
5338
5138
|
});
|
|
5139
|
+
const renderMenuItem = (activeItem, close) => (_, i) => (jsx(StickyBottomMenuItem, { isActive: _ === activeItem, item: _, onClick: close }, _.href || String(i)));
|
|
5339
5140
|
|
|
5340
|
-
const
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
return result;
|
|
5348
|
-
};
|
|
5141
|
+
const scrollButtonStyle = 'hidden sm:flex absolute z-40 top-0';
|
|
5142
|
+
const ScrollableTabsControl = JSX(({ className, items = [], value, onChange, tabsType }) => {
|
|
5143
|
+
const [containerRef, scroll] = useSwipeListScroll({
|
|
5144
|
+
itemCount: items?.length || 0,
|
|
5145
|
+
});
|
|
5146
|
+
return (jsxs("div", { className: style('relative overflow-x-auto no-scrollbar', className), role: "tablist", children: [jsx(SwipeListContainer, { containerRef: containerRef, snapAlign: "snap-start", onVisibleIndicesChange: scroll.handleVisibleIndicesChange, children: items.map(renderTab(value, onChange, tabsType)) }), scroll.canScrollLeft ? (jsx(ScrollLeftButton, { className: style('left-6', scrollButtonStyle), onClick: scroll.scrollLeft })) : null, scroll.canScrollRight ? (jsx(ScrollRightButton, { className: style('right-6', scrollButtonStyle), onClick: scroll.scrollRight })) : null] }));
|
|
5147
|
+
});
|
|
5349
5148
|
|
|
5350
|
-
const
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
|
|
5356
|
-
|
|
5357
|
-
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
if (m === 0) {
|
|
5361
|
-
return 0;
|
|
5149
|
+
const renderTabs = ({ tabsMode, ...props }) => {
|
|
5150
|
+
switch (tabsMode) {
|
|
5151
|
+
case 'wideScreen':
|
|
5152
|
+
return jsx(TabsControl, { ...props });
|
|
5153
|
+
case 'centered':
|
|
5154
|
+
return (jsx("div", { className: "flex", children: jsx(TabsControl, { className: "m-auto p-xs rounded-md bg-main-gray", tabsType: "rounded", ...props }) }));
|
|
5155
|
+
case 'scrollable':
|
|
5156
|
+
return (jsx("div", { className: "flex", children: jsx(ScrollableTabsControl, { className: "m-auto", tabsType: "underlined", ...props }) }));
|
|
5157
|
+
default:
|
|
5158
|
+
return null;
|
|
5362
5159
|
}
|
|
5363
|
-
const t = computeT(s1, s2, { s1Matches, s2Matches });
|
|
5364
|
-
const jaroWeight = (m / s1.length + m / s2.length + (m - t / 2) / m) / 3;
|
|
5365
|
-
const winklerWeight = jaroWeight > 0.7 ? computePrefixL(s1, s2) * JARO_WINKLER_P : 0;
|
|
5366
|
-
return jaroWeight + winklerWeight * (1 - jaroWeight);
|
|
5367
5160
|
};
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
const
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
continue;
|
|
5379
|
-
}
|
|
5380
|
-
m++;
|
|
5381
|
-
s1Matches[i] = true;
|
|
5382
|
-
s2Matches[j] = true;
|
|
5161
|
+
|
|
5162
|
+
const TAB_QUERY_PARAM_KEY = 'tab';
|
|
5163
|
+
const Tabs = JSX(({ className = '', isSticky, tabs = [], tabsMode, ...rest }) => {
|
|
5164
|
+
const router = useRouter();
|
|
5165
|
+
const { isReady } = router;
|
|
5166
|
+
const tabsControlItems = useMemo(() => tabs.map(normalizeTab), [tabs]);
|
|
5167
|
+
const [activeTabIndex, setActiveTabIndex] = useState(0);
|
|
5168
|
+
useEffect(() => {
|
|
5169
|
+
if (!tabs || !tabs[0]) {
|
|
5170
|
+
return;
|
|
5383
5171
|
}
|
|
5384
|
-
|
|
5385
|
-
|
|
5386
|
-
|
|
5387
|
-
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5391
|
-
|
|
5172
|
+
const defaultTabIndex = router.query[TAB_QUERY_PARAM_KEY]
|
|
5173
|
+
? tabs.findIndex((_) => _.type === 'group' && _.ref === router.query[TAB_QUERY_PARAM_KEY]) || 0
|
|
5174
|
+
: 0;
|
|
5175
|
+
const defaultTab = tabs[defaultTabIndex] || tabs[0];
|
|
5176
|
+
setActiveTabIndex(defaultTabIndex);
|
|
5177
|
+
fireTabEvent(defaultTab);
|
|
5178
|
+
}, [isReady]);
|
|
5179
|
+
useEffect(() => {
|
|
5180
|
+
const activeTab = tabs[activeTabIndex];
|
|
5181
|
+
if (activeTab?.type === 'group') {
|
|
5182
|
+
defaultEventBus.subject('tab', {
|
|
5183
|
+
type: activeTab.type,
|
|
5184
|
+
label: activeTab.ref,
|
|
5185
|
+
groupName: activeTab.name,
|
|
5186
|
+
});
|
|
5392
5187
|
}
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
}
|
|
5188
|
+
}, [tabs, activeTabIndex]);
|
|
5189
|
+
const updateUrlSearchTabParam = (_) => {
|
|
5190
|
+
const searchParams = new URLSearchParams(router.query);
|
|
5191
|
+
if (_.name) {
|
|
5192
|
+
searchParams.set(TAB_QUERY_PARAM_KEY, _.name);
|
|
5399
5193
|
}
|
|
5400
|
-
|
|
5401
|
-
|
|
5194
|
+
else {
|
|
5195
|
+
searchParams.delete(TAB_QUERY_PARAM_KEY);
|
|
5196
|
+
}
|
|
5197
|
+
router.replace(`${router.pathname}?${searchParams}`, '', { scroll: false });
|
|
5198
|
+
};
|
|
5199
|
+
const handleChange = useCallback((_) => {
|
|
5200
|
+
const index = tabsControlItems.indexOf(_);
|
|
5201
|
+
const tab = tabs[index];
|
|
5202
|
+
setActiveTabIndex(index);
|
|
5203
|
+
fireTabEvent(tab);
|
|
5204
|
+
if (tab.type === 'group') {
|
|
5205
|
+
updateUrlSearchTabParam(_);
|
|
5402
5206
|
}
|
|
5207
|
+
}, [tabs, tabsControlItems]);
|
|
5208
|
+
return (jsx(BlockWrapper, { className: style(isSticky ? 'sticky top-1 z-20' : '', className), defaultPadding: "p-0", ...rest, children: renderTabs({
|
|
5209
|
+
items: tabsControlItems,
|
|
5210
|
+
value: tabsControlItems[activeTabIndex],
|
|
5211
|
+
tabsMode,
|
|
5212
|
+
onChange: handleChange,
|
|
5213
|
+
}) }));
|
|
5214
|
+
});
|
|
5215
|
+
const fireTabEvent = (tab) => {
|
|
5216
|
+
if (tab.type === 'group') {
|
|
5217
|
+
defaultEventBus.fire('tab', { type: tab.type, label: tab.ref, groupName: tab.name });
|
|
5403
5218
|
}
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
function computePrefixL(s1, s2) {
|
|
5407
|
-
let prefixL = 0;
|
|
5408
|
-
while (s1[prefixL] === s2[prefixL] && prefixL < JARO_WINKLER_MAX_L) {
|
|
5409
|
-
prefixL++;
|
|
5219
|
+
if (tab.type === 'link') {
|
|
5220
|
+
defaultEventBus.fire('tab', { type: tab.type, label: tab.href });
|
|
5410
5221
|
}
|
|
5411
|
-
|
|
5412
|
-
}
|
|
5413
|
-
|
|
5414
|
-
const renderForeignOffices = (foreignOffices) => foreignOffices?.length ? (jsxs("div", { className: "sm:border-t sm:border-main-divider mt-2xs pt-2xs", children: [jsx("div", { className: "mb-m", children: jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: "\u041F\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u0435\u043B\u044C\u0441\u0442\u0432\u0430 \u0437\u0430 \u0440\u0443\u0431\u0435\u0436\u043E\u043C:" }) }), jsx("div", { className: "flex flex-col sm:flex-row gap-5xl", children: foreignOffices.map((office, i) => (jsx(ForeignOffice, { ...office }, String(i)))) })] })) : null;
|
|
5415
|
-
const ForeignOffice = JSX(({ icon, ...rest }) => {
|
|
5416
|
-
const link = useLink();
|
|
5417
|
-
const { text, target, href, onClick } = link(rest);
|
|
5418
|
-
return (jsxs("div", { className: "flex gap-s items-center", children: [icon ? jsx(Img, { pathPrefix: "/wcms-resources/", image: icon }) : null, text ? (jsx("a", { className: "hover:text-primary-hover", href: href, target: target, onClick: onClick, children: jsx(Text, { size: "text-l", font: "font-light", color: "text-primary-text", children: text }) })) : null] }));
|
|
5419
|
-
});
|
|
5420
|
-
|
|
5421
|
-
const renderRegion = (onChangeLocation) => (region) => (jsx("div", { className: "mb-xs sm:mb-2xs", children: jsx("button", { className: "cursor-pointer hover:text-primary-hover", onClick: () => {
|
|
5422
|
-
onChangeLocation && onChangeLocation(region);
|
|
5423
|
-
}, children: jsx(Text, { size: "text-l", font: "font-light", children: region.name || '' }) }) }, region.id));
|
|
5222
|
+
};
|
|
5223
|
+
const normalizeTab = (_) => _?.type === 'group' ? { text: _.title, name: _.ref } : _;
|
|
5424
5224
|
|
|
5425
|
-
const
|
|
5225
|
+
const alignTabStyle = {
|
|
5226
|
+
start: 'text-start',
|
|
5227
|
+
center: 'text-center',
|
|
5228
|
+
end: 'text-end',
|
|
5229
|
+
};
|
|
5426
5230
|
|
|
5427
|
-
const
|
|
5428
|
-
|
|
5429
|
-
|
|
5231
|
+
const getButtonClassNames = (isActive) => ({
|
|
5232
|
+
btn: `w-96 ${isActive
|
|
5233
|
+
? 'p-m border-none bg-primary-main text-white'
|
|
5234
|
+
: 'p-s ease-in duration-300 bg-white text-primary-text'}`,
|
|
5235
|
+
title: isActive ? 'mb-xs text-xl' : 'mb-2xs text-l',
|
|
5236
|
+
desc: `font-light ${isActive ? 'text-l text-white' : 'text-m text-secondary-text'}`,
|
|
5237
|
+
icon: isActive ? '' : 'text-primary-main',
|
|
5238
|
+
iconVersion: (isActive ? 'white' : 'normal'),
|
|
5239
|
+
});
|
|
5240
|
+
const TabsLayoutButton = JSX(({ tab, className, onClick, isActive }) => {
|
|
5241
|
+
const buttonClassNames = getButtonClassNames(isActive);
|
|
5242
|
+
return (jsxs("button", { type: "button", onClick: onClick, "aria-label": tab?.title, className: style('border border-gray cursor-pointer text-left border-b-0 mt-auto flex gap-2xs', buttonClassNames.btn, className), children: [tab?.icon ? (jsx(Img, { className: style('h-6 w-6 min-w-6 min-h-6', buttonClassNames.icon), image: {
|
|
5243
|
+
...tab?.icon,
|
|
5244
|
+
iconVersion: tab?.icon?.iconVersion ?? buttonClassNames.iconVersion,
|
|
5245
|
+
}, width: "24", height: "24" })) : null, jsxs("div", { className: "border-0", children: [tab?.title ? jsx("div", { className: buttonClassNames.title, children: tab.title }) : null, tab?.description ? jsx("div", { className: buttonClassNames.desc, children: tab.description }) : null] })] }));
|
|
5430
5246
|
});
|
|
5431
5247
|
|
|
5432
|
-
const
|
|
5433
|
-
const
|
|
5434
|
-
const
|
|
5435
|
-
const
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5248
|
+
const REDIRECT_DELAY = 0.8 * 1000;
|
|
5249
|
+
const TabsLayoutRedirectSection = JSX(({ tab }) => {
|
|
5250
|
+
const link = useLink();
|
|
5251
|
+
const { onClick } = link({
|
|
5252
|
+
...tab,
|
|
5253
|
+
onClick: () => {
|
|
5254
|
+
/**
|
|
5255
|
+
* In the current implementation of useLink, there is no follow-by-link method,
|
|
5256
|
+
* and default routing won't work if the link is external.
|
|
5257
|
+
*/
|
|
5258
|
+
if (tab.href && !isLocalURL(tab.href)) {
|
|
5259
|
+
globalThis.location.href = tab.href;
|
|
5260
|
+
}
|
|
5261
|
+
},
|
|
5262
|
+
});
|
|
5263
|
+
useDebouncedEffect(onClick, [], REDIRECT_DELAY);
|
|
5264
|
+
return jsx(Shimmer, { className: "col-span-12 p-xl", size: 5 });
|
|
5447
5265
|
});
|
|
5448
|
-
const regionFirstLetter = (region) => region.name?.charAt(0) || '';
|
|
5449
|
-
const cleanUpRegions = (regions) => regions.map((region) => ({
|
|
5450
|
-
...region,
|
|
5451
|
-
name: region.name?.replace(/республика|область|край'/gi, '').trim() || '',
|
|
5452
|
-
}));
|
|
5453
5266
|
|
|
5454
|
-
const
|
|
5455
|
-
const {
|
|
5456
|
-
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
|
|
5267
|
+
const useScrollToTab = (activeTabIndex, scroll) => {
|
|
5268
|
+
const [initState, { setTrue: setInitStateTrue }] = useBool(false);
|
|
5269
|
+
useEffect(() => {
|
|
5270
|
+
scroll.scrollTo(activeTabIndex, {
|
|
5271
|
+
behavior: initState ? 'smooth' : 'auto',
|
|
5272
|
+
block: 'nearest',
|
|
5273
|
+
inline: 'center',
|
|
5274
|
+
});
|
|
5275
|
+
!initState && setInitStateTrue();
|
|
5276
|
+
}, [activeTabIndex, initState]);
|
|
5460
5277
|
};
|
|
5461
5278
|
|
|
5462
|
-
const
|
|
5463
|
-
const
|
|
5464
|
-
|
|
5465
|
-
|
|
5466
|
-
|
|
5279
|
+
const TabsLayout = UniBlock(({ className = '', tabs = [], block, tabAlign, ...rest }) => {
|
|
5280
|
+
const [activeTabIndex, setActiveTabIndex] = useState(getInitSelectedIndex(tabs));
|
|
5281
|
+
const slotName = getSlotName(tabs[activeTabIndex], activeTabIndex);
|
|
5282
|
+
const itemCount = tabs.length;
|
|
5283
|
+
const [activeSlideIndex, { inc: incActiveSlideIndex, dec: decActiveSlideIndex }] = useCarouselControls({ itemCount }, activeTabIndex);
|
|
5284
|
+
const [containerRef, scroll] = useSwipeListScroll({ itemCount });
|
|
5285
|
+
useScrollToTab(activeTabIndex, scroll);
|
|
5286
|
+
return (jsxs(BlockWrapper, { className: style(className), defaultPadding: "p-0", ...rest, children: [jsxs("div", { className: "relative border-b-8 border-primary-main", children: [jsx(SwipeListContainer, { itemClassName: "flex", containerRef: containerRef, snapAlign: "snap-end", gap: 8, onVisibleIndicesChange: scroll.handleVisibleIndicesChange, children: tabs.map(renderTabButton(activeTabIndex, setActiveTabIndex, tabAlign)) }), jsx(CarouselScrollButtons, { scroll: scroll, arrowsPadded: true, onScrollLeft: decActiveSlideIndex, onScrollRight: incActiveSlideIndex, activeIndex: activeSlideIndex, itemCount: itemCount })] }), jsx("div", { className: "space-y-px @5xl:space-y-0 @5xl:grid @5xl:grid-cols-12 @5xl:gap-2xs", children: tabs[activeTabIndex]?.href ? (jsx(TabsLayoutRedirectSection, { tab: tabs[activeTabIndex] })) : (renderBlocksList(block?.slots?.[slotName], {
|
|
5287
|
+
...rest?.options,
|
|
5288
|
+
slotName,
|
|
5289
|
+
parent: block,
|
|
5290
|
+
})) })] }));
|
|
5291
|
+
}, {
|
|
5292
|
+
slots: ({ tabs }) => tabs?.filter((_) => !_.href).map(getSlotName) || [],
|
|
5293
|
+
childrenTypes: { exclude: ['TabsLayout'] }, // TODO: fix this on wcms
|
|
5467
5294
|
});
|
|
5295
|
+
const getSlotName = (tab, index) => tab?.title || `Слот №${index}`;
|
|
5296
|
+
const getInitSelectedIndex = (tabs) => tabs.reduce((selectedIndex, tab, i) => (tab.selected ? i : selectedIndex), 0);
|
|
5297
|
+
const renderTabButton = (activeTabIndex, onClick, tabAlign = 'start') => (tab, i) => (jsx(TabsLayoutButton, { className: alignTabStyle[tabAlign], tab: tab, isActive: activeTabIndex === i, onClick: () => onClick(i) }, String(i)));
|
|
5468
5298
|
|
|
5469
|
-
const
|
|
5470
|
-
const
|
|
5299
|
+
const dividerStyle = '@4xl:border-main-divider @4xl:border-b';
|
|
5300
|
+
const firstCellStyle = 'w-80 flex-shrink-0';
|
|
5301
|
+
const COLS_LENGTH_FOR_SCROLL = 2;
|
|
5302
|
+
const COLUMN_WIDTH$1 = 4 * 80 + 40; // w-80 + pl-10 = 360px
|
|
5471
5303
|
|
|
5472
|
-
const
|
|
5473
|
-
|
|
5474
|
-
|
|
5475
|
-
}
|
|
5476
|
-
return acc;
|
|
5304
|
+
const carouselContainerClassesMap = {
|
|
5305
|
+
comparison: 'flex gap-m duration-1000',
|
|
5306
|
+
tariff: 'flex gap-5xl flex-grow duration-1000',
|
|
5477
5307
|
};
|
|
5308
|
+
const TableCarouselContainer = JSX(({ children, activeIndex, columnWidth, version = 'comparison' }) => (jsx("div", { className: "flex flex-1 overflow-hidden", children: jsx("div", { className: carouselContainerClassesMap[version], style: { transform: `translateX(-${activeIndex * columnWidth}px)` }, children: children }) })));
|
|
5478
5309
|
|
|
5479
|
-
const
|
|
5480
|
-
const tokenize = (text) => text
|
|
5481
|
-
.toLowerCase()
|
|
5482
|
-
.split(/[^0-9a-zа-я-]+/)
|
|
5483
|
-
.filter((token) => token.length >= MIN_TERM_LEN && !/[0-9a-z]/.test(token));
|
|
5310
|
+
const TableInnerButton = JSX(({ className = '', isOpen, onClick }) => (jsx(LinkButton, { className: className, appendRight: jsx(Img, { image: { icon: isOpen ? 'ArrowUpIcon' : 'ArrowDownIcon' }, width: "20", height: "20" }), text: isOpen ? 'Скрыть' : 'Показать', version: "gray", onClick: onClick })));
|
|
5484
5311
|
|
|
5485
|
-
const
|
|
5486
|
-
|
|
5487
|
-
|
|
5488
|
-
|
|
5489
|
-
|
|
5312
|
+
const renderButtonsCellData = ({ buttons }) => renderButtonsSection(buttons, {
|
|
5313
|
+
buttonClassName: 'basis-0',
|
|
5314
|
+
});
|
|
5315
|
+
const renderLabelDescriptionCellData = ({ label, description }) => (jsxs("div", { className: "space-y-2xs", children: [label ? (jsx("div", { children: jsx(Text, { size: "text-h6", children: label }) })) : null, description ? (jsx("div", { children: jsx(Text, { size: "text-l", color: "text-secondary-text", children: description }) })) : null] }));
|
|
5316
|
+
const renderImgCellData = ({ image }) => (image?.src ? jsx(Img, { image: image }) : null);
|
|
5317
|
+
const renderListCellData = ({ isDotted, ...rest }) => (jsx(List, { className: "flex flex-col justify-between items-start text-h6", isDotted: isDotted ?? true, ...rest }));
|
|
5318
|
+
const renderInnerTableCellData = ({ isVisible, displayTable, dataUrl, pdfUrl, isOpen, }) => isVisible ? (jsx(TableInnerButton, { isOpen: isOpen, onClick: () => {
|
|
5319
|
+
displayTable({ dataUrl, pdfUrl });
|
|
5320
|
+
} })) : null;
|
|
5321
|
+
const EmbeddableCellData = {
|
|
5322
|
+
Buttons: renderButtonsCellData,
|
|
5323
|
+
Img: renderImgCellData,
|
|
5324
|
+
List: renderListCellData,
|
|
5325
|
+
LabelDescription: renderLabelDescriptionCellData,
|
|
5326
|
+
Table: renderInnerTableCellData,
|
|
5490
5327
|
};
|
|
5491
5328
|
|
|
5492
|
-
const
|
|
5493
|
-
|
|
5494
|
-
|
|
5495
|
-
|
|
5496
|
-
|
|
5497
|
-
|
|
5329
|
+
const RenderCellInner = JSX(({ cell, fieldIdx, rowIdx, cellIdx, setTableInner, tableInner, openTableInnerIdx, setOpenTableInnerIdx, }) => {
|
|
5330
|
+
const [isVisible, setVisibility] = useState(true);
|
|
5331
|
+
useEffect(() => {
|
|
5332
|
+
if (cellIdx !== openTableInnerIdx || !tableInner) {
|
|
5333
|
+
setVisibility(true);
|
|
5334
|
+
}
|
|
5335
|
+
}, [tableInner, openTableInnerIdx]);
|
|
5336
|
+
const displayTable = (props) => {
|
|
5337
|
+
setVisibility(false);
|
|
5338
|
+
setOpenTableInnerIdx(cellIdx);
|
|
5339
|
+
setTableInner(props);
|
|
5340
|
+
};
|
|
5341
|
+
return renderCell({
|
|
5342
|
+
cell,
|
|
5343
|
+
cellProps: {
|
|
5344
|
+
rowIdx,
|
|
5345
|
+
cellIdx,
|
|
5346
|
+
fieldIdx,
|
|
5347
|
+
displayTable,
|
|
5348
|
+
isVisible,
|
|
5349
|
+
},
|
|
5350
|
+
});
|
|
5351
|
+
});
|
|
5352
|
+
const renderCell = ({ cell, cellProps }) => {
|
|
5353
|
+
if (!cell) {
|
|
5354
|
+
return null;
|
|
5498
5355
|
}
|
|
5499
|
-
const
|
|
5500
|
-
if (!
|
|
5501
|
-
return
|
|
5356
|
+
const { tableCellType: type, ...rest } = cell;
|
|
5357
|
+
if (!type || !(type in EmbeddableCellData)) {
|
|
5358
|
+
return null;
|
|
5502
5359
|
}
|
|
5503
|
-
const
|
|
5504
|
-
|
|
5505
|
-
.map(computePagesRankingPerToken(dictEntries))
|
|
5506
|
-
.reduce(joinMaps((a, b) => a + b, 0), new Map());
|
|
5507
|
-
const relevantPages = [...pagesRanking.entries()]
|
|
5508
|
-
.filter(([, pageRank]) => pageRank >= (JW_THRESHOLD - RANK_EPS) * queryTokens.length) // Multiplication of query tokens
|
|
5509
|
-
.map(([pageIndex]) => corpus[pageIndex]);
|
|
5510
|
-
return sortResultsByRank(queryTokens)(relevantPages);
|
|
5360
|
+
const EmbeddableCellInner = EmbeddableCellData[type];
|
|
5361
|
+
return jsx(EmbeddableCellInner, { ...cellProps, ...rest });
|
|
5511
5362
|
};
|
|
5512
|
-
const computePagesRankingPerToken = (dictEntries) => (qToken) => dictEntries
|
|
5513
|
-
.map(([stem, pageIndices]) => [jaroWinklerDistance(qToken)(stem), pageIndices])
|
|
5514
|
-
.filter(([stemRank]) => stemRank >= JW_THRESHOLD)
|
|
5515
|
-
.map(([stemRank, pageIndices]) => fillMapWith(pageIndices, stemRank))
|
|
5516
|
-
.reduce(joinMaps(Math.max, 0), new Map());
|
|
5517
|
-
const sortResultsByRank = (queryTokens) => (results) => zip(results, results.map(({ title }) => title).map(textRank(queryTokens)))
|
|
5518
|
-
.sort(desc(compareBy(([, pageTitleRank]) => pageTitleRank)))
|
|
5519
|
-
.map(([corpusItem]) => corpusItem);
|
|
5520
|
-
const fillMapWith = (keys, value) => new Map(keys.map((_) => [_, value]));
|
|
5521
5363
|
|
|
5522
|
-
const
|
|
5523
|
-
|
|
5524
|
-
|
|
5525
|
-
|
|
5526
|
-
|
|
5527
|
-
|
|
5528
|
-
|
|
5529
|
-
|
|
5530
|
-
|
|
5531
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
return [
|
|
5364
|
+
const TariffsTableCell = JSX(({ cells, rowIdx, cellIdx, setTableInner, tableInner, openTableInnerIdx, setOpenTableInnerIdx, }) => {
|
|
5365
|
+
return (jsx("div", { className: "w-80 flex-grow flex flex-col gap-m @4xl:gap-lg", role: "cell", children: cells?.length
|
|
5366
|
+
? cells.map((_, i) => (jsx(RenderCellInner, { cell: _, fieldIdx: i, rowIdx: rowIdx, cellIdx: cellIdx, setTableInner: setTableInner, tableInner: tableInner, openTableInnerIdx: openTableInnerIdx, setOpenTableInnerIdx: setOpenTableInnerIdx }, String(i))))
|
|
5367
|
+
: null }));
|
|
5368
|
+
});
|
|
5369
|
+
|
|
5370
|
+
const COLUMN_WIDTH = 140;
|
|
5371
|
+
const getHorizontalShift = (columns, activeColumnIndex) => sum(columns.slice(0, activeColumnIndex).map((_) => _?.cols?.length ?? 1)) * COLUMN_WIDTH;
|
|
5372
|
+
|
|
5373
|
+
const renderInnerTableRow = (activeColumnIndex) => (rowData, rowIdx) => {
|
|
5374
|
+
if (!rowData?.length) {
|
|
5375
|
+
return null;
|
|
5376
|
+
}
|
|
5377
|
+
const [headerColumn, ...columns] = rowData;
|
|
5378
|
+
const columnsStyle = style('flex duration-1000 text-center', rowIdx !== 0 ? 'font-normal' : 'font-light');
|
|
5379
|
+
return (jsxs("div", { className: "flex border-main-divider border-b border-solid h-full", children: [headerColumn?.data ? (jsx("div", { className: "whitespace-pre-wrap sm:whitespace-normal w-48 sm:w-56 sm:min-w-56 py-lg pr-lg sm:pr-0", children: jsx(Text, { size: "text-xl", font: "font-light", children: headerColumn.data }) })) : null, jsx("div", { className: "flex flex-grow overflow-hidden", children: jsx("div", { className: columnsStyle, style: {
|
|
5380
|
+
transform: `translateX(-${getHorizontalShift(columns, activeColumnIndex)}px)`,
|
|
5381
|
+
}, children: columns?.map((_, i) => (jsxs("div", { className: "flex flex-col flex-grow gap-s justify-center py-xl odd:bg-main-divider", children: [_?.data ? jsx(Text, { size: "text-xl", children: _.data }) : null, _?.cols ? renderCols(_.cols, activeColumnIndex) : null] }, `row${i}`))) }) })] }, String(rowIdx)));
|
|
5538
5382
|
};
|
|
5539
|
-
const
|
|
5383
|
+
const renderCols = (cols, rowIndex) => cols?.length > 0 ? (jsx("div", { className: style('flex', rowIndex === 0 ? 'text-secondary-text' : ''), children: cols.map((data, i) => (jsx("div", { className: "w-20 mx-lg", children: jsx(Text, { size: "text-h6", font: "font-light", children: data }) }, String(i)))) })) : null;
|
|
5540
5384
|
|
|
5541
|
-
const
|
|
5542
|
-
|
|
5543
|
-
|
|
5385
|
+
const InnerTableBodyItem = JSX(({ rows }) => (jsx(SwipeListContainer, { visibleItemCount: 0, snapAlign: "snap-start", children: jsx("div", { children: rows?.map(renderInnerTableRow(0)) }) })));
|
|
5386
|
+
|
|
5387
|
+
const InnerTableBody = JSX(({ activeTabIndex, items }) => {
|
|
5388
|
+
return (jsx("div", { children: items.map((_, tableIdx) => {
|
|
5389
|
+
const key = `activeTabIdx:${activeTabIndex}-tableIdx:${tableIdx}`;
|
|
5390
|
+
return (jsxs("div", { className: "w-full @container", children: [jsx("div", { className: "flex py-m sm:px-m bg-white @4xl:bg-gray relative", children: jsx(Text, { size: "text-xl", align: "text-left", children: _.title }) }), jsx("div", { className: "w-full sm:pl-xs overflow-hidden transition-height duration-500 ease-in-out", children: jsx("div", { className: "relative", children: jsx(InnerTableBodyItem, { rows: _.rowsData }) }) })] }, key));
|
|
5391
|
+
}) }));
|
|
5544
5392
|
});
|
|
5545
|
-
|
|
5546
|
-
const
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
const
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5393
|
+
|
|
5394
|
+
const linkButtonVersion = 'link';
|
|
5395
|
+
|
|
5396
|
+
const TableColor = (isEqual = false) => `${isEqual ? 'text-white' : 'text-secondary-text'}`;
|
|
5397
|
+
const InnerTableHeader = JSX(({ currencies, linkToPDF, activeTabIndex, setActiveTabIndex }) => (jsxs("div", { className: "flex justify-between items-center w-full py-lg", children: [currencies && currencies.length > 1 ? (jsx("div", { className: "flex bg-secondary-light p-2xs rounded-md", children: currencies.map((currency, idx) => (jsx("div", { className: style('rounded-md px-4 py-3 cursor-pointer', idx === activeTabIndex ? 'bg-primary-main' : ''), onClick: () => setActiveTabIndex(idx), children: jsx(Text, { size: "text-xl", font: "font-light", color: TableColor(idx === activeTabIndex), children: currency || idx + 1 }) }, currency))) })) : null, linkToPDF ? (jsx(LinkButton, { className: "text-primary-main", href: linkToPDF, version: linkButtonVersion, target: "_blank", appendLeft: jsx(Icon, { name: "DocDownloadIcon", iconVersion: "color", className: "mr-3xs", width: "20", height: "20" }), text: "\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432 PDF" })) : null] })));
|
|
5398
|
+
|
|
5399
|
+
function useTariffsInnerTableData(directoryName) {
|
|
5400
|
+
const { data } = useAsyncData(tariffsInnerTableDataUrl(directoryName), fetchTariffsInnerTableData);
|
|
5401
|
+
return data || {};
|
|
5402
|
+
}
|
|
5403
|
+
async function fetchTariffsInnerTableData(url) {
|
|
5404
|
+
const response = await fetch(url);
|
|
5405
|
+
return await response.json();
|
|
5406
|
+
}
|
|
5407
|
+
function tariffsInnerTableDataUrl(directoryName) {
|
|
5408
|
+
return `/wcms-resources/${directoryName || 'tariffs-inner-table-data'}.json`;
|
|
5409
|
+
}
|
|
5410
|
+
|
|
5411
|
+
const EMPTY_DATA$1 = 'Данных нет';
|
|
5412
|
+
const InnerTable = JSX(({ dataUrl, pdfUrl, onClick }) => {
|
|
5413
|
+
const { tableData } = useTariffsInnerTableData(dataUrl);
|
|
5414
|
+
const [activeTabIndex, setActiveTabIndex] = useState(0);
|
|
5415
|
+
const handleActiveTabIndex = useCallback((_) => setActiveTabIndex(_), []);
|
|
5416
|
+
const items = tableData?.[activeTabIndex]?.items ?? [];
|
|
5417
|
+
const currencies = tableData?.map((item) => item.currency ?? '');
|
|
5418
|
+
return tableData ? (jsxs("div", { className: "bg-white z-10", children: [jsx(InnerTableHeader, { currencies: currencies, activeTabIndex: activeTabIndex, setActiveTabIndex: handleActiveTabIndex, linkToPDF: pdfUrl }), jsx(InnerTableBody, { activeTabIndex: activeTabIndex, items: items }), jsx(TableInnerButton, { className: "mt-xl", onClick: onClick, isOpen: true })] })) : (jsxs("div", { className: "my-lg space-y-m text-center", children: [jsx(Text, { size: "text-h6", children: EMPTY_DATA$1 }), jsx(TableInnerButton, { onClick: onClick, isOpen: true })] }));
|
|
5556
5419
|
});
|
|
5557
5420
|
|
|
5558
|
-
const
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
const [
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
const
|
|
5566
|
-
|
|
5567
|
-
return (jsx(Dialog, { head: jsx(SearchInput, { autoFocus: true, ...searchInputProps }), children: jsx(Sitemap, { topItems: searchItems }) }));
|
|
5421
|
+
const TariffsTableRowContainer = JSX(({ children, tableInner, onHideContentClick }) => (jsxs("div", { className: "self-start flex flex-col", role: "row", children: [jsx("div", { className: style(dividerStyle, 'flex flex-col @4xl:flex-row gap-y-xs gap-x-5xl pb-lg @4xl:pt-lg'), children: children }), tableInner ? (jsx("div", { className: "origin-top animate-expansion", children: jsx(InnerTable, { ...tableInner, onClick: onHideContentClick }) })) : null] })));
|
|
5422
|
+
|
|
5423
|
+
const TariffsTableRow = JSX(({ row: { header, data }, activeIndex, rowIdx, ...rest }) => {
|
|
5424
|
+
const [tableInner, setTableInner] = useState(undefined);
|
|
5425
|
+
const handleSetTableInner = useCallback((_) => setTableInner(_), []);
|
|
5426
|
+
const [openTableInnerIdx, setOpenTableInnerIdx] = useState(undefined);
|
|
5427
|
+
const handleOpenTableInnerIdx = useCallback((_) => setOpenTableInnerIdx(_), []);
|
|
5428
|
+
const onHideContentClick = () => setTableInner(undefined);
|
|
5429
|
+
return (jsxs(TariffsTableRowContainer, { onHideContentClick: onHideContentClick, tableInner: tableInner, ...rest, children: [jsx("div", { className: style('text-s', firstCellStyle), children: jsxs("div", { className: "flex gap-m items-center", role: "cell", children: [header?.icon ? (jsx(Img, { className: "hidden @4xl:block max-w-6 shrink-0", image: header.icon, width: "24", height: "24" })) : null, header?.title ? (jsx(Text, { size: "text-m", font: "font-light", color: "text-primary-text", children: header?.title })) : null] }) }), data?.length ? (jsx(TableCarouselContainer, { activeIndex: activeIndex, columnWidth: COLUMN_WIDTH$1, version: "tariff", children: data.map((cells, i) => (jsx(TariffsTableCell, { cells: cells, rowIdx: rowIdx, cellIdx: i, setTableInner: handleSetTableInner, tableInner: tableInner, openTableInnerIdx: openTableInnerIdx, setOpenTableInnerIdx: handleOpenTableInnerIdx, ...rest }, String(i)))) })) : null] }));
|
|
5568
5430
|
});
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
// Temp
|
|
5576
|
-
function printSearchItems(topItems) {
|
|
5577
|
-
for (const _ of topItems.filter(({ items }) => items?.length)) {
|
|
5578
|
-
console.group(_.text);
|
|
5579
|
-
console.table(_.items, ['text', 'href']);
|
|
5580
|
-
console.groupEnd();
|
|
5431
|
+
|
|
5432
|
+
/** @deprecated */
|
|
5433
|
+
function renderArrows({ dec, inc, canDec, canInc, btnClass, className = '', }) {
|
|
5434
|
+
const isVisible = canDec || canInc;
|
|
5435
|
+
if (!isVisible) {
|
|
5436
|
+
return null;
|
|
5581
5437
|
}
|
|
5438
|
+
return (jsxs("div", { children: [canDec ? (jsx(ArrowButton, { className: style('absolute z-40', btnClass[0], className), onClick: dec, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E", "data-block-control": "scroll-left", disabled: !canDec })) : null, canInc ? (jsx(ArrowButton, { className: style('absolute z-40 rotate-180', btnClass[1], className), onClick: inc, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right", disabled: !canInc })) : null] }));
|
|
5582
5439
|
}
|
|
5583
5440
|
|
|
5584
|
-
const
|
|
5585
|
-
const {
|
|
5586
|
-
return {
|
|
5587
|
-
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
const MIN_QUERY_LEN = 3;
|
|
5593
|
-
const SearchBar = JSX(({ className }) => {
|
|
5594
|
-
const [value, setValue] = useState('');
|
|
5595
|
-
const resetQueryOnDialogClose = useCallback(() => setValue(''), []);
|
|
5596
|
-
const { open } = useSearchDialog();
|
|
5597
|
-
const handleInitialInputChange = useCallback((_) => {
|
|
5598
|
-
setValue(_);
|
|
5599
|
-
if (isQueryLongEnough(_)) {
|
|
5600
|
-
open({ initialQuery: _ }, { onClose: resetQueryOnDialogClose });
|
|
5601
|
-
}
|
|
5602
|
-
}, [resetQueryOnDialogClose]);
|
|
5603
|
-
return (jsxs("div", { className: style('relative', className), children: [jsx(SearchInput, { value: value, onChange: handleInitialInputChange }), jsx(CloseButton, { className: "absolute top-0 right-0 sm:hidden", onClose: resetQueryOnDialogClose })] }));
|
|
5441
|
+
const TariffsTableWrapper = JSX(({ children, controls }) => {
|
|
5442
|
+
const { isScrollAvailable } = controls;
|
|
5443
|
+
return (jsxs("div", { role: "table", children: [jsxs("div", { className: "relative space-y-xs", children: [children, renderArrows({
|
|
5444
|
+
...controls,
|
|
5445
|
+
btnClass: ['top-28', 'top-11'],
|
|
5446
|
+
className: 'right-7',
|
|
5447
|
+
})] }), isScrollAvailable ? (jsx("div", { className: "absolute top-0 right-0 bottom-0 w-20 bg-opacity-to-white" })) : null] }));
|
|
5604
5448
|
});
|
|
5605
|
-
const isQueryLongEnough = (_) => _ && _.length >= MIN_QUERY_LEN;
|
|
5606
5449
|
|
|
5607
|
-
const
|
|
5608
|
-
const
|
|
5609
|
-
const
|
|
5610
|
-
|
|
5611
|
-
|
|
5612
|
-
|
|
5613
|
-
|
|
5450
|
+
const TariffsTable = JSX(({ className = '', title, description, rowHeaders, tariffsColumns: columns, hiddenRowsNum = 0, ...rest }) => {
|
|
5451
|
+
const colData = columns?.map(({ data }) => data) || [];
|
|
5452
|
+
const rowData = rowHeaders?.map((header, i) => ({
|
|
5453
|
+
header,
|
|
5454
|
+
data: colData.map((col) => col?.[i] || []),
|
|
5455
|
+
}));
|
|
5456
|
+
const itemCount = colData.length;
|
|
5457
|
+
const [activeIndex, controls] = useCarouselControls({
|
|
5458
|
+
itemCount: itemCount,
|
|
5459
|
+
visibleItemCount: COLS_LENGTH_FOR_SCROLL,
|
|
5460
|
+
});
|
|
5461
|
+
const rows = (rowData || []).map((row, i) => (jsx(TariffsTableRow, { row: row, activeIndex: activeIndex, rowIdx: i, ...rest }, String(i))));
|
|
5462
|
+
const [visibleRows, hiddenRows] = hiddenRowsNum > 0 ? [rows.slice(0, -hiddenRowsNum), rows.slice(-hiddenRowsNum)] : [rows, []];
|
|
5463
|
+
return (jsxs(BlockWrapper, { className: style('overflow-hidden relative space-y-6xl @4xl:space-y-xl', className), defaultPadding: "p-6xl", ...rest, children: [jsx(Headline, { title: title, description: description, headlineVersion: "M", isEmbedded: true, align: "text-center" }), jsx("div", { className: "space-y-m", children: hiddenRowsNum > 0 ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs(TariffsTableWrapper, { controls: controls, children: [visibleRows, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenRows })] })), renderFoldButton: renderDefaultFoldButton })) : (jsx(TariffsTableWrapper, { controls: controls, children: rows })) })] }));
|
|
5614
5464
|
});
|
|
5615
5465
|
|
|
5616
|
-
const
|
|
5466
|
+
const TextBlock = JSX(({ className = '', title, description, iconVersion, __html, ...rest }) => (jsxs(BlockWrapper, { className: style('flex gap-s sm:gap-m bg-white group-data-secondary:bg-primary-main/10', className), ...rest, children: [iconVersion === 'small' ? renderIcon() : null, jsxs("div", { className: "flex flex-col w-fit gap-2xs sm:gap-xs", children: [title ? (jsx(Text, { size: "text-l", font: "font-normal", color: "text-primary-text group-data-secondary:text-white", children: title })) : null, description ? renderDescription(description) : null, __html ? jsx(RichText, { __html: __html }) : null] })] })));
|
|
5467
|
+
const renderIcon = () => (jsx("div", { className: `rounded-full h-4 w-4 text-center text-xs font-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main`, children: "i" }));
|
|
5468
|
+
const renderDescription = (description) => (jsx(Paragraph, { size: "text-s", font: "font-light", color: "text-secondary-text group-data-secondary:text-white", children: description }));
|
|
5617
5469
|
|
|
5618
|
-
const
|
|
5470
|
+
const Unit = JSX(({ prefix, unit, suffix }) => (jsxs("div", { className: "w-full flex items-end", children: [prefix ? (jsx("div", { className: "gradient-color-text", children: jsx(Text, { size: "text-h2", children: prefix }) })) : null, unit ? (
|
|
5471
|
+
// -mb-n добавлен для выравнивания unit относительно prefix и suffix, тк шрифт font-mohave неправильно высчитывает line-height
|
|
5472
|
+
jsx("div", { className: "-mb-6 @xl:-mb-4", children: jsx("span", { className: "font-mohave text-title-large sm:text-title-extra gradient-color-text", children: unit }) })) : null, suffix ? (jsx("div", { className: "gradient-color-text", children: jsx(Text, { size: "text-h2", children: suffix }) })) : null] })));
|
|
5619
5473
|
|
|
5620
|
-
const
|
|
5621
|
-
const {
|
|
5622
|
-
|
|
5623
|
-
const locationDialog = useLocationDialog();
|
|
5624
|
-
const openLocationDialog = useCallback(() => locationDialog.open(), []);
|
|
5625
|
-
const [containerRef, scroll] = useSwipeListScroll({
|
|
5626
|
-
itemCount: topItems?.length ?? 0,
|
|
5627
|
-
});
|
|
5628
|
-
const [activeIndex] = useActiveRoute(topItems);
|
|
5629
|
-
const [activeTopItemIndex, setActiveTopItemIndex] = useState(activeIndex);
|
|
5630
|
-
const activeRoute = useMemo(() => topItems?.[activeTopItemIndex], [topItems, activeTopItemIndex]);
|
|
5631
|
-
const activeMenuSubItems = activeRoute?.items || [];
|
|
5632
|
-
useEffect(() => {
|
|
5633
|
-
setActiveTopItemIndex(activeIndex);
|
|
5634
|
-
}, [activeIndex]);
|
|
5635
|
-
useEffect(() => {
|
|
5636
|
-
if (activeTopItemIndex > 0) {
|
|
5637
|
-
scroll.scrollTo(activeTopItemIndex);
|
|
5638
|
-
}
|
|
5639
|
-
}, [activeTopItemIndex, scroll]);
|
|
5640
|
-
const handleTopItemClick = useCallback((idx) => setActiveTopItemIndex(idx), []);
|
|
5641
|
-
return (jsx(Dialog, { head: jsx("div", { className: "flex items-center", children: jsx(Heading, { as: "h4", title: "\u041C\u0435\u043D\u044E" }) }), children: jsxs("div", { className: "flex flex-col flex-nowrap relative w-full h-auto m-auto bg-white pb-24 box-border rounded-md", children: [jsx("div", { className: "w-full mb-3", children: jsx(SwipeListContainer, { containerRef: containerRef, visibleItemCount: 0, gap: 20, className: "pb-3", children: topItems?.map((item, i) => (jsx(TopItemMobile, { item: item, isActive: activeTopItemIndex === i, onClick: () => handleTopItemClick(i) }, String(i)))) }) }), jsxs("div", { className: "relative grow overflow-auto", children: [jsx(ActiveSubMenu, { activeMenuSubItems: activeMenuSubItems, basePath: activeRoute?.href }), jsx(SearchBar, { className: "grow mb-5" }), renderOfficeLink(officesLink), jsxs("div", { className: "flex items-center text-s cursor-pointer", onClick: openLocationDialog, children: [jsx(Img, { image: { icon: 'GeolocationIcon', iconVersion: 'black' }, width: "24", height: "24", className: "text-primary-main box-border mr-xs bg-main-divider p-xs rounded-md" }), jsxs("div", { className: "flex flex-col items-start", children: [jsx(Text, { size: "text-h5", children: location.name }), jsx(Text, { color: "text-secondary-text", size: "text-s", children: "\u0412\u0430\u0448\u0430 \u043B\u043E\u043A\u0430\u0446\u0438\u044F" })] })] })] })] }) }));
|
|
5474
|
+
const UnitBlock = JSX((props) => {
|
|
5475
|
+
const { prefix, unit, suffix, ...rest } = props;
|
|
5476
|
+
return (jsx(BlockWrapper, { defaultPadding: "p-0", ...rest, children: jsx(Unit, { prefix: prefix, unit: unit, suffix: suffix }) }));
|
|
5642
5477
|
});
|
|
5643
|
-
const renderOfficeLink = (officesLink) => officesLink ? (jsxs("a", { className: "flex items-center mb-3", href: officesLink, rel: "noopener noreferrer", "aria-label": "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B", children: [jsx(Img, { image: { icon: 'MapOpenedIcon', iconVersion: 'black' }, width: "24", height: "24", className: "text-primary-main box-border mr-xs bg-main-divider p-xs rounded-md" }), jsx("span", { children: "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B" })] })) : null;
|
|
5644
5478
|
|
|
5645
|
-
const
|
|
5646
|
-
|
|
5647
|
-
|
|
5648
|
-
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
|
|
5659
|
-
|
|
5479
|
+
const Blocks = {
|
|
5480
|
+
AdTile,
|
|
5481
|
+
ApplicationForm,
|
|
5482
|
+
BenefitsBlock,
|
|
5483
|
+
BonusBenefitsBlock,
|
|
5484
|
+
ButtonsBlock,
|
|
5485
|
+
Calculator,
|
|
5486
|
+
CardTransfer,
|
|
5487
|
+
Carousel,
|
|
5488
|
+
CarouselBankHistoryCard,
|
|
5489
|
+
CarouselCard,
|
|
5490
|
+
CarouselCatalogCard,
|
|
5491
|
+
CarouselLinks,
|
|
5492
|
+
CarouselRecommendationCard,
|
|
5493
|
+
CarouselTariffsCard,
|
|
5494
|
+
ComparisonTable,
|
|
5495
|
+
DepositFiltration,
|
|
5496
|
+
ErrorBlock,
|
|
5497
|
+
ExchangeRateTile,
|
|
5498
|
+
Footer,
|
|
5499
|
+
Header,
|
|
5500
|
+
Headline,
|
|
5501
|
+
HorizontalLayout,
|
|
5502
|
+
ImgBlock,
|
|
5503
|
+
LinkDocs,
|
|
5504
|
+
MobileAppTile,
|
|
5505
|
+
MortgageFiltration,
|
|
5506
|
+
OfficesAtmsMap,
|
|
5507
|
+
Placeholder,
|
|
5508
|
+
ProductBlock,
|
|
5509
|
+
ProductGallery,
|
|
5510
|
+
RepresentativeOfficeInfo,
|
|
5511
|
+
RichTextBlock,
|
|
5512
|
+
RollupItem,
|
|
5513
|
+
SafeDepositRental,
|
|
5514
|
+
StepsBlock,
|
|
5515
|
+
StickyBottomMenu,
|
|
5516
|
+
Tabs,
|
|
5517
|
+
TabsLayout,
|
|
5518
|
+
TariffsTable,
|
|
5519
|
+
TextBlock,
|
|
5520
|
+
UnitBlock,
|
|
5521
|
+
VerticalLayout,
|
|
5660
5522
|
};
|
|
5661
5523
|
|
|
5662
|
-
const
|
|
5663
|
-
const
|
|
5664
|
-
|
|
5665
|
-
const
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
const
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
return (jsx("div", { className: "
|
|
5524
|
+
const COOKIE_DIALOG_ID = 'cookie';
|
|
5525
|
+
const DIALOG_INITIAL_DELAY = 3 * 1000;
|
|
5526
|
+
const CookiePopup = JSX(({ termLink, personalDataPolicyLink }) => {
|
|
5527
|
+
const [opened, { setTrue: open, setFalse: close }] = useBool();
|
|
5528
|
+
useDebouncedEffect(() => {
|
|
5529
|
+
if (!globalThis.localStorage?.getItem(COOKIE_DIALOG_ID)) {
|
|
5530
|
+
open();
|
|
5531
|
+
}
|
|
5532
|
+
}, [], DIALOG_INITIAL_DELAY);
|
|
5533
|
+
const handleClose = useCallback(() => {
|
|
5534
|
+
globalThis.localStorage?.setItem(COOKIE_DIALOG_ID, 'true');
|
|
5535
|
+
close();
|
|
5536
|
+
}, []);
|
|
5537
|
+
return opened ? (jsx("div", { className: "container fixed left-0 right-0 bottom-0 z-50", children: jsxs("div", { className: "bg-white m-xl p-xl rounded-md flex sm:items-center shadow-main-black", children: [jsx("div", { className: "sm:flex-1", children: jsxs(Paragraph, { size: "text-s", font: "font-light", color: "text-primary-text", children: ["\u0410\u041E \u00AB\u0420\u043E\u0441\u0441\u0435\u043B\u044C\u0445\u043E\u0437\u0431\u0430\u043D\u043A\u00BB \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0435\u0442", jsx(LinkWrapper, { isRemote: true, className: linkWrapperStyle(termLink?.href), ...termLink, children: "cookie" }), "(\u0444\u0430\u0439\u043B\u044B \u0441 \u0434\u0430\u043D\u043D\u044B\u043C\u0438 \u043E \u043F\u0440\u043E\u0448\u043B\u044B\u0445 \u043F\u043E\u0441\u0435\u0449\u0435\u043D\u0438\u044F\u0445 \u0441\u0430\u0439\u0442\u0430) \u0434\u043B\u044F \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043E\u0432 \u0438 \u0443\u0434\u043E\u0431\u0441\u0442\u0432\u0430 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u0435\u0439. \u0412\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0437\u0430\u043F\u0440\u0435\u0442\u0438\u0442\u044C \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u0438\u0435 cookie \u0432 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430\u0445 \u0441\u0432\u043E\u0435\u0433\u043E \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430.", jsx(LinkWrapper, { isRemote: true, className: linkWrapperStyle(personalDataPolicyLink?.href), ...personalDataPolicyLink, children: "\u041E\u0431\u0440\u0430\u0431\u043E\u0442\u043A\u0430 \u0412\u0430\u0448\u0438\u0445 \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445" }), "\u043F\u0440\u043E\u0438\u0437\u0432\u043E\u0434\u0438\u0442\u0441\u044F \u0432 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u044F\u043C\u0438 \u0424\u0435\u0434\u0435\u0440\u0430\u043B\u044C\u043D\u043E\u0433\u043E \u0437\u0430\u043A\u043E\u043D\u0430 \u043E\u0442 27.07.2006 \u2116 152-\u04243 \u00AB\u041E \u043F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0445 \u0434\u0430\u043D\u043D\u044B\u0445\u00BB."] }) }), jsx("div", { className: "ml-s sm:ml-0 w-24 flex justify-end", children: jsx(CloseButton, { className: "bg-main-gray rounded-md", onClose: handleClose }) })] }) })) : null;
|
|
5676
5538
|
});
|
|
5677
|
-
const
|
|
5539
|
+
const linkWrapperStyle = (href) => style('inline mx-2xs', href ? 'text-green-dark' : '');
|
|
5678
5540
|
|
|
5679
|
-
const
|
|
5680
|
-
|
|
5681
|
-
|
|
5541
|
+
const DialogManager = JSX(() => {
|
|
5542
|
+
const handleCloseAll = useCallback((dialogs) => {
|
|
5543
|
+
for (const _ of dialogs) {
|
|
5544
|
+
_?.onClose && _.onClose();
|
|
5545
|
+
}
|
|
5546
|
+
}, []);
|
|
5547
|
+
const handleClose = useCallback((_) => {
|
|
5548
|
+
_?.onClose && _.onClose();
|
|
5549
|
+
}, []);
|
|
5550
|
+
const dialogs = useDialogsList({ onCloseAll: handleCloseAll, onClose: handleClose });
|
|
5551
|
+
const { close } = useDialogManager();
|
|
5552
|
+
const escapeHandler = useCallback(({ key }) => {
|
|
5553
|
+
if (key === 'Escape') {
|
|
5554
|
+
close();
|
|
5555
|
+
}
|
|
5556
|
+
}, []);
|
|
5557
|
+
useEventListener(globalThis.document, 'keydown', escapeHandler);
|
|
5682
5558
|
useEffect(() => {
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
}
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
5694
|
-
return {
|
|
5695
|
-
likeCount,
|
|
5696
|
-
like,
|
|
5697
|
-
dislike,
|
|
5698
|
-
};
|
|
5699
|
-
}
|
|
5700
|
-
|
|
5701
|
-
/** @deprecated */
|
|
5702
|
-
const LikeButton = JSX(({ className, onClick, ariaLabel }) => (jsx("button", { type: "button", className: `border-0 w-9 bg-inherit cursor-pointer ${className || ''}`, onClick: onClick, "aria-label": ariaLabel, children: renderLikeIcon() })));
|
|
5703
|
-
const renderLikeIcon = () => {
|
|
5704
|
-
const handPath = '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' +
|
|
5705
|
-
' 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';
|
|
5706
|
-
const cuffPath = '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';
|
|
5707
|
-
return (jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", children: [renderLinkIconPath(handPath), renderLinkIconPath(cuffPath)] }));
|
|
5708
|
-
};
|
|
5709
|
-
const renderLinkIconPath = (d) => (jsx("path", { stroke: "#292D32", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", strokeMiterlimit: "10", d: d }));
|
|
5559
|
+
if (dialogs.length) {
|
|
5560
|
+
globalThis.document?.body.classList.add('no-scrollbar');
|
|
5561
|
+
globalThis.document?.body.classList.add('overflow-hidden');
|
|
5562
|
+
}
|
|
5563
|
+
else {
|
|
5564
|
+
globalThis.document?.body.classList.remove('no-scrollbar');
|
|
5565
|
+
globalThis.document?.body.classList.remove('overflow-hidden');
|
|
5566
|
+
}
|
|
5567
|
+
}, [dialogs]);
|
|
5568
|
+
return dialogs.length ? (jsx("div", { className: "fixed inset-0 z-50", role: "dialog", children: dialogs.map(({ dialog, id }, i) => (jsx("div", { className: style('absolute inset-0 overflow-x-hidden overflow-y-scroll no-scrollbar', i === dialogs.length - 1 ? '' : 'hidden'), children: dialog }, String(id || i)))) })) : null;
|
|
5569
|
+
});
|
|
5710
5570
|
|
|
5711
|
-
const
|
|
5712
|
-
const
|
|
5713
|
-
const
|
|
5714
|
-
|
|
5571
|
+
const PopupManager = JSX(() => {
|
|
5572
|
+
const [popup, setPopup] = useState(null);
|
|
5573
|
+
const close = useCallback(() => {
|
|
5574
|
+
setPopup(null);
|
|
5575
|
+
}, []);
|
|
5576
|
+
useEffect(() => defaultEventBus.subscribe('popup', (action) => {
|
|
5577
|
+
switch (action.type) {
|
|
5578
|
+
case 'open':
|
|
5579
|
+
case 'update':
|
|
5580
|
+
setPopup(action);
|
|
5581
|
+
break;
|
|
5582
|
+
case 'close':
|
|
5583
|
+
close();
|
|
5584
|
+
break;
|
|
5585
|
+
default:
|
|
5586
|
+
assertUnreachable(action);
|
|
5587
|
+
}
|
|
5588
|
+
}), []);
|
|
5589
|
+
const escapeHandler = useCallback(({ key }) => {
|
|
5590
|
+
if (key === 'Escape') {
|
|
5591
|
+
close();
|
|
5592
|
+
}
|
|
5593
|
+
}, [close]);
|
|
5594
|
+
useEventListener(globalThis.document, 'keydown', escapeHandler);
|
|
5595
|
+
return popup ? (jsx("div", { className: "absolute z-50", style: {
|
|
5596
|
+
left: `${popup.left}px`,
|
|
5597
|
+
top: `${popup.top}px`,
|
|
5598
|
+
...(popup.width ? { width: `${popup.width}px` } : {}),
|
|
5599
|
+
}, role: "dialog", children: popup.popup })) : null;
|
|
5715
5600
|
});
|
|
5716
5601
|
|
|
5717
|
-
const
|
|
5718
|
-
|
|
5602
|
+
const HEADER_SLOT = 'header';
|
|
5603
|
+
const FOOTER_SLOT = 'footer';
|
|
5604
|
+
const STICKY_FOOTER_SLOT = 'sticky-footer';
|
|
5605
|
+
const EMPTY_DATA = {};
|
|
5606
|
+
const ContentPage = JSX(({ className, data = EMPTY_DATA, blocksRegistry, blockDecorator }) => {
|
|
5607
|
+
const { slots, blocks, ...pageContent } = data;
|
|
5608
|
+
const resolvedPageContent = useJSONRef(pageContent);
|
|
5719
5609
|
const options = {
|
|
5720
5610
|
key: '',
|
|
5721
|
-
page:
|
|
5611
|
+
page: { slots, blocks, ...resolvedPageContent },
|
|
5722
5612
|
blocksRegistry,
|
|
5723
5613
|
blockDecorator,
|
|
5724
5614
|
parent: data,
|
|
5725
5615
|
};
|
|
5726
|
-
return (jsxs("div", { "data-theme": colorPalette, children: [jsxs("section", { className: style('@container relative',
|
|
5616
|
+
return (jsxs("div", { "data-theme": data.colorPalette || 'pc', children: [jsxs("section", { className: style('@container relative', data.style, className), children: [slots?.[HEADER_SLOT]?.length ? (jsx("div", { className: "relative z-10 mb-lg shadow-[0_8px_32px_0px_#00000014]", children: renderBlocksList(slots?.[HEADER_SLOT], { ...options, slotName: HEADER_SLOT }) })) : null, jsxs("div", { className: "container space-y-px @5xl:space-y-0 @5xl:grid @5xl:grid-cols-12 @5xl:gap-2xs", children: [renderChildren({
|
|
5617
|
+
block: data,
|
|
5618
|
+
options,
|
|
5619
|
+
extraProps: { className: 'scroll-mt-12' },
|
|
5620
|
+
}), renderBlocksList(slots?.[FOOTER_SLOT], { ...options, slotName: FOOTER_SLOT })] })] }), slots?.[STICKY_FOOTER_SLOT]?.length ? (jsx("div", { className: "fixed w-full bottom-0 left-0 z-[100]", children: renderBlocksList(slots?.[STICKY_FOOTER_SLOT], {
|
|
5621
|
+
...options,
|
|
5622
|
+
slotName: STICKY_FOOTER_SLOT,
|
|
5623
|
+
}) })) : null, jsx(DialogManager, {}), jsx(PopupManager, {}), jsx(CookiePopup, { termLink: { href: '/pd-policy#cookie', target: '_blank' }, personalDataPolicyLink: { href: '/pd-policy', target: '_blank' } })] }));
|
|
5624
|
+
});
|
|
5625
|
+
Object.assign(ContentPage, {
|
|
5626
|
+
childrenTypes: [],
|
|
5627
|
+
slots: () => [HEADER_SLOT, FOOTER_SLOT, STICKY_FOOTER_SLOT],
|
|
5727
5628
|
});
|
|
5728
|
-
ContentPage.childrenTypes = [];
|
|
5729
|
-
ContentPage.slots = () => ['header', 'footer'];
|
|
5730
|
-
function renderLikeControl() {
|
|
5731
|
-
return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-3xl sticky bottom-0 pointer-events-auto" }) }));
|
|
5732
|
-
}
|
|
5733
5629
|
|
|
5734
5630
|
const joinList = (sep) => (list) => list.reduce((acc, el, i) => (acc.length ? acc.concat({ ...sep, key: `sep-${i}` }, el) : [el]), []);
|
|
5735
5631
|
|
|
5736
|
-
const packageVersion = "0.14.
|
|
5632
|
+
const packageVersion = "0.14.163";
|
|
5737
5633
|
|
|
5738
5634
|
exports.Blocks = Blocks;
|
|
5739
5635
|
exports.ContentPage = ContentPage;
|
|
5740
5636
|
exports.DaDataAPI = DaDataAPI;
|
|
5741
|
-
exports.LikeAPI = LikeAPI;
|
|
5742
5637
|
exports.handlerDecorator = handlerDecorator;
|
|
5743
5638
|
exports.joinList = joinList;
|
|
5744
5639
|
exports.packageVersion = packageVersion;
|