@redneckz/wildless-cms-uni-blocks 0.10.1 → 0.10.3
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.10.2.js +31 -0
- package/bin/migration-scripts/0.10.3.js +19 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +178 -160
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/Calculator/constants.d.ts +2 -2
- package/bundle/components/Calculator/rangeHelpers.d.ts +3 -0
- package/bundle/components/Calculator/useBusinessDepositCalculatorParams.d.ts +1 -1
- package/bundle/components/Calculator/useCreditCalculatorParams.d.ts +10 -3
- package/bundle/components/Calculator/useDepositCalculatorParams.d.ts +1 -1
- package/bundle/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +9 -2
- package/bundle/components/Header/HeaderSecondaryMenuButton.d.ts +2 -0
- package/bundle/components/Header/HeaderSubMenu.d.ts +3 -0
- package/bundle/components/Header/InternetBankButton.d.ts +7 -0
- package/bundle/components/LinkDocs/LinkDocsContent.d.ts +0 -4
- package/bundle/components/LinkDocs/LinkDocsListItem.d.ts +6 -1
- package/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +1 -1
- package/bundle/components/StepsBlock/StepsBlock.d.ts +1 -1
- package/bundle/components/StepsBlock/checkCanRenderIcon.d.ts +3 -1
- package/bundle/services/sitemap/SitemapData.d.ts +1 -0
- package/bundle/ui-kit/Button/ButtonProps.d.ts +0 -2
- package/bundle/ui-kit/Icon/IconProps.d.ts +0 -2
- package/bundle/ui-kit/YandexMap/renderSearchField.d.ts +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/BusinessBlock/BusinessCard.js +2 -2
- package/dist/components/BusinessBlock/BusinessCard.js.map +1 -1
- package/dist/components/Calculator/Calculator.js +1 -1
- package/dist/components/Calculator/Calculator.js.map +1 -1
- package/dist/components/Calculator/CreditCalculatorForm.js +5 -0
- package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/UnknownRate.js +2 -2
- package/dist/components/Calculator/UnknownRate.js.map +1 -1
- package/dist/components/Calculator/constants.d.ts +2 -2
- package/dist/components/Calculator/constants.js.map +1 -1
- package/dist/components/Calculator/rangeHelpers.d.ts +3 -0
- package/dist/components/Calculator/rangeHelpers.js +10 -3
- package/dist/components/Calculator/rangeHelpers.js.map +1 -1
- package/dist/components/Calculator/useBusinessDepositCalculatorParams.d.ts +1 -1
- package/dist/components/Calculator/useBusinessDepositCalculatorParams.js +2 -2
- package/dist/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
- package/dist/components/Calculator/useCreditCalculatorParams.d.ts +10 -3
- package/dist/components/Calculator/useCreditCalculatorParams.js +39 -33
- package/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/dist/components/Calculator/useDepositCalculatorParams.d.ts +1 -1
- package/dist/components/Calculator/useDepositCalculatorParams.js +4 -4
- package/dist/components/Calculator/useDepositCalculatorParams.js.map +1 -1
- package/dist/components/CarouselEventCard/CarouselEventCard.js +1 -2
- package/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
- package/dist/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -2
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -2
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +8 -5
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +9 -2
- package/dist/components/ComparisonTable/HeaderCell.js +1 -2
- package/dist/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
- package/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.js +1 -2
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Footer/MediaButton.js +1 -3
- package/dist/components/Footer/MediaButton.js.map +1 -1
- package/dist/components/Header/DropdownMenu.js +2 -2
- package/dist/components/Header/DropdownMenu.js.map +1 -1
- package/dist/components/Header/Header.js +2 -2
- package/dist/components/Header/Header.js.map +1 -1
- package/dist/components/Header/HeaderBurger.js +2 -2
- package/dist/components/Header/HeaderBurger.js.map +1 -1
- package/dist/components/Header/HeaderChatBotButton.js +1 -1
- package/dist/components/Header/HeaderChatBotButton.js.map +1 -1
- package/dist/components/Header/HeaderSecondaryMenu.js +1 -3
- package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/dist/components/Header/HeaderSecondaryMenuButton.d.ts +2 -0
- package/dist/components/Header/HeaderSecondaryMenuButton.js +6 -2
- package/dist/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
- package/dist/components/Header/HeaderSubMenu.d.ts +3 -0
- package/dist/components/Header/HeaderSubMenu.js +6 -2
- package/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/dist/components/Header/HeaderSubMenuItem.js +2 -2
- package/dist/components/Header/HeaderSubMenuItem.js.map +1 -1
- package/dist/components/Header/HeaderTop.js +1 -1
- package/dist/components/Header/HeaderTop.js.map +1 -1
- package/dist/components/Header/InternetBankButton.d.ts +7 -0
- package/dist/components/Header/InternetBankButton.js +12 -0
- package/dist/components/Header/InternetBankButton.js.map +1 -0
- package/dist/components/HorizontalLayout/HorizontalLayout.js +1 -1
- package/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.js +5 -4
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.js +3 -3
- package/dist/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocsContent.d.ts +0 -4
- package/dist/components/LinkDocs/LinkDocsListItem.d.ts +6 -1
- package/dist/components/LinkDocs/LinkDocsListItem.js +18 -2
- package/dist/components/LinkDocs/LinkDocsListItem.js.map +1 -1
- package/dist/components/OfficeMap/OfficeMap.js +1 -1
- package/dist/components/OfficeMap/OfficeMap.js.map +1 -1
- package/dist/components/OfficeMap/renderFunctions.js +1 -1
- package/dist/components/OfficeMap/renderFunctions.js.map +1 -1
- package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -2
- package/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.js +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +1 -1
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +3 -4
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/dist/components/RollupItem/RollupItem.js +2 -3
- package/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/dist/components/RollupItem/RollupItem.mobile.js +1 -2
- package/dist/components/RollupItem/RollupItem.mobile.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.d.ts +1 -1
- package/dist/components/StepsBlock/StepsBlock.js +5 -5
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +2 -2
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/StepsBlock/checkCanRenderIcon.d.ts +3 -1
- package/dist/components/StepsBlock/checkCanRenderIcon.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableRow.js +1 -2
- package/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/dist/components/VerticalLayout/VerticalLayout.js +1 -1
- package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/dist/content-page-repository/transformImg.js +11 -3
- package/dist/content-page-repository/transformImg.js.map +1 -1
- package/dist/services/sitemap/SitemapData.d.ts +1 -0
- package/dist/ui-kit/BenefitItem/BenefitItem.js +1 -3
- package/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/dist/ui-kit/Button/ArrowButton.js +1 -1
- package/dist/ui-kit/Button/ArrowButton.js.map +1 -1
- package/dist/ui-kit/Button/ButtonInner.js +4 -3
- package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/dist/ui-kit/Button/ButtonProps.d.ts +0 -2
- package/dist/ui-kit/Button/renderButtonsSection.js +3 -2
- package/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/dist/ui-kit/Foldable/DefaultFoldButton.js +1 -1
- package/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/dist/ui-kit/Icon/Icon.js +2 -2
- package/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/dist/ui-kit/Icon/IconProps.d.ts +0 -2
- package/dist/ui-kit/Img/ImgInner.js +1 -1
- package/dist/ui-kit/Img/ImgInner.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableButton.js +1 -1
- package/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableHeader.js +1 -1
- package/dist/ui-kit/InnerTable/InnerTableHeader.js.map +1 -1
- package/dist/ui-kit/LinkButton/LinkButton.js +2 -2
- package/dist/ui-kit/LinkButton/LinkButton.js.map +1 -1
- package/dist/ui-kit/Logo/renderImage.js +2 -2
- package/dist/ui-kit/Logo/renderImage.js.map +1 -1
- package/dist/ui-kit/YandexMap/renderSearchField.d.ts +1 -1
- package/dist/ui-kit/YandexMap/renderSearchField.js +1 -1
- package/dist/ui-kit/YandexMap/renderSearchField.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/BusinessBlock/BusinessCard.js +2 -2
- package/lib/components/BusinessBlock/BusinessCard.js.map +1 -1
- package/lib/components/Calculator/Calculator.js +1 -1
- package/lib/components/Calculator/Calculator.js.map +1 -1
- package/lib/components/Calculator/CreditCalculatorForm.js +6 -1
- package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/UnknownRate.js +2 -2
- package/lib/components/Calculator/UnknownRate.js.map +1 -1
- package/lib/components/Calculator/constants.d.ts +2 -2
- package/lib/components/Calculator/constants.js.map +1 -1
- package/lib/components/Calculator/rangeHelpers.d.ts +3 -0
- package/lib/components/Calculator/rangeHelpers.js +8 -2
- package/lib/components/Calculator/rangeHelpers.js.map +1 -1
- package/lib/components/Calculator/useBusinessDepositCalculatorParams.d.ts +1 -1
- package/lib/components/Calculator/useBusinessDepositCalculatorParams.js +2 -2
- package/lib/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
- package/lib/components/Calculator/useCreditCalculatorParams.d.ts +10 -3
- package/lib/components/Calculator/useCreditCalculatorParams.js +40 -34
- package/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/lib/components/Calculator/useDepositCalculatorParams.d.ts +1 -1
- package/lib/components/Calculator/useDepositCalculatorParams.js +4 -4
- package/lib/components/Calculator/useDepositCalculatorParams.js.map +1 -1
- package/lib/components/CarouselEventCard/CarouselEventCard.js +1 -2
- package/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
- package/lib/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -2
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -2
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +8 -5
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +9 -2
- package/lib/components/ComparisonTable/HeaderCell.js +1 -2
- package/lib/components/ComparisonTable/HeaderCell.js.map +1 -1
- package/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
- package/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js +1 -2
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Footer/MediaButton.js +1 -3
- package/lib/components/Footer/MediaButton.js.map +1 -1
- package/lib/components/Header/DropdownMenu.js +2 -2
- package/lib/components/Header/DropdownMenu.js.map +1 -1
- package/lib/components/Header/Header.js +2 -2
- package/lib/components/Header/Header.js.map +1 -1
- package/lib/components/Header/HeaderBurger.js +2 -2
- package/lib/components/Header/HeaderBurger.js.map +1 -1
- package/lib/components/Header/HeaderChatBotButton.js +1 -1
- package/lib/components/Header/HeaderChatBotButton.js.map +1 -1
- package/lib/components/Header/HeaderSecondaryMenu.js +1 -3
- package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/lib/components/Header/HeaderSecondaryMenuButton.d.ts +2 -0
- package/lib/components/Header/HeaderSecondaryMenuButton.js +6 -2
- package/lib/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
- package/lib/components/Header/HeaderSubMenu.d.ts +3 -0
- package/lib/components/Header/HeaderSubMenu.js +6 -2
- package/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/lib/components/Header/HeaderSubMenuItem.js +2 -2
- package/lib/components/Header/HeaderSubMenuItem.js.map +1 -1
- package/lib/components/Header/HeaderTop.js +1 -1
- package/lib/components/Header/HeaderTop.js.map +1 -1
- package/lib/components/Header/InternetBankButton.d.ts +7 -0
- package/lib/components/Header/InternetBankButton.js +10 -0
- package/lib/components/Header/InternetBankButton.js.map +1 -0
- package/lib/components/HorizontalLayout/HorizontalLayout.js +1 -1
- package/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.fixture.mobile.d.ts +1 -3
- package/lib/components/LinkDocs/LinkDocs.js +5 -4
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.js +3 -3
- package/lib/components/LinkDocs/LinkDocs.mobile.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocsContent.d.ts +0 -4
- package/lib/components/LinkDocs/LinkDocsListItem.d.ts +6 -1
- package/lib/components/LinkDocs/LinkDocsListItem.js +19 -3
- package/lib/components/LinkDocs/LinkDocsListItem.js.map +1 -1
- package/lib/components/OfficeMap/OfficeMap.js +1 -1
- package/lib/components/OfficeMap/OfficeMap.js.map +1 -1
- package/lib/components/OfficeMap/renderFunctions.js +1 -1
- package/lib/components/OfficeMap/renderFunctions.js.map +1 -1
- package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -2
- package/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.js +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +1 -1
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +3 -4
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/lib/components/RollupItem/RollupItem.js +2 -3
- package/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/lib/components/RollupItem/RollupItem.mobile.js +1 -2
- package/lib/components/RollupItem/RollupItem.mobile.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.d.ts +1 -1
- package/lib/components/StepsBlock/StepsBlock.js +5 -5
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +2 -2
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/StepsBlock/checkCanRenderIcon.d.ts +3 -1
- package/lib/components/StepsBlock/checkCanRenderIcon.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableRow.js +1 -2
- package/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/lib/components/VerticalLayout/VerticalLayout.js +1 -1
- package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/lib/content-page-repository/transformImg.js +11 -3
- package/lib/content-page-repository/transformImg.js.map +1 -1
- package/lib/services/sitemap/SitemapData.d.ts +1 -0
- package/lib/ui-kit/BenefitItem/BenefitItem.js +1 -3
- package/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/lib/ui-kit/Button/ArrowButton.js +1 -1
- package/lib/ui-kit/Button/ArrowButton.js.map +1 -1
- package/lib/ui-kit/Button/ButtonInner.js +4 -3
- package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/lib/ui-kit/Button/ButtonProps.d.ts +0 -2
- package/lib/ui-kit/Button/renderButtonsSection.js +3 -2
- package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/lib/ui-kit/Foldable/DefaultFoldButton.js +1 -1
- package/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/lib/ui-kit/Icon/Icon.js +2 -2
- package/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/lib/ui-kit/Icon/IconProps.d.ts +0 -2
- package/lib/ui-kit/Img/ImgInner.js +1 -1
- package/lib/ui-kit/Img/ImgInner.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableButton.js +1 -1
- package/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableHeader.js +1 -1
- package/lib/ui-kit/InnerTable/InnerTableHeader.js.map +1 -1
- package/lib/ui-kit/LinkButton/LinkButton.js +2 -2
- package/lib/ui-kit/LinkButton/LinkButton.js.map +1 -1
- package/lib/ui-kit/Logo/renderImage.js +2 -2
- package/lib/ui-kit/Logo/renderImage.js.map +1 -1
- package/lib/ui-kit/YandexMap/renderSearchField.d.ts +1 -1
- package/lib/ui-kit/YandexMap/renderSearchField.js +1 -1
- package/lib/ui-kit/YandexMap/renderSearchField.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +26 -43
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/Calculator/constants.d.ts +2 -2
- package/mobile/bundle/components/Calculator/rangeHelpers.d.ts +3 -0
- package/mobile/bundle/components/Calculator/useBusinessDepositCalculatorParams.d.ts +1 -1
- package/mobile/bundle/components/Calculator/useCreditCalculatorParams.d.ts +10 -3
- package/mobile/bundle/components/Calculator/useDepositCalculatorParams.d.ts +1 -1
- package/mobile/bundle/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +9 -2
- package/mobile/bundle/components/Header/HeaderSecondaryMenuButton.d.ts +2 -0
- package/mobile/bundle/components/Header/HeaderSubMenu.d.ts +3 -0
- package/mobile/bundle/components/Header/InternetBankButton.d.ts +7 -0
- package/mobile/bundle/components/LinkDocs/LinkDocsContent.d.ts +0 -4
- package/mobile/bundle/components/LinkDocs/LinkDocsListItem.d.ts +6 -1
- package/mobile/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +1 -1
- package/mobile/bundle/components/StepsBlock/checkCanRenderIcon.d.ts +3 -1
- package/mobile/bundle/services/sitemap/SitemapData.d.ts +1 -0
- package/mobile/bundle/ui-kit/Button/ButtonProps.d.ts +0 -2
- package/mobile/bundle/ui-kit/Icon/IconProps.d.ts +0 -2
- package/mobile/bundle/ui-kit/YandexMap/renderSearchField.d.ts +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BusinessBlock/BusinessCard.js +2 -2
- package/mobile/dist/components/BusinessBlock/BusinessCard.js.map +1 -1
- package/mobile/dist/components/Calculator/Calculator.js +1 -1
- package/mobile/dist/components/Calculator/Calculator.js.map +1 -1
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js +5 -0
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/UnknownRate.js +2 -2
- package/mobile/dist/components/Calculator/UnknownRate.js.map +1 -1
- package/mobile/dist/components/Calculator/constants.d.ts +2 -2
- package/mobile/dist/components/Calculator/constants.js.map +1 -1
- package/mobile/dist/components/Calculator/rangeHelpers.d.ts +3 -0
- package/mobile/dist/components/Calculator/rangeHelpers.js +10 -3
- package/mobile/dist/components/Calculator/rangeHelpers.js.map +1 -1
- package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.d.ts +1 -1
- package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.js +2 -2
- package/mobile/dist/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
- package/mobile/dist/components/Calculator/useCreditCalculatorParams.d.ts +10 -3
- package/mobile/dist/components/Calculator/useCreditCalculatorParams.js +39 -33
- package/mobile/dist/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/mobile/dist/components/Calculator/useDepositCalculatorParams.d.ts +1 -1
- package/mobile/dist/components/Calculator/useDepositCalculatorParams.js +4 -4
- package/mobile/dist/components/Calculator/useDepositCalculatorParams.js.map +1 -1
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js +1 -2
- package/mobile/dist/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -2
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -2
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +8 -5
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +9 -2
- package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js +1 -1
- package/mobile/dist/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/mobile/dist/components/Footer/Footer.js +1 -2
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Footer/MediaButton.js +1 -3
- package/mobile/dist/components/Footer/MediaButton.js.map +1 -1
- package/mobile/dist/components/Header/DropdownMenu.js +2 -2
- package/mobile/dist/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/dist/components/Header/HeaderBurger.js +2 -2
- package/mobile/dist/components/Header/HeaderBurger.js.map +1 -1
- package/mobile/dist/components/Header/HeaderChatBotButton.js +1 -1
- package/mobile/dist/components/Header/HeaderChatBotButton.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js +1 -3
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenuButton.d.ts +2 -0
- package/mobile/dist/components/Header/HeaderSecondaryMenuButton.js +6 -2
- package/mobile/dist/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSubMenu.d.ts +3 -0
- package/mobile/dist/components/Header/HeaderSubMenu.js +6 -2
- package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSubMenuItem.js +2 -2
- package/mobile/dist/components/Header/HeaderSubMenuItem.js.map +1 -1
- package/mobile/dist/components/Header/HeaderTop.js +1 -1
- package/mobile/dist/components/Header/HeaderTop.js.map +1 -1
- package/mobile/dist/components/Header/InternetBankButton.d.ts +7 -0
- package/mobile/dist/components/Header/InternetBankButton.js +12 -0
- package/mobile/dist/components/Header/InternetBankButton.js.map +1 -0
- package/mobile/dist/components/HorizontalLayout/HorizontalLayout.js +1 -1
- package/mobile/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.js +3 -3
- package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocsContent.d.ts +0 -4
- package/mobile/dist/components/LinkDocs/LinkDocsListItem.d.ts +6 -1
- package/mobile/dist/components/LinkDocs/LinkDocsListItem.js +18 -2
- package/mobile/dist/components/LinkDocs/LinkDocsListItem.js.map +1 -1
- package/mobile/dist/components/OfficeMap/OfficeMap.js +1 -1
- package/mobile/dist/components/OfficeMap/OfficeMap.js.map +1 -1
- package/mobile/dist/components/OfficeMap/renderFunctions.js +1 -1
- package/mobile/dist/components/OfficeMap/renderFunctions.js.map +1 -1
- package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -2
- package/mobile/dist/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js +1 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +1 -1
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +3 -4
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/mobile/dist/components/RollupItem/RollupItem.js +1 -2
- package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js +2 -2
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/StepsBlock/checkCanRenderIcon.d.ts +3 -1
- package/mobile/dist/components/StepsBlock/checkCanRenderIcon.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js +1 -2
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js +1 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/dist/content-page-repository/transformImg.js +11 -3
- package/mobile/dist/content-page-repository/transformImg.js.map +1 -1
- package/mobile/dist/services/sitemap/SitemapData.d.ts +1 -0
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +1 -3
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ArrowButton.js +1 -1
- package/mobile/dist/ui-kit/Button/ArrowButton.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js +4 -3
- package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonProps.d.ts +0 -2
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js +3 -2
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js +1 -1
- package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/mobile/dist/ui-kit/Icon/Icon.js +2 -2
- package/mobile/dist/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/dist/ui-kit/Icon/IconProps.d.ts +0 -2
- package/mobile/dist/ui-kit/Img/ImgInner.js +1 -1
- package/mobile/dist/ui-kit/Img/ImgInner.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableHeader.js +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableHeader.js.map +1 -1
- package/mobile/dist/ui-kit/LinkButton/LinkButton.js +2 -2
- package/mobile/dist/ui-kit/LinkButton/LinkButton.js.map +1 -1
- package/mobile/dist/ui-kit/Logo/renderImage.js +2 -2
- package/mobile/dist/ui-kit/Logo/renderImage.js.map +1 -1
- package/mobile/dist/ui-kit/YandexMap/renderSearchField.d.ts +1 -1
- package/mobile/dist/ui-kit/YandexMap/renderSearchField.js +1 -1
- package/mobile/dist/ui-kit/YandexMap/renderSearchField.js.map +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BusinessBlock/BusinessCard.js +2 -2
- package/mobile/lib/components/BusinessBlock/BusinessCard.js.map +1 -1
- package/mobile/lib/components/Calculator/Calculator.js +1 -1
- package/mobile/lib/components/Calculator/Calculator.js.map +1 -1
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js +6 -1
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/UnknownRate.js +2 -2
- package/mobile/lib/components/Calculator/UnknownRate.js.map +1 -1
- package/mobile/lib/components/Calculator/constants.d.ts +2 -2
- package/mobile/lib/components/Calculator/constants.js.map +1 -1
- package/mobile/lib/components/Calculator/rangeHelpers.d.ts +3 -0
- package/mobile/lib/components/Calculator/rangeHelpers.js +8 -2
- package/mobile/lib/components/Calculator/rangeHelpers.js.map +1 -1
- package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.d.ts +1 -1
- package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.js +2 -2
- package/mobile/lib/components/Calculator/useBusinessDepositCalculatorParams.js.map +1 -1
- package/mobile/lib/components/Calculator/useCreditCalculatorParams.d.ts +10 -3
- package/mobile/lib/components/Calculator/useCreditCalculatorParams.js +40 -34
- package/mobile/lib/components/Calculator/useCreditCalculatorParams.js.map +1 -1
- package/mobile/lib/components/Calculator/useDepositCalculatorParams.d.ts +1 -1
- package/mobile/lib/components/Calculator/useDepositCalculatorParams.js +4 -4
- package/mobile/lib/components/Calculator/useDepositCalculatorParams.js.map +1 -1
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js +1 -2
- package/mobile/lib/components/CarouselEventCard/CarouselEventCard.js.map +1 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +1 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js +1 -2
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -2
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +8 -5
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCardContent.d.ts +9 -2
- package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js +1 -1
- package/mobile/lib/components/ExchangeRateTile/CurrentLocation.js.map +1 -1
- package/mobile/lib/components/Footer/Footer.js +1 -2
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Footer/MediaButton.js +1 -3
- package/mobile/lib/components/Footer/MediaButton.js.map +1 -1
- package/mobile/lib/components/Header/DropdownMenu.js +2 -2
- package/mobile/lib/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/lib/components/Header/HeaderBurger.js +2 -2
- package/mobile/lib/components/Header/HeaderBurger.js.map +1 -1
- package/mobile/lib/components/Header/HeaderChatBotButton.js +1 -1
- package/mobile/lib/components/Header/HeaderChatBotButton.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js +1 -3
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenuButton.d.ts +2 -0
- package/mobile/lib/components/Header/HeaderSecondaryMenuButton.js +6 -2
- package/mobile/lib/components/Header/HeaderSecondaryMenuButton.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSubMenu.d.ts +3 -0
- package/mobile/lib/components/Header/HeaderSubMenu.js +6 -2
- package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSubMenuItem.js +2 -2
- package/mobile/lib/components/Header/HeaderSubMenuItem.js.map +1 -1
- package/mobile/lib/components/Header/HeaderTop.js +1 -1
- package/mobile/lib/components/Header/HeaderTop.js.map +1 -1
- package/mobile/lib/components/Header/InternetBankButton.d.ts +7 -0
- package/mobile/lib/components/Header/InternetBankButton.js +10 -0
- package/mobile/lib/components/Header/InternetBankButton.js.map +1 -0
- package/mobile/lib/components/HorizontalLayout/HorizontalLayout.js +1 -1
- package/mobile/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.js +3 -3
- package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocsContent.d.ts +0 -4
- package/mobile/lib/components/LinkDocs/LinkDocsListItem.d.ts +6 -1
- package/mobile/lib/components/LinkDocs/LinkDocsListItem.js +19 -3
- package/mobile/lib/components/LinkDocs/LinkDocsListItem.js.map +1 -1
- package/mobile/lib/components/OfficeMap/OfficeMap.js +1 -1
- package/mobile/lib/components/OfficeMap/OfficeMap.js.map +1 -1
- package/mobile/lib/components/OfficeMap/renderFunctions.js +1 -1
- package/mobile/lib/components/OfficeMap/renderFunctions.js.map +1 -1
- package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js +1 -2
- package/mobile/lib/components/OfficeServicesBlock/OfficeServicesBlock.js.map +1 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js +1 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js.map +1 -1
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +1 -1
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +3 -4
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/mobile/lib/components/RollupItem/RollupItem.js +1 -2
- package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js +2 -2
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/StepsBlock/checkCanRenderIcon.d.ts +3 -1
- package/mobile/lib/components/StepsBlock/checkCanRenderIcon.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js +1 -2
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js.map +1 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js +1 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/lib/content-page-repository/transformImg.js +11 -3
- package/mobile/lib/content-page-repository/transformImg.js.map +1 -1
- package/mobile/lib/services/sitemap/SitemapData.d.ts +1 -0
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +1 -3
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ArrowButton.js +1 -1
- package/mobile/lib/ui-kit/Button/ArrowButton.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js +4 -3
- package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonProps.d.ts +0 -2
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js +3 -2
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js +1 -1
- package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/mobile/lib/ui-kit/Icon/Icon.js +2 -2
- package/mobile/lib/ui-kit/Icon/Icon.js.map +1 -1
- package/mobile/lib/ui-kit/Icon/IconProps.d.ts +0 -2
- package/mobile/lib/ui-kit/Img/ImgInner.js +1 -1
- package/mobile/lib/ui-kit/Img/ImgInner.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableHeader.js +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableHeader.js.map +1 -1
- package/mobile/lib/ui-kit/LinkButton/LinkButton.js +2 -2
- package/mobile/lib/ui-kit/LinkButton/LinkButton.js.map +1 -1
- package/mobile/lib/ui-kit/Logo/renderImage.js +2 -2
- package/mobile/lib/ui-kit/Logo/renderImage.js.map +1 -1
- package/mobile/lib/ui-kit/YandexMap/renderSearchField.d.ts +1 -1
- package/mobile/lib/ui-kit/YandexMap/renderSearchField.js +1 -1
- package/mobile/lib/ui-kit/YandexMap/renderSearchField.js.map +1 -1
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +0 -1
- package/mobile/src/components/BusinessBlock/BusinessCard.tsx +2 -2
- package/mobile/src/components/Calculator/Calculator.tsx +0 -1
- package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +7 -1
- package/mobile/src/components/Calculator/UnknownRate.tsx +2 -2
- package/mobile/src/components/Calculator/constants.ts +2 -2
- package/mobile/src/components/Calculator/rangeHelpers.ts +18 -2
- package/mobile/src/components/Calculator/useBusinessDepositCalculatorParams.ts +3 -3
- package/mobile/src/components/Calculator/useCreditCalculatorParams.ts +83 -46
- package/mobile/src/components/Calculator/useDepositCalculatorParams.ts +5 -5
- package/mobile/src/components/CarouselEventCard/CarouselEventCard.tsx +1 -2
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +1 -1
- package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +1 -2
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -2
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.example.json +10 -2
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +24 -16
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.ui.json +18 -1
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCardContent.ts +10 -2
- package/mobile/src/components/ExchangeRateTile/CurrentLocation.tsx +1 -1
- package/mobile/src/components/Footer/Footer.tsx +1 -4
- package/mobile/src/components/Footer/MediaButton.tsx +2 -6
- package/mobile/src/components/Header/DropdownMenu.tsx +6 -3
- package/mobile/src/components/Header/HeaderBurger.tsx +2 -5
- package/mobile/src/components/Header/HeaderChatBotButton.tsx +2 -0
- package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +0 -5
- package/mobile/src/components/Header/HeaderSecondaryMenuButton.tsx +22 -5
- package/mobile/src/components/Header/HeaderSubMenu.tsx +62 -43
- package/mobile/src/components/Header/HeaderSubMenuItem.tsx +2 -2
- package/mobile/src/components/Header/HeaderTop.tsx +0 -1
- package/mobile/src/components/Header/InternetBankButton.tsx +28 -0
- package/mobile/src/components/HorizontalLayout/HorizontalLayout.tsx +7 -1
- package/mobile/src/components/LinkDocs/LinkDocs.example.json +0 -2
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +26 -12
- package/mobile/src/components/LinkDocs/LinkDocsContent.ts +0 -5
- package/mobile/src/components/LinkDocs/LinkDocsListItem.tsx +48 -11
- package/mobile/src/components/OfficeMap/OfficeMap.tsx +1 -1
- package/mobile/src/components/OfficeMap/renderFunctions.tsx +1 -1
- package/mobile/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +1 -8
- package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +0 -1
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +6 -7
- package/mobile/src/components/RollupItem/RollupItem.tsx +2 -15
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +1 -1
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +3 -3
- package/mobile/src/components/StepsBlock/checkCanRenderIcon.ts +2 -1
- package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +1 -8
- package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +1 -0
- package/mobile/src/content-page-repository/transformImg.ts +14 -4
- package/mobile/src/services/sitemap/SitemapData.ts +1 -0
- package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +4 -3
- package/mobile/src/ui-kit/Button/ArrowButton.tsx +0 -1
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +4 -3
- package/mobile/src/ui-kit/Button/ButtonProps.ts +0 -2
- package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +2 -2
- package/mobile/src/ui-kit/Foldable/DefaultFoldButton.tsx +0 -1
- package/mobile/src/ui-kit/Icon/Icon.tsx +2 -2
- package/mobile/src/ui-kit/Icon/IconProps.ts +0 -2
- package/mobile/src/ui-kit/Img/ImgInner.tsx +1 -1
- package/mobile/src/ui-kit/InnerTable/InnerTableButton.tsx +0 -1
- package/mobile/src/ui-kit/InnerTable/InnerTableHeader.tsx +0 -1
- package/mobile/src/ui-kit/LinkButton/LinkButton.tsx +1 -2
- package/mobile/src/ui-kit/Logo/renderImage.tsx +0 -2
- package/mobile/src/ui-kit/YandexMap/renderSearchField.tsx +1 -2
- package/package.json +1 -1
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +0 -1
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.tsx +8 -8
- package/src/components/BusinessBlock/BusinessCard.tsx +2 -2
- package/src/components/Calculator/Calculator.tsx +0 -1
- package/src/components/Calculator/CreditCalculatorForm.tsx +7 -1
- package/src/components/Calculator/UnknownRate.tsx +2 -2
- package/src/components/Calculator/constants.ts +2 -2
- package/src/components/Calculator/rangeHelpers.ts +18 -2
- package/src/components/Calculator/useBusinessDepositCalculatorParams.ts +3 -3
- package/src/components/Calculator/useCreditCalculatorParams.ts +83 -46
- package/src/components/Calculator/useDepositCalculatorParams.ts +5 -5
- package/src/components/CarouselEventCard/CarouselEventCard.tsx +1 -2
- package/src/components/CarouselProductCard/CarouselProductCard.tsx +1 -1
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +1 -2
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -2
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.example.json +10 -2
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.fixture.tsx +9 -1
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +24 -16
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.ui.json +18 -1
- package/src/components/CarouselTariffsCard/CarouselTariffsCardContent.ts +10 -2
- package/src/components/ComparisonTable/HeaderCell.tsx +1 -3
- package/src/components/ExchangeRateTile/CurrentLocation.tsx +1 -1
- package/src/components/Footer/Footer.mobile.tsx +1 -4
- package/src/components/Footer/MediaButton.tsx +2 -6
- package/src/components/Header/DropdownMenu.tsx +6 -3
- package/src/components/Header/Header.tsx +6 -2
- package/src/components/Header/HeaderBurger.tsx +2 -5
- package/src/components/Header/HeaderChatBotButton.tsx +2 -0
- package/src/components/Header/HeaderSecondaryMenu.tsx +0 -5
- package/src/components/Header/HeaderSecondaryMenuButton.tsx +22 -5
- package/src/components/Header/HeaderSubMenu.tsx +62 -43
- package/src/components/Header/HeaderSubMenuItem.tsx +2 -2
- package/src/components/Header/HeaderTop.tsx +0 -1
- package/src/components/Header/InternetBankButton.tsx +28 -0
- package/src/components/HorizontalLayout/HorizontalLayout.tsx +7 -1
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +4 -3
- package/src/components/LinkDocs/LinkDocs.example.json +0 -2
- package/src/components/LinkDocs/LinkDocs.fixture.mobile.tsx +1 -11
- package/src/components/LinkDocs/LinkDocs.mobile.tsx +26 -12
- package/src/components/LinkDocs/LinkDocs.tsx +24 -9
- package/src/components/LinkDocs/LinkDocsContent.ts +0 -5
- package/src/components/LinkDocs/LinkDocsListItem.tsx +48 -13
- package/src/components/OfficeMap/OfficeMap.tsx +1 -1
- package/src/components/OfficeMap/renderFunctions.tsx +1 -1
- package/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +1 -8
- package/src/components/ProductBlock/renderBackwardButton.tsx +0 -1
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +6 -7
- package/src/components/RollupItem/RollupItem.mobile.tsx +2 -15
- package/src/components/RollupItem/RollupItem.tsx +2 -3
- package/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +1 -1
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +3 -3
- package/src/components/StepsBlock/StepsBlock.tsx +13 -8
- package/src/components/StepsBlock/checkCanRenderIcon.ts +2 -1
- package/src/components/TariffsTable/TariffsTableRow.tsx +1 -8
- package/src/components/VerticalLayout/VerticalLayout.tsx +1 -0
- package/src/content-page-repository/transformImg.ts +14 -4
- package/src/services/sitemap/SitemapData.ts +1 -0
- package/src/ui-kit/BenefitItem/BenefitItem.tsx +4 -3
- package/src/ui-kit/Button/ArrowButton.tsx +0 -1
- package/src/ui-kit/Button/Button.fixture.tsx +5 -5
- package/src/ui-kit/Button/ButtonInner.tsx +4 -3
- package/src/ui-kit/Button/ButtonProps.ts +0 -2
- package/src/ui-kit/Button/renderButtonsSection.tsx +2 -2
- package/src/ui-kit/Foldable/DefaultFoldButton.tsx +0 -1
- package/src/ui-kit/Icon/Icon.fixture.tsx +3 -3
- package/src/ui-kit/Icon/Icon.tsx +2 -2
- package/src/ui-kit/Icon/IconProps.ts +0 -2
- package/src/ui-kit/Img/ImgInner.tsx +1 -1
- package/src/ui-kit/InnerTable/InnerTableButton.tsx +0 -1
- package/src/ui-kit/InnerTable/InnerTableHeader.tsx +0 -1
- package/src/ui-kit/LinkButton/LinkButton.tsx +1 -2
- package/src/ui-kit/Logo/renderImage.tsx +0 -2
- package/src/ui-kit/YandexMap/renderSearchField.tsx +1 -2
- package/bundle/components/LinkDocs/LinkDocsHorizontalList.d.ts +0 -2
- package/bundle/components/LinkDocs/LinkDocsList.d.ts +0 -9
- package/bundle/components/LinkDocs/LinkDocsListItem.mobile.d.ts +0 -2
- package/bundle/components/LinkDocs/LinkDocsListItemBase.d.ts +0 -13
- package/bundle/components/LinkDocs/LinkDocsVerticalList.d.ts +0 -8
- package/bundle/utils/getIconWithVersion.d.ts +0 -3
- package/dist/components/LinkDocs/LinkDocsHorizontalList.d.ts +0 -2
- package/dist/components/LinkDocs/LinkDocsHorizontalList.js +0 -10
- package/dist/components/LinkDocs/LinkDocsHorizontalList.js.map +0 -1
- package/dist/components/LinkDocs/LinkDocsList.d.ts +0 -9
- package/dist/components/LinkDocs/LinkDocsList.js +0 -9
- package/dist/components/LinkDocs/LinkDocsList.js.map +0 -1
- package/dist/components/LinkDocs/LinkDocsListItem.mobile.d.ts +0 -2
- package/dist/components/LinkDocs/LinkDocsListItem.mobile.js +0 -7
- package/dist/components/LinkDocs/LinkDocsListItem.mobile.js.map +0 -1
- package/dist/components/LinkDocs/LinkDocsListItemBase.d.ts +0 -13
- package/dist/components/LinkDocs/LinkDocsListItemBase.js +0 -24
- package/dist/components/LinkDocs/LinkDocsListItemBase.js.map +0 -1
- package/dist/components/LinkDocs/LinkDocsVerticalList.d.ts +0 -8
- package/dist/components/LinkDocs/LinkDocsVerticalList.js +0 -11
- package/dist/components/LinkDocs/LinkDocsVerticalList.js.map +0 -1
- package/dist/utils/getIconWithVersion.d.ts +0 -3
- package/dist/utils/getIconWithVersion.js +0 -8
- package/dist/utils/getIconWithVersion.js.map +0 -1
- package/lib/components/LinkDocs/LinkDocsHorizontalList.d.ts +0 -2
- package/lib/components/LinkDocs/LinkDocsHorizontalList.js +0 -8
- package/lib/components/LinkDocs/LinkDocsHorizontalList.js.map +0 -1
- package/lib/components/LinkDocs/LinkDocsList.d.ts +0 -9
- package/lib/components/LinkDocs/LinkDocsList.js +0 -7
- package/lib/components/LinkDocs/LinkDocsList.js.map +0 -1
- package/lib/components/LinkDocs/LinkDocsListItem.mobile.d.ts +0 -2
- package/lib/components/LinkDocs/LinkDocsListItem.mobile.js +0 -5
- package/lib/components/LinkDocs/LinkDocsListItem.mobile.js.map +0 -1
- package/lib/components/LinkDocs/LinkDocsListItemBase.d.ts +0 -13
- package/lib/components/LinkDocs/LinkDocsListItemBase.js +0 -22
- package/lib/components/LinkDocs/LinkDocsListItemBase.js.map +0 -1
- package/lib/components/LinkDocs/LinkDocsVerticalList.d.ts +0 -8
- package/lib/components/LinkDocs/LinkDocsVerticalList.js +0 -9
- package/lib/components/LinkDocs/LinkDocsVerticalList.js.map +0 -1
- package/lib/utils/getIconWithVersion.d.ts +0 -3
- package/lib/utils/getIconWithVersion.js +0 -5
- package/lib/utils/getIconWithVersion.js.map +0 -1
- package/mobile/bundle/components/LinkDocs/LinkDocsHorizontalList.d.ts +0 -2
- package/mobile/bundle/components/LinkDocs/LinkDocsList.d.ts +0 -9
- package/mobile/bundle/components/LinkDocs/LinkDocsListItemBase.d.ts +0 -13
- package/mobile/bundle/components/LinkDocs/LinkDocsVerticalList.d.ts +0 -8
- package/mobile/bundle/utils/getIconWithVersion.d.ts +0 -3
- package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.d.ts +0 -2
- package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.js +0 -10
- package/mobile/dist/components/LinkDocs/LinkDocsHorizontalList.js.map +0 -1
- package/mobile/dist/components/LinkDocs/LinkDocsList.d.ts +0 -9
- package/mobile/dist/components/LinkDocs/LinkDocsList.js +0 -9
- package/mobile/dist/components/LinkDocs/LinkDocsList.js.map +0 -1
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.d.ts +0 -13
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js +0 -24
- package/mobile/dist/components/LinkDocs/LinkDocsListItemBase.js.map +0 -1
- package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.d.ts +0 -8
- package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.js +0 -11
- package/mobile/dist/components/LinkDocs/LinkDocsVerticalList.js.map +0 -1
- package/mobile/dist/utils/getIconWithVersion.d.ts +0 -3
- package/mobile/dist/utils/getIconWithVersion.js +0 -8
- package/mobile/dist/utils/getIconWithVersion.js.map +0 -1
- package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.d.ts +0 -2
- package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.js +0 -8
- package/mobile/lib/components/LinkDocs/LinkDocsHorizontalList.js.map +0 -1
- package/mobile/lib/components/LinkDocs/LinkDocsList.d.ts +0 -9
- package/mobile/lib/components/LinkDocs/LinkDocsList.js +0 -7
- package/mobile/lib/components/LinkDocs/LinkDocsList.js.map +0 -1
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.d.ts +0 -13
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js +0 -22
- package/mobile/lib/components/LinkDocs/LinkDocsListItemBase.js.map +0 -1
- package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.d.ts +0 -8
- package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.js +0 -9
- package/mobile/lib/components/LinkDocs/LinkDocsVerticalList.js.map +0 -1
- package/mobile/lib/utils/getIconWithVersion.d.ts +0 -3
- package/mobile/lib/utils/getIconWithVersion.js +0 -5
- package/mobile/lib/utils/getIconWithVersion.js.map +0 -1
- package/mobile/src/components/LinkDocs/LinkDocsHorizontalList.tsx +0 -21
- package/mobile/src/components/LinkDocs/LinkDocsList.tsx +0 -33
- package/mobile/src/components/LinkDocs/LinkDocsListItemBase.tsx +0 -63
- package/mobile/src/components/LinkDocs/LinkDocsVerticalList.tsx +0 -33
- package/mobile/src/utils/getIconWithVersion.ts +0 -7
- package/src/components/LinkDocs/LinkDocsHorizontalList.tsx +0 -21
- package/src/components/LinkDocs/LinkDocsList.tsx +0 -33
- package/src/components/LinkDocs/LinkDocsListItem.mobile.tsx +0 -12
- package/src/components/LinkDocs/LinkDocsListItemBase.tsx +0 -63
- package/src/components/LinkDocs/LinkDocsVerticalList.tsx +0 -33
- package/src/utils/getIconWithVersion.ts +0 -7
package/bundle/bundle.umd.js
CHANGED
|
@@ -559,16 +559,16 @@
|
|
|
559
559
|
|
|
560
560
|
const ButtonInner = JSX((props) => {
|
|
561
561
|
const { text, aboveText, appendLeft, appendRight, version = 'primary' } = props;
|
|
562
|
-
return (jsxs("div", { className: getButtonStyle(props), children: [appendLeft ? jsx("div", { className: iconStyleMap[version], children: appendLeft }) : null, isWithText(props) ? (jsxs("div", { children: [aboveText ? jsx("div", { className: "text-xs-light text-left", children: aboveText }) : null, jsx("div", { className: `text-left ${aboveText ? 'text-s -mt-0.5' : 'text-l'}`, children: text })] })) : null, appendRight ? jsx("div", { className: iconStyleMap[version], children: appendRight }) : null] }));
|
|
562
|
+
return (jsxs("div", { className: style(getButtonStyle(props), 'flex gap-2'), children: [appendLeft ? jsx("div", { className: iconStyleMap[version], children: appendLeft }) : null, isWithText(props) ? (jsxs("div", { children: [aboveText ? jsx("div", { className: "text-xs-light text-left", children: aboveText }) : null, jsx("div", { className: `text-left ${aboveText ? 'text-s -mt-0.5' : 'text-l'}`, children: text })] })) : null, appendRight ? jsx("div", { className: iconStyleMap[version], children: appendRight }) : null] }));
|
|
563
563
|
});
|
|
564
564
|
const getButtonStyle = (props) => {
|
|
565
565
|
const { version, aboveText, rounded } = props;
|
|
566
566
|
if (version === 'link') {
|
|
567
567
|
return '';
|
|
568
568
|
}
|
|
569
|
-
const withTextStyle =
|
|
569
|
+
const withTextStyle = `${aboveText ? 'py-2.5 px-7' : 'py-4 px-4'}`;
|
|
570
570
|
return [
|
|
571
|
-
'group/btn
|
|
571
|
+
'group/btn items-center justify-center',
|
|
572
572
|
isWithText(props) ? withTextStyle : 'h-12 w-12',
|
|
573
573
|
rounded ? 'rounded-full' : '',
|
|
574
574
|
].join(' ');
|
|
@@ -693,10 +693,10 @@
|
|
|
693
693
|
black: 'text-black',
|
|
694
694
|
white: 'text-black',
|
|
695
695
|
};
|
|
696
|
-
const Icon = JSX(({ className = '', imageClassName = '', name = '', alt = `Иконка ${name}`, title = alt, iconVersion = 'color',
|
|
696
|
+
const Icon = JSX(({ className = '', imageClassName = '', name = '', alt = `Иконка ${name}`, title = alt, iconVersion = 'color', ...imgProps }) => {
|
|
697
697
|
const router = useRouter();
|
|
698
698
|
const href = adjustHref(router)(joinPath(projectSettings.CDN, '/icons', `${name}.svg`));
|
|
699
|
-
if (
|
|
699
|
+
if (iconVersion !== 'normal') {
|
|
700
700
|
return (jsx(Background, { className: className, children: jsxs("svg", { className: style(getSvgSize(imgProps.width), svgUseStyleMap[iconVersion], iconVersion === 'white' ? 'invert' : '', imageClassName), ...imgProps, "aria-hidden": "true", children: [title ? jsx("title", { children: title }) : null, alt ? jsx("desc", { children: alt }) : null, jsx("use", { href: `${href}#icon`, xlinkHref: `${href}#icon` })] }) }));
|
|
701
701
|
}
|
|
702
702
|
if (!className.includes('h-')) {
|
|
@@ -1085,7 +1085,7 @@
|
|
|
1085
1085
|
if (!image?.src && !image?.icon) {
|
|
1086
1086
|
return null;
|
|
1087
1087
|
}
|
|
1088
|
-
return image.icon ? (jsx(Icon, { className: className, imageClassName: imageClassName, iconVersion: image?.iconVersion
|
|
1088
|
+
return image.icon ? (jsx(Icon, { className: className, imageClassName: imageClassName, iconVersion: image?.iconVersion, name: image.icon, ...iconProps })) : (jsx(ImgAsPicture, { className: className, imageClassName: imageClassName, image: image, isMobile: isMobile, pathPrefix: pathPrefix }));
|
|
1089
1089
|
});
|
|
1090
1090
|
|
|
1091
1091
|
const renderContacts = () => (jsxs("div", { className: "flex", children: [jsxs("a", { className: "flex items-center text-primary-text no-underline mr-6", href: `tel:8 (800) 200-78-70`, "aria-label": "8 (800) 200-78-70", children: [jsx(ImgInner, { image: { icon: 'PhoneIcon' }, width: "24", height: "24", className: "mr-3" }), jsx("span", { children: "8 (800) 200-78-70" })] }), jsxs("a", { className: "flex items-center text-primary-text no-underline", "aria-label": "ved@rshb.ru", href: `mailto:ved@rshb.ru`, children: [jsx(ImgInner, { image: { icon: 'MailIcon' }, width: "24", height: "24", className: "mr-3" }), jsx("span", { children: "ved@rshb.ru" })] })] }));
|
|
@@ -1193,7 +1193,7 @@
|
|
|
1193
1193
|
const BenefitsBlock = JSX(({ className = '', title, benefitList, ...rest }) => (jsxs(BlockWrapper, { className: `p-12 flex flex-col items-center ${className}`, ...rest, children: [title ? (jsx(Heading, { headingType: "h3", as: "h2", className: "max-w-[47rem] text-center", title: title })) : null, benefitList?.length ? (jsx("div", { className: "flex flex-wrap w-full justify-center gap-x-20 mt-8", children: benefitList.map(renderStep$1) })) : null] })));
|
|
1194
1194
|
const renderStep$1 = (benefit, i) => {
|
|
1195
1195
|
const description = benefit.description;
|
|
1196
|
-
return (jsxs("div", { className: "flex items-center basis-1/2 max-w-[500px] mb-14", children: [benefit?.icon?.icon ? (jsx(ImgInner, { className: "w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider text-primary-main group-data-secondary:bg-white/30 group-data-secondary:text-black", image: benefit.icon
|
|
1196
|
+
return (jsxs("div", { className: "flex items-center basis-1/2 max-w-[500px] mb-14", children: [benefit?.icon?.icon ? (jsx(ImgInner, { className: "w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider text-primary-main group-data-secondary:bg-white/30 group-data-secondary:text-black", image: benefit.icon })) : null, benefit?.icon?.src ? jsx(ImgInner, { image: benefit.icon }) : null, jsxs("div", { className: "ml-5 h-full", children: [benefit?.label ? jsx(Heading, { headingType: "h6", children: benefit.label }) : null, renderDescription$4(description)] })] }, String(i)));
|
|
1197
1197
|
};
|
|
1198
1198
|
const renderDescription$4 = (description) => {
|
|
1199
1199
|
const benefitType = description?.benefitType || null;
|
|
@@ -1210,11 +1210,12 @@
|
|
|
1210
1210
|
const renderButtonsSection = (buttons, { className = '', buttonClassName, isVertical } = {}) => buttons?.length && buttons.some((_) => _?.text || _?.icon?.icon) ? (jsx("div", { className: style('flex', isVertical ? 'flex-col gap-2' : 'gap-4', className), children: buttons.map(renderButton(buttonClassName)) })) : null;
|
|
1211
1211
|
const renderButton = (buttonClassName = '') => (button, index) => {
|
|
1212
1212
|
const { text, icon, iconRight, version, ...rest } = button || {};
|
|
1213
|
-
const
|
|
1213
|
+
const iconVersionDefault = version === 'secondary' ? 'color' : 'white';
|
|
1214
|
+
const iconVersion = icon?.iconVersion ? icon?.iconVersion : iconVersionDefault;
|
|
1214
1215
|
return text || icon?.icon ? (jsx(Button, { className: buttonClassName, appendLeft: renderButtonIcon({ ...icon, iconVersion }), appendRight: renderButtonIcon({ ...iconRight, iconVersion }), version: version, text: text, ...rest }, index ? String(index) : '')) : null;
|
|
1215
1216
|
};
|
|
1216
1217
|
const DEFAULT_ICON_W = 24;
|
|
1217
|
-
const renderButtonIcon = (icon) => icon?.icon || icon?.src ? (jsx(ImgInner, { image: icon, width: String(icon?.size?.width || DEFAULT_ICON_W), height: String(DEFAULT_ICON_W)
|
|
1218
|
+
const renderButtonIcon = (icon) => icon?.icon || icon?.src ? (jsx(ImgInner, { image: icon, width: String(icon?.size?.width || DEFAULT_ICON_W), height: String(DEFAULT_ICON_W) })) : null;
|
|
1218
1219
|
|
|
1219
1220
|
const headlineVersionStyles = {
|
|
1220
1221
|
XXL: {
|
|
@@ -1305,11 +1306,11 @@
|
|
|
1305
1306
|
|
|
1306
1307
|
const BusinessCard = JSX((props) => {
|
|
1307
1308
|
const { title, image, cardItems, button } = props;
|
|
1308
|
-
return (jsxs("div", { className: "border-gray border p-9 w-1/2", children: [image ? (jsxs("div", { className: "flex justify-center", children: [image?.src ? jsx(ImgInner, { className: "mb-5", image: image }) : null, image?.icon ? jsx(ImgInner, { image: image
|
|
1309
|
+
return (jsxs("div", { className: "border-gray border p-9 w-1/2", children: [image ? (jsxs("div", { className: "flex justify-center", children: [image?.src ? jsx(ImgInner, { className: "mb-5", image: image }) : null, image?.icon ? jsx(ImgInner, { image: image }) : null] })) : null, title ? jsx(Heading, { headingType: "h4", title: title, className: "mb-6" }) : null, cardItems?.length ? jsx("ul", { children: cardItems.map((_, i) => renderItem(_, String(i))) }) : null, renderButtonsSection([button], { buttonClassName: 'mt-6' })] }));
|
|
1309
1310
|
});
|
|
1310
1311
|
const renderItem = (item, key) => {
|
|
1311
1312
|
const { icon, text } = item;
|
|
1312
|
-
return (jsxs("li", { className: "flex items-center gap-3.5 mb-3 last:mb-0", children: [icon?.icon ? (jsx(ImgInner, { image: icon, className: "w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider"
|
|
1313
|
+
return (jsxs("li", { className: "flex items-center gap-3.5 mb-3 last:mb-0", children: [icon?.icon ? (jsx(ImgInner, { image: icon, className: "w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider" })) : null, icon?.src ? jsx(ImgInner, { image: icon }) : null, jsx("span", { className: "text-xl-light", children: text })] }, key));
|
|
1313
1314
|
};
|
|
1314
1315
|
|
|
1315
1316
|
const BusinessBlock = JSX(({ className = '', title, cards, ...rest }) => (jsxs(BlockWrapper, { className: `p-12 pb-9 ${className}`, ...rest, children: [jsx(Heading, { headingType: "h3", title: title, className: "text-center mb-8" }), jsx("div", { className: "flex gap-5", children: cards?.length ? cards.map((_, i) => jsx(BusinessCard, { ..._ }, String(i))) : null })] })));
|
|
@@ -1341,7 +1342,7 @@
|
|
|
1341
1342
|
|
|
1342
1343
|
const ArrowButton = JSX(({ className, disabled, ...rest }) => (jsx(Button, { rounded: true, className: `group/btn shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${disabled
|
|
1343
1344
|
? 'bg-secondary-light text-secondary-text'
|
|
1344
|
-
: 'bg-white text-primary-text hover:text-primary-main'} ${className || ''}`, disabled: disabled, ...rest, children: jsx(ImgInner, { className: "w-4 h-4 min-w-4 min-h-4 rounded-full box-border", image: { icon: 'ArrowLeftIcon', iconVersion: 'black' }, imageClassName: "group-hover/btn:text-primary-main", width: "16", height: "16"
|
|
1345
|
+
: 'bg-white text-primary-text hover:text-primary-main'} ${className || ''}`, disabled: disabled, ...rest, children: jsx(ImgInner, { className: "w-4 h-4 min-w-4 min-h-4 rounded-full box-border", image: { icon: 'ArrowLeftIcon', iconVersion: 'black' }, imageClassName: "group-hover/btn:text-primary-main", width: "16", height: "16" }) })));
|
|
1345
1346
|
const ScrollLeftButton = JSX((props) => (jsx(ArrowButton, { ...props, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043B\u0435\u0432\u043E", "data-block-control": "scroll-left" })));
|
|
1346
1347
|
const ScrollRightButton = JSX((props) => (jsx(ArrowButton, { ...props, className: `${props.className || ''} rotate-180`, ariaLabel: "\u041F\u0440\u043E\u043B\u0438\u0441\u0442\u0430\u0442\u044C \u0432\u043F\u0440\u0430\u0432\u043E", "data-block-control": "scroll-right" })));
|
|
1347
1348
|
|
|
@@ -1521,7 +1522,7 @@
|
|
|
1521
1522
|
return (jsxs("div", { children: [title ? (jsx("div", { className: "mb-3", children: jsx(Text, { color: "text-secondary-text", font: "font-light", children: title }) })) : null, jsx("div", { children: jsx(RadioButtonGroup, { orientation: orientation, items: depositTypeItems, checkedItem: isMonthlyInterestPayment ? EVERY_MONTH : AT_END_TERM, onChange: (text) => callback && callback(text === EVERY_MONTH) }) })] }));
|
|
1522
1523
|
}
|
|
1523
1524
|
|
|
1524
|
-
const UnknownRate = JSX(({ title = 'Ставка' }) => (jsxs("div", { children: [jsx(Text, { size: "text-l-light", color: "text-secondary-text", children: title }), jsx("div", { className: "mt-1 pt-1 pl-5 pb-1.5", children: jsx(
|
|
1525
|
+
const UnknownRate = JSX(({ title = 'Ставка' }) => (jsxs("div", { children: [jsx(Text, { size: "text-l-light", color: "text-secondary-text", children: title }), jsx("div", { className: "mt-1 pt-1 pl-5 pb-1.5", children: jsx(Icon, { name: "PercentIcon", width: "90", height: "85" }) }), jsx("div", { className: "w-[250px] mt-3.5", children: jsxs(Paragraph, { size: "text-xl-light", color: "text-primary-text", children: ["\u041F\u0440\u043E\u0446\u0435\u043D\u0442\u043D\u0430\u044F \u0441\u0442\u0430\u0432\u043A\u0430 \u0434\u043B\u044F \u0441\u0440\u043E\u043A\u0430 ", jsx("strong", { children: "1-30 \u0434\u043D\u0435\u0439" }), " \u0443\u0441\u0442\u0430\u043D\u0430\u0432\u043B\u0438\u0432\u0430\u0435\u0442\u0441\u044F \u043F\u0440\u0438 \u043E\u0431\u0440\u0430\u0449\u0435\u043D\u0438\u0438 \u0432 \u0411\u0430\u043D\u043A"] }) })] })));
|
|
1525
1526
|
|
|
1526
1527
|
const defaultDiscriminator = (_) => _;
|
|
1527
1528
|
const maxBy = (discriminator = defaultDiscriminator) => (list) => list.reduceRight((a, b) => (discriminator(a) > discriminator(b) ? a : b));
|
|
@@ -1546,9 +1547,15 @@
|
|
|
1546
1547
|
|
|
1547
1548
|
const minBy = (discriminator = defaultDiscriminator) => maxBy((_) => -discriminator(_));
|
|
1548
1549
|
|
|
1550
|
+
const getLimitRangeByKeys = ([minKey, maxKey], limitParams, rateRows = []) => limitParams && limitParams[minKey] && limitParams[maxKey]
|
|
1551
|
+
? {
|
|
1552
|
+
[minKey]: limitParams[minKey],
|
|
1553
|
+
[maxKey]: limitParams[maxKey],
|
|
1554
|
+
}
|
|
1555
|
+
: getRangeByKeys([minKey, maxKey], rateRows);
|
|
1549
1556
|
const getRangeByKeys = ([minKey, maxKey], rows = []) => ({
|
|
1550
|
-
[minKey]: rows.length ? minBy()(rows.map((row) => row[minKey])) : 0,
|
|
1551
|
-
[maxKey]: rows.length ? maxBy()(rows.map((row) => row[maxKey])) : 0,
|
|
1557
|
+
[minKey]: rows.length ? minBy()(rows.filter((row) => row[minKey]).map((row) => row[minKey])) : 0,
|
|
1558
|
+
[maxKey]: rows.length ? maxBy()(rows.filter((row) => row[maxKey]).map((row) => row[maxKey])) : 0,
|
|
1552
1559
|
});
|
|
1553
1560
|
const checkRangeByKeys = (value, [minKey, maxKey], sourceBookRow) => value >= sourceBookRow[minKey] && value <= sourceBookRow[maxKey];
|
|
1554
1561
|
|
|
@@ -1565,7 +1572,7 @@
|
|
|
1565
1572
|
isShowUnknownRate: true,
|
|
1566
1573
|
};
|
|
1567
1574
|
}
|
|
1568
|
-
const businessDepositCalculatorSourceBookParams = data?.
|
|
1575
|
+
const businessDepositCalculatorSourceBookParams = data?.rateRows?.find((_) => {
|
|
1569
1576
|
return (isMonthlyInterestPayment === _.isMonthlyInterestPayment &&
|
|
1570
1577
|
isSmallBusiness === _.isSmallBusiness &&
|
|
1571
1578
|
checkIsOperatingDeposit(isOperatingDeposit, _) &&
|
|
@@ -1575,7 +1582,7 @@
|
|
|
1575
1582
|
const { rate } = businessDepositCalculatorSourceBookParams;
|
|
1576
1583
|
const income = getDepositIncome$1(rate, userInputParams);
|
|
1577
1584
|
const finalSum = moneyValue + income;
|
|
1578
|
-
const sourceBookRows = data?.
|
|
1585
|
+
const sourceBookRows = data?.rateRows || [DEFAULT_BUSINESS_DEPOSIT_CALCULATOR_PARAMS];
|
|
1579
1586
|
return {
|
|
1580
1587
|
...businessDepositCalculatorSourceBookParams,
|
|
1581
1588
|
...getRangeByKeys(['minSum', 'maxSum'], sourceBookRows),
|
|
@@ -1720,48 +1727,53 @@
|
|
|
1720
1727
|
const useCreditCalculatorParams = (userInputParams, sourceBookDir, paramsViewSettings) => {
|
|
1721
1728
|
const { moneyValue, monthsValue } = userInputParams;
|
|
1722
1729
|
const data = useCalculatorParams(sourceBookDir || CREDIT_CALC_DEFAULT_DIR);
|
|
1723
|
-
const
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1730
|
+
const creditCalculatorSourceBookLimitParams = data?.limitRows?.find((row) => checkRowCommonParams({
|
|
1731
|
+
row,
|
|
1732
|
+
userInputParams,
|
|
1733
|
+
paramsViewSettings,
|
|
1734
|
+
}));
|
|
1735
|
+
const creditCalculatorSourceBookRateParams = data?.rateRows?.find((row) => checkRowCommonParams({
|
|
1728
1736
|
row,
|
|
1729
1737
|
userInputParams,
|
|
1730
|
-
|
|
1731
|
-
isExclude: isExcludeSalaryClient,
|
|
1738
|
+
paramsViewSettings,
|
|
1732
1739
|
}) &&
|
|
1733
|
-
checkRowByParam$1({
|
|
1734
|
-
row,
|
|
1735
|
-
userInputParams,
|
|
1736
|
-
paramKey: 'isStateEmployee',
|
|
1737
|
-
isExclude: isExcludeStateEmployee,
|
|
1738
|
-
}) &&
|
|
1739
|
-
checkRowByParam$1({
|
|
1740
|
-
row,
|
|
1741
|
-
userInputParams,
|
|
1742
|
-
paramKey: 'isPensionClient',
|
|
1743
|
-
isExclude: isExcludePensionClient,
|
|
1744
|
-
}) &&
|
|
1745
|
-
checkRowByParam$1({
|
|
1746
|
-
row,
|
|
1747
|
-
userInputParams,
|
|
1748
|
-
paramKey: 'isInsurance',
|
|
1749
|
-
isExclude: isExcludeInsurance,
|
|
1750
|
-
}) &&
|
|
1751
1740
|
checkRangeByKeys(moneyValue, ['minSum', 'maxSum'], row) &&
|
|
1752
1741
|
checkRangeByKeys(monthsValue, ['minMonths', 'maxMonths'], row)) || DEFAULT_CREDIT_CALCULATOR_PARAMS;
|
|
1753
|
-
const { rate } =
|
|
1742
|
+
const { rate } = creditCalculatorSourceBookRateParams;
|
|
1754
1743
|
const monthlyPayment = getMonthlyPayment(rate, userInputParams);
|
|
1755
|
-
const
|
|
1756
|
-
return {
|
|
1757
|
-
...
|
|
1758
|
-
...
|
|
1759
|
-
...
|
|
1744
|
+
const rateRows = data?.rateRows || [DEFAULT_CREDIT_CALCULATOR_PARAMS];
|
|
1745
|
+
return useMemo(() => ({
|
|
1746
|
+
...creditCalculatorSourceBookRateParams,
|
|
1747
|
+
...getLimitRangeByKeys(['minSum', 'maxSum'], creditCalculatorSourceBookLimitParams, rateRows),
|
|
1748
|
+
...getLimitRangeByKeys(['minMonths', 'maxMonths'], creditCalculatorSourceBookLimitParams, rateRows),
|
|
1760
1749
|
...userInputParams,
|
|
1761
1750
|
monthlyPayment,
|
|
1762
|
-
};
|
|
1751
|
+
}), [userInputParams]);
|
|
1752
|
+
};
|
|
1753
|
+
const checkRowCommonParams = (props) => checkRowParam({
|
|
1754
|
+
...props,
|
|
1755
|
+
fieldKey: 'isSalaryClient',
|
|
1756
|
+
viewSettingFieldKey: 'isShowSalaryClient',
|
|
1757
|
+
}) &&
|
|
1758
|
+
checkRowParam({
|
|
1759
|
+
...props,
|
|
1760
|
+
fieldKey: 'isStateEmployee',
|
|
1761
|
+
viewSettingFieldKey: 'isShowStateEmployee',
|
|
1762
|
+
}) &&
|
|
1763
|
+
checkRowParam({
|
|
1764
|
+
...props,
|
|
1765
|
+
fieldKey: 'isPensionClient',
|
|
1766
|
+
viewSettingFieldKey: 'isShowPensionClient',
|
|
1767
|
+
}) &&
|
|
1768
|
+
checkRowParam({
|
|
1769
|
+
...props,
|
|
1770
|
+
fieldKey: 'isInsurance',
|
|
1771
|
+
viewSettingFieldKey: 'isShowInsurance',
|
|
1772
|
+
});
|
|
1773
|
+
const checkRowParam = ({ row, userInputParams, paramsViewSettings, fieldKey, viewSettingFieldKey, }) => {
|
|
1774
|
+
const isExclude = paramsViewSettings ? !paramsViewSettings[viewSettingFieldKey] : false;
|
|
1775
|
+
return isExclude || userInputParams[fieldKey] === row[fieldKey];
|
|
1763
1776
|
};
|
|
1764
|
-
const checkRowByParam$1 = ({ row, userInputParams, paramKey, isExclude }) => isExclude || userInputParams[paramKey] === row[paramKey];
|
|
1765
1777
|
|
|
1766
1778
|
const CreditCalculatorForm = JSX(({ className = '', sourceBookDir, buttons, footnote, paramsViewSettings }) => {
|
|
1767
1779
|
const [isAnnuity, toggleIsAnnuity] = useState(false);
|
|
@@ -1787,6 +1799,10 @@
|
|
|
1787
1799
|
monthsValue,
|
|
1788
1800
|
};
|
|
1789
1801
|
const calculatorParams = useCreditCalculatorParams(userInputParams, sourceBookDir, paramsViewSettings);
|
|
1802
|
+
useEffect(() => {
|
|
1803
|
+
setMoneyValue(clamp(moneyValue, calculatorParams.minSum, calculatorParams.maxSum));
|
|
1804
|
+
setMonthsValue(clamp(monthsValue, calculatorParams.minMonths, calculatorParams.maxMonths));
|
|
1805
|
+
}, [calculatorParams]);
|
|
1790
1806
|
return (jsxs("section", { className: style('flex justify-between', className), children: [jsxs("div", { className: "w-[468px]", children: [renderWantedSumInput('Сумма кредита, ₽', { ...calculatorParams, step: 500 }, handleMoneyValue), renderMonthsInput('Срок кредита, месяцев', calculatorParams, handleMonthsValue), jsx("div", { className: "mt-7", children: renderCreditParamsForm({
|
|
1791
1807
|
...calculatorParams,
|
|
1792
1808
|
...paramsViewSettings,
|
|
@@ -1824,12 +1840,12 @@
|
|
|
1824
1840
|
const useDepositCalculatorParams = (userInputParams, sourceBookDir, paramsViewSettings) => {
|
|
1825
1841
|
const { moneyValue, monthsValue } = userInputParams;
|
|
1826
1842
|
const data = useCalculatorParams(sourceBookDir || DEPOSIT_CALC_DEFAULT_DIR);
|
|
1827
|
-
const defaultMonth = data?.
|
|
1828
|
-
? getMiddleMonth(data.
|
|
1843
|
+
const defaultMonth = data?.rateRows[0]
|
|
1844
|
+
? getMiddleMonth(data.rateRows[0].minMonths, data.rateRows[0].maxMonths)
|
|
1829
1845
|
: 1;
|
|
1830
1846
|
const isExcludeMonthlyInterestPayment = !paramsViewSettings?.isShowMonthlyInterestPayment;
|
|
1831
1847
|
const isExcludeRemoteRegistration = !paramsViewSettings?.isShowRemoteRegistration;
|
|
1832
|
-
const depositCalculatorSourceBookParams = data?.
|
|
1848
|
+
const depositCalculatorSourceBookParams = data?.rateRows?.find((row) => checkRowByParam({
|
|
1833
1849
|
row,
|
|
1834
1850
|
userInputParams,
|
|
1835
1851
|
paramKey: 'isMonthlyInterestPayment',
|
|
@@ -1846,7 +1862,7 @@
|
|
|
1846
1862
|
const { rate } = depositCalculatorSourceBookParams;
|
|
1847
1863
|
const income = getDepositIncome(rate, userInputParams);
|
|
1848
1864
|
const finalSum = moneyValue + income;
|
|
1849
|
-
const sourceBookRows = data?.
|
|
1865
|
+
const sourceBookRows = data?.rateRows || [DEFAULT_DEPOSIT_CALCULATOR_PARAMS];
|
|
1850
1866
|
return {
|
|
1851
1867
|
...depositCalculatorSourceBookParams,
|
|
1852
1868
|
...getRangeByKeys(['minSum', 'maxSum'], sourceBookRows),
|
|
@@ -1967,7 +1983,7 @@
|
|
|
1967
1983
|
${btnClassName}`, children: [jsx(ImgInner, { className: `h-6 w-6 min-w-6 min-h-6 mr-4 ${iconClassName}`, image: {
|
|
1968
1984
|
...tab?.icon,
|
|
1969
1985
|
iconVersion: iconVersion ?? activeIconStyle,
|
|
1970
|
-
}, width: "24", height: "24"
|
|
1986
|
+
}, width: "24", height: "24" }), jsxs("div", { className: "border-0", children: [jsx("div", { className: `${btnTitleClassName}`, children: tab?.title }), jsx("div", { className: `${btnDescClassName}`, children: tab.description })] })] }, String(i)));
|
|
1971
1987
|
}
|
|
1972
1988
|
function renderTabs({ activeIndex, tabsNav, slideIndexShift, onClick }) {
|
|
1973
1989
|
const CARD_SHIFT = 388;
|
|
@@ -2353,13 +2369,8 @@
|
|
|
2353
2369
|
return (jsx(Tag, { className: style('block', className), ...(href ? linkProps : {}), children: children }));
|
|
2354
2370
|
});
|
|
2355
2371
|
|
|
2356
|
-
const getIconWithVersion = (icon, version = 'primary') => ({
|
|
2357
|
-
...icon,
|
|
2358
|
-
iconVersion: icon?.iconVersion ?? (version === 'secondary' ? 'white' : 'color'),
|
|
2359
|
-
});
|
|
2360
|
-
|
|
2361
2372
|
const CarouselEventCard = JSX(({ className = '', icon, title, description, href, target, ...rest }) => {
|
|
2362
|
-
return (jsx(BlockWrapper, { className: style('w-[365px]', className), ...rest, children: jsxs(LinkWrapper, { className: "flex flex-col", href: href, target: target, children: [icon?.icon ? jsx(ImgInner, { image:
|
|
2373
|
+
return (jsx(BlockWrapper, { className: style('w-[365px]', className), ...rest, children: jsxs(LinkWrapper, { className: "flex flex-col", href: href, target: target, children: [icon?.icon ? jsx(ImgInner, { image: icon }) : null, icon?.src ? jsx(ImgInner, { image: icon }) : null, title ? (jsx(Heading, { headingType: "h6", as: "h4", className: "text-left pt-3 mb-2", title: title })) : null, description ? (jsx("div", { className: "mb-4", children: jsx(Text, { font: "font-light", size: "text-m", color: "text-secondary-text", children: description }) })) : null] }) }));
|
|
2363
2374
|
});
|
|
2364
2375
|
|
|
2365
2376
|
const BaseTile = JSX(({ className = '', title = '', buttons, image, children }) => (jsxs("div", { className: `font-sans flex flex-col grow h-full items-start ${className}`, children: [title, jsxs("div", { className: "flex grow w-full justify-between", children: [jsxs("div", { className: "flex flex-col justify-between w-full", children: [jsx("div", { className: "h-full", children: children }), buttons ? jsx("div", { className: "mt-auto pt-8", children: buttons }) : null] }), image] })] })));
|
|
@@ -2391,7 +2402,7 @@
|
|
|
2391
2402
|
const LinkButton = JSX(({ text, href = '', target = '', className = '' }) => {
|
|
2392
2403
|
const link = useLink();
|
|
2393
2404
|
const adjustedProps = link({ href, target });
|
|
2394
|
-
return text ? (jsxs("div", { className: `relative group/link cursor-pointer w-[328px] h-[82px] ${className}`, children: [jsxs("a", { className: LINK_CLASS_NAME, role: "link", ...adjustedProps, children: [jsx("div", { className: "p-0.5", children: text }), jsx("div", { className: "w-6 h-6", children: jsx(ImgInner, { className: "w-4 h-4 min-w-4 min-h-4 rounded-full box-border brightness-0 group-hover/link:brightness-100", image: { icon: 'ArrowRightIcon', iconVersion: 'black' }, imageClassName: "group-hover/link:text-primary-main", width: "24", height: "24"
|
|
2405
|
+
return text ? (jsxs("div", { className: `relative group/link cursor-pointer w-[328px] h-[82px] ${className}`, children: [jsxs("a", { className: LINK_CLASS_NAME, role: "link", ...adjustedProps, children: [jsx("div", { className: "p-0.5", children: text }), jsx("div", { className: "w-6 h-6", children: jsx(ImgInner, { className: "w-4 h-4 min-w-4 min-h-4 rounded-full box-border brightness-0 group-hover/link:brightness-100", image: { icon: 'ArrowRightIcon', iconVersion: 'black' }, imageClassName: "group-hover/link:text-primary-main", width: "24", height: "24" }) })] }), jsx("div", { className: `${LINK_BORDER_CLASS_NAME} mx-1.5 mt-1.5` }), jsx("div", { className: `${LINK_BORDER_CLASS_NAME} mt-3 mr-3` })] })) : null;
|
|
2395
2406
|
});
|
|
2396
2407
|
|
|
2397
2408
|
const MAX_LINKS_COUNT = 10;
|
|
@@ -2430,14 +2441,14 @@
|
|
|
2430
2441
|
isVertical: isFullWidth ? true : false,
|
|
2431
2442
|
})] }));
|
|
2432
2443
|
});
|
|
2433
|
-
const renderImage$3 = (image) => (jsxs("div", { className: "flex justify-center", children: [image?.src ? jsx(ImgInner, { className: "mb-5", image: image }) : null, image?.icon ? (jsx(ImgInner, { className: `w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full`, image: image
|
|
2444
|
+
const renderImage$3 = (image) => (jsxs("div", { className: "flex justify-center", children: [image?.src ? jsx(ImgInner, { className: "mb-5", image: image }) : null, image?.icon ? (jsx(ImgInner, { className: `w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full`, image: image })) : null] }));
|
|
2434
2445
|
const renderCardTitle = (headlineSmallVersion, title) => title ? (jsx("div", { children: jsx(Text, { size: HEADLINE_SMALL_VERSION[headlineSmallVersion], children: title }) })) : null;
|
|
2435
2446
|
const renderDescription$3 = (description, title) => description ? (jsx("div", { className: title ? 'mt-2' : '', children: jsx(Paragraph, { size: "text-l", children: description }) })) : null;
|
|
2436
2447
|
const renderAdditionalDescription$1 = (additionalDescription) => additionalDescription ? (jsx("div", { className: "mt-auto", children: jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text group-data-secondary:text-white/80", children: additionalDescription }) })) : null;
|
|
2437
2448
|
const renderItems = (items, isDotted, version = 'primary') => items?.length ? (jsx(List, { className: `max-w-[308px] mt-2 text-s ${version === 'primary' ? '!text-secondary-text' : ''}`, itemClassName: "text-left", items: items.filter((item) => item?.text).map((item) => item.text), isDotted: isDotted })) : null;
|
|
2438
2449
|
|
|
2439
2450
|
const CarouselProgramsCard = JSX(({ className = '', title, icon, list = [], href, target, ...rest }) => {
|
|
2440
|
-
return (jsx(BlockWrapper, { className: style('border border-gray', className), ...rest, children: jsxs(LinkWrapper, { className: "flex", href: href, target: target, children: [jsxs("div", { className: "w-[200px] min-w-[200px] self-center", children: [icon?.icon ? jsx(ImgInner, { image:
|
|
2451
|
+
return (jsx(BlockWrapper, { className: style('border border-gray', className), ...rest, children: jsxs(LinkWrapper, { className: "flex", href: href, target: target, children: [jsxs("div", { className: "w-[200px] min-w-[200px] self-center", children: [icon?.icon ? jsx(ImgInner, { image: icon }) : null, icon?.src ? jsx(ImgInner, { image: icon }) : null] }), jsxs("div", { className: "p-8 pl-3 w-full", children: [title ? jsx(Heading, { className: "mb-3.5", headingType: "h5", title: title }) : null, list.length ? (jsx("div", { className: "flex flex-col gap-3", children: list?.map(renderList$1) })) : null] })] }) }));
|
|
2441
2452
|
});
|
|
2442
2453
|
const renderList$1 = (_, i) => (jsxs("div", { className: "break-words", children: [_.title ? jsx("div", { className: "text-h6", children: _.title }) : null, _.description ? jsx("span", { className: "text-l-light mt-1", children: _.description }) : null] }, String(i)));
|
|
2443
2454
|
|
|
@@ -2484,8 +2495,7 @@
|
|
|
2484
2495
|
const { href, version, text = '' } = rest;
|
|
2485
2496
|
const { iconMapped, label } = ICONS_MAP.find(({ origins }) => origins.some((_) => href?.includes(_))) || {};
|
|
2486
2497
|
const iconCustom = getFilteredIcon(icon) ?? iconMapped;
|
|
2487
|
-
|
|
2488
|
-
return (jsx(Button, { className: style(rounded ? 'rounded-full' : 'rounded-md', 'border border-solid hover:border-transparent', 'group-data-primary:border-main-divider', 'hover:bg-primary-main hover:text-black', 'group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover', 'group-data-gray:border-green', buttonStylesWithText(text, buttonSize)), "aria-label": label, rel: "noopener noreferrer", target: "_blank", text: text, version: version, ...rest, children: iconWithVersion && !text ? (jsx(ImgInner, { image: iconWithVersion, imageClassName: "group-hover/media:text-white", width: "24", height: "24", asSVG: true })) : null }));
|
|
2498
|
+
return (jsx(Button, { className: style(rounded ? 'rounded-full' : 'rounded-md', 'border border-solid hover:border-transparent', 'group-data-primary:border-main-divider', 'hover:bg-primary-main hover:text-black', 'group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover', 'group-data-gray:border-green', buttonStylesWithText(text, buttonSize)), "aria-label": label, rel: "noopener noreferrer", target: "_blank", text: text, version: version, ...rest, children: iconCustom && !text ? (jsx(ImgInner, { image: iconCustom, imageClassName: "group-hover/media:text-white", width: "24", height: "24" })) : null }));
|
|
2489
2499
|
});
|
|
2490
2500
|
const getFilteredIcon = (icon) => (icon?.src || icon?.icon ? icon : undefined);
|
|
2491
2501
|
|
|
@@ -2495,7 +2505,7 @@
|
|
|
2495
2505
|
const CarouselRecommendationCard = JSX(({ className = '', description, href, icon, items = [], socialMedia = [], target, title, align = 'text-left', version = 'primary', ...rest }) => {
|
|
2496
2506
|
return (jsx(BlockWrapper, { className: style('relative p-7 min-w-[524px] min-h-[218px] h-full box-border group-data-gray:bg-main-divider/50', BORDER_STYLE, className), version: version, ...rest, children: jsxs(LinkWrapper, { href: href, target: target, children: [jsx(Headline, { className: "mb-4", title: title, description: description, headlineVersion: "S", isPadding: false, align: align }), jsxs("div", { className: "w-1/2 h-full flex flex-col flex-1 justify-end", children: [items.length ? (jsx(List, { className: "flex flex-col gap-2", itemClassName: "text-l-light", items: items })) : null, socialMedia.length ? jsx(SocialMedia, { className: "pt-10", media: socialMedia }) : null] }), renderIconBlock$2(icon)] }) }));
|
|
2497
2507
|
});
|
|
2498
|
-
const renderIconBlock$2 = (icon) => (jsxs("div", { className: "absolute bottom-0 right-0", children: [icon?.icon ? jsx(ImgInner, { image:
|
|
2508
|
+
const renderIconBlock$2 = (icon) => (jsxs("div", { className: "absolute bottom-0 right-0", children: [icon?.icon ? jsx(ImgInner, { image: icon }) : null, icon?.src ? jsx(ImgInner, { image: icon }) : null] }));
|
|
2499
2509
|
|
|
2500
2510
|
const RichText = JSX((props) => {
|
|
2501
2511
|
const { __html = '', richVersion = '' } = props;
|
|
@@ -2533,11 +2543,14 @@
|
|
|
2533
2543
|
const hiddenCells = cellsNode.slice(VISIBLE_CELLS_COUNT);
|
|
2534
2544
|
return (jsxs(BlockWrapper, { className: style('relative border border-gray p-8 flex flex-col', getHitStyle(isHighlighting), className), ...rest, children: [isHighlighting ? renderHitIcon() : null, renderIconBlock$1(icon), title ? jsx(Heading, { className: "text-center pt-2", headingType: "h5", title: title }) : null, button ? jsx(Button, { className: "w-full mt-4", ...button }) : null, cardCells.length ? (jsx(Foldable, { renderFoldableSection: ({ isUnfolded }) => (jsxs("div", { children: [visibleCells, jsx(FoldableSection, { isUnfolded: isUnfolded, children: hiddenCells })] })), renderFoldButton: cardCells.length > 1 ? renderFoldButton$1 : null })) : null] }));
|
|
2535
2545
|
});
|
|
2536
|
-
const renderIconBlock$1 = (icon) => (jsxs("div", { className: "w-[267px] min-w-[267px] self-center", children: [icon?.src ? jsx(ImgInner, { image: icon }) : null, icon?.icon ? jsx(ImgInner, { image:
|
|
2546
|
+
const renderIconBlock$1 = (icon) => (jsxs("div", { className: "w-[267px] min-w-[267px] self-center", children: [icon?.src ? jsx(ImgInner, { image: icon }) : null, icon?.icon ? jsx(ImgInner, { image: icon }) : null] }));
|
|
2537
2547
|
const getHitStyle = (isHighlighting) => isHighlighting ? 'mt-8 pt-20' : 'mt-20 pt-8';
|
|
2538
|
-
const renderFoldButton$1 = ({ isUnfolded, onToggle }) => (jsxs("button", { className: "w-full cursor-pointer text-primary-main pt-5 flex justify-between items-center", onClick: onToggle, children: [jsx("div", { children: isUnfolded ? 'Скрыть' : 'Подробнее о тарифе' }), jsx(Icon, { className: "text-primary-text", name: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', width: "16", height: "16"
|
|
2539
|
-
const renderCardInfo = (cell, i) =>
|
|
2540
|
-
|
|
2548
|
+
const renderFoldButton$1 = ({ isUnfolded, onToggle }) => (jsxs("button", { className: "w-full cursor-pointer text-primary-main pt-5 flex justify-between items-center", onClick: onToggle, children: [jsx("div", { children: isUnfolded ? 'Скрыть' : 'Подробнее о тарифе' }), jsx(Icon, { className: "text-primary-text", name: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', width: "16", height: "16" })] }));
|
|
2549
|
+
const renderCardInfo = (cell, i) => {
|
|
2550
|
+
const { title, description, buttons } = cell;
|
|
2551
|
+
return (jsxs("div", { className: "py-5 border-b border-main-divider", children: [title ? (jsx("div", { className: "text-secondary-text text-m-light opacity-80", children: cell.title })) : null, description ? (jsx("div", { className: "text-primary-text text-h6 mt-1", children: cell.description })) : null, buttons?.length ? (jsx("div", { className: "text-primary-main", children: renderButtonsSection(buttons) })) : null] }, String(i)));
|
|
2552
|
+
};
|
|
2553
|
+
const renderHitIcon = () => (jsxs("div", { className: "absolute -top-7 -right-4 h-[60px] w-[60px] bg-white flex flex-col items-center justify-center rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]", children: [jsx(Icon, { iconVersion: "black", name: "HeartIcon", width: "23", height: "22" }), jsx(Paragraph, { size: "text-s", font: "font-normal", align: "text-center", color: "text-primary-text", children: "\u0425\u0418\u0422" })] }));
|
|
2541
2554
|
|
|
2542
2555
|
const GRADIENT = 'bg-gradient-to-r from-main-gradient-start to-main-gradient-end';
|
|
2543
2556
|
const BORDER_CLASSES = 'border-gray border-solid border';
|
|
@@ -2546,7 +2559,7 @@
|
|
|
2546
2559
|
const COLS_LENGTH_FOR_SCROLL$1 = 3;
|
|
2547
2560
|
const COLUMN_WIDTH$2 = 4 * 80 + 4 * 4; // w-80 + gap-4 = 336px
|
|
2548
2561
|
|
|
2549
|
-
const HeaderCell = JSX(({ icon, image, title, link }) => (jsxs("div", { className: `w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${BORDER_CLASSES} ${GRADIENT}`, role: "columnheader", children: [icon && !image?.src && (jsx(ImgInner, { className: "h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4", image:
|
|
2562
|
+
const HeaderCell = JSX(({ icon, image, title, link }) => (jsxs("div", { className: `w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${BORDER_CLASSES} ${GRADIENT}`, role: "columnheader", children: [icon && !image?.src && (jsx(ImgInner, { className: "h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4", image: icon, width: "63", height: "63" })), image?.src && jsx(ImgInner, { className: "mb-[18px]", image: image }), title ? (jsx(Heading, { headingType: "h4", as: "h3", className: "text-center text-white", title: title })) : null, link?.text && (jsx("div", { className: "mt-auto w-full", children: jsx(Button, { href: link.href, target: link.target, className: "mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active", children: jsx("div", { className: "text-xs-light font-medium py-[11px]", children: link.text }) }) }))] })));
|
|
2550
2563
|
|
|
2551
2564
|
const carouselContainerClassesMap = {
|
|
2552
2565
|
comparison: 'flex gap-4 duration-1000',
|
|
@@ -2692,7 +2705,7 @@
|
|
|
2692
2705
|
return (jsxs("tr", { className: "pb-1 text-h6", children: [jsx("td", { className: "pt-4", children: jsxs("div", { className: "flex items-center", children: [currency ? (jsx(ImgInner, { image: { icon: CURRENCY_ICONS_MAP[currency] }, width: "24", height: "24" })) : null, jsx("span", { className: "ml-2", children: currency })] }) }), jsx("td", { className: "pt-4 pl-11", children: formatCurrency(exchangeCurrencyItem?.saleExchangeRate) }), jsx("td", { className: "pt-4 pl-11", children: formatCurrency(exchangeCurrencyItem?.buyExchangeRate) })] }, currency));
|
|
2693
2706
|
};
|
|
2694
2707
|
|
|
2695
|
-
const CurrentLocation$1 = JSX(({ className = '', address }) => (jsxs("div", { className: `flex ${className}`, children: [jsx(ImgInner, { image: { icon: 'GpsIcon' }, width: "24", height: "24"
|
|
2708
|
+
const CurrentLocation$1 = JSX(({ className = '', address }) => (jsxs("div", { className: `flex ${className}`, children: [jsx(ImgInner, { image: { icon: 'GpsIcon' }, width: "24", height: "24" }), jsxs("div", { className: "ml-3", children: [address ? jsx("p", { className: "text-primary-main m-0 mb-1 text-l", children: address }) : null, jsx("p", { className: "text-secondary-text m-0 text-m", children: "\u041A\u0443\u0440\u0441 \u0443\u043A\u0430\u0437\u0430\u043D \u0434\u043B\u044F \u0437\u0430\u0434\u0430\u043D\u043D\u043E\u0433\u043E \u043E\u0444\u0438\u0441\u0430" })] })] })));
|
|
2696
2709
|
|
|
2697
2710
|
const roundTo = (value, precision = 2) => {
|
|
2698
2711
|
const factor = 10 ** precision;
|
|
@@ -2864,7 +2877,7 @@
|
|
|
2864
2877
|
: 'bg-primary-main text-white hover:bg-primary-hove', className), onClick: onClick, disabled: disabled, "data-theme": dataTheme, children: [jsx("span", { className: "text-h4 pr-3", children: label }), icon ? (jsx(ImgInner, { image: {
|
|
2865
2878
|
icon,
|
|
2866
2879
|
iconVersion: 'white',
|
|
2867
|
-
}, className: "flex-shrink-0 my-auto", width: "20", height: "20"
|
|
2880
|
+
}, className: "flex-shrink-0 my-auto", width: "20", height: "20" })) : null] }));
|
|
2868
2881
|
});
|
|
2869
2882
|
const renderDefaultFoldButton = ({ isUnfolded, onToggle }) => {
|
|
2870
2883
|
const labels = ['Развернуть', 'Скрыть'];
|
|
@@ -2948,10 +2961,10 @@
|
|
|
2948
2961
|
transparent: 'text-white',
|
|
2949
2962
|
};
|
|
2950
2963
|
const renderImage$2 = (bgColor, image, size) => {
|
|
2951
|
-
return image?.src ? (jsx(ImgInner, { image: image, className: SVG_COLOR[bgColor], width: size?.width, height: size?.height, pathPrefix: "/wcms-resources/"
|
|
2964
|
+
return image?.src ? (jsx(ImgInner, { image: image, className: SVG_COLOR[bgColor], width: size?.width, height: size?.height, pathPrefix: "/wcms-resources/" })) : (jsx(ImgInner, { image: {
|
|
2952
2965
|
icon: image?.icon || 'LogoIcon',
|
|
2953
2966
|
iconVersion: ICON_VERSION_MAP[bgColor],
|
|
2954
|
-
}, className: SVG_COLOR[bgColor], width: size?.width, height: size?.height
|
|
2967
|
+
}, className: SVG_COLOR[bgColor], width: size?.width, height: size?.height }));
|
|
2955
2968
|
};
|
|
2956
2969
|
|
|
2957
2970
|
const TEXT_COLOR = {
|
|
@@ -3435,9 +3448,63 @@
|
|
|
3435
3448
|
? 'text-primary-main'
|
|
3436
3449
|
: style(flat ? 'text-primary-text' : 'text-secondary-text', 'hover:text-primary-main'), 'group-data-transparent:text-white group-data-transparent:hover:text-primary-hover');
|
|
3437
3450
|
|
|
3438
|
-
const
|
|
3451
|
+
const BUTTON_SIZE_STYLE = {
|
|
3452
|
+
default: 'w-6 h-6',
|
|
3453
|
+
large: 'w-12 h-12',
|
|
3454
|
+
};
|
|
3455
|
+
const HeaderSecondaryMenuButton = JSX(({ className, isRounded, buttonSize = 'default', isGrayBg = false, disabled, ariaLabel, image, onClick, }) => (jsx("button", { className: style('group/btn border-0 flex shrink-0 items-center', isGrayBg ? 'p-3 rounded-full' : 'p-0 bg-inherit', isGrayBg && !isRounded ? 'bg-main-divider' : '', isRounded
|
|
3439
3456
|
? 'w-8 h-8 text-secondary-light hover:text-secondary-hove'
|
|
3440
|
-
:
|
|
3457
|
+
: `${BUTTON_SIZE_STYLE[buttonSize]} text-primary-text hover:text-primary-main`, 'group-data-transparent:text-white', className), type: "button", disabled: disabled, "aria-label": ariaLabel, onClick: onClick, children: jsx(ImgInner, { image: image, className: style('h-full', isRounded ? 'bg-main-divider/20 rounded-full' : ''), imageClassName: "group-hover/btn:text-primary-hover group-hover/btn:invert-0" }) })));
|
|
3458
|
+
|
|
3459
|
+
const HeaderSecondaryMenu = JSX(({ className, version, locationName: location, officesLink }) => {
|
|
3460
|
+
const iconVersion = version === 'transparent' ? 'white' : 'black';
|
|
3461
|
+
const { open: openLocationModal } = useDialog(LOCATION_DIALOG_ID);
|
|
3462
|
+
const handleOpenLocationModal = useCallback(() => openLocationModal(), []);
|
|
3463
|
+
const { open: openSearchModal } = useDialog(SEARCH_DIALOG_ID);
|
|
3464
|
+
const handleOpenSearchModal = useCallback(() => openSearchModal(), []);
|
|
3465
|
+
return (jsxs("div", { className: style('flex items-center gap-5', className), children: [jsx(TopItem, { flat: true, href: "#", text: location, onClick: handleOpenLocationModal }), officesLink ? jsx(TopItem, { flat: true, href: officesLink, text: "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B" }) : null, jsx(HeaderSecondaryMenuButton, { image: { icon: 'LoupeIcon', iconVersion }, ariaLabel: "\u041F\u043E\u0438\u0441\u043A", onClick: handleOpenSearchModal })] }));
|
|
3466
|
+
});
|
|
3467
|
+
|
|
3468
|
+
const findActiveSubItem = (router) => (items = []) => {
|
|
3469
|
+
const possibleActiveSubItems = items?.filter(isHrefActive(router));
|
|
3470
|
+
return possibleActiveSubItems?.length
|
|
3471
|
+
? maxBy((_) => _.href?.length || 0)(possibleActiveSubItems) // More specific item with max length
|
|
3472
|
+
: undefined;
|
|
3473
|
+
};
|
|
3474
|
+
|
|
3475
|
+
const DropdownMenu = JSX(({ className = '', items, activeItem }) => {
|
|
3476
|
+
const link = useLink();
|
|
3477
|
+
const [visible, setVisible] = useState(false);
|
|
3478
|
+
const handleToggle = useCallback(() => setVisible((_) => !_), []);
|
|
3479
|
+
const handleClickOutside = useCallback(() => setVisible(false), []);
|
|
3480
|
+
const ref = useOutsideClick(handleClickOutside);
|
|
3481
|
+
return (jsxs("div", { className: style(visible ? 'bg-white rounded-md shadow-blue-gray' : '', className), ref: ref, children: [jsx("button", { className: "group/btn flex justify-between items-center h-6", "aria-label": `${visible ? 'Скрыть другие разделы' : 'Показать другие разделы'}`, onClick: handleToggle, children: Array(3)
|
|
3482
|
+
.fill(null)
|
|
3483
|
+
.map((_, i) => (jsx("div", { className: "w-[3px] h-[3px] rounded mr-1 bg-primary-text group-hover/btn:bg-primary-hover group-data-transparent:bg-white" }, String(i)))) }), jsx("div", { className: style('absolute flex flex-col rounded-md bg-white p-6 pb-2', visible ? '' : 'hidden'), "aria-hidden": !visible, children: items?.map((item, i) => {
|
|
3484
|
+
const { text, ...linkProps } = item;
|
|
3485
|
+
return (jsx("a", { className: style('text-l-light pb-4 hover:text-primary-main', item === activeItem ? 'text-primary-main' : ''), ...link(linkProps), children: text }, item.href || String(i)));
|
|
3486
|
+
}) })] }));
|
|
3487
|
+
});
|
|
3488
|
+
|
|
3489
|
+
const HeaderItem = JSX(({ className = '', active, dataItemName, children, ...rest }) => {
|
|
3490
|
+
const link = useLink();
|
|
3491
|
+
const { href, target, text, onClick } = link(rest);
|
|
3492
|
+
return (jsxs("a", { className: style('relative inline-block bg-transparent text-center no-underline', className), href: href, target: target, "data-item-name": dataItemName, onClick: onClick, children: [jsx("span", { className: getTextStyle(active), children: text || children }), active ? (jsx("div", { className: "absolute left-0 right-0 -bottom-3 h-0.5 bg-primary-main group-data-transparent:bg-transparent" })) : null] }));
|
|
3493
|
+
});
|
|
3494
|
+
const getTextStyle = (active = false) => style('font-sans text-l-light', active ? 'text-primary-main' : 'text-primary-text hover:text-primary-main', 'group-data-transparent:text-white group-data-transparent:hover:text-primary-hover');
|
|
3495
|
+
|
|
3496
|
+
const HeaderSubMenuItem = JSX(({ observerOptions, onVisibilityChange, children, className, ...rest }) => {
|
|
3497
|
+
const observerCallback = useCallback((entries) => {
|
|
3498
|
+
if (!entries.length || !onVisibilityChange) {
|
|
3499
|
+
return;
|
|
3500
|
+
}
|
|
3501
|
+
// Assumption about entries order (by time)
|
|
3502
|
+
const entry = entries[entries.length - 1];
|
|
3503
|
+
onVisibilityChange(entry.isIntersecting);
|
|
3504
|
+
}, [onVisibilityChange]);
|
|
3505
|
+
const ref = useIntersectionObserver(observerCallback, observerOptions);
|
|
3506
|
+
return (jsx("span", { ref: ref, className: className, children: jsx(HeaderItem, { ...rest, children: children }) }));
|
|
3507
|
+
});
|
|
3441
3508
|
|
|
3442
3509
|
const getNS = (_) => globalThis[_];
|
|
3443
3510
|
function useExternalNS(namespaceName, url) {
|
|
@@ -3492,59 +3559,16 @@
|
|
|
3492
3559
|
useChatBot(chat);
|
|
3493
3560
|
return renderChatBotButton(rest);
|
|
3494
3561
|
});
|
|
3495
|
-
const renderChatBotButton = ({ className, iconVersion, onClick }) => (jsx(HeaderSecondaryMenuButton, { className: style(CHAT_BUTTON_EXTERNAL_NAME, className), image: { icon: 'HeadphonesIcon', iconVersion }, ariaLabel: "\u0427\u0430\u0442", onClick: onClick }));
|
|
3496
|
-
|
|
3497
|
-
const HeaderSecondaryMenu = JSX(({ className, version, locationName: location, officesLink }) => {
|
|
3498
|
-
const iconVersion = version === 'transparent' ? 'white' : 'black';
|
|
3499
|
-
const { open: openLocationModal } = useDialog(LOCATION_DIALOG_ID);
|
|
3500
|
-
const handleOpenLocationModal = useCallback(() => openLocationModal(), []);
|
|
3501
|
-
const { open: openSearchModal } = useDialog(SEARCH_DIALOG_ID);
|
|
3502
|
-
const handleOpenSearchModal = useCallback(() => openSearchModal(), []);
|
|
3503
|
-
return (jsxs("div", { className: style('flex items-center gap-5', className), children: [jsx(TopItem, { flat: true, href: "#", text: location, onClick: handleOpenLocationModal }), officesLink ? jsx(TopItem, { flat: true, href: officesLink, text: "\u041E\u0444\u0438\u0441\u044B \u0438 \u0431\u0430\u043D\u043A\u043E\u043C\u0430\u0442\u044B" }) : null, jsx(HeaderSecondaryMenuButton, { image: { icon: 'LoupeIcon', iconVersion }, ariaLabel: "\u041F\u043E\u0438\u0441\u043A", onClick: handleOpenSearchModal }), projectSettings.CHAT_BOT ? (jsx(HeaderChatBotButton, { iconVersion: iconVersion, chat: projectSettings.CHAT_BOT })) : null] }));
|
|
3504
|
-
});
|
|
3562
|
+
const renderChatBotButton = ({ className, iconVersion, onClick }) => (jsx(HeaderSecondaryMenuButton, { className: style(CHAT_BUTTON_EXTERNAL_NAME, className), image: { icon: 'HeadphonesIcon', iconVersion }, ariaLabel: "\u0427\u0430\u0442", onClick: onClick, buttonSize: "large", isGrayBg: true }));
|
|
3505
3563
|
|
|
3506
|
-
const
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
? maxBy((_) => _.href?.length || 0)(possibleActiveSubItems) // More specific item with max length
|
|
3510
|
-
: undefined;
|
|
3564
|
+
const BUTTON_STYLE = {
|
|
3565
|
+
default: 'px-5 bg-main-divider rounded hover:text-primary-main',
|
|
3566
|
+
transparent: 'text-white hover:text-primary-hover',
|
|
3511
3567
|
};
|
|
3568
|
+
const InternetBankButton = JSX(({ version, internetBankUrl }) => (jsx(Button, { href: internetBankUrl, ariaLabel: "\u0418\u043D\u0442\u0435\u0440\u043D\u0435\u0442-\u0431\u0430\u043D\u043A", target: "_blank", className: style('py-3 ml-3 text-l font-light whitespace-nowrap hover:text-primary-main', BUTTON_STYLE[version === 'transparent' ? 'transparent' : 'default']), children: "\u0418\u043D\u0442\u0435\u0440\u043D\u0435\u0442-\u0431\u0430\u043D\u043A" })));
|
|
3512
3569
|
|
|
3513
|
-
const
|
|
3514
|
-
const
|
|
3515
|
-
const [visible, setVisible] = useState(false);
|
|
3516
|
-
const handleToggle = useCallback(() => setVisible((_) => !_), []);
|
|
3517
|
-
const handleClickOutside = useCallback(() => setVisible(false), []);
|
|
3518
|
-
const ref = useOutsideClick(handleClickOutside);
|
|
3519
|
-
return (jsxs("div", { className: style(visible ? 'bg-white rounded-md shadow-blue-gray' : '', className), ref: ref, children: [jsx("button", { className: "group/btn flex justify-between items-center h-6 ml-6", "aria-label": `${visible ? 'Скрыть другие разделы' : 'Показать другие разделы'}`, onClick: handleToggle, children: Array(3)
|
|
3520
|
-
.fill(null)
|
|
3521
|
-
.map((_, i) => (jsx("div", { className: "w-[3px] h-[3px] rounded mr-1 bg-primary-text group-hover/btn:bg-primary-hover group-data-transparent:bg-white" }, String(i)))) }), jsx("div", { className: style('flex flex-col rounded-md bg-white p-6 pb-2', visible ? '' : 'hidden'), "aria-hidden": !visible, children: items?.map((item, i) => {
|
|
3522
|
-
const { text, ...linkProps } = item;
|
|
3523
|
-
return (jsx("a", { className: style('text-l-light pb-4 hover:text-primary-main', item === activeItem ? 'text-primary-main' : ''), ...link(linkProps), children: text }, item.href || String(i)));
|
|
3524
|
-
}) })] }));
|
|
3525
|
-
});
|
|
3526
|
-
|
|
3527
|
-
const HeaderItem = JSX(({ className = '', active, dataItemName, children, ...rest }) => {
|
|
3528
|
-
const link = useLink();
|
|
3529
|
-
const { href, target, text, onClick } = link(rest);
|
|
3530
|
-
return (jsxs("a", { className: style('relative inline-block bg-transparent text-center no-underline', className), href: href, target: target, "data-item-name": dataItemName, onClick: onClick, children: [jsx("span", { className: getTextStyle(active), children: text || children }), active ? (jsx("div", { className: "absolute left-0 right-0 -bottom-3 h-0.5 bg-primary-main group-data-transparent:bg-transparent" })) : null] }));
|
|
3531
|
-
});
|
|
3532
|
-
const getTextStyle = (active = false) => style('font-sans text-l-light', active ? 'text-primary-main' : 'text-primary-text hover:text-primary-main', 'group-data-transparent:text-white group-data-transparent:hover:text-primary-hover');
|
|
3533
|
-
|
|
3534
|
-
const HeaderSubMenuItem = JSX(({ observerOptions, onVisibilityChange, children, ...rest }) => {
|
|
3535
|
-
const observerCallback = useCallback((entries) => {
|
|
3536
|
-
if (!entries.length || !onVisibilityChange) {
|
|
3537
|
-
return;
|
|
3538
|
-
}
|
|
3539
|
-
// Assumption about entries order (by time)
|
|
3540
|
-
const entry = entries[entries.length - 1];
|
|
3541
|
-
onVisibilityChange(entry.isIntersecting);
|
|
3542
|
-
}, [onVisibilityChange]);
|
|
3543
|
-
const ref = useIntersectionObserver(observerCallback, observerOptions);
|
|
3544
|
-
return (jsx("span", { ref: ref, children: jsx(HeaderItem, { ...rest, children: children }) }));
|
|
3545
|
-
});
|
|
3546
|
-
|
|
3547
|
-
const HeaderSubMenu = JSX(({ subItems = [] }) => {
|
|
3570
|
+
const HeaderSubMenu = JSX(({ subItems = [], version, internetBankUrl }) => {
|
|
3571
|
+
const iconVersion = version === 'transparent' ? 'white' : 'black';
|
|
3548
3572
|
const router = useRouter();
|
|
3549
3573
|
const activeSubItem = findActiveSubItem(router)(subItems);
|
|
3550
3574
|
const [visibleItemsCount, setVisibleItemsCount] = useState(subItems.length);
|
|
@@ -3556,7 +3580,7 @@
|
|
|
3556
3580
|
? handleIntersectionActivation(index)
|
|
3557
3581
|
: handleIntersectionDeactivation(index));
|
|
3558
3582
|
}), [subItems]);
|
|
3559
|
-
return (jsxs("nav", { className: "relative mt-
|
|
3583
|
+
return (jsxs("nav", { className: "relative mt-3 flex items-center justify-between", children: [jsx("div", { ref: subItemsListRef, className: "overflow-hidden whitespace-nowrap pb-3 mt-2", children: subItems.map((_, i) => (jsx(HeaderSubMenuItem, { className: style('ml-8 first:ml-0', visibleItemsCount - 1 < i ? 'invisible' : ''), active: _ === activeSubItem, observerOptions: observerOptions, onVisibilityChange: subItemsVisibilityHandlers[i], ..._ }, String(i)))) }), dropDownMenuItems.length ? (jsx(DropdownMenu, { className: "relative w-auto z-40", items: dropDownMenuItems, activeItem: activeSubItem })) : null, projectSettings.CHAT_BOT ? (jsx(HeaderChatBotButton, { className: "ml-9", iconVersion: iconVersion, chat: projectSettings.CHAT_BOT })) : null, jsx(InternetBankButton, { version: version, internetBankUrl: internetBankUrl })] }));
|
|
3560
3584
|
});
|
|
3561
3585
|
const handleIntersectionActivation = (index) => (prev) => Math.max(prev, index + 1);
|
|
3562
3586
|
const handleIntersectionDeactivation = (index) => (prev) => Math.min(prev, index);
|
|
@@ -3567,10 +3591,10 @@
|
|
|
3567
3591
|
};
|
|
3568
3592
|
const Header = JSX(({ bgColor = 'bg-white', className, showSubMenu = true, version = BG_COLOR_TO_BLOCK_VERSION[bgColor], ...rest }) => {
|
|
3569
3593
|
const router = useRouter();
|
|
3570
|
-
const { topItems, logo, defaultLocation, foreignOffices, officesLink } = useSWRResource(projectSettings.SITEMAP || 'sitemap', rest.options?.page?.fallback);
|
|
3594
|
+
const { topItems, logo, defaultLocation, foreignOffices, officesLink, internetBankUrl } = useSWRResource(projectSettings.SITEMAP || 'sitemap', rest.options?.page?.fallback);
|
|
3571
3595
|
const activeTopItem = topItems?.find(isTopItemActive(router));
|
|
3572
3596
|
const [location, onChangeLocation] = useLocation(defaultLocation);
|
|
3573
|
-
return (jsxs(BlockWrapper, { tag: "header", className: style('pt-6 px-20', showSubMenu && activeTopItem?.items?.length ? 'pb-4' : 'pb-5', className), version: version, ...rest, children: [jsxs("div", { className: "container", children: [jsxs("div", { className: "flex items-center", children: [jsx(Logo, { className: "mr-8", bgColor: bgColor, logo: logo }), topItems?.map((_, i) => (jsx(TopItem, { active: _ === activeTopItem, ..._ }, String(i)))), jsx(HeaderSecondaryMenu, { version: version, className: "ml-auto", locationName: location.name, officesLink: officesLink })] }), jsx("div", { className: style('mt-6 h-px bg-main-divider', version === 'transparent' ? 'opacity-30' : '') }), showSubMenu && activeTopItem?.items?.length ? (jsx(HeaderSubMenu, { subItems: activeTopItem.items })) : null] }), jsx(SearchDialog, { topItems: topItems }), jsx(LocationDialog, { currentLocation: location, foreignOffices: foreignOffices, onChangeLocation: onChangeLocation })] }));
|
|
3597
|
+
return (jsxs(BlockWrapper, { tag: "header", className: style('pt-6 px-20', showSubMenu && activeTopItem?.items?.length ? 'pb-4' : 'pb-5', className), version: version, ...rest, children: [jsxs("div", { className: "container", children: [jsxs("div", { className: "flex items-center", children: [jsx(Logo, { className: "mr-8", bgColor: bgColor, logo: logo }), topItems?.map((_, i) => (jsx(TopItem, { active: _ === activeTopItem, ..._ }, String(i)))), jsx(HeaderSecondaryMenu, { version: version, className: "ml-auto", locationName: location.name, officesLink: officesLink })] }), jsx("div", { className: style('mt-6 h-px bg-main-divider', version === 'transparent' ? 'opacity-30' : '') }), showSubMenu && activeTopItem?.items?.length ? (jsx(HeaderSubMenu, { subItems: activeTopItem.items, version: version, internetBankUrl: internetBankUrl })) : null] }), jsx(SearchDialog, { topItems: topItems }), jsx(LocationDialog, { currentLocation: location, foreignOffices: foreignOffices, onChangeLocation: onChangeLocation })] }));
|
|
3574
3598
|
});
|
|
3575
3599
|
|
|
3576
3600
|
const gapStyles = {
|
|
@@ -3583,7 +3607,7 @@
|
|
|
3583
3607
|
'': '',
|
|
3584
3608
|
};
|
|
3585
3609
|
|
|
3586
|
-
const HorizontalLayout = JSX(({ className = '', gap = 'XS', isPadding = false, version = 'transparent', isTheme = false, ...rest }) => (jsx(BlockWrapper, { className: style('grid grid-cols-12', isPadding ? 'p-12' : '', gapStyles[gap], className), version: version, isTheme: isTheme, ...rest, children: renderChildren(rest) })));
|
|
3610
|
+
const HorizontalLayout = JSX(({ className = '', gap = 'XS', isPadding = false, version = 'transparent', isTheme = false, ...rest }) => (jsx(BlockWrapper, { className: style('relative', 'grid grid-cols-12', isPadding ? 'p-12' : '', gapStyles[gap], className), version: version, isTheme: isTheme, ...rest, children: renderChildren(rest) })));
|
|
3587
3611
|
HorizontalLayout.childrenTypes = {
|
|
3588
3612
|
exclude: ['HorizontalLayout'],
|
|
3589
3613
|
};
|
|
@@ -3710,9 +3734,9 @@
|
|
|
3710
3734
|
return (jsx("div", { className: `flex-1 max-w-[180px] text-center px-2 ${isFirstColumn ? 'pl-9' : ''} ${isLastColumn ? 'mr-3.5' : ' '}`, children: column.title }, `title_${i}`));
|
|
3711
3735
|
};
|
|
3712
3736
|
|
|
3713
|
-
const
|
|
3737
|
+
const LinkDocsListItem = JSX(({ doc, icon }) => {
|
|
3714
3738
|
const { text, fileSize, ...linkProps } = doc;
|
|
3715
|
-
return (jsxs("a", { className:
|
|
3739
|
+
return (jsxs("a", { className: "flex box-border gap-3 group/item h-fit w-fit text-primary-text no-underline hover:text-primary-main", role: "link", ...linkProps, children: [icon, text ? (jsxs(Text, { size: "text-l", font: "font-light", children: [text, jsx(Text, { color: "text-secondary-text", children: linkProps?.href && formatSuffix(getExtFromHref(linkProps.href), fileSize) })] })) : null] }));
|
|
3716
3740
|
});
|
|
3717
3741
|
const formatSuffix = (ext, fileSize) => {
|
|
3718
3742
|
const prefix = ext || fileSize ? ',' : '';
|
|
@@ -3728,17 +3752,11 @@
|
|
|
3728
3752
|
return index !== -1 ? href.substring(index + 1) : '';
|
|
3729
3753
|
};
|
|
3730
3754
|
|
|
3731
|
-
const LinkDocsListItem = JSX(({ className = '', doc, icon }) => (jsx(LinkDocsListItemBase, { className: `flex h-full box-border ${className}`, iconClassName: "mr-2.5 min-w-6 min-h-6", textClassName: "self-center text-l-light", suffixClassName: "text-secondary-text group-hover/item:text-primary-main", doc: doc, icon: icon })));
|
|
3732
|
-
|
|
3733
|
-
const LinkDocsList = JSX(({ className, documents, columnsMode = 'double', icon }) => {
|
|
3734
|
-
return documents?.length ? (jsx("div", { className: className, role: "list", children: documents.map((doc, i) => (jsx("div", { className: columnsMode === 'double' ? 'basis-[calc(50%-20px)]' : '', role: "listitem", children: jsx(LinkDocsListItem, { className: "group/item flex align-middle h-fit w-fit text-primary-text no-underline hover:text-primary-main", doc: doc, icon: icon }) }, String(i)))) })) : null;
|
|
3735
|
-
});
|
|
3736
|
-
|
|
3737
3755
|
const linkColumnsModeStyleMap = {
|
|
3738
|
-
double: 'flex
|
|
3739
|
-
single: 'flex
|
|
3756
|
+
double: 'flex-wrap',
|
|
3757
|
+
single: 'flex-col',
|
|
3740
3758
|
};
|
|
3741
|
-
const LinkDocs = JSX(({ className = '', title, description, align = 'text-center', documents, icon = { icon: 'DocIcon' }, columnsMode = 'double', ...rest }) => (jsxs(BlockWrapper, { className: style('p-12', className), ...rest, children: [jsx(Headline, { className: "!p-0", title: title, description: description, align: align, headlineVersion: "M", as: "h2" }), jsx(
|
|
3759
|
+
const LinkDocs = JSX(({ className = '', title, description, align = 'text-center', documents, icon = { icon: 'DocIcon' }, columnsMode = 'double', ...rest }) => (jsxs(BlockWrapper, { className: style('p-12', className), ...rest, children: [jsx(Headline, { className: "!p-0", title: title, description: description, align: align, headlineVersion: "M", as: "h2" }), documents?.length ? (jsx("div", { className: style('mt-8 flex gap-6', linkColumnsModeStyleMap[columnsMode]), role: "list", children: documents.map((doc, i) => (jsx("div", { className: columnsMode === 'double' ? 'basis-[calc(50%-20px)]' : '', role: "listitem", children: jsx(LinkDocsListItem, { doc: doc, icon: icon ? (jsx(ImgInner, { className: "min-w-6 min-h-6", image: icon, width: "24", height: "24" })) : null }) }, String(i)))) })) : null] })));
|
|
3742
3760
|
|
|
3743
3761
|
const getColSpan = (className) => {
|
|
3744
3762
|
const colSpanPrefix = 'col-span-';
|
|
@@ -3867,7 +3885,7 @@
|
|
|
3867
3885
|
updatePointsToRender(null);
|
|
3868
3886
|
}
|
|
3869
3887
|
};
|
|
3870
|
-
return (jsxs("div", { className: `${Object.values(styles$2).join(' ')} bg-white py-3 pl-11 pr-4 w-full`, children: [jsx(Icon, { name: "LoupeIcon", iconVersion: "black", width: "20", height: "20",
|
|
3888
|
+
return (jsxs("div", { className: `${Object.values(styles$2).join(' ')} bg-white py-3 pl-11 pr-4 w-full`, children: [jsx(Icon, { name: "LoupeIcon", iconVersion: "black", width: "20", height: "20", className: "absolute left-4" }), jsx("input", { type: "text", placeholder: "\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0430\u0434\u0440\u0435\u0441 \u0438\u043B\u0438 \u043C\u0435\u0442\u0440\u043E", onChange: onChange, className: "border-0 focus:border-0 outline-0 w-full" })] }));
|
|
3871
3889
|
};
|
|
3872
3890
|
|
|
3873
3891
|
const styles$1 = {
|
|
@@ -4003,7 +4021,7 @@
|
|
|
4003
4021
|
const lunchHourText = hasTime ? `Перерыв ${lunchHour}` : lunchHour;
|
|
4004
4022
|
return status ? (jsxs("div", { className: "flex", children: [jsx("div", { className: "p-3 border rounded-md text-m flex items-center cursor-pointer text-primary-main border-green-light mr-4", children: workTime ? workTime : null }), jsx("div", { className: "p-3 border rounded-md text-m flex items-center cursor-pointer text-yellow border-golden", children: lunchHour ? lunchHourText : null })] })) : (jsx("div", { className: "flex", children: jsx("div", { className: "p-3 border rounded-md text-m flex items-center cursor-pointer text-error border-error", children: "\u0412\u044B\u0445\u043E\u0434\u043D\u043E\u0439" }) }));
|
|
4005
4023
|
};
|
|
4006
|
-
const renderNearbyOffice = ({ icon, title, distance, time }, index) => (jsxs("div", { className: "flex mr-4", children: [jsx(Icon, { name: icon, width: "16", height: "16",
|
|
4024
|
+
const renderNearbyOffice = ({ icon, title, distance, time }, index) => (jsxs("div", { className: "flex mr-4", children: [jsx(Icon, { name: icon, width: "16", height: "16", className: "mr-1" }), title ? jsxs("span", { className: "text-m", children: [title, "\u00A0"] }) : null, jsxs("span", { className: "text-m-light", children: [distance ? ` (${distance})` : null, time ? `, ${time}` : null] })] }, `nearbyOffice${index}`));
|
|
4007
4025
|
const renderDay = ({ title, status, workTime, lunchHour, description }, inx) => (jsxs("div", { className: "flex flex-col pb-3 border-b border-solid border-main-divider mb-3 last:border-0", children: [jsxs("div", { className: "flex justify-between items-center w-full pb-1 text-l text-primary-text", children: [jsx("div", { children: title }), status ? null : jsx("div", { className: "text-m-light text-error", children: "\u0412\u044B\u0445\u043E\u0434\u043D\u043E\u0439" }), status && workTime ? jsx("div", { children: workTime }) : null] }), status && lunchHour ? renderLunchHour(lunchHour) : null, description ? (jsx("div", { className: "pb-1 text-s-light text-secondary-text", children: description })) : null] }, `day${inx}`));
|
|
4008
4026
|
const renderLunchHour = (lunchHour) => {
|
|
4009
4027
|
const hasTime = /\d+/gi.test(lunchHour);
|
|
@@ -4136,19 +4154,18 @@
|
|
|
4136
4154
|
];
|
|
4137
4155
|
const currentWeekDayInd = new Date().getDay();
|
|
4138
4156
|
const currentWeekDay = currentWeekDayInd > 0 ? workScheduleWeek[currentWeekDayInd - 1] : workScheduleWeek[6];
|
|
4139
|
-
return (jsxs("div", { className: `flex flex-col font-sans bg-white w-full ${className}`, children: [jsxs("div", { className: "flex flex-col px-12 pt-12", children: [jsxs("div", { className: "flex justify-between", children: [jsx("div", { className: "text-h2", children: name }), renderCurrentDaySchedule(currentWeekDay)] }), jsxs("div", { className: "flex text-l-light pt-4", children: [jsx(Icon, { name: "GeolocationIcon", width: "24", height: "24",
|
|
4157
|
+
return (jsxs("div", { className: `flex flex-col font-sans bg-white w-full ${className}`, children: [jsxs("div", { className: "flex flex-col px-12 pt-12", children: [jsxs("div", { className: "flex justify-between", children: [jsx("div", { className: "text-h2", children: name }), renderCurrentDaySchedule(currentWeekDay)] }), jsxs("div", { className: "flex text-l-light pt-4", children: [jsx(Icon, { name: "GeolocationIcon", width: "24", height: "24", className: "pr-1" }), address] }), jsx("div", { className: "flex pt-4", children: nearbyOffices.map(renderNearbyOffice) })] }), jsxs("div", { className: "flex justify-between pt-8", children: [jsx("div", { className: "flex-grow h-full w-full overflow-hidden", children: point ? jsx(YandexMap, { points: [point], className: "h-full" }) : null }), jsx("div", { className: "w-[434px] min-w-[434px] pl-9 pr-12 pb-14 flex flex-col", children: workScheduleWeek.map(renderDay) })] })] }));
|
|
4140
4158
|
});
|
|
4141
4159
|
|
|
4142
4160
|
const OfficeServicesBlock = JSX(({ className = '', title, servicesList, ...rest }) => (jsxs(BlockWrapper, { className: `p-8 flex flex-col ${className}`, ...rest, children: [title ? jsx(Heading, { headingType: "h5", className: "mb-5", title: title }) : null, servicesList?.length ? (jsx("ul", { className: "list-none m-0 p-0", children: servicesList.map(renderListItems) })) : null] })));
|
|
4143
|
-
const renderListItems = (itemList, i) => (jsxs("li", { className: "flex mb-5 last:mb-0 list-none", children: [itemList.icon ? (jsx(ImgInner, { className: "mr-3 min-w-6 min-h-6 w-6 h-6", width: "24", height: "24",
|
|
4161
|
+
const renderListItems = (itemList, i) => (jsxs("li", { className: "flex mb-5 last:mb-0 list-none", children: [itemList.icon ? (jsx(ImgInner, { className: "mr-3 min-w-6 min-h-6 w-6 h-6", width: "24", height: "24", image: itemList.icon })) : null, itemList.label ? jsx("span", { className: "text-l-light", children: itemList.label }) : null] }, `list_item_${String(i)}`));
|
|
4144
4162
|
|
|
4145
4163
|
const ParagraphBlock = JSX(({ text, size, align, font, children, ...rest }) => (jsx(BlockWrapper, { ...rest, children: jsx(Paragraph, { size: size, align: align, font: font, children: text || children }) })));
|
|
4146
4164
|
|
|
4147
4165
|
const BenefitItem = JSX((props) => {
|
|
4148
4166
|
const { className = '', icon, label, description, version = 'primary', benefitsVersion = 'normal', } = props;
|
|
4149
4167
|
const listItemAlign = description ? 'items-start' : 'items-center';
|
|
4150
|
-
|
|
4151
|
-
return (jsxs("div", { className: `flex gap-5 ${listItemAlign} ${className}`, children: [icon ? (jsx("div", { className: getBenefitIconBgStyle(version, benefitsVersion), children: jsx(ImgInner, { className: "w-6 h-6", image: getIconWithVersion(icon, calcVersion), asSVG: true }) })) : null, jsxs("div", { className: "gap-0.5", children: [label ? (jsx("div", { className: "text-h6 text-primary-text group-data-secondary:text-white", children: label })) : null, description ? (jsx("div", { className: "text-m-light text-secondary-text group-data-secondary:text-white", children: description })) : null] })] }));
|
|
4168
|
+
return (jsxs("div", { className: `flex gap-5 ${listItemAlign} ${className}`, children: [icon ? (jsx("div", { className: getBenefitIconBgStyle(version, benefitsVersion), children: jsx(ImgInner, { className: "w-6 h-6", image: { ...icon, iconVersion: icon.iconVersion || benefitsVersion } }) })) : null, jsxs("div", { className: "gap-0.5", children: [label ? (jsx("div", { className: "text-h6 text-primary-text group-data-secondary:text-white", children: label })) : null, description ? (jsx("div", { className: "text-m-light text-secondary-text group-data-secondary:text-white", children: description })) : null] })] }));
|
|
4152
4169
|
});
|
|
4153
4170
|
function getBenefitIconBgStyle(version, benefitsVersion) {
|
|
4154
4171
|
let bgColorStyle = 'bg-primary-main text-black';
|
|
@@ -4248,7 +4265,7 @@
|
|
|
4248
4265
|
const { text, href, target } = button;
|
|
4249
4266
|
const iconVersion = version === 'primary' ? 'white' : 'black';
|
|
4250
4267
|
const backwardIcon = button?.icon || { icon: 'ArrowLeftIcon' };
|
|
4251
|
-
return (jsxs("div", { className: style('flex items-center', className), children: [jsx(Button, { version: version, rounded: true, className: "w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3", ariaLabel: text, href: href, target: target, children: jsx(ImgInner, { className: "w-4 h-4", image: { ...backwardIcon, iconVersion: backwardIcon.iconVersion || iconVersion }
|
|
4268
|
+
return (jsxs("div", { className: style('flex items-center', className), children: [jsx(Button, { version: version, rounded: true, className: "w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3", ariaLabel: text, href: href, target: target, children: jsx(ImgInner, { className: "w-4 h-4", image: { ...backwardIcon, iconVersion: backwardIcon.iconVersion || iconVersion } }) }), text ? (jsx(Button, { version: "link", text: text, href: href, target: target, ariaLabel: text })) : null] }));
|
|
4252
4269
|
}
|
|
4253
4270
|
|
|
4254
4271
|
const breadcrumbStyle = 'text-secondary-text group-data-secondary:text-white/80';
|
|
@@ -4364,7 +4381,7 @@
|
|
|
4364
4381
|
onToggle,
|
|
4365
4382
|
})) : (jsx(DefaultFoldButton, { label: label, icon: isUnfolded ? 'ArrowUpIcon' : 'ArrowDownIcon', onClick: onToggle }));
|
|
4366
4383
|
};
|
|
4367
|
-
const renderPrimaryFoldButton = ({ label, icon, onToggle }) => (jsxs("button", { className: `border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 cursor-pointer`, onClick: onToggle, children: [jsx(Text, { size: "text-xl", font: "font-medium", children: label }), icon ? jsx(
|
|
4384
|
+
const renderPrimaryFoldButton = ({ label, icon, onToggle }) => (jsxs("button", { className: `border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 cursor-pointer`, onClick: onToggle, children: [jsx(Text, { size: "text-xl", font: "font-medium", children: label }), icon ? jsx(Icon, { name: icon, width: "24", height: "24" }) : null] }));
|
|
4368
4385
|
|
|
4369
4386
|
const SAFEBOXES_URL = '/api/v1/safeboxes';
|
|
4370
4387
|
const EMPTY_VALUE = [];
|
|
@@ -4416,7 +4433,7 @@
|
|
|
4416
4433
|
|
|
4417
4434
|
const SafeDepositRentalTotal = JSX(({ days, tariffs = [] }) => {
|
|
4418
4435
|
const price = calculatePrice(days, tariffs);
|
|
4419
|
-
return (jsxs("div", { className: "flex flex-col justify-between", children: [jsxs("div", { className: "flex", children: [renderTotal('Аренда за', days, 'mr-11'), renderTotal('Цена', price + ' ₽')] }), jsxs("div", { className: "bg-primary-main px-10 pt-10 pb-4 text-center", children: [jsx(ImgInner, { image: { icon: 'PackA4Icon' }, width: "290", height: "257"
|
|
4436
|
+
return (jsxs("div", { className: "flex flex-col justify-between", children: [jsxs("div", { className: "flex", children: [renderTotal('Аренда за', days, 'mr-11'), renderTotal('Цена', price + ' ₽')] }), jsxs("div", { className: "bg-primary-main px-10 pt-10 pb-4 text-center", children: [jsx(ImgInner, { image: { icon: 'PackA4Icon' }, width: "290", height: "257" }), jsxs("span", { className: "text-s-light text-white opacity-80 mt-2 inline-block", children: ["\u041D\u0430 \u0440\u0438\u0441\u0443\u043D\u043A\u0438 \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0430 \u043F\u0430\u0447\u043A\u0430", jsx("br", {}), " \u043B\u0438\u0441\u0442\u043E\u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0430 \u04104"] })] })] }));
|
|
4420
4437
|
});
|
|
4421
4438
|
const renderTotal = (label, total, className = '') => {
|
|
4422
4439
|
return (jsxs("div", { className: className, children: [jsx("div", { className: "text-m-light text-secondary-text mb-1", children: label }), jsx("span", { className: "text-h3 text-primary-text", children: total })] }));
|
|
@@ -4536,7 +4553,8 @@
|
|
|
4536
4553
|
const renderStepIcon = (styleMap, size, stepVersion) => ({ icon }, i) => {
|
|
4537
4554
|
const styleStepIconSize = size === 'normal' ? 'h-[100px] w-[100px]' : 'h-[63px] w-[63px]';
|
|
4538
4555
|
const stepVersionIconTextStyles = stepVersion === 'secondary' ? 'group-data-primary:text-white' : 'text-secondary-text';
|
|
4539
|
-
|
|
4556
|
+
const iconVersion = stepVersion === 'secondary' ? 'white' : 'color';
|
|
4557
|
+
return (jsx(BlockWrapper, { className: `${styleStepIconSize} flex justify-center items-center text-center rounded-full p-[26px] box-border z-10`, version: stepVersion, children: checkCanRenderIcon(icon) ? (jsx(ImgInner, { image: { ...icon, iconVersion: icon.iconVersion || iconVersion }, width: "48", height: "48" })) : (jsx("span", { className: style('text-h4', stepVersion === 'transparent' ? styleMap.iconText : stepVersionIconTextStyles), children: i + 1 })) }, String(i)));
|
|
4540
4558
|
};
|
|
4541
4559
|
|
|
4542
4560
|
const DEFAULT_GAP = 14;
|
|
@@ -4732,7 +4750,7 @@
|
|
|
4732
4750
|
const COLUMN_WIDTH$1 = 4 * 80 + 40; // w-80 + pl-10 = 360px
|
|
4733
4751
|
|
|
4734
4752
|
const TableInnerButton = JSX(({ isOpen, onClick }) => {
|
|
4735
|
-
return (jsxs(Button, { version: "primary", onClick: onClick, className: "w-full flex items-center justify-center rounded-none py-5", children: [jsx("div", { className: "text-h4", children: isOpen ? 'Скрыть' : 'Показать ставки по вкладу' }), jsx(Icon, { name: isOpen ? 'ArrowUpIcon' : 'ArrowDownIcon', className: "ml-3", iconVersion: "white", width: "20", height: "20"
|
|
4753
|
+
return (jsxs(Button, { version: "primary", onClick: onClick, className: "w-full flex items-center justify-center rounded-none py-5", children: [jsx("div", { className: "text-h4", children: isOpen ? 'Скрыть' : 'Показать ставки по вкладу' }), jsx(Icon, { name: isOpen ? 'ArrowUpIcon' : 'ArrowDownIcon', className: "ml-3", iconVersion: "white", width: "20", height: "20" })] }));
|
|
4736
4754
|
});
|
|
4737
4755
|
|
|
4738
4756
|
const renderButtonsCellData = ({ buttons }) => renderButtonsSection(buttons);
|
|
@@ -4840,7 +4858,7 @@
|
|
|
4840
4858
|
}) }));
|
|
4841
4859
|
});
|
|
4842
4860
|
|
|
4843
|
-
const InnerTableHeader = JSX(({ currencies, linkToPDF, activeTabIndex, setActiveTabIndex }) => (jsxs("div", { className: "flex justify-between w-full pt-2.5 pb-3", children: [currencies && currencies.length > 1 ? (jsx("div", { className: "flex bg-secondary-light p-1.5 rounded-md", children: currencies.map((currency, idx) => (jsx("div", { className: `rounded-md text-xl-light px-4 py-3 cursor-pointer ${idx === activeTabIndex ? 'bg-primary-main text-white' : 'text-secondary-text'}`, onClick: () => setActiveTabIndex(idx), children: currency || idx + 1 }, currency))) })) : null, linkToPDF ? (jsx(Button, { href: linkToPDF, version: "secondary", target: "_blank", appendLeft: jsx(Icon, { name: "DocDownloadIcon", iconVersion: "color", className: "mr-0.5", width: "20", height: "20"
|
|
4861
|
+
const InnerTableHeader = JSX(({ currencies, linkToPDF, activeTabIndex, setActiveTabIndex }) => (jsxs("div", { className: "flex justify-between w-full pt-2.5 pb-3", children: [currencies && currencies.length > 1 ? (jsx("div", { className: "flex bg-secondary-light p-1.5 rounded-md", children: currencies.map((currency, idx) => (jsx("div", { className: `rounded-md text-xl-light px-4 py-3 cursor-pointer ${idx === activeTabIndex ? 'bg-primary-main text-white' : 'text-secondary-text'}`, onClick: () => setActiveTabIndex(idx), children: currency || idx + 1 }, currency))) })) : null, linkToPDF ? (jsx(Button, { href: linkToPDF, version: "secondary", target: "_blank", appendLeft: jsx(Icon, { name: "DocDownloadIcon", iconVersion: "color", className: "mr-0.5", width: "20", height: "20" }), text: "\u0421\u043A\u0430\u0447\u0430\u0442\u044C \u0432 PDF" })) : null] })));
|
|
4844
4862
|
|
|
4845
4863
|
function useTariffsInnerTableData(directoryName) {
|
|
4846
4864
|
const { data } = useAsyncData(tariffsInnerTableDataUrl(directoryName), fetchTariffsInnerTableData);
|
|
@@ -4872,7 +4890,7 @@
|
|
|
4872
4890
|
const [openTableInnerIdx, setOpenTableInnerIdx] = useState(undefined);
|
|
4873
4891
|
const handleOpenTableInnerIdx = useCallback((_) => setOpenTableInnerIdx(_), []);
|
|
4874
4892
|
const onHideContentClick = () => setTableInner(undefined);
|
|
4875
|
-
return (jsxs(TariffsTableRowContainer, { onHideContentClick: onHideContentClick, tableInner: tableInner, ...rest, children: [jsx("div", { className: `text-s py-5 ${FIRST_CELL_CLASSES} ${DIVIDER_CLASSES}`, children: jsxs("div", { className: "flex items-center text-primary-text", role: "cell", children: [header?.icon ? (jsx(ImgInner, { className: "mr-3.5 max-w-6", image:
|
|
4893
|
+
return (jsxs(TariffsTableRowContainer, { onHideContentClick: onHideContentClick, tableInner: tableInner, ...rest, children: [jsx("div", { className: `text-s py-5 ${FIRST_CELL_CLASSES} ${DIVIDER_CLASSES}`, children: jsxs("div", { className: "flex items-center text-primary-text", role: "cell", children: [header?.icon ? (jsx(ImgInner, { className: "mr-3.5 max-w-6", image: header.icon, width: "24", height: "24" })) : null, header?.title ? jsx("div", { className: "text-m-light", children: header?.title }) : null] }) }), data?.length ? (jsx(TableCarouselContainer, { activeIndex: activeIndex, columnWidth: COLUMN_WIDTH$1, version: "tariff", children: data.map((cells, i) => (jsx(TariffsTableCell, { cells: cells, rowIdx: rowIdx, cellIdx: i, setTableInner: handleSetTableInner, tableInner: tableInner, openTableInnerIdx: openTableInnerIdx, setOpenTableInnerIdx: handleOpenTableInnerIdx, ...rest }, String(i)))) })) : null] }));
|
|
4876
4894
|
});
|
|
4877
4895
|
|
|
4878
4896
|
const TariffsTable = JSX(({ className = '', title, description, rowHeaders, tariffsColumns: columns, hiddenRowsNum = 0, ...rest }) => {
|
|
@@ -4932,7 +4950,7 @@
|
|
|
4932
4950
|
};
|
|
4933
4951
|
const VerticalLayout = JSX(({ className = '', gap = '', align = 'stretch', isPadding = false, isInnerPadding = true, version = 'transparent', isTheme = false, ...rest }) => {
|
|
4934
4952
|
const innerPaddingStyle = isInnerPadding ? '' : '!p-0';
|
|
4935
|
-
return (jsx(BlockWrapper, { className: style('flex flex-col [&>*]:max-w-full', isPadding ? 'p-12' : '', gapStyles[gap], align && alignStyle[align], className), version: version, isTheme: isTheme, ...rest, children: renderChildren({
|
|
4953
|
+
return (jsx(BlockWrapper, { className: style('relative', 'flex flex-col [&>*]:max-w-full', isPadding ? 'p-12' : '', gapStyles[gap], align && alignStyle[align], className), version: version, isTheme: isTheme, ...rest, children: renderChildren({
|
|
4936
4954
|
...rest,
|
|
4937
4955
|
renderProps: (block, options) => renderBlock$1(block, options, { className: innerPaddingStyle }),
|
|
4938
4956
|
}) }));
|
|
@@ -4952,9 +4970,9 @@
|
|
|
4952
4970
|
className: 'mb-6',
|
|
4953
4971
|
})
|
|
4954
4972
|
: null] })] })));
|
|
4955
|
-
const renderIconBlock = (icon) => (jsxs("div", { className: "self-end", children: [icon?.src ? jsx(ImgInner, { image: icon }) : null, icon?.icon ? jsx(ImgInner, { image:
|
|
4973
|
+
const renderIconBlock = (icon) => (jsxs("div", { className: "self-end", children: [icon?.src ? jsx(ImgInner, { image: icon }) : null, icon?.icon ? jsx(ImgInner, { image: icon }) : null] }));
|
|
4956
4974
|
const renderDescriptionBlock = (__html) => (jsx("div", { className: "border-b border-main-divider pb-5 my-5", children: jsx(RichText, { __html: __html }) }));
|
|
4957
|
-
const renderBlock = (blockName, data, iconName) => (jsxs("div", { className: "flex mb-4", children: [jsx(Icon, { className: "pr-4", iconVersion: "black", name: iconName, width: "24", height: "24"
|
|
4975
|
+
const renderBlock = (blockName, data, iconName) => (jsxs("div", { className: "flex mb-4", children: [jsx(Icon, { className: "pr-4", iconVersion: "black", name: iconName, width: "24", height: "24" }), jsxs("div", { className: "flex flex-col first:pb-1", children: [jsx(Text, { size: "text-m-light", children: blockName }), data ? (jsx(Text, { size: "text-h6", color: "text-green", children: data })) : null] })] }));
|
|
4958
4976
|
|
|
4959
4977
|
const Blocks = {
|
|
4960
4978
|
ApplicationForm,
|
|
@@ -5144,7 +5162,7 @@
|
|
|
5144
5162
|
return (jsx("div", { className: "flex items-end absolute bottom-0 right-0 h-full pointer-events-none", children: jsx(LikeControl, { className: "rounded-tl-lg sticky bottom-0 pointer-events-auto" }) }));
|
|
5145
5163
|
}
|
|
5146
5164
|
|
|
5147
|
-
const packageVersion = "0.10.
|
|
5165
|
+
const packageVersion = "0.10.3";
|
|
5148
5166
|
|
|
5149
5167
|
exports.Blocks = Blocks;
|
|
5150
5168
|
exports.ContentPage = ContentPage;
|