@redneckz/wildless-cms-uni-blocks 0.10.2 → 0.10.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/migration-scripts/0.10.2.js +1 -1
- package/bin/migration-scripts/0.10.3.js +19 -0
- package/bundle/bundle.umd.js +164 -138
- 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/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/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 -1
- 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 -1
- package/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +3 -3
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/dist/components/ComparisonTable/HeaderCell.js +1 -1
- 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 -1
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Footer/MediaButton.js +1 -1
- 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 +1 -1
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.js +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.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 -1
- 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.js +2 -2
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/dist/components/RollupItem/RollupItem.js +2 -2
- package/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/dist/components/RollupItem/RollupItem.mobile.js +1 -1
- 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.js +1 -1
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableRow.js +1 -1
- 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/services/sitemap/SitemapData.d.ts +1 -0
- package/dist/ui-kit/BenefitItem/BenefitItem.js +1 -1
- 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/ButtonProps.d.ts +0 -2
- package/dist/ui-kit/Button/renderButtonsSection.js +1 -1
- 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/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/Sitemap/Sitemap.js +1 -1
- package/dist/ui-kit/Sitemap/Sitemap.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 -1
- 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 -1
- package/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +3 -3
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/lib/components/ComparisonTable/HeaderCell.js +1 -1
- 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 -1
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Footer/MediaButton.js +1 -1
- 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.js +1 -1
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.js +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.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 -1
- 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.js +2 -2
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/lib/components/RollupItem/RollupItem.js +2 -2
- package/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/lib/components/RollupItem/RollupItem.mobile.js +1 -1
- 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.js +1 -1
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableRow.js +1 -1
- 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/services/sitemap/SitemapData.d.ts +1 -0
- package/lib/ui-kit/BenefitItem/BenefitItem.js +1 -1
- 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/ButtonProps.d.ts +0 -2
- package/lib/ui-kit/Button/renderButtonsSection.js +1 -1
- 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/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/Sitemap/Sitemap.js +1 -1
- package/lib/ui-kit/Sitemap/Sitemap.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 +18 -18
- 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/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/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 -1
- 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 -1
- package/mobile/dist/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +3 -3
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- 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 -1
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Footer/MediaButton.js +1 -1
- 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 +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.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 -1
- 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.js +2 -2
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/mobile/dist/components/RollupItem/RollupItem.js +1 -1
- 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 +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableRow.js +1 -1
- 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/services/sitemap/SitemapData.d.ts +1 -0
- package/mobile/dist/ui-kit/BenefitItem/BenefitItem.js +1 -1
- 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/ButtonProps.d.ts +0 -2
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js +1 -1
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/mobile/dist/ui-kit/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/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/Sitemap/Sitemap.js +1 -1
- package/mobile/dist/ui-kit/Sitemap/Sitemap.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 -1
- 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 -1
- package/mobile/lib/components/CarouselProgramsCard/CarouselProgramsCard.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +3 -3
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- 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 -1
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Footer/MediaButton.js +1 -1
- 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 +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.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 -1
- 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.js +2 -2
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/mobile/lib/components/RollupItem/RollupItem.js +1 -1
- 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 +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableRow.js +1 -1
- 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/services/sitemap/SitemapData.d.ts +1 -0
- package/mobile/lib/ui-kit/BenefitItem/BenefitItem.js +1 -1
- 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/ButtonProps.d.ts +0 -2
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js +1 -1
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/mobile/lib/ui-kit/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/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/Sitemap/Sitemap.js +1 -1
- package/mobile/lib/ui-kit/Sitemap/Sitemap.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 -1
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +1 -1
- package/mobile/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +1 -1
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -1
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +2 -3
- package/mobile/src/components/ExchangeRateTile/CurrentLocation.tsx +1 -1
- package/mobile/src/components/Footer/Footer.tsx +1 -1
- package/mobile/src/components/Footer/MediaButton.tsx +0 -1
- 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 +30 -0
- package/mobile/src/components/HorizontalLayout/HorizontalLayout.tsx +7 -1
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +0 -1
- 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 -7
- package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +0 -1
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +2 -2
- package/mobile/src/components/RollupItem/RollupItem.tsx +2 -2
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +1 -1
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +0 -1
- package/mobile/src/components/TariffsTable/TariffsTableRow.tsx +1 -1
- package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +1 -0
- package/mobile/src/services/sitemap/SitemapData.ts +1 -0
- package/mobile/src/ui-kit/BenefitItem/BenefitItem.tsx +0 -1
- package/mobile/src/ui-kit/Button/ArrowButton.tsx +0 -1
- package/mobile/src/ui-kit/Button/ButtonProps.ts +0 -2
- package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +0 -1
- 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/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/Sitemap/Sitemap.tsx +1 -1
- 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 -1
- package/src/components/CarouselProductCard/CarouselProductCard.tsx +1 -1
- package/src/components/CarouselProgramsCard/CarouselProgramsCard.tsx +1 -1
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -1
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +2 -3
- package/src/components/ComparisonTable/HeaderCell.tsx +0 -1
- package/src/components/ExchangeRateTile/CurrentLocation.tsx +1 -1
- package/src/components/Footer/Footer.mobile.tsx +1 -1
- package/src/components/Footer/MediaButton.tsx +0 -1
- 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 +30 -0
- package/src/components/HorizontalLayout/HorizontalLayout.tsx +7 -1
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.tsx +4 -3
- package/src/components/LinkDocs/LinkDocs.mobile.tsx +0 -1
- package/src/components/LinkDocs/LinkDocs.tsx +1 -1
- package/src/components/OfficeMap/OfficeMap.tsx +1 -1
- package/src/components/OfficeMap/renderFunctions.tsx +1 -1
- package/src/components/OfficeServicesBlock/OfficeServicesBlock.tsx +1 -7
- package/src/components/ProductBlock/renderBackwardButton.tsx +0 -1
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +2 -2
- package/src/components/RollupItem/RollupItem.mobile.tsx +2 -2
- package/src/components/RollupItem/RollupItem.tsx +2 -2
- package/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +1 -1
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +0 -1
- package/src/components/StepsBlock/StepsBlock.tsx +0 -1
- package/src/components/TariffsTable/TariffsTableRow.tsx +1 -1
- package/src/components/VerticalLayout/VerticalLayout.tsx +1 -0
- package/src/services/sitemap/SitemapData.ts +1 -0
- package/src/ui-kit/BenefitItem/BenefitItem.tsx +0 -1
- package/src/ui-kit/Button/ArrowButton.tsx +0 -1
- package/src/ui-kit/Button/Button.fixture.tsx +5 -5
- package/src/ui-kit/Button/ButtonProps.ts +0 -2
- package/src/ui-kit/Button/renderButtonsSection.tsx +0 -1
- 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/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/Sitemap/Sitemap.tsx +1 -1
- package/src/ui-kit/YandexMap/renderSearchField.tsx +1 -2
package/bundle/bundle.umd.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniBlocks={})}(this,(function(e){"use strict";let t;const n=e=>(...n)=>t[e](...n),l=n("useState"),a=n("useEffect"),r=n("useCallback"),i=n("useMemo"),s=n("useRef");const o={PROD_BRANCH:"master"},c=new class{_=o;setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH||o.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CHAT_BOT(){return this._.CHAT_BOT}get CDN(){return d(this._.CDN)}get BASE_PATH(){return d(this._.BASE_PATH)}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},d=e=>e&&!e.endsWith("/")?`${e}/`:e,m="likesToken";function h(){async function e(){try{const e=JSON.parse(globalThis.localStorage?.getItem(m)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:n}=await e.json();return globalThis.localStorage?.setItem(m,JSON.stringify({token:t,name:n})),{token:t,name:n}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n},body:JSON.stringify({node_ids:t})}),{likes:l}=await e.json();return l||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:n,name:l}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:l},body:JSON.stringify({node_id:t,user_name:l})}),{likes:a}=await e.json();return a||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:n,name:l}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:l},body:JSON.stringify({node_id:t,user_name:l})}),{likes:a}=await e.json();return a||0}catch(e){return console.error(e),0}}}}const u=(...e)=>globalThis._uni._jsx(...e),p=(...e)=>globalThis._uni._jsxs(...e),x=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:g(e)),t._tmpl},g=e=>{function t(t,n){const{children:l,...a}=t||{},r=n?.slots?.default,i=l||r&&r();return e(Object.assign(a,i&&{children:i}),n)}return t.inheritAttrs=!1,t};class b{subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]=(this.subscribers[e]||[]).concat(t);const n=this.subjectsStateMap[e];return n&&t(n),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){e in this.subjectsStateMap&&(this.subjectsStateMap[e]=t),this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}const f=new b;function v(e,{sensitivity:t,rootRef:n}={}){const l=s(null),r=i((()=>({threshold:N(t),root:n?.current})),[t,n?.current]);return a((()=>{if(!l.current)return;const t=new IntersectionObserver(e,r);return t.observe(l.current),()=>{t.disconnect()}}),[e,r]),l}function N(e=0){const t=Math.round(10*e);return new Array(t).fill(0).map(((e,n)=>Math.min(n/t)),1).concat(1)}const y=new b;const w=(...e)=>e.flatMap((e=>e)).filter(Boolean).join(" "),C={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white",gray:"bg-main-divider text-primary-text",transparent:"bg-transparent text-primary-text","":""},k=x((({className:e="",version:t="primary",isTheme:n=!0,block:i,tag:s="section",role:o,children:c})=>{const d=s,m=function(e){return v(r((t=>{if(!e||!t?.length)return;const n=t[t.length-1];y.fire("intersection",{block:e,intersection:n})}),[e]),{sensitivity:1})}(i),[h,p]=l(!1);return a((()=>f.subscribe("tab",(e=>{p(Boolean(e.label&&i?.labels?.length&&!i.labels.includes(e.label)))}))),[i]),u(d,{className:w(S(Boolean(t&&n)),C[t],h?"hidden":"",e),...t&&n?{"data-ver":t}:{},...i?.anchor?{id:i.anchor,ref:m}:{},role:o,children:c})})),S=e=>e?"group":"",I={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},T=x((({className:e="",headingType:t="h3",as:n="h3",title:l,children:a})=>u(n,{className:`font-sans m-0 ${I[t]} ${e}`,children:l||a}))),$=new Map;function B(e,t,{fallback:n}={}){const r=i((()=>R(e)),[e]),[s,o]=l(),[c,d]=l(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};a((()=>{if(!r.every((e=>null===e)))try{const e=t(...r);"then"in e?(e=>{e.then((e=>$.get(r)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...r]);const u=r[0],p=n&&"string"==typeof u&&n[u];return{data:!s&&p?p:s,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function R(e){return e?Array.isArray(e)?e:e instanceof Function?R(e()):[e]:[e]}async function V(e,t){try{return e?await M(e,t):null}catch(e){console.error(e)}return null}async function M(e,t){const n=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await n.json()}function j(){const{data:e}=B("/api/v1/regions",M);return e||[]}const _=(e="")=>({open:t=>f.fire("dialog",{type:"open",id:e,message:t}),close:()=>f.fire("dialog",{type:"close"})}),L=e=>Boolean(e?.includes(":")),P=(e,t)=>Boolean(e&&!L(e)&&(!t||"_self"===t)),z=e=>(e||"").replace(/\?.*/,"").replace(/\/$/,""),D=(...e)=>e.filter(Boolean).join("/").replace(/\/+/g,"/");var O=Object.freeze({__proto__:null,isURL:L,isLocalURL:P,isHash:e=>Boolean(e?.startsWith("#")),withoutQuery:z,joinPath:D});const A=e=>(t,n=c.BASE_PATH)=>{if(!t||L(t)||E(t,c.CDN))return t;const l=t.startsWith("/");return D(E(t,n)?"":n,l?"/":e.pathname?.split("/").slice(0,-1).join("/"),t)},E=(e,t)=>t&&e&&e.startsWith(t),F=(e,t)=>F._impl(e,t);function U(){return U._impl()}function H(e={}){const{isRemote:t,basePath:n}=e,l=U(),{close:a}=_();return e=>({...e,href:t?e.href:A(l)(e.href,n),"aria-label":e.text,onClick:F(r(e),e)});function r({href:e,target:n,onClick:r}){return i=>{r&&r(i),e&&!t&&P(e,n)&&(a(),i?.preventDefault(),l.push(e))}}}F._impl=e=>e,F.setup=e=>{F._impl=e},U._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),U.setup=e=>{U._impl=e};const G={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:"",transparent:"",gray:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active","":""},X="bg-main-divider text-main-disabled",W={primary:X,secondary:X,white:X,link:"",transparent:"",gray:X,"":""},K="text-center font-sans select-none",J={primary:"group-hover/btn:brightness-0 group-hover/btn:invert",secondary:"group-hover/btn:brightness-0 group-hover/btn:invert",white:"group-hover/btn:brightness-0 group-hover/btn:invert",link:"",transparent:"",gray:"group-hover/btn:brightness-0 group-hover/btn:invert","":""},Y=x((e=>{const{text:t,aboveText:n,appendLeft:l,appendRight:a,version:r="primary"}=e;return p("div",{className:w(q(e),"flex gap-2"),children:[l?u("div",{className:J[r],children:l}):null,Z(e)?p("div",{children:[n?u("div",{className:"text-xs-light text-left",children:n}):null,u("div",{className:"text-left "+(n?"text-s -mt-0.5":"text-l"),children:t})]}):null,a?u("div",{className:J[r],children:a}):null]})})),q=e=>{const{version:t,aboveText:n,rounded:l}=e;if("link"===t)return"";const a=""+(n?"py-2.5 px-7":"py-4 px-4");return["group/btn items-center justify-center",Z(e)?a:"h-12 w-12",l?"rounded-full":""].join(" ")},Z=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),Q=({className:e,rounded:t,version:n})=>["inline-block",K,n?W[n]:"",t?"rounded-full":"rounded-md",e].join(" "),ee=({className:e,rounded:t,version:n})=>[K,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border h-fit",n?G[n]:"",t?"rounded-full":"rounded-md",e].join(" "),te=x((({disabled:e,children:t,...n})=>{const l=H()(n),a=t??u(Y,{...l});return u(e?le:ne,{...l,children:a})})),ne=x((({className:e="",href:t,rel:n,target:l,ariaLabel:a,version:r,rounded:i,onClick:s,children:o})=>u("a",{className:ee({className:e,version:r,rounded:i}),href:t,rel:n,target:l,"aria-label":a,role:t?"link":"button",onClick:s,children:o}))),le=x((({className:e,ariaLabel:t,version:n,rounded:l,children:a})=>u("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:Q({className:e,rounded:l,version:n}),children:a}))),ae=x((({children:e,...t})=>u("p",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),re=x((({children:e,...t})=>u("span",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),ie=x((({link:e})=>p(ae,{size:"text-s-light",color:"text-secondary-text",children:[u(re,{children:"Нажимая кнопку, вы подтверждаете согласие с "}),e?u(te,{href:e.href,ariaLabel:"условия передачи данных",target:e.target,className:"text-primary-main",children:u(re,{children:e.text})}):null]}))),se=x((({className:e="",inputClassName:t="",id:n,name:l,type:a="text",label:i,value:s="",valid:o=!0,children:c,onChange:d,onBlur:m,...h})=>{const x=r((e=>{const t=e.target.validity.valid?e.target.value:s;d(t)}),[d]),g=r((e=>{if(!m)return;const t=e.target.validity.valid?e.target.value:s;m(t)}),[m]),b=c?"pr-8":"",f=o?"border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text":"border-error";return p("div",{className:`relative ${e}`,children:[i?u("label",{className:"block text-m-light mb-2",children:i}):null,u("input",{className:`w-full border rounded-md text-primary-text outline-none p-4 ${b} ${f} ${t}`,id:n,name:l||n,type:a,value:s,onChange:x,onBlur:g,...h}),c]})})),oe=x((({className:e,label:t,value:n,error:l,onChange:a,onBlur:r})=>p("div",{className:e,children:[u(se,{type:"text","aria-label":t,label:t,valid:Boolean(!l),value:n,onChange:a,onBlur:r}),u("div",{className:"h-2",children:u(re,{size:"text-xs-light",color:"text-error",children:l||null})})]}))),ce="Некорректно заполненное поле",de=(e,t)=>{switch(e){case"name":return he(t);case"inn":return ue(t);default:return me(t)}},me=e=>e?"":ce,he=e=>e.length>1?"":ce,ue=e=>10===e.length||12===e.length?"":ce,pe=({fullName:e,inn:t,name:n,phone:l,handleChange:a,errors:r,handleChangeErrors:i})=>p("div",{className:"flex justify-between gap-5 mb-5",children:[p("div",{className:"w-1/2",children:[u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Наименование организации",error:r.fullName,value:e,onChange:e=>a({fullName:e}),onBlur:e=>i({fullName:de("fullName",e)})}),u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Контактное лицо",error:r.name,value:n,onChange:e=>a({name:e}),onBlur:e=>i({name:de("name",e)})})]}),p("div",{className:"w-1/2",children:[u(oe,{className:"shrink-0 text-l w-full mb-3",label:"ИНН",error:r.inn,value:t,onChange:e=>a({inn:e}),onBlur:e=>i({inn:de("inn",e)})}),u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Телефон",error:r.phone,value:l,onChange:e=>a({phone:e}),onBlur:e=>i({phone:de("phone",e)})})]})]}),xe=[{name:"Торговый эквайринг"},{name:"Мобильный эквайринг"},{name:"Интернет-эквайринг"},{name:"QR-эквайринг (СБП)"},{name:"Все виды эквайринга"}];function ge(e){const t=s(null);return a((()=>{const n=n=>{t&&t.current&&n.target instanceof Node&&!t.current.contains(n.target)&&e()};return document.addEventListener("click",n),()=>{document.removeEventListener("click",n)}}),[e]),t}const be={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},fe=x((({className:e="",imageClassName:t="",name:n="",alt:l=`Иконка ${n}`,title:a=l,iconVersion:r="color",asSVG:i,...s})=>{const o=U(),d=A(o)(D(c.CDN,"/icons",`${n}.svg`));return i&&"normal"!==r?u(Ne,{className:e,children:p("svg",{className:w(ve(s.width),be[r],"white"===r?"invert":"",t),...s,"aria-hidden":"true",children:[a?u("title",{children:a}):null,l?u("desc",{children:l}):null,u("use",{href:`${d}#icon`,xlinkHref:`${d}#icon`})]})}):(e.includes("h-")||(s.style={height:`${s.height}px`}),u("img",{className:e,src:d,alt:l,title:a,"aria-hidden":"true",...s}))})),ve=e=>e?"":"w-full h-full",Ne=x((({className:e,children:t})=>e?u("div",{className:e,children:t}):t)),ye=x((({className:e="",isBorder:t=!0,label:n,options:i=[],value:s,onChange:o,placeholder:c="",valid:d=!0,onValidate:m})=>{const[h,x]=l(i[0]||{key:"",text:""}),[g,b]=l(!1),f=ge(r((()=>b(!1)),[]));return a((()=>{x(s||{key:"",text:""})}),[s]),p("div",{className:`${e}`,ref:f,children:[n?u("div",{className:"mb-2",children:u(re,{size:"text-m",color:"text-primary-text",font:"font-light",children:n})}):null,p("div",{className:"relative "+(g?"z-20":"z-10"),children:[p("div",{className:`text-l flex justify-between items-center mb-0.5 text-primary-text cursor-pointer\n ${ke(t,d)}`,onClick:()=>b(!g),children:[u("p",{className:"p-4 pr-8 h-14 overflow-hidden text-ellipsis whitespace-nowrap",children:h?.text||c}),u(fe,{name:"ArrowUpIcon",width:"16",height:"16",className:"absolute right-3 "+(g?"":"rotate-180")})]}),i?.length?u("div",{className:`h-0 ${we(g)}`,children:u("div",{className:"bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:i.map(Ce((e=>{x(e),b(!1),o(e),m&&m(e.text)}),g,(e=>Boolean(e.key===h.key))))})}):null]})]})})),we=e=>e?"":"overflow-hidden",Ce=(e,t,n)=>(l,a)=>p("div",{onClick:()=>{e(l)},className:"flex px-4 py-3 cursor-pointer hover:bg-main-divider pr-11 relative",children:[u("span",{className:"min-h-6",children:l.text}),u(fe,{name:"DoneSimpleIcon",width:"16",height:"16",className:["absolute right-4 pt-0.5",n(l)&&t?"":"hidden"].join(" ")})]},String(a)),ke=(e,t)=>`\n ${e?"border rounded-md hover:border-primary-hover":""} ${t?" border-gray":"border-error"} `,Se=x((({data:e,fieldLabel:t,fieldValue:n,selected:l,placeholder:a="",setSelected:r,label:i,error:s,onValidate:o})=>{const c=e.filter(Boolean).map((e=>({key:e?.[n||t],text:e?.[t]}))),d=c.find((e=>e.key===l));return p("div",{children:[u(ye,{options:c,label:i,valid:Boolean(!s),placeholder:a||l,onChange:e=>r(e.key),value:d,onValidate:o}),u("div",{className:"h-2",children:u(re,{size:"text-xs-light",color:"text-error",children:s||null})})]})})),Ie=({acquiringType:e,regions:t,region:n,handleChange:l,errors:a,handleChangeErrors:r})=>p("div",{className:"flex justify-between gap-5 mb-7",children:[u("div",{className:"w-1/2",children:u(Se,{data:xe,fieldValue:"name",fieldLabel:"name",error:a.acquiringType,selected:e,setSelected:e=>l({acquiringType:e}),onValidate:e=>r({acquiringType:de("acquiringType",e)}),label:"Вид эквайринга",placeholder:"Выберите эквайринг"})}),u("div",{className:"w-1/2",children:u(Se,{data:t,fieldValue:"code",fieldLabel:"name",error:a.region,selected:n,setSelected:e=>l({region:e}),onValidate:e=>r({region:de("region",e)}),label:"Адрес",placeholder:"Выберите адрес"})})]}),Te=x((({value:e=!1,text:t,type:n="checkbox",onChange:l})=>p("div",{role:n,"aria-checked":e,className:"flex justify-start items-center w-full cursor-pointer mb-4",onClick:()=>l&&l(!e),children:[u("div",{className:"relative flex-shrink-0 duration-300 w-9 h-5 mr-3 rounded-2xl "+(e?"bg-primary-main":"bg-main-divider"),children:u("div",{className:"absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded-full "+(e?"left-[50%]":"left-[5%]")})}),u("div",{children:u(re,{size:"text-m",font:"font-light",color:"text-primary-text",children:t})})]}))),$e=({"onlineСheckout":e,posTerminal:t,handleChange:n})=>p("div",{className:"mb-5",children:[u(Te,{value:e,text:"Хочу купить онлайн-кассу",onChange:()=>n({"onlineСheckout":!e})}),u(Te,{value:t,text:"Хочу купить POS-терминал",onChange:()=>n({posTerminal:!t})})]}),Be=(e,t)=>{const n=ee({className:"text-white",version:e?.version});return u("button",{type:"submit",className:`p-4 ${n} ${t}`,children:e?.text?e.text:"Отправить заявку"})},Re=({initialFormState:e,errorsInitialState:t,handleSubmit:n})=>{const[a,i]=l(e),[s,o]=l(t||{}),c=r((e=>i((t=>({...t,...e})))),[]),d=r((e=>o((t=>({...t,...e})))),[]),m=r((async e=>{const t=[],l=Object.keys(a).filter((e=>Object.keys(s).includes(e))).reduce(((e,t)=>(e[t]=a[t],e)),{});for(const[e,n]of Object.entries(l)){const l=de(e,n);t.push(l),d({[e]:l})}t.some((e=>0!==e.length))||n&&await n(e)}),[a]);return{formState:a,handleChange:c,errors:s,handleChangeErrors:d,sendForm:m}},Ve={acquiringType:"Торговый эквайринг",region:"",fullName:"",inn:"",name:"",phone:"","onlineСheckout":!1,posTerminal:!1},Me={acquiringType:"",region:"",fullName:"",inn:"",name:"",phone:""},je=x((e=>{const{button:t,link:n,handleSubmit:l}=e,{formState:a,errors:r,handleChange:i,handleChangeErrors:s,sendForm:o}=Re({initialFormState:Ve,errorsInitialState:Me,handleSubmit:l}),{acquiringType:c,region:d,fullName:m,inn:h,name:x,phone:g,"onlineСheckout":b,posTerminal:f}=a,v=j();return p("form",{onSubmit:e=>{e.preventDefault(),o({typeForm:"acqr",region:v.find((e=>e.code===d))?.name||"",partnerComments:`Вид эквайринга=${c}/Онлайн касса=${b}/POS-терминал=${f}`,fullName:m,inn:h,name:x,phone:g})},className:"container",children:[u(T,{headingType:"h6",title:"Вид эквайринга и регион",className:"text-center mb-4"}),Ie({acquiringType:c,regions:v,region:d,handleChange:i,errors:r,handleChangeErrors:s}),u(T,{headingType:"h6",title:"Данные организации",className:"text-center mb-4"}),pe({fullName:m,inn:h,name:x,phone:g,handleChange:i,errors:r,handleChangeErrors:s}),$e({"onlineСheckout":b,posTerminal:f,handleChange:i}),Be(t,"mb-4"),u(ie,{link:n})]})})),_e=({name:e,phone:t,mail:n,inn:l,handleChange:a,errors:r,handleChangeErrors:i})=>p("div",{className:"flex justify-between gap-5",children:[p("div",{className:"w-1/2",children:[u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Контактное лицо",error:r.name,value:e,onChange:e=>a({name:e}),onBlur:e=>i({name:de("name",e)})}),u(oe,{className:"shrink-0 text-l w-full mb-3",label:"ИНН",error:r.inn,value:l,onChange:e=>a({inn:e}),onBlur:e=>i({inn:de("inn",e)})})]}),p("div",{className:"w-1/2",children:[u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Телефон",error:r.phone,value:t,onChange:e=>a({phone:e}),onBlur:e=>i({phone:de("phone",e)})}),u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Электронная почта",error:r.mail,value:n,onChange:e=>a({mail:e}),onBlur:e=>i({mail:de("mail",e)})})]})]}),Le=({regions:e,region:t,handleChange:n,errors:l,handleChangeErrors:a})=>u("div",{className:"flex justify-between gap-5 mb-5",children:u("div",{className:"w-full",children:u(Se,{data:e,fieldValue:"code",fieldLabel:"name",error:l.region,selected:t,setSelected:e=>n({region:e}),onValidate:e=>a({region:de("region",e)}),label:"Регион",placeholder:"Выберите регион"})})}),Pe={region:"",name:"",phone:"",inn:"",mail:""},ze=x((e=>{const{button:t,link:n,handleSubmit:l}=e,{formState:a,errors:r,handleChange:i,handleChangeErrors:s,sendForm:o}=Re({initialFormState:Pe,errorsInitialState:Pe,handleSubmit:l}),{region:c,name:d,phone:m,inn:h,mail:x}=a,g=j();return p("form",{onSubmit:e=>{e.preventDefault(),o({typeForm:"bcrd",region:g.find((e=>e.code===c))?.name||"",name:d,phone:m,inn:h,mail:x})},className:"container",children:[Le({regions:g,region:c,handleChange:i,errors:r,handleChangeErrors:s}),_e({name:d,phone:m,inn:h,mail:x,handleChange:i,errors:r,handleChangeErrors:s}),Be(t,"mb-4"),u(ie,{link:n})]})})),De=[];const Oe=async e=>await V(e,{method:"GET"})||De,Ae=["От 50 000 ₽","До 3 000 000 ₽"],Ee=["От 1 года","До 5 лет"],Fe=({fullName:e,inn:t,name:n,phone:l,mail:a,annualRevenue:r,handleChange:i,errors:s,handleChangeErrors:o})=>p("div",{className:"flex justify-between gap-5 mb-7",children:[p("div",{className:"w-1/2",children:[u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Наименование организации",value:e,onChange:e=>i({fullName:e})}),u(oe,{className:"shrink-0 text-l w-full mb-3",label:"ИНН",error:s.inn,value:t,onChange:e=>i({inn:e}),onBlur:e=>o({inn:de("inn",e)})}),u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Телефон",error:s.phone,value:l,onChange:e=>i({phone:e}),onBlur:e=>o({phone:de("phone",e)})})]}),p("div",{className:"w-1/2",children:[u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Годовая выручка, ₽",error:s.annualRevenue,value:r,onChange:e=>i({annualRevenue:e}),onBlur:e=>o({annualRevenue:de("annualRevenue",e)})}),u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Контактное лицо",error:s.name,value:n,onChange:e=>i({name:e}),onBlur:e=>o({name:de("name",e)})}),u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Электронная почта",value:a,onChange:e=>i({mail:e})})]})]}),Ue=e=>new Intl.NumberFormat("ru-RU",{}).format(e),He=(e,t,n)=>Math.max(t,Math.min(e,n)),Ge=e=>e.split(/\s+/).join(""),Xe=x((({className:e,title:t,items:n=[],min:l=1,max:a=100,step:r=1,value:i=l,disabled:s=!1,onChange:o})=>{const c=e=>{o&&o(He(Number(Ge(e.target.value)),l,a))},d={backgroundSize:`${(100*(i-l)/(a-l)).toFixed(2)}% 100%`};return p("div",{className:e,children:[p("label",{className:"block relative",children:[t?u("span",{className:"text-m-light text-primary-text",children:t}):null,u("input",{className:"m-0 mt-2 font-sans text-h3 w-full h-14 border border-solid border-gray rounded-md\n outline-none p-0 pl-4 box-border text-primary-text hover:border-primary-hover focus:border-primary-text disabled:border-gray disabled:bg-main-divider",value:Ue(i),disabled:s,onChange:c,onBlur:c}),u("div",{className:"absolute inset-x-0 -bottom-1 px-4 leading-[18px]",children:u("input",{className:"box-border w-full m-0 cursor-pointer slider",type:"range",min:l,max:a,step:r,value:i,disabled:s,onChange:c,style:d})})]}),We(n)]})}));function We(e){return u("div",{className:"flex justify-between my-2",children:e.map(((e,t)=>u("span",{className:"text-s-light text-secondary-text",children:e},String(t))))})}const Ke=e=>p("div",{className:"w-1/2",children:[u("label",{children:u(re,{size:"text-m-light",children:e.label})}),u(Xe,{...e})]}),Je=({amount:e,term:t,handleChange:n})=>p("div",{className:"flex justify-between gap-5 mb-7",children:[Ke({label:"Сумма кредита, ₽",value:e,onChange:e=>n({amount:e}),min:5e4,max:3e6,items:Ae}),Ke({label:"Срок кредита, месяцев",value:t,onChange:e=>n({term:e}),min:1,max:60,items:Ee})]}),Ye=({regions:e,region:t,branches:n,department:l,handleChange:a,errors:r,handleChangeErrors:i})=>p("div",{className:"flex justify-between gap-5 mb-7",children:[u("div",{className:"w-1/2",children:u(Se,{data:e,fieldValue:"code",fieldLabel:"name",error:r.region,selected:t,setSelected:e=>a({region:e,department:""}),onValidate:e=>i({region:de("region",e)}),label:"Регион",placeholder:"Выберите регион"})}),u("div",{className:"w-1/2",children:u(Se,{data:n,fieldValue:"branchCode",fieldLabel:"address",error:r.department,selected:l,setSelected:e=>a({department:e}),onValidate:e=>i({department:de("department",e)}),label:"Адрес",placeholder:"Выберите адрес"})})]}),qe={amount:5e4,term:12,fullName:"",inn:"",name:"",phone:"",mail:"",region:"",department:"",annualRevenue:""},Ze={annualRevenue:"",inn:"",name:"",phone:"",region:"",department:""},Qe=x((({button:e,link:t,handleSubmit:n})=>{const l=j(),{formState:a,errors:r,handleChange:i,handleChangeErrors:s,sendForm:o}=Re({initialFormState:qe,errorsInitialState:Ze,handleSubmit:n}),{amount:c,term:d,fullName:m,inn:h,name:x,phone:g,mail:b,region:f,department:v,annualRevenue:N}=a,y=function(e){const{data:t}=B(e?`/api/v1/branches?regionCode=${e}`:null,Oe);return t||De}(f).filter((e=>e.address));return p("form",{onSubmit:e=>{e.preventDefault(),o({typeForm:"cred",fullName:m,inn:h,name:x,phone:g,mail:b,region:l.find((e=>e.code===f))?.name||"",department:y.find((e=>e.branchCode===v))?.address||"",partnerComments:`Сумма=${c}/Срок=${d}/Выручка=${N}`})},className:"container",children:[u(T,{headingType:"h6",title:"Параметры кредита",className:"text-center mb-4"}),Je({amount:c,term:d,handleChange:i}),u(T,{headingType:"h6",title:"Данные организации",className:"text-center mb-4"}),Fe({fullName:m,inn:h,name:x,phone:g,mail:b,annualRevenue:N,handleChange:i,errors:r,handleChangeErrors:s}),u(T,{headingType:"h6",title:"Офис банка",className:"text-center mb-4"}),Ye({regions:l,region:f,branches:y,department:v,handleChange:i,errors:r,handleChangeErrors:s}),Be(e,"mb-4"),u(ie,{link:t})]})})),et={name:"",phone:""},tt=x((e=>{const{button:t,link:n,handleSubmit:l}=e,{formState:a,errors:r,handleChange:i,handleChangeErrors:s,sendForm:o}=Re({initialFormState:et,errorsInitialState:et,handleSubmit:l}),{name:c,phone:d}=a;return p("form",{onSubmit:e=>{e.preventDefault(),o({typeForm:"dpst",name:c,phone:d})},className:"container",children:[u(T,{headingType:"h6",title:"Оставьте заявку и мы ответим на любые вопросы по депозитам",className:"text-center mb-4"}),nt({name:c,phone:d,handleChange:i,errors:r,handleChangeErrors:s}),p("div",{className:"flex justify-between items-center max-w-[560px] m-auto",children:[u("div",{className:"flex-1",children:u(ie,{link:n})}),Be(t)]})]})})),nt=({name:e,phone:t,handleChange:n,errors:l,handleChangeErrors:a})=>p("div",{className:"max-w-[560px] m-auto",children:[u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Имя",error:l.name,value:e,onChange:e=>n({name:e}),onBlur:e=>a({name:de("name",e)})}),u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Телефон",error:l.phone,value:t,onChange:e=>n({phone:e}),onBlur:e=>a({phone:de("phone",e)})})]}),lt=(e,t)=>e?.media&&t?.media?e.media-t.media:0,at=x((({className:e="",image:t,imageClassName:n="",isMobile:l=!1,pathPrefix:a})=>{const r=U();return p("picture",{className:`${l?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.filter((e=>e?.src)).sort(lt).map((({src:e,format:n,media:l},i)=>u("source",{srcSet:it(r,a)(e),type:st(n),media:l?`(max-width: ${l}px)`:"",...t.size},`${i}_${e}`))):null,t?.src?rt({...t,src:it(r,a)(t.src)},n,l):null]})})),rt=(e,t="",n=!1)=>{const l={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},a=e.title||"",r=e.alt||e.title,i=n?"m-auto":"m-0";return u("img",{src:e.src,className:`${i} ${t}`,alt:r,title:a,style:l,...e.size})},it=(e,t)=>n=>n&&!L(n)?A(e)(D(t,n)):n,st=e=>e?`image/${String(e)}`:void 0,ot=x((({className:e="",image:t,imageClassName:n="",isMobile:l,pathPrefix:a,...r})=>t?.src||t?.icon?t.icon?u(fe,{className:e,imageClassName:n,iconVersion:t?.iconVersion,name:t.icon,...r}):u(at,{className:e,imageClassName:n,image:t,isMobile:l,pathPrefix:a}):null)),ct=x((({className:e,viewBox:t,fill:n="none",width:l,height:a,paths:r,...i})=>u("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:n,width:l,height:a,children:r.map((({d:e,fill:t,...n},l)=>u("path",{d:e,fill:t||"currentColor",...i,...n},l)))}))),dt=[{d:"M10.207.793a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 0 1 1.414-1.414L3.5 6.086 8.793.793a1 1 0 0 1 1.414 0Z",fillRule:"evenodd",clipRule:"evenodd",fill:"white"}],mt=x((({className:e,text:t,checked:n,disabled:l,isRadio:a,onChange:r})=>u("div",{className:e,children:p("label",{className:"flex items-center relative cursor-pointer group/box",children:[u("input",{className:w("peer appearance-none w-5 h-5 border-solid cursor-pointer checked:border-primary-main m-0",a?"rounded-full border-2":"rounded checked:bg-primary-main disabled:bg-main-disabled border",n?"border-black":"border-gray",l?"":"group-hover/box:border-primary-hover"),type:"checkbox",onChange:e=>r&&r(e.target.checked),checked:n,disabled:l}),a?u("div",{className:"left-1 w-3 h-3 rounded-full bg-primary-main hidden absolute peer-checked:block"}):u(ct,{paths:dt,className:"hidden absolute left-1 ml-px peer-checked:block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"}),t?u("span",{className:"font-sans ml-3 text-l-light",children:t}):null]})}))),ht=({currencyControl:e,documentaryOperations:t,conversionOperations:n,text:l,handleChange:a})=>p("div",{className:"mb-6",children:[p("div",{className:"flex items-center mb-4 gap-6",children:[u(mt,{text:"Валютный контроль",checked:e,onChange:e=>a({currencyControl:e})}),u(mt,{text:"Документарные операции",checked:t,onChange:e=>a({documentaryOperations:e})}),u(mt,{text:"Конверсионные операции",checked:n,onChange:e=>a({conversionOperations:e})})]}),u("textarea",{placeholder:"Укажите интересующий вас вопрос, место ведения бизнеса и удобное время для телефонного звонка",className:"block w-full resize-y min-h-24 p-4 outline-none border rounded-md border-main-stroke hover:border-primary-hover active:focus:border-primary-text",value:l,onChange:e=>a({text:e.target.value})})]}),ut=({fullName:e,name:t,phone:n,mail:l,handleChange:a,errors:r,handleChangeErrors:i})=>p("div",{children:[p("div",{className:"flex justify-between gap-5",children:[u("div",{className:"w-1/2",children:u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Наименование организации",error:r.fullName,value:e,onChange:e=>a({fullName:e}),onBlur:e=>i({fullName:de("fullName",e)})})}),u("div",{className:"w-1/2",children:u(oe,{className:"shrink-0 text-l w-full mb-3",label:"ФИО",error:r.name,value:t,onChange:e=>a({name:e}),onBlur:e=>i({name:de("name",e)})})})]}),p("div",{className:"flex justify-between gap-5 mb-7",children:[u("div",{className:"w-1/2",children:u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Телефон",error:r.phone,value:n,onChange:e=>a({phone:e}),onBlur:e=>i({phone:de("phone",e)})})}),u("div",{className:"w-1/2",children:u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Электронная почта",error:r.mail,value:l,onChange:e=>a({mail:e}),onBlur:e=>i({mail:de("mail",e)})})})]})]}),pt={fullName:"",name:"",phone:"",mail:"",currencyControl:!1,documentaryOperations:!1,conversionOperations:!1,text:""},xt={fullName:"",name:"",phone:"",mail:"",text:""},gt=x((e=>{const{button:t,link:n,handleSubmit:l}=e,{formState:a,errors:r,handleChange:i,handleChangeErrors:s,sendForm:o}=Re({initialFormState:pt,errorsInitialState:xt,handleSubmit:l}),{fullName:c,name:d,phone:m,mail:h,currencyControl:x,documentaryOperations:g,conversionOperations:b,text:f}=a;return p("form",{onSubmit:e=>{e.preventDefault(),o({typeForm:"kved",fullName:c,name:d,phone:m,mail:h,partnerComments:`Валютный контроль=${x}/Документарные операции=${g}/Конверсионные операции=${b}/Доп инф=${f}`})},className:"container",children:[u(T,{headingType:"h6",title:"Данные организации",className:"text-center mb-4"}),ut({fullName:c,name:d,phone:m,mail:h,handleChange:i,errors:r,handleChangeErrors:s}),u(T,{headingType:"h6",title:"Интересующий вопрос",className:"text-center mb-4"}),ht({currencyControl:x,documentaryOperations:g,conversionOperations:b,text:f,handleChange:i}),p("div",{className:"flex items-center pb-9 mb-9 border-b border-main-divider",children:[Be(t,"mr-5"),u(ie,{link:n})]}),u(T,{headingType:"h6",title:"Или свяжитесь с нами удобным способом",className:"text-center mb-4"}),p("div",{className:"flex",children:[p("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:[u(ot,{image:{icon:"PhoneIcon"},width:"24",height:"24",className:"mr-3"}),u("span",{children:"8 (800) 200-78-70"})]}),p("a",{className:"flex items-center text-primary-text no-underline","aria-label":"ved@rshb.ru",href:"mailto:ved@rshb.ru",children:[u(ot,{image:{icon:"MailIcon"},width:"24",height:"24",className:"mr-3"}),u("span",{children:"ved@rshb.ru"})]})]})]})})),bt=x((({responceType:e})=>{const t="OK"===e;return p("div",{className:`flex items-center mt-5 p-5 rounded-md ${t?"bg-responce-ok":"bg-responce-fail"}`,children:[u(ot,t?{image:{icon:"ResponceOKIcon"},width:"42",height:"42",className:"mr-4"}:{image:{icon:"ResponceFailIcon"},width:"37",height:"34",className:"mr-4"}),p("div",{children:[u(T,{headingType:"h6",title:t?"Ваша заявка отправлена":"Не удалось отправить заявку",className:"mb-1"}),u(re,{size:"text-l-light",color:"text-secondary-text",children:t?"Совсем скоро мы с вами свяжемся":"Пожалуйста, повторите позднее"})]})]})})),ft={credit:e=>u(Qe,{...e}),acquiring:e=>u(je,{...e}),"business-card":e=>u(ze,{...e}),deposit:e=>u(tt,{...e}),wed:e=>u(gt,{...e})},vt={send:async function(e){try{const t=await fetch("/api/v1/sendcorporatelead",{method:"POST",headers:{"Content-Type":"application/json"},mode:"cors",body:JSON.stringify(e)});return await t.json()}catch(e){return null}}},Nt=x((e=>{const{className:t="",title:n,typeForm:a="credit",button:i,link:s,...o}=e,[c,d]=l(""),m=r((async e=>{const t=await vt.send(e)?"OK":"Fail";return d(t),t}),[]);return u(k,{className:`font-sans bg-white p-[50px] pb-9 ${t}`,...o,children:p("div",{className:"container max-w-[978px]",children:[n?u(T,{headingType:"h3",title:n,className:"text-center mb-8"}):null,ft[a]({button:i,link:s,handleSubmit:m}),c?u(bt,{responceType:c}):null]})})})),yt=x((({className:e="",title:t,benefitList:n,...l})=>p(k,{className:`p-12 flex flex-col items-center ${e}`,...l,children:[t?u(T,{headingType:"h3",as:"h2",className:"max-w-[47rem] text-center",title:t}):null,n?.length?u("div",{className:"flex flex-wrap w-full justify-center gap-x-20 mt-8",children:n.map(wt)}):null]}))),wt=(e,t)=>{const n=e.description;return p("div",{className:"flex items-center basis-1/2 max-w-[500px] mb-14",children:[e?.icon?.icon?u(ot,{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:e.icon,asSVG:!0}):null,e?.icon?.src?u(ot,{image:e.icon}):null,p("div",{className:"ml-5 h-full",children:[e?.label?u(T,{headingType:"h6",children:e.label}):null,Ct(n)]})]},String(t))},Ct=e=>{const t=e?.benefitType||null;return e&&t?u("div",{className:"mt-2 text-l-light text-secondary-text group-data-secondary:text-white/80",children:"list"===t?St(e):kt(e)}):null},kt=e=>e?.name||null,St=e=>{const t=e?.bullets?"list-disc pl-6":"";return e?.items&&e.items.length>0?u("ul",{className:t,children:e.items.map(((e,t)=>u("li",{children:e},`benefitListItem-${t}`)))}):null},It=(e,{className:t="",buttonClassName:n,isVertical:l}={})=>e?.length&&e.some((e=>e?.text||e?.icon?.icon))?u("div",{className:w("flex",l?"flex-col gap-2":"gap-4",t),children:e.map(Tt(n))}):null,Tt=(e="")=>(t,n)=>{const{text:l,icon:a,iconRight:r,version:i,...s}=t||{},o="secondary"===i?"color":"white",c=a?.iconVersion?a?.iconVersion:o;return l||a?.icon?u(te,{className:e,appendLeft:$t({...a,iconVersion:c}),appendRight:$t({...r,iconVersion:c}),version:i,text:l,...s},n?String(n):""):null},$t=e=>e?.icon||e?.src?u(ot,{image:e,width:String(e?.size?.width||24),height:String(24),asSVG:!0}):null,Bt={XXL:{wrapper:"gap-[18px]",title:{headingType:"h0",as:"h1"},descriptionSize:"text-h5"},XL:{wrapper:"gap-4",title:{headingType:"h1",as:"h1"},descriptionSize:"text-xl-light"},L:{wrapper:"gap-4",title:{headingType:"h2",as:"h2"},descriptionSize:"text-xl-light"},M:{wrapper:"gap-3",title:{headingType:"h3",as:"h3"},descriptionSize:"text-xl-light"},S:{wrapper:"gap-2",title:{headingType:"h4",as:"h4"},descriptionSize:"text-xl-light"},XS:{wrapper:"gap-2",title:{headingType:"h5",as:"h5"},descriptionSize:"text-l-light"}},Rt={H6:"text-h6",XL_L:"text-xl-light",XL_R:"text-xl",L_L:"text-l-light",L_R:"text-l",M:"text-m-light",S:"text-s-light",XS:"text-xs-light"},Vt=x((({className:e,title:t,description:n,headlineVersion:l="XL",align:a="text-center",as:r,isPadding:i=!0,isTheme:s=!1,version:o="",...c})=>{const d=Bt[l];return p(k,{className:w("flex flex-col",i?"p-12":"",d.wrapper,e),version:o,isTheme:s,...c,children:[t?u(T,{className:w("whitespace-pre-wrap",a),...d?.title,as:r||d?.title.as,title:t}):null,n?u(ae,{size:d.descriptionSize,align:a,children:n}):null]})})),Mt=x((e=>{const{className:t="",title:n,description:l,bonusItems:a,...r}=e;return u(k,{className:`p-12 pb-9 ${t}`,...r,children:p("div",{className:"container",children:[u(Vt,{className:"!p-0",title:n,description:l,headlineVersion:"M"}),u("div",{className:"flex flex-wrap w-full mt-9",children:a?.length?a.map(((e,t)=>p("div",{className:"flex-grow w-[49%] border border-gray p-9 mb-3 mx-2 even:mr-0 odd:ml-0 last:odd:mx-0",children:[e?.title?u(re,{size:"text-h4",children:e.title}):null,e?.description?u("div",{className:"mt-2",children:u(ae,{size:"text-xl",font:"font-light",children:e.description})}):null,p("div",{className:"flex justify-between items-end mt-3",children:[It(e?.buttons),e.bonusItemContent?.bonusType?jt(e.bonusItemContent):null]})]},String(t)))):null})]})})})),jt=e=>u("div",{children:"count"===e.bonusType?_t(e):Lt(e)}),_t=e=>p("div",{className:"relative -bottom-3 h-auto flex items-end mt-14 shrink-0",children:[e.bonusCount?u("span",{className:"font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7",children:e.bonusCount}):null,e.bonusName?u("span",{className:"text-h2 bg-clip-text text-transparent bg-green-to-yellow",children:e.bonusName}):null]}),Lt=e=>e.image?u(ot,{className:"w-12 h-12 min-w-12 p-3 rounded-full",image:e.image}):null,Pt={left:"text-left",center:"text-center",right:"text-right"},zt=x((({bonusBenefits:e,cardTextAlign:t="center",className:n="",columnsCount:l="4",subtitle:a,title:r,...i})=>p(k,{className:`font-sans text-primary-text bg-white p-12 flex flex-col text-center ${n}`,...i,children:[u(Vt,{className:"!p-0 mb-8",title:r,description:a,headlineVersion:"M"}),e?.length?u("div",{className:`grid gap-1 ${Pt[t]} ${Ot(l)}`,children:e.map(Dt)}):null]}))),Dt=({icon:e,title:t,description:n},l)=>p("div",{className:w("flex flex-col items-center text-h6",n||t?"":"justify-center"),children:[t?u("span",{children:t}):null,e?u(ot,{image:e,height:"180",className:"w-auto"}):null,n?u("span",{children:n}):null]},String(l)),Ot=e=>{switch(e){case"3":return"grid-cols-3";case"4":return"grid-cols-4";default:return"grid-cols-5"}},At=x((e=>{const{title:t,image:n,cardItems:l,button:a}=e;return p("div",{className:"border-gray border p-9 w-1/2",children:[n?p("div",{className:"flex justify-center",children:[n?.src?u(ot,{className:"mb-5",image:n}):null,n?.icon?u(ot,{image:n,asSVG:!0}):null]}):null,t?u(T,{headingType:"h4",title:t,className:"mb-6"}):null,l?.length?u("ul",{children:l.map(((e,t)=>Et(e,String(t))))}):null,It([a],{buttonClassName:"mt-6"})]})})),Et=(e,t)=>{const{icon:n,text:l}=e;return p("li",{className:"flex items-center gap-3.5 mb-3 last:mb-0",children:[n?.icon?u(ot,{image:n,className:"w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider",asSVG:!0}):null,n?.src?u(ot,{image:n}):null,u("span",{className:"text-xl-light",children:l})]},t)},Ft=x((({className:e="",title:t,cards:n,...l})=>p(k,{className:`p-12 pb-9 ${e}`,...l,children:[u(T,{headingType:"h3",title:t,className:"text-center mb-8"}),u("div",{className:"flex gap-5",children:n?.length?n.map(((e,t)=>u(At,{...e},String(t)))):null})]}))),Ut=x((({button:e,className:t,...n})=>u(k,{className:w("!bg-transparent",t),...n,children:It([e])}))),Ht=e=>{const{itemCount:t,visibleItemCount:n}=e,[a,i]=l(0),s=r((()=>i((e=>Math.min(e+1,t-1)))),[t]),o=r((()=>i((e=>Math.max(e-1,0)))),[t]),c=function({itemCount:e,visibleItemCount:t}){return Boolean(t&&e>t)}(e)&&a<t-(n||1),d=a>0;return[a,{inc:s,dec:o,canInc:c,canDec:d,isScrollAvailable:d||c}]};const Gt=x((({className:e,disabled:t,...n})=>u(te,{rounded:!0,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 ${t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main"} ${e||""}`,disabled:t,...n,children:u(ot,{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",asSVG:!0})}))),Xt=x((e=>u(Gt,{...e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}))),Wt=x((e=>u(Gt,{...e,className:`${e.className||""} rotate-180`,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"})));function Kt({dec:e,inc:t,canDec:n,canInc:l,btnClass:a,className:r=""}){return n||l?p("div",{children:[n?u(Gt,{className:`absolute z-40 ${a[0]} ${r}`,onClick:e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left",disabled:!n}):null,l?u(Gt,{className:`absolute z-40 rotate-180 ${a[1]} ${r}`,onClick:t,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right",disabled:!l}):null]}):null}const Jt=x((({title:e,value:t,postfix:n="",prefix:l,className:a=""})=>p("div",{className:w("mb-7",a),children:[e?u(re,{size:"text-l-light",color:"text-secondary-text",children:e}):null,u("div",t?{children:p(re,{size:"text-h3",children:[l," ",Ue(Math.round(t))," ",n]})}:{children:u(re,{size:"text-h3",children:"-"})})]}))),Yt=Math.round(23.5),qt={minSum:1e4,maxSum:5e6,minMonths:13,maxMonths:60,rate:12.5,isSalaryClient:!1,isPensionClient:!1,isStateEmployee:!1,isInsurance:!0},Zt={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},Qt={minSum:5e4,maxSum:5e6,minMonths:2,maxMonths:10,rate:0,isMonthlyInterestPayment:!0,isRemoteRegistration:!0},en={minSum:1e3,maxSum:5e5,minDays:1,maxDays:1095,rate:0,isMonthlyInterestPayment:!0,isReplenished:!1,isPartialWithdrawal:!1,isSmallBusiness:!1,depositeName:"Депозит 'Стабильный'"},tn=x((({rate:e,title:t="Ставка",unit:n,depositeName:l,isShowDepositeName:a,rateBlockClassName:r})=>p("div",{children:[u(re,{size:"text-l-light",color:"text-secondary-text",children:t}),p("div",{className:"relative",children:[p("div",{className:"flex justify-start",children:[u("span",{className:w("block gradient-color-text font-mohave text-title-huge pr-6 -mt-4",r),children:String(e.toFixed(2)).replace(".",",")}),n?u("span",{className:"gradient-color-text text-[65px] leading-[75px]",children:n}):""]}),l&&a?u("div",{className:"absolute bottom-7 w-full text-center whitespace-nowrap",children:l}):null]})]}))),nn=e=>e?u(ae,{size:"text-s-light",color:"text-secondary-text",children:e}):null,ln=1e3;function an(e,t,n){const{moneyValue:l,minSum:a,maxSum:r,step:i=ln,isShowItems:s=!0}=t,o=[`От ${Ue(a)} ₽`,`До ${Ue(r)} ₽`];return u(Xe,{title:e,items:s?o:[],min:a,max:r,step:i,value:He(l,a,r),onChange:n})}function rn(e){const{data:t}=B(`/wcms-resources/${e}.json`,M);return t}const sn=(e,t)=>{const{travelExpenseValue:n,restExpenseValue:l}=e,a=rn(t||"bonus-calculator-data")||Zt,[r,i]=((e,t,n)=>{const{minSumTravel:l,minSumOther:a,maxBonus:r,prefMonthsNum:i,prefTravelBonusRate:s,prefRestBonusRate:o,travelBonusRate:c,restBonusRate:d}=e;if(t===l&&n===a)return[0,0];const m=Math.min(Math.round(s*t)+Math.round(o*n),r);return[m,m*i+Math.min(Math.round(c*t)+Math.round(d*n),r)*(12-i)]})(a,n,l);return{...a,...e,monthBonus:r,yearBonus:i}},on=x((({className:e="",sourceBookDir:t="",buttons:n,footnote:a})=>{const[i,s]=l(6e3),o=r((e=>s(e)),[]),[c,d]=l(6e3),m=r((e=>d(e)),[]),h={travelExpenseValue:i,restExpenseValue:c},{minSumTravel:x,maxSumTravel:g,minSumOther:b,maxSumOther:f,monthBonus:v,yearBonus:N}=sn(h,t);return p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-[468px]",children:[an("Сумма покупок в категории путешествия, ₽",{minSum:x,maxSum:g,moneyValue:i,step:500,isShowItems:!1},o),an("Сумма покупок в остальных категориях, ₽",{className:"mt-7",minSum:b,maxSum:f,moneyValue:c,step:500,isShowItems:!1},m)]}),u("div",{children:v>=0?u(tn,{title:"Баллов за месяц",rate:v,rateBlockClassName:"tracking-[-14px]"}):null}),p("div",{className:"w-full max-w-[350px]",children:[N>=0?u(Jt,{title:"Баллов за год",value:N}):null,It(n,{className:"mt-7",isVertical:!0}),nn(a)]})]})}));function cn(e,t,n){const{minDays:l,maxDays:a,daysValue:r}=t,i=e=>`${e} ${Number(e)%10==1?"дня":"дней"}`;return u(Xe,{className:"mt-7",title:e,items:[`От ${i(l)}`,`До ${i(a)}`],min:l,max:a,step:1,value:He(r,l,a),onChange:n})}const dn={horizontal:"gap-10",vertical:"flex-col gap-3"},mn=x((({items:e,checkedItem:t,onChange:n,orientation:l="horizontal"})=>u("div",{className:`flex ${dn[l]}`,children:e?.map((({id:e,text:l})=>u(mt,{isRadio:!0,text:l,checked:t===e,onChange:()=>n&&n(e)},String(e))))}))),hn="everyMonth",un="atEndTerm",pn=[{id:hn,text:"Ежемесячно"},{id:un,text:"В конце срока"}];function xn({isMonthlyInterestPayment:e,callback:t,title:n,orientation:l="horizontal"}){return p("div",{children:[n?u("div",{className:"mb-3",children:u(re,{color:"text-secondary-text",font:"font-light",children:n})}):null,u("div",{children:u(mn,{orientation:l,items:pn,checkedItem:e?hn:un,onChange:e=>t&&t(e===hn)})})]})}const gn=x((({title:e="Ставка"})=>p("div",{children:[u(re,{size:"text-l-light",color:"text-secondary-text",children:e}),u("div",{className:"mt-1 pt-1 pl-5 pb-1.5",children:u(ot,{image:{icon:"PercentIcon"},width:"90",height:"85",asSVG:!0})}),u("div",{className:"w-[250px] mt-3.5",children:p(ae,{size:"text-xl-light",color:"text-primary-text",children:["Процентная ставка для срока ",u("strong",{children:"1-30 дней"})," устанавливается при обращении в Банк"]})})]}))),bn=e=>e,fn=(e=bn)=>t=>t.reduceRight(((t,n)=>e(t)>e(n)?t:n)),vn=fn(),Nn=e=>{const t=[...e];t.sort((([e],[t])=>e-t));let n=1;for(;n<t.length;){const[e,l]=t[n-1],[a,r]=t[n];l>=a?t.splice(n-1,2,[e,Math.max(l,r)]):n++}return t},yn=(e=bn)=>fn((t=>-e(t))),wn=([e,t],n=[])=>({[e]:n.length?yn()(n.map((t=>t[e]))):0,[t]:n.length?fn()(n.map((e=>e[t]))):0}),Cn=(e,[t,n],l)=>e>=l[t]&&e<=l[n],kn=(e,t)=>e?t.isReplenished&&t.isPartialWithdrawal:!t.isReplenished&&!t.isPartialWithdrawal,Sn=(e,t)=>{const{isMonthlyInterestPayment:n,moneyValue:l,daysValue:a}=t;return n?Math.round(l*Math.pow((1200+e)/1200,a/30)-l):Math.round(l*e*a/365/100)},In=x((({className:e="",sourceBookDir:t,buttons:n,footnote:a,bottomFootnote:i,isShowDepositeName:s})=>{const[o,c]=l(1e5),d=r((e=>c(e)),[]),[m,h]=l(90),x=r((e=>h(e)),[]),[g,b]=l(!1),f=r((e=>b(e)),[]),[v,N]=l(!1),y=r((e=>N(e)),[]),[w,C]=l(!1),k=r((e=>C(e)),[]),[S,I]=l(!1),T=r((e=>I(e)),[]),$=((e,t)=>{const{daysValue:n,moneyValue:l,isPartialWithdrawal:a,isReplenished:r,isSmallBusiness:i,isMonthlyInterestPayment:s}=e,o=rn(t||"business-calculator-data"),c=r||a,d=n<90||n>730;if(n<=30)return{...en,...e,isDisabledOperatingDeposit:d,isShowUnknownRate:!0};const m=o?.rows?.find((e=>s===e.isMonthlyInterestPayment&&i===e.isSmallBusiness&&kn(c,e)&&Cn(l,["minSum","maxSum"],e)&&Cn(n,["minDays","maxDays"],e)))||en,{rate:h}=m,u=Sn(h,e),p=l+u,x=o?.rows||[en];return{...m,...wn(["minSum","maxSum"],x),...wn(["minDays","maxDays"],x),...e,isDisabledOperatingDeposit:d,income:u,finalSum:p}})({moneyValue:o,daysValue:m,isReplenished:g,isPartialWithdrawal:v,isSmallBusiness:w,isMonthlyInterestPayment:S},t),{income:B,finalSum:R,rate:V,depositeName:M,isShowUnknownRate:j}=$;return p("section",{className:e,children:[p("div",{className:"flex justify-between",children:[p("div",{className:"w-[486px]",children:[an("Сумма вклада, ₽",$,d),cn("Срок вклада, дни",$,x),p("div",{className:"mt-7 flex justify-between",children:[Tn({...$,handleIsReplenished:f,handleIsPartialWithdrawal:y,handleIsSmallBusiness:k}),xn({isMonthlyInterestPayment:S,callback:T,title:"Выплата процентов",orientation:"vertical"})]})]}),j?u(gn,{}):u(tn,{rate:V,depositeName:M,isShowDepositeName:s,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-full max-w-[350px]",children:[u(Jt,{title:"Доход по вкладу",value:B,postfix:"₽",prefix:"+"}),u(Jt,{title:"Сумма в конце срока",value:R,postfix:"₽"}),It(n,{className:"mt-7",isVertical:!0}),u("div",{className:"mt-7",children:nn(a)})]})]}),u("div",{className:"mt-5",children:nn(i)})]})})),Tn=({isDisabledOperatingDeposit:e,isReplenished:t,isPartialWithdrawal:n,isSmallBusiness:l,handleIsReplenished:a,handleIsPartialWithdrawal:r,handleIsSmallBusiness:i})=>p("div",{children:[u(mt,{text:"Пополнение",disabled:e,checked:t,onChange:a}),u(mt,{className:"mt-3",disabled:e,text:"Частичное снятие",checked:n,onChange:r}),u(mt,{className:"mt-3",text:"Являюсь малым предприятием",checked:l,onChange:i})]}),$n=x((({className:e,title:t,items:n=[],list:l=[],value:a=l[0],disabled:r=!1,onChange:i})=>{const s=l.length-1,o=e=>{if(!i)return;const t=parseInt(e.target.value),n=l.reduce((function(e,n){return Math.abs(n-t)<Math.abs(e-t)?n:e}));i(Number(Ge(n.toString())))},c=l.findIndex((e=>e===a))||0,d={backgroundSize:`${(100*(c-0)/(s-0)).toFixed(2)}% 100%`};return p("div",{className:e,children:[p("label",{className:"block relative",children:[t?u("span",{className:"text-m-light text-primary-text",children:t}):null,u("input",{className:"m-0 mt-2 font-sans text-h3 w-full h-14 border border-solid border-gray rounded-md\n outline-none p-0 pl-4 box-border text-primary-text hover:border-primary-hover focus:border-primary-text disabled:border-gray disabled:bg-main-divider",value:Ue(a),disabled:r,onChange:o,onBlur:o}),l.length?u("div",{className:"absolute w-full flex justify-between -bottom-[3px] px-4",children:l.map(Bn(c,r))}):null,u("div",{className:"absolute inset-x-0 -bottom-1 px-4 leading-[18px]",children:u("input",{className:"box-border w-full m-0 cursor-pointer slider relative z-10",type:"range",min:0,max:s,step:1,value:c,disabled:r,onChange:e=>{if(!i)return;const t=l.at(He(parseInt(e.target.value),0,s))||0;i(Number(Ge(t.toString())))},style:d})})]}),Rn(n)]})})),Bn=(e,t)=>(n,l)=>u("span",{className:"w-2 h-2 rounded-full "+(e<=l||t?"bg-gray":"bg-primary-main")},String(l));function Rn(e){return u("div",{className:"flex justify-between my-2",children:e.map(((e,t)=>u("span",{className:"text-s-light text-secondary-text",children:e},String(t))))})}function Vn(e,t,n){const{minMonths:l,maxMonths:a,monthsValue:r,availableMonths:i}=t,s=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`;return i?.length?u($n,{className:"mt-7",title:e,items:[`От ${s(l)}`,`До ${s(a)}`],list:i,value:He(r,l,a),onChange:n}):u(Xe,{className:"mt-7",title:e,items:[`От ${s(l)}`,`До ${s(a)}`],min:l,max:a,step:1,value:He(r,l,a),onChange:n})}const Mn="annuity",jn="differential",_n=[{id:Mn,text:"Аннуитетный"},{id:jn,text:"Дифференцированный"}];function Ln({isAnnuity:e,callback:t,title:n,orientation:l="horizontal"}){return p("div",{children:[n?u("div",{className:"mb-3",children:u(re,{color:"text-secondary-text",font:"font-light",children:n})}):null,u(mn,{orientation:l,items:_n,checkedItem:e?Mn:jn,onChange:e=>t&&t(e===Mn)})]})}const Pn=(e,t,n)=>{const{moneyValue:l,monthsValue:a}=e,r=rn(t||"credit-calculator-data"),i=!n?.isShowSalaryClient,s=!n?.isShowStateEmployee,o=!n?.isShowPensionClient,c=!n?.isShowInsurance,d=r?.rows?.find((t=>zn({row:t,userInputParams:e,paramKey:"isSalaryClient",isExclude:i})&&zn({row:t,userInputParams:e,paramKey:"isStateEmployee",isExclude:s})&&zn({row:t,userInputParams:e,paramKey:"isPensionClient",isExclude:o})&&zn({row:t,userInputParams:e,paramKey:"isInsurance",isExclude:c})&&Cn(l,["minSum","maxSum"],t)&&Cn(a,["minMonths","maxMonths"],t)))||qt,{rate:m}=d,h=((e,t)=>{const{isAnnuity:n,moneyValue:l,monthsValue:a}=t;if(0===e)return 0;if(n){const t=e/1200;return l*(t+t/(Math.pow(1+t,a)-1))}return Math.round(l/a)+l*(e/1200)})(m,e),u=r?.rows||[qt];return{...d,...wn(["minSum","maxSum"],u),...wn(["minMonths","maxMonths"],u),...e,monthlyPayment:h}},zn=({row:e,userInputParams:t,paramKey:n,isExclude:l})=>l||t[n]===e[n],Dn=x((({className:e="",sourceBookDir:t,buttons:n,footnote:a,paramsViewSettings:i})=>{const[s,o]=l(!1),[c,d]=l(!1),m=r((e=>d(e)),[]),[h,x]=l(!1),g=r((e=>x(e)),[]),[b,f]=l(!1),v=r((e=>f(e)),[]),[N,y]=l(!0),C=r((e=>y(e)),[]),[k,S]=l(2e5),I=r((e=>S(e)),[]),[T,$]=l(Yt),B=r((e=>$(e)),[]),R=Pn({isAnnuity:s,isInsurance:N,isSalaryClient:c,isPensionClient:b,isStateEmployee:h,moneyValue:k,monthsValue:T},t,i);return p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-[468px]",children:[an("Сумма кредита, ₽",{...R,step:500},I),Vn("Срок кредита, месяцев",R,B),u("div",{className:"mt-7",children:An({...R,...i,handleIsSalaryClient:m,handleIsStateEmployee:g,handleIsPensionClient:v,handleIsInsurance:C})})]}),On(R.rate),p("div",{className:"w-full max-w-[350px]",children:[u(Jt,{title:"Ежемесячный платеж",value:R.monthlyPayment,postfix:"₽"}),Ln({isAnnuity:s,orientation:"vertical",callback:o}),It(n,{className:"mt-7",isVertical:!0}),nn(a)]})]})})),On=e=>u(tn,{title:"Ставка",rate:e,rateBlockClassName:"tracking-[-25px]",unit:"%"}),An=({isSalaryClient:e,isStateEmployee:t,isPensionClient:n,isInsurance:l,isShowSalaryClient:a,isShowStateEmployee:r,isShowPensionClient:i,isShowInsurance:s,handleIsSalaryClient:o,handleIsStateEmployee:c,handleIsPensionClient:d,handleIsInsurance:m})=>p("div",{children:[a?u(mt,{text:"Получаю зарплату на счёт в Россельхозбанке",checked:e,onChange:o}):null,r?u(mt,{className:"mt-3",text:"Работаю в бюджетной организации",checked:t,onChange:c}):null,i?u(mt,{className:"mt-3",text:"Получаю пенсию на карту Россельхозбанка",checked:n,onChange:d}):null,s?u(mt,{className:"mt-3",text:"Комплексная страховая защита",checked:l,onChange:m}):null]}),En="remote",Fn="office",Un=[{id:Fn,text:"Офис Банка"},{id:En,text:"Дистанционно"}];function Hn({isRemoteRegistration:e,callback:t,title:n,orientation:l="horizontal"}){return p("div",{children:[n?u("div",{className:"mb-3",children:u(re,{color:"text-secondary-text",font:"font-light",children:n})}):null,u("div",{children:u(mn,{orientation:l,items:Un,checkedItem:e?En:Fn,onChange:e=>t&&t(e===En)})})]})}const Gn=(e,t,n)=>{const{moneyValue:l,monthsValue:a}=e,r=rn(t||"deposit-calculator-data"),i=r?.rows[0]?Kn(r.rows[0].minMonths,r.rows[0].maxMonths):1,s=!n?.isShowMonthlyInterestPayment,o=!n?.isShowRemoteRegistration,c=r?.rows?.find((t=>Wn({row:t,userInputParams:e,paramKey:"isMonthlyInterestPayment",isExclude:s})&&Wn({row:t,userInputParams:e,paramKey:"isRemoteRegistration",isExclude:o})&&Cn(l,["minSum","maxSum"],t)&&Cn(a||i,["minMonths","maxMonths"],t)))||Qt,{rate:d}=c,m=Xn(d,e),h=l+m,u=r?.rows||[Qt];return{...c,...wn(["minSum","maxSum"],u),...wn(["minMonths","maxMonths"],u),availableMonths:Nn(u.map((e=>[e.minMonths,e.maxMonths]))).flatMap((([e,t])=>((e,t,n=1)=>Array.from({length:Math.abs(t-e)/n+1},((l,a)=>t>=e?e+a*n:e-a*n)))(e,t))),...e,defaultMonth:i,income:m,finalSum:h}},Xn=(e,t)=>{const{isMonthlyInterestPayment:n,moneyValue:l,monthsValue:a}=t;return n?Math.round(l*Math.pow((1200+e)/1200,a)-l):Math.round(l*e*30*a/365/100)},Wn=({row:e,userInputParams:t,paramKey:n,isExclude:l})=>l||t[n]===e[n],Kn=(e,t)=>e+Math.round((t-e)/2),Jn=x((({className:e="",sourceBookDir:t,buttons:n,footnote:i,paramsViewSettings:s})=>{const[o,c]=l(2e4),d=r((e=>c(e)),[]),[m,h]=l(0),[x,g]=l(!1),b=r((e=>g(e)),[]),[f,v]=l(!1),N=r((e=>v(e)),[]),y={moneyValue:o,monthsValue:m,isMonthlyInterestPayment:x,isRemoteRegistration:f},C=r((e=>h(e)),[]),k=Gn(y,t,s),{defaultMonth:S,income:I,finalSum:T,rate:$}=k;return a((()=>{h(S)}),[S]),p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-[468px]",children:[an("Сумма вклада, ₽",{...k},d),Vn("Срок вклада, месяцев",{...k},C),u("div",{className:"mt-7",children:Yn({...k,...s,handleIsMonthlyInterestPayment:b,handleIsRemoteRegistration:N})})]}),u(tn,{rate:$,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-full max-w-[350px]",children:[u(Jt,{title:"Доход по вкладу",value:I,postfix:"₽",prefix:"+"}),u(Jt,{title:"Сумма в конце срока",value:T,postfix:"₽"}),It(n,{className:"mt-7",isVertical:!0}),nn(i)]})]})})),Yn=({isMonthlyInterestPayment:e,isRemoteRegistration:t,isShowMonthlyInterestPayment:n,isShowRemoteRegistration:l,handleIsMonthlyInterestPayment:a,handleIsRemoteRegistration:r})=>p("div",{className:"flex flex-col gap-y-7",children:[n?xn({isMonthlyInterestPayment:e,callback:a,title:"Выплата процентов"}):null,l?Hn({isRemoteRegistration:t,callback:r,title:"Оформление"}):null]}),qn={CreditCalculatorForm:Dn,DepositCalculatorForm:Jn,BusinessDepositCalculatorForm:In,BonusCalculatorForm:on},Zn=(e,t)=>{const n=e?.calcType;if(!n||!(n in qn))return null;const l=qn[n];return u("section",{className:"box-border relative bg-white flex shrink-0 self-start basis-full",role:"listitem",children:p("div",{className:"box-border p-9 w-full",children:[e?.title?u(T,{className:"text-center mb-6",title:e.title}):null,u(l,{...e})]})},String(t))},Qn=x((({className:e="",calculatorTabs:t=[],...n})=>{const a=t.map((e=>e.nav||{})),i=t.map((({calculatorBlock:e})=>e||{})),[s,o]=l(0),c=r((e=>o(e)),[]),[d,m]=Ht({itemCount:t?.length,visibleItemCount:3});return p(k,{className:`box-border overflow-hidden relative w-100 ${e}`,...n,children:[p("div",{className:"bg-white",children:[a.length>1?el({activeIndex:d,tabsNav:a,slideIndexShift:s,onClick:c}):null,Kt({...m,btnClass:["left-3","right-3"],className:"top-8"})]}),u("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:i?.length?i.map(Zn):null})]})}));function el({activeIndex:e,tabsNav:t,slideIndexShift:n,onClick:l}){return p("div",{children:[u("div",{style:{transform:`translateX(-${388*e}px)`},className:"flex flex-col justify-end items-center h-[126px] pt-9 box-border duration-1000",children:u("div",{className:"w-full flex flex-nowrap items-end gap-2",children:t.map(((e,t)=>function({tab:e,i:t,isActive:n,onClick:l}){const a=n?"h-[88px] w-[387px] min-w-[387px] p-5 border-none bg-primary-main text-white":"h-[77px] w-[328px] min-w-[328px] px-5 py-4 ease-in duration-300 bg-white text-primary-text",r=n?"text-xl mb-1.5":"text-l mb-[3px]",i=n?"text-l-light text-white":"text-m-light text-secondary-text",s=n?"":"text-primary-main",o=e?.icon?.iconVersion,c=n?"white":"normal";return p("button",{type:"button",onClick:l,"aria-label":e?.title,className:`box-border relative border border-gray cursor-pointer text-left border-b-0 flex hover:h-[88px]\n ${a}`,children:[u(ot,{className:`h-6 w-6 min-w-6 min-h-6 mr-4 ${s}`,image:{...e?.icon,iconVersion:o??c},width:"24",height:"24",asSVG:!0}),p("div",{className:"border-0",children:[u("div",{className:`${r}`,children:e?.title}),u("div",{className:`${i}`,children:e.description})]})]},String(t))}({tab:e,i:t,isActive:Boolean(t===n),onClick:()=>l(t)})))})}),u("div",{className:"w-full h-2 bg-primary-main"})]})}const tl=e=>(e.match(/\./g)||[]).length>1?e.slice(0,e.lastIndexOf(".")):e,nl=e=>{const t=0===e.indexOf("0")&&2===e.length?e.replace("0","0."):e;return t.startsWith(".")?t.replace(".","0."):t},ll=e=>String(e.replace(",",".").replace(/[^.\d]/g,"")),al=x((({className:e="",onChange:t,minValue:n=0,maxValue:l=3e5,...a})=>{const i=r((e=>{if(!t)return;const a=tl(nl(ll(Ge(e))));const r=rl(a,He(Number(a),n,l));t(String(r))}),[t]),s=r((e=>{var n;t&&t((n=e,new Intl.NumberFormat("ru-RU",{minimumFractionDigits:0,maximumFractionDigits:2}).format(Number(Ge(n))).replace(",",".")))}),[t]);return u(se,{className:e,inputClassName:"w-full",onChange:i,onBlur:s,...a,children:u("span",{className:"text-xl-light absolute right-4 bottom-4",children:"₽"})})})),rl=(e,t)=>Number(e)===t?e:String(t),il=x((({className:e="",title:t="Укажите сумму перевода",label:n="Сумма перевода",placeholder:a="1500",button:i,...s})=>{const[o,c]=l(""),d=r((e=>c(e)),[]),m=!Number(Ge(o)),h=m?Q({version:i?.version}):ee({className:"text-white",version:i?.version}),x=H();return p(k,{className:`p-12 flex flex-col items-center ${e}`,...s,children:[t?u(T,{className:"max-w-[684px] pb-9",headingType:"h2",title:t}):null,p("form",{className:"w-[468px]",method:"POST",action:"https://www.rshb.ru/p2p/",children:[u(al,{name:"amount",value:o,onChange:d,valid:""===o||!m,placeholder:a,label:n}),i?.text?u("button",{type:"submit",className:`w-full p-4 mt-6 ${h} `,disabled:m,...x(i),children:i.text}):null]})]})})),sl=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),ol=[];function cl(e,t,{className:n,...l}={}){const{key:a,blockDecorator:r=sl,blocksRegistry:i={},ancestors:s=ol}=t,{type:o}=e;o&&o in i||console.warn(`No block with "${o}" is registered`);const c=o&&i[o];return r({blockClassName:w("scroll-mt-12",n,e.style||"col-span-12"),block:e,ancestors:s,render:({block:n,blockClassName:r})=>{const{content:i}=n;return c?u(c,{className:r,block:e,options:t,...i,...l},a):null}},a)}const dl=[],ml=(e,{key:t,ancestors:n=dl,slotName:l=null,renderProps:a=cl,...r})=>(e||[]).map(((e,i)=>a(e,{...r,key:`${t||e.type}-${i}`,ancestors:r.parent?[...n||dl,[r.parent,l]]:n})));function hl({children:e,block:t,options:n,renderProps:l}){return e||(t&&n?ml(t.blocks,{...n,parent:t,renderProps:l}):null)}const ul=e=>({height:"calc(100vh - 242px)",minHeight:`${e||866}px`}),pl=x((({className:e="",style:t,idx:n,activeIndex:l,observerOptions:a,children:i,onIntersection:s})=>{const o=v(r((e=>{e.length&&s&&s(n||0,e[e.length-1])}),[s,n]),a);return u("div",{className:`inline-block snap-always box-border ${e}`,style:t,"aria-current":Boolean(n===l),ref:o,children:i})})),xl=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]","min-w-[25%]"],gl=x((({className:e="",containerRef:t,activeIndex:n,visibleItemCount:l=0,gap:a=0,padding:i=0,listType:o="horizontal-list",snapAlign:c="snap-center",minHeight:d,children:m,onVisibleItemsChange:h,onVisibleIndicesChange:p})=>{const x={sensitivity:1,rootRef:t},g=s([]),b=r(((e,t)=>{const n=[...g.current||[]];n[e]=t,g.current=n,h&&h(n),p&&p(fl(n))}),[h,p]),f=l>0?a*Number(l)-1:0,v="vertical-list"===o,N="horizontal-list"===o,y={...N?bl(i,f):{},...v?ul(d):{},gap:`${a}px`};return u("div",{className:w("box-border overflow-auto no-scrollbar",o,e),style:y,ref:t,children:(C=(e,t)=>u(pl,{className:w(c,l?xl[l-1]:"",v?"h-full":""),style:N?bl(i/4):{},activeIndex:n,idx:t,observerOptions:x,onIntersection:b,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(C):C(e,0))(m)});var C})),bl=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),fl=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),vl={"horizontal-list":"mx-auto mt-5 w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},Nl={"horizontal-list":"w-6","vertical-list":"h-6"},yl=x((({containerRef:e,activeIndex:t,dotCount:n=0,listType:l="horizontal-list",version:a})=>n?u("div",{className:w("flex gap-2",vl[l],a?"group":""),...a?{"data-ver":a}:{},children:new Array(n).fill(null).map(((n,a)=>u("div",{className:`cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white group-data-transparent:bg-white ${a===t?Nl[l]:"w-2 h-2 opacity-30"}`,role:"button","aria-hidden":!0,onClick:()=>(n=>{n!==t&&e?.current&&e.current.children[n]?.scrollIntoView({behavior:"smooth",block:"nearest"})})(a)},String(a))))}):null)),wl=e=>t=>e.scrollWidth/t,Cl=e=>(t,n)=>{e.scrollBy({left:n*wl(e)(t),behavior:"smooth"})},kl=({itemCount:e,isCyclic:t,onVisibleIndicesChange:n})=>{const a=s(null),[i,o]=l([]),c=r((e=>{o((t=>{return(n=t)===(l=e)||Boolean(n&&l&&n?.length===l?.length&&n.every(((e,t)=>e===l[t])))?t:e;var n,l})),n&&n(e)}),[e]),[d,m]=i.length?[yn()(i),fn()(i)]:[-1,-1],h=d>0,u=m<e-1,p=r((()=>{var n;a.current&&(t&&!h?(n=a.current).scrollTo({left:n.scrollWidth,behavior:"smooth"}):Cl(a.current)(e,-1))}),[t,e,h]),x=r((()=>{a.current&&(t&&!u?a.current.scrollTo({left:0,behavior:"smooth"}):Cl(a.current)(e,1))}),[e,t,u]);return[a,{scrollLeft:p,scrollRight:x,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]},Sl="absolute top-[calc(50%-24px)] z-40",Il="absolute top-0 bottom-0 z-40 w-[84px] pointer-events-none",Tl=x((({scroll:e,arrowsPadded:t,isBlur:n,onScrollLeft:l,onScrollRight:a,hasEdgeBlocks:i,activeIndex:s,itemCount:o})=>{const{canScrollLeft:c,canScrollRight:d,scrollLeft:m,scrollRight:h}=e,x=i?s>0:c,g=i?s<o-1:d,b=r((()=>{i?(c&&s!==o-1&&m(),l()):m()}),[m,l,i,c,s,o]),f=r((()=>{i?(d&&0!==s&&h(),a()):h()}),[h,a,i,c,s,o]);return p("div",{children:[$l(n,e),x?u(Xt,{className:w(Sl,t?"left-8":"left-0"),onClick:b}):null,g?u(Wt,{className:w(Sl,t?"right-8":"right-0"),onClick:f}):null]})})),$l=(e,t)=>(t.canScrollLeft||t.canScrollRight)&&e?p("div",{children:[u("div",{className:w(Il,"left-0 bg-opacity-from-white")}),u("div",{className:w(Il,"right-0 bg-opacity-to-white")})]}):null,Bl=x((({className:e="",itemCount:t,visibleItemCount:n,isBlur:a=!0,isCyclic:i=!1,arrowsPadded:s=!0,isPadding:o=!0,showDots:c=!1,isAlignCenter:d=!1,...m})=>{const{blocks:h=[]}=m.block||{},x=t||h?.length,[g,b]=l(Math.floor((n||0)/2)),f=r((()=>b((e=>e+1))),[]),v=r((()=>b((e=>e-1))),[]),[N,y]=kl({itemCount:x,isCyclic:i}),[C]=y.visibleIndicesRange,S=h&&"CarouselBankHistoryCard"===h[0]?.type;return u(k,{className:w(Rl(o),"group-data-secondary:bg-primary-main group-data-secondary:text-white",e),...m,children:p("div",{className:w(Vl(d),"relative max-w-full"),children:[u(gl,{containerRef:N,visibleItemCount:n,snapAlign:"snap-start",gap:4,onVisibleIndicesChange:y.handleVisibleIndicesChange,children:hl({...m,renderProps:S?(e,t)=>cl(e,t,{blocksLength:h?.length,activeIndex:g}):cl})}),u(Tl,{scroll:y,isBlur:a,arrowsPadded:s,onScrollLeft:v,onScrollRight:f,hasEdgeBlocks:S,activeIndex:g,itemCount:x}),c?Ml(N,C,t):null]})})}));Bl.childrenTypes=["CarouselCard","CarouselBankHistoryCard","CarouselCatalogCard","CarouselInvestmentCard","CarouselProductCard","CarouselProgramsCard","CarouselRecommendationCard","CarouselTariffsCard","CarouselRichTextCard","CarouselInvestmentCard","CarouselEventCard"];const Rl=e=>e?"p-12":"",Vl=e=>e?"flex justify-center":"",Ml=(e,t,n)=>u(yl,{containerRef:e,activeIndex:t,dotCount:n,listType:"horizontal-list"}),jl=x((({title:e,description:t,blocksLength:n=0,activeIndex:l,options:a})=>{const r=Number(a?.key?.split("-").slice(-1)[0])||0;return u(k,{className:"flex h-[485px]",children:u("div",r===l?{className:"relative flex items-center w-full",children:u(Vt,{headlineVersion:"M",title:e,description:t,align:"text-left",className:w("absolute z-10 h-[385px] w-[440px] p-8 text-white shadow-dark-blue",Pl(r,n),_l(r))})}:{className:"flex w-full items-center justify-center",children:u("div",{className:w("flex justify-center items-center h-[300px] w-[340px] font-mohave text-title-large tracking-[-0.03em]",_l(r)),children:u("span",{className:Ll(r),children:e})})})})})),_l=e=>{switch(e%3){case 0:default:return"bg-primary-main";case 1:return"bg-green-light";case 2:return"bg-yellow-light"}},Ll=e=>{switch(e%3){case 1:case 2:return"gradient-color-text-on-yellow";default:return"gradient-color-text-on-green"}},Pl=(e,t)=>0===e?"left-9":e===t-1?"right-9":"-left-[25px]",zl="absolute border border-solid border-gray w-full h-full",Dl={normal:"min-w-[970px]",small:"min-w-[355px]"},Ol=x((({className:e="",button:t,description:n,title:l,carouselVersion:a="normal",version:r=""})=>u("section",{className:`flex pb-9 pl-12 border-box h-full ${Dl[a]} ${e}`,children:p("div",{className:"relative w-full",children:[u("div",{className:`${zl} z-10 top-9 right-12 bg-green-dark`}),u("div",{className:`${zl} z-10 top-6 right-8 bg-green`}),u("div",{className:`${zl} z-10 top-3 right-4 bg-green-light`}),p("div",{className:"relative h-full bg-white z-10 p-10 border border-solid border-green-light",children:[u(Vt,{className:"!p-0",title:l,description:n,headlineVersion:"L",align:"text-left",version:r}),It([t],{className:"mt-14"})]})]})}))),Al={black:"bg-black",white:"bg-white"},El=x((({className:e="",title:t,description:n,image:l,price:a,button:r,colors:i,...s})=>p(k,{className:`border box-border border-gray p-7 min-w-[392px] h-full flex flex-col justify-left ${e}`,...s,children:[l?.src?u(ot,{className:"mb-5 flex justify-center",image:l}):null,t?u(T,{headingType:"h6",as:"h4",className:"text-left mb-1.5",title:t}):null,n?u("div",{className:"mb-4",children:u(ae,{size:"text-m",align:"text-left",font:"font-light",children:n})}):null,i?.length?p("div",{className:"flex mb-4 text-secondary-text",children:[u("div",{className:"mr-1.5",children:u(re,{size:"text-s",align:"text-left",font:"font-light",children:"Доступные цвета:"})}),i.map(Fl)]}):null,a?p(re,{size:"text-h3",align:"text-left",children:[a," ₽"]}):null,It([r],{buttonClassName:"mt-5 w-full"})]}))),Fl=(e,t)=>u("div",{role:"figure",className:`w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${Al[e]}`},String(t)),Ul=x((({className:e="",href:t,target:n,children:l})=>{const a=H()({href:t,target:n});return u(t?"a":"div",{className:w("block",e),...t?a:{},children:l})})),Hl=x((({className:e="",icon:t,title:n,description:l,href:a,target:r,...i})=>u(k,{className:w("w-[365px]",e),...i,children:p(Ul,{className:"flex flex-col",href:a,target:r,children:[t?.icon?u(ot,{image:t,asSVG:!0}):null,t?.src?u(ot,{image:t}):null,n?u(T,{headingType:"h6",as:"h4",className:"text-left pt-3 mb-2",title:n}):null,l?u("div",{className:"mb-4",children:u(re,{font:"font-light",size:"text-m",color:"text-secondary-text",children:l})}):null]})}))),Gl=x((({className:e="",title:t="",buttons:n,image:l,children:a})=>p("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,p("div",{className:"flex grow w-full justify-between",children:[p("div",{className:"flex flex-col justify-between w-full",children:[u("div",{className:"h-full",children:a}),n?u("div",{className:"mt-auto pt-8",children:n}):null]}),l]})]}))),Xl={1:"flex-col",2:"gap-x-10 flex-wrap"},Wl=x((({additionalDescription:e,cardsList:t=[],className:n="",columnsMode:l=1,description:a,image:r,title:i,...s})=>{const o=i?u(T,{headingType:"h4",as:"h3",className:"mb-3.5 z-10",title:i}):null,c=r?.src?u(ot,{className:"absolute bottom-0 right-0 m-0",image:r}):null;return u(k,{className:["relative box-border text-left p-9 w-[697px]","border border-solid border-gray group-data-secondary:border-white/50",n].join(" "),...s,children:p(Gl,{title:o,image:c,children:[p("div",{className:"flex justify-between mb-4",children:[a?u("div",{className:"w-1/3",children:u(re,{size:"text-h6",children:a})}):null,e?u(re,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:e}):null]}),t.length?u("ul",{className:`list-none m-0 p-0 flex gap-y-2 ${Xl[l]}`,children:Kl(t,l)}):null]})})})),Kl=(e,t)=>e.slice(0,[4,9][t-1]).map(((e,n)=>{return p("li",{className:2===t?"basis-[calc(50%-20px)]":"",children:[e?.parameter?u("div",{className:"pr-2.5",children:u(re,{size:(l=t,1===l?"text-h6":"text-l"),children:e.parameter})}):null,e?.parameterDescription?u(re,{size:"text-m",font:"font-light",color:"text-secondary-text",children:e.parameterDescription}):null]},String(n));var l})),Jl="bg-transparent border-white border h-[70px] absolute w-[316px] top-0",Yl=x((({text:e,href:t="",target:n="",className:l=""})=>{const a=H()({href:t,target:n});return e?p("div",{className:`relative group/link cursor-pointer w-[328px] h-[82px] ${l}`,children:[p("a",{className:"absolute border border-primary-main ml-3 px-6 py-5\n text-l-light bg-white text-primary-text flex w-[316px]\n justify-between items-center group-hover/link:text-primary-main z-10",role:"link",...a,children:[u("div",{className:"p-0.5",children:e}),u("div",{className:"w-6 h-6",children:u(ot,{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",asSVG:!0})})]}),u("div",{className:`${Jl} mx-1.5 mt-1.5`}),u("div",{className:`${Jl} mt-3 mr-3`})]}):null})),ql=x((({className:e="",additionalDescription:t,description:n,links:l,title:a,...r})=>p(k,{className:`flex w-full p-10 overflow-hidden justify-between ${e}`,...r,children:[p("div",{className:"flex flex-col max-w-96 pr-9 text-white text-xl-light",children:[u(Vt,{isPadding:!1,title:a,description:n,as:"h1",align:"text-left"}),t?u(Vt,{className:"pt-6",isPadding:!1,description:n,align:"text-left"}):null]}),l?.length?Zl(l):null]}))),Zl=e=>{const t=Math.ceil(e.length/10);return u(Bl,{className:"min-w-[832px] w-[832px]",isBlur:!1,isCyclic:!0,itemCount:t,arrowsPadded:!1,showDots:!0,children:new Array(t).fill(null).map(((t,n)=>u("div",{className:"w-[672px] min-w-[672px] ml-10 mr-10 flex flex-wrap self-start",children:e.slice(10*n,10*(n+1)).map(((e,t)=>u(Yl,{className:"m-1",...e},String(t))))},String(n))))})},Ql={L:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4",M:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3",S:"w-1 h-1 min-w-1 min-h-1 mr-2"},ea=x((({className:e="",isDotted:t=!0,children:n,size:l="M"})=>p("div",{className:`font-sans flex items-baseline ${e}`,role:"listitem",children:[t?u("div",{children:u("div",{className:`rounded-full align-middle inline-block bg-primary-text group-data-secondary:bg-white ${Ql[l]}`})}):null,u("span",{children:n})]}))),ta={S:"text-l-light",M:"text-h6",L:"text-h5"},na={S:"ml-2",M:"ml-3",L:"ml-4"},la=x((({className:e="",hasIndent:t,isDotted:n,itemClassName:l="",items:a,listItemSize:r="M"})=>a?.length?u("section",{className:`text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text ${ta[r]} ${t?na[r]:""} ${e}`,role:"list",children:a.map(((e,t)=>u(ea,{className:l,isDotted:n,size:r,children:e},String(t))))}):null)),aa=x((({additionalDescription:e,align:t="text-center",button:n={},className:l="",description:a,headlineSmallVersion:r="H6",href:i,icon:s,isDotted:o=!0,isFullWidth:c=!0,items:d=[],target:m,title:h,version:u="primary",...x})=>p(k,{className:w("h-full flex flex-col justify-between min-w-[260px]","box-border border-solid border border-gray",t,l),version:u,...x,children:[p(Ul,{className:"p-6",href:i,target:m,children:[ra(s),ia(r,h),sa(a,h),ca(d,o,u),oa(e)]}),It([n],{className:w("p-6 pt-0",c?"":"justify-center"),isVertical:!!c})]}))),ra=e=>p("div",{className:"flex justify-center",children:[e?.src?u(ot,{className:"mb-5",image:e}):null,e?.icon?u(ot,{className:"w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full",image:e,asSVG:!0}):null]}),ia=(e,t)=>t?u("div",{children:u(re,{size:Rt[e],children:t})}):null,sa=(e,t)=>e?u("div",{className:t?"mt-2":"",children:u(ae,{size:"text-l",children:e})}):null,oa=e=>e?u("div",{className:"mt-auto",children:u(re,{size:"text-m",font:"font-light",color:"text-secondary-text group-data-secondary:text-white/80",children:e})}):null,ca=(e,t,n="primary")=>e?.length?u(la,{className:"max-w-[308px] mt-2 text-s "+("primary"===n?"!text-secondary-text":""),itemClassName:"text-left",items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:t}):null,da=x((({className:e="",title:t,icon:n,list:l=[],href:a,target:r,...i})=>u(k,{className:w("border border-gray",e),...i,children:p(Ul,{className:"flex",href:a,target:r,children:[p("div",{className:"w-[200px] min-w-[200px] self-center",children:[n?.icon?u(ot,{image:n,asSVG:!0}):null,n?.src?u(ot,{image:n}):null]}),p("div",{className:"p-8 pl-3 w-full",children:[t?u(T,{className:"mb-3.5",headingType:"h5",title:t}):null,l.length?u("div",{className:"flex flex-col gap-3",children:l?.map(ma)}):null]})]})}))),ma=(e,t)=>p("div",{className:"break-words",children:[e.title?u("div",{className:"text-h6",children:e.title}):null,e.description?u("span",{className:"text-l-light mt-1",children:e.description}):null]},String(t)),ha=[{origins:["t.me","telegram.org"],iconMapped:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],iconMapped:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],iconMapped:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],iconMapped:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],iconMapped:{icon:"PlayMarketIcon"},label:"Google Play"},{origins:["youtube.com"],iconMapped:{icon:"YoutubeIcon"},label:"Youtube"}],ua={default:"w-14 h-14",small:"w-12 h-12"},pa=(e,t)=>e?"":`group/media flex items-center justify-center box-border ${ua[t]}`,xa=x((({buttonSize:e="default",rounded:t=!1,icon:n,...l})=>{const{href:a,version:r,text:i=""}=l,{iconMapped:s,label:o}=ha.find((({origins:e})=>e.some((e=>a?.includes(e)))))||{},c=ga(n)??s;return u(te,{className:w(t?"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",pa(i,e)),"aria-label":o,rel:"noopener noreferrer",target:"_blank",text:i,version:r,...l,children:c&&!i?u(ot,{image:c,imageClassName:"group-hover/media:text-white",width:"24",height:"24",asSVG:!0}):null})})),ga=e=>e?.src||e?.icon?e:void 0,ba=x((({className:e="",media:t,children:n,buttonSize:l})=>p("div",{className:"font-sans",children:[u("div",{className:`flex gap-1 ${e}`,children:t?.map(((e,t)=>u(xa,{buttonSize:l,...e},String(t))))}),u(re,{size:"text-s-light",color:"text-secondary-text",children:n})]}))),fa=x((({className:e="",description:t,href:n,icon:l,items:a=[],socialMedia:r=[],target:i,title:s,align:o="text-left",version:c="primary",...d})=>u(k,{className:w("relative p-7 min-w-[524px] min-h-[218px] h-full box-border group-data-gray:bg-main-divider/50","border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider",e),version:c,...d,children:p(Ul,{href:n,target:i,children:[u(Vt,{className:"mb-4",title:s,description:t,headlineVersion:"S",isPadding:!1,align:o}),p("div",{className:"w-1/2 h-full flex flex-col flex-1 justify-end",children:[a.length?u(la,{className:"flex flex-col gap-2",itemClassName:"text-l-light",items:a}):null,r.length?u(ba,{className:"pt-10",media:r}):null]}),va(l)]})}))),va=e=>p("div",{className:"absolute bottom-0 right-0",children:[e?.icon?u(ot,{image:e,asSVG:!0}):null,e?.src?u(ot,{image:e}):null]}),Na=x((e=>{const{__html:t="",richVersion:n=""}=e;return u("div",{className:w(n,"md-container"),dangerouslySetInnerHTML:{__html:t}})})),ya=x((({className:e="",__html:t,richVersion:n="striped",...l})=>u(k,{className:w("p-9 border border-gray min-w-96",e),...l,children:u(Na,{__html:t,richVersion:n})}))),wa=x((({className:e="",isFoldButtonOnTop:t=!1,unfoldedByDefault:n=!1,renderFoldableSection:a,renderFoldButton:i})=>{const[s,o]=l(n),c=r((()=>{o((e=>!e))}),[]),d=a({isUnfolded:s,onToggle:c}),m=i?i({isUnfolded:s,onToggle:c}):null;return p("div",t?{className:e,children:[m,d]}:{className:e,children:[d,m]})})),Ca=x((({className:e="",isUnfolded:t,children:n})=>{const l=s(null);return a((()=>{l.current&&(l.current.style.maxHeight=t?`${l.current.scrollHeight}px`:"")}),[t,n?.length]),u("div",{ref:l,className:`transition-max-h duration-300 overflow-hidden ${l.current||!t?"max-h-0":""} ${e}`,children:n})})),ka=x((({className:e="",title:t,icon:n,isHighlighting:l,button:a,cardCells:r=[],...i})=>{const s=r.map($a),o=s.slice(0,1),c=s.slice(1);return p(k,{className:w("relative border border-gray p-8 flex flex-col",Ia(l),e),...i,children:[l?Ba():null,Sa(n),t?u(T,{className:"text-center pt-2",headingType:"h5",title:t}):null,a?u(te,{className:"w-full mt-4",...a}):null,r.length?u(wa,{renderFoldableSection:({isUnfolded:e})=>p("div",{children:[o,u(Ca,{isUnfolded:e,children:c})]}),renderFoldButton:r.length>1?Ta:null}):null]})})),Sa=e=>p("div",{className:"w-[267px] min-w-[267px] self-center",children:[e?.src?u(ot,{image:e}):null,e?.icon?u(ot,{image:e,asSVG:!0}):null]}),Ia=e=>e?"mt-8 pt-20":"mt-20 pt-8",Ta=({isUnfolded:e,onToggle:t})=>p("button",{className:"w-full cursor-pointer text-primary-main pt-5 flex justify-between items-center",onClick:t,children:[u("div",{children:e?"Скрыть":"Подробнее о тарифе"}),u(fe,{className:"text-primary-text",name:e?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16",asSVG:!0})]}),$a=(e,t)=>{const{title:n,description:l,buttons:a}=e;return p("div",{className:"py-5 border-b border-main-divider",children:[n?u("div",{className:"text-secondary-text text-m-light opacity-80",children:e.title}):null,l?u("div",{className:"text-primary-text text-h6 mt-1",children:e.description}):null,a?.length?u("div",{className:"text-primary-main",children:It(a)}):null]},String(t))},Ba=()=>p("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:[u(fe,{iconVersion:"black",name:"HeartIcon",width:"23",height:"22",asSVG:!0}),u(ae,{size:"text-s",font:"font-normal",align:"text-center",color:"text-primary-text",children:"ХИТ"})]}),Ra="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",Va="border-gray border-solid border",Ma="border-main-divider border border-t-0 border-x-0",ja="w-[200px] mr-6",_a=x((({icon:e,image:t,title:n,link:l})=>p("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${Va} ${Ra}`,role:"columnheader",children:[e&&!t?.src&&u(ot,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63",asSVG:!0}),t?.src&&u(ot,{className:"mb-[18px]",image:t}),n?u(T,{headingType:"h4",as:"h3",className:"text-center text-white",title:n}):null,l?.text&&u("div",{className:"mt-auto w-full",children:u(te,{href:l.href,target:l.target,className:"mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:u("div",{className:"text-xs-light font-medium py-[11px]",children:l.text})})})]}))),La={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},Pa=x((({children:e,activeIndex:t,columnWidth:n,version:l="comparison"})=>u("div",{className:"flex flex-1 overflow-hidden",children:u("div",{className:La[l],style:{transform:`translateX(-${t*n}px)`},children:e})}))),za=x((({children:e})=>u("div",{className:"self-start flex flex-col",role:"row",children:u("div",{className:"flex",children:e})}))),Da=x((({colHeaders:e,activeIndex:t})=>p(za,{children:[u("div",{className:ja,role:"columnheader"}),u(Pa,{activeIndex:t,columnWidth:336,children:e.map(((e,t)=>u(_a,{...e},String(t))))})]}))),Oa=x((({cell:e,isFirstRow:t,isLastRow:n,isFillGradient:l})=>u("div",{className:`w-80 box-border flex flex-col ${Va} ${n?"border-t-0 rounded-b-md":"border-y-0"} ${l?Ra:""}`,role:"cell",children:u("div",{className:`mx-7 h-full ${Ma} ${l&&t?"border-t":""} ${n?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>Fa(e,t,l)))})}))),Aa=(e=!1)=>"text-xl m-0 "+(e?"text-white":""),Ea=(e=!1)=>"text-s opacity-80 "+(e?"text-white":"text-secondary-text"),Fa=({label:e,description:t},n,l)=>p("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e?u("h4",{className:Aa(l),children:e}):null,t?u("div",{className:Ea(l),children:t}):null]},String(n)),Ua=(e=!1)=>`text-s py-7 ${Ma} w-[200px] mr-6 ${e?"border-b-0":"border-solid"}`,Ha=x((({row:{header:e,data:t},activeIndex:n,isColoredFirstColumn:l,isFirstRow:a,isLastRow:r})=>p(za,{children:[e?.title?u("div",{className:Ua(r),children:e.title}):null,t?.length?u(Pa,{activeIndex:n,columnWidth:336,children:t.map(((e,t)=>u(Oa,{cell:e,isFirstRow:a,isLastRow:r,isFillGradient:l&&0===t},String(t))))}):null]}))),Ga=x((({rowData:e,isColoredFirstColumn:t,activeIndex:n,controls:l})=>{const{isScrollAvailable:a}=l;return p("div",{className:"relative",children:[e.map(((e,l,{length:a})=>u(Ha,{row:e,isFirstRow:0===l,isLastRow:l+1===a,activeIndex:n,isColoredFirstColumn:t},String(l)))),a?Kt({...l,btnClass:["top-[108px]","top-[44px]"],className:"right-7",isDisabled:!0}):null]})})),Xa=x((({columns:e=[],rowHeaders:t,isShowAllRow:n,visibleRowLength:l,isColoredFirstColumn:a})=>{const r=e?.map((({header:e})=>e||{})),i=e?.map((({data:e})=>e))||[],s=t?.map(((e,t)=>({header:e,data:i.map((e=>e?.[t]||[{}]))}))).slice(0,n?t.length:l),[o,c]=Ht({itemCount:e.length,visibleItemCount:3}),{isScrollAvailable:d}=c;return p("div",{children:[p("div",{role:"table",children:[r?.length?u(Da,{colHeaders:r,activeIndex:o}):null,s?.length?u(Ga,{rowData:s,isColoredFirstColumn:a,activeIndex:o,controls:c}):null]}),d?u("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),Wa=x((({className:e="",title:t,rowHeaders:n,columns:a,visibleRowLength:i=0,isColoredFirstColumn:s=!1,...o})=>{const[c,d]=l(!i),m=r((()=>d((e=>!e))),[]);return p(k,{className:`py-12 pl-12 overflow-hidden relative ${e}`,...o,children:[u(T,{headingType:"h2",className:"max-w-[47rem] text-center mb-9 mx-auto",title:t}),u(Xa,{columns:a,rowHeaders:n,isShowAllRow:c,isColoredFirstColumn:s,visibleRowLength:i}),i?Ka({isShowAllRow:c,onClick:m}):null]})})),Ka=({isShowAllRow:e,onClick:t})=>u("div",{className:"pr-12",children:p("div",{className:"flex w-full",children:[u("div",{className:ja}),u("button",{onClick:t,className:"mt-5 flex-1 border-gray border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main",children:u("div",{className:"font-sans text-xs-light font-medium py-3",children:e?"Скрыть":"Показать все параметры"})})]})}),Ja=x((({className:e="",contacts:t,info:n,version:l="secondary",...a})=>p(k,{className:`flex p-12 ${e}`,version:l,...a,children:[n?.length?Ya(n):null,t?.length?Ya(t):null]}))),Ya=e=>u("div",{className:"flex grow basis-0",children:e.map(((e,t)=>qa({column:e,index:t})))}),qa=({column:e,index:t})=>e?u("div",{className:"flex flex-col grow basis-0 pr-11 last:pr-0",children:e.map((({title:e="",description:t,additionalDescription:n,button:l},a)=>p("div",{className:"mt-6 first:mt-0",children:[u(Vt,{className:"!p-0",title:e,description:t,headlineVersion:"XS",align:"text-left"}),n?u("div",{className:"mt-1.5 opacity-80",children:u(ae,{size:"text-m",font:"font-light",children:n})}):null,l?u(te,{className:"mt-6",...l}):null]},String(a))))},`col-${String(t)}`):null,Za=e=>"Image"===e?.errorContentType&&e?.image?u(ot,{image:e.image}):"Code"===e?.errorContentType&&e.code?u("div",{className:"font-mohave text-title-extra gradient-color-text",children:e.code}):null,Qa=x((({className:e="",title:t,subtitle:n,error:l,button:a,...r})=>{return p(k,{className:w("flex flex-col justify-center items-center",(i=a?.text,i?"py-20 pt-3 pb-1":"mb-16 pb-2 mt-24 pt-3"),e),version:"transparent",...r,children:[u("div",{className:"flex justify-center py-20",children:Za(l)}),t?u(T,{headingType:"h1",className:"text-left mb-4",title:t}):null,n?u("div",{className:"font-sans text-xl-light mb-7 max-w-[613px] text-center",children:n}):null,a?.text?u(te,{className:"py-4 px-9",version:a?.version,...a,children:a.text}):null]});var i}));var er;!function(e){e.EUR="EUR",e.USD="USD",e.GBP="GBP",e.AUD="AUD",e.CNY="CNY",e.RUB="RUB"}(er||(er={}));const tr={USD:"DollarIcon",EUR:"EuroIcon",GBP:"DollarIcon",AUD:"DollarIcon",CNY:"DollarIcon",RUB:"RoundRubleIcon"},nr=e=>e?rr.format(e):"",lr=(e,t)=>p("td",{className:"pt-4 pl-11",children:[u("div",{children:nr(e)}),u("div",{className:w("font-normal text-sm text-secondary-text",(t||0)>=0?"text-green":"text-red"),children:nr(t)})]}),ar=(e,t="")=>p("td",{className:"pt-4 pl-11",children:[u("div",{children:nr(e)}),u("div",{className:"font-normal text-sm text-green",children:t})]}),rr=new Intl.NumberFormat("ru",{style:"currency",currency:er.RUB}),ir=e=>u("th",{className:"pl-11",children:u(re,{size:"text-m-light",align:"text-left",color:"text-secondary-text",children:e})}),sr=x((({className:e="",currencies:t=[],actuality:n="",officeName:l="",...a})=>{const r=or(t,4);return p(k,{className:w("font-sans text-primary-text py-10 bg-white",e),...a,children:[p("div",{className:"flex flex-row flex-grow-0 justify-between mx-10 mb-8",children:[u(T,{headingType:"h4",title:"Курс обмена валют в "+l,className:"whitespace-pre-wrap text-h4 mb-5"}),u("div",{className:"pl-11",children:u(re,{size:"text-m-light",align:"text-left",color:"text-secondary-text",children:n})})]}),u("div",{className:"flex flex-row ml-8 mr-14 pt-4 text-left",children:r.length>0?p("table",{className:w("h-fit w-fit",e),children:[u("thead",{children:p("tr",{children:[u("th",{children:u(re,{size:"text-m-light",align:"text-left",color:"text-secondary-text",children:"Валюта"})}),ir("Купить"),ir("Продать"),ir("Лучшая покупка"),ir("Лучшая продажа")]})}),u("tbody",{children:r.map((e=>(({title:e,buyPrice:t,buyDifference:n,sellPrice:l,sellDifference:a,buyOfficeName:r,sellOfficeName:i})=>p("tr",{className:"pb-1 text-h6",children:[u("td",{className:"pt-4",children:p("div",{className:"flex items-center",children:[e?u(ot,{image:{icon:tr[e]},width:"24",height:"24"}):null,u("span",{className:"ml-2",children:e})]})}),lr(t,n),lr(l,a),ar(t,r),ar(l,i)]},e))(e)))})]}):null})]})})),or=(e,t)=>e.sort(((e,t)=>Number(e.id)-Number(t.id))).slice(0,t);var cr;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(cr||(cr={}));const dr=new Intl.NumberFormat("ru",{style:"currency",currency:cr.RUB}),mr=e=>e?dr.format(e):"",hr="text-left text-m-light text-secondary-text",ur=`${hr} pl-11`,pr={USD:"DollarIcon",EUR:"EuroIcon"},xr=x((({className:e,exchangeCurrencyItems:t})=>p("table",{className:`h-fit w-fit ${e}`,children:[u("thead",{children:p("tr",{children:[u("th",{className:hr,children:"Валюта"}),u("th",{className:ur,children:"Купить"}),u("th",{className:ur,children:"Продать"})]})}),u("tbody",{children:t.map(gr)})]}))),gr=e=>{const t=e?.currency?.currency;return p("tr",{className:"pb-1 text-h6",children:[u("td",{className:"pt-4",children:p("div",{className:"flex items-center",children:[t?u(ot,{image:{icon:pr[t]},width:"24",height:"24"}):null,u("span",{className:"ml-2",children:t})]})}),u("td",{className:"pt-4 pl-11",children:mr(e?.saleExchangeRate)}),u("td",{className:"pt-4 pl-11",children:mr(e?.buyExchangeRate)})]},t)},br=x((({className:e="",address:t})=>p("div",{className:`flex ${e}`,children:[u(ot,{image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),p("div",{className:"ml-3",children:[t?u("p",{className:"text-primary-main m-0 mb-1 text-l",children:t}):null,u("p",{className:"text-secondary-text m-0 text-m",children:"Курс указан для заданного офиса"})]})]}))),fr=(e,t,n)=>{const l=Number(vr(e))*Math.pow(t,n?-1:1);return Number.isInteger(l)?l:((e,t=2)=>{const n=10**t;return Math.round(parseFloat(String(e))*n)/n})(l)},vr=e=>e.replace(/[^\d.,]/g,"").replace(",","."),Nr=e=>{return(t=[[e=>e.value!==cr.RUB&&e.oppositeValue!==cr.RUB,()=>e.handleConvert(e.value,cr.RUB)],[e=>e.value===cr.RUB&&e.oppositeValue===cr.RUB,()=>e.handleConvert(e.value,cr.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,n]=t.find((([t])=>t(e)))||[];return n})(e)?.();var t};function yr(e){const{placeholder:t,rates:n,selected:l,value:a,setValue:r,setSelected:i}=e,s=n.map((e=>({key:e?.currency?.currency??"",text:e?.currency?.currency??""}))),o={key:l,text:l};return p("div",{className:"relative flex",children:[u(se,{className:"shrink-0 text-l w-full appearance-none mr-[-90px]",placeholder:t,type:"text",value:a,onChange:r}),s.length?u(ye,{isBorder:!1,onChange:e=>i(e.key),options:s,value:o}):null]})}const wr=x((({className:e="",currencyRatesBuy:t,currencyRatesSell:n,button:a})=>{const[i,s]=l({inputSell:"",inputBuy:"",selectSell:t?.[0]?.currency?.currency||cr.RUB,selectBuy:n?.[0]?.currency?.currency||cr.USD}),o=r((e=>s((t=>({...t,...e})))),[]);return p("div",{className:`grid gap-[18px] pt-2 ${e}`,children:[yr({placeholder:"Хочу продать",rates:n,selected:i.selectSell,setSelected:Cr(i,o,n),value:i.inputSell,setValue:e=>Sr(o,n)(e,i.selectSell,i.selectBuy)}),yr({placeholder:"Получу",rates:t,selected:i.selectBuy,setSelected:kr(i,o,t),value:i.inputBuy,setValue:e=>Ir(o,t)(e,i.selectBuy,i.selectSell)}),a?.text?u(te,{className:"py-4 mr-1",version:a?.version,...a,children:a.text}):null]})})),Cr=(e,t,n)=>l=>{t({selectSell:l}),Nr({value:l,oppositeValue:e.selectBuy,handleConvert:(l=e.selectSell,a=e.selectBuy)=>{Sr(t,n)(e.inputSell,l,a)}})},kr=(e,t,n)=>l=>{t({selectBuy:l}),Nr({value:l,oppositeValue:e.selectSell,handleConvert:(l=e.selectBuy,a=e.selectSell)=>Ir(t,n)(e.inputBuy,l,a)})},Sr=(e,t)=>(n,l,a)=>{e({inputSell:vr(n),selectBuy:a});const r=t.find((e=>e.currency?.currency===a))?.buyExchangeRate||t.find((e=>e.currency?.currency===l))?.saleExchangeRate;r&&e({inputBuy:String(fr(n,r,l===cr.RUB)||"")})},Ir=(e,t)=>(n,l,a)=>{e({inputBuy:vr(n),selectSell:a});const r=t.find((e=>e.currency?.currency===a))?.saleExchangeRate||t.find((e=>e.currency?.currency===l))?.buyExchangeRate;r&&e({inputSell:String(fr(n,r,l===cr.RUB)||"")})};const Tr=async e=>{const t=await $r(),n=t?.code||"000";return{region:t,exchangeRates:await Br(e,n)}},$r=async()=>{try{return await M("/api/v1/region",{method:"GET"})}catch(e){return console.log(e),{}}},Br=async(e,t)=>{try{return await M(e+`?regionCode=${t}`,{method:"GET"})}catch(e){return console.log(e),{}}},Rr=x((({className:e="",title:t="Курсы обмена валют",button:n,...l})=>{const{exchangeRates:a}=function(){const{data:e}=B("/api/v1/exchangerates",Tr);return e||{}}(),r=Vr(a?.exchangeRate?.currencies),i=r.filter((e=>e.buyExchangeRate));i.unshift({currency:{currency:cr.RUB}});const s=r.filter((e=>e.saleExchangeRate));return s.push({currency:{currency:cr.RUB}}),u(k,{className:`p-9 box-border min-h-80 ${e}`,...l,children:u(Gl,{title:u(T,{headingType:"h4",title:t,className:"whitespace-pre-wrap text-h4 mb-5"}),children:p("div",{className:"flex",children:[p("div",{className:"mr-14 pt-4",children:[r?u(xr,{className:"mb-[30px]",exchangeCurrencyItems:r}):null,u(br,{address:a?.address})]}),r.length&&i.length&&s.length?u(wr,{className:"grow",currencyRatesBuy:i,currencyRatesSell:s,button:n}):null]})})})})),Vr=e=>e?.filter((e=>1===e?.currency?.id||2===e?.currency?.id))||[],Mr=x((({className:e="",label:t,icon:n,dataTheme:l="",disabled:a=!1,onClick:r})=>p("button",{className:w("flex justify-center w-full px-0 py-5 border border-transparent outline-none focus:border-primary-text",a?"bg-main-divider text-main-disabled hover:bg-main-divider":"bg-primary-main text-white hover:bg-primary-hove",e),onClick:r,disabled:a,"data-theme":l,children:[u("span",{className:"text-h4 pr-3",children:t}),n?u(ot,{image:{icon:n,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20",asSVG:!0}):null]}))),jr=({isUnfolded:e,onToggle:t})=>u(Mr,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:["Развернуть","Скрыть"][Number(e)],onClick:t}),_r=["ArrowDownIcon","ArrowUpIcon"],Lr="grid grid-cols-12 gap-1 border-box",Pr=x((({label:e="",filtrationState:t={},topItemsCount:n=0,block:l,notFound:a,...r})=>{const i=l?.blocks?.filter((e=>{return n=t,l=e.content||{},Object.entries(n).map((([e,t])=>Array.isArray(t)?((e,t)=>n=>void 0===t[e]||t[e]?.every((t=>n[e]?.includes(t))))(e,n):((e,t)=>n=>void 0===t[e]||t[e]===n[e])(e,n))).every((e=>e(l)));var n,l}))||[],[s,o]=n>0?[i.slice(0,n),i.slice(n)]:[i,[]];return p("div",{children:[u("div",{className:w(i.length?"hidden":"block"),children:a?zr(a):null}),p("div",{className:w(i.length?"":"hidden"),children:[u("div",{className:w("mb-1",Lr),children:ml(s,{...r.options,parent:l})}),u(wa,{renderFoldableSection:({isUnfolded:e})=>u(Ca,{className:w(Lr,e?"mb-1":""),isUnfolded:e,children:ml(o,{...r.options,parent:l})}),renderFoldButton:({isUnfolded:t,onToggle:l})=>u(Mr,{className:w(n<1?"hidden":""),disabled:!o?.length,label:e,icon:_r[Number(t)],dataTheme:r.options?.page?.colorPalette,onClick:l})})]})]})}));function zr({title:e,description:t}){return p("div",{className:"bg-white py-20",children:[e?u("div",{className:"mb-2",children:u(ae,{align:"text-center",children:u(re,{size:"text-h4",children:e})})}):null,t?u(ae,{size:"text-xl",font:"font-light",align:"text-center",children:t}):null]})}const Dr=x((({value:e,onChange:t,items:n=[],multiple:l})=>n.map((n=>u(Te,{text:n.title,value:[e].flatMap((e=>e)).includes(n.value),onChange:()=>(n=>{if(l){const l=e?.includes(n);t&&t(l?e?.filter((e=>e!==n)):[...e||[],n])}else t&&t(e===n?void 0:n)})(n.value),type:l?"checkbox":"radio"},n.value))))),Or=(e,t)=>n=>{const l=e[n],a=l?.type;return"array"===a?Ar(n,t)(l):null},Ar=(e,t)=>n=>{const l=n?.items?.enum?.map(((e,t)=>({value:e,title:n?.items?.enumNames?.[t]||""})))||[];return p("div",{children:[n?.title?u("div",{className:"mb-4",children:u(re,{size:"text-m",font:"font-light",color:"text-secondary-text",children:n.title})}):null,u(Dr,{items:l,multiple:!0,...t(e)})]},e)},Er=x((({className:e,filtrationSchema:t={},resetButton:n,...a})=>{const{formState:i,register:o,resetForm:c}=((e={})=>{const[t,n]=l(e),a=s({}),i=r((()=>n({})),[]);return{formState:t,register:e=>a.current?(a.current[e]||=t=>{n((n=>({...n,[e]:t})))},{value:t?.[e],onChange:a.current[e]}):{},resetForm:i}})();return p(k,{className:w(e),version:"transparent",...a,children:[p("form",{className:"flex justify-between bg-white p-9 mb-1",children:[u("div",{className:"flex gap-11",children:Object.keys(t).map(Or(t,o))}),n?u("div",{children:u(te,{className:"w-72",onClick:c,...n})}):null]}),u(Pr,{filtrationState:i,...a})]})}));function Fr(e,t={}){const{data:n}=B(`/wcms-resources/${e}.json`,M,{fallback:t});return n||{}}Er.childrenTypes=["ProductTile"],Er.childSchema=e=>e?.filtrationSchema||{};const Ur={"bg-white":"color",transparent:"white"},Hr={"bg-white":"text-primary-main",transparent:"text-white"},Gr=(e,t,n)=>u(ot,t?.src?{image:t,className:Hr[e],width:n?.width,height:n?.height,pathPrefix:"/wcms-resources/",asSVG:!0}:{image:{icon:t?.icon||"LogoIcon",iconVersion:Ur[e]},className:Hr[e],width:n?.width,height:n?.height,asSVG:!0}),Xr={"bg-white":"text-primary-text",transparent:"text-white"},Wr=(e,t,n)=>u("span",{className:`${Xr[t]} ml-2.5 font-medium ${n||""}`,children:e||"Россельхозбанк"}),Kr=x((({className:e="",href:t,logo:n,children:l=n?.title,targetBlank:a,bgColor:r="bg-white",showTitle:i=!0})=>p("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"/",target:a?"_blank":"_self","aria-label":n?.title||"Россельхозбанк",children:[Gr(r,n?.image,{width:"40",height:"45"}),i?Wr(l||n?.title,r):null]}))),Jr=x((({className:e,onClick:t})=>u("button",{className:w("visible peer-placeholder-shown:invisible w-6 h-6 p-1 bg-transparent border-none",e),onClick:t,title:"Закрыть",children:u(ot,{image:{icon:"CloseIcon"},width:"24",height:"24"})})));function Yr(e){throw new Error(e)}function qr({onOpen:e,onClose:t}={}){a((()=>f.subscribe("dialog",(n=>{switch(n.type){case"open":e&&e(n);break;case"close":t&&t();break;default:Yr(n)}}))),[e,t])}function Zr(e,...t){return e.map(((e,n)=>[e,...t.map((e=>e[n]))]))}const Qr=e=>t=>{if(e===t)return 1;if(!e||!t)return 0;const{m:n,s1Matches:l,s2Matches:a}=function(e,t){const n=Math.max(0,Math.floor(Math.max(e.length,t.length)/2)-1),l=new Array(e.length),a=new Array(t.length);let r=0;for(let i=0;i<e.length;i++){const s=Math.max(0,i-n),o=Math.min(i+n,t.length-1);for(let n=s;n<=o;n++)l[i]||a[n]||e[i]!==t[n]||(r++,l[i]=!0,a[n]=!0)}return{m:r,s1Matches:l,s2Matches:a}}(e,t);if(0===n)return 0;const r=function(e,t,{s1Matches:n,s2Matches:l}){let a=0;for(let r=0,i=0;r<e.length;r++){if(!n[r])continue;let s=i;for(;s<t.length;s++)if(l[s]){i=s+1;break}e[r]!==t[s]&&a++}return a}(e,t,{s1Matches:l,s2Matches:a}),i=(n/e.length+n/t.length+(n-r/2)/n)/3,s=i>.7?.1*function(e,t){let n=0;for(;e[n]===t[n]&&n<4;)n++;return n}(e,t):0;return i+s*(1-i)};const ei=(e,t)=>(n,l)=>{for(const[a,r]of l)n.set(a,e(n.get(a)||t,r));return n},ti=e=>e.toLowerCase().split(/[^0-9a-zа-я-]+/).filter((e=>e.length>=3&&!/[0-9a-z]/.test(e))),ni=e=>t=>e.map((([e,n])=>[Qr(t)(e),n])).filter((([e])=>e>=.8)).map((([e,t])=>ai(t,e))).reduce(ei(Math.max,0),new Map),li=e=>t=>{return Zr(t,t.map((({title:e})=>e)).map((e=>t=>{const n=ti(t||"");return n.length?((e=[])=>e.reduce(((e,t)=>e+t),0))(e.map((e=>vn(n.map(Qr(e)))))):0})(e))).sort((l=([,e])=>e,n=(e,t)=>l(e)-l(t),(e,t)=>-n(e,t))).map((([e])=>e));var n,l},ai=(e,t)=>new Map(e.map((e=>[e,t]))),ri=({basePathList:e=["/"],initialQuery:t="",wasOpened:n})=>{const[r,s]=l(t||"");a((()=>{null!=t&&s(t)}),[t]);const o=i((()=>e.map((e=>n?e:null))),[n,...e]),{data:c}=B(o,ii),[d,m]=l(null);return((e,t,n=300)=>{a((()=>{const t=setTimeout(e,n);return()=>{clearTimeout(t)}}),t)})((()=>{c&&m(c.map((e=>t=>{const{corpus:n,dictionary:l}=t||{};if(!(e&&n?.length&&l&&Object.keys(l).length))return[];const a=ti(e);if(!a.length)return[];const r=Object.entries(l),i=[...a.map(ni(r)).reduce(ei(((e,t)=>e+t),0),new Map).entries()].filter((([,e])=>e>=.799*a.length)).map((([e])=>n[e]));return li(a)(i)})(r)))}),[c,r]),[d,{value:r,onChange:s}]},ii=async(...e)=>(await Promise.allSettled(e.map((e=>V(D(e,"/","search.index.json")))))).map((e=>"fulfilled"===e.status?e.value:{})),si=x((({className:e,isOpened:t,head:n,children:l,onClose:r})=>(a((()=>{const e=({key:e})=>{"Escape"===e&&r&&r()};return globalThis.document?.addEventListener("keydown",e),()=>{globalThis.document?.removeEventListener("keydown",e)}}),[r]),t?u("div",{className:w("fixed inset-0 bg-white text-l-light z-50 overflow-x-hidden overflow-y-scroll no-scrollbar",e),role:"dialog",children:p("div",{className:"relative container pb-12 min-h-full",children:[p("div",{className:"sticky bg-white pt-6 top-0",children:[u(Jr,{className:"absolute top-3 -right-6",onClick:r}),n]}),l]})}):null)));function oi(e=!1){const[t,n]=l(e),a=r((()=>n(!0)),[]),i=r((()=>n(!1)),[]),s=r((()=>n((e=>!e))),[]);return[t,{setValue:n,setTrue:a,setFalse:i,toggle:s}]}function ci(e){const[t,{setTrue:n,setFalse:a}]=oi(),[i,o]=l({id:e}),c=s(t);c.current||=t;qr({onOpen:r((t=>{t.id===e?(o(t),n()):a()}),[e]),onClose:a});const d=r((()=>{a(),f.fire("dialog",{type:"close"})}),[]);return{...i,isOpened:t,wasOpened:c.current,onClose:d}}const di=x((({className:e,topItems:t})=>{const n=H({isRemote:!0});return u("div",{className:w("flex items-start justify-between",e),children:t?.map(n).map(mi)})})),mi=(e,t)=>{const{text:n,items:l,href:a,target:r,onClick:i}=e;return p("div",{className:"flex flex-col gap-3.5 w-1/4",children:[u("a",{className:"leading-5 text-l text-primary-text hover:text-primary-main no-underline",href:a,target:r||"_self",onClick:i,children:n||`Раздел ${t}`}),l?.map(((e,t)=>u(hi,{...e,basePath:a,index:t},String(t))))]},String(t))},hi=x((({text:e,index:t,basePath:n,...l})=>{const a=H({isRemote:!(!c.BASE_PATH||!n)&&!c.BASE_PATH.startsWith(n)}),{href:r,target:i,onClick:s}=a(l);return u("a",{className:w("text-l-light text-secondary-text hover:text-primary-main no-underline","overflow-x-hidden overflow-ellipsis whitespace-nowrap"),href:r,target:i||"_self",onClick:s,children:e||`Раздел ${t}`})})),ui=x((({className:e,isMobile:t,value:n,autoFocus:l,onChange:a,onFocus:i})=>{const s=r((e=>{a&&a(e.target?.value||"")}),[a]);return p("div",{className:w("font-sans relative",e),role:"form",children:[u("div",{className:"absolute h-full flex items-center pl-4 pointer-events-none",children:u(ot,{image:{icon:"LoupeIcon"},width:"24",height:"24"})}),u("input",{className:w("h-12 pl-12 w-full text-l text-black outline-none box-border","border border-solid rounded-md border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text",t?"":"h-full"),value:n,type:"text",name:"search-bar-input",placeholder:"Поиск по сайту",autoFocus:l,onChange:s,onFocus:i})]})})),pi="search",xi=x((({topItems:e})=>{const t=ci(pi),n=e?.map((e=>e.href||"/")),[l,r]=ri({basePathList:n,initialQuery:t.message,wasOpened:t.wasOpened}),s=i((()=>gi(e)(l)),[e,l]);return a((()=>function(e){for(const t of e.filter((({items:e})=>e?.length)))console.group(t.text),console.table(t.items,["text","href"]),console.groupEnd()}(s)),[s]),u(si,{...t,head:u(ui,{className:"my-5",autoFocus:!0,...r}),children:u(di,{topItems:s})})})),gi=e=>t=>e?.length&&t?.length?Zr(e,t).map((([e,t])=>({...e,items:t?.map((({title:e,uri:t})=>({text:e,href:D("/",t)})))}))):[];const bi=x((({className:e,isMobile:t})=>{const[n,a]=l(""),i=r((()=>a("")),[]);qr({onClose:i});const{open:s}=_(pi),o=r((e=>{a(e),fi(e)&&s(e)}),[]);return p("div",{className:e,children:[u(ui,{isMobile:t,value:n,onChange:o}),t?u(Jr,{className:"absolute top-2 right-3",onClick:i}):null]})})),fi=e=>e&&e.length>=3,vi=x((e=>u(bi,{...e}))),Ni=x((({className:e="",items:t,hasButton:n})=>p("div",{className:e,children:[t?.length?t.map(yi):null,n?u(te,{version:"primary",className:"mb-6 w-full",href:"https://www.rshb.ru/feedback/question/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),yi=(e,t)=>{const{type:n,text:l,description:a}=e;return p("div",{className:"mb-4",children:[u("div",{children:wi(n,l)}),u("div",{className:"mt-1 text-s-light text-secondary-text",children:a})]},String(t))},wi=(e,t="")=>{switch(e){case"tel":return u("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${Ci(t)}`,children:t});case"email":return u("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return u("span",{children:t})}},Ci=e=>e.replaceAll(/\D/g,""),ki=x((({className:e="",index:t,text:n,...l})=>{const a=H(),{href:r,target:i,onClick:s}=a(l);return u("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:r,target:i,onClick:s,children:n||`Документ ${t}`})})),Si=x((({className:e="",links:t})=>u("div",{className:e,children:t?.length?u("div",{className:"flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider",children:t.map(((e,t)=>u(ki,{index:t,className:"text-l-light max-w-[292px]",...e},String(t))))}):null}))),Ii=x((({className:e="",index:t,...n})=>{const l=H({isRemote:!0}),{href:a,target:r,text:i,onClick:s}=l(n);return u("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:a,target:r,onClick:s,children:i||`Документ ${t}`})})),Ti=x((({className:e="",links:t})=>p("div",{className:e,children:[u("div",{className:"pt-5",children:u("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?u("div",{className:"flex justify-start items-start gap-5 pt-2.5",children:t.map(((e,t)=>u(Ii,{index:t,...e},String(t))))}):null]}))),$i="w-[204px]",Bi=x((({className:e="",...t})=>{const n=t.options?.page?.fallback,l=Fr(c.SITEMAP||"sitemap",n),{documents:a,relatedEnterprises:r,contacts:i,socialMedia:s,mobileApps:o,logo:d}=Fr(c.FOOTER||"footer",n);return p(k,{tag:"footer",className:`p-9 ${e}`,...t,children:[p("div",{className:"flex items-stretch gap-[54px] pb-[30px] xl:gap-8",children:[u(Kr,{className:$i,logo:d}),u(vi,{className:"grow"})]}),p("div",{className:"flex items-stretch gap-[54px] xl:gap-8",children:[p("div",{className:"w-[204px] flex flex-col shrink-0 overflow-hidden",children:[u(Ni,{items:i,hasButton:!0}),u(ba,{media:s,children:"Соцсети"}),u(ba,{className:"mt-6",media:o,children:"Мобильное приложение"})]}),u(di,{className:"flex-grow",topItems:l?.topItems})]}),u(Si,{className:"mt-[98px]",links:r}),u(Ti,{links:a})]})})),Ri=x((({className:e="",title:t,description:n,calendar:l,...a})=>p(k,{className:`p-12 ${e}`,...a,children:[u(Vt,{className:"!p-0 mb-4",title:t,description:n,headlineVersion:"M"}),l?Vi(l):null]}))),Vi=e=>{const t=100/(e.reduce(((e,t)=>t?.month?.length?e+t.month.length:e),0)||1),n=e.filter((e=>e?.month?.length)).map((e=>({...e,flexBasis:`${e?.month?.length?e.month.length*t:""}%`})));return p("div",{className:"w-full flex flex-col justify-center mt-13",children:[u("div",{className:"flex w-full mb-3 text-h6 text-center",children:n.map((e=>Mi(e,t)))}),u("div",{className:"flex w-full",children:n.map(((e,t)=>p("div",{className:"pr-[11px] mr-3 border-r border-main-divider last:border-r-0 last:pr-0 last:mr-0",style:{flexBasis:e.flexBasis},children:[u("div",{className:"flex",children:ji(e)}),p("div",{className:"text-s-light text-primary-text mt-3",children:[u("span",{children:e.text})," ",u("span",{className:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},Mi=(e,t)=>e.month?.map(((e,n)=>u("div",{style:{flexBasis:`${t}%`},children:e.text},`monthName-${n}`))),ji=e=>e.month?.map((e=>e.image?.src?u("div",{className:"h-[207px] border-r pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0",children:u(ot,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),_i=864e5;function Li(e,t,n=globalThis?.localStorage){const l=r((async(...l)=>{const a=`async:${e}`,r=function(e){const{data:t=null,timestamp:n=null}=e?JSON.parse(e):{};return t&&Date.now()-n<_i?t:void 0}(n.getItem(a));if(r)return r;const i=await t(...l);return n.setItem(a,JSON.stringify({data:i,timestamp:Date.now()})),i}),[e,t]);return B(e,l)}const Pi=()=>{const e=globalThis.localStorage?.getItem("location");try{return e?JSON.parse(e):null}catch(e){return null}},zi=e=>({href:t})=>z(L(t)?e.href:e.pathname).startsWith(z(t));const Di=x((({className:e,searchTerm:t,onSearch:n})=>p("form",{className:`font-sans relative ${e}`,children:[u("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:t?null:u("label",{htmlFor:"search-bar-input",className:"text-secondary-text ",children:"Поиск по филиалам"})}),u("input",{id:"search-bar-input",className:"h-12 pl-4 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text",value:t,onChange:e=>n(e.target.value.toLowerCase()),type:"text",name:"location-search-bar-input"})]}))),Oi="location",Ai=x((({currentLocation:e,onChangeLocation:t,foreignOffices:n})=>{const a=ci(Oi),[i,s]=l(""),o=Fi(function(){const{data:e}=B("/api/v1/regions",M);return e||[]}()).sort(((e,t)=>e.name.localeCompare(t.name))),c=((e,t)=>{const n=new Map;for(const l of e){const e=t(l),a=n.get(e)||[];n.set(e,[...a,l])}return n})(o,Ei),d=r((e=>{a.onClose&&a.onClose(),t&&t(e)}),[a.onClose,t]);return p(si,{...a,head:p("div",{children:[u(Ui,{currentLocation:e,onChangeLocation:d}),u(Di,{onSearch:s,searchTerm:i,className:"mb-7"})]}),children:[i&&i.length>=3?u("div",{children:o.filter((({name:e})=>e&&Qr(e.toLowerCase())(i.toLowerCase())>=.8)).map(Gi(d))}):u("div",{className:"columns-5",children:Array.from(c.entries()).map(Hi(d))}),u(Xi,{foreignOffices:n})]})})),Ei=e=>e.name?.charAt(0)||"",Fi=e=>e.map((e=>({...e,name:e.name?.replace(/республика|область|край'/gi,"").trim()||""}))),Ui=x((({currentLocation:e,onChangeLocation:t})=>e?p("div",{className:"mb-4",children:[u(re,{size:"text-l",font:"font-light",children:"Сейчас выбран: "}),u("button",{className:"cursor-pointer",onClick:()=>{t&&t(e)},children:u(re,{color:"text-primary-main",children:e.name})})]}):null)),Hi=e=>([t,n])=>p("div",{className:"break-inside-avoid mb-7 w-[224px]",children:[u("div",{className:"mb-2.5",children:u(re,{size:"text-h6",children:t})}),n.map(Gi(e))]},t),Gi=e=>t=>u("div",{className:"mb-1",children:u("button",{className:"cursor-pointer hover:text-primary-hover",onClick:()=>{e&&e(t)},children:t.name||""})},t.id),Xi=x((({foreignOffices:e})=>e?.length?p("div",{className:"border-t border-main-divider mt-7 pt-7",children:[u("div",{className:"mb-4",children:u(re,{size:"text-m",font:"font-light",color:"text-secondary-text",children:"Представительства за рубежом:"})}),u("div",{className:"flex gap-10",children:e.map(((e,t)=>u(Wi,{...e},String(t))))})]}):null)),Wi=x((({icon:e,...t})=>{const n=H(),{text:l,target:a,href:r,onClick:i}=n(t);return p("div",{className:"flex gap-x-3",children:[e?u(ot,{pathPrefix:"/wcms-resources/",image:e}):null,l?u("a",{className:"hover:text-primary-hover",href:r,target:a,onClick:i,children:l}):null]})})),Ki=x((({className:e="",active:t,flat:n,children:l,...a})=>{const r=H({isRemote:!0}),{href:i,target:s,text:o,onClick:c}=r(a);return u("a",{className:w(Ji(t,n),e),href:i,target:s,onClick:c,rel:"noopener noreferrer","aria-label":o,children:u("span",{className:Yi(t,n),children:o||l})})})),Ji=(e=!1,t=!1)=>w("inline-block border border-solid bg-transparent text-center no-underline",e?"rounded-md border-primary-main group-data-transparent:border-white":"border-transparent",t?"":"px-4 py-2"),Yi=(e=!1,t=!1)=>w("font-sans text-s-light",e?"text-primary-main":w(t?"text-primary-text":"text-secondary-text","hover:text-primary-main"),"group-data-transparent:text-white group-data-transparent:hover:text-primary-hover"),qi=x((({className:e,isRounded:t,disabled:n,ariaLabel:l,image:a,onClick:r})=>u("button",{className:w("group/btn border-0 p-0 flex items-center bg-inherit",t?"w-8 h-8 text-secondary-light hover:text-secondary-hove":"w-6 h-6 text-primary-text hover:text-primary-main","group-data-transparent:text-white",e),type:"button",disabled:n,"aria-label":l,onClick:r,children:u(ot,{image:a,className:w("h-full",t?"bg-main-divider/20 rounded-full":""),imageClassName:"group-hover/btn:text-primary-hover group-hover/btn:invert-0",asSVG:!0})}))),Zi=e=>globalThis[e];function Qi(e,t){const[n,i]=l(),s=r((()=>i(Zi(e))),[e]);return a((()=>{const n=document.getElementById(t);if(!n){const e=document.createElement("script");return e.src=t,e.async=!0,e.id=t,e.addEventListener("load",s),document.head.appendChild(e),()=>{document.head.removeChild(e),i(void 0)}}if(!Zi(e))return n.addEventListener("load",s),()=>{n.removeEventListener("load",s)};s()}),[e,t]),n}const es={personal:"//chat.mes.rshb.ru/assets/js/webchat_rshb",business:""},ts=x((e=>{const[t,{setTrue:n}]=oi();return t?u(ns,{...e}):ls({...e,onClick:n})})),ns=x((({chat:e="personal",...t})=>((e=>{a((()=>globalThis.localStorage?.setItem("webchat-keep-open",String(Date.now()))),[]),Qi("chatbot",es[e])})(e),ls(t)))),ls=({className:e,iconVersion:t,onClick:n})=>u(qi,{className:w("text-page__btn-chat",e),image:{icon:"HeadphonesIcon",iconVersion:t},ariaLabel:"Чат",onClick:n}),as=x((({className:e,version:t,locationName:n,officesLink:l})=>{const a="transparent"===t?"white":"black",{open:i}=_(Oi),s=r((()=>i()),[]),{open:o}=_(pi),d=r((()=>o()),[]);return p("div",{className:w("flex items-center gap-5",e),children:[u(Ki,{flat:!0,href:"#",text:n,onClick:s}),l?u(Ki,{flat:!0,href:l,text:"Офисы и банкоматы"}):null,u(qi,{image:{icon:"LoupeIcon",iconVersion:a},ariaLabel:"Поиск",onClick:d}),c.CHAT_BOT?u(ts,{iconVersion:a,chat:c.CHAT_BOT}):null]})})),rs=x((({className:e="",items:t,activeItem:n})=>{const a=H(),[i,s]=l(!1),o=r((()=>s((e=>!e))),[]),c=ge(r((()=>s(!1)),[]));return p("div",{className:w(i?"bg-white rounded-md shadow-blue-gray":"",e),ref:c,children:[u("button",{className:"group/btn flex justify-between items-center h-6 ml-6","aria-label":""+(i?"Скрыть другие разделы":"Показать другие разделы"),onClick:o,children:Array(3).fill(null).map(((e,t)=>u("div",{className:"w-[3px] h-[3px] rounded mr-1 bg-primary-text group-hover/btn:bg-primary-hover group-data-transparent:bg-white"},String(t))))}),u("div",{className:w("flex flex-col rounded-md bg-white p-6 pb-2",i?"":"hidden"),"aria-hidden":!i,children:t?.map(((e,t)=>{const{text:l,...r}=e;return u("a",{className:w("text-l-light pb-4 hover:text-primary-main",e===n?"text-primary-main":""),...a(r),children:l},e.href||String(t))}))})]})})),is=x((({className:e="",active:t,dataItemName:n,children:l,...a})=>{const r=H(),{href:i,target:s,text:o,onClick:c}=r(a);return p("a",{className:w("relative inline-block bg-transparent text-center no-underline",e),href:i,target:s,"data-item-name":n,onClick:c,children:[u("span",{className:ss(t),children:o||l}),t?u("div",{className:"absolute left-0 right-0 -bottom-3 h-0.5 bg-primary-main group-data-transparent:bg-transparent"}):null]})})),ss=(e=!1)=>w("font-sans text-l-light",e?"text-primary-main":"text-primary-text hover:text-primary-main","group-data-transparent:text-white group-data-transparent:hover:text-primary-hover"),os=x((({observerOptions:e,onVisibilityChange:t,children:n,...l})=>{const a=v(r((e=>{if(!e.length||!t)return;const n=e[e.length-1];t(n.isIntersecting)}),[t]),e);return u("span",{ref:a,children:u(is,{...l,children:n})})})),cs=x((({subItems:e=[]})=>{const t=(e=>(t=[])=>{const n=t?.filter(zi(e));return n?.length?fn((e=>e.href?.length||0))(n):void 0})(U())(e),[n,a]=l(e.length),r=e.slice(n),o=s(null),c={rootRef:o},d=i((()=>e.map(((e,t)=>e=>{a(e?ds(t):ms(t))}))),[e]);return p("nav",{className:"relative mt-6",children:[u("div",{ref:o,className:"overflow-hidden whitespace-nowrap mr-52 pb-3",children:e.map(((e,l)=>u(os,{className:w("mr-8",n-1<l?"invisible":""),active:e===t,observerOptions:c,onVisibilityChange:d[l],...e},String(l))))}),r.length?u(rs,{className:"absolute w-52 -top-4 right-0 pt-4 z-40",items:r,activeItem:t}):null]})})),ds=e=>t=>Math.max(t,e+1),ms=e=>t=>Math.min(t,e),hs={"bg-white":"primary",transparent:"transparent"},us=x((({bgColor:e="bg-white",className:t,showSubMenu:n=!0,version:i=hs[e],...s})=>{const o=U(),{topItems:d,logo:m,defaultLocation:h,foreignOffices:x,officesLink:g}=Fr(c.SITEMAP||"sitemap",s.options?.page?.fallback),b=d?.find((e=>zi(c.BASE_PATH?{pathname:c.BASE_PATH}:e))(o)),[f,v]=function(e="Москва"){const t=Pi(),[n,i]=l(t?.region??{name:e}),{data:s}=Li("/api/v1/region",M);return a((()=>{i(t?.region&&t?.manual?t.region:s||{name:e})}),[s]),[n,r((e=>{globalThis.localStorage?.setItem("location",JSON.stringify({manual:!0,region:e})),i(e)}),[])]}(h);return p(k,{tag:"header",className:w("pt-6 px-20",n&&b?.items?.length?"pb-4":"pb-5",t),version:i,...s,children:[p("div",{className:"container",children:[p("div",{className:"flex items-center",children:[u(Kr,{className:"mr-8",bgColor:e,logo:m}),d?.map(((e,t)=>u(Ki,{active:e===b,...e},String(t)))),u(as,{version:i,className:"ml-auto",locationName:f.name,officesLink:g})]}),u("div",{className:w("mt-6 h-px bg-main-divider","transparent"===i?"opacity-30":"")}),n&&b?.items?.length?u(cs,{subItems:b.items}):null]}),u(xi,{topItems:d}),u(Ai,{currentLocation:f,foreignOffices:x,onChangeLocation:v})]})})),ps={XXL:"gap-12",XL:"gap-10",L:"gap-8",M:"gap-4",S:"gap-2",XS:"gap-1","":""},xs=x((({className:e="",gap:t="XS",isPadding:n=!1,version:l="transparent",isTheme:a=!1,...r})=>u(k,{className:w("grid grid-cols-12",n?"p-12":"",ps[t],e),version:l,isTheme:a,...r,children:hl(r)})));xs.childrenTypes={exclude:["HorizontalLayout"]};const gs=x((e=>{const{className:t,image:n,...l}=e;return u(k,{className:t,...l,children:u(ot,{image:n})})})),bs=x((({className:e="",cards:t=[],button:n})=>{const[a,i]=l(0),s=r((e=>i(e)),[]),o=t.length,[c,d]=Ht({itemCount:o,visibleItemCount:2}),{canDec:m,canInc:h}=d,x=t[c]?.href;return p("section",{role:"listitem",className:`min-w-full text-center ${e}`,children:[p("div",{className:"relative overflow-hidden",children:[o?fs({activeIndex:c,cards:t,selectedCardIndex:a,onClick:s}):null,Kt({...d,btnClass:["left-12","right-12"],className:"top-[62px]"}),m?u("div",{className:"absolute top-0 left-0 h-full w-[136px] bg-opacity-from-white"}):null,h?u("div",{className:"absolute top-0 right-0 h-full w-[136px] bg-opacity-to-white"}):null]}),u(te,{className:"w-60 text-center",version:"primary",...n,href:x})]})}));function fs({activeIndex:e,cards:t,selectedCardIndex:n,onClick:l}){const a=460*e,r=t.length>2?"justify-start":"justify-center";return u("div",{style:{transform:`translateX(-${a}px)`},className:"duration-1000 px-12",children:u("div",{className:`w-full flex flex-nowrap gap-3.5 pb-12 ${r}`,children:t.map(((e,t)=>function({slide:e,i:t,isActive:n,onClick:l}){return p("button",{type:"button",onClick:l,className:"p-[30px] min-w-[460px] flex items-center bg-white border-solid border relative "+(n?"shadow-dark-blue border-primary-main":"ease-in duration-300 border-gray"),children:[e?.icon?u(ot,{className:"p-5 rounded-full bg-secondary-light mr-[30px]",image:e.icon,width:"108",height:"108"}):null,p("div",{className:"flex gap-3.5",children:[e?.sum?vs("страховая сумма",e.sum):null,e?.fee?vs("страховой взнос",e.fee):null]}),Ns(n)]},String(t))}({slide:e,i:t,isActive:Boolean(t===n),onClick:()=>l(t)})))})})}function vs(e,t){return p("div",{className:"flex flex-col text-left whitespace-pre",children:[p("span",{className:"text-h6",children:[Ue(t)," ₽"]}),u("span",{className:"text-secondary-text text-l mt-1",children:e})]})}function Ns(e){return e?u(ot,{className:"h-6 w-6 min-w-6 min-h-6 absolute right-4 top-4",image:{icon:"DoneIcon"},width:"24",height:"24"}):null}const ys=x((({className:e="",title:t,insuranceTabs:n=[],button:a,...i})=>{const[s,o]=l(0),c=r((e=>o(e)),[]);return p(k,{className:`box-border py-12 overflow-hidden relative w-100 ${e}`,...i,children:[t?u(T,{className:"text-center mb-8",title:t,headingType:"h3"}):null,n?.length>1?u("div",{className:"p-1.5 bg-secondary-light w-fit mx-auto mb-7 rounded-md",children:n.map(((e,t)=>function({title:e,i:t,isActive:n,onClick:l}){return u("button",{type:"button",onClick:l,"aria-label":e,className:"box-border px-4 py-3 text-m-light "+(n?"bg-primary-main text-white rounded-md":"text-secondary-text"),children:e},String(t))}({title:e?.title,i:t,isActive:Boolean(t===s),onClick:()=>c(t)})))}):null,u("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:ws({insuranceTabs:n,button:a})})]})})),ws=({insuranceTabs:e,button:t})=>{const n=e?.map((e=>e.cards));return n?.length?n.map(((e,n)=>u(bs,{button:t,cards:e},String(n)))):null};function Cs(e){return t=>t.reduce(((t,n,l)=>t.length?t.concat({...e,key:l},n):[n]),[])}const ks={yellow:"bg-yellow",green:"bg-green","green-light":"bg-green-light","green-dark":"bg-green-dark"},Ss={XS:"h-[40px]",S:"h-[68px]",M:"h-[102px]",L:"h-[136px]",XL:"h-[204px]"},Is=x((e=>{const{className:t="",items:n,isDotted:l,investmentZeroColumn:a,investmentColumns:r,...i}=e,s=r?[...r]:[];return a&&s.unshift(a),u(k,{className:`px-9 py-12 ${t}`,...i,children:p("div",{className:"container text-m-light",children:[s?.length?p("div",{children:[p("div",{className:"flex items-end relative pl-9 pr-5 text-white",children:[Cs(u("div",{className:"w-px h-4 bg-gray"}))(s.map(Ts)),u("div",{className:"absolute right-[30px] w-px h-4 bg-gray"})]}),u("div",{className:"border-t border-gray -mt-2 ml-9 mr-8"}),u("div",{className:"flex justify-between text-primary-text mt-3 -mx-10",children:s.map(Rs)})]}):null,n?.length?u(la,{className:"mt-9 text-l-light max-w-[657px]",items:n,itemClassName:"mb-[7px]",isDotted:l}):null]})})})),Ts=(e,t,n)=>{const l=1===t,a=t===n.length-1;return u("div",{className:`${$s(l,a,e.cells)}`,children:e.cells?.length?u("div",{className:"w-full "+(a?"border-4 border-green-more-dark p-1.5 min-w-[290px]":""),children:e.cells.reverse().map(Bs)}):null},`column_${t}`)},$s=(e,t,n=[])=>[n.length?"flex-1":"flex-0",!n.length||e||t?"":"pl-2.5",n.length&&!t?"pr-2.5 pb-8":"pb-[22px]"].join(" "),Bs=(e,t)=>{const n=e.cellSize||"XS",l=e.cellColor||"green";return e.text?u("div",{className:`flex-1 flex items-center justify-center relative py-2 ${Ss[n]} ${ks[l]} ${"XS"===n?"px-3":"px-11"}`,children:u("div",{className:"text-center",children:e.text})},`cell_${t}`):null},Rs=(e,t,n)=>{const l=0===t,a=t===n.length-1;return u("div",{className:`flex-1 max-w-[180px] text-center px-2 ${l?"pl-9":""} ${a?"mr-3.5":" "}`,children:e.title},`title_${t}`)},Vs=x((({doc:e,icon:t})=>{const{text:n,fileSize:l,...a}=e;return p("a",{className:"flex box-border gap-3 group/item h-fit w-fit text-primary-text no-underline hover:text-primary-main",role:"link",...a,children:[t,n?p(re,{size:"text-l",font:"font-light",children:[n,u(re,{color:"text-secondary-text",children:a?.href&&Ms(js(a.href),l)})]}):null]})})),Ms=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),js=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},_s={double:"flex-wrap",single:"flex-col"},Ls=x((({className:e="",title:t,description:n,align:l="text-center",documents:a,icon:r={icon:"DocIcon"},columnsMode:i="double",...s})=>p(k,{className:w("p-12",e),...s,children:[u(Vt,{className:"!p-0",title:t,description:n,align:l,headlineVersion:"M",as:"h2"}),a?.length?u("div",{className:w("mt-8 flex gap-6",_s[i]),role:"list",children:a.map(((e,t)=>u("div",{className:"double"===i?"basis-[calc(50%-20px)]":"",role:"listitem",children:u(Vs,{doc:e,icon:r?u(ot,{className:"min-w-6 min-h-6",image:r,width:"24",height:"24",asSVG:!0}):null})},String(t))))}):null]}))),Ps=e=>{const t="col-span-",n=e?.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function zs(e=""){const t=Ps(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}const Ds=x((({className:e="",title:t="Мобильное приложение",qr:n,buttons:l,version:a="primary",items:r,image:i,headingType:s="h4",alignTitle:o="left",description:c,...d})=>{const m="secondary"===a?"p-3.5 min-w-[120px]":"min-w-[92px]";return p(k,{className:`flex justify-between p-12 box-border relative min-h-80 ${zs(e)} ${e}`,version:a,...d,children:[p(Gl,{className:"z-10",title:t?u(T,{headingType:s,as:"h3",title:t,className:`whitespace-pre-wrap mb-7 w-full ${Pt[o]}`}):null,buttons:It(l,{className:"mt-8",buttonClassName:"min-w-[168px]"}),children:[As(c),p("div",{className:"flex flex-1 items-center mb-3",children:[n?.src?u("div",{className:`flex justify-center mr-5 bg-white rounded-md ${m}`,children:u(ot,{className:"w-fit",image:n})}):null,Os(r)]})]}),i?.src?u("div",{className:"absolute right-0 bottom-0",children:u(ot,{image:i})}):null]})})),Os=e=>e?.length?u(la,{items:e,itemClassName:"text-l-light mb-2 last:mb-0"}):u("span",{className:"text-m-light text-secondary-text",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),As=e=>e?u("p",{className:"text-xl-light mb-5 pt-0.5",children:e}):null,Es=[{coords:[55.77,37.46],text:"Трактир"},{coords:[55.66,37.48],text:"Трактор"},{coords:[55.65,37.42],text:"Ресторан"},{coords:[55.64,37.54],text:"Музей"},{coords:[55.54,37.52],text:"Библиотека"},{coords:[55.53,37.56],text:"Школа"},{coords:[55.61,37.61],text:"Аптека"},{coords:[55.8,37.58],text:"Бар"},{coords:[55.71,37.35],text:"Институт"},{coords:[55.74,37.57],text:"Университет"},{coords:[55.58,37.69],text:"Больница"},{coords:[55.57,37.7],text:"Цирк"},{coords:[55.55,37.64],text:"Магазин"},{coords:[55.5,37.75],text:"Булочная"},{coords:[55.81,37.73],text:"Полиция"},{coords:[55.73,37.68],text:"Салон красоты"},{coords:[55.86,37.76],text:"Баня"},{coords:[55.38,37.69],text:"Гараж"},{coords:[55.91,37.5],text:"Дом"},{coords:[55.62,37.32],text:"Прачечная"},{coords:[55.85,37.41],text:"Стадион"},{coords:[55.67,37.24],text:"Вокзал"},{coords:[55.79,37.41],text:"Кафе"}];function Fs(e,t,n){t.geoObjects.removeAll();const l=e.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>'),a=new e.Clusterer({clusterIcons:[{href:"icons/MapMarkerClusterIcon.svg",size:[78,84],offset:[-35,-50]}],clusterIconContentLayout:l,clusterHideIconOnBalloonOpen:!1,geoObjectHideIconOnBalloonOpen:!1}),r=n.map((t=>new e.Placemark(t,{},{iconLayout:"default#image",iconImageHref:"icons/MapMarkerSingleIcon.svg",iconImageSize:[78,84],iconImageOffset:[-35,-50]})));a.add(r),t.geoObjects.add(a),t.setBounds(e.util.bounds.fromPoints(n)).then((()=>{t.getZoom()>10&&t.setZoom(10)}))}const Us={focus:"focus:border-primary-text focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border border-transparent rounded-md",position:"flex items-center justify-center",font:"text-center font-sans"},Hs=e=>u("a",{className:`select-none cursor-pointer px-9 h-12 bg-primary-main text-white ${Object.values(Us).join(" ")}`,href:`https://yandex.ru/maps/?ll=${[e[1],e[0]]}&z=10&l=map`,target:"_blank",children:"Открыть на карте"}),Gs={border:"border border-transparent rounded-md",position:"relative flex items-center",font:"text-center font-sans",shadow:"shadow-[0_4px_25px_rgba(0,0,0,0.07)]"},Xs=(e,t,n)=>p("div",{className:`${Object.values(Gs).join(" ")} bg-white py-3 pl-11 pr-4 w-full`,children:[u(fe,{name:"LoupeIcon",iconVersion:"black",width:"20",height:"20",asSVG:!0,className:"absolute left-4"}),u("input",{type:"text",placeholder:"Введите адрес или метро",onChange:t=>{const l=t.target?.value?t.target?.value.toLowerCase():"";if(l){const t=e.filter((e=>e.text.toLowerCase().indexOf(l)>-1?e:null));n(t)}else n(null)},className:"border-0 focus:border-0 outline-0 w-full"})]}),Ws={focus:"focus:border-primary-text focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border border-transparent rounded-md",position:"absolute flex items-center justify-center",font:"text-center font-sans"},Ks=(e,t,n)=>u("div",{className:`select-none cursor-pointer py-4 w-12 bg-white ${Object.values(Ws).join(" ")} ${n}`,onClick:()=>{t.geolocation.get({provider:"yandex",autoReverseGeocode:!0,mapStateAutoApply:!0}).then((function(t){e.geoObjects.add(t.geoObjects)}))},children:u(fe,{name:"UserGeoLocationIcon",width:"20",height:"16"})}),Js={focus:"focus:border-primary-text focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border-b border-b-2 border-gray last:border-0",position:"relative flex items-center justify-center",font:"text-center font-sans text-l"},Ys=x((({yandexMaps:e,direction:t="in"})=>{const n="in"===t?"PlusIcon":"MinusIcon";return u("div",{onClick:()=>{const n=e.current.getZoom(),l="in"===t?n+1:n-1;e.current.setZoom(l,{checkZoomRange:!0})},className:`${Object.values(Js).join(" ")} bg-white select-none cursor-pointer w-12 h-12`,children:u(fe,{name:n,width:"20",height:"16"})})})),qs={border:"border border-transparent rounded-md ",position:"absolute flex items-center justify-center",size:"w-12 h-12",focus:"focus:border-primary-text focus:border",font:"text-center font-sans",active:"active:bg-primary-active",hover:"hover:bg-primary-hover",other:"select-none cursor-pointer"},Zs=x((({points:e,className:t="",zoom:n=5,showSearchField:r=!1})=>{const i=s(null),o=Qi("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${c.YANDEX_MAP_API_KEY||""}&lang=ru_RU`),[d,m]=l(),[h,x]=l(no(Es)),g=Qs(e);if(a((()=>{i?.current||o?.ready((()=>{i.current=new o.Map("map",{center:g,zoom:n,controls:[],suppressMapOpenBlock:!0}),Fs(o,i.current,h)}))}),[o,i,h]),a((()=>{if(i.current&&h&&o){const e=h.length<1?no(Es):h;Fs(o,i.current,e)}}),[i,h,o]),!o)return null;const b=d?"z-[100000]":"z-10";return p("div",{id:"map",className:`${d?"":"relative"} w-full ${t}`,children:[u("div",{className:`absolute flex left-2 top-4 w-[50%] ${b}`,children:r?Xs(Es,0,(e=>{if(e){const t=no(e);x(t)}})):Hs(g)}),u("div",{className:`${Object.values(qs).join(" ")} ${b} right-2 top-4 bg-white`,onClick:()=>{const e=i.current.container;d?e.exitFullscreen():e.enterFullscreen(),m(e.isFullscreen())},children:u(fe,{name:"FullScreenIcon",width:"16",height:"16"})}),p("div",{className:`absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md ${b}`,children:[u(Ys,{yandexMaps:i}),u(Ys,{yandexMaps:i,direction:"out"})]}),Ks(i.current,o,`right-2 top-80 ${b}`)]})})),Qs=e=>[to(eo(e,0)),to(eo(e,1))],eo=(e,t)=>e.map((e=>e[t])),to=e=>e.reduce(((e,t)=>e+t))/e.length,no=e=>e?e.map((e=>e.coords)):null,lo=[{title:"Деловой центр",time:"1 мин",distance:"~30 м.",icon:"MetroIcon"},{title:"Выставочная",time:"5 мин",distance:"~120 м.",icon:"MetroIcon"},{title:"Деловой центр",time:"8 мин",distance:"~350 м.",icon:"MetroIcon"}],ao=({lunchHour:e,status:t,workTime:n})=>{const l=/\d+/gi.test(e)?`Перерыв ${e}`:e;return t?p("div",{className:"flex",children:[u("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-primary-main border-green-light mr-4",children:n||null}),u("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-yellow border-golden",children:e?l:null})]}):u("div",{className:"flex",children:u("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-error border-error",children:"Выходной"})})},ro=({icon:e,title:t,distance:n,time:l},a)=>p("div",{className:"flex mr-4",children:[u(fe,{name:e,width:"16",height:"16",asSVG:!0,className:"mr-1"}),t?p("span",{className:"text-m",children:[t," "]}):null,p("span",{className:"text-m-light",children:[n?` (${n})`:null,l?`, ${l}`:null]})]},`nearbyOffice${a}`),io=({title:e,status:t,workTime:n,lunchHour:l,description:a},r)=>p("div",{className:"flex flex-col pb-3 border-b border-solid border-main-divider mb-3 last:border-0",children:[p("div",{className:"flex justify-between items-center w-full pb-1 text-l text-primary-text",children:[u("div",{children:e}),t?null:u("div",{className:"text-m-light text-error",children:"Выходной"}),t&&n?u("div",{children:n}):null]}),t&&l?so(l):null,a?u("div",{className:"pb-1 text-s-light text-secondary-text",children:a}):null]},`day${r}`),so=e=>/\d+/gi.test(e)?p("div",{className:"flex justify-between items-center w-full pb-1 text-m-light text-error",children:[u("div",{children:"Перерыв"}),u("div",{children:e})]}):u("div",{className:"flex justify-between items-center w-full pb-1 text-m-light text-primary-main",children:u("div",{children:e})}),oo={id:123,branchType:{id:7,code:"21",name:"Отделение на балансе филиала"},shortName:"Ейский ДО",name:"ДО №3349/3/05",address:"353682, Краснодарский край, г.Ейск, ул.Гоголя, 349/ ул.Баррикадная, 42/1",lawAddress:"353682, Краснодарский край, г.Ейск, ул.Гоголя, 349/ ул.Баррикадная, 42/1",openDate:"2000-12-05",closeDate:null,bik:"040349536",corAcc:"30101810700000000536",registrationNumber:"3349/3/05",phone:"+7(XXX)XXX-XX-XX",fax:"+7(XXX)XXX-XX-XY",okpo:"55105921",ogrn:"1027700342890",kpp:"231002002",inn:"7725114488",branchCode:"0305",upperBranchCode:"0300",timeZone:"+03:00",exchangeRate:{currencies:[{buyExchangeRate:0,saleExchangeRate:0,currency:{id:3,code:"156",currency:"CNY",name:"Китайский юань"}},{buyExchangeRate:59.15,saleExchangeRate:69.25,currency:{id:2,code:"978",currency:"EUR",name:"Евро"}},{buyExchangeRate:58.4,saleExchangeRate:70.05,currency:{id:1,code:"840",currency:"USD",name:"Американский доллар"}}],lastUpdate:"2022-11-11 03:56:17"},workSchedule:{id:413,workTime:"09.00–16.30",lunchHour:"без перерыва",workTimeSaturday:"09.00–15.00",lunchHourSaturday:"без перерыва",workingMonday:!1,workingTuesday:!1,workingWednesday:!0,workingThursday:!0,workingFriday:!0,workingSaturday:!0,workingSunday:!1},gpsLatitude:46.709744,gpsLongitude:38.260703,range:null,safeBoxCaseVolumes:null};function co(e){return e?V(e,{method:"GET"}):{}}const mo=x((({className:e=""})=>{const t=function(e){const{data:t}=B(e?`/api/v1/branches?regionCode=${e}`:void 0,co);return console.warn("Hook useOfficeMap RETURNs MOCK object for testing",t),oo}("000"),{name:n,address:l,gpsLatitude:a,gpsLongitude:r,workSchedule:i}=t,{workingMonday:s,workingTuesday:o,workingWednesday:c,workingThursday:d,workingFriday:m,workingSaturday:h,workingSunday:x}=i,{workTime:g,lunchHour:b,workTimeSaturday:f,lunchHourSaturday:v}=i,N=a&&r?[a,r]:null,y=[{title:"Понедельник",status:s,workTime:g,lunchHour:b},{title:"Вторник",status:o,workTime:g,lunchHour:b},{title:"Среда",status:c,workTime:g,lunchHour:b},{title:"Четверг",status:d,workTime:g,lunchHour:"13:00 - 14:00",description:"Не работает прием денег с 17:00 до 19:00"},{title:"Пятница",status:m,workTime:g,lunchHour:b},{title:"Суббота",status:h,workTime:f,lunchHour:v},{title:"Воскресенье",status:x}],w=(new Date).getDay(),C=w>0?y[w-1]:y[6];return p("div",{className:`flex flex-col font-sans bg-white w-full ${e}`,children:[p("div",{className:"flex flex-col px-12 pt-12",children:[p("div",{className:"flex justify-between",children:[u("div",{className:"text-h2",children:n}),ao(C)]}),p("div",{className:"flex text-l-light pt-4",children:[u(fe,{name:"GeolocationIcon",width:"24",height:"24",asSVG:!0,className:"pr-1"}),l]}),u("div",{className:"flex pt-4",children:lo.map(ro)})]}),p("div",{className:"flex justify-between pt-8",children:[u("div",{className:"flex-grow h-full w-full overflow-hidden",children:N?u(Zs,{points:[N],className:"h-full"}):null}),u("div",{className:"w-[434px] min-w-[434px] pl-9 pr-12 pb-14 flex flex-col",children:y.map(io)})]})]})})),ho=x((({className:e="",title:t,servicesList:n,...l})=>p(k,{className:`p-8 flex flex-col ${e}`,...l,children:[t?u(T,{headingType:"h5",className:"mb-5",title:t}):null,n?.length?u("ul",{className:"list-none m-0 p-0",children:n.map(uo)}):null]}))),uo=(e,t)=>p("li",{className:"flex mb-5 last:mb-0 list-none",children:[e.icon?u(ot,{className:"mr-3 min-w-6 min-h-6 w-6 h-6",width:"24",height:"24",asSVG:!0,image:e.icon}):null,e.label?u("span",{className:"text-l-light",children:e.label}):null]},`list_item_${String(t)}`),po=x((({text:e,size:t,align:n,font:l,children:a,...r})=>u(k,{...r,children:u(ae,{size:t,align:n,font:l,children:e||a})}))),xo=x((e=>{const{className:t="",icon:n,label:l,description:a,version:r="primary",benefitsVersion:i="normal"}=e;return p("div",{className:`flex gap-5 ${a?"items-start":"items-center"} ${t}`,children:[n?u("div",{className:go(r,i),children:u(ot,{className:"w-6 h-6",image:{...n,iconVersion:n.iconVersion||i},asSVG:!0})}):null,p("div",{className:"gap-0.5",children:[l?u("div",{className:"text-h6 text-primary-text group-data-secondary:text-white",children:l}):null,a?u("div",{className:"text-m-light text-secondary-text group-data-secondary:text-white",children:a}):null]})]})}));function go(e,t){let n="bg-primary-main text-black";return"secondary"===e?n="bg-white/30 text-black":"normal"===t&&(n="bg-secondary-light text-primary-main"),`w-12 h-12 min-w-12 rounded-full p-2.5 box-border flex items-center justify-center ${n}`}const bo=e=>(t,n)=>{const{type:l}=t;if("default"!==l&&"rte"!==l)return null;switch(l){case"default":return u(xo,{icon:t.icon,label:t.label,description:t.description,version:e},String(n));case"rte":return u(Na,{__html:t.__html});default:Yr(t)}},fo=x((({className:e="",title:t,description:n,image:l,benefits:a,sum:r,monthLimit:i,directionRight:s=!1,version:o="primary",...c})=>p(k,{className:`relative py-12 px-24 ${e}`,version:o,...c,children:[u(Vt,{className:"!p-0",title:t,description:n,headlineVersion:"M"}),p("div",{className:"flex justify-center gap-[122px] mt-[30px]",children:[l?.src?u(ot,{className:s?"order-2":"",image:l}):null,p("div",{className:"w-[558px] m-auto",children:[a?.length?u("div",{className:"flex flex-col gap-4",children:a.map(bo(o))}):null,vo(Number(r),Number(i))]})]})]})));function vo(e,t){return e||t?p("div",{className:"bg-main-divider rounded-md flex mt-7 gap-6 px-5 py-4",children:[Number(e)>0?No("Страховая сумма:",e,Boolean(t)):null,Number(t)>0?No("Ежемесячный лимит:",t,Boolean(e)):null]}):null}function No(e,t=0,n=!1){return p("div",{className:`flex justify-between items-center gap-2 w-full whitespace-pre ${n?"w-fit":"w-full"}`,children:[u("span",{className:"text-secondary-text text-l-light",children:e}),p("span",{className:"text-primary-main text-h6",children:[Ue(t)," ₽"]})]})}function yo(e=""){const t=Ps(e);return t<=4?"S":t<=8?"M":"L"}function wo(e=""){const t=Ps(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const Co=x((({className:e,title:t,description:n="Блок в разработке...",...l})=>p(k,{className:w("p-9 box-border",e,wo(e),zs(e)),...l,children:[u(Vt,{className:"!p-0 max-w-[600px]",title:t,description:n,headlineVersion:yo(e)}),u("figure",{className:"m-0 min-w-[80%]",children:ko()})]}))),ko=(e=3)=>Io(100,e).map((e=>Math.floor(e))).map(So),So=(e,t)=>u("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Io=(e,t)=>[e].concat(t>0?Io(e/1.618,t-1):[]),To=x((({className:e="",children:t,...n})=>{const l=H(),{text:a,href:r,target:i,onClick:s}=l(n);return r?u("a",{className:`no-underline ${e}`,href:r,target:i,onClick:s,children:u("span",{className:e,children:a||t})}):u("span",{className:e,children:a||t})})),$o=(e="primary",t="normal")=>({icon:n,label:l,description:a},r)=>u(xo,{icon:n,label:l,description:a,version:e,benefitsVersion:t},String(r)),Bo=x((({className:e="",title:t,headlineVersion:n="L",description:l,benefitsCountOfRow:a=3,benefits:r,benefitsVersion:i,buttons:s,image:o,__html:c,items:d,version:m="primary",isDotted:h=!0,textBlockClassName:x="",directionRight:g=!0})=>{const b=r?.filter((e=>e.label))?.length,f=Ro(a);return p("div",{className:w("flex grow justify-between items-stretch h-full",e),children:[o?.src?u(ot,{className:w("mt-[-50px]",g?"order-2":""),image:o}):null,p("div",{className:w("flex flex-col",x),children:[u(Vt,{className:"!p-0 max-w-[600px]",title:t,description:l,headlineVersion:n,align:"text-left"}),p(Gl,{buttons:It(s),children:[b?u("div",{className:f,children:r?.map($o(m,i))}):null,c?u("div",{className:"mt-5",children:u(Na,{__html:c})}):null,d?.length?u(la,{className:"mt-5 text-h6",items:d,itemClassName:"mb-[7px]",isDotted:h}):null]})]})]})})),Ro=(e=2)=>"gap-6 mt-6 "+(e>2?"inline-grid grid-cols-[auto_auto_auto]":"inline-grid grid-cols-[auto_auto]");function Vo(e,t,n){const{text:l,href:a,target:r}=e,i="primary"===t?"white":"black",s=e?.icon||{icon:"ArrowLeftIcon"};return p("div",{className:w("flex items-center",n),children:[u(te,{version:t,rounded:!0,className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3",ariaLabel:l,href:a,target:r,children:u(ot,{className:"w-4 h-4",image:{...s,iconVersion:s.iconVersion||i},asSVG:!0})}),l?u(te,{version:"link",text:l,href:a,target:r,ariaLabel:l}):null]})}const Mo="text-secondary-text group-data-secondary:text-white/80",jo=x((e=>{const{className:t="",breadcrumbs:n,backwardButton:l,version:a="primary",...r}=e,i="primary"===a?a:"white";return p(k,{className:w("overflow-hidden p-12 flex flex-col box-border min-h-[454px]",t),version:a,...r,children:[l?.text?Vo(l,i):null,n?.length?u("div",{className:"text-xs-light mb-6",children:Cs(u("span",{className:w("mx-2",Mo),children:"/"}))(n.map(((e,t)=>u(To,{className:Mo,...e},String(t)))))}):null,u(Bo,{className:"mt-10",version:a,...r})]})})),_o=x((({className:e="",slides:t=[],...n})=>{const a=t.map((e=>e.nav)),i=t.map((e=>e.productBlock)),[s,o]=l(0),c=r((e=>o(e)),[]);return p(k,{className:`box-border pt-12 overflow-hidden relative w-100 mb-6 ${e}`,...n,children:[u("div",{className:"flex duration-1000 pb-14",style:{transform:`translateX(-${s}00%)`},role:"list",children:i.map(((e,t)=>function(e,t){return u("section",{className:"box-border relative flex grow-0 shrink-0 basis-full",role:"listitem",children:u("div",{className:"flex grow",children:u(Bo,{className:"pl-12 z-10 group-data-secondary:text-white",textBlockClassName:"mb-[154px]",headlineVersion:"XXL",...e})})},String(t))}({...e,...n},t)))}),u("div",{className:"flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border h-28",children:a.map(((e,t)=>function({slide:e,i:t,isActive:n,onClick:l}){const a=n?"bg-white shadow-dark-blue min-w-[350px] border-none p-6":"min-w-[290px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10 px-6 py-5 backdrop-blur",r=n?"text-primary-text !text-h6 p-2":"text-l pb-1 text-secondary-text group-data-secondary:text-white",i=n?"text-secondary-text text-l-light":"text-m-light text-secondary-text group-data-secondary:text-white/80";return u("button",{type:"button",onClick:l,"aria-label":e?.title,className:`relative box-border overflow-hidden cursor-pointer text-left mx-1 grow basis-0 border border-gray group-data-secondary:border-white/50 ${a}`,children:p("div",{className:"border-0 px-6",children:[u("div",{className:`last:pb-0 ${r}`,children:e?.title}),u("div",{className:`text-secondary-text ${i}`,children:e?.description})]})},String(t))}({slide:e,i:t,isActive:Boolean(t===s),onClick:()=>c(t)})))})]})}));function Lo(e,t){if(!e)return null;return u("div",{className:`mt-2.5 z-10 ${t?.src?"max-w-[calc(100%-186px)]":"100%"}`,children:u(ae,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:e})})}const Po=(e,t)=>{const{type:n}=e;if("default"!==n&&"rte"!==n)return null;switch(n){case"default":return[u(re,{size:"text-h6",children:e.label},`label-${t}`),u(re,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:e.description},`desc-${t}`)];case"rte":return u("div",{className:"col-span-2",children:u(Na,{__html:e.__html})});default:Yr(e)}};function zo(e,t){return e?.src?u(ot,{className:w("absolute",t?"right-0":"left-0","bottom-0"),image:e}):null}const Do=x((({className:e="",title:t,headlineVersion:n="S",description:l,additionalDescription:a,benefits:r=[],buttons:i,image:s,directionRight:o=!0,...c})=>p(k,{className:w("overflow-hidden p-9 box-border relative min-h-[364px] flex flex-col justify-between",wo(e),e),...c,children:[p("div",{className:w("flex flex-col",o?"":"items-end"),children:[u(Vt,{className:w("!p-0 !bg-transparent z-10",t||l?"mb-3.5":""),title:t,description:l,headlineVersion:n,as:"h2",align:"text-left"}),Oo(r,s),Lo(a,s)]}),It(i,{className:w("mt-5 text-l",o?"":"justify-end")}),zo(s,o)]})));function Oo(e,t){if(!e.length)return null;return u("div",{className:w("z-10 grid grid-cols-[max-content_1fr] auto-rows-auto gap-x-6 gap-y-2.5 items-baseline",t?.src?"max-w-[calc(100%-186px)]":"100%"),children:e.length?e.map(Po):null})}const Ao=x((({className:e="",title:t="Акции и спецпредложения",date:n,description:l,as:a,buttons:r=[],...i})=>u(k,{className:w("p-9 box-border",e,wo(e),zs(e)),...i,children:u(Gl,{title:t?u(Vt,{className:"!p-0 max-w-[600px]",title:t,headlineVersion:yo(e),align:"text-left",as:a||"h2"}):null,buttons:It(r),children:p("div",{className:"mt-1.5",children:[n?u("div",{className:"text-s mb-2",children:Eo(n)}):null,u("div",{className:"text-l",children:l})]})})})));function Eo(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const Fo=x((e=>{const{__html:t,richVersion:n,...l}=e;return u(k,{...l,children:u(Na,{__html:t,richVersion:n})})})),Uo=x((({className:e="",label:t="Развернуть",isExpanded:n,isFoldButtonOnTop:l=!0,version:a="primary",...r})=>u(k,{className:`w-full border-0 border-b border-solid border-main-divider last:border-b-0 ${e}`,tag:"div",version:"transparent",...r,children:u(wa,{isFoldButtonOnTop:l,unfoldedByDefault:n,renderFoldableSection:({isUnfolded:e})=>u(Ca,{className:"grid grid-cols-12 gap-5 [&>*]:p-0",isUnfolded:e,children:hl(r)}),renderFoldButton:({isUnfolded:e,onToggle:n})=>Ho({version:a,label:t,isUnfolded:e,onToggle:n})})})));Uo.childrenTypes={exclude:["RollupItem"]};const Ho=({version:e,label:t,isUnfolded:n,onToggle:l})=>{const a=t||(n?"Скрыть":"Развернуть");return"primary"===e?Go({label:a,icon:n?"MinusIcon":"PlusIcon",onToggle:l}):u(Mr,{label:a,icon:n?"ArrowUpIcon":"ArrowDownIcon",onClick:l})},Go=({label:e,icon:t,onToggle:n})=>p("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:n,children:[u(re,{size:"text-xl",font:"font-medium",children:e}),t?u(ot,{image:{icon:t},width:"24",height:"24",asSVG:!0}):null]}),Xo=[];const Wo=async e=>await V(e,{method:"GET"})||Xo,Ko=x((({data:e,fieldLabel:t,fieldValue:n,selected:l,placeholder:a="",setSelected:r,label:i})=>{const s=e.filter(Boolean).map((e=>({key:e?.[n||t],text:e?.[t]}))),o=s.find((e=>e.key===l));return u(ye,{options:s,label:i,placeholder:a||l,onChange:e=>r(e.key),value:o})})),Jo=x((({regions:e=[],selectedRegion:t,onSelectedRegion:n,branches:l=[],selectedBranch:a,onSelectedBranch:r})=>p("div",{className:"flex justify-between gap-4 mb-6",children:[u("div",{className:"max-w-[396px] w-1/2",children:u(Ko,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:n,label:"Регион"})}),u("div",{className:"max-w-[396px] w-1/2",children:u(Ko,{data:l,fieldValue:"branchCode",fieldLabel:"address",selected:a,setSelected:r,label:"Отделение",placeholder:"Выберите отделение"})})]}))),Yo=x((({name:e,text:t,value:n,checked:l,onChange:a,className:r})=>u("div",{className:r,children:p("label",{className:"font-sans flex items-center relative cursor-pointer",children:[u("input",{className:"appearance-none flex justify-center items-center shrink-0 w-5 h-5 border border-gray hover:border-primary-hover\n checked:border-2 checked:!border-primary-main focus:checked:border-primary-main focus:border-primary-text active:border-primary-text\n after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main outline-none rounded-full cursor-pointer",type:"radio",value:n,name:e,checked:l,onChange:e=>a(e.target.value)}),t?u("span",{className:"text-primary-text ml-3 cursor-pointer",children:t}):null]})}))),qo=x((()=>{const[e,t]=l("option2"),n=r((e=>t(e)),[]);return p("div",{children:[u(Yo,{className:"mb-2",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===e,onChange:n}),u(Yo,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===e,onChange:n})]})})),Zo=["От 1 дня","До 365 дней"],Qo=x((({days:e,setDays:t})=>p("div",{className:"mb-6",children:[u("span",{className:"block text-m-light mb-[3px]",children:"Срок аренды"}),u(Xe,{min:1,max:365,value:e,items:Zo,onChange:t})]}))),ec=x((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:n,safeBoxCases:l=[],selectedBoxSize:a,onSelectedBoxSize:r})=>p("div",{className:"flex justify-between mb-6",children:[u("div",{className:"mr-4 w-full",children:u(Ko,{data:e,fieldLabel:"volume",selected:t,setSelected:n,label:"Размер",placeholder:"Выберите размер"})}),u("div",{className:"w-full",children:u(Ko,{data:l,fieldLabel:"safeBoxCasesSize",selected:a,setSelected:r,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),tc=x((({regions:e,selectedRegion:t,branches:n,selectedBranch:l,days:a,selectedCaseVolume:r,selectedBoxSize:i,safeBoxCases:s,caseVolumes:o,onChange:c,onClick:d})=>p("div",{className:"flex-1 mr-9",children:[u(Jo,{regions:e,selectedRegion:t,onSelectedRegion:e=>c({selectedRegion:e}),branches:n,selectedBranch:l,onSelectedBranch:nc(c)}),u(Qo,{days:a,setDays:e=>c({days:e})}),u(ec,{caseVolumes:o,selectedCaseVolume:r,onSelectedCaseVolume:lc(c),safeBoxCases:s,selectedBoxSize:i,onSelectedBoxSize:e=>c({selectedBoxSize:e})}),u("span",{className:"text-secondary-text text-l-light",children:"Тип договора"}),p("div",{className:"flex justify-between items-center mt-5",children:[u(qo,{}),u(te,{text:"Офисы на карте",version:"primary",onClick:d})]})]}))),nc=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},lc=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},ac=x((({days:e,tariffs:t=[]})=>{const n=ic(e,t);return p("div",{className:"flex flex-col justify-between",children:[p("div",{className:"flex",children:[rc("Аренда за",e,"mr-11"),rc("Цена",n+" ₽")]}),p("div",{className:"bg-primary-main px-10 pt-10 pb-4 text-center",children:[u(ot,{image:{icon:"PackA4Icon"},width:"290",height:"257",asSVG:!0}),p("span",{className:"text-s-light text-white opacity-80 mt-2 inline-block",children:["На рисунки изображена пачка",u("br",{})," листов формата А4"]})]})]})})),rc=(e,t,n="")=>p("div",{className:n,children:[u("div",{className:"text-m-light text-secondary-text mb-1",children:e}),u("span",{className:"text-h3 text-primary-text",children:t})]}),ic=(e,t)=>{const n=sc(e);return e*(t?.find((e=>e.tariffType===String(n)))?.tariffValue||0)},sc=e=>{let t=1;switch(!0){case e>30&&e<=90:t=2;break;case e>90&&e<=180:t=3;break;case e>180&&e<=365:t=4}return t},oc=(e,t)=>e.find((e=>e.branchCode===t)),cc=x((e=>{const{regions:t,data:n,branches:l,onChange:r,onClick:i}=e;a((()=>{r({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[n.selectedRegion,r]);const s=oc(l,n.selectedBranch),o=dc(s?.safeBoxCaseVolumes),c=mc(s?.safeBoxCaseVolumes,n.selectedCaseVolume)?.safeBoxCases,d=hc(c,n.selectedBoxSize);return p("div",{className:"flex justify-between align-top mb-6",children:[u(tc,{...n,regions:t,onClick:i,branches:l,caseVolumes:o,safeBoxCases:c,onChange:r}),u(ac,{days:n.days,tariffs:d})]})})),dc=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],mc=(e,t)=>e?.find((e=>e.volume===t)),hc=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs,uc=x((({title:e,footnote:t,className:n="",...a})=>{const[i,s]=l(!1),o=r((()=>s((e=>!e))),[]),[c,d]=l({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26}),m=j(),h=pc(c.selectedRegion,m),x=function(e){const{data:t}=B(e?`/api/v1/safeboxes?regionCode=${e}`:null,Wo);return t||Xo}(h),g=r((e=>d((t=>({...t,...e})))),[d]),b=(f=oc(x,c.selectedBranch)||x,Array.isArray(f)?f.map((e=>e.gpsLatitude&&e.gpsLongitude?[e.gpsLatitude,e.gpsLongitude]:[])):f?.gpsLatitude&&f?.gpsLongitude?[[f.gpsLatitude,f.gpsLongitude]]:[]);var f;return p(k,{className:n,...a,children:[p("div",{className:"px-8 py-12",children:[e?u(T,{title:e,headingType:"h3",as:"h2",className:"text-primary-text mb-2.5 text-center"}):null,u(cc,{regions:m,branches:x,data:{...c,selectedRegion:h},onClick:o,onChange:g}),t?u("p",{className:"text-s-light text-secondary-text",children:t}):null]}),b.length&&i?u(Zs,{points:b,className:"h-[640px]"}):null]})})),pc=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e,xc=e=>Boolean(e?.icon||e?.src),gc=({styleMap:e,isMainButton:t,version:n})=>(l,a,r)=>{const{label:i,description:s,button:o,items:c,isDotted:d}=l;return p("div",{className:w("relative flex flex-col items-center text-center whitespace-pre-line overflow-hidden",bc(r.length)),children:[p("div",{className:w(o?.text?"mb-8":"","text-center"),children:[i?u("div",{className:"mb-2",children:u(re,{size:"text-h6",children:i})}):null,p("div",{className:"flex flex-col items-center",children:[s?u("div",{className:e.description,children:s}):null,u(la,{className:w(s?`${e.description} mt-0.5`:"text-h6"),items:c,listItemSize:"M",isDotted:d})]})]}),o?.text&&!t?u(te,{className:"box-border py-3 h-12 w-full max-w-[240px] mt-auto",version:n,...o,children:o?.text}):null]},String(a))},bc=e=>e<5?"w-[276px]":"w-[210px]",fc={description:"text-white/80 text-l-light group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconText:"text-white group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconBackground:"bg-white/30 group-data-primary:bg-main-divider",iconConnector:"bg-white group-data-primary:bg-secondary-light",dot:"bg-white/80 group-data-primary:bg-secondary-text"},vc=x((({className:e="",showLines:t=!0,steps:n=[],buttons:l,size:a="normal",version:r="primary",stepVersion:i="gray",title:s,...o})=>{const c=n.length>3,d=fc,m=(e=>e?"":"opacity-0")(t),h=(e=>e<5?"px-[88px]":"px-[55px]")(n.length),x=Boolean(l?.every((e=>e?.text)));return p(k,{className:w("box-border py-12",c?"px-20":"px-[70px]","flex flex-col items-center overflow-hidden",e),version:r,...o,children:[s?u(T,{headingType:"h4",className:"max-w-[752px] text-center mb-9",title:s}):null,n?.length?p("div",{className:"box-border",children:[u("div",{className:w("flex items-center",h),children:Cs(u("div",{className:w("h-0.5 w-full bg-secondary-light flex-1",m)}))(n.map(Nc(d,a,i)))}),u("div",{className:w("flex justify-between mt-4",c?"gap-x-3":"gap-x-[101px]"),children:n.map((g={styleMap:d,isMainButton:x,version:r},(e,t,n)=>{const{type:l}=e;if("default"!==l&&"rte"!==l)return null;switch(l){case"default":return gc(g)(e,t,n);case"rte":return u("div",{className:w("text-center",bc(n.length)),children:u(Na,{__html:e.__html})},String(t));default:return null}}))})]}):null,It(l,{className:"mt-8"})]});var g})),Nc=(e,t,n)=>({icon:l},a)=>{const r="secondary"===n?"group-data-primary:text-white":"text-secondary-text",i="secondary"===n?"white":"color";return u(k,{className:`${"normal"===t?"h-[100px] w-[100px]":"h-[63px] w-[63px]"} flex justify-center items-center text-center rounded-full p-[26px] box-border z-10`,version:n,children:xc(l)?u(ot,{image:{...l,iconVersion:l.iconVersion||i},width:"48",height:"48",asSVG:!0}):u("span",{className:w("text-h4","transparent"===n?e.iconText:r),children:a+1})},String(a))},yc=x((({className:e="",gap:t=14,padding:n=16,showDots:l=!0,minHeight:a,children:r,onVisibleIndicesChange:i,listType:s="horizontal-list",version:o})=>{const c=Array.isArray(r)?r.length:0,[d,m]=kl({itemCount:c,onVisibleIndicesChange:i}),[h]=m.visibleIndicesRange;return p("div",{className:w(e,"vertical-list"===s?"relative h-full":""),children:[u(gl,{containerRef:d,activeIndex:h,visibleItemCount:1,gap:t,padding:n,onVisibleIndicesChange:m.handleVisibleIndicesChange,listType:s,minHeight:a,children:r}),l?u(yl,{containerRef:d,activeIndex:h,dotCount:c,listType:s,version:o}):null]})})),wc=x((({listType:e,showDots:t,options:n,version:l,...a})=>u(k,{version:l,...a,children:u(yc,{listType:e,showDots:t,version:l,children:hl({...a,options:n})})})));wc.childrenTypes={exclude:["SwipeListControlBlock"]};const Cc="h-12 flex-1 flex items-center justify-center cursor-pointer",kc="font-sans text-m text-center",Sc="text-white",Ic="text-secondary-text group-hover/btn:text-primary-main",Tc="text-primary-main",$c={div:{scrollable:{active:`inline-flex px-4 grow whitespace-nowrap ${Cc} bg-white text-primary-main`,default:`inline-flex px-4 grow whitespace-nowrap ${Cc} group/btn bg-white`},default:{active:`${Cc} bg-primary-main text-white whitespace-nowrap`,default:`${Cc} group/btn bg-white whitespace-nowrap`}},text:{scrollable:{active:"h-full border-0 border-b-2",default:""},default:{active:"",default:""}}},Bc={link:{scrollable:{active:`inline-flex px-4 grow whitespace-nowrap ${Cc} bg-white text-primary-main`,default:`inline-flex px-4 grow whitespace-nowrap ${Cc} group/btn bg-white`},default:{active:`${Cc} bg-primary-main text-white`,default:`${Cc} group/btn bg-white`}},text:{scrollable:{active:`${kc} flex items-center h-full border-0 border-b-2 text-primary-main`,default:`${kc} ${Ic}`},default:{active:`${kc} text-white`,default:`${kc} ${Ic}`}}},Rc=(e,t,n)=>{const l=t?"active":"default";return $c[e][n?"scrollable":"default"][l]},Vc=(e,t,n)=>{const l=t?"active":"default";return Bc[e][n?"scrollable":"default"][l]},Mc=x((e=>{const{tab:t,currentTab:n,onClick:l,isScrollable:a=!1}=e,r="link"===n?.type&&n.href===t.href,i=H()(t);return u("a",{role:"tab",className:Vc("link",r,a),target:t.target,href:i.href,onClick:e=>{i.onClick(e),l(t)},children:u("span",{className:Vc("text",r,a),children:t.text})})})),jc=(e,t,n)=>e?u("h3",{className:n?`${kc} ${t?Tc:Ic}`:`${kc} ${t?Sc:Ic}`,children:e}):null,_c=(e,t,n)=>e&&t?u("div",{className:"min-w-[22px] h-[22px] rounded-full text-xs ml-2 flex justify-center items-center "+(n?"bg-white/30 text-white":"bg-main-divider text-secondary-text group-hover/btn:text-primary-main"),children:t}):null,Lc=({page:e,currentTab:t,showCounter:n,onClick:l,isScrollable:a=!1})=>(r,i)=>{const s=r.type;if("group"!==s&&"link"!==s)return null;switch(s){case"group":return(({page:e,currentTab:t,showCounter:n,onClick:l,isScrollable:a=!1})=>(r,i)=>{const s=t===r,o=r.ref&&e?.blocks?e.blocks.filter((e=>e?.labels?.includes(r.ref))).length:0;return u("div",{className:Rc("div",s,a),role:"tab","aria-selected":s,onClick:()=>l(r),children:p("div",{className:`flex flex-1 items-center justify-center ${Rc("text",s,a)}`,children:[jc(r.title,s,a),_c(n,o,s)]})},`group-${String(i)}`)})({page:e,currentTab:t,showCounter:n,onClick:l,isScrollable:a})(r,i);case"link":return u(Mc,{tab:r,currentTab:t,isScrollable:a,onClick:l},String(i));default:Yr(s)}return null},Pc=x((e=>{const{tabs:t,onClick:n,currentTab:l,page:a,showCounter:r}=e,[i,s]=kl({itemCount:t?.length||0,isCyclic:!1});return p("div",{className:"relative max-w-full m-auto",children:[u("div",{className:"font-sans max-w-full w-full overflow-hidden relative bg-white",children:u(gl,{containerRef:i,snapAlign:"snap-start",onVisibleIndicesChange:s.handleVisibleIndicesChange,children:t?.map(Lc({onClick:n,currentTab:l,showCounter:r,page:a,isScrollable:!0}))})}),s.canScrollLeft?u(Xt,{className:"absolute z-40 top-0 left-6",onClick:s.scrollLeft}):null,s.canScrollRight?u(Wt,{className:"absolute z-40 top-0 rotate-180 right-6",onClick:s.scrollRight}):null]})})),zc=x((e=>{const{className:t="",tabs:n,showCounter:i,isSticky:s,tabsMode:o,...c}=e,[d,m]=l(n?n[0]:void 0);a((()=>{n&&n[0]&&Dc(n[0])}),[]),a((()=>{"group"===d?.type&&f.subject("tab",{type:d.type,label:d.ref})}),[d]);const h=r((e=>{Dc(e),m(e)}),[]);return u(k,{className:`relative box-border flex gap-x-1 w-full ${s?"sticky top-1 z-20":""} ${t}`,role:"tablist",...c,children:"scrollable"===o?u(Pc,{tabs:n,onClick:h,currentTab:d,showCounter:i,...c}):n?.map(Lc({onClick:h,currentTab:d,showCounter:i,...c}))})})),Dc=e=>{"group"===e.type&&f.fire("tab",{type:e.type,label:e.ref}),"link"===e.type&&f.fire("tab",{type:e.type,label:e.href})},Oc=x((({isOpen:e,onClick:t})=>p(te,{version:"primary",onClick:t,className:"w-full flex items-center justify-center rounded-none py-5",children:[u("div",{className:"text-h4",children:e?"Скрыть":"Показать ставки по вкладу"}),u(fe,{name:e?"ArrowUpIcon":"ArrowDownIcon",className:"ml-3",iconVersion:"white",width:"20",height:"20",asSVG:!0})]}))),Ac={Buttons:({buttons:e})=>It(e),Img:({image:e})=>e?.src?u(ot,{image:e}):null,List:({isDotted:e,...t})=>u(la,{className:"flex flex-col justify-between items-start text-h6",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>p("div",{children:[e?u("div",{className:"text-h6 m-0 "+(t?"mb-1":""),children:e}):null,t?u("div",{className:"text-secondary-text text-l-light",children:t}):null]}),Table:x((({isVisible:e,displayTable:t,dataUrl:n,pdfUrl:l,isOpen:a})=>e?u(Oc,{isOpen:a,onClick:()=>{t({dataUrl:n,pdfUrl:l})}}):null))},Ec=({rowIdx:e,cellIdx:t,setTableInner:n,tableInner:r,openTableInnerIdx:i,setOpenTableInnerIdx:s})=>(o,c)=>{const[d,m]=l(!0);a((()=>{t===i&&r||m(!0)}),[r,i]);return p("div",{className:"Table"===o?.tableCellType?"ml-10":"first:pt-5 last:pb-5 pl-10",children:[c>0?u("div",{className:"h-5"}):null,Fc({cell:o,cellProps:{rowIdx:e,cellIdx:t,fieldIdx:c,displayTable:e=>{m(!1),s(t),n(e)},isVisible:d}})]},String(c))},Fc=({cell:e,cellProps:t})=>{if(!e)return null;const{tableCellType:n,...l}=e;if(!n||!(n in Ac))return null;return u(Ac[n],{...t,...l})},Uc=x((({cells:e,rowIdx:t,cellIdx:n,setTableInner:l,tableInner:a,openTableInnerIdx:r,setOpenTableInnerIdx:i})=>u("div",{className:"first:pl-0 w-80 flex-grow flex flex-col border-solid border-main-divider border border-t-0 border-x-0",role:"cell",children:e?.length?e.map(Ec({rowIdx:t,cellIdx:n,setTableInner:l,tableInner:a,openTableInnerIdx:r,setOpenTableInnerIdx:i})):null}))),Hc=x((({rows:e})=>{const t=e?.[0]?.length??0,[n,l]=Ht({itemCount:t,visibleItemCount:5});return p("div",{children:[e?.map(Gc(n)),Kt({...l,btnClass:["left-3 top-20","right-3 top-20"],className:""})]})})),Gc=e=>(t,n)=>{if(!t?.length)return null;const[l,...a]=t,r=[...Array(e).keys()].reduce(((e,t)=>140*(a?.[t]?.cols?.length??1)+e),0),i=["flex duration-1000 text-center",0!==n?"font-normal":"font-light"].join(" ");return p("div",{className:"flex border-main-divider border border-t-0 border-x-0 border-solid",children:[l?.data?u("div",{className:"text-xl-light w-[214px] pb-5 "+(0===n?"pt-8":"pt-6"),children:l.data}):null,u("div",{className:"flex flex-grow overflow-hidden",children:u("div",{className:i,style:{transform:`translateX(-${r}px)`},children:a?.map(((t,n)=>p("div",{className:"flex flex-col flex-grow justify-center pt-6 pb-5 odd:bg-main-divider",children:[t?.data?u("div",{className:"text-xl-light mb-3",children:t.data}):null,t?.cols?Xc(t.cols,e):null]},`row${n}`)))})})]},String(n))},Xc=(e,t)=>e?.length>0?u("div",{className:`flex ${t} ${0===t?"text-secondary-text":""} last:mr-3`,children:e.map(((e,t)=>u("div",{className:"w-[76px] text-h6 mr-5 first:ml-8",children:e},String(t))))}):null,Wc=x((({activeTabIndex:e,items:t})=>{const[n,a]=l({}),i=r((e=>a((t=>({...t,[e]:!t[e]})))),[]);return u("div",{children:t.map(((t,l)=>{const a=`activeTabIdx:${e}-tableIdx:${l}`;return p("div",{className:"w-full",children:[p("div",{className:"flex p-4 bg-gray text-xl-light text-center justify-center cursor-pointer relative",onClick:()=>i(a),children:[t.title,u(ot,{image:{icon:n[a]?"PlusIcon":"MinusIcon"},className:"absolute right-[22px]",width:"24",height:"24"})]}),u("div",{className:"w-full pl-2 overflow-hidden transition-height duration-500 ease-in-out "+(n[a]?"h-0":""),children:u("div",{className:"relative",children:u(Hc,{rows:t.rowsData})})})]},a)}))})})),Kc=x((({currencies:e,linkToPDF:t,activeTabIndex:n,setActiveTabIndex:l})=>p("div",{className:"flex justify-between w-full pt-2.5 pb-3",children:[e&&e.length>1?u("div",{className:"flex bg-secondary-light p-1.5 rounded-md",children:e.map(((e,t)=>u("div",{className:"rounded-md text-xl-light px-4 py-3 cursor-pointer "+(t===n?"bg-primary-main text-white":"text-secondary-text"),onClick:()=>l(t),children:e||t+1},e)))}):null,t?u(te,{href:t,version:"secondary",target:"_blank",appendLeft:u(fe,{name:"DocDownloadIcon",iconVersion:"color",className:"mr-0.5",width:"20",height:"20",asSVG:!0}),text:"Скачать в PDF"}):null]})));async function Jc(e){const t=await fetch(e);return await t.json()}const Yc=x((({dataUrl:e,pdfUrl:t,onClick:n})=>{const{tableData:a}=function(e){const{data:t}=B(function(e){return`/wcms-resources/${e||"tariffs-inner-table-data"}.json`}(e),Jc);return t||{}}(e),[i,s]=l(0),o=r((e=>s(e)),[]),c=a?.[i]?.items??[],d=a?.map((e=>e.currency??""));return p("div",a?{className:"bg-white z-10",children:[u(Kc,{currencies:d,activeTabIndex:i,setActiveTabIndex:o,linkToPDF:t}),u(Wc,{activeTabIndex:i,items:c}),u(Oc,{onClick:n,isOpen:!0})]}:{className:"my-5 text-h6 text-center",children:[u("p",{children:"Данных нет"}),u(Oc,{onClick:n,isOpen:!0})]})})),qc=x((({children:e,tableInner:t,onHideContentClick:n})=>p("div",{className:"self-start flex flex-col",role:"row",children:[u("div",{className:"flex",children:e}),t?u("div",{className:"origin-top animate-expansion",children:u(Yc,{...t,onClick:n})}):null]}))),Zc=x((({row:{header:e,data:t},activeIndex:n,rowIdx:a,...i})=>{const[s,o]=l(void 0),c=r((e=>o(e)),[]),[d,m]=l(void 0),h=r((e=>m(e)),[]);return p(qc,{onHideContentClick:()=>o(void 0),tableInner:s,...i,children:[u("div",{className:"text-s py-5 w-[354px] flex-shrink-0 border-main-divider border border-t-0 border-x-0",children:p("div",{className:"flex items-center text-primary-text",role:"cell",children:[e?.icon?u(ot,{className:"mr-3.5 max-w-6",image:e.icon,width:"24",height:"24",asSVG:!0}):null,e?.title?u("div",{className:"text-m-light",children:e?.title}):null]})}),t?.length?u(Pa,{activeIndex:n,columnWidth:360,version:"tariff",children:t.map(((e,t)=>u(Uc,{cells:e,rowIdx:a,cellIdx:t,setTableInner:c,tableInner:s,openTableInnerIdx:d,setOpenTableInnerIdx:h,...i},String(t))))}):null]})})),Qc=x((({className:e="",title:t,description:n,rowHeaders:l,tariffsColumns:a,hiddenRowsNum:r=0,...i})=>{const s=a?.map((({data:e})=>e))||[],o=l?.map(((e,t)=>({header:e,data:s.map((e=>e?.[t]||[]))}))),c=s.length,[d,m]=Ht({itemCount:c,visibleItemCount:2}),h=(o||[]).map(((e,t)=>u(Zc,{row:e,activeIndex:d,rowIdx:t,...i},String(t)))),[x,g]=r>0?[h.slice(0,-r),h.slice(-r)]:[h,[]];return p(k,{className:`p-12 overflow-hidden relative ${c>1?"pr-0":""} ${e}`,...i,children:[ed({title:t,description:n}),td(n),r>0?u(wa,{renderFoldableSection:({isUnfolded:e})=>p(nd,{controls:m,children:[x,u(Ca,{isUnfolded:e,children:g})]}),renderFoldButton:jr}):u(nd,{controls:m,children:h})]})}));function ed({title:e,description:t}){return e?u(T,{headingType:"h3",className:"text-center "+(t?"mb-2.5":"mb-8"),title:e}):null}function td(e){return e?u("div",{className:"mb-9 text-center text-l",children:e}):null}const nd=x((({children:e,controls:t})=>{const{isScrollAvailable:n}=t;return p("div",{role:"table",children:[p("div",{className:"relative",children:[e,Kt({...t,btnClass:["top-[108px]","top-[44px]"],className:"right-7"})]}),n?u("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),ld=x((({className:e="",title:t,description:n,iconVersion:l,image:a,__html:r,...i})=>p(k,{className:`px-9 py-4 flex gap-3 bg-white group-data-secondary:bg-primary-main/10' ${e}`,...i,children:["small"===l?u("div",{className:"mt-1",children:ad()}):null,"big"===l?rd(a):null,p("div",{children:[t?id(t):null,n?u("div",{className:"mt-1",children:sd(n)}):null,r?u(Na,{__html:r}):null]})]}))),ad=()=>u("div",{className:"rounded-full h-4 w-4 text-center text-xs-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main",children:"i"}),rd=e=>e?.src?u(ot,{image:e}):null,id=e=>u(re,{size:"text-l",font:"font-medium",color:"text-primary-text group-data-secondary:text-white",children:e}),sd=e=>u(ae,{size:"text-s",color:"text-secondary-text group-data-secondary:text-white",children:e}),od=x((e=>{const{tags:t,className:n=""}=e;return t?.length?u("div",{className:`flex flex-wrap gap-2 ${n}`,children:t.map(cd)}):null})),cd=(e,t)=>u("span",{className:"text-m-light py-2 px-2.5 border-solid border rounded-md border-gray",children:e},String(t)),dd=x((({title:e,headingType:t="h3",__html:n,items:l,buttons:a,image:r,isDotted:i=!0,listItemSize:s="M",className:o="",tags:c,children:d,directionRight:m=!0,...h})=>p(k,{className:w("flex grow justify-between items-stretch h-full p-9 pr-3 box-border",wo(o),zs(o),o),...h,children:[r?.src?u(ot,{className:w("mt-auto ml-7",m?"order-2":""),image:r}):null,u(Gl,{title:e?u(T,{headingType:t,as:"h2",title:e,className:"whitespace-pre-wrap max-w-[600px]"}):null,buttons:It(a,{className:"mt-8",buttonClassName:"min-w-[158px]"}),children:p("div",{children:[n?u("div",{className:"max-w-[600px] mt-2.5",children:u(Na,{__html:n})}):null,d,u(la,{className:"mt-2.5",itemClassName:"mb-1.5",items:l,isDotted:i,listItemSize:s}),c?.length?u(od,{tags:c,className:"mt-5"}):null]})})]}))),md={stretch:"items-stretch",left:"items-start",center:"items-center",right:"items-end"},hd=x((({className:e="",gap:t="",align:n="stretch",isPadding:l=!1,isInnerPadding:a=!0,version:r="transparent",isTheme:i=!1,...s})=>{const o=a?"":"!p-0";return u(k,{className:w("flex flex-col [&>*]:max-w-full",l?"p-12":"",ps[t],n&&md[n],e),version:r,isTheme:i,...s,children:hl({...s,renderProps:(e,t)=>cl(e,t,{className:o})})})}));hd.childrenTypes=[];const ud=e=>Ps(e)<10?"py-6 px-11":"py-12 px-32",pd=x((({className:e,title:t,url:n,previewImg:l,...a})=>{const r=U();return p(k,{className:w(ud(e),e),...a,children:[u(Vt,{title:t,headlineVersion:"M"}),n?u("video",{className:"m-auto w-full object-fill",preload:"metadata",poster:A(r)(l?.src),style:{maxHeight:524},controls:!0,children:u("source",{src:A(r)(n)})}):null]})})),xd=x((({address:e,email:t,telephone:n,button:l,className:a="",__html:r,icon:i,title:s,version:o="primary",...c})=>p(k,{className:w("box-border text-left p-9",a),version:o,...c,children:[p("div",{className:"w-full flex justify-between",children:[s?u(T,{headingType:"h4",as:"h3",className:"mb-6",title:s}):null,gd(i)]}),p("div",{className:"w-full",children:[r?bd(r):null,fd("Адрес",e,"GeolocationIcon"),fd("Телефон",n,"PhoneIcon"),fd("E-mail",t,"MailIcon"),l?.text?It([l],{className:"mb-6"}):null]})]}))),gd=e=>p("div",{className:"self-end",children:[e?.src?u(ot,{image:e}):null,e?.icon?u(ot,{image:e,asSVG:!0}):null]}),bd=e=>u("div",{className:"border-b border-main-divider pb-5 my-5",children:u(Na,{__html:e})}),fd=(e,t,n)=>p("div",{className:"flex mb-4",children:[u(fe,{className:"pr-4",iconVersion:"black",name:n,width:"24",height:"24",asSVG:!0}),p("div",{className:"flex flex-col first:pb-1",children:[u(re,{size:"text-m-light",children:e}),t?u(re,{size:"text-h6",color:"text-green",children:t}):null]})]}),vd={ApplicationForm:Nt,BenefitsBlock:yt,Bonus:Mt,BonusBenefitsBlock:zt,BusinessBlock:Ft,ButtonBlock:Ut,Calculator:Qn,CardTransfer:il,Carousel:Bl,CarouselBankHistoryCard:jl,CarouselCard:Ol,CarouselCatalogCard:El,CarouselEventCard:Hl,CarouselInvestmentCard:Wl,CarouselLinks:ql,CarouselProductCard:aa,CarouselProgramsCard:da,CarouselRecommendationCard:fa,CarouselRichTextCard:ya,CarouselTariffsCard:ka,ComparisonTable:Wa,ContactsBlock:Ja,ErrorBlock:Qa,ExchangeRateTile:Rr,Filtration:Er,Footer:Bi,GracePeriod:Ri,Header:us,Headline:Vt,HorizontalLayout:xs,ImgBlock:gs,InsuranceAmountBlock:ys,InvestmentInfo:Is,LinkDocs:Ls,MobileAppTile:Ds,OfficeMap:mo,OfficeServicesBlock:ho,ParagraphBlock:po,PictureText:fo,Placeholder:Co,ProductBlock:jo,ProductGallery:_o,ProductTile:Do,PromoTile:Ao,RichTextBlock:Fo,RollupItem:Uo,SafeDepositRental:uc,StepsBlock:vc,SwipeListControlBlock:wc,Tabs:zc,TariffsTable:Qc,TextBlock:ld,Tile:dd,VerticalLayout:hd,Video:pd,ExchangeRateOffice:sr,RepresentativeOfficeInfo:xd};const Nd=["Header","Footer"],yd=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function wd(e=globalThis){const t=s(new Map);a((()=>y.subscribe("intersection",(({block:e,intersection:n})=>{t.current&&t.current.set(e,n)}))),[]),a((()=>{const n=((e,t=600)=>{let n;const l=(...a)=>{l.dispose(),n=setTimeout((()=>{e(...a)}),t)};return l.dispose=()=>{n&&clearTimeout(n)},l})((()=>{!function(e){const t=`#${n=e?.anchor,n?.replace("#","")||""}`;var n;globalThis.location?.hash!==t&&globalThis.history?.replaceState(globalThis.history?.state,"",t)}(globalThis.scrollY>3*globalThis.innerHeight/4?function(e){const t=e.filter((([e])=>!Nd.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[n]=t.length>0?yn(yd)(t):[];return n}([...t.current||[]]):void 0)}),100);return e.addEventListener("scroll",n),()=>{n.dispose(),e.removeEventListener("scroll",n)}}),[e])}const Cd=h();const kd=x((({className:e,onClick:t,ariaLabel:n})=>u("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":n,children:Sd()}))),Sd=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return p("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[u("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),u("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},Id=x((({className:e=""})=>{const t=function(e){const[t,n]=l(0);return a((()=>{(async()=>{const[t]=await Cd.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:r((async()=>{n(await Cd.like(e))}),[e]),dislike:r((async()=>{n(await Cd.dislike(e))}),[e])}}(U().pathname);return p("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e}`,children:[u(kd,{onClick:F(t.like),ariaLabel:"Поставить отметку «лайк»"}),u(kd,{onClick:F(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),u("span",{className:"select-none",children:t.likeCount})]})})),Td=x((e=>{const{className:t="",blocksRegistry:n,blockDecorator:l,data:a={}}=e,{style:r,blocks:i,slots:s,likeControl:o,colorPalette:c="pc"}=a,d={key:"",page:a,blocksRegistry:n,blockDecorator:l,parent:a};wd();const[m,{setTrue:h,setFalse:x}]=oi();return qr({onOpen:h,onClose:x}),p("section",{className:w("relative",r,t,m?"overflow-hidden h-screen":""),"data-theme":c,children:[s?.header?u("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:ml(s?.header,{...d,slotName:"header"})}):null,p("div",{className:"container grid grid-cols-12 gap-1",children:[ml(i,d),s?.footer?ml(s?.footer,{...d,slotName:"footer"}):null]}),o?u("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:u(Id,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null]})}));Td.childrenTypes=[],Td.slots=()=>["header","footer"];e.Blocks=vd,e.ContentPage=Td,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.LikeAPI=h,e.handlerDecorator=F,e.joinList=Cs,e.packageVersion="0.10.2",e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=O,e.useRouter=U,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniBlocks={})}(this,(function(e){"use strict";let t;const n=e=>(...n)=>t[e](...n),l=n("useState"),a=n("useEffect"),r=n("useCallback"),i=n("useMemo"),s=n("useRef");const o={PROD_BRANCH:"master"},c=new class{_=o;setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH||o.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CHAT_BOT(){return this._.CHAT_BOT}get CDN(){return d(this._.CDN)}get BASE_PATH(){return d(this._.BASE_PATH)}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},d=e=>e&&!e.endsWith("/")?`${e}/`:e,m="likesToken";function h(){async function e(){try{const e=JSON.parse(globalThis.localStorage?.getItem(m)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:n}=await e.json();return globalThis.localStorage?.setItem(m,JSON.stringify({token:t,name:n})),{token:t,name:n}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n},body:JSON.stringify({node_ids:t})}),{likes:l}=await e.json();return l||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:n,name:l}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:l},body:JSON.stringify({node_id:t,user_name:l})}),{likes:a}=await e.json();return a||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:n,name:l}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:l},body:JSON.stringify({node_id:t,user_name:l})}),{likes:a}=await e.json();return a||0}catch(e){return console.error(e),0}}}}const u=(...e)=>globalThis._uni._jsx(...e),p=(...e)=>globalThis._uni._jsxs(...e),x=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:g(e)),t._tmpl},g=e=>{function t(t,n){const{children:l,...a}=t||{},r=n?.slots?.default,i=l||r&&r();return e(Object.assign(a,i&&{children:i}),n)}return t.inheritAttrs=!1,t};class b{subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]=(this.subscribers[e]||[]).concat(t);const n=this.subjectsStateMap[e];return n&&t(n),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){e in this.subjectsStateMap&&(this.subjectsStateMap[e]=t),this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}const f=new b;function v(e,{sensitivity:t,rootRef:n}={}){const l=s(null),r=i((()=>({threshold:N(t),root:n?.current})),[t,n?.current]);return a((()=>{if(!l.current)return;const t=new IntersectionObserver(e,r);return t.observe(l.current),()=>{t.disconnect()}}),[e,r]),l}function N(e=0){const t=Math.round(10*e);return new Array(t).fill(0).map(((e,n)=>Math.min(n/t)),1).concat(1)}const y=new b;const w=(...e)=>e.flatMap((e=>e)).filter(Boolean).join(" "),C={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white",gray:"bg-main-divider text-primary-text",transparent:"bg-transparent text-primary-text","":""},k=x((({className:e="",version:t="primary",isTheme:n=!0,block:i,tag:s="section",role:o,children:c})=>{const d=s,m=function(e){return v(r((t=>{if(!e||!t?.length)return;const n=t[t.length-1];y.fire("intersection",{block:e,intersection:n})}),[e]),{sensitivity:1})}(i),[h,p]=l(!1);return a((()=>f.subscribe("tab",(e=>{p(Boolean(e.label&&i?.labels?.length&&!i.labels.includes(e.label)))}))),[i]),u(d,{className:w(S(Boolean(t&&n)),C[t],h?"hidden":"",e),...t&&n?{"data-ver":t}:{},...i?.anchor?{id:i.anchor,ref:m}:{},role:o,children:c})})),S=e=>e?"group":"",I={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},T=x((({className:e="",headingType:t="h3",as:n="h3",title:l,children:a})=>u(n,{className:`font-sans m-0 ${I[t]} ${e}`,children:l||a}))),$=new Map;function B(e,t,{fallback:n}={}){const r=i((()=>R(e)),[e]),[s,o]=l(),[c,d]=l(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};a((()=>{if(!r.every((e=>null===e)))try{const e=t(...r);"then"in e?(e=>{e.then((e=>$.get(r)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...r]);const u=r[0],p=n&&"string"==typeof u&&n[u];return{data:!s&&p?p:s,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function R(e){return e?Array.isArray(e)?e:e instanceof Function?R(e()):[e]:[e]}async function M(e,t){try{return e?await j(e,t):null}catch(e){console.error(e)}return null}async function j(e,t){const n=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await n.json()}function _(){const{data:e}=B("/api/v1/regions",j);return e||[]}const V=(e="")=>({open:t=>f.fire("dialog",{type:"open",id:e,message:t}),close:()=>f.fire("dialog",{type:"close"})}),L=e=>Boolean(e?.includes(":")),z=(e,t)=>Boolean(e&&!L(e)&&(!t||"_self"===t)),P=e=>(e||"").replace(/\?.*/,"").replace(/\/$/,""),D=(...e)=>e.filter(Boolean).join("/").replace(/\/+/g,"/");var O=Object.freeze({__proto__:null,isURL:L,isLocalURL:z,isHash:e=>Boolean(e?.startsWith("#")),withoutQuery:P,joinPath:D});const A=e=>(t,n=c.BASE_PATH)=>{if(!t||L(t)||E(t,c.CDN))return t;const l=t.startsWith("/");return D(E(t,n)?"":n,l?"/":e.pathname?.split("/").slice(0,-1).join("/"),t)},E=(e,t)=>t&&e&&e.startsWith(t),F=(e,t)=>F._impl(e,t);function U(){return U._impl()}function H(e={}){const{isRemote:t,basePath:n}=e,l=U(),{close:a}=V();return e=>({...e,href:t?e.href:A(l)(e.href,n),"aria-label":e.text,onClick:F(r(e),e)});function r({href:e,target:n,onClick:r}){return i=>{r&&r(i),e&&!t&&z(e,n)&&(a(),i?.preventDefault(),l.push(e))}}}F._impl=e=>e,F.setup=e=>{F._impl=e},U._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),U.setup=e=>{U._impl=e};const X={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:"",transparent:"",gray:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active","":""},W="bg-main-divider text-main-disabled",K={primary:W,secondary:W,white:W,link:"",transparent:"",gray:W,"":""},G="text-center font-sans select-none",J={primary:"group-hover/btn:brightness-0 group-hover/btn:invert",secondary:"group-hover/btn:brightness-0 group-hover/btn:invert",white:"group-hover/btn:brightness-0 group-hover/btn:invert",link:"",transparent:"",gray:"group-hover/btn:brightness-0 group-hover/btn:invert","":""},Y=x((e=>{const{text:t,aboveText:n,appendLeft:l,appendRight:a,version:r="primary"}=e;return p("div",{className:w(q(e),"flex gap-2"),children:[l?u("div",{className:J[r],children:l}):null,Z(e)?p("div",{children:[n?u("div",{className:"text-xs-light text-left",children:n}):null,u("div",{className:"text-left "+(n?"text-s -mt-0.5":"text-l"),children:t})]}):null,a?u("div",{className:J[r],children:a}):null]})})),q=e=>{const{version:t,aboveText:n,rounded:l}=e;if("link"===t)return"";const a=""+(n?"py-2.5 px-7":"py-4 px-4");return["group/btn items-center justify-center",Z(e)?a:"h-12 w-12",l?"rounded-full":""].join(" ")},Z=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),Q=({className:e,rounded:t,version:n})=>["inline-block",G,n?K[n]:"",t?"rounded-full":"rounded-md",e].join(" "),ee=({className:e,rounded:t,version:n})=>[G,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border h-fit",n?X[n]:"",t?"rounded-full":"rounded-md",e].join(" "),te=x((({disabled:e,children:t,...n})=>{const l=H()(n),a=t??u(Y,{...l});return u(e?le:ne,{...l,children:a})})),ne=x((({className:e="",href:t,rel:n,target:l,ariaLabel:a,version:r,rounded:i,onClick:s,children:o})=>u("a",{className:ee({className:e,version:r,rounded:i}),href:t,rel:n,target:l,"aria-label":a,role:t?"link":"button",onClick:s,children:o}))),le=x((({className:e,ariaLabel:t,version:n,rounded:l,children:a})=>u("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:Q({className:e,rounded:l,version:n}),children:a}))),ae=x((({children:e,...t})=>u("p",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),re=x((({children:e,...t})=>u("span",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),ie=x((({link:e})=>p(ae,{size:"text-s-light",color:"text-secondary-text",children:[u(re,{children:"Нажимая кнопку, вы подтверждаете согласие с "}),e?u(te,{href:e.href,ariaLabel:"условия передачи данных",target:e.target,className:"text-primary-main",children:u(re,{children:e.text})}):null]}))),se=x((({className:e="",inputClassName:t="",id:n,name:l,type:a="text",label:i,value:s="",valid:o=!0,children:c,onChange:d,onBlur:m,...h})=>{const x=r((e=>{const t=e.target.validity.valid?e.target.value:s;d(t)}),[d]),g=r((e=>{if(!m)return;const t=e.target.validity.valid?e.target.value:s;m(t)}),[m]),b=c?"pr-8":"",f=o?"border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text":"border-error";return p("div",{className:`relative ${e}`,children:[i?u("label",{className:"block text-m-light mb-2",children:i}):null,u("input",{className:`w-full border rounded-md text-primary-text outline-none p-4 ${b} ${f} ${t}`,id:n,name:l||n,type:a,value:s,onChange:x,onBlur:g,...h}),c]})})),oe=x((({className:e,label:t,value:n,error:l,onChange:a,onBlur:r})=>p("div",{className:e,children:[u(se,{type:"text","aria-label":t,label:t,valid:Boolean(!l),value:n,onChange:a,onBlur:r}),u("div",{className:"h-2",children:u(re,{size:"text-xs-light",color:"text-error",children:l||null})})]}))),ce="Некорректно заполненное поле",de=(e,t)=>{switch(e){case"name":return he(t);case"inn":return ue(t);default:return me(t)}},me=e=>e?"":ce,he=e=>e.length>1?"":ce,ue=e=>10===e.length||12===e.length?"":ce,pe=({fullName:e,inn:t,name:n,phone:l,handleChange:a,errors:r,handleChangeErrors:i})=>p("div",{className:"flex justify-between gap-5 mb-5",children:[p("div",{className:"w-1/2",children:[u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Наименование организации",error:r.fullName,value:e,onChange:e=>a({fullName:e}),onBlur:e=>i({fullName:de("fullName",e)})}),u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Контактное лицо",error:r.name,value:n,onChange:e=>a({name:e}),onBlur:e=>i({name:de("name",e)})})]}),p("div",{className:"w-1/2",children:[u(oe,{className:"shrink-0 text-l w-full mb-3",label:"ИНН",error:r.inn,value:t,onChange:e=>a({inn:e}),onBlur:e=>i({inn:de("inn",e)})}),u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Телефон",error:r.phone,value:l,onChange:e=>a({phone:e}),onBlur:e=>i({phone:de("phone",e)})})]})]}),xe=[{name:"Торговый эквайринг"},{name:"Мобильный эквайринг"},{name:"Интернет-эквайринг"},{name:"QR-эквайринг (СБП)"},{name:"Все виды эквайринга"}];function ge(e){const t=s(null);return a((()=>{const n=n=>{t&&t.current&&n.target instanceof Node&&!t.current.contains(n.target)&&e()};return document.addEventListener("click",n),()=>{document.removeEventListener("click",n)}}),[e]),t}const be={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},fe=x((({className:e="",imageClassName:t="",name:n="",alt:l=`Иконка ${n}`,title:a=l,iconVersion:r="color",...i})=>{const s=U(),o=A(s)(D(c.CDN,"/icons",`${n}.svg`));return"normal"!==r?u(Ne,{className:e,children:p("svg",{className:w(ve(i.width),be[r],"white"===r?"invert":"",t),...i,"aria-hidden":"true",children:[a?u("title",{children:a}):null,l?u("desc",{children:l}):null,u("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]})}):(e.includes("h-")||(i.style={height:`${i.height}px`}),u("img",{className:e,src:o,alt:l,title:a,"aria-hidden":"true",...i}))})),ve=e=>e?"":"w-full h-full",Ne=x((({className:e,children:t})=>e?u("div",{className:e,children:t}):t)),ye=x((({className:e="",isBorder:t=!0,label:n,options:i=[],value:s,onChange:o,placeholder:c="",valid:d=!0,onValidate:m})=>{const[h,x]=l(i[0]||{key:"",text:""}),[g,b]=l(!1),f=ge(r((()=>b(!1)),[]));return a((()=>{x(s||{key:"",text:""})}),[s]),p("div",{className:`${e}`,ref:f,children:[n?u("div",{className:"mb-2",children:u(re,{size:"text-m",color:"text-primary-text",font:"font-light",children:n})}):null,p("div",{className:"relative "+(g?"z-20":"z-10"),children:[p("div",{className:`text-l flex justify-between items-center mb-0.5 text-primary-text cursor-pointer\n ${ke(t,d)}`,onClick:()=>b(!g),children:[u("p",{className:"p-4 pr-8 h-14 overflow-hidden text-ellipsis whitespace-nowrap",children:h?.text||c}),u(fe,{name:"ArrowUpIcon",width:"16",height:"16",className:"absolute right-3 "+(g?"":"rotate-180")})]}),i?.length?u("div",{className:`h-0 ${we(g)}`,children:u("div",{className:"bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:i.map(Ce((e=>{x(e),b(!1),o(e),m&&m(e.text)}),g,(e=>Boolean(e.key===h.key))))})}):null]})]})})),we=e=>e?"":"overflow-hidden",Ce=(e,t,n)=>(l,a)=>p("div",{onClick:()=>{e(l)},className:"flex px-4 py-3 cursor-pointer hover:bg-main-divider pr-11 relative",children:[u("span",{className:"min-h-6",children:l.text}),u(fe,{name:"DoneSimpleIcon",width:"16",height:"16",className:["absolute right-4 pt-0.5",n(l)&&t?"":"hidden"].join(" ")})]},String(a)),ke=(e,t)=>`\n ${e?"border rounded-md hover:border-primary-hover":""} ${t?" border-gray":"border-error"} `,Se=x((({data:e,fieldLabel:t,fieldValue:n,selected:l,placeholder:a="",setSelected:r,label:i,error:s,onValidate:o})=>{const c=e.filter(Boolean).map((e=>({key:e?.[n||t],text:e?.[t]}))),d=c.find((e=>e.key===l));return p("div",{children:[u(ye,{options:c,label:i,valid:Boolean(!s),placeholder:a||l,onChange:e=>r(e.key),value:d,onValidate:o}),u("div",{className:"h-2",children:u(re,{size:"text-xs-light",color:"text-error",children:s||null})})]})})),Ie=({acquiringType:e,regions:t,region:n,handleChange:l,errors:a,handleChangeErrors:r})=>p("div",{className:"flex justify-between gap-5 mb-7",children:[u("div",{className:"w-1/2",children:u(Se,{data:xe,fieldValue:"name",fieldLabel:"name",error:a.acquiringType,selected:e,setSelected:e=>l({acquiringType:e}),onValidate:e=>r({acquiringType:de("acquiringType",e)}),label:"Вид эквайринга",placeholder:"Выберите эквайринг"})}),u("div",{className:"w-1/2",children:u(Se,{data:t,fieldValue:"code",fieldLabel:"name",error:a.region,selected:n,setSelected:e=>l({region:e}),onValidate:e=>r({region:de("region",e)}),label:"Адрес",placeholder:"Выберите адрес"})})]}),Te=x((({value:e=!1,text:t,type:n="checkbox",onChange:l})=>p("div",{role:n,"aria-checked":e,className:"flex justify-start items-center w-full cursor-pointer mb-4",onClick:()=>l&&l(!e),children:[u("div",{className:"relative flex-shrink-0 duration-300 w-9 h-5 mr-3 rounded-2xl "+(e?"bg-primary-main":"bg-main-divider"),children:u("div",{className:"absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded-full "+(e?"left-[50%]":"left-[5%]")})}),u("div",{children:u(re,{size:"text-m",font:"font-light",color:"text-primary-text",children:t})})]}))),$e=({"onlineСheckout":e,posTerminal:t,handleChange:n})=>p("div",{className:"mb-5",children:[u(Te,{value:e,text:"Хочу купить онлайн-кассу",onChange:()=>n({"onlineСheckout":!e})}),u(Te,{value:t,text:"Хочу купить POS-терминал",onChange:()=>n({posTerminal:!t})})]}),Be=(e,t)=>{const n=ee({className:"text-white",version:e?.version});return u("button",{type:"submit",className:`p-4 ${n} ${t}`,children:e?.text?e.text:"Отправить заявку"})},Re=({initialFormState:e,errorsInitialState:t,handleSubmit:n})=>{const[a,i]=l(e),[s,o]=l(t||{}),c=r((e=>i((t=>({...t,...e})))),[]),d=r((e=>o((t=>({...t,...e})))),[]),m=r((async e=>{const t=[],l=Object.keys(a).filter((e=>Object.keys(s).includes(e))).reduce(((e,t)=>(e[t]=a[t],e)),{});for(const[e,n]of Object.entries(l)){const l=de(e,n);t.push(l),d({[e]:l})}t.some((e=>0!==e.length))||n&&await n(e)}),[a]);return{formState:a,handleChange:c,errors:s,handleChangeErrors:d,sendForm:m}},Me={acquiringType:"Торговый эквайринг",region:"",fullName:"",inn:"",name:"",phone:"","onlineСheckout":!1,posTerminal:!1},je={acquiringType:"",region:"",fullName:"",inn:"",name:"",phone:""},_e=x((e=>{const{button:t,link:n,handleSubmit:l}=e,{formState:a,errors:r,handleChange:i,handleChangeErrors:s,sendForm:o}=Re({initialFormState:Me,errorsInitialState:je,handleSubmit:l}),{acquiringType:c,region:d,fullName:m,inn:h,name:x,phone:g,"onlineСheckout":b,posTerminal:f}=a,v=_();return p("form",{onSubmit:e=>{e.preventDefault(),o({typeForm:"acqr",region:v.find((e=>e.code===d))?.name||"",partnerComments:`Вид эквайринга=${c}/Онлайн касса=${b}/POS-терминал=${f}`,fullName:m,inn:h,name:x,phone:g})},className:"container",children:[u(T,{headingType:"h6",title:"Вид эквайринга и регион",className:"text-center mb-4"}),Ie({acquiringType:c,regions:v,region:d,handleChange:i,errors:r,handleChangeErrors:s}),u(T,{headingType:"h6",title:"Данные организации",className:"text-center mb-4"}),pe({fullName:m,inn:h,name:x,phone:g,handleChange:i,errors:r,handleChangeErrors:s}),$e({"onlineСheckout":b,posTerminal:f,handleChange:i}),Be(t,"mb-4"),u(ie,{link:n})]})})),Ve=({name:e,phone:t,mail:n,inn:l,handleChange:a,errors:r,handleChangeErrors:i})=>p("div",{className:"flex justify-between gap-5",children:[p("div",{className:"w-1/2",children:[u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Контактное лицо",error:r.name,value:e,onChange:e=>a({name:e}),onBlur:e=>i({name:de("name",e)})}),u(oe,{className:"shrink-0 text-l w-full mb-3",label:"ИНН",error:r.inn,value:l,onChange:e=>a({inn:e}),onBlur:e=>i({inn:de("inn",e)})})]}),p("div",{className:"w-1/2",children:[u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Телефон",error:r.phone,value:t,onChange:e=>a({phone:e}),onBlur:e=>i({phone:de("phone",e)})}),u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Электронная почта",error:r.mail,value:n,onChange:e=>a({mail:e}),onBlur:e=>i({mail:de("mail",e)})})]})]}),Le=({regions:e,region:t,handleChange:n,errors:l,handleChangeErrors:a})=>u("div",{className:"flex justify-between gap-5 mb-5",children:u("div",{className:"w-full",children:u(Se,{data:e,fieldValue:"code",fieldLabel:"name",error:l.region,selected:t,setSelected:e=>n({region:e}),onValidate:e=>a({region:de("region",e)}),label:"Регион",placeholder:"Выберите регион"})})}),ze={region:"",name:"",phone:"",inn:"",mail:""},Pe=x((e=>{const{button:t,link:n,handleSubmit:l}=e,{formState:a,errors:r,handleChange:i,handleChangeErrors:s,sendForm:o}=Re({initialFormState:ze,errorsInitialState:ze,handleSubmit:l}),{region:c,name:d,phone:m,inn:h,mail:x}=a,g=_();return p("form",{onSubmit:e=>{e.preventDefault(),o({typeForm:"bcrd",region:g.find((e=>e.code===c))?.name||"",name:d,phone:m,inn:h,mail:x})},className:"container",children:[Le({regions:g,region:c,handleChange:i,errors:r,handleChangeErrors:s}),Ve({name:d,phone:m,inn:h,mail:x,handleChange:i,errors:r,handleChangeErrors:s}),Be(t,"mb-4"),u(ie,{link:n})]})})),De=[];const Oe=async e=>await M(e,{method:"GET"})||De,Ae=["От 50 000 ₽","До 3 000 000 ₽"],Ee=["От 1 года","До 5 лет"],Fe=({fullName:e,inn:t,name:n,phone:l,mail:a,annualRevenue:r,handleChange:i,errors:s,handleChangeErrors:o})=>p("div",{className:"flex justify-between gap-5 mb-7",children:[p("div",{className:"w-1/2",children:[u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Наименование организации",value:e,onChange:e=>i({fullName:e})}),u(oe,{className:"shrink-0 text-l w-full mb-3",label:"ИНН",error:s.inn,value:t,onChange:e=>i({inn:e}),onBlur:e=>o({inn:de("inn",e)})}),u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Телефон",error:s.phone,value:l,onChange:e=>i({phone:e}),onBlur:e=>o({phone:de("phone",e)})})]}),p("div",{className:"w-1/2",children:[u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Годовая выручка, ₽",error:s.annualRevenue,value:r,onChange:e=>i({annualRevenue:e}),onBlur:e=>o({annualRevenue:de("annualRevenue",e)})}),u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Контактное лицо",error:s.name,value:n,onChange:e=>i({name:e}),onBlur:e=>o({name:de("name",e)})}),u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Электронная почта",value:a,onChange:e=>i({mail:e})})]})]}),Ue=e=>new Intl.NumberFormat("ru-RU",{}).format(e),He=(e,t,n)=>Math.max(t,Math.min(e,n)),Xe=e=>e.split(/\s+/).join(""),We=x((({className:e,title:t,items:n=[],min:l=1,max:a=100,step:r=1,value:i=l,disabled:s=!1,onChange:o})=>{const c=e=>{o&&o(He(Number(Xe(e.target.value)),l,a))},d={backgroundSize:`${(100*(i-l)/(a-l)).toFixed(2)}% 100%`};return p("div",{className:e,children:[p("label",{className:"block relative",children:[t?u("span",{className:"text-m-light text-primary-text",children:t}):null,u("input",{className:"m-0 mt-2 font-sans text-h3 w-full h-14 border border-solid border-gray rounded-md\n outline-none p-0 pl-4 box-border text-primary-text hover:border-primary-hover focus:border-primary-text disabled:border-gray disabled:bg-main-divider",value:Ue(i),disabled:s,onChange:c,onBlur:c}),u("div",{className:"absolute inset-x-0 -bottom-1 px-4 leading-[18px]",children:u("input",{className:"box-border w-full m-0 cursor-pointer slider",type:"range",min:l,max:a,step:r,value:i,disabled:s,onChange:c,style:d})})]}),Ke(n)]})}));function Ke(e){return u("div",{className:"flex justify-between my-2",children:e.map(((e,t)=>u("span",{className:"text-s-light text-secondary-text",children:e},String(t))))})}const Ge=e=>p("div",{className:"w-1/2",children:[u("label",{children:u(re,{size:"text-m-light",children:e.label})}),u(We,{...e})]}),Je=({amount:e,term:t,handleChange:n})=>p("div",{className:"flex justify-between gap-5 mb-7",children:[Ge({label:"Сумма кредита, ₽",value:e,onChange:e=>n({amount:e}),min:5e4,max:3e6,items:Ae}),Ge({label:"Срок кредита, месяцев",value:t,onChange:e=>n({term:e}),min:1,max:60,items:Ee})]}),Ye=({regions:e,region:t,branches:n,department:l,handleChange:a,errors:r,handleChangeErrors:i})=>p("div",{className:"flex justify-between gap-5 mb-7",children:[u("div",{className:"w-1/2",children:u(Se,{data:e,fieldValue:"code",fieldLabel:"name",error:r.region,selected:t,setSelected:e=>a({region:e,department:""}),onValidate:e=>i({region:de("region",e)}),label:"Регион",placeholder:"Выберите регион"})}),u("div",{className:"w-1/2",children:u(Se,{data:n,fieldValue:"branchCode",fieldLabel:"address",error:r.department,selected:l,setSelected:e=>a({department:e}),onValidate:e=>i({department:de("department",e)}),label:"Адрес",placeholder:"Выберите адрес"})})]}),qe={amount:5e4,term:12,fullName:"",inn:"",name:"",phone:"",mail:"",region:"",department:"",annualRevenue:""},Ze={annualRevenue:"",inn:"",name:"",phone:"",region:"",department:""},Qe=x((({button:e,link:t,handleSubmit:n})=>{const l=_(),{formState:a,errors:r,handleChange:i,handleChangeErrors:s,sendForm:o}=Re({initialFormState:qe,errorsInitialState:Ze,handleSubmit:n}),{amount:c,term:d,fullName:m,inn:h,name:x,phone:g,mail:b,region:f,department:v,annualRevenue:N}=a,y=function(e){const{data:t}=B(e?`/api/v1/branches?regionCode=${e}`:null,Oe);return t||De}(f).filter((e=>e.address));return p("form",{onSubmit:e=>{e.preventDefault(),o({typeForm:"cred",fullName:m,inn:h,name:x,phone:g,mail:b,region:l.find((e=>e.code===f))?.name||"",department:y.find((e=>e.branchCode===v))?.address||"",partnerComments:`Сумма=${c}/Срок=${d}/Выручка=${N}`})},className:"container",children:[u(T,{headingType:"h6",title:"Параметры кредита",className:"text-center mb-4"}),Je({amount:c,term:d,handleChange:i}),u(T,{headingType:"h6",title:"Данные организации",className:"text-center mb-4"}),Fe({fullName:m,inn:h,name:x,phone:g,mail:b,annualRevenue:N,handleChange:i,errors:r,handleChangeErrors:s}),u(T,{headingType:"h6",title:"Офис банка",className:"text-center mb-4"}),Ye({regions:l,region:f,branches:y,department:v,handleChange:i,errors:r,handleChangeErrors:s}),Be(e,"mb-4"),u(ie,{link:t})]})})),et={name:"",phone:""},tt=x((e=>{const{button:t,link:n,handleSubmit:l}=e,{formState:a,errors:r,handleChange:i,handleChangeErrors:s,sendForm:o}=Re({initialFormState:et,errorsInitialState:et,handleSubmit:l}),{name:c,phone:d}=a;return p("form",{onSubmit:e=>{e.preventDefault(),o({typeForm:"dpst",name:c,phone:d})},className:"container",children:[u(T,{headingType:"h6",title:"Оставьте заявку и мы ответим на любые вопросы по депозитам",className:"text-center mb-4"}),nt({name:c,phone:d,handleChange:i,errors:r,handleChangeErrors:s}),p("div",{className:"flex justify-between items-center max-w-[560px] m-auto",children:[u("div",{className:"flex-1",children:u(ie,{link:n})}),Be(t)]})]})})),nt=({name:e,phone:t,handleChange:n,errors:l,handleChangeErrors:a})=>p("div",{className:"max-w-[560px] m-auto",children:[u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Имя",error:l.name,value:e,onChange:e=>n({name:e}),onBlur:e=>a({name:de("name",e)})}),u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Телефон",error:l.phone,value:t,onChange:e=>n({phone:e}),onBlur:e=>a({phone:de("phone",e)})})]}),lt=(e,t)=>e?.media&&t?.media?e.media-t.media:0,at=x((({className:e="",image:t,imageClassName:n="",isMobile:l=!1,pathPrefix:a})=>{const r=U();return p("picture",{className:`${l?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.filter((e=>e?.src)).sort(lt).map((({src:e,format:n,media:l},i)=>u("source",{srcSet:it(r,a)(e),type:st(n),media:l?`(max-width: ${l}px)`:"",...t.size},`${i}_${e}`))):null,t?.src?rt({...t,src:it(r,a)(t.src)},n,l):null]})})),rt=(e,t="",n=!1)=>{const l={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},a=e.title||"",r=e.alt||e.title,i=n?"m-auto":"m-0";return u("img",{src:e.src,className:`${i} ${t}`,alt:r,title:a,style:l,...e.size})},it=(e,t)=>n=>n&&!L(n)?A(e)(D(t,n)):n,st=e=>e?`image/${String(e)}`:void 0,ot=x((({className:e="",image:t,imageClassName:n="",isMobile:l,pathPrefix:a,...r})=>t?.src||t?.icon?t.icon?u(fe,{className:e,imageClassName:n,iconVersion:t?.iconVersion,name:t.icon,...r}):u(at,{className:e,imageClassName:n,image:t,isMobile:l,pathPrefix:a}):null)),ct=x((({className:e,viewBox:t,fill:n="none",width:l,height:a,paths:r,...i})=>u("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:n,width:l,height:a,children:r.map((({d:e,fill:t,...n},l)=>u("path",{d:e,fill:t||"currentColor",...i,...n},l)))}))),dt=[{d:"M10.207.793a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 0 1 1.414-1.414L3.5 6.086 8.793.793a1 1 0 0 1 1.414 0Z",fillRule:"evenodd",clipRule:"evenodd",fill:"white"}],mt=x((({className:e,text:t,checked:n,disabled:l,isRadio:a,onChange:r})=>u("div",{className:e,children:p("label",{className:"flex items-center relative cursor-pointer group/box",children:[u("input",{className:w("peer appearance-none w-5 h-5 border-solid cursor-pointer checked:border-primary-main m-0",a?"rounded-full border-2":"rounded checked:bg-primary-main disabled:bg-main-disabled border",n?"border-black":"border-gray",l?"":"group-hover/box:border-primary-hover"),type:"checkbox",onChange:e=>r&&r(e.target.checked),checked:n,disabled:l}),a?u("div",{className:"left-1 w-3 h-3 rounded-full bg-primary-main hidden absolute peer-checked:block"}):u(ct,{paths:dt,className:"hidden absolute left-1 ml-px peer-checked:block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"}),t?u("span",{className:"font-sans ml-3 text-l-light",children:t}):null]})}))),ht=({currencyControl:e,documentaryOperations:t,conversionOperations:n,text:l,handleChange:a})=>p("div",{className:"mb-6",children:[p("div",{className:"flex items-center mb-4 gap-6",children:[u(mt,{text:"Валютный контроль",checked:e,onChange:e=>a({currencyControl:e})}),u(mt,{text:"Документарные операции",checked:t,onChange:e=>a({documentaryOperations:e})}),u(mt,{text:"Конверсионные операции",checked:n,onChange:e=>a({conversionOperations:e})})]}),u("textarea",{placeholder:"Укажите интересующий вас вопрос, место ведения бизнеса и удобное время для телефонного звонка",className:"block w-full resize-y min-h-24 p-4 outline-none border rounded-md border-main-stroke hover:border-primary-hover active:focus:border-primary-text",value:l,onChange:e=>a({text:e.target.value})})]}),ut=({fullName:e,name:t,phone:n,mail:l,handleChange:a,errors:r,handleChangeErrors:i})=>p("div",{children:[p("div",{className:"flex justify-between gap-5",children:[u("div",{className:"w-1/2",children:u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Наименование организации",error:r.fullName,value:e,onChange:e=>a({fullName:e}),onBlur:e=>i({fullName:de("fullName",e)})})}),u("div",{className:"w-1/2",children:u(oe,{className:"shrink-0 text-l w-full mb-3",label:"ФИО",error:r.name,value:t,onChange:e=>a({name:e}),onBlur:e=>i({name:de("name",e)})})})]}),p("div",{className:"flex justify-between gap-5 mb-7",children:[u("div",{className:"w-1/2",children:u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Телефон",error:r.phone,value:n,onChange:e=>a({phone:e}),onBlur:e=>i({phone:de("phone",e)})})}),u("div",{className:"w-1/2",children:u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Электронная почта",error:r.mail,value:l,onChange:e=>a({mail:e}),onBlur:e=>i({mail:de("mail",e)})})})]})]}),pt={fullName:"",name:"",phone:"",mail:"",currencyControl:!1,documentaryOperations:!1,conversionOperations:!1,text:""},xt={fullName:"",name:"",phone:"",mail:"",text:""},gt=x((e=>{const{button:t,link:n,handleSubmit:l}=e,{formState:a,errors:r,handleChange:i,handleChangeErrors:s,sendForm:o}=Re({initialFormState:pt,errorsInitialState:xt,handleSubmit:l}),{fullName:c,name:d,phone:m,mail:h,currencyControl:x,documentaryOperations:g,conversionOperations:b,text:f}=a;return p("form",{onSubmit:e=>{e.preventDefault(),o({typeForm:"kved",fullName:c,name:d,phone:m,mail:h,partnerComments:`Валютный контроль=${x}/Документарные операции=${g}/Конверсионные операции=${b}/Доп инф=${f}`})},className:"container",children:[u(T,{headingType:"h6",title:"Данные организации",className:"text-center mb-4"}),ut({fullName:c,name:d,phone:m,mail:h,handleChange:i,errors:r,handleChangeErrors:s}),u(T,{headingType:"h6",title:"Интересующий вопрос",className:"text-center mb-4"}),ht({currencyControl:x,documentaryOperations:g,conversionOperations:b,text:f,handleChange:i}),p("div",{className:"flex items-center pb-9 mb-9 border-b border-main-divider",children:[Be(t,"mr-5"),u(ie,{link:n})]}),u(T,{headingType:"h6",title:"Или свяжитесь с нами удобным способом",className:"text-center mb-4"}),p("div",{className:"flex",children:[p("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:[u(ot,{image:{icon:"PhoneIcon"},width:"24",height:"24",className:"mr-3"}),u("span",{children:"8 (800) 200-78-70"})]}),p("a",{className:"flex items-center text-primary-text no-underline","aria-label":"ved@rshb.ru",href:"mailto:ved@rshb.ru",children:[u(ot,{image:{icon:"MailIcon"},width:"24",height:"24",className:"mr-3"}),u("span",{children:"ved@rshb.ru"})]})]})]})})),bt=x((({responceType:e})=>{const t="OK"===e;return p("div",{className:`flex items-center mt-5 p-5 rounded-md ${t?"bg-responce-ok":"bg-responce-fail"}`,children:[u(ot,t?{image:{icon:"ResponceOKIcon"},width:"42",height:"42",className:"mr-4"}:{image:{icon:"ResponceFailIcon"},width:"37",height:"34",className:"mr-4"}),p("div",{children:[u(T,{headingType:"h6",title:t?"Ваша заявка отправлена":"Не удалось отправить заявку",className:"mb-1"}),u(re,{size:"text-l-light",color:"text-secondary-text",children:t?"Совсем скоро мы с вами свяжемся":"Пожалуйста, повторите позднее"})]})]})})),ft={credit:e=>u(Qe,{...e}),acquiring:e=>u(_e,{...e}),"business-card":e=>u(Pe,{...e}),deposit:e=>u(tt,{...e}),wed:e=>u(gt,{...e})},vt={send:async function(e){try{const t=await fetch("/api/v1/sendcorporatelead",{method:"POST",headers:{"Content-Type":"application/json"},mode:"cors",body:JSON.stringify(e)});return await t.json()}catch(e){return null}}},Nt=x((e=>{const{className:t="",title:n,typeForm:a="credit",button:i,link:s,...o}=e,[c,d]=l(""),m=r((async e=>{const t=await vt.send(e)?"OK":"Fail";return d(t),t}),[]);return u(k,{className:`font-sans bg-white p-[50px] pb-9 ${t}`,...o,children:p("div",{className:"container max-w-[978px]",children:[n?u(T,{headingType:"h3",title:n,className:"text-center mb-8"}):null,ft[a]({button:i,link:s,handleSubmit:m}),c?u(bt,{responceType:c}):null]})})})),yt=x((({className:e="",title:t,benefitList:n,...l})=>p(k,{className:`p-12 flex flex-col items-center ${e}`,...l,children:[t?u(T,{headingType:"h3",as:"h2",className:"max-w-[47rem] text-center",title:t}):null,n?.length?u("div",{className:"flex flex-wrap w-full justify-center gap-x-20 mt-8",children:n.map(wt)}):null]}))),wt=(e,t)=>{const n=e.description;return p("div",{className:"flex items-center basis-1/2 max-w-[500px] mb-14",children:[e?.icon?.icon?u(ot,{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:e.icon}):null,e?.icon?.src?u(ot,{image:e.icon}):null,p("div",{className:"ml-5 h-full",children:[e?.label?u(T,{headingType:"h6",children:e.label}):null,Ct(n)]})]},String(t))},Ct=e=>{const t=e?.benefitType||null;return e&&t?u("div",{className:"mt-2 text-l-light text-secondary-text group-data-secondary:text-white/80",children:"list"===t?St(e):kt(e)}):null},kt=e=>e?.name||null,St=e=>{const t=e?.bullets?"list-disc pl-6":"";return e?.items&&e.items.length>0?u("ul",{className:t,children:e.items.map(((e,t)=>u("li",{children:e},`benefitListItem-${t}`)))}):null},It=(e,{className:t="",buttonClassName:n,isVertical:l}={})=>e?.length&&e.some((e=>e?.text||e?.icon?.icon))?u("div",{className:w("flex",l?"flex-col gap-2":"gap-4",t),children:e.map(Tt(n))}):null,Tt=(e="")=>(t,n)=>{const{text:l,icon:a,iconRight:r,version:i,...s}=t||{},o="secondary"===i?"color":"white",c=a?.iconVersion?a?.iconVersion:o;return l||a?.icon?u(te,{className:e,appendLeft:$t({...a,iconVersion:c}),appendRight:$t({...r,iconVersion:c}),version:i,text:l,...s},n?String(n):""):null},$t=e=>e?.icon||e?.src?u(ot,{image:e,width:String(e?.size?.width||24),height:String(24)}):null,Bt={XXL:{wrapper:"gap-[18px]",title:{headingType:"h0",as:"h1"},descriptionSize:"text-h5"},XL:{wrapper:"gap-4",title:{headingType:"h1",as:"h1"},descriptionSize:"text-xl-light"},L:{wrapper:"gap-4",title:{headingType:"h2",as:"h2"},descriptionSize:"text-xl-light"},M:{wrapper:"gap-3",title:{headingType:"h3",as:"h3"},descriptionSize:"text-xl-light"},S:{wrapper:"gap-2",title:{headingType:"h4",as:"h4"},descriptionSize:"text-xl-light"},XS:{wrapper:"gap-2",title:{headingType:"h5",as:"h5"},descriptionSize:"text-l-light"}},Rt={H6:"text-h6",XL_L:"text-xl-light",XL_R:"text-xl",L_L:"text-l-light",L_R:"text-l",M:"text-m-light",S:"text-s-light",XS:"text-xs-light"},Mt=x((({className:e,title:t,description:n,headlineVersion:l="XL",align:a="text-center",as:r,isPadding:i=!0,isTheme:s=!1,version:o="",...c})=>{const d=Bt[l];return p(k,{className:w("flex flex-col",i?"p-12":"",d.wrapper,e),version:o,isTheme:s,...c,children:[t?u(T,{className:w("whitespace-pre-wrap",a),...d?.title,as:r||d?.title.as,title:t}):null,n?u(ae,{size:d.descriptionSize,align:a,children:n}):null]})})),jt=x((e=>{const{className:t="",title:n,description:l,bonusItems:a,...r}=e;return u(k,{className:`p-12 pb-9 ${t}`,...r,children:p("div",{className:"container",children:[u(Mt,{className:"!p-0",title:n,description:l,headlineVersion:"M"}),u("div",{className:"flex flex-wrap w-full mt-9",children:a?.length?a.map(((e,t)=>p("div",{className:"flex-grow w-[49%] border border-gray p-9 mb-3 mx-2 even:mr-0 odd:ml-0 last:odd:mx-0",children:[e?.title?u(re,{size:"text-h4",children:e.title}):null,e?.description?u("div",{className:"mt-2",children:u(ae,{size:"text-xl",font:"font-light",children:e.description})}):null,p("div",{className:"flex justify-between items-end mt-3",children:[It(e?.buttons),e.bonusItemContent?.bonusType?_t(e.bonusItemContent):null]})]},String(t)))):null})]})})})),_t=e=>u("div",{children:"count"===e.bonusType?Vt(e):Lt(e)}),Vt=e=>p("div",{className:"relative -bottom-3 h-auto flex items-end mt-14 shrink-0",children:[e.bonusCount?u("span",{className:"font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7",children:e.bonusCount}):null,e.bonusName?u("span",{className:"text-h2 bg-clip-text text-transparent bg-green-to-yellow",children:e.bonusName}):null]}),Lt=e=>e.image?u(ot,{className:"w-12 h-12 min-w-12 p-3 rounded-full",image:e.image}):null,zt={left:"text-left",center:"text-center",right:"text-right"},Pt=x((({bonusBenefits:e,cardTextAlign:t="center",className:n="",columnsCount:l="4",subtitle:a,title:r,...i})=>p(k,{className:`font-sans text-primary-text bg-white p-12 flex flex-col text-center ${n}`,...i,children:[u(Mt,{className:"!p-0 mb-8",title:r,description:a,headlineVersion:"M"}),e?.length?u("div",{className:`grid gap-1 ${zt[t]} ${Ot(l)}`,children:e.map(Dt)}):null]}))),Dt=({icon:e,title:t,description:n},l)=>p("div",{className:w("flex flex-col items-center text-h6",n||t?"":"justify-center"),children:[t?u("span",{children:t}):null,e?u(ot,{image:e,height:"180",className:"w-auto"}):null,n?u("span",{children:n}):null]},String(l)),Ot=e=>{switch(e){case"3":return"grid-cols-3";case"4":return"grid-cols-4";default:return"grid-cols-5"}},At=x((e=>{const{title:t,image:n,cardItems:l,button:a}=e;return p("div",{className:"border-gray border p-9 w-1/2",children:[n?p("div",{className:"flex justify-center",children:[n?.src?u(ot,{className:"mb-5",image:n}):null,n?.icon?u(ot,{image:n}):null]}):null,t?u(T,{headingType:"h4",title:t,className:"mb-6"}):null,l?.length?u("ul",{children:l.map(((e,t)=>Et(e,String(t))))}):null,It([a],{buttonClassName:"mt-6"})]})})),Et=(e,t)=>{const{icon:n,text:l}=e;return p("li",{className:"flex items-center gap-3.5 mb-3 last:mb-0",children:[n?.icon?u(ot,{image:n,className:"w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider"}):null,n?.src?u(ot,{image:n}):null,u("span",{className:"text-xl-light",children:l})]},t)},Ft=x((({className:e="",title:t,cards:n,...l})=>p(k,{className:`p-12 pb-9 ${e}`,...l,children:[u(T,{headingType:"h3",title:t,className:"text-center mb-8"}),u("div",{className:"flex gap-5",children:n?.length?n.map(((e,t)=>u(At,{...e},String(t)))):null})]}))),Ut=x((({button:e,className:t,...n})=>u(k,{className:w("!bg-transparent",t),...n,children:It([e])}))),Ht=e=>{const{itemCount:t,visibleItemCount:n}=e,[a,i]=l(0),s=r((()=>i((e=>Math.min(e+1,t-1)))),[t]),o=r((()=>i((e=>Math.max(e-1,0)))),[t]),c=function({itemCount:e,visibleItemCount:t}){return Boolean(t&&e>t)}(e)&&a<t-(n||1),d=a>0;return[a,{inc:s,dec:o,canInc:c,canDec:d,isScrollAvailable:d||c}]};const Xt=x((({className:e,disabled:t,...n})=>u(te,{rounded:!0,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 ${t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main"} ${e||""}`,disabled:t,...n,children:u(ot,{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"})}))),Wt=x((e=>u(Xt,{...e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}))),Kt=x((e=>u(Xt,{...e,className:`${e.className||""} rotate-180`,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"})));function Gt({dec:e,inc:t,canDec:n,canInc:l,btnClass:a,className:r=""}){return n||l?p("div",{children:[n?u(Xt,{className:`absolute z-40 ${a[0]} ${r}`,onClick:e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left",disabled:!n}):null,l?u(Xt,{className:`absolute z-40 rotate-180 ${a[1]} ${r}`,onClick:t,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right",disabled:!l}):null]}):null}const Jt=x((({title:e,value:t,postfix:n="",prefix:l,className:a=""})=>p("div",{className:w("mb-7",a),children:[e?u(re,{size:"text-l-light",color:"text-secondary-text",children:e}):null,u("div",t?{children:p(re,{size:"text-h3",children:[l," ",Ue(Math.round(t))," ",n]})}:{children:u(re,{size:"text-h3",children:"-"})})]}))),Yt=Math.round(23.5),qt={minSum:1e4,maxSum:5e6,minMonths:13,maxMonths:60,rate:12.5,isSalaryClient:!1,isPensionClient:!1,isStateEmployee:!1,isInsurance:!0},Zt={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},Qt={minSum:5e4,maxSum:5e6,minMonths:2,maxMonths:10,rate:0,isMonthlyInterestPayment:!0,isRemoteRegistration:!0},en={minSum:1e3,maxSum:5e5,minDays:1,maxDays:1095,rate:0,isMonthlyInterestPayment:!0,isReplenished:!1,isPartialWithdrawal:!1,isSmallBusiness:!1,depositeName:"Депозит 'Стабильный'"},tn=x((({rate:e,title:t="Ставка",unit:n,depositeName:l,isShowDepositeName:a,rateBlockClassName:r})=>p("div",{children:[u(re,{size:"text-l-light",color:"text-secondary-text",children:t}),p("div",{className:"relative",children:[p("div",{className:"flex justify-start",children:[u("span",{className:w("block gradient-color-text font-mohave text-title-huge pr-6 -mt-4",r),children:String(e.toFixed(2)).replace(".",",")}),n?u("span",{className:"gradient-color-text text-[65px] leading-[75px]",children:n}):""]}),l&&a?u("div",{className:"absolute bottom-7 w-full text-center whitespace-nowrap",children:l}):null]})]}))),nn=e=>e?u(ae,{size:"text-s-light",color:"text-secondary-text",children:e}):null,ln=1e3;function an(e,t,n){const{moneyValue:l,minSum:a,maxSum:r,step:i=ln,isShowItems:s=!0}=t,o=[`От ${Ue(a)} ₽`,`До ${Ue(r)} ₽`];return u(We,{title:e,items:s?o:[],min:a,max:r,step:i,value:He(l,a,r),onChange:n})}function rn(e){const{data:t}=B(`/wcms-resources/${e}.json`,j);return t}const sn=(e,t)=>{const{travelExpenseValue:n,restExpenseValue:l}=e,a=rn(t||"bonus-calculator-data")||Zt,[r,i]=((e,t,n)=>{const{minSumTravel:l,minSumOther:a,maxBonus:r,prefMonthsNum:i,prefTravelBonusRate:s,prefRestBonusRate:o,travelBonusRate:c,restBonusRate:d}=e;if(t===l&&n===a)return[0,0];const m=Math.min(Math.round(s*t)+Math.round(o*n),r);return[m,m*i+Math.min(Math.round(c*t)+Math.round(d*n),r)*(12-i)]})(a,n,l);return{...a,...e,monthBonus:r,yearBonus:i}},on=x((({className:e="",sourceBookDir:t="",buttons:n,footnote:a})=>{const[i,s]=l(6e3),o=r((e=>s(e)),[]),[c,d]=l(6e3),m=r((e=>d(e)),[]),h={travelExpenseValue:i,restExpenseValue:c},{minSumTravel:x,maxSumTravel:g,minSumOther:b,maxSumOther:f,monthBonus:v,yearBonus:N}=sn(h,t);return p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-[468px]",children:[an("Сумма покупок в категории путешествия, ₽",{minSum:x,maxSum:g,moneyValue:i,step:500,isShowItems:!1},o),an("Сумма покупок в остальных категориях, ₽",{className:"mt-7",minSum:b,maxSum:f,moneyValue:c,step:500,isShowItems:!1},m)]}),u("div",{children:v>=0?u(tn,{title:"Баллов за месяц",rate:v,rateBlockClassName:"tracking-[-14px]"}):null}),p("div",{className:"w-full max-w-[350px]",children:[N>=0?u(Jt,{title:"Баллов за год",value:N}):null,It(n,{className:"mt-7",isVertical:!0}),nn(a)]})]})}));function cn(e,t,n){const{minDays:l,maxDays:a,daysValue:r}=t,i=e=>`${e} ${Number(e)%10==1?"дня":"дней"}`;return u(We,{className:"mt-7",title:e,items:[`От ${i(l)}`,`До ${i(a)}`],min:l,max:a,step:1,value:He(r,l,a),onChange:n})}const dn={horizontal:"gap-10",vertical:"flex-col gap-3"},mn=x((({items:e,checkedItem:t,onChange:n,orientation:l="horizontal"})=>u("div",{className:`flex ${dn[l]}`,children:e?.map((({id:e,text:l})=>u(mt,{isRadio:!0,text:l,checked:t===e,onChange:()=>n&&n(e)},String(e))))}))),hn="everyMonth",un="atEndTerm",pn=[{id:hn,text:"Ежемесячно"},{id:un,text:"В конце срока"}];function xn({isMonthlyInterestPayment:e,callback:t,title:n,orientation:l="horizontal"}){return p("div",{children:[n?u("div",{className:"mb-3",children:u(re,{color:"text-secondary-text",font:"font-light",children:n})}):null,u("div",{children:u(mn,{orientation:l,items:pn,checkedItem:e?hn:un,onChange:e=>t&&t(e===hn)})})]})}const gn=x((({title:e="Ставка"})=>p("div",{children:[u(re,{size:"text-l-light",color:"text-secondary-text",children:e}),u("div",{className:"mt-1 pt-1 pl-5 pb-1.5",children:u(fe,{name:"PercentIcon",width:"90",height:"85"})}),u("div",{className:"w-[250px] mt-3.5",children:p(ae,{size:"text-xl-light",color:"text-primary-text",children:["Процентная ставка для срока ",u("strong",{children:"1-30 дней"})," устанавливается при обращении в Банк"]})})]}))),bn=e=>e,fn=(e=bn)=>t=>t.reduceRight(((t,n)=>e(t)>e(n)?t:n)),vn=fn(),Nn=e=>{const t=[...e];t.sort((([e],[t])=>e-t));let n=1;for(;n<t.length;){const[e,l]=t[n-1],[a,r]=t[n];l>=a?t.splice(n-1,2,[e,Math.max(l,r)]):n++}return t},yn=(e=bn)=>fn((t=>-e(t))),wn=([e,t],n,l=[])=>n&&n[e]&&n[t]?{[e]:n[e],[t]:n[t]}:Cn([e,t],l),Cn=([e,t],n=[])=>({[e]:n.length?yn()(n.filter((t=>t[e])).map((t=>t[e]))):0,[t]:n.length?fn()(n.filter((e=>e[t])).map((e=>e[t]))):0}),kn=(e,[t,n],l)=>e>=l[t]&&e<=l[n],Sn=(e,t)=>e?t.isReplenished&&t.isPartialWithdrawal:!t.isReplenished&&!t.isPartialWithdrawal,In=(e,t)=>{const{isMonthlyInterestPayment:n,moneyValue:l,daysValue:a}=t;return n?Math.round(l*Math.pow((1200+e)/1200,a/30)-l):Math.round(l*e*a/365/100)},Tn=x((({className:e="",sourceBookDir:t,buttons:n,footnote:a,bottomFootnote:i,isShowDepositeName:s})=>{const[o,c]=l(1e5),d=r((e=>c(e)),[]),[m,h]=l(90),x=r((e=>h(e)),[]),[g,b]=l(!1),f=r((e=>b(e)),[]),[v,N]=l(!1),y=r((e=>N(e)),[]),[w,C]=l(!1),k=r((e=>C(e)),[]),[S,I]=l(!1),T=r((e=>I(e)),[]),$=((e,t)=>{const{daysValue:n,moneyValue:l,isPartialWithdrawal:a,isReplenished:r,isSmallBusiness:i,isMonthlyInterestPayment:s}=e,o=rn(t||"business-calculator-data"),c=r||a,d=n<90||n>730;if(n<=30)return{...en,...e,isDisabledOperatingDeposit:d,isShowUnknownRate:!0};const m=o?.rateRows?.find((e=>s===e.isMonthlyInterestPayment&&i===e.isSmallBusiness&&Sn(c,e)&&kn(l,["minSum","maxSum"],e)&&kn(n,["minDays","maxDays"],e)))||en,{rate:h}=m,u=In(h,e),p=l+u,x=o?.rateRows||[en];return{...m,...Cn(["minSum","maxSum"],x),...Cn(["minDays","maxDays"],x),...e,isDisabledOperatingDeposit:d,income:u,finalSum:p}})({moneyValue:o,daysValue:m,isReplenished:g,isPartialWithdrawal:v,isSmallBusiness:w,isMonthlyInterestPayment:S},t),{income:B,finalSum:R,rate:M,depositeName:j,isShowUnknownRate:_}=$;return p("section",{className:e,children:[p("div",{className:"flex justify-between",children:[p("div",{className:"w-[486px]",children:[an("Сумма вклада, ₽",$,d),cn("Срок вклада, дни",$,x),p("div",{className:"mt-7 flex justify-between",children:[$n({...$,handleIsReplenished:f,handleIsPartialWithdrawal:y,handleIsSmallBusiness:k}),xn({isMonthlyInterestPayment:S,callback:T,title:"Выплата процентов",orientation:"vertical"})]})]}),_?u(gn,{}):u(tn,{rate:M,depositeName:j,isShowDepositeName:s,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-full max-w-[350px]",children:[u(Jt,{title:"Доход по вкладу",value:B,postfix:"₽",prefix:"+"}),u(Jt,{title:"Сумма в конце срока",value:R,postfix:"₽"}),It(n,{className:"mt-7",isVertical:!0}),u("div",{className:"mt-7",children:nn(a)})]})]}),u("div",{className:"mt-5",children:nn(i)})]})})),$n=({isDisabledOperatingDeposit:e,isReplenished:t,isPartialWithdrawal:n,isSmallBusiness:l,handleIsReplenished:a,handleIsPartialWithdrawal:r,handleIsSmallBusiness:i})=>p("div",{children:[u(mt,{text:"Пополнение",disabled:e,checked:t,onChange:a}),u(mt,{className:"mt-3",disabled:e,text:"Частичное снятие",checked:n,onChange:r}),u(mt,{className:"mt-3",text:"Являюсь малым предприятием",checked:l,onChange:i})]}),Bn=x((({className:e,title:t,items:n=[],list:l=[],value:a=l[0],disabled:r=!1,onChange:i})=>{const s=l.length-1,o=e=>{if(!i)return;const t=parseInt(e.target.value),n=l.reduce((function(e,n){return Math.abs(n-t)<Math.abs(e-t)?n:e}));i(Number(Xe(n.toString())))},c=l.findIndex((e=>e===a))||0,d={backgroundSize:`${(100*(c-0)/(s-0)).toFixed(2)}% 100%`};return p("div",{className:e,children:[p("label",{className:"block relative",children:[t?u("span",{className:"text-m-light text-primary-text",children:t}):null,u("input",{className:"m-0 mt-2 font-sans text-h3 w-full h-14 border border-solid border-gray rounded-md\n outline-none p-0 pl-4 box-border text-primary-text hover:border-primary-hover focus:border-primary-text disabled:border-gray disabled:bg-main-divider",value:Ue(a),disabled:r,onChange:o,onBlur:o}),l.length?u("div",{className:"absolute w-full flex justify-between -bottom-[3px] px-4",children:l.map(Rn(c,r))}):null,u("div",{className:"absolute inset-x-0 -bottom-1 px-4 leading-[18px]",children:u("input",{className:"box-border w-full m-0 cursor-pointer slider relative z-10",type:"range",min:0,max:s,step:1,value:c,disabled:r,onChange:e=>{if(!i)return;const t=l.at(He(parseInt(e.target.value),0,s))||0;i(Number(Xe(t.toString())))},style:d})})]}),Mn(n)]})})),Rn=(e,t)=>(n,l)=>u("span",{className:"w-2 h-2 rounded-full "+(e<=l||t?"bg-gray":"bg-primary-main")},String(l));function Mn(e){return u("div",{className:"flex justify-between my-2",children:e.map(((e,t)=>u("span",{className:"text-s-light text-secondary-text",children:e},String(t))))})}function jn(e,t,n){const{minMonths:l,maxMonths:a,monthsValue:r,availableMonths:i}=t,s=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`;return i?.length?u(Bn,{className:"mt-7",title:e,items:[`От ${s(l)}`,`До ${s(a)}`],list:i,value:He(r,l,a),onChange:n}):u(We,{className:"mt-7",title:e,items:[`От ${s(l)}`,`До ${s(a)}`],min:l,max:a,step:1,value:He(r,l,a),onChange:n})}const _n="annuity",Vn="differential",Ln=[{id:_n,text:"Аннуитетный"},{id:Vn,text:"Дифференцированный"}];function zn({isAnnuity:e,callback:t,title:n,orientation:l="horizontal"}){return p("div",{children:[n?u("div",{className:"mb-3",children:u(re,{color:"text-secondary-text",font:"font-light",children:n})}):null,u(mn,{orientation:l,items:Ln,checkedItem:e?_n:Vn,onChange:e=>t&&t(e===_n)})]})}const Pn=(e,t,n)=>{const{moneyValue:l,monthsValue:a}=e,r=rn(t||"credit-calculator-data"),s=r?.limitRows?.find((t=>Dn({row:t,userInputParams:e,paramsViewSettings:n}))),o=r?.rateRows?.find((t=>Dn({row:t,userInputParams:e,paramsViewSettings:n})&&kn(l,["minSum","maxSum"],t)&&kn(a,["minMonths","maxMonths"],t)))||qt,{rate:c}=o,d=((e,t)=>{const{isAnnuity:n,moneyValue:l,monthsValue:a}=t;if(0===e)return 0;if(n){const t=e/1200;return l*(t+t/(Math.pow(1+t,a)-1))}return Math.round(l/a)+l*(e/1200)})(c,e),m=r?.rateRows||[qt];return i((()=>({...o,...wn(["minSum","maxSum"],s,m),...wn(["minMonths","maxMonths"],s,m),...e,monthlyPayment:d})),[e])},Dn=e=>On({...e,fieldKey:"isSalaryClient",viewSettingFieldKey:"isShowSalaryClient"})&&On({...e,fieldKey:"isStateEmployee",viewSettingFieldKey:"isShowStateEmployee"})&&On({...e,fieldKey:"isPensionClient",viewSettingFieldKey:"isShowPensionClient"})&&On({...e,fieldKey:"isInsurance",viewSettingFieldKey:"isShowInsurance"}),On=({row:e,userInputParams:t,paramsViewSettings:n,fieldKey:l,viewSettingFieldKey:a})=>!!n&&!n[a]||t[l]===e[l],An=x((({className:e="",sourceBookDir:t,buttons:n,footnote:i,paramsViewSettings:s})=>{const[o,c]=l(!1),[d,m]=l(!1),h=r((e=>m(e)),[]),[x,g]=l(!1),b=r((e=>g(e)),[]),[f,v]=l(!1),N=r((e=>v(e)),[]),[y,C]=l(!0),k=r((e=>C(e)),[]),[S,I]=l(2e5),T=r((e=>I(e)),[]),[$,B]=l(Yt),R=r((e=>B(e)),[]),M=Pn({isAnnuity:o,isInsurance:y,isSalaryClient:d,isPensionClient:f,isStateEmployee:x,moneyValue:S,monthsValue:$},t,s);return a((()=>{I(He(S,M.minSum,M.maxSum)),B(He($,M.minMonths,M.maxMonths))}),[M]),p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-[468px]",children:[an("Сумма кредита, ₽",{...M,step:500},T),jn("Срок кредита, месяцев",M,R),u("div",{className:"mt-7",children:Fn({...M,...s,handleIsSalaryClient:h,handleIsStateEmployee:b,handleIsPensionClient:N,handleIsInsurance:k})})]}),En(M.rate),p("div",{className:"w-full max-w-[350px]",children:[u(Jt,{title:"Ежемесячный платеж",value:M.monthlyPayment,postfix:"₽"}),zn({isAnnuity:o,orientation:"vertical",callback:c}),It(n,{className:"mt-7",isVertical:!0}),nn(i)]})]})})),En=e=>u(tn,{title:"Ставка",rate:e,rateBlockClassName:"tracking-[-25px]",unit:"%"}),Fn=({isSalaryClient:e,isStateEmployee:t,isPensionClient:n,isInsurance:l,isShowSalaryClient:a,isShowStateEmployee:r,isShowPensionClient:i,isShowInsurance:s,handleIsSalaryClient:o,handleIsStateEmployee:c,handleIsPensionClient:d,handleIsInsurance:m})=>p("div",{children:[a?u(mt,{text:"Получаю зарплату на счёт в Россельхозбанке",checked:e,onChange:o}):null,r?u(mt,{className:"mt-3",text:"Работаю в бюджетной организации",checked:t,onChange:c}):null,i?u(mt,{className:"mt-3",text:"Получаю пенсию на карту Россельхозбанка",checked:n,onChange:d}):null,s?u(mt,{className:"mt-3",text:"Комплексная страховая защита",checked:l,onChange:m}):null]}),Un="remote",Hn="office",Xn=[{id:Hn,text:"Офис Банка"},{id:Un,text:"Дистанционно"}];function Wn({isRemoteRegistration:e,callback:t,title:n,orientation:l="horizontal"}){return p("div",{children:[n?u("div",{className:"mb-3",children:u(re,{color:"text-secondary-text",font:"font-light",children:n})}):null,u("div",{children:u(mn,{orientation:l,items:Xn,checkedItem:e?Un:Hn,onChange:e=>t&&t(e===Un)})})]})}const Kn=(e,t,n)=>{const{moneyValue:l,monthsValue:a}=e,r=rn(t||"deposit-calculator-data"),i=r?.rateRows[0]?Yn(r.rateRows[0].minMonths,r.rateRows[0].maxMonths):1,s=!n?.isShowMonthlyInterestPayment,o=!n?.isShowRemoteRegistration,c=r?.rateRows?.find((t=>Jn({row:t,userInputParams:e,paramKey:"isMonthlyInterestPayment",isExclude:s})&&Jn({row:t,userInputParams:e,paramKey:"isRemoteRegistration",isExclude:o})&&kn(l,["minSum","maxSum"],t)&&kn(a||i,["minMonths","maxMonths"],t)))||Qt,{rate:d}=c,m=Gn(d,e),h=l+m,u=r?.rateRows||[Qt];return{...c,...Cn(["minSum","maxSum"],u),...Cn(["minMonths","maxMonths"],u),availableMonths:Nn(u.map((e=>[e.minMonths,e.maxMonths]))).flatMap((([e,t])=>((e,t,n=1)=>Array.from({length:Math.abs(t-e)/n+1},((l,a)=>t>=e?e+a*n:e-a*n)))(e,t))),...e,defaultMonth:i,income:m,finalSum:h}},Gn=(e,t)=>{const{isMonthlyInterestPayment:n,moneyValue:l,monthsValue:a}=t;return n?Math.round(l*Math.pow((1200+e)/1200,a)-l):Math.round(l*e*30*a/365/100)},Jn=({row:e,userInputParams:t,paramKey:n,isExclude:l})=>l||t[n]===e[n],Yn=(e,t)=>e+Math.round((t-e)/2),qn=x((({className:e="",sourceBookDir:t,buttons:n,footnote:i,paramsViewSettings:s})=>{const[o,c]=l(2e4),d=r((e=>c(e)),[]),[m,h]=l(0),[x,g]=l(!1),b=r((e=>g(e)),[]),[f,v]=l(!1),N=r((e=>v(e)),[]),y={moneyValue:o,monthsValue:m,isMonthlyInterestPayment:x,isRemoteRegistration:f},C=r((e=>h(e)),[]),k=Kn(y,t,s),{defaultMonth:S,income:I,finalSum:T,rate:$}=k;return a((()=>{h(S)}),[S]),p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-[468px]",children:[an("Сумма вклада, ₽",{...k},d),jn("Срок вклада, месяцев",{...k},C),u("div",{className:"mt-7",children:Zn({...k,...s,handleIsMonthlyInterestPayment:b,handleIsRemoteRegistration:N})})]}),u(tn,{rate:$,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-full max-w-[350px]",children:[u(Jt,{title:"Доход по вкладу",value:I,postfix:"₽",prefix:"+"}),u(Jt,{title:"Сумма в конце срока",value:T,postfix:"₽"}),It(n,{className:"mt-7",isVertical:!0}),nn(i)]})]})})),Zn=({isMonthlyInterestPayment:e,isRemoteRegistration:t,isShowMonthlyInterestPayment:n,isShowRemoteRegistration:l,handleIsMonthlyInterestPayment:a,handleIsRemoteRegistration:r})=>p("div",{className:"flex flex-col gap-y-7",children:[n?xn({isMonthlyInterestPayment:e,callback:a,title:"Выплата процентов"}):null,l?Wn({isRemoteRegistration:t,callback:r,title:"Оформление"}):null]}),Qn={CreditCalculatorForm:An,DepositCalculatorForm:qn,BusinessDepositCalculatorForm:Tn,BonusCalculatorForm:on},el=(e,t)=>{const n=e?.calcType;if(!n||!(n in Qn))return null;const l=Qn[n];return u("section",{className:"box-border relative bg-white flex shrink-0 self-start basis-full",role:"listitem",children:p("div",{className:"box-border p-9 w-full",children:[e?.title?u(T,{className:"text-center mb-6",title:e.title}):null,u(l,{...e})]})},String(t))},tl=x((({className:e="",calculatorTabs:t=[],...n})=>{const a=t.map((e=>e.nav||{})),i=t.map((({calculatorBlock:e})=>e||{})),[s,o]=l(0),c=r((e=>o(e)),[]),[d,m]=Ht({itemCount:t?.length,visibleItemCount:3});return p(k,{className:`box-border overflow-hidden relative w-100 ${e}`,...n,children:[p("div",{className:"bg-white",children:[a.length>1?nl({activeIndex:d,tabsNav:a,slideIndexShift:s,onClick:c}):null,Gt({...m,btnClass:["left-3","right-3"],className:"top-8"})]}),u("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:i?.length?i.map(el):null})]})}));function nl({activeIndex:e,tabsNav:t,slideIndexShift:n,onClick:l}){return p("div",{children:[u("div",{style:{transform:`translateX(-${388*e}px)`},className:"flex flex-col justify-end items-center h-[126px] pt-9 box-border duration-1000",children:u("div",{className:"w-full flex flex-nowrap items-end gap-2",children:t.map(((e,t)=>function({tab:e,i:t,isActive:n,onClick:l}){const a=n?"h-[88px] w-[387px] min-w-[387px] p-5 border-none bg-primary-main text-white":"h-[77px] w-[328px] min-w-[328px] px-5 py-4 ease-in duration-300 bg-white text-primary-text",r=n?"text-xl mb-1.5":"text-l mb-[3px]",i=n?"text-l-light text-white":"text-m-light text-secondary-text",s=n?"":"text-primary-main",o=e?.icon?.iconVersion,c=n?"white":"normal";return p("button",{type:"button",onClick:l,"aria-label":e?.title,className:`box-border relative border border-gray cursor-pointer text-left border-b-0 flex hover:h-[88px]\n ${a}`,children:[u(ot,{className:`h-6 w-6 min-w-6 min-h-6 mr-4 ${s}`,image:{...e?.icon,iconVersion:o??c},width:"24",height:"24"}),p("div",{className:"border-0",children:[u("div",{className:`${r}`,children:e?.title}),u("div",{className:`${i}`,children:e.description})]})]},String(t))}({tab:e,i:t,isActive:Boolean(t===n),onClick:()=>l(t)})))})}),u("div",{className:"w-full h-2 bg-primary-main"})]})}const ll=e=>(e.match(/\./g)||[]).length>1?e.slice(0,e.lastIndexOf(".")):e,al=e=>{const t=0===e.indexOf("0")&&2===e.length?e.replace("0","0."):e;return t.startsWith(".")?t.replace(".","0."):t},rl=e=>String(e.replace(",",".").replace(/[^.\d]/g,"")),il=x((({className:e="",onChange:t,minValue:n=0,maxValue:l=3e5,...a})=>{const i=r((e=>{if(!t)return;const a=ll(al(rl(Xe(e))));const r=sl(a,He(Number(a),n,l));t(String(r))}),[t]),s=r((e=>{var n;t&&t((n=e,new Intl.NumberFormat("ru-RU",{minimumFractionDigits:0,maximumFractionDigits:2}).format(Number(Xe(n))).replace(",",".")))}),[t]);return u(se,{className:e,inputClassName:"w-full",onChange:i,onBlur:s,...a,children:u("span",{className:"text-xl-light absolute right-4 bottom-4",children:"₽"})})})),sl=(e,t)=>Number(e)===t?e:String(t),ol=x((({className:e="",title:t="Укажите сумму перевода",label:n="Сумма перевода",placeholder:a="1500",button:i,...s})=>{const[o,c]=l(""),d=r((e=>c(e)),[]),m=!Number(Xe(o)),h=m?Q({version:i?.version}):ee({className:"text-white",version:i?.version}),x=H();return p(k,{className:`p-12 flex flex-col items-center ${e}`,...s,children:[t?u(T,{className:"max-w-[684px] pb-9",headingType:"h2",title:t}):null,p("form",{className:"w-[468px]",method:"POST",action:"https://www.rshb.ru/p2p/",children:[u(il,{name:"amount",value:o,onChange:d,valid:""===o||!m,placeholder:a,label:n}),i?.text?u("button",{type:"submit",className:`w-full p-4 mt-6 ${h} `,disabled:m,...x(i),children:i.text}):null]})]})})),cl=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),dl=[];function ml(e,t,{className:n,...l}={}){const{key:a,blockDecorator:r=cl,blocksRegistry:i={},ancestors:s=dl}=t,{type:o}=e;o&&o in i||console.warn(`No block with "${o}" is registered`);const c=o&&i[o];return r({blockClassName:w("scroll-mt-12",n,e.style||"col-span-12"),block:e,ancestors:s,render:({block:n,blockClassName:r})=>{const{content:i}=n;return c?u(c,{className:r,block:e,options:t,...i,...l},a):null}},a)}const hl=[],ul=(e,{key:t,ancestors:n=hl,slotName:l=null,renderProps:a=ml,...r})=>(e||[]).map(((e,i)=>a(e,{...r,key:`${t||e.type}-${i}`,ancestors:r.parent?[...n||hl,[r.parent,l]]:n})));function pl({children:e,block:t,options:n,renderProps:l}){return e||(t&&n?ul(t.blocks,{...n,parent:t,renderProps:l}):null)}const xl=e=>({height:"calc(100vh - 242px)",minHeight:`${e||866}px`}),gl=x((({className:e="",style:t,idx:n,activeIndex:l,observerOptions:a,children:i,onIntersection:s})=>{const o=v(r((e=>{e.length&&s&&s(n||0,e[e.length-1])}),[s,n]),a);return u("div",{className:`inline-block snap-always box-border ${e}`,style:t,"aria-current":Boolean(n===l),ref:o,children:i})})),bl=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]","min-w-[25%]"],fl=x((({className:e="",containerRef:t,activeIndex:n,visibleItemCount:l=0,gap:a=0,padding:i=0,listType:o="horizontal-list",snapAlign:c="snap-center",minHeight:d,children:m,onVisibleItemsChange:h,onVisibleIndicesChange:p})=>{const x={sensitivity:1,rootRef:t},g=s([]),b=r(((e,t)=>{const n=[...g.current||[]];n[e]=t,g.current=n,h&&h(n),p&&p(Nl(n))}),[h,p]),f=l>0?a*Number(l)-1:0,v="vertical-list"===o,N="horizontal-list"===o,y={...N?vl(i,f):{},...v?xl(d):{},gap:`${a}px`};return u("div",{className:w("box-border overflow-auto no-scrollbar",o,e),style:y,ref:t,children:(C=(e,t)=>u(gl,{className:w(c,l?bl[l-1]:"",v?"h-full":""),style:N?vl(i/4):{},activeIndex:n,idx:t,observerOptions:x,onIntersection:b,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(C):C(e,0))(m)});var C})),vl=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),Nl=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),yl={"horizontal-list":"mx-auto mt-5 w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},wl={"horizontal-list":"w-6","vertical-list":"h-6"},Cl=x((({containerRef:e,activeIndex:t,dotCount:n=0,listType:l="horizontal-list",version:a})=>n?u("div",{className:w("flex gap-2",yl[l],a?"group":""),...a?{"data-ver":a}:{},children:new Array(n).fill(null).map(((n,a)=>u("div",{className:`cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white group-data-transparent:bg-white ${a===t?wl[l]:"w-2 h-2 opacity-30"}`,role:"button","aria-hidden":!0,onClick:()=>(n=>{n!==t&&e?.current&&e.current.children[n]?.scrollIntoView({behavior:"smooth",block:"nearest"})})(a)},String(a))))}):null)),kl=e=>t=>e.scrollWidth/t,Sl=e=>(t,n)=>{e.scrollBy({left:n*kl(e)(t),behavior:"smooth"})},Il=({itemCount:e,isCyclic:t,onVisibleIndicesChange:n})=>{const a=s(null),[i,o]=l([]),c=r((e=>{o((t=>{return(n=t)===(l=e)||Boolean(n&&l&&n?.length===l?.length&&n.every(((e,t)=>e===l[t])))?t:e;var n,l})),n&&n(e)}),[e]),[d,m]=i.length?[yn()(i),fn()(i)]:[-1,-1],h=d>0,u=m<e-1,p=r((()=>{var n;a.current&&(t&&!h?(n=a.current).scrollTo({left:n.scrollWidth,behavior:"smooth"}):Sl(a.current)(e,-1))}),[t,e,h]),x=r((()=>{a.current&&(t&&!u?a.current.scrollTo({left:0,behavior:"smooth"}):Sl(a.current)(e,1))}),[e,t,u]);return[a,{scrollLeft:p,scrollRight:x,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]},Tl="absolute top-[calc(50%-24px)] z-40",$l="absolute top-0 bottom-0 z-40 w-[84px] pointer-events-none",Bl=x((({scroll:e,arrowsPadded:t,isBlur:n,onScrollLeft:l,onScrollRight:a,hasEdgeBlocks:i,activeIndex:s,itemCount:o})=>{const{canScrollLeft:c,canScrollRight:d,scrollLeft:m,scrollRight:h}=e,x=i?s>0:c,g=i?s<o-1:d,b=r((()=>{i?(c&&s!==o-1&&m(),l()):m()}),[m,l,i,c,s,o]),f=r((()=>{i?(d&&0!==s&&h(),a()):h()}),[h,a,i,c,s,o]);return p("div",{children:[Rl(n,e),x?u(Wt,{className:w(Tl,t?"left-8":"left-0"),onClick:b}):null,g?u(Kt,{className:w(Tl,t?"right-8":"right-0"),onClick:f}):null]})})),Rl=(e,t)=>(t.canScrollLeft||t.canScrollRight)&&e?p("div",{children:[u("div",{className:w($l,"left-0 bg-opacity-from-white")}),u("div",{className:w($l,"right-0 bg-opacity-to-white")})]}):null,Ml=x((({className:e="",itemCount:t,visibleItemCount:n,isBlur:a=!0,isCyclic:i=!1,arrowsPadded:s=!0,isPadding:o=!0,showDots:c=!1,isAlignCenter:d=!1,...m})=>{const{blocks:h=[]}=m.block||{},x=t||h?.length,[g,b]=l(Math.floor((n||0)/2)),f=r((()=>b((e=>e+1))),[]),v=r((()=>b((e=>e-1))),[]),[N,y]=Il({itemCount:x,isCyclic:i}),[C]=y.visibleIndicesRange,S=h&&"CarouselBankHistoryCard"===h[0]?.type;return u(k,{className:w(jl(o),"group-data-secondary:bg-primary-main group-data-secondary:text-white",e),...m,children:p("div",{className:w(_l(d),"relative max-w-full"),children:[u(fl,{containerRef:N,visibleItemCount:n,snapAlign:"snap-start",gap:4,onVisibleIndicesChange:y.handleVisibleIndicesChange,children:pl({...m,renderProps:S?(e,t)=>ml(e,t,{blocksLength:h?.length,activeIndex:g}):ml})}),u(Bl,{scroll:y,isBlur:a,arrowsPadded:s,onScrollLeft:v,onScrollRight:f,hasEdgeBlocks:S,activeIndex:g,itemCount:x}),c?Vl(N,C,t):null]})})}));Ml.childrenTypes=["CarouselCard","CarouselBankHistoryCard","CarouselCatalogCard","CarouselInvestmentCard","CarouselProductCard","CarouselProgramsCard","CarouselRecommendationCard","CarouselTariffsCard","CarouselRichTextCard","CarouselInvestmentCard","CarouselEventCard"];const jl=e=>e?"p-12":"",_l=e=>e?"flex justify-center":"",Vl=(e,t,n)=>u(Cl,{containerRef:e,activeIndex:t,dotCount:n,listType:"horizontal-list"}),Ll=x((({title:e,description:t,blocksLength:n=0,activeIndex:l,options:a})=>{const r=Number(a?.key?.split("-").slice(-1)[0])||0;return u(k,{className:"flex h-[485px]",children:u("div",r===l?{className:"relative flex items-center w-full",children:u(Mt,{headlineVersion:"M",title:e,description:t,align:"text-left",className:w("absolute z-10 h-[385px] w-[440px] p-8 text-white shadow-dark-blue",Dl(r,n),zl(r))})}:{className:"flex w-full items-center justify-center",children:u("div",{className:w("flex justify-center items-center h-[300px] w-[340px] font-mohave text-title-large tracking-[-0.03em]",zl(r)),children:u("span",{className:Pl(r),children:e})})})})})),zl=e=>{switch(e%3){case 0:default:return"bg-primary-main";case 1:return"bg-green-light";case 2:return"bg-yellow-light"}},Pl=e=>{switch(e%3){case 1:case 2:return"gradient-color-text-on-yellow";default:return"gradient-color-text-on-green"}},Dl=(e,t)=>0===e?"left-9":e===t-1?"right-9":"-left-[25px]",Ol="absolute border border-solid border-gray w-full h-full",Al={normal:"min-w-[970px]",small:"min-w-[355px]"},El=x((({className:e="",button:t,description:n,title:l,carouselVersion:a="normal",version:r=""})=>u("section",{className:`flex pb-9 pl-12 border-box h-full ${Al[a]} ${e}`,children:p("div",{className:"relative w-full",children:[u("div",{className:`${Ol} z-10 top-9 right-12 bg-green-dark`}),u("div",{className:`${Ol} z-10 top-6 right-8 bg-green`}),u("div",{className:`${Ol} z-10 top-3 right-4 bg-green-light`}),p("div",{className:"relative h-full bg-white z-10 p-10 border border-solid border-green-light",children:[u(Mt,{className:"!p-0",title:l,description:n,headlineVersion:"L",align:"text-left",version:r}),It([t],{className:"mt-14"})]})]})}))),Fl={black:"bg-black",white:"bg-white"},Ul=x((({className:e="",title:t,description:n,image:l,price:a,button:r,colors:i,...s})=>p(k,{className:`border box-border border-gray p-7 min-w-[392px] h-full flex flex-col justify-left ${e}`,...s,children:[l?.src?u(ot,{className:"mb-5 flex justify-center",image:l}):null,t?u(T,{headingType:"h6",as:"h4",className:"text-left mb-1.5",title:t}):null,n?u("div",{className:"mb-4",children:u(ae,{size:"text-m",align:"text-left",font:"font-light",children:n})}):null,i?.length?p("div",{className:"flex mb-4 text-secondary-text",children:[u("div",{className:"mr-1.5",children:u(re,{size:"text-s",align:"text-left",font:"font-light",children:"Доступные цвета:"})}),i.map(Hl)]}):null,a?p(re,{size:"text-h3",align:"text-left",children:[a," ₽"]}):null,It([r],{buttonClassName:"mt-5 w-full"})]}))),Hl=(e,t)=>u("div",{role:"figure",className:`w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${Fl[e]}`},String(t)),Xl=x((({className:e="",href:t,target:n,children:l})=>{const a=H()({href:t,target:n});return u(t?"a":"div",{className:w("block",e),...t?a:{},children:l})})),Wl=x((({className:e="",icon:t,title:n,description:l,href:a,target:r,...i})=>u(k,{className:w("w-[365px]",e),...i,children:p(Xl,{className:"flex flex-col",href:a,target:r,children:[t?.icon?u(ot,{image:t}):null,t?.src?u(ot,{image:t}):null,n?u(T,{headingType:"h6",as:"h4",className:"text-left pt-3 mb-2",title:n}):null,l?u("div",{className:"mb-4",children:u(re,{font:"font-light",size:"text-m",color:"text-secondary-text",children:l})}):null]})}))),Kl=x((({className:e="",title:t="",buttons:n,image:l,children:a})=>p("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,p("div",{className:"flex grow w-full justify-between",children:[p("div",{className:"flex flex-col justify-between w-full",children:[u("div",{className:"h-full",children:a}),n?u("div",{className:"mt-auto pt-8",children:n}):null]}),l]})]}))),Gl={1:"flex-col",2:"gap-x-10 flex-wrap"},Jl=x((({additionalDescription:e,cardsList:t=[],className:n="",columnsMode:l=1,description:a,image:r,title:i,...s})=>{const o=i?u(T,{headingType:"h4",as:"h3",className:"mb-3.5 z-10",title:i}):null,c=r?.src?u(ot,{className:"absolute bottom-0 right-0 m-0",image:r}):null;return u(k,{className:["relative box-border text-left p-9 w-[697px]","border border-solid border-gray group-data-secondary:border-white/50",n].join(" "),...s,children:p(Kl,{title:o,image:c,children:[p("div",{className:"flex justify-between mb-4",children:[a?u("div",{className:"w-1/3",children:u(re,{size:"text-h6",children:a})}):null,e?u(re,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:e}):null]}),t.length?u("ul",{className:`list-none m-0 p-0 flex gap-y-2 ${Gl[l]}`,children:Yl(t,l)}):null]})})})),Yl=(e,t)=>e.slice(0,[4,9][t-1]).map(((e,n)=>{return p("li",{className:2===t?"basis-[calc(50%-20px)]":"",children:[e?.parameter?u("div",{className:"pr-2.5",children:u(re,{size:(l=t,1===l?"text-h6":"text-l"),children:e.parameter})}):null,e?.parameterDescription?u(re,{size:"text-m",font:"font-light",color:"text-secondary-text",children:e.parameterDescription}):null]},String(n));var l})),ql="bg-transparent border-white border h-[70px] absolute w-[316px] top-0",Zl=x((({text:e,href:t="",target:n="",className:l=""})=>{const a=H()({href:t,target:n});return e?p("div",{className:`relative group/link cursor-pointer w-[328px] h-[82px] ${l}`,children:[p("a",{className:"absolute border border-primary-main ml-3 px-6 py-5\n text-l-light bg-white text-primary-text flex w-[316px]\n justify-between items-center group-hover/link:text-primary-main z-10",role:"link",...a,children:[u("div",{className:"p-0.5",children:e}),u("div",{className:"w-6 h-6",children:u(ot,{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"})})]}),u("div",{className:`${ql} mx-1.5 mt-1.5`}),u("div",{className:`${ql} mt-3 mr-3`})]}):null})),Ql=x((({className:e="",additionalDescription:t,description:n,links:l,title:a,...r})=>p(k,{className:`flex w-full p-10 overflow-hidden justify-between ${e}`,...r,children:[p("div",{className:"flex flex-col max-w-96 pr-9 text-white text-xl-light",children:[u(Mt,{isPadding:!1,title:a,description:n,as:"h1",align:"text-left"}),t?u(Mt,{className:"pt-6",isPadding:!1,description:n,align:"text-left"}):null]}),l?.length?ea(l):null]}))),ea=e=>{const t=Math.ceil(e.length/10);return u(Ml,{className:"min-w-[832px] w-[832px]",isBlur:!1,isCyclic:!0,itemCount:t,arrowsPadded:!1,showDots:!0,children:new Array(t).fill(null).map(((t,n)=>u("div",{className:"w-[672px] min-w-[672px] ml-10 mr-10 flex flex-wrap self-start",children:e.slice(10*n,10*(n+1)).map(((e,t)=>u(Zl,{className:"m-1",...e},String(t))))},String(n))))})},ta={L:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4",M:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3",S:"w-1 h-1 min-w-1 min-h-1 mr-2"},na=x((({className:e="",isDotted:t=!0,children:n,size:l="M"})=>p("div",{className:`font-sans flex items-baseline ${e}`,role:"listitem",children:[t?u("div",{children:u("div",{className:`rounded-full align-middle inline-block bg-primary-text group-data-secondary:bg-white ${ta[l]}`})}):null,u("span",{children:n})]}))),la={S:"text-l-light",M:"text-h6",L:"text-h5"},aa={S:"ml-2",M:"ml-3",L:"ml-4"},ra=x((({className:e="",hasIndent:t,isDotted:n,itemClassName:l="",items:a,listItemSize:r="M"})=>a?.length?u("section",{className:`text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text ${la[r]} ${t?aa[r]:""} ${e}`,role:"list",children:a.map(((e,t)=>u(na,{className:l,isDotted:n,size:r,children:e},String(t))))}):null)),ia=x((({additionalDescription:e,align:t="text-center",button:n={},className:l="",description:a,headlineSmallVersion:r="H6",href:i,icon:s,isDotted:o=!0,isFullWidth:c=!0,items:d=[],target:m,title:h,version:u="primary",...x})=>p(k,{className:w("h-full flex flex-col justify-between min-w-[260px]","box-border border-solid border border-gray",t,l),version:u,...x,children:[p(Xl,{className:"p-6",href:i,target:m,children:[sa(s),oa(r,h),ca(a,h),ma(d,o,u),da(e)]}),It([n],{className:w("p-6 pt-0",c?"":"justify-center"),isVertical:!!c})]}))),sa=e=>p("div",{className:"flex justify-center",children:[e?.src?u(ot,{className:"mb-5",image:e}):null,e?.icon?u(ot,{className:"w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full",image:e}):null]}),oa=(e,t)=>t?u("div",{children:u(re,{size:Rt[e],children:t})}):null,ca=(e,t)=>e?u("div",{className:t?"mt-2":"",children:u(ae,{size:"text-l",children:e})}):null,da=e=>e?u("div",{className:"mt-auto",children:u(re,{size:"text-m",font:"font-light",color:"text-secondary-text group-data-secondary:text-white/80",children:e})}):null,ma=(e,t,n="primary")=>e?.length?u(ra,{className:"max-w-[308px] mt-2 text-s "+("primary"===n?"!text-secondary-text":""),itemClassName:"text-left",items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:t}):null,ha=x((({className:e="",title:t,icon:n,list:l=[],href:a,target:r,...i})=>u(k,{className:w("border border-gray",e),...i,children:p(Xl,{className:"flex",href:a,target:r,children:[p("div",{className:"w-[200px] min-w-[200px] self-center",children:[n?.icon?u(ot,{image:n}):null,n?.src?u(ot,{image:n}):null]}),p("div",{className:"p-8 pl-3 w-full",children:[t?u(T,{className:"mb-3.5",headingType:"h5",title:t}):null,l.length?u("div",{className:"flex flex-col gap-3",children:l?.map(ua)}):null]})]})}))),ua=(e,t)=>p("div",{className:"break-words",children:[e.title?u("div",{className:"text-h6",children:e.title}):null,e.description?u("span",{className:"text-l-light mt-1",children:e.description}):null]},String(t)),pa=[{origins:["t.me","telegram.org"],iconMapped:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],iconMapped:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],iconMapped:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],iconMapped:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],iconMapped:{icon:"PlayMarketIcon"},label:"Google Play"},{origins:["youtube.com"],iconMapped:{icon:"YoutubeIcon"},label:"Youtube"}],xa={default:"w-14 h-14",small:"w-12 h-12"},ga=(e,t)=>e?"":`group/media flex items-center justify-center box-border ${xa[t]}`,ba=x((({buttonSize:e="default",rounded:t=!1,icon:n,...l})=>{const{href:a,version:r,text:i=""}=l,{iconMapped:s,label:o}=pa.find((({origins:e})=>e.some((e=>a?.includes(e)))))||{},c=fa(n)??s;return u(te,{className:w(t?"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",ga(i,e)),"aria-label":o,rel:"noopener noreferrer",target:"_blank",text:i,version:r,...l,children:c&&!i?u(ot,{image:c,imageClassName:"group-hover/media:text-white",width:"24",height:"24"}):null})})),fa=e=>e?.src||e?.icon?e:void 0,va=x((({className:e="",media:t,children:n,buttonSize:l})=>p("div",{className:"font-sans",children:[u("div",{className:`flex gap-1 ${e}`,children:t?.map(((e,t)=>u(ba,{buttonSize:l,...e},String(t))))}),u(re,{size:"text-s-light",color:"text-secondary-text",children:n})]}))),Na=x((({className:e="",description:t,href:n,icon:l,items:a=[],socialMedia:r=[],target:i,title:s,align:o="text-left",version:c="primary",...d})=>u(k,{className:w("relative p-7 min-w-[524px] min-h-[218px] h-full box-border group-data-gray:bg-main-divider/50","border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider",e),version:c,...d,children:p(Xl,{href:n,target:i,children:[u(Mt,{className:"mb-4",title:s,description:t,headlineVersion:"S",isPadding:!1,align:o}),p("div",{className:"w-1/2 h-full flex flex-col flex-1 justify-end",children:[a.length?u(ra,{className:"flex flex-col gap-2",itemClassName:"text-l-light",items:a}):null,r.length?u(va,{className:"pt-10",media:r}):null]}),ya(l)]})}))),ya=e=>p("div",{className:"absolute bottom-0 right-0",children:[e?.icon?u(ot,{image:e}):null,e?.src?u(ot,{image:e}):null]}),wa=x((e=>{const{__html:t="",richVersion:n=""}=e;return u("div",{className:w(n,"md-container"),dangerouslySetInnerHTML:{__html:t}})})),Ca=x((({className:e="",__html:t,richVersion:n="striped",...l})=>u(k,{className:w("p-9 border border-gray min-w-96",e),...l,children:u(wa,{__html:t,richVersion:n})}))),ka=x((({className:e="",isFoldButtonOnTop:t=!1,unfoldedByDefault:n=!1,renderFoldableSection:a,renderFoldButton:i})=>{const[s,o]=l(n),c=r((()=>{o((e=>!e))}),[]),d=a({isUnfolded:s,onToggle:c}),m=i?i({isUnfolded:s,onToggle:c}):null;return p("div",t?{className:e,children:[m,d]}:{className:e,children:[d,m]})})),Sa=x((({className:e="",isUnfolded:t,children:n})=>{const l=s(null);return a((()=>{l.current&&(l.current.style.maxHeight=t?`${l.current.scrollHeight}px`:"")}),[t,n?.length]),u("div",{ref:l,className:`transition-max-h duration-300 overflow-hidden ${l.current||!t?"max-h-0":""} ${e}`,children:n})})),Ia=x((({className:e="",title:t,icon:n,isHighlighting:l,button:a,cardCells:r=[],...i})=>{const s=r.map(Ra),o=s.slice(0,1),c=s.slice(1);return p(k,{className:w("relative border border-gray p-8 flex flex-col",$a(l),e),...i,children:[l?Ma():null,Ta(n),t?u(T,{className:"text-center pt-2",headingType:"h5",title:t}):null,a?u(te,{className:"w-full mt-4",...a}):null,r.length?u(ka,{renderFoldableSection:({isUnfolded:e})=>p("div",{children:[o,u(Sa,{isUnfolded:e,children:c})]}),renderFoldButton:r.length>1?Ba:null}):null]})})),Ta=e=>p("div",{className:"w-[267px] min-w-[267px] self-center",children:[e?.src?u(ot,{image:e}):null,e?.icon?u(ot,{image:e}):null]}),$a=e=>e?"mt-8 pt-20":"mt-20 pt-8",Ba=({isUnfolded:e,onToggle:t})=>p("button",{className:"w-full cursor-pointer text-primary-main pt-5 flex justify-between items-center",onClick:t,children:[u("div",{children:e?"Скрыть":"Подробнее о тарифе"}),u(fe,{className:"text-primary-text",name:e?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16"})]}),Ra=(e,t)=>{const{title:n,description:l,buttons:a}=e;return p("div",{className:"py-5 border-b border-main-divider",children:[n?u("div",{className:"text-secondary-text text-m-light opacity-80",children:e.title}):null,l?u("div",{className:"text-primary-text text-h6 mt-1",children:e.description}):null,a?.length?u("div",{className:"text-primary-main",children:It(a)}):null]},String(t))},Ma=()=>p("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:[u(fe,{iconVersion:"black",name:"HeartIcon",width:"23",height:"22"}),u(ae,{size:"text-s",font:"font-normal",align:"text-center",color:"text-primary-text",children:"ХИТ"})]}),ja="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",_a="border-gray border-solid border",Va="border-main-divider border border-t-0 border-x-0",La="w-[200px] mr-6",za=x((({icon:e,image:t,title:n,link:l})=>p("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${_a} ${ja}`,role:"columnheader",children:[e&&!t?.src&&u(ot,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}),t?.src&&u(ot,{className:"mb-[18px]",image:t}),n?u(T,{headingType:"h4",as:"h3",className:"text-center text-white",title:n}):null,l?.text&&u("div",{className:"mt-auto w-full",children:u(te,{href:l.href,target:l.target,className:"mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:u("div",{className:"text-xs-light font-medium py-[11px]",children:l.text})})})]}))),Pa={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},Da=x((({children:e,activeIndex:t,columnWidth:n,version:l="comparison"})=>u("div",{className:"flex flex-1 overflow-hidden",children:u("div",{className:Pa[l],style:{transform:`translateX(-${t*n}px)`},children:e})}))),Oa=x((({children:e})=>u("div",{className:"self-start flex flex-col",role:"row",children:u("div",{className:"flex",children:e})}))),Aa=x((({colHeaders:e,activeIndex:t})=>p(Oa,{children:[u("div",{className:La,role:"columnheader"}),u(Da,{activeIndex:t,columnWidth:336,children:e.map(((e,t)=>u(za,{...e},String(t))))})]}))),Ea=x((({cell:e,isFirstRow:t,isLastRow:n,isFillGradient:l})=>u("div",{className:`w-80 box-border flex flex-col ${_a} ${n?"border-t-0 rounded-b-md":"border-y-0"} ${l?ja:""}`,role:"cell",children:u("div",{className:`mx-7 h-full ${Va} ${l&&t?"border-t":""} ${n?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>Ha(e,t,l)))})}))),Fa=(e=!1)=>"text-xl m-0 "+(e?"text-white":""),Ua=(e=!1)=>"text-s opacity-80 "+(e?"text-white":"text-secondary-text"),Ha=({label:e,description:t},n,l)=>p("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e?u("h4",{className:Fa(l),children:e}):null,t?u("div",{className:Ua(l),children:t}):null]},String(n)),Xa=(e=!1)=>`text-s py-7 ${Va} w-[200px] mr-6 ${e?"border-b-0":"border-solid"}`,Wa=x((({row:{header:e,data:t},activeIndex:n,isColoredFirstColumn:l,isFirstRow:a,isLastRow:r})=>p(Oa,{children:[e?.title?u("div",{className:Xa(r),children:e.title}):null,t?.length?u(Da,{activeIndex:n,columnWidth:336,children:t.map(((e,t)=>u(Ea,{cell:e,isFirstRow:a,isLastRow:r,isFillGradient:l&&0===t},String(t))))}):null]}))),Ka=x((({rowData:e,isColoredFirstColumn:t,activeIndex:n,controls:l})=>{const{isScrollAvailable:a}=l;return p("div",{className:"relative",children:[e.map(((e,l,{length:a})=>u(Wa,{row:e,isFirstRow:0===l,isLastRow:l+1===a,activeIndex:n,isColoredFirstColumn:t},String(l)))),a?Gt({...l,btnClass:["top-[108px]","top-[44px]"],className:"right-7",isDisabled:!0}):null]})})),Ga=x((({columns:e=[],rowHeaders:t,isShowAllRow:n,visibleRowLength:l,isColoredFirstColumn:a})=>{const r=e?.map((({header:e})=>e||{})),i=e?.map((({data:e})=>e))||[],s=t?.map(((e,t)=>({header:e,data:i.map((e=>e?.[t]||[{}]))}))).slice(0,n?t.length:l),[o,c]=Ht({itemCount:e.length,visibleItemCount:3}),{isScrollAvailable:d}=c;return p("div",{children:[p("div",{role:"table",children:[r?.length?u(Aa,{colHeaders:r,activeIndex:o}):null,s?.length?u(Ka,{rowData:s,isColoredFirstColumn:a,activeIndex:o,controls:c}):null]}),d?u("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),Ja=x((({className:e="",title:t,rowHeaders:n,columns:a,visibleRowLength:i=0,isColoredFirstColumn:s=!1,...o})=>{const[c,d]=l(!i),m=r((()=>d((e=>!e))),[]);return p(k,{className:`py-12 pl-12 overflow-hidden relative ${e}`,...o,children:[u(T,{headingType:"h2",className:"max-w-[47rem] text-center mb-9 mx-auto",title:t}),u(Ga,{columns:a,rowHeaders:n,isShowAllRow:c,isColoredFirstColumn:s,visibleRowLength:i}),i?Ya({isShowAllRow:c,onClick:m}):null]})})),Ya=({isShowAllRow:e,onClick:t})=>u("div",{className:"pr-12",children:p("div",{className:"flex w-full",children:[u("div",{className:La}),u("button",{onClick:t,className:"mt-5 flex-1 border-gray border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main",children:u("div",{className:"font-sans text-xs-light font-medium py-3",children:e?"Скрыть":"Показать все параметры"})})]})}),qa=x((({className:e="",contacts:t,info:n,version:l="secondary",...a})=>p(k,{className:`flex p-12 ${e}`,version:l,...a,children:[n?.length?Za(n):null,t?.length?Za(t):null]}))),Za=e=>u("div",{className:"flex grow basis-0",children:e.map(((e,t)=>Qa({column:e,index:t})))}),Qa=({column:e,index:t})=>e?u("div",{className:"flex flex-col grow basis-0 pr-11 last:pr-0",children:e.map((({title:e="",description:t,additionalDescription:n,button:l},a)=>p("div",{className:"mt-6 first:mt-0",children:[u(Mt,{className:"!p-0",title:e,description:t,headlineVersion:"XS",align:"text-left"}),n?u("div",{className:"mt-1.5 opacity-80",children:u(ae,{size:"text-m",font:"font-light",children:n})}):null,l?u(te,{className:"mt-6",...l}):null]},String(a))))},`col-${String(t)}`):null,er=e=>"Image"===e?.errorContentType&&e?.image?u(ot,{image:e.image}):"Code"===e?.errorContentType&&e.code?u("div",{className:"font-mohave text-title-extra gradient-color-text",children:e.code}):null,tr=x((({className:e="",title:t,subtitle:n,error:l,button:a,...r})=>{return p(k,{className:w("flex flex-col justify-center items-center",(i=a?.text,i?"py-20 pt-3 pb-1":"mb-16 pb-2 mt-24 pt-3"),e),version:"transparent",...r,children:[u("div",{className:"flex justify-center py-20",children:er(l)}),t?u(T,{headingType:"h1",className:"text-left mb-4",title:t}):null,n?u("div",{className:"font-sans text-xl-light mb-7 max-w-[613px] text-center",children:n}):null,a?.text?u(te,{className:"py-4 px-9",version:a?.version,...a,children:a.text}):null]});var i}));var nr;!function(e){e.EUR="EUR",e.USD="USD",e.GBP="GBP",e.AUD="AUD",e.CNY="CNY",e.RUB="RUB"}(nr||(nr={}));const lr={USD:"DollarIcon",EUR:"EuroIcon",GBP:"DollarIcon",AUD:"DollarIcon",CNY:"DollarIcon",RUB:"RoundRubleIcon"},ar=e=>e?sr.format(e):"",rr=(e,t)=>p("td",{className:"pt-4 pl-11",children:[u("div",{children:ar(e)}),u("div",{className:w("font-normal text-sm text-secondary-text",(t||0)>=0?"text-green":"text-red"),children:ar(t)})]}),ir=(e,t="")=>p("td",{className:"pt-4 pl-11",children:[u("div",{children:ar(e)}),u("div",{className:"font-normal text-sm text-green",children:t})]}),sr=new Intl.NumberFormat("ru",{style:"currency",currency:nr.RUB}),or=e=>u("th",{className:"pl-11",children:u(re,{size:"text-m-light",align:"text-left",color:"text-secondary-text",children:e})}),cr=x((({className:e="",currencies:t=[],actuality:n="",officeName:l="",...a})=>{const r=dr(t,4);return p(k,{className:w("font-sans text-primary-text py-10 bg-white",e),...a,children:[p("div",{className:"flex flex-row flex-grow-0 justify-between mx-10 mb-8",children:[u(T,{headingType:"h4",title:"Курс обмена валют в "+l,className:"whitespace-pre-wrap text-h4 mb-5"}),u("div",{className:"pl-11",children:u(re,{size:"text-m-light",align:"text-left",color:"text-secondary-text",children:n})})]}),u("div",{className:"flex flex-row ml-8 mr-14 pt-4 text-left",children:r.length>0?p("table",{className:w("h-fit w-fit",e),children:[u("thead",{children:p("tr",{children:[u("th",{children:u(re,{size:"text-m-light",align:"text-left",color:"text-secondary-text",children:"Валюта"})}),or("Купить"),or("Продать"),or("Лучшая покупка"),or("Лучшая продажа")]})}),u("tbody",{children:r.map((e=>(({title:e,buyPrice:t,buyDifference:n,sellPrice:l,sellDifference:a,buyOfficeName:r,sellOfficeName:i})=>p("tr",{className:"pb-1 text-h6",children:[u("td",{className:"pt-4",children:p("div",{className:"flex items-center",children:[e?u(ot,{image:{icon:lr[e]},width:"24",height:"24"}):null,u("span",{className:"ml-2",children:e})]})}),rr(t,n),rr(l,a),ir(t,r),ir(l,i)]},e))(e)))})]}):null})]})})),dr=(e,t)=>e.sort(((e,t)=>Number(e.id)-Number(t.id))).slice(0,t);var mr;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(mr||(mr={}));const hr=new Intl.NumberFormat("ru",{style:"currency",currency:mr.RUB}),ur=e=>e?hr.format(e):"",pr="text-left text-m-light text-secondary-text",xr=`${pr} pl-11`,gr={USD:"DollarIcon",EUR:"EuroIcon"},br=x((({className:e,exchangeCurrencyItems:t})=>p("table",{className:`h-fit w-fit ${e}`,children:[u("thead",{children:p("tr",{children:[u("th",{className:pr,children:"Валюта"}),u("th",{className:xr,children:"Купить"}),u("th",{className:xr,children:"Продать"})]})}),u("tbody",{children:t.map(fr)})]}))),fr=e=>{const t=e?.currency?.currency;return p("tr",{className:"pb-1 text-h6",children:[u("td",{className:"pt-4",children:p("div",{className:"flex items-center",children:[t?u(ot,{image:{icon:gr[t]},width:"24",height:"24"}):null,u("span",{className:"ml-2",children:t})]})}),u("td",{className:"pt-4 pl-11",children:ur(e?.saleExchangeRate)}),u("td",{className:"pt-4 pl-11",children:ur(e?.buyExchangeRate)})]},t)},vr=x((({className:e="",address:t})=>p("div",{className:`flex ${e}`,children:[u(ot,{image:{icon:"GpsIcon"},width:"24",height:"24"}),p("div",{className:"ml-3",children:[t?u("p",{className:"text-primary-main m-0 mb-1 text-l",children:t}):null,u("p",{className:"text-secondary-text m-0 text-m",children:"Курс указан для заданного офиса"})]})]}))),Nr=(e,t,n)=>{const l=Number(yr(e))*Math.pow(t,n?-1:1);return Number.isInteger(l)?l:((e,t=2)=>{const n=10**t;return Math.round(parseFloat(String(e))*n)/n})(l)},yr=e=>e.replace(/[^\d.,]/g,"").replace(",","."),wr=e=>{return(t=[[e=>e.value!==mr.RUB&&e.oppositeValue!==mr.RUB,()=>e.handleConvert(e.value,mr.RUB)],[e=>e.value===mr.RUB&&e.oppositeValue===mr.RUB,()=>e.handleConvert(e.value,mr.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,n]=t.find((([t])=>t(e)))||[];return n})(e)?.();var t};function Cr(e){const{placeholder:t,rates:n,selected:l,value:a,setValue:r,setSelected:i}=e,s=n.map((e=>({key:e?.currency?.currency??"",text:e?.currency?.currency??""}))),o={key:l,text:l};return p("div",{className:"relative flex",children:[u(se,{className:"shrink-0 text-l w-full appearance-none mr-[-90px]",placeholder:t,type:"text",value:a,onChange:r}),s.length?u(ye,{isBorder:!1,onChange:e=>i(e.key),options:s,value:o}):null]})}const kr=x((({className:e="",currencyRatesBuy:t,currencyRatesSell:n,button:a})=>{const[i,s]=l({inputSell:"",inputBuy:"",selectSell:t?.[0]?.currency?.currency||mr.RUB,selectBuy:n?.[0]?.currency?.currency||mr.USD}),o=r((e=>s((t=>({...t,...e})))),[]);return p("div",{className:`grid gap-[18px] pt-2 ${e}`,children:[Cr({placeholder:"Хочу продать",rates:n,selected:i.selectSell,setSelected:Sr(i,o,n),value:i.inputSell,setValue:e=>Tr(o,n)(e,i.selectSell,i.selectBuy)}),Cr({placeholder:"Получу",rates:t,selected:i.selectBuy,setSelected:Ir(i,o,t),value:i.inputBuy,setValue:e=>$r(o,t)(e,i.selectBuy,i.selectSell)}),a?.text?u(te,{className:"py-4 mr-1",version:a?.version,...a,children:a.text}):null]})})),Sr=(e,t,n)=>l=>{t({selectSell:l}),wr({value:l,oppositeValue:e.selectBuy,handleConvert:(l=e.selectSell,a=e.selectBuy)=>{Tr(t,n)(e.inputSell,l,a)}})},Ir=(e,t,n)=>l=>{t({selectBuy:l}),wr({value:l,oppositeValue:e.selectSell,handleConvert:(l=e.selectBuy,a=e.selectSell)=>$r(t,n)(e.inputBuy,l,a)})},Tr=(e,t)=>(n,l,a)=>{e({inputSell:yr(n),selectBuy:a});const r=t.find((e=>e.currency?.currency===a))?.buyExchangeRate||t.find((e=>e.currency?.currency===l))?.saleExchangeRate;r&&e({inputBuy:String(Nr(n,r,l===mr.RUB)||"")})},$r=(e,t)=>(n,l,a)=>{e({inputBuy:yr(n),selectSell:a});const r=t.find((e=>e.currency?.currency===a))?.saleExchangeRate||t.find((e=>e.currency?.currency===l))?.buyExchangeRate;r&&e({inputSell:String(Nr(n,r,l===mr.RUB)||"")})};const Br=async e=>{const t=await Rr(),n=t?.code||"000";return{region:t,exchangeRates:await Mr(e,n)}},Rr=async()=>{try{return await j("/api/v1/region",{method:"GET"})}catch(e){return console.log(e),{}}},Mr=async(e,t)=>{try{return await j(e+`?regionCode=${t}`,{method:"GET"})}catch(e){return console.log(e),{}}},jr=x((({className:e="",title:t="Курсы обмена валют",button:n,...l})=>{const{exchangeRates:a}=function(){const{data:e}=B("/api/v1/exchangerates",Br);return e||{}}(),r=_r(a?.exchangeRate?.currencies),i=r.filter((e=>e.buyExchangeRate));i.unshift({currency:{currency:mr.RUB}});const s=r.filter((e=>e.saleExchangeRate));return s.push({currency:{currency:mr.RUB}}),u(k,{className:`p-9 box-border min-h-80 ${e}`,...l,children:u(Kl,{title:u(T,{headingType:"h4",title:t,className:"whitespace-pre-wrap text-h4 mb-5"}),children:p("div",{className:"flex",children:[p("div",{className:"mr-14 pt-4",children:[r?u(br,{className:"mb-[30px]",exchangeCurrencyItems:r}):null,u(vr,{address:a?.address})]}),r.length&&i.length&&s.length?u(kr,{className:"grow",currencyRatesBuy:i,currencyRatesSell:s,button:n}):null]})})})})),_r=e=>e?.filter((e=>1===e?.currency?.id||2===e?.currency?.id))||[],Vr=x((({className:e="",label:t,icon:n,dataTheme:l="",disabled:a=!1,onClick:r})=>p("button",{className:w("flex justify-center w-full px-0 py-5 border border-transparent outline-none focus:border-primary-text",a?"bg-main-divider text-main-disabled hover:bg-main-divider":"bg-primary-main text-white hover:bg-primary-hove",e),onClick:r,disabled:a,"data-theme":l,children:[u("span",{className:"text-h4 pr-3",children:t}),n?u(ot,{image:{icon:n,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20"}):null]}))),Lr=({isUnfolded:e,onToggle:t})=>u(Vr,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:["Развернуть","Скрыть"][Number(e)],onClick:t}),zr=["ArrowDownIcon","ArrowUpIcon"],Pr="grid grid-cols-12 gap-1 border-box",Dr=x((({label:e="",filtrationState:t={},topItemsCount:n=0,block:l,notFound:a,...r})=>{const i=l?.blocks?.filter((e=>{return n=t,l=e.content||{},Object.entries(n).map((([e,t])=>Array.isArray(t)?((e,t)=>n=>void 0===t[e]||t[e]?.every((t=>n[e]?.includes(t))))(e,n):((e,t)=>n=>void 0===t[e]||t[e]===n[e])(e,n))).every((e=>e(l)));var n,l}))||[],[s,o]=n>0?[i.slice(0,n),i.slice(n)]:[i,[]];return p("div",{children:[u("div",{className:w(i.length?"hidden":"block"),children:a?Or(a):null}),p("div",{className:w(i.length?"":"hidden"),children:[u("div",{className:w("mb-1",Pr),children:ul(s,{...r.options,parent:l})}),u(ka,{renderFoldableSection:({isUnfolded:e})=>u(Sa,{className:w(Pr,e?"mb-1":""),isUnfolded:e,children:ul(o,{...r.options,parent:l})}),renderFoldButton:({isUnfolded:t,onToggle:l})=>u(Vr,{className:w(n<1?"hidden":""),disabled:!o?.length,label:e,icon:zr[Number(t)],dataTheme:r.options?.page?.colorPalette,onClick:l})})]})]})}));function Or({title:e,description:t}){return p("div",{className:"bg-white py-20",children:[e?u("div",{className:"mb-2",children:u(ae,{align:"text-center",children:u(re,{size:"text-h4",children:e})})}):null,t?u(ae,{size:"text-xl",font:"font-light",align:"text-center",children:t}):null]})}const Ar=x((({value:e,onChange:t,items:n=[],multiple:l})=>n.map((n=>u(Te,{text:n.title,value:[e].flatMap((e=>e)).includes(n.value),onChange:()=>(n=>{if(l){const l=e?.includes(n);t&&t(l?e?.filter((e=>e!==n)):[...e||[],n])}else t&&t(e===n?void 0:n)})(n.value),type:l?"checkbox":"radio"},n.value))))),Er=(e,t)=>n=>{const l=e[n],a=l?.type;return"array"===a?Fr(n,t)(l):null},Fr=(e,t)=>n=>{const l=n?.items?.enum?.map(((e,t)=>({value:e,title:n?.items?.enumNames?.[t]||""})))||[];return p("div",{children:[n?.title?u("div",{className:"mb-4",children:u(re,{size:"text-m",font:"font-light",color:"text-secondary-text",children:n.title})}):null,u(Ar,{items:l,multiple:!0,...t(e)})]},e)},Ur=x((({className:e,filtrationSchema:t={},resetButton:n,...a})=>{const{formState:i,register:o,resetForm:c}=((e={})=>{const[t,n]=l(e),a=s({}),i=r((()=>n({})),[]);return{formState:t,register:e=>a.current?(a.current[e]||=t=>{n((n=>({...n,[e]:t})))},{value:t?.[e],onChange:a.current[e]}):{},resetForm:i}})();return p(k,{className:w(e),version:"transparent",...a,children:[p("form",{className:"flex justify-between bg-white p-9 mb-1",children:[u("div",{className:"flex gap-11",children:Object.keys(t).map(Er(t,o))}),n?u("div",{children:u(te,{className:"w-72",onClick:c,...n})}):null]}),u(Dr,{filtrationState:i,...a})]})}));function Hr(e,t={}){const{data:n}=B(`/wcms-resources/${e}.json`,j,{fallback:t});return n||{}}Ur.childrenTypes=["ProductTile"],Ur.childSchema=e=>e?.filtrationSchema||{};const Xr={"bg-white":"color",transparent:"white"},Wr={"bg-white":"text-primary-main",transparent:"text-white"},Kr=(e,t,n)=>u(ot,t?.src?{image:t,className:Wr[e],width:n?.width,height:n?.height,pathPrefix:"/wcms-resources/"}:{image:{icon:t?.icon||"LogoIcon",iconVersion:Xr[e]},className:Wr[e],width:n?.width,height:n?.height}),Gr={"bg-white":"text-primary-text",transparent:"text-white"},Jr=(e,t,n)=>u("span",{className:`${Gr[t]} ml-2.5 font-medium ${n||""}`,children:e||"Россельхозбанк"}),Yr=x((({className:e="",href:t,logo:n,children:l=n?.title,targetBlank:a,bgColor:r="bg-white",showTitle:i=!0})=>p("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"/",target:a?"_blank":"_self","aria-label":n?.title||"Россельхозбанк",children:[Kr(r,n?.image,{width:"40",height:"45"}),i?Jr(l||n?.title,r):null]}))),qr=x((({className:e,onClick:t})=>u("button",{className:w("visible peer-placeholder-shown:invisible w-6 h-6 p-1 bg-transparent border-none",e),onClick:t,title:"Закрыть",children:u(ot,{image:{icon:"CloseIcon"},width:"24",height:"24"})})));function Zr(e){throw new Error(e)}function Qr({onOpen:e,onClose:t}={}){a((()=>f.subscribe("dialog",(n=>{switch(n.type){case"open":e&&e(n);break;case"close":t&&t();break;default:Zr(n)}}))),[e,t])}function ei(e,...t){return e.map(((e,n)=>[e,...t.map((e=>e[n]))]))}const ti=e=>t=>{if(e===t)return 1;if(!e||!t)return 0;const{m:n,s1Matches:l,s2Matches:a}=function(e,t){const n=Math.max(0,Math.floor(Math.max(e.length,t.length)/2)-1),l=new Array(e.length),a=new Array(t.length);let r=0;for(let i=0;i<e.length;i++){const s=Math.max(0,i-n),o=Math.min(i+n,t.length-1);for(let n=s;n<=o;n++)l[i]||a[n]||e[i]!==t[n]||(r++,l[i]=!0,a[n]=!0)}return{m:r,s1Matches:l,s2Matches:a}}(e,t);if(0===n)return 0;const r=function(e,t,{s1Matches:n,s2Matches:l}){let a=0;for(let r=0,i=0;r<e.length;r++){if(!n[r])continue;let s=i;for(;s<t.length;s++)if(l[s]){i=s+1;break}e[r]!==t[s]&&a++}return a}(e,t,{s1Matches:l,s2Matches:a}),i=(n/e.length+n/t.length+(n-r/2)/n)/3,s=i>.7?.1*function(e,t){let n=0;for(;e[n]===t[n]&&n<4;)n++;return n}(e,t):0;return i+s*(1-i)};const ni=(e,t)=>(n,l)=>{for(const[a,r]of l)n.set(a,e(n.get(a)||t,r));return n},li=e=>e.toLowerCase().split(/[^0-9a-zа-я-]+/).filter((e=>e.length>=3&&!/[0-9a-z]/.test(e))),ai=e=>t=>e.map((([e,n])=>[ti(t)(e),n])).filter((([e])=>e>=.8)).map((([e,t])=>ii(t,e))).reduce(ni(Math.max,0),new Map),ri=e=>t=>{return ei(t,t.map((({title:e})=>e)).map((e=>t=>{const n=li(t||"");return n.length?((e=[])=>e.reduce(((e,t)=>e+t),0))(e.map((e=>vn(n.map(ti(e)))))):0})(e))).sort((l=([,e])=>e,n=(e,t)=>l(e)-l(t),(e,t)=>-n(e,t))).map((([e])=>e));var n,l},ii=(e,t)=>new Map(e.map((e=>[e,t]))),si=({basePathList:e=["/"],initialQuery:t="",wasOpened:n})=>{const[r,s]=l(t||"");a((()=>{null!=t&&s(t)}),[t]);const o=i((()=>e.map((e=>n?e:null))),[n,...e]),{data:c}=B(o,oi),[d,m]=l(null);return((e,t,n=300)=>{a((()=>{const t=setTimeout(e,n);return()=>{clearTimeout(t)}}),t)})((()=>{c&&m(c.map((e=>t=>{const{corpus:n,dictionary:l}=t||{};if(!(e&&n?.length&&l&&Object.keys(l).length))return[];const a=li(e);if(!a.length)return[];const r=Object.entries(l),i=[...a.map(ai(r)).reduce(ni(((e,t)=>e+t),0),new Map).entries()].filter((([,e])=>e>=.799*a.length)).map((([e])=>n[e]));return ri(a)(i)})(r)))}),[c,r]),[d,{value:r,onChange:s}]},oi=async(...e)=>(await Promise.allSettled(e.map((e=>M(D(e,"/","search.index.json")))))).map((e=>"fulfilled"===e.status?e.value:{})),ci=x((({className:e,isOpened:t,head:n,children:l,onClose:r})=>(a((()=>{const e=({key:e})=>{"Escape"===e&&r&&r()};return globalThis.document?.addEventListener("keydown",e),()=>{globalThis.document?.removeEventListener("keydown",e)}}),[r]),t?u("div",{className:w("fixed inset-0 bg-white text-l-light z-50 overflow-x-hidden overflow-y-scroll no-scrollbar",e),role:"dialog",children:p("div",{className:"relative container pb-12 min-h-full",children:[p("div",{className:"sticky bg-white pt-6 top-0",children:[u(qr,{className:"absolute top-3 -right-6",onClick:r}),n]}),l]})}):null)));function di(e=!1){const[t,n]=l(e),a=r((()=>n(!0)),[]),i=r((()=>n(!1)),[]),s=r((()=>n((e=>!e))),[]);return[t,{setValue:n,setTrue:a,setFalse:i,toggle:s}]}function mi(e){const[t,{setTrue:n,setFalse:a}]=di(),[i,o]=l({id:e}),c=s(t);c.current||=t;Qr({onOpen:r((t=>{t.id===e?(o(t),n()):a()}),[e]),onClose:a});const d=r((()=>{a(),f.fire("dialog",{type:"close"})}),[]);return{...i,isOpened:t,wasOpened:c.current,onClose:d}}const hi=x((({className:e,topItems:t})=>{const n=H({isRemote:!0});return u("div",{className:w("flex items-start justify-between",e),children:t?.map(n).map(ui)})})),ui=(e,t)=>{const{text:n,items:l,href:a,target:r,onClick:i}=e;return p("div",{className:"flex flex-col gap-3.5 w-1/4",children:[u("a",{className:"leading-5 text-l text-primary-text hover:text-primary-main no-underline",href:a,target:r||"_self",onClick:i,children:n||`Раздел ${t}`}),l?.map(((e,t)=>u(pi,{...e,basePath:a,index:t},String(t))))]},String(t))},pi=x((({text:e,index:t,basePath:n,...l})=>{const a=H({isRemote:!(!c.BASE_PATH||!n)&&!c.BASE_PATH.startsWith(n),basePath:n}),{href:r,target:i,onClick:s}=a(l);return u("a",{className:w("text-l-light text-secondary-text hover:text-primary-main no-underline","overflow-x-hidden overflow-ellipsis whitespace-nowrap"),href:r,target:i||"_self",onClick:s,children:e||`Раздел ${t}`})})),xi=x((({className:e,isMobile:t,value:n,autoFocus:l,onChange:a,onFocus:i})=>{const s=r((e=>{a&&a(e.target?.value||"")}),[a]);return p("div",{className:w("font-sans relative",e),role:"form",children:[u("div",{className:"absolute h-full flex items-center pl-4 pointer-events-none",children:u(ot,{image:{icon:"LoupeIcon"},width:"24",height:"24"})}),u("input",{className:w("h-12 pl-12 w-full text-l text-black outline-none box-border","border border-solid rounded-md border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text",t?"":"h-full"),value:n,type:"text",name:"search-bar-input",placeholder:"Поиск по сайту",autoFocus:l,onChange:s,onFocus:i})]})})),gi="search",bi=x((({topItems:e})=>{const t=mi(gi),n=e?.map((e=>e.href||"/")),[l,r]=si({basePathList:n,initialQuery:t.message,wasOpened:t.wasOpened}),s=i((()=>fi(e)(l)),[e,l]);return a((()=>function(e){for(const t of e.filter((({items:e})=>e?.length)))console.group(t.text),console.table(t.items,["text","href"]),console.groupEnd()}(s)),[s]),u(ci,{...t,head:u(xi,{className:"my-5",autoFocus:!0,...r}),children:u(hi,{topItems:s})})})),fi=e=>t=>e?.length&&t?.length?ei(e,t).map((([e,t])=>({...e,items:t?.map((({title:e,uri:t})=>({text:e,href:D("/",t)})))}))):[];const vi=x((({className:e,isMobile:t})=>{const[n,a]=l(""),i=r((()=>a("")),[]);Qr({onClose:i});const{open:s}=V(gi),o=r((e=>{a(e),Ni(e)&&s(e)}),[]);return p("div",{className:e,children:[u(xi,{isMobile:t,value:n,onChange:o}),t?u(qr,{className:"absolute top-2 right-3",onClick:i}):null]})})),Ni=e=>e&&e.length>=3,yi=x((e=>u(vi,{...e}))),wi=x((({className:e="",items:t,hasButton:n})=>p("div",{className:e,children:[t?.length?t.map(Ci):null,n?u(te,{version:"primary",className:"mb-6 w-full",href:"https://www.rshb.ru/feedback/question/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),Ci=(e,t)=>{const{type:n,text:l,description:a}=e;return p("div",{className:"mb-4",children:[u("div",{children:ki(n,l)}),u("div",{className:"mt-1 text-s-light text-secondary-text",children:a})]},String(t))},ki=(e,t="")=>{switch(e){case"tel":return u("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${Si(t)}`,children:t});case"email":return u("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return u("span",{children:t})}},Si=e=>e.replaceAll(/\D/g,""),Ii=x((({className:e="",index:t,text:n,...l})=>{const a=H(),{href:r,target:i,onClick:s}=a(l);return u("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:r,target:i,onClick:s,children:n||`Документ ${t}`})})),Ti=x((({className:e="",links:t})=>u("div",{className:e,children:t?.length?u("div",{className:"flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider",children:t.map(((e,t)=>u(Ii,{index:t,className:"text-l-light max-w-[292px]",...e},String(t))))}):null}))),$i=x((({className:e="",index:t,...n})=>{const l=H({isRemote:!0}),{href:a,target:r,text:i,onClick:s}=l(n);return u("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:a,target:r,onClick:s,children:i||`Документ ${t}`})})),Bi=x((({className:e="",links:t})=>p("div",{className:e,children:[u("div",{className:"pt-5",children:u("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?u("div",{className:"flex justify-start items-start gap-5 pt-2.5",children:t.map(((e,t)=>u($i,{index:t,...e},String(t))))}):null]}))),Ri="w-[204px]",Mi=x((({className:e="",...t})=>{const n=t.options?.page?.fallback,l=Hr(c.SITEMAP||"sitemap",n),{documents:a,relatedEnterprises:r,contacts:i,socialMedia:s,mobileApps:o,logo:d}=Hr(c.FOOTER||"footer",n);return p(k,{tag:"footer",className:`p-9 ${e}`,...t,children:[p("div",{className:"flex items-stretch gap-[54px] pb-[30px] xl:gap-8",children:[u(Yr,{className:Ri,logo:d}),u(yi,{className:"grow"})]}),p("div",{className:"flex items-stretch gap-[54px] xl:gap-8",children:[p("div",{className:"w-[204px] flex flex-col shrink-0 overflow-hidden",children:[u(wi,{items:i,hasButton:!0}),u(va,{media:s,children:"Соцсети"}),u(va,{className:"mt-6",media:o,children:"Мобильное приложение"})]}),u(hi,{className:"flex-grow",topItems:l?.topItems})]}),u(Ti,{className:"mt-[98px]",links:r}),u(Bi,{links:a})]})})),ji=x((({className:e="",title:t,description:n,calendar:l,...a})=>p(k,{className:`p-12 ${e}`,...a,children:[u(Mt,{className:"!p-0 mb-4",title:t,description:n,headlineVersion:"M"}),l?_i(l):null]}))),_i=e=>{const t=100/(e.reduce(((e,t)=>t?.month?.length?e+t.month.length:e),0)||1),n=e.filter((e=>e?.month?.length)).map((e=>({...e,flexBasis:`${e?.month?.length?e.month.length*t:""}%`})));return p("div",{className:"w-full flex flex-col justify-center mt-13",children:[u("div",{className:"flex w-full mb-3 text-h6 text-center",children:n.map((e=>Vi(e,t)))}),u("div",{className:"flex w-full",children:n.map(((e,t)=>p("div",{className:"pr-[11px] mr-3 border-r border-main-divider last:border-r-0 last:pr-0 last:mr-0",style:{flexBasis:e.flexBasis},children:[u("div",{className:"flex",children:Li(e)}),p("div",{className:"text-s-light text-primary-text mt-3",children:[u("span",{children:e.text})," ",u("span",{className:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},Vi=(e,t)=>e.month?.map(((e,n)=>u("div",{style:{flexBasis:`${t}%`},children:e.text},`monthName-${n}`))),Li=e=>e.month?.map((e=>e.image?.src?u("div",{className:"h-[207px] border-r pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0",children:u(ot,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),zi=864e5;function Pi(e,t,n=globalThis?.localStorage){const l=r((async(...l)=>{const a=`async:${e}`,r=function(e){const{data:t=null,timestamp:n=null}=e?JSON.parse(e):{};return t&&Date.now()-n<zi?t:void 0}(n.getItem(a));if(r)return r;const i=await t(...l);return n.setItem(a,JSON.stringify({data:i,timestamp:Date.now()})),i}),[e,t]);return B(e,l)}const Di=()=>{const e=globalThis.localStorage?.getItem("location");try{return e?JSON.parse(e):null}catch(e){return null}},Oi=e=>({href:t})=>P(L(t)?e.href:e.pathname).startsWith(P(t));const Ai=x((({className:e,searchTerm:t,onSearch:n})=>p("form",{className:`font-sans relative ${e}`,children:[u("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:t?null:u("label",{htmlFor:"search-bar-input",className:"text-secondary-text ",children:"Поиск по филиалам"})}),u("input",{id:"search-bar-input",className:"h-12 pl-4 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text",value:t,onChange:e=>n(e.target.value.toLowerCase()),type:"text",name:"location-search-bar-input"})]}))),Ei="location",Fi=x((({currentLocation:e,onChangeLocation:t,foreignOffices:n})=>{const a=mi(Ei),[i,s]=l(""),o=Hi(function(){const{data:e}=B("/api/v1/regions",j);return e||[]}()).sort(((e,t)=>e.name.localeCompare(t.name))),c=((e,t)=>{const n=new Map;for(const l of e){const e=t(l),a=n.get(e)||[];n.set(e,[...a,l])}return n})(o,Ui),d=r((e=>{a.onClose&&a.onClose(),t&&t(e)}),[a.onClose,t]);return p(ci,{...a,head:p("div",{children:[u(Xi,{currentLocation:e,onChangeLocation:d}),u(Ai,{onSearch:s,searchTerm:i,className:"mb-7"})]}),children:[i&&i.length>=3?u("div",{children:o.filter((({name:e})=>e&&ti(e.toLowerCase())(i.toLowerCase())>=.8)).map(Ki(d))}):u("div",{className:"columns-5",children:Array.from(c.entries()).map(Wi(d))}),u(Gi,{foreignOffices:n})]})})),Ui=e=>e.name?.charAt(0)||"",Hi=e=>e.map((e=>({...e,name:e.name?.replace(/республика|область|край'/gi,"").trim()||""}))),Xi=x((({currentLocation:e,onChangeLocation:t})=>e?p("div",{className:"mb-4",children:[u(re,{size:"text-l",font:"font-light",children:"Сейчас выбран: "}),u("button",{className:"cursor-pointer",onClick:()=>{t&&t(e)},children:u(re,{color:"text-primary-main",children:e.name})})]}):null)),Wi=e=>([t,n])=>p("div",{className:"break-inside-avoid mb-7 w-[224px]",children:[u("div",{className:"mb-2.5",children:u(re,{size:"text-h6",children:t})}),n.map(Ki(e))]},t),Ki=e=>t=>u("div",{className:"mb-1",children:u("button",{className:"cursor-pointer hover:text-primary-hover",onClick:()=>{e&&e(t)},children:t.name||""})},t.id),Gi=x((({foreignOffices:e})=>e?.length?p("div",{className:"border-t border-main-divider mt-7 pt-7",children:[u("div",{className:"mb-4",children:u(re,{size:"text-m",font:"font-light",color:"text-secondary-text",children:"Представительства за рубежом:"})}),u("div",{className:"flex gap-10",children:e.map(((e,t)=>u(Ji,{...e},String(t))))})]}):null)),Ji=x((({icon:e,...t})=>{const n=H(),{text:l,target:a,href:r,onClick:i}=n(t);return p("div",{className:"flex gap-x-3",children:[e?u(ot,{pathPrefix:"/wcms-resources/",image:e}):null,l?u("a",{className:"hover:text-primary-hover",href:r,target:a,onClick:i,children:l}):null]})})),Yi=x((({className:e="",active:t,flat:n,children:l,...a})=>{const r=H({isRemote:!0}),{href:i,target:s,text:o,onClick:c}=r(a);return u("a",{className:w(qi(t,n),e),href:i,target:s,onClick:c,rel:"noopener noreferrer","aria-label":o,children:u("span",{className:Zi(t,n),children:o||l})})})),qi=(e=!1,t=!1)=>w("inline-block border border-solid bg-transparent text-center no-underline",e?"rounded-md border-primary-main group-data-transparent:border-white":"border-transparent",t?"":"px-4 py-2"),Zi=(e=!1,t=!1)=>w("font-sans text-s-light",e?"text-primary-main":w(t?"text-primary-text":"text-secondary-text","hover:text-primary-main"),"group-data-transparent:text-white group-data-transparent:hover:text-primary-hover"),Qi={default:"w-6 h-6",large:"w-12 h-12"},es=x((({className:e,isRounded:t,buttonSize:n="default",isGrayBg:l=!1,disabled:a,ariaLabel:r,image:i,onClick:s})=>u("button",{className:w("group/btn border-0 flex shrink-0 items-center",l?"p-3 rounded-full":"p-0 bg-inherit",l&&!t?"bg-main-divider":"",t?"w-8 h-8 text-secondary-light hover:text-secondary-hove":`${Qi[n]} text-primary-text hover:text-primary-main`,"group-data-transparent:text-white",e),type:"button",disabled:a,"aria-label":r,onClick:s,children:u(ot,{image:i,className:w("h-full",t?"bg-main-divider/20 rounded-full":""),imageClassName:"group-hover/btn:text-primary-hover group-hover/btn:invert-0"})}))),ts=x((({className:e,version:t,locationName:n,officesLink:l})=>{const a="transparent"===t?"white":"black",{open:i}=V(Ei),s=r((()=>i()),[]),{open:o}=V(gi),c=r((()=>o()),[]);return p("div",{className:w("flex items-center gap-5",e),children:[u(Yi,{flat:!0,href:"#",text:n,onClick:s}),l?u(Yi,{flat:!0,href:l,text:"Офисы и банкоматы"}):null,u(es,{image:{icon:"LoupeIcon",iconVersion:a},ariaLabel:"Поиск",onClick:c})]})})),ns=x((({className:e="",items:t,activeItem:n})=>{const a=H(),[i,s]=l(!1),o=r((()=>s((e=>!e))),[]),c=ge(r((()=>s(!1)),[]));return p("div",{className:w(i?"bg-white rounded-md shadow-blue-gray":"",e),ref:c,children:[u("button",{className:"group/btn flex justify-between items-center h-6","aria-label":""+(i?"Скрыть другие разделы":"Показать другие разделы"),onClick:o,children:Array(3).fill(null).map(((e,t)=>u("div",{className:"w-[3px] h-[3px] rounded mr-1 bg-primary-text group-hover/btn:bg-primary-hover group-data-transparent:bg-white"},String(t))))}),u("div",{className:w("absolute flex flex-col rounded-md bg-white p-6 pb-2",i?"":"hidden"),"aria-hidden":!i,children:t?.map(((e,t)=>{const{text:l,...r}=e;return u("a",{className:w("text-l-light pb-4 hover:text-primary-main",e===n?"text-primary-main":""),...a(r),children:l},e.href||String(t))}))})]})})),ls=x((({className:e="",active:t,dataItemName:n,children:l,...a})=>{const r=H(),{href:i,target:s,text:o,onClick:c}=r(a);return p("a",{className:w("relative inline-block bg-transparent text-center no-underline",e),href:i,target:s,"data-item-name":n,onClick:c,children:[u("span",{className:as(t),children:o||l}),t?u("div",{className:"absolute left-0 right-0 -bottom-3 h-0.5 bg-primary-main group-data-transparent:bg-transparent"}):null]})})),as=(e=!1)=>w("font-sans text-l-light",e?"text-primary-main":"text-primary-text hover:text-primary-main","group-data-transparent:text-white group-data-transparent:hover:text-primary-hover"),rs=x((({observerOptions:e,onVisibilityChange:t,children:n,className:l,...a})=>{const i=v(r((e=>{if(!e.length||!t)return;const n=e[e.length-1];t(n.isIntersecting)}),[t]),e);return u("span",{ref:i,className:l,children:u(ls,{...a,children:n})})})),is=e=>globalThis[e];function ss(e,t){const[n,i]=l(),s=r((()=>i(is(e))),[e]);return a((()=>{const n=document.getElementById(t);if(!n){const e=document.createElement("script");return e.src=t,e.async=!0,e.id=t,e.addEventListener("load",s),document.head.appendChild(e),()=>{document.head.removeChild(e),i(void 0)}}if(!is(e))return n.addEventListener("load",s),()=>{n.removeEventListener("load",s)};s()}),[e,t]),n}const os={personal:"//chat.mes.rshb.ru/assets/js/webchat_rshb",business:""},cs=x((e=>{const[t,{setTrue:n}]=di();return t?u(ds,{...e}):ms({...e,onClick:n})})),ds=x((({chat:e="personal",...t})=>((e=>{a((()=>globalThis.localStorage?.setItem("webchat-keep-open",String(Date.now()))),[]),ss("chatbot",os[e])})(e),ms(t)))),ms=({className:e,iconVersion:t,onClick:n})=>u(es,{className:w("text-page__btn-chat",e),image:{icon:"HeadphonesIcon",iconVersion:t},ariaLabel:"Чат",onClick:n,buttonSize:"large",isGrayBg:!0}),hs={default:"px-5 bg-main-divider rounded hover:text-primary-main",transparent:"text-white hover:text-primary-hover"},us=x((({version:e,internetBankUrl:t})=>t?u(te,{href:t,ariaLabel:"Интернет-банк",target:"_blank",className:w("py-3 ml-3 text-l font-light whitespace-nowrap hover:text-primary-main",hs["transparent"===e?"transparent":"default"]),children:"Интернет-банк"}):null)),ps=x((({subItems:e=[],version:t,internetBankUrl:n})=>{const a="transparent"===t?"white":"black",r=(e=>(t=[])=>{const n=t?.filter(Oi(e));return n?.length?fn((e=>e.href?.length||0))(n):void 0})(U())(e),[o,d]=l(e.length),m=e.slice(o),h=s(null),x={rootRef:h},g=i((()=>e.map(((e,t)=>e=>{d(e?xs(t):gs(t))}))),[e]);return p("nav",{className:"relative mt-3 flex items-center justify-between",children:[u("div",{ref:h,className:"overflow-hidden whitespace-nowrap pb-3 mt-2",children:e.map(((e,t)=>u(rs,{className:w("ml-8 first:ml-0",o-1<t?"invisible":""),active:e===r,observerOptions:x,onVisibilityChange:g[t],...e},String(t))))}),m.length?u(ns,{className:"relative w-auto z-40",items:m,activeItem:r}):null,c.CHAT_BOT?u(cs,{className:"ml-9",iconVersion:a,chat:c.CHAT_BOT}):null,u(us,{version:t,internetBankUrl:n})]})})),xs=e=>t=>Math.max(t,e+1),gs=e=>t=>Math.min(t,e),bs={"bg-white":"primary",transparent:"transparent"},fs=x((({bgColor:e="bg-white",className:t,showSubMenu:n=!0,version:i=bs[e],...s})=>{const o=U(),{topItems:d,logo:m,defaultLocation:h,foreignOffices:x,officesLink:g,internetBankUrl:b}=Hr(c.SITEMAP||"sitemap",s.options?.page?.fallback),f=d?.find((e=>Oi(c.BASE_PATH?{pathname:c.BASE_PATH}:e))(o)),[v,N]=function(e="Москва"){const t=Di(),[n,i]=l(t?.region??{name:e}),{data:s}=Pi("/api/v1/region",j);return a((()=>{i(t?.region&&t?.manual?t.region:s||{name:e})}),[s]),[n,r((e=>{globalThis.localStorage?.setItem("location",JSON.stringify({manual:!0,region:e})),i(e)}),[])]}(h);return p(k,{tag:"header",className:w("pt-6 px-20",n&&f?.items?.length?"pb-4":"pb-5",t),version:i,...s,children:[p("div",{className:"container",children:[p("div",{className:"flex items-center",children:[u(Yr,{className:"mr-8",bgColor:e,logo:m}),d?.map(((e,t)=>u(Yi,{active:e===f,...e},String(t)))),u(ts,{version:i,className:"ml-auto",locationName:v.name,officesLink:g})]}),u("div",{className:w("mt-6 h-px bg-main-divider","transparent"===i?"opacity-30":"")}),n&&f?.items?.length?u(ps,{subItems:f.items,version:i,internetBankUrl:b}):null]}),u(bi,{topItems:d}),u(Fi,{currentLocation:v,foreignOffices:x,onChangeLocation:N})]})})),vs={XXL:"gap-12",XL:"gap-10",L:"gap-8",M:"gap-4",S:"gap-2",XS:"gap-1","":""},Ns=x((({className:e="",gap:t="XS",isPadding:n=!1,version:l="transparent",isTheme:a=!1,...r})=>u(k,{className:w("relative","grid grid-cols-12",n?"p-12":"",vs[t],e),version:l,isTheme:a,...r,children:pl(r)})));Ns.childrenTypes={exclude:["HorizontalLayout"]};const ys=x((e=>{const{className:t,image:n,...l}=e;return u(k,{className:t,...l,children:u(ot,{image:n})})})),ws=x((({className:e="",cards:t=[],button:n})=>{const[a,i]=l(0),s=r((e=>i(e)),[]),o=t.length,[c,d]=Ht({itemCount:o,visibleItemCount:2}),{canDec:m,canInc:h}=d,x=t[c]?.href;return p("section",{role:"listitem",className:`min-w-full text-center ${e}`,children:[p("div",{className:"relative overflow-hidden",children:[o?Cs({activeIndex:c,cards:t,selectedCardIndex:a,onClick:s}):null,Gt({...d,btnClass:["left-12","right-12"],className:"top-[62px]"}),m?u("div",{className:"absolute top-0 left-0 h-full w-[136px] bg-opacity-from-white"}):null,h?u("div",{className:"absolute top-0 right-0 h-full w-[136px] bg-opacity-to-white"}):null]}),u(te,{className:"w-60 text-center",version:"primary",...n,href:x})]})}));function Cs({activeIndex:e,cards:t,selectedCardIndex:n,onClick:l}){const a=460*e,r=t.length>2?"justify-start":"justify-center";return u("div",{style:{transform:`translateX(-${a}px)`},className:"duration-1000 px-12",children:u("div",{className:`w-full flex flex-nowrap gap-3.5 pb-12 ${r}`,children:t.map(((e,t)=>function({slide:e,i:t,isActive:n,onClick:l}){return p("button",{type:"button",onClick:l,className:"p-[30px] min-w-[460px] flex items-center bg-white border-solid border relative "+(n?"shadow-dark-blue border-primary-main":"ease-in duration-300 border-gray"),children:[e?.icon?u(ot,{className:"p-5 rounded-full bg-secondary-light mr-[30px]",image:e.icon,width:"108",height:"108"}):null,p("div",{className:"flex gap-3.5",children:[e?.sum?ks("страховая сумма",e.sum):null,e?.fee?ks("страховой взнос",e.fee):null]}),Ss(n)]},String(t))}({slide:e,i:t,isActive:Boolean(t===n),onClick:()=>l(t)})))})})}function ks(e,t){return p("div",{className:"flex flex-col text-left whitespace-pre",children:[p("span",{className:"text-h6",children:[Ue(t)," ₽"]}),u("span",{className:"text-secondary-text text-l mt-1",children:e})]})}function Ss(e){return e?u(ot,{className:"h-6 w-6 min-w-6 min-h-6 absolute right-4 top-4",image:{icon:"DoneIcon"},width:"24",height:"24"}):null}const Is=x((({className:e="",title:t,insuranceTabs:n=[],button:a,...i})=>{const[s,o]=l(0),c=r((e=>o(e)),[]);return p(k,{className:`box-border py-12 overflow-hidden relative w-100 ${e}`,...i,children:[t?u(T,{className:"text-center mb-8",title:t,headingType:"h3"}):null,n?.length>1?u("div",{className:"p-1.5 bg-secondary-light w-fit mx-auto mb-7 rounded-md",children:n.map(((e,t)=>function({title:e,i:t,isActive:n,onClick:l}){return u("button",{type:"button",onClick:l,"aria-label":e,className:"box-border px-4 py-3 text-m-light "+(n?"bg-primary-main text-white rounded-md":"text-secondary-text"),children:e},String(t))}({title:e?.title,i:t,isActive:Boolean(t===s),onClick:()=>c(t)})))}):null,u("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:Ts({insuranceTabs:n,button:a})})]})})),Ts=({insuranceTabs:e,button:t})=>{const n=e?.map((e=>e.cards));return n?.length?n.map(((e,n)=>u(ws,{button:t,cards:e},String(n)))):null};function $s(e){return t=>t.reduce(((t,n,l)=>t.length?t.concat({...e,key:l},n):[n]),[])}const Bs={yellow:"bg-yellow",green:"bg-green","green-light":"bg-green-light","green-dark":"bg-green-dark"},Rs={XS:"h-[40px]",S:"h-[68px]",M:"h-[102px]",L:"h-[136px]",XL:"h-[204px]"},Ms=x((e=>{const{className:t="",items:n,isDotted:l,investmentZeroColumn:a,investmentColumns:r,...i}=e,s=r?[...r]:[];return a&&s.unshift(a),u(k,{className:`px-9 py-12 ${t}`,...i,children:p("div",{className:"container text-m-light",children:[s?.length?p("div",{children:[p("div",{className:"flex items-end relative pl-9 pr-5 text-white",children:[$s(u("div",{className:"w-px h-4 bg-gray"}))(s.map(js)),u("div",{className:"absolute right-[30px] w-px h-4 bg-gray"})]}),u("div",{className:"border-t border-gray -mt-2 ml-9 mr-8"}),u("div",{className:"flex justify-between text-primary-text mt-3 -mx-10",children:s.map(Ls)})]}):null,n?.length?u(ra,{className:"mt-9 text-l-light max-w-[657px]",items:n,itemClassName:"mb-[7px]",isDotted:l}):null]})})})),js=(e,t,n)=>{const l=1===t,a=t===n.length-1;return u("div",{className:`${_s(l,a,e.cells)}`,children:e.cells?.length?u("div",{className:"w-full "+(a?"border-4 border-green-more-dark p-1.5 min-w-[290px]":""),children:e.cells.reverse().map(Vs)}):null},`column_${t}`)},_s=(e,t,n=[])=>[n.length?"flex-1":"flex-0",!n.length||e||t?"":"pl-2.5",n.length&&!t?"pr-2.5 pb-8":"pb-[22px]"].join(" "),Vs=(e,t)=>{const n=e.cellSize||"XS",l=e.cellColor||"green";return e.text?u("div",{className:`flex-1 flex items-center justify-center relative py-2 ${Rs[n]} ${Bs[l]} ${"XS"===n?"px-3":"px-11"}`,children:u("div",{className:"text-center",children:e.text})},`cell_${t}`):null},Ls=(e,t,n)=>{const l=0===t,a=t===n.length-1;return u("div",{className:`flex-1 max-w-[180px] text-center px-2 ${l?"pl-9":""} ${a?"mr-3.5":" "}`,children:e.title},`title_${t}`)},zs=x((({doc:e,icon:t})=>{const{text:n,fileSize:l,...a}=e;return p("a",{className:"flex box-border gap-3 group/item h-fit w-fit text-primary-text no-underline hover:text-primary-main",role:"link",...a,children:[t,n?p(re,{size:"text-l",font:"font-light",children:[n,u(re,{color:"text-secondary-text",children:a?.href&&Ps(Ds(a.href),l)})]}):null]})})),Ps=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),Ds=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},Os={double:"flex-wrap",single:"flex-col"},As=x((({className:e="",title:t,description:n,align:l="text-center",documents:a,icon:r={icon:"DocIcon"},columnsMode:i="double",...s})=>p(k,{className:w("p-12",e),...s,children:[u(Mt,{className:"!p-0",title:t,description:n,align:l,headlineVersion:"M",as:"h2"}),a?.length?u("div",{className:w("mt-8 flex gap-6",Os[i]),role:"list",children:a.map(((e,t)=>u("div",{className:"double"===i?"basis-[calc(50%-20px)]":"",role:"listitem",children:u(zs,{doc:e,icon:r?u(ot,{className:"min-w-6 min-h-6",image:r,width:"24",height:"24"}):null})},String(t))))}):null]}))),Es=e=>{const t="col-span-",n=e?.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function Fs(e=""){const t=Es(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}const Us=x((({className:e="",title:t="Мобильное приложение",qr:n,buttons:l,version:a="primary",items:r,image:i,headingType:s="h4",alignTitle:o="left",description:c,...d})=>{const m="secondary"===a?"p-3.5 min-w-[120px]":"min-w-[92px]";return p(k,{className:`flex justify-between p-12 box-border relative min-h-80 ${Fs(e)} ${e}`,version:a,...d,children:[p(Kl,{className:"z-10",title:t?u(T,{headingType:s,as:"h3",title:t,className:`whitespace-pre-wrap mb-7 w-full ${zt[o]}`}):null,buttons:It(l,{className:"mt-8",buttonClassName:"min-w-[168px]"}),children:[Xs(c),p("div",{className:"flex flex-1 items-center mb-3",children:[n?.src?u("div",{className:`flex justify-center mr-5 bg-white rounded-md ${m}`,children:u(ot,{className:"w-fit",image:n})}):null,Hs(r)]})]}),i?.src?u("div",{className:"absolute right-0 bottom-0",children:u(ot,{image:i})}):null]})})),Hs=e=>e?.length?u(ra,{items:e,itemClassName:"text-l-light mb-2 last:mb-0"}):u("span",{className:"text-m-light text-secondary-text",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),Xs=e=>e?u("p",{className:"text-xl-light mb-5 pt-0.5",children:e}):null,Ws=[{coords:[55.77,37.46],text:"Трактир"},{coords:[55.66,37.48],text:"Трактор"},{coords:[55.65,37.42],text:"Ресторан"},{coords:[55.64,37.54],text:"Музей"},{coords:[55.54,37.52],text:"Библиотека"},{coords:[55.53,37.56],text:"Школа"},{coords:[55.61,37.61],text:"Аптека"},{coords:[55.8,37.58],text:"Бар"},{coords:[55.71,37.35],text:"Институт"},{coords:[55.74,37.57],text:"Университет"},{coords:[55.58,37.69],text:"Больница"},{coords:[55.57,37.7],text:"Цирк"},{coords:[55.55,37.64],text:"Магазин"},{coords:[55.5,37.75],text:"Булочная"},{coords:[55.81,37.73],text:"Полиция"},{coords:[55.73,37.68],text:"Салон красоты"},{coords:[55.86,37.76],text:"Баня"},{coords:[55.38,37.69],text:"Гараж"},{coords:[55.91,37.5],text:"Дом"},{coords:[55.62,37.32],text:"Прачечная"},{coords:[55.85,37.41],text:"Стадион"},{coords:[55.67,37.24],text:"Вокзал"},{coords:[55.79,37.41],text:"Кафе"}];function Ks(e,t,n){t.geoObjects.removeAll();const l=e.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>'),a=new e.Clusterer({clusterIcons:[{href:"icons/MapMarkerClusterIcon.svg",size:[78,84],offset:[-35,-50]}],clusterIconContentLayout:l,clusterHideIconOnBalloonOpen:!1,geoObjectHideIconOnBalloonOpen:!1}),r=n.map((t=>new e.Placemark(t,{},{iconLayout:"default#image",iconImageHref:"icons/MapMarkerSingleIcon.svg",iconImageSize:[78,84],iconImageOffset:[-35,-50]})));a.add(r),t.geoObjects.add(a),t.setBounds(e.util.bounds.fromPoints(n)).then((()=>{t.getZoom()>10&&t.setZoom(10)}))}const Gs={focus:"focus:border-primary-text focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border border-transparent rounded-md",position:"flex items-center justify-center",font:"text-center font-sans"},Js=e=>u("a",{className:`select-none cursor-pointer px-9 h-12 bg-primary-main text-white ${Object.values(Gs).join(" ")}`,href:`https://yandex.ru/maps/?ll=${[e[1],e[0]]}&z=10&l=map`,target:"_blank",children:"Открыть на карте"}),Ys={border:"border border-transparent rounded-md",position:"relative flex items-center",font:"text-center font-sans",shadow:"shadow-[0_4px_25px_rgba(0,0,0,0.07)]"},qs=(e,t,n)=>p("div",{className:`${Object.values(Ys).join(" ")} bg-white py-3 pl-11 pr-4 w-full`,children:[u(fe,{name:"LoupeIcon",iconVersion:"black",width:"20",height:"20",className:"absolute left-4"}),u("input",{type:"text",placeholder:"Введите адрес или метро",onChange:t=>{const l=t.target?.value?t.target?.value.toLowerCase():"";if(l){const t=e.filter((e=>e.text.toLowerCase().indexOf(l)>-1?e:null));n(t)}else n(null)},className:"border-0 focus:border-0 outline-0 w-full"})]}),Zs={focus:"focus:border-primary-text focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border border-transparent rounded-md",position:"absolute flex items-center justify-center",font:"text-center font-sans"},Qs=(e,t,n)=>u("div",{className:`select-none cursor-pointer py-4 w-12 bg-white ${Object.values(Zs).join(" ")} ${n}`,onClick:()=>{t.geolocation.get({provider:"yandex",autoReverseGeocode:!0,mapStateAutoApply:!0}).then((function(t){e.geoObjects.add(t.geoObjects)}))},children:u(fe,{name:"UserGeoLocationIcon",width:"20",height:"16"})}),eo={focus:"focus:border-primary-text focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border-b border-b-2 border-gray last:border-0",position:"relative flex items-center justify-center",font:"text-center font-sans text-l"},to=x((({yandexMaps:e,direction:t="in"})=>{const n="in"===t?"PlusIcon":"MinusIcon";return u("div",{onClick:()=>{const n=e.current.getZoom(),l="in"===t?n+1:n-1;e.current.setZoom(l,{checkZoomRange:!0})},className:`${Object.values(eo).join(" ")} bg-white select-none cursor-pointer w-12 h-12`,children:u(fe,{name:n,width:"20",height:"16"})})})),no={border:"border border-transparent rounded-md ",position:"absolute flex items-center justify-center",size:"w-12 h-12",focus:"focus:border-primary-text focus:border",font:"text-center font-sans",active:"active:bg-primary-active",hover:"hover:bg-primary-hover",other:"select-none cursor-pointer"},lo=x((({points:e,className:t="",zoom:n=5,showSearchField:r=!1})=>{const i=s(null),o=ss("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${c.YANDEX_MAP_API_KEY||""}&lang=ru_RU`),[d,m]=l(),[h,x]=l(so(Ws)),g=ao(e);if(a((()=>{i?.current||o?.ready((()=>{i.current=new o.Map("map",{center:g,zoom:n,controls:[],suppressMapOpenBlock:!0}),Ks(o,i.current,h)}))}),[o,i,h]),a((()=>{if(i.current&&h&&o){const e=h.length<1?so(Ws):h;Ks(o,i.current,e)}}),[i,h,o]),!o)return null;const b=d?"z-[100000]":"z-10";return p("div",{id:"map",className:`${d?"":"relative"} w-full ${t}`,children:[u("div",{className:`absolute flex left-2 top-4 w-[50%] ${b}`,children:r?qs(Ws,0,(e=>{if(e){const t=so(e);x(t)}})):Js(g)}),u("div",{className:`${Object.values(no).join(" ")} ${b} right-2 top-4 bg-white`,onClick:()=>{const e=i.current.container;d?e.exitFullscreen():e.enterFullscreen(),m(e.isFullscreen())},children:u(fe,{name:"FullScreenIcon",width:"16",height:"16"})}),p("div",{className:`absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md ${b}`,children:[u(to,{yandexMaps:i}),u(to,{yandexMaps:i,direction:"out"})]}),Qs(i.current,o,`right-2 top-80 ${b}`)]})})),ao=e=>[io(ro(e,0)),io(ro(e,1))],ro=(e,t)=>e.map((e=>e[t])),io=e=>e.reduce(((e,t)=>e+t))/e.length,so=e=>e?e.map((e=>e.coords)):null,oo=[{title:"Деловой центр",time:"1 мин",distance:"~30 м.",icon:"MetroIcon"},{title:"Выставочная",time:"5 мин",distance:"~120 м.",icon:"MetroIcon"},{title:"Деловой центр",time:"8 мин",distance:"~350 м.",icon:"MetroIcon"}],co=({lunchHour:e,status:t,workTime:n})=>{const l=/\d+/gi.test(e)?`Перерыв ${e}`:e;return t?p("div",{className:"flex",children:[u("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-primary-main border-green-light mr-4",children:n||null}),u("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-yellow border-golden",children:e?l:null})]}):u("div",{className:"flex",children:u("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-error border-error",children:"Выходной"})})},mo=({icon:e,title:t,distance:n,time:l},a)=>p("div",{className:"flex mr-4",children:[u(fe,{name:e,width:"16",height:"16",className:"mr-1"}),t?p("span",{className:"text-m",children:[t," "]}):null,p("span",{className:"text-m-light",children:[n?` (${n})`:null,l?`, ${l}`:null]})]},`nearbyOffice${a}`),ho=({title:e,status:t,workTime:n,lunchHour:l,description:a},r)=>p("div",{className:"flex flex-col pb-3 border-b border-solid border-main-divider mb-3 last:border-0",children:[p("div",{className:"flex justify-between items-center w-full pb-1 text-l text-primary-text",children:[u("div",{children:e}),t?null:u("div",{className:"text-m-light text-error",children:"Выходной"}),t&&n?u("div",{children:n}):null]}),t&&l?uo(l):null,a?u("div",{className:"pb-1 text-s-light text-secondary-text",children:a}):null]},`day${r}`),uo=e=>/\d+/gi.test(e)?p("div",{className:"flex justify-between items-center w-full pb-1 text-m-light text-error",children:[u("div",{children:"Перерыв"}),u("div",{children:e})]}):u("div",{className:"flex justify-between items-center w-full pb-1 text-m-light text-primary-main",children:u("div",{children:e})}),po={id:123,branchType:{id:7,code:"21",name:"Отделение на балансе филиала"},shortName:"Ейский ДО",name:"ДО №3349/3/05",address:"353682, Краснодарский край, г.Ейск, ул.Гоголя, 349/ ул.Баррикадная, 42/1",lawAddress:"353682, Краснодарский край, г.Ейск, ул.Гоголя, 349/ ул.Баррикадная, 42/1",openDate:"2000-12-05",closeDate:null,bik:"040349536",corAcc:"30101810700000000536",registrationNumber:"3349/3/05",phone:"+7(XXX)XXX-XX-XX",fax:"+7(XXX)XXX-XX-XY",okpo:"55105921",ogrn:"1027700342890",kpp:"231002002",inn:"7725114488",branchCode:"0305",upperBranchCode:"0300",timeZone:"+03:00",exchangeRate:{currencies:[{buyExchangeRate:0,saleExchangeRate:0,currency:{id:3,code:"156",currency:"CNY",name:"Китайский юань"}},{buyExchangeRate:59.15,saleExchangeRate:69.25,currency:{id:2,code:"978",currency:"EUR",name:"Евро"}},{buyExchangeRate:58.4,saleExchangeRate:70.05,currency:{id:1,code:"840",currency:"USD",name:"Американский доллар"}}],lastUpdate:"2022-11-11 03:56:17"},workSchedule:{id:413,workTime:"09.00–16.30",lunchHour:"без перерыва",workTimeSaturday:"09.00–15.00",lunchHourSaturday:"без перерыва",workingMonday:!1,workingTuesday:!1,workingWednesday:!0,workingThursday:!0,workingFriday:!0,workingSaturday:!0,workingSunday:!1},gpsLatitude:46.709744,gpsLongitude:38.260703,range:null,safeBoxCaseVolumes:null};function xo(e){return e?M(e,{method:"GET"}):{}}const go=x((({className:e=""})=>{const t=function(e){const{data:t}=B(e?`/api/v1/branches?regionCode=${e}`:void 0,xo);return console.warn("Hook useOfficeMap RETURNs MOCK object for testing",t),po}("000"),{name:n,address:l,gpsLatitude:a,gpsLongitude:r,workSchedule:i}=t,{workingMonday:s,workingTuesday:o,workingWednesday:c,workingThursday:d,workingFriday:m,workingSaturday:h,workingSunday:x}=i,{workTime:g,lunchHour:b,workTimeSaturday:f,lunchHourSaturday:v}=i,N=a&&r?[a,r]:null,y=[{title:"Понедельник",status:s,workTime:g,lunchHour:b},{title:"Вторник",status:o,workTime:g,lunchHour:b},{title:"Среда",status:c,workTime:g,lunchHour:b},{title:"Четверг",status:d,workTime:g,lunchHour:"13:00 - 14:00",description:"Не работает прием денег с 17:00 до 19:00"},{title:"Пятница",status:m,workTime:g,lunchHour:b},{title:"Суббота",status:h,workTime:f,lunchHour:v},{title:"Воскресенье",status:x}],w=(new Date).getDay(),C=w>0?y[w-1]:y[6];return p("div",{className:`flex flex-col font-sans bg-white w-full ${e}`,children:[p("div",{className:"flex flex-col px-12 pt-12",children:[p("div",{className:"flex justify-between",children:[u("div",{className:"text-h2",children:n}),co(C)]}),p("div",{className:"flex text-l-light pt-4",children:[u(fe,{name:"GeolocationIcon",width:"24",height:"24",className:"pr-1"}),l]}),u("div",{className:"flex pt-4",children:oo.map(mo)})]}),p("div",{className:"flex justify-between pt-8",children:[u("div",{className:"flex-grow h-full w-full overflow-hidden",children:N?u(lo,{points:[N],className:"h-full"}):null}),u("div",{className:"w-[434px] min-w-[434px] pl-9 pr-12 pb-14 flex flex-col",children:y.map(ho)})]})]})})),bo=x((({className:e="",title:t,servicesList:n,...l})=>p(k,{className:`p-8 flex flex-col ${e}`,...l,children:[t?u(T,{headingType:"h5",className:"mb-5",title:t}):null,n?.length?u("ul",{className:"list-none m-0 p-0",children:n.map(fo)}):null]}))),fo=(e,t)=>p("li",{className:"flex mb-5 last:mb-0 list-none",children:[e.icon?u(ot,{className:"mr-3 min-w-6 min-h-6 w-6 h-6",width:"24",height:"24",image:e.icon}):null,e.label?u("span",{className:"text-l-light",children:e.label}):null]},`list_item_${String(t)}`),vo=x((({text:e,size:t,align:n,font:l,children:a,...r})=>u(k,{...r,children:u(ae,{size:t,align:n,font:l,children:e||a})}))),No=x((e=>{const{className:t="",icon:n,label:l,description:a,version:r="primary",benefitsVersion:i="normal"}=e;return p("div",{className:`flex gap-5 ${a?"items-start":"items-center"} ${t}`,children:[n?u("div",{className:yo(r,i),children:u(ot,{className:"w-6 h-6",image:{...n,iconVersion:n.iconVersion||i}})}):null,p("div",{className:"gap-0.5",children:[l?u("div",{className:"text-h6 text-primary-text group-data-secondary:text-white",children:l}):null,a?u("div",{className:"text-m-light text-secondary-text group-data-secondary:text-white",children:a}):null]})]})}));function yo(e,t){let n="bg-primary-main text-black";return"secondary"===e?n="bg-white/30 text-black":"normal"===t&&(n="bg-secondary-light text-primary-main"),`w-12 h-12 min-w-12 rounded-full p-2.5 box-border flex items-center justify-center ${n}`}const wo=e=>(t,n)=>{const{type:l}=t;if("default"!==l&&"rte"!==l)return null;switch(l){case"default":return u(No,{icon:t.icon,label:t.label,description:t.description,version:e},String(n));case"rte":return u(wa,{__html:t.__html});default:Zr(t)}},Co=x((({className:e="",title:t,description:n,image:l,benefits:a,sum:r,monthLimit:i,directionRight:s=!1,version:o="primary",...c})=>p(k,{className:`relative py-12 px-24 ${e}`,version:o,...c,children:[u(Mt,{className:"!p-0",title:t,description:n,headlineVersion:"M"}),p("div",{className:"flex justify-center gap-[122px] mt-[30px]",children:[l?.src?u(ot,{className:s?"order-2":"",image:l}):null,p("div",{className:"w-[558px] m-auto",children:[a?.length?u("div",{className:"flex flex-col gap-4",children:a.map(wo(o))}):null,ko(Number(r),Number(i))]})]})]})));function ko(e,t){return e||t?p("div",{className:"bg-main-divider rounded-md flex mt-7 gap-6 px-5 py-4",children:[Number(e)>0?So("Страховая сумма:",e,Boolean(t)):null,Number(t)>0?So("Ежемесячный лимит:",t,Boolean(e)):null]}):null}function So(e,t=0,n=!1){return p("div",{className:`flex justify-between items-center gap-2 w-full whitespace-pre ${n?"w-fit":"w-full"}`,children:[u("span",{className:"text-secondary-text text-l-light",children:e}),p("span",{className:"text-primary-main text-h6",children:[Ue(t)," ₽"]})]})}function Io(e=""){const t=Es(e);return t<=4?"S":t<=8?"M":"L"}function To(e=""){const t=Es(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const $o=x((({className:e,title:t,description:n="Блок в разработке...",...l})=>p(k,{className:w("p-9 box-border",e,To(e),Fs(e)),...l,children:[u(Mt,{className:"!p-0 max-w-[600px]",title:t,description:n,headlineVersion:Io(e)}),u("figure",{className:"m-0 min-w-[80%]",children:Bo()})]}))),Bo=(e=3)=>Mo(100,e).map((e=>Math.floor(e))).map(Ro),Ro=(e,t)=>u("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Mo=(e,t)=>[e].concat(t>0?Mo(e/1.618,t-1):[]),jo=x((({className:e="",children:t,...n})=>{const l=H(),{text:a,href:r,target:i,onClick:s}=l(n);return r?u("a",{className:`no-underline ${e}`,href:r,target:i,onClick:s,children:u("span",{className:e,children:a||t})}):u("span",{className:e,children:a||t})})),_o=(e="primary",t="normal")=>({icon:n,label:l,description:a},r)=>u(No,{icon:n,label:l,description:a,version:e,benefitsVersion:t},String(r)),Vo=x((({className:e="",title:t,headlineVersion:n="L",description:l,benefitsCountOfRow:a=3,benefits:r,benefitsVersion:i,buttons:s,image:o,__html:c,items:d,version:m="primary",isDotted:h=!0,textBlockClassName:x="",directionRight:g=!0})=>{const b=r?.filter((e=>e.label))?.length,f=Lo(a);return p("div",{className:w("flex grow justify-between items-stretch h-full",e),children:[o?.src?u(ot,{className:w("mt-[-50px]",g?"order-2":""),image:o}):null,p("div",{className:w("flex flex-col",x),children:[u(Mt,{className:"!p-0 max-w-[600px]",title:t,description:l,headlineVersion:n,align:"text-left"}),p(Kl,{buttons:It(s),children:[b?u("div",{className:f,children:r?.map(_o(m,i))}):null,c?u("div",{className:"mt-5",children:u(wa,{__html:c})}):null,d?.length?u(ra,{className:"mt-5 text-h6",items:d,itemClassName:"mb-[7px]",isDotted:h}):null]})]})]})})),Lo=(e=2)=>"gap-6 mt-6 "+(e>2?"inline-grid grid-cols-[auto_auto_auto]":"inline-grid grid-cols-[auto_auto]");function zo(e,t,n){const{text:l,href:a,target:r}=e,i="primary"===t?"white":"black",s=e?.icon||{icon:"ArrowLeftIcon"};return p("div",{className:w("flex items-center",n),children:[u(te,{version:t,rounded:!0,className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3",ariaLabel:l,href:a,target:r,children:u(ot,{className:"w-4 h-4",image:{...s,iconVersion:s.iconVersion||i}})}),l?u(te,{version:"link",text:l,href:a,target:r,ariaLabel:l}):null]})}const Po="text-secondary-text group-data-secondary:text-white/80",Do=x((e=>{const{className:t="",breadcrumbs:n,backwardButton:l,version:a="primary",...r}=e,i="primary"===a?a:"white";return p(k,{className:w("overflow-hidden p-12 flex flex-col box-border min-h-[454px]",t),version:a,...r,children:[l?.text?zo(l,i):null,n?.length?u("div",{className:"text-xs-light mb-6",children:$s(u("span",{className:w("mx-2",Po),children:"/"}))(n.map(((e,t)=>u(jo,{className:Po,...e},String(t)))))}):null,u(Vo,{className:"mt-10",version:a,...r})]})})),Oo=x((({className:e="",slides:t=[],...n})=>{const a=t.map((e=>e.nav)),i=t.map((e=>e.productBlock)),[s,o]=l(0),c=r((e=>o(e)),[]);return p(k,{className:`box-border pt-12 overflow-hidden relative w-100 mb-6 ${e}`,...n,children:[u("div",{className:"flex duration-1000 pb-14",style:{transform:`translateX(-${s}00%)`},role:"list",children:i.map(((e,t)=>function(e,t){return u("section",{className:"box-border relative flex grow-0 shrink-0 basis-full",role:"listitem",children:u("div",{className:"flex grow",children:u(Vo,{className:"pl-12 z-10 group-data-secondary:text-white",textBlockClassName:"mb-[154px]",headlineVersion:"XXL",...e})})},String(t))}({...e,...n},t)))}),u("div",{className:"flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border h-28",children:a.map(((e,t)=>function({slide:e,i:t,isActive:n,onClick:l}){const a=n?"bg-white shadow-dark-blue min-w-[350px] border-none p-6":"min-w-[290px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10 px-6 py-5 backdrop-blur",r=n?"text-primary-text !text-h6 p-2":"text-l pb-1 text-secondary-text group-data-secondary:text-white",i=n?"text-secondary-text text-l-light":"text-m-light text-secondary-text group-data-secondary:text-white/80";return u("button",{type:"button",onClick:l,"aria-label":e?.title,className:`relative box-border overflow-hidden cursor-pointer text-left mx-1 grow basis-0 border border-gray group-data-secondary:border-white/50 ${a}`,children:p("div",{className:"border-0 px-6",children:[u("div",{className:`last:pb-0 ${r}`,children:e?.title}),u("div",{className:`text-secondary-text ${i}`,children:e?.description})]})},String(t))}({slide:e,i:t,isActive:Boolean(t===s),onClick:()=>c(t)})))})]})}));function Ao(e,t){if(!e)return null;return u("div",{className:`mt-2.5 z-10 ${t?.src?"max-w-[calc(100%-186px)]":"100%"}`,children:u(ae,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:e})})}const Eo=(e,t)=>{const{type:n}=e;if("default"!==n&&"rte"!==n)return null;switch(n){case"default":return[u(re,{size:"text-h6",children:e.label},`label-${t}`),u(re,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:e.description},`desc-${t}`)];case"rte":return u("div",{className:"col-span-2",children:u(wa,{__html:e.__html})});default:Zr(e)}};function Fo(e,t){return e?.src?u(ot,{className:w("absolute",t?"right-0":"left-0","bottom-0"),image:e}):null}const Uo=x((({className:e="",title:t,headlineVersion:n="S",description:l,additionalDescription:a,benefits:r=[],buttons:i,image:s,directionRight:o=!0,...c})=>p(k,{className:w("overflow-hidden p-9 box-border relative min-h-[364px] flex flex-col justify-between",To(e),e),...c,children:[p("div",{className:w("flex flex-col",o?"":"items-end"),children:[u(Mt,{className:w("!p-0 !bg-transparent z-10",t||l?"mb-3.5":""),title:t,description:l,headlineVersion:n,as:"h2",align:"text-left"}),Ho(r,s),Ao(a,s)]}),It(i,{className:w("mt-5 text-l",o?"":"justify-end")}),Fo(s,o)]})));function Ho(e,t){if(!e.length)return null;return u("div",{className:w("z-10 grid grid-cols-[max-content_1fr] auto-rows-auto gap-x-6 gap-y-2.5 items-baseline",t?.src?"max-w-[calc(100%-186px)]":"100%"),children:e.length?e.map(Eo):null})}const Xo=x((({className:e="",title:t="Акции и спецпредложения",date:n,description:l,as:a,buttons:r=[],...i})=>u(k,{className:w("p-9 box-border",e,To(e),Fs(e)),...i,children:u(Kl,{title:t?u(Mt,{className:"!p-0 max-w-[600px]",title:t,headlineVersion:Io(e),align:"text-left",as:a||"h2"}):null,buttons:It(r),children:p("div",{className:"mt-1.5",children:[n?u("div",{className:"text-s mb-2",children:Wo(n)}):null,u("div",{className:"text-l",children:l})]})})})));function Wo(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const Ko=x((e=>{const{__html:t,richVersion:n,...l}=e;return u(k,{...l,children:u(wa,{__html:t,richVersion:n})})})),Go=x((({className:e="",label:t="Развернуть",isExpanded:n,isFoldButtonOnTop:l=!0,version:a="primary",...r})=>u(k,{className:`w-full border-0 border-b border-solid border-main-divider last:border-b-0 ${e}`,tag:"div",version:"transparent",...r,children:u(ka,{isFoldButtonOnTop:l,unfoldedByDefault:n,renderFoldableSection:({isUnfolded:e})=>u(Sa,{className:"grid grid-cols-12 gap-5 [&>*]:p-0",isUnfolded:e,children:pl(r)}),renderFoldButton:({isUnfolded:e,onToggle:n})=>Jo({version:a,label:t,isUnfolded:e,onToggle:n})})})));Go.childrenTypes={exclude:["RollupItem"]};const Jo=({version:e,label:t,isUnfolded:n,onToggle:l})=>{const a=t||(n?"Скрыть":"Развернуть");return"primary"===e?Yo({label:a,icon:n?"MinusIcon":"PlusIcon",onToggle:l}):u(Vr,{label:a,icon:n?"ArrowUpIcon":"ArrowDownIcon",onClick:l})},Yo=({label:e,icon:t,onToggle:n})=>p("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:n,children:[u(re,{size:"text-xl",font:"font-medium",children:e}),t?u(fe,{name:t,width:"24",height:"24"}):null]}),qo=[];const Zo=async e=>await M(e,{method:"GET"})||qo,Qo=x((({data:e,fieldLabel:t,fieldValue:n,selected:l,placeholder:a="",setSelected:r,label:i})=>{const s=e.filter(Boolean).map((e=>({key:e?.[n||t],text:e?.[t]}))),o=s.find((e=>e.key===l));return u(ye,{options:s,label:i,placeholder:a||l,onChange:e=>r(e.key),value:o})})),ec=x((({regions:e=[],selectedRegion:t,onSelectedRegion:n,branches:l=[],selectedBranch:a,onSelectedBranch:r})=>p("div",{className:"flex justify-between gap-4 mb-6",children:[u("div",{className:"max-w-[396px] w-1/2",children:u(Qo,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:n,label:"Регион"})}),u("div",{className:"max-w-[396px] w-1/2",children:u(Qo,{data:l,fieldValue:"branchCode",fieldLabel:"address",selected:a,setSelected:r,label:"Отделение",placeholder:"Выберите отделение"})})]}))),tc=x((({name:e,text:t,value:n,checked:l,onChange:a,className:r})=>u("div",{className:r,children:p("label",{className:"font-sans flex items-center relative cursor-pointer",children:[u("input",{className:"appearance-none flex justify-center items-center shrink-0 w-5 h-5 border border-gray hover:border-primary-hover\n checked:border-2 checked:!border-primary-main focus:checked:border-primary-main focus:border-primary-text active:border-primary-text\n after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main outline-none rounded-full cursor-pointer",type:"radio",value:n,name:e,checked:l,onChange:e=>a(e.target.value)}),t?u("span",{className:"text-primary-text ml-3 cursor-pointer",children:t}):null]})}))),nc=x((()=>{const[e,t]=l("option2"),n=r((e=>t(e)),[]);return p("div",{children:[u(tc,{className:"mb-2",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===e,onChange:n}),u(tc,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===e,onChange:n})]})})),lc=["От 1 дня","До 365 дней"],ac=x((({days:e,setDays:t})=>p("div",{className:"mb-6",children:[u("span",{className:"block text-m-light mb-[3px]",children:"Срок аренды"}),u(We,{min:1,max:365,value:e,items:lc,onChange:t})]}))),rc=x((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:n,safeBoxCases:l=[],selectedBoxSize:a,onSelectedBoxSize:r})=>p("div",{className:"flex justify-between mb-6",children:[u("div",{className:"mr-4 w-full",children:u(Qo,{data:e,fieldLabel:"volume",selected:t,setSelected:n,label:"Размер",placeholder:"Выберите размер"})}),u("div",{className:"w-full",children:u(Qo,{data:l,fieldLabel:"safeBoxCasesSize",selected:a,setSelected:r,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),ic=x((({regions:e,selectedRegion:t,branches:n,selectedBranch:l,days:a,selectedCaseVolume:r,selectedBoxSize:i,safeBoxCases:s,caseVolumes:o,onChange:c,onClick:d})=>p("div",{className:"flex-1 mr-9",children:[u(ec,{regions:e,selectedRegion:t,onSelectedRegion:e=>c({selectedRegion:e}),branches:n,selectedBranch:l,onSelectedBranch:sc(c)}),u(ac,{days:a,setDays:e=>c({days:e})}),u(rc,{caseVolumes:o,selectedCaseVolume:r,onSelectedCaseVolume:oc(c),safeBoxCases:s,selectedBoxSize:i,onSelectedBoxSize:e=>c({selectedBoxSize:e})}),u("span",{className:"text-secondary-text text-l-light",children:"Тип договора"}),p("div",{className:"flex justify-between items-center mt-5",children:[u(nc,{}),u(te,{text:"Офисы на карте",version:"primary",onClick:d})]})]}))),sc=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},oc=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},cc=x((({days:e,tariffs:t=[]})=>{const n=mc(e,t);return p("div",{className:"flex flex-col justify-between",children:[p("div",{className:"flex",children:[dc("Аренда за",e,"mr-11"),dc("Цена",n+" ₽")]}),p("div",{className:"bg-primary-main px-10 pt-10 pb-4 text-center",children:[u(ot,{image:{icon:"PackA4Icon"},width:"290",height:"257"}),p("span",{className:"text-s-light text-white opacity-80 mt-2 inline-block",children:["На рисунки изображена пачка",u("br",{})," листов формата А4"]})]})]})})),dc=(e,t,n="")=>p("div",{className:n,children:[u("div",{className:"text-m-light text-secondary-text mb-1",children:e}),u("span",{className:"text-h3 text-primary-text",children:t})]}),mc=(e,t)=>{const n=hc(e);return e*(t?.find((e=>e.tariffType===String(n)))?.tariffValue||0)},hc=e=>{let t=1;switch(!0){case e>30&&e<=90:t=2;break;case e>90&&e<=180:t=3;break;case e>180&&e<=365:t=4}return t},uc=(e,t)=>e.find((e=>e.branchCode===t)),pc=x((e=>{const{regions:t,data:n,branches:l,onChange:r,onClick:i}=e;a((()=>{r({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[n.selectedRegion,r]);const s=uc(l,n.selectedBranch),o=xc(s?.safeBoxCaseVolumes),c=gc(s?.safeBoxCaseVolumes,n.selectedCaseVolume)?.safeBoxCases,d=bc(c,n.selectedBoxSize);return p("div",{className:"flex justify-between align-top mb-6",children:[u(ic,{...n,regions:t,onClick:i,branches:l,caseVolumes:o,safeBoxCases:c,onChange:r}),u(cc,{days:n.days,tariffs:d})]})})),xc=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],gc=(e,t)=>e?.find((e=>e.volume===t)),bc=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs,fc=x((({title:e,footnote:t,className:n="",...a})=>{const[i,s]=l(!1),o=r((()=>s((e=>!e))),[]),[c,d]=l({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26}),m=_(),h=vc(c.selectedRegion,m),x=function(e){const{data:t}=B(e?`/api/v1/safeboxes?regionCode=${e}`:null,Zo);return t||qo}(h),g=r((e=>d((t=>({...t,...e})))),[d]),b=(f=uc(x,c.selectedBranch)||x,Array.isArray(f)?f.map((e=>e.gpsLatitude&&e.gpsLongitude?[e.gpsLatitude,e.gpsLongitude]:[])):f?.gpsLatitude&&f?.gpsLongitude?[[f.gpsLatitude,f.gpsLongitude]]:[]);var f;return p(k,{className:n,...a,children:[p("div",{className:"px-8 py-12",children:[e?u(T,{title:e,headingType:"h3",as:"h2",className:"text-primary-text mb-2.5 text-center"}):null,u(pc,{regions:m,branches:x,data:{...c,selectedRegion:h},onClick:o,onChange:g}),t?u("p",{className:"text-s-light text-secondary-text",children:t}):null]}),b.length&&i?u(lo,{points:b,className:"h-[640px]"}):null]})})),vc=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e,Nc=e=>Boolean(e?.icon||e?.src),yc=({styleMap:e,isMainButton:t,version:n})=>(l,a,r)=>{const{label:i,description:s,button:o,items:c,isDotted:d}=l;return p("div",{className:w("relative flex flex-col items-center text-center whitespace-pre-line overflow-hidden",wc(r.length)),children:[p("div",{className:w(o?.text?"mb-8":"","text-center"),children:[i?u("div",{className:"mb-2",children:u(re,{size:"text-h6",children:i})}):null,p("div",{className:"flex flex-col items-center",children:[s?u("div",{className:e.description,children:s}):null,u(ra,{className:w(s?`${e.description} mt-0.5`:"text-h6"),items:c,listItemSize:"M",isDotted:d})]})]}),o?.text&&!t?u(te,{className:"box-border py-3 h-12 w-full max-w-[240px] mt-auto",version:n,...o,children:o?.text}):null]},String(a))},wc=e=>e<5?"w-[276px]":"w-[210px]",Cc={description:"text-white/80 text-l-light group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconText:"text-white group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconBackground:"bg-white/30 group-data-primary:bg-main-divider",iconConnector:"bg-white group-data-primary:bg-secondary-light",dot:"bg-white/80 group-data-primary:bg-secondary-text"},kc=x((({className:e="",showLines:t=!0,steps:n=[],buttons:l,size:a="normal",version:r="primary",stepVersion:i="gray",title:s,...o})=>{const c=n.length>3,d=Cc,m=(e=>e?"":"opacity-0")(t),h=(e=>e<5?"px-[88px]":"px-[55px]")(n.length),x=Boolean(l?.every((e=>e?.text)));return p(k,{className:w("box-border py-12",c?"px-20":"px-[70px]","flex flex-col items-center overflow-hidden",e),version:r,...o,children:[s?u(T,{headingType:"h4",className:"max-w-[752px] text-center mb-9",title:s}):null,n?.length?p("div",{className:"box-border",children:[u("div",{className:w("flex items-center",h),children:$s(u("div",{className:w("h-0.5 w-full bg-secondary-light flex-1",m)}))(n.map(Sc(d,a,i)))}),u("div",{className:w("flex justify-between mt-4",c?"gap-x-3":"gap-x-[101px]"),children:n.map((g={styleMap:d,isMainButton:x,version:r},(e,t,n)=>{const{type:l}=e;if("default"!==l&&"rte"!==l)return null;switch(l){case"default":return yc(g)(e,t,n);case"rte":return u("div",{className:w("text-center",wc(n.length)),children:u(wa,{__html:e.__html})},String(t));default:return null}}))})]}):null,It(l,{className:"mt-8"})]});var g})),Sc=(e,t,n)=>({icon:l},a)=>{const r="secondary"===n?"group-data-primary:text-white":"text-secondary-text",i="secondary"===n?"white":"color";return u(k,{className:`${"normal"===t?"h-[100px] w-[100px]":"h-[63px] w-[63px]"} flex justify-center items-center text-center rounded-full p-[26px] box-border z-10`,version:n,children:Nc(l)?u(ot,{image:{...l,iconVersion:l.iconVersion||i},width:"48",height:"48"}):u("span",{className:w("text-h4","transparent"===n?e.iconText:r),children:a+1})},String(a))},Ic=x((({className:e="",gap:t=14,padding:n=16,showDots:l=!0,minHeight:a,children:r,onVisibleIndicesChange:i,listType:s="horizontal-list",version:o})=>{const c=Array.isArray(r)?r.length:0,[d,m]=Il({itemCount:c,onVisibleIndicesChange:i}),[h]=m.visibleIndicesRange;return p("div",{className:w(e,"vertical-list"===s?"relative h-full":""),children:[u(fl,{containerRef:d,activeIndex:h,visibleItemCount:1,gap:t,padding:n,onVisibleIndicesChange:m.handleVisibleIndicesChange,listType:s,minHeight:a,children:r}),l?u(Cl,{containerRef:d,activeIndex:h,dotCount:c,listType:s,version:o}):null]})})),Tc=x((({listType:e,showDots:t,options:n,version:l,...a})=>u(k,{version:l,...a,children:u(Ic,{listType:e,showDots:t,version:l,children:pl({...a,options:n})})})));Tc.childrenTypes={exclude:["SwipeListControlBlock"]};const $c="h-12 flex-1 flex items-center justify-center cursor-pointer",Bc="font-sans text-m text-center",Rc="text-white",Mc="text-secondary-text group-hover/btn:text-primary-main",jc="text-primary-main",_c={div:{scrollable:{active:`inline-flex px-4 grow whitespace-nowrap ${$c} bg-white text-primary-main`,default:`inline-flex px-4 grow whitespace-nowrap ${$c} group/btn bg-white`},default:{active:`${$c} bg-primary-main text-white whitespace-nowrap`,default:`${$c} group/btn bg-white whitespace-nowrap`}},text:{scrollable:{active:"h-full border-0 border-b-2",default:""},default:{active:"",default:""}}},Vc={link:{scrollable:{active:`inline-flex px-4 grow whitespace-nowrap ${$c} bg-white text-primary-main`,default:`inline-flex px-4 grow whitespace-nowrap ${$c} group/btn bg-white`},default:{active:`${$c} bg-primary-main text-white`,default:`${$c} group/btn bg-white`}},text:{scrollable:{active:`${Bc} flex items-center h-full border-0 border-b-2 text-primary-main`,default:`${Bc} ${Mc}`},default:{active:`${Bc} text-white`,default:`${Bc} ${Mc}`}}},Lc=(e,t,n)=>{const l=t?"active":"default";return _c[e][n?"scrollable":"default"][l]},zc=(e,t,n)=>{const l=t?"active":"default";return Vc[e][n?"scrollable":"default"][l]},Pc=x((e=>{const{tab:t,currentTab:n,onClick:l,isScrollable:a=!1}=e,r="link"===n?.type&&n.href===t.href,i=H()(t);return u("a",{role:"tab",className:zc("link",r,a),target:t.target,href:i.href,onClick:e=>{i.onClick(e),l(t)},children:u("span",{className:zc("text",r,a),children:t.text})})})),Dc=(e,t,n)=>e?u("h3",{className:n?`${Bc} ${t?jc:Mc}`:`${Bc} ${t?Rc:Mc}`,children:e}):null,Oc=(e,t,n)=>e&&t?u("div",{className:"min-w-[22px] h-[22px] rounded-full text-xs ml-2 flex justify-center items-center "+(n?"bg-white/30 text-white":"bg-main-divider text-secondary-text group-hover/btn:text-primary-main"),children:t}):null,Ac=({page:e,currentTab:t,showCounter:n,onClick:l,isScrollable:a=!1})=>(r,i)=>{const s=r.type;if("group"!==s&&"link"!==s)return null;switch(s){case"group":return(({page:e,currentTab:t,showCounter:n,onClick:l,isScrollable:a=!1})=>(r,i)=>{const s=t===r,o=r.ref&&e?.blocks?e.blocks.filter((e=>e?.labels?.includes(r.ref))).length:0;return u("div",{className:Lc("div",s,a),role:"tab","aria-selected":s,onClick:()=>l(r),children:p("div",{className:`flex flex-1 items-center justify-center ${Lc("text",s,a)}`,children:[Dc(r.title,s,a),Oc(n,o,s)]})},`group-${String(i)}`)})({page:e,currentTab:t,showCounter:n,onClick:l,isScrollable:a})(r,i);case"link":return u(Pc,{tab:r,currentTab:t,isScrollable:a,onClick:l},String(i));default:Zr(s)}return null},Ec=x((e=>{const{tabs:t,onClick:n,currentTab:l,page:a,showCounter:r}=e,[i,s]=Il({itemCount:t?.length||0,isCyclic:!1});return p("div",{className:"relative max-w-full m-auto",children:[u("div",{className:"font-sans max-w-full w-full overflow-hidden relative bg-white",children:u(fl,{containerRef:i,snapAlign:"snap-start",onVisibleIndicesChange:s.handleVisibleIndicesChange,children:t?.map(Ac({onClick:n,currentTab:l,showCounter:r,page:a,isScrollable:!0}))})}),s.canScrollLeft?u(Wt,{className:"absolute z-40 top-0 left-6",onClick:s.scrollLeft}):null,s.canScrollRight?u(Kt,{className:"absolute z-40 top-0 rotate-180 right-6",onClick:s.scrollRight}):null]})})),Fc=x((e=>{const{className:t="",tabs:n,showCounter:i,isSticky:s,tabsMode:o,...c}=e,[d,m]=l(n?n[0]:void 0);a((()=>{n&&n[0]&&Uc(n[0])}),[]),a((()=>{"group"===d?.type&&f.subject("tab",{type:d.type,label:d.ref})}),[d]);const h=r((e=>{Uc(e),m(e)}),[]);return u(k,{className:`relative box-border flex gap-x-1 w-full ${s?"sticky top-1 z-20":""} ${t}`,role:"tablist",...c,children:"scrollable"===o?u(Ec,{tabs:n,onClick:h,currentTab:d,showCounter:i,...c}):n?.map(Ac({onClick:h,currentTab:d,showCounter:i,...c}))})})),Uc=e=>{"group"===e.type&&f.fire("tab",{type:e.type,label:e.ref}),"link"===e.type&&f.fire("tab",{type:e.type,label:e.href})},Hc=x((({isOpen:e,onClick:t})=>p(te,{version:"primary",onClick:t,className:"w-full flex items-center justify-center rounded-none py-5",children:[u("div",{className:"text-h4",children:e?"Скрыть":"Показать ставки по вкладу"}),u(fe,{name:e?"ArrowUpIcon":"ArrowDownIcon",className:"ml-3",iconVersion:"white",width:"20",height:"20"})]}))),Xc={Buttons:({buttons:e})=>It(e),Img:({image:e})=>e?.src?u(ot,{image:e}):null,List:({isDotted:e,...t})=>u(ra,{className:"flex flex-col justify-between items-start text-h6",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>p("div",{children:[e?u("div",{className:"text-h6 m-0 "+(t?"mb-1":""),children:e}):null,t?u("div",{className:"text-secondary-text text-l-light",children:t}):null]}),Table:x((({isVisible:e,displayTable:t,dataUrl:n,pdfUrl:l,isOpen:a})=>e?u(Hc,{isOpen:a,onClick:()=>{t({dataUrl:n,pdfUrl:l})}}):null))},Wc=({rowIdx:e,cellIdx:t,setTableInner:n,tableInner:r,openTableInnerIdx:i,setOpenTableInnerIdx:s})=>(o,c)=>{const[d,m]=l(!0);a((()=>{t===i&&r||m(!0)}),[r,i]);return p("div",{className:"Table"===o?.tableCellType?"ml-10":"first:pt-5 last:pb-5 pl-10",children:[c>0?u("div",{className:"h-5"}):null,Kc({cell:o,cellProps:{rowIdx:e,cellIdx:t,fieldIdx:c,displayTable:e=>{m(!1),s(t),n(e)},isVisible:d}})]},String(c))},Kc=({cell:e,cellProps:t})=>{if(!e)return null;const{tableCellType:n,...l}=e;if(!n||!(n in Xc))return null;return u(Xc[n],{...t,...l})},Gc=x((({cells:e,rowIdx:t,cellIdx:n,setTableInner:l,tableInner:a,openTableInnerIdx:r,setOpenTableInnerIdx:i})=>u("div",{className:"first:pl-0 w-80 flex-grow flex flex-col border-solid border-main-divider border border-t-0 border-x-0",role:"cell",children:e?.length?e.map(Wc({rowIdx:t,cellIdx:n,setTableInner:l,tableInner:a,openTableInnerIdx:r,setOpenTableInnerIdx:i})):null}))),Jc=x((({rows:e})=>{const t=e?.[0]?.length??0,[n,l]=Ht({itemCount:t,visibleItemCount:5});return p("div",{children:[e?.map(Yc(n)),Gt({...l,btnClass:["left-3 top-20","right-3 top-20"],className:""})]})})),Yc=e=>(t,n)=>{if(!t?.length)return null;const[l,...a]=t,r=[...Array(e).keys()].reduce(((e,t)=>140*(a?.[t]?.cols?.length??1)+e),0),i=["flex duration-1000 text-center",0!==n?"font-normal":"font-light"].join(" ");return p("div",{className:"flex border-main-divider border border-t-0 border-x-0 border-solid",children:[l?.data?u("div",{className:"text-xl-light w-[214px] pb-5 "+(0===n?"pt-8":"pt-6"),children:l.data}):null,u("div",{className:"flex flex-grow overflow-hidden",children:u("div",{className:i,style:{transform:`translateX(-${r}px)`},children:a?.map(((t,n)=>p("div",{className:"flex flex-col flex-grow justify-center pt-6 pb-5 odd:bg-main-divider",children:[t?.data?u("div",{className:"text-xl-light mb-3",children:t.data}):null,t?.cols?qc(t.cols,e):null]},`row${n}`)))})})]},String(n))},qc=(e,t)=>e?.length>0?u("div",{className:`flex ${t} ${0===t?"text-secondary-text":""} last:mr-3`,children:e.map(((e,t)=>u("div",{className:"w-[76px] text-h6 mr-5 first:ml-8",children:e},String(t))))}):null,Zc=x((({activeTabIndex:e,items:t})=>{const[n,a]=l({}),i=r((e=>a((t=>({...t,[e]:!t[e]})))),[]);return u("div",{children:t.map(((t,l)=>{const a=`activeTabIdx:${e}-tableIdx:${l}`;return p("div",{className:"w-full",children:[p("div",{className:"flex p-4 bg-gray text-xl-light text-center justify-center cursor-pointer relative",onClick:()=>i(a),children:[t.title,u(ot,{image:{icon:n[a]?"PlusIcon":"MinusIcon"},className:"absolute right-[22px]",width:"24",height:"24"})]}),u("div",{className:"w-full pl-2 overflow-hidden transition-height duration-500 ease-in-out "+(n[a]?"h-0":""),children:u("div",{className:"relative",children:u(Jc,{rows:t.rowsData})})})]},a)}))})})),Qc=x((({currencies:e,linkToPDF:t,activeTabIndex:n,setActiveTabIndex:l})=>p("div",{className:"flex justify-between w-full pt-2.5 pb-3",children:[e&&e.length>1?u("div",{className:"flex bg-secondary-light p-1.5 rounded-md",children:e.map(((e,t)=>u("div",{className:"rounded-md text-xl-light px-4 py-3 cursor-pointer "+(t===n?"bg-primary-main text-white":"text-secondary-text"),onClick:()=>l(t),children:e||t+1},e)))}):null,t?u(te,{href:t,version:"secondary",target:"_blank",appendLeft:u(fe,{name:"DocDownloadIcon",iconVersion:"color",className:"mr-0.5",width:"20",height:"20"}),text:"Скачать в PDF"}):null]})));async function ed(e){const t=await fetch(e);return await t.json()}const td=x((({dataUrl:e,pdfUrl:t,onClick:n})=>{const{tableData:a}=function(e){const{data:t}=B(function(e){return`/wcms-resources/${e||"tariffs-inner-table-data"}.json`}(e),ed);return t||{}}(e),[i,s]=l(0),o=r((e=>s(e)),[]),c=a?.[i]?.items??[],d=a?.map((e=>e.currency??""));return p("div",a?{className:"bg-white z-10",children:[u(Qc,{currencies:d,activeTabIndex:i,setActiveTabIndex:o,linkToPDF:t}),u(Zc,{activeTabIndex:i,items:c}),u(Hc,{onClick:n,isOpen:!0})]}:{className:"my-5 text-h6 text-center",children:[u("p",{children:"Данных нет"}),u(Hc,{onClick:n,isOpen:!0})]})})),nd=x((({children:e,tableInner:t,onHideContentClick:n})=>p("div",{className:"self-start flex flex-col",role:"row",children:[u("div",{className:"flex",children:e}),t?u("div",{className:"origin-top animate-expansion",children:u(td,{...t,onClick:n})}):null]}))),ld=x((({row:{header:e,data:t},activeIndex:n,rowIdx:a,...i})=>{const[s,o]=l(void 0),c=r((e=>o(e)),[]),[d,m]=l(void 0),h=r((e=>m(e)),[]);return p(nd,{onHideContentClick:()=>o(void 0),tableInner:s,...i,children:[u("div",{className:"text-s py-5 w-[354px] flex-shrink-0 border-main-divider border border-t-0 border-x-0",children:p("div",{className:"flex items-center text-primary-text",role:"cell",children:[e?.icon?u(ot,{className:"mr-3.5 max-w-6",image:e.icon,width:"24",height:"24"}):null,e?.title?u("div",{className:"text-m-light",children:e?.title}):null]})}),t?.length?u(Da,{activeIndex:n,columnWidth:360,version:"tariff",children:t.map(((e,t)=>u(Gc,{cells:e,rowIdx:a,cellIdx:t,setTableInner:c,tableInner:s,openTableInnerIdx:d,setOpenTableInnerIdx:h,...i},String(t))))}):null]})})),ad=x((({className:e="",title:t,description:n,rowHeaders:l,tariffsColumns:a,hiddenRowsNum:r=0,...i})=>{const s=a?.map((({data:e})=>e))||[],o=l?.map(((e,t)=>({header:e,data:s.map((e=>e?.[t]||[]))}))),c=s.length,[d,m]=Ht({itemCount:c,visibleItemCount:2}),h=(o||[]).map(((e,t)=>u(ld,{row:e,activeIndex:d,rowIdx:t,...i},String(t)))),[x,g]=r>0?[h.slice(0,-r),h.slice(-r)]:[h,[]];return p(k,{className:`p-12 overflow-hidden relative ${c>1?"pr-0":""} ${e}`,...i,children:[rd({title:t,description:n}),id(n),r>0?u(ka,{renderFoldableSection:({isUnfolded:e})=>p(sd,{controls:m,children:[x,u(Sa,{isUnfolded:e,children:g})]}),renderFoldButton:Lr}):u(sd,{controls:m,children:h})]})}));function rd({title:e,description:t}){return e?u(T,{headingType:"h3",className:"text-center "+(t?"mb-2.5":"mb-8"),title:e}):null}function id(e){return e?u("div",{className:"mb-9 text-center text-l",children:e}):null}const sd=x((({children:e,controls:t})=>{const{isScrollAvailable:n}=t;return p("div",{role:"table",children:[p("div",{className:"relative",children:[e,Gt({...t,btnClass:["top-[108px]","top-[44px]"],className:"right-7"})]}),n?u("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),od=x((({className:e="",title:t,description:n,iconVersion:l,image:a,__html:r,...i})=>p(k,{className:`px-9 py-4 flex gap-3 bg-white group-data-secondary:bg-primary-main/10' ${e}`,...i,children:["small"===l?u("div",{className:"mt-1",children:cd()}):null,"big"===l?dd(a):null,p("div",{children:[t?md(t):null,n?u("div",{className:"mt-1",children:hd(n)}):null,r?u(wa,{__html:r}):null]})]}))),cd=()=>u("div",{className:"rounded-full h-4 w-4 text-center text-xs-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main",children:"i"}),dd=e=>e?.src?u(ot,{image:e}):null,md=e=>u(re,{size:"text-l",font:"font-medium",color:"text-primary-text group-data-secondary:text-white",children:e}),hd=e=>u(ae,{size:"text-s",color:"text-secondary-text group-data-secondary:text-white",children:e}),ud=x((e=>{const{tags:t,className:n=""}=e;return t?.length?u("div",{className:`flex flex-wrap gap-2 ${n}`,children:t.map(pd)}):null})),pd=(e,t)=>u("span",{className:"text-m-light py-2 px-2.5 border-solid border rounded-md border-gray",children:e},String(t)),xd=x((({title:e,headingType:t="h3",__html:n,items:l,buttons:a,image:r,isDotted:i=!0,listItemSize:s="M",className:o="",tags:c,children:d,directionRight:m=!0,...h})=>p(k,{className:w("flex grow justify-between items-stretch h-full p-9 pr-3 box-border",To(o),Fs(o),o),...h,children:[r?.src?u(ot,{className:w("mt-auto ml-7",m?"order-2":""),image:r}):null,u(Kl,{title:e?u(T,{headingType:t,as:"h2",title:e,className:"whitespace-pre-wrap max-w-[600px]"}):null,buttons:It(a,{className:"mt-8",buttonClassName:"min-w-[158px]"}),children:p("div",{children:[n?u("div",{className:"max-w-[600px] mt-2.5",children:u(wa,{__html:n})}):null,d,u(ra,{className:"mt-2.5",itemClassName:"mb-1.5",items:l,isDotted:i,listItemSize:s}),c?.length?u(ud,{tags:c,className:"mt-5"}):null]})})]}))),gd={stretch:"items-stretch",left:"items-start",center:"items-center",right:"items-end"},bd=x((({className:e="",gap:t="",align:n="stretch",isPadding:l=!1,isInnerPadding:a=!0,version:r="transparent",isTheme:i=!1,...s})=>{const o=a?"":"!p-0";return u(k,{className:w("relative","flex flex-col [&>*]:max-w-full",l?"p-12":"",vs[t],n&&gd[n],e),version:r,isTheme:i,...s,children:pl({...s,renderProps:(e,t)=>ml(e,t,{className:o})})})}));bd.childrenTypes=[];const fd=e=>Es(e)<10?"py-6 px-11":"py-12 px-32",vd=x((({className:e,title:t,url:n,previewImg:l,...a})=>{const r=U();return p(k,{className:w(fd(e),e),...a,children:[u(Mt,{title:t,headlineVersion:"M"}),n?u("video",{className:"m-auto w-full object-fill",preload:"metadata",poster:A(r)(l?.src),style:{maxHeight:524},controls:!0,children:u("source",{src:A(r)(n)})}):null]})})),Nd=x((({address:e,email:t,telephone:n,button:l,className:a="",__html:r,icon:i,title:s,version:o="primary",...c})=>p(k,{className:w("box-border text-left p-9",a),version:o,...c,children:[p("div",{className:"w-full flex justify-between",children:[s?u(T,{headingType:"h4",as:"h3",className:"mb-6",title:s}):null,yd(i)]}),p("div",{className:"w-full",children:[r?wd(r):null,Cd("Адрес",e,"GeolocationIcon"),Cd("Телефон",n,"PhoneIcon"),Cd("E-mail",t,"MailIcon"),l?.text?It([l],{className:"mb-6"}):null]})]}))),yd=e=>p("div",{className:"self-end",children:[e?.src?u(ot,{image:e}):null,e?.icon?u(ot,{image:e}):null]}),wd=e=>u("div",{className:"border-b border-main-divider pb-5 my-5",children:u(wa,{__html:e})}),Cd=(e,t,n)=>p("div",{className:"flex mb-4",children:[u(fe,{className:"pr-4",iconVersion:"black",name:n,width:"24",height:"24"}),p("div",{className:"flex flex-col first:pb-1",children:[u(re,{size:"text-m-light",children:e}),t?u(re,{size:"text-h6",color:"text-green",children:t}):null]})]}),kd={ApplicationForm:Nt,BenefitsBlock:yt,Bonus:jt,BonusBenefitsBlock:Pt,BusinessBlock:Ft,ButtonBlock:Ut,Calculator:tl,CardTransfer:ol,Carousel:Ml,CarouselBankHistoryCard:Ll,CarouselCard:El,CarouselCatalogCard:Ul,CarouselEventCard:Wl,CarouselInvestmentCard:Jl,CarouselLinks:Ql,CarouselProductCard:ia,CarouselProgramsCard:ha,CarouselRecommendationCard:Na,CarouselRichTextCard:Ca,CarouselTariffsCard:Ia,ComparisonTable:Ja,ContactsBlock:qa,ErrorBlock:tr,ExchangeRateTile:jr,Filtration:Ur,Footer:Mi,GracePeriod:ji,Header:fs,Headline:Mt,HorizontalLayout:Ns,ImgBlock:ys,InsuranceAmountBlock:Is,InvestmentInfo:Ms,LinkDocs:As,MobileAppTile:Us,OfficeMap:go,OfficeServicesBlock:bo,ParagraphBlock:vo,PictureText:Co,Placeholder:$o,ProductBlock:Do,ProductGallery:Oo,ProductTile:Uo,PromoTile:Xo,RichTextBlock:Ko,RollupItem:Go,SafeDepositRental:fc,StepsBlock:kc,SwipeListControlBlock:Tc,Tabs:Fc,TariffsTable:ad,TextBlock:od,Tile:xd,VerticalLayout:bd,Video:vd,ExchangeRateOffice:cr,RepresentativeOfficeInfo:Nd};const Sd=["Header","Footer"],Id=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function Td(e=globalThis){const t=s(new Map);a((()=>y.subscribe("intersection",(({block:e,intersection:n})=>{t.current&&t.current.set(e,n)}))),[]),a((()=>{const n=((e,t=600)=>{let n;const l=(...a)=>{l.dispose(),n=setTimeout((()=>{e(...a)}),t)};return l.dispose=()=>{n&&clearTimeout(n)},l})((()=>{!function(e){const t=`#${n=e?.anchor,n?.replace("#","")||""}`;var n;globalThis.location?.hash!==t&&globalThis.history?.replaceState(globalThis.history?.state,"",t)}(globalThis.scrollY>3*globalThis.innerHeight/4?function(e){const t=e.filter((([e])=>!Sd.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[n]=t.length>0?yn(Id)(t):[];return n}([...t.current||[]]):void 0)}),100);return e.addEventListener("scroll",n),()=>{n.dispose(),e.removeEventListener("scroll",n)}}),[e])}const $d=h();const Bd=x((({className:e,onClick:t,ariaLabel:n})=>u("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":n,children:Rd()}))),Rd=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return p("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[u("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),u("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},Md=x((({className:e=""})=>{const t=function(e){const[t,n]=l(0);return a((()=>{(async()=>{const[t]=await $d.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:r((async()=>{n(await $d.like(e))}),[e]),dislike:r((async()=>{n(await $d.dislike(e))}),[e])}}(U().pathname);return p("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e}`,children:[u(Bd,{onClick:F(t.like),ariaLabel:"Поставить отметку «лайк»"}),u(Bd,{onClick:F(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),u("span",{className:"select-none",children:t.likeCount})]})})),jd=x((e=>{const{className:t="",blocksRegistry:n,blockDecorator:l,data:a={}}=e,{style:r,blocks:i,slots:s,likeControl:o,colorPalette:c="pc"}=a,d={key:"",page:a,blocksRegistry:n,blockDecorator:l,parent:a};Td();const[m,{setTrue:h,setFalse:x}]=di();return Qr({onOpen:h,onClose:x}),p("section",{className:w("relative",r,t,m?"overflow-hidden h-screen":""),"data-theme":c,children:[s?.header?u("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:ul(s?.header,{...d,slotName:"header"})}):null,p("div",{className:"container grid grid-cols-12 gap-1",children:[ul(i,d),s?.footer?ul(s?.footer,{...d,slotName:"footer"}):null]}),o?u("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:u(Md,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null]})}));jd.childrenTypes=[],jd.slots=()=>["header","footer"];e.Blocks=kd,e.ContentPage=jd,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.LikeAPI=h,e.handlerDecorator=F,e.joinList=$s,e.packageVersion="0.10.4",e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=O,e.useRouter=U,Object.defineProperty(e,"__esModule",{value:!0})}));
|