@redneckz/wildless-cms-uni-blocks 0.12.12 → 0.12.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/migration-scripts/0.12.10.js +59 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +90 -66
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +52 -6
- package/bundle/components/ApplicationForm/ApplicationFormGrantSupport.d.ts +2 -0
- package/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +1 -0
- package/bundle/components/ApplicationForm/EmbeddableForms.d.ts +8 -0
- package/bundle/components/Carousel/Carousel.d.ts +1 -1
- package/bundle/components/CarouselLinks/CarouselLinks.d.ts +1 -0
- package/bundle/components/CarouselLinks/CarouselLinksContent.d.ts +2 -0
- package/bundle/components/Footer/Contacts.d.ts +0 -1
- package/bundle/components/Footer/MediaButton.d.ts +1 -1
- package/bundle/components/Footer/buttonSizeStyles.d.ts +4 -0
- package/bundle/components/Footer/buttonSizeStyles.mobile.d.ts +4 -0
- package/bundle/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +7 -0
- package/dist/components/ApplicationForm/ApplicationForm.js +16 -14
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +52 -6
- package/dist/components/ApplicationForm/ApplicationFormGrantSupport.d.ts +2 -0
- package/dist/components/ApplicationForm/ApplicationFormGrantSupport.js +22 -0
- package/dist/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +1 -0
- package/dist/components/ApplicationForm/EmbeddableForms.d.ts +8 -0
- package/dist/components/ApplicationForm/EmbeddableForms.js +17 -0
- package/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -0
- package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/dist/components/Bonus/Bonus.js +10 -13
- package/dist/components/Bonus/Bonus.js.map +1 -1
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js +4 -4
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/CreditCalculatorForm.js +1 -1
- package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/DepositCalculatorForm.js +3 -3
- package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/dist/components/Carousel/Carousel.d.ts +1 -1
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/Carousel/CarouselScrollButtons.js +2 -2
- package/dist/components/Carousel/CarouselScrollButtons.js.map +1 -1
- package/dist/components/CarouselLinks/CarouselLinks.d.ts +1 -0
- package/dist/components/CarouselLinks/CarouselLinks.js +7 -8
- package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/dist/components/CarouselLinks/CarouselLinksContent.d.ts +2 -0
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/ContentPage/ContentPage.js +2 -2
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/Footer/Contacts.d.ts +0 -1
- package/dist/components/Footer/Contacts.js +3 -4
- package/dist/components/Footer/Contacts.js.map +1 -1
- package/dist/components/Footer/Footer.js +2 -2
- package/dist/components/Footer/Footer.js.map +1 -1
- package/dist/components/Footer/Footer.mobile.js +4 -3
- package/dist/components/Footer/Footer.mobile.js.map +1 -1
- package/dist/components/Footer/HorizontalNavigation.js +1 -1
- package/dist/components/Footer/HorizontalNavigation.js.map +1 -1
- package/dist/components/Footer/HorizontalNavigation.mobile.js +1 -1
- package/dist/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
- package/dist/components/Footer/MediaButton.d.ts +1 -1
- package/dist/components/Footer/SocialMedia.js +2 -1
- package/dist/components/Footer/SocialMedia.js.map +1 -1
- package/dist/components/Footer/TextInformation.js +1 -1
- package/dist/components/Footer/TextInformation.js.map +1 -1
- package/dist/components/Footer/buttonSizeStyles.d.ts +4 -0
- package/dist/components/Footer/buttonSizeStyles.js +7 -0
- package/dist/components/Footer/buttonSizeStyles.js.map +1 -0
- package/dist/components/Footer/buttonSizeStyles.mobile.d.ts +4 -0
- package/dist/components/Footer/buttonSizeStyles.mobile.js +7 -0
- package/dist/components/Footer/buttonSizeStyles.mobile.js.map +1 -0
- package/dist/components/Footer/buttonStylesWithText.js +2 -5
- package/dist/components/Footer/buttonStylesWithText.js.map +1 -1
- package/dist/components/MobileAppTile/renderDescription.js +1 -1
- package/dist/components/MobileAppTile/renderDescription.js.map +1 -1
- package/dist/components/RollupItem/RollupItem.js +1 -1
- package/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/dist/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +7 -0
- package/dist/services/regionsGrantSupport/RegionsGrantSupportData.js +2 -0
- package/dist/services/regionsGrantSupport/RegionsGrantSupportData.js.map +1 -0
- package/dist/ui-kit/LinkButton/LinkButton.js +4 -3
- package/dist/ui-kit/LinkButton/LinkButton.js.map +1 -1
- package/dist/ui-kit/LinkList/LinkList.js +2 -2
- package/dist/ui-kit/LinkList/LinkList.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +1 -0
- package/lib/components/ApplicationForm/ApplicationForm.fixture.mobile.d.ts +1 -0
- package/lib/components/ApplicationForm/ApplicationForm.js +16 -14
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +52 -6
- package/lib/components/ApplicationForm/ApplicationFormGrantSupport.d.ts +2 -0
- package/lib/components/ApplicationForm/ApplicationFormGrantSupport.js +20 -0
- package/lib/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -0
- package/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +1 -0
- package/lib/components/ApplicationForm/EmbeddableForms.d.ts +8 -0
- package/lib/components/ApplicationForm/EmbeddableForms.js +15 -0
- package/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -0
- package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/lib/components/Bonus/Bonus.fixture.mobile.d.ts +8 -0
- package/lib/components/Bonus/Bonus.js +10 -13
- package/lib/components/Bonus/Bonus.js.map +1 -1
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js +4 -4
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/CreditCalculatorForm.js +1 -1
- package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/DepositCalculatorForm.js +3 -3
- package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/lib/components/Carousel/Carousel.d.ts +1 -1
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/Carousel/CarouselScrollButtons.js +2 -2
- package/lib/components/Carousel/CarouselScrollButtons.js.map +1 -1
- package/lib/components/CarouselLinks/CarouselLinks.d.ts +1 -0
- package/lib/components/CarouselLinks/CarouselLinks.fixture.mobile.d.ts +6 -0
- package/lib/components/CarouselLinks/CarouselLinks.js +7 -8
- package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/lib/components/CarouselLinks/CarouselLinksContent.d.ts +2 -0
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/ContentPage/ContentPage.js +2 -2
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/Footer/Contacts.d.ts +0 -1
- package/lib/components/Footer/Contacts.js +3 -4
- package/lib/components/Footer/Contacts.js.map +1 -1
- package/lib/components/Footer/Footer.js +2 -2
- package/lib/components/Footer/Footer.js.map +1 -1
- package/lib/components/Footer/Footer.mobile.js +4 -3
- package/lib/components/Footer/Footer.mobile.js.map +1 -1
- package/lib/components/Footer/HorizontalNavigation.js +1 -1
- package/lib/components/Footer/HorizontalNavigation.js.map +1 -1
- package/lib/components/Footer/HorizontalNavigation.mobile.js +1 -1
- package/lib/components/Footer/HorizontalNavigation.mobile.js.map +1 -1
- package/lib/components/Footer/MediaButton.d.ts +1 -1
- package/lib/components/Footer/SocialMedia.js +2 -1
- package/lib/components/Footer/SocialMedia.js.map +1 -1
- package/lib/components/Footer/TextInformation.js +1 -1
- package/lib/components/Footer/TextInformation.js.map +1 -1
- package/lib/components/Footer/buttonSizeStyles.d.ts +4 -0
- package/lib/components/Footer/buttonSizeStyles.js +5 -0
- package/lib/components/Footer/buttonSizeStyles.js.map +1 -0
- package/lib/components/Footer/buttonSizeStyles.mobile.d.ts +4 -0
- package/lib/components/Footer/buttonSizeStyles.mobile.js +5 -0
- package/lib/components/Footer/buttonSizeStyles.mobile.js.map +1 -0
- package/lib/components/Footer/buttonStylesWithText.js +1 -4
- package/lib/components/Footer/buttonStylesWithText.js.map +1 -1
- package/lib/components/MobileAppTile/renderDescription.js +1 -1
- package/lib/components/MobileAppTile/renderDescription.js.map +1 -1
- package/lib/components/RollupItem/RollupItem.js +1 -1
- package/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/lib/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +7 -0
- package/lib/services/regionsGrantSupport/RegionsGrantSupportData.js +2 -0
- package/lib/services/regionsGrantSupport/RegionsGrantSupportData.js.map +1 -0
- package/lib/ui-kit/LinkButton/LinkButton.fixture.mobile.d.ts +6 -0
- package/lib/ui-kit/LinkButton/LinkButton.js +4 -3
- package/lib/ui-kit/LinkButton/LinkButton.js.map +1 -1
- package/lib/ui-kit/LinkList/LinkList.js +2 -2
- package/lib/ui-kit/LinkList/LinkList.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +65 -37
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +52 -6
- package/mobile/bundle/components/ApplicationForm/ApplicationFormGrantSupport.d.ts +2 -0
- package/mobile/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +1 -0
- package/mobile/bundle/components/ApplicationForm/EmbeddableForms.d.ts +8 -0
- package/mobile/bundle/components/Carousel/Carousel.d.ts +1 -1
- package/mobile/bundle/components/CarouselLinks/CarouselLinks.d.ts +1 -0
- package/mobile/bundle/components/CarouselLinks/CarouselLinksContent.d.ts +2 -0
- package/mobile/bundle/components/Footer/Contacts.d.ts +0 -1
- package/mobile/bundle/components/Footer/MediaButton.d.ts +1 -1
- package/mobile/bundle/components/Footer/SocialMedia.d.ts +4 -2
- package/mobile/bundle/components/Footer/buttonSizeStyles.d.ts +4 -0
- package/mobile/bundle/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +7 -0
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +16 -14
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +52 -6
- package/mobile/dist/components/ApplicationForm/ApplicationFormGrantSupport.d.ts +2 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormGrantSupport.js +22 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +1 -0
- package/mobile/dist/components/ApplicationForm/EmbeddableForms.d.ts +8 -0
- package/mobile/dist/components/ApplicationForm/EmbeddableForms.js +17 -0
- package/mobile/dist/components/ApplicationForm/EmbeddableForms.js.map +1 -0
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/dist/components/Bonus/Bonus.js +10 -13
- package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +4 -4
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js +1 -1
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js +3 -3
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Carousel/Carousel.d.ts +1 -1
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/Carousel/CarouselScrollButtons.js +2 -2
- package/mobile/dist/components/Carousel/CarouselScrollButtons.js.map +1 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinks.d.ts +1 -0
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js +7 -8
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinksContent.d.ts +2 -0
- package/mobile/dist/components/ContentPage/ContentPage.js +2 -2
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/components/Footer/Contacts.d.ts +0 -1
- package/mobile/dist/components/Footer/Contacts.js +3 -4
- package/mobile/dist/components/Footer/Contacts.js.map +1 -1
- package/mobile/dist/components/Footer/Footer.js +4 -3
- package/mobile/dist/components/Footer/Footer.js.map +1 -1
- package/mobile/dist/components/Footer/HorizontalNavigation.js +1 -1
- package/mobile/dist/components/Footer/HorizontalNavigation.js.map +1 -1
- package/mobile/dist/components/Footer/MediaButton.d.ts +1 -1
- package/mobile/dist/components/Footer/SocialMedia.d.ts +4 -2
- package/mobile/dist/components/Footer/SocialMedia.js +3 -1
- package/mobile/dist/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/dist/components/Footer/TextInformation.js +1 -1
- package/mobile/dist/components/Footer/TextInformation.js.map +1 -1
- package/mobile/dist/components/Footer/buttonSizeStyles.d.ts +4 -0
- package/mobile/dist/components/Footer/buttonSizeStyles.js +7 -0
- package/mobile/dist/components/Footer/buttonSizeStyles.js.map +1 -0
- package/mobile/dist/components/Footer/buttonStylesWithText.js +2 -5
- package/mobile/dist/components/Footer/buttonStylesWithText.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/renderDescription.js +1 -1
- package/mobile/dist/components/MobileAppTile/renderDescription.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/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +7 -0
- package/mobile/dist/services/regionsGrantSupport/RegionsGrantSupportData.js +2 -0
- package/mobile/dist/services/regionsGrantSupport/RegionsGrantSupportData.js.map +1 -0
- package/mobile/dist/ui-kit/LinkButton/LinkButton.js +4 -3
- package/mobile/dist/ui-kit/LinkButton/LinkButton.js.map +1 -1
- package/mobile/dist/ui-kit/LinkList/LinkList.js +2 -2
- package/mobile/dist/ui-kit/LinkList/LinkList.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +16 -14
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +52 -6
- package/mobile/lib/components/ApplicationForm/ApplicationFormGrantSupport.d.ts +2 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormGrantSupport.js +20 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormGrantSupport.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +1 -0
- package/mobile/lib/components/ApplicationForm/EmbeddableForms.d.ts +8 -0
- package/mobile/lib/components/ApplicationForm/EmbeddableForms.js +15 -0
- package/mobile/lib/components/ApplicationForm/EmbeddableForms.js.map +1 -0
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/lib/components/Bonus/Bonus.js +10 -13
- package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +4 -4
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js +1 -1
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js +3 -3
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Carousel/Carousel.d.ts +1 -1
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/Carousel/CarouselScrollButtons.js +2 -2
- package/mobile/lib/components/Carousel/CarouselScrollButtons.js.map +1 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinks.d.ts +1 -0
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js +7 -8
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinksContent.d.ts +2 -0
- package/mobile/lib/components/ContentPage/ContentPage.js +2 -2
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/Footer/Contacts.d.ts +0 -1
- package/mobile/lib/components/Footer/Contacts.js +3 -4
- package/mobile/lib/components/Footer/Contacts.js.map +1 -1
- package/mobile/lib/components/Footer/Footer.js +4 -3
- package/mobile/lib/components/Footer/Footer.js.map +1 -1
- package/mobile/lib/components/Footer/HorizontalNavigation.js +1 -1
- package/mobile/lib/components/Footer/HorizontalNavigation.js.map +1 -1
- package/mobile/lib/components/Footer/MediaButton.d.ts +1 -1
- package/mobile/lib/components/Footer/SocialMedia.d.ts +4 -2
- package/mobile/lib/components/Footer/SocialMedia.js +4 -2
- package/mobile/lib/components/Footer/SocialMedia.js.map +1 -1
- package/mobile/lib/components/Footer/TextInformation.js +1 -1
- package/mobile/lib/components/Footer/TextInformation.js.map +1 -1
- package/mobile/lib/components/Footer/buttonSizeStyles.d.ts +4 -0
- package/mobile/lib/components/Footer/buttonSizeStyles.js +5 -0
- package/mobile/lib/components/Footer/buttonSizeStyles.js.map +1 -0
- package/mobile/lib/components/Footer/buttonStylesWithText.js +1 -4
- package/mobile/lib/components/Footer/buttonStylesWithText.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/renderDescription.js +1 -1
- package/mobile/lib/components/MobileAppTile/renderDescription.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/services/regionsGrantSupport/RegionsGrantSupportData.d.ts +7 -0
- package/mobile/lib/services/regionsGrantSupport/RegionsGrantSupportData.js +2 -0
- package/mobile/lib/services/regionsGrantSupport/RegionsGrantSupportData.js.map +1 -0
- package/mobile/lib/ui-kit/LinkButton/LinkButton.js +4 -3
- package/mobile/lib/ui-kit/LinkButton/LinkButton.js.map +1 -1
- package/mobile/lib/ui-kit/LinkList/LinkList.js +2 -2
- package/mobile/lib/ui-kit/LinkList/LinkList.js.map +1 -1
- package/mobile/src/common.css +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +31 -19
- package/mobile/src/components/ApplicationForm/ApplicationForm.ui.json +12 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +70 -11
- package/mobile/src/components/ApplicationForm/ApplicationFormGrantSupport.tsx +51 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormsProps.ts +1 -0
- package/mobile/src/components/ApplicationForm/EmbeddableForms.tsx +15 -0
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/mobile/src/components/Bonus/Bonus.tsx +33 -28
- package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +11 -6
- package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +1 -1
- package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +3 -3
- package/mobile/src/components/Carousel/Carousel.tsx +5 -3
- package/mobile/src/components/Carousel/CarouselScrollButtons.tsx +10 -3
- package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +25 -14
- package/mobile/src/components/CarouselLinks/CarouselLinksContent.ts +2 -0
- package/mobile/src/components/ContentPage/ContentPage.tsx +3 -3
- package/mobile/src/components/Footer/Contacts.tsx +15 -19
- package/mobile/src/components/Footer/Footer.tsx +27 -13
- package/mobile/src/components/Footer/HorizontalNavigation.tsx +10 -3
- package/mobile/src/components/Footer/MediaButton.tsx +1 -1
- package/mobile/src/components/Footer/SocialMedia.tsx +22 -9
- package/mobile/src/components/Footer/TextInformation.tsx +2 -2
- package/mobile/src/components/Footer/buttonSizeStyles.ts +6 -0
- package/mobile/src/components/Footer/buttonStylesWithText.ts +1 -5
- package/mobile/src/components/MobileAppTile/renderDescription.tsx +1 -1
- package/mobile/src/components/RollupItem/RollupItem.tsx +1 -1
- package/mobile/src/services/regionsGrantSupport/RegionsGrantSupportData.ts +8 -0
- package/mobile/src/ui-kit/LinkButton/LinkButton.tsx +22 -9
- package/mobile/src/ui-kit/LinkList/LinkList.tsx +3 -3
- package/package.json +1 -1
- package/src/common.css +1 -1
- package/src/components/ApplicationForm/ApplicationForm.fixture.mobile.tsx +41 -7
- package/src/components/ApplicationForm/ApplicationForm.fixture.tsx +41 -7
- package/src/components/ApplicationForm/ApplicationForm.tsx +31 -19
- package/src/components/ApplicationForm/ApplicationForm.ui.json +12 -0
- package/src/components/ApplicationForm/ApplicationFormContent.ts +70 -11
- package/src/components/ApplicationForm/ApplicationFormGrantSupport.tsx +51 -0
- package/src/components/ApplicationForm/ApplicationFormsProps.ts +1 -0
- package/src/components/ApplicationForm/EmbeddableForms.tsx +15 -0
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/src/components/Bonus/Bonus.fixture.mobile.tsx +72 -0
- package/src/components/Bonus/Bonus.tsx +33 -28
- package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +11 -6
- package/src/components/Calculator/CreditCalculatorForm.tsx +1 -1
- package/src/components/Calculator/DepositCalculatorForm.tsx +3 -3
- package/src/components/Carousel/Carousel.tsx +5 -3
- package/src/components/Carousel/CarouselScrollButtons.tsx +10 -3
- package/src/components/CarouselLinks/CarouselLinks.fixture.mobile.tsx +34 -0
- package/src/components/CarouselLinks/CarouselLinks.fixture.tsx +3 -0
- package/src/components/CarouselLinks/CarouselLinks.tsx +25 -14
- package/src/components/CarouselLinks/CarouselLinksContent.ts +2 -0
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +1 -1
- package/src/components/ContentPage/ContentPage.tsx +3 -3
- package/src/components/Footer/Contacts.tsx +15 -19
- package/src/components/Footer/Footer.mobile.tsx +27 -13
- package/src/components/Footer/Footer.tsx +6 -8
- package/src/components/Footer/HorizontalNavigation.mobile.tsx +10 -3
- package/src/components/Footer/HorizontalNavigation.tsx +1 -1
- package/src/components/Footer/MediaButton.tsx +1 -1
- package/src/components/Footer/SocialMedia.tsx +9 -6
- package/src/components/Footer/TextInformation.tsx +2 -2
- package/src/components/Footer/buttonSizeStyles.mobile.ts +6 -0
- package/src/components/Footer/buttonSizeStyles.ts +6 -0
- package/src/components/Footer/buttonStylesWithText.ts +1 -5
- package/src/components/MobileAppTile/renderDescription.tsx +1 -1
- package/src/components/RollupItem/RollupItem.tsx +1 -1
- package/src/services/regionsGrantSupport/RegionsGrantSupportData.ts +8 -0
- package/src/ui-kit/LinkButton/LinkButton.fixture.mobile.tsx +11 -0
- package/src/ui-kit/LinkButton/LinkButton.fixture.tsx +1 -1
- package/src/ui-kit/LinkButton/LinkButton.tsx +22 -9
- package/src/ui-kit/LinkList/LinkList.tsx +3 -3
- package/tailwind.config.cjs +5 -5
- package/bundle/components/Footer/SocialMedia.mobile.d.ts +0 -6
- package/bundle/components/Footer/buttonStylesWithText.mobile.d.ts +0 -2
- package/dist/components/Footer/SocialMedia.mobile.d.ts +0 -6
- package/dist/components/Footer/SocialMedia.mobile.js +0 -7
- package/dist/components/Footer/SocialMedia.mobile.js.map +0 -1
- package/dist/components/Footer/buttonStylesWithText.mobile.d.ts +0 -2
- package/dist/components/Footer/buttonStylesWithText.mobile.js +0 -12
- package/dist/components/Footer/buttonStylesWithText.mobile.js.map +0 -1
- package/lib/components/Footer/SocialMedia.mobile.d.ts +0 -6
- package/lib/components/Footer/SocialMedia.mobile.js +0 -5
- package/lib/components/Footer/SocialMedia.mobile.js.map +0 -1
- package/lib/components/Footer/buttonStylesWithText.mobile.d.ts +0 -2
- package/lib/components/Footer/buttonStylesWithText.mobile.js +0 -9
- package/lib/components/Footer/buttonStylesWithText.mobile.js.map +0 -1
- package/src/components/Footer/SocialMedia.mobile.tsx +0 -16
- package/src/components/Footer/buttonStylesWithText.mobile.ts +0 -15
|
@@ -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).UniMobileBlocks={})}(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=e=>e&&!e.endsWith("/")?`${e}/`:e,c={PROD_BRANCH:"master"},d=new class{_=c;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||c.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 o(this._.CDN)}get BASE_PATH(){return o(this._.BASE_PATH)}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},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/${d.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/${d.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/${d.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),g=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:f(e)),t._tmpl},f=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 x{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 b=new x;function v(e,{sensitivity:t,rootRef:n}={}){const l=s(null),r=i((()=>({threshold:y(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 y(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 N=new x;const w=(...e)=>e.flatMap((e=>e)).filter(Boolean).join(" "),k={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","":""},C=g((({className:e,version:t="primary",isTheme:n=!0,defaultPadding:i="p-xl",padding:s,block:o,tag:c="section",role:d,children:m})=>{const h=c,p=function(e){return v(r((t=>{if(!e||!t?.length)return;const n=t[t.length-1];N.fire("intersection",{block:e,intersection:n})}),[e]),{sensitivity:1})}(o),[g,f]=l(!1);a((()=>b.subscribe("tab",(e=>{f(Boolean(e.label&&o?.labels?.length&&!o.labels.includes(e.label)))}))),[o]);const x=t&&n;return u(h,{className:w("@container font-sans",x?"group":"",k[t],g?"hidden":"",s||i,e),...x?{"data-ver":t}:{},...o?.anchor?{id:o.anchor,ref:p}:{},role:d,children:m})})),S={h1:"h1",h2:"h1",h3:"h2",h4:"h2",h5:"h3",h6:"h3"},T={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},I=g((({className:e="",headingType:t="h3",as:n="h3",title:l,children:a})=>{const r=S[n]||"h3";return u(r,{className:w("font-sans m-0",T[t],e),children:l||a})})),B=e=>e,_=(e,t)=>{const[n,a]=l(e),[i,o]=l(!1),[c,d]=l({}),m=s({}),h=r(((e,t)=>{const{parse:l=B,format:r=B}=t||{};return m.current||(m.current={}),m.current[e]||=t=>{a((n=>({...n,[e]:l(t)}))),d((t=>({...t,[e]:!0})))},{value:r(n[e]),isDirty:i||c[e],onChange:m.current[e]}}),[n,i,c]),u=r((()=>{a(e),o(!1),d({})}),[e]),p=r((e=>{e.preventDefault(),o(!0),t&&t(n)}),[t,n]);return[n,{isDirty:i||Object.values(c).some(Boolean),field:h,reset:u,onSubmit:p}]},R=e=>t=>t&&Object.entries(e).flatMap((([e,n])=>n(t[e])))||[],z=e=>!e?.length,j=e=>t=>n=>e(n)?[]:[t],P=e=>null!=e,L=new Map;function $(e,t,{fallback:n,cache:r}={}){const s=i((()=>M(e)),[e]),[o]=(e=>Boolean(e&&Array.isArray(e)&&1===e.length&&"string"==typeof e[0]))(s)?s:[],[c,d]=l(void 0),[m,h]=l(void 0);a((()=>{!s.some(P)||(async()=>{try{const e=await(o?((e,t=L)=>n=>{const l=t.get(n);if(P(l))return l;const a=e(n);return P(a)?t.set(n,Promise.resolve(a)):t.delete(n),a})(t,r)(o):t(...s));d(e),h(void 0)}catch(e){d(void 0),h(e)}})()}),[t,r,s]);const u=n&&o&&n[o];return{data:!c&&u?u:c,error:m,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function M(e){return Array.isArray(e)?e:e instanceof Function?M(e()):[e]}async function V(e,t){try{return e?await A(e,t):null}catch(e){console.error(e)}return null}async function A(e,t){const n=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await n.json()}const O=[];function D(){const{data:e}=$("/api/v1/regions",A);return e||O}const F=e=>Boolean(e?.includes(":")),E=(e,t)=>Boolean(e&&!F(e)&&(!t||"_self"===t)),U=(...e)=>e.filter(Boolean).join("/").replace(/\/+/g,"/");var H=Object.freeze({__proto__:null,isURL:F,isLocalURL:E,isHash:e=>Boolean(e?.startsWith("#")),withoutQuery:e=>(e||"").replace(/\?.*/,"").replace(/\/$/,""),joinPath:U});const W=e=>(t,n=d.BASE_PATH)=>{if(!t||F(t)||X(t,d.CDN))return t;const l=t.startsWith("/");return U(X(t,n)?"":n,l?"/":e.pathname?.split("/").slice(0,-1).join("/"),t)},X=(e,t)=>t&&e&&e.startsWith(t),G=(e,t)=>G._impl(e,t);function J(){return J._impl()}function Y(e={}){const{isRemote:t,basePath:n}=e,l=J(),{close:a}=((e="")=>({open:t=>b.fire("dialog",{type:"open",id:e,message:t}),close:()=>b.fire("dialog",{type:"close"})}))();return e=>({...e,href:t&&!n?e.href:W(l)(e.href,n),"aria-label":e.text,onClick:G(r(e),e)});function r({href:e,target:n,onClick:r}){return i=>{r&&r(i),e&&!t&&E(e,n)&&(a(),i?.preventDefault(),l.push(e))}}}G._impl=e=>e,G.setup=e=>{G._impl=e},J._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{},back:()=>{}}),J.setup=e=>{J._impl=e};const q={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","":""},K="bg-main-divider text-main-disabled",Z={primary:K,secondary:K,white:K,link:"",transparent:"",gray:K,"":""},Q="text-center font-sans select-none",ee={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","":""},te=g((e=>{const{text:t,aboveText:n,appendLeft:l,appendRight:a,version:r="primary"}=e;return p("div",{className:w(ne(e),"flex gap-2"),children:[l?u("div",{className:ee[r],children:l}):null,le(e)?p("div",{children:[n?u("div",{className:"text-xs font-light text-left",children:n}):null,u("div",{className:"text-left "+(n?"text-s -mt-3xs":"text-l"),children:t})]}):null,a?u("div",{className:ee[r],children:a}):null]})})),ne=e=>{const{version:t,aboveText:n,rounded:l}=e;if("link"===t)return"";const a=""+(n?"py-2.5 px-9":"py-4 px-9");return["group/btn items-center justify-center",le(e)?a:"h-12 w-12",l?"rounded-full":""].join(" ")},le=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),ae=({className:e,rounded:t,version:n})=>["inline-block",Q,n?Z[n]:"",t?"rounded-full":"rounded-md",e].join(" "),re=({className:e,rounded:t,version:n})=>[Q,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border h-fit",n?q[n]:"",t?"rounded-full":"rounded-md",e].join(" "),ie=g((({disabled:e,children:t,...n})=>{const l=Y()(n),a=t??u(te,{...l});return u(e?oe:se,{...l,children:a})})),se=g((({className:e="",href:t,rel:n,target:l,ariaLabel:a,version:r,rounded:i,onClick:s,children:o})=>u("a",{className:re({className:e,version:r,rounded:i}),href:t,rel:n,target:l,"aria-label":a,role:t?"link":"button",onClick:s,children:o}))),oe=g((({className:e,ariaLabel:t,version:n,rounded:l,children:a})=>u("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:ae({className:e,rounded:l,version:n}),children:a}))),ce=g((({children:e,...t})=>u("p",{className:w("font-sans",Object.values(t)),children:e}))),de=g((({children:e,...t})=>u("span",{className:w("font-sans",Object.values(t)),children:e}))),me=g((({link:e})=>p(ce,{size:"text-s",font:"font-light",color:"text-secondary-text",children:[u(de,{children:"Нажимая кнопку, вы подтверждаете согласие с "}),e?u(ie,{href:e.href,ariaLabel:"условия передачи данных",target:e.target,className:"text-primary-main",children:u(de,{children:e.text})}):null]}))),he=(e,t)=>{const{value:n,isDirty:l}=e,a=l?t(n):[];return{...e,errors:a,error:a[0]}},ue=g((({key:e,className:t="",inputClassName:n="",id:l,name:a,type:i="text",label:s,placeholder:o,value:c="",valid:d=!0,children:m,onChange:h,onFocus:g,onBlur:f,pattern:x})=>{const b=r((e=>{h&&h(e.target?.value||"")}),[h]),v=m?"pr-8":"",y=d?"border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text":"border-error";return p("div",{className:w("relative",t),children:[p("label",{children:[s?u("div",{className:"mb-xs",children:u(de,{size:"text-m",font:"font-light",children:s})}):null,u("input",{className:w("w-full border rounded-md text-primary-text outline-none p-4",v,y,n),id:l,name:a||l,placeholder:o,type:i,value:c,onInput:b,onFocus:g,onBlur:f,pattern:x},e)]}),m]})})),pe=g((({className:e,label:t,value:n="",error:l,onChange:a,onBlur:r})=>p("div",{className:e,children:[u(ue,{type:"text","aria-label":t,label:t,valid:Boolean(!l),value:n,onChange:a,onBlur:r}),u("div",{className:"h-2",children:l?u(de,{size:"text-xs",font:"font-light",color:"text-error",children:l}):null})]}))),ge=e=>"_"===e,fe=e=>/\d/.test(e),xe=e=>ge(e)||fe(e),be=[..."+7 (___) ___-__-__"],ve=be.findIndex(ge),ye=be.map(((e,t)=>xe(e)?be.slice(0,t).filter(xe).length:-1));const Ne=g((({children:e,onChange:t,...n})=>{const l=r((e=>t&&t(function(e){const t=e.replace(/\D/g,""),n=be.map(((e,n)=>fe(e)?e:t.charAt(ye[n])||e)),l=ye.indexOf(t.length-1)+1;return(l?n.slice(0,Math.max(ve,l)):n).join("")}(e))),[t]);return u(ue,{onChange:l,onFocus:e=>l(e?.target?.value||""),...n,children:e})})),we=g((({className:e,label:t,value:n,error:l,onChange:a,onBlur:r})=>p("div",{className:e,children:[u(Ne,{"aria-label":t,label:t,valid:Boolean(!l),value:n,onChange:a,onBlur:r}),u("div",{className:"h-2",children:l?u(de,{size:"text-xs",font:"font-light",color:"text-error",children:l}):null})]}))),ke="Некорректно заполненное поле",Ce=j((e=>null!=e&&""!==e))(ke),Se=j((e=>"string"==typeof e&&e.length>1))(ke),Te=j((e=>"string"==typeof e&&(10===e.length||12===e.length)))(ke),Ie=(Be=/^(\+7)?[\s-]?\(?[0-9]{3}\)?[\s-]?[0-9]{3}[\s-]?[0-9]{2}[\s-]?[0-9]{2}$/,j((e=>"string"==typeof e&&Be.test(e))))(ke);var Be;const _e=e=>p("div",{className:"mb-4 sm:flex sm:justify-between sm:gap-5 sm:mb-7",children:[p("div",{className:"sm:w-1/2",children:[u(pe,{className:"shrink-0 w-full mb-3",label:"Наименование организации",...he(e("fullName"),Ce)}),u(pe,{className:"shrink-0 w-full mb-3",label:"Контактное лицо",...he(e("name"),Se)})]}),p("div",{className:"sm:w-1/2",children:[u(pe,{className:"shrink-0 w-full mb-3",label:"ИНН",...he(e("inn"),Te)}),u(we,{className:"shrink-0 w-full mb-3",label:"Телефон",...he(e("phone"),Ie)})]})]}),Re=[{name:"Торговый эквайринг"},{name:"Мобильный эквайринг"},{name:"Интернет-эквайринг"},{name:"QR-эквайринг (СБП)"},{name:"Все виды эквайринга"}];function ze(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}]}const je={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},Pe=g((({className:e="",imageClassName:t="",name:n="",alt:l=`Иконка ${n}`,title:a=l,iconVersion:r="color",...i})=>{const s=J(),o=W(s)(U(d.CDN,"/icons",`${n}.svg`));return"normal"!==r?u($e,{className:e,children:p("svg",{className:w(Le(i.width),je[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}))})),Le=e=>e?"":"w-full h-full",$e=g((({className:e,children:t})=>e?u("div",{className:e,children:t}):t)),Me=g((({className:e="",label:t,options:n=[],value:l,valid:i=!0,isBorder:o=!0,placeholder:c="",onChange:d})=>{const[m,{setFalse:h,toggle:g}]=ze(),f=function(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}(h),x=r((e=>{h(),d&&d(e)}),[d]);return p("div",{className:e,ref:f,children:[t?u("div",{className:"mb-xs",children:u(de,{size:"text-m",color:"text-primary-text",font:"font-light",children:t})}):null,p("div",{className:w("relative",m?"z-20":"z-10"),children:[p("div",{className:w("text-l flex justify-between items-center text-primary-text cursor-pointer",Oe(o,i)),onClick:g,children:[u("p",{className:"p-4 pr-8 h-14 overflow-hidden text-ellipsis whitespace-nowrap",children:Ae(l)||c}),u(Pe,{className:w("absolute right-3",m?"":"rotate-180"),name:"ArrowUpIcon",width:"16",height:"16"})]}),n?.length?u("div",{className:w("h-0",m?"":"overflow-hidden"),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:n.map(Ve(x,m,(e=>e.key===l?.key)))})}):null]})]})})),Ve=(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:Ae(l)}),u(Pe,{name:"DoneSimpleIcon",width:"16",height:"16",className:w("absolute right-4 pt-0.5",n(l)&&t?"":"hidden")})]},String(a)),Ae=e=>e?.text||e?.key||"",Oe=(e,t)=>w(e?"border rounded-md hover:border-primary-hover":"",t?" border-gray":"border-error"),De=g((e=>p("div",{children:[u(Me,{...e,valid:!e.error}),u("div",{className:"h-2",children:e.error?u(de,{size:"text-xs",font:"font-light",color:"text-error",children:e.error}):null})]}))),Fe=({regions:e,field:t})=>p("div",{className:"mb-4 pb-1 border-b border-b-main-divider sm:flex sm:justify-between sm:gap-5 sm:mb-7 sm:border-none sm:pb-0",children:[u("div",{className:"mb-3 sm:mb-0 sm:w-1/2",children:u(De,{label:"Вид эквайринга",placeholder:"Выберите эквайринг",options:Re.map((({name:e=""})=>({key:e,text:e}))),...he(t("acquiringType"),Ce)})}),u("div",{className:"mb-3 sm:mb-0 sm:w-1/2",children:u(De,{label:"Адрес",placeholder:"Выберите адрес",options:e.map((({code:e="",name:t=""})=>({key:e,text:t}))),...he(t("region"),Ce)})})]}),Ee=g((({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-s",onClick:()=>l&&l(!e),children:[u("div",{className:w("relative flex-shrink-0 duration-300 w-9 h-5 mr-s rounded-2xl",e?"bg-primary-main":"bg-main-divider"),children:u("div",{className:w("absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded-full",e?"left-1/2":"left-[5%]")})}),u(de,{size:"text-l",font:"font-light",color:"text-primary-text",children:t})]}))),Ue=e=>p("div",{className:"sm:mb-5",children:[u(Ee,{text:"Хочу купить онлайн-кассу",...e("onlineCheckout")}),u(Ee,{text:"Хочу купить POS-терминал",...e("posTerminal")})]}),He=(e,t)=>{const n=re({className:"text-white",version:e?.version});return u("button",{type:"submit",className:w("p-4 mt-3 w-full sm:mt-0 sm:w-auto",n,t),children:e?.text?e.text:"Отправить заявку"})},We={acquiringType:{key:"Торговый эквайринг"},fullName:"",inn:"",name:"",phone:"",onlineCheckout:!1,posTerminal:!1},Xe=R({acquiringType:Ce,region:Ce,fullName:Ce,inn:Te,name:Se,phone:Ie}),Ge=g((e=>{const{button:t,link:n,onSubmit:l}=e,a=r((e=>{const{acquiringType:t,region:n,fullName:a,inn:r,name:i,phone:s,onlineCheckout:o,posTerminal:c}=e;z(Xe(e))&&l({typeForm:"acqr",region:n?.text||"",partnerComments:`Вид эквайринга=${t?.key||""}/Онлайн касса=${o}/POS-терминал=${c}`,fullName:a,inn:r,name:i,phone:s})}),[l]),[,{field:i,...s}]=_(We,a),o=D();return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(I,{headingType:"h6",title:"Вид эквайринга и регион",className:"sm:text-center mb-4"}),Fe({regions:o,field:i}),u(I,{headingType:"h6",title:"Данные организации",className:"sm:text-center mb-4"}),_e(i),Ue(i),He(t,"mb-4"),u(me,{link:n})]})})),Je=e=>p("div",{className:"sm:flex sm:justify-between sm:gap-5",children:[p("div",{className:"sm:w-1/2",children:[u(pe,{className:"shrink-0 w-full mb-3",label:"Контактное лицо",...he(e("name"),Se)}),u(pe,{className:"shrink-0 w-full mb-3",label:"ИНН",...he(e("inn"),Te)})]}),p("div",{className:"sm:w-1/2",children:[u(we,{className:"shrink-0 w-full mb-3",label:"Телефон",...he(e("phone"),Ie)}),u(pe,{className:"shrink-0 w-full mb-3",label:"Электронная почта",...he(e("mail"),Ce)})]})]}),Ye=({regions:e,field:t})=>u("div",{className:"w-full mb-3 sm:mb-5",children:u(De,{label:"Регион",placeholder:"Выберите регион",options:e.map((({code:e="",name:t=""})=>({key:e,text:t}))),...he(t("region"),Ce)})}),qe={name:"",phone:"",inn:"",mail:""},Ke=R({region:Ce,name:Se,phone:Ie,inn:Te,mail:Ce}),Ze=g((e=>{const{button:t,link:n,onSubmit:l}=e,a=r((e=>{const{region:t,name:n,phone:a,inn:r,mail:i}=e;z(Ke(e))&&l({typeForm:"bcrd",region:t?.text||"",name:n,phone:a,inn:r,mail:i})}),[l]),[,{field:i,...s}]=_(qe,a),o=D();return p("form",{className:"container",onSubmit:s.onSubmit,children:[Ye({regions:o,field:i}),Je(i),He(t,"mb-4"),u(me,{link:n})]})})),Qe=[];const et=async e=>await V(e,{method:"GET"})||Qe,tt=["От 1 000 ₽","До 1 000 000 000 ₽"],nt=["От 1 мес","До 15 лет"],lt=e=>p("div",{className:"mb-4 pb-1 border-b border-b-main-divider sm:flex sm:justify-between sm:gap-5 sm:mb-7 sm:border-none sm:pb-0",children:[p("div",{className:"sm:w-1/2",children:[u(pe,{className:"shrink-0 w-full mb-3",label:"Наименование организации",...e("fullName")}),u(pe,{className:"shrink-0 w-full mb-3",label:"ИНН",...he(e("inn"),Te)}),u(we,{className:"shrink-0 w-full mb-3",label:"Телефон",...he(e("phone"),Ie)})]}),p("div",{className:"sm:w-1/2",children:[u(pe,{className:"shrink-0 w-full mb-3",label:"Годовая выручка, ₽",...he(e("annualRevenue"),Ce)}),u(pe,{className:"shrink-0 w-full mb-3",label:"Контактное лицо",...he(e("name"),Se)}),u(pe,{className:"shrink-0 w-full mb-3",label:"Электронная почта",...e("mail")})]})]}),at=(e,{normalize:t,format:n})=>{const{value:a,onFocus:i,onBlur:s,onChange:o}=e,[c,d]=l(!1),m=r((e=>{d(!0),i&&i(e)}),[]),h=r((()=>{d(!1),o&&o(t(a)),s&&s()}),[o,a]);return{value:c||!n?a:n(a),onFocus:m,onBlur:h}},rt=(e,t,n)=>Math.max(t,Math.min(e,n)),it=(e=0)=>(t=0)=>new Intl.NumberFormat("ru-RU",{minimumFractionDigits:0,maximumFractionDigits:e}).format(Number(t)||0);function st(e){const t=(e||"").replace(/\D/g,""),n=parseInt(t,10);return Number.isNaN(n)?0:n}function ot({list:e=[],min:t,max:n,step:l,value:a=e[0]||t,disabled:r,onChange:i}){const s=e.length?e.indexOf(a):a,o={backgroundSize:`${(100*(s-t)/(n-t)).toFixed(2)}% 100%`};return p("div",{children:[e.length?u("div",{className:"absolute w-full flex justify-between -bottom-[3px] px-4",children:e.map(((e,t)=>u("div",{className:"w-2 h-2 rounded-full "+(s<=t||r?"bg-gray":"bg-primary-main")},String(t))))}):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",style:o,type:"range",min:t,max:n,step:l,value:s,disabled:r,onInput:t=>{const n=st(t.target?.value),l=e.length?e[n]:n;i&&i(l||0)}})})]})}const ct=1,dt=100,mt=g((e=>{const{className:t,title:n,items:l=[],list:a=[],min:i=(a.length?0:ct),max:s=(a.length?a.length-1:dt),step:o=1,value:c=a[0]||i,disabled:d=!1,onChange:m}=e,h=at(e,{normalize:(e=0)=>a.length?ht(a)(e):rt(e,i,s),format:it()}),g=r((e=>{m&&m(st(e.target?.value))}),[m]);return p("div",{className:t,children:[p("label",{className:"block relative",children:[n?u(de,{size:"text-m",font:"font-light",color:"text-primary-text",children:n}):null,u("input",{className:w("m-0 mt-xs font-sans text-h3 w-full h-14","border border-solid border-gray rounded-md 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"),disabled:d,onInput:g,...h}),ot({list:a,min:i,max:s,step:o,disabled:d,value:c,onChange:m})]}),ut(l)]})})),ht=e=>t=>e.reduce(((e,n)=>Math.abs(n-t)<Math.abs(e-t)?n:e)),ut=e=>u("div",{className:"flex justify-between my-2",children:e.map(((e,t)=>u(de,{size:"text-s",font:"font-light",color:"text-secondary-text",children:e},String(t))))}),pt=e=>p("div",{className:"mb-4 pb-1 border-b border-b-main-divider sm:flex sm:justify-between sm:gap-5 sm:mb-7 sm:border-none sm:pb-0",children:[p("div",{className:"mb-3 sm:mb-0 sm:w-1/2",children:[u("label",{children:u(de,{size:"text-m",font:"font-light",children:"Сумма кредита, ₽"})}),u(mt,{items:tt,min:1e3,max:1e9,...e("amount")})]}),p("div",{className:"sm:w-1/2",children:[u("label",{children:u(de,{size:"text-m",font:"font-light",children:"Срок кредита, месяцев"})}),u(mt,{items:nt,min:1,max:180,...e("term")})]})]}),gt=({regions:e,branches:t,field:n})=>p("div",{className:"mb-4 sm:flex sm:justify-between sm:gap-5 sm:mb-7 sm:border-none sm:pb-0",children:[u("div",{className:"mb-3 sm:mb-0 sm:w-1/2",children:u(De,{label:"Регион",placeholder:"Выберите регион",options:e.map((({code:e="",name:t=""})=>({key:e,text:t}))),...he(n("region"),Ce)})}),u("div",{className:"mb-3 sm:mb-0 sm:w-1/2",children:u(De,{label:"Адрес",placeholder:"Выберите адрес",options:t.map((({branchCode:e="",address:t=""})=>({key:e,text:t}))),...he(n("department"),Ce)})})]}),ft={amount:1e3,term:12,fullName:"",inn:"",name:"",phone:"",mail:"",annualRevenue:""},xt=R({annualRevenue:Ce,inn:Te,name:Se,phone:Ie,region:Ce,department:Ce}),bt=g((({button:e,link:t,onSubmit:n})=>{const l=r((e=>{const{amount:t,term:l,fullName:a,inn:r,name:i,phone:s,mail:o,region:c,department:d,annualRevenue:m}=e;z(xt(e))&&n({typeForm:"cred",fullName:a,inn:r,name:i,phone:s,mail:o,region:c?.text||"",department:d?.text||"",partnerComments:`Сумма=${t}/Срок=${l}/Выручка=${m}`})}),[n]),[a,{field:i,...s}]=_(ft,l),o=D(),c=function(e){const{data:t}=$(e?`/api/v1/branches?regionCode=${e}`:null,et);return t||Qe}(a.region?.key).filter((e=>e?.address));return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(I,{headingType:"h6",title:"Параметры кредита",className:"sm:text-center mb-4"}),pt(i),u(I,{headingType:"h6",title:"Данные организации",className:"sm:text-center mb-4"}),lt(i),u(I,{headingType:"h6",title:"Офис банка",className:"sm:text-center mb-4"}),gt({regions:o,branches:c,field:i}),He(e,"mb-4"),u(me,{link:t})]})})),vt={name:"",phone:""},yt=R({name:Se,phone:Ie}),Nt=g((e=>{const{button:t,link:n,onSubmit:l}=e,a=r((e=>{const{name:t,phone:n}=e;z(yt(e))&&l({typeForm:"dpst",name:t,phone:n})}),[l]),[,{field:i,...s}]=_(vt,a);return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(I,{headingType:"h6",title:"Оставьте заявку и мы ответим на любые вопросы по депозитам",className:"sm:text-center mb-4"}),p("div",{className:"max-w-[560px] m-auto",children:[u(pe,{className:"shrink-0 w-full mb-3",label:"Имя",...he(i("name"),Se)}),u(we,{className:"shrink-0 w-full mb-3",label:"Телефон",...he(i("phone"),Ie)})]}),p("div",{className:"flex justify-between flex-col-reverse sm:items-center sm:flex-row max-w-[560px] m-auto",children:[u("div",{className:"flex-1 mt-4 sm:mt-0",children:u(me,{link:n})}),He(t)]})]})})),wt=(e,t)=>e?.media&&t?.media?e.media-t.media:0,kt=g((({className:e="",image:t,imageClassName:n="",pathPrefix:l})=>{const a=J();return p("picture",{className:e,children:[t?.sources?.length?t.sources.filter((e=>e?.src)).sort(wt).map((({src:e,format:n,media:r},i)=>u("source",{srcSet:St(a,l)(e),type:Tt(n),media:r?`(max-width: ${r}px)`:"",...t.size},`${i}_${e}`))):null,t?.src?Ct({...t,src:St(a,l)(t.src)},n):null]})})),Ct=(e,t="")=>u("img",{src:e.src,className:w("object-contain",t),alt:e.alt||e.title,title:e.title||"",style:{width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"auto"},...e.size}),St=(e,t)=>n=>n&&!F(n)?W(e)(U(t,n)):n,Tt=e=>e?`image/${String(e)}`:void 0,It=g((({className:e="",image:t,imageClassName:n="",pathPrefix:l,...a})=>t?.src||t?.icon?t.icon?u(Pe,{className:e,imageClassName:n,iconVersion:t?.iconVersion,name:t.icon,...a}):u(kt,{className:e,imageClassName:n,image:t,pathPrefix:l}):null)),Bt=g((({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)))}))),_t=[{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"}],Rt=g((({className:e,value:t,text:n,disabled:l,isRadio:a,onChange:i})=>{const s=r((e=>{l||(e.preventDefault(),i&&i(!t))}),[i,l,t]),o=a?u("div",{className:"absolute left-1 w-3 h-3 rounded-full bg-primary-main"}):u(Bt,{paths:_t,className:"absolute left-1 ml-px block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"});return u("div",{className:e,children:p("label",{className:"flex items-center relative cursor-pointer group/box",onClick:s,children:[u("div",{className:w("appearance-none w-5 h-5 border-solid cursor-pointer m-0",a?"rounded-full border-2":zt(t),t?"border-primary-main":"border-gray",l?"bg-main-disabled":"group-hover/box:border-primary-hover"),role:"checkbox","aria-checked":Boolean(t),"aria-disabled":Boolean(l)}),t?o:null,n?u("div",{className:"ml-3",children:u(de,{size:"text-l",font:"font-light",children:n})}):null]})})})),zt=e=>w("rounded border",e?"bg-primary-main":""),jt=e=>{const t=e("text");return p("div",{className:"mb-3 sm:mb-6",children:[p("div",{className:"mb-4 sm:flex sm:items-center sm:gap-6",children:[u(Rt,{className:"mb-3 sm:mb-0",text:"Валютный контроль",...e("currencyControl")}),u(Rt,{className:"mb-3 sm:mb-0",text:"Документарные операции",...e("documentaryOperations")}),u(Rt,{className:"mb-3 sm:mb-0",text:"Конверсионные операции",...e("conversionOperations")})]}),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:t.value,onInput:e=>t.onChange&&t.onChange(e.target?.value||"")})]})},Pt=e=>p("div",{children:[p("div",{className:"sm:flex sm:justify-between sm:gap-lg",children:[u("div",{className:"sm:w-1/2",children:u(pe,{className:"shrink-0 w-full mb-s",label:"Наименование организации",...he(e("fullName"),Ce)})}),u("div",{className:"sm:w-1/2",children:u(pe,{className:"shrink-0 w-full mb-s",label:"ФИО",...he(e("name"),Se)})})]}),p("div",{className:"sm:flex sm:justify-between sm:gap-lg sm:mb-2xl",children:[u("div",{className:"sm:w-1/2",children:u(we,{className:"shrink-0 w-full mb-s",label:"Телефон",...he(e("phone"),Ie)})}),u("div",{className:"sm:w-1/2",children:u(pe,{className:"shrink-0 w-full mb-s",label:"Электронная почта",...he(e("mail"),Ce)})})]})]}),Lt={fullName:"",name:"",phone:"",mail:"",currencyControl:!1,documentaryOperations:!1,conversionOperations:!1,text:""},$t=R({fullName:Ce,name:Se,phone:Ie,mail:Ce}),Mt=g((e=>{const{button:t,link:n,onSubmit:l}=e,a=r((e=>{const{fullName:t,name:n,phone:a,mail:r,currencyControl:i,documentaryOperations:s,conversionOperations:o,text:c}=e;z($t(e))&&l({typeForm:"kved",fullName:t,name:n,phone:a,mail:r,partnerComments:`Валютный контроль=${i}/Документарные операции=${s}/Конверсионные операции=${o}/Доп инф=${c}`})}),[l]),[,{field:i,...s}]=_(Lt,a);return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(I,{headingType:"h6",title:"Данные организации",className:"sm:text-center mb-m"}),Pt(i),u(I,{headingType:"h6",title:"Интересующий вопрос",className:"sm:text-center mb-m"}),jt(i),p("div",{className:"flex flex-col border-b border-main-divider mb-5 pb-5 sm:items-center sm:flex-row sm:mb-9 sm:pb-9",children:[He(t,"mb-m sm:mr-lg sm:mb-0"),u(me,{link:n})]}),u(I,{headingType:"h6",title:"Или свяжитесь с нами удобным способом",className:"sm:text-center mb-m"}),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(It,{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(It,{image:{icon:"MailIcon"},width:"24",height:"24",className:"mr-3"}),u("span",{children:"ved@rshb.ru"})]})]})]})})),Vt=g((({responseType:e})=>{const t="OK"===e;return p("div",{className:`flex items-center mt-lg p-lg rounded-md space-x-m ${t?"bg-ok":"bg-fail"}`,children:[u(It,t?{image:{icon:"ResponceOKIcon"},width:"42",height:"42"}:{image:{icon:"ResponceFailIcon"},width:"37",height:"34"}),p("div",{children:[u(I,{headingType:"h6",title:t?"Ваша заявка отправлена":"Не удалось отправить заявку",className:"mb-1"}),u(de,{size:"text-l",font:"font-light",color:"text-secondary-text",children:t?"Совсем скоро мы с вами свяжемся":"Пожалуйста, повторите позднее"})]})]})})),At={credit:e=>u(bt,{...e}),acquiring:e=>u(Ge,{...e}),"business-card":e=>u(Ze,{...e}),deposit:e=>u(Nt,{...e}),wed:e=>u(Mt,{...e})},Ot={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}}},Dt=g((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 Ot.send(e)?"OK":"Fail";return d(t),t}),[]);return u(C,{className:t,defaultPadding:"p-6xl",...o,children:p("div",{className:"container max-w-[978px]",children:[n?u(I,{headingType:"h3",title:n,className:"mb-4 sm:mb-8 sm:text-center"}):null,At[a]({button:i,link:s,onSubmit:m}),c?u(Vt,{responseType:c}):null]})})})),Ft={"":"bg-main-divider group-data-secondary:bg-white/30",primary:"bg-main-divider",secondary:"bg-secondary-light",opacity:"bg-white/30"},Et=g((({className:e,defaultIconSize:t=44,iconBgVersion:n="primary",size:l,icon:a,...r})=>{const i=String(l?.width||t);return a?u("div",{style:{width:`${i}px`,height:`${i}px`},className:w("rounded-icon object-fit flex justify-center items-center ",Ft[n],e),children:u(Pe,{...r,width:"54%",height:"54%",name:a})}):null})),Ut=g((({className:e="",title:t,benefitList:n,...l})=>p(C,{className:e,defaultPadding:"p-6xl",...l,children:[t?u(I,{headingType:"h3",as:"h2",className:"text-center",title:t}):null,n?.length?u("div",{className:"flex flex-wrap w-full sm:justify-center mt-xl gap-5xl",role:"list",children:n.map(Ht)}):null]}))),Ht=(e,t)=>p("div",{className:"flex gap-m items-center md:basis-1/2 md:max-w-[400px]",role:"listitem",children:[e?.icon?.icon?u(Et,{className:"shrink-0",defaultIconSize:56,iconBgVersion:e?.iconBgVersion||"",...e?.icon}):null,e?.icon?.src?u(It,{className:"shrink-0",image:e.icon}):null,e?.label?p("div",{className:"sm:h-full",children:[u(I,{headingType:"h6",children:e.label}),Wt(e.description)]}):null]},String(t)),Wt=e=>{const t=e?.benefitType||null;return e&&t?u("div",{className:"mt-xs text-l font-light text-secondary-text group-data-secondary:text-white/80",children:"list"===t?Gt(e):Xt(e)}):null},Xt=e=>e?.name||null,Gt=e=>{const t=e?.bullets?"list-disc pl-3xl":"";return e?.items&&e.items.length>0?u("ul",{className:t,children:e.items.map(((e,t)=>u("li",{children:e},`benefitListItem-${t}`)))}):null},Jt={XXL:{title:{headingType:"h0",as:"h1"},descriptionSize:"text-h5",descriptionWeight:"font-normal",descriptionStyle:"mt-xl"},XL:{title:{headingType:"h1",as:"h1"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-m"},L:{title:{headingType:"h2",as:"h2"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-m"},M:{title:{headingType:"h3",as:"h2"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-s"},S:{title:{headingType:"h4",as:"h2"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-xs"},XS:{title:{headingType:"h5",as:"h2"},descriptionSize:"text-l",descriptionWeight:"font-light",descriptionStyle:"mt-xs"}},Yt={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"},qt=g((({className:e,version:t="",headlineVersion:n="XL",title:l,description:a,align:r="text-center",as:i,isPadding:s=!0,isTheme:o=!1,...c})=>{const d=Jt[n],m={marginTop:d.descriptionStyle};return p(C,{className:e,defaultPadding:s?"p-6xl":"",version:t,isTheme:o,...c,children:[l?u(I,{className:w("whitespace-pre-wrap",r),...d?.title,as:i||d?.title.as,title:l}):null,a?u(ce,{size:d.descriptionSize,font:d.descriptionWeight,align:r,...m,children:a}):null]})})),Kt=e=>({height:"calc(100vh - 242px)",minHeight:`${e||866}px`}),Zt=g((({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})})),Qt=["min-w-full","min-w-1/2","min-w-1/3","min-w-1/4"],en=g((({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 g={sensitivity:1,rootRef:t},f=s([]),x=r(((e,t)=>{const n=[...f.current||[]];n[e]=t,f.current=n,h&&h(n),p&&p(nn(n))}),[h,p]),b=l>0?a*Number(l)-1:0,v="vertical-list"===o,y="horizontal-list"===o,N={...y?tn(i,b):{},...v?Kt(d):{},gap:`${a}px`};return u("div",{className:w("box-border overflow-auto no-scrollbar",o,e),style:N,ref:t,children:(k=(e,t)=>u(Zt,{className:w(c,l?Qt[l-1]:"",v?"h-full":""),style:y?tn(i/4):{},activeIndex:n,idx:t,observerOptions:g,onIntersection:x,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(k):k(e,0))(m)});var k})),tn=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),nn=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),ln={"horizontal-list":"mx-auto mt-5 w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},an={"horizontal-list":"w-6","vertical-list":"h-6"},rn=g((({containerRef:e,activeIndex:t,dotCount:n=0,listType:l="horizontal-list",version:a})=>n?u("div",{className:w("flex gap-2",ln[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?an[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)),sn=e=>e,on=(e=sn)=>t=>t.reduceRight(((t,n)=>e(t)>e(n)?t:n)),cn=on(),dn=(e=sn)=>on((t=>-e(t))),mn=e=>t=>e.scrollWidth/t,hn=e=>(t,n)=>{e.scrollBy({left:n*mn(e)(t),behavior:"smooth"})},un=({itemCount:e,onVisibleIndicesChange:t})=>{const n=s(null),[a,i]=l([]),o=r((e=>{i((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})),t&&t(e)}),[e]),[c,d]=a.length?[dn()(a),on()(a)]:[-1,-1],m=c>0,h=d<e-1,u=r((()=>{var t;n.current&&(m?hn(n.current)(e,-1):(t=n.current).scrollTo({left:t.scrollWidth,behavior:"smooth"}))}),[e,m]),p=r((()=>{n.current&&(h?hn(n.current)(e,1):n.current.scrollTo({left:0,behavior:"smooth"}))}),[e,h]);return[n,{scrollLeft:u,scrollRight:p,canScrollLeft:m,canScrollRight:h,visibleIndicesRange:[c,d],handleVisibleIndicesChange:o}]},pn=g((({className:e,version:t,gap:n=14,padding:l=16,showDots:a=!0,minHeight:r,children:i,onVisibleIndicesChange:s,listType:o="horizontal-list"})=>{const c=Array.isArray(i)?i.length:0,[d,m]=un({itemCount:c,onVisibleIndicesChange:s}),[h]=m.visibleIndicesRange;return p("div",{className:w(e,"vertical-list"===o?"relative h-full":""),children:[u(en,{containerRef:d,activeIndex:h,visibleItemCount:1,gap:n,padding:l,onVisibleIndicesChange:m.handleVisibleIndicesChange,listType:o,minHeight:r,children:i}),a?u(rn,{containerRef:d,activeIndex:h,dotCount:c,listType:o,version:t}):null]})})),gn="text-left",fn=(e,t,n)=>u(pn,{children:e.map(((e,t)=>(({icon:e,title:t,description:n},l)=>p("div",{className:w("flex flex-col","justify-between p-4 h-full border border-gray",n||t?"":"justify-center"),children:[t?u(de,{size:"text-h6",font:"font-normal",align:gn,children:t}):null,e?u(It,{image:e,height:"180",className:"w-auto"}):null,n?u(de,{size:"text-h6",font:"font-normal",align:gn,children:n}):null]},String(l)))({...e},t)))}),xn=g((({bonusBenefits:e,cardTextAlign:t="center",className:n="",columnsCount:l="4",subtitle:a,title:r,...i})=>p(C,{className:n,defaultPadding:"p-6xl",...i,children:[u(qt,{className:"mb-4 sm:mb-3xl",isPadding:!1,title:r,description:a,headlineVersion:"M"}),e?.length?fn(e):null]}))),bn=(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-xs justify-items-stretch":"flex-wrap gap-m",t),children:e.map(vn(n))}):null,vn=(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(ie,{className:w("basis-full sm:basis-auto",e),appendLeft:yn({...a,iconVersion:c}),appendRight:yn({...r,iconVersion:c}),version:i,text:l,...s},n?String(n):""):null},yn=e=>e?.icon||e?.src?u(It,{image:e,width:String(e?.size?.width||24),height:String(24)}):null,Nn=g((({buttons:e,className:t,...n})=>u(C,{className:w("!bg-transparent",t),defaultPadding:"p-0",...n,children:bn(e)}))),wn=g((e=>{const{onChange:t,min:n,max:l,defaultValue:a="0",fractionDigits:i=0,...s}=e,o=at(e,{normalize:(e=a)=>n&&l?String(rt(Number(kn(e)),n,l)):kn(e),format:it(i)}),c=r((e=>t&&t(kn(e))),[t]);return u(ue,{onChange:c,...s,...o})})),kn=(e="")=>e.replaceAll(",",".").replace(/[^\d.]/g,"").replace(/([^.]*\.[^.]*)\./,"$1"),Cn=g((e=>u(wn,{...e,fractionDigits:2,children:u("div",{className:"absolute right-4 bottom-4",children:u(de,{size:"text-xl",font:"font-light",children:"₽"})})}))),Sn="amount",Tn={[Sn]:1500},In=g((({className:e="",title:t="Укажите сумму перевода",label:n="Сумма перевода",placeholder:l="1500",button:a,...r})=>{const[{amount:i},{field:s}]=_(Tn),o=i<=0,c=o?ae({version:a?.version}):re({className:"text-white",version:a?.version}),d=Y();return p(C,{className:w("flex flex-col items-center",e),defaultPadding:"p-6xl",...r,children:[t?u(I,{className:"pb-5 xl:pb-9 self-start xl:self-center",headingType:"h2",title:t}):null,p("form",{className:"w-full xl:max-w-[468px]",method:"POST",action:"https://www.rshb.ru/p2p/",children:[u(Cn,{name:Sn,valid:!o,placeholder:l,label:n,...s(Sn,{parse:Number,format:String})}),a?.text?u("button",{type:"submit",className:w("w-full p-4 mt-5 xl:mt-6",c),disabled:o,...d(a),children:a.text}):null]})]})})),Bn=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),_n=[];function Rn(e,t,{className:n,...l}={}){const{key:a,blockDecorator:r=Bn,blocksRegistry:i={},ancestors:s=_n}=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(e.style?.length?e.style:"col-span-12",n),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 zn=[],jn=(e,{key:t,ancestors:n=zn,slotName:l=null,extraProps:a,renderProps:r=Rn,...i})=>{const s=a?(e,t)=>Rn(e,t,a):r;return(e||[]).map(((e,a)=>s(e,{...i,key:`${t||e.type}-${a}`,ancestors:i.parent?[...n||zn,[i.parent,l]]:n},a)))};function Pn({block:e,options:t,children:n,extraProps:l,renderProps:a}){return n||(e&&t?jn(e.blocks,{...t,parent:e,extraProps:l,renderProps:a}):null)}const Ln=g((({className:e,disabled:t,...n})=>u(ie,{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(It,{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"})}))),$n=g((e=>u(Ln,{...e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}))),Mn=g((e=>u(Ln,{...e,className:`${e.className||""} rotate-180`,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"}))),Vn="absolute top-[calc(50%-24px)] z-40",An="absolute top-0 bottom-0 z-40 hidden @lg:block w-20 pointer-events-none",On=g((({scroll:e,activeIndex:t,itemCount:n,arrowsPadded:l,hasEdgeBlocks:a,onScrollLeft:i,onScrollRight:s})=>{const{canScrollLeft:o,canScrollRight:c,scrollLeft:d,scrollRight:m}=e,h=a?t>0:o,g=a?t<n-1:c,f=r((()=>{a?(o&&t!==n-1&&d(),i()):d()}),[d,i,a,o,t,n]),x=r((()=>{a?(c&&0!==t&&m(),s()):m()}),[m,s,a,o,t,n]);return p("div",{children:[Dn(e),h?u($n,{className:w(Vn,l?"left-1 @lg:left-8":"left-0"),onClick:f}):null,g?u(Mn,{className:w(Vn,l?"right-1 @lg:right-8":"right-0"),onClick:x}):null]})})),Dn=e=>p("div",{children:[e.canScrollLeft?u("div",{className:w(An,"left-0 bg-opacity-from-white")}):null,e.canScrollRight?u("div",{className:w(An,"right-0 bg-opacity-to-white")}):null]}),Fn=g((({className:e,itemCount:t,visibleItemCount:n=0,noCardBorder:a,isAlignCenter:i,showDots:s,arrowsPadded:o=!0,isGap:c=!0,...d})=>{const{blocks:m=[]}=d.block||{},h=t||m?.length,[g,{inc:f,dec:x}]=((e,t=0)=>{const{itemCount:n,visibleItemCount:a}=e,[i,s]=l(t),o=r((()=>s((e=>Math.min(e+1,n-1)))),[n]),c=r((()=>s((e=>Math.max(e-1,0)))),[n]),d=a?n>a&&i<n-a:i<n-1,m=i>0;return[i,{inc:o,dec:c,canInc:d,canDec:m,isScrollAvailable:m||d}]})({itemCount:h,visibleItemCount:n},Math.floor(n/2)),[b,v]=un({itemCount:h}),[y]=v.visibleIndicesRange,N=m&&"CarouselBankHistoryCard"===m[0]?.type;return u(C,{className:e,defaultPadding:"p-6xl",...d,children:p("div",{className:w(i?"flex justify-center":"","relative max-w-full"),children:[u(en,{containerRef:b,visibleItemCount:n,snapAlign:"snap-start",gap:c?16:void 0,onVisibleIndicesChange:v.handleVisibleIndicesChange,children:Pn({...d,renderProps:(e,t,n)=>Rn(e,t,{className:w("h-full min-w-80 sm:min-w-96",a?"":"border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider"),blockIndex:n,isActive:g===n})})}),u(On,{scroll:v,arrowsPadded:o,onScrollLeft:x,onScrollRight:f,hasEdgeBlocks:N,activeIndex:g,itemCount:h}),s?u(rn,{containerRef:b,activeIndex:y,dotCount:h,listType:"horizontal-list"}):null]})})}));Fn.childrenTypes=["CarouselCard","CarouselBankHistoryCard","CarouselCatalogCard","CarouselInvestmentCard","CarouselProductCard","CarouselProgramsCard","CarouselRecommendationCard","CarouselTariffsCard","CarouselRichTextCard","CarouselInvestmentCard","CarouselEventCard"];const En=g((({title:e,description:t,className:n})=>u(C,{className:n,defaultPadding:"p-6xl",children:u(qt,{headlineVersion:"S",title:e,description:t,align:"text-left",className:"text-primary-text",isPadding:!1})}))),Un=g((({className:e="",href:t,target:n,isRemote:l=!1,children:a})=>{const r=Y({isRemote:l})({href:t,target:n});return u(t?"a":"div",{className:w("block",e),...t?r:{},children:a})})),Hn=g((({className:e,title:t,icon:n,list:l=[],href:a,target:r,...i})=>u(C,{className:e,defaultPadding:"p-3xl sm:p-0",...i,children:p(Un,{className:"sm:flex sm:items-center",href:a,target:r,children:[u("div",{className:"flex justify-center px-xl",children:n?.src||n?.icon?u(It,{image:n}):null}),p("div",{className:"sm:px-s p-5xl",children:[t?u(I,{className:"mb-xs sm:mb-m",headingType:"h6",title:t}):null,l.length?u("div",{className:"flex flex-col gap-xs sm:gap-s",children:l?.map(Wn)}):null]})]})}))),Wn=(e,t)=>p("div",{className:"flex flex-row-reverse justify-between gap-y-2xs sm:flex-col",children:[e.title?u(de,{size:"text-l",font:"font-light",children:e.title}):null,e.description?u(ce,{size:"text-l",font:"font-light",color:"",children:e.description}):null]},String(t)),Xn={L:"w-1.5 h-1.5 mr-m",M:"w-1.5 h-1.5 mr-s",S:"w-1 h-1 mr-xs"},Gn=g((({className:e,isDotted:t=!0,children:n,size:l="M"})=>p("div",{className:w("font-sans flex",e),role:"listitem",children:[t?u("div",{className:"shrink-0",children:u("div",{className:w("align-middle inline-block rounded-full bg-primary-text group-data-secondary:bg-white",Xn[l])})}):null,u("span",{children:n})]}))),Jn={S:"text-l font-light",M:"text-h6",L:"text-h5"},Yn={S:"ml-xs",M:"ml-s",L:"ml-m"},qn=g((({className:e,hasIndent:t,isDotted:n,items:l,listItemSize:a="M"})=>l?.length?u("section",{className:w("flex flex-col gap-xs text-left text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text",Jn[a],t?Yn[a]:"",e),role:"list",children:l.map(((e,t)=>u(Gn,{isDotted:n,size:a,children:e},String(t))))}):null)),Kn={default:"w-24 h-14",small:"w-12 h-12"},Zn=(e,t)=>e?"":w("group/media flex items-center justify-center box-border",Kn[t]),Qn=[{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"}],el=e=>Qn.find((({origins:t})=>t?.some((t=>e?.includes(t)))))||{},tl=g((({buttonSize:e="default",rounded:t=!1,icon:n,...l})=>{const{href:a,version:r,text:i=""}=l,{iconMapped:s,label:o}=el(a),c=nl(n)??s;return u(ie,{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",Zn(i,e)),"aria-label":o,rel:"noopener noreferrer",target:"_blank",text:i,version:r,...l,children:c&&!i?u(It,{image:c,imageClassName:"group-hover/media:text-white",width:"24",height:"24"}):null})})),nl=e=>e?.src||e?.icon?e:void 0,ll=g((({className:e="",media:t})=>u("div",{className:`flex gap-2 items-start justify-start ${e}`,children:t?.map(((e,t)=>u(tl,{...e},String(t))))}))),al=g((({className:e="",description:t,href:n,icon:l,items:a=[],socialMedia:r=[],target:i,title:s,align:o="text-left",...c})=>u(C,{className:w("relative group-data-gray:bg-main-divider/50",e),defaultPadding:"p-6xl",...c,children:p(Un,{href:n,target:i,children:[u(qt,{className:"mb-xs",title:s,description:t,headlineVersion:"S",isPadding:!1,align:o}),a.length?u(qn,{className:"flex flex-col gap-2",items:a,listItemSize:"S"}):null,rl(l),r.length?u(ll,{className:"mt-5",media:r}):null]})}))),rl=e=>e?.src||e?.icon?u("div",{children:u(It,{image:e})}):null,il=g((({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]})})),sl=g((({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})})),ol=(e=!1)=>e?"p-6xl mt-6":"mt-6 p-6xl",cl=(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:"opacity-80",children:u(de,{size:"text-m",color:"text-secondary-text",children:n})}):null,l?u("div",{className:"mt-1",children:u(de,{size:"text-xl",color:"text-primary-text",children:l})}):null,a?.length?u("div",{className:"text-primary-main",children:bn(a)}):null]},String(t))},dl=g((({className:e="",title:t,align:n="text-center",icon:l,isHighlighting:a=!1,button:r,cardCells:i=[],...s})=>{const o=i.map(cl),c=o.slice(0,1),d=o.slice(1);return p(C,{className:w("relative flex flex-col",e),defaultPadding:ol(a),...s,children:[a?ul():null,ml(l),t?u(I,{className:w("pt-xs",n),headingType:"h5",title:t}):null,r?u(ie,{className:"w-full mt-m",...r}):null,i.length?u(il,{renderFoldableSection:({isUnfolded:e})=>p("div",{children:[c,u(sl,{isUnfolded:e,children:d})]}),renderFoldButton:i.length>1?hl:null}):null]})})),ml=e=>u("div",{className:"basis-full self-center",children:e?.src||e?.icon?u(It,{image:e}):null}),hl=({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(Pe,{className:"text-primary-text",name:e?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16"})]}),ul=()=>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(Pe,{iconVersion:"black",name:"HeartIcon",width:"23",height:"22"}),u(ce,{size:"text-s",font:"font-normal",align:"text-center",color:"text-primary-text",children:"ХИТ"})]}),pl="z-10 border border-solid w-full h-full",gl=w(pl,"absolute hidden sm:block border-transparent"),fl=g((({className:e,title:t,description:n,button:l,...a})=>u(C,{className:w("sm:pl-12 sm:pb-9",e),defaultPadding:"p-0",...a,children:p("div",{className:"relative",children:[u("div",{className:w(gl,"top-9 right-12 bg-green-dark")}),u("div",{className:w(gl,"top-6 right-8 bg-green")}),u("div",{className:w(gl,"top-3 right-4 bg-green-light")}),p("div",{className:w(pl,"relative p-10 bg-white border-green-light"),children:[u(qt,{title:t,description:n,headlineVersion:"XS",align:"text-left",isPadding:!1}),bn([l],{className:"mt-6xl sm:justify-center",isVertical:!0})]})]})}))),xl={black:"bg-black",white:"bg-white"},bl=g((({className:e="",title:t,description:n,image:l,price:a,button:r,colors:i,...s})=>p(C,{className:w("flex flex-col justify-left gap-m",e),defaultPadding:"p-6xl sm:p-7",...s,children:[l?.src?u(It,{className:"flex justify-center",image:l}):null,u(qt,{title:t,description:n,headlineVersion:"XS",isPadding:!1,align:"text-left"}),i?.length?p("div",{className:"flex text-secondary-text",children:[u("div",{className:"mr-xs",children:u(de,{size:"text-s",align:"text-left",font:"font-light",children:"Цвета:"})}),i.map(vl)]}):null,a?p(de,{size:"text-h3",align:"text-left",children:[a," ₽"]}):null,bn([r],{buttonClassName:"w-full"})]}))),vl=(e,t)=>u("div",{role:"figure",className:`w-6 h-6 ml-1 sm:ml-3 border border-solid border-main-divider rounded-full ${xl[e]}`},String(t)),yl=g((({additionalDescription:e,align:t="text-left",button:n={},className:l="",description:a,headlineSmallVersion:r="H6",href:i,icon:s,isDotted:o=!0,isButtonFullWidth:c=!0,isImageFullWidth:d=!1,isTopPosition:m=!1,items:h=[],target:u,title:g,version:f="primary",...x})=>p(C,{className:w("flex flex-col justify-between",t,l),defaultPadding:"p-0",version:f,...x,children:[p(Un,{className:"p-m flex flex-col gap-xs",href:i,target:u,children:[wl(r,g),kl(a),Sl(h,o,f),Cl(e),Nl(s,d,m)]}),bn([n],{className:w("p-m pt-0",c?"":"self-center"),isVertical:c})]}))),Nl=(e,t,n)=>p("div",{className:w("flex gap-lg",n?"order-first":"order-last",t?"":"justify-center"),children:[e?.src?u(It,{className:"shrink-0",image:e}):null,e?.icon?u(It,{className:w("shrink-0",t?"":"w-8 h-8 min-w-8"),image:e}):null]}),wl=(e,t)=>t?u(de,{size:Yt[e],children:t}):null,kl=e=>e?u(ce,{size:"text-l",children:e}):null,Cl=e=>e?u(de,{size:"text-m",font:"font-light",color:"text-secondary-text group-data-secondary:text-white/80",children:e}):null,Sl=(e,t,n="primary")=>e?.length?u(qn,{className:w("text-s","primary"===n?"!text-secondary-text":""),items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:t,listItemSize:"S"}):null,Tl=(e=!1)=>e?"text-white":"",Il=(e=!1)=>"text-s mb-m "+(e?"text-white":"text-secondary-text/80"),Bl=g((({icon:e,image:t,title:n,subtitle:l,isFillGradient:a})=>p("div",{className:"space-y-4",role:"columnheader",children:[e?u(It,{className:"h-16 w-16 min-w-16 min-h-16",image:e,width:"64",height:"64"}):null,t?.src&&u("div",{children:u(It,{image:t})}),n?u(I,{headingType:"h4",className:Tl(a),title:n}):null,l?u("div",{className:Il(a),children:l}):null]}))),_l=g((({cell:e,rowHeader:t,isFillGradient:n=!1})=>u("div",{className:"box-border flex flex-col",role:"cell",children:u("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(Rl(n,t))})}))),Rl=(e,t)=>({label:n,description:l},a)=>p("div",{className:"flex justify-between text-s py-3.5",children:[u("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),p("div",{className:"basis-1/2",children:[n?u("div",{className:"text-right "+(e?"text-white":""),children:n}):null,l?u("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:l}):null]})]},String(a)),zl=g((({header:e,columnData:t,visibleRowLength:n=0,isFillGradient:l,showRow:a,onToggleColumn:r})=>{const i=t?.slice(0,a?t.length:n),s=l?"secondary":"primary";return p("div",{className:`border border-gray rounded-md p-m mb-m ${l?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[u(Bl,{...e,isFillGradient:l}),i?.length?i.map((({rowHeader:e,cell:t},n)=>u(_l,{cell:t,rowHeader:e,isFillGradient:l},String(n)))):null,a&&e?.link?u(ie,{href:e.link.href,target:e.link.target,version:s,className:"text-s font-medium mt-m py-s",children:e.link.text}):null,jl({onToggleColumn:r,isFillGradient:l,showRow:a})]})})),jl=({onToggleColumn:e,isFillGradient:t,showRow:n})=>u("div",{className:"mt-5",role:"cell",children:u("a",{role:"link",onClick:e,className:"text-s font-medium cursor-pointer "+(t?"text-white/80":"text-primary-main"),children:n?"Скрыть":"Показать описание"})}),Pl=g((e=>{const{className:t,title:n}=e;return p("section",{className:`bg-white font-sans p-6xl overflow-hidden text-primary-text relative space-y-lg ${t||""}`,children:[n?u(I,{headingType:"h3",className:"font-medium text-center",title:n}):null,u("div",{role:"table",children:u(Ll,{...e})})]})})),Ll=g((({columns:e=[],rowHeaders:t,isColoredFirstColumn:n,visibleRowLength:a,orientation:i,...s})=>{const[o,c]=l(new Array(e.length).fill(!a)),d=r((e=>{const t=(t,n)=>n===e?!t:t;c((e=>e.map(t)))}),[]),m=r((()=>c((e=>new Array(e.length).fill(!1)))),[]),h=e?.map((({data:e,header:l},r)=>{return u(zl,{visibleRowLength:a,showRow:o[r],header:l,columnData:(i=e,i?.map(((e,n)=>({cell:e,rowHeader:t?.[n]?.title})))),isFillGradient:0===r&&n,onToggleColumn:()=>d(r),...s},String(r));var i}));return"horizontal"===i?u(pn,{onVisibleIndicesChange:m,children:h}):h})),$l={start:"self-start",center:"self-center",end:"self-end"},Ml=g((({className:e,defaultPadding:t,padding:n,title:l="",insetTitle:a="",buttons:r,leftImage:i,rightImage:s,imageAlign:o,backImage:c,children:d})=>p("div",{className:w("relative flex flex-col gap-3xl font-sans overflow-hidden",n||t,e),children:[l?u("div",{className:"relative",children:l}):null,p("div",{className:"grow relative flex flex-wrap @xl:flex-nowrap justify-between items-stretch gap-3xl",children:[Vl(i,{imageAlign:o}),p("div",{className:w("flex flex-col gap-3xl max-w-[600px] xl:max-w-[728px]",i?"":"grow"),children:[a,u("div",{className:"grow",children:d}),c?u("div",{className:"mx-auto sm:absolute sm:-z-10 sm:-bottom-4 sm:-right-4",children:c}):null,r]}),Vl(s,{className:"-order-1 @xl:order-1",imageAlign:o})]})]}))),Vl=(e,{className:t,imageAlign:n})=>e?u("div",{className:w("flex-shrink-0",n&&$l[n],t),children:e}):null;var Al;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(Al||(Al={}));const Ol=new Intl.NumberFormat("ru",{style:"currency",currency:Al.RUB}),Dl=e=>e?Ol.format(e):"",Fl="text-left text-m font-light text-secondary-text",El=`${Fl} pl-5xl`,Ul={USD:"DollarIcon",EUR:"EuroIcon"},Hl=g((({className:e,exchangeCurrencyItems:t})=>p("table",{className:`h-fit w-fit ${e}`,children:[u("thead",{children:p("tr",{children:[u("th",{className:Fl,children:u(de,{size:"text-m",children:"Валюта"})}),u("th",{className:El,children:u(de,{size:"text-m",children:"Купить"})}),u("th",{className:El,children:u(de,{size:"text-m",children:"Продать"})})]})}),u("tbody",{children:t.map(Wl)})]}))),Wl=e=>{const t=e?.currency?.currency;return p("tr",{className:"pb-2xs text-h6",children:[u("td",{className:"pt-m",children:p("div",{className:"flex items-center",children:[t?u(It,{image:{icon:Ul[t]},width:"24",height:"24",className:"mr-2"}):null,u(de,{size:"text-h6",children:t})]})}),u("td",{className:"pt-m pl-5xl",children:u(de,{size:"text-h6",children:Dl(e?.saleExchangeRate)})}),u("td",{className:"pt-m pl-5xl",children:u(de,{size:"text-h6",children:Dl(e?.buyExchangeRate)})})]},t)},Xl={icon:"GpsIcon"},Gl=g((({className:e="",address:t})=>p("div",{className:`flex gap-s ${e}`,children:[u(Et,{...Xl,iconBgVersion:"primary"}),p("div",{className:"space-y-2xs",children:[t?u("p",{className:"text-primary-main text-l",children:t}):null,u("p",{className:"text-secondary-text text-m",children:"Курс указан для заданного офиса"})]})]}))),Jl=(e,t,n)=>{const l=Number(Yl(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)},Yl=e=>e.replace(/[^\d.,]/g,"").replace(",","."),ql=e=>{return(t=[[e=>e.value!==Al.RUB&&e.oppositeValue!==Al.RUB,()=>e.handleConvert(e.value,Al.RUB)],[e=>e.value===Al.RUB&&e.oppositeValue===Al.RUB,()=>e.handleConvert(e.value,Al.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,n]=t.find((([t])=>t(e)))||[];return n})(e)?.();var t};function Kl(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(ue,{className:"shrink-0 text-l w-full appearance-none mr-[-90px]",placeholder:t,type:"text",value:a,onChange:r}),s.length?u(Me,{isBorder:!1,onChange:e=>i(e.key),options:s,value:o}):null]})}const Zl=g((({className:e="",currencyRatesBuy:t,currencyRatesSell:n,button:a})=>{const[i,s]=l({inputSell:"",inputBuy:"",selectSell:t?.[0]?.currency?.currency||Al.RUB,selectBuy:n?.[0]?.currency?.currency||Al.USD}),o=r((e=>s((t=>({...t,...e})))),[]);return p("div",{className:`grid gap-m pt-2xl ${e}`,children:[Kl({placeholder:"Хочу продать",rates:n,selected:i.selectSell,setSelected:Ql(i,o,n),value:i.inputSell,setValue:e=>ta(o,n)(e,i.selectSell,i.selectBuy)}),Kl({placeholder:"Получу",rates:t,selected:i.selectBuy,setSelected:ea(i,o,t),value:i.inputBuy,setValue:e=>na(o,t)(e,i.selectBuy,i.selectSell)}),a?.text?u(ie,{className:"py-4",version:a?.version,...a,children:a.text}):null]})})),Ql=(e,t,n)=>l=>{t({selectSell:l}),ql({value:l,oppositeValue:e.selectBuy,handleConvert:(l=e.selectSell,a=e.selectBuy)=>{ta(t,n)(e.inputSell,l,a)}})},ea=(e,t,n)=>l=>{t({selectBuy:l}),ql({value:l,oppositeValue:e.selectSell,handleConvert:(l=e.selectBuy,a=e.selectSell)=>na(t,n)(e.inputBuy,l,a)})},ta=(e,t)=>(n,l,a)=>{e({inputSell:Yl(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(Jl(n,r,l===Al.RUB)||"")})},na=(e,t)=>(n,l,a)=>{e({inputBuy:Yl(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(Jl(n,r,l===Al.RUB)||"")})};const la=async e=>{const t=await aa(),n=t?.code||"000";return{region:t,exchangeRates:await ra(e,n)}},aa=async()=>{try{return await A("/api/v1/region",{method:"GET"})}catch(e){return console.log(e),{}}},ra=async(e,t)=>{try{return await A(e+`?regionCode=${t}`,{method:"GET"})}catch(e){return console.log(e),{}}},ia=g((({className:e="",title:t="Курсы обмена валют",button:n,...l})=>{const{exchangeRates:a}=function(){const{data:e}=$("/api/v1/exchangerates",la);return e||{}}(),r=sa(a?.exchangeRate?.currencies),i=r.filter((e=>e.buyExchangeRate));i.unshift({currency:{currency:Al.RUB}});const s=r.filter((e=>e.saleExchangeRate));return s.push({currency:{currency:Al.RUB}}),u(C,{className:w("box-border min-h-80",e),...l,children:u(Ml,{className:"h-full",title:u(I,{headingType:"h4",title:t,className:"whitespace-pre-wrap"}),children:p("div",{className:"flex gap-6xl flex-wrap",children:[p("div",{children:[r?u(Hl,{className:"mb-xl",exchangeCurrencyItems:r}):null,u(Gl,{address:a?.address})]}),r.length&&i.length&&s.length?u(Zl,{className:"grow",currencyRatesBuy:i,currencyRatesSell:s,button:n}):null]})})})})),sa=e=>e?.filter((e=>1===e?.currency?.id||2===e?.currency?.id))||[],oa={};function ca(e,t={}){const{data:n}=$(`/wcms-resources/${e}.json`,A,{fallback:t});return n||oa}const da=g((({className:e="",items:t})=>t?.length?u("ul",{className:w("flex flex-col p-0 gap-m sm:gap-xl","",e),children:t.map(ma)}):null)),ma=(e,t)=>{const{text:n,...l}=e;return u("li",{className:"list-none",children:u("a",{className:"hover:text-primary-main sm:font-light",role:"link",...l,children:n||null})},`list_item_${String(t)}`)},ha=g((({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-4 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(It,{image:{icon:n,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20"}):null]}))),ua=e=>e?"ArrowUpSolidIcon":"ArrowDownSolidIcon",pa=(e,t)=>u(Et,{...e,iconBgVersion:t}),ga=g((({className:e="",label:t="Развернуть",labelIcon:n,labelIconBgVersion:l,isExpanded:a,isFoldButtonOnTop:r=!0,version:i="primary",...s})=>u(C,{className:w("w-full","",e),defaultPadding:"p-0",tag:"div",version:"transparent",...s,children:u(il,{isFoldButtonOnTop:r,unfoldedByDefault:a,renderFoldableSection:({isUnfolded:e})=>u(sl,{className:w("gap-5","flex flex-wrap group-last:last:pb-0"),isUnfolded:e,children:Pn({...s,extraProps:{className:"w-full",padding:"p-0"}})}),renderFoldButton:({isUnfolded:e,onToggle:a})=>fa({version:i,label:t,labelIcon:n,labelIconBgVersion:l,isUnfolded:e,onToggle:a})})})));ga.childrenTypes={exclude:["RollupItem"]};const fa=({version:e,label:t,labelIcon:n,labelIconBgVersion:l,isUnfolded:a,onToggle:r})=>{const i=t||(a?"Скрыть":"Развернуть");return"primary"===e?xa({label:i,labelIcon:n,labelIconBgVersion:l,icon:ua(a),onToggle:r}):u(ha,{label:i,icon:a?"ArrowUpIcon":"ArrowDownIcon",onClick:r})},xa=({label:e,labelIconBgVersion:t,icon:n,onToggle:l,labelIcon:a})=>p("button",{className:w("border-none bg-transparent px-0 flex justify-between items-center w-full group/button",a?.icon?"py-xs":"py-lg"),onClick:l,children:[p("div",{className:"flex items-center group-hover/button:text-primary-main gap-s",children:[pa(a,t),e?u(de,{size:"text-h6",font:"font-normal",children:e}):null]}),n?u(Pe,{name:n,iconVersion:"normal",width:"24",height:"24"}):null]}),ba=g((({className:e="",items:t,hasButton:n})=>p("div",{className:w("space-y-xl",e),children:[t?.length?t.map(va):null,n?u(ie,{version:"primary",className:"mb-6 w-full",href:"https://www.rshb.ru/feedback/question/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),va=(e,t)=>p("div",{className:"space-y-m",children:[u("div",{className:"",children:u(de,{size:"text-l",font:"font-medium",children:e?.title})}),u("div",{className:"space-y-m",children:e.items?.map(ya)})]},String(t)),ya=(e,t)=>p("div",{className:"space-y-2xs",children:[u("div",{children:Na(e.type,e.text)}),u("div",{className:"text-s font-light text-secondary-text",children:e.description})]},String(t)),Na=(e,t="")=>{switch(e){case"tel":return u("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${wa(t)}`,children:t});case"email":return u("a",{className:"text-xl font-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return u("span",{children:t})}},wa=e=>e.replaceAll(/\D/g,""),ka=g((({className:e="",index:t,text:n,...l})=>{const a=Y(),{href:r,target:i,onClick:s}=a(l);return u("a",{className:w("",e),href:r,target:i,onClick:s,children:n||`Документ ${t}`})})),Ca=g((({title:e,links:t,className:n=""})=>p("div",{className:n,children:[u(de,{size:"text-h6",children:e}),t?.length?u("div",{className:"flex flex-col gap-6 mt-7",children:t.map(((e,t)=>u(ka,{index:t,...e},String(t))))}):null]}))),Sa=g((({className:e="",index:t,...n})=>{const l=Y({isRemote:!0}),{href:a,target:r,text:i,onClick:s}=l(n);return u("a",{className:`text-xs font-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}`})})),Ta=g((({className:e="",links:t})=>p("div",{className:e,children:[u("div",{className:"pt-4 xl:pt-5",children:u(de,{size:"text-xs",font:"font-light",color:"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-4",children:t.map(((e,t)=>u(Sa,{index:t,...e},String(t))))}):null]}))),Ia=g((({className:e,sitemap:t,...n})=>{const{relatedEnterprises:l,contacts:a,socialMedia:r,mobileApps:i,horizontalNavigationTitle:s}=ca(d.FOOTER||"footer",n.options?.page?.fallback);return p(C,{tag:"footer",className:e,defaultPadding:"px-4 py-6",...n,children:[u("div",{className:"mb-4 pb-5 border-b border-main-divider",children:t?.topItems?.map(((e,t)=>u(ga,{label:e?.text,labelIcon:e?.icon,children:u(da,{items:e.items,className:"my-3"})},String(t))))}),u(ba,{className:"overflow-hidden",items:a}),u(ll,{className:"mb-4",media:r}),i?.map(Ba),u(Ca,{className:"pt-m pb-2xl border-y border-main-divider",title:s,links:l}),u(Ta,{})]})})),Ba=({href:e="/"},t)=>{const{label:n}=el(e);return u(ie,{className:"w-full mb-4",text:n,version:"secondary",href:e,target:"_blank"},String(t))},_a={"bg-white":"color",transparent:"white"},Ra={"bg-white":"text-primary-main",transparent:"text-white"},za=(e,t,n)=>u(It,t?.src?{image:t,className:Ra[e],width:n?.width,height:n?.height,pathPrefix:"/wcms-resources/"}:{image:{icon:t?.icon||"LogoIcon",iconVersion:_a[e]},className:Ra[e],width:n?.width,height:n?.height}),ja={"bg-white":"text-primary-text",transparent:"text-white"},Pa=(e,t,n)=>u("span",{className:`${ja[t]} ml-s font-medium ${n||""}`,children:e||"Россельхозбанк"}),La=g((({bgColor:e="bg-white",children:t,className:n="",href:l,logo:a,showTitle:r=!0,targetBlank:i})=>p("a",{className:`inline-flex items-center font-sans no-underline ${n}`,href:l||"https://rshb.ru/",target:i?"_blank":"_self","aria-label":a?.title||"Россельхозбанк",children:[za(e,a?.image,{width:"34",height:"34"}),r?Pa(t||a?.title,e,"text-s"):null]}))),$a={default:"px-5 bg-main-divider rounded hover:text-primary-main",transparent:"text-white hover:text-primary-hover"},Ma=g((({bgColor:e,logo:t,internetBankUrl:n,version:l})=>{const a=J(),i="/"===a.pathname,s=r((()=>{a.back()}),[]);return p("div",{className:"flex items-center justify-between w-full",children:[i?u(La,{bgColor:e,logo:t}):p(ie,{className:"flex items-center text-l",ariaLabel:"Вернуться назад",onClick:s,children:[u(It,{className:"w-6 h-6",image:{icon:"ChevronLeft",iconVersion:"black"}}),"Вернуться назад"]}),n?u(ie,{href:n,ariaLabel:"Войти",target:"_blank",className:w("p-s my-2xs text-s whitespace-nowrap text-primary-main hover:text-primary-hover",$a["transparent"===l?"transparent":"default"]),children:"Войти"}):null]})})),Va={"bg-white":"primary",transparent:"transparent"},Aa=g((({bgColor:e="bg-white",version:t=Va[e],sitemap:n,...l})=>{const{logo:a,internetBankUrl:r}=n||{};return u(C,{tag:"header",defaultPadding:"",version:t,...l,children:u("div",{className:"container px-4 py-2xs box-border",children:u(Ma,{bgColor:e,logo:a,internetBankUrl:r,version:t,...l})})})})),Oa={XXL:"gap-6xl",XL:"gap-5xl",L:"gap-3xl",M:"gap-m",S:"gap-xs",XS:"gap-2xs","":""},Da=g((({className:e="",gap:t="",isPadding:n=!1,isInnerPadding:l=!0,version:a="transparent",isTheme:r=!1,...i})=>u(C,{className:w("relative flex flex-col",Oa[t],e),defaultPadding:n?"p-6xl":"",version:a,isTheme:r,...i,children:Pn({...i,extraProps:{className:"w-full",padding:l?"":"p-0"}})})));Da.childrenTypes=[];const Fa=g((e=>u(Da,{...e})));Fa.childrenTypes=[];const Ea=g((e=>{const{className:t,image:n,...l}=e;return u(C,{className:t,defaultPadding:"p-0",...l,children:u(It,{image:n})})})),Ua=["байт","Кб","Мб","Гб","Тб","Пб"],Ha=g((({icon:e,text:t,fileSize:n,...l})=>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",...l,children:[e,t?p(de,{size:"text-l",font:"font-light",children:[t,u(de,{color:"text-secondary-text",children:l?.href&&Wa(Xa(l.href),n)})]}):null]}))),Wa=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),Xa=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},Ga={double:"sm:flex-wrap sm:flex-row",single:"sm:flex-col"},Ja=g((({className:e="",title:t,description:n,align:l="text-center",documents:a,icon:r={icon:"DocIcon"},columnsMode:i="double",...s})=>{const o=J();return p(C,{className:e,defaultPadding:"p-6xl",...s,children:[u(qt,{title:t,description:n,align:l,headlineVersion:"M",as:"h2",isPadding:!1}),a?.length?u("div",{className:w("mt-5 sm:mt-8 flex flex-col gap-6",Ga[i]),role:"list",children:a.map(Ya(o,i,r))}):null]})})),Ya=(e,t,n)=>(l,a)=>{const r="Attachment"===l?.docType?W(e)(l?.attachment?.src):l?.href,i="Attachment"===l?.docType?((e,t=2)=>{if(0===e)return"";const n=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/Math.pow(1024,n)).toFixed(t))} ${Ua[n]}`})(l?.attachment?.fileSize||0):l?.fileSize;return u("div",{className:"double"===t?"basis-[calc(50%-20px)]":"",role:"listitem",children:u(Ha,{text:l?.text,target:l?.target,href:r,fileSize:i,icon:n?u(It,{className:"min-w-11 min-h-11 h-fit p-2.5 bg-main-divider rounded-md",image:n,width:"24",height:"24"}):null})},String(a))},qa={left:"text-left",center:"text-center",right:"text-right"},Ka=e=>e?u("div",{className:"mb-5 pt-3xs sm:mb-0 sm:pt-0",children:u(de,{size:"text-xl","font-weight":"light",children:e})}):null,Za=e=>e?.length?u(qn,{items:e,className:"text-l font-light mb-xs last:mb-0"}):u("span",{className:"text-m font-light text-secondary-text",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),Qa=g((({className:e,padding:t,alignTitle:n="left",buttons:l=[],description:a,headingType:r="h4",image:i,items:s,qr:o,title:c="Мобильное приложение",version:d="primary",...m})=>{const h="secondary"===d?"p-m min-w-32":"min-w-24";return u(C,{className:w("min-h-80",e),padding:"p-0",version:d,...m,children:p(Ml,{className:"h-full",padding:t,defaultPadding:"p-6xl",title:c?u(I,{headingType:r,title:c,className:w("whitespace-pre-wrap",qa[n])}):null,buttons:bn(l,{isVertical:l.length>4}),children:[Ka(a),p("div",{className:"flex flex-1 flex-wrap gap-m items-center",children:[o?.src?u("div",{className:w("flex justify-center bg-white rounded-md",h),children:u(It,{className:"w-fit",image:o})}):null,Za(s),i?.src?u(It,{image:i}):null]})]})})})),er=(e=[])=>e.reduce(((e,t)=>e+t),0),tr=(e=[])=>e?.length?er(e)/e.length:0,nr=(e,t="normal")=>e?u("div",{className:w("w-12 h-12 min-w-12 box-border flex items-center justify-center rounded-icon","normal"===t?"bg-secondary-light text-primary-main":"bg-primary-main text-black group-data-secondary:bg-white/30 group-data-secondary:text-black"),children:u(It,{className:"w-6 h-6",image:{...e,iconVersion:e.iconVersion||t}})}):null,lr=g((e=>{const{__html:t="",richVersion:n=""}=e;return u("div",{className:w(n,"md-container"),dangerouslySetInnerHTML:{__html:t}})})),ar=(e,t)=>e?u(ce,{font:"font-light",size:"text-m",color:"text-secondary-text group-data-secondary:text-white",children:e},`description-${t}`):null,rr=(e,t)=>e?u(de,{color:"text-primary-text group-data-secondary:text-white",size:"text-h6",children:e},`label-${t}`):null,ir=(e,t)=>"rte"===e.type&&"__html"in e&&e.__html?u(lr,{...e},`rte-${t}`):["label"in e?rr(e.label,t):null,"description"in e?ar(e.description,t):null],sr=g((({className:e,benefitsVersion:t,...n})=>p("div",{className:w("flex gap-m","description"in n&&n.description?"items-start":"items-center",e),children:["icon"in n?nr(n.icon,t):null,u("div",{children:ir(n)})]}))),or=e=>"rte"===e.type?e.__html?.length||0:Math.max(e.label?.length||0,e.description?.length||0),cr=e=>{return((t=e.map(or))?.length?Math.sqrt(Math.abs(tr(t.map((e=>e**2)))-tr(t)**2)):0)>16;var t},dr=g((({className:e,benefitsVersion:t="normal",benefits:n})=>n?.length?u("div",{className:w("flex gap-x-m gap-y-s",cr(n)?"flex-col":"flex-wrap",e),children:n.map(((e,n)=>u(sr,{benefitsVersion:t,...e},String(n))))}):null)),mr=g((({className:e,benefits:t})=>t?.length?u("div",{className:w("grid grid-cols-[max-content_1fr] auto-rows-auto items-baseline gap-x-m gap-y-xs",e),children:t.flatMap(ir)}):null)),hr=g((({isTabularBenefits:e,...t})=>u(e?mr:dr,{...t}))),ur=g((({className:e,tags:t})=>t?.length?u("div",{className:w("flex flex-wrap gap-xs",e),role:"list",children:t.map(pr)}):null)),pr=(e,t)=>u("div",{className:"py-2 px-2.5 border-solid border rounded-md border-gray",role:"listitem",children:u(de,{size:"text-m",font:"font-light",children:e})},String(t)),gr=g((({className:e,padding:t,defaultPadding:n,title:l,description:a,headlineVersion:r="L",align:i="text-left",isInsetTitle:s=!0,benefitsVersion:o,isTabularBenefits:c,benefits:d,__html:m,items:h,isDotted:g=!0,listItemSize:f,tags:x,buttons:b,image:v,imageOptions:{imageAlign:y="end",directionRight:N=!0,isBackground:w}={},children:k})=>{const C=v?.src?u(It,{image:v}):null,S=u(qt,{title:l,description:a,headlineVersion:r,align:i,isPadding:!1});return u(Ml,{className:e,padding:t,defaultPadding:n,...s?{insetTitle:S}:{title:S},...w?{backImage:C}:fr(C,N),imageAlign:y,buttons:bn(b),children:p("div",{className:"flex flex-col gap-xl",children:[u(hr,{benefitsVersion:o,isTabularBenefits:c,benefits:d}),m?u(lr,{__html:m}):null,h?.length?u(qn,{items:h,isDotted:g,listItemSize:f}):null,k,x?.length?u(ur,{tags:x}):null]})})})),fr=(e,t)=>t?{rightImage:e}:{leftImage:e},xr=(e,t)=>e||t?p("div",{className:"flex flex-wrap xl:flex-nowrap xl:bg-main-divider xl:rounded-md p-xs gap-xl",children:[Number(e)>0?br("Страховая сумма:",e):null,Number(t)>0?br("Ежемесячный лимит:",t):null]}):null,br=(e,t=0)=>p("div",{className:"basis-full flex flex-col-reverse sm:flex-row sm:justify-between items-baseline whitespace-pre",children:[u(de,{font:"font-light",size:"text-l",children:e}),p(de,{size:"text-h6",color:"text-primary-text",children:[it(2)(t)," ₽"]})]}),vr=g((({className:e,padding:t,headlineVersion:n="M",align:l="text-center",sum:a,monthLimit:r,imageOptions:i,...s})=>u(C,{className:e,padding:"p-0",...s,children:u(gr,{className:"h-full",defaultPadding:"p-6xl",padding:t,headlineVersion:n,align:l,isInsetTitle:!1,imageOptions:{directionRight:!1,imageAlign:"center",...i},...s,children:xr(Number(a),Number(r))})}))),yr=g((({className:e,title:t,description:n="Блок в разработке...",...l})=>p(C,{className:w("box-border",e),...l,children:[u(qt,{className:"max-w-[600px]",title:t,description:n,headlineVersion:"L",align:"text-left",isPadding:!1}),u("figure",{className:"m-0 mt-xl min-w-[80%]",children:Nr()})]}))),Nr=(e=3)=>kr(100,e).map((e=>Math.floor(e))).map(wr),wr=(e,t)=>u("div",{style:{width:`${e||100}%`},className:"h-4 mt-xs bg-secondary-light"},String(t)),kr=(e,t)=>[e].concat(t>0?kr(e/1.618,t-1):[]);function Cr({text:e,href:t,target:n,icon:l},a){const r="primary"===a?"white":"black",i={text:e,href:t,target:n,ariaLabel:e};return p("div",{className:"flex items-center gap-3",children:[u(ie,{className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center",version:a,rounded:!0,...i,children:u(It,{className:"w-4 h-4",image:{...l,icon:l?.icon||"ArrowLeftIcon",iconVersion:l?.iconVersion||r}})}),u(ie,{version:"link",...i})]})}const Sr=g((({className:e,padding:t,backwardButton:n,...l})=>p(C,{className:w("overflow-hidden flex flex-col gap-3xl box-border",e),defaultPadding:"p-6xl",padding:t,...l,children:[n?.text?Cr(n,l.version&&"primary"!==l.version?"white":"primary"):null,u(gr,{className:"grow h-full",...l})]}))),Tr=g((({className:e,padding:t,slides:n=[],...l})=>u(C,{className:w("overflow-hidden relative",e),padding:t,...l,children:u(pn,{gap:0,padding:0,children:n.map((e=>e.productBlock)).map(((e,t)=>u("div",{className:"box-border h-full",role:"listitem",children:u(gr,{className:"px-5 h-full",headlineVersion:"L",...e,...l})},String(t))))})}))),Ir=g((e=>{const{__html:t,richVersion:n,...l}=e;return u(C,{defaultPadding:"p-0",...l,children:u(lr,{__html:t,richVersion:n})})})),Br=[{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 _r(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 Rr={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"},zr=e=>u("a",{className:`select-none cursor-pointer px-9 h-12 bg-primary-main text-white ${Object.values(Rr).join(" ")}`,href:`https://yandex.ru/maps/?ll=${[e[1],e[0]]}&z=10&l=map`,target:"_blank",children:"Открыть на карте"}),jr={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)]"},Pr=(e,t,n)=>p("div",{className:`${Object.values(jr).join(" ")} bg-white py-s pl-5xl pr-m w-full`,children:[u(Pe,{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"})]}),Lr={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"},$r=(e,t,n)=>u("div",{className:`select-none cursor-pointer py-4 w-12 bg-white ${Object.values(Lr).join(" ")} ${n}`,onClick:()=>{t.geolocation.get({provider:"yandex",autoReverseGeocode:!0,mapStateAutoApply:!0}).then((function(t){e.geoObjects.add(t.geoObjects)}))},children:u(Pe,{name:"UserGeoLocationIcon",width:"20",height:"16"})}),Mr=e=>globalThis[e];const Vr=()=>function(e,t){const[n,i]=l(),s=r((()=>i(Mr(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(!Mr(e))return n.addEventListener("load",s),()=>{n.removeEventListener("load",s)};s()}),[e,t]),n}("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${d.YANDEX_MAP_API_KEY||""}&lang=ru_RU`),Ar={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"},Or=g((({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(Ar).join(" ")} bg-white select-none cursor-pointer w-12 h-12`,children:u(Pe,{name:n,width:"20",height:"16"})})})),Dr={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"},Fr=g((({points:e,className:t="",zoom:n=5,showSearchField:r=!1})=>{const i=s(null),o=Vr(),[c,d]=l(),[m,h]=l(Wr(Br)),g=Er(e);if(a((()=>{i?.current||o?.ready((()=>{i.current=new o.Map("map",{center:g,zoom:n,controls:[],suppressMapOpenBlock:!0}),_r(o,i.current,m)}))}),[o,i,m]),a((()=>{if(i.current&&m&&o){const e=m.length<1?Wr(Br):m;_r(o,i.current,e)}}),[i,m,o]),!o)return null;const f=c?"z-[100000]":"z-10";return p("div",{id:"map",className:`${c?"":"relative"} w-full ${t}`,children:[u("div",{className:`absolute flex left-2 top-4 w-1/2 ${f}`,children:r?Pr(Br,0,(e=>{if(e){const t=Wr(e);h(t)}})):zr(g)}),u("div",{className:`${Object.values(Dr).join(" ")} ${f} right-2 top-4 bg-white`,onClick:()=>{const e=i.current.container;c?e.exitFullscreen():e.enterFullscreen(),d(e.isFullscreen())},children:u(Pe,{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 ${f}`,children:[u(Or,{yandexMaps:i}),u(Or,{yandexMaps:i,direction:"out"})]}),$r(i.current,o,`right-2 top-80 ${f}`)]})})),Er=e=>[Hr(Ur(e,0)),Hr(Ur(e,1))],Ur=(e,t)=>e.map((e=>e[t])),Hr=e=>e.reduce(((e,t)=>e+t))/e.length,Wr=e=>e?e.map((e=>e.coords)):null,Xr=g((({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(Me,{options:s,label:i,placeholder:a||l,onChange:e=>r(e.key),value:o})})),Gr=g((({regions:e=[],selectedRegion:t,onSelectedRegion:n,branches:l=[],selectedBranch:a,onSelectedBranch:r})=>p("div",{className:"flex flex-col sm:flex-row gap-m order-1",children:[u("div",{className:"flex-1 min-w-0",children:u(Xr,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:n,label:"Регион"})}),u("div",{className:"flex-1 min-w-0",children:u(Xr,{data:l,fieldValue:"branchCode",fieldLabel:"address",selected:a,setSelected:r,label:"Отделение",placeholder:"Выберите отделение"})})]}))),Jr=g((({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]})}))),Yr=g((({className:e})=>{const[t,n]=l("option2"),a=r((e=>n(e)),[]);return p("div",{className:w("order-4",e),children:[u(Jr,{className:"mb-xs",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===t,onChange:a}),u(Jr,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===t,onChange:a})]})})),qr=["От 1 дня","До 365 дней"],Kr=g((({days:e,setDays:t})=>p("div",{className:"order-1",children:[u(de,{size:"text-m",font:"font-light",children:"Срок аренды"}),u(mt,{min:1,max:365,value:e,items:qr,onChange:t})]}))),Zr=g((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:n,safeBoxCases:l=[],selectedBoxSize:a,onSelectedBoxSize:r})=>p("div",{className:"flex flex-col sm:flex-row gap-4 order-1",children:[u("div",{className:"flex-1 min-w-0",children:u(Xr,{data:e,fieldLabel:"volume",selected:t,setSelected:n,label:"Размер",placeholder:"Выберите размер"})}),u("div",{className:"flex-1 min-w-0",children:u(Xr,{data:l,fieldLabel:"safeBoxCasesSize",selected:a,setSelected:r,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),Qr=g((({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:"contents sm:block flex-1 space-y-xl",children:[u(Gr,{regions:e,selectedRegion:t,onSelectedRegion:e=>c({selectedRegion:e}),branches:n,selectedBranch:l,onSelectedBranch:ei(c)}),u(Kr,{days:a,setDays:e=>c({days:e})}),u(Zr,{caseVolumes:o,selectedCaseVolume:r,onSelectedCaseVolume:ti(c),safeBoxCases:s,selectedBoxSize:i,onSelectedBoxSize:e=>c({selectedBoxSize:e})}),u("div",{className:"order-4",children:u(de,{size:"text-l",font:"font-light",color:"text-secondary-text",children:"Тип договора"})}),p("div",{className:"contents sm:flex justify-between items-center",children:[u(Yr,{className:"mb-4 sm:mb-0"}),u(ie,{text:"Офисы на карте",version:"primary",onClick:d,className:"order-6"})]})]}))),ei=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},ti=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},ni=g((({days:e,tariffs:t=[]})=>{const n=ai(e,t),l="На рисунке изображена пачка листов\nформата А4";return p("div",{className:"contents sm:flex flex-col justify-between order-2",children:[p("div",{className:"flex flex-col sm:flex-row gap-x-11 gap-y-7 order-5 sm:order-none py-7 sm:py-0 border-t border-main-divider sm:border-none",children:[li("Аренда за",e),li("Цена",n+" ₽")]}),u("span",{className:"sm:hidden order-3 mb-2 text-s-light text-secondary-text",children:l}),p("div",{className:"flex flex-col items-center gap-3 order-3 sm:order-none mb-6 sm:mb-0 bg-primary-main py-3 sm:p-8 text-center",children:[u(It,{image:{icon:"PackA4Icon"},className:"sm:h-[246px]"}),u("span",{className:"hidden sm:inline text-s font-light text-white opacity-80 whitespace-pre-line",children:l})]})]})})),li=(e,t)=>p("div",{className:"flex justify-between items-center gap-y-1 sm:flex-col sm:items-start",children:[u("div",{className:"text-l font-light text-secondary-text",children:e}),u("span",{className:"text-l sm:text-h3 text-primary-text",children:t})]}),ai=(e,t)=>{const n=ri(e);return e*(t?.find((e=>e.tariffType===String(n)))?.tariffValue||0)},ri=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},ii=(e,t)=>e.find((e=>e.branchCode===t)),si=g((e=>{const{regions:t,data:n,branches:l,onChange:r,onClick:i}=e;a((()=>{r({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[n.selectedRegion,r]);const s=ii(l,n.selectedBranch),o=oi(s?.safeBoxCaseVolumes),c=ci(s?.safeBoxCaseVolumes,n.selectedCaseVolume)?.safeBoxCases,d=di(c,n.selectedBoxSize);return p("div",{className:"flex flex-col sm:flex-row gap-x-9 align-top mb-6",children:[u(Qr,{...n,regions:t,onClick:i,branches:l,caseVolumes:o,safeBoxCases:c,onChange:r}),u(ni,{days:n.days,tariffs:d})]})})),oi=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],ci=(e,t)=>e?.find((e=>e.volume===t)),di=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs,mi=[];const hi=async e=>await V(e,{method:"GET"})||mi,ui=g((({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=D(),h=pi(c.selectedRegion,m),g=function(e){const{data:t}=$(e?`/api/v1/safeboxes?regionCode=${e}`:null,hi);return t||mi}(h),f=r((e=>d((t=>({...t,...e})))),[d]),x=(b=ii(g,c.selectedBranch)||g,Array.isArray(b)?b.map((e=>e.gpsLatitude&&e.gpsLongitude?[e.gpsLatitude,e.gpsLongitude]:[])):b?.gpsLatitude&&b?.gpsLongitude?[[b.gpsLatitude,b.gpsLongitude]]:[]);var b;return p(C,{className:n,defaultPadding:"",...a,children:[p("div",{className:"p-4xl",children:[e?u(I,{title:e,headingType:"h3",as:"h2",className:"text-primary-text mb-s text-center"}):null,u(si,{regions:m,branches:g,data:{...c,selectedRegion:h},onClick:o,onChange:f}),t?u(ce,{size:"text-s",font:"font-light",children:t}):null]}),x.length&&i?u(Fr,{points:x,className:"h-[640px]"}):null]})})),pi=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e;function gi(e){throw new Error(e)}const fi=e=>Boolean(e?.icon||e?.src),xi={normal:{icon:"h-11 w-11",image:"h-14 w-14"},small:{icon:"h-12 w-12",image:"h-14 w-14"}},bi={normal:"",small:"min-h-6xl"},vi={description:"text-white/80 text-l font-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"},yi=g((({className:e="",title:t,description:n,steps:l,buttons:a,size:r="normal",version:i="primary",...s})=>p(C,{className:w("box-border flex flex-col gap-xs",e),defaultPadding:"p-6xl",version:i,...s,children:[t?u(I,{headingType:"h3",className:"text-left",title:t}):null,n?u(ce,{size:"text-xl",font:"font-light",children:u("span",{className:vi.description,children:n})}):null,l?.length?u("div",{className:"box-border",children:u("div",{className:"flex flex-col justify-between",children:l.map(Ni(r,i))})}):null,bn(a,{className:"mt-3",isVertical:!0})]}))),Ni=(e,t)=>(n,l)=>{const{type:a}=n;if("default"!==a&&"rte"!==a)return null;switch(a){case"default":return wi(e,t)(n,l);case"rte":return u(lr,{__html:n.__html});default:gi(n)}},wi=(e,t)=>(n,l)=>u("div",{className:"contents",children:p("div",{className:"flex flex-row text-center relative py-3",children:[u("div",{className:"overflow-hidden flex flex-shrink-0 items-center",children:ki(e,t)(n,l)}),p("div",{className:w("flex flex-col justify-center h-fit",bi[e]),children:[n.label?u("div",{className:"text-l m-0 text-left",children:n.label}):null,n.description?u("div",{className:w("text-s font-light text-left",vi.description),children:n.description}):null]})]})},String(l)),ki=(e,t)=>(n,l)=>{const a="normal"===e?"38":"24",r="secondary"===t?"white":"color",i=Boolean(n?.icon?.src),s=xi[e][i?"image":"icon"];return u("div",{className:w(s,i?"":`rounded-md ${vi.iconBackground}`,"z-10 mr-s flex justify-center content-center"),children:u("span",{className:"flex self-center text-h4 text-secondary-text group-data-secondary:text-white",children:fi(n?.icon)?u(It,{image:{...n.icon,iconVersion:n.icon?.iconVersion||r},width:a,height:a}):u("span",{children:l+1})})})},Ci="h-12 flex-1 flex items-center justify-center cursor-pointer",Si="font-sans text-m text-center",Ti="text-secondary-text sm:group-hover/btn:text-primary-main",Ii={block:{scrollable:{active:`inline-flex px-4 grow whitespace-nowrap ${Ci} bg-white text-primary-main`,default:`inline-flex px-4 grow whitespace-nowrap ${Ci} group/btn bg-white`},centered:{active:`px-4 rounded-md ${Ci} bg-primary-main text-white whitespace-nowrap`,default:`px-4 rounded-md ${Ci} group/btn bg-transparent whitespace-nowrap`},wideScreen:{active:`${Ci} bg-primary-main text-white whitespace-nowrap`,default:`${Ci} group/btn bg-white whitespace-nowrap`}},text:{scrollable:{active:`${Si} flex items-center h-full border-0 border-b-2`,default:`${Si} ${Ti}`},centered:{active:`${Si} text-white`,default:`${Si} ${Ti}`},wideScreen:{active:`${Si} text-white text-black px-2.5 bg-white sm:bg-primary-main sm:text-white`,default:`${Si} ${Ti} px-2.5 bg-white`}}},Bi=(e,t,n)=>{const l=t?"active":"default";return Ii[e][n||"wideScreen"][l]},_i=g((e=>{const{tab:t,currentTab:n,onClick:l,tabsMode:a}=e,r="link"===n?.type&&n.href===t.href,i=Y()(t);return u("div",{className:Bi("block",r,a),role:"tab","aria-selected":r,onClick:()=>l(t),children:u("a",{role:"tab",className:w("flex flex-1 items-center justify-center h-full",Bi("text",r,a)),target:t.target,href:i.href,onClick:e=>{i.onClick(e),l(t)},children:u("span",{children:t.text})})})})),Ri=(e,t,n)=>u("div",{className:w("bg-main-divider min-w-[22px] h-[22px] rounded-full text-xs ml-xs flex justify-center items-center",n&&"scrollable"!==e?"bg-white/30 text-white":"text-secondary-text group-hover/btn:text-primary-main"),children:t}),zi=({page:e,showCounter:t,...n})=>(l,a)=>{const r=l.type;if("group"!==r&&"link"!==r)return null;switch(r){case"group":return(({page:e,currentTab:t,showCounter:n,onClick:l,tabsMode:a})=>(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:Bi("block",s,a),role:"tab","aria-selected":s,onClick:()=>l(r),children:p("div",{className:w("flex flex-1 items-center justify-center h-full",Bi("text",s,a)),children:[u("span",{children:r.title}),n&&o?Ri(a,o,s):null]})},`group-${String(i)}`)})({page:e,showCounter:t,...n})(l,a);case"link":return u(_i,{tab:l,...n},String(a));default:gi(r)}return null},ji=g((({tabs:e,...t})=>u("div",{className:"flex p-1 m-auto bg-main-gray rounded-md",children:e?.map(zi({...t}))}))),Pi=g((e=>{const{tabs:t,...n}=e,[l,a]=un({itemCount:t?.length||0});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(en,{containerRef:l,snapAlign:"snap-start",onVisibleIndicesChange:a.handleVisibleIndicesChange,children:t?.map(zi({...n}))})}),a.canScrollLeft?u($n,{className:"absolute z-40 top-0 left-6",onClick:a.scrollLeft}):null,a.canScrollRight?u(Mn,{className:"absolute z-40 top-0 rotate-180 right-6",onClick:a.scrollRight}):null]})})),Li=g((e=>{const{className:t="",isSticky:n,tabs:i,...s}=e,[o,c]=l(i?i[0]:void 0);a((()=>{i&&i[0]&&Mi(i[0])}),[]),a((()=>{"group"===o?.type&&b.subject("tab",{type:o.type,label:o.ref})}),[o]);const d=r((e=>{Mi(e),c(e)}),[]);return u(C,{className:w("relative box-border flex gap-x-1 w-full overflow-x-auto no-scrollbar",n?"sticky top-1 z-20":"",t),defaultPadding:"p-0",role:"tablist",...s,children:$i({tabs:i,onClick:d,currentTab:o,...s})})})),$i=({tabsMode:e,tabs:t,...n})=>{switch(e){case"wideScreen":return t?.map(zi({tabsMode:e,...n}));case"centered":return u(ji,{tabs:t,tabsMode:e,...n});case"scrollable":return u(Pi,{tabs:t,tabsMode:e,...n})}return null},Mi=e=>{"group"===e.type&&b.fire("tab",{type:e.type,label:e.ref}),"link"===e.type&&b.fire("tab",{type:e.type,label:e.href})},Vi={Buttons:({buttons:e})=>bn(e,{className:"mt-3",buttonClassName:"w-12 h-12"}),Img:({image:e})=>e?.src?u(It,{image:e,className:"m-0",imageClassName:"m-0"}):null,List:({isDotted:e,...t})=>u(qn,{className:"flex flex-col justify-between items-start text-m pl-2 text-base",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>p("div",{children:[e?u("div",{className:"mb-xs",children:e}):null,t?u("div",{className:"text-s text-secondary-text",children:t}):null]})},Ai=g((({title:e,icon:t})=>p("div",{className:"mb-xs",children:[e?u(de,{size:"text-l",font:"font-light",children:e}):null,t?u(It,{className:"ml-auto min-w-6",image:t,width:"24",height:"24"}):null]}))),Oi=g((({tile:e,...t})=>p("div",{className:"h-full",children:[u(Ai,{title:e?.header?.title}),e?.data?.length?e.data.map(((e,n)=>u("div",{className:"mb-xs",children:Di(e,t)},String(n)))):null]})));function Di(e,t){if(!e||!e.tableCellType||!(e.tableCellType in Vi))return null;const n=Vi[e.tableCellType];return u(n,{displayTable:()=>null,isVisible:!0,...e,...t})}const Fi=g((({tiles:e,...t})=>e?.length?u(pn,{...t,padding:void 0,children:e.map(((e,n)=>u(Oi,{tile:e,...t},String(n))))}):null)),Ei=g((({tiles:e,...t})=>e?.length?u("div",{className:"flex flex-col gap-3.5",children:e.map(((e,n)=>u(Oi,{tile:e,...t},String(n))))}):null)),Ui=g((({className:e,title:t,description:n,tariffsColumns:l,rowHeaders:a,orientation:r="vertical",...i})=>{const s=Hi(l),o=Wi(a,s);return p("section",{className:`p-6xl space-3xl bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[u(qt,{title:t,description:n,headlineVersion:"M",align:"text-left",isPadding:!1}),u("vertical"===r?Ei:Fi,{tiles:o,...i})]})})),Hi=e=>e?.[0]?.data?e[0].data:[],Wi=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),Xi=g((({className:e="",title:t,description:n,iconVersion:l,image:a,__html:r,items:i=[],...s})=>p(C,{className:w("flex gap-3 sm:gap-4 bg-white group-data-secondary:bg-primary-main/10",e),...s,children:["small"===l?u("div",{className:"mt-1",children:Gi()}):null,"big"===l?Ji(a):null,p("div",{className:"flex flex-col w-fit gap-1 sm:gap-2",children:[t?u(de,{size:"text-l",font:"font-normal",color:"text-primary-text group-data-secondary:text-white",children:t}):null,n?Yi(n):null,i?.length?qi(i,!0):null,r?u(lr,{__html:r}):null]})]}))),Gi=()=>u("div",{className:"rounded-full h-4 w-4 text-center text-xs font-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main",children:"i"}),Ji=e=>e?.src?u(It,{className:"h-fit flex-shrink-0",image:e}):null,Yi=e=>u(ce,{size:"text-s",font:"font-light",color:"text-secondary-text group-data-secondary:text-white",children:e}),qi=(e,t)=>u("ul",{className:w("text-secondary-text group-data-secondary:text-white/80",t?"list-disc pl-6":""),children:e.map(((e,t)=>u("li",{children:u(de,{size:"text-s",font:"font-light",children:e})},`listItem-${t}`)))}),Ki={ApplicationForm:Dt,ButtonsBlock:Nn,BonusBenefitsBlock:xn,CardTransfer:In,Carousel:Fn,CarouselCard:fl,CarouselCatalogCard:bl,CarouselProductCard:yl,CarouselBankHistoryCard:En,CarouselTariffsCard:dl,ComparisonTable:Pl,Footer:Ia,Header:Aa,Headline:qt,HorizontalLayout:Fa,ImgBlock:Ea,LinkDocs:Ja,MobileAppTile:Qa,PictureText:vr,Placeholder:yr,ProductBlock:Sr,StepsBlock:yi,Tabs:Li,TariffsTable:Ui,TextBlock:Xi,RichTextBlock:Ir,RollupItem:ga,SafeDepositRental:ui,VerticalLayout:Da,CarouselRecommendationCard:al,ExchangeRateTile:ia,CarouselProgramsCard:Hn,ProductGallery:Tr,BenefitsBlock:Ut},Zi=864e5;function Qi(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 $(e,l)}const es=()=>{const e=globalThis.localStorage?.getItem("location");try{return e?JSON.parse(e):null}catch(e){return null}};const ts=["Header","Footer"],ns=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function ls(e=globalThis){const t=s(new Map);a((()=>N.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])=>!ts.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[n]=t.length>0?dn(ns)(t):[];return n}([...t.current||[]]):void 0)}),100);return e.addEventListener("scroll",n),()=>{n.dispose(),e.removeEventListener("scroll",n)}}),[e])}const as=(e,t,n=300)=>a((()=>{const t=setTimeout(e,n);return()=>{clearTimeout(t)}}),t),rs=g((({className:e,onClick:t})=>u("button",{className:w("flex justify-center items-center w-12 h-12 p-1 bg-transparent border-none",e),onClick:t,title:"Закрыть",children:u(It,{image:{icon:"CloseIcon"},width:"24",height:"24"})})));function is({onOpen:e,onClose:t}={}){a((()=>b.subscribe("dialog",(n=>{switch(n.type){case"open":e&&e(n);break;case"close":t&&t();break;default:gi(n)}}))),[e,t])}function ss(e,t=!1){const[n,{setTrue:a,setFalse:i}]=ze(t),[o,c]=l({id:e}),d=s(n);d.current||=n;const m=r((t=>{t.id===e?(c(t),a()):i()}),[e]),h=r((()=>{i(),b.fire("dialog",{type:"close"})}),[]);return is({onOpen:m,onClose:i}),{...o,isOpened:n,wasOpened:d.current,open:a,close:i,onClose:h}}const os="cookie",cs=g((({termLink:e,personalDataPolicyLink:t})=>{const{isOpened:n,open:l,close:a}=ss(os);as((()=>{globalThis.localStorage?.getItem(os)||l()}),[],3e3);const i=r((()=>{globalThis.localStorage?.setItem(os,"true"),a()}),[a]);return n?u("div",{className:"container z-40 fixed bottom-0 left-0 right-0 pointer-events-none",children:p("div",{className:"bg-white m-5 p-5 sm:m-6 sm:p-6 rounded-md flex sm:items-center pointer-events-auto shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:[u("div",{className:"sm:flex-1",children:p(ce,{size:"text-s",font:"font-light",color:"text-primary-text",children:["АО «Россельхозбанк» использует",u(Un,{isRemote:!0,className:w(ds(e?.href)),...e,children:"cookie"}),"(файлы с данными о прошлых посещениях сайта) для персонализации сервисов и удобства пользователей. Вы можете запретить сохранение cookie в настройках своего браузера.",u(Un,{isRemote:!0,className:w(ds(t?.href)),...t,children:"Обработка Ваших персональных данных"}),"производится в соответствии с требованиями Федерального закона от 27.07.2006 № 152-Ф3 «О персональных данных»."]})}),u("div",{className:"ml-3 sm:ml-0 w-24 flex justify-end",children:u(rs,{className:"bg-main-gray rounded-md",onClick:i})})]})}):null})),ds=e=>["inline mx-1",e?"text-green-dark":""];const ms=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 hs=g((({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 font-light z-50 overflow-x-hidden overflow-y-scroll no-scrollbar",e),role:"dialog",children:p("div",{className:"relative container pb-6xl min-h-full",children:[p("div",{className:"sticky bg-white pt-xl top-0",children:[u(rs,{className:"absolute top-0 -right-6xl",onClick:r}),n]}),l]})}):null))),us=g((({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-44 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"})]}))),ps=g((({currentLocation:e,onChangeLocation:t,foreignOffices:n})=>{const a=ss("location"),[i,s]=l(""),o=fs(function(){const{data:e}=$("/api/v1/regions",A);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,gs),d=r((e=>{a.onClose&&a.onClose(),t&&t(e)}),[a.onClose,t]);return p(hs,{...a,head:p("div",{children:[u(xs,{currentLocation:e,onChangeLocation:d}),u(us,{onSearch:s,searchTerm:i})]}),children:[i&&i.length>=3?u("div",{children:o.filter((({name:e})=>e&&ms(e.toLowerCase())(i.toLowerCase())>=.8)).map(vs(d))}):u("div",{className:"columns-5",children:Array.from(c.entries()).map(bs(d))}),u(ys,{foreignOffices:n})]})})),gs=e=>e.name?.charAt(0)||"",fs=e=>e.map((e=>({...e,name:e.name?.replace(/республика|область|край'/gi,"").trim()||""}))),xs=g((({currentLocation:e,onChangeLocation:t})=>e?p("div",{className:"mb-4",children:[u(de,{size:"text-l",font:"font-light",children:"Сейчас выбран: "}),u("button",{className:"cursor-pointer",onClick:()=>{t&&t(e)},children:u(de,{color:"text-primary-main",children:e.name})})]}):null)),bs=e=>([t,n])=>p("div",{className:"break-inside-avoid mb-2xl w-56",children:[u("div",{className:"mb-s",children:u(de,{size:"text-h6",children:t})}),n.map(vs(e))]},t),vs=e=>t=>u("div",{className:"mb-2xs",children:u("button",{className:"cursor-pointer hover:text-primary-hover",onClick:()=>{e&&e(t)},children:t.name||""})},t.id),ys=g((({foreignOffices:e})=>e?.length?p("div",{className:"border-t border-main-divider mt-2xs pt-2xs",children:[u("div",{className:"mb-m",children:u(de,{size:"text-m",font:"font-light",color:"text-secondary-text",children:"Представительства за рубежом:"})}),u("div",{className:"flex gap-10",children:e.map(((e,t)=>u(Ns,{...e},String(t))))})]}):null)),Ns=g((({icon:e,...t})=>{const n=Y(),{text:l,target:a,href:r,onClick:i}=n(t);return p("div",{className:"flex gap-x-3",children:[e?u(It,{pathPrefix:"/wcms-resources/",image:e}):null,l?u("a",{className:"hover:text-primary-hover",href:r,target:a,onClick:i,children:l}):null]})}));function ws(e,...t){return e.map(((e,n)=>[e,...t.map((e=>e[n]))]))}const ks=(e,t)=>(n,l)=>{for(const[a,r]of l)n.set(a,e(n.get(a)||t,r));return n},Cs=e=>e.toLowerCase().split(/[^0-9a-zа-я-]+/).filter((e=>e.length>=3&&!/[0-9a-z]/.test(e))),Ss=e=>t=>e.map((([e,n])=>[ms(t)(e),n])).filter((([e])=>e>=.8)).map((([e,t])=>Is(t,e))).reduce(ks(Math.max,0),new Map),Ts=e=>t=>{return ws(t,t.map((({title:e})=>e)).map((e=>t=>{const n=Cs(t||"");return n.length?er(e.map((e=>cn(n.map(ms(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},Is=(e,t)=>new Map(e.map((e=>[e,t]))),Bs=["/"],_s=({basePathList:e=Bs,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}=$(o,Rs),[d,m]=l(null);return as((()=>{c&&m(c.map((e=>t=>{const{corpus:n,dictionary:l}=t||{};if(!(e&&n?.length&&l&&Object.keys(l).length))return[];const a=Cs(e);if(!a.length)return[];const r=Object.entries(l),i=[...a.map(Ss(r)).reduce(ks(((e,t)=>e+t),0),new Map).entries()].filter((([,e])=>e>=.799*a.length)).map((([e])=>n[e]));return Ts(a)(i)})(r)))}),[c,r]),[d,{value:r,onChange:s}]},Rs=async(...e)=>(await Promise.allSettled(e.map((e=>V(U(e,"/","search.index.json")))))).map((e=>"fulfilled"===e.status?e.value:{})),zs=g((({className:e,topItems:t})=>{const n=Y({isRemote:!0});return u("div",{className:w("flex items-start justify-between",e),children:t?.map(n).map(js)})})),js=(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(Ps,{...e,basePath:o(a),index:t},String(t))))]},String(t))},Ps=g((({text:e,index:t,basePath:n,...l})=>{const a=Y({isRemote:!(!d.BASE_PATH||!n)&&!d.BASE_PATH.startsWith(n),basePath:n}),{href:r,target:i,onClick:s}=a(l);return u("a",{className:w("text-l font-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}`})})),Ls=g((({className:e,value:t,autoFocus:n,onChange:l,onFocus:a})=>{const i=r((e=>{l&&l(e.target?.value||"")}),[l]);return p("div",{className:w("font-sans relative",e),role:"form",children:[u("div",{className:"absolute h-full flex items-center pl-m pointer-events-none",children:u(It,{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"),value:t,type:"text",name:"search-bar-input",placeholder:"Поиск по сайту",autoFocus:n,onChange:i,onFocus:a})]})})),$s=g((({topItems:e})=>{const t=ss("search"),n=i((()=>e?.map((e=>e.href||"/"))),[e]),[l,r]=_s({basePathList:n,initialQuery:t.message,wasOpened:t.wasOpened}),s=i((()=>Ms(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(hs,{...t,head:u(Ls,{autoFocus:!0,...r}),children:u(zs,{topItems:s})})})),Ms=e=>t=>e?.length&&t?.length?ws(e,t).map((([e,t])=>({...e,items:t?.map((({title:e,uri:t})=>({text:e,href:U("/",t)})))}))):[];const Vs=h();const As=g((({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:Os()}))),Os=()=>{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"})]})},Ds=g((({className:e=""})=>{const t=function(e){const[t,n]=l(0);return a((()=>{(async()=>{const[t]=await Vs.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:r((async()=>{n(await Vs.like(e))}),[e]),dislike:r((async()=>{n(await Vs.dislike(e))}),[e])}}(J().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(As,{onClick:G(t.like),ariaLabel:"Поставить отметку «лайк»"}),u(As,{onClick:G(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),u("span",{className:"select-none",children:t.likeCount})]})})),Fs=g((({className:e,blocksRegistry:t,blockDecorator:n,data:i={}})=>{const{style:s,slots:o,likeControl:c,colorPalette:m="pc"}=i,h={key:"",page:i,blocksRegistry:t,blockDecorator:n,parent:i},g=ca(d.SITEMAP||"sitemap",i?.fallback),[f,x]=function(e="Москва"){const t=es(),[n,i]=l(t?.region??{name:e}),{data:s}=Qi("/api/v1/region",A);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)}),[])]}(g?.defaultLocation);ls();const[b,{setTrue:v,setFalse:y}]=ze();return is({onOpen:v,onClose:y}),p("section",{className:w("relative",s,e,b?"overflow-hidden h-screen":""),"data-theme":m,children:[o?.header?u("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:jn(o?.header,{...h,slotName:"header",extraProps:{sitemap:g,location:f}})}):null,p("div",{className:"container grid grid-cols-12 gap-1",children:[Pn({block:i,options:h,extraProps:{className:"scroll-mt-12"}}),jn(o?.footer,{...h,slotName:"footer",extraProps:{sitemap:g,location:f}})]}),c?u("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:u(Ds,{className:"rounded-tl-3xl sticky bottom-0 pointer-events-auto"})}):null,u(cs,{termLink:{href:"/pd-policy#cookie",target:"_blank"},personalDataPolicyLink:{href:"/pd-policy",target:"_blank"}}),u($s,{topItems:g?.topItems}),u(ps,{currentLocation:f,foreignOffices:g?.foreignOffices,onChangeLocation:x})]})}));Fs.childrenTypes=[],Fs.slots=()=>["header","footer"];e.Blocks=Ki,e.ContentPage=Fs,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=G,e.joinList=e=>t=>t.reduce(((t,n,l)=>t.length?t.concat({...e,key:`sep-${l}`},n):[n]),[]),e.packageVersion="0.12.12",e.projectSettings=d,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=H,e.useRouter=J,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).UniMobileBlocks={})}(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=e=>e&&!e.endsWith("/")?`${e}/`:e,c={PROD_BRANCH:"master"},d=new class{_=c;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||c.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 o(this._.CDN)}get BASE_PATH(){return o(this._.BASE_PATH)}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},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/${d.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/${d.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/${d.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),g=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:f(e)),t._tmpl},f=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 x{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 b=new x;function v(e,{sensitivity:t,rootRef:n}={}){const l=s(null),r=i((()=>({threshold:y(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 y(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 N=new x;const w=(...e)=>e.flatMap((e=>e)).filter(Boolean).join(" "),k={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","":""},C=g((({className:e,version:t="primary",isTheme:n=!0,defaultPadding:i="p-xl",padding:s,block:o,tag:c="section",role:d,children:m})=>{const h=c,p=function(e){return v(r((t=>{if(!e||!t?.length)return;const n=t[t.length-1];N.fire("intersection",{block:e,intersection:n})}),[e]),{sensitivity:1})}(o),[g,f]=l(!1);a((()=>b.subscribe("tab",(e=>{f(Boolean(e.label&&o?.labels?.length&&!o.labels.includes(e.label)))}))),[o]);const x=t&&n;return u(h,{className:w("@container font-sans",x?"group":"",k[t],g?"hidden":"",s||i,e),...x?{"data-ver":t}:{},...o?.anchor?{id:o.anchor,ref:p}:{},role:d,children:m})})),S={h1:"h1",h2:"h1",h3:"h2",h4:"h2",h5:"h3",h6:"h3"},T={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},I=g((({className:e="",headingType:t="h3",as:n="h3",title:l,children:a})=>{const r=S[n]||"h3";return u(r,{className:w("font-sans m-0",T[t],e),children:l||a})})),B=e=>e,_=(e,t)=>{const[n,a]=l(e),[i,o]=l(!1),[c,d]=l({}),m=s({}),h=r(((e,t)=>{const{parse:l=B,format:r=B}=t||{};return m.current||(m.current={}),m.current[e]||=t=>{a((n=>({...n,[e]:l(t)}))),d((t=>({...t,[e]:!0})))},{value:r(n[e]),isDirty:i||c[e],onChange:m.current[e]}}),[n,i,c]),u=r((()=>{a(e),o(!1),d({})}),[e]),p=r((e=>{e.preventDefault(),o(!0),t&&t(n)}),[t,n]);return[n,{isDirty:i||Object.values(c).some(Boolean),field:h,reset:u,onSubmit:p}]},R=e=>t=>t&&Object.entries(e).flatMap((([e,n])=>n(t[e])))||[],z=e=>!e?.length,j=e=>t=>n=>e(n)?[]:[t],P=e=>null!=e,L=new Map;function $(e,t,{fallback:n,cache:r}={}){const s=i((()=>A(e)),[e]),[o]=(e=>Boolean(e&&Array.isArray(e)&&1===e.length&&"string"==typeof e[0]))(s)?s:[],[c,d]=l(void 0),[m,h]=l(void 0);a((()=>{!s.some(P)||(async()=>{try{const e=await(o?((e,t=L)=>n=>{const l=t.get(n);if(P(l))return l;const a=e(n);return P(a)?t.set(n,Promise.resolve(a)):t.delete(n),a})(t,r)(o):t(...s));d(e),h(void 0)}catch(e){d(void 0),h(e)}})()}),[t,r,s]);const u=n&&o&&n[o];return{data:!c&&u?u:c,error:m,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function A(e){return Array.isArray(e)?e:e instanceof Function?A(e()):[e]}async function M(e,t){try{return e?await V(e,t):null}catch(e){console.error(e)}return null}async function V(e,t){const n=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await n.json()}const O=[];function D(){const{data:e}=$("/api/v1/regions",V);return e||O}const F=e=>Boolean(e?.includes(":")),E=(e,t)=>Boolean(e&&!F(e)&&(!t||"_self"===t)),U=(...e)=>e.filter(Boolean).join("/").replace(/\/+/g,"/");var H=Object.freeze({__proto__:null,isURL:F,isLocalURL:E,isHash:e=>Boolean(e?.startsWith("#")),withoutQuery:e=>(e||"").replace(/\?.*/,"").replace(/\/$/,""),joinPath:U});const W=e=>(t,n=d.BASE_PATH)=>{if(!t||F(t)||G(t,d.CDN))return t;const l=t.startsWith("/");return U(G(t,n)?"":n,l?"/":e.pathname?.split("/").slice(0,-1).join("/"),t)},G=(e,t)=>t&&e&&e.startsWith(t),X=(e,t)=>X._impl(e,t);function J(){return J._impl()}function Y(e={}){const{isRemote:t,basePath:n}=e,l=J(),{close:a}=((e="")=>({open:t=>b.fire("dialog",{type:"open",id:e,message:t}),close:()=>b.fire("dialog",{type:"close"})}))();return e=>({...e,href:t&&!n?e.href:W(l)(e.href,n),"aria-label":e.text,onClick:X(r(e),e)});function r({href:e,target:n,onClick:r}){return i=>{r&&r(i),e&&!t&&E(e,n)&&(a(),i?.preventDefault(),l.push(e))}}}X._impl=e=>e,X.setup=e=>{X._impl=e},J._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{},back:()=>{}}),J.setup=e=>{J._impl=e};const q={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","":""},K="bg-main-divider text-main-disabled",Z={primary:K,secondary:K,white:K,link:"",transparent:"",gray:K,"":""},Q="text-center font-sans select-none",ee={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","":""},te=g((e=>{const{text:t,aboveText:n,appendLeft:l,appendRight:a,version:r="primary"}=e;return p("div",{className:w(ne(e),"flex gap-2"),children:[l?u("div",{className:ee[r],children:l}):null,le(e)?p("div",{children:[n?u("div",{className:"text-xs font-light text-left",children:n}):null,u("div",{className:"text-left "+(n?"text-s -mt-3xs":"text-l"),children:t})]}):null,a?u("div",{className:ee[r],children:a}):null]})})),ne=e=>{const{version:t,aboveText:n,rounded:l}=e;if("link"===t)return"";const a=""+(n?"py-2.5 px-9":"py-4 px-9");return["group/btn items-center justify-center",le(e)?a:"h-12 w-12",l?"rounded-full":""].join(" ")},le=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),ae=({className:e,rounded:t,version:n})=>["inline-block",Q,n?Z[n]:"",t?"rounded-full":"rounded-md",e].join(" "),re=({className:e,rounded:t,version:n})=>[Q,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border h-fit",n?q[n]:"",t?"rounded-full":"rounded-md",e].join(" "),ie=g((({disabled:e,children:t,...n})=>{const l=Y()(n),a=t??u(te,{...l});return u(e?oe:se,{...l,children:a})})),se=g((({className:e="",href:t,rel:n,target:l,ariaLabel:a,version:r,rounded:i,onClick:s,children:o})=>u("a",{className:re({className:e,version:r,rounded:i}),href:t,rel:n,target:l,"aria-label":a,role:t?"link":"button",onClick:s,children:o}))),oe=g((({className:e,ariaLabel:t,version:n,rounded:l,children:a})=>u("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:ae({className:e,rounded:l,version:n}),children:a}))),ce=g((({children:e,...t})=>u("p",{className:w("font-sans",Object.values(t)),children:e}))),de=g((({children:e,...t})=>u("span",{className:w("font-sans",Object.values(t)),children:e}))),me=g((({link:e})=>p(ce,{size:"text-s",font:"font-light",color:"text-secondary-text",children:[u(de,{children:"Нажимая кнопку, вы подтверждаете согласие с "}),e?u(ie,{href:e.href,ariaLabel:"условия передачи данных",target:e.target,className:"text-primary-main",children:u(de,{children:e.text})}):null]}))),he=(e,t)=>{const{value:n,isDirty:l}=e,a=l?t(n):[];return{...e,errors:a,error:a[0]}},ue=g((({key:e,className:t="",inputClassName:n="",id:l,name:a,type:i="text",label:s,placeholder:o,value:c="",valid:d=!0,children:m,onChange:h,onFocus:g,onBlur:f,pattern:x})=>{const b=r((e=>{h&&h(e.target?.value||"")}),[h]),v=m?"pr-8":"",y=d?"border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text":"border-error";return p("div",{className:w("relative",t),children:[p("label",{children:[s?u("div",{className:"mb-xs",children:u(de,{size:"text-m",font:"font-light",children:s})}):null,u("input",{className:w("w-full border rounded-md text-primary-text outline-none p-4",v,y,n),id:l,name:a||l,placeholder:o,type:i,value:c,onInput:b,onFocus:g,onBlur:f,pattern:x},e)]}),m]})})),pe=g((({className:e,label:t,value:n="",error:l,onChange:a,onBlur:r})=>p("div",{className:e,children:[u(ue,{type:"text","aria-label":t,label:t,valid:Boolean(!l),value:n,onChange:a,onBlur:r}),u("div",{className:"h-2",children:l?u(de,{size:"text-xs",font:"font-light",color:"text-error",children:l}):null})]}))),ge=e=>"_"===e,fe=e=>/\d/.test(e),xe=e=>ge(e)||fe(e),be=[..."+7 (___) ___-__-__"],ve=be.findIndex(ge),ye=be.map(((e,t)=>xe(e)?be.slice(0,t).filter(xe).length:-1));const Ne=g((({children:e,onChange:t,...n})=>{const l=r((e=>t&&t(function(e){const t=e.replace(/\D/g,""),n=be.map(((e,n)=>fe(e)?e:t.charAt(ye[n])||e)),l=ye.indexOf(t.length-1)+1;return(l?n.slice(0,Math.max(ve,l)):n).join("")}(e))),[t]);return u(ue,{onChange:l,onFocus:e=>l(e?.target?.value||""),...n,children:e})})),we=g((({className:e,label:t,value:n,error:l,onChange:a,onBlur:r})=>p("div",{className:e,children:[u(Ne,{"aria-label":t,label:t,valid:Boolean(!l),value:n,onChange:a,onBlur:r}),u("div",{className:"h-2",children:l?u(de,{size:"text-xs",font:"font-light",color:"text-error",children:l}):null})]}))),ke="Некорректно заполненное поле",Ce=j((e=>null!=e&&""!==e))(ke),Se=j((e=>"string"==typeof e&&e.length>1))(ke),Te=j((e=>"string"==typeof e&&(10===e.length||12===e.length)))(ke),Ie=(Be=/^(\+7)?[\s-]?\(?[0-9]{3}\)?[\s-]?[0-9]{3}[\s-]?[0-9]{2}[\s-]?[0-9]{2}$/,j((e=>"string"==typeof e&&Be.test(e))))(ke);var Be;const _e=e=>p("div",{className:"mb-4 sm:flex sm:justify-between sm:gap-5 sm:mb-7",children:[p("div",{className:"sm:w-1/2",children:[u(pe,{className:"shrink-0 w-full mb-3",label:"Наименование организации",...he(e("fullName"),Ce)}),u(pe,{className:"shrink-0 w-full mb-3",label:"Контактное лицо",...he(e("name"),Se)})]}),p("div",{className:"sm:w-1/2",children:[u(pe,{className:"shrink-0 w-full mb-3",label:"ИНН",...he(e("inn"),Te)}),u(we,{className:"shrink-0 w-full mb-3",label:"Телефон",...he(e("phone"),Ie)})]})]}),Re=[{name:"Торговый эквайринг"},{name:"Мобильный эквайринг"},{name:"Интернет-эквайринг"},{name:"QR-эквайринг (СБП)"},{name:"Все виды эквайринга"}];function ze(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}]}const je={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},Pe=g((({className:e="",imageClassName:t="",name:n="",alt:l=`Иконка ${n}`,title:a=l,iconVersion:r="color",...i})=>{const s=J(),o=W(s)(U(d.CDN,"/icons",`${n}.svg`));return"normal"!==r?u($e,{className:e,children:p("svg",{className:w(Le(i.width),je[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}))})),Le=e=>e?"":"w-full h-full",$e=g((({className:e,children:t})=>e?u("div",{className:e,children:t}):t)),Ae=g((({className:e="",label:t,options:n=[],value:l,valid:i=!0,isBorder:o=!0,placeholder:c="",onChange:d})=>{const[m,{setFalse:h,toggle:g}]=ze(),f=function(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}(h),x=r((e=>{h(),d&&d(e)}),[d]);return p("div",{className:e,ref:f,children:[t?u("div",{className:"mb-xs",children:u(de,{size:"text-m",color:"text-primary-text",font:"font-light",children:t})}):null,p("div",{className:w("relative",m?"z-20":"z-10"),children:[p("div",{className:w("text-l flex justify-between items-center text-primary-text cursor-pointer",Oe(o,i)),onClick:g,children:[u("p",{className:"p-4 pr-8 h-14 overflow-hidden text-ellipsis whitespace-nowrap",children:Ve(l)||c}),u(Pe,{className:w("absolute right-3",m?"":"rotate-180"),name:"ArrowUpIcon",width:"16",height:"16"})]}),n?.length?u("div",{className:w("h-0",m?"":"overflow-hidden"),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:n.map(Me(x,m,(e=>e.key===l?.key)))})}):null]})]})})),Me=(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:Ve(l)}),u(Pe,{name:"DoneSimpleIcon",width:"16",height:"16",className:w("absolute right-4 pt-0.5",n(l)&&t?"":"hidden")})]},String(a)),Ve=e=>e?.text||e?.key||"",Oe=(e,t)=>w(e?"border rounded-md hover:border-primary-hover":"",t?" border-gray":"border-error"),De=g((e=>p("div",{children:[u(Ae,{...e,valid:!e.error}),u("div",{className:"h-2",children:e.error?u(de,{size:"text-xs",font:"font-light",color:"text-error",children:e.error}):null})]}))),Fe=({regions:e,field:t})=>p("div",{className:"mb-4 pb-1 border-b border-b-main-divider sm:flex sm:justify-between sm:gap-5 sm:mb-7 sm:border-none sm:pb-0",children:[u("div",{className:"mb-3 sm:mb-0 sm:w-1/2",children:u(De,{label:"Вид эквайринга",placeholder:"Выберите эквайринг",options:Re.map((({name:e=""})=>({key:e,text:e}))),...he(t("acquiringType"),Ce)})}),u("div",{className:"mb-3 sm:mb-0 sm:w-1/2",children:u(De,{label:"Адрес",placeholder:"Выберите адрес",options:e.map((({code:e="",name:t=""})=>({key:e,text:t}))),...he(t("region"),Ce)})})]}),Ee=g((({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-s",onClick:()=>l&&l(!e),children:[u("div",{className:w("relative flex-shrink-0 duration-300 w-9 h-5 mr-s rounded-2xl",e?"bg-primary-main":"bg-main-divider"),children:u("div",{className:w("absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded-full",e?"left-1/2":"left-[5%]")})}),u(de,{size:"text-l",font:"font-light",color:"text-primary-text",children:t})]}))),Ue=e=>p("div",{className:"sm:mb-5",children:[u(Ee,{text:"Хочу купить онлайн-кассу",...e("onlineCheckout")}),u(Ee,{text:"Хочу купить POS-терминал",...e("posTerminal")})]}),He=(e,t)=>{const n=re({className:"text-white",version:e?.version});return u("button",{type:"submit",className:w("p-4 mt-3 w-full sm:mt-0 sm:w-auto",n,t),children:e?.text?e.text:"Отправить заявку"})},We={acquiringType:{key:"Торговый эквайринг"},fullName:"",inn:"",name:"",phone:"",onlineCheckout:!1,posTerminal:!1},Ge=R({acquiringType:Ce,region:Ce,fullName:Ce,inn:Te,name:Se,phone:Ie}),Xe=g((e=>{const{button:t,link:n,onSubmit:l}=e,a=r((e=>{const{acquiringType:t,region:n,fullName:a,inn:r,name:i,phone:s,onlineCheckout:o,posTerminal:c}=e;z(Ge(e))&&l({typeForm:"acqr",region:n?.text||"",partnerComments:`Вид эквайринга=${t?.key||""}/Онлайн касса=${o}/POS-терминал=${c}`,fullName:a,inn:r,name:i,phone:s})}),[l]),[,{field:i,...s}]=_(We,a),o=D();return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(I,{headingType:"h6",title:"Вид эквайринга и регион",className:"sm:text-center mb-4"}),Fe({regions:o,field:i}),u(I,{headingType:"h6",title:"Данные организации",className:"sm:text-center mb-4"}),_e(i),Ue(i),He(t,"mb-4"),u(me,{link:n})]})})),Je=e=>p("div",{className:"sm:flex sm:justify-between sm:gap-5",children:[p("div",{className:"sm:w-1/2",children:[u(pe,{className:"shrink-0 w-full mb-3",label:"Контактное лицо",...he(e("name"),Se)}),u(pe,{className:"shrink-0 w-full mb-3",label:"ИНН",...he(e("inn"),Te)})]}),p("div",{className:"sm:w-1/2",children:[u(we,{className:"shrink-0 w-full mb-3",label:"Телефон",...he(e("phone"),Ie)}),u(pe,{className:"shrink-0 w-full mb-3",label:"Электронная почта",...he(e("mail"),Ce)})]})]}),Ye=({regions:e,field:t})=>u("div",{className:"w-full mb-3 sm:mb-5",children:u(De,{label:"Регион",placeholder:"Выберите регион",options:e.map((({code:e="",name:t=""})=>({key:e,text:t}))),...he(t("region"),Ce)})}),qe={name:"",phone:"",inn:"",mail:""},Ke=R({region:Ce,name:Se,phone:Ie,inn:Te,mail:Ce}),Ze=g((e=>{const{button:t,link:n,onSubmit:l}=e,a=r((e=>{const{region:t,name:n,phone:a,inn:r,mail:i}=e;z(Ke(e))&&l({typeForm:"bcrd",region:t?.text||"",name:n,phone:a,inn:r,mail:i})}),[l]),[,{field:i,...s}]=_(qe,a),o=D();return p("form",{className:"container",onSubmit:s.onSubmit,children:[Ye({regions:o,field:i}),Je(i),He(t,"mb-4"),u(me,{link:n})]})})),Qe=[];const et=async e=>await M(e,{method:"GET"})||Qe,tt=["От 1 000 ₽","До 1 000 000 000 ₽"],nt=["От 1 мес","До 15 лет"],lt=e=>p("div",{className:"mb-4 pb-1 border-b border-b-main-divider sm:flex sm:justify-between sm:gap-5 sm:mb-7 sm:border-none sm:pb-0",children:[p("div",{className:"sm:w-1/2",children:[u(pe,{className:"shrink-0 w-full mb-3",label:"Наименование организации",...e("fullName")}),u(pe,{className:"shrink-0 w-full mb-3",label:"ИНН",...he(e("inn"),Te)}),u(we,{className:"shrink-0 w-full mb-3",label:"Телефон",...he(e("phone"),Ie)})]}),p("div",{className:"sm:w-1/2",children:[u(pe,{className:"shrink-0 w-full mb-3",label:"Годовая выручка, ₽",...he(e("annualRevenue"),Ce)}),u(pe,{className:"shrink-0 w-full mb-3",label:"Контактное лицо",...he(e("name"),Se)}),u(pe,{className:"shrink-0 w-full mb-3",label:"Электронная почта",...e("mail")})]})]}),at=(e,{normalize:t,format:n})=>{const{value:a,onFocus:i,onBlur:s,onChange:o}=e,[c,d]=l(!1),m=r((e=>{d(!0),i&&i(e)}),[]),h=r((()=>{d(!1),o&&o(t(a)),s&&s()}),[o,a]);return{value:c||!n?a:n(a),onFocus:m,onBlur:h}},rt=(e,t,n)=>Math.max(t,Math.min(e,n)),it=(e=0)=>(t=0)=>new Intl.NumberFormat("ru-RU",{minimumFractionDigits:0,maximumFractionDigits:e}).format(Number(t)||0);function st(e){const t=(e||"").replace(/\D/g,""),n=parseInt(t,10);return Number.isNaN(n)?0:n}function ot({list:e=[],min:t,max:n,step:l,value:a=e[0]||t,disabled:r,onChange:i}){const s=e.length?e.indexOf(a):a,o={backgroundSize:`${(100*(s-t)/(n-t)).toFixed(2)}% 100%`};return p("div",{children:[e.length?u("div",{className:"absolute w-full flex justify-between -bottom-[3px] px-4",children:e.map(((e,t)=>u("div",{className:"w-2 h-2 rounded-full "+(s<=t||r?"bg-gray":"bg-primary-main")},String(t))))}):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",style:o,type:"range",min:t,max:n,step:l,value:s,disabled:r,onInput:t=>{const n=st(t.target?.value),l=e.length?e[n]:n;i&&i(l||0)}})})]})}const ct=1,dt=100,mt=g((e=>{const{className:t,title:n,items:l=[],list:a=[],min:i=(a.length?0:ct),max:s=(a.length?a.length-1:dt),step:o=1,value:c=a[0]||i,disabled:d=!1,onChange:m}=e,h=at(e,{normalize:(e=0)=>a.length?ht(a)(e):rt(e,i,s),format:it()}),g=r((e=>{m&&m(st(e.target?.value))}),[m]);return p("div",{className:t,children:[p("label",{className:"block relative",children:[n?u(de,{size:"text-m",font:"font-light",color:"text-primary-text",children:n}):null,u("input",{className:w("m-0 mt-xs font-sans text-h3 w-full h-14","border border-solid border-gray rounded-md 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"),disabled:d,onInput:g,...h}),ot({list:a,min:i,max:s,step:o,disabled:d,value:c,onChange:m})]}),ut(l)]})})),ht=e=>t=>e.reduce(((e,n)=>Math.abs(n-t)<Math.abs(e-t)?n:e)),ut=e=>u("div",{className:"flex justify-between my-2",children:e.map(((e,t)=>u(de,{size:"text-s",font:"font-light",color:"text-secondary-text",children:e},String(t))))}),pt=e=>p("div",{className:"mb-4 pb-1 border-b border-b-main-divider sm:flex sm:justify-between sm:gap-5 sm:mb-7 sm:border-none sm:pb-0",children:[p("div",{className:"mb-3 sm:mb-0 sm:w-1/2",children:[u("label",{children:u(de,{size:"text-m",font:"font-light",children:"Сумма кредита, ₽"})}),u(mt,{items:tt,min:1e3,max:1e9,...e("amount")})]}),p("div",{className:"sm:w-1/2",children:[u("label",{children:u(de,{size:"text-m",font:"font-light",children:"Срок кредита, месяцев"})}),u(mt,{items:nt,min:1,max:180,...e("term")})]})]}),gt=({regions:e,branches:t,field:n})=>p("div",{className:"mb-4 sm:flex sm:justify-between sm:gap-5 sm:mb-7 sm:border-none sm:pb-0",children:[u("div",{className:"mb-3 sm:mb-0 sm:w-1/2",children:u(De,{label:"Регион",placeholder:"Выберите регион",options:e.map((({code:e="",name:t=""})=>({key:e,text:t}))),...he(n("region"),Ce)})}),u("div",{className:"mb-3 sm:mb-0 sm:w-1/2",children:u(De,{label:"Адрес",placeholder:"Выберите адрес",options:t.map((({branchCode:e="",address:t=""})=>({key:e,text:t}))),...he(n("department"),Ce)})})]}),ft={amount:1e3,term:12,fullName:"",inn:"",name:"",phone:"",mail:"",annualRevenue:""},xt=R({annualRevenue:Ce,inn:Te,name:Se,phone:Ie,region:Ce,department:Ce}),bt=g((({button:e,link:t,onSubmit:n})=>{const l=r((e=>{const{amount:t,term:l,fullName:a,inn:r,name:i,phone:s,mail:o,region:c,department:d,annualRevenue:m}=e;z(xt(e))&&n({typeForm:"cred",fullName:a,inn:r,name:i,phone:s,mail:o,region:c?.text||"",department:d?.text||"",partnerComments:`Сумма=${t}/Срок=${l}/Выручка=${m}`})}),[n]),[a,{field:i,...s}]=_(ft,l),o=D(),c=function(e){const{data:t}=$(e?`/api/v1/branches?regionCode=${e}`:null,et);return t||Qe}(a.region?.key).filter((e=>e?.address));return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(I,{headingType:"h6",title:"Параметры кредита",className:"sm:text-center mb-4"}),pt(i),u(I,{headingType:"h6",title:"Данные организации",className:"sm:text-center mb-4"}),lt(i),u(I,{headingType:"h6",title:"Офис банка",className:"sm:text-center mb-4"}),gt({regions:o,branches:c,field:i}),He(e,"mb-4"),u(me,{link:t})]})})),vt={name:"",phone:""},yt=R({name:Se,phone:Ie}),Nt=g((e=>{const{button:t,link:n,onSubmit:l}=e,a=r((e=>{const{name:t,phone:n}=e;z(yt(e))&&l({typeForm:"dpst",name:t,phone:n})}),[l]),[,{field:i,...s}]=_(vt,a);return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(I,{headingType:"h6",title:"Оставьте заявку и мы ответим на любые вопросы по депозитам",className:"sm:text-center mb-4"}),p("div",{className:"max-w-[560px] m-auto",children:[u(pe,{className:"shrink-0 w-full mb-3",label:"Имя",...he(i("name"),Se)}),u(we,{className:"shrink-0 w-full mb-3",label:"Телефон",...he(i("phone"),Ie)})]}),p("div",{className:"flex justify-between flex-col-reverse sm:items-center sm:flex-row max-w-[560px] m-auto",children:[u("div",{className:"flex-1 mt-4 sm:mt-0",children:u(me,{link:n})}),He(t)]})]})})),wt={};function kt(e,t={}){const{data:n}=$(`/wcms-resources/${e}.json`,V,{fallback:t});return n||wt}const Ct=g((e=>{const{button:t,sourceBookDir:n}=e,{regions:a}=kt(n||"regions-grant-support"),[r,i]=l({key:""}),s=re({className:"text-white",version:t?.version}),o=a?.find((e=>e.name===r.key))?.href;return p("div",{className:"container space-y-s sm:space-y-lg",children:[a?u(De,{label:"Ваш регион",placeholder:"Выберите регион",options:a.map((({name:e=""})=>({key:e}))),value:r,onChange:i}):null,o?u("div",{className:"text-center",children:u(ie,{href:o,target:"_blank",className:w("p-4 w-full sm:w-auto",s),children:t?.text?t.text:"Перейти"})}):null]})})),St=(e,t)=>e?.media&&t?.media?e.media-t.media:0,Tt=g((({className:e="",image:t,imageClassName:n="",pathPrefix:l})=>{const a=J();return p("picture",{className:e,children:[t?.sources?.length?t.sources.filter((e=>e?.src)).sort(St).map((({src:e,format:n,media:r},i)=>u("source",{srcSet:Bt(a,l)(e),type:_t(n),media:r?`(max-width: ${r}px)`:"",...t.size},`${i}_${e}`))):null,t?.src?It({...t,src:Bt(a,l)(t.src)},n):null]})})),It=(e,t="")=>u("img",{src:e.src,className:w("object-contain",t),alt:e.alt||e.title,title:e.title||"",style:{width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"auto"},...e.size}),Bt=(e,t)=>n=>n&&!F(n)?W(e)(U(t,n)):n,_t=e=>e?`image/${String(e)}`:void 0,Rt=g((({className:e="",image:t,imageClassName:n="",pathPrefix:l,...a})=>t?.src||t?.icon?t.icon?u(Pe,{className:e,imageClassName:n,iconVersion:t?.iconVersion,name:t.icon,...a}):u(Tt,{className:e,imageClassName:n,image:t,pathPrefix:l}):null)),zt=g((({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)))}))),jt=[{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"}],Pt=g((({className:e,value:t,text:n,disabled:l,isRadio:a,onChange:i})=>{const s=r((e=>{l||(e.preventDefault(),i&&i(!t))}),[i,l,t]),o=a?u("div",{className:"absolute left-1 w-3 h-3 rounded-full bg-primary-main"}):u(zt,{paths:jt,className:"absolute left-1 ml-px block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"});return u("div",{className:e,children:p("label",{className:"flex items-center relative cursor-pointer group/box",onClick:s,children:[u("div",{className:w("appearance-none w-5 h-5 border-solid cursor-pointer m-0",a?"rounded-full border-2":Lt(t),t?"border-primary-main":"border-gray",l?"bg-main-disabled":"group-hover/box:border-primary-hover"),role:"checkbox","aria-checked":Boolean(t),"aria-disabled":Boolean(l)}),t?o:null,n?u("div",{className:"ml-3",children:u(de,{size:"text-l",font:"font-light",children:n})}):null]})})})),Lt=e=>w("rounded border",e?"bg-primary-main":""),$t=e=>{const t=e("text");return p("div",{className:"mb-3 sm:mb-6",children:[p("div",{className:"mb-4 sm:flex sm:items-center sm:gap-6",children:[u(Pt,{className:"mb-3 sm:mb-0",text:"Валютный контроль",...e("currencyControl")}),u(Pt,{className:"mb-3 sm:mb-0",text:"Документарные операции",...e("documentaryOperations")}),u(Pt,{className:"mb-3 sm:mb-0",text:"Конверсионные операции",...e("conversionOperations")})]}),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:t.value,onInput:e=>t.onChange&&t.onChange(e.target?.value||"")})]})},At=e=>p("div",{children:[p("div",{className:"sm:flex sm:justify-between sm:gap-lg",children:[u("div",{className:"sm:w-1/2",children:u(pe,{className:"shrink-0 w-full mb-s",label:"Наименование организации",...he(e("fullName"),Ce)})}),u("div",{className:"sm:w-1/2",children:u(pe,{className:"shrink-0 w-full mb-s",label:"ФИО",...he(e("name"),Se)})})]}),p("div",{className:"sm:flex sm:justify-between sm:gap-lg sm:mb-2xl",children:[u("div",{className:"sm:w-1/2",children:u(we,{className:"shrink-0 w-full mb-s",label:"Телефон",...he(e("phone"),Ie)})}),u("div",{className:"sm:w-1/2",children:u(pe,{className:"shrink-0 w-full mb-s",label:"Электронная почта",...he(e("mail"),Ce)})})]})]}),Mt={fullName:"",name:"",phone:"",mail:"",currencyControl:!1,documentaryOperations:!1,conversionOperations:!1,text:""},Vt=R({fullName:Ce,name:Se,phone:Ie,mail:Ce}),Ot={ApplicationFormBusinessCard:Ze,ApplicationFormWed:g((e=>{const{button:t,link:n,onSubmit:l}=e,a=r((e=>{const{fullName:t,name:n,phone:a,mail:r,currencyControl:i,documentaryOperations:s,conversionOperations:o,text:c}=e;z(Vt(e))&&l({typeForm:"kved",fullName:t,name:n,phone:a,mail:r,partnerComments:`Валютный контроль=${i}/Документарные операции=${s}/Конверсионные операции=${o}/Доп инф=${c}`})}),[l]),[,{field:i,...s}]=_(Mt,a);return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(I,{headingType:"h6",title:"Данные организации",className:"sm:text-center mb-m"}),At(i),u(I,{headingType:"h6",title:"Интересующий вопрос",className:"sm:text-center mb-m"}),$t(i),p("div",{className:"flex flex-col border-b border-main-divider mb-5 pb-5 sm:items-center sm:flex-row sm:mb-9 sm:pb-9",children:[He(t,"mb-m sm:mr-lg sm:mb-0"),u(me,{link:n})]}),u(I,{headingType:"h6",title:"Или свяжитесь с нами удобным способом",className:"sm:text-center mb-m"}),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(Rt,{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(Rt,{image:{icon:"MailIcon"},width:"24",height:"24",className:"mr-3"}),u("span",{children:"ved@rshb.ru"})]})]})]})})),ApplicationFormDeposit:Nt,ApplicationFormCredit:bt,ApplicationFormAcquiring:Xe,ApplicationFormGrantSupport:Ct},Dt=g((({responseType:e})=>{const t="OK"===e;return p("div",{className:`flex items-center mt-lg p-lg rounded-md space-x-m ${t?"bg-ok":"bg-fail"}`,children:[u(Rt,t?{image:{icon:"ResponceOKIcon"},width:"42",height:"42"}:{image:{icon:"ResponceFailIcon"},width:"37",height:"34"}),p("div",{children:[u(I,{headingType:"h6",title:t?"Ваша заявка отправлена":"Не удалось отправить заявку",className:"mb-1"}),u(de,{size:"text-l",font:"font-light",color:"text-secondary-text",children:t?"Совсем скоро мы с вами свяжемся":"Пожалуйста, повторите позднее"})]})]})})),Ft={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}}},Et=g((e=>{const{className:t,formBlock:n,...a}=e,[i,s]=l(""),o=r((async e=>{const t=await Ft.send(e)?"OK":"Fail";return s(t),t}),[]);return u(C,{className:t,defaultPadding:"p-6xl",...a,children:p("div",{className:"container max-w-[978px]",children:[n?.title?u(I,{headingType:"h3",title:n.title,className:"mb-4 sm:mb-8 sm:text-center"}):null,n?Ut(n,o):null,i?u(Dt,{responseType:i}):null]})})})),Ut=(e,t)=>{const n=e?.formType;if(!n||!(n in Ot))return null;return u(Ot[n],{...e,onSubmit:t})},Ht={"":"bg-main-divider group-data-secondary:bg-white/30",primary:"bg-main-divider",secondary:"bg-secondary-light",opacity:"bg-white/30"},Wt=g((({className:e,defaultIconSize:t=44,iconBgVersion:n="primary",size:l,icon:a,...r})=>{const i=String(l?.width||t);return a?u("div",{style:{width:`${i}px`,height:`${i}px`},className:w("rounded-icon object-fit flex justify-center items-center ",Ht[n],e),children:u(Pe,{...r,width:"54%",height:"54%",name:a})}):null})),Gt=g((({className:e="",title:t,benefitList:n,...l})=>p(C,{className:e,defaultPadding:"p-6xl",...l,children:[t?u(I,{headingType:"h3",as:"h2",className:"text-center",title:t}):null,n?.length?u("div",{className:"flex flex-wrap w-full sm:justify-center mt-xl gap-5xl",role:"list",children:n.map(Xt)}):null]}))),Xt=(e,t)=>p("div",{className:"flex gap-m items-center md:basis-1/2 md:max-w-[500px]",role:"listitem",children:[e?.icon?.icon?u(Wt,{className:"shrink-0",defaultIconSize:56,iconBgVersion:e?.iconBgVersion||"",...e?.icon}):null,e?.icon?.src?u(Rt,{className:"shrink-0",image:e.icon}):null,e?.label?p("div",{className:"sm:h-full",children:[u(I,{headingType:"h6",children:e.label}),Jt(e.description)]}):null]},String(t)),Jt=e=>{const t=e?.benefitType||null;return e&&t?u("div",{className:"mt-xs text-l font-light text-secondary-text group-data-secondary:text-white/80",children:"list"===t?qt(e):Yt(e)}):null},Yt=e=>e?.name||null,qt=e=>{const t=e?.bullets?"list-disc pl-3xl":"";return e?.items&&e.items.length>0?u("ul",{className:t,children:e.items.map(((e,t)=>u("li",{children:e},`benefitListItem-${t}`)))}):null},Kt={XXL:{title:{headingType:"h0",as:"h1"},descriptionSize:"text-h5",descriptionWeight:"font-normal",descriptionStyle:"mt-xl"},XL:{title:{headingType:"h1",as:"h1"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-m"},L:{title:{headingType:"h2",as:"h2"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-m"},M:{title:{headingType:"h3",as:"h2"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-s"},S:{title:{headingType:"h4",as:"h2"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-xs"},XS:{title:{headingType:"h5",as:"h2"},descriptionSize:"text-l",descriptionWeight:"font-light",descriptionStyle:"mt-xs"}},Zt={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"},Qt=g((({className:e,version:t="",headlineVersion:n="XL",title:l,description:a,align:r="text-center",as:i,isPadding:s=!0,isTheme:o=!1,...c})=>{const d=Kt[n],m={marginTop:d.descriptionStyle};return p(C,{className:e,defaultPadding:s?"p-6xl":"",version:t,isTheme:o,...c,children:[l?u(I,{className:w("whitespace-pre-wrap",r),...d?.title,as:i||d?.title.as,title:l}):null,a?u(ce,{size:d.descriptionSize,font:d.descriptionWeight,align:r,...m,children:a}):null]})})),en=e=>({height:"calc(100vh - 242px)",minHeight:`${e||866}px`}),tn=g((({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})})),nn=["min-w-full","min-w-1/2","min-w-1/3","min-w-1/4"],ln=g((({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 g={sensitivity:1,rootRef:t},f=s([]),x=r(((e,t)=>{const n=[...f.current||[]];n[e]=t,f.current=n,h&&h(n),p&&p(rn(n))}),[h,p]),b=l>0?a*Number(l)-1:0,v="vertical-list"===o,y="horizontal-list"===o,N={...y?an(i,b):{},...v?en(d):{},gap:`${a}px`};return u("div",{className:w("box-border overflow-auto no-scrollbar",o,e),style:N,ref:t,children:(k=(e,t)=>u(tn,{className:w(c,l?nn[l-1]:"",v?"h-full":""),style:y?an(i/4):{},activeIndex:n,idx:t,observerOptions:g,onIntersection:x,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(k):k(e,0))(m)});var k})),an=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),rn=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),sn={"horizontal-list":"mx-auto mt-5 w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},on={"horizontal-list":"w-6","vertical-list":"h-6"},cn=g((({containerRef:e,activeIndex:t,dotCount:n=0,listType:l="horizontal-list",version:a})=>n?u("div",{className:w("flex gap-2",sn[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?on[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)),dn=e=>e,mn=(e=dn)=>t=>t.reduceRight(((t,n)=>e(t)>e(n)?t:n)),hn=mn(),un=(e=dn)=>mn((t=>-e(t))),pn=e=>t=>e.scrollWidth/t,gn=e=>(t,n)=>{e.scrollBy({left:n*pn(e)(t),behavior:"smooth"})},fn=({itemCount:e,onVisibleIndicesChange:t})=>{const n=s(null),[a,i]=l([]),o=r((e=>{i((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})),t&&t(e)}),[e]),[c,d]=a.length?[un()(a),mn()(a)]:[-1,-1],m=c>0,h=d<e-1,u=r((()=>{var t;n.current&&(m?gn(n.current)(e,-1):(t=n.current).scrollTo({left:t.scrollWidth,behavior:"smooth"}))}),[e,m]),p=r((()=>{n.current&&(h?gn(n.current)(e,1):n.current.scrollTo({left:0,behavior:"smooth"}))}),[e,h]);return[n,{scrollLeft:u,scrollRight:p,canScrollLeft:m,canScrollRight:h,visibleIndicesRange:[c,d],handleVisibleIndicesChange:o}]},xn=g((({className:e,version:t,gap:n=14,padding:l=16,showDots:a=!0,minHeight:r,children:i,onVisibleIndicesChange:s,listType:o="horizontal-list"})=>{const c=Array.isArray(i)?i.length:0,[d,m]=fn({itemCount:c,onVisibleIndicesChange:s}),[h]=m.visibleIndicesRange;return p("div",{className:w(e,"vertical-list"===o?"relative h-full":""),children:[u(ln,{containerRef:d,activeIndex:h,visibleItemCount:1,gap:n,padding:l,onVisibleIndicesChange:m.handleVisibleIndicesChange,listType:o,minHeight:r,children:i}),a?u(cn,{containerRef:d,activeIndex:h,dotCount:c,listType:o,version:t}):null]})})),bn="text-left",vn=(e,t,n)=>u(xn,{children:e.map(((e,t)=>(({icon:e,title:t,description:n},l)=>p("div",{className:w("flex flex-col","justify-between p-4 h-full border border-gray",n||t?"":"justify-center"),children:[t?u(de,{size:"text-h6",font:"font-normal",align:bn,children:t}):null,e?u(Rt,{image:e,height:"180",className:"w-auto"}):null,n?u(de,{size:"text-h6",font:"font-normal",align:bn,children:n}):null]},String(l)))({...e},t)))}),yn=g((({bonusBenefits:e,cardTextAlign:t="center",className:n="",columnsCount:l="4",subtitle:a,title:r,...i})=>p(C,{className:n,defaultPadding:"p-6xl",...i,children:[u(Qt,{className:"mb-4 sm:mb-3xl",isPadding:!1,title:r,description:a,headlineVersion:"M"}),e?.length?vn(e):null]}))),Nn=(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-xs justify-items-stretch":"flex-wrap gap-m",t),children:e.map(wn(n))}):null,wn=(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(ie,{className:w("basis-full sm:basis-auto",e),appendLeft:kn({...a,iconVersion:c}),appendRight:kn({...r,iconVersion:c}),version:i,text:l,...s},n?String(n):""):null},kn=e=>e?.icon||e?.src?u(Rt,{image:e,width:String(e?.size?.width||24),height:String(24)}):null,Cn=g((({buttons:e,className:t,...n})=>u(C,{className:w("!bg-transparent",t),defaultPadding:"p-0",...n,children:Nn(e)}))),Sn=g((e=>{const{onChange:t,min:n,max:l,defaultValue:a="0",fractionDigits:i=0,...s}=e,o=at(e,{normalize:(e=a)=>n&&l?String(rt(Number(Tn(e)),n,l)):Tn(e),format:it(i)}),c=r((e=>t&&t(Tn(e))),[t]);return u(ue,{onChange:c,...s,...o})})),Tn=(e="")=>e.replaceAll(",",".").replace(/[^\d.]/g,"").replace(/([^.]*\.[^.]*)\./,"$1"),In=g((e=>u(Sn,{...e,fractionDigits:2,children:u("div",{className:"absolute right-4 bottom-4",children:u(de,{size:"text-xl",font:"font-light",children:"₽"})})}))),Bn="amount",_n={[Bn]:1500},Rn=g((({className:e="",title:t="Укажите сумму перевода",label:n="Сумма перевода",placeholder:l="1500",button:a,...r})=>{const[{amount:i},{field:s}]=_(_n),o=i<=0,c=o?ae({version:a?.version}):re({className:"text-white",version:a?.version}),d=Y();return p(C,{className:w("flex flex-col items-center",e),defaultPadding:"p-6xl",...r,children:[t?u(I,{className:"pb-5 xl:pb-9 self-start xl:self-center",headingType:"h2",title:t}):null,p("form",{className:"w-full xl:max-w-[468px]",method:"POST",action:"https://www.rshb.ru/p2p/",children:[u(In,{name:Bn,valid:!o,placeholder:l,label:n,...s(Bn,{parse:Number,format:String})}),a?.text?u("button",{type:"submit",className:w("w-full p-4 mt-5 xl:mt-6",c),disabled:o,...d(a),children:a.text}):null]})]})})),zn=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),jn=[];function Pn(e,t,{className:n,...l}={}){const{key:a,blockDecorator:r=zn,blocksRegistry:i={},ancestors:s=jn}=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(e.style?.length?e.style:"col-span-12",n),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 Ln=[],$n=(e,{key:t,ancestors:n=Ln,slotName:l=null,extraProps:a,renderProps:r=Pn,...i})=>{const s=a?(e,t)=>Pn(e,t,a):r;return(e||[]).map(((e,a)=>s(e,{...i,key:`${t||e.type}-${a}`,ancestors:i.parent?[...n||Ln,[i.parent,l]]:n},a)))};function An({block:e,options:t,children:n,extraProps:l,renderProps:a}){return n||(e&&t?$n(e.blocks,{...t,parent:e,extraProps:l,renderProps:a}):null)}const Mn=g((({className:e,disabled:t,...n})=>u(ie,{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(Rt,{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"})}))),Vn=g((e=>u(Mn,{...e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}))),On=g((e=>u(Mn,{...e,className:`${e.className||""} rotate-180`,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"}))),Dn="absolute top-[calc(50%-24px)] z-40",Fn="absolute top-0 bottom-0 z-40 hidden @lg:block w-20 pointer-events-none",En=g((({scroll:e,activeIndex:t,itemCount:n,arrowsPadded:l,hasEdgeBlocks:a,onScrollLeft:i,onScrollRight:s})=>{const{canScrollLeft:o,canScrollRight:c,scrollLeft:d,scrollRight:m}=e,h=a?t>0:o,g=a?t<n-1:c,f=r((()=>{a?(o&&t!==n-1&&d(),i()):d()}),[d,i,a,o,t,n]),x=r((()=>{a?(c&&0!==t&&m(),s()):m()}),[m,s,a,o,t,n]);return p("div",{className:"hidden @lg:block",children:[Un(e),h?u(Vn,{className:w(Dn,l?"left-1 @lg:left-8":"left-0"),onClick:f}):null,g?u(On,{className:w(Dn,l?"right-1 @lg:right-8":"right-0"),onClick:x}):null]})})),Un=e=>p("div",{children:[e.canScrollLeft?u("div",{className:w(Fn,"left-0 bg-opacity-from-white group-data-secondary:bg-none")}):null,e.canScrollRight?u("div",{className:w(Fn,"right-0 bg-opacity-to-white group-data-secondary:bg-none")}):null]}),Hn=g((({className:e,itemCount:t,visibleItemCount:n=0,noCardBorder:a,isAlignCenter:i,showDots:s,arrowsPadded:o=!0,isGap:c=!0,...d})=>{const{blocks:m=[]}=d.block||{},h=t||m?.length,[g,{inc:f,dec:x}]=((e,t=0)=>{const{itemCount:n,visibleItemCount:a}=e,[i,s]=l(t),o=r((()=>s((e=>Math.min(e+1,n-1)))),[n]),c=r((()=>s((e=>Math.max(e-1,0)))),[n]),d=a?n>a&&i<n-a:i<n-1,m=i>0;return[i,{inc:o,dec:c,canInc:d,canDec:m,isScrollAvailable:m||d}]})({itemCount:h,visibleItemCount:n},Math.floor(n/2)),[b,v]=fn({itemCount:h}),[y]=v.visibleIndicesRange,N=m&&"CarouselBankHistoryCard"===m[0]?.type;return u(C,{className:e,defaultPadding:"p-6xl",...d,children:p("div",{className:w(i?"flex justify-center":"","relative max-w-full"),children:[u(ln,{containerRef:b,visibleItemCount:n,snapAlign:"snap-start",gap:c?16:void 0,onVisibleIndicesChange:v.handleVisibleIndicesChange,children:An({...d,renderProps:(e,t,n)=>Pn(e,t,{className:w("h-full min-w-80 sm:min-w-96",a?"":"border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider"),blockIndex:n,isActive:g===n})})}),u(En,{scroll:v,arrowsPadded:o,onScrollLeft:x,onScrollRight:f,hasEdgeBlocks:N,activeIndex:g,itemCount:h}),s?u(cn,{containerRef:b,activeIndex:y,dotCount:h,listType:"horizontal-list"}):null]})})}));Hn.childrenTypes=["CarouselCard","CarouselBankHistoryCard","CarouselCatalogCard","CarouselInvestmentCard","CarouselProductCard","CarouselProgramsCard","CarouselRecommendationCard","CarouselTariffsCard","CarouselRichTextCard","CarouselInvestmentCard","CarouselEventCard"];const Wn=g((({title:e,description:t,className:n})=>u(C,{className:n,defaultPadding:"p-6xl",children:u(Qt,{headlineVersion:"S",title:e,description:t,align:"text-left",className:"text-primary-text",isPadding:!1})}))),Gn=g((({className:e="",href:t,target:n,isRemote:l=!1,children:a})=>{const r=Y({isRemote:l})({href:t,target:n});return u(t?"a":"div",{className:w("block",e),...t?r:{},children:a})})),Xn=g((({className:e,title:t,icon:n,list:l=[],href:a,target:r,...i})=>u(C,{className:e,defaultPadding:"p-3xl sm:p-0",...i,children:p(Gn,{className:"sm:flex sm:items-center",href:a,target:r,children:[u("div",{className:"flex justify-center px-xl",children:n?.src||n?.icon?u(Rt,{image:n}):null}),p("div",{className:"sm:px-s p-5xl",children:[t?u(I,{className:"mb-xs sm:mb-m",headingType:"h6",title:t}):null,l.length?u("div",{className:"flex flex-col gap-xs sm:gap-s",children:l?.map(Jn)}):null]})]})}))),Jn=(e,t)=>p("div",{className:"flex flex-row-reverse justify-between gap-y-2xs sm:flex-col",children:[e.title?u(de,{size:"text-l",font:"font-light",children:e.title}):null,e.description?u(ce,{size:"text-l",font:"font-light",color:"",children:e.description}):null]},String(t)),Yn={L:"w-1.5 h-1.5 mr-m",M:"w-1.5 h-1.5 mr-s",S:"w-1 h-1 mr-xs"},qn=g((({className:e,isDotted:t=!0,children:n,size:l="M"})=>p("div",{className:w("font-sans flex",e),role:"listitem",children:[t?u("div",{className:"shrink-0",children:u("div",{className:w("align-middle inline-block rounded-full bg-primary-text group-data-secondary:bg-white",Yn[l])})}):null,u("span",{children:n})]}))),Kn={S:"text-l font-light",M:"text-h6",L:"text-h5"},Zn={S:"ml-xs",M:"ml-s",L:"ml-m"},Qn=g((({className:e,hasIndent:t,isDotted:n,items:l,listItemSize:a="M"})=>l?.length?u("section",{className:w("flex flex-col gap-xs text-left text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text",Kn[a],t?Zn[a]:"",e),role:"list",children:l.map(((e,t)=>u(qn,{isDotted:n,size:a,children:e},String(t))))}):null)),el={default:"w-24 h-14",stretched:"flex-1 h-14"},tl=(e,t)=>e?"":w("group/media flex items-center justify-center box-border",el[t]),nl=[{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"}],ll=e=>nl.find((({origins:t})=>t?.some((t=>e?.includes(t)))))||{},al=g((({buttonSize:e="default",rounded:t=!1,icon:n,...l})=>{const{href:a,version:r,text:i=""}=l,{iconMapped:s,label:o}=ll(a),c=rl(n)??s;return u(ie,{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",tl(i,e)),"aria-label":o,rel:"noopener noreferrer",target:"_blank",text:i,version:r,...l,children:c&&!i?u(Rt,{image:c,imageClassName:"group-hover/media:text-white",width:"24",height:"24"}):null})})),rl=e=>e?.src||e?.icon?e:void 0,il=g((({className:e="",media:t,children:n,buttonSize:l})=>p("div",{className:"flex flex-col sm:flex-col-reverse gap-xs",children:[n?u(de,{size:"text-s",font:"font-light",color:"text-secondary-text",children:n}):null,u("div",{className:w("flex gap-xs",e),children:t?.map(((e,t)=>u(al,{buttonSize:l,...e},String(t))))})]}))),sl=g((({className:e="",description:t,href:n,icon:l,items:a=[],socialMedia:r=[],target:i,title:s,align:o="text-left",...c})=>u(C,{className:w("relative group-data-gray:bg-main-divider/50",e),defaultPadding:"p-6xl",...c,children:p(Gn,{href:n,target:i,children:[u(Qt,{className:"mb-xs",title:s,description:t,headlineVersion:"S",isPadding:!1,align:o}),a.length?u(Qn,{className:"flex flex-col gap-2",items:a,listItemSize:"S"}):null,ol(l),r.length?u(il,{className:"mt-5",media:r}):null]})}))),ol=e=>e?.src||e?.icon?u("div",{children:u(Rt,{image:e})}):null,cl=g((({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]})})),dl=g((({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})})),ml=(e=!1)=>e?"p-6xl mt-6":"mt-6 p-6xl",hl=(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:"opacity-80",children:u(de,{size:"text-m",color:"text-secondary-text",children:n})}):null,l?u("div",{className:"mt-1",children:u(de,{size:"text-xl",color:"text-primary-text",children:l})}):null,a?.length?u("div",{className:"text-primary-main",children:Nn(a)}):null]},String(t))},ul=g((({className:e="",title:t,align:n="text-center",icon:l,isHighlighting:a=!1,button:r,cardCells:i=[],...s})=>{const o=i.map(hl),c=o.slice(0,1),d=o.slice(1);return p(C,{className:w("relative flex flex-col",e),defaultPadding:ml(a),...s,children:[a?fl():null,pl(l),t?u(I,{className:w("pt-xs",n),headingType:"h5",title:t}):null,r?u(ie,{className:"w-full mt-m",...r}):null,i.length?u(cl,{renderFoldableSection:({isUnfolded:e})=>p("div",{children:[c,u(dl,{isUnfolded:e,children:d})]}),renderFoldButton:i.length>1?gl:null}):null]})})),pl=e=>u("div",{className:"basis-full self-center",children:e?.src||e?.icon?u(Rt,{image:e}):null}),gl=({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(Pe,{className:"text-primary-text",name:e?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16"})]}),fl=()=>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(Pe,{iconVersion:"black",name:"HeartIcon",width:"23",height:"22"}),u(ce,{size:"text-s",font:"font-normal",align:"text-center",color:"text-primary-text",children:"ХИТ"})]}),xl="z-10 border border-solid w-full h-full",bl=w(xl,"absolute hidden sm:block border-transparent"),vl=g((({className:e,title:t,description:n,button:l,...a})=>u(C,{className:w("sm:pl-12 sm:pb-9",e),defaultPadding:"p-0",...a,children:p("div",{className:"relative",children:[u("div",{className:w(bl,"top-9 right-12 bg-green-dark")}),u("div",{className:w(bl,"top-6 right-8 bg-green")}),u("div",{className:w(bl,"top-3 right-4 bg-green-light")}),p("div",{className:w(xl,"relative p-10 bg-white border-green-light"),children:[u(Qt,{title:t,description:n,headlineVersion:"XS",align:"text-left",isPadding:!1}),Nn([l],{className:"mt-6xl sm:justify-center",isVertical:!0})]})]})}))),yl={black:"bg-black",white:"bg-white"},Nl=g((({className:e="",title:t,description:n,image:l,price:a,button:r,colors:i,...s})=>p(C,{className:w("flex flex-col justify-left gap-m",e),defaultPadding:"p-6xl sm:p-7",...s,children:[l?.src?u(Rt,{className:"flex justify-center",image:l}):null,u(Qt,{title:t,description:n,headlineVersion:"XS",isPadding:!1,align:"text-left"}),i?.length?p("div",{className:"flex text-secondary-text",children:[u("div",{className:"mr-xs",children:u(de,{size:"text-s",align:"text-left",font:"font-light",children:"Цвета:"})}),i.map(wl)]}):null,a?p(de,{size:"text-h3",align:"text-left",children:[a," ₽"]}):null,Nn([r],{buttonClassName:"w-full"})]}))),wl=(e,t)=>u("div",{role:"figure",className:`w-6 h-6 ml-1 sm:ml-3 border border-solid border-main-divider rounded-full ${yl[e]}`},String(t)),kl=g((({additionalDescription:e,align:t="text-left",button:n={},className:l="",description:a,headlineSmallVersion:r="H6",href:i,icon:s,isDotted:o=!0,isButtonFullWidth:c=!0,isImageFullWidth:d=!1,isTopPosition:m=!1,items:h=[],target:u,title:g,version:f="primary",...x})=>p(C,{className:w("flex flex-col justify-between",t,l),defaultPadding:"p-0",version:f,...x,children:[p(Gn,{className:"p-m flex flex-col gap-xs",href:i,target:u,children:[Sl(r,g),Tl(a),Bl(h,o,f),Il(e),Cl(s,d,m)]}),Nn([n],{className:w("p-m pt-0",c?"":"self-center"),isVertical:c})]}))),Cl=(e,t,n)=>p("div",{className:w("flex gap-lg",n?"order-first":"order-last",t?"":"justify-center"),children:[e?.src?u(Rt,{className:"shrink-0",image:e}):null,e?.icon?u(Rt,{className:w("shrink-0",t?"":"w-8 h-8 min-w-8"),image:e}):null]}),Sl=(e,t)=>t?u(de,{size:Zt[e],children:t}):null,Tl=e=>e?u(ce,{size:"text-l",children:e}):null,Il=e=>e?u(de,{size:"text-m",font:"font-light",color:"text-secondary-text group-data-secondary:text-white/80",children:e}):null,Bl=(e,t,n="primary")=>e?.length?u(Qn,{className:w("text-s","primary"===n?"!text-secondary-text":""),items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:t,listItemSize:"S"}):null,_l=(e=!1)=>e?"text-white":"",Rl=(e=!1)=>"text-s mb-m "+(e?"text-white":"text-secondary-text/80"),zl=g((({icon:e,image:t,title:n,subtitle:l,isFillGradient:a})=>p("div",{className:"space-y-4",role:"columnheader",children:[e?u(Rt,{className:"h-16 w-16 min-w-16 min-h-16",image:e,width:"64",height:"64"}):null,t?.src&&u("div",{children:u(Rt,{image:t})}),n?u(I,{headingType:"h4",className:_l(a),title:n}):null,l?u("div",{className:Rl(a),children:l}):null]}))),jl=g((({cell:e,rowHeader:t,isFillGradient:n=!1})=>u("div",{className:"box-border flex flex-col",role:"cell",children:u("div",{className:"h-full border-main-divider border border-t-0 border-x-0",children:e.map(Pl(n,t))})}))),Pl=(e,t)=>({label:n,description:l},a)=>p("div",{className:"flex justify-between text-s py-3.5",children:[u("div",{className:""+(e?"text-white/80":"text-secondary-text"),children:t}),p("div",{className:"basis-1/2",children:[n?u("div",{className:"text-right "+(e?"text-white":""),children:n}):null,l?u("div",{className:"text-right "+(e?"text-white/80":"text-secondary-text"),children:l}):null]})]},String(a)),Ll=g((({header:e,columnData:t,visibleRowLength:n=0,isFillGradient:l,showRow:a,onToggleColumn:r})=>{const i=t?.slice(0,a?t.length:n),s=l?"secondary":"primary";return p("div",{className:`border border-gray rounded-md p-m mb-m ${l?"bg-gradient-to-r from-main-gradient-start to-main-gradient-end":""}`,role:"row",children:[u(zl,{...e,isFillGradient:l}),i?.length?i.map((({rowHeader:e,cell:t},n)=>u(jl,{cell:t,rowHeader:e,isFillGradient:l},String(n)))):null,a&&e?.link?u(ie,{href:e.link.href,target:e.link.target,version:s,className:"text-s font-medium mt-m py-s",children:e.link.text}):null,$l({onToggleColumn:r,isFillGradient:l,showRow:a})]})})),$l=({onToggleColumn:e,isFillGradient:t,showRow:n})=>u("div",{className:"mt-5",role:"cell",children:u("a",{role:"link",onClick:e,className:"text-s font-medium cursor-pointer "+(t?"text-white/80":"text-primary-main"),children:n?"Скрыть":"Показать описание"})}),Al=g((e=>{const{className:t,title:n}=e;return p("section",{className:`bg-white font-sans p-6xl overflow-hidden text-primary-text relative space-y-lg ${t||""}`,children:[n?u(I,{headingType:"h3",className:"font-medium text-center",title:n}):null,u("div",{role:"table",children:u(Ml,{...e})})]})})),Ml=g((({columns:e=[],rowHeaders:t,isColoredFirstColumn:n,visibleRowLength:a,orientation:i,...s})=>{const[o,c]=l(new Array(e.length).fill(!a)),d=r((e=>{const t=(t,n)=>n===e?!t:t;c((e=>e.map(t)))}),[]),m=r((()=>c((e=>new Array(e.length).fill(!1)))),[]),h=e?.map((({data:e,header:l},r)=>{return u(Ll,{visibleRowLength:a,showRow:o[r],header:l,columnData:(i=e,i?.map(((e,n)=>({cell:e,rowHeader:t?.[n]?.title})))),isFillGradient:0===r&&n,onToggleColumn:()=>d(r),...s},String(r));var i}));return"horizontal"===i?u(xn,{onVisibleIndicesChange:m,children:h}):h})),Vl={start:"self-start",center:"self-center",end:"self-end"},Ol=g((({className:e,defaultPadding:t,padding:n,title:l="",insetTitle:a="",buttons:r,leftImage:i,rightImage:s,imageAlign:o,backImage:c,children:d})=>p("div",{className:w("relative flex flex-col gap-3xl font-sans overflow-hidden",n||t,e),children:[l?u("div",{className:"relative",children:l}):null,p("div",{className:"grow relative flex flex-wrap @xl:flex-nowrap justify-between items-stretch gap-3xl",children:[Dl(i,{imageAlign:o}),p("div",{className:w("flex flex-col gap-3xl max-w-[600px] xl:max-w-[728px]",i?"":"grow"),children:[a,u("div",{className:"grow",children:d}),c?u("div",{className:"mx-auto sm:absolute sm:-z-10 sm:-bottom-4 sm:-right-4",children:c}):null,r]}),Dl(s,{className:"-order-1 @xl:order-1",imageAlign:o})]})]}))),Dl=(e,{className:t,imageAlign:n})=>e?u("div",{className:w("flex-shrink-0",n&&Vl[n],t),children:e}):null;var Fl;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(Fl||(Fl={}));const El=new Intl.NumberFormat("ru",{style:"currency",currency:Fl.RUB}),Ul=e=>e?El.format(e):"",Hl="text-left text-m font-light text-secondary-text",Wl=`${Hl} pl-5xl`,Gl={USD:"DollarIcon",EUR:"EuroIcon"},Xl=g((({className:e,exchangeCurrencyItems:t})=>p("table",{className:`h-fit w-fit ${e}`,children:[u("thead",{children:p("tr",{children:[u("th",{className:Hl,children:u(de,{size:"text-m",children:"Валюта"})}),u("th",{className:Wl,children:u(de,{size:"text-m",children:"Купить"})}),u("th",{className:Wl,children:u(de,{size:"text-m",children:"Продать"})})]})}),u("tbody",{children:t.map(Jl)})]}))),Jl=e=>{const t=e?.currency?.currency;return p("tr",{className:"pb-2xs text-h6",children:[u("td",{className:"pt-m",children:p("div",{className:"flex items-center",children:[t?u(Rt,{image:{icon:Gl[t]},width:"24",height:"24",className:"mr-2"}):null,u(de,{size:"text-h6",children:t})]})}),u("td",{className:"pt-m pl-5xl",children:u(de,{size:"text-h6",children:Ul(e?.saleExchangeRate)})}),u("td",{className:"pt-m pl-5xl",children:u(de,{size:"text-h6",children:Ul(e?.buyExchangeRate)})})]},t)},Yl={icon:"GpsIcon"},ql=g((({className:e="",address:t})=>p("div",{className:`flex gap-s ${e}`,children:[u(Wt,{...Yl,iconBgVersion:"primary"}),p("div",{className:"space-y-2xs",children:[t?u("p",{className:"text-primary-main text-l",children:t}):null,u("p",{className:"text-secondary-text text-m",children:"Курс указан для заданного офиса"})]})]}))),Kl=(e,t,n)=>{const l=Number(Zl(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)},Zl=e=>e.replace(/[^\d.,]/g,"").replace(",","."),Ql=e=>{return(t=[[e=>e.value!==Fl.RUB&&e.oppositeValue!==Fl.RUB,()=>e.handleConvert(e.value,Fl.RUB)],[e=>e.value===Fl.RUB&&e.oppositeValue===Fl.RUB,()=>e.handleConvert(e.value,Fl.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,n]=t.find((([t])=>t(e)))||[];return n})(e)?.();var t};function ea(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(ue,{className:"shrink-0 text-l w-full appearance-none mr-[-90px]",placeholder:t,type:"text",value:a,onChange:r}),s.length?u(Ae,{isBorder:!1,onChange:e=>i(e.key),options:s,value:o}):null]})}const ta=g((({className:e="",currencyRatesBuy:t,currencyRatesSell:n,button:a})=>{const[i,s]=l({inputSell:"",inputBuy:"",selectSell:t?.[0]?.currency?.currency||Fl.RUB,selectBuy:n?.[0]?.currency?.currency||Fl.USD}),o=r((e=>s((t=>({...t,...e})))),[]);return p("div",{className:`grid gap-m pt-2xl ${e}`,children:[ea({placeholder:"Хочу продать",rates:n,selected:i.selectSell,setSelected:na(i,o,n),value:i.inputSell,setValue:e=>aa(o,n)(e,i.selectSell,i.selectBuy)}),ea({placeholder:"Получу",rates:t,selected:i.selectBuy,setSelected:la(i,o,t),value:i.inputBuy,setValue:e=>ra(o,t)(e,i.selectBuy,i.selectSell)}),a?.text?u(ie,{className:"py-4",version:a?.version,...a,children:a.text}):null]})})),na=(e,t,n)=>l=>{t({selectSell:l}),Ql({value:l,oppositeValue:e.selectBuy,handleConvert:(l=e.selectSell,a=e.selectBuy)=>{aa(t,n)(e.inputSell,l,a)}})},la=(e,t,n)=>l=>{t({selectBuy:l}),Ql({value:l,oppositeValue:e.selectSell,handleConvert:(l=e.selectBuy,a=e.selectSell)=>ra(t,n)(e.inputBuy,l,a)})},aa=(e,t)=>(n,l,a)=>{e({inputSell:Zl(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(Kl(n,r,l===Fl.RUB)||"")})},ra=(e,t)=>(n,l,a)=>{e({inputBuy:Zl(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(Kl(n,r,l===Fl.RUB)||"")})};const ia=async e=>{const t=await sa(),n=t?.code||"000";return{region:t,exchangeRates:await oa(e,n)}},sa=async()=>{try{return await V("/api/v1/region",{method:"GET"})}catch(e){return console.log(e),{}}},oa=async(e,t)=>{try{return await V(e+`?regionCode=${t}`,{method:"GET"})}catch(e){return console.log(e),{}}},ca=g((({className:e="",title:t="Курсы обмена валют",button:n,...l})=>{const{exchangeRates:a}=function(){const{data:e}=$("/api/v1/exchangerates",ia);return e||{}}(),r=da(a?.exchangeRate?.currencies),i=r.filter((e=>e.buyExchangeRate));i.unshift({currency:{currency:Fl.RUB}});const s=r.filter((e=>e.saleExchangeRate));return s.push({currency:{currency:Fl.RUB}}),u(C,{className:w("box-border min-h-80",e),...l,children:u(Ol,{className:"h-full",title:u(I,{headingType:"h4",title:t,className:"whitespace-pre-wrap"}),children:p("div",{className:"flex gap-6xl flex-wrap",children:[p("div",{children:[r?u(Xl,{className:"mb-xl",exchangeCurrencyItems:r}):null,u(ql,{address:a?.address})]}),r.length&&i.length&&s.length?u(ta,{className:"grow",currencyRatesBuy:i,currencyRatesSell:s,button:n}):null]})})})})),da=e=>e?.filter((e=>1===e?.currency?.id||2===e?.currency?.id))||[],ma=g((({className:e="",items:t})=>t?.length?u("ul",{className:w("flex flex-col","",e),children:t.map(ha)}):null)),ha=(e,t)=>{const{text:n,...l}=e;return u("li",{className:"list-none my-xs",children:u("a",{className:"hover:text-primary-main font-light",role:"link",...l,children:n||null})},`list_item_${String(t)}`)},ua=g((({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-4 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(Rt,{image:{icon:n,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20"}):null]}))),pa=e=>e?"ArrowUpSolidIcon":"ArrowDownSolidIcon",ga=(e,t)=>u(Wt,{...e,iconBgVersion:t}),fa=g((({className:e="",label:t="Развернуть",labelIcon:n,labelIconBgVersion:l,isExpanded:a,isFoldButtonOnTop:r=!0,version:i="primary",...s})=>u(C,{className:w("w-full","",e),defaultPadding:"p-0",tag:"div",version:"transparent",...s,children:u(cl,{isFoldButtonOnTop:r,unfoldedByDefault:a,renderFoldableSection:({isUnfolded:e})=>u(dl,{className:w("gap-5","flex flex-wrap group-last:last:pb-0"),isUnfolded:e,children:An({...s,extraProps:{className:"w-full",padding:"p-0"}})}),renderFoldButton:({isUnfolded:e,onToggle:a})=>xa({version:i,label:t,labelIcon:n,labelIconBgVersion:l,isUnfolded:e,onToggle:a})})})));fa.childrenTypes={exclude:["RollupItem"]};const xa=({version:e,label:t,labelIcon:n,labelIconBgVersion:l,isUnfolded:a,onToggle:r})=>{const i=t||(a?"Скрыть":"Развернуть");return"primary"===e?ba({label:i,labelIcon:n,labelIconBgVersion:l,icon:pa(a),onToggle:r}):u(ua,{label:i,icon:a?"ArrowUpIcon":"ArrowDownIcon",onClick:r})},ba=({label:e,labelIconBgVersion:t,icon:n,onToggle:l,labelIcon:a})=>p("button",{className:w("border-none bg-transparent flex justify-between items-center w-full group/button",a?.icon?"py-xs":"py-lg"),onClick:l,children:[p("div",{className:"flex items-center group-hover/button:text-primary-main gap-s",children:[ga(a,t),e?u(de,{size:"text-h6",font:"font-normal",children:e}):null]}),n?u(Pe,{name:n,iconVersion:"normal",width:"24",height:"24"}):null]}),va=g((({className:e="",items:t})=>p("div",{className:e,children:[t?.length?t.map(ya):null,u(ie,{version:"primary",className:"w-full",href:"https://www.rshb.ru/feedback/question/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"})]}))),ya=(e,t)=>p("div",{className:"mb-m",children:[u("div",{className:"mb-m",children:u(de,{size:"text-l",font:"font-medium",children:e?.title})}),u("div",{children:e.items?.map(Na)})]},String(t)),Na=(e,t)=>p("div",{className:"mb-m",children:[u("div",{children:wa(e.type,e.text)}),u("div",{className:"mt-2xs text-s font-light text-secondary-text",children:e.description})]},String(t)),wa=(e,t="")=>{switch(e){case"tel":return u("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${ka(t)}`,children:t});case"email":return u("a",{className:"text-xl font-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return u("span",{children:t})}},ka=e=>e.replaceAll(/\D/g,""),Ca=g((({className:e="",index:t,text:n,...l})=>{const a=Y(),{href:r,target:i,onClick:s}=a(l);return u("a",{className:w("",e),href:r,target:i,onClick:s,children:n||`Документ ${t}`})})),Sa=g((({title:e,links:t,className:n=""})=>p("div",{className:n,children:[u(de,{size:"text-l",font:"font-normal",children:e}),t?.length?u("div",{className:"flex flex-col gap-lg mt-lg",children:t.map(((e,t)=>u(Ca,{className:"text-l font-light",index:t,...e},String(t))))}):null]}))),Ta=g((({className:e="",index:t,...n})=>{const l=Y({isRemote:!0}),{href:a,target:r,text:i,onClick:s}=l(n);return u("a",{className:`text-xs font-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}`})})),Ia=g((({className:e="",links:t})=>p("div",{className:e,children:[u("div",{className:"pt-lg",children:u(de,{size:"text-xs",font:"font-light",color:"text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?u("div",{className:"flex flex-col sm:flex-row justify-start items-start gap-x-lg gap-y-xs pt-lg",children:t.map(((e,t)=>u(Ta,{index:t,...e},String(t))))}):null]}))),Ba=g((({className:e,sitemap:t,...n})=>{const{relatedEnterprises:l,contacts:a,socialMedia:r,mobileApps:i,horizontalNavigationTitle:s,documents:o}=kt(d.FOOTER||"footer",n.options?.page?.fallback);return p(C,{tag:"footer",className:e,...n,children:[u("div",{className:"mb-lg pb-xs border-b border-main-divider",children:t?.topItems?.map(((e,t)=>u(fa,{label:e?.text,labelIcon:e?.icon,children:u(ma,{items:e.items})},String(t))))}),u(va,{className:"overflow-hidden",items:a}),p("div",{className:"mt-xl",children:[u(il,{className:"mb-xl",media:r,buttonSize:"stretched",children:"Соцсети"}),u(de,{size:"text-s",font:"font-light",color:"text-secondary-text",children:"Мобильное приложение"}),u("div",{className:"mt-xs",children:i?.map(_a)})]}),u(Sa,{className:"py-lg border-y border-main-divider",title:s,links:l}),u(Ia,{links:o})]})})),_a=({href:e="/"},t)=>{const{label:n}=ll(e);return u(ie,{className:"w-full mb-lg",text:n,version:"secondary",href:e,target:"_blank"},String(t))},Ra={"bg-white":"color",transparent:"white"},za={"bg-white":"text-primary-main",transparent:"text-white"},ja=(e,t,n)=>u(Rt,t?.src?{image:t,className:za[e],width:n?.width,height:n?.height,pathPrefix:"/wcms-resources/"}:{image:{icon:t?.icon||"LogoIcon",iconVersion:Ra[e]},className:za[e],width:n?.width,height:n?.height}),Pa={"bg-white":"text-primary-text",transparent:"text-white"},La=(e,t,n)=>u("span",{className:`${Pa[t]} ml-s font-medium ${n||""}`,children:e||"Россельхозбанк"}),$a=g((({bgColor:e="bg-white",children:t,className:n="",href:l,logo:a,showTitle:r=!0,targetBlank:i})=>p("a",{className:`inline-flex items-center font-sans no-underline ${n}`,href:l||"https://rshb.ru/",target:i?"_blank":"_self","aria-label":a?.title||"Россельхозбанк",children:[ja(e,a?.image,{width:"34",height:"34"}),r?La(t||a?.title,e,"text-s"):null]}))),Aa={default:"px-5 bg-main-divider rounded hover:text-primary-main",transparent:"text-white hover:text-primary-hover"},Ma=g((({bgColor:e,logo:t,internetBankUrl:n,version:l})=>{const a=J(),i="/"===a.pathname,s=r((()=>{a.back()}),[]);return p("div",{className:"flex items-center justify-between w-full",children:[i?u($a,{bgColor:e,logo:t}):p(ie,{className:"flex items-center text-l",ariaLabel:"Вернуться назад",onClick:s,children:[u(Rt,{className:"w-6 h-6",image:{icon:"ChevronLeft",iconVersion:"black"}}),"Вернуться назад"]}),n?u(ie,{href:n,ariaLabel:"Войти",target:"_blank",className:w("p-s my-2xs text-s whitespace-nowrap text-primary-main hover:text-primary-hover",Aa["transparent"===l?"transparent":"default"]),children:"Войти"}):null]})})),Va={"bg-white":"primary",transparent:"transparent"},Oa=g((({bgColor:e="bg-white",version:t=Va[e],sitemap:n,...l})=>{const{logo:a,internetBankUrl:r}=n||{};return u(C,{tag:"header",defaultPadding:"",version:t,...l,children:u("div",{className:"container px-4 py-2xs box-border",children:u(Ma,{bgColor:e,logo:a,internetBankUrl:r,version:t,...l})})})})),Da={XXL:"gap-6xl",XL:"gap-5xl",L:"gap-3xl",M:"gap-m",S:"gap-xs",XS:"gap-2xs","":""},Fa=g((({className:e="",gap:t="",isPadding:n=!1,isInnerPadding:l=!0,version:a="transparent",isTheme:r=!1,...i})=>u(C,{className:w("relative flex flex-col",Da[t],e),defaultPadding:n?"p-6xl":"",version:a,isTheme:r,...i,children:An({...i,extraProps:{className:"w-full",padding:l?"":"p-0"}})})));Fa.childrenTypes=[];const Ea=g((e=>u(Fa,{...e})));Ea.childrenTypes=[];const Ua=g((e=>{const{className:t,image:n,...l}=e;return u(C,{className:t,defaultPadding:"p-0",...l,children:u(Rt,{image:n})})})),Ha=["байт","Кб","Мб","Гб","Тб","Пб"],Wa=g((({icon:e,text:t,fileSize:n,...l})=>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",...l,children:[e,t?p(de,{size:"text-l",font:"font-light",children:[t,u(de,{color:"text-secondary-text",children:l?.href&&Ga(Xa(l.href),n)})]}):null]}))),Ga=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),Xa=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},Ja={double:"sm:flex-wrap sm:flex-row",single:"sm:flex-col"},Ya=g((({className:e="",title:t,description:n,align:l="text-center",documents:a,icon:r={icon:"DocIcon"},columnsMode:i="double",...s})=>{const o=J();return p(C,{className:e,defaultPadding:"p-6xl",...s,children:[u(Qt,{title:t,description:n,align:l,headlineVersion:"M",as:"h2",isPadding:!1}),a?.length?u("div",{className:w("mt-5 sm:mt-8 flex flex-col gap-6",Ja[i]),role:"list",children:a.map(qa(o,i,r))}):null]})})),qa=(e,t,n)=>(l,a)=>{const r="Attachment"===l?.docType?W(e)(l?.attachment?.src):l?.href,i="Attachment"===l?.docType?((e,t=2)=>{if(0===e)return"";const n=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/Math.pow(1024,n)).toFixed(t))} ${Ha[n]}`})(l?.attachment?.fileSize||0):l?.fileSize;return u("div",{className:"double"===t?"basis-[calc(50%-20px)]":"",role:"listitem",children:u(Wa,{text:l?.text,target:l?.target,href:r,fileSize:i,icon:n?u(Rt,{className:"min-w-11 min-h-11 h-fit p-2.5 bg-main-divider rounded-md",image:n,width:"24",height:"24"}):null})},String(a))},Ka={left:"text-left",center:"text-center",right:"text-right"},Za=e=>e?u("div",{className:"mb-lg pt-3xs",children:u(de,{size:"text-xl","font-weight":"light",children:e})}):null,Qa=e=>e?.length?u(Qn,{items:e,className:"text-l font-light mb-xs last:mb-0"}):u("span",{className:"text-m font-light text-secondary-text",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),er=g((({className:e,padding:t,alignTitle:n="left",buttons:l=[],description:a,headingType:r="h4",image:i,items:s,qr:o,title:c="Мобильное приложение",version:d="primary",...m})=>{const h="secondary"===d?"p-m min-w-32":"min-w-24";return u(C,{className:w("min-h-80",e),padding:"p-0",version:d,...m,children:p(Ol,{className:"h-full",padding:t,defaultPadding:"p-6xl",title:c?u(I,{headingType:r,title:c,className:w("whitespace-pre-wrap",Ka[n])}):null,buttons:Nn(l,{isVertical:l.length>4}),children:[Za(a),p("div",{className:"flex flex-1 flex-wrap gap-m items-center",children:[o?.src?u("div",{className:w("flex justify-center bg-white rounded-md",h),children:u(Rt,{className:"w-fit",image:o})}):null,Qa(s),i?.src?u(Rt,{image:i}):null]})]})})})),tr=(e=[])=>e.reduce(((e,t)=>e+t),0),nr=(e=[])=>e?.length?tr(e)/e.length:0,lr=(e,t="normal")=>e?u("div",{className:w("w-12 h-12 min-w-12 box-border flex items-center justify-center rounded-icon","normal"===t?"bg-secondary-light text-primary-main":"bg-primary-main text-black group-data-secondary:bg-white/30 group-data-secondary:text-black"),children:u(Rt,{className:"w-6 h-6",image:{...e,iconVersion:e.iconVersion||t}})}):null,ar=g((e=>{const{__html:t="",richVersion:n=""}=e;return u("div",{className:w(n,"md-container"),dangerouslySetInnerHTML:{__html:t}})})),rr=(e,t)=>e?u(ce,{font:"font-light",size:"text-m",color:"text-secondary-text group-data-secondary:text-white",children:e},`description-${t}`):null,ir=(e,t)=>e?u(de,{color:"text-primary-text group-data-secondary:text-white",size:"text-h6",children:e},`label-${t}`):null,sr=(e,t)=>"rte"===e.type&&"__html"in e&&e.__html?u(ar,{...e},`rte-${t}`):["label"in e?ir(e.label,t):null,"description"in e?rr(e.description,t):null],or=g((({className:e,benefitsVersion:t,...n})=>p("div",{className:w("flex gap-m","description"in n&&n.description?"items-start":"items-center",e),children:["icon"in n?lr(n.icon,t):null,u("div",{children:sr(n)})]}))),cr=e=>"rte"===e.type?e.__html?.length||0:Math.max(e.label?.length||0,e.description?.length||0),dr=e=>{return((t=e.map(cr))?.length?Math.sqrt(Math.abs(nr(t.map((e=>e**2)))-nr(t)**2)):0)>16;var t},mr=g((({className:e,benefitsVersion:t="normal",benefits:n})=>n?.length?u("div",{className:w("flex gap-x-m gap-y-s",dr(n)?"flex-col":"flex-wrap",e),children:n.map(((e,n)=>u(or,{benefitsVersion:t,...e},String(n))))}):null)),hr=g((({className:e,benefits:t})=>t?.length?u("div",{className:w("grid grid-cols-[max-content_1fr] auto-rows-auto items-baseline gap-x-m gap-y-xs",e),children:t.flatMap(sr)}):null)),ur=g((({isTabularBenefits:e,...t})=>u(e?hr:mr,{...t}))),pr=g((({className:e,tags:t})=>t?.length?u("div",{className:w("flex flex-wrap gap-xs",e),role:"list",children:t.map(gr)}):null)),gr=(e,t)=>u("div",{className:"py-2 px-2.5 border-solid border rounded-md border-gray",role:"listitem",children:u(de,{size:"text-m",font:"font-light",children:e})},String(t)),fr=g((({className:e,padding:t,defaultPadding:n,title:l,description:a,headlineVersion:r="L",align:i="text-left",isInsetTitle:s=!0,benefitsVersion:o,isTabularBenefits:c,benefits:d,__html:m,items:h,isDotted:g=!0,listItemSize:f,tags:x,buttons:b,image:v,imageOptions:{imageAlign:y="end",directionRight:N=!0,isBackground:w}={},children:k})=>{const C=v?.src?u(Rt,{image:v}):null,S=u(Qt,{title:l,description:a,headlineVersion:r,align:i,isPadding:!1});return u(Ol,{className:e,padding:t,defaultPadding:n,...s?{insetTitle:S}:{title:S},...w?{backImage:C}:xr(C,N),imageAlign:y,buttons:Nn(b),children:p("div",{className:"flex flex-col gap-xl",children:[u(ur,{benefitsVersion:o,isTabularBenefits:c,benefits:d}),m?u(ar,{__html:m}):null,h?.length?u(Qn,{items:h,isDotted:g,listItemSize:f}):null,k,x?.length?u(pr,{tags:x}):null]})})})),xr=(e,t)=>t?{rightImage:e}:{leftImage:e},br=(e,t)=>e||t?p("div",{className:"flex flex-wrap xl:flex-nowrap xl:bg-main-divider xl:rounded-md p-xs gap-xl",children:[Number(e)>0?vr("Страховая сумма:",e):null,Number(t)>0?vr("Ежемесячный лимит:",t):null]}):null,vr=(e,t=0)=>p("div",{className:"basis-full flex flex-col-reverse sm:flex-row sm:justify-between items-baseline whitespace-pre",children:[u(de,{font:"font-light",size:"text-l",children:e}),p(de,{size:"text-h6",color:"text-primary-text",children:[it(2)(t)," ₽"]})]}),yr=g((({className:e,padding:t,headlineVersion:n="M",align:l="text-center",sum:a,monthLimit:r,imageOptions:i,...s})=>u(C,{className:e,padding:"p-0",...s,children:u(fr,{className:"h-full",defaultPadding:"p-6xl",padding:t,headlineVersion:n,align:l,isInsetTitle:!1,imageOptions:{directionRight:!1,imageAlign:"center",...i},...s,children:br(Number(a),Number(r))})}))),Nr=g((({className:e,title:t,description:n="Блок в разработке...",...l})=>p(C,{className:w("box-border",e),...l,children:[u(Qt,{className:"max-w-[600px]",title:t,description:n,headlineVersion:"L",align:"text-left",isPadding:!1}),u("figure",{className:"m-0 mt-xl min-w-[80%]",children:wr()})]}))),wr=(e=3)=>Cr(100,e).map((e=>Math.floor(e))).map(kr),kr=(e,t)=>u("div",{style:{width:`${e||100}%`},className:"h-4 mt-xs bg-secondary-light"},String(t)),Cr=(e,t)=>[e].concat(t>0?Cr(e/1.618,t-1):[]);function Sr({text:e,href:t,target:n,icon:l},a){const r="primary"===a?"white":"black",i={text:e,href:t,target:n,ariaLabel:e};return p("div",{className:"flex items-center gap-3",children:[u(ie,{className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center",version:a,rounded:!0,...i,children:u(Rt,{className:"w-4 h-4",image:{...l,icon:l?.icon||"ArrowLeftIcon",iconVersion:l?.iconVersion||r}})}),u(ie,{version:"link",...i})]})}const Tr=g((({className:e,padding:t,backwardButton:n,...l})=>p(C,{className:w("overflow-hidden flex flex-col gap-3xl box-border",e),defaultPadding:"p-6xl",padding:t,...l,children:[n?.text?Sr(n,l.version&&"primary"!==l.version?"white":"primary"):null,u(fr,{className:"grow h-full",...l})]}))),Ir=g((({className:e,padding:t,slides:n=[],...l})=>u(C,{className:w("overflow-hidden relative",e),padding:t,...l,children:u(xn,{gap:0,padding:0,children:n.map((e=>e.productBlock)).map(((e,t)=>u("div",{className:"box-border h-full",role:"listitem",children:u(fr,{className:"px-5 h-full",headlineVersion:"L",...e,...l})},String(t))))})}))),Br=g((e=>{const{__html:t,richVersion:n,...l}=e;return u(C,{defaultPadding:"p-0",...l,children:u(ar,{__html:t,richVersion:n})})})),_r=[{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 Rr(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 zr={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"},jr=e=>u("a",{className:`select-none cursor-pointer px-9 h-12 bg-primary-main text-white ${Object.values(zr).join(" ")}`,href:`https://yandex.ru/maps/?ll=${[e[1],e[0]]}&z=10&l=map`,target:"_blank",children:"Открыть на карте"}),Pr={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)]"},Lr=(e,t,n)=>p("div",{className:`${Object.values(Pr).join(" ")} bg-white py-s pl-5xl pr-m w-full`,children:[u(Pe,{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"})]}),$r={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"},Ar=(e,t,n)=>u("div",{className:`select-none cursor-pointer py-4 w-12 bg-white ${Object.values($r).join(" ")} ${n}`,onClick:()=>{t.geolocation.get({provider:"yandex",autoReverseGeocode:!0,mapStateAutoApply:!0}).then((function(t){e.geoObjects.add(t.geoObjects)}))},children:u(Pe,{name:"UserGeoLocationIcon",width:"20",height:"16"})}),Mr=e=>globalThis[e];const Vr=()=>function(e,t){const[n,i]=l(),s=r((()=>i(Mr(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(!Mr(e))return n.addEventListener("load",s),()=>{n.removeEventListener("load",s)};s()}),[e,t]),n}("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${d.YANDEX_MAP_API_KEY||""}&lang=ru_RU`),Or={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"},Dr=g((({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(Or).join(" ")} bg-white select-none cursor-pointer w-12 h-12`,children:u(Pe,{name:n,width:"20",height:"16"})})})),Fr={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"},Er=g((({points:e,className:t="",zoom:n=5,showSearchField:r=!1})=>{const i=s(null),o=Vr(),[c,d]=l(),[m,h]=l(Gr(_r)),g=Ur(e);if(a((()=>{i?.current||o?.ready((()=>{i.current=new o.Map("map",{center:g,zoom:n,controls:[],suppressMapOpenBlock:!0}),Rr(o,i.current,m)}))}),[o,i,m]),a((()=>{if(i.current&&m&&o){const e=m.length<1?Gr(_r):m;Rr(o,i.current,e)}}),[i,m,o]),!o)return null;const f=c?"z-[100000]":"z-10";return p("div",{id:"map",className:`${c?"":"relative"} w-full ${t}`,children:[u("div",{className:`absolute flex left-2 top-4 w-1/2 ${f}`,children:r?Lr(_r,0,(e=>{if(e){const t=Gr(e);h(t)}})):jr(g)}),u("div",{className:`${Object.values(Fr).join(" ")} ${f} right-2 top-4 bg-white`,onClick:()=>{const e=i.current.container;c?e.exitFullscreen():e.enterFullscreen(),d(e.isFullscreen())},children:u(Pe,{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 ${f}`,children:[u(Dr,{yandexMaps:i}),u(Dr,{yandexMaps:i,direction:"out"})]}),Ar(i.current,o,`right-2 top-80 ${f}`)]})})),Ur=e=>[Wr(Hr(e,0)),Wr(Hr(e,1))],Hr=(e,t)=>e.map((e=>e[t])),Wr=e=>e.reduce(((e,t)=>e+t))/e.length,Gr=e=>e?e.map((e=>e.coords)):null,Xr=g((({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(Ae,{options:s,label:i,placeholder:a||l,onChange:e=>r(e.key),value:o})})),Jr=g((({regions:e=[],selectedRegion:t,onSelectedRegion:n,branches:l=[],selectedBranch:a,onSelectedBranch:r})=>p("div",{className:"flex flex-col sm:flex-row gap-m order-1",children:[u("div",{className:"flex-1 min-w-0",children:u(Xr,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:n,label:"Регион"})}),u("div",{className:"flex-1 min-w-0",children:u(Xr,{data:l,fieldValue:"branchCode",fieldLabel:"address",selected:a,setSelected:r,label:"Отделение",placeholder:"Выберите отделение"})})]}))),Yr=g((({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]})}))),qr=g((({className:e})=>{const[t,n]=l("option2"),a=r((e=>n(e)),[]);return p("div",{className:w("order-4",e),children:[u(Yr,{className:"mb-xs",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===t,onChange:a}),u(Yr,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===t,onChange:a})]})})),Kr=["От 1 дня","До 365 дней"],Zr=g((({days:e,setDays:t})=>p("div",{className:"order-1",children:[u(de,{size:"text-m",font:"font-light",children:"Срок аренды"}),u(mt,{min:1,max:365,value:e,items:Kr,onChange:t})]}))),Qr=g((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:n,safeBoxCases:l=[],selectedBoxSize:a,onSelectedBoxSize:r})=>p("div",{className:"flex flex-col sm:flex-row gap-4 order-1",children:[u("div",{className:"flex-1 min-w-0",children:u(Xr,{data:e,fieldLabel:"volume",selected:t,setSelected:n,label:"Размер",placeholder:"Выберите размер"})}),u("div",{className:"flex-1 min-w-0",children:u(Xr,{data:l,fieldLabel:"safeBoxCasesSize",selected:a,setSelected:r,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),ei=g((({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:"contents sm:block flex-1 space-y-xl",children:[u(Jr,{regions:e,selectedRegion:t,onSelectedRegion:e=>c({selectedRegion:e}),branches:n,selectedBranch:l,onSelectedBranch:ti(c)}),u(Zr,{days:a,setDays:e=>c({days:e})}),u(Qr,{caseVolumes:o,selectedCaseVolume:r,onSelectedCaseVolume:ni(c),safeBoxCases:s,selectedBoxSize:i,onSelectedBoxSize:e=>c({selectedBoxSize:e})}),u("div",{className:"order-4",children:u(de,{size:"text-l",font:"font-light",color:"text-secondary-text",children:"Тип договора"})}),p("div",{className:"contents sm:flex justify-between items-center",children:[u(qr,{className:"mb-4 sm:mb-0"}),u(ie,{text:"Офисы на карте",version:"primary",onClick:d,className:"order-6"})]})]}))),ti=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},ni=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},li=g((({days:e,tariffs:t=[]})=>{const n=ri(e,t),l="На рисунке изображена пачка листов\nформата А4";return p("div",{className:"contents sm:flex flex-col justify-between order-2",children:[p("div",{className:"flex flex-col sm:flex-row gap-x-11 gap-y-7 order-5 sm:order-none py-7 sm:py-0 border-t border-main-divider sm:border-none",children:[ai("Аренда за",e),ai("Цена",n+" ₽")]}),u("span",{className:"sm:hidden order-3 mb-2 text-s-light text-secondary-text",children:l}),p("div",{className:"flex flex-col items-center gap-3 order-3 sm:order-none mb-6 sm:mb-0 bg-primary-main py-3 sm:p-8 text-center",children:[u(Rt,{image:{icon:"PackA4Icon"},className:"sm:h-[246px]"}),u("span",{className:"hidden sm:inline text-s font-light text-white opacity-80 whitespace-pre-line",children:l})]})]})})),ai=(e,t)=>p("div",{className:"flex justify-between items-center gap-y-1 sm:flex-col sm:items-start",children:[u("div",{className:"text-l font-light text-secondary-text",children:e}),u("span",{className:"text-l sm:text-h3 text-primary-text",children:t})]}),ri=(e,t)=>{const n=ii(e);return e*(t?.find((e=>e.tariffType===String(n)))?.tariffValue||0)},ii=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},si=(e,t)=>e.find((e=>e.branchCode===t)),oi=g((e=>{const{regions:t,data:n,branches:l,onChange:r,onClick:i}=e;a((()=>{r({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[n.selectedRegion,r]);const s=si(l,n.selectedBranch),o=ci(s?.safeBoxCaseVolumes),c=di(s?.safeBoxCaseVolumes,n.selectedCaseVolume)?.safeBoxCases,d=mi(c,n.selectedBoxSize);return p("div",{className:"flex flex-col sm:flex-row gap-x-9 align-top mb-6",children:[u(ei,{...n,regions:t,onClick:i,branches:l,caseVolumes:o,safeBoxCases:c,onChange:r}),u(li,{days:n.days,tariffs:d})]})})),ci=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],di=(e,t)=>e?.find((e=>e.volume===t)),mi=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs,hi=[];const ui=async e=>await M(e,{method:"GET"})||hi,pi=g((({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=D(),h=gi(c.selectedRegion,m),g=function(e){const{data:t}=$(e?`/api/v1/safeboxes?regionCode=${e}`:null,ui);return t||hi}(h),f=r((e=>d((t=>({...t,...e})))),[d]),x=(b=si(g,c.selectedBranch)||g,Array.isArray(b)?b.map((e=>e.gpsLatitude&&e.gpsLongitude?[e.gpsLatitude,e.gpsLongitude]:[])):b?.gpsLatitude&&b?.gpsLongitude?[[b.gpsLatitude,b.gpsLongitude]]:[]);var b;return p(C,{className:n,defaultPadding:"",...a,children:[p("div",{className:"p-4xl",children:[e?u(I,{title:e,headingType:"h3",as:"h2",className:"text-primary-text mb-s text-center"}):null,u(oi,{regions:m,branches:g,data:{...c,selectedRegion:h},onClick:o,onChange:f}),t?u(ce,{size:"text-s",font:"font-light",children:t}):null]}),x.length&&i?u(Er,{points:x,className:"h-[640px]"}):null]})})),gi=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e;function fi(e){throw new Error(e)}const xi=e=>Boolean(e?.icon||e?.src),bi={normal:{icon:"h-11 w-11",image:"h-14 w-14"},small:{icon:"h-12 w-12",image:"h-14 w-14"}},vi={normal:"",small:"min-h-6xl"},yi={description:"text-white/80 text-l font-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"},Ni=g((({className:e="",title:t,description:n,steps:l,buttons:a,size:r="normal",version:i="primary",...s})=>p(C,{className:w("box-border flex flex-col gap-xs",e),defaultPadding:"p-6xl",version:i,...s,children:[t?u(I,{headingType:"h3",className:"text-left",title:t}):null,n?u(ce,{size:"text-xl",font:"font-light",children:u("span",{className:yi.description,children:n})}):null,l?.length?u("div",{className:"box-border",children:u("div",{className:"flex flex-col justify-between",children:l.map(wi(r,i))})}):null,Nn(a,{className:"mt-3",isVertical:!0})]}))),wi=(e,t)=>(n,l)=>{const{type:a}=n;if("default"!==a&&"rte"!==a)return null;switch(a){case"default":return ki(e,t)(n,l);case"rte":return u(ar,{__html:n.__html});default:fi(n)}},ki=(e,t)=>(n,l)=>u("div",{className:"contents",children:p("div",{className:"flex flex-row text-center relative py-3",children:[u("div",{className:"overflow-hidden flex flex-shrink-0 items-center",children:Ci(e,t)(n,l)}),p("div",{className:w("flex flex-col justify-center h-fit",vi[e]),children:[n.label?u("div",{className:"text-l m-0 text-left",children:n.label}):null,n.description?u("div",{className:w("text-s font-light text-left",yi.description),children:n.description}):null]})]})},String(l)),Ci=(e,t)=>(n,l)=>{const a="normal"===e?"38":"24",r="secondary"===t?"white":"color",i=Boolean(n?.icon?.src),s=bi[e][i?"image":"icon"];return u("div",{className:w(s,i?"":`rounded-md ${yi.iconBackground}`,"z-10 mr-s flex justify-center content-center"),children:u("span",{className:"flex self-center text-h4 text-secondary-text group-data-secondary:text-white",children:xi(n?.icon)?u(Rt,{image:{...n.icon,iconVersion:n.icon?.iconVersion||r},width:a,height:a}):u("span",{children:l+1})})})},Si="h-12 flex-1 flex items-center justify-center cursor-pointer",Ti="font-sans text-m text-center",Ii="text-secondary-text sm:group-hover/btn:text-primary-main",Bi={block:{scrollable:{active:`inline-flex px-4 grow whitespace-nowrap ${Si} bg-white text-primary-main`,default:`inline-flex px-4 grow whitespace-nowrap ${Si} group/btn bg-white`},centered:{active:`px-4 rounded-md ${Si} bg-primary-main text-white whitespace-nowrap`,default:`px-4 rounded-md ${Si} group/btn bg-transparent whitespace-nowrap`},wideScreen:{active:`${Si} bg-primary-main text-white whitespace-nowrap`,default:`${Si} group/btn bg-white whitespace-nowrap`}},text:{scrollable:{active:`${Ti} flex items-center h-full border-0 border-b-2`,default:`${Ti} ${Ii}`},centered:{active:`${Ti} text-white`,default:`${Ti} ${Ii}`},wideScreen:{active:`${Ti} text-white text-black px-2.5 bg-white sm:bg-primary-main sm:text-white`,default:`${Ti} ${Ii} px-2.5 bg-white`}}},_i=(e,t,n)=>{const l=t?"active":"default";return Bi[e][n||"wideScreen"][l]},Ri=g((e=>{const{tab:t,currentTab:n,onClick:l,tabsMode:a}=e,r="link"===n?.type&&n.href===t.href,i=Y()(t);return u("div",{className:_i("block",r,a),role:"tab","aria-selected":r,onClick:()=>l(t),children:u("a",{role:"tab",className:w("flex flex-1 items-center justify-center h-full",_i("text",r,a)),target:t.target,href:i.href,onClick:e=>{i.onClick(e),l(t)},children:u("span",{children:t.text})})})})),zi=(e,t,n)=>u("div",{className:w("bg-main-divider min-w-[22px] h-[22px] rounded-full text-xs ml-xs flex justify-center items-center",n&&"scrollable"!==e?"bg-white/30 text-white":"text-secondary-text group-hover/btn:text-primary-main"),children:t}),ji=({page:e,showCounter:t,...n})=>(l,a)=>{const r=l.type;if("group"!==r&&"link"!==r)return null;switch(r){case"group":return(({page:e,currentTab:t,showCounter:n,onClick:l,tabsMode:a})=>(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:_i("block",s,a),role:"tab","aria-selected":s,onClick:()=>l(r),children:p("div",{className:w("flex flex-1 items-center justify-center h-full",_i("text",s,a)),children:[u("span",{children:r.title}),n&&o?zi(a,o,s):null]})},`group-${String(i)}`)})({page:e,showCounter:t,...n})(l,a);case"link":return u(Ri,{tab:l,...n},String(a));default:fi(r)}return null},Pi=g((({tabs:e,...t})=>u("div",{className:"flex p-1 m-auto bg-main-gray rounded-md",children:e?.map(ji({...t}))}))),Li=g((e=>{const{tabs:t,...n}=e,[l,a]=fn({itemCount:t?.length||0});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(ln,{containerRef:l,snapAlign:"snap-start",onVisibleIndicesChange:a.handleVisibleIndicesChange,children:t?.map(ji({...n}))})}),a.canScrollLeft?u(Vn,{className:"absolute z-40 top-0 left-6",onClick:a.scrollLeft}):null,a.canScrollRight?u(On,{className:"absolute z-40 top-0 rotate-180 right-6",onClick:a.scrollRight}):null]})})),$i=g((e=>{const{className:t="",isSticky:n,tabs:i,...s}=e,[o,c]=l(i?i[0]:void 0);a((()=>{i&&i[0]&&Mi(i[0])}),[]),a((()=>{"group"===o?.type&&b.subject("tab",{type:o.type,label:o.ref})}),[o]);const d=r((e=>{Mi(e),c(e)}),[]);return u(C,{className:w("relative box-border flex gap-x-1 w-full overflow-x-auto no-scrollbar",n?"sticky top-1 z-20":"",t),defaultPadding:"p-0",role:"tablist",...s,children:Ai({tabs:i,onClick:d,currentTab:o,...s})})})),Ai=({tabsMode:e,tabs:t,...n})=>{switch(e){case"wideScreen":return t?.map(ji({tabsMode:e,...n}));case"centered":return u(Pi,{tabs:t,tabsMode:e,...n});case"scrollable":return u(Li,{tabs:t,tabsMode:e,...n})}return null},Mi=e=>{"group"===e.type&&b.fire("tab",{type:e.type,label:e.ref}),"link"===e.type&&b.fire("tab",{type:e.type,label:e.href})},Vi={Buttons:({buttons:e})=>Nn(e,{className:"mt-3",buttonClassName:"w-12 h-12"}),Img:({image:e})=>e?.src?u(Rt,{image:e,className:"m-0",imageClassName:"m-0"}):null,List:({isDotted:e,...t})=>u(Qn,{className:"flex flex-col justify-between items-start text-m pl-2 text-base",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>p("div",{children:[e?u("div",{className:"mb-xs",children:e}):null,t?u("div",{className:"text-s text-secondary-text",children:t}):null]})},Oi=g((({title:e,icon:t})=>p("div",{className:"mb-xs",children:[e?u(de,{size:"text-l",font:"font-light",children:e}):null,t?u(Rt,{className:"ml-auto min-w-6",image:t,width:"24",height:"24"}):null]}))),Di=g((({tile:e,...t})=>p("div",{className:"h-full",children:[u(Oi,{title:e?.header?.title}),e?.data?.length?e.data.map(((e,n)=>u("div",{className:"mb-xs",children:Fi(e,t)},String(n)))):null]})));function Fi(e,t){if(!e||!e.tableCellType||!(e.tableCellType in Vi))return null;const n=Vi[e.tableCellType];return u(n,{displayTable:()=>null,isVisible:!0,...e,...t})}const Ei=g((({tiles:e,...t})=>e?.length?u(xn,{...t,padding:void 0,children:e.map(((e,n)=>u(Di,{tile:e,...t},String(n))))}):null)),Ui=g((({tiles:e,...t})=>e?.length?u("div",{className:"flex flex-col gap-3.5",children:e.map(((e,n)=>u(Di,{tile:e,...t},String(n))))}):null)),Hi=g((({className:e,title:t,description:n,tariffsColumns:l,rowHeaders:a,orientation:r="vertical",...i})=>{const s=Wi(l),o=Gi(a,s);return p("section",{className:`p-6xl space-3xl bg-white font-sans text-primary-text overflow-x-hidden ${e}`,children:[u(Qt,{title:t,description:n,headlineVersion:"M",align:"text-left",isPadding:!1}),u("vertical"===r?Ui:Ei,{tiles:o,...i})]})})),Wi=e=>e?.[0]?.data?e[0].data:[],Gi=(e,t)=>e?.map(((e,n)=>({header:e,data:t?.[n]||[{}]}))),Xi=g((({className:e="",title:t,description:n,iconVersion:l,image:a,__html:r,items:i=[],...s})=>p(C,{className:w("flex gap-3 sm:gap-4 bg-white group-data-secondary:bg-primary-main/10",e),...s,children:["small"===l?u("div",{className:"mt-1",children:Ji()}):null,"big"===l?Yi(a):null,p("div",{className:"flex flex-col w-fit gap-1 sm:gap-2",children:[t?u(de,{size:"text-l",font:"font-normal",color:"text-primary-text group-data-secondary:text-white",children:t}):null,n?qi(n):null,i?.length?Ki(i,!0):null,r?u(ar,{__html:r}):null]})]}))),Ji=()=>u("div",{className:"rounded-full h-4 w-4 text-center text-xs font-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main",children:"i"}),Yi=e=>e?.src?u(Rt,{className:"h-fit flex-shrink-0",image:e}):null,qi=e=>u(ce,{size:"text-s",font:"font-light",color:"text-secondary-text group-data-secondary:text-white",children:e}),Ki=(e,t)=>u("ul",{className:w("text-secondary-text group-data-secondary:text-white/80",t?"list-disc pl-6":""),children:e.map(((e,t)=>u("li",{children:u(de,{size:"text-s",font:"font-light",children:e})},`listItem-${t}`)))}),Zi={ApplicationForm:Et,ButtonsBlock:Cn,BonusBenefitsBlock:yn,CardTransfer:Rn,Carousel:Hn,CarouselCard:vl,CarouselCatalogCard:Nl,CarouselProductCard:kl,CarouselBankHistoryCard:Wn,CarouselTariffsCard:ul,ComparisonTable:Al,Footer:Ba,Header:Oa,Headline:Qt,HorizontalLayout:Ea,ImgBlock:Ua,LinkDocs:Ya,MobileAppTile:er,PictureText:yr,Placeholder:Nr,ProductBlock:Tr,StepsBlock:Ni,Tabs:$i,TariffsTable:Hi,TextBlock:Xi,RichTextBlock:Br,RollupItem:fa,SafeDepositRental:pi,VerticalLayout:Fa,CarouselRecommendationCard:sl,ExchangeRateTile:ca,CarouselProgramsCard:Xn,ProductGallery:Ir,BenefitsBlock:Gt},Qi=864e5;function es(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<Qi?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 $(e,l)}const ts=()=>{const e=globalThis.localStorage?.getItem("location");try{return e?JSON.parse(e):null}catch(e){return null}};const ns=["Header","Footer"],ls=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function as(e=globalThis){const t=s(new Map);a((()=>N.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])=>!ns.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[n]=t.length>0?un(ls)(t):[];return n}([...t.current||[]]):void 0)}),100);return e.addEventListener("scroll",n),()=>{n.dispose(),e.removeEventListener("scroll",n)}}),[e])}const rs=(e,t,n=300)=>a((()=>{const t=setTimeout(e,n);return()=>{clearTimeout(t)}}),t),is=g((({className:e,onClick:t})=>u("button",{className:w("flex justify-center items-center w-12 h-12 p-1 bg-transparent border-none",e),onClick:t,title:"Закрыть",children:u(Rt,{image:{icon:"CloseIcon"},width:"24",height:"24"})})));function ss({onOpen:e,onClose:t}={}){a((()=>b.subscribe("dialog",(n=>{switch(n.type){case"open":e&&e(n);break;case"close":t&&t();break;default:fi(n)}}))),[e,t])}function os(e,t=!1){const[n,{setTrue:a,setFalse:i}]=ze(t),[o,c]=l({id:e}),d=s(n);d.current||=n;const m=r((t=>{t.id===e?(c(t),a()):i()}),[e]),h=r((()=>{i(),b.fire("dialog",{type:"close"})}),[]);return ss({onOpen:m,onClose:i}),{...o,isOpened:n,wasOpened:d.current,open:a,close:i,onClose:h}}const cs="cookie",ds=g((({termLink:e,personalDataPolicyLink:t})=>{const{isOpened:n,open:l,close:a}=os(cs);rs((()=>{globalThis.localStorage?.getItem(cs)||l()}),[],3e3);const i=r((()=>{globalThis.localStorage?.setItem(cs,"true"),a()}),[a]);return n?u("div",{className:"container z-40 fixed bottom-0 left-0 right-0 pointer-events-none",children:p("div",{className:"bg-white m-5 p-5 sm:m-6 sm:p-6 rounded-md flex sm:items-center pointer-events-auto shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:[u("div",{className:"sm:flex-1",children:p(ce,{size:"text-s",font:"font-light",color:"text-primary-text",children:["АО «Россельхозбанк» использует",u(Gn,{isRemote:!0,className:w(ms(e?.href)),...e,children:"cookie"}),"(файлы с данными о прошлых посещениях сайта) для персонализации сервисов и удобства пользователей. Вы можете запретить сохранение cookie в настройках своего браузера.",u(Gn,{isRemote:!0,className:w(ms(t?.href)),...t,children:"Обработка Ваших персональных данных"}),"производится в соответствии с требованиями Федерального закона от 27.07.2006 № 152-Ф3 «О персональных данных»."]})}),u("div",{className:"ml-3 sm:ml-0 w-24 flex justify-end",children:u(is,{className:"bg-main-gray rounded-md",onClick:i})})]})}):null})),ms=e=>["inline mx-1",e?"text-green-dark":""];const hs=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 us=g((({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 font-light z-50 overflow-x-hidden overflow-y-scroll no-scrollbar",e),role:"dialog",children:p("div",{className:"relative container pb-6xl min-h-full",children:[p("div",{className:"sticky bg-white pt-xl top-0",children:[u(is,{className:"absolute top-0 -right-6xl",onClick:r}),n]}),l]})}):null))),ps=g((({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-44 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"})]}))),gs=g((({currentLocation:e,onChangeLocation:t,foreignOffices:n})=>{const a=os("location"),[i,s]=l(""),o=xs(function(){const{data:e}=$("/api/v1/regions",V);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,fs),d=r((e=>{a.onClose&&a.onClose(),t&&t(e)}),[a.onClose,t]);return p(us,{...a,head:p("div",{children:[u(bs,{currentLocation:e,onChangeLocation:d}),u(ps,{onSearch:s,searchTerm:i})]}),children:[i&&i.length>=3?u("div",{children:o.filter((({name:e})=>e&&hs(e.toLowerCase())(i.toLowerCase())>=.8)).map(ys(d))}):u("div",{className:"columns-5",children:Array.from(c.entries()).map(vs(d))}),u(Ns,{foreignOffices:n})]})})),fs=e=>e.name?.charAt(0)||"",xs=e=>e.map((e=>({...e,name:e.name?.replace(/республика|область|край'/gi,"").trim()||""}))),bs=g((({currentLocation:e,onChangeLocation:t})=>e?p("div",{className:"mb-4",children:[u(de,{size:"text-l",font:"font-light",children:"Сейчас выбран: "}),u("button",{className:"cursor-pointer",onClick:()=>{t&&t(e)},children:u(de,{color:"text-primary-main",children:e.name})})]}):null)),vs=e=>([t,n])=>p("div",{className:"break-inside-avoid mb-2xl w-56",children:[u("div",{className:"mb-s",children:u(de,{size:"text-h6",children:t})}),n.map(ys(e))]},t),ys=e=>t=>u("div",{className:"mb-2xs",children:u("button",{className:"cursor-pointer hover:text-primary-hover",onClick:()=>{e&&e(t)},children:t.name||""})},t.id),Ns=g((({foreignOffices:e})=>e?.length?p("div",{className:"border-t border-main-divider mt-2xs pt-2xs",children:[u("div",{className:"mb-m",children:u(de,{size:"text-m",font:"font-light",color:"text-secondary-text",children:"Представительства за рубежом:"})}),u("div",{className:"flex gap-10",children:e.map(((e,t)=>u(ws,{...e},String(t))))})]}):null)),ws=g((({icon:e,...t})=>{const n=Y(),{text:l,target:a,href:r,onClick:i}=n(t);return p("div",{className:"flex gap-x-3",children:[e?u(Rt,{pathPrefix:"/wcms-resources/",image:e}):null,l?u("a",{className:"hover:text-primary-hover",href:r,target:a,onClick:i,children:l}):null]})}));function ks(e,...t){return e.map(((e,n)=>[e,...t.map((e=>e[n]))]))}const Cs=(e,t)=>(n,l)=>{for(const[a,r]of l)n.set(a,e(n.get(a)||t,r));return n},Ss=e=>e.toLowerCase().split(/[^0-9a-zа-я-]+/).filter((e=>e.length>=3&&!/[0-9a-z]/.test(e))),Ts=e=>t=>e.map((([e,n])=>[hs(t)(e),n])).filter((([e])=>e>=.8)).map((([e,t])=>Bs(t,e))).reduce(Cs(Math.max,0),new Map),Is=e=>t=>{return ks(t,t.map((({title:e})=>e)).map((e=>t=>{const n=Ss(t||"");return n.length?tr(e.map((e=>hn(n.map(hs(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},Bs=(e,t)=>new Map(e.map((e=>[e,t]))),_s=["/"],Rs=({basePathList:e=_s,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}=$(o,zs),[d,m]=l(null);return rs((()=>{c&&m(c.map((e=>t=>{const{corpus:n,dictionary:l}=t||{};if(!(e&&n?.length&&l&&Object.keys(l).length))return[];const a=Ss(e);if(!a.length)return[];const r=Object.entries(l),i=[...a.map(Ts(r)).reduce(Cs(((e,t)=>e+t),0),new Map).entries()].filter((([,e])=>e>=.799*a.length)).map((([e])=>n[e]));return Is(a)(i)})(r)))}),[c,r]),[d,{value:r,onChange:s}]},zs=async(...e)=>(await Promise.allSettled(e.map((e=>M(U(e,"/","search.index.json")))))).map((e=>"fulfilled"===e.status?e.value:{})),js=g((({className:e,topItems:t})=>{const n=Y({isRemote:!0});return u("div",{className:w("flex items-start justify-between",e),children:t?.map(n).map(Ps)})})),Ps=(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(Ls,{...e,basePath:o(a),index:t},String(t))))]},String(t))},Ls=g((({text:e,index:t,basePath:n,...l})=>{const a=Y({isRemote:!(!d.BASE_PATH||!n)&&!d.BASE_PATH.startsWith(n),basePath:n}),{href:r,target:i,onClick:s}=a(l);return u("a",{className:w("text-l font-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}`})})),$s=g((({className:e,value:t,autoFocus:n,onChange:l,onFocus:a})=>{const i=r((e=>{l&&l(e.target?.value||"")}),[l]);return p("div",{className:w("font-sans relative",e),role:"form",children:[u("div",{className:"absolute h-full flex items-center pl-m pointer-events-none",children:u(Rt,{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"),value:t,type:"text",name:"search-bar-input",placeholder:"Поиск по сайту",autoFocus:n,onChange:i,onFocus:a})]})})),As=g((({topItems:e})=>{const t=os("search"),n=i((()=>e?.map((e=>e.href||"/"))),[e]),[l,r]=Rs({basePathList:n,initialQuery:t.message,wasOpened:t.wasOpened}),s=i((()=>Ms(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(us,{...t,head:u($s,{autoFocus:!0,...r}),children:u(js,{topItems:s})})})),Ms=e=>t=>e?.length&&t?.length?ks(e,t).map((([e,t])=>({...e,items:t?.map((({title:e,uri:t})=>({text:e,href:U("/",t)})))}))):[];const Vs=h();const Os=g((({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:Ds()}))),Ds=()=>{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"})]})},Fs=g((({className:e=""})=>{const t=function(e){const[t,n]=l(0);return a((()=>{(async()=>{const[t]=await Vs.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:r((async()=>{n(await Vs.like(e))}),[e]),dislike:r((async()=>{n(await Vs.dislike(e))}),[e])}}(J().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(Os,{onClick:X(t.like),ariaLabel:"Поставить отметку «лайк»"}),u(Os,{onClick:X(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),u("span",{className:"select-none",children:t.likeCount})]})})),Es=g((({className:e,blocksRegistry:t,blockDecorator:n,data:i={}})=>{const{style:s,slots:o,likeControl:c,colorPalette:m="pc"}=i,h={key:"",page:i,blocksRegistry:t,blockDecorator:n,parent:i},g=kt(d.SITEMAP||"sitemap",i?.fallback),[f,x]=function(e="Москва"){const t=ts(),[n,i]=l(t?.region??{name:e}),{data:s}=es("/api/v1/region",V);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)}),[])]}(g?.defaultLocation);as();const[b,{setTrue:v,setFalse:y}]=ze();return ss({onOpen:v,onClose:y}),p("section",{className:w("relative @container",s,e,b?"overflow-hidden h-screen":""),"data-theme":m,children:[o?.header?u("div",{className:"relative z-10 mb-5 shadow-[0_8px_32px_0px_#00000014]",children:$n(o?.header,{...h,slotName:"header",extraProps:{sitemap:g,location:f}})}):null,p("div",{className:"container @lg:grid @lg:grid-cols-12 @lg:gap-1",children:[An({block:i,options:h,extraProps:{className:"scroll-mt-12"}}),$n(o?.footer,{...h,slotName:"footer",extraProps:{sitemap:g,location:f}})]}),c?u("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:u(Fs,{className:"rounded-tl-3xl sticky bottom-0 pointer-events-auto"})}):null,u(ds,{termLink:{href:"/pd-policy#cookie",target:"_blank"},personalDataPolicyLink:{href:"/pd-policy",target:"_blank"}}),u(As,{topItems:g?.topItems}),u(gs,{currentLocation:f,foreignOffices:g?.foreignOffices,onChangeLocation:x})]})}));Es.childrenTypes=[],Es.slots=()=>["header","footer"];e.Blocks=Zi,e.ContentPage=Es,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=X,e.joinList=e=>t=>t.reduce(((t,n,l)=>t.length?t.concat({...e,key:`sep-${l}`},n):[n]),[]),e.packageVersion="0.12.13",e.projectSettings=d,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=H,e.useRouter=J,Object.defineProperty(e,"__esModule",{value:!0})}));
|