@redneckz/wildless-cms-uni-blocks 0.10.4 → 0.10.6
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.9.9.js +8 -6
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +323 -411
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/AcquiringFormState.d.ts +11 -0
- package/bundle/components/ApplicationForm/ApplicationFormAcquiring.d.ts +1 -11
- package/bundle/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +1 -8
- package/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +1 -13
- package/bundle/components/ApplicationForm/ApplicationFormDeposit.d.ts +1 -5
- package/bundle/components/ApplicationForm/ApplicationFormWed.d.ts +1 -11
- package/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
- package/bundle/components/ApplicationForm/BusinessCardFormState.d.ts +8 -0
- package/bundle/components/ApplicationForm/CreditFormState.d.ts +13 -0
- package/bundle/components/ApplicationForm/CreditParameters.d.ts +3 -3
- package/bundle/components/ApplicationForm/DepositFormState.d.ts +4 -0
- package/bundle/components/ApplicationForm/InputControl.d.ts +4 -5
- package/bundle/components/ApplicationForm/PhoneInputControl.d.ts +2 -0
- package/bundle/components/ApplicationForm/ResponseNotification.d.ts +1 -1
- package/bundle/components/ApplicationForm/SelectControl.d.ts +2 -9
- package/bundle/components/ApplicationForm/WedFormState.d.ts +10 -0
- package/bundle/components/ApplicationForm/models.d.ts +0 -6
- package/bundle/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +3 -10
- package/bundle/components/ApplicationForm/renderAcquiringRegion.d.ts +6 -9
- package/bundle/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +3 -10
- package/bundle/components/ApplicationForm/renderCreditDataOrganization.d.ts +3 -12
- package/bundle/components/ApplicationForm/renderCreditParameters.d.ts +3 -9
- package/bundle/components/ApplicationForm/renderQuestionsInterested.d.ts +3 -11
- package/bundle/components/ApplicationForm/renderRegion.d.ts +6 -8
- package/bundle/components/ApplicationForm/renderRegionDepartment.d.ts +6 -9
- package/bundle/components/ApplicationForm/renderSlideCheckboxes.d.ts +3 -9
- package/bundle/components/ApplicationForm/renderWedDataOrganization.d.ts +3 -10
- package/bundle/components/ApplicationForm/validators.d.ts +4 -0
- package/bundle/components/Filtration/renderFormItem.d.ts +2 -2
- package/bundle/components/TextBlock/TextBlockContent.d.ts +1 -2
- package/bundle/hooks/useForm.d.ts +13 -12
- package/bundle/ui-kit/Checkbox/CheckboxProps.d.ts +2 -2
- package/bundle/ui-kit/CookiePopup/CookiePopup.d.ts +8 -0
- package/bundle/ui-kit/Dialog/useDialogProps.d.ts +1 -1
- package/bundle/ui-kit/Input/InputProps.d.ts +4 -2
- package/bundle/ui-kit/LinkWrapper/LinkWrapper.d.ts +1 -0
- package/bundle/ui-kit/PhoneInput/PhoneInput.d.ts +2 -0
- package/bundle/ui-kit/PhoneInput/normalizePhone.d.ts +1 -0
- package/bundle/ui-kit/Select/Select.d.ts +6 -7
- package/bundle/validation/and.d.ts +2 -0
- package/bundle/validation/objectValidator.d.ts +2 -0
- package/bundle/validation/pattern.d.ts +1 -0
- package/bundle/validation/required.d.ts +1 -0
- package/bundle/validation/validator.d.ts +10 -0
- package/bundle/validation/withValidator.d.ts +10 -0
- package/dist/components/ApplicationForm/AcquiringFormState.d.ts +11 -0
- package/dist/components/ApplicationForm/AcquiringFormState.js +2 -0
- package/dist/components/ApplicationForm/AcquiringFormState.js.map +1 -0
- package/dist/components/ApplicationForm/ApplicationForm.js +4 -3
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.d.ts +1 -11
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +28 -48
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +1 -8
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +24 -32
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +1 -13
- package/dist/components/ApplicationForm/ApplicationFormCredit.js +28 -48
- package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormDeposit.d.ts +1 -5
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js +21 -23
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormWed.d.ts +1 -11
- package/dist/components/ApplicationForm/ApplicationFormWed.js +22 -37
- package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
- package/dist/components/ApplicationForm/BusinessCardFormState.d.ts +8 -0
- package/dist/components/ApplicationForm/BusinessCardFormState.js +2 -0
- package/dist/components/ApplicationForm/BusinessCardFormState.js.map +1 -0
- package/dist/components/ApplicationForm/CreditFormState.d.ts +13 -0
- package/dist/components/ApplicationForm/CreditFormState.js +2 -0
- package/dist/components/ApplicationForm/CreditFormState.js.map +1 -0
- package/dist/components/ApplicationForm/CreditParameters.d.ts +3 -3
- package/dist/components/ApplicationForm/CreditParameters.js +5 -5
- package/dist/components/ApplicationForm/CreditParameters.js.map +1 -1
- package/dist/components/ApplicationForm/DepositFormState.d.ts +4 -0
- package/dist/components/ApplicationForm/DepositFormState.js +2 -0
- package/dist/components/ApplicationForm/DepositFormState.js.map +1 -0
- package/dist/components/ApplicationForm/InputControl.d.ts +4 -5
- package/dist/components/ApplicationForm/InputControl.js +1 -3
- package/dist/components/ApplicationForm/InputControl.js.map +1 -1
- package/dist/components/ApplicationForm/PhoneInputControl.d.ts +2 -0
- package/dist/components/ApplicationForm/PhoneInputControl.js +8 -0
- package/dist/components/ApplicationForm/PhoneInputControl.js.map +1 -0
- package/dist/components/ApplicationForm/ResponseNotification.d.ts +1 -1
- package/dist/components/ApplicationForm/ResponseNotification.js +4 -4
- package/dist/components/ApplicationForm/SelectControl.d.ts +2 -9
- package/dist/components/ApplicationForm/SelectControl.js +1 -7
- package/dist/components/ApplicationForm/SelectControl.js.map +1 -1
- package/dist/components/ApplicationForm/WedFormState.d.ts +10 -0
- package/dist/components/ApplicationForm/WedFormState.js +2 -0
- package/dist/components/ApplicationForm/WedFormState.js.map +1 -0
- package/dist/components/ApplicationForm/models.d.ts +0 -6
- package/dist/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +3 -10
- package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +4 -2
- package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/dist/components/ApplicationForm/renderAcquiringRegion.d.ts +6 -9
- package/dist/components/ApplicationForm/renderAcquiringRegion.js +3 -2
- package/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +3 -10
- package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +4 -2
- package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
- package/dist/components/ApplicationForm/renderCreditDataOrganization.d.ts +3 -12
- package/dist/components/ApplicationForm/renderCreditDataOrganization.js +4 -2
- package/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/dist/components/ApplicationForm/renderCreditParameters.d.ts +3 -9
- package/dist/components/ApplicationForm/renderCreditParameters.js +3 -16
- package/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/dist/components/ApplicationForm/renderQuestionsInterested.d.ts +3 -11
- package/dist/components/ApplicationForm/renderQuestionsInterested.js +4 -1
- package/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/dist/components/ApplicationForm/renderRegion.d.ts +6 -8
- package/dist/components/ApplicationForm/renderRegion.js +3 -2
- package/dist/components/ApplicationForm/renderRegion.js.map +1 -1
- package/dist/components/ApplicationForm/renderRegionDepartment.d.ts +6 -9
- package/dist/components/ApplicationForm/renderRegionDepartment.js +6 -2
- package/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/dist/components/ApplicationForm/renderSlideCheckboxes.d.ts +3 -9
- package/dist/components/ApplicationForm/renderSlideCheckboxes.js +1 -1
- package/dist/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -1
- package/dist/components/ApplicationForm/renderSubmitButton.js +2 -1
- package/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/dist/components/ApplicationForm/renderWedDataOrganization.d.ts +3 -10
- package/dist/components/ApplicationForm/renderWedDataOrganization.js +4 -2
- package/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
- package/dist/components/ApplicationForm/validators.d.ts +4 -0
- package/dist/components/ApplicationForm/validators.js +11 -0
- package/dist/components/ApplicationForm/validators.js.map +1 -0
- package/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/dist/components/Blocks.mobile.js +5 -1
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/Bonus/Bonus.js +1 -1
- package/dist/components/Bonus/Bonus.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/dist/components/BusinessBlock/BusinessBlock.js +1 -1
- package/dist/components/BusinessBlock/BusinessBlock.js.map +1 -1
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
- 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/CardTransfer/CardTransfer.js +1 -1
- package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/dist/components/Carousel/Carousel.js +1 -1
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/Carousel/CarouselScrollButtons.js +1 -1
- package/dist/components/Carousel/CarouselScrollButtons.js.map +1 -1
- package/dist/components/CarouselLinks/CarouselLinks.js +1 -1
- package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/dist/components/CarouselProductCard/CarouselProductCard.js +2 -2
- package/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/dist/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -1
- package/dist/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
- package/dist/components/ContactsBlock/ContactsBlock.js +1 -1
- package/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/dist/components/ContentPage/ContentPage.js +2 -1
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/dist/components/Filtration/Filtration.js +3 -2
- package/dist/components/Filtration/Filtration.js.map +1 -1
- package/dist/components/Filtration/renderFormItem.d.ts +2 -2
- package/dist/components/Filtration/renderFormItem.js +4 -4
- package/dist/components/Filtration/renderFormItem.js.map +1 -1
- package/dist/components/GracePeriod/GracePeriod.js +1 -1
- package/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/dist/components/Headline/Headline.js +1 -1
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/HorizontalLayout/HorizontalLayout.js +1 -1
- package/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.js +1 -1
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocs.mobile.js +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js +1 -1
- package/dist/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.js +2 -2
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/SafeDepositRental/WrapperSelect.js.map +1 -1
- package/dist/components/SafeDepositRental/useGetRegions.js +2 -1
- package/dist/components/SafeDepositRental/useGetRegions.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.js +1 -1
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/components/TextBlock/TextBlock.js +8 -4
- package/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/dist/components/TextBlock/TextBlockContent.d.ts +1 -2
- package/dist/components/VerticalLayout/VerticalLayout.js +1 -1
- package/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/dist/hooks/useForm.d.ts +13 -12
- package/dist/hooks/useForm.js +31 -8
- package/dist/hooks/useForm.js.map +1 -1
- package/dist/ui-kit/Checkbox/Checkbox.js +9 -4
- package/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/dist/ui-kit/Checkbox/CheckboxProps.d.ts +2 -2
- package/dist/ui-kit/CookiePopup/CookiePopup.d.ts +8 -0
- package/dist/ui-kit/CookiePopup/CookiePopup.js +22 -0
- package/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -0
- package/dist/ui-kit/CurrencyInput/CurrencyInput.js +8 -14
- package/dist/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
- package/dist/ui-kit/Dialog/CloseButton.js +1 -1
- package/dist/ui-kit/Dialog/CloseButton.js.map +1 -1
- package/dist/ui-kit/Dialog/Dialog.js +1 -1
- package/dist/ui-kit/Dialog/Dialog.js.map +1 -1
- package/dist/ui-kit/Dialog/useDialogProps.d.ts +1 -1
- package/dist/ui-kit/Dialog/useDialogProps.js +2 -2
- package/dist/ui-kit/Dialog/useDialogProps.js.map +1 -1
- package/dist/ui-kit/Input/Input.js +4 -11
- package/dist/ui-kit/Input/Input.js.map +1 -1
- package/dist/ui-kit/Input/InputProps.d.ts +4 -2
- package/dist/ui-kit/LinkWrapper/LinkWrapper.d.ts +1 -0
- package/dist/ui-kit/LinkWrapper/LinkWrapper.js +2 -2
- package/dist/ui-kit/LinkWrapper/LinkWrapper.js.map +1 -1
- package/dist/ui-kit/PhoneInput/PhoneInput.d.ts +2 -0
- package/dist/ui-kit/PhoneInput/PhoneInput.js +12 -0
- package/dist/ui-kit/PhoneInput/PhoneInput.js.map +1 -0
- package/dist/ui-kit/PhoneInput/normalizePhone.d.ts +1 -0
- package/dist/ui-kit/PhoneInput/normalizePhone.js +17 -0
- package/dist/ui-kit/PhoneInput/normalizePhone.js.map +1 -0
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +1 -1
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/dist/ui-kit/Select/Select.d.ts +6 -7
- package/dist/ui-kit/Select/Select.js +16 -25
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/dist/ui-kit/SlideCheckbox/SlideCheckbox.js +2 -1
- package/dist/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -1
- package/dist/validation/and.d.ts +2 -0
- package/dist/validation/and.js +5 -0
- package/dist/validation/and.js.map +1 -0
- package/dist/validation/objectValidator.d.ts +2 -0
- package/dist/validation/objectValidator.js +7 -0
- package/dist/validation/objectValidator.js.map +1 -0
- package/dist/validation/pattern.d.ts +1 -0
- package/dist/validation/pattern.js +6 -0
- package/dist/validation/pattern.js.map +1 -0
- package/dist/validation/required.d.ts +1 -0
- package/dist/validation/required.js +5 -0
- package/dist/validation/required.js.map +1 -0
- package/dist/validation/validator.d.ts +10 -0
- package/dist/validation/validator.js +9 -0
- package/dist/validation/validator.js.map +1 -0
- package/dist/validation/withValidator.d.ts +10 -0
- package/dist/validation/withValidator.js +13 -0
- package/dist/validation/withValidator.js.map +1 -0
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/AcquiringFormState.d.ts +11 -0
- package/lib/components/ApplicationForm/AcquiringFormState.js +2 -0
- package/lib/components/ApplicationForm/AcquiringFormState.js.map +1 -0
- package/lib/components/ApplicationForm/ApplicationForm.js +4 -3
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.d.ts +1 -11
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +28 -48
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +1 -8
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +24 -32
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +1 -13
- package/lib/components/ApplicationForm/ApplicationFormCredit.js +28 -48
- package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormDeposit.d.ts +1 -5
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js +21 -23
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormWed.d.ts +1 -11
- package/lib/components/ApplicationForm/ApplicationFormWed.js +22 -37
- package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
- package/lib/components/ApplicationForm/BusinessCardFormState.d.ts +8 -0
- package/lib/components/ApplicationForm/BusinessCardFormState.js +2 -0
- package/lib/components/ApplicationForm/BusinessCardFormState.js.map +1 -0
- package/lib/components/ApplicationForm/CreditFormState.d.ts +13 -0
- package/lib/components/ApplicationForm/CreditFormState.js +2 -0
- package/lib/components/ApplicationForm/CreditFormState.js.map +1 -0
- package/lib/components/ApplicationForm/CreditParameters.d.ts +3 -3
- package/lib/components/ApplicationForm/CreditParameters.js +5 -5
- package/lib/components/ApplicationForm/CreditParameters.js.map +1 -1
- package/lib/components/ApplicationForm/DepositFormState.d.ts +4 -0
- package/lib/components/ApplicationForm/DepositFormState.js +2 -0
- package/lib/components/ApplicationForm/DepositFormState.js.map +1 -0
- package/lib/components/ApplicationForm/InputControl.d.ts +4 -5
- package/lib/components/ApplicationForm/InputControl.js +1 -3
- package/lib/components/ApplicationForm/InputControl.js.map +1 -1
- package/lib/components/ApplicationForm/PhoneInputControl.d.ts +2 -0
- package/lib/components/ApplicationForm/PhoneInputControl.js +6 -0
- package/lib/components/ApplicationForm/PhoneInputControl.js.map +1 -0
- package/lib/components/ApplicationForm/ResponseNotification.d.ts +1 -1
- package/lib/components/ApplicationForm/ResponseNotification.js +4 -4
- package/lib/components/ApplicationForm/SelectControl.d.ts +2 -9
- package/lib/components/ApplicationForm/SelectControl.js +1 -7
- package/lib/components/ApplicationForm/SelectControl.js.map +1 -1
- package/lib/components/ApplicationForm/WedFormState.d.ts +10 -0
- package/lib/components/ApplicationForm/WedFormState.js +2 -0
- package/lib/components/ApplicationForm/WedFormState.js.map +1 -0
- package/lib/components/ApplicationForm/models.d.ts +0 -6
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +3 -10
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +4 -2
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/lib/components/ApplicationForm/renderAcquiringRegion.d.ts +6 -9
- package/lib/components/ApplicationForm/renderAcquiringRegion.js +3 -2
- package/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +3 -10
- package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +4 -2
- package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
- package/lib/components/ApplicationForm/renderCreditDataOrganization.d.ts +3 -12
- package/lib/components/ApplicationForm/renderCreditDataOrganization.js +4 -2
- package/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/lib/components/ApplicationForm/renderCreditParameters.d.ts +3 -9
- package/lib/components/ApplicationForm/renderCreditParameters.js +4 -17
- package/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/lib/components/ApplicationForm/renderQuestionsInterested.d.ts +3 -11
- package/lib/components/ApplicationForm/renderQuestionsInterested.js +4 -1
- package/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/lib/components/ApplicationForm/renderRegion.d.ts +6 -8
- package/lib/components/ApplicationForm/renderRegion.js +3 -2
- package/lib/components/ApplicationForm/renderRegion.js.map +1 -1
- package/lib/components/ApplicationForm/renderRegionDepartment.d.ts +6 -9
- package/lib/components/ApplicationForm/renderRegionDepartment.js +6 -2
- package/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/lib/components/ApplicationForm/renderSlideCheckboxes.d.ts +3 -9
- package/lib/components/ApplicationForm/renderSlideCheckboxes.js +1 -1
- package/lib/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -1
- package/lib/components/ApplicationForm/renderSubmitButton.js +2 -1
- package/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/lib/components/ApplicationForm/renderWedDataOrganization.d.ts +3 -10
- package/lib/components/ApplicationForm/renderWedDataOrganization.js +4 -2
- package/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
- package/lib/components/ApplicationForm/validators.d.ts +4 -0
- package/lib/components/ApplicationForm/validators.js +9 -0
- package/lib/components/ApplicationForm/validators.js.map +1 -0
- package/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/lib/components/Blocks.mobile.js +5 -1
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/Bonus/Bonus.js +1 -1
- package/lib/components/Bonus/Bonus.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/lib/components/BusinessBlock/BusinessBlock.js +1 -1
- package/lib/components/BusinessBlock/BusinessBlock.js.map +1 -1
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
- 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/CardTransfer/CardTransfer.js +1 -1
- package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/lib/components/Carousel/Carousel.js +1 -1
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/Carousel/CarouselScrollButtons.js +1 -1
- package/lib/components/Carousel/CarouselScrollButtons.js.map +1 -1
- package/lib/components/CarouselLinks/CarouselLinks.js +1 -1
- package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/lib/components/CarouselProductCard/CarouselProductCard.js +2 -2
- package/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/lib/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -1
- package/lib/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
- package/lib/components/ContactsBlock/ContactsBlock.js +1 -1
- package/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/lib/components/ContentPage/ContentPage.js +2 -1
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/lib/components/Filtration/Filtration.js +3 -2
- package/lib/components/Filtration/Filtration.js.map +1 -1
- package/lib/components/Filtration/renderFormItem.d.ts +2 -2
- package/lib/components/Filtration/renderFormItem.js +4 -4
- package/lib/components/Filtration/renderFormItem.js.map +1 -1
- package/lib/components/GracePeriod/GracePeriod.js +1 -1
- package/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/lib/components/Headline/Headline.js +1 -1
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/HorizontalLayout/HorizontalLayout.js +1 -1
- package/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/lib/components/ImgBlock/ImgBlock.fixture.mobile.d.ts +6 -0
- package/lib/components/LinkDocs/LinkDocs.js +1 -1
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocs.mobile.js +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js +1 -1
- package/lib/components/MobileAppTile/MobileAppTile.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.js +2 -2
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/ProductTile/renderBenefit.d.ts +0 -1
- package/lib/components/RichTextBlock/RichTextBlock.fixture.mobile.d.ts +9 -0
- package/lib/components/SafeDepositRental/WrapperSelect.js.map +1 -1
- package/lib/components/SafeDepositRental/useGetRegions.js +2 -1
- package/lib/components/SafeDepositRental/useGetRegions.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.js +1 -1
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/components/TextBlock/TextBlock.fixture.d.ts +1 -1
- package/lib/components/TextBlock/TextBlock.fixture.mobile.d.ts +6 -2
- package/lib/components/TextBlock/TextBlock.js +8 -4
- package/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/lib/components/TextBlock/TextBlockContent.d.ts +1 -2
- package/lib/components/VerticalLayout/VerticalLayout.fixture.mobile.d.ts +8 -0
- package/lib/components/VerticalLayout/VerticalLayout.js +1 -1
- package/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/lib/hooks/useForm.d.ts +13 -12
- package/lib/hooks/useForm.js +31 -8
- package/lib/hooks/useForm.js.map +1 -1
- package/lib/ui-kit/Checkbox/Checkbox.js +9 -4
- package/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/lib/ui-kit/Checkbox/CheckboxProps.d.ts +2 -2
- package/lib/ui-kit/CookiePopup/CookiePopup.d.ts +8 -0
- package/lib/ui-kit/CookiePopup/CookiePopup.js +20 -0
- package/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -0
- package/lib/ui-kit/CurrencyInput/CurrencyInput.js +8 -14
- package/lib/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
- package/lib/ui-kit/Dialog/CloseButton.js +1 -1
- package/lib/ui-kit/Dialog/CloseButton.js.map +1 -1
- package/lib/ui-kit/Dialog/Dialog.js +1 -1
- package/lib/ui-kit/Dialog/Dialog.js.map +1 -1
- package/lib/ui-kit/Dialog/useDialogProps.d.ts +1 -1
- package/lib/ui-kit/Dialog/useDialogProps.js +2 -2
- package/lib/ui-kit/Dialog/useDialogProps.js.map +1 -1
- package/lib/ui-kit/Input/Input.js +4 -11
- package/lib/ui-kit/Input/Input.js.map +1 -1
- package/lib/ui-kit/Input/InputProps.d.ts +4 -2
- package/lib/ui-kit/LinkWrapper/LinkWrapper.d.ts +1 -0
- package/lib/ui-kit/LinkWrapper/LinkWrapper.js +2 -2
- package/lib/ui-kit/LinkWrapper/LinkWrapper.js.map +1 -1
- package/lib/ui-kit/PhoneInput/PhoneInput.d.ts +2 -0
- package/lib/ui-kit/PhoneInput/PhoneInput.js +10 -0
- package/lib/ui-kit/PhoneInput/PhoneInput.js.map +1 -0
- package/lib/ui-kit/PhoneInput/normalizePhone.d.ts +1 -0
- package/lib/ui-kit/PhoneInput/normalizePhone.js +14 -0
- package/lib/ui-kit/PhoneInput/normalizePhone.js.map +1 -0
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +1 -1
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/lib/ui-kit/Select/Select.d.ts +6 -7
- package/lib/ui-kit/Select/Select.js +17 -26
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/lib/ui-kit/SlideCheckbox/SlideCheckbox.js +2 -1
- package/lib/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -1
- package/lib/validation/and.d.ts +2 -0
- package/lib/validation/and.js +2 -0
- package/lib/validation/and.js.map +1 -0
- package/lib/validation/objectValidator.d.ts +2 -0
- package/lib/validation/objectValidator.js +4 -0
- package/lib/validation/objectValidator.js.map +1 -0
- package/lib/validation/pattern.d.ts +1 -0
- package/lib/validation/pattern.js +3 -0
- package/lib/validation/pattern.js.map +1 -0
- package/lib/validation/required.d.ts +1 -0
- package/lib/validation/required.js +3 -0
- package/lib/validation/required.js.map +1 -0
- package/lib/validation/validator.d.ts +10 -0
- package/lib/validation/validator.js +4 -0
- package/lib/validation/validator.js.map +1 -0
- package/lib/validation/withValidator.d.ts +10 -0
- package/lib/validation/withValidator.js +10 -0
- package/lib/validation/withValidator.js.map +1 -0
- package/mobile/bundle/bundle.umd.js +50 -18
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/AcquiringFormState.d.ts +11 -0
- package/mobile/bundle/components/ApplicationForm/ApplicationFormAcquiring.d.ts +1 -11
- package/mobile/bundle/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +1 -8
- package/mobile/bundle/components/ApplicationForm/ApplicationFormCredit.d.ts +1 -13
- package/mobile/bundle/components/ApplicationForm/ApplicationFormDeposit.d.ts +1 -5
- package/mobile/bundle/components/ApplicationForm/ApplicationFormWed.d.ts +1 -11
- package/mobile/bundle/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
- package/mobile/bundle/components/ApplicationForm/BusinessCardFormState.d.ts +8 -0
- package/mobile/bundle/components/ApplicationForm/CreditFormState.d.ts +13 -0
- package/mobile/bundle/components/ApplicationForm/CreditParameters.d.ts +3 -3
- package/mobile/bundle/components/ApplicationForm/DepositFormState.d.ts +4 -0
- package/mobile/bundle/components/ApplicationForm/InputControl.d.ts +4 -5
- package/mobile/bundle/components/ApplicationForm/PhoneInputControl.d.ts +2 -0
- package/mobile/bundle/components/ApplicationForm/ResponseNotification.d.ts +1 -1
- package/mobile/bundle/components/ApplicationForm/SelectControl.d.ts +2 -9
- package/mobile/bundle/components/ApplicationForm/WedFormState.d.ts +10 -0
- package/mobile/bundle/components/ApplicationForm/models.d.ts +0 -6
- package/mobile/bundle/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +3 -10
- package/mobile/bundle/components/ApplicationForm/renderAcquiringRegion.d.ts +6 -9
- package/mobile/bundle/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +3 -10
- package/mobile/bundle/components/ApplicationForm/renderCreditDataOrganization.d.ts +3 -12
- package/mobile/bundle/components/ApplicationForm/renderCreditParameters.d.ts +3 -9
- package/mobile/bundle/components/ApplicationForm/renderQuestionsInterested.d.ts +3 -11
- package/mobile/bundle/components/ApplicationForm/renderRegion.d.ts +6 -8
- package/mobile/bundle/components/ApplicationForm/renderRegionDepartment.d.ts +6 -9
- package/mobile/bundle/components/ApplicationForm/renderSlideCheckboxes.d.ts +3 -9
- package/mobile/bundle/components/ApplicationForm/renderWedDataOrganization.d.ts +3 -10
- package/mobile/bundle/components/ApplicationForm/validators.d.ts +4 -0
- package/mobile/bundle/components/Filtration/renderFormItem.d.ts +2 -2
- package/mobile/bundle/components/TextBlock/TextBlockContent.d.ts +1 -2
- package/mobile/bundle/hooks/useForm.d.ts +13 -12
- package/mobile/bundle/ui-kit/Checkbox/CheckboxProps.d.ts +2 -2
- package/mobile/bundle/ui-kit/CookiePopup/CookiePopup.d.ts +8 -0
- package/mobile/bundle/ui-kit/Dialog/useDialogProps.d.ts +1 -1
- package/mobile/bundle/ui-kit/Input/InputProps.d.ts +4 -2
- package/mobile/bundle/ui-kit/LinkWrapper/LinkWrapper.d.ts +1 -0
- package/mobile/bundle/ui-kit/PhoneInput/PhoneInput.d.ts +2 -0
- package/mobile/bundle/ui-kit/PhoneInput/normalizePhone.d.ts +1 -0
- package/mobile/bundle/ui-kit/Select/Select.d.ts +6 -7
- package/mobile/bundle/validation/and.d.ts +2 -0
- package/mobile/bundle/validation/objectValidator.d.ts +2 -0
- package/mobile/bundle/validation/pattern.d.ts +1 -0
- package/mobile/bundle/validation/required.d.ts +1 -0
- package/mobile/bundle/validation/validator.d.ts +10 -0
- package/mobile/bundle/validation/withValidator.d.ts +10 -0
- package/mobile/dist/components/ApplicationForm/AcquiringFormState.d.ts +11 -0
- package/mobile/dist/components/ApplicationForm/AcquiringFormState.js +2 -0
- package/mobile/dist/components/ApplicationForm/AcquiringFormState.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +4 -3
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.d.ts +1 -11
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +28 -48
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +1 -8
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +24 -32
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.d.ts +1 -13
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +28 -48
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.d.ts +1 -5
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +21 -23
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.d.ts +1 -11
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +22 -37
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
- package/mobile/dist/components/ApplicationForm/BusinessCardFormState.d.ts +8 -0
- package/mobile/dist/components/ApplicationForm/BusinessCardFormState.js +2 -0
- package/mobile/dist/components/ApplicationForm/BusinessCardFormState.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/CreditFormState.d.ts +13 -0
- package/mobile/dist/components/ApplicationForm/CreditFormState.js +2 -0
- package/mobile/dist/components/ApplicationForm/CreditFormState.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/CreditParameters.d.ts +3 -3
- package/mobile/dist/components/ApplicationForm/CreditParameters.js +5 -5
- package/mobile/dist/components/ApplicationForm/CreditParameters.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/DepositFormState.d.ts +4 -0
- package/mobile/dist/components/ApplicationForm/DepositFormState.js +2 -0
- package/mobile/dist/components/ApplicationForm/DepositFormState.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/InputControl.d.ts +4 -5
- package/mobile/dist/components/ApplicationForm/InputControl.js +1 -3
- package/mobile/dist/components/ApplicationForm/InputControl.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/PhoneInputControl.d.ts +2 -0
- package/mobile/dist/components/ApplicationForm/PhoneInputControl.js +8 -0
- package/mobile/dist/components/ApplicationForm/PhoneInputControl.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/ResponseNotification.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/ResponseNotification.js +4 -4
- package/mobile/dist/components/ApplicationForm/SelectControl.d.ts +2 -9
- package/mobile/dist/components/ApplicationForm/SelectControl.js +1 -7
- package/mobile/dist/components/ApplicationForm/SelectControl.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/WedFormState.d.ts +10 -0
- package/mobile/dist/components/ApplicationForm/WedFormState.js +2 -0
- package/mobile/dist/components/ApplicationForm/WedFormState.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/models.d.ts +0 -6
- package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +3 -10
- package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +4 -2
- package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.d.ts +6 -9
- package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js +3 -2
- package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +3 -10
- package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +4 -2
- package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.d.ts +3 -12
- package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js +4 -2
- package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.d.ts +3 -9
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.js +3 -16
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.d.ts +3 -11
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js +4 -1
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderRegion.d.ts +6 -8
- package/mobile/dist/components/ApplicationForm/renderRegion.js +3 -2
- package/mobile/dist/components/ApplicationForm/renderRegion.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.d.ts +6 -9
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js +6 -2
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.d.ts +3 -9
- package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderSubmitButton.js +2 -1
- package/mobile/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.d.ts +3 -10
- package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js +4 -2
- package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/validators.d.ts +4 -0
- package/mobile/dist/components/ApplicationForm/validators.js +11 -0
- package/mobile/dist/components/ApplicationForm/validators.js.map +1 -0
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/dist/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/dist/components/Blocks.js +5 -1
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/Bonus/Bonus.js +1 -1
- package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BusinessBlock/BusinessBlock.js +1 -1
- package/mobile/dist/components/BusinessBlock/BusinessBlock.js.map +1 -1
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
- 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/CardTransfer/CardTransfer.js +1 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/dist/components/Carousel/Carousel.js +1 -1
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/Carousel/CarouselScrollButtons.js +1 -1
- package/mobile/dist/components/Carousel/CarouselScrollButtons.js.map +1 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js +1 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js +2 -2
- package/mobile/dist/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -1
- package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
- package/mobile/dist/components/ContactsBlock/ContactsBlock.js +1 -1
- package/mobile/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js +2 -1
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/mobile/dist/components/Filtration/Filtration.js +3 -2
- package/mobile/dist/components/Filtration/Filtration.js.map +1 -1
- package/mobile/dist/components/Filtration/renderFormItem.d.ts +2 -2
- package/mobile/dist/components/Filtration/renderFormItem.js +4 -4
- package/mobile/dist/components/Filtration/renderFormItem.js.map +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriod.js +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/dist/components/Headline/Headline.js +1 -1
- package/mobile/dist/components/Headline/Headline.js.map +1 -1
- package/mobile/dist/components/HorizontalLayout/HorizontalLayout.js +1 -1
- package/mobile/dist/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.js +1 -1
- package/mobile/dist/components/SafeDepositRental/WrapperSelect.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/useGetRegions.js +2 -1
- package/mobile/dist/components/SafeDepositRental/useGetRegions.js.map +1 -1
- package/mobile/dist/components/TextBlock/TextBlock.js +14 -9
- package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/dist/components/TextBlock/TextBlockContent.d.ts +1 -2
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js +1 -1
- package/mobile/dist/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/dist/hooks/useForm.d.ts +13 -12
- package/mobile/dist/hooks/useForm.js +31 -8
- package/mobile/dist/hooks/useForm.js.map +1 -1
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js +9 -4
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/mobile/dist/ui-kit/Checkbox/CheckboxProps.d.ts +2 -2
- package/mobile/dist/ui-kit/CookiePopup/CookiePopup.d.ts +8 -0
- package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js +22 -0
- package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -0
- package/mobile/dist/ui-kit/CurrencyInput/CurrencyInput.js +8 -14
- package/mobile/dist/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
- package/mobile/dist/ui-kit/Dialog/CloseButton.js +1 -1
- package/mobile/dist/ui-kit/Dialog/CloseButton.js.map +1 -1
- package/mobile/dist/ui-kit/Dialog/Dialog.js +1 -1
- package/mobile/dist/ui-kit/Dialog/Dialog.js.map +1 -1
- package/mobile/dist/ui-kit/Dialog/useDialogProps.d.ts +1 -1
- package/mobile/dist/ui-kit/Dialog/useDialogProps.js +2 -2
- package/mobile/dist/ui-kit/Dialog/useDialogProps.js.map +1 -1
- package/mobile/dist/ui-kit/Input/Input.js +4 -11
- package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
- package/mobile/dist/ui-kit/Input/InputProps.d.ts +4 -2
- package/mobile/dist/ui-kit/LinkWrapper/LinkWrapper.d.ts +1 -0
- package/mobile/dist/ui-kit/LinkWrapper/LinkWrapper.js +2 -2
- package/mobile/dist/ui-kit/LinkWrapper/LinkWrapper.js.map +1 -1
- package/mobile/dist/ui-kit/PhoneInput/PhoneInput.d.ts +2 -0
- package/mobile/dist/ui-kit/PhoneInput/PhoneInput.js +12 -0
- package/mobile/dist/ui-kit/PhoneInput/PhoneInput.js.map +1 -0
- package/mobile/dist/ui-kit/PhoneInput/normalizePhone.d.ts +1 -0
- package/mobile/dist/ui-kit/PhoneInput/normalizePhone.js +17 -0
- package/mobile/dist/ui-kit/PhoneInput/normalizePhone.js.map +1 -0
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +1 -1
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/mobile/dist/ui-kit/Select/Select.d.ts +6 -7
- package/mobile/dist/ui-kit/Select/Select.js +16 -25
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/dist/ui-kit/SlideCheckbox/SlideCheckbox.js +2 -1
- package/mobile/dist/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -1
- package/mobile/dist/validation/and.d.ts +2 -0
- package/mobile/dist/validation/and.js +5 -0
- package/mobile/dist/validation/and.js.map +1 -0
- package/mobile/dist/validation/objectValidator.d.ts +2 -0
- package/mobile/dist/validation/objectValidator.js +7 -0
- package/mobile/dist/validation/objectValidator.js.map +1 -0
- package/mobile/dist/validation/pattern.d.ts +1 -0
- package/mobile/dist/validation/pattern.js +6 -0
- package/mobile/dist/validation/pattern.js.map +1 -0
- package/mobile/dist/validation/required.d.ts +1 -0
- package/mobile/dist/validation/required.js +5 -0
- package/mobile/dist/validation/required.js.map +1 -0
- package/mobile/dist/validation/validator.d.ts +10 -0
- package/mobile/dist/validation/validator.js +9 -0
- package/mobile/dist/validation/validator.js.map +1 -0
- package/mobile/dist/validation/withValidator.d.ts +10 -0
- package/mobile/dist/validation/withValidator.js +13 -0
- package/mobile/dist/validation/withValidator.js.map +1 -0
- package/mobile/lib/common.css +1 -0
- package/mobile/lib/components/ApplicationForm/AcquiringFormState.d.ts +11 -0
- package/mobile/lib/components/ApplicationForm/AcquiringFormState.js +2 -0
- package/mobile/lib/components/ApplicationForm/AcquiringFormState.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +4 -3
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.d.ts +1 -11
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +28 -48
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.d.ts +1 -8
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +24 -32
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.d.ts +1 -13
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +28 -48
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.d.ts +1 -5
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +21 -23
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.d.ts +1 -11
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +22 -37
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormsProps.d.ts +2 -2
- package/mobile/lib/components/ApplicationForm/BusinessCardFormState.d.ts +8 -0
- package/mobile/lib/components/ApplicationForm/BusinessCardFormState.js +2 -0
- package/mobile/lib/components/ApplicationForm/BusinessCardFormState.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/CreditFormState.d.ts +13 -0
- package/mobile/lib/components/ApplicationForm/CreditFormState.js +2 -0
- package/mobile/lib/components/ApplicationForm/CreditFormState.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/CreditParameters.d.ts +3 -3
- package/mobile/lib/components/ApplicationForm/CreditParameters.js +5 -5
- package/mobile/lib/components/ApplicationForm/CreditParameters.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/DepositFormState.d.ts +4 -0
- package/mobile/lib/components/ApplicationForm/DepositFormState.js +2 -0
- package/mobile/lib/components/ApplicationForm/DepositFormState.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/InputControl.d.ts +4 -5
- package/mobile/lib/components/ApplicationForm/InputControl.js +1 -3
- package/mobile/lib/components/ApplicationForm/InputControl.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/PhoneInputControl.d.ts +2 -0
- package/mobile/lib/components/ApplicationForm/PhoneInputControl.js +6 -0
- package/mobile/lib/components/ApplicationForm/PhoneInputControl.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/ResponseNotification.d.ts +1 -1
- package/mobile/lib/components/ApplicationForm/ResponseNotification.js +4 -4
- package/mobile/lib/components/ApplicationForm/SelectControl.d.ts +2 -9
- package/mobile/lib/components/ApplicationForm/SelectControl.js +1 -7
- package/mobile/lib/components/ApplicationForm/SelectControl.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/WedFormState.d.ts +10 -0
- package/mobile/lib/components/ApplicationForm/WedFormState.js +2 -0
- package/mobile/lib/components/ApplicationForm/WedFormState.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/models.d.ts +0 -6
- package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +3 -10
- package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +4 -2
- package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.d.ts +6 -9
- package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js +3 -2
- package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +3 -10
- package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +4 -2
- package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.d.ts +3 -12
- package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js +4 -2
- package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.d.ts +3 -9
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.js +4 -17
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.d.ts +3 -11
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js +4 -1
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderRegion.d.ts +6 -8
- package/mobile/lib/components/ApplicationForm/renderRegion.js +3 -2
- package/mobile/lib/components/ApplicationForm/renderRegion.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.d.ts +6 -9
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js +6 -2
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.d.ts +3 -9
- package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderSubmitButton.js +2 -1
- package/mobile/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.d.ts +3 -10
- package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js +4 -2
- package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/validators.d.ts +4 -0
- package/mobile/lib/components/ApplicationForm/validators.js +9 -0
- package/mobile/lib/components/ApplicationForm/validators.js.map +1 -0
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js +1 -1
- package/mobile/lib/components/BenefitsBlock/BenefitsBlock.js.map +1 -1
- package/mobile/lib/components/Blocks.js +5 -1
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/Bonus/Bonus.js +1 -1
- package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BusinessBlock/BusinessBlock.js +1 -1
- package/mobile/lib/components/BusinessBlock/BusinessBlock.js.map +1 -1
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +1 -1
- 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/CardTransfer/CardTransfer.js +1 -1
- package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/lib/components/Carousel/Carousel.js +1 -1
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/Carousel/CarouselScrollButtons.js +1 -1
- package/mobile/lib/components/Carousel/CarouselScrollButtons.js.map +1 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js +1 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js +2 -2
- package/mobile/lib/components/CarouselProductCard/CarouselProductCard.js.map +1 -1
- package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -1
- package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
- package/mobile/lib/components/ContactsBlock/ContactsBlock.js +1 -1
- package/mobile/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js +2 -1
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/mobile/lib/components/Filtration/Filtration.js +3 -2
- package/mobile/lib/components/Filtration/Filtration.js.map +1 -1
- package/mobile/lib/components/Filtration/renderFormItem.d.ts +2 -2
- package/mobile/lib/components/Filtration/renderFormItem.js +4 -4
- package/mobile/lib/components/Filtration/renderFormItem.js.map +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriod.js +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/lib/components/Headline/Headline.js +1 -1
- package/mobile/lib/components/Headline/Headline.js.map +1 -1
- package/mobile/lib/components/HorizontalLayout/HorizontalLayout.js +1 -1
- package/mobile/lib/components/HorizontalLayout/HorizontalLayout.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.js +1 -1
- package/mobile/lib/components/SafeDepositRental/WrapperSelect.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/useGetRegions.js +2 -1
- package/mobile/lib/components/SafeDepositRental/useGetRegions.js.map +1 -1
- package/mobile/lib/components/TextBlock/TextBlock.js +14 -9
- package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/lib/components/TextBlock/TextBlockContent.d.ts +1 -2
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js +1 -1
- package/mobile/lib/components/VerticalLayout/VerticalLayout.js.map +1 -1
- package/mobile/lib/hooks/useForm.d.ts +13 -12
- package/mobile/lib/hooks/useForm.js +31 -8
- package/mobile/lib/hooks/useForm.js.map +1 -1
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js +9 -4
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js.map +1 -1
- package/mobile/lib/ui-kit/Checkbox/CheckboxProps.d.ts +2 -2
- package/mobile/lib/ui-kit/CookiePopup/CookiePopup.d.ts +8 -0
- package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js +20 -0
- package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -0
- package/mobile/lib/ui-kit/CurrencyInput/CurrencyInput.js +8 -14
- package/mobile/lib/ui-kit/CurrencyInput/CurrencyInput.js.map +1 -1
- package/mobile/lib/ui-kit/Dialog/CloseButton.js +1 -1
- package/mobile/lib/ui-kit/Dialog/CloseButton.js.map +1 -1
- package/mobile/lib/ui-kit/Dialog/Dialog.js +1 -1
- package/mobile/lib/ui-kit/Dialog/Dialog.js.map +1 -1
- package/mobile/lib/ui-kit/Dialog/useDialogProps.d.ts +1 -1
- package/mobile/lib/ui-kit/Dialog/useDialogProps.js +2 -2
- package/mobile/lib/ui-kit/Dialog/useDialogProps.js.map +1 -1
- package/mobile/lib/ui-kit/Input/Input.js +4 -11
- package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
- package/mobile/lib/ui-kit/Input/InputProps.d.ts +4 -2
- package/mobile/lib/ui-kit/LinkWrapper/LinkWrapper.d.ts +1 -0
- package/mobile/lib/ui-kit/LinkWrapper/LinkWrapper.js +2 -2
- package/mobile/lib/ui-kit/LinkWrapper/LinkWrapper.js.map +1 -1
- package/mobile/lib/ui-kit/PhoneInput/PhoneInput.d.ts +2 -0
- package/mobile/lib/ui-kit/PhoneInput/PhoneInput.js +10 -0
- package/mobile/lib/ui-kit/PhoneInput/PhoneInput.js.map +1 -0
- package/mobile/lib/ui-kit/PhoneInput/normalizePhone.d.ts +1 -0
- package/mobile/lib/ui-kit/PhoneInput/normalizePhone.js +14 -0
- package/mobile/lib/ui-kit/PhoneInput/normalizePhone.js.map +1 -0
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +1 -1
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/mobile/lib/ui-kit/Select/Select.d.ts +6 -7
- package/mobile/lib/ui-kit/Select/Select.js +17 -26
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/ui-kit/SlideCheckbox/SlideCheckbox.js +2 -1
- package/mobile/lib/ui-kit/SlideCheckbox/SlideCheckbox.js.map +1 -1
- package/mobile/lib/validation/and.d.ts +2 -0
- package/mobile/lib/validation/and.js +2 -0
- package/mobile/lib/validation/and.js.map +1 -0
- package/mobile/lib/validation/objectValidator.d.ts +2 -0
- package/mobile/lib/validation/objectValidator.js +4 -0
- package/mobile/lib/validation/objectValidator.js.map +1 -0
- package/mobile/lib/validation/pattern.d.ts +1 -0
- package/mobile/lib/validation/pattern.js +3 -0
- package/mobile/lib/validation/pattern.js.map +1 -0
- package/mobile/lib/validation/required.d.ts +1 -0
- package/mobile/lib/validation/required.js +3 -0
- package/mobile/lib/validation/required.js.map +1 -0
- package/mobile/lib/validation/validator.d.ts +10 -0
- package/mobile/lib/validation/validator.js +4 -0
- package/mobile/lib/validation/validator.js.map +1 -0
- package/mobile/lib/validation/withValidator.d.ts +10 -0
- package/mobile/lib/validation/withValidator.js +10 -0
- package/mobile/lib/validation/withValidator.js.map +1 -0
- package/mobile/src/components/ApplicationForm/AcquiringFormState.ts +12 -0
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +6 -5
- package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +43 -71
- package/mobile/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +37 -51
- package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +49 -84
- package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +41 -67
- package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +40 -64
- package/mobile/src/components/ApplicationForm/ApplicationFormsProps.ts +2 -2
- package/mobile/src/components/ApplicationForm/BusinessCardFormState.ts +9 -0
- package/mobile/src/components/ApplicationForm/CreditFormState.ts +14 -0
- package/mobile/src/components/ApplicationForm/CreditParameters.ts +5 -5
- package/mobile/src/components/ApplicationForm/DepositFormState.ts +4 -0
- package/mobile/src/components/ApplicationForm/InputControl.tsx +21 -21
- package/mobile/src/components/ApplicationForm/PhoneInputControl.tsx +26 -0
- package/mobile/src/components/ApplicationForm/ResponseNotification.tsx +7 -7
- package/mobile/src/components/ApplicationForm/SelectControl.tsx +14 -48
- package/mobile/src/components/ApplicationForm/WedFormState.ts +10 -0
- package/mobile/src/components/ApplicationForm/models.ts +0 -8
- package/mobile/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +11 -36
- package/mobile/src/components/ApplicationForm/renderAcquiringRegion.tsx +12 -33
- package/mobile/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +13 -36
- package/mobile/src/components/ApplicationForm/renderCreditDataOrganization.tsx +13 -44
- package/mobile/src/components/ApplicationForm/renderCreditParameters.tsx +27 -30
- package/mobile/src/components/ApplicationForm/renderQuestionsInterested.tsx +21 -40
- package/mobile/src/components/ApplicationForm/renderRegion.tsx +10 -22
- package/mobile/src/components/ApplicationForm/renderRegionDepartment.tsx +15 -32
- package/mobile/src/components/ApplicationForm/renderSlideCheckboxes.tsx +5 -23
- package/mobile/src/components/ApplicationForm/renderSubmitButton.tsx +2 -1
- package/mobile/src/components/ApplicationForm/renderWedDataOrganization.tsx +11 -36
- package/mobile/src/components/ApplicationForm/validators.ts +17 -0
- package/mobile/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/mobile/src/components/Blocks.ts +5 -1
- package/mobile/src/components/Bonus/Bonus.tsx +1 -1
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -1
- package/mobile/src/components/BusinessBlock/BusinessBlock.tsx +1 -1
- package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +3 -3
- package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +4 -4
- package/mobile/src/components/CardTransfer/CardTransfer.tsx +1 -1
- package/mobile/src/components/Carousel/Carousel.tsx +1 -1
- package/mobile/src/components/Carousel/CarouselScrollButtons.tsx +7 -3
- package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +1 -1
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.example.json +2 -1
- package/mobile/src/components/CarouselProductCard/CarouselProductCard.tsx +2 -2
- package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCard.tsx +1 -1
- package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
- package/mobile/src/components/ContentPage/ContentPage.tsx +5 -0
- package/mobile/src/components/ExchangeRateTile/renderInput.tsx +3 -3
- package/mobile/src/components/Filtration/Filtration.tsx +6 -4
- package/mobile/src/components/Filtration/renderFormItem.tsx +5 -5
- package/mobile/src/components/GracePeriod/GracePeriod.tsx +1 -1
- package/mobile/src/components/Headline/Headline.tsx +1 -1
- package/mobile/src/components/HorizontalLayout/HorizontalLayout.tsx +1 -1
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +1 -1
- package/mobile/src/components/SafeDepositRental/WrapperSelect.tsx +2 -2
- package/mobile/src/components/SafeDepositRental/useGetRegions.ts +3 -1
- package/mobile/src/components/TariffsTable/TariffsTable.ui.json +3 -0
- package/mobile/src/components/TextBlock/TextBlock.tsx +56 -22
- package/mobile/src/components/TextBlock/TextBlockContent.ts +1 -3
- package/mobile/src/components/VerticalLayout/VerticalLayout.tsx +1 -1
- package/mobile/src/hooks/useForm.ts +61 -13
- package/mobile/src/ui-kit/Checkbox/Checkbox.tsx +39 -25
- package/mobile/src/ui-kit/Checkbox/CheckboxProps.ts +2 -2
- package/mobile/src/ui-kit/CookiePopup/CookiePopup.tsx +64 -0
- package/mobile/src/ui-kit/CurrencyInput/CurrencyInput.tsx +8 -16
- package/mobile/src/ui-kit/Dialog/CloseButton.tsx +1 -1
- package/mobile/src/ui-kit/Dialog/Dialog.tsx +1 -1
- package/mobile/src/ui-kit/Dialog/useDialogProps.ts +2 -1
- package/mobile/src/ui-kit/Input/Input.tsx +11 -19
- package/mobile/src/ui-kit/Input/InputProps.ts +4 -2
- package/mobile/src/ui-kit/LinkWrapper/LinkWrapper.tsx +13 -10
- package/mobile/src/ui-kit/PhoneInput/PhoneInput.tsx +19 -0
- package/mobile/src/ui-kit/PhoneInput/normalizePhone.ts +23 -0
- package/mobile/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +1 -1
- package/mobile/src/ui-kit/Select/Select.tsx +48 -55
- package/mobile/src/ui-kit/SlideCheckbox/SlideCheckbox.tsx +13 -12
- package/mobile/src/validation/and.ts +6 -0
- package/mobile/src/validation/objectValidator.ts +10 -0
- package/mobile/src/validation/pattern.ts +4 -0
- package/mobile/src/validation/required.ts +3 -0
- package/mobile/src/validation/validator.ts +21 -0
- package/mobile/src/validation/withValidator.ts +21 -0
- package/package.json +2 -2
- package/src/components/ApplicationForm/AcquiringFormState.ts +12 -0
- package/src/components/ApplicationForm/ApplicationForm.tsx +6 -5
- package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +43 -71
- package/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +37 -51
- package/src/components/ApplicationForm/ApplicationFormCredit.tsx +49 -84
- package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +41 -67
- package/src/components/ApplicationForm/ApplicationFormWed.tsx +40 -64
- package/src/components/ApplicationForm/ApplicationFormsProps.ts +2 -2
- package/src/components/ApplicationForm/BusinessCardFormState.ts +9 -0
- package/src/components/ApplicationForm/CreditFormState.ts +14 -0
- package/src/components/ApplicationForm/CreditParameters.ts +5 -5
- package/src/components/ApplicationForm/DepositFormState.ts +4 -0
- package/src/components/ApplicationForm/InputControl.tsx +21 -21
- package/src/components/ApplicationForm/PhoneInputControl.tsx +26 -0
- package/src/components/ApplicationForm/ResponseNotification.tsx +7 -7
- package/src/components/ApplicationForm/SelectControl.tsx +14 -48
- package/src/components/ApplicationForm/WedFormState.ts +10 -0
- package/src/components/ApplicationForm/models.ts +0 -8
- package/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +11 -36
- package/src/components/ApplicationForm/renderAcquiringRegion.tsx +12 -33
- package/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +13 -36
- package/src/components/ApplicationForm/renderCreditDataOrganization.tsx +13 -44
- package/src/components/ApplicationForm/renderCreditParameters.tsx +27 -30
- package/src/components/ApplicationForm/renderQuestionsInterested.tsx +21 -40
- package/src/components/ApplicationForm/renderRegion.tsx +10 -22
- package/src/components/ApplicationForm/renderRegionDepartment.tsx +15 -32
- package/src/components/ApplicationForm/renderSlideCheckboxes.tsx +5 -23
- package/src/components/ApplicationForm/renderSubmitButton.tsx +2 -1
- package/src/components/ApplicationForm/renderWedDataOrganization.tsx +11 -36
- package/src/components/ApplicationForm/validators.ts +17 -0
- package/src/components/BenefitsBlock/BenefitsBlock.tsx +1 -1
- package/src/components/Blocks.mobile.ts +5 -1
- package/src/components/Bonus/Bonus.tsx +1 -1
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +1 -1
- package/src/components/BusinessBlock/BusinessBlock.tsx +1 -1
- package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +3 -3
- package/src/components/Calculator/CreditCalculatorForm.tsx +4 -4
- package/src/components/CardTransfer/CardTransfer.tsx +1 -1
- package/src/components/Carousel/Carousel.fixture.tsx +1 -1
- package/src/components/Carousel/Carousel.tsx +1 -1
- package/src/components/Carousel/CarouselScrollButtons.tsx +7 -3
- package/src/components/CarouselLinks/CarouselLinks.tsx +1 -1
- package/src/components/CarouselProductCard/CarouselProductCard.example.json +2 -1
- package/src/components/CarouselProductCard/CarouselProductCard.fixture.tsx +1 -0
- package/src/components/CarouselProductCard/CarouselProductCard.tsx +2 -2
- package/src/components/CarouselRichTextCard/CarouselRichTextCard.tsx +1 -1
- package/src/components/ContactsBlock/ContactsBlock.tsx +1 -1
- package/src/components/ContentPage/ContentPage.tsx +5 -0
- package/src/components/ExchangeRateTile/renderInput.tsx +3 -3
- package/src/components/Filtration/Filtration.tsx +6 -4
- package/src/components/Filtration/renderFormItem.tsx +5 -5
- package/src/components/GracePeriod/GracePeriod.tsx +1 -1
- package/src/components/Headline/Headline.tsx +1 -1
- package/src/components/HorizontalLayout/HorizontalLayout.tsx +1 -1
- package/src/components/ImgBlock/ImgBlock.fixture.mobile.tsx +21 -0
- package/src/components/LinkDocs/LinkDocs.mobile.tsx +1 -1
- package/src/components/LinkDocs/LinkDocs.tsx +1 -1
- package/src/components/MobileAppTile/MobileAppTile.tsx +1 -1
- package/src/components/ProductBlock/ProductBlock.tsx +5 -2
- package/src/components/RichTextBlock/RichTextBlock.fixture.mobile.tsx +51 -0
- package/src/components/SafeDepositRental/WrapperSelect.tsx +2 -2
- package/src/components/SafeDepositRental/useGetRegions.ts +3 -1
- package/src/components/TariffsTable/TariffsTable.tsx +1 -1
- package/src/components/TariffsTable/TariffsTable.ui.json +3 -0
- package/src/components/TextBlock/TextBlock.fixture.mobile.tsx +43 -50
- package/src/components/TextBlock/TextBlock.fixture.tsx +1 -1
- package/src/components/TextBlock/TextBlock.tsx +36 -12
- package/src/components/TextBlock/TextBlockContent.ts +1 -3
- package/src/components/VerticalLayout/VerticalLayout.fixture.mobile.tsx +90 -0
- package/src/components/VerticalLayout/VerticalLayout.tsx +1 -1
- package/src/hooks/useForm.ts +61 -13
- package/src/ui-kit/Checkbox/Checkbox.tsx +39 -25
- package/src/ui-kit/Checkbox/CheckboxProps.ts +2 -2
- package/src/ui-kit/CookiePopup/CookiePopup.tsx +64 -0
- package/src/ui-kit/CurrencyInput/CurrencyInput.tsx +8 -16
- package/src/ui-kit/Dialog/CloseButton.tsx +1 -1
- package/src/ui-kit/Dialog/Dialog.tsx +1 -1
- package/src/ui-kit/Dialog/useDialogProps.ts +2 -1
- package/src/ui-kit/Input/Input.tsx +11 -19
- package/src/ui-kit/Input/InputProps.ts +4 -2
- package/src/ui-kit/LinkWrapper/LinkWrapper.tsx +13 -10
- package/src/ui-kit/List/List.fixture.tsx +4 -4
- package/src/ui-kit/PhoneInput/PhoneInput.tsx +19 -0
- package/src/ui-kit/PhoneInput/normalizePhone.ts +23 -0
- package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +1 -1
- package/src/ui-kit/RichText/RichText.fixture.tsx +1 -1
- package/src/ui-kit/Select/Select.tsx +48 -55
- package/src/ui-kit/SlideCheckbox/SlideCheckbox.tsx +13 -12
- package/src/ui-kit/Tags/Tags.fixture.tsx +1 -1
- package/src/validation/and.ts +6 -0
- package/src/validation/objectValidator.ts +10 -0
- package/src/validation/pattern.ts +4 -0
- package/src/validation/required.ts +3 -0
- package/src/validation/validator.ts +21 -0
- package/src/validation/withValidator.ts +21 -0
- package/tailwind.config.cjs +4 -0
- package/bin/migration-scripts/0.9.3.js +0 -88
- package/bundle/components/ApplicationForm/renderInputRange.d.ts +0 -11
- package/bundle/components/ApplicationForm/useForm.d.ts +0 -14
- package/bundle/components/ApplicationForm/validate.d.ts +0 -1
- package/bundle/components/TextBlock/TextBlock.mobile.d.ts +0 -5
- package/dist/components/ApplicationForm/renderInputRange.d.ts +0 -11
- package/dist/components/ApplicationForm/renderInputRange.js +0 -8
- package/dist/components/ApplicationForm/renderInputRange.js.map +0 -1
- package/dist/components/ApplicationForm/useForm.d.ts +0 -14
- package/dist/components/ApplicationForm/useForm.js +0 -37
- package/dist/components/ApplicationForm/useForm.js.map +0 -1
- package/dist/components/ApplicationForm/validate.d.ts +0 -1
- package/dist/components/ApplicationForm/validate.js +0 -22
- package/dist/components/ApplicationForm/validate.js.map +0 -1
- package/dist/components/TextBlock/TextBlock.mobile.d.ts +0 -5
- package/dist/components/TextBlock/TextBlock.mobile.js +0 -16
- package/dist/components/TextBlock/TextBlock.mobile.js.map +0 -1
- package/lib/components/ApplicationForm/renderInputRange.d.ts +0 -11
- package/lib/components/ApplicationForm/renderInputRange.js +0 -5
- package/lib/components/ApplicationForm/renderInputRange.js.map +0 -1
- package/lib/components/ApplicationForm/useForm.d.ts +0 -14
- package/lib/components/ApplicationForm/useForm.js +0 -34
- package/lib/components/ApplicationForm/useForm.js.map +0 -1
- package/lib/components/ApplicationForm/validate.d.ts +0 -1
- package/lib/components/ApplicationForm/validate.js +0 -19
- package/lib/components/ApplicationForm/validate.js.map +0 -1
- package/lib/components/TextBlock/TextBlock.mobile.d.ts +0 -5
- package/lib/components/TextBlock/TextBlock.mobile.js +0 -14
- package/lib/components/TextBlock/TextBlock.mobile.js.map +0 -1
- package/mobile/bundle/components/ApplicationForm/renderInputRange.d.ts +0 -11
- package/mobile/bundle/components/ApplicationForm/useForm.d.ts +0 -14
- package/mobile/bundle/components/ApplicationForm/validate.d.ts +0 -1
- package/mobile/dist/components/ApplicationForm/renderInputRange.d.ts +0 -11
- package/mobile/dist/components/ApplicationForm/renderInputRange.js +0 -8
- package/mobile/dist/components/ApplicationForm/renderInputRange.js.map +0 -1
- package/mobile/dist/components/ApplicationForm/useForm.d.ts +0 -14
- package/mobile/dist/components/ApplicationForm/useForm.js +0 -37
- package/mobile/dist/components/ApplicationForm/useForm.js.map +0 -1
- package/mobile/dist/components/ApplicationForm/validate.d.ts +0 -1
- package/mobile/dist/components/ApplicationForm/validate.js +0 -22
- package/mobile/dist/components/ApplicationForm/validate.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/renderInputRange.d.ts +0 -11
- package/mobile/lib/components/ApplicationForm/renderInputRange.js +0 -5
- package/mobile/lib/components/ApplicationForm/renderInputRange.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/useForm.d.ts +0 -14
- package/mobile/lib/components/ApplicationForm/useForm.js +0 -34
- package/mobile/lib/components/ApplicationForm/useForm.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/validate.d.ts +0 -1
- package/mobile/lib/components/ApplicationForm/validate.js +0 -19
- package/mobile/lib/components/ApplicationForm/validate.js.map +0 -1
- package/mobile/src/components/ApplicationForm/renderInputRange.tsx +0 -20
- package/mobile/src/components/ApplicationForm/useForm.ts +0 -65
- package/mobile/src/components/ApplicationForm/validate.ts +0 -22
- package/src/components/ApplicationForm/renderInputRange.tsx +0 -20
- package/src/components/ApplicationForm/useForm.ts +0 -65
- package/src/components/ApplicationForm/validate.ts +0 -22
- package/src/components/TextBlock/TextBlock.mobile.tsx +0 -42
package/bundle/bundle.umd.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniBlocks={})}(this,(function(e){"use strict";let t;const n=e=>(...n)=>t[e](...n),l=n("useState"),a=n("useEffect"),r=n("useCallback"),i=n("useMemo"),s=n("useRef");const o={PROD_BRANCH:"master"},c=new class{_=o;setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH||o.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CHAT_BOT(){return this._.CHAT_BOT}get CDN(){return d(this._.CDN)}get BASE_PATH(){return d(this._.BASE_PATH)}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},d=e=>e&&!e.endsWith("/")?`${e}/`:e,m="likesToken";function h(){async function e(){try{const e=JSON.parse(globalThis.localStorage?.getItem(m)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:n}=await e.json();return globalThis.localStorage?.setItem(m,JSON.stringify({token:t,name:n})),{token:t,name:n}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n},body:JSON.stringify({node_ids:t})}),{likes:l}=await e.json();return l||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:n,name:l}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:l},body:JSON.stringify({node_id:t,user_name:l})}),{likes:a}=await e.json();return a||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:n,name:l}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:l},body:JSON.stringify({node_id:t,user_name:l})}),{likes:a}=await e.json();return a||0}catch(e){return console.error(e),0}}}}const u=(...e)=>globalThis._uni._jsx(...e),p=(...e)=>globalThis._uni._jsxs(...e),x=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:g(e)),t._tmpl},g=e=>{function t(t,n){const{children:l,...a}=t||{},r=n?.slots?.default,i=l||r&&r();return e(Object.assign(a,i&&{children:i}),n)}return t.inheritAttrs=!1,t};class b{subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]=(this.subscribers[e]||[]).concat(t);const n=this.subjectsStateMap[e];return n&&t(n),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){e in this.subjectsStateMap&&(this.subjectsStateMap[e]=t),this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}const f=new b;function v(e,{sensitivity:t,rootRef:n}={}){const l=s(null),r=i((()=>({threshold:N(t),root:n?.current})),[t,n?.current]);return a((()=>{if(!l.current)return;const t=new IntersectionObserver(e,r);return t.observe(l.current),()=>{t.disconnect()}}),[e,r]),l}function N(e=0){const t=Math.round(10*e);return new Array(t).fill(0).map(((e,n)=>Math.min(n/t)),1).concat(1)}const y=new b;const w=(...e)=>e.flatMap((e=>e)).filter(Boolean).join(" "),C={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white",gray:"bg-main-divider text-primary-text",transparent:"bg-transparent text-primary-text","":""},k=x((({className:e="",version:t="primary",isTheme:n=!0,block:i,tag:s="section",role:o,children:c})=>{const d=s,m=function(e){return v(r((t=>{if(!e||!t?.length)return;const n=t[t.length-1];y.fire("intersection",{block:e,intersection:n})}),[e]),{sensitivity:1})}(i),[h,p]=l(!1);return a((()=>f.subscribe("tab",(e=>{p(Boolean(e.label&&i?.labels?.length&&!i.labels.includes(e.label)))}))),[i]),u(d,{className:w(S(Boolean(t&&n)),C[t],h?"hidden":"",e),...t&&n?{"data-ver":t}:{},...i?.anchor?{id:i.anchor,ref:m}:{},role:o,children:c})})),S=e=>e?"group":"",I={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},T=x((({className:e="",headingType:t="h3",as:n="h3",title:l,children:a})=>u(n,{className:`font-sans m-0 ${I[t]} ${e}`,children:l||a}))),$=new Map;function B(e,t,{fallback:n}={}){const r=i((()=>R(e)),[e]),[s,o]=l(),[c,d]=l(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};a((()=>{if(!r.every((e=>null===e)))try{const e=t(...r);"then"in e?(e=>{e.then((e=>$.get(r)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...r]);const u=r[0],p=n&&"string"==typeof u&&n[u];return{data:!s&&p?p:s,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function R(e){return e?Array.isArray(e)?e:e instanceof Function?R(e()):[e]:[e]}async function M(e,t){try{return e?await j(e,t):null}catch(e){console.error(e)}return null}async function j(e,t){const n=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await n.json()}function _(){const{data:e}=B("/api/v1/regions",j);return e||[]}const V=(e="")=>({open:t=>f.fire("dialog",{type:"open",id:e,message:t}),close:()=>f.fire("dialog",{type:"close"})}),L=e=>Boolean(e?.includes(":")),z=(e,t)=>Boolean(e&&!L(e)&&(!t||"_self"===t)),P=e=>(e||"").replace(/\?.*/,"").replace(/\/$/,""),D=(...e)=>e.filter(Boolean).join("/").replace(/\/+/g,"/");var O=Object.freeze({__proto__:null,isURL:L,isLocalURL:z,isHash:e=>Boolean(e?.startsWith("#")),withoutQuery:P,joinPath:D});const A=e=>(t,n=c.BASE_PATH)=>{if(!t||L(t)||E(t,c.CDN))return t;const l=t.startsWith("/");return D(E(t,n)?"":n,l?"/":e.pathname?.split("/").slice(0,-1).join("/"),t)},E=(e,t)=>t&&e&&e.startsWith(t),F=(e,t)=>F._impl(e,t);function U(){return U._impl()}function H(e={}){const{isRemote:t,basePath:n}=e,l=U(),{close:a}=V();return e=>({...e,href:t?e.href:A(l)(e.href,n),"aria-label":e.text,onClick:F(r(e),e)});function r({href:e,target:n,onClick:r}){return i=>{r&&r(i),e&&!t&&z(e,n)&&(a(),i?.preventDefault(),l.push(e))}}}F._impl=e=>e,F.setup=e=>{F._impl=e},U._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),U.setup=e=>{U._impl=e};const X={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:"",transparent:"",gray:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active","":""},W="bg-main-divider text-main-disabled",K={primary:W,secondary:W,white:W,link:"",transparent:"",gray:W,"":""},G="text-center font-sans select-none",J={primary:"group-hover/btn:brightness-0 group-hover/btn:invert",secondary:"group-hover/btn:brightness-0 group-hover/btn:invert",white:"group-hover/btn:brightness-0 group-hover/btn:invert",link:"",transparent:"",gray:"group-hover/btn:brightness-0 group-hover/btn:invert","":""},Y=x((e=>{const{text:t,aboveText:n,appendLeft:l,appendRight:a,version:r="primary"}=e;return p("div",{className:w(q(e),"flex gap-2"),children:[l?u("div",{className:J[r],children:l}):null,Z(e)?p("div",{children:[n?u("div",{className:"text-xs-light text-left",children:n}):null,u("div",{className:"text-left "+(n?"text-s -mt-0.5":"text-l"),children:t})]}):null,a?u("div",{className:J[r],children:a}):null]})})),q=e=>{const{version:t,aboveText:n,rounded:l}=e;if("link"===t)return"";const a=""+(n?"py-2.5 px-7":"py-4 px-4");return["group/btn items-center justify-center",Z(e)?a:"h-12 w-12",l?"rounded-full":""].join(" ")},Z=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),Q=({className:e,rounded:t,version:n})=>["inline-block",G,n?K[n]:"",t?"rounded-full":"rounded-md",e].join(" "),ee=({className:e,rounded:t,version:n})=>[G,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border h-fit",n?X[n]:"",t?"rounded-full":"rounded-md",e].join(" "),te=x((({disabled:e,children:t,...n})=>{const l=H()(n),a=t??u(Y,{...l});return u(e?le:ne,{...l,children:a})})),ne=x((({className:e="",href:t,rel:n,target:l,ariaLabel:a,version:r,rounded:i,onClick:s,children:o})=>u("a",{className:ee({className:e,version:r,rounded:i}),href:t,rel:n,target:l,"aria-label":a,role:t?"link":"button",onClick:s,children:o}))),le=x((({className:e,ariaLabel:t,version:n,rounded:l,children:a})=>u("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:Q({className:e,rounded:l,version:n}),children:a}))),ae=x((({children:e,...t})=>u("p",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),re=x((({children:e,...t})=>u("span",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),ie=x((({link:e})=>p(ae,{size:"text-s-light",color:"text-secondary-text",children:[u(re,{children:"Нажимая кнопку, вы подтверждаете согласие с "}),e?u(te,{href:e.href,ariaLabel:"условия передачи данных",target:e.target,className:"text-primary-main",children:u(re,{children:e.text})}):null]}))),se=x((({className:e="",inputClassName:t="",id:n,name:l,type:a="text",label:i,value:s="",valid:o=!0,children:c,onChange:d,onBlur:m,...h})=>{const x=r((e=>{const t=e.target.validity.valid?e.target.value:s;d(t)}),[d]),g=r((e=>{if(!m)return;const t=e.target.validity.valid?e.target.value:s;m(t)}),[m]),b=c?"pr-8":"",f=o?"border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text":"border-error";return p("div",{className:`relative ${e}`,children:[i?u("label",{className:"block text-m-light mb-2",children:i}):null,u("input",{className:`w-full border rounded-md text-primary-text outline-none p-4 ${b} ${f} ${t}`,id:n,name:l||n,type:a,value:s,onChange:x,onBlur:g,...h}),c]})})),oe=x((({className:e,label:t,value:n,error:l,onChange:a,onBlur:r})=>p("div",{className:e,children:[u(se,{type:"text","aria-label":t,label:t,valid:Boolean(!l),value:n,onChange:a,onBlur:r}),u("div",{className:"h-2",children:u(re,{size:"text-xs-light",color:"text-error",children:l||null})})]}))),ce="Некорректно заполненное поле",de=(e,t)=>{switch(e){case"name":return he(t);case"inn":return ue(t);default:return me(t)}},me=e=>e?"":ce,he=e=>e.length>1?"":ce,ue=e=>10===e.length||12===e.length?"":ce,pe=({fullName:e,inn:t,name:n,phone:l,handleChange:a,errors:r,handleChangeErrors:i})=>p("div",{className:"flex justify-between gap-5 mb-5",children:[p("div",{className:"w-1/2",children:[u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Наименование организации",error:r.fullName,value:e,onChange:e=>a({fullName:e}),onBlur:e=>i({fullName:de("fullName",e)})}),u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Контактное лицо",error:r.name,value:n,onChange:e=>a({name:e}),onBlur:e=>i({name:de("name",e)})})]}),p("div",{className:"w-1/2",children:[u(oe,{className:"shrink-0 text-l w-full mb-3",label:"ИНН",error:r.inn,value:t,onChange:e=>a({inn:e}),onBlur:e=>i({inn:de("inn",e)})}),u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Телефон",error:r.phone,value:l,onChange:e=>a({phone:e}),onBlur:e=>i({phone:de("phone",e)})})]})]}),xe=[{name:"Торговый эквайринг"},{name:"Мобильный эквайринг"},{name:"Интернет-эквайринг"},{name:"QR-эквайринг (СБП)"},{name:"Все виды эквайринга"}];function ge(e){const t=s(null);return a((()=>{const n=n=>{t&&t.current&&n.target instanceof Node&&!t.current.contains(n.target)&&e()};return document.addEventListener("click",n),()=>{document.removeEventListener("click",n)}}),[e]),t}const be={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},fe=x((({className:e="",imageClassName:t="",name:n="",alt:l=`Иконка ${n}`,title:a=l,iconVersion:r="color",...i})=>{const s=U(),o=A(s)(D(c.CDN,"/icons",`${n}.svg`));return"normal"!==r?u(Ne,{className:e,children:p("svg",{className:w(ve(i.width),be[r],"white"===r?"invert":"",t),...i,"aria-hidden":"true",children:[a?u("title",{children:a}):null,l?u("desc",{children:l}):null,u("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]})}):(e.includes("h-")||(i.style={height:`${i.height}px`}),u("img",{className:e,src:o,alt:l,title:a,"aria-hidden":"true",...i}))})),ve=e=>e?"":"w-full h-full",Ne=x((({className:e,children:t})=>e?u("div",{className:e,children:t}):t)),ye=x((({className:e="",isBorder:t=!0,label:n,options:i=[],value:s,onChange:o,placeholder:c="",valid:d=!0,onValidate:m})=>{const[h,x]=l(i[0]||{key:"",text:""}),[g,b]=l(!1),f=ge(r((()=>b(!1)),[]));return a((()=>{x(s||{key:"",text:""})}),[s]),p("div",{className:`${e}`,ref:f,children:[n?u("div",{className:"mb-2",children:u(re,{size:"text-m",color:"text-primary-text",font:"font-light",children:n})}):null,p("div",{className:"relative "+(g?"z-20":"z-10"),children:[p("div",{className:`text-l flex justify-between items-center mb-0.5 text-primary-text cursor-pointer\n ${ke(t,d)}`,onClick:()=>b(!g),children:[u("p",{className:"p-4 pr-8 h-14 overflow-hidden text-ellipsis whitespace-nowrap",children:h?.text||c}),u(fe,{name:"ArrowUpIcon",width:"16",height:"16",className:"absolute right-3 "+(g?"":"rotate-180")})]}),i?.length?u("div",{className:`h-0 ${we(g)}`,children:u("div",{className:"bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:i.map(Ce((e=>{x(e),b(!1),o(e),m&&m(e.text)}),g,(e=>Boolean(e.key===h.key))))})}):null]})]})})),we=e=>e?"":"overflow-hidden",Ce=(e,t,n)=>(l,a)=>p("div",{onClick:()=>{e(l)},className:"flex px-4 py-3 cursor-pointer hover:bg-main-divider pr-11 relative",children:[u("span",{className:"min-h-6",children:l.text}),u(fe,{name:"DoneSimpleIcon",width:"16",height:"16",className:["absolute right-4 pt-0.5",n(l)&&t?"":"hidden"].join(" ")})]},String(a)),ke=(e,t)=>`\n ${e?"border rounded-md hover:border-primary-hover":""} ${t?" border-gray":"border-error"} `,Se=x((({data:e,fieldLabel:t,fieldValue:n,selected:l,placeholder:a="",setSelected:r,label:i,error:s,onValidate:o})=>{const c=e.filter(Boolean).map((e=>({key:e?.[n||t],text:e?.[t]}))),d=c.find((e=>e.key===l));return p("div",{children:[u(ye,{options:c,label:i,valid:Boolean(!s),placeholder:a||l,onChange:e=>r(e.key),value:d,onValidate:o}),u("div",{className:"h-2",children:u(re,{size:"text-xs-light",color:"text-error",children:s||null})})]})})),Ie=({acquiringType:e,regions:t,region:n,handleChange:l,errors:a,handleChangeErrors:r})=>p("div",{className:"flex justify-between gap-5 mb-7",children:[u("div",{className:"w-1/2",children:u(Se,{data:xe,fieldValue:"name",fieldLabel:"name",error:a.acquiringType,selected:e,setSelected:e=>l({acquiringType:e}),onValidate:e=>r({acquiringType:de("acquiringType",e)}),label:"Вид эквайринга",placeholder:"Выберите эквайринг"})}),u("div",{className:"w-1/2",children:u(Se,{data:t,fieldValue:"code",fieldLabel:"name",error:a.region,selected:n,setSelected:e=>l({region:e}),onValidate:e=>r({region:de("region",e)}),label:"Адрес",placeholder:"Выберите адрес"})})]}),Te=x((({value:e=!1,text:t,type:n="checkbox",onChange:l})=>p("div",{role:n,"aria-checked":e,className:"flex justify-start items-center w-full cursor-pointer mb-4",onClick:()=>l&&l(!e),children:[u("div",{className:"relative flex-shrink-0 duration-300 w-9 h-5 mr-3 rounded-2xl "+(e?"bg-primary-main":"bg-main-divider"),children:u("div",{className:"absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded-full "+(e?"left-[50%]":"left-[5%]")})}),u("div",{children:u(re,{size:"text-m",font:"font-light",color:"text-primary-text",children:t})})]}))),$e=({"onlineСheckout":e,posTerminal:t,handleChange:n})=>p("div",{className:"mb-5",children:[u(Te,{value:e,text:"Хочу купить онлайн-кассу",onChange:()=>n({"onlineСheckout":!e})}),u(Te,{value:t,text:"Хочу купить POS-терминал",onChange:()=>n({posTerminal:!t})})]}),Be=(e,t)=>{const n=ee({className:"text-white",version:e?.version});return u("button",{type:"submit",className:`p-4 ${n} ${t}`,children:e?.text?e.text:"Отправить заявку"})},Re=({initialFormState:e,errorsInitialState:t,handleSubmit:n})=>{const[a,i]=l(e),[s,o]=l(t||{}),c=r((e=>i((t=>({...t,...e})))),[]),d=r((e=>o((t=>({...t,...e})))),[]),m=r((async e=>{const t=[],l=Object.keys(a).filter((e=>Object.keys(s).includes(e))).reduce(((e,t)=>(e[t]=a[t],e)),{});for(const[e,n]of Object.entries(l)){const l=de(e,n);t.push(l),d({[e]:l})}t.some((e=>0!==e.length))||n&&await n(e)}),[a]);return{formState:a,handleChange:c,errors:s,handleChangeErrors:d,sendForm:m}},Me={acquiringType:"Торговый эквайринг",region:"",fullName:"",inn:"",name:"",phone:"","onlineСheckout":!1,posTerminal:!1},je={acquiringType:"",region:"",fullName:"",inn:"",name:"",phone:""},_e=x((e=>{const{button:t,link:n,handleSubmit:l}=e,{formState:a,errors:r,handleChange:i,handleChangeErrors:s,sendForm:o}=Re({initialFormState:Me,errorsInitialState:je,handleSubmit:l}),{acquiringType:c,region:d,fullName:m,inn:h,name:x,phone:g,"onlineСheckout":b,posTerminal:f}=a,v=_();return p("form",{onSubmit:e=>{e.preventDefault(),o({typeForm:"acqr",region:v.find((e=>e.code===d))?.name||"",partnerComments:`Вид эквайринга=${c}/Онлайн касса=${b}/POS-терминал=${f}`,fullName:m,inn:h,name:x,phone:g})},className:"container",children:[u(T,{headingType:"h6",title:"Вид эквайринга и регион",className:"text-center mb-4"}),Ie({acquiringType:c,regions:v,region:d,handleChange:i,errors:r,handleChangeErrors:s}),u(T,{headingType:"h6",title:"Данные организации",className:"text-center mb-4"}),pe({fullName:m,inn:h,name:x,phone:g,handleChange:i,errors:r,handleChangeErrors:s}),$e({"onlineСheckout":b,posTerminal:f,handleChange:i}),Be(t,"mb-4"),u(ie,{link:n})]})})),Ve=({name:e,phone:t,mail:n,inn:l,handleChange:a,errors:r,handleChangeErrors:i})=>p("div",{className:"flex justify-between gap-5",children:[p("div",{className:"w-1/2",children:[u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Контактное лицо",error:r.name,value:e,onChange:e=>a({name:e}),onBlur:e=>i({name:de("name",e)})}),u(oe,{className:"shrink-0 text-l w-full mb-3",label:"ИНН",error:r.inn,value:l,onChange:e=>a({inn:e}),onBlur:e=>i({inn:de("inn",e)})})]}),p("div",{className:"w-1/2",children:[u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Телефон",error:r.phone,value:t,onChange:e=>a({phone:e}),onBlur:e=>i({phone:de("phone",e)})}),u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Электронная почта",error:r.mail,value:n,onChange:e=>a({mail:e}),onBlur:e=>i({mail:de("mail",e)})})]})]}),Le=({regions:e,region:t,handleChange:n,errors:l,handleChangeErrors:a})=>u("div",{className:"flex justify-between gap-5 mb-5",children:u("div",{className:"w-full",children:u(Se,{data:e,fieldValue:"code",fieldLabel:"name",error:l.region,selected:t,setSelected:e=>n({region:e}),onValidate:e=>a({region:de("region",e)}),label:"Регион",placeholder:"Выберите регион"})})}),ze={region:"",name:"",phone:"",inn:"",mail:""},Pe=x((e=>{const{button:t,link:n,handleSubmit:l}=e,{formState:a,errors:r,handleChange:i,handleChangeErrors:s,sendForm:o}=Re({initialFormState:ze,errorsInitialState:ze,handleSubmit:l}),{region:c,name:d,phone:m,inn:h,mail:x}=a,g=_();return p("form",{onSubmit:e=>{e.preventDefault(),o({typeForm:"bcrd",region:g.find((e=>e.code===c))?.name||"",name:d,phone:m,inn:h,mail:x})},className:"container",children:[Le({regions:g,region:c,handleChange:i,errors:r,handleChangeErrors:s}),Ve({name:d,phone:m,inn:h,mail:x,handleChange:i,errors:r,handleChangeErrors:s}),Be(t,"mb-4"),u(ie,{link:n})]})})),De=[];const Oe=async e=>await M(e,{method:"GET"})||De,Ae=["От 50 000 ₽","До 3 000 000 ₽"],Ee=["От 1 года","До 5 лет"],Fe=({fullName:e,inn:t,name:n,phone:l,mail:a,annualRevenue:r,handleChange:i,errors:s,handleChangeErrors:o})=>p("div",{className:"flex justify-between gap-5 mb-7",children:[p("div",{className:"w-1/2",children:[u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Наименование организации",value:e,onChange:e=>i({fullName:e})}),u(oe,{className:"shrink-0 text-l w-full mb-3",label:"ИНН",error:s.inn,value:t,onChange:e=>i({inn:e}),onBlur:e=>o({inn:de("inn",e)})}),u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Телефон",error:s.phone,value:l,onChange:e=>i({phone:e}),onBlur:e=>o({phone:de("phone",e)})})]}),p("div",{className:"w-1/2",children:[u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Годовая выручка, ₽",error:s.annualRevenue,value:r,onChange:e=>i({annualRevenue:e}),onBlur:e=>o({annualRevenue:de("annualRevenue",e)})}),u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Контактное лицо",error:s.name,value:n,onChange:e=>i({name:e}),onBlur:e=>o({name:de("name",e)})}),u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Электронная почта",value:a,onChange:e=>i({mail:e})})]})]}),Ue=e=>new Intl.NumberFormat("ru-RU",{}).format(e),He=(e,t,n)=>Math.max(t,Math.min(e,n)),Xe=e=>e.split(/\s+/).join(""),We=x((({className:e,title:t,items:n=[],min:l=1,max:a=100,step:r=1,value:i=l,disabled:s=!1,onChange:o})=>{const c=e=>{o&&o(He(Number(Xe(e.target.value)),l,a))},d={backgroundSize:`${(100*(i-l)/(a-l)).toFixed(2)}% 100%`};return p("div",{className:e,children:[p("label",{className:"block relative",children:[t?u("span",{className:"text-m-light text-primary-text",children:t}):null,u("input",{className:"m-0 mt-2 font-sans text-h3 w-full h-14 border border-solid border-gray rounded-md\n outline-none p-0 pl-4 box-border text-primary-text hover:border-primary-hover focus:border-primary-text disabled:border-gray disabled:bg-main-divider",value:Ue(i),disabled:s,onChange:c,onBlur:c}),u("div",{className:"absolute inset-x-0 -bottom-1 px-4 leading-[18px]",children:u("input",{className:"box-border w-full m-0 cursor-pointer slider",type:"range",min:l,max:a,step:r,value:i,disabled:s,onChange:c,style:d})})]}),Ke(n)]})}));function Ke(e){return u("div",{className:"flex justify-between my-2",children:e.map(((e,t)=>u("span",{className:"text-s-light text-secondary-text",children:e},String(t))))})}const Ge=e=>p("div",{className:"w-1/2",children:[u("label",{children:u(re,{size:"text-m-light",children:e.label})}),u(We,{...e})]}),Je=({amount:e,term:t,handleChange:n})=>p("div",{className:"flex justify-between gap-5 mb-7",children:[Ge({label:"Сумма кредита, ₽",value:e,onChange:e=>n({amount:e}),min:5e4,max:3e6,items:Ae}),Ge({label:"Срок кредита, месяцев",value:t,onChange:e=>n({term:e}),min:1,max:60,items:Ee})]}),Ye=({regions:e,region:t,branches:n,department:l,handleChange:a,errors:r,handleChangeErrors:i})=>p("div",{className:"flex justify-between gap-5 mb-7",children:[u("div",{className:"w-1/2",children:u(Se,{data:e,fieldValue:"code",fieldLabel:"name",error:r.region,selected:t,setSelected:e=>a({region:e,department:""}),onValidate:e=>i({region:de("region",e)}),label:"Регион",placeholder:"Выберите регион"})}),u("div",{className:"w-1/2",children:u(Se,{data:n,fieldValue:"branchCode",fieldLabel:"address",error:r.department,selected:l,setSelected:e=>a({department:e}),onValidate:e=>i({department:de("department",e)}),label:"Адрес",placeholder:"Выберите адрес"})})]}),qe={amount:5e4,term:12,fullName:"",inn:"",name:"",phone:"",mail:"",region:"",department:"",annualRevenue:""},Ze={annualRevenue:"",inn:"",name:"",phone:"",region:"",department:""},Qe=x((({button:e,link:t,handleSubmit:n})=>{const l=_(),{formState:a,errors:r,handleChange:i,handleChangeErrors:s,sendForm:o}=Re({initialFormState:qe,errorsInitialState:Ze,handleSubmit:n}),{amount:c,term:d,fullName:m,inn:h,name:x,phone:g,mail:b,region:f,department:v,annualRevenue:N}=a,y=function(e){const{data:t}=B(e?`/api/v1/branches?regionCode=${e}`:null,Oe);return t||De}(f).filter((e=>e.address));return p("form",{onSubmit:e=>{e.preventDefault(),o({typeForm:"cred",fullName:m,inn:h,name:x,phone:g,mail:b,region:l.find((e=>e.code===f))?.name||"",department:y.find((e=>e.branchCode===v))?.address||"",partnerComments:`Сумма=${c}/Срок=${d}/Выручка=${N}`})},className:"container",children:[u(T,{headingType:"h6",title:"Параметры кредита",className:"text-center mb-4"}),Je({amount:c,term:d,handleChange:i}),u(T,{headingType:"h6",title:"Данные организации",className:"text-center mb-4"}),Fe({fullName:m,inn:h,name:x,phone:g,mail:b,annualRevenue:N,handleChange:i,errors:r,handleChangeErrors:s}),u(T,{headingType:"h6",title:"Офис банка",className:"text-center mb-4"}),Ye({regions:l,region:f,branches:y,department:v,handleChange:i,errors:r,handleChangeErrors:s}),Be(e,"mb-4"),u(ie,{link:t})]})})),et={name:"",phone:""},tt=x((e=>{const{button:t,link:n,handleSubmit:l}=e,{formState:a,errors:r,handleChange:i,handleChangeErrors:s,sendForm:o}=Re({initialFormState:et,errorsInitialState:et,handleSubmit:l}),{name:c,phone:d}=a;return p("form",{onSubmit:e=>{e.preventDefault(),o({typeForm:"dpst",name:c,phone:d})},className:"container",children:[u(T,{headingType:"h6",title:"Оставьте заявку и мы ответим на любые вопросы по депозитам",className:"text-center mb-4"}),nt({name:c,phone:d,handleChange:i,errors:r,handleChangeErrors:s}),p("div",{className:"flex justify-between items-center max-w-[560px] m-auto",children:[u("div",{className:"flex-1",children:u(ie,{link:n})}),Be(t)]})]})})),nt=({name:e,phone:t,handleChange:n,errors:l,handleChangeErrors:a})=>p("div",{className:"max-w-[560px] m-auto",children:[u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Имя",error:l.name,value:e,onChange:e=>n({name:e}),onBlur:e=>a({name:de("name",e)})}),u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Телефон",error:l.phone,value:t,onChange:e=>n({phone:e}),onBlur:e=>a({phone:de("phone",e)})})]}),lt=(e,t)=>e?.media&&t?.media?e.media-t.media:0,at=x((({className:e="",image:t,imageClassName:n="",isMobile:l=!1,pathPrefix:a})=>{const r=U();return p("picture",{className:`${l?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.filter((e=>e?.src)).sort(lt).map((({src:e,format:n,media:l},i)=>u("source",{srcSet:it(r,a)(e),type:st(n),media:l?`(max-width: ${l}px)`:"",...t.size},`${i}_${e}`))):null,t?.src?rt({...t,src:it(r,a)(t.src)},n,l):null]})})),rt=(e,t="",n=!1)=>{const l={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},a=e.title||"",r=e.alt||e.title,i=n?"m-auto":"m-0";return u("img",{src:e.src,className:`${i} ${t}`,alt:r,title:a,style:l,...e.size})},it=(e,t)=>n=>n&&!L(n)?A(e)(D(t,n)):n,st=e=>e?`image/${String(e)}`:void 0,ot=x((({className:e="",image:t,imageClassName:n="",isMobile:l,pathPrefix:a,...r})=>t?.src||t?.icon?t.icon?u(fe,{className:e,imageClassName:n,iconVersion:t?.iconVersion,name:t.icon,...r}):u(at,{className:e,imageClassName:n,image:t,isMobile:l,pathPrefix:a}):null)),ct=x((({className:e,viewBox:t,fill:n="none",width:l,height:a,paths:r,...i})=>u("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:n,width:l,height:a,children:r.map((({d:e,fill:t,...n},l)=>u("path",{d:e,fill:t||"currentColor",...i,...n},l)))}))),dt=[{d:"M10.207.793a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 0 1 1.414-1.414L3.5 6.086 8.793.793a1 1 0 0 1 1.414 0Z",fillRule:"evenodd",clipRule:"evenodd",fill:"white"}],mt=x((({className:e,text:t,checked:n,disabled:l,isRadio:a,onChange:r})=>u("div",{className:e,children:p("label",{className:"flex items-center relative cursor-pointer group/box",children:[u("input",{className:w("peer appearance-none w-5 h-5 border-solid cursor-pointer checked:border-primary-main m-0",a?"rounded-full border-2":"rounded checked:bg-primary-main disabled:bg-main-disabled border",n?"border-black":"border-gray",l?"":"group-hover/box:border-primary-hover"),type:"checkbox",onChange:e=>r&&r(e.target.checked),checked:n,disabled:l}),a?u("div",{className:"left-1 w-3 h-3 rounded-full bg-primary-main hidden absolute peer-checked:block"}):u(ct,{paths:dt,className:"hidden absolute left-1 ml-px peer-checked:block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"}),t?u("span",{className:"font-sans ml-3 text-l-light",children:t}):null]})}))),ht=({currencyControl:e,documentaryOperations:t,conversionOperations:n,text:l,handleChange:a})=>p("div",{className:"mb-6",children:[p("div",{className:"flex items-center mb-4 gap-6",children:[u(mt,{text:"Валютный контроль",checked:e,onChange:e=>a({currencyControl:e})}),u(mt,{text:"Документарные операции",checked:t,onChange:e=>a({documentaryOperations:e})}),u(mt,{text:"Конверсионные операции",checked:n,onChange:e=>a({conversionOperations:e})})]}),u("textarea",{placeholder:"Укажите интересующий вас вопрос, место ведения бизнеса и удобное время для телефонного звонка",className:"block w-full resize-y min-h-24 p-4 outline-none border rounded-md border-main-stroke hover:border-primary-hover active:focus:border-primary-text",value:l,onChange:e=>a({text:e.target.value})})]}),ut=({fullName:e,name:t,phone:n,mail:l,handleChange:a,errors:r,handleChangeErrors:i})=>p("div",{children:[p("div",{className:"flex justify-between gap-5",children:[u("div",{className:"w-1/2",children:u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Наименование организации",error:r.fullName,value:e,onChange:e=>a({fullName:e}),onBlur:e=>i({fullName:de("fullName",e)})})}),u("div",{className:"w-1/2",children:u(oe,{className:"shrink-0 text-l w-full mb-3",label:"ФИО",error:r.name,value:t,onChange:e=>a({name:e}),onBlur:e=>i({name:de("name",e)})})})]}),p("div",{className:"flex justify-between gap-5 mb-7",children:[u("div",{className:"w-1/2",children:u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Телефон",error:r.phone,value:n,onChange:e=>a({phone:e}),onBlur:e=>i({phone:de("phone",e)})})}),u("div",{className:"w-1/2",children:u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Электронная почта",error:r.mail,value:l,onChange:e=>a({mail:e}),onBlur:e=>i({mail:de("mail",e)})})})]})]}),pt={fullName:"",name:"",phone:"",mail:"",currencyControl:!1,documentaryOperations:!1,conversionOperations:!1,text:""},xt={fullName:"",name:"",phone:"",mail:"",text:""},gt=x((e=>{const{button:t,link:n,handleSubmit:l}=e,{formState:a,errors:r,handleChange:i,handleChangeErrors:s,sendForm:o}=Re({initialFormState:pt,errorsInitialState:xt,handleSubmit:l}),{fullName:c,name:d,phone:m,mail:h,currencyControl:x,documentaryOperations:g,conversionOperations:b,text:f}=a;return p("form",{onSubmit:e=>{e.preventDefault(),o({typeForm:"kved",fullName:c,name:d,phone:m,mail:h,partnerComments:`Валютный контроль=${x}/Документарные операции=${g}/Конверсионные операции=${b}/Доп инф=${f}`})},className:"container",children:[u(T,{headingType:"h6",title:"Данные организации",className:"text-center mb-4"}),ut({fullName:c,name:d,phone:m,mail:h,handleChange:i,errors:r,handleChangeErrors:s}),u(T,{headingType:"h6",title:"Интересующий вопрос",className:"text-center mb-4"}),ht({currencyControl:x,documentaryOperations:g,conversionOperations:b,text:f,handleChange:i}),p("div",{className:"flex items-center pb-9 mb-9 border-b border-main-divider",children:[Be(t,"mr-5"),u(ie,{link:n})]}),u(T,{headingType:"h6",title:"Или свяжитесь с нами удобным способом",className:"text-center mb-4"}),p("div",{className:"flex",children:[p("a",{className:"flex items-center text-primary-text no-underline mr-6",href:"tel:8 (800) 200-78-70","aria-label":"8 (800) 200-78-70",children:[u(ot,{image:{icon:"PhoneIcon"},width:"24",height:"24",className:"mr-3"}),u("span",{children:"8 (800) 200-78-70"})]}),p("a",{className:"flex items-center text-primary-text no-underline","aria-label":"ved@rshb.ru",href:"mailto:ved@rshb.ru",children:[u(ot,{image:{icon:"MailIcon"},width:"24",height:"24",className:"mr-3"}),u("span",{children:"ved@rshb.ru"})]})]})]})})),bt=x((({responceType:e})=>{const t="OK"===e;return p("div",{className:`flex items-center mt-5 p-5 rounded-md ${t?"bg-responce-ok":"bg-responce-fail"}`,children:[u(ot,t?{image:{icon:"ResponceOKIcon"},width:"42",height:"42",className:"mr-4"}:{image:{icon:"ResponceFailIcon"},width:"37",height:"34",className:"mr-4"}),p("div",{children:[u(T,{headingType:"h6",title:t?"Ваша заявка отправлена":"Не удалось отправить заявку",className:"mb-1"}),u(re,{size:"text-l-light",color:"text-secondary-text",children:t?"Совсем скоро мы с вами свяжемся":"Пожалуйста, повторите позднее"})]})]})})),ft={credit:e=>u(Qe,{...e}),acquiring:e=>u(_e,{...e}),"business-card":e=>u(Pe,{...e}),deposit:e=>u(tt,{...e}),wed:e=>u(gt,{...e})},vt={send:async function(e){try{const t=await fetch("/api/v1/sendcorporatelead",{method:"POST",headers:{"Content-Type":"application/json"},mode:"cors",body:JSON.stringify(e)});return await t.json()}catch(e){return null}}},Nt=x((e=>{const{className:t="",title:n,typeForm:a="credit",button:i,link:s,...o}=e,[c,d]=l(""),m=r((async e=>{const t=await vt.send(e)?"OK":"Fail";return d(t),t}),[]);return u(k,{className:`font-sans bg-white p-[50px] pb-9 ${t}`,...o,children:p("div",{className:"container max-w-[978px]",children:[n?u(T,{headingType:"h3",title:n,className:"text-center mb-8"}):null,ft[a]({button:i,link:s,handleSubmit:m}),c?u(bt,{responceType:c}):null]})})})),yt=x((({className:e="",title:t,benefitList:n,...l})=>p(k,{className:`p-12 flex flex-col items-center ${e}`,...l,children:[t?u(T,{headingType:"h3",as:"h2",className:"max-w-[47rem] text-center",title:t}):null,n?.length?u("div",{className:"flex flex-wrap w-full justify-center gap-x-20 mt-8",children:n.map(wt)}):null]}))),wt=(e,t)=>{const n=e.description;return p("div",{className:"flex items-center basis-1/2 max-w-[500px] mb-14",children:[e?.icon?.icon?u(ot,{className:"w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider text-primary-main group-data-secondary:bg-white/30 group-data-secondary:text-black",image:e.icon}):null,e?.icon?.src?u(ot,{image:e.icon}):null,p("div",{className:"ml-5 h-full",children:[e?.label?u(T,{headingType:"h6",children:e.label}):null,Ct(n)]})]},String(t))},Ct=e=>{const t=e?.benefitType||null;return e&&t?u("div",{className:"mt-2 text-l-light text-secondary-text group-data-secondary:text-white/80",children:"list"===t?St(e):kt(e)}):null},kt=e=>e?.name||null,St=e=>{const t=e?.bullets?"list-disc pl-6":"";return e?.items&&e.items.length>0?u("ul",{className:t,children:e.items.map(((e,t)=>u("li",{children:e},`benefitListItem-${t}`)))}):null},It=(e,{className:t="",buttonClassName:n,isVertical:l}={})=>e?.length&&e.some((e=>e?.text||e?.icon?.icon))?u("div",{className:w("flex",l?"flex-col gap-2":"gap-4",t),children:e.map(Tt(n))}):null,Tt=(e="")=>(t,n)=>{const{text:l,icon:a,iconRight:r,version:i,...s}=t||{},o="secondary"===i?"color":"white",c=a?.iconVersion?a?.iconVersion:o;return l||a?.icon?u(te,{className:e,appendLeft:$t({...a,iconVersion:c}),appendRight:$t({...r,iconVersion:c}),version:i,text:l,...s},n?String(n):""):null},$t=e=>e?.icon||e?.src?u(ot,{image:e,width:String(e?.size?.width||24),height:String(24)}):null,Bt={XXL:{wrapper:"gap-[18px]",title:{headingType:"h0",as:"h1"},descriptionSize:"text-h5"},XL:{wrapper:"gap-4",title:{headingType:"h1",as:"h1"},descriptionSize:"text-xl-light"},L:{wrapper:"gap-4",title:{headingType:"h2",as:"h2"},descriptionSize:"text-xl-light"},M:{wrapper:"gap-3",title:{headingType:"h3",as:"h3"},descriptionSize:"text-xl-light"},S:{wrapper:"gap-2",title:{headingType:"h4",as:"h4"},descriptionSize:"text-xl-light"},XS:{wrapper:"gap-2",title:{headingType:"h5",as:"h5"},descriptionSize:"text-l-light"}},Rt={H6:"text-h6",XL_L:"text-xl-light",XL_R:"text-xl",L_L:"text-l-light",L_R:"text-l",M:"text-m-light",S:"text-s-light",XS:"text-xs-light"},Mt=x((({className:e,title:t,description:n,headlineVersion:l="XL",align:a="text-center",as:r,isPadding:i=!0,isTheme:s=!1,version:o="",...c})=>{const d=Bt[l];return p(k,{className:w("flex flex-col",i?"p-12":"",d.wrapper,e),version:o,isTheme:s,...c,children:[t?u(T,{className:w("whitespace-pre-wrap",a),...d?.title,as:r||d?.title.as,title:t}):null,n?u(ae,{size:d.descriptionSize,align:a,children:n}):null]})})),jt=x((e=>{const{className:t="",title:n,description:l,bonusItems:a,...r}=e;return u(k,{className:`p-12 pb-9 ${t}`,...r,children:p("div",{className:"container",children:[u(Mt,{className:"!p-0",title:n,description:l,headlineVersion:"M"}),u("div",{className:"flex flex-wrap w-full mt-9",children:a?.length?a.map(((e,t)=>p("div",{className:"flex-grow w-[49%] border border-gray p-9 mb-3 mx-2 even:mr-0 odd:ml-0 last:odd:mx-0",children:[e?.title?u(re,{size:"text-h4",children:e.title}):null,e?.description?u("div",{className:"mt-2",children:u(ae,{size:"text-xl",font:"font-light",children:e.description})}):null,p("div",{className:"flex justify-between items-end mt-3",children:[It(e?.buttons),e.bonusItemContent?.bonusType?_t(e.bonusItemContent):null]})]},String(t)))):null})]})})})),_t=e=>u("div",{children:"count"===e.bonusType?Vt(e):Lt(e)}),Vt=e=>p("div",{className:"relative -bottom-3 h-auto flex items-end mt-14 shrink-0",children:[e.bonusCount?u("span",{className:"font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7",children:e.bonusCount}):null,e.bonusName?u("span",{className:"text-h2 bg-clip-text text-transparent bg-green-to-yellow",children:e.bonusName}):null]}),Lt=e=>e.image?u(ot,{className:"w-12 h-12 min-w-12 p-3 rounded-full",image:e.image}):null,zt={left:"text-left",center:"text-center",right:"text-right"},Pt=x((({bonusBenefits:e,cardTextAlign:t="center",className:n="",columnsCount:l="4",subtitle:a,title:r,...i})=>p(k,{className:`font-sans text-primary-text bg-white p-12 flex flex-col text-center ${n}`,...i,children:[u(Mt,{className:"!p-0 mb-8",title:r,description:a,headlineVersion:"M"}),e?.length?u("div",{className:`grid gap-1 ${zt[t]} ${Ot(l)}`,children:e.map(Dt)}):null]}))),Dt=({icon:e,title:t,description:n},l)=>p("div",{className:w("flex flex-col items-center text-h6",n||t?"":"justify-center"),children:[t?u("span",{children:t}):null,e?u(ot,{image:e,height:"180",className:"w-auto"}):null,n?u("span",{children:n}):null]},String(l)),Ot=e=>{switch(e){case"3":return"grid-cols-3";case"4":return"grid-cols-4";default:return"grid-cols-5"}},At=x((e=>{const{title:t,image:n,cardItems:l,button:a}=e;return p("div",{className:"border-gray border p-9 w-1/2",children:[n?p("div",{className:"flex justify-center",children:[n?.src?u(ot,{className:"mb-5",image:n}):null,n?.icon?u(ot,{image:n}):null]}):null,t?u(T,{headingType:"h4",title:t,className:"mb-6"}):null,l?.length?u("ul",{children:l.map(((e,t)=>Et(e,String(t))))}):null,It([a],{buttonClassName:"mt-6"})]})})),Et=(e,t)=>{const{icon:n,text:l}=e;return p("li",{className:"flex items-center gap-3.5 mb-3 last:mb-0",children:[n?.icon?u(ot,{image:n,className:"w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider"}):null,n?.src?u(ot,{image:n}):null,u("span",{className:"text-xl-light",children:l})]},t)},Ft=x((({className:e="",title:t,cards:n,...l})=>p(k,{className:`p-12 pb-9 ${e}`,...l,children:[u(T,{headingType:"h3",title:t,className:"text-center mb-8"}),u("div",{className:"flex gap-5",children:n?.length?n.map(((e,t)=>u(At,{...e},String(t)))):null})]}))),Ut=x((({button:e,className:t,...n})=>u(k,{className:w("!bg-transparent",t),...n,children:It([e])}))),Ht=e=>{const{itemCount:t,visibleItemCount:n}=e,[a,i]=l(0),s=r((()=>i((e=>Math.min(e+1,t-1)))),[t]),o=r((()=>i((e=>Math.max(e-1,0)))),[t]),c=function({itemCount:e,visibleItemCount:t}){return Boolean(t&&e>t)}(e)&&a<t-(n||1),d=a>0;return[a,{inc:s,dec:o,canInc:c,canDec:d,isScrollAvailable:d||c}]};const Xt=x((({className:e,disabled:t,...n})=>u(te,{rounded:!0,className:`group/btn shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main"} ${e||""}`,disabled:t,...n,children:u(ot,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border",image:{icon:"ArrowLeftIcon",iconVersion:"black"},imageClassName:"group-hover/btn:text-primary-main",width:"16",height:"16"})}))),Wt=x((e=>u(Xt,{...e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}))),Kt=x((e=>u(Xt,{...e,className:`${e.className||""} rotate-180`,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"})));function Gt({dec:e,inc:t,canDec:n,canInc:l,btnClass:a,className:r=""}){return n||l?p("div",{children:[n?u(Xt,{className:`absolute z-40 ${a[0]} ${r}`,onClick:e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left",disabled:!n}):null,l?u(Xt,{className:`absolute z-40 rotate-180 ${a[1]} ${r}`,onClick:t,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right",disabled:!l}):null]}):null}const Jt=x((({title:e,value:t,postfix:n="",prefix:l,className:a=""})=>p("div",{className:w("mb-7",a),children:[e?u(re,{size:"text-l-light",color:"text-secondary-text",children:e}):null,u("div",t?{children:p(re,{size:"text-h3",children:[l," ",Ue(Math.round(t))," ",n]})}:{children:u(re,{size:"text-h3",children:"-"})})]}))),Yt=Math.round(23.5),qt={minSum:1e4,maxSum:5e6,minMonths:13,maxMonths:60,rate:12.5,isSalaryClient:!1,isPensionClient:!1,isStateEmployee:!1,isInsurance:!0},Zt={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},Qt={minSum:5e4,maxSum:5e6,minMonths:2,maxMonths:10,rate:0,isMonthlyInterestPayment:!0,isRemoteRegistration:!0},en={minSum:1e3,maxSum:5e5,minDays:1,maxDays:1095,rate:0,isMonthlyInterestPayment:!0,isReplenished:!1,isPartialWithdrawal:!1,isSmallBusiness:!1,depositeName:"Депозит 'Стабильный'"},tn=x((({rate:e,title:t="Ставка",unit:n,depositeName:l,isShowDepositeName:a,rateBlockClassName:r})=>p("div",{children:[u(re,{size:"text-l-light",color:"text-secondary-text",children:t}),p("div",{className:"relative",children:[p("div",{className:"flex justify-start",children:[u("span",{className:w("block gradient-color-text font-mohave text-title-huge pr-6 -mt-4",r),children:String(e.toFixed(2)).replace(".",",")}),n?u("span",{className:"gradient-color-text text-[65px] leading-[75px]",children:n}):""]}),l&&a?u("div",{className:"absolute bottom-7 w-full text-center whitespace-nowrap",children:l}):null]})]}))),nn=e=>e?u(ae,{size:"text-s-light",color:"text-secondary-text",children:e}):null,ln=1e3;function an(e,t,n){const{moneyValue:l,minSum:a,maxSum:r,step:i=ln,isShowItems:s=!0}=t,o=[`От ${Ue(a)} ₽`,`До ${Ue(r)} ₽`];return u(We,{title:e,items:s?o:[],min:a,max:r,step:i,value:He(l,a,r),onChange:n})}function rn(e){const{data:t}=B(`/wcms-resources/${e}.json`,j);return t}const sn=(e,t)=>{const{travelExpenseValue:n,restExpenseValue:l}=e,a=rn(t||"bonus-calculator-data")||Zt,[r,i]=((e,t,n)=>{const{minSumTravel:l,minSumOther:a,maxBonus:r,prefMonthsNum:i,prefTravelBonusRate:s,prefRestBonusRate:o,travelBonusRate:c,restBonusRate:d}=e;if(t===l&&n===a)return[0,0];const m=Math.min(Math.round(s*t)+Math.round(o*n),r);return[m,m*i+Math.min(Math.round(c*t)+Math.round(d*n),r)*(12-i)]})(a,n,l);return{...a,...e,monthBonus:r,yearBonus:i}},on=x((({className:e="",sourceBookDir:t="",buttons:n,footnote:a})=>{const[i,s]=l(6e3),o=r((e=>s(e)),[]),[c,d]=l(6e3),m=r((e=>d(e)),[]),h={travelExpenseValue:i,restExpenseValue:c},{minSumTravel:x,maxSumTravel:g,minSumOther:b,maxSumOther:f,monthBonus:v,yearBonus:N}=sn(h,t);return p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-[468px]",children:[an("Сумма покупок в категории путешествия, ₽",{minSum:x,maxSum:g,moneyValue:i,step:500,isShowItems:!1},o),an("Сумма покупок в остальных категориях, ₽",{className:"mt-7",minSum:b,maxSum:f,moneyValue:c,step:500,isShowItems:!1},m)]}),u("div",{children:v>=0?u(tn,{title:"Баллов за месяц",rate:v,rateBlockClassName:"tracking-[-14px]"}):null}),p("div",{className:"w-full max-w-[350px]",children:[N>=0?u(Jt,{title:"Баллов за год",value:N}):null,It(n,{className:"mt-7",isVertical:!0}),nn(a)]})]})}));function cn(e,t,n){const{minDays:l,maxDays:a,daysValue:r}=t,i=e=>`${e} ${Number(e)%10==1?"дня":"дней"}`;return u(We,{className:"mt-7",title:e,items:[`От ${i(l)}`,`До ${i(a)}`],min:l,max:a,step:1,value:He(r,l,a),onChange:n})}const dn={horizontal:"gap-10",vertical:"flex-col gap-3"},mn=x((({items:e,checkedItem:t,onChange:n,orientation:l="horizontal"})=>u("div",{className:`flex ${dn[l]}`,children:e?.map((({id:e,text:l})=>u(mt,{isRadio:!0,text:l,checked:t===e,onChange:()=>n&&n(e)},String(e))))}))),hn="everyMonth",un="atEndTerm",pn=[{id:hn,text:"Ежемесячно"},{id:un,text:"В конце срока"}];function xn({isMonthlyInterestPayment:e,callback:t,title:n,orientation:l="horizontal"}){return p("div",{children:[n?u("div",{className:"mb-3",children:u(re,{color:"text-secondary-text",font:"font-light",children:n})}):null,u("div",{children:u(mn,{orientation:l,items:pn,checkedItem:e?hn:un,onChange:e=>t&&t(e===hn)})})]})}const gn=x((({title:e="Ставка"})=>p("div",{children:[u(re,{size:"text-l-light",color:"text-secondary-text",children:e}),u("div",{className:"mt-1 pt-1 pl-5 pb-1.5",children:u(fe,{name:"PercentIcon",width:"90",height:"85"})}),u("div",{className:"w-[250px] mt-3.5",children:p(ae,{size:"text-xl-light",color:"text-primary-text",children:["Процентная ставка для срока ",u("strong",{children:"1-30 дней"})," устанавливается при обращении в Банк"]})})]}))),bn=e=>e,fn=(e=bn)=>t=>t.reduceRight(((t,n)=>e(t)>e(n)?t:n)),vn=fn(),Nn=e=>{const t=[...e];t.sort((([e],[t])=>e-t));let n=1;for(;n<t.length;){const[e,l]=t[n-1],[a,r]=t[n];l>=a?t.splice(n-1,2,[e,Math.max(l,r)]):n++}return t},yn=(e=bn)=>fn((t=>-e(t))),wn=([e,t],n,l=[])=>n&&n[e]&&n[t]?{[e]:n[e],[t]:n[t]}:Cn([e,t],l),Cn=([e,t],n=[])=>({[e]:n.length?yn()(n.filter((t=>t[e])).map((t=>t[e]))):0,[t]:n.length?fn()(n.filter((e=>e[t])).map((e=>e[t]))):0}),kn=(e,[t,n],l)=>e>=l[t]&&e<=l[n],Sn=(e,t)=>e?t.isReplenished&&t.isPartialWithdrawal:!t.isReplenished&&!t.isPartialWithdrawal,In=(e,t)=>{const{isMonthlyInterestPayment:n,moneyValue:l,daysValue:a}=t;return n?Math.round(l*Math.pow((1200+e)/1200,a/30)-l):Math.round(l*e*a/365/100)},Tn=x((({className:e="",sourceBookDir:t,buttons:n,footnote:a,bottomFootnote:i,isShowDepositeName:s})=>{const[o,c]=l(1e5),d=r((e=>c(e)),[]),[m,h]=l(90),x=r((e=>h(e)),[]),[g,b]=l(!1),f=r((e=>b(e)),[]),[v,N]=l(!1),y=r((e=>N(e)),[]),[w,C]=l(!1),k=r((e=>C(e)),[]),[S,I]=l(!1),T=r((e=>I(e)),[]),$=((e,t)=>{const{daysValue:n,moneyValue:l,isPartialWithdrawal:a,isReplenished:r,isSmallBusiness:i,isMonthlyInterestPayment:s}=e,o=rn(t||"business-calculator-data"),c=r||a,d=n<90||n>730;if(n<=30)return{...en,...e,isDisabledOperatingDeposit:d,isShowUnknownRate:!0};const m=o?.rateRows?.find((e=>s===e.isMonthlyInterestPayment&&i===e.isSmallBusiness&&Sn(c,e)&&kn(l,["minSum","maxSum"],e)&&kn(n,["minDays","maxDays"],e)))||en,{rate:h}=m,u=In(h,e),p=l+u,x=o?.rateRows||[en];return{...m,...Cn(["minSum","maxSum"],x),...Cn(["minDays","maxDays"],x),...e,isDisabledOperatingDeposit:d,income:u,finalSum:p}})({moneyValue:o,daysValue:m,isReplenished:g,isPartialWithdrawal:v,isSmallBusiness:w,isMonthlyInterestPayment:S},t),{income:B,finalSum:R,rate:M,depositeName:j,isShowUnknownRate:_}=$;return p("section",{className:e,children:[p("div",{className:"flex justify-between",children:[p("div",{className:"w-[486px]",children:[an("Сумма вклада, ₽",$,d),cn("Срок вклада, дни",$,x),p("div",{className:"mt-7 flex justify-between",children:[$n({...$,handleIsReplenished:f,handleIsPartialWithdrawal:y,handleIsSmallBusiness:k}),xn({isMonthlyInterestPayment:S,callback:T,title:"Выплата процентов",orientation:"vertical"})]})]}),_?u(gn,{}):u(tn,{rate:M,depositeName:j,isShowDepositeName:s,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-full max-w-[350px]",children:[u(Jt,{title:"Доход по вкладу",value:B,postfix:"₽",prefix:"+"}),u(Jt,{title:"Сумма в конце срока",value:R,postfix:"₽"}),It(n,{className:"mt-7",isVertical:!0}),u("div",{className:"mt-7",children:nn(a)})]})]}),u("div",{className:"mt-5",children:nn(i)})]})})),$n=({isDisabledOperatingDeposit:e,isReplenished:t,isPartialWithdrawal:n,isSmallBusiness:l,handleIsReplenished:a,handleIsPartialWithdrawal:r,handleIsSmallBusiness:i})=>p("div",{children:[u(mt,{text:"Пополнение",disabled:e,checked:t,onChange:a}),u(mt,{className:"mt-3",disabled:e,text:"Частичное снятие",checked:n,onChange:r}),u(mt,{className:"mt-3",text:"Являюсь малым предприятием",checked:l,onChange:i})]}),Bn=x((({className:e,title:t,items:n=[],list:l=[],value:a=l[0],disabled:r=!1,onChange:i})=>{const s=l.length-1,o=e=>{if(!i)return;const t=parseInt(e.target.value),n=l.reduce((function(e,n){return Math.abs(n-t)<Math.abs(e-t)?n:e}));i(Number(Xe(n.toString())))},c=l.findIndex((e=>e===a))||0,d={backgroundSize:`${(100*(c-0)/(s-0)).toFixed(2)}% 100%`};return p("div",{className:e,children:[p("label",{className:"block relative",children:[t?u("span",{className:"text-m-light text-primary-text",children:t}):null,u("input",{className:"m-0 mt-2 font-sans text-h3 w-full h-14 border border-solid border-gray rounded-md\n outline-none p-0 pl-4 box-border text-primary-text hover:border-primary-hover focus:border-primary-text disabled:border-gray disabled:bg-main-divider",value:Ue(a),disabled:r,onChange:o,onBlur:o}),l.length?u("div",{className:"absolute w-full flex justify-between -bottom-[3px] px-4",children:l.map(Rn(c,r))}):null,u("div",{className:"absolute inset-x-0 -bottom-1 px-4 leading-[18px]",children:u("input",{className:"box-border w-full m-0 cursor-pointer slider relative z-10",type:"range",min:0,max:s,step:1,value:c,disabled:r,onChange:e=>{if(!i)return;const t=l.at(He(parseInt(e.target.value),0,s))||0;i(Number(Xe(t.toString())))},style:d})})]}),Mn(n)]})})),Rn=(e,t)=>(n,l)=>u("span",{className:"w-2 h-2 rounded-full "+(e<=l||t?"bg-gray":"bg-primary-main")},String(l));function Mn(e){return u("div",{className:"flex justify-between my-2",children:e.map(((e,t)=>u("span",{className:"text-s-light text-secondary-text",children:e},String(t))))})}function jn(e,t,n){const{minMonths:l,maxMonths:a,monthsValue:r,availableMonths:i}=t,s=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`;return i?.length?u(Bn,{className:"mt-7",title:e,items:[`От ${s(l)}`,`До ${s(a)}`],list:i,value:He(r,l,a),onChange:n}):u(We,{className:"mt-7",title:e,items:[`От ${s(l)}`,`До ${s(a)}`],min:l,max:a,step:1,value:He(r,l,a),onChange:n})}const _n="annuity",Vn="differential",Ln=[{id:_n,text:"Аннуитетный"},{id:Vn,text:"Дифференцированный"}];function zn({isAnnuity:e,callback:t,title:n,orientation:l="horizontal"}){return p("div",{children:[n?u("div",{className:"mb-3",children:u(re,{color:"text-secondary-text",font:"font-light",children:n})}):null,u(mn,{orientation:l,items:Ln,checkedItem:e?_n:Vn,onChange:e=>t&&t(e===_n)})]})}const Pn=(e,t,n)=>{const{moneyValue:l,monthsValue:a}=e,r=rn(t||"credit-calculator-data"),s=r?.limitRows?.find((t=>Dn({row:t,userInputParams:e,paramsViewSettings:n}))),o=r?.rateRows?.find((t=>Dn({row:t,userInputParams:e,paramsViewSettings:n})&&kn(l,["minSum","maxSum"],t)&&kn(a,["minMonths","maxMonths"],t)))||qt,{rate:c}=o,d=((e,t)=>{const{isAnnuity:n,moneyValue:l,monthsValue:a}=t;if(0===e)return 0;if(n){const t=e/1200;return l*(t+t/(Math.pow(1+t,a)-1))}return Math.round(l/a)+l*(e/1200)})(c,e),m=r?.rateRows||[qt];return i((()=>({...o,...wn(["minSum","maxSum"],s,m),...wn(["minMonths","maxMonths"],s,m),...e,monthlyPayment:d})),[e])},Dn=e=>On({...e,fieldKey:"isSalaryClient",viewSettingFieldKey:"isShowSalaryClient"})&&On({...e,fieldKey:"isStateEmployee",viewSettingFieldKey:"isShowStateEmployee"})&&On({...e,fieldKey:"isPensionClient",viewSettingFieldKey:"isShowPensionClient"})&&On({...e,fieldKey:"isInsurance",viewSettingFieldKey:"isShowInsurance"}),On=({row:e,userInputParams:t,paramsViewSettings:n,fieldKey:l,viewSettingFieldKey:a})=>!!n&&!n[a]||t[l]===e[l],An=x((({className:e="",sourceBookDir:t,buttons:n,footnote:i,paramsViewSettings:s})=>{const[o,c]=l(!1),[d,m]=l(!1),h=r((e=>m(e)),[]),[x,g]=l(!1),b=r((e=>g(e)),[]),[f,v]=l(!1),N=r((e=>v(e)),[]),[y,C]=l(!0),k=r((e=>C(e)),[]),[S,I]=l(2e5),T=r((e=>I(e)),[]),[$,B]=l(Yt),R=r((e=>B(e)),[]),M=Pn({isAnnuity:o,isInsurance:y,isSalaryClient:d,isPensionClient:f,isStateEmployee:x,moneyValue:S,monthsValue:$},t,s);return a((()=>{I(He(S,M.minSum,M.maxSum)),B(He($,M.minMonths,M.maxMonths))}),[M]),p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-[468px]",children:[an("Сумма кредита, ₽",{...M,step:500},T),jn("Срок кредита, месяцев",M,R),u("div",{className:"mt-7",children:Fn({...M,...s,handleIsSalaryClient:h,handleIsStateEmployee:b,handleIsPensionClient:N,handleIsInsurance:k})})]}),En(M.rate),p("div",{className:"w-full max-w-[350px]",children:[u(Jt,{title:"Ежемесячный платеж",value:M.monthlyPayment,postfix:"₽"}),zn({isAnnuity:o,orientation:"vertical",callback:c}),It(n,{className:"mt-7",isVertical:!0}),nn(i)]})]})})),En=e=>u(tn,{title:"Ставка",rate:e,rateBlockClassName:"tracking-[-25px]",unit:"%"}),Fn=({isSalaryClient:e,isStateEmployee:t,isPensionClient:n,isInsurance:l,isShowSalaryClient:a,isShowStateEmployee:r,isShowPensionClient:i,isShowInsurance:s,handleIsSalaryClient:o,handleIsStateEmployee:c,handleIsPensionClient:d,handleIsInsurance:m})=>p("div",{children:[a?u(mt,{text:"Получаю зарплату на счёт в Россельхозбанке",checked:e,onChange:o}):null,r?u(mt,{className:"mt-3",text:"Работаю в бюджетной организации",checked:t,onChange:c}):null,i?u(mt,{className:"mt-3",text:"Получаю пенсию на карту Россельхозбанка",checked:n,onChange:d}):null,s?u(mt,{className:"mt-3",text:"Комплексная страховая защита",checked:l,onChange:m}):null]}),Un="remote",Hn="office",Xn=[{id:Hn,text:"Офис Банка"},{id:Un,text:"Дистанционно"}];function Wn({isRemoteRegistration:e,callback:t,title:n,orientation:l="horizontal"}){return p("div",{children:[n?u("div",{className:"mb-3",children:u(re,{color:"text-secondary-text",font:"font-light",children:n})}):null,u("div",{children:u(mn,{orientation:l,items:Xn,checkedItem:e?Un:Hn,onChange:e=>t&&t(e===Un)})})]})}const Kn=(e,t,n)=>{const{moneyValue:l,monthsValue:a}=e,r=rn(t||"deposit-calculator-data"),i=r?.rateRows[0]?Yn(r.rateRows[0].minMonths,r.rateRows[0].maxMonths):1,s=!n?.isShowMonthlyInterestPayment,o=!n?.isShowRemoteRegistration,c=r?.rateRows?.find((t=>Jn({row:t,userInputParams:e,paramKey:"isMonthlyInterestPayment",isExclude:s})&&Jn({row:t,userInputParams:e,paramKey:"isRemoteRegistration",isExclude:o})&&kn(l,["minSum","maxSum"],t)&&kn(a||i,["minMonths","maxMonths"],t)))||Qt,{rate:d}=c,m=Gn(d,e),h=l+m,u=r?.rateRows||[Qt];return{...c,...Cn(["minSum","maxSum"],u),...Cn(["minMonths","maxMonths"],u),availableMonths:Nn(u.map((e=>[e.minMonths,e.maxMonths]))).flatMap((([e,t])=>((e,t,n=1)=>Array.from({length:Math.abs(t-e)/n+1},((l,a)=>t>=e?e+a*n:e-a*n)))(e,t))),...e,defaultMonth:i,income:m,finalSum:h}},Gn=(e,t)=>{const{isMonthlyInterestPayment:n,moneyValue:l,monthsValue:a}=t;return n?Math.round(l*Math.pow((1200+e)/1200,a)-l):Math.round(l*e*30*a/365/100)},Jn=({row:e,userInputParams:t,paramKey:n,isExclude:l})=>l||t[n]===e[n],Yn=(e,t)=>e+Math.round((t-e)/2),qn=x((({className:e="",sourceBookDir:t,buttons:n,footnote:i,paramsViewSettings:s})=>{const[o,c]=l(2e4),d=r((e=>c(e)),[]),[m,h]=l(0),[x,g]=l(!1),b=r((e=>g(e)),[]),[f,v]=l(!1),N=r((e=>v(e)),[]),y={moneyValue:o,monthsValue:m,isMonthlyInterestPayment:x,isRemoteRegistration:f},C=r((e=>h(e)),[]),k=Kn(y,t,s),{defaultMonth:S,income:I,finalSum:T,rate:$}=k;return a((()=>{h(S)}),[S]),p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-[468px]",children:[an("Сумма вклада, ₽",{...k},d),jn("Срок вклада, месяцев",{...k},C),u("div",{className:"mt-7",children:Zn({...k,...s,handleIsMonthlyInterestPayment:b,handleIsRemoteRegistration:N})})]}),u(tn,{rate:$,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-full max-w-[350px]",children:[u(Jt,{title:"Доход по вкладу",value:I,postfix:"₽",prefix:"+"}),u(Jt,{title:"Сумма в конце срока",value:T,postfix:"₽"}),It(n,{className:"mt-7",isVertical:!0}),nn(i)]})]})})),Zn=({isMonthlyInterestPayment:e,isRemoteRegistration:t,isShowMonthlyInterestPayment:n,isShowRemoteRegistration:l,handleIsMonthlyInterestPayment:a,handleIsRemoteRegistration:r})=>p("div",{className:"flex flex-col gap-y-7",children:[n?xn({isMonthlyInterestPayment:e,callback:a,title:"Выплата процентов"}):null,l?Wn({isRemoteRegistration:t,callback:r,title:"Оформление"}):null]}),Qn={CreditCalculatorForm:An,DepositCalculatorForm:qn,BusinessDepositCalculatorForm:Tn,BonusCalculatorForm:on},el=(e,t)=>{const n=e?.calcType;if(!n||!(n in Qn))return null;const l=Qn[n];return u("section",{className:"box-border relative bg-white flex shrink-0 self-start basis-full",role:"listitem",children:p("div",{className:"box-border p-9 w-full",children:[e?.title?u(T,{className:"text-center mb-6",title:e.title}):null,u(l,{...e})]})},String(t))},tl=x((({className:e="",calculatorTabs:t=[],...n})=>{const a=t.map((e=>e.nav||{})),i=t.map((({calculatorBlock:e})=>e||{})),[s,o]=l(0),c=r((e=>o(e)),[]),[d,m]=Ht({itemCount:t?.length,visibleItemCount:3});return p(k,{className:`box-border overflow-hidden relative w-100 ${e}`,...n,children:[p("div",{className:"bg-white",children:[a.length>1?nl({activeIndex:d,tabsNav:a,slideIndexShift:s,onClick:c}):null,Gt({...m,btnClass:["left-3","right-3"],className:"top-8"})]}),u("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:i?.length?i.map(el):null})]})}));function nl({activeIndex:e,tabsNav:t,slideIndexShift:n,onClick:l}){return p("div",{children:[u("div",{style:{transform:`translateX(-${388*e}px)`},className:"flex flex-col justify-end items-center h-[126px] pt-9 box-border duration-1000",children:u("div",{className:"w-full flex flex-nowrap items-end gap-2",children:t.map(((e,t)=>function({tab:e,i:t,isActive:n,onClick:l}){const a=n?"h-[88px] w-[387px] min-w-[387px] p-5 border-none bg-primary-main text-white":"h-[77px] w-[328px] min-w-[328px] px-5 py-4 ease-in duration-300 bg-white text-primary-text",r=n?"text-xl mb-1.5":"text-l mb-[3px]",i=n?"text-l-light text-white":"text-m-light text-secondary-text",s=n?"":"text-primary-main",o=e?.icon?.iconVersion,c=n?"white":"normal";return p("button",{type:"button",onClick:l,"aria-label":e?.title,className:`box-border relative border border-gray cursor-pointer text-left border-b-0 flex hover:h-[88px]\n ${a}`,children:[u(ot,{className:`h-6 w-6 min-w-6 min-h-6 mr-4 ${s}`,image:{...e?.icon,iconVersion:o??c},width:"24",height:"24"}),p("div",{className:"border-0",children:[u("div",{className:`${r}`,children:e?.title}),u("div",{className:`${i}`,children:e.description})]})]},String(t))}({tab:e,i:t,isActive:Boolean(t===n),onClick:()=>l(t)})))})}),u("div",{className:"w-full h-2 bg-primary-main"})]})}const ll=e=>(e.match(/\./g)||[]).length>1?e.slice(0,e.lastIndexOf(".")):e,al=e=>{const t=0===e.indexOf("0")&&2===e.length?e.replace("0","0."):e;return t.startsWith(".")?t.replace(".","0."):t},rl=e=>String(e.replace(",",".").replace(/[^.\d]/g,"")),il=x((({className:e="",onChange:t,minValue:n=0,maxValue:l=3e5,...a})=>{const i=r((e=>{if(!t)return;const a=ll(al(rl(Xe(e))));const r=sl(a,He(Number(a),n,l));t(String(r))}),[t]),s=r((e=>{var n;t&&t((n=e,new Intl.NumberFormat("ru-RU",{minimumFractionDigits:0,maximumFractionDigits:2}).format(Number(Xe(n))).replace(",",".")))}),[t]);return u(se,{className:e,inputClassName:"w-full",onChange:i,onBlur:s,...a,children:u("span",{className:"text-xl-light absolute right-4 bottom-4",children:"₽"})})})),sl=(e,t)=>Number(e)===t?e:String(t),ol=x((({className:e="",title:t="Укажите сумму перевода",label:n="Сумма перевода",placeholder:a="1500",button:i,...s})=>{const[o,c]=l(""),d=r((e=>c(e)),[]),m=!Number(Xe(o)),h=m?Q({version:i?.version}):ee({className:"text-white",version:i?.version}),x=H();return p(k,{className:`p-12 flex flex-col items-center ${e}`,...s,children:[t?u(T,{className:"max-w-[684px] pb-9",headingType:"h2",title:t}):null,p("form",{className:"w-[468px]",method:"POST",action:"https://www.rshb.ru/p2p/",children:[u(il,{name:"amount",value:o,onChange:d,valid:""===o||!m,placeholder:a,label:n}),i?.text?u("button",{type:"submit",className:`w-full p-4 mt-6 ${h} `,disabled:m,...x(i),children:i.text}):null]})]})})),cl=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),dl=[];function ml(e,t,{className:n,...l}={}){const{key:a,blockDecorator:r=cl,blocksRegistry:i={},ancestors:s=dl}=t,{type:o}=e;o&&o in i||console.warn(`No block with "${o}" is registered`);const c=o&&i[o];return r({blockClassName:w("scroll-mt-12",n,e.style||"col-span-12"),block:e,ancestors:s,render:({block:n,blockClassName:r})=>{const{content:i}=n;return c?u(c,{className:r,block:e,options:t,...i,...l},a):null}},a)}const hl=[],ul=(e,{key:t,ancestors:n=hl,slotName:l=null,renderProps:a=ml,...r})=>(e||[]).map(((e,i)=>a(e,{...r,key:`${t||e.type}-${i}`,ancestors:r.parent?[...n||hl,[r.parent,l]]:n})));function pl({children:e,block:t,options:n,renderProps:l}){return e||(t&&n?ul(t.blocks,{...n,parent:t,renderProps:l}):null)}const xl=e=>({height:"calc(100vh - 242px)",minHeight:`${e||866}px`}),gl=x((({className:e="",style:t,idx:n,activeIndex:l,observerOptions:a,children:i,onIntersection:s})=>{const o=v(r((e=>{e.length&&s&&s(n||0,e[e.length-1])}),[s,n]),a);return u("div",{className:`inline-block snap-always box-border ${e}`,style:t,"aria-current":Boolean(n===l),ref:o,children:i})})),bl=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]","min-w-[25%]"],fl=x((({className:e="",containerRef:t,activeIndex:n,visibleItemCount:l=0,gap:a=0,padding:i=0,listType:o="horizontal-list",snapAlign:c="snap-center",minHeight:d,children:m,onVisibleItemsChange:h,onVisibleIndicesChange:p})=>{const x={sensitivity:1,rootRef:t},g=s([]),b=r(((e,t)=>{const n=[...g.current||[]];n[e]=t,g.current=n,h&&h(n),p&&p(Nl(n))}),[h,p]),f=l>0?a*Number(l)-1:0,v="vertical-list"===o,N="horizontal-list"===o,y={...N?vl(i,f):{},...v?xl(d):{},gap:`${a}px`};return u("div",{className:w("box-border overflow-auto no-scrollbar",o,e),style:y,ref:t,children:(C=(e,t)=>u(gl,{className:w(c,l?bl[l-1]:"",v?"h-full":""),style:N?vl(i/4):{},activeIndex:n,idx:t,observerOptions:x,onIntersection:b,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(C):C(e,0))(m)});var C})),vl=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),Nl=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),yl={"horizontal-list":"mx-auto mt-5 w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},wl={"horizontal-list":"w-6","vertical-list":"h-6"},Cl=x((({containerRef:e,activeIndex:t,dotCount:n=0,listType:l="horizontal-list",version:a})=>n?u("div",{className:w("flex gap-2",yl[l],a?"group":""),...a?{"data-ver":a}:{},children:new Array(n).fill(null).map(((n,a)=>u("div",{className:`cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white group-data-transparent:bg-white ${a===t?wl[l]:"w-2 h-2 opacity-30"}`,role:"button","aria-hidden":!0,onClick:()=>(n=>{n!==t&&e?.current&&e.current.children[n]?.scrollIntoView({behavior:"smooth",block:"nearest"})})(a)},String(a))))}):null)),kl=e=>t=>e.scrollWidth/t,Sl=e=>(t,n)=>{e.scrollBy({left:n*kl(e)(t),behavior:"smooth"})},Il=({itemCount:e,isCyclic:t,onVisibleIndicesChange:n})=>{const a=s(null),[i,o]=l([]),c=r((e=>{o((t=>{return(n=t)===(l=e)||Boolean(n&&l&&n?.length===l?.length&&n.every(((e,t)=>e===l[t])))?t:e;var n,l})),n&&n(e)}),[e]),[d,m]=i.length?[yn()(i),fn()(i)]:[-1,-1],h=d>0,u=m<e-1,p=r((()=>{var n;a.current&&(t&&!h?(n=a.current).scrollTo({left:n.scrollWidth,behavior:"smooth"}):Sl(a.current)(e,-1))}),[t,e,h]),x=r((()=>{a.current&&(t&&!u?a.current.scrollTo({left:0,behavior:"smooth"}):Sl(a.current)(e,1))}),[e,t,u]);return[a,{scrollLeft:p,scrollRight:x,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]},Tl="absolute top-[calc(50%-24px)] z-40",$l="absolute top-0 bottom-0 z-40 w-[84px] pointer-events-none",Bl=x((({scroll:e,arrowsPadded:t,isBlur:n,onScrollLeft:l,onScrollRight:a,hasEdgeBlocks:i,activeIndex:s,itemCount:o})=>{const{canScrollLeft:c,canScrollRight:d,scrollLeft:m,scrollRight:h}=e,x=i?s>0:c,g=i?s<o-1:d,b=r((()=>{i?(c&&s!==o-1&&m(),l()):m()}),[m,l,i,c,s,o]),f=r((()=>{i?(d&&0!==s&&h(),a()):h()}),[h,a,i,c,s,o]);return p("div",{children:[Rl(n,e),x?u(Wt,{className:w(Tl,t?"left-8":"left-0"),onClick:b}):null,g?u(Kt,{className:w(Tl,t?"right-8":"right-0"),onClick:f}):null]})})),Rl=(e,t)=>(t.canScrollLeft||t.canScrollRight)&&e?p("div",{children:[u("div",{className:w($l,"left-0 bg-opacity-from-white")}),u("div",{className:w($l,"right-0 bg-opacity-to-white")})]}):null,Ml=x((({className:e="",itemCount:t,visibleItemCount:n,isBlur:a=!0,isCyclic:i=!1,arrowsPadded:s=!0,isPadding:o=!0,showDots:c=!1,isAlignCenter:d=!1,...m})=>{const{blocks:h=[]}=m.block||{},x=t||h?.length,[g,b]=l(Math.floor((n||0)/2)),f=r((()=>b((e=>e+1))),[]),v=r((()=>b((e=>e-1))),[]),[N,y]=Il({itemCount:x,isCyclic:i}),[C]=y.visibleIndicesRange,S=h&&"CarouselBankHistoryCard"===h[0]?.type;return u(k,{className:w(jl(o),"group-data-secondary:bg-primary-main group-data-secondary:text-white",e),...m,children:p("div",{className:w(_l(d),"relative max-w-full"),children:[u(fl,{containerRef:N,visibleItemCount:n,snapAlign:"snap-start",gap:4,onVisibleIndicesChange:y.handleVisibleIndicesChange,children:pl({...m,renderProps:S?(e,t)=>ml(e,t,{blocksLength:h?.length,activeIndex:g}):ml})}),u(Bl,{scroll:y,isBlur:a,arrowsPadded:s,onScrollLeft:v,onScrollRight:f,hasEdgeBlocks:S,activeIndex:g,itemCount:x}),c?Vl(N,C,t):null]})})}));Ml.childrenTypes=["CarouselCard","CarouselBankHistoryCard","CarouselCatalogCard","CarouselInvestmentCard","CarouselProductCard","CarouselProgramsCard","CarouselRecommendationCard","CarouselTariffsCard","CarouselRichTextCard","CarouselInvestmentCard","CarouselEventCard"];const jl=e=>e?"p-12":"",_l=e=>e?"flex justify-center":"",Vl=(e,t,n)=>u(Cl,{containerRef:e,activeIndex:t,dotCount:n,listType:"horizontal-list"}),Ll=x((({title:e,description:t,blocksLength:n=0,activeIndex:l,options:a})=>{const r=Number(a?.key?.split("-").slice(-1)[0])||0;return u(k,{className:"flex h-[485px]",children:u("div",r===l?{className:"relative flex items-center w-full",children:u(Mt,{headlineVersion:"M",title:e,description:t,align:"text-left",className:w("absolute z-10 h-[385px] w-[440px] p-8 text-white shadow-dark-blue",Dl(r,n),zl(r))})}:{className:"flex w-full items-center justify-center",children:u("div",{className:w("flex justify-center items-center h-[300px] w-[340px] font-mohave text-title-large tracking-[-0.03em]",zl(r)),children:u("span",{className:Pl(r),children:e})})})})})),zl=e=>{switch(e%3){case 0:default:return"bg-primary-main";case 1:return"bg-green-light";case 2:return"bg-yellow-light"}},Pl=e=>{switch(e%3){case 1:case 2:return"gradient-color-text-on-yellow";default:return"gradient-color-text-on-green"}},Dl=(e,t)=>0===e?"left-9":e===t-1?"right-9":"-left-[25px]",Ol="absolute border border-solid border-gray w-full h-full",Al={normal:"min-w-[970px]",small:"min-w-[355px]"},El=x((({className:e="",button:t,description:n,title:l,carouselVersion:a="normal",version:r=""})=>u("section",{className:`flex pb-9 pl-12 border-box h-full ${Al[a]} ${e}`,children:p("div",{className:"relative w-full",children:[u("div",{className:`${Ol} z-10 top-9 right-12 bg-green-dark`}),u("div",{className:`${Ol} z-10 top-6 right-8 bg-green`}),u("div",{className:`${Ol} z-10 top-3 right-4 bg-green-light`}),p("div",{className:"relative h-full bg-white z-10 p-10 border border-solid border-green-light",children:[u(Mt,{className:"!p-0",title:l,description:n,headlineVersion:"L",align:"text-left",version:r}),It([t],{className:"mt-14"})]})]})}))),Fl={black:"bg-black",white:"bg-white"},Ul=x((({className:e="",title:t,description:n,image:l,price:a,button:r,colors:i,...s})=>p(k,{className:`border box-border border-gray p-7 min-w-[392px] h-full flex flex-col justify-left ${e}`,...s,children:[l?.src?u(ot,{className:"mb-5 flex justify-center",image:l}):null,t?u(T,{headingType:"h6",as:"h4",className:"text-left mb-1.5",title:t}):null,n?u("div",{className:"mb-4",children:u(ae,{size:"text-m",align:"text-left",font:"font-light",children:n})}):null,i?.length?p("div",{className:"flex mb-4 text-secondary-text",children:[u("div",{className:"mr-1.5",children:u(re,{size:"text-s",align:"text-left",font:"font-light",children:"Доступные цвета:"})}),i.map(Hl)]}):null,a?p(re,{size:"text-h3",align:"text-left",children:[a," ₽"]}):null,It([r],{buttonClassName:"mt-5 w-full"})]}))),Hl=(e,t)=>u("div",{role:"figure",className:`w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${Fl[e]}`},String(t)),Xl=x((({className:e="",href:t,target:n,children:l})=>{const a=H()({href:t,target:n});return u(t?"a":"div",{className:w("block",e),...t?a:{},children:l})})),Wl=x((({className:e="",icon:t,title:n,description:l,href:a,target:r,...i})=>u(k,{className:w("w-[365px]",e),...i,children:p(Xl,{className:"flex flex-col",href:a,target:r,children:[t?.icon?u(ot,{image:t}):null,t?.src?u(ot,{image:t}):null,n?u(T,{headingType:"h6",as:"h4",className:"text-left pt-3 mb-2",title:n}):null,l?u("div",{className:"mb-4",children:u(re,{font:"font-light",size:"text-m",color:"text-secondary-text",children:l})}):null]})}))),Kl=x((({className:e="",title:t="",buttons:n,image:l,children:a})=>p("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,p("div",{className:"flex grow w-full justify-between",children:[p("div",{className:"flex flex-col justify-between w-full",children:[u("div",{className:"h-full",children:a}),n?u("div",{className:"mt-auto pt-8",children:n}):null]}),l]})]}))),Gl={1:"flex-col",2:"gap-x-10 flex-wrap"},Jl=x((({additionalDescription:e,cardsList:t=[],className:n="",columnsMode:l=1,description:a,image:r,title:i,...s})=>{const o=i?u(T,{headingType:"h4",as:"h3",className:"mb-3.5 z-10",title:i}):null,c=r?.src?u(ot,{className:"absolute bottom-0 right-0 m-0",image:r}):null;return u(k,{className:["relative box-border text-left p-9 w-[697px]","border border-solid border-gray group-data-secondary:border-white/50",n].join(" "),...s,children:p(Kl,{title:o,image:c,children:[p("div",{className:"flex justify-between mb-4",children:[a?u("div",{className:"w-1/3",children:u(re,{size:"text-h6",children:a})}):null,e?u(re,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:e}):null]}),t.length?u("ul",{className:`list-none m-0 p-0 flex gap-y-2 ${Gl[l]}`,children:Yl(t,l)}):null]})})})),Yl=(e,t)=>e.slice(0,[4,9][t-1]).map(((e,n)=>{return p("li",{className:2===t?"basis-[calc(50%-20px)]":"",children:[e?.parameter?u("div",{className:"pr-2.5",children:u(re,{size:(l=t,1===l?"text-h6":"text-l"),children:e.parameter})}):null,e?.parameterDescription?u(re,{size:"text-m",font:"font-light",color:"text-secondary-text",children:e.parameterDescription}):null]},String(n));var l})),ql="bg-transparent border-white border h-[70px] absolute w-[316px] top-0",Zl=x((({text:e,href:t="",target:n="",className:l=""})=>{const a=H()({href:t,target:n});return e?p("div",{className:`relative group/link cursor-pointer w-[328px] h-[82px] ${l}`,children:[p("a",{className:"absolute border border-primary-main ml-3 px-6 py-5\n text-l-light bg-white text-primary-text flex w-[316px]\n justify-between items-center group-hover/link:text-primary-main z-10",role:"link",...a,children:[u("div",{className:"p-0.5",children:e}),u("div",{className:"w-6 h-6",children:u(ot,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border brightness-0 group-hover/link:brightness-100",image:{icon:"ArrowRightIcon",iconVersion:"black"},imageClassName:"group-hover/link:text-primary-main",width:"24",height:"24"})})]}),u("div",{className:`${ql} mx-1.5 mt-1.5`}),u("div",{className:`${ql} mt-3 mr-3`})]}):null})),Ql=x((({className:e="",additionalDescription:t,description:n,links:l,title:a,...r})=>p(k,{className:`flex w-full p-10 overflow-hidden justify-between ${e}`,...r,children:[p("div",{className:"flex flex-col max-w-96 pr-9 text-white text-xl-light",children:[u(Mt,{isPadding:!1,title:a,description:n,as:"h1",align:"text-left"}),t?u(Mt,{className:"pt-6",isPadding:!1,description:n,align:"text-left"}):null]}),l?.length?ea(l):null]}))),ea=e=>{const t=Math.ceil(e.length/10);return u(Ml,{className:"min-w-[832px] w-[832px]",isBlur:!1,isCyclic:!0,itemCount:t,arrowsPadded:!1,showDots:!0,children:new Array(t).fill(null).map(((t,n)=>u("div",{className:"w-[672px] min-w-[672px] ml-10 mr-10 flex flex-wrap self-start",children:e.slice(10*n,10*(n+1)).map(((e,t)=>u(Zl,{className:"m-1",...e},String(t))))},String(n))))})},ta={L:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4",M:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3",S:"w-1 h-1 min-w-1 min-h-1 mr-2"},na=x((({className:e="",isDotted:t=!0,children:n,size:l="M"})=>p("div",{className:`font-sans flex items-baseline ${e}`,role:"listitem",children:[t?u("div",{children:u("div",{className:`rounded-full align-middle inline-block bg-primary-text group-data-secondary:bg-white ${ta[l]}`})}):null,u("span",{children:n})]}))),la={S:"text-l-light",M:"text-h6",L:"text-h5"},aa={S:"ml-2",M:"ml-3",L:"ml-4"},ra=x((({className:e="",hasIndent:t,isDotted:n,itemClassName:l="",items:a,listItemSize:r="M"})=>a?.length?u("section",{className:`text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text ${la[r]} ${t?aa[r]:""} ${e}`,role:"list",children:a.map(((e,t)=>u(na,{className:l,isDotted:n,size:r,children:e},String(t))))}):null)),ia=x((({additionalDescription:e,align:t="text-center",button:n={},className:l="",description:a,headlineSmallVersion:r="H6",href:i,icon:s,isDotted:o=!0,isFullWidth:c=!0,items:d=[],target:m,title:h,version:u="primary",...x})=>p(k,{className:w("h-full flex flex-col justify-between min-w-[260px]","box-border border-solid border border-gray",t,l),version:u,...x,children:[p(Xl,{className:"p-6",href:i,target:m,children:[sa(s),oa(r,h),ca(a,h),ma(d,o,u),da(e)]}),It([n],{className:w("p-6 pt-0",c?"":"justify-center"),isVertical:!!c})]}))),sa=e=>p("div",{className:"flex justify-center",children:[e?.src?u(ot,{className:"mb-5",image:e}):null,e?.icon?u(ot,{className:"w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full",image:e}):null]}),oa=(e,t)=>t?u("div",{children:u(re,{size:Rt[e],children:t})}):null,ca=(e,t)=>e?u("div",{className:t?"mt-2":"",children:u(ae,{size:"text-l",children:e})}):null,da=e=>e?u("div",{className:"mt-auto",children:u(re,{size:"text-m",font:"font-light",color:"text-secondary-text group-data-secondary:text-white/80",children:e})}):null,ma=(e,t,n="primary")=>e?.length?u(ra,{className:"max-w-[308px] mt-2 text-s "+("primary"===n?"!text-secondary-text":""),itemClassName:"text-left",items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:t}):null,ha=x((({className:e="",title:t,icon:n,list:l=[],href:a,target:r,...i})=>u(k,{className:w("border border-gray",e),...i,children:p(Xl,{className:"flex",href:a,target:r,children:[p("div",{className:"w-[200px] min-w-[200px] self-center",children:[n?.icon?u(ot,{image:n}):null,n?.src?u(ot,{image:n}):null]}),p("div",{className:"p-8 pl-3 w-full",children:[t?u(T,{className:"mb-3.5",headingType:"h5",title:t}):null,l.length?u("div",{className:"flex flex-col gap-3",children:l?.map(ua)}):null]})]})}))),ua=(e,t)=>p("div",{className:"break-words",children:[e.title?u("div",{className:"text-h6",children:e.title}):null,e.description?u("span",{className:"text-l-light mt-1",children:e.description}):null]},String(t)),pa=[{origins:["t.me","telegram.org"],iconMapped:{icon:"TelegramIcon"},label:"Телеграм"},{origins:["vk.com"],iconMapped:{icon:"VKIcon"},label:"ВКонтакте"},{origins:["ok.ru"],iconMapped:{icon:"OkIcon"},label:"Одноклассники"},{origins:["apps.apple.com"],iconMapped:{icon:"AppleIcon"},label:"App Store"},{origins:["play.google.com"],iconMapped:{icon:"PlayMarketIcon"},label:"Google Play"},{origins:["youtube.com"],iconMapped:{icon:"YoutubeIcon"},label:"Youtube"}],xa={default:"w-14 h-14",small:"w-12 h-12"},ga=(e,t)=>e?"":`group/media flex items-center justify-center box-border ${xa[t]}`,ba=x((({buttonSize:e="default",rounded:t=!1,icon:n,...l})=>{const{href:a,version:r,text:i=""}=l,{iconMapped:s,label:o}=pa.find((({origins:e})=>e.some((e=>a?.includes(e)))))||{},c=fa(n)??s;return u(te,{className:w(t?"rounded-full":"rounded-md","border border-solid hover:border-transparent","group-data-primary:border-main-divider","hover:bg-primary-main hover:text-black","group-data-secondary:bg-white border-main-divider group-data-secondary:hover:bg-secondary-hover","group-data-gray:border-green",ga(i,e)),"aria-label":o,rel:"noopener noreferrer",target:"_blank",text:i,version:r,...l,children:c&&!i?u(ot,{image:c,imageClassName:"group-hover/media:text-white",width:"24",height:"24"}):null})})),fa=e=>e?.src||e?.icon?e:void 0,va=x((({className:e="",media:t,children:n,buttonSize:l})=>p("div",{className:"font-sans",children:[u("div",{className:`flex gap-1 ${e}`,children:t?.map(((e,t)=>u(ba,{buttonSize:l,...e},String(t))))}),u(re,{size:"text-s-light",color:"text-secondary-text",children:n})]}))),Na=x((({className:e="",description:t,href:n,icon:l,items:a=[],socialMedia:r=[],target:i,title:s,align:o="text-left",version:c="primary",...d})=>u(k,{className:w("relative p-7 min-w-[524px] min-h-[218px] h-full box-border group-data-gray:bg-main-divider/50","border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider",e),version:c,...d,children:p(Xl,{href:n,target:i,children:[u(Mt,{className:"mb-4",title:s,description:t,headlineVersion:"S",isPadding:!1,align:o}),p("div",{className:"w-1/2 h-full flex flex-col flex-1 justify-end",children:[a.length?u(ra,{className:"flex flex-col gap-2",itemClassName:"text-l-light",items:a}):null,r.length?u(va,{className:"pt-10",media:r}):null]}),ya(l)]})}))),ya=e=>p("div",{className:"absolute bottom-0 right-0",children:[e?.icon?u(ot,{image:e}):null,e?.src?u(ot,{image:e}):null]}),wa=x((e=>{const{__html:t="",richVersion:n=""}=e;return u("div",{className:w(n,"md-container"),dangerouslySetInnerHTML:{__html:t}})})),Ca=x((({className:e="",__html:t,richVersion:n="striped",...l})=>u(k,{className:w("p-9 border border-gray min-w-96",e),...l,children:u(wa,{__html:t,richVersion:n})}))),ka=x((({className:e="",isFoldButtonOnTop:t=!1,unfoldedByDefault:n=!1,renderFoldableSection:a,renderFoldButton:i})=>{const[s,o]=l(n),c=r((()=>{o((e=>!e))}),[]),d=a({isUnfolded:s,onToggle:c}),m=i?i({isUnfolded:s,onToggle:c}):null;return p("div",t?{className:e,children:[m,d]}:{className:e,children:[d,m]})})),Sa=x((({className:e="",isUnfolded:t,children:n})=>{const l=s(null);return a((()=>{l.current&&(l.current.style.maxHeight=t?`${l.current.scrollHeight}px`:"")}),[t,n?.length]),u("div",{ref:l,className:`transition-max-h duration-300 overflow-hidden ${l.current||!t?"max-h-0":""} ${e}`,children:n})})),Ia=x((({className:e="",title:t,icon:n,isHighlighting:l,button:a,cardCells:r=[],...i})=>{const s=r.map(Ra),o=s.slice(0,1),c=s.slice(1);return p(k,{className:w("relative border border-gray p-8 flex flex-col",$a(l),e),...i,children:[l?Ma():null,Ta(n),t?u(T,{className:"text-center pt-2",headingType:"h5",title:t}):null,a?u(te,{className:"w-full mt-4",...a}):null,r.length?u(ka,{renderFoldableSection:({isUnfolded:e})=>p("div",{children:[o,u(Sa,{isUnfolded:e,children:c})]}),renderFoldButton:r.length>1?Ba:null}):null]})})),Ta=e=>p("div",{className:"w-[267px] min-w-[267px] self-center",children:[e?.src?u(ot,{image:e}):null,e?.icon?u(ot,{image:e}):null]}),$a=e=>e?"mt-8 pt-20":"mt-20 pt-8",Ba=({isUnfolded:e,onToggle:t})=>p("button",{className:"w-full cursor-pointer text-primary-main pt-5 flex justify-between items-center",onClick:t,children:[u("div",{children:e?"Скрыть":"Подробнее о тарифе"}),u(fe,{className:"text-primary-text",name:e?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16"})]}),Ra=(e,t)=>{const{title:n,description:l,buttons:a}=e;return p("div",{className:"py-5 border-b border-main-divider",children:[n?u("div",{className:"text-secondary-text text-m-light opacity-80",children:e.title}):null,l?u("div",{className:"text-primary-text text-h6 mt-1",children:e.description}):null,a?.length?u("div",{className:"text-primary-main",children:It(a)}):null]},String(t))},Ma=()=>p("div",{className:"absolute -top-7 -right-4 h-[60px] w-[60px] bg-white flex flex-col items-center justify-center rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:[u(fe,{iconVersion:"black",name:"HeartIcon",width:"23",height:"22"}),u(ae,{size:"text-s",font:"font-normal",align:"text-center",color:"text-primary-text",children:"ХИТ"})]}),ja="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",_a="border-gray border-solid border",Va="border-main-divider border border-t-0 border-x-0",La="w-[200px] mr-6",za=x((({icon:e,image:t,title:n,link:l})=>p("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${_a} ${ja}`,role:"columnheader",children:[e&&!t?.src&&u(ot,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}),t?.src&&u(ot,{className:"mb-[18px]",image:t}),n?u(T,{headingType:"h4",as:"h3",className:"text-center text-white",title:n}):null,l?.text&&u("div",{className:"mt-auto w-full",children:u(te,{href:l.href,target:l.target,className:"mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:u("div",{className:"text-xs-light font-medium py-[11px]",children:l.text})})})]}))),Pa={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},Da=x((({children:e,activeIndex:t,columnWidth:n,version:l="comparison"})=>u("div",{className:"flex flex-1 overflow-hidden",children:u("div",{className:Pa[l],style:{transform:`translateX(-${t*n}px)`},children:e})}))),Oa=x((({children:e})=>u("div",{className:"self-start flex flex-col",role:"row",children:u("div",{className:"flex",children:e})}))),Aa=x((({colHeaders:e,activeIndex:t})=>p(Oa,{children:[u("div",{className:La,role:"columnheader"}),u(Da,{activeIndex:t,columnWidth:336,children:e.map(((e,t)=>u(za,{...e},String(t))))})]}))),Ea=x((({cell:e,isFirstRow:t,isLastRow:n,isFillGradient:l})=>u("div",{className:`w-80 box-border flex flex-col ${_a} ${n?"border-t-0 rounded-b-md":"border-y-0"} ${l?ja:""}`,role:"cell",children:u("div",{className:`mx-7 h-full ${Va} ${l&&t?"border-t":""} ${n?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>Ha(e,t,l)))})}))),Fa=(e=!1)=>"text-xl m-0 "+(e?"text-white":""),Ua=(e=!1)=>"text-s opacity-80 "+(e?"text-white":"text-secondary-text"),Ha=({label:e,description:t},n,l)=>p("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e?u("h4",{className:Fa(l),children:e}):null,t?u("div",{className:Ua(l),children:t}):null]},String(n)),Xa=(e=!1)=>`text-s py-7 ${Va} w-[200px] mr-6 ${e?"border-b-0":"border-solid"}`,Wa=x((({row:{header:e,data:t},activeIndex:n,isColoredFirstColumn:l,isFirstRow:a,isLastRow:r})=>p(Oa,{children:[e?.title?u("div",{className:Xa(r),children:e.title}):null,t?.length?u(Da,{activeIndex:n,columnWidth:336,children:t.map(((e,t)=>u(Ea,{cell:e,isFirstRow:a,isLastRow:r,isFillGradient:l&&0===t},String(t))))}):null]}))),Ka=x((({rowData:e,isColoredFirstColumn:t,activeIndex:n,controls:l})=>{const{isScrollAvailable:a}=l;return p("div",{className:"relative",children:[e.map(((e,l,{length:a})=>u(Wa,{row:e,isFirstRow:0===l,isLastRow:l+1===a,activeIndex:n,isColoredFirstColumn:t},String(l)))),a?Gt({...l,btnClass:["top-[108px]","top-[44px]"],className:"right-7",isDisabled:!0}):null]})})),Ga=x((({columns:e=[],rowHeaders:t,isShowAllRow:n,visibleRowLength:l,isColoredFirstColumn:a})=>{const r=e?.map((({header:e})=>e||{})),i=e?.map((({data:e})=>e))||[],s=t?.map(((e,t)=>({header:e,data:i.map((e=>e?.[t]||[{}]))}))).slice(0,n?t.length:l),[o,c]=Ht({itemCount:e.length,visibleItemCount:3}),{isScrollAvailable:d}=c;return p("div",{children:[p("div",{role:"table",children:[r?.length?u(Aa,{colHeaders:r,activeIndex:o}):null,s?.length?u(Ka,{rowData:s,isColoredFirstColumn:a,activeIndex:o,controls:c}):null]}),d?u("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),Ja=x((({className:e="",title:t,rowHeaders:n,columns:a,visibleRowLength:i=0,isColoredFirstColumn:s=!1,...o})=>{const[c,d]=l(!i),m=r((()=>d((e=>!e))),[]);return p(k,{className:`py-12 pl-12 overflow-hidden relative ${e}`,...o,children:[u(T,{headingType:"h2",className:"max-w-[47rem] text-center mb-9 mx-auto",title:t}),u(Ga,{columns:a,rowHeaders:n,isShowAllRow:c,isColoredFirstColumn:s,visibleRowLength:i}),i?Ya({isShowAllRow:c,onClick:m}):null]})})),Ya=({isShowAllRow:e,onClick:t})=>u("div",{className:"pr-12",children:p("div",{className:"flex w-full",children:[u("div",{className:La}),u("button",{onClick:t,className:"mt-5 flex-1 border-gray border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main",children:u("div",{className:"font-sans text-xs-light font-medium py-3",children:e?"Скрыть":"Показать все параметры"})})]})}),qa=x((({className:e="",contacts:t,info:n,version:l="secondary",...a})=>p(k,{className:`flex p-12 ${e}`,version:l,...a,children:[n?.length?Za(n):null,t?.length?Za(t):null]}))),Za=e=>u("div",{className:"flex grow basis-0",children:e.map(((e,t)=>Qa({column:e,index:t})))}),Qa=({column:e,index:t})=>e?u("div",{className:"flex flex-col grow basis-0 pr-11 last:pr-0",children:e.map((({title:e="",description:t,additionalDescription:n,button:l},a)=>p("div",{className:"mt-6 first:mt-0",children:[u(Mt,{className:"!p-0",title:e,description:t,headlineVersion:"XS",align:"text-left"}),n?u("div",{className:"mt-1.5 opacity-80",children:u(ae,{size:"text-m",font:"font-light",children:n})}):null,l?u(te,{className:"mt-6",...l}):null]},String(a))))},`col-${String(t)}`):null,er=e=>"Image"===e?.errorContentType&&e?.image?u(ot,{image:e.image}):"Code"===e?.errorContentType&&e.code?u("div",{className:"font-mohave text-title-extra gradient-color-text",children:e.code}):null,tr=x((({className:e="",title:t,subtitle:n,error:l,button:a,...r})=>{return p(k,{className:w("flex flex-col justify-center items-center",(i=a?.text,i?"py-20 pt-3 pb-1":"mb-16 pb-2 mt-24 pt-3"),e),version:"transparent",...r,children:[u("div",{className:"flex justify-center py-20",children:er(l)}),t?u(T,{headingType:"h1",className:"text-left mb-4",title:t}):null,n?u("div",{className:"font-sans text-xl-light mb-7 max-w-[613px] text-center",children:n}):null,a?.text?u(te,{className:"py-4 px-9",version:a?.version,...a,children:a.text}):null]});var i}));var nr;!function(e){e.EUR="EUR",e.USD="USD",e.GBP="GBP",e.AUD="AUD",e.CNY="CNY",e.RUB="RUB"}(nr||(nr={}));const lr={USD:"DollarIcon",EUR:"EuroIcon",GBP:"DollarIcon",AUD:"DollarIcon",CNY:"DollarIcon",RUB:"RoundRubleIcon"},ar=e=>e?sr.format(e):"",rr=(e,t)=>p("td",{className:"pt-4 pl-11",children:[u("div",{children:ar(e)}),u("div",{className:w("font-normal text-sm text-secondary-text",(t||0)>=0?"text-green":"text-red"),children:ar(t)})]}),ir=(e,t="")=>p("td",{className:"pt-4 pl-11",children:[u("div",{children:ar(e)}),u("div",{className:"font-normal text-sm text-green",children:t})]}),sr=new Intl.NumberFormat("ru",{style:"currency",currency:nr.RUB}),or=e=>u("th",{className:"pl-11",children:u(re,{size:"text-m-light",align:"text-left",color:"text-secondary-text",children:e})}),cr=x((({className:e="",currencies:t=[],actuality:n="",officeName:l="",...a})=>{const r=dr(t,4);return p(k,{className:w("font-sans text-primary-text py-10 bg-white",e),...a,children:[p("div",{className:"flex flex-row flex-grow-0 justify-between mx-10 mb-8",children:[u(T,{headingType:"h4",title:"Курс обмена валют в "+l,className:"whitespace-pre-wrap text-h4 mb-5"}),u("div",{className:"pl-11",children:u(re,{size:"text-m-light",align:"text-left",color:"text-secondary-text",children:n})})]}),u("div",{className:"flex flex-row ml-8 mr-14 pt-4 text-left",children:r.length>0?p("table",{className:w("h-fit w-fit",e),children:[u("thead",{children:p("tr",{children:[u("th",{children:u(re,{size:"text-m-light",align:"text-left",color:"text-secondary-text",children:"Валюта"})}),or("Купить"),or("Продать"),or("Лучшая покупка"),or("Лучшая продажа")]})}),u("tbody",{children:r.map((e=>(({title:e,buyPrice:t,buyDifference:n,sellPrice:l,sellDifference:a,buyOfficeName:r,sellOfficeName:i})=>p("tr",{className:"pb-1 text-h6",children:[u("td",{className:"pt-4",children:p("div",{className:"flex items-center",children:[e?u(ot,{image:{icon:lr[e]},width:"24",height:"24"}):null,u("span",{className:"ml-2",children:e})]})}),rr(t,n),rr(l,a),ir(t,r),ir(l,i)]},e))(e)))})]}):null})]})})),dr=(e,t)=>e.sort(((e,t)=>Number(e.id)-Number(t.id))).slice(0,t);var mr;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(mr||(mr={}));const hr=new Intl.NumberFormat("ru",{style:"currency",currency:mr.RUB}),ur=e=>e?hr.format(e):"",pr="text-left text-m-light text-secondary-text",xr=`${pr} pl-11`,gr={USD:"DollarIcon",EUR:"EuroIcon"},br=x((({className:e,exchangeCurrencyItems:t})=>p("table",{className:`h-fit w-fit ${e}`,children:[u("thead",{children:p("tr",{children:[u("th",{className:pr,children:"Валюта"}),u("th",{className:xr,children:"Купить"}),u("th",{className:xr,children:"Продать"})]})}),u("tbody",{children:t.map(fr)})]}))),fr=e=>{const t=e?.currency?.currency;return p("tr",{className:"pb-1 text-h6",children:[u("td",{className:"pt-4",children:p("div",{className:"flex items-center",children:[t?u(ot,{image:{icon:gr[t]},width:"24",height:"24"}):null,u("span",{className:"ml-2",children:t})]})}),u("td",{className:"pt-4 pl-11",children:ur(e?.saleExchangeRate)}),u("td",{className:"pt-4 pl-11",children:ur(e?.buyExchangeRate)})]},t)},vr=x((({className:e="",address:t})=>p("div",{className:`flex ${e}`,children:[u(ot,{image:{icon:"GpsIcon"},width:"24",height:"24"}),p("div",{className:"ml-3",children:[t?u("p",{className:"text-primary-main m-0 mb-1 text-l",children:t}):null,u("p",{className:"text-secondary-text m-0 text-m",children:"Курс указан для заданного офиса"})]})]}))),Nr=(e,t,n)=>{const l=Number(yr(e))*Math.pow(t,n?-1:1);return Number.isInteger(l)?l:((e,t=2)=>{const n=10**t;return Math.round(parseFloat(String(e))*n)/n})(l)},yr=e=>e.replace(/[^\d.,]/g,"").replace(",","."),wr=e=>{return(t=[[e=>e.value!==mr.RUB&&e.oppositeValue!==mr.RUB,()=>e.handleConvert(e.value,mr.RUB)],[e=>e.value===mr.RUB&&e.oppositeValue===mr.RUB,()=>e.handleConvert(e.value,mr.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,n]=t.find((([t])=>t(e)))||[];return n})(e)?.();var t};function Cr(e){const{placeholder:t,rates:n,selected:l,value:a,setValue:r,setSelected:i}=e,s=n.map((e=>({key:e?.currency?.currency??"",text:e?.currency?.currency??""}))),o={key:l,text:l};return p("div",{className:"relative flex",children:[u(se,{className:"shrink-0 text-l w-full appearance-none mr-[-90px]",placeholder:t,type:"text",value:a,onChange:r}),s.length?u(ye,{isBorder:!1,onChange:e=>i(e.key),options:s,value:o}):null]})}const kr=x((({className:e="",currencyRatesBuy:t,currencyRatesSell:n,button:a})=>{const[i,s]=l({inputSell:"",inputBuy:"",selectSell:t?.[0]?.currency?.currency||mr.RUB,selectBuy:n?.[0]?.currency?.currency||mr.USD}),o=r((e=>s((t=>({...t,...e})))),[]);return p("div",{className:`grid gap-[18px] pt-2 ${e}`,children:[Cr({placeholder:"Хочу продать",rates:n,selected:i.selectSell,setSelected:Sr(i,o,n),value:i.inputSell,setValue:e=>Tr(o,n)(e,i.selectSell,i.selectBuy)}),Cr({placeholder:"Получу",rates:t,selected:i.selectBuy,setSelected:Ir(i,o,t),value:i.inputBuy,setValue:e=>$r(o,t)(e,i.selectBuy,i.selectSell)}),a?.text?u(te,{className:"py-4 mr-1",version:a?.version,...a,children:a.text}):null]})})),Sr=(e,t,n)=>l=>{t({selectSell:l}),wr({value:l,oppositeValue:e.selectBuy,handleConvert:(l=e.selectSell,a=e.selectBuy)=>{Tr(t,n)(e.inputSell,l,a)}})},Ir=(e,t,n)=>l=>{t({selectBuy:l}),wr({value:l,oppositeValue:e.selectSell,handleConvert:(l=e.selectBuy,a=e.selectSell)=>$r(t,n)(e.inputBuy,l,a)})},Tr=(e,t)=>(n,l,a)=>{e({inputSell:yr(n),selectBuy:a});const r=t.find((e=>e.currency?.currency===a))?.buyExchangeRate||t.find((e=>e.currency?.currency===l))?.saleExchangeRate;r&&e({inputBuy:String(Nr(n,r,l===mr.RUB)||"")})},$r=(e,t)=>(n,l,a)=>{e({inputBuy:yr(n),selectSell:a});const r=t.find((e=>e.currency?.currency===a))?.saleExchangeRate||t.find((e=>e.currency?.currency===l))?.buyExchangeRate;r&&e({inputSell:String(Nr(n,r,l===mr.RUB)||"")})};const Br=async e=>{const t=await Rr(),n=t?.code||"000";return{region:t,exchangeRates:await Mr(e,n)}},Rr=async()=>{try{return await j("/api/v1/region",{method:"GET"})}catch(e){return console.log(e),{}}},Mr=async(e,t)=>{try{return await j(e+`?regionCode=${t}`,{method:"GET"})}catch(e){return console.log(e),{}}},jr=x((({className:e="",title:t="Курсы обмена валют",button:n,...l})=>{const{exchangeRates:a}=function(){const{data:e}=B("/api/v1/exchangerates",Br);return e||{}}(),r=_r(a?.exchangeRate?.currencies),i=r.filter((e=>e.buyExchangeRate));i.unshift({currency:{currency:mr.RUB}});const s=r.filter((e=>e.saleExchangeRate));return s.push({currency:{currency:mr.RUB}}),u(k,{className:`p-9 box-border min-h-80 ${e}`,...l,children:u(Kl,{title:u(T,{headingType:"h4",title:t,className:"whitespace-pre-wrap text-h4 mb-5"}),children:p("div",{className:"flex",children:[p("div",{className:"mr-14 pt-4",children:[r?u(br,{className:"mb-[30px]",exchangeCurrencyItems:r}):null,u(vr,{address:a?.address})]}),r.length&&i.length&&s.length?u(kr,{className:"grow",currencyRatesBuy:i,currencyRatesSell:s,button:n}):null]})})})})),_r=e=>e?.filter((e=>1===e?.currency?.id||2===e?.currency?.id))||[],Vr=x((({className:e="",label:t,icon:n,dataTheme:l="",disabled:a=!1,onClick:r})=>p("button",{className:w("flex justify-center w-full px-0 py-5 border border-transparent outline-none focus:border-primary-text",a?"bg-main-divider text-main-disabled hover:bg-main-divider":"bg-primary-main text-white hover:bg-primary-hove",e),onClick:r,disabled:a,"data-theme":l,children:[u("span",{className:"text-h4 pr-3",children:t}),n?u(ot,{image:{icon:n,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20"}):null]}))),Lr=({isUnfolded:e,onToggle:t})=>u(Vr,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:["Развернуть","Скрыть"][Number(e)],onClick:t}),zr=["ArrowDownIcon","ArrowUpIcon"],Pr="grid grid-cols-12 gap-1 border-box",Dr=x((({label:e="",filtrationState:t={},topItemsCount:n=0,block:l,notFound:a,...r})=>{const i=l?.blocks?.filter((e=>{return n=t,l=e.content||{},Object.entries(n).map((([e,t])=>Array.isArray(t)?((e,t)=>n=>void 0===t[e]||t[e]?.every((t=>n[e]?.includes(t))))(e,n):((e,t)=>n=>void 0===t[e]||t[e]===n[e])(e,n))).every((e=>e(l)));var n,l}))||[],[s,o]=n>0?[i.slice(0,n),i.slice(n)]:[i,[]];return p("div",{children:[u("div",{className:w(i.length?"hidden":"block"),children:a?Or(a):null}),p("div",{className:w(i.length?"":"hidden"),children:[u("div",{className:w("mb-1",Pr),children:ul(s,{...r.options,parent:l})}),u(ka,{renderFoldableSection:({isUnfolded:e})=>u(Sa,{className:w(Pr,e?"mb-1":""),isUnfolded:e,children:ul(o,{...r.options,parent:l})}),renderFoldButton:({isUnfolded:t,onToggle:l})=>u(Vr,{className:w(n<1?"hidden":""),disabled:!o?.length,label:e,icon:zr[Number(t)],dataTheme:r.options?.page?.colorPalette,onClick:l})})]})]})}));function Or({title:e,description:t}){return p("div",{className:"bg-white py-20",children:[e?u("div",{className:"mb-2",children:u(ae,{align:"text-center",children:u(re,{size:"text-h4",children:e})})}):null,t?u(ae,{size:"text-xl",font:"font-light",align:"text-center",children:t}):null]})}const Ar=x((({value:e,onChange:t,items:n=[],multiple:l})=>n.map((n=>u(Te,{text:n.title,value:[e].flatMap((e=>e)).includes(n.value),onChange:()=>(n=>{if(l){const l=e?.includes(n);t&&t(l?e?.filter((e=>e!==n)):[...e||[],n])}else t&&t(e===n?void 0:n)})(n.value),type:l?"checkbox":"radio"},n.value))))),Er=(e,t)=>n=>{const l=e[n],a=l?.type;return"array"===a?Fr(n,t)(l):null},Fr=(e,t)=>n=>{const l=n?.items?.enum?.map(((e,t)=>({value:e,title:n?.items?.enumNames?.[t]||""})))||[];return p("div",{children:[n?.title?u("div",{className:"mb-4",children:u(re,{size:"text-m",font:"font-light",color:"text-secondary-text",children:n.title})}):null,u(Ar,{items:l,multiple:!0,...t(e)})]},e)},Ur=x((({className:e,filtrationSchema:t={},resetButton:n,...a})=>{const{formState:i,register:o,resetForm:c}=((e={})=>{const[t,n]=l(e),a=s({}),i=r((()=>n({})),[]);return{formState:t,register:e=>a.current?(a.current[e]||=t=>{n((n=>({...n,[e]:t})))},{value:t?.[e],onChange:a.current[e]}):{},resetForm:i}})();return p(k,{className:w(e),version:"transparent",...a,children:[p("form",{className:"flex justify-between bg-white p-9 mb-1",children:[u("div",{className:"flex gap-11",children:Object.keys(t).map(Er(t,o))}),n?u("div",{children:u(te,{className:"w-72",onClick:c,...n})}):null]}),u(Dr,{filtrationState:i,...a})]})}));function Hr(e,t={}){const{data:n}=B(`/wcms-resources/${e}.json`,j,{fallback:t});return n||{}}Ur.childrenTypes=["ProductTile"],Ur.childSchema=e=>e?.filtrationSchema||{};const Xr={"bg-white":"color",transparent:"white"},Wr={"bg-white":"text-primary-main",transparent:"text-white"},Kr=(e,t,n)=>u(ot,t?.src?{image:t,className:Wr[e],width:n?.width,height:n?.height,pathPrefix:"/wcms-resources/"}:{image:{icon:t?.icon||"LogoIcon",iconVersion:Xr[e]},className:Wr[e],width:n?.width,height:n?.height}),Gr={"bg-white":"text-primary-text",transparent:"text-white"},Jr=(e,t,n)=>u("span",{className:`${Gr[t]} ml-2.5 font-medium ${n||""}`,children:e||"Россельхозбанк"}),Yr=x((({className:e="",href:t,logo:n,children:l=n?.title,targetBlank:a,bgColor:r="bg-white",showTitle:i=!0})=>p("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"/",target:a?"_blank":"_self","aria-label":n?.title||"Россельхозбанк",children:[Kr(r,n?.image,{width:"40",height:"45"}),i?Jr(l||n?.title,r):null]}))),qr=x((({className:e,onClick:t})=>u("button",{className:w("visible peer-placeholder-shown:invisible w-6 h-6 p-1 bg-transparent border-none",e),onClick:t,title:"Закрыть",children:u(ot,{image:{icon:"CloseIcon"},width:"24",height:"24"})})));function Zr(e){throw new Error(e)}function Qr({onOpen:e,onClose:t}={}){a((()=>f.subscribe("dialog",(n=>{switch(n.type){case"open":e&&e(n);break;case"close":t&&t();break;default:Zr(n)}}))),[e,t])}function ei(e,...t){return e.map(((e,n)=>[e,...t.map((e=>e[n]))]))}const ti=e=>t=>{if(e===t)return 1;if(!e||!t)return 0;const{m:n,s1Matches:l,s2Matches:a}=function(e,t){const n=Math.max(0,Math.floor(Math.max(e.length,t.length)/2)-1),l=new Array(e.length),a=new Array(t.length);let r=0;for(let i=0;i<e.length;i++){const s=Math.max(0,i-n),o=Math.min(i+n,t.length-1);for(let n=s;n<=o;n++)l[i]||a[n]||e[i]!==t[n]||(r++,l[i]=!0,a[n]=!0)}return{m:r,s1Matches:l,s2Matches:a}}(e,t);if(0===n)return 0;const r=function(e,t,{s1Matches:n,s2Matches:l}){let a=0;for(let r=0,i=0;r<e.length;r++){if(!n[r])continue;let s=i;for(;s<t.length;s++)if(l[s]){i=s+1;break}e[r]!==t[s]&&a++}return a}(e,t,{s1Matches:l,s2Matches:a}),i=(n/e.length+n/t.length+(n-r/2)/n)/3,s=i>.7?.1*function(e,t){let n=0;for(;e[n]===t[n]&&n<4;)n++;return n}(e,t):0;return i+s*(1-i)};const ni=(e,t)=>(n,l)=>{for(const[a,r]of l)n.set(a,e(n.get(a)||t,r));return n},li=e=>e.toLowerCase().split(/[^0-9a-zа-я-]+/).filter((e=>e.length>=3&&!/[0-9a-z]/.test(e))),ai=e=>t=>e.map((([e,n])=>[ti(t)(e),n])).filter((([e])=>e>=.8)).map((([e,t])=>ii(t,e))).reduce(ni(Math.max,0),new Map),ri=e=>t=>{return ei(t,t.map((({title:e})=>e)).map((e=>t=>{const n=li(t||"");return n.length?((e=[])=>e.reduce(((e,t)=>e+t),0))(e.map((e=>vn(n.map(ti(e)))))):0})(e))).sort((l=([,e])=>e,n=(e,t)=>l(e)-l(t),(e,t)=>-n(e,t))).map((([e])=>e));var n,l},ii=(e,t)=>new Map(e.map((e=>[e,t]))),si=({basePathList:e=["/"],initialQuery:t="",wasOpened:n})=>{const[r,s]=l(t||"");a((()=>{null!=t&&s(t)}),[t]);const o=i((()=>e.map((e=>n?e:null))),[n,...e]),{data:c}=B(o,oi),[d,m]=l(null);return((e,t,n=300)=>{a((()=>{const t=setTimeout(e,n);return()=>{clearTimeout(t)}}),t)})((()=>{c&&m(c.map((e=>t=>{const{corpus:n,dictionary:l}=t||{};if(!(e&&n?.length&&l&&Object.keys(l).length))return[];const a=li(e);if(!a.length)return[];const r=Object.entries(l),i=[...a.map(ai(r)).reduce(ni(((e,t)=>e+t),0),new Map).entries()].filter((([,e])=>e>=.799*a.length)).map((([e])=>n[e]));return ri(a)(i)})(r)))}),[c,r]),[d,{value:r,onChange:s}]},oi=async(...e)=>(await Promise.allSettled(e.map((e=>M(D(e,"/","search.index.json")))))).map((e=>"fulfilled"===e.status?e.value:{})),ci=x((({className:e,isOpened:t,head:n,children:l,onClose:r})=>(a((()=>{const e=({key:e})=>{"Escape"===e&&r&&r()};return globalThis.document?.addEventListener("keydown",e),()=>{globalThis.document?.removeEventListener("keydown",e)}}),[r]),t?u("div",{className:w("fixed inset-0 bg-white text-l-light z-50 overflow-x-hidden overflow-y-scroll no-scrollbar",e),role:"dialog",children:p("div",{className:"relative container pb-12 min-h-full",children:[p("div",{className:"sticky bg-white pt-6 top-0",children:[u(qr,{className:"absolute top-3 -right-6",onClick:r}),n]}),l]})}):null)));function di(e=!1){const[t,n]=l(e),a=r((()=>n(!0)),[]),i=r((()=>n(!1)),[]),s=r((()=>n((e=>!e))),[]);return[t,{setValue:n,setTrue:a,setFalse:i,toggle:s}]}function mi(e){const[t,{setTrue:n,setFalse:a}]=di(),[i,o]=l({id:e}),c=s(t);c.current||=t;Qr({onOpen:r((t=>{t.id===e?(o(t),n()):a()}),[e]),onClose:a});const d=r((()=>{a(),f.fire("dialog",{type:"close"})}),[]);return{...i,isOpened:t,wasOpened:c.current,onClose:d}}const hi=x((({className:e,topItems:t})=>{const n=H({isRemote:!0});return u("div",{className:w("flex items-start justify-between",e),children:t?.map(n).map(ui)})})),ui=(e,t)=>{const{text:n,items:l,href:a,target:r,onClick:i}=e;return p("div",{className:"flex flex-col gap-3.5 w-1/4",children:[u("a",{className:"leading-5 text-l text-primary-text hover:text-primary-main no-underline",href:a,target:r||"_self",onClick:i,children:n||`Раздел ${t}`}),l?.map(((e,t)=>u(pi,{...e,basePath:a,index:t},String(t))))]},String(t))},pi=x((({text:e,index:t,basePath:n,...l})=>{const a=H({isRemote:!(!c.BASE_PATH||!n)&&!c.BASE_PATH.startsWith(n),basePath:n}),{href:r,target:i,onClick:s}=a(l);return u("a",{className:w("text-l-light text-secondary-text hover:text-primary-main no-underline","overflow-x-hidden overflow-ellipsis whitespace-nowrap"),href:r,target:i||"_self",onClick:s,children:e||`Раздел ${t}`})})),xi=x((({className:e,isMobile:t,value:n,autoFocus:l,onChange:a,onFocus:i})=>{const s=r((e=>{a&&a(e.target?.value||"")}),[a]);return p("div",{className:w("font-sans relative",e),role:"form",children:[u("div",{className:"absolute h-full flex items-center pl-4 pointer-events-none",children:u(ot,{image:{icon:"LoupeIcon"},width:"24",height:"24"})}),u("input",{className:w("h-12 pl-12 w-full text-l text-black outline-none box-border","border border-solid rounded-md border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text",t?"":"h-full"),value:n,type:"text",name:"search-bar-input",placeholder:"Поиск по сайту",autoFocus:l,onChange:s,onFocus:i})]})})),gi="search",bi=x((({topItems:e})=>{const t=mi(gi),n=e?.map((e=>e.href||"/")),[l,r]=si({basePathList:n,initialQuery:t.message,wasOpened:t.wasOpened}),s=i((()=>fi(e)(l)),[e,l]);return a((()=>function(e){for(const t of e.filter((({items:e})=>e?.length)))console.group(t.text),console.table(t.items,["text","href"]),console.groupEnd()}(s)),[s]),u(ci,{...t,head:u(xi,{className:"my-5",autoFocus:!0,...r}),children:u(hi,{topItems:s})})})),fi=e=>t=>e?.length&&t?.length?ei(e,t).map((([e,t])=>({...e,items:t?.map((({title:e,uri:t})=>({text:e,href:D("/",t)})))}))):[];const vi=x((({className:e,isMobile:t})=>{const[n,a]=l(""),i=r((()=>a("")),[]);Qr({onClose:i});const{open:s}=V(gi),o=r((e=>{a(e),Ni(e)&&s(e)}),[]);return p("div",{className:e,children:[u(xi,{isMobile:t,value:n,onChange:o}),t?u(qr,{className:"absolute top-2 right-3",onClick:i}):null]})})),Ni=e=>e&&e.length>=3,yi=x((e=>u(vi,{...e}))),wi=x((({className:e="",items:t,hasButton:n})=>p("div",{className:e,children:[t?.length?t.map(Ci):null,n?u(te,{version:"primary",className:"mb-6 w-full",href:"https://www.rshb.ru/feedback/question/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),Ci=(e,t)=>{const{type:n,text:l,description:a}=e;return p("div",{className:"mb-4",children:[u("div",{children:ki(n,l)}),u("div",{className:"mt-1 text-s-light text-secondary-text",children:a})]},String(t))},ki=(e,t="")=>{switch(e){case"tel":return u("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${Si(t)}`,children:t});case"email":return u("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return u("span",{children:t})}},Si=e=>e.replaceAll(/\D/g,""),Ii=x((({className:e="",index:t,text:n,...l})=>{const a=H(),{href:r,target:i,onClick:s}=a(l);return u("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:r,target:i,onClick:s,children:n||`Документ ${t}`})})),Ti=x((({className:e="",links:t})=>u("div",{className:e,children:t?.length?u("div",{className:"flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider",children:t.map(((e,t)=>u(Ii,{index:t,className:"text-l-light max-w-[292px]",...e},String(t))))}):null}))),$i=x((({className:e="",index:t,...n})=>{const l=H({isRemote:!0}),{href:a,target:r,text:i,onClick:s}=l(n);return u("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:a,target:r,onClick:s,children:i||`Документ ${t}`})})),Bi=x((({className:e="",links:t})=>p("div",{className:e,children:[u("div",{className:"pt-5",children:u("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?u("div",{className:"flex justify-start items-start gap-5 pt-2.5",children:t.map(((e,t)=>u($i,{index:t,...e},String(t))))}):null]}))),Ri="w-[204px]",Mi=x((({className:e="",...t})=>{const n=t.options?.page?.fallback,l=Hr(c.SITEMAP||"sitemap",n),{documents:a,relatedEnterprises:r,contacts:i,socialMedia:s,mobileApps:o,logo:d}=Hr(c.FOOTER||"footer",n);return p(k,{tag:"footer",className:`p-9 ${e}`,...t,children:[p("div",{className:"flex items-stretch gap-[54px] pb-[30px] xl:gap-8",children:[u(Yr,{className:Ri,logo:d}),u(yi,{className:"grow"})]}),p("div",{className:"flex items-stretch gap-[54px] xl:gap-8",children:[p("div",{className:"w-[204px] flex flex-col shrink-0 overflow-hidden",children:[u(wi,{items:i,hasButton:!0}),u(va,{media:s,children:"Соцсети"}),u(va,{className:"mt-6",media:o,children:"Мобильное приложение"})]}),u(hi,{className:"flex-grow",topItems:l?.topItems})]}),u(Ti,{className:"mt-[98px]",links:r}),u(Bi,{links:a})]})})),ji=x((({className:e="",title:t,description:n,calendar:l,...a})=>p(k,{className:`p-12 ${e}`,...a,children:[u(Mt,{className:"!p-0 mb-4",title:t,description:n,headlineVersion:"M"}),l?_i(l):null]}))),_i=e=>{const t=100/(e.reduce(((e,t)=>t?.month?.length?e+t.month.length:e),0)||1),n=e.filter((e=>e?.month?.length)).map((e=>({...e,flexBasis:`${e?.month?.length?e.month.length*t:""}%`})));return p("div",{className:"w-full flex flex-col justify-center mt-13",children:[u("div",{className:"flex w-full mb-3 text-h6 text-center",children:n.map((e=>Vi(e,t)))}),u("div",{className:"flex w-full",children:n.map(((e,t)=>p("div",{className:"pr-[11px] mr-3 border-r border-main-divider last:border-r-0 last:pr-0 last:mr-0",style:{flexBasis:e.flexBasis},children:[u("div",{className:"flex",children:Li(e)}),p("div",{className:"text-s-light text-primary-text mt-3",children:[u("span",{children:e.text})," ",u("span",{className:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},Vi=(e,t)=>e.month?.map(((e,n)=>u("div",{style:{flexBasis:`${t}%`},children:e.text},`monthName-${n}`))),Li=e=>e.month?.map((e=>e.image?.src?u("div",{className:"h-[207px] border-r pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0",children:u(ot,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),zi=864e5;function Pi(e,t,n=globalThis?.localStorage){const l=r((async(...l)=>{const a=`async:${e}`,r=function(e){const{data:t=null,timestamp:n=null}=e?JSON.parse(e):{};return t&&Date.now()-n<zi?t:void 0}(n.getItem(a));if(r)return r;const i=await t(...l);return n.setItem(a,JSON.stringify({data:i,timestamp:Date.now()})),i}),[e,t]);return B(e,l)}const Di=()=>{const e=globalThis.localStorage?.getItem("location");try{return e?JSON.parse(e):null}catch(e){return null}},Oi=e=>({href:t})=>P(L(t)?e.href:e.pathname).startsWith(P(t));const Ai=x((({className:e,searchTerm:t,onSearch:n})=>p("form",{className:`font-sans relative ${e}`,children:[u("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:t?null:u("label",{htmlFor:"search-bar-input",className:"text-secondary-text ",children:"Поиск по филиалам"})}),u("input",{id:"search-bar-input",className:"h-12 pl-4 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text",value:t,onChange:e=>n(e.target.value.toLowerCase()),type:"text",name:"location-search-bar-input"})]}))),Ei="location",Fi=x((({currentLocation:e,onChangeLocation:t,foreignOffices:n})=>{const a=mi(Ei),[i,s]=l(""),o=Hi(function(){const{data:e}=B("/api/v1/regions",j);return e||[]}()).sort(((e,t)=>e.name.localeCompare(t.name))),c=((e,t)=>{const n=new Map;for(const l of e){const e=t(l),a=n.get(e)||[];n.set(e,[...a,l])}return n})(o,Ui),d=r((e=>{a.onClose&&a.onClose(),t&&t(e)}),[a.onClose,t]);return p(ci,{...a,head:p("div",{children:[u(Xi,{currentLocation:e,onChangeLocation:d}),u(Ai,{onSearch:s,searchTerm:i,className:"mb-7"})]}),children:[i&&i.length>=3?u("div",{children:o.filter((({name:e})=>e&&ti(e.toLowerCase())(i.toLowerCase())>=.8)).map(Ki(d))}):u("div",{className:"columns-5",children:Array.from(c.entries()).map(Wi(d))}),u(Gi,{foreignOffices:n})]})})),Ui=e=>e.name?.charAt(0)||"",Hi=e=>e.map((e=>({...e,name:e.name?.replace(/республика|область|край'/gi,"").trim()||""}))),Xi=x((({currentLocation:e,onChangeLocation:t})=>e?p("div",{className:"mb-4",children:[u(re,{size:"text-l",font:"font-light",children:"Сейчас выбран: "}),u("button",{className:"cursor-pointer",onClick:()=>{t&&t(e)},children:u(re,{color:"text-primary-main",children:e.name})})]}):null)),Wi=e=>([t,n])=>p("div",{className:"break-inside-avoid mb-7 w-[224px]",children:[u("div",{className:"mb-2.5",children:u(re,{size:"text-h6",children:t})}),n.map(Ki(e))]},t),Ki=e=>t=>u("div",{className:"mb-1",children:u("button",{className:"cursor-pointer hover:text-primary-hover",onClick:()=>{e&&e(t)},children:t.name||""})},t.id),Gi=x((({foreignOffices:e})=>e?.length?p("div",{className:"border-t border-main-divider mt-7 pt-7",children:[u("div",{className:"mb-4",children:u(re,{size:"text-m",font:"font-light",color:"text-secondary-text",children:"Представительства за рубежом:"})}),u("div",{className:"flex gap-10",children:e.map(((e,t)=>u(Ji,{...e},String(t))))})]}):null)),Ji=x((({icon:e,...t})=>{const n=H(),{text:l,target:a,href:r,onClick:i}=n(t);return p("div",{className:"flex gap-x-3",children:[e?u(ot,{pathPrefix:"/wcms-resources/",image:e}):null,l?u("a",{className:"hover:text-primary-hover",href:r,target:a,onClick:i,children:l}):null]})})),Yi=x((({className:e="",active:t,flat:n,children:l,...a})=>{const r=H({isRemote:!0}),{href:i,target:s,text:o,onClick:c}=r(a);return u("a",{className:w(qi(t,n),e),href:i,target:s,onClick:c,rel:"noopener noreferrer","aria-label":o,children:u("span",{className:Zi(t,n),children:o||l})})})),qi=(e=!1,t=!1)=>w("inline-block border border-solid bg-transparent text-center no-underline",e?"rounded-md border-primary-main group-data-transparent:border-white":"border-transparent",t?"":"px-4 py-2"),Zi=(e=!1,t=!1)=>w("font-sans text-s-light",e?"text-primary-main":w(t?"text-primary-text":"text-secondary-text","hover:text-primary-main"),"group-data-transparent:text-white group-data-transparent:hover:text-primary-hover"),Qi={default:"w-6 h-6",large:"w-12 h-12"},es=x((({className:e,isRounded:t,buttonSize:n="default",isGrayBg:l=!1,disabled:a,ariaLabel:r,image:i,onClick:s})=>u("button",{className:w("group/btn border-0 flex shrink-0 items-center",l?"p-3 rounded-full":"p-0 bg-inherit",l&&!t?"bg-main-divider":"",t?"w-8 h-8 text-secondary-light hover:text-secondary-hove":`${Qi[n]} text-primary-text hover:text-primary-main`,"group-data-transparent:text-white",e),type:"button",disabled:a,"aria-label":r,onClick:s,children:u(ot,{image:i,className:w("h-full",t?"bg-main-divider/20 rounded-full":""),imageClassName:"group-hover/btn:text-primary-hover group-hover/btn:invert-0"})}))),ts=x((({className:e,version:t,locationName:n,officesLink:l})=>{const a="transparent"===t?"white":"black",{open:i}=V(Ei),s=r((()=>i()),[]),{open:o}=V(gi),c=r((()=>o()),[]);return p("div",{className:w("flex items-center gap-5",e),children:[u(Yi,{flat:!0,href:"#",text:n,onClick:s}),l?u(Yi,{flat:!0,href:l,text:"Офисы и банкоматы"}):null,u(es,{image:{icon:"LoupeIcon",iconVersion:a},ariaLabel:"Поиск",onClick:c})]})})),ns=x((({className:e="",items:t,activeItem:n})=>{const a=H(),[i,s]=l(!1),o=r((()=>s((e=>!e))),[]),c=ge(r((()=>s(!1)),[]));return p("div",{className:w(i?"bg-white rounded-md shadow-blue-gray":"",e),ref:c,children:[u("button",{className:"group/btn flex justify-between items-center h-6","aria-label":""+(i?"Скрыть другие разделы":"Показать другие разделы"),onClick:o,children:Array(3).fill(null).map(((e,t)=>u("div",{className:"w-[3px] h-[3px] rounded mr-1 bg-primary-text group-hover/btn:bg-primary-hover group-data-transparent:bg-white"},String(t))))}),u("div",{className:w("absolute flex flex-col rounded-md bg-white p-6 pb-2",i?"":"hidden"),"aria-hidden":!i,children:t?.map(((e,t)=>{const{text:l,...r}=e;return u("a",{className:w("text-l-light pb-4 hover:text-primary-main",e===n?"text-primary-main":""),...a(r),children:l},e.href||String(t))}))})]})})),ls=x((({className:e="",active:t,dataItemName:n,children:l,...a})=>{const r=H(),{href:i,target:s,text:o,onClick:c}=r(a);return p("a",{className:w("relative inline-block bg-transparent text-center no-underline",e),href:i,target:s,"data-item-name":n,onClick:c,children:[u("span",{className:as(t),children:o||l}),t?u("div",{className:"absolute left-0 right-0 -bottom-3 h-0.5 bg-primary-main group-data-transparent:bg-transparent"}):null]})})),as=(e=!1)=>w("font-sans text-l-light",e?"text-primary-main":"text-primary-text hover:text-primary-main","group-data-transparent:text-white group-data-transparent:hover:text-primary-hover"),rs=x((({observerOptions:e,onVisibilityChange:t,children:n,className:l,...a})=>{const i=v(r((e=>{if(!e.length||!t)return;const n=e[e.length-1];t(n.isIntersecting)}),[t]),e);return u("span",{ref:i,className:l,children:u(ls,{...a,children:n})})})),is=e=>globalThis[e];function ss(e,t){const[n,i]=l(),s=r((()=>i(is(e))),[e]);return a((()=>{const n=document.getElementById(t);if(!n){const e=document.createElement("script");return e.src=t,e.async=!0,e.id=t,e.addEventListener("load",s),document.head.appendChild(e),()=>{document.head.removeChild(e),i(void 0)}}if(!is(e))return n.addEventListener("load",s),()=>{n.removeEventListener("load",s)};s()}),[e,t]),n}const os={personal:"//chat.mes.rshb.ru/assets/js/webchat_rshb",business:""},cs=x((e=>{const[t,{setTrue:n}]=di();return t?u(ds,{...e}):ms({...e,onClick:n})})),ds=x((({chat:e="personal",...t})=>((e=>{a((()=>globalThis.localStorage?.setItem("webchat-keep-open",String(Date.now()))),[]),ss("chatbot",os[e])})(e),ms(t)))),ms=({className:e,iconVersion:t,onClick:n})=>u(es,{className:w("text-page__btn-chat",e),image:{icon:"HeadphonesIcon",iconVersion:t},ariaLabel:"Чат",onClick:n,buttonSize:"large",isGrayBg:!0}),hs={default:"px-5 bg-main-divider rounded hover:text-primary-main",transparent:"text-white hover:text-primary-hover"},us=x((({version:e,internetBankUrl:t})=>t?u(te,{href:t,ariaLabel:"Интернет-банк",target:"_blank",className:w("py-3 ml-3 text-l font-light whitespace-nowrap hover:text-primary-main",hs["transparent"===e?"transparent":"default"]),children:"Интернет-банк"}):null)),ps=x((({subItems:e=[],version:t,internetBankUrl:n})=>{const a="transparent"===t?"white":"black",r=(e=>(t=[])=>{const n=t?.filter(Oi(e));return n?.length?fn((e=>e.href?.length||0))(n):void 0})(U())(e),[o,d]=l(e.length),m=e.slice(o),h=s(null),x={rootRef:h},g=i((()=>e.map(((e,t)=>e=>{d(e?xs(t):gs(t))}))),[e]);return p("nav",{className:"relative mt-3 flex items-center justify-between",children:[u("div",{ref:h,className:"overflow-hidden whitespace-nowrap pb-3 mt-2",children:e.map(((e,t)=>u(rs,{className:w("ml-8 first:ml-0",o-1<t?"invisible":""),active:e===r,observerOptions:x,onVisibilityChange:g[t],...e},String(t))))}),m.length?u(ns,{className:"relative w-auto z-40",items:m,activeItem:r}):null,c.CHAT_BOT?u(cs,{className:"ml-9",iconVersion:a,chat:c.CHAT_BOT}):null,u(us,{version:t,internetBankUrl:n})]})})),xs=e=>t=>Math.max(t,e+1),gs=e=>t=>Math.min(t,e),bs={"bg-white":"primary",transparent:"transparent"},fs=x((({bgColor:e="bg-white",className:t,showSubMenu:n=!0,version:i=bs[e],...s})=>{const o=U(),{topItems:d,logo:m,defaultLocation:h,foreignOffices:x,officesLink:g,internetBankUrl:b}=Hr(c.SITEMAP||"sitemap",s.options?.page?.fallback),f=d?.find((e=>Oi(c.BASE_PATH?{pathname:c.BASE_PATH}:e))(o)),[v,N]=function(e="Москва"){const t=Di(),[n,i]=l(t?.region??{name:e}),{data:s}=Pi("/api/v1/region",j);return a((()=>{i(t?.region&&t?.manual?t.region:s||{name:e})}),[s]),[n,r((e=>{globalThis.localStorage?.setItem("location",JSON.stringify({manual:!0,region:e})),i(e)}),[])]}(h);return p(k,{tag:"header",className:w("pt-6 px-20",n&&f?.items?.length?"pb-4":"pb-5",t),version:i,...s,children:[p("div",{className:"container",children:[p("div",{className:"flex items-center",children:[u(Yr,{className:"mr-8",bgColor:e,logo:m}),d?.map(((e,t)=>u(Yi,{active:e===f,...e},String(t)))),u(ts,{version:i,className:"ml-auto",locationName:v.name,officesLink:g})]}),u("div",{className:w("mt-6 h-px bg-main-divider","transparent"===i?"opacity-30":"")}),n&&f?.items?.length?u(ps,{subItems:f.items,version:i,internetBankUrl:b}):null]}),u(bi,{topItems:d}),u(Fi,{currentLocation:v,foreignOffices:x,onChangeLocation:N})]})})),vs={XXL:"gap-12",XL:"gap-10",L:"gap-8",M:"gap-4",S:"gap-2",XS:"gap-1","":""},Ns=x((({className:e="",gap:t="XS",isPadding:n=!1,version:l="transparent",isTheme:a=!1,...r})=>u(k,{className:w("relative","grid grid-cols-12",n?"p-12":"",vs[t],e),version:l,isTheme:a,...r,children:pl(r)})));Ns.childrenTypes={exclude:["HorizontalLayout"]};const ys=x((e=>{const{className:t,image:n,...l}=e;return u(k,{className:t,...l,children:u(ot,{image:n})})})),ws=x((({className:e="",cards:t=[],button:n})=>{const[a,i]=l(0),s=r((e=>i(e)),[]),o=t.length,[c,d]=Ht({itemCount:o,visibleItemCount:2}),{canDec:m,canInc:h}=d,x=t[c]?.href;return p("section",{role:"listitem",className:`min-w-full text-center ${e}`,children:[p("div",{className:"relative overflow-hidden",children:[o?Cs({activeIndex:c,cards:t,selectedCardIndex:a,onClick:s}):null,Gt({...d,btnClass:["left-12","right-12"],className:"top-[62px]"}),m?u("div",{className:"absolute top-0 left-0 h-full w-[136px] bg-opacity-from-white"}):null,h?u("div",{className:"absolute top-0 right-0 h-full w-[136px] bg-opacity-to-white"}):null]}),u(te,{className:"w-60 text-center",version:"primary",...n,href:x})]})}));function Cs({activeIndex:e,cards:t,selectedCardIndex:n,onClick:l}){const a=460*e,r=t.length>2?"justify-start":"justify-center";return u("div",{style:{transform:`translateX(-${a}px)`},className:"duration-1000 px-12",children:u("div",{className:`w-full flex flex-nowrap gap-3.5 pb-12 ${r}`,children:t.map(((e,t)=>function({slide:e,i:t,isActive:n,onClick:l}){return p("button",{type:"button",onClick:l,className:"p-[30px] min-w-[460px] flex items-center bg-white border-solid border relative "+(n?"shadow-dark-blue border-primary-main":"ease-in duration-300 border-gray"),children:[e?.icon?u(ot,{className:"p-5 rounded-full bg-secondary-light mr-[30px]",image:e.icon,width:"108",height:"108"}):null,p("div",{className:"flex gap-3.5",children:[e?.sum?ks("страховая сумма",e.sum):null,e?.fee?ks("страховой взнос",e.fee):null]}),Ss(n)]},String(t))}({slide:e,i:t,isActive:Boolean(t===n),onClick:()=>l(t)})))})})}function ks(e,t){return p("div",{className:"flex flex-col text-left whitespace-pre",children:[p("span",{className:"text-h6",children:[Ue(t)," ₽"]}),u("span",{className:"text-secondary-text text-l mt-1",children:e})]})}function Ss(e){return e?u(ot,{className:"h-6 w-6 min-w-6 min-h-6 absolute right-4 top-4",image:{icon:"DoneIcon"},width:"24",height:"24"}):null}const Is=x((({className:e="",title:t,insuranceTabs:n=[],button:a,...i})=>{const[s,o]=l(0),c=r((e=>o(e)),[]);return p(k,{className:`box-border py-12 overflow-hidden relative w-100 ${e}`,...i,children:[t?u(T,{className:"text-center mb-8",title:t,headingType:"h3"}):null,n?.length>1?u("div",{className:"p-1.5 bg-secondary-light w-fit mx-auto mb-7 rounded-md",children:n.map(((e,t)=>function({title:e,i:t,isActive:n,onClick:l}){return u("button",{type:"button",onClick:l,"aria-label":e,className:"box-border px-4 py-3 text-m-light "+(n?"bg-primary-main text-white rounded-md":"text-secondary-text"),children:e},String(t))}({title:e?.title,i:t,isActive:Boolean(t===s),onClick:()=>c(t)})))}):null,u("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:Ts({insuranceTabs:n,button:a})})]})})),Ts=({insuranceTabs:e,button:t})=>{const n=e?.map((e=>e.cards));return n?.length?n.map(((e,n)=>u(ws,{button:t,cards:e},String(n)))):null};function $s(e){return t=>t.reduce(((t,n,l)=>t.length?t.concat({...e,key:l},n):[n]),[])}const Bs={yellow:"bg-yellow",green:"bg-green","green-light":"bg-green-light","green-dark":"bg-green-dark"},Rs={XS:"h-[40px]",S:"h-[68px]",M:"h-[102px]",L:"h-[136px]",XL:"h-[204px]"},Ms=x((e=>{const{className:t="",items:n,isDotted:l,investmentZeroColumn:a,investmentColumns:r,...i}=e,s=r?[...r]:[];return a&&s.unshift(a),u(k,{className:`px-9 py-12 ${t}`,...i,children:p("div",{className:"container text-m-light",children:[s?.length?p("div",{children:[p("div",{className:"flex items-end relative pl-9 pr-5 text-white",children:[$s(u("div",{className:"w-px h-4 bg-gray"}))(s.map(js)),u("div",{className:"absolute right-[30px] w-px h-4 bg-gray"})]}),u("div",{className:"border-t border-gray -mt-2 ml-9 mr-8"}),u("div",{className:"flex justify-between text-primary-text mt-3 -mx-10",children:s.map(Ls)})]}):null,n?.length?u(ra,{className:"mt-9 text-l-light max-w-[657px]",items:n,itemClassName:"mb-[7px]",isDotted:l}):null]})})})),js=(e,t,n)=>{const l=1===t,a=t===n.length-1;return u("div",{className:`${_s(l,a,e.cells)}`,children:e.cells?.length?u("div",{className:"w-full "+(a?"border-4 border-green-more-dark p-1.5 min-w-[290px]":""),children:e.cells.reverse().map(Vs)}):null},`column_${t}`)},_s=(e,t,n=[])=>[n.length?"flex-1":"flex-0",!n.length||e||t?"":"pl-2.5",n.length&&!t?"pr-2.5 pb-8":"pb-[22px]"].join(" "),Vs=(e,t)=>{const n=e.cellSize||"XS",l=e.cellColor||"green";return e.text?u("div",{className:`flex-1 flex items-center justify-center relative py-2 ${Rs[n]} ${Bs[l]} ${"XS"===n?"px-3":"px-11"}`,children:u("div",{className:"text-center",children:e.text})},`cell_${t}`):null},Ls=(e,t,n)=>{const l=0===t,a=t===n.length-1;return u("div",{className:`flex-1 max-w-[180px] text-center px-2 ${l?"pl-9":""} ${a?"mr-3.5":" "}`,children:e.title},`title_${t}`)},zs=x((({doc:e,icon:t})=>{const{text:n,fileSize:l,...a}=e;return p("a",{className:"flex box-border gap-3 group/item h-fit w-fit text-primary-text no-underline hover:text-primary-main",role:"link",...a,children:[t,n?p(re,{size:"text-l",font:"font-light",children:[n,u(re,{color:"text-secondary-text",children:a?.href&&Ps(Ds(a.href),l)})]}):null]})})),Ps=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),Ds=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},Os={double:"flex-wrap",single:"flex-col"},As=x((({className:e="",title:t,description:n,align:l="text-center",documents:a,icon:r={icon:"DocIcon"},columnsMode:i="double",...s})=>p(k,{className:w("p-12",e),...s,children:[u(Mt,{className:"!p-0",title:t,description:n,align:l,headlineVersion:"M",as:"h2"}),a?.length?u("div",{className:w("mt-8 flex gap-6",Os[i]),role:"list",children:a.map(((e,t)=>u("div",{className:"double"===i?"basis-[calc(50%-20px)]":"",role:"listitem",children:u(zs,{doc:e,icon:r?u(ot,{className:"min-w-6 min-h-6",image:r,width:"24",height:"24"}):null})},String(t))))}):null]}))),Es=e=>{const t="col-span-",n=e?.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function Fs(e=""){const t=Es(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}const Us=x((({className:e="",title:t="Мобильное приложение",qr:n,buttons:l,version:a="primary",items:r,image:i,headingType:s="h4",alignTitle:o="left",description:c,...d})=>{const m="secondary"===a?"p-3.5 min-w-[120px]":"min-w-[92px]";return p(k,{className:`flex justify-between p-12 box-border relative min-h-80 ${Fs(e)} ${e}`,version:a,...d,children:[p(Kl,{className:"z-10",title:t?u(T,{headingType:s,as:"h3",title:t,className:`whitespace-pre-wrap mb-7 w-full ${zt[o]}`}):null,buttons:It(l,{className:"mt-8",buttonClassName:"min-w-[168px]"}),children:[Xs(c),p("div",{className:"flex flex-1 items-center mb-3",children:[n?.src?u("div",{className:`flex justify-center mr-5 bg-white rounded-md ${m}`,children:u(ot,{className:"w-fit",image:n})}):null,Hs(r)]})]}),i?.src?u("div",{className:"absolute right-0 bottom-0",children:u(ot,{image:i})}):null]})})),Hs=e=>e?.length?u(ra,{items:e,itemClassName:"text-l-light mb-2 last:mb-0"}):u("span",{className:"text-m-light text-secondary-text",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),Xs=e=>e?u("p",{className:"text-xl-light mb-5 pt-0.5",children:e}):null,Ws=[{coords:[55.77,37.46],text:"Трактир"},{coords:[55.66,37.48],text:"Трактор"},{coords:[55.65,37.42],text:"Ресторан"},{coords:[55.64,37.54],text:"Музей"},{coords:[55.54,37.52],text:"Библиотека"},{coords:[55.53,37.56],text:"Школа"},{coords:[55.61,37.61],text:"Аптека"},{coords:[55.8,37.58],text:"Бар"},{coords:[55.71,37.35],text:"Институт"},{coords:[55.74,37.57],text:"Университет"},{coords:[55.58,37.69],text:"Больница"},{coords:[55.57,37.7],text:"Цирк"},{coords:[55.55,37.64],text:"Магазин"},{coords:[55.5,37.75],text:"Булочная"},{coords:[55.81,37.73],text:"Полиция"},{coords:[55.73,37.68],text:"Салон красоты"},{coords:[55.86,37.76],text:"Баня"},{coords:[55.38,37.69],text:"Гараж"},{coords:[55.91,37.5],text:"Дом"},{coords:[55.62,37.32],text:"Прачечная"},{coords:[55.85,37.41],text:"Стадион"},{coords:[55.67,37.24],text:"Вокзал"},{coords:[55.79,37.41],text:"Кафе"}];function Ks(e,t,n){t.geoObjects.removeAll();const l=e.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>'),a=new e.Clusterer({clusterIcons:[{href:"icons/MapMarkerClusterIcon.svg",size:[78,84],offset:[-35,-50]}],clusterIconContentLayout:l,clusterHideIconOnBalloonOpen:!1,geoObjectHideIconOnBalloonOpen:!1}),r=n.map((t=>new e.Placemark(t,{},{iconLayout:"default#image",iconImageHref:"icons/MapMarkerSingleIcon.svg",iconImageSize:[78,84],iconImageOffset:[-35,-50]})));a.add(r),t.geoObjects.add(a),t.setBounds(e.util.bounds.fromPoints(n)).then((()=>{t.getZoom()>10&&t.setZoom(10)}))}const Gs={focus:"focus:border-primary-text focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border border-transparent rounded-md",position:"flex items-center justify-center",font:"text-center font-sans"},Js=e=>u("a",{className:`select-none cursor-pointer px-9 h-12 bg-primary-main text-white ${Object.values(Gs).join(" ")}`,href:`https://yandex.ru/maps/?ll=${[e[1],e[0]]}&z=10&l=map`,target:"_blank",children:"Открыть на карте"}),Ys={border:"border border-transparent rounded-md",position:"relative flex items-center",font:"text-center font-sans",shadow:"shadow-[0_4px_25px_rgba(0,0,0,0.07)]"},qs=(e,t,n)=>p("div",{className:`${Object.values(Ys).join(" ")} bg-white py-3 pl-11 pr-4 w-full`,children:[u(fe,{name:"LoupeIcon",iconVersion:"black",width:"20",height:"20",className:"absolute left-4"}),u("input",{type:"text",placeholder:"Введите адрес или метро",onChange:t=>{const l=t.target?.value?t.target?.value.toLowerCase():"";if(l){const t=e.filter((e=>e.text.toLowerCase().indexOf(l)>-1?e:null));n(t)}else n(null)},className:"border-0 focus:border-0 outline-0 w-full"})]}),Zs={focus:"focus:border-primary-text focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border border-transparent rounded-md",position:"absolute flex items-center justify-center",font:"text-center font-sans"},Qs=(e,t,n)=>u("div",{className:`select-none cursor-pointer py-4 w-12 bg-white ${Object.values(Zs).join(" ")} ${n}`,onClick:()=>{t.geolocation.get({provider:"yandex",autoReverseGeocode:!0,mapStateAutoApply:!0}).then((function(t){e.geoObjects.add(t.geoObjects)}))},children:u(fe,{name:"UserGeoLocationIcon",width:"20",height:"16"})}),eo={focus:"focus:border-primary-text focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",border:"border-b border-b-2 border-gray last:border-0",position:"relative flex items-center justify-center",font:"text-center font-sans text-l"},to=x((({yandexMaps:e,direction:t="in"})=>{const n="in"===t?"PlusIcon":"MinusIcon";return u("div",{onClick:()=>{const n=e.current.getZoom(),l="in"===t?n+1:n-1;e.current.setZoom(l,{checkZoomRange:!0})},className:`${Object.values(eo).join(" ")} bg-white select-none cursor-pointer w-12 h-12`,children:u(fe,{name:n,width:"20",height:"16"})})})),no={border:"border border-transparent rounded-md ",position:"absolute flex items-center justify-center",size:"w-12 h-12",focus:"focus:border-primary-text focus:border",font:"text-center font-sans",active:"active:bg-primary-active",hover:"hover:bg-primary-hover",other:"select-none cursor-pointer"},lo=x((({points:e,className:t="",zoom:n=5,showSearchField:r=!1})=>{const i=s(null),o=ss("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${c.YANDEX_MAP_API_KEY||""}&lang=ru_RU`),[d,m]=l(),[h,x]=l(so(Ws)),g=ao(e);if(a((()=>{i?.current||o?.ready((()=>{i.current=new o.Map("map",{center:g,zoom:n,controls:[],suppressMapOpenBlock:!0}),Ks(o,i.current,h)}))}),[o,i,h]),a((()=>{if(i.current&&h&&o){const e=h.length<1?so(Ws):h;Ks(o,i.current,e)}}),[i,h,o]),!o)return null;const b=d?"z-[100000]":"z-10";return p("div",{id:"map",className:`${d?"":"relative"} w-full ${t}`,children:[u("div",{className:`absolute flex left-2 top-4 w-[50%] ${b}`,children:r?qs(Ws,0,(e=>{if(e){const t=so(e);x(t)}})):Js(g)}),u("div",{className:`${Object.values(no).join(" ")} ${b} right-2 top-4 bg-white`,onClick:()=>{const e=i.current.container;d?e.exitFullscreen():e.enterFullscreen(),m(e.isFullscreen())},children:u(fe,{name:"FullScreenIcon",width:"16",height:"16"})}),p("div",{className:`absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md ${b}`,children:[u(to,{yandexMaps:i}),u(to,{yandexMaps:i,direction:"out"})]}),Qs(i.current,o,`right-2 top-80 ${b}`)]})})),ao=e=>[io(ro(e,0)),io(ro(e,1))],ro=(e,t)=>e.map((e=>e[t])),io=e=>e.reduce(((e,t)=>e+t))/e.length,so=e=>e?e.map((e=>e.coords)):null,oo=[{title:"Деловой центр",time:"1 мин",distance:"~30 м.",icon:"MetroIcon"},{title:"Выставочная",time:"5 мин",distance:"~120 м.",icon:"MetroIcon"},{title:"Деловой центр",time:"8 мин",distance:"~350 м.",icon:"MetroIcon"}],co=({lunchHour:e,status:t,workTime:n})=>{const l=/\d+/gi.test(e)?`Перерыв ${e}`:e;return t?p("div",{className:"flex",children:[u("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-primary-main border-green-light mr-4",children:n||null}),u("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-yellow border-golden",children:e?l:null})]}):u("div",{className:"flex",children:u("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-error border-error",children:"Выходной"})})},mo=({icon:e,title:t,distance:n,time:l},a)=>p("div",{className:"flex mr-4",children:[u(fe,{name:e,width:"16",height:"16",className:"mr-1"}),t?p("span",{className:"text-m",children:[t," "]}):null,p("span",{className:"text-m-light",children:[n?` (${n})`:null,l?`, ${l}`:null]})]},`nearbyOffice${a}`),ho=({title:e,status:t,workTime:n,lunchHour:l,description:a},r)=>p("div",{className:"flex flex-col pb-3 border-b border-solid border-main-divider mb-3 last:border-0",children:[p("div",{className:"flex justify-between items-center w-full pb-1 text-l text-primary-text",children:[u("div",{children:e}),t?null:u("div",{className:"text-m-light text-error",children:"Выходной"}),t&&n?u("div",{children:n}):null]}),t&&l?uo(l):null,a?u("div",{className:"pb-1 text-s-light text-secondary-text",children:a}):null]},`day${r}`),uo=e=>/\d+/gi.test(e)?p("div",{className:"flex justify-between items-center w-full pb-1 text-m-light text-error",children:[u("div",{children:"Перерыв"}),u("div",{children:e})]}):u("div",{className:"flex justify-between items-center w-full pb-1 text-m-light text-primary-main",children:u("div",{children:e})}),po={id:123,branchType:{id:7,code:"21",name:"Отделение на балансе филиала"},shortName:"Ейский ДО",name:"ДО №3349/3/05",address:"353682, Краснодарский край, г.Ейск, ул.Гоголя, 349/ ул.Баррикадная, 42/1",lawAddress:"353682, Краснодарский край, г.Ейск, ул.Гоголя, 349/ ул.Баррикадная, 42/1",openDate:"2000-12-05",closeDate:null,bik:"040349536",corAcc:"30101810700000000536",registrationNumber:"3349/3/05",phone:"+7(XXX)XXX-XX-XX",fax:"+7(XXX)XXX-XX-XY",okpo:"55105921",ogrn:"1027700342890",kpp:"231002002",inn:"7725114488",branchCode:"0305",upperBranchCode:"0300",timeZone:"+03:00",exchangeRate:{currencies:[{buyExchangeRate:0,saleExchangeRate:0,currency:{id:3,code:"156",currency:"CNY",name:"Китайский юань"}},{buyExchangeRate:59.15,saleExchangeRate:69.25,currency:{id:2,code:"978",currency:"EUR",name:"Евро"}},{buyExchangeRate:58.4,saleExchangeRate:70.05,currency:{id:1,code:"840",currency:"USD",name:"Американский доллар"}}],lastUpdate:"2022-11-11 03:56:17"},workSchedule:{id:413,workTime:"09.00–16.30",lunchHour:"без перерыва",workTimeSaturday:"09.00–15.00",lunchHourSaturday:"без перерыва",workingMonday:!1,workingTuesday:!1,workingWednesday:!0,workingThursday:!0,workingFriday:!0,workingSaturday:!0,workingSunday:!1},gpsLatitude:46.709744,gpsLongitude:38.260703,range:null,safeBoxCaseVolumes:null};function xo(e){return e?M(e,{method:"GET"}):{}}const go=x((({className:e=""})=>{const t=function(e){const{data:t}=B(e?`/api/v1/branches?regionCode=${e}`:void 0,xo);return console.warn("Hook useOfficeMap RETURNs MOCK object for testing",t),po}("000"),{name:n,address:l,gpsLatitude:a,gpsLongitude:r,workSchedule:i}=t,{workingMonday:s,workingTuesday:o,workingWednesday:c,workingThursday:d,workingFriday:m,workingSaturday:h,workingSunday:x}=i,{workTime:g,lunchHour:b,workTimeSaturday:f,lunchHourSaturday:v}=i,N=a&&r?[a,r]:null,y=[{title:"Понедельник",status:s,workTime:g,lunchHour:b},{title:"Вторник",status:o,workTime:g,lunchHour:b},{title:"Среда",status:c,workTime:g,lunchHour:b},{title:"Четверг",status:d,workTime:g,lunchHour:"13:00 - 14:00",description:"Не работает прием денег с 17:00 до 19:00"},{title:"Пятница",status:m,workTime:g,lunchHour:b},{title:"Суббота",status:h,workTime:f,lunchHour:v},{title:"Воскресенье",status:x}],w=(new Date).getDay(),C=w>0?y[w-1]:y[6];return p("div",{className:`flex flex-col font-sans bg-white w-full ${e}`,children:[p("div",{className:"flex flex-col px-12 pt-12",children:[p("div",{className:"flex justify-between",children:[u("div",{className:"text-h2",children:n}),co(C)]}),p("div",{className:"flex text-l-light pt-4",children:[u(fe,{name:"GeolocationIcon",width:"24",height:"24",className:"pr-1"}),l]}),u("div",{className:"flex pt-4",children:oo.map(mo)})]}),p("div",{className:"flex justify-between pt-8",children:[u("div",{className:"flex-grow h-full w-full overflow-hidden",children:N?u(lo,{points:[N],className:"h-full"}):null}),u("div",{className:"w-[434px] min-w-[434px] pl-9 pr-12 pb-14 flex flex-col",children:y.map(ho)})]})]})})),bo=x((({className:e="",title:t,servicesList:n,...l})=>p(k,{className:`p-8 flex flex-col ${e}`,...l,children:[t?u(T,{headingType:"h5",className:"mb-5",title:t}):null,n?.length?u("ul",{className:"list-none m-0 p-0",children:n.map(fo)}):null]}))),fo=(e,t)=>p("li",{className:"flex mb-5 last:mb-0 list-none",children:[e.icon?u(ot,{className:"mr-3 min-w-6 min-h-6 w-6 h-6",width:"24",height:"24",image:e.icon}):null,e.label?u("span",{className:"text-l-light",children:e.label}):null]},`list_item_${String(t)}`),vo=x((({text:e,size:t,align:n,font:l,children:a,...r})=>u(k,{...r,children:u(ae,{size:t,align:n,font:l,children:e||a})}))),No=x((e=>{const{className:t="",icon:n,label:l,description:a,version:r="primary",benefitsVersion:i="normal"}=e;return p("div",{className:`flex gap-5 ${a?"items-start":"items-center"} ${t}`,children:[n?u("div",{className:yo(r,i),children:u(ot,{className:"w-6 h-6",image:{...n,iconVersion:n.iconVersion||i}})}):null,p("div",{className:"gap-0.5",children:[l?u("div",{className:"text-h6 text-primary-text group-data-secondary:text-white",children:l}):null,a?u("div",{className:"text-m-light text-secondary-text group-data-secondary:text-white",children:a}):null]})]})}));function yo(e,t){let n="bg-primary-main text-black";return"secondary"===e?n="bg-white/30 text-black":"normal"===t&&(n="bg-secondary-light text-primary-main"),`w-12 h-12 min-w-12 rounded-full p-2.5 box-border flex items-center justify-center ${n}`}const wo=e=>(t,n)=>{const{type:l}=t;if("default"!==l&&"rte"!==l)return null;switch(l){case"default":return u(No,{icon:t.icon,label:t.label,description:t.description,version:e},String(n));case"rte":return u(wa,{__html:t.__html});default:Zr(t)}},Co=x((({className:e="",title:t,description:n,image:l,benefits:a,sum:r,monthLimit:i,directionRight:s=!1,version:o="primary",...c})=>p(k,{className:`relative py-12 px-24 ${e}`,version:o,...c,children:[u(Mt,{className:"!p-0",title:t,description:n,headlineVersion:"M"}),p("div",{className:"flex justify-center gap-[122px] mt-[30px]",children:[l?.src?u(ot,{className:s?"order-2":"",image:l}):null,p("div",{className:"w-[558px] m-auto",children:[a?.length?u("div",{className:"flex flex-col gap-4",children:a.map(wo(o))}):null,ko(Number(r),Number(i))]})]})]})));function ko(e,t){return e||t?p("div",{className:"bg-main-divider rounded-md flex mt-7 gap-6 px-5 py-4",children:[Number(e)>0?So("Страховая сумма:",e,Boolean(t)):null,Number(t)>0?So("Ежемесячный лимит:",t,Boolean(e)):null]}):null}function So(e,t=0,n=!1){return p("div",{className:`flex justify-between items-center gap-2 w-full whitespace-pre ${n?"w-fit":"w-full"}`,children:[u("span",{className:"text-secondary-text text-l-light",children:e}),p("span",{className:"text-primary-main text-h6",children:[Ue(t)," ₽"]})]})}function Io(e=""){const t=Es(e);return t<=4?"S":t<=8?"M":"L"}function To(e=""){const t=Es(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const $o=x((({className:e,title:t,description:n="Блок в разработке...",...l})=>p(k,{className:w("p-9 box-border",e,To(e),Fs(e)),...l,children:[u(Mt,{className:"!p-0 max-w-[600px]",title:t,description:n,headlineVersion:Io(e)}),u("figure",{className:"m-0 min-w-[80%]",children:Bo()})]}))),Bo=(e=3)=>Mo(100,e).map((e=>Math.floor(e))).map(Ro),Ro=(e,t)=>u("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Mo=(e,t)=>[e].concat(t>0?Mo(e/1.618,t-1):[]),jo=x((({className:e="",children:t,...n})=>{const l=H(),{text:a,href:r,target:i,onClick:s}=l(n);return r?u("a",{className:`no-underline ${e}`,href:r,target:i,onClick:s,children:u("span",{className:e,children:a||t})}):u("span",{className:e,children:a||t})})),_o=(e="primary",t="normal")=>({icon:n,label:l,description:a},r)=>u(No,{icon:n,label:l,description:a,version:e,benefitsVersion:t},String(r)),Vo=x((({className:e="",title:t,headlineVersion:n="L",description:l,benefitsCountOfRow:a=3,benefits:r,benefitsVersion:i,buttons:s,image:o,__html:c,items:d,version:m="primary",isDotted:h=!0,textBlockClassName:x="",directionRight:g=!0})=>{const b=r?.filter((e=>e.label))?.length,f=Lo(a);return p("div",{className:w("flex grow justify-between items-stretch h-full",e),children:[o?.src?u(ot,{className:w("mt-[-50px]",g?"order-2":""),image:o}):null,p("div",{className:w("flex flex-col",x),children:[u(Mt,{className:"!p-0 max-w-[600px]",title:t,description:l,headlineVersion:n,align:"text-left"}),p(Kl,{buttons:It(s),children:[b?u("div",{className:f,children:r?.map(_o(m,i))}):null,c?u("div",{className:"mt-5",children:u(wa,{__html:c})}):null,d?.length?u(ra,{className:"mt-5 text-h6",items:d,itemClassName:"mb-[7px]",isDotted:h}):null]})]})]})})),Lo=(e=2)=>"gap-6 mt-6 "+(e>2?"inline-grid grid-cols-[auto_auto_auto]":"inline-grid grid-cols-[auto_auto]");function zo(e,t,n){const{text:l,href:a,target:r}=e,i="primary"===t?"white":"black",s=e?.icon||{icon:"ArrowLeftIcon"};return p("div",{className:w("flex items-center",n),children:[u(te,{version:t,rounded:!0,className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3",ariaLabel:l,href:a,target:r,children:u(ot,{className:"w-4 h-4",image:{...s,iconVersion:s.iconVersion||i}})}),l?u(te,{version:"link",text:l,href:a,target:r,ariaLabel:l}):null]})}const Po="text-secondary-text group-data-secondary:text-white/80",Do=x((e=>{const{className:t="",breadcrumbs:n,backwardButton:l,version:a="primary",...r}=e,i="primary"===a?a:"white";return p(k,{className:w("overflow-hidden p-12 flex flex-col box-border min-h-[454px]",t),version:a,...r,children:[l?.text?zo(l,i):null,n?.length?u("div",{className:"text-xs-light mb-6",children:$s(u("span",{className:w("mx-2",Po),children:"/"}))(n.map(((e,t)=>u(jo,{className:Po,...e},String(t)))))}):null,u(Vo,{className:"mt-10",version:a,...r})]})})),Oo=x((({className:e="",slides:t=[],...n})=>{const a=t.map((e=>e.nav)),i=t.map((e=>e.productBlock)),[s,o]=l(0),c=r((e=>o(e)),[]);return p(k,{className:`box-border pt-12 overflow-hidden relative w-100 mb-6 ${e}`,...n,children:[u("div",{className:"flex duration-1000 pb-14",style:{transform:`translateX(-${s}00%)`},role:"list",children:i.map(((e,t)=>function(e,t){return u("section",{className:"box-border relative flex grow-0 shrink-0 basis-full",role:"listitem",children:u("div",{className:"flex grow",children:u(Vo,{className:"pl-12 z-10 group-data-secondary:text-white",textBlockClassName:"mb-[154px]",headlineVersion:"XXL",...e})})},String(t))}({...e,...n},t)))}),u("div",{className:"flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border h-28",children:a.map(((e,t)=>function({slide:e,i:t,isActive:n,onClick:l}){const a=n?"bg-white shadow-dark-blue min-w-[350px] border-none p-6":"min-w-[290px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10 px-6 py-5 backdrop-blur",r=n?"text-primary-text !text-h6 p-2":"text-l pb-1 text-secondary-text group-data-secondary:text-white",i=n?"text-secondary-text text-l-light":"text-m-light text-secondary-text group-data-secondary:text-white/80";return u("button",{type:"button",onClick:l,"aria-label":e?.title,className:`relative box-border overflow-hidden cursor-pointer text-left mx-1 grow basis-0 border border-gray group-data-secondary:border-white/50 ${a}`,children:p("div",{className:"border-0 px-6",children:[u("div",{className:`last:pb-0 ${r}`,children:e?.title}),u("div",{className:`text-secondary-text ${i}`,children:e?.description})]})},String(t))}({slide:e,i:t,isActive:Boolean(t===s),onClick:()=>c(t)})))})]})}));function Ao(e,t){if(!e)return null;return u("div",{className:`mt-2.5 z-10 ${t?.src?"max-w-[calc(100%-186px)]":"100%"}`,children:u(ae,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:e})})}const Eo=(e,t)=>{const{type:n}=e;if("default"!==n&&"rte"!==n)return null;switch(n){case"default":return[u(re,{size:"text-h6",children:e.label},`label-${t}`),u(re,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:e.description},`desc-${t}`)];case"rte":return u("div",{className:"col-span-2",children:u(wa,{__html:e.__html})});default:Zr(e)}};function Fo(e,t){return e?.src?u(ot,{className:w("absolute",t?"right-0":"left-0","bottom-0"),image:e}):null}const Uo=x((({className:e="",title:t,headlineVersion:n="S",description:l,additionalDescription:a,benefits:r=[],buttons:i,image:s,directionRight:o=!0,...c})=>p(k,{className:w("overflow-hidden p-9 box-border relative min-h-[364px] flex flex-col justify-between",To(e),e),...c,children:[p("div",{className:w("flex flex-col",o?"":"items-end"),children:[u(Mt,{className:w("!p-0 !bg-transparent z-10",t||l?"mb-3.5":""),title:t,description:l,headlineVersion:n,as:"h2",align:"text-left"}),Ho(r,s),Ao(a,s)]}),It(i,{className:w("mt-5 text-l",o?"":"justify-end")}),Fo(s,o)]})));function Ho(e,t){if(!e.length)return null;return u("div",{className:w("z-10 grid grid-cols-[max-content_1fr] auto-rows-auto gap-x-6 gap-y-2.5 items-baseline",t?.src?"max-w-[calc(100%-186px)]":"100%"),children:e.length?e.map(Eo):null})}const Xo=x((({className:e="",title:t="Акции и спецпредложения",date:n,description:l,as:a,buttons:r=[],...i})=>u(k,{className:w("p-9 box-border",e,To(e),Fs(e)),...i,children:u(Kl,{title:t?u(Mt,{className:"!p-0 max-w-[600px]",title:t,headlineVersion:Io(e),align:"text-left",as:a||"h2"}):null,buttons:It(r),children:p("div",{className:"mt-1.5",children:[n?u("div",{className:"text-s mb-2",children:Wo(n)}):null,u("div",{className:"text-l",children:l})]})})})));function Wo(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const Ko=x((e=>{const{__html:t,richVersion:n,...l}=e;return u(k,{...l,children:u(wa,{__html:t,richVersion:n})})})),Go=x((({className:e="",label:t="Развернуть",isExpanded:n,isFoldButtonOnTop:l=!0,version:a="primary",...r})=>u(k,{className:`w-full border-0 border-b border-solid border-main-divider last:border-b-0 ${e}`,tag:"div",version:"transparent",...r,children:u(ka,{isFoldButtonOnTop:l,unfoldedByDefault:n,renderFoldableSection:({isUnfolded:e})=>u(Sa,{className:"grid grid-cols-12 gap-5 [&>*]:p-0",isUnfolded:e,children:pl(r)}),renderFoldButton:({isUnfolded:e,onToggle:n})=>Jo({version:a,label:t,isUnfolded:e,onToggle:n})})})));Go.childrenTypes={exclude:["RollupItem"]};const Jo=({version:e,label:t,isUnfolded:n,onToggle:l})=>{const a=t||(n?"Скрыть":"Развернуть");return"primary"===e?Yo({label:a,icon:n?"MinusIcon":"PlusIcon",onToggle:l}):u(Vr,{label:a,icon:n?"ArrowUpIcon":"ArrowDownIcon",onClick:l})},Yo=({label:e,icon:t,onToggle:n})=>p("button",{className:"border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 cursor-pointer",onClick:n,children:[u(re,{size:"text-xl",font:"font-medium",children:e}),t?u(fe,{name:t,width:"24",height:"24"}):null]}),qo=[];const Zo=async e=>await M(e,{method:"GET"})||qo,Qo=x((({data:e,fieldLabel:t,fieldValue:n,selected:l,placeholder:a="",setSelected:r,label:i})=>{const s=e.filter(Boolean).map((e=>({key:e?.[n||t],text:e?.[t]}))),o=s.find((e=>e.key===l));return u(ye,{options:s,label:i,placeholder:a||l,onChange:e=>r(e.key),value:o})})),ec=x((({regions:e=[],selectedRegion:t,onSelectedRegion:n,branches:l=[],selectedBranch:a,onSelectedBranch:r})=>p("div",{className:"flex justify-between gap-4 mb-6",children:[u("div",{className:"max-w-[396px] w-1/2",children:u(Qo,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:n,label:"Регион"})}),u("div",{className:"max-w-[396px] w-1/2",children:u(Qo,{data:l,fieldValue:"branchCode",fieldLabel:"address",selected:a,setSelected:r,label:"Отделение",placeholder:"Выберите отделение"})})]}))),tc=x((({name:e,text:t,value:n,checked:l,onChange:a,className:r})=>u("div",{className:r,children:p("label",{className:"font-sans flex items-center relative cursor-pointer",children:[u("input",{className:"appearance-none flex justify-center items-center shrink-0 w-5 h-5 border border-gray hover:border-primary-hover\n checked:border-2 checked:!border-primary-main focus:checked:border-primary-main focus:border-primary-text active:border-primary-text\n after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main outline-none rounded-full cursor-pointer",type:"radio",value:n,name:e,checked:l,onChange:e=>a(e.target.value)}),t?u("span",{className:"text-primary-text ml-3 cursor-pointer",children:t}):null]})}))),nc=x((()=>{const[e,t]=l("option2"),n=r((e=>t(e)),[]);return p("div",{children:[u(tc,{className:"mb-2",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===e,onChange:n}),u(tc,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===e,onChange:n})]})})),lc=["От 1 дня","До 365 дней"],ac=x((({days:e,setDays:t})=>p("div",{className:"mb-6",children:[u("span",{className:"block text-m-light mb-[3px]",children:"Срок аренды"}),u(We,{min:1,max:365,value:e,items:lc,onChange:t})]}))),rc=x((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:n,safeBoxCases:l=[],selectedBoxSize:a,onSelectedBoxSize:r})=>p("div",{className:"flex justify-between mb-6",children:[u("div",{className:"mr-4 w-full",children:u(Qo,{data:e,fieldLabel:"volume",selected:t,setSelected:n,label:"Размер",placeholder:"Выберите размер"})}),u("div",{className:"w-full",children:u(Qo,{data:l,fieldLabel:"safeBoxCasesSize",selected:a,setSelected:r,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),ic=x((({regions:e,selectedRegion:t,branches:n,selectedBranch:l,days:a,selectedCaseVolume:r,selectedBoxSize:i,safeBoxCases:s,caseVolumes:o,onChange:c,onClick:d})=>p("div",{className:"flex-1 mr-9",children:[u(ec,{regions:e,selectedRegion:t,onSelectedRegion:e=>c({selectedRegion:e}),branches:n,selectedBranch:l,onSelectedBranch:sc(c)}),u(ac,{days:a,setDays:e=>c({days:e})}),u(rc,{caseVolumes:o,selectedCaseVolume:r,onSelectedCaseVolume:oc(c),safeBoxCases:s,selectedBoxSize:i,onSelectedBoxSize:e=>c({selectedBoxSize:e})}),u("span",{className:"text-secondary-text text-l-light",children:"Тип договора"}),p("div",{className:"flex justify-between items-center mt-5",children:[u(nc,{}),u(te,{text:"Офисы на карте",version:"primary",onClick:d})]})]}))),sc=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},oc=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},cc=x((({days:e,tariffs:t=[]})=>{const n=mc(e,t);return p("div",{className:"flex flex-col justify-between",children:[p("div",{className:"flex",children:[dc("Аренда за",e,"mr-11"),dc("Цена",n+" ₽")]}),p("div",{className:"bg-primary-main px-10 pt-10 pb-4 text-center",children:[u(ot,{image:{icon:"PackA4Icon"},width:"290",height:"257"}),p("span",{className:"text-s-light text-white opacity-80 mt-2 inline-block",children:["На рисунки изображена пачка",u("br",{})," листов формата А4"]})]})]})})),dc=(e,t,n="")=>p("div",{className:n,children:[u("div",{className:"text-m-light text-secondary-text mb-1",children:e}),u("span",{className:"text-h3 text-primary-text",children:t})]}),mc=(e,t)=>{const n=hc(e);return e*(t?.find((e=>e.tariffType===String(n)))?.tariffValue||0)},hc=e=>{let t=1;switch(!0){case e>30&&e<=90:t=2;break;case e>90&&e<=180:t=3;break;case e>180&&e<=365:t=4}return t},uc=(e,t)=>e.find((e=>e.branchCode===t)),pc=x((e=>{const{regions:t,data:n,branches:l,onChange:r,onClick:i}=e;a((()=>{r({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[n.selectedRegion,r]);const s=uc(l,n.selectedBranch),o=xc(s?.safeBoxCaseVolumes),c=gc(s?.safeBoxCaseVolumes,n.selectedCaseVolume)?.safeBoxCases,d=bc(c,n.selectedBoxSize);return p("div",{className:"flex justify-between align-top mb-6",children:[u(ic,{...n,regions:t,onClick:i,branches:l,caseVolumes:o,safeBoxCases:c,onChange:r}),u(cc,{days:n.days,tariffs:d})]})})),xc=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],gc=(e,t)=>e?.find((e=>e.volume===t)),bc=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs,fc=x((({title:e,footnote:t,className:n="",...a})=>{const[i,s]=l(!1),o=r((()=>s((e=>!e))),[]),[c,d]=l({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26}),m=_(),h=vc(c.selectedRegion,m),x=function(e){const{data:t}=B(e?`/api/v1/safeboxes?regionCode=${e}`:null,Zo);return t||qo}(h),g=r((e=>d((t=>({...t,...e})))),[d]),b=(f=uc(x,c.selectedBranch)||x,Array.isArray(f)?f.map((e=>e.gpsLatitude&&e.gpsLongitude?[e.gpsLatitude,e.gpsLongitude]:[])):f?.gpsLatitude&&f?.gpsLongitude?[[f.gpsLatitude,f.gpsLongitude]]:[]);var f;return p(k,{className:n,...a,children:[p("div",{className:"px-8 py-12",children:[e?u(T,{title:e,headingType:"h3",as:"h2",className:"text-primary-text mb-2.5 text-center"}):null,u(pc,{regions:m,branches:x,data:{...c,selectedRegion:h},onClick:o,onChange:g}),t?u("p",{className:"text-s-light text-secondary-text",children:t}):null]}),b.length&&i?u(lo,{points:b,className:"h-[640px]"}):null]})})),vc=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e,Nc=e=>Boolean(e?.icon||e?.src),yc=({styleMap:e,isMainButton:t,version:n})=>(l,a,r)=>{const{label:i,description:s,button:o,items:c,isDotted:d}=l;return p("div",{className:w("relative flex flex-col items-center text-center whitespace-pre-line overflow-hidden",wc(r.length)),children:[p("div",{className:w(o?.text?"mb-8":"","text-center"),children:[i?u("div",{className:"mb-2",children:u(re,{size:"text-h6",children:i})}):null,p("div",{className:"flex flex-col items-center",children:[s?u("div",{className:e.description,children:s}):null,u(ra,{className:w(s?`${e.description} mt-0.5`:"text-h6"),items:c,listItemSize:"M",isDotted:d})]})]}),o?.text&&!t?u(te,{className:"box-border py-3 h-12 w-full max-w-[240px] mt-auto",version:n,...o,children:o?.text}):null]},String(a))},wc=e=>e<5?"w-[276px]":"w-[210px]",Cc={description:"text-white/80 text-l-light group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconText:"text-white group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconBackground:"bg-white/30 group-data-primary:bg-main-divider",iconConnector:"bg-white group-data-primary:bg-secondary-light",dot:"bg-white/80 group-data-primary:bg-secondary-text"},kc=x((({className:e="",showLines:t=!0,steps:n=[],buttons:l,size:a="normal",version:r="primary",stepVersion:i="gray",title:s,...o})=>{const c=n.length>3,d=Cc,m=(e=>e?"":"opacity-0")(t),h=(e=>e<5?"px-[88px]":"px-[55px]")(n.length),x=Boolean(l?.every((e=>e?.text)));return p(k,{className:w("box-border py-12",c?"px-20":"px-[70px]","flex flex-col items-center overflow-hidden",e),version:r,...o,children:[s?u(T,{headingType:"h4",className:"max-w-[752px] text-center mb-9",title:s}):null,n?.length?p("div",{className:"box-border",children:[u("div",{className:w("flex items-center",h),children:$s(u("div",{className:w("h-0.5 w-full bg-secondary-light flex-1",m)}))(n.map(Sc(d,a,i)))}),u("div",{className:w("flex justify-between mt-4",c?"gap-x-3":"gap-x-[101px]"),children:n.map((g={styleMap:d,isMainButton:x,version:r},(e,t,n)=>{const{type:l}=e;if("default"!==l&&"rte"!==l)return null;switch(l){case"default":return yc(g)(e,t,n);case"rte":return u("div",{className:w("text-center",wc(n.length)),children:u(wa,{__html:e.__html})},String(t));default:return null}}))})]}):null,It(l,{className:"mt-8"})]});var g})),Sc=(e,t,n)=>({icon:l},a)=>{const r="secondary"===n?"group-data-primary:text-white":"text-secondary-text",i="secondary"===n?"white":"color";return u(k,{className:`${"normal"===t?"h-[100px] w-[100px]":"h-[63px] w-[63px]"} flex justify-center items-center text-center rounded-full p-[26px] box-border z-10`,version:n,children:Nc(l)?u(ot,{image:{...l,iconVersion:l.iconVersion||i},width:"48",height:"48"}):u("span",{className:w("text-h4","transparent"===n?e.iconText:r),children:a+1})},String(a))},Ic=x((({className:e="",gap:t=14,padding:n=16,showDots:l=!0,minHeight:a,children:r,onVisibleIndicesChange:i,listType:s="horizontal-list",version:o})=>{const c=Array.isArray(r)?r.length:0,[d,m]=Il({itemCount:c,onVisibleIndicesChange:i}),[h]=m.visibleIndicesRange;return p("div",{className:w(e,"vertical-list"===s?"relative h-full":""),children:[u(fl,{containerRef:d,activeIndex:h,visibleItemCount:1,gap:t,padding:n,onVisibleIndicesChange:m.handleVisibleIndicesChange,listType:s,minHeight:a,children:r}),l?u(Cl,{containerRef:d,activeIndex:h,dotCount:c,listType:s,version:o}):null]})})),Tc=x((({listType:e,showDots:t,options:n,version:l,...a})=>u(k,{version:l,...a,children:u(Ic,{listType:e,showDots:t,version:l,children:pl({...a,options:n})})})));Tc.childrenTypes={exclude:["SwipeListControlBlock"]};const $c="h-12 flex-1 flex items-center justify-center cursor-pointer",Bc="font-sans text-m text-center",Rc="text-white",Mc="text-secondary-text group-hover/btn:text-primary-main",jc="text-primary-main",_c={div:{scrollable:{active:`inline-flex px-4 grow whitespace-nowrap ${$c} bg-white text-primary-main`,default:`inline-flex px-4 grow whitespace-nowrap ${$c} group/btn bg-white`},default:{active:`${$c} bg-primary-main text-white whitespace-nowrap`,default:`${$c} group/btn bg-white whitespace-nowrap`}},text:{scrollable:{active:"h-full border-0 border-b-2",default:""},default:{active:"",default:""}}},Vc={link:{scrollable:{active:`inline-flex px-4 grow whitespace-nowrap ${$c} bg-white text-primary-main`,default:`inline-flex px-4 grow whitespace-nowrap ${$c} group/btn bg-white`},default:{active:`${$c} bg-primary-main text-white`,default:`${$c} group/btn bg-white`}},text:{scrollable:{active:`${Bc} flex items-center h-full border-0 border-b-2 text-primary-main`,default:`${Bc} ${Mc}`},default:{active:`${Bc} text-white`,default:`${Bc} ${Mc}`}}},Lc=(e,t,n)=>{const l=t?"active":"default";return _c[e][n?"scrollable":"default"][l]},zc=(e,t,n)=>{const l=t?"active":"default";return Vc[e][n?"scrollable":"default"][l]},Pc=x((e=>{const{tab:t,currentTab:n,onClick:l,isScrollable:a=!1}=e,r="link"===n?.type&&n.href===t.href,i=H()(t);return u("a",{role:"tab",className:zc("link",r,a),target:t.target,href:i.href,onClick:e=>{i.onClick(e),l(t)},children:u("span",{className:zc("text",r,a),children:t.text})})})),Dc=(e,t,n)=>e?u("h3",{className:n?`${Bc} ${t?jc:Mc}`:`${Bc} ${t?Rc:Mc}`,children:e}):null,Oc=(e,t,n)=>e&&t?u("div",{className:"min-w-[22px] h-[22px] rounded-full text-xs ml-2 flex justify-center items-center "+(n?"bg-white/30 text-white":"bg-main-divider text-secondary-text group-hover/btn:text-primary-main"),children:t}):null,Ac=({page:e,currentTab:t,showCounter:n,onClick:l,isScrollable:a=!1})=>(r,i)=>{const s=r.type;if("group"!==s&&"link"!==s)return null;switch(s){case"group":return(({page:e,currentTab:t,showCounter:n,onClick:l,isScrollable:a=!1})=>(r,i)=>{const s=t===r,o=r.ref&&e?.blocks?e.blocks.filter((e=>e?.labels?.includes(r.ref))).length:0;return u("div",{className:Lc("div",s,a),role:"tab","aria-selected":s,onClick:()=>l(r),children:p("div",{className:`flex flex-1 items-center justify-center ${Lc("text",s,a)}`,children:[Dc(r.title,s,a),Oc(n,o,s)]})},`group-${String(i)}`)})({page:e,currentTab:t,showCounter:n,onClick:l,isScrollable:a})(r,i);case"link":return u(Pc,{tab:r,currentTab:t,isScrollable:a,onClick:l},String(i));default:Zr(s)}return null},Ec=x((e=>{const{tabs:t,onClick:n,currentTab:l,page:a,showCounter:r}=e,[i,s]=Il({itemCount:t?.length||0,isCyclic:!1});return p("div",{className:"relative max-w-full m-auto",children:[u("div",{className:"font-sans max-w-full w-full overflow-hidden relative bg-white",children:u(fl,{containerRef:i,snapAlign:"snap-start",onVisibleIndicesChange:s.handleVisibleIndicesChange,children:t?.map(Ac({onClick:n,currentTab:l,showCounter:r,page:a,isScrollable:!0}))})}),s.canScrollLeft?u(Wt,{className:"absolute z-40 top-0 left-6",onClick:s.scrollLeft}):null,s.canScrollRight?u(Kt,{className:"absolute z-40 top-0 rotate-180 right-6",onClick:s.scrollRight}):null]})})),Fc=x((e=>{const{className:t="",tabs:n,showCounter:i,isSticky:s,tabsMode:o,...c}=e,[d,m]=l(n?n[0]:void 0);a((()=>{n&&n[0]&&Uc(n[0])}),[]),a((()=>{"group"===d?.type&&f.subject("tab",{type:d.type,label:d.ref})}),[d]);const h=r((e=>{Uc(e),m(e)}),[]);return u(k,{className:`relative box-border flex gap-x-1 w-full ${s?"sticky top-1 z-20":""} ${t}`,role:"tablist",...c,children:"scrollable"===o?u(Ec,{tabs:n,onClick:h,currentTab:d,showCounter:i,...c}):n?.map(Ac({onClick:h,currentTab:d,showCounter:i,...c}))})})),Uc=e=>{"group"===e.type&&f.fire("tab",{type:e.type,label:e.ref}),"link"===e.type&&f.fire("tab",{type:e.type,label:e.href})},Hc=x((({isOpen:e,onClick:t})=>p(te,{version:"primary",onClick:t,className:"w-full flex items-center justify-center rounded-none py-5",children:[u("div",{className:"text-h4",children:e?"Скрыть":"Показать ставки по вкладу"}),u(fe,{name:e?"ArrowUpIcon":"ArrowDownIcon",className:"ml-3",iconVersion:"white",width:"20",height:"20"})]}))),Xc={Buttons:({buttons:e})=>It(e),Img:({image:e})=>e?.src?u(ot,{image:e}):null,List:({isDotted:e,...t})=>u(ra,{className:"flex flex-col justify-between items-start text-h6",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>p("div",{children:[e?u("div",{className:"text-h6 m-0 "+(t?"mb-1":""),children:e}):null,t?u("div",{className:"text-secondary-text text-l-light",children:t}):null]}),Table:x((({isVisible:e,displayTable:t,dataUrl:n,pdfUrl:l,isOpen:a})=>e?u(Hc,{isOpen:a,onClick:()=>{t({dataUrl:n,pdfUrl:l})}}):null))},Wc=({rowIdx:e,cellIdx:t,setTableInner:n,tableInner:r,openTableInnerIdx:i,setOpenTableInnerIdx:s})=>(o,c)=>{const[d,m]=l(!0);a((()=>{t===i&&r||m(!0)}),[r,i]);return p("div",{className:"Table"===o?.tableCellType?"ml-10":"first:pt-5 last:pb-5 pl-10",children:[c>0?u("div",{className:"h-5"}):null,Kc({cell:o,cellProps:{rowIdx:e,cellIdx:t,fieldIdx:c,displayTable:e=>{m(!1),s(t),n(e)},isVisible:d}})]},String(c))},Kc=({cell:e,cellProps:t})=>{if(!e)return null;const{tableCellType:n,...l}=e;if(!n||!(n in Xc))return null;return u(Xc[n],{...t,...l})},Gc=x((({cells:e,rowIdx:t,cellIdx:n,setTableInner:l,tableInner:a,openTableInnerIdx:r,setOpenTableInnerIdx:i})=>u("div",{className:"first:pl-0 w-80 flex-grow flex flex-col border-solid border-main-divider border border-t-0 border-x-0",role:"cell",children:e?.length?e.map(Wc({rowIdx:t,cellIdx:n,setTableInner:l,tableInner:a,openTableInnerIdx:r,setOpenTableInnerIdx:i})):null}))),Jc=x((({rows:e})=>{const t=e?.[0]?.length??0,[n,l]=Ht({itemCount:t,visibleItemCount:5});return p("div",{children:[e?.map(Yc(n)),Gt({...l,btnClass:["left-3 top-20","right-3 top-20"],className:""})]})})),Yc=e=>(t,n)=>{if(!t?.length)return null;const[l,...a]=t,r=[...Array(e).keys()].reduce(((e,t)=>140*(a?.[t]?.cols?.length??1)+e),0),i=["flex duration-1000 text-center",0!==n?"font-normal":"font-light"].join(" ");return p("div",{className:"flex border-main-divider border border-t-0 border-x-0 border-solid",children:[l?.data?u("div",{className:"text-xl-light w-[214px] pb-5 "+(0===n?"pt-8":"pt-6"),children:l.data}):null,u("div",{className:"flex flex-grow overflow-hidden",children:u("div",{className:i,style:{transform:`translateX(-${r}px)`},children:a?.map(((t,n)=>p("div",{className:"flex flex-col flex-grow justify-center pt-6 pb-5 odd:bg-main-divider",children:[t?.data?u("div",{className:"text-xl-light mb-3",children:t.data}):null,t?.cols?qc(t.cols,e):null]},`row${n}`)))})})]},String(n))},qc=(e,t)=>e?.length>0?u("div",{className:`flex ${t} ${0===t?"text-secondary-text":""} last:mr-3`,children:e.map(((e,t)=>u("div",{className:"w-[76px] text-h6 mr-5 first:ml-8",children:e},String(t))))}):null,Zc=x((({activeTabIndex:e,items:t})=>{const[n,a]=l({}),i=r((e=>a((t=>({...t,[e]:!t[e]})))),[]);return u("div",{children:t.map(((t,l)=>{const a=`activeTabIdx:${e}-tableIdx:${l}`;return p("div",{className:"w-full",children:[p("div",{className:"flex p-4 bg-gray text-xl-light text-center justify-center cursor-pointer relative",onClick:()=>i(a),children:[t.title,u(ot,{image:{icon:n[a]?"PlusIcon":"MinusIcon"},className:"absolute right-[22px]",width:"24",height:"24"})]}),u("div",{className:"w-full pl-2 overflow-hidden transition-height duration-500 ease-in-out "+(n[a]?"h-0":""),children:u("div",{className:"relative",children:u(Jc,{rows:t.rowsData})})})]},a)}))})})),Qc=x((({currencies:e,linkToPDF:t,activeTabIndex:n,setActiveTabIndex:l})=>p("div",{className:"flex justify-between w-full pt-2.5 pb-3",children:[e&&e.length>1?u("div",{className:"flex bg-secondary-light p-1.5 rounded-md",children:e.map(((e,t)=>u("div",{className:"rounded-md text-xl-light px-4 py-3 cursor-pointer "+(t===n?"bg-primary-main text-white":"text-secondary-text"),onClick:()=>l(t),children:e||t+1},e)))}):null,t?u(te,{href:t,version:"secondary",target:"_blank",appendLeft:u(fe,{name:"DocDownloadIcon",iconVersion:"color",className:"mr-0.5",width:"20",height:"20"}),text:"Скачать в PDF"}):null]})));async function ed(e){const t=await fetch(e);return await t.json()}const td=x((({dataUrl:e,pdfUrl:t,onClick:n})=>{const{tableData:a}=function(e){const{data:t}=B(function(e){return`/wcms-resources/${e||"tariffs-inner-table-data"}.json`}(e),ed);return t||{}}(e),[i,s]=l(0),o=r((e=>s(e)),[]),c=a?.[i]?.items??[],d=a?.map((e=>e.currency??""));return p("div",a?{className:"bg-white z-10",children:[u(Qc,{currencies:d,activeTabIndex:i,setActiveTabIndex:o,linkToPDF:t}),u(Zc,{activeTabIndex:i,items:c}),u(Hc,{onClick:n,isOpen:!0})]}:{className:"my-5 text-h6 text-center",children:[u("p",{children:"Данных нет"}),u(Hc,{onClick:n,isOpen:!0})]})})),nd=x((({children:e,tableInner:t,onHideContentClick:n})=>p("div",{className:"self-start flex flex-col",role:"row",children:[u("div",{className:"flex",children:e}),t?u("div",{className:"origin-top animate-expansion",children:u(td,{...t,onClick:n})}):null]}))),ld=x((({row:{header:e,data:t},activeIndex:n,rowIdx:a,...i})=>{const[s,o]=l(void 0),c=r((e=>o(e)),[]),[d,m]=l(void 0),h=r((e=>m(e)),[]);return p(nd,{onHideContentClick:()=>o(void 0),tableInner:s,...i,children:[u("div",{className:"text-s py-5 w-[354px] flex-shrink-0 border-main-divider border border-t-0 border-x-0",children:p("div",{className:"flex items-center text-primary-text",role:"cell",children:[e?.icon?u(ot,{className:"mr-3.5 max-w-6",image:e.icon,width:"24",height:"24"}):null,e?.title?u("div",{className:"text-m-light",children:e?.title}):null]})}),t?.length?u(Da,{activeIndex:n,columnWidth:360,version:"tariff",children:t.map(((e,t)=>u(Gc,{cells:e,rowIdx:a,cellIdx:t,setTableInner:c,tableInner:s,openTableInnerIdx:d,setOpenTableInnerIdx:h,...i},String(t))))}):null]})})),ad=x((({className:e="",title:t,description:n,rowHeaders:l,tariffsColumns:a,hiddenRowsNum:r=0,...i})=>{const s=a?.map((({data:e})=>e))||[],o=l?.map(((e,t)=>({header:e,data:s.map((e=>e?.[t]||[]))}))),c=s.length,[d,m]=Ht({itemCount:c,visibleItemCount:2}),h=(o||[]).map(((e,t)=>u(ld,{row:e,activeIndex:d,rowIdx:t,...i},String(t)))),[x,g]=r>0?[h.slice(0,-r),h.slice(-r)]:[h,[]];return p(k,{className:`p-12 overflow-hidden relative ${c>1?"pr-0":""} ${e}`,...i,children:[rd({title:t,description:n}),id(n),r>0?u(ka,{renderFoldableSection:({isUnfolded:e})=>p(sd,{controls:m,children:[x,u(Sa,{isUnfolded:e,children:g})]}),renderFoldButton:Lr}):u(sd,{controls:m,children:h})]})}));function rd({title:e,description:t}){return e?u(T,{headingType:"h3",className:"text-center "+(t?"mb-2.5":"mb-8"),title:e}):null}function id(e){return e?u("div",{className:"mb-9 text-center text-l",children:e}):null}const sd=x((({children:e,controls:t})=>{const{isScrollAvailable:n}=t;return p("div",{role:"table",children:[p("div",{className:"relative",children:[e,Gt({...t,btnClass:["top-[108px]","top-[44px]"],className:"right-7"})]}),n?u("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),od=x((({className:e="",title:t,description:n,iconVersion:l,image:a,__html:r,...i})=>p(k,{className:`px-9 py-4 flex gap-3 bg-white group-data-secondary:bg-primary-main/10' ${e}`,...i,children:["small"===l?u("div",{className:"mt-1",children:cd()}):null,"big"===l?dd(a):null,p("div",{children:[t?md(t):null,n?u("div",{className:"mt-1",children:hd(n)}):null,r?u(wa,{__html:r}):null]})]}))),cd=()=>u("div",{className:"rounded-full h-4 w-4 text-center text-xs-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main",children:"i"}),dd=e=>e?.src?u(ot,{image:e}):null,md=e=>u(re,{size:"text-l",font:"font-medium",color:"text-primary-text group-data-secondary:text-white",children:e}),hd=e=>u(ae,{size:"text-s",color:"text-secondary-text group-data-secondary:text-white",children:e}),ud=x((e=>{const{tags:t,className:n=""}=e;return t?.length?u("div",{className:`flex flex-wrap gap-2 ${n}`,children:t.map(pd)}):null})),pd=(e,t)=>u("span",{className:"text-m-light py-2 px-2.5 border-solid border rounded-md border-gray",children:e},String(t)),xd=x((({title:e,headingType:t="h3",__html:n,items:l,buttons:a,image:r,isDotted:i=!0,listItemSize:s="M",className:o="",tags:c,children:d,directionRight:m=!0,...h})=>p(k,{className:w("flex grow justify-between items-stretch h-full p-9 pr-3 box-border",To(o),Fs(o),o),...h,children:[r?.src?u(ot,{className:w("mt-auto ml-7",m?"order-2":""),image:r}):null,u(Kl,{title:e?u(T,{headingType:t,as:"h2",title:e,className:"whitespace-pre-wrap max-w-[600px]"}):null,buttons:It(a,{className:"mt-8",buttonClassName:"min-w-[158px]"}),children:p("div",{children:[n?u("div",{className:"max-w-[600px] mt-2.5",children:u(wa,{__html:n})}):null,d,u(ra,{className:"mt-2.5",itemClassName:"mb-1.5",items:l,isDotted:i,listItemSize:s}),c?.length?u(ud,{tags:c,className:"mt-5"}):null]})})]}))),gd={stretch:"items-stretch",left:"items-start",center:"items-center",right:"items-end"},bd=x((({className:e="",gap:t="",align:n="stretch",isPadding:l=!1,isInnerPadding:a=!0,version:r="transparent",isTheme:i=!1,...s})=>{const o=a?"":"!p-0";return u(k,{className:w("relative","flex flex-col [&>*]:max-w-full",l?"p-12":"",vs[t],n&&gd[n],e),version:r,isTheme:i,...s,children:pl({...s,renderProps:(e,t)=>ml(e,t,{className:o})})})}));bd.childrenTypes=[];const fd=e=>Es(e)<10?"py-6 px-11":"py-12 px-32",vd=x((({className:e,title:t,url:n,previewImg:l,...a})=>{const r=U();return p(k,{className:w(fd(e),e),...a,children:[u(Mt,{title:t,headlineVersion:"M"}),n?u("video",{className:"m-auto w-full object-fill",preload:"metadata",poster:A(r)(l?.src),style:{maxHeight:524},controls:!0,children:u("source",{src:A(r)(n)})}):null]})})),Nd=x((({address:e,email:t,telephone:n,button:l,className:a="",__html:r,icon:i,title:s,version:o="primary",...c})=>p(k,{className:w("box-border text-left p-9",a),version:o,...c,children:[p("div",{className:"w-full flex justify-between",children:[s?u(T,{headingType:"h4",as:"h3",className:"mb-6",title:s}):null,yd(i)]}),p("div",{className:"w-full",children:[r?wd(r):null,Cd("Адрес",e,"GeolocationIcon"),Cd("Телефон",n,"PhoneIcon"),Cd("E-mail",t,"MailIcon"),l?.text?It([l],{className:"mb-6"}):null]})]}))),yd=e=>p("div",{className:"self-end",children:[e?.src?u(ot,{image:e}):null,e?.icon?u(ot,{image:e}):null]}),wd=e=>u("div",{className:"border-b border-main-divider pb-5 my-5",children:u(wa,{__html:e})}),Cd=(e,t,n)=>p("div",{className:"flex mb-4",children:[u(fe,{className:"pr-4",iconVersion:"black",name:n,width:"24",height:"24"}),p("div",{className:"flex flex-col first:pb-1",children:[u(re,{size:"text-m-light",children:e}),t?u(re,{size:"text-h6",color:"text-green",children:t}):null]})]}),kd={ApplicationForm:Nt,BenefitsBlock:yt,Bonus:jt,BonusBenefitsBlock:Pt,BusinessBlock:Ft,ButtonBlock:Ut,Calculator:tl,CardTransfer:ol,Carousel:Ml,CarouselBankHistoryCard:Ll,CarouselCard:El,CarouselCatalogCard:Ul,CarouselEventCard:Wl,CarouselInvestmentCard:Jl,CarouselLinks:Ql,CarouselProductCard:ia,CarouselProgramsCard:ha,CarouselRecommendationCard:Na,CarouselRichTextCard:Ca,CarouselTariffsCard:Ia,ComparisonTable:Ja,ContactsBlock:qa,ErrorBlock:tr,ExchangeRateTile:jr,Filtration:Ur,Footer:Mi,GracePeriod:ji,Header:fs,Headline:Mt,HorizontalLayout:Ns,ImgBlock:ys,InsuranceAmountBlock:Is,InvestmentInfo:Ms,LinkDocs:As,MobileAppTile:Us,OfficeMap:go,OfficeServicesBlock:bo,ParagraphBlock:vo,PictureText:Co,Placeholder:$o,ProductBlock:Do,ProductGallery:Oo,ProductTile:Uo,PromoTile:Xo,RichTextBlock:Ko,RollupItem:Go,SafeDepositRental:fc,StepsBlock:kc,SwipeListControlBlock:Tc,Tabs:Fc,TariffsTable:ad,TextBlock:od,Tile:xd,VerticalLayout:bd,Video:vd,ExchangeRateOffice:cr,RepresentativeOfficeInfo:Nd};const Sd=["Header","Footer"],Id=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function Td(e=globalThis){const t=s(new Map);a((()=>y.subscribe("intersection",(({block:e,intersection:n})=>{t.current&&t.current.set(e,n)}))),[]),a((()=>{const n=((e,t=600)=>{let n;const l=(...a)=>{l.dispose(),n=setTimeout((()=>{e(...a)}),t)};return l.dispose=()=>{n&&clearTimeout(n)},l})((()=>{!function(e){const t=`#${n=e?.anchor,n?.replace("#","")||""}`;var n;globalThis.location?.hash!==t&&globalThis.history?.replaceState(globalThis.history?.state,"",t)}(globalThis.scrollY>3*globalThis.innerHeight/4?function(e){const t=e.filter((([e])=>!Sd.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[n]=t.length>0?yn(Id)(t):[];return n}([...t.current||[]]):void 0)}),100);return e.addEventListener("scroll",n),()=>{n.dispose(),e.removeEventListener("scroll",n)}}),[e])}const $d=h();const Bd=x((({className:e,onClick:t,ariaLabel:n})=>u("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":n,children:Rd()}))),Rd=()=>{const e={stroke:"#292D32",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"};return p("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[u("path",{...e,strokeMiterlimit:"10",d:"M21.48 11.95c.5-1.4-.4-2.6-1.9-2.6h-4c-.6 0-1.1-.5-1-1.2l.5-3.2c.2-.9-.4-1.9-1.3-2.2-.8-.3-1.8.1-2.2.7l-4.1 6.1M7.48 18.35l3.1 2.4c.4.4 1.3.6 1.9.6h3.8c1.2 0 2.5-.9 2.8-2.1l1.24-3.77"}),u("path",{...e,d:"M2.38 18.35v-9.8c0-1.4.6-1.9 2-1.9h1c1.4 0 2 .5 2 1.9v9.8c0 1.4-.6 1.9-2 1.9h-1c-1.4 0-2-.5-2-1.9Z"})]})},Md=x((({className:e=""})=>{const t=function(e){const[t,n]=l(0);return a((()=>{(async()=>{const[t]=await $d.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:r((async()=>{n(await $d.like(e))}),[e]),dislike:r((async()=>{n(await $d.dislike(e))}),[e])}}(U().pathname);return p("div",{className:`border-main border-2 border-solid bg-white flex w-[125px] items-center justify-center gap-3 p-2 font-sans ${e}`,children:[u(Bd,{onClick:F(t.like),ariaLabel:"Поставить отметку «лайк»"}),u(Bd,{onClick:F(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),u("span",{className:"select-none",children:t.likeCount})]})})),jd=x((e=>{const{className:t="",blocksRegistry:n,blockDecorator:l,data:a={}}=e,{style:r,blocks:i,slots:s,likeControl:o,colorPalette:c="pc"}=a,d={key:"",page:a,blocksRegistry:n,blockDecorator:l,parent:a};Td();const[m,{setTrue:h,setFalse:x}]=di();return Qr({onOpen:h,onClose:x}),p("section",{className:w("relative",r,t,m?"overflow-hidden h-screen":""),"data-theme":c,children:[s?.header?u("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:ul(s?.header,{...d,slotName:"header"})}):null,p("div",{className:"container grid grid-cols-12 gap-1",children:[ul(i,d),s?.footer?ul(s?.footer,{...d,slotName:"footer"}):null]}),o?u("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:u(Md,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null]})}));jd.childrenTypes=[],jd.slots=()=>["header","footer"];e.Blocks=kd,e.ContentPage=jd,e.DaDataAPI=function(e=""){return{getFetcherAddress:async function(){if(!("geolocation"in navigator))return null;try{const t=await(async()=>new Promise((e=>navigator.geolocation.getCurrentPosition((({coords:t})=>e(t))))))(),n=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await n.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.LikeAPI=h,e.handlerDecorator=F,e.joinList=$s,e.packageVersion="0.10.4",e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=O,e.useRouter=U,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniBlocks={})}(this,(function(e){"use strict";let t;const l=e=>(...l)=>t[e](...l),n=l("useState"),a=l("useEffect"),r=l("useCallback"),i=l("useMemo"),s=l("useRef");const o={PROD_BRANCH:"master"},c=new class{_=o;setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH||o.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CHAT_BOT(){return this._.CHAT_BOT}get CDN(){return d(this._.CDN)}get BASE_PATH(){return d(this._.BASE_PATH)}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},d=e=>e&&!e.endsWith("/")?`${e}/`:e,m="likesToken";function h(){async function e(){try{const e=JSON.parse(globalThis.localStorage?.getItem(m)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:l}=await e.json();return globalThis.localStorage?.setItem(m,JSON.stringify({token:t,name:l})),{token:t,name:l}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:l}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l},body:JSON.stringify({node_ids:t})}),{likes:n}=await e.json();return n||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:l,name:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:n},body:JSON.stringify({node_id:t,user_name:n})}),{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:l,name:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:n},body:JSON.stringify({node_id:t,user_name:n})}),{likes:a}=await e.json();return a||0}catch(e){return console.error(e),0}}}}const u=(...e)=>globalThis._uni._jsx(...e),p=(...e)=>globalThis._uni._jsxs(...e),x=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:g(e)),t._tmpl},g=e=>{function t(t,l){const{children:n,...a}=t||{},r=l?.slots?.default,i=n||r&&r();return e(Object.assign(a,i&&{children:i}),l)}return t.inheritAttrs=!1,t};class b{subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]=(this.subscribers[e]||[]).concat(t);const l=this.subjectsStateMap[e];return l&&t(l),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){e in this.subjectsStateMap&&(this.subjectsStateMap[e]=t),this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}const f=new b;function v(e,{sensitivity:t,rootRef:l}={}){const n=s(null),r=i((()=>({threshold:N(t),root:l?.current})),[t,l?.current]);return a((()=>{if(!n.current)return;const t=new IntersectionObserver(e,r);return t.observe(n.current),()=>{t.disconnect()}}),[e,r]),n}function N(e=0){const t=Math.round(10*e);return new Array(t).fill(0).map(((e,l)=>Math.min(l/t)),1).concat(1)}const y=new b;const w=(...e)=>e.flatMap((e=>e)).filter(Boolean).join(" "),C={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white",gray:"bg-main-divider text-primary-text",transparent:"bg-transparent text-primary-text","":""},k=x((({className:e="",version:t="primary",isTheme:l=!0,block:i,tag:s="section",role:o,children:c})=>{const d=s,m=function(e){return v(r((t=>{if(!e||!t?.length)return;const l=t[t.length-1];y.fire("intersection",{block:e,intersection:l})}),[e]),{sensitivity:1})}(i),[h,p]=n(!1);return a((()=>f.subscribe("tab",(e=>{p(Boolean(e.label&&i?.labels?.length&&!i.labels.includes(e.label)))}))),[i]),u(d,{className:w(S(Boolean(t&&l)),C[t],h?"hidden":"",e),...t&&l?{"data-ver":t}:{},...i?.anchor?{id:i.anchor,ref:m}:{},role:o,children:c})})),S=e=>e?"group":"",I={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},T=x((({className:e="",headingType:t="h3",as:l="h3",title:n,children:a})=>u(l,{className:`font-sans m-0 ${I[t]} ${e}`,children:n||a}))),$=(e,t)=>{const[l,a]=n(e),[i,o]=n(!1),[c,d]=n({}),m=s({}),h=r((()=>{a(e),o(!1),d({})}),[e]),u=r((e=>{e.preventDefault(),o(!0),t&&t(l)}),[t,l]);return[l,{isDirty:i||Object.values(c).some(Boolean),field:e=>(m.current||(m.current={}),m.current[e]||=t=>{a((l=>({...l,[e]:t}))),d((t=>({...t,[e]:!0})))},{value:l[e],isDirty:i||c[e],onChange:m.current[e]}),reset:h,onSubmit:u}]},R=e=>t=>t&&Object.entries(e).flatMap((([e,l])=>l(t[e])))||[],B=e=>!e?.length,M=e=>t=>l=>e(l)?[]:[t],_=new Map;function j(e,t,{fallback:l}={}){const r=i((()=>z(e)),[e]),[s,o]=n(),[c,d]=n(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};a((()=>{if(!r.every((e=>null===e)))try{const e=t(...r);"then"in e?(e=>{e.then((e=>_.get(r)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...r]);const u=r[0],p=l&&"string"==typeof u&&l[u];return{data:!s&&p?p:s,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function z(e){return e?Array.isArray(e)?e:e instanceof Function?z(e()):[e]:[e]}async function L(e,t){try{return e?await D(e,t):null}catch(e){console.error(e)}return null}async function D(e,t){const l=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await l.json()}const P=[];function V(){const{data:e}=j("/api/v1/regions",D);return e||P}const O=(e="")=>({open:t=>f.fire("dialog",{type:"open",id:e,message:t}),close:()=>f.fire("dialog",{type:"close"})}),A=e=>Boolean(e?.includes(":")),E=(e,t)=>Boolean(e&&!A(e)&&(!t||"_self"===t)),F=e=>(e||"").replace(/\?.*/,"").replace(/\/$/,""),U=(...e)=>e.filter(Boolean).join("/").replace(/\/+/g,"/");var H=Object.freeze({__proto__:null,isURL:A,isLocalURL:E,isHash:e=>Boolean(e?.startsWith("#")),withoutQuery:F,joinPath:U});const X=e=>(t,l=c.BASE_PATH)=>{if(!t||A(t)||W(t,c.CDN))return t;const n=t.startsWith("/");return U(W(t,l)?"":l,n?"/":e.pathname?.split("/").slice(0,-1).join("/"),t)},W=(e,t)=>t&&e&&e.startsWith(t),K=(e,t)=>K._impl(e,t);function G(){return G._impl()}function J(e={}){const{isRemote:t,basePath:l}=e,n=G(),{close:a}=O();return e=>({...e,href:t?e.href:X(n)(e.href,l),"aria-label":e.text,onClick:K(r(e),e)});function r({href:e,target:l,onClick:r}){return i=>{r&&r(i),e&&!t&&E(e,l)&&(a(),i?.preventDefault(),n.push(e))}}}K._impl=e=>e,K.setup=e=>{K._impl=e},G._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),G.setup=e=>{G._impl=e};const Y={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","":""},q="bg-main-divider text-main-disabled",Z={primary:q,secondary:q,white:q,link:"",transparent:"",gray:q,"":""},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=x((e=>{const{text:t,aboveText:l,appendLeft:n,appendRight:a,version:r="primary"}=e;return p("div",{className:w(le(e),"flex gap-2"),children:[n?u("div",{className:ee[r],children:n}):null,ne(e)?p("div",{children:[l?u("div",{className:"text-xs-light text-left",children:l}):null,u("div",{className:"text-left "+(l?"text-s -mt-0.5":"text-l"),children:t})]}):null,a?u("div",{className:ee[r],children:a}):null]})})),le=e=>{const{version:t,aboveText:l,rounded:n}=e;if("link"===t)return"";const a=""+(l?"py-2.5 px-7":"py-4 px-4");return["group/btn items-center justify-center",ne(e)?a:"h-12 w-12",n?"rounded-full":""].join(" ")},ne=({text:e,aboveText:t,appendLeft:l})=>Boolean(e||t||!l),ae=({className:e,rounded:t,version:l})=>["inline-block",Q,l?Z[l]:"",t?"rounded-full":"rounded-md",e].join(" "),re=({className:e,rounded:t,version:l})=>[Q,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border h-fit",l?Y[l]:"",t?"rounded-full":"rounded-md",e].join(" "),ie=x((({disabled:e,children:t,...l})=>{const n=J()(l),a=t??u(te,{...n});return u(e?oe:se,{...n,children:a})})),se=x((({className:e="",href:t,rel:l,target:n,ariaLabel:a,version:r,rounded:i,onClick:s,children:o})=>u("a",{className:re({className:e,version:r,rounded:i}),href:t,rel:l,target:n,"aria-label":a,role:t?"link":"button",onClick:s,children:o}))),oe=x((({className:e,ariaLabel:t,version:l,rounded:n,children:a})=>u("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:ae({className:e,rounded:n,version:l}),children:a}))),ce=x((({children:e,...t})=>u("p",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),de=x((({children:e,...t})=>u("span",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),me=x((({link:e})=>p(ce,{size:"text-s-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:l,isDirty:n}=e,a=n?t(l):[];return{...e,errors:a,error:a[0]}},ue=x((({className:e="",inputClassName:t="",id:l,name:n,type:a="text",label:i,value:s="",valid:o=!0,children:c,onChange:d,...m})=>{const h=r((e=>{d&&d(e.target?.value||"")}),[d]),x=c?"pr-8":"",g=o?"border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text":"border-error";return p("div",{className:w("relative",e),children:[i?u("label",{className:"block text-m-light mb-2",children:i}):null,u("input",{className:w("w-full border rounded-md text-primary-text outline-none p-4",x,g,t),id:l,name:n||l,type:a,value:s,onInput:h,...m}),c]})})),pe=x((({className:e,label:t,value:l="",error:n,onChange:a,onBlur:r})=>p("div",{className:e,children:[u(ue,{type:"text","aria-label":t,label:t,valid:Boolean(!n),value:l,onChange:a,onBlur:r}),u("div",{className:"h-2",children:n?u(de,{size:"text-xs-light",color:"text-error",children:n}):null})]}))),xe=e=>"_"===e,ge=e=>/\d/.test(e),be=e=>xe(e)||ge(e),fe=[..."+7 (___) ___-__-__"],ve=fe.findIndex(xe),Ne=fe.map(((e,t)=>be(e)?fe.slice(0,t).filter(be).length:-1));const ye=x((({children:e,onChange:t,...l})=>{const n=r((({target:{value:e}})=>t&&t(function(e){const t=e.replace(/\D/g,""),l=fe.map(((e,l)=>ge(e)?e:t.charAt(Ne[l])||e)),n=Ne.indexOf(t.length-1)+1;return(n?l.slice(0,Math.max(ve,n)):l).join("")}(e||""))),[t]);return u(ue,{onInput:n,onFocus:n,...l,children:e})})),we=x((({className:e,label:t,value:l,error:n,onChange:a,onBlur:r})=>p("div",{className:e,children:[u(ye,{"aria-label":t,label:t,valid:Boolean(!n),value:l,onChange:a,onBlur:r}),u("div",{className:"h-2",children:n?u(de,{size:"text-xs-light",color:"text-error",children:n}):null})]}))),Ce="Некорректно заполненное поле",ke=M((e=>null!=e&&""!==e))(Ce),Se=M((e=>"string"==typeof e&&e.length>1))(Ce),Ie=M((e=>"string"==typeof e&&(10===e.length||12===e.length)))(Ce),Te=($e=/^(\+7)?[\s-]?\(?[0-9]{3}\)?[\s-]?[0-9]{3}[\s-]?[0-9]{2}[\s-]?[0-9]{2}$/,M((e=>"string"==typeof e&&$e.test(e))))(Ce);var $e;const Re=e=>p("div",{className:"flex justify-between gap-5 mb-5",children:[p("div",{className:"w-1/2",children:[u(pe,{className:"shrink-0 text-l w-full mb-3",label:"Наименование организации",...he(e("fullName"),ke)}),u(pe,{className:"shrink-0 text-l w-full mb-3",label:"Контактное лицо",...he(e("name"),Se)})]}),p("div",{className:"w-1/2",children:[u(pe,{className:"shrink-0 text-l w-full mb-3",label:"ИНН",...he(e("inn"),Ie)}),u(we,{className:"shrink-0 text-l w-full mb-3",label:"Телефон",...he(e("phone"),Te)})]})]}),Be=[{name:"Торговый эквайринг"},{name:"Мобильный эквайринг"},{name:"Интернет-эквайринг"},{name:"QR-эквайринг (СБП)"},{name:"Все виды эквайринга"}];function Me(e=!1){const[t,l]=n(e),a=r((()=>l(!0)),[]),i=r((()=>l(!1)),[]),s=r((()=>l((e=>!e))),[]);return[t,{setValue:l,setTrue:a,setFalse:i,toggle:s}]}function _e(e){const t=s(null);return a((()=>{const l=l=>{t&&t.current&&l.target instanceof Node&&!t.current.contains(l.target)&&e()};return document.addEventListener("click",l),()=>{document.removeEventListener("click",l)}}),[e]),t}const je={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},ze=x((({className:e="",imageClassName:t="",name:l="",alt:n=`Иконка ${l}`,title:a=n,iconVersion:r="color",...i})=>{const s=G(),o=X(s)(U(c.CDN,"/icons",`${l}.svg`));return"normal"!==r?u(De,{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,n?u("desc",{children:n}):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:n,title:a,"aria-hidden":"true",...i}))})),Le=e=>e?"":"w-full h-full",De=x((({className:e,children:t})=>e?u("div",{className:e,children:t}):t)),Pe=x((({className:e="",label:t,options:l=[],value:n,valid:a=!0,isBorder:i=!0,placeholder:s="",onChange:o})=>{const[c,{setFalse:d,toggle:m}]=Me(),h=_e(d),x=r((e=>{d(),o&&o(e)}),[o]);return p("div",{className:e,ref:h,children:[t?u("div",{className:"mb-2",children:u(de,{size:"text-m",color:"text-primary-text",font:"font-light",children:t})}):null,p("div",{className:w("relative",c?"z-20":"z-10"),children:[p("div",{className:w("text-l flex justify-between items-center mb-0.5 text-primary-text cursor-pointer",Ae(i,a)),onClick:m,children:[u("p",{className:"p-4 pr-8 h-14 overflow-hidden text-ellipsis whitespace-nowrap",children:Oe(n)||s}),u(ze,{className:w("absolute right-3",c?"":"rotate-180"),name:"ArrowUpIcon",width:"16",height:"16"})]}),l?.length?u("div",{className:w("h-0",c?"":"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:l.map(Ve(x,c,(e=>e.key===n?.key)))})}):null]})]})})),Ve=(e,t,l)=>(n,a)=>p("div",{onClick:()=>{e(n)},className:"flex px-4 py-3 cursor-pointer hover:bg-main-divider pr-11 relative",children:[u("span",{className:"min-h-6",children:Oe(n)}),u(ze,{name:"DoneSimpleIcon",width:"16",height:"16",className:w("absolute right-4 pt-0.5",l(n)&&t?"":"hidden")})]},String(a)),Oe=e=>e?.text||e?.key||"",Ae=(e,t)=>w(e?"border rounded-md hover:border-primary-hover":"",t?" border-gray":"border-error"),Ee=x((e=>p("div",{children:[u(Pe,{...e,valid:!e.error}),u("div",{className:"h-2",children:e.error?u(de,{size:"text-xs-light",color:"text-error",children:e.error}):null})]}))),Fe=({regions:e,field:t})=>p("div",{className:"flex justify-between gap-5 mb-7",children:[u("div",{className:"w-1/2",children:u(Ee,{label:"Вид эквайринга",placeholder:"Выберите эквайринг",options:Be.map((({name:e=""})=>({key:e,text:e}))),...he(t("acquiringType"),ke)})}),u("div",{className:"w-1/2",children:u(Ee,{label:"Адрес",placeholder:"Выберите адрес",options:e.map((({code:e="",name:t=""})=>({key:e,text:t}))),...he(t("region"),ke)})})]}),Ue=x((({value:e=!1,text:t,type:l="checkbox",onChange:n})=>p("div",{role:l,"aria-checked":e,className:"flex justify-start items-center w-full cursor-pointer mb-3",onClick:()=>n&&n(!e),children:[u("div",{className:w("relative flex-shrink-0 duration-300 w-9 h-5 mr-3 rounded-2xl",e?"bg-primary-main":"bg-main-divider"),children:u("div",{className:w("absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded-full",e?"left-[50%]":"left-[5%]")})}),u(de,{size:"text-l",font:"font-light",color:"text-primary-text",children:t})]}))),He=e=>p("div",{className:"mb-5",children:[u(Ue,{text:"Хочу купить онлайн-кассу",...e("onlineCheckout")}),u(Ue,{text:"Хочу купить POS-терминал",...e("posTerminal")})]}),Xe=(e,t)=>{const l=re({className:"text-white",version:e?.version});return u("button",{type:"submit",className:w("p-4",l,t),children:e?.text?e.text:"Отправить заявку"})},We={acquiringType:{key:"Торговый эквайринг"},fullName:"",inn:"",name:"",phone:"",onlineCheckout:!1,posTerminal:!1},Ke=R({acquiringType:ke,region:ke,fullName:ke,inn:Ie,name:Se,phone:Te}),Ge=x((e=>{const{button:t,link:l,onSubmit:n}=e,a=r((e=>{const{acquiringType:t,region:l,fullName:a,inn:r,name:i,phone:s,onlineCheckout:o,posTerminal:c}=e;B(Ke(e))&&n({typeForm:"acqr",region:l?.text||"",partnerComments:`Вид эквайринга=${t?.key||""}/Онлайн касса=${o}/POS-терминал=${c}`,fullName:a,inn:r,name:i,phone:s})}),[n]),[,{field:i,...s}]=$(We,a),o=V();return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(T,{headingType:"h6",title:"Вид эквайринга и регион",className:"text-center mb-4"}),Fe({regions:o,field:i}),u(T,{headingType:"h6",title:"Данные организации",className:"text-center mb-4"}),Re(i),He(i),Xe(t,"mb-4"),u(me,{link:l})]})})),Je=e=>p("div",{className:"flex justify-between gap-5",children:[p("div",{className:"w-1/2",children:[u(pe,{className:"shrink-0 text-l w-full mb-3",label:"Контактное лицо",...he(e("name"),Se)}),u(pe,{className:"shrink-0 text-l w-full mb-3",label:"ИНН",...he(e("inn"),Ie)})]}),p("div",{className:"w-1/2",children:[u(we,{className:"shrink-0 text-l w-full mb-3",label:"Телефон",...he(e("phone"),Te)}),u(pe,{className:"shrink-0 text-l w-full mb-3",label:"Электронная почта",...he(e("mail"),ke)})]})]}),Ye=({regions:e,field:t})=>u("div",{className:"flex justify-between gap-5 mb-5",children:u("div",{className:"w-full",children:u(Ee,{label:"Регион",placeholder:"Выберите регион",options:e.map((({code:e="",name:t=""})=>({key:e,text:t}))),...he(t("region"),ke)})})}),qe={name:"",phone:"",inn:"",mail:""},Ze=R({region:ke,name:Se,phone:Te,inn:Ie,mail:ke}),Qe=x((e=>{const{button:t,link:l,onSubmit:n}=e,a=r((e=>{const{region:t,name:l,phone:a,inn:r,mail:i}=e;B(Ze(e))&&n({typeForm:"bcrd",region:t?.text||"",name:l,phone:a,inn:r,mail:i})}),[n]),[,{field:i,...s}]=$(qe,a),o=V();return p("form",{className:"container",onSubmit:s.onSubmit,children:[Ye({regions:o,field:i}),Je(i),Xe(t,"mb-4"),u(me,{link:l})]})})),et=[];const tt=async e=>await L(e,{method:"GET"})||et,lt=["От 1 000 ₽","До 1 000 000 000 ₽"],nt=["От 1 мес","До 15 лет"],at=e=>p("div",{className:"flex justify-between gap-5 mb-7",children:[p("div",{className:"w-1/2",children:[u(pe,{className:"shrink-0 text-l w-full mb-3",label:"Наименование организации",...e("fullName")}),u(pe,{className:"shrink-0 text-l w-full mb-3",label:"ИНН",...he(e("inn"),Ie)}),u(we,{className:"shrink-0 text-l w-full mb-3",label:"Телефон",...he(e("phone"),Te)})]}),p("div",{className:"w-1/2",children:[u(pe,{className:"shrink-0 text-l w-full mb-3",label:"Годовая выручка, ₽",...he(e("annualRevenue"),ke)}),u(pe,{className:"shrink-0 text-l w-full mb-3",label:"Контактное лицо",...he(e("name"),Se)}),u(pe,{className:"shrink-0 text-l w-full mb-3",label:"Электронная почта",...e("mail")})]})]}),rt=e=>new Intl.NumberFormat("ru-RU",{}).format(e),it=(e,t,l)=>Math.max(t,Math.min(e,l)),st=e=>e.split(/\s+/).join(""),ot=x((({className:e,title:t,items:l=[],min:n=1,max:a=100,step:r=1,value:i=n,disabled:s=!1,onChange:o})=>{const c=e=>{o&&o(it(Number(st(e.target.value)),n,a))},d={backgroundSize:`${(100*(i-n)/(a-n)).toFixed(2)}% 100%`};return p("div",{className:e,children:[p("label",{className:"block relative",children:[t?u("span",{className:"text-m-light text-primary-text",children:t}):null,u("input",{className:"m-0 mt-2 font-sans text-h3 w-full h-14 border border-solid border-gray rounded-md\n outline-none p-0 pl-4 box-border text-primary-text hover:border-primary-hover focus:border-primary-text disabled:border-gray disabled:bg-main-divider",value:rt(i),disabled:s,onChange:c,onBlur:c}),u("div",{className:"absolute inset-x-0 -bottom-1 px-4 leading-[18px]",children:u("input",{className:"box-border w-full m-0 cursor-pointer slider",type:"range",min:n,max:a,step:r,value:i,disabled:s,onChange:c,style:d})})]}),ct(l)]})}));function ct(e){return u("div",{className:"flex justify-between my-2",children:e.map(((e,t)=>u("span",{className:"text-s-light text-secondary-text",children:e},String(t))))})}const dt=e=>p("div",{className:"flex justify-between gap-5 mb-7",children:[p("div",{className:"w-1/2",children:[u("label",{children:u(de,{size:"text-m-light",children:"Сумма кредита, ₽"})}),u(ot,{items:lt,min:1e3,max:1e9,...e("amount")})]}),p("div",{className:"w-1/2",children:[u("label",{children:u(de,{size:"text-m-light",children:"Срок кредита, месяцев"})}),u(ot,{items:nt,min:1,max:180,...e("term")})]})]}),mt=({regions:e,branches:t,field:l})=>p("div",{className:"flex justify-between gap-5 mb-7",children:[u("div",{className:"w-1/2",children:u(Ee,{label:"Регион",placeholder:"Выберите регион",options:e.map((({code:e="",name:t=""})=>({key:e,text:t}))),...he(l("region"),ke)})}),u("div",{className:"w-1/2",children:u(Ee,{label:"Адрес",placeholder:"Выберите адрес",options:t.map((({branchCode:e="",address:t=""})=>({key:e,text:t}))),...he(l("department"),ke)})})]}),ht={amount:1e3,term:12,fullName:"",inn:"",name:"",phone:"",mail:"",annualRevenue:""},ut=R({annualRevenue:ke,inn:Ie,name:Se,phone:Te,region:ke,department:ke}),pt=x((({button:e,link:t,onSubmit:l})=>{const n=r((e=>{const{amount:t,term:n,fullName:a,inn:r,name:i,phone:s,mail:o,region:c,department:d,annualRevenue:m}=e;B(ut(e))&&l({typeForm:"cred",fullName:a,inn:r,name:i,phone:s,mail:o,region:c?.text||"",department:d?.text||"",partnerComments:`Сумма=${t}/Срок=${n}/Выручка=${m}`})}),[l]),[a,{field:i,...s}]=$(ht,n),o=V(),c=function(e){const{data:t}=j(e?`/api/v1/branches?regionCode=${e}`:null,tt);return t||et}(a.region?.key).filter((e=>e?.address));return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(T,{headingType:"h6",title:"Параметры кредита",className:"text-center mb-4"}),dt(i),u(T,{headingType:"h6",title:"Данные организации",className:"text-center mb-4"}),at(i),u(T,{headingType:"h6",title:"Офис банка",className:"text-center mb-4"}),mt({regions:o,branches:c,field:i}),Xe(e,"mb-4"),u(me,{link:t})]})})),xt={name:"",phone:""},gt=R({name:Se,phone:Te}),bt=x((e=>{const{button:t,link:l,onSubmit:n}=e,a=r((e=>{const{name:t,phone:l}=e;B(gt(e))&&n({typeForm:"dpst",name:t,phone:l})}),[n]),[,{field:i,...s}]=$(xt,a);return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(T,{headingType:"h6",title:"Оставьте заявку и мы ответим на любые вопросы по депозитам",className:"text-center mb-4"}),p("div",{className:"max-w-[560px] m-auto",children:[u(pe,{className:"shrink-0 text-l w-full mb-3",label:"Имя",...he(i("name"),Se)}),u(we,{className:"shrink-0 text-l w-full mb-3",label:"Телефон",...he(i("phone"),Te)})]}),p("div",{className:"flex justify-between items-center max-w-[560px] m-auto",children:[u("div",{className:"flex-1",children:u(me,{link:l})}),Xe(t)]})]})})),ft=(e,t)=>e?.media&&t?.media?e.media-t.media:0,vt=x((({className:e="",image:t,imageClassName:l="",isMobile:n=!1,pathPrefix:a})=>{const r=G();return p("picture",{className:`${n?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.filter((e=>e?.src)).sort(ft).map((({src:e,format:l,media:n},i)=>u("source",{srcSet:yt(r,a)(e),type:wt(l),media:n?`(max-width: ${n}px)`:"",...t.size},`${i}_${e}`))):null,t?.src?Nt({...t,src:yt(r,a)(t.src)},l,n):null]})})),Nt=(e,t="",l=!1)=>{const n={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},a=e.title||"",r=e.alt||e.title,i=l?"m-auto":"m-0";return u("img",{src:e.src,className:`${i} ${t}`,alt:r,title:a,style:n,...e.size})},yt=(e,t)=>l=>l&&!A(l)?X(e)(U(t,l)):l,wt=e=>e?`image/${String(e)}`:void 0,Ct=x((({className:e="",image:t,imageClassName:l="",isMobile:n,pathPrefix:a,...r})=>t?.src||t?.icon?t.icon?u(ze,{className:e,imageClassName:l,iconVersion:t?.iconVersion,name:t.icon,...r}):u(vt,{className:e,imageClassName:l,image:t,isMobile:n,pathPrefix:a}):null)),kt=x((({className:e,viewBox:t,fill:l="none",width:n,height:a,paths:r,...i})=>u("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:l,width:n,height:a,children:r.map((({d:e,fill:t,...l},n)=>u("path",{d:e,fill:t||"currentColor",...i,...l},n)))}))),St=[{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"}],It=x((({className:e,value:t,text:l,disabled:n,isRadio:a,onChange:i})=>{const s=r((e=>{e.preventDefault(),i&&i(!t)}),[i,t]),o=a?u("div",{className:"absolute left-1 w-3 h-3 rounded-full bg-primary-main"}):u(kt,{paths:St,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":Tt(t),t?"border-primary-main":"border-gray",n?"bg-main-disabled":"group-hover/box:border-primary-hover"),role:"checkbox","aria-checked":Boolean(t),"aria-disabled":Boolean(n)}),t?o:null,l?u("span",{className:"font-sans ml-3 text-l-light",children:l}):null]})})})),Tt=e=>w("rounded border",e?"bg-primary-main":""),$t=e=>{const t=e("text");return p("div",{className:"mb-6",children:[p("div",{className:"flex items-center mb-4 gap-6",children:[u(It,{text:"Валютный контроль",...e("currencyControl")}),u(It,{text:"Документарные операции",...e("documentaryOperations")}),u(It,{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||"")})]})},Rt=e=>p("div",{children:[p("div",{className:"flex justify-between gap-5",children:[u("div",{className:"w-1/2",children:u(pe,{className:"shrink-0 text-l w-full mb-3",label:"Наименование организации",...he(e("fullName"),ke)})}),u("div",{className:"w-1/2",children:u(pe,{className:"shrink-0 text-l w-full mb-3",label:"ФИО",...he(e("name"),Se)})})]}),p("div",{className:"flex justify-between gap-5 mb-7",children:[u("div",{className:"w-1/2",children:u(we,{className:"shrink-0 text-l w-full mb-3",label:"Телефон",...he(e("phone"),Te)})}),u("div",{className:"w-1/2",children:u(pe,{className:"shrink-0 text-l w-full mb-3",label:"Электронная почта",...he(e("mail"),ke)})})]})]}),Bt={fullName:"",name:"",phone:"",mail:"",currencyControl:!1,documentaryOperations:!1,conversionOperations:!1,text:""},Mt=R({fullName:ke,name:Se,phone:Te,mail:ke}),_t=x((e=>{const{button:t,link:l,onSubmit:n}=e,a=r((e=>{const{fullName:t,name:l,phone:a,mail:r,currencyControl:i,documentaryOperations:s,conversionOperations:o,text:c}=e;B(Mt(e))&&n({typeForm:"kved",fullName:t,name:l,phone:a,mail:r,partnerComments:`Валютный контроль=${i}/Документарные операции=${s}/Конверсионные операции=${o}/Доп инф=${c}`})}),[n]),[,{field:i,...s}]=$(Bt,a);return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(T,{headingType:"h6",title:"Данные организации",className:"text-center mb-4"}),Rt(i),u(T,{headingType:"h6",title:"Интересующий вопрос",className:"text-center mb-4"}),$t(i),p("div",{className:"flex items-center pb-9 mb-9 border-b border-main-divider",children:[Xe(t,"mr-5"),u(me,{link:l})]}),u(T,{headingType:"h6",title:"Или свяжитесь с нами удобным способом",className:"text-center mb-4"}),p("div",{className:"flex",children:[p("a",{className:"flex items-center text-primary-text no-underline mr-6",href:"tel:8 (800) 200-78-70","aria-label":"8 (800) 200-78-70",children:[u(Ct,{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(Ct,{image:{icon:"MailIcon"},width:"24",height:"24",className:"mr-3"}),u("span",{children:"ved@rshb.ru"})]})]})]})})),jt=x((({responseType:e})=>{const t="OK"===e;return p("div",{className:`flex items-center mt-5 p-5 rounded-md ${t?"bg-responce-ok":"bg-responce-fail"}`,children:[u(Ct,t?{image:{icon:"ResponceOKIcon"},width:"42",height:"42",className:"mr-4"}:{image:{icon:"ResponceFailIcon"},width:"37",height:"34",className:"mr-4"}),p("div",{children:[u(T,{headingType:"h6",title:t?"Ваша заявка отправлена":"Не удалось отправить заявку",className:"mb-1"}),u(de,{size:"text-l-light",color:"text-secondary-text",children:t?"Совсем скоро мы с вами свяжемся":"Пожалуйста, повторите позднее"})]})]})})),zt={credit:e=>u(pt,{...e}),acquiring:e=>u(Ge,{...e}),"business-card":e=>u(Qe,{...e}),deposit:e=>u(bt,{...e}),wed:e=>u(_t,{...e})},Lt={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=x((e=>{const{className:t,title:l,typeForm:a="credit",button:i,link:s,...o}=e,[c,d]=n(""),m=r((async e=>{const t=await Lt.send(e)?"OK":"Fail";return d(t),t}),[]);return u(k,{className:w("font-sans bg-white p-12 pb-9",t),...o,children:p("div",{className:"container max-w-[978px]",children:[l?u(T,{headingType:"h3",title:l,className:"text-center mb-8"}):null,zt[a]({button:i,link:s,onSubmit:m}),c?u(jt,{responseType:c}):null]})})})),Pt=x((({className:e="",title:t,benefitList:l,...n})=>p(k,{className:`p-default flex flex-col items-center ${e}`,...n,children:[t?u(T,{headingType:"h3",as:"h2",className:"max-w-[47rem] text-center",title:t}):null,l?.length?u("div",{className:"flex flex-wrap w-full justify-center gap-x-20 mt-8",children:l.map(Vt)}):null]}))),Vt=(e,t)=>{const l=e.description;return p("div",{className:"flex items-center basis-1/2 max-w-[500px] mb-14",children:[e?.icon?.icon?u(Ct,{className:"w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider text-primary-main group-data-secondary:bg-white/30 group-data-secondary:text-black",image:e.icon}):null,e?.icon?.src?u(Ct,{image:e.icon}):null,p("div",{className:"ml-5 h-full",children:[e?.label?u(T,{headingType:"h6",children:e.label}):null,Ot(l)]})]},String(t))},Ot=e=>{const t=e?.benefitType||null;return e&&t?u("div",{className:"mt-2 text-l-light text-secondary-text group-data-secondary:text-white/80",children:"list"===t?Et(e):At(e)}):null},At=e=>e?.name||null,Et=e=>{const t=e?.bullets?"list-disc pl-6":"";return e?.items&&e.items.length>0?u("ul",{className:t,children:e.items.map(((e,t)=>u("li",{children:e},`benefitListItem-${t}`)))}):null},Ft=(e,{className:t="",buttonClassName:l,isVertical:n}={})=>e?.length&&e.some((e=>e?.text||e?.icon?.icon))?u("div",{className:w("flex",n?"flex-col gap-2":"gap-4",t),children:e.map(Ut(l))}):null,Ut=(e="")=>(t,l)=>{const{text:n,icon:a,iconRight:r,version:i,...s}=t||{},o="secondary"===i?"color":"white",c=a?.iconVersion?a?.iconVersion:o;return n||a?.icon?u(ie,{className:e,appendLeft:Ht({...a,iconVersion:c}),appendRight:Ht({...r,iconVersion:c}),version:i,text:n,...s},l?String(l):""):null},Ht=e=>e?.icon||e?.src?u(Ct,{image:e,width:String(e?.size?.width||24),height:String(24)}):null,Xt={XXL:{wrapper:"gap-[18px]",title:{headingType:"h0",as:"h1"},descriptionSize:"text-h5"},XL:{wrapper:"gap-4",title:{headingType:"h1",as:"h1"},descriptionSize:"text-xl-light"},L:{wrapper:"gap-4",title:{headingType:"h2",as:"h2"},descriptionSize:"text-xl-light"},M:{wrapper:"gap-3",title:{headingType:"h3",as:"h3"},descriptionSize:"text-xl-light"},S:{wrapper:"gap-2",title:{headingType:"h4",as:"h4"},descriptionSize:"text-xl-light"},XS:{wrapper:"gap-2",title:{headingType:"h5",as:"h5"},descriptionSize:"text-l-light"}},Wt={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"},Kt=x((({className:e,title:t,description:l,headlineVersion:n="XL",align:a="text-center",as:r,isPadding:i=!0,isTheme:s=!1,version:o="",...c})=>{const d=Xt[n];return p(k,{className:w("flex flex-col",i?"p-default":"",d.wrapper,e),version:o,isTheme:s,...c,children:[t?u(T,{className:w("whitespace-pre-wrap",a),...d?.title,as:r||d?.title.as,title:t}):null,l?u(ce,{size:d.descriptionSize,align:a,children:l}):null]})})),Gt=x((e=>{const{className:t="",title:l,description:n,bonusItems:a,...r}=e;return u(k,{className:`p-default pb-9 ${t}`,...r,children:p("div",{className:"container",children:[u(Kt,{className:"!p-0",title:l,description:n,headlineVersion:"M"}),u("div",{className:"flex flex-wrap w-full mt-9",children:a?.length?a.map(((e,t)=>p("div",{className:"flex-grow w-[49%] border border-gray p-9 mb-3 mx-2 even:mr-0 odd:ml-0 last:odd:mx-0",children:[e?.title?u(de,{size:"text-h4",children:e.title}):null,e?.description?u("div",{className:"mt-2",children:u(ce,{size:"text-xl",font:"font-light",children:e.description})}):null,p("div",{className:"flex justify-between items-end mt-3",children:[Ft(e?.buttons),e.bonusItemContent?.bonusType?Jt(e.bonusItemContent):null]})]},String(t)))):null})]})})})),Jt=e=>u("div",{children:"count"===e.bonusType?Yt(e):qt(e)}),Yt=e=>p("div",{className:"relative -bottom-3 h-auto flex items-end mt-14 shrink-0",children:[e.bonusCount?u("span",{className:"font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7",children:e.bonusCount}):null,e.bonusName?u("span",{className:"text-h2 bg-clip-text text-transparent bg-green-to-yellow",children:e.bonusName}):null]}),qt=e=>e.image?u(Ct,{className:"w-12 h-12 min-w-12 p-3 rounded-full",image:e.image}):null,Zt={left:"text-left",center:"text-center",right:"text-right"},Qt=x((({bonusBenefits:e,cardTextAlign:t="center",className:l="",columnsCount:n="4",subtitle:a,title:r,...i})=>p(k,{className:`font-sans text-primary-text bg-white p-default flex flex-col text-center ${l}`,...i,children:[u(Kt,{className:"!p-0 mb-8",title:r,description:a,headlineVersion:"M"}),e?.length?u("div",{className:`grid gap-1 ${Zt[t]} ${tl(n)}`,children:e.map(el)}):null]}))),el=({icon:e,title:t,description:l},n)=>p("div",{className:w("flex flex-col items-center text-h6",l||t?"":"justify-center"),children:[t?u("span",{children:t}):null,e?u(Ct,{image:e,height:"180",className:"w-auto"}):null,l?u("span",{children:l}):null]},String(n)),tl=e=>{switch(e){case"3":return"grid-cols-3";case"4":return"grid-cols-4";default:return"grid-cols-5"}},ll=x((e=>{const{title:t,image:l,cardItems:n,button:a}=e;return p("div",{className:"border-gray border p-9 w-1/2",children:[l?p("div",{className:"flex justify-center",children:[l?.src?u(Ct,{className:"mb-5",image:l}):null,l?.icon?u(Ct,{image:l}):null]}):null,t?u(T,{headingType:"h4",title:t,className:"mb-6"}):null,n?.length?u("ul",{children:n.map(((e,t)=>nl(e,String(t))))}):null,Ft([a],{buttonClassName:"mt-6"})]})})),nl=(e,t)=>{const{icon:l,text:n}=e;return p("li",{className:"flex items-center gap-3.5 mb-3 last:mb-0",children:[l?.icon?u(Ct,{image:l,className:"w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider"}):null,l?.src?u(Ct,{image:l}):null,u("span",{className:"text-xl-light",children:n})]},t)},al=x((({className:e="",title:t,cards:l,...n})=>p(k,{className:`p-default pb-9 ${e}`,...n,children:[u(T,{headingType:"h3",title:t,className:"text-center mb-8"}),u("div",{className:"flex gap-5",children:l?.length?l.map(((e,t)=>u(ll,{...e},String(t)))):null})]}))),rl=x((({button:e,className:t,...l})=>u(k,{className:w("!bg-transparent",t),...l,children:Ft([e])}))),il=e=>{const{itemCount:t,visibleItemCount:l}=e,[a,i]=n(0),s=r((()=>i((e=>Math.min(e+1,t-1)))),[t]),o=r((()=>i((e=>Math.max(e-1,0)))),[t]),c=function({itemCount:e,visibleItemCount:t}){return Boolean(t&&e>t)}(e)&&a<t-(l||1),d=a>0;return[a,{inc:s,dec:o,canInc:c,canDec:d,isScrollAvailable:d||c}]};const sl=x((({className:e,disabled:t,...l})=>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,...l,children:u(Ct,{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"})}))),ol=x((e=>u(sl,{...e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}))),cl=x((e=>u(sl,{...e,className:`${e.className||""} rotate-180`,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"})));function dl({dec:e,inc:t,canDec:l,canInc:n,btnClass:a,className:r=""}){return l||n?p("div",{children:[l?u(sl,{className:`absolute z-40 ${a[0]} ${r}`,onClick:e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left",disabled:!l}):null,n?u(sl,{className:`absolute z-40 rotate-180 ${a[1]} ${r}`,onClick:t,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right",disabled:!n}):null]}):null}const ml=x((({title:e,value:t,postfix:l="",prefix:n,className:a=""})=>p("div",{className:w("mb-7",a),children:[e?u(de,{size:"text-l-light",color:"text-secondary-text",children:e}):null,u("div",t?{children:p(de,{size:"text-h3",children:[n," ",rt(Math.round(t))," ",l]})}:{children:u(de,{size:"text-h3",children:"-"})})]}))),hl=Math.round(23.5),ul={minSum:1e4,maxSum:5e6,minMonths:13,maxMonths:60,rate:12.5,isSalaryClient:!1,isPensionClient:!1,isStateEmployee:!1,isInsurance:!0},pl={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},xl={minSum:5e4,maxSum:5e6,minMonths:2,maxMonths:10,rate:0,isMonthlyInterestPayment:!0,isRemoteRegistration:!0},gl={minSum:1e3,maxSum:5e5,minDays:1,maxDays:1095,rate:0,isMonthlyInterestPayment:!0,isReplenished:!1,isPartialWithdrawal:!1,isSmallBusiness:!1,depositeName:"Депозит 'Стабильный'"},bl=x((({rate:e,title:t="Ставка",unit:l,depositeName:n,isShowDepositeName:a,rateBlockClassName:r})=>p("div",{children:[u(de,{size:"text-l-light",color:"text-secondary-text",children:t}),p("div",{className:"relative",children:[p("div",{className:"flex justify-start",children:[u("span",{className:w("block gradient-color-text font-mohave text-title-huge pr-6 -mt-4",r),children:String(e.toFixed(2)).replace(".",",")}),l?u("span",{className:"gradient-color-text text-[65px] leading-[75px]",children:l}):""]}),n&&a?u("div",{className:"absolute bottom-7 w-full text-center whitespace-nowrap",children:n}):null]})]}))),fl=e=>e?u(ce,{size:"text-s-light",color:"text-secondary-text",children:e}):null,vl=1e3;function Nl(e,t,l){const{moneyValue:n,minSum:a,maxSum:r,step:i=vl,isShowItems:s=!0}=t,o=[`От ${rt(a)} ₽`,`До ${rt(r)} ₽`];return u(ot,{title:e,items:s?o:[],min:a,max:r,step:i,value:it(n,a,r),onChange:l})}function yl(e){const{data:t}=j(`/wcms-resources/${e}.json`,D);return t}const wl=(e,t)=>{const{travelExpenseValue:l,restExpenseValue:n}=e,a=yl(t||"bonus-calculator-data")||pl,[r,i]=((e,t,l)=>{const{minSumTravel:n,minSumOther:a,maxBonus:r,prefMonthsNum:i,prefTravelBonusRate:s,prefRestBonusRate:o,travelBonusRate:c,restBonusRate:d}=e;if(t===n&&l===a)return[0,0];const m=Math.min(Math.round(s*t)+Math.round(o*l),r);return[m,m*i+Math.min(Math.round(c*t)+Math.round(d*l),r)*(12-i)]})(a,l,n);return{...a,...e,monthBonus:r,yearBonus:i}},Cl=x((({className:e="",sourceBookDir:t="",buttons:l,footnote:a})=>{const[i,s]=n(6e3),o=r((e=>s(e)),[]),[c,d]=n(6e3),m=r((e=>d(e)),[]),h={travelExpenseValue:i,restExpenseValue:c},{minSumTravel:x,maxSumTravel:g,minSumOther:b,maxSumOther:f,monthBonus:v,yearBonus:N}=wl(h,t);return p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-[468px]",children:[Nl("Сумма покупок в категории путешествия, ₽",{minSum:x,maxSum:g,moneyValue:i,step:500,isShowItems:!1},o),Nl("Сумма покупок в остальных категориях, ₽",{className:"mt-7",minSum:b,maxSum:f,moneyValue:c,step:500,isShowItems:!1},m)]}),u("div",{children:v>=0?u(bl,{title:"Баллов за месяц",rate:v,rateBlockClassName:"tracking-[-14px]"}):null}),p("div",{className:"w-full max-w-[350px]",children:[N>=0?u(ml,{title:"Баллов за год",value:N}):null,Ft(l,{className:"mt-7",isVertical:!0}),fl(a)]})]})}));function kl(e,t,l){const{minDays:n,maxDays:a,daysValue:r}=t,i=e=>`${e} ${Number(e)%10==1?"дня":"дней"}`;return u(ot,{className:"mt-7",title:e,items:[`От ${i(n)}`,`До ${i(a)}`],min:n,max:a,step:1,value:it(r,n,a),onChange:l})}const Sl={horizontal:"gap-10",vertical:"flex-col gap-3"},Il=x((({items:e,checkedItem:t,onChange:l,orientation:n="horizontal"})=>u("div",{className:`flex ${Sl[n]}`,children:e?.map((({id:e,text:n})=>u(It,{isRadio:!0,text:n,value:t===e,onChange:()=>l&&l(e)},String(e))))}))),Tl="everyMonth",$l="atEndTerm",Rl=[{id:Tl,text:"Ежемесячно"},{id:$l,text:"В конце срока"}];function Bl({isMonthlyInterestPayment:e,callback:t,title:l,orientation:n="horizontal"}){return p("div",{children:[l?u("div",{className:"mb-3",children:u(de,{color:"text-secondary-text",font:"font-light",children:l})}):null,u("div",{children:u(Il,{orientation:n,items:Rl,checkedItem:e?Tl:$l,onChange:e=>t&&t(e===Tl)})})]})}const Ml=x((({title:e="Ставка"})=>p("div",{children:[u(de,{size:"text-l-light",color:"text-secondary-text",children:e}),u("div",{className:"mt-1 pt-1 pl-5 pb-1.5",children:u(ze,{name:"PercentIcon",width:"90",height:"85"})}),u("div",{className:"w-[250px] mt-3.5",children:p(ce,{size:"text-xl-light",color:"text-primary-text",children:["Процентная ставка для срока ",u("strong",{children:"1-30 дней"})," устанавливается при обращении в Банк"]})})]}))),_l=e=>e,jl=(e=_l)=>t=>t.reduceRight(((t,l)=>e(t)>e(l)?t:l)),zl=jl(),Ll=e=>{const t=[...e];t.sort((([e],[t])=>e-t));let l=1;for(;l<t.length;){const[e,n]=t[l-1],[a,r]=t[l];n>=a?t.splice(l-1,2,[e,Math.max(n,r)]):l++}return t},Dl=(e=_l)=>jl((t=>-e(t))),Pl=([e,t],l,n=[])=>l&&l[e]&&l[t]?{[e]:l[e],[t]:l[t]}:Vl([e,t],n),Vl=([e,t],l=[])=>({[e]:l.length?Dl()(l.filter((t=>t[e])).map((t=>t[e]))):0,[t]:l.length?jl()(l.filter((e=>e[t])).map((e=>e[t]))):0}),Ol=(e,[t,l],n)=>e>=n[t]&&e<=n[l],Al=(e,t)=>e?t.isReplenished&&t.isPartialWithdrawal:!t.isReplenished&&!t.isPartialWithdrawal,El=(e,t)=>{const{isMonthlyInterestPayment:l,moneyValue:n,daysValue:a}=t;return l?Math.round(n*Math.pow((1200+e)/1200,a/30)-n):Math.round(n*e*a/365/100)},Fl=x((({className:e="",sourceBookDir:t,buttons:l,footnote:a,bottomFootnote:i,isShowDepositeName:s})=>{const[o,c]=n(1e5),d=r((e=>c(e)),[]),[m,h]=n(90),x=r((e=>h(e)),[]),[g,b]=n(!1),f=r((e=>b(e)),[]),[v,N]=n(!1),y=r((e=>N(e)),[]),[w,C]=n(!1),k=r((e=>C(e)),[]),[S,I]=n(!1),T=r((e=>I(e)),[]),$=((e,t)=>{const{daysValue:l,moneyValue:n,isPartialWithdrawal:a,isReplenished:r,isSmallBusiness:i,isMonthlyInterestPayment:s}=e,o=yl(t||"business-calculator-data"),c=r||a,d=l<90||l>730;if(l<=30)return{...gl,...e,isDisabledOperatingDeposit:d,isShowUnknownRate:!0};const m=o?.rateRows?.find((e=>s===e.isMonthlyInterestPayment&&i===e.isSmallBusiness&&Al(c,e)&&Ol(n,["minSum","maxSum"],e)&&Ol(l,["minDays","maxDays"],e)))||gl,{rate:h}=m,u=El(h,e),p=n+u,x=o?.rateRows||[gl];return{...m,...Vl(["minSum","maxSum"],x),...Vl(["minDays","maxDays"],x),...e,isDisabledOperatingDeposit:d,income:u,finalSum:p}})({moneyValue:o,daysValue:m,isReplenished:g,isPartialWithdrawal:v,isSmallBusiness:w,isMonthlyInterestPayment:S},t),{income:R,finalSum:B,rate:M,depositeName:_,isShowUnknownRate:j}=$;return p("section",{className:e,children:[p("div",{className:"flex justify-between",children:[p("div",{className:"w-[486px]",children:[Nl("Сумма вклада, ₽",$,d),kl("Срок вклада, дни",$,x),p("div",{className:"mt-7 flex justify-between",children:[Ul({...$,handleIsReplenished:f,handleIsPartialWithdrawal:y,handleIsSmallBusiness:k}),Bl({isMonthlyInterestPayment:S,callback:T,title:"Выплата процентов",orientation:"vertical"})]})]}),j?u(Ml,{}):u(bl,{rate:M,depositeName:_,isShowDepositeName:s,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-full max-w-[350px]",children:[u(ml,{title:"Доход по вкладу",value:R,postfix:"₽",prefix:"+"}),u(ml,{title:"Сумма в конце срока",value:B,postfix:"₽"}),Ft(l,{className:"mt-7",isVertical:!0}),u("div",{className:"mt-7",children:fl(a)})]})]}),u("div",{className:"mt-5",children:fl(i)})]})})),Ul=({isDisabledOperatingDeposit:e,isReplenished:t,isPartialWithdrawal:l,isSmallBusiness:n,handleIsReplenished:a,handleIsPartialWithdrawal:r,handleIsSmallBusiness:i})=>p("div",{children:[u(It,{text:"Пополнение",disabled:e,value:t,onChange:a}),u(It,{className:"mt-3",disabled:e,text:"Частичное снятие",value:l,onChange:r}),u(It,{className:"mt-3",text:"Являюсь малым предприятием",value:n,onChange:i})]}),Hl=x((({className:e,title:t,items:l=[],list:n=[],value:a=n[0],disabled:r=!1,onChange:i})=>{const s=n.length-1,o=e=>{if(!i)return;const t=parseInt(e.target.value),l=n.reduce((function(e,l){return Math.abs(l-t)<Math.abs(e-t)?l:e}));i(Number(st(l.toString())))},c=n.findIndex((e=>e===a))||0,d={backgroundSize:`${(100*(c-0)/(s-0)).toFixed(2)}% 100%`};return p("div",{className:e,children:[p("label",{className:"block relative",children:[t?u("span",{className:"text-m-light text-primary-text",children:t}):null,u("input",{className:"m-0 mt-2 font-sans text-h3 w-full h-14 border border-solid border-gray rounded-md\n outline-none p-0 pl-4 box-border text-primary-text hover:border-primary-hover focus:border-primary-text disabled:border-gray disabled:bg-main-divider",value:rt(a),disabled:r,onChange:o,onBlur:o}),n.length?u("div",{className:"absolute w-full flex justify-between -bottom-[3px] px-4",children:n.map(Xl(c,r))}):null,u("div",{className:"absolute inset-x-0 -bottom-1 px-4 leading-[18px]",children:u("input",{className:"box-border w-full m-0 cursor-pointer slider relative z-10",type:"range",min:0,max:s,step:1,value:c,disabled:r,onChange:e=>{if(!i)return;const t=n.at(it(parseInt(e.target.value),0,s))||0;i(Number(st(t.toString())))},style:d})})]}),Wl(l)]})})),Xl=(e,t)=>(l,n)=>u("span",{className:"w-2 h-2 rounded-full "+(e<=n||t?"bg-gray":"bg-primary-main")},String(n));function Wl(e){return u("div",{className:"flex justify-between my-2",children:e.map(((e,t)=>u("span",{className:"text-s-light text-secondary-text",children:e},String(t))))})}function Kl(e,t,l){const{minMonths:n,maxMonths:a,monthsValue:r,availableMonths:i}=t,s=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`;return i?.length?u(Hl,{className:"mt-7",title:e,items:[`От ${s(n)}`,`До ${s(a)}`],list:i,value:it(r,n,a),onChange:l}):u(ot,{className:"mt-7",title:e,items:[`От ${s(n)}`,`До ${s(a)}`],min:n,max:a,step:1,value:it(r,n,a),onChange:l})}const Gl="annuity",Jl="differential",Yl=[{id:Gl,text:"Аннуитетный"},{id:Jl,text:"Дифференцированный"}];function ql({isAnnuity:e,callback:t,title:l,orientation:n="horizontal"}){return p("div",{children:[l?u("div",{className:"mb-3",children:u(de,{color:"text-secondary-text",font:"font-light",children:l})}):null,u(Il,{orientation:n,items:Yl,checkedItem:e?Gl:Jl,onChange:e=>t&&t(e===Gl)})]})}const Zl=(e,t,l)=>{const{moneyValue:n,monthsValue:a}=e,r=yl(t||"credit-calculator-data"),s=r?.limitRows?.find((t=>Ql({row:t,userInputParams:e,paramsViewSettings:l}))),o=r?.rateRows?.find((t=>Ql({row:t,userInputParams:e,paramsViewSettings:l})&&Ol(n,["minSum","maxSum"],t)&&Ol(a,["minMonths","maxMonths"],t)))||ul,{rate:c}=o,d=((e,t)=>{const{isAnnuity:l,moneyValue:n,monthsValue:a}=t;if(0===e)return 0;if(l){const t=e/1200;return n*(t+t/(Math.pow(1+t,a)-1))}return Math.round(n/a)+n*(e/1200)})(c,e),m=r?.rateRows||[ul];return i((()=>({...o,...Pl(["minSum","maxSum"],s,m),...Pl(["minMonths","maxMonths"],s,m),...e,monthlyPayment:d})),[e])},Ql=e=>en({...e,fieldKey:"isSalaryClient",viewSettingFieldKey:"isShowSalaryClient"})&&en({...e,fieldKey:"isStateEmployee",viewSettingFieldKey:"isShowStateEmployee"})&&en({...e,fieldKey:"isPensionClient",viewSettingFieldKey:"isShowPensionClient"})&&en({...e,fieldKey:"isInsurance",viewSettingFieldKey:"isShowInsurance"}),en=({row:e,userInputParams:t,paramsViewSettings:l,fieldKey:n,viewSettingFieldKey:a})=>!!l&&!l[a]||t[n]===e[n],tn=x((({className:e="",sourceBookDir:t,buttons:l,footnote:i,paramsViewSettings:s})=>{const[o,c]=n(!1),[d,m]=n(!1),h=r((e=>m(e)),[]),[x,g]=n(!1),b=r((e=>g(e)),[]),[f,v]=n(!1),N=r((e=>v(e)),[]),[y,C]=n(!0),k=r((e=>C(e)),[]),[S,I]=n(2e5),T=r((e=>I(e)),[]),[$,R]=n(hl),B=r((e=>R(e)),[]),M=Zl({isAnnuity:o,isInsurance:y,isSalaryClient:d,isPensionClient:f,isStateEmployee:x,moneyValue:S,monthsValue:$},t,s);return a((()=>{I(it(S,M.minSum,M.maxSum)),R(it($,M.minMonths,M.maxMonths))}),[M]),p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-[468px]",children:[Nl("Сумма кредита, ₽",{...M,step:500},T),Kl("Срок кредита, месяцев",M,B),u("div",{className:"mt-7",children:nn({...M,...s,handleIsSalaryClient:h,handleIsStateEmployee:b,handleIsPensionClient:N,handleIsInsurance:k})})]}),ln(M.rate),p("div",{className:"w-full max-w-[350px]",children:[u(ml,{title:"Ежемесячный платеж",value:M.monthlyPayment,postfix:"₽"}),ql({isAnnuity:o,orientation:"vertical",callback:c}),Ft(l,{className:"mt-7",isVertical:!0}),fl(i)]})]})})),ln=e=>u(bl,{title:"Ставка",rate:e,rateBlockClassName:"tracking-[-25px]",unit:"%"}),nn=({isSalaryClient:e,isStateEmployee:t,isPensionClient:l,isInsurance:n,isShowSalaryClient:a,isShowStateEmployee:r,isShowPensionClient:i,isShowInsurance:s,handleIsSalaryClient:o,handleIsStateEmployee:c,handleIsPensionClient:d,handleIsInsurance:m})=>p("div",{children:[a?u(It,{text:"Получаю зарплату на счёт в Россельхозбанке",value:e,onChange:o}):null,r?u(It,{className:"mt-3",text:"Работаю в бюджетной организации",value:t,onChange:c}):null,i?u(It,{className:"mt-3",text:"Получаю пенсию на карту Россельхозбанка",value:l,onChange:d}):null,s?u(It,{className:"mt-3",text:"Комплексная страховая защита",value:n,onChange:m}):null]}),an="remote",rn="office",sn=[{id:rn,text:"Офис Банка"},{id:an,text:"Дистанционно"}];function on({isRemoteRegistration:e,callback:t,title:l,orientation:n="horizontal"}){return p("div",{children:[l?u("div",{className:"mb-3",children:u(de,{color:"text-secondary-text",font:"font-light",children:l})}):null,u("div",{children:u(Il,{orientation:n,items:sn,checkedItem:e?an:rn,onChange:e=>t&&t(e===an)})})]})}const cn=(e,t,l)=>{const{moneyValue:n,monthsValue:a}=e,r=yl(t||"deposit-calculator-data"),i=r?.rateRows[0]?hn(r.rateRows[0].minMonths,r.rateRows[0].maxMonths):1,s=!l?.isShowMonthlyInterestPayment,o=!l?.isShowRemoteRegistration,c=r?.rateRows?.find((t=>mn({row:t,userInputParams:e,paramKey:"isMonthlyInterestPayment",isExclude:s})&&mn({row:t,userInputParams:e,paramKey:"isRemoteRegistration",isExclude:o})&&Ol(n,["minSum","maxSum"],t)&&Ol(a||i,["minMonths","maxMonths"],t)))||xl,{rate:d}=c,m=dn(d,e),h=n+m,u=r?.rateRows||[xl];return{...c,...Vl(["minSum","maxSum"],u),...Vl(["minMonths","maxMonths"],u),availableMonths:Ll(u.map((e=>[e.minMonths,e.maxMonths]))).flatMap((([e,t])=>((e,t,l=1)=>Array.from({length:Math.abs(t-e)/l+1},((n,a)=>t>=e?e+a*l:e-a*l)))(e,t))),...e,defaultMonth:i,income:m,finalSum:h}},dn=(e,t)=>{const{isMonthlyInterestPayment:l,moneyValue:n,monthsValue:a}=t;return l?Math.round(n*Math.pow((1200+e)/1200,a)-n):Math.round(n*e*30*a/365/100)},mn=({row:e,userInputParams:t,paramKey:l,isExclude:n})=>n||t[l]===e[l],hn=(e,t)=>e+Math.round((t-e)/2),un=x((({className:e="",sourceBookDir:t,buttons:l,footnote:i,paramsViewSettings:s})=>{const[o,c]=n(2e4),d=r((e=>c(e)),[]),[m,h]=n(0),[x,g]=n(!1),b=r((e=>g(e)),[]),[f,v]=n(!1),N=r((e=>v(e)),[]),y={moneyValue:o,monthsValue:m,isMonthlyInterestPayment:x,isRemoteRegistration:f},C=r((e=>h(e)),[]),k=cn(y,t,s),{defaultMonth:S,income:I,finalSum:T,rate:$}=k;return a((()=>{h(S)}),[S]),p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-[468px]",children:[Nl("Сумма вклада, ₽",{...k},d),Kl("Срок вклада, месяцев",{...k},C),u("div",{className:"mt-7",children:pn({...k,...s,handleIsMonthlyInterestPayment:b,handleIsRemoteRegistration:N})})]}),u(bl,{rate:$,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-full max-w-[350px]",children:[u(ml,{title:"Доход по вкладу",value:I,postfix:"₽",prefix:"+"}),u(ml,{title:"Сумма в конце срока",value:T,postfix:"₽"}),Ft(l,{className:"mt-7",isVertical:!0}),fl(i)]})]})})),pn=({isMonthlyInterestPayment:e,isRemoteRegistration:t,isShowMonthlyInterestPayment:l,isShowRemoteRegistration:n,handleIsMonthlyInterestPayment:a,handleIsRemoteRegistration:r})=>p("div",{className:"flex flex-col gap-y-7",children:[l?Bl({isMonthlyInterestPayment:e,callback:a,title:"Выплата процентов"}):null,n?on({isRemoteRegistration:t,callback:r,title:"Оформление"}):null]}),xn={CreditCalculatorForm:tn,DepositCalculatorForm:un,BusinessDepositCalculatorForm:Fl,BonusCalculatorForm:Cl},gn=(e,t)=>{const l=e?.calcType;if(!l||!(l in xn))return null;const n=xn[l];return u("section",{className:"box-border relative bg-white flex shrink-0 self-start basis-full",role:"listitem",children:p("div",{className:"box-border p-9 w-full",children:[e?.title?u(T,{className:"text-center mb-6",title:e.title}):null,u(n,{...e})]})},String(t))},bn=x((({className:e="",calculatorTabs:t=[],...l})=>{const a=t.map((e=>e.nav||{})),i=t.map((({calculatorBlock:e})=>e||{})),[s,o]=n(0),c=r((e=>o(e)),[]),[d,m]=il({itemCount:t?.length,visibleItemCount:3});return p(k,{className:`box-border overflow-hidden relative w-100 ${e}`,...l,children:[p("div",{className:"bg-white",children:[a.length>1?fn({activeIndex:d,tabsNav:a,slideIndexShift:s,onClick:c}):null,dl({...m,btnClass:["left-3","right-3"],className:"top-8"})]}),u("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:i?.length?i.map(gn):null})]})}));function fn({activeIndex:e,tabsNav:t,slideIndexShift:l,onClick:n}){return p("div",{children:[u("div",{style:{transform:`translateX(-${388*e}px)`},className:"flex flex-col justify-end items-center h-[126px] pt-9 box-border duration-1000",children:u("div",{className:"w-full flex flex-nowrap items-end gap-2",children:t.map(((e,t)=>function({tab:e,i:t,isActive:l,onClick:n}){const a=l?"h-[88px] w-[387px] min-w-[387px] p-5 border-none bg-primary-main text-white":"h-[77px] w-[328px] min-w-[328px] px-5 py-4 ease-in duration-300 bg-white text-primary-text",r=l?"text-xl mb-1.5":"text-l mb-[3px]",i=l?"text-l-light text-white":"text-m-light text-secondary-text",s=l?"":"text-primary-main",o=e?.icon?.iconVersion,c=l?"white":"normal";return p("button",{type:"button",onClick:n,"aria-label":e?.title,className:`box-border relative border border-gray cursor-pointer text-left border-b-0 flex hover:h-[88px]\n ${a}`,children:[u(Ct,{className:`h-6 w-6 min-w-6 min-h-6 mr-4 ${s}`,image:{...e?.icon,iconVersion:o??c},width:"24",height:"24"}),p("div",{className:"border-0",children:[u("div",{className:`${r}`,children:e?.title}),u("div",{className:`${i}`,children:e.description})]})]},String(t))}({tab:e,i:t,isActive:Boolean(t===l),onClick:()=>n(t)})))})}),u("div",{className:"w-full h-2 bg-primary-main"})]})}const vn=e=>(e.match(/\./g)||[]).length>1?e.slice(0,e.lastIndexOf(".")):e,Nn=e=>{const t=0===e.indexOf("0")&&2===e.length?e.replace("0","0."):e;return t.startsWith(".")?t.replace(".","0."):t},yn=e=>String(e.replace(",",".").replace(/[^.\d]/g,"")),wn=x((({className:e="",value:t="",onChange:l,minValue:n=0,maxValue:a=3e5,...i})=>{const s=r((e=>{const t=vn(Nn(yn(st(e))));const r=Cn(t,it(Number(t),n,a));l&&l(r)}),[l]),o=r((()=>{var e;l&&l((e=t,new Intl.NumberFormat("ru-RU",{minimumFractionDigits:0,maximumFractionDigits:2}).format(Number(st(e))).replace(",",".")))}),[l,t]);return u(ue,{className:e,inputClassName:"w-full",value:t,onChange:s,onBlur:o,...i,children:u("span",{className:"text-xl-light absolute right-4 bottom-4",children:"₽"})})})),Cn=(e,t)=>Number(e)===t?e:String(t),kn=x((({className:e="",title:t="Укажите сумму перевода",label:l="Сумма перевода",placeholder:a="1500",button:i,...s})=>{const[o,c]=n(""),d=r((e=>c(e)),[]),m=!Number(st(o)),h=m?ae({version:i?.version}):re({className:"text-white",version:i?.version}),x=J();return p(k,{className:`p-default flex flex-col items-center ${e}`,...s,children:[t?u(T,{className:"max-w-[684px] pb-9",headingType:"h2",title:t}):null,p("form",{className:"w-[468px]",method:"POST",action:"https://www.rshb.ru/p2p/",children:[u(wn,{name:"amount",value:o,onChange:d,valid:""===o||!m,placeholder:a,label:l}),i?.text?u("button",{type:"submit",className:`w-full p-4 mt-6 ${h} `,disabled:m,...x(i),children:i.text}):null]})]})})),Sn=({blockClassName:e,block:t,render:l})=>l({blockClassName:e,block:t}),In=[];function Tn(e,t,{className:l,...n}={}){const{key:a,blockDecorator:r=Sn,blocksRegistry:i={},ancestors:s=In}=t,{type:o}=e;o&&o in i||console.warn(`No block with "${o}" is registered`);const c=o&&i[o];return r({blockClassName:w("scroll-mt-12",l,e.style||"col-span-12"),block:e,ancestors:s,render:({block:l,blockClassName:r})=>{const{content:i}=l;return c?u(c,{className:r,block:e,options:t,...i,...n},a):null}},a)}const $n=[],Rn=(e,{key:t,ancestors:l=$n,slotName:n=null,renderProps:a=Tn,...r})=>(e||[]).map(((e,i)=>a(e,{...r,key:`${t||e.type}-${i}`,ancestors:r.parent?[...l||$n,[r.parent,n]]:l})));function Bn({children:e,block:t,options:l,renderProps:n}){return e||(t&&l?Rn(t.blocks,{...l,parent:t,renderProps:n}):null)}const Mn=e=>({height:"calc(100vh - 242px)",minHeight:`${e||866}px`}),_n=x((({className:e="",style:t,idx:l,activeIndex:n,observerOptions:a,children:i,onIntersection:s})=>{const o=v(r((e=>{e.length&&s&&s(l||0,e[e.length-1])}),[s,l]),a);return u("div",{className:`inline-block snap-always box-border ${e}`,style:t,"aria-current":Boolean(l===n),ref:o,children:i})})),jn=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]","min-w-[25%]"],zn=x((({className:e="",containerRef:t,activeIndex:l,visibleItemCount:n=0,gap:a=0,padding:i=0,listType:o="horizontal-list",snapAlign:c="snap-center",minHeight:d,children:m,onVisibleItemsChange:h,onVisibleIndicesChange:p})=>{const x={sensitivity:1,rootRef:t},g=s([]),b=r(((e,t)=>{const l=[...g.current||[]];l[e]=t,g.current=l,h&&h(l),p&&p(Dn(l))}),[h,p]),f=n>0?a*Number(n)-1:0,v="vertical-list"===o,N="horizontal-list"===o,y={...N?Ln(i,f):{},...v?Mn(d):{},gap:`${a}px`};return u("div",{className:w("box-border overflow-auto no-scrollbar",o,e),style:y,ref:t,children:(C=(e,t)=>u(_n,{className:w(c,n?jn[n-1]:"",v?"h-full":""),style:N?Ln(i/4):{},activeIndex:l,idx:t,observerOptions:x,onIntersection:b,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(C):C(e,0))(m)});var C})),Ln=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),Dn=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),Pn={"horizontal-list":"mx-auto mt-5 w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},Vn={"horizontal-list":"w-6","vertical-list":"h-6"},On=x((({containerRef:e,activeIndex:t,dotCount:l=0,listType:n="horizontal-list",version:a})=>l?u("div",{className:w("flex gap-2",Pn[n],a?"group":""),...a?{"data-ver":a}:{},children:new Array(l).fill(null).map(((l,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?Vn[n]:"w-2 h-2 opacity-30"}`,role:"button","aria-hidden":!0,onClick:()=>(l=>{l!==t&&e?.current&&e.current.children[l]?.scrollIntoView({behavior:"smooth",block:"nearest"})})(a)},String(a))))}):null)),An=e=>t=>e.scrollWidth/t,En=e=>(t,l)=>{e.scrollBy({left:l*An(e)(t),behavior:"smooth"})},Fn=({itemCount:e,isCyclic:t,onVisibleIndicesChange:l})=>{const a=s(null),[i,o]=n([]),c=r((e=>{o((t=>{return(l=t)===(n=e)||Boolean(l&&n&&l?.length===n?.length&&l.every(((e,t)=>e===n[t])))?t:e;var l,n})),l&&l(e)}),[e]),[d,m]=i.length?[Dl()(i),jl()(i)]:[-1,-1],h=d>0,u=m<e-1,p=r((()=>{var l;a.current&&(t&&!h?(l=a.current).scrollTo({left:l.scrollWidth,behavior:"smooth"}):En(a.current)(e,-1))}),[t,e,h]),x=r((()=>{a.current&&(t&&!u?a.current.scrollTo({left:0,behavior:"smooth"}):En(a.current)(e,1))}),[e,t,u]);return[a,{scrollLeft:p,scrollRight:x,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]},Un="absolute top-[calc(50%-24px)] z-40",Hn="absolute top-0 bottom-0 z-40 w-[84px] pointer-events-none",Xn=x((({scroll:e,arrowsPadded:t,isBlur:l,onScrollLeft:n,onScrollRight:a,hasEdgeBlocks:i,activeIndex:s,itemCount:o})=>{const{canScrollLeft:c,canScrollRight:d,scrollLeft:m,scrollRight:h}=e,x=i?s>0:c,g=i?s<o-1:d,b=r((()=>{i?(c&&s!==o-1&&m(),n()):m()}),[m,n,i,c,s,o]),f=r((()=>{i?(d&&0!==s&&h(),a()):h()}),[h,a,i,c,s,o]);return p("div",{children:[Wn(l,e),x?u(ol,{className:w(Un,t?"left-8":"left-0"),onClick:b}):null,g?u(cl,{className:w(Un,t?"right-8":"right-0"),onClick:f}):null]})})),Wn=(e,t)=>e?p("div",{children:[t.canScrollLeft?u("div",{className:w(Hn,"left-0 bg-opacity-from-white")}):null,t.canScrollRight?u("div",{className:w(Hn,"right-0 bg-opacity-to-white")}):null]}):null,Kn=x((({className:e="",itemCount:t,visibleItemCount:l,isBlur:a=!0,isCyclic:i=!1,arrowsPadded:s=!0,isPadding:o=!0,showDots:c=!1,isAlignCenter:d=!1,...m})=>{const{blocks:h=[]}=m.block||{},x=t||h?.length,[g,b]=n(Math.floor((l||0)/2)),f=r((()=>b((e=>e+1))),[]),v=r((()=>b((e=>e-1))),[]),[N,y]=Fn({itemCount:x,isCyclic:i}),[C]=y.visibleIndicesRange,S=h&&"CarouselBankHistoryCard"===h[0]?.type;return u(k,{className:w(Gn(o),"group-data-secondary:bg-primary-main group-data-secondary:text-white",e),...m,children:p("div",{className:w(Jn(d),"relative max-w-full"),children:[u(zn,{containerRef:N,visibleItemCount:l,snapAlign:"snap-start",gap:4,onVisibleIndicesChange:y.handleVisibleIndicesChange,children:Bn({...m,renderProps:S?(e,t)=>Tn(e,t,{blocksLength:h?.length,activeIndex:g}):Tn})}),u(Xn,{scroll:y,isBlur:a,arrowsPadded:s,onScrollLeft:v,onScrollRight:f,hasEdgeBlocks:S,activeIndex:g,itemCount:x}),c?Yn(N,C,t):null]})})}));Kn.childrenTypes=["CarouselCard","CarouselBankHistoryCard","CarouselCatalogCard","CarouselInvestmentCard","CarouselProductCard","CarouselProgramsCard","CarouselRecommendationCard","CarouselTariffsCard","CarouselRichTextCard","CarouselInvestmentCard","CarouselEventCard"];const Gn=e=>e?"p-default":"",Jn=e=>e?"flex justify-center":"",Yn=(e,t,l)=>u(On,{containerRef:e,activeIndex:t,dotCount:l,listType:"horizontal-list"}),qn=x((({title:e,description:t,blocksLength:l=0,activeIndex:n,options:a})=>{const r=Number(a?.key?.split("-").slice(-1)[0])||0;return u(k,{className:"flex h-[485px]",children:u("div",r===n?{className:"relative flex items-center w-full",children:u(Kt,{headlineVersion:"M",title:e,description:t,align:"text-left",className:w("absolute z-10 h-[385px] w-[440px] p-8 text-white shadow-dark-blue",ea(r,l),Zn(r))})}:{className:"flex w-full items-center justify-center",children:u("div",{className:w("flex justify-center items-center h-[300px] w-[340px] font-mohave text-title-large tracking-[-0.03em]",Zn(r)),children:u("span",{className:Qn(r),children:e})})})})})),Zn=e=>{switch(e%3){case 0:default:return"bg-primary-main";case 1:return"bg-green-light";case 2:return"bg-yellow-light"}},Qn=e=>{switch(e%3){case 1:case 2:return"gradient-color-text-on-yellow";default:return"gradient-color-text-on-green"}},ea=(e,t)=>0===e?"left-9":e===t-1?"right-9":"-left-[25px]",ta="absolute border border-solid border-gray w-full h-full",la={normal:"min-w-[970px]",small:"min-w-[355px]"},na=x((({className:e="",button:t,description:l,title:n,carouselVersion:a="normal",version:r=""})=>u("section",{className:`flex pb-9 pl-12 border-box h-full ${la[a]} ${e}`,children:p("div",{className:"relative w-full",children:[u("div",{className:`${ta} z-10 top-9 right-12 bg-green-dark`}),u("div",{className:`${ta} z-10 top-6 right-8 bg-green`}),u("div",{className:`${ta} z-10 top-3 right-4 bg-green-light`}),p("div",{className:"relative h-full bg-white z-10 p-10 border border-solid border-green-light",children:[u(Kt,{className:"!p-0",title:n,description:l,headlineVersion:"L",align:"text-left",version:r}),Ft([t],{className:"mt-14"})]})]})}))),aa={black:"bg-black",white:"bg-white"},ra=x((({className:e="",title:t,description:l,image:n,price:a,button:r,colors:i,...s})=>p(k,{className:`border box-border border-gray p-7 min-w-[392px] h-full flex flex-col justify-left ${e}`,...s,children:[n?.src?u(Ct,{className:"mb-5 flex justify-center",image:n}):null,t?u(T,{headingType:"h6",as:"h4",className:"text-left mb-1.5",title:t}):null,l?u("div",{className:"mb-4",children:u(ce,{size:"text-m",align:"text-left",font:"font-light",children:l})}):null,i?.length?p("div",{className:"flex mb-4 text-secondary-text",children:[u("div",{className:"mr-1.5",children:u(de,{size:"text-s",align:"text-left",font:"font-light",children:"Доступные цвета:"})}),i.map(ia)]}):null,a?p(de,{size:"text-h3",align:"text-left",children:[a," ₽"]}):null,Ft([r],{buttonClassName:"mt-5 w-full"})]}))),ia=(e,t)=>u("div",{role:"figure",className:`w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${aa[e]}`},String(t)),sa=x((({className:e="",href:t,target:l,isRemote:n=!1,children:a})=>{const r=J({isRemote:n})({href:t,target:l});return u(t?"a":"div",{className:w("block",e),...t?r:{},children:a})})),oa=x((({className:e="",icon:t,title:l,description:n,href:a,target:r,...i})=>u(k,{className:w("w-[365px]",e),...i,children:p(sa,{className:"flex flex-col",href:a,target:r,children:[t?.icon?u(Ct,{image:t}):null,t?.src?u(Ct,{image:t}):null,l?u(T,{headingType:"h6",as:"h4",className:"text-left pt-3 mb-2",title:l}):null,n?u("div",{className:"mb-4",children:u(de,{font:"font-light",size:"text-m",color:"text-secondary-text",children:n})}):null]})}))),ca=x((({className:e="",title:t="",buttons:l,image:n,children:a})=>p("div",{className:`font-sans flex flex-col grow h-full items-start ${e}`,children:[t,p("div",{className:"flex grow w-full justify-between",children:[p("div",{className:"flex flex-col justify-between w-full",children:[u("div",{className:"h-full",children:a}),l?u("div",{className:"mt-auto pt-8",children:l}):null]}),n]})]}))),da={1:"flex-col",2:"gap-x-10 flex-wrap"},ma=x((({additionalDescription:e,cardsList:t=[],className:l="",columnsMode:n=1,description:a,image:r,title:i,...s})=>{const o=i?u(T,{headingType:"h4",as:"h3",className:"mb-3.5 z-10",title:i}):null,c=r?.src?u(Ct,{className:"absolute bottom-0 right-0 m-0",image:r}):null;return u(k,{className:["relative box-border text-left p-9 w-[697px]","border border-solid border-gray group-data-secondary:border-white/50",l].join(" "),...s,children:p(ca,{title:o,image:c,children:[p("div",{className:"flex justify-between mb-4",children:[a?u("div",{className:"w-1/3",children:u(de,{size:"text-h6",children:a})}):null,e?u(de,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:e}):null]}),t.length?u("ul",{className:`list-none m-0 p-0 flex gap-y-2 ${da[n]}`,children:ha(t,n)}):null]})})})),ha=(e,t)=>e.slice(0,[4,9][t-1]).map(((e,l)=>{return p("li",{className:2===t?"basis-[calc(50%-20px)]":"",children:[e?.parameter?u("div",{className:"pr-2.5",children:u(de,{size:(n=t,1===n?"text-h6":"text-l"),children:e.parameter})}):null,e?.parameterDescription?u(de,{size:"text-m",font:"font-light",color:"text-secondary-text",children:e.parameterDescription}):null]},String(l));var n})),ua="bg-transparent border-white border h-[70px] absolute w-[316px] top-0",pa=x((({text:e,href:t="",target:l="",className:n=""})=>{const a=J()({href:t,target:l});return e?p("div",{className:`relative group/link cursor-pointer w-[328px] h-[82px] ${n}`,children:[p("a",{className:"absolute border border-primary-main ml-3 px-6 py-5\n text-l-light bg-white text-primary-text flex w-[316px]\n justify-between items-center group-hover/link:text-primary-main z-10",role:"link",...a,children:[u("div",{className:"p-0.5",children:e}),u("div",{className:"w-6 h-6",children:u(Ct,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border brightness-0 group-hover/link:brightness-100",image:{icon:"ArrowRightIcon",iconVersion:"black"},imageClassName:"group-hover/link:text-primary-main",width:"24",height:"24"})})]}),u("div",{className:`${ua} mx-1.5 mt-1.5`}),u("div",{className:`${ua} mt-3 mr-3`})]}):null})),xa=x((({className:e="",additionalDescription:t,description:l,links:n,title:a,...r})=>p(k,{className:`flex w-full p-10 overflow-hidden justify-between ${e}`,...r,children:[p("div",{className:"flex flex-col max-w-96 pr-9 text-white text-xl-light",children:[u(Kt,{isPadding:!1,title:a,description:l,as:"h1",align:"text-left"}),t?u(Kt,{className:"pt-6",isPadding:!1,description:t,align:"text-left"}):null]}),n?.length?ga(n):null]}))),ga=e=>{const t=Math.ceil(e.length/10);return u(Kn,{className:"min-w-[832px] w-[832px]",isBlur:!1,isCyclic:!0,itemCount:t,arrowsPadded:!1,showDots:!0,children:new Array(t).fill(null).map(((t,l)=>u("div",{className:"w-[672px] min-w-[672px] ml-10 mr-10 flex flex-wrap self-start",children:e.slice(10*l,10*(l+1)).map(((e,t)=>u(pa,{className:"m-1",...e},String(t))))},String(l))))})},ba={L:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-4",M:"w-1.5 h-1.5 min-w-1.5 min-h-1.5 mr-3",S:"w-1 h-1 min-w-1 min-h-1 mr-2"},fa=x((({className:e="",isDotted:t=!0,children:l,size:n="M"})=>p("div",{className:`font-sans flex items-baseline ${e}`,role:"listitem",children:[t?u("div",{children:u("div",{className:`rounded-full align-middle inline-block bg-primary-text group-data-secondary:bg-white ${ba[n]}`})}):null,u("span",{children:l})]}))),va={S:"text-l-light",M:"text-h6",L:"text-h5"},Na={S:"ml-2",M:"ml-3",L:"ml-4"},ya=x((({className:e="",hasIndent:t,isDotted:l,itemClassName:n="",items:a,listItemSize:r="M"})=>a?.length?u("section",{className:`text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text ${va[r]} ${t?Na[r]:""} ${e}`,role:"list",children:a.map(((e,t)=>u(fa,{className:n,isDotted:l,size:r,children:e},String(t))))}):null)),wa=x((({additionalDescription:e,align:t="text-center",button:l={},className:n="",description:a,headlineSmallVersion:r="H6",href:i,icon:s,isDotted:o=!0,isFullWidth:c=!0,items:d=[],target:m,title:h,version:u="primary",...x})=>p(k,{className:w("h-full flex flex-col justify-between min-w-[260px]","box-border border-solid border border-gray",t,n),version:u,...x,children:[p(sa,{className:"p-6",href:i,target:m,children:[Ca(s),ka(r,h),Sa(a,h),Ta(d,o,u),Ia(e)]}),Ft([l],{className:w("p-6 pt-0",c?"":"self-center min-w-[158px]"),isVertical:c})]}))),Ca=e=>p("div",{className:"flex justify-center",children:[e?.src?u(Ct,{className:"mb-5",image:e}):null,e?.icon?u(Ct,{className:"w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full",image:e}):null]}),ka=(e,t)=>t?u("div",{children:u(de,{size:Wt[e],children:t})}):null,Sa=(e,t)=>e?u("div",{className:t?"mt-2":"",children:u(ce,{size:"text-l",children:e})}):null,Ia=e=>e?u("div",{className:"mt-auto",children:u(de,{size:"text-m",font:"font-light",color:"text-secondary-text group-data-secondary:text-white/80",children:e})}):null,Ta=(e,t,l="primary")=>e?.length?u(ya,{className:"max-w-[308px] mt-2 text-s "+("primary"===l?"!text-secondary-text":""),itemClassName:"text-left",items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:t}):null,$a=x((({className:e="",title:t,icon:l,list:n=[],href:a,target:r,...i})=>u(k,{className:w("border border-gray",e),...i,children:p(sa,{className:"flex",href:a,target:r,children:[p("div",{className:"w-[200px] min-w-[200px] self-center",children:[l?.icon?u(Ct,{image:l}):null,l?.src?u(Ct,{image:l}):null]}),p("div",{className:"p-8 pl-3 w-full",children:[t?u(T,{className:"mb-3.5",headingType:"h5",title:t}):null,n.length?u("div",{className:"flex flex-col gap-3",children:n?.map(Ra)}):null]})]})}))),Ra=(e,t)=>p("div",{className:"break-words",children:[e.title?u("div",{className:"text-h6",children:e.title}):null,e.description?u("span",{className:"text-l-light mt-1",children:e.description}):null]},String(t)),Ba=[{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"}],Ma={default:"w-14 h-14",small:"w-12 h-12"},_a=(e,t)=>e?"":`group/media flex items-center justify-center box-border ${Ma[t]}`,ja=x((({buttonSize:e="default",rounded:t=!1,icon:l,...n})=>{const{href:a,version:r,text:i=""}=n,{iconMapped:s,label:o}=Ba.find((({origins:e})=>e.some((e=>a?.includes(e)))))||{},c=za(l)??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",_a(i,e)),"aria-label":o,rel:"noopener noreferrer",target:"_blank",text:i,version:r,...n,children:c&&!i?u(Ct,{image:c,imageClassName:"group-hover/media:text-white",width:"24",height:"24"}):null})})),za=e=>e?.src||e?.icon?e:void 0,La=x((({className:e="",media:t,children:l,buttonSize:n})=>p("div",{className:"font-sans",children:[u("div",{className:`flex gap-1 ${e}`,children:t?.map(((e,t)=>u(ja,{buttonSize:n,...e},String(t))))}),u(de,{size:"text-s-light",color:"text-secondary-text",children:l})]}))),Da=x((({className:e="",description:t,href:l,icon:n,items:a=[],socialMedia:r=[],target:i,title:s,align:o="text-left",version:c="primary",...d})=>u(k,{className:w("relative p-7 min-w-[524px] min-h-[218px] h-full box-border group-data-gray:bg-main-divider/50","border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider",e),version:c,...d,children:p(sa,{href:l,target:i,children:[u(Kt,{className:"mb-4",title:s,description:t,headlineVersion:"S",isPadding:!1,align:o}),p("div",{className:"w-1/2 h-full flex flex-col flex-1 justify-end",children:[a.length?u(ya,{className:"flex flex-col gap-2",itemClassName:"text-l-light",items:a}):null,r.length?u(La,{className:"pt-10",media:r}):null]}),Pa(n)]})}))),Pa=e=>p("div",{className:"absolute bottom-0 right-0",children:[e?.icon?u(Ct,{image:e}):null,e?.src?u(Ct,{image:e}):null]}),Va=x((e=>{const{__html:t="",richVersion:l=""}=e;return u("div",{className:w(l,"md-container"),dangerouslySetInnerHTML:{__html:t}})})),Oa=x((({className:e="",__html:t,richVersion:l="striped",...n})=>u(k,{className:w("p-9 border border-gray h-full min-w-96",e),...n,children:u(Va,{__html:t,richVersion:l})}))),Aa=x((({className:e="",isFoldButtonOnTop:t=!1,unfoldedByDefault:l=!1,renderFoldableSection:a,renderFoldButton:i})=>{const[s,o]=n(l),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]})})),Ea=x((({className:e="",isUnfolded:t,children:l})=>{const n=s(null);return a((()=>{n.current&&(n.current.style.maxHeight=t?`${n.current.scrollHeight}px`:"")}),[t,l?.length]),u("div",{ref:n,className:`transition-max-h duration-300 overflow-hidden ${n.current||!t?"max-h-0":""} ${e}`,children:l})})),Fa=x((({className:e="",title:t,icon:l,isHighlighting:n,button:a,cardCells:r=[],...i})=>{const s=r.map(Wa),o=s.slice(0,1),c=s.slice(1);return p(k,{className:w("relative border border-gray p-8 flex flex-col",Ha(n),e),...i,children:[n?Ka():null,Ua(l),t?u(T,{className:"text-center pt-2",headingType:"h5",title:t}):null,a?u(ie,{className:"w-full mt-4",...a}):null,r.length?u(Aa,{renderFoldableSection:({isUnfolded:e})=>p("div",{children:[o,u(Ea,{isUnfolded:e,children:c})]}),renderFoldButton:r.length>1?Xa:null}):null]})})),Ua=e=>p("div",{className:"w-[267px] min-w-[267px] self-center",children:[e?.src?u(Ct,{image:e}):null,e?.icon?u(Ct,{image:e}):null]}),Ha=e=>e?"mt-8 pt-20":"mt-20 pt-8",Xa=({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(ze,{className:"text-primary-text",name:e?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16"})]}),Wa=(e,t)=>{const{title:l,description:n,buttons:a}=e;return p("div",{className:"py-5 border-b border-main-divider",children:[l?u("div",{className:"text-secondary-text text-m-light opacity-80",children:e.title}):null,n?u("div",{className:"text-primary-text text-h6 mt-1",children:e.description}):null,a?.length?u("div",{className:"text-primary-main",children:Ft(a)}):null]},String(t))},Ka=()=>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(ze,{iconVersion:"black",name:"HeartIcon",width:"23",height:"22"}),u(ce,{size:"text-s",font:"font-normal",align:"text-center",color:"text-primary-text",children:"ХИТ"})]}),Ga="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",Ja="border-gray border-solid border",Ya="border-main-divider border border-t-0 border-x-0",qa="w-[200px] mr-6",Za=x((({icon:e,image:t,title:l,link:n})=>p("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${Ja} ${Ga}`,role:"columnheader",children:[e&&!t?.src&&u(Ct,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:e,width:"63",height:"63"}),t?.src&&u(Ct,{className:"mb-[18px]",image:t}),l?u(T,{headingType:"h4",as:"h3",className:"text-center text-white",title:l}):null,n?.text&&u("div",{className:"mt-auto w-full",children:u(ie,{href:n.href,target:n.target,className:"mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:u("div",{className:"text-xs-light font-medium py-[11px]",children:n.text})})})]}))),Qa={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},er=x((({children:e,activeIndex:t,columnWidth:l,version:n="comparison"})=>u("div",{className:"flex flex-1 overflow-hidden",children:u("div",{className:Qa[n],style:{transform:`translateX(-${t*l}px)`},children:e})}))),tr=x((({children:e})=>u("div",{className:"self-start flex flex-col",role:"row",children:u("div",{className:"flex",children:e})}))),lr=x((({colHeaders:e,activeIndex:t})=>p(tr,{children:[u("div",{className:qa,role:"columnheader"}),u(er,{activeIndex:t,columnWidth:336,children:e.map(((e,t)=>u(Za,{...e},String(t))))})]}))),nr=x((({cell:e,isFirstRow:t,isLastRow:l,isFillGradient:n})=>u("div",{className:`w-80 box-border flex flex-col ${Ja} ${l?"border-t-0 rounded-b-md":"border-y-0"} ${n?Ga:""}`,role:"cell",children:u("div",{className:`mx-7 h-full ${Ya} ${n&&t?"border-t":""} ${l?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>ir(e,t,n)))})}))),ar=(e=!1)=>"text-xl m-0 "+(e?"text-white":""),rr=(e=!1)=>"text-s opacity-80 "+(e?"text-white":"text-secondary-text"),ir=({label:e,description:t},l,n)=>p("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e?u("h4",{className:ar(n),children:e}):null,t?u("div",{className:rr(n),children:t}):null]},String(l)),sr=(e=!1)=>`text-s py-7 ${Ya} w-[200px] mr-6 ${e?"border-b-0":"border-solid"}`,or=x((({row:{header:e,data:t},activeIndex:l,isColoredFirstColumn:n,isFirstRow:a,isLastRow:r})=>p(tr,{children:[e?.title?u("div",{className:sr(r),children:e.title}):null,t?.length?u(er,{activeIndex:l,columnWidth:336,children:t.map(((e,t)=>u(nr,{cell:e,isFirstRow:a,isLastRow:r,isFillGradient:n&&0===t},String(t))))}):null]}))),cr=x((({rowData:e,isColoredFirstColumn:t,activeIndex:l,controls:n})=>{const{isScrollAvailable:a}=n;return p("div",{className:"relative",children:[e.map(((e,n,{length:a})=>u(or,{row:e,isFirstRow:0===n,isLastRow:n+1===a,activeIndex:l,isColoredFirstColumn:t},String(n)))),a?dl({...n,btnClass:["top-[108px]","top-[44px]"],className:"right-7",isDisabled:!0}):null]})})),dr=x((({columns:e=[],rowHeaders:t,isShowAllRow:l,visibleRowLength:n,isColoredFirstColumn:a})=>{const r=e?.map((({header:e})=>e||{})),i=e?.map((({data:e})=>e))||[],s=t?.map(((e,t)=>({header:e,data:i.map((e=>e?.[t]||[{}]))}))).slice(0,l?t.length:n),[o,c]=il({itemCount:e.length,visibleItemCount:3}),{isScrollAvailable:d}=c;return p("div",{children:[p("div",{role:"table",children:[r?.length?u(lr,{colHeaders:r,activeIndex:o}):null,s?.length?u(cr,{rowData:s,isColoredFirstColumn:a,activeIndex:o,controls:c}):null]}),d?u("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),mr=x((({className:e="",title:t,rowHeaders:l,columns:a,visibleRowLength:i=0,isColoredFirstColumn:s=!1,...o})=>{const[c,d]=n(!i),m=r((()=>d((e=>!e))),[]);return p(k,{className:`py-12 pl-12 overflow-hidden relative ${e}`,...o,children:[u(T,{headingType:"h2",className:"max-w-[47rem] text-center mb-9 mx-auto",title:t}),u(dr,{columns:a,rowHeaders:l,isShowAllRow:c,isColoredFirstColumn:s,visibleRowLength:i}),i?hr({isShowAllRow:c,onClick:m}):null]})})),hr=({isShowAllRow:e,onClick:t})=>u("div",{className:"pr-12",children:p("div",{className:"flex w-full",children:[u("div",{className:qa}),u("button",{onClick:t,className:"mt-5 flex-1 border-gray border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main",children:u("div",{className:"font-sans text-xs-light font-medium py-3",children:e?"Скрыть":"Показать все параметры"})})]})}),ur=x((({className:e="",contacts:t,info:l,version:n="secondary",...a})=>p(k,{className:`flex p-default ${e}`,version:n,...a,children:[l?.length?pr(l):null,t?.length?pr(t):null]}))),pr=e=>u("div",{className:"flex grow basis-0",children:e.map(((e,t)=>xr({column:e,index:t})))}),xr=({column:e,index:t})=>e?u("div",{className:"flex flex-col grow basis-0 pr-11 last:pr-0",children:e.map((({title:e="",description:t,additionalDescription:l,button:n},a)=>p("div",{className:"mt-6 first:mt-0",children:[u(Kt,{className:"!p-0",title:e,description:t,headlineVersion:"XS",align:"text-left"}),l?u("div",{className:"mt-1.5 opacity-80",children:u(ce,{size:"text-m",font:"font-light",children:l})}):null,n?u(ie,{className:"mt-6",...n}):null]},String(a))))},`col-${String(t)}`):null,gr=e=>"Image"===e?.errorContentType&&e?.image?u(Ct,{image:e.image}):"Code"===e?.errorContentType&&e.code?u("div",{className:"font-mohave text-title-extra gradient-color-text",children:e.code}):null,br=x((({className:e="",title:t,subtitle:l,error:n,button:a,...r})=>{return p(k,{className:w("flex flex-col justify-center items-center",(i=a?.text,i?"py-20 pt-3 pb-1":"mb-16 pb-2 mt-24 pt-3"),e),version:"transparent",...r,children:[u("div",{className:"flex justify-center py-20",children:gr(n)}),t?u(T,{headingType:"h1",className:"text-left mb-4",title:t}):null,l?u("div",{className:"font-sans text-xl-light mb-7 max-w-[613px] text-center",children:l}):null,a?.text?u(ie,{className:"py-4 px-9",version:a?.version,...a,children:a.text}):null]});var i}));var fr;!function(e){e.EUR="EUR",e.USD="USD",e.GBP="GBP",e.AUD="AUD",e.CNY="CNY",e.RUB="RUB"}(fr||(fr={}));const vr={USD:"DollarIcon",EUR:"EuroIcon",GBP:"DollarIcon",AUD:"DollarIcon",CNY:"DollarIcon",RUB:"RoundRubleIcon"},Nr=e=>e?Cr.format(e):"",yr=(e,t)=>p("td",{className:"pt-4 pl-11",children:[u("div",{children:Nr(e)}),u("div",{className:w("font-normal text-sm text-secondary-text",(t||0)>=0?"text-green":"text-red"),children:Nr(t)})]}),wr=(e,t="")=>p("td",{className:"pt-4 pl-11",children:[u("div",{children:Nr(e)}),u("div",{className:"font-normal text-sm text-green",children:t})]}),Cr=new Intl.NumberFormat("ru",{style:"currency",currency:fr.RUB}),kr=e=>u("th",{className:"pl-11",children:u(de,{size:"text-m-light",align:"text-left",color:"text-secondary-text",children:e})}),Sr=x((({className:e="",currencies:t=[],actuality:l="",officeName:n="",...a})=>{const r=Ir(t,4);return p(k,{className:w("font-sans text-primary-text py-10 bg-white",e),...a,children:[p("div",{className:"flex flex-row flex-grow-0 justify-between mx-10 mb-8",children:[u(T,{headingType:"h4",title:"Курс обмена валют в "+n,className:"whitespace-pre-wrap text-h4 mb-5"}),u("div",{className:"pl-11",children:u(de,{size:"text-m-light",align:"text-left",color:"text-secondary-text",children:l})})]}),u("div",{className:"flex flex-row ml-8 mr-14 pt-4 text-left",children:r.length>0?p("table",{className:w("h-fit w-fit",e),children:[u("thead",{children:p("tr",{children:[u("th",{children:u(de,{size:"text-m-light",align:"text-left",color:"text-secondary-text",children:"Валюта"})}),kr("Купить"),kr("Продать"),kr("Лучшая покупка"),kr("Лучшая продажа")]})}),u("tbody",{children:r.map((e=>(({title:e,buyPrice:t,buyDifference:l,sellPrice:n,sellDifference:a,buyOfficeName:r,sellOfficeName:i})=>p("tr",{className:"pb-1 text-h6",children:[u("td",{className:"pt-4",children:p("div",{className:"flex items-center",children:[e?u(Ct,{image:{icon:vr[e]},width:"24",height:"24"}):null,u("span",{className:"ml-2",children:e})]})}),yr(t,l),yr(n,a),wr(t,r),wr(n,i)]},e))(e)))})]}):null})]})})),Ir=(e,t)=>e.sort(((e,t)=>Number(e.id)-Number(t.id))).slice(0,t);var Tr;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(Tr||(Tr={}));const $r=new Intl.NumberFormat("ru",{style:"currency",currency:Tr.RUB}),Rr=e=>e?$r.format(e):"",Br="text-left text-m-light text-secondary-text",Mr=`${Br} pl-11`,_r={USD:"DollarIcon",EUR:"EuroIcon"},jr=x((({className:e,exchangeCurrencyItems:t})=>p("table",{className:`h-fit w-fit ${e}`,children:[u("thead",{children:p("tr",{children:[u("th",{className:Br,children:"Валюта"}),u("th",{className:Mr,children:"Купить"}),u("th",{className:Mr,children:"Продать"})]})}),u("tbody",{children:t.map(zr)})]}))),zr=e=>{const t=e?.currency?.currency;return p("tr",{className:"pb-1 text-h6",children:[u("td",{className:"pt-4",children:p("div",{className:"flex items-center",children:[t?u(Ct,{image:{icon:_r[t]},width:"24",height:"24"}):null,u("span",{className:"ml-2",children:t})]})}),u("td",{className:"pt-4 pl-11",children:Rr(e?.saleExchangeRate)}),u("td",{className:"pt-4 pl-11",children:Rr(e?.buyExchangeRate)})]},t)},Lr=x((({className:e="",address:t})=>p("div",{className:`flex ${e}`,children:[u(Ct,{image:{icon:"GpsIcon"},width:"24",height:"24"}),p("div",{className:"ml-3",children:[t?u("p",{className:"text-primary-main m-0 mb-1 text-l",children:t}):null,u("p",{className:"text-secondary-text m-0 text-m",children:"Курс указан для заданного офиса"})]})]}))),Dr=(e,t,l)=>{const n=Number(Pr(e))*Math.pow(t,l?-1:1);return Number.isInteger(n)?n:((e,t=2)=>{const l=10**t;return Math.round(parseFloat(String(e))*l)/l})(n)},Pr=e=>e.replace(/[^\d.,]/g,"").replace(",","."),Vr=e=>{return(t=[[e=>e.value!==Tr.RUB&&e.oppositeValue!==Tr.RUB,()=>e.handleConvert(e.value,Tr.RUB)],[e=>e.value===Tr.RUB&&e.oppositeValue===Tr.RUB,()=>e.handleConvert(e.value,Tr.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,l]=t.find((([t])=>t(e)))||[];return l})(e)?.();var t};function Or(e){const{placeholder:t,rates:l,selected:n,value:a,setValue:r,setSelected:i}=e,s=l.map((e=>({key:e?.currency?.currency??"",text:e?.currency?.currency??""}))),o={key:n,text:n};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(Pe,{isBorder:!1,onChange:e=>i(e.key),options:s,value:o}):null]})}const Ar=x((({className:e="",currencyRatesBuy:t,currencyRatesSell:l,button:a})=>{const[i,s]=n({inputSell:"",inputBuy:"",selectSell:t?.[0]?.currency?.currency||Tr.RUB,selectBuy:l?.[0]?.currency?.currency||Tr.USD}),o=r((e=>s((t=>({...t,...e})))),[]);return p("div",{className:`grid gap-[18px] pt-2 ${e}`,children:[Or({placeholder:"Хочу продать",rates:l,selected:i.selectSell,setSelected:Er(i,o,l),value:i.inputSell,setValue:e=>Ur(o,l)(e,i.selectSell,i.selectBuy)}),Or({placeholder:"Получу",rates:t,selected:i.selectBuy,setSelected:Fr(i,o,t),value:i.inputBuy,setValue:e=>Hr(o,t)(e,i.selectBuy,i.selectSell)}),a?.text?u(ie,{className:"py-4 mr-1",version:a?.version,...a,children:a.text}):null]})})),Er=(e,t,l)=>n=>{t({selectSell:n}),Vr({value:n,oppositeValue:e.selectBuy,handleConvert:(n=e.selectSell,a=e.selectBuy)=>{Ur(t,l)(e.inputSell,n,a)}})},Fr=(e,t,l)=>n=>{t({selectBuy:n}),Vr({value:n,oppositeValue:e.selectSell,handleConvert:(n=e.selectBuy,a=e.selectSell)=>Hr(t,l)(e.inputBuy,n,a)})},Ur=(e,t)=>(l,n,a)=>{e({inputSell:Pr(l),selectBuy:a});const r=t.find((e=>e.currency?.currency===a))?.buyExchangeRate||t.find((e=>e.currency?.currency===n))?.saleExchangeRate;r&&e({inputBuy:String(Dr(l,r,n===Tr.RUB)||"")})},Hr=(e,t)=>(l,n,a)=>{e({inputBuy:Pr(l),selectSell:a});const r=t.find((e=>e.currency?.currency===a))?.saleExchangeRate||t.find((e=>e.currency?.currency===n))?.buyExchangeRate;r&&e({inputSell:String(Dr(l,r,n===Tr.RUB)||"")})};const Xr=async e=>{const t=await Wr(),l=t?.code||"000";return{region:t,exchangeRates:await Kr(e,l)}},Wr=async()=>{try{return await D("/api/v1/region",{method:"GET"})}catch(e){return console.log(e),{}}},Kr=async(e,t)=>{try{return await D(e+`?regionCode=${t}`,{method:"GET"})}catch(e){return console.log(e),{}}},Gr=x((({className:e="",title:t="Курсы обмена валют",button:l,...n})=>{const{exchangeRates:a}=function(){const{data:e}=j("/api/v1/exchangerates",Xr);return e||{}}(),r=Jr(a?.exchangeRate?.currencies),i=r.filter((e=>e.buyExchangeRate));i.unshift({currency:{currency:Tr.RUB}});const s=r.filter((e=>e.saleExchangeRate));return s.push({currency:{currency:Tr.RUB}}),u(k,{className:`p-9 box-border min-h-80 ${e}`,...n,children:u(ca,{title:u(T,{headingType:"h4",title:t,className:"whitespace-pre-wrap text-h4 mb-5"}),children:p("div",{className:"flex",children:[p("div",{className:"mr-14 pt-4",children:[r?u(jr,{className:"mb-[30px]",exchangeCurrencyItems:r}):null,u(Lr,{address:a?.address})]}),r.length&&i.length&&s.length?u(Ar,{className:"grow",currencyRatesBuy:i,currencyRatesSell:s,button:l}):null]})})})})),Jr=e=>e?.filter((e=>1===e?.currency?.id||2===e?.currency?.id))||[],Yr=x((({className:e="",label:t,icon:l,dataTheme:n="",disabled:a=!1,onClick:r})=>p("button",{className:w("flex justify-center w-full px-0 py-5 border border-transparent outline-none focus:border-primary-text",a?"bg-main-divider text-main-disabled hover:bg-main-divider":"bg-primary-main text-white hover:bg-primary-hove",e),onClick:r,disabled:a,"data-theme":n,children:[u("span",{className:"text-h4 pr-3",children:t}),l?u(Ct,{image:{icon:l,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20"}):null]}))),qr=({isUnfolded:e,onToggle:t})=>u(Yr,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:["Развернуть","Скрыть"][Number(e)],onClick:t}),Zr=["ArrowDownIcon","ArrowUpIcon"],Qr="grid grid-cols-12 gap-1 border-box",ei=x((({label:e="",filtrationState:t={},topItemsCount:l=0,block:n,notFound:a,...r})=>{const i=n?.blocks?.filter((e=>((e,t)=>Object.entries(e).map((([t,l])=>Array.isArray(l)?((e,t)=>l=>void 0===t[e]||t[e]?.every((t=>l[e]?.includes(t))))(t,e):((e,t)=>l=>void 0===t[e]||t[e]===l[e])(t,e))).every((e=>e(t))))(t,e.content||{})))||[],[s,o]=l>0?[i.slice(0,l),i.slice(l)]:[i,[]];return p("div",{children:[u("div",{className:w(i.length?"hidden":"block"),children:a?ti(a):null}),p("div",{className:w(i.length?"":"hidden"),children:[u("div",{className:w("mb-1",Qr),children:Rn(s,{...r.options,parent:n})}),u(Aa,{renderFoldableSection:({isUnfolded:e})=>u(Ea,{className:w(Qr,e?"mb-1":""),isUnfolded:e,children:Rn(o,{...r.options,parent:n})}),renderFoldButton:({isUnfolded:t,onToggle:n})=>u(Yr,{className:w(l<1?"hidden":""),disabled:!o?.length,label:e,icon:Zr[Number(t)],dataTheme:r.options?.page?.colorPalette,onClick:n})})]})]})}));function ti({title:e,description:t}){return p("div",{className:"bg-white py-20",children:[e?u("div",{className:"mb-2",children:u(ce,{align:"text-center",children:u(de,{size:"text-h4",children:e})})}):null,t?u(ce,{size:"text-xl",font:"font-light",align:"text-center",children:t}):null]})}const li=x((({value:e,onChange:t,items:l=[],multiple:n})=>l.map((l=>u(Ue,{text:l.title,value:[e].flatMap((e=>e)).includes(l.value),onChange:()=>(l=>{if(n){const n=e?.includes(l);t&&t(n?e?.filter((e=>e!==l)):[...e||[],l])}else t&&t(e===l?void 0:l)})(l.value),type:n?"checkbox":"radio"},l.value))))),ni=(e,t)=>l=>{const n=e[l],a=n?.type;return"array"===a?ai(l,t)(n):null},ai=(e,t)=>l=>{const n=l?.items?.enum?.map(((e,t)=>({value:e,title:l?.items?.enumNames?.[t]||""})))||[];return p("div",{children:[l?.title?u("div",{className:"mb-4",children:u(de,{size:"text-m",font:"font-light",color:"text-secondary-text",children:l.title})}):null,u(li,{items:n,multiple:!0,...t(e)})]},e)},ri={},ii=x((({className:e,filtrationSchema:t={},resetButton:l,...n})=>{const[a,{field:r,reset:i}]=$(ri);return p(k,{className:w(e),version:"transparent",...n,children:[p("form",{className:"flex justify-between bg-white p-9 mb-1",children:[u("div",{className:"flex gap-11",children:Object.keys(t).map(ni(t,r))}),l?u("div",{children:u(ie,{className:"w-72",onClick:i,...l})}):null]}),u(ei,{filtrationState:a,...n})]})}));function si(e,t={}){const{data:l}=j(`/wcms-resources/${e}.json`,D,{fallback:t});return l||{}}ii.childrenTypes=["ProductTile"],ii.childSchema=e=>e?.filtrationSchema||{};const oi={"bg-white":"color",transparent:"white"},ci={"bg-white":"text-primary-main",transparent:"text-white"},di=(e,t,l)=>u(Ct,t?.src?{image:t,className:ci[e],width:l?.width,height:l?.height,pathPrefix:"/wcms-resources/"}:{image:{icon:t?.icon||"LogoIcon",iconVersion:oi[e]},className:ci[e],width:l?.width,height:l?.height}),mi={"bg-white":"text-primary-text",transparent:"text-white"},hi=(e,t,l)=>u("span",{className:`${mi[t]} ml-2.5 font-medium ${l||""}`,children:e||"Россельхозбанк"}),ui=x((({className:e="",href:t,logo:l,children:n=l?.title,targetBlank:a,bgColor:r="bg-white",showTitle:i=!0})=>p("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"/",target:a?"_blank":"_self","aria-label":l?.title||"Россельхозбанк",children:[di(r,l?.image,{width:"40",height:"45"}),i?hi(n||l?.title,r):null]}))),pi=x((({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(Ct,{image:{icon:"CloseIcon"},width:"24",height:"24"})})));function xi(e){throw new Error(e)}function gi({onOpen:e,onClose:t}={}){a((()=>f.subscribe("dialog",(l=>{switch(l.type){case"open":e&&e(l);break;case"close":t&&t();break;default:xi(l)}}))),[e,t])}function bi(e,...t){return e.map(((e,l)=>[e,...t.map((e=>e[l]))]))}const fi=e=>t=>{if(e===t)return 1;if(!e||!t)return 0;const{m:l,s1Matches:n,s2Matches:a}=function(e,t){const l=Math.max(0,Math.floor(Math.max(e.length,t.length)/2)-1),n=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-l),o=Math.min(i+l,t.length-1);for(let l=s;l<=o;l++)n[i]||a[l]||e[i]!==t[l]||(r++,n[i]=!0,a[l]=!0)}return{m:r,s1Matches:n,s2Matches:a}}(e,t);if(0===l)return 0;const r=function(e,t,{s1Matches:l,s2Matches:n}){let a=0;for(let r=0,i=0;r<e.length;r++){if(!l[r])continue;let s=i;for(;s<t.length;s++)if(n[s]){i=s+1;break}e[r]!==t[s]&&a++}return a}(e,t,{s1Matches:n,s2Matches:a}),i=(l/e.length+l/t.length+(l-r/2)/l)/3,s=i>.7?.1*function(e,t){let l=0;for(;e[l]===t[l]&&l<4;)l++;return l}(e,t):0;return i+s*(1-i)};const vi=(e,t)=>(l,n)=>{for(const[a,r]of n)l.set(a,e(l.get(a)||t,r));return l},Ni=e=>e.toLowerCase().split(/[^0-9a-zа-я-]+/).filter((e=>e.length>=3&&!/[0-9a-z]/.test(e))),yi=e=>t=>e.map((([e,l])=>[fi(t)(e),l])).filter((([e])=>e>=.8)).map((([e,t])=>Ci(t,e))).reduce(vi(Math.max,0),new Map),wi=e=>t=>{return bi(t,t.map((({title:e})=>e)).map((e=>t=>{const l=Ni(t||"");return l.length?((e=[])=>e.reduce(((e,t)=>e+t),0))(e.map((e=>zl(l.map(fi(e)))))):0})(e))).sort((n=([,e])=>e,l=(e,t)=>n(e)-n(t),(e,t)=>-l(e,t))).map((([e])=>e));var l,n},Ci=(e,t)=>new Map(e.map((e=>[e,t]))),ki=({basePathList:e=["/"],initialQuery:t="",wasOpened:l})=>{const[r,s]=n(t||"");a((()=>{null!=t&&s(t)}),[t]);const o=i((()=>e.map((e=>l?e:null))),[l,...e]),{data:c}=j(o,Si),[d,m]=n(null);return((e,t,l=300)=>{a((()=>{const t=setTimeout(e,l);return()=>{clearTimeout(t)}}),t)})((()=>{c&&m(c.map((e=>t=>{const{corpus:l,dictionary:n}=t||{};if(!(e&&l?.length&&n&&Object.keys(n).length))return[];const a=Ni(e);if(!a.length)return[];const r=Object.entries(n),i=[...a.map(yi(r)).reduce(vi(((e,t)=>e+t),0),new Map).entries()].filter((([,e])=>e>=.799*a.length)).map((([e])=>l[e]));return wi(a)(i)})(r)))}),[c,r]),[d,{value:r,onChange:s}]},Si=async(...e)=>(await Promise.allSettled(e.map((e=>L(U(e,"/","search.index.json")))))).map((e=>"fulfilled"===e.status?e.value:{})),Ii=x((({className:e,isOpened:t,head:l,children:n,onClose:r})=>(a((()=>{const e=({key:e})=>{"Escape"===e&&r&&r()};return globalThis.document?.addEventListener("keydown",e),()=>{globalThis.document?.removeEventListener("keydown",e)}}),[r]),t?u("div",{className:w("fixed inset-0 bg-white text-l-light z-50 overflow-x-hidden overflow-y-scroll no-scrollbar",e),role:"dialog",children:p("div",{className:"relative container pb-12 min-h-full",children:[p("div",{className:"sticky bg-white pt-6 top-0",children:[u(pi,{className:"absolute top-10 -right-12",onClick:r}),l]}),n]})}):null)));function Ti(e,t=!1){const[l,{setTrue:a,setFalse:i}]=Me(t),[o,c]=n({id:e}),d=s(l);d.current||=l;gi({onOpen:r((t=>{t.id===e?(c(t),a()):i()}),[e]),onClose:i});const m=r((()=>{i(),f.fire("dialog",{type:"close"})}),[]);return{...o,isOpened:l,wasOpened:d.current,onClose:m}}const $i=x((({className:e,topItems:t})=>{const l=J({isRemote:!0});return u("div",{className:w("flex items-start justify-between",e),children:t?.map(l).map(Ri)})})),Ri=(e,t)=>{const{text:l,items:n,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:l||`Раздел ${t}`}),n?.map(((e,t)=>u(Bi,{...e,basePath:a,index:t},String(t))))]},String(t))},Bi=x((({text:e,index:t,basePath:l,...n})=>{const a=J({isRemote:!(!c.BASE_PATH||!l)&&!c.BASE_PATH.startsWith(l),basePath:l}),{href:r,target:i,onClick:s}=a(n);return u("a",{className:w("text-l-light text-secondary-text hover:text-primary-main no-underline","overflow-x-hidden overflow-ellipsis whitespace-nowrap"),href:r,target:i||"_self",onClick:s,children:e||`Раздел ${t}`})})),Mi=x((({className:e,isMobile:t,value:l,autoFocus:n,onChange:a,onFocus:i})=>{const s=r((e=>{a&&a(e.target?.value||"")}),[a]);return p("div",{className:w("font-sans relative",e),role:"form",children:[u("div",{className:"absolute h-full flex items-center pl-4 pointer-events-none",children:u(Ct,{image:{icon:"LoupeIcon"},width:"24",height:"24"})}),u("input",{className:w("h-12 pl-12 w-full text-l text-black outline-none box-border","border border-solid rounded-md border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text",t?"":"h-full"),value:l,type:"text",name:"search-bar-input",placeholder:"Поиск по сайту",autoFocus:n,onChange:s,onFocus:i})]})})),_i="search",ji=x((({topItems:e})=>{const t=Ti(_i),l=e?.map((e=>e.href||"/")),[n,r]=ki({basePathList:l,initialQuery:t.message,wasOpened:t.wasOpened}),s=i((()=>zi(e)(n)),[e,n]);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(Ii,{...t,head:u(Mi,{className:"my-5",autoFocus:!0,...r}),children:u($i,{topItems:s})})})),zi=e=>t=>e?.length&&t?.length?bi(e,t).map((([e,t])=>({...e,items:t?.map((({title:e,uri:t})=>({text:e,href:U("/",t)})))}))):[];const Li=x((({className:e,isMobile:t})=>{const[l,a]=n(""),i=r((()=>a("")),[]);gi({onClose:i});const{open:s}=O(_i),o=r((e=>{a(e),Di(e)&&s(e)}),[]);return p("div",{className:e,children:[u(Mi,{isMobile:t,value:l,onChange:o}),t?u(pi,{className:"absolute top-2 right-3",onClick:i}):null]})})),Di=e=>e&&e.length>=3,Pi=x((e=>u(Li,{...e}))),Vi=x((({className:e="",items:t,hasButton:l})=>p("div",{className:e,children:[t?.length?t.map(Oi):null,l?u(ie,{version:"primary",className:"mb-6 w-full",href:"https://www.rshb.ru/feedback/question/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),Oi=(e,t)=>{const{type:l,text:n,description:a}=e;return p("div",{className:"mb-4",children:[u("div",{children:Ai(l,n)}),u("div",{className:"mt-1 text-s-light text-secondary-text",children:a})]},String(t))},Ai=(e,t="")=>{switch(e){case"tel":return u("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${Ei(t)}`,children:t});case"email":return u("a",{className:"text-xl-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return u("span",{children:t})}},Ei=e=>e.replaceAll(/\D/g,""),Fi=x((({className:e="",index:t,text:l,...n})=>{const a=J(),{href:r,target:i,onClick:s}=a(n);return u("a",{className:`text-secondary-text hover:text-primary-main inline-block no-underline ${e}`,href:r,target:i,onClick:s,children:l||`Документ ${t}`})})),Ui=x((({className:e="",links:t})=>u("div",{className:e,children:t?.length?u("div",{className:"flex justify-between items-center gap-5 py-5 border-solid border-x-0 border-y border-y-main-divider",children:t.map(((e,t)=>u(Fi,{index:t,className:"text-l-light max-w-[292px]",...e},String(t))))}):null}))),Hi=x((({className:e="",index:t,...l})=>{const n=J({isRemote:!0}),{href:a,target:r,text:i,onClick:s}=n(l);return u("a",{className:`text-xs-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:a,target:r,onClick:s,children:i||`Документ ${t}`})})),Xi=x((({className:e="",links:t})=>p("div",{className:e,children:[u("div",{className:"pt-5",children:u("span",{className:"text-xs-light text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?u("div",{className:"flex justify-start items-start gap-5 pt-2.5",children:t.map(((e,t)=>u(Hi,{index:t,...e},String(t))))}):null]}))),Wi="w-[204px]",Ki=x((({className:e="",...t})=>{const l=t.options?.page?.fallback,n=si(c.SITEMAP||"sitemap",l),{documents:a,relatedEnterprises:r,contacts:i,socialMedia:s,mobileApps:o,logo:d}=si(c.FOOTER||"footer",l);return p(k,{tag:"footer",className:`p-9 ${e}`,...t,children:[p("div",{className:"flex items-stretch gap-[54px] pb-[30px] xl:gap-8",children:[u(ui,{className:Wi,logo:d}),u(Pi,{className:"grow"})]}),p("div",{className:"flex items-stretch gap-[54px] xl:gap-8",children:[p("div",{className:"w-[204px] flex flex-col shrink-0 overflow-hidden",children:[u(Vi,{items:i,hasButton:!0}),u(La,{media:s,children:"Соцсети"}),u(La,{className:"mt-6",media:o,children:"Мобильное приложение"})]}),u($i,{className:"flex-grow",topItems:n?.topItems})]}),u(Ui,{className:"mt-[98px]",links:r}),u(Xi,{links:a})]})})),Gi=x((({className:e="",title:t,description:l,calendar:n,...a})=>p(k,{className:`p-default ${e}`,...a,children:[u(Kt,{className:"!p-0 mb-4",title:t,description:l,headlineVersion:"M"}),n?Ji(n):null]}))),Ji=e=>{const t=100/(e.reduce(((e,t)=>t?.month?.length?e+t.month.length:e),0)||1),l=e.filter((e=>e?.month?.length)).map((e=>({...e,flexBasis:`${e?.month?.length?e.month.length*t:""}%`})));return p("div",{className:"w-full flex flex-col justify-center mt-13",children:[u("div",{className:"flex w-full mb-3 text-h6 text-center",children:l.map((e=>Yi(e,t)))}),u("div",{className:"flex w-full",children:l.map(((e,t)=>p("div",{className:"pr-[11px] mr-3 border-r border-main-divider last:border-r-0 last:pr-0 last:mr-0",style:{flexBasis:e.flexBasis},children:[u("div",{className:"flex",children:qi(e)}),p("div",{className:"text-s-light text-primary-text mt-3",children:[u("span",{children:e.text})," ",u("span",{className:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},Yi=(e,t)=>e.month?.map(((e,l)=>u("div",{style:{flexBasis:`${t}%`},children:e.text},`monthName-${l}`))),qi=e=>e.month?.map((e=>e.image?.src?u("div",{className:"h-[207px] border-r pr-3 mr-3 border-main-divider last:border-r-0 last:pr-0 last:mr-0",children:u(Ct,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),Zi=864e5;function Qi(e,t,l=globalThis?.localStorage){const n=r((async(...n)=>{const a=`async:${e}`,r=function(e){const{data:t=null,timestamp:l=null}=e?JSON.parse(e):{};return t&&Date.now()-l<Zi?t:void 0}(l.getItem(a));if(r)return r;const i=await t(...n);return l.setItem(a,JSON.stringify({data:i,timestamp:Date.now()})),i}),[e,t]);return j(e,n)}const es=()=>{const e=globalThis.localStorage?.getItem("location");try{return e?JSON.parse(e):null}catch(e){return null}},ts=e=>({href:t})=>F(A(t)?e.href:e.pathname).startsWith(F(t));const ls=x((({className:e,searchTerm:t,onSearch:l})=>p("form",{className:`font-sans relative ${e}`,children:[u("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-[170px] gap-3.5 pointer-events-none",children:t?null:u("label",{htmlFor:"search-bar-input",className:"text-secondary-text ",children:"Поиск по филиалам"})}),u("input",{id:"search-bar-input",className:"h-12 pl-4 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text",value:t,onChange:e=>l(e.target.value.toLowerCase()),type:"text",name:"location-search-bar-input"})]}))),ns="location",as=x((({currentLocation:e,onChangeLocation:t,foreignOffices:l})=>{const a=Ti(ns),[i,s]=n(""),o=is(function(){const{data:e}=j("/api/v1/regions",D);return e||[]}()).sort(((e,t)=>e.name.localeCompare(t.name))),c=((e,t)=>{const l=new Map;for(const n of e){const e=t(n),a=l.get(e)||[];l.set(e,[...a,n])}return l})(o,rs),d=r((e=>{a.onClose&&a.onClose(),t&&t(e)}),[a.onClose,t]);return p(Ii,{...a,head:p("div",{children:[u(ss,{currentLocation:e,onChangeLocation:d}),u(ls,{onSearch:s,searchTerm:i,className:"mb-7"})]}),children:[i&&i.length>=3?u("div",{children:o.filter((({name:e})=>e&&fi(e.toLowerCase())(i.toLowerCase())>=.8)).map(cs(d))}):u("div",{className:"columns-5",children:Array.from(c.entries()).map(os(d))}),u(ds,{foreignOffices:l})]})})),rs=e=>e.name?.charAt(0)||"",is=e=>e.map((e=>({...e,name:e.name?.replace(/республика|область|край'/gi,"").trim()||""}))),ss=x((({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)),os=e=>([t,l])=>p("div",{className:"break-inside-avoid mb-7 w-[224px]",children:[u("div",{className:"mb-2.5",children:u(de,{size:"text-h6",children:t})}),l.map(cs(e))]},t),cs=e=>t=>u("div",{className:"mb-1",children:u("button",{className:"cursor-pointer hover:text-primary-hover",onClick:()=>{e&&e(t)},children:t.name||""})},t.id),ds=x((({foreignOffices:e})=>e?.length?p("div",{className:"border-t border-main-divider mt-7 pt-7",children:[u("div",{className:"mb-4",children:u(de,{size:"text-m",font:"font-light",color:"text-secondary-text",children:"Представительства за рубежом:"})}),u("div",{className:"flex gap-10",children:e.map(((e,t)=>u(ms,{...e},String(t))))})]}):null)),ms=x((({icon:e,...t})=>{const l=J(),{text:n,target:a,href:r,onClick:i}=l(t);return p("div",{className:"flex gap-x-3",children:[e?u(Ct,{pathPrefix:"/wcms-resources/",image:e}):null,n?u("a",{className:"hover:text-primary-hover",href:r,target:a,onClick:i,children:n}):null]})})),hs=x((({className:e="",active:t,flat:l,children:n,...a})=>{const r=J({isRemote:!0}),{href:i,target:s,text:o,onClick:c}=r(a);return u("a",{className:w(us(t,l),e),href:i,target:s,onClick:c,rel:"noopener noreferrer","aria-label":o,children:u("span",{className:ps(t,l),children:o||n})})})),us=(e=!1,t=!1)=>w("inline-block border border-solid bg-transparent text-center no-underline",e?"rounded-md border-primary-main group-data-transparent:border-white":"border-transparent",t?"":"px-4 py-2"),ps=(e=!1,t=!1)=>w("font-sans text-s-light",e?"text-primary-main":w(t?"text-primary-text":"text-secondary-text","hover:text-primary-main"),"group-data-transparent:text-white group-data-transparent:hover:text-primary-hover"),xs={default:"w-6 h-6",large:"w-12 h-12"},gs=x((({className:e,isRounded:t,buttonSize:l="default",isGrayBg:n=!1,disabled:a,ariaLabel:r,image:i,onClick:s})=>u("button",{className:w("group/btn border-0 flex shrink-0 items-center",n?"p-3 rounded-full":"p-0 bg-inherit",n&&!t?"bg-main-divider":"",t?"w-8 h-8 text-secondary-light hover:text-secondary-hove":`${xs[l]} text-primary-text hover:text-primary-main`,"group-data-transparent:text-white",e),type:"button",disabled:a,"aria-label":r,onClick:s,children:u(Ct,{image:i,className:w("h-full",t?"bg-main-divider/20 rounded-full":""),imageClassName:"group-hover/btn:text-primary-hover group-hover/btn:invert-0"})}))),bs=x((({className:e,version:t,locationName:l,officesLink:n})=>{const a="transparent"===t?"white":"black",{open:i}=O(ns),s=r((()=>i()),[]),{open:o}=O(_i),c=r((()=>o()),[]);return p("div",{className:w("flex items-center gap-5",e),children:[u(hs,{flat:!0,href:"#",text:l,onClick:s}),n?u(hs,{flat:!0,href:n,text:"Офисы и банкоматы"}):null,u(gs,{image:{icon:"LoupeIcon",iconVersion:a},ariaLabel:"Поиск",onClick:c})]})})),fs=x((({className:e="",items:t,activeItem:l})=>{const a=J(),[i,s]=n(!1),o=r((()=>s((e=>!e))),[]),c=_e(r((()=>s(!1)),[]));return p("div",{className:w(i?"bg-white rounded-md shadow-blue-gray":"",e),ref:c,children:[u("button",{className:"group/btn flex justify-between items-center h-6","aria-label":""+(i?"Скрыть другие разделы":"Показать другие разделы"),onClick:o,children:Array(3).fill(null).map(((e,t)=>u("div",{className:"w-[3px] h-[3px] rounded mr-1 bg-primary-text group-hover/btn:bg-primary-hover group-data-transparent:bg-white"},String(t))))}),u("div",{className:w("absolute flex flex-col rounded-md bg-white p-6 pb-2",i?"":"hidden"),"aria-hidden":!i,children:t?.map(((e,t)=>{const{text:n,...r}=e;return u("a",{className:w("text-l-light pb-4 hover:text-primary-main",e===l?"text-primary-main":""),...a(r),children:n},e.href||String(t))}))})]})})),vs=x((({className:e="",active:t,dataItemName:l,children:n,...a})=>{const r=J(),{href:i,target:s,text:o,onClick:c}=r(a);return p("a",{className:w("relative inline-block bg-transparent text-center no-underline",e),href:i,target:s,"data-item-name":l,onClick:c,children:[u("span",{className:Ns(t),children:o||n}),t?u("div",{className:"absolute left-0 right-0 -bottom-3 h-0.5 bg-primary-main group-data-transparent:bg-transparent"}):null]})})),Ns=(e=!1)=>w("font-sans text-l-light",e?"text-primary-main":"text-primary-text hover:text-primary-main","group-data-transparent:text-white group-data-transparent:hover:text-primary-hover"),ys=x((({observerOptions:e,onVisibilityChange:t,children:l,className:n,...a})=>{const i=v(r((e=>{if(!e.length||!t)return;const l=e[e.length-1];t(l.isIntersecting)}),[t]),e);return u("span",{ref:i,className:n,children:u(vs,{...a,children:l})})})),ws=e=>globalThis[e];function Cs(e,t){const[l,i]=n(),s=r((()=>i(ws(e))),[e]);return a((()=>{const l=document.getElementById(t);if(!l){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(!ws(e))return l.addEventListener("load",s),()=>{l.removeEventListener("load",s)};s()}),[e,t]),l}const ks={personal:"//chat.mes.rshb.ru/assets/js/webchat_rshb",business:""},Ss=x((e=>{const[t,{setTrue:l}]=Me();return t?u(Is,{...e}):Ts({...e,onClick:l})})),Is=x((({chat:e="personal",...t})=>((e=>{a((()=>globalThis.localStorage?.setItem("webchat-keep-open",String(Date.now()))),[]),Cs("chatbot",ks[e])})(e),Ts(t)))),Ts=({className:e,iconVersion:t,onClick:l})=>u(gs,{className:w("text-page__btn-chat",e),image:{icon:"HeadphonesIcon",iconVersion:t},ariaLabel:"Чат",onClick:l,buttonSize:"large",isGrayBg:!0}),$s={default:"px-5 bg-main-divider rounded hover:text-primary-main",transparent:"text-white hover:text-primary-hover"},Rs=x((({version:e,internetBankUrl:t})=>t?u(ie,{href:t,ariaLabel:"Интернет-банк",target:"_blank",className:w("py-3 ml-3 text-l font-light whitespace-nowrap hover:text-primary-main",$s["transparent"===e?"transparent":"default"]),children:"Интернет-банк"}):null)),Bs=x((({subItems:e=[],version:t,internetBankUrl:l})=>{const a="transparent"===t?"white":"black",r=(e=>(t=[])=>{const l=t?.filter(ts(e));return l?.length?jl((e=>e.href?.length||0))(l):void 0})(G())(e),[o,d]=n(e.length),m=e.slice(o),h=s(null),x={rootRef:h},g=i((()=>e.map(((e,t)=>e=>{d(e?Ms(t):_s(t))}))),[e]);return p("nav",{className:"relative mt-3 flex items-center justify-between",children:[u("div",{ref:h,className:"overflow-hidden whitespace-nowrap pb-3 mt-2",children:e.map(((e,t)=>u(ys,{className:w("ml-8 first:ml-0",o-1<t?"invisible":""),active:e===r,observerOptions:x,onVisibilityChange:g[t],...e},String(t))))}),m.length?u(fs,{className:"relative w-auto z-40",items:m,activeItem:r}):null,c.CHAT_BOT?u(Ss,{className:"ml-9",iconVersion:a,chat:c.CHAT_BOT}):null,u(Rs,{version:t,internetBankUrl:l})]})})),Ms=e=>t=>Math.max(t,e+1),_s=e=>t=>Math.min(t,e),js={"bg-white":"primary",transparent:"transparent"},zs=x((({bgColor:e="bg-white",className:t,showSubMenu:l=!0,version:i=js[e],...s})=>{const o=G(),{topItems:d,logo:m,defaultLocation:h,foreignOffices:x,officesLink:g,internetBankUrl:b}=si(c.SITEMAP||"sitemap",s.options?.page?.fallback),f=d?.find((e=>ts(c.BASE_PATH?{pathname:c.BASE_PATH}:e))(o)),[v,N]=function(e="Москва"){const t=es(),[l,i]=n(t?.region??{name:e}),{data:s}=Qi("/api/v1/region",D);return a((()=>{i(t?.region&&t?.manual?t.region:s||{name:e})}),[s]),[l,r((e=>{globalThis.localStorage?.setItem("location",JSON.stringify({manual:!0,region:e})),i(e)}),[])]}(h);return p(k,{tag:"header",className:w("pt-6 px-20",l&&f?.items?.length?"pb-4":"pb-5",t),version:i,...s,children:[p("div",{className:"container",children:[p("div",{className:"flex items-center",children:[u(ui,{className:"mr-8",bgColor:e,logo:m}),d?.map(((e,t)=>u(hs,{active:e===f,...e},String(t)))),u(bs,{version:i,className:"ml-auto",locationName:v.name,officesLink:g})]}),u("div",{className:w("mt-6 h-px bg-main-divider","transparent"===i?"opacity-30":"")}),l&&f?.items?.length?u(Bs,{subItems:f.items,version:i,internetBankUrl:b}):null]}),u(ji,{topItems:d}),u(as,{currentLocation:v,foreignOffices:x,onChangeLocation:N})]})})),Ls={XXL:"gap-12",XL:"gap-10",L:"gap-8",M:"gap-4",S:"gap-2",XS:"gap-1","":""},Ds=x((({className:e="",gap:t="XS",isPadding:l=!1,version:n="transparent",isTheme:a=!1,...r})=>u(k,{className:w("relative","grid grid-cols-12",l?"p-default":"",Ls[t],e),version:n,isTheme:a,...r,children:Bn(r)})));Ds.childrenTypes={exclude:["HorizontalLayout"]};const Ps=x((e=>{const{className:t,image:l,...n}=e;return u(k,{className:t,...n,children:u(Ct,{image:l})})})),Vs=x((({className:e="",cards:t=[],button:l})=>{const[a,i]=n(0),s=r((e=>i(e)),[]),o=t.length,[c,d]=il({itemCount:o,visibleItemCount:2}),{canDec:m,canInc:h}=d,x=t[c]?.href;return p("section",{role:"listitem",className:`min-w-full text-center ${e}`,children:[p("div",{className:"relative overflow-hidden",children:[o?Os({activeIndex:c,cards:t,selectedCardIndex:a,onClick:s}):null,dl({...d,btnClass:["left-12","right-12"],className:"top-[62px]"}),m?u("div",{className:"absolute top-0 left-0 h-full w-[136px] bg-opacity-from-white"}):null,h?u("div",{className:"absolute top-0 right-0 h-full w-[136px] bg-opacity-to-white"}):null]}),u(ie,{className:"w-60 text-center",version:"primary",...l,href:x})]})}));function Os({activeIndex:e,cards:t,selectedCardIndex:l,onClick:n}){const a=460*e,r=t.length>2?"justify-start":"justify-center";return u("div",{style:{transform:`translateX(-${a}px)`},className:"duration-1000 px-12",children:u("div",{className:`w-full flex flex-nowrap gap-3.5 pb-12 ${r}`,children:t.map(((e,t)=>function({slide:e,i:t,isActive:l,onClick:n}){return p("button",{type:"button",onClick:n,className:"p-[30px] min-w-[460px] flex items-center bg-white border-solid border relative "+(l?"shadow-dark-blue border-primary-main":"ease-in duration-300 border-gray"),children:[e?.icon?u(Ct,{className:"p-5 rounded-full bg-secondary-light mr-[30px]",image:e.icon,width:"108",height:"108"}):null,p("div",{className:"flex gap-3.5",children:[e?.sum?As("страховая сумма",e.sum):null,e?.fee?As("страховой взнос",e.fee):null]}),Es(l)]},String(t))}({slide:e,i:t,isActive:Boolean(t===l),onClick:()=>n(t)})))})})}function As(e,t){return p("div",{className:"flex flex-col text-left whitespace-pre",children:[p("span",{className:"text-h6",children:[rt(t)," ₽"]}),u("span",{className:"text-secondary-text text-l mt-1",children:e})]})}function Es(e){return e?u(Ct,{className:"h-6 w-6 min-w-6 min-h-6 absolute right-4 top-4",image:{icon:"DoneIcon"},width:"24",height:"24"}):null}const Fs=x((({className:e="",title:t,insuranceTabs:l=[],button:a,...i})=>{const[s,o]=n(0),c=r((e=>o(e)),[]);return p(k,{className:`box-border py-12 overflow-hidden relative w-100 ${e}`,...i,children:[t?u(T,{className:"text-center mb-8",title:t,headingType:"h3"}):null,l?.length>1?u("div",{className:"p-1.5 bg-secondary-light w-fit mx-auto mb-7 rounded-md",children:l.map(((e,t)=>function({title:e,i:t,isActive:l,onClick:n}){return u("button",{type:"button",onClick:n,"aria-label":e,className:"box-border px-4 py-3 text-m-light "+(l?"bg-primary-main text-white rounded-md":"text-secondary-text"),children:e},String(t))}({title:e?.title,i:t,isActive:Boolean(t===s),onClick:()=>c(t)})))}):null,u("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:Us({insuranceTabs:l,button:a})})]})})),Us=({insuranceTabs:e,button:t})=>{const l=e?.map((e=>e.cards));return l?.length?l.map(((e,l)=>u(Vs,{button:t,cards:e},String(l)))):null};function Hs(e){return t=>t.reduce(((t,l,n)=>t.length?t.concat({...e,key:n},l):[l]),[])}const Xs={yellow:"bg-yellow",green:"bg-green","green-light":"bg-green-light","green-dark":"bg-green-dark"},Ws={XS:"h-[40px]",S:"h-[68px]",M:"h-[102px]",L:"h-[136px]",XL:"h-[204px]"},Ks=x((e=>{const{className:t="",items:l,isDotted:n,investmentZeroColumn:a,investmentColumns:r,...i}=e,s=r?[...r]:[];return a&&s.unshift(a),u(k,{className:`px-9 py-12 ${t}`,...i,children:p("div",{className:"container text-m-light",children:[s?.length?p("div",{children:[p("div",{className:"flex items-end relative pl-9 pr-5 text-white",children:[Hs(u("div",{className:"w-px h-4 bg-gray"}))(s.map(Gs)),u("div",{className:"absolute right-[30px] w-px h-4 bg-gray"})]}),u("div",{className:"border-t border-gray -mt-2 ml-9 mr-8"}),u("div",{className:"flex justify-between text-primary-text mt-3 -mx-10",children:s.map(qs)})]}):null,l?.length?u(ya,{className:"mt-9 text-l-light max-w-[657px]",items:l,itemClassName:"mb-[7px]",isDotted:n}):null]})})})),Gs=(e,t,l)=>{const n=1===t,a=t===l.length-1;return u("div",{className:`${Js(n,a,e.cells)}`,children:e.cells?.length?u("div",{className:"w-full "+(a?"border-4 border-green-more-dark p-1.5 min-w-[290px]":""),children:e.cells.reverse().map(Ys)}):null},`column_${t}`)},Js=(e,t,l=[])=>[l.length?"flex-1":"flex-0",!l.length||e||t?"":"pl-2.5",l.length&&!t?"pr-2.5 pb-8":"pb-[22px]"].join(" "),Ys=(e,t)=>{const l=e.cellSize||"XS",n=e.cellColor||"green";return e.text?u("div",{className:`flex-1 flex items-center justify-center relative py-2 ${Ws[l]} ${Xs[n]} ${"XS"===l?"px-3":"px-11"}`,children:u("div",{className:"text-center",children:e.text})},`cell_${t}`):null},qs=(e,t,l)=>{const n=0===t,a=t===l.length-1;return u("div",{className:`flex-1 max-w-[180px] text-center px-2 ${n?"pl-9":""} ${a?"mr-3.5":" "}`,children:e.title},`title_${t}`)},Zs=x((({doc:e,icon:t})=>{const{text:l,fileSize:n,...a}=e;return p("a",{className:"flex box-border gap-3 group/item h-fit w-fit text-primary-text no-underline hover:text-primary-main",role:"link",...a,children:[t,l?p(de,{size:"text-l",font:"font-light",children:[l,u(de,{color:"text-secondary-text",children:a?.href&&Qs(eo(a.href),n)})]}):null]})})),Qs=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),eo=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},to={double:"flex-wrap",single:"flex-col"},lo=x((({className:e="",title:t,description:l,align:n="text-center",documents:a,icon:r={icon:"DocIcon"},columnsMode:i="double",...s})=>p(k,{className:w("p-default",e),...s,children:[u(Kt,{className:"!p-0",title:t,description:l,align:n,headlineVersion:"M",as:"h2"}),a?.length?u("div",{className:w("mt-8 flex gap-6",to[i]),role:"list",children:a.map(((e,t)=>u("div",{className:"double"===i?"basis-[calc(50%-20px)]":"",role:"listitem",children:u(Zs,{doc:e,icon:r?u(Ct,{className:"min-w-6 min-h-6",image:r,width:"24",height:"24"}):null})},String(t))))}):null]}))),no=e=>{const t="col-span-",l=e?.split(/\s+/).find((e=>e.startsWith(t)));return l?parseInt(l.substring(t.length),10):12};function ao(e=""){const t=no(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}const ro=x((({className:e="",title:t="Мобильное приложение",qr:l,buttons:n,version:a="primary",items:r,image:i,headingType:s="h4",alignTitle:o="left",description:c,...d})=>{const m="secondary"===a?"p-3.5 min-w-[120px]":"min-w-[92px]";return p(k,{className:`flex justify-between p-default box-border relative min-h-80 ${ao(e)} ${e}`,version:a,...d,children:[p(ca,{className:"z-10",title:t?u(T,{headingType:s,as:"h3",title:t,className:`whitespace-pre-wrap mb-7 w-full ${Zt[o]}`}):null,buttons:Ft(n,{className:"mt-8",buttonClassName:"min-w-[168px]"}),children:[so(c),p("div",{className:"flex flex-1 items-center mb-3",children:[l?.src?u("div",{className:`flex justify-center mr-5 bg-white rounded-md ${m}`,children:u(Ct,{className:"w-fit",image:l})}):null,io(r)]})]}),i?.src?u("div",{className:"absolute right-0 bottom-0",children:u(Ct,{image:i})}):null]})})),io=e=>e?.length?u(ya,{items:e,itemClassName:"text-l-light mb-2 last:mb-0"}):u("span",{className:"text-m-light text-secondary-text",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),so=e=>e?u("p",{className:"text-xl-light mb-5 pt-0.5",children:e}):null,oo=[{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 co(e,t,l){t.geoObjects.removeAll();const n=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:n,clusterHideIconOnBalloonOpen:!1,geoObjectHideIconOnBalloonOpen:!1}),r=l.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(l)).then((()=>{t.getZoom()>10&&t.setZoom(10)}))}const mo={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"},ho=e=>u("a",{className:`select-none cursor-pointer px-9 h-12 bg-primary-main text-white ${Object.values(mo).join(" ")}`,href:`https://yandex.ru/maps/?ll=${[e[1],e[0]]}&z=10&l=map`,target:"_blank",children:"Открыть на карте"}),uo={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)]"},po=(e,t,l)=>p("div",{className:`${Object.values(uo).join(" ")} bg-white py-3 pl-11 pr-4 w-full`,children:[u(ze,{name:"LoupeIcon",iconVersion:"black",width:"20",height:"20",className:"absolute left-4"}),u("input",{type:"text",placeholder:"Введите адрес или метро",onChange:t=>{const n=t.target?.value?t.target?.value.toLowerCase():"";if(n){const t=e.filter((e=>e.text.toLowerCase().indexOf(n)>-1?e:null));l(t)}else l(null)},className:"border-0 focus:border-0 outline-0 w-full"})]}),xo={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"},go=(e,t,l)=>u("div",{className:`select-none cursor-pointer py-4 w-12 bg-white ${Object.values(xo).join(" ")} ${l}`,onClick:()=>{t.geolocation.get({provider:"yandex",autoReverseGeocode:!0,mapStateAutoApply:!0}).then((function(t){e.geoObjects.add(t.geoObjects)}))},children:u(ze,{name:"UserGeoLocationIcon",width:"20",height:"16"})}),bo={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"},fo=x((({yandexMaps:e,direction:t="in"})=>{const l="in"===t?"PlusIcon":"MinusIcon";return u("div",{onClick:()=>{const l=e.current.getZoom(),n="in"===t?l+1:l-1;e.current.setZoom(n,{checkZoomRange:!0})},className:`${Object.values(bo).join(" ")} bg-white select-none cursor-pointer w-12 h-12`,children:u(ze,{name:l,width:"20",height:"16"})})})),vo={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"},No=x((({points:e,className:t="",zoom:l=5,showSearchField:r=!1})=>{const i=s(null),o=Cs("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${c.YANDEX_MAP_API_KEY||""}&lang=ru_RU`),[d,m]=n(),[h,x]=n(ko(oo)),g=yo(e);if(a((()=>{i?.current||o?.ready((()=>{i.current=new o.Map("map",{center:g,zoom:l,controls:[],suppressMapOpenBlock:!0}),co(o,i.current,h)}))}),[o,i,h]),a((()=>{if(i.current&&h&&o){const e=h.length<1?ko(oo):h;co(o,i.current,e)}}),[i,h,o]),!o)return null;const b=d?"z-[100000]":"z-10";return p("div",{id:"map",className:`${d?"":"relative"} w-full ${t}`,children:[u("div",{className:`absolute flex left-2 top-4 w-[50%] ${b}`,children:r?po(oo,0,(e=>{if(e){const t=ko(e);x(t)}})):ho(g)}),u("div",{className:`${Object.values(vo).join(" ")} ${b} right-2 top-4 bg-white`,onClick:()=>{const e=i.current.container;d?e.exitFullscreen():e.enterFullscreen(),m(e.isFullscreen())},children:u(ze,{name:"FullScreenIcon",width:"16",height:"16"})}),p("div",{className:`absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md ${b}`,children:[u(fo,{yandexMaps:i}),u(fo,{yandexMaps:i,direction:"out"})]}),go(i.current,o,`right-2 top-80 ${b}`)]})})),yo=e=>[Co(wo(e,0)),Co(wo(e,1))],wo=(e,t)=>e.map((e=>e[t])),Co=e=>e.reduce(((e,t)=>e+t))/e.length,ko=e=>e?e.map((e=>e.coords)):null,So=[{title:"Деловой центр",time:"1 мин",distance:"~30 м.",icon:"MetroIcon"},{title:"Выставочная",time:"5 мин",distance:"~120 м.",icon:"MetroIcon"},{title:"Деловой центр",time:"8 мин",distance:"~350 м.",icon:"MetroIcon"}],Io=({lunchHour:e,status:t,workTime:l})=>{const n=/\d+/gi.test(e)?`Перерыв ${e}`:e;return t?p("div",{className:"flex",children:[u("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-primary-main border-green-light mr-4",children:l||null}),u("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-yellow border-golden",children:e?n:null})]}):u("div",{className:"flex",children:u("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-error border-error",children:"Выходной"})})},To=({icon:e,title:t,distance:l,time:n},a)=>p("div",{className:"flex mr-4",children:[u(ze,{name:e,width:"16",height:"16",className:"mr-1"}),t?p("span",{className:"text-m",children:[t," "]}):null,p("span",{className:"text-m-light",children:[l?` (${l})`:null,n?`, ${n}`:null]})]},`nearbyOffice${a}`),$o=({title:e,status:t,workTime:l,lunchHour:n,description:a},r)=>p("div",{className:"flex flex-col pb-3 border-b border-solid border-main-divider mb-3 last:border-0",children:[p("div",{className:"flex justify-between items-center w-full pb-1 text-l text-primary-text",children:[u("div",{children:e}),t?null:u("div",{className:"text-m-light text-error",children:"Выходной"}),t&&l?u("div",{children:l}):null]}),t&&n?Ro(n):null,a?u("div",{className:"pb-1 text-s-light text-secondary-text",children:a}):null]},`day${r}`),Ro=e=>/\d+/gi.test(e)?p("div",{className:"flex justify-between items-center w-full pb-1 text-m-light text-error",children:[u("div",{children:"Перерыв"}),u("div",{children:e})]}):u("div",{className:"flex justify-between items-center w-full pb-1 text-m-light text-primary-main",children:u("div",{children:e})}),Bo={id:123,branchType:{id:7,code:"21",name:"Отделение на балансе филиала"},shortName:"Ейский ДО",name:"ДО №3349/3/05",address:"353682, Краснодарский край, г.Ейск, ул.Гоголя, 349/ ул.Баррикадная, 42/1",lawAddress:"353682, Краснодарский край, г.Ейск, ул.Гоголя, 349/ ул.Баррикадная, 42/1",openDate:"2000-12-05",closeDate:null,bik:"040349536",corAcc:"30101810700000000536",registrationNumber:"3349/3/05",phone:"+7(XXX)XXX-XX-XX",fax:"+7(XXX)XXX-XX-XY",okpo:"55105921",ogrn:"1027700342890",kpp:"231002002",inn:"7725114488",branchCode:"0305",upperBranchCode:"0300",timeZone:"+03:00",exchangeRate:{currencies:[{buyExchangeRate:0,saleExchangeRate:0,currency:{id:3,code:"156",currency:"CNY",name:"Китайский юань"}},{buyExchangeRate:59.15,saleExchangeRate:69.25,currency:{id:2,code:"978",currency:"EUR",name:"Евро"}},{buyExchangeRate:58.4,saleExchangeRate:70.05,currency:{id:1,code:"840",currency:"USD",name:"Американский доллар"}}],lastUpdate:"2022-11-11 03:56:17"},workSchedule:{id:413,workTime:"09.00–16.30",lunchHour:"без перерыва",workTimeSaturday:"09.00–15.00",lunchHourSaturday:"без перерыва",workingMonday:!1,workingTuesday:!1,workingWednesday:!0,workingThursday:!0,workingFriday:!0,workingSaturday:!0,workingSunday:!1},gpsLatitude:46.709744,gpsLongitude:38.260703,range:null,safeBoxCaseVolumes:null};function Mo(e){return e?L(e,{method:"GET"}):{}}const _o=x((({className:e=""})=>{const t=function(e){const{data:t}=j(e?`/api/v1/branches?regionCode=${e}`:void 0,Mo);return console.warn("Hook useOfficeMap RETURNs MOCK object for testing",t),Bo}("000"),{name:l,address:n,gpsLatitude:a,gpsLongitude:r,workSchedule:i}=t,{workingMonday:s,workingTuesday:o,workingWednesday:c,workingThursday:d,workingFriday:m,workingSaturday:h,workingSunday:x}=i,{workTime:g,lunchHour:b,workTimeSaturday:f,lunchHourSaturday:v}=i,N=a&&r?[a,r]:null,y=[{title:"Понедельник",status:s,workTime:g,lunchHour:b},{title:"Вторник",status:o,workTime:g,lunchHour:b},{title:"Среда",status:c,workTime:g,lunchHour:b},{title:"Четверг",status:d,workTime:g,lunchHour:"13:00 - 14:00",description:"Не работает прием денег с 17:00 до 19:00"},{title:"Пятница",status:m,workTime:g,lunchHour:b},{title:"Суббота",status:h,workTime:f,lunchHour:v},{title:"Воскресенье",status:x}],w=(new Date).getDay(),C=w>0?y[w-1]:y[6];return p("div",{className:`flex flex-col font-sans bg-white w-full ${e}`,children:[p("div",{className:"flex flex-col px-12 pt-12",children:[p("div",{className:"flex justify-between",children:[u("div",{className:"text-h2",children:l}),Io(C)]}),p("div",{className:"flex text-l-light pt-4",children:[u(ze,{name:"GeolocationIcon",width:"24",height:"24",className:"pr-1"}),n]}),u("div",{className:"flex pt-4",children:So.map(To)})]}),p("div",{className:"flex justify-between pt-8",children:[u("div",{className:"flex-grow h-full w-full overflow-hidden",children:N?u(No,{points:[N],className:"h-full"}):null}),u("div",{className:"w-[434px] min-w-[434px] pl-9 pr-12 pb-14 flex flex-col",children:y.map($o)})]})]})})),jo=x((({className:e="",title:t,servicesList:l,...n})=>p(k,{className:`p-8 flex flex-col ${e}`,...n,children:[t?u(T,{headingType:"h5",className:"mb-5",title:t}):null,l?.length?u("ul",{className:"list-none m-0 p-0",children:l.map(zo)}):null]}))),zo=(e,t)=>p("li",{className:"flex mb-5 last:mb-0 list-none",children:[e.icon?u(Ct,{className:"mr-3 min-w-6 min-h-6 w-6 h-6",width:"24",height:"24",image:e.icon}):null,e.label?u("span",{className:"text-l-light",children:e.label}):null]},`list_item_${String(t)}`),Lo=x((({text:e,size:t,align:l,font:n,children:a,...r})=>u(k,{...r,children:u(ce,{size:t,align:l,font:n,children:e||a})}))),Do=x((e=>{const{className:t="",icon:l,label:n,description:a,version:r="primary",benefitsVersion:i="normal"}=e;return p("div",{className:`flex gap-5 ${a?"items-start":"items-center"} ${t}`,children:[l?u("div",{className:Po(r,i),children:u(Ct,{className:"w-6 h-6",image:{...l,iconVersion:l.iconVersion||i}})}):null,p("div",{className:"gap-0.5",children:[n?u("div",{className:"text-h6 text-primary-text group-data-secondary:text-white",children:n}):null,a?u("div",{className:"text-m-light text-secondary-text group-data-secondary:text-white",children:a}):null]})]})}));function Po(e,t){let l="bg-primary-main text-black";return"secondary"===e?l="bg-white/30 text-black":"normal"===t&&(l="bg-secondary-light text-primary-main"),`w-12 h-12 min-w-12 rounded-full p-2.5 box-border flex items-center justify-center ${l}`}const Vo=e=>(t,l)=>{const{type:n}=t;if("default"!==n&&"rte"!==n)return null;switch(n){case"default":return u(Do,{icon:t.icon,label:t.label,description:t.description,version:e},String(l));case"rte":return u(Va,{__html:t.__html});default:xi(t)}},Oo=x((({className:e="",title:t,description:l,image:n,benefits:a,sum:r,monthLimit:i,directionRight:s=!1,version:o="primary",...c})=>p(k,{className:`relative py-12 px-24 ${e}`,version:o,...c,children:[u(Kt,{className:"!p-0",title:t,description:l,headlineVersion:"M"}),p("div",{className:"flex justify-center gap-[122px] mt-[30px]",children:[n?.src?u(Ct,{className:s?"order-2":"",image:n}):null,p("div",{className:"w-[558px] m-auto",children:[a?.length?u("div",{className:"flex flex-col gap-4",children:a.map(Vo(o))}):null,Ao(Number(r),Number(i))]})]})]})));function Ao(e,t){return e||t?p("div",{className:"bg-main-divider rounded-md flex mt-7 gap-6 px-5 py-4",children:[Number(e)>0?Eo("Страховая сумма:",e,Boolean(t)):null,Number(t)>0?Eo("Ежемесячный лимит:",t,Boolean(e)):null]}):null}function Eo(e,t=0,l=!1){return p("div",{className:`flex justify-between items-center gap-2 w-full whitespace-pre ${l?"w-fit":"w-full"}`,children:[u("span",{className:"text-secondary-text text-l-light",children:e}),p("span",{className:"text-primary-main text-h6",children:[rt(t)," ₽"]})]})}function Fo(e=""){const t=no(e);return t<=4?"S":t<=8?"M":"L"}function Uo(e=""){const t=no(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const Ho=x((({className:e,title:t,description:l="Блок в разработке...",...n})=>p(k,{className:w("p-9 box-border",e,Uo(e),ao(e)),...n,children:[u(Kt,{className:"!p-0 max-w-[600px]",title:t,description:l,headlineVersion:Fo(e)}),u("figure",{className:"m-0 min-w-[80%]",children:Xo()})]}))),Xo=(e=3)=>Ko(100,e).map((e=>Math.floor(e))).map(Wo),Wo=(e,t)=>u("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Ko=(e,t)=>[e].concat(t>0?Ko(e/1.618,t-1):[]),Go=x((({className:e="",children:t,...l})=>{const n=J(),{text:a,href:r,target:i,onClick:s}=n(l);return r?u("a",{className:`no-underline ${e}`,href:r,target:i,onClick:s,children:u("span",{className:e,children:a||t})}):u("span",{className:e,children:a||t})})),Jo=(e="primary",t="normal")=>({icon:l,label:n,description:a},r)=>u(Do,{icon:l,label:n,description:a,version:e,benefitsVersion:t},String(r)),Yo=x((({className:e="",title:t,headlineVersion:l="L",description:n,benefitsCountOfRow:a=3,benefits:r,benefitsVersion:i,buttons:s,image:o,__html:c,items:d,version:m="primary",isDotted:h=!0,textBlockClassName:x="",directionRight:g=!0})=>{const b=r?.filter((e=>e.label))?.length,f=qo(a);return p("div",{className:w("flex grow justify-between items-stretch h-full",e),children:[o?.src?u(Ct,{className:w("mt-[-50px]",g?"order-2":""),image:o}):null,p("div",{className:w("flex flex-col",x),children:[u(Kt,{className:"!p-0 max-w-[600px]",title:t,description:n,headlineVersion:l,align:"text-left"}),p(ca,{buttons:Ft(s),children:[b?u("div",{className:f,children:r?.map(Jo(m,i))}):null,c?u("div",{className:"mt-5",children:u(Va,{__html:c})}):null,d?.length?u(ya,{className:"mt-5 text-h6",items:d,itemClassName:"mb-[7px]",isDotted:h}):null]})]})]})})),qo=(e=2)=>"gap-6 mt-6 "+(e>2?"inline-grid grid-cols-[auto_auto_auto]":"inline-grid grid-cols-[auto_auto]");function Zo(e,t,l){const{text:n,href:a,target:r}=e,i="primary"===t?"white":"black",s=e?.icon||{icon:"ArrowLeftIcon"};return p("div",{className:w("flex items-center",l),children:[u(ie,{version:t,rounded:!0,className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3",ariaLabel:n,href:a,target:r,children:u(Ct,{className:"w-4 h-4",image:{...s,iconVersion:s.iconVersion||i}})}),n?u(ie,{version:"link",text:n,href:a,target:r,ariaLabel:n}):null]})}const Qo="text-secondary-text group-data-secondary:text-white/80",ec=x((e=>{const{className:t="",breadcrumbs:l,backwardButton:n,version:a="primary",...r}=e,i="primary"===a?a:"white";return p(k,{className:w("overflow-hidden p-default flex flex-col box-border min-h-[454px]",t),version:a,...r,children:[n?.text?Zo(n,i):null,l?.length?u("div",{className:"text-xs-light mb-6",children:Hs(u("span",{className:w("mx-2",Qo),children:"/"}))(l.map(((e,t)=>u(Go,{className:Qo,...e},String(t)))))}):null,u(Yo,{className:"mt-10",version:a,...r})]})})),tc=x((({className:e="",slides:t=[],...l})=>{const a=t.map((e=>e.nav)),i=t.map((e=>e.productBlock)),[s,o]=n(0),c=r((e=>o(e)),[]);return p(k,{className:`box-border pt-12 overflow-hidden relative w-100 mb-6 ${e}`,...l,children:[u("div",{className:"flex duration-1000 pb-14",style:{transform:`translateX(-${s}00%)`},role:"list",children:i.map(((e,t)=>function(e,t){return u("section",{className:"box-border relative flex grow-0 shrink-0 basis-full",role:"listitem",children:u("div",{className:"flex grow",children:u(Yo,{className:"pl-12 z-10 group-data-secondary:text-white",textBlockClassName:"mb-[154px]",headlineVersion:"XXL",...e})})},String(t))}({...e,...l},t)))}),u("div",{className:"flex items-center absolute bottom-6 left-0 right-0 px-[26px] box-border h-28",children:a.map(((e,t)=>function({slide:e,i:t,isActive:l,onClick:n}){const a=l?"bg-white shadow-dark-blue min-w-[350px] border-none p-6":"min-w-[290px] hover:py-[26px] hover:py-[26px] ease-in duration-300 bg-white/10 px-6 py-5 backdrop-blur",r=l?"text-primary-text !text-h6 p-2":"text-l pb-1 text-secondary-text group-data-secondary:text-white",i=l?"text-secondary-text text-l-light":"text-m-light text-secondary-text group-data-secondary:text-white/80";return u("button",{type:"button",onClick:n,"aria-label":e?.title,className:`relative box-border overflow-hidden cursor-pointer text-left mx-1 grow basis-0 border border-gray group-data-secondary:border-white/50 ${a}`,children:p("div",{className:"border-0 px-6",children:[u("div",{className:`last:pb-0 ${r}`,children:e?.title}),u("div",{className:`text-secondary-text ${i}`,children:e?.description})]})},String(t))}({slide:e,i:t,isActive:Boolean(t===s),onClick:()=>c(t)})))})]})}));function lc(e,t){if(!e)return null;return u("div",{className:`mt-2.5 z-10 ${t?.src?"max-w-[calc(100%-186px)]":"100%"}`,children:u(ce,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:e})})}const nc=(e,t)=>{const{type:l}=e;if("default"!==l&&"rte"!==l)return null;switch(l){case"default":return[u(de,{size:"text-h6",children:e.label},`label-${t}`),u(de,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:e.description},`desc-${t}`)];case"rte":return u("div",{className:"col-span-2",children:u(Va,{__html:e.__html})});default:xi(e)}};function ac(e,t){return e?.src?u(Ct,{className:w("absolute",t?"right-0":"left-0","bottom-0"),image:e}):null}const rc=x((({className:e="",title:t,headlineVersion:l="S",description:n,additionalDescription:a,benefits:r=[],buttons:i,image:s,directionRight:o=!0,...c})=>p(k,{className:w("overflow-hidden p-9 box-border relative min-h-[364px] flex flex-col justify-between",Uo(e),e),...c,children:[p("div",{className:w("flex flex-col",o?"":"items-end"),children:[u(Kt,{className:w("!p-0 !bg-transparent z-10",t||n?"mb-3.5":""),title:t,description:n,headlineVersion:l,as:"h2",align:"text-left"}),ic(r,s),lc(a,s)]}),Ft(i,{className:w("mt-5 text-l",o?"":"justify-end")}),ac(s,o)]})));function ic(e,t){if(!e.length)return null;return u("div",{className:w("z-10 grid grid-cols-[max-content_1fr] auto-rows-auto gap-x-6 gap-y-2.5 items-baseline",t?.src?"max-w-[calc(100%-186px)]":"100%"),children:e.length?e.map(nc):null})}const sc=x((({className:e="",title:t="Акции и спецпредложения",date:l,description:n,as:a,buttons:r=[],...i})=>u(k,{className:w("p-9 box-border",e,Uo(e),ao(e)),...i,children:u(ca,{title:t?u(Kt,{className:"!p-0 max-w-[600px]",title:t,headlineVersion:Fo(e),align:"text-left",as:a||"h2"}):null,buttons:Ft(r),children:p("div",{className:"mt-1.5",children:[l?u("div",{className:"text-s mb-2",children:oc(l)}):null,u("div",{className:"text-l",children:n})]})})})));function oc(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const cc=x((e=>{const{__html:t,richVersion:l,...n}=e;return u(k,{...n,children:u(Va,{__html:t,richVersion:l})})})),dc=x((({className:e="",label:t="Развернуть",isExpanded:l,isFoldButtonOnTop:n=!0,version:a="primary",...r})=>u(k,{className:`w-full border-0 border-b border-solid border-main-divider last:border-b-0 ${e}`,tag:"div",version:"transparent",...r,children:u(Aa,{isFoldButtonOnTop:n,unfoldedByDefault:l,renderFoldableSection:({isUnfolded:e})=>u(Ea,{className:"grid grid-cols-12 gap-5 [&>*]:p-0",isUnfolded:e,children:Bn(r)}),renderFoldButton:({isUnfolded:e,onToggle:l})=>mc({version:a,label:t,isUnfolded:e,onToggle:l})})})));dc.childrenTypes={exclude:["RollupItem"]};const mc=({version:e,label:t,isUnfolded:l,onToggle:n})=>{const a=t||(l?"Скрыть":"Развернуть");return"primary"===e?hc({label:a,icon:l?"MinusIcon":"PlusIcon",onToggle:n}):u(Yr,{label:a,icon:l?"ArrowUpIcon":"ArrowDownIcon",onClick:n})},hc=({label:e,icon:t,onToggle:l})=>p("button",{className:"border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 cursor-pointer",onClick:l,children:[u(de,{size:"text-xl",font:"font-medium",children:e}),t?u(ze,{name:t,width:"24",height:"24"}):null]}),uc=[];const pc=async e=>await L(e,{method:"GET"})||uc,xc=x((({data:e,fieldLabel:t,fieldValue:l,selected:n,placeholder:a="",setSelected:r,label:i})=>{const s=e.filter(Boolean).map((e=>({key:e?.[l||t],text:e?.[t]}))),o=s.find((e=>e.key===n));return u(Pe,{options:s,label:i,placeholder:a||n,onChange:e=>r(e.key),value:o})})),gc=x((({regions:e=[],selectedRegion:t,onSelectedRegion:l,branches:n=[],selectedBranch:a,onSelectedBranch:r})=>p("div",{className:"flex justify-between gap-4 mb-6",children:[u("div",{className:"max-w-[396px] w-1/2",children:u(xc,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:l,label:"Регион"})}),u("div",{className:"max-w-[396px] w-1/2",children:u(xc,{data:n,fieldValue:"branchCode",fieldLabel:"address",selected:a,setSelected:r,label:"Отделение",placeholder:"Выберите отделение"})})]}))),bc=x((({name:e,text:t,value:l,checked:n,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:l,name:e,checked:n,onChange:e=>a(e.target.value)}),t?u("span",{className:"text-primary-text ml-3 cursor-pointer",children:t}):null]})}))),fc=x((()=>{const[e,t]=n("option2"),l=r((e=>t(e)),[]);return p("div",{children:[u(bc,{className:"mb-2",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===e,onChange:l}),u(bc,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===e,onChange:l})]})})),vc=["От 1 дня","До 365 дней"],Nc=x((({days:e,setDays:t})=>p("div",{className:"mb-6",children:[u("span",{className:"block text-m-light mb-[3px]",children:"Срок аренды"}),u(ot,{min:1,max:365,value:e,items:vc,onChange:t})]}))),yc=x((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:l,safeBoxCases:n=[],selectedBoxSize:a,onSelectedBoxSize:r})=>p("div",{className:"flex justify-between mb-6",children:[u("div",{className:"mr-4 w-full",children:u(xc,{data:e,fieldLabel:"volume",selected:t,setSelected:l,label:"Размер",placeholder:"Выберите размер"})}),u("div",{className:"w-full",children:u(xc,{data:n,fieldLabel:"safeBoxCasesSize",selected:a,setSelected:r,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),wc=x((({regions:e,selectedRegion:t,branches:l,selectedBranch:n,days:a,selectedCaseVolume:r,selectedBoxSize:i,safeBoxCases:s,caseVolumes:o,onChange:c,onClick:d})=>p("div",{className:"flex-1 mr-9",children:[u(gc,{regions:e,selectedRegion:t,onSelectedRegion:e=>c({selectedRegion:e}),branches:l,selectedBranch:n,onSelectedBranch:Cc(c)}),u(Nc,{days:a,setDays:e=>c({days:e})}),u(yc,{caseVolumes:o,selectedCaseVolume:r,onSelectedCaseVolume:kc(c),safeBoxCases:s,selectedBoxSize:i,onSelectedBoxSize:e=>c({selectedBoxSize:e})}),u("span",{className:"text-secondary-text text-l-light",children:"Тип договора"}),p("div",{className:"flex justify-between items-center mt-5",children:[u(fc,{}),u(ie,{text:"Офисы на карте",version:"primary",onClick:d})]})]}))),Cc=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},kc=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},Sc=x((({days:e,tariffs:t=[]})=>{const l=Tc(e,t);return p("div",{className:"flex flex-col justify-between",children:[p("div",{className:"flex",children:[Ic("Аренда за",e,"mr-11"),Ic("Цена",l+" ₽")]}),p("div",{className:"bg-primary-main px-10 pt-10 pb-4 text-center",children:[u(Ct,{image:{icon:"PackA4Icon"},width:"290",height:"257"}),p("span",{className:"text-s-light text-white opacity-80 mt-2 inline-block",children:["На рисунки изображена пачка",u("br",{})," листов формата А4"]})]})]})})),Ic=(e,t,l="")=>p("div",{className:l,children:[u("div",{className:"text-m-light text-secondary-text mb-1",children:e}),u("span",{className:"text-h3 text-primary-text",children:t})]}),Tc=(e,t)=>{const l=$c(e);return e*(t?.find((e=>e.tariffType===String(l)))?.tariffValue||0)},$c=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},Rc=(e,t)=>e.find((e=>e.branchCode===t)),Bc=x((e=>{const{regions:t,data:l,branches:n,onChange:r,onClick:i}=e;a((()=>{r({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[l.selectedRegion,r]);const s=Rc(n,l.selectedBranch),o=Mc(s?.safeBoxCaseVolumes),c=_c(s?.safeBoxCaseVolumes,l.selectedCaseVolume)?.safeBoxCases,d=jc(c,l.selectedBoxSize);return p("div",{className:"flex justify-between align-top mb-6",children:[u(wc,{...l,regions:t,onClick:i,branches:n,caseVolumes:o,safeBoxCases:c,onChange:r}),u(Sc,{days:l.days,tariffs:d})]})})),Mc=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],_c=(e,t)=>e?.find((e=>e.volume===t)),jc=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs,zc=x((({title:e,footnote:t,className:l="",...a})=>{const[i,s]=n(!1),o=r((()=>s((e=>!e))),[]),[c,d]=n({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26}),m=V(),h=Lc(c.selectedRegion,m),x=function(e){const{data:t}=j(e?`/api/v1/safeboxes?regionCode=${e}`:null,pc);return t||uc}(h),g=r((e=>d((t=>({...t,...e})))),[d]),b=(f=Rc(x,c.selectedBranch)||x,Array.isArray(f)?f.map((e=>e.gpsLatitude&&e.gpsLongitude?[e.gpsLatitude,e.gpsLongitude]:[])):f?.gpsLatitude&&f?.gpsLongitude?[[f.gpsLatitude,f.gpsLongitude]]:[]);var f;return p(k,{className:l,...a,children:[p("div",{className:"px-8 py-12",children:[e?u(T,{title:e,headingType:"h3",as:"h2",className:"text-primary-text mb-2.5 text-center"}):null,u(Bc,{regions:m,branches:x,data:{...c,selectedRegion:h},onClick:o,onChange:g}),t?u("p",{className:"text-s-light text-secondary-text",children:t}):null]}),b.length&&i?u(No,{points:b,className:"h-[640px]"}):null]})})),Lc=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e,Dc=e=>Boolean(e?.icon||e?.src),Pc=({styleMap:e,isMainButton:t,version:l})=>(n,a,r)=>{const{label:i,description:s,button:o,items:c,isDotted:d}=n;return p("div",{className:w("relative flex flex-col items-center text-center whitespace-pre-line overflow-hidden",Vc(r.length)),children:[p("div",{className:w(o?.text?"mb-8":"","text-center"),children:[i?u("div",{className:"mb-2",children:u(de,{size:"text-h6",children:i})}):null,p("div",{className:"flex flex-col items-center",children:[s?u("div",{className:e.description,children:s}):null,u(ya,{className:w(s?`${e.description} mt-0.5`:"text-h6"),items:c,listItemSize:"M",isDotted:d})]})]}),o?.text&&!t?u(ie,{className:"box-border py-3 h-12 w-full max-w-[240px] mt-auto",version:l,...o,children:o?.text}):null]},String(a))},Vc=e=>e<5?"w-[276px]":"w-[210px]",Oc={description:"text-white/80 text-l-light group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconText:"text-white group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconBackground:"bg-white/30 group-data-primary:bg-main-divider",iconConnector:"bg-white group-data-primary:bg-secondary-light",dot:"bg-white/80 group-data-primary:bg-secondary-text"},Ac=x((({className:e="",showLines:t=!0,steps:l=[],buttons:n,size:a="normal",version:r="primary",stepVersion:i="gray",title:s,...o})=>{const c=l.length>3,d=Oc,m=(e=>e?"":"opacity-0")(t),h=(e=>e<5?"px-[88px]":"px-[55px]")(l.length),x=Boolean(n?.every((e=>e?.text)));return p(k,{className:w("box-border py-12",c?"px-20":"px-[70px]","flex flex-col items-center overflow-hidden",e),version:r,...o,children:[s?u(T,{headingType:"h4",className:"max-w-[752px] text-center mb-9",title:s}):null,l?.length?p("div",{className:"box-border",children:[u("div",{className:w("flex items-center",h),children:Hs(u("div",{className:w("h-0.5 w-full bg-secondary-light flex-1",m)}))(l.map(Ec(d,a,i)))}),u("div",{className:w("flex justify-between mt-4",c?"gap-x-3":"gap-x-[101px]"),children:l.map((g={styleMap:d,isMainButton:x,version:r},(e,t,l)=>{const{type:n}=e;if("default"!==n&&"rte"!==n)return null;switch(n){case"default":return Pc(g)(e,t,l);case"rte":return u("div",{className:w("text-center",Vc(l.length)),children:u(Va,{__html:e.__html})},String(t));default:return null}}))})]}):null,Ft(n,{className:"mt-8"})]});var g})),Ec=(e,t,l)=>({icon:n},a)=>{const r="secondary"===l?"group-data-primary:text-white":"text-secondary-text",i="secondary"===l?"white":"color";return u(k,{className:`${"normal"===t?"h-[100px] w-[100px]":"h-[63px] w-[63px]"} flex justify-center items-center text-center rounded-full p-[26px] box-border z-10`,version:l,children:Dc(n)?u(Ct,{image:{...n,iconVersion:n.iconVersion||i},width:"48",height:"48"}):u("span",{className:w("text-h4","transparent"===l?e.iconText:r),children:a+1})},String(a))},Fc=x((({className:e="",gap:t=14,padding:l=16,showDots:n=!0,minHeight:a,children:r,onVisibleIndicesChange:i,listType:s="horizontal-list",version:o})=>{const c=Array.isArray(r)?r.length:0,[d,m]=Fn({itemCount:c,onVisibleIndicesChange:i}),[h]=m.visibleIndicesRange;return p("div",{className:w(e,"vertical-list"===s?"relative h-full":""),children:[u(zn,{containerRef:d,activeIndex:h,visibleItemCount:1,gap:t,padding:l,onVisibleIndicesChange:m.handleVisibleIndicesChange,listType:s,minHeight:a,children:r}),n?u(On,{containerRef:d,activeIndex:h,dotCount:c,listType:s,version:o}):null]})})),Uc=x((({listType:e,showDots:t,options:l,version:n,...a})=>u(k,{version:n,...a,children:u(Fc,{listType:e,showDots:t,version:n,children:Bn({...a,options:l})})})));Uc.childrenTypes={exclude:["SwipeListControlBlock"]};const Hc="h-12 flex-1 flex items-center justify-center cursor-pointer",Xc="font-sans text-m text-center",Wc="text-white",Kc="text-secondary-text group-hover/btn:text-primary-main",Gc="text-primary-main",Jc={div:{scrollable:{active:`inline-flex px-4 grow whitespace-nowrap ${Hc} bg-white text-primary-main`,default:`inline-flex px-4 grow whitespace-nowrap ${Hc} group/btn bg-white`},default:{active:`${Hc} bg-primary-main text-white whitespace-nowrap`,default:`${Hc} group/btn bg-white whitespace-nowrap`}},text:{scrollable:{active:"h-full border-0 border-b-2",default:""},default:{active:"",default:""}}},Yc={link:{scrollable:{active:`inline-flex px-4 grow whitespace-nowrap ${Hc} bg-white text-primary-main`,default:`inline-flex px-4 grow whitespace-nowrap ${Hc} group/btn bg-white`},default:{active:`${Hc} bg-primary-main text-white`,default:`${Hc} group/btn bg-white`}},text:{scrollable:{active:`${Xc} flex items-center h-full border-0 border-b-2 text-primary-main`,default:`${Xc} ${Kc}`},default:{active:`${Xc} text-white`,default:`${Xc} ${Kc}`}}},qc=(e,t,l)=>{const n=t?"active":"default";return Jc[e][l?"scrollable":"default"][n]},Zc=(e,t,l)=>{const n=t?"active":"default";return Yc[e][l?"scrollable":"default"][n]},Qc=x((e=>{const{tab:t,currentTab:l,onClick:n,isScrollable:a=!1}=e,r="link"===l?.type&&l.href===t.href,i=J()(t);return u("a",{role:"tab",className:Zc("link",r,a),target:t.target,href:i.href,onClick:e=>{i.onClick(e),n(t)},children:u("span",{className:Zc("text",r,a),children:t.text})})})),ed=(e,t,l)=>e?u("h3",{className:l?`${Xc} ${t?Gc:Kc}`:`${Xc} ${t?Wc:Kc}`,children:e}):null,td=(e,t,l)=>e&&t?u("div",{className:"min-w-[22px] h-[22px] rounded-full text-xs ml-2 flex justify-center items-center "+(l?"bg-white/30 text-white":"bg-main-divider text-secondary-text group-hover/btn:text-primary-main"),children:t}):null,ld=({page:e,currentTab:t,showCounter:l,onClick:n,isScrollable:a=!1})=>(r,i)=>{const s=r.type;if("group"!==s&&"link"!==s)return null;switch(s){case"group":return(({page:e,currentTab:t,showCounter:l,onClick:n,isScrollable:a=!1})=>(r,i)=>{const s=t===r,o=r.ref&&e?.blocks?e.blocks.filter((e=>e?.labels?.includes(r.ref))).length:0;return u("div",{className:qc("div",s,a),role:"tab","aria-selected":s,onClick:()=>n(r),children:p("div",{className:`flex flex-1 items-center justify-center ${qc("text",s,a)}`,children:[ed(r.title,s,a),td(l,o,s)]})},`group-${String(i)}`)})({page:e,currentTab:t,showCounter:l,onClick:n,isScrollable:a})(r,i);case"link":return u(Qc,{tab:r,currentTab:t,isScrollable:a,onClick:n},String(i));default:xi(s)}return null},nd=x((e=>{const{tabs:t,onClick:l,currentTab:n,page:a,showCounter:r}=e,[i,s]=Fn({itemCount:t?.length||0,isCyclic:!1});return p("div",{className:"relative max-w-full m-auto",children:[u("div",{className:"font-sans max-w-full w-full overflow-hidden relative bg-white",children:u(zn,{containerRef:i,snapAlign:"snap-start",onVisibleIndicesChange:s.handleVisibleIndicesChange,children:t?.map(ld({onClick:l,currentTab:n,showCounter:r,page:a,isScrollable:!0}))})}),s.canScrollLeft?u(ol,{className:"absolute z-40 top-0 left-6",onClick:s.scrollLeft}):null,s.canScrollRight?u(cl,{className:"absolute z-40 top-0 rotate-180 right-6",onClick:s.scrollRight}):null]})})),ad=x((e=>{const{className:t="",tabs:l,showCounter:i,isSticky:s,tabsMode:o,...c}=e,[d,m]=n(l?l[0]:void 0);a((()=>{l&&l[0]&&rd(l[0])}),[]),a((()=>{"group"===d?.type&&f.subject("tab",{type:d.type,label:d.ref})}),[d]);const h=r((e=>{rd(e),m(e)}),[]);return u(k,{className:`relative box-border flex gap-x-1 w-full ${s?"sticky top-1 z-20":""} ${t}`,role:"tablist",...c,children:"scrollable"===o?u(nd,{tabs:l,onClick:h,currentTab:d,showCounter:i,...c}):l?.map(ld({onClick:h,currentTab:d,showCounter:i,...c}))})})),rd=e=>{"group"===e.type&&f.fire("tab",{type:e.type,label:e.ref}),"link"===e.type&&f.fire("tab",{type:e.type,label:e.href})},id=x((({isOpen:e,onClick:t})=>p(ie,{version:"primary",onClick:t,className:"w-full flex items-center justify-center rounded-none py-5",children:[u("div",{className:"text-h4",children:e?"Скрыть":"Показать ставки по вкладу"}),u(ze,{name:e?"ArrowUpIcon":"ArrowDownIcon",className:"ml-3",iconVersion:"white",width:"20",height:"20"})]}))),sd={Buttons:({buttons:e})=>Ft(e),Img:({image:e})=>e?.src?u(Ct,{image:e}):null,List:({isDotted:e,...t})=>u(ya,{className:"flex flex-col justify-between items-start text-h6",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>p("div",{children:[e?u("div",{className:"text-h6 m-0 "+(t?"mb-1":""),children:e}):null,t?u("div",{className:"text-secondary-text text-l-light",children:t}):null]}),Table:x((({isVisible:e,displayTable:t,dataUrl:l,pdfUrl:n,isOpen:a})=>e?u(id,{isOpen:a,onClick:()=>{t({dataUrl:l,pdfUrl:n})}}):null))},od=({rowIdx:e,cellIdx:t,setTableInner:l,tableInner:r,openTableInnerIdx:i,setOpenTableInnerIdx:s})=>(o,c)=>{const[d,m]=n(!0);a((()=>{t===i&&r||m(!0)}),[r,i]);return p("div",{className:"Table"===o?.tableCellType?"ml-10":"first:pt-5 last:pb-5 pl-10",children:[c>0?u("div",{className:"h-5"}):null,cd({cell:o,cellProps:{rowIdx:e,cellIdx:t,fieldIdx:c,displayTable:e=>{m(!1),s(t),l(e)},isVisible:d}})]},String(c))},cd=({cell:e,cellProps:t})=>{if(!e)return null;const{tableCellType:l,...n}=e;if(!l||!(l in sd))return null;return u(sd[l],{...t,...n})},dd=x((({cells:e,rowIdx:t,cellIdx:l,setTableInner:n,tableInner:a,openTableInnerIdx:r,setOpenTableInnerIdx:i})=>u("div",{className:"first:pl-0 w-80 flex-grow flex flex-col border-solid border-main-divider border border-t-0 border-x-0",role:"cell",children:e?.length?e.map(od({rowIdx:t,cellIdx:l,setTableInner:n,tableInner:a,openTableInnerIdx:r,setOpenTableInnerIdx:i})):null}))),md=x((({rows:e})=>{const t=e?.[0]?.length??0,[l,n]=il({itemCount:t,visibleItemCount:5});return p("div",{children:[e?.map(hd(l)),dl({...n,btnClass:["left-3 top-20","right-3 top-20"],className:""})]})})),hd=e=>(t,l)=>{if(!t?.length)return null;const[n,...a]=t,r=[...Array(e).keys()].reduce(((e,t)=>140*(a?.[t]?.cols?.length??1)+e),0),i=["flex duration-1000 text-center",0!==l?"font-normal":"font-light"].join(" ");return p("div",{className:"flex border-main-divider border border-t-0 border-x-0 border-solid",children:[n?.data?u("div",{className:"text-xl-light w-[214px] pb-5 "+(0===l?"pt-8":"pt-6"),children:n.data}):null,u("div",{className:"flex flex-grow overflow-hidden",children:u("div",{className:i,style:{transform:`translateX(-${r}px)`},children:a?.map(((t,l)=>p("div",{className:"flex flex-col flex-grow justify-center pt-6 pb-5 odd:bg-main-divider",children:[t?.data?u("div",{className:"text-xl-light mb-3",children:t.data}):null,t?.cols?ud(t.cols,e):null]},`row${l}`)))})})]},String(l))},ud=(e,t)=>e?.length>0?u("div",{className:`flex ${t} ${0===t?"text-secondary-text":""} last:mr-3`,children:e.map(((e,t)=>u("div",{className:"w-[76px] text-h6 mr-5 first:ml-8",children:e},String(t))))}):null,pd=x((({activeTabIndex:e,items:t})=>{const[l,a]=n({}),i=r((e=>a((t=>({...t,[e]:!t[e]})))),[]);return u("div",{children:t.map(((t,n)=>{const a=`activeTabIdx:${e}-tableIdx:${n}`;return p("div",{className:"w-full",children:[p("div",{className:"flex p-4 bg-gray text-xl-light text-center justify-center cursor-pointer relative",onClick:()=>i(a),children:[t.title,u(Ct,{image:{icon:l[a]?"PlusIcon":"MinusIcon"},className:"absolute right-[22px]",width:"24",height:"24"})]}),u("div",{className:"w-full pl-2 overflow-hidden transition-height duration-500 ease-in-out "+(l[a]?"h-0":""),children:u("div",{className:"relative",children:u(md,{rows:t.rowsData})})})]},a)}))})})),xd=x((({currencies:e,linkToPDF:t,activeTabIndex:l,setActiveTabIndex:n})=>p("div",{className:"flex justify-between w-full pt-2.5 pb-3",children:[e&&e.length>1?u("div",{className:"flex bg-secondary-light p-1.5 rounded-md",children:e.map(((e,t)=>u("div",{className:"rounded-md text-xl-light px-4 py-3 cursor-pointer "+(t===l?"bg-primary-main text-white":"text-secondary-text"),onClick:()=>n(t),children:e||t+1},e)))}):null,t?u(ie,{href:t,version:"secondary",target:"_blank",appendLeft:u(ze,{name:"DocDownloadIcon",iconVersion:"color",className:"mr-0.5",width:"20",height:"20"}),text:"Скачать в PDF"}):null]})));async function gd(e){const t=await fetch(e);return await t.json()}const bd=x((({dataUrl:e,pdfUrl:t,onClick:l})=>{const{tableData:a}=function(e){const{data:t}=j(function(e){return`/wcms-resources/${e||"tariffs-inner-table-data"}.json`}(e),gd);return t||{}}(e),[i,s]=n(0),o=r((e=>s(e)),[]),c=a?.[i]?.items??[],d=a?.map((e=>e.currency??""));return p("div",a?{className:"bg-white z-10",children:[u(xd,{currencies:d,activeTabIndex:i,setActiveTabIndex:o,linkToPDF:t}),u(pd,{activeTabIndex:i,items:c}),u(id,{onClick:l,isOpen:!0})]}:{className:"my-5 text-h6 text-center",children:[u("p",{children:"Данных нет"}),u(id,{onClick:l,isOpen:!0})]})})),fd=x((({children:e,tableInner:t,onHideContentClick:l})=>p("div",{className:"self-start flex flex-col",role:"row",children:[u("div",{className:"flex",children:e}),t?u("div",{className:"origin-top animate-expansion",children:u(bd,{...t,onClick:l})}):null]}))),vd=x((({row:{header:e,data:t},activeIndex:l,rowIdx:a,...i})=>{const[s,o]=n(void 0),c=r((e=>o(e)),[]),[d,m]=n(void 0),h=r((e=>m(e)),[]);return p(fd,{onHideContentClick:()=>o(void 0),tableInner:s,...i,children:[u("div",{className:"text-s py-5 w-[354px] flex-shrink-0 border-main-divider border border-t-0 border-x-0",children:p("div",{className:"flex items-center text-primary-text",role:"cell",children:[e?.icon?u(Ct,{className:"mr-3.5 max-w-6",image:e.icon,width:"24",height:"24"}):null,e?.title?u("div",{className:"text-m-light",children:e?.title}):null]})}),t?.length?u(er,{activeIndex:l,columnWidth:360,version:"tariff",children:t.map(((e,t)=>u(dd,{cells:e,rowIdx:a,cellIdx:t,setTableInner:c,tableInner:s,openTableInnerIdx:d,setOpenTableInnerIdx:h,...i},String(t))))}):null]})})),Nd=x((({className:e="",title:t,description:l,rowHeaders:n,tariffsColumns:a,hiddenRowsNum:r=0,...i})=>{const s=a?.map((({data:e})=>e))||[],o=n?.map(((e,t)=>({header:e,data:s.map((e=>e?.[t]||[]))}))),c=s.length,[d,m]=il({itemCount:c,visibleItemCount:2}),h=(o||[]).map(((e,t)=>u(vd,{row:e,activeIndex:d,rowIdx:t,...i},String(t)))),[x,g]=r>0?[h.slice(0,-r),h.slice(-r)]:[h,[]];return p(k,{className:`p-default overflow-hidden relative ${c>1?"pr-0":""} ${e}`,...i,children:[yd({title:t,description:l}),wd(l),r>0?u(Aa,{renderFoldableSection:({isUnfolded:e})=>p(Cd,{controls:m,children:[x,u(Ea,{isUnfolded:e,children:g})]}),renderFoldButton:qr}):u(Cd,{controls:m,children:h})]})}));function yd({title:e,description:t}){return e?u(T,{headingType:"h3",className:"text-center "+(t?"mb-2.5":"mb-8"),title:e}):null}function wd(e){return e?u("div",{className:"mb-9 text-center text-l",children:e}):null}const Cd=x((({children:e,controls:t})=>{const{isScrollAvailable:l}=t;return p("div",{role:"table",children:[p("div",{className:"relative",children:[e,dl({...t,btnClass:["top-[108px]","top-[44px]"],className:"right-7"})]}),l?u("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),kd=x((({className:e="",title:t,description:l,iconVersion:n,image:a,__html:r,items:i=[],...s})=>p(k,{className:w("px-9 py-4 flex gap-3 bg-white group-data-secondary:bg-primary-main/10",e),...s,children:["small"===n?u("div",{className:"mt-1",children:Sd()}):null,"big"===n?Id(a):null,p("div",{className:"flex flex-col w-fit gap-3",children:[t?u(de,{size:"text-l",font:"font-medium",color:"text-primary-text group-data-secondary:text-white",children:t}):null,l?Td(l):null,i?.length?$d(i,!0):null,r?u(Va,{__html:r}):null]})]}))),Sd=()=>u("div",{className:"rounded-full h-4 w-4 text-center text-xs-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main",children:"i"}),Id=e=>e?.src?u(Ct,{className:"h-fit",image:e}):null,Td=e=>u(ce,{size:"text-s",color:"text-secondary-text group-data-secondary:text-white",children:e}),$d=(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}`)))}),Rd=x((e=>{const{tags:t,className:l=""}=e;return t?.length?u("div",{className:`flex flex-wrap gap-2 ${l}`,children:t.map(Bd)}):null})),Bd=(e,t)=>u("span",{className:"text-m-light py-2 px-2.5 border-solid border rounded-md border-gray",children:e},String(t)),Md=x((({title:e,headingType:t="h3",__html:l,items:n,buttons:a,image:r,isDotted:i=!0,listItemSize:s="M",className:o="",tags:c,children:d,directionRight:m=!0,...h})=>p(k,{className:w("flex grow justify-between items-stretch h-full p-9 pr-3 box-border",Uo(o),ao(o),o),...h,children:[r?.src?u(Ct,{className:w("mt-auto ml-7",m?"order-2":""),image:r}):null,u(ca,{title:e?u(T,{headingType:t,as:"h2",title:e,className:"whitespace-pre-wrap max-w-[600px]"}):null,buttons:Ft(a,{className:"mt-8",buttonClassName:"min-w-[158px]"}),children:p("div",{children:[l?u("div",{className:"max-w-[600px] mt-2.5",children:u(Va,{__html:l})}):null,d,u(ya,{className:"mt-2.5",itemClassName:"mb-1.5",items:n,isDotted:i,listItemSize:s}),c?.length?u(Rd,{tags:c,className:"mt-5"}):null]})})]}))),_d={stretch:"items-stretch",left:"items-start",center:"items-center",right:"items-end"},jd=x((({className:e="",gap:t="",align:l="stretch",isPadding:n=!1,isInnerPadding:a=!0,version:r="transparent",isTheme:i=!1,...s})=>{const o=a?"":"!p-0";return u(k,{className:w("relative","flex flex-col [&>*]:max-w-full",n?"p-default":"",Ls[t],l&&_d[l],e),version:r,isTheme:i,...s,children:Bn({...s,renderProps:(e,t)=>Tn(e,t,{className:o})})})}));jd.childrenTypes=[];const zd=e=>no(e)<10?"py-6 px-11":"py-12 px-32",Ld=x((({className:e,title:t,url:l,previewImg:n,...a})=>{const r=G();return p(k,{className:w(zd(e),e),...a,children:[u(Kt,{title:t,headlineVersion:"M"}),l?u("video",{className:"m-auto w-full object-fill",preload:"metadata",poster:X(r)(n?.src),style:{maxHeight:524},controls:!0,children:u("source",{src:X(r)(l)})}):null]})})),Dd=x((({address:e,email:t,telephone:l,button:n,className:a="",__html:r,icon:i,title:s,version:o="primary",...c})=>p(k,{className:w("box-border text-left p-9",a),version:o,...c,children:[p("div",{className:"w-full flex justify-between",children:[s?u(T,{headingType:"h4",as:"h3",className:"mb-6",title:s}):null,Pd(i)]}),p("div",{className:"w-full",children:[r?Vd(r):null,Od("Адрес",e,"GeolocationIcon"),Od("Телефон",l,"PhoneIcon"),Od("E-mail",t,"MailIcon"),n?.text?Ft([n],{className:"mb-6"}):null]})]}))),Pd=e=>p("div",{className:"self-end",children:[e?.src?u(Ct,{image:e}):null,e?.icon?u(Ct,{image:e}):null]}),Vd=e=>u("div",{className:"border-b border-main-divider pb-5 my-5",children:u(Va,{__html:e})}),Od=(e,t,l)=>p("div",{className:"flex mb-4",children:[u(ze,{className:"pr-4",iconVersion:"black",name:l,width:"24",height:"24"}),p("div",{className:"flex flex-col first:pb-1",children:[u(de,{size:"text-m-light",children:e}),t?u(de,{size:"text-h6",color:"text-green",children:t}):null]})]}),Ad={ApplicationForm:Dt,BenefitsBlock:Pt,Bonus:Gt,BonusBenefitsBlock:Qt,BusinessBlock:al,ButtonBlock:rl,Calculator:bn,CardTransfer:kn,Carousel:Kn,CarouselBankHistoryCard:qn,CarouselCard:na,CarouselCatalogCard:ra,CarouselEventCard:oa,CarouselInvestmentCard:ma,CarouselLinks:xa,CarouselProductCard:wa,CarouselProgramsCard:$a,CarouselRecommendationCard:Da,CarouselRichTextCard:Oa,CarouselTariffsCard:Fa,ComparisonTable:mr,ContactsBlock:ur,ErrorBlock:br,ExchangeRateTile:Gr,Filtration:ii,Footer:Ki,GracePeriod:Gi,Header:zs,Headline:Kt,HorizontalLayout:Ds,ImgBlock:Ps,InsuranceAmountBlock:Fs,InvestmentInfo:Ks,LinkDocs:lo,MobileAppTile:ro,OfficeMap:_o,OfficeServicesBlock:jo,ParagraphBlock:Lo,PictureText:Oo,Placeholder:Ho,ProductBlock:ec,ProductGallery:tc,ProductTile:rc,PromoTile:sc,RichTextBlock:cc,RollupItem:dc,SafeDepositRental:zc,StepsBlock:Ac,SwipeListControlBlock:Uc,Tabs:ad,TariffsTable:Nd,TextBlock:kd,Tile:Md,VerticalLayout:jd,Video:Ld,ExchangeRateOffice:Sr,RepresentativeOfficeInfo:Dd};const Ed=["Header","Footer"],Fd=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function Ud(e=globalThis){const t=s(new Map);a((()=>y.subscribe("intersection",(({block:e,intersection:l})=>{t.current&&t.current.set(e,l)}))),[]),a((()=>{const l=((e,t=600)=>{let l;const n=(...a)=>{n.dispose(),l=setTimeout((()=>{e(...a)}),t)};return n.dispose=()=>{l&&clearTimeout(l)},n})((()=>{!function(e){const t=`#${l=e?.anchor,l?.replace("#","")||""}`;var l;globalThis.location?.hash!==t&&globalThis.history?.replaceState(globalThis.history?.state,"",t)}(globalThis.scrollY>3*globalThis.innerHeight/4?function(e){const t=e.filter((([e])=>!Ed.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[l]=t.length>0?Dl(Fd)(t):[];return l}([...t.current||[]]):void 0)}),100);return e.addEventListener("scroll",l),()=>{l.dispose(),e.removeEventListener("scroll",l)}}),[e])}const Hd="cookieClose",Xd=x((({termLink:e,personalDataPolicyLink:t})=>{const{isOpened:l,onClose:n}=Ti("cookie",!globalThis.localStorage?.getItem(Hd)),a=r((()=>{globalThis.localStorage?.setItem(Hd,"true"),n&&n()}),[n]);return l?u("div",{className:"container z-40 fixed bottom-0 left-0 right-0 pointer-events-none",children:p("div",{className:"bg-white m-6 p-6 rounded-md flex items-center pointer-events-auto shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:[u("div",{className:"flex-1",children:p(ce,{size:"text-s-light",color:"text-primary-text",children:["АО «Россельхозбанк» использует",u(sa,{isRemote:!0,className:w(Wd(e?.href)),...e,children:"cookie"}),"(файлы с данными о прошлых посещениях сайта) для персонализации сервисов и удобства пользователей. Вы можете запретить сохранение cookie в настройках своего браузера.",u(sa,{isRemote:!0,className:w(Wd(t?.href)),...t,children:"Обработка Ваших персональных данных"}),"производится в соответствии с требованиями Федерального закона от 27.07.2006 № 152-Ф3 «О персональных данных»."]})}),u("div",{className:"w-24 flex justify-end",children:u(pi,{className:"bg-main-gray rounded-md",onClick:a})})]})}):null})),Wd=e=>["inline mx-1",e?"text-green-dark":""],Kd=h();const Gd=x((({className:e,onClick:t,ariaLabel:l})=>u("button",{type:"button",className:`border-0 w-9 bg-inherit cursor-pointer ${e||""}`,onClick:t,"aria-label":l,children:Jd()}))),Jd=()=>{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"})]})},Yd=x((({className:e=""})=>{const t=function(e){const[t,l]=n(0);return a((()=>{(async()=>{const[t]=await Kd.getLikeCount(e);l(t?.value||0)})()}),[e]),{likeCount:t,like:r((async()=>{l(await Kd.like(e))}),[e]),dislike:r((async()=>{l(await Kd.dislike(e))}),[e])}}(G().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(Gd,{onClick:K(t.like),ariaLabel:"Поставить отметку «лайк»"}),u(Gd,{onClick:K(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),u("span",{className:"select-none",children:t.likeCount})]})})),qd=x((e=>{const{className:t="",blocksRegistry:l,blockDecorator:n,data:a={}}=e,{style:r,blocks:i,slots:s,likeControl:o,colorPalette:c="pc"}=a,d={key:"",page:a,blocksRegistry:l,blockDecorator:n,parent:a};Ud();const[m,{setTrue:h,setFalse:x}]=Me();return gi({onOpen:h,onClose:x}),p("section",{className:w("relative",r,t,m?"overflow-hidden h-screen":""),"data-theme":c,children:[s?.header?u("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:Rn(s?.header,{...d,slotName:"header"})}):null,p("div",{className:"container grid grid-cols-12 gap-1",children:[Rn(i,d),s?.footer?Rn(s?.footer,{...d,slotName:"footer"}):null]}),o?u("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:u(Yd,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null,u(Xd,{termLink:{href:"/pd-policy#cookie",target:"_blank"},personalDataPolicyLink:{href:"/pd-policy",target:"_blank"}})]})}));qd.childrenTypes=[],qd.slots=()=>["header","footer"];e.Blocks=Ad,e.ContentPage=qd,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))))))(),l=await fetch(`${e}/geolocate`,{method:"POST",mode:"cors",body:JSON.stringify({lat:t.latitude,lon:t.longitude,count:1})});return(await l.json())?.suggestions?.[0]?.data?.city}catch(e){return console.error(e),null}}}},e.LikeAPI=h,e.handlerDecorator=K,e.joinList=Hs,e.packageVersion="0.10.6",e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=H,e.useRouter=G,Object.defineProperty(e,"__esModule",{value:!0})}));
|