@redneckz/wildless-cms-uni-blocks 0.13.2 → 0.13.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/migration-scripts/0.13.3.js +36 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +208 -218
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/SelectControl.d.ts +1 -0
- package/bundle/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.d.ts +1 -1
- package/bundle/components/CarouselLinks/CarouselLinkButton.d.ts +5 -0
- package/bundle/components/ComparisonTable/constants.d.ts +1 -1
- package/bundle/components/Headline/HeadlineContent.d.ts +2 -2
- package/bundle/components/RollupItem/foldableSectionStyles.d.ts +1 -1
- package/bundle/components/SafeDepositRental/RadioButtons.d.ts +1 -1
- package/bundle/components/StepsBlock/StepsBlock.mobile.d.ts +1 -1
- package/bundle/components/TariffsTable/constants.d.ts +1 -1
- package/bundle/components/Video/getPaddings.d.ts +1 -1
- package/bundle/model/HeadlineType.d.ts +1 -1
- package/dist/components/ApplicationForm/ApplicationForm.js +1 -1
- package/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
- package/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +1 -1
- package/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormCredit.js +1 -1
- package/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
- package/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormGrantSupport.js +1 -1
- package/dist/components/ApplicationForm/ApplicationFormWed.js +1 -1
- package/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/dist/components/ApplicationForm/ResponseNotification.js +1 -1
- package/dist/components/ApplicationForm/ResponseNotification.js.map +1 -1
- package/dist/components/ApplicationForm/SelectControl.d.ts +1 -0
- package/dist/components/ApplicationForm/SelectControl.js +1 -1
- package/dist/components/ApplicationForm/SelectControl.js.map +1 -1
- package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
- package/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/dist/components/ApplicationForm/renderAcquiringRegion.js +1 -1
- package/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +1 -1
- package/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
- package/dist/components/ApplicationForm/renderContacts.js +1 -1
- package/dist/components/ApplicationForm/renderContacts.js.map +1 -1
- package/dist/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
- package/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/dist/components/ApplicationForm/renderCreditParameters.js +1 -1
- package/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/dist/components/ApplicationForm/renderQuestionsInterested.js +1 -1
- package/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/dist/components/ApplicationForm/renderRegion.js +1 -1
- package/dist/components/ApplicationForm/renderRegion.js.map +1 -1
- package/dist/components/ApplicationForm/renderRegionDepartment.js +1 -1
- package/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/dist/components/ApplicationForm/renderSlideCheckboxes.js +1 -1
- package/dist/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -1
- package/dist/components/ApplicationForm/renderSubmitButton.js +1 -1
- package/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/dist/components/Bonus/Bonus.js +2 -2
- package/dist/components/Bonus/Bonus.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/dist/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.d.ts +1 -1
- package/dist/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.js +1 -1
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.js +1 -1
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -1
- package/dist/components/BusinessBlock/BusinessBlock.js +1 -1
- package/dist/components/BusinessBlock/BusinessBlock.js.map +1 -1
- package/dist/components/BusinessBlock/BusinessCard.js +1 -1
- package/dist/components/BusinessBlock/BusinessCard.js.map +1 -1
- package/dist/components/Calculator/BonusCalculatorForm.js +2 -3
- package/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js +24 -23
- package/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/Calculator.js +4 -4
- package/dist/components/Calculator/Calculator.js.map +1 -1
- package/dist/components/Calculator/CalculatorValueBlock.js +1 -1
- package/dist/components/Calculator/CalculatorValueBlock.js.map +1 -1
- package/dist/components/Calculator/CreditCalculatorForm.js +4 -4
- package/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/DepositCalculatorForm.js +3 -3
- package/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/Rate.js +1 -1
- package/dist/components/Calculator/Rate.js.map +1 -1
- package/dist/components/Calculator/RefinancingCalculatorForm.js +4 -5
- package/dist/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
- package/dist/components/Calculator/renderBinaryRadioButtonGroup.js +1 -1
- package/dist/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -1
- package/dist/components/Calculator/renderCalculatorBlock.js +1 -1
- package/dist/components/Calculator/renderCalculatorBlock.js.map +1 -1
- package/dist/components/Calculator/renderInitialFeeInput.js +1 -1
- package/dist/components/Calculator/renderInitialFeeInput.js.map +1 -1
- package/dist/components/CardTransfer/CardTransfer.js +1 -1
- package/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +1 -1
- package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
- package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.js +1 -1
- package/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.js.map +1 -1
- package/dist/components/CarouselCard/CarouselCard.js +1 -1
- package/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +4 -9
- package/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
- package/dist/components/CarouselLinks/CarouselLinkButton.d.ts +5 -0
- package/dist/{ui-kit/LinkButton/LinkButton.js → components/CarouselLinks/CarouselLinkButton.js} +5 -5
- package/dist/components/CarouselLinks/CarouselLinkButton.js.map +1 -0
- package/dist/components/CarouselLinks/CarouselLinks.js +5 -5
- package/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js +1 -1
- package/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -1
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/dist/components/CarouselTariffsCard/getPaddingStyle.js +1 -1
- package/dist/components/CarouselTariffsCard/getPaddingStyle.js.map +1 -1
- package/dist/components/CarouselTariffsCard/getPaddingStyle.mobile.js +1 -1
- package/dist/components/CarouselTariffsCard/getPaddingStyle.mobile.js.map +1 -1
- package/dist/components/CarouselTariffsCard/renderCardInfo.js +1 -1
- package/dist/components/CarouselTariffsCard/renderCardInfo.js.map +1 -1
- package/dist/components/ComparisonTable/ComparisonTable.js +2 -2
- package/dist/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/dist/components/ComparisonTable/TableCarouselContainer.js +1 -1
- package/dist/components/ComparisonTable/TableCell.js +1 -1
- package/dist/components/ComparisonTable/TableCell.js.map +1 -1
- package/dist/components/ComparisonTable/TableCell.mobile.js +1 -1
- package/dist/components/ComparisonTable/TableCell.mobile.js.map +1 -1
- package/dist/components/ComparisonTable/TableColumn.js +1 -1
- package/dist/components/ComparisonTable/TableColumn.js.map +1 -1
- package/dist/components/ComparisonTable/TableRow.js +1 -1
- package/dist/components/ComparisonTable/TableRow.js.map +1 -1
- package/dist/components/ComparisonTable/TableRowContainer.js +1 -1
- package/dist/components/ComparisonTable/TableRowContainer.js.map +1 -1
- package/dist/components/ComparisonTable/constants.d.ts +1 -1
- package/dist/components/ComparisonTable/constants.js +1 -1
- package/dist/components/ComparisonTable/constants.js.map +1 -1
- package/dist/components/ContactsBlock/ContactsBlock.js +2 -2
- package/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/dist/components/ContentPage/ContentPage.js +1 -1
- package/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/dist/components/DepositFiltration/DepositFiltration.js +1 -1
- package/dist/components/DepositFiltration/DepositFiltration.js.map +1 -1
- package/dist/components/ErrorBlock/ErrorBlock.js +2 -2
- package/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/dist/components/ExchangeRateOffice/renderCurrencies.js +1 -1
- package/dist/components/ExchangeRateOffice/renderCurrencies.js.map +1 -1
- package/dist/components/ExchangeRateTile/CurrencyTable.js +1 -1
- package/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
- package/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/dist/components/ExchangeRateTile/renderInput.js +1 -1
- package/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/dist/components/Footer/buttonStylesWithText.js +1 -1
- package/dist/components/Footer/buttonStylesWithText.js.map +1 -1
- package/dist/components/GracePeriod/GracePeriod.js +4 -3
- package/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/dist/components/Header/DropdownMenu.js +2 -2
- package/dist/components/Header/DropdownMenu.js.map +1 -1
- package/dist/components/Header/Header.mobile.js +1 -1
- package/dist/components/Header/Header.mobile.js.map +1 -1
- package/dist/components/Header/HeaderSecondaryMenu.js +1 -1
- package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/dist/components/Header/HeaderSecondaryMenuButton.js +1 -1
- package/dist/components/Header/HeaderSubMenu.js +1 -2
- package/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/dist/components/Header/InternetBankButton.js +2 -2
- package/dist/components/Header/InternetBankButton.js.map +1 -1
- package/dist/components/Headline/Headline.js +2 -2
- package/dist/components/Headline/Headline.js.map +1 -1
- package/dist/components/Headline/HeadlineContent.d.ts +2 -2
- package/dist/components/Headline/headlineVersionStyles.js +1 -1
- package/dist/components/Headline/headlineVersionStyles.js.map +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +5 -5
- package/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/dist/components/InvestmentInfo/InvestmentInfo.js +2 -2
- package/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/dist/components/LikeControl/LikeControl.js +1 -1
- package/dist/components/LikeControl/LikeControl.js.map +1 -1
- package/dist/components/LinkDocs/LinkDocItem.js +1 -1
- package/dist/components/LinkDocs/LinkDocs.js +2 -2
- package/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/dist/components/MobileAppTile/renderList.js +1 -1
- package/dist/components/MobileAppTile/renderList.js.map +1 -1
- package/dist/components/MortgageFiltration/MortgageFiltration.js +1 -1
- package/dist/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
- package/dist/components/OfficeMap/OfficeMap.js +1 -1
- package/dist/components/OfficeMap/OfficeMap.js.map +1 -1
- package/dist/components/OfficeMap/renderFunctions.js +4 -4
- package/dist/components/OfficeMap/renderFunctions.js.map +1 -1
- package/dist/components/Placeholder/Placeholder.js +1 -1
- package/dist/components/Placeholder/Placeholder.js.map +1 -1
- package/dist/components/ProductBlock/renderBackwardButton.js +1 -1
- package/dist/components/ProductGallery/ProductGallery.js +4 -4
- package/dist/components/ProductGallery/ProductGallery.js.map +1 -1
- package/dist/components/PromoTile/PromoTile.js +1 -1
- package/dist/components/PromoTile/PromoTile.js.map +1 -1
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +1 -1
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/dist/components/RollupItem/RollupItem.js +1 -1
- package/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/dist/components/RollupItem/foldableSectionStyles.d.ts +1 -1
- package/dist/components/RollupItem/foldableSectionStyles.js +1 -1
- package/dist/components/SafeDepositRental/RadioButtons.d.ts +1 -1
- package/dist/components/SafeDepositRental/RadioButtons.js +1 -1
- package/dist/components/SafeDepositRental/RadioButtons.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeBoxCases.js +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRental.js +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalFields.js +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalForm.js +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
- package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +2 -2
- package/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.js +4 -4
- package/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.d.ts +1 -1
- package/dist/components/StepsBlock/StepsBlock.mobile.js +6 -7
- package/dist/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/dist/components/StepsBlock/renderStep.js +1 -1
- package/dist/components/StepsBlock/renderStep.js.map +1 -1
- package/dist/components/TariffsTable/EmbeddableCellData.js +1 -4
- package/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/dist/components/TariffsTable/EmbeddableCellData.mobile.js +2 -2
- package/dist/components/TariffsTable/EmbeddableCellData.mobile.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.js +3 -3
- package/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTable.mobile.js +1 -1
- package/dist/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableCell.js +1 -1
- package/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/dist/components/TariffsTable/TariffsTableVertical.js +1 -1
- package/dist/components/TariffsTable/TariffsTableVertical.js.map +1 -1
- package/dist/components/TariffsTable/constants.d.ts +1 -1
- package/dist/components/TariffsTable/constants.js +1 -1
- package/dist/components/TariffsTable/constants.js.map +1 -1
- package/dist/components/TextBlock/TextBlock.js +2 -2
- package/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/dist/components/Video/getPaddings.d.ts +1 -1
- package/dist/components/Video/getPaddings.js +1 -1
- package/dist/components/Video/getPaddings.js.map +1 -1
- package/dist/model/HeadlineType.d.ts +1 -1
- package/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js +1 -1
- package/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
- package/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/dist/ui-kit/Button/ButtonInner.js +1 -1
- package/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/dist/ui-kit/Checkbox/Checkbox.js +1 -1
- package/dist/ui-kit/CookiePopup/CookiePopup.js +1 -1
- package/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/dist/ui-kit/DialogManager/CloseButton.js +1 -1
- package/dist/ui-kit/DialogManager/CloseButton.js.map +1 -1
- package/dist/ui-kit/Foldable/DefaultFoldButton.js +2 -2
- package/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTable.js +1 -1
- package/dist/ui-kit/InnerTable/InnerTable.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableBody.js +1 -1
- package/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableBodyItem.js +3 -2
- package/dist/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
- package/dist/ui-kit/InnerTable/InnerTableButton.js +1 -1
- package/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/dist/ui-kit/Input/Input.js +2 -2
- package/dist/ui-kit/Input/Input.js.map +1 -1
- package/dist/ui-kit/InputRange/InputRange.js +2 -2
- package/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/dist/ui-kit/InputRange/renderRangeWithTicks.js +1 -1
- package/dist/ui-kit/LocationDialog/SearchBar.js +1 -1
- package/dist/ui-kit/LocationDialog/SearchBar.js.map +1 -1
- package/dist/ui-kit/LocationDialog/renderForeignOffices.js +2 -2
- package/dist/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
- package/dist/ui-kit/Radio/Radio.js +1 -1
- package/dist/ui-kit/Radio/Radio.js.map +1 -1
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +2 -2
- package/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/dist/ui-kit/SearchDialog/SearchInput.js +1 -1
- package/dist/ui-kit/SearchDialog/SearchInput.js.map +1 -1
- package/dist/ui-kit/Select/Select.js +2 -2
- package/dist/ui-kit/Select/Select.js.map +1 -1
- package/dist/ui-kit/Sitemap/Sitemap.js +1 -1
- package/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +2 -2
- package/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/dist/ui-kit/Tags/Tags.js +1 -1
- package/dist/ui-kit/Tags/Tags.js.map +1 -1
- package/dist/ui-kit/TopItem/TopItem.js +1 -1
- package/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/dist/ui-kit/YandexMap/renderOpenMap.js +1 -1
- package/dist/ui-kit/YandexMap/renderOpenMap.js.map +1 -1
- package/dist/ui-kit/YandexMap/renderUserGeolocation.js +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.js +1 -1
- package/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
- package/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +1 -1
- package/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormCredit.js +1 -1
- package/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
- package/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/lib/components/ApplicationForm/ApplicationFormGrantSupport.js +1 -1
- package/lib/components/ApplicationForm/ApplicationFormWed.js +1 -1
- package/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/lib/components/ApplicationForm/ResponseNotification.js +1 -1
- package/lib/components/ApplicationForm/ResponseNotification.js.map +1 -1
- package/lib/components/ApplicationForm/SelectControl.d.ts +1 -0
- package/lib/components/ApplicationForm/SelectControl.js +1 -1
- package/lib/components/ApplicationForm/SelectControl.js.map +1 -1
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
- package/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/lib/components/ApplicationForm/renderAcquiringRegion.js +1 -1
- package/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +1 -1
- package/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
- package/lib/components/ApplicationForm/renderContacts.js +1 -1
- package/lib/components/ApplicationForm/renderContacts.js.map +1 -1
- package/lib/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
- package/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/lib/components/ApplicationForm/renderCreditParameters.js +1 -1
- package/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/lib/components/ApplicationForm/renderQuestionsInterested.js +1 -1
- package/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/lib/components/ApplicationForm/renderRegion.js +1 -1
- package/lib/components/ApplicationForm/renderRegion.js.map +1 -1
- package/lib/components/ApplicationForm/renderRegionDepartment.js +1 -1
- package/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/lib/components/ApplicationForm/renderSlideCheckboxes.js +1 -1
- package/lib/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -1
- package/lib/components/ApplicationForm/renderSubmitButton.js +1 -1
- package/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/lib/components/Bonus/Bonus.js +2 -2
- package/lib/components/Bonus/Bonus.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/lib/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.d.ts +1 -1
- package/lib/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.js +1 -1
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.js +1 -1
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.js.map +1 -1
- package/lib/components/BusinessBlock/BusinessBlock.js +1 -1
- package/lib/components/BusinessBlock/BusinessBlock.js.map +1 -1
- package/lib/components/BusinessBlock/BusinessCard.js +1 -1
- package/lib/components/BusinessBlock/BusinessCard.js.map +1 -1
- package/lib/components/Calculator/BonusCalculatorForm.js +2 -3
- package/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js +24 -23
- package/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/Calculator.js +4 -4
- package/lib/components/Calculator/Calculator.js.map +1 -1
- package/lib/components/Calculator/CalculatorValueBlock.js +1 -1
- package/lib/components/Calculator/CalculatorValueBlock.js.map +1 -1
- package/lib/components/Calculator/CreditCalculatorForm.js +4 -4
- package/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/DepositCalculatorForm.js +4 -4
- package/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/Rate.js +1 -1
- package/lib/components/Calculator/Rate.js.map +1 -1
- package/lib/components/Calculator/RefinancingCalculatorForm.js +5 -6
- package/lib/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
- package/lib/components/Calculator/renderBinaryRadioButtonGroup.js +1 -1
- package/lib/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -1
- package/lib/components/Calculator/renderCalculatorBlock.js +1 -1
- package/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
- package/lib/components/Calculator/renderInitialFeeInput.js +1 -1
- package/lib/components/Calculator/renderInitialFeeInput.js.map +1 -1
- package/lib/components/CardTransfer/CardTransfer.js +1 -1
- package/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +1 -1
- package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
- package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.js +1 -1
- package/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.js.map +1 -1
- package/lib/components/CarouselCard/CarouselCard.js +1 -1
- package/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +4 -9
- package/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
- package/lib/components/CarouselLinks/CarouselLinkButton.d.ts +5 -0
- package/{mobile/lib/ui-kit/LinkButton/LinkButton.js → lib/components/CarouselLinks/CarouselLinkButton.js} +4 -4
- package/lib/components/CarouselLinks/CarouselLinkButton.js.map +1 -0
- package/lib/components/CarouselLinks/CarouselLinks.js +5 -5
- package/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js +1 -1
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.js.map +1 -1
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/lib/components/CarouselTariffsCard/getPaddingStyle.js +1 -1
- package/lib/components/CarouselTariffsCard/getPaddingStyle.js.map +1 -1
- package/lib/components/CarouselTariffsCard/getPaddingStyle.mobile.js +1 -1
- package/lib/components/CarouselTariffsCard/getPaddingStyle.mobile.js.map +1 -1
- package/lib/components/CarouselTariffsCard/renderCardInfo.js +1 -1
- package/lib/components/CarouselTariffsCard/renderCardInfo.js.map +1 -1
- package/lib/components/ComparisonTable/ComparisonTable.js +2 -2
- package/lib/components/ComparisonTable/ComparisonTable.js.map +1 -1
- package/lib/components/ComparisonTable/TableCarouselContainer.js +1 -1
- package/lib/components/ComparisonTable/TableCell.js +1 -1
- package/lib/components/ComparisonTable/TableCell.js.map +1 -1
- package/lib/components/ComparisonTable/TableCell.mobile.js +1 -1
- package/lib/components/ComparisonTable/TableCell.mobile.js.map +1 -1
- package/lib/components/ComparisonTable/TableColumn.js +1 -1
- package/lib/components/ComparisonTable/TableColumn.js.map +1 -1
- package/lib/components/ComparisonTable/TableRow.js +1 -1
- package/lib/components/ComparisonTable/TableRow.js.map +1 -1
- package/lib/components/ComparisonTable/TableRowContainer.js +1 -1
- package/lib/components/ComparisonTable/TableRowContainer.js.map +1 -1
- package/lib/components/ComparisonTable/constants.d.ts +1 -1
- package/lib/components/ComparisonTable/constants.js +1 -1
- package/lib/components/ComparisonTable/constants.js.map +1 -1
- package/lib/components/ContactsBlock/ContactsBlock.js +2 -2
- package/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/lib/components/ContentPage/ContentPage.js +1 -1
- package/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/lib/components/DepositFiltration/DepositFiltration.js +1 -1
- package/lib/components/DepositFiltration/DepositFiltration.js.map +1 -1
- package/lib/components/ErrorBlock/ErrorBlock.js +2 -2
- package/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/lib/components/ExchangeRateOffice/renderCurrencies.js +1 -1
- package/lib/components/ExchangeRateOffice/renderCurrencies.js.map +1 -1
- package/lib/components/ExchangeRateTile/CurrencyTable.js +1 -1
- package/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
- package/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/lib/components/ExchangeRateTile/renderInput.js +1 -1
- package/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/lib/components/Footer/buttonStylesWithText.js +1 -1
- package/lib/components/Footer/buttonStylesWithText.js.map +1 -1
- package/lib/components/GracePeriod/GracePeriod.js +4 -3
- package/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/lib/components/Header/DropdownMenu.js +2 -2
- package/lib/components/Header/DropdownMenu.js.map +1 -1
- package/lib/components/Header/Header.mobile.js +1 -1
- package/lib/components/Header/Header.mobile.js.map +1 -1
- package/lib/components/Header/HeaderSecondaryMenu.js +1 -1
- package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/lib/components/Header/HeaderSecondaryMenuButton.js +1 -1
- package/lib/components/Header/HeaderSubMenu.js +1 -2
- package/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/lib/components/Header/InternetBankButton.js +2 -2
- package/lib/components/Header/InternetBankButton.js.map +1 -1
- package/lib/components/Headline/Headline.js +2 -2
- package/lib/components/Headline/Headline.js.map +1 -1
- package/lib/components/Headline/HeadlineContent.d.ts +2 -2
- package/lib/components/Headline/headlineVersionStyles.js +1 -1
- package/lib/components/Headline/headlineVersionStyles.js.map +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +5 -5
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/lib/components/InvestmentInfo/InvestmentInfo.js +2 -2
- package/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/lib/components/LikeControl/LikeControl.js +1 -1
- package/lib/components/LikeControl/LikeControl.js.map +1 -1
- package/lib/components/LinkDocs/LinkDocItem.js +1 -1
- package/lib/components/LinkDocs/LinkDocs.js +2 -2
- package/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/lib/components/MobileAppTile/renderList.js +1 -1
- package/lib/components/MobileAppTile/renderList.js.map +1 -1
- package/lib/components/MortgageFiltration/MortgageFiltration.js +1 -1
- package/lib/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
- package/lib/components/OfficeMap/OfficeMap.js +1 -1
- package/lib/components/OfficeMap/OfficeMap.js.map +1 -1
- package/lib/components/OfficeMap/renderFunctions.js +4 -4
- package/lib/components/OfficeMap/renderFunctions.js.map +1 -1
- package/lib/components/Placeholder/Placeholder.js +1 -1
- package/lib/components/Placeholder/Placeholder.js.map +1 -1
- package/lib/components/ProductBlock/renderBackwardButton.js +1 -1
- package/lib/components/ProductGallery/ProductGallery.js +4 -4
- package/lib/components/ProductGallery/ProductGallery.js.map +1 -1
- package/lib/components/PromoTile/PromoTile.js +1 -1
- package/lib/components/PromoTile/PromoTile.js.map +1 -1
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +1 -1
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/lib/components/RollupItem/RollupItem.js +1 -1
- package/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/lib/components/RollupItem/foldableSectionStyles.d.ts +1 -1
- package/lib/components/RollupItem/foldableSectionStyles.js +1 -1
- package/lib/components/SafeDepositRental/RadioButtons.d.ts +1 -1
- package/lib/components/SafeDepositRental/RadioButtons.js +1 -1
- package/lib/components/SafeDepositRental/RadioButtons.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeBoxCases.js +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRental.js +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalFields.js +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalForm.js +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
- package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +2 -2
- package/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.js +4 -4
- package/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.d.ts +1 -1
- package/lib/components/StepsBlock/StepsBlock.mobile.js +6 -7
- package/lib/components/StepsBlock/StepsBlock.mobile.js.map +1 -1
- package/lib/components/StepsBlock/renderStep.js +1 -1
- package/lib/components/StepsBlock/renderStep.js.map +1 -1
- package/lib/components/TariffsTable/EmbeddableCellData.js +1 -4
- package/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/lib/components/TariffsTable/EmbeddableCellData.mobile.js +2 -2
- package/lib/components/TariffsTable/EmbeddableCellData.mobile.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.js +3 -3
- package/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTable.mobile.js +1 -1
- package/lib/components/TariffsTable/TariffsTable.mobile.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableCell.js +1 -1
- package/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/lib/components/TariffsTable/TariffsTableVertical.js +1 -1
- package/lib/components/TariffsTable/TariffsTableVertical.js.map +1 -1
- package/lib/components/TariffsTable/constants.d.ts +1 -1
- package/lib/components/TariffsTable/constants.js +1 -1
- package/lib/components/TariffsTable/constants.js.map +1 -1
- package/lib/components/TextBlock/TextBlock.js +2 -2
- package/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/lib/components/Video/getPaddings.d.ts +1 -1
- package/lib/components/Video/getPaddings.js +1 -1
- package/lib/components/Video/getPaddings.js.map +1 -1
- package/lib/model/HeadlineType.d.ts +1 -1
- package/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js +1 -1
- package/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
- package/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/lib/ui-kit/Button/ButtonInner.js +1 -1
- package/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/lib/ui-kit/Checkbox/Checkbox.js +1 -1
- package/lib/ui-kit/CookiePopup/CookiePopup.js +1 -1
- package/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/lib/ui-kit/DialogManager/CloseButton.js +1 -1
- package/lib/ui-kit/DialogManager/CloseButton.js.map +1 -1
- package/lib/ui-kit/Foldable/DefaultFoldButton.js +2 -2
- package/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTable.js +1 -1
- package/lib/ui-kit/InnerTable/InnerTable.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableBody.js +1 -1
- package/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableBodyItem.js +3 -2
- package/lib/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
- package/lib/ui-kit/InnerTable/InnerTableButton.js +1 -1
- package/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/lib/ui-kit/Input/Input.js +2 -2
- package/lib/ui-kit/Input/Input.js.map +1 -1
- package/lib/ui-kit/InputRange/InputRange.js +2 -2
- package/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/lib/ui-kit/InputRange/renderRangeWithTicks.js +1 -1
- package/lib/ui-kit/LocationDialog/SearchBar.js +1 -1
- package/lib/ui-kit/LocationDialog/SearchBar.js.map +1 -1
- package/lib/ui-kit/LocationDialog/renderForeignOffices.js +2 -2
- package/lib/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
- package/lib/ui-kit/Radio/Radio.js +1 -1
- package/lib/ui-kit/Radio/Radio.js.map +1 -1
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +2 -2
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/lib/ui-kit/SearchDialog/SearchInput.js +1 -1
- package/lib/ui-kit/SearchDialog/SearchInput.js.map +1 -1
- package/lib/ui-kit/Select/Select.js +2 -2
- package/lib/ui-kit/Select/Select.js.map +1 -1
- package/lib/ui-kit/Sitemap/Sitemap.js +1 -1
- package/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +2 -2
- package/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/lib/ui-kit/Tags/Tags.js +1 -1
- package/lib/ui-kit/Tags/Tags.js.map +1 -1
- package/lib/ui-kit/TopItem/TopItem.js +1 -1
- package/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/lib/ui-kit/YandexMap/renderOpenMap.js +1 -1
- package/lib/ui-kit/YandexMap/renderOpenMap.js.map +1 -1
- package/lib/ui-kit/YandexMap/renderUserGeolocation.js +1 -1
- package/mobile/bundle/bundle.umd.js +129 -131
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/SelectControl.d.ts +1 -0
- package/mobile/bundle/components/BonusBenefitsBlock/bonusBenefitStyles.d.ts +1 -1
- package/mobile/bundle/components/CarouselLinks/CarouselLinkButton.d.ts +5 -0
- package/mobile/bundle/components/ComparisonTable/constants.d.ts +1 -1
- package/mobile/bundle/components/Headline/HeadlineContent.d.ts +2 -2
- package/mobile/bundle/components/SafeDepositRental/RadioButtons.d.ts +1 -1
- package/mobile/bundle/components/StepsBlock/StepsBlock.d.ts +1 -1
- package/mobile/bundle/components/TariffsTable/constants.d.ts +1 -1
- package/mobile/bundle/components/Video/getPaddings.d.ts +1 -1
- package/mobile/bundle/model/HeadlineType.d.ts +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormGrantSupport.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ResponseNotification.js +1 -1
- package/mobile/dist/components/ApplicationForm/ResponseNotification.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/SelectControl.d.ts +1 -0
- package/mobile/dist/components/ApplicationForm/SelectControl.js +1 -1
- package/mobile/dist/components/ApplicationForm/SelectControl.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderContacts.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderContacts.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderRegion.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderRegion.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/renderSubmitButton.js +1 -1
- package/mobile/dist/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/mobile/dist/components/Bonus/Bonus.js +2 -2
- package/mobile/dist/components/Bonus/Bonus.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/bonusBenefitStyles.d.ts +1 -1
- package/mobile/dist/components/BonusBenefitsBlock/bonusBenefitStyles.js +1 -1
- package/mobile/dist/components/BusinessBlock/BusinessBlock.js +1 -1
- package/mobile/dist/components/BusinessBlock/BusinessBlock.js.map +1 -1
- package/mobile/dist/components/BusinessBlock/BusinessCard.js +1 -1
- package/mobile/dist/components/BusinessBlock/BusinessCard.js.map +1 -1
- package/mobile/dist/components/Calculator/BonusCalculatorForm.js +2 -3
- package/mobile/dist/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js +24 -23
- package/mobile/dist/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/CalculatorValueBlock.js +1 -1
- package/mobile/dist/components/Calculator/CalculatorValueBlock.js.map +1 -1
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js +4 -4
- package/mobile/dist/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js +3 -3
- package/mobile/dist/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/Rate.js +1 -1
- package/mobile/dist/components/Calculator/Rate.js.map +1 -1
- package/mobile/dist/components/Calculator/RefinancingCalculatorForm.js +4 -5
- package/mobile/dist/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
- package/mobile/dist/components/Calculator/renderBinaryRadioButtonGroup.js +1 -1
- package/mobile/dist/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -1
- package/mobile/dist/components/Calculator/renderCalculatorBlock.js +1 -1
- package/mobile/dist/components/Calculator/renderCalculatorBlock.js.map +1 -1
- package/mobile/dist/components/Calculator/renderInitialFeeInput.js +1 -1
- package/mobile/dist/components/Calculator/renderInitialFeeInput.js.map +1 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.js +1 -1
- package/mobile/dist/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +1 -1
- package/mobile/dist/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCard.js +1 -1
- package/mobile/dist/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/mobile/dist/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js +4 -9
- package/mobile/dist/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
- package/mobile/dist/components/CarouselLinks/CarouselLinkButton.d.ts +5 -0
- package/mobile/dist/{ui-kit/LinkButton/LinkButton.js → components/CarouselLinks/CarouselLinkButton.js} +5 -5
- package/mobile/dist/components/CarouselLinks/CarouselLinkButton.js.map +1 -0
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js +5 -5
- package/mobile/dist/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/mobile/dist/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/mobile/dist/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/dist/components/CarouselTariffsCard/getPaddingStyle.js +1 -1
- package/mobile/dist/components/CarouselTariffsCard/getPaddingStyle.js.map +1 -1
- package/mobile/dist/components/CarouselTariffsCard/renderCardInfo.js +1 -1
- package/mobile/dist/components/CarouselTariffsCard/renderCardInfo.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/TableCarouselContainer.js +1 -1
- package/mobile/dist/components/ComparisonTable/TableCell.js +1 -1
- package/mobile/dist/components/ComparisonTable/TableCell.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/TableColumn.js +1 -1
- package/mobile/dist/components/ComparisonTable/TableColumn.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/TableRow.js +1 -1
- package/mobile/dist/components/ComparisonTable/TableRow.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/TableRowContainer.js +1 -1
- package/mobile/dist/components/ComparisonTable/TableRowContainer.js.map +1 -1
- package/mobile/dist/components/ComparisonTable/constants.d.ts +1 -1
- package/mobile/dist/components/ComparisonTable/constants.js +1 -1
- package/mobile/dist/components/ComparisonTable/constants.js.map +1 -1
- package/mobile/dist/components/ContactsBlock/ContactsBlock.js +2 -2
- package/mobile/dist/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js +1 -1
- package/mobile/dist/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/dist/components/DepositFiltration/DepositFiltration.js +1 -1
- package/mobile/dist/components/DepositFiltration/DepositFiltration.js.map +1 -1
- package/mobile/dist/components/ErrorBlock/ErrorBlock.js +2 -2
- package/mobile/dist/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/mobile/dist/components/ExchangeRateOffice/renderCurrencies.js +1 -1
- package/mobile/dist/components/ExchangeRateOffice/renderCurrencies.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js +1 -1
- package/mobile/dist/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
- package/mobile/dist/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/renderInput.js +1 -1
- package/mobile/dist/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/mobile/dist/components/Footer/buttonStylesWithText.js +1 -1
- package/mobile/dist/components/Footer/buttonStylesWithText.js.map +1 -1
- package/mobile/dist/components/GracePeriod/GracePeriod.js +4 -3
- package/mobile/dist/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/dist/components/Header/DropdownMenu.js +2 -2
- package/mobile/dist/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/dist/components/Header/Header.js +1 -1
- package/mobile/dist/components/Header/Header.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenuButton.js +1 -1
- package/mobile/dist/components/Header/HeaderSubMenu.js +1 -2
- package/mobile/dist/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/dist/components/Header/InternetBankButton.js +2 -2
- package/mobile/dist/components/Header/InternetBankButton.js.map +1 -1
- package/mobile/dist/components/Headline/Headline.js +2 -2
- package/mobile/dist/components/Headline/Headline.js.map +1 -1
- package/mobile/dist/components/Headline/HeadlineContent.d.ts +2 -2
- package/mobile/dist/components/Headline/headlineVersionStyles.js +1 -1
- package/mobile/dist/components/Headline/headlineVersionStyles.js.map +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +5 -5
- package/mobile/dist/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js +2 -2
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/mobile/dist/components/LikeControl/LikeControl.js +1 -1
- package/mobile/dist/components/LikeControl/LikeControl.js.map +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocItem.js +1 -1
- package/mobile/dist/components/LinkDocs/LinkDocs.js +2 -2
- package/mobile/dist/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/dist/components/MobileAppTile/renderList.js +1 -1
- package/mobile/dist/components/MobileAppTile/renderList.js.map +1 -1
- package/mobile/dist/components/MortgageFiltration/MortgageFiltration.js +1 -1
- package/mobile/dist/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
- package/mobile/dist/components/OfficeMap/OfficeMap.js +1 -1
- package/mobile/dist/components/OfficeMap/OfficeMap.js.map +1 -1
- package/mobile/dist/components/OfficeMap/renderFunctions.js +4 -4
- package/mobile/dist/components/OfficeMap/renderFunctions.js.map +1 -1
- package/mobile/dist/components/Placeholder/Placeholder.js +1 -1
- package/mobile/dist/components/Placeholder/Placeholder.js.map +1 -1
- package/mobile/dist/components/ProductBlock/renderBackwardButton.js +1 -1
- package/mobile/dist/components/PromoTile/PromoTile.js +1 -1
- package/mobile/dist/components/PromoTile/PromoTile.js.map +1 -1
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +1 -1
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/mobile/dist/components/RollupItem/RollupItem.js +1 -1
- package/mobile/dist/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/RadioButtons.d.ts +1 -1
- package/mobile/dist/components/SafeDepositRental/RadioButtons.js +1 -1
- package/mobile/dist/components/SafeDepositRental/RadioButtons.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeBoxCases.js +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.js +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js +2 -2
- package/mobile/dist/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.d.ts +1 -1
- package/mobile/dist/components/StepsBlock/StepsBlock.js +6 -7
- package/mobile/dist/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/dist/components/StepsBlock/renderStep.js +1 -1
- package/mobile/dist/components/StepsBlock/renderStep.js.map +1 -1
- package/mobile/dist/components/TariffsTable/EmbeddableCellData.js +2 -2
- package/mobile/dist/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableVertical.js +1 -1
- package/mobile/dist/components/TariffsTable/TariffsTableVertical.js.map +1 -1
- package/mobile/dist/components/TariffsTable/constants.d.ts +1 -1
- package/mobile/dist/components/TariffsTable/constants.js +1 -1
- package/mobile/dist/components/TariffsTable/constants.js.map +1 -1
- package/mobile/dist/components/TextBlock/TextBlock.js +2 -2
- package/mobile/dist/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/dist/components/Video/getPaddings.d.ts +1 -1
- package/mobile/dist/components/Video/getPaddings.js +1 -1
- package/mobile/dist/components/Video/getPaddings.js.map +1 -1
- package/mobile/dist/model/HeadlineType.d.ts +1 -1
- package/mobile/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js +1 -1
- package/mobile/dist/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
- package/mobile/dist/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js +1 -1
- package/mobile/dist/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/dist/ui-kit/Checkbox/Checkbox.js +1 -1
- package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js +1 -1
- package/mobile/dist/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/mobile/dist/ui-kit/DialogManager/CloseButton.js +1 -1
- package/mobile/dist/ui-kit/DialogManager/CloseButton.js.map +1 -1
- package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js +2 -2
- package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTable.js +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTable.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableBodyItem.js +3 -2
- package/mobile/dist/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js +1 -1
- package/mobile/dist/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/mobile/dist/ui-kit/Input/Input.js +2 -2
- package/mobile/dist/ui-kit/Input/Input.js.map +1 -1
- package/mobile/dist/ui-kit/InputRange/InputRange.js +2 -2
- package/mobile/dist/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/dist/ui-kit/InputRange/renderRangeWithTicks.js +1 -1
- package/mobile/dist/ui-kit/LocationDialog/SearchBar.js +1 -1
- package/mobile/dist/ui-kit/LocationDialog/SearchBar.js.map +1 -1
- package/mobile/dist/ui-kit/LocationDialog/renderForeignOffices.js +2 -2
- package/mobile/dist/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
- package/mobile/dist/ui-kit/Radio/Radio.js +1 -1
- package/mobile/dist/ui-kit/Radio/Radio.js.map +1 -1
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js +2 -2
- package/mobile/dist/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/mobile/dist/ui-kit/SearchDialog/SearchInput.js +1 -1
- package/mobile/dist/ui-kit/SearchDialog/SearchInput.js.map +1 -1
- package/mobile/dist/ui-kit/Select/Select.js +2 -2
- package/mobile/dist/ui-kit/Select/Select.js.map +1 -1
- package/mobile/dist/ui-kit/Sitemap/Sitemap.js +1 -1
- package/mobile/dist/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js +2 -2
- package/mobile/dist/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/dist/ui-kit/Tags/Tags.js +1 -1
- package/mobile/dist/ui-kit/Tags/Tags.js.map +1 -1
- package/mobile/dist/ui-kit/TopItem/TopItem.js +1 -1
- package/mobile/dist/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/dist/ui-kit/YandexMap/renderOpenMap.js +1 -1
- package/mobile/dist/ui-kit/YandexMap/renderOpenMap.js.map +1 -1
- package/mobile/dist/ui-kit/YandexMap/renderUserGeolocation.js +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationForm.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormAcquiring.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormBusinessCard.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormCredit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormDeposit.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormGrantSupport.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormWed.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ResponseNotification.js +1 -1
- package/mobile/lib/components/ApplicationForm/ResponseNotification.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/SelectControl.d.ts +1 -0
- package/mobile/lib/components/ApplicationForm/SelectControl.js +1 -1
- package/mobile/lib/components/ApplicationForm/SelectControl.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderAcquiringDataOrganization.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderAcquiringRegion.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderBusinessCardDataOrganization.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderContacts.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderContacts.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditDataOrganization.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderCreditParameters.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderQuestionsInterested.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderRegion.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderRegion.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderRegionDepartment.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderSlideCheckboxes.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/renderSubmitButton.js +1 -1
- package/mobile/lib/components/ApplicationForm/renderSubmitButton.js.map +1 -1
- package/mobile/lib/components/Bonus/Bonus.js +2 -2
- package/mobile/lib/components/Bonus/Bonus.js.map +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.js.map +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/bonusBenefitStyles.d.ts +1 -1
- package/mobile/lib/components/BonusBenefitsBlock/bonusBenefitStyles.js +1 -1
- package/mobile/lib/components/BusinessBlock/BusinessBlock.js +1 -1
- package/mobile/lib/components/BusinessBlock/BusinessBlock.js.map +1 -1
- package/mobile/lib/components/BusinessBlock/BusinessCard.js +1 -1
- package/mobile/lib/components/BusinessBlock/BusinessCard.js.map +1 -1
- package/mobile/lib/components/Calculator/BonusCalculatorForm.js +2 -3
- package/mobile/lib/components/Calculator/BonusCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js +24 -23
- package/mobile/lib/components/Calculator/BusinessDepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/CalculatorValueBlock.js +1 -1
- package/mobile/lib/components/Calculator/CalculatorValueBlock.js.map +1 -1
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js +4 -4
- package/mobile/lib/components/Calculator/CreditCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js +4 -4
- package/mobile/lib/components/Calculator/DepositCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/Rate.js +1 -1
- package/mobile/lib/components/Calculator/Rate.js.map +1 -1
- package/mobile/lib/components/Calculator/RefinancingCalculatorForm.js +5 -6
- package/mobile/lib/components/Calculator/RefinancingCalculatorForm.js.map +1 -1
- package/mobile/lib/components/Calculator/renderBinaryRadioButtonGroup.js +1 -1
- package/mobile/lib/components/Calculator/renderBinaryRadioButtonGroup.js.map +1 -1
- package/mobile/lib/components/Calculator/renderCalculatorBlock.js +1 -1
- package/mobile/lib/components/Calculator/renderCalculatorBlock.js.map +1 -1
- package/mobile/lib/components/Calculator/renderInitialFeeInput.js +1 -1
- package/mobile/lib/components/Calculator/renderInitialFeeInput.js.map +1 -1
- package/mobile/lib/components/CardTransfer/CardTransfer.js +1 -1
- package/mobile/lib/components/CardTransfer/CardTransfer.js.map +1 -1
- package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js +1 -1
- package/mobile/lib/components/CarouselBankHistoryCard/CarouselBankHistoryCard.js.map +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCard.js +1 -1
- package/mobile/lib/components/CarouselCard/CarouselCard.js.map +1 -1
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js +1 -1
- package/mobile/lib/components/CarouselCatalogCard/CarouselCatalogCard.js.map +1 -1
- package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js +4 -9
- package/mobile/lib/components/CarouselInvestmentCard/CarouselInvestmentCard.js.map +1 -1
- package/mobile/lib/components/CarouselLinks/CarouselLinkButton.d.ts +5 -0
- package/{lib/ui-kit/LinkButton/LinkButton.js → mobile/lib/components/CarouselLinks/CarouselLinkButton.js} +4 -4
- package/mobile/lib/components/CarouselLinks/CarouselLinkButton.js.map +1 -0
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js +5 -5
- package/mobile/lib/components/CarouselLinks/CarouselLinks.js.map +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js +1 -1
- package/mobile/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.js.map +1 -1
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js +2 -2
- package/mobile/lib/components/CarouselTariffsCard/CarouselTariffsCard.js.map +1 -1
- package/mobile/lib/components/CarouselTariffsCard/getPaddingStyle.js +1 -1
- package/mobile/lib/components/CarouselTariffsCard/getPaddingStyle.js.map +1 -1
- package/mobile/lib/components/CarouselTariffsCard/renderCardInfo.js +1 -1
- package/mobile/lib/components/CarouselTariffsCard/renderCardInfo.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/TableCarouselContainer.js +1 -1
- package/mobile/lib/components/ComparisonTable/TableCell.js +1 -1
- package/mobile/lib/components/ComparisonTable/TableCell.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/TableColumn.js +1 -1
- package/mobile/lib/components/ComparisonTable/TableColumn.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/TableRow.js +1 -1
- package/mobile/lib/components/ComparisonTable/TableRow.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/TableRowContainer.js +1 -1
- package/mobile/lib/components/ComparisonTable/TableRowContainer.js.map +1 -1
- package/mobile/lib/components/ComparisonTable/constants.d.ts +1 -1
- package/mobile/lib/components/ComparisonTable/constants.js +1 -1
- package/mobile/lib/components/ComparisonTable/constants.js.map +1 -1
- package/mobile/lib/components/ContactsBlock/ContactsBlock.js +2 -2
- package/mobile/lib/components/ContactsBlock/ContactsBlock.js.map +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js +1 -1
- package/mobile/lib/components/ContentPage/ContentPage.js.map +1 -1
- package/mobile/lib/components/DepositFiltration/DepositFiltration.js +1 -1
- package/mobile/lib/components/DepositFiltration/DepositFiltration.js.map +1 -1
- package/mobile/lib/components/ErrorBlock/ErrorBlock.js +2 -2
- package/mobile/lib/components/ErrorBlock/ErrorBlock.js.map +1 -1
- package/mobile/lib/components/ExchangeRateOffice/renderCurrencies.js +1 -1
- package/mobile/lib/components/ExchangeRateOffice/renderCurrencies.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js +1 -1
- package/mobile/lib/components/ExchangeRateTile/CurrencyTable.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js +1 -1
- package/mobile/lib/components/ExchangeRateTile/ExchangeCurrencyCalculator.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/renderInput.js +1 -1
- package/mobile/lib/components/ExchangeRateTile/renderInput.js.map +1 -1
- package/mobile/lib/components/Footer/buttonStylesWithText.js +1 -1
- package/mobile/lib/components/Footer/buttonStylesWithText.js.map +1 -1
- package/mobile/lib/components/GracePeriod/GracePeriod.js +4 -3
- package/mobile/lib/components/GracePeriod/GracePeriod.js.map +1 -1
- package/mobile/lib/components/Header/DropdownMenu.js +2 -2
- package/mobile/lib/components/Header/DropdownMenu.js.map +1 -1
- package/mobile/lib/components/Header/Header.js +1 -1
- package/mobile/lib/components/Header/Header.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenuButton.js +1 -1
- package/mobile/lib/components/Header/HeaderSubMenu.js +1 -2
- package/mobile/lib/components/Header/HeaderSubMenu.js.map +1 -1
- package/mobile/lib/components/Header/InternetBankButton.js +2 -2
- package/mobile/lib/components/Header/InternetBankButton.js.map +1 -1
- package/mobile/lib/components/Headline/Headline.js +2 -2
- package/mobile/lib/components/Headline/Headline.js.map +1 -1
- package/mobile/lib/components/Headline/HeadlineContent.d.ts +2 -2
- package/mobile/lib/components/Headline/headlineVersionStyles.js +1 -1
- package/mobile/lib/components/Headline/headlineVersionStyles.js.map +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.js +1 -1
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js +5 -5
- package/mobile/lib/components/InsuranceAmountBlock/InsuranceAmountBlockInner.js.map +1 -1
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js +2 -2
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +1 -1
- package/mobile/lib/components/LikeControl/LikeControl.js +1 -1
- package/mobile/lib/components/LikeControl/LikeControl.js.map +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocItem.js +1 -1
- package/mobile/lib/components/LinkDocs/LinkDocs.js +2 -2
- package/mobile/lib/components/LinkDocs/LinkDocs.js.map +1 -1
- package/mobile/lib/components/MobileAppTile/renderList.js +1 -1
- package/mobile/lib/components/MobileAppTile/renderList.js.map +1 -1
- package/mobile/lib/components/MortgageFiltration/MortgageFiltration.js +1 -1
- package/mobile/lib/components/MortgageFiltration/MortgageFiltration.js.map +1 -1
- package/mobile/lib/components/OfficeMap/OfficeMap.js +1 -1
- package/mobile/lib/components/OfficeMap/OfficeMap.js.map +1 -1
- package/mobile/lib/components/OfficeMap/renderFunctions.js +4 -4
- package/mobile/lib/components/OfficeMap/renderFunctions.js.map +1 -1
- package/mobile/lib/components/Placeholder/Placeholder.js +1 -1
- package/mobile/lib/components/Placeholder/Placeholder.js.map +1 -1
- package/mobile/lib/components/ProductBlock/renderBackwardButton.js +1 -1
- package/mobile/lib/components/PromoTile/PromoTile.js +1 -1
- package/mobile/lib/components/PromoTile/PromoTile.js.map +1 -1
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +1 -1
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +1 -1
- package/mobile/lib/components/RollupItem/RollupItem.js +1 -1
- package/mobile/lib/components/RollupItem/RollupItem.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/RadioButtons.d.ts +1 -1
- package/mobile/lib/components/SafeDepositRental/RadioButtons.js +1 -1
- package/mobile/lib/components/SafeDepositRental/RadioButtons.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeBoxCases.js +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRental.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalFields.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.js +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalForm.js.map +1 -1
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js +2 -2
- package/mobile/lib/components/SafeDepositRental/SafeDepositRentalTotal.js.map +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.d.ts +1 -1
- package/mobile/lib/components/StepsBlock/StepsBlock.js +6 -7
- package/mobile/lib/components/StepsBlock/StepsBlock.js.map +1 -1
- package/mobile/lib/components/StepsBlock/renderStep.js +1 -1
- package/mobile/lib/components/StepsBlock/renderStep.js.map +1 -1
- package/mobile/lib/components/TariffsTable/EmbeddableCellData.js +2 -2
- package/mobile/lib/components/TariffsTable/EmbeddableCellData.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTable.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableCell.js.map +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableVertical.js +1 -1
- package/mobile/lib/components/TariffsTable/TariffsTableVertical.js.map +1 -1
- package/mobile/lib/components/TariffsTable/constants.d.ts +1 -1
- package/mobile/lib/components/TariffsTable/constants.js +1 -1
- package/mobile/lib/components/TariffsTable/constants.js.map +1 -1
- package/mobile/lib/components/TextBlock/TextBlock.js +2 -2
- package/mobile/lib/components/TextBlock/TextBlock.js.map +1 -1
- package/mobile/lib/components/Video/getPaddings.d.ts +1 -1
- package/mobile/lib/components/Video/getPaddings.js +1 -1
- package/mobile/lib/components/Video/getPaddings.js.map +1 -1
- package/mobile/lib/model/HeadlineType.d.ts +1 -1
- package/mobile/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js +1 -1
- package/mobile/lib/ui-kit/BaseFiltration/BaseFiltrationInner.js.map +1 -1
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js +1 -1
- package/mobile/lib/ui-kit/BaseProductTile/BaseProductTile.js.map +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js +1 -1
- package/mobile/lib/ui-kit/Button/ButtonInner.js.map +1 -1
- package/mobile/lib/ui-kit/Checkbox/Checkbox.js +1 -1
- package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js +1 -1
- package/mobile/lib/ui-kit/CookiePopup/CookiePopup.js.map +1 -1
- package/mobile/lib/ui-kit/DialogManager/CloseButton.js +1 -1
- package/mobile/lib/ui-kit/DialogManager/CloseButton.js.map +1 -1
- package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js +2 -2
- package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTable.js +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTable.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableBody.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableBodyItem.js +3 -2
- package/mobile/lib/ui-kit/InnerTable/InnerTableBodyItem.js.map +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js +1 -1
- package/mobile/lib/ui-kit/InnerTable/InnerTableButton.js.map +1 -1
- package/mobile/lib/ui-kit/Input/Input.js +2 -2
- package/mobile/lib/ui-kit/Input/Input.js.map +1 -1
- package/mobile/lib/ui-kit/InputRange/InputRange.js +2 -2
- package/mobile/lib/ui-kit/InputRange/InputRange.js.map +1 -1
- package/mobile/lib/ui-kit/InputRange/renderRangeWithTicks.js +1 -1
- package/mobile/lib/ui-kit/LocationDialog/SearchBar.js +1 -1
- package/mobile/lib/ui-kit/LocationDialog/SearchBar.js.map +1 -1
- package/mobile/lib/ui-kit/LocationDialog/renderForeignOffices.js +2 -2
- package/mobile/lib/ui-kit/LocationDialog/renderForeignOffices.js.map +1 -1
- package/mobile/lib/ui-kit/Radio/Radio.js +1 -1
- package/mobile/lib/ui-kit/Radio/Radio.js.map +1 -1
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js +2 -2
- package/mobile/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.js.map +1 -1
- package/mobile/lib/ui-kit/SearchDialog/SearchInput.js +1 -1
- package/mobile/lib/ui-kit/SearchDialog/SearchInput.js.map +1 -1
- package/mobile/lib/ui-kit/Select/Select.js +2 -2
- package/mobile/lib/ui-kit/Select/Select.js.map +1 -1
- package/mobile/lib/ui-kit/Sitemap/Sitemap.js +1 -1
- package/mobile/lib/ui-kit/Sitemap/Sitemap.js.map +1 -1
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js +2 -2
- package/mobile/lib/ui-kit/SwipeListControl/SwipeListControlDots.js.map +1 -1
- package/mobile/lib/ui-kit/Tags/Tags.js +1 -1
- package/mobile/lib/ui-kit/Tags/Tags.js.map +1 -1
- package/mobile/lib/ui-kit/TopItem/TopItem.js +1 -1
- package/mobile/lib/ui-kit/TopItem/TopItem.js.map +1 -1
- package/mobile/lib/ui-kit/YandexMap/renderOpenMap.js +1 -1
- package/mobile/lib/ui-kit/YandexMap/renderOpenMap.js.map +1 -1
- package/mobile/lib/ui-kit/YandexMap/renderUserGeolocation.js +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationForm.tsx +2 -6
- package/mobile/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +4 -4
- package/mobile/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +2 -2
- package/mobile/src/components/ApplicationForm/ApplicationFormCredit.tsx +5 -5
- package/mobile/src/components/ApplicationForm/ApplicationFormDeposit.tsx +5 -5
- package/mobile/src/components/ApplicationForm/ApplicationFormGrantSupport.tsx +1 -1
- package/mobile/src/components/ApplicationForm/ApplicationFormWed.tsx +6 -6
- package/mobile/src/components/ApplicationForm/ResponseNotification.tsx +2 -2
- package/mobile/src/components/ApplicationForm/SelectControl.tsx +6 -5
- package/mobile/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +7 -7
- package/mobile/src/components/ApplicationForm/renderAcquiringRegion.tsx +3 -3
- package/mobile/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +7 -7
- package/mobile/src/components/ApplicationForm/renderContacts.tsx +5 -5
- package/mobile/src/components/ApplicationForm/renderCreditDataOrganization.tsx +9 -9
- package/mobile/src/components/ApplicationForm/renderCreditParameters.tsx +2 -2
- package/mobile/src/components/ApplicationForm/renderQuestionsInterested.tsx +6 -14
- package/mobile/src/components/ApplicationForm/renderRegion.tsx +7 -8
- package/mobile/src/components/ApplicationForm/renderRegionDepartment.tsx +3 -3
- package/mobile/src/components/ApplicationForm/renderSlideCheckboxes.tsx +1 -1
- package/mobile/src/components/ApplicationForm/renderSubmitButton.tsx +1 -4
- package/mobile/src/components/Bonus/Bonus.tsx +7 -9
- package/mobile/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +2 -2
- package/mobile/src/components/BonusBenefitsBlock/bonusBenefitStyles.ts +1 -1
- package/mobile/src/components/BusinessBlock/BusinessBlock.tsx +1 -1
- package/mobile/src/components/BusinessBlock/BusinessCard.tsx +1 -1
- package/mobile/src/components/Calculator/BonusCalculatorForm.tsx +12 -15
- package/mobile/src/components/Calculator/BusinessDepositCalculatorForm.tsx +35 -39
- package/mobile/src/components/Calculator/CalculatorValueBlock.tsx +1 -1
- package/mobile/src/components/Calculator/CreditCalculatorForm.tsx +7 -7
- package/mobile/src/components/Calculator/DepositCalculatorForm.tsx +5 -7
- package/mobile/src/components/Calculator/Rate.tsx +1 -1
- package/mobile/src/components/Calculator/RefinancingCalculatorForm.tsx +6 -11
- package/mobile/src/components/Calculator/renderBinaryRadioButtonGroup.tsx +2 -2
- package/mobile/src/components/Calculator/renderCalculatorBlock.tsx +2 -2
- package/mobile/src/components/Calculator/renderInitialFeeInput.tsx +0 -1
- package/mobile/src/components/CardTransfer/CardTransfer.tsx +2 -2
- package/mobile/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +1 -1
- package/mobile/src/components/CarouselCard/CarouselCard.tsx +7 -3
- package/mobile/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +1 -1
- package/mobile/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +9 -22
- package/mobile/src/{ui-kit/LinkButton/LinkButton.tsx → components/CarouselLinks/CarouselLinkButton.tsx} +4 -5
- package/mobile/src/components/CarouselLinks/CarouselLinks.tsx +6 -6
- package/mobile/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +4 -5
- package/mobile/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +3 -3
- package/mobile/src/components/CarouselTariffsCard/getPaddingStyle.tsx +1 -1
- package/mobile/src/components/CarouselTariffsCard/renderCardInfo.tsx +2 -2
- package/mobile/src/components/ComparisonTable/TableCarouselContainer.tsx +1 -1
- package/mobile/src/components/ComparisonTable/TableCell.tsx +1 -1
- package/mobile/src/components/ComparisonTable/TableColumn.tsx +1 -1
- package/mobile/src/components/ComparisonTable/TableRow.tsx +1 -1
- package/mobile/src/components/ComparisonTable/TableRowContainer.tsx +1 -1
- package/mobile/src/components/ComparisonTable/constants.ts +1 -1
- package/mobile/src/components/ContactsBlock/ContactsBlock.tsx +4 -4
- package/mobile/src/components/ContentPage/ContentPage.tsx +2 -2
- package/mobile/src/components/DepositFiltration/DepositFiltration.tsx +1 -1
- package/mobile/src/components/ErrorBlock/ErrorBlock.tsx +5 -5
- package/mobile/src/components/ExchangeRateOffice/renderCurrencies.tsx +2 -2
- package/mobile/src/components/ExchangeRateTile/CurrencyTable.tsx +2 -7
- package/mobile/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +1 -1
- package/mobile/src/components/ExchangeRateTile/renderInput.tsx +1 -1
- package/mobile/src/components/Footer/buttonStylesWithText.ts +1 -1
- package/mobile/src/components/GracePeriod/GracePeriod.tsx +9 -14
- package/mobile/src/components/Header/DropdownMenu.tsx +3 -3
- package/mobile/src/components/Header/Header.tsx +1 -1
- package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +1 -1
- package/mobile/src/components/Header/HeaderSecondaryMenuButton.tsx +1 -1
- package/mobile/src/components/Header/HeaderSubMenu.tsx +6 -4
- package/mobile/src/components/Header/InternetBankButton.tsx +2 -2
- package/mobile/src/components/Headline/Headline.tsx +3 -3
- package/mobile/src/components/Headline/HeadlineContent.ts +2 -2
- package/mobile/src/components/Headline/headlineVersionStyles.ts +1 -1
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +1 -1
- package/mobile/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +8 -8
- package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +3 -3
- package/mobile/src/components/LikeControl/LikeControl.tsx +1 -1
- package/mobile/src/components/LinkDocs/LinkDocItem.tsx +1 -1
- package/mobile/src/components/LinkDocs/LinkDocs.tsx +5 -8
- package/mobile/src/components/MobileAppTile/renderList.tsx +1 -1
- package/mobile/src/components/MortgageFiltration/MortgageFiltration.tsx +1 -1
- package/mobile/src/components/OfficeMap/OfficeMap.tsx +1 -1
- package/mobile/src/components/OfficeMap/renderFunctions.tsx +14 -12
- package/mobile/src/components/Placeholder/Placeholder.tsx +1 -1
- package/mobile/src/components/ProductBlock/renderBackwardButton.tsx +1 -1
- package/mobile/src/components/PromoTile/PromoTile.tsx +1 -1
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +1 -1
- package/mobile/src/components/RollupItem/RollupItem.tsx +1 -1
- package/mobile/src/components/SafeDepositRental/RadioButtons.tsx +2 -2
- package/mobile/src/components/SafeDepositRental/SafeBoxCases.tsx +1 -1
- package/mobile/src/components/SafeDepositRental/SafeDepositRental.tsx +1 -1
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +2 -2
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +1 -1
- package/mobile/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +5 -5
- package/mobile/src/components/StepsBlock/StepsBlock.tsx +17 -17
- package/mobile/src/components/StepsBlock/renderStep.tsx +1 -1
- package/mobile/src/components/TariffsTable/EmbeddableCellData.tsx +2 -2
- package/mobile/src/components/TariffsTable/TariffsTable.tsx +1 -1
- package/mobile/src/components/TariffsTable/TariffsTableCell.tsx +1 -1
- package/mobile/src/components/TariffsTable/TariffsTableVertical.tsx +1 -1
- package/mobile/src/components/TariffsTable/constants.ts +1 -1
- package/mobile/src/components/TextBlock/TextBlock.tsx +4 -4
- package/mobile/src/components/Video/getPaddings.ts +1 -1
- package/mobile/src/model/HeadlineType.ts +1 -1
- package/mobile/src/ui-kit/BaseFiltration/BaseFiltrationInner.tsx +1 -1
- package/mobile/src/ui-kit/BaseProductTile/BaseProductTile.tsx +1 -1
- package/mobile/src/ui-kit/Button/ButtonInner.tsx +1 -1
- package/mobile/src/ui-kit/Checkbox/Checkbox.tsx +1 -1
- package/mobile/src/ui-kit/CookiePopup/CookiePopup.tsx +1 -1
- package/mobile/src/ui-kit/DialogManager/CloseButton.tsx +1 -1
- package/mobile/src/ui-kit/Foldable/DefaultFoldButton.tsx +2 -2
- package/mobile/src/ui-kit/InnerTable/InnerTable.tsx +1 -1
- package/mobile/src/ui-kit/InnerTable/InnerTableBody.tsx +3 -3
- package/mobile/src/ui-kit/InnerTable/InnerTableBodyItem.tsx +4 -3
- package/mobile/src/ui-kit/InnerTable/InnerTableButton.tsx +1 -1
- package/mobile/src/ui-kit/Input/Input.tsx +2 -2
- package/mobile/src/ui-kit/InputRange/InputRange.tsx +2 -2
- package/mobile/src/ui-kit/InputRange/renderRangeWithTicks.tsx +2 -2
- package/mobile/src/ui-kit/LocationDialog/SearchBar.tsx +2 -2
- package/mobile/src/ui-kit/LocationDialog/renderForeignOffices.tsx +2 -2
- package/mobile/src/ui-kit/Radio/Radio.tsx +2 -2
- package/mobile/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +2 -2
- package/mobile/src/ui-kit/SearchDialog/SearchInput.tsx +1 -1
- package/mobile/src/ui-kit/Select/Select.tsx +3 -3
- package/mobile/src/ui-kit/Sitemap/Sitemap.tsx +1 -1
- package/mobile/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +2 -2
- package/mobile/src/ui-kit/Tags/Tags.tsx +1 -1
- package/mobile/src/ui-kit/TopItem/TopItem.tsx +1 -1
- package/mobile/src/ui-kit/YandexMap/renderOpenMap.tsx +1 -1
- package/mobile/src/ui-kit/YandexMap/renderUserGeolocation.tsx +1 -1
- package/package.json +1 -1
- package/src/components/ApplicationForm/ApplicationForm.tsx +2 -6
- package/src/components/ApplicationForm/ApplicationFormAcquiring.tsx +4 -4
- package/src/components/ApplicationForm/ApplicationFormBusinessCard.tsx +2 -2
- package/src/components/ApplicationForm/ApplicationFormCredit.tsx +5 -5
- package/src/components/ApplicationForm/ApplicationFormDeposit.tsx +5 -5
- package/src/components/ApplicationForm/ApplicationFormGrantSupport.tsx +1 -1
- package/src/components/ApplicationForm/ApplicationFormWed.tsx +6 -6
- package/src/components/ApplicationForm/ResponseNotification.tsx +2 -2
- package/src/components/ApplicationForm/SelectControl.tsx +6 -5
- package/src/components/ApplicationForm/renderAcquiringDataOrganization.tsx +7 -7
- package/src/components/ApplicationForm/renderAcquiringRegion.tsx +3 -3
- package/src/components/ApplicationForm/renderBusinessCardDataOrganization.tsx +7 -7
- package/src/components/ApplicationForm/renderContacts.tsx +5 -5
- package/src/components/ApplicationForm/renderCreditDataOrganization.tsx +9 -9
- package/src/components/ApplicationForm/renderCreditParameters.tsx +2 -2
- package/src/components/ApplicationForm/renderQuestionsInterested.tsx +6 -14
- package/src/components/ApplicationForm/renderRegion.tsx +7 -8
- package/src/components/ApplicationForm/renderRegionDepartment.tsx +3 -3
- package/src/components/ApplicationForm/renderSlideCheckboxes.tsx +1 -1
- package/src/components/ApplicationForm/renderSubmitButton.tsx +1 -4
- package/src/components/Bonus/Bonus.tsx +7 -9
- package/src/components/BonusBenefitsBlock/BonusBenefitsBlock.tsx +2 -2
- package/src/components/BonusBenefitsBlock/bonusBenefitStyles.mobile.ts +1 -1
- package/src/components/BonusBenefitsBlock/renderBonusBenefits.tsx +1 -1
- package/src/components/BusinessBlock/BusinessBlock.tsx +1 -1
- package/src/components/BusinessBlock/BusinessCard.tsx +1 -1
- package/src/components/ButtonsBlock/ButtonsBlock.fixture.mobile.tsx +1 -1
- package/src/components/ButtonsBlock/ButtonsBlock.fixture.tsx +1 -1
- package/src/components/Calculator/BonusCalculatorForm.tsx +12 -15
- package/src/components/Calculator/BusinessDepositCalculatorForm.tsx +35 -39
- package/src/components/Calculator/Calculator.tsx +4 -4
- package/src/components/Calculator/CalculatorValueBlock.tsx +1 -1
- package/src/components/Calculator/CreditCalculatorForm.tsx +7 -7
- package/src/components/Calculator/DepositCalculatorForm.tsx +5 -7
- package/src/components/Calculator/Rate.tsx +1 -1
- package/src/components/Calculator/RefinancingCalculatorForm.tsx +6 -11
- package/src/components/Calculator/renderBinaryRadioButtonGroup.tsx +2 -2
- package/src/components/Calculator/renderCalculatorBlock.tsx +2 -2
- package/src/components/Calculator/renderInitialFeeInput.tsx +0 -1
- package/src/components/CardTransfer/CardTransfer.tsx +2 -2
- package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.mobile.tsx +1 -1
- package/src/components/CarouselBankHistoryCard/CarouselBankHistoryCard.tsx +1 -1
- package/src/components/CarouselCard/CarouselCard.tsx +7 -3
- package/src/components/CarouselCatalogCard/CarouselCatalogCard.tsx +1 -1
- package/src/components/CarouselInvestmentCard/CarouselInvestmentCard.tsx +9 -22
- package/src/{ui-kit/LinkButton/LinkButton.tsx → components/CarouselLinks/CarouselLinkButton.tsx} +4 -5
- package/src/components/CarouselLinks/CarouselLinks.fixture.tsx +12 -9
- package/src/components/CarouselLinks/CarouselLinks.tsx +6 -6
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.mobile.tsx +6 -6
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.tsx +6 -6
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.mobile.tsx +4 -5
- package/src/components/CarouselRecommendationCard/CarouselRecommendationCard.tsx +2 -2
- package/src/components/CarouselTariffsCard/CarouselTariffsCard.tsx +3 -3
- package/src/components/CarouselTariffsCard/getPaddingStyle.mobile.tsx +1 -1
- package/src/components/CarouselTariffsCard/getPaddingStyle.tsx +1 -1
- package/src/components/CarouselTariffsCard/renderCardInfo.tsx +2 -2
- package/src/components/ComparisonTable/ComparisonTable.tsx +3 -7
- package/src/components/ComparisonTable/TableCarouselContainer.tsx +1 -1
- package/src/components/ComparisonTable/TableCell.mobile.tsx +1 -1
- package/src/components/ComparisonTable/TableCell.tsx +1 -1
- package/src/components/ComparisonTable/TableColumn.tsx +1 -1
- package/src/components/ComparisonTable/TableRow.tsx +1 -1
- package/src/components/ComparisonTable/TableRowContainer.tsx +1 -1
- package/src/components/ComparisonTable/constants.ts +1 -1
- package/src/components/ContactsBlock/ContactsBlock.tsx +4 -4
- package/src/components/ContentPage/ContentPage.tsx +2 -2
- package/src/components/DepositFiltration/DepositFiltration.tsx +1 -1
- package/src/components/ErrorBlock/ErrorBlock.tsx +5 -5
- package/src/components/ExchangeRateOffice/renderCurrencies.tsx +2 -2
- package/src/components/ExchangeRateTile/CurrencyTable.tsx +2 -7
- package/src/components/ExchangeRateTile/ExchangeCurrencyCalculator.tsx +1 -1
- package/src/components/ExchangeRateTile/renderInput.tsx +1 -1
- package/src/components/Footer/buttonStylesWithText.ts +1 -1
- package/src/components/GracePeriod/GracePeriod.tsx +9 -14
- package/src/components/Header/DropdownMenu.tsx +3 -3
- package/src/components/Header/Header.mobile.tsx +1 -1
- package/src/components/Header/HeaderSecondaryMenu.tsx +1 -1
- package/src/components/Header/HeaderSecondaryMenuButton.tsx +1 -1
- package/src/components/Header/HeaderSubMenu.tsx +6 -4
- package/src/components/Header/InternetBankButton.tsx +2 -2
- package/src/components/Headline/Headline.tsx +3 -3
- package/src/components/Headline/HeadlineContent.ts +2 -2
- package/src/components/Headline/headlineVersionStyles.ts +1 -1
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlock.tsx +1 -1
- package/src/components/InsuranceAmountBlock/InsuranceAmountBlockInner.tsx +8 -8
- package/src/components/InvestmentInfo/InvestmentInfo.tsx +3 -3
- package/src/components/LikeControl/LikeControl.tsx +1 -1
- package/src/components/LinkDocs/LinkDocItem.tsx +1 -1
- package/src/components/LinkDocs/LinkDocs.tsx +5 -8
- package/src/components/MobileAppTile/renderList.tsx +1 -1
- package/src/components/MortgageFiltration/MortgageFiltration.tsx +1 -1
- package/src/components/OfficeMap/OfficeMap.tsx +1 -1
- package/src/components/OfficeMap/renderFunctions.tsx +14 -12
- package/src/components/Placeholder/Placeholder.tsx +1 -1
- package/src/components/ProductBlock/renderBackwardButton.tsx +1 -1
- package/src/components/ProductGallery/ProductGallery.tsx +4 -4
- package/src/components/PromoTile/PromoTile.tsx +1 -1
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.mobile.tsx +1 -1
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.tsx +1 -1
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +1 -1
- package/src/components/RollupItem/RollupItem.tsx +1 -1
- package/src/components/RollupItem/foldableSectionStyles.ts +1 -1
- package/src/components/SafeDepositRental/RadioButtons.tsx +2 -2
- package/src/components/SafeDepositRental/SafeBoxCases.tsx +1 -1
- package/src/components/SafeDepositRental/SafeDepositRental.fixture.mobile.tsx +1 -1
- package/src/components/SafeDepositRental/SafeDepositRental.fixture.tsx +1 -1
- package/src/components/SafeDepositRental/SafeDepositRental.tsx +1 -1
- package/src/components/SafeDepositRental/SafeDepositRentalFields.tsx +2 -2
- package/src/components/SafeDepositRental/SafeDepositRentalForm.tsx +1 -1
- package/src/components/SafeDepositRental/SafeDepositRentalTotal.tsx +5 -5
- package/src/components/StepsBlock/StepsBlock.mobile.tsx +17 -17
- package/src/components/StepsBlock/StepsBlock.tsx +12 -5
- package/src/components/StepsBlock/renderStep.tsx +1 -1
- package/src/components/SwipeListControlBlock/SwipeListControlBlock.fixture.tsx +3 -3
- package/src/components/TariffsTable/EmbeddableCellData.mobile.tsx +2 -2
- package/src/components/TariffsTable/EmbeddableCellData.tsx +8 -12
- package/src/components/TariffsTable/TariffsTable.mobile.tsx +1 -1
- package/src/components/TariffsTable/TariffsTable.tsx +3 -3
- package/src/components/TariffsTable/TariffsTableCell.tsx +1 -1
- package/src/components/TariffsTable/TariffsTableVertical.tsx +1 -1
- package/src/components/TariffsTable/constants.ts +1 -1
- package/src/components/TextBlock/TextBlock.fixture.tsx +3 -3
- package/src/components/TextBlock/TextBlock.tsx +4 -4
- package/src/components/Video/getPaddings.ts +1 -1
- package/src/model/HeadlineType.ts +1 -1
- package/src/ui-kit/BaseFiltration/BaseFiltrationInner.tsx +1 -1
- package/src/ui-kit/BaseProductTile/BaseProductTile.tsx +1 -1
- package/src/ui-kit/Button/Button.fixture.tsx +6 -6
- package/src/ui-kit/Button/ButtonInner.tsx +1 -1
- package/src/ui-kit/Checkbox/Checkbox.tsx +1 -1
- package/src/ui-kit/CookiePopup/CookiePopup.tsx +1 -1
- package/src/ui-kit/DialogManager/CloseButton.tsx +1 -1
- package/src/ui-kit/Foldable/DefaultFoldButton.tsx +2 -2
- package/src/ui-kit/Heading/Heading.fixture.tsx +8 -20
- package/src/ui-kit/Icon/Icon.fixture.tsx +8 -8
- package/src/ui-kit/InnerTable/InnerTable.tsx +1 -1
- package/src/ui-kit/InnerTable/InnerTableBody.tsx +3 -3
- package/src/ui-kit/InnerTable/InnerTableBodyItem.tsx +4 -3
- package/src/ui-kit/InnerTable/InnerTableButton.tsx +1 -1
- package/src/ui-kit/Input/Input.tsx +2 -2
- package/src/ui-kit/InputRange/InputRange.tsx +2 -2
- package/src/ui-kit/InputRange/renderRangeWithTicks.tsx +2 -2
- package/src/ui-kit/LocationDialog/SearchBar.tsx +2 -2
- package/src/ui-kit/LocationDialog/renderForeignOffices.tsx +2 -2
- package/src/ui-kit/Radio/Radio.tsx +2 -2
- package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.fixture.tsx +2 -2
- package/src/ui-kit/RadioButtonGroup/RadioButtonGroup.tsx +2 -2
- package/src/ui-kit/SearchDialog/SearchInput.tsx +1 -1
- package/src/ui-kit/Select/Select.fixture.tsx +1 -1
- package/src/ui-kit/Select/Select.tsx +3 -3
- package/src/ui-kit/Sitemap/Sitemap.tsx +1 -1
- package/src/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.tsx +7 -7
- package/src/ui-kit/SwipeListControl/SwipeListControl.fixture.tsx +7 -7
- package/src/ui-kit/SwipeListControl/SwipeListControlDots.tsx +2 -2
- package/src/ui-kit/TabsControl/TabsControl.fixture.tsx +1 -1
- package/src/ui-kit/Tags/Tags.tsx +1 -1
- package/src/ui-kit/TopItem/TopItem.tsx +1 -1
- package/src/ui-kit/YandexMap/renderOpenMap.tsx +1 -1
- package/src/ui-kit/YandexMap/renderUserGeolocation.tsx +1 -1
- package/bundle/components/Calculator/renderProposal.d.ts +0 -2
- package/bundle/ui-kit/LinkButton/LinkButton.d.ts +0 -5
- package/dist/components/Calculator/renderProposal.d.ts +0 -2
- package/dist/components/Calculator/renderProposal.js +0 -11
- package/dist/components/Calculator/renderProposal.js.map +0 -1
- package/dist/ui-kit/LinkButton/LinkButton.d.ts +0 -5
- package/dist/ui-kit/LinkButton/LinkButton.js.map +0 -1
- package/lib/components/Calculator/renderProposal.d.ts +0 -2
- package/lib/components/Calculator/renderProposal.js +0 -8
- package/lib/components/Calculator/renderProposal.js.map +0 -1
- package/lib/ui-kit/LinkButton/LinkButton.d.ts +0 -5
- package/lib/ui-kit/LinkButton/LinkButton.fixture.d.ts +0 -6
- package/lib/ui-kit/LinkButton/LinkButton.fixture.mobile.d.ts +0 -6
- package/lib/ui-kit/LinkButton/LinkButton.js.map +0 -1
- package/mobile/bundle/components/Calculator/renderProposal.d.ts +0 -2
- package/mobile/bundle/ui-kit/LinkButton/LinkButton.d.ts +0 -5
- package/mobile/dist/components/Calculator/renderProposal.d.ts +0 -2
- package/mobile/dist/components/Calculator/renderProposal.js +0 -11
- package/mobile/dist/components/Calculator/renderProposal.js.map +0 -1
- package/mobile/dist/ui-kit/LinkButton/LinkButton.d.ts +0 -5
- package/mobile/dist/ui-kit/LinkButton/LinkButton.js.map +0 -1
- package/mobile/lib/components/Calculator/renderProposal.d.ts +0 -2
- package/mobile/lib/components/Calculator/renderProposal.js +0 -8
- package/mobile/lib/components/Calculator/renderProposal.js.map +0 -1
- package/mobile/lib/ui-kit/LinkButton/LinkButton.d.ts +0 -5
- package/mobile/lib/ui-kit/LinkButton/LinkButton.js.map +0 -1
- package/mobile/src/components/Calculator/renderProposal.tsx +0 -17
- package/mobile/src/components/CarouselLinks/CarouselLinks.json +0 -8
- package/src/components/Calculator/renderProposal.tsx +0 -17
- package/src/components/CarouselLinks/CarouselLinks.json +0 -8
- package/src/ui-kit/LinkButton/LinkButton.fixture.mobile.tsx +0 -11
- package/src/ui-kit/LinkButton/LinkButton.fixture.tsx +0 -11
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),n=l("useState"),a=l("useEffect"),i=l("useCallback"),r=l("useMemo"),s=l("useRef");const o=e=>e&&!e.endsWith("/")?`${e}/`:e,c={PROD_BRANCH:"master"},d=new class{_=c;setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH||c.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CHAT_BOT(){return this._.CHAT_BOT}get CDN(){return o(this._.CDN)}get BASE_PATH(){return o(this._.BASE_PATH)}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},m="likesToken";function h(){async function e(){try{const e=JSON.parse(globalThis.localStorage?.getItem(m)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name: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/${d.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l},body:JSON.stringify({node_ids:t})}),{likes:n}=await e.json();return n||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:l,name:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${d.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:n},body:JSON.stringify({node_id:t,user_name:n})}),{likes:a}=await e.json();return a||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:l,name:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${d.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:n},body:JSON.stringify({node_id:t,user_name:n})}),{likes:a}=await e.json();return a||0}catch(e){return console.error(e),0}}}}const u=(...e)=>globalThis._uni._jsx(...e),p=(...e)=>globalThis._uni._jsxs(...e),x=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:g(e)),t._tmpl},g=e=>{function t(t,l){const{children:n,...a}=t||{},i=l?.slots?.default,r=n||i&&i();return e(Object.assign(a,r&&{children:r}),l)}return t.inheritAttrs=!1,t};class f{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 b=new f;function v(e,{sensitivity:t,rootRef:l}={}){const n=s(null),i=r((()=>({threshold:y(t),root:l?.current})),[t,l?.current]);return a((()=>{if(!n.current)return;const t=new IntersectionObserver(e,i);return t.observe(n.current),()=>{t.disconnect()}}),[e,i]),n}function y(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 N=new f;const w=(...e)=>e.flatMap((e=>e)).filter(Boolean).join(" "),k={primary:"bg-white text-primary-text",secondary:"bg-primary-main text-white",gray:"bg-main-divider text-primary-text",transparent:"bg-transparent text-primary-text","":""},S=x((({className:e,version:t="primary",isTheme:l=!0,defaultPadding:r="p-xl",padding:s,block:o,tag:c="section",role:d,children:m})=>{const h=c,p=function(e){return v(i((t=>{if(!e||!t?.length)return;const l=t[t.length-1];N.fire("intersection",{block:e,intersection:l})}),[e]),{sensitivity:1})}(o),[x,g]=n(!1);a((()=>b.subscribe("tab",(e=>{g(Boolean(e.label&&o?.labels?.length&&!o.labels.includes(e.label)))}))),[o]);const f=t&&l;return u(h,{className:w("@container font-sans",f?"group":"",k[t],x?"hidden":"",s||r,e),...f?{"data-ver":t}:{},...o?.anchor?{id:o.anchor,ref:p}:{},role:d,children:m})})),C={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},I=x((({className:e="",headingType:t="h3",as:l="h3",title:n,children:a})=>u(l,{className:w("font-sans m-0",C[t],e),children:n||a}))),T=e=>e,B=(e,t)=>{const[l,a]=n(e),[r,o]=n(!1),[c,d]=n({}),m=s({}),h=i(((e,t)=>{const{parse:n=T,format:i=T}=t||{};return m.current||(m.current={}),m.current[e]||=t=>{a((l=>({...l,[e]:n(t)}))),d((t=>({...t,[e]:!0})))},{value:i(l[e]),isDirty:r||c[e],onChange:m.current[e]}}),[l,r,c]),u=i((e=>{a(e),d(e)}),[]),p=i((()=>{a(e),o(!1),d({})}),[e]),x=i((e=>{e.preventDefault(),o(!0),t&&t(l)}),[t,l]);return[l,{isDirty:r||Object.values(c).some(Boolean),field:h,update:u,reset:p,onSubmit:x}]},R=e=>t=>t&&Object.entries(e).flatMap((([e,l])=>l(t[e])))||[],P=e=>!e?.length,M=e=>t=>l=>e(l)?[]:[t],V=e=>null!=e,z=new Map;function _(e,t,{fallback:l,cache:i}={}){const s=r((()=>j(e)),[e]),[o]=(e=>Boolean(e&&Array.isArray(e)&&1===e.length&&"string"==typeof e[0]))(s)?s:[],[c,d]=n(void 0),[m,h]=n(void 0);a((()=>{!s.some(V)||(async()=>{try{const e=await(o?((e,t=z)=>l=>{const n=t.get(l);if(V(n))return n;const a=e(l);return V(a)?t.set(l,Promise.resolve(a)):t.delete(l),a})(t,i)(o):t(...s));d(e),h(void 0)}catch(e){d(void 0),h(e)}})()}),[t,i,s]);const u=l&&o&&l[o];return{data:!c&&u?u:c,error:m,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function j(e){return Array.isArray(e)?e:e instanceof Function?j(e()):[e]}async function A(e,t){try{return e?await D(e,t):null}catch(e){console.error(e)}return null}async function D(e,t){const l=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await l.json()}const $=[];function L(){const{data:e}=_("/api/v1/regions",D);return e||$}const O=()=>({open:(e,t={})=>b.fire("dialog",{type:"open",dialog:e,...t}),close:()=>b.fire("dialog",{type:"close"}),closeAll:()=>b.fire("dialog",{type:"close",all:!0})}),E=e=>Boolean(e?.includes(":")),F=(e,t)=>Boolean(e&&!E(e)&&(!t||"_self"===t)),U=e=>(e||"").replace(/\?.*/,"").replace(/\/$/,""),H=(...e)=>e.filter(Boolean).join("/").replace(/\/+/g,"/");var X=Object.freeze({__proto__:null,isURL:E,isLocalURL:F,isHash:e=>Boolean(e?.startsWith("#")),withoutQuery:U,joinPath:H});const W=e=>(t,l=d.BASE_PATH)=>{if(!t||E(t)||K(t,d.CDN))return t;const n=t.startsWith("/");return H(K(t,l)?"":l,n?"/":e.pathname?.split("/").slice(0,-1).join("/"),t)},K=(e,t)=>t&&e&&e.startsWith(t),G=(e,t)=>G._impl(e,t);function Y(){return Y._impl()}function J(e={}){const{isRemote:t,basePath:l}=e,n=Y(),{closeAll:a}=O();return e=>({...e,href:t&&!l?e.href:W(n)(e.href,l),"aria-label":e.text,onClick:G(i(e),e)});function i({href:e,target:l,onClick:i}){return r=>{i&&i(r),e&&!t&&F(e,l)&&(a(),r?.preventDefault(),n.push(e))}}}G._impl=e=>e,G.setup=e=>{G._impl=e},Y._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{},back:()=>{}}),Y.setup=e=>{Y._impl=e};const q={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:"",transparent:"",gray:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active","":""},Z="bg-main-divider text-main-disabled",Q={primary:Z,secondary:Z,white:Z,link:"",transparent:"",gray:Z,"":""},ee="text-center font-sans select-none",te={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","":""},le=x((e=>{const{text:t,aboveText:l,appendLeft:n,appendRight:a,version:i="primary"}=e;return p("div",{className:w(ne(e),"flex gap-2"),children:[n?u("div",{className:te[i],children:n}):null,ae(e)?p("div",{children:[l?u("div",{className:"text-xs font-light text-left",children:l}):null,u("div",{className:"text-left "+(l?"text-s -mt-3xs":"text-l"),children:t})]}):null,a?u("div",{className:te[i],children:a}):null]})})),ne=e=>{const{version:t,aboveText:l,rounded:n}=e;if("link"===t)return"";const a=""+(l?"py-2.5 px-9":"py-4 px-9");return["group/btn items-center justify-center",ae(e)?a:"h-12 w-12",n?"rounded-full":""].join(" ")},ae=({text:e,aboveText:t,appendLeft:l})=>Boolean(e||t||!l),ie=({className:e,rounded:t,version:l})=>["inline-block",ee,l?Q[l]:"",t?"rounded-full":"rounded-md",e].join(" "),re=({className:e,rounded:t,version:l})=>[ee,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border h-fit",l?q[l]:"",t?"rounded-full":"rounded-md",e].join(" "),se=x((({disabled:e,children:t,...l})=>{const n=J()(l),a=t??u(le,{...n});return u(e?ce:oe,{...n,children:a})})),oe=x((({className:e="",href:t,rel:l,target:n,ariaLabel:a,version:i,rounded:r,onClick:s,children:o})=>u("a",{className:re({className:e,version:i,rounded:r}),href:t,rel:l,target:n,"aria-label":a,role:t?"link":"button",onClick:s,children:o}))),ce=x((({className:e,ariaLabel:t,version:l,rounded:n,children:a})=>u("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:ie({className:e,rounded:n,version:l}),children:a}))),de=x((({children:e,...t})=>u("p",{className:w("font-sans",Object.values(t)),children:e}))),me=x((({children:e,...t})=>u("span",{className:w("font-sans",Object.values(t)),children:e}))),he=x((({link:e})=>p(de,{size:"text-s",font:"font-light",color:"text-secondary-text",children:[u(me,{children:"Нажимая кнопку, вы подтверждаете согласие с "}),e?u(se,{href:e.href,ariaLabel:"условия передачи данных",target:e.target,className:"text-primary-main",children:u(me,{children:e.text})}):null]}))),ue=(e,t)=>{const{value:l,isDirty:n}=e,a=n?t(l):[];return{...e,errors:a,error:a[0]}},pe=x((({key:e,className:t="",inputClassName:l="",id:n,name:a,type:r="text",label:s,placeholder:o,value:c="",valid:d=!0,children:m,onChange:h,onFocus:x,onBlur:g,pattern:f})=>{const b=i((e=>{h&&h(e.target?.value||"")}),[h]),v=m?"pr-8":"",y=d?"border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text":"border-error";return p("div",{className:w("relative",t),children:[p("label",{children:[s?u("div",{className:"mb-xs",children:u(me,{size:"text-m",font:"font-light",children:s})}):null,u("input",{className:w("w-full border rounded-md text-primary-text outline-none p-4",v,y,l),id:n,name:a||n,placeholder:o,type:r,value:c,onInput:b,onFocus:x,onBlur:g,pattern:f},e)]}),m]})})),xe=x((({className:e,label:t,value:l="",error:n,onChange:a,onBlur:i})=>p("div",{className:e,children:[u(pe,{type:"text","aria-label":t,label:t,valid:Boolean(!n),value:l,onChange:a,onBlur:i}),u("div",{className:"h-2",children:n?u(me,{size:"text-xs",font:"font-light",color:"text-error",children:n}):null})]}))),ge=e=>"_"===e,fe=e=>/\d/.test(e),be=e=>ge(e)||fe(e),ve=[..."+7 (___) ___-__-__"],ye=ve.findIndex(ge),Ne=ve.map(((e,t)=>be(e)?ve.slice(0,t).filter(be).length:-1));const we=x((({children:e,onChange:t,...l})=>{const n=i((e=>t&&t(function(e){const t=e.replace(/\D/g,""),l=ve.map(((e,l)=>fe(e)?e:t.charAt(Ne[l])||e)),n=Ne.indexOf(t.length-1)+1;return(n?l.slice(0,Math.max(ye,n)):l).join("")}(e))),[t]);return u(pe,{onChange:n,onFocus:e=>n(e?.target?.value||""),...l,children:e})})),ke=x((({className:e,label:t,value:l,error:n,onChange:a,onBlur:i})=>p("div",{className:e,children:[u(we,{"aria-label":t,label:t,valid:Boolean(!n),value:l,onChange:a,onBlur:i}),u("div",{className:"h-2",children:n?u(me,{size:"text-xs",font:"font-light",color:"text-error",children:n}):null})]}))),Se="Некорректно заполненное поле",Ce=M((e=>null!=e&&""!==e))(Se),Ie=M((e=>"string"==typeof e&&e.length>1))(Se),Te=M((e=>"string"==typeof e&&(10===e.length||12===e.length)))(Se),Be=(Re=/^(\+7)?[\s-]?\(?[0-9]{3}\)?[\s-]?[0-9]{3}[\s-]?[0-9]{2}[\s-]?[0-9]{2}$/,M((e=>"string"==typeof e&&Re.test(e))))(Se);var Re;const Pe=e=>p("div",{className:"mb-4 sm:flex sm:justify-between sm:gap-5 sm:mb-7",children:[p("div",{className:"sm:w-1/2",children:[u(xe,{className:"shrink-0 w-full mb-3",label:"Наименование организации",...ue(e("fullName"),Ce)}),u(xe,{className:"shrink-0 w-full mb-3",label:"Контактное лицо",...ue(e("name"),Ie)})]}),p("div",{className:"sm:w-1/2",children:[u(xe,{className:"shrink-0 w-full mb-3",label:"ИНН",...ue(e("inn"),Te)}),u(ke,{className:"shrink-0 w-full mb-3",label:"Телефон",...ue(e("phone"),Be)})]})]}),Me=[{name:"Торговый эквайринг"},{name:"Мобильный эквайринг"},{name:"Интернет-эквайринг"},{name:"QR-эквайринг (СБП)"},{name:"Все виды эквайринга"}];function Ve(e=!1){const[t,l]=n(e),a=i((()=>l(!0)),[]),r=i((()=>l(!1)),[]),s=i((()=>l((e=>!e))),[]);return[t,{setValue:l,setTrue:a,setFalse:r,toggle:s}]}function ze(e){const t=s(null);return a((()=>{const l=l=>{t&&t.current&&l.target instanceof Node&&!t.current.contains(l.target)&&e()};return document.addEventListener("click",l),()=>{document.removeEventListener("click",l)}}),[e]),t}const _e={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},je=x((({className:e="",imageClassName:t="",name:l="",alt:n=`Иконка ${l}`,title:a=n,iconVersion:i="color",...r})=>{const s=Y(),o=W(s)(H(d.CDN,"/icons",`${l}.svg`));return"normal"!==i?u(De,{className:e,children:p("svg",{className:w(Ae(r.width),_e[i],"white"===i?"invert":"",t),...r,"aria-hidden":"true",children:[a?u("title",{children:a}):null,n?u("desc",{children:n}):null,u("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]})}):(e.includes("h-")||(r.style={height:`${r.height}px`}),u("img",{className:e,src:o,alt:n,title:a,"aria-hidden":"true",...r}))})),Ae=e=>e?"":"w-full h-full",De=x((({className:e,children:t})=>e?u("div",{className:e,children:t}):t)),$e=x((({className:e="",label:t,options:l=[],value:n,valid:a=!0,isBorder:r=!0,placeholder:s="",onChange:o})=>{const[c,{setFalse:d,toggle:m}]=Ve(),h=ze(d),x=i((e=>{d(),o&&o(e)}),[o]);return p("div",{className:e,ref:h,children:[t?u("div",{className:"mb-xs",children:u(me,{size:"text-m",color:"text-primary-text",font:"font-light",children:t})}):null,p("div",{className:w("relative",c?"z-20":"z-10"),children:[p("div",{className:w("text-l flex justify-between items-center text-primary-text cursor-pointer",Ee(r,a)),onClick:m,children:[u("p",{className:"p-4 pr-8 h-14 overflow-hidden text-ellipsis whitespace-nowrap",children:Oe(n)||s}),u(je,{className:w("absolute right-3",c?"":"rotate-180"),name:"ArrowUpIcon",width:"16",height:"16"})]}),l?.length?u("div",{className:w("h-0",c?"":"overflow-hidden"),children:u("div",{className:"bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:l.map(Le(x,c,(e=>e.key===n?.key)))})}):null]})]})})),Le=(e,t,l)=>(n,a)=>p("div",{onClick:()=>{e(n)},className:"flex px-4 py-3 cursor-pointer hover:bg-main-divider pr-11 relative",children:[u("span",{className:"min-h-6",children:Oe(n)}),u(je,{name:"DoneSimpleIcon",width:"16",height:"16",className:w("absolute right-4 pt-0.5",l(n)&&t?"":"hidden")})]},String(a)),Oe=e=>e?.text||e?.key||"",Ee=(e,t)=>w(e?"border rounded-md hover:border-primary-hover":"",t?" border-gray":"border-error"),Fe=x((e=>p("div",{children:[u($e,{...e,valid:!e.error}),u("div",{className:"h-2",children:e.error?u(me,{size:"text-xs",font:"font-light",color:"text-error",children:e.error}):null})]}))),Ue=({regions:e,field:t})=>p("div",{className:"mb-4 pb-1 border-b border-b-main-divider sm:flex sm:justify-between sm:gap-5 sm:mb-7 sm:border-none sm:pb-0",children:[u("div",{className:"mb-3 sm:mb-0 sm:w-1/2",children:u(Fe,{label:"Вид эквайринга",placeholder:"Выберите эквайринг",options:Me.map((({name:e=""})=>({key:e,text:e}))),...ue(t("acquiringType"),Ce)})}),u("div",{className:"mb-3 sm:mb-0 sm:w-1/2",children:u(Fe,{label:"Адрес",placeholder:"Выберите адрес",options:e.map((({code:e="",name:t=""})=>({key:e,text:t}))),...ue(t("region"),Ce)})})]}),He=x((({value:e=!1,text:t,type:l="checkbox",onChange:n})=>p("div",{role:l,"aria-checked":e,className:"flex justify-start items-center w-full cursor-pointer mb-s",onClick:()=>n&&n(!e),children:[u("div",{className:w("relative flex-shrink-0 duration-300 w-9 h-5 mr-s rounded-2xl",e?"bg-primary-main":"bg-main-divider"),children:u("div",{className:w("absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded-full",e?"left-1/2":"left-[5%]")})}),u(me,{size:"text-l",font:"font-light",color:"text-primary-text",children:t})]}))),Xe=e=>p("div",{className:"sm:mb-5",children:[u(He,{text:"Хочу купить онлайн-кассу",...e("onlineCheckout")}),u(He,{text:"Хочу купить POS-терминал",...e("posTerminal")})]}),We=(e,t)=>{const l=re({className:"text-white",version:e?.version});return u("button",{type:"submit",className:w("p-4 mt-3 w-full sm:mt-0 sm:w-auto",l,t),children:e?.text?e.text:"Отправить заявку"})},Ke={acquiringType:{key:"Торговый эквайринг"},fullName:"",inn:"",name:"",phone:"",onlineCheckout:!1,posTerminal:!1},Ge=R({acquiringType:Ce,region:Ce,fullName:Ce,inn:Te,name:Ie,phone:Be}),Ye=x((e=>{const{button:t,link:l,onSubmit:n}=e,a=i((e=>{const{acquiringType:t,region:l,fullName:a,inn:i,name:r,phone:s,onlineCheckout:o,posTerminal:c}=e;P(Ge(e))&&n({typeForm:"acqr",region:l?.text||"",partnerComments:`Вид эквайринга=${t?.key||""}/Онлайн касса=${o}/POS-терминал=${c}`,fullName:a,inn:i,name:r,phone:s})}),[n]),[,{field:r,...s}]=B(Ke,a),o=L();return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(I,{headingType:"h6",title:"Вид эквайринга и регион",className:"sm:text-center mb-4"}),Ue({regions:o,field:r}),u(I,{headingType:"h6",title:"Данные организации",className:"sm:text-center mb-4"}),Pe(r),Xe(r),We(t,"mb-4"),u(he,{link:l})]})})),Je=e=>p("div",{className:"sm:flex sm:justify-between sm:gap-5",children:[p("div",{className:"sm:w-1/2",children:[u(xe,{className:"shrink-0 w-full mb-3",label:"Контактное лицо",...ue(e("name"),Ie)}),u(xe,{className:"shrink-0 w-full mb-3",label:"ИНН",...ue(e("inn"),Te)})]}),p("div",{className:"sm:w-1/2",children:[u(ke,{className:"shrink-0 w-full mb-3",label:"Телефон",...ue(e("phone"),Be)}),u(xe,{className:"shrink-0 w-full mb-3",label:"Электронная почта",...ue(e("mail"),Ce)})]})]}),qe=({regions:e,field:t})=>u("div",{className:"w-full mb-3 sm:mb-5",children:u(Fe,{label:"Регион",placeholder:"Выберите регион",options:e.map((({code:e="",name:t=""})=>({key:e,text:t}))),...ue(t("region"),Ce)})}),Ze={name:"",phone:"",inn:"",mail:""},Qe=R({region:Ce,name:Ie,phone:Be,inn:Te,mail:Ce}),et=x((e=>{const{button:t,link:l,onSubmit:n}=e,a=i((e=>{const{region:t,name:l,phone:a,inn:i,mail:r}=e;P(Qe(e))&&n({typeForm:"bcrd",region:t?.text||"",name:l,phone:a,inn:i,mail:r})}),[n]),[,{field:r,...s}]=B(Ze,a),o=L();return p("form",{className:"container",onSubmit:s.onSubmit,children:[qe({regions:o,field:r}),Je(r),We(t,"mb-4"),u(he,{link:l})]})})),tt=[];const lt=async e=>await A(e,{method:"GET"})||tt,nt=["От 1 000 ₽","До 1 000 000 000 ₽"],at=["От 1 мес","До 15 лет"],it=e=>p("div",{className:"mb-4 pb-1 border-b border-b-main-divider sm:flex sm:justify-between sm:gap-5 sm:mb-7 sm:border-none sm:pb-0",children:[p("div",{className:"sm:w-1/2",children:[u(xe,{className:"shrink-0 w-full mb-3",label:"Наименование организации",...e("fullName")}),u(xe,{className:"shrink-0 w-full mb-3",label:"ИНН",...ue(e("inn"),Te)}),u(ke,{className:"shrink-0 w-full mb-3",label:"Телефон",...ue(e("phone"),Be)})]}),p("div",{className:"sm:w-1/2",children:[u(xe,{className:"shrink-0 w-full mb-3",label:"Годовая выручка, ₽",...ue(e("annualRevenue"),Ce)}),u(xe,{className:"shrink-0 w-full mb-3",label:"Контактное лицо",...ue(e("name"),Ie)}),u(xe,{className:"shrink-0 w-full mb-3",label:"Электронная почта",...e("mail")})]})]}),rt=(e,{normalize:t,format:l})=>{const{value:a,onFocus:r,onBlur:s,onChange:o}=e,[c,d]=n(!1),m=i((e=>{d(!0),r&&r(e)}),[]),h=i((()=>{d(!1),o&&o(t(a)),s&&s()}),[o,a]);return{value:c||!l?a:l(a),onFocus:m,onBlur:h}},st=(e,t,l)=>Math.max(t,Math.min(e,l)),ot=(e=0)=>(t=0)=>new Intl.NumberFormat("ru-RU",{minimumFractionDigits:0,maximumFractionDigits:e}).format(Number(t)||0);function ct(e){const t=(e||"").replace(/\D/g,""),l=parseInt(t,10);return Number.isNaN(l)?0:l}function dt({list:e=[],min:t,max:l,step:n,value:a=e[0]||t,disabled:i,onChange:r}){const s=e.length?e.indexOf(a):a,o={backgroundSize:`${(100*(s-t)/(l-t)).toFixed(2)}% 100%`};return p("div",{children:[e.length?u("div",{className:"absolute w-full flex justify-between -bottom-[3px] px-4",children:e.map(((e,t)=>u("div",{className:"w-2 h-2 rounded-full "+(s<=t||i?"bg-gray":"bg-primary-main")},String(t))))}):null,u("div",{className:"absolute inset-x-0 -bottom-1 px-4 leading-[18px]",children:u("input",{className:"box-border w-full m-0 cursor-pointer slider relative z-10",style:o,type:"range",min:t,max:l,step:n,value:s,disabled:i,onInput:t=>{const l=ct(t.target?.value),n=e.length?e[l]:l;r&&r(n||0)}})})]})}const mt=1,ht=100,ut=x((e=>{const{className:t,title:l,items:n=[],list:a=[],min:r=(a.length?0:mt),max:s=(a.length?a.length-1:ht),step:o=1,value:c=a[0]||r,disabled:d=!1,onChange:m}=e,h=rt(e,{normalize:(e=0)=>a.length?pt(a)(e):st(e,r,s),format:ot()}),x=i((e=>{m&&m(ct(e.target?.value))}),[m]);return p("div",{className:t,children:[p("label",{className:"block relative",children:[l?u(me,{size:"text-m",font:"font-light",color:"text-primary-text",children:l}):null,u("input",{className:w("m-0 mt-xs font-sans text-h3 w-full h-14","border border-solid border-gray rounded-md outline-none","p-0 pl-4 box-border","text-primary-text hover:border-primary-hover focus:border-primary-text","disabled:border-gray disabled:bg-main-divider"),disabled:d,onInput:x,...h}),dt({list:a,min:r,max:s,step:o,disabled:d,value:c,onChange:m})]}),xt(n)]})})),pt=e=>t=>e.reduce(((e,l)=>Math.abs(l-t)<Math.abs(e-t)?l:e)),xt=e=>u("div",{className:"flex justify-between my-2",children:e.map(((e,t)=>u(me,{size:"text-s",font:"font-light",color:"text-secondary-text",children:e},String(t))))}),gt=e=>p("div",{className:"mb-4 pb-1 border-b border-b-main-divider sm:flex sm:justify-between sm:gap-5 sm:mb-7 sm:border-none sm:pb-0",children:[p("div",{className:"mb-3 sm:mb-0 sm:w-1/2",children:[u("label",{children:u(me,{size:"text-m",font:"font-light",children:"Сумма кредита, ₽"})}),u(ut,{items:nt,min:1e3,max:1e9,...e("amount")})]}),p("div",{className:"sm:w-1/2",children:[u("label",{children:u(me,{size:"text-m",font:"font-light",children:"Срок кредита, месяцев"})}),u(ut,{items:at,min:1,max:180,...e("term")})]})]}),ft=({regions:e,branches:t,field:l})=>p("div",{className:"mb-4 sm:flex sm:justify-between sm:gap-5 sm:mb-7 sm:border-none sm:pb-0",children:[u("div",{className:"mb-3 sm:mb-0 sm:w-1/2",children:u(Fe,{label:"Регион",placeholder:"Выберите регион",options:e.map((({code:e="",name:t=""})=>({key:e,text:t}))),...ue(l("region"),Ce)})}),u("div",{className:"mb-3 sm:mb-0 sm:w-1/2",children:u(Fe,{label:"Адрес",placeholder:"Выберите адрес",options:t.map((({branchCode:e="",address:t=""})=>({key:e,text:t}))),...ue(l("department"),Ce)})})]}),bt={amount:1e3,term:12,fullName:"",inn:"",name:"",phone:"",mail:"",annualRevenue:""},vt=R({annualRevenue:Ce,inn:Te,name:Ie,phone:Be,region:Ce,department:Ce}),yt=x((({button:e,link:t,onSubmit:l})=>{const n=i((e=>{const{amount:t,term:n,fullName:a,inn:i,name:r,phone:s,mail:o,region:c,department:d,annualRevenue:m}=e;P(vt(e))&&l({typeForm:"cred",fullName:a,inn:i,name:r,phone:s,mail:o,region:c?.text||"",department:d?.text||"",partnerComments:`Сумма=${t}/Срок=${n}/Выручка=${m}`})}),[l]),[a,{field:r,...s}]=B(bt,n),o=L(),c=function(e){const{data:t}=_(e?`/api/v1/branches?regionCode=${e}`:null,lt);return t||tt}(a.region?.key).filter((e=>e?.address));return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(I,{headingType:"h6",title:"Параметры кредита",className:"sm:text-center mb-4"}),gt(r),u(I,{headingType:"h6",title:"Данные организации",className:"sm:text-center mb-4"}),it(r),u(I,{headingType:"h6",title:"Офис банка",className:"sm:text-center mb-4"}),ft({regions:o,branches:c,field:r}),We(e,"mb-4"),u(he,{link:t})]})})),Nt={name:"",phone:""},wt=R({name:Ie,phone:Be}),kt=x((e=>{const{button:t,link:l,onSubmit:n}=e,a=i((e=>{const{name:t,phone:l}=e;P(wt(e))&&n({typeForm:"dpst",name:t,phone:l})}),[n]),[,{field:r,...s}]=B(Nt,a);return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(I,{headingType:"h6",title:"Оставьте заявку и мы ответим на любые вопросы по депозитам",className:"sm:text-center mb-4"}),p("div",{className:"max-w-[560px] m-auto",children:[u(xe,{className:"shrink-0 w-full mb-3",label:"Имя",...ue(r("name"),Ie)}),u(ke,{className:"shrink-0 w-full mb-3",label:"Телефон",...ue(r("phone"),Be)})]}),p("div",{className:"flex justify-between flex-col-reverse sm:items-center sm:flex-row max-w-[560px] m-auto",children:[u("div",{className:"flex-1 mt-4 sm:mt-0",children:u(he,{link:l})}),We(t)]})]})})),St={};function Ct(e,t=St){const{data:l}=_(e?`/wcms-resources/${e}.json`:null,D,{fallback:t});return l||St}const It=x((e=>{const{button:t,sourceBookDir:l}=e,{regions:a}=Ct(l||"regions-grant-support"),[i,r]=n({key:""}),s=re({className:"text-white",version:t?.version}),o=a?.find((e=>e.name===i.key))?.href;return p("div",{className:"container space-y-s sm:space-y-lg",children:[a?u(Fe,{label:"Ваш регион",placeholder:"Выберите регион",options:a.map((({name:e=""})=>({key:e}))),value:i,onChange:r}):null,o?u("div",{className:"text-center",children:u(se,{href:o,target:"_blank",className:w("p-4 w-full sm:w-auto",s),children:t?.text?t.text:"Перейти"})}):null]})})),Tt=(e,t)=>e?.media&&t?.media?e.media-t.media:0,Bt=x((({className:e="",image:t,imageClassName:l="",pathPrefix:n})=>{const a=Y();return p("picture",{className:e,children:[t?.sources?.length?t.sources.filter((e=>e?.src)).sort(Tt).map((({src:e,format:l,media:i},r)=>u("source",{srcSet:Pt(a,n)(e),type:Mt(l),media:i?`(max-width: ${i}px)`:"",...t.size},`${r}_${e}`))):null,t?.src?Rt({...t,src:Pt(a,n)(t.src)},l):null]})})),Rt=(e,t="")=>u("img",{src:e.src,className:w("object-contain",t),alt:e.alt||e.title,title:e.title||"",style:{width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"auto"},...e.size}),Pt=(e,t)=>l=>l&&!E(l)?W(e)(H(t,l)):l,Mt=e=>e?`image/${String(e)}`:void 0,Vt=x((({className:e="",image:t,imageClassName:l="",pathPrefix:n,...a})=>t?.src||t?.icon?t.icon?u(je,{className:e,imageClassName:l,iconVersion:t?.iconVersion,name:t.icon,...a}):u(Bt,{className:e,imageClassName:l,image:t,pathPrefix:n}):null)),zt=x((({className:e,viewBox:t,fill:l="none",width:n,height:a,paths:i,...r})=>u("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:l,width:n,height:a,children:i.map((({d:e,fill:t,...l},n)=>u("path",{d:e,fill:t||"currentColor",...r,...l},n)))}))),_t=[{d:"M10.207.793a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 0 1 1.414-1.414L3.5 6.086 8.793.793a1 1 0 0 1 1.414 0Z",fillRule:"evenodd",clipRule:"evenodd",fill:"white"}],jt=x((({className:e,value:t,text:l,disabled:n,isRadio:a,onChange:r})=>{const s=i((e=>{n||(e.preventDefault(),r&&r(!t))}),[r,n,t]),o=a?u("div",{className:"absolute left-1 w-3 h-3 rounded-full bg-primary-main"}):u(zt,{paths:_t,className:"absolute left-1 ml-px block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"});return u("div",{className:e,children:p("label",{className:"flex items-center relative cursor-pointer group/box",onClick:s,children:[u("div",{className:w("appearance-none w-5 h-5 border-solid cursor-pointer m-0",a?"rounded-full border-2":At(t),t?"border-primary-main":"border-gray",n?"bg-main-disabled":"group-hover/box:border-primary-hover"),role:"checkbox","aria-checked":Boolean(t),"aria-disabled":Boolean(n)}),t?o:null,l?u("div",{className:"ml-3",children:u(me,{size:"text-l",font:"font-light",children:l})}):null]})})})),At=e=>w("rounded border",e?"bg-primary-main":""),Dt=e=>{const t=e("text");return p("div",{className:"mb-3 sm:mb-6",children:[p("div",{className:"mb-4 sm:flex sm:items-center sm:gap-6",children:[u(jt,{className:"mb-3 sm:mb-0",text:"Валютный контроль",...e("currencyControl")}),u(jt,{className:"mb-3 sm:mb-0",text:"Документарные операции",...e("documentaryOperations")}),u(jt,{className:"mb-3 sm:mb-0",text:"Конверсионные операции",...e("conversionOperations")})]}),u("textarea",{placeholder:"Укажите интересующий вас вопрос, место ведения бизнеса и удобное время для телефонного звонка",className:"block w-full resize-y min-h-24 p-4 outline-none border rounded-md border-main-stroke hover:border-primary-hover active:focus:border-primary-text",value:t.value,onInput:e=>t.onChange&&t.onChange(e.target?.value||"")})]})},$t=e=>p("div",{children:[p("div",{className:"sm:flex sm:justify-between sm:gap-lg",children:[u("div",{className:"sm:w-1/2",children:u(xe,{className:"shrink-0 w-full mb-s",label:"Наименование организации",...ue(e("fullName"),Ce)})}),u("div",{className:"sm:w-1/2",children:u(xe,{className:"shrink-0 w-full mb-s",label:"ФИО",...ue(e("name"),Ie)})})]}),p("div",{className:"sm:flex sm:justify-between sm:gap-lg sm:mb-2xl",children:[u("div",{className:"sm:w-1/2",children:u(ke,{className:"shrink-0 w-full mb-s",label:"Телефон",...ue(e("phone"),Be)})}),u("div",{className:"sm:w-1/2",children:u(xe,{className:"shrink-0 w-full mb-s",label:"Электронная почта",...ue(e("mail"),Ce)})})]})]}),Lt={fullName:"",name:"",phone:"",mail:"",currencyControl:!1,documentaryOperations:!1,conversionOperations:!1,text:""},Ot=R({fullName:Ce,name:Ie,phone:Be,mail:Ce}),Et={ApplicationFormBusinessCard:et,ApplicationFormWed:x((e=>{const{button:t,link:l,onSubmit:n}=e,a=i((e=>{const{fullName:t,name:l,phone:a,mail:i,currencyControl:r,documentaryOperations:s,conversionOperations:o,text:c}=e;P(Ot(e))&&n({typeForm:"kved",fullName:t,name:l,phone:a,mail:i,partnerComments:`Валютный контроль=${r}/Документарные операции=${s}/Конверсионные операции=${o}/Доп инф=${c}`})}),[n]),[,{field:r,...s}]=B(Lt,a);return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(I,{headingType:"h6",title:"Данные организации",className:"sm:text-center mb-m"}),$t(r),u(I,{headingType:"h6",title:"Интересующий вопрос",className:"sm:text-center mb-m"}),Dt(r),p("div",{className:"flex flex-col border-b border-main-divider mb-5 pb-5 sm:items-center sm:flex-row sm:mb-9 sm:pb-9",children:[We(t,"mb-m sm:mr-lg sm:mb-0"),u(he,{link:l})]}),u(I,{headingType:"h6",title:"Или свяжитесь с нами удобным способом",className:"sm:text-center mb-m"}),p("div",{className:"flex",children:[p("a",{className:"flex items-center text-primary-text no-underline mr-6",href:"tel:8 (800) 200-78-70","aria-label":"8 (800) 200-78-70",children:[u(Vt,{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(Vt,{image:{icon:"MailIcon"},width:"24",height:"24",className:"mr-3"}),u("span",{children:"ved@rshb.ru"})]})]})]})})),ApplicationFormDeposit:kt,ApplicationFormCredit:yt,ApplicationFormAcquiring:Ye,ApplicationFormGrantSupport:It},Ft=x((({responseType:e})=>{const t="OK"===e;return p("div",{className:`flex items-center mt-lg p-lg rounded-md space-x-m ${t?"bg-ok":"bg-fail"}`,children:[u(Vt,t?{image:{icon:"ResponceOKIcon"},width:"42",height:"42"}:{image:{icon:"ResponceFailIcon"},width:"37",height:"34"}),p("div",{children:[u(I,{headingType:"h6",title:t?"Ваша заявка отправлена":"Не удалось отправить заявку",className:"mb-1"}),u(me,{size:"text-l",font:"font-light",color:"text-secondary-text",children:t?"Совсем скоро мы с вами свяжемся":"Пожалуйста, повторите позднее"})]})]})})),Ut={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}}},Ht=x((e=>{const{className:t,formBlock:l,...a}=e,[r,s]=n(""),o=i((async e=>{const t=await Ut.send(e)?"OK":"Fail";return s(t),t}),[]);return u(S,{className:t,defaultPadding:"p-6xl",...a,children:p("div",{className:"container max-w-[978px]",children:[l?.title?u(I,{headingType:"h3",title:l.title,className:"mb-4 sm:mb-8 sm:text-center"}):null,l?Xt(l,o):null,r?u(Ft,{responseType:r}):null]})})})),Xt=(e,t)=>{const l=e?.formType;if(!l||!(l in Et))return null;return u(Et[l],{...e,onSubmit:t})},Wt={"":"bg-main-divider group-data-secondary:bg-white/30",primary:"bg-main-divider",secondary:"bg-secondary-light",opacity:"bg-white/30"},Kt=x((({className:e,defaultIconSize:t=44,iconBgVersion:l="primary",size:n,icon:a,...i})=>{const r=String(n?.width||t);return a?u("div",{style:{width:`${r}px`,height:`${r}px`},className:w("rounded-icon object-fit flex justify-center items-center ",Wt[l],e),children:u(je,{...i,width:"54%",height:"54%",name:a})}):null})),Gt=x((({className:e="",title:t,benefitList:l,...n})=>p(S,{className:e,defaultPadding:"p-6xl",...n,children:[t?u(I,{headingType:"h3",as:"h2",className:"text-center",title:t}):null,l?.length?u("div",{className:"flex flex-wrap w-full sm:justify-center mt-xl gap-5xl",role:"list",children:l.map(Yt)}):null]}))),Yt=(e,t)=>p("div",{className:"flex gap-m items-center md:basis-1/2 md:max-w-[500px]",role:"listitem",children:[e?.icon?.icon?u(Kt,{className:"shrink-0",defaultIconSize:44,iconBgVersion:e?.iconBgVersion||"",...e?.icon}):null,e?.icon?.src?u(Vt,{className:"shrink-0",image:e.icon}):null,e?.label?p("div",{className:"sm:h-full",children:[u(I,{headingType:"h6",children:e.label}),Jt(e.description)]}):null]},String(t)),Jt=e=>{const t=e?.benefitType||null;return e&&t?u("div",{className:"mt-xs text-l font-light text-secondary-text group-data-secondary:text-white/80",children:"list"===t?Zt(e):qt(e)}):null},qt=e=>e?.name||null,Zt=e=>{const t=e?.bullets?"list-disc pl-3xl":"";return e?.items&&e.items.length>0?u("ul",{className:t,children:e.items.map(((e,t)=>u("li",{children:e},`benefitListItem-${t}`)))}):null},Qt=(e,{className:t,buttonClassName:l,isVertical:n}={})=>e?.length&&e.some((e=>e?.text||e?.icon?.icon))?u("div",{className:w("flex",n?"flex-col gap-xs justify-items-stretch":"flex-wrap gap-m",t),children:e.map(el(l))}):null,el=(e="")=>(t,l)=>{const{text:n,icon:a,iconRight:i,version:r,...s}=t||{},o="secondary"===r?"color":"white",c=a?.iconVersion?a?.iconVersion:o;return n||a?.icon?u(se,{className:w("basis-full sm:basis-auto",e),appendLeft:tl({...a,iconVersion:c}),appendRight:tl({...i,iconVersion:c}),version:r,text:n,...s},l?String(l):""):null},tl=e=>e?.icon||e?.src?u(Vt,{image:e,width:String(e?.size?.width||24),height:String(24)}):null,ll={XXL:{title:{headingType:"h0",as:"h1"},descriptionSize:"text-h5",descriptionWeight:"font-normal",descriptionStyle:"mt-xl"},XL:{title:{headingType:"h1",as:"h1"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-m"},L:{title:{headingType:"h2",as:"h2"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-m"},M:{title:{headingType:"h3",as:"h2"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-s"},S:{title:{headingType:"h4",as:"h2"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-xs"},XS:{title:{headingType:"h5",as:"h2"},descriptionSize:"text-l",descriptionWeight:"font-light",descriptionStyle:"mt-xs"}},nl={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"},al=x((({className:e,version:t="",headlineVersion:l="XL",title:n,description:a,align:i="text-center",as:r,isPadding:s=!0,isTheme:o=!1,...c})=>{const d=ll[l],m={marginTop:d.descriptionStyle};return p(S,{className:e,defaultPadding:s?"p-6xl":"",version:t,isTheme:o,...c,children:[n?u(I,{className:w("whitespace-pre-wrap",i),...d?.title,as:r||d?.title.as,title:n}):null,a?u(de,{size:d.descriptionSize,font:d.descriptionWeight,align:i,...m,children:a}):null]})})),il=x((({className:e="",title:t,description:l,bonusItems:n=[],...a})=>u(S,{className:e,defaultPadding:"p-default",...a,children:p("div",{className:"container",children:[u(al,{className:"mb-xl",isPadding:!1,title:t,description:l,headlineVersion:"M"}),u("div",{className:"flex flex-wrap w-full",children:n.length>0?n.map(((e,t)=>p("div",{className:"flex-grow w-full sm:w-[49%] border border-gray p-m mb-text mx-xs even:mr-0 odd:ml-0 last:odd:mx-0",children:[e?.title?u("div",{className:"mb-xs last:mb-0",children:u(me,{size:"text-h4",children:e.title})}):null,e?.description?u("div",{className:"mb-text last:mb-0",children:u(de,{size:"text-xl",font:"font-light",children:e.description})}):null,p("div",{className:"flex justify-between items-end",children:[u("div",{className:"hidden sm:block",children:Qt(e?.buttons)}),e.bonusItemContent?.bonusType?rl(e.bonusItemContent):null]})]},String(t)))):null})]})}))),rl=e=>"count"===e.bonusType?sl(e):ol(e),sl=e=>p("div",{className:"w-full pt-default mt-s flex items-end",children:[e.bonusCount?u("span",{className:"shrink-0 w-1/2 sm:w-auto font-mohave text-title-extra -tracking-[5px] bg-clip-text text-transparent bg-green-to-yellow mt-lg",children:e.bonusCount}):null,e.bonusName?u("div",{className:"w-1/2 sm:w-auto bg-clip-text text-transparent bg-green-to-yellow",children:u(me,{size:"text-h2",children:e.bonusName})}):null]}),ol=e=>e.image?u(Vt,{className:"min-w-12 p-xs rounded-icon shrink-0",image:e.image}):null,cl={left:"text-left",center:"text-center",right:"text-right"},dl="text-center",ml=({icon:e,title:t,description:l},n)=>p("div",{className:w("flex flex-col","items-center",l||t?"":"justify-center"),children:[t?u(me,{size:"text-h6",font:"font-normal",align:dl,children:t}):null,e?u(Vt,{image:e,height:"180",className:"w-auto"}):null,l?u(me,{size:"text-h6",font:"font-normal",align:dl,children:l}):null]},String(n)),hl=(e,t,l)=>u("div",{className:`grid gap-1 ${cl[l]} ${ul(t)}`,children:e.map(ml)}),ul=e=>{switch(e){case"3":return"grid-cols-3";case"4":return"grid-cols-4";default:return"grid-cols-5"}},pl=x((({bonusBenefits:e,cardTextAlign:t="center",className:l="",columnsCount:n="4",subtitle:a,title:i,...r})=>p(S,{className:l,defaultPadding:"p-6xl",...r,children:[u(al,{className:"mb-4 sm:mb-3xl",isPadding:!1,title:i,description:a,headlineVersion:"M"}),e?.length?hl(e,n,t):null]}))),xl=x((e=>{const{title:t,image:l,cardItems:n,button:a}=e;return p("div",{className:"border-gray border p-4xl w-1/2 space-y-lg",children:[l?p("div",{className:"flex justify-center",children:[l?.src?u(Vt,{image:l}):null,l?.icon?u(Vt,{image:l}):null]}):null,t?u(I,{headingType:"h4",title:t}):null,n?.length?u("ul",{className:"space-y-s",children:n.map(((e,t)=>gl(e,String(t))))}):null,Qt([a])]})})),gl=(e,t)=>{const{icon:l,text:n}=e;return p("li",{className:"flex items-center gap-s last:mb-0",children:[l?.icon?u(Vt,{image:l,className:"w-12 h-12 min-w-12 p-s rounded-icon bg-main-divider"}):null,l?.src?u(Vt,{image:l}):null,u(me,{size:"text-xl",font:"font-light",children:n})]},t)},fl=x((({className:e,title:t,cards:l,...n})=>p(S,{className:e,defaultPadding:"p-6xl space-y-3xl",...n,children:[u(I,{headingType:"h3",title:t,className:"text-center"}),u("div",{className:"flex gap-5",children:l?.length?l.map(((e,t)=>u(xl,{...e},String(t)))):null})]}))),bl=x((({buttons:e,className:t,...l})=>u(S,{className:w("!bg-transparent",t),defaultPadding:"p-0",...l,children:Qt(e)}))),vl=(e,t=0)=>{const{itemCount:l,visibleItemCount:a}=e,[r,s]=n(t),o=i((()=>s((e=>Math.min(e+1,l-1)))),[l]),c=i((()=>s((e=>Math.max(e-1,0)))),[l]),d=a?l>a&&r<l-a:r<l-1,m=r>0;return[r,{inc:o,dec:c,canInc:d,canDec:m,isScrollAvailable:m||d}]},yl=x((({className:e,disabled:t,...l})=>u(se,{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(Vt,{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"})}))),Nl=x((e=>u(yl,{...e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}))),wl=x((e=>u(yl,{...e,className:`${e.className||""} rotate-180`,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"})));function kl({dec:e,inc:t,canDec:l,canInc:n,btnClass:a,className:i=""}){return l||n?p("div",{children:[l?u(yl,{className:`absolute z-40 ${a[0]} ${i}`,onClick:e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left",disabled:!l}):null,n?u(yl,{className:`absolute z-40 rotate-180 ${a[1]} ${i}`,onClick:t,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right",disabled:!n}):null]}):null}const Sl=x((({title:e,value:t,postfix:l="",prefix:n,className:a=""})=>p("div",{className:w("flex justify-between md:mb-7 md:flex-col",a),children:[e?u(me,{size:"text-l",font:"font-light",color:"text-secondary-text",children:e}):null,u("div",t?{children:p(me,{size:"text-h3",children:[n," ",ot(2)(Math.round(t))," ",l]})}:{children:u(me,{size:"text-h3",children:"-"})})]}))),Cl=Math.round(23.5),Il={minSum:1e4,maxSum:5e6,minMonths:13,maxMonths:60,rate:12.5,isSalaryClient:!1,isPensionClient:!1,isStateEmployee:!1,isInsurance:!0},Tl={minSum:1e4,maxSum:3e6,minSumOld:0,maxSumOld:25e5,minSumExtra:0,maxSumExtra:5e5,minMonths:13,maxMonths:60,rate:7.5,isExtraMoney:!1,isSalaryClient:!1,isInsurance:!0},Bl={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},Rl={minSum:5e4,maxSum:5e6,minMonths:2,maxMonths:10,rate:0,isMonthlyInterestPayment:!0,isRemoteRegistration:!0},Pl={minSum:1e3,maxSum:5e5,minDays:1,maxDays:1095,rate:0,isMonthlyInterestPayment:!0,isReplenished:!1,isPartialWithdrawal:!1,isSmallBusiness:!1,depositeName:"Депозит 'Стабильный'"},Ml=x((({rate:e,title:t="Ставка",unit:l,depositeName:n,isShowDepositeName:a,rateBlockClassName:i,fractionDigits:r=2})=>p("div",{children:[u(me,{size:"text-l",font:"font-light",color:"text-secondary-text",children:t}),p("div",{className:"relative",children:[p("div",{className:"flex justify-start gradient-color-text",children:[u("span",{className:w("font-mohave text-title-huge pr-6 -mt-4",i),children:String(e.toFixed(r)).replace(".",",")}),l?u("span",{className:"text-7xl",children:l}):null]}),n&&a?u("div",{className:"absolute bottom-7 w-full text-center whitespace-nowrap",children:n}):null]})]}))),Vl=e=>e?u(de,{size:"text-s",font:"font-light",color:"text-secondary-text",children:e}):null;function zl({isShowItems:e=!0,step:t=1e3,...l}){const n=[`От ${ot(2)(l.min||0)} ₽`,`До ${ot(2)(l.max||0)} ₽`];return u(ut,{items:e?n:[],step:t,...l})}function _l(e){const{data:t}=_(`/wcms-resources/${e}.json`,D);return t}const jl=(e,t)=>{const{travelExpenseValue:l,restExpenseValue:n}=e,a=_l(t||"bonus-calculator-data")||Bl,[i,r]=((e,t,l)=>{const{minSumTravel:n,minSumOther:a,maxBonus:i,prefMonthsNum:r,prefTravelBonusRate:s,prefRestBonusRate:o,travelBonusRate:c,restBonusRate:d}=e;if(t===n&&l===a)return[0,0];const m=Math.min(Math.round(s*t)+Math.round(o*l),i);return[m,m*r+Math.min(Math.round(c*t)+Math.round(d*l),i)*(12-r)]})(a,l,n);return{...a,...e,monthBonus:i,yearBonus:r}},Al=x((({className:e="",sourceBookDir:t="",buttons:l,footnote:n})=>{const[a,{field:i}]=B({travelExpenseValue:6e3,restExpenseValue:6e3}),{minSumTravel:r,maxSumTravel:s,minSumOther:o,maxSumOther:c,monthBonus:d,yearBonus:m}=jl(a,t);return p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-2/5",children:[zl({title:"Сумма покупок в категории путешествия, ₽",min:r,max:s,step:500,isShowItems:!1,...i("travelExpenseValue")}),zl({title:"Сумма покупок в остальных категориях, ₽",className:"mt-7",min:o,max:c,step:500,isShowItems:!1,...i("restExpenseValue")})]}),u("div",{children:d>=0?u(Ml,{title:"Баллов за месяц",rate:d,rateBlockClassName:"tracking-[-14px]",fractionDigits:0}):null}),p("div",{className:"w-96",children:[m>=0?u(Sl,{title:"Баллов за год",value:m}):null,Qt(l,{className:"mt-7",isVertical:!0}),Vl(n)]})]})})),Dl=e=>e,$l=(e=Dl)=>t=>t.reduceRight(((t,l)=>e(t)>e(l)?t:l)),Ll=$l(),Ol=(e=Dl)=>$l((t=>-e(t))),El=Ol(),Fl=e=>{const t=[...e];t.sort((([e],[t])=>e-t));let l=1;for(;l<t.length;){const[e,n]=t[l-1],[a,i]=t[l];n>=a?t.splice(l-1,2,[e,Math.max(n,i)]):l++}return t},Ul=([e,t],l,n=[])=>l&&l[e]&&l[t]?{[e]:l[e],[t]:l[t]}:Hl([e,t],n),Hl=([e,t],l=[])=>({[e]:l.length?El(l.filter((t=>"number"==typeof t[e])).map((t=>t[e]))):0,[t]:l.length?Ll(l.filter((t=>"number"==typeof t[e])).map((e=>e[t]))):0}),Xl=(e,[t,l],n)=>e>=n[t]&&e<=n[l],Wl=(e,t)=>e?t.isReplenished&&t.isPartialWithdrawal:!t.isReplenished&&!t.isPartialWithdrawal,Kl=(e,t)=>{const{isMonthlyInterestPayment:l,moneyValue:n,daysValue:a}=t;return l?Math.round(n*Math.pow((1200+e)/1200,a/30)-n):Math.round(n*e*a/365/100)},Gl=e=>`${e} ${Number(e)%10==1?"дня":"дней"}`,Yl={horizontal:"gap-10",vertical:"flex-col gap-3"},Jl=x((({items:e,checkedItem:t,className:l,onChange:n,orientation:a="horizontal"})=>u("div",{className:w(`flex ${Yl[a]}`,l),children:e?.map((({id:e,text:l})=>u(jt,{isRadio:!0,text:l,value:t===e,onChange:()=>n&&n(e)},String(e))))}))),ql=({items:e,title:t,orientation:l="horizontal",value:n,radioGroupClassName:a,onChange:i})=>p("div",{children:[t?u("div",{className:"mb-3",children:u(me,{color:"text-secondary-text",font:"font-light",children:t})}):null,u(Jl,{orientation:l,items:e,checkedItem:e[n?0:1].id,className:w("flex-col sm:flex-row",a),onChange:t=>i&&i(t===e[0].id)})]}),Zl=e=>ql({...e,items:[{id:"everyMonth",text:"Ежемесячно"},{id:"atEndTerm",text:"В конце срока"}]}),Ql=x((({title:e="Ставка"})=>p("div",{children:[u(me,{size:"text-l",font:"font-light",color:"text-secondary-text",children:e}),u("div",{className:"mt-2xs pt-2xs pl-lg pb-xs",children:u(je,{name:"PercentIcon",width:"90",height:"85"})}),u("div",{className:"w-64 mt-m",children:p(de,{size:"text-xl",font:"font-light",color:"text-primary-text",children:["Процентная ставка для срока ",u("strong",{children:"1-30 дней"})," устанавливается при обращении в Банк"]})})]}))),en=({rate:e,depositeName:t,isShowDepositeName:l})=>u(Ml,{rate:e,depositeName:t,isShowDepositeName:l,rateBlockClassName:"tracking-[-25px]",unit:"%"}),tn=({rate:e})=>u(Sl,{title:"Ставка",value:e,postfix:"%"}),ln=e=>e.isShowUnknownRate?u(Ql,{}):p("div",{children:[u("div",{className:"hidden md:block",children:en(e)}),u("div",{className:"md:hidden",children:tn(e)})]}),nn=x((({className:e="",sourceBookDir:t,buttons:l,footnote:n,bottomFootnote:a,isShowDepositeName:i})=>{const[r,{field:s}]=B({moneyValue:1e5,daysValue:90,isReplenished:!1,isPartialWithdrawal:!1,isSmallBusiness:!1,isMonthlyInterestPayment:!1}),o=((e,t)=>{const{daysValue:l,moneyValue:n,isPartialWithdrawal:a,isReplenished:i,isSmallBusiness:r,isMonthlyInterestPayment:s}=e,o=_l(t||"business-calculator-data"),c=i||a,d=l<90||l>730;if(l<=30)return{...Pl,...e,isDisabledOperatingDeposit:d,isShowUnknownRate:!0};const m=o?.rateRows?.find((e=>s===e.isMonthlyInterestPayment&&r===e.isSmallBusiness&&Wl(c,e)&&Xl(n,["minSum","maxSum"],e)&&Xl(l,["minDays","maxDays"],e)))||Pl,{rate:h}=m,u=Kl(h,e),p=n+u,x=o?.rateRows||[Pl];return{...m,...Hl(["minSum","maxSum"],x),...Hl(["minDays","maxDays"],x),...e,isDisabledOperatingDeposit:d,income:u,finalSum:p}})(r,t),{income:c,finalSum:d,rate:m,isShowUnknownRate:h,depositeName:x}=o;return p("section",{className:e,children:[p("div",{className:"flex flex-col justify-between sm:flex-row",children:[p("div",{className:"flex flex-col gap-y-m sm:w-2/5 sm:gap-y-lg",children:[zl({title:"Сумма, ₽",min:o.minSum,max:o.maxSum,...s("moneyValue"),value:o.moneyValue}),(g={title:"Срок, дней",min:o.minDays,max:o.maxDays,...s("daysValue"),value:o.daysValue},u(ut,{items:[`От ${Gl(g.min||0)}`,`До ${Gl(g.max||0)}`],step:1,...g})),p("div",{className:"flex flex-col gap-xl justify-between sm:flex-row sm:gap-0",children:[an(o,s),Zl({title:"Выплата процентов",orientation:"vertical",...s("isMonthlyInterestPayment"),radioGroupClassName:"sm:flex-col"})]})]}),u("div",{className:"border-b border-main-divider my-xl sm:hidden"}),ln({rate:m,depositeName:x,isShowDepositeName:i,isShowUnknownRate:h}),p("div",{className:"flex flex-col gap-y-xl mt-3xl sm:gap-0 sm:w-96 sm:mt-0",children:[rn(d,c),Qt(l,{isVertical:!0}),u("div",{className:"sm:mt-2xl",children:Vl(n)})]})]}),u("div",{className:"mt-lg",children:Vl(a)})]});var g})),an=(e,t)=>p("div",{className:"flex flex-col gap-y-xl sm:gap-y-s",children:[u(jt,{text:"Пополнение",disabled:e.isDisabledOperatingDeposit,...t("isReplenished"),value:e.isReplenished}),u(jt,{disabled:e.isDisabledOperatingDeposit,text:"Частичное снятие",...t("isPartialWithdrawal"),value:e.isPartialWithdrawal}),u(jt,{text:"ИП / малое предприятие",...t("isSmallBusiness"),value:e.isSmallBusiness})]}),rn=(e,t)=>p("div",{className:"flex flex-col gap-2xl sm:gap-0",children:[u(Sl,{title:"Доход в конце срока",value:t,postfix:"₽",prefix:"+"}),u(Sl,{title:"Сумма в конце срока",value:e,postfix:"₽"})]}),sn=({min:e=0,max:t=0,availableMonths:l,...n})=>u(ut,{items:[`От ${on(e)}`,`До ${on(t)}`],step:1,...l?.length?{list:l}:{min:e,max:t},...n}),on=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`,cn=e=>dn({...e,fieldKey:"isSalaryClient",viewSettingFieldKey:"isShowSalaryClient"})&&dn({...e,fieldKey:"isStateEmployee",viewSettingFieldKey:"isShowStateEmployee"})&&dn({...e,fieldKey:"isPensionClient",viewSettingFieldKey:"isShowPensionClient"})&&dn({...e,fieldKey:"isInsurance",viewSettingFieldKey:"isShowInsurance"}),dn=({row:e,userInputParams:t,paramsViewSettings:l,fieldKey:n,viewSettingFieldKey:a})=>!!l&&!l[a]||t[n]===e[n],mn=(e,t)=>{const{isAnnuity:l,moneyValue:n,monthsValue:a,moneyExtra:i}=t;if(0===e)return 0;if(l){const t=e/1200;return i?(n+i)*(t+t/(Math.pow(1+t,a)-1)):n*(t+t/(Math.pow(1+t,a)-1))}return Math.round(n/a)+n*(e/1200)},hn=(e,t,l)=>{let{moneyValue:n,monthsValue:a}=e;const i=_l(t||"credit-calculator-data"),s=i?.rateRows||[Il],o=(({limitRows:e,userInputParams:t,paramsViewSettings:l})=>e?.find((e=>cn({row:e,userInputParams:t,paramsViewSettings:l}))))({limitRows:i?.limitRows||[],userInputParams:e,paramsViewSettings:l}),{minSum:c,maxSum:d}=Ul(["minSum","maxSum"],o,s),{minMonths:m,maxMonths:h}=Ul(["minMonths","maxMonths"],o,s);n=st(n,c,d),a=st(a,m,h);const u=(({rateRows:e=[],userInputParams:t,paramsViewSettings:l,moneyValue:n,monthsValue:a})=>e?.find((e=>cn({row:e,userInputParams:t,paramsViewSettings:l})&&Xl(n,["minSum","maxSum"],e)&&Xl(a,["minMonths","maxMonths"],e)))||Il)({rateRows:s,userInputParams:e,paramsViewSettings:l,moneyValue:n,monthsValue:a}),{rate:p}=u,x=mn(p,e);return r((()=>({...u,...e,minSum:c,maxSum:d,minMonths:m,maxMonths:h,moneyValue:n,monthsValue:a,monthlyPayment:x})),[e,i])},un=e=>ql({...e,radioGroupClassName:"sm:flex-col",items:[{id:"annuity",text:"Аннуитетный"},{id:"differential",text:"Дифференцированный"}]}),pn=x((({className:e,sourceBookDir:t,buttons:l,footnote:n,paramsViewSettings:a,isMobile:i})=>{const[r,{field:s}]=B({isAnnuity:!0,isInsurance:!0,isSalaryClient:!1,isPensionClient:!1,isStateEmployee:!1,moneyValue:2e5,monthsValue:Cl}),o=hn(r,t,a),c=un({title:i?"Тип платежа":"",orientation:"vertical",...s("isAnnuity")});return p("section",{className:w("flex flex-col justify-between sm:flex-row",e),children:[p("div",{className:"flex flex-col gap-y-m sm:w-2/5 sm:gap-y-lg",children:[zl({title:"Сумма кредита, ₽",step:500,min:o.minSum,max:o.maxSum,...s("moneyValue"),value:o.moneyValue}),sn({title:"Срок кредита, месяцев",min:o.minMonths,max:o.maxMonths,...s("monthsValue"),value:o.monthsValue}),xn({...o,...a},s),u("div",{className:"mt-s sm:hidden",children:c})]}),u("div",{className:"border-b border-main-divider mt-xl mb-3xl sm:hidden"}),ln({rate:o.rate}),p("div",{className:"mt-6xl flex flex-col gap-lg sm:w-96 sm:mt-0 sm:gap-0",children:[u(Sl,{title:"Ежемесячный платеж",value:o.monthlyPayment,postfix:"₽"}),u("div",{className:"hidden sm:block",children:c}),Qt(l,{className:"mt-2xl",isVertical:!0}),Vl(n)]})]})})),xn=(e,t)=>p("div",{className:"gap-xl flex flex-col sm:gap-s",children:[e.isShowSalaryClient?u(jt,{text:"Получаю зарплату на счёт\nв Россельхозбанке",...t("isSalaryClient"),value:e.isSalaryClient,className:"whitespace-pre-line sm:whitespace-normal"}):null,e.isShowStateEmployee?u(jt,{text:"Работаю в бюджетной организации",...t("isStateEmployee"),value:e.isStateEmployee}):null,e.isShowPensionClient?u(jt,{text:"Получаю пенсию на карту Россельхозбанка",...t("isPensionClient"),value:e.isPensionClient}):null,e.isShowInsurance?u(jt,{text:"Комплексная страховая защита",...t("isInsurance"),value:e.isInsurance}):null]}),gn=(e,t,l)=>{const{moneyValue:n,monthsValue:a}=e,i=_l(t||"deposit-calculator-data"),r=i?.rateRows?.[0]?vn(i.rateRows[0].minMonths,i.rateRows[0].maxMonths):1,s=!l?.isShowMonthlyInterestPayment,o=!l?.isShowRemoteRegistration,c=i?.rateRows?.find((t=>bn({row:t,userInputParams:e,paramKey:"isMonthlyInterestPayment",isExclude:s})&&bn({row:t,userInputParams:e,paramKey:"isRemoteRegistration",isExclude:o})&&Xl(n,["minSum","maxSum"],t)&&Xl(a||r,["minMonths","maxMonths"],t)))||Rl,{rate:d}=c,m=fn(d,e),h=n+m,u=i?.rateRows||[Rl];return{...c,...Hl(["minSum","maxSum"],u),...Hl(["minMonths","maxMonths"],u),availableMonths:Fl(u.map((e=>[e.minMonths,e.maxMonths]))).flatMap((([e,t])=>((e,t,l=1)=>Array.from({length:Math.abs(t-e)/l+1},((n,a)=>t>=e?e+a*l:e-a*l)))(e,t))),...e,defaultMonth:r,income:m,finalSum:h}},fn=(e,t)=>{const{isMonthlyInterestPayment:l,moneyValue:n,monthsValue:a}=t;return l?Math.round(n*Math.pow((1200+e)/1200,a)-n):Math.round(n*e*30*a/365/100)},bn=({row:e,userInputParams:t,paramKey:l,isExclude:n})=>n||t[l]===e[l],vn=(e,t)=>e+Math.round((t-e)/2),yn=x((({className:e,sourceBookDir:t,buttons:l,footnote:n,paramsViewSettings:i})=>{const[r,{field:s}]=B({moneyValue:2e4,monthsValue:0,isMonthlyInterestPayment:!1,isRemoteRegistration:!1}),o=gn(r,t,i),{defaultMonth:c,rate:d,income:m,finalSum:h}=o,{onChange:x}=s("monthsValue");return a((()=>{x&&x(c)}),[c]),p("section",{className:w("flex flex-col justify-between sm:flex-row",e),children:[p("div",{className:"flex flex-col gap-lg sm:w-2/5",children:[zl({title:"Сумма, ₽",min:o.minSum,max:o.maxSum,...s("moneyValue"),value:o.moneyValue}),sn({title:"Срок, месяцев",min:o.minMonths,max:o.maxMonths,availableMonths:o.availableMonths,...s("monthsValue"),value:o.monthsValue}),u("div",{className:"flex flex-col gap-y-2xl",children:Nn({...o,...i},s)})]}),u("div",{className:"border-b border-main-divider mt-lg mb-2xl md:hidden"}),ln({rate:d}),p("div",{className:"mt-2xl flex flex-col gap-y-2xl sm:w-96 sm:gap-y-0 sm:mt-0",children:[u(Sl,{title:"Доход в конце срока",value:m,postfix:"₽",prefix:"+"}),u(Sl,{title:"Сумма в конце срока",value:h,postfix:"₽"}),Qt(l,{isVertical:!0}),Vl(n)]})]})})),Nn=(e,t)=>{return p("div",{className:"flex flex-col gap-y-2xl",children:[e.isShowMonthlyInterestPayment?Zl({title:"Выплата процентов",...t("isMonthlyInterestPayment"),value:e.isMonthlyInterestPayment}):null,e.isShowRemoteRegistration?(l={title:"Оформление",...t("isRemoteRegistration"),value:e.isRemoteRegistration},ql({...l,items:[{id:"remote",text:"Дистанционно"},{id:"office",text:"Офис Банка"}]})):null]});var l},wn=e=>kn({...e,fieldKey:"isSalaryClient",viewSettingFieldKey:"isShowSalaryClient"})&&kn({...e,fieldKey:"isInsurance",viewSettingFieldKey:"isShowInsurance"})&&kn({...e,fieldKey:"isExtraMoney",viewSettingFieldKey:"isShowExtraMoney"}),kn=({row:e,userInputParams:t,paramsViewSettings:l,fieldKey:n,viewSettingFieldKey:a})=>!!l&&!l[a]||t[n]===e[n],Sn=(e,t,l)=>{let{moneyValue:n,monthsValue:a,oldMonthlyPayment:i,moneyExtra:s}=e;const o=_l(t||"refinancing-calculator-data"),c=o?.rateRows||[Tl],d=(({limitRows:e,userInputParams:t,paramsViewSettings:l})=>e?.find((e=>wn({row:e,userInputParams:t,paramsViewSettings:l}))))({limitRows:o?.limitRows||[],userInputParams:e,paramsViewSettings:l}),{minSum:m,maxSum:h}=Ul(["minSum","maxSum"],d,c),{minSumOld:u,maxSumOld:p}=Ul(["minSumOld","maxSumOld"],d,c),{minSumExtra:x,maxSumExtra:g}=Ul(["minSumExtra","maxSumExtra"],d,c),{minMonths:f,maxMonths:b}=Ul(["minMonths","maxMonths"],d,c);n=st(n,m,h),i=st(i,u,p),s=st(s,x,g),a=st(a,f,b);const v=(({rateRows:e=[],userInputParams:t,paramsViewSettings:l,moneyValue:n,monthsValue:a,oldMonthlyPayment:i,moneyExtra:r})=>e?.find((e=>wn({row:e,userInputParams:t,paramsViewSettings:l})&&Xl(n,["minSum","maxSum"],e)&&Xl(i,["minSumOld","maxSumOld"],e)&&Xl(r,["minSumExtra","maxSumExtra"],e)&&Xl(a,["minMonths","maxMonths"],e)))||Tl)({rateRows:c,userInputParams:e,paramsViewSettings:l,moneyValue:n,monthsValue:a,oldMonthlyPayment:i,moneyExtra:s}),{rate:y}=v,N=mn(y,e),w=e.oldMonthlyPayment-N;return r((()=>({...v,...e,minSum:m,maxSum:h,minMonths:f,maxMonths:b,moneyValue:n,monthsValue:a,oldMonthlyPayment:i,moneyExtra:s,monthlyPayment:N,benefit:w})),[e,o])},Cn=x((({className:e,sourceBookDir:t,buttons:l,footnote:n,paramsViewSettings:a})=>{const[i,{field:r}]=B({isAnnuity:!0,isInsurance:!0,isSalaryClient:!1,isExtraMoney:!1,moneyValue:7e5,oldMonthlyPayment:0,monthsValue:48,moneyExtra:0}),s=Sn(i,t,a);return p("section",{className:w("flex justify-between",e),children:[p("div",{className:"w-2/5",children:[zl({title:"Остаток долга в других банках, ₽ ",step:500,min:s.minSum,max:s.maxSum,...r("moneyValue"),value:s.moneyValue}),zl({title:"Ежемесячный платеж в других банках, ₽",isShowItems:!1,step:500,min:s.minSumOld,max:s.maxSumOld,...r("oldMonthlyPayment"),value:s.oldMonthlyPayment}),sn({title:"Новый срок кредита, месяцев",min:s.minMonths,max:s.maxMonths,...r("monthsValue"),value:s.monthsValue,className:"mt-2xl"}),u("div",{className:w("mt-7",s.isExtraMoney?"mb-3":""),children:In({...s,...a},r)}),s.isExtraMoney?zl({title:"Дополнительная сумма, ₽ ",step:500,min:s.minSumExtra,max:s.maxSumExtra,...r("moneyExtra"),value:s.moneyExtra}):null]}),u(Ml,{title:"Ставка",rate:s.rate,fractionDigits:1,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"w-96",children:[u(Sl,{title:"Ежемесячный платеж",value:s.monthlyPayment,postfix:"₽"}),s.benefit>0?u(Sl,{title:"Выгода в месяц",value:s.benefit,postfix:"₽"}):null,un({orientation:"vertical",...r("isAnnuity")}),Qt(l,{className:"mt-7",isVertical:!0}),Vl(n)]})]})})),In=(e,t)=>p("div",{children:[e.isShowSalaryClient?u(jt,{text:"Получаю зарплату на счёт в Россельхозбанке",...t("isSalaryClient"),value:e.isSalaryClient}):null,e.isShowInsurance?u(jt,{className:"mt-3",text:"Комплексная страховая защита",...t("isInsurance"),value:e.isInsurance}):null,e.isShowExtraMoney?u(jt,{className:"mt-3",text:"Получить дополнительную сумму",...t("isExtraMoney"),value:e.isExtraMoney}):null]}),Tn={CreditCalculatorForm:pn,DepositCalculatorForm:yn,BusinessDepositCalculatorForm:nn,BonusCalculatorForm:Al,RefinancingCalculatorForm:Cn},Bn=(e,t)=>{const l=e?.calcType;if(!l||!(l in Tn))return null;const n=Tn[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(I,{className:"text-center mb-6",title:e.title}):null,u(n,{...e})]})},String(t))},Rn=x((({className:e="",calculatorTabs:t=[],...l})=>{const a=t.map((e=>e.nav||{})),r=t.map((({calculatorBlock:e})=>e||{})),[s,o]=n(0),c=i((e=>o(e)),[]),[d,m]=vl({itemCount:t?.length,visibleItemCount:3});return p(S,{className:w("box-border overflow-hidden relative",e),defaultPadding:"p-0",...l,children:[p("div",{className:"bg-white",children:[a.length>1?Pn({activeIndex:d,tabsNav:a,slideIndexShift:s,onClick:c}):null,kl({...m,btnClass:["left-3","right-3"],className:"top-8"})]}),u("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:r?.length?r.map(Bn):null})]})}));function Pn({activeIndex:e,tabsNav:t,slideIndexShift:l,onClick:n}){return p("div",{children:[u("div",{style:{transform:`translateX(-${388*e}px)`},className:"flex flex-col justify-end items-center h-32 pt-4xl box-border duration-1000",children:u("div",{className:"w-full flex flex-nowrap items-end gap-xs",children:t.map(((e,t)=>function({tab:e,i:t,isActive:l,onClick:n}){const a=l?"h-20 w-96 p-xl border-none bg-primary-main text-white":"h-20 w-96 px-lg ease-in duration-300 bg-white text-primary-text",i=l?"text-xl mb-xs":"text-l mb-2xs",r=l?"text-l font-light text-white":"text-m font-light text-secondary-text",s=l?"":"text-primary-main",o=e?.icon?.iconVersion,c=l?"white":"normal";return p("button",{type:"button",onClick:n,"aria-label":e?.title,className:w("box-border relative border border-gray cursor-pointer text-left border-b-0 flex hover:h-20 space-x-m",a),children:[u(Vt,{className:w("h-6 w-6 min-w-6 min-h-6",s),image:{...e?.icon,iconVersion:o??c},width:"24",height:"24"}),p("div",{className:"border-0",children:[u("div",{className:i,children:e?.title}),u("div",{className:r,children:e.description})]})]},String(t))}({tab:e,i:t,isActive:Boolean(t===l),onClick:()=>n(t)})))})}),u("div",{className:"w-full h-2 bg-primary-main"})]})}const Mn=x((e=>{const{onChange:t,min:l,max:n,defaultValue:a="0",fractionDigits:r=0,...s}=e,o=rt(e,{normalize:(e=a)=>l&&n?String(st(Number(Vn(e)),l,n)):Vn(e),format:ot(r)}),c=i((e=>t&&t(Vn(e))),[t]);return u(pe,{onChange:c,...s,...o})})),Vn=(e="")=>e.replaceAll(",",".").replace(/[^\d.]/g,"").replace(/([^.]*\.[^.]*)\./,"$1"),zn=x((e=>u(Mn,{...e,fractionDigits:2,children:u("div",{className:"absolute right-4 bottom-4",children:u(me,{size:"text-xl",font:"font-light",children:"₽"})})}))),_n="amount",jn={[_n]:1500},An=x((({className:e="",title:t="Укажите сумму перевода",label:l="Сумма перевода",placeholder:n="1500",button:a,...i})=>{const[{amount:r},{field:s}]=B(jn),o=r<=0,c=o?ie({version:a?.version}):re({className:"text-white",version:a?.version}),d=J();return p(S,{className:w("flex flex-col items-center",e),defaultPadding:"p-6xl",...i,children:[t?u(I,{className:"pb-5 xl:pb-9 self-start xl:self-center",headingType:"h2",title:t}):null,p("form",{className:"w-full xl:max-w-[468px]",method:"POST",action:"https://www.rshb.ru/p2p/",children:[u(zn,{name:_n,valid:!o,placeholder:n,label:l,...s(_n,{parse:Number,format:String})}),a?.text?u("button",{type:"submit",className:w("w-full p-4 mt-5 xl:mt-6",c),disabled:o,...d(a),children:a.text}):null]})]})})),Dn=({blockClassName:e,block:t,render:l})=>l({blockClassName:e,block:t}),$n=[];function Ln(e,t,{className:l,...n}={}){const{key:a,blockDecorator:i=Dn,blocksRegistry:r={},ancestors:s=$n}=t,{type:o}=e;o&&o in r||console.warn(`No block with "${o}" is registered`);const c=o&&r[o];return i({blockClassName:w(e.style?.length?e.style:"col-span-12",l),block:e,ancestors:s,render:({block:l,blockClassName:i})=>{const{content:r}=l;return c?u(c,{className:i,block:e,options:t,...r,...n},a):null}},a)}const On=[],En=(e,{key:t,ancestors:l=On,slotName:n=null,extraProps:a,renderProps:i=Ln,...r})=>{const s=a?(e,t)=>Ln(e,t,a):i;return(e||[]).map(((e,a)=>s(e,{...r,key:`${t||e.type}-${a}`,ancestors:r.parent?[...l||On,[r.parent,n]]:l},a)))};function Fn({block:e,options:t,children:l,extraProps:n,renderProps:a}){return l||(e&&t?En(e.blocks,{...t,parent:e,extraProps:n,renderProps:a}):null)}const Un=e=>({height:"calc(100vh - 242px)",minHeight:`${e||866}px`}),Hn=x((({className:e="",style:t,idx:l,activeIndex:n,observerOptions:a,children:r,onIntersection:s})=>{const o=v(i((e=>{e.length&&s&&s(l||0,e[e.length-1])}),[s,l]),a);return u("div",{className:`inline-block snap-always box-border ${e}`,style:t,"aria-current":Boolean(l===n),ref:o,children:r})})),Xn=["min-w-full","@lg:min-w-[50%]","@lg:min-w-[33.3%]","@lg:min-w-[25%]"],Wn=x((({className:e="",containerRef:t,activeIndex:l,visibleItemCount:n=0,gap:a=0,padding:r=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([]),f=i(((e,t)=>{const l=[...g.current||[]];l[e]=t,g.current=l,h&&h(l),p&&p(Gn(l))}),[h,p]),b=n>0?a*Number(n)-1:0,v="vertical-list"===o,y="horizontal-list"===o,N={...y?Kn(r,b):{},...v?Un(d):{},gap:`${a}px`};return u("div",{className:w("box-border overflow-auto no-scrollbar",o,e),style:N,ref:t,children:(k=(e,t)=>u(Hn,{className:w(c,n?Xn[n-1]:"",v?"h-full":""),style:y?Kn(r/4):{},activeIndex:l,idx:t,observerOptions:x,onIntersection:f,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(k):k(e,0))(m)});var k})),Kn=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),Gn=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),Yn={"horizontal-list":"mx-auto mt-5 w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},Jn={"horizontal-list":"w-6","vertical-list":"h-6"},qn=x((({containerRef:e,activeIndex:t,dotCount:l=0,listType:n="horizontal-list",version:a})=>l?u("div",{className:w("flex gap-2",Yn[n],a?"group":""),...a?{"data-ver":a}:{},children:new Array(l).fill(null).map(((l,a)=>u("div",{className:`cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white group-data-transparent:bg-white ${a===t?Jn[n]:"w-2 h-2 opacity-30"}`,role:"button","aria-hidden":!0,onClick:()=>(l=>{l!==t&&e?.current&&e.current.children[l]?.scrollIntoView({behavior:"smooth",block:"nearest"})})(a)},String(a))))}):null)),Zn=e=>t=>e.scrollWidth/t,Qn=e=>(t,l)=>{e.scrollBy({left:l*Zn(e)(t),behavior:"smooth"})},ea=({itemCount:e,onVisibleIndicesChange:t})=>{const l=s(null),[a,r]=n([]),o=i((e=>{r((t=>{return(l=t)===(n=e)||Boolean(l&&n&&l?.length===n?.length&&l.every(((e,t)=>e===n[t])))?t:e;var l,n})),t&&t(e)}),[e]),[c,d]=a.length?[Ol()(a),$l()(a)]:[-1,-1],m=c>0,h=d<e-1,u=i((()=>{var t;l.current&&(m?Qn(l.current)(e,-1):(t=l.current).scrollTo({left:t.scrollWidth,behavior:"smooth"}))}),[e,m]),p=i((()=>{l.current&&(h?Qn(l.current)(e,1):l.current.scrollTo({left:0,behavior:"smooth"}))}),[e,h]);return[l,{scrollLeft:u,scrollRight:p,canScrollLeft:m,canScrollRight:h,visibleIndicesRange:[c,d],handleVisibleIndicesChange:o}]},ta="absolute top-[calc(50%-24px)] z-40",la="absolute top-0 bottom-0 z-40 hidden @lg:block w-20 pointer-events-none",na=x((({scroll:e,activeIndex:t,itemCount:l,arrowsPadded:n,hasEdgeBlocks:a,onScrollLeft:r,onScrollRight:s})=>{const{canScrollLeft:o,canScrollRight:c,scrollLeft:d,scrollRight:m}=e,h=a?t>0:o,x=a?t<l-1:c,g=i((()=>{a?(o&&t!==l-1&&d(),r()):d()}),[d,r,a,o,t,l]),f=i((()=>{a?(c&&0!==t&&m(),s()):m()}),[m,s,a,o,t,l]);return p("div",{className:"hidden @lg:block",children:[aa(e),h?u(Nl,{className:w(ta,n?"left-1 @lg:left-8":"left-0"),onClick:g}):null,x?u(wl,{className:w(ta,n?"right-1 @lg:right-8":"right-0"),onClick:f}):null]})})),aa=e=>p("div",{children:[e.canScrollLeft?u("div",{className:w(la,"left-0 bg-opacity-from-white group-data-secondary:bg-none")}):null,e.canScrollRight?u("div",{className:w(la,"right-0 bg-opacity-to-white group-data-secondary:bg-none")}):null]}),ia=x((({className:e,itemCount:t,visibleItemCount:l=0,noCardBorder:n,isAlignCenter:a,showDots:i,arrowsPadded:r=!0,isGap:s=!0,...o})=>{const{blocks:c=[]}=o.block||{},d=t||c?.length,[m,{inc:h,dec:x}]=vl({itemCount:d,visibleItemCount:l},Math.floor(l/2)),[g,f]=ea({itemCount:d}),[b]=f.visibleIndicesRange,v=c&&"CarouselBankHistoryCard"===c[0]?.type;return u(S,{className:e,defaultPadding:"p-6xl",...o,children:p("div",{className:w(a?"flex justify-center":"","relative max-w-full"),children:[u(Wn,{containerRef:g,visibleItemCount:l,snapAlign:"snap-start",gap:s?16:void 0,onVisibleIndicesChange:f.handleVisibleIndicesChange,children:Fn({...o,renderProps:(e,t,l)=>Ln(e,t,{className:w("h-full min-w-80 sm:min-w-96",n?"":"border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider"),blockIndex:l,isActive:m===l})})}),u(na,{scroll:f,arrowsPadded:r,onScrollLeft:x,onScrollRight:h,hasEdgeBlocks:v,activeIndex:m,itemCount:d}),i?u(qn,{containerRef:g,activeIndex:b,dotCount:d,listType:"horizontal-list"}):null]})})}));ia.childrenTypes=["CarouselCard","CarouselBankHistoryCard","CarouselCatalogCard","CarouselInvestmentCard","CarouselProductCard","CarouselProgramsCard","CarouselRecommendationCard","CarouselTariffsCard","CarouselRichTextCard","CarouselInvestmentCard","CarouselEventCard"];const ra=x((({className:e,title:t,description:l,blockIndex:n=0,isActive:a,...i})=>u(S,{className:w("relative flex h-[485px]",a?"w-[440px] z-10":"w-[340px]",e),defaultPadding:"p-0",...i,children:u("div",{className:w("basis-full self-center",sa(n)),children:a?u(al,{headlineVersion:"M",title:t,description:l,padding:"p-3xl",align:"text-left",className:"h-96 text-white shadow-dark-blue"}):u("div",{className:"h-[300px] flex justify-center items-center font-mohave text-title-large tracking-[-0.03em]",children:u("span",{className:oa(n),children:t})})})}))),sa=e=>["bg-primary-main","bg-green-light","bg-yellow-light"][e%3],oa=e=>["gradient-color-text-on-green","gradient-color-text-on-yellow","gradient-color-text-on-yellow"][e%3],ca="z-10 border border-solid w-full h-full",da=w(ca,"absolute hidden sm:block border-transparent"),ma=x((({className:e,title:t,description:l,button:n,...a})=>u(S,{className:w("sm:pl-12 sm:pb-9",e),defaultPadding:"p-0",...a,children:p("div",{className:"relative",children:[u("div",{className:w(da,"top-9 right-12 bg-green-dark")}),u("div",{className:w(da,"top-6 right-8 bg-green")}),u("div",{className:w(da,"top-3 right-4 bg-green-light")}),p("div",{className:w(ca,"relative p-10 bg-white border-green-light"),children:[u(al,{title:t,description:l,headlineVersion:"L",align:"text-left",isPadding:!1}),Qt([n],{className:"mt-6xl sm:justify-center",isVertical:!0})]})]})}))),ha={black:"bg-black",white:"bg-white"},ua=x((({className:e="",title:t,description:l,image:n,price:a,button:i,colors:r,...s})=>p(S,{className:w("flex flex-col justify-left",e),defaultPadding:"p-2xl",...s,children:[n?.src?u(Vt,{className:"flex justify-center mb-xl",image:n}):null,u(al,{title:t,description:l,headlineVersion:"XS",isPadding:!1,align:"text-left",className:"mb-m"}),r?.length?p("div",{className:"flex text-secondary-text mb-m",children:[u("div",{className:"mr-xs",children:u(me,{size:"text-s",align:"text-left",font:"font-light",children:"Цвета:"})}),r.map(pa)]}):null,a?p(me,{size:"text-h3",align:"text-left",children:[a," ₽"]}):null,Qt([i],{buttonClassName:"w-full mt-lg"})]}))),pa=(e,t)=>u("div",{role:"figure",className:`w-6 h-6 ml-s border border-solid border-main-divider rounded-full ${ha[e]}`},String(t)),xa=x((({className:e="",href:t,target:l,isRemote:n=!1,children:a})=>{const i=J({isRemote:n})({href:t,target:l});return u(t?"a":"div",{className:w("block",e),...t?i:{},children:a})})),ga=x((({className:e="",icon:t,title:l,description:n,href:a,target:i,...r})=>u(S,{className:e,defaultPadding:"p-0",...r,children:p(xa,{className:"flex flex-col",href:a,target:i,children:[t?.icon?u(Vt,{image:t}):null,t?.src?u(Vt,{image:t}):null,l?u(I,{headingType:"h6",as:"h4",className:"text-left mt-s ml-s mb-xs",title:l}):null,n?u("div",{className:"ml-s mb-m",children:u(me,{font:"font-light",size:"text-m",color:"text-secondary-text",children:n})}):null]})}))),fa={start:"self-start",center:"self-center",end:"self-end"},ba=x((({className:e,defaultPadding:t,padding:l,title:n="",insetTitle:a="",buttons:i,leftImage:r,rightImage:s,imageAlign:o,backImage:c,children:d})=>p("div",{className:w("relative flex flex-col gap-3xl font-sans overflow-hidden",l||t,e),children:[n?u("div",{className:"relative",children:n}):null,p("div",{className:"grow relative flex flex-wrap @xl:flex-nowrap justify-around @xl:justify-between items-stretch gap-3xl",children:[va(r,{imageAlign:o}),p("div",{className:w("flex flex-col gap-3xl max-w-[600px] xl:max-w-[728px]",r?"":"grow"),children:[a,u("div",{className:"grow",children:d}),c?u("div",{className:"mx-auto sm:absolute sm:-z-10 sm:-bottom-4 sm:-right-4",children:c}):null,i]}),va(s,{className:"-order-1 @xl:order-1",imageAlign:o})]})]}))),va=(e,{className:t,imageAlign:l})=>e?u("div",{className:w("flex-shrink-0",l&&fa[l],t),children:e}):null,ya={1:"flex-col",2:"gap-x-10 flex-wrap"},Na=x((({className:e,padding:t,additionalDescription:l,cardsList:n=[],columnsMode:a=1,description:i,image:r,title:s,...o})=>u(S,{className:w("text-left",e),padding:"p-0",...o,children:p(ba,{className:"h-full",defaultPadding:"p-xl",padding:t,title:s?u(I,{headingType:"h4",as:"h3",className:"mb-m z-10",title:s}):null,backImage:r?.src?u(Vt,{image:r}):null,children:[p("div",{className:"flex justify-between mb-4",children:[i?u("div",{className:"w-1/3",children:u(me,{size:"text-h6",children:i})}):null,l?u(me,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:l}):null]}),n.length?u("ul",{className:w("list-none m-0 p-0 flex gap-y-2",ya[a]),children:wa(n,a)}):null]})}))),wa=(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(me,{size:(n=t,1===n?"text-h6":"text-l"),children:e.parameter})}):null,e?.parameterDescription?u(me,{size:"text-m",font:"font-light",color:"text-secondary-text",children:e.parameterDescription}):null]},String(l));var n})),ka="bg-transparent border-white border h-[70px] absolute w-[316px] top-0",Sa=x((({text:e,href:t="",target:l="",className:n=""})=>{const a=J()({href:t,target:l});return e?p("div",{className:w("flex max-w-sm relative group/link cursor-pointer w-64 h-16 sm:w-[47%] sm:h-20 sm:mr-m",n),children:[p("a",{className:w("absolute border border-primary-main px-xl py-lg\n text-l font-light bg-white text-primary-text flex\n justify-between items-center group-hover/link:text-primary-main z-10","rounded-md sm:rounded-none w-full h-12 sm:ml-s sm:w-full sm:h-auto"),role:"link",...a,children:[u("div",{className:"p-0.5",children:e}),u("div",{className:"w-6 h-6 hidden sm:block",children:u(Vt,{className:"w-4 h-4 rounded-full box-border brightness-0 group-hover/link:brightness-100",image:{icon:"ArrowRightIcon",iconVersion:"black"},imageClassName:"group-hover/link:text-primary-main",width:"24",height:"24"})})]}),u("div",{className:ka+" hidden sm:block mx-1.5 mt-1.5"}),u("div",{className:ka+" hidden sm:block mt-3 mr-3"})]}):null})),Ca=x((({className:e,additionalDescription:t,description:l,links:n,title:a,maxLinksCount:i=10,...r})=>p(S,{className:w("flex flex-col sm:flex-row w-full overflow-hidden",e),...r,children:[p("div",{className:"mr-xl flex-auto",children:[u(al,{isPadding:!1,title:a,description:l,as:"h1",align:"text-left"}),t?u(al,{className:"pt-m",description:t,align:"text-left",isPadding:!1}):null]}),n?.length?Ia(n,i):null]}))),Ia=(e,t)=>{const l=Math.ceil(e.length/t);return u(ia,{className:"sm:w-2/3 w-full p-0 sm:p-2xl",version:"secondary",itemCount:l,arrowsPadded:!1,showDots:!0,children:new Array(l).fill(null).map(((l,n)=>u("div",{className:w("flex flex-wrap self-start sm:w-[672px] w-full sm:mx-5xl"),children:e.slice(n*t,(n+1)*t).map(((e,t)=>u(Sa,{className:"sm:m-2xs",...e},String(t))))},String(n))))})},Ta={L:"w-1.5 h-1.5 mr-m",M:"w-1.5 h-1.5 mr-s",S:"w-1 h-1 mr-xs"},Ba=x((({className:e,isDotted:t=!0,children:l,size:n="M"})=>p("div",{className:w("font-sans flex",e),role:"listitem",children:[t?u("div",{className:"shrink-0",children:u("div",{className:w("align-middle inline-block rounded-full bg-primary-text group-data-secondary:bg-white",Ta[n])})}):null,u("span",{children:l})]}))),Ra={S:"text-l font-light",M:"text-h6",L:"text-h5"},Pa={S:"ml-xs",M:"ml-s",L:"ml-m"},Ma=x((({className:e,hasIndent:t,isDotted:l,items:n,listItemSize:a="M"})=>n?.length?u("section",{className:w("flex flex-col gap-xs text-left text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text",Ra[a],t?Pa[a]:"",e),role:"list",children:n.map(((e,t)=>u(Ba,{isDotted:l,size:a,children:e},String(t))))}):null)),Va=x((({additionalDescription:e,align:t="text-center",button:l={},className:n="",description:a,headlineSmallVersion:i="H6",href:r,icon:s,isDotted:o=!0,isButtonFullWidth:c=!0,isImageFullWidth:d=!1,isTopPosition:m=!1,items:h=[],target:u,title:x,version:g="primary",...f})=>p(S,{className:w("flex flex-col justify-between",t,n),defaultPadding:"p-0",version:g,...f,children:[p(xa,{className:"p-m flex flex-col gap-xs",href:r,target:u,children:[_a(i,x),ja(a),Da(h,o,g),Aa(e),za(s,d,m)]}),Qt([l],{className:w("p-m pt-0",c?"":"self-center"),isVertical:c})]}))),za=(e,t,l)=>p("div",{className:w("flex gap-lg",l?"order-first":"order-last",t?"":"justify-center"),children:[e?.src?u(Vt,{className:"shrink-0",image:e}):null,e?.icon?u(Vt,{className:w("shrink-0",t?"":"w-8 h-8 min-w-8"),image:e}):null]}),_a=(e,t)=>t?u(me,{size:nl[e],children:t}):null,ja=e=>e?u(de,{size:"text-l",children:e}):null,Aa=e=>e?u(me,{size:"text-m",font:"font-light",color:"text-secondary-text group-data-secondary:text-white/80",children:e}):null,Da=(e,t,l="primary")=>e?.length?u(Ma,{className:w("text-s","primary"===l?"!text-secondary-text":""),items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:t,listItemSize:"S"}):null,$a=(e=[])=>e.reduce(((e,t)=>e+t),0),La=(e=[])=>e?.length?$a(e)/e.length:0,Oa=(e,t="normal")=>e?u("div",{className:w("w-12 h-12 min-w-12 box-border flex items-center justify-center rounded-icon","normal"===t?"bg-secondary-light text-primary-main":"bg-primary-main text-black group-data-secondary:bg-white/30 group-data-secondary:text-black"),children:u(Vt,{className:"w-6 h-6",image:{...e,iconVersion:e.iconVersion||t}})}):null,Ea=x((e=>{const{__html:t="",richVersion:l=""}=e;return u("div",{className:w(l,"md-container"),dangerouslySetInnerHTML:{__html:t}})})),Fa=(e,t)=>e?u(de,{font:"font-light",size:"text-m",color:"text-secondary-text group-data-secondary:text-white",children:e},`description-${t}`):null,Ua=(e,t)=>e?u(me,{color:"text-primary-text group-data-secondary:text-white",size:"text-h6",children:e},`label-${t}`):null,Ha=(e,t)=>"rte"===e.type&&"__html"in e&&e.__html?u(Ea,{...e},`rte-${t}`):["label"in e?Ua(e.label,t):null,"description"in e?Fa(e.description,t):null],Xa=x((({className:e,benefitsVersion:t,...l})=>p("div",{className:w("flex gap-m","description"in l&&l.description?"items-start":"items-center",e),children:["icon"in l?Oa(l.icon,t):null,u("div",{children:Ha(l)})]}))),Wa=e=>"rte"===e.type?e?.__html?.length||0:Math.max(e?.label?.length||0,e?.description?.length||0),Ka=e=>{return((t=e.map(Wa))?.length?Math.sqrt(Math.abs(La(t.map((e=>e**2)))-La(t)**2)):0)>16;var t},Ga=e=>e&&"icon"in e&&e.icon&&(e.icon.icon||e.icon.src),Ya=e=>!e.some(Ga),Ja=x((({className:e,benefitsVersion:t="normal",benefits:l})=>l?.length?u("div",{className:w("flex gap-x-m gap-y-s",Ka(l)||Ya(l)?"flex-col":"flex-wrap",e),children:l.map(((e,l)=>u(Xa,{benefitsVersion:t,...e},String(l))))}):null)),qa=x((({className:e,benefits:t})=>t?.length?u("div",{className:w("grid grid-cols-[max-content_1fr] auto-rows-auto items-baseline gap-x-m gap-y-xs",e),children:t.flatMap(Ha)}):null)),Za=x((({isTabularBenefits:e,...t})=>u(e?qa:Ja,{...t}))),Qa=x((({className:e,tags:t})=>t?.length?u("div",{className:w("flex flex-wrap gap-xs",e),role:"list",children:t.map(ei)}):null)),ei=(e,t)=>u("div",{className:"py-2 px-2.5 border-solid border rounded-md border-gray",role:"listitem",children:u(me,{size:"text-m",font:"font-light",children:e})},String(t)),ti=x((({className:e,padding:t,defaultPadding:l,title:n,description:a,headlineVersion:i="L",align:r="text-left",isInsetTitle:s=!0,benefitsVersion:o,isTabularBenefits:c,benefits:d,__html:m,items:h,isDotted:x=!0,listItemSize:g,tags:f,buttons:b,image:v,imageOptions:{imageAlign:y="end",directionRight:N=!0,isBackground:w}={},children:k})=>{const S=v?.src?u(Vt,{image:v}):null,C=u(al,{title:n,description:a,headlineVersion:i,align:r,isPadding:!1});return u(ba,{className:e,padding:t,defaultPadding:l,...s?{insetTitle:C}:{title:C},...w?{backImage:S}:li(S,N),imageAlign:y,buttons:Qt(b),children:p("div",{className:"flex flex-col gap-xl",children:[u(Za,{benefitsVersion:o,isTabularBenefits:c,benefits:d}),m?u(Ea,{__html:m}):null,h?.length?u(Ma,{items:h,isDotted:x,listItemSize:g}):null,k,f?.length?u(Qa,{tags:f}):null]})})})),li=(e,t)=>t?{rightImage:e}:{leftImage:e},ni=x((({className:e,title:t,icon:l,list:n,href:a,target:i,...r})=>u(S,{className:e,defaultPadding:"p-3xl",...r,children:u(xa,{className:"flex items-center h-full",href:a,target:i,children:u(ti,{title:t,headlineVersion:"XS",image:l,imageOptions:{directionRight:!1,imageAlign:"center"},benefits:n?.map((e=>({type:"default",label:e.title,description:e.description})))})})}))),ai={default:"w-14 h-14",stretched:"flex-1 h-14"},ii=(e,t)=>e?"":w("group/media flex items-center justify-center box-border",ai[t]),ri=[{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"}],si=x((({buttonSize:e="default",rounded:t=!1,icon:l,...n})=>{const{href:a,version:i,text:r=""}=n,{iconMapped:s,label:o}=(e=>ri.find((({origins:t})=>t?.some((t=>e?.includes(t)))))||{})(a),c=oi(l)??s;return u(se,{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",ii(r,e)),"aria-label":o,rel:"noopener noreferrer",target:"_blank",text:r,version:i,...n,children:c&&!r?u(Vt,{image:c,imageClassName:"group-hover/media:text-white",width:"24",height:"24"}):null})})),oi=e=>e?.src||e?.icon?e:void 0,ci=x((({className:e="",media:t,children:l,buttonSize:n})=>p("div",{className:"flex flex-col sm:flex-col-reverse gap-xs",children:[l?u(me,{size:"text-s",font:"font-light",color:"text-secondary-text",children:l}):null,u("div",{className:w("flex gap-xs",e),children:t?.map(((e,t)=>u(si,{buttonSize:n,...e},String(t))))})]}))),di=x((({className:e,padding:t,description:l,href:n,icon:a,items:i=[],socialMedia:r=[],target:s,title:o,align:c="text-left",...d})=>u(S,{className:w("relative min-h-[218px] group-data-gray:bg-main-divider/50",e),defaultPadding:"p-0",...d,children:u(xa,{href:n,target:s,className:"h-full",children:u(ba,{className:"h-full",defaultPadding:"p-m",padding:t,title:o?u(al,{title:o,description:l,headlineVersion:"S",isPadding:!1,align:c}):null,backImage:a?.icon||a?.src?u(Vt,{image:a}):null,buttons:r.length?u(ci,{media:r}):null,children:i.length?u(Ma,{items:i,listItemSize:"S"}):null})})}))),mi=x((({className:e="",__html:t,richVersion:l="striped",...n})=>u(S,{className:e,...n,children:u(Ea,{__html:t,richVersion:l})}))),hi=x((({className:e="",isFoldButtonOnTop:t=!1,unfoldedByDefault:l=!1,renderFoldableSection:a,renderFoldButton:r})=>{const[s,o]=n(l),c=i((()=>{o((e=>!e))}),[]),d=a({isUnfolded:s,onToggle:c}),m=r?r({isUnfolded:s,onToggle:c}):null;return p("div",t?{className:e,children:[m,d]}:{className:e,children:[d,m]})})),ui=x((({className:e="",isUnfolded:t,children:l})=>{const n=s(null);return a((()=>{n.current&&(n.current.style.maxHeight=t?`${n.current.scrollHeight}px`:"")}),[t,l?.length]),u("div",{ref:n,className:`transition-max-h duration-300 overflow-hidden ${n.current||!t?"max-h-0":""} ${e}`,children:l})})),pi=(e=!1)=>e?"p-8 mt-8 pt-20":"p-8 mt-20",xi=(e,t)=>{const{title:l,description:n,buttons:a}=e;return p("div",{className:"py-5 border-b border-main-divider",children:[l?u("div",{className:"opacity-80",children:u(me,{size:"text-m",color:"text-secondary-text",children:l})}):null,n?u("div",{className:"mt-1",children:u(me,{size:"text-xl",color:"text-primary-text",children:n})}):null,a?.length?u("div",{className:"text-primary-main",children:Qt(a)}):null]},String(t))},gi=x((({className:e="",title:t,align:l="text-center",icon:n,isHighlighting:a=!1,button:i,cardCells:r=[],...s})=>{const o=r.map(xi),c=o.slice(0,1),d=o.slice(1);return p(S,{className:w("relative flex flex-col",e),defaultPadding:pi(a),...s,children:[a?vi():null,fi(n),t?u(I,{className:w("pt-xs",l),headingType:"h5",title:t}):null,i?u(se,{className:"w-full mt-m",...i}):null,r.length?u(hi,{renderFoldableSection:({isUnfolded:e})=>p("div",{children:[c,u(ui,{isUnfolded:e,children:d})]}),renderFoldButton:r.length>1?bi:null}):null]})})),fi=e=>u("div",{className:"basis-full self-center",children:e?.src||e?.icon?u(Vt,{image:e}):null}),bi=({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(je,{className:"text-primary-text",name:e?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16"})]}),vi=()=>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(je,{iconVersion:"black",name:"HeartIcon",width:"23",height:"22"}),u(de,{size:"text-s",font:"font-normal",align:"text-center",color:"text-primary-text",children:"ХИТ"})]}),yi="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",Ni="border-gray border-solid border",wi="border-main-divider border border-t-0 border-x-0",ki="w-[200px] mr-6",Si=x((({icon:e,image:t,title:l,link:n})=>p("div",{className:`w-80 box-border flex flex-col gap-m items-center rounded-t-md border-b-0 p-2xl ${Ni} ${yi}`,role:"columnheader",children:[e&&!t?.src&&u(Vt,{className:"h-16 w-16 min-w-16 min-h-16",image:e,width:"64",height:"64"}),t?.src&&u(Vt,{image:t}),l?u(I,{headingType:"h4",as:"h3",className:"text-center text-white",title:l}):null,n?.text&&u("div",{className:"mt-auto w-full",children:u(se,{href:n.href,target:n.target,className:"w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:u("div",{className:"text-xs font-light font-medium py-s",children:n.text})})})]}))),Ci={comparison:"flex gap-4 duration-1000",tariff:"flex flex-grow duration-1000"},Ii=x((({children:e,activeIndex:t,columnWidth:l,version:n="comparison"})=>u("div",{className:"flex flex-1 overflow-hidden",children:u("div",{className:Ci[n],style:{transform:`translateX(-${t*l}px)`},children:e})}))),Ti=x((({children:e})=>u("div",{className:"self-start flex flex-col",role:"row",children:u("div",{className:"flex",children:e})}))),Bi=x((({colHeaders:e,activeIndex:t})=>p(Ti,{children:[u("div",{className:ki,role:"columnheader"}),u(Ii,{activeIndex:t,columnWidth:336,children:e.map(((e,t)=>u(Si,{...e},String(t))))})]}))),Ri=x((({cell:e,isFirstRow:t,isLastRow:l,isFillGradient:n})=>u("div",{className:`w-80 box-border flex flex-col ${Ni} ${l?"border-t-0 rounded-b-md":"border-y-0"} ${n?yi:""}`,role:"cell",children:u("div",{className:`mx-7 h-full ${wi} ${n&&t?"border-t":""} ${l?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>Vi(e,t,n)))})}))),Pi=(e=!1)=>"text-xl m-0 "+(e?"text-white":""),Mi=(e=!1)=>"text-s opacity-80 "+(e?"text-white":"text-secondary-text"),Vi=({label:e,description:t},l,n)=>p("div",{className:"first:pt-2xl pt-xl last:pb-2xl",children:[e?u("h4",{className:Pi(n),children:e}):null,t?u("div",{className:Mi(n),children:t}):null]},String(l)),zi=(e=!1)=>`text-s py-7 ${wi} w-[200px] mr-6 ${e?"border-b-0":"border-solid"}`,_i=x((({row:{header:e,data:t},activeIndex:l,isColoredFirstColumn:n,isFirstRow:a,isLastRow:i})=>p(Ti,{children:[e?.title?u("div",{className:zi(i),children:e.title}):null,t?.length?u(Ii,{activeIndex:l,columnWidth:336,children:t.map(((e,t)=>u(Ri,{cell:e,isFirstRow:a,isLastRow:i,isFillGradient:n&&0===t},String(t))))}):null]}))),ji=x((({rowData:e,isColoredFirstColumn:t,activeIndex:l,controls:n})=>{const{isScrollAvailable:a}=n;return p("div",{className:"relative",children:[e.map(((e,n,{length:a})=>u(_i,{row:e,isFirstRow:0===n,isLastRow:n+1===a,activeIndex:l,isColoredFirstColumn:t},String(n)))),a?kl({...n,btnClass:["top-28","top-12"],className:"right-7",isDisabled:!0}):null]})})),Ai=x((({columns:e=[],rowHeaders:t,isShowAllRow:l,visibleRowLength:n,isColoredFirstColumn:a})=>{const i=e?.map((({header:e})=>e||{})),r=e?.map((({data:e})=>e))||[],s=t?.map(((e,t)=>({header:e,data:r.map((e=>e?.[t]||[{}]))}))).slice(0,l?t.length:n),[o,c]=vl({itemCount:e.length,visibleItemCount:3}),{isScrollAvailable:d}=c;return p("div",{children:[p("div",{role:"table",children:[i?.length?u(Bi,{colHeaders:i,activeIndex:o}):null,s?.length?u(ji,{rowData:s,isColoredFirstColumn:a,activeIndex:o,controls:c}):null]}),d?u("div",{className:"absolute top-0 right-0 bottom-0 w-20 bg-opacity-to-white"}):null]})})),Di=x((({className:e="",title:t,rowHeaders:l,columns:a,visibleRowLength:r=0,isColoredFirstColumn:s=!1,...o})=>{const[c,d]=n(!r),m=i((()=>d((e=>!e))),[]);return p(S,{className:w("overflow-hidden relative",e),defaultPadding:"p-6xl",...o,children:[u(I,{headingType:"h2",className:"max-w-[47rem] text-center mb-9 mx-auto",title:t}),u(Ai,{columns:a,rowHeaders:l,isShowAllRow:c,isColoredFirstColumn:s,visibleRowLength:r}),r?$i({isShowAllRow:c,onClick:m}):null]})})),$i=({isShowAllRow:e,onClick:t})=>u("div",{className:"pr-6xl",children:p("div",{className:"flex w-full",children:[u("div",{className:ki}),u("button",{onClick:t,className:"mt-m py-xs flex-1 border-gray border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main",children:u(me,{size:"text-xs",font:"font-medium",children:e?"Скрыть":"Показать все параметры"})})]})}),Li=x((({className:e,contacts:t,info:l,version:n="secondary",...a})=>p(S,{className:w("flex",e),defaultPadding:"p-6xl",version:n,...a,children:[l?.length?Oi(l):null,t?.length?Oi(t):null]}))),Oi=e=>u("div",{className:"flex grow basis-0",children:e.map(((e,t)=>Ei({column:e,index:t})))}),Ei=({column:e,index:t})=>e?u("div",{className:"flex flex-col grow basis-0 pr-11 last:pr-0",children:e.map((({title:e="",description:t,additionalDescription:l,button:n},a)=>p("div",{className:"mt-xl first:mt-0",children:[u(al,{title:e,description:t,headlineVersion:"XS",align:"text-left",isPadding:!1}),l?u("div",{className:"mt-xs opacity-80",children:u(de,{size:"text-m",font:"font-light",children:l})}):null,n?.href?u(se,{className:"mt-xl",...n}):null]},String(a))))},`col-${String(t)}`):null,Fi=e=>null==e||""===e||Array.isArray(e)&&0===e.length||"object"==typeof e&&0===Object.keys(e).length,Ui=(e,t)=>Object.entries(e).map((([t,l])=>"number"==typeof l?((e,t)=>l=>Fi(t[e])||Fi(l[e])||Hi(t[e])<=Hi(l[e]))(t,e):"object"==typeof l&&"min"in l&&"max"in l?((e,t)=>l=>Fi(t[e])||Fi(l[e])||Hi(t[e]?.min)>=Hi(l[e]?.min)&&Hi(t[e]?.min)<=Hi(l[e]?.max))(t,e):Array.isArray(l)?((e,t)=>l=>Fi(t[e])||Fi(l[e])||t[e]?.some((t=>l[e]?.includes(t))))(t,e):((e,t)=>l=>Fi(t[e])||Fi(l[e])||t[e]===l[e])(t,e))).every((e=>e(t))),Hi=e=>Number(e||0),Xi=x((({className:e="",label:t,icon:l,dataTheme:n="",disabled:a=!1,onClick:i})=>p("button",{className:w("flex justify-center w-full px-0 py-4 border border-transparent outline-none focus:border-primary-text",a?"bg-main-divider text-main-disabled hover:bg-main-divider":"bg-primary-main text-white hover:bg-primary-hove",e),onClick:i,disabled:a,"data-theme":n,children:[u("span",{className:"text-h4 pr-3",children:t}),l?u(Vt,{image:{icon:l,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20"}):null]}))),Wi=({isUnfolded:e,onToggle:t})=>u(Xi,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:["Развернуть","Скрыть"][Number(e)],onClick:t}),Ki=["ArrowDownIcon","ArrowUpIcon"],Gi="grid grid-cols-12 gap-1 border-box",Yi=x((({label:e="",filtrationState:t={},topItemsCount:l=0,block:n,notFound:a,...i})=>{const r=n?.blocks?.filter((e=>Ui(t,e.content||{})))||[],[s,o]=l>0?[r.slice(0,l),r.slice(l)]:[r,[]];return p("div",{children:[u("div",{className:w(r.length?"hidden":"block"),children:a?Ji(a):null}),p("div",{className:w(r.length?"":"hidden"),children:[u("div",{className:w("mb-2xs",Gi),children:En(s,{...i.options,parent:n})}),u(hi,{renderFoldableSection:({isUnfolded:e})=>u(ui,{className:w(Gi,e?"mb-2xs":""),isUnfolded:e,children:En(o,{...i.options,parent:n})}),renderFoldButton:({isUnfolded:t,onToggle:n})=>u(Xi,{className:w(l<1?"hidden":""),disabled:!o?.length,label:e,icon:Ki[Number(t)],dataTheme:i.options?.page?.colorPalette,onClick:n})})]})]})}));function Ji({title:e,description:t}){return p("div",{className:"bg-white py-20",children:[e?u("div",{className:"mb-xs",children:u(de,{align:"text-center",children:u(me,{size:"text-h4",children:e})})}):null,t?u(de,{size:"text-xl",font:"font-light",align:"text-center",children:t}):null]})}const qi=x((({value:e,onChange:t,items:l=[],multiple:n})=>l.map((l=>u(He,{text:l.title,value:[e].flatMap((e=>e)).includes(l.value),onChange:()=>(l=>{if(t)if(n){const n=e?.includes(l);t(n?(e||[]).filter((e=>e!==l)):[...e||[],l])}else t(e===l?"":l)})(l.value),type:n?"checkbox":"radio"},l.value))))),Zi=({field:e,reset:t,filtrationSchema:l,resetButton:n,children:a})=>p("form",{className:"flex justify-between bg-white p-4xl mb-2xs",children:[p("div",{className:"flex gap-5xl",children:[a,Object.entries(l).map(Qi(e))]}),n?u("div",{children:u(se,{className:"w-72 ml-s",onClick:t,...n})}):null]}),Qi=e=>([t,l])=>{const n=l?.type;return"array"===n?er(t,e)(l):null},er=(e,t)=>l=>{const n=l?.items?.enum?.map(((e,t)=>({value:e,title:l?.items?.enumNames?.[t]||""})))||[];return p("div",{children:[l?.title?u("div",{className:"mb-m",children:u(me,{size:"text-m",font:"font-light",color:"text-secondary-text",children:l.title})}):null,u(qi,{items:n,multiple:!0,...t(e)})]},e)},tr={sum:500,period:{min:3,max:36}},lr=x((({className:e,filtrationSchema:t={},resetButton:l,sumInput:n,periodInput:a,...i})=>{const[r,{field:s,reset:o}]=B(tr),c=a?.max||36,d=p("div",{children:[u(zn,{label:n?.title,min:500,max:1e9,...s("sum",{parse:Number,format:String})}),u(ut,{title:a?.title,items:["От 3 мес","До 3 лет"],min:a?.min||3,max:c,...s("period",{parse:e=>({min:e,max:c}),format:({min:e})=>e})})]});return p(S,{className:w(e),defaultPadding:"p-0",version:"transparent",...i,children:[Zi({field:s,reset:o,filtrationSchema:t,resetButton:l,children:d}),u(Yi,{filtrationState:r,...i})]})}));lr.childrenTypes=["ProductTile"],lr.childSchema=e=>e?.filtrationSchema||{};const nr=e=>"Image"===e?.errorContentType&&e?.image?u(Vt,{image:e.image}):"Code"===e?.errorContentType&&e.code?u("div",{className:"font-mohave text-title-extra gradient-color-text",children:e.code}):null,ar=x((({className:e="",title:t,subtitle:l,error:n,button:a,...i})=>{return p(S,{className:w("flex flex-col justify-center items-center",e),defaultPadding:(r=a?.text,r?"py-20 pt-3 pb-1":"mb-16 pb-2 mt-24 pt-3"),version:"transparent",...i,children:[u("div",{className:"flex justify-center py-20",children:nr(n)}),t?u(I,{headingType:"h1",className:"text-left mb-4",title:t}):null,l?u("div",{className:"mb-7 max-w-[613px] text-center",children:u(me,{size:"text-xl",font:"font-light",children:l})}):null,a?.text?u(se,{className:"py-4 px-9",version:a?.version,...a,children:a.text}):null]});var r}));var ir;!function(e){e.EUR="EUR",e.USD="USD",e.GBP="GBP",e.AUD="AUD",e.CNY="CNY",e.RUB="RUB"}(ir||(ir={}));const rr={USD:"DollarIcon",EUR:"EuroIcon",GBP:"DollarIcon",AUD:"DollarIcon",CNY:"DollarIcon",RUB:"RoundRubleIcon"},sr=e=>e?dr.format(e):"",or=(e,t)=>p("td",{className:"pt-m pl-5xl",children:[u("div",{children:sr(e)}),u("div",{className:w("font-normal text-sm text-secondary-text",(t||0)>=0?"text-green":"text-red"),children:sr(t)})]}),cr=(e,t="")=>p("td",{className:"pt-m pl-5xl",children:[u("div",{children:sr(e)}),u("div",{className:"font-normal text-sm text-green",children:t})]}),dr=new Intl.NumberFormat("ru",{style:"currency",currency:ir.RUB}),mr=e=>u("th",{className:"pl-5xl",children:u(me,{size:"text-m",font:"font-light",align:"text-left",color:"text-secondary-text",children:e})}),hr=x((({className:e,currencies:t=[],actuality:l="",officeName:n="",...a})=>{const i=ur(t,4);return p(S,{className:w("space-y-3xl",e),...a,children:[p("div",{className:"flex flex-row flex-grow-0 justify-between space-y-lg",children:[u(I,{headingType:"h4",title:"Курс обмена валют в "+n,className:"whitespace-pre-wrap text-h4"}),u("div",{className:"pl-6xl",children:u(me,{size:"text-m",font:"font-light",align:"text-left",color:"text-secondary-text",children:l})})]}),u("div",{className:"flex flex-row pt-m text-left",children:i.length>0?p("table",{className:w("h-fit w-fit",e),children:[u("thead",{children:p("tr",{children:[u("th",{children:u(me,{size:"text-m",font:"font-light",align:"text-left",color:"text-secondary-text",children:"Валюта"})}),mr("Купить"),mr("Продать"),mr("Лучшая покупка"),mr("Лучшая продажа")]})}),u("tbody",{children:i.map((e=>(({title:e,buyPrice:t,buyDifference:l,sellPrice:n,sellDifference:a,buyOfficeName:i,sellOfficeName:r})=>p("tr",{className:"pb-1 text-h6",children:[u("td",{className:"pt-4",children:p("div",{className:"flex items-center",children:[e?u(Vt,{image:{icon:rr[e]},width:"24",height:"24"}):null,u("span",{className:"ml-xs",children:e})]})}),or(t,l),or(n,a),cr(t,i),cr(n,r)]},e))(e)))})]}):null})]})})),ur=(e,t)=>e.sort(((e,t)=>Number(e.id)-Number(t.id))).slice(0,t);var pr;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(pr||(pr={}));const xr=new Intl.NumberFormat("ru",{style:"currency",currency:pr.RUB}),gr=e=>e?xr.format(e):"",fr="text-left text-m font-light text-secondary-text",br=`${fr} pl-5xl`,vr={USD:"DollarIcon",EUR:"EuroIcon"},yr=x((({className:e,exchangeCurrencyItems:t})=>p("table",{className:`h-fit w-fit ${e}`,children:[u("thead",{children:p("tr",{children:[u("th",{className:fr,children:u(me,{size:"text-m",children:"Валюта"})}),u("th",{className:br,children:u(me,{size:"text-m",children:"Купить"})}),u("th",{className:br,children:u(me,{size:"text-m",children:"Продать"})})]})}),u("tbody",{children:t.map(Nr)})]}))),Nr=e=>{const t=e?.currency?.currency;return p("tr",{className:"pb-2xs text-h6",children:[u("td",{className:"pt-m",children:p("div",{className:"flex items-center",children:[t?u(Vt,{image:{icon:vr[t]},width:"24",height:"24",className:"mr-2"}):null,u(me,{size:"text-h6",children:t})]})}),u("td",{className:"pt-m pl-5xl",children:u(me,{size:"text-h6",children:gr(e?.saleExchangeRate)})}),u("td",{className:"pt-m pl-5xl",children:u(me,{size:"text-h6",children:gr(e?.buyExchangeRate)})})]},t)},wr={icon:"GpsIcon"},kr=x((({className:e="",address:t})=>p("div",{className:`flex gap-s ${e}`,children:[u(Kt,{...wr,iconBgVersion:"primary"}),p("div",{className:"space-y-2xs",children:[t?u("p",{className:"text-primary-main text-l",children:t}):null,u("p",{className:"text-secondary-text text-m",children:"Курс указан для заданного офиса"})]})]}))),Sr=(e,t,l)=>{const n=Number(Cr(e))*Math.pow(t,l?-1:1);return Number.isInteger(n)?n:((e,t=2)=>{const l=10**t;return Math.round(parseFloat(String(e))*l)/l})(n)},Cr=e=>e.replace(/[^\d.,]/g,"").replace(",","."),Ir=e=>{return(t=[[e=>e.value!==pr.RUB&&e.oppositeValue!==pr.RUB,()=>e.handleConvert(e.value,pr.RUB)],[e=>e.value===pr.RUB&&e.oppositeValue===pr.RUB,()=>e.handleConvert(e.value,pr.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,l]=t.find((([t])=>t(e)))||[];return l})(e)?.();var t};function Tr(e){const{placeholder:t,rates:l,selected:n,value:a,setValue:i,setSelected:r}=e,s=l.map((e=>({key:e?.currency?.currency??"",text:e?.currency?.currency??""}))),o={key:n,text:n};return p("div",{className:"relative flex",children:[u(pe,{className:"shrink-0 text-l w-full appearance-none mr-[-90px]",placeholder:t,type:"text",value:a,onChange:i}),s.length?u($e,{isBorder:!1,onChange:e=>r(e.key),options:s,value:o}):null]})}const Br=x((({className:e="",currencyRatesBuy:t,currencyRatesSell:l,button:a})=>{const[r,s]=n({inputSell:"",inputBuy:"",selectSell:t?.[0]?.currency?.currency||pr.RUB,selectBuy:l?.[0]?.currency?.currency||pr.USD}),o=i((e=>s((t=>({...t,...e})))),[]);return p("div",{className:`grid gap-m pt-2xl ${e}`,children:[Tr({placeholder:"Хочу продать",rates:l,selected:r.selectSell,setSelected:Rr(r,o,l),value:r.inputSell,setValue:e=>Mr(o,l)(e,r.selectSell,r.selectBuy)}),Tr({placeholder:"Получу",rates:t,selected:r.selectBuy,setSelected:Pr(r,o,t),value:r.inputBuy,setValue:e=>Vr(o,t)(e,r.selectBuy,r.selectSell)}),a?.text?u(se,{className:"py-4",version:a?.version,...a,children:a.text}):null]})})),Rr=(e,t,l)=>n=>{t({selectSell:n}),Ir({value:n,oppositeValue:e.selectBuy,handleConvert:(n=e.selectSell,a=e.selectBuy)=>{Mr(t,l)(e.inputSell,n,a)}})},Pr=(e,t,l)=>n=>{t({selectBuy:n}),Ir({value:n,oppositeValue:e.selectSell,handleConvert:(n=e.selectBuy,a=e.selectSell)=>Vr(t,l)(e.inputBuy,n,a)})},Mr=(e,t)=>(l,n,a)=>{e({inputSell:Cr(l),selectBuy:a});const i=t.find((e=>e.currency?.currency===a))?.buyExchangeRate||t.find((e=>e.currency?.currency===n))?.saleExchangeRate;i&&e({inputBuy:String(Sr(l,i,n===pr.RUB)||"")})},Vr=(e,t)=>(l,n,a)=>{e({inputBuy:Cr(l),selectSell:a});const i=t.find((e=>e.currency?.currency===a))?.saleExchangeRate||t.find((e=>e.currency?.currency===n))?.buyExchangeRate;i&&e({inputSell:String(Sr(l,i,n===pr.RUB)||"")})};const zr=async e=>{const t=await _r(),l=t?.code||"000";return{region:t,exchangeRates:await jr(e,l)}},_r=async()=>{try{return await D("/api/v1/region",{method:"GET"})}catch(e){return console.log(e),{}}},jr=async(e,t)=>{try{return await D(e+`?regionCode=${t}`,{method:"GET"})}catch(e){return console.log(e),{}}},Ar=x((({className:e="",title:t="Курсы обмена валют",button:l,...n})=>{const{exchangeRates:a}=function(){const{data:e}=_("/api/v1/exchangerates",zr);return e||{}}(),i=Dr(a?.exchangeRate?.currencies),r=i.filter((e=>e.buyExchangeRate));r.unshift({currency:{currency:pr.RUB}});const s=i.filter((e=>e.saleExchangeRate));return s.push({currency:{currency:pr.RUB}}),u(S,{className:w("box-border min-h-80",e),...n,children:u(ba,{className:"h-full",title:u(I,{headingType:"h4",title:t,className:"whitespace-pre-wrap"}),children:p("div",{className:"flex gap-6xl flex-wrap",children:[p("div",{children:[i?u(yr,{className:"mb-xl",exchangeCurrencyItems:i}):null,u(kr,{address:a?.address})]}),i.length&&r.length&&s.length?u(Br,{className:"grow",currencyRatesBuy:r,currencyRatesSell:s,button:l}):null]})})})})),Dr=e=>e?.filter((e=>1===e?.currency?.id||2===e?.currency?.id))||[],$r=e=>Ct(d.SITEMAP||"sitemap",e),Lr={"bg-white":"color",transparent:"white"},Or={"bg-white":"text-primary-main",transparent:"text-white"},Er=(e,t,l)=>u(Vt,t?.src?{image:t,className:Or[e],width:l?.width,height:l?.height,pathPrefix:"/wcms-resources/"}:{image:{icon:t?.icon||"LogoIcon",iconVersion:Lr[e]},className:Or[e],width:l?.width,height:l?.height}),Fr={"bg-white":"text-primary-text",transparent:"text-white"},Ur=(e,t,l)=>u("span",{className:`${Fr[t]} ml-s font-medium ${l||""}`,children:e||"Россельхозбанк"}),Hr=x((({className:e="",href:t="/",logo:l,children:n=l?.title,targetBlank:a,bgColor:i="bg-white",showTitle:r=!0})=>p("a",{className:w("inline-flex items-center font-sans no-underline",e),href:t,target:a?"_blank":"_self","aria-label":l?.title||"Россельхозбанк",children:[Er(i,l?.image,{width:"40",height:"45"}),r?Ur(n||l?.title,i):null]}))),Xr=x((({className:e,onClose:t})=>u("button",{className:w("flex justify-center items-center w-12 h-12 p-1 bg-transparent border-none",e),onClick:t,title:"Закрыть",children:u(Vt,{image:{icon:"CloseIcon"},width:"24",height:"24"})}))),Wr=x((({className:e,value:t,autoFocus:l,onChange:n,onFocus:a})=>{const r=i((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-m pointer-events-none",children:u(Vt,{image:{icon:"LoupeIcon"},width:"24",height:"24"})}),u("input",{className:w("h-12 pl-12 w-full text-l text-black outline-none box-border","border border-solid rounded-md border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text"),value:t,type:"text",name:"search-bar-input",placeholder:"Поиск по сайту",autoFocus:l,onChange:r,onFocus:a})]})})),Kr=(e,t,l=300)=>a((()=>{const t=setTimeout(e,l);return()=>{clearTimeout(t)}}),t);function Gr(e,...t){return e.map(((e,l)=>[e,...t.map((e=>e[l]))]))}const Yr=e=>t=>{if(e===t)return 1;if(!e||!t)return 0;const{m:l,s1Matches:n,s2Matches:a}=function(e,t){const l=Math.max(0,Math.floor(Math.max(e.length,t.length)/2)-1),n=new Array(e.length),a=new Array(t.length);let i=0;for(let r=0;r<e.length;r++){const s=Math.max(0,r-l),o=Math.min(r+l,t.length-1);for(let l=s;l<=o;l++)n[r]||a[l]||e[r]!==t[l]||(i++,n[r]=!0,a[l]=!0)}return{m:i,s1Matches:n,s2Matches:a}}(e,t);if(0===l)return 0;const i=function(e,t,{s1Matches:l,s2Matches:n}){let a=0;for(let i=0,r=0;i<e.length;i++){if(!l[i])continue;let s=r;for(;s<t.length;s++)if(n[s]){r=s+1;break}e[i]!==t[s]&&a++}return a}(e,t,{s1Matches:n,s2Matches:a}),r=(l/e.length+l/t.length+(l-i/2)/l)/3,s=r>.7?.1*function(e,t){let l=0;for(;e[l]===t[l]&&l<4;)l++;return l}(e,t):0;return r+s*(1-r)};const Jr=(e,t)=>(l,n)=>{for(const[a,i]of n)l.set(a,e(l.get(a)||t,i));return l},qr=e=>e.toLowerCase().split(/[^0-9a-zа-я-]+/).filter((e=>e.length>=3&&!/[0-9a-z]/.test(e))),Zr=e=>t=>e.map((([e,l])=>[Yr(t)(e),l])).filter((([e])=>e>=.8)).map((([e,t])=>es(t,e))).reduce(Jr(Math.max,0),new Map),Qr=e=>t=>{return Gr(t,t.map((({title:e})=>e)).map((e=>t=>{const l=qr(t||"");return l.length?$a(e.map((e=>Ll(l.map(Yr(e)))))):0})(e))).sort((n=([,e])=>e,l=(e,t)=>n(e)-n(t),(e,t)=>-l(e,t))).map((([e])=>e));var l,n},es=(e,t)=>new Map(e.map((e=>[e,t]))),ts=["/"],ls=({basePathList:e=ts,initialQuery:t="",wasOpened:l})=>{const[i,s]=n(t||"");a((()=>{null!=t&&s(t)}),[t]);const o=r((()=>e.map((e=>l?e:null))),[l,e]),{data:c}=_(o,ns),[d,m]=n(null);return Kr((()=>{c&&m(c.map((e=>t=>{const{corpus:l,dictionary:n}=t||{};if(!(e&&l?.length&&n&&Object.keys(n).length))return[];const a=qr(e);if(!a.length)return[];const i=Object.entries(n),r=[...a.map(Zr(i)).reduce(Jr(((e,t)=>e+t),0),new Map).entries()].filter((([,e])=>e>=.799*a.length)).map((([e])=>l[e]));return Qr(a)(r)})(i)))}),[c,i]),[d,{value:i,onChange:s}]},ns=async(...e)=>(await Promise.allSettled(e.map((e=>A(H(e,"/","search.index.json")))))).map((e=>"fulfilled"===e.status?e.value:{})),as=x((({className:e,head:t,children:l,onClose:n})=>{const{close:a}=O(),r=i((()=>{a(),n&&n()}),[n]);return p("div",{className:w("relative min-h-full bg-white",e),children:[p("div",{className:"sticky py-xl top-0 bg-white",children:[u(Xr,{className:"absolute top-0 right-0",onClose:r}),u("div",{className:"container",children:t})]}),u("div",{className:"container pb-6xl",children:l})]})})),is=x((({className:e,topItems:t})=>{const l=J({isRemote:!0});return u("div",{className:w("flex items-start justify-between",e),children:t?.map(l).map(rs)})})),rs=(e,t)=>{const{text:l,items:n,href:a,target:i,onClick:r}=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:i||"_self",onClick:r,children:l||`Раздел ${t}`}),n?.map(((e,t)=>u(ss,{...e,basePath:o(a),index:t},String(t))))]},String(t))},ss=x((({text:e,index:t,basePath:l,...n})=>{const a=J({isRemote:!(!d.BASE_PATH||!l)&&!d.BASE_PATH.startsWith(l),basePath:l}),{href:i,target:r,onClick:s}=a(n);return u("a",{className:w("text-l font-light text-secondary-text hover:text-primary-main no-underline","overflow-x-hidden overflow-ellipsis whitespace-nowrap"),href:i,target:r||"_self",onClick:s,children:e||`Раздел ${t}`})})),os=x((({initialQuery:e})=>{const{topItems:t}=$r(),l=r((()=>t?.map((e=>e.href||"/"))),[t]),[n,i]=ls({basePathList:l,initialQuery:e,wasOpened:!1}),s=r((()=>cs(t)(n)),[t,n]);return a((()=>function(e){for(const t of e.filter((({items:e})=>e?.length)))console.group(t.text),console.table(t.items,["text","href"]),console.groupEnd()}(s)),[s]),u(as,{head:u(Wr,{autoFocus:!0,...i}),children:u(is,{topItems:s})})})),cs=e=>t=>e?.length&&t?.length?Gr(e,t).map((([e,t])=>({...e,items:t?.map((({title:e,uri:t})=>({text:e,href:H("/",t)})))}))):[];const ds=()=>{const{open:e,close:t}=O();return{open:(t={},l={})=>e(u(os,{...t}),l),close:t}},ms=x((({className:e})=>{const[t,l]=n(""),a=i((()=>l("")),[]),{open:r}=ds(),s=i((e=>{l(e),hs(e)&&r({initialQuery:e},{onClose:a})}),[a]);return p("div",{className:e,children:[u(Wr,{value:t,onChange:s}),u(Xr,{className:"absolute top-2 right-3 sm:hidden",onClose:a})]})})),hs=e=>e&&e.length>=3,us=x((({className:e="",items:t})=>p("div",{className:e,children:[t?.length?t.map(ps):null,u(se,{version:"primary",className:"w-full",href:"https://www.rshb.ru/feedback/question/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"})]}))),ps=(e,t)=>p("div",{className:"mb-m",children:[u("div",{className:"mb-m",children:u(me,{size:"text-l",font:"font-medium",children:e?.title})}),u("div",{children:e.items?.map(xs)})]},String(t)),xs=(e,t)=>p("div",{className:"mb-m",children:[u("div",{children:gs(e.type,e.text)}),u("div",{className:"mt-2xs text-s font-light text-secondary-text",children:e.description})]},String(t)),gs=(e,t="")=>{switch(e){case"tel":return u("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${fs(t)}`,children:t});case"email":return u("a",{className:"text-xl font-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return u("span",{children:t})}},fs=e=>e.replaceAll(/\D/g,""),bs=x((({className:e="",index:t,text:l,...n})=>{const a=J(),{href:i,target:r,onClick:s}=a(n);return u("a",{className:w("text-secondary-text",e),href:i,target:r,onClick:s,children:l||`Документ ${t}`})})),vs=x((({className:e="",links:t})=>u("div",{className:e,children:t?.length?u("div",{className:"flex justify-between items-center gap-lg py-lg border-solid border-x-0 border-y border-y-main-divider",children:t.map(((e,t)=>u(bs,{index:t,className:"text-l font-light max-w-[292px]",...e},String(t))))}):null}))),ys=x((({className:e="",index:t,...l})=>{const n=J({isRemote:!0}),{href:a,target:i,text:r,onClick:s}=n(l);return u("a",{className:`text-xs font-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:a,target:i,onClick:s,children:r||`Документ ${t}`})})),Ns=x((({className:e="",links:t})=>p("div",{className:e,children:[u("div",{className:"pt-lg",children:u(me,{size:"text-xs",font:"font-light",color:"text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?u("div",{className:"flex flex-col sm:flex-row justify-start items-start gap-x-lg gap-y-xs pt-lg",children:t.map(((e,t)=>u(ys,{index:t,...e},String(t))))}):null]}))),ws="w-52",ks=x((({className:e,...t})=>{const{topItems:l}=$r(t.options?.page?.fallback),{documents:n,relatedEnterprises:a,contacts:i,socialMedia:r,mobileApps:s,logo:o}=Ct(d.FOOTER||"footer",t.options?.page?.fallback);return p(S,{tag:"footer",className:e,...t,children:[p("div",{className:"flex items-stretch gap-3xl pb-3xl ",children:[u(Hr,{className:ws,logo:o}),u(ms,{className:"grow"})]}),p("div",{className:"flex items-stretch gap-6xl",children:[p("div",{className:"w-52 flex flex-col shrink-0 overflow-hidden space-y-xl",children:[u(us,{items:i}),u(ci,{media:r,children:"Соцсети"}),u(ci,{media:s,children:"Мобильное приложение"})]}),u(is,{className:"flex-grow",topItems:l})]}),u(vs,{className:"mt-xl",links:a}),u(Ns,{links:n})]})})),Ss=x((({className:e="",title:t,description:l,calendar:n,...a})=>p(S,{className:e,defaultPadding:"p-6xl",...a,children:[u(al,{className:"mb-4",title:t,description:l,headlineVersion:"M",isPadding:!1}),n?Cs(n):null]}))),Cs=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=>Is(e,t)))}),u("div",{className:"flex gap-s w-full",children:l.map(((e,t)=>p("div",{className:"pr-s border-r border-main-divider last:border-r-0 last:pr-0",style:{flexBasis:e.flexBasis},children:[u("div",{className:"flex",children:Ts(e)}),p("div",{className:"text-s font-light text-primary-text mt-s",children:[u("span",{children:e.text})," ",u("span",{className:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},Is=(e,t)=>e.month?.map(((e,l)=>u("div",{style:{flexBasis:`${t}%`},children:e.text},`monthName-${l}`))),Ts=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(Vt,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),Bs=x((({className:e="",active:t,flat:l,children:n,...a})=>{const i=J({isRemote:!0}),{href:r,target:s,text:o,onClick:c}=i(a);return u("a",{className:w(Rs(t,l),e),href:r,target:s,onClick:c,rel:"noopener noreferrer","aria-label":o,children:u("span",{className:Ps(t,l),children:o||n})})})),Rs=(e=!1,t=!1)=>w("inline-block border border-solid bg-transparent text-center no-underline",e?"rounded-md border-primary-main group-data-transparent:border-white":"border-transparent",t?"":"px-4 py-2"),Ps=(e=!1,t=!1)=>w("font-sans text-s font-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"),Ms="location";function Vs(e="Москва"){const[t,l]=((e,t,l)=>{const[r,s]=n(l||null);return a((()=>e.subscribe(t,(e=>s(e)))),[e,t]),[r,i((l=>e.fire(t,l)),[e,t])]})(b,"location",_s()??{name:e}),r=i((e=>{js(e),l(e)}),[]),{data:s}=_("/api/v1/region",D);return a((()=>{s&&!zs()&&l(s)}),[s]),[t??{name:e},r]}const zs=()=>Boolean(globalThis.localStorage?.getItem(Ms)),_s=()=>{try{const e=globalThis.localStorage?.getItem(Ms);return e&&JSON.parse(e)}catch(e){return null}},js=e=>{try{globalThis.localStorage?.setItem(Ms,JSON.stringify(e))}catch(e){}};const As=e=>e?.length?p("div",{className:"border-t border-main-divider mt-2xs pt-2xs",children:[u("div",{className:"mb-m",children:u(me,{size:"text-m",font:"font-light",color:"text-secondary-text",children:"Представительства за рубежом:"})}),u("div",{className:"flex gap-10",children:e.map(((e,t)=>u(Ds,{...e},String(t))))})]}):null,Ds=x((({icon:e,...t})=>{const l=J(),{text:n,target:a,href:i,onClick:r}=l(t);return p("div",{className:"flex gap-x-3",children:[e?u(Vt,{pathPrefix:"/wcms-resources/",image:e}):null,n?u("a",{className:"hover:text-primary-hover",href:i,target:a,onClick:r,children:n}):null]})})),$s=e=>t=>u("div",{className:"mb-2xs",children:u("button",{className:"cursor-pointer hover:text-primary-hover",onClick:()=>{e&&e(t)},children:t.name||""})},t.id),Ls=x((({className:e,searchTerm:t,onSearch:l})=>p("form",{className:`font-sans relative ${e}`,children:[u("div",{className:"absolute rounded h-full flex items-center justify-center pl-4 max-w-44 gap-3.5 pointer-events-none",children:t?null:u("label",{htmlFor:"search-bar-input",className:"text-secondary-text ",children:"Поиск по филиалам"})}),u("input",{id:"search-bar-input",className:"h-12 pl-4 w-full peer text-l text-black border border-solid rounded-md box-border\n outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text",value:t,onChange:e=>l(e.target.value.toLowerCase()),type:"text",name:"location-search-bar-input"})]}))),Os=x((()=>{const{defaultLocation:e,foreignOffices:t}=$r(),[l,a]=Vs(e),[r,s]=n(""),o=Fs(function(){const{data:e}=_("/api/v1/regions",D);return e||[]}()).sort(((e,t)=>e.name.localeCompare(t.name))),c=((e,t)=>{const l=new Map;for(const n of e){const e=t(n),a=l.get(e)||[];l.set(e,[...a,n])}return l})(o,Es),{close:d}=O(),m=i((e=>{a(e),d()}),[]);return p(as,{head:p("div",{children:[l?p("div",{className:"mb-s",children:[u(me,{size:"text-l",font:"font-light",children:"Сейчас выбран: "}),u("button",{onClick:()=>a(l),children:u(me,{color:"text-primary-main",children:l.name})})]}):null,u(Ls,{onSearch:s,searchTerm:r})]}),children:[r&&r.length>=3?u("div",{children:o.filter((({name:e})=>e&&Yr(e.toLowerCase())(r.toLowerCase())>=.8)).map($s(m))}):u("div",{className:"columns-5",children:Array.from(c.entries()).map((h=m,([e,t])=>p("div",{className:"break-inside-avoid mb-2xl w-56",children:[u("div",{className:"mb-s",children:u(me,{size:"text-h6",children:e})}),t.map($s(h))]},e)))}),As(t)]});var h})),Es=e=>e.name?.charAt(0)||"",Fs=e=>e.map((e=>({...e,name:e.name?.replace(/республика|область|край'/gi,"").trim()||""}))),Us={default:"w-6 h-6",large:"w-12 h-12"},Hs=x((({className:e,isRounded:t,buttonSize:l="default",isGrayBg:n=!1,disabled:a,ariaLabel:i,image:r,onClick:s})=>u("button",{className:w("group/btn border-0 flex shrink-0 items-center",n?"p-3 rounded-full":"p-0 bg-inherit",n&&!t?"bg-main-divider":"",t?"w-8 h-8 text-secondary-light hover:text-secondary-hove":`${Us[l]} text-primary-text hover:text-primary-main`,"group-data-transparent:text-white",e),type:"button",disabled:a,"aria-label":i,onClick:s,children:u(Vt,{image:r,className:w("h-full",t?"bg-main-divider/20 rounded-full":""),imageClassName:"group-hover/btn:text-primary-hover group-hover/btn:invert-0"})}))),Xs=x((({className:e,version:t,officesLink:l,defaultLocation:n})=>{const a="transparent"===t?"white":"black",[r]=Vs(n),s=ds(),o=i((()=>s.open()),[]),c=(()=>{const{open:e,close:t}=O();return{open:(t={})=>e(u(Os,{}),t),close:t}})(),d=i((()=>c.open()),[]);return p("div",{className:w("flex items-center gap-5",e),children:[u(Bs,{flat:!0,href:"#",text:r?.name,onClick:d}),l?u(Bs,{flat:!0,href:l,text:"Офисы и банкоматы"}):null,u(Hs,{image:{icon:"LoupeIcon",iconVersion:a},ariaLabel:"Поиск",onClick:o})]})})),Ws=e=>({href:t})=>U(E(t)?e.href:e.pathname).startsWith(U(t)),Ks=x((({className:e="",items:t,activeItem:l})=>{const a=J(),[r,s]=n(!1),o=i((()=>s((e=>!e))),[]),c=ze(i((()=>s(!1)),[]));return p("div",{className:w(r?"bg-white rounded-md shadow-blue-gray":"",e),ref:c,children:[u("button",{className:"group/btn flex justify-between items-center h-6","aria-label":""+(r?"Скрыть другие разделы":"Показать другие разделы"),onClick:o,children:Array(3).fill(null).map(((e,t)=>u("div",{className:"w-[3px] h-[3px] rounded mr-1 bg-primary-text group-hover/btn:bg-primary-hover group-data-transparent:bg-white"},String(t))))}),u("div",{className:w("absolute flex flex-col rounded-md bg-white p-6 pb-2",r?"":"hidden"),"aria-hidden":!r,children:t?.map(((e,t)=>{const{text:n,...i}=e;return u("a",{className:w("text-l font-light pb-4 hover:text-primary-main",e===l?"text-primary-main":""),...a(i),children:n},e.href||String(t))}))})]})})),Gs=x((({className:e="",active:t,dataItemName:l,children:n,...a})=>{const i=J(),{href:r,target:s,text:o,onClick:c}=i(a);return p("a",{className:w("relative inline-block bg-transparent text-center no-underline",e),href:r,target:s,"data-item-name":l,onClick:c,children:[u("span",{className:Ys(t),children:o||n}),t?u("div",{className:"absolute left-0 right-0 -bottom-3 h-0.5 bg-primary-main group-data-transparent:bg-transparent"}):null]})})),Ys=(e=!1)=>w("font-sans text-l font-light",e?"text-primary-main":"text-primary-text hover:text-primary-main","group-data-transparent:text-white group-data-transparent:hover:text-primary-hover"),Js=x((({observerOptions:e,onVisibilityChange:t,children:l,className:n,...a})=>{const r=v(i((e=>{if(!e.length||!t)return;const l=e[e.length-1];t(l.isIntersecting)}),[t]),e);return u("span",{ref:r,className:n,children:u(Gs,{...a,children:l})})})),qs=e=>globalThis[e];function Zs(e,t){const[l,r]=n(),s=i((()=>r(qs(e))),[e]);return a((()=>{const l=document.getElementById(t);if(!l){const e=document.createElement("script");return e.src=t,e.async=!0,e.id=t,e.addEventListener("load",s),document.head.appendChild(e),()=>{document.head.removeChild(e),r(void 0)}}if(!qs(e))return l.addEventListener("load",s),()=>{l.removeEventListener("load",s)};s()}),[e,t]),l}const Qs={personal:"//chat.mes.rshb.ru/assets/js/webchat_rshb",business:""},eo=x((e=>{const[t,{setTrue:l}]=Ve();return t?u(to,{...e}):lo({...e,onClick:l})})),to=x((({chat:e="personal",...t})=>((e=>{a((()=>globalThis.localStorage?.setItem("webchat-keep-open",String(Date.now()))),[]),Zs("chatbot",Qs[e])})(e),lo(t)))),lo=({className:e,iconVersion:t,onClick:l})=>u(Hs,{className:w("text-page__btn-chat",e),image:{icon:"HeadphonesIcon",iconVersion:t},ariaLabel:"Чат",onClick:l,buttonSize:"large",isGrayBg:!0}),no={default:"px-5 bg-main-divider rounded hover:text-primary-main",transparent:"text-white hover:text-primary-hover"},ao=x((({version:e,internetBankUrl:t})=>t?u(se,{href:t,ariaLabel:"Интернет-банк",target:"_blank",className:w("py-3 ml-3 text-l font-light whitespace-nowrap hover:text-primary-main",no["transparent"===e?"transparent":"default"]),children:"Интернет-банк"}):null)),io=x((({subItems:e=[],version:t,internetBankUrl:l})=>{const a="transparent"===t?"white":"black",i=(e=>(t=[])=>{const l=t?.filter(Ws(e));return l?.length?$l((e=>e.href?.length||0))(l):void 0})(Y())(e),[o,c]=n(e.length),m=e.slice(o),h=s(null),x={rootRef:h},g=r((()=>e.map(((e,t)=>e=>{c(e?ro(t):so(t))}))),[e]);return p("nav",{className:"relative mt-s flex items-center justify-between",children:[u("div",{ref:h,className:"overflow-hidden whitespace-nowrap pb-s mt-xs",children:e.map(((e,t)=>u(Js,{className:w("ml-3xl first:ml-0",o-1<t?"invisible":""),active:e===i,observerOptions:x,onVisibilityChange:g[t],...e},String(t))))}),m.length?u(Ks,{className:"relative w-auto z-40",items:m,activeItem:i}):null,d.CHAT_BOT?u(eo,{className:"ml-9",iconVersion:a,chat:d.CHAT_BOT}):null,u(ao,{version:t,internetBankUrl:l})]})})),ro=e=>t=>Math.max(t,e+1),so=e=>t=>Math.min(t,e),oo={"bg-white":"primary",transparent:"transparent"},co=x((({className:e,bgColor:t="bg-white",version:l=oo[t],...n})=>{const a=Y(),{topItems:i,logo:r,officesLink:s,internetBankUrl:o,defaultLocation:c}=$r(n.options?.page?.fallback),m=i?.find((e=>Ws(d.BASE_PATH?{pathname:d.BASE_PATH}:e))(a));return u(S,{tag:"header",className:w("pt-3xl px-20",m?.items?.length?"pb-m":"pb-lg",e),defaultPadding:"",version:l,...n,children:p("div",{className:"container",children:[p("div",{className:"flex items-center",children:[u(Hr,{className:"mr-3xl",bgColor:t,logo:r}),i?.map(((e,t)=>u(Bs,{active:e===m,...e},String(t)))),u(Xs,{version:l,className:"ml-auto",officesLink:s,defaultLocation:c})]}),u("div",{className:w("mt-xl h-px bg-main-divider","transparent"===l?"opacity-30":"")}),m?.items?.length?u(io,{subItems:m.items,version:l,internetBankUrl:o}):null]})})})),mo={XXL:"gap-6xl",XL:"gap-5xl",L:"gap-3xl",M:"gap-m",S:"gap-xs",XS:"gap-2xs","":""},ho=x((({className:e="",gap:t="XS",isPadding:l=!1,version:n="transparent",isTheme:a=!1,...i})=>u(S,{className:w("relative","grid grid-cols-12",mo[t],e),defaultPadding:l?"p-6xl":"",version:n,isTheme:a,...i,children:Fn(i)})));ho.childrenTypes={exclude:["HorizontalLayout"]};const uo=x((e=>{const{className:t,image:l,...n}=e;return u(S,{className:t,defaultPadding:"p-0",...n,children:u(Vt,{image:l})})})),po=x((({className:e="",cards:t=[],button:l})=>{const[a,r]=n(0),s=i((e=>r(e)),[]),o=t.length,[c,d]=vl({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?xo({activeIndex:c,cards:t,selectedCardIndex:a,onClick:s}):null,kl({...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(se,{className:"w-60 text-center",version:"primary",...l,href:x})]})}));function xo({activeIndex:e,cards:t,selectedCardIndex:l,onClick:n}){const a=460*e,i=t.length>2?"justify-start":"justify-center";return u("div",{style:{transform:`translateX(-${a}px)`},className:"duration-1000 px-6xl",children:u("div",{className:`w-full flex flex-nowrap gap-3.5 pb-6xl ${i}`,children:t.map(((e,t)=>function({slide:e,i:t,isActive:l,onClick:n}){return p("button",{type:"button",onClick:n,className:"p-3xl 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(Vt,{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?go("страховая сумма",e.sum):null,e?.fee?go("страховой взнос",e.fee):null]}),fo(l)]},String(t))}({slide:e,i:t,isActive:Boolean(t===l),onClick:()=>n(t)})))})})}function go(e,t){return p("div",{className:"flex flex-col text-left whitespace-pre",children:[p("span",{className:"text-h6",children:[ot(2)(t)," ₽"]}),u("span",{className:"text-secondary-text text-l mt-1",children:e})]})}function fo(e){return e?u(Vt,{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 bo=x((({className:e="",title:t,insuranceTabs:l=[],button:a,...r})=>{const[s,o]=n(0),c=i((e=>o(e)),[]);return p(S,{className:w("box-border overflow-hidden relative px-0 space-y-2xl",e),defaultPadding:"p-6xl",...r,children:[t?u(I,{className:"text-center",title:t,headingType:"h3"}):null,l?.length>1?u("div",{className:"p-xs bg-secondary-light w-fit mx-auto rounded-md",children:l.map(((e,t)=>function({title:e,i:t,isActive:l,onClick:n}){return u("button",{type:"button",onClick:n,"aria-label":e,className:"box-border px-4 py-3 text-m font-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:vo({insuranceTabs:l,button:a})})]})})),vo=({insuranceTabs:e,button:t})=>{const l=e?.map((e=>e.cards));return l?.length?l.map(((e,l)=>u(po,{button:t,cards:e},String(l)))):null};const yo=e=>t=>t.reduce(((t,l,n)=>t.length?t.concat({...e,key:`sep-${n}`},l):[l]),[]),No={yellow:"bg-yellow",green:"bg-green","green-light":"bg-green-light","green-dark":"bg-green-dark"},wo={XS:"h-10",S:"h-16",M:"h-24",L:"h-32",XL:"h-52"},ko=x((e=>{const{className:t="",items:l,isDotted:n,investmentZeroColumn:a,investmentColumns:i,...r}=e,s=i?[...i]:[];return a&&s.unshift(a),u(S,{className:t,...r,children:p("div",{className:"container text-m font-light",children:[s?.length?p("div",{children:[p("div",{className:"flex items-end relative pl-3xl pr-lg text-white",children:[yo(u("div",{className:"w-px h-4 bg-gray"}))(s.map(So)),u("div",{className:"absolute right-3xl w-px h-4 bg-gray"})]}),u("div",{className:"border-t border-gray -mt-xs mx-3xl"}),u("div",{className:"flex justify-between text-primary-text mt-s -mx-5xl",children:s.map(To)})]}):null,l?.length?u(Ma,{className:"mt-9 max-w-[657px]",items:l,isDotted:n,listItemSize:"M"}):null]})})})),So=(e,t,l)=>{const n=1===t,a=t===l.length-1;return u("div",{className:`${Co(n,a,e.cells)}`,children:e.cells?.length?u("div",{className:"w-full "+(a?"border-4 border-green-more-dark p-2xs min-w-[290px]":""),children:e.cells.reverse().map(Io)}):null},`column_${t}`)},Co=(e,t,l=[])=>[l.length?"flex-1":"flex-0",!l.length||e||t?"":"pl-s",l.length&&!t?"pr-s pb-3xl":"pb-xl"].join(" "),Io=(e,t)=>{const l=e.cellSize||"XS",n=e.cellColor||"green";return e.text?u("div",{className:`flex-1 flex items-center justify-center relative py-xs ${wo[l]} ${No[n]} ${"XS"===l?"px-s":"px-5xl"}`,children:u("div",{className:"text-center",children:e.text})},`cell_${t}`):null},To=(e,t)=>u("div",{className:"flex-1 max-w-[180px] text-center px-xs last:pr-3xl",children:e.title},`title_${t}`),Bo=["байт","Кб","Мб","Гб","Тб","Пб"],Ro=x((({icon:e,text:t,fileSize:l,...n})=>p("a",{className:"flex box-border gap-3 group/item h-fit w-fit text-primary-text no-underline hover:text-primary-main",role:"link",...n,children:[e,t?p(me,{size:"text-l",font:"font-light",children:[t,u(me,{color:"text-secondary-text",children:n?.href&&Po(Mo(n.href),l)})]}):null]}))),Po=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),Mo=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},Vo={double:"sm:flex-wrap sm:flex-row",single:"sm:flex-col"},zo=x((({className:e="",title:t,description:l,align:n="text-center",documents:a,icon:i={icon:"DocIcon"},columnsMode:r="double",...s})=>{const o=Y();return p(S,{className:e,defaultPadding:"p-6xl",...s,children:[u(al,{title:t,description:l,align:n,headlineVersion:"M",as:"h2",isPadding:!1}),a?.length?u("div",{className:w("mt-5 sm:mt-8 flex flex-col gap-6",Vo[r]),role:"list",children:a.map(_o(o,r,i))}):null]})})),_o=(e,t,l)=>(n,a)=>{const i="Attachment"===n?.docType?W(e)(n?.attachment?.src):n?.href,r="Attachment"===n?.docType?((e,t=2)=>{if(0===e)return"";const l=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/Math.pow(1024,l)).toFixed(t))} ${Bo[l]}`})(n?.attachment?.fileSize||0):n?.fileSize;return u("div",{className:"double"===t?"basis-[calc(50%-20px)]":"",role:"listitem",children:u(Ro,{text:n?.text,target:n?.target,href:i,fileSize:r,icon:l?u(Vt,{className:"min-w-6 min-h-6",image:l,width:"24",height:"24"}):null})},String(a))},jo=e=>e?u("div",{className:"mb-lg pt-3xs",children:u(me,{size:"text-xl","font-weight":"light",children:e})}):null,Ao=e=>e?.length?u(Ma,{items:e,className:"text-l font-light mb-xs last:mb-0"}):u("span",{className:"text-m font-light text-secondary-text",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),Do=x((({className:e,padding:t,alignTitle:l="left",buttons:n=[],description:a,headingType:i="h4",image:r,items:s,qr:o,title:c="Мобильное приложение",version:d="primary",...m})=>{const h="secondary"===d?"p-m min-w-32":"min-w-24";return u(S,{className:w("min-h-80",e),padding:"p-0",version:d,...m,children:p(ba,{className:"h-full",padding:t,defaultPadding:"p-6xl",title:c?u(I,{headingType:i,title:c,className:w("whitespace-pre-wrap",cl[l])}):null,rightImage:r?.src?u(Vt,{className:"hidden lg:block",image:r}):null,buttons:Qt(n,{isVertical:n.length>4}),children:[jo(a),p("div",{className:"flex flex-1 flex-wrap gap-m items-center",children:[o?.src?u("div",{className:w("flex justify-center bg-white rounded-md",h),children:u(Vt,{className:"w-fit",image:o})}):null,Ao(s),r?.src?u(Vt,{className:"lg:hidden",image:r}):null]})]})})})),$o={default:"px-xs",underlined:"px-m",rounded:"px-lg rounded-md"},Lo={default:"text-black sm:text-white",underlined:"text-primary-main border-b-2",rounded:"text-white"},Oo={default:"bg-white",underlined:"bg-white",rounded:"bg-transparent"},Eo={default:"sm:bg-primary-main",underlined:"bg-white",rounded:"bg-primary-main"},Fo=x((({tag:e="div",item:t={},isActive:l,type:n="default",onClick:a})=>{const i=e,{text:r,...s}=t;return u(i,{className:w("h-12","block flex-1","cursor-pointer",$o[n],l?Eo[n]:Oo[n]),role:"tab","aria-selected":l,onClick:a,...s,children:u("div",{className:w("h-full","flex justify-center items-center","text-center whitespace-nowrap",l?Lo[n]:"text-secondary-text hover:text-primary-main"),children:u(me,{size:"text-m",children:r})})})})),Uo=x((e=>u(e?.item?.href?Ho:Xo,{...e}))),Ho=x((e=>{const t=J(),l=i((()=>{e.onClick&&e.onClick(e.item||{})}),[e.onClick,e.item]),{onClick:n,...a}=t({...e.item,onClick:l});return u(Fo,{...e,tag:"a",item:a,onClick:n})})),Xo=x((({item:e={},onClick:t,...l})=>{const n=i((()=>{t&&t(e)}),[t,e]);return u(Fo,{item:e,onClick:n,...l})})),Wo=(e,t,l)=>(n,a)=>u(Uo,{isActive:n===e,onClick:t,type:l,item:n},String(a)),Ko=x((({className:e,tabsType:t="default",items:l=[],value:n,onChange:a})=>u("div",{className:w("flex gap-x-2xs overflow-x-auto no-scrollbar",e),role:"tablist",children:l.map(Wo(n,a,t))}))),Go=(e,t)=>e===t;const Yo=(Jo=function(...e){return(t,l)=>e.some((e=>e(t,l)))}(Go,((e=Go)=>(t,l)=>t===l||Boolean(t&&l&&t.length===l.length&&t.every(((t,n)=>e(t,l[n])))))()),(e,t)=>e===t||Boolean(e&&t&&Object.keys(e).length===Object.keys(t).length&&Object.entries(e).every((([e,l])=>Jo(l,t[e])))));var Jo;const qo={categories:[],extraOptions:[],propertyType:[],stage:[]},Zo=x((({className:e,hotFilters:t=[],filtrationSchema:l={},resetButton:s,...o})=>{const[c,{field:d,reset:m,update:h}]=B(qo),x=r((()=>t.map((({text:e})=>({text:e})))),[t]),[g,f]=n(0),b=i((e=>{f(x.indexOf(e)),h(t[x.indexOf(e)].filter||qo)}),[t,x]);return a((()=>{const e=t.findIndex((e=>Yo(e.filter,c)));f(-1!==e?e:0)}),[t,c]),p(S,{className:w(e),defaultPadding:"p-0",version:"transparent",...o,children:[u(Ko,{className:"mb-2xs",items:x,value:x[g],onChange:b}),Zi({field:d,reset:m,filtrationSchema:l,resetButton:s}),u(Yi,{filtrationState:c,...o})]})}));Zo.childrenTypes=["ProductTile"],Zo.childSchema=e=>e?.filtrationSchema||{};const Qo=[{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 ec(e,t,l){t.geoObjects.removeAll();const n=e.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>'),a=new e.Clusterer({clusterIcons:[{href:"icons/MapMarkerClusterIcon.svg",size:[78,84],offset:[-35,-50]}],clusterIconContentLayout:n,clusterHideIconOnBalloonOpen:!1,geoObjectHideIconOnBalloonOpen:!1}),i=l.map((t=>new e.Placemark(t,{},{iconLayout:"default#image",iconImageHref:"icons/MapMarkerSingleIcon.svg",iconImageSize:[78,84],iconImageOffset:[-35,-50]})));a.add(i),t.geoObjects.add(a),t.setBounds(e.util.bounds.fromPoints(l)).then((()=>{t.getZoom()>10&&t.setZoom(10)}))}const tc={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"},lc=e=>u("a",{className:`select-none cursor-pointer px-9 h-12 bg-primary-main text-white ${Object.values(tc).join(" ")}`,href:`https://yandex.ru/maps/?ll=${[e[1],e[0]]}&z=10&l=map`,target:"_blank",children:"Открыть на карте"}),nc={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)]"},ac=(e,t,l)=>p("div",{className:`${Object.values(nc).join(" ")} bg-white py-s pl-5xl pr-m w-full`,children:[u(je,{name:"LoupeIcon",iconVersion:"black",width:"20",height:"20",className:"absolute left-4"}),u("input",{type:"text",placeholder:"Введите адрес или метро",onChange:t=>{const n=t.target?.value?t.target?.value.toLowerCase():"";if(n){const t=e.filter((e=>e.text.toLowerCase().indexOf(n)>-1?e:null));l(t)}else l(null)},className:"border-0 focus:border-0 outline-0 w-full"})]}),ic={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"},rc=(e,t,l)=>u("div",{className:`select-none cursor-pointer py-4 w-12 bg-white ${Object.values(ic).join(" ")} ${l}`,onClick:()=>{t.geolocation.get({provider:"yandex",autoReverseGeocode:!0,mapStateAutoApply:!0}).then((function(t){e.geoObjects.add(t.geoObjects)}))},children:u(je,{name:"UserGeoLocationIcon",width:"20",height:"16"})}),sc={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"},oc=x((({yandexMaps:e,direction:t="in"})=>{const l="in"===t?"PlusIcon":"MinusIcon";return u("div",{onClick:()=>{const l=e.current.getZoom(),n="in"===t?l+1:l-1;e.current.setZoom(n,{checkZoomRange:!0})},className:`${Object.values(sc).join(" ")} bg-white select-none cursor-pointer w-12 h-12`,children:u(je,{name:l,width:"20",height:"16"})})})),cc={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"},dc=x((({points:e,className:t="",zoom:l=5,showSearchField:i=!1})=>{const r=s(null),o=Zs("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${d.YANDEX_MAP_API_KEY||""}&lang=ru_RU`),[c,m]=n(),[h,x]=n(pc(Qo)),g=mc(e);if(a((()=>{r?.current||o?.ready((()=>{r.current=new o.Map("map",{center:g,zoom:l,controls:[],suppressMapOpenBlock:!0}),ec(o,r.current,h)}))}),[o,r,h]),a((()=>{if(r.current&&h&&o){const e=h.length<1?pc(Qo):h;ec(o,r.current,e)}}),[r,h,o]),!o)return null;const f=c?"z-[100000]":"z-10";return p("div",{id:"map",className:`${c?"":"relative"} w-full ${t}`,children:[u("div",{className:`absolute flex left-2 top-4 w-1/2 ${f}`,children:i?ac(Qo,0,(e=>{if(e){const t=pc(e);x(t)}})):lc(g)}),u("div",{className:`${Object.values(cc).join(" ")} ${f} right-2 top-4 bg-white`,onClick:()=>{const e=r.current.container;c?e.exitFullscreen():e.enterFullscreen(),m(e.isFullscreen())},children:u(je,{name:"FullScreenIcon",width:"16",height:"16"})}),p("div",{className:`absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md ${f}`,children:[u(oc,{yandexMaps:r}),u(oc,{yandexMaps:r,direction:"out"})]}),rc(r.current,o,`right-2 top-80 ${f}`)]})})),mc=e=>[uc(hc(e,0)),uc(hc(e,1))],hc=(e,t)=>e.map((e=>e[t])),uc=e=>e.reduce(((e,t)=>e+t))/e.length,pc=e=>e?e.map((e=>e.coords)):null,xc={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},gc=[{title:"Деловой центр",time:"1 мин",distance:"~30 м.",icon:"MetroIcon"},{title:"Выставочная",time:"5 мин",distance:"~120 м.",icon:"MetroIcon"},{title:"Деловой центр",time:"8 мин",distance:"~350 м.",icon:"MetroIcon"}],fc=({lunchHour:e,status:t,workTime:l})=>{const n=/\d+/gi.test(e)?`Перерыв ${e}`:e;return t?p("div",{className:"flex",children:[u("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-primary-main border-green-light mr-4",children:l||null}),u("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-yellow border-golden",children:e?n:null})]}):u("div",{className:"flex",children:u("div",{className:"p-3 border rounded-md text-m flex items-center cursor-pointer text-error border-error",children:"Выходной"})})},bc=({icon:e,title:t,distance:l,time:n},a)=>p("div",{className:"flex mr-4",children:[u(je,{name:e,width:"16",height:"16",className:"mr-1"}),t?p(me,{size:"text-m",children:[t," "]}):null,p(me,{size:"text-m",font:"font-light",children:[l?` (${l})`:null,n?`, ${n}`:null]})]},`nearbyOffice${a}`),vc=({title:e,status:t,workTime:l,lunchHour:n,description:a},i)=>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 font-light text-error",children:"Выходной"}),t&&l?u("div",{children:l}):null]}),t&&n?yc(n):null,a?u("div",{className:"pb-1 text-s font-light text-secondary-text",children:a}):null]},`day${i}`),yc=e=>/\d+/gi.test(e)?p("div",{className:"flex justify-between items-center w-full pb-1 text-m font-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 font-light text-primary-main",children:u("div",{children:e})}),Nc=x((({className:e=""})=>{const t=xc,{name:l,address:n,gpsLatitude:a,gpsLongitude:i,workSchedule:r}=t,{workingMonday:s,workingTuesday:o,workingWednesday:c,workingThursday:d,workingFriday:m,workingSaturday:h,workingSunday:x}=r,{workTime:g,lunchHour:f,workTimeSaturday:b,lunchHourSaturday:v}=r,y=a&&i?[a,i]:null,N=[{title:"Понедельник",status:s,workTime:g,lunchHour:f},{title:"Вторник",status:o,workTime:g,lunchHour:f},{title:"Среда",status:c,workTime:g,lunchHour:f},{title:"Четверг",status:d,workTime:g,lunchHour:"13:00 - 14:00",description:"Не работает прием денег с 17:00 до 19:00"},{title:"Пятница",status:m,workTime:g,lunchHour:f},{title:"Суббота",status:h,workTime:b,lunchHour:v},{title:"Воскресенье",status:x}],w=(new Date).getDay(),k=w>0?N[w-1]:N[6];return p("div",{className:`flex flex-col font-sans w-full ${e}`,children:[p("div",{className:"flex flex-col gap-m p-6xl pb-3xl",children:[p("div",{className:"flex justify-between",children:[u("div",{className:"text-h2",children:l}),fc(k)]}),p("div",{className:"flex text-l font-light",children:[u(je,{name:"GeolocationIcon",width:"24",height:"24",className:"pr-1"}),n]}),u("div",{className:"flex",children:gc.map(bc)})]}),p("div",{className:"flex justify-between",children:[u("div",{className:"flex-grow h-full w-full overflow-hidden",children:y?u(dc,{points:[y],className:"h-full"}):null}),u("div",{className:"w-[434px] min-w-[434px] p-6xl pt-0 flex flex-col",children:N.map(vc)})]})]})})),wc=x((({className:e="",title:t,servicesList:l,...n})=>p(S,{className:w("flex flex-col gap-lg",e),...n,children:[t?u(I,{headingType:"h5",title:t}):null,l?.length?u("ul",{className:"list-none space-y-lg",children:l.map(kc)}):null]}))),kc=(e,t)=>p("li",{className:"flex gap-s list-none ",children:[e.icon?u(Vt,{className:"min-w-6 min-h-6 w-6 h-6",width:"24",height:"24",image:e.icon}):null,e.label?u(me,{size:"text-l",font:"font-light",children:e.label}):null]},`list_item_${String(t)}`),Sc=x((({text:e,size:t,align:l,font:n,children:a,...i})=>u(S,{defaultPadding:"p-0",...i,children:u(de,{size:t,align:l,font:n,children:e||a})}))),Cc=(e,t)=>e||t?p("div",{className:"flex flex-wrap xl:flex-nowrap xl:bg-main-divider xl:rounded-md p-xs gap-xl",children:[Number(e)>0?Ic("Страховая сумма:",e):null,Number(t)>0?Ic("Ежемесячный лимит:",t):null]}):null,Ic=(e,t=0)=>p("div",{className:"basis-full flex flex-col-reverse sm:flex-row sm:justify-between items-baseline whitespace-pre",children:[u(me,{font:"font-light",size:"text-l",children:e}),p(me,{size:"text-h6",color:"text-primary-text",children:[ot(2)(t)," ₽"]})]}),Tc=x((({className:e,padding:t,headlineVersion:l="M",align:n="text-center",sum:a,monthLimit:i,imageOptions:r,...s})=>u(S,{className:e,padding:"p-0",...s,children:u(ti,{className:"h-full",defaultPadding:"p-6xl",padding:t,headlineVersion:l,align:n,isInsetTitle:!1,imageOptions:{directionRight:!1,imageAlign:"center",...r},...s,children:Cc(Number(a),Number(i))})}))),Bc=x((({className:e,title:t,description:l="Блок в разработке...",...n})=>p(S,{className:w("box-border",e),...n,children:[u(al,{className:"max-w-[600px]",title:t,description:l,headlineVersion:"L",align:"text-left",isPadding:!1}),u("figure",{className:"m-0 mt-xl min-w-[80%]",children:Rc()})]}))),Rc=(e=3)=>Mc(100,e).map((e=>Math.floor(e))).map(Pc),Pc=(e,t)=>u("div",{style:{width:`${e||100}%`},className:"h-4 mt-xs bg-secondary-light"},String(t)),Mc=(e,t)=>[e].concat(t>0?Mc(e/1.618,t-1):[]);function Vc({text:e,href:t,target:l,icon:n},a){const i="primary"===a?"white":"black",r={text:e,href:t,target:l,ariaLabel:e};return p("div",{className:"flex items-center gap-3",children:[u(se,{className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center",version:a,rounded:!0,...r,children:u(Vt,{className:"w-4 h-4",image:{...n,icon:n?.icon||"ArrowLeftIcon",iconVersion:n?.iconVersion||i}})}),u(se,{version:"link",...r})]})}const zc=x((({className:e,padding:t,backwardButton:l,...n})=>p(S,{className:w("overflow-hidden flex flex-col gap-3xl box-border",e),defaultPadding:"p-6xl",padding:t,...n,children:[l?.text?Vc(l,n.version&&"primary"!==n.version?"white":"primary"):null,u(ti,{className:"grow h-full",...n})]}))),_c=x((({className:e="",padding:t,slides:l=[],...a})=>{const[i,r]=n(0);return p(S,{className:w("box-border overflow-hidden",e),defaultPadding:"py-6xl",padding:t,...a,children:[u("div",{className:"flex duration-1000",style:{transform:`translateX(-${100*i}%)`},role:"list",children:l.map((({productBlock:e},t)=>u("div",{className:"box-border grow-0 shrink-0 basis-full",role:"listitem",children:u(ti,{className:"pl-6xl h-full",headlineVersion:"XXL",...e,...a})},String(t))))}),u("div",{className:"h-28 px-xs mt-m -mb-m flex gap-xs box-border",children:l.map(jc({activeSlideIndex:i,onClick:r}))})]})})),jc=({activeSlideIndex:e,onClick:t})=>({nav:l},n)=>{const a=n===e,i=a?"min-w-[350px] bg-white shadow-dark-blue border-none p-6":"min-w-[290px] ease-in duration-300 bg-white/10 px-6 py-5 hover:py-6 backdrop-blur",r=a?"text-primary-text text-h6 py-2":"text-l pb-1 text-secondary-text group-data-secondary:text-white",s=a?"text-secondary-text text-l font-light":"text-secondary-text text-m font-light group-data-secondary:text-white/80";return p("button",{type:"button",onClick:()=>t(n),"aria-label":l?.title,className:w("relative px-6 box-border overflow-hidden text-left grow basis-0 border border-gray group-data-secondary:border-white/50",i),children:[u("div",{className:r,children:l?.title}),u("div",{className:s,children:l?.description})]},String(n))},Ac=x((({className:e,padding:t,headlineVersion:l="S",isTabularBenefits:n=!0,additionalDescription:a,imageOptions:i,...r})=>u(S,{className:e,padding:"p-0",...r,children:u(ti,{className:"h-full",defaultPadding:"p-xl",padding:t,headlineVersion:l,isTabularBenefits:n,imageOptions:{isBackground:!0,...i},...r,children:a?u(de,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:a}):null})}))),Dc=x((({className:e,title:t="Акции и спецпредложения",description:l,headlineVersion:n="S",date:a,buttons:i=[],...r})=>u(S,{className:w("box-border",e),...r,children:p(ba,{className:"h-full",title:t?u(al,{title:t,headlineVersion:n,align:"text-left",isPadding:!1}):null,buttons:Qt(i),children:[a?u("div",{className:"text-s mb-xs",children:$c(a)}):null,u("div",{className:"text-l",children:l})]})})));function $c(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const Lc=x((({address:e,email:t,telephone:l,button:n,className:a="",__html:i,icon:r,title:s,version:o="primary",...c})=>p(S,{className:w("box-border text-left space-y-s",a),version:o,...c,children:[p("div",{className:"w-full flex justify-between flex-row-reverse",children:[Oc(r),s?u(I,{headingType:"h4",as:"h3",title:s}):null]}),p("div",{className:"w-full space-y-m",children:[i?Ec(i):null,Fc("Адрес",e,"GeolocationIcon"),Fc("Телефон",l,"PhoneIcon"),Fc("E-mail",t,"MailIcon"),n?.text?Qt([n]):null]})]}))),Oc=e=>u("div",{className:"w-10 h-7 sm:w-24 sm:h-16",children:e?.src||e?.icon?u(Vt,{image:e}):null}),Ec=e=>u("div",{className:"border-b border-main-divider pb-5",children:u(Ea,{__html:e})}),Fc=(e,t,l)=>p("div",{className:"flex gap-m",children:[u(je,{iconVersion:"black",name:l,width:"24",height:"24"}),p("div",{className:"flex flex-col",children:[u(me,{size:"text-m",font:"font-light",children:e}),t?u(me,{size:"text-h6",color:"text-green",children:t}):null]})]}),Uc=x((e=>{const{__html:t,richVersion:l,...n}=e;return u(S,{defaultPadding:"p-0",...n,children:u(Ea,{__html:t,richVersion:l})})})),Hc=e=>e?"MinusIcon":"PlusIcon",Xc=x((({className:e="",label:t="Развернуть",labelIcon:l,labelIconBgVersion:n,isExpanded:a,isFoldButtonOnTop:i=!0,version:r="primary",...s})=>u(S,{className:w("w-full","border-0 border-b border-solid border-main-divider last:border-b-0",e),defaultPadding:"p-0",tag:"div",version:"transparent",...s,children:u(hi,{isFoldButtonOnTop:i,unfoldedByDefault:a,renderFoldableSection:({isUnfolded:e})=>u(ui,{className:w("gap-5","grid grid-cols-12 [&>*]:pb-4"),isUnfolded:e,children:Fn({...s,extraProps:{className:"w-full",padding:"p-0"}})}),renderFoldButton:({isUnfolded:e,onToggle:a})=>Wc({version:r,label:t,labelIcon:l,labelIconBgVersion:n,isUnfolded:e,onToggle:a})})})));Xc.childrenTypes={exclude:["RollupItem"]};const Wc=({version:e,label:t,labelIcon:l,labelIconBgVersion:n,isUnfolded:a,onToggle:i})=>{const r=t||(a?"Скрыть":"Развернуть");return"primary"===e?Kc({label:r,labelIcon:l,labelIconBgVersion:n,icon:Hc(a),onToggle:i}):u(Xi,{label:r,icon:a?"ArrowUpIcon":"ArrowDownIcon",onClick:i})},Kc=({label:e,labelIconBgVersion:t,icon:l,onToggle:n,labelIcon:a})=>p("button",{className:w("border-none bg-transparent flex justify-between items-center w-full group/button",a?.icon?"py-xs":"py-lg"),onClick:n,children:[p("div",{className:"flex items-center text-start group-hover/button:text-primary-main gap-s",children:[null,e?u(me,{size:"text-h6",font:"font-normal",children:e}):null]}),l?u(je,{name:l,iconVersion:"color",width:"24",height:"24"}):null]}),Gc=x((({data:e,fieldLabel:t,fieldValue:l,selected:n,placeholder:a="",setSelected:i,label:r})=>{const s=e.filter(Boolean).map((e=>({key:e?.[l||t],text:e?.[t]}))),o=s.find((e=>e.key===n));return u($e,{options:s,label:r,placeholder:a||n,onChange:e=>i(e.key),value:o})})),Yc=x((({regions:e=[],selectedRegion:t,onSelectedRegion:l,branches:n=[],selectedBranch:a,onSelectedBranch:i})=>p("div",{className:"flex flex-col sm:flex-row gap-m order-1",children:[u("div",{className:"flex-1 min-w-0",children:u(Gc,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:l,label:"Регион"})}),u("div",{className:"flex-1 min-w-0",children:u(Gc,{data:n,fieldValue:"branchCode",fieldLabel:"address",selected:a,setSelected:i,label:"Отделение",placeholder:"Выберите отделение"})})]}))),Jc=x((({name:e,text:t,value:l,checked:n,onChange:a,className:i})=>u("div",{className:i,children:p("label",{className:"font-sans flex items-center relative cursor-pointer",children:[u("input",{className:"appearance-none flex justify-center items-center shrink-0 w-5 h-5 border border-gray hover:border-primary-hover\n checked:border-2 checked:!border-primary-main focus:checked:border-primary-main focus:border-primary-text active:border-primary-text\n after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main outline-none rounded-full cursor-pointer",type:"radio",value:l,name:e,checked:n,onChange:e=>a(e.target.value)}),t?u("span",{className:"text-primary-text ml-3 cursor-pointer",children:t}):null]})}))),qc=x((({className:e})=>{const[t,l]=n("option2"),a=i((e=>l(e)),[]);return p("div",{className:w("order-4",e),children:[u(Jc,{className:"mb-xs",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===t,onChange:a}),u(Jc,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===t,onChange:a})]})})),Zc=["От 1 дня","До 365 дней"],Qc=x((({days:e,setDays:t})=>p("div",{className:"order-1",children:[u(me,{size:"text-m",font:"font-light",children:"Срок аренды"}),u(ut,{min:1,max:365,value:e,items:Zc,onChange:t})]}))),ed=x((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:l,safeBoxCases:n=[],selectedBoxSize:a,onSelectedBoxSize:i})=>p("div",{className:"flex flex-col sm:flex-row gap-4 order-1",children:[u("div",{className:"flex-1 min-w-0",children:u(Gc,{data:e,fieldLabel:"volume",selected:t,setSelected:l,label:"Размер",placeholder:"Выберите размер"})}),u("div",{className:"flex-1 min-w-0",children:u(Gc,{data:n,fieldLabel:"safeBoxCasesSize",selected:a,setSelected:i,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),td=x((({regions:e,selectedRegion:t,branches:l,selectedBranch:n,days:a,selectedCaseVolume:i,selectedBoxSize:r,safeBoxCases:s,caseVolumes:o,onChange:c,onClick:d})=>p("div",{className:"contents sm:block flex-1 space-y-xl",children:[u(Yc,{regions:e,selectedRegion:t,onSelectedRegion:e=>c({selectedRegion:e}),branches:l,selectedBranch:n,onSelectedBranch:ld(c)}),u(Qc,{days:a,setDays:e=>c({days:e})}),u(ed,{caseVolumes:o,selectedCaseVolume:i,onSelectedCaseVolume:nd(c),safeBoxCases:s,selectedBoxSize:r,onSelectedBoxSize:e=>c({selectedBoxSize:e})}),u("div",{className:"order-4",children:u(me,{size:"text-l",font:"font-light",color:"text-secondary-text",children:"Тип договора"})}),p("div",{className:"contents sm:flex justify-between items-center",children:[u(qc,{className:"mb-4 sm:mb-0"}),u(se,{text:"Офисы на карте",version:"primary",onClick:d,className:"order-6"})]})]}))),ld=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},nd=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},ad=x((({days:e,tariffs:t=[]})=>{const l=rd(e,t),n="На рисунке изображена пачка листов\nформата А4";return p("div",{className:"contents sm:flex flex-col justify-between order-2",children:[p("div",{className:"flex flex-col sm:flex-row gap-x-11 gap-y-7 order-5 sm:order-none py-7 sm:py-0 border-t border-main-divider sm:border-none",children:[id("Аренда за",e),id("Цена",l+" ₽")]}),u("span",{className:"sm:hidden order-3 mb-2 text-s-light text-secondary-text",children:n}),p("div",{className:"flex flex-col items-center gap-3 order-3 sm:order-none mb-6 sm:mb-0 bg-primary-main py-3 sm:p-8 text-center",children:[u(Vt,{image:{icon:"PackA4Icon"},className:"sm:h-[246px]"}),u("span",{className:"hidden sm:inline text-s font-light text-white opacity-80 whitespace-pre-line",children:n})]})]})})),id=(e,t)=>p("div",{className:"flex justify-between items-center gap-y-1 sm:flex-col sm:items-start",children:[u("div",{className:"text-l font-light text-secondary-text",children:e}),u("span",{className:"text-l sm:text-h3 text-primary-text",children:t})]}),rd=(e,t)=>{const l=sd(e);return e*(t?.find((e=>e.tariffType===String(l)))?.tariffValue||0)},sd=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},od=(e,t)=>e.find((e=>e.branchCode===t)),cd=x((e=>{const{regions:t,data:l,branches:n,onChange:i,onClick:r}=e;a((()=>{i({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[l.selectedRegion,i]);const s=od(n,l.selectedBranch),o=dd(s?.safeBoxCaseVolumes),c=md(s?.safeBoxCaseVolumes,l.selectedCaseVolume)?.safeBoxCases,d=hd(c,l.selectedBoxSize);return p("div",{className:"flex flex-col sm:flex-row gap-x-9 align-top mb-6",children:[u(td,{...l,regions:t,onClick:r,branches:n,caseVolumes:o,safeBoxCases:c,onChange:i}),u(ad,{days:l.days,tariffs:d})]})})),dd=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],md=(e,t)=>e?.find((e=>e.volume===t)),hd=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs,ud=[];const pd=async e=>await A(e,{method:"GET"})||ud,xd=x((({title:e,footnote:t,className:l="",...a})=>{const[r,s]=n(!1),o=i((()=>s((e=>!e))),[]),[c,d]=n({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26}),m=L(),h=gd(c.selectedRegion,m),x=function(e){const{data:t}=_(e?`/api/v1/safeboxes?regionCode=${e}`:null,pd);return t||ud}(h),g=i((e=>d((t=>({...t,...e})))),[d]),f=(b=od(x,c.selectedBranch)||x,Array.isArray(b)?b.map((e=>e.gpsLatitude&&e.gpsLongitude?[e.gpsLatitude,e.gpsLongitude]:[])):b?.gpsLatitude&&b?.gpsLongitude?[[b.gpsLatitude,b.gpsLongitude]]:[]);var b;return p(S,{className:l,defaultPadding:"",...a,children:[p("div",{className:"p-4xl",children:[e?u(I,{title:e,headingType:"h3",as:"h2",className:"text-primary-text mb-s text-center"}):null,u(cd,{regions:m,branches:x,data:{...c,selectedRegion:h},onClick:o,onChange:g}),t?u(de,{size:"text-s",font:"font-light",children:t}):null]}),f.length&&r?u(dc,{points:f,className:"h-[640px]"}):null]})})),gd=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e,fd=e=>Boolean(e?.icon||e?.src),bd=({styleMap:e,isMainButton:t,version:l})=>(n,a,i)=>{const{label:r,description:s,button:o,items:c,isDotted:d}=n;return p("div",{className:w("relative flex flex-col items-center text-center justify-between whitespace-pre-line overflow-hidden space-y-3xl",vd(i.length)),children:[p("div",{className:"text-center space-y-xs",children:[r?u("div",{children:u(me,{size:"text-h6",children:r})}):null,p("div",{className:"flex flex-col items-center gap-3xs",children:[s?u("div",{className:e.description,children:s}):null,u(Ma,{className:e.description,items:c,listItemSize:"M",isDotted:d})]})]}),o?.text&&!t?u(se,{className:"box-border py-s w-full max-w-60 mt-auto",version:l,...o,children:o?.text}):null]},String(a))},vd=e=>e<5?"w-[276px]":"w-[200px]",yd={description:"text-white/80 text-l font-light group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconText:"text-white group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconBackground:"bg-white/30 group-data-primary:bg-main-divider",iconConnector:"bg-white group-data-primary:bg-secondary-light",dot:"bg-white/80 group-data-primary:bg-secondary-text"},Nd=x((({className:e="",showLines:t=!0,steps:l=[],buttons:n,size:a="normal",version:i="primary",stepVersion:r="gray",title:s,...o})=>{const c=l.length>3,d=yd,m=(e=>e?"":"opacity-0")(t),h=(e=>e<5?"px-24":"px-16")(l.length),x=Boolean(n?.every((e=>e?.text)));return p(S,{className:w("box-border flex flex-col items-center overflow-hidden gap-y-3xl",e),defaultPadding:"p-6xl",version:i,...o,children:[s?u(I,{headingType:"h4",className:"text-center",title:s}):null,l?.length?p("div",{className:"box-border space-y-lg",children:[u("div",{className:w("flex items-center",h),children:yo(u("div",{className:w("h-0.5 w-full bg-secondary-light flex-1",m)}))(l.map(wd(d,a,r)))}),u("div",{className:w("flex justify-between",c?"gap-x-3":"gap-x-20"),children:l.map((g={styleMap:d,isMainButton:x,version:i},(e,t,l)=>{const{type:n}=e;if("default"!==n&&"rte"!==n)return null;switch(n){case"default":return bd(g)(e,t,l);case"rte":return u("div",{className:w("text-center",vd(l.length)),children:u(Ea,{__html:e.__html})},String(t));default:return null}}))})]}):null,Qt(n)]});var g})),wd=(e,t,l)=>({icon:n},a)=>{const i="secondary"===l?"white":"color";return u(S,{defaultPadding:"",className:`${kd(t)} flex justify-center items-center text-center rounded-full box-border z-10`,version:l,children:fd(n)?u(Vt,{image:{...n,iconVersion:n.iconVersion||i},width:"48",height:"48"}):u("span",{className:w("text-h4","transparent"===l?e.iconText:Sd(l)),children:a+1})},String(a))},kd=e=>"normal"===e?"h-24 w-24":"h-16 w-16",Sd=e=>"secondary"===e?"group-data-primary:text-white":"text-secondary-text",Cd=x((({className:e,version:t,gap:l=14,padding:n=16,showDots:a=!0,minHeight:i,children:r,onVisibleIndicesChange:s,listType:o="horizontal-list"})=>{const c=Array.isArray(r)?r.length:0,[d,m]=ea({itemCount:c,onVisibleIndicesChange:s}),[h]=m.visibleIndicesRange;return p("div",{className:w(e,"vertical-list"===o?"relative h-full":""),children:[u(Wn,{containerRef:d,activeIndex:h,visibleItemCount:1,gap:l,padding:n,onVisibleIndicesChange:m.handleVisibleIndicesChange,listType:o,minHeight:i,children:r}),a?u(qn,{containerRef:d,activeIndex:h,dotCount:c,listType:o,version:t}):null]})})),Id=x((({listType:e,showDots:t,options:l,version:n,...a})=>u(S,{version:n,defaultPadding:"p-0",...a,children:u(Cd,{listType:e,showDots:t,version:n,children:Fn({...a,options:l})})})));Id.childrenTypes={exclude:["SwipeListControlBlock"]};const Td="hidden sm:flex absolute z-40 top-0",Bd=x((({className:e,items:t=[],value:l,onChange:n,tabsType:a})=>{const[i,r]=ea({itemCount:t?.length||0});return p("div",{className:w("relative overflow-x-auto no-scrollbar",e),role:"tablist",children:[u(Wn,{containerRef:i,snapAlign:"snap-start",onVisibleIndicesChange:r.handleVisibleIndicesChange,children:t.map(Wo(l,n,a))}),r.canScrollLeft?u(Nl,{className:w("left-6",Td),onClick:r.scrollLeft}):null,r.canScrollRight?u(wl,{className:w("right-6",Td),onClick:r.scrollRight}):null]})})),Rd=({tabsMode:e,...t})=>{switch(e){case"wideScreen":return u(Ko,{...t});case"centered":return u("div",{className:"flex",children:u(Ko,{className:"m-auto p-xs rounded-md bg-main-gray",tabsType:"rounded",...t})});case"scrollable":return u("div",{className:"flex",children:u(Bd,{className:"m-auto",tabsType:"underlined",...t})});default:return null}},Pd=x((({className:e="",isSticky:t,tabs:l=[],tabsMode:s,...o})=>{const c=r((()=>l.map(Vd)),[l]),[d,m]=n(0);a((()=>{l&&l[0]&&Md(l[0])}),[]),a((()=>{const e=l[d];"group"===e?.type&&b.subject("tab",{type:e.type,label:e.ref})}),[l,d]);const h=i((e=>{const t=c.indexOf(e);m(t),Md(l[t])}),[l,c]);return u(S,{className:w(t?"sticky top-1 z-20":"",e),defaultPadding:"p-0",...o,children:Rd({items:c,value:c[d],tabsMode:s,onChange:h})})})),Md=e=>{"group"===e.type&&b.fire("tab",{type:e.type,label:e.ref}),"link"===e.type&&b.fire("tab",{type:e.type,label:e.href})},Vd=e=>"group"===e?.type?{text:e.title}:e,zd=x((({isOpen:e,onClick:t})=>p(se,{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(je,{name:e?"ArrowUpIcon":"ArrowDownIcon",className:"ml-s",iconVersion:"white",width:"20",height:"20"})]}))),_d={Buttons:({buttons:e})=>Qt(e),Img:({image:e})=>e?.src?u(Vt,{image:e}):null,List:({isDotted:e,...t})=>u(Ma,{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 font-light",children:t}):null]}),Table:x((({isVisible:e,displayTable:t,dataUrl:l,pdfUrl:n,isOpen:a})=>e?u(zd,{isOpen:a,onClick:()=>{t({dataUrl:l,pdfUrl:n})}}):null))},jd=({rowIdx:e,cellIdx:t,setTableInner:l,tableInner:i,openTableInnerIdx:r,setOpenTableInnerIdx:s})=>(o,c)=>{const[d,m]=n(!0);a((()=>{t===r&&i||m(!0)}),[i,r]);return p("div",{className:"Table"===o?.tableCellType?"ml-5xl":"first:pt-lg last:pb-lg pl-5xl",children:[c>0?u("div",{className:"h-5"}):null,Ad({cell:o,cellProps:{rowIdx:e,cellIdx:t,fieldIdx:c,displayTable:e=>{m(!1),s(t),l(e)},isVisible:d}})]},String(c))},Ad=({cell:e,cellProps:t})=>{if(!e)return null;const{tableCellType:l,...n}=e;if(!l||!(l in _d))return null;return u(_d[l],{...t,...n})},Dd=x((({cells:e,rowIdx:t,cellIdx:l,setTableInner:n,tableInner:a,openTableInnerIdx:i,setOpenTableInnerIdx:r})=>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(jd({rowIdx:t,cellIdx:l,setTableInner:n,tableInner:a,openTableInnerIdx:i,setOpenTableInnerIdx:r})):null}))),$d=x((({rows:e})=>{const t=e?.[0]?.length??0,[l,n]=vl({itemCount:t,visibleItemCount:5});return p("div",{children:[e?.map(Ld(l)),kl({...n,btnClass:["left-3 top-20","right-3 top-20"],className:""})]})})),Ld=e=>(t,l)=>{if(!t?.length)return null;const[n,...a]=t,i=[...Array(e).keys()].reduce(((e,t)=>140*(a?.[t]?.cols?.length??1)+e),0),r=["flex duration-1000 text-center",0!==l?"font-normal":"font-light"].join(" ");return p("div",{className:"flex border-main-divider border border-t-0 border-x-0 border-solid",children:[n?.data?u("div",{className:"text-xl font-light w-[214px] py-lg ",children:n.data}):null,u("div",{className:"flex flex-grow overflow-hidden",children:u("div",{className:r,style:{transform:`translateX(-${i}px)`},children:a?.map(((t,l)=>p("div",{className:"flex flex-col flex-grow gap-s justify-center py-xl odd:bg-main-divider",children:[t?.data?u("div",{className:"text-xl font-light",children:t.data}):null,t?.cols?Od(t.cols,e):null]},`row${l}`)))})})]},String(l))},Od=(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-20 text-h6 mr-lg first:ml-3xl",children:e},String(t))))}):null,Ed=x((({activeTabIndex:e,items:t})=>{const[l,a]=n({}),r=i((e=>a((t=>({...t,[e]:!t[e]})))),[]);return u("div",{children:t.map(((t,n)=>{const a=`activeTabIdx:${e}-tableIdx:${n}`;return p("div",{className:"w-full",children:[p("div",{className:"flex p-4 bg-gray text-center justify-center cursor-pointer relative",onClick:()=>r(a),children:[u(me,{size:"text-xl",font:"font-light",children:t.title}),u(Vt,{image:{icon:l[a]?"PlusIcon":"MinusIcon"},className:"absolute right-[22px]",width:"24",height:"24"})]}),u("div",{className:"w-full pl-2 overflow-hidden transition-height duration-500 ease-in-out "+(l[a]?"h-0":""),children:u("div",{className:"relative",children:u($d,{rows:t.rowsData})})})]},a)}))})})),Fd=x((({currencies:e,linkToPDF:t,activeTabIndex:l,setActiveTabIndex:n})=>p("div",{className:"flex justify-between w-full px-s",children:[e&&e.length>1?u("div",{className:"flex bg-secondary-light p-2xs rounded-md",children:e.map(((e,t)=>u("div",{className:"rounded-md text-xl font-light px-m py-s cursor-pointer "+(t===l?"bg-primary-main text-white":"text-secondary-text"),onClick:()=>n(t),children:e||t+1},e)))}):null,t?u(se,{href:t,version:"secondary",target:"_blank",appendLeft:u(je,{name:"DocDownloadIcon",iconVersion:"color",className:"mr-3xs",width:"20",height:"20"}),text:"Скачать в PDF"}):null]})));async function Ud(e){const t=await fetch(e);return await t.json()}const Hd=x((({dataUrl:e,pdfUrl:t,onClick:l})=>{const{tableData:a}=function(e){const{data:t}=_(function(e){return`/wcms-resources/${e||"tariffs-inner-table-data"}.json`}(e),Ud);return t||{}}(e),[r,s]=n(0),o=i((e=>s(e)),[]),c=a?.[r]?.items??[],d=a?.map((e=>e.currency??""));return p("div",a?{className:"bg-white z-10",children:[u(Fd,{currencies:d,activeTabIndex:r,setActiveTabIndex:o,linkToPDF:t}),u(Ed,{activeTabIndex:r,items:c}),u(zd,{onClick:l,isOpen:!0})]}:{className:"my-5 text-h6 text-center",children:[u("p",{children:"Данных нет"}),u(zd,{onClick:l,isOpen:!0})]})})),Xd=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(Hd,{...t,onClick:l})}):null]}))),Wd=x((({row:{header:e,data:t},activeIndex:l,rowIdx:a,...r})=>{const[s,o]=n(void 0),c=i((e=>o(e)),[]),[d,m]=n(void 0),h=i((e=>m(e)),[]);return p(Xd,{onHideContentClick:()=>o(void 0),tableInner:s,...r,children:[u("div",{className:"text-s py-lg 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(Vt,{className:"mr-m max-w-6",image:e.icon,width:"24",height:"24"}):null,e?.title?u("div",{className:"text-m font-light",children:e?.title}):null]})}),t?.length?u(Ii,{activeIndex:l,columnWidth:360,version:"tariff",children:t.map(((e,t)=>u(Dd,{cells:e,rowIdx:a,cellIdx:t,setTableInner:c,tableInner:s,openTableInnerIdx:d,setOpenTableInnerIdx:h,...r},String(t))))}):null]})})),Kd=x((({className:e="",title:t,description:l,rowHeaders:n,tariffsColumns:a,hiddenRowsNum:i=0,...r})=>{const s=a?.map((({data:e})=>e))||[],o=n?.map(((e,t)=>({header:e,data:s.map((e=>e?.[t]||[]))}))),c=s.length,[d,m]=vl({itemCount:c,visibleItemCount:2}),h=(o||[]).map(((e,t)=>u(Wd,{row:e,activeIndex:d,rowIdx:t,...r},String(t)))),[x,g]=i>0?[h.slice(0,-i),h.slice(-i)]:[h,[]];return p(S,{className:w("overflow-hidden relative space-y-xl",e),defaultPadding:"p-6xl",...r,children:[u(al,{title:t,description:l,headlineVersion:"M",isPadding:!1}),i>0?u(hi,{renderFoldableSection:({isUnfolded:e})=>p(Gd,{controls:m,children:[x,u(ui,{isUnfolded:e,children:g})]}),renderFoldButton:Wi}):u(Gd,{controls:m,children:h})]})})),Gd=x((({children:e,controls:t})=>{const{isScrollAvailable:l}=t;return p("div",{role:"table",children:[p("div",{className:"relative",children:[e,kl({...t,btnClass:["top-28","top-11"],className:"right-7"})]}),l?u("div",{className:"absolute top-0 right-0 bottom-0 w-20 bg-opacity-to-white"}):null]})})),Yd=x((({className:e="",title:t,description:l,iconVersion:n,image:a,__html:i,items:r=[],...s})=>p(S,{className:w("flex gap-3 sm:gap-4 bg-white group-data-secondary:bg-primary-main/10",e),...s,children:["small"===n?u("div",{className:"mt-1",children:Jd()}):null,"big"===n?qd(a):null,p("div",{className:"flex flex-col w-fit gap-1 sm:gap-2",children:[t?u(me,{size:"text-l",font:"font-normal",color:"text-primary-text group-data-secondary:text-white",children:t}):null,l?Zd(l):null,r?.length?Qd(r,!0):null,i?u(Ea,{__html:i}):null]})]}))),Jd=()=>u("div",{className:"rounded-full h-4 w-4 text-center text-xs font-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main",children:"i"}),qd=e=>e?.src?u(Vt,{className:"h-fit flex-shrink-0",image:e}):null,Zd=e=>u(de,{size:"text-s",font:"font-light",color:"text-secondary-text group-data-secondary:text-white",children:e}),Qd=(e,t)=>u("ul",{className:w("text-secondary-text group-data-secondary:text-white/80",t?"list-disc pl-6":""),children:e.map(((e,t)=>u("li",{children:u(me,{size:"text-s",font:"font-light",children:e})},`listItem-${t}`)))}),em=x((({className:e,padding:t,headlineVersion:l="S",listItemSize:n="M",...a})=>u(S,{className:e,padding:"p-0",...a,children:u(ti,{className:"h-full",defaultPadding:"p-xl",padding:t,headlineVersion:l,listItemSize:n,...a})}))),tm=x((({className:e="",gap:t="",isPadding:l=!1,isInnerPadding:n=!0,version:a="transparent",isTheme:i=!1,...r})=>u(S,{className:w("relative flex flex-col",mo[t],e),defaultPadding:l?"p-6xl":"",version:a,isTheme:i,...r,children:Fn({...r,extraProps:{className:"w-full",padding:n?"":"p-0"}})})));tm.childrenTypes=[];const lm=e=>(e=>{const t="col-span-",l=e?.split(/\s+/).find((e=>e.startsWith(t)));return l?parseInt(l.substring(t.length),10):12})(e)<10?"py-6 px-11":"py-12 px-32",nm=x((({className:e,title:t,url:l,previewImg:n,...a})=>{const i=Y();return p(S,{className:e,defaultPadding:lm(e),...a,children:[u(al,{title:t,headlineVersion:"M"}),l?u("video",{className:"m-auto w-full object-fill",preload:"metadata",poster:W(i)(n?.src),style:{maxHeight:524},controls:!0,children:u("source",{src:W(i)(l)})}):null]})})),am={ApplicationForm:Ht,BenefitsBlock:Gt,Bonus:il,BonusBenefitsBlock:pl,BusinessBlock:fl,ButtonsBlock:bl,Calculator:Rn,CardTransfer:An,Carousel:ia,CarouselBankHistoryCard:ra,CarouselCard:ma,CarouselCatalogCard:ua,CarouselEventCard:ga,CarouselInvestmentCard:Na,CarouselLinks:Ca,CarouselProductCard:Va,CarouselProgramsCard:ni,CarouselRecommendationCard:di,CarouselRichTextCard:mi,CarouselTariffsCard:gi,ComparisonTable:Di,ContactsBlock:Li,DepositFiltration:lr,ErrorBlock:ar,ExchangeRateTile:Ar,Footer:ks,GracePeriod:Ss,Header:co,Headline:al,HorizontalLayout:ho,ImgBlock:uo,InsuranceAmountBlock:bo,InvestmentInfo:ko,LinkDocs:zo,MobileAppTile:Do,MortgageFiltration:Zo,OfficeMap:Nc,OfficeServicesBlock:wc,ParagraphBlock:Sc,PictureText:Tc,Placeholder:Bc,ProductBlock:zc,ProductGallery:_c,ProductTile:Ac,PromoTile:Dc,RepresentativeOfficeInfo:Lc,RichTextBlock:Uc,RollupItem:Xc,SafeDepositRental:xd,StepsBlock:Nd,SwipeListControlBlock:Id,Tabs:Pd,TariffsTable:Kd,TextBlock:Yd,Tile:em,VerticalLayout:tm,Video:nm,ExchangeRateOffice:hr};const im=["Header","Footer"],rm=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function sm(e=globalThis){const t=s(new Map);a((()=>N.subscribe("intersection",(({block:e,intersection:l})=>{t.current&&t.current.set(e,l)}))),[]),a((()=>{const l=((e,t=600)=>{let l;const n=(...a)=>{n.dispose(),l=setTimeout((()=>{e(...a)}),t)};return n.dispose=()=>{l&&clearTimeout(l)},n})((()=>{!function(e){const t=`#${l=e?.anchor,l?.replace("#","")||""}`;var l;globalThis.location?.hash!==t&&globalThis.history?.replaceState(globalThis.history?.state,"",t)}(globalThis.scrollY>3*globalThis.innerHeight/4?function(e){const t=e.filter((([e])=>!im.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[l]=t.length>0?Ol(rm)(t):[];return l}([...t.current||[]]):void 0)}),100);return e.addEventListener("scroll",l),()=>{l.dispose(),e.removeEventListener("scroll",l)}}),[e])}const om="cookie",cm=x((({termLink:e,personalDataPolicyLink:t})=>{const[l,{setTrue:n,setFalse:a}]=Ve();Kr((()=>{globalThis.localStorage?.getItem(om)||n()}),[],3e3);const r=i((()=>{globalThis.localStorage?.setItem(om,"true"),a()}),[]);return l?u("div",{className:"container fixed left-0 right-0 bottom-0 z-50",children:p("div",{className:"bg-white m-xl p-xl rounded-md flex sm:items-center shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:[u("div",{className:"sm:flex-1",children:p(de,{size:"text-s",font:"font-light",color:"text-primary-text",children:["АО «Россельхозбанк» использует",u(xa,{isRemote:!0,className:dm(e?.href),...e,children:"cookie"}),"(файлы с данными о прошлых посещениях сайта) для персонализации сервисов и удобства пользователей. Вы можете запретить сохранение cookie в настройках своего браузера.",u(xa,{isRemote:!0,className:dm(t?.href),...t,children:"Обработка Ваших персональных данных"}),"производится в соответствии с требованиями Федерального закона от 27.07.2006 № 152-Ф3 «О персональных данных»."]})}),u("div",{className:"ml-s sm:ml-0 w-24 flex justify-end",children:u(Xr,{className:"bg-main-gray rounded-md",onClose:r})})]})}):null})),dm=e=>w("inline mx-1",e?"text-green-dark":"");const mm=x((()=>{const[e,{push:t,pop:l,clear:r}]=function(e=[]){const[t,l]=n(e),a=i((e=>l((t=>[...t,e]))),[]),r=i((()=>l((e=>e.slice(0,-1)))),[]),s=i((e=>l((t=>t.filter((t=>t!==e))))),[]),o=i((()=>l([])),[]);return[t,{setList:l,push:a,pop:r,remove:s,clear:o}]}(),s=i((()=>{for(const t of e)t.onClose&&t.onClose();r()}),[e]),o=i((()=>{const t=e[e.length-1];t?.onClose&&t.onClose(),l()}),[e]);return a((()=>b.subscribe("dialog",(e=>{switch(e.type){case"open":t(e);break;case"close":e.all?s():o();break;default:!function(e){throw new Error(e)}(e)}}))),[s,o]),a((()=>{const e=({key:e})=>{"Escape"===e&&o()};return globalThis.document?.addEventListener("keydown",e),()=>{globalThis.document?.removeEventListener("keydown",e)}}),[o]),a((()=>{e.length?globalThis.document?.body.classList.add("no-scrollbar"):globalThis.document?.body.classList.remove("no-scrollbar")}),[e]),e.length?u("div",{className:"fixed inset-0 z-50",role:"dialog",children:e.map((({dialog:t,id:l},n)=>u("div",{className:w("absolute inset-0 overflow-x-hidden overflow-y-scroll no-scrollbar",n===e.length-1?"":"hidden"),children:t},String(l||n))))}):null})),hm=h();const um=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:pm()}))),pm=()=>{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"})]})},xm=x((({className:e=""})=>{const t=function(e){const[t,l]=n(0);return a((()=>{(async()=>{const[t]=await hm.getLikeCount(e);l(t?.value||0)})()}),[e]),{likeCount:t,like:i((async()=>{l(await hm.like(e))}),[e]),dislike:i((async()=>{l(await hm.dislike(e))}),[e])}}(Y().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(um,{onClick:G(t.like),ariaLabel:"Поставить отметку «лайк»"}),u(um,{onClick:G(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),u("span",{className:"select-none",children:t.likeCount})]})})),gm=x((({className:e,blocksRegistry:t,blockDecorator:l,data:n={}})=>{const{style:a,slots:i,likeControl:r,colorPalette:s="pc"}=n,o={key:"",page:n,blocksRegistry:t,blockDecorator:l,parent:n};return sm(),p("div",{children:[p("section",{className:w("relative @container",a,e),"data-theme":s,children:[i?.header?u("div",{className:"relative z-10 mb-5 shadow-[0_8px_32px_0px_#00000014]",children:En(i?.header,{...o,slotName:"header"})}):null,p("div",{className:"container @lg:grid @lg:grid-cols-12 @lg:gap-1",children:[Fn({block:n,options:o,extraProps:{className:"scroll-mt-12"}}),En(i?.footer,{...o,slotName:"footer"})]}),r?u("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:u(xm,{className:"rounded-tl-3xl sticky bottom-0 pointer-events-auto"})}):null]}),u(mm,{}),u(cm,{termLink:{href:"/pd-policy#cookie",target:"_blank"},personalDataPolicyLink:{href:"/pd-policy",target:"_blank"}})]})}));gm.childrenTypes=[],gm.slots=()=>["header","footer"];e.Blocks=am,e.ContentPage=gm,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=G,e.joinList=yo,e.packageVersion="0.13.2",e.projectSettings=d,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=X,e.useRouter=Y,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniBlocks={})}(this,(function(e){"use strict";let t;const l=e=>(...l)=>t[e](...l),n=l("useState"),a=l("useEffect"),i=l("useCallback"),r=l("useMemo"),s=l("useRef");const o=e=>e&&!e.endsWith("/")?`${e}/`:e,c={PROD_BRANCH:"master"},d=new class{_=c;setup(e){this._=e}get TEST_BRANCH(){return this._.TEST_BRANCH}get RC_BRANCH(){return this._.RC_BRANCH}get PROD_BRANCH(){return this._.PROD_BRANCH||c.PROD_BRANCH}get FORCED_DRAFT_FLOW(){return this._.FORCED_DRAFT_FLOW}get ASSIST_PROJECT_ID(){return this._.ASSIST_PROJECT_ID}get SITEMAP(){return this._.SITEMAP}get FOOTER(){return this._.FOOTER}get CHAT_BOT(){return this._.CHAT_BOT}get CDN(){return o(this._.CDN)}get BASE_PATH(){return o(this._.BASE_PATH)}get YANDEX_MAP_API_KEY(){return this._.YANDEX_MAP_API_KEY}get YANDEX_METRIKA_ID(){return this._.YANDEX_METRIKA_ID}},m="likesToken";function h(){async function e(){try{const e=JSON.parse(globalThis.localStorage?.getItem(m)||"");if(e?.token)return e}catch(e){}try{const e=await fetch("/assist/v1/public/auth",{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({prefix:"guest"})}),{token:t,name: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/${d.ASSIST_PROJECT_ID}/nodes/likes`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l},body:JSON.stringify({node_ids:t})}),{likes:n}=await e.json();return n||[]}catch(e){return console.error(e),[]}},like:async function(t){if(!t)return 0;const{token:l,name:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${d.ASSIST_PROJECT_ID}/nodes/like`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:n},body:JSON.stringify({node_id:t,user_name:n})}),{likes:a}=await e.json();return a||0}catch(e){return console.error(e),0}},dislike:async function(t){if(!t)return 0;const{token:l,name:n}=await e();try{const e=await fetch(`/assist/v1/public/projects/${d.ASSIST_PROJECT_ID}/nodes/unlike`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json",Authorization:l,UserID:n},body:JSON.stringify({node_id:t,user_name:n})}),{likes:a}=await e.json();return a||0}catch(e){return console.error(e),0}}}}const u=(...e)=>globalThis._uni._jsx(...e),p=(...e)=>globalThis._uni._jsxs(...e),x=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:g(e)),t._tmpl},g=e=>{function t(t,l){const{children:n,...a}=t||{},i=l?.slots?.default,r=n||i&&i();return e(Object.assign(a,r&&{children:r}),l)}return t.inheritAttrs=!1,t};class f{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 b=new f;function y(e,{sensitivity:t,rootRef:l}={}){const n=s(null),i=r((()=>({threshold:v(t),root:l?.current})),[t,l?.current]);return a((()=>{if(!n.current)return;const t=new IntersectionObserver(e,i);return t.observe(n.current),()=>{t.disconnect()}}),[e,i]),n}function v(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 N=new f;const w=(...e)=>e.flatMap((e=>e)).filter(Boolean).join(" "),S={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,defaultPadding:r="p-xl",padding:s,block:o,tag:c="section",role:d,children:m})=>{const h=c,p=function(e){return y(i((t=>{if(!e||!t?.length)return;const l=t[t.length-1];N.fire("intersection",{block:e,intersection:l})}),[e]),{sensitivity:1})}(o),[x,g]=n(!1);a((()=>b.subscribe("tab",(e=>{g(Boolean(e.label&&o?.labels?.length&&!o.labels.includes(e.label)))}))),[o]);const f=t&&l;return u(h,{className:w("@container font-sans",f?"group":"",S[t],x?"hidden":"",s||r,e),...f?{"data-ver":t}:{},...o?.anchor?{id:o.anchor,ref:p}:{},role:d,children:m})})),C={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},I=x((({className:e="",headingType:t="h3",as:l="h3",title:n,children:a})=>u(l,{className:w("font-sans m-0",C[t],e),children:n||a}))),T=e=>e,B=(e,t)=>{const[l,a]=n(e),[r,o]=n(!1),[c,d]=n({}),m=s({}),h=i(((e,t)=>{const{parse:n=T,format:i=T}=t||{};return m.current||(m.current={}),m.current[e]||=t=>{a((l=>({...l,[e]:n(t)}))),d((t=>({...t,[e]:!0})))},{value:i(l[e]),isDirty:r||c[e],onChange:m.current[e]}}),[l,r,c]),u=i((e=>{a(e),d(e)}),[]),p=i((()=>{a(e),o(!1),d({})}),[e]),x=i((e=>{e.preventDefault(),o(!0),t&&t(l)}),[t,l]);return[l,{isDirty:r||Object.values(c).some(Boolean),field:h,update:u,reset:p,onSubmit:x}]},R=e=>t=>t&&Object.entries(e).flatMap((([e,l])=>l(t[e])))||[],M=e=>!e?.length,P=e=>t=>l=>e(l)?[]:[t],V=e=>null!=e,z=new Map;function _(e,t,{fallback:l,cache:i}={}){const s=r((()=>j(e)),[e]),[o]=(e=>Boolean(e&&Array.isArray(e)&&1===e.length&&"string"==typeof e[0]))(s)?s:[],[c,d]=n(void 0),[m,h]=n(void 0);a((()=>{!s.some(V)||(async()=>{try{const e=await(o?((e,t=z)=>l=>{const n=t.get(l);if(V(n))return n;const a=e(l);return V(a)?t.set(l,Promise.resolve(a)):t.delete(l),a})(t,i)(o):t(...s));d(e),h(void 0)}catch(e){d(void 0),h(e)}})()}),[t,i,s]);const u=l&&o&&l[o];return{data:!c&&u?u:c,error:m,mutate:()=>Promise.resolve(void 0),isValidating:!1}}function j(e){return Array.isArray(e)?e:e instanceof Function?j(e()):[e]}async function A(e,t){try{return e?await D(e,t):null}catch(e){console.error(e)}return null}async function D(e,t){const l=await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}});return await l.json()}const $=[];function L(){const{data:e}=_("/api/v1/regions",D);return e||$}const E=()=>({open:(e,t={})=>b.fire("dialog",{type:"open",dialog:e,...t}),close:()=>b.fire("dialog",{type:"close"}),closeAll:()=>b.fire("dialog",{type:"close",all:!0})}),O=e=>Boolean(e?.includes(":")),F=(e,t)=>Boolean(e&&!O(e)&&(!t||"_self"===t)),U=e=>(e||"").replace(/\?.*/,"").replace(/\/$/,""),H=(...e)=>e.filter(Boolean).join("/").replace(/\/+/g,"/");var X=Object.freeze({__proto__:null,isURL:O,isLocalURL:F,isHash:e=>Boolean(e?.startsWith("#")),withoutQuery:U,joinPath:H});const W=e=>(t,l=d.BASE_PATH)=>{if(!t||O(t)||K(t,d.CDN))return t;const n=t.startsWith("/");return H(K(t,l)?"":l,n?"/":e.pathname?.split("/").slice(0,-1).join("/"),t)},K=(e,t)=>t&&e&&e.startsWith(t),G=(e,t)=>G._impl(e,t);function Y(){return Y._impl()}function J(e={}){const{isRemote:t,basePath:l}=e,n=Y(),{closeAll:a}=E();return e=>({...e,href:t&&!l?e.href:W(n)(e.href,l),"aria-label":e.text,onClick:G(i(e),e)});function i({href:e,target:l,onClick:i}){return r=>{i&&i(r),e&&!t&&F(e,l)&&(a(),r?.preventDefault(),n.push(e))}}}G._impl=e=>e,G.setup=e=>{G._impl=e},Y._impl=()=>({href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{},back:()=>{}}),Y.setup=e=>{Y._impl=e};const q={primary:"text-white bg-primary-main hover:bg-primary-hover active:bg-primary-active",secondary:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active",white:"text-primary-main bg-white hover:text-white hover:bg-primary-hover active:bg-white active:text-primary-main",link:"",transparent:"",gray:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active","":""},Z="bg-main-divider text-main-disabled",Q={primary:Z,secondary:Z,white:Z,link:"",transparent:"",gray:Z,"":""},ee="text-center font-sans select-none",te={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","":""},le=x((e=>{const{text:t,aboveText:l,appendLeft:n,appendRight:a,version:i="primary"}=e;return p("div",{className:w(ne(e),"flex gap-xs"),children:[n?u("div",{className:te[i],children:n}):null,ae(e)?p("div",{children:[l?u("div",{className:"text-xs font-light text-left",children:l}):null,u("div",{className:"text-left "+(l?"text-s -mt-3xs":"text-l"),children:t})]}):null,a?u("div",{className:te[i],children:a}):null]})})),ne=e=>{const{version:t,aboveText:l,rounded:n}=e;if("link"===t)return"";const a=""+(l?"py-2.5 px-9":"py-4 px-9");return["group/btn items-center justify-center",ae(e)?a:"h-12 w-12",n?"rounded-full":""].join(" ")},ae=({text:e,aboveText:t,appendLeft:l})=>Boolean(e||t||!l),ie=({className:e,rounded:t,version:l})=>["inline-block",ee,l?Q[l]:"",t?"rounded-full":"rounded-md",e].join(" "),re=({className:e,rounded:t,version:l})=>[ee,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border h-fit",l?q[l]:"",t?"rounded-full":"rounded-md",e].join(" "),se=x((({disabled:e,children:t,...l})=>{const n=J()(l),a=t??u(le,{...n});return u(e?ce:oe,{...n,children:a})})),oe=x((({className:e="",href:t,rel:l,target:n,ariaLabel:a,version:i,rounded:r,onClick:s,children:o})=>u("a",{className:re({className:e,version:i,rounded:r}),href:t,rel:l,target:n,"aria-label":a,role:t?"link":"button",onClick:s,children:o}))),ce=x((({className:e,ariaLabel:t,version:l,rounded:n,children:a})=>u("div",{role:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:ie({className:e,rounded:n,version:l}),children:a}))),de=x((({children:e,...t})=>u("p",{className:w("font-sans",Object.values(t)),children:e}))),me=x((({children:e,...t})=>u("span",{className:w("font-sans",Object.values(t)),children:e}))),he=x((({link:e})=>p(de,{size:"text-s",font:"font-light",color:"text-secondary-text",children:[u(me,{children:"Нажимая кнопку, вы подтверждаете согласие с "}),e?u(se,{href:e.href,ariaLabel:"условия передачи данных",target:e.target,className:"text-primary-main",children:u(me,{children:e.text})}):null]}))),ue=(e,t)=>{const{value:l,isDirty:n}=e,a=n?t(l):[];return{...e,errors:a,error:a[0]}},pe=x((({key:e,className:t="",inputClassName:l="",id:n,name:a,type:r="text",label:s,placeholder:o,value:c="",valid:d=!0,children:m,onChange:h,onFocus:x,onBlur:g,pattern:f})=>{const b=i((e=>{h&&h(e.target?.value||"")}),[h]),y=m?"pr-3xl":"",v=d?"border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text":"border-error";return p("div",{className:w("relative",t),children:[p("label",{children:[s?u("div",{className:"mb-xs",children:u(me,{size:"text-m",font:"font-light",children:s})}):null,u("input",{className:w("w-full border rounded-md text-primary-text outline-none p-m",y,v,l),id:n,name:a||n,placeholder:o,type:r,value:c,onInput:b,onFocus:x,onBlur:g,pattern:f},e)]}),m]})})),xe=x((({className:e,label:t,value:l="",error:n,onChange:a,onBlur:i})=>p("div",{className:e,children:[u(pe,{type:"text","aria-label":t,label:t,valid:Boolean(!n),value:l,onChange:a,onBlur:i}),u("div",{className:"h-2",children:n?u(me,{size:"text-xs",font:"font-light",color:"text-error",children:n}):null})]}))),ge=e=>"_"===e,fe=e=>/\d/.test(e),be=e=>ge(e)||fe(e),ye=[..."+7 (___) ___-__-__"],ve=ye.findIndex(ge),Ne=ye.map(((e,t)=>be(e)?ye.slice(0,t).filter(be).length:-1));const we=x((({children:e,onChange:t,...l})=>{const n=i((e=>t&&t(function(e){const t=e.replace(/\D/g,""),l=ye.map(((e,l)=>fe(e)?e:t.charAt(Ne[l])||e)),n=Ne.indexOf(t.length-1)+1;return(n?l.slice(0,Math.max(ve,n)):l).join("")}(e))),[t]);return u(pe,{onChange:n,onFocus:e=>n(e?.target?.value||""),...l,children:e})})),Se=x((({className:e,label:t,value:l,error:n,onChange:a,onBlur:i})=>p("div",{className:e,children:[u(we,{"aria-label":t,label:t,valid:Boolean(!n),value:l,onChange:a,onBlur:i}),u("div",{className:"h-2",children:n?u(me,{size:"text-xs",font:"font-light",color:"text-error",children:n}):null})]}))),ke="Некорректно заполненное поле",Ce=P((e=>null!=e&&""!==e))(ke),Ie=P((e=>"string"==typeof e&&e.length>1))(ke),Te=P((e=>"string"==typeof e&&(10===e.length||12===e.length)))(ke),Be=(Re=/^(\+7)?[\s-]?\(?[0-9]{3}\)?[\s-]?[0-9]{3}[\s-]?[0-9]{2}[\s-]?[0-9]{2}$/,P((e=>"string"==typeof e&&Re.test(e))))(ke);var Re;const Me=e=>p("div",{className:"sm:flex sm:justify-between sm:gap-lg",children:[p("div",{className:"sm:w-1/2 space-y-s",children:[u(xe,{className:"shrink-0 w-full",label:"Наименование организации",...ue(e("fullName"),Ce)}),u(xe,{className:"shrink-0 w-full",label:"Контактное лицо",...ue(e("name"),Ie)})]}),p("div",{className:"sm:w-1/2 space-y-s",children:[u(xe,{className:"shrink-0 w-full",label:"ИНН",...ue(e("inn"),Te)}),u(Se,{className:"shrink-0 w-full",label:"Телефон",...ue(e("phone"),Be)})]})]}),Pe=[{name:"Торговый эквайринг"},{name:"Мобильный эквайринг"},{name:"Интернет-эквайринг"},{name:"QR-эквайринг (СБП)"},{name:"Все виды эквайринга"}];function Ve(e=!1){const[t,l]=n(e),a=i((()=>l(!0)),[]),r=i((()=>l(!1)),[]),s=i((()=>l((e=>!e))),[]);return[t,{setValue:l,setTrue:a,setFalse:r,toggle:s}]}function ze(e){const t=s(null);return a((()=>{const l=l=>{t&&t.current&&l.target instanceof Node&&!t.current.contains(l.target)&&e()};return document.addEventListener("click",l),()=>{document.removeEventListener("click",l)}}),[e]),t}const _e={normal:"",color:"text-primary-main",black:"text-black",white:"text-black"},je=x((({className:e="",imageClassName:t="",name:l="",alt:n=`Иконка ${l}`,title:a=n,iconVersion:i="color",...r})=>{const s=Y(),o=W(s)(H(d.CDN,"/icons",`${l}.svg`));return"normal"!==i?u(De,{className:e,children:p("svg",{className:w(Ae(r.width),_e[i],"white"===i?"invert":"",t),...r,"aria-hidden":"true",children:[a?u("title",{children:a}):null,n?u("desc",{children:n}):null,u("use",{href:`${o}#icon`,xlinkHref:`${o}#icon`})]})}):(e.includes("h-")||(r.style={height:`${r.height}px`}),u("img",{className:e,src:o,alt:n,title:a,"aria-hidden":"true",...r}))})),Ae=e=>e?"":"w-full h-full",De=x((({className:e,children:t})=>e?u("div",{className:e,children:t}):t)),$e=x((({className:e="",label:t,options:l=[],value:n,valid:a=!0,isBorder:r=!0,placeholder:s="",onChange:o})=>{const[c,{setFalse:d,toggle:m}]=Ve(),h=ze(d),x=i((e=>{d(),o&&o(e)}),[o]);return p("div",{className:e,ref:h,children:[t?u("div",{className:"mb-xs",children:u(me,{size:"text-m",color:"text-primary-text",font:"font-light",children:t})}):null,p("div",{className:w("relative",c?"z-20":"z-10"),children:[p("div",{className:w("text-l flex justify-between items-center text-primary-text cursor-pointer",Oe(r,a)),onClick:m,children:[u("p",{className:"p-m pr-3xl h-14 overflow-hidden text-ellipsis whitespace-nowrap",children:Ee(n)||s}),u(je,{className:w("absolute right-3",c?"":"rotate-180"),name:"ArrowUpIcon",width:"16",height:"16"})]}),l?.length?u("div",{className:w("h-0",c?"":"overflow-hidden"),children:u("div",{className:"bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:l.map(Le(x,c,(e=>e.key===n?.key)))})}):null]})]})})),Le=(e,t,l)=>(n,a)=>p("div",{onClick:()=>{e(n)},className:"flex px-m py-s cursor-pointer hover:bg-main-divider pr-5xl relative",children:[u("span",{className:"min-h-6",children:Ee(n)}),u(je,{name:"DoneSimpleIcon",width:"16",height:"16",className:w("absolute right-4 pt-3xs",l(n)&&t?"":"hidden")})]},String(a)),Ee=e=>e?.text||e?.key||"",Oe=(e,t)=>w(e?"border rounded-md hover:border-primary-hover":"",t?" border-gray":"border-error"),Fe=x((({className:e="",error:t,...l})=>p("div",{className:e,children:[u($e,{...l,valid:!t}),u("div",{className:"h-2",children:t?u(me,{size:"text-xs",font:"font-light",color:"text-error",children:t}):null})]}))),Ue=({regions:e,field:t})=>p("div",{className:"border-b border-b-main-divider sm:border-none sm:flex sm:justify-between gap-lg ",children:[u("div",{className:"sm:w-1/2",children:u(Fe,{label:"Вид эквайринга",placeholder:"Выберите эквайринг",options:Pe.map((({name:e=""})=>({key:e,text:e}))),...ue(t("acquiringType"),Ce)})}),u("div",{className:"sm:w-1/2",children:u(Fe,{label:"Адрес",placeholder:"Выберите адрес",options:e.map((({code:e="",name:t=""})=>({key:e,text:t}))),...ue(t("region"),Ce)})})]}),He=x((({value:e=!1,text:t,type:l="checkbox",onChange:n})=>p("div",{role:l,"aria-checked":e,className:"flex justify-start items-center w-full cursor-pointer mb-s",onClick:()=>n&&n(!e),children:[u("div",{className:w("relative flex-shrink-0 duration-300 w-9 h-5 mr-s rounded-2xl",e?"bg-primary-main":"bg-main-divider"),children:u("div",{className:w("absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded-full",e?"left-1/2":"left-[5%]")})}),u(me,{size:"text-l",font:"font-light",color:"text-primary-text",children:t})]}))),Xe=e=>p("div",{children:[u(He,{text:"Хочу купить онлайн-кассу",...e("onlineCheckout")}),u(He,{text:"Хочу купить POS-терминал",...e("posTerminal")})]}),We=(e,t)=>{const l=re({className:"text-white",version:e?.version});return u("button",{type:"submit",className:w("p-m w-full sm:w-auto",l,t),children:e?.text?e.text:"Отправить заявку"})},Ke={acquiringType:{key:"Торговый эквайринг"},fullName:"",inn:"",name:"",phone:"",onlineCheckout:!1,posTerminal:!1},Ge=R({acquiringType:Ce,region:Ce,fullName:Ce,inn:Te,name:Ie,phone:Be}),Ye=x((e=>{const{button:t,link:l,onSubmit:n}=e,a=i((e=>{const{acquiringType:t,region:l,fullName:a,inn:i,name:r,phone:s,onlineCheckout:o,posTerminal:c}=e;M(Ge(e))&&n({typeForm:"acqr",region:l?.text||"",partnerComments:`Вид эквайринга=${t?.key||""}/Онлайн касса=${o}/POS-терминал=${c}`,fullName:a,inn:i,name:r,phone:s})}),[n]),[,{field:r,...s}]=B(Ke,a),o=L();return p("form",{className:"container space-y-m",onSubmit:s.onSubmit,children:[u(I,{headingType:"h6",title:"Вид эквайринга и регион",className:"sm:text-center"}),Ue({regions:o,field:r}),u(I,{headingType:"h6",title:"Данные организации",className:"sm:text-center"}),Me(r),Xe(r),We(t),u(he,{link:l})]})})),Je=e=>p("div",{className:"sm:flex sm:justify-between sm:gap-lg",children:[p("div",{className:"sm:w-1/2 space-y-s",children:[u(xe,{className:"shrink-0 w-full",label:"Контактное лицо",...ue(e("name"),Ie)}),u(xe,{className:"shrink-0 w-full",label:"ИНН",...ue(e("inn"),Te)})]}),p("div",{className:"sm:w-1/2 space-y-s",children:[u(Se,{className:"shrink-0 w-full",label:"Телефон",...ue(e("phone"),Be)}),u(xe,{className:"shrink-0 w-full",label:"Электронная почта",...ue(e("mail"),Ce)})]})]}),qe=({regions:e,field:t})=>u(Fe,{className:"w-full",label:"Регион",placeholder:"Выберите регион",options:e.map((({code:e="",name:t=""})=>({key:e,text:t}))),...ue(t("region"),Ce)}),Ze={name:"",phone:"",inn:"",mail:""},Qe=R({region:Ce,name:Ie,phone:Be,inn:Te,mail:Ce}),et=x((e=>{const{button:t,link:l,onSubmit:n}=e,a=i((e=>{const{region:t,name:l,phone:a,inn:i,mail:r}=e;M(Qe(e))&&n({typeForm:"bcrd",region:t?.text||"",name:l,phone:a,inn:i,mail:r})}),[n]),[,{field:r,...s}]=B(Ze,a),o=L();return p("form",{className:"container space-y-s",onSubmit:s.onSubmit,children:[qe({regions:o,field:r}),Je(r),We(t),u(he,{link:l})]})})),tt=[];const lt=async e=>await A(e,{method:"GET"})||tt,nt=["От 1 000 ₽","До 1 000 000 000 ₽"],at=["От 1 мес","До 15 лет"],it=e=>p("div",{className:"pb-2xs border-b border-b-main-divider sm:flex sm:justify-between sm:gap-lg sm:border-none sm:pb-0",children:[p("div",{className:"sm:w-1/2 space-y-s",children:[u(xe,{className:"shrink-0 w-full",label:"Наименование организации",...e("fullName")}),u(xe,{className:"shrink-0 w-full",label:"ИНН",...ue(e("inn"),Te)}),u(Se,{className:"shrink-0 w-full",label:"Телефон",...ue(e("phone"),Be)})]}),p("div",{className:"sm:w-1/2 space-y-s",children:[u(xe,{className:"shrink-0 w-full",label:"Годовая выручка, ₽",...ue(e("annualRevenue"),Ce)}),u(xe,{className:"shrink-0 w-full",label:"Контактное лицо",...ue(e("name"),Ie)}),u(xe,{className:"shrink-0 w-full",label:"Электронная почта",...e("mail")})]})]}),rt=(e,{normalize:t,format:l})=>{const{value:a,onFocus:r,onBlur:s,onChange:o}=e,[c,d]=n(!1),m=i((e=>{d(!0),r&&r(e)}),[]),h=i((()=>{d(!1),o&&o(t(a)),s&&s()}),[o,a]);return{value:c||!l?a:l(a),onFocus:m,onBlur:h}},st=(e,t,l)=>Math.max(t,Math.min(e,l)),ot=(e=0)=>(t=0)=>new Intl.NumberFormat("ru-RU",{minimumFractionDigits:0,maximumFractionDigits:e}).format(Number(t)||0);function ct(e){const t=(e||"").replace(/\D/g,""),l=parseInt(t,10);return Number.isNaN(l)?0:l}function dt({list:e=[],min:t,max:l,step:n,value:a=e[0]||t,disabled:i,onChange:r}){const s=e.length?e.indexOf(a):a,o={backgroundSize:`${(100*(s-t)/(l-t)).toFixed(2)}% 100%`};return p("div",{children:[e.length?u("div",{className:"absolute w-full flex justify-between -bottom-[3px] px-m",children:e.map(((e,t)=>u("div",{className:"w-2 h-2 rounded-full "+(s<=t||i?"bg-gray":"bg-primary-main")},String(t))))}):null,u("div",{className:"absolute inset-x-0 -bottom-1 px-m leading-[18px]",children:u("input",{className:"box-border w-full m-0 cursor-pointer slider relative z-10",style:o,type:"range",min:t,max:l,step:n,value:s,disabled:i,onInput:t=>{const l=ct(t.target?.value),n=e.length?e[l]:l;r&&r(n||0)}})})]})}const mt=1,ht=100,ut=x((e=>{const{className:t,title:l,items:n=[],list:a=[],min:r=(a.length?0:mt),max:s=(a.length?a.length-1:ht),step:o=1,value:c=a[0]||r,disabled:d=!1,onChange:m}=e,h=rt(e,{normalize:(e=0)=>a.length?pt(a)(e):st(e,r,s),format:ot()}),x=i((e=>{m&&m(ct(e.target?.value))}),[m]);return p("div",{className:t,children:[p("label",{className:"block relative",children:[l?u(me,{size:"text-m",font:"font-light",color:"text-primary-text",children:l}):null,u("input",{className:w("m-0 mt-xs font-sans text-h3 w-full h-14","border border-solid border-gray rounded-md outline-none","p-0 pl-m box-border","text-primary-text hover:border-primary-hover focus:border-primary-text","disabled:border-gray disabled:bg-main-divider"),disabled:d,onInput:x,...h}),dt({list:a,min:r,max:s,step:o,disabled:d,value:c,onChange:m})]}),xt(n)]})})),pt=e=>t=>e.reduce(((e,l)=>Math.abs(l-t)<Math.abs(e-t)?l:e)),xt=e=>u("div",{className:"flex justify-between my-xs",children:e.map(((e,t)=>u(me,{size:"text-s",font:"font-light",color:"text-secondary-text",children:e},String(t))))}),gt=e=>p("div",{className:"border-b border-b-main-divider sm:flex sm:justify-between gap-lg sm:border-none",children:[p("div",{className:"sm:w-1/2",children:[u("label",{children:u(me,{size:"text-m",font:"font-light",children:"Сумма кредита, ₽"})}),u(ut,{items:nt,min:1e3,max:1e9,...e("amount")})]}),p("div",{className:"sm:w-1/2",children:[u("label",{children:u(me,{size:"text-m",font:"font-light",children:"Срок кредита, месяцев"})}),u(ut,{items:at,min:1,max:180,...e("term")})]})]}),ft=({regions:e,branches:t,field:l})=>p("div",{className:"sm:flex sm:justify-between sm:gap-m sm:mb-2xl sm:border-none sm:pb-0",children:[u("div",{className:"sm:w-1/2",children:u(Fe,{label:"Регион",placeholder:"Выберите регион",options:e.map((({code:e="",name:t=""})=>({key:e,text:t}))),...ue(l("region"),Ce)})}),u("div",{className:"sm:w-1/2",children:u(Fe,{label:"Адрес",placeholder:"Выберите адрес",options:t.map((({branchCode:e="",address:t=""})=>({key:e,text:t}))),...ue(l("department"),Ce)})})]}),bt={amount:1e3,term:12,fullName:"",inn:"",name:"",phone:"",mail:"",annualRevenue:""},yt=R({annualRevenue:Ce,inn:Te,name:Ie,phone:Be,region:Ce,department:Ce}),vt=x((({button:e,link:t,onSubmit:l})=>{const n=i((e=>{const{amount:t,term:n,fullName:a,inn:i,name:r,phone:s,mail:o,region:c,department:d,annualRevenue:m}=e;M(yt(e))&&l({typeForm:"cred",fullName:a,inn:i,name:r,phone:s,mail:o,region:c?.text||"",department:d?.text||"",partnerComments:`Сумма=${t}/Срок=${n}/Выручка=${m}`})}),[l]),[a,{field:r,...s}]=B(bt,n),o=L(),c=function(e){const{data:t}=_(e?`/api/v1/branches?regionCode=${e}`:null,lt);return t||tt}(a.region?.key).filter((e=>e?.address));return p("form",{className:"container space-y-m",onSubmit:s.onSubmit,children:[u(I,{headingType:"h6",title:"Параметры кредита",className:"sm:text-center"}),gt(r),u(I,{headingType:"h6",title:"Данные организации",className:"sm:text-center"}),it(r),u(I,{headingType:"h6",title:"Офис банка",className:"sm:text-center"}),ft({regions:o,branches:c,field:r}),We(e),u(he,{link:t})]})})),Nt={name:"",phone:""},wt=R({name:Ie,phone:Be}),St=x((e=>{const{button:t,link:l,onSubmit:n}=e,a=i((e=>{const{name:t,phone:l}=e;M(wt(e))&&n({typeForm:"dpst",name:t,phone:l})}),[n]),[,{field:r,...s}]=B(Nt,a);return p("form",{className:"container",onSubmit:s.onSubmit,children:[u(I,{headingType:"h6",title:"Оставьте заявку и мы ответим на любые вопросы по депозитам",className:"sm:text-center mb-m"}),p("div",{className:"max-w-[560px] m-auto space-y-s",children:[u(xe,{className:"shrink-0 w-full",label:"Имя",...ue(r("name"),Ie)}),u(Se,{className:"shrink-0 w-full",label:"Телефон",...ue(r("phone"),Be)})]}),p("div",{className:"flex justify-between flex-col-reverse sm:items-center sm:flex-row max-w-[560px] m-auto",children:[u("div",{className:"flex-1",children:u(he,{link:l})}),We(t)]})]})})),kt={};function Ct(e,t=kt){const{data:l}=_(e?`/wcms-resources/${e}.json`:null,D,{fallback:t});return l||kt}const It=x((e=>{const{button:t,sourceBookDir:l}=e,{regions:a}=Ct(l||"regions-grant-support"),[i,r]=n({key:""}),s=re({className:"text-white",version:t?.version}),o=a?.find((e=>e.name===i.key))?.href;return p("div",{className:"container space-y-s sm:space-y-lg",children:[a?u(Fe,{label:"Ваш регион",placeholder:"Выберите регион",options:a.map((({name:e=""})=>({key:e}))),value:i,onChange:r}):null,o?u("div",{className:"text-center",children:u(se,{href:o,target:"_blank",className:w("p-m w-full sm:w-auto",s),children:t?.text?t.text:"Перейти"})}):null]})})),Tt=(e,t)=>e?.media&&t?.media?e.media-t.media:0,Bt=x((({className:e="",image:t,imageClassName:l="",pathPrefix:n})=>{const a=Y();return p("picture",{className:e,children:[t?.sources?.length?t.sources.filter((e=>e?.src)).sort(Tt).map((({src:e,format:l,media:i},r)=>u("source",{srcSet:Mt(a,n)(e),type:Pt(l),media:i?`(max-width: ${i}px)`:"",...t.size},`${r}_${e}`))):null,t?.src?Rt({...t,src:Mt(a,n)(t.src)},l):null]})})),Rt=(e,t="")=>u("img",{src:e.src,className:w("object-contain",t),alt:e.alt||e.title,title:e.title||"",style:{width:e.size?.width?`${e.size?.width}px`:"100%",height:e.size?.height?`${e.size?.height}px`:"auto"},...e.size}),Mt=(e,t)=>l=>l&&!O(l)?W(e)(H(t,l)):l,Pt=e=>e?`image/${String(e)}`:void 0,Vt=x((({className:e="",image:t,imageClassName:l="",pathPrefix:n,...a})=>t?.src||t?.icon?t.icon?u(je,{className:e,imageClassName:l,iconVersion:t?.iconVersion,name:t.icon,...a}):u(Bt,{className:e,imageClassName:l,image:t,pathPrefix:n}):null)),zt=x((({className:e,viewBox:t,fill:l="none",width:n,height:a,paths:i,...r})=>u("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:l,width:n,height:a,children:i.map((({d:e,fill:t,...l},n)=>u("path",{d:e,fill:t||"currentColor",...r,...l},n)))}))),_t=[{d:"M10.207.793a1 1 0 0 1 0 1.414l-6 6a1 1 0 0 1-1.414 0l-2.5-2.5a1 1 0 0 1 1.414-1.414L3.5 6.086 8.793.793a1 1 0 0 1 1.414 0Z",fillRule:"evenodd",clipRule:"evenodd",fill:"white"}],jt=x((({className:e,value:t,text:l,disabled:n,isRadio:a,onChange:r})=>{const s=i((e=>{n||(e.preventDefault(),r&&r(!t))}),[r,n,t]),o=a?u("div",{className:"absolute left-1 w-3 h-3 rounded-full bg-primary-main"}):u(zt,{paths:_t,className:"absolute left-1 ml-px block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"});return u("div",{className:e,children:p("label",{className:"flex items-center relative cursor-pointer group/box",onClick:s,children:[u("div",{className:w("appearance-none w-5 h-5 border-solid cursor-pointer m-0",a?"rounded-full border-2":At(t),t?"border-primary-main":"border-gray",n?"bg-main-disabled":"group-hover/box:border-primary-hover"),role:"checkbox","aria-checked":Boolean(t),"aria-disabled":Boolean(n)}),t?o:null,l?u("div",{className:"ml-s",children:u(me,{size:"text-l",font:"font-light",children:l})}):null]})})})),At=e=>w("rounded border",e?"bg-primary-main":""),Dt=e=>{const t=e("text");return p("div",{className:"space-y-m",children:[p("div",{className:"sm:flex sm:items-center sm:gap-xl",children:[u(jt,{text:"Валютный контроль",...e("currencyControl")}),u(jt,{text:"Документарные операции",...e("documentaryOperations")}),u(jt,{text:"Конверсионные операции",...e("conversionOperations")})]}),u("textarea",{placeholder:"Укажите интересующий вас вопрос, место ведения бизнеса и удобное время для телефонного звонка",className:"block w-full resize-y min-h-24 p-m outline-none border rounded-md border-main-stroke hover:border-primary-hover active:focus:border-primary-text",value:t.value,onInput:e=>t.onChange&&t.onChange(e.target?.value||"")})]})},$t=e=>p("div",{children:[p("div",{className:"sm:flex sm:justify-between sm:gap-lg",children:[u("div",{className:"sm:w-1/2",children:u(xe,{className:"shrink-0 w-full mb-s",label:"Наименование организации",...ue(e("fullName"),Ce)})}),u("div",{className:"sm:w-1/2",children:u(xe,{className:"shrink-0 w-full mb-s",label:"ФИО",...ue(e("name"),Ie)})})]}),p("div",{className:"sm:flex sm:justify-between sm:gap-lg sm:mb-2xl",children:[u("div",{className:"sm:w-1/2",children:u(Se,{className:"shrink-0 w-full mb-s",label:"Телефон",...ue(e("phone"),Be)})}),u("div",{className:"sm:w-1/2",children:u(xe,{className:"shrink-0 w-full mb-s",label:"Электронная почта",...ue(e("mail"),Ce)})})]})]}),Lt={fullName:"",name:"",phone:"",mail:"",currencyControl:!1,documentaryOperations:!1,conversionOperations:!1,text:""},Et=R({fullName:Ce,name:Ie,phone:Be,mail:Ce}),Ot={ApplicationFormBusinessCard:et,ApplicationFormWed:x((e=>{const{button:t,link:l,onSubmit:n}=e,a=i((e=>{const{fullName:t,name:l,phone:a,mail:i,currencyControl:r,documentaryOperations:s,conversionOperations:o,text:c}=e;M(Et(e))&&n({typeForm:"kved",fullName:t,name:l,phone:a,mail:i,partnerComments:`Валютный контроль=${r}/Документарные операции=${s}/Конверсионные операции=${o}/Доп инф=${c}`})}),[n]),[,{field:r,...s}]=B(Lt,a);return p("form",{className:"container space-y-m",onSubmit:s.onSubmit,children:[u(I,{headingType:"h6",title:"Данные организации",className:"sm:text-center"}),$t(r),u(I,{headingType:"h6",title:"Интересующий вопрос",className:"sm:text-center"}),Dt(r),p("div",{className:"flex flex-col gap-m border-b border-main-divider pb-lg sm:items-center sm:flex-row sm:pb-4xl",children:[We(t),u(he,{link:l})]}),u(I,{headingType:"h6",title:"Или свяжитесь с нами удобным способом",className:"sm:text-center"}),p("div",{className:"flex gap-xl",children:[p("a",{className:"flex gap-s items-center text-primary-text no-underline",href:"tel:8 (800) 200-78-70","aria-label":"8 (800) 200-78-70",children:[u(Vt,{image:{icon:"PhoneIcon"},width:"24",height:"24"}),u("span",{children:"8 (800) 200-78-70"})]}),p("a",{className:"flex gap-s items-center text-primary-text no-underline","aria-label":"ved@rshb.ru",href:"mailto:ved@rshb.ru",children:[u(Vt,{image:{icon:"MailIcon"},width:"24",height:"24"}),u("span",{children:"ved@rshb.ru"})]})]})]})})),ApplicationFormDeposit:St,ApplicationFormCredit:vt,ApplicationFormAcquiring:Ye,ApplicationFormGrantSupport:It},Ft=x((({responseType:e})=>{const t="OK"===e;return p("div",{className:`flex items-center p-lg rounded-md space-x-m ${t?"bg-ok":"bg-fail"}`,children:[u(Vt,t?{image:{icon:"ResponceOKIcon"},width:"42",height:"42"}:{image:{icon:"ResponceFailIcon"},width:"37",height:"34"}),p("div",{children:[u(I,{headingType:"h6",title:t?"Ваша заявка отправлена":"Не удалось отправить заявку",className:"mb-2xs"}),u(me,{size:"text-l",font:"font-light",color:"text-secondary-text",children:t?"Совсем скоро мы с вами свяжемся":"Пожалуйста, повторите позднее"})]})]})})),Ut={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}}},Ht=x((e=>{const{className:t,formBlock:l,...a}=e,[r,s]=n(""),o=i((async e=>{const t=await Ut.send(e)?"OK":"Fail";return s(t),t}),[]);return u(k,{className:t,defaultPadding:"p-6xl",...a,children:p("div",{className:"container max-w-[978px] space-y-lg",children:[l?.title?u(I,{headingType:"h3",title:l.title,className:"sm:text-center"}):null,l?Xt(l,o):null,r?u(Ft,{responseType:r}):null]})})})),Xt=(e,t)=>{const l=e?.formType;if(!l||!(l in Ot))return null;return u(Ot[l],{...e,onSubmit:t})},Wt={"":"bg-main-divider group-data-secondary:bg-white/30",primary:"bg-main-divider",secondary:"bg-secondary-light",opacity:"bg-white/30"},Kt=x((({className:e,defaultIconSize:t=44,iconBgVersion:l="primary",size:n,icon:a,...i})=>{const r=String(n?.width||t);return a?u("div",{style:{width:`${r}px`,height:`${r}px`},className:w("rounded-icon object-fit flex justify-center items-center ",Wt[l],e),children:u(je,{...i,width:"54%",height:"54%",name:a})}):null})),Gt=x((({className:e="",title:t,benefitList:l,...n})=>p(k,{className:e,defaultPadding:"p-6xl",...n,children:[t?u(I,{headingType:"h3",as:"h2",className:"text-center",title:t}):null,l?.length?u("div",{className:"flex flex-wrap w-full sm:justify-center mt-xl gap-5xl",role:"list",children:l.map(Yt)}):null]}))),Yt=(e,t)=>p("div",{className:"flex gap-m items-center md:basis-1/2 md:max-w-[500px]",role:"listitem",children:[e?.icon?.icon?u(Kt,{className:"shrink-0",defaultIconSize:44,iconBgVersion:e?.iconBgVersion||"",...e?.icon}):null,e?.icon?.src?u(Vt,{className:"shrink-0",image:e.icon}):null,e?.label?p("div",{className:"sm:h-full",children:[u(I,{headingType:"h6",children:e.label}),Jt(e.description)]}):null]},String(t)),Jt=e=>{const t=e?.benefitType||null;return e&&t?u("div",{className:"mt-xs text-l font-light text-secondary-text group-data-secondary:text-white/80",children:"list"===t?Zt(e):qt(e)}):null},qt=e=>e?.name||null,Zt=e=>{const t=e?.bullets?"list-disc pl-3xl":"";return e?.items&&e.items.length>0?u("ul",{className:t,children:e.items.map(((e,t)=>u("li",{children:e},`benefitListItem-${t}`)))}):null},Qt=(e,{className:t,buttonClassName:l,isVertical:n}={})=>e?.length&&e.some((e=>e?.text||e?.icon?.icon))?u("div",{className:w("flex",n?"flex-col gap-xs justify-items-stretch":"flex-wrap gap-m",t),children:e.map(el(l))}):null,el=(e="")=>(t,l)=>{const{text:n,icon:a,iconRight:i,version:r,...s}=t||{},o="secondary"===r?"color":"white",c=a?.iconVersion?a?.iconVersion:o;return n||a?.icon?u(se,{className:w("basis-full sm:basis-auto",e),appendLeft:tl({...a,iconVersion:c}),appendRight:tl({...i,iconVersion:c}),version:r,text:n,...s},l?String(l):""):null},tl=e=>e?.icon||e?.src?u(Vt,{image:e,width:String(e?.size?.width||24),height:String(24)}):null,ll={XXL:{title:{headingType:"h0",as:"h1"},descriptionSize:"text-h5",descriptionWeight:"font-normal",descriptionStyle:"mt-xl"},XL:{title:{headingType:"h1",as:"h1"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-m"},L:{title:{headingType:"h2",as:"h2"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-m"},M:{title:{headingType:"h3",as:"h2"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-s"},S:{title:{headingType:"h4",as:"h2"},descriptionSize:"text-xl",descriptionWeight:"font-light",descriptionStyle:"mt-xs"},XS:{title:{headingType:"h5",as:"h2"},descriptionSize:"text-l",descriptionWeight:"font-light",descriptionStyle:"mt-xs"}},nl={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"},al=x((({className:e,version:t="",headlineVersion:l="XL",title:n,description:a,align:i="text-center",as:r,isEmbedded:s=!1,isTheme:o=!1,...c})=>{const d=ll[l],m={marginTop:d.descriptionStyle};return p(k,{className:w(s?"@container-normal":"",e),defaultPadding:s?"":"p-6xl",version:t,isTheme:o,...c,children:[n?u(I,{className:w("whitespace-pre-wrap",i),...d?.title,as:r||d?.title.as,title:n}):null,a?u(de,{size:d.descriptionSize,font:d.descriptionWeight,align:i,...m,children:a}):null]})})),il=x((({className:e="",title:t,description:l,bonusItems:n=[],...a})=>u(k,{className:e,defaultPadding:"p-default",...a,children:p("div",{className:"container",children:[u(al,{className:"mb-xl",isEmbedded:!0,title:t,description:l,headlineVersion:"M"}),u("div",{className:"flex flex-wrap w-full",children:n.length>0?n.map(((e,t)=>p("div",{className:"space-y-xs flex-grow w-full sm:w-[49%] border border-gray p-m",children:[e?.title?u("div",{children:u(me,{size:"text-h4",children:e.title})}):null,e?.description?u(de,{size:"text-xl",font:"font-light",children:e.description}):null,p("div",{className:"flex justify-between items-end",children:[u("div",{className:"hidden sm:block",children:Qt(e?.buttons)}),e.bonusItemContent?.bonusType?rl(e.bonusItemContent):null]})]},String(t)))):null})]})}))),rl=e=>"count"===e.bonusType?sl(e):ol(e),sl=e=>p("div",{className:"w-full pt-default mt-s flex items-end",children:[e.bonusCount?u("span",{className:"shrink-0 w-1/2 sm:w-auto font-mohave text-title-extra -tracking-[5px] bg-clip-text text-transparent bg-green-to-yellow mt-lg",children:e.bonusCount}):null,e.bonusName?u("div",{className:"w-1/2 sm:w-auto bg-clip-text text-transparent bg-green-to-yellow",children:u(me,{size:"text-h2",children:e.bonusName})}):null]}),ol=e=>e.image?u(Vt,{className:"min-w-12 p-xs rounded-icon shrink-0",image:e.image}):null,cl={left:"text-left",center:"text-center",right:"text-right"},dl="text-center",ml=({icon:e,title:t,description:l},n)=>p("div",{className:w("flex flex-col","items-center",l||t?"":"justify-center"),children:[t?u(me,{size:"text-h6",font:"font-normal",align:dl,children:t}):null,e?u(Vt,{image:e,height:"180",className:"w-auto"}):null,l?u(me,{size:"text-h6",font:"font-normal",align:dl,children:l}):null]},String(n)),hl=(e,t,l)=>u("div",{className:`grid gap-2xs ${cl[l]} ${ul(t)}`,children:e.map(ml)}),ul=e=>{switch(e){case"3":return"grid-cols-3";case"4":return"grid-cols-4";default:return"grid-cols-5"}},pl=x((({bonusBenefits:e,cardTextAlign:t="center",className:l="",columnsCount:n="4",subtitle:a,title:i,...r})=>p(k,{className:l,defaultPadding:"p-6xl",...r,children:[u(al,{className:"mb-m sm:mb-3xl",isEmbedded:!0,title:i,description:a,headlineVersion:"M"}),e?.length?hl(e,n,t):null]}))),xl=x((e=>{const{title:t,image:l,cardItems:n,button:a}=e;return p("div",{className:"border-gray border p-4xl w-1/2 space-y-lg",children:[l?p("div",{className:"flex justify-center",children:[l?.src?u(Vt,{image:l}):null,l?.icon?u(Vt,{image:l}):null]}):null,t?u(I,{headingType:"h4",title:t}):null,n?.length?u("ul",{className:"space-y-s",children:n.map(((e,t)=>gl(e,String(t))))}):null,Qt([a])]})})),gl=(e,t)=>{const{icon:l,text:n}=e;return p("li",{className:"flex items-center gap-s",children:[l?.icon?u(Vt,{image:l,className:"w-12 h-12 min-w-12 p-s rounded-icon bg-main-divider"}):null,l?.src?u(Vt,{image:l}):null,u(me,{size:"text-xl",font:"font-light",children:n})]},t)},fl=x((({className:e,title:t,cards:l,...n})=>p(k,{className:e,defaultPadding:"p-6xl space-y-3xl",...n,children:[u(I,{headingType:"h3",title:t,className:"text-center"}),u("div",{className:"flex gap-lg",children:l?.length?l.map(((e,t)=>u(xl,{...e},String(t)))):null})]}))),bl=x((({buttons:e,className:t,...l})=>u(k,{className:w("!bg-transparent",t),defaultPadding:"p-0",...l,children:Qt(e)}))),yl=(e,t=0)=>{const{itemCount:l,visibleItemCount:a}=e,[r,s]=n(t),o=i((()=>s((e=>Math.min(e+1,l-1)))),[l]),c=i((()=>s((e=>Math.max(e-1,0)))),[l]),d=a?l>a&&r<l-a:r<l-1,m=r>0;return[r,{inc:o,dec:c,canInc:d,canDec:m,isScrollAvailable:m||d}]},vl=x((({className:e,disabled:t,...l})=>u(se,{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(Vt,{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"})}))),Nl=x((e=>u(vl,{...e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}))),wl=x((e=>u(vl,{...e,className:`${e.className||""} rotate-180`,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"})));function Sl({dec:e,inc:t,canDec:l,canInc:n,btnClass:a,className:i=""}){return l||n?p("div",{children:[l?u(vl,{className:`absolute z-40 ${a[0]} ${i}`,onClick:e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left",disabled:!l}):null,n?u(vl,{className:`absolute z-40 rotate-180 ${a[1]} ${i}`,onClick:t,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right",disabled:!n}):null]}):null}const kl=x((({title:e,value:t,postfix:l="",prefix:n,className:a=""})=>p("div",{className:w("flex justify-between md:flex-col",a),children:[e?u(me,{size:"text-l",font:"font-light",color:"text-secondary-text",children:e}):null,u("div",t?{children:p(me,{size:"text-h3",children:[n," ",ot(2)(Math.round(t))," ",l]})}:{children:u(me,{size:"text-h3",children:"-"})})]}))),Cl=Math.round(23.5),Il={minSum:1e4,maxSum:5e6,minMonths:13,maxMonths:60,rate:12.5,isSalaryClient:!1,isPensionClient:!1,isStateEmployee:!1,isInsurance:!0},Tl={minSum:1e4,maxSum:3e6,minSumOld:0,maxSumOld:25e5,minSumExtra:0,maxSumExtra:5e5,minMonths:13,maxMonths:60,rate:7.5,isExtraMoney:!1,isSalaryClient:!1,isInsurance:!0},Bl={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},Rl={minSum:5e4,maxSum:5e6,minMonths:2,maxMonths:10,rate:0,isMonthlyInterestPayment:!0,isRemoteRegistration:!0},Ml={minSum:1e3,maxSum:5e5,minDays:1,maxDays:1095,rate:0,isMonthlyInterestPayment:!0,isReplenished:!1,isPartialWithdrawal:!1,isSmallBusiness:!1,depositeName:"Депозит 'Стабильный'"},Pl=x((({rate:e,title:t="Ставка",unit:l,depositeName:n,isShowDepositeName:a,rateBlockClassName:i,fractionDigits:r=2})=>p("div",{children:[u(me,{size:"text-l",font:"font-light",color:"text-secondary-text",children:t}),p("div",{className:"relative",children:[p("div",{className:"flex justify-start gradient-color-text",children:[u("span",{className:w("font-mohave text-title-huge pr-xl -mt-m",i),children:String(e.toFixed(r)).replace(".",",")}),l?u("span",{className:"text-7xl",children:l}):null]}),n&&a?u("div",{className:"absolute bottom-7 w-full text-center whitespace-nowrap",children:n}):null]})]}))),Vl=e=>e?u(de,{size:"text-s",font:"font-light",color:"text-secondary-text",children:e}):null;function zl({isShowItems:e=!0,step:t=1e3,...l}){const n=[`От ${ot(2)(l.min||0)} ₽`,`До ${ot(2)(l.max||0)} ₽`];return u(ut,{items:e?n:[],step:t,...l})}function _l(e){const{data:t}=_(`/wcms-resources/${e}.json`,D);return t}const jl=(e,t)=>{const{travelExpenseValue:l,restExpenseValue:n}=e,a=_l(t||"bonus-calculator-data")||Bl,[i,r]=((e,t,l)=>{const{minSumTravel:n,minSumOther:a,maxBonus:i,prefMonthsNum:r,prefTravelBonusRate:s,prefRestBonusRate:o,travelBonusRate:c,restBonusRate:d}=e;if(t===n&&l===a)return[0,0];const m=Math.min(Math.round(s*t)+Math.round(o*l),i);return[m,m*r+Math.min(Math.round(c*t)+Math.round(d*l),i)*(12-r)]})(a,l,n);return{...a,...e,monthBonus:i,yearBonus:r}},Al=x((({className:e="",sourceBookDir:t="",buttons:l,footnote:n})=>{const[a,{field:i}]=B({travelExpenseValue:6e3,restExpenseValue:6e3}),{minSumTravel:r,maxSumTravel:s,minSumOther:o,maxSumOther:c,monthBonus:d,yearBonus:m}=jl(a,t);return p("section",{className:w("flex flex-col justify-between sm:flex-row gap-m",e),children:[p("div",{className:"flex flex-col gap-y-m sm:w-2/5 gap-2xl",children:[zl({title:"Сумма покупок в категории путешествия, ₽",min:r,max:s,step:500,isShowItems:!1,...i("travelExpenseValue")}),zl({title:"Сумма покупок в остальных категориях, ₽",min:o,max:c,step:500,isShowItems:!1,...i("restExpenseValue")})]}),d>=0?u(Pl,{title:"Баллов за месяц",rate:d,rateBlockClassName:"tracking-[-14px]",fractionDigits:0}):null,p("div",{className:"flex flex-col gap-2xl sm:w-96",children:[m>=0?u(kl,{title:"Баллов за год",value:m}):null,Qt(l,{isVertical:!0}),Vl(n)]})]})})),Dl=e=>e,$l=(e=Dl)=>t=>t.reduceRight(((t,l)=>e(t)>e(l)?t:l)),Ll=$l(),El=(e=Dl)=>$l((t=>-e(t))),Ol=El(),Fl=e=>{const t=[...e];t.sort((([e],[t])=>e-t));let l=1;for(;l<t.length;){const[e,n]=t[l-1],[a,i]=t[l];n>=a?t.splice(l-1,2,[e,Math.max(n,i)]):l++}return t},Ul=([e,t],l,n=[])=>l&&l[e]&&l[t]?{[e]:l[e],[t]:l[t]}:Hl([e,t],n),Hl=([e,t],l=[])=>({[e]:l.length?Ol(l.filter((t=>"number"==typeof t[e])).map((t=>t[e]))):0,[t]:l.length?Ll(l.filter((t=>"number"==typeof t[e])).map((e=>e[t]))):0}),Xl=(e,[t,l],n)=>e>=n[t]&&e<=n[l],Wl=(e,t)=>e?t.isReplenished&&t.isPartialWithdrawal:!t.isReplenished&&!t.isPartialWithdrawal,Kl=(e,t)=>{const{isMonthlyInterestPayment:l,moneyValue:n,daysValue:a}=t;return l?Math.round(n*Math.pow((1200+e)/1200,a/30)-n):Math.round(n*e*a/365/100)},Gl=e=>`${e} ${Number(e)%10==1?"дня":"дней"}`,Yl={horizontal:"gap-5xl",vertical:"flex-col gap-s"},Jl=x((({items:e,checkedItem:t,className:l,onChange:n,orientation:a="horizontal"})=>u("div",{className:w(`flex ${Yl[a]}`,l),children:e?.map((({id:e,text:l})=>u(jt,{isRadio:!0,text:l,value:t===e,onChange:()=>n&&n(e)},String(e))))}))),ql=({items:e,title:t,orientation:l="horizontal",value:n,radioGroupClassName:a,onChange:i})=>p("div",{className:"space-y-s",children:[t?u("div",{children:u(me,{color:"text-secondary-text",font:"font-light",children:t})}):null,u(Jl,{orientation:l,items:e,checkedItem:e[n?0:1].id,className:w("flex-col sm:flex-row",a),onChange:t=>i&&i(t===e[0].id)})]}),Zl=e=>ql({...e,items:[{id:"everyMonth",text:"Ежемесячно"},{id:"atEndTerm",text:"В конце срока"}]}),Ql=x((({title:e="Ставка"})=>p("div",{children:[u(me,{size:"text-l",font:"font-light",color:"text-secondary-text",children:e}),u("div",{className:"mt-2xs pt-2xs pl-lg pb-xs",children:u(je,{name:"PercentIcon",width:"90",height:"85"})}),u("div",{className:"w-64 mt-m",children:p(de,{size:"text-xl",font:"font-light",color:"text-primary-text",children:["Процентная ставка для срока ",u("strong",{children:"1-30 дней"})," устанавливается при обращении в Банк"]})})]}))),en=({rate:e,depositeName:t,isShowDepositeName:l})=>u(Pl,{rate:e,depositeName:t,isShowDepositeName:l,rateBlockClassName:"tracking-[-25px]",unit:"%"}),tn=({rate:e})=>u(kl,{title:"Ставка",value:e,postfix:"%"}),ln=e=>e.isShowUnknownRate?u(Ql,{}):p("div",{children:[u("div",{className:"hidden md:block",children:en(e)}),u("div",{className:"md:hidden",children:tn(e)})]}),nn=x((({className:e="",sourceBookDir:t,buttons:l,footnote:n,bottomFootnote:a,isShowDepositeName:i})=>{const[r,{field:s}]=B({moneyValue:1e5,daysValue:90,isReplenished:!1,isPartialWithdrawal:!1,isSmallBusiness:!1,isMonthlyInterestPayment:!1}),o=((e,t)=>{const{daysValue:l,moneyValue:n,isPartialWithdrawal:a,isReplenished:i,isSmallBusiness:r,isMonthlyInterestPayment:s}=e,o=_l(t||"business-calculator-data"),c=i||a,d=l<90||l>730;if(l<=30)return{...Ml,...e,isDisabledOperatingDeposit:d,isShowUnknownRate:!0};const m=o?.rateRows?.find((e=>s===e.isMonthlyInterestPayment&&r===e.isSmallBusiness&&Wl(c,e)&&Xl(n,["minSum","maxSum"],e)&&Xl(l,["minDays","maxDays"],e)))||Ml,{rate:h}=m,u=Kl(h,e),p=n+u,x=o?.rateRows||[Ml];return{...m,...Hl(["minSum","maxSum"],x),...Hl(["minDays","maxDays"],x),...e,isDisabledOperatingDeposit:d,income:u,finalSum:p}})(r,t),{income:c,finalSum:d,rate:m,isShowUnknownRate:h,depositeName:x}=o;return p("section",{className:w("flex flex-col justify-between sm:flex-row gap-m",e),children:[p("div",{className:"flex flex-col gap-y-m sm:w-2/5 gap-2xl",children:[zl({title:"Сумма, ₽",min:o.minSum,max:o.maxSum,...s("moneyValue"),value:o.moneyValue}),(g={title:"Срок, дней",min:o.minDays,max:o.maxDays,...s("daysValue"),value:o.daysValue},u(ut,{items:[`От ${Gl(g.min||0)}`,`До ${Gl(g.max||0)}`],step:1,...g})),an(o,s),Zl({title:"Выплата процентов",orientation:"vertical",...s("isMonthlyInterestPayment"),radioGroupClassName:"sm:flex-col"})]}),u("div",{className:"border-b border-main-divider md:hidden"}),ln({rate:m,depositeName:x,isShowDepositeName:i,isShowUnknownRate:h}),p("div",{className:"flex flex-col gap-2xl sm:w-96",children:[rn(d,c),Qt(l,{isVertical:!0}),Vl(n)]})]});var g})),an=(e,t)=>p("div",{className:"flex flex-col gap-y-xl sm:gap-y-s",children:[u(jt,{text:"Пополнение",disabled:e.isDisabledOperatingDeposit,...t("isReplenished"),value:e.isReplenished}),u(jt,{disabled:e.isDisabledOperatingDeposit,text:"Частичное снятие",...t("isPartialWithdrawal"),value:e.isPartialWithdrawal}),u(jt,{text:"ИП / малое предприятие",...t("isSmallBusiness"),value:e.isSmallBusiness})]}),rn=(e,t)=>p("div",{className:"flex flex-col gap-2xl sm:gap-0",children:[u(kl,{title:"Доход в конце срока",value:t,postfix:"₽",prefix:"+"}),u(kl,{title:"Сумма в конце срока",value:e,postfix:"₽"})]}),sn=({min:e=0,max:t=0,availableMonths:l,...n})=>u(ut,{items:[`От ${on(e)}`,`До ${on(t)}`],step:1,...l?.length?{list:l}:{min:e,max:t},...n}),on=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`,cn=e=>dn({...e,fieldKey:"isSalaryClient",viewSettingFieldKey:"isShowSalaryClient"})&&dn({...e,fieldKey:"isStateEmployee",viewSettingFieldKey:"isShowStateEmployee"})&&dn({...e,fieldKey:"isPensionClient",viewSettingFieldKey:"isShowPensionClient"})&&dn({...e,fieldKey:"isInsurance",viewSettingFieldKey:"isShowInsurance"}),dn=({row:e,userInputParams:t,paramsViewSettings:l,fieldKey:n,viewSettingFieldKey:a})=>!!l&&!l[a]||t[n]===e[n],mn=(e,t)=>{const{isAnnuity:l,moneyValue:n,monthsValue:a,moneyExtra:i}=t;if(0===e)return 0;if(l){const t=e/1200;return i?(n+i)*(t+t/(Math.pow(1+t,a)-1)):n*(t+t/(Math.pow(1+t,a)-1))}return Math.round(n/a)+n*(e/1200)},hn=(e,t,l)=>{let{moneyValue:n,monthsValue:a}=e;const i=_l(t||"credit-calculator-data"),s=i?.rateRows||[Il],o=(({limitRows:e,userInputParams:t,paramsViewSettings:l})=>e?.find((e=>cn({row:e,userInputParams:t,paramsViewSettings:l}))))({limitRows:i?.limitRows||[],userInputParams:e,paramsViewSettings:l}),{minSum:c,maxSum:d}=Ul(["minSum","maxSum"],o,s),{minMonths:m,maxMonths:h}=Ul(["minMonths","maxMonths"],o,s);n=st(n,c,d),a=st(a,m,h);const u=(({rateRows:e=[],userInputParams:t,paramsViewSettings:l,moneyValue:n,monthsValue:a})=>e?.find((e=>cn({row:e,userInputParams:t,paramsViewSettings:l})&&Xl(n,["minSum","maxSum"],e)&&Xl(a,["minMonths","maxMonths"],e)))||Il)({rateRows:s,userInputParams:e,paramsViewSettings:l,moneyValue:n,monthsValue:a}),{rate:p}=u,x=mn(p,e);return r((()=>({...u,...e,minSum:c,maxSum:d,minMonths:m,maxMonths:h,moneyValue:n,monthsValue:a,monthlyPayment:x})),[e,i])},un=e=>ql({...e,radioGroupClassName:"sm:flex-col",items:[{id:"annuity",text:"Аннуитетный"},{id:"differential",text:"Дифференцированный"}]}),pn=x((({className:e,sourceBookDir:t,buttons:l,footnote:n,paramsViewSettings:a,isMobile:i})=>{const[r,{field:s}]=B({isAnnuity:!0,isInsurance:!0,isSalaryClient:!1,isPensionClient:!1,isStateEmployee:!1,moneyValue:2e5,monthsValue:Cl}),o=hn(r,t,a),c=un({title:i?"Тип платежа":"",orientation:"vertical",...s("isAnnuity")});return p("section",{className:w("flex flex-col justify-between sm:flex-row gap-m",e),children:[p("div",{className:"flex flex-col gap-y-m sm:w-2/5 gap-2xl",children:[zl({title:"Сумма кредита, ₽",step:500,min:o.minSum,max:o.maxSum,...s("moneyValue"),value:o.moneyValue}),sn({title:"Срок кредита, месяцев",min:o.minMonths,max:o.maxMonths,...s("monthsValue"),value:o.monthsValue}),xn({...o,...a},s),u("div",{className:"sm:hidden",children:c})]}),u("div",{className:"border-b border-main-divider md:hidden"}),ln({rate:o.rate}),p("div",{className:"flex flex-col gap-2xl sm:w-96",children:[u(kl,{title:"Ежемесячный платеж",value:o.monthlyPayment,postfix:"₽"}),u("div",{className:"hidden sm:block",children:c}),Qt(l,{isVertical:!0}),Vl(n)]})]})})),xn=(e,t)=>p("div",{className:"flex flex-col gap-y-2xl",children:[e.isShowSalaryClient?u(jt,{text:"Получаю зарплату на счёт\nв Россельхозбанке",...t("isSalaryClient"),value:e.isSalaryClient,className:"whitespace-pre-line sm:whitespace-normal"}):null,e.isShowStateEmployee?u(jt,{text:"Работаю в бюджетной организации",...t("isStateEmployee"),value:e.isStateEmployee}):null,e.isShowPensionClient?u(jt,{text:"Получаю пенсию на карту Россельхозбанка",...t("isPensionClient"),value:e.isPensionClient}):null,e.isShowInsurance?u(jt,{text:"Комплексная страховая защита",...t("isInsurance"),value:e.isInsurance}):null]}),gn=(e,t,l)=>{const{moneyValue:n,monthsValue:a}=e,i=_l(t||"deposit-calculator-data"),r=i?.rateRows?.[0]?yn(i.rateRows[0].minMonths,i.rateRows[0].maxMonths):1,s=!l?.isShowMonthlyInterestPayment,o=!l?.isShowRemoteRegistration,c=i?.rateRows?.find((t=>bn({row:t,userInputParams:e,paramKey:"isMonthlyInterestPayment",isExclude:s})&&bn({row:t,userInputParams:e,paramKey:"isRemoteRegistration",isExclude:o})&&Xl(n,["minSum","maxSum"],t)&&Xl(a||r,["minMonths","maxMonths"],t)))||Rl,{rate:d}=c,m=fn(d,e),h=n+m,u=i?.rateRows||[Rl];return{...c,...Hl(["minSum","maxSum"],u),...Hl(["minMonths","maxMonths"],u),availableMonths:Fl(u.map((e=>[e.minMonths,e.maxMonths]))).flatMap((([e,t])=>((e,t,l=1)=>Array.from({length:Math.abs(t-e)/l+1},((n,a)=>t>=e?e+a*l:e-a*l)))(e,t))),...e,defaultMonth:r,income:m,finalSum:h}},fn=(e,t)=>{const{isMonthlyInterestPayment:l,moneyValue:n,monthsValue:a}=t;return l?Math.round(n*Math.pow((1200+e)/1200,a)-n):Math.round(n*e*30*a/365/100)},bn=({row:e,userInputParams:t,paramKey:l,isExclude:n})=>n||t[l]===e[l],yn=(e,t)=>e+Math.round((t-e)/2),vn=x((({className:e,sourceBookDir:t,buttons:l,footnote:n,paramsViewSettings:i})=>{const[r,{field:s}]=B({moneyValue:2e4,monthsValue:0,isMonthlyInterestPayment:!1,isRemoteRegistration:!1}),o=gn(r,t,i),{defaultMonth:c,rate:d,income:m,finalSum:h}=o,{onChange:x}=s("monthsValue");return a((()=>{x&&x(c)}),[c]),p("section",{className:w("flex flex-col justify-between sm:flex-row gap-m",e),children:[p("div",{className:"flex flex-col gap-y-m sm:w-2/5 gap-2xl",children:[zl({title:"Сумма, ₽",min:o.minSum,max:o.maxSum,...s("moneyValue"),value:o.moneyValue}),sn({title:"Срок, месяцев",min:o.minMonths,max:o.maxMonths,availableMonths:o.availableMonths,...s("monthsValue"),value:o.monthsValue}),Nn({...o,...i},s)]}),u("div",{className:"border-b border-main-divider md:hidden"}),ln({rate:d}),p("div",{className:"flex flex-col gap-2xl sm:w-96",children:[u(kl,{title:"Доход в конце срока",value:m,postfix:"₽",prefix:"+"}),u(kl,{title:"Сумма в конце срока",value:h,postfix:"₽"}),Qt(l,{isVertical:!0}),Vl(n)]})]})})),Nn=(e,t)=>{return p("div",{className:"flex flex-col gap-y-2xl",children:[e.isShowMonthlyInterestPayment?Zl({title:"Выплата процентов",...t("isMonthlyInterestPayment"),value:e.isMonthlyInterestPayment}):null,e.isShowRemoteRegistration?(l={title:"Оформление",...t("isRemoteRegistration"),value:e.isRemoteRegistration},ql({...l,items:[{id:"remote",text:"Дистанционно"},{id:"office",text:"Офис Банка"}]})):null]});var l},wn=e=>Sn({...e,fieldKey:"isSalaryClient",viewSettingFieldKey:"isShowSalaryClient"})&&Sn({...e,fieldKey:"isInsurance",viewSettingFieldKey:"isShowInsurance"})&&Sn({...e,fieldKey:"isExtraMoney",viewSettingFieldKey:"isShowExtraMoney"}),Sn=({row:e,userInputParams:t,paramsViewSettings:l,fieldKey:n,viewSettingFieldKey:a})=>!!l&&!l[a]||t[n]===e[n],kn=(e,t,l)=>{let{moneyValue:n,monthsValue:a,oldMonthlyPayment:i,moneyExtra:s}=e;const o=_l(t||"refinancing-calculator-data"),c=o?.rateRows||[Tl],d=(({limitRows:e,userInputParams:t,paramsViewSettings:l})=>e?.find((e=>wn({row:e,userInputParams:t,paramsViewSettings:l}))))({limitRows:o?.limitRows||[],userInputParams:e,paramsViewSettings:l}),{minSum:m,maxSum:h}=Ul(["minSum","maxSum"],d,c),{minSumOld:u,maxSumOld:p}=Ul(["minSumOld","maxSumOld"],d,c),{minSumExtra:x,maxSumExtra:g}=Ul(["minSumExtra","maxSumExtra"],d,c),{minMonths:f,maxMonths:b}=Ul(["minMonths","maxMonths"],d,c);n=st(n,m,h),i=st(i,u,p),s=st(s,x,g),a=st(a,f,b);const y=(({rateRows:e=[],userInputParams:t,paramsViewSettings:l,moneyValue:n,monthsValue:a,oldMonthlyPayment:i,moneyExtra:r})=>e?.find((e=>wn({row:e,userInputParams:t,paramsViewSettings:l})&&Xl(n,["minSum","maxSum"],e)&&Xl(i,["minSumOld","maxSumOld"],e)&&Xl(r,["minSumExtra","maxSumExtra"],e)&&Xl(a,["minMonths","maxMonths"],e)))||Tl)({rateRows:c,userInputParams:e,paramsViewSettings:l,moneyValue:n,monthsValue:a,oldMonthlyPayment:i,moneyExtra:s}),{rate:v}=y,N=mn(v,e),w=e.oldMonthlyPayment-N;return r((()=>({...y,...e,minSum:m,maxSum:h,minMonths:f,maxMonths:b,moneyValue:n,monthsValue:a,oldMonthlyPayment:i,moneyExtra:s,monthlyPayment:N,benefit:w})),[e,o])},Cn=x((({className:e,sourceBookDir:t,buttons:l,footnote:n,paramsViewSettings:a})=>{const[i,{field:r}]=B({isAnnuity:!0,isInsurance:!0,isSalaryClient:!1,isExtraMoney:!1,moneyValue:7e5,oldMonthlyPayment:0,monthsValue:48,moneyExtra:0}),s=kn(i,t,a);return p("section",{className:w("flex flex-col justify-between sm:flex-row gap-m",e),children:[p("div",{className:"flex flex-col gap-y-m sm:w-2/5 gap-2xl",children:[zl({title:"Остаток долга в других банках, ₽ ",step:500,min:s.minSum,max:s.maxSum,...r("moneyValue"),value:s.moneyValue}),zl({title:"Ежемесячный платеж в других банках, ₽",isShowItems:!1,step:500,min:s.minSumOld,max:s.maxSumOld,...r("oldMonthlyPayment"),value:s.oldMonthlyPayment}),sn({title:"Новый срок кредита, месяцев",min:s.minMonths,max:s.maxMonths,...r("monthsValue"),value:s.monthsValue}),In({...s,...a},r),s.isExtraMoney?zl({title:"Дополнительная сумма, ₽ ",step:500,min:s.minSumExtra,max:s.maxSumExtra,...r("moneyExtra"),value:s.moneyExtra}):null]}),u(Pl,{title:"Ставка",rate:s.rate,fractionDigits:1,rateBlockClassName:"tracking-[-25px]",unit:"%"}),p("div",{className:"flex flex-col gap-2xl sm:w-96",children:[u(kl,{title:"Ежемесячный платеж",value:s.monthlyPayment,postfix:"₽"}),s.benefit>0?u(kl,{title:"Выгода в месяц",value:s.benefit,postfix:"₽"}):null,un({orientation:"vertical",...r("isAnnuity")}),Qt(l,{isVertical:!0}),Vl(n)]})]})})),In=(e,t)=>p("div",{className:"space-y-s",children:[e.isShowSalaryClient?u(jt,{text:"Получаю зарплату на счёт в Россельхозбанке",...t("isSalaryClient"),value:e.isSalaryClient}):null,e.isShowInsurance?u(jt,{text:"Комплексная страховая защита",...t("isInsurance"),value:e.isInsurance}):null,e.isShowExtraMoney?u(jt,{text:"Получить дополнительную сумму",...t("isExtraMoney"),value:e.isExtraMoney}):null]}),Tn={CreditCalculatorForm:pn,DepositCalculatorForm:vn,BusinessDepositCalculatorForm:nn,BonusCalculatorForm:Al,RefinancingCalculatorForm:Cn},Bn=(e,t)=>{const l=e?.calcType;if(!l||!(l in Tn))return null;const n=Tn[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-4xl w-full space-y-xl",children:[e?.title?u(I,{className:"text-center",title:e.title}):null,u(n,{...e})]})},String(t))},Rn=x((({className:e="",calculatorTabs:t=[],...l})=>{const a=t.map((e=>e.nav||{})),r=t.map((({calculatorBlock:e})=>e||{})),[s,o]=n(0),c=i((e=>o(e)),[]),[d,m]=yl({itemCount:t?.length,visibleItemCount:3});return p(k,{className:w("box-border overflow-hidden relative",e),defaultPadding:"p-0",...l,children:[p("div",{className:"bg-white",children:[a.length>1?Mn({activeIndex:d,tabsNav:a,slideIndexShift:s,onClick:c}):null,Sl({...m,btnClass:["left-3","right-3"],className:"top-10"})]}),u("div",{className:"flex",style:{transform:`translateX(-${s}00%)`},role:"list",children:r?.length?r.map(Bn):null})]})}));function Mn({activeIndex:e,tabsNav:t,slideIndexShift:l,onClick:n}){return p("div",{children:[u("div",{style:{transform:`translateX(-${388*e}px)`},className:"flex flex-col justify-end items-center h-32 pt-4xl box-border duration-1000",children:u("div",{className:"w-full flex flex-nowrap items-end gap-xs",children:t.map(((e,t)=>function({tab:e,i:t,isActive:l,onClick:n}){const a=l?"w-96 p-m border-none bg-primary-main text-white":"w-96 p-s ease-in duration-300 bg-white text-primary-text",i=l?"text-xl mb-xs":"text-l mb-2xs",r=l?"text-l font-light text-white":"text-m font-light text-secondary-text",s=l?"":"text-primary-main",o=e?.icon?.iconVersion,c=l?"white":"normal";return p("button",{type:"button",onClick:n,"aria-label":e?.title,className:w("box-border relative border border-gray cursor-pointer text-left border-b-0 flex space-x-m min-h-20",a),children:[u(Vt,{className:w("h-6 w-6 min-w-6 min-h-6",s),image:{...e?.icon,iconVersion:o??c},width:"24",height:"24"}),p("div",{className:"border-0",children:[u("div",{className:i,children:e?.title}),u("div",{className:r,children:e.description})]})]},String(t))}({tab:e,i:t,isActive:Boolean(t===l),onClick:()=>n(t)})))})}),u("div",{className:"w-full h-2 bg-primary-main"})]})}const Pn=x((e=>{const{onChange:t,min:l,max:n,defaultValue:a="0",fractionDigits:r=0,...s}=e,o=rt(e,{normalize:(e=a)=>l&&n?String(st(Number(Vn(e)),l,n)):Vn(e),format:ot(r)}),c=i((e=>t&&t(Vn(e))),[t]);return u(pe,{onChange:c,...s,...o})})),Vn=(e="")=>e.replaceAll(",",".").replace(/[^\d.]/g,"").replace(/([^.]*\.[^.]*)\./,"$1"),zn=x((e=>u(Pn,{...e,fractionDigits:2,children:u("div",{className:"absolute right-4 bottom-4",children:u(me,{size:"text-xl",font:"font-light",children:"₽"})})}))),_n="amount",jn={[_n]:1500},An=x((({className:e="",title:t="Укажите сумму перевода",label:l="Сумма перевода",placeholder:n="1500",button:a,...i})=>{const[{amount:r},{field:s}]=B(jn),o=r<=0,c=o?ie({version:a?.version}):re({className:"text-white",version:a?.version}),d=J();return p(k,{className:w("flex flex-col items-center",e),defaultPadding:"p-6xl",...i,children:[t?u(I,{className:"pb-lg xl:pb-4xl self-start xl:self-center",headingType:"h2",title:t}):null,p("form",{className:"w-full xl:max-w-[468px]",method:"POST",action:"https://www.rshb.ru/p2p/",children:[u(zn,{name:_n,valid:!o,placeholder:n,label:l,...s(_n,{parse:Number,format:String})}),a?.text?u("button",{type:"submit",className:w("w-full p-m mt-lg",c),disabled:o,...d(a),children:a.text}):null]})]})})),Dn=({blockClassName:e,block:t,render:l})=>l({blockClassName:e,block:t}),$n=[];function Ln(e,t,{className:l,...n}={}){const{key:a,blockDecorator:i=Dn,blocksRegistry:r={},ancestors:s=$n}=t,{type:o}=e;o&&o in r||console.warn(`No block with "${o}" is registered`);const c=o&&r[o];return i({blockClassName:w(e.style?.length?e.style:"col-span-12",l),block:e,ancestors:s,render:({block:l,blockClassName:i})=>{const{content:r}=l;return c?u(c,{className:i,block:e,options:t,...r,...n},a):null}},a)}const En=[],On=(e,{key:t,ancestors:l=En,slotName:n=null,extraProps:a,renderProps:i=Ln,...r})=>{const s=a?(e,t)=>Ln(e,t,a):i;return(e||[]).map(((e,a)=>s(e,{...r,key:`${t||e.type}-${a}`,ancestors:r.parent?[...l||En,[r.parent,n]]:l},a)))};function Fn({block:e,options:t,children:l,extraProps:n,renderProps:a}){return l||(e&&t?On(e.blocks,{...t,parent:e,extraProps:n,renderProps:a}):null)}const Un=e=>({height:"calc(100vh - 242px)",minHeight:`${e||866}px`}),Hn=x((({className:e="",style:t,idx:l,activeIndex:n,observerOptions:a,children:r,onIntersection:s})=>{const o=y(i((e=>{e.length&&s&&s(l||0,e[e.length-1])}),[s,l]),a);return u("div",{className:`inline-block snap-always box-border ${e}`,style:t,"aria-current":Boolean(l===n),ref:o,children:r})})),Xn=["min-w-full","@lg:min-w-[50%]","@lg:min-w-[33.3%]","@lg:min-w-[25%]"],Wn=x((({className:e="",containerRef:t,activeIndex:l,visibleItemCount:n=0,gap:a=0,padding:r=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([]),f=i(((e,t)=>{const l=[...g.current||[]];l[e]=t,g.current=l,h&&h(l),p&&p(Gn(l))}),[h,p]),b=n>0?a*Number(n)-1:0,y="vertical-list"===o,v="horizontal-list"===o,N={...v?Kn(r,b):{},...y?Un(d):{},gap:`${a}px`};return u("div",{className:w("box-border overflow-auto no-scrollbar",o,e),style:N,ref:t,children:(S=(e,t)=>u(Hn,{className:w(c,n?Xn[n-1]:"",y?"h-full":""),style:v?Kn(r/4):{},activeIndex:l,idx:t,observerOptions:x,onIntersection:f,children:e},String(t)),e=>null==e?e:Array.isArray(e)?e.map(S):S(e,0))(m)});var S})),Kn=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),Gn=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),Yn={"horizontal-list":"mx-auto mt-lg w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},Jn={"horizontal-list":"w-6","vertical-list":"h-6"},qn=x((({containerRef:e,activeIndex:t,dotCount:l=0,listType:n="horizontal-list",version:a})=>l?u("div",{className:w("flex gap-xs",Yn[n],a?"group":""),...a?{"data-ver":a}:{},children:new Array(l).fill(null).map(((l,a)=>u("div",{className:`cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white group-data-transparent:bg-white ${a===t?Jn[n]:"w-2 h-2 opacity-30"}`,role:"button","aria-hidden":!0,onClick:()=>(l=>{l!==t&&e?.current&&e.current.children[l]?.scrollIntoView({behavior:"smooth",block:"nearest"})})(a)},String(a))))}):null)),Zn=e=>t=>e.scrollWidth/t,Qn=e=>(t,l)=>{e.scrollBy({left:l*Zn(e)(t),behavior:"smooth"})},ea=({itemCount:e,onVisibleIndicesChange:t})=>{const l=s(null),[a,r]=n([]),o=i((e=>{r((t=>{return(l=t)===(n=e)||Boolean(l&&n&&l?.length===n?.length&&l.every(((e,t)=>e===n[t])))?t:e;var l,n})),t&&t(e)}),[e]),[c,d]=a.length?[El()(a),$l()(a)]:[-1,-1],m=c>0,h=d<e-1,u=i((()=>{var t;l.current&&(m?Qn(l.current)(e,-1):(t=l.current).scrollTo({left:t.scrollWidth,behavior:"smooth"}))}),[e,m]),p=i((()=>{l.current&&(h?Qn(l.current)(e,1):l.current.scrollTo({left:0,behavior:"smooth"}))}),[e,h]);return[l,{scrollLeft:u,scrollRight:p,canScrollLeft:m,canScrollRight:h,visibleIndicesRange:[c,d],handleVisibleIndicesChange:o}]},ta="absolute top-[calc(50%-24px)] z-40",la="absolute top-0 bottom-0 z-40 hidden @lg:block w-20 pointer-events-none",na=x((({scroll:e,activeIndex:t,itemCount:l,arrowsPadded:n,hasEdgeBlocks:a,onScrollLeft:r,onScrollRight:s})=>{const{canScrollLeft:o,canScrollRight:c,scrollLeft:d,scrollRight:m}=e,h=a?t>0:o,x=a?t<l-1:c,g=i((()=>{a?(o&&t!==l-1&&d(),r()):d()}),[d,r,a,o,t,l]),f=i((()=>{a?(c&&0!==t&&m(),s()):m()}),[m,s,a,o,t,l]);return p("div",{className:"hidden @lg:block",children:[aa(e),h?u(Nl,{className:w(ta,n?"left-1 @lg:left-8":"left-0"),onClick:g}):null,x?u(wl,{className:w(ta,n?"right-1 @lg:right-8":"right-0"),onClick:f}):null]})})),aa=e=>p("div",{children:[e.canScrollLeft?u("div",{className:w(la,"left-0 bg-opacity-from-white group-data-secondary:bg-none")}):null,e.canScrollRight?u("div",{className:w(la,"right-0 bg-opacity-to-white group-data-secondary:bg-none")}):null]}),ia=x((({className:e,itemCount:t,visibleItemCount:l=0,noCardBorder:n,isAlignCenter:a,showDots:i,arrowsPadded:r=!0,isGap:s=!0,...o})=>{const{blocks:c=[]}=o.block||{},d=t||c?.length,[m,{inc:h,dec:x}]=yl({itemCount:d,visibleItemCount:l},Math.floor(l/2)),[g,f]=ea({itemCount:d}),[b]=f.visibleIndicesRange,y=c&&"CarouselBankHistoryCard"===c[0]?.type;return u(k,{className:e,defaultPadding:"p-6xl",...o,children:p("div",{className:w(a?"flex justify-center":"","relative max-w-full"),children:[u(Wn,{containerRef:g,visibleItemCount:l,snapAlign:"snap-start",gap:s?16:void 0,onVisibleIndicesChange:f.handleVisibleIndicesChange,children:Fn({...o,renderProps:(e,t,l)=>Ln(e,t,{className:w("h-full min-w-80 sm:min-w-96",n?"":"border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider"),blockIndex:l,isActive:m===l})})}),u(na,{scroll:f,arrowsPadded:r,onScrollLeft:x,onScrollRight:h,hasEdgeBlocks:y,activeIndex:m,itemCount:d}),i?u(qn,{containerRef:g,activeIndex:b,dotCount:d,listType:"horizontal-list"}):null]})})}));ia.childrenTypes=["CarouselCard","CarouselBankHistoryCard","CarouselCatalogCard","CarouselInvestmentCard","CarouselProductCard","CarouselProgramsCard","CarouselRecommendationCard","CarouselTariffsCard","CarouselRichTextCard","CarouselInvestmentCard","CarouselEventCard"];const ra=x((({className:e,title:t,description:l,blockIndex:n=0,isActive:a,...i})=>u(k,{className:w("relative flex h-[485px]",a?"w-[440px] z-10":"w-[340px]",e),defaultPadding:"p-0",...i,children:u("div",{className:w("basis-full self-center",sa(n)),children:a?u(al,{headlineVersion:"M",title:t,description:l,padding:"p-3xl",align:"text-left",className:"h-96 text-white shadow-dark-blue"}):u("div",{className:"h-[300px] flex justify-center items-center font-mohave text-title-large",children:u("span",{className:oa(n),children:t})})})}))),sa=e=>["bg-primary-main","bg-green-light","bg-yellow-light"][e%3],oa=e=>["gradient-color-text-on-green","gradient-color-text-on-yellow","gradient-color-text-on-yellow"][e%3],ca="z-10 border border-solid w-full h-full",da=w(ca,"absolute hidden sm:block border-transparent"),ma=x((({className:e,title:t,description:l,button:n,...a})=>u(k,{className:w("sm:pl-6xl sm:pb-4xl",e),defaultPadding:"p-0",...a,children:p("div",{className:"relative",children:[u("div",{className:w(da,"top-9 right-12 bg-green-dark")}),u("div",{className:w(da,"top-6 right-8 bg-green")}),u("div",{className:w(da,"top-3 right-4 bg-green-light")}),p("div",{className:w(ca,"relative p-5xl bg-white border-green-light"),children:[u(al,{title:t,description:l,headlineVersion:"L",align:"text-left",isEmbedded:!0}),Qt([n],{className:"mt-6xl sm:justify-center",isVertical:!0})]})]})}))),ha={black:"bg-black",white:"bg-white"},ua=x((({className:e="",title:t,description:l,image:n,price:a,button:i,colors:r,...s})=>p(k,{className:w("flex flex-col justify-left",e),defaultPadding:"p-2xl",...s,children:[n?.src?u(Vt,{className:"flex justify-center mb-xl",image:n}):null,u(al,{title:t,description:l,headlineVersion:"XS",isEmbedded:!0,align:"text-left",className:"mb-m"}),r?.length?p("div",{className:"flex text-secondary-text mb-m",children:[u("div",{className:"mr-xs",children:u(me,{size:"text-s",align:"text-left",font:"font-light",children:"Цвета:"})}),r.map(pa)]}):null,a?p(me,{size:"text-h3",align:"text-left",children:[a," ₽"]}):null,Qt([i],{buttonClassName:"w-full mt-lg"})]}))),pa=(e,t)=>u("div",{role:"figure",className:`w-6 h-6 ml-s border border-solid border-main-divider rounded-full ${ha[e]}`},String(t)),xa=x((({className:e="",href:t,target:l,isRemote:n=!1,children:a})=>{const i=J({isRemote:n})({href:t,target:l});return u(t?"a":"div",{className:w("block",e),...t?i:{},children:a})})),ga=x((({className:e="",icon:t,title:l,description:n,href:a,target:i,...r})=>u(k,{className:e,defaultPadding:"p-0",...r,children:p(xa,{className:"flex flex-col",href:a,target:i,children:[t?.icon?u(Vt,{image:t}):null,t?.src?u(Vt,{image:t}):null,l?u(I,{headingType:"h6",as:"h4",className:"text-left mt-s ml-s mb-xs",title:l}):null,n?u("div",{className:"ml-s mb-m",children:u(me,{font:"font-light",size:"text-m",color:"text-secondary-text",children:n})}):null]})}))),fa={start:"self-start",center:"self-center",end:"self-end"},ba=x((({className:e,defaultPadding:t,padding:l,title:n="",insetTitle:a="",buttons:i,leftImage:r,rightImage:s,imageAlign:o,backImage:c,children:d})=>p("div",{className:w("relative flex flex-col gap-3xl font-sans overflow-hidden",l||t,e),children:[n?u("div",{className:"relative",children:n}):null,p("div",{className:"grow relative flex flex-wrap @xl:flex-nowrap justify-around @xl:justify-between items-stretch gap-3xl",children:[ya(r,{imageAlign:o}),p("div",{className:w("flex flex-col gap-3xl max-w-[600px] xl:max-w-[728px]",r?"":"grow"),children:[a,u("div",{className:"grow",children:d}),c?u("div",{className:"mx-auto sm:absolute sm:-z-10 sm:-bottom-4 sm:-right-4",children:c}):null,i]}),ya(s,{className:"-order-1 @xl:order-1",imageAlign:o})]})]}))),ya=(e,{className:t,imageAlign:l})=>e?u("div",{className:w("flex-shrink-0",l&&fa[l],t),children:e}):null,va={1:"grid-cols-1",2:"grid-cols-2"},Na=x((({className:e,padding:t,additionalDescription:l,cardsList:n=[],columnsMode:a=1,description:i,image:r,title:s,...o})=>u(k,{className:w("text-left",e),padding:"p-0",...o,children:p(ba,{className:"h-full",defaultPadding:"p-xl",padding:t,title:s?u(I,{headingType:"h4",as:"h3",className:"mb-m z-10",title:s}):null,backImage:r?.src?u(Vt,{image:r}):null,children:[p("div",{className:"flex justify-between mb-m",children:[i?u("div",{className:"w-1/3",children:u(me,{size:"text-h6",children:i})}):null,l?u(me,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:l}):null]}),n.length?u("ul",{className:w("list-none m-0 p-0 grid gap-xs",va[a]),children:wa(n)}):null]})}))),wa=e=>e.map(((e,t)=>p("li",{children:[e?.parameter?u(me,{size:"text-h6",children:e.parameter}):null,e?.parameterDescription?u(me,{size:"text-m",font:"font-light",color:"text-secondary-text",children:e.parameterDescription}):null]},String(t)))),Sa="bg-transparent border-white border h-[70px] absolute w-80 top-0",ka=x((({text:e,href:t="",target:l="",className:n=""})=>{const a=J()({href:t,target:l});return e?p("div",{className:w("flex max-w-sm relative group/link cursor-pointer w-64 h-16 sm:w-[47%] sm:h-20 sm:mr-m",n),children:[p("a",{className:w("absolute border border-primary-main px-xl py-lg\n text-l font-light bg-white text-primary-text flex\n justify-between items-center group-hover/link:text-primary-main z-10","rounded-md sm:rounded-none w-full h-12 sm:ml-s sm:w-full sm:h-auto"),role:"link",...a,children:[u("div",{className:"p-0.5",children:e}),u("div",{className:"w-6 h-6 hidden sm:block",children:u(Vt,{className:"w-4 h-4 rounded-full box-border brightness-0 group-hover/link:brightness-100",image:{icon:"ArrowRightIcon",iconVersion:"black"},imageClassName:"group-hover/link:text-primary-main",width:"24",height:"24"})})]}),u("div",{className:Sa+" hidden sm:block mx-1.5 mt-1.5"}),u("div",{className:Sa+" hidden sm:block mt-3 mr-3"})]}):null})),Ca=x((({className:e,additionalDescription:t,description:l,links:n,title:a,maxLinksCount:i=10,...r})=>p(k,{className:w("flex flex-col sm:flex-row w-full overflow-hidden",e),...r,children:[p("div",{className:"mr-xl flex-auto",children:[u(al,{isEmbedded:!0,title:a,description:l,as:"h1",align:"text-left"}),t?u(al,{className:"pt-m",description:t,align:"text-left",isEmbedded:!0}):null]}),n?.length?Ia(n,i):null]}))),Ia=(e,t)=>{const l=Math.ceil(e.length/t);return u(ia,{className:"@container-normal sm:w-2/3 w-full p-0 sm:p-2xl",version:"secondary",itemCount:l,arrowsPadded:!1,showDots:!0,children:new Array(l).fill(null).map(((l,n)=>u("div",{className:w("flex flex-wrap self-start sm:w-[672px] w-full sm:mx-5xl"),children:e.slice(n*t,(n+1)*t).map(((e,t)=>u(ka,{className:"sm:m-2xs",...e},String(t))))},String(n))))})},Ta={L:"w-1.5 h-1.5 mr-m",M:"w-1.5 h-1.5 mr-s",S:"w-1 h-1 mr-xs"},Ba=x((({className:e,isDotted:t=!0,children:l,size:n="M"})=>p("div",{className:w("font-sans flex",e),role:"listitem",children:[t?u("div",{className:"shrink-0",children:u("div",{className:w("align-middle inline-block rounded-full bg-primary-text group-data-secondary:bg-white",Ta[n])})}):null,u("span",{children:l})]}))),Ra={S:"text-l font-light",M:"text-h6",L:"text-h5"},Ma={S:"ml-xs",M:"ml-s",L:"ml-m"},Pa=x((({className:e,hasIndent:t,isDotted:l,items:n,listItemSize:a="M"})=>n?.length?u("section",{className:w("flex flex-col gap-xs text-left text-primary-text group-data-secondary:text-white group-data-gray:text-secondary-text",Ra[a],t?Ma[a]:"",e),role:"list",children:n.map(((e,t)=>u(Ba,{isDotted:l,size:a,children:e},String(t))))}):null)),Va=x((({additionalDescription:e,align:t="text-center",button:l={},className:n="",description:a,headlineSmallVersion:i="H6",href:r,icon:s,isDotted:o=!0,isButtonFullWidth:c=!0,isImageFullWidth:d=!1,isTopPosition:m=!1,items:h=[],target:u,title:x,version:g="primary",...f})=>p(k,{className:w("flex flex-col justify-between",t,n),defaultPadding:"p-0",version:g,...f,children:[p(xa,{className:"p-m flex flex-col gap-xs",href:r,target:u,children:[_a(i,x),ja(a),Da(h,o,g),Aa(e),za(s,d,m)]}),Qt([l],{className:w("p-m pt-0",c?"":"self-center"),isVertical:c})]}))),za=(e,t,l)=>p("div",{className:w("flex gap-lg",l?"order-first":"order-last",t?"":"justify-center"),children:[e?.src?u(Vt,{className:"shrink-0",image:e}):null,e?.icon?u(Vt,{className:w("shrink-0",t?"":"w-8 h-8 min-w-8"),image:e}):null]}),_a=(e,t)=>t?u(me,{size:nl[e],children:t}):null,ja=e=>e?u(de,{size:"text-l",children:e}):null,Aa=e=>e?u(me,{size:"text-m",font:"font-light",color:"text-secondary-text group-data-secondary:text-white/80",children:e}):null,Da=(e,t,l="primary")=>e?.length?u(Pa,{className:w("text-s","primary"===l?"!text-secondary-text":""),items:e.filter((e=>e?.text)).map((e=>e.text)),isDotted:t,listItemSize:"S"}):null,$a=(e=[])=>e.reduce(((e,t)=>e+t),0),La=(e=[])=>e?.length?$a(e)/e.length:0,Ea=(e,t="normal")=>e?u("div",{className:w("w-12 h-12 min-w-12 box-border flex items-center justify-center rounded-icon","normal"===t?"bg-secondary-light text-primary-main":"bg-primary-main text-black group-data-secondary:bg-white/30 group-data-secondary:text-black"),children:u(Vt,{className:"w-6 h-6",image:{...e,iconVersion:e.iconVersion||t}})}):null,Oa=x((e=>{const{__html:t="",richVersion:l=""}=e;return u("div",{className:w(l,"md-container"),dangerouslySetInnerHTML:{__html:t}})})),Fa=(e,t)=>e?u(de,{font:"font-light",size:"text-m",color:"text-secondary-text group-data-secondary:text-white",children:e},`description-${t}`):null,Ua=(e,t)=>e?u(me,{color:"text-primary-text group-data-secondary:text-white",size:"text-h6",children:e},`label-${t}`):null,Ha=(e,t)=>"rte"===e.type&&"__html"in e&&e.__html?u(Oa,{...e},`rte-${t}`):["label"in e?Ua(e.label,t):null,"description"in e?Fa(e.description,t):null],Xa=x((({className:e,benefitsVersion:t,...l})=>p("div",{className:w("flex gap-m","description"in l&&l.description?"items-start":"items-center",e),children:["icon"in l?Ea(l.icon,t):null,u("div",{children:Ha(l)})]}))),Wa=e=>"rte"===e.type?e?.__html?.length||0:Math.max(e?.label?.length||0,e?.description?.length||0),Ka=e=>{return((t=e.map(Wa))?.length?Math.sqrt(Math.abs(La(t.map((e=>e**2)))-La(t)**2)):0)>16;var t},Ga=e=>e&&"icon"in e&&e.icon&&(e.icon.icon||e.icon.src),Ya=e=>!e.some(Ga),Ja=x((({className:e,benefitsVersion:t="normal",benefits:l})=>l?.length?u("div",{className:w("flex gap-x-m gap-y-s",Ka(l)||Ya(l)?"flex-col":"flex-wrap",e),children:l.map(((e,l)=>u(Xa,{benefitsVersion:t,...e},String(l))))}):null)),qa=x((({className:e,benefits:t})=>t?.length?u("div",{className:w("grid grid-cols-[max-content_1fr] auto-rows-auto items-baseline gap-x-m gap-y-xs",e),children:t.flatMap(Ha)}):null)),Za=x((({isTabularBenefits:e,...t})=>u(e?qa:Ja,{...t}))),Qa=x((({className:e,tags:t})=>t?.length?u("div",{className:w("flex flex-wrap gap-xs",e),role:"list",children:t.map(ei)}):null)),ei=(e,t)=>u("div",{className:"p-xs border-solid border rounded-md border-gray",role:"listitem",children:u(me,{size:"text-m",font:"font-light",children:e})},String(t)),ti=x((({className:e,padding:t,defaultPadding:l,title:n,description:a,headlineVersion:i="L",align:r="text-left",isInsetTitle:s=!0,benefitsVersion:o,isTabularBenefits:c,benefits:d,__html:m,items:h,isDotted:x=!0,listItemSize:g,tags:f,buttons:b,image:y,imageOptions:{imageAlign:v="end",directionRight:N=!0,isBackground:w}={},children:S})=>{const k=y?.src?u(Vt,{image:y}):null,C=u(al,{title:n,description:a,headlineVersion:i,align:r,isEmbedded:!0});return u(ba,{className:e,padding:t,defaultPadding:l,...s?{insetTitle:C}:{title:C},...w?{backImage:k}:li(k,N),imageAlign:v,buttons:Qt(b),children:p("div",{className:"flex flex-col gap-xl",children:[u(Za,{benefitsVersion:o,isTabularBenefits:c,benefits:d}),m?u(Oa,{__html:m}):null,h?.length?u(Pa,{items:h,isDotted:x,listItemSize:g}):null,S,f?.length?u(Qa,{tags:f}):null]})})})),li=(e,t)=>t?{rightImage:e}:{leftImage:e},ni=x((({className:e,title:t,icon:l,list:n,href:a,target:i,...r})=>u(k,{className:e,defaultPadding:"p-3xl",...r,children:u(xa,{className:"flex items-center h-full",href:a,target:i,children:u(ti,{title:t,headlineVersion:"XS",image:l,imageOptions:{directionRight:!1,imageAlign:"center"},benefits:n?.map((e=>({type:"default",label:e.title,description:e.description})))})})}))),ai={default:"w-14 h-14",stretched:"flex-1 h-14"},ii=(e,t)=>e?"":w("py-m group/media flex items-center justify-center box-border",ai[t]),ri=[{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"}],si=x((({buttonSize:e="default",rounded:t=!1,icon:l,...n})=>{const{href:a,version:i,text:r=""}=n,{iconMapped:s,label:o}=(e=>ri.find((({origins:t})=>t?.some((t=>e?.includes(t)))))||{})(a),c=oi(l)??s;return u(se,{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",ii(r,e)),"aria-label":o,rel:"noopener noreferrer",target:"_blank",text:r,version:i,...n,children:c&&!r?u(Vt,{image:c,imageClassName:"group-hover/media:text-white",width:"24",height:"24"}):null})})),oi=e=>e?.src||e?.icon?e:void 0,ci=x((({className:e="",media:t,children:l,buttonSize:n})=>p("div",{className:"flex flex-col sm:flex-col-reverse gap-xs",children:[l?u(me,{size:"text-s",font:"font-light",color:"text-secondary-text",children:l}):null,u("div",{className:w("flex gap-xs",e),children:t?.map(((e,t)=>u(si,{buttonSize:n,...e},String(t))))})]}))),di=x((({className:e,padding:t,description:l,href:n,icon:a,items:i=[],socialMedia:r=[],target:s,title:o,align:c="text-left",...d})=>u(k,{className:w("relative min-h-28 group-data-gray:bg-main-divider/50",e),defaultPadding:"p-0",...d,children:u(xa,{href:n,target:s,className:"h-full",children:u(ba,{className:"h-full",defaultPadding:"p-m",padding:t,title:o?u(al,{title:o,description:l,headlineVersion:"S",isEmbedded:!0,align:c}):null,backImage:a?.icon||a?.src?u(Vt,{image:a}):null,buttons:r.length?u(ci,{media:r}):null,children:i.length?u(Pa,{items:i,listItemSize:"S"}):null})})}))),mi=x((({className:e="",__html:t,richVersion:l="striped",...n})=>u(k,{className:e,...n,children:u(Oa,{__html:t,richVersion:l})}))),hi=x((({className:e="",isFoldButtonOnTop:t=!1,unfoldedByDefault:l=!1,renderFoldableSection:a,renderFoldButton:r})=>{const[s,o]=n(l),c=i((()=>{o((e=>!e))}),[]),d=a({isUnfolded:s,onToggle:c}),m=r?r({isUnfolded:s,onToggle:c}):null;return p("div",t?{className:e,children:[m,d]}:{className:e,children:[d,m]})})),ui=x((({className:e="",isUnfolded:t,children:l})=>{const n=s(null);return a((()=>{n.current&&(n.current.style.maxHeight=t?`${n.current.scrollHeight}px`:"")}),[t,l?.length]),u("div",{ref:n,className:`transition-max-h duration-300 overflow-hidden ${n.current||!t?"max-h-0":""} ${e}`,children:l})})),pi=(e=!1)=>e?"p-3xl mt-3xl pt-20":"p-3xl mt-20",xi=(e,t)=>{const{title:l,description:n,buttons:a}=e;return p("div",{className:"py-lg border-b border-main-divider",children:[l?u("div",{className:"opacity-80",children:u(me,{size:"text-m",color:"text-secondary-text",children:l})}):null,n?u("div",{className:"mt-2xs",children:u(me,{size:"text-xl",color:"text-primary-text",children:n})}):null,a?.length?u("div",{className:"text-primary-main",children:Qt(a)}):null]},String(t))},gi=x((({className:e="",title:t,align:l="text-center",icon:n,isHighlighting:a=!1,button:i,cardCells:r=[],...s})=>{const o=r.map(xi),c=o.slice(0,1),d=o.slice(1);return p(k,{className:w("relative flex flex-col",e),defaultPadding:pi(a),...s,children:[a?yi():null,fi(n),t?u(I,{className:w("pt-xs",l),headingType:"h5",title:t}):null,i?u(se,{className:"w-full mt-m",...i}):null,r.length?u(hi,{renderFoldableSection:({isUnfolded:e})=>p("div",{children:[c,u(ui,{isUnfolded:e,children:d})]}),renderFoldButton:r.length>1?bi:null}):null]})})),fi=e=>u("div",{className:"basis-full self-center",children:e?.src||e?.icon?u(Vt,{image:e}):null}),bi=({isUnfolded:e,onToggle:t})=>p("button",{className:"w-full cursor-pointer text-primary-main pt-lg flex justify-between items-center",onClick:t,children:[u("div",{children:e?"Скрыть":"Подробнее о тарифе"}),u(je,{className:"text-primary-text",name:e?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16"})]}),yi=()=>p("div",{className:"absolute -top-6 -right-4 h-14 w-14 bg-white flex flex-col items-center justify-center rounded-md shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:[u(je,{iconVersion:"black",name:"HeartIcon",width:"24",height:"24"}),u(de,{size:"text-s",font:"font-normal",align:"text-center",color:"text-primary-text",children:"ХИТ"})]}),vi="bg-gradient-to-r from-main-gradient-start to-main-gradient-end",Ni="border-gray border-solid border",wi="border-main-divider border border-t-0 border-x-0",Si="w-52",ki=x((({icon:e,image:t,title:l,link:n})=>p("div",{className:`w-80 box-border flex flex-col gap-m items-center rounded-t-md border-b-0 p-2xl ${Ni} ${vi}`,role:"columnheader",children:[e&&!t?.src&&u(Vt,{className:"h-16 w-16 min-w-16 min-h-16",image:e,width:"64",height:"64"}),t?.src&&u(Vt,{image:t}),l?u(I,{headingType:"h4",as:"h3",className:"text-center text-white",title:l}):null,n?.text&&u("div",{className:"mt-auto w-full",children:u(se,{href:n.href,target:n.target,className:"w-full text-primary-main bg-white hover:bg-secondary-hover active:bg-secondary-active",children:u("div",{className:"text-xs font-light font-medium py-s",children:n.text})})})]}))),Ci={comparison:"flex gap-m duration-1000",tariff:"flex flex-grow duration-1000"},Ii=x((({children:e,activeIndex:t,columnWidth:l,version:n="comparison"})=>u("div",{className:"flex flex-1 overflow-hidden",children:u("div",{className:Ci[n],style:{transform:`translateX(-${t*l}px)`},children:e})}))),Ti=x((({children:e})=>u("div",{className:"self-start flex flex-col",role:"row",children:u("div",{className:"flex gap-xl",children:e})}))),Bi=x((({colHeaders:e,activeIndex:t})=>p(Ti,{children:[u("div",{className:Si,role:"columnheader"}),u(Ii,{activeIndex:t,columnWidth:336,children:e.map(((e,t)=>u(ki,{...e},String(t))))})]}))),Ri=x((({cell:e,isFirstRow:t,isLastRow:l,isFillGradient:n})=>u("div",{className:`w-80 box-border flex flex-col ${Ni} ${l?"border-t-0 rounded-b-md":"border-y-0"} ${n?vi:""}`,role:"cell",children:u("div",{className:`mx-2xl h-full ${wi} ${n&&t?"border-t":""} ${l?"border-b-0":"border-solid"}`,children:e.map(((e,t)=>Vi(e,t,n)))})}))),Mi=(e=!1)=>"text-xl m-0 "+(e?"text-white":""),Pi=(e=!1)=>"text-s opacity-80 "+(e?"text-white":"text-secondary-text"),Vi=({label:e,description:t},l,n)=>p("div",{className:"first:pt-2xl pt-xl last:pb-2xl",children:[e?u("h4",{className:Mi(n),children:e}):null,t?u("div",{className:Pi(n),children:t}):null]},String(l)),zi=(e=!1)=>`text-s py-2xl ${wi} w-52 ${e?"border-b-0":"border-solid"}`,_i=x((({row:{header:e,data:t},activeIndex:l,isColoredFirstColumn:n,isFirstRow:a,isLastRow:i})=>p(Ti,{children:[e?.title?u("div",{className:zi(i),children:e.title}):null,t?.length?u(Ii,{activeIndex:l,columnWidth:336,children:t.map(((e,t)=>u(Ri,{cell:e,isFirstRow:a,isLastRow:i,isFillGradient:n&&0===t},String(t))))}):null]}))),ji=x((({rowData:e,isColoredFirstColumn:t,activeIndex:l,controls:n})=>{const{isScrollAvailable:a}=n;return p("div",{className:"relative",children:[e.map(((e,n,{length:a})=>u(_i,{row:e,isFirstRow:0===n,isLastRow:n+1===a,activeIndex:l,isColoredFirstColumn:t},String(n)))),a?Sl({...n,btnClass:["top-28","top-12"],className:"right-7",isDisabled:!0}):null]})})),Ai=x((({columns:e=[],rowHeaders:t,isShowAllRow:l,visibleRowLength:n,isColoredFirstColumn:a})=>{const i=e?.map((({header:e})=>e||{})),r=e?.map((({data:e})=>e))||[],s=t?.map(((e,t)=>({header:e,data:r.map((e=>e?.[t]||[{}]))}))).slice(0,l?t.length:n),[o,c]=yl({itemCount:e.length,visibleItemCount:3}),{isScrollAvailable:d}=c;return p("div",{children:[p("div",{role:"table",children:[i?.length?u(Bi,{colHeaders:i,activeIndex:o}):null,s?.length?u(ji,{rowData:s,isColoredFirstColumn:a,activeIndex:o,controls:c}):null]}),d?u("div",{className:"absolute top-0 right-0 bottom-0 w-20 bg-opacity-to-white"}):null]})})),Di=x((({className:e="",title:t,rowHeaders:l,columns:a,visibleRowLength:r=0,isColoredFirstColumn:s=!1,...o})=>{const[c,d]=n(!r),m=i((()=>d((e=>!e))),[]);return p(k,{className:w("overflow-hidden relative",e),defaultPadding:"p-6xl",...o,children:[u(I,{headingType:"h2",className:"text-center mb-4xl mx-auto",title:t}),u(Ai,{columns:a,rowHeaders:l,isShowAllRow:c,isColoredFirstColumn:s,visibleRowLength:r}),r?$i({isShowAllRow:c,onClick:m}):null]})})),$i=({isShowAllRow:e,onClick:t})=>u("div",{className:"pr-6xl",children:p("div",{className:"flex gap-m w-full",children:[u("div",{className:Si}),u("button",{onClick:t,className:"py-xs flex-1 border-gray border-solid border text-primary-text bg-white hover:border-primary-main hover:text-primary-main",children:u(me,{size:"text-xs",font:"font-medium",children:e?"Скрыть":"Показать все параметры"})})]})}),Li=x((({className:e,contacts:t,info:l,version:n="secondary",...a})=>p(k,{className:w("flex",e),defaultPadding:"p-6xl",version:n,...a,children:[l?.length?Ei(l):null,t?.length?Ei(t):null]}))),Ei=e=>u("div",{className:"flex gap-5xl grow basis-0",children:e.map(((e,t)=>Oi({column:e,index:t})))}),Oi=({column:e,index:t})=>e?u("div",{className:"flex flex-col gap-xl grow basis-0",children:e.map((({title:e="",description:t,additionalDescription:l,button:n},a)=>p("div",{children:[u(al,{title:e,description:t,headlineVersion:"XS",align:"text-left",isEmbedded:!0}),l?u("div",{className:"mt-xs opacity-80",children:u(de,{size:"text-m",font:"font-light",children:l})}):null,n?.href?u(se,{className:"mt-xl",...n}):null]},String(a))))},`col-${String(t)}`):null,Fi=e=>null==e||""===e||Array.isArray(e)&&0===e.length||"object"==typeof e&&0===Object.keys(e).length,Ui=(e,t)=>Object.entries(e).map((([t,l])=>"number"==typeof l?((e,t)=>l=>Fi(t[e])||Fi(l[e])||Hi(t[e])<=Hi(l[e]))(t,e):"object"==typeof l&&"min"in l&&"max"in l?((e,t)=>l=>Fi(t[e])||Fi(l[e])||Hi(t[e]?.min)>=Hi(l[e]?.min)&&Hi(t[e]?.min)<=Hi(l[e]?.max))(t,e):Array.isArray(l)?((e,t)=>l=>Fi(t[e])||Fi(l[e])||t[e]?.some((t=>l[e]?.includes(t))))(t,e):((e,t)=>l=>Fi(t[e])||Fi(l[e])||t[e]===l[e])(t,e))).every((e=>e(t))),Hi=e=>Number(e||0),Xi=x((({className:e="",label:t,icon:l,dataTheme:n="",disabled:a=!1,onClick:i})=>p("button",{className:w("flex justify-center w-full py-4 border border-transparent outline-none focus:border-primary-text",a?"bg-main-divider text-main-disabled hover:bg-main-divider":"bg-primary-main text-white hover:bg-primary-hove",e),onClick:i,disabled:a,"data-theme":n,children:[u("span",{className:"text-h4 pr-s",children:t}),l?u(Vt,{image:{icon:l,iconVersion:"white"},className:"flex-shrink-0 my-auto",width:"20",height:"20"}):null]}))),Wi=({isUnfolded:e,onToggle:t})=>u(Xi,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:["Развернуть","Скрыть"][Number(e)],onClick:t}),Ki=["ArrowDownIcon","ArrowUpIcon"],Gi="grid grid-cols-12 gap-2xs border-box",Yi=x((({label:e="",filtrationState:t={},topItemsCount:l=0,block:n,notFound:a,...i})=>{const r=n?.blocks?.filter((e=>Ui(t,e.content||{})))||[],[s,o]=l>0?[r.slice(0,l),r.slice(l)]:[r,[]];return p("div",{children:[u("div",{className:w(r.length?"hidden":"block"),children:a?Ji(a):null}),p("div",{className:w(r.length?"":"hidden"),children:[u("div",{className:w("mb-2xs",Gi),children:On(s,{...i.options,parent:n})}),u(hi,{renderFoldableSection:({isUnfolded:e})=>u(ui,{className:w(Gi,e?"mb-2xs":""),isUnfolded:e,children:On(o,{...i.options,parent:n})}),renderFoldButton:({isUnfolded:t,onToggle:n})=>u(Xi,{className:w(l<1?"hidden":""),disabled:!o?.length,label:e,icon:Ki[Number(t)],dataTheme:i.options?.page?.colorPalette,onClick:n})})]})]})}));function Ji({title:e,description:t}){return p("div",{className:"bg-white py-20",children:[e?u("div",{className:"mb-xs",children:u(de,{align:"text-center",children:u(me,{size:"text-h4",children:e})})}):null,t?u(de,{size:"text-xl",font:"font-light",align:"text-center",children:t}):null]})}const qi=x((({value:e,onChange:t,items:l=[],multiple:n})=>l.map((l=>u(He,{text:l.title,value:[e].flatMap((e=>e)).includes(l.value),onChange:()=>(l=>{if(t)if(n){const n=e?.includes(l);t(n?(e||[]).filter((e=>e!==l)):[...e||[],l])}else t(e===l?"":l)})(l.value),type:n?"checkbox":"radio"},l.value))))),Zi=({field:e,reset:t,filtrationSchema:l,resetButton:n,children:a})=>p("form",{className:"flex justify-between bg-white p-4xl mb-2xs",children:[p("div",{className:"flex gap-5xl",children:[a,Object.entries(l).map(Qi(e))]}),n?u("div",{children:u(se,{className:"w-72 ml-s",onClick:t,...n})}):null]}),Qi=e=>([t,l])=>{const n=l?.type;return"array"===n?er(t,e)(l):null},er=(e,t)=>l=>{const n=l?.items?.enum?.map(((e,t)=>({value:e,title:l?.items?.enumNames?.[t]||""})))||[];return p("div",{children:[l?.title?u("div",{className:"mb-m",children:u(me,{size:"text-m",font:"font-light",color:"text-secondary-text",children:l.title})}):null,u(qi,{items:n,multiple:!0,...t(e)})]},e)},tr={sum:500,period:{min:3,max:36}},lr=x((({className:e,filtrationSchema:t={},resetButton:l,sumInput:n,periodInput:a,...i})=>{const[r,{field:s,reset:o}]=B(tr),c=a?.max||36,d=p("div",{children:[u(zn,{label:n?.title,min:500,max:1e9,...s("sum",{parse:Number,format:String})}),u(ut,{title:a?.title,items:["От 3 мес","До 3 лет"],min:a?.min||3,max:c,...s("period",{parse:e=>({min:e,max:c}),format:({min:e})=>e})})]});return p(k,{className:w("space-y-2xs",e),defaultPadding:"p-0",version:"transparent",...i,children:[Zi({field:s,reset:o,filtrationSchema:t,resetButton:l,children:d}),u(Yi,{filtrationState:r,...i})]})}));lr.childrenTypes=["ProductTile"],lr.childSchema=e=>e?.filtrationSchema||{};const nr=e=>"Image"===e?.errorContentType&&e?.image?u(Vt,{image:e.image}):"Code"===e?.errorContentType&&e.code?u("div",{className:"font-mohave text-title-extra gradient-color-text",children:e.code}):null,ar=x((({className:e="",title:t,subtitle:l,error:n,button:a,...i})=>{return p(k,{className:w("flex flex-col gap-lg justify-center items-center",e),defaultPadding:w("py-xs",(r=a?.text,r?"py-20":"mb-16 mt-24")),version:"transparent",...i,children:[u("div",{className:"flex justify-center py-20",children:nr(n)}),t?u(I,{headingType:"h1",className:"text-left",title:t}):null,l?u("div",{className:"max-w-[613px] text-center",children:u(me,{size:"text-xl",font:"font-light",children:l})}):null,a?.text?u(se,{className:"py-4 px-9",version:a?.version,...a,children:a.text}):null]});var r}));var ir;!function(e){e.EUR="EUR",e.USD="USD",e.GBP="GBP",e.AUD="AUD",e.CNY="CNY",e.RUB="RUB"}(ir||(ir={}));const rr={USD:"DollarIcon",EUR:"EuroIcon",GBP:"DollarIcon",AUD:"DollarIcon",CNY:"DollarIcon",RUB:"RoundRubleIcon"},sr=e=>e?dr.format(e):"",or=(e,t)=>p("td",{className:"pt-m pl-5xl",children:[u("div",{children:sr(e)}),u("div",{className:w("font-normal text-sm text-secondary-text",(t||0)>=0?"text-green":"text-red"),children:sr(t)})]}),cr=(e,t="")=>p("td",{className:"pt-m pl-5xl",children:[u("div",{children:sr(e)}),u("div",{className:"font-normal text-sm text-green",children:t})]}),dr=new Intl.NumberFormat("ru",{style:"currency",currency:ir.RUB}),mr=e=>u("th",{className:"pl-5xl",children:u(me,{size:"text-m",font:"font-light",align:"text-left",color:"text-secondary-text",children:e})}),hr=x((({className:e,currencies:t=[],actuality:l="",officeName:n="",...a})=>{const i=ur(t,4);return p(k,{className:w("space-y-3xl",e),...a,children:[p("div",{className:"flex flex-row flex-grow-0 justify-between space-y-lg",children:[u(I,{headingType:"h4",title:"Курс обмена валют в "+n,className:"whitespace-pre-wrap text-h4"}),u("div",{className:"pl-6xl",children:u(me,{size:"text-m",font:"font-light",align:"text-left",color:"text-secondary-text",children:l})})]}),u("div",{className:"flex flex-row pt-m text-left",children:i.length>0?p("table",{className:w("h-fit w-fit",e),children:[u("thead",{children:p("tr",{children:[u("th",{children:u(me,{size:"text-m",font:"font-light",align:"text-left",color:"text-secondary-text",children:"Валюта"})}),mr("Купить"),mr("Продать"),mr("Лучшая покупка"),mr("Лучшая продажа")]})}),u("tbody",{children:i.map((e=>(({title:e,buyPrice:t,buyDifference:l,sellPrice:n,sellDifference:a,buyOfficeName:i,sellOfficeName:r})=>p("tr",{className:"pb-2xs text-h6",children:[u("td",{className:"pt-m",children:p("div",{className:"flex items-center",children:[e?u(Vt,{image:{icon:rr[e]},width:"24",height:"24"}):null,u("span",{className:"ml-xs",children:e})]})}),or(t,l),or(n,a),cr(t,i),cr(n,r)]},e))(e)))})]}):null})]})})),ur=(e,t)=>e.sort(((e,t)=>Number(e.id)-Number(t.id))).slice(0,t);var pr;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD"}(pr||(pr={}));const xr=new Intl.NumberFormat("ru",{style:"currency",currency:pr.RUB}),gr=e=>e?xr.format(e):"",fr="text-left text-m font-light text-secondary-text",br=`${fr} pl-5xl`,yr={USD:"DollarIcon",EUR:"EuroIcon"},vr=x((({className:e,exchangeCurrencyItems:t})=>p("table",{className:`h-fit w-fit ${e}`,children:[u("thead",{children:p("tr",{children:[u("th",{className:fr,children:u(me,{size:"text-m",children:"Валюта"})}),u("th",{className:br,children:u(me,{size:"text-m",children:"Купить"})}),u("th",{className:br,children:u(me,{size:"text-m",children:"Продать"})})]})}),u("tbody",{children:t.map(Nr)})]}))),Nr=e=>{const t=e?.currency?.currency;return p("tr",{className:"pb-2xs text-h6",children:[u("td",{className:"pt-m",children:p("div",{className:"flex items-center gap-xs",children:[t?u(Vt,{image:{icon:yr[t]},width:"24",height:"24"}):null,u(me,{size:"text-h6",children:t})]})}),u("td",{className:"pt-m pl-5xl",children:u(me,{size:"text-h6",children:gr(e?.saleExchangeRate)})}),u("td",{className:"pt-m pl-5xl",children:u(me,{size:"text-h6",children:gr(e?.buyExchangeRate)})})]},t)},wr={icon:"GpsIcon"},Sr=x((({className:e="",address:t})=>p("div",{className:`flex gap-s ${e}`,children:[u(Kt,{...wr,iconBgVersion:"primary"}),p("div",{className:"space-y-2xs",children:[t?u("p",{className:"text-primary-main text-l",children:t}):null,u("p",{className:"text-secondary-text text-m",children:"Курс указан для заданного офиса"})]})]}))),kr=(e,t,l)=>{const n=Number(Cr(e))*Math.pow(t,l?-1:1);return Number.isInteger(n)?n:((e,t=2)=>{const l=10**t;return Math.round(parseFloat(String(e))*l)/l})(n)},Cr=e=>e.replace(/[^\d.,]/g,"").replace(",","."),Ir=e=>{return(t=[[e=>e.value!==pr.RUB&&e.oppositeValue!==pr.RUB,()=>e.handleConvert(e.value,pr.RUB)],[e=>e.value===pr.RUB&&e.oppositeValue===pr.RUB,()=>e.handleConvert(e.value,pr.USD)],[()=>!0,()=>e.handleConvert(e.value)]],e=>{const[,l]=t.find((([t])=>t(e)))||[];return l})(e)?.();var t};function Tr(e){const{placeholder:t,rates:l,selected:n,value:a,setValue:i,setSelected:r}=e,s=l.map((e=>({key:e?.currency?.currency??"",text:e?.currency?.currency??""}))),o={key:n,text:n};return p("div",{className:"relative flex",children:[u(pe,{className:"shrink-0 text-l w-full appearance-none -mr-24",placeholder:t,type:"text",value:a,onChange:i}),s.length?u($e,{isBorder:!1,onChange:e=>r(e.key),options:s,value:o}):null]})}const Br=x((({className:e="",currencyRatesBuy:t,currencyRatesSell:l,button:a})=>{const[r,s]=n({inputSell:"",inputBuy:"",selectSell:t?.[0]?.currency?.currency||pr.RUB,selectBuy:l?.[0]?.currency?.currency||pr.USD}),o=i((e=>s((t=>({...t,...e})))),[]);return p("div",{className:`grid gap-m pt-2xl ${e}`,children:[Tr({placeholder:"Хочу продать",rates:l,selected:r.selectSell,setSelected:Rr(r,o,l),value:r.inputSell,setValue:e=>Pr(o,l)(e,r.selectSell,r.selectBuy)}),Tr({placeholder:"Получу",rates:t,selected:r.selectBuy,setSelected:Mr(r,o,t),value:r.inputBuy,setValue:e=>Vr(o,t)(e,r.selectBuy,r.selectSell)}),a?.text?u(se,{className:"py-4 px-9",version:a?.version,...a,children:a.text}):null]})})),Rr=(e,t,l)=>n=>{t({selectSell:n}),Ir({value:n,oppositeValue:e.selectBuy,handleConvert:(n=e.selectSell,a=e.selectBuy)=>{Pr(t,l)(e.inputSell,n,a)}})},Mr=(e,t,l)=>n=>{t({selectBuy:n}),Ir({value:n,oppositeValue:e.selectSell,handleConvert:(n=e.selectBuy,a=e.selectSell)=>Vr(t,l)(e.inputBuy,n,a)})},Pr=(e,t)=>(l,n,a)=>{e({inputSell:Cr(l),selectBuy:a});const i=t.find((e=>e.currency?.currency===a))?.buyExchangeRate||t.find((e=>e.currency?.currency===n))?.saleExchangeRate;i&&e({inputBuy:String(kr(l,i,n===pr.RUB)||"")})},Vr=(e,t)=>(l,n,a)=>{e({inputBuy:Cr(l),selectSell:a});const i=t.find((e=>e.currency?.currency===a))?.saleExchangeRate||t.find((e=>e.currency?.currency===n))?.buyExchangeRate;i&&e({inputSell:String(kr(l,i,n===pr.RUB)||"")})};const zr=async e=>{const t=await _r(),l=t?.code||"000";return{region:t,exchangeRates:await jr(e,l)}},_r=async()=>{try{return await D("/api/v1/region",{method:"GET"})}catch(e){return console.log(e),{}}},jr=async(e,t)=>{try{return await D(e+`?regionCode=${t}`,{method:"GET"})}catch(e){return console.log(e),{}}},Ar=x((({className:e="",title:t="Курсы обмена валют",button:l,...n})=>{const{exchangeRates:a}=function(){const{data:e}=_("/api/v1/exchangerates",zr);return e||{}}(),i=Dr(a?.exchangeRate?.currencies),r=i.filter((e=>e.buyExchangeRate));r.unshift({currency:{currency:pr.RUB}});const s=i.filter((e=>e.saleExchangeRate));return s.push({currency:{currency:pr.RUB}}),u(k,{className:w("box-border min-h-80",e),...n,children:u(ba,{className:"h-full",title:u(I,{headingType:"h4",title:t,className:"whitespace-pre-wrap"}),children:p("div",{className:"flex gap-6xl flex-wrap",children:[p("div",{children:[i?u(vr,{className:"mb-xl",exchangeCurrencyItems:i}):null,u(Sr,{address:a?.address})]}),i.length&&r.length&&s.length?u(Br,{className:"grow",currencyRatesBuy:r,currencyRatesSell:s,button:l}):null]})})})})),Dr=e=>e?.filter((e=>1===e?.currency?.id||2===e?.currency?.id))||[],$r=e=>Ct(d.SITEMAP||"sitemap",e),Lr={"bg-white":"color",transparent:"white"},Er={"bg-white":"text-primary-main",transparent:"text-white"},Or=(e,t,l)=>u(Vt,t?.src?{image:t,className:Er[e],width:l?.width,height:l?.height,pathPrefix:"/wcms-resources/"}:{image:{icon:t?.icon||"LogoIcon",iconVersion:Lr[e]},className:Er[e],width:l?.width,height:l?.height}),Fr={"bg-white":"text-primary-text",transparent:"text-white"},Ur=(e,t,l)=>u("span",{className:`${Fr[t]} ml-s font-medium ${l||""}`,children:e||"Россельхозбанк"}),Hr=x((({className:e="",href:t="/",logo:l,children:n=l?.title,targetBlank:a,bgColor:i="bg-white",showTitle:r=!0})=>p("a",{className:w("inline-flex items-center font-sans no-underline",e),href:t,target:a?"_blank":"_self","aria-label":l?.title||"Россельхозбанк",children:[Or(i,l?.image,{width:"40",height:"45"}),r?Ur(n||l?.title,i):null]}))),Xr=x((({className:e,onClose:t})=>u("button",{className:w("flex justify-center items-center w-12 h-12 p-2xs bg-transparent border-none",e),onClick:t,title:"Закрыть",children:u(Vt,{image:{icon:"CloseIcon"},width:"24",height:"24"})}))),Wr=x((({className:e,value:t,autoFocus:l,onChange:n,onFocus:a})=>{const r=i((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-m pointer-events-none",children:u(Vt,{image:{icon:"LoupeIcon"},width:"24",height:"24"})}),u("input",{className:w("h-12 pl-6xl w-full text-l text-black outline-none box-border","border border-solid rounded-md border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text"),value:t,type:"text",name:"search-bar-input",placeholder:"Поиск по сайту",autoFocus:l,onChange:r,onFocus:a})]})})),Kr=(e,t,l=300)=>a((()=>{const t=setTimeout(e,l);return()=>{clearTimeout(t)}}),t);function Gr(e,...t){return e.map(((e,l)=>[e,...t.map((e=>e[l]))]))}const Yr=e=>t=>{if(e===t)return 1;if(!e||!t)return 0;const{m:l,s1Matches:n,s2Matches:a}=function(e,t){const l=Math.max(0,Math.floor(Math.max(e.length,t.length)/2)-1),n=new Array(e.length),a=new Array(t.length);let i=0;for(let r=0;r<e.length;r++){const s=Math.max(0,r-l),o=Math.min(r+l,t.length-1);for(let l=s;l<=o;l++)n[r]||a[l]||e[r]!==t[l]||(i++,n[r]=!0,a[l]=!0)}return{m:i,s1Matches:n,s2Matches:a}}(e,t);if(0===l)return 0;const i=function(e,t,{s1Matches:l,s2Matches:n}){let a=0;for(let i=0,r=0;i<e.length;i++){if(!l[i])continue;let s=r;for(;s<t.length;s++)if(n[s]){r=s+1;break}e[i]!==t[s]&&a++}return a}(e,t,{s1Matches:n,s2Matches:a}),r=(l/e.length+l/t.length+(l-i/2)/l)/3,s=r>.7?.1*function(e,t){let l=0;for(;e[l]===t[l]&&l<4;)l++;return l}(e,t):0;return r+s*(1-r)};const Jr=(e,t)=>(l,n)=>{for(const[a,i]of n)l.set(a,e(l.get(a)||t,i));return l},qr=e=>e.toLowerCase().split(/[^0-9a-zа-я-]+/).filter((e=>e.length>=3&&!/[0-9a-z]/.test(e))),Zr=e=>t=>e.map((([e,l])=>[Yr(t)(e),l])).filter((([e])=>e>=.8)).map((([e,t])=>es(t,e))).reduce(Jr(Math.max,0),new Map),Qr=e=>t=>{return Gr(t,t.map((({title:e})=>e)).map((e=>t=>{const l=qr(t||"");return l.length?$a(e.map((e=>Ll(l.map(Yr(e)))))):0})(e))).sort((n=([,e])=>e,l=(e,t)=>n(e)-n(t),(e,t)=>-l(e,t))).map((([e])=>e));var l,n},es=(e,t)=>new Map(e.map((e=>[e,t]))),ts=["/"],ls=({basePathList:e=ts,initialQuery:t="",wasOpened:l})=>{const[i,s]=n(t||"");a((()=>{null!=t&&s(t)}),[t]);const o=r((()=>e.map((e=>l?e:null))),[l,e]),{data:c}=_(o,ns),[d,m]=n(null);return Kr((()=>{c&&m(c.map((e=>t=>{const{corpus:l,dictionary:n}=t||{};if(!(e&&l?.length&&n&&Object.keys(n).length))return[];const a=qr(e);if(!a.length)return[];const i=Object.entries(n),r=[...a.map(Zr(i)).reduce(Jr(((e,t)=>e+t),0),new Map).entries()].filter((([,e])=>e>=.799*a.length)).map((([e])=>l[e]));return Qr(a)(r)})(i)))}),[c,i]),[d,{value:i,onChange:s}]},ns=async(...e)=>(await Promise.allSettled(e.map((e=>A(H(e,"/","search.index.json")))))).map((e=>"fulfilled"===e.status?e.value:{})),as=x((({className:e,head:t,children:l,onClose:n})=>{const{close:a}=E(),r=i((()=>{a(),n&&n()}),[n]);return p("div",{className:w("relative min-h-full bg-white",e),children:[p("div",{className:"sticky py-xl top-0 bg-white",children:[u(Xr,{className:"absolute top-0 right-0",onClose:r}),u("div",{className:"container",children:t})]}),u("div",{className:"container pb-6xl",children:l})]})})),is=x((({className:e,topItems:t})=>{const l=J({isRemote:!0});return u("div",{className:w("flex items-start justify-between",e),children:t?.map(l).map(rs)})})),rs=(e,t)=>{const{text:l,items:n,href:a,target:i,onClick:r}=e;return p("div",{className:"flex flex-col gap-s w-1/4",children:[u("a",{className:"leading-5 text-l text-primary-text hover:text-primary-main no-underline",href:a,target:i||"_self",onClick:r,children:l||`Раздел ${t}`}),n?.map(((e,t)=>u(ss,{...e,basePath:o(a),index:t},String(t))))]},String(t))},ss=x((({text:e,index:t,basePath:l,...n})=>{const a=J({isRemote:!(!d.BASE_PATH||!l)&&!d.BASE_PATH.startsWith(l),basePath:l}),{href:i,target:r,onClick:s}=a(n);return u("a",{className:w("text-l font-light text-secondary-text hover:text-primary-main no-underline","overflow-x-hidden overflow-ellipsis whitespace-nowrap"),href:i,target:r||"_self",onClick:s,children:e||`Раздел ${t}`})})),os=x((({initialQuery:e})=>{const{topItems:t}=$r(),l=r((()=>t?.map((e=>e.href||"/"))),[t]),[n,i]=ls({basePathList:l,initialQuery:e,wasOpened:!1}),s=r((()=>cs(t)(n)),[t,n]);return a((()=>function(e){for(const t of e.filter((({items:e})=>e?.length)))console.group(t.text),console.table(t.items,["text","href"]),console.groupEnd()}(s)),[s]),u(as,{head:u(Wr,{autoFocus:!0,...i}),children:u(is,{topItems:s})})})),cs=e=>t=>e?.length&&t?.length?Gr(e,t).map((([e,t])=>({...e,items:t?.map((({title:e,uri:t})=>({text:e,href:H("/",t)})))}))):[];const ds=()=>{const{open:e,close:t}=E();return{open:(t={},l={})=>e(u(os,{...t}),l),close:t}},ms=x((({className:e})=>{const[t,l]=n(""),a=i((()=>l("")),[]),{open:r}=ds(),s=i((e=>{l(e),hs(e)&&r({initialQuery:e},{onClose:a})}),[a]);return p("div",{className:e,children:[u(Wr,{value:t,onChange:s}),u(Xr,{className:"absolute top-2 right-3 sm:hidden",onClose:a})]})})),hs=e=>e&&e.length>=3,us=x((({className:e="",items:t})=>p("div",{className:e,children:[t?.length?t.map(ps):null,u(se,{version:"primary",className:"w-full",href:"https://www.rshb.ru/feedback/question/",target:"_blank",ariaLabel:"Обратная связь",text:"Обратная связь"})]}))),ps=(e,t)=>p("div",{className:"mb-m",children:[u("div",{className:"mb-m",children:u(me,{size:"text-l",font:"font-medium",children:e?.title})}),u("div",{children:e.items?.map(xs)})]},String(t)),xs=(e,t)=>p("div",{className:"mb-m",children:[u("div",{children:gs(e.type,e.text)}),u("div",{className:"mt-2xs text-s font-light text-secondary-text",children:e.description})]},String(t)),gs=(e,t="")=>{switch(e){case"tel":return u("a",{className:"text-h6 text-primary-text hover:text-primary-main no-underline",href:`tel:${fs(t)}`,children:t});case"email":return u("a",{className:"text-xl font-light text-primary-text no-underline",href:`mailto:${t}`,children:t});default:return u("span",{children:t})}},fs=e=>e.replaceAll(/\D/g,""),bs=x((({className:e="",index:t,text:l,...n})=>{const a=J(),{href:i,target:r,onClick:s}=a(n);return u("a",{className:w("text-secondary-text",e),href:i,target:r,onClick:s,children:l||`Документ ${t}`})})),ys=x((({className:e="",links:t})=>u("div",{className:e,children:t?.length?u("div",{className:"flex justify-between items-center gap-lg py-lg border-solid border-x-0 border-y border-y-main-divider",children:t.map(((e,t)=>u(bs,{index:t,className:"text-l font-light max-w-[292px]",...e},String(t))))}):null}))),vs=x((({className:e="",index:t,...l})=>{const n=J({isRemote:!0}),{href:a,target:i,text:r,onClick:s}=n(l);return u("a",{className:`text-xs font-light text-secondary-text visited:text-secondary-text hover:text-primary-main inline-block no-underline max-w-[292px] ${e}`,href:a,target:i,onClick:s,children:r||`Документ ${t}`})})),Ns=x((({className:e="",links:t})=>p("div",{className:e,children:[u("div",{className:"pt-lg",children:u(me,{size:"text-xs",font:"font-light",color:"text-secondary-text",children:`© 2000-${(new Date).getFullYear()} АО «Россельхозбанк» Генеральная лицензия Банка России № 3349 от 12.08.2015 г.`})}),t?.length?u("div",{className:"flex flex-col sm:flex-row justify-start items-start gap-x-lg gap-y-xs pt-lg",children:t.map(((e,t)=>u(vs,{index:t,...e},String(t))))}):null]}))),ws="w-52",Ss=x((({className:e,...t})=>{const{topItems:l}=$r(t.options?.page?.fallback),{documents:n,relatedEnterprises:a,contacts:i,socialMedia:r,mobileApps:s,logo:o}=Ct(d.FOOTER||"footer",t.options?.page?.fallback);return p(k,{tag:"footer",className:e,...t,children:[p("div",{className:"flex items-stretch gap-3xl pb-3xl ",children:[u(Hr,{className:ws,logo:o}),u(ms,{className:"grow"})]}),p("div",{className:"flex items-stretch gap-6xl",children:[p("div",{className:"w-52 flex flex-col shrink-0 overflow-hidden space-y-xl",children:[u(us,{items:i}),u(ci,{media:r,children:"Соцсети"}),u(ci,{media:s,children:"Мобильное приложение"})]}),u(is,{className:"flex-grow",topItems:l})]}),u(ys,{className:"mt-xl",links:a}),u(Ns,{links:n})]})})),ks=x((({className:e="",title:t,description:l,calendar:n,...a})=>p(k,{className:w("space-y-m",e),defaultPadding:"p-6xl",...a,children:[u(al,{title:t,description:l,headlineVersion:"M",isEmbedded:!0}),n?Cs(n):null]}))),Cs=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 gap-s",children:[u("div",{className:"flex w-full text-h6 text-center",children:l.map((e=>Is(e,t)))}),u("div",{className:"flex gap-s w-full",children:l.map(((e,t)=>p("div",{className:"border-r border-main-divider last:border-r-0 space-y-s",style:{flexBasis:e.flexBasis},children:[u("div",{className:"flex gap-s",children:Ts(e)}),p("div",{className:"text-s font-light text-primary-text",children:[u("span",{children:e.text})," ",u("span",{className:"text-primary-main",children:e.greenText})]})]},`monthItem-${t}`)))})]})},Is=(e,t)=>e.month?.map(((e,l)=>u("div",{style:{flexBasis:`${t}%`},children:e.text},`monthName-${l}`))),Ts=e=>e.month?.map((e=>e.image?.src?u("div",{className:"h-52 border-r pr-s border-main-divider last:border-r-0",children:u(Vt,{image:e.image,className:"flex"})},`monthImage-${e.image.src}`):null)),Bs=x((({className:e="",active:t,flat:l,children:n,...a})=>{const i=J({isRemote:!0}),{href:r,target:s,text:o,onClick:c}=i(a);return u("a",{className:w(Rs(t,l),e),href:r,target:s,onClick:c,rel:"noopener noreferrer","aria-label":o,children:u("span",{className:Ms(t,l),children:o||n})})})),Rs=(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-m py-xs"),Ms=(e=!1,t=!1)=>w("font-sans text-s font-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"),Ps="location";function Vs(e="Москва"){const[t,l]=((e,t,l)=>{const[r,s]=n(l||null);return a((()=>e.subscribe(t,(e=>s(e)))),[e,t]),[r,i((l=>e.fire(t,l)),[e,t])]})(b,"location",_s()??{name:e}),r=i((e=>{js(e),l(e)}),[]),{data:s}=_("/api/v1/region",D);return a((()=>{s&&!zs()&&l(s)}),[s]),[t??{name:e},r]}const zs=()=>Boolean(globalThis.localStorage?.getItem(Ps)),_s=()=>{try{const e=globalThis.localStorage?.getItem(Ps);return e&&JSON.parse(e)}catch(e){return null}},js=e=>{try{globalThis.localStorage?.setItem(Ps,JSON.stringify(e))}catch(e){}};const As=e=>e?.length?p("div",{className:"border-t border-main-divider mt-2xs pt-2xs",children:[u("div",{className:"mb-m",children:u(me,{size:"text-m",font:"font-light",color:"text-secondary-text",children:"Представительства за рубежом:"})}),u("div",{className:"flex gap-5xl",children:e.map(((e,t)=>u(Ds,{...e},String(t))))})]}):null,Ds=x((({icon:e,...t})=>{const l=J(),{text:n,target:a,href:i,onClick:r}=l(t);return p("div",{className:"flex gap-s",children:[e?u(Vt,{pathPrefix:"/wcms-resources/",image:e}):null,n?u("a",{className:"hover:text-primary-hover",href:i,target:a,onClick:r,children:n}):null]})})),$s=e=>t=>u("div",{className:"mb-2xs",children:u("button",{className:"cursor-pointer hover:text-primary-hover",onClick:()=>{e&&e(t)},children:t.name||""})},t.id),Ls=x((({className:e,searchTerm:t,onSearch:l})=>p("form",{className:`font-sans relative ${e}`,children:[u("div",{className:"absolute rounded h-full flex items-center justify-center pl-m max-w-44 gap-s 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-m 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"})]}))),Es=x((()=>{const{defaultLocation:e,foreignOffices:t}=$r(),[l,a]=Vs(e),[r,s]=n(""),o=Fs(function(){const{data:e}=_("/api/v1/regions",D);return e||[]}()).sort(((e,t)=>e.name.localeCompare(t.name))),c=((e,t)=>{const l=new Map;for(const n of e){const e=t(n),a=l.get(e)||[];l.set(e,[...a,n])}return l})(o,Os),{close:d}=E(),m=i((e=>{a(e),d()}),[]);return p(as,{head:p("div",{children:[l?p("div",{className:"mb-s",children:[u(me,{size:"text-l",font:"font-light",children:"Сейчас выбран: "}),u("button",{onClick:()=>a(l),children:u(me,{color:"text-primary-main",children:l.name})})]}):null,u(Ls,{onSearch:s,searchTerm:r})]}),children:[r&&r.length>=3?u("div",{children:o.filter((({name:e})=>e&&Yr(e.toLowerCase())(r.toLowerCase())>=.8)).map($s(m))}):u("div",{className:"columns-5",children:Array.from(c.entries()).map((h=m,([e,t])=>p("div",{className:"break-inside-avoid mb-2xl w-56",children:[u("div",{className:"mb-s",children:u(me,{size:"text-h6",children:e})}),t.map($s(h))]},e)))}),As(t)]});var h})),Os=e=>e.name?.charAt(0)||"",Fs=e=>e.map((e=>({...e,name:e.name?.replace(/республика|область|край'/gi,"").trim()||""}))),Us={default:"w-6 h-6",large:"w-12 h-12"},Hs=x((({className:e,isRounded:t,buttonSize:l="default",isGrayBg:n=!1,disabled:a,ariaLabel:i,image:r,onClick:s})=>u("button",{className:w("group/btn border-0 flex shrink-0 items-center",n?"p-s rounded-full":"p-0 bg-inherit",n&&!t?"bg-main-divider":"",t?"w-8 h-8 text-secondary-light hover:text-secondary-hove":`${Us[l]} text-primary-text hover:text-primary-main`,"group-data-transparent:text-white",e),type:"button",disabled:a,"aria-label":i,onClick:s,children:u(Vt,{image:r,className:w("h-full",t?"bg-main-divider/20 rounded-full":""),imageClassName:"group-hover/btn:text-primary-hover group-hover/btn:invert-0"})}))),Xs=x((({className:e,version:t,officesLink:l,defaultLocation:n})=>{const a="transparent"===t?"white":"black",[r]=Vs(n),s=ds(),o=i((()=>s.open()),[]),c=(()=>{const{open:e,close:t}=E();return{open:(t={})=>e(u(Es,{}),t),close:t}})(),d=i((()=>c.open()),[]);return p("div",{className:w("flex items-center gap-lg",e),children:[u(Bs,{flat:!0,href:"#",text:r?.name,onClick:d}),l?u(Bs,{flat:!0,href:l,text:"Офисы и банкоматы"}):null,u(Hs,{image:{icon:"LoupeIcon",iconVersion:a},ariaLabel:"Поиск",onClick:o})]})})),Ws=e=>({href:t})=>U(O(t)?e.href:e.pathname).startsWith(U(t)),Ks=x((({className:e="",items:t,activeItem:l})=>{const a=J(),[r,s]=n(!1),o=i((()=>s((e=>!e))),[]),c=ze(i((()=>s(!1)),[]));return p("div",{className:w(r?"bg-white rounded-md shadow-blue-gray":"",e),ref:c,children:[u("button",{className:"group/btn flex justify-between items-center h-6","aria-label":""+(r?"Скрыть другие разделы":"Показать другие разделы"),onClick:o,children:Array(3).fill(null).map(((e,t)=>u("div",{className:"w-[3px] h-[3px] rounded mr-2xs bg-primary-text group-hover/btn:bg-primary-hover group-data-transparent:bg-white"},String(t))))}),u("div",{className:w("absolute flex flex-col rounded-md bg-white p-xl pb-xs",r?"":"hidden"),"aria-hidden":!r,children:t?.map(((e,t)=>{const{text:n,...i}=e;return u("a",{className:w("text-l font-light pb-m hover:text-primary-main",e===l?"text-primary-main":""),...a(i),children:n},e.href||String(t))}))})]})})),Gs=x((({className:e="",active:t,dataItemName:l,children:n,...a})=>{const i=J(),{href:r,target:s,text:o,onClick:c}=i(a);return p("a",{className:w("relative inline-block bg-transparent text-center no-underline",e),href:r,target:s,"data-item-name":l,onClick:c,children:[u("span",{className:Ys(t),children:o||n}),t?u("div",{className:"absolute left-0 right-0 -bottom-3 h-0.5 bg-primary-main group-data-transparent:bg-transparent"}):null]})})),Ys=(e=!1)=>w("font-sans text-l font-light",e?"text-primary-main":"text-primary-text hover:text-primary-main","group-data-transparent:text-white group-data-transparent:hover:text-primary-hover"),Js=x((({observerOptions:e,onVisibilityChange:t,children:l,className:n,...a})=>{const r=y(i((e=>{if(!e.length||!t)return;const l=e[e.length-1];t(l.isIntersecting)}),[t]),e);return u("span",{ref:r,className:n,children:u(Gs,{...a,children:l})})})),qs=e=>globalThis[e];function Zs(e,t){const[l,r]=n(),s=i((()=>r(qs(e))),[e]);return a((()=>{const l=document.getElementById(t);if(!l){const e=document.createElement("script");return e.src=t,e.async=!0,e.id=t,e.addEventListener("load",s),document.head.appendChild(e),()=>{document.head.removeChild(e),r(void 0)}}if(!qs(e))return l.addEventListener("load",s),()=>{l.removeEventListener("load",s)};s()}),[e,t]),l}const Qs={personal:"//chat.mes.rshb.ru/assets/js/webchat_rshb",business:""},eo=x((e=>{const[t,{setTrue:l}]=Ve();return t?u(to,{...e}):lo({...e,onClick:l})})),to=x((({chat:e="personal",...t})=>((e=>{a((()=>globalThis.localStorage?.setItem("webchat-keep-open",String(Date.now()))),[]),Zs("chatbot",Qs[e])})(e),lo(t)))),lo=({className:e,iconVersion:t,onClick:l})=>u(Hs,{className:w("text-page__btn-chat",e),image:{icon:"HeadphonesIcon",iconVersion:t},ariaLabel:"Чат",onClick:l,buttonSize:"large",isGrayBg:!0}),no={default:"px-lg bg-main-divider rounded hover:text-primary-main",transparent:"text-white hover:text-primary-hover"},ao=x((({version:e,internetBankUrl:t})=>t?u(se,{href:t,ariaLabel:"Интернет-банк",target:"_blank",className:w("py-s ml-s text-l font-light whitespace-nowrap hover:text-primary-main",no["transparent"===e?"transparent":"default"]),children:"Интернет-банк"}):null)),io=x((({subItems:e=[],version:t,internetBankUrl:l})=>{const a="transparent"===t?"white":"black",i=(e=>(t=[])=>{const l=t?.filter(Ws(e));return l?.length?$l((e=>e.href?.length||0))(l):void 0})(Y())(e),[o,c]=n(e.length),m=e.slice(o),h=s(null),x={rootRef:h},g=r((()=>e.map(((e,t)=>e=>{c(e?ro(t):so(t))}))),[e]);return p("nav",{className:"relative mt-s flex items-center justify-between",children:[u("div",{ref:h,className:"overflow-hidden whitespace-nowrap pb-s mt-xs space-x-3xl",children:e.map(((e,t)=>u(Js,{className:o-1<t?"invisible":"",active:e===i,observerOptions:x,onVisibilityChange:g[t],...e},String(t))))}),m.length?u(Ks,{className:"relative w-auto z-40",items:m,activeItem:i}):null,d.CHAT_BOT?u(eo,{className:"ml-4xl",iconVersion:a,chat:d.CHAT_BOT}):null,u(ao,{version:t,internetBankUrl:l})]})})),ro=e=>t=>Math.max(t,e+1),so=e=>t=>Math.min(t,e),oo={"bg-white":"primary",transparent:"transparent"},co=x((({className:e,bgColor:t="bg-white",version:l=oo[t],...n})=>{const a=Y(),{topItems:i,logo:r,officesLink:s,internetBankUrl:o,defaultLocation:c}=$r(n.options?.page?.fallback),m=i?.find((e=>Ws(d.BASE_PATH?{pathname:d.BASE_PATH}:e))(a));return u(k,{tag:"header",className:w("pt-3xl px-20",m?.items?.length?"pb-m":"pb-lg",e),defaultPadding:"",version:l,...n,children:p("div",{className:"container",children:[p("div",{className:"flex items-center",children:[u(Hr,{className:"mr-3xl",bgColor:t,logo:r}),i?.map(((e,t)=>u(Bs,{active:e===m,...e},String(t)))),u(Xs,{version:l,className:"ml-auto",officesLink:s,defaultLocation:c})]}),u("div",{className:w("mt-xl h-px bg-main-divider","transparent"===l?"opacity-30":"")}),m?.items?.length?u(io,{subItems:m.items,version:l,internetBankUrl:o}):null]})})})),mo={XXL:"gap-6xl",XL:"gap-5xl",L:"gap-3xl",M:"gap-m",S:"gap-xs",XS:"gap-2xs","":""},ho=x((({className:e="",gap:t="XS",isPadding:l=!1,version:n="transparent",isTheme:a=!1,...i})=>u(k,{className:w("relative","grid grid-cols-12",mo[t],e),defaultPadding:l?"p-6xl":"",version:n,isTheme:a,...i,children:Fn(i)})));ho.childrenTypes={exclude:["HorizontalLayout"]};const uo=x((e=>{const{className:t,image:l,...n}=e;return u(k,{className:t,defaultPadding:"p-0",...n,children:u(Vt,{image:l})})})),po=x((({className:e="",cards:t=[],button:l})=>{const[a,r]=n(0),s=i((e=>r(e)),[]),o=t.length,[c,d]=yl({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?xo({activeIndex:c,cards:t,selectedCardIndex:a,onClick:s}):null,Sl({...d,btnClass:["left-12","right-12"],className:"top-16"}),m?u("div",{className:"absolute top-0 left-0 h-full w-32 bg-opacity-from-white"}):null,h?u("div",{className:"absolute top-0 right-0 h-full w-32 bg-opacity-to-white"}):null]}),u(se,{className:"w-60 text-center",version:"primary",...l,href:x})]})}));function xo({activeIndex:e,cards:t,selectedCardIndex:l,onClick:n}){const a=460*e,i=t.length>2?"justify-start":"justify-center";return u("div",{style:{transform:`translateX(-${a}px)`},className:"duration-1000 px-6xl",children:u("div",{className:`w-full flex flex-nowrap gap-s pb-6xl ${i}`,children:t.map(((e,t)=>function({slide:e,i:t,isActive:l,onClick:n}){return p("button",{type:"button",onClick:n,className:"p-3xl min-w-fit flex items-center gap-2xl bg-white border-solid border relative "+(l?"shadow-dark-blue border-primary-main":"ease-in duration-300 border-gray"),children:[e?.icon?u(Vt,{className:"p-lg rounded-full bg-secondary-light",image:e.icon,width:"108",height:"108"}):null,p("div",{className:"flex gap-s",children:[e?.sum?go("страховая сумма",e.sum):null,e?.fee?go("страховой взнос",e.fee):null]}),fo(l)]},String(t))}({slide:e,i:t,isActive:Boolean(t===l),onClick:()=>n(t)})))})})}function go(e,t){return p("div",{className:"flex flex-col text-left whitespace-pre",children:[p("span",{className:"text-h6",children:[ot(2)(t)," ₽"]}),u("span",{className:"text-secondary-text text-l mt-2xs",children:e})]})}function fo(e){return e?u(Vt,{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 bo=x((({className:e="",title:t,insuranceTabs:l=[],button:a,...r})=>{const[s,o]=n(0),c=i((e=>o(e)),[]);return p(k,{className:w("box-border overflow-hidden relative px-0 space-y-2xl",e),defaultPadding:"p-6xl",...r,children:[t?u(I,{className:"text-center",title:t,headingType:"h3"}):null,l?.length>1?u("div",{className:"p-xs bg-secondary-light w-fit mx-auto rounded-md",children:l.map(((e,t)=>function({title:e,i:t,isActive:l,onClick:n}){return u("button",{type:"button",onClick:n,"aria-label":e,className:"box-border px-m py-s text-m font-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:yo({insuranceTabs:l,button:a})})]})})),yo=({insuranceTabs:e,button:t})=>{const l=e?.map((e=>e.cards));return l?.length?l.map(((e,l)=>u(po,{button:t,cards:e},String(l)))):null};const vo=e=>t=>t.reduce(((t,l,n)=>t.length?t.concat({...e,key:`sep-${n}`},l):[l]),[]),No={yellow:"bg-yellow",green:"bg-green","green-light":"bg-green-light","green-dark":"bg-green-dark"},wo={XS:"h-10",S:"h-16",M:"h-24",L:"h-32",XL:"h-52"},So=x((e=>{const{className:t="",items:l,isDotted:n,investmentZeroColumn:a,investmentColumns:i,...r}=e,s=i?[...i]:[];return a&&s.unshift(a),u(k,{className:t,...r,children:p("div",{className:"container text-m font-light space-y-4xl",children:[s?.length?p("div",{children:[p("div",{className:"flex items-end relative pl-3xl pr-lg text-white",children:[vo(u("div",{className:"w-px h-4 bg-gray"}))(s.map(ko)),u("div",{className:"absolute right-3xl w-px h-4 bg-gray"})]}),u("div",{className:"border-t border-gray -mt-xs mx-3xl"}),u("div",{className:"flex justify-between text-primary-text mt-s -mx-5xl",children:s.map(To)})]}):null,l?.length?u(Pa,{className:"max-w-[657px]",items:l,isDotted:n,listItemSize:"M"}):null]})})})),ko=(e,t,l)=>{const n=1===t,a=t===l.length-1;return u("div",{className:`${Co(n,a,e.cells)}`,children:e.cells?.length?u("div",{className:"w-full "+(a?"border-4 border-green-more-dark p-2xs min-w-[292px]":""),children:e.cells.reverse().map(Io)}):null},`column_${t}`)},Co=(e,t,l=[])=>[l.length?"flex-1":"flex-0",!l.length||e||t?"":"pl-s",l.length&&!t?"pr-s pb-3xl":"pb-xl"].join(" "),Io=(e,t)=>{const l=e.cellSize||"XS",n=e.cellColor||"green";return e.text?u("div",{className:`flex-1 flex items-center justify-center relative py-xs ${wo[l]} ${No[n]} ${"XS"===l?"px-s":"px-5xl"}`,children:u("div",{className:"text-center",children:e.text})},`cell_${t}`):null},To=(e,t)=>u("div",{className:"flex-1 max-w-[180px] text-center px-xs last:pr-3xl",children:e.title},`title_${t}`),Bo=["байт","Кб","Мб","Гб","Тб","Пб"],Ro=x((({icon:e,text:t,fileSize:l,...n})=>p("a",{className:"flex box-border gap-s group/item h-fit w-fit text-primary-text no-underline hover:text-primary-main",role:"link",...n,children:[e,t?p(me,{size:"text-l",font:"font-light",children:[t,u(me,{color:"text-secondary-text",children:n?.href&&Mo(Po(n.href),l)})]}):null]}))),Mo=(e,t)=>(e||t?",":"")+(e?` ${e}`:"")+(t?` (${t})`:""),Po=e=>{if(!e)return"";const t=e.lastIndexOf(".");return-1!==t?e.substring(t+1):""},Vo={double:"sm:flex-wrap sm:flex-row",single:"sm:flex-col"},zo=x((({className:e="",title:t,description:l,align:n="text-center",documents:a,icon:i={icon:"DocIcon"},columnsMode:r="double",...s})=>{const o=Y();return p(k,{className:w("space-y-lg",e),defaultPadding:"p-6xl",...s,children:[u(al,{title:t,description:l,align:n,headlineVersion:"M",as:"h2",isEmbedded:!0}),a?.length?u("div",{className:w("grid gap-xl","double"===r?"@md:grid-cols-2":"grid-cols-1",Vo[r]),role:"list",children:a.map(_o(o,r,i))}):null]})})),_o=(e,t,l)=>(t,n)=>{const a="Attachment"===t?.docType?W(e)(t?.attachment?.src):t?.href,i="Attachment"===t?.docType?((e,t=2)=>{if(0===e)return"";const l=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/Math.pow(1024,l)).toFixed(t))} ${Bo[l]}`})(t?.attachment?.fileSize||0):t?.fileSize;return u("div",{role:"listitem",children:u(Ro,{text:t?.text,target:t?.target,href:a,fileSize:i,icon:l?u(Vt,{className:"min-w-6 min-h-6",image:l,width:"24",height:"24"}):null})},String(n))},jo=e=>e?u("div",{className:"mb-lg pt-3xs",children:u(me,{size:"text-xl","font-weight":"light",children:e})}):null,Ao=e=>e?.length?u(Pa,{items:e,className:"text-l font-light"}):u("span",{className:"text-m font-light text-secondary-text",children:"Наведите камеру телефона на QR-код и скачайте приложение"}),Do=x((({className:e,padding:t,alignTitle:l="left",buttons:n=[],description:a,headingType:i="h4",image:r,items:s,qr:o,title:c="Мобильное приложение",version:d="primary",...m})=>{const h="secondary"===d?"p-m min-w-32":"min-w-24";return u(k,{className:w("min-h-80",e),padding:"p-0",version:d,...m,children:p(ba,{className:"h-full",padding:t,defaultPadding:"p-6xl",title:c?u(I,{headingType:i,title:c,className:w("whitespace-pre-wrap",cl[l])}):null,rightImage:r?.src?u(Vt,{className:"hidden lg:block",image:r}):null,buttons:Qt(n,{isVertical:n.length>4}),children:[jo(a),p("div",{className:"flex flex-1 flex-wrap gap-m items-center",children:[o?.src?u("div",{className:w("flex justify-center bg-white rounded-md",h),children:u(Vt,{className:"w-fit",image:o})}):null,Ao(s),r?.src?u(Vt,{className:"lg:hidden",image:r}):null]})]})})})),$o={default:"px-xs",underlined:"px-m",rounded:"px-lg rounded-md"},Lo={default:"text-black sm:text-white",underlined:"text-primary-main border-b-2",rounded:"text-white"},Eo={default:"bg-white",underlined:"bg-white",rounded:"bg-transparent"},Oo={default:"sm:bg-primary-main",underlined:"bg-white",rounded:"bg-primary-main"},Fo=x((({tag:e="div",item:t={},isActive:l,type:n="default",onClick:a})=>{const i=e,{text:r,...s}=t;return u(i,{className:w("h-12","block flex-1","cursor-pointer",$o[n],l?Oo[n]:Eo[n]),role:"tab","aria-selected":l,onClick:a,...s,children:u("div",{className:w("h-full","flex justify-center items-center","text-center whitespace-nowrap",l?Lo[n]:"text-secondary-text hover:text-primary-main"),children:u(me,{size:"text-m",children:r})})})})),Uo=x((e=>u(e?.item?.href?Ho:Xo,{...e}))),Ho=x((e=>{const t=J(),l=i((()=>{e.onClick&&e.onClick(e.item||{})}),[e.onClick,e.item]),{onClick:n,...a}=t({...e.item,onClick:l});return u(Fo,{...e,tag:"a",item:a,onClick:n})})),Xo=x((({item:e={},onClick:t,...l})=>{const n=i((()=>{t&&t(e)}),[t,e]);return u(Fo,{item:e,onClick:n,...l})})),Wo=(e,t,l)=>(n,a)=>u(Uo,{isActive:n===e,onClick:t,type:l,item:n},String(a)),Ko=x((({className:e,tabsType:t="default",items:l=[],value:n,onChange:a})=>u("div",{className:w("flex gap-x-2xs overflow-x-auto no-scrollbar",e),role:"tablist",children:l.map(Wo(n,a,t))}))),Go=(e,t)=>e===t;const Yo=(Jo=function(...e){return(t,l)=>e.some((e=>e(t,l)))}(Go,((e=Go)=>(t,l)=>t===l||Boolean(t&&l&&t.length===l.length&&t.every(((t,n)=>e(t,l[n])))))()),(e,t)=>e===t||Boolean(e&&t&&Object.keys(e).length===Object.keys(t).length&&Object.entries(e).every((([e,l])=>Jo(l,t[e])))));var Jo;const qo={categories:[],extraOptions:[],propertyType:[],stage:[]},Zo=x((({className:e,hotFilters:t=[],filtrationSchema:l={},resetButton:s,...o})=>{const[c,{field:d,reset:m,update:h}]=B(qo),x=r((()=>t.map((({text:e})=>({text:e})))),[t]),[g,f]=n(0),b=i((e=>{f(x.indexOf(e)),h(t[x.indexOf(e)].filter||qo)}),[t,x]);return a((()=>{const e=t.findIndex((e=>Yo(e.filter,c)));f(-1!==e?e:0)}),[t,c]),p(k,{className:w("space-y-2xs",e),defaultPadding:"p-0",version:"transparent",...o,children:[u(Ko,{className:"mb-2xs",items:x,value:x[g],onChange:b}),Zi({field:d,reset:m,filtrationSchema:l,resetButton:s}),u(Yi,{filtrationState:c,...o})]})}));Zo.childrenTypes=["ProductTile"],Zo.childSchema=e=>e?.filtrationSchema||{};const Qo=[{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 ec(e,t,l){t.geoObjects.removeAll();const n=e.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>'),a=new e.Clusterer({clusterIcons:[{href:"icons/MapMarkerClusterIcon.svg",size:[78,84],offset:[-35,-50]}],clusterIconContentLayout:n,clusterHideIconOnBalloonOpen:!1,geoObjectHideIconOnBalloonOpen:!1}),i=l.map((t=>new e.Placemark(t,{},{iconLayout:"default#image",iconImageHref:"icons/MapMarkerSingleIcon.svg",iconImageSize:[78,84],iconImageOffset:[-35,-50]})));a.add(i),t.geoObjects.add(a),t.setBounds(e.util.bounds.fromPoints(l)).then((()=>{t.getZoom()>10&&t.setZoom(10)}))}const tc={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"},lc=e=>u("a",{className:`select-none cursor-pointer px-4xl h-12 bg-primary-main text-white ${Object.values(tc).join(" ")}`,href:`https://yandex.ru/maps/?ll=${[e[1],e[0]]}&z=10&l=map`,target:"_blank",children:"Открыть на карте"}),nc={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)]"},ac=(e,t,l)=>p("div",{className:`${Object.values(nc).join(" ")} bg-white py-s pl-5xl pr-m w-full`,children:[u(je,{name:"LoupeIcon",iconVersion:"black",width:"20",height:"20",className:"absolute left-4"}),u("input",{type:"text",placeholder:"Введите адрес или метро",onChange:t=>{const n=t.target?.value?t.target?.value.toLowerCase():"";if(n){const t=e.filter((e=>e.text.toLowerCase().indexOf(n)>-1?e:null));l(t)}else l(null)},className:"border-0 focus:border-0 outline-0 w-full"})]}),ic={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"},rc=(e,t,l)=>u("div",{className:`select-none cursor-pointer py-m w-12 bg-white ${Object.values(ic).join(" ")} ${l}`,onClick:()=>{t.geolocation.get({provider:"yandex",autoReverseGeocode:!0,mapStateAutoApply:!0}).then((function(t){e.geoObjects.add(t.geoObjects)}))},children:u(je,{name:"UserGeoLocationIcon",width:"20",height:"16"})}),sc={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"},oc=x((({yandexMaps:e,direction:t="in"})=>{const l="in"===t?"PlusIcon":"MinusIcon";return u("div",{onClick:()=>{const l=e.current.getZoom(),n="in"===t?l+1:l-1;e.current.setZoom(n,{checkZoomRange:!0})},className:`${Object.values(sc).join(" ")} bg-white select-none cursor-pointer w-12 h-12`,children:u(je,{name:l,width:"20",height:"16"})})})),cc={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"},dc=x((({points:e,className:t="",zoom:l=5,showSearchField:i=!1})=>{const r=s(null),o=Zs("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${d.YANDEX_MAP_API_KEY||""}&lang=ru_RU`),[c,m]=n(),[h,x]=n(pc(Qo)),g=mc(e);if(a((()=>{r?.current||o?.ready((()=>{r.current=new o.Map("map",{center:g,zoom:l,controls:[],suppressMapOpenBlock:!0}),ec(o,r.current,h)}))}),[o,r,h]),a((()=>{if(r.current&&h&&o){const e=h.length<1?pc(Qo):h;ec(o,r.current,e)}}),[r,h,o]),!o)return null;const f=c?"z-[100000]":"z-10";return p("div",{id:"map",className:`${c?"":"relative"} w-full ${t}`,children:[u("div",{className:`absolute flex left-2 top-4 w-1/2 ${f}`,children:i?ac(Qo,0,(e=>{if(e){const t=pc(e);x(t)}})):lc(g)}),u("div",{className:`${Object.values(cc).join(" ")} ${f} right-2 top-4 bg-white`,onClick:()=>{const e=r.current.container;c?e.exitFullscreen():e.enterFullscreen(),m(e.isFullscreen())},children:u(je,{name:"FullScreenIcon",width:"16",height:"16"})}),p("div",{className:`absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md ${f}`,children:[u(oc,{yandexMaps:r}),u(oc,{yandexMaps:r,direction:"out"})]}),rc(r.current,o,`right-2 top-80 ${f}`)]})})),mc=e=>[uc(hc(e,0)),uc(hc(e,1))],hc=(e,t)=>e.map((e=>e[t])),uc=e=>e.reduce(((e,t)=>e+t))/e.length,pc=e=>e?e.map((e=>e.coords)):null,xc={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},gc=[{title:"Деловой центр",time:"1 мин",distance:"~30 м.",icon:"MetroIcon"},{title:"Выставочная",time:"5 мин",distance:"~120 м.",icon:"MetroIcon"},{title:"Деловой центр",time:"8 мин",distance:"~350 м.",icon:"MetroIcon"}],fc=({lunchHour:e,status:t,workTime:l})=>{const n=/\d+/gi.test(e)?`Перерыв ${e}`:e;return t?p("div",{className:"flex gap-m",children:[u("div",{className:"p-s border rounded-md text-m flex items-center cursor-pointer text-primary-main border-green-light",children:l||null}),u("div",{className:"p-s border rounded-md text-m flex items-center cursor-pointer text-yellow border-golden",children:e?n:null})]}):u("div",{className:"flex",children:u("div",{className:"p-s border rounded-md text-m flex items-center cursor-pointer text-error border-error",children:"Выходной"})})},bc=({icon:e,title:t,distance:l,time:n},a)=>p("div",{className:"flex mr-m",children:[u(je,{name:e,width:"16",height:"16",className:"mr-xs"}),t?p(me,{size:"text-m",children:[t," "]}):null,p(me,{size:"text-m",font:"font-light",children:[l?` (${l})`:null,n?`, ${n}`:null]})]},`nearbyOffice${a}`),yc=({title:e,status:t,workTime:l,lunchHour:n,description:a},i)=>p("div",{className:"flex flex-col gap-2xs pb-s border-b border-solid border-main-divider mb-s last:border-0",children:[p("div",{className:"flex justify-between items-center w-full text-l text-primary-text",children:[u("div",{children:e}),t?null:u("div",{className:"text-m font-light text-error",children:"Выходной"}),t&&l?u("div",{children:l}):null]}),t&&n?vc(n):null,a?u("div",{className:"text-s font-light text-secondary-text",children:a}):null]},`day${i}`),vc=e=>/\d+/gi.test(e)?p("div",{className:"flex justify-between items-center w-full text-m font-light text-error",children:[u("div",{children:"Перерыв"}),u("div",{children:e})]}):u("div",{className:"flex justify-between items-center w-full",children:u(me,{size:"text-m",font:"font-light",color:"text-primary-main",children:e})}),Nc=x((({className:e=""})=>{const t=xc,{name:l,address:n,gpsLatitude:a,gpsLongitude:i,workSchedule:r}=t,{workingMonday:s,workingTuesday:o,workingWednesday:c,workingThursday:d,workingFriday:m,workingSaturday:h,workingSunday:x}=r,{workTime:g,lunchHour:f,workTimeSaturday:b,lunchHourSaturday:y}=r,v=a&&i?[a,i]:null,N=[{title:"Понедельник",status:s,workTime:g,lunchHour:f},{title:"Вторник",status:o,workTime:g,lunchHour:f},{title:"Среда",status:c,workTime:g,lunchHour:f},{title:"Четверг",status:d,workTime:g,lunchHour:"13:00 - 14:00",description:"Не работает прием денег с 17:00 до 19:00"},{title:"Пятница",status:m,workTime:g,lunchHour:f},{title:"Суббота",status:h,workTime:b,lunchHour:y},{title:"Воскресенье",status:x}],w=(new Date).getDay(),S=w>0?N[w-1]:N[6];return p("div",{className:`flex flex-col font-sans w-full ${e}`,children:[p("div",{className:"flex flex-col gap-m p-6xl pb-3xl",children:[p("div",{className:"flex justify-between",children:[u("div",{className:"text-h2",children:l}),fc(S)]}),p("div",{className:"flex text-l font-light",children:[u(je,{name:"GeolocationIcon",width:"24",height:"24",className:"pr-2xs"}),n]}),u("div",{className:"flex",children:gc.map(bc)})]}),p("div",{className:"flex justify-between",children:[u("div",{className:"flex-grow h-full w-full overflow-hidden",children:v?u(dc,{points:[v],className:"h-full"}):null}),u("div",{className:"w-[434px] min-w-[434px] p-6xl pt-0 flex flex-col",children:N.map(yc)})]})]})})),wc=x((({className:e="",title:t,servicesList:l,...n})=>p(k,{className:w("flex flex-col gap-lg",e),...n,children:[t?u(I,{headingType:"h5",title:t}):null,l?.length?u("ul",{className:"list-none space-y-lg",children:l.map(Sc)}):null]}))),Sc=(e,t)=>p("li",{className:"flex gap-s list-none ",children:[e.icon?u(Vt,{className:"min-w-6 min-h-6 w-6 h-6",width:"24",height:"24",image:e.icon}):null,e.label?u(me,{size:"text-l",font:"font-light",children:e.label}):null]},`list_item_${String(t)}`),kc=x((({text:e,size:t,align:l,font:n,children:a,...i})=>u(k,{defaultPadding:"p-0",...i,children:u(de,{size:t,align:l,font:n,children:e||a})}))),Cc=(e,t)=>e||t?p("div",{className:"flex flex-wrap xl:flex-nowrap xl:bg-main-divider xl:rounded-md p-xs gap-xl",children:[Number(e)>0?Ic("Страховая сумма:",e):null,Number(t)>0?Ic("Ежемесячный лимит:",t):null]}):null,Ic=(e,t=0)=>p("div",{className:"basis-full flex flex-col-reverse sm:flex-row sm:justify-between items-baseline whitespace-pre",children:[u(me,{font:"font-light",size:"text-l",children:e}),p(me,{size:"text-h6",color:"text-primary-text",children:[ot(2)(t)," ₽"]})]}),Tc=x((({className:e,padding:t,headlineVersion:l="M",align:n="text-center",sum:a,monthLimit:i,imageOptions:r,...s})=>u(k,{className:e,padding:"p-0",...s,children:u(ti,{className:"h-full",defaultPadding:"p-6xl",padding:t,headlineVersion:l,align:n,isInsetTitle:!1,imageOptions:{directionRight:!1,imageAlign:"center",...r},...s,children:Cc(Number(a),Number(i))})}))),Bc=x((({className:e,title:t,description:l="Блок в разработке...",...n})=>p(k,{className:w("box-border",e),...n,children:[u(al,{className:"max-w-[600px]",title:t,description:l,headlineVersion:"L",align:"text-left",isEmbedded:!0}),u("figure",{className:"m-0 mt-xl min-w-[80%]",children:Rc()})]}))),Rc=(e=3)=>Pc(100,e).map((e=>Math.floor(e))).map(Mc),Mc=(e,t)=>u("div",{style:{width:`${e||100}%`},className:"h-4 mt-xs bg-secondary-light"},String(t)),Pc=(e,t)=>[e].concat(t>0?Pc(e/1.618,t-1):[]);function Vc({text:e,href:t,target:l,icon:n},a){const i="primary"===a?"white":"black",r={text:e,href:t,target:l,ariaLabel:e};return p("div",{className:"flex items-center gap-s",children:[u(se,{className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center",version:a,rounded:!0,...r,children:u(Vt,{className:"w-4 h-4",image:{...n,icon:n?.icon||"ArrowLeftIcon",iconVersion:n?.iconVersion||i}})}),u(se,{version:"link",...r})]})}const zc=x((({className:e,padding:t,backwardButton:l,...n})=>p(k,{className:w("overflow-hidden flex flex-col gap-3xl box-border",e),defaultPadding:"p-6xl",padding:t,...n,children:[l?.text?Vc(l,n.version&&"primary"!==n.version?"white":"primary"):null,u(ti,{className:"grow h-full",...n})]}))),_c=x((({className:e="",padding:t,slides:l=[],...a})=>{const[i,r]=n(0);return p(k,{className:w("box-border overflow-hidden",e),defaultPadding:"py-6xl",padding:t,...a,children:[u("div",{className:"flex duration-1000",style:{transform:`translateX(-${100*i}%)`},role:"list",children:l.map((({productBlock:e},t)=>u("div",{className:"box-border grow-0 shrink-0 basis-full",role:"listitem",children:u(ti,{className:"pl-6xl h-full",headlineVersion:"XXL",...e,...a})},String(t))))}),u("div",{className:"h-28 px-xs mt-m -mb-m flex gap-xs box-border",children:l.map(jc({activeSlideIndex:i,onClick:r}))})]})})),jc=({activeSlideIndex:e,onClick:t})=>({nav:l},n)=>{const a=n===e,i=a?"min-w-[350px] bg-white shadow-dark-blue border-none p-6":"min-w-72 ease-in duration-300 bg-white/10 px-xl py-lg hover:py-xl backdrop-blur",r=a?"text-primary-text text-h6 py-xs":"text-l pb-2xs text-secondary-text group-data-secondary:text-white",s=a?"text-secondary-text text-l font-light":"text-secondary-text text-m font-light group-data-secondary:text-white/80";return p("button",{type:"button",onClick:()=>t(n),"aria-label":l?.title,className:w("relative px-xl box-border overflow-hidden text-left grow basis-0 border border-gray group-data-secondary:border-white/50",i),children:[u("div",{className:r,children:l?.title}),u("div",{className:s,children:l?.description})]},String(n))},Ac=x((({className:e,padding:t,headlineVersion:l="S",isTabularBenefits:n=!0,additionalDescription:a,imageOptions:i,...r})=>u(k,{className:e,padding:"p-0",...r,children:u(ti,{className:"h-full",defaultPadding:"p-xl",padding:t,headlineVersion:l,isTabularBenefits:n,imageOptions:{isBackground:!0,...i},...r,children:a?u(de,{size:"text-m",font:"font-light",color:"group-data-primary:text-secondary-text",children:a}):null})}))),Dc=x((({className:e,title:t="Акции и спецпредложения",description:l,headlineVersion:n="S",date:a,buttons:i=[],...r})=>u(k,{className:w("box-border",e),...r,children:p(ba,{className:"h-full",title:t?u(al,{title:t,headlineVersion:n,align:"text-left",isEmbedded:!0}):null,buttons:Qt(i),children:[a?u("div",{className:"text-s mb-xs",children:$c(a)}):null,u("div",{className:"text-l",children:l})]})})));function $c(e){return new Date(e).toLocaleString("ru-RU",{day:"numeric",month:"long",year:"numeric"}).replace("г.","")}const Lc=x((({address:e,email:t,telephone:l,button:n,className:a="",__html:i,icon:r,title:s,version:o="primary",...c})=>p(k,{className:w("box-border text-left space-y-s",a),version:o,...c,children:[p("div",{className:"w-full flex justify-between flex-row-reverse",children:[Ec(r),s?u(I,{headingType:"h4",as:"h3",title:s}):null]}),p("div",{className:"w-full space-y-m",children:[i?Oc(i):null,Fc("Адрес",e,"GeolocationIcon"),Fc("Телефон",l,"PhoneIcon"),Fc("E-mail",t,"MailIcon"),n?.text?Qt([n]):null]})]}))),Ec=e=>u("div",{className:"w-10 h-7 sm:w-24 sm:h-16",children:e?.src||e?.icon?u(Vt,{image:e}):null}),Oc=e=>u("div",{className:"border-b border-main-divider",children:u(Oa,{__html:e})}),Fc=(e,t,l)=>p("div",{className:"flex gap-m",children:[u(je,{iconVersion:"black",name:l,width:"24",height:"24"}),p("div",{className:"flex flex-col",children:[u(me,{size:"text-m",font:"font-light",children:e}),t?u(me,{size:"text-h6",color:"text-green",children:t}):null]})]}),Uc=x((e=>{const{__html:t,richVersion:l,...n}=e;return u(k,{defaultPadding:"p-0",...n,children:u(Oa,{__html:t,richVersion:l})})})),Hc=e=>e?"MinusIcon":"PlusIcon",Xc=x((({className:e="",label:t="Развернуть",labelIcon:l,labelIconBgVersion:n,isExpanded:a,isFoldButtonOnTop:i=!0,version:r="primary",...s})=>u(k,{className:w("w-full","border-0 border-b border-solid border-main-divider last:border-b-0",e),defaultPadding:"p-0",tag:"div",version:"transparent",...s,children:u(hi,{isFoldButtonOnTop:i,unfoldedByDefault:a,renderFoldableSection:({isUnfolded:e})=>u(ui,{className:w("gap-lg","grid grid-cols-12 [&>*]:pb-m"),isUnfolded:e,children:Fn({...s,extraProps:{className:"w-full",padding:"p-0"}})}),renderFoldButton:({isUnfolded:e,onToggle:a})=>Wc({version:r,label:t,labelIcon:l,labelIconBgVersion:n,isUnfolded:e,onToggle:a})})})));Xc.childrenTypes={exclude:["RollupItem"]};const Wc=({version:e,label:t,labelIcon:l,labelIconBgVersion:n,isUnfolded:a,onToggle:i})=>{const r=t||(a?"Скрыть":"Развернуть");return"primary"===e?Kc({label:r,labelIcon:l,labelIconBgVersion:n,icon:Hc(a),onToggle:i}):u(Xi,{label:r,icon:a?"ArrowUpIcon":"ArrowDownIcon",onClick:i})},Kc=({label:e,labelIconBgVersion:t,icon:l,onToggle:n,labelIcon:a})=>p("button",{className:w("border-none bg-transparent flex justify-between items-center w-full group/button",a?.icon?"py-xs":"py-lg"),onClick:n,children:[p("div",{className:"flex items-center text-start group-hover/button:text-primary-main gap-s",children:[null,e?u(me,{size:"text-h6",font:"font-normal",children:e}):null]}),l?u(je,{name:l,iconVersion:"color",width:"24",height:"24"}):null]}),Gc=x((({data:e,fieldLabel:t,fieldValue:l,selected:n,placeholder:a="",setSelected:i,label:r})=>{const s=e.filter(Boolean).map((e=>({key:e?.[l||t],text:e?.[t]}))),o=s.find((e=>e.key===n));return u($e,{options:s,label:r,placeholder:a||n,onChange:e=>i(e.key),value:o})})),Yc=x((({regions:e=[],selectedRegion:t,onSelectedRegion:l,branches:n=[],selectedBranch:a,onSelectedBranch:i})=>p("div",{className:"flex flex-col sm:flex-row gap-m order-1",children:[u("div",{className:"flex-1 min-w-0",children:u(Gc,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:l,label:"Регион"})}),u("div",{className:"flex-1 min-w-0",children:u(Gc,{data:n,fieldValue:"branchCode",fieldLabel:"address",selected:a,setSelected:i,label:"Отделение",placeholder:"Выберите отделение"})})]}))),Jc=x((({name:e,text:t,value:l,checked:n,onChange:a,className:i})=>u("div",{className:i,children:p("label",{className:"font-sans flex gap-s items-center relative cursor-pointer",children:[u("input",{className:"appearance-none flex justify-center items-center shrink-0 w-5 h-5 border border-gray hover:border-primary-hover\n checked:border-2 checked:!border-primary-main focus:checked:border-primary-main focus:border-primary-text active:border-primary-text\n after:block after:w-2.5 after:h-2.5 after:rounded-full checked:after:bg-primary-main outline-none rounded-full cursor-pointer",type:"radio",value:l,name:e,checked:n,onChange:e=>a(e.target.value)}),t?u("span",{className:"text-primary-text cursor-pointer",children:t}):null]})}))),qc=x((({className:e=""})=>{const[t,l]=n("option2"),a=i((e=>l(e)),[]);return p("div",{className:w("order-4",e),children:[u(Jc,{className:"mb-xs",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===t,onChange:a}),u(Jc,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===t,onChange:a})]})})),Zc=["От 1 дня","До 365 дней"],Qc=x((({days:e,setDays:t})=>p("div",{className:"order-1",children:[u(me,{size:"text-m",font:"font-light",children:"Срок аренды"}),u(ut,{min:1,max:365,value:e,items:Zc,onChange:t})]}))),ed=x((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:l,safeBoxCases:n=[],selectedBoxSize:a,onSelectedBoxSize:i})=>p("div",{className:"flex flex-col sm:flex-row gap-m order-1",children:[u("div",{className:"flex-1 min-w-0",children:u(Gc,{data:e,fieldLabel:"volume",selected:t,setSelected:l,label:"Размер",placeholder:"Выберите размер"})}),u("div",{className:"flex-1 min-w-0",children:u(Gc,{data:n,fieldLabel:"safeBoxCasesSize",selected:a,setSelected:i,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),td=x((({regions:e,selectedRegion:t,branches:l,selectedBranch:n,days:a,selectedCaseVolume:i,selectedBoxSize:r,safeBoxCases:s,caseVolumes:o,onChange:c,onClick:d})=>p("div",{className:"contents sm:block flex-1 space-y-xl",children:[u(Yc,{regions:e,selectedRegion:t,onSelectedRegion:e=>c({selectedRegion:e}),branches:l,selectedBranch:n,onSelectedBranch:ld(c)}),u(Qc,{days:a,setDays:e=>c({days:e})}),u(ed,{caseVolumes:o,selectedCaseVolume:i,onSelectedCaseVolume:nd(c),safeBoxCases:s,selectedBoxSize:r,onSelectedBoxSize:e=>c({selectedBoxSize:e})}),u("div",{className:"order-4",children:u(me,{size:"text-l",font:"font-light",color:"text-secondary-text",children:"Тип договора"})}),p("div",{className:"contents sm:flex justify-between items-center gap-m",children:[u(qc,{}),u(se,{text:"Офисы на карте",version:"primary",onClick:d,className:"order-6"})]})]}))),ld=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},nd=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},ad=x((({days:e,tariffs:t=[]})=>{const l=rd(e,t),n="На рисунке изображена пачка листов\nформата А4";return p("div",{className:"contents sm:flex flex-col justify-between order-2",children:[p("div",{className:"flex flex-col sm:flex-row gap-x-6xl gap-y-2xl order-5 sm:order-none py-2xl sm:py-0 border-t border-main-divider sm:border-none",children:[id("Аренда за",e),id("Цена",l+" ₽")]}),u("span",{className:"sm:hidden order-3 mb-xs text-s-light text-secondary-text",children:n}),p("div",{className:"flex flex-col items-center gap-s order-3 sm:order-none mb-xl sm:mb-0 bg-primary-main py-s sm:p-3xl text-center",children:[u(Vt,{image:{icon:"PackA4Icon"},className:"sm:h-60"}),u("span",{className:"hidden sm:inline text-s font-light text-white opacity-80 whitespace-pre-line",children:n})]})]})})),id=(e,t)=>p("div",{className:"flex justify-between items-center gap-y-xs sm:flex-col sm:items-start",children:[u("div",{className:"text-l font-light text-secondary-text",children:e}),u("span",{className:"text-l sm:text-h3 text-primary-text",children:t})]}),rd=(e,t)=>{const l=sd(e);return e*(t?.find((e=>e.tariffType===String(l)))?.tariffValue||0)},sd=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},od=(e,t)=>e.find((e=>e.branchCode===t)),cd=x((e=>{const{regions:t,data:l,branches:n,onChange:i,onClick:r}=e;a((()=>{i({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[l.selectedRegion,i]);const s=od(n,l.selectedBranch),o=dd(s?.safeBoxCaseVolumes),c=md(s?.safeBoxCaseVolumes,l.selectedCaseVolume)?.safeBoxCases,d=hd(c,l.selectedBoxSize);return p("div",{className:"flex flex-col sm:flex-row gap-4xl align-top",children:[u(td,{...l,regions:t,onClick:r,branches:n,caseVolumes:o,safeBoxCases:c,onChange:i}),u(ad,{days:l.days,tariffs:d})]})})),dd=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],md=(e,t)=>e?.find((e=>e.volume===t)),hd=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs,ud=[];const pd=async e=>await A(e,{method:"GET"})||ud,xd=x((({title:e,footnote:t,className:l="",...a})=>{const[r,s]=n(!1),o=i((()=>s((e=>!e))),[]),[c,d]=n({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26}),m=L(),h=gd(c.selectedRegion,m),x=function(e){const{data:t}=_(e?`/api/v1/safeboxes?regionCode=${e}`:null,pd);return t||ud}(h),g=i((e=>d((t=>({...t,...e})))),[d]),f=(b=od(x,c.selectedBranch)||x,Array.isArray(b)?b.map((e=>e.gpsLatitude&&e.gpsLongitude?[e.gpsLatitude,e.gpsLongitude]:[])):b?.gpsLatitude&&b?.gpsLongitude?[[b.gpsLatitude,b.gpsLongitude]]:[]);var b;return p(k,{className:l,defaultPadding:"",...a,children:[p("div",{className:"p-4xl space-y-xl",children:[e?u(I,{title:e,headingType:"h3",as:"h2",className:"text-primary-text mb-s text-center"}):null,u(cd,{regions:m,branches:x,data:{...c,selectedRegion:h},onClick:o,onChange:g}),t?u(de,{size:"text-s",font:"font-light",children:t}):null]}),f.length&&r?u(dc,{points:f,className:"h-[640px]"}):null]})})),gd=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e,fd={description:"text-white/80 text-l font-light group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconText:"text-white group-data-primary:text-secondary-text group-data-gray:text-secondary-text",iconBackground:"bg-white/30 group-data-primary:bg-main-divider",iconConnector:"bg-white group-data-primary:bg-secondary-light",dot:"bg-white/80 group-data-primary:bg-secondary-text"},bd=e=>Boolean(e?.icon||e?.src),yd=({styleMap:e,isMainButton:t,version:l})=>(n,a,i)=>{const{label:r,description:s,button:o,items:c,isDotted:d}=n;return p("div",{className:w("relative flex flex-col items-center text-center justify-between whitespace-pre-line overflow-hidden space-y-3xl",vd(i.length)),children:[p("div",{className:"text-center space-y-xs",children:[r?u("div",{children:u(me,{size:"text-h6",children:r})}):null,p("div",{className:"flex flex-col items-center gap-3xs",children:[s?u("div",{className:e.description,children:s}):null,u(Pa,{className:e.description,items:c,listItemSize:"M",isDotted:d})]})]}),o?.text&&!t?u(se,{className:"box-border py-s w-full max-w-60 mt-auto",version:l,...o,children:o?.text}):null]},String(a))},vd=e=>e<5?"w-72":"w-52",Nd=x((({className:e="",showLines:t=!0,steps:l=[],buttons:n,size:a="normal",version:i="primary",stepVersion:r="gray",title:s,description:o,...c})=>{const d=l.length>3,m=fd,h=(e=>e?"":"opacity-0")(t),x=(e=>e<5?"px-24":"px-16")(l.length),g=Boolean(n?.every((e=>e?.text)));return p(k,{className:w("box-border flex flex-col items-center overflow-hidden gap-y-3xl",e),defaultPadding:"p-6xl",version:i,...c,children:[u(al,{headlineVersion:"S",title:s,description:o,isEmbedded:!0,className:"w-full"}),l?.length?p("div",{className:"box-border space-y-lg",children:[u("div",{className:w("flex items-center",x),children:vo(u("div",{className:w("h-0.5 w-full bg-secondary-light flex-1",h)}))(l.map(wd(m,a,r)))}),u("div",{className:w("flex justify-between",d?"gap-x-s":"gap-x-20"),children:l.map((f={styleMap:m,isMainButton:g,version:i},(e,t,l)=>{const{type:n}=e;if("default"!==n&&"rte"!==n)return null;switch(n){case"default":return yd(f)(e,t,l);case"rte":return u("div",{className:w("text-center",vd(l.length)),children:u(Oa,{__html:e.__html})},String(t));default:return null}}))})]}):null,Qt(n)]});var f})),wd=(e,t,l)=>({icon:n},a)=>{const i="secondary"===l?"white":"color";return u(k,{defaultPadding:"",className:`${Sd(t)} flex justify-center items-center text-center rounded-full box-border z-10`,version:l,children:bd(n)?u(Vt,{image:{...n,iconVersion:n.iconVersion||i},width:"48",height:"48"}):u("span",{className:w("text-h4","transparent"===l?e.iconText:kd(l)),children:a+1})},String(a))},Sd=e=>"normal"===e?"h-24 w-24":"h-16 w-16",kd=e=>"secondary"===e?"group-data-primary:text-white":"text-secondary-text",Cd=x((({className:e,version:t,gap:l=14,padding:n=16,showDots:a=!0,minHeight:i,children:r,onVisibleIndicesChange:s,listType:o="horizontal-list"})=>{const c=Array.isArray(r)?r.length:0,[d,m]=ea({itemCount:c,onVisibleIndicesChange:s}),[h]=m.visibleIndicesRange;return p("div",{className:w(e,"vertical-list"===o?"relative h-full":""),children:[u(Wn,{containerRef:d,activeIndex:h,visibleItemCount:1,gap:l,padding:n,onVisibleIndicesChange:m.handleVisibleIndicesChange,listType:o,minHeight:i,children:r}),a?u(qn,{containerRef:d,activeIndex:h,dotCount:c,listType:o,version:t}):null]})})),Id=x((({listType:e,showDots:t,options:l,version:n,...a})=>u(k,{version:n,defaultPadding:"p-0",...a,children:u(Cd,{listType:e,showDots:t,version:n,children:Fn({...a,options:l})})})));Id.childrenTypes={exclude:["SwipeListControlBlock"]};const Td="hidden sm:flex absolute z-40 top-0",Bd=x((({className:e,items:t=[],value:l,onChange:n,tabsType:a})=>{const[i,r]=ea({itemCount:t?.length||0});return p("div",{className:w("relative overflow-x-auto no-scrollbar",e),role:"tablist",children:[u(Wn,{containerRef:i,snapAlign:"snap-start",onVisibleIndicesChange:r.handleVisibleIndicesChange,children:t.map(Wo(l,n,a))}),r.canScrollLeft?u(Nl,{className:w("left-6",Td),onClick:r.scrollLeft}):null,r.canScrollRight?u(wl,{className:w("right-6",Td),onClick:r.scrollRight}):null]})})),Rd=({tabsMode:e,...t})=>{switch(e){case"wideScreen":return u(Ko,{...t});case"centered":return u("div",{className:"flex",children:u(Ko,{className:"m-auto p-xs rounded-md bg-main-gray",tabsType:"rounded",...t})});case"scrollable":return u("div",{className:"flex",children:u(Bd,{className:"m-auto",tabsType:"underlined",...t})});default:return null}},Md=x((({className:e="",isSticky:t,tabs:l=[],tabsMode:s,...o})=>{const c=r((()=>l.map(Vd)),[l]),[d,m]=n(0);a((()=>{l&&l[0]&&Pd(l[0])}),[]),a((()=>{const e=l[d];"group"===e?.type&&b.subject("tab",{type:e.type,label:e.ref})}),[l,d]);const h=i((e=>{const t=c.indexOf(e);m(t),Pd(l[t])}),[l,c]);return u(k,{className:w(t?"sticky top-1 z-20":"",e),defaultPadding:"p-0",...o,children:Rd({items:c,value:c[d],tabsMode:s,onChange:h})})})),Pd=e=>{"group"===e.type&&b.fire("tab",{type:e.type,label:e.ref}),"link"===e.type&&b.fire("tab",{type:e.type,label:e.href})},Vd=e=>"group"===e?.type?{text:e.title}:e,zd=x((({isOpen:e,onClick:t})=>p(se,{version:"primary",onClick:t,className:"w-full flex items-center justify-center rounded-none py-lg",children:[u("div",{className:"text-h4",children:e?"Скрыть":"Показать"}),u(je,{name:e?"ArrowUpIcon":"ArrowDownIcon",className:"ml-s",iconVersion:"white",width:"20",height:"20"})]}))),_d={Buttons:({buttons:e})=>Qt(e),Img:({image:e})=>e?.src?u(Vt,{image:e}):null,List:({isDotted:e,...t})=>u(Pa,{className:"flex flex-col justify-between items-start text-h6",isDotted:e??!0,...t}),LabelDescription:({label:e,description:t})=>p("div",{className:"space-y-2xs",children:[e?u("div",{className:"text-h6 m-0",children:e}):null,t?u("div",{className:"text-secondary-text text-l font-light",children:t}):null]}),Table:x((({isVisible:e,displayTable:t,dataUrl:l,pdfUrl:n,isOpen:a})=>e?u(zd,{isOpen:a,onClick:()=>{t({dataUrl:l,pdfUrl:n})}}):null))},jd=({rowIdx:e,cellIdx:t,setTableInner:l,tableInner:i,openTableInnerIdx:r,setOpenTableInnerIdx:s})=>(o,c)=>{const[d,m]=n(!0);a((()=>{t===r&&i||m(!0)}),[i,r]);return p("div",{className:"Table"===o?.tableCellType?"ml-5xl":"first:pt-lg last:pb-lg pl-5xl",children:[c>0?u("div",{className:"h-5"}):null,Ad({cell:o,cellProps:{rowIdx:e,cellIdx:t,fieldIdx:c,displayTable:e=>{m(!1),s(t),l(e)},isVisible:d}})]},String(c))},Ad=({cell:e,cellProps:t})=>{if(!e)return null;const{tableCellType:l,...n}=e;if(!l||!(l in _d))return null;return u(_d[l],{...t,...n})},Dd=x((({cells:e,rowIdx:t,cellIdx:l,setTableInner:n,tableInner:a,openTableInnerIdx:i,setOpenTableInnerIdx:r})=>u("div",{className:"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(jd({rowIdx:t,cellIdx:l,setTableInner:n,tableInner:a,openTableInnerIdx:i,setOpenTableInnerIdx:r})):null}))),$d=x((({rows:e})=>{const t=e?.[0]?.length??0,[l,n]=yl({itemCount:t,visibleItemCount:5});return p("div",{children:[e?.map(Ld(l)),Sl({...n,btnClass:["left-3 top-20","right-3 top-20"],className:""})]})})),Ld=e=>(t,l)=>{if(!t?.length)return null;const[n,...a]=t,i=[...Array(e).keys()].reduce(((e,t)=>140*(a?.[t]?.cols?.length??1)+e),0),r=["flex duration-1000 text-center",0!==l?"font-normal":"font-light"].join(" ");return p("div",{className:"flex border-main-divider border border-t-0 border-x-0 border-solid",children:[n?.data?u("div",{className:"text-xl font-light w-52 py-lg ",children:n.data}):null,u("div",{className:"flex flex-grow overflow-hidden",children:u("div",{className:r,style:{transform:`translateX(-${i}px)`},children:a?.map(((t,l)=>p("div",{className:"flex flex-col flex-grow gap-s justify-center py-xl odd:bg-main-divider",children:[t?.data?u("div",{className:"text-xl font-light",children:t.data}):null,t?.cols?Ed(t.cols,e):null]},`row${l}`)))})})]},String(l))},Ed=(e,t)=>e?.length>0?u("div",{className:w("flex",0===t?"text-secondary-text":""),children:e.map(((e,t)=>u("div",{className:"w-20 text-h6 mx-lg",children:e},String(t))))}):null,Od=x((({activeTabIndex:e,items:t})=>{const[l,a]=n({}),r=i((e=>a((t=>({...t,[e]:!t[e]})))),[]);return u("div",{children:t.map(((t,n)=>{const a=`activeTabIdx:${e}-tableIdx:${n}`;return p("div",{className:"w-full",children:[p("div",{className:"flex p-m bg-gray text-center justify-center cursor-pointer relative",onClick:()=>r(a),children:[u(me,{size:"text-xl",font:"font-light",children:t.title}),u(Vt,{image:{icon:l[a]?"PlusIcon":"MinusIcon"},className:"absolute right-6",width:"24",height:"24"})]}),u("div",{className:"w-full pl-xs overflow-hidden transition-height duration-500 ease-in-out "+(l[a]?"h-0":""),children:u("div",{className:"relative",children:u($d,{rows:t.rowsData})})})]},a)}))})})),Fd=x((({currencies:e,linkToPDF:t,activeTabIndex:l,setActiveTabIndex:n})=>p("div",{className:"flex justify-between w-full px-s",children:[e&&e.length>1?u("div",{className:"flex bg-secondary-light p-2xs rounded-md",children:e.map(((e,t)=>u("div",{className:"rounded-md text-xl font-light px-m py-s cursor-pointer "+(t===l?"bg-primary-main text-white":"text-secondary-text"),onClick:()=>n(t),children:e||t+1},e)))}):null,t?u(se,{href:t,version:"secondary",target:"_blank",appendLeft:u(je,{name:"DocDownloadIcon",iconVersion:"color",className:"mr-3xs",width:"20",height:"20"}),text:"Скачать в PDF"}):null]})));async function Ud(e){const t=await fetch(e);return await t.json()}const Hd=x((({dataUrl:e,pdfUrl:t,onClick:l})=>{const{tableData:a}=function(e){const{data:t}=_(function(e){return`/wcms-resources/${e||"tariffs-inner-table-data"}.json`}(e),Ud);return t||{}}(e),[r,s]=n(0),o=i((e=>s(e)),[]),c=a?.[r]?.items??[],d=a?.map((e=>e.currency??""));return p("div",a?{className:"bg-white z-10",children:[u(Fd,{currencies:d,activeTabIndex:r,setActiveTabIndex:o,linkToPDF:t}),u(Od,{activeTabIndex:r,items:c}),u(zd,{onClick:l,isOpen:!0})]}:{className:"my-lg text-h6 text-center",children:[u("p",{children:"Данных нет"}),u(zd,{onClick:l,isOpen:!0})]})})),Xd=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(Hd,{...t,onClick:l})}):null]}))),Wd=x((({row:{header:e,data:t},activeIndex:l,rowIdx:a,...r})=>{const[s,o]=n(void 0),c=i((e=>o(e)),[]),[d,m]=n(void 0),h=i((e=>m(e)),[]);return p(Xd,{onHideContentClick:()=>o(void 0),tableInner:s,...r,children:[u("div",{className:"text-s py-lg w-80 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(Vt,{className:"mr-m max-w-6",image:e.icon,width:"24",height:"24"}):null,e?.title?u("div",{className:"text-m font-light",children:e?.title}):null]})}),t?.length?u(Ii,{activeIndex:l,columnWidth:360,version:"tariff",children:t.map(((e,t)=>u(Dd,{cells:e,rowIdx:a,cellIdx:t,setTableInner:c,tableInner:s,openTableInnerIdx:d,setOpenTableInnerIdx:h,...r},String(t))))}):null]})})),Kd=x((({className:e="",title:t,description:l,rowHeaders:n,tariffsColumns:a,hiddenRowsNum:i=0,...r})=>{const s=a?.map((({data:e})=>e))||[],o=n?.map(((e,t)=>({header:e,data:s.map((e=>e?.[t]||[]))}))),c=s.length,[d,m]=yl({itemCount:c,visibleItemCount:2}),h=(o||[]).map(((e,t)=>u(Wd,{row:e,activeIndex:d,rowIdx:t,...r},String(t)))),[x,g]=i>0?[h.slice(0,-i),h.slice(-i)]:[h,[]];return p(k,{className:w("overflow-hidden relative space-y-xl",e),defaultPadding:"p-6xl",...r,children:[u(al,{title:t,description:l,headlineVersion:"M",isEmbedded:!0}),i>0?u(hi,{renderFoldableSection:({isUnfolded:e})=>p(Gd,{controls:m,children:[x,u(ui,{isUnfolded:e,children:g})]}),renderFoldButton:Wi}):u(Gd,{controls:m,children:h})]})})),Gd=x((({children:e,controls:t})=>{const{isScrollAvailable:l}=t;return p("div",{role:"table",children:[p("div",{className:"relative",children:[e,Sl({...t,btnClass:["top-28","top-11"],className:"right-7"})]}),l?u("div",{className:"absolute top-0 right-0 bottom-0 w-20 bg-opacity-to-white"}):null]})})),Yd=x((({className:e="",title:t,description:l,iconVersion:n,image:a,__html:i,items:r=[],...s})=>p(k,{className:w("flex gap-s sm:gap-m bg-white group-data-secondary:bg-primary-main/10",e),...s,children:["small"===n?Jd():null,"big"===n?qd(a):null,p("div",{className:"flex flex-col w-fit gap-2xs sm:gap-xs",children:[t?u(me,{size:"text-l",font:"font-normal",color:"text-primary-text group-data-secondary:text-white",children:t}):null,l?Zd(l):null,r?.length?Qd(r,!0):null,i?u(Oa,{__html:i}):null]})]}))),Jd=()=>u("div",{className:"rounded-full h-4 w-4 text-center text-xs font-light bg-primary-main text-white group-data-secondary:bg-white group-data-secondary:text-primary-main",children:"i"}),qd=e=>e?.src?u(Vt,{className:"h-fit flex-shrink-0",image:e}):null,Zd=e=>u(de,{size:"text-s",font:"font-light",color:"text-secondary-text group-data-secondary:text-white",children:e}),Qd=(e,t)=>u("ul",{className:w("text-secondary-text group-data-secondary:text-white/80",t?"list-disc pl-xl":""),children:e.map(((e,t)=>u("li",{children:u(me,{size:"text-s",font:"font-light",children:e})},`listItem-${t}`)))}),em=x((({className:e,padding:t,headlineVersion:l="S",listItemSize:n="M",...a})=>u(k,{className:e,padding:"p-0",...a,children:u(ti,{className:"h-full",defaultPadding:"p-xl",padding:t,headlineVersion:l,listItemSize:n,...a})}))),tm=x((({className:e="",gap:t="",isPadding:l=!1,isInnerPadding:n=!0,version:a="transparent",isTheme:i=!1,...r})=>u(k,{className:w("relative flex flex-col",mo[t],e),defaultPadding:l?"p-6xl":"",version:a,isTheme:i,...r,children:Fn({...r,extraProps:{className:"w-full",padding:n?"":"p-0"}})})));tm.childrenTypes=[];const lm=e=>(e=>{const t="col-span-",l=e?.split(/\s+/).find((e=>e.startsWith(t)));return l?parseInt(l.substring(t.length),10):12})(e)<10?"py-xl px-6xl":"py-6xl px-32",nm=x((({className:e,title:t,url:l,previewImg:n,...a})=>{const i=Y();return p(k,{className:e,defaultPadding:lm(e),...a,children:[u(al,{title:t,headlineVersion:"M"}),l?u("video",{className:"m-auto w-full object-fill",preload:"metadata",poster:W(i)(n?.src),style:{maxHeight:524},controls:!0,children:u("source",{src:W(i)(l)})}):null]})})),am={ApplicationForm:Ht,BenefitsBlock:Gt,Bonus:il,BonusBenefitsBlock:pl,BusinessBlock:fl,ButtonsBlock:bl,Calculator:Rn,CardTransfer:An,Carousel:ia,CarouselBankHistoryCard:ra,CarouselCard:ma,CarouselCatalogCard:ua,CarouselEventCard:ga,CarouselInvestmentCard:Na,CarouselLinks:Ca,CarouselProductCard:Va,CarouselProgramsCard:ni,CarouselRecommendationCard:di,CarouselRichTextCard:mi,CarouselTariffsCard:gi,ComparisonTable:Di,ContactsBlock:Li,DepositFiltration:lr,ErrorBlock:ar,ExchangeRateTile:Ar,Footer:Ss,GracePeriod:ks,Header:co,Headline:al,HorizontalLayout:ho,ImgBlock:uo,InsuranceAmountBlock:bo,InvestmentInfo:So,LinkDocs:zo,MobileAppTile:Do,MortgageFiltration:Zo,OfficeMap:Nc,OfficeServicesBlock:wc,ParagraphBlock:kc,PictureText:Tc,Placeholder:Bc,ProductBlock:zc,ProductGallery:_c,ProductTile:Ac,PromoTile:Dc,RepresentativeOfficeInfo:Lc,RichTextBlock:Uc,RollupItem:Xc,SafeDepositRental:xd,StepsBlock:Nd,SwipeListControlBlock:Id,Tabs:Md,TariffsTable:Kd,TextBlock:Yd,Tile:em,VerticalLayout:tm,Video:nm,ExchangeRateOffice:hr};const im=["Header","Footer"],rm=([,{target:e}])=>Math.abs(e.getBoundingClientRect().top);function sm(e=globalThis){const t=s(new Map);a((()=>N.subscribe("intersection",(({block:e,intersection:l})=>{t.current&&t.current.set(e,l)}))),[]),a((()=>{const l=((e,t=600)=>{let l;const n=(...a)=>{n.dispose(),l=setTimeout((()=>{e(...a)}),t)};return n.dispose=()=>{l&&clearTimeout(l)},n})((()=>{!function(e){const t=`#${l=e?.anchor,l?.replace("#","")||""}`;var l;globalThis.location?.hash!==t&&globalThis.history?.replaceState(globalThis.history?.state,"",t)}(globalThis.scrollY>3*globalThis.innerHeight/4?function(e){const t=e.filter((([e])=>!im.includes(e.type||""))).filter((([,{intersectionRatio:e}])=>e>.01)),[l]=t.length>0?El(rm)(t):[];return l}([...t.current||[]]):void 0)}),100);return e.addEventListener("scroll",l),()=>{l.dispose(),e.removeEventListener("scroll",l)}}),[e])}const om="cookie",cm=x((({termLink:e,personalDataPolicyLink:t})=>{const[l,{setTrue:n,setFalse:a}]=Ve();Kr((()=>{globalThis.localStorage?.getItem(om)||n()}),[],3e3);const r=i((()=>{globalThis.localStorage?.setItem(om,"true"),a()}),[]);return l?u("div",{className:"container fixed left-0 right-0 bottom-0 z-50",children:p("div",{className:"bg-white m-xl p-xl rounded-md flex sm:items-center shadow-[0_4px_25px_rgba(0,0,0,0.07)]",children:[u("div",{className:"sm:flex-1",children:p(de,{size:"text-s",font:"font-light",color:"text-primary-text",children:["АО «Россельхозбанк» использует",u(xa,{isRemote:!0,className:dm(e?.href),...e,children:"cookie"}),"(файлы с данными о прошлых посещениях сайта) для персонализации сервисов и удобства пользователей. Вы можете запретить сохранение cookie в настройках своего браузера.",u(xa,{isRemote:!0,className:dm(t?.href),...t,children:"Обработка Ваших персональных данных"}),"производится в соответствии с требованиями Федерального закона от 27.07.2006 № 152-Ф3 «О персональных данных»."]})}),u("div",{className:"ml-s sm:ml-0 w-24 flex justify-end",children:u(Xr,{className:"bg-main-gray rounded-md",onClose:r})})]})}):null})),dm=e=>w("inline mx-2xs",e?"text-green-dark":"");const mm=x((()=>{const[e,{push:t,pop:l,clear:r}]=function(e=[]){const[t,l]=n(e),a=i((e=>l((t=>[...t,e]))),[]),r=i((()=>l((e=>e.slice(0,-1)))),[]),s=i((e=>l((t=>t.filter((t=>t!==e))))),[]),o=i((()=>l([])),[]);return[t,{setList:l,push:a,pop:r,remove:s,clear:o}]}(),s=i((()=>{for(const t of e)t.onClose&&t.onClose();r()}),[e]),o=i((()=>{const t=e[e.length-1];t?.onClose&&t.onClose(),l()}),[e]);return a((()=>b.subscribe("dialog",(e=>{switch(e.type){case"open":t(e);break;case"close":e.all?s():o();break;default:!function(e){throw new Error(e)}(e)}}))),[s,o]),a((()=>{const e=({key:e})=>{"Escape"===e&&o()};return globalThis.document?.addEventListener("keydown",e),()=>{globalThis.document?.removeEventListener("keydown",e)}}),[o]),a((()=>{e.length?globalThis.document?.body.classList.add("no-scrollbar"):globalThis.document?.body.classList.remove("no-scrollbar")}),[e]),e.length?u("div",{className:"fixed inset-0 z-50",role:"dialog",children:e.map((({dialog:t,id:l},n)=>u("div",{className:w("absolute inset-0 overflow-x-hidden overflow-y-scroll no-scrollbar",n===e.length-1?"":"hidden"),children:t},String(l||n))))}):null})),hm=h();const um=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:pm()}))),pm=()=>{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"})]})},xm=x((({className:e=""})=>{const t=function(e){const[t,l]=n(0);return a((()=>{(async()=>{const[t]=await hm.getLikeCount(e);l(t?.value||0)})()}),[e]),{likeCount:t,like:i((async()=>{l(await hm.like(e))}),[e]),dislike:i((async()=>{l(await hm.dislike(e))}),[e])}}(Y().pathname);return p("div",{className:`border-main border-2 border-solid bg-white flex w-32 items-center justify-center gap-s p-xs font-sans ${e}`,children:[u(um,{onClick:G(t.like),ariaLabel:"Поставить отметку «лайк»"}),u(um,{onClick:G(t.dislike),className:"rotate-180",ariaLabel:"Поставить отметку «дизлайк»"}),u("span",{className:"select-none",children:t.likeCount})]})})),gm=x((({className:e,blocksRegistry:t,blockDecorator:l,data:n={}})=>{const{style:a,slots:i,likeControl:r,colorPalette:s="pc"}=n,o={key:"",page:n,blocksRegistry:t,blockDecorator:l,parent:n};return sm(),p("div",{children:[p("section",{className:w("relative @container",a,e),"data-theme":s,children:[i?.header?u("div",{className:"relative z-10 mb-lg shadow-[0_8px_32px_0px_#00000014]",children:On(i?.header,{...o,slotName:"header"})}):null,p("div",{className:"container @lg:grid @lg:grid-cols-12 @lg:gap-2xs",children:[Fn({block:n,options:o,extraProps:{className:"scroll-mt-12"}}),On(i?.footer,{...o,slotName:"footer"})]}),r?u("div",{className:"flex items-end absolute bottom-0 right-0 h-full pointer-events-none",children:u(xm,{className:"rounded-tl-3xl sticky bottom-0 pointer-events-auto"})}):null]}),u(mm,{}),u(cm,{termLink:{href:"/pd-policy#cookie",target:"_blank"},personalDataPolicyLink:{href:"/pd-policy",target:"_blank"}})]})}));gm.childrenTypes=[],gm.slots=()=>["header","footer"];e.Blocks=am,e.ContentPage=gm,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=G,e.joinList=vo,e.packageVersion="0.13.3",e.projectSettings=d,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=X,e.useRouter=Y,Object.defineProperty(e,"__esModule",{value:!0})}));
|