@redneckz/wildless-cms-uni-blocks 0.9.16 → 0.10.0
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/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +372 -223
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/InputControl.d.ts +10 -0
- package/bundle/components/ApplicationForm/{WrapperSelect.d.ts → SelectControl.d.ts} +4 -2
- package/bundle/components/ApplicationForm/models.d.ts +5 -0
- package/bundle/components/ApplicationForm/normalizeSelected.d.ts +2 -0
- package/bundle/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +11 -0
- package/{lib/components/ApplicationForm/renderSelects.d.ts → bundle/components/ApplicationForm/renderAcquiringRegion.d.ts} +4 -2
- package/bundle/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +11 -0
- package/bundle/components/ApplicationForm/renderCreditDataOrganization.d.ts +13 -0
- package/bundle/components/ApplicationForm/renderRegion.d.ts +12 -0
- package/{dist/components/ApplicationForm/renderBankOffices.d.ts → bundle/components/ApplicationForm/renderRegionDepartment.d.ts} +4 -2
- package/bundle/components/ApplicationForm/renderWedDataOrganization.d.ts +11 -0
- package/bundle/components/ApplicationForm/useForm.d.ts +14 -0
- package/bundle/components/ApplicationForm/validate.d.ts +1 -0
- package/bundle/components/Carousel/CarouselContent.d.ts +2 -0
- package/bundle/components/ExchangeRateOffice/Currencies.d.ts +8 -0
- package/bundle/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +5 -0
- package/bundle/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +36 -0
- package/bundle/components/ExchangeRateOffice/renderCurrencies.d.ts +3 -0
- package/bundle/components/ExchangeRateOffice/renderTableHeader.d.ts +2 -0
- package/bundle/ui-kit/RichText/RichTextProps.d.ts +2 -2
- package/bundle/ui-kit/Select/Select.d.ts +2 -0
- package/dist/components/ApplicationForm/ApplicationForm.js +3 -3
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +47 -40
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +34 -28
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormCredit.js +52 -41
- package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js +24 -17
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormWed.js +38 -25
- package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/dist/components/ApplicationForm/InputControl.d.ts +10 -0
- package/dist/components/ApplicationForm/InputControl.js +10 -0
- package/dist/components/ApplicationForm/InputControl.js.map +1 -0
- package/{lib/components/ApplicationForm/WrapperSelect.d.ts → dist/components/ApplicationForm/SelectControl.d.ts} +4 -2
- package/dist/components/ApplicationForm/SelectControl.js +14 -0
- package/dist/components/ApplicationForm/SelectControl.js.map +1 -0
- package/dist/components/ApplicationForm/models.d.ts +5 -0
- package/dist/components/ApplicationForm/normalizeSelected.d.ts +2 -0
- package/dist/components/ApplicationForm/normalizeSelected.js +5 -0
- package/dist/components/ApplicationForm/normalizeSelected.js.map +1 -0
- package/dist/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +11 -0
- package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +8 -0
- package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -0
- package/{bundle/components/ApplicationForm/renderSelects.d.ts → dist/components/ApplicationForm/renderAcquiringRegion.d.ts} +4 -2
- package/dist/components/ApplicationForm/renderAcquiringRegion.js +9 -0
- package/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -0
- package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +11 -0
- package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +8 -0
- package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -0
- package/dist/components/ApplicationForm/renderCreditDataOrganization.d.ts +13 -0
- package/dist/components/ApplicationForm/renderCreditDataOrganization.js +8 -0
- package/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -0
- package/dist/components/ApplicationForm/renderRegion.d.ts +12 -0
- package/dist/components/ApplicationForm/renderRegion.js +8 -0
- package/dist/components/ApplicationForm/renderRegion.js.map +1 -0
- package/{lib/components/ApplicationForm/renderBankOffices.d.ts → dist/components/ApplicationForm/renderRegionDepartment.d.ts} +4 -2
- package/dist/components/ApplicationForm/renderRegionDepartment.js +8 -0
- package/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -0
- package/dist/components/ApplicationForm/renderWedDataOrganization.d.ts +11 -0
- package/dist/components/ApplicationForm/renderWedDataOrganization.js +8 -0
- package/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -0
- package/dist/components/ApplicationForm/useForm.d.ts +14 -0
- package/dist/components/ApplicationForm/useForm.js +37 -0
- package/dist/components/ApplicationForm/useForm.js.map +1 -0
- package/dist/components/ApplicationForm/validate.d.ts +1 -0
- package/dist/components/ApplicationForm/validate.js +22 -0
- package/dist/components/ApplicationForm/validate.js.map +1 -0
- package/dist/components/Blocks.js +2 -0
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Bonus/Bonus.js +5 -3
- package/dist/components/Bonus/Bonus.js.map +1 -1
- package/dist/components/Carousel/Carousel.js +4 -3
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/Carousel/CarouselContent.d.ts +2 -0
- package/dist/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -3
- package/dist/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/dist/components/ExchangeRateOffice/Currencies.d.ts +8 -0
- package/dist/components/ExchangeRateOffice/Currencies.js +12 -0
- package/dist/components/ExchangeRateOffice/Currencies.js.map +1 -0
- package/dist/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +5 -0
- package/dist/components/ExchangeRateOffice/ExchangeRateOffice.js +16 -0
- package/dist/components/ExchangeRateOffice/ExchangeRateOffice.js.map +1 -0
- package/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +36 -0
- package/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.js +2 -0
- package/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.js.map +1 -0
- package/dist/components/ExchangeRateOffice/renderCurrencies.d.ts +3 -0
- package/dist/components/ExchangeRateOffice/renderCurrencies.js +30 -0
- package/dist/components/ExchangeRateOffice/renderCurrencies.js.map +1 -0
- package/dist/components/ExchangeRateOffice/renderTableHeader.d.ts +2 -0
- package/dist/components/ExchangeRateOffice/renderTableHeader.js +9 -0
- package/dist/components/ExchangeRateOffice/renderTableHeader.js.map +1 -0
- package/dist/components/RichTextBlock/RichTextBlock.js +2 -2
- package/dist/components/RichTextBlock/RichTextBlock.js.map +1 -1
- package/dist/components/TariffsTable/EmbeddableCellData.js +1 -3
- package/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/dist/ui-kit/Button/getRegularButtonClasses.js +1 -1
- package/dist/ui-kit/Button/getRegularButtonClasses.js.map +1 -1
- package/dist/ui-kit/Button/renderButtonsSection.js +2 -2
- package/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/dist/ui-kit/RichText/RichText.js +3 -2
- package/dist/ui-kit/RichText/RichText.js.map +1 -1
- package/dist/ui-kit/RichText/RichTextProps.d.ts +2 -2
- package/dist/ui-kit/Select/Select.d.ts +2 -0
- package/dist/ui-kit/Select/Select.js +5 -3
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.js +3 -3
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +47 -40
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +34 -28
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormCredit.js +53 -42
- package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js +24 -17
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormWed.js +38 -25
- package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/lib/components/ApplicationForm/InputControl.d.ts +10 -0
- package/lib/components/ApplicationForm/InputControl.js +8 -0
- package/lib/components/ApplicationForm/InputControl.js.map +1 -0
- package/{mobile/bundle/components/ApplicationForm/WrapperSelect.d.ts → lib/components/ApplicationForm/SelectControl.d.ts} +4 -2
- package/lib/components/ApplicationForm/SelectControl.js +12 -0
- package/lib/components/ApplicationForm/SelectControl.js.map +1 -0
- package/lib/components/ApplicationForm/models.d.ts +5 -0
- package/lib/components/ApplicationForm/normalizeSelected.d.ts +2 -0
- package/lib/components/ApplicationForm/normalizeSelected.js +2 -0
- package/lib/components/ApplicationForm/normalizeSelected.js.map +1 -0
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +11 -0
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +5 -0
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -0
- package/{mobile/bundle/components/ApplicationForm/renderSelects.d.ts → lib/components/ApplicationForm/renderAcquiringRegion.d.ts} +4 -2
- package/lib/components/ApplicationForm/renderAcquiringRegion.js +6 -0
- package/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -0
- package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +11 -0
- package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +5 -0
- package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -0
- package/lib/components/ApplicationForm/renderCreditDataOrganization.d.ts +13 -0
- package/lib/components/ApplicationForm/renderCreditDataOrganization.js +5 -0
- package/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -0
- package/lib/components/ApplicationForm/renderRegion.d.ts +12 -0
- package/lib/components/ApplicationForm/renderRegion.js +5 -0
- package/lib/components/ApplicationForm/renderRegion.js.map +1 -0
- package/{bundle/components/ApplicationForm/renderBankOffices.d.ts → lib/components/ApplicationForm/renderRegionDepartment.d.ts} +4 -2
- package/lib/components/ApplicationForm/renderRegionDepartment.js +5 -0
- package/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -0
- package/lib/components/ApplicationForm/renderWedDataOrganization.d.ts +11 -0
- package/lib/components/ApplicationForm/renderWedDataOrganization.js +5 -0
- package/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -0
- package/lib/components/ApplicationForm/useForm.d.ts +14 -0
- package/lib/components/ApplicationForm/useForm.js +34 -0
- package/lib/components/ApplicationForm/useForm.js.map +1 -0
- package/lib/components/ApplicationForm/validate.d.ts +1 -0
- package/lib/components/ApplicationForm/validate.js +19 -0
- package/lib/components/ApplicationForm/validate.js.map +1 -0
- package/lib/components/Blocks.js +2 -0
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Bonus/Bonus.js +5 -3
- package/lib/components/Bonus/Bonus.js.map +1 -1
- package/lib/components/Carousel/Carousel.js +4 -3
- package/lib/components/Carousel/Carousel.js.map +1 -1
- package/lib/components/Carousel/CarouselContent.d.ts +2 -0
- package/lib/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -3
- package/lib/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/lib/components/ExchangeRateOffice/Currencies.d.ts +8 -0
- package/lib/components/ExchangeRateOffice/Currencies.js +10 -0
- package/lib/components/ExchangeRateOffice/Currencies.js.map +1 -0
- package/lib/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +5 -0
- package/lib/components/ExchangeRateOffice/ExchangeRateOffice.fixture.d.ts +6 -0
- package/lib/components/ExchangeRateOffice/ExchangeRateOffice.js +14 -0
- package/lib/components/ExchangeRateOffice/ExchangeRateOffice.js.map +1 -0
- package/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +36 -0
- package/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.js +2 -0
- package/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.js.map +1 -0
- package/lib/components/ExchangeRateOffice/renderCurrencies.d.ts +3 -0
- package/lib/components/ExchangeRateOffice/renderCurrencies.js +27 -0
- package/lib/components/ExchangeRateOffice/renderCurrencies.js.map +1 -0
- package/lib/components/ExchangeRateOffice/renderTableHeader.d.ts +2 -0
- package/lib/components/ExchangeRateOffice/renderTableHeader.js +6 -0
- package/lib/components/ExchangeRateOffice/renderTableHeader.js.map +1 -0
- package/lib/components/RichTextBlock/RichTextBlock.fixture.d.ts +3 -0
- package/lib/components/RichTextBlock/RichTextBlock.js +2 -2
- package/lib/components/RichTextBlock/RichTextBlock.js.map +1 -1
- package/lib/components/TariffsTable/EmbeddableCellData.js +1 -3
- package/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/lib/ui-kit/Button/getRegularButtonClasses.js +1 -1
- package/lib/ui-kit/Button/getRegularButtonClasses.js.map +1 -1
- package/lib/ui-kit/Button/renderButtonsSection.js +2 -2
- package/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/lib/ui-kit/RichText/RichText.js +3 -2
- package/lib/ui-kit/RichText/RichText.js.map +1 -1
- package/lib/ui-kit/RichText/RichTextProps.d.ts +2 -2
- package/lib/ui-kit/Select/Select.d.ts +2 -0
- package/lib/ui-kit/Select/Select.js +5 -3
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +6 -6
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/InputControl.d.ts +10 -0
- package/{dist/components/ApplicationForm/WrapperSelect.d.ts → mobile/bundle/components/ApplicationForm/SelectControl.d.ts} +4 -2
- package/mobile/bundle/components/ApplicationForm/models.d.ts +5 -0
- package/mobile/bundle/components/ApplicationForm/normalizeSelected.d.ts +2 -0
- package/mobile/bundle/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +11 -0
- package/{dist/components/ApplicationForm/renderSelects.d.ts → mobile/bundle/components/ApplicationForm/renderAcquiringRegion.d.ts} +4 -2
- package/mobile/bundle/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +11 -0
- package/mobile/bundle/components/ApplicationForm/renderCreditDataOrganization.d.ts +13 -0
- package/mobile/bundle/components/ApplicationForm/renderRegion.d.ts +12 -0
- package/mobile/bundle/components/ApplicationForm/{renderBankOffices.d.ts → renderRegionDepartment.d.ts} +4 -2
- package/mobile/bundle/components/ApplicationForm/renderWedDataOrganization.d.ts +11 -0
- package/mobile/bundle/components/ApplicationForm/useForm.d.ts +14 -0
- package/mobile/bundle/components/ApplicationForm/validate.d.ts +1 -0
- package/mobile/bundle/components/Carousel/CarouselContent.d.ts +2 -0
- package/mobile/bundle/components/ExchangeRateOffice/Currencies.d.ts +8 -0
- package/mobile/bundle/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +5 -0
- package/mobile/bundle/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +36 -0
- package/mobile/bundle/components/ExchangeRateOffice/renderCurrencies.d.ts +3 -0
- package/mobile/bundle/components/ExchangeRateOffice/renderTableHeader.d.ts +2 -0
- package/mobile/bundle/ui-kit/RichText/RichTextProps.d.ts +2 -2
- package/mobile/bundle/ui-kit/Select/Select.d.ts +2 -0
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +3 -3
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +47 -40
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +34 -28
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +52 -41
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +24 -17
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +38 -25
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/InputControl.d.ts +10 -0
- package/mobile/dist/components/ApplicationForm/InputControl.js +10 -0
- package/mobile/dist/components/ApplicationForm/InputControl.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/SelectControl.d.ts +13 -0
- package/mobile/dist/components/ApplicationForm/SelectControl.js +14 -0
- package/mobile/dist/components/ApplicationForm/SelectControl.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/models.d.ts +5 -0
- package/mobile/dist/components/ApplicationForm/normalizeSelected.d.ts +2 -0
- package/mobile/dist/components/ApplicationForm/normalizeSelected.js +5 -0
- package/mobile/dist/components/ApplicationForm/normalizeSelected.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +11 -0
- package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +8 -0
- package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.d.ts +13 -0
- package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js +9 -0
- package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +11 -0
- package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +8 -0
- package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.d.ts +13 -0
- package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js +8 -0
- package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderRegion.d.ts +12 -0
- package/mobile/dist/components/ApplicationForm/renderRegion.js +8 -0
- package/mobile/dist/components/ApplicationForm/renderRegion.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.d.ts +15 -0
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js +8 -0
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.d.ts +11 -0
- package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js +8 -0
- package/mobile/dist/components/ApplicationForm/renderWedDataOrganization.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/useForm.d.ts +14 -0
- package/mobile/dist/components/ApplicationForm/useForm.js +37 -0
- package/mobile/dist/components/ApplicationForm/useForm.js.map +1 -0
- package/mobile/dist/components/ApplicationForm/validate.d.ts +1 -0
- package/mobile/dist/components/ApplicationForm/validate.js +22 -0
- package/mobile/dist/components/ApplicationForm/validate.js.map +1 -0
- package/mobile/dist/components/Bonus/Bonus.js +5 -3
- package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
- package/mobile/dist/components/Carousel/Carousel.js +4 -3
- package/mobile/dist/components/Carousel/Carousel.js.map +1 -1
- package/mobile/dist/components/Carousel/CarouselContent.d.ts +2 -0
- package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -3
- package/mobile/dist/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/dist/components/ExchangeRateOffice/Currencies.d.ts +8 -0
- package/mobile/dist/components/ExchangeRateOffice/Currencies.js +12 -0
- package/mobile/dist/components/ExchangeRateOffice/Currencies.js.map +1 -0
- package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +5 -0
- package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOffice.js +16 -0
- package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOffice.js.map +1 -0
- package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +36 -0
- package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.js +2 -0
- package/mobile/dist/components/ExchangeRateOffice/ExchangeRateOfficeContent.js.map +1 -0
- package/mobile/dist/components/ExchangeRateOffice/renderCurrencies.d.ts +3 -0
- package/mobile/dist/components/ExchangeRateOffice/renderCurrencies.js +30 -0
- package/mobile/dist/components/ExchangeRateOffice/renderCurrencies.js.map +1 -0
- package/mobile/dist/components/ExchangeRateOffice/renderTableHeader.d.ts +2 -0
- package/mobile/dist/components/ExchangeRateOffice/renderTableHeader.js +9 -0
- package/mobile/dist/components/ExchangeRateOffice/renderTableHeader.js.map +1 -0
- package/mobile/dist/components/RichTextBlock/RichTextBlock.js +2 -2
- package/mobile/dist/components/RichTextBlock/RichTextBlock.js.map +1 -1
- package/mobile/dist/ui-kit/Button/getRegularButtonClasses.js +1 -1
- package/mobile/dist/ui-kit/Button/getRegularButtonClasses.js.map +1 -1
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js +2 -2
- package/mobile/dist/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/mobile/dist/ui-kit/RichText/RichText.js +3 -2
- package/mobile/dist/ui-kit/RichText/RichText.js.map +1 -1
- package/mobile/dist/ui-kit/RichText/RichTextProps.d.ts +2 -2
- package/mobile/dist/ui-kit/Select/Select.d.ts +2 -0
- package/mobile/dist/ui-kit/Select/Select.js +5 -3
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +3 -3
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +47 -40
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +34 -28
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +53 -42
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +24 -17
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +38 -25
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/InputControl.d.ts +10 -0
- package/mobile/lib/components/ApplicationForm/InputControl.js +8 -0
- package/mobile/lib/components/ApplicationForm/InputControl.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/SelectControl.d.ts +13 -0
- package/mobile/lib/components/ApplicationForm/SelectControl.js +12 -0
- package/mobile/lib/components/ApplicationForm/SelectControl.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/models.d.ts +5 -0
- package/mobile/lib/components/ApplicationForm/normalizeSelected.d.ts +2 -0
- package/mobile/lib/components/ApplicationForm/normalizeSelected.js +2 -0
- package/mobile/lib/components/ApplicationForm/normalizeSelected.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.d.ts +11 -0
- package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +5 -0
- package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.d.ts +13 -0
- package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js +6 -0
- package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.d.ts +11 -0
- package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +5 -0
- package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.d.ts +13 -0
- package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js +5 -0
- package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderRegion.d.ts +12 -0
- package/mobile/lib/components/ApplicationForm/renderRegion.js +5 -0
- package/mobile/lib/components/ApplicationForm/renderRegion.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.d.ts +15 -0
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js +5 -0
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.d.ts +11 -0
- package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js +5 -0
- package/mobile/lib/components/ApplicationForm/renderWedDataOrganization.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/useForm.d.ts +14 -0
- package/mobile/lib/components/ApplicationForm/useForm.js +34 -0
- package/mobile/lib/components/ApplicationForm/useForm.js.map +1 -0
- package/mobile/lib/components/ApplicationForm/validate.d.ts +1 -0
- package/mobile/lib/components/ApplicationForm/validate.js +19 -0
- package/mobile/lib/components/ApplicationForm/validate.js.map +1 -0
- package/mobile/lib/components/Bonus/Bonus.js +5 -3
- package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
- package/mobile/lib/components/Carousel/Carousel.js +4 -3
- package/mobile/lib/components/Carousel/Carousel.js.map +1 -1
- package/mobile/lib/components/Carousel/CarouselContent.d.ts +2 -0
- package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.js +1 -3
- package/mobile/lib/components/CarouselRichTextCard/CarouselRichTextCard.js.map +1 -1
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/lib/components/ExchangeRateOffice/Currencies.d.ts +8 -0
- package/mobile/lib/components/ExchangeRateOffice/Currencies.js +10 -0
- package/mobile/lib/components/ExchangeRateOffice/Currencies.js.map +1 -0
- package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOffice.d.ts +5 -0
- package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOffice.js +14 -0
- package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOffice.js.map +1 -0
- package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.d.ts +36 -0
- package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.js +2 -0
- package/mobile/lib/components/ExchangeRateOffice/ExchangeRateOfficeContent.js.map +1 -0
- package/mobile/lib/components/ExchangeRateOffice/renderCurrencies.d.ts +3 -0
- package/mobile/lib/components/ExchangeRateOffice/renderCurrencies.js +27 -0
- package/mobile/lib/components/ExchangeRateOffice/renderCurrencies.js.map +1 -0
- package/mobile/lib/components/ExchangeRateOffice/renderTableHeader.d.ts +2 -0
- package/mobile/lib/components/ExchangeRateOffice/renderTableHeader.js +6 -0
- package/mobile/lib/components/ExchangeRateOffice/renderTableHeader.js.map +1 -0
- package/mobile/lib/components/RichTextBlock/RichTextBlock.js +2 -2
- package/mobile/lib/components/RichTextBlock/RichTextBlock.js.map +1 -1
- package/mobile/lib/ui-kit/Button/getRegularButtonClasses.js +1 -1
- package/mobile/lib/ui-kit/Button/getRegularButtonClasses.js.map +1 -1
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js +2 -2
- package/mobile/lib/ui-kit/Button/renderButtonsSection.js.map +1 -1
- package/mobile/lib/ui-kit/RichText/RichText.js +3 -2
- package/mobile/lib/ui-kit/RichText/RichText.js.map +1 -1
- package/mobile/lib/ui-kit/RichText/RichTextProps.d.ts +2 -2
- package/mobile/lib/ui-kit/Select/Select.d.ts +2 -0
- package/mobile/lib/ui-kit/Select/Select.js +5 -3
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/src/common.css +24 -5
- package/mobile/src/components/ApplicationForm/ApplicationForm.example.json +2 -1
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +3 -3
- package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +52 -102
- package/mobile/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +38 -109
- package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +75 -64
- package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +44 -31
- package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +43 -93
- package/mobile/src/components/ApplicationForm/InputControl.tsx +35 -0
- package/mobile/src/components/ApplicationForm/SelectControl.tsx +54 -0
- package/mobile/src/components/ApplicationForm/models.ts +6 -0
- package/mobile/src/components/ApplicationForm/normalizeSelected.ts +4 -0
- package/mobile/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +60 -0
- package/{src/components/ApplicationForm/renderSelects.tsx → mobile/src/components/ApplicationForm/renderAcquiringRegion.tsx} +22 -6
- package/mobile/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +60 -0
- package/mobile/src/components/ApplicationForm/renderCreditDataOrganization.tsx +76 -0
- package/mobile/src/components/ApplicationForm/renderRegion.tsx +36 -0
- package/{src/components/ApplicationForm/renderBankOffices.tsx → mobile/src/components/ApplicationForm/renderRegionDepartment.tsx} +16 -7
- package/mobile/src/components/ApplicationForm/renderWedDataOrganization.tsx +68 -0
- package/mobile/src/components/ApplicationForm/useForm.ts +65 -0
- package/mobile/src/components/ApplicationForm/validate.ts +22 -0
- package/mobile/src/components/Bonus/Bonus.tsx +12 -7
- package/mobile/src/components/Carousel/Carousel.example.json +2 -1
- package/mobile/src/components/Carousel/Carousel.tsx +6 -2
- package/mobile/src/components/Carousel/CarouselContent.ts +2 -0
- package/mobile/src/components/CarouselRichTextCard/CarouselRichTextCard.tsx +5 -10
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +2 -2
- package/mobile/src/components/ExchangeRateOffice/Currencies.ts +8 -0
- package/mobile/src/components/ExchangeRateOffice/ExchangeRateOffice.example.json +32 -0
- package/mobile/src/components/ExchangeRateOffice/ExchangeRateOffice.tsx +60 -0
- package/mobile/src/components/ExchangeRateOffice/ExchangeRateOffice.ui.json +1 -0
- package/mobile/src/components/ExchangeRateOffice/ExchangeRateOfficeContent.ts +36 -0
- package/mobile/src/components/ExchangeRateOffice/renderCurrencies.tsx +73 -0
- package/mobile/src/components/ExchangeRateOffice/renderTableHeader.tsx +11 -0
- package/mobile/src/components/RichTextBlock/RichTextBlock.tsx +2 -2
- package/mobile/src/ui-kit/Button/getRegularButtonClasses.ts +1 -1
- package/mobile/src/ui-kit/Button/renderButtonsSection.tsx +2 -2
- package/mobile/src/ui-kit/RichText/RichText.tsx +5 -2
- package/mobile/src/ui-kit/RichText/RichTextProps.ts +2 -2
- package/mobile/src/ui-kit/Select/Select.tsx +19 -4
- package/package.json +2 -2
- package/src/common.css +24 -5
- package/src/components/ApplicationForm/ApplicationForm.example.json +2 -1
- package/src/components/ApplicationForm/ApplicationForm.tsx +3 -3
- package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +52 -102
- package/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +38 -109
- package/src/components/ApplicationForm/ApplicationFormCredit.tsx +75 -64
- package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +44 -31
- package/src/components/ApplicationForm/ApplicationFormWed.tsx +43 -93
- package/src/components/ApplicationForm/InputControl.tsx +35 -0
- package/src/components/ApplicationForm/SelectControl.tsx +54 -0
- package/src/components/ApplicationForm/models.ts +6 -0
- package/src/components/ApplicationForm/normalizeSelected.ts +4 -0
- package/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +60 -0
- package/{mobile/src/components/ApplicationForm/renderSelects.tsx → src/components/ApplicationForm/renderAcquiringRegion.tsx} +22 -6
- package/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +60 -0
- package/src/components/ApplicationForm/renderCreditDataOrganization.tsx +76 -0
- package/src/components/ApplicationForm/renderRegion.tsx +36 -0
- package/{mobile/src/components/ApplicationForm/renderBankOffices.tsx → src/components/ApplicationForm/renderRegionDepartment.tsx} +16 -7
- package/src/components/ApplicationForm/renderWedDataOrganization.tsx +68 -0
- package/src/components/ApplicationForm/useForm.ts +65 -0
- package/src/components/ApplicationForm/validate.ts +22 -0
- package/src/components/Blocks.ts +2 -0
- package/src/components/Bonus/Bonus.tsx +12 -7
- package/src/components/Carousel/Carousel.example.json +2 -1
- package/src/components/Carousel/Carousel.fixture.tsx +2 -1
- package/src/components/Carousel/Carousel.tsx +6 -2
- package/src/components/Carousel/CarouselContent.ts +2 -0
- package/src/components/CarouselRichTextCard/CarouselRichTextCard.tsx +5 -10
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.fixture.tsx +4 -2
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +2 -2
- package/src/components/ExchangeRateOffice/Currencies.ts +8 -0
- package/src/components/ExchangeRateOffice/ExchangeRateOffice.example.json +32 -0
- package/src/components/ExchangeRateOffice/ExchangeRateOffice.fixture.tsx +78 -0
- package/src/components/ExchangeRateOffice/ExchangeRateOffice.tsx +60 -0
- package/src/components/ExchangeRateOffice/ExchangeRateOffice.ui.json +1 -0
- package/src/components/ExchangeRateOffice/ExchangeRateOfficeContent.ts +36 -0
- package/src/components/ExchangeRateOffice/renderCurrencies.tsx +73 -0
- package/src/components/ExchangeRateOffice/renderTableHeader.tsx +11 -0
- package/src/components/RichTextBlock/RichTextBlock.fixture.tsx +22 -0
- package/src/components/RichTextBlock/RichTextBlock.tsx +2 -2
- package/src/components/TariffsTable/EmbeddableCellData.tsx +1 -4
- package/src/components/VerticalLayout/VerticalLayout.fixture.tsx +14 -0
- package/src/ui-kit/Button/getRegularButtonClasses.ts +1 -1
- package/src/ui-kit/Button/renderButtonsSection.tsx +2 -2
- package/src/ui-kit/RichText/RichText.tsx +5 -2
- package/src/ui-kit/RichText/RichTextProps.ts +2 -2
- package/src/ui-kit/Select/Select.tsx +19 -4
- package/bundle/components/ApplicationForm/normalizeSelectedRegion.d.ts +0 -2
- package/bundle/components/ApplicationForm/renderDataOrganization.d.ts +0 -14
- package/bundle/components/ApplicationForm/useFormHandlers.d.ts +0 -9
- package/dist/components/ApplicationForm/WrapperSelect.js +0 -13
- package/dist/components/ApplicationForm/WrapperSelect.js.map +0 -1
- package/dist/components/ApplicationForm/normalizeSelectedRegion.d.ts +0 -2
- package/dist/components/ApplicationForm/normalizeSelectedRegion.js +0 -5
- package/dist/components/ApplicationForm/normalizeSelectedRegion.js.map +0 -1
- package/dist/components/ApplicationForm/renderBankOffices.js +0 -7
- package/dist/components/ApplicationForm/renderBankOffices.js.map +0 -1
- package/dist/components/ApplicationForm/renderDataOrganization.d.ts +0 -14
- package/dist/components/ApplicationForm/renderDataOrganization.js +0 -7
- package/dist/components/ApplicationForm/renderDataOrganization.js.map +0 -1
- package/dist/components/ApplicationForm/renderSelects.js +0 -8
- package/dist/components/ApplicationForm/renderSelects.js.map +0 -1
- package/dist/components/ApplicationForm/useFormHandlers.d.ts +0 -9
- package/dist/components/ApplicationForm/useFormHandlers.js +0 -11
- package/dist/components/ApplicationForm/useFormHandlers.js.map +0 -1
- package/lib/components/ApplicationForm/WrapperSelect.js +0 -11
- package/lib/components/ApplicationForm/WrapperSelect.js.map +0 -1
- package/lib/components/ApplicationForm/normalizeSelectedRegion.d.ts +0 -2
- package/lib/components/ApplicationForm/normalizeSelectedRegion.js +0 -2
- package/lib/components/ApplicationForm/normalizeSelectedRegion.js.map +0 -1
- package/lib/components/ApplicationForm/renderBankOffices.js +0 -4
- package/lib/components/ApplicationForm/renderBankOffices.js.map +0 -1
- package/lib/components/ApplicationForm/renderDataOrganization.d.ts +0 -14
- package/lib/components/ApplicationForm/renderDataOrganization.js +0 -4
- package/lib/components/ApplicationForm/renderDataOrganization.js.map +0 -1
- package/lib/components/ApplicationForm/renderSelects.js +0 -5
- package/lib/components/ApplicationForm/renderSelects.js.map +0 -1
- package/lib/components/ApplicationForm/useFormHandlers.d.ts +0 -9
- package/lib/components/ApplicationForm/useFormHandlers.js +0 -8
- package/lib/components/ApplicationForm/useFormHandlers.js.map +0 -1
- package/mobile/bundle/components/ApplicationForm/normalizeSelectedRegion.d.ts +0 -2
- package/mobile/bundle/components/ApplicationForm/renderDataOrganization.d.ts +0 -14
- package/mobile/bundle/components/ApplicationForm/useFormHandlers.d.ts +0 -9
- package/mobile/dist/components/ApplicationForm/WrapperSelect.d.ts +0 -11
- package/mobile/dist/components/ApplicationForm/WrapperSelect.js +0 -13
- package/mobile/dist/components/ApplicationForm/WrapperSelect.js.map +0 -1
- package/mobile/dist/components/ApplicationForm/normalizeSelectedRegion.d.ts +0 -2
- package/mobile/dist/components/ApplicationForm/normalizeSelectedRegion.js +0 -5
- package/mobile/dist/components/ApplicationForm/normalizeSelectedRegion.js.map +0 -1
- package/mobile/dist/components/ApplicationForm/renderBankOffices.d.ts +0 -13
- package/mobile/dist/components/ApplicationForm/renderBankOffices.js +0 -7
- package/mobile/dist/components/ApplicationForm/renderBankOffices.js.map +0 -1
- package/mobile/dist/components/ApplicationForm/renderDataOrganization.d.ts +0 -14
- package/mobile/dist/components/ApplicationForm/renderDataOrganization.js +0 -7
- package/mobile/dist/components/ApplicationForm/renderDataOrganization.js.map +0 -1
- package/mobile/dist/components/ApplicationForm/renderSelects.d.ts +0 -11
- package/mobile/dist/components/ApplicationForm/renderSelects.js +0 -8
- package/mobile/dist/components/ApplicationForm/renderSelects.js.map +0 -1
- package/mobile/dist/components/ApplicationForm/useFormHandlers.d.ts +0 -9
- package/mobile/dist/components/ApplicationForm/useFormHandlers.js +0 -11
- package/mobile/dist/components/ApplicationForm/useFormHandlers.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/WrapperSelect.d.ts +0 -11
- package/mobile/lib/components/ApplicationForm/WrapperSelect.js +0 -11
- package/mobile/lib/components/ApplicationForm/WrapperSelect.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/normalizeSelectedRegion.d.ts +0 -2
- package/mobile/lib/components/ApplicationForm/normalizeSelectedRegion.js +0 -2
- package/mobile/lib/components/ApplicationForm/normalizeSelectedRegion.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/renderBankOffices.d.ts +0 -13
- package/mobile/lib/components/ApplicationForm/renderBankOffices.js +0 -4
- package/mobile/lib/components/ApplicationForm/renderBankOffices.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/renderDataOrganization.d.ts +0 -14
- package/mobile/lib/components/ApplicationForm/renderDataOrganization.js +0 -4
- package/mobile/lib/components/ApplicationForm/renderDataOrganization.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/renderSelects.d.ts +0 -11
- package/mobile/lib/components/ApplicationForm/renderSelects.js +0 -5
- package/mobile/lib/components/ApplicationForm/renderSelects.js.map +0 -1
- package/mobile/lib/components/ApplicationForm/useFormHandlers.d.ts +0 -9
- package/mobile/lib/components/ApplicationForm/useFormHandlers.js +0 -8
- package/mobile/lib/components/ApplicationForm/useFormHandlers.js.map +0 -1
- package/mobile/src/components/ApplicationForm/WrapperSelect.tsx +0 -32
- package/mobile/src/components/ApplicationForm/normalizeSelectedRegion.ts +0 -4
- package/mobile/src/components/ApplicationForm/renderDataOrganization.tsx +0 -78
- package/mobile/src/components/ApplicationForm/useFormHandlers.ts +0 -18
- package/src/components/ApplicationForm/WrapperSelect.tsx +0 -32
- package/src/components/ApplicationForm/normalizeSelectedRegion.ts +0 -4
- package/src/components/ApplicationForm/renderDataOrganization.tsx +0 -78
- package/src/components/ApplicationForm/useFormHandlers.ts +0 -18
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 l=e=>(...l)=>t[e](...l),a=l("useState"),n=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:a}=await e.json();return a||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:l,name:a}=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:a},body:JSON.stringify({node_id:t,user_name:a})}),{likes:n}=await e.json();return n||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:l,name:a}=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:a},body:JSON.stringify({node_id:t,user_name:a})}),{likes:n}=await e.json();return n||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:a,...n}=t||{},r=l?.slots?.default,i=a||r&&r();return e(Object.assign(n,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 a=s(null),r=i((()=>({threshold:N(t),root:l?.current})),[t,l?.current]);return n((()=>{if(!a.current)return;const t=new IntersectionObserver(e,r);return t.observe(a.current),()=>{t.disconnect()}}),[e,r]),a}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]=a(!1);return n((()=>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:a,children:n})=>u(l,{className:`font-sans m-0 ${I[t]} ${e}`,children:a||n}))),$=x((({className:e="",inputClassName:t="",id:l,name:a,type:n="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:l,name:a||l,type:n,value:s,onChange:x,onBlur:g,...h}),c]})})),R=new Map;function B(e,t,{fallback:l}={}){const r=i((()=>M(e)),[e]),[s,o]=a(),[c,d]=a(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};n((()=>{if(!r.every((e=>null===e)))try{const e=t(...r);"then"in e?(e=>{e.then((e=>R.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 M(e){return e?Array.isArray(e)?e:e instanceof Function?M(e()):[e]:[e]}async function V(e,t){try{return e?await j(e,t):null}catch(e){console.error(e)}return null}async function j(e,t){const l=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await l.json()}function _(){const{data:e}=B("/api/v1/regions",j);return e||[]}const L=[{name:"Торговый эквайринг"},{name:"Мобильный эквайринг"},{name:"Интернет-эквайринг"},{name:"QR-эквайринг (СБП)"},{name:"Все виды эквайринга"}],P=(e="")=>({open:t=>f.fire("dialog",{type:"open",id:e,message:t}),close:()=>f.fire("dialog",{type:"close"})}),z=e=>Boolean(e?.includes(":")),D=(e,t)=>Boolean(e&&!z(e)&&(!t||"_self"===t)),O=e=>(e||"").replace(/\?.*/,"").replace(/\/$/,""),A=(...e)=>e.filter(Boolean).join("/").replace(/\/+/g,"/");var E=Object.freeze({__proto__:null,isURL:z,isLocalURL:D,isHash:e=>Boolean(e?.startsWith("#")),withoutQuery:O,joinPath:A});const F=e=>(t,l=c.BASE_PATH)=>{if(!t||z(t)||H(t,c.CDN))return t;const a=t.startsWith("/");return A(H(t,l)?"":l,a?"/":e.pathname?.split("/").slice(0,-1).join("/"),t)},H=(e,t)=>t&&e&&e.startsWith(t),U=(e,t)=>U._impl(e,t);function X(){return X._impl()}function G(e={}){const{isRemote:t,basePath:l}=e,a=X(),{close:n}=P();return e=>({...e,href:t?e.href:F(a)(e.href,l),"aria-label":e.text,onClick:U(r(e),e)});function r({href:e,target:l,onClick:r}){return i=>{r&&r(i),e&&!t&&D(e,l)&&(n(),i?.preventDefault(),a.push(e))}}}U._impl=e=>e,U.setup=e=>{U._impl=e},X._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),X.setup=e=>{X._impl=e};const W={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:"",transparent:"",gray:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active","":""},K="bg-main-divider text-main-disabled",J={primary:K,secondary:K,white:K,link:"",transparent:"",gray:K,"":""},Y="text-center font-sans select-none",q={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","":""},Z=x((e=>{const{text:t,aboveText:l,appendLeft:a,appendRight:n,version:r="primary"}=e;return p("div",{className:Q(e),children:[a?u("div",{className:q[r],children:a}):null,ee(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,n?u("div",{className:q[r],children:n}):null]})})),Q=e=>{const{version:t,aboveText:l,rounded:a}=e;if("link"===t)return"";const n="gap-2 "+(l?"py-2.5 px-7":"py-4 px-4");return["group/btn flex items-center justify-center",ee(e)?n:"h-12 w-12",a?"rounded-full":""].join(" ")},ee=({text:e,aboveText:t,appendLeft:l})=>Boolean(e||t||!l),te=({className:e,rounded:t,version:l})=>["inline-block",Y,l?J[l]:"",t?"rounded-full":"rounded-md",e].join(" "),le=({className:e,rounded:t,version:l})=>[Y,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border",l?W[l]:"",t?"rounded-full":"rounded-md",e].join(" "),ae=x((({disabled:e,children:t,...l})=>{const a=G()(l),n=t??u(Z,{...a});return u(e?re:ne,{...a,children:n})})),ne=x((({className:e="",href:t,rel:l,target:a,ariaLabel:n,version:r,rounded:i,onClick:s,children:o})=>u("a",{className:le({className:e,version:r,rounded:i}),href:t,rel:l,target:a,"aria-label":n,role:t?"link":"button",onClick:s,children:o}))),re=x((({className:e,ariaLabel:t,version:l,rounded:a,children:n})=>u("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:te({className:e,rounded:a,version:l}),children:n}))),ie=x((({children:e,...t})=>u("p",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),se=x((({children:e,...t})=>u("span",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),oe=x((({link:e})=>p(ie,{size:"text-s-light",color:"text-secondary-text",children:[u(se,{children:"Нажимая кнопку, вы подтверждаете согласие с "}),e?u(ae,{href:e.href,ariaLabel:"условия передачи данных",target:e.target,className:"text-primary-main",children:u(se,{children:e.text})}):null]}))),ce=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e;function de(e){const t=s(null);return n((()=>{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 me={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},he=x((({className:e="",imageClassName:t="",name:l="",alt:a=`Иконка ${l}`,title:n=a,iconVersion:r="color",asSVG:i,...s})=>{const o=X(),d=F(o)(A(c.CDN,"/icons",`${l}.svg`));return i&&"normal"!==r?u(pe,{className:e,children:p("svg",{className:w(ue(s.width),me[r],"white"===r?"invert":"",t),...s,"aria-hidden":"true",children:[n?u("title",{children:n}):null,a?u("desc",{children:a}):null,u("use",{href:`${d}#icon`,xlinkHref:`${d}#icon`})]})}):(e.includes("h-")||(s.style={height:`${s.height}px`}),u("img",{className:e,src:d,alt:a,title:n,"aria-hidden":"true",...s}))})),ue=e=>e?"":"w-full h-full",pe=x((({className:e,children:t})=>e?u("div",{className:e,children:t}):t)),xe=x((({className:e="",isBorder:t=!0,label:l,options:i=[],value:s,onChange:o,placeholder:c=""})=>{const[d,m]=a(i[0]||{key:"",text:""}),[h,x]=a(!1),g=de(r((()=>x(!1)),[]));return n((()=>{m(s||{key:"",text:""})}),[s]),p("div",{className:`${e}`,ref:g,children:[l?u("div",{className:"mb-2",children:u(se,{size:"text-m",color:"text-primary-text",font:"font-light",children:l})}):null,p("div",{className:"relative "+(h?"z-20":"z-10"),children:[p("div",{className:`text-l flex justify-between items-center mb-0.5 text-primary-text cursor-pointer\n ${fe(t)}`,onClick:()=>x(!h),children:[u("p",{className:"p-4 pr-8 h-14 overflow-hidden text-ellipsis whitespace-nowrap",children:d?.text||c}),u(he,{name:"ArrowUpIcon",width:"16",height:"16",className:"absolute right-3 "+(h?"":"rotate-180")})]}),i?.length?u("div",{className:`h-0 ${ge(h)}`,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(be((e=>{m(e),x(!1),o(e)}),h,(e=>Boolean(e.key===d.key))))})}):null]})]})})),ge=e=>e?"":"overflow-hidden",be=(e,t,l)=>(a,n)=>p("div",{onClick:()=>{e(a)},className:"flex px-4 py-3 cursor-pointer hover:bg-main-divider pr-11 relative",children:[u("span",{className:"min-h-6",children:a.text}),u(he,{name:"DoneSimpleIcon",width:"16",height:"16",className:["absolute right-4 pt-0.5",l(a)&&t?"":"hidden"].join(" ")})]},String(n)),fe=e=>e?"border border-gray rounded-md hover:border-primary-hover":"",ve=x((({data:e,fieldLabel:t,fieldValue:l,selected:a,placeholder:n="",setSelected:r,label:i})=>{const s=e.filter(Boolean).map((e=>({key:e?.[l||t],text:e?.[t]}))),o=s.find((e=>e.key===a));return u(xe,{options:s,label:i,placeholder:n||a,onChange:e=>r(e.key),value:o})})),Ne=({acquiringType:e,regions:t,region:l,handleChange:a})=>p("div",{className:"flex justify-between gap-5 mb-7",children:[u("div",{className:"w-1/2",children:u(ve,{data:L,fieldValue:"name",fieldLabel:"name",selected:e,setSelected:e=>a({acquiringType:e}),label:"Вид эквайринга",placeholder:"Выберите эквайринг"})}),u("div",{className:"w-1/2",children:u(ve,{data:t,fieldValue:"code",fieldLabel:"name",selected:l,setSelected:e=>a({region:e}),label:"Адрес",placeholder:"Выберите адрес"})})]}),ye=x((({value:e=!1,text:t,type:l="checkbox",onChange:a})=>p("div",{role:l,"aria-checked":e,className:"flex justify-start items-center w-full cursor-pointer mb-4",onClick:()=>a&&a(!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(se,{size:"text-m",font:"font-light",color:"text-primary-text",children:t})})]}))),we=({"onlineСheckout":e,posTerminal:t,handleChange:l})=>p("div",{className:"mb-5",children:[u(ye,{value:e,text:"Хочу купить онлайн-кассу",onChange:()=>l({"onlineСheckout":!e})}),u(ye,{value:t,text:"Хочу купить POS-терминал",onChange:()=>l({posTerminal:!t})})]}),Ce=(e,t)=>{const l=le({className:"text-white",version:e?.version});return u("button",{type:"submit",className:`p-4 ${l} ${t}`,children:e?.text?e.text:"Отправить заявку"})},ke=({setFormState:e})=>({handleChange:r((t=>e((e=>({...e,...t})))),[])}),Se=x((e=>{const{button:t,link:l,handleSubmit:r}=e,[i,s]=a({acquiringType:"",region:"",fullName:"",inn:"",name:"",phone:"","onlineСheckout":!1,posTerminal:!1}),{acquiringType:o,region:c,fullName:d,inn:m,name:h,phone:x,"onlineСheckout":g,posTerminal:b}=i,f=_(),{handleChange:v}=ke({setFormState:s}),N=ce(c,f);n((()=>{s((e=>({...e,acquiringType:L?.length&&L[0]?.name?L[0].name:""})))}),[]);return p("form",{onSubmit:async e=>{e.preventDefault();const t=`Вид эквайринга=${o}/Онлайн касса=${g}/POS-терминал=${b}`;r&&await r({typeForm:"acqr",region:f.find((e=>e.code===N))?.name||"",partnerComments:t,fullName:d,inn:m,name:h,phone:x})},className:"container",children:[u(T,{headingType:"h6",title:"Вид эквайринга и регион",className:"text-center mb-4"}),Ne({acquiringType:o,regions:f,region:N,handleChange:v}),u(T,{headingType:"h6",title:"Данные организации",className:"text-center mb-4"}),Ie({fullName:d,inn:m,name:h,phone:x,handleChange:v}),we({"onlineСheckout":g,posTerminal:b,handleChange:v}),Ce(t,"mb-4"),u(oe,{link:l})]})})),Ie=({fullName:e,inn:t,name:l,phone:a,handleChange:n})=>p("div",{className:"flex justify-between gap-5 mb-5",children:[p("div",{className:"w-1/2",children:[u($,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"Наименование организации",label:"Наименование организации",value:e,onChange:e=>n({fullName:e})}),u($,{className:"shrink-0 text-l w-full",type:"text","aria-label":"Контактное лицо",label:"Контактное лицо",value:l,onChange:e=>n({name:e})})]}),p("div",{className:"w-1/2",children:[u($,{className:"shrink-0 text-l w-full mb-5",type:"text",label:"ИНН","aria-label":"ИНН",value:t,onChange:e=>n({inn:e})}),u($,{className:"shrink-0 text-l w-full",type:"text",label:"Телефон","aria-label":"Телефон",value:a,onChange:e=>n({phone:e})})]})]}),Te=x((e=>{const{button:t,link:l,handleSubmit:n}=e,[r,i]=a({region:"",name:"",phone:"",inn:"",mail:""}),{region:s,name:o,phone:c,inn:d,mail:m}=r,h=_(),{handleChange:x}=ke({setFormState:i}),g=ce(s,h);return p("form",{onSubmit:async e=>{e.preventDefault(),n&&await n({typeForm:"bcrd",region:h.find((e=>e.code===g))?.name||"",name:o,phone:c,inn:d,mail:m})},className:"container",children:[Re({regions:h,region:g,handleChange:x}),$e({name:o,phone:c,inn:d,mail:m,handleChange:x}),Ce(t,"mb-4"),u(oe,{link:l})]})})),$e=({name:e,phone:t,mail:l,inn:a,handleChange:n})=>p("div",{className:"flex justify-between gap-5",children:[p("div",{className:"w-1/2",children:[u($,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"Контактное лицо",label:"Контактное лицо",value:e,onChange:e=>n({name:e})}),u($,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"ИНН",label:"ИНН",value:a,onChange:e=>n({inn:e})})]}),p("div",{className:"w-1/2",children:[u($,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"Телефон",label:"Телефон",value:t,onChange:e=>n({phone:e})}),u($,{className:"shrink-0 text-l w-full ",type:"text","aria-label":"Электронная почта",label:"Электронная почта",value:l,onChange:e=>n({mail:e})})]})]}),Re=({regions:e,region:t,handleChange:l})=>u("div",{className:"flex justify-between gap-5 mb-5",children:u("div",{className:"w-full",children:u(ve,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:e=>l({region:e}),label:"Регион",placeholder:"Выберите регион"})})}),Be=[];const Me=async e=>await V(e,{method:"GET"})||Be,Ve=["От 50 000 ₽","До 3 000 000 ₽"],je=["От 1 года","До 5 лет"],_e=({regions:e,region:t,branches:l,department:a,handleChange:n})=>p("div",{className:"flex justify-between gap-5 mb-7",children:[u("div",{className:"w-1/2",children:u(ve,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:e=>n({region:e}),label:"Регион",placeholder:"Выберите регион"})}),u("div",{className:"w-1/2",children:u(ve,{data:l,fieldValue:"branchCode",fieldLabel:"address",selected:a,setSelected:e=>n({department:e}),label:"Адрес",placeholder:"Выберите адрес"})})]}),Le=e=>new Intl.NumberFormat("ru-RU",{}).format(e),Pe=(e,t,l)=>Math.max(t,Math.min(e,l)),ze=e=>e.split(/\s+/).join(""),De=x((({className:e,title:t,items:l=[],min:a=1,max:n=100,step:r=1,value:i=a,disabled:s=!1,onChange:o})=>{const c=e=>{o&&o(Pe(Number(ze(e.target.value)),a,n))},d={backgroundSize:`${(100*(i-a)/(n-a)).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:Le(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:a,max:n,step:r,value:i,disabled:s,onChange:c,style:d})})]}),Oe(l)]})}));function Oe(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 Ae=e=>p("div",{className:"w-1/2",children:[u("label",{children:u(se,{size:"text-m-light",children:e.label})}),u(De,{...e})]}),Ee=({amount:e,term:t,handleChange:l})=>p("div",{className:"flex justify-between gap-5 mb-7",children:[Ae({label:"Сумма кредита, ₽",value:e,onChange:e=>l({amount:e}),min:5e4,max:3e6,items:Ve}),Ae({label:"Срок кредита, месяцев",value:t,onChange:e=>l({term:e}),min:1,max:60,items:je})]}),Fe=({fullName:e,inn:t,name:l,phone:a,mail:n,annualRevenue:r,handleChange:i})=>p("div",{className:"flex justify-between gap-5 mb-7",children:[p("div",{className:"w-1/2",children:[u($,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"Наименование организации",label:"Наименование организации",value:e,onChange:e=>i({fullName:e})}),u($,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"ИНН",label:"ИНН",value:t,onChange:e=>i({inn:e})}),u($,{className:"shrink-0 text-l w-full ",type:"text","aria-label":"Телефон",label:"Телефон",value:a,onChange:e=>i({phone:e})})]}),p("div",{className:"w-1/2",children:[u($,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"Годовая выручка, ₽",label:"Годовая выручка, ₽",value:r,onChange:e=>i({annualRevenue:e})}),u($,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"Контактное лицо",label:"Контактное лицо",value:l,onChange:e=>i({name:e})}),u($,{className:"shrink-0 text-l w-full ",type:"text","aria-label":"Электронная почта",label:"Электронная почта",value:n,onChange:e=>i({mail:e})})]})]}),He=x((e=>{const{button:t,link:l,handleSubmit:r}=e,[i,s]=a({amount:5e4,term:1,fullName:"",inn:"",name:"",phone:"",mail:"",region:"",department:"",annualRevenue:""}),{amount:o,term:c,fullName:d,inn:m,name:h,phone:x,mail:g,region:b,department:f,annualRevenue:v}=i,N=_(),{handleChange:y}=ke({setFormState:s}),w=ce(b,N),C=function(e){const{data:t}=B(e?`/api/v1/branches?regionCode=${e}`:null,Me);return t||Be}(w).filter((e=>e.address));n((()=>{y({department:""})}),[i.region,y]);return p("form",{onSubmit:async e=>{e.preventDefault();const t=`Сумма=${o}/Срок=${c}/Выручка=${v}`;r&&await r({typeForm:"cred",fullName:d,inn:m,name:h,phone:x,mail:g,region:N.find((e=>e.code===w))?.name||"",department:C.find((e=>e.branchCode===f))?.address||"",partnerComments:t})},className:"container",children:[u(T,{headingType:"h6",title:"Параметры кредита",className:"text-center mb-4"}),Ee({amount:o,term:c,handleChange:y}),u(T,{headingType:"h6",title:"Данные организации",className:"text-center mb-4"}),Fe({fullName:d,inn:m,name:h,phone:x,mail:g,annualRevenue:v,handleChange:y}),u(T,{headingType:"h6",title:"Офис Банка",className:"text-center mb-4"}),_e({regions:N,region:w,branches:C,department:f,handleChange:y}),Ce(t,"mb-4"),u(oe,{link:l})]})})),Ue=x((e=>{const{button:t,link:l,handleSubmit:n}=e,[r,i]=a({name:"",phone:""}),{name:s,phone:o}=r,{handleChange:c}=ke({setFormState:i});return p("form",{onSubmit:async e=>{e.preventDefault(),n&&await n({typeForm:"dpst",name:s,phone:o})},className:"container",children:[u(T,{headingType:"h6",title:"Оставьте заявку и мы ответим на любые вопросы по депозитам",className:"text-center mb-4"}),Xe({name:r.name,phone:r.phone,handleChange:c}),p("div",{className:"flex justify-between items-center max-w-[560px] m-auto",children:[u("div",{className:"flex-1",children:u(oe,{link:l})}),Ce(t)]})]})})),Xe=({name:e,phone:t,handleChange:l})=>p("div",{className:"max-w-[560px] m-auto",children:[u($,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"Имя",label:"Имя",value:e,onChange:e=>l({name:e})}),u($,{className:"shrink-0 text-l w-full mb-5",type:"text","aria-label":"Телефон",label:"Телефон",value:t,onChange:e=>l({phone:e})})]}),Ge=(e,t)=>e?.media&&t?.media?e.media-t.media:0,We=x((({className:e="",image:t,imageClassName:l="",isMobile:a=!1,pathPrefix:n})=>{const r=X();return p("picture",{className:`${a?"flex":"flex-none"} ${e}`,children:[t?.sources?.length?t.sources.filter((e=>e?.src)).sort(Ge).map((({src:e,format:l,media:a},i)=>u("source",{srcSet:Je(r,n)(e),type:Ye(l),media:a?`(max-width: ${a}px)`:"",...t.size},`${i}_${e}`))):null,t?.src?Ke({...t,src:Je(r,n)(t.src)},l,a):null]})})),Ke=(e,t="",l=!1)=>{const a={width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"100%"},n=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:n,style:a,...e.size})},Je=(e,t)=>l=>l&&!z(l)?F(e)(A(t,l)):l,Ye=e=>e?`image/${String(e)}`:void 0,qe=x((({className:e="",image:t,imageClassName:l="",isMobile:a,pathPrefix:n,...r})=>t?.src||t?.icon?t.icon?u(he,{className:e,imageClassName:l,iconVersion:t?.iconVersion||"normal",name:t.icon,...r}):u(We,{className:e,imageClassName:l,image:t,isMobile:a,pathPrefix:n}):null)),Ze=x((({className:e,viewBox:t,fill:l="none",width:a,height:n,paths:r,...i})=>u("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:l,width:a,height:n,children:r.map((({d:e,fill:t,...l},a)=>u("path",{d:e,fill:t||"currentColor",...i,...l},a)))}))),Qe=[{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"}],et=x((({className:e,text:t,checked:l,disabled:a,isRadio:n,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",n?"rounded-full border-2":"rounded checked:bg-primary-main disabled:bg-main-disabled border",l?"border-black":"border-gray",a?"":"group-hover/box:border-primary-hover"),type:"checkbox",onChange:e=>r&&r(e.target.checked),checked:l,disabled:a}),n?u("div",{className:"left-1 w-3 h-3 rounded-full bg-primary-main hidden absolute peer-checked:block"}):u(Ze,{paths:Qe,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]})}))),tt=({currencyControl:e,documentaryOperations:t,conversionOperations:l,text:a,handleChange:n})=>p("div",{className:"mb-6",children:[p("div",{className:"flex items-center mb-4 gap-6",children:[u(et,{text:"Валютный контроль",checked:e,onChange:e=>n({currencyControl:e})}),u(et,{text:"Документарные операции",checked:t,onChange:e=>n({documentaryOperations:e})}),u(et,{text:"Конверсионные операции",checked:l,onChange:e=>n({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:a,onChange:e=>n({text:e.target.value})})]}),lt=x((e=>{const{button:t,link:l,handleSubmit:n}=e,[r,i]=a({fullName:"",name:"",phone:"",mail:"",currencyControl:!1,documentaryOperations:!1,conversionOperations:!1,text:""}),{fullName:s,name:o,phone:c,mail:d,currencyControl:m,documentaryOperations:h,conversionOperations:x,text:g}=r,{handleChange:b}=ke({setFormState:i});return p("form",{onSubmit:async e=>{e.preventDefault();const t=`Валютный контроль=${m}/Документарные операции=${h}/Конверсионные операции=${x}/Доп инф=${g}`;n&&await n({typeForm:"kved",fullName:s,name:o,phone:c,mail:d,partnerComments:t})},className:"container",children:[u(T,{headingType:"h6",title:"Данные организации",className:"text-center mb-4"}),at({fullName:s,name:o,phone:c,mail:d,handleChange:b}),u(T,{headingType:"h6",title:"Интересующий вопрос",className:"text-center mb-4"}),tt({currencyControl:m,documentaryOperations:h,conversionOperations:x,text:g,handleChange:b}),p("div",{className:"flex items-center pb-9 mb-9 border-b border-main-divider",children:[Ce(t,"mr-5"),u(oe,{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(qe,{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(qe,{image:{icon:"MailIcon"},width:"24",height:"24",className:"mr-3"}),u("span",{children:"ved@rshb.ru"})]})]})]})})),at=({fullName:e,name:t,phone:l,mail:a,handleChange:n})=>p("div",{children:[p("div",{className:"flex justify-between gap-5 mb-5",children:[u("div",{className:"w-1/2",children:u($,{className:"shrink-0 text-l w-full",type:"text","aria-label":"Наименование организации",label:"Наименование организации",value:e,onChange:e=>n({fullName:e})})}),u("div",{className:"w-1/2",children:u($,{className:"shrink-0 text-l w-full",type:"text","aria-label":"ФИО",label:"ФИО",value:t,onChange:e=>n({name:e})})})]}),p("div",{className:"flex justify-between gap-5 mb-7",children:[u("div",{className:"w-1/2",children:u($,{className:"shrink-0 text-l w-full",type:"text","aria-label":"Телефон",label:"Телефон",value:l,onChange:e=>n({phone:e})})}),u("div",{className:"w-1/2",children:u($,{className:"shrink-0 text-l w-full",type:"text","aria-label":"Электронная почта",label:"Электронная почта",value:a,onChange:e=>n({mail:e})})})]})]}),nt=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(qe,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(se,{size:"text-l-light",color:"text-secondary-text",children:t?"Совсем скоро мы с вами свяжемся":"Пожалуйста, повторите позднее"})]})]})})),rt={credit:e=>u(He,{...e}),acquiring:e=>u(Se,{...e}),"business-card":e=>u(Te,{...e}),deposit:e=>u(Ue,{...e}),wed:e=>u(lt,{...e})},it={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}}},st=x((e=>{const{className:t="",title:l,typeForm:n="credit",button:i,link:s,...o}=e,[c,d]=a(""),m=r((async e=>{const t=await it.send(e);return d(t?"OK":"Fail"),"OK"}),[]);return u(k,{className:`font-sans bg-white p-[50px] 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,rt[n]({button:i,link:s,handleSubmit:m}),c?u(nt,{responceType:c}):null]})})})),ot=x((({className:e="",title:t,benefitList:l,...a})=>p(k,{className:`p-12 flex flex-col items-center ${e}`,...a,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(ct)}):null]}))),ct=(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(qe,{className:"w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider text-primary-main group-data-secondary:bg-white/30 group-data-secondary:text-black",image:e.icon,asSVG:!0}):null,e?.icon?.src?u(qe,{image:e.icon}):null,p("div",{className:"ml-5 h-full",children:[e?.label?u(T,{headingType:"h6",children:e.label}):null,dt(l)]})]},String(t))},dt=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?ht(e):mt(e)}):null},mt=e=>e?.name||null,ht=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},ut=(e,{className:t="",buttonClassName:l,isVertical:a}={})=>e?.length&&e.some((e=>e?.text))?u("div",{className:w("flex",a?"flex-col gap-2":"gap-4",t),children:e.map(pt(l))}):null,pt=(e="")=>(t,l)=>{const{text:a,icon:n,iconRight:r,version:i,...s}=t||{},o="secondary"===i?"color":"white";return a?u(ae,{className:e,appendLeft:xt({...n,iconVersion:o}),appendRight:xt({...r,iconVersion:o}),version:i,text:a,...s},l?String(l):""):null},xt=e=>e?.icon||e?.src?u(qe,{image:e,width:String(e?.size?.width||24),height:String(24),asSVG:!0}):null,gt={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"}},bt={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"},ft=x((({className:e,title:t,description:l,headlineVersion:a="XL",align:n="text-center",as:r,isPadding:i=!0,isTheme:s=!1,version:o="",...c})=>{const d=gt[a];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",n),...d?.title,as:r||d?.title.as,title:t}):null,l?u(ie,{color:"group-data-secondary:text-white/80",size:d.descriptionSize,align:n,children:l}):null]})})),vt=x((e=>{const{className:t="",title:l,description:a,bonusItems:n,...r}=e;return u(k,{className:`p-12 pb-9 ${t}`,...r,children:p("div",{className:"container",children:[u(ft,{className:"!p-0",title:l,description:a,headlineVersion:"M"}),u("div",{className:"flex flex-wrap w-full mt-9",children:n?.length?n.map(((e,t)=>u("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:p("div",{className:"flex justify-between w-full",children:[p("div",{className:"flex flex-col justify-between mr-4",children:[p("div",{children:[u("div",{className:"text-h4",children:e.title}),u("div",{className:"text-xl-light mt-2 max-w-[488px]",children:e.description})]}),ut(e?.buttons)]}),e.bonusItemContent?.bonusType?Nt(e.bonusItemContent):null]})},String(t)))):null})]})})})),Nt=e=>u("div",{children:"count"===e.bonusType?yt(e):wt(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]}),wt=e=>e.image?u(qe,{className:"w-12 h-12 min-w-12 p-3 rounded-full",image:e.image}):null,Ct={left:"text-left",center:"text-center",right:"text-right"},kt=x((({bonusBenefits:e,cardTextAlign:t="center",className:l="",columnsCount:a="4",subtitle:n,title:r,...i})=>p(k,{className:`font-sans text-primary-text bg-white p-12 flex flex-col text-center ${l}`,...i,children:[u(ft,{className:"!p-0 mb-8",title:r,description:n,headlineVersion:"M"}),e?.length?u("div",{className:`grid gap-1 ${Ct[t]} ${It(a)}`,children:e.map(St)}):null]}))),St=({icon:e,title:t,description:l},a)=>p("div",{className:w("flex flex-col items-center text-h6",l||t?"":"justify-center"),children:[t?u("span",{children:t}):null,e?u(qe,{image:e,height:"180",className:"w-auto"}):null,l?u("span",{children:l}):null]},String(a)),It=e=>{switch(e){case"3":return"grid-cols-3";case"4":return"grid-cols-4";default:return"grid-cols-5"}},Tt=x((e=>{const{title:t,image:l,cardItems:a,button:n}=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(qe,{className:"mb-5",image:l}):null,l?.icon?u(qe,{image:l,asSVG:!0}):null]}):null,t?u(T,{headingType:"h4",title:t,className:"mb-6"}):null,a?.length?u("ul",{children:a.map(((e,t)=>$t(e,String(t))))}):null,ut([n],{buttonClassName:"mt-6"})]})})),$t=(e,t)=>{const{icon:l,text:a}=e;return p("li",{className:"flex items-center gap-3.5 mb-3 last:mb-0",children:[l?.icon?u(qe,{image:l,className:"w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider",asSVG:!0}):null,l?.src?u(qe,{image:l}):null,u("span",{className:"text-xl-light",children:a})]},t)},Rt=x((({className:e="",title:t,cards:l,...a})=>p(k,{className:`p-12 pb-9 ${e}`,...a,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(Tt,{...e},String(t)))):null})]}))),Bt=x((({button:e,className:t,...l})=>u(k,{className:w("!bg-transparent",t),...l,children:ut([e])}))),Mt=e=>{const{itemCount:t,visibleItemCount:l}=e,[n,i]=a(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)&&n<t-(l||1),d=n>0;return[n,{inc:s,dec:o,canInc:c,canDec:d,isScrollAvailable:d||c}]};const Vt=x((({className:e,disabled:t,...l})=>u(ae,{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(qe,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border",image:{icon:"ArrowLeftIcon",iconVersion:"black"},imageClassName:"group-hover/btn:text-primary-main",width:"16",height:"16",asSVG:!0})}))),jt=x((e=>u(Vt,{...e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}))),_t=x((e=>u(Vt,{...e,className:`${e.className||""} rotate-180`,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"})));function Lt({dec:e,inc:t,canDec:l,canInc:a,btnClass:n,className:r=""}){return l||a?p("div",{children:[l?u(Vt,{className:`absolute z-40 ${n[0]} ${r}`,onClick:e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left",disabled:!l}):null,a?u(Vt,{className:`absolute z-40 rotate-180 ${n[1]} ${r}`,onClick:t,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right",disabled:!a}):null]}):null}const Pt=x((({title:e,value:t,postfix:l="",prefix:a,className:n=""})=>p("div",{className:w("mb-7",n),children:[e?u(se,{size:"text-l-light",color:"text-secondary-text",children:e}):null,u("div",t?{children:p(se,{size:"text-h3",children:[a," ",Le(Math.round(t))," ",l]})}:{children:u(se,{size:"text-h3",children:"-"})})]}))),zt=Math.round(23.5),Dt={minSum:1e4,maxSum:5e6,minMonths:13,maxMonths:60,rate:12.5,isSalaryClient:!1,isPensionClient:!1,isStateEmployee:!1,isInsurance:!0},Ot={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},At={minSum:5e4,maxSum:5e6,minMonths:2,maxMonths:10,rate:0,isMonthlyInterestPayment:!0,isRemoteRegistration:!0},Et={minSum:1e3,maxSum:5e5,minDays:1,maxDays:1095,rate:0,isMonthlyInterestPayment:!0,isReplenished:!1,isPartialWithdrawal:!1,isSmallBusiness:!1,depositeName:"Депозит 'Стабильный'"},Ft=x((({rate:e,title:t="Ставка",unit:l,depositeName:a,isShowDepositeName:n,rateBlockClassName:r})=>p("div",{children:[u(se,{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}):""]}),a&&n?u("div",{className:"absolute bottom-7 w-full text-center whitespace-nowrap",children:a}):null]})]}))),Ht=e=>e?u(ie,{size:"text-s-light",color:"text-secondary-text",children:e}):null,Ut=1e3;function Xt(e,t,l){const{moneyValue:a,minSum:n,maxSum:r,step:i=Ut,isShowItems:s=!0}=t,o=[`От ${Le(n)} ₽`,`До ${Le(r)} ₽`];return u(De,{title:e,items:s?o:[],min:n,max:r,step:i,value:Pe(a,n,r),onChange:l})}function Gt(e){const{data:t}=B(`/wcms-resources/${e}.json`,j);return t}const Wt=(e,t)=>{const{travelExpenseValue:l,restExpenseValue:a}=e,n=Gt(t||"bonus-calculator-data")||Ot,[r,i]=((e,t,l)=>{const{minSumTravel:a,minSumOther:n,maxBonus:r,prefMonthsNum:i,prefTravelBonusRate:s,prefRestBonusRate:o,travelBonusRate:c,restBonusRate:d}=e;if(t===a&&l===n)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)]})(n,l,a);return{...n,...e,monthBonus:r,yearBonus:i}},Kt=x((({className:e="",sourceBookDir:t="",buttons:l,footnote:n})=>{const[i,s]=a(6e3),o=r((e=>s(e)),[]),[c,d]=a(6e3),m=r((e=>d(e)),[]),h={travelExpenseValue:i,restExpenseValue:c},{minSumTravel:x,maxSumTravel:g,minSumOther:b,maxSumOther:f,monthBonus:v,yearBonus:N}=Wt(h,t);return p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-[468px]",children:[Xt("Сумма покупок в категории путешествия, ₽",{minSum:x,maxSum:g,moneyValue:i,step:500,isShowItems:!1},o),Xt("Сумма покупок в остальных категориях, ₽",{className:"mt-7",minSum:b,maxSum:f,moneyValue:c,step:500,isShowItems:!1},m)]}),u("div",{children:v>=0?u(Ft,{title:"Баллов за месяц",rate:v,rateBlockClassName:"tracking-[-14px]"}):null}),p("div",{className:"w-full max-w-[350px]",children:[N>=0?u(Pt,{title:"Баллов за год",value:N}):null,ut(l,{className:"mt-7",isVertical:!0}),Ht(n)]})]})}));function Jt(e,t,l){const{minDays:a,maxDays:n,daysValue:r}=t,i=e=>`${e} ${Number(e)%10==1?"дня":"дней"}`;return u(De,{className:"mt-7",title:e,items:[`От ${i(a)}`,`До ${i(n)}`],min:a,max:n,step:1,value:Pe(r,a,n),onChange:l})}const Yt={horizontal:"gap-10",vertical:"flex-col gap-3"},qt=x((({items:e,checkedItem:t,onChange:l,orientation:a="horizontal"})=>u("div",{className:`flex ${Yt[a]}`,children:e?.map((({id:e,text:a})=>u(et,{isRadio:!0,text:a,checked:t===e,onChange:()=>l&&l(e)},String(e))))}))),Zt="everyMonth",Qt="atEndTerm",el=[{id:Zt,text:"Ежемесячно"},{id:Qt,text:"В конце срока"}];function tl({isMonthlyInterestPayment:e,callback:t,title:l,orientation:a="horizontal"}){return p("div",{children:[l?u("div",{className:"mb-3",children:u(se,{color:"text-secondary-text",font:"font-light",children:l})}):null,u("div",{children:u(qt,{orientation:a,items:el,checkedItem:e?Zt:Qt,onChange:e=>t&&t(e===Zt)})})]})}const ll=x((({title:e="Ставка"})=>p("div",{children:[u(se,{size:"text-l-light",color:"text-secondary-text",children:e}),u("div",{className:"mt-1 pt-1 pl-5 pb-1.5",children:u(qe,{image:{icon:"PercentIcon"},width:"90",height:"85",asSVG:!0})}),u("div",{className:"w-[250px] mt-3.5",children:p(ie,{size:"text-xl-light",color:"text-primary-text",children:["Процентная ставка для срока ",u("strong",{children:"1-30 дней"})," устанавливается при обращении в Банк"]})})]}))),al=e=>e,nl=(e=al)=>t=>t.reduceRight(((t,l)=>e(t)>e(l)?t:l)),rl=nl(),il=e=>{const t=[...e];t.sort((([e],[t])=>e-t));let l=1;for(;l<t.length;){const[e,a]=t[l-1],[n,r]=t[l];a>=n?t.splice(l-1,2,[e,Math.max(a,r)]):l++}return t},sl=(e=al)=>nl((t=>-e(t))),ol=([e,t],l=[])=>({[e]:l.length?sl()(l.map((t=>t[e]))):0,[t]:l.length?nl()(l.map((e=>e[t]))):0}),cl=(e,[t,l],a)=>e>=a[t]&&e<=a[l],dl=(e,t)=>e?t.isReplenished&&t.isPartialWithdrawal:!t.isReplenished&&!t.isPartialWithdrawal,ml=(e,t)=>{const{isMonthlyInterestPayment:l,moneyValue:a,daysValue:n}=t;return l?Math.round(a*Math.pow((1200+e)/1200,n/30)-a):Math.round(a*e*n/365/100)},hl=x((({className:e="",sourceBookDir:t,buttons:l,footnote:n,bottomFootnote:i,isShowDepositeName:s})=>{const[o,c]=a(1e5),d=r((e=>c(e)),[]),[m,h]=a(90),x=r((e=>h(e)),[]),[g,b]=a(!1),f=r((e=>b(e)),[]),[v,N]=a(!1),y=r((e=>N(e)),[]),[w,C]=a(!1),k=r((e=>C(e)),[]),[S,I]=a(!1),T=r((e=>I(e)),[]),$=((e,t)=>{const{daysValue:l,moneyValue:a,isPartialWithdrawal:n,isReplenished:r,isSmallBusiness:i,isMonthlyInterestPayment:s}=e,o=Gt(t||"business-calculator-data"),c=r||n,d=l<90||l>730;if(l<=30)return{...Et,...e,isDisabledOperatingDeposit:d,isShowUnknownRate:!0};const m=o?.rows?.find((e=>s===e.isMonthlyInterestPayment&&i===e.isSmallBusiness&&dl(c,e)&&cl(a,["minSum","maxSum"],e)&&cl(l,["minDays","maxDays"],e)))||Et,{rate:h}=m,u=ml(h,e),p=a+u,x=o?.rows||[Et];return{...m,...ol(["minSum","maxSum"],x),...ol(["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:V,isShowUnknownRate:j}=$;return p("section",{className:e,children:[p("div",{className:"flex justify-between",children:[p("div",{className:"w-[486px]",children:[Xt("Сумма вклада, ₽",$,d),Jt("Срок вклада, дни",$,x),p("div",{className:"mt-7 flex justify-between",children:[ul({...$,handleIsReplenished:f,handleIsPartialWithdrawal:y,handleIsSmallBusiness:k}),tl({isMonthlyInterestPayment:S,callback:T,title:"Выплата процентов",orientation:"vertical"})]})]}),j?u(ll,{}):u(Ft,{rate:M,depositeName:V,isShowDepositeName:s,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-full max-w-[350px]",children:[u(Pt,{title:"Доход по вкладу",value:R,postfix:"₽",prefix:"+"}),u(Pt,{title:"Сумма в конце срока",value:B,postfix:"₽"}),ut(l,{className:"mt-7",isVertical:!0}),u("div",{className:"mt-7",children:Ht(n)})]})]}),u("div",{className:"mt-5",children:Ht(i)})]})})),ul=({isDisabledOperatingDeposit:e,isReplenished:t,isPartialWithdrawal:l,isSmallBusiness:a,handleIsReplenished:n,handleIsPartialWithdrawal:r,handleIsSmallBusiness:i})=>p("div",{children:[u(et,{text:"Пополнение",disabled:e,checked:t,onChange:n}),u(et,{className:"mt-3",disabled:e,text:"Частичное снятие",checked:l,onChange:r}),u(et,{className:"mt-3",text:"Являюсь малым предприятием",checked:a,onChange:i})]}),pl=x((({className:e,title:t,items:l=[],list:a=[],value:n=a[0],disabled:r=!1,onChange:i})=>{const s=a.length-1,o=e=>{if(!i)return;const t=parseInt(e.target.value),l=a.reduce((function(e,l){return Math.abs(l-t)<Math.abs(e-t)?l:e}));i(Number(ze(l.toString())))},c=a.findIndex((e=>e===n))||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:Le(n),disabled:r,onChange:o,onBlur:o}),a.length?u("div",{className:"absolute w-full flex justify-between -bottom-[3px] px-4",children:a.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=a.at(Pe(parseInt(e.target.value),0,s))||0;i(Number(ze(t.toString())))},style:d})})]}),gl(l)]})})),xl=(e,t)=>(l,a)=>u("span",{className:"w-2 h-2 rounded-full "+(e<=a||t?"bg-gray":"bg-primary-main")},String(a));function gl(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 bl(e,t,l){const{minMonths:a,maxMonths:n,monthsValue:r,availableMonths:i}=t,s=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`;return i?.length?u(pl,{className:"mt-7",title:e,items:[`От ${s(a)}`,`До ${s(n)}`],list:i,value:Pe(r,a,n),onChange:l}):u(De,{className:"mt-7",title:e,items:[`От ${s(a)}`,`До ${s(n)}`],min:a,max:n,step:1,value:Pe(r,a,n),onChange:l})}const fl="annuity",vl="differential",Nl=[{id:fl,text:"Аннуитетный"},{id:vl,text:"Дифференцированный"}];function yl({isAnnuity:e,callback:t,title:l,orientation:a="horizontal"}){return p("div",{children:[l?u("div",{className:"mb-3",children:u(se,{color:"text-secondary-text",font:"font-light",children:l})}):null,u(qt,{orientation:a,items:Nl,checkedItem:e?fl:vl,onChange:e=>t&&t(e===fl)})]})}const wl=(e,t,l)=>{const{moneyValue:a,monthsValue:n}=e,r=Gt(t||"credit-calculator-data"),i=!l?.isShowSalaryClient,s=!l?.isShowStateEmployee,o=!l?.isShowPensionClient,c=!l?.isShowInsurance,d=r?.rows?.find((t=>Cl({row:t,userInputParams:e,paramKey:"isSalaryClient",isExclude:i})&&Cl({row:t,userInputParams:e,paramKey:"isStateEmployee",isExclude:s})&&Cl({row:t,userInputParams:e,paramKey:"isPensionClient",isExclude:o})&&Cl({row:t,userInputParams:e,paramKey:"isInsurance",isExclude:c})&&cl(a,["minSum","maxSum"],t)&&cl(n,["minMonths","maxMonths"],t)))||Dt,{rate:m}=d,h=((e,t)=>{const{isAnnuity:l,moneyValue:a,monthsValue:n}=t;if(0===e)return 0;if(l){const t=e/1200;return a*(t+t/(Math.pow(1+t,n)-1))}return Math.round(a/n)+a*(e/1200)})(m,e),u=r?.rows||[Dt];return{...d,...ol(["minSum","maxSum"],u),...ol(["minMonths","maxMonths"],u),...e,monthlyPayment:h}},Cl=({row:e,userInputParams:t,paramKey:l,isExclude:a})=>a||t[l]===e[l],kl=x((({className:e="",sourceBookDir:t,buttons:l,footnote:n,paramsViewSettings:i})=>{const[s,o]=a(!1),[c,d]=a(!1),m=r((e=>d(e)),[]),[h,x]=a(!1),g=r((e=>x(e)),[]),[b,f]=a(!1),v=r((e=>f(e)),[]),[N,y]=a(!0),C=r((e=>y(e)),[]),[k,S]=a(2e5),I=r((e=>S(e)),[]),[T,$]=a(zt),R=r((e=>$(e)),[]),B=wl({isAnnuity:s,isInsurance:N,isSalaryClient:c,isPensionClient:b,isStateEmployee:h,moneyValue:k,monthsValue:T},t,i);return p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-[468px]",children:[Xt("Сумма кредита, ₽",{...B,step:500},I),bl("Срок кредита, месяцев",B,R),u("div",{className:"mt-7",children:Il({...B,...i,handleIsSalaryClient:m,handleIsStateEmployee:g,handleIsPensionClient:v,handleIsInsurance:C})})]}),Sl(B.rate),p("div",{className:"w-full max-w-[350px]",children:[u(Pt,{title:"Ежемесячный платеж",value:B.monthlyPayment,postfix:"₽"}),yl({isAnnuity:s,orientation:"vertical",callback:o}),ut(l,{className:"mt-7",isVertical:!0}),Ht(n)]})]})})),Sl=e=>u(Ft,{title:"Ставка",rate:e,rateBlockClassName:"tracking-[-25px]",unit:"%"}),Il=({isSalaryClient:e,isStateEmployee:t,isPensionClient:l,isInsurance:a,isShowSalaryClient:n,isShowStateEmployee:r,isShowPensionClient:i,isShowInsurance:s,handleIsSalaryClient:o,handleIsStateEmployee:c,handleIsPensionClient:d,handleIsInsurance:m})=>p("div",{children:[n?u(et,{text:"Получаю зарплату на счёт в Россельхозбанке",checked:e,onChange:o}):null,r?u(et,{className:"mt-3",text:"Работаю в бюджетной организации",checked:t,onChange:c}):null,i?u(et,{className:"mt-3",text:"Получаю пенсию на карту Россельхозбанка",checked:l,onChange:d}):null,s?u(et,{className:"mt-3",text:"Комплексная страховая защита",checked:a,onChange:m}):null]}),Tl="remote",$l="office",Rl=[{id:$l,text:"Офис Банка"},{id:Tl,text:"Дистанционно"}];function Bl({isRemoteRegistration:e,callback:t,title:l,orientation:a="horizontal"}){return p("div",{children:[l?u("div",{className:"mb-3",children:u(se,{color:"text-secondary-text",font:"font-light",children:l})}):null,u("div",{children:u(qt,{orientation:a,items:Rl,checkedItem:e?Tl:$l,onChange:e=>t&&t(e===Tl)})})]})}const Ml=(e,t,l)=>{const{moneyValue:a,monthsValue:n}=e,r=Gt(t||"deposit-calculator-data"),i=r?.rows[0]?_l(r.rows[0].minMonths,r.rows[0].maxMonths):1,s=!l?.isShowMonthlyInterestPayment,o=!l?.isShowRemoteRegistration,c=r?.rows?.find((t=>jl({row:t,userInputParams:e,paramKey:"isMonthlyInterestPayment",isExclude:s})&&jl({row:t,userInputParams:e,paramKey:"isRemoteRegistration",isExclude:o})&&cl(a,["minSum","maxSum"],t)&&cl(n||i,["minMonths","maxMonths"],t)))||At,{rate:d}=c,m=Vl(d,e),h=a+m,u=r?.rows||[At];return{...c,...ol(["minSum","maxSum"],u),...ol(["minMonths","maxMonths"],u),availableMonths:il(u.map((e=>[e.minMonths,e.maxMonths]))).flatMap((([e,t])=>((e,t,l=1)=>Array.from({length:Math.abs(t-e)/l+1},((a,n)=>t>=e?e+n*l:e-n*l)))(e,t))),...e,defaultMonth:i,income:m,finalSum:h}},Vl=(e,t)=>{const{isMonthlyInterestPayment:l,moneyValue:a,monthsValue:n}=t;return l?Math.round(a*Math.pow((1200+e)/1200,n)-a):Math.round(a*e*30*n/365/100)},jl=({row:e,userInputParams:t,paramKey:l,isExclude:a})=>a||t[l]===e[l],_l=(e,t)=>e+Math.round((t-e)/2),Ll=x((({className:e="",sourceBookDir:t,buttons:l,footnote:i,paramsViewSettings:s})=>{const[o,c]=a(2e4),d=r((e=>c(e)),[]),[m,h]=a(0),[x,g]=a(!1),b=r((e=>g(e)),[]),[f,v]=a(!1),N=r((e=>v(e)),[]),y={moneyValue:o,monthsValue:m,isMonthlyInterestPayment:x,isRemoteRegistration:f},C=r((e=>h(e)),[]),k=Ml(y,t,s),{defaultMonth:S,income:I,finalSum:T,rate:$}=k;return n((()=>{h(S)}),[S]),p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-[468px]",children:[Xt("Сумма вклада, ₽",{...k},d),bl("Срок вклада, месяцев",{...k},C),u("div",{className:"mt-7",children:Pl({...k,...s,handleIsMonthlyInterestPayment:b,handleIsRemoteRegistration:N})})]}),u(Ft,{rate:$,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-full max-w-[350px]",children:[u(Pt,{title:"Доход по вкладу",value:I,postfix:"₽",prefix:"+"}),u(Pt,{title:"Сумма в конце срока",value:T,postfix:"₽"}),ut(l,{className:"mt-7",isVertical:!0}),Ht(i)]})]})})),Pl=({isMonthlyInterestPayment:e,isRemoteRegistration:t,isShowMonthlyInterestPayment:l,isShowRemoteRegistration:a,handleIsMonthlyInterestPayment:n,handleIsRemoteRegistration:r})=>p("div",{className:"flex flex-col gap-y-7",children:[l?tl({isMonthlyInterestPayment:e,callback:n,title:"Выплата процентов"}):null,a?Bl({isRemoteRegistration:t,callback:r,title:"Оформление"}):null]}),zl={CreditCalculatorForm:kl,DepositCalculatorForm:Ll,BusinessDepositCalculatorForm:hl,BonusCalculatorForm:Kt},Dl=(e,t)=>{const l=e?.calcType;if(!l||!(l in zl))return null;const a=zl[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(a,{...e})]})},String(t))},Ol=x((({className:e="",calculatorTabs:t=[],...l})=>{const n=t.map((e=>e.nav||{})),i=t.map((({calculatorBlock:e})=>e||{})),[s,o]=a(0),c=r((e=>o(e)),[]),[d,m]=Mt({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:[n.length>1?Al({activeIndex:d,tabsNav:n,slideIndexShift:s,onClick:c}):null,Lt({...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(Dl):null})]})}));function Al({activeIndex:e,tabsNav:t,slideIndexShift:l,onClick:a}){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:a}){const n=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:a,"aria-label":e?.title,className:`box-border relative border border-gray cursor-pointer text-left border-b-0 flex hover:h-[88px]\n ${n}`,children:[u(qe,{className:`h-6 w-6 min-w-6 min-h-6 mr-4 ${s}`,image:{...e?.icon,iconVersion:o??c},width:"24",height:"24",asSVG:!0}),p("div",{className:"border-0",children:[u("div",{className:`${r}`,children:e?.title}),u("div",{className:`${i}`,children:e.description})]})]},String(t))}({tab:e,i:t,isActive:Boolean(t===l),onClick:()=>a(t)})))})}),u("div",{className:"w-full h-2 bg-primary-main"})]})}const El=e=>(e.match(/\./g)||[]).length>1?e.slice(0,e.lastIndexOf(".")):e,Fl=e=>{const t=0===e.indexOf("0")&&2===e.length?e.replace("0","0."):e;return t.startsWith(".")?t.replace(".","0."):t},Hl=e=>String(e.replace(",",".").replace(/[^.\d]/g,"")),Ul=x((({className:e="",onChange:t,minValue:l=0,maxValue:a=3e5,...n})=>{const i=r((e=>{if(!t)return;const n=El(Fl(Hl(ze(e))));const r=Xl(n,Pe(Number(n),l,a));t(String(r))}),[t]),s=r((e=>{var l;t&&t((l=e,new Intl.NumberFormat("ru-RU",{minimumFractionDigits:0,maximumFractionDigits:2}).format(Number(ze(l))).replace(",",".")))}),[t]);return u($,{className:e,inputClassName:"w-full",onChange:i,onBlur:s,...n,children:u("span",{className:"text-xl-light absolute right-4 bottom-4",children:"₽"})})})),Xl=(e,t)=>Number(e)===t?e:String(t),Gl=x((({className:e="",title:t="Укажите сумму перевода",label:l="Сумма перевода",placeholder:n="1500",button:i,...s})=>{const[o,c]=a(""),d=r((e=>c(e)),[]),m=!Number(ze(o)),h=m?te({version:i?.version}):le({className:"text-white",version:i?.version}),x=G();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(Ul,{name:"amount",value:o,onChange:d,valid:""===o||!m,placeholder:n,label:l}),i?.text?u("button",{type:"submit",className:`w-full p-4 mt-6 ${h} `,disabled:m,...x(i),children:i.text}):null]})]})})),Wl=({blockClassName:e,block:t,render:l})=>l({blockClassName:e,block:t}),Kl=[];function Jl(e,t,{className:l,...a}={}){const{key:n,blockDecorator:r=Wl,blocksRegistry:i={},ancestors:s=Kl}=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,...a},n):null}},n)}const Yl=[],ql=(e,{key:t,ancestors:l=Yl,slotName:a=null,renderProps:n=Jl,...r})=>(e||[]).map(((e,i)=>n(e,{...r,key:`${t||e.type}-${i}`,ancestors:r.parent?[...l||Yl,[r.parent,a]]:l})));function Zl({children:e,block:t,options:l,renderProps:a}){return e||(t&&l?ql(t.blocks,{...l,parent:t,renderProps:a}):null)}const Ql=e=>({height:"calc(100vh - 242px)",minHeight:`${e||866}px`}),ea=x((({className:e="",style:t,idx:l,activeIndex:a,observerOptions:n,children:i,onIntersection:s})=>{const o=v(r((e=>{e.length&&s&&s(l||0,e[e.length-1])}),[s,l]),n);return u("div",{className:`inline-block snap-always box-border ${e}`,style:t,"aria-current":Boolean(l===a),ref:o,children:i})})),ta=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]","min-w-[25%]"],la=x((({className:e="",containerRef:t,activeIndex:l,visibleItemCount:a=0,gap:n=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(na(l))}),[h,p]),f=a>0?n*Number(a)-1:0,v="vertical-list"===o,N="horizontal-list"===o,y={...N?aa(i,f):{},...v?Ql(d):{},gap:`${n}px`};return u("div",{className:w("box-border overflow-auto no-scrollbar",o,e),style:y,ref:t,children:(C=(e,t)=>u(ea,{className:w(c,a?ta[a-1]:"",v?"h-full":""),style:N?aa(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})),aa=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),na=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),ra=e=>t=>e.scrollWidth/t,ia=e=>(t,l)=>{e.scrollBy({left:l*ra(e)(t),behavior:"smooth"})},sa=({itemCount:e,isCyclic:t,onVisibleIndicesChange:l})=>{const n=s(null),[i,o]=a([]),c=r((e=>{o((t=>{return(l=t)===(a=e)||Boolean(l&&a&&l?.length===a?.length&&l.every(((e,t)=>e===a[t])))?t:e;var l,a})),l&&l(e)}),[e]),[d,m]=i.length?[sl()(i),nl()(i)]:[-1,-1],h=d>0,u=m<e-1,p=r((()=>{var l;n.current&&(t&&!h?(l=n.current).scrollTo({left:l.scrollWidth,behavior:"smooth"}):ia(n.current)(e,-1))}),[t,e,h]),x=r((()=>{n.current&&(t&&!u?n.current.scrollTo({left:0,behavior:"smooth"}):ia(n.current)(e,1))}),[e,t,u]);return[n,{scrollLeft:p,scrollRight:x,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]},oa="absolute top-[calc(50%-24px)] z-40",ca="absolute top-0 bottom-0 z-40 w-[84px] pointer-events-none",da=x((({scroll:e,arrowsPadded:t,isBlur:l,onScrollLeft:a,onScrollRight:n,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(),a()):m()}),[m,a,i,c,s,o]),f=r((()=>{i?(d&&0!==s&&h(),n()):h()}),[h,n,i,c,s,o]);return p("div",{children:[ma(l,e),x?u(jt,{className:w(oa,t?"left-8":"left-0"),onClick:b}):null,g?u(_t,{className:w(oa,t?"right-8":"right-0"),onClick:f}):null]})})),ma=(e,t)=>(t.canScrollLeft||t.canScrollRight)&&e?p("div",{children:[u("div",{className:w(ca,"left-0 bg-opacity-from-white")}),u("div",{className:w(ca,"right-0 bg-opacity-to-white")})]}):null,ha={"horizontal-list":"mx-auto mt-5 w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},ua={"horizontal-list":"w-6","vertical-list":"h-6"},pa=x((({containerRef:e,activeIndex:t,dotCount:l=0,listType:a="horizontal-list",version:n})=>l?u("div",{className:w("flex gap-2",ha[a],n?"group":""),...n?{"data-ver":n}:{},children:new Array(l).fill(null).map(((l,n)=>u("div",{className:`cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white group-data-transparent:bg-white ${n===t?ua[a]:"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"})})(n)},String(n))))}):null)),xa=x((({className:e="",itemCount:t,visibleItemCount:l,isBlur:n=!0,isCyclic:i=!1,arrowsPadded:s=!0,isPadding:o=!0,showDots:c=!1,...d})=>{const{blocks:m=[]}=d.block||{},h=t||m?.length,[x,g]=a(Math.floor((l||0)/2)),b=r((()=>g((e=>e+1))),[]),f=r((()=>g((e=>e-1))),[]),[v,N]=sa({itemCount:h,isCyclic:i}),[y]=N.visibleIndicesRange,C=m&&"CarouselBankHistoryCard"===m[0]?.type;return u(k,{className:w(ga(o),"group-data-secondary:bg-primary-main group-data-secondary:text-white",e),...d,children:p("div",{className:"relative max-w-full",children:[u(la,{containerRef:v,visibleItemCount:l,snapAlign:"snap-start",gap:4,onVisibleIndicesChange:N.handleVisibleIndicesChange,children:Zl({...d,renderProps:C?(e,t)=>Jl(e,t,{blocksLength:m?.length,activeIndex:x}):Jl})}),u(da,{scroll:N,isBlur:n,arrowsPadded:s,onScrollLeft:f,onScrollRight:b,hasEdgeBlocks:C,activeIndex:x,itemCount:h}),c?ba(v,y,t):null]})})}));xa.childrenTypes=["CarouselCard","CarouselBankHistoryCard","CarouselCatalogCard","CarouselInvestmentCard","CarouselProductCard","CarouselProgramsCard","CarouselRecommendationCard","CarouselTariffsCard","CarouselRichTextCard","CarouselInvestmentCard","CarouselEventCard"];const ga=e=>e?"p-12":"",ba=(e,t,l)=>u(pa,{containerRef:e,activeIndex:t,dotCount:l,listType:"horizontal-list"}),fa=x((({title:e,description:t,blocksLength:l=0,activeIndex:a,options:n})=>{const r=Number(n?.key?.split("-").slice(-1)[0])||0;return u(k,{className:"flex h-[485px]",children:u("div",r===a?{className:"relative flex items-center w-full",children:u(ft,{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",ya(r,l),va(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]",va(r)),children:u("span",{className:Na(r),children:e})})})})})),va=e=>{switch(e%3){case 0:default:return"bg-primary-main";case 1:return"bg-green-light";case 2:return"bg-yellow-light"}},Na=e=>{switch(e%3){case 1:case 2:return"gradient-color-text-on-yellow";default:return"gradient-color-text-on-green"}},ya=(e,t)=>0===e?"left-9":e===t-1?"right-9":"-left-[25px]",wa="absolute border border-solid border-gray w-full h-full",Ca={normal:"min-w-[970px]",small:"min-w-[355px]"},ka=x((({className:e="",button:t,description:l,title:a,carouselVersion:n="normal",version:r=""})=>u("section",{className:`flex pb-9 pl-12 border-box h-full ${Ca[n]} ${e}`,children:p("div",{className:"relative w-full",children:[u("div",{className:`${wa} z-10 top-9 right-12 bg-green-dark`}),u("div",{className:`${wa} z-10 top-6 right-8 bg-green`}),u("div",{className:`${wa} 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(ft,{className:"!p-0",title:a,description:l,headlineVersion:"L",align:"text-left",version:r}),ut([t],{className:"mt-14"})]})]})}))),Sa={black:"bg-black",white:"bg-white"},Ia=x((({className:e="",title:t,description:l,image:a,price:n,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:[a?.src?u(qe,{className:"mb-5 flex justify-center",image:a}):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(ie,{size:"text-m",align:"text-left",font:"font-light",children:l})}):null,i?.length?p("div",{className:"flex mb-4 text-s-light text-secondary-text",children:[u("div",{className:"mr-1.5",children:u(se,{children:"Доступные цвета: "})}),i.map(Ta)]}):null,n?p(se,{size:"text-h3",align:"text-left",children:[n," ₽"]}):null,ut([r],{buttonClassName:"mt-5 w-full"})]}))),Ta=(e,t)=>u("div",{role:"figure",className:`w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${Sa[e]}`},String(t)),$a=x((({className:e="",href:t,target:l,children:a})=>{const n=G()({href:t,target:l});return u(t?"a":"div",{className:w("block",e),...t?n:{},children:a})})),Ra=(e,t="primary")=>({...e,iconVersion:e?.iconVersion??("secondary"===t?"white":"color")}),Ba=x((({className:e="",icon:t,title:l,description:a,href:n,target:r,...i})=>u(k,{className:w("w-[365px]",e),...i,children:p($a,{className:"flex flex-col",href:n,target:r,children:[t?.icon?u(qe,{image:Ra(t),asSVG:!0}):null,t?.src?u(qe,{image:t}):null,l?u(T,{headingType:"h6",as:"h4",className:"text-left pt-3 mb-2",title:l}):null,a?u("div",{className:"mb-4",children:u(se,{font:"font-light",size:"text-m",color:"text-secondary-text",children:a})}):null]})}))),Ma=x((({className:e="",title:t="",buttons:l,image:a,children:n})=>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:n}),l?u("div",{className:"mt-auto pt-8",children:l}):null]}),a]})]}))),Va={1:"flex-col",2:"gap-x-10 flex-wrap"},ja=x((({additionalDescription:e,cardsList:t=[],className:l="",columnsMode:a=1,description:n,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(qe,{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(Ma,{title:o,image:c,children:[p("div",{className:"flex justify-between mb-4",children:[n?u("div",{className:"w-1/3",children:u(se,{size:"text-h6",children:n})}):null,e?u(se,{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 ${Va[a]}`,children:_a(t,a)}):null]})})})),_a=(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(se,{size:(a=t,1===a?"text-h6":"text-l"),children:e.parameter})}):null,e?.parameterDescription?u(se,{size:"text-m",font:"font-light",color:"text-secondary-text",children:e.parameterDescription}):null]},String(l));var a})),La="bg-transparent border-white border h-[70px] absolute w-[316px] top-0",Pa=x((({text:e,href:t="",target:l="",className:a=""})=>{const n=G()({href:t,target:l});return e?p("div",{className:`relative group/link cursor-pointer w-[328px] h-[82px] ${a}`,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",...n,children:[u("div",{className:"p-0.5",children:e}),u("div",{className:"w-6 h-6",children:u(qe,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border brightness-0 group-hover/link:brightness-100",image:{icon:"ArrowRightIcon",iconVersion:"black"},imageClassName:"group-hover/link:text-primary-main",width:"24",height:"24",asSVG:!0})})]}),u("div",{className:`${La} mx-1.5 mt-1.5`}),u("div",{className:`${La} mt-3 mr-3`})]}):null})),za=x((({className:e="",additionalDescription:t,description:l,links:a,title:n,...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(ft,{isPadding:!1,title:n,description:l,as:"h1",align:"text-left"}),t?u(ft,{className:"pt-6",isPadding:!1,description:l,align:"text-left"}):null]}),a?.length?Da(a):null]}))),Da=e=>{const t=Math.ceil(e.length/10);return u(xa,{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))))})},Oa={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"},Aa=x((({className:e="",isDotted:t=!0,children:l,size:a="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 ${Oa[a]}`})}):null,u("span",{children:l})]}))),Ea={S:"text-l-light",M:"text-h6",L:"text-h5"},Fa={S:"ml-2",M:"ml-3",L:"ml-4"},Ha=x((({className:e="",hasIndent:t,isDotted:l,itemClassName:a="",items:n,listItemSize:r="M"})=>n?.length?u("section",{className:`text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text ${Ea[r]} ${t?Fa[r]:""} ${e}`,role:"list",children:n.map(((e,t)=>u(Aa,{className:a,isDotted:l,size:r,children:e},String(t))))}):null)),Ua=x((({additionalDescription:e,align:t="text-center",button:l={},className:a="",description:n,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,a),version:u,...x,children:[p($a,{className:"p-6",href:i,target:m,children:[Xa(s),Ga(r,h),Wa(n,h),Ja(d,o,u),Ka(e)]}),ut([l],{className:w("p-6 pt-0",c?"":"justify-center"),isVertical:!!c})]}))),Xa=e=>p("div",{className:"flex justify-center",children:[e?.src?u(qe,{className:"mb-5",image:e}):null,e?.icon?u(qe,{className:"w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full",image:e,asSVG:!0}):null]}),Ga=(e,t)=>t?u("div",{children:u(se,{size:bt[e],children:t})}):null,Wa=(e,t)=>e?u("div",{className:t?"mt-2":"",children:u(ie,{size:"text-l",children:e})}):null,Ka=e=>e?u("div",{className:"mt-auto",children:u(se,{size:"text-m",font:"font-light",color:"text-secondary-text group-data-secondary:text-white/80",children:e})}):null,Ja=(e,t,l="primary")=>e?.length?u(Ha,{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,Ya=x((({className:e="",title:t,icon:l,list:a=[],href:n,target:r,...i})=>u(k,{className:w("border border-gray",e),...i,children:p($a,{className:"flex",href:n,target:r,children:[p("div",{className:"w-[200px] min-w-[200px] self-center",children:[l?.icon?u(qe,{image:Ra(l),asSVG:!0}):null,l?.src?u(qe,{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,a.length?u("div",{className:"flex flex-col gap-3",children:a?.map(qa)}):null]})]})}))),qa=(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)),Za=[{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"}],Qa={default:"w-14 h-14",small:"w-12 h-12"},en=(e,t)=>e?"":`group/media flex items-center justify-center box-border ${Qa[t]}`,tn=x((({buttonSize:e="default",rounded:t=!1,icon:l,...a})=>{const{href:n,version:r,text:i=""}=a,{iconMapped:s,label:o}=Za.find((({origins:e})=>e.some((e=>n?.includes(e)))))||{},c=ln(l)??s,d=c?Ra(c):void 0;return u(ae,{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",en(i,e)),"aria-label":o,rel:"noopener noreferrer",target:"_blank",text:i,version:r,...a,children:d&&!i?u(qe,{image:d,imageClassName:"group-hover/media:text-white",width:"24",height:"24",asSVG:!0}):null})})),ln=e=>e?.src||e?.icon?e:void 0,an=x((({className:e="",media:t,children:l,buttonSize:a})=>p("div",{className:"font-sans",children:[u("div",{className:`flex gap-1 ${e}`,children:t?.map(((e,t)=>u(tn,{buttonSize:a,...e},String(t))))}),u(se,{size:"text-s-light",color:"text-secondary-text",children:l})]}))),nn=x((({className:e="",description:t,href:l,icon:a,items:n=[],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($a,{href:l,target:i,children:[u(ft,{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:[n.length?u(Ha,{className:"flex flex-col gap-2",itemClassName:"text-l-light",items:n}):null,r.length?u(an,{className:"pt-10",media:r}):null]}),rn(a)]})}))),rn=e=>p("div",{className:"absolute bottom-0 right-0",children:[e?.icon?u(qe,{image:Ra(e),asSVG:!0}):null,e?.src?u(qe,{image:e}):null]}),sn=x((e=>{const{__html:t=""}=e;return u("div",{className:"md-container",dangerouslySetInnerHTML:{__html:t}})})),on=x((({className:e="",__html:t,richVersion:l="striped",...a})=>u(k,{className:w("p-9 border border-gray min-w-96",l,e),...a,children:u(sn,{__html:t})}))),cn=x((({className:e="",isFoldButtonOnTop:t=!1,unfoldedByDefault:l=!1,renderFoldableSection:n,renderFoldButton:i})=>{const[s,o]=a(l),c=r((()=>{o((e=>!e))}),[]),d=n({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]})})),dn=x((({className:e="",isUnfolded:t,children:l})=>{const a=s(null);return n((()=>{a.current&&(a.current.style.maxHeight=t?`${a.current.scrollHeight}px`:"")}),[t,l?.length]),u("div",{ref:a,className:`transition-max-h duration-300 overflow-hidden ${a.current||!t?"max-h-0":""} ${e}`,children:l})})),mn=x((({className:e="",title:t,icon:l,isHighlighting:a,button:n,cardCells:r=[],...i})=>{const s=r.map(xn),o=s.slice(0,1),c=s.slice(1);return p(k,{className:w("relative border border-gray min-w-[322px] p-8 flex flex-col",un(a),e),...i,children:[a?gn():null,hn(l),t?u(T,{className:"text-center pt-2",headingType:"h5",title:t}):null,n?u(ae,{className:"w-full mt-4",...n}):null,r.length?u(cn,{renderFoldableSection:({isUnfolded:e})=>p("div",{children:[o,u(dn,{isUnfolded:e,children:c})]}),renderFoldButton:r.length>1?pn:null}):null]})})),hn=e=>p("div",{className:"w-[267px] min-w-[267px] self-center",children:[e?.src?u(qe,{image:e}):null,e?.icon?u(qe,{image:Ra(e),asSVG:!0}):null]}),un=e=>e?"mt-9 pt-[70px]":"mt-[70px] pt-7",pn=({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(he,{className:"text-primary-text",name:e?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16",asSVG:!0})]}),xn=(e,t)=>p("div",{className:"py-5 border-b border-main-divider",children:[e?.title?u("div",{className:"text-secondary-text text-m-light opacity-80",children:e.title}):null,e?.description?u("div",{className:"text-primary-text text-h6 mt-1",children:e.description}):null]},String(t)),gn=()=>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(he,{iconVersion:"black",name:"HeartIcon",width:"23",height:"22",asSVG:!0}),u(ie,{size:"text-s",font:"font-normal",align:"text-center",color:"text-primary-text",children:"ХИТ"})]}),bn="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",fn="border-gray border-solid border",vn="border-main-divider border border-t-0 border-x-0",Nn="w-[200px] mr-6",yn=x((({icon:e,image:t,title:l,link:a})=>p("div",{className:`w-80 box-border flex flex-col items-center rounded-t-md border-b-0 px-7 pt-7 pb-[46px] ${fn} ${bn}`,role:"columnheader",children:[e&&!t?.src&&u(qe,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:Ra(e),width:"63",height:"63",asSVG:!0}),t?.src&&u(qe,{className:"mb-[18px]",image:t}),l?u(T,{headingType:"h4",as:"h3",className:"text-center text-white",title:l}):null,a?.text&&u("div",{className:"mt-auto w-full",children:u(ae,{href:a.href,target:a.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:a.text})})})]}))),wn={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},Cn=x((({children:e,activeIndex:t,columnWidth:l,version:a="comparison"})=>u("div",{className:"flex flex-1 overflow-hidden",children:u("div",{className:wn[a],style:{transform:`translateX(-${t*l}px)`},children:e})}))),kn=x((({children:e})=>u("div",{className:"self-start flex flex-col",role:"row",children:u("div",{className:"flex",children:e})}))),Sn=x((({colHeaders:e,activeIndex:t})=>p(kn,{children:[u("div",{className:Nn,role:"columnheader"}),u(Cn,{activeIndex:t,columnWidth:336,children:e.map(((e,t)=>u(yn,{...e},String(t))))})]}))),In=x((({cell:e,isFirstRow:t,isLastRow:l,isFillGradient:a})=>u("div",{className:`w-80 box-border flex flex-col ${fn} ${l?"border-t-0 rounded-b-md":"border-y-0"} ${a?bn:""}`,role:"cell",children:u("div",{className:`mx-7 h-full ${vn} ${a&&t?"border-t":""} ${l?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>Rn(e,t,a)))})}))),Tn=(e=!1)=>"text-xl m-0 "+(e?"text-white":""),$n=(e=!1)=>"text-s opacity-80 "+(e?"text-white":"text-secondary-text"),Rn=({label:e,description:t},l,a)=>p("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e?u("h4",{className:Tn(a),children:e}):null,t?u("div",{className:$n(a),children:t}):null]},String(l)),Bn=(e=!1)=>`text-s py-7 ${vn} w-[200px] mr-6 ${e?"border-b-0":"border-solid"}`,Mn=x((({row:{header:e,data:t},activeIndex:l,isColoredFirstColumn:a,isFirstRow:n,isLastRow:r})=>p(kn,{children:[e?.title?u("div",{className:Bn(r),children:e.title}):null,t?.length?u(Cn,{activeIndex:l,columnWidth:336,children:t.map(((e,t)=>u(In,{cell:e,isFirstRow:n,isLastRow:r,isFillGradient:a&&0===t},String(t))))}):null]}))),Vn=x((({rowData:e,isColoredFirstColumn:t,activeIndex:l,controls:a})=>{const{isScrollAvailable:n}=a;return p("div",{className:"relative",children:[e.map(((e,a,{length:n})=>u(Mn,{row:e,isFirstRow:0===a,isLastRow:a+1===n,activeIndex:l,isColoredFirstColumn:t},String(a)))),n?Lt({...a,btnClass:["top-[108px]","top-[44px]"],className:"right-7",isDisabled:!0}):null]})})),jn=x((({columns:e=[],rowHeaders:t,isShowAllRow:l,visibleRowLength:a,isColoredFirstColumn:n})=>{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:a),[o,c]=Mt({itemCount:e.length,visibleItemCount:3}),{isScrollAvailable:d}=c;return p("div",{children:[p("div",{role:"table",children:[r?.length?u(Sn,{colHeaders:r,activeIndex:o}):null,s?.length?u(Vn,{rowData:s,isColoredFirstColumn:n,activeIndex:o,controls:c}):null]}),d?u("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),_n=x((({className:e="",title:t,rowHeaders:l,columns:n,visibleRowLength:i=0,isColoredFirstColumn:s=!1,...o})=>{const[c,d]=a(!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(jn,{columns:n,rowHeaders:l,isShowAllRow:c,isColoredFirstColumn:s,visibleRowLength:i}),i?Ln({isShowAllRow:c,onClick:m}):null]})})),Ln=({isShowAllRow:e,onClick:t})=>u("div",{className:"pr-12",children:p("div",{className:"flex w-full",children:[u("div",{className:Nn}),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?"Скрыть":"Показать все параметры"})})]})}),Pn=x((({className:e="",contacts:t,info:l,version:a="secondary",...n})=>p(k,{className:`flex p-12 ${e}`,version:a,...n,children:[l?.length?zn(l):null,t?.length?zn(t):null]}))),zn=e=>u("div",{className:"flex grow basis-0",children:e.map(((e,t)=>Dn({column:e,index:t})))}),Dn=({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:a},n)=>p("div",{className:"mt-6 first:mt-0",children:[u(ft,{className:"!p-0",title:e,description:t,headlineVersion:"XS",align:"text-left"}),l?u("div",{className:"mt-1.5 opacity-80",children:u(ie,{size:"text-m",font:"font-light",children:l})}):null,a?u(ae,{className:"mt-6",...a}):null]},String(n))))},`col-${String(t)}`):null,On=e=>"Image"===e?.errorContentType&&e?.image?u(qe,{image:e.image}):"Code"===e?.errorContentType&&e.code?u("div",{className:"font-mohave text-title-extra gradient-color-text",children:e.code}):null,An=x((({className:e="",title:t,subtitle:l,error:a,button:n,...r})=>{return p(k,{className:w("flex flex-col justify-center items-center",(i=n?.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:On(a)}),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,n?.text?u(ae,{className:"py-4 px-9",version:n?.version,...n,children:n.text}):null]});var i}));var En;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(En||(En={}));const Fn=new Intl.NumberFormat("ru",{style:"currency",currency:En.RUB}),Hn=e=>e?Fn.format(e):"",Un="text-left text-m-light text-secondary-text",Xn=`${Un} pl-11`,Gn={USD:"DollarIcon",EUR:"EuroIcon"},Wn=x((({className:e,exchangeCurrencyItems:t})=>p("table",{className:`h-fit w-fit ${e}`,children:[u("thead",{children:p("tr",{children:[u("th",{className:Un,children:"Валюта"}),u("th",{className:Xn,children:"Купить"}),u("th",{className:Xn,children:"Продать"})]})}),u("tbody",{children:t.map(Kn)})]}))),Kn=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(qe,{image:{icon:Gn[t]},width:"24",height:"24"}):null,u("span",{className:"ml-2",children:t})]})}),u("td",{className:"pt-4 pl-11",children:Hn(e?.saleExchangeRate)}),u("td",{className:"pt-4 pl-11",children:Hn(e?.buyExchangeRate)})]},t)},Jn=x((({className:e="",address:t})=>p("div",{className:`flex ${e}`,children:[u(qe,{image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),p("div",{className:"ml-3",children:[t?u("p",{className:"text-primary-main m-0 mb-1 text-l",children:t}):null,u("p",{className:"text-secondary-text m-0 text-m",children:"Курс указан для заданного офиса"})]})]}))),Yn=(e,t,l)=>{const a=Number(qn(e))*Math.pow(t,l?-1:1);return Number.isInteger(a)?a:((e,t=2)=>{const l=10**t;return Math.round(parseFloat(String(e))*l)/l})(a)},qn=e=>e.replace(/[^\d.,]/g,"").replace(",","."),Zn=e=>{return(t=[[e=>e.value!==En.RUB&&e.oppositeValue!==En.RUB,()=>e.handleConvert(e.value,En.RUB)],[e=>e.value===En.RUB&&e.oppositeValue===En.RUB,()=>e.handleConvert(e.value,En.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,l]=t.find((([t])=>t(e)))||[];return l})(e)?.();var t};function Qn(e){const{placeholder:t,rates:l,selected:a,value:n,setValue:r,setSelected:i}=e,s=l.map((e=>({key:e?.currency?.currency??"",text:e?.currency?.currency??""}))),o={key:a,text:a};return p("div",{className:"relative flex",children:[u($,{className:"shrink-0 text-l w-full appearance-none mr-[-90px]",placeholder:t,type:"text",value:n,onChange:r}),s.length?u(xe,{isBorder:!1,onChange:e=>i(e.key),options:s,value:o}):null]})}const er=x((({className:e="",currencyRatesBuy:t,currencyRatesSell:l,button:n})=>{const[i,s]=a({inputSell:"",inputBuy:"",selectSell:t?.[0]?.currency?.currency||En.RUB,selectBuy:l?.[0]?.currency?.currency||En.USD}),o=r((e=>s((t=>({...t,...e})))),[]);return p("div",{className:`grid gap-[18px] pt-2 ${e}`,children:[Qn({placeholder:"Хочу продать",rates:l,selected:i.selectSell,setSelected:tr(i,o,l),value:i.inputSell,setValue:e=>ar(o,l)(e,i.selectSell,i.selectBuy)}),Qn({placeholder:"Получу",rates:t,selected:i.selectBuy,setSelected:lr(i,o,t),value:i.inputBuy,setValue:e=>nr(o,t)(e,i.selectBuy,i.selectSell)}),n?.text?u(ae,{className:"py-4 mr-1",version:n?.version,...n,children:n.text}):null]})})),tr=(e,t,l)=>a=>{t({selectSell:a}),Zn({value:a,oppositeValue:e.selectBuy,handleConvert:(a=e.selectSell,n=e.selectBuy)=>{ar(t,l)(e.inputSell,a,n)}})},lr=(e,t,l)=>a=>{t({selectBuy:a}),Zn({value:a,oppositeValue:e.selectSell,handleConvert:(a=e.selectBuy,n=e.selectSell)=>nr(t,l)(e.inputBuy,a,n)})},ar=(e,t)=>(l,a,n)=>{e({inputSell:qn(l),selectBuy:n});const r=t.find((e=>e.currency?.currency===n))?.buyExchangeRate||t.find((e=>e.currency?.currency===a))?.saleExchangeRate;r&&e({inputBuy:String(Yn(l,r,a===En.RUB)||"")})},nr=(e,t)=>(l,a,n)=>{e({inputBuy:qn(l),selectSell:n});const r=t.find((e=>e.currency?.currency===n))?.saleExchangeRate||t.find((e=>e.currency?.currency===a))?.buyExchangeRate;r&&e({inputSell:String(Yn(l,r,a===En.RUB)||"")})};const rr=async e=>{const t=await ir(),l=t?.code||"000";return{region:t,exchangeRates:await sr(e,l)}},ir=async()=>{try{return await j("/api/v1/region",{method:"GET"})}catch(e){return console.log(e),{}}},sr=async(e,t)=>{try{return await j(e+`?regionCode=${t}`,{method:"GET"})}catch(e){return console.log(e),{}}},or=x((({className:e="",title:t="Курсы обмена валют",button:l,...a})=>{const{exchangeRates:n}=function(){const{data:e}=B("/api/v1/exchangerates",rr);return e||{}}(),r=cr(n?.exchangeRate?.currencies),i=r.filter((e=>e.buyExchangeRate));i.unshift({currency:{currency:En.RUB}});const s=r.filter((e=>e.saleExchangeRate));return s.push({currency:{currency:En.RUB}}),u(k,{className:`p-9 box-border min-h-80 ${e}`,...a,children:u(Ma,{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(Wn,{className:"mb-[30px]",exchangeCurrencyItems:r}):null,u(Jn,{address:n?.address})]}),r.length&&i.length&&s.length?u(er,{className:"grow",currencyRatesBuy:i,currencyRatesSell:s,button:l}):null]})})})})),cr=e=>e?.filter((e=>1===e?.currency?.id||2===e?.currency?.id))||[],dr=x((({className:e="",label:t,icon:l,dataTheme:a="",disabled:n=!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",n?"bg-main-divider text-main-disabled hover:bg-main-divider":"bg-primary-main text-white hover:bg-primary-hove",e),onClick:r,disabled:n,"data-theme":a,children:[u("span",{className:"text-h4 pr-3",children:t}),l?u(qe,{image:{icon:l,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20",asSVG:!0}):null]}))),mr=({isUnfolded:e,onToggle:t})=>u(dr,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:["Развернуть","Скрыть"][Number(e)],onClick:t}),hr=["ArrowDownIcon","ArrowUpIcon"],ur="grid grid-cols-12 gap-1 border-box",pr=x((({label:e="",filtrationState:t={},topItemsCount:l=0,block:a,notFound:n,...r})=>{const i=a?.blocks?.filter((e=>{return l=t,a=e.content||{},Object.entries(l).map((([e,t])=>Array.isArray(t)?((e,t)=>l=>void 0===t[e]||t[e]?.every((t=>l[e]?.includes(t))))(e,l):((e,t)=>l=>void 0===t[e]||t[e]===l[e])(e,l))).every((e=>e(a)));var l,a}))||[],[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:n?xr(n):null}),p("div",{className:w(i.length?"":"hidden"),children:[u("div",{className:w("mb-1",ur),children:ql(s,{...r.options,parent:a})}),u(cn,{renderFoldableSection:({isUnfolded:e})=>u(dn,{className:w(ur,e?"mb-1":""),isUnfolded:e,children:ql(o,{...r.options,parent:a})}),renderFoldButton:({isUnfolded:t,onToggle:a})=>u(dr,{className:w(l<1?"hidden":""),disabled:!o?.length,label:e,icon:hr[Number(t)],dataTheme:r.options?.page?.colorPalette,onClick:a})})]})]})}));function xr({title:e,description:t}){return p("div",{className:"bg-white py-20",children:[e?u("div",{className:"mb-2",children:u(ie,{align:"text-center",children:u(se,{size:"text-h4",children:e})})}):null,t?u(ie,{size:"text-xl",font:"font-light",align:"text-center",children:t}):null]})}const gr=x((({value:e,onChange:t,items:l=[],multiple:a})=>l.map((l=>u(ye,{text:l.title,value:[e].flatMap((e=>e)).includes(l.value),onChange:()=>(l=>{if(a){const a=e?.includes(l);t&&t(a?e?.filter((e=>e!==l)):[...e||[],l])}else t&&t(e===l?void 0:l)})(l.value),type:a?"checkbox":"radio"},l.value))))),br=(e,t)=>l=>{const a=e[l],n=a?.type;return"array"===n?fr(l,t)(a):null},fr=(e,t)=>l=>{const a=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(se,{size:"text-m",font:"font-light",color:"text-secondary-text",children:l.title})}):null,u(gr,{items:a,multiple:!0,...t(e)})]},e)},vr=x((({className:e,filtrationSchema:t={},resetButton:l,...n})=>{const{formState:i,register:o,resetForm:c}=((e={})=>{const[t,l]=a(e),n=s({}),i=r((()=>l({})),[]);return{formState:t,register:e=>n.current?(n.current[e]||=t=>{l((l=>({...l,[e]:t})))},{value:t?.[e],onChange:n.current[e]}):{},resetForm:i}})();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(br(t,o))}),l?u("div",{children:u(ae,{className:"w-72",onClick:c,...l})}):null]}),u(pr,{filtrationState:i,...n})]})}));function Nr(e,t={}){const{data:l}=B(`/wcms-resources/${e}.json`,j,{fallback:t});return l||{}}vr.childrenTypes=["ProductTile"],vr.childSchema=e=>e?.filtrationSchema||{};const yr={"bg-white":"color",transparent:"white"},wr={"bg-white":"text-primary-main",transparent:"text-white"},Cr=(e,t,l)=>u(qe,t?.src?{image:t,className:wr[e],width:l?.width,height:l?.height,pathPrefix:"/wcms-resources/",asSVG:!0}:{image:{icon:t?.icon||"LogoIcon",iconVersion:yr[e]},className:wr[e],width:l?.width,height:l?.height,asSVG:!0}),kr={"bg-white":"text-primary-text",transparent:"text-white"},Sr=(e,t,l)=>u("span",{className:`${kr[t]} ml-2.5 font-medium ${l||""}`,children:e||"Россельхозбанк"}),Ir=x((({className:e="",href:t,logo:l,children:a=l?.title,targetBlank:n,bgColor:r="bg-white",showTitle:i=!0})=>p("a",{className:`inline-flex items-center font-sans no-underline ${e}`,href:t||"/",target:n?"_blank":"_self","aria-label":l?.title||"Россельхозбанк",children:[Cr(r,l?.image,{width:"40",height:"45"}),i?Sr(a||l?.title,r):null]}))),Tr=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(qe,{image:{icon:"CloseIcon"},width:"24",height:"24"})})));function $r(e){throw new Error(e)}function Rr({onOpen:e,onClose:t}={}){n((()=>f.subscribe("dialog",(l=>{switch(l.type){case"open":e&&e(l);break;case"close":t&&t();break;default:$r(l)}}))),[e,t])}function Br(e,...t){return e.map(((e,l)=>[e,...t.map((e=>e[l]))]))}const Mr=e=>t=>{if(e===t)return 1;if(!e||!t)return 0;const{m:l,s1Matches:a,s2Matches:n}=function(e,t){const l=Math.max(0,Math.floor(Math.max(e.length,t.length)/2)-1),a=new Array(e.length),n=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++)a[i]||n[l]||e[i]!==t[l]||(r++,a[i]=!0,n[l]=!0)}return{m:r,s1Matches:a,s2Matches:n}}(e,t);if(0===l)return 0;const r=function(e,t,{s1Matches:l,s2Matches:a}){let n=0;for(let r=0,i=0;r<e.length;r++){if(!l[r])continue;let s=i;for(;s<t.length;s++)if(a[s]){i=s+1;break}e[r]!==t[s]&&n++}return n}(e,t,{s1Matches:a,s2Matches:n}),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 Vr=(e,t)=>(l,a)=>{for(const[n,r]of a)l.set(n,e(l.get(n)||t,r));return l},jr=e=>e.toLowerCase().split(/[^0-9a-zа-я-]+/).filter((e=>e.length>=3&&!/[0-9a-z]/.test(e))),_r=e=>t=>e.map((([e,l])=>[Mr(t)(e),l])).filter((([e])=>e>=.8)).map((([e,t])=>Pr(t,e))).reduce(Vr(Math.max,0),new Map),Lr=e=>t=>{return Br(t,t.map((({title:e})=>e)).map((e=>t=>{const l=jr(t||"");return l.length?((e=[])=>e.reduce(((e,t)=>e+t),0))(e.map((e=>rl(l.map(Mr(e)))))):0})(e))).sort((a=([,e])=>e,l=(e,t)=>a(e)-a(t),(e,t)=>-l(e,t))).map((([e])=>e));var l,a},Pr=(e,t)=>new Map(e.map((e=>[e,t]))),zr=({basePathList:e=["/"],initialQuery:t="",wasOpened:l})=>{const[r,s]=a(t||"");n((()=>{null!=t&&s(t)}),[t]);const o=i((()=>e.map((e=>l?e:null))),[l,...e]),{data:c}=B(o,Dr),[d,m]=a(null);return((e,t,l=300)=>{n((()=>{const t=setTimeout(e,l);return()=>{clearTimeout(t)}}),t)})((()=>{c&&m(c.map((e=>t=>{const{corpus:l,dictionary:a}=t||{};if(!(e&&l?.length&&a&&Object.keys(a).length))return[];const n=jr(e);if(!n.length)return[];const r=Object.entries(a),i=[...n.map(_r(r)).reduce(Vr(((e,t)=>e+t),0),new Map).entries()].filter((([,e])=>e>=.799*n.length)).map((([e])=>l[e]));return Lr(n)(i)})(r)))}),[c,r]),[d,{value:r,onChange:s}]},Dr=async(...e)=>(await Promise.allSettled(e.map((e=>V(A(e,"/","search.index.json")))))).map((e=>"fulfilled"===e.status?e.value:{})),Or=x((({className:e,isOpened:t,head:l,children:a,onClose:r})=>(n((()=>{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(Tr,{className:"absolute top-3 -right-6",onClick:r}),l]}),a]})}):null)));function Ar(e=!1){const[t,l]=a(e),n=r((()=>l(!0)),[]),i=r((()=>l(!1)),[]),s=r((()=>l((e=>!e))),[]);return[t,{setValue:l,setTrue:n,setFalse:i,toggle:s}]}function Er(e){const[t,{setTrue:l,setFalse:n}]=Ar(),[i,o]=a({id:e}),c=s(t);c.current||=t;Rr({onOpen:r((t=>{t.id===e?(o(t),l()):n()}),[e]),onClose:n});const d=r((()=>{n(),f.fire("dialog",{type:"close"})}),[]);return{...i,isOpened:t,wasOpened:c.current,onClose:d}}const Fr=x((({className:e,topItems:t})=>{const l=G({isRemote:!0});return u("div",{className:w("flex items-start justify-between",e),children:t?.map(l).map(Hr)})})),Hr=(e,t)=>{const{text:l,items:a,href:n,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:n,target:r||"_self",onClick:i,children:l||`Раздел ${t}`}),a?.map(((e,t)=>u(Ur,{...e,basePath:n,index:t},String(t))))]},String(t))},Ur=x((({text:e,index:t,basePath:l,...a})=>{const n=G({isRemote:!(!c.BASE_PATH||!l)&&!c.BASE_PATH.startsWith(l)}),{href:r,target:i,onClick:s}=n(a);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}`})})),Xr=x((({className:e,isMobile:t,value:l,autoFocus:a,onChange:n,onFocus:i})=>{const s=r((e=>{n&&n(e.target?.value||"")}),[n]);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(qe,{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:a,onChange:s,onFocus:i})]})})),Gr="search",Wr=x((({topItems:e})=>{const t=Er(Gr),l=e?.map((e=>e.href||"/")),[a,r]=zr({basePathList:l,initialQuery:t.message,wasOpened:t.wasOpened}),s=i((()=>Kr(e)(a)),[e,a]);return n((()=>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(Or,{...t,head:u(Xr,{className:"my-5",autoFocus:!0,...r}),children:u(Fr,{topItems:s})})})),Kr=e=>t=>e?.length&&t?.length?Br(e,t).map((([e,t])=>({...e,items:t?.map((({title:e,uri:t})=>({text:e,href:A("/",t)})))}))):[];const Jr=x((({className:e,isMobile:t})=>{const[l,n]=a(""),i=r((()=>n("")),[]);Rr({onClose:i});const{open:s}=P(Gr),o=r((e=>{n(e),Yr(e)&&s(e)}),[]);return p("div",{className:e,children:[u(Xr,{isMobile:t,value:l,onChange:o}),t?u(Tr,{className:"absolute top-2 right-3",onClick:i}):null]})})),Yr=e=>e&&e.length>=3,qr=x((e=>u(Jr,{...e}))),Zr=x((({className:e="",items:t,hasButton:l})=>p("div",{className:e,children:[t?.length?t.map(Qr):null,l?u(ae,{version:"primary",className:"mb-6 w-full",href:"https://www.rshb.ru/feedback/question/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),Qr=(e,t)=>{const{type:l,text:a,description:n}=e;return p("div",{className:"mb-4",children:[u("div",{children:ei(l,a)}),u("div",{className:"mt-1 text-s-light text-secondary-text",children:n})]},String(t))},ei=(e,t="")=>{switch(e){case"tel":return u("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${ti(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})}},ti=e=>e.replaceAll(/\D/g,""),li=x((({className:e="",index:t,text:l,...a})=>{const n=G(),{href:r,target:i,onClick:s}=n(a);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}`})})),ai=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(li,{index:t,className:"text-l-light max-w-[292px]",...e},String(t))))}):null}))),ni=x((({className:e="",index:t,...l})=>{const a=G({isRemote:!0}),{href:n,target:r,text:i,onClick:s}=a(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:n,target:r,onClick:s,children:i||`Документ ${t}`})})),ri=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(ni,{index:t,...e},String(t))))}):null]}))),ii="w-[204px]",si=x((({className:e="",...t})=>{const l=t.options?.page?.fallback,a=Nr(c.SITEMAP||"sitemap",l),{documents:n,relatedEnterprises:r,contacts:i,socialMedia:s,mobileApps:o,logo:d}=Nr(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(Ir,{className:ii,logo:d}),u(qr,{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(Zr,{items:i,hasButton:!0}),u(an,{media:s,children:"Соцсети"}),u(an,{className:"mt-6",media:o,children:"Мобильное приложение"})]}),u(Fr,{className:"flex-grow",topItems:a?.topItems})]}),u(ai,{className:"mt-[98px]",links:r}),u(ri,{links:n})]})})),oi=x((({className:e="",title:t,description:l,calendar:a,...n})=>p(k,{className:`p-12 ${e}`,...n,children:[u(ft,{className:"!p-0 mb-4",title:t,description:l,headlineVersion:"M"}),a?ci(a):null]}))),ci=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=>di(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:mi(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}`)))})]})},di=(e,t)=>e.month?.map(((e,l)=>u("div",{style:{flexBasis:`${t}%`},children:e.text},`monthName-${l}`))),mi=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(qe,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),hi=864e5;function ui(e,t,l=globalThis?.localStorage){const a=r((async(...a)=>{const n=`async:${e}`,r=function(e){const{data:t=null,timestamp:l=null}=e?JSON.parse(e):{};return t&&Date.now()-l<hi?t:void 0}(l.getItem(n));if(r)return r;const i=await t(...a);return l.setItem(n,JSON.stringify({data:i,timestamp:Date.now()})),i}),[e,t]);return B(e,a)}const pi=()=>{const e=globalThis.localStorage?.getItem("location");try{return e?JSON.parse(e):null}catch(e){return null}},xi=e=>({href:t})=>O(z(t)?e.href:e.pathname).startsWith(O(t));const gi=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"})]}))),bi="location",fi=x((({currentLocation:e,onChangeLocation:t,foreignOffices:l})=>{const n=Er(bi),[i,s]=a(""),o=Ni(function(){const{data:e}=B("/api/v1/regions",j);return e||[]}()).sort(((e,t)=>e.name.localeCompare(t.name))),c=((e,t)=>{const l=new Map;for(const a of e){const e=t(a),n=l.get(e)||[];l.set(e,[...n,a])}return l})(o,vi),d=r((e=>{n.onClose&&n.onClose(),t&&t(e)}),[n.onClose,t]);return p(Or,{...n,head:p("div",{children:[u(yi,{currentLocation:e,onChangeLocation:d}),u(gi,{onSearch:s,searchTerm:i,className:"mb-7"})]}),children:[i&&i.length>=3?u("div",{children:o.filter((({name:e})=>e&&Mr(e.toLowerCase())(i.toLowerCase())>=.8)).map(Ci(d))}):u("div",{className:"columns-5",children:Array.from(c.entries()).map(wi(d))}),u(ki,{foreignOffices:l})]})})),vi=e=>e.name?.charAt(0)||"",Ni=e=>e.map((e=>({...e,name:e.name?.replace(/республика|область|край'/gi,"").trim()||""}))),yi=x((({currentLocation:e,onChangeLocation:t})=>e?p("div",{className:"mb-4",children:[u(se,{size:"text-l",font:"font-light",children:"Сейчас выбран: "}),u("button",{className:"cursor-pointer",onClick:()=>{t&&t(e)},children:u(se,{color:"text-primary-main",children:e.name})})]}):null)),wi=e=>([t,l])=>p("div",{className:"break-inside-avoid mb-7 w-[224px]",children:[u("div",{className:"mb-2.5",children:u(se,{size:"text-h6",children:t})}),l.map(Ci(e))]},t),Ci=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),ki=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(se,{size:"text-m",font:"font-light",color:"text-secondary-text",children:"Представительства за рубежом:"})}),u("div",{className:"flex gap-10",children:e.map(((e,t)=>u(Si,{...e},String(t))))})]}):null)),Si=x((({icon:e,...t})=>{const l=G(),{text:a,target:n,href:r,onClick:i}=l(t);return p("div",{className:"flex gap-x-3",children:[e?u(qe,{pathPrefix:"/wcms-resources/",image:e}):null,a?u("a",{className:"hover:text-primary-hover",href:r,target:n,onClick:i,children:a}):null]})})),Ii=x((({className:e="",active:t,flat:l,children:a,...n})=>{const r=G({isRemote:!0}),{href:i,target:s,text:o,onClick:c}=r(n);return u("a",{className:w(Ti(t,l),e),href:i,target:s,onClick:c,rel:"noopener noreferrer","aria-label":o,children:u("span",{className:$i(t,l),children:o||a})})})),Ti=(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"),$i=(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"),Ri=x((({className:e,isRounded:t,disabled:l,ariaLabel:a,image:n,onClick:r})=>u("button",{className:w("group/btn border-0 p-0 flex items-center bg-inherit",t?"w-8 h-8 text-secondary-light hover:text-secondary-hove":"w-6 h-6 text-primary-text hover:text-primary-main","group-data-transparent:text-white",e),type:"button",disabled:l,"aria-label":a,onClick:r,children:u(qe,{image:n,className:w("h-full",t?"bg-main-divider/20 rounded-full":""),imageClassName:"group-hover/btn:text-primary-hover group-hover/btn:invert-0",asSVG:!0})}))),Bi=e=>globalThis[e];function Mi(e,t){const[l,i]=a(),s=r((()=>i(Bi(e))),[e]);return n((()=>{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(!Bi(e))return l.addEventListener("load",s),()=>{l.removeEventListener("load",s)};s()}),[e,t]),l}const Vi={personal:"//chat.mes.rshb.ru/assets/js/webchat_rshb",business:""},ji=x((e=>{const[t,{setTrue:l}]=Ar();return t?u(_i,{...e}):Li({...e,onClick:l})})),_i=x((({chat:e="personal",...t})=>((e=>{n((()=>globalThis.localStorage?.setItem("webchat-keep-open",String(Date.now()))),[]),Mi("chatbot",Vi[e])})(e),Li(t)))),Li=({className:e,iconVersion:t,onClick:l})=>u(Ri,{className:w("text-page__btn-chat",e),image:{icon:"HeadphonesIcon",iconVersion:t},ariaLabel:"Чат",onClick:l}),Pi=x((({className:e,version:t,locationName:l,officesLink:a})=>{const n="transparent"===t?"white":"black",{open:i}=P(bi),s=r((()=>i()),[]),{open:o}=P(Gr),d=r((()=>o()),[]);return p("div",{className:w("flex items-center gap-5",e),children:[u(Ii,{flat:!0,href:"#",text:l,onClick:s}),a?u(Ii,{flat:!0,href:a,text:"Офисы и банкоматы"}):null,u(Ri,{image:{icon:"LoupeIcon",iconVersion:n},ariaLabel:"Поиск",onClick:d}),c.CHAT_BOT?u(ji,{iconVersion:n,chat:c.CHAT_BOT}):null]})})),zi=x((({className:e="",items:t,activeItem:l})=>{const n=G(),[i,s]=a(!1),o=r((()=>s((e=>!e))),[]),c=de(r((()=>s(!1)),[]));return p("div",{className:w(i?"bg-white rounded-md shadow-blue-gray":"",e),ref:c,children:[u("button",{className:"group/btn flex justify-between items-center h-6 ml-6","aria-label":""+(i?"Скрыть другие разделы":"Показать другие разделы"),onClick:o,children:Array(3).fill(null).map(((e,t)=>u("div",{className:"w-[3px] h-[3px] rounded mr-1 bg-primary-text group-hover/btn:bg-primary-hover group-data-transparent:bg-white"},String(t))))}),u("div",{className:w("flex flex-col rounded-md bg-white p-6 pb-2",i?"":"hidden"),"aria-hidden":!i,children:t?.map(((e,t)=>{const{text:a,...r}=e;return u("a",{className:w("text-l-light pb-4 hover:text-primary-main",e===l?"text-primary-main":""),...n(r),children:a},e.href||String(t))}))})]})})),Di=x((({className:e="",active:t,dataItemName:l,children:a,...n})=>{const r=G(),{href:i,target:s,text:o,onClick:c}=r(n);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:Oi(t),children:o||a}),t?u("div",{className:"absolute left-0 right-0 -bottom-3 h-0.5 bg-primary-main group-data-transparent:bg-transparent"}):null]})})),Oi=(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"),Ai=x((({observerOptions:e,onVisibilityChange:t,children:l,...a})=>{const n=v(r((e=>{if(!e.length||!t)return;const l=e[e.length-1];t(l.isIntersecting)}),[t]),e);return u("span",{ref:n,children:u(Di,{...a,children:l})})})),Ei=x((({subItems:e=[]})=>{const t=(e=>(t=[])=>{const l=t?.filter(xi(e));return l?.length?nl((e=>e.href?.length||0))(l):void 0})(X())(e),[l,n]=a(e.length),r=e.slice(l),o=s(null),c={rootRef:o},d=i((()=>e.map(((e,t)=>e=>{n(e?Fi(t):Hi(t))}))),[e]);return p("nav",{className:"relative mt-6",children:[u("div",{ref:o,className:"overflow-hidden whitespace-nowrap mr-52 pb-3",children:e.map(((e,a)=>u(Ai,{className:w("mr-8",l-1<a?"invisible":""),active:e===t,observerOptions:c,onVisibilityChange:d[a],...e},String(a))))}),r.length?u(zi,{className:"absolute w-52 -top-4 right-0 pt-4 z-40",items:r,activeItem:t}):null]})})),Fi=e=>t=>Math.max(t,e+1),Hi=e=>t=>Math.min(t,e),Ui={"bg-white":"primary",transparent:"transparent"},Xi=x((({bgColor:e="bg-white",className:t,showSubMenu:l=!0,version:i=Ui[e],...s})=>{const o=X(),{topItems:d,logo:m,defaultLocation:h,foreignOffices:x,officesLink:g}=Nr(c.SITEMAP||"sitemap",s.options?.page?.fallback),b=d?.find((e=>xi(c.BASE_PATH?{pathname:c.BASE_PATH}:e))(o)),[f,v]=function(e="Москва"){const t=pi(),[l,i]=a(t?.region??{name:e}),{data:s}=ui("/api/v1/region",j);return n((()=>{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&&b?.items?.length?"pb-4":"pb-5",t),version:i,...s,children:[p("div",{className:"container",children:[p("div",{className:"flex items-center",children:[u(Ir,{className:"mr-8",bgColor:e,logo:m}),d?.map(((e,t)=>u(Ii,{active:e===b,...e},String(t)))),u(Pi,{version:i,className:"ml-auto",locationName:f.name,officesLink:g})]}),u("div",{className:w("mt-6 h-px bg-main-divider","transparent"===i?"opacity-30":"")}),l&&b?.items?.length?u(Ei,{subItems:b.items}):null]}),u(Wr,{topItems:d}),u(fi,{currentLocation:f,foreignOffices:x,onChangeLocation:v})]})})),Gi={XXL:"gap-12",XL:"gap-10",L:"gap-8",M:"gap-4",S:"gap-2",XS:"gap-1","":""},Wi=x((({className:e="",gap:t="XS",isPadding:l=!1,version:a="transparent",isTheme:n=!1,...r})=>u(k,{className:w("grid grid-cols-12",l?"p-12":"",Gi[t],e),version:a,isTheme:n,...r,children:Zl(r)})));Wi.childrenTypes={exclude:["HorizontalLayout"]};const Ki=x((e=>{const{className:t,image:l,...a}=e;return u(k,{className:t,...a,children:u(qe,{image:l})})})),Ji=x((({className:e="",cards:t=[],button:l})=>{const[n,i]=a(0),s=r((e=>i(e)),[]),o=t.length,[c,d]=Mt({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?Yi({activeIndex:c,cards:t,selectedCardIndex:n,onClick:s}):null,Lt({...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(ae,{className:"w-60 text-center",version:"primary",...l,href:x})]})}));function Yi({activeIndex:e,cards:t,selectedCardIndex:l,onClick:a}){const n=460*e,r=t.length>2?"justify-start":"justify-center";return u("div",{style:{transform:`translateX(-${n}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:a}){return p("button",{type:"button",onClick:a,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(qe,{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?qi("страховая сумма",e.sum):null,e?.fee?qi("страховой взнос",e.fee):null]}),Zi(l)]},String(t))}({slide:e,i:t,isActive:Boolean(t===l),onClick:()=>a(t)})))})})}function qi(e,t){return p("div",{className:"flex flex-col text-left whitespace-pre",children:[p("span",{className:"text-h6",children:[Le(t)," ₽"]}),u("span",{className:"text-secondary-text text-l mt-1",children:e})]})}function Zi(e){return e?u(qe,{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 Qi=x((({className:e="",title:t,insuranceTabs:l=[],button:n,...i})=>{const[s,o]=a(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:a}){return u("button",{type:"button",onClick:a,"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:es({insuranceTabs:l,button:n})})]})})),es=({insuranceTabs:e,button:t})=>{const l=e?.map((e=>e.cards));return l?.length?l.map(((e,l)=>u(Ji,{button:t,cards:e},String(l)))):null};function ts(e){return t=>t.reduce(((t,l,a)=>t.length?t.concat({...e,key:a},l):[l]),[])}const ls={yellow:"bg-yellow",green:"bg-green","green-light":"bg-green-light","green-dark":"bg-green-dark"},as={XS:"h-[40px]",S:"h-[68px]",M:"h-[102px]",L:"h-[136px]",XL:"h-[204px]"},ns=x((e=>{const{className:t="",items:l,isDotted:a,investmentZeroColumn:n,investmentColumns:r,...i}=e,s=r?[...r]:[];return n&&s.unshift(n),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:[ts(u("div",{className:"w-px h-4 bg-gray"}))(s.map(rs)),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(os)})]}):null,l?.length?u(Ha,{className:"mt-9 text-l-light max-w-[657px]",items:l,itemClassName:"mb-[7px]",isDotted:a}):null]})})})),rs=(e,t,l)=>{const a=1===t,n=t===l.length-1;return u("div",{className:`${is(a,n,e.cells)}`,children:e.cells?.length?u("div",{className:"w-full "+(n?"border-4 border-green-more-dark p-1.5 min-w-[290px]":""),children:e.cells.reverse().map(ss)}):null},`column_${t}`)},is=(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(" "),ss=(e,t)=>{const l=e.cellSize||"XS",a=e.cellColor||"green";return e.text?u("div",{className:`flex-1 flex items-center justify-center relative py-2 ${as[l]} ${ls[a]} ${"XS"===l?"px-3":"px-11"}`,children:u("div",{className:"text-center",children:e.text})},`cell_${t}`):null},os=(e,t,l)=>{const a=0===t,n=t===l.length-1;return u("div",{className:`flex-1 max-w-[180px] text-center px-2 ${a?"pl-9":""} ${n?"mr-3.5":" "}`,children:e.title},`title_${t}`)},cs=x((({className:e,iconClassName:t,textClassName:l,suffixClassName:a,doc:n,icon:r})=>{const{text:i,fileSize:s,...o}=n;return p("a",{className:e,role:"link",...o,children:[r?u(qe,{className:t,image:Ra(r),width:"24",height:"24",asSVG:!0}):null,i?p("span",{className:l,children:[i,u("span",{className:a,children:o?.href&&ds(ms(o.href),s)})]}):null]})})),ds=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),ms=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},hs=x((({className:e="",doc:t,icon:l})=>u(cs,{className:`flex h-full box-border ${e}`,iconClassName:"mr-2.5 min-w-6 min-h-6",textClassName:"self-center text-l-light",suffixClassName:"text-secondary-text group-hover/item:text-primary-main",doc:t,icon:l}))),us=x((({className:e,documents:t,columnsMode:l="double",icon:a})=>t?.length?u("div",{className:e,role:"list",children:t.map(((e,t)=>u("div",{className:"double"===l?"basis-[calc(50%-20px)]":"",role:"listitem",children:u(hs,{className:"group/item flex align-middle h-fit w-fit text-primary-text no-underline hover:text-primary-main",doc:e,icon:a})},String(t))))}):null)),ps={double:"flex gap-x-5 gap-y-[26px] flex-wrap",single:"flex gap-3.5 flex-col"},xs=x((({className:e="",title:t,description:l,align:a="text-center",documents:n,icon:r={icon:"DocIcon"},columnsMode:i="double",...s})=>p(k,{className:w("p-12",e),...s,children:[u(ft,{className:"!p-0",title:t,description:l,align:a,headlineVersion:"M",as:"h2"}),u(us,{className:`mt-8 ${ps[i]}`,columnsMode:i,documents:n,icon:r})]}))),gs=e=>{const t="col-span-",l=e?.split(/\s+/).find((e=>e.startsWith(t)));return l?parseInt(l.substring(t.length),10):12};function bs(e=""){const t=gs(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}const fs=x((({className:e="",title:t="Мобильное приложение",qr:l,buttons:a,version:n="primary",items:r,image:i,headingType:s="h4",alignTitle:o="left",description:c,...d})=>{const m="secondary"===n?"p-3.5 min-w-[120px]":"min-w-[92px]";return p(k,{className:`flex justify-between p-12 box-border relative min-h-80 ${bs(e)} ${e}`,version:n,...d,children:[p(Ma,{className:"z-10",title:t?u(T,{headingType:s,as:"h3",title:t,className:`whitespace-pre-wrap mb-7 w-full ${Ct[o]}`}):null,buttons:ut(a,{className:"mt-8",buttonClassName:"min-w-[168px]"}),children:[Ns(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(qe,{className:"w-fit",image:l})}):null,vs(r)]})]}),i?.src?u("div",{className:"absolute right-0 bottom-0",children:u(qe,{image:i})}):null]})})),vs=e=>e?.length?u(Ha,{items:e,itemClassName:"text-l-light mb-2 last:mb-0"}):u("span",{className:"text-m-light text-secondary-text",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),Ns=e=>e?u("p",{className:"text-xl-light mb-5 pt-0.5",children:e}):null,ys=[{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 ws(e,t,l){t.geoObjects.removeAll();const a=e.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>'),n=new e.Clusterer({clusterIcons:[{href:"icons/MapMarkerClusterIcon.svg",size:[78,84],offset:[-35,-50]}],clusterIconContentLayout:a,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]})));n.add(r),t.geoObjects.add(n),t.setBounds(e.util.bounds.fromPoints(l)).then((()=>{t.getZoom()>10&&t.setZoom(10)}))}const Cs={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"},ks=e=>u("a",{className:`select-none cursor-pointer px-9 h-12 bg-primary-main text-white ${Object.values(Cs).join(" ")}`,href:`https://yandex.ru/maps/?ll=${[e[1],e[0]]}&z=10&l=map`,target:"_blank",children:"Открыть на карте"}),Ss={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)]"},Is=(e,t,l)=>p("div",{className:`${Object.values(Ss).join(" ")} bg-white py-3 pl-11 pr-4 w-full`,children:[u(he,{name:"LoupeIcon",iconVersion:"black",width:"20",height:"20",asSVG:!0,className:"absolute left-4"}),u("input",{type:"text",placeholder:"Введите адрес или метро",onChange:t=>{const a=t.target?.value?t.target?.value.toLowerCase():"";if(a){const t=e.filter((e=>e.text.toLowerCase().indexOf(a)>-1?e:null));l(t)}else l(null)},className:"border-0 focus:border-0 outline-0 w-full"})]}),Ts={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"},$s=(e,t,l)=>u("div",{className:`select-none cursor-pointer py-4 w-12 bg-white ${Object.values(Ts).join(" ")} ${l}`,onClick:()=>{t.geolocation.get({provider:"yandex",autoReverseGeocode:!0,mapStateAutoApply:!0}).then((function(t){e.geoObjects.add(t.geoObjects)}))},children:u(he,{name:"UserGeoLocationIcon",width:"20",height:"16"})}),Rs={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"},Bs=x((({yandexMaps:e,direction:t="in"})=>{const l="in"===t?"PlusIcon":"MinusIcon";return u("div",{onClick:()=>{const l=e.current.getZoom(),a="in"===t?l+1:l-1;e.current.setZoom(a,{checkZoomRange:!0})},className:`${Object.values(Rs).join(" ")} bg-white select-none cursor-pointer w-12 h-12`,children:u(he,{name:l,width:"20",height:"16"})})})),Ms={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"},Vs=x((({points:e,className:t="",zoom:l=5,showSearchField:r=!1})=>{const i=s(null),o=Mi("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${c.YANDEX_MAP_API_KEY||""}&lang=ru_RU`),[d,m]=a(),[h,x]=a(Ps(ys)),g=js(e);if(n((()=>{i?.current||o?.ready((()=>{i.current=new o.Map("map",{center:g,zoom:l,controls:[],suppressMapOpenBlock:!0}),ws(o,i.current,h)}))}),[o,i,h]),n((()=>{if(i.current&&h&&o){const e=h.length<1?Ps(ys):h;ws(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?Is(ys,0,(e=>{if(e){const t=Ps(e);x(t)}})):ks(g)}),u("div",{className:`${Object.values(Ms).join(" ")} ${b} right-2 top-4 bg-white`,onClick:()=>{const e=i.current.container;d?e.exitFullscreen():e.enterFullscreen(),m(e.isFullscreen())},children:u(he,{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(Bs,{yandexMaps:i}),u(Bs,{yandexMaps:i,direction:"out"})]}),$s(i.current,o,`right-2 top-80 ${b}`)]})})),js=e=>[Ls(_s(e,0)),Ls(_s(e,1))],_s=(e,t)=>e.map((e=>e[t])),Ls=e=>e.reduce(((e,t)=>e+t))/e.length,Ps=e=>e?e.map((e=>e.coords)):null,zs=[{title:"Деловой центр",time:"1 мин",distance:"~30 м.",icon:"MetroIcon"},{title:"Выставочная",time:"5 мин",distance:"~120 м.",icon:"MetroIcon"},{title:"Деловой центр",time:"8 мин",distance:"~350 м.",icon:"MetroIcon"}],Ds=({lunchHour:e,status:t,workTime:l})=>{const a=/\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?a: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:"Выходной"})})},Os=({icon:e,title:t,distance:l,time:a},n)=>p("div",{className:"flex mr-4",children:[u(he,{name:e,width:"16",height:"16",asSVG:!0,className:"mr-1"}),t?p("span",{className:"text-m",children:[t," "]}):null,p("span",{className:"text-m-light",children:[l?` (${l})`:null,a?`, ${a}`:null]})]},`nearbyOffice${n}`),As=({title:e,status:t,workTime:l,lunchHour:a,description:n},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&&a?Es(a):null,n?u("div",{className:"pb-1 text-s-light text-secondary-text",children:n}):null]},`day${r}`),Es=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})}),Fs={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 Hs(e){return e?V(e,{method:"GET"}):{}}const Us=x((({className:e=""})=>{const t=function(e){const{data:t}=B(e?`/api/v1/branches?regionCode=${e}`:void 0,Hs);return console.warn("Hook useOfficeMap RETURNs MOCK object for testing",t),Fs}("000"),{name:l,address:a,gpsLatitude:n,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=n&&r?[n,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}),Ds(C)]}),p("div",{className:"flex text-l-light pt-4",children:[u(he,{name:"GeolocationIcon",width:"24",height:"24",asSVG:!0,className:"pr-1"}),a]}),u("div",{className:"flex pt-4",children:zs.map(Os)})]}),p("div",{className:"flex justify-between pt-8",children:[u("div",{className:"flex-grow h-full w-full overflow-hidden",children:N?u(Vs,{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(As)})]})]})})),Xs=x((({className:e="",title:t,servicesList:l,...a})=>p(k,{className:`p-8 flex flex-col ${e}`,...a,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(Gs)}):null]}))),Gs=(e,t)=>p("li",{className:"flex mb-5 last:mb-0 list-none",children:[e.icon?u(qe,{className:"mr-3 min-w-6 min-h-6 w-6 h-6",width:"24",height:"24",asSVG:!0,image:Ra(e.icon)}):null,e.label?u("span",{className:"text-l-light",children:e.label}):null]},`list_item_${String(t)}`),Ws=x((({text:e,size:t,align:l,font:a,children:n,...r})=>u(k,{...r,children:u(ie,{size:t,align:l,font:a,children:e||n})}))),Ks=x((e=>{const{className:t="",icon:l,label:a,description:n,version:r="primary",benefitsVersion:i="normal"}=e,s="white"===i?"secondary":"primary";return p("div",{className:`flex gap-5 ${n?"items-start":"items-center"} ${t}`,children:[l?u("div",{className:Js(r,i),children:u(qe,{className:"w-6 h-6",image:Ra(l,s),asSVG:!0})}):null,p("div",{className:"gap-0.5",children:[a?u("div",{className:"text-h6 text-primary-text group-data-secondary:text-white",children:a}):null,n?u("div",{className:"text-m-light text-secondary-text group-data-secondary:text-white",children:n}):null]})]})}));function Js(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 Ys=e=>(t,l)=>{const{type:a}=t;if("default"!==a&&"rte"!==a)return null;switch(a){case"default":return u(Ks,{icon:t.icon,label:t.label,description:t.description,version:e},String(l));case"rte":return u(sn,{__html:t.__html});default:$r(t)}},qs=x((({className:e="",title:t,description:l,image:a,benefits:n,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(ft,{className:"!p-0",title:t,description:l,headlineVersion:"M"}),p("div",{className:"flex justify-center gap-[122px] mt-[30px]",children:[a?.src?u(qe,{className:s?"order-2":"",image:a}):null,p("div",{className:"w-[558px] m-auto",children:[n?.length?u("div",{className:"flex flex-col gap-4",children:n.map(Ys(o))}):null,Zs(Number(r),Number(i))]})]})]})));function Zs(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?Qs("Страховая сумма:",e,Boolean(t)):null,Number(t)>0?Qs("Ежемесячный лимит:",t,Boolean(e)):null]}):null}function Qs(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:[Le(t)," ₽"]})]})}function eo(e=""){const t=gs(e);return t<=4?"S":t<=8?"M":"L"}function to(e=""){const t=gs(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const lo=x((({className:e,title:t,description:l="Блок в разработке...",...a})=>p(k,{className:w("p-9 box-border",e,to(e),bs(e)),...a,children:[u(ft,{className:"!p-0 max-w-[600px]",title:t,description:l,headlineVersion:eo(e)}),u("figure",{className:"m-0 min-w-[80%]",children:ao()})]}))),ao=(e=3)=>ro(100,e).map((e=>Math.floor(e))).map(no),no=(e,t)=>u("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),ro=(e,t)=>[e].concat(t>0?ro(e/1.618,t-1):[]),io=x((({className:e="",children:t,...l})=>{const a=G(),{text:n,href:r,target:i,onClick:s}=a(l);return r?u("a",{className:`no-underline ${e}`,href:r,target:i,onClick:s,children:u("span",{className:e,children:n||t})}):u("span",{className:e,children:n||t})})),so=(e="primary",t="normal")=>({icon:l,label:a,description:n},r)=>u(Ks,{icon:l,label:a,description:n,version:e,benefitsVersion:t},String(r)),oo=x((({className:e="",title:t,headlineVersion:l="L",description:a,benefitsCountOfRow:n=3,benefits:r,benefitsVersion:i,buttons:s,footnote:o,image:c,__html:d,items:m,version:h="primary",isDotted:x=!0,textBlockClassName:g="",directionRight:b=!0})=>{const f=r?.filter((e=>e.label))?.length,v=co(n);return p("div",{className:w("flex grow justify-between items-stretch h-full",e),children:[c?.src?u(qe,{className:"mt-[-50px] "+(b?"order-2":""),image:c}):null,p("div",{className:w("flex flex-col",g),children:[u(ft,{className:"!p-0 max-w-[600px]",title:t,description:a,headlineVersion:l,align:"text-left"}),p("div",{className:"flex flex-col justify-between h-full",children:[p(Ma,{buttons:ut(s),children:[f?u("div",{className:v,children:r?.map(so(h,i))}):null,d?u("div",{className:"mt-5",children:u(sn,{__html:d})}):null,m?.length?u(Ha,{className:"mt-5 text-h6",items:m,itemClassName:"mb-[7px]",isDotted:x}):null]}),o?u("p",{className:"text-m-light pt-12",children:o}):null]})]})]})})),co=(e=2)=>"gap-6 mt-6 "+(e>2?"inline-grid grid-cols-[auto_auto_auto]":"inline-grid grid-cols-[auto_auto]");function mo(e,t,l){const{text:a,href:n,target:r}=e,i="primary"===t?"white":"black",s=e?.icon||{icon:"ArrowLeftIcon"};return p("div",{className:w("flex items-center",l),children:[u(ae,{version:t,rounded:!0,className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3",ariaLabel:a,href:n,target:r,children:u(qe,{className:"w-4 h-4",image:{...s,iconVersion:s.iconVersion||i},asSVG:!0})}),a?u(ae,{version:"link",text:a,href:n,target:r,ariaLabel:a}):null]})}const ho="text-secondary-text group-data-secondary:text-white/80",uo=x((e=>{const{className:t="",breadcrumbs:l,backwardButton:a,version:n="primary",...r}=e,i="primary"===n?n:"white";return p(k,{className:`overflow-hidden p-12 flex flex-col box-border min-h-[454px] ${t}`,version:n,...r,children:[a?.text?mo(a,i,"mb-10 -mt-2.5"):null,l?.length?u("div",{className:"text-xs-light mb-6",children:ts(u("span",{className:`mx-2 ${ho}`,children:"/"}))(l.map(((e,t)=>u(io,{className:ho,...e},String(t)))))}):null,u(oo,{version:n,...r})]})})),po=x((({className:e="",slides:t=[],...l})=>{const n=t.map((e=>e.nav)),i=t.map((e=>e.productBlock)),[s,o]=a(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(oo,{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:n.map(((e,t)=>function({slide:e,i:t,isActive:l,onClick:a}){const n=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:a,"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 ${n}`,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 xo(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(ie,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:e})})}const go=(e,t)=>{const{type:l}=e;if("default"!==l&&"rte"!==l)return null;switch(l){case"default":return[u(se,{size:"text-h6",children:e.label},`label-${t}`),u(se,{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(sn,{__html:e.__html})});default:$r(e)}};function bo(e,t){return e?.src?u(qe,{className:`absolute ${t?"right-0":"left-0"} bottom-0`,image:e}):null}const fo=x((({className:e="",title:t,headlineVersion:l="S",description:a,additionalDescription:n,benefits:r=[],buttons:i,image:s,isImageOnRightSide:o=!0,...c})=>p(k,{className:w("overflow-hidden p-9 box-border relative min-h-[364px]",to(e),e),...c,children:[p("div",{className:w("flex flex-col",o?"":"items-end"),children:[u(ft,{className:w("!p-0 !bg-transparent z-10",t||a?"mb-3.5":""),title:t,description:a,headlineVersion:l,as:"h2",align:"text-left"}),vo(r,s),xo(n,s),ut(i,{className:"mt-5 z-10 text-l"})]}),bo(s,o)]})));function vo(e,t){if(!e.length)return null;return u("div",{className:`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(go):null})}const No=x((({className:e="",title:t="Акции и спецпредложения",date:l,description:a,as:n,buttons:r=[],...i})=>u(k,{className:w("p-9 box-border",e,to(e),bs(e)),...i,children:u(Ma,{title:t?u(ft,{className:"!p-0 max-w-[600px]",title:t,headlineVersion:eo(e),align:"text-left",as:n||"h2"}):null,buttons:ut(r),children:p("div",{className:"mt-1.5",children:[l?u("div",{className:"text-s mb-2",children:yo(l)}):null,u("div",{className:"text-l",children:a})]})})})));function yo(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const wo=x((e=>{const{__html:t,...l}=e;return u(k,{...l,children:u(sn,{__html:t})})})),Co=x((({className:e="",label:t="Развернуть",isExpanded:l,isFoldButtonOnTop:a=!0,version:n="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(cn,{isFoldButtonOnTop:a,unfoldedByDefault:l,renderFoldableSection:({isUnfolded:e})=>u(dn,{className:"grid grid-cols-12 gap-5 [&>*]:p-0",isUnfolded:e,children:Zl(r)}),renderFoldButton:({isUnfolded:e,onToggle:l})=>ko({version:n,label:t,isUnfolded:e,onToggle:l})})})));Co.childrenTypes={exclude:["RollupItem"]};const ko=({version:e,label:t,isUnfolded:l,onToggle:a})=>{const n=t||(l?"Скрыть":"Развернуть");return"primary"===e?So({label:n,icon:l?"MinusIcon":"PlusIcon",onToggle:a}):u(dr,{label:n,icon:l?"ArrowUpIcon":"ArrowDownIcon",onClick:a})},So=({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(se,{size:"text-xl",font:"font-medium",children:e}),t?u(qe,{image:Ra({icon:t}),width:"24",height:"24",asSVG:!0}):null]}),Io=[];const To=async e=>await V(e,{method:"GET"})||Io,$o=x((({data:e,fieldLabel:t,fieldValue:l,selected:a,placeholder:n="",setSelected:r,label:i})=>{const s=e.filter(Boolean).map((e=>({key:e?.[l||t],text:e?.[t]}))),o=s.find((e=>e.key===a));return u(xe,{options:s,label:i,placeholder:n||a,onChange:e=>r(e.key),value:o})})),Ro=x((({regions:e=[],selectedRegion:t,onSelectedRegion:l,branches:a=[],selectedBranch:n,onSelectedBranch:r})=>p("div",{className:"flex justify-between gap-4 mb-6",children:[u("div",{className:"max-w-[396px] w-1/2",children:u($o,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:l,label:"Регион"})}),u("div",{className:"max-w-[396px] w-1/2",children:u($o,{data:a,fieldValue:"branchCode",fieldLabel:"address",selected:n,setSelected:r,label:"Отделение",placeholder:"Выберите отделение"})})]}))),Bo=x((({name:e,text:t,value:l,checked:a,onChange:n,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:a,onChange:e=>n(e.target.value)}),t?u("span",{className:"text-primary-text ml-3 cursor-pointer",children:t}):null]})}))),Mo=x((()=>{const[e,t]=a("option2"),l=r((e=>t(e)),[]);return p("div",{children:[u(Bo,{className:"mb-2",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===e,onChange:l}),u(Bo,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===e,onChange:l})]})})),Vo=["От 1 дня","До 365 дней"],jo=x((({days:e,setDays:t})=>p("div",{className:"mb-6",children:[u("span",{className:"block text-m-light mb-[3px]",children:"Срок аренды"}),u(De,{min:1,max:365,value:e,items:Vo,onChange:t})]}))),_o=x((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:l,safeBoxCases:a=[],selectedBoxSize:n,onSelectedBoxSize:r})=>p("div",{className:"flex justify-between mb-6",children:[u("div",{className:"mr-4 w-full",children:u($o,{data:e,fieldLabel:"volume",selected:t,setSelected:l,label:"Размер",placeholder:"Выберите размер"})}),u("div",{className:"w-full",children:u($o,{data:a,fieldLabel:"safeBoxCasesSize",selected:n,setSelected:r,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),Lo=x((({regions:e,selectedRegion:t,branches:l,selectedBranch:a,days:n,selectedCaseVolume:r,selectedBoxSize:i,safeBoxCases:s,caseVolumes:o,onChange:c,onClick:d})=>p("div",{className:"flex-1 mr-9",children:[u(Ro,{regions:e,selectedRegion:t,onSelectedRegion:e=>c({selectedRegion:e}),branches:l,selectedBranch:a,onSelectedBranch:Po(c)}),u(jo,{days:n,setDays:e=>c({days:e})}),u(_o,{caseVolumes:o,selectedCaseVolume:r,onSelectedCaseVolume:zo(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(Mo,{}),u(ae,{text:"Офисы на карте",version:"primary",onClick:d})]})]}))),Po=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},zo=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},Do=x((({days:e,tariffs:t=[]})=>{const l=Ao(e,t);return p("div",{className:"flex flex-col justify-between",children:[p("div",{className:"flex",children:[Oo("Аренда за",e,"mr-11"),Oo("Цена",l+" ₽")]}),p("div",{className:"bg-primary-main px-10 pt-10 pb-4 text-center",children:[u(qe,{image:{icon:"PackA4Icon"},width:"290",height:"257",asSVG:!0}),p("span",{className:"text-s-light text-white opacity-80 mt-2 inline-block",children:["На рисунки изображена пачка",u("br",{})," листов формата А4"]})]})]})})),Oo=(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})]}),Ao=(e,t)=>{const l=Eo(e);return e*(t?.find((e=>e.tariffType===String(l)))?.tariffValue||0)},Eo=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},Fo=(e,t)=>e.find((e=>e.branchCode===t)),Ho=x((e=>{const{regions:t,data:l,branches:a,onChange:r,onClick:i}=e;n((()=>{r({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[l.selectedRegion,r]);const s=Fo(a,l.selectedBranch),o=Uo(s?.safeBoxCaseVolumes),c=Xo(s?.safeBoxCaseVolumes,l.selectedCaseVolume)?.safeBoxCases,d=Go(c,l.selectedBoxSize);return p("div",{className:"flex justify-between align-top mb-6",children:[u(Lo,{...l,regions:t,onClick:i,branches:a,caseVolumes:o,safeBoxCases:c,onChange:r}),u(Do,{days:l.days,tariffs:d})]})})),Uo=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],Xo=(e,t)=>e?.find((e=>e.volume===t)),Go=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs,Wo=x((({title:e,footnote:t,className:l="",...n})=>{const[i,s]=a(!1),o=r((()=>s((e=>!e))),[]),[c,d]=a({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26}),m=_(),h=Ko(c.selectedRegion,m),x=function(e){const{data:t}=B(e?`/api/v1/safeboxes?regionCode=${e}`:null,To);return t||Io}(h),g=r((e=>d((t=>({...t,...e})))),[d]),b=(f=Fo(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,...n,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(Ho,{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(Vs,{points:b,className:"h-[640px]"}):null]})})),Ko=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e,Jo=e=>Boolean(e?.icon||e?.src),Yo=({styleMap:e,isMainButton:t,version:l})=>(a,n,r)=>{const{label:i,description:s,button:o,items:c,isDotted:d}=a;return p("div",{className:w("relative flex flex-col items-center text-center whitespace-pre-line overflow-hidden",qo(r.length)),children:[p("div",{className:w(o?.text?"mb-8":"","text-center"),children:[i?u("div",{className:"mb-2",children:u(se,{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(Ha,{className:w(s?`${e.description} mt-0.5`:"text-h6"),items:c,listItemSize:"M",isDotted:d})]})]}),o?.text&&!t?u(ae,{className:"box-border py-3 h-12 w-full max-w-[240px] mt-auto",version:l,...o,children:o?.text}):null]},String(n))},qo=e=>e<5?"w-[276px]":"w-[210px]",Zo={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"},Qo=x((({className:e="",showLines:t=!0,steps:l=[],buttons:a,size:n="normal",version:r="primary",stepVersion:i="gray",title:s,...o})=>{const c=l.length>3,d=Zo,m=(e=>e?"":"opacity-0")(t),h=(e=>e<5?"px-[88px]":"px-[55px]")(l.length),x=Boolean(a?.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:ts(u("div",{className:w("h-0.5 w-full bg-secondary-light flex-1",m)}))(l.map(ec(d,n,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:a}=e;if("default"!==a&&"rte"!==a)return null;switch(a){case"default":return Yo(g)(e,t,l);case"rte":return u("div",{className:w("text-center",qo(l.length)),children:u(sn,{__html:e.__html})},String(t));default:return null}}))})]}):null,ut(a,{className:"mt-8"})]});var g})),ec=(e,t,l)=>({icon:a},n)=>{const r="secondary"===l?"group-data-primary:text-white":"text-secondary-text";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:Jo(a)?u(qe,{image:Ra(a||{},l),width:"48",height:"48",asSVG:!0}):u("span",{className:w("text-h4","transparent"===l?e.iconText:r),children:n+1})},String(n))},tc=x((({className:e="",gap:t=14,padding:l=16,showDots:a=!0,minHeight:n,children:r,onVisibleIndicesChange:i,listType:s="horizontal-list",version:o})=>{const c=Array.isArray(r)?r.length:0,[d,m]=sa({itemCount:c,onVisibleIndicesChange:i}),[h]=m.visibleIndicesRange;return p("div",{className:w(e,"vertical-list"===s?"relative h-full":""),children:[u(la,{containerRef:d,activeIndex:h,visibleItemCount:1,gap:t,padding:l,onVisibleIndicesChange:m.handleVisibleIndicesChange,listType:s,minHeight:n,children:r}),a?u(pa,{containerRef:d,activeIndex:h,dotCount:c,listType:s,version:o}):null]})})),lc=x((({listType:e,showDots:t,options:l,version:a,...n})=>u(k,{version:a,...n,children:u(tc,{listType:e,showDots:t,version:a,children:Zl({...n,options:l})})})));lc.childrenTypes={exclude:["SwipeListControlBlock"]};const ac="h-12 flex-1 flex items-center justify-center cursor-pointer",nc="font-sans text-m text-center",rc="text-white",ic="text-secondary-text group-hover/btn:text-primary-main",sc="text-primary-main",oc={div:{scrollable:{active:`inline-flex px-4 grow whitespace-nowrap ${ac} bg-white text-primary-main`,default:`inline-flex px-4 grow whitespace-nowrap ${ac} group/btn bg-white`},default:{active:`${ac} bg-primary-main text-white whitespace-nowrap`,default:`${ac} group/btn bg-white whitespace-nowrap`}},text:{scrollable:{active:"h-full border-0 border-b-2",default:""},default:{active:"",default:""}}},cc={link:{scrollable:{active:`inline-flex px-4 grow whitespace-nowrap ${ac} bg-white text-primary-main`,default:`inline-flex px-4 grow whitespace-nowrap ${ac} group/btn bg-white`},default:{active:`${ac} bg-primary-main text-white`,default:`${ac} group/btn bg-white`}},text:{scrollable:{active:`${nc} flex items-center h-full border-0 border-b-2 text-primary-main`,default:`${nc} ${ic}`},default:{active:`${nc} text-white`,default:`${nc} ${ic}`}}},dc=(e,t,l)=>{const a=t?"active":"default";return oc[e][l?"scrollable":"default"][a]},mc=(e,t,l)=>{const a=t?"active":"default";return cc[e][l?"scrollable":"default"][a]},hc=x((e=>{const{tab:t,currentTab:l,onClick:a,isScrollable:n=!1}=e,r="link"===l?.type&&l.href===t.href,i=G()(t);return u("a",{role:"tab",className:mc("link",r,n),target:t.target,href:i.href,onClick:e=>{i.onClick(e),a(t)},children:u("span",{className:mc("text",r,n),children:t.text})})})),uc=(e,t,l)=>e?u("h3",{className:l?`${nc} ${t?sc:ic}`:`${nc} ${t?rc:ic}`,children:e}):null,pc=(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,xc=({page:e,currentTab:t,showCounter:l,onClick:a,isScrollable:n=!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:a,isScrollable:n=!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:dc("div",s,n),role:"tab","aria-selected":s,onClick:()=>a(r),children:p("div",{className:`flex flex-1 items-center justify-center ${dc("text",s,n)}`,children:[uc(r.title,s,n),pc(l,o,s)]})},`group-${String(i)}`)})({page:e,currentTab:t,showCounter:l,onClick:a,isScrollable:n})(r,i);case"link":return u(hc,{tab:r,currentTab:t,isScrollable:n,onClick:a},String(i));default:$r(s)}return null},gc=x((e=>{const{tabs:t,onClick:l,currentTab:a,page:n,showCounter:r}=e,[i,s]=sa({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(la,{containerRef:i,snapAlign:"snap-start",onVisibleIndicesChange:s.handleVisibleIndicesChange,children:t?.map(xc({onClick:l,currentTab:a,showCounter:r,page:n,isScrollable:!0}))})}),s.canScrollLeft?u(jt,{className:"absolute z-40 top-0 left-6",onClick:s.scrollLeft}):null,s.canScrollRight?u(_t,{className:"absolute z-40 top-0 rotate-180 right-6",onClick:s.scrollRight}):null]})})),bc=x((e=>{const{className:t="",tabs:l,showCounter:i,isSticky:s,tabsMode:o,...c}=e,[d,m]=a(l?l[0]:void 0);n((()=>{l&&l[0]&&fc(l[0])}),[]),n((()=>{"group"===d?.type&&f.subject("tab",{type:d.type,label:d.ref})}),[d]);const h=r((e=>{fc(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(gc,{tabs:l,onClick:h,currentTab:d,showCounter:i,...c}):l?.map(xc({onClick:h,currentTab:d,showCounter:i,...c}))})})),fc=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})},vc=x((({isOpen:e,onClick:t})=>p(ae,{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(he,{name:e?"ArrowUpIcon":"ArrowDownIcon",className:"ml-3",iconVersion:"white",width:"20",height:"20",asSVG:!0})]}))),Nc={Buttons:({buttons:e})=>ut(e,{buttonClassName:"w-12 h-12"}),Img:({image:e})=>e?.src?u(qe,{image:e}):null,List:({isDotted:e,...t})=>u(Ha,{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:a,isOpen:n})=>e?u(vc,{isOpen:n,onClick:()=>{t({dataUrl:l,pdfUrl:a})}}):null))},yc=({rowIdx:e,cellIdx:t,setTableInner:l,tableInner:r,openTableInnerIdx:i,setOpenTableInnerIdx:s})=>(o,c)=>{const[d,m]=a(!0);n((()=>{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,wc({cell:o,cellProps:{rowIdx:e,cellIdx:t,fieldIdx:c,displayTable:e=>{m(!1),s(t),l(e)},isVisible:d}})]},String(c))},wc=({cell:e,cellProps:t})=>{if(!e)return null;const{tableCellType:l,...a}=e;if(!l||!(l in Nc))return null;return u(Nc[l],{...t,...a})},Cc=x((({cells:e,rowIdx:t,cellIdx:l,setTableInner:a,tableInner:n,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(yc({rowIdx:t,cellIdx:l,setTableInner:a,tableInner:n,openTableInnerIdx:r,setOpenTableInnerIdx:i})):null}))),kc=x((({rows:e})=>{const t=e?.[0]?.length??0,[l,a]=Mt({itemCount:t,visibleItemCount:5});return p("div",{children:[e?.map(Sc(l)),Lt({...a,btnClass:["left-3 top-20","right-3 top-20"],className:""})]})})),Sc=e=>(t,l)=>{if(!t?.length)return null;const[a,...n]=t,r=[...Array(e).keys()].reduce(((e,t)=>140*(n?.[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:[a?.data?u("div",{className:"text-xl-light w-[214px] pb-5 "+(0===l?"pt-8":"pt-6"),children:a.data}):null,u("div",{className:"flex flex-grow overflow-hidden",children:u("div",{className:i,style:{transform:`translateX(-${r}px)`},children:n?.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?Ic(t.cols,e):null]},`row${l}`)))})})]},String(l))},Ic=(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,Tc=x((({activeTabIndex:e,items:t})=>{const[l,n]=a({}),i=r((e=>n((t=>({...t,[e]:!t[e]})))),[]);return u("div",{children:t.map(((t,a)=>{const n=`activeTabIdx:${e}-tableIdx:${a}`;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(n),children:[t.title,u(qe,{image:{icon:l[n]?"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[n]?"h-0":""),children:u("div",{className:"relative",children:u(kc,{rows:t.rowsData})})})]},n)}))})})),$c=x((({currencies:e,linkToPDF:t,activeTabIndex:l,setActiveTabIndex:a})=>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:()=>a(t),children:e||t+1},e)))}):null,t?u(ae,{href:t,version:"secondary",target:"_blank",appendLeft:u(he,{name:"DocDownloadIcon",iconVersion:"color",className:"mr-0.5",width:"20",height:"20",asSVG:!0}),text:"Скачать в PDF"}):null]})));async function Rc(e){const t=await fetch(e);return await t.json()}const Bc=x((({dataUrl:e,pdfUrl:t,onClick:l})=>{const{tableData:n}=function(e){const{data:t}=B(function(e){return`/wcms-resources/${e||"tariffs-inner-table-data"}.json`}(e),Rc);return t||{}}(e),[i,s]=a(0),o=r((e=>s(e)),[]),c=n?.[i]?.items??[],d=n?.map((e=>e.currency??""));return p("div",n?{className:"bg-white z-10",children:[u($c,{currencies:d,activeTabIndex:i,setActiveTabIndex:o,linkToPDF:t}),u(Tc,{activeTabIndex:i,items:c}),u(vc,{onClick:l,isOpen:!0})]}:{className:"my-5 text-h6 text-center",children:[u("p",{children:"Данных нет"}),u(vc,{onClick:l,isOpen:!0})]})})),Mc=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(Bc,{...t,onClick:l})}):null]}))),Vc=x((({row:{header:e,data:t},activeIndex:l,rowIdx:n,...i})=>{const[s,o]=a(void 0),c=r((e=>o(e)),[]),[d,m]=a(void 0),h=r((e=>m(e)),[]);return p(Mc,{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(qe,{className:"mr-3.5 max-w-6",image:Ra(e.icon),width:"24",height:"24",asSVG:!0}):null,e?.title?u("div",{className:"text-m-light",children:e?.title}):null]})}),t?.length?u(Cn,{activeIndex:l,columnWidth:360,version:"tariff",children:t.map(((e,t)=>u(Cc,{cells:e,rowIdx:n,cellIdx:t,setTableInner:c,tableInner:s,openTableInnerIdx:d,setOpenTableInnerIdx:h,...i},String(t))))}):null]})})),jc=x((({className:e="",title:t,description:l,rowHeaders:a,tariffsColumns:n,hiddenRowsNum:r=0,...i})=>{const s=n?.map((({data:e})=>e))||[],o=a?.map(((e,t)=>({header:e,data:s.map((e=>e?.[t]||[]))}))),c=s.length,[d,m]=Mt({itemCount:c,visibleItemCount:2}),h=(o||[]).map(((e,t)=>u(Vc,{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:[_c({title:t,description:l}),Lc(l),r>0?u(cn,{renderFoldableSection:({isUnfolded:e})=>p(Pc,{controls:m,children:[x,u(dn,{isUnfolded:e,children:g})]}),renderFoldButton:mr}):u(Pc,{controls:m,children:h})]})}));function _c({title:e,description:t}){return e?u(T,{headingType:"h3",className:"text-center "+(t?"mb-2.5":"mb-8"),title:e}):null}function Lc(e){return e?u("div",{className:"mb-9 text-center text-l",children:e}):null}const Pc=x((({children:e,controls:t})=>{const{isScrollAvailable:l}=t;return p("div",{role:"table",children:[p("div",{className:"relative",children:[e,Lt({...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]})})),zc=x((({className:e="",title:t,description:l,iconVersion:a,image:n,__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"===a?u("div",{className:"mt-1",children:Dc()}):null,"big"===a?Oc(n):null,p("div",{children:[t?Ac(t):null,l?u("div",{className:"mt-1",children:Ec(l)}):null,r?u(sn,{__html:r}):null]})]}))),Dc=()=>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"}),Oc=e=>e?.src?u(qe,{image:e}):null,Ac=e=>u(se,{size:"text-l",font:"font-medium",color:"text-primary-text group-data-secondary:text-white",children:e}),Ec=e=>u(ie,{size:"text-s",color:"text-secondary-text group-data-secondary:text-white",children:e}),Fc=x((e=>{const{tags:t,className:l=""}=e;return t?.length?u("div",{className:`flex flex-wrap gap-2 ${l}`,children:t.map(Hc)}):null})),Hc=(e,t)=>u("span",{className:"text-m-light py-2 px-2.5 border-solid border rounded-md border-gray",children:e},String(t)),Uc=x((({title:e,headingType:t="h3",__html:l,items:a,buttons:n,image:r,isDotted:i=!0,listItemSize:s="M",className:o="",tags:c,children:d,...m})=>u(k,{className:`overflow-hidden p-9 pr-3 box-border ${to(o)} ${bs(o)} ${o}`,...m,children:p(Ma,{title:e?u(T,{headingType:t,as:"h2",title:e,className:"whitespace-pre-wrap max-w-[600px]"}):null,buttons:ut(n,{className:"mt-8",buttonClassName:"min-w-[158px]"}),image:r?.src?u(qe,{className:"mt-auto ml-7",image:r}):null,children:[l?u("div",{className:"max-w-[600px] mt-2.5",children:u(sn,{__html:l})}):null,d,u(Ha,{className:"mt-2.5",itemClassName:"mb-1.5",items:a,isDotted:i,listItemSize:s}),c?.length?u(Fc,{tags:c,className:"mt-5"}):null]})}))),Xc={stretch:"items-stretch",left:"items-start",center:"items-center",right:"items-end"},Gc=x((({className:e="",gap:t="",align:l="stretch",isPadding:a=!1,isInnerPadding:n=!0,version:r="transparent",isTheme:i=!1,...s})=>{const o=n?"":"!p-0";return u(k,{className:w("flex flex-col [&>*]:max-w-full",a?"p-12":"",Gi[t],l&&Xc[l],e),version:r,isTheme:i,...s,children:Zl({...s,renderProps:(e,t)=>Jl(e,t,{className:o})})})}));Gc.childrenTypes=[];const Wc=e=>gs(e)<10?"py-6 px-11":"py-12 px-32",Kc=x((({className:e,title:t,url:l,previewImg:a,...n})=>{const r=X();return p(k,{className:w(Wc(e),e),...n,children:[u(ft,{title:t,headlineVersion:"M"}),l?u("video",{className:"m-auto w-full object-fill",preload:"metadata",poster:F(r)(a?.src),style:{maxHeight:524},controls:!0,children:u("source",{src:F(r)(l)})}):null]})})),Jc={ApplicationForm:st,BenefitsBlock:ot,Bonus:vt,BonusBenefitsBlock:kt,BusinessBlock:Rt,ButtonBlock:Bt,Calculator:Ol,CardTransfer:Gl,Carousel:xa,CarouselBankHistoryCard:fa,CarouselCard:ka,CarouselCatalogCard:Ia,CarouselEventCard:Ba,CarouselInvestmentCard:ja,CarouselLinks:za,CarouselProductCard:Ua,CarouselProgramsCard:Ya,CarouselRecommendationCard:nn,CarouselRichTextCard:on,CarouselTariffsCard:mn,ComparisonTable:_n,ContactsBlock:Pn,ErrorBlock:An,ExchangeRateTile:or,Filtration:vr,Footer:si,GracePeriod:oi,Header:Xi,Headline:ft,HorizontalLayout:Wi,ImgBlock:Ki,InsuranceAmountBlock:Qi,InvestmentInfo:ns,LinkDocs:xs,MobileAppTile:fs,OfficeMap:Us,OfficeServicesBlock:Xs,ParagraphBlock:Ws,PictureText:qs,Placeholder:lo,ProductBlock:uo,ProductGallery:po,ProductTile:fo,PromoTile:No,RichTextBlock:wo,RollupItem:Co,SafeDepositRental:Wo,StepsBlock:Qo,SwipeListControlBlock:lc,Tabs:bc,TariffsTable:jc,TextBlock:zc,Tile:Uc,VerticalLayout:Gc,Video:Kc};const Yc=["Header","Footer"],qc=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function Zc(e=globalThis){const t=s(new Map);n((()=>y.subscribe("intersection",(({block:e,intersection:l})=>{t.current&&t.current.set(e,l)}))),[]),n((()=>{const l=((e,t=600)=>{let l;const a=(...n)=>{a.dispose(),l=setTimeout((()=>{e(...n)}),t)};return a.dispose=()=>{l&&clearTimeout(l)},a})((()=>{!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])=>!Yc.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[l]=t.length>0?sl(qc)(t):[];return l}([...t.current||[]]):void 0)}),100);return e.addEventListener("scroll",l),()=>{l.dispose(),e.removeEventListener("scroll",l)}}),[e])}const Qc=h();const ed=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:td()}))),td=()=>{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"})]})},ld=x((({className:e=""})=>{const t=function(e){const[t,l]=a(0);return n((()=>{(async()=>{const[t]=await Qc.getLikeCount(e);l(t?.value||0)})()}),[e]),{likeCount:t,like:r((async()=>{l(await Qc.like(e))}),[e]),dislike:r((async()=>{l(await Qc.dislike(e))}),[e])}}(X().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(ed,{onClick:U(t.like),ariaLabel:"Поставить отметку «лайк»"}),u(ed,{onClick:U(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),u("span",{className:"select-none",children:t.likeCount})]})})),ad=x((e=>{const{className:t="",blocksRegistry:l,blockDecorator:a,data:n={}}=e,{style:r,blocks:i,slots:s,likeControl:o,colorPalette:c="pc"}=n,d={key:"",page:n,blocksRegistry:l,blockDecorator:a,parent:n};Zc();const[m,{setTrue:h,setFalse:x}]=Ar();return Rr({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:ql(s?.header,{...d,slotName:"header"})}):null,p("div",{className:"container grid grid-cols-12 gap-1",children:[ql(i,d),s?.footer?ql(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(ld,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null]})}));ad.childrenTypes=[],ad.slots=()=>["header","footer"];e.Blocks=Jc,e.ContentPage=ad,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=U,e.joinList=ts,e.packageVersion="0.9.16",e.projectSettings=c,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=E,e.useRouter=X,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniBlocks={})}(this,(function(e){"use strict";let t;const n=e=>(...n)=>t[e](...n),l=n("useState"),a=n("useEffect"),r=n("useCallback"),i=n("useMemo"),s=n("useRef");const o={PROD_BRANCH:"master"},c=new class{_=o;setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH||o.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CHAT_BOT(){return this._.CHAT_BOT}get CDN(){return d(this._.CDN)}get BASE_PATH(){return d(this._.BASE_PATH)}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},d=e=>e&&!e.endsWith("/")?`${e}/`:e,m="likesToken";function h(){async function e(){try{const e=JSON.parse(globalThis.localStorage?.getItem(m)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name:n}=await e.json();return globalThis.localStorage?.setItem(m,JSON.stringify({token:t,name:n})),{token:t,name:n}}catch(e){return console.error(e),{}}}return{getLikeCount:async function(...t){if(!t.length)return[];const{token:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n},body:JSON.stringify({node_ids:t})}),{likes:l}=await e.json();return l||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:n,name:l}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:l},body:JSON.stringify({node_id:t,user_name:l})}),{likes:a}=await e.json();return a||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:n,name:l}=await e();try{const e=await fetch(`/assist/v1/public/projects/${c.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:n,UserID:l},body:JSON.stringify({node_id:t,user_name:l})}),{likes:a}=await e.json();return a||0}catch(e){return console.error(e),0}}}}const u=(...e)=>globalThis._uni._jsx(...e),p=(...e)=>globalThis._uni._jsxs(...e),x=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:g(e)),t._tmpl},g=e=>{function t(t,n){const{children:l,...a}=t||{},r=n?.slots?.default,i=l||r&&r();return e(Object.assign(a,i&&{children:i}),n)}return t.inheritAttrs=!1,t};class b{subscribers={};subjectsStateMap={};subscribe(e,t){this.subscribers[e]=(this.subscribers[e]||[]).concat(t);const n=this.subjectsStateMap[e];return n&&t(n),()=>{this.unsubscribe(e,t)}}unsubscribe(e,t){this.subscribers[e]=this.subscribers[e]?.filter((e=>e!==t))}fire(e,t){e in this.subjectsStateMap&&(this.subjectsStateMap[e]=t),this.subscribers[e]?.forEach((e=>e(t)))}subject(e,t){this.subjectsStateMap[e]=t}}const f=new b;function v(e,{sensitivity:t,rootRef:n}={}){const l=s(null),r=i((()=>({threshold:N(t),root:n?.current})),[t,n?.current]);return a((()=>{if(!l.current)return;const t=new IntersectionObserver(e,r);return t.observe(l.current),()=>{t.disconnect()}}),[e,r]),l}function N(e=0){const t=Math.round(10*e);return new Array(t).fill(0).map(((e,n)=>Math.min(n/t)),1).concat(1)}const y=new b;const w=(...e)=>e.flatMap((e=>e)).filter(Boolean).join(" "),C={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white",gray:"bg-main-divider text-primary-text",transparent:"bg-transparent text-primary-text","":""},k=x((({className:e="",version:t="primary",isTheme:n=!0,block:i,tag:s="section",role:o,children:c})=>{const d=s,m=function(e){return v(r((t=>{if(!e||!t?.length)return;const n=t[t.length-1];y.fire("intersection",{block:e,intersection:n})}),[e]),{sensitivity:1})}(i),[h,p]=l(!1);return a((()=>f.subscribe("tab",(e=>{p(Boolean(e.label&&i?.labels?.length&&!i.labels.includes(e.label)))}))),[i]),u(d,{className:w(S(Boolean(t&&n)),C[t],h?"hidden":"",e),...t&&n?{"data-ver":t}:{},...i?.anchor?{id:i.anchor,ref:m}:{},role:o,children:c})})),S=e=>e?"group":"",I={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},T=x((({className:e="",headingType:t="h3",as:n="h3",title:l,children:a})=>u(n,{className:`font-sans m-0 ${I[t]} ${e}`,children:l||a}))),$=new Map;function B(e,t,{fallback:n}={}){const r=i((()=>R(e)),[e]),[s,o]=l(),[c,d]=l(),m=e=>{o(e),d(void 0)},h=e=>{o(void 0),d(e)};a((()=>{if(!r.every((e=>null===e)))try{const e=t(...r);"then"in e?(e=>{e.then((e=>$.get(r)||e)).then(m).catch(h)})(e):m(e)}catch(e){h(e)}}),[t,...r]);const u=r[0],p=n&&"string"==typeof u&&n[u];return{data:!s&&p?p:s,error:c,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function R(e){return e?Array.isArray(e)?e:e instanceof Function?R(e()):[e]:[e]}async function V(e,t){try{return e?await M(e,t):null}catch(e){console.error(e)}return null}async function M(e,t){const n=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await n.json()}function j(){const{data:e}=B("/api/v1/regions",M);return e||[]}const _=(e="")=>({open:t=>f.fire("dialog",{type:"open",id:e,message:t}),close:()=>f.fire("dialog",{type:"close"})}),L=e=>Boolean(e?.includes(":")),P=(e,t)=>Boolean(e&&!L(e)&&(!t||"_self"===t)),D=e=>(e||"").replace(/\?.*/,"").replace(/\/$/,""),z=(...e)=>e.filter(Boolean).join("/").replace(/\/+/g,"/");var O=Object.freeze({__proto__:null,isURL:L,isLocalURL:P,isHash:e=>Boolean(e?.startsWith("#")),withoutQuery:D,joinPath:z});const A=e=>(t,n=c.BASE_PATH)=>{if(!t||L(t)||E(t,c.CDN))return t;const l=t.startsWith("/");return z(E(t,n)?"":n,l?"/":e.pathname?.split("/").slice(0,-1).join("/"),t)},E=(e,t)=>t&&e&&e.startsWith(t),F=(e,t)=>F._impl(e,t);function U(){return U._impl()}function H(e={}){const{isRemote:t,basePath:n}=e,l=U(),{close:a}=_();return e=>({...e,href:t?e.href:A(l)(e.href,n),"aria-label":e.text,onClick:F(r(e),e)});function r({href:e,target:n,onClick:r}){return i=>{r&&r(i),e&&!t&&P(e,n)&&(a(),i?.preventDefault(),l.push(e))}}}F._impl=e=>e,F.setup=e=>{F._impl=e},U._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{}}),U.setup=e=>{U._impl=e};const G={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:"",transparent:"",gray:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active","":""},X="bg-main-divider text-main-disabled",W={primary:X,secondary:X,white:X,link:"",transparent:"",gray:X,"":""},K="text-center font-sans select-none",J={primary:"group-hover/btn:brightness-0 group-hover/btn:invert",secondary:"group-hover/btn:brightness-0 group-hover/btn:invert",white:"group-hover/btn:brightness-0 group-hover/btn:invert",link:"",transparent:"",gray:"group-hover/btn:brightness-0 group-hover/btn:invert","":""},Y=x((e=>{const{text:t,aboveText:n,appendLeft:l,appendRight:a,version:r="primary"}=e;return p("div",{className:q(e),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="gap-2 "+(n?"py-2.5 px-7":"py-4 px-4");return["group/btn flex items-center justify-center",Z(e)?a:"h-12 w-12",l?"rounded-full":""].join(" ")},Z=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),Q=({className:e,rounded:t,version:n})=>["inline-block",K,n?W[n]:"",t?"rounded-full":"rounded-md",e].join(" "),ee=({className:e,rounded:t,version:n})=>[K,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border h-fit",n?G[n]:"",t?"rounded-full":"rounded-md",e].join(" "),te=x((({disabled:e,children:t,...n})=>{const l=H()(n),a=t??u(Y,{...l});return u(e?le:ne,{...l,children:a})})),ne=x((({className:e="",href:t,rel:n,target:l,ariaLabel:a,version:r,rounded:i,onClick:s,children:o})=>u("a",{className:ee({className:e,version:r,rounded:i}),href:t,rel:n,target:l,"aria-label":a,role:t?"link":"button",onClick:s,children:o}))),le=x((({className:e,ariaLabel:t,version:n,rounded:l,children:a})=>u("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:Q({className:e,rounded:l,version:n}),children:a}))),ae=x((({children:e,...t})=>u("p",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),re=x((({children:e,...t})=>u("span",{className:["font-sans",...Object.values(t)].join(" "),children:e}))),ie=x((({link:e})=>p(ae,{size:"text-s-light",color:"text-secondary-text",children:[u(re,{children:"Нажимая кнопку, вы подтверждаете согласие с "}),e?u(te,{href:e.href,ariaLabel:"условия передачи данных",target:e.target,className:"text-primary-main",children:u(re,{children:e.text})}):null]}))),se=x((({className:e="",inputClassName:t="",id:n,name:l,type:a="text",label:i,value:s="",valid:o=!0,children:c,onChange:d,onBlur:m,...h})=>{const x=r((e=>{const t=e.target.validity.valid?e.target.value:s;d(t)}),[d]),g=r((e=>{if(!m)return;const t=e.target.validity.valid?e.target.value:s;m(t)}),[m]),b=c?"pr-8":"",f=o?"border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text":"border-error";return p("div",{className:`relative ${e}`,children:[i?u("label",{className:"block text-m-light mb-2",children:i}):null,u("input",{className:`w-full border rounded-md text-primary-text outline-none p-4 ${b} ${f} ${t}`,id:n,name:l||n,type:a,value:s,onChange:x,onBlur:g,...h}),c]})})),oe=x((({className:e,label:t,value:n,error:l,onChange:a,onBlur:r})=>p("div",{className:e,children:[u(se,{type:"text","aria-label":t,label:t,valid:Boolean(!l),value:n,onChange:a,onBlur:r}),u("div",{className:"h-2",children:u(re,{size:"text-xs-light",color:"text-error",children:l||null})})]}))),ce="Некорректно заполненное поле",de=(e,t)=>{switch(e){case"name":return he(t);case"inn":return ue(t);default:return me(t)}},me=e=>e?"":ce,he=e=>e.length>1?"":ce,ue=e=>10===e.length||12===e.length?"":ce,pe=({fullName:e,inn:t,name:n,phone:l,handleChange:a,errors:r,handleChangeErrors:i})=>p("div",{className:"flex justify-between gap-5 mb-5",children:[p("div",{className:"w-1/2",children:[u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Наименование организации",error:r.fullName,value:e,onChange:e=>a({fullName:e}),onBlur:e=>i({fullName:de("fullName",e)})}),u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Контактное лицо",error:r.name,value:n,onChange:e=>a({name:e}),onBlur:e=>i({name:de("name",e)})})]}),p("div",{className:"w-1/2",children:[u(oe,{className:"shrink-0 text-l w-full mb-3",label:"ИНН",error:r.inn,value:t,onChange:e=>a({inn:e}),onBlur:e=>i({inn:de("inn",e)})}),u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Телефон",error:r.phone,value:l,onChange:e=>a({phone:e}),onBlur:e=>i({phone:de("phone",e)})})]})]}),xe=[{name:"Торговый эквайринг"},{name:"Мобильный эквайринг"},{name:"Интернет-эквайринг"},{name:"QR-эквайринг (СБП)"},{name:"Все виды эквайринга"}];function ge(e){const t=s(null);return a((()=>{const n=n=>{t&&t.current&&n.target instanceof Node&&!t.current.contains(n.target)&&e()};return document.addEventListener("click",n),()=>{document.removeEventListener("click",n)}}),[e]),t}const be={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},fe=x((({className:e="",imageClassName:t="",name:n="",alt:l=`Иконка ${n}`,title:a=l,iconVersion:r="color",asSVG:i,...s})=>{const o=U(),d=A(o)(z(c.CDN,"/icons",`${n}.svg`));return i&&"normal"!==r?u(Ne,{className:e,children:p("svg",{className:w(ve(s.width),be[r],"white"===r?"invert":"",t),...s,"aria-hidden":"true",children:[a?u("title",{children:a}):null,l?u("desc",{children:l}):null,u("use",{href:`${d}#icon`,xlinkHref:`${d}#icon`})]})}):(e.includes("h-")||(s.style={height:`${s.height}px`}),u("img",{className:e,src:d,alt:l,title:a,"aria-hidden":"true",...s}))})),ve=e=>e?"":"w-full h-full",Ne=x((({className:e,children:t})=>e?u("div",{className:e,children:t}):t)),ye=x((({className:e="",isBorder:t=!0,label:n,options:i=[],value:s,onChange:o,placeholder:c="",valid:d=!0,onValidate:m})=>{const[h,x]=l(i[0]||{key:"",text:""}),[g,b]=l(!1),f=ge(r((()=>b(!1)),[]));return a((()=>{x(s||{key:"",text:""})}),[s]),p("div",{className:`${e}`,ref:f,children:[n?u("div",{className:"mb-2",children:u(re,{size:"text-m",color:"text-primary-text",font:"font-light",children:n})}):null,p("div",{className:"relative "+(g?"z-20":"z-10"),children:[p("div",{className:`text-l flex justify-between items-center mb-0.5 text-primary-text cursor-pointer\n ${ke(t,d)}`,onClick:()=>b(!g),children:[u("p",{className:"p-4 pr-8 h-14 overflow-hidden text-ellipsis whitespace-nowrap",children:h?.text||c}),u(fe,{name:"ArrowUpIcon",width:"16",height:"16",className:"absolute right-3 "+(g?"":"rotate-180")})]}),i?.length?u("div",{className:`h-0 ${we(g)}`,children:u("div",{className:"bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:i.map(Ce((e=>{x(e),b(!1),o(e),m&&m(e.text)}),g,(e=>Boolean(e.key===h.key))))})}):null]})]})})),we=e=>e?"":"overflow-hidden",Ce=(e,t,n)=>(l,a)=>p("div",{onClick:()=>{e(l)},className:"flex px-4 py-3 cursor-pointer hover:bg-main-divider pr-11 relative",children:[u("span",{className:"min-h-6",children:l.text}),u(fe,{name:"DoneSimpleIcon",width:"16",height:"16",className:["absolute right-4 pt-0.5",n(l)&&t?"":"hidden"].join(" ")})]},String(a)),ke=(e,t)=>`\n ${e?"border rounded-md hover:border-primary-hover":""} ${t?" border-gray":"border-error"} `,Se=x((({data:e,fieldLabel:t,fieldValue:n,selected:l,placeholder:a="",setSelected:r,label:i,error:s,onValidate:o})=>{const c=e.filter(Boolean).map((e=>({key:e?.[n||t],text:e?.[t]}))),d=c.find((e=>e.key===l));return p("div",{children:[u(ye,{options:c,label:i,valid:Boolean(!s),placeholder:a||l,onChange:e=>r(e.key),value:d,onValidate:o}),u("div",{className:"h-2",children:u(re,{size:"text-xs-light",color:"text-error",children:s||null})})]})})),Ie=({acquiringType:e,regions:t,region:n,handleChange:l,errors:a,handleChangeErrors:r})=>p("div",{className:"flex justify-between gap-5 mb-7",children:[u("div",{className:"w-1/2",children:u(Se,{data:xe,fieldValue:"name",fieldLabel:"name",error:a.acquiringType,selected:e,setSelected:e=>l({acquiringType:e}),onValidate:e=>r({acquiringType:de("acquiringType",e)}),label:"Вид эквайринга",placeholder:"Выберите эквайринг"})}),u("div",{className:"w-1/2",children:u(Se,{data:t,fieldValue:"code",fieldLabel:"name",error:a.region,selected:n,setSelected:e=>l({region:e}),onValidate:e=>r({region:de("region",e)}),label:"Адрес",placeholder:"Выберите адрес"})})]}),Te=x((({value:e=!1,text:t,type:n="checkbox",onChange:l})=>p("div",{role:n,"aria-checked":e,className:"flex justify-start items-center w-full cursor-pointer mb-4",onClick:()=>l&&l(!e),children:[u("div",{className:"relative flex-shrink-0 duration-300 w-9 h-5 mr-3 rounded-2xl "+(e?"bg-primary-main":"bg-main-divider"),children:u("div",{className:"absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded-full "+(e?"left-[50%]":"left-[5%]")})}),u("div",{children:u(re,{size:"text-m",font:"font-light",color:"text-primary-text",children:t})})]}))),$e=({"onlineСheckout":e,posTerminal:t,handleChange:n})=>p("div",{className:"mb-5",children:[u(Te,{value:e,text:"Хочу купить онлайн-кассу",onChange:()=>n({"onlineСheckout":!e})}),u(Te,{value:t,text:"Хочу купить POS-терминал",onChange:()=>n({posTerminal:!t})})]}),Be=(e,t)=>{const n=ee({className:"text-white",version:e?.version});return u("button",{type:"submit",className:`p-4 ${n} ${t}`,children:e?.text?e.text:"Отправить заявку"})},Re=({initialFormState:e,errorsInitialState:t,handleSubmit:n})=>{const[a,i]=l(e),[s,o]=l(t||{}),c=r((e=>i((t=>({...t,...e})))),[]),d=r((e=>o((t=>({...t,...e})))),[]),m=r((async e=>{const t=[],l=Object.keys(a).filter((e=>Object.keys(s).includes(e))).reduce(((e,t)=>(e[t]=a[t],e)),{});for(const[e,n]of Object.entries(l)){const l=de(e,n);t.push(l),d({[e]:l})}t.some((e=>0!==e.length))||n&&await n(e)}),[a]);return{formState:a,handleChange:c,errors:s,handleChangeErrors:d,sendForm:m}},Ve={acquiringType:"Торговый эквайринг",region:"",fullName:"",inn:"",name:"",phone:"","onlineСheckout":!1,posTerminal:!1},Me={acquiringType:"",region:"",fullName:"",inn:"",name:"",phone:""},je=x((e=>{const{button:t,link:n,handleSubmit:l}=e,{formState:a,errors:r,handleChange:i,handleChangeErrors:s,sendForm:o}=Re({initialFormState:Ve,errorsInitialState:Me,handleSubmit:l}),{acquiringType:c,region:d,fullName:m,inn:h,name:x,phone:g,"onlineСheckout":b,posTerminal:f}=a,v=j();return p("form",{onSubmit:e=>{e.preventDefault(),o({typeForm:"acqr",region:v.find((e=>e.code===d))?.name||"",partnerComments:`Вид эквайринга=${c}/Онлайн касса=${b}/POS-терминал=${f}`,fullName:m,inn:h,name:x,phone:g})},className:"container",children:[u(T,{headingType:"h6",title:"Вид эквайринга и регион",className:"text-center mb-4"}),Ie({acquiringType:c,regions:v,region:d,handleChange:i,errors:r,handleChangeErrors:s}),u(T,{headingType:"h6",title:"Данные организации",className:"text-center mb-4"}),pe({fullName:m,inn:h,name:x,phone:g,handleChange:i,errors:r,handleChangeErrors:s}),$e({"onlineСheckout":b,posTerminal:f,handleChange:i}),Be(t,"mb-4"),u(ie,{link:n})]})})),_e=({name:e,phone:t,mail:n,inn:l,handleChange:a,errors:r,handleChangeErrors:i})=>p("div",{className:"flex justify-between gap-5",children:[p("div",{className:"w-1/2",children:[u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Контактное лицо",error:r.name,value:e,onChange:e=>a({name:e}),onBlur:e=>i({name:de("name",e)})}),u(oe,{className:"shrink-0 text-l w-full mb-3",label:"ИНН",error:r.inn,value:l,onChange:e=>a({inn:e}),onBlur:e=>i({inn:de("inn",e)})})]}),p("div",{className:"w-1/2",children:[u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Телефон",error:r.phone,value:t,onChange:e=>a({phone:e}),onBlur:e=>i({phone:de("phone",e)})}),u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Электронная почта",error:r.mail,value:n,onChange:e=>a({mail:e}),onBlur:e=>i({mail:de("mail",e)})})]})]}),Le=({regions:e,region:t,handleChange:n,errors:l,handleChangeErrors:a})=>u("div",{className:"flex justify-between gap-5 mb-5",children:u("div",{className:"w-full",children:u(Se,{data:e,fieldValue:"code",fieldLabel:"name",error:l.region,selected:t,setSelected:e=>n({region:e}),onValidate:e=>a({region:de("region",e)}),label:"Регион",placeholder:"Выберите регион"})})}),Pe={region:"",name:"",phone:"",inn:"",mail:""},De=x((e=>{const{button:t,link:n,handleSubmit:l}=e,{formState:a,errors:r,handleChange:i,handleChangeErrors:s,sendForm:o}=Re({initialFormState:Pe,errorsInitialState:Pe,handleSubmit:l}),{region:c,name:d,phone:m,inn:h,mail:x}=a,g=j();return p("form",{onSubmit:e=>{e.preventDefault(),o({typeForm:"bcrd",region:g.find((e=>e.code===c))?.name||"",name:d,phone:m,inn:h,mail:x})},className:"container",children:[Le({regions:g,region:c,handleChange:i,errors:r,handleChangeErrors:s}),_e({name:d,phone:m,inn:h,mail:x,handleChange:i,errors:r,handleChangeErrors:s}),Be(t,"mb-4"),u(ie,{link:n})]})})),ze=[];const Oe=async e=>await V(e,{method:"GET"})||ze,Ae=["От 50 000 ₽","До 3 000 000 ₽"],Ee=["От 1 года","До 5 лет"],Fe=({fullName:e,inn:t,name:n,phone:l,mail:a,annualRevenue:r,handleChange:i,errors:s,handleChangeErrors:o})=>p("div",{className:"flex justify-between gap-5 mb-7",children:[p("div",{className:"w-1/2",children:[u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Наименование организации",value:e,onChange:e=>i({fullName:e})}),u(oe,{className:"shrink-0 text-l w-full mb-3",label:"ИНН",error:s.inn,value:t,onChange:e=>i({inn:e}),onBlur:e=>o({inn:de("inn",e)})}),u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Телефон",error:s.phone,value:l,onChange:e=>i({phone:e}),onBlur:e=>o({phone:de("phone",e)})})]}),p("div",{className:"w-1/2",children:[u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Годовая выручка, ₽",error:s.annualRevenue,value:r,onChange:e=>i({annualRevenue:e}),onBlur:e=>o({annualRevenue:de("annualRevenue",e)})}),u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Контактное лицо",error:s.name,value:n,onChange:e=>i({name:e}),onBlur:e=>o({name:de("name",e)})}),u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Электронная почта",value:a,onChange:e=>i({mail:e})})]})]}),Ue=e=>new Intl.NumberFormat("ru-RU",{}).format(e),He=(e,t,n)=>Math.max(t,Math.min(e,n)),Ge=e=>e.split(/\s+/).join(""),Xe=x((({className:e,title:t,items:n=[],min:l=1,max:a=100,step:r=1,value:i=l,disabled:s=!1,onChange:o})=>{const c=e=>{o&&o(He(Number(Ge(e.target.value)),l,a))},d={backgroundSize:`${(100*(i-l)/(a-l)).toFixed(2)}% 100%`};return p("div",{className:e,children:[p("label",{className:"block relative",children:[t?u("span",{className:"text-m-light text-primary-text",children:t}):null,u("input",{className:"m-0 mt-2 font-sans text-h3 w-full h-14 border border-solid border-gray rounded-md\n outline-none p-0 pl-4 box-border text-primary-text hover:border-primary-hover focus:border-primary-text disabled:border-gray disabled:bg-main-divider",value:Ue(i),disabled:s,onChange:c,onBlur:c}),u("div",{className:"absolute inset-x-0 -bottom-1 px-4 leading-[18px]",children:u("input",{className:"box-border w-full m-0 cursor-pointer slider",type:"range",min:l,max:a,step:r,value:i,disabled:s,onChange:c,style:d})})]}),We(n)]})}));function We(e){return u("div",{className:"flex justify-between my-2",children:e.map(((e,t)=>u("span",{className:"text-s-light text-secondary-text",children:e},String(t))))})}const Ke=e=>p("div",{className:"w-1/2",children:[u("label",{children:u(re,{size:"text-m-light",children:e.label})}),u(Xe,{...e})]}),Je=({amount:e,term:t,handleChange:n})=>p("div",{className:"flex justify-between gap-5 mb-7",children:[Ke({label:"Сумма кредита, ₽",value:e,onChange:e=>n({amount:e}),min:5e4,max:3e6,items:Ae}),Ke({label:"Срок кредита, месяцев",value:t,onChange:e=>n({term:e}),min:1,max:60,items:Ee})]}),Ye=({regions:e,region:t,branches:n,department:l,handleChange:a,errors:r,handleChangeErrors:i})=>p("div",{className:"flex justify-between gap-5 mb-7",children:[u("div",{className:"w-1/2",children:u(Se,{data:e,fieldValue:"code",fieldLabel:"name",error:r.region,selected:t,setSelected:e=>a({region:e,department:""}),onValidate:e=>i({region:de("region",e)}),label:"Регион",placeholder:"Выберите регион"})}),u("div",{className:"w-1/2",children:u(Se,{data:n,fieldValue:"branchCode",fieldLabel:"address",error:r.department,selected:l,setSelected:e=>a({department:e}),onValidate:e=>i({department:de("department",e)}),label:"Адрес",placeholder:"Выберите адрес"})})]}),qe={amount:5e4,term:12,fullName:"",inn:"",name:"",phone:"",mail:"",region:"",department:"",annualRevenue:""},Ze={annualRevenue:"",inn:"",name:"",phone:"",region:"",department:""},Qe=x((({button:e,link:t,handleSubmit:n})=>{const l=j(),{formState:a,errors:r,handleChange:i,handleChangeErrors:s,sendForm:o}=Re({initialFormState:qe,errorsInitialState:Ze,handleSubmit:n}),{amount:c,term:d,fullName:m,inn:h,name:x,phone:g,mail:b,region:f,department:v,annualRevenue:N}=a,y=function(e){const{data:t}=B(e?`/api/v1/branches?regionCode=${e}`:null,Oe);return t||ze}(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)(z(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||"normal",name:t.icon,...r}):u(at,{className:e,imageClassName:n,image:t,isMobile:l,pathPrefix:a}):null)),ct=x((({className:e,viewBox:t,fill:n="none",width:l,height:a,paths:r,...i})=>u("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:n,width:l,height:a,children:r.map((({d:e,fill:t,...n},l)=>u("path",{d:e,fill:t||"currentColor",...i,...n},l)))}))),dt=[{d:"M10.207.793a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 0 1 1.414-1.414L3.5 6.086 8.793.793a1 1 0 0 1 1.414 0Z",fillRule:"evenodd",clipRule:"evenodd",fill:"white"}],mt=x((({className:e,text:t,checked:n,disabled:l,isRadio:a,onChange:r})=>u("div",{className:e,children:p("label",{className:"flex items-center relative cursor-pointer group/box",children:[u("input",{className:w("peer appearance-none w-5 h-5 border-solid cursor-pointer checked:border-primary-main m-0",a?"rounded-full border-2":"rounded checked:bg-primary-main disabled:bg-main-disabled border",n?"border-black":"border-gray",l?"":"group-hover/box:border-primary-hover"),type:"checkbox",onChange:e=>r&&r(e.target.checked),checked:n,disabled:l}),a?u("div",{className:"left-1 w-3 h-3 rounded-full bg-primary-main hidden absolute peer-checked:block"}):u(ct,{paths:dt,className:"hidden absolute left-1 ml-px peer-checked:block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"}),t?u("span",{className:"font-sans ml-3 text-l-light",children:t}):null]})}))),ht=({currencyControl:e,documentaryOperations:t,conversionOperations:n,text:l,handleChange:a})=>p("div",{className:"mb-6",children:[p("div",{className:"flex items-center mb-4 gap-6",children:[u(mt,{text:"Валютный контроль",checked:e,onChange:e=>a({currencyControl:e})}),u(mt,{text:"Документарные операции",checked:t,onChange:e=>a({documentaryOperations:e})}),u(mt,{text:"Конверсионные операции",checked:n,onChange:e=>a({conversionOperations:e})})]}),u("textarea",{placeholder:"Укажите интересующий вас вопрос, место ведения бизнеса и удобное время для телефонного звонка",className:"block w-full resize-y min-h-24 p-4 outline-none border rounded-md border-main-stroke hover:border-primary-hover active:focus:border-primary-text",value:l,onChange:e=>a({text:e.target.value})})]}),ut=({fullName:e,name:t,phone:n,mail:l,handleChange:a,errors:r,handleChangeErrors:i})=>p("div",{children:[p("div",{className:"flex justify-between gap-5",children:[u("div",{className:"w-1/2",children:u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Наименование организации",error:r.fullName,value:e,onChange:e=>a({fullName:e}),onBlur:e=>i({fullName:de("fullName",e)})})}),u("div",{className:"w-1/2",children:u(oe,{className:"shrink-0 text-l w-full mb-3",label:"ФИО",error:r.name,value:t,onChange:e=>a({name:e}),onBlur:e=>i({name:de("name",e)})})})]}),p("div",{className:"flex justify-between gap-5 mb-7",children:[u("div",{className:"w-1/2",children:u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Телефон",error:r.phone,value:n,onChange:e=>a({phone:e}),onBlur:e=>i({phone:de("phone",e)})})}),u("div",{className:"w-1/2",children:u(oe,{className:"shrink-0 text-l w-full mb-3",label:"Электронная почта",error:r.mail,value:l,onChange:e=>a({mail:e}),onBlur:e=>i({mail:de("mail",e)})})})]})]}),pt={fullName:"",name:"",phone:"",mail:"",currencyControl:!1,documentaryOperations:!1,conversionOperations:!1,text:""},xt={fullName:"",name:"",phone:"",mail:"",text:""},gt=x((e=>{const{button:t,link:n,handleSubmit:l}=e,{formState:a,errors:r,handleChange:i,handleChangeErrors:s,sendForm:o}=Re({initialFormState:pt,errorsInitialState:xt,handleSubmit:l}),{fullName:c,name:d,phone:m,mail:h,currencyControl:x,documentaryOperations:g,conversionOperations:b,text:f}=a;return p("form",{onSubmit:e=>{e.preventDefault(),o({typeForm:"kved",fullName:c,name:d,phone:m,mail:h,partnerComments:`Валютный контроль=${x}/Документарные операции=${g}/Конверсионные операции=${b}/Доп инф=${f}`})},className:"container",children:[u(T,{headingType:"h6",title:"Данные организации",className:"text-center mb-4"}),ut({fullName:c,name:d,phone:m,mail:h,handleChange:i,errors:r,handleChangeErrors:s}),u(T,{headingType:"h6",title:"Интересующий вопрос",className:"text-center mb-4"}),ht({currencyControl:x,documentaryOperations:g,conversionOperations:b,text:f,handleChange:i}),p("div",{className:"flex items-center pb-9 mb-9 border-b border-main-divider",children:[Be(t,"mr-5"),u(ie,{link:n})]}),u(T,{headingType:"h6",title:"Или свяжитесь с нами удобным способом",className:"text-center mb-4"}),p("div",{className:"flex",children:[p("a",{className:"flex items-center text-primary-text no-underline mr-6",href:"tel:8 (800) 200-78-70","aria-label":"8 (800) 200-78-70",children:[u(ot,{image:{icon:"PhoneIcon"},width:"24",height:"24",className:"mr-3"}),u("span",{children:"8 (800) 200-78-70"})]}),p("a",{className:"flex items-center text-primary-text no-underline","aria-label":"ved@rshb.ru",href:"mailto:ved@rshb.ru",children:[u(ot,{image:{icon:"MailIcon"},width:"24",height:"24",className:"mr-3"}),u("span",{children:"ved@rshb.ru"})]})]})]})})),bt=x((({responceType:e})=>{const t="OK"===e;return p("div",{className:`flex items-center mt-5 p-5 rounded-md ${t?"bg-responce-ok":"bg-responce-fail"}`,children:[u(ot,t?{image:{icon:"ResponceOKIcon"},width:"42",height:"42",className:"mr-4"}:{image:{icon:"ResponceFailIcon"},width:"37",height:"34",className:"mr-4"}),p("div",{children:[u(T,{headingType:"h6",title:t?"Ваша заявка отправлена":"Не удалось отправить заявку",className:"mb-1"}),u(re,{size:"text-l-light",color:"text-secondary-text",children:t?"Совсем скоро мы с вами свяжемся":"Пожалуйста, повторите позднее"})]})]})})),ft={credit:e=>u(Qe,{...e}),acquiring:e=>u(je,{...e}),"business-card":e=>u(De,{...e}),deposit:e=>u(tt,{...e}),wed:e=>u(gt,{...e})},vt={send:async function(e){try{const t=await fetch("/api/v1/sendcorporatelead",{method:"POST",headers:{"Content-Type":"application/json"},mode:"cors",body:JSON.stringify(e)});return await t.json()}catch(e){return null}}},Nt=x((e=>{const{className:t="",title:n,typeForm:a="credit",button:i,link:s,...o}=e,[c,d]=l(""),m=r((async e=>{const t=await vt.send(e)?"OK":"Fail";return d(t),t}),[]);return u(k,{className:`font-sans bg-white p-[50px] pb-9 ${t}`,...o,children:p("div",{className:"container max-w-[978px]",children:[n?u(T,{headingType:"h3",title:n,className:"text-center mb-8"}):null,ft[a]({button:i,link:s,handleSubmit:m}),c?u(bt,{responceType:c}):null]})})})),yt=x((({className:e="",title:t,benefitList:n,...l})=>p(k,{className:`p-12 flex flex-col items-center ${e}`,...l,children:[t?u(T,{headingType:"h3",as:"h2",className:"max-w-[47rem] text-center",title:t}):null,n?.length?u("div",{className:"flex flex-wrap w-full justify-center gap-x-20 mt-8",children:n.map(wt)}):null]}))),wt=(e,t)=>{const n=e.description;return p("div",{className:"flex items-center basis-1/2 max-w-[500px] mb-14",children:[e?.icon?.icon?u(ot,{className:"w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider text-primary-main group-data-secondary:bg-white/30 group-data-secondary:text-black",image:e.icon,asSVG:!0}):null,e?.icon?.src?u(ot,{image:e.icon}):null,p("div",{className:"ml-5 h-full",children:[e?.label?u(T,{headingType:"h6",children:e.label}):null,Ct(n)]})]},String(t))},Ct=e=>{const t=e?.benefitType||null;return e&&t?u("div",{className:"mt-2 text-l-light text-secondary-text group-data-secondary:text-white/80",children:"list"===t?St(e):kt(e)}):null},kt=e=>e?.name||null,St=e=>{const t=e?.bullets?"list-disc pl-6":"";return e?.items&&e.items.length>0?u("ul",{className:t,children:e.items.map(((e,t)=>u("li",{children:e},`benefitListItem-${t}`)))}):null},It=(e,{className:t="",buttonClassName:n,isVertical:l}={})=>e?.length&&e.some((e=>e?.text||e?.icon?.icon))?u("div",{className:w("flex",l?"flex-col gap-2":"gap-4",t),children:e.map(Tt(n))}):null,Tt=(e="")=>(t,n)=>{const{text:l,icon:a,iconRight:r,version:i,...s}=t||{},o="secondary"===i?"color":"white";return l||a?.icon?u(te,{className:e,appendLeft:$t({...a,iconVersion:o}),appendRight:$t({...r,iconVersion:o}),version:i,text:l,...s},n?String(n):""):null},$t=e=>e?.icon||e?.src?u(ot,{image:e,width:String(e?.size?.width||24),height:String(24),asSVG:!0}):null,Bt={XXL:{wrapper:"gap-[18px]",title:{headingType:"h0",as:"h1"},descriptionSize:"text-h5"},XL:{wrapper:"gap-4",title:{headingType:"h1",as:"h1"},descriptionSize:"text-xl-light"},L:{wrapper:"gap-4",title:{headingType:"h2",as:"h2"},descriptionSize:"text-xl-light"},M:{wrapper:"gap-3",title:{headingType:"h3",as:"h3"},descriptionSize:"text-xl-light"},S:{wrapper:"gap-2",title:{headingType:"h4",as:"h4"},descriptionSize:"text-xl-light"},XS:{wrapper:"gap-2",title:{headingType:"h5",as:"h5"},descriptionSize:"text-l-light"}},Rt={H6:"text-h6",XL_L:"text-xl-light",XL_R:"text-xl",L_L:"text-l-light",L_R:"text-l",M:"text-m-light",S:"text-s-light",XS:"text-xs-light"},Vt=x((({className:e,title:t,description:n,headlineVersion:l="XL",align:a="text-center",as:r,isPadding:i=!0,isTheme:s=!1,version:o="",...c})=>{const d=Bt[l];return p(k,{className:w("flex flex-col",i?"p-12":"",d.wrapper,e),version:o,isTheme:s,...c,children:[t?u(T,{className:w("whitespace-pre-wrap",a),...d?.title,as:r||d?.title.as,title:t}):null,n?u(ae,{color:"group-data-secondary:text-white/80",size:d.descriptionSize,align:a,children:n}):null]})})),Mt=x((e=>{const{className:t="",title:n,description:l,bonusItems:a,...r}=e;return u(k,{className:`p-12 pb-9 ${t}`,...r,children:p("div",{className:"container",children:[u(Vt,{className:"!p-0",title:n,description:l,headlineVersion:"M"}),u("div",{className:"flex flex-wrap w-full mt-9",children:a?.length?a.map(((e,t)=>p("div",{className:"flex-grow w-[49%] border border-gray p-9 mb-3 mx-2 even:mr-0 odd:ml-0 last:odd:mx-0",children:[e?.title?u(re,{size:"text-h4",children:e.title}):null,e?.description?u("div",{className:"mt-2",children:u(ae,{size:"text-xl",font:"font-light",children:e.description})}):null,p("div",{className:"flex justify-between items-end mt-3",children:[It(e?.buttons),e.bonusItemContent?.bonusType?jt(e.bonusItemContent):null]})]},String(t)))):null})]})})})),jt=e=>u("div",{children:"count"===e.bonusType?_t(e):Lt(e)}),_t=e=>p("div",{className:"relative -bottom-3 h-auto flex items-end mt-14 shrink-0",children:[e.bonusCount?u("span",{className:"font-mohave -tracking-[5px] text-title-extra bg-clip-text text-transparent bg-green-to-yellow -mb-7",children:e.bonusCount}):null,e.bonusName?u("span",{className:"text-h2 bg-clip-text text-transparent bg-green-to-yellow",children:e.bonusName}):null]}),Lt=e=>e.image?u(ot,{className:"w-12 h-12 min-w-12 p-3 rounded-full",image:e.image}):null,Pt={left:"text-left",center:"text-center",right:"text-right"},Dt=x((({bonusBenefits:e,cardTextAlign:t="center",className:n="",columnsCount:l="4",subtitle:a,title:r,...i})=>p(k,{className:`font-sans text-primary-text bg-white p-12 flex flex-col text-center ${n}`,...i,children:[u(Vt,{className:"!p-0 mb-8",title:r,description:a,headlineVersion:"M"}),e?.length?u("div",{className:`grid gap-1 ${Pt[t]} ${Ot(l)}`,children:e.map(zt)}):null]}))),zt=({icon:e,title:t,description:n},l)=>p("div",{className:w("flex flex-col items-center text-h6",n||t?"":"justify-center"),children:[t?u("span",{children:t}):null,e?u(ot,{image:e,height:"180",className:"w-auto"}):null,n?u("span",{children:n}):null]},String(l)),Ot=e=>{switch(e){case"3":return"grid-cols-3";case"4":return"grid-cols-4";default:return"grid-cols-5"}},At=x((e=>{const{title:t,image:n,cardItems:l,button:a}=e;return p("div",{className:"border-gray border p-9 w-1/2",children:[n?p("div",{className:"flex justify-center",children:[n?.src?u(ot,{className:"mb-5",image:n}):null,n?.icon?u(ot,{image:n,asSVG:!0}):null]}):null,t?u(T,{headingType:"h4",title:t,className:"mb-6"}):null,l?.length?u("ul",{children:l.map(((e,t)=>Et(e,String(t))))}):null,It([a],{buttonClassName:"mt-6"})]})})),Et=(e,t)=>{const{icon:n,text:l}=e;return p("li",{className:"flex items-center gap-3.5 mb-3 last:mb-0",children:[n?.icon?u(ot,{image:n,className:"w-12 h-12 min-w-12 p-3 rounded-full bg-main-divider",asSVG:!0}):null,n?.src?u(ot,{image:n}):null,u("span",{className:"text-xl-light",children:l})]},t)},Ft=x((({className:e="",title:t,cards:n,...l})=>p(k,{className:`p-12 pb-9 ${e}`,...l,children:[u(T,{headingType:"h3",title:t,className:"text-center mb-8"}),u("div",{className:"flex gap-5",children:n?.length?n.map(((e,t)=>u(At,{...e},String(t)))):null})]}))),Ut=x((({button:e,className:t,...n})=>u(k,{className:w("!bg-transparent",t),...n,children:It([e])}))),Ht=e=>{const{itemCount:t,visibleItemCount:n}=e,[a,i]=l(0),s=r((()=>i((e=>Math.min(e+1,t-1)))),[t]),o=r((()=>i((e=>Math.max(e-1,0)))),[t]),c=function({itemCount:e,visibleItemCount:t}){return Boolean(t&&e>t)}(e)&&a<t-(n||1),d=a>0;return[a,{inc:s,dec:o,canInc:c,canDec:d,isScrollAvailable:d||c}]};const Gt=x((({className:e,disabled:t,...n})=>u(te,{rounded:!0,className:`group/btn shadow-[0_4px_25px_rgba(0,0,0,0.07)] w-12 h-12 min-h-12 max-h-12 flex items-center justify-center ${t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main"} ${e||""}`,disabled:t,...n,children:u(ot,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border",image:{icon:"ArrowLeftIcon",iconVersion:"black"},imageClassName:"group-hover/btn:text-primary-main",width:"16",height:"16",asSVG:!0})}))),Xt=x((e=>u(Gt,{...e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}))),Wt=x((e=>u(Gt,{...e,className:`${e.className||""} rotate-180`,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"})));function Kt({dec:e,inc:t,canDec:n,canInc:l,btnClass:a,className:r=""}){return n||l?p("div",{children:[n?u(Gt,{className:`absolute z-40 ${a[0]} ${r}`,onClick:e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left",disabled:!n}):null,l?u(Gt,{className:`absolute z-40 rotate-180 ${a[1]} ${r}`,onClick:t,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right",disabled:!l}):null]}):null}const Jt=x((({title:e,value:t,postfix:n="",prefix:l,className:a=""})=>p("div",{className:w("mb-7",a),children:[e?u(re,{size:"text-l-light",color:"text-secondary-text",children:e}):null,u("div",t?{children:p(re,{size:"text-h3",children:[l," ",Ue(Math.round(t))," ",n]})}:{children:u(re,{size:"text-h3",children:"-"})})]}))),Yt=Math.round(23.5),qt={minSum:1e4,maxSum:5e6,minMonths:13,maxMonths:60,rate:12.5,isSalaryClient:!1,isPensionClient:!1,isStateEmployee:!1,isInsurance:!0},Zt={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},Qt={minSum:5e4,maxSum:5e6,minMonths:2,maxMonths:10,rate:0,isMonthlyInterestPayment:!0,isRemoteRegistration:!0},en={minSum:1e3,maxSum:5e5,minDays:1,maxDays:1095,rate:0,isMonthlyInterestPayment:!0,isReplenished:!1,isPartialWithdrawal:!1,isSmallBusiness:!1,depositeName:"Депозит 'Стабильный'"},tn=x((({rate:e,title:t="Ставка",unit:n,depositeName:l,isShowDepositeName:a,rateBlockClassName:r})=>p("div",{children:[u(re,{size:"text-l-light",color:"text-secondary-text",children:t}),p("div",{className:"relative",children:[p("div",{className:"flex justify-start",children:[u("span",{className:w("block gradient-color-text font-mohave text-title-huge pr-6 -mt-4",r),children:String(e.toFixed(2)).replace(".",",")}),n?u("span",{className:"gradient-color-text text-[65px] leading-[75px]",children:n}):""]}),l&&a?u("div",{className:"absolute bottom-7 w-full text-center whitespace-nowrap",children:l}):null]})]}))),nn=e=>e?u(ae,{size:"text-s-light",color:"text-secondary-text",children:e}):null,ln=1e3;function an(e,t,n){const{moneyValue:l,minSum:a,maxSum:r,step:i=ln,isShowItems:s=!0}=t,o=[`От ${Ue(a)} ₽`,`До ${Ue(r)} ₽`];return u(Xe,{title:e,items:s?o:[],min:a,max:r,step:i,value:He(l,a,r),onChange:n})}function rn(e){const{data:t}=B(`/wcms-resources/${e}.json`,M);return t}const sn=(e,t)=>{const{travelExpenseValue:n,restExpenseValue:l}=e,a=rn(t||"bonus-calculator-data")||Zt,[r,i]=((e,t,n)=>{const{minSumTravel:l,minSumOther:a,maxBonus:r,prefMonthsNum:i,prefTravelBonusRate:s,prefRestBonusRate:o,travelBonusRate:c,restBonusRate:d}=e;if(t===l&&n===a)return[0,0];const m=Math.min(Math.round(s*t)+Math.round(o*n),r);return[m,m*i+Math.min(Math.round(c*t)+Math.round(d*n),r)*(12-i)]})(a,n,l);return{...a,...e,monthBonus:r,yearBonus:i}},on=x((({className:e="",sourceBookDir:t="",buttons:n,footnote:a})=>{const[i,s]=l(6e3),o=r((e=>s(e)),[]),[c,d]=l(6e3),m=r((e=>d(e)),[]),h={travelExpenseValue:i,restExpenseValue:c},{minSumTravel:x,maxSumTravel:g,minSumOther:b,maxSumOther:f,monthBonus:v,yearBonus:N}=sn(h,t);return p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-[468px]",children:[an("Сумма покупок в категории путешествия, ₽",{minSum:x,maxSum:g,moneyValue:i,step:500,isShowItems:!1},o),an("Сумма покупок в остальных категориях, ₽",{className:"mt-7",minSum:b,maxSum:f,moneyValue:c,step:500,isShowItems:!1},m)]}),u("div",{children:v>=0?u(tn,{title:"Баллов за месяц",rate:v,rateBlockClassName:"tracking-[-14px]"}):null}),p("div",{className:"w-full max-w-[350px]",children:[N>=0?u(Jt,{title:"Баллов за год",value:N}):null,It(n,{className:"mt-7",isVertical:!0}),nn(a)]})]})}));function cn(e,t,n){const{minDays:l,maxDays:a,daysValue:r}=t,i=e=>`${e} ${Number(e)%10==1?"дня":"дней"}`;return u(Xe,{className:"mt-7",title:e,items:[`От ${i(l)}`,`До ${i(a)}`],min:l,max:a,step:1,value:He(r,l,a),onChange:n})}const dn={horizontal:"gap-10",vertical:"flex-col gap-3"},mn=x((({items:e,checkedItem:t,onChange:n,orientation:l="horizontal"})=>u("div",{className:`flex ${dn[l]}`,children:e?.map((({id:e,text:l})=>u(mt,{isRadio:!0,text:l,checked:t===e,onChange:()=>n&&n(e)},String(e))))}))),hn="everyMonth",un="atEndTerm",pn=[{id:hn,text:"Ежемесячно"},{id:un,text:"В конце срока"}];function xn({isMonthlyInterestPayment:e,callback:t,title:n,orientation:l="horizontal"}){return p("div",{children:[n?u("div",{className:"mb-3",children:u(re,{color:"text-secondary-text",font:"font-light",children:n})}):null,u("div",{children:u(mn,{orientation:l,items:pn,checkedItem:e?hn:un,onChange:e=>t&&t(e===hn)})})]})}const gn=x((({title:e="Ставка"})=>p("div",{children:[u(re,{size:"text-l-light",color:"text-secondary-text",children:e}),u("div",{className:"mt-1 pt-1 pl-5 pb-1.5",children:u(ot,{image:{icon:"PercentIcon"},width:"90",height:"85",asSVG:!0})}),u("div",{className:"w-[250px] mt-3.5",children:p(ae,{size:"text-xl-light",color:"text-primary-text",children:["Процентная ставка для срока ",u("strong",{children:"1-30 дней"})," устанавливается при обращении в Банк"]})})]}))),bn=e=>e,fn=(e=bn)=>t=>t.reduceRight(((t,n)=>e(t)>e(n)?t:n)),vn=fn(),Nn=e=>{const t=[...e];t.sort((([e],[t])=>e-t));let n=1;for(;n<t.length;){const[e,l]=t[n-1],[a,r]=t[n];l>=a?t.splice(n-1,2,[e,Math.max(l,r)]):n++}return t},yn=(e=bn)=>fn((t=>-e(t))),wn=([e,t],n=[])=>({[e]:n.length?yn()(n.map((t=>t[e]))):0,[t]:n.length?fn()(n.map((e=>e[t]))):0}),Cn=(e,[t,n],l)=>e>=l[t]&&e<=l[n],kn=(e,t)=>e?t.isReplenished&&t.isPartialWithdrawal:!t.isReplenished&&!t.isPartialWithdrawal,Sn=(e,t)=>{const{isMonthlyInterestPayment:n,moneyValue:l,daysValue:a}=t;return n?Math.round(l*Math.pow((1200+e)/1200,a/30)-l):Math.round(l*e*a/365/100)},In=x((({className:e="",sourceBookDir:t,buttons:n,footnote:a,bottomFootnote:i,isShowDepositeName:s})=>{const[o,c]=l(1e5),d=r((e=>c(e)),[]),[m,h]=l(90),x=r((e=>h(e)),[]),[g,b]=l(!1),f=r((e=>b(e)),[]),[v,N]=l(!1),y=r((e=>N(e)),[]),[w,C]=l(!1),k=r((e=>C(e)),[]),[S,I]=l(!1),T=r((e=>I(e)),[]),$=((e,t)=>{const{daysValue:n,moneyValue:l,isPartialWithdrawal:a,isReplenished:r,isSmallBusiness:i,isMonthlyInterestPayment:s}=e,o=rn(t||"business-calculator-data"),c=r||a,d=n<90||n>730;if(n<=30)return{...en,...e,isDisabledOperatingDeposit:d,isShowUnknownRate:!0};const m=o?.rows?.find((e=>s===e.isMonthlyInterestPayment&&i===e.isSmallBusiness&&kn(c,e)&&Cn(l,["minSum","maxSum"],e)&&Cn(n,["minDays","maxDays"],e)))||en,{rate:h}=m,u=Sn(h,e),p=l+u,x=o?.rows||[en];return{...m,...wn(["minSum","maxSum"],x),...wn(["minDays","maxDays"],x),...e,isDisabledOperatingDeposit:d,income:u,finalSum:p}})({moneyValue:o,daysValue:m,isReplenished:g,isPartialWithdrawal:v,isSmallBusiness:w,isMonthlyInterestPayment:S},t),{income:B,finalSum:R,rate:V,depositeName:M,isShowUnknownRate:j}=$;return p("section",{className:e,children:[p("div",{className:"flex justify-between",children:[p("div",{className:"w-[486px]",children:[an("Сумма вклада, ₽",$,d),cn("Срок вклада, дни",$,x),p("div",{className:"mt-7 flex justify-between",children:[Tn({...$,handleIsReplenished:f,handleIsPartialWithdrawal:y,handleIsSmallBusiness:k}),xn({isMonthlyInterestPayment:S,callback:T,title:"Выплата процентов",orientation:"vertical"})]})]}),j?u(gn,{}):u(tn,{rate:V,depositeName:M,isShowDepositeName:s,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-full max-w-[350px]",children:[u(Jt,{title:"Доход по вкладу",value:B,postfix:"₽",prefix:"+"}),u(Jt,{title:"Сумма в конце срока",value:R,postfix:"₽"}),It(n,{className:"mt-7",isVertical:!0}),u("div",{className:"mt-7",children:nn(a)})]})]}),u("div",{className:"mt-5",children:nn(i)})]})})),Tn=({isDisabledOperatingDeposit:e,isReplenished:t,isPartialWithdrawal:n,isSmallBusiness:l,handleIsReplenished:a,handleIsPartialWithdrawal:r,handleIsSmallBusiness:i})=>p("div",{children:[u(mt,{text:"Пополнение",disabled:e,checked:t,onChange:a}),u(mt,{className:"mt-3",disabled:e,text:"Частичное снятие",checked:n,onChange:r}),u(mt,{className:"mt-3",text:"Являюсь малым предприятием",checked:l,onChange:i})]}),$n=x((({className:e,title:t,items:n=[],list:l=[],value:a=l[0],disabled:r=!1,onChange:i})=>{const s=l.length-1,o=e=>{if(!i)return;const t=parseInt(e.target.value),n=l.reduce((function(e,n){return Math.abs(n-t)<Math.abs(e-t)?n:e}));i(Number(Ge(n.toString())))},c=l.findIndex((e=>e===a))||0,d={backgroundSize:`${(100*(c-0)/(s-0)).toFixed(2)}% 100%`};return p("div",{className:e,children:[p("label",{className:"block relative",children:[t?u("span",{className:"text-m-light text-primary-text",children:t}):null,u("input",{className:"m-0 mt-2 font-sans text-h3 w-full h-14 border border-solid border-gray rounded-md\n outline-none p-0 pl-4 box-border text-primary-text hover:border-primary-hover focus:border-primary-text disabled:border-gray disabled:bg-main-divider",value:Ue(a),disabled:r,onChange:o,onBlur:o}),l.length?u("div",{className:"absolute w-full flex justify-between -bottom-[3px] px-4",children:l.map(Bn(c,r))}):null,u("div",{className:"absolute inset-x-0 -bottom-1 px-4 leading-[18px]",children:u("input",{className:"box-border w-full m-0 cursor-pointer slider relative z-10",type:"range",min:0,max:s,step:1,value:c,disabled:r,onChange:e=>{if(!i)return;const t=l.at(He(parseInt(e.target.value),0,s))||0;i(Number(Ge(t.toString())))},style:d})})]}),Rn(n)]})})),Bn=(e,t)=>(n,l)=>u("span",{className:"w-2 h-2 rounded-full "+(e<=l||t?"bg-gray":"bg-primary-main")},String(l));function Rn(e){return u("div",{className:"flex justify-between my-2",children:e.map(((e,t)=>u("span",{className:"text-s-light text-secondary-text",children:e},String(t))))})}function Vn(e,t,n){const{minMonths:l,maxMonths:a,monthsValue:r,availableMonths:i}=t,s=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`;return i?.length?u($n,{className:"mt-7",title:e,items:[`От ${s(l)}`,`До ${s(a)}`],list:i,value:He(r,l,a),onChange:n}):u(Xe,{className:"mt-7",title:e,items:[`От ${s(l)}`,`До ${s(a)}`],min:l,max:a,step:1,value:He(r,l,a),onChange:n})}const Mn="annuity",jn="differential",_n=[{id:Mn,text:"Аннуитетный"},{id:jn,text:"Дифференцированный"}];function Ln({isAnnuity:e,callback:t,title:n,orientation:l="horizontal"}){return p("div",{children:[n?u("div",{className:"mb-3",children:u(re,{color:"text-secondary-text",font:"font-light",children:n})}):null,u(mn,{orientation:l,items:_n,checkedItem:e?Mn:jn,onChange:e=>t&&t(e===Mn)})]})}const Pn=(e,t,n)=>{const{moneyValue:l,monthsValue:a}=e,r=rn(t||"credit-calculator-data"),i=!n?.isShowSalaryClient,s=!n?.isShowStateEmployee,o=!n?.isShowPensionClient,c=!n?.isShowInsurance,d=r?.rows?.find((t=>Dn({row:t,userInputParams:e,paramKey:"isSalaryClient",isExclude:i})&&Dn({row:t,userInputParams:e,paramKey:"isStateEmployee",isExclude:s})&&Dn({row:t,userInputParams:e,paramKey:"isPensionClient",isExclude:o})&&Dn({row:t,userInputParams:e,paramKey:"isInsurance",isExclude:c})&&Cn(l,["minSum","maxSum"],t)&&Cn(a,["minMonths","maxMonths"],t)))||qt,{rate:m}=d,h=((e,t)=>{const{isAnnuity:n,moneyValue:l,monthsValue:a}=t;if(0===e)return 0;if(n){const t=e/1200;return l*(t+t/(Math.pow(1+t,a)-1))}return Math.round(l/a)+l*(e/1200)})(m,e),u=r?.rows||[qt];return{...d,...wn(["minSum","maxSum"],u),...wn(["minMonths","maxMonths"],u),...e,monthlyPayment:h}},Dn=({row:e,userInputParams:t,paramKey:n,isExclude:l})=>l||t[n]===e[n],zn=x((({className:e="",sourceBookDir:t,buttons:n,footnote:a,paramsViewSettings:i})=>{const[s,o]=l(!1),[c,d]=l(!1),m=r((e=>d(e)),[]),[h,x]=l(!1),g=r((e=>x(e)),[]),[b,f]=l(!1),v=r((e=>f(e)),[]),[N,y]=l(!0),C=r((e=>y(e)),[]),[k,S]=l(2e5),I=r((e=>S(e)),[]),[T,$]=l(Yt),B=r((e=>$(e)),[]),R=Pn({isAnnuity:s,isInsurance:N,isSalaryClient:c,isPensionClient:b,isStateEmployee:h,moneyValue:k,monthsValue:T},t,i);return p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-[468px]",children:[an("Сумма кредита, ₽",{...R,step:500},I),Vn("Срок кредита, месяцев",R,B),u("div",{className:"mt-7",children:An({...R,...i,handleIsSalaryClient:m,handleIsStateEmployee:g,handleIsPensionClient:v,handleIsInsurance:C})})]}),On(R.rate),p("div",{className:"w-full max-w-[350px]",children:[u(Jt,{title:"Ежемесячный платеж",value:R.monthlyPayment,postfix:"₽"}),Ln({isAnnuity:s,orientation:"vertical",callback:o}),It(n,{className:"mt-7",isVertical:!0}),nn(a)]})]})})),On=e=>u(tn,{title:"Ставка",rate:e,rateBlockClassName:"tracking-[-25px]",unit:"%"}),An=({isSalaryClient:e,isStateEmployee:t,isPensionClient:n,isInsurance:l,isShowSalaryClient:a,isShowStateEmployee:r,isShowPensionClient:i,isShowInsurance:s,handleIsSalaryClient:o,handleIsStateEmployee:c,handleIsPensionClient:d,handleIsInsurance:m})=>p("div",{children:[a?u(mt,{text:"Получаю зарплату на счёт в Россельхозбанке",checked:e,onChange:o}):null,r?u(mt,{className:"mt-3",text:"Работаю в бюджетной организации",checked:t,onChange:c}):null,i?u(mt,{className:"mt-3",text:"Получаю пенсию на карту Россельхозбанка",checked:n,onChange:d}):null,s?u(mt,{className:"mt-3",text:"Комплексная страховая защита",checked:l,onChange:m}):null]}),En="remote",Fn="office",Un=[{id:Fn,text:"Офис Банка"},{id:En,text:"Дистанционно"}];function Hn({isRemoteRegistration:e,callback:t,title:n,orientation:l="horizontal"}){return p("div",{children:[n?u("div",{className:"mb-3",children:u(re,{color:"text-secondary-text",font:"font-light",children:n})}):null,u("div",{children:u(mn,{orientation:l,items:Un,checkedItem:e?En:Fn,onChange:e=>t&&t(e===En)})})]})}const Gn=(e,t,n)=>{const{moneyValue:l,monthsValue:a}=e,r=rn(t||"deposit-calculator-data"),i=r?.rows[0]?Kn(r.rows[0].minMonths,r.rows[0].maxMonths):1,s=!n?.isShowMonthlyInterestPayment,o=!n?.isShowRemoteRegistration,c=r?.rows?.find((t=>Wn({row:t,userInputParams:e,paramKey:"isMonthlyInterestPayment",isExclude:s})&&Wn({row:t,userInputParams:e,paramKey:"isRemoteRegistration",isExclude:o})&&Cn(l,["minSum","maxSum"],t)&&Cn(a||i,["minMonths","maxMonths"],t)))||Qt,{rate:d}=c,m=Xn(d,e),h=l+m,u=r?.rows||[Qt];return{...c,...wn(["minSum","maxSum"],u),...wn(["minMonths","maxMonths"],u),availableMonths:Nn(u.map((e=>[e.minMonths,e.maxMonths]))).flatMap((([e,t])=>((e,t,n=1)=>Array.from({length:Math.abs(t-e)/n+1},((l,a)=>t>=e?e+a*n:e-a*n)))(e,t))),...e,defaultMonth:i,income:m,finalSum:h}},Xn=(e,t)=>{const{isMonthlyInterestPayment:n,moneyValue:l,monthsValue:a}=t;return n?Math.round(l*Math.pow((1200+e)/1200,a)-l):Math.round(l*e*30*a/365/100)},Wn=({row:e,userInputParams:t,paramKey:n,isExclude:l})=>l||t[n]===e[n],Kn=(e,t)=>e+Math.round((t-e)/2),Jn=x((({className:e="",sourceBookDir:t,buttons:n,footnote:i,paramsViewSettings:s})=>{const[o,c]=l(2e4),d=r((e=>c(e)),[]),[m,h]=l(0),[x,g]=l(!1),b=r((e=>g(e)),[]),[f,v]=l(!1),N=r((e=>v(e)),[]),y={moneyValue:o,monthsValue:m,isMonthlyInterestPayment:x,isRemoteRegistration:f},C=r((e=>h(e)),[]),k=Gn(y,t,s),{defaultMonth:S,income:I,finalSum:T,rate:$}=k;return a((()=>{h(S)}),[S]),p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-[468px]",children:[an("Сумма вклада, ₽",{...k},d),Vn("Срок вклада, месяцев",{...k},C),u("div",{className:"mt-7",children:Yn({...k,...s,handleIsMonthlyInterestPayment:b,handleIsRemoteRegistration:N})})]}),u(tn,{rate:$,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-full max-w-[350px]",children:[u(Jt,{title:"Доход по вкладу",value:I,postfix:"₽",prefix:"+"}),u(Jt,{title:"Сумма в конце срока",value:T,postfix:"₽"}),It(n,{className:"mt-7",isVertical:!0}),nn(i)]})]})})),Yn=({isMonthlyInterestPayment:e,isRemoteRegistration:t,isShowMonthlyInterestPayment:n,isShowRemoteRegistration:l,handleIsMonthlyInterestPayment:a,handleIsRemoteRegistration:r})=>p("div",{className:"flex flex-col gap-y-7",children:[n?xn({isMonthlyInterestPayment:e,callback:a,title:"Выплата процентов"}):null,l?Hn({isRemoteRegistration:t,callback:r,title:"Оформление"}):null]}),qn={CreditCalculatorForm:zn,DepositCalculatorForm:Jn,BusinessDepositCalculatorForm:In,BonusCalculatorForm:on},Zn=(e,t)=>{const n=e?.calcType;if(!n||!(n in qn))return null;const l=qn[n];return u("section",{className:"box-border relative bg-white flex shrink-0 self-start basis-full",role:"listitem",children:p("div",{className:"box-border p-9 w-full",children:[e?.title?u(T,{className:"text-center mb-6",title:e.title}):null,u(l,{...e})]})},String(t))},Qn=x((({className:e="",calculatorTabs:t=[],...n})=>{const a=t.map((e=>e.nav||{})),i=t.map((({calculatorBlock:e})=>e||{})),[s,o]=l(0),c=r((e=>o(e)),[]),[d,m]=Ht({itemCount:t?.length,visibleItemCount:3});return p(k,{className:`box-border overflow-hidden relative w-100 ${e}`,...n,children:[p("div",{className:"bg-white",children:[a.length>1?el({activeIndex:d,tabsNav:a,slideIndexShift:s,onClick:c}):null,Kt({...m,btnClass:["left-3","right-3"],className:"top-8"})]}),u("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:i?.length?i.map(Zn):null})]})}));function el({activeIndex:e,tabsNav:t,slideIndexShift:n,onClick:l}){return p("div",{children:[u("div",{style:{transform:`translateX(-${388*e}px)`},className:"flex flex-col justify-end items-center h-[126px] pt-9 box-border duration-1000",children:u("div",{className:"w-full flex flex-nowrap items-end gap-2",children:t.map(((e,t)=>function({tab:e,i:t,isActive:n,onClick:l}){const a=n?"h-[88px] w-[387px] min-w-[387px] p-5 border-none bg-primary-main text-white":"h-[77px] w-[328px] min-w-[328px] px-5 py-4 ease-in duration-300 bg-white text-primary-text",r=n?"text-xl mb-1.5":"text-l mb-[3px]",i=n?"text-l-light text-white":"text-m-light text-secondary-text",s=n?"":"text-primary-main",o=e?.icon?.iconVersion,c=n?"white":"normal";return p("button",{type:"button",onClick:l,"aria-label":e?.title,className:`box-border relative border border-gray cursor-pointer text-left border-b-0 flex hover:h-[88px]\n ${a}`,children:[u(ot,{className:`h-6 w-6 min-w-6 min-h-6 mr-4 ${s}`,image:{...e?.icon,iconVersion:o??c},width:"24",height:"24",asSVG:!0}),p("div",{className:"border-0",children:[u("div",{className:`${r}`,children:e?.title}),u("div",{className:`${i}`,children:e.description})]})]},String(t))}({tab:e,i:t,isActive:Boolean(t===n),onClick:()=>l(t)})))})}),u("div",{className:"w-full h-2 bg-primary-main"})]})}const tl=e=>(e.match(/\./g)||[]).length>1?e.slice(0,e.lastIndexOf(".")):e,nl=e=>{const t=0===e.indexOf("0")&&2===e.length?e.replace("0","0."):e;return t.startsWith(".")?t.replace(".","0."):t},ll=e=>String(e.replace(",",".").replace(/[^.\d]/g,"")),al=x((({className:e="",onChange:t,minValue:n=0,maxValue:l=3e5,...a})=>{const i=r((e=>{if(!t)return;const a=tl(nl(ll(Ge(e))));const r=rl(a,He(Number(a),n,l));t(String(r))}),[t]),s=r((e=>{var n;t&&t((n=e,new Intl.NumberFormat("ru-RU",{minimumFractionDigits:0,maximumFractionDigits:2}).format(Number(Ge(n))).replace(",",".")))}),[t]);return u(se,{className:e,inputClassName:"w-full",onChange:i,onBlur:s,...a,children:u("span",{className:"text-xl-light absolute right-4 bottom-4",children:"₽"})})})),rl=(e,t)=>Number(e)===t?e:String(t),il=x((({className:e="",title:t="Укажите сумму перевода",label:n="Сумма перевода",placeholder:a="1500",button:i,...s})=>{const[o,c]=l(""),d=r((e=>c(e)),[]),m=!Number(Ge(o)),h=m?Q({version:i?.version}):ee({className:"text-white",version:i?.version}),x=H();return p(k,{className:`p-12 flex flex-col items-center ${e}`,...s,children:[t?u(T,{className:"max-w-[684px] pb-9",headingType:"h2",title:t}):null,p("form",{className:"w-[468px]",method:"POST",action:"https://www.rshb.ru/p2p/",children:[u(al,{name:"amount",value:o,onChange:d,valid:""===o||!m,placeholder:a,label:n}),i?.text?u("button",{type:"submit",className:`w-full p-4 mt-6 ${h} `,disabled:m,...x(i),children:i.text}):null]})]})})),sl=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),ol=[];function cl(e,t,{className:n,...l}={}){const{key:a,blockDecorator:r=sl,blocksRegistry:i={},ancestors:s=ol}=t,{type:o}=e;o&&o in i||console.warn(`No block with "${o}" is registered`);const c=o&&i[o];return r({blockClassName:w("scroll-mt-12",n,e.style||"col-span-12"),block:e,ancestors:s,render:({block:n,blockClassName:r})=>{const{content:i}=n;return c?u(c,{className:r,block:e,options:t,...i,...l},a):null}},a)}const dl=[],ml=(e,{key:t,ancestors:n=dl,slotName:l=null,renderProps:a=cl,...r})=>(e||[]).map(((e,i)=>a(e,{...r,key:`${t||e.type}-${i}`,ancestors:r.parent?[...n||dl,[r.parent,l]]:n})));function hl({children:e,block:t,options:n,renderProps:l}){return e||(t&&n?ml(t.blocks,{...n,parent:t,renderProps:l}):null)}const ul=e=>({height:"calc(100vh - 242px)",minHeight:`${e||866}px`}),pl=x((({className:e="",style:t,idx:n,activeIndex:l,observerOptions:a,children:i,onIntersection:s})=>{const o=v(r((e=>{e.length&&s&&s(n||0,e[e.length-1])}),[s,n]),a);return u("div",{className:`inline-block snap-always box-border ${e}`,style:t,"aria-current":Boolean(n===l),ref:o,children:i})})),xl=["min-w-[100%]","min-w-[50%]","min-w-[33.33%]","min-w-[25%]"],gl=x((({className:e="",containerRef:t,activeIndex:n,visibleItemCount:l=0,gap:a=0,padding:i=0,listType:o="horizontal-list",snapAlign:c="snap-center",minHeight:d,children:m,onVisibleItemsChange:h,onVisibleIndicesChange:p})=>{const x={sensitivity:1,rootRef:t},g=s([]),b=r(((e,t)=>{const n=[...g.current||[]];n[e]=t,g.current=n,h&&h(n),p&&p(fl(n))}),[h,p]),f=l>0?a*Number(l)-1:0,v="vertical-list"===o,N="horizontal-list"===o,y={...N?bl(i,f):{},...v?ul(d):{},gap:`${a}px`};return u("div",{className:w("box-border overflow-auto no-scrollbar",o,e),style:y,ref:t,children:(C=(e,t)=>u(pl,{className:w(c,l?xl[l-1]:"",v?"h-full":""),style:N?bl(i/4):{},activeIndex:n,idx:t,observerOptions:x,onIntersection:b,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(C):C(e,0))(m)});var C})),bl=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),fl=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),vl={"horizontal-list":"mx-auto mt-5 w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},Nl={"horizontal-list":"w-6","vertical-list":"h-6"},yl=x((({containerRef:e,activeIndex:t,dotCount:n=0,listType:l="horizontal-list",version:a})=>n?u("div",{className:w("flex gap-2",vl[l],a?"group":""),...a?{"data-ver":a}:{},children:new Array(n).fill(null).map(((n,a)=>u("div",{className:`cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white group-data-transparent:bg-white ${a===t?Nl[l]:"w-2 h-2 opacity-30"}`,role:"button","aria-hidden":!0,onClick:()=>(n=>{n!==t&&e?.current&&e.current.children[n]?.scrollIntoView({behavior:"smooth",block:"nearest"})})(a)},String(a))))}):null)),wl=e=>t=>e.scrollWidth/t,Cl=e=>(t,n)=>{e.scrollBy({left:n*wl(e)(t),behavior:"smooth"})},kl=({itemCount:e,isCyclic:t,onVisibleIndicesChange:n})=>{const a=s(null),[i,o]=l([]),c=r((e=>{o((t=>{return(n=t)===(l=e)||Boolean(n&&l&&n?.length===l?.length&&n.every(((e,t)=>e===l[t])))?t:e;var n,l})),n&&n(e)}),[e]),[d,m]=i.length?[yn()(i),fn()(i)]:[-1,-1],h=d>0,u=m<e-1,p=r((()=>{var n;a.current&&(t&&!h?(n=a.current).scrollTo({left:n.scrollWidth,behavior:"smooth"}):Cl(a.current)(e,-1))}),[t,e,h]),x=r((()=>{a.current&&(t&&!u?a.current.scrollTo({left:0,behavior:"smooth"}):Cl(a.current)(e,1))}),[e,t,u]);return[a,{scrollLeft:p,scrollRight:x,canScrollLeft:t||h,canScrollRight:t||u,visibleIndicesRange:[d,m],handleVisibleIndicesChange:c}]},Sl="absolute top-[calc(50%-24px)] z-40",Il="absolute top-0 bottom-0 z-40 w-[84px] pointer-events-none",Tl=x((({scroll:e,arrowsPadded:t,isBlur:n,onScrollLeft:l,onScrollRight:a,hasEdgeBlocks:i,activeIndex:s,itemCount:o})=>{const{canScrollLeft:c,canScrollRight:d,scrollLeft:m,scrollRight:h}=e,x=i?s>0:c,g=i?s<o-1:d,b=r((()=>{i?(c&&s!==o-1&&m(),l()):m()}),[m,l,i,c,s,o]),f=r((()=>{i?(d&&0!==s&&h(),a()):h()}),[h,a,i,c,s,o]);return p("div",{children:[$l(n,e),x?u(Xt,{className:w(Sl,t?"left-8":"left-0"),onClick:b}):null,g?u(Wt,{className:w(Sl,t?"right-8":"right-0"),onClick:f}):null]})})),$l=(e,t)=>(t.canScrollLeft||t.canScrollRight)&&e?p("div",{children:[u("div",{className:w(Il,"left-0 bg-opacity-from-white")}),u("div",{className:w(Il,"right-0 bg-opacity-to-white")})]}):null,Bl=x((({className:e="",itemCount:t,visibleItemCount:n,isBlur:a=!0,isCyclic:i=!1,arrowsPadded:s=!0,isPadding:o=!0,showDots:c=!1,isAlignCenter:d=!1,...m})=>{const{blocks:h=[]}=m.block||{},x=t||h?.length,[g,b]=l(Math.floor((n||0)/2)),f=r((()=>b((e=>e+1))),[]),v=r((()=>b((e=>e-1))),[]),[N,y]=kl({itemCount:x,isCyclic:i}),[C]=y.visibleIndicesRange,S=h&&"CarouselBankHistoryCard"===h[0]?.type;return u(k,{className:w(Rl(o),"group-data-secondary:bg-primary-main group-data-secondary:text-white",e),...m,children:p("div",{className:w(Vl(d),"relative max-w-full"),children:[u(gl,{containerRef:N,visibleItemCount:n,snapAlign:"snap-start",gap:4,onVisibleIndicesChange:y.handleVisibleIndicesChange,children:hl({...m,renderProps:S?(e,t)=>cl(e,t,{blocksLength:h?.length,activeIndex:g}):cl})}),u(Tl,{scroll:y,isBlur:a,arrowsPadded:s,onScrollLeft:v,onScrollRight:f,hasEdgeBlocks:S,activeIndex:g,itemCount:x}),c?Ml(N,C,t):null]})})}));Bl.childrenTypes=["CarouselCard","CarouselBankHistoryCard","CarouselCatalogCard","CarouselInvestmentCard","CarouselProductCard","CarouselProgramsCard","CarouselRecommendationCard","CarouselTariffsCard","CarouselRichTextCard","CarouselInvestmentCard","CarouselEventCard"];const Rl=e=>e?"p-12":"",Vl=e=>e?"flex justify-center":"",Ml=(e,t,n)=>u(yl,{containerRef:e,activeIndex:t,dotCount:n,listType:"horizontal-list"}),jl=x((({title:e,description:t,blocksLength:n=0,activeIndex:l,options:a})=>{const r=Number(a?.key?.split("-").slice(-1)[0])||0;return u(k,{className:"flex h-[485px]",children:u("div",r===l?{className:"relative flex items-center w-full",children:u(Vt,{headlineVersion:"M",title:e,description:t,align:"text-left",className:w("absolute z-10 h-[385px] w-[440px] p-8 text-white shadow-dark-blue",Pl(r,n),_l(r))})}:{className:"flex w-full items-center justify-center",children:u("div",{className:w("flex justify-center items-center h-[300px] w-[340px] font-mohave text-title-large tracking-[-0.03em]",_l(r)),children:u("span",{className:Ll(r),children:e})})})})})),_l=e=>{switch(e%3){case 0:default:return"bg-primary-main";case 1:return"bg-green-light";case 2:return"bg-yellow-light"}},Ll=e=>{switch(e%3){case 1:case 2:return"gradient-color-text-on-yellow";default:return"gradient-color-text-on-green"}},Pl=(e,t)=>0===e?"left-9":e===t-1?"right-9":"-left-[25px]",Dl="absolute border border-solid border-gray w-full h-full",zl={normal:"min-w-[970px]",small:"min-w-[355px]"},Ol=x((({className:e="",button:t,description:n,title:l,carouselVersion:a="normal",version:r=""})=>u("section",{className:`flex pb-9 pl-12 border-box h-full ${zl[a]} ${e}`,children:p("div",{className:"relative w-full",children:[u("div",{className:`${Dl} z-10 top-9 right-12 bg-green-dark`}),u("div",{className:`${Dl} z-10 top-6 right-8 bg-green`}),u("div",{className:`${Dl} z-10 top-3 right-4 bg-green-light`}),p("div",{className:"relative h-full bg-white z-10 p-10 border border-solid border-green-light",children:[u(Vt,{className:"!p-0",title:l,description:n,headlineVersion:"L",align:"text-left",version:r}),It([t],{className:"mt-14"})]})]})}))),Al={black:"bg-black",white:"bg-white"},El=x((({className:e="",title:t,description:n,image:l,price:a,button:r,colors:i,...s})=>p(k,{className:`border box-border border-gray p-7 min-w-[392px] h-full flex flex-col justify-left ${e}`,...s,children:[l?.src?u(ot,{className:"mb-5 flex justify-center",image:l}):null,t?u(T,{headingType:"h6",as:"h4",className:"text-left mb-1.5",title:t}):null,n?u("div",{className:"mb-4",children:u(ae,{size:"text-m",align:"text-left",font:"font-light",children:n})}):null,i?.length?p("div",{className:"flex mb-4 text-s-light text-secondary-text",children:[u("div",{className:"mr-1.5",children:u(re,{children:"Доступные цвета: "})}),i.map(Fl)]}):null,a?p(re,{size:"text-h3",align:"text-left",children:[a," ₽"]}):null,It([r],{buttonClassName:"mt-5 w-full"})]}))),Fl=(e,t)=>u("div",{role:"figure",className:`w-6 h-6 ml-3 border border-solid border-main-divider rounded-full ${Al[e]}`},String(t)),Ul=x((({className:e="",href:t,target:n,children:l})=>{const a=H()({href:t,target:n});return u(t?"a":"div",{className:w("block",e),...t?a:{},children:l})})),Hl=(e,t="primary")=>({...e,iconVersion:e?.iconVersion??("secondary"===t?"white":"color")}),Gl=x((({className:e="",icon:t,title:n,description:l,href:a,target:r,...i})=>u(k,{className:w("w-[365px]",e),...i,children:p(Ul,{className:"flex flex-col",href:a,target:r,children:[t?.icon?u(ot,{image:Hl(t),asSVG:!0}):null,t?.src?u(ot,{image:t}):null,n?u(T,{headingType:"h6",as:"h4",className:"text-left pt-3 mb-2",title:n}):null,l?u("div",{className:"mb-4",children:u(re,{font:"font-light",size:"text-m",color:"text-secondary-text",children:l})}):null]})}))),Xl=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]})]}))),Wl={1:"flex-col",2:"gap-x-10 flex-wrap"},Kl=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(Xl,{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 ${Wl[l]}`,children:Jl(t,l)}):null]})})})),Jl=(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})),Yl="bg-transparent border-white border h-[70px] absolute w-[316px] top-0",ql=x((({text:e,href:t="",target:n="",className:l=""})=>{const a=H()({href:t,target:n});return e?p("div",{className:`relative group/link cursor-pointer w-[328px] h-[82px] ${l}`,children:[p("a",{className:"absolute border border-primary-main ml-3 px-6 py-5\n text-l-light bg-white text-primary-text flex w-[316px]\n justify-between items-center group-hover/link:text-primary-main z-10",role:"link",...a,children:[u("div",{className:"p-0.5",children:e}),u("div",{className:"w-6 h-6",children:u(ot,{className:"w-4 h-4 min-w-4 min-h-4 rounded-full box-border brightness-0 group-hover/link:brightness-100",image:{icon:"ArrowRightIcon",iconVersion:"black"},imageClassName:"group-hover/link:text-primary-main",width:"24",height:"24",asSVG:!0})})]}),u("div",{className:`${Yl} mx-1.5 mt-1.5`}),u("div",{className:`${Yl} mt-3 mr-3`})]}):null})),Zl=x((({className:e="",additionalDescription:t,description:n,links:l,title:a,...r})=>p(k,{className:`flex w-full p-10 overflow-hidden justify-between ${e}`,...r,children:[p("div",{className:"flex flex-col max-w-96 pr-9 text-white text-xl-light",children:[u(Vt,{isPadding:!1,title:a,description:n,as:"h1",align:"text-left"}),t?u(Vt,{className:"pt-6",isPadding:!1,description:n,align:"text-left"}):null]}),l?.length?Ql(l):null]}))),Ql=e=>{const t=Math.ceil(e.length/10);return u(Bl,{className:"min-w-[832px] w-[832px]",isBlur:!1,isCyclic:!0,itemCount:t,arrowsPadded:!1,showDots:!0,children:new Array(t).fill(null).map(((t,n)=>u("div",{className:"w-[672px] min-w-[672px] ml-10 mr-10 flex flex-wrap self-start",children:e.slice(10*n,10*(n+1)).map(((e,t)=>u(ql,{className:"m-1",...e},String(t))))},String(n))))})},ea={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"},ta=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 ${ea[l]}`})}):null,u("span",{children:n})]}))),na={S:"text-l-light",M:"text-h6",L:"text-h5"},la={S:"ml-2",M:"ml-3",L:"ml-4"},aa=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 ${na[r]} ${t?la[r]:""} ${e}`,role:"list",children:a.map(((e,t)=>u(ta,{className:l,isDotted:n,size:r,children:e},String(t))))}):null)),ra=x((({additionalDescription:e,align:t="text-center",button:n={},className:l="",description:a,headlineSmallVersion:r="H6",href:i,icon:s,isDotted:o=!0,isFullWidth:c=!0,items:d=[],target:m,title:h,version:u="primary",...x})=>p(k,{className:w("h-full flex flex-col justify-between min-w-[260px]","box-border border-solid border border-gray",t,l),version:u,...x,children:[p(Ul,{className:"p-6",href:i,target:m,children:[ia(s),sa(r,h),oa(a,h),da(d,o,u),ca(e)]}),It([n],{className:w("p-6 pt-0",c?"":"justify-center"),isVertical:!!c})]}))),ia=e=>p("div",{className:"flex justify-center",children:[e?.src?u(ot,{className:"mb-5",image:e}):null,e?.icon?u(ot,{className:"w-[32px] h-[32px] min-w-[32px] mb-5 rounded-full",image:e,asSVG:!0}):null]}),sa=(e,t)=>t?u("div",{children:u(re,{size:Rt[e],children:t})}):null,oa=(e,t)=>e?u("div",{className:t?"mt-2":"",children:u(ae,{size:"text-l",children:e})}):null,ca=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,da=(e,t,n="primary")=>e?.length?u(aa,{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,ma=x((({className:e="",title:t,icon:n,list:l=[],href:a,target:r,...i})=>u(k,{className:w("border border-gray",e),...i,children:p(Ul,{className:"flex",href:a,target:r,children:[p("div",{className:"w-[200px] min-w-[200px] self-center",children:[n?.icon?u(ot,{image:Hl(n),asSVG:!0}):null,n?.src?u(ot,{image:n}):null]}),p("div",{className:"p-8 pl-3 w-full",children:[t?u(T,{className:"mb-3.5",headingType:"h5",title:t}):null,l.length?u("div",{className:"flex flex-col gap-3",children:l?.map(ha)}):null]})]})}))),ha=(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)),ua=[{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"}],pa={default:"w-14 h-14",small:"w-12 h-12"},xa=(e,t)=>e?"":`group/media flex items-center justify-center box-border ${pa[t]}`,ga=x((({buttonSize:e="default",rounded:t=!1,icon:n,...l})=>{const{href:a,version:r,text:i=""}=l,{iconMapped:s,label:o}=ua.find((({origins:e})=>e.some((e=>a?.includes(e)))))||{},c=ba(n)??s,d=c?Hl(c):void 0;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",xa(i,e)),"aria-label":o,rel:"noopener noreferrer",target:"_blank",text:i,version:r,...l,children:d&&!i?u(ot,{image:d,imageClassName:"group-hover/media:text-white",width:"24",height:"24",asSVG:!0}):null})})),ba=e=>e?.src||e?.icon?e:void 0,fa=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(ga,{buttonSize:l,...e},String(t))))}),u(re,{size:"text-s-light",color:"text-secondary-text",children:n})]}))),va=x((({className:e="",description:t,href:n,icon:l,items:a=[],socialMedia:r=[],target:i,title:s,align:o="text-left",version:c="primary",...d})=>u(k,{className:w("relative p-7 min-w-[524px] min-h-[218px] h-full box-border group-data-gray:bg-main-divider/50","border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider",e),version:c,...d,children:p(Ul,{href:n,target:i,children:[u(Vt,{className:"mb-4",title:s,description:t,headlineVersion:"S",isPadding:!1,align:o}),p("div",{className:"w-1/2 h-full flex flex-col flex-1 justify-end",children:[a.length?u(aa,{className:"flex flex-col gap-2",itemClassName:"text-l-light",items:a}):null,r.length?u(fa,{className:"pt-10",media:r}):null]}),Na(l)]})}))),Na=e=>p("div",{className:"absolute bottom-0 right-0",children:[e?.icon?u(ot,{image:Hl(e),asSVG:!0}):null,e?.src?u(ot,{image:e}):null]}),ya=x((e=>{const{__html:t="",richVersion:n=""}=e;return u("div",{className:w(n,"md-container"),dangerouslySetInnerHTML:{__html:t}})})),wa=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(ya,{__html:t,richVersion:n})}))),Ca=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]})})),ka=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})})),Sa=x((({className:e="",title:t,icon:n,isHighlighting:l,button:a,cardCells:r=[],...i})=>{const s=r.map(Ba),o=s.slice(0,1),c=s.slice(1);return p(k,{className:w("relative border border-gray p-8 flex flex-col",Ta(l),e),...i,children:[l?Ra():null,Ia(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(Ca,{renderFoldableSection:({isUnfolded:e})=>p("div",{children:[o,u(ka,{isUnfolded:e,children:c})]}),renderFoldButton:r.length>1?$a:null}):null]})})),Ia=e=>p("div",{className:"w-[267px] min-w-[267px] self-center",children:[e?.src?u(ot,{image:e}):null,e?.icon?u(ot,{image:Hl(e),asSVG:!0}):null]}),Ta=e=>e?"mt-8 pt-20":"mt-20 pt-8",$a=({isUnfolded:e,onToggle:t})=>p("button",{className:"w-full cursor-pointer text-primary-main pt-5 flex justify-between items-center",onClick:t,children:[u("div",{children:e?"Скрыть":"Подробнее о тарифе"}),u(fe,{className:"text-primary-text",name:e?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16",asSVG:!0})]}),Ba=(e,t)=>p("div",{className:"py-5 border-b border-main-divider",children:[e?.title?u("div",{className:"text-secondary-text text-m-light opacity-80",children:e.title}):null,e?.description?u("div",{className:"text-primary-text text-h6 mt-1",children:e.description}):null]},String(t)),Ra=()=>p("div",{className:"absolute -top-7 -right-4 h-[60px] w-[60px] bg-white flex flex-col items-center justify-center rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:[u(fe,{iconVersion:"black",name:"HeartIcon",width:"23",height:"22",asSVG:!0}),u(ae,{size:"text-s",font:"font-normal",align:"text-center",color:"text-primary-text",children:"ХИТ"})]}),Va="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",Ma="border-gray border-solid border",ja="border-main-divider border border-t-0 border-x-0",_a="w-[200px] mr-6",La=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] ${Ma} ${Va}`,role:"columnheader",children:[e&&!t?.src&&u(ot,{className:"h-[63px] w-[63px] min-w-[63px] min-h-[63px] mb-4",image:Hl(e),width:"63",height:"63",asSVG:!0}),t?.src&&u(ot,{className:"mb-[18px]",image:t}),n?u(T,{headingType:"h4",as:"h3",className:"text-center text-white",title:n}):null,l?.text&&u("div",{className:"mt-auto w-full",children:u(te,{href:l.href,target:l.target,className:"mt-4 w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:u("div",{className:"text-xs-light font-medium py-[11px]",children:l.text})})})]}))),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})}))),za=x((({children:e})=>u("div",{className:"self-start flex flex-col",role:"row",children:u("div",{className:"flex",children:e})}))),Oa=x((({colHeaders:e,activeIndex:t})=>p(za,{children:[u("div",{className:_a,role:"columnheader"}),u(Da,{activeIndex:t,columnWidth:336,children:e.map(((e,t)=>u(La,{...e},String(t))))})]}))),Aa=x((({cell:e,isFirstRow:t,isLastRow:n,isFillGradient:l})=>u("div",{className:`w-80 box-border flex flex-col ${Ma} ${n?"border-t-0 rounded-b-md":"border-y-0"} ${l?Va:""}`,role:"cell",children:u("div",{className:`mx-7 h-full ${ja} ${l&&t?"border-t":""} ${n?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>Ua(e,t,l)))})}))),Ea=(e=!1)=>"text-xl m-0 "+(e?"text-white":""),Fa=(e=!1)=>"text-s opacity-80 "+(e?"text-white":"text-secondary-text"),Ua=({label:e,description:t},n,l)=>p("div",{className:"first:pt-7 pt-6 last:pb-7",children:[e?u("h4",{className:Ea(l),children:e}):null,t?u("div",{className:Fa(l),children:t}):null]},String(n)),Ha=(e=!1)=>`text-s py-7 ${ja} w-[200px] mr-6 ${e?"border-b-0":"border-solid"}`,Ga=x((({row:{header:e,data:t},activeIndex:n,isColoredFirstColumn:l,isFirstRow:a,isLastRow:r})=>p(za,{children:[e?.title?u("div",{className:Ha(r),children:e.title}):null,t?.length?u(Da,{activeIndex:n,columnWidth:336,children:t.map(((e,t)=>u(Aa,{cell:e,isFirstRow:a,isLastRow:r,isFillGradient:l&&0===t},String(t))))}):null]}))),Xa=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(Ga,{row:e,isFirstRow:0===l,isLastRow:l+1===a,activeIndex:n,isColoredFirstColumn:t},String(l)))),a?Kt({...l,btnClass:["top-[108px]","top-[44px]"],className:"right-7",isDisabled:!0}):null]})})),Wa=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(Oa,{colHeaders:r,activeIndex:o}):null,s?.length?u(Xa,{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]})})),Ka=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(Wa,{columns:a,rowHeaders:n,isShowAllRow:c,isColoredFirstColumn:s,visibleRowLength:i}),i?Ja({isShowAllRow:c,onClick:m}):null]})})),Ja=({isShowAllRow:e,onClick:t})=>u("div",{className:"pr-12",children:p("div",{className:"flex w-full",children:[u("div",{className:_a}),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?"Скрыть":"Показать все параметры"})})]})}),Ya=x((({className:e="",contacts:t,info:n,version:l="secondary",...a})=>p(k,{className:`flex p-12 ${e}`,version:l,...a,children:[n?.length?qa(n):null,t?.length?qa(t):null]}))),qa=e=>u("div",{className:"flex grow basis-0",children:e.map(((e,t)=>Za({column:e,index:t})))}),Za=({column:e,index:t})=>e?u("div",{className:"flex flex-col grow basis-0 pr-11 last:pr-0",children:e.map((({title:e="",description:t,additionalDescription:n,button:l},a)=>p("div",{className:"mt-6 first:mt-0",children:[u(Vt,{className:"!p-0",title:e,description:t,headlineVersion:"XS",align:"text-left"}),n?u("div",{className:"mt-1.5 opacity-80",children:u(ae,{size:"text-m",font:"font-light",children:n})}):null,l?u(te,{className:"mt-6",...l}):null]},String(a))))},`col-${String(t)}`):null,Qa=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,er=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:Qa(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 tr;!function(e){e.EUR="EUR",e.USD="USD",e.GBP="GBP",e.AUD="AUD",e.CNY="CNY",e.RUB="RUB"}(tr||(tr={}));const nr={USD:"DollarIcon",EUR:"EuroIcon",GBP:"DollarIcon",AUD:"DollarIcon",CNY:"DollarIcon",RUB:"RoundRubleIcon"},lr=e=>e?ir.format(e):"",ar=(e,t)=>p("td",{className:"pt-4 pl-11",children:[u("div",{children:lr(e)}),u("div",{className:w("font-normal text-sm text-secondary-text",(t||0)>=0?"text-green":"text-red"),children:lr(t)})]}),rr=(e,t="")=>p("td",{className:"pt-4 pl-11",children:[u("div",{children:lr(e)}),u("div",{className:"font-normal text-sm text-green",children:t})]}),ir=new Intl.NumberFormat("ru",{style:"currency",currency:tr.RUB}),sr=e=>u("th",{className:"pl-11",children:u(re,{size:"text-m-light",align:"text-left",color:"text-secondary-text",children:e})}),or=x((({className:e="",currencies:t=[],actuality:n="",officeName:l="",...a})=>{const r=cr(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:"Валюта"})}),sr("Купить"),sr("Продать"),sr("Лучшая покупка"),sr("Лучшая продажа")]})}),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:nr[e]},width:"24",height:"24"}):null,u("span",{className:"ml-2",children:e})]})}),ar(t,n),ar(l,a),rr(t,r),rr(l,i)]},e))(e)))})]}):null})]})})),cr=(e,t)=>e.sort(((e,t)=>Number(e.id)-Number(t.id))).slice(0,t);var dr;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(dr||(dr={}));const mr=new Intl.NumberFormat("ru",{style:"currency",currency:dr.RUB}),hr=e=>e?mr.format(e):"",ur="text-left text-m-light text-secondary-text",pr=`${ur} pl-11`,xr={USD:"DollarIcon",EUR:"EuroIcon"},gr=x((({className:e,exchangeCurrencyItems:t})=>p("table",{className:`h-fit w-fit ${e}`,children:[u("thead",{children:p("tr",{children:[u("th",{className:ur,children:"Валюта"}),u("th",{className:pr,children:"Купить"}),u("th",{className:pr,children:"Продать"})]})}),u("tbody",{children:t.map(br)})]}))),br=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:xr[t]},width:"24",height:"24"}):null,u("span",{className:"ml-2",children:t})]})}),u("td",{className:"pt-4 pl-11",children:hr(e?.saleExchangeRate)}),u("td",{className:"pt-4 pl-11",children:hr(e?.buyExchangeRate)})]},t)},fr=x((({className:e="",address:t})=>p("div",{className:`flex ${e}`,children:[u(ot,{image:{icon:"GpsIcon"},width:"24",height:"24",asSVG:!0}),p("div",{className:"ml-3",children:[t?u("p",{className:"text-primary-main m-0 mb-1 text-l",children:t}):null,u("p",{className:"text-secondary-text m-0 text-m",children:"Курс указан для заданного офиса"})]})]}))),vr=(e,t,n)=>{const l=Number(Nr(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)},Nr=e=>e.replace(/[^\d.,]/g,"").replace(",","."),yr=e=>{return(t=[[e=>e.value!==dr.RUB&&e.oppositeValue!==dr.RUB,()=>e.handleConvert(e.value,dr.RUB)],[e=>e.value===dr.RUB&&e.oppositeValue===dr.RUB,()=>e.handleConvert(e.value,dr.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,n]=t.find((([t])=>t(e)))||[];return n})(e)?.();var t};function wr(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 Cr=x((({className:e="",currencyRatesBuy:t,currencyRatesSell:n,button:a})=>{const[i,s]=l({inputSell:"",inputBuy:"",selectSell:t?.[0]?.currency?.currency||dr.RUB,selectBuy:n?.[0]?.currency?.currency||dr.USD}),o=r((e=>s((t=>({...t,...e})))),[]);return p("div",{className:`grid gap-[18px] pt-2 ${e}`,children:[wr({placeholder:"Хочу продать",rates:n,selected:i.selectSell,setSelected:kr(i,o,n),value:i.inputSell,setValue:e=>Ir(o,n)(e,i.selectSell,i.selectBuy)}),wr({placeholder:"Получу",rates:t,selected:i.selectBuy,setSelected:Sr(i,o,t),value:i.inputBuy,setValue:e=>Tr(o,t)(e,i.selectBuy,i.selectSell)}),a?.text?u(te,{className:"py-4 mr-1",version:a?.version,...a,children:a.text}):null]})})),kr=(e,t,n)=>l=>{t({selectSell:l}),yr({value:l,oppositeValue:e.selectBuy,handleConvert:(l=e.selectSell,a=e.selectBuy)=>{Ir(t,n)(e.inputSell,l,a)}})},Sr=(e,t,n)=>l=>{t({selectBuy:l}),yr({value:l,oppositeValue:e.selectSell,handleConvert:(l=e.selectBuy,a=e.selectSell)=>Tr(t,n)(e.inputBuy,l,a)})},Ir=(e,t)=>(n,l,a)=>{e({inputSell:Nr(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(vr(n,r,l===dr.RUB)||"")})},Tr=(e,t)=>(n,l,a)=>{e({inputBuy:Nr(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(vr(n,r,l===dr.RUB)||"")})};const $r=async e=>{const t=await Br(),n=t?.code||"000";return{region:t,exchangeRates:await Rr(e,n)}},Br=async()=>{try{return await M("/api/v1/region",{method:"GET"})}catch(e){return console.log(e),{}}},Rr=async(e,t)=>{try{return await M(e+`?regionCode=${t}`,{method:"GET"})}catch(e){return console.log(e),{}}},Vr=x((({className:e="",title:t="Курсы обмена валют",button:n,...l})=>{const{exchangeRates:a}=function(){const{data:e}=B("/api/v1/exchangerates",$r);return e||{}}(),r=Mr(a?.exchangeRate?.currencies),i=r.filter((e=>e.buyExchangeRate));i.unshift({currency:{currency:dr.RUB}});const s=r.filter((e=>e.saleExchangeRate));return s.push({currency:{currency:dr.RUB}}),u(k,{className:`p-9 box-border min-h-80 ${e}`,...l,children:u(Xl,{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(gr,{className:"mb-[30px]",exchangeCurrencyItems:r}):null,u(fr,{address:a?.address})]}),r.length&&i.length&&s.length?u(Cr,{className:"grow",currencyRatesBuy:i,currencyRatesSell:s,button:n}):null]})})})})),Mr=e=>e?.filter((e=>1===e?.currency?.id||2===e?.currency?.id))||[],jr=x((({className:e="",label:t,icon:n,dataTheme:l="",disabled:a=!1,onClick:r})=>p("button",{className:w("flex justify-center w-full px-0 py-5 border border-transparent outline-none focus:border-primary-text",a?"bg-main-divider text-main-disabled hover:bg-main-divider":"bg-primary-main text-white hover:bg-primary-hove",e),onClick:r,disabled:a,"data-theme":l,children:[u("span",{className:"text-h4 pr-3",children:t}),n?u(ot,{image:{icon:n,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20",asSVG:!0}):null]}))),_r=({isUnfolded:e,onToggle:t})=>u(jr,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:["Развернуть","Скрыть"][Number(e)],onClick:t}),Lr=["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?zr(a):null}),p("div",{className:w(i.length?"":"hidden"),children:[u("div",{className:w("mb-1",Pr),children:ml(s,{...r.options,parent:l})}),u(Ca,{renderFoldableSection:({isUnfolded:e})=>u(ka,{className:w(Pr,e?"mb-1":""),isUnfolded:e,children:ml(o,{...r.options,parent:l})}),renderFoldButton:({isUnfolded:t,onToggle:l})=>u(jr,{className:w(n<1?"hidden":""),disabled:!o?.length,label:e,icon:Lr[Number(t)],dataTheme:r.options?.page?.colorPalette,onClick:l})})]})]})}));function zr({title:e,description:t}){return p("div",{className:"bg-white py-20",children:[e?u("div",{className:"mb-2",children:u(ae,{align:"text-center",children:u(re,{size:"text-h4",children:e})})}):null,t?u(ae,{size:"text-xl",font:"font-light",align:"text-center",children:t}):null]})}const Or=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))))),Ar=(e,t)=>n=>{const l=e[n],a=l?.type;return"array"===a?Er(n,t)(l):null},Er=(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(Or,{items:l,multiple:!0,...t(e)})]},e)},Fr=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(Ar(t,o))}),n?u("div",{children:u(te,{className:"w-72",onClick:c,...n})}):null]}),u(Dr,{filtrationState:i,...a})]})}));function Ur(e,t={}){const{data:n}=B(`/wcms-resources/${e}.json`,M,{fallback:t});return n||{}}Fr.childrenTypes=["ProductTile"],Fr.childSchema=e=>e?.filtrationSchema||{};const Hr={"bg-white":"color",transparent:"white"},Gr={"bg-white":"text-primary-main",transparent:"text-white"},Xr=(e,t,n)=>u(ot,t?.src?{image:t,className:Gr[e],width:n?.width,height:n?.height,pathPrefix:"/wcms-resources/",asSVG:!0}:{image:{icon:t?.icon||"LogoIcon",iconVersion:Hr[e]},className:Gr[e],width:n?.width,height:n?.height,asSVG:!0}),Wr={"bg-white":"text-primary-text",transparent:"text-white"},Kr=(e,t,n)=>u("span",{className:`${Wr[t]} ml-2.5 font-medium ${n||""}`,children:e||"Россельхозбанк"}),Jr=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:[Xr(r,n?.image,{width:"40",height:"45"}),i?Kr(l||n?.title,r):null]}))),Yr=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 qr(e){throw new Error(e)}function Zr({onOpen:e,onClose:t}={}){a((()=>f.subscribe("dialog",(n=>{switch(n.type){case"open":e&&e(n);break;case"close":t&&t();break;default:qr(n)}}))),[e,t])}function Qr(e,...t){return e.map(((e,n)=>[e,...t.map((e=>e[n]))]))}const ei=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 ti=(e,t)=>(n,l)=>{for(const[a,r]of l)n.set(a,e(n.get(a)||t,r));return n},ni=e=>e.toLowerCase().split(/[^0-9a-zа-я-]+/).filter((e=>e.length>=3&&!/[0-9a-z]/.test(e))),li=e=>t=>e.map((([e,n])=>[ei(t)(e),n])).filter((([e])=>e>=.8)).map((([e,t])=>ri(t,e))).reduce(ti(Math.max,0),new Map),ai=e=>t=>{return Qr(t,t.map((({title:e})=>e)).map((e=>t=>{const n=ni(t||"");return n.length?((e=[])=>e.reduce(((e,t)=>e+t),0))(e.map((e=>vn(n.map(ei(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},ri=(e,t)=>new Map(e.map((e=>[e,t]))),ii=({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,si),[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=ni(e);if(!a.length)return[];const r=Object.entries(l),i=[...a.map(li(r)).reduce(ti(((e,t)=>e+t),0),new Map).entries()].filter((([,e])=>e>=.799*a.length)).map((([e])=>n[e]));return ai(a)(i)})(r)))}),[c,r]),[d,{value:r,onChange:s}]},si=async(...e)=>(await Promise.allSettled(e.map((e=>V(z(e,"/","search.index.json")))))).map((e=>"fulfilled"===e.status?e.value:{})),oi=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(Yr,{className:"absolute top-3 -right-6",onClick:r}),n]}),l]})}):null)));function ci(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 di(e){const[t,{setTrue:n,setFalse:a}]=ci(),[i,o]=l({id:e}),c=s(t);c.current||=t;Zr({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 mi=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(hi)})})),hi=(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(ui,{...e,basePath:a,index:t},String(t))))]},String(t))},ui=x((({text:e,index:t,basePath:n,...l})=>{const a=H({isRemote:!(!c.BASE_PATH||!n)&&!c.BASE_PATH.startsWith(n)}),{href:r,target:i,onClick:s}=a(l);return u("a",{className:w("text-l-light text-secondary-text hover:text-primary-main no-underline","overflow-x-hidden overflow-ellipsis whitespace-nowrap"),href:r,target:i||"_self",onClick:s,children:e||`Раздел ${t}`})})),pi=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})]})})),xi="search",gi=x((({topItems:e})=>{const t=di(xi),n=e?.map((e=>e.href||"/")),[l,r]=ii({basePathList:n,initialQuery:t.message,wasOpened:t.wasOpened}),s=i((()=>bi(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(oi,{...t,head:u(pi,{className:"my-5",autoFocus:!0,...r}),children:u(mi,{topItems:s})})})),bi=e=>t=>e?.length&&t?.length?Qr(e,t).map((([e,t])=>({...e,items:t?.map((({title:e,uri:t})=>({text:e,href:z("/",t)})))}))):[];const fi=x((({className:e,isMobile:t})=>{const[n,a]=l(""),i=r((()=>a("")),[]);Zr({onClose:i});const{open:s}=_(xi),o=r((e=>{a(e),vi(e)&&s(e)}),[]);return p("div",{className:e,children:[u(pi,{isMobile:t,value:n,onChange:o}),t?u(Yr,{className:"absolute top-2 right-3",onClick:i}):null]})})),vi=e=>e&&e.length>=3,Ni=x((e=>u(fi,{...e}))),yi=x((({className:e="",items:t,hasButton:n})=>p("div",{className:e,children:[t?.length?t.map(wi):null,n?u(te,{version:"primary",className:"mb-6 w-full",href:"https://www.rshb.ru/feedback/question/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"}):null]}))),wi=(e,t)=>{const{type:n,text:l,description:a}=e;return p("div",{className:"mb-4",children:[u("div",{children:Ci(n,l)}),u("div",{className:"mt-1 text-s-light text-secondary-text",children:a})]},String(t))},Ci=(e,t="")=>{switch(e){case"tel":return u("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${ki(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})}},ki=e=>e.replaceAll(/\D/g,""),Si=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}`})})),Ii=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(Si,{index:t,className:"text-l-light max-w-[292px]",...e},String(t))))}):null}))),Ti=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}`})})),$i=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(Ti,{index:t,...e},String(t))))}):null]}))),Bi="w-[204px]",Ri=x((({className:e="",...t})=>{const n=t.options?.page?.fallback,l=Ur(c.SITEMAP||"sitemap",n),{documents:a,relatedEnterprises:r,contacts:i,socialMedia:s,mobileApps:o,logo:d}=Ur(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(Jr,{className:Bi,logo:d}),u(Ni,{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(yi,{items:i,hasButton:!0}),u(fa,{media:s,children:"Соцсети"}),u(fa,{className:"mt-6",media:o,children:"Мобильное приложение"})]}),u(mi,{className:"flex-grow",topItems:l?.topItems})]}),u(Ii,{className:"mt-[98px]",links:r}),u($i,{links:a})]})})),Vi=x((({className:e="",title:t,description:n,calendar:l,...a})=>p(k,{className:`p-12 ${e}`,...a,children:[u(Vt,{className:"!p-0 mb-4",title:t,description:n,headlineVersion:"M"}),l?Mi(l):null]}))),Mi=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=>ji(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:_i(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}`)))})]})},ji=(e,t)=>e.month?.map(((e,n)=>u("div",{style:{flexBasis:`${t}%`},children:e.text},`monthName-${n}`))),_i=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)),Li=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<Li?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}},zi=e=>({href:t})=>D(L(t)?e.href:e.pathname).startsWith(D(t));const Oi=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"})]}))),Ai="location",Ei=x((({currentLocation:e,onChangeLocation:t,foreignOffices:n})=>{const a=di(Ai),[i,s]=l(""),o=Ui(function(){const{data:e}=B("/api/v1/regions",M);return e||[]}()).sort(((e,t)=>e.name.localeCompare(t.name))),c=((e,t)=>{const n=new Map;for(const l of e){const e=t(l),a=n.get(e)||[];n.set(e,[...a,l])}return n})(o,Fi),d=r((e=>{a.onClose&&a.onClose(),t&&t(e)}),[a.onClose,t]);return p(oi,{...a,head:p("div",{children:[u(Hi,{currentLocation:e,onChangeLocation:d}),u(Oi,{onSearch:s,searchTerm:i,className:"mb-7"})]}),children:[i&&i.length>=3?u("div",{children:o.filter((({name:e})=>e&&ei(e.toLowerCase())(i.toLowerCase())>=.8)).map(Xi(d))}):u("div",{className:"columns-5",children:Array.from(c.entries()).map(Gi(d))}),u(Wi,{foreignOffices:n})]})})),Fi=e=>e.name?.charAt(0)||"",Ui=e=>e.map((e=>({...e,name:e.name?.replace(/республика|область|край'/gi,"").trim()||""}))),Hi=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)),Gi=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(Xi(e))]},t),Xi=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),Wi=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(Ki,{...e},String(t))))})]}):null)),Ki=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]})})),Ji=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(Yi(t,n),e),href:i,target:s,onClick:c,rel:"noopener noreferrer","aria-label":o,children:u("span",{className:qi(t,n),children:o||l})})})),Yi=(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"),qi=(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"),Zi=x((({className:e,isRounded:t,disabled:n,ariaLabel:l,image:a,onClick:r})=>u("button",{className:w("group/btn border-0 p-0 flex items-center bg-inherit",t?"w-8 h-8 text-secondary-light hover:text-secondary-hove":"w-6 h-6 text-primary-text hover:text-primary-main","group-data-transparent:text-white",e),type:"button",disabled:n,"aria-label":l,onClick:r,children:u(ot,{image:a,className:w("h-full",t?"bg-main-divider/20 rounded-full":""),imageClassName:"group-hover/btn:text-primary-hover group-hover/btn:invert-0",asSVG:!0})}))),Qi=e=>globalThis[e];function es(e,t){const[n,i]=l(),s=r((()=>i(Qi(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(!Qi(e))return n.addEventListener("load",s),()=>{n.removeEventListener("load",s)};s()}),[e,t]),n}const ts={personal:"//chat.mes.rshb.ru/assets/js/webchat_rshb",business:""},ns=x((e=>{const[t,{setTrue:n}]=ci();return t?u(ls,{...e}):as({...e,onClick:n})})),ls=x((({chat:e="personal",...t})=>((e=>{a((()=>globalThis.localStorage?.setItem("webchat-keep-open",String(Date.now()))),[]),es("chatbot",ts[e])})(e),as(t)))),as=({className:e,iconVersion:t,onClick:n})=>u(Zi,{className:w("text-page__btn-chat",e),image:{icon:"HeadphonesIcon",iconVersion:t},ariaLabel:"Чат",onClick:n}),rs=x((({className:e,version:t,locationName:n,officesLink:l})=>{const a="transparent"===t?"white":"black",{open:i}=_(Ai),s=r((()=>i()),[]),{open:o}=_(xi),d=r((()=>o()),[]);return p("div",{className:w("flex items-center gap-5",e),children:[u(Ji,{flat:!0,href:"#",text:n,onClick:s}),l?u(Ji,{flat:!0,href:l,text:"Офисы и банкоматы"}):null,u(Zi,{image:{icon:"LoupeIcon",iconVersion:a},ariaLabel:"Поиск",onClick:d}),c.CHAT_BOT?u(ns,{iconVersion:a,chat:c.CHAT_BOT}):null]})})),is=x((({className:e="",items:t,activeItem:n})=>{const a=H(),[i,s]=l(!1),o=r((()=>s((e=>!e))),[]),c=ge(r((()=>s(!1)),[]));return p("div",{className:w(i?"bg-white rounded-md shadow-blue-gray":"",e),ref:c,children:[u("button",{className:"group/btn flex justify-between items-center h-6 ml-6","aria-label":""+(i?"Скрыть другие разделы":"Показать другие разделы"),onClick:o,children:Array(3).fill(null).map(((e,t)=>u("div",{className:"w-[3px] h-[3px] rounded mr-1 bg-primary-text group-hover/btn:bg-primary-hover group-data-transparent:bg-white"},String(t))))}),u("div",{className:w("flex flex-col rounded-md bg-white p-6 pb-2",i?"":"hidden"),"aria-hidden":!i,children:t?.map(((e,t)=>{const{text:l,...r}=e;return u("a",{className:w("text-l-light pb-4 hover:text-primary-main",e===n?"text-primary-main":""),...a(r),children:l},e.href||String(t))}))})]})})),ss=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:os(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]})})),os=(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"),cs=x((({observerOptions:e,onVisibilityChange:t,children:n,...l})=>{const a=v(r((e=>{if(!e.length||!t)return;const n=e[e.length-1];t(n.isIntersecting)}),[t]),e);return u("span",{ref:a,children:u(ss,{...l,children:n})})})),ds=x((({subItems:e=[]})=>{const t=(e=>(t=[])=>{const n=t?.filter(zi(e));return n?.length?fn((e=>e.href?.length||0))(n):void 0})(U())(e),[n,a]=l(e.length),r=e.slice(n),o=s(null),c={rootRef:o},d=i((()=>e.map(((e,t)=>e=>{a(e?ms(t):hs(t))}))),[e]);return p("nav",{className:"relative mt-6",children:[u("div",{ref:o,className:"overflow-hidden whitespace-nowrap mr-52 pb-3",children:e.map(((e,l)=>u(cs,{className:w("mr-8",n-1<l?"invisible":""),active:e===t,observerOptions:c,onVisibilityChange:d[l],...e},String(l))))}),r.length?u(is,{className:"absolute w-52 -top-4 right-0 pt-4 z-40",items:r,activeItem:t}):null]})})),ms=e=>t=>Math.max(t,e+1),hs=e=>t=>Math.min(t,e),us={"bg-white":"primary",transparent:"transparent"},ps=x((({bgColor:e="bg-white",className:t,showSubMenu:n=!0,version:i=us[e],...s})=>{const o=U(),{topItems:d,logo:m,defaultLocation:h,foreignOffices:x,officesLink:g}=Ur(c.SITEMAP||"sitemap",s.options?.page?.fallback),b=d?.find((e=>zi(c.BASE_PATH?{pathname:c.BASE_PATH}:e))(o)),[f,v]=function(e="Москва"){const t=Di(),[n,i]=l(t?.region??{name:e}),{data:s}=Pi("/api/v1/region",M);return a((()=>{i(t?.region&&t?.manual?t.region:s||{name:e})}),[s]),[n,r((e=>{globalThis.localStorage?.setItem("location",JSON.stringify({manual:!0,region:e})),i(e)}),[])]}(h);return p(k,{tag:"header",className:w("pt-6 px-20",n&&b?.items?.length?"pb-4":"pb-5",t),version:i,...s,children:[p("div",{className:"container",children:[p("div",{className:"flex items-center",children:[u(Jr,{className:"mr-8",bgColor:e,logo:m}),d?.map(((e,t)=>u(Ji,{active:e===b,...e},String(t)))),u(rs,{version:i,className:"ml-auto",locationName:f.name,officesLink:g})]}),u("div",{className:w("mt-6 h-px bg-main-divider","transparent"===i?"opacity-30":"")}),n&&b?.items?.length?u(ds,{subItems:b.items}):null]}),u(gi,{topItems:d}),u(Ei,{currentLocation:f,foreignOffices:x,onChangeLocation:v})]})})),xs={XXL:"gap-12",XL:"gap-10",L:"gap-8",M:"gap-4",S:"gap-2",XS:"gap-1","":""},gs=x((({className:e="",gap:t="XS",isPadding:n=!1,version:l="transparent",isTheme:a=!1,...r})=>u(k,{className:w("grid grid-cols-12",n?"p-12":"",xs[t],e),version:l,isTheme:a,...r,children:hl(r)})));gs.childrenTypes={exclude:["HorizontalLayout"]};const bs=x((e=>{const{className:t,image:n,...l}=e;return u(k,{className:t,...l,children:u(ot,{image:n})})})),fs=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?vs({activeIndex:c,cards:t,selectedCardIndex:a,onClick:s}):null,Kt({...d,btnClass:["left-12","right-12"],className:"top-[62px]"}),m?u("div",{className:"absolute top-0 left-0 h-full w-[136px] bg-opacity-from-white"}):null,h?u("div",{className:"absolute top-0 right-0 h-full w-[136px] bg-opacity-to-white"}):null]}),u(te,{className:"w-60 text-center",version:"primary",...n,href:x})]})}));function vs({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?Ns("страховая сумма",e.sum):null,e?.fee?Ns("страховой взнос",e.fee):null]}),ys(n)]},String(t))}({slide:e,i:t,isActive:Boolean(t===n),onClick:()=>l(t)})))})})}function Ns(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 ys(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 ws=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:Cs({insuranceTabs:n,button:a})})]})})),Cs=({insuranceTabs:e,button:t})=>{const n=e?.map((e=>e.cards));return n?.length?n.map(((e,n)=>u(fs,{button:t,cards:e},String(n)))):null};function ks(e){return t=>t.reduce(((t,n,l)=>t.length?t.concat({...e,key:l},n):[n]),[])}const Ss={yellow:"bg-yellow",green:"bg-green","green-light":"bg-green-light","green-dark":"bg-green-dark"},Is={XS:"h-[40px]",S:"h-[68px]",M:"h-[102px]",L:"h-[136px]",XL:"h-[204px]"},Ts=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:[ks(u("div",{className:"w-px h-4 bg-gray"}))(s.map($s)),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(Vs)})]}):null,n?.length?u(aa,{className:"mt-9 text-l-light max-w-[657px]",items:n,itemClassName:"mb-[7px]",isDotted:l}):null]})})})),$s=(e,t,n)=>{const l=1===t,a=t===n.length-1;return u("div",{className:`${Bs(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(Rs)}):null},`column_${t}`)},Bs=(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(" "),Rs=(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 ${Is[n]} ${Ss[l]} ${"XS"===n?"px-3":"px-11"}`,children:u("div",{className:"text-center",children:e.text})},`cell_${t}`):null},Vs=(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}`)},Ms=x((({className:e,iconClassName:t,textClassName:n,suffixClassName:l,doc:a,icon:r})=>{const{text:i,fileSize:s,...o}=a;return p("a",{className:e,role:"link",...o,children:[r?u(ot,{className:t,image:Hl(r),width:"24",height:"24",asSVG:!0}):null,i?p("span",{className:n,children:[i,u("span",{className:l,children:o?.href&&js(_s(o.href),s)})]}):null]})})),js=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),_s=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},Ls=x((({className:e="",doc:t,icon:n})=>u(Ms,{className:`flex h-full box-border ${e}`,iconClassName:"mr-2.5 min-w-6 min-h-6",textClassName:"self-center text-l-light",suffixClassName:"text-secondary-text group-hover/item:text-primary-main",doc:t,icon:n}))),Ps=x((({className:e,documents:t,columnsMode:n="double",icon:l})=>t?.length?u("div",{className:e,role:"list",children:t.map(((e,t)=>u("div",{className:"double"===n?"basis-[calc(50%-20px)]":"",role:"listitem",children:u(Ls,{className:"group/item flex align-middle h-fit w-fit text-primary-text no-underline hover:text-primary-main",doc:e,icon:l})},String(t))))}):null)),Ds={double:"flex gap-x-5 gap-y-[26px] flex-wrap",single:"flex gap-3.5 flex-col"},zs=x((({className:e="",title:t,description:n,align:l="text-center",documents:a,icon:r={icon:"DocIcon"},columnsMode:i="double",...s})=>p(k,{className:w("p-12",e),...s,children:[u(Vt,{className:"!p-0",title:t,description:n,align:l,headlineVersion:"M",as:"h2"}),u(Ps,{className:`mt-8 ${Ds[i]}`,columnsMode:i,documents:a,icon:r})]}))),Os=e=>{const t="col-span-",n=e?.split(/\s+/).find((e=>e.startsWith(t)));return n?parseInt(n.substring(t.length),10):12};function As(e=""){const t=Os(e);return t<=6?"min-h-[300px]":t<=8?"min-h-[320px]":"min-h-[360px]"}const Es=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 ${As(e)} ${e}`,version:a,...d,children:[p(Xl,{className:"z-10",title:t?u(T,{headingType:s,as:"h3",title:t,className:`whitespace-pre-wrap mb-7 w-full ${Pt[o]}`}):null,buttons:It(l,{className:"mt-8",buttonClassName:"min-w-[168px]"}),children:[Us(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,Fs(r)]})]}),i?.src?u("div",{className:"absolute right-0 bottom-0",children:u(ot,{image:i})}):null]})})),Fs=e=>e?.length?u(aa,{items:e,itemClassName:"text-l-light mb-2 last:mb-0"}):u("span",{className:"text-m-light text-secondary-text",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),Us=e=>e?u("p",{className:"text-xl-light mb-5 pt-0.5",children:e}):null,Hs=[{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 Gs(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 Xs={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"},Ws=e=>u("a",{className:`select-none cursor-pointer px-9 h-12 bg-primary-main text-white ${Object.values(Xs).join(" ")}`,href:`https://yandex.ru/maps/?ll=${[e[1],e[0]]}&z=10&l=map`,target:"_blank",children:"Открыть на карте"}),Ks={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)]"},Js=(e,t,n)=>p("div",{className:`${Object.values(Ks).join(" ")} bg-white py-3 pl-11 pr-4 w-full`,children:[u(fe,{name:"LoupeIcon",iconVersion:"black",width:"20",height:"20",asSVG:!0,className:"absolute left-4"}),u("input",{type:"text",placeholder:"Введите адрес или метро",onChange:t=>{const l=t.target?.value?t.target?.value.toLowerCase():"";if(l){const t=e.filter((e=>e.text.toLowerCase().indexOf(l)>-1?e:null));n(t)}else n(null)},className:"border-0 focus:border-0 outline-0 w-full"})]}),Ys={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(Ys).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"})}),Zs={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"},Qs=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(Zs).join(" ")} bg-white select-none cursor-pointer w-12 h-12`,children:u(fe,{name:n,width:"20",height:"16"})})})),eo={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"},to=x((({points:e,className:t="",zoom:n=5,showSearchField:r=!1})=>{const i=s(null),o=es("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${c.YANDEX_MAP_API_KEY||""}&lang=ru_RU`),[d,m]=l(),[h,x]=l(ro(Hs)),g=no(e);if(a((()=>{i?.current||o?.ready((()=>{i.current=new o.Map("map",{center:g,zoom:n,controls:[],suppressMapOpenBlock:!0}),Gs(o,i.current,h)}))}),[o,i,h]),a((()=>{if(i.current&&h&&o){const e=h.length<1?ro(Hs):h;Gs(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?Js(Hs,0,(e=>{if(e){const t=ro(e);x(t)}})):Ws(g)}),u("div",{className:`${Object.values(eo).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(Qs,{yandexMaps:i}),u(Qs,{yandexMaps:i,direction:"out"})]}),qs(i.current,o,`right-2 top-80 ${b}`)]})})),no=e=>[ao(lo(e,0)),ao(lo(e,1))],lo=(e,t)=>e.map((e=>e[t])),ao=e=>e.reduce(((e,t)=>e+t))/e.length,ro=e=>e?e.map((e=>e.coords)):null,io=[{title:"Деловой центр",time:"1 мин",distance:"~30 м.",icon:"MetroIcon"},{title:"Выставочная",time:"5 мин",distance:"~120 м.",icon:"MetroIcon"},{title:"Деловой центр",time:"8 мин",distance:"~350 м.",icon:"MetroIcon"}],so=({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:"Выходной"})})},oo=({icon:e,title:t,distance:n,time:l},a)=>p("div",{className:"flex mr-4",children:[u(fe,{name:e,width:"16",height:"16",asSVG:!0,className:"mr-1"}),t?p("span",{className:"text-m",children:[t," "]}):null,p("span",{className:"text-m-light",children:[n?` (${n})`:null,l?`, ${l}`:null]})]},`nearbyOffice${a}`),co=({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?mo(l):null,a?u("div",{className:"pb-1 text-s-light text-secondary-text",children:a}):null]},`day${r}`),mo=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})}),ho={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 uo(e){return e?V(e,{method:"GET"}):{}}const po=x((({className:e=""})=>{const t=function(e){const{data:t}=B(e?`/api/v1/branches?regionCode=${e}`:void 0,uo);return console.warn("Hook useOfficeMap RETURNs MOCK object for testing",t),ho}("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}),so(C)]}),p("div",{className:"flex text-l-light pt-4",children:[u(fe,{name:"GeolocationIcon",width:"24",height:"24",asSVG:!0,className:"pr-1"}),l]}),u("div",{className:"flex pt-4",children:io.map(oo)})]}),p("div",{className:"flex justify-between pt-8",children:[u("div",{className:"flex-grow h-full w-full overflow-hidden",children:N?u(to,{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(co)})]})]})})),xo=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(go)}):null]}))),go=(e,t)=>p("li",{className:"flex mb-5 last:mb-0 list-none",children:[e.icon?u(ot,{className:"mr-3 min-w-6 min-h-6 w-6 h-6",width:"24",height:"24",asSVG:!0,image:Hl(e.icon)}):null,e.label?u("span",{className:"text-l-light",children:e.label}):null]},`list_item_${String(t)}`),bo=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})}))),fo=x((e=>{const{className:t="",icon:n,label:l,description:a,version:r="primary",benefitsVersion:i="normal"}=e,s="white"===i?"secondary":"primary";return p("div",{className:`flex gap-5 ${a?"items-start":"items-center"} ${t}`,children:[n?u("div",{className:vo(r,i),children:u(ot,{className:"w-6 h-6",image:Hl(n,s),asSVG:!0})}):null,p("div",{className:"gap-0.5",children:[l?u("div",{className:"text-h6 text-primary-text group-data-secondary:text-white",children:l}):null,a?u("div",{className:"text-m-light text-secondary-text group-data-secondary:text-white",children:a}):null]})]})}));function vo(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 No=e=>(t,n)=>{const{type:l}=t;if("default"!==l&&"rte"!==l)return null;switch(l){case"default":return u(fo,{icon:t.icon,label:t.label,description:t.description,version:e},String(n));case"rte":return u(ya,{__html:t.__html});default:qr(t)}},yo=x((({className:e="",title:t,description:n,image:l,benefits:a,sum:r,monthLimit:i,directionRight:s=!1,version:o="primary",...c})=>p(k,{className:`relative py-12 px-24 ${e}`,version:o,...c,children:[u(Vt,{className:"!p-0",title:t,description:n,headlineVersion:"M"}),p("div",{className:"flex justify-center gap-[122px] mt-[30px]",children:[l?.src?u(ot,{className:s?"order-2":"",image:l}):null,p("div",{className:"w-[558px] m-auto",children:[a?.length?u("div",{className:"flex flex-col gap-4",children:a.map(No(o))}):null,wo(Number(r),Number(i))]})]})]})));function wo(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?Co("Страховая сумма:",e,Boolean(t)):null,Number(t)>0?Co("Ежемесячный лимит:",t,Boolean(e)):null]}):null}function Co(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 ko(e=""){const t=Os(e);return t<=4?"S":t<=8?"M":"L"}function So(e=""){const t=Os(e);return t<=6?"pr-9":t<=8?"pr-[4.75rem]":"pr-[9.4rem]"}const Io=x((({className:e,title:t,description:n="Блок в разработке...",...l})=>p(k,{className:w("p-9 box-border",e,So(e),As(e)),...l,children:[u(Vt,{className:"!p-0 max-w-[600px]",title:t,description:n,headlineVersion:ko(e)}),u("figure",{className:"m-0 min-w-[80%]",children:To()})]}))),To=(e=3)=>Bo(100,e).map((e=>Math.floor(e))).map($o),$o=(e,t)=>u("div",{style:{width:`${e||100}%`},className:"h-4 mt-2 bg-secondary-light"},String(t)),Bo=(e,t)=>[e].concat(t>0?Bo(e/1.618,t-1):[]),Ro=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})})),Vo=(e="primary",t="normal")=>({icon:n,label:l,description:a},r)=>u(fo,{icon:n,label:l,description:a,version:e,benefitsVersion:t},String(r)),Mo=x((({className:e="",title:t,headlineVersion:n="L",description:l,benefitsCountOfRow:a=3,benefits:r,benefitsVersion:i,buttons:s,footnote:o,image:c,__html:d,items:m,version:h="primary",isDotted:x=!0,textBlockClassName:g="",directionRight:b=!0})=>{const f=r?.filter((e=>e.label))?.length,v=jo(a);return p("div",{className:w("flex grow justify-between items-stretch h-full",e),children:[c?.src?u(ot,{className:"mt-[-50px] "+(b?"order-2":""),image:c}):null,p("div",{className:w("flex flex-col",g),children:[u(Vt,{className:"!p-0 max-w-[600px]",title:t,description:l,headlineVersion:n,align:"text-left"}),p("div",{className:"flex flex-col justify-between h-full",children:[p(Xl,{buttons:It(s),children:[f?u("div",{className:v,children:r?.map(Vo(h,i))}):null,d?u("div",{className:"mt-5",children:u(ya,{__html:d})}):null,m?.length?u(aa,{className:"mt-5 text-h6",items:m,itemClassName:"mb-[7px]",isDotted:x}):null]}),o?u("p",{className:"text-m-light pt-12",children:o}):null]})]})]})})),jo=(e=2)=>"gap-6 mt-6 "+(e>2?"inline-grid grid-cols-[auto_auto_auto]":"inline-grid grid-cols-[auto_auto]");function _o(e,t,n){const{text:l,href:a,target:r}=e,i="primary"===t?"white":"black",s=e?.icon||{icon:"ArrowLeftIcon"};return p("div",{className:w("flex items-center",n),children:[u(te,{version:t,rounded:!0,className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center mr-3",ariaLabel:l,href:a,target:r,children:u(ot,{className:"w-4 h-4",image:{...s,iconVersion:s.iconVersion||i},asSVG:!0})}),l?u(te,{version:"link",text:l,href:a,target:r,ariaLabel:l}):null]})}const Lo="text-secondary-text group-data-secondary:text-white/80",Po=x((e=>{const{className:t="",breadcrumbs:n,backwardButton:l,version:a="primary",...r}=e,i="primary"===a?a:"white";return p(k,{className:`overflow-hidden p-12 flex flex-col box-border min-h-[454px] ${t}`,version:a,...r,children:[l?.text?_o(l,i,"mb-10 -mt-2.5"):null,n?.length?u("div",{className:"text-xs-light mb-6",children:ks(u("span",{className:`mx-2 ${Lo}`,children:"/"}))(n.map(((e,t)=>u(Ro,{className:Lo,...e},String(t)))))}):null,u(Mo,{version:a,...r})]})})),Do=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(Mo,{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 zo(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 Oo=(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(ya,{__html:e.__html})});default:qr(e)}};function Ao(e,t){return e?.src?u(ot,{className:`absolute ${t?"right-0":"left-0"} bottom-0`,image:e}):null}const Eo=x((({className:e="",title:t,headlineVersion:n="S",description:l,additionalDescription:a,benefits:r=[],buttons:i,image:s,isImageOnRightSide:o=!0,...c})=>p(k,{className:w("overflow-hidden p-9 box-border relative min-h-[364px]",So(e),e),...c,children:[p("div",{className:w("flex flex-col",o?"":"items-end"),children:[u(Vt,{className:w("!p-0 !bg-transparent z-10",t||l?"mb-3.5":""),title:t,description:l,headlineVersion:n,as:"h2",align:"text-left"}),Fo(r,s),zo(a,s),It(i,{className:"mt-5 z-10 text-l"})]}),Ao(s,o)]})));function Fo(e,t){if(!e.length)return null;return u("div",{className:`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(Oo):null})}const Uo=x((({className:e="",title:t="Акции и спецпредложения",date:n,description:l,as:a,buttons:r=[],...i})=>u(k,{className:w("p-9 box-border",e,So(e),As(e)),...i,children:u(Xl,{title:t?u(Vt,{className:"!p-0 max-w-[600px]",title:t,headlineVersion:ko(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:Ho(n)}):null,u("div",{className:"text-l",children:l})]})})})));function Ho(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const Go=x((e=>{const{__html:t,richVersion:n,...l}=e;return u(k,{...l,children:u(ya,{__html:t,richVersion:n})})})),Xo=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(Ca,{isFoldButtonOnTop:l,unfoldedByDefault:n,renderFoldableSection:({isUnfolded:e})=>u(ka,{className:"grid grid-cols-12 gap-5 [&>*]:p-0",isUnfolded:e,children:hl(r)}),renderFoldButton:({isUnfolded:e,onToggle:n})=>Wo({version:a,label:t,isUnfolded:e,onToggle:n})})})));Xo.childrenTypes={exclude:["RollupItem"]};const Wo=({version:e,label:t,isUnfolded:n,onToggle:l})=>{const a=t||(n?"Скрыть":"Развернуть");return"primary"===e?Ko({label:a,icon:n?"MinusIcon":"PlusIcon",onToggle:l}):u(jr,{label:a,icon:n?"ArrowUpIcon":"ArrowDownIcon",onClick:l})},Ko=({label:e,icon:t,onToggle:n})=>p("button",{className:"border-none bg-transparent px-0 pt-5 pb-3.5 flex justify-between text-left w-full font-sans text-h6 cursor-pointer",onClick:n,children:[u(re,{size:"text-xl",font:"font-medium",children:e}),t?u(ot,{image:Hl({icon:t}),width:"24",height:"24",asSVG:!0}):null]}),Jo=[];const Yo=async e=>await V(e,{method:"GET"})||Jo,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})})),Zo=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:"Выберите отделение"})})]}))),Qo=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]})}))),ec=x((()=>{const[e,t]=l("option2"),n=r((e=>t(e)),[]);return p("div",{children:[u(Qo,{className:"mb-2",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===e,onChange:n}),u(Qo,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===e,onChange:n})]})})),tc=["От 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(Xe,{min:1,max:365,value:e,items:tc,onChange:t})]}))),lc=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:"Выберите параметр ячейки"})})]}))),ac=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(Zo,{regions:e,selectedRegion:t,onSelectedRegion:e=>c({selectedRegion:e}),branches:n,selectedBranch:l,onSelectedBranch:rc(c)}),u(nc,{days:a,setDays:e=>c({days:e})}),u(lc,{caseVolumes:o,selectedCaseVolume:r,onSelectedCaseVolume:ic(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(ec,{}),u(te,{text:"Офисы на карте",version:"primary",onClick:d})]})]}))),rc=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},ic=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},sc=x((({days:e,tariffs:t=[]})=>{const n=cc(e,t);return p("div",{className:"flex flex-col justify-between",children:[p("div",{className:"flex",children:[oc("Аренда за",e,"mr-11"),oc("Цена",n+" ₽")]}),p("div",{className:"bg-primary-main px-10 pt-10 pb-4 text-center",children:[u(ot,{image:{icon:"PackA4Icon"},width:"290",height:"257",asSVG:!0}),p("span",{className:"text-s-light text-white opacity-80 mt-2 inline-block",children:["На рисунки изображена пачка",u("br",{})," листов формата А4"]})]})]})})),oc=(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})]}),cc=(e,t)=>{const n=dc(e);return e*(t?.find((e=>e.tariffType===String(n)))?.tariffValue||0)},dc=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},mc=(e,t)=>e.find((e=>e.branchCode===t)),hc=x((e=>{const{regions:t,data:n,branches:l,onChange:r,onClick:i}=e;a((()=>{r({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[n.selectedRegion,r]);const s=mc(l,n.selectedBranch),o=uc(s?.safeBoxCaseVolumes),c=pc(s?.safeBoxCaseVolumes,n.selectedCaseVolume)?.safeBoxCases,d=xc(c,n.selectedBoxSize);return p("div",{className:"flex justify-between align-top mb-6",children:[u(ac,{...n,regions:t,onClick:i,branches:l,caseVolumes:o,safeBoxCases:c,onChange:r}),u(sc,{days:n.days,tariffs:d})]})})),uc=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],pc=(e,t)=>e?.find((e=>e.volume===t)),xc=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs,gc=x((({title:e,footnote:t,className:n="",...a})=>{const[i,s]=l(!1),o=r((()=>s((e=>!e))),[]),[c,d]=l({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26}),m=j(),h=bc(c.selectedRegion,m),x=function(e){const{data:t}=B(e?`/api/v1/safeboxes?regionCode=${e}`:null,Yo);return t||Jo}(h),g=r((e=>d((t=>({...t,...e})))),[d]),b=(f=mc(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(hc,{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(to,{points:b,className:"h-[640px]"}):null]})})),bc=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e,fc=e=>Boolean(e?.icon||e?.src),vc=({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",Nc(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(aa,{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))},Nc=e=>e<5?"w-[276px]":"w-[210px]",yc={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"},wc=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=yc,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:ks(u("div",{className:w("h-0.5 w-full bg-secondary-light flex-1",m)}))(n.map(Cc(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 vc(g)(e,t,n);case"rte":return u("div",{className:w("text-center",Nc(n.length)),children:u(ya,{__html:e.__html})},String(t));default:return null}}))})]}):null,It(l,{className:"mt-8"})]});var g})),Cc=(e,t,n)=>({icon:l},a)=>{const r="secondary"===n?"group-data-primary:text-white":"text-secondary-text";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:fc(l)?u(ot,{image:Hl(l||{},n),width:"48",height:"48",asSVG:!0}):u("span",{className:w("text-h4","transparent"===n?e.iconText:r),children:a+1})},String(a))},kc=x((({className:e="",gap:t=14,padding:n=16,showDots:l=!0,minHeight:a,children:r,onVisibleIndicesChange:i,listType:s="horizontal-list",version:o})=>{const c=Array.isArray(r)?r.length:0,[d,m]=kl({itemCount:c,onVisibleIndicesChange:i}),[h]=m.visibleIndicesRange;return p("div",{className:w(e,"vertical-list"===s?"relative h-full":""),children:[u(gl,{containerRef:d,activeIndex:h,visibleItemCount:1,gap:t,padding:n,onVisibleIndicesChange:m.handleVisibleIndicesChange,listType:s,minHeight:a,children:r}),l?u(yl,{containerRef:d,activeIndex:h,dotCount:c,listType:s,version:o}):null]})})),Sc=x((({listType:e,showDots:t,options:n,version:l,...a})=>u(k,{version:l,...a,children:u(kc,{listType:e,showDots:t,version:l,children:hl({...a,options:n})})})));Sc.childrenTypes={exclude:["SwipeListControlBlock"]};const Ic="h-12 flex-1 flex items-center justify-center cursor-pointer",Tc="font-sans text-m text-center",$c="text-white",Bc="text-secondary-text group-hover/btn:text-primary-main",Rc="text-primary-main",Vc={div:{scrollable:{active:`inline-flex px-4 grow whitespace-nowrap ${Ic} bg-white text-primary-main`,default:`inline-flex px-4 grow whitespace-nowrap ${Ic} group/btn bg-white`},default:{active:`${Ic} bg-primary-main text-white whitespace-nowrap`,default:`${Ic} group/btn bg-white whitespace-nowrap`}},text:{scrollable:{active:"h-full border-0 border-b-2",default:""},default:{active:"",default:""}}},Mc={link:{scrollable:{active:`inline-flex px-4 grow whitespace-nowrap ${Ic} bg-white text-primary-main`,default:`inline-flex px-4 grow whitespace-nowrap ${Ic} group/btn bg-white`},default:{active:`${Ic} bg-primary-main text-white`,default:`${Ic} group/btn bg-white`}},text:{scrollable:{active:`${Tc} flex items-center h-full border-0 border-b-2 text-primary-main`,default:`${Tc} ${Bc}`},default:{active:`${Tc} text-white`,default:`${Tc} ${Bc}`}}},jc=(e,t,n)=>{const l=t?"active":"default";return Vc[e][n?"scrollable":"default"][l]},_c=(e,t,n)=>{const l=t?"active":"default";return Mc[e][n?"scrollable":"default"][l]},Lc=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:_c("link",r,a),target:t.target,href:i.href,onClick:e=>{i.onClick(e),l(t)},children:u("span",{className:_c("text",r,a),children:t.text})})})),Pc=(e,t,n)=>e?u("h3",{className:n?`${Tc} ${t?Rc:Bc}`:`${Tc} ${t?$c:Bc}`,children:e}):null,Dc=(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,zc=({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:jc("div",s,a),role:"tab","aria-selected":s,onClick:()=>l(r),children:p("div",{className:`flex flex-1 items-center justify-center ${jc("text",s,a)}`,children:[Pc(r.title,s,a),Dc(n,o,s)]})},`group-${String(i)}`)})({page:e,currentTab:t,showCounter:n,onClick:l,isScrollable:a})(r,i);case"link":return u(Lc,{tab:r,currentTab:t,isScrollable:a,onClick:l},String(i));default:qr(s)}return null},Oc=x((e=>{const{tabs:t,onClick:n,currentTab:l,page:a,showCounter:r}=e,[i,s]=kl({itemCount:t?.length||0,isCyclic:!1});return p("div",{className:"relative max-w-full m-auto",children:[u("div",{className:"font-sans max-w-full w-full overflow-hidden relative bg-white",children:u(gl,{containerRef:i,snapAlign:"snap-start",onVisibleIndicesChange:s.handleVisibleIndicesChange,children:t?.map(zc({onClick:n,currentTab:l,showCounter:r,page:a,isScrollable:!0}))})}),s.canScrollLeft?u(Xt,{className:"absolute z-40 top-0 left-6",onClick:s.scrollLeft}):null,s.canScrollRight?u(Wt,{className:"absolute z-40 top-0 rotate-180 right-6",onClick:s.scrollRight}):null]})})),Ac=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]&&Ec(n[0])}),[]),a((()=>{"group"===d?.type&&f.subject("tab",{type:d.type,label:d.ref})}),[d]);const h=r((e=>{Ec(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(Oc,{tabs:n,onClick:h,currentTab:d,showCounter:i,...c}):n?.map(zc({onClick:h,currentTab:d,showCounter:i,...c}))})})),Ec=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})},Fc=x((({isOpen:e,onClick:t})=>p(te,{version:"primary",onClick:t,className:"w-full flex items-center justify-center rounded-none py-5",children:[u("div",{className:"text-h4",children:e?"Скрыть":"Показать ставки по вкладу"}),u(fe,{name:e?"ArrowUpIcon":"ArrowDownIcon",className:"ml-3",iconVersion:"white",width:"20",height:"20",asSVG:!0})]}))),Uc={Buttons:({buttons:e})=>It(e),Img:({image:e})=>e?.src?u(ot,{image:e}):null,List:({isDotted:e,...t})=>u(aa,{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(Fc,{isOpen:a,onClick:()=>{t({dataUrl:n,pdfUrl:l})}}):null))},Hc=({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,Gc({cell:o,cellProps:{rowIdx:e,cellIdx:t,fieldIdx:c,displayTable:e=>{m(!1),s(t),n(e)},isVisible:d}})]},String(c))},Gc=({cell:e,cellProps:t})=>{if(!e)return null;const{tableCellType:n,...l}=e;if(!n||!(n in Uc))return null;return u(Uc[n],{...t,...l})},Xc=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(Hc({rowIdx:t,cellIdx:n,setTableInner:l,tableInner:a,openTableInnerIdx:r,setOpenTableInnerIdx:i})):null}))),Wc=x((({rows:e})=>{const t=e?.[0]?.length??0,[n,l]=Ht({itemCount:t,visibleItemCount:5});return p("div",{children:[e?.map(Kc(n)),Kt({...l,btnClass:["left-3 top-20","right-3 top-20"],className:""})]})})),Kc=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?Jc(t.cols,e):null]},`row${n}`)))})})]},String(n))},Jc=(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,Yc=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(Wc,{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",asSVG:!0}),text:"Скачать в PDF"}):null]})));async function Zc(e){const t=await fetch(e);return await t.json()}const Qc=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),Zc);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(Yc,{activeTabIndex:i,items:c}),u(Fc,{onClick:n,isOpen:!0})]}:{className:"my-5 text-h6 text-center",children:[u("p",{children:"Данных нет"}),u(Fc,{onClick:n,isOpen:!0})]})})),ed=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(Qc,{...t,onClick:n})}):null]}))),td=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(ed,{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:Hl(e.icon),width:"24",height:"24",asSVG:!0}):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(Xc,{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: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(td,{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:[ld({title:t,description:n}),ad(n),r>0?u(Ca,{renderFoldableSection:({isUnfolded:e})=>p(rd,{controls:m,children:[x,u(ka,{isUnfolded:e,children:g})]}),renderFoldButton:_r}):u(rd,{controls:m,children:h})]})}));function ld({title:e,description:t}){return e?u(T,{headingType:"h3",className:"text-center "+(t?"mb-2.5":"mb-8"),title:e}):null}function ad(e){return e?u("div",{className:"mb-9 text-center text-l",children:e}):null}const rd=x((({children:e,controls:t})=>{const{isScrollAvailable:n}=t;return p("div",{role:"table",children:[p("div",{className:"relative",children:[e,Kt({...t,btnClass:["top-[108px]","top-[44px]"],className:"right-7"})]}),n?u("div",{className:"absolute top-0 right-0 bottom-0 w-[84px] bg-opacity-to-white"}):null]})})),id=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:sd()}):null,"big"===l?od(a):null,p("div",{children:[t?cd(t):null,n?u("div",{className:"mt-1",children:dd(n)}):null,r?u(ya,{__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"}),od=e=>e?.src?u(ot,{image:e}):null,cd=e=>u(re,{size:"text-l",font:"font-medium",color:"text-primary-text group-data-secondary:text-white",children:e}),dd=e=>u(ae,{size:"text-s",color:"text-secondary-text group-data-secondary:text-white",children:e}),md=x((e=>{const{tags:t,className:n=""}=e;return t?.length?u("div",{className:`flex flex-wrap gap-2 ${n}`,children:t.map(hd)}):null})),hd=(e,t)=>u("span",{className:"text-m-light py-2 px-2.5 border-solid border rounded-md border-gray",children:e},String(t)),ud=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,...m})=>u(k,{className:`overflow-hidden p-9 pr-3 box-border ${So(o)} ${As(o)} ${o}`,...m,children:p(Xl,{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]"}),image:r?.src?u(ot,{className:"mt-auto ml-7",image:r}):null,children:[n?u("div",{className:"max-w-[600px] mt-2.5",children:u(ya,{__html:n})}):null,d,u(aa,{className:"mt-2.5",itemClassName:"mb-1.5",items:l,isDotted:i,listItemSize:s}),c?.length?u(md,{tags:c,className:"mt-5"}):null]})}))),pd={stretch:"items-stretch",left:"items-start",center:"items-center",right:"items-end"},xd=x((({className:e="",gap:t="",align:n="stretch",isPadding:l=!1,isInnerPadding:a=!0,version:r="transparent",isTheme:i=!1,...s})=>{const o=a?"":"!p-0";return u(k,{className:w("flex flex-col [&>*]:max-w-full",l?"p-12":"",xs[t],n&&pd[n],e),version:r,isTheme:i,...s,children:hl({...s,renderProps:(e,t)=>cl(e,t,{className:o})})})}));xd.childrenTypes=[];const gd=e=>Os(e)<10?"py-6 px-11":"py-12 px-32",bd=x((({className:e,title:t,url:n,previewImg:l,...a})=>{const r=U();return p(k,{className:w(gd(e),e),...a,children:[u(Vt,{title:t,headlineVersion:"M"}),n?u("video",{className:"m-auto w-full object-fill",preload:"metadata",poster:A(r)(l?.src),style:{maxHeight:524},controls:!0,children:u("source",{src:A(r)(n)})}):null]})})),fd={ApplicationForm:Nt,BenefitsBlock:yt,Bonus:Mt,BonusBenefitsBlock:Dt,BusinessBlock:Ft,ButtonBlock:Ut,Calculator:Qn,CardTransfer:il,Carousel:Bl,CarouselBankHistoryCard:jl,CarouselCard:Ol,CarouselCatalogCard:El,CarouselEventCard:Gl,CarouselInvestmentCard:Kl,CarouselLinks:Zl,CarouselProductCard:ra,CarouselProgramsCard:ma,CarouselRecommendationCard:va,CarouselRichTextCard:wa,CarouselTariffsCard:Sa,ComparisonTable:Ka,ContactsBlock:Ya,ErrorBlock:er,ExchangeRateTile:Vr,Filtration:Fr,Footer:Ri,GracePeriod:Vi,Header:ps,Headline:Vt,HorizontalLayout:gs,ImgBlock:bs,InsuranceAmountBlock:ws,InvestmentInfo:Ts,LinkDocs:zs,MobileAppTile:Es,OfficeMap:po,OfficeServicesBlock:xo,ParagraphBlock:bo,PictureText:yo,Placeholder:Io,ProductBlock:Po,ProductGallery:Do,ProductTile:Eo,PromoTile:Uo,RichTextBlock:Go,RollupItem:Xo,SafeDepositRental:gc,StepsBlock:wc,SwipeListControlBlock:Sc,Tabs:Ac,TariffsTable:nd,TextBlock:id,Tile:ud,VerticalLayout:xd,Video:bd,ExchangeRateOffice:or};const vd=["Header","Footer"],Nd=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function yd(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])=>!vd.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[n]=t.length>0?yn(Nd)(t):[];return n}([...t.current||[]]):void 0)}),100);return e.addEventListener("scroll",n),()=>{n.dispose(),e.removeEventListener("scroll",n)}}),[e])}const wd=h();const Cd=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:kd()}))),kd=()=>{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"})]})},Sd=x((({className:e=""})=>{const t=function(e){const[t,n]=l(0);return a((()=>{(async()=>{const[t]=await wd.getLikeCount(e);n(t?.value||0)})()}),[e]),{likeCount:t,like:r((async()=>{n(await wd.like(e))}),[e]),dislike:r((async()=>{n(await wd.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(Cd,{onClick:F(t.like),ariaLabel:"Поставить отметку «лайк»"}),u(Cd,{onClick:F(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),u("span",{className:"select-none",children:t.likeCount})]})})),Id=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};yd();const[m,{setTrue:h,setFalse:x}]=ci();return Zr({onOpen:h,onClose:x}),p("section",{className:w("relative",r,t,m?"overflow-hidden h-screen":""),"data-theme":c,children:[s?.header?u("div",{className:"mb-5 shadow-[0_8px_32px_0px_#00000014]",children:ml(s?.header,{...d,slotName:"header"})}):null,p("div",{className:"container grid grid-cols-12 gap-1",children:[ml(i,d),s?.footer?ml(s?.footer,{...d,slotName:"footer"}):null]}),o?u("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:u(Sd,{className:"rounded-tl-lg sticky bottom-0 pointer-events-auto"})}):null]})}));Id.childrenTypes=[],Id.slots=()=>["header","footer"];e.Blocks=fd,e.ContentPage=Id,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=ks,e.packageVersion="0.10.0",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})}));
|