@redneckz/wildless-cms-uni-blocks 0.14.681 → 0.14.683
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/api/RetailAPI/updateUserTask.d.ts +1 -0
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +47 -37
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +3 -7
- package/bundle/components/ApplicationForm/renderAgreementSubmit.d.ts +1 -2
- package/bundle/components/ApplicationForm/renderContacts.d.ts +1 -2
- package/bundle/components/ApplicationForm/renderInputs.d.ts +1 -2
- package/bundle/components/ApplicationForm/renderSubmitButton.d.ts +1 -2
- package/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -8
- package/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/bundle/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +1 -2
- package/bundle/components/ApplicationLeadForm/renderSubmitButton.d.ts +1 -2
- package/bundle/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +1 -2
- package/bundle/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +1 -2
- package/bundle/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +1 -2
- package/bundle/components/CalculatorDeposit/renderDepositParamsForm.d.ts +1 -2
- package/bundle/components/CalculatorDeposit/renderDepositResult.d.ts +1 -2
- package/bundle/components/CalculatorDeposit/renderPaymentType.d.ts +1 -2
- package/bundle/components/CalculatorDeposit/renderRegistrationType.d.ts +1 -2
- package/bundle/components/Carousel/renderCardHighlight.d.ts +1 -2
- package/bundle/components/ContentPage/renderContentPageHead.d.ts +1 -2
- package/bundle/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +1 -2
- package/bundle/components/CreditCardForm/FailedStatusContent.d.ts +1 -2
- package/bundle/components/CreditCardForm/PendingStatusContent.d.ts +1 -2
- package/bundle/components/CreditCardForm/ReworkStatusContent.d.ts +1 -2
- package/bundle/components/CreditCardForm/SuccessStatusContent.d.ts +1 -2
- package/bundle/components/CreditCardForm/getSixthStepData.d.ts +5 -0
- package/bundle/components/CreditCardForm/renderInfo.d.ts +1 -2
- package/bundle/components/CreditCardForm/renderInputs.d.ts +1 -2
- package/bundle/components/CreditCardForm/renderStep.d.ts +1 -2
- package/bundle/components/CreditForm/CreditFormStatusTracker.d.ts +1 -2
- package/bundle/components/CreditForm/CreditFormStep.d.ts +2 -2
- package/bundle/components/CreditForm/FailedStatusContent.d.ts +1 -2
- package/bundle/components/CreditForm/PendingStatusContent.d.ts +1 -2
- package/bundle/components/CreditForm/ReworkStatusContent.d.ts +1 -2
- package/bundle/components/CreditForm/SuccessStatusContent.d.ts +1 -2
- package/bundle/components/CreditForm/renderInfo.d.ts +1 -2
- package/bundle/components/CreditForm/renderInputs.d.ts +1 -2
- package/bundle/components/CreditForm/renderStep.d.ts +1 -2
- package/bundle/components/Depository/DepositoryItem.d.ts +1 -2
- package/bundle/components/ExchangeRateTile/renderInput.d.ts +1 -2
- package/bundle/components/Footer/renderLogoSearchBar.d.ts +1 -2
- package/bundle/components/LinkDocs/renderDefaultItem.d.ts +2 -3
- package/bundle/components/OfficesAtmsMap/getScheduleDescription.d.ts +1 -2
- package/bundle/components/OfficesAtmsMap/renderAtmCard.d.ts +1 -2
- package/bundle/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +2 -3
- package/bundle/components/OfficesAtmsMap/renderButtonsGroup.d.ts +1 -2
- package/bundle/components/OfficesAtmsMap/renderCurrency.d.ts +1 -2
- package/bundle/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +1 -2
- package/bundle/components/OfficesAtmsMap/renderDay.d.ts +1 -2
- package/bundle/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +1 -2
- package/bundle/components/OfficesAtmsMap/renderFiltrationForm.d.ts +2 -3
- package/bundle/components/OfficesAtmsMap/renderHeading.d.ts +1 -2
- package/bundle/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -2
- package/bundle/components/OfficesAtmsMap/renderRemoteWorkplaceCard.d.ts +1 -2
- package/bundle/components/ProductBlock/renderBackwardButton.d.ts +1 -2
- package/bundle/components/RollupItem/renderRoundedIcon.mobile.d.ts +1 -2
- package/bundle/components/SafeDepositRental/RadioButtons.d.ts +1 -2
- package/bundle/components/StepsBlock/renderStepMobile.d.ts +1 -2
- package/bundle/components/TabsLayout/renderTabsLayout.d.ts +1 -2
- package/bundle/components/TariffsTable/EmbeddableCellData.d.ts +5 -6
- package/bundle/hooks/useElementSpace.d.ts +0 -1
- package/bundle/model/ColumnCount.d.ts +5 -0
- package/bundle/model/InputSectionsType.d.ts +3 -2
- package/bundle/ui-kit/BaseFiltration/renderCarouselBlocks.d.ts +1 -2
- package/bundle/ui-kit/BaseFiltration/renderGridBlocks.d.ts +1 -2
- package/bundle/ui-kit/BaseTile/renderImageContainer.d.ts +1 -2
- package/bundle/ui-kit/BenefitItem/renderBenefitDescription.d.ts +1 -2
- package/bundle/ui-kit/BenefitItem/renderBenefitIcon.d.ts +1 -2
- package/bundle/ui-kit/BenefitItem/renderBenefitLabel.d.ts +1 -2
- package/bundle/ui-kit/BenefitItem/renderBenefitText.d.ts +1 -2
- package/bundle/ui-kit/Calculator/renderBinaryRadioButtonGroup.d.ts +1 -2
- package/bundle/ui-kit/Calculator/renderDaysInput.d.ts +1 -2
- package/bundle/ui-kit/Calculator/renderFootnote.d.ts +1 -2
- package/bundle/ui-kit/Calculator/renderMonthsInput.d.ts +1 -2
- package/bundle/ui-kit/Calculator/renderPaymentType.d.ts +1 -2
- package/bundle/ui-kit/Calculator/renderPayout.d.ts +1 -2
- package/bundle/ui-kit/Calculator/renderRate.d.ts +1 -2
- package/bundle/ui-kit/Calculator/renderWantedSumInput.d.ts +1 -2
- package/bundle/ui-kit/DatePicker/renderDatePickerForm.d.ts +1 -2
- package/bundle/ui-kit/DialogManager/DialogManager.d.ts +1 -2
- package/bundle/ui-kit/DialogManager/openDocument.d.ts +8 -1
- package/bundle/ui-kit/Foldable/DefaultFoldButton.d.ts +1 -2
- package/bundle/ui-kit/FormField/getField.d.ts +1 -2
- package/bundle/ui-kit/FormField/inputColumnStyle.d.ts +2 -2
- package/bundle/ui-kit/FormField/renderTitle.d.ts +1 -2
- package/bundle/ui-kit/InnerTable/renderInnerTableRow.d.ts +1 -2
- package/bundle/ui-kit/Input/InputProps.d.ts +1 -0
- package/bundle/ui-kit/Input/renderErrorText.d.ts +1 -2
- package/bundle/ui-kit/Input/renderLabel.d.ts +1 -2
- package/bundle/ui-kit/InputRange/renderRangeWithTicks.d.ts +1 -2
- package/bundle/ui-kit/LinkButton/renderArrows.d.ts +1 -2
- package/bundle/ui-kit/LinkButton/renderButtonsSection.d.ts +1 -2
- package/bundle/ui-kit/LocationDialog/renderForeignOffices.d.ts +1 -2
- package/bundle/ui-kit/LocationDialog/renderRegion.d.ts +1 -2
- package/bundle/ui-kit/LocationDialog/renderRegionGroup.d.ts +1 -2
- package/bundle/ui-kit/Logo/renderImage.d.ts +1 -2
- package/bundle/ui-kit/Pagination/PageSizeSelector.d.ts +1 -2
- package/bundle/ui-kit/Pagination/Pagination.d.ts +1 -2
- package/bundle/ui-kit/Pagination/PaginationContainer.d.ts +1 -2
- package/bundle/ui-kit/Pagination/renderPages.d.ts +1 -2
- package/bundle/ui-kit/PopupManager/PopupManager.d.ts +1 -2
- package/bundle/ui-kit/Rating/Rating.d.ts +1 -2
- package/bundle/ui-kit/SwipeListControl/renderDotButton.d.ts +1 -2
- package/bundle/ui-kit/SwipeListControl/renderNavButton.d.ts +1 -2
- package/bundle/ui-kit/TabsControl/renderTab.d.ts +1 -2
- package/bundle/ui-kit/TabsControl/renderTabItemInner.d.ts +1 -2
- package/bundle/ui-kit/VerifyPhoneDialog/InputCode.d.ts +1 -2
- package/bundle/ui-kit/YandexMap/renderSearchField.d.ts +1 -2
- package/bundle/ui-kit/YandexMap/renderUserGeolocation.d.ts +1 -2
- package/dist/api/RetailAPI/updateUserTask.d.ts +1 -0
- package/dist/api/RetailAPI/updateUserTask.js.map +1 -1
- package/dist/components/ApplicationForm/ApplicationFormContent.d.ts +3 -7
- package/dist/components/ApplicationForm/renderAgreementSubmit.d.ts +1 -2
- package/dist/components/ApplicationForm/renderContacts.d.ts +1 -2
- package/dist/components/ApplicationForm/renderInputs.d.ts +1 -2
- package/dist/components/ApplicationForm/renderSubmitButton.d.ts +1 -2
- package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -8
- package/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/dist/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +1 -2
- package/dist/components/ApplicationLeadForm/renderSubmitButton.d.ts +1 -2
- package/dist/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +1 -2
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +1 -2
- package/dist/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +1 -2
- package/dist/components/CalculatorDeposit/renderDepositParamsForm.d.ts +1 -2
- package/dist/components/CalculatorDeposit/renderDepositResult.d.ts +1 -2
- package/dist/components/CalculatorDeposit/renderPaymentType.d.ts +1 -2
- package/dist/components/CalculatorDeposit/renderRegistrationType.d.ts +1 -2
- package/dist/components/Carousel/renderCardHighlight.d.ts +1 -2
- package/dist/components/ContentPage/renderContentPageHead.d.ts +1 -2
- package/dist/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +1 -2
- package/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
- package/dist/components/CreditCardForm/FailedStatusContent.d.ts +1 -2
- package/dist/components/CreditCardForm/PendingStatusContent.d.ts +1 -2
- package/dist/components/CreditCardForm/ReworkStatusContent.d.ts +1 -2
- package/dist/components/CreditCardForm/SuccessStatusContent.d.ts +1 -2
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.js +1 -3
- package/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/dist/components/CreditCardForm/getFourthStepData.js +3 -1
- package/dist/components/CreditCardForm/getFourthStepData.js.map +1 -1
- package/dist/components/CreditCardForm/getSixthStepData.d.ts +5 -0
- package/dist/components/CreditCardForm/getSixthStepData.js +8 -1
- package/dist/components/CreditCardForm/getSixthStepData.js.map +1 -1
- package/dist/components/CreditCardForm/getThirdStepData.js +3 -1
- package/dist/components/CreditCardForm/getThirdStepData.js.map +1 -1
- package/dist/components/CreditCardForm/renderInfo.d.ts +1 -2
- package/dist/components/CreditCardForm/renderInputs.d.ts +1 -2
- package/dist/components/CreditCardForm/renderStep.d.ts +1 -2
- package/dist/components/CreditCardForm/useCreditCardFormAPI.js +0 -1
- package/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/dist/components/CreditForm/CreditFormStatusTracker.d.ts +1 -2
- package/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
- package/dist/components/CreditForm/CreditFormStep.d.ts +2 -2
- package/dist/components/CreditForm/CreditFormStep.js.map +1 -1
- package/dist/components/CreditForm/FailedStatusContent.d.ts +1 -2
- package/dist/components/CreditForm/PendingStatusContent.d.ts +1 -2
- package/dist/components/CreditForm/ReworkStatusContent.d.ts +1 -2
- package/dist/components/CreditForm/SuccessStatusContent.d.ts +1 -2
- package/dist/components/CreditForm/getCreditFormTaskData.js +0 -3
- package/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -1
- package/dist/components/CreditForm/getSecondStepData.js +3 -1
- package/dist/components/CreditForm/getSecondStepData.js.map +1 -1
- package/dist/components/CreditForm/getThirdStepData.js +3 -1
- package/dist/components/CreditForm/getThirdStepData.js.map +1 -1
- package/dist/components/CreditForm/renderInfo.d.ts +1 -2
- package/dist/components/CreditForm/renderInputs.d.ts +1 -2
- package/dist/components/CreditForm/renderStep.d.ts +1 -2
- package/dist/components/Depository/DepositoryItem.d.ts +1 -2
- package/dist/components/Depository/DepositoryItem.js +3 -3
- package/dist/components/Depository/DepositoryItem.js.map +1 -1
- package/dist/components/ExchangeRateTile/renderInput.d.ts +1 -2
- package/dist/components/Footer/renderLogoSearchBar.d.ts +1 -2
- package/dist/components/LinkDocs/renderDefaultItem.d.ts +2 -3
- package/dist/components/OfficesAtmsMap/getScheduleDescription.d.ts +1 -2
- package/dist/components/OfficesAtmsMap/renderAtmCard.d.ts +1 -2
- package/dist/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +2 -3
- package/dist/components/OfficesAtmsMap/renderButtonsGroup.d.ts +1 -2
- package/dist/components/OfficesAtmsMap/renderCurrency.d.ts +1 -2
- package/dist/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +1 -2
- package/dist/components/OfficesAtmsMap/renderDay.d.ts +1 -2
- package/dist/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +1 -2
- package/dist/components/OfficesAtmsMap/renderFiltrationForm.d.ts +2 -3
- package/dist/components/OfficesAtmsMap/renderHeading.d.ts +1 -2
- package/dist/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -2
- package/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.d.ts +1 -2
- package/dist/components/ProductBlock/renderBackwardButton.d.ts +1 -2
- package/dist/components/RollupItem/renderRoundedIcon.mobile.d.ts +1 -2
- package/dist/components/SafeDepositRental/RadioButtons.d.ts +1 -2
- package/dist/components/StepsBlock/renderStepMobile.d.ts +1 -2
- package/dist/components/TabsLayout/renderTabsLayout.d.ts +1 -2
- package/dist/components/TariffsTable/EmbeddableCellData.d.ts +5 -6
- package/dist/hooks/useElementSpace.d.ts +0 -1
- package/dist/model/ColumnCount.d.ts +5 -0
- package/dist/model/ColumnCount.js +2 -0
- package/dist/model/ColumnCount.js.map +1 -0
- package/dist/model/InputSectionsType.d.ts +3 -2
- package/dist/setup-fixture.js.map +1 -1
- package/dist/ui-kit/BaseFiltration/renderCarouselBlocks.d.ts +1 -2
- package/dist/ui-kit/BaseFiltration/renderGridBlocks.d.ts +1 -2
- package/dist/ui-kit/BaseTile/renderImageContainer.d.ts +1 -2
- package/dist/ui-kit/BenefitItem/renderBenefitDescription.d.ts +1 -2
- package/dist/ui-kit/BenefitItem/renderBenefitIcon.d.ts +1 -2
- package/dist/ui-kit/BenefitItem/renderBenefitLabel.d.ts +1 -2
- package/dist/ui-kit/BenefitItem/renderBenefitText.d.ts +1 -2
- package/dist/ui-kit/Calculator/renderBinaryRadioButtonGroup.d.ts +1 -2
- package/dist/ui-kit/Calculator/renderDaysInput.d.ts +1 -2
- package/dist/ui-kit/Calculator/renderFootnote.d.ts +1 -2
- package/dist/ui-kit/Calculator/renderMonthsInput.d.ts +1 -2
- package/dist/ui-kit/Calculator/renderPaymentType.d.ts +1 -2
- package/dist/ui-kit/Calculator/renderPayout.d.ts +1 -2
- package/dist/ui-kit/Calculator/renderRate.d.ts +1 -2
- package/dist/ui-kit/Calculator/renderWantedSumInput.d.ts +1 -2
- package/dist/ui-kit/Checkbox/CheckboxWithDoc.js +2 -2
- package/dist/ui-kit/Checkbox/CheckboxWithDoc.js.map +1 -1
- package/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +1 -1
- package/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
- package/dist/ui-kit/DatePicker/renderDatePickerForm.d.ts +1 -2
- package/dist/ui-kit/DialogManager/DialogManager.d.ts +1 -2
- package/dist/ui-kit/DialogManager/openDocument.d.ts +8 -1
- package/dist/ui-kit/DialogManager/openDocument.js +3 -2
- package/dist/ui-kit/DialogManager/openDocument.js.map +1 -1
- package/dist/ui-kit/Foldable/DefaultFoldButton.d.ts +1 -2
- package/dist/ui-kit/FormField/Fields/BankEmployeeCodeField.js +1 -1
- package/dist/ui-kit/FormField/Fields/BankEmployeeCodeField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/ChildrenField.js +1 -1
- package/dist/ui-kit/FormField/Fields/ChildrenField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/CollectionCountField.js +1 -1
- package/dist/ui-kit/FormField/Fields/CollectionCountField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/DependentsField.js +1 -1
- package/dist/ui-kit/FormField/Fields/DependentsField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/DulNumberField.js +1 -1
- package/dist/ui-kit/FormField/Fields/DulNumberField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/DulSerieField.js +1 -1
- package/dist/ui-kit/FormField/Fields/DulSerieField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +1 -1
- package/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/ExpensesField.js +1 -1
- package/dist/ui-kit/FormField/Fields/ExpensesField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/InnField.js +1 -1
- package/dist/ui-kit/FormField/Fields/InnField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/JobsNumberField.js +1 -1
- package/dist/ui-kit/FormField/Fields/JobsNumberField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.js +1 -1
- package/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/OtherIncomeField.js +1 -1
- package/dist/ui-kit/FormField/Fields/OtherIncomeField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/PartInBusinessField.js +1 -1
- package/dist/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/RetirementIncomeField.js +1 -1
- package/dist/ui-kit/FormField/Fields/RetirementIncomeField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/TotalIncomeField.js +1 -1
- package/dist/ui-kit/FormField/Fields/TotalIncomeField.js.map +1 -1
- package/dist/ui-kit/FormField/Fields/WagesField.js +1 -1
- package/dist/ui-kit/FormField/Fields/WagesField.js.map +1 -1
- package/dist/ui-kit/FormField/getField.d.ts +1 -2
- package/dist/ui-kit/FormField/getField.js +1 -1
- package/dist/ui-kit/FormField/getField.js.map +1 -1
- package/dist/ui-kit/FormField/inputColumnStyle.d.ts +2 -2
- package/dist/ui-kit/FormField/inputColumnStyle.js.map +1 -1
- package/dist/ui-kit/FormField/renderTitle.d.ts +1 -2
- package/dist/ui-kit/InnerTable/renderInnerTableRow.d.ts +1 -2
- package/dist/ui-kit/Input/InputControl.js +5 -1
- package/dist/ui-kit/Input/InputControl.js.map +1 -1
- package/dist/ui-kit/Input/InputProps.d.ts +1 -0
- package/dist/ui-kit/Input/renderErrorText.d.ts +1 -2
- package/dist/ui-kit/Input/renderLabel.d.ts +1 -2
- package/dist/ui-kit/InputRange/renderRangeWithTicks.d.ts +1 -2
- package/dist/ui-kit/LinkButton/renderArrows.d.ts +1 -2
- package/dist/ui-kit/LinkButton/renderButtonsSection.d.ts +1 -2
- package/dist/ui-kit/LocationDialog/SearchBar.js.map +1 -1
- package/dist/ui-kit/LocationDialog/renderForeignOffices.d.ts +1 -2
- package/dist/ui-kit/LocationDialog/renderRegion.d.ts +1 -2
- package/dist/ui-kit/LocationDialog/renderRegionGroup.d.ts +1 -2
- package/dist/ui-kit/Logo/renderImage.d.ts +1 -2
- package/dist/ui-kit/Pagination/PageSizeSelector.d.ts +1 -2
- package/dist/ui-kit/Pagination/Pagination.d.ts +1 -2
- package/dist/ui-kit/Pagination/PaginationContainer.d.ts +1 -2
- package/dist/ui-kit/Pagination/renderPages.d.ts +1 -2
- package/dist/ui-kit/PopupManager/PopupManager.d.ts +1 -2
- package/dist/ui-kit/Radio/Radio.js.map +1 -1
- package/dist/ui-kit/Rating/Rating.d.ts +1 -2
- package/dist/ui-kit/SwipeListControl/renderDotButton.d.ts +1 -2
- package/dist/ui-kit/SwipeListControl/renderNavButton.d.ts +1 -2
- package/dist/ui-kit/TabsControl/renderTab.d.ts +1 -2
- package/dist/ui-kit/TabsControl/renderTabItemInner.d.ts +1 -2
- package/dist/ui-kit/VerifyPhoneDialog/InputCode.d.ts +1 -2
- package/dist/ui-kit/VerifyPhoneDialog/InputCode.js.map +1 -1
- package/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/dist/ui-kit/YandexMap/renderSearchField.d.ts +1 -2
- package/dist/ui-kit/YandexMap/renderSearchField.js.map +1 -1
- package/dist/ui-kit/YandexMap/renderUserGeolocation.d.ts +1 -2
- package/lib/api/RetailAPI/updateUserTask.d.ts +1 -0
- package/lib/api/RetailAPI/updateUserTask.js.map +1 -1
- package/lib/components/AdTile/AdTile.fixture.d.ts +1 -2
- package/lib/components/ApplicationForm/ApplicationForm.fixture.d.ts +18 -19
- package/lib/components/ApplicationForm/ApplicationForm.fixture.mobile.d.ts +18 -19
- package/lib/components/ApplicationForm/ApplicationFormContent.d.ts +3 -7
- package/lib/components/ApplicationForm/renderAgreementSubmit.d.ts +1 -1
- package/lib/components/ApplicationForm/renderContacts.d.ts +1 -1
- package/lib/components/ApplicationForm/renderInputs.d.ts +1 -1
- package/lib/components/ApplicationForm/renderSubmitButton.d.ts +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.fixture.d.ts +1 -2
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.fixture.mobile.d.ts +1 -2
- package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -8
- package/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/lib/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +1 -2
- package/lib/components/ApplicationLeadForm/renderSubmitButton.d.ts +1 -1
- package/lib/components/BankAccountFiltration/BankAccountFiltration.fixture.d.ts +2 -3
- package/lib/components/BankAccountFiltration/BankAccountFiltration.fixture.mobile.d.ts +2 -3
- package/lib/components/BenefitsBlock/BenefitsBlock.fixture.d.ts +5 -6
- package/lib/components/BenefitsBlock/BenefitsBlock.fixture.mobile.d.ts +2 -3
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.d.ts +3 -4
- package/lib/components/BonusBenefitsBlock/BonusBenefitsBlock.fixture.mobile.d.ts +2 -3
- package/lib/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +1 -1
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +1 -2
- package/lib/components/BonusBenefitsBlock/renderBonusBenefits.mobile.d.ts +1 -1
- package/lib/components/ButtonsBlock/ButtonsBlock.fixture.d.ts +1 -2
- package/lib/components/ButtonsBlock/ButtonsBlock.fixture.mobile.d.ts +1 -2
- package/lib/components/CalculatorBonus/CalculatorBonus.fixture.d.ts +1 -2
- package/lib/components/CalculatorBonus/CalculatorBonus.fixture.mobile.d.ts +1 -2
- package/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.fixture.d.ts +2 -3
- package/lib/components/CalculatorBusinessDeposit/CalculatorBusinessDeposit.fixture.mobile.d.ts +1 -2
- package/lib/components/CalculatorCredit/CalculatorCredit.fixture.d.ts +2 -3
- package/lib/components/CalculatorCredit/CalculatorCredit.fixture.mobile.d.ts +2 -3
- package/lib/components/CalculatorDeposit/CalculatorDeposit.fixture.d.ts +4 -5
- package/lib/components/CalculatorDeposit/CalculatorDeposit.fixture.mobile.d.ts +1 -2
- package/lib/components/CalculatorDeposit/renderDepositParamsForm.d.ts +1 -1
- package/lib/components/CalculatorDeposit/renderDepositResult.d.ts +1 -1
- package/lib/components/CalculatorDeposit/renderPaymentType.d.ts +1 -2
- package/lib/components/CalculatorDeposit/renderRegistrationType.d.ts +1 -1
- package/lib/components/CalculatorRefinancing/CalculatorRefinancing.fixture.d.ts +1 -2
- package/lib/components/CalculatorRefinancing/CalculatorRefinancing.fixture.mobile.d.ts +1 -2
- package/lib/components/CardTransfer/CardTransfer.fixture.d.ts +1 -2
- package/lib/components/CardTransfer/CardTransfer.fixture.mobile.d.ts +1 -2
- package/lib/components/Carousel/Carousel.fixture.d.ts +10 -11
- package/lib/components/Carousel/Carousel.fixture.mobile.d.ts +7 -8
- package/lib/components/Carousel/renderCardHighlight.d.ts +1 -1
- package/lib/components/CarouselCard/CarouselCard.fixture.d.ts +3 -4
- package/lib/components/CarouselCard/CarouselCard.fixture.mobile.d.ts +1 -2
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.fixture.d.ts +1 -2
- package/lib/components/CarouselCatalogCard/CarouselCatalogCard.fixture.mobile.d.ts +1 -2
- package/lib/components/CarouselLinks/CarouselLinks.fixture.d.ts +1 -2
- package/lib/components/CarouselLinks/CarouselLinks.fixture.mobile.d.ts +1 -2
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.d.ts +9 -10
- package/lib/components/CarouselRecommendationCard/CarouselRecommendationCard.fixture.mobile.d.ts +7 -8
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.fixture.d.ts +1 -2
- package/lib/components/CarouselTariffsCard/CarouselTariffsCard.fixture.mobile.d.ts +1 -2
- package/lib/components/ContactsBlock/ContactsBlock.fixture.d.ts +2 -3
- package/lib/components/ContentPage/ContentPage.fixture.d.ts +2 -3
- package/lib/components/ContentPage/ContentPage.fixture.mobile.d.ts +1 -2
- package/lib/components/ContentPage/renderContentPageHead.d.ts +1 -2
- package/lib/components/CreditCardForm/CreditCardForm.fixture.d.ts +1 -2
- package/lib/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +1 -2
- package/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
- package/lib/components/CreditCardForm/FailedStatusContent.d.ts +1 -2
- package/lib/components/CreditCardForm/PendingStatusContent.d.ts +1 -2
- package/lib/components/CreditCardForm/ReworkStatusContent.d.ts +1 -2
- package/lib/components/CreditCardForm/SuccessStatusContent.d.ts +1 -2
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.js +2 -4
- package/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/lib/components/CreditCardForm/getFourthStepData.js +3 -1
- package/lib/components/CreditCardForm/getFourthStepData.js.map +1 -1
- package/lib/components/CreditCardForm/getSixthStepData.d.ts +5 -0
- package/lib/components/CreditCardForm/getSixthStepData.js +6 -0
- package/lib/components/CreditCardForm/getSixthStepData.js.map +1 -1
- package/lib/components/CreditCardForm/getThirdStepData.js +3 -1
- package/lib/components/CreditCardForm/getThirdStepData.js.map +1 -1
- package/lib/components/CreditCardForm/renderInfo.d.ts +1 -1
- package/lib/components/CreditCardForm/renderInputs.d.ts +1 -1
- package/lib/components/CreditCardForm/renderStep.d.ts +1 -1
- package/lib/components/CreditCardForm/useCreditCardFormAPI.js +0 -1
- package/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/lib/components/CreditForm/CreditForm.fixture.d.ts +1 -2
- package/lib/components/CreditForm/CreditFormStatusTracker.d.ts +1 -2
- package/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
- package/lib/components/CreditForm/CreditFormStep.d.ts +2 -2
- package/lib/components/CreditForm/CreditFormStep.js.map +1 -1
- package/lib/components/CreditForm/FailedStatusContent.d.ts +1 -2
- package/lib/components/CreditForm/PendingStatusContent.d.ts +1 -2
- package/lib/components/CreditForm/ReworkStatusContent.d.ts +1 -2
- package/lib/components/CreditForm/SuccessStatusContent.d.ts +1 -2
- package/lib/components/CreditForm/getCreditFormTaskData.js +0 -3
- package/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -1
- package/lib/components/CreditForm/getSecondStepData.js +3 -1
- package/lib/components/CreditForm/getSecondStepData.js.map +1 -1
- package/lib/components/CreditForm/getThirdStepData.js +3 -1
- package/lib/components/CreditForm/getThirdStepData.js.map +1 -1
- package/lib/components/CreditForm/renderInfo.d.ts +1 -1
- package/lib/components/CreditForm/renderInputs.d.ts +1 -1
- package/lib/components/CreditForm/renderStep.d.ts +1 -1
- package/lib/components/DepositFiltration/DepositFiltration.fixture.d.ts +2 -3
- package/lib/components/DepositFiltration/DepositFiltration.fixture.mobile.d.ts +2 -3
- package/lib/components/Depository/Depository.fixture.d.ts +1 -2
- package/lib/components/Depository/Depository.fixture.mobile.d.ts +1 -2
- package/lib/components/Depository/DepositoryItem.d.ts +1 -1
- package/lib/components/Depository/DepositoryItem.js +3 -2
- package/lib/components/Depository/DepositoryItem.js.map +1 -1
- package/lib/components/ErrorBlock/ErrorBlock.fixture.d.ts +2 -3
- package/lib/components/ErrorBlock/ErrorBlock.fixture.mobile.d.ts +2 -3
- package/lib/components/ExchangeRateTile/ExchangeRateTile.fixture.d.ts +1 -2
- package/lib/components/ExchangeRateTile/ExchangeRateTile.fixture.mobile.d.ts +1 -2
- package/lib/components/ExchangeRateTile/renderInput.d.ts +1 -2
- package/lib/components/Footer/Footer.fixture.d.ts +2 -3
- package/lib/components/Footer/Footer.fixture.mobile.d.ts +2 -3
- package/lib/components/Footer/renderLogoSearchBar.d.ts +1 -2
- package/lib/components/GracePeriod/GracePeriod.fixture.d.ts +1 -2
- package/lib/components/GrantSupport/GrantSupport.fixture.d.ts +1 -2
- package/lib/components/GrantSupport/GrantSupport.fixture.mobile.d.ts +1 -2
- package/lib/components/Header/Header.fixture.d.ts +3 -4
- package/lib/components/Header/Header.fixture.mobile.d.ts +2 -3
- package/lib/components/Headline/Headline.fixture.d.ts +14 -15
- package/lib/components/Headline/Headline.fixture.mobile.d.ts +15 -16
- package/lib/components/HorizontalLayout/HorizontalLayout.fixture.d.ts +5 -6
- package/lib/components/HorizontalLayout/HorizontalLayout.fixture.mobile.d.ts +1 -2
- package/lib/components/ImgBlock/ImgBlock.fixture.d.ts +1 -2
- package/lib/components/ImgBlock/ImgBlock.fixture.mobile.d.ts +1 -2
- package/lib/components/InsuranceAmountBlock/InsuranceAmountBlock.fixture.d.ts +1 -2
- package/lib/components/InvestmentInfo/InvestmentInfo.fixture.d.ts +1 -2
- package/lib/components/LinkDocs/LinkDocs.fixture.d.ts +4 -5
- package/lib/components/LinkDocs/LinkDocs.fixture.mobile.d.ts +1 -2
- package/lib/components/LinkDocs/renderDefaultItem.d.ts +2 -2
- package/lib/components/MobileAppTile/MobileAppTile.fixture.d.ts +4 -5
- package/lib/components/MobileAppTile/MobileAppTile.fixture.mobile.d.ts +2 -3
- package/lib/components/MortgageFiltration/MortgageFiltration.fixture.d.ts +2 -3
- package/lib/components/MortgageFiltration/MortgageFiltration.fixture.mobile.d.ts +2 -3
- package/lib/components/OfficesAtmsMap/OfficesAtmsMap.fixture.d.ts +2 -3
- package/lib/components/OfficesAtmsMap/OfficesAtmsMap.fixture.mobile.d.ts +2 -3
- package/lib/components/OfficesAtmsMap/getScheduleDescription.d.ts +1 -1
- package/lib/components/OfficesAtmsMap/renderAtmCard.d.ts +1 -1
- package/lib/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +2 -2
- package/lib/components/OfficesAtmsMap/renderButtonsGroup.d.ts +1 -1
- package/lib/components/OfficesAtmsMap/renderCurrency.d.ts +1 -1
- package/lib/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +1 -1
- package/lib/components/OfficesAtmsMap/renderDay.d.ts +1 -1
- package/lib/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +1 -1
- package/lib/components/OfficesAtmsMap/renderFiltrationForm.d.ts +2 -2
- package/lib/components/OfficesAtmsMap/renderHeading.d.ts +1 -1
- package/lib/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -1
- package/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.d.ts +1 -1
- package/lib/components/Placeholder/Placeholder.fixture.d.ts +1 -2
- package/lib/components/Placeholder/Placeholder.fixture.mobile.d.ts +1 -2
- package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +14 -15
- package/lib/components/ProductBlock/ProductBlock.fixture.mobile.d.ts +6 -7
- package/lib/components/ProductBlock/renderBackwardButton.d.ts +1 -2
- package/lib/components/ProductGallery/ProductGallery.fixture.d.ts +2 -3
- package/lib/components/ProductGallery/ProductGallery.fixture.mobile.d.ts +2 -3
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.d.ts +1 -2
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.mobile.d.ts +1 -2
- package/lib/components/RichTextBlock/RichTextBlock.fixture.d.ts +3 -4
- package/lib/components/RichTextBlock/RichTextBlock.fixture.mobile.d.ts +3 -4
- package/lib/components/RollupItem/RollupItem.fixture.d.ts +3 -4
- package/lib/components/RollupItem/RollupItem.fixture.mobile.d.ts +2 -3
- package/lib/components/RollupItem/renderRoundedIcon.mobile.d.ts +1 -1
- package/lib/components/SafeDepositRental/RadioButtons.d.ts +1 -2
- package/lib/components/SafeDepositRental/SafeDepositRental.fixture.d.ts +1 -2
- package/lib/components/SafeDepositRental/SafeDepositRental.fixture.mobile.d.ts +1 -2
- package/lib/components/StepsBlock/StepsBlock.fixture.d.ts +10 -11
- package/lib/components/StepsBlock/StepsBlock.fixture.mobile.d.ts +9 -10
- package/lib/components/StepsBlock/renderStepMobile.d.ts +1 -1
- package/lib/components/StickyBottomMenu/StickyBottomMenu.fixture.d.ts +1 -2
- package/lib/components/StickyBottomMenu/StickyBottomMenu.fixture.mobile.d.ts +1 -2
- package/lib/components/TabsLayout/TabsLayout.fixture.d.ts +7 -8
- package/lib/components/TabsLayout/TabsLayout.fixture.mobile.d.ts +5 -6
- package/lib/components/TabsLayout/renderTabsLayout.d.ts +1 -1
- package/lib/components/TariffsTable/EmbeddableCellData.d.ts +5 -5
- package/lib/components/TariffsTable/TariffsTable.fixture.d.ts +4 -5
- package/lib/components/TariffsTable/TariffsTable.fixture.mobile.d.ts +2 -3
- package/lib/components/TextBlock/TextBlock.fixture.d.ts +3 -4
- package/lib/components/TextBlock/TextBlock.fixture.mobile.d.ts +5 -6
- package/lib/components/UnitBlock/UnitBlock.fixture.d.ts +2 -3
- package/lib/components/UnitBlock/UnitBlock.fixture.mobile.d.ts +2 -3
- package/lib/components/VerticalLayout/VerticalLayout.fixture.d.ts +10 -11
- package/lib/components/VerticalLayout/VerticalLayout.fixture.mobile.d.ts +3 -4
- package/lib/components/Video/Video.fixture.d.ts +4 -5
- package/lib/cosmos.decorator.d.ts +1 -2
- package/lib/hooks/useElementSpace.d.ts +0 -1
- package/lib/model/ColumnCount.d.ts +5 -0
- package/lib/model/ColumnCount.js +2 -0
- package/lib/model/ColumnCount.js.map +1 -0
- package/lib/model/InputSectionsType.d.ts +3 -2
- package/lib/setup-fixture.js.map +1 -1
- package/lib/ui-kit/Badge/Badge.fixture.d.ts +1 -2
- package/lib/ui-kit/BaseFiltration/renderCarouselBlocks.d.ts +1 -1
- package/lib/ui-kit/BaseFiltration/renderGridBlocks.d.ts +1 -1
- package/lib/ui-kit/BaseTile/renderImageContainer.d.ts +1 -1
- package/lib/ui-kit/BenefitItem/renderBenefitDescription.d.ts +1 -1
- package/lib/ui-kit/BenefitItem/renderBenefitIcon.d.ts +1 -1
- package/lib/ui-kit/BenefitItem/renderBenefitLabel.d.ts +1 -1
- package/lib/ui-kit/BenefitItem/renderBenefitText.d.ts +1 -1
- package/lib/ui-kit/BenefitsList/BenefitsList.fixture.d.ts +3 -4
- package/lib/ui-kit/Button/Button.fixture.d.ts +2 -3
- package/lib/ui-kit/Calculator/renderBinaryRadioButtonGroup.d.ts +1 -1
- package/lib/ui-kit/Calculator/renderDaysInput.d.ts +1 -1
- package/lib/ui-kit/Calculator/renderFootnote.d.ts +1 -1
- package/lib/ui-kit/Calculator/renderMonthsInput.d.ts +1 -1
- package/lib/ui-kit/Calculator/renderPaymentType.d.ts +1 -1
- package/lib/ui-kit/Calculator/renderPayout.d.ts +1 -1
- package/lib/ui-kit/Calculator/renderRate.d.ts +1 -1
- package/lib/ui-kit/Calculator/renderWantedSumInput.d.ts +1 -1
- package/lib/ui-kit/CaptchaDialog/CaptchaDialog.fixture.d.ts +1 -2
- package/lib/ui-kit/Checkbox/CheckboxWithDoc.js +2 -2
- package/lib/ui-kit/Checkbox/CheckboxWithDoc.js.map +1 -1
- package/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.fixture.d.ts +1 -2
- package/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +1 -1
- package/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
- package/lib/ui-kit/DatePicker/renderDatePickerForm.d.ts +1 -1
- package/lib/ui-kit/DialogManager/DialogManager.d.ts +1 -2
- package/lib/ui-kit/DialogManager/openDocument.d.ts +8 -1
- package/lib/ui-kit/DialogManager/openDocument.js +4 -3
- package/lib/ui-kit/DialogManager/openDocument.js.map +1 -1
- package/lib/ui-kit/EsiaLoginDialog/EsiaLoginDialog.fixture.d.ts +1 -2
- package/lib/ui-kit/Foldable/DefaultFoldButton.d.ts +1 -1
- package/lib/ui-kit/FormField/Fields/BankEmployeeCodeField.js +1 -1
- package/lib/ui-kit/FormField/Fields/BankEmployeeCodeField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/ChildrenField.js +1 -1
- package/lib/ui-kit/FormField/Fields/ChildrenField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/CollectionCountField.js +1 -1
- package/lib/ui-kit/FormField/Fields/CollectionCountField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/DependentsField.js +1 -1
- package/lib/ui-kit/FormField/Fields/DependentsField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/DulNumberField.js +1 -1
- package/lib/ui-kit/FormField/Fields/DulNumberField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/DulSerieField.js +1 -1
- package/lib/ui-kit/FormField/Fields/DulSerieField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +1 -1
- package/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/ExpensesField.js +1 -1
- package/lib/ui-kit/FormField/Fields/ExpensesField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/InnField.js +1 -1
- package/lib/ui-kit/FormField/Fields/InnField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/JobsNumberField.js +1 -1
- package/lib/ui-kit/FormField/Fields/JobsNumberField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.js +1 -1
- package/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/OtherIncomeField.js +1 -1
- package/lib/ui-kit/FormField/Fields/OtherIncomeField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/PartInBusinessField.js +1 -1
- package/lib/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/RetirementIncomeField.js +1 -1
- package/lib/ui-kit/FormField/Fields/RetirementIncomeField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/TotalIncomeField.js +1 -1
- package/lib/ui-kit/FormField/Fields/TotalIncomeField.js.map +1 -1
- package/lib/ui-kit/FormField/Fields/WagesField.js +1 -1
- package/lib/ui-kit/FormField/Fields/WagesField.js.map +1 -1
- package/lib/ui-kit/FormField/getField.d.ts +1 -1
- package/lib/ui-kit/FormField/getField.js +1 -1
- package/lib/ui-kit/FormField/getField.js.map +1 -1
- package/lib/ui-kit/FormField/inputColumnStyle.d.ts +2 -2
- package/lib/ui-kit/FormField/inputColumnStyle.js.map +1 -1
- package/lib/ui-kit/FormField/renderTitle.d.ts +1 -1
- package/lib/ui-kit/HeaderItem/HeaderItem.fixture.d.ts +2 -3
- package/lib/ui-kit/HeaderItem/HeaderItem.fixture.mobile.d.ts +2 -3
- package/lib/ui-kit/Heading/Heading.fixture.d.ts +1 -2
- package/lib/ui-kit/Icon/Icon.fixture.d.ts +4 -5
- package/lib/ui-kit/InfoCard/InfoCard.fixture.d.ts +1 -2
- package/lib/ui-kit/InnerTable/InnerTable.fixture.d.ts +1 -2
- package/lib/ui-kit/InnerTable/InnerTable.fixture.mobile.d.ts +1 -2
- package/lib/ui-kit/InnerTable/InnerTableButton.fixture.mobile.d.ts +1 -2
- package/lib/ui-kit/InnerTable/renderInnerTableRow.d.ts +1 -1
- package/lib/ui-kit/Input/InputControl.js +6 -2
- package/lib/ui-kit/Input/InputControl.js.map +1 -1
- package/lib/ui-kit/Input/InputProps.d.ts +1 -0
- package/lib/ui-kit/Input/renderErrorText.d.ts +1 -1
- package/lib/ui-kit/Input/renderLabel.d.ts +1 -1
- package/lib/ui-kit/InputRange/renderRangeWithTicks.d.ts +1 -2
- package/lib/ui-kit/LinkButton/LinkButton.fixture.d.ts +9 -10
- package/lib/ui-kit/LinkButton/LinkButton.fixture.mobile.d.ts +9 -10
- package/lib/ui-kit/LinkButton/renderArrows.d.ts +1 -2
- package/lib/ui-kit/LinkButton/renderButtonsSection.d.ts +1 -1
- package/lib/ui-kit/Loader/Loader.fixture.d.ts +2 -3
- package/lib/ui-kit/LocationDialog/LocationDialog.fixture.d.ts +1 -2
- package/lib/ui-kit/LocationDialog/SearchBar.js.map +1 -1
- package/lib/ui-kit/LocationDialog/renderForeignOffices.d.ts +1 -1
- package/lib/ui-kit/LocationDialog/renderRegion.d.ts +1 -1
- package/lib/ui-kit/LocationDialog/renderRegionGroup.d.ts +1 -1
- package/lib/ui-kit/Logo/Logo.fixture.d.ts +1 -2
- package/lib/ui-kit/Logo/renderImage.d.ts +1 -1
- package/lib/ui-kit/NumberInput/NumberInput.fixture.d.ts +2 -3
- package/lib/ui-kit/Pagination/PageSizeSelector.d.ts +1 -1
- package/lib/ui-kit/Pagination/Pagination.d.ts +1 -1
- package/lib/ui-kit/Pagination/PaginationContainer.d.ts +1 -1
- package/lib/ui-kit/Pagination/renderPages.d.ts +1 -1
- package/lib/ui-kit/PopupManager/PopupManager.d.ts +1 -2
- package/lib/ui-kit/PriceList/PriceList.fixture.d.ts +1 -2
- package/lib/ui-kit/ProgressBar/ProgressBar.fixture.d.ts +1 -2
- package/lib/ui-kit/Radio/Radio.js.map +1 -1
- package/lib/ui-kit/RadioButtonGroup/RadioButtonGroup.fixture.d.ts +1 -2
- package/lib/ui-kit/Rating/Rating.d.ts +1 -2
- package/lib/ui-kit/Rating/Rating.fixture.d.ts +1 -2
- package/lib/ui-kit/ReportDialog/ReportDialog.fixture.d.ts +1 -2
- package/lib/ui-kit/ResponseTypeDialog/ResponseTypeDialog.fixture.d.ts +1 -2
- package/lib/ui-kit/RichText/RichText.fixture.d.ts +5 -6
- package/lib/ui-kit/Select/Select.fixture.d.ts +2 -3
- package/lib/ui-kit/SlideCheckbox/SlideCheckbox.fixture.d.ts +1 -2
- package/lib/ui-kit/SwipeListControl/SwipeListControl.fixture.d.ts +7 -8
- package/lib/ui-kit/SwipeListControl/SwipeListControl.fixture.mobile.d.ts +7 -8
- package/lib/ui-kit/SwipeListControl/renderDotButton.d.ts +1 -1
- package/lib/ui-kit/SwipeListControl/renderNavButton.d.ts +1 -1
- package/lib/ui-kit/TabsControl/TabsControl.fixture.d.ts +3 -4
- package/lib/ui-kit/TabsControl/renderTab.d.ts +1 -1
- package/lib/ui-kit/TabsControl/renderTabItemInner.d.ts +1 -1
- package/lib/ui-kit/Tags/Tags.fixture.d.ts +1 -2
- package/lib/ui-kit/TimerCircle/TimerCircle.fixture.d.ts +1 -2
- package/lib/ui-kit/TopItem/TopItem.fixture.d.ts +2 -3
- package/lib/ui-kit/VerifyPhoneDialog/InputCode.d.ts +1 -2
- package/lib/ui-kit/VerifyPhoneDialog/InputCode.js.map +1 -1
- package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.fixture.d.ts +1 -2
- package/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/lib/ui-kit/YandexMap/renderSearchField.d.ts +1 -2
- package/lib/ui-kit/YandexMap/renderSearchField.js.map +1 -1
- package/lib/ui-kit/YandexMap/renderUserGeolocation.d.ts +1 -1
- package/mobile/bundle/api/RetailAPI/updateUserTask.d.ts +1 -0
- package/mobile/bundle/bundle.umd.js +47 -37
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationForm/ApplicationFormContent.d.ts +3 -7
- package/mobile/bundle/components/ApplicationForm/renderAgreementSubmit.d.ts +1 -2
- package/mobile/bundle/components/ApplicationForm/renderContacts.d.ts +1 -2
- package/mobile/bundle/components/ApplicationForm/renderInputs.d.ts +1 -2
- package/mobile/bundle/components/ApplicationForm/renderSubmitButton.d.ts +1 -2
- package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -8
- package/mobile/bundle/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +1 -2
- package/mobile/bundle/components/ApplicationLeadForm/renderSubmitButton.d.ts +1 -2
- package/mobile/bundle/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +1 -2
- package/mobile/bundle/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +1 -2
- package/mobile/bundle/components/CalculatorDeposit/renderDepositParamsForm.d.ts +1 -2
- package/mobile/bundle/components/CalculatorDeposit/renderDepositResult.d.ts +1 -2
- package/mobile/bundle/components/CalculatorDeposit/renderPaymentType.d.ts +1 -2
- package/mobile/bundle/components/CalculatorDeposit/renderRegistrationType.d.ts +1 -2
- package/mobile/bundle/components/Carousel/renderCardHighlight.d.ts +1 -2
- package/mobile/bundle/components/ContentPage/renderContentPageHead.d.ts +1 -2
- package/mobile/bundle/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +1 -2
- package/mobile/bundle/components/CreditCardForm/FailedStatusContent.d.ts +1 -2
- package/mobile/bundle/components/CreditCardForm/PendingStatusContent.d.ts +1 -2
- package/mobile/bundle/components/CreditCardForm/ReworkStatusContent.d.ts +1 -2
- package/mobile/bundle/components/CreditCardForm/SuccessStatusContent.d.ts +1 -2
- package/mobile/bundle/components/CreditCardForm/getSixthStepData.d.ts +5 -0
- package/mobile/bundle/components/CreditCardForm/renderInfo.d.ts +1 -2
- package/mobile/bundle/components/CreditCardForm/renderInputs.d.ts +1 -2
- package/mobile/bundle/components/CreditCardForm/renderStep.d.ts +1 -2
- package/mobile/bundle/components/CreditForm/CreditFormStatusTracker.d.ts +1 -2
- package/mobile/bundle/components/CreditForm/CreditFormStep.d.ts +2 -2
- package/mobile/bundle/components/CreditForm/FailedStatusContent.d.ts +1 -2
- package/mobile/bundle/components/CreditForm/PendingStatusContent.d.ts +1 -2
- package/mobile/bundle/components/CreditForm/ReworkStatusContent.d.ts +1 -2
- package/mobile/bundle/components/CreditForm/SuccessStatusContent.d.ts +1 -2
- package/mobile/bundle/components/CreditForm/renderInfo.d.ts +1 -2
- package/mobile/bundle/components/CreditForm/renderInputs.d.ts +1 -2
- package/mobile/bundle/components/CreditForm/renderStep.d.ts +1 -2
- package/mobile/bundle/components/Depository/DepositoryItem.d.ts +1 -2
- package/mobile/bundle/components/ExchangeRateTile/renderInput.d.ts +1 -2
- package/mobile/bundle/components/LinkDocs/renderDefaultItem.d.ts +2 -3
- package/mobile/bundle/components/OfficesAtmsMap/getScheduleDescription.d.ts +1 -2
- package/mobile/bundle/components/OfficesAtmsMap/renderAtmCard.d.ts +1 -2
- package/mobile/bundle/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +2 -3
- package/mobile/bundle/components/OfficesAtmsMap/renderButtonsGroup.d.ts +1 -2
- package/mobile/bundle/components/OfficesAtmsMap/renderCurrency.d.ts +1 -2
- package/mobile/bundle/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +1 -2
- package/mobile/bundle/components/OfficesAtmsMap/renderDay.d.ts +1 -2
- package/mobile/bundle/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +1 -2
- package/mobile/bundle/components/OfficesAtmsMap/renderFiltrationForm.d.ts +2 -3
- package/mobile/bundle/components/OfficesAtmsMap/renderHeading.d.ts +1 -2
- package/mobile/bundle/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -2
- package/mobile/bundle/components/OfficesAtmsMap/renderRemoteWorkplaceCard.d.ts +1 -2
- package/mobile/bundle/components/ProductBlock/renderBackwardButton.d.ts +1 -2
- package/mobile/bundle/components/RollupItem/renderRoundedIcon.d.ts +1 -2
- package/mobile/bundle/components/SafeDepositRental/RadioButtons.d.ts +1 -2
- package/mobile/bundle/components/StepsBlock/renderStepMobile.d.ts +1 -2
- package/mobile/bundle/components/TabsLayout/renderTabsLayout.d.ts +1 -2
- package/mobile/bundle/components/TariffsTable/EmbeddableCellData.d.ts +5 -6
- package/mobile/bundle/hooks/useElementSpace.d.ts +0 -1
- package/mobile/bundle/model/ColumnCount.d.ts +5 -0
- package/mobile/bundle/model/InputSectionsType.d.ts +3 -2
- package/mobile/bundle/ui-kit/BaseFiltration/renderCarouselBlocks.d.ts +1 -2
- package/mobile/bundle/ui-kit/BaseFiltration/renderGridBlocks.d.ts +1 -2
- package/mobile/bundle/ui-kit/BaseTile/renderImageContainer.d.ts +1 -2
- package/mobile/bundle/ui-kit/BenefitItem/renderBenefitDescription.d.ts +1 -2
- package/mobile/bundle/ui-kit/BenefitItem/renderBenefitIcon.d.ts +1 -2
- package/mobile/bundle/ui-kit/BenefitItem/renderBenefitLabel.d.ts +1 -2
- package/mobile/bundle/ui-kit/BenefitItem/renderBenefitText.d.ts +1 -2
- package/mobile/bundle/ui-kit/Calculator/renderBinaryRadioButtonGroup.d.ts +1 -2
- package/mobile/bundle/ui-kit/Calculator/renderDaysInput.d.ts +1 -2
- package/mobile/bundle/ui-kit/Calculator/renderFootnote.d.ts +1 -2
- package/mobile/bundle/ui-kit/Calculator/renderMonthsInput.d.ts +1 -2
- package/mobile/bundle/ui-kit/Calculator/renderPaymentType.d.ts +1 -2
- package/mobile/bundle/ui-kit/Calculator/renderPayout.d.ts +1 -2
- package/mobile/bundle/ui-kit/Calculator/renderRate.d.ts +1 -2
- package/mobile/bundle/ui-kit/Calculator/renderWantedSumInput.d.ts +1 -2
- package/mobile/bundle/ui-kit/DatePicker/renderDatePickerForm.d.ts +1 -2
- package/mobile/bundle/ui-kit/DialogManager/DialogManager.d.ts +1 -2
- package/mobile/bundle/ui-kit/DialogManager/openDocument.d.ts +8 -1
- package/mobile/bundle/ui-kit/Foldable/DefaultFoldButton.d.ts +1 -2
- package/mobile/bundle/ui-kit/FormField/getField.d.ts +1 -2
- package/mobile/bundle/ui-kit/FormField/inputColumnStyle.d.ts +2 -2
- package/mobile/bundle/ui-kit/FormField/renderTitle.d.ts +1 -2
- package/mobile/bundle/ui-kit/InnerTable/renderInnerTableRow.d.ts +1 -2
- package/mobile/bundle/ui-kit/Input/InputProps.d.ts +1 -0
- package/mobile/bundle/ui-kit/Input/renderErrorText.d.ts +1 -2
- package/mobile/bundle/ui-kit/Input/renderLabel.d.ts +1 -2
- package/mobile/bundle/ui-kit/InputRange/renderRangeWithTicks.d.ts +1 -2
- package/mobile/bundle/ui-kit/LinkButton/renderArrows.d.ts +1 -2
- package/mobile/bundle/ui-kit/LinkButton/renderButtonsSection.d.ts +1 -2
- package/mobile/bundle/ui-kit/LocationDialog/renderForeignOffices.d.ts +1 -2
- package/mobile/bundle/ui-kit/LocationDialog/renderRegion.d.ts +1 -2
- package/mobile/bundle/ui-kit/LocationDialog/renderRegionGroup.d.ts +1 -2
- package/mobile/bundle/ui-kit/Logo/renderImage.d.ts +1 -2
- package/mobile/bundle/ui-kit/Pagination/PageSizeSelector.d.ts +1 -2
- package/mobile/bundle/ui-kit/Pagination/Pagination.d.ts +1 -2
- package/mobile/bundle/ui-kit/Pagination/PaginationContainer.d.ts +1 -2
- package/mobile/bundle/ui-kit/Pagination/renderPages.d.ts +1 -2
- package/mobile/bundle/ui-kit/PopupManager/PopupManager.d.ts +1 -2
- package/mobile/bundle/ui-kit/Rating/Rating.d.ts +1 -2
- package/mobile/bundle/ui-kit/SwipeListControl/renderDotButton.d.ts +1 -2
- package/mobile/bundle/ui-kit/SwipeListControl/renderNavButton.d.ts +1 -2
- package/mobile/bundle/ui-kit/TabsControl/renderTab.d.ts +1 -2
- package/mobile/bundle/ui-kit/TabsControl/renderTabItemInner.d.ts +1 -2
- package/mobile/bundle/ui-kit/VerifyPhoneDialog/InputCode.d.ts +1 -2
- package/mobile/bundle/ui-kit/YandexMap/renderSearchField.d.ts +1 -2
- package/mobile/bundle/ui-kit/YandexMap/renderUserGeolocation.d.ts +1 -2
- package/mobile/dist/api/RetailAPI/updateUserTask.d.ts +1 -0
- package/mobile/dist/api/RetailAPI/updateUserTask.js.map +1 -1
- package/mobile/dist/components/ApplicationForm/ApplicationFormContent.d.ts +3 -7
- package/mobile/dist/components/ApplicationForm/renderAgreementSubmit.d.ts +1 -2
- package/mobile/dist/components/ApplicationForm/renderContacts.d.ts +1 -2
- package/mobile/dist/components/ApplicationForm/renderInputs.d.ts +1 -2
- package/mobile/dist/components/ApplicationForm/renderSubmitButton.d.ts +1 -2
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -8
- package/mobile/dist/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/mobile/dist/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +1 -2
- package/mobile/dist/components/ApplicationLeadForm/renderSubmitButton.d.ts +1 -2
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +1 -2
- package/mobile/dist/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +1 -2
- package/mobile/dist/components/CalculatorDeposit/renderDepositParamsForm.d.ts +1 -2
- package/mobile/dist/components/CalculatorDeposit/renderDepositResult.d.ts +1 -2
- package/mobile/dist/components/CalculatorDeposit/renderPaymentType.d.ts +1 -2
- package/mobile/dist/components/CalculatorDeposit/renderRegistrationType.d.ts +1 -2
- package/mobile/dist/components/Carousel/renderCardHighlight.d.ts +1 -2
- package/mobile/dist/components/ContentPage/renderContentPageHead.d.ts +1 -2
- package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +1 -2
- package/mobile/dist/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/FailedStatusContent.d.ts +1 -2
- package/mobile/dist/components/CreditCardForm/PendingStatusContent.d.ts +1 -2
- package/mobile/dist/components/CreditCardForm/ReworkStatusContent.d.ts +1 -2
- package/mobile/dist/components/CreditCardForm/SuccessStatusContent.d.ts +1 -2
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js +1 -3
- package/mobile/dist/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getFourthStepData.js +3 -1
- package/mobile/dist/components/CreditCardForm/getFourthStepData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getSixthStepData.d.ts +5 -0
- package/mobile/dist/components/CreditCardForm/getSixthStepData.js +8 -1
- package/mobile/dist/components/CreditCardForm/getSixthStepData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/getThirdStepData.js +3 -1
- package/mobile/dist/components/CreditCardForm/getThirdStepData.js.map +1 -1
- package/mobile/dist/components/CreditCardForm/renderInfo.d.ts +1 -2
- package/mobile/dist/components/CreditCardForm/renderInputs.d.ts +1 -2
- package/mobile/dist/components/CreditCardForm/renderStep.d.ts +1 -2
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js +0 -1
- package/mobile/dist/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditFormStatusTracker.d.ts +1 -2
- package/mobile/dist/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
- package/mobile/dist/components/CreditForm/CreditFormStep.d.ts +2 -2
- package/mobile/dist/components/CreditForm/CreditFormStep.js.map +1 -1
- package/mobile/dist/components/CreditForm/FailedStatusContent.d.ts +1 -2
- package/mobile/dist/components/CreditForm/PendingStatusContent.d.ts +1 -2
- package/mobile/dist/components/CreditForm/ReworkStatusContent.d.ts +1 -2
- package/mobile/dist/components/CreditForm/SuccessStatusContent.d.ts +1 -2
- package/mobile/dist/components/CreditForm/getCreditFormTaskData.js +0 -3
- package/mobile/dist/components/CreditForm/getCreditFormTaskData.js.map +1 -1
- package/mobile/dist/components/CreditForm/getSecondStepData.js +3 -1
- package/mobile/dist/components/CreditForm/getSecondStepData.js.map +1 -1
- package/mobile/dist/components/CreditForm/getThirdStepData.js +3 -1
- package/mobile/dist/components/CreditForm/getThirdStepData.js.map +1 -1
- package/mobile/dist/components/CreditForm/renderInfo.d.ts +1 -2
- package/mobile/dist/components/CreditForm/renderInputs.d.ts +1 -2
- package/mobile/dist/components/CreditForm/renderStep.d.ts +1 -2
- package/mobile/dist/components/Depository/DepositoryItem.d.ts +1 -2
- package/mobile/dist/components/Depository/DepositoryItem.js +3 -3
- package/mobile/dist/components/Depository/DepositoryItem.js.map +1 -1
- package/mobile/dist/components/ExchangeRateTile/renderInput.d.ts +1 -2
- package/mobile/dist/components/LinkDocs/renderDefaultItem.d.ts +2 -3
- package/mobile/dist/components/OfficesAtmsMap/getScheduleDescription.d.ts +1 -2
- package/mobile/dist/components/OfficesAtmsMap/renderAtmCard.d.ts +1 -2
- package/mobile/dist/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +2 -3
- package/mobile/dist/components/OfficesAtmsMap/renderButtonsGroup.d.ts +1 -2
- package/mobile/dist/components/OfficesAtmsMap/renderCurrency.d.ts +1 -2
- package/mobile/dist/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +1 -2
- package/mobile/dist/components/OfficesAtmsMap/renderDay.d.ts +1 -2
- package/mobile/dist/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +1 -2
- package/mobile/dist/components/OfficesAtmsMap/renderFiltrationForm.d.ts +2 -3
- package/mobile/dist/components/OfficesAtmsMap/renderHeading.d.ts +1 -2
- package/mobile/dist/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -2
- package/mobile/dist/components/OfficesAtmsMap/renderRemoteWorkplaceCard.d.ts +1 -2
- package/mobile/dist/components/ProductBlock/renderBackwardButton.d.ts +1 -2
- package/mobile/dist/components/RollupItem/renderRoundedIcon.d.ts +1 -2
- package/mobile/dist/components/SafeDepositRental/RadioButtons.d.ts +1 -2
- package/mobile/dist/components/StepsBlock/renderStepMobile.d.ts +1 -2
- package/mobile/dist/components/TabsLayout/renderTabsLayout.d.ts +1 -2
- package/mobile/dist/components/TariffsTable/EmbeddableCellData.d.ts +5 -6
- package/mobile/dist/hooks/useElementSpace.d.ts +0 -1
- package/mobile/dist/model/ColumnCount.d.ts +5 -0
- package/mobile/dist/model/ColumnCount.js +2 -0
- package/mobile/dist/model/ColumnCount.js.map +1 -0
- package/mobile/dist/model/InputSectionsType.d.ts +3 -2
- package/mobile/dist/setup-fixture.js.map +1 -1
- package/mobile/dist/ui-kit/BaseFiltration/renderCarouselBlocks.d.ts +1 -2
- package/mobile/dist/ui-kit/BaseFiltration/renderGridBlocks.d.ts +1 -2
- package/mobile/dist/ui-kit/BaseTile/renderImageContainer.d.ts +1 -2
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitDescription.d.ts +1 -2
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitIcon.d.ts +1 -2
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitLabel.d.ts +1 -2
- package/mobile/dist/ui-kit/BenefitItem/renderBenefitText.d.ts +1 -2
- package/mobile/dist/ui-kit/Calculator/renderBinaryRadioButtonGroup.d.ts +1 -2
- package/mobile/dist/ui-kit/Calculator/renderDaysInput.d.ts +1 -2
- package/mobile/dist/ui-kit/Calculator/renderFootnote.d.ts +1 -2
- package/mobile/dist/ui-kit/Calculator/renderMonthsInput.d.ts +1 -2
- package/mobile/dist/ui-kit/Calculator/renderPaymentType.d.ts +1 -2
- package/mobile/dist/ui-kit/Calculator/renderPayout.d.ts +1 -2
- package/mobile/dist/ui-kit/Calculator/renderRate.d.ts +1 -2
- package/mobile/dist/ui-kit/Calculator/renderWantedSumInput.d.ts +1 -2
- package/mobile/dist/ui-kit/Checkbox/CheckboxWithDoc.js +2 -2
- package/mobile/dist/ui-kit/Checkbox/CheckboxWithDoc.js.map +1 -1
- package/mobile/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +1 -1
- package/mobile/dist/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
- package/mobile/dist/ui-kit/DatePicker/renderDatePickerForm.d.ts +1 -2
- package/mobile/dist/ui-kit/DialogManager/DialogManager.d.ts +1 -2
- package/mobile/dist/ui-kit/DialogManager/openDocument.d.ts +8 -1
- package/mobile/dist/ui-kit/DialogManager/openDocument.js +3 -2
- package/mobile/dist/ui-kit/DialogManager/openDocument.js.map +1 -1
- package/mobile/dist/ui-kit/Foldable/DefaultFoldButton.d.ts +1 -2
- package/mobile/dist/ui-kit/FormField/Fields/BankEmployeeCodeField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/BankEmployeeCodeField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/ChildrenField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/ChildrenField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/CollectionCountField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/CollectionCountField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/DependentsField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/DependentsField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulNumberField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulNumberField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulSerieField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulSerieField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/ExpensesField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/ExpensesField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/InnField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/InnField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/JobsNumberField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/JobsNumberField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/MandatoryPaymentsField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/OtherIncomeField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/OtherIncomeField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/PartInBusinessField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/RetirementIncomeField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/RetirementIncomeField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/TotalIncomeField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/TotalIncomeField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/WagesField.js +1 -1
- package/mobile/dist/ui-kit/FormField/Fields/WagesField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/getField.d.ts +1 -2
- package/mobile/dist/ui-kit/FormField/getField.js +1 -1
- package/mobile/dist/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/inputColumnStyle.d.ts +2 -2
- package/mobile/dist/ui-kit/FormField/inputColumnStyle.js.map +1 -1
- package/mobile/dist/ui-kit/FormField/renderTitle.d.ts +1 -2
- package/mobile/dist/ui-kit/InnerTable/renderInnerTableRow.d.ts +1 -2
- package/mobile/dist/ui-kit/Input/InputControl.js +5 -1
- package/mobile/dist/ui-kit/Input/InputControl.js.map +1 -1
- package/mobile/dist/ui-kit/Input/InputProps.d.ts +1 -0
- package/mobile/dist/ui-kit/Input/renderErrorText.d.ts +1 -2
- package/mobile/dist/ui-kit/Input/renderLabel.d.ts +1 -2
- package/mobile/dist/ui-kit/InputRange/renderRangeWithTicks.d.ts +1 -2
- package/mobile/dist/ui-kit/LinkButton/renderArrows.d.ts +1 -2
- package/mobile/dist/ui-kit/LinkButton/renderButtonsSection.d.ts +1 -2
- package/mobile/dist/ui-kit/LocationDialog/SearchBar.js.map +1 -1
- package/mobile/dist/ui-kit/LocationDialog/renderForeignOffices.d.ts +1 -2
- package/mobile/dist/ui-kit/LocationDialog/renderRegion.d.ts +1 -2
- package/mobile/dist/ui-kit/LocationDialog/renderRegionGroup.d.ts +1 -2
- package/mobile/dist/ui-kit/Logo/renderImage.d.ts +1 -2
- package/mobile/dist/ui-kit/Pagination/PageSizeSelector.d.ts +1 -2
- package/mobile/dist/ui-kit/Pagination/Pagination.d.ts +1 -2
- package/mobile/dist/ui-kit/Pagination/PaginationContainer.d.ts +1 -2
- package/mobile/dist/ui-kit/Pagination/renderPages.d.ts +1 -2
- package/mobile/dist/ui-kit/PopupManager/PopupManager.d.ts +1 -2
- package/mobile/dist/ui-kit/Radio/Radio.js.map +1 -1
- package/mobile/dist/ui-kit/Rating/Rating.d.ts +1 -2
- package/mobile/dist/ui-kit/SwipeListControl/renderDotButton.d.ts +1 -2
- package/mobile/dist/ui-kit/SwipeListControl/renderNavButton.d.ts +1 -2
- package/mobile/dist/ui-kit/TabsControl/renderTab.d.ts +1 -2
- package/mobile/dist/ui-kit/TabsControl/renderTabItemInner.d.ts +1 -2
- package/mobile/dist/ui-kit/VerifyPhoneDialog/InputCode.d.ts +1 -2
- package/mobile/dist/ui-kit/VerifyPhoneDialog/InputCode.js.map +1 -1
- package/mobile/dist/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/dist/ui-kit/YandexMap/renderSearchField.d.ts +1 -2
- package/mobile/dist/ui-kit/YandexMap/renderSearchField.js.map +1 -1
- package/mobile/dist/ui-kit/YandexMap/renderUserGeolocation.d.ts +1 -2
- package/mobile/lib/api/RetailAPI/updateUserTask.d.ts +1 -0
- package/mobile/lib/api/RetailAPI/updateUserTask.js.map +1 -1
- package/mobile/lib/components/ApplicationForm/ApplicationFormContent.d.ts +3 -7
- package/mobile/lib/components/ApplicationForm/renderAgreementSubmit.d.ts +1 -2
- package/mobile/lib/components/ApplicationForm/renderContacts.d.ts +1 -2
- package/mobile/lib/components/ApplicationForm/renderInputs.d.ts +1 -2
- package/mobile/lib/components/ApplicationForm/renderSubmitButton.d.ts +1 -2
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +2 -8
- package/mobile/lib/components/ApplicationLeadForm/getInitialFormState.d.ts +1 -1
- package/mobile/lib/components/ApplicationLeadForm/renderAgreementSubmit.d.ts +1 -2
- package/mobile/lib/components/ApplicationLeadForm/renderSubmitButton.d.ts +1 -2
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefit.d.ts +1 -2
- package/mobile/lib/components/BonusBenefitsBlock/renderBonusBenefits.d.ts +1 -2
- package/mobile/lib/components/CalculatorDeposit/renderDepositParamsForm.d.ts +1 -2
- package/mobile/lib/components/CalculatorDeposit/renderDepositResult.d.ts +1 -2
- package/mobile/lib/components/CalculatorDeposit/renderPaymentType.d.ts +1 -2
- package/mobile/lib/components/CalculatorDeposit/renderRegistrationType.d.ts +1 -2
- package/mobile/lib/components/Carousel/renderCardHighlight.d.ts +1 -2
- package/mobile/lib/components/ContentPage/renderContentPageHead.d.ts +1 -2
- package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.d.ts +1 -2
- package/mobile/lib/components/CreditCardForm/CreditCardFormStatusTracker.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/FailedStatusContent.d.ts +1 -2
- package/mobile/lib/components/CreditCardForm/PendingStatusContent.d.ts +1 -2
- package/mobile/lib/components/CreditCardForm/ReworkStatusContent.d.ts +1 -2
- package/mobile/lib/components/CreditCardForm/SuccessStatusContent.d.ts +1 -2
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js +2 -4
- package/mobile/lib/components/CreditCardForm/getCreditCardFormTaskData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getFourthStepData.js +3 -1
- package/mobile/lib/components/CreditCardForm/getFourthStepData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getSixthStepData.d.ts +5 -0
- package/mobile/lib/components/CreditCardForm/getSixthStepData.js +6 -0
- package/mobile/lib/components/CreditCardForm/getSixthStepData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/getThirdStepData.js +3 -1
- package/mobile/lib/components/CreditCardForm/getThirdStepData.js.map +1 -1
- package/mobile/lib/components/CreditCardForm/renderInfo.d.ts +1 -2
- package/mobile/lib/components/CreditCardForm/renderInputs.d.ts +1 -2
- package/mobile/lib/components/CreditCardForm/renderStep.d.ts +1 -2
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js +0 -1
- package/mobile/lib/components/CreditCardForm/useCreditCardFormAPI.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditFormStatusTracker.d.ts +1 -2
- package/mobile/lib/components/CreditForm/CreditFormStatusTracker.js.map +1 -1
- package/mobile/lib/components/CreditForm/CreditFormStep.d.ts +2 -2
- package/mobile/lib/components/CreditForm/CreditFormStep.js.map +1 -1
- package/mobile/lib/components/CreditForm/FailedStatusContent.d.ts +1 -2
- package/mobile/lib/components/CreditForm/PendingStatusContent.d.ts +1 -2
- package/mobile/lib/components/CreditForm/ReworkStatusContent.d.ts +1 -2
- package/mobile/lib/components/CreditForm/SuccessStatusContent.d.ts +1 -2
- package/mobile/lib/components/CreditForm/getCreditFormTaskData.js +0 -3
- package/mobile/lib/components/CreditForm/getCreditFormTaskData.js.map +1 -1
- package/mobile/lib/components/CreditForm/getSecondStepData.js +3 -1
- package/mobile/lib/components/CreditForm/getSecondStepData.js.map +1 -1
- package/mobile/lib/components/CreditForm/getThirdStepData.js +3 -1
- package/mobile/lib/components/CreditForm/getThirdStepData.js.map +1 -1
- package/mobile/lib/components/CreditForm/renderInfo.d.ts +1 -2
- package/mobile/lib/components/CreditForm/renderInputs.d.ts +1 -2
- package/mobile/lib/components/CreditForm/renderStep.d.ts +1 -2
- package/mobile/lib/components/Depository/DepositoryItem.d.ts +1 -2
- package/mobile/lib/components/Depository/DepositoryItem.js +3 -2
- package/mobile/lib/components/Depository/DepositoryItem.js.map +1 -1
- package/mobile/lib/components/ExchangeRateTile/renderInput.d.ts +1 -2
- package/mobile/lib/components/LinkDocs/renderDefaultItem.d.ts +2 -3
- package/mobile/lib/components/OfficesAtmsMap/getScheduleDescription.d.ts +1 -2
- package/mobile/lib/components/OfficesAtmsMap/renderAtmCard.d.ts +1 -2
- package/mobile/lib/components/OfficesAtmsMap/renderBusinessSchedule.d.ts +2 -3
- package/mobile/lib/components/OfficesAtmsMap/renderButtonsGroup.d.ts +1 -2
- package/mobile/lib/components/OfficesAtmsMap/renderCurrency.d.ts +1 -2
- package/mobile/lib/components/OfficesAtmsMap/renderCurrentDaySchedule.d.ts +1 -2
- package/mobile/lib/components/OfficesAtmsMap/renderDay.d.ts +1 -2
- package/mobile/lib/components/OfficesAtmsMap/renderDescriptionBlock.d.ts +1 -2
- package/mobile/lib/components/OfficesAtmsMap/renderFiltrationForm.d.ts +2 -3
- package/mobile/lib/components/OfficesAtmsMap/renderHeading.d.ts +1 -2
- package/mobile/lib/components/OfficesAtmsMap/renderOfficeCard.d.ts +1 -2
- package/mobile/lib/components/OfficesAtmsMap/renderRemoteWorkplaceCard.d.ts +1 -2
- package/mobile/lib/components/ProductBlock/renderBackwardButton.d.ts +1 -2
- package/mobile/lib/components/RollupItem/renderRoundedIcon.d.ts +1 -2
- package/mobile/lib/components/SafeDepositRental/RadioButtons.d.ts +1 -2
- package/mobile/lib/components/StepsBlock/renderStepMobile.d.ts +1 -2
- package/mobile/lib/components/TabsLayout/renderTabsLayout.d.ts +1 -2
- package/mobile/lib/components/TariffsTable/EmbeddableCellData.d.ts +5 -6
- package/mobile/lib/hooks/useElementSpace.d.ts +0 -1
- package/mobile/lib/model/ColumnCount.d.ts +5 -0
- package/mobile/lib/model/ColumnCount.js +2 -0
- package/mobile/lib/model/ColumnCount.js.map +1 -0
- package/mobile/lib/model/InputSectionsType.d.ts +3 -2
- package/mobile/lib/setup-fixture.js.map +1 -1
- package/mobile/lib/ui-kit/BaseFiltration/renderCarouselBlocks.d.ts +1 -2
- package/mobile/lib/ui-kit/BaseFiltration/renderGridBlocks.d.ts +1 -2
- package/mobile/lib/ui-kit/BaseTile/renderImageContainer.d.ts +1 -2
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitDescription.d.ts +1 -2
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitIcon.d.ts +1 -2
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitLabel.d.ts +1 -2
- package/mobile/lib/ui-kit/BenefitItem/renderBenefitText.d.ts +1 -2
- package/mobile/lib/ui-kit/Calculator/renderBinaryRadioButtonGroup.d.ts +1 -2
- package/mobile/lib/ui-kit/Calculator/renderDaysInput.d.ts +1 -2
- package/mobile/lib/ui-kit/Calculator/renderFootnote.d.ts +1 -2
- package/mobile/lib/ui-kit/Calculator/renderMonthsInput.d.ts +1 -2
- package/mobile/lib/ui-kit/Calculator/renderPaymentType.d.ts +1 -2
- package/mobile/lib/ui-kit/Calculator/renderPayout.d.ts +1 -2
- package/mobile/lib/ui-kit/Calculator/renderRate.d.ts +1 -2
- package/mobile/lib/ui-kit/Calculator/renderWantedSumInput.d.ts +1 -2
- package/mobile/lib/ui-kit/Checkbox/CheckboxWithDoc.js +2 -2
- package/mobile/lib/ui-kit/Checkbox/CheckboxWithDoc.js.map +1 -1
- package/mobile/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js +1 -1
- package/mobile/lib/ui-kit/ConsentBkiDialog/ConsentBkiDialog.js.map +1 -1
- package/mobile/lib/ui-kit/DatePicker/renderDatePickerForm.d.ts +1 -2
- package/mobile/lib/ui-kit/DialogManager/DialogManager.d.ts +1 -2
- package/mobile/lib/ui-kit/DialogManager/openDocument.d.ts +8 -1
- package/mobile/lib/ui-kit/DialogManager/openDocument.js +4 -3
- package/mobile/lib/ui-kit/DialogManager/openDocument.js.map +1 -1
- package/mobile/lib/ui-kit/Foldable/DefaultFoldButton.d.ts +1 -2
- package/mobile/lib/ui-kit/FormField/Fields/BankEmployeeCodeField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/BankEmployeeCodeField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/ChildrenField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/ChildrenField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/CollectionCountField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/CollectionCountField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/DependentsField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/DependentsField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulNumberField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulNumberField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulSerieField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulSerieField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/DulSubdivisionCodeField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/ExpensesField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/ExpensesField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/InnField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/InnField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/JobsNumberField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/JobsNumberField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/MandatoryPaymentsField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/OtherIncomeField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/OtherIncomeField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/PartInBusinessField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/PartInBusinessField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/RetirementIncomeField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/RetirementIncomeField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/TotalIncomeField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/TotalIncomeField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/WagesField.js +1 -1
- package/mobile/lib/ui-kit/FormField/Fields/WagesField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/getField.d.ts +1 -2
- package/mobile/lib/ui-kit/FormField/getField.js +1 -1
- package/mobile/lib/ui-kit/FormField/getField.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/inputColumnStyle.d.ts +2 -2
- package/mobile/lib/ui-kit/FormField/inputColumnStyle.js.map +1 -1
- package/mobile/lib/ui-kit/FormField/renderTitle.d.ts +1 -2
- package/mobile/lib/ui-kit/InnerTable/renderInnerTableRow.d.ts +1 -2
- package/mobile/lib/ui-kit/Input/InputControl.js +6 -2
- package/mobile/lib/ui-kit/Input/InputControl.js.map +1 -1
- package/mobile/lib/ui-kit/Input/InputProps.d.ts +1 -0
- package/mobile/lib/ui-kit/Input/renderErrorText.d.ts +1 -2
- package/mobile/lib/ui-kit/Input/renderLabel.d.ts +1 -2
- package/mobile/lib/ui-kit/InputRange/renderRangeWithTicks.d.ts +1 -2
- package/mobile/lib/ui-kit/LinkButton/renderArrows.d.ts +1 -2
- package/mobile/lib/ui-kit/LinkButton/renderButtonsSection.d.ts +1 -2
- package/mobile/lib/ui-kit/LocationDialog/SearchBar.js.map +1 -1
- package/mobile/lib/ui-kit/LocationDialog/renderForeignOffices.d.ts +1 -2
- package/mobile/lib/ui-kit/LocationDialog/renderRegion.d.ts +1 -2
- package/mobile/lib/ui-kit/LocationDialog/renderRegionGroup.d.ts +1 -2
- package/mobile/lib/ui-kit/Logo/renderImage.d.ts +1 -2
- package/mobile/lib/ui-kit/Pagination/PageSizeSelector.d.ts +1 -2
- package/mobile/lib/ui-kit/Pagination/Pagination.d.ts +1 -2
- package/mobile/lib/ui-kit/Pagination/PaginationContainer.d.ts +1 -2
- package/mobile/lib/ui-kit/Pagination/renderPages.d.ts +1 -2
- package/mobile/lib/ui-kit/PopupManager/PopupManager.d.ts +1 -2
- package/mobile/lib/ui-kit/Radio/Radio.js.map +1 -1
- package/mobile/lib/ui-kit/Rating/Rating.d.ts +1 -2
- package/mobile/lib/ui-kit/SwipeListControl/renderDotButton.d.ts +1 -2
- package/mobile/lib/ui-kit/SwipeListControl/renderNavButton.d.ts +1 -2
- package/mobile/lib/ui-kit/TabsControl/renderTab.d.ts +1 -2
- package/mobile/lib/ui-kit/TabsControl/renderTabItemInner.d.ts +1 -2
- package/mobile/lib/ui-kit/VerifyPhoneDialog/InputCode.d.ts +1 -2
- package/mobile/lib/ui-kit/VerifyPhoneDialog/InputCode.js.map +1 -1
- package/mobile/lib/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.js.map +1 -1
- package/mobile/lib/ui-kit/YandexMap/renderSearchField.d.ts +1 -2
- package/mobile/lib/ui-kit/YandexMap/renderSearchField.js.map +1 -1
- package/mobile/lib/ui-kit/YandexMap/renderUserGeolocation.d.ts +1 -2
- package/mobile/src/api/RetailAPI/updateUserTask.ts +1 -0
- package/mobile/src/components/ApplicationForm/ApplicationFormContent.ts +4 -8
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +2 -27
- package/mobile/src/components/ApplicationLeadForm/getInitialFormState.tsx +1 -1
- package/mobile/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +2 -1
- package/mobile/src/components/CreditCardForm/getCreditCardFormTaskData.ts +2 -4
- package/mobile/src/components/CreditCardForm/getFourthStepData.ts +4 -0
- package/mobile/src/components/CreditCardForm/getSixthStepData.ts +8 -0
- package/mobile/src/components/CreditCardForm/getThirdStepData.tsx +3 -0
- package/mobile/src/components/CreditCardForm/useCreditCardFormAPI.tsx +1 -1
- package/mobile/src/components/CreditForm/CreditFormStatusTracker.tsx +2 -1
- package/mobile/src/components/CreditForm/CreditFormStep.tsx +2 -1
- package/mobile/src/components/CreditForm/getCreditFormTaskData.ts +0 -3
- package/mobile/src/components/CreditForm/getSecondStepData.tsx +3 -0
- package/mobile/src/components/CreditForm/getThirdStepData.ts +4 -0
- package/mobile/src/components/Depository/DepositoryItem.tsx +3 -2
- package/mobile/src/model/ColumnCount.ts +5 -0
- package/mobile/src/model/InputSectionsType.ts +3 -5
- package/mobile/src/setup-fixture.ts +1 -1
- package/mobile/src/ui-kit/Checkbox/CheckboxWithDoc.tsx +2 -2
- package/mobile/src/ui-kit/ConsentBkiDialog/ConsentBkiDialog.tsx +5 -1
- package/mobile/src/ui-kit/DialogManager/openDocument.tsx +11 -5
- package/mobile/src/ui-kit/FormField/Fields/BankEmployeeCodeField.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/ChildrenField.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/CollectionCountField.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/DependentsField.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/DulNumberField.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/DulSerieField.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/DulSubdivisionCodeField.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/ExpensesField.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/InnField.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/JobsNumberField.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/MandatoryPaymentsField.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/OtherIncomeField.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/PartInBusinessField.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/RetirementIncomeField.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/TotalIncomeField.tsx +1 -1
- package/mobile/src/ui-kit/FormField/Fields/WagesField.tsx +1 -1
- package/mobile/src/ui-kit/FormField/getField.tsx +2 -1
- package/mobile/src/ui-kit/FormField/inputColumnStyle.tsx +2 -2
- package/mobile/src/ui-kit/Input/InputControl.tsx +8 -1
- package/mobile/src/ui-kit/Input/InputProps.ts +1 -0
- package/mobile/src/ui-kit/LocationDialog/SearchBar.tsx +4 -1
- package/mobile/src/ui-kit/Radio/Radio.tsx +4 -1
- package/mobile/src/ui-kit/Rating/Rating.tsx +2 -2
- package/mobile/src/ui-kit/VerifyPhoneDialog/InputCode.tsx +5 -4
- package/mobile/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +1 -1
- package/mobile/src/ui-kit/YandexMap/renderSearchField.tsx +1 -1
- package/package.json +29 -25
- package/src/api/RetailAPI/updateUserTask.ts +1 -0
- package/src/components/ApplicationForm/ApplicationFormContent.ts +4 -8
- package/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +2 -27
- package/src/components/ApplicationLeadForm/getInitialFormState.tsx +1 -1
- package/src/components/CreditCardForm/CreditCardFormStatusTracker.tsx +2 -1
- package/src/components/CreditCardForm/getCreditCardFormTaskData.ts +2 -4
- package/src/components/CreditCardForm/getFourthStepData.ts +4 -0
- package/src/components/CreditCardForm/getSixthStepData.ts +8 -0
- package/src/components/CreditCardForm/getThirdStepData.tsx +3 -0
- package/src/components/CreditCardForm/useCreditCardFormAPI.tsx +1 -1
- package/src/components/CreditForm/CreditFormStatusTracker.tsx +2 -1
- package/src/components/CreditForm/CreditFormStep.tsx +2 -1
- package/src/components/CreditForm/getCreditFormTaskData.ts +0 -3
- package/src/components/CreditForm/getSecondStepData.tsx +3 -0
- package/src/components/CreditForm/getThirdStepData.ts +4 -0
- package/src/components/Depository/DepositoryItem.tsx +3 -2
- package/src/model/ColumnCount.ts +5 -0
- package/src/model/InputSectionsType.ts +3 -5
- package/src/setup-fixture.ts +1 -1
- package/src/ui-kit/Checkbox/CheckboxWithDoc.tsx +2 -2
- package/src/ui-kit/ConsentBkiDialog/ConsentBkiDialog.tsx +5 -1
- package/src/ui-kit/DialogManager/openDocument.tsx +11 -5
- package/src/ui-kit/FormField/Fields/BankEmployeeCodeField.tsx +1 -1
- package/src/ui-kit/FormField/Fields/ChildrenField.tsx +1 -1
- package/src/ui-kit/FormField/Fields/CollectionCountField.tsx +1 -1
- package/src/ui-kit/FormField/Fields/DependentsField.tsx +1 -1
- package/src/ui-kit/FormField/Fields/DulNumberField.tsx +1 -1
- package/src/ui-kit/FormField/Fields/DulSerieField.tsx +1 -1
- package/src/ui-kit/FormField/Fields/DulSubdivisionCodeField.tsx +1 -1
- package/src/ui-kit/FormField/Fields/ExpensesField.tsx +1 -1
- package/src/ui-kit/FormField/Fields/InnField.tsx +1 -1
- package/src/ui-kit/FormField/Fields/JobsNumberField.tsx +1 -1
- package/src/ui-kit/FormField/Fields/MandatoryPaymentsField.tsx +1 -1
- package/src/ui-kit/FormField/Fields/OtherIncomeField.tsx +1 -1
- package/src/ui-kit/FormField/Fields/PartInBusinessField.tsx +1 -1
- package/src/ui-kit/FormField/Fields/RetirementIncomeField.tsx +1 -1
- package/src/ui-kit/FormField/Fields/TotalIncomeField.tsx +1 -1
- package/src/ui-kit/FormField/Fields/WagesField.tsx +1 -1
- package/src/ui-kit/FormField/getField.tsx +2 -1
- package/src/ui-kit/FormField/inputColumnStyle.tsx +2 -2
- package/src/ui-kit/Input/InputControl.tsx +8 -1
- package/src/ui-kit/Input/InputProps.ts +1 -0
- package/src/ui-kit/LocationDialog/SearchBar.tsx +4 -1
- package/src/ui-kit/Radio/Radio.tsx +4 -1
- package/src/ui-kit/Rating/Rating.tsx +2 -2
- package/src/ui-kit/VerifyPhoneDialog/InputCode.tsx +5 -4
- package/src/ui-kit/VerifyPhoneDialog/VerifyPhoneDialog.tsx +1 -1
- package/src/ui-kit/YandexMap/renderSearchField.tsx +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniMobileBlocks={})}(this,(function(e){"use strict";let t;const n=e=>(...n)=>t[e](...n),i=n("useState"),a=n("useEffect"),l=n("useCallback"),r=n("useMemo"),s=n("useRef"),o=(...e)=>globalThis._uni._jsx(...e),c=(...e)=>globalThis._uni._jsxs(...e),d=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:m(e)),t._tmpl},m=e=>{function t(t,n){const{children:i,...a}=t||{},l=n?.slots?.default,r=i||l&&l();return e(Object.assign(a,r&&{children:r}),n)}return t.inheritAttrs=!1,t},u=(...e)=>e.map((e=>h(e)?Object.entries(e).filter((([,e])=>e)).map((([e])=>e)):e)).flatMap((e=>e)).filter(Boolean).join(" "),h=e=>Boolean(e&&"object"==typeof e&&!Array.isArray(e)),p={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","":""},g=d((({className:e,version:t="primary",isTheme:n=!0,defaultPadding:i="p-xl",padding:a,block:l,tag:r="section",role:s,children:c,style:d})=>{const m=t&&n;return o(r,{className:u("@container font-sans",{group:m},p[t],a||i,e),...m?{"data-ver":t}:{},...l?.anchor?{id:l.anchor}:{},role:s,style:d,children:c})})),f=d((({className:e,size:t})=>o("figure",{className:u("m-0 mt-xl min-w-[80%]",e),children:x(t)}))),x=(e=3)=>b(100,e).map((e=>Math.floor(e))).map(y),y=(e,t)=>o("div",{style:{width:`${e||100}%`},className:"h-4 mt-xs bg-secondary-dark relative overflow-hidden animate-pulse"},String(t)),b=(e,t)=>[e].concat(t>0?b(e/1.618,t-1):[]),v={h1:"h1",h2:"h1",h3:"h2",h4:"h2",h5:"h3",h6:"h3"},N={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},w=d((({className:e="",headingType:t="h3",as:n="h3",title:i,children:a})=>{const l=v[n]||"h3";return o(l,{role:"heading",className:u("font-sans m-0",N[t],e),children:i||a})})),S=d((({children:e,...t})=>o("p",{className:u("font-sans",Object.values(t)),children:e}))),C={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-m",descriptionWeight:"font-light",descriptionStyle:"mt-xs"}},k=d((({className:e,version:t="",headlineVersion:n="XL",title:i,description:a,align:l="text-center",as:r,isEmbedded:s=!1,isTheme:d=!1,...m})=>{const h=C[n],p={marginTop:h.descriptionStyle};return c(g,{className:u({"@container-normal":s},e),defaultPadding:s?"":"p-6xl",version:t,isTheme:d,...m,children:[i?o(w,{className:u("whitespace-pre-wrap",l),...h?.title,as:r||h?.title.as,title:i}):null,a?o(S,{size:h.descriptionSize,font:h.descriptionWeight,align:l,...p,children:a}):null]})})),I=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),T=[];function B(e,t,{className:n,...i}={}){const{key:a,blockDecorator:l=I,blocksRegistry:r={},ancestors:s=T}=t,{type:c}=e;c&&c in r||console.warn(`No block with "${c}" is registered`);const d=c&&r[c];return l({blockClassName:u(e.style?.length?e.style:"col-span-12",n),block:e,ancestors:s,render:({block:n,blockClassName:l})=>{const{content:r}=n;return d?o(d,{className:l,block:e,options:t,...r,...i},a):null}},a)}const P=[],R=(e,{key:t,ancestors:n=P,slotName:i=null,extraProps:a,renderProps:l=B,...r})=>{const s=a?(e,t)=>B(e,t,a):l;return(e||[]).map(((e,a)=>s(e,{...r,key:`${t||e.type}-${a}`,ancestors:r.parent?[...n||P,[r.parent,i]]:n},a)))};function D({block:e,options:t,children:n,extraProps:i,renderProps:a}){return n||(e&&t?R(e.blocks,{...t,parent:e,extraProps:i,renderProps:a}):null)}function M(){return M._impl()}M._impl=()=>({isReady:!1,href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{},back:()=>{}}),M.setup=e=>{M._impl=e};const _=["CDN","BASE_PATH"],A=new Proxy({_:{},setup(e){this._=e}},{get(e,t){const n=e._[t]||e[t];return _.includes(t)?(e=>e&&!e.endsWith("/")?`${e}/`:e)(n):n}}),E=e=>Boolean(e?.includes(":")),z=(e,t)=>Boolean(e&&!E(e)&&(!t||"_self"===t)),F=e=>Boolean(e?.startsWith("#")),O=(...e)=>e.filter(Boolean).join("/").replace(/\/+/g,"/").replace(/^(.+):\//,"$1://").replace(/^file:/,"file:/").replace(/\/(\?|&|#[^!])/g,"$1").replace(/\?/g,"&").replace("&","?"),V=(e,t)=>!(!e||!t)&&(!!e.startsWith(t)&&["/"===t,e===t,"/"===e[t.length]].some(Boolean));var L=Object.freeze({__proto__:null,isURL:E,isLocalURL:z,isHash:F,withoutQuery:e=>(e||"").replace(/\?.*/,"").replace(/\/$/,""),joinPath:O,hasPrefix:V});const j="/api/",q=`${j}v1/storage`,$=e=>(t,n)=>{if([!t,E(t),F(t),[A.CDN,j].some((e=>V(t,e)))].some(Boolean))return t;if(((e="")=>/^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}(\/revs\/[0-9]{1,20})?$/.test(e))(t))return`${q}/${t}/attachment`;const i=t?.startsWith("/");return O(V(t,n)?"":n,i?"/":e.pathname?.split("/").slice(0,-1).join("/"),t)},U={"":"",normal:"",color:"text-primary-main",black:"text-black",white:"text-black",gray:"text-gray"},W=d((({className:e="",imageClassName:t="",name:n="",alt:i=`Иконка ${n}`,title:a=i,iconVersion:l="color",width:r,height:s})=>{const d=M(),m="normal"===l?`${n}.svg`:`sprites.svg#${n}`,h=$(d)(O(A.CDN,"/icons/",m));return"normal"===l?o("img",{className:e,src:h,alt:i,title:a,"aria-hidden":"true",width:r,height:s,style:H(e,s)}):o(K,{className:e,children:c("svg",{className:u(Y(r),U[l],{invert:"white"===l},t),width:r,height:s,"aria-hidden":"true",children:[a?o("title",{children:a}):null,i?o("desc",{children:i}):null,o("use",{href:h,xlinkHref:h})]})})})),H=(e,t)=>{return e?.includes("h-")?{}:{height:(n=t,n&&!/\D/.test(n)?`${t}px`:t),width:"auto"};var n},Y=e=>e?"":"w-full h-full",K=d((({className:e,children:t})=>e?o("div",{role:"img",className:e,children:t}):t)),G=new Proxy({_:{},setup(e){this._=e}},{get:(e,t)=>e._[t]||e[t]});function X(e=""){try{return new URL(e).pathname}catch(e){return""}}const J=e=>t=>{const n=t?.startsWith("/wcms-resources")?"":X(G.SITE_URL);return t&&!E(t)?$(e)(t,n):t},Z=(e,t)=>e?.media&&t?.media?e.media-t.media:0,Q=d((({className:e="",image:t,imageClassName:n=""})=>{const i=M();return c("picture",{className:e,children:[t?.sources?.length?t.sources.filter((e=>e?.src)).sort(Z).map((({src:e,format:n,media:a},l)=>o("source",{srcSet:J(i)(e),type:te(n),media:a?`(max-width: ${a}px)`:"",width:t?.size?.width,height:t?.size?.height},`${l}_${e}`))):null,t?.src?ee({...t,src:J(i)(t.src)},n):null]})})),ee=(e,t="")=>o("img",{src:e.src,className:u("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"},width:e?.size?.width,height:e?.size?.height}),te=e=>e?`image/${String(e)}`:void 0,ne=d((({className:e="",image:t,imageClassName:n="",...i})=>t?.src||t?.icon?t.icon?o(W,{className:e,imageClassName:n,iconVersion:t?.iconVersion,name:t.icon,...i}):o(Q,{className:e,imageClassName:n,image:t}):null)),ie={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:"text-primary-main",transparent:"",gray:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active","":""},ae="bg-main-divider text-main-disabled",le={primary:ae,secondary:ae,white:ae,link:"",transparent:"",gray:ae,"":""},re="text-center font-sans select-none",se={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:"text-primary-main",transparent:"",gray:"group-hover/btn:brightness-0 group-hover/btn:invert","":""},oe=({className:e,rounded:t,version:n})=>[re,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border h-fit",n?ie[n]:"",t?"rounded-full":"rounded-md",e].join(" "),ce=e=>ce._impl(e);ce._impl=e=>e,ce.setup=e=>{ce._impl=e};class de{watchers=new Set;subscribersMap={};subjectsStateMap={};emitter=this;observable=this;watch(e){return this.watchers.add(e),()=>{this.watchers.delete(e)}}subscribe(e,t){this.subscribersMap[e]||=new Set,this.subscribersMap[e]?.add(t);const n=this.subjectsStateMap[e];return n&&t(n),()=>{this.subscribersMap[e]?.delete(t)}}fire(e,t){e in this.subjectsStateMap?this.subject(e,t):this.fireSubscribers(e,t)}subject(e,t){return this.subjectsStateMap[e]!==t&&(this.subjectsStateMap[e]=t??void 0,this.fireSubscribers(e,t)),()=>{delete this.subjectsStateMap[e]}}fireSubscribers(e,t){for(const n of this.subscribersMap[e]??[])n(t??null);for(const n of this.watchers)n({type:e,event:t??null})}}const me=new de,ue=()=>({open:(e,t={})=>me.fire("dialog",{type:"open",dialog:e,...t}),close:()=>me.fire("dialog",{type:"close"}),closeAll:()=>me.fire("dialog",{type:"close",all:!0})});function he(){const e=X(G.SITE_URL),t=M(),{closeAll:n}=ue();return e=>{const n=$(t)(e.href);return{...e,href:n,"aria-label":e.text,onClick:ce(i({...e,href:n}))}};function i({href:i,target:a,onClick:l}){return r=>{l?.(r),pe(i,a,e)||(n(),r?.preventDefault(),t.push(((e,t="")=>e?.replace(t,"")||"/")(i,e)))}}}const pe=(e,t,n)=>{if(!z(e,t))return!0;const i=G.SUB_PORTALS?.split(",");return!!i?.some((t=>V(e,t)))||!V(e,n||"/")},ge=e=>{if(!Array.isArray(e)||!e.length)return{};try{return{"data-aspects":JSON.stringify(e)}}catch(e){return{}}},fe=d((e=>{const{text:t,aboveText:n,appendLeft:i,appendRight:a,version:l="primary"}=e,r=ye(e)&&"hidden lg:block";return c("div",{className:u(xe(e),"flex gap-xs"),children:[i?o("div",{className:u(r,se[l]),children:i}):null,ye(e)?c("div",{className:"whitespace-pre",children:[n?o("div",{className:"text-xs font-light text-left",children:n}):null,o("div",{className:"text-left "+(n?"text-s -mt-3xs":"text-l"),children:t})]}):null,a?o("div",{className:u(r,se[l]),children:a}):null]})})),xe=e=>{const{version:t,aboveText:n,rounded:i}=e;if("link"===t)return"";const a=""+(n?"py-2.5 px-9":"py-4 px-9");return u("group/btn items-center justify-center",ye(e)?a:"h-12 w-12 m-auto",{"rounded-full":i})},ye=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),be=({className:e,rounded:t,version:n})=>["inline-block",re,n?le[n]:"",t?"rounded-full":"rounded-md",e].join(" "),ve=d((({disabled:e,children:t,method:n="LINK",href:i,...a})=>{const r=(({method:e,href:t})=>l((n=>{if("POST"!==e||!t)return;n.preventDefault(),n.stopPropagation();const{origin:i,pathname:a,searchParams:l}=new URL(t||""),r=document.createElement("form");r.setAttribute("method","POST"),r.setAttribute("action",[i,a].join(""));for(const[e,t]of l.entries()){const n=document.createElement("input");n.setAttribute("type","hidden"),n.setAttribute("name",e),n.setAttribute("value",t),r.appendChild(n)}document.body.appendChild(r),r.submit()}),[]))({method:n,href:i}),s=he()({onClick:r,href:i,...a}),c=t??o(fe,{...s});return o(e?we:Ne,{...s,children:c})})),Ne=d((({className:e="",href:t,rel:n,target:i,ariaLabel:a,version:l,rounded:r,onClick:s,type:c,data:d,children:m,text:u})=>o("a",{className:oe({className:e,version:l,rounded:r}),href:t,rel:n,target:i,"aria-label":a||`Ссылка на ${u}`,role:t?"link":"button",onClick:s,type:c,...ge(d),children:m}))),we=d((({className:e,ariaLabel:t,version:n,rounded:i,children:a})=>o("button",{type:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:be({className:e,rounded:i,version:n}),children:a})));function Se({version:e,handleClick:t,text:n="Вернуться назад",alwaysVisible:i=!1}){if(!n)return null;const a="primary"===e?"white":"black",l="primary"===e?"bg-primary-main":"bg-white";return c("div",{className:u(i?"flex":"hidden sm:flex","items-center gap-s"),children:[o("div",{className:u(oe({className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center",rounded:!0}),l),onClick:t,children:o(ne,{className:"w-4 h-4",image:{icon:"ArrowLeftIcon",iconVersion:a}})}),o(ve,{version:"link",className:"group-data-secondary:text-white",text:n,ariaLabel:n,onClick:t,type:"button"})]})}const Ce=()=>{const[e,t]=i(true);return a((()=>{const e=globalThis.matchMedia?.("(max-width: 1024px)"),n=()=>{t(Boolean(e?.matches))};return e?.addEventListener("change",n),e?.matches&&t(Boolean(e.matches)),()=>{e?.removeEventListener("change",n)}}),[]),e},ke={start:"@xl:self-start",center:"@xl:self-center",end:"@xl:self-end"},Ie=(e,{className:t,imageAlign:n})=>e?o("div",{className:u("shrink-1/2 justify-self-center",n&&ke[n],t),children:e}):null,Te=d((({className:e,version:t="primary",defaultPadding:n,padding:i="",title:a,buttons:r,leftImage:s,rightImage:d,imageAlign:m,insetTitle:h,isImageAlwaysOnRight:p=!1,isImageSecondary:g=!1,backwardButton:f,children:x,...y})=>{const b=Ce(),v=M(),N=l((()=>v.back()),[]),w=y.options?.page?.common?.backwardButton,S=f&&!b;return c("div",{className:u("relative flex flex-col gap-3xl overflow-hidden",i||n,e),children:[S&&Se({version:t,handleClick:N,text:w}),a?o("div",{className:"relative h-full",children:a}):null,c("div",{className:u("grow relative flex flex-col @xl:flex-row gap-3xl w-full",{"self-start @xl:w-auto":s}),children:[Ie(s,{imageAlign:m,className:"mx-auto"}),c("div",{className:u("grid gap-3xl items-center md:items-stretch",{"@xl:grid-cols-2 auto-cols-fr":d,grow:!s},"h-full","auto-rows-[max-content_1fr]"),children:[c("div",{className:"grow space-y-lg min-w-fit",children:[h,x]}),Pe(D({...y,extraProps:{className:"@container-normal"}})),Ie(d,{className:u("@xl:justify-self-end @xl:col-start-2",{[Be(p)]:r,"col-start-2 self-center":p,"hidden @xl:block":g}),imageAlign:m}),r?o("div",{className:"self-end",children:r}):null]})]})]})})),Be=e=>u(e?"row-span-2":"@xl:row-span-2"),Pe=e=>e?.length?o("div",{className:"flex items-start justify-end",children:e}):null,Re=(e,t="normal")=>e?.icon||e?.src?o("div",{className:u("sm:w-12 sm:h-12 sm:min-w-12 w-11 h-11 min-w-11 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:o(ne,{className:"w-6 h-6",image:{...e,iconVersion:e.iconVersion||t}})}):null,De=d((e=>{const{__html:t="",richVersion:n="",itemSize:i="list-m",isDotted:a=!0}=e,l=a?"":"without-dots";return t&&"<p><br></p>"!==t.replace(/<\/?[^>]+\/?>/g,"").trim()?o("div",{"data-component":"rich-text-container",children:o("div",{className:u(n,i,"md-container group-data-secondary:text-white group-data-gray:text-secondary-text",l),dangerouslySetInnerHTML:{__html:t}})}):null})),Me=(e,t)=>e?o(S,{font:"font-light",size:"text-m",color:"text-secondary-text group-data-secondary:text-white",children:e},`description-${t}`):null,_e=d((({children:e,...t})=>o("span",{className:u("font-sans",Object.values(t)),children:e}))),Ae=(e,t)=>e?o(_e,{color:"text-primary-text group-data-secondary:text-white",size:"text-h6",children:e},`label-${t}`):null,Ee=(e,t)=>["label"in e?Ae(e.label,t):null,"description"in e?o("span",{className:e.descriptionClassName,children:Me(e.description,t)},String(t)):null,"__html"in e?o(De,{...e},`rte-${t}`):null],ze=d((({className:e,benefitsVersion:t,...n})=>c("div",{className:u("flex gap-m min-w-56 items-center",e),role:"listitem",children:["icon"in n?Re(n.icon,t):null,o("div",{children:Ee(n)})]}))),Fe=d((({className:e,benefitsVersion:t="normal",benefits:n})=>n?.length?o("div",{className:u("flex gap-x-m gap-y-s flex-col",e),role:"list",children:n.map(((e,n)=>o(ze,{benefitsVersion:t,...e},String(n))))}):null)),Oe=d((({className:e,benefits:t})=>t?.length?o("div",{className:u("grid grid-cols-[max-content_1fr] auto-rows-auto items-baseline gap-x-m gap-y-xs",e),role:"list",children:t.flatMap(Ee)}):null)),Ve=d((({isTabularBenefits:e,...t})=>o(e?Oe:Fe,{...t}))),Le=e=>Boolean(e?.src||e?.icon),je=(e,{className:t,buttonClassName:n,isVertical:i}={})=>e?.length&&e.some((e=>e?.text||e?.icon?.icon))?o("div",{className:u("flex",i?"flex-col gap-xs justify-items-stretch":"flex-wrap @xl:flex-nowrap gap-lg sm:gap-m w-full @lg:w-auto",t),role:"group",children:e.map(qe(n))}):null,qe=(e="")=>(t,n)=>{const{text:i,icon:a,iconRight:l,version:r,...s}=t||{},c=$e(a,r),d=$e(l,r);return i||a?.icon?o(ve,{className:u("basis-full @lg:basis-auto",e),appendLeft:Ue({...a,iconVersion:c}),appendRight:Ue({...l,iconVersion:d}),version:r,text:i,...s},n?String(n):""):null},$e=(e,t="secondary")=>{const n="secondary"===t?"color":"white";return e?.iconVersion||n},Ue=e=>Le(e)&&o(ne,{image:e,width:String(e?.size?.width||24),height:String(24)}),We=(e=0,{fixed:t}={})=>(n=0)=>new Intl.NumberFormat("ru-RU",{minimumFractionDigits:t?e:0,maximumFractionDigits:e}).format(Number(n)||0),He=d((({priceList:e})=>e?.length?o("div",{className:"flex flex-wrap xl:flex-nowrap xl:bg-main-divider xl:rounded-md p-xs gap-xl",role:"list",children:e.map(Ye)}):null)),Ye=({label:e,amount:t,unit:n},i)=>c("div",{className:"basis-full flex flex-col-reverse sm:flex-row sm:justify-between sm:bg-main-divider sm:py-m sm:px-lg sm:rounded-md items-baseline whitespace-pre",role:"listitem",children:[o(_e,{font:"font-light",size:"text-l",color:"text-secondary-text",children:e}),t?c("span",{className:"font-sans text-h6 sm:text-primary-main text-primary-text",children:[We(2)(t)," ",n||"₽"]}):null]},String(i)),Ke=d((({className:e,tags:t})=>t?.length?o("div",{className:u("flex flex-wrap gap-xs",e),role:"list",children:t.map(Ge)}):null)),Ge=(e,t)=>o("div",{className:"p-xs border-solid border rounded-md border-gray",role:"listitem",children:o(_e,{size:"text-m",font:"font-light",children:e})},String(t)),Xe={XXL:"list-l",XL:"list-l",L:"list-m",M:"list-m",S:"list-s",XS:"list-s"},Je=d((({className:e,padding:t,defaultPadding:n,title:i,description:a,headlineVersion:l="L",align:r="text-left",benefitsVersion:s,isTabularBenefits:d,isDotted:m=!0,benefits:u,__html:h,richVersion:p,isFullWidthTitle:g,priceList:f=[],tags:x=[],buttons:y,image:b,imageOptions:{imageAlign:v="center",directionRight:N=!0,isImageAlwaysOnRight:w,isImageSecondary:S=!1}={},backwardButton:C,children:I,...T})=>{const B=b?.src?o(ne,{image:b}):null,P=o(k,{title:i,description:a,headlineVersion:l,align:r,isEmbedded:!0}),R=u?.filter((e=>"__html"in e||"label"in e||"description"in e));return o(Te,{className:e,padding:t,defaultPadding:n,...g?{title:P}:{insetTitle:P},...Ze(B,N),isImageSecondary:S,imageAlign:v,isImageAlwaysOnRight:w,buttons:je(y),backwardButton:C,...T,children:c("div",{className:"flex flex-col sm:gap-xl gap-4xl",children:[R?.length?o(Ve,{benefitsVersion:s,isTabularBenefits:d,benefits:R}):null,h?o(De,{richVersion:p,__html:h,isDotted:m,itemSize:Xe[l]}):null,I,f?.length?o(He,{priceList:f}):null,Qe(x)]})})})),Ze=(e,t)=>t?{rightImage:e}:{leftImage:e},Qe=e=>e?.length?o(Ke,{tags:e}):null;class et{_;constructor(e){this._=e}of(e){return new this.constructor(e instanceof et?e._:e)}filter(e){return this.from(this.entries().filter(e))}map(e){return this.from(this.entries().map(e))}flatMap(e){return this.from(this.entries().flatMap(e))}reduce(e,t){return this.entries().reduce(e.bind(this),t)}}const tt=()=>!0,nt=(e,t)=>(...n)=>e(...n)&&t(...n),it=(...e)=>(...t)=>{const[,n]=function(e){if(!e)throw new Error("Value should be fulfilled");return e}(e.find((([e])=>e(...t))));return n(...t)};const at=e=>Boolean(e&&Array.isArray(e)),lt=e=>Boolean(e&&"object"==typeof e&&!at(e)),rt=e=>e;function st(e){return e instanceof et?e._:e}class ot extends et{from(e){return this.of(e.map(((e=rt)=>([,t])=>e(t))(st)))}entries(){return(this._??[]).map(((e,t)=>[t,this.of(e)]))}size(){return this._?.length??0}get(e){return this.of("number"==typeof e?this._?.[e]:void 0)}set(e,t){return this.of(at(this._)?Array.from({length:Math.max(this._.length,Number(e)+1)},((n,i)=>i===e?t:this._[i])):Array.from({length:Number(e)+1},((n,i)=>i===e?t:void 0)))}}class ct extends et{from(){return this}entries(){return[]}size(){return 0}get(e){return this.of(void 0!==e?void 0:this._)}set(e,t){return this.of(t)}}class dt extends et{from(e){return this.of(Object.fromEntries(e.map((([e,t])=>[e,st(t)]))))}entries(){return Object.entries(this._??{}).map((([e,t])=>[e,this.of(t)]))}size(){return Object.keys(this._??{}).length}get(e){return this.of("string"==typeof e?this._?.[e]:void 0)}set(e,t){return this.of({...this._,[e]:t})}}class mt extends et{proto=it([e=>at(this._)||"number"==typeof e,()=>ot.prototype],[e=>lt(this._)||"string"==typeof e,()=>dt.prototype],[tt,()=>ct.prototype]);from(e){return this.proto(void 0).from.call(this,e)}entries(){return this.proto(void 0).entries.call(this)}size(){return this.proto(void 0).size.call(this)}get(e){return this.proto(e).get.call(this,e)}set(e,t){return this.proto(e).set.call(this,e,t)}}const ut=e=>e instanceof et?e:new mt(e),ht=e=>{const t=(t,...n)=>st(e(ut(t),...n));return t.fn=e,t},pt=[],gt=e=>e instanceof Function?e:t=>e===t,ft=e=>(t,n,i=pt)=>ut(t).entries().reduce(((t,[n,a])=>ft(e)(a,t,i.concat(n))),e(n,[i,ut(t)])),xt=ht(((e,[t,n])=>{const[i,...a]=t;return e.set(i,a.length?xt(e.get(i),[a,n]):n)})),yt=ht(((e,t)=>t.reduce(xt.fn,e))),bt=e=>ft(((e,[t,n])=>vt(n)?[...e,[t,st(n)]]:e))(e,[]),vt=e=>0===e.size();ht(((e,t=pt)=>t.reduce(((e,t)=>e.get(t)),e)));const Nt=ht(((e,[t,...n])=>n.length?e.set(t,Nt(e.get(t),n)):e.filter((([e])=>e!==t)))),wt=(St=["$ref"]).map(((e,t)=>n=>gt(e)(n[t+n.length-St.length]))).reduceRight(nt,tt);var St;const Ct=(e,t)=>(e=>e.includes("#")?e.substring(e.indexOf("#")+1).split("/").filter(Boolean):[])(t).reduce(kt,e),kt=it([at,(e,t)=>e[parseInt(t,10)]],[lt,(e,t)=>e[t]],[tt,rt]),It=(e,t)=>((e,t={})=>n=>yt(t,bt(n).map((t=>e(t)))))((([e,n])=>{return wt(e)?[(i=e,i.slice(0,-1)),Ct(t(n),n)]:[e,n];var i}))(e),Tt=e=>bt(e).filter(((e=rt)=>([t])=>e(t))(wt)),Bt=e=>{return t=Tt(e).map((([,e])=>e)),[...new Set(t)];var t};async function Pt(e,t){try{return e?await Rt(e,t):null}catch(e){console.error(e)}return null}const Rt=async(e,t)=>(await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}})).json(),Dt=e=>[...new Set(e)],Mt={},_t=["/portal-resources"],At=(e,t)=>It(e,(e=>t?.[e])),Et=(e,t)=>{const n=Bt(e),[l,r]=i({});return a((()=>{n.length&&(async e=>Object.fromEntries((await Promise.allSettled(Dt(e).filter((e=>!_t.some((t=>e.startsWith(t))))).map((async e=>[e,Mt[e]||=await Rt(e)])))).filter((e=>"fulfilled"===e.status)).map((({value:e})=>e))))(n).then(r)}),[n.join()]),n.length?At(e,{...t,...l}):e};function zt(e,t={}){const n=d((t=>{const n=Et((({block:e,options:t,className:n,defaultPadding:i,padding:a,isTheme:l,version:r,children:s,...o})=>o)(t),t.options?.page?.fallback);return o(e,{...t,...n})}));return Object.assign(n,t),n}const Ft=zt((({className:e,padding:t,defaultPadding:n,...i})=>o(g,{className:u("overflow-hidden flex flex-col gap-3xl box-border",e),padding:"p-0",...i,children:o(Je,{defaultPadding:n||"p-6xl",padding:t,className:"grow h-full",...i})})),{childrenTypes:["UnitBlock"]}),Ot=d((e=>{const{items:t}=e.options?.page?.adSourceBook??{},n=r((()=>Vt(0,t?.length)),[t]),i=t?.[n];return i?o(Ft,{suppressHydrationWarning:!0,...i,...e}):o(g,{...e,children:o(f,{})})})),Vt=(e=0,t=0)=>Math.floor(Math.random()*(t-e)+e),Lt=(e,t=!1)=>{if("string"==typeof e)return e.split("-").reverse().join(".");{const n=String(e.getDate()).padStart(2,"0"),i=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getFullYear());return t?`${a}-${i}-${n}`:`${n}.${i}.${a}`}},jt=e=>e?.replace(/[^+\d]/g,"");const qt=e=>e?{phone:jt(e)}:{},$t=(e,t="birthday")=>e?{[t]:Lt(e)}:{},Ut=(e,t=!0)=>({[t?"regionBranch":"region"]:e}),Wt=(e,t=!0)=>({[t?"email":"mail"]:e}),Ht=(e="")=>e&&"+7 ("!==e?{secondaryPhoneNumber:jt(e)}:{},Yt=({aspectsAttributes:e,aspects:t,ev:n})=>{for(const{aspectName:i,params:a}of e)t[i??""]?.(n,a)};function Kt(){return Kt._impl()}Kt._impl=()=>({assign:(e,t)=>{globalThis.open(e,t||"_self")},get origin(){return globalThis.location.origin},get href(){return globalThis.location.href}}),Kt.setup=e=>{Kt._impl=e};const Gt="rshb-query-params";function Xt(){const e=globalThis.location?.search||globalThis.sessionStorage?.getItem(Gt)||"";return e&&globalThis.sessionStorage?.setItem(Gt,e),e}const Jt=e=>{const t=e.target?.closest("a"),n=Kt();if(E(t?.href)&&!t?.href?.startsWith(n.origin)){e.preventDefault(),e.stopPropagation();const i=(e=>{const t=Xt();if(!E(e)||!t)return e;const n=new URL(e);for(const[e,i]of new URLSearchParams(t))n.searchParams.set(e,i);return n.toString()})(t?.href)||t?.href;i&&n.assign(i,t?.target)}};function Zt(){return Zt._impl()}Zt._impl=()=>({forwardQuery:Jt}),Zt.setup=e=>{Zt._impl=e};const Qt=e=>e,en=(e,{resetOnSubmit:t,onSubmit:n,normalize:r}={})=>{const[s,o]=i(e),c=l(r?e=>o(e instanceof Function?t=>{const n=r(e(t));return tn(t,n)?t:n}:r(e)):o,[r]);a((()=>{r&&o(r)}),[r]);const[d,m]=i(!1),[u,h]=i({}),p=l(((e,t)=>{const{parse:n=Qt,format:i=Qt}=t||{};return{value:i(s[e]),isDirty:d||u[e],onChange:t=>{c((i=>({...i,[e]:n(t)}))),h((t=>({...t,[e]:!0})))}}}),[c,d,u]),g=l((e=>{c(e),h(e)}),[]),f=l((()=>{c(e),m(!1),h({})}),[e]),x=l((e=>(e.preventDefault(),t?f():m(!0),n&&n(s,e),s)),[n,s]);return[s,{isDirty:d||Object.values(u).some(Boolean),field:p,update:g,reset:f,onSubmit:x}]},tn=(e,t)=>e&&t&&Object.keys({...e,...t}).every((n=>e[n]===t[n])),nn=d((e=>{const{className:t,title:n,children:i,...a}=e;return o(g,{className:t,defaultPadding:"p-6xl",...a,children:c("div",{className:"container max-w-[978px] space-y-lg",children:[n?o(w,{headingType:"h3",title:n,className:"@xl:text-center"}):null,i]})})})),an=e=>"OUTSERVICE"===e?"/api/v1/outservice/outserviceregions":void 0;function ln(e=!1){const[t,n]=i(e),a=l((()=>n(!0)),[]),r=l((()=>n(!1)),[]),s=l((()=>n((e=>!e))),[]);return[t,{setValue:n,setTrue:a,setFalse:r,toggle:s}]}function rn(e,t,n,i){a((()=>{if(e&&n)return e.addEventListener(t,n,i),()=>{e.removeEventListener(t,n,i)}}),[e,t,n])}function sn(e){const t=s(null),n=l((n=>{t&&t.current&&n.target instanceof Node&&!t.current.contains(n.target)&&e()}),[e]);return rn(globalThis.document,"click",n),t}const on=({label:e,errors:t})=>e&&t?`${e}*`:e,cn=()=>{},dn="border border-solid outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text rounded",mn=e=>e?o(_e,{size:"text-m",color:"text-primary-text",font:"font-light",children:e}):null,un=d((({key:e,className:t="",id:n,name:i,type:r="text",label:d,placeholder:m,value:h="",valid:p=!0,children:g,onChange:f,onFocus:x,onBlur:y,pattern:b,autoFocus:v=!1,isTextarea:N=!1,disabled:w=!1})=>{const S=s(null),C=l((e=>{const t=(e.target?.value||"").trimStart();f&&f(t)}),[f]);a((()=>{v&&S.current?.focus()}),[v,S]);const k=g?"pr-3xl":"",I=hn(p);return c("div",{className:u("relative",t),children:[c("label",{className:"space-y-xs",children:[mn(d),N?o("textarea",{className:u("block resize-y min-h-24",pn,I),id:u("textarea",n),name:i||n,placeholder:m,value:h,onChange:C,onFocus:x,onBlur:y,disabled:w},e):o("input",{type:r,className:u("h-14",pn,k,I),ref:S,id:n,name:i||n,placeholder:m,value:h,onChange:C,onFocus:x,onBlur:y,pattern:b,disabled:w},e)]}),g]})})),hn=e=>e?dn:"border-error",pn="w-full border rounded-md text-primary-text outline-none p-m",gn=e=>o("div",{className:"h-6",children:e?o(_e,{size:"text-xs",font:"font-light",color:"text-error",children:e}):null}),fn=e=>e?.value||"",xn={url:"suggest/address"},yn={name:{url:"suggest/fio",requestData:{parts:["NAME"],gender:"UNKNOWN"}},surname:{url:"suggest/fio",requestData:{parts:["SURNAME"],gender:"UNKNOWN"}},middleName:{url:"suggest/fio",requestData:{parts:["PATRONYMIC"],gender:"UNKNOWN"}},email:{url:"suggest/email"},dulSubdivisionCode:{url:"suggest/fms_unit",responseItemHandler:e=>e?.data?.code?.replace("-","")||""},dulIssuedBy:{url:"suggest/fms_unit"},organizationName:{url:"suggest/party"},inn:{url:"suggest/party",responseItemHandler:e=>e?.data?.inn||""},addressRegistration:xn,addressFact:xn,organizationAddress:xn,addressCourier:xn},bn=()=>({open:(e,t)=>me.fire("popup",{type:"open",popup:e,...t}),update:(e,t)=>me.fire("popup",{type:"update",popup:e,...t}),close:()=>me.fire("popup",{type:"close"})}),vn=d((({options:e,onChange:t})=>o("div",{className:"bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-2xl",role:"list",children:e?.map(((e,n)=>o("div",{className:"flex px-m py-s cursor-pointer hover:bg-main-divider pr-5xl relative",role:"listitem",onMouseDown:()=>t(e),children:o("span",{className:"min-h-6",children:e.processedValue})},n.toString())))})));function Nn({isOpen:e,value:t,name:n,onChange:c,onDaDataChange:d,daDataQueryPrefix:m}){const u=s(t),h=s(t),[p,g]=i([]),f=bn(),x=yn[n],y=l((()=>{h.current=t,f.close()}),[t]),b=l((e=>{y(),h.current=e.processedValue,c&&c(e.processedValue),d&&d(e)}),[y,c]),v=s(null),N=r((()=>async e=>{if(!x)return;const t=await(e=>{const{url:t,query:n,queryPrefix:i,requestData:a={},responseItemHandler:l=fn}=e,r=(s=l,e=>(e?.suggestions||[]).map((e=>{const t=s(e);return{...e,processedValue:t}})));var s;const o=`${i?`${i}, `:""}${n}`;return fetch(`/api/v1/suggestions/${t}`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({count:10,...a,query:o})}).then((e=>e.json())).then(r)})({url:x.url,responseItemHandler:x.responseItemHandler,requestData:{...x?.requestData},query:e,queryPrefix:m});t?.length&&g(t)}),[m]),w=r((()=>((e,t=600)=>{let n;const i=(...a)=>{i.dispose(),n=setTimeout((()=>{e(...a)}),t)};return i.dispose=()=>{n&&clearTimeout(n)},i})(N,300)),[N]);return a((()=>{if(!e||!v.current||h.current===t)return void y();const n=v.current,{top:i,left:a,width:l,height:r}=n.getBoundingClientRect();t&&u.current!==t&&(w(t),u.current=t),f.update(o(vn,{options:p,value:t,onChange:b}),{top:i+globalThis.scrollY+r,left:a,width:l})}),[e,p,t,b]),v}const wn=d((({className:e,label:t,value:n="",placeholder:i,error:a,errors:r,onChange:s=cn,onDaDataChange:d,onBlur:m,isTextarea:h,type:p,name:g="",daDataQueryPrefix:f,maxLength:x,dadata:y=!1,disabled:b=!1})=>{const[v,{setFalse:N,setTrue:w}]=ln(),S=sn(N),C=l((e=>{y&&!v&&w(),x?e.length<=x&&s(e):s(e)}),[y,v,s]),k=Nn({isOpen:v&&y,name:g,value:n,daDataQueryPrefix:f,onChange:s,onDaDataChange:d});return c("div",{className:u("shrink-0 w-full",e),ref:S,onBlur:N,onFocus:w,children:[o("div",{ref:k,children:o(un,{disabled:b,type:p||"text","aria-label":t,label:on({label:t,errors:r}),valid:Boolean(!a),value:n,onChange:C,onBlur:m,isTextarea:h,placeholder:Sn(i,r,t)})}),gn(a)]})})),Sn=(e,t,n)=>t&&!n?`${e}*`:e,Cn=e=>e?.text||e?.key||"",kn=(e,t)=>e?.length&&t?.trim()?e.filter((e=>e.text?.toLocaleLowerCase().includes(t?.trim().toLocaleLowerCase()))):e,In=d((({popupRef:e,options:t,value:n,query:i,onChange:a,iconVersion:l})=>t?.length?o("div",{className:"bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-2xl",role:"list",ref:e,children:kn(t,i).map((e=>c("div",{className:"flex px-m py-s cursor-pointer hover:bg-main-divider pr-5xl relative",role:"listitem","aria-selected":e.key===n?.key,onClick:t=>{t.stopPropagation(),a&&a(e)},children:[o("span",{className:"min-h-6",children:Cn(e)}),o(W,{name:"DoneSimpleIcon",width:"16",height:"16",iconVersion:l,className:u("absolute right-4 pt-3xs",{hidden:e.key!==n?.key})})]},e.key)))}):null));const Tn=d((({className:e,label:t,options:n=[],value:r,valid:d=!0,isBorder:m=!0,placeholder:h="",isSearch:p=!1,iconVersion:g="black",onChange:f,disabled:x=!1})=>{const[y,{setFalse:b,setTrue:v}]=ln(),[N,w]=i(""),S=Rn(x,n.length),C=y&&!S,k=l((()=>{w(""),b()}),[]),I=function({isOpen:e,options:t,value:n,query:i,onChange:r,onClose:c,iconVersion:d}){const m=bn(),u=l((()=>{m.close(),c&&c()}),[c]),h=l((e=>{u(),r&&r(e)}),[u,r]),p=s(null),g=sn(u);return a((()=>{if(!e||!p.current)return;const a=p.current,{top:l,left:r,width:s,height:c}=a.getBoundingClientRect();m.update(o(In,{popupRef:g,options:t,value:n,query:i,onChange:h,iconVersion:d}),{top:l+window.scrollY+c,left:r,width:s})}),[e,t,n,i,h]),p}({isOpen:y,options:n,value:r,query:N,onChange:f,onClose:k,iconVersion:g});return c("div",{className:u("space-y-xs",e),children:[mn(t),c("div",{className:u("relative",C?"z-20":"z-10"),ref:I,children:[c("div",{className:u("h-14 [&>*]:p-m pr-6 text-l flex items-center justify-between text-primary-text relative z-10 overflow-hidden",Pn(m,d,S)),onClick:C?k:v,children:[o("p",{className:"line-clamp-2 text-ellipsis",children:Cn(r)||h}),Bn(C,g)]}),p&&C?o("div",{className:u("absolute top-0 w-full z-20"),children:o(un,{type:"text",autoFocus:!0,value:N,onChange:w})}):null]})]})})),Bn=(e,t)=>o(W,{className:u("absolute right-0 flex self-center",{"rotate-180":!e}),iconVersion:t,name:"ArrowUpIcon",width:"16",height:"16"}),Pn=(e,t,n)=>u(e?"border rounded-md ":"",e&&!n?"hover:border-primary-hover":"",n?"bg-main-divider":"cursor-pointer ",t?"border-gray":"border-error"),Rn=(e,t)=>e||0===t,Dn=d((({className:e="",label:t,error:n,errors:i,...a})=>c("div",{className:e,children:[o(Tn,{...a,valid:!n,label:on({label:t,errors:i})}),gn(n)]}))),Mn=e=>!e?.length,_n=e=>t=>n=>e(n)?[]:[t],An=_n((e=>null!=e&&""!==e)),En="Некорректно заполненное поле",zn="Укажите регион, город/населенный пункт, улицу, дом",Fn=e=>An(e??En),On=e=>_n((e=>e?.key&&""!==e?.key))(e??En),Vn=e=>_n((e=>"string"==typeof e&&e.length>0&&e.length<=2))(e??En),Ln=e=>_n((e=>"string"==typeof e&&e.length>1&&Gn(e)))(e??En),jn=(e,t)=>_n((t=>"string"==typeof t&&t.length>=1&&t.length<=e))(t??En),qn=e=>_n((e=>"string"==typeof e&&6===e.length))(e),$n=e=>{return(t=/^(\+7)?[\s-]?\(?[0-9]{3}\)?[\s-]?[0-9]{3}[\s-]?[0-9]{2}[\s-]?[0-9]{2}$/,_n((e=>"string"==typeof e&&t.test(e))))(e);var t},Un=_n((e=>"boolean"==typeof e&&e))("Согласие обязательно"),Wn=e=>{const t=String(e).replace(/[^0-9]+/g,"");if(11===t.length){let e=0;for(let n=0;n<9;n++)e+=parseInt(t.charAt(n))*(9-n);return e>101&&(e%=101),100!==e&&101!==e||(e=0),e===parseInt(t.substr(9))}return!1},Hn=e=>Boolean(e.region&&e.city&&e.house),Yn=()=>_n(Hn)(zn),Kn=/^[\u0400-\u04FF\d]+$/u,Gn=(e="")=>Kn.test(e),Xn=e=>{const t=new Date,n=new Date(t.getFullYear()-23,t.getMonth(),t.getDate()),i=new Date(t.getFullYear()-75,t.getMonth(),t.getDate());return!(!e||e>n||e<i)},Jn={typeForm:Fn(),surname:Ln("Укажите свою фамилию"),name:Ln("Укажите своё имя"),middleName:Ln("Укажите своё отчество"),region:On(),addressBranch:On(),phone:$n("Укажите номер телефона"),secondaryPhone:$n("Укажите номер телефона"),organizationPhone:$n("Укажите номер телефона"),birthday:Fn("Укажите дату рождения"),limitedBirthday:_n(Xn)("Допустимый возраст заёмщика - от 23 до 75 лет"),birthPlace:Fn("Укажите место рождения"),education:Fn("Выберите ваше образование"),housing:Fn("Выберите тип жилья"),employment:Fn("Выберите информацию о трудоустройстве"),organization:Fn("Выберите тип организации"),amountWorkers:Fn("Выберите информацию о количестве сотрудников"),employerActivities:Fn("Выберите вид деятельности организации"),employerOrganization:Fn("Выберите вид организации"),positionOrganization:Fn("Выберите вашу должность"),dulSerie:(Zn="Укажите серию паспорта",_n((e=>"string"==typeof e&&4===e.length))(Zn)),dulNumber:qn("Укажите номер паспорта"),dulIssueDateField:Fn("Укажите дату выдачи паспорта"),dulSubdivisionCode:qn("Укажите код подразделения"),dulIssuedBy:Fn("Укажите организацию, выдавшую паспорт"),email:(e=>_n((e=>/^[^\s@]+@[^\s@]+\.[a-zA-Z]{2,4}$/.test(e)))(e))("Укажите электронную почту"),fullName:Ln(),inn:(e=>_n((e=>"string"==typeof e&&(10===e.length||12===e.length)))(e))("Укажите ИНН"),legalForm:Fn("Укажите ОПФ"),organizationName:Fn("Укажите наименование организации"),generalSeniority:Vn("Укажите количество лет стажа"),lastJobExperience:Vn("Укажите стаж на последнем месте работы"),experience5Years:Vn("Укажите общий стаж за последние 5 лет"),jobsNumber:Vn("Укажите количество мест работы за последние 5 лет"),beginDate:Fn("Укажите дату заключения трудового договора"),addressFact:Yn(),partnerComments:Fn(),collectionCount:Fn(),comment:Fn(),acquiringType:On(),feedbackMethod:On(),serviceType:On(),serviceDirection:On(),regionRetail:On("Выберите регион"),meetingDay:Fn(),product:Fn(),localities:Fn(),consentDataProcessing:Un,annualRevenue:Fn(),consentToReceiveMaterials:Un,processPersonalDataFlg:Un,consentProviderFlg:Un,consentPfrFlg:Un,consentOthersFlg:Un,consentInformFlg:Un,familyStatus:Fn("Выберите семейное положение"),children:jn(2,"Укажите количество детей"),familyMembers:jn(2,"Укажите количество членов семьи"),dependents:jn(2,"Укажите количество иждивенцев"),totalIncome:jn(19,"Укажите среднемесячный доход от основной зарплаты"),expenses:jn(10,"Укажите сумму обязательных выплат"),snils:(e=>_n(Wn)(e))("Некорректный номер СНИЛС"),conscription:Fn(),armyIdFlg:Un,sex:Fn("Укажите свой пол"),addressRegistration:Yn(),organizationAddress:_n((e=>Boolean(e.fiasCode&&e.city&&e.house)))(zn),participantDateRegistration:Fn("Укажите дату регистрации"),retirementIncome:Fn(),otherIncome:Fn(),wages:Fn(),mandatoryPayments:Fn(),disablePeopleFlg:Fn(),bankruptcyFlg:Fn(),shareholderFlg:Fn(),legalEntityName:Fn(),bankEmployeeCode:Fn(),partInBusiness:Fn(),addressRetail:On("Выберите адрес банка"),addressMatch:Fn(),codeWord:(e=>_n((e=>"string"==typeof e&&e.length>=3&&e.length<=21&&Gn(e)))(e??En))("Необходимо ввести кодовое слово"),confirmationIncome:Fn(),deliveryDate:Fn("Укажите дату доставки"),addressCourier:Yn()};var Zn;const Qn=e=>{const t=(e=>Object.values(e.filter((e=>e)))?.map((e=>e.name)))(e.filter((e=>Boolean(e?.required))));return Object.fromEntries(t.map((e=>[e,Jn?.[e||""]])).filter((([,e])=>e)))},ei=(e,t)=>{const{value:n,isDirty:i}=e,a=i?t(n):[];return{...e,errors:a,error:a[0]}},ti=(e,t,n=!1)=>n&&t?ei(e,t):e,ni=[{text:"Торговый эквайринг",key:"trade"},{text:"СБП-эквайринг",key:"sbp"},{text:"Интернет-эквайринг",key:"internet"},{text:"Все виды эквайринга",key:"all"}],ii=d((({field:e,input:t})=>o(Dn,{label:"Вид эквайринга",placeholder:"Выберите эквайринг",options:ni,...ti(e("acquiringType"),Jn.acquiringType,t?.required)}))),ai=(e="")=>Boolean("trade"===e||"all"===e),li=e=>null!=e,ri=new Map,si=e=>Boolean(e?.every((e=>Array.isArray(e)?si(e):!e||"string"==typeof e))),oi=e=>si(e)?e.toString():"";function ci(e,t,{fallback:n,cache:l}={}){const s=r((()=>di(e)),[e]),[o,c]=i(void 0),[d,m]=i(void 0);a((()=>{if(!s.some(li))return;let e=!1;const n=(t,n)=>{e||(c(t),m(n))};return(async()=>{try{n(await((e,t=ri)=>n=>{const i=oi(n),a=t.get(i);if(i&&li(a))return a;const l=e(...n);return i&&li(l)&&t.set(i,Promise.resolve(l)),l})(t,l)(s))}catch(e){n(void 0,e)}})(),()=>{e=!0}}),[t,l,s]);const u=n&&(e=>Boolean(e&&Array.isArray(e)&&1===e.length&&"string"==typeof e[0]))(s)&&n[s[0]];return{data:!o&&u?u:o,error:d,mutate:()=>Promise.resolve(void 0)}}function di(e){return Array.isArray(e)?e:e instanceof Function?di(e()):[e]}const mi=[];const ui=async e=>await Pt(e,{method:"GET"})||mi;function hi(e=!1){const{data:t}=ci("/api/v1"+(e?"/premiumBranchesByRegions":"/branchesByRegions"),Rt);return Array.isArray(t)?t:[]}const pi=d((({field:e,input:t,isPremium:n=!1})=>{const i=e("region"),l=i?.value?.key,r=i?.value?.text,s=n?hi(n)?.find((e=>e?.region===r))?.branches:function(e){const{data:t}=ci(e?`/api/v1/branches?regionCode=${e}`:null,ui);return t||mi}(l)?.filter((e=>e?.address));return a((()=>{""!==i?.value?.key&&e?.("addressBranch")?.onChange?.("")}),[i?.value]),o(Dn,{label:"Отделение",placeholder:"Выберите отделение",options:(s||[]).map((({address:e=""})=>({key:e,text:e}))),...ti(e("addressBranch"),Jn.addressBranch,t?.required),isSearch:!0})})),gi=d((({field:e,input:t})=>{const n="addressFact",i=e(n).value,{value:r}=e("addressMatch");a((()=>{r&&e("addressFact")?.onChange?.(e("addressRegistration").value)}),[r,e("addressRegistration").value]);const s=l((t=>{e?.(n)?.onChange?.({apartment:t?.data?.flat,city:t?.data?.city,district:t?.data?.area_with_type,fullAddress:t?.value,fiasCode:t?.data?.fias_id,house:t?.data?.house,locality:t?.data?.settlement_with_type,okatoRegionCode:t?.data?.okato,postcode:t?.data?.postal_code,region:t?.data?.region,regionCode:t?.data?.region_kladr_id?t?.data?.region_kladr_id.substring(0,2):"",street:t?.data?.house,qc:t?.data?.qc,qcComplete:t?.data?.qc_complete,qcHouse:t?.data?.qc_house})}),[]),c=l((t=>{e?.(n)?.onChange?.({...e(n).value,fullAddress:t})}),[]);return o(wn,{label:"Адрес",disabled:r,...ti(e(n),Jn[n],t?.required),value:i.fullAddress,onChange:c,...t,onDaDataChange:s})})),fi=(e,t)=>Boolean(e("esiaAccountTypeCd")?.value?.key)&&e(t).value,xi=d((({field:e,input:t})=>{const n=t?.name||"addressRegistration",i=e(n).value,a=l((t=>{e?.(n)?.onChange?.({apartment:t?.data?.flat,city:t?.data?.city,district:t?.data?.area_with_type,fullAddress:t?.value,fiasCode:t?.data?.fias_id,house:t?.data?.house,locality:t?.data?.settlement_with_type,okatoRegionCode:t?.data?.okato,postcode:t?.data?.postal_code,region:t?.data?.region,regionCode:t?.data?.region_kladr_id?t?.data?.region_kladr_id.substring(0,2):"",street:t?.data?.house,qc:t?.data?.qc,qcComplete:t?.data?.qc_complete,qcHouse:t?.data?.qc_house})}),[]),r=l((t=>{e?.(n)?.onChange?.({...e(n).value,fullAddress:t})}),[]);return o(wn,{disabled:t?.filledByEsia&&fi(e,n),label:"Адрес",...ti(e(n),Jn[n],t?.required),value:i.fullAddress,onChange:r,...t,onDaDataChange:a})})),yi=d((({className:e,viewBox:t,fill:n="none",width:i,height:a,paths:l,...r})=>o("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:n,width:i,height:a,children:l.map((({d:e,fill:t,...n},i)=>{const a={...r,...n};return o("path",{d:e,fill:t||"currentColor",stroke:a.stroke,strokeLinecap:a.strokeLinecap,strokeLinejoin:a.strokeLinejoin,strokeWidth:a.strokeWidth,strokeMiterlimit:a.strokeMiterlimit},i)}))}))),bi="appearance-none w-5 h-5 border-solid flex-none",vi=[{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"}],Ni=d((({className:e,value:t,text:n,disabled:i,isRadio:a,onChange:r})=>{const s=l((e=>{i||(e.preventDefault(),r&&r(!t))}),[r,i,t]),d=a?o("div",{className:"absolute left-1 w-3 h-3 rounded-full bg-primary-main"}):o(yi,{paths:vi,className:"absolute left-1 ml-px block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"});return o("div",{className:e,children:c("label",{className:u("flex items-center relative group/box",Si(i)),onClick:s,children:[o("div",{className:u(bi,"m-0",a?"rounded-full border-2":ki(t),!i&&t?"border-primary-main":"border-gray",i?"bg-main-disabled":"group-hover/box:border-primary-hover"),role:Ci(a),"aria-checked":Boolean(t),"aria-disabled":Boolean(i),"aria-label":n}),t?d:null,wi(n)]})})})),wi=e=>e?o("div",{className:"ml-s",children:o(_e,{size:"text-l",font:"font-light",children:e})}):null,Si=(e=!1)=>e?"cursor-not-allowed":"cursor-pointer",Ci=(e=!1)=>e?"radio":"checkbox",ki=(e=!1)=>u("rounded border",{"bg-primary-main":e}),Ii=d((({className:e,text:t,value:n,key:i,disabled:a,error:l,onChange:r})=>c("div",{className:u("shrink-0",e),children:[o(Ni,{text:t,value:n,disabled:a,onChange:r},i),gn(l)]}))),Ti=d((({field:e,input:t})=>o(Ii,{text:"Адрес фактического места жительства совпадает с адресом регистрации",...ti(e("addressMatch"),Jn.addressMatch,t?.required)}))),Bi=d((({color:e="text-primary-main",position:t="absolute",blur:n=!0})=>o("div",{className:u("flex justify-center items-center h-full w-full z-50",t,{"backdrop-blur":n}),children:o("div",{className:u("inline-block h-28 w-28","animate-spin rounded-full","border-8 border-solid border-current","border-r-transparent",e),role:"status"})}))),Pi="/icons/MapMarkerClusterIcon.svg",Ri="/icons/MapMarkerClusterYellowIcon.svg";function Di({yandexMaps:e,map:t,points:n,isLoad:i}){if(i||!n)return;if(t.geoObjects.removeAll(),!n.length)return;const a=e.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>'),l=Mi("offices",e,a);if(n.length&&n.every((e=>"type"in e))){const i=Mi("workplaces",e,a),r=_i(n.filter((e=>"workplaces"===e.type)),"workplaces",e),s=_i(n.filter((e=>"offices"===e.type)),"offices",e);l.add(s),i.add(r),t.geoObjects.add(i),t.geoObjects.add(l)}else{const i=_i(n,"offices",e);l.add(i),t.geoObjects.add(l)}t.setBounds(e.util.bounds.fromPoints(n.map((e=>e.coords)))).then((()=>{t.getZoom()>10&&t.setZoom(10)}))}const Mi=(e,t,n)=>new t.Clusterer({clusterIcons:[{href:"offices"===e?Pi:Ri,size:[78,84],offset:[-35,-50]}],clusterIconContentLayout:n,clusterHideIconOnBalloonOpen:!1,geoObjectHideIconOnBalloonOpen:!1}),_i=(e,t,n)=>e.map((({coords:e,content:i})=>new n.Placemark(e,{balloonContentHeader:i?.header,balloonContentBody:i?.body,balloonContentFooter:i?.footer,hintContent:i?.hint},{iconLayout:"default#image",iconImageHref:"offices"===t?Pi:Ri,iconImageSize:[78,84],iconImageOffset:[-35,-50]}))),Ai={focus:"focus:border-primary-text focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",font:"text-center font-sans"},Ei={...Ai,border:"border border-transparent rounded-md",position:"absolute flex items-center justify-center"},zi=(e,t,n)=>o("div",{className:`select-none cursor-pointer py-m w-12 bg-white ${Object.values(Ei).join(" ")} ${n}`,onClick:()=>{t.geolocation.get({provider:"yandex",autoReverseGeocode:!0,mapStateAutoApply:!0}).then((function(t){e.current.geoObjects.add(t.geoObjects)}))},children:o(W,{name:"UserGeoLocationIcon",width:"20",height:"16"})}),Fi=e=>globalThis[e];function Oi(e,t,n=!0){const[l,r]=i(void 0);return a((()=>{let i=!0;return((e,t)=>{const n=document.getElementById(t);if(n){const t=Fi(e);return t?Promise.resolve(t):new Promise((t=>{n.addEventListener("load",(()=>{t(Fi(e))}))}))}return new Promise(((n,i)=>{const a=document.createElement("script");a.src=t,a.async=!0,a.id=t,a.addEventListener("load",(()=>{n(Fi(e))})),a.addEventListener("error",(e=>{i(e)})),document.head.appendChild(a)}))})(e,t).then((e=>{i&&r(e)})).catch((e=>{console.error(`Failed to initialize external namespace: ${e}`)})),()=>{if(i=!1,n){const e=document.getElementById(t);e&&document.head.removeChild(e),r(void 0)}}}),[e,t,n]),l}const Vi={...Ai,border:"border-b border-b-2 border-gray last:border-0",position:"relative flex items-center justify-center"},Li=d((({yandexMaps:e,direction:t="in"})=>{const n="in"===t?"PlusIcon":"MinusIcon";return o("div",{onClick:()=>{const n=e.current.getZoom(),i="in"===t?n+1:n-1;e.current.setZoom(i,{checkZoomRange:!0})},className:`${Object.values(Vi).join(" ")} bg-white select-none cursor-pointer w-12 h-12`,children:o(W,{name:n,width:"20",height:"16"})})})),ji=[55.753995,37.614069],qi=d((({points:e,className:t="",zoom:n=5,isLoad:i,selectedAddress:l})=>{const r=s(null),d=s(null),m=Oi("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${A.YANDEX_MAP_API_KEY||""}&lang=ru_RU`,!1);if(a((()=>{r.current?Di({yandexMaps:m,map:r.current,points:e,isLoad:i}):m?.ready((()=>{r.current||(r.current=new m.Map(d.current,{center:$i(e),zoom:n,controls:[],suppressMapOpenBlock:!0})),Di({yandexMaps:m,map:r.current,points:e,isLoad:i})})),r.current&&l&&m?.geocode(l).then((e=>{const t=e.geoObjects.get(0).geometry.getCoordinates();r.current.setCenter(t),r.current.setZoom(18)}))}),[m,e,n,i,l]),!m)return null;const h="z-10";return c("div",{ref:d,className:u("relative","w-full",t),children:[i?o(Bi,{}):null,c("div",{className:u("absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md",h),children:[o(Li,{yandexMaps:r}),o(Li,{yandexMaps:r,direction:"out"})]}),zi(r,m,u("right-2 top-80",h))]})})),$i=e=>{const t=[Wi(Ui(e,0)),Wi(Ui(e,1))];return t.every((e=>e))?t:ji},Ui=(e,t)=>e.map((e=>e.coords?.[t])),Wi=e=>e.length&&e.reduce(((e,t)=>e+t))/e.length,Hi=async(e,t,n)=>{try{return(await Yi(e,t,n)).json()}catch(e){return console.error(e),null}};async function Yi(e,t,n){return globalThis?.fetch?.(`/api/v1${e}`,{method:t,headers:{"Content-Type":"application/json",...Ki()},credentials:"include",body:n?JSON.stringify(n):null})}const Ki=()=>{const e=sessionStorage.getItem("accessToken");return e?{Authorization:`Bearer ${e}`}:null},Gi=e=>Number(e.toString().replace(",",".")),Xi=d((({className:e="",isFoldButtonOnTop:t=!1,unfoldedByDefault:n=!1,renderFoldableSection:a,renderFoldButton:r})=>{const[s,o]=i(n),d=l((()=>{o((e=>!e))}),[]),m=a({isUnfolded:s,onToggle:d}),u=r?r({isUnfolded:s,onToggle:d}):null;return c("div",t?{className:e,role:"group",children:[u,m]}:{className:e,role:"group",children:[m,u]})}));const Ji=d((({className:e="",isUnfolded:t,children:n})=>{const i=s(null),l=function(e,t){const n=s(null);return a((()=>{const t=n?.current;if(!t)return;const i=new ResizeObserver((n=>{e(t,n[0])}));return i.observe(t),()=>{i.disconnect()}}),[e,...t]),n}((e=>{i.current&&(i.current.style.maxHeight=t?`${e.scrollHeight}px`:"")}),[t]);return o("div",{ref:i,className:`transition-max-h duration-300 overflow-hidden ${i.current||!t?"max-h-0":""} `,children:o("div",{className:e,ref:l,children:n})})})),Zi=d((({value:e,subText:t,children:n,isPhone:i,...a})=>{const l=(Array.isArray(e)?e:e?.split(",")??[]).filter(Boolean);return[l.length,n,t].every((e=>!e))?null:Qi({textItems:l,subText:t,children:n,isPhone:i,...a})})),Qi=({label:e,labelSize:t="text-m",textItems:n,subColor:i,subText:a,className:l,children:r,isPhone:s=!1})=>c("div",{className:u("flex gap-2xs flex-col h-full max-w-[300px]",l),children:[e?o(_e,{color:"text-secondary-text",font:"font-light",size:t,children:e}):null,r||ea(n,s),a?o(_e,{color:i,size:"text-m",children:a}):null]}),ea=(e,t)=>e.filter(Boolean).map(((e,n)=>o(_e,{size:"text-l",children:t?o("a",{href:`tel:${ta(e)}`,children:e.trim()}):e.trim()},String(n)))),ta=e=>e.replace(/\D/g,""),na=d((({className:e,children:t})=>o("div",{className:u("flex flex-col sm:flex-row sm:border-t sm:border-solid sm:border-main-divider py-xl gap-x-6xl gap-y-xl",e),children:t}))),ia=e=>{const t=la(e);return o(Zi,{label:"Режим работы",value:t,className:"max-w-none"})},aa=({workTime:e="",lunchHour:t="",daysOff:n=""},i=!1)=>e?[`${i?"Суббота":"Будние дни"}: ${e}`,t?`перерыв: ${t}`:"",n?`не работает: ${n}`:""].filter(Boolean).join("; "):"",la=e=>{const t=e.find((e=>"workingSaturday"!==e.key&&Boolean(e.status)&&Boolean(e.workTime))),n=e.find((e=>"workingSaturday"===e.key&&Boolean(e.status)&&Boolean(e.workTime))),i=e.filter((e=>!e.status)).map((e=>e.short?.toLowerCase())).join(", ");return[aa({workTime:t?.workTime,lunchHour:t?.lunchHour,daysOff:n?"":i}),aa({workTime:n?.workTime,lunchHour:n?.lunchHour,daysOff:i},!0)].filter(Boolean)},ra=[["workingMonday","Пн","Понедельник"],["workingTuesday","Вт","Вторник"],["workingWednesday","Ср","Среда"],["workingThursday","Чт","Четверг"],["workingFriday","Пт","Пятница"],["workingSaturday","Сб","Суббота"],["workingSunday","Вс","Воскресенье"]],sa=e=>ra.map((([t,n,i])=>({key:t,title:i,short:n,status:Boolean(e?.[t]),get workTime(){return"workingSaturday"===t?e?.workTimeSaturday:e?.workTime},get lunchHour(){return"workingSaturday"===t?e?.lunchHourSaturday:e?.lunchHour},get hasLunch(){return/\d+/.test(this.lunchHour??"")}}))),oa=e=>{if(!e)return null;const t=ca(e);return c(na,{className:"border-none",children:[o(Zi,{label:"Для юридических лиц",labelSize:"text-l",children:o("div",{className:"flex gap-1",children:t.map(da)})}),o(Zi,{label:"Режим работы",className:"max-w-none",children:o(_e,{children:e})})]})},ca=e=>{const t=ra.map((([,e])=>({short:e,status:!0}))),n=e.split("/")??[],i=n[n.length-1]?.toLowerCase();return i?.includes("выходной")?t.map((e=>({...e,status:!i?.includes(e.short.toLowerCase())}))):t},da=({short:e,status:t},n)=>o("div",{className:u("w-9 h-9 rounded-md flex items-center justify-center",t?"bg-green-more-light text-green-dark":"bg-error/30 text-error"),children:o(_e,{size:"text-xs",children:e})},String(n)),ma=({currency:e,buyExchangeRate:t,saleExchangeRate:n},i)=>c("div",{className:"flex gap-lg h-full",children:[e?.currency?o(Zi,{label:"Валюта",value:e.currency}):null,t?o(Zi,{label:"Купить",value:String(t)}):null,n?o(Zi,{label:"Продать",value:String(n)}):null]},String(i)),ua={yellow:{border:"border-yellow-light",text:"text-yellow"},green:{border:"border-green-more-light",text:"text-green-dark"},gray:{border:"border-gray",text:"text-secondary-text"},red:{border:"border-error/30",text:"text-error"}},ha=d((({className:e,children:t,color:n="gray"})=>c("div",{className:u("sm:p-s sm:border sm:border-green rounded-md flex items-center h-fit",ua[n].border,e),children:[o("div",{className:"block pr-m sm:pr-0 sm:hidden",children:o(ne,{image:{icon:"SmallClockIcon"},width:"24",height:"24"})}),o(_e,{size:"text-m",color:ua[n].text,children:t})]}))),pa=(new Date).getDay(),ga=e=>{const[t]=e?.slice(pa-1)??[];if(!t)return null;const{lunchHour:n,status:i,workTime:a,hasLunch:l}=t;return i?c("div",{className:"flex gap-s items-start whitespace-nowrap",children:[a?o(ha,{color:"green",children:a}):null,n&&l?o(ha,{color:"yellow",children:`перерыв: ${n}`}):null]}):o(ha,{color:"red",children:"Выходной"})},fa=({lunchHour:e,hasLunch:t=!1,status:n=!1})=>n?e&&t?`Перерыв ${e}`:e:"Не работает",xa=({title:e,status:t,workTime:n,lunchHour:i,hasLunch:a},l)=>o(Zi,{label:e,value:t&&n?n:"",subText:fa({lunchHour:i,hasLunch:a,status:t}),subColor:!t||a?"text-error":"text-green-dark"},String(l)),ya=["ArrowDownIcon","ArrowUpIcon"],ba=["Подробнее","Скрыть"],va=({isUnfolded:e,onToggle:t})=>c("button",{className:"w-full py-2xl cursor-pointer text-primary-main flex items-center border-b border-solid border-main-divider",onClick:t,type:"button",children:[o("div",{className:"pr-m",children:ba[Number(e)]}),o(W,{className:"text-primary-text",name:ya[Number(e)],width:"16",height:"16"})]}),Na=e=>`<p><b>Режим обслуживания физ.лиц:<br/></b>${e}</p>`,wa=e=>`<p><b>Режим обслуживания физ. и юр. лиц:<br/></b> ${e}</p>`,Sa=(e,t)=>`<p><b>Режим обслуживания физ.лиц:<br/></b>${e}</p> <p><b>Режим обслуживания юр.лиц:<br/></b>${t}</p>`,Ca=({name:e,address:t,phone:n,fax:i,phoneBusiness:a,phoneNatural:l,phoneCallCentre:r,phoneCurrencyControl:s,workSchedule:d,exchangeRate:m},u)=>{if(!d)return null;const h=sa(d);return c("div",{className:"bg-white col-span-12 p-3xl sm:border-green sm:border",children:[c("div",{className:"sm:flex sm:justify-between",children:[c("div",{children:[o(_e,{size:"text-h4",children:e}),t?c("div",{className:"flex pb-xl pt-xs gap-2xs",children:[o(W,{name:"GeolocationIcon",width:"24",height:"24"}),o(_e,{size:"text-l",children:t})]}):null]}),ga(h)]}),o("div",{className:"hidden sm:block",children:ka({phone:n,fax:i,phoneBusiness:a,phoneNatural:l,phoneCallCentre:r,phoneCurrencyControl:s,workSchedule:d,exchangeRate:m})}),o(Xi,{className:"block sm:hidden",renderFoldableSection:({isUnfolded:e})=>o(Ji,{isUnfolded:e,children:ka({phone:n,fax:i,phoneBusiness:a,phoneNatural:l,phoneCallCentre:r,phoneCurrencyControl:s,workSchedule:d,exchangeRate:m})}),renderFoldButton:({isUnfolded:e,onToggle:t})=>va({isUnfolded:e,onToggle:t})})]},String(u))},ka=({phone:e,fax:t,phoneBusiness:n,phoneNatural:i,phoneCallCentre:a,phoneCurrencyControl:l,workSchedule:r,exchangeRate:s})=>{const d=sa(r),m=r?.businessScheduleVisibleTag?"Для физических лиц":"Для физических и юридических лиц";return c("div",{children:[c(na,{className:"flex-wrap border-b border-solid border-main-divider",children:[o(Zi,{label:"Факс",value:t,isPhone:!0}),o(Zi,{label:"Телефон филиала",value:e,isPhone:!0}),o(Zi,{label:"Для обращений юридических лиц",value:n,isPhone:!0}),o(Zi,{label:"Обслуживание физических лиц",value:i,isPhone:!0}),o(Zi,{label:"Для консультаций по валютному контролю",value:l,isPhone:!0}),o(Zi,{label:"Контакт-центр",value:a,isPhone:!0})]}),r?.isMatchesPattern?o(na,{children:o(Zi,{label:m,labelSize:"text-l",className:"w-full max-w-none",children:o("div",{className:"flex flex-wrap gap-xs sm:justify-between pt-xs",children:d?.map(xa)})})}):c(na,{children:[o(Zi,{label:m,labelSize:"text-l",children:o("div",{className:"flex gap-1",children:d?.map(da)})}),ia(d)]}),r?.businessScheduleVisibleTag?oa(r?.businessScheduleDescription):null,s?.currencies?.length?o(na,{className:"flex-wrap",children:s?.currencies?.map(ma)}):null]})},Ia=({name:e="",address:t="",workSchedule:n})=>{const i=(a=e)?`${a?.charAt(0)?.toUpperCase()}${a?.slice(1)}`:"";var a;const l=`${t} ${(e=>{const t=sa(e),n=e?la(t):"",i=e?e.businessScheduleDescription:"";return e?e.businessScheduleVisibleTag?e.businessScheduleVisibleTag&&null===e.businessScheduleDescription?Na(n):Sa(n,i):wa(n):""})(n)}`;return{header:i,body:l}},Ta=!Boolean("object"==typeof globalThis.process&&globalThis.process&&globalThis.process.version),Ba=d((({children:e})=>Ta?e:null)),Pa={workingSaturday:!1,premiumService:!1,privateBanking:!1,remoteWorkplace:!1,serviceDisabledPeople:!1,sellingCoins:!1,buyingCoins:!1,bullionOperations:!1,preciousMetalsOperations:!1,transferringDataToBiometricSystem:!1},Ra={safeBoxCaseVolumes:"Аренда индивидуальных сейфовых ячеек",workingSaturday:"Открыты по субботам",terminalTypeAtms:"Банкоматы",terminalTypeTerm:"Терминалы",workAllTime:"Круглосуточно",billAcceptorEnable:"Прием наличных",premiumService:"Премиальное обслуживание",privateBanking:"Услуга Private banking",sellingCoins:"Продажа монет из драгоценных металлов",buyingCoins:"Покупка монет из драгоценных металлов",bullionOperations:"Операции со слитками",preciousMetalsOperations:"Операции с драгоценными металлами",transferringDataToBiometricSystem:"Передача фото и голоса в Единую биометрическую систему",locationDisabledPeople:"Для маломобильных",designDisabledPeople:"Для слабовидящих",remoteWorkplace:"Удаленное рабочее место",serviceDisabledPeople:"Для маломобильных граждан"},Da={workingSaturday:e=>Boolean("workSchedule"in e&&e.workSchedule?.workingSaturday),premiumService:e=>Boolean("premiumService"in e&&e.premiumService),privateBanking:e=>Boolean("privateBanking"in e&&e.privateBanking),remoteWorkplace:e=>Boolean("workScheduleDescription"in e),serviceDisabledPeople:e=>Boolean("serviceDisabledPeople"in e&&e.serviceDisabledPeople),sellingCoins:e=>Boolean("sellingCoins"in e&&e.sellingCoins),buyingCoins:e=>Boolean("buyingCoins"in e&&e.buyingCoins),bullionOperations:e=>Boolean("bullionOperations"in e&&e.bullionOperations),preciousMetalsOperations:e=>Boolean("preciousMetalsOperations"in e&&e.preciousMetalsOperations),transferringDataToBiometricSystem:e=>Boolean("transferringDataToBiometricSystem"in e&&e.transferringDataToBiometricSystem)};function Ma({disabled:e,onClick:t}){return n=>{!e&&t&&t(n)}}const _a={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"},Aa={primary:u("group-data-secondary:text-primary-main group-data-secondary:bg-white","group-data-secondary:hover:text-white group-data-secondary:hover:bg-primary-hover","group-data-secondary:active:bg-primary-active"),secondary:u("group-data-secondary:text-white group-data-secondary:bg-white/20","group-data-secondary:hover:bg-primary-hover","group-data-secondary:active:bg-primary-active")},Ea=d((({children:e,...t})=>{const n=e=>({...e,onClick:ce(Ma(e))}),{className:i,version:a="primary",active:l,disabled:r,type:s="button",rounded:c=!0,role:d,onClick:m}=n(t);return o("button",{className:u("font-sans px-9 py-4","flex justify-center items-center gap-xs",{"text-white bg-primary-active":l,"bg-main-gray text-main-disabled cursor-not-allowed":r,"rounded-md":c},l||r?"":u(_a[a],Aa[a]),i),type:s,role:d,onClick:m,children:e})})),za=(e,t)=>e&&"underlined"!==t?"primary":"secondary",Fa=(e,t,n)=>{const i=za("all"===t),a=za("business"===t),l=(e,t,i)=>{const a=e.currentTarget===e.target&&"business"===t?r(i):i;return n(t),a},r=e=>e.filter((e=>e.workSchedule&&e.workSchedule.businessScheduleVisibleTag&&!e.workSchedule.businessScheduleDescription));return c("div",{className:"flex gap-lg flex-col sm:flex-row pb-lg",children:[o(Ea,{"data-id":"all",onClick:t=>l(t,"all",e),version:i,children:"Для физических лиц"}),o(Ea,{"data-id":"business",onClick:t=>l(t,"business",e),version:a,children:"Для юридических лиц"})]})},Oa=({__html:e,list:t,richVersion:n})=>e||t?.length?c("div",{className:"mb-2xl border-b sm:border border-main-divider sm:rounded-md",children:[e?o("div",{className:"mb-2xl",children:o(De,{__html:e,richVersion:n})}):null,t?.length?o("div",{className:"flex flex-col sm:flex-row gap-2xl sm:flex-wrap pb-2xl sm:pb-xl",children:t.map(((e,t)=>c("div",{className:"flex gap-xs items-center",children:[e?.image?o(ne,{image:e.image}):null,e?.text?o(_e,{size:"text-m",font:"font-light",children:e.text}):null]},String(t))))}):null]}):null,Va="flex flex-col sm:flex-row sm:flex-wrap gap-3xl pb-2xl",La=({filters:e,field:{field:t,reset:n},onlyOffice:i,labels:a})=>{const l=i?5:6,r=(e||[]).map((e=>o(Ni,{text:a[e],...t(e)},e))),[s,d]=l>0?[r.slice(0,l),r.slice(l)]:[r,[]];return o("div",{children:e?.length?o("div",{children:o(Xi,{renderFoldableSection:({isUnfolded:e})=>c("div",{children:[o("div",{className:Va,children:s}),o(Ji,{className:Va,isUnfolded:e,children:d})]}),renderFoldButton:ja(n,i)})}):null})},ja=(e,t=!1)=>({isUnfolded:n,onToggle:i})=>c("div",{className:"flex space-x-lg",children:[t?o(ve,{version:"transparent",className:"text-secondary-text [&>*]:p-0",appendRight:o(W,{name:["ArrowDownIcon","ArrowUpIcon"][Number(n)],width:"16",height:"16"}),text:["Больше фильтров","Меньше фильтров"][Number(n)],onClick:i}):null,o(ve,{version:"transparent",className:"text-secondary-text [&>*]:p-0",onClick:e,children:qa()})]}),qa=()=>c("div",{className:"flex items-center",children:["Очистить фильтр",o(W,{name:"CloseIcon",width:"16",height:"16",className:"ml-2xs"})]}),$a=(e,t)=>o("div",{className:"flex flex-col sm:flex-row gap-xs mb-2xl",children:c(w,{headingType:"h3",children:[o("span",{suppressHydrationWarning:!0,children:e}),t?o(_e,{size:"text-h2",color:"text-secondary-text",children:o("span",{suppressHydrationWarning:!0,children:` (${t})`})}):null]})}),Ua=()=>{},Wa=e=>"all"===e?"block":"hidden",Ha=d((({className:e,data:t=[],isLoad:n,remoteWorkplaces:a=[],renderCard:l=Ua,renderRemoteWorkplaceCard:r=Ua,getBalloon:s=Ua,getBalloonRemoteWorkplaces:d=Ua,descriptionData:m,title:h})=>{const p=h?.includes("Офис"),[g,{field:f,reset:x}]=en(Pa),{filteredItems:y,points:b,filteredRemoteWorkplaces:v,lengthItems:N}=Xa({data:t,remoteWorkplaces:a,filtrationState:g,getBalloon:s,getBalloonRemoteWorkplaces:d}),[w,S]=i("all"),C={filters:Ka([...t,...a]),field:{field:f,reset:x},onlyOffice:p,labels:Ra};return c("div",{className:u("space-y-1",e),children:[c("div",{className:"bg-white",children:[c("div",{className:"p-3xl pb-0",children:[$a(h,N),m?Oa(m):null,p&&Fa(t,w,S),o("div",{className:u("pb-3xl",Wa(w)),children:La(C)})]}),o("div",{className:"h-[600px]",children:o(Ba,{children:o(qi,{points:b,isLoad:n,className:"h-full"})})})]}),c(Ba,{children:[y.map(l),v.map(r)]})]})})),Ya=(e,t)=>{const n=Object.keys(t).filter((e=>t[e]));return e.filter((e=>n.every((t=>Da[t](e)))))},Ka=e=>Object.keys(Pa).filter((t=>e.filter((e=>Da[t](e))).length)),Ga=()=>{},Xa=({data:e,remoteWorkplaces:t=[],filtrationState:n={},getBalloon:i=Ga,getBalloonRemoteWorkplaces:a=Ga})=>{const[l,s,o,c]=r((()=>{const l=Ya(e,n),r=Ya(t,n),s=[...l.map((e=>({type:"offices",coords:[Number(e.gpsLatitude),Number(e.gpsLongitude)]?.filter(Boolean),content:i(e)}))),...r.map((e=>({type:"workplaces",coords:[Number(e.gpsLatitude),Number(e.gpsLongitude)]?.filter(Boolean),content:a({address:e.address,workScheduleDescription:e.workScheduleDescription})})))].filter((e=>e.coords&&2===e.coords.length));return[l,s,r,l.length+r?.length]}),[e,t,n,i,a]);return{filteredItems:l,points:s,filteredRemoteWorkplaces:o,lengthItems:c}},Ja=e=>{const{data:t,error:n}=ci(`/api/v1/dictionary?dictionaryType=${encodeURIComponent(e)}`,Za);return t&&"errorMessage"in t?{error:n}:{data:t,error:n}},Za=async e=>await Pt(e,{method:"POST"})||[],Qa=d((({field:e,input:t})=>{const[n,l]=i([]),{data:r}=Ja("REGION_RF"),s=e("regionRetail")?.value||{},d=e("addressRetail");a((()=>{(async()=>{const e=await(async e=>(await Hi("/public-data/regionOffices","POST",{regionRfCd:{key:e},cashCardFlg:!0}))?.offices?.map((e=>({...e,gpsLatitude:Gi(e.latitude??ji[0]),gpsLongitude:Gi(e.longitude??ji[1])})))||[])(s?.key??"");l(e)})(),s?.key&&e?.("addressRetail")?.onChange?.("")}),[s.key]);const{points:m}=Xa({data:n,filtrationState:{},getBalloon:Ia}),u=Boolean(s?.key);return c("div",{children:[o(Dn,{label:"Адрес отделения",placeholder:"Выберите отделение",options:n.map((({id:e,address:t=""})=>({key:e?.toString()||"",text:t}))),...ti(e("addressRetail"),Jn.addressRetail,t?.required&&u),isSearch:!0}),o("div",{className:"h-[600px]",children:o(Ba,{children:o(qi,{points:m,isLoad:!r,className:"h-full",selectedAddress:d?.value?.text})})})]})})),el=(e,{normalize:t,format:n})=>{const{value:a,onFocus:r,onBlur:s,onChange:o}=e,[c,d]=i(!1),m=l((e=>{d(!0),r&&r(e)}),[]),u=l((()=>{d(!1),o&&o(t(a)),s&&s()}),[o,a]);return{value:c||!n?a:n(a),onFocus:m,onBlur:u}},tl=(e,t,n)=>Math.max(t,Math.min(e,n));function nl(e){const t=(e||"").replace(/\D/g,""),n=parseInt(t,10);return Number.isNaN(n)?0:n}function il({list:e=[],min:t,max:n,step:i,value:a=e[0]||t,disabled:l,onChange:r}){const s=e.length?e.indexOf(a):a,d={backgroundSize:`${(100*(s>t?s-t:0)/(n-t)).toFixed(2)}% 100%`};return c("div",{children:[e.length?o("div",{className:"absolute w-full flex justify-between -bottom-[3px] px-m",children:e.map(((e,t)=>o("div",{className:u("w-2 h-2 rounded-full",s<=t||l?"bg-gray":"bg-primary-main")},String(t))))}):null,o("div",{className:"absolute inset-x-0 -bottom-1 px-m leading-[18px]",children:o("input",{className:"box-border w-full m-0 cursor-pointer slider relative z-10",style:d,type:"range",min:t,max:n,step:i,value:s,disabled:l,onChange:t=>{const n=nl(t.target?.value),i=e.length?e[n]:n;r&&r(i||0)}})})]})}const al=1,ll=100,rl=d((e=>{const{className:t,title:n,items:i=[],list:a=[],min:r=(a.length?0:al),max:s=(a.length?a.length-1:ll),step:d=1,value:m=a[0]||r,disabled:h=!1,onChange:p}=e,g=el(e,{normalize:(e=0)=>a.length?sl(a)(e):tl(e,r,s),format:We()}),f=l((e=>{p&&p(nl(e.target?.value))}),[p]);return c("div",{className:t,children:[c("label",{className:"block relative",children:[n?o(_e,{size:"text-m",font:"font-light",color:"text-primary-text",children:n}):null,o("input",{className:u("text-h3 w-full h-14","pl-m mt-xs box-border","text-primary-text",dn,"disabled:border-gray disabled:bg-main-divider"),disabled:h,onChange:f,...g}),il({list:a,min:r,max:s,step:d,disabled:h,value:m,onChange:p})]}),ol(i)]})})),sl=e=>t=>e.reduce(((e,n)=>Math.abs(n-t)<Math.abs(e-t)?n:e)),ol=e=>o("div",{className:"flex justify-between my-xs",children:e.map(((e,t)=>o(_e,{size:"text-s",font:"font-light",color:"text-secondary-text",children:e},String(t))))}),cl=["От 1 000 ₽","До 1 000 000 000 ₽"],dl=d((({field:e})=>o(rl,{title:"Сумма, ₽",items:cl,min:1e3,max:1e9,...e("amount")}))),ml=zt((({field:e,source:t,label:n,fieldName:i,input:a,placeholder:l="Выберите из списка",isSearch:r=!1})=>{const s=t&&t?.map((e=>({key:e.key||"",text:e.value})))||[];return o(Dn,{placeholder:l,label:n,options:s,isSearch:r,...ti(e(i),Jn[i],a?.required)})})),ul=d((({field:e,input:t})=>{const{data:n}=Ja("EMPLOYEES_NUMBER");return o(ml,{field:e,source:n,label:"Количество работающих в организации",fieldName:"amountWorkers",input:t})})),hl=d((({field:e,input:t})=>o(wn,{label:"Годовая выручка, ₽",...ti(e("annualRevenue"),Jn.annualRevenue,t?.required)}))),pl=d((({field:e,input:t})=>o(Ii,{text:"Наличие военного билета",...ti(e("armyIdFlg"),Jn.armyIdFlg,t?.required)}))),gl=d((({field:e,input:t})=>o(wn,{label:"Код представителя Банка",placeholder:"Введите код",type:"number",...ti(e("bankEmployeeCode"),Jn.bankEmployeeCode,t?.required),...t}))),fl=d((({field:e})=>o(wn,{label:"ФИО или должность обслуживавшего Вас сотрудника Банка",...e("bankEmpolee")}))),xl=d((({field:e,input:t})=>o(Ii,{text:"В отношении меня ведётся производство по делу о банкротстве",...ti(e("bankruptcyFlg"),Jn.bankruptcyFlg,t?.required)}))),yl=({today:e,firstDayOfWeek:t,totalDays:n,currentMonth:i,currentYear:a,min:l,max:r,onDateClick:s})=>{const c=[];let d=1;for(let m=0;m<6;m++){const u=[];for(let c=0;c<7;c++)if(0===m&&c<t)u.push(o("td",{},`empty-${c}`));else if(d>n)u.push(o("td",{},`empty-${c}`));else{const t=new Date(a,i,d),n=bl(t,e),c=vl(t,l,r);u.push(o("td",{children:o("div",{className:Nl(n,c),onClick:()=>!c&&s(t),children:d})},`day-${d}`)),d++}c.push(o("tr",{children:u},`row-${m}`))}return c},bl=(e,t)=>t&&e.toDateString()===t.toDateString(),vl=(e,t,n)=>t&&e.getTime()<t.getTime()||n&&e.getTime()>n.getTime(),Nl=(e=!1,t=!1)=>u("p-s text-center rounded-md border",{"border-transparent hover:bg-gray":!e},t?"text-gray hover:bg-transparent":"cursor-pointer"),wl=["Пн","Вт","Ср","Чт","Пт","Сб","Вс"],Sl=d((({today:e,currentMonth:t,currentYear:n,min:i,max:a,onDateSelect:s=cn,setValue:d=cn})=>{const m=l((e=>{s(e),d(!1)}),[]),{firstDayOfWeek:u,totalDays:h}=r((()=>({firstDayOfWeek:new Date(n,t,1).getDay()-1,totalDays:new Date(n,t+1,0).getDate()})),[n,t]);return c("table",{className:"mx-auto",children:[o("thead",{className:"text-gray font-light",children:o("tr",{children:wl.map(((e,t)=>o("th",{className:"p-s",children:e},String(t))))})}),o("tbody",{children:yl({firstDayOfWeek:u,today:e,totalDays:h,currentYear:n,currentMonth:t,min:i,max:a,onDateClick:m})})]})})),Cl=["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"];function kl(e,t){const n=e.replace(/\D/g,"");if(""===n||e?.length===t.length)return e;const i=[...t],a=i.findIndex(Il),l=i.map(((e,t)=>Bl(e)?i.slice(0,t).filter(Bl).length:-1)),r=i.map(((e,t)=>Tl(e)?e:n.charAt(l[t])||e)),s=l.indexOf(n.length-1)+1;return r.slice(0,Math.max(a,s)).join("")}const Il=e=>"_"===e,Tl=e=>/\d/.test(e),Bl=e=>Il(e)||Tl(e),Pl=1940,Rl={name:"CalendarIcon",iconVersion:"black",width:"24",height:"24"},Dl=d((({setSelectedMonth:e,setSelectedYear:t,className:n,value:l,disabled:r,onChange:d,onClick:m})=>{const h=s(null),[p,g]=i(l||"");return a((()=>{g(l||"")}),[l]),c("div",{onClick:()=>{null!==h.current&&h.current.focus(),m?.()},className:u("relative",n),children:[o("input",{ref:h,className:"h-full w-full px-m text-l text-black focus-visible:outline-none",value:p,type:"text",onChange:e=>{const t=e.target?.value;"string"==typeof t&&t?.length<11&&g(kl(t,"__.__.____"))},onBlur:()=>{if(Ml(p)){const[n,i,a]=p.split(".");d?.(new Date(Number(a),Number(i)-1,Number(n))),e(Number(i)-1),t(Number(a))}else g(l||"")},disabled:r}),r?null:o(W,{className:"mr-s",...Rl})]})})),Ml=e=>{const[t,n,i]=e.split(".");if((e=>Number(e)>=Pl&&Number(e)<=(new Date).getFullYear())(i)&&(e=>Number(e)>0&&Number(e)<13)(n)){const e=new Date(Number(i),Number(n)-1,1);let a=0;for(;e.getMonth()===Number(n)-1;)e.setDate(e.getDate()+1),a++;if(Number(t)>0&&Number(t)<=a)return!0}return!1},_l=({handleChangeVisibleCalendar:e,value:t,valid:n,onChange:i,setSelectedMonth:a,setSelectedYear:l,disabled:r=!1})=>o(Dl,{onChange:i,disabled:r,onClick:e,value:t&&Lt(t),setSelectedMonth:a,setSelectedYear:l,className:u("flex justify-between items-center h-14 border rounded-md cursor-pointer hover:border-black active:border-black focus:border-black",n?"border-gray":"border-error")}),Al=Cl.map((e=>({key:e}))),El=Array.from({length:(new Date).getFullYear()-Pl+1},((e,t)=>Pl+t)).reverse().map((e=>({key:String(e)}))),zl=(e,t)=>{const n=new Date(e,t,1);let i=0;for(;n.getMonth()===t;)i++,n.setDate(n.getDate()+1);return i},Fl=({maxDateOfMonth:e,selectedYear:t,selectedMonth:n,value:i,onChange:a})=>{i&&a?.(new Date(t,n,Math.min(e,i.getDate())))},Ol={name:"ArrowUpIcon",iconVersion:"black",width:"24",height:"24"},Vl={className:"min-w-32",iconVersion:"black",isBorder:!1},Ll=d((({className:e="",label:t="",value:n,valid:r=!0,minDate:s,maxDate:d,disabled:m,onChange:h})=>{const[p,{setValue:g}]=ln(!1),[f,x]=i(n?.getMonth()||(new Date).getMonth()),[y,b]=i(n?.getFullYear()||(new Date).getFullYear()),{handlePrevMonth:v,handleNextMonth:N,handleSelectMonth:w,handleSelectYear:S,monthsOptions:C,yearsOptions:k,handleChangeVisibleCalendar:I,ref:T}=(({onShowCalendar:e,showCalendar:t,selectedMonth:n,onMonthSelect:i,onYearSelect:a,selectedYear:r,onChange:s,value:o})=>{const c=sn(l((()=>t&&e(!1)),[t]));return{handleChangeVisibleCalendar:l((()=>e(!t)),[t]),handleNextMonth:l((()=>{n+1<=11?i(n+1):(i(0),a(r+1))}),[n]),handlePrevMonth:l((()=>{n-1>=0?i(n-1):(i(11),a(r-1))}),[n]),handleSelectMonth:l((({key:e})=>{i(Cl.indexOf(e));const t=zl(r,Cl.indexOf(e));Fl({maxDateOfMonth:t,selectedYear:r,selectedMonth:Cl.indexOf(e),value:o,onChange:s})}),[o]),handleSelectYear:l((({key:e})=>{a(Number(e)),o&&s?.(new Date(Number(e),n,o?.getDate()))}),[o]),monthsOptions:Al,yearsOptions:El,ref:c}})({onYearSelect:b,onMonthSelect:x,onShowCalendar:g,selectedYear:y,selectedMonth:f,showCalendar:p,onChange:h,value:n}),B=((e,t)=>{const[n,l]=i(!1);return a((()=>{const n=()=>{if(e?.current){const{top:n}=e.current.getBoundingClientRect();l(n>t)}};return n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)}),[e]),n})(T,370);return c("div",{className:u("space-y-xs",e),ref:T,children:[mn(t),c("div",{className:"relative",children:[_l({handleChangeVisibleCalendar:I,value:n,valid:r,onChange:h,disabled:m,setSelectedMonth:x,setSelectedYear:b}),p&&!m?c("div",{className:u("absolute bg-white z-20 select-none",{"bottom-full":B}),children:[c("div",{className:"flex gap-s",children:[o("div",{className:"my-auto",onClick:v,children:o(W,{...Ol,className:"-rotate-90 cursor-pointer"})}),o(Tn,{onChange:w,value:{key:Cl[f]},options:C,...Vl}),o(Tn,{onChange:S,value:{key:String(y)},options:k,...Vl}),o("div",{className:"my-auto",onClick:N,children:o(W,{...Ol,className:"rotate-90 cursor-pointer"})})]}),o(Sl,{today:n,currentMonth:f,currentYear:y,onDateSelect:h,min:s,max:d,setValue:g})]}):null]})]})})),jl=d((({className:e,label:t,error:n,errors:i,...a})=>c("div",{className:u("shrink-0 w-full",e),children:[o(Ll,{label:on({label:t,errors:i}),valid:Boolean(!n),...a}),gn(n)]}))),ql=d((({field:e,input:t})=>o(jl,{label:"Дата начала работы на текущем месте",...ti(e("beginDate"),Jn.beginDate,t?.required),...t}))),$l=d((({field:e,input:t})=>o(jl,{label:"Дата рождения",...ti(e("birthday"),Jn.birthday,t?.required)}))),Ul=d((({field:e,input:t})=>o(wn,{label:"Место рождения",...ti(e("birthPlace"),Jn.birthPlace,t?.required),...t,disabled:t?.filledByEsia&&fi(e,"birthPlace")}))),Wl=d((({field:e,input:t})=>{const[n,l]=i([]),r=e("paymentSystem").value;return a((()=>{(async()=>{const e=await(async e=>{const t=await Yi("/dictionaryFiltered","POST",{type:"CARD_TYPE",presets:{paymentSystemType:e,creditProgramId:13}});return await(t?.json())})(r);l(e)})()}),[r]),o(ml,{field:e,source:n,label:"Категория карты",fieldName:"cardCategory",input:t})})),Hl=d((({field:e,input:t})=>o(wn,{label:"Количество детей до 18 лет",placeholder:"Введите значение",type:"number",...ti(e("children"),Jn.children,t?.required),...t}))),Yl=d((({field:e,input:t})=>o(wn,{label:"Кодовое слово",...ti(e("codeWord"),Jn.codeWord,t?.required),...t}))),Kl=d((({field:e,input:t})=>o(wn,{label:"Количество объектов инкассации",type:"number",...ti(e("collectionCount"),Jn.collectionCount,t?.required)}))),Gl=d((({field:e,input:t})=>o(wn,{className:"col-span-2",...ti(e("comment"),Jn.comment,t?.required),placeholder:"Ваше сообщение",isTextarea:!0}))),Xl=d((({field:e,input:t})=>{const{data:n}=Ja("INCOME_CERT_UNITED");return o(ml,{field:e,source:n,label:"Способ подтверждения дохода",fieldName:"confirmationIncome",input:t})})),Jl=d((({field:e,input:t})=>{const{data:n}=Ja("MILITARY_STATUS");return o(ml,{field:e,source:n,label:"Статус военнообязанного",fieldName:"conscription",input:t})})),Zl={processPersonalDataFlg:{text:"Согласие на обработку персональных данных",docId:4},consentInformFlg:{text:"Согласие на информирование о продуктах и услугах Банка",docId:14},consentProviderFlg:{text:"Согласие об использовании простой электронной подписи",docId:5},consentOthersFlg:{text:"Прочие согласия",docId:1},consentPfrFlg:{text:"Согласие на запрос в ПФР",docId:3},consentToReceiveMaterials:{text:"Согласен на получение информационных и аналитических материалов по электронной почте"}},Ql=async(e,t=!1)=>{const n=await(async(e,t=!1)=>{const n=await Yi(`/feedback/file?id=${encodeURIComponent(e)}&convertToPngFlg=${t}`,"GET");return n?await n.blob():new Blob})(e,t);return URL.createObjectURL(n)},er=d((({className:e,onClose:t})=>o("button",{className:u("flex justify-center items-center w-12 h-12 p-2xs bg-transparent border-none",e),onClick:t,title:"Закрыть",type:"button",children:o(W,{name:"CloseIcon",width:"20",height:"20",iconVersion:"gray"})}))),tr=d((({className:e,head:t,children:n,onClose:i,onClick:a})=>{const{close:r}=ue(),s=l((()=>{r(),i&&i()}),[i]);return c("div",{onClick:a,className:u("relative min-h-full bg-white pt-0 p-lg",e),role:"dialog",children:[c("div",{className:"sticky py-xl top-0 bg-white z-10",children:[o(er,{className:"absolute top-0 right-0",onClose:s}),o("div",{className:"container",children:t})]}),o("div",{className:"container pb-6xl",children:n})]})})),nr=async(e,t,n=!1)=>{const i=await Ql(t,n);e(o(tr,{className:"my-6xl max-w-4xl mx-auto px-0 min-h-0 pb-0",children:n?o("img",{src:i}):o("iframe",{src:`${i}#toolbar=0`,className:"w-full h-[80vh]",id:"iframe-dialog"})}))},ir=d((({className:e,error:t,docId:n,...i})=>{const{open:a}=ue(),l=Ce();return c("div",{className:e,children:[c("div",{className:"flex flex-wrap gap-x-m",children:[o(Ni,{...i}),n?o(ve,{className:"text-primary-main",onClick:()=>nr(a,n,l),children:o(_e,{children:"Ознакомиться"})}):null]}),gn(t)]})})),ar=d((({field:e,input:t})=>t&&t.name?o(ir,{text:Zl[t.name]?.text,docId:Zl[t.name]?.docId,...ti(e(t.name),Jn[t.name],t?.required)}):null)),lr=d((({field:e,input:t})=>{const{data:n}=Ja("CREDIT_IN_RSHB");return o(ml,{field:e,source:n,label:"Имеет ли юридическое лицо, акционером / участником / членом / пайщиком / \n вкладчиком с долей участия более 20% уставного капитала руководителем, \n которого Вы являетесь, кредит в АО «Россельхозбанк»",fieldName:"creditInRshbCd",input:t})})),rr={horizontal:"@lg:flex-row",vertical:""},sr=d((({label:e,items:t,value:n,className:i,onChange:a,disabled:l=!1,orientation:r="horizontal"})=>c("div",{className:"grid gap-xs whitespace-nowrap",children:[e?o("div",{role:"radiogroup","aria-label":e,children:o(_e,{color:"text-secondary-text",font:"font-light",children:e})}):null,o("div",{className:u("flex flex-col gap-s",rr[r],i),role:"radiogroup","aria-label":"Группа кнопок",children:t?.map((({id:e,text:t})=>o(Ni,{isRadio:!0,text:t,value:n===e,onChange:()=>a&&a(e),disabled:l},String(e))))})]}))),or=d((({className:e,label:t,onChange:n,error:i,...a})=>c("div",{className:u("shrink-0 w-full",e),children:[o(sr,{label:on({label:t,errors:a?.errors}),onChange:e=>n&&n(e),...a}),gn(i)]}))),cr=[{id:"rub",text:"Рубль"}],dr=d((({field:e,input:t})=>{const{value:n,onChange:i}=e("currency");return o(or,{label:"Валюта",orientation:"horizontal",items:cr,value:n,onChange:e=>i?.(e),...ti(e("currency"),Jn.currency,t?.required)})})),mr=d((({field:e,input:t})=>o(jl,{label:"Дата доставки",...ti(e("deliveryDate"),Jn.deliveryDate,t?.required)}))),ur=d((({field:e,input:t})=>o(wn,{label:"Количество иждивенцев",placeholder:"За исключение детей до 18 лет",type:"number",maxLength:2,...ti(e("dependents"),Jn.dependents,t?.required),...t}))),hr=d((({field:e,input:t})=>o(jl,{label:"Желаемая дата встречи",...ti(e("desiredMeetingDate"),Jn.meetingDay,t?.required)}))),pr=d((({field:e,input:t})=>o(Ii,{text:"Являюсь инвалидом",...ti(e("disablePeopleFlg"),Jn.disablePeopleFlg,t?.required)}))),gr="dulIssueDateField",fr=d((({field:e,input:t})=>o(jl,{label:"Дата выдачи",...ti(e(gr),Jn.dulIssueDateField,t?.required),disabled:t?.filledByEsia&&fi(e,gr)}))),xr="dulIssuedBy",yr=d((({field:e,input:t})=>{const{value:n,onChange:i}=e("dulSubdivisionCode"),a=l((e=>{i?.(e?.data?.code?.replace("-",""))}),[]);return o(wn,{disabled:t?.filledByEsia&&fi(e,xr),label:"Кем выдан",...t,...ti(e(xr),Jn.dulIssuedBy,t?.required),onDaDataChange:a,daDataQueryPrefix:n})})),br=d((({field:e,input:t})=>o(wn,{disabled:t?.filledByEsia&&fi(e,"dulNumber"),label:"Номер документа",type:"number",maxLength:6,...ti(e("dulNumber"),Jn.dulNumber,t?.required)}))),vr=d((({field:e,input:t})=>o(wn,{disabled:t?.filledByEsia&&fi(e,"dulSerie"),label:"Серия документа",type:"number",maxLength:4,...ti(e("dulSerie"),Jn.dulSerie,t?.required)}))),Nr="dulSubdivisionCode",wr=d((({field:e,input:t})=>{const n=l((t=>{e?.("dulIssuedBy")?.onChange?.(t?.data?.name)}),[]);return o(wn,{disabled:t?.filledByEsia&&fi(e,Nr),label:"Код подразделения",type:"number",maxLength:6,...t,...ti(e(Nr),Jn.dulSubdivisionCode,t?.required),onDaDataChange:n})})),Sr=d((({field:e,input:t})=>{const{data:n}=Ja("EDUCATION_LEVEL");return o(ml,{field:e,source:n,label:"Образование",fieldName:"education",input:t})})),Cr=d((({field:e,input:t})=>{const{required:n,...i}=t;return o(wn,{label:"Электронная почта",...ti(e("email"),Jn.email,n),...i})})),kr=d((({field:e,input:t})=>{const{data:n}=Ja("ORGANIZATION_ACTIVITY_TYPE");return o(ml,{field:e,source:n,label:"Вид деятельности организации-работодателя",fieldName:"employerActivities",input:t})})),Ir=d((({field:e,input:t})=>{const{data:n}=Ja("ORGANIZATION_KIND");return o(ml,{field:e,source:n,label:"Вид организации работодателя",fieldName:"employerOrganization",input:t})})),Tr=d((({field:e,input:t})=>{const{data:n}=Ja("EMPLOYMENT_INFO_UNITED");return o(ml,{field:e,source:n,label:"Информация о трудоустройстве",fieldName:"employment",input:t})})),Br=d((({field:e,input:t})=>o(wn,{label:"Обязательные расходы в месяц",placeholder:"Введите значение",type:"number",...ti(e("expenses"),Jn.expenses,t?.required),...t}))),Pr=d((({field:e,input:t})=>o(wn,{label:"Стаж",placeholder:"За последние 5 лет",type:"number",maxLength:2,...ti(e("experience5Years"),Jn.experience5Years,t?.required),...t}))),Rr=d((({field:e})=>{const{value:t,onChange:n}=e("familyMembers"),i=e("familyStatus")?.value?.key,l="MARRIED"===i?2:1,r=Number(e("children")?.value),s=Number(e("dependents")?.value),c=l+r+s;return a((()=>{e?.("familyMembers")?.onChange?.(c)}),[i,r,s]),o(wn,{label:"Количество членов семьи",placeholder:"Введите значение",type:"number",disabled:!0,value:t,onChange:e=>n?.(e)})})),Dr=d((({field:e,input:t})=>{const{data:n}=Ja("MARITAL_STATUS");return o(ml,{field:e,source:n,label:"Семейное положение",fieldName:"familyStatus",input:t})})),Mr=[{key:"ULTRASERVICE",text:"Ультра"},{key:"PREMIUMSERVICE",text:"Премиум"}],_r=[{key:"Физическое лицо"},{key:"Юридическое лицо / ИП"}],Ar=[{key:"phone",text:"Телефонный звонок"},{key:"email",text:"Электронное сообщение"}],Er=d((({field:e,input:t})=>o(Dn,{label:"Способ получения ответа",options:Ar,...ti(e("feedbackMethod"),Jn.feedbackMethod,t?.required)}))),zr=d((({field:e,input:t})=>o(wn,{label:"ФИО",...ti(e("fullName"),Jn.fullName,t?.required),...t}))),Fr=d((({field:e,input:t})=>o(wn,{label:"Общий стаж",type:"number",maxLength:2,placeholder:"Количество лет",...ti(e("generalSeniority"),Jn.generalSeniority,t?.required),...t}))),Or=d((({field:e,input:t})=>{const{data:n}=Ja("HOUSE_TYPE");return o(ml,{field:e,source:n,label:"Тип жилья",fieldName:"housing",input:t})})),Vr=d((({field:e,input:t})=>{const n=l((t=>{e?.("organizationName")?.onChange?.(t.data?.name?.short_with_opf),e?.("legalForm")?.onChange?.(t.data?.opf?.short)}),[]);return o(wn,{label:"ИНН",type:"number",maxLength:12,...t,...ti(e("inn"),Jn.inn,t?.required),onDaDataChange:n})})),Lr=d((({field:e})=>o(Ii,{...e("isClient"),text:'Являюсь клиентом банка АО "Россельхозбанк"'}))),jr=d((({field:e,input:t})=>o(wn,{label:"Количество мест работы за последние 5 лет",placeholder:"Количество мест",type:"number",maxLength:2,...ti(e("jobsNumber"),Jn.jobsNumber,t?.required),...t}))),qr=d((({field:e,input:t})=>o(wn,{label:"Стаж на последнем рабочем месте",placeholder:"Количество лет",type:"number",maxLength:2,...ti(e("lastJobExperience"),Jn.lastJobExperience,t?.required),...t}))),$r=d((({field:e,input:t})=>o(wn,{label:"Наименование юридического лица",...t,...ti(e("legalEntityName"),Jn.legalEntityName,t?.required)}))),Ur=d((({field:e,input:t})=>o(wn,{label:"ОПФ",placeholder:"ООО, ПАО и др.",...ti(e("legalForm"),Jn.legalForm,t?.required),...t}))),Wr="limitedBirthday",Hr=d((({field:e,input:t})=>o(jl,{label:"Дата рождения",...ti(e(Wr),Jn.limitedBirthday,t?.required),disabled:t?.filledByEsia&&fi(e,Wr)}))),Yr=[];async function Kr(){const e=await Pt("/api/v1/outservice/outserviceregions");return e&&Array.isArray(e)?e:Yr}const Gr=d((({field:e,input:t})=>{const n=e("region")?.value?.key,{data:i}=ci("outServiceRegions",Kr),l=i?.find((e=>e.code===n))?.localities?.map((e=>({key:e,text:e})));return a((()=>{""!==n&&e?.("localities")?.onChange?.("")}),[n]),o(Dn,{label:"Населенный пункт",placeholder:"Выберите город, где доступен сервис",options:l,...ti(e("localities"),Jn.localities,t?.required),isSearch:!0})})),Xr=d((({field:e,input:t})=>o(wn,{label:"Обязательные выплаты",placeholder:"Введите значение",type:"number",...ti(e("mandatoryPayments"),Jn.mandatoryPayments,t?.required),...t}))),Jr=[{id:"office",text:"В отделении Банка"},{id:"courier",text:"Курьерская доставка"}],Zr=d((({field:e,input:t})=>o(or,{orientation:"horizontal",items:Jr,...ti(e("methodObtain"),Jn.methodObtain,t?.required)}))),Qr="middleName",es=d((({field:e,input:t})=>{const n=l((t=>{const n=t?.data?.gender;n&&"UNKNOWN"!==n&&e("sex")?.onChange?.(n.toLowerCase())}),[]);return o(wn,{label:"Отчество (Обязательно, при наличии)",maxLength:60,disabled:t?.filledByEsia&&fi(e,Qr),...ti(e(Qr),Jn.middleName,t?.required),...t,onDaDataChange:n})})),ts=d((({field:e,input:t})=>o(wn,{label:"Имя",maxLength:60,disabled:t?.filledByEsia&&fi(e,t.name??""),...ti(e("name"),Jn.name,t?.required),...t}))),ns=d((({value:e=!1,text:t,type:n="checkbox",onChange:i})=>c("div",{role:n,"aria-checked":e,className:"flex justify-start items-center w-full cursor-pointer mb-s",onClick:()=>i&&i(!e),children:[o("div",{className:u("relative flex-shrink-0 duration-300 w-9 h-5 mr-s rounded-2xl",e?"bg-primary-main":"bg-main-divider"),children:o("div",{className:u("absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded-full",e?"left-1/2":"left-[5%]")})}),t?o(_e,{size:"text-l",font:"font-light",color:"text-primary-text",children:t}):null]}))),is=d((({field:e})=>ai(e("acquiringType")?.value?.key)?o(ns,{type:"radio",text:"Хочу онлайн-кассу",...e("onlineCheckout")}):null)),as=d((({field:e,input:t})=>{const{data:n}=Ja("ORGANIZATION_TYPE");return o(ml,{field:e,source:n,label:"Тип организации",fieldName:"organization",input:t})})),ls=d((({field:e,input:t})=>{const n=l((t=>{e?.("inn")?.onChange?.(t.data?.inn),e?.("legalForm")?.onChange?.(t.data?.opf?.short)}),[]);return o(wn,{label:"Наименование организации",...t,...ti(e("organizationName"),Jn.organizationName,t?.required),onDaDataChange:n})})),rs=d((({field:e,input:t})=>o(wn,{label:"Иные доходы",placeholder:"Введите значение",type:"number",...ti(e("otherIncome"),Jn.otherIncome,t?.required),...t}))),ss=d((({field:e,input:t})=>o(jl,{label:"Дата регистрации по месту жительства",...ti(e("participantDateRegistration"),Jn.participantDateRegistration,t?.required)}))),os="partInBusiness",cs=d((({field:e,input:t})=>{const n=l((t=>{e(os)?.onChange?.(String(Number(t)>100?100:Number(t)||""))}),[]);return o(wn,{label:"Доля участия в бизнесе",placeholder:"в %",type:"number",maxLength:3,...ti(e(os),Jn.partInBusiness,t?.required),...t,onChange:n})})),ds=d((({field:e,input:t})=>{const{required:n,...i}=t;return o(wn,{...ti(e("partnerComments"),Jn.partnerComments,n),placeholder:"Укажите интересующий вас вопрос",isTextarea:!0,...i})})),ms=d((({field:e,input:t})=>{const{value:n,onChange:l}=e("paymentSystem"),[r,s]=i([]);return a((()=>{(async()=>{const e=await(async()=>{const e=await Yi("/public-data/creditProgramConditions","POST",{creditProgramId:13});return(await(e?.json()))?.paymentSystems?.map((e=>({id:e.type,text:e.name})))??[]})();s(e||[])})()}),[]),o(or,{label:"Платежная система",orientation:"horizontal",items:r,value:n,onChange:e=>l?.(e),...ti(e("paymentSystem"),Jn.paymentSystem,t?.required)})})),us=e=>"_"===e,hs=e=>/\d/.test(e),ps=e=>us(e)||hs(e),gs=[..."+7 (___) ___-__-__"],fs=gs.findIndex(us),xs=gs.map(((e,t)=>ps(e)?gs.slice(0,t).filter(ps).length:-1));function ys(e){const t=e.replace(/\D/g,""),n=gs.map(((e,n)=>hs(e)?e:t.charAt(xs[n])||e)),i=xs.indexOf(t.length-1)+1;return(i?n.slice(0,Math.max(fs,i)):n).join("")}const bs=d((({children:e,onChange:t,...n})=>{const i=l((e=>t&&t(ys(e))),[t]),a=l((e=>{"+7 ("===e&&t&&t("")}),[]);return o(un,{...n,onChange:i,onFocus:e=>i(e?.target?.value||""),onBlur:e=>a(e?.target?.value||""),children:e})})),vs=d((({className:e,label:t,error:n,...i})=>c("div",{className:u("shrink-0 w-full",e),children:[o(bs,{"aria-label":t,label:on({label:t,errors:i?.errors}),valid:Boolean(!n),placeholder:"+7 (___) ___-__-__",...i}),gn(n)]}))),Ns=d((({field:e,input:t})=>{const n=t?.name||"phone";return o(vs,{label:"Телефон",...ti(e(n),Jn.phone,t?.required),disabled:t?.filledByEsia&&fi(e,n),...t})})),ws=d((({field:e,input:t})=>{const{data:n}=Ja("POSITION");return o(ml,{field:e,source:n,label:"Должность в организации",fieldName:"positionOrganization",input:t})})),Ss=d((({field:e})=>ai(e("acquiringType")?.value?.key)?o(ns,{type:"radio",text:"Хочу POS-терминал",...e("posTerminal")}):null)),Cs=d((({field:e,source:t})=>o(Dn,{placeholder:"Выберите продукт",label:"Продукт",options:ks(t?.productList),...ei(e("product"),Jn.product)}))),ks=e=>(e??[]).map((e=>({key:e,value:e}))),Is=[];function Ts(e="/api/v1/regions"){const{data:t}=ci(e,Rt);return Array.isArray(t)?t:Is}const Bs=d((({field:e,input:t,url:n})=>{const i=Ts(n);return o(Dn,{label:"Филиал",placeholder:"Выберите филиал",isSearch:!0,options:r((()=>i?.map((({code:e="",name:t=""})=>({key:e,text:t})))),[i]),...ti(e("region"),Jn.region,t?.required)})})),Ps=d((({field:e,input:t})=>{const n=hi(!0),i=r((()=>n?.map((({region:e})=>({key:e,text:e})))),[n]);return o(Dn,{label:"Регион",placeholder:"Выберите регион",options:i,...ti(e("region"),Jn.region,t?.required)})})),Rs=d((({field:e,input:t})=>{const{data:n}=Ja("REGION_RF"),i=n?.map((({key:e,value:t})=>({key:e,text:t})));return o(Dn,{label:"Регион",placeholder:"Выберите регион",isSearch:!0,options:i,...ti(e("regionRetail"),Jn.regionRetail,t?.required)})})),Ds=d((({field:e,input:t})=>{const n=e("wages")?.value,i=l((t=>{const i=Number(t)+Number(n||0);e("retirementIncome")?.onChange?.(t),e("incomeAverage")?.onChange?.(String(i))}),[n]);return o(wn,{label:"Пенсионные доходы",placeholder:"Введите значение",type:"number",...ti(e("retirementIncome"),Jn.retirementIncome,t?.required),...t,onChange:i})})),Ms=d((({field:e})=>{const t=e("secondaryPhone");return o(vs,{label:"Дополнительный телефон",...t.value&&"+7 ("!==t.value?ei(t,Jn.secondaryPhone):t})})),_s=d((({field:e,input:t})=>o(Dn,{label:"Направление обслуживания",placeholder:"Выберите направление",options:_r,...ti(e("serviceDirection"),Jn.serviceDirection,t?.required)}))),As=[{id:"male",text:"Мужской"},{id:"female",text:"Женский"}],Es=d((({field:e,input:t})=>o(or,{label:"Пол",orientation:"horizontal",items:As,...ti(e("sex"),Jn.sex,t?.required)}))),zs=d((({field:e,input:t})=>o(Ii,{text:"Я являюсь акционером / участником / членом / пайщиком / вкладчиком с долей участия более 20% уставного капитала юридического лица",...ti(e("shareholderFlg"),Jn.shareholderFlg,t?.required)}))),Fs=d((({children:e,onChange:t,...n})=>{const i=l((e=>t&&t(kl(e,"___-___-___ __"))),[t]),a=l((e=>{"___-___-___ __"===e&&t&&t("")}),[]);return o(un,{...n,onChange:i,onFocus:e=>i(e?.target?.value||""),onBlur:e=>a(e?.target?.value||""),children:e})})),Os=d((({className:e,label:t,value:n,error:i,onChange:a,onBlur:l,...r})=>c("div",{className:u("shrink-0 w-full",e),children:[o(Fs,{"aria-label":t,label:on({label:t,errors:r?.errors}),valid:Boolean(!i),value:n,onChange:a,onBlur:l,placeholder:"___-___-___ __"}),gn(i)]}))),Vs=d((({field:e,input:t})=>{const n=e("consentPfrFlg")?.value;return o(Os,{label:"СНИЛС",...ti(e("snils"),Jn.snils,!!n&&t?.required),...t})})),Ls=d((({field:e,input:t})=>o(wn,{label:"Фамилия",maxLength:60,disabled:t?.filledByEsia&&fi(e,"surname"),...ti(e("surname"),Jn.surname,t?.required),...t}))),js=["От 1 мес","До 15 лет"],qs=d((({field:e})=>o(rl,{title:"Срок, месяцев",items:js,min:1,max:180,...e("term")}))),$s=d((({field:e,input:t})=>o(wn,{label:"Совокупный официальный доход в месяц после вычета налогов (зарплата, премии)",placeholder:"Введите значение",type:"number",...ti(e("totalIncome"),Jn.totalIncome,t?.required),...t}))),Us=d((({field:e,input:t})=>o(Dn,{label:"Тип обслуживания",options:Mr,...ti(e("serviceType"),Jn.serviceType,t?.required)}))),Ws=[{id:"currencyControl",text:"Валютный контроль"},{id:"documentOperations",text:"Документарные операции"},{id:"conversionTransactions",text:"Конверсионные операции"},{id:"otherIssues",text:"Иные вопросы ВЭД"}],Hs=d((({field:e})=>{const{value:t,onChange:n}=e("vedTypes");return a((()=>{"currencyControl"!==t&&(e?.("inn")?.onChange?.(""),e?.("region")?.onChange?.(""))}),[t]),o("div",{className:"py-m gap-m grid @xl:flex @xl:items-center",children:o(sr,{className:"whitespace-normal",orientation:"horizontal",items:Ws,value:t,onChange:e=>n&&n(e)})})})),Ys=d((({field:e,input:t})=>{const n=e("retirementIncome")?.value,i=l((t=>{const i=Number(t)+Number(n||0);e("wages")?.onChange?.(t),e("incomeAverage")?.onChange?.(String(i))}),[n]);return o(wn,{label:"Совокупный доход в месяц после вычета налогов (зарплата, премии)",placeholder:"Введите значение",type:"number",...ti(e("wages"),Jn.wages,t?.required),...t,onChange:i})}));const Ks={$ref:"/wcms-resources/outservice-productlist.json"},Gs=(e,t)=>(n,i)=>{const a="ULTRASERVICE"===t||"PREMIUMSERVICE"===t,l={surname:o(Ls,{field:e,input:n}),name:o(ts,{field:e,input:n}),middleName:o(es,{field:e,input:n}),phone:o(Ns,{field:e,input:n}),organizationPhone:o(Ns,{field:e,input:n}),email:o(Cr,{field:e,input:n}),fullName:o(zr,{field:e,input:n}),inn:o(Vr,{field:e,input:n}),legalForm:o(Ur,{field:e,input:n}),organizationName:o(ls,{field:e,input:n}),generalSeniority:o(Fr,{field:e,input:n}),lastJobExperience:o(qr,{field:e,input:n}),experience5Years:o(Pr,{field:e,input:n}),jobsNumber:o(jr,{field:e,input:n}),beginDate:o(ql,{field:e,input:n}),addressFact:o(gi,{field:e,input:n}),organizationAddress:o(xi,{field:e,input:n}),comment:o(Gl,{field:e,input:n}),addressBranch:o(pi,{field:e,input:n,isPremium:a}),sex:o(Es,{field:e,input:n}),birthday:o($l,{field:e,input:n}),limitedBirthday:o(Hr,{field:e,input:n}),birthPlace:o(Ul,{field:e,input:n}),desiredMeetingDate:o(hr,{field:e,input:n}),product:o(Cs,{field:e,source:Ks}),localities:o(Gr,{field:e,input:n}),isClient:o(Lr,{field:e}),partnerComments:o(ds,{field:e,input:n}),collectionCount:o(Kl,{field:e,input:n}),acquiringType:o(ii,{field:e,input:n}),onlineCheckout:o(is,{field:e}),posTerminal:o(Ss,{field:e}),serviceType:o(Us,{field:e,input:n}),term:o(qs,{field:e}),amount:o(dl,{field:e}),annualRevenue:o(hl,{field:e,input:n}),vedTypes:o(Hs,{field:e}),feedbackMethod:o(Er,{field:e,input:n}),serviceDirection:o(_s,{field:e,input:n}),bankEmpolee:o(fl,{field:e}),secondaryPhone:o(Ms,{field:e}),consentToReceiveMaterials:o(ar,{field:e,input:n}),processPersonalDataFlg:o(ar,{field:e,input:n}),consentProviderFlg:o(ar,{field:e,input:n}),consentOthersFlg:o(ar,{field:e,input:n}),consentInformFlg:o(ar,{field:e,input:n}),consentPfrFlg:o(ar,{field:e,input:n}),applicationDate:o(wn,{label:"Дата и время обращения в Банк",...e("applicationDate")}),region:a?o(Ps,{field:e}):o(Bs,{field:e,input:n,url:an(t)}),education:o(Sr,{field:e,input:n}),housing:o(Or,{field:e,input:n}),employment:o(Tr,{field:e,input:n}),organization:o(as,{field:e,input:n}),amountWorkers:o(ul,{field:e,input:n}),employerActivities:o(kr,{field:e,input:n}),employerOrganization:o(Ir,{field:e,input:n}),positionOrganization:o(ws,{field:e,input:n}),familyStatus:o(Dr,{field:e,input:n}),children:o(Hl,{field:e,input:n}),familyMembers:o(Rr,{field:e,input:n}),dependents:o(ur,{field:e,input:n}),totalIncome:o($s,{field:e,input:n}),expenses:o(Br,{field:e,input:n}),snils:o(Vs,{field:e,input:n}),conscription:o(Jl,{field:e,input:n}),armyIdFlg:o(pl,{field:e,input:n}),dulSerie:o(vr,{field:e,input:n}),dulNumber:o(br,{field:e,input:n}),dulIssueDateField:o(fr,{field:e,input:n}),dulSubdivisionCode:o(wr,{field:e,input:n}),dulIssuedBy:o(yr,{field:e,input:n}),addressRegistration:o(xi,{field:e,input:n}),addressCourier:o(xi,{field:e,input:n}),participantDateRegistration:o(ss,{field:e,input:n}),retirementIncome:o(Ds,{field:e,input:n}),otherIncome:o(rs,{field:e,input:n}),wages:o(Ys,{field:e,input:n}),mandatoryPayments:o(Xr,{field:e,input:n}),disablePeopleFlg:o(pr,{field:e,input:n}),bankruptcyFlg:o(xl,{field:e,input:n}),shareholderFlg:o(zs,{field:e,input:n}),legalEntityName:o($r,{field:e,input:n}),creditInRshbCd:o(lr,{field:e,input:n}),bankEmployeeCode:o(gl,{field:e,input:n}),partInBusiness:o(cs,{field:e,input:n}),regionRetail:o(Rs,{field:e,input:n}),addressRetail:o(Qa,{field:e,input:n}),addressMatch:o(Ti,{field:e,input:n}),paymentSystem:o(ms,{field:e,input:n}),currency:o(dr,{field:e,input:n}),cardCategory:o(Wl,{field:e,input:n}),codeWord:o(Yl,{field:e,input:n}),confirmationIncome:o(Xl,{field:e,input:n}),methodObtain:o(Zr,{field:e,input:n}),deliveryDate:o(mr,{field:e,input:n})};return function({input:e,field:t}){const{condition:n}=e,{value:i}=t(n?.name||"");return!n||n?.values?.find((e=>e===(i?.key??i)))}({input:n,field:e})?o("div",{children:l[n?.name||""]},String(i)):null},Xs=e=>2===e?"@xl:grid-cols-2":"",Js=e=>e?o("div",{className:"@xl:text-center @xl:col-span-2 mb-m",children:o(_e,{size:"text-h6",children:e})}):null,Zs=d((function({responseType:e,typeForm:t}){const n="OK"===e,i=n?"ResponseOKIcon":"ResponseFailIcon",{close:a}=ue(),r=l((()=>{a()}),[]),s="ANTIFRAUD"===t?"Сообщение отправлено. Для уточнения информации с Вами могут связаться работники Банка либо Вы\n можете самостоятельно позвонить по номеру контакт-центра +78001000100. Будьте внимательны, работники Банка\n не звонят с использованием мессенджеров.":"Совсем скоро мы с вами свяжемся";return o(tr,{className:"my-6xl max-w-lg w-full min-h-fit mx-auto ",children:c("div",{className:"flex flex-col gap-lg items-center rounded-md space-x-m",children:[o(ne,{image:{icon:i,iconVersion:"normal"},width:"136",height:"136"}),o(k,{className:"w-full",title:n?"Ваша заявка отправлена":"Не удалось отправить заявку",description:n?s:"Пожалуйста, повторите позднее",headlineVersion:"XS",isEmbedded:!0}),o(Ea,{type:"button",onClick:r,children:"Хорошо"})]})})})),Qs=e=>{const{open:t,close:n}=ue();return{open:(n,i={})=>t(o(Zs,{...e,...n}),i),close:n}},eo=e=>t=>t&&Object.entries(e).flatMap((([e,n])=>n(t[e])))||[],to=e=>{const{acquiringType:t,onlineCheckout:n,posTerminal:i,amount:a,term:l,annualRevenue:r,serviceType:s,vedTypes:o,region:c,...d}=e,m=t||r?(e=>{const{acquiringType:t,onlineCheckout:n=!1,posTerminal:i=!1,term:a,amount:l,annualRevenue:r}=e;return t?`Вид эквайринга=${t?.text||""}${ai(t?.key)?`/Онлайн касса=${n}/POS-терминал=${i}`:"/Онлайн касса=false/POS-терминал=false"}`:`Сумма=${l}/Срок=${a}/Выручка=${r}`})(e):null,u={...d,...io(o),...no(c),...m?{partnerComments:m}:{},...s?{typeForm:s}:{}};return Object.fromEntries(Object.entries(u)?.map((([e,t])=>[e,t?.key||t])))},no=e=>e?.key||e?.text?{region:e?.text||e?.key}:{},io=e=>e?{vedTypes:Object.fromEntries(Ws.map((({id:t})=>[t,t===e])))}:{},ao={typeForm:"",region:{key:"",text:""},addressBranch:{key:"",text:""},surname:"",name:"",phone:"",secondaryPhone:"",comment:"",product:"",partnerComments:"",annualRevenue:"",term:12,amount:1e5,acquiringType:ni[0],serviceType:Mr[0],feedbackMethod:Ar[0],serviceDirection:_r[0],vedTypes:Ws[0],birthday:void 0,isClient:!1,onlineCheckout:!1,posTerminal:!1,consentToReceiveMaterials:!1,consentDataProcessing:!1,addressRetail:{key:"",text:""}},lo=d((({text:e,link:t})=>c(S,{size:"text-l",font:"font-light",color:"text-secondary-text",children:[e?o(_e,{children:e}):null,t?o(ve,{href:t.href,ariaLabel:"условия передачи данных",target:t.target||"",className:"!text-left text-primary-main",children:o(_e,{children:t.text})}):null]}))),ro=(e,t)=>o(Ea,{className:u("w-full @xl:w-auto",t),type:"submit",children:e?.text?e.text:"Отправить заявку"}),so=(e,t,n)=>c("div",{className:"flex col-span-2 gap-xs flex-col w-full items-baseline",children:[e?c("div",{children:[c("div",{className:"flex gap-3 items-center",children:[o(Ni,{...e}),o(lo,{link:t})]}),gn(ei(e,Un).error)]}):o(lo,{text:"Нажимая кнопку, вы подтверждаете согласие с ",link:t}),ro(n)]}),oo={send:async function(e,t=!1){const{typeForm:n,region:i,phone:a="",email:l,birthday:r,desiredMeetingDate:s,inn:o,addressBranch:c,secondaryPhone:d="",bankEmpolee:m,applicationDate:u,serviceDirection:h,...p}=e,g=t&&"Юридическое лицо / ИП"!==h,f="/api/v1"+(g?"/lead":"/sendcorporatelead"),x={typeForm:n,...Ut(i,g),...Wt(l,g),...qt(a),...$t(s,"desiredMeetingDate"),...g?$t(r):{inn:o},..."FEEDBACK"===n?{}:{addressBranch:c,bankEmpolee:m,applicationDate:u,...Ht(d)},...p};try{const e=await fetch(f,{method:"POST",headers:{"Content-Type":"application/json"},mode:"cors",body:JSON.stringify(x)});return e?.ok?await e.json():null}catch(e){return null}}},co=d((({className:e,title:t,typeForm:n="",sections:r=[],button:s,link:d,endpoint:m,additionalParams:h,isContacts:p,data:g,...f})=>{const x=r?.flatMap((e=>e?.inputs))||[],y=((e,t="")=>{const n=Object.fromEntries(e.map((e=>[e.name,"ved"===e.fieldType&&e?.defaultValue||ao[e.name||""]])));return n?.serviceType&&"PREMIUMSERVICE"===t&&(n.serviceType=Mr[1]),{...n,typeForm:{key:t,text:""}}})(x,n),[b,v]=i(""),N=Qs({typeForm:n}),S=l((async(e,t)=>{const n=mo(x,e),i=eo(Qn(n));if(!Mn(i(e)))return console.warn("validation fail");const a=to({...e,...h}),l=await oo.send(a,"lead"===m)?"OK":"Fail";if(v(l),l&&N.open({responseType:l}),"OK"===l&&g){const e=Zt();Yt({aspectsAttributes:g,aspects:e,ev:t})}return l}),[]),[,{field:C,onSubmit:k,reset:I}]=en(y,{onSubmit:S}),T=(e=>e?.find((e=>"consentDataProcessing"===e?.name)))(x)?.name;return a((()=>{"OK"===b&&(v(""),I())}),[b]),c(nn,{className:u("container space-y-m",e),title:t,...f,children:[c("form",{onSubmit:k,children:[r.map(((e,t)=>c("div",{className:u(Xs(e.columns),"grid gap-x-m"),children:[Js(e.title),(e?.inputs||[])?.map(Gs(C,n))]},`section-${t}`))),so(T?C("consentDataProcessing"):void 0,d,s)]}),p?c("div",{className:"space-y-m",children:[o(w,{headingType:"h6",title:"Или свяжитесь с нами удобным способом",className:"@xl:text-center"}),c("div",{className:"flex sm:justify-center gap-xl",children:[c("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:[o(ne,{image:{icon:"PhoneIcon"},width:"24",height:"24"}),o("span",{children:"8 (800) 200-78-70"})]}),c("a",{className:"flex gap-s items-center text-primary-text no-underline","aria-label":"почта ved@rshb.ru",href:"mailto:ved@rshb.ru",children:[o(ne,{image:{icon:"MailIcon"},width:"24",height:"24"}),o("span",{children:"ved@rshb.ru"})]})]})]}):null]})})),mo=(e,t)=>e.filter((e=>"secondaryPhone"===e?.name?Boolean(t.secondaryPhone):e)).filter((e=>!e?.condition||e?.condition.values.find((n=>{const i=t?.[e?.condition?.name??""];return n===(i?.key??i)}))));function uo(e){const[t,n]=i(JSON.parse(globalThis.localStorage?.getItem(e)||"null"));return[t,l((t=>{globalThis.localStorage?.setItem(e,JSON.stringify(t)),n(t)}),[e,globalThis.localStorage])]}const ho=d((({inputs:e=[],typeForm:t="",field:n,key:i})=>{const a=e.every((e=>Boolean(n(e.name).value))),l=r((()=>e?.filter((e=>e.required))?.some((e=>Boolean(ei(n(e?.name),Jn[e?.name]).error)))),[e]);return o("div",{className:"w-fit",children:o(Xi,{isFoldButtonOnTop:!0,unfoldedByDefault:!0,renderFoldableSection:({isUnfolded:i})=>o(Ji,{isUnfolded:i,className:"flex flex-col pl-2xl",children:e.map(Gs(n,t))}),renderFoldButton:po(c("div",{children:[o(Ni,{value:a,onChange:t=>{for(const i of e){const e=n(i.name);e?.onChange&&e.onChange(t)}},text:"Согласие на все документы"},i),gn(l?"Отметьте все обязательные соглашения":"")]}))})})})),po=e=>t=>c("div",{className:"flex items-start",children:[e,o("button",{onClick:t.onToggle,className:"px-m py-2xs",type:"button",children:o(W,{className:"text-primary-text",name:t.isUnfolded?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16"})})]}),go=({field:e,typeForm:t="",inputs:n})=>{const{consentInputs:i,restInputs:a}=fo(n||[]);return i.length>2?c("div",{children:[a.map(Gs(e,t)),o(ho,{inputs:i,field:e})]}):(n||[])?.map(Gs(e,t))},fo=e=>({consentInputs:e?.filter((e=>Object.keys(Zl).includes(e.name||"")))||[],restInputs:e?.filter((e=>!Object.keys(Zl).includes(e.name||"")))||[]}),xo={typeForm:"",region:{key:"",text:""},addressBranch:{key:"",text:""},surname:"",name:"",phone:"",secondaryPhone:"",organizationPhone:"",comment:"",product:"",partnerComments:"",annualRevenue:"",term:12,amount:1e5,acquiringType:ni[0],serviceType:Mr[0],feedbackMethod:Ar[0],serviceDirection:_r[0],vedTypes:Ws[0],birthday:void 0,limitedBirthday:void 0,isClient:!1,onlineCheckout:!1,posTerminal:!1,consentToReceiveMaterials:!1,consentDataProcessing:!1,processPersonalDataFlg:!1,consentProviderFlg:!1,consentOthersFlg:!1,consentInformFlg:!1,addressRegistration:"",participantDateRegistration:void 0,currency:"",paymentSystem:"",cardCategory:{key:"",text:""},codeWord:"",addressRetail:{key:"",text:""}},yo=(e,t,n="")=>{if(t){const e={...t};return e.limitedBirthday=new Date(e?.limitedBirthday||0),e}return{...Object.fromEntries(e.map((e=>[e.name,"ved"===e.fieldType&&e?.defaultValue||xo[e.name||""]]))),typeForm:{key:n,text:""}}},bo=(e,t)=>o(Ea,{className:u("w-full @xl:w-auto",t),type:"submit",children:e?.text?e.text:"Отправить заявку"}),vo=e=>Hi("/user-data/updateUserProfile","PUT",e),No=e=>Hi("/user-data/updateUserTask","PUT",e),wo=(e,t)=>Boolean(e)&&"string"!=typeof e&&Boolean(e?.errorMessage.startsWith(`Too many request for phoneNumber [${t}]`)),So={width:"103",height:"21"},Co={"bg-white":"color",transparent:"white"},ko={"bg-white":"text-primary-main",transparent:"text-white"},Io=(e,t,n)=>o(ne,{image:t?.src?t:{icon:t?.icon||"LogoIcon",iconVersion:Co[e]},className:ko[e],width:n?.width,height:n?.height}),To={"bg-white":"text-primary-text",transparent:"text-white"},Bo=d((({className:e,href:t="/",logo:n,children:i,targetBlank:a,bgColor:l="bg-white",showTitle:r=!0,data:s})=>c("a",{className:u("inline-flex items-center font-sans no-underline",e),href:n?.href??t,target:a?"_blank":"_self","aria-label":n?.title??"Россельхозбанк",...ge(s),children:[Io(l,n?.image,So),r?i??o("div",{className:"ml-s",children:o(_e,{font:"font-medium",color:To[l],size:"text-s",children:n?.title??"Россельхозбанк"})}):null]}))),Po=d((({phoneNumber:e,close:t,sendCode:n,onClose:r})=>{const[s,d]=i(""),[m,u]=i(""),[h,p]=i(!1),g=l((async()=>{const e=await(i={captchaText:m},Yi("/sms/checkCaptcha","POST",i).then((e=>e.text())).then((e=>"ERROR"!==e)));var i;e?(n?.(),t?.()):p(e)}),[m]),f=l((()=>{(async()=>{d(URL.createObjectURL(await(e=>Yi(`/sms/createCaptcha?phoneNumber=${encodeURIComponent(e)}`,"GET").then((async e=>e?await e.blob():new Blob)))(e)))})()}),[]);return a(f,[]),o(tr,{head:o(Bo,{}),onClose:r,className:"my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg",children:c("div",{className:"flex flex-col gap-lg items-center rounded-md",children:[c("div",{className:"flex h-36 w-72",children:[o("img",{className:"grow",src:s}),o("div",{onClick:f,className:"flex w-8 items-center justify-center cursor-pointer",children:o(W,{iconVersion:"normal",name:"RefreshIcon"})})]}),o(un,{className:"w-[300px]",onChange:u,value:m,placeholder:"Введите код с картинки"}),h?o("div",{className:"text-error",children:"Неверный код"}):null,c("div",{className:"flex w-[310px] justify-between",children:[o(Ea,{onClick:t,version:"secondary",children:"Вернуться"}),o(Ea,{type:"submit",disabled:!m,onClick:g,version:"secondary",children:"Отправить"})]})]})})})),Ro=d((({time:e,setTime:t,className:n})=>(a((()=>{const n=setInterval((()=>{t(e-1)}),1e3);return 0===e&&clearInterval(n),()=>{clearInterval(n)}}),[e]),o("span",{className:n,children:Do(e)})))),Do=e=>`${`${Math.floor(e/60)}`.padStart(2,"0")}:${(""+e%60).padStart(2,"0")}`,Mo=d((({values:e,setValues:t,hasError:n,errorText:r})=>{const[d,m]=i(0),u=s([]);a((()=>{u.current?.[d]?.focus()}),[d]);const h=l((n=>i=>{const{value:a}=i.currentTarget,l=a.slice(0,1);t(e.map(((e,t)=>t===n?l:e))),m(n+1)}),[e]),p=l((n=>i=>{const{key:a}=i;if("Backspace"===a&&!e[n]){const i=n>0?n-1:e.length-1,a=e.map(((e,t)=>t===i?"":e));t(a),m(i)}}),[e]),g=l((n=>{n.preventDefault();const i=n.clipboardData.getData("text"),a=e.map(((e,t)=>t<i.length?i[t]:e));t(a),m(a.length-1)}),[e]);return c("div",{className:"flex flex-col gap-2 text-center",children:[o("div",{children:e.map(((t,i)=>o("input",{type:"number",maxLength:1,value:t,onChange:h(i),onPaste:g,ref:e=>{u.current||(u.current=[]),u.current[i]=e},onFocus:e=>e.target.select(),onKeyDown:p(i),className:_o(i,e,n)},i)))}),n?o("div",{className:"text-error",children:r}):null]})})),_o=(e,t,n=!1)=>{const i=!t[e];return`w-20 h-24 text-5xl text-center p-lg m-2 border ${n&&i?"border-error":"border-gray"} rounded-md caret-transparent outline-none`},Ao=d((({isDisabled:e,onClick:t,text:n})=>o(Ea,{type:"button",onClick:t,disabled:e,children:o(_e,{font:"font-normal",children:n})}))),Eo=e=>{e&&(globalThis.sessionStorage.setItem("accessToken",e.access_token),globalThis.sessionStorage.setItem("refreshToken",e.refresh_token))},zo=({close:e,values:t})=>{const[n,s]=i(!1),[o,c]=i(""),[d,m]=i(!1),[u,h]=i(0),[p,g]=i(!1),[f,x]=i(0),y=l((()=>{s(!1),c("")}),[]),b=r((()=>0===u&&p),[u,p]),v=r((()=>f>2||!t.every(Boolean)||b),[t]),N=l((async()=>{try{g(!1),h(0),x(f+1),m(!0),await(async e=>Hi("/sms/checkCode","POST",e).then(Eo))({smsText:t.join(""),smsCodesSetName:{key:"AUTHENTICATION"}}),y(),e&&e(t.join(""))}catch{m(!1),c(f>1?"Исчерпан лимит ввода смс-кода":"Неверный код"),s(!0)}}),[t,f]);return a((()=>{b?(s(!0),c("Код просрочен")):s(!1)}),[b]),{handleSubmit:N,hasError:n,errorText:o,isLoading:d,timeNextReq:u,isSubmitButtonDisabled:v,setTimeNextReq:h,setIsTimerStarted:g,setAttemps:x}},Fo=d((({close:e=cn,onClose:t=cn,title:n,description:r,__html:s,code:d=!0,codeLength:m=4,textButton:u="",phoneNumber:h="+79999999999"})=>{const[p,g]=i(Array(m).fill("")),{handleSubmit:f,hasError:x,errorText:y,isLoading:b,timeNextReq:v,isSubmitButtonDisabled:N,setTimeNextReq:w,setIsTimerStarted:S,setAttemps:C}=zo({values:p,close:e}),I=l((async()=>{var e;await(e={phoneNumber:h,smsCodesSetName:{key:"AUTHENTICATION"}},Hi("/sms/sendCode","POST",e).then((t=>!wo(t,e.phoneNumber))))?(C(0),w(180),S(!0)):T.open()}),[]),T=((e,t)=>{const{open:n,close:i,closeAll:a}=ue();return{open:()=>n(o(Po,{close:i,onClose:t,...e})),close:i,closeAll:a}})({phoneNumber:h,sendCode:I},t);return a((()=>{I()}),[]),o(tr,{className:"my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-xl px-5xl py-0",children:c("div",{className:"flex flex-col gap-xl items-center rounded-md",children:[o(k,{className:"w-full",title:n,description:r,headlineVersion:"XS",isEmbedded:!0,as:"h6"}),d?o(Mo,{values:p,setValues:g,errorText:y,hasError:x}):null,Vo(v,w,I),o(De,{itemSize:"list-s",__html:s}),Oo(u,N,f),b?o(Bi,{blur:!1}):null]})})})),Oo=(e,t,n)=>e?o(Ao,{isDisabled:t,onClick:n,text:e}):null,Vo=(e,t,n)=>e?c("div",{className:"flex flex-row text-l font-light text-base",children:["Получить новый код можно через",o(Ro,{className:"text-base ml-1",time:e,setTime:t})]}):o(ve,{onClick:n,className:"text-primary-main",children:"Получить новый код"}),Lo=()=>{const{open:e,close:t}=ue();return{open:(n,i)=>e(o(Fo,{onClose:t,close:n,...i})),close:t}},jo={title:"Подпишите согласие на запрос в БКИ",description:"Согласие на запрос в Бюро кредитных историй (БКИ) ускорит решение по кредиту"},qo={title:"Вы уверены, что хотите отказаться от запроса в БКИ",description:"Согласие на запрос в Бюро кредитных историй (БКИ) повысит вероятность одобрения"},$o=d((function({handleSubmit:e=cn,onClose:t=cn}){const[n,a]=i(""),[r,s]=i(!1),{open:d,close:m}=ue(),u=Ce(),h=l((()=>{m(),e(n)}),[n]),p=l((e=>{a(e),"REFUSE"===e&&s(!0)}),[]),g=r?qo:jo;return o(tr,{className:"my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-lg py-0 px-5xl",onClose:t,children:c("div",{className:"flex flex-col gap-xl items-center",children:[o("div",{role:"button",onClick:()=>nr(d,Wo,u),children:o(w,{className:"text-center text-balance",headingType:"h2",title:g.title})}),o(S,{align:"text-center",children:g.description}),o(sr,{className:"whitespace-normal",orientation:"horizontal",items:Uo,value:n,onChange:p}),o(Ea,{disabled:!n,type:"button",onClick:h,children:"Продолжить"})]})})})),Uo=[{id:"SIGNED",text:"Подписать"},{id:"REFUSE",text:"Отказаться"}],Wo=2,Ho=e=>{const{open:t,close:n}=ue(),i=Lo(),a=(t,a)=>async l=>{n(),"SIGNED"===l&&t?i.open((t=>async n=>{t&&await vo({profile:{id:t,consentBkiFlg:!0,smsConsentBki:n}}),e()})(a),Yo(t)):e()};return{open:(n,i)=>t(o($o,{handleSubmit:a(n,i),onClose:e}))}},Yo=e=>({title:"Подтвердите номер телефона",description:`Мы отправили код на ${e}`,phoneNumber:jt(e),textButton:"Отправить",__html:"<span>Вводя код, я подтверждаю, что ознакомлен и подписываю:</span>\n <ul><li>согласие на запрос информации в БКИ</li></ul>"}),Ko=d((function({handleClose:e}){const t=Kt(),n=l((async()=>{const e=await(n={redirectUri:t.href},Hi("/esia/getLink","POST",n));var n;e&&t.assign(e.link)}),[]);return o(tr,{className:"my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg",onClose:e,children:c("div",{className:"flex flex-col gap-lg items-center rounded-md",children:[c("div",{className:"flex items-center justify-around w-full",children:[c("ul",{className:"list-disc",children:[o("li",{children:"Вероятность одобрения выше"}),o("li",{children:"Без справок о доходах и трудоустройстве"}),o("li",{children:"С защитой Ваших данных"})]}),o(ne,{image:{icon:"GosUslugiIcon",iconVersion:"normal"},height:"70"})]}),c("div",{className:"flex items-center justify-between w-full m-0",children:[o(Ea,{type:"button",onClick:n,children:"Заполнить через Госуслуги"}),o(Ea,{type:"button",version:"secondary",onClick:e,children:"Пропустить"})]})]})})})),Go={email:"EMAIL",phone:"MAIN_PHONE",organizationPhone:"ORGANIZATION_PHONE"},Xo={addressRegistration:"REGISTRATION",addressFact:"RESIDENTAL",organizationAddress:"WORK"},Jo={incomeAverage:"INCOME_AVERAGE",mandatoryPayments:"MANDATORY_PAYMENTS",additionalIncome:"ADDITIONAL_INCOME",otherIncome:"OTHER_INCOME",otherPayments:"OTHER_PAYMENTS",rentalIncome:"RENTAL_INCOME",wages:"WAGES",retirementIncome:"RETIREMENT_INCOME"},Zo=e=>Object.entries(e).reduce(((e,[t,n])=>t in Go?[...e,{contactTypeCd:{key:Go[t]},value:n}]:e),[]),Qo=e=>Object.entries(e).reduce(((e,[t,n])=>{if(t in Xo){const i=Object.fromEntries(Object.entries(n??{}).filter((([e])=>!e.startsWith("qc"))).map((([e,t])=>[e,t??""])));return[...e,{addressType:{key:Xo[t]},...i}]}return e}),[]),ec=e=>Object.entries(e).reduce(((e,[t,n])=>t in Jo?[...e,{incomeTypeCd:{key:Jo[t]},value:Number(n||0)}]:e),[]),tc=({inputs:e,programId:t,nextStepLink:n,saveForm:a})=>{const[r,s]=i(""),[,c]=uo("taskId"),[,d]=uo("profileId"),[,m]=uo("participantId"),u=(e=>{const{open:t,close:n}=ue(),i=Kt(),a=l((()=>{n(),i.assign(e)}),[]);return{open:(e={})=>t(o(Ko,{handleClose:a}),e),close:n}})(n),h=Ho(u.open),p=Lo(),g=l(((e,t,n)=>{m(e),c(t),d(n)}),[]);return{handleSubmit:l((async n=>{const i=eo(Qn(e));if(!Mn(i(n)))return console.warn("validation fail");try{const e=await(l={profile:{phone:jt(n.phone)}},Hi("/public-data/createUserProfile","POST",l).then((e=>e?.profile?.id||null)));if(e&&n?.phone){const i=async()=>{try{await nc({programId:t,profileId:e,formData:n,saveUserData:g,saveForm:a}),p.close(),h.open(n.phone,e)}catch{s("Fail")}},l=Object.keys(Zl).filter((e=>n[e])).map((e=>Zl[e]?.text));p.open(i,ic(n?.phone,l))}}catch{s("Fail")}var l}),[]),responseStatus:r}},nc=async({programId:e,profileId:t,formData:n,saveUserData:i,saveForm:a})=>{const l=lc(n);await vo(((e,t)=>{const{name:n="",surname:i="",middleName:a="",birthday:l="",phone:r="",email:s="",processPersonalDataFlg:o,consentProviderFlg:c,consentPfrFlg:d,consentPhotoFlg:m,consentAssignmentClaimsFlg:u,consentCollectionFlg:h,consentInformFlg:p}=t;return{profile:{id:e,name:n,surname:i,midname:a,birthDate:l&&Lt(l,!0),email:s,phone:jt(r),processPersonalDataFlg:Boolean(o),consentProviderFlg:Boolean(c),consentPfrFlg:Boolean(d),consentPhotoFlg:Boolean(m),consentAssignmentClaimsFlg:Boolean(u),consentCollectionFlg:Boolean(h),consentInformFlg:Boolean(p)}}})(t,l));const{taskId:r,participantId:s}=await(async e=>await Hi("/user-data/createDraftTask","POST",e)||{})({profileId:t,programId:e});await No((({participantId:e,taskId:t,profileId:n,formData:i})=>{const{name:a,surname:l,middleName:r,limitedBirthday:s,phone:o,email:c}=i;return{sendToBank:!0,taskKind:"SHORT",task:{taskSource:Kt().origin,id:t,participants:[{birthDate:s&&Lt(s,!0),id:e,midname:r,name:a,surname:l,profile:{id:n},participantContacts:Zo({phone:o&&jt(o),email:c}),roleCd:{key:"BORROWER",value:"Заемщик"}}]}}})({participantId:s,taskId:r,profileId:t,formData:l})),i(s,r,t),a(n)},ic=(e,t)=>({title:"Подтвердите номер телефона",description:`Мы отправили код на ${e}`,phoneNumber:jt(e),textButton:"Оформить",__html:`<span>Вводя код, я подтверждаю, что ознакомлен и подписываю:</span>${ac(t)}`}),ac=e=>`<ul>${e?.map((e=>"<li>"+e+"</li>")).join("")}</ul>`,lc=e=>{const{consentOthersFlg:t,...n}=e;return{...n,consentCollectionFlg:t,consentAssignmentClaimsFlg:t,consentPhotoFlg:t}},rc=e=>{const{profile:t,addInfo:n,document:i,addressRegistration:a,addressFact:l}=e;return{name:t?.name,surname:t?.surname,middleName:t?.midname,limitedBirthday:t?.birthDate,phone:ys(t?.phone),email:t?.email,dulIssueDateField:i?.dulIssueDate,dulIssuedBy:i?.dulIssuedBy,dulNumber:i?.dulNumber,dulSerie:i?.dulSerie,dulSubdivisionCode:i?.dulSubdivisionCode,snils:n?.snils,birthPlace:n?.birthPlace,addressRegistration:sc(a),addressFact:sc(l),esiaAccountTypeCd:t?.esiaAccountType}},sc=e=>{const{postcode:t,region:n,regionCode:i,locality:a,city:l,street:r,house:s,building:o,block:c,apartment:d}=e,m=[t,n,a||l,r?`ул ${r}`:void 0,s?`д ${s}`:void 0,c?`к ${c}`:void 0,o?`стр ${o}`:void 0,d?`кв ${d}`:void 0].reduce(((e,t)=>t?e?`${e}, ${t}`:t:e),"");return{...e,regionCode:i?.key,fullAddress:m}},oc=e=>{const t=Kt(),[n,r]=i(!1),[s]=uo("profileId"),[o,c]=uo("leadForm"),d=new URLSearchParams(decodeURIComponent(globalThis.location?.search)),m=d.get("code"),u=d.get("state"),h=l((async()=>{if(s&&m&&u){const i=await(n={profileId:s,code:m,state:u,redirectUri:t.href},Hi("/esia/updateProfileEsia","POST",n));i&&c({...o,...rc(i)}),t.assign(e)}var n}),[]);return a((()=>{m?(r(!0),h()):(sessionStorage.removeItem("accessToken"),sessionStorage.removeItem("refreshToken"))}),[]),{isLoading:n}},cc=d((({className:e,title:t,programId:n="",nextStepLink:l="/credit-lead",sections:r=[],button:s,...d})=>{const m=r?.flatMap((e=>e?.inputs))||[],[h,p]=i(""),{isLoading:g}=oc(l),[f,x]=uo("leadForm"),y=yo(m,f),{handleSubmit:b,responseStatus:v}=tc({inputs:m,programId:n,nextStepLink:l,saveForm:x});if(v){Qs({responseType:v}).open()}const[,{field:N,onSubmit:w,reset:S}]=en(y,{onSubmit:b});return a((()=>{"OK"===h&&(p(""),S())}),[h]),o(nn,{className:u("container space-y-m",e),title:t,...d,children:c("form",{onSubmit:w,className:"space-y-m relative",children:[g?o(Bi,{blur:!1}):null,r.map(((e,t)=>c("div",{className:u(Xs(e.columns),"grid gap-x-m"),children:[Js(e.title),go({field:N,inputs:e?.inputs})]},`section-${t}`))),bo(s)]})})})),dc=d((({title:e,description:t})=>{const n=Ce();return c("div",{className:"bg-white p-6xl py-20 flex gap-s flex-col @xl:items-center",children:[o(ne,{image:{icon:"MagnifierIcon",iconVersion:"normal"},width:"120",height:"120"}),o(k,{title:e,description:t,headlineVersion:n?"L":"S",isEmbedded:!0,className:"space-y-s"})]})})),mc=(e=!1)=>e?"border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider":"",uc=e=>({height:"calc(100vh - 242px)",minHeight:`${e||866}px`});function hc(e=0){const t=Math.round(10*e);return Array.from({length:t}).fill(0).map(((e,n)=>Math.min(n/t)),1).concat(1)}const pc=d((({className:e,style:t,idx:n,activeIndex:i,observerOptions:c,children:d,onIntersection:m})=>{const h=function(e,{sensitivity:t,rootRef:n}={}){const i=s(null),l=r((()=>({threshold:hc(t),root:n?.current})),[t,n?.current]);return a((()=>{if(!i.current)return;const t=new IntersectionObserver(e,l);return t.observe(i.current),()=>{t.disconnect()}}),[e,l]),i}(l((e=>{e.length&&m&&m(n||0,e[e.length-1])}),[m,n]),c);return o("div",{className:u("inline-block snap-always box-border",e),style:t,"aria-current":Boolean(n===i),ref:h,role:"listitem",children:d})})),gc=["min-w-full","lg:min-w-[50%]","lg:min-w-[33.3%]","lg:min-w-[25%]"],fc=d((({className:e,itemClassName:t,containerRef:n,activeIndex:i,visibleItemCount:a=0,gap:r=0,padding:c=0,listType:d="horizontal-list",snapAlign:m="snap-center",minHeight:h,children:p,onVisibleItemsChange:g,onVisibleIndicesChange:f})=>{const x={sensitivity:1,rootRef:n},y=s([]),b=l(((e,t)=>{const n=[...y.current||[]];n[e]=t,y.current=n,g&&g(n),f&&f(yc(n))}),[g,f]),v=a>0?r*Number(a)-1:0,N="vertical-list"===d,w="horizontal-list"===d,S={...w?xc(c,v):{},...N?uc(h):{},gap:`${r}px`};return o("div",{className:u("box-border overflow-auto no-scrollbar",d,e),style:S,ref:n,role:"list",children:(C=(e,n)=>o(pc,{className:u(m,a?gc[a-1]:"",{"h-full":N},t),style:w?xc(c/4):{},activeIndex:i,idx:n,observerOptions:x,onIntersection:b,children:e},String(n)),e=>null==e?e:Array.isArray(e)?e.map(C):C(e,0))(p)});var C})),xc=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),yc=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),bc={"horizontal-list":"w-6","vertical-list":"h-6"},vc=({activeIndex:e,onClick:t,listType:n="horizontal-list"})=>(i,a)=>o("div",{className:u("cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white",a===e?bc[n]:"w-2 h-2 opacity-30"),role:"button","aria-hidden":!0,onClick:()=>t(a)},String(a)),Nc=({activeIndex:e,onClick:t})=>(n,i)=>{const a=i===e,l=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: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-l":"text-m group-data-secondary:text-white/80";return c("button",{type:"button",onClick:()=>t(i),"aria-label":n?.title,className:u("max-h-28 mt-xs ml-xs relative px-xl box-border overflow-hidden text-left grow basis-0 border border-gray group-data-secondary:border-white/50 whitespace-nowrap",l),children:[o("div",{className:r,children:n?.title}),o("div",{className:u("text-secondary-text font-light",s),children:n?.description})]},String(i))},wc=e=>e,Sc=(e=wc)=>t=>t.reduceRight(((t,n)=>e(t)>e(n)?t:n)),Cc=Sc(),kc=(e=wc)=>Sc((t=>-e(t))),Ic=kc(),Tc=e=>t=>e.scrollWidth/t,Bc=e=>(t,n)=>{e.scrollBy({left:n*Tc(e)(t),behavior:"smooth"})},Pc=({itemCount:e,onVisibleIndicesChange:t})=>{const n=s(null),[a,r]=i([]),o=l((e=>{r((t=>{return(n=t)===(i=e)||Boolean(n&&i&&n?.length===i?.length&&n.every(((e,t)=>e===i[t])))?t:e;var n,i})),t&&t(e)}),[t]),[c,d]=a.length?[kc()(a),Sc()(a)]:[-1,-1],m=c>0,u=d<e-1,h=l((()=>{var t;n.current&&(m?Bc(n.current)(e,-1):(t=n.current).scrollTo({left:t.scrollWidth,behavior:"smooth"}))}),[e,m]),p=l((()=>{n.current&&(u?Bc(n.current)(e,1):n.current.scrollTo({left:0,behavior:"smooth"}))}),[e,u]),g=l(((e,t={behavior:"smooth",block:"nearest",inline:"center"})=>{n?.current&&n.current.children[e]?.scrollIntoView(t)}),[n]);return[n,{scrollLeft:h,scrollRight:p,scrollTo:g,canScrollLeft:m,canScrollRight:u,visibleIndicesRange:[c,d],handleVisibleIndicesChange:o}]},Rc={"horizontal-list":"mx-auto mt-lg w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},Dc=d((({className:e="",activeIndex:t=0,dotCount:n=0,listType:i="horizontal-list",version:r,navButtons:s=[],containerRef:c,containerScroll:d})=>{const m=Ce(),[h,p]=Pc({itemCount:s.length}),g=Mc(Boolean(s?.length));a((()=>{s?.length&&t>=0&&h?.current&&p.scrollTo(t,g)}),[t]);const f=l((e=>{e!==t&&c?.current&&d?.scrollTo(e,g)}),[c?.current]);return s?.length&&!m?o(fc,{containerRef:h,snapAlign:"snap-start",itemClassName:"h-36 flex items-stretch w-screen",gap:8,children:s.map(Nc({activeIndex:t,onClick:f}))}):n?o("div",{className:u("flex gap-xs",Rc[i],r?"group":"",e,{"pb-xl":s?.length&&m}),"data-ver":r,children:Array.from({length:n}).fill(null).map(vc({activeIndex:t,onClick:f,listType:i}))}):null})),Mc=(e=!1)=>({behavior:e?"auto":"smooth"}),_c=d((({className:e,disabled:t,...n})=>o(ve,{rounded:!0,className:u("group/btn w-12 h-12 min-h-12 max-h-12 flex items-center justify-center shadow-main-black",t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main",e),disabled:t,...n,children:o(ne,{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"})}))),Ac=d((e=>o(_c,{...e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}))),Ec=d((e=>o(_c,{...e,className:`${e.className||""} rotate-180`,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"}))),zc="absolute top-0 bottom-0 z-40 hidden @lg:block w-20 pointer-events-none",Fc=d((({className:e,scroll:t,hasBlur:n,arrowsPadded:i,isBottom:a})=>{const{canScrollLeft:l,canScrollRight:r,scrollLeft:s,scrollRight:d}=t,m=i&&!a;return c("div",{className:e,children:[n?Oc(t):null,l?o(Ac,{className:u(Vc(a),m?"left-1":"left-0"),onClick:s}):null,r?o(Ec,{className:u(Vc(a),m?"right-1":"right-0"),onClick:d}):null]})})),Oc=e=>c("div",{children:[e.canScrollLeft?o("div",{className:u(zc,"left-0 bg-opacity-from-white group-data-secondary:bg-none")}):null,e.canScrollRight?o("div",{className:u(zc,"right-0 bg-opacity-to-white group-data-secondary:bg-none")}):null]}),Vc=(e=!1)=>u("absolute z-40",e?"bottom-[56px]":"top-[calc(50%-24px)]"),Lc=d((({className:e,version:t,gap:n=14,padding:i=16,visibleItemCount:a=1,listType:l="horizontal-list",snapAlign:r,minHeight:s,showArrows:d,hasBlur:m,arrowsPadded:h,showDots:p,children:g,onVisibleIndicesChange:f,navButtons:x})=>{const y=Array.isArray(g)?g.length:0,[b,v]=Pc({itemCount:y,onVisibleIndicesChange:f}),[N]=v.visibleIndicesRange;return c("div",{className:u(e,"vertical-list"===l?"relative h-full":""),children:[o(fc,{containerRef:b,activeIndex:N,visibleItemCount:a,gap:n,padding:i,listType:l,snapAlign:r,minHeight:s,onVisibleIndicesChange:v.handleVisibleIndicesChange,children:g}),o(Fc,{className:u(!d&&"hidden lg:block"),scroll:v,hasBlur:m,arrowsPadded:h,isBottom:Boolean(x?.length)}),o(Dc,{className:u(!p&&"lg:hidden"),activeIndex:N,dotCount:y,listType:l,version:t,navButtons:x,containerRef:b,containerScroll:v})]})})),jc=({blocksToRender:e,...t})=>o(Lc,{visibleItemCount:0,gap:0,arrowsPadded:!0,children:R(e,{...t.options,parent:t.block,renderProps:(e,t,n)=>o("div",{className:u("relative min-w-80",mc(!0)),children:B(e,t)},String(n))})}),qc=e=>e%2!=0,$c=d((({textNode:e,iconNode:t,tag:n,onClick:i,justifyContent:a="between",className:l,role:r,...s})=>c(n,{tag:n,className:u("flex items-center w-full gap-1","between"===a?"justify-between":"justify-center",l),onClick:i,role:r,...s,children:[e?o("div",{children:e}):null,t?o("div",{children:t}):null]}))),Uc=d((({className:e="",label:t,icon:n,dataTheme:i="pc",disabled:a=!1,onClick:l})=>o($c,{tag:"button",onClick:l,disabled:a,"data-theme":i,justifyContent:"center",role:"button",className:u("py-4 border border-transparent outline-none focus:border-primary-text space-x-s",a?"bg-main-divider text-main-disabled hover:bg-main-divider":"bg-primary-main text-white hover:bg-primary-hove",e),textNode:o(_e,{size:"text-h4",children:t}),iconNode:n?o(ne,{image:{icon:n,iconVersion:"white"},className:"my-auto",width:"20",height:"20"}):null}))),Wc=({isUnfolded:e,onToggle:t})=>o(Uc,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:["Развернуть","Скрыть"][Number(e)],onClick:t}),Hc=["ArrowDownIcon","ArrowUpIcon"],Yc="space-y-px lg:space-y-0 lg:grid lg:grid-cols-12 gap-2xs",Kc=({topItemsCount:e=0,label:t="",block:n,blocksToRender:i=[],...a})=>{const[l,r]=e>0?[i.slice(0,e),i.slice(e)]:[i,[]];return c("div",{className:u("space-y-2xs",{hidden:!i.length}),children:[c("div",{className:u(Yc),children:[R(l,{...a.options,parent:n}),qc(l.length)?o(Ot,{className:"col-span-6",...a}):null]}),o(Xi,{renderFoldableSection:({isUnfolded:e})=>c(Ji,{className:u(Yc),isUnfolded:e,children:[R(r,{...a.options,parent:n}),qc(r.length)?o(Ot,{className:"col-span-6",...a}):null]}),renderFoldButton:({isUnfolded:n,onToggle:i})=>o(Uc,{className:u({hidden:e<1}),disabled:!r?.length,label:t,icon:Hc[Number(n)],dataTheme:a.options?.page?.colorPalette,onClick:i})})]})},Gc=d((({blocksSection:e,blocksToRender:t=[],notFound:n,...i})=>{switch(e?.view){case"grid":return c("div",{children:[Xc(n,t),Kc({...e,...i,blocksToRender:t})]});case"carousel":return c("div",{className:"relative",children:[Xc(n,t),jc({...i,blocksToRender:t})]});default:return null}})),Xc=(e,t)=>e&&!t.length?o(dc,{...e}):null,Jc=e=>t=>t.reduce(((t,n,i)=>t.length?t.concat({...e,key:`sep-${i}`},n):[n]),[]),Zc=d((({value:e,onChange:t,items:n=[],multiple:i})=>n.map((n=>o(ns,{text:n?.title,value:[e].flatMap((e=>e)).includes(n.value),onChange:()=>(n=>{if(!t)return;const a=e?.includes(n);t(i?a?(e||[]).filter((e=>e!==n)):[...e||[],n]:a?[]:[n])})(n.value),type:i?"checkbox":"radio"},n.value))))),Qc=d((({children:e,filtrationSchema:t,resetButton:n,field:i,reset:a})=>c("form",{className:"flex flex-col @4xl:flex-row justify-between bg-white p-4xl gap-s @4xl:gap-0",children:[c("div",{className:"flex flex-col @4xl:flex-row gap-xl",children:[e,Jc(o("div",{className:"h-full w-px bg-gray hidden @4xl:block"}))(Object.entries(t).map(ed(i)).filter(Boolean))]}),n?o("div",{children:o(Ea,{type:"reset",className:"w-full @4xl:w-56 @4xl:ml-s",onClick:a,children:n?.text})}):null]}))),ed=e=>([t,n])=>{const i=n?.type;return"array"===i?td(t,e)(n):null},td=(e,t)=>n=>{const i=n?.items?.enum?.map(((e,t)=>({value:e,title:n?.items?.enumNames?.[t]||""})))||[];return c("div",{className:"flex-1",children:[n?.title?o("div",{className:"mb-m",children:o(_e,{size:"text-m",font:"font-medium",color:"text-primary-text",children:n.title})}):null,o(Zc,{items:i,multiple:!n?.single,...t(e)})]},e)};function nd(e,...t){return e.map(((e,n)=>[e,...t.map((e=>e[n]))]))}const id=e=>null==e||""===e||Array.isArray(e)&&0===e.length||"object"==typeof e&&0===Object.keys(e).length,ad=(e,t)=>Object.entries(e).map((([n,i])=>"number"==typeof i?Array.isArray(t[n])?((e,t)=>n=>id(t[e])||id(n[e])||n[e]?.includes(t[e]))(n,e):((e,t)=>n=>id(t[e])||id(n[e])||ld(t[e])<=ld(n[e]))(n,e):"object"==typeof i&&"min"in i&&"max"in i?((e,t)=>n=>id(t[e])||id(n[e])||ld(t[e]?.min)>=ld(n[e]?.min)&&ld(t[e]?.min)<=ld(n[e]?.max))(n,e):Array.isArray(i)?((e,t)=>n=>id(t[e])||id(n[e])||t[e]?.every((t=>n[e]?.includes(t))))(n,e):((e,t)=>n=>id(t[e])||id(n[e])||t[e]===n[e])(n,e))).every((e=>e(t))),ld=e=>Number(e||0),rd=(e,{block:t,page:n,normalize:i=Qt})=>{const a=t?.blocks||[],[l,{field:s,reset:o,update:c}]=en(e),d=r((()=>nd(a,a.map((e=>At(e.content,n?.fallback))))),[a,n?.fallback]),m=l===e?a:((e,t)=>(n=Qt)=>e?.filter((([,e])=>ad(t,n(e)||{}))).map((([e])=>e)))(d,l)(i);return[l,{blocksToRender:m,blocksWithProps:d},{field:s,reset:o,update:c}]},sd={},od={},cd=zt((({className:e,filtrationSchema:t=sd,consumerField:n={},resetButton:i,...a})=>{const[,{blocksToRender:l},{field:r,reset:s}]=rd(od,{block:a.block,page:a.options?.page}),d=o(Tn,{className:"w-64",label:n?.title,options:dd(n),...r("consumer",{parse:({key:e})=>[e],format:([e]=[])=>dd(n).find((t=>t.key===e))||{key:""}})});return c(g,{className:u(e),defaultPadding:"p-0",version:"transparent",...a,children:[o(Qc,{filtrationSchema:t,field:r,reset:s,children:c("div",{children:[d,o("div",{children:o(Ea,{type:"reset",className:"mt-lg w-64",onClick:s,version:i?.version,children:i?.text})})]})}),o(Gc,{blocksToRender:l,...a})]})}),{childrenTypes:["CarouselTariffsCard"],childSchema:e=>({...e?.filtrationSchema,...e?.consumerField?{consumer:e?.consumerField}:{}})}),dd=e=>nd(e.items?.enum||[],e.items?.enumNames||[]).map((([e,t])=>({key:e,text:t}))),md=(e=!1)=>e?"text-left":"text-center",ud={"":"bg-main-divider group-data-secondary:bg-white/30",primary:"bg-main-divider",secondary:"bg-secondary-light",opacity:"bg-white/30"},hd=d((({className:e,defaultIconSize:t=44,iconBgVersion:n="primary",size:i,icon:a,...l})=>{const r=String(i?.width||t);return a?o("div",{style:{width:`${r}px`,height:`${r}px`},className:u("rounded-icon object-fit flex justify-center items-center",ud[n],e),children:o(W,{...l,width:"54%",height:"54%",name:a})}):null})),pd=d((({className:e="",title:t,benefitList:n,...i})=>{const a=Ce();return c(g,{className:e,defaultPadding:"p-6xl",...i,children:[t?o(w,{headingType:"h3",as:"h2",className:md(a),title:t}):null,n?.length?o("div",{className:"flex flex-col @md:flex-row flex-wrap w-full @md:justify-center mt-xl gap-5xl",role:"list",children:n.map(gd)}):null]})})),gd=({label:e,description:t,__html:n,icon:i,isDotted:a=!1,iconBgVersion:l},r)=>c("div",{className:"flex gap-m items-center @md:basis-1/2 @md:max-w-[500px]",role:"listitem",children:[i?.icon?o(hd,{className:"shrink-0",iconBgVersion:l,...i}):null,i?.src?o(ne,{className:"shrink-0",image:i}):null,e?c("div",{className:"@sm:h-full space-y-xs",children:[o(w,{headingType:"h6",children:e}),o(_e,{size:"text-l",color:"text-secondary-text group-data-secondary:text-white/80",font:"font-light",children:t}),n?o(De,{__html:n,isDotted:a,itemSize:"list-s"}):null]}):null]},String(r)),fd=(e,t,n)=>{return o(Lc,{children:e.map((i=n,({icon:e,title:t,description:n},a)=>c("div",{className:u("flex flex-col gap-1","justify-between p-m h-full border border-gray",{"justify-center":!n&&!t}),children:[t?o(_e,{size:"text-h6",font:"font-normal",align:i,children:t}):null,e?o(ne,{image:e,height:"180",className:"w-auto mx-auto"}):null,n?o(_e,{size:"text-h6",font:"font-normal",align:i,children:n}):null]},String(a))))});var i},xd=d((({bonusBenefits:e,cardTextAlign:t="text-center",className:n="",columnsCount:i="4",subtitle:a,title:l,...r})=>c(g,{className:u("space-y-3xl",n),defaultPadding:"p-6xl",...r,children:[o(k,{defaultPadding:"",title:l,description:a,headlineVersion:"M"}),e?.length?fd(e,0,t):null]}))),yd={start:"justify-start",center:"justify-center",end:"justify-end"},bd=d((({buttons:e,className:t="",align:n,...i})=>{const a=n&&u("flex",yd[n]);return o(g,{className:u("!bg-transparent",a,t),defaultPadding:"p-0",...i,children:je(e)})})),vd=d((({className:e,title:t,children:n,...i})=>c(g,{className:u("space-y-xl",e),defaultPadding:"p-4xl",...i,children:[t?o(w,{className:"text-center",title:t}):null,n]}))),Nd="flex flex-col justify-between lg:flex-row gap-x-4xl gap-y-7 lg:gap-y-4xl",wd="flex flex-col lg:max-w-80 lg:w-1/2 gap-2xl",Sd="flex flex-col gap-y-xl min-w-52",Cd=d((({value:e,fractionDigits:t,fixed:n,prefix:i,postfix:a})=>o(_e,{size:"text-h3",children:"number"==typeof e?[i,We(t,{fixed:n})(e),a].filter(Boolean).join(" "):e}))),kd=d((({className:e,title:t,value:n,color:i="text-secondary-text",...a})=>c("div",{className:u("flex justify-between @xl:flex-col",e),children:[t?o(_e,{size:"text-l",font:"font-light",color:i,children:t}):null,n?o(Cd,{value:n,...a}):o(_e,{size:"text-h3",children:"-"})]}))),Id=(e,t)=>e?o(S,{size:"text-xs",font:"font-light",color:"text-secondary-text",children:e},String(t)):null,Td=d((({rate:e=0,title:t="Ставка",unit:n,fractionDigits:i=2,depositeName:a,isShowDepositeName:l,color:r="text-secondary-text"})=>c("div",{children:[o(_e,{size:"text-l",font:"font-light",color:r,children:t}),c("div",{className:"relative",children:[c("div",{className:"flex @xl:justify-center gradient-color-text",children:[o("span",{className:"font-mohave text-title-huge -mt-m tracking-[-15px]",children:We(i,{fixed:!0})(e)}),n?o("span",{className:"text-7xl mt-5",children:n}):null]}),a&&l?o("div",{className:"absolute bottom-2 w-full text-left whitespace-nowrap",children:a}):null]})]}))),Bd=d((({title:e="Ставка"})=>c("div",{className:"space-y-s min-w-96",children:[o(_e,{size:"text-l",font:"font-light",color:"text-secondary-text",children:e}),o(W,{className:"w-10 h-auto lg:w-40",name:"PercentIcon"}),o("div",{className:"w-64",children:o(S,{size:"text-xl",font:"font-light",color:"text-primary-text",children:"Процентная ставка не найдена, выберите другие параметры"})})]}))),Pd=({title:e="Ставка",rate:t=0,unit:n="%",fractionDigits:i=2,color:a="text-secondary-text",children:l,...r})=>t?c("div",{className:"flex flex-col",children:[o("div",{className:"hidden lg:block min-w-96",children:o(Td,{title:e,rate:t,unit:n,fractionDigits:i,color:a,...r})}),o(kd,{className:"lg:hidden",title:e,value:t,postfix:n,fractionDigits:i,fixed:!0,color:a,...r}),l]}):o(Bd,{title:e,...r}),Rd=({isShowItems:e=!0,step:t=1e3,postfix:n="₽",...i})=>o(rl,{items:e?[`От ${We(1)(i.min||0)} ${n}`,`До ${We(1)(i.max||0)} ${n}`]:[],step:t,...i}),Dd={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},Md={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},_d=(e,t)=>{const{travelExpenseValue:n,restExpenseValue:i}=e,[a,l]=((e,t,n)=>{const{maxBonus:i=5e3,prefMonthsNum:a=Dd.prefMonthsNum,prefTravelBonusRate:l=Dd.prefTravelBonusRate,prefRestBonusRate:r=.01,travelBonusRate:s=.015,restBonusRate:o=.01}=e,c=Math.min(Math.round(l*t)+Math.round(r*n),i);return[c,c*a+Math.min(Math.round(s*t)+Math.round(o*n),i)*(12-a)]})(t||Md,n,i);return{...t,...e,monthBonus:a,yearBonus:l}},Ad=zt((({className:e="",title:t,calcSource:n,buttons:i,footnote:a,...l})=>{const[r,{field:s}]=en({travelExpenseValue:6e3,restExpenseValue:6e3}),{minSumTravel:d,maxSumTravel:m,minSumOther:h,maxSumOther:p,monthBonus:g,yearBonus:f}=_d(r,n);return o(vd,{className:e,title:t,...l,children:c("section",{className:u(Nd,e),children:[c("div",{className:wd,children:[Rd({title:"Сумма покупок в категории путешествия, ₽",min:d,max:m,step:500,isShowItems:!1,...s("travelExpenseValue")}),Rd({title:"Сумма покупок в остальных категориях, ₽",min:h,max:p,step:500,isShowItems:!1,...s("restExpenseValue")})]}),o("div",{className:"mb-s",children:g>=0?Pd({title:"Баллов за месяц",rate:g,fractionDigits:0,unit:"",color:"text-primary-text"}):null}),c("div",{className:Sd,children:[f>=0?o(kd,{title:"Баллов за год",value:f,color:"text-primary-text"}):null,je(i,{isVertical:!0}),Id(a)]})]})})})),Ed=Math.round(29.5),zd=(e,t=0)=>e?.sum?e.sum:t,Fd=(e,t=0)=>e?.period&&e.period>=1&&e.period<=60?e.period:t,Od=e=>`${e} ${Number(e)%10==1?"дня":"дней"}`,Vd=({items:e,title:t,mobileTitle:n=t,orientation:i="horizontal",value:a,onChange:l,...r})=>c("div",{className:"grid gap-s whitespace-nowrap",children:[t?o("div",{className:"hidden @5xl:block",role:"radiogroup","aria-label":t,children:o(_e,{color:"text-secondary-text",font:"font-light",children:t})}):null,n?o("div",{className:"@5xl:hidden",role:"radiogroup","aria-label":n,children:o(_e,{color:"text-secondary-text",font:"font-light",children:n})}):null,o(sr,{orientation:i,items:e,value:e[a?0:1].id,onChange:t=>l&&l(t===e[0].id),...r})]}),Ld=e=>Vd({...e,items:[{id:"everyMonth",text:"Ежемесячно"},{id:"atEndTerm",text:"В конце срока"}]}),jd=" (c капитализацией)",qd=({income:e,finalSum:t,postfix:n="₽",buttons:i=[],footnotes:a=[],isCapitalization:l=!1})=>c("div",{className:Sd,children:[o(kd,{title:`Доход в конце срока${l?jd:""}`,value:e,postfix:n,prefix:"+"}),o(kd,{title:`Сумма в конце срока${l?jd:""}`,value:t,postfix:n}),je(i,{isVertical:!0}),a?.map(Id)]}),$d=([e,t],n,i=[])=>n&&n[e]&&n[t]?{[e]:n[e],[t]:n[t]}:Ud([e,t],i),Ud=([e,t],n=[])=>({[e]:n.length?Ic(n.filter((t=>"number"==typeof t[e])).map((t=>t[e]))):0,[t]:n.length?Cc(n.filter((t=>"number"==typeof t[e])).map((e=>e[t]))):0}),Wd=(e,[t,n],i)=>e>=i[t]&&e<=i[n],Hd={UL:"businessdepositrates",IP:"selfemployeddepositrates"};const Yd={minSum:1e3,maxSum:100000001,minDays:1,maxDays:1095,rate:0,isMonthlyInterestPayment:!0,isReplenished:!1,isPartialWithdrawal:!1,depositeName:"Депозит 'Стабильный'"},Kd=(e,t)=>{const{daysValue:n,moneyValue:i,isPartialWithdrawal:a,isReplenished:l,isMonthlyInterestPayment:r}=e,s=l||a,o=n<90||n>730,c=function(e){const t=e?.rateType?Hd[e?.rateType]:"",{data:n}=ci(t?`/api/v1/depositrates/${t}`:null,Rt);return Array.isArray(n)?n:[]}(t),d=c?.find((e=>r===e.isMonthlyInterestPayment&&Gd(s,e)&&Wd(i,["minSum","maxSum"],e)&&Wd(n,["minDays","maxDays"],e)))||Yd,{rate:m}=d,u=Xd(m,e),h=i+u,p=c||[Yd];return{...d,...Ud(["minSum","maxSum"],p),...Ud(["minDays","maxDays"],p),...e,isDisabledOperatingDeposit:o,income:u,finalSum:h}},Gd=(e,t)=>e?t.isReplenished&&t.isPartialWithdrawal:!t.isReplenished&&!t.isPartialWithdrawal,Xd=(e,t)=>{const{isMonthlyInterestPayment:n,moneyValue:i,daysValue:a}=t;return n?Math.round(i*Math.pow((1200+e)/1200,a/30)-i):Math.round(i*e*a/365/100)},Jd=zt((({className:e="",title:t,buttons:n,footnote:i,bottomFootnote:a,isShowDepositeName:l,defaultParams:r,rateParams:s,...d})=>{const[m,{field:h}]=en({moneyValue:zd(r,1e5),daysValue:Fd(r,60),isReplenished:Boolean(r?.isReplenished),isPartialWithdrawal:Boolean(r?.isPartialWithdrawal),isMonthlyInterestPayment:Boolean(r?.isMonthlyInterestPayment)}),p=Kd(m,s),{income:g,finalSum:f,rate:x,depositeName:y}=p;return o(vd,{className:e,title:t,...d,children:c("section",{className:u(Nd,e),children:[c("div",{className:wd,children:[Rd({title:"Сумма, ₽",min:p.minSum,max:p.maxSum,...h("moneyValue"),value:p.moneyValue}),(b={title:"Срок, дней",min:p.minDays,max:p.maxDays,...h("daysValue"),value:p.daysValue},o(rl,{items:[`От ${Od(b.min||0)}`,`До ${Od(b.max||0)}`],step:1,...b})),c("div",{className:"flex flex-col sm:flex-row gap-y-m gap-x-5xl",children:[Zd(p,h),Ld({title:"Выплата процентов",orientation:"vertical",...h("isMonthlyInterestPayment"),className:"sm:flex-col"})]})]}),Pd({rate:x,depositeName:y,isShowDepositeName:l}),qd({income:g,finalSum:f,buttons:n,footnotes:[i,a]})]})});var b})),Zd=(e,t)=>c("div",{className:"space-y-s",children:[o(_e,{color:"text-secondary-text",font:"font-light",children:"Параметры"}),c("div",{className:"flex flex-col gap-y-lg sm:gap-y-s",children:[o(Ni,{text:"Пополнение",disabled:e.isDisabledOperatingDeposit,...t("isReplenished"),value:e.isReplenished}),o(Ni,{disabled:e.isDisabledOperatingDeposit,text:"Частичное снятие",...t("isPartialWithdrawal"),value:e.isPartialWithdrawal})]})]}),Qd=(e=[],t=!1)=>em([(e,t)=>e>t,(e,t)=>e?.minSum<t?.minSum],e?.filter((e=>t===Boolean(e?.isNewClient)))),em=(e,t)=>{if(!t?.length)return;const n=t?.reduce(((t,n)=>e[0](n.rate,t[0].rate)?[n]:n.rate===t[0].rate?[...t,n]:t),[t[0]]);return n.length>1?n.reduce(((t,n)=>e[1](n,t)?n:t),n[0]):n[0]},tm=({min:e=0,max:t=0,availableMonths:n,...i})=>o(rl,{items:[`От ${nm(e)}`,`До ${nm(t)}`],step:1,...n?.length?{list:n}:{min:e,max:t},...i}),nm=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`,im=e=>Vd({...e,className:"sm:flex-col",items:[{id:"annuity",text:"Аннуитетный"},{id:"differential",text:"Дифференцированный"}]}),am=({field:e,defParams:t,calcParams:n,map:i,monthsValue:a="maxMonths"})=>{Object.entries(i).forEach((([n,i])=>{e?.(n)?.onChange?.(t?.[i])})),e?.("monthsValue")?.onChange?.(tl(t?.[a],n.minMonths,n.maxMonths))},lm=(e,t)=>{const{isAnnuity:n,moneyValue:i,monthsValue:a,moneyExtra:l}=t;if(0===e)return 0;if(n){const t=e/1200;return l?(i+l)*(t+t/(Math.pow(1+t,a)-1)):i*(t+t/(Math.pow(1+t,a)-1))}return Math.round(i/a)+i*(e/1200)},rm={minSum:1e4,maxSum:5e6,minMonths:1,maxMonths:60,rate:0,isSalaryClient:!1,isPensionClient:!1,isStateEmployee:!1,isInsurance:!0},sm=e=>om({...e,fieldKey:"isSalaryClient",viewSettingFieldKey:"isShowSalaryClient"})&&om({...e,fieldKey:"isStateEmployee",viewSettingFieldKey:"isShowStateEmployee"})&&om({...e,fieldKey:"isPensionClient",viewSettingFieldKey:"isShowPensionClient"})&&om({...e,fieldKey:"isInsurance",viewSettingFieldKey:"isShowInsurance"}),om=({row:e,userInputParams:t,paramsViewSettings:n,fieldKey:i,viewSettingFieldKey:a})=>!!n&&!n[a]||t[i]===e[i],cm=(e,t,n)=>{const{moneyValue:i,monthsValue:a}=e,l=t?.rateRows||[rm],r=(({limitRows:e,userInputParams:t,paramsViewSettings:n})=>e?.find((e=>sm({row:e,userInputParams:t,paramsViewSettings:n}))))({limitRows:t?.limitRows||[],userInputParams:e,paramsViewSettings:n}),{minSum:s,maxSum:o}=$d(["minSum","maxSum"],r,l),{minMonths:c,maxMonths:d}=$d(["minMonths","maxMonths"],r,l),m=(({rateRows:e=[],userInputParams:t,paramsViewSettings:n,moneyValue:i,monthsValue:a})=>e?.find((e=>sm({row:e,userInputParams:t,paramsViewSettings:n})&&Wd(i,["minSum","maxSum"],e)&&Wd(a,["minMonths","maxMonths"],e)))||rm)({rateRows:l,userInputParams:e,paramsViewSettings:n,moneyValue:i,monthsValue:a}),{rate:u}=m,h=lm(u,e);return{...m,...e,minSum:s,maxSum:o,minMonths:c,maxMonths:d,moneyValue:i,monthsValue:a,monthlyPayment:h}},dm=(e={})=>Boolean(Object.values(e).filter((e=>e)).length),mm={isSalaryClient:"isSalaryClient",isStateEmployee:"isStateEmployee",isPensionClient:"isPensionClient",isInsurance:"isInsurance",moneyValue:"maxSum"},um=zt((({className:e,title:t,calcSource:n,buttons:i,footnote:l,paramsViewSettings:r,defaultParams:s,registerSubmit:d,...m})=>{const h=(p=n?.rateRows,em([(e,t)=>e<t,(e,t)=>e?.maxSum>t?.maxSum],p));var p;const[g,{field:f,onSubmit:x}]=en({moneyValue:zd(s,2e5),monthsValue:Fd(s,Ed),isAnnuity:Boolean(s?.isAnnuity),isInsurance:Boolean(s?.isEnableInsurance),isSalaryClient:Boolean(s?.isEnableSalaryClient),isPensionClient:Boolean(s?.isEnablePensionClient),isStateEmployee:Boolean(s?.isEnableStateEmployee)});d?.(x);const y=cm(g,n,r),b=im({title:"Тип платежа",orientation:"vertical",...f("isAnnuity")}),{onChange:v}=f("moneyValue"),{onChange:N}=f("monthsValue");return a((()=>{v&&v(tl(g.moneyValue,y.minSum,y.maxSum))}),[y.minSum,y.maxSum]),a((()=>{N&&N(tl(g.monthsValue,y.minMonths,y.maxMonths))}),[y.minMonths,y.maxMonths]),a((()=>{!dm(s)&&h&&am({field:f,defParams:h,calcParams:y,map:mm,monthsValue:"minMonths"})}),[n,s]),o(vd,{className:e,title:t,...m,children:c("section",{className:u(Nd,e),children:[c("div",{className:wd,children:[Rd({title:"Сумма кредита, ₽",step:500,min:y.minSum,max:y.maxSum,...f("moneyValue"),value:y.moneyValue}),tm({title:"Срок кредита, месяцев",min:y.minMonths,max:y.maxMonths,...f("monthsValue"),value:y.monthsValue}),hm({...y,...r},f),o("div",{className:"sm:hidden",children:b})]}),c("div",{className:u(Sd,"@4xl:w-1/2"),children:[o(kd,{title:"Полная стоимость кредита",value:n?.totalLoanCost}),o(kd,{title:"Ставка",value:y?.rate,fractionDigits:2,postfix:"%"}),o(kd,{title:"Ежемесячный платёж",value:y.monthlyPayment,postfix:"₽"}),o("div",{className:"hidden sm:block mb-lg",children:b}),je(i,{isVertical:!0}),Id(l)]})]})})})),hm=(e,t)=>c("div",{className:"flex flex-col gap-y-2xl",children:[e.isShowSalaryClient?o(Ni,{text:"Получаю зарплату на счёт\nв Россельхозбанке",...t("isSalaryClient"),value:e.isSalaryClient,className:"whitespace-pre-line sm:whitespace-normal"}):null,e.isShowStateEmployee?o(Ni,{text:"Работаю в бюджетной организации",...t("isStateEmployee"),value:e.isStateEmployee}):null,e.isShowPensionClient?o(Ni,{text:"Получаю пенсию на карту Россельхозбанка",...t("isPensionClient"),value:e.isPensionClient}):null,e.isShowInsurance?o(Ni,{text:"Комплексная страховая защита",...t("isInsurance"),value:e.isInsurance}):null]}),pm=e=>{const t=[...e];t.sort((([e],[t])=>e-t));let n=1;for(;n<t.length;){const[e,i]=t[n-1],[a,l]=t[n];i>=a?t.splice(n-1,2,[e,Math.max(i,l)]):n++}return t},gm={minSum:5e4,maxSum:100000001,minMonths:2,maxMonths:10,rate:0,isMonthlyInterestPayment:!0,isRemoteRegistration:!0,isReplenish:!1,isWithdrawn:!1,type:""},fm=(e,t,n)=>{const{moneyValue:i,monthsValue:a}=e,l=t?.[0]?bm(t[0].minMonths,t[0].maxMonths):0,r=!n?.isShowMonthlyInterestPayment,s=!n?.isShowRemoteRegistration,o=!n?.isShowReplenish,c=!n?.isShowWithdrawn,d=!n?.isShowNewClient,m=t?.find((t=>[ym({row:t,userInputParams:e,paramKey:"isReplenish",isExclude:o}),ym({row:t,userInputParams:e,paramKey:"isWithdrawn",isExclude:c}),ym({row:t,userInputParams:e,paramKey:"isMonthlyInterestPayment",isExclude:r}),ym({row:t,userInputParams:e,paramKey:"isRemoteRegistration",isExclude:s}),d||e?.isNewClient===t?.isNewClient,Wd(i,["minSum","maxSum"],t),Wd(a||l,["minMonths","maxMonths"],t)].every(Boolean)))||gm,{rate:u}=m,h=xm(u,e),p=i+h,g=t||[gm];return{...m,...Ud(["minSum","maxSum"],g),...Ud(["minMonths","maxMonths"],g),availableMonths:pm(g.map((e=>[e.minMonths,e.maxMonths]))).flatMap((([e,t])=>((e,t,n=1)=>Array.from({length:Math.abs(t-e)/n+1},((i,a)=>t>=e?e+a*n:e-a*n)))(e,t))),...e,defaultMonth:l,income:h,finalSum:p}},xm=(e,t)=>{const{isMonthlyInterestPayment:n,moneyValue:i,monthsValue:a}=t;return n?Math.round(i*Math.pow((1200+e)/1200,a)-i):Math.round(i*e*30*a/365/100)},ym=({row:e,userInputParams:t,paramKey:n,isExclude:i})=>i||t[n]===e[n],bm=(e,t)=>e+Math.round((t-e)/2),vm=(e="rub")=>"rub"===e,Nm=(e,t)=>{const{minMonths:n,maxMonths:i}=Ud(["minMonths","maxMonths"],km(t,e?.currency)),a=e.monthsValue||Math.round((n+i)/2);return{monthsValue:tl(a,n,i)}},wm=(e,t)=>{const{minSum:n,maxSum:i}=Ud(["minSum","maxSum"],km(t,e?.currency)),a=e.moneyValue||n;return{moneyValue:tl(a,n,i)}},Sm=(e,t)=>({currency:e?.currency??t?.map((e=>e.currency))?.[0]}),Cm=e=>{const t=vm(e?.currency?.key);return{isReplenish:t&&e?.isReplenish,isWithdrawn:t&&e?.isWithdrawn}},km=(e,t)=>{const{rates:n}=e?.find((e=>e?.currency.key===t?.key))??{};return n??e?.[0]?.rates},Im=(e,t)=>{const n="rub"!==e?.currency?.key;return c("div",{className:"grid gap-lg",children:[c("div",{className:"flex gap-lg",children:[e.isShowReplenish?Vd({title:"Пополнение",...t("isReplenish"),value:e.isReplenish,orientation:"vertical",items:[{id:"withReplenish",text:"С пополнением"},{id:"withoutReplenish",text:"Без пополнения"}],disabled:n}):null,e.isShowWithdrawn?Vd({title:"Снятие",...t("isWithdrawn"),value:e.isWithdrawn,orientation:"vertical",items:[{id:"wthDrawn",text:"Со снятием"},{id:"noWithdrawn",text:"Без снятия"}],disabled:n}):null]}),Tm(e.isShowReplenish||e.isShowWithdrawn),c("div",{className:"flex gap-lg",children:[e.isShowMonthlyInterestPayment?Ld({title:"Выплата процентов",...t("isMonthlyInterestPayment"),value:e.isMonthlyInterestPayment,orientation:"vertical"}):null,e.isShowRemoteRegistration?(i={title:"Оформление",...t("isRemoteRegistration"),value:e.isRemoteRegistration,orientation:"vertical"},Vd({...i,items:[{id:"remote",text:"Дистанционно"},{id:"office",text:"Офис Банка"}]})):null]}),Tm(e.isShowNewClient),e.isShowNewClient?o(Ni,{text:"Новый вкладчик",...t("isNewClient")}):null]});var i},Tm=(e=!1)=>e?o("div",{className:"border-b border-main-divider w-full"}):null,Bm={isMonthlyInterestPayment:"isMonthlyInterestPayment",isRemoteRegistration:"isRemoteRegistration",isReplenish:"isReplenish",isWithdrawn:"isWithdrawn",moneyValue:"minSum"},Pm={text:"₽",key:"rub"},Rm=zt((({className:e,title:t,calcSource:n,buttons:i=[],footnote:r="",paramsViewSettings:s,defaultParams:d,...m})=>{const{rows:h}=n??{},p=h?.map((e=>e.currency))??[Pm],g=l((e=>t=>e?{...t,...Cm(t),...wm(t,e),...Nm(t,e),...Sm(t,e)}:t)(h),[h]),[f,{field:x}]=en({moneyValue:zd(d,2e4),monthsValue:Fd(d,1),isMonthlyInterestPayment:Boolean(d?.isMonthlyInterestPayment),isRemoteRegistration:Boolean(d?.isRemoteRegistration),isReplenish:Boolean(d?.isReplenish),isWithdrawn:Boolean(d?.isWithdrawn),isNewClient:Boolean(d?.isNewClient),currency:Pm},{normalize:g}),y=x?.("currency")?.value??Pm,b=x?.("isNewClient")?.value,v=km(h,y),N=fm(f,v,s),{rate:w,income:S,finalSum:C,type:k=""}=N,I=l((()=>{am({field:x,defParams:Qd(v,b),calcParams:N,monthsValue:"minMonths",map:Bm})}),[x,h]);a((()=>{!dm(d)&&v&&I()}),[d,h]);const T=w===Qd(v,b)?.rate;return o(vd,{className:e,title:t,...m,children:c("section",{className:u(Nd,e),children:[c("div",{className:wd,children:[c("div",{className:"flex gap-m",children:[Rd({className:"w-full",title:`Сумма, ${y?.text}`,min:N.minSum,max:N.maxSum,...x("moneyValue"),value:N.moneyValue,postfix:y?.text,step:Dm(y?.key)}),h&&h?.length>1?o(Dn,{label:"Валюта",options:p,...x("currency")}):null]}),tm({title:"Срок, месяцев",min:N.minMonths,max:N.maxMonths,availableMonths:N.availableMonths,...x("monthsValue"),value:N.monthsValue}),Im({...N,...s},x)]}),Pd({rate:w,children:_m(I,T)}),qd({income:S,finalSum:C,buttons:[...i,Mm(n?.buttons,k)],footnotes:[r],postfix:y?.text,isCapitalization:x("isMonthlyInterestPayment").value})]})})})),Dm=(e="")=>vm(e)?1e3:100,Mm=(e=[],t="")=>{const{type:n,...i}=e.find((e=>e.type===t))??{};return i},_m=(e,t=!1)=>t?null:o(Ea,{type:"button",version:"secondary",onClick:e,children:"Показать максимальную ставку"}),Am=e=>Em({...e,fieldKey:"isSalaryClient",viewSettingFieldKey:"isShowSalaryClient"})&&Em({...e,fieldKey:"isInsurance",viewSettingFieldKey:"isShowInsurance"}),Em=({row:e,userInputParams:t,paramsViewSettings:n,fieldKey:i,viewSettingFieldKey:a})=>!!n&&!n[a]||t[i]===e[i],zm={minSum:1e4,maxSum:3e6,minSumOld:0,maxSumOld:25e5,minSumExtra:0,maxSumExtra:5e5,minMonths:13,maxMonths:60,rate:0,isExtraMoney:!1,isSalaryClient:!1,isInsurance:!0},Fm=(e,t,n)=>{const{moneyValue:i,monthsValue:a,oldMonthlyPayment:l,moneyExtra:r}=e,s=t?.rateRows||[zm],o=(({limitRows:e,userInputParams:t,paramsViewSettings:n})=>e?.find((e=>Am({row:e,userInputParams:t,paramsViewSettings:n}))))({limitRows:t?.limitRows||[],userInputParams:e,paramsViewSettings:n}),{minSum:c,maxSum:d}=$d(["minSum","maxSum"],o,s),{minMonths:m,maxMonths:u}=$d(["minMonths","maxMonths"],o,s),h=(({rateRows:e=[],userInputParams:t,paramsViewSettings:n,moneyValue:i,monthsValue:a,oldMonthlyPayment:l,moneyExtra:r})=>e?.find((e=>Am({row:e,userInputParams:t,paramsViewSettings:n})&&Wd(i+r,["minSum","maxSum"],e)&&Wd(l,["minSumOld","maxSumOld"],e)&&Wd(r,["minSumExtra","maxSumExtra"],e)&&Wd(a,["minMonths","maxMonths"],e)))||zm)({rateRows:s,userInputParams:e,paramsViewSettings:n,moneyValue:i,monthsValue:a,oldMonthlyPayment:l,moneyExtra:r}),{rate:p}=h,g=lm(p,e),f=e.oldMonthlyPayment-g;return{...h,...e,minSum:c,maxSum:d,minMonths:m,maxMonths:u,moneyValue:i,monthsValue:a,oldMonthlyPayment:l,moneyExtra:r,monthlyPayment:g,benefit:f}},Om=zt((({className:e="",title:t,calcSource:n,buttons:i,footnote:a,paramsViewSettings:l,...r})=>{const[s,{field:d}]=en({isAnnuity:!0,isInsurance:!0,isSalaryClient:!1,isExtraMoney:!1,moneyValue:7e5,oldMonthlyPayment:0,monthsValue:48,moneyExtra:0}),m=Fm(s,n,l),h=im({title:"",mobileTitle:"Тип платежа",orientation:"vertical",...d("isAnnuity")});return o(vd,{className:e,title:t,...r,children:c("section",{className:u(Nd,e),children:[c("div",{className:wd,children:[Rd({title:"Остаток долга в других банках, ₽ ",step:500,min:m.minSum,max:m.maxSum-m.maxSumExtra,...d("moneyValue"),value:m.moneyValue}),Rd({title:"Ежемесячный платёж в других банках, ₽",step:500,min:m.minSumOld,max:m.maxSumOld,...d("oldMonthlyPayment"),value:m.oldMonthlyPayment}),tm({title:"Новый срок кредита, месяцев",min:m.minMonths,max:m.maxMonths,...d("monthsValue"),value:m.monthsValue}),Vm({...m,...l},d),m.isExtraMoney?Rd({title:"Дополнительная сумма, ₽ ",step:500,min:m.minSumExtra,max:m.maxSumExtra,...d("moneyExtra"),value:m.moneyExtra}):null,o("div",{className:"sm:hidden pt-1 pb-4 border-b border-main-divider",children:h})]}),c("div",{className:u(Sd,"@4xl:w-1/2"),children:[o(kd,{title:"Полная стоимость кредита",value:n?.totalLoanCost}),o(kd,{title:"Ставка",value:m?.rate,fractionDigits:2,postfix:"%"}),o(kd,{title:"Ежемесячный платёж",value:m.monthlyPayment,postfix:"₽"}),m.benefit>0?o(kd,{title:"Выгода в месяц",value:m.benefit,postfix:"₽"}):null,o("div",{className:"hidden sm:block mb-lg",children:h}),je(i,{isVertical:!0}),Id(a)]})]})})})),Vm=(e,t)=>c("div",{className:"space-y-lg sm:space-y-s",children:[e.isShowSalaryClient?o(Ni,{text:"Получаю зарплату на счёт в Россельхозбанке",...t("isSalaryClient"),value:e.isSalaryClient}):null,e.isShowInsurance?o(Ni,{text:"Комплексная страховая защита",...t("isInsurance"),value:e.isInsurance}):null,o(Ni,{text:"Получить дополнительную сумму",...t("isExtraMoney"),value:e.isExtraMoney})]}),Lm=d((e=>{const{onChange:t,min:n,max:i,defaultValue:a="0",fractionDigits:r=0,...s}=e,c=el(e,{normalize:(e=a)=>n&&i?String(tl(Number(jm(e)),n,i)):jm(e),format:We(r)}),d=l((e=>t&&t(jm(e))),[t]);return o(un,{onChange:d,...s,...c})})),jm=(e="")=>e.replaceAll(",",".").replace(/[^\d.]/g,"").replace(/([^.]*\.[^.]*)\./,"$1"),qm=d((e=>o(Lm,{...e,fractionDigits:2,children:o("div",{className:"absolute right-4 bottom-4",children:o(_e,{size:"text-xl",font:"font-light",children:"₽"})})}))),$m={private:"https://old.rshb.ru/p2p/",business:"https://old.rshb.ru/smallbusiness/p2p/"},Um={amount:1500},Wm=d((({className:e="",title:t="Укажите сумму перевода",label:n="Сумма перевода",button:l,formType:r="private",...s})=>{const[{amount:d},{field:m}]=en(Um),[h,p]=i(!1);return a((()=>{p(d<=0)}),[d]),c(g,{className:u("flex flex-col items-center",e),defaultPadding:"p-6xl",...s,children:[t?o(w,{className:"pb-lg xl:pb-4xl self-start xl:self-center",headingType:"h3",title:t}):null,c("form",{className:"w-full xl:max-w-[468px]",method:"POST",action:$m[r],children:[o(qm,{valid:!h,label:n,max:3e5,min:1,...m("amount",{parse:Number,format:String})}),o("input",{type:"hidden",name:"amount",value:d}),l?.text?o(Ea,{className:"w-full mt-lg",type:"submit",disabled:h,children:l.text}):null]})]})})),Hm=({className:e,text:t="ХИТ"}={})=>c("div",{className:u("w-14 h-14 bg-white flex flex-col items-center justify-center rounded-md shadow-main-black",e),children:[o(W,{iconVersion:"black",name:"HeartIcon",width:"24",height:"24"}),o(S,{size:"text-s",font:"font-normal",align:"text-center",color:"text-primary-text",children:t})]}),Ym="relative h-full",Km={small:"lg:min-w-64",normal:"lg:min-w-80 xl:min-w-96",big:"lg:min-w-[515px]"},Gm=({noCardBorder:e,cardSize:t="normal",isNavButtons:n=!1,...i})=>{const{blocks:a}=i.block||{},l=a?.some(Zm),r=n?{defaultPadding:"p-6xl pb-m"}:{};return D({...i,renderProps:(n,i,a)=>c("div",{className:Xm(n,{someCardsHighlighted:l}),children:[B(n,i,{className:Jm(n,{someCardsHighlighted:l,showBorder:!e,cardSize:t}),...r,blockIndex:a}),Zm(n)?Hm({className:"absolute top-0 -right-4 z-40"}):null]},String(a))})},Xm=(e,{someCardsHighlighted:t})=>u(Ym,t&&(Zm(e)?"pt-3xl":"pt-3xl sm:pt-16")),Jm=(e,{someCardsHighlighted:t,showBorder:n,cardSize:i="normal"})=>u(Ym,"min-w-80",Km[i],t&&(Zm(e)?"pt-3xl sm:pt-16":"pt-3xl"),mc(n),n&&"h-full"),Zm=e=>e?.content&&"isHighlighting"in e.content&&e.content.isHighlighting,Qm=zt((({className:e,visibleItemCount:t=0,noCardBorder:n,arrowsPadded:i=!0,isGap:a=!0,cardSize:l="normal",isNavButtons:r=!1,...s})=>o(g,{className:u(e),defaultPadding:"p-6xl",...s,children:o(Lc,{className:u("relative max-w-full"),visibleItemCount:t,snapAlign:"snap-start",gap:a?16:0,padding:0,arrowsPadded:i,navButtons:r?eu(s?.block?.blocks):[],hasBlur:!0,children:Gm({noCardBorder:n,cardSize:l,isNavButtons:r,...s})})})),{childrenTypes:["CarouselCard","CarouselCatalogCard","CarouselRecommendationCard","CarouselTariffsCard","RichTextBlock","ProductBlock"],childSchema:()=>({isHighlighting:{title:"Выделить карточку",type:"boolean"}})}),eu=e=>e?.map((e=>{const t=e?.content;return{title:t?.title,description:t?.additionalDescription||t?.description}}))??[],tu="z-10 border border-solid w-full h-full",nu=u(tu,"absolute hidden @xl:block border-transparent"),iu=d((({className:e,title:t,description:n,button:i,...a})=>o(g,{className:u("sm:pl-6xl sm:pb-4xl @container-normal",e),defaultPadding:"p-0",...a,children:c("div",{className:"relative h-full",children:[o("div",{className:u(nu,"top-9 right-12 bg-green-dark")}),o("div",{className:u(nu,"top-6 right-8 bg-green")}),o("div",{className:u(nu,"top-3 right-4 bg-green-light")}),c("div",{className:u(tu,"relative p-xl sm:p-5xl bg-white border-transparent sm:border-green-more-light"),children:[o(k,{title:t,description:n,headlineVersion:"XS",align:"text-left",isEmbedded:!0}),je([i],{className:"mt-m sm:mt-6xl sm:justify-center",isVertical:!0})]})]})}))),au={black:"bg-black",white:"bg-white"},lu=d((({className:e="",title:t,description:n,image:i,price:a,button:l,colors:r=[],align:s="text-left",padding:d,...m})=>o(g,{className:u("flex flex-col justify-left",e),defaultPadding:"p-2xl",...m,children:c(Te,{className:"h-full",padding:d,title:o(k,{title:t,description:n,headlineVersion:"XS",isEmbedded:!0,align:s}),rightImage:i?.src?o(ne,{className:"flex justify-center align-center mb-xl",image:i}):null,buttons:je([l],{buttonClassName:"w-full self-end"}),children:[r?.length?c("div",{className:"flex text-secondary-text mb-m",children:[o("div",{className:"mr-xs",children:o(_e,{size:"text-s",align:"text-left",font:"font-light",children:"Цвета:"})}),r.map(ru)]}):null,a?c(_e,{size:"text-h3",align:"text-left",children:[a," ₽"]}):null]})}))),ru=(e,t)=>o("figure",{className:`w-6 h-6 ml-s border border-solid border-main-divider rounded-full ${au[e]}`},String(t)),su=d((({icon:e,...t})=>{const n=he(),{text:i,href:a,target:l,onClick:r}=n(t);return i?o("div",{className:u("p-3 rounded-lg bg-white text-secondary-text flex justify-center"),children:o("a",{role:"link",href:a,target:l,onClick:r,children:c("div",{className:"flex flex-col items-center gap-3 break-words max-w-[150px]",children:[e?o(ne,{className:"w-7 h-7 md:w-12 md:h-12",image:{...e,iconVersion:e?.iconVersion},alt:i}):null,o("div",{className:"font-light md:font-normal text-primary-text text-center text-xs md:text-sm whitespace-wrap",children:i})]})})}):null})),ou=d((({className:e,additionalDescription:t,description:n,links:i,title:a,...l})=>o(g,{defaultPadding:"p-5xl",className:u("overflow-hidden",e),...l,children:c("div",{className:"flex flex-col lg:flex-row gap-5 justify-between",children:[c("div",{className:"flex-1",children:[o(k,{isEmbedded:!0,title:a,description:n,as:"h1",align:"text-left",headlineVersion:"XL"}),o(k,{className:"pt-m",description:t,align:"text-left",isEmbedded:!0})]}),i?.length?cu(i):null]})}))),cu=e=>o("div",{className:u("lg:grid-cols-9 lg:[&>*]:col-span-2 lg:[&>*:nth-child(14n+2)]:col-span-3 lg:[&>*:nth-child(7n+5)]:col-span-3","lg:[&>*:nth-child(7n+6)]:col-span-3 lg:[&>*:nth-child(7n+7)]:col-span-3 lg:[&>*:nth-child(14n+10)]:col-span-3 lg:w-3/6","grid-cols-3 max-lg:[&>*:not(:nth-child(-n+3)):nth-child(4n+3)]:col-span-2 max-lg:[&>*:not(:nth-child(-n+3)):nth-child(4n+4)]:col-span-2","grid gap-3 lg:gap-5"),children:e.map(((e,t)=>o(su,{...e},String(t))))}),du=(e,t)=>e?.map((({aspectName:e,params:n})=>({aspectName:e,params:"mindboxEvent"===e?{...n,eventJson:t}:n}))),mu=d((({className:e="",href:t,target:n,onClick:i,data:a,children:l})=>{const r=he()({href:t,target:n,onClick:i});return o(t?"a":"div",{className:u("block",e),...t?r:{},role:t?"link":"none",...ge(a),children:l})})),uu=[{origins:["t.me","telegram.org"],iconMapped:{icon:"TelegramIcon"}},{origins:["vk.com"],iconMapped:{icon:"VKIcon"}},{origins:["ok.ru"],iconMapped:{icon:"OkIcon"}},{origins:["apps.apple.com"],iconMapped:{icon:"AppleIcon"}},{origins:["play.google.com"],iconMapped:{icon:"PlayMarketIcon"}},{origins:["appgallery.huawei.com"],iconMapped:{icon:"HuaweiIcon"}},{origins:["youtube.com"],iconMapped:{icon:"YoutubeIcon"}},{origins:["rutube.ru"],iconMapped:{icon:"RutubeIcon"}},{origins:["dzen.ru"],iconMapped:{icon:"DzenIcon"}},{origins:["rustore.ru"],iconMapped:{icon:"RustoreIcon"}}],hu=d((({className:e="",media:t,showButtonText:n,stretched:a,version:l="white",children:r})=>{if(!t?.length)return null;const[s,d]=i(),m=t?.map((e=>{const{href:t,icon:i,text:a}=e,{iconMapped:r}=(e=>uu.find((({origins:t})=>t?.some((t=>e?.includes(t)))))||{})(t),o=Le(i)?i:r,c=n?{text:a}:{text:""},m=e?.icon?.iconVersion||"color";return!s&&a&&d(!0),{...e,...c,icon:{...o,iconVersion:m},version:e?.version??l}})),h=u("border border-solid hover:border-transparent border-main-divider","group-data-primary:border-main-divider group-data-gray:border-green group/media",{"basis-auto":!n&&!s},pu(a));return c("div",{className:u("flex flex-col gap-m xl:gap-xs",e),"aria-label":"Социальные сети",children:[o("div",{className:"flex gap-xs",children:je(m,{className:gu(s??!1,a??!1,n),buttonClassName:h})}),r?o(_e,{size:"text-s",font:"font-light",color:"text-secondary-text",children:r}):null]})})),pu=(e=!1)=>e?"flex-1 @lg:flex-initial justify-center":"",gu=(e,t,n=!1)=>u(e||t?"basis-full":"",t&&(!n||!e)?"flex-nowrap":""),fu=d((({className:e,padding:t,description:n,additionalDescription:i,href:a,icon:l,isDotted:r,__html:s,socialMedia:d=[],target:m,title:h,align:p="text-left",benefits:f,imageOptions:{directionRight:x=!0,isImageAlwaysOnRight:y=false,isImageSecondary:b=!1}={},data:v,...N})=>o(g,{className:u("relative min-h-28 group-data-gray:bg-main-divider/50",e),defaultPadding:"p-0",...N,children:o(mu,{href:a,target:m,className:"h-full",data:du(v),children:c(Te,{className:"h-full",defaultPadding:"p-2xl",padding:t,insetTitle:o(k,{title:h,description:n,headlineVersion:"XS",isEmbedded:!0,align:p}),...Ze(Le(l)?o(ne,{image:l}):null,x),buttons:d.length?o(hu,{media:d,stretched:!0,showButtonText:!0,version:N?.version}):null,isImageAlwaysOnRight:y,isImageSecondary:b,imageAlign:"center",children:[o(Ve,{benefits:f}),s?o(De,{__html:s,isDotted:r,itemSize:"list-s"}):null,xu(i,p)]})})}))),xu=(e,t)=>e?o(S,{size:"text-m",font:"font-light",color:"text-secondary-text group-data-secondary:text-white/80",align:t,children:e}):null,yu=(e,t)=>{const{title:n,description:i,buttons:a}=e;return c("div",{className:"py-lg border-b border-main-divider",children:[n?o("div",{className:"opacity-80",children:o(_e,{size:"text-m",color:"text-secondary-text",children:n})}):null,i?o("div",{className:"mt-2xs",children:o(_e,{size:"text-xl",color:"text-primary-text",children:i})}):null,a?.length?o("div",{className:"text-primary-main",children:je(a)}):null]},String(t))},bu=d((({className:e="",title:t,align:n="text-center",icon:l,button:r,visibleCellsCount:s=1,cardCells:d=[],options:m,data:h,...p})=>{const f=d.map(yu),[x,y]=s>0?[f.slice(0,s),f.slice(s)]:[f,[]],[b,v]=i(!1);return a((()=>me.subscribe("fold",(e=>{e&&void 0!==m?.parent&&e.parent===m?.parent&&v(e.isUnfolded)}))),[m?.parent]),c(g,{className:u("flex flex-col",e),defaultPadding:"p-2xl",...p,children:[Le(l)?o("div",{className:"self-center",children:o(ne,{image:l})}):null,t?o(w,{className:u("pt-xs",n),headingType:"h5",title:t}):null,r?.text?o(ve,{className:"w-full mt-m mb-lg",...r}):null,y.length?o(Xi,{renderFoldableSection:()=>c("div",{children:[x,o(Ji,{isUnfolded:b,children:y})]}),renderFoldButton:d.length>=s?vu(m?.parent,h,b):null}):o("div",{children:x})]})})),vu=(e,t,n=!1)=>()=>c("button",{className:"w-full cursor-pointer text-primary-main pt-lg flex justify-between items-center",onClick:()=>{void 0!==e&&me.fire("fold",{type:"fold",isUnfolded:!n,parent:e})},type:"button",...n?ge(t):{},children:[o("div",{children:n?"Скрыть":"Подробнее о тарифе"}),o(W,{className:"text-primary-text",name:n?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16"})]}),Nu=()=>{const e=globalThis.sessionStorage?.getItem("refreshToken"),t=globalThis.sessionStorage?.getItem("accessToken"),n=globalThis.localStorage.getItem("taskId"),i=Kt();if(!t||!e||!n)return i.assign("/"),()=>{};const a=async()=>{const n=await Yi("/auth/refresh","POST",{refresh_token:e,access_token:t});if(401==n?.status&&i.assign("/"),n?.ok){const e=await n.json();globalThis.sessionStorage.setItem("refreshToken",e.refresh_token),globalThis.sessionStorage.setItem("accessToken",e.access_token)}};a();const l=setInterval(a,24e4);return()=>clearInterval(l)},wu=d((({step:e=10,description:t,showPercentage:n=!0})=>c("div",{children:[o("div",{className:"h-4 w-full bg-gray relative",children:o("div",{className:"h-4 bg-green",style:{width:`${e}%`}})}),c("div",{className:"relative",children:[n?c("div",{className:"absolute left-2/4 text-green",children:[e,"%"]}):null,t?o("div",{className:"text-right mr-4 text-gray",children:t}):null]})]}))),Su=d((({step:e=1,totalSteps:t=6,stepsTitles:n=[]})=>{const i=r((()=>(e+1)/t*100),[e,t]);return o("div",{className:"py-lg px-5xl bg-white col-span-12",children:c("div",{children:[c("span",{className:"font-bold mr-s",children:["Шаг ",e+1," из ",t,"."]}),n[e]||null,o(wu,{step:i,showPercentage:!1})]})})}));var Cu;!function(e){e.process="IN_PROCESS",e.ok="APPROVED",e.fail="CANCELLED",e.rework="REVISION"}(Cu||(Cu={}));const ku=e=>Hi("/user-data/getTaskStatus","POST",e),Iu=e=>Yi("/user-data/sendSignalToProcess","POST",e),Tu=d((({__html:e,icon:t="InfoCircleIcon",iconVersion:n="black",link:i})=>c("div",{className:"flex flex-row items-center w-full min-h-14 bg-main-gray rounded-lg gap-m p-m",children:[o("div",{className:"rounded-full bg-white p-xs",children:o(W,{name:t,width:"24",height:"24",iconVersion:n})}),c("div",{className:"",children:[o(De,{__html:e}),i?.text?o(ve,{className:"text-primary-main",children:i.text}):null]})]}))),Bu=d((({interval:e=0,intervalExpireAction:t=(()=>null),title:n,__html:a})=>{const[l,r]=i(e),s=100-(e-l)/e*100;return c("div",{children:[n?o(k,{title:n,headlineVersion:"S"}):null,c("div",{className:"flex justify-center items-center flex-col",children:[c("div",{className:u("relative flex items-center justify-center w-24 h-24 rounded-full bg-gray text-transparent mb-5"),children:[o("div",{className:"absolute inset-0 rounded-full",style:{background:`conic-gradient(rgb(66, 171, 68) ${s}%, rgb(125, 126, 127) 0deg)`}}),o("div",{className:"z-10 flex items-center justify-center px-4 py-2 rounded-full w-20 h-20 bg-white text-primary-text text-m",children:o(Ro,{interval:e,time:l,setTime:e=>{0===e&&t(),r(e)}})})]}),a?o(De,{__html:a}):null]})]})})),Pu=d((({title:e,description:t,infoCard:n,sectionInfoTitle:i,sectionInfo:a,sectionAdditionalTitle:l,sectionInfoAdditional:r,buttonText:s,interval:d,...m})=>c(g,{...m,children:[c("div",{className:"flex flex-col md:flex-row items-center",children:[o(k,{headlineVersion:"M",title:e,description:t,align:"text-left",padding:"p-xl",className:"w-full"}),d?o(Bu,{interval:d}):null]}),o(Ru,{title:i,items:a}),o(Ru,{title:l,items:r,countColumns:!0}),n?.__html?o(Tu,{__html:n?.__html,icon:n?.icon,link:{text:n?.link?.text}}):null,s?o(ve,{href:"/natural",text:s,version:"primary",className:"w-full mt-lg"}):null]}))),Ru=({title:e,items:t,countColumns:n=!1})=>{const i=Ce();return t?c("div",{children:[o("hr",{className:"w-full h-px bg-main-gray border-0"}),c("div",{className:"p-xl",children:[e?o(_e,{color:"text-primary-text",size:"text-h5",children:o("div",{className:u({"mb-m":Boolean(e)}),children:e})}):null,t?o("div",{className:u("grid grid-cols-1 gap-m",Xs(n||i?1:2)),children:t.map(((e,t)=>o("div",{children:Du(e)},t)))}):null]})]}):null},Du=({label:e,description:t})=>c("div",{className:"flex flex-col",children:[o(_e,{color:"text-secondary-text",size:"text-l",children:e}),o(_e,{color:"text-primary-text",size:"text-xl",children:t})]}),Mu=d((()=>o(Pu,{title:"Благодарим Вас за ожидание",description:"В настоящий момент Банк не может одобрить Вашу заявку на кредит. Попробуйте подать заявку позже. Спасибо за обращение в АО «Россельхозбанк».",buttonText:"Вернуться на главную"}))),_u=d((()=>{const[e]=uo("leadForm");return o(Pu,{interval:300,title:"Заявка успешно отправлена",description:"Не закрывайте окно, скоро сообщим результат",sectionInfoTitle:"Заявленные условия по кредиту",sectionInfo:[{label:"Название продукта",description:"Кредитная карта"},{label:"Категория",description:e?.cardCategory?.text}]})})),Au=d((()=>{const[e]=uo("leadForm");return o(Pu,{title:"Благодарим вас за ожидание, но нам требуется больше времени для принятия решения",description:"Посетите выбранное отделение банка с необходимыми документами и так завершите оформление кредита.",sectionAdditionalTitle:"В отделении Банка",sectionInfoAdditional:[{label:"Регион",description:e?.regionRetail?.text},{label:"Адрес",description:e?.addressRetail?.text}],sectionInfo:[{label:"Основные документы:",description:"- Паспорт РФ"}],buttonText:"Вернуться на главную"})})),Eu=d((()=>{const[e]=uo("leadForm");return o(Pu,{title:"Банк одобрил вам кредит",description:"Обратитесь в отделение банка, чтобы завершить оформление и получит ваш кредит",sectionInfo:[{label:"Название продукта",description:"Кредит на любые цели"},{label:"Ставка",description:"14,5%"},{label:"Ежемесячный платеж",description:"86 052 ₽"},{label:"Срок кредита",description:e?.monthsValue+" мес"},{label:"Тип платежа",description:e?.isAnnuity?"Аннуитетный":"Дифференцированный"}],buttonText:"Вернуться на главную"})})),zu=["CREATE_APPLICATION_SHORT_SIGNAL","CREATE_APPLICATION_LOAN_V3_SIGNAL"],Fu=d((()=>{const[e,t]=i(Cu.process),[n]=uo("taskId");return a((()=>{(async()=>{for(const e of zu)await Iu({signalType:e,taskId:n})})();const e=l((async()=>{const e=await ku({taskId:n});e&&e?.statusCd!==Cu.process&&(clearInterval(i),t(e.statusCd))}),[]),i=setInterval(e,3e4)}),[]),Ou(e)})),Ou=e=>({IN_PROCESS:o(_u,{}),CANCELLED:o(Mu,{}),APPROVED:o(Eu,{}),REVISION:o(Au,{})}[e]||null),Vu=[{paymentSystem:"",currency:"rub",codeWord:""},{surname:"",name:"",middleName:"",sex:"",limitedBirthday:void 0,birthPlace:"",phone:"",email:"",dulSerie:void 0,dulNumber:void 0,dulIssueDateField:void 0,dulSubdivisionCode:"",dulIssuedBy:"",addressRegistration:{fullAddress:"",fiasCode:""},participantDateRegistration:void 0,addressFact:{fullAddress:"",fiasCode:""},housing:void 0,methodObtain:"office",addressCourier:{fullAddress:"",fiasCode:""}},{amountWorkers:{key:"",text:""},beginDate:void 0,employerActivities:{key:"",text:""},employerOrganization:{key:"",text:""},employment:{key:"",text:""},experience5Years:void 0,inn:void 0,jobsNumber:void 0,lastJobExperience:void 0,legalForm:"",organization:{key:"",text:""},organizationAddress:{fullAddress:"",fiasCode:""},organizationName:"",organizationPhone:"",partInBusiness:void 0,positionOrganization:{key:"",text:""}},{familyStatus:{key:"",text:""},dependents:void 0,familyMembers:void 0,confirmationIncome:{key:"",text:""},wages:void 0,mandatoryPayments:void 0,snils:"",armyIdFlg:!1},{disablePeopleFlg:!1,bankruptcyFlg:!1,shareholderFlg:!1,legalEntityName:"",creditInRshbCd:void 0},{regionRetail:"",addressRetail:{key:"",text:""},bankEmployeeCode:void 0,addressCourier:{fullAddress:"",fiasCode:""},methodObtain:"office",deliveryDate:void 0}],Lu=e=>{if(e)try{return new Date(e)}catch(e){return}},ju=e=>(t,n)=>t.filter((e=>e)).map((t=>[qu(n,e),$u(t,e),Uu(t,e),Wu(t,e),Hu(t,e),Yu(t,e)].some(Boolean)?{...t,required:!1}:t)),qu=(e,t)=>2===e&&"RETIREE"===t("employment")?.key,$u=({name:e},t)=>"partInBusiness"===e&&"BUSINESS_OWNER"!==t("positionOrganization")?.key,Uu=({name:e},t)=>"snils"===e&&!t("consentPfrFlg"),Wu=({name:e,filledByEsia:t},n)=>e?.startsWith("address")&&n("esiaAccountTypeCd")?.key&&t,Hu=({name:e},t)=>"addressFact"===e&&t("addressMatch"),Yu=({condition:e},t)=>e?.name&&e?.values?.some((n=>{const i=t(e?.name);return n!==(i?.key??i)})),Ku=(e=[])=>{const t=e.filter((e=>"info"===e.fieldType));return t.length?t.map((({text:e,name:t},n)=>o(Tu,{__html:e},`${t}_${n}`))):null},Gu=({field:e,inputs:t})=>t.map(Gs(e,"")),Xu=({sections:e,field:t,step:n})=>e?.map((({inputs:e=[],columns:i,title:a},l)=>{const r=ju(Ju(t))(e,n),s=r.filter((e=>!Yu(e,Ju(t))));return c("div",{className:u(Xs(i),"grid gap-x-m"),children:[Ku(s),Js(a),Gu({field:t,inputs:r})]},`section-${l}`)})),Ju=e=>t=>e(t)?.value,Zu=d((({step:e,onPrevStep:t})=>{const n=6===e;return c("div",{className:"flex justify-between gap-m",children:[o(Ea,{onClick:t,type:"button",version:"secondary",disabled:0===e,children:"Назад"}),o(Ea,{type:"submit",children:n?"Отправить заявку":"Далее"})]})})),Qu=e=>{const{methodObtain:t,deliveryDate:n=""}=e;return{courierDeliveryFlg:"courier"===t,deliveryDate:(i=n,i?new Date(i).toISOString().split(".")[0]:""),deliveryTimeCd:{value:"TIME_2"}};var i},eh=(e,t)=>{switch(e){case 0:return(e=>{const{currency:t,paymentSystem:n,cardCategory:i,codeWord:a}=e;return{currencyCode:t,paymentSystemTypeCd:n,classCard:i,codeWord:a}})(t);case 1:return(e=>{const{name:t,surname:n,middleName:i,limitedBirthday:a="",phone:l="",email:r,sex:s,birthPlace:o,dulIssueDateField:c="",dulIssuedBy:d,dulNumber:m,dulSerie:u,dulSubdivisionCode:h,education:p,participantDateRegistration:g="",housing:f,addressRegistration:x,addressFact:y}=e;return{birthDate:Lt(a,!0),midname:i,name:t,surname:n,birthPlace:o,dulIssueDate:Lt(c,!0),dulIssuedBy:d,dulNumber:m,dulSerie:u,dulSubdivisionCode:h,educationLevelCd:p,registrationDate:Lt(g,!0),houseTypeCd:f,participantContacts:Zo({phone:jt(l),email:r}),participantAddresses:Qo({addressRegistration:x,addressFact:y}),genderCd:s?{key:"male"===s?"MAN":"WOMAN"}:void 0}})(t);case 2:return(e=>{const{employment:t,organizationName:n,inn:i,legalForm:a,organization:l,amountWorkers:r,employerActivities:s,employerOrganization:o,generalSeniority:c,lastJobExperience:d,experience5Years:m,jobsNumber:u,organizationPhone:h,organizationAddress:p,positionOrganization:g}=e;return{employmentTypeCd:t,organizationName:n,organizationInn:i,organizationActivityTypeCd:s,organizationTypeCd:l,organizationKindCd:o,employeesNumberCd:r,opf:a,seniority:c,generalSeniority:m,jobsNumber:u,lastWorkDuration:d,payrollCardRshbFlg:!0,positionCd:g,participantContacts:Zo({organizationPhone:h&&jt(h)}),participantAddresses:Qo({organizationAddress:p})}})(t);case 3:return(e=>{const{familyStatus:t,dependents:n,familyMembers:i,wages:a,mandatoryPayments:l,incomeAverage:r,additionalIncome:s,otherIncome:o,otherPayments:c,rentalIncome:d,retirementIncome:m,snils:u,armyIdFlg:h}=e;return{maritalStatusCd:t,totalDependents:i,otherDependents:n,participantIncomes:ec({wages:a,mandatoryPayments:l,incomeAverage:r,additionalIncome:s,otherIncome:o,otherPayments:c,rentalIncome:d,retirementIncome:m}),snils:u?.replaceAll(" ",""),armyIdFlg:h}})(t);case 4:return(e=>{const{bankruptcyFlg:t,shareholderFlg:n,legalEntityName:i,creditInRshbCd:a}=e;return{bankruptcyFlg:t,shareholderFlg:n,nameLegalEntity:i,creditInRshbCd:a}})(t);case 5:return(e=>{const{addressCourier:t}=e;return{participantAddresses:Qo({addressCourier:t})}})(t);default:return{}}},th=({step:e,inputs:t,onNextStep:n,saveStep:i,finishForm:a})=>{const[r]=uo("taskId"),[s]=uo("profileId"),[o]=uo("participantId"),c=l((async l=>{const c=eo(Qn(ju(nh(l))(t,e)));if(console.log(Qn(ju(nh(l))(t,e))),!Mn(c(l)))return console.warn("validation fail");i(l);try{r&&s&&o&&await No((({participantId:e,taskId:t,profileId:n,formData:i,step:a=0})=>({sendToBank:!0,taskKind:"UNITED",task:{taskSource:Kt().origin,id:t,office:{id:"650"},authorizedAgentId:i?.bankEmployeeCode,participants:[{id:e,profile:{id:n},roleCd:{key:"BORROWER",value:"Заемщик"},...eh(a,i)}],...Qu(i)}}))({participantId:o,taskId:r,profileId:s,step:e,formData:l}))}catch(e){return"Fail"}return n(),5===e&&a?.(!0),"OK"}),[]);return{handleSubmit:c}},nh=e=>t=>e[t],ih=d((({step:e,sections:t,onPrevStep:n,onNextStep:i,isFormFinished:a,finishForm:r})=>{const[d,m]=uo("leadForm"),u=((e,t)=>({...Vu[e],...t,limitedBirthday:Lu(t?.limitedBirthday),dulIssueDateField:Lu(t?.dulIssueDateField),participantDateRegistration:Lu(t?.participantDateRegistration),beginDate:Lu(t?.beginDate),deliveryDate:Lu(t?.deliveryDate)}))(e,d),h=s(void 0),p=t?.flatMap((e=>e?.inputs))||[],g=l((e=>{h.current=e}),[]),{handleSubmit:f}=th({step:e,inputs:p,onNextStep:i,saveStep:m,finishForm:r}),[,{field:x,onSubmit:y}]=en(u,{onSubmit:(e,t)=>{f({...e,...h.current?.(t)})}});return a?o(Fu,{}):c("form",{onSubmit:y,className:"space-y-m",children:[Xu({sections:t,field:x,step:e,registerSubmit:g}),o(Zu,{step:e,onPrevStep:n})]})})),ah=[[{title:"Параметры карты",inputs:[]},{inputs:[{fieldType:"common",name:"currency",required:!0},{fieldType:"common",name:"paymentSystem",required:!0},{fieldType:"common",name:"cardCategory",required:!0},{fieldType:"common",name:"codeWord",required:!0}]}],[{title:"Персональные данные",columns:2,inputs:[{fieldType:"common",name:"surname",required:!0,dadata:!0,filledByEsia:!0},{fieldType:"common",name:"name",required:!0,dadata:!0,filledByEsia:!0},{fieldType:"common",name:"middleName",dadata:!0,filledByEsia:!0},{fieldType:"common",name:"sex",required:!0},{fieldType:"common",name:"limitedBirthday",required:!0,filledByEsia:!0},{fieldType:"common",name:"birthPlace",required:!0},{fieldType:"common",name:"phone",required:!0},{fieldType:"common",name:"email",required:!0,dadata:!0}]},{title:"Паспортные данные",columns:2,inputs:[{fieldType:"common",name:"dulSerie",required:!0,filledByEsia:!0},{fieldType:"common",name:"dulNumber",required:!0,filledByEsia:!0},{fieldType:"common",name:"dulIssueDateField",required:!0,filledByEsia:!0},{fieldType:"common",name:"dulSubdivisionCode",required:!0,dadata:!0,filledByEsia:!0}]},{inputs:[{fieldType:"common",name:"dulIssuedBy",required:!0,dadata:!0,filledByEsia:!0},{fieldType:"common",name:"education",required:!0}]},{title:"Адрес регистрации по месту жительства",columns:1,inputs:[]},{inputs:[{fieldType:"common",name:"addressRegistration",required:!0,dadata:!0,filledByEsia:!0},{fieldType:"common",name:"addressMatch"}]},{columns:2,inputs:[{fieldType:"common",name:"participantDateRegistration",required:!0}]},{title:"Адрес фактического проживания (место пребывания РФ)",inputs:[]},{columns:2,inputs:[{fieldType:"common",name:"housing",required:!0}]},{inputs:[{fieldType:"common",name:"addressFact",required:!0,dadata:!0}]}],[{title:"Данные о трудоустройстве",inputs:[]},{inputs:[{fieldType:"info",text:"Клиент на момент оформления заявки на кредит должен быть: официально трудоустроен более 6 месяцев, если Клиент получает з/п на счет РСХБ, то трудоустроен более 3 месяцев, не должен находиться в декретном отпуске"}]},{inputs:[{fieldType:"common",name:"employment"},{fieldType:"common",name:"organizationName",required:!0,dadata:!0}]},{columns:2,inputs:[{fieldType:"common",name:"inn",required:!0,dadata:!0},{fieldType:"common",name:"legalForm",required:!0}]},{inputs:[{fieldType:"common",name:"organization",required:!1},{fieldType:"common",name:"amountWorkers",required:!1}]},{columns:2,inputs:[{fieldType:"common",name:"employerActivities",required:!1},{fieldType:"common",name:"employerOrganization",required:!1},{fieldType:"common",name:"generalSeniority",required:!0},{fieldType:"common",name:"lastJobExperience",required:!0},{fieldType:"common",name:"experience5Years",required:!0},{fieldType:"common",name:"jobsNumber",required:!0}]},{inputs:[{fieldType:"common",name:"organizationPhone",label:"Телефон работодателя",required:!0},{fieldType:"common",name:"beginDate",required:!0}]},{columns:2,inputs:[{fieldType:"common",name:"positionOrganization",required:!1},{fieldType:"common",name:"partInBusiness",required:!0,condition:{name:"positionOrganization",values:["BUSINESS_OWNER"]}}]},{title:"Адрес работодателя",inputs:[]},{inputs:[{fieldType:"common",name:"organizationAddress",required:!0,dadata:!0}]}],[{title:"Семейное положение"},{columns:1,inputs:[{fieldType:"common",name:"familyStatus",required:!0}]},{columns:1,inputs:[{fieldType:"common",name:"dependents",required:!0}]},{columns:2,inputs:[{fieldType:"common",name:"familyMembers"},{fieldType:"common",name:"children",required:!0}]},{title:"Совокупный доход"},{inputs:[{fieldType:"info",text:"Сумма основного и дополнительных доходов после вычета налога"}]},{columns:1,inputs:[{fieldType:"common",name:"wages",required:!0}]},{columns:1,inputs:[{fieldType:"common",name:"mandatoryPayments",required:!0}]},{columns:1,inputs:[{fieldType:"common",name:"snils",required:!0}]},{columns:1,inputs:[{fieldType:"common",name:"conscription",required:!0}]},{columns:2,inputs:[{fieldType:"common",name:"armyIdFlg"}]}],[{title:"Дополнительные сведения",columns:1,inputs:[]},{inputs:[{fieldType:"common",name:"disablePeopleFlg"}]},{inputs:[{fieldType:"common",name:"bankruptcyFlg"}]},{inputs:[{fieldType:"common",name:"shareholderFlg"}]},{inputs:[{fieldType:"common",name:"legalEntityName"}]},{inputs:[{fieldType:"common",name:"creditInRshbCd"}]}],[{title:"Способ получения",columns:1,inputs:[]},{inputs:[{fieldType:"common",name:"methodObtain"}]},{title:"Адрес",columns:1,inputs:[]},{inputs:[{fieldType:"common",name:"addressCourier",dadata:!0,condition:{name:"methodObtain",values:["courier"]},required:!0},{fieldType:"common",name:"deliveryDate",condition:{name:"methodObtain",values:["courier"]},required:!0},{fieldType:"common",name:"comment",condition:{name:"methodObtain",values:["courier"]}}]},{inputs:[{fieldType:"common",name:"regionRetail",required:!0,condition:{name:"methodObtain",values:["office"]}},{fieldType:"common",name:"addressRetail",required:!0,condition:{name:"methodObtain",values:["office"]}}]},{inputs:[{fieldType:"info",text:"Если представитель Банка помогал Вам в заведении заявки, введите здесь его код",condition:{name:"methodObtain",values:["office"]}},{fieldType:"common",name:"bankEmployeeCode",condition:{name:"methodObtain",values:["office"]}}]}]],lh=["Параметры карты","Персональные данные","Данные о трудоустройстве","Семейное положение и доход","Дополнительные сведения","Выбор способа получения"],rh=d((({className:e,...t})=>{const[n,d]=i(0),m=s(null),h=l((()=>m?.current?.scrollIntoView({behavior:"smooth"})),[m]);a(Nu,[]);const p=l((()=>{d((e=>Math.min(e+1,6))),h()}),[]),f=l((()=>{d((e=>Math.max(e-1,0))),h()}),[]),x=r((()=>ah[n]),[n]),[y,b]=i(!1);return o(g,{className:u("bg-transparent",e),defaultPadding:"p-0",...t,children:c("div",{ref:m,className:"container grid grid-cols-12",children:[y?null:o(Su,{stepsTitles:lh,step:n,totalSteps:6}),o("div",{className:"py-lg px-5xl mt-2xs bg-white col-span-12",children:o(ih,{step:n,sections:x,onNextStep:p,onPrevStep:f,isFormFinished:y,finishForm:b},String(n))})]})})})),sh=d((({step:e=1,totalSteps:t=5,stepsTitles:n=[]})=>{const i=r((()=>e/t*100),[e,t]);return o("div",{className:"py-lg px-5xl bg-white col-span-12",children:c("div",{children:[c("span",{className:"font-bold mr-s",children:["Шаг ",e," из ",t,"."]}),n[e]||null,o(wu,{step:i,showPercentage:!1})]})})})),oh=d((({title:e,description:t,infoCard:n,sectionInfoTitle:i,sectionInfo:a,sectionAdditionalTitle:l,sectionInfoAdditional:r,buttonText:s,interval:d,intervalExpireAction:m=(()=>{}),...u})=>c(g,{...u,children:[c("div",{className:"flex flex-col md:flex-row items-center",children:[o(k,{headlineVersion:"M",title:e,description:t,align:"text-left",padding:"p-xl",className:"w-full"}),d?o(Bu,{interval:d,intervalExpireAction:m}):null]}),o(ch,{title:i,items:a}),o(ch,{title:l,items:r,countColumns:!0}),n?.__html?o(Tu,{__html:n?.__html,icon:n?.icon,link:{text:n?.link?.text}}):null,s?o(ve,{href:"/natural",text:s,version:"primary",className:"w-full mt-lg"}):null]}))),ch=({title:e,items:t,countColumns:n=!1})=>{const i=Ce();return t?c("div",{children:[o("hr",{className:"w-full h-px bg-main-gray border-0"}),c("div",{className:"p-xl",children:[e?o(_e,{color:"text-primary-text",size:"text-h5",children:o("div",{className:u({"mb-m":Boolean(e)}),children:e})}):null,t?o("div",{className:u("grid grid-cols-1 gap-m",Xs(n||i?1:2)),children:t.map(((e,t)=>o("div",{children:dh(e)},t)))}):null]})]}):null},dh=({label:e,description:t})=>c("div",{className:"flex flex-col",children:[o(_e,{color:"text-secondary-text",size:"text-l",children:e}),o(_e,{color:"text-primary-text",size:"text-xl",children:t})]}),mh=d((()=>o(oh,{title:"Благодарим Вас за ожидание",description:"В настоящий момент Банк не может одобрить Вашу заявку на кредит. Попробуйте подать заявку позже. Спасибо за обращение в АО «Россельхозбанк».",buttonText:"Вернуться на главную"}))),uh=d((({handleExpireTimer:e})=>{const[t]=uo("leadForm");return o(oh,{interval:300,intervalExpireAction:e,title:"Заявка успешно отправлена",description:"Не закрывайте окно, скоро сообщим результат",sectionInfoTitle:"Заявленные условия по кредиту",sectionInfo:[{label:"Название продукта",description:"Кредит на любые цели"},{label:"Цель кредита",description:"На любые цели"},{label:"Сумма",description:t?.moneyValue?.toLocaleString()+" ₽"},{label:"Срок кредита",description:t?.monthsValue+" мес"},{label:"Тип платежа",description:t?.isAnnuity?"Аннуитетный":"Дифференцированный"}]})})),hh=d((()=>{const[e]=uo("leadForm");return o(oh,{title:"Благодарим вас за ожидание, но нам требуется больше времени для принятия решения",description:"Посетите выбранное отделение банка с необходимыми документами и так завершите оформление кредита.",sectionAdditionalTitle:"В отделении Банка",sectionInfoAdditional:[{label:"Регион",description:e?.regionRetail?.text},{label:"Адрес",description:e?.addressRetail?.text}],sectionInfo:[{label:"Основные документы:",description:"- Паспорт РФ"}],buttonText:"Вернуться на главную"})})),ph=d((()=>{const[e]=uo("leadForm");return o(oh,{title:"Банк одобрил вам кредит",description:"Обратитесь в отделение банка, чтобы завершить оформление и получит ваш кредит",sectionInfo:[{label:"Название продукта",description:"Кредит на любые цели"},{label:"Ставка",description:"14,5%"},{label:"Ежемесячный платеж",description:"86 052 ₽"},{label:"Срок кредита",description:e?.monthsValue+" мес"},{label:"Тип платежа",description:e?.isAnnuity?"Аннуитетный":"Дифференцированный"}],buttonText:"Вернуться на главную"})})),gh=["CREATE_APPLICATION_SHORT_SIGNAL","CREATE_APPLICATION_LOAN_V3_SIGNAL"],fh=d((()=>{const[e,t]=i(Cu.process),[n]=uo("taskId");a((()=>{(async()=>{for(const e of gh)await Iu({signalType:e,taskId:n})})();const e=setInterval((()=>n&&ku({taskId:n}).then((n=>{n?.statusCd&&n.statusCd!==Cu.process&&(clearInterval(e),t(n.statusCd))}))),3e4);return()=>clearInterval(e)}),[]);return xh(e,(()=>t(Cu.rework)))})),xh=(e,t)=>({IN_PROCESS:o(uh,{handleExpireTimer:t}),CANCELLED:o(mh,{}),APPROVED:o(ph,{}),REVISION:o(hh,{})}[e]||null),yh=[{moneyValue:0,monthsValue:0,isAnnuity:!1,isInsurance:!1,isSalaryClient:!1,isPensionClient:!1,isStateEmployee:!1},{surname:"",name:"",middleName:"",sex:"",limitedBirthday:void 0,birthPlace:"",phone:"",email:"",dulSerie:void 0,dulNumber:void 0,dulIssueDateField:void 0,dulSubdivisionCode:"",dulIssuedBy:"",addressRegistration:{fullAddress:"",fiasCode:""},participantDateRegistration:void 0,addressFact:{fullAddress:"",fiasCode:""},housing:void 0},{amountWorkers:{key:"",text:""},beginDate:void 0,employerActivities:{key:"",text:""},employerOrganization:{key:"",text:""},employment:{key:"",text:""},experience5Years:void 0,inn:void 0,jobsNumber:void 0,lastJobExperience:void 0,legalForm:"",organization:{key:"",text:""},organizationAddress:{fullAddress:"",fiasCode:""},organizationName:"",organizationPhone:"",partInBusiness:void 0,positionOrganization:{key:"",text:""}},{familyStatus:{key:"",text:""},dependents:void 0,familyMembers:void 0,confirmationIncome:{key:"",text:""},wages:void 0,mandatoryPayments:void 0,snils:"",armyIdFlg:!1},{disablePeopleFlg:!1,bankruptcyFlg:!1,shareholderFlg:!1,legalEntityName:"",creditInRshbCd:void 0},{regionRetail:"",addressRetail:void 0,bankEmployeeCode:void 0}],bh=e=>{if(e)try{return new Date(e)}catch(e){return}},vh=e=>(t,n)=>t.filter((e=>e)).map((t=>[Nh(n,e),wh(t,e),Sh(t,e),Ch(t,e),kh(t,e),Ih(t,e)].some(Boolean)?{...t,required:!1}:t)),Nh=(e,t)=>2===e&&"RETIREE"===t("employment")?.key,wh=({name:e},t)=>"partInBusiness"===e&&"BUSINESS_OWNER"!==t("positionOrganization")?.key,Sh=({name:e},t)=>"snils"===e&&!t("consentPfrFlg"),Ch=({name:e,filledByEsia:t},n)=>e?.startsWith("address")&&n("esiaAccountTypeCd")?.key&&t,kh=({name:e},t)=>"addressFact"===e&&t("addressMatch"),Ih=({condition:e},t)=>e?.name&&e?.values?.some((n=>{const i=t(e?.name);return n!==(i?.key??i)})),Th=(e=[])=>{const t=e.filter((e=>"info"===e.fieldType));return t.length?t.map((({text:e,name:t},n)=>o(Tu,{__html:e},`${t}_${n}`))):null},Bh=({field:e,inputs:t})=>t.map(Gs(e,"")),Ph=({sections:e,field:t,step:n})=>e?.map((({inputs:e=[],columns:i,title:a},l)=>{const r=vh(Rh(t))(e,n);return c("div",{className:u(Xs(i),"grid gap-x-m"),children:[Th(r),Js(a),Bh({field:t,inputs:r})]},`section-${l}`)})),Rh=e=>t=>e(t)?.value,Dh=d((({step:e,onPrevStep:t})=>{const n=5===e;return c("div",{className:"flex justify-between gap-m",children:[o(Ea,{onClick:t,type:"button",version:"secondary",disabled:0===e,children:"Назад"}),o(Ea,{type:"submit",children:n?"Отправить заявку":"Далее"})]})})),Mh=e=>{const{addressRetail:t}=e;return{office:t?.key?{id:t.key}:void 0}},_h={annuity:{key:"ANNUITY",value:"Аннуитетный"},differential:{key:"DIFFERENTIAL",value:"Дифференцированный "}},Ah=e=>{const{moneyValue:t,monthsValue:n,isAnnuity:i}=e;return{loanAmount:t,creditPeriod:n,paymentTypeCd:_h[i?"annuity":"differential"]}},Eh=(e,t)=>{switch(e){case 0:default:return{};case 1:return(e=>{const{name:t,surname:n,middleName:i,limitedBirthday:a="",phone:l="",email:r,sex:s,birthPlace:o,dulIssueDateField:c="",dulIssuedBy:d,dulNumber:m,dulSerie:u,dulSubdivisionCode:h,education:p,participantDateRegistration:g="",housing:f,addressRegistration:x,addressFact:y}=e;return{birthDate:Lt(a,!0),midname:i,name:t,surname:n,birthPlace:o,dulIssueDate:Lt(c,!0),dulIssuedBy:d,dulNumber:m,dulSerie:u,dulSubdivisionCode:h,educationLevelCd:p,registrationDate:Lt(g,!0),houseTypeCd:f,participantContacts:Zo({phone:jt(l),email:r}),participantAddresses:Qo({addressRegistration:x,addressFact:y}),genderCd:s?{key:"male"===s?"MAN":"WOMAN"}:void 0}})(t);case 2:return(e=>{const{employment:t,organizationName:n,inn:i,legalForm:a,organization:l,amountWorkers:r,employerActivities:s,employerOrganization:o,generalSeniority:c,lastJobExperience:d,experience5Years:m,jobsNumber:u,organizationPhone:h,organizationAddress:p,positionOrganization:g}=e;return{employmentTypeCd:t,organizationName:n,organizationInn:i,organizationActivityTypeCd:s,organizationTypeCd:l,organizationKindCd:o,employeesNumberCd:r,opf:a,seniority:c,generalSeniority:m,jobsNumber:u,lastWorkDuration:d,payrollCardRshbFlg:!0,positionCd:g,participantContacts:Zo({organizationPhone:h&&jt(h)}),participantAddresses:Qo({organizationAddress:p})}})(t);case 3:return(e=>{const{familyStatus:t,dependents:n,familyMembers:i,confirmationIncome:a,wages:l,mandatoryPayments:r,incomeAverage:s,additionalIncome:o,otherIncome:c,otherPayments:d,rentalIncome:m,retirementIncome:u,snils:h,armyIdFlg:p}=e;return{maritalStatusCd:t,totalDependents:i,incomeCertificateCd:a,otherDependents:n,participantIncomes:ec({wages:l,mandatoryPayments:r,incomeAverage:s,additionalIncome:o,otherIncome:c,otherPayments:d,rentalIncome:m,retirementIncome:u}),snils:h?.replaceAll(" ",""),armyIdFlg:p}})(t);case 4:return(e=>{const{bankruptcyFlg:t,shareholderFlg:n,legalEntityName:i,creditInRshbCd:a}=e;return{bankruptcyFlg:t,shareholderFlg:n,nameLegalEntity:i,creditInRshbCd:a}})(t)}},zh=({step:e,inputs:t,onNextStep:n,saveStep:i,finishForm:a})=>{const[r]=uo("taskId"),[s]=uo("profileId"),[o]=uo("participantId"),c=l((async l=>{const c=eo(Qn(vh(Fh(l))(t,e)));if(!Mn(c(l)))return console.warn("validation fail");i(l);try{r&&s&&o&&await No((({participantId:e,taskId:t,profileId:n,formData:i,step:a=0})=>({sendToBank:!0,taskKind:"UNITED",task:{taskSource:Kt().origin,id:t,office:{id:""},authorizedAgentId:i?.bankEmployeeCode,participants:[{id:e,profile:{id:n},roleCd:{key:"BORROWER",value:"Заемщик"},...Eh(a,i)}],...Ah(i),...Mh(i),esiaAccountTypeCd:{key:i?.esiaAccountTypeCd?.key}}}))({participantId:o,taskId:r,profileId:s,step:e,formData:l}))}catch(e){return"Fail"}return n(),5===e&&a?.(!0),"OK"}),[]);return{handleSubmit:c}},Fh=e=>t=>e[t],Oh=d((({step:e,sections:t,onPrevStep:n,onNextStep:i,renderStep:a=Ph,isFormFinished:r,finishForm:d})=>{const[m,u]=uo("leadForm"),h=((e,t)=>({...yh[e],...t,limitedBirthday:bh(t?.limitedBirthday),dulIssueDateField:bh(t?.dulIssueDateField),participantDateRegistration:bh(t?.participantDateRegistration),beginDate:bh(t?.beginDate),deliveryDate:bh(t?.deliveryDate)}))(e,m),p=s(void 0),g=t?.flatMap((e=>e?.inputs))||[],f=l((e=>{p.current=e}),[]),{handleSubmit:x}=zh({step:e,inputs:g,onNextStep:i,saveStep:u,finishForm:d}),[,{field:y,onSubmit:b}]=en(h,{onSubmit:(e,t)=>{x({...e,...p.current?.(t)})}});return r?o(fh,{}):c("form",{onSubmit:b,className:"space-y-m",children:[a({sections:t,field:y,step:e,registerSubmit:f}),o(Dh,{step:e,onPrevStep:n})]})})),Vh=[[],[{title:"Персональные данные",columns:2,inputs:[{fieldType:"common",name:"surname",required:!0,dadata:!0,filledByEsia:!0},{fieldType:"common",name:"name",required:!0,dadata:!0,filledByEsia:!0},{fieldType:"common",name:"middleName",dadata:!0,filledByEsia:!0},{fieldType:"common",name:"sex",required:!0},{fieldType:"common",name:"limitedBirthday",required:!0,filledByEsia:!0},{fieldType:"common",name:"birthPlace",required:!0,filledByEsia:!0},{fieldType:"common",name:"phone",required:!0,filledByEsia:!0},{fieldType:"common",name:"email",required:!0,dadata:!0}]},{title:"Паспортные данные",columns:2,inputs:[{fieldType:"common",name:"dulSerie",required:!0,filledByEsia:!0},{fieldType:"common",name:"dulNumber",required:!0,filledByEsia:!0},{fieldType:"common",name:"dulIssueDateField",required:!0,filledByEsia:!0},{fieldType:"common",name:"dulSubdivisionCode",required:!0,dadata:!0,filledByEsia:!0}]},{inputs:[{fieldType:"common",name:"dulIssuedBy",required:!0,dadata:!0,filledByEsia:!0},{fieldType:"common",name:"education",required:!0}]},{title:"Адрес регистрации по месту жительства",columns:1,inputs:[]},{inputs:[{fieldType:"common",name:"addressRegistration",required:!0,dadata:!0,filledByEsia:!0},{fieldType:"common",name:"addressMatch"}]},{columns:2,inputs:[{fieldType:"common",name:"participantDateRegistration",required:!0}]},{title:"Адрес фактического проживания (место пребывания РФ)",inputs:[]},{columns:2,inputs:[{fieldType:"common",name:"housing",required:!0}]},{inputs:[{fieldType:"common",name:"addressFact",required:!0,dadata:!0}]}],[{title:"Данные о трудоустройстве",inputs:[]},{inputs:[{fieldType:"info",text:"Клиент на момент оформления заявки на кредит должен быть: официально трудоустроен более 6 месяцев, если Клиент получает з/п на счет РСХБ, то трудоустроен более 3 месяцев, не должен находиться в декретном отпуске"}]},{inputs:[{fieldType:"common",name:"employment"},{fieldType:"common",name:"organizationName",required:!0,dadata:!0}]},{columns:2,inputs:[{fieldType:"common",name:"inn",required:!0,dadata:!0},{fieldType:"common",name:"legalForm",required:!0}]},{inputs:[{fieldType:"common",name:"organization",required:!1},{fieldType:"common",name:"amountWorkers",required:!1}]},{columns:2,inputs:[{fieldType:"common",name:"employerActivities",required:!1},{fieldType:"common",name:"employerOrganization",required:!1},{fieldType:"common",name:"generalSeniority",required:!0},{fieldType:"common",name:"lastJobExperience",required:!0},{fieldType:"common",name:"experience5Years",required:!0},{fieldType:"common",name:"jobsNumber",required:!0}]},{inputs:[{fieldType:"common",name:"organizationPhone",label:"Телефон работодателя",required:!0},{fieldType:"common",name:"beginDate",required:!0}]},{columns:2,inputs:[{fieldType:"common",name:"positionOrganization",required:!1},{fieldType:"common",name:"partInBusiness",required:!0,condition:{name:"positionOrganization",values:["BUSINESS_OWNER"]}}]},{title:"Адрес работодателя",inputs:[]},{inputs:[{fieldType:"common",name:"organizationAddress",required:!0,dadata:!0}]}],[{title:"Семейное положение"},{columns:1,inputs:[{fieldType:"common",name:"familyStatus",required:!0}]},{columns:1,inputs:[{fieldType:"common",name:"dependents",required:!0}]},{columns:2,inputs:[{fieldType:"common",name:"familyMembers"},{fieldType:"common",name:"children",required:!0}]},{title:"Совокупный доход"},{inputs:[{fieldType:"info",text:"Сумма основного и дополнительных доходов после вычета налога"}]},{columns:1,inputs:[{fieldType:"common",name:"confirmationIncome",required:!0}]},{columns:1,inputs:[{fieldType:"common",name:"wages",required:!0}]},{columns:1,inputs:[{fieldType:"common",name:"mandatoryPayments",required:!0}]},{columns:1,inputs:[{fieldType:"common",name:"snils",required:!0}]},{columns:1,inputs:[{fieldType:"common",name:"conscription",required:!0}]},{columns:2,inputs:[{fieldType:"common",name:"armyIdFlg"}]}],[{title:"Дополнительные сведения",columns:1,inputs:[]},{inputs:[{fieldType:"common",name:"disablePeopleFlg"}]},{inputs:[{fieldType:"common",name:"bankruptcyFlg"}]},{inputs:[{fieldType:"common",name:"shareholderFlg"}]},{inputs:[{fieldType:"common",name:"legalEntityName"}]},{inputs:[{fieldType:"common",name:"creditInRshbCd"}]}],[{title:"Отделение Банка",columns:1,inputs:[]},{inputs:[{fieldType:"common",name:"regionRetail",required:!0}]},{inputs:[{fieldType:"common",name:"addressRetail",required:!0}]},{title:"Код представителя Банка",columns:1,inputs:[]},{inputs:[{fieldType:"info",text:"Если представитель Банка помогал Вам в заведении заявки, введите здесь его код"}]},{inputs:[{fieldType:"common",name:"bankEmployeeCode"}]}]],Lh=["","Персональные данные","Данные о трудоустройстве","Семейное положение и доход","Дополнительные сведения","Отделение Банка"],jh=d((({className:e,...t})=>{const[n,d]=i(0),m=s(null),h=l((()=>m?.current?.scrollIntoView({behavior:"smooth"})),[m]);a(Nu,[]);const p=l((()=>{d((e=>Math.min(e+1,5))),h()}),[]),f=l((()=>{d((e=>Math.max(e-1,0))),h()}),[]),x=r((()=>Vh[n]),[n]),y=0===n,[b,v]=i(!1);return o(g,{className:u("bg-transparent",e),defaultPadding:"p-0",...t,children:c("div",{ref:m,className:"container grid grid-cols-12",children:[y||b?null:o(sh,{stepsTitles:Lh,step:n,totalSteps:5}),o("div",{className:"py-lg px-5xl mt-2xs bg-white col-span-12",children:o(Oh,{step:n,sections:x,onNextStep:p,onPrevStep:f,isFormFinished:b,finishForm:v,renderStep:y?({registerSubmit:e,field:t})=>o(um,{defaultParams:{sum:t("moneyValue").value,period:t("monthsValue").value,isAnnuity:t("isAnnuity").value},title:"Калькулятор кредита",footnote:"Расчёт является предварительным. Точные условия будут предоставлены в отделении Банка.",calcSource:{$ref:"/wcms-resources/credit-calculator-data.json"},registerSubmit:e}):void 0},String(n))})]})})})),qh=e=>"number"==typeof e?.minMonths&&"number"==typeof e?.maxMonths,$h=(e,t)=>Array.from({length:t-e+1},((t,n)=>e+n)),Uh=1e9,Wh={sum:{min:1e4,max:Uh},period:3},Hh=zt((({className:e,filtrationSchema:t={},resetButton:n,sumInput:i,periodInput:a,...l})=>{const[,{blocksToRender:r,blocksWithProps:s},{field:d,reset:m}]=rd(Wh,{block:l.block,page:l.options?.page,normalize:e=>({...e,period:Yh(e)})}),h=s.map((([,e])=>e?.paramsSource?.rows?.[0]?.rates)),p=Kh(h);return c(g,{className:u("space-y-2xs",e),defaultPadding:"p-0",version:"transparent",...l,children:[o(Qc,{filtrationSchema:t,resetButton:n,field:d,reset:m,children:c("div",{className:"@4xl:max-w-xs space-y-lg",children:[o(qm,{label:i?.title,min:500,max:Uh,...d("sum",{parse:e=>({min:Number(e),max:Uh}),format:({min:e})=>String(e)})}),o(rl,{title:a?.title,items:["От 3 мес","До 5 лет"],list:p,...d("period")})]})}),o(Gc,{blocksToRender:r,...l})]})}),{childrenTypes:["ProductBlock"],childSchema:e=>({...e?.filtrationSchema||{},paramsSource:{type:"object",title:"Адрес справочника"}})}),Yh=e=>Dt((e?.paramsSource?.rateRows||[]).filter(qh).flatMap((e=>$h(e.minMonths,e.maxMonths)))),Kh=e=>Dt(e.flatMap((e=>e||[])).filter(qh).flatMap((e=>$h(e.minMonths,e.maxMonths)))).sort(((e,t)=>e-t))||[],Gh=[{key:"10"},{key:"50"},{key:"100"}],Xh=({itemCount:e,onItemCountChange:t})=>{const n=l((({key:e})=>t(Number(e))),[]);return c("div",{className:"mt-2 @lg:mt-0 items-center gap-s hidden @lg:flex",children:[o("span",{children:"Показать по"}),o(Tn,{className:"min-w-20",onChange:n,value:{key:String(e)},options:Gh,iconVersion:"black"})]})},Jh="py-m @lg:px-lg px-m rounded-md cursor-pointer text-center min-w-10 @lg:min-w-0 hover:bg-primary-hover hover:text-white",Zh=(e,t)=>{const{currentPage:n,onPageChange:i,totalPages:a}=e,l=t+1;return l===n?o("div",{"aria-current":"true",className:"py-m @lg:px-lg px-m bg-primary-main text-center min-w-10 @lg:min-w-0 text-white rounded-md",children:l},String(t)):1!==l&&l!==a&&((e,t,n)=>e<t&&e>=t-1||e<=t+1&&e>t||((e,t,n)=>t<=2&&e<=t+2||t>=n-1&&e>=n-3)(e,t,n))(l,n,a)?o("div",{onClick:()=>i(l),className:Jh,"aria-label":`Страница ${l}`,children:l},String(t)):null},Qh={width:"24",height:"24"},ep=({currentPage:e,onPageChange:t,totalPages:n})=>{const i=r((()=>Array.from({length:n}).fill({currentPage:e,onPageChange:t,totalPages:n})),[n,e]),a=l((()=>{e>1&&t(e-1)}),[e]),s=l((()=>{e<n&&t(e+1)}),[e,n]),d=l((()=>t(1)),[]),m=l((()=>t(n)),[n]);return c("div",{className:"flex gap-m items-center",children:[o("div",{onClick:a,children:o(W,{name:"ArrowLeftIcon",iconVersion:"black",imageClassName:tp(1===e),...Qh})}),c("div",{className:"flex @lg:gap-2xs",children:[e>1?o("div",{onClick:d,className:Jh,"aria-label":"Страница 1",children:"1"}):null,e>3?o("div",{className:"py-m @lg:px-s",children:"..."}):null,i.map(Zh),e<n-2?o("div",{className:"py-m @lg:px-s",children:"..."}):null,e<n?o("div",{onClick:m,className:Jh,"aria-label":`Страница ${n}`,children:n}):null]}),o("div",{onClick:s,children:o(W,{className:"rotate-180",name:"ArrowLeftIcon",iconVersion:"black",imageClassName:tp(e===n),...Qh})})]})},tp=e=>e?"opacity-20":"cursor-pointer hover:opacity-60",np=({currentPage:e,onPageChange:t,totalPages:n,itemCount:i,onItemCountChange:a})=>c("div",{className:"mt-3xl flex justify-between flex-col @lg:flex-row items-center select-none",role:"navigation","aria-label":"Пагинация",children:[o(ep,{currentPage:e,onPageChange:t,totalPages:n}),i&&a?o(Xh,{itemCount:i,onItemCountChange:a}):null]}),ip=d((({className:e,value:t,autoFocus:n,onChange:i,onFocus:a,placeholder:r="Поиск по сайту"})=>{const s=l((e=>{i&&i(e.target?.value||"")}),[i]);return c("div",{className:u("relative",e),role:"form",children:[o("div",{className:"absolute h-full flex items-center pl-m pointer-events-none",children:o(ne,{image:{icon:"LoupeIcon",iconVersion:"black"},width:"24",height:"24"})}),o("input",{className:u("h-14 w-full px-10 text-l text-black box-border rounded-md",dn),value:t,type:"text",name:"search-bar-input",placeholder:r,autoFocus:n,onChange:s,onFocus:a})]})})),ap=d((({field:e,onClearFilter:t,filtrationState:n})=>c("div",{className:"grid grid-cols-12 mb-3xl @lg:space-x-xl",children:[o(ip,{className:"col-span-12 @lg:col-span-4 mt-auto",placeholder:"Поиск",...e("query")}),o(Ll,{className:"col-span-12 @lg:col-span-3 mt-4 @lg:mt-0",label:"Период от",maxDate:n.endDate,...e("startDate")}),o(Ll,{className:"col-span-12 @lg:col-span-3 mt-4 @lg:mt-0",label:"Период до",minDate:n.startDate,...e("endDate")}),o("div",{className:"col-span-12 @lg:col-span-2 mt-8 @lg:mt-auto",children:o(Ea,{type:"reset",className:"w-full",version:"secondary",onClick:t,children:"Очистить"})})]}))),lp=(e,t)=>o(hd,{...e,iconBgVersion:t,className:"shrink-0"}),rp=({title:e,timestamp:t,publicId:n})=>{const i=he(),{href:a}=i({href:`/api/v1/depository/${n}/file`});return c("div",{className:"flex gap-3 items-center py-lg border-gray border-opacity-50 border-b",children:[lp({icon:"DocDownloadIcon",iconVersion:"black"}),c("div",{className:"flex flex-col gap-x-6xl lg:flex-row lg:items-center",children:[t?o(_e,{size:"text-m","font-weight":"font-light",children:Lt(t)}):null,o("a",{className:"text-h6 hover:text-primary-active",href:a,download:!0,"aria-label":"Скачать",children:e})]})]},n)},sp="/api/v1/depository",op={startDate:void 0,endDate:void 0,query:""},cp=zt((({className:e,...t})=>{const[n,a]=i(0),[r,s]=i(10),[d,{field:m,reset:h}]=en(op),{totalPages:p=0,items:f=[]}=(({size:e,page:t,query:n,startDate:i,endDate:a})=>{const l=i?Lt(i,!0):"",r=a?Lt(a,!0):"",s=new URLSearchParams(sp);s.set("page",String(t)),s.set("size",String(e)),s.set("query",n),s.set("timestampStart",l),s.set("timestampEnd",r);const o=`?${s.toString()}`,{data:c}=ci(sp+o,Rt);return{items:c?.content,totalPages:c?.totalPages}})({size:r,page:n,...d}),x=l((e=>a(e-1)),[]),y=l((e=>{r!==e?(s(e),a(0)):s(e)}),[]);return c(g,{className:u(e,"container p-6xl"),...t,children:[o(ap,{filtrationState:d,field:m,onClearFilter:h}),c("div",{className:"flex flex-col",children:[c("div",{className:"grid grid-cols-12 pb-lg border-gray border-opacity-50 border-b",children:[o("div",{className:"col-span-4 @lg:col-span-2 hidden @lg:block",children:o(_e,{size:"text-m",color:"text-secondary-text",children:"Дата"})}),o("span",{className:"col-span-8 @lg:col-span-10 hidden @lg:block",children:o(_e,{size:"text-m",color:"text-secondary-text",children:"Тема"})})]}),f.length?f.map((e=>o(rp,{...e},String(e.publicId)))):o(dc,{title:"Ничего не найдено",description:"Попробуйте очистить фильтры"}),o(np,{currentPage:n+1,onPageChange:x,totalPages:p,itemCount:r,onItemCountChange:y})]})]})})),dp=e=>"Image"===e?.contentType&&e?.image?o(ne,{image:e.image}):"Code"===e?.contentType&&e.code?o("div",{className:"font-mohave text-title-large sm:text-title-extra gradient-color-text",children:e.code}):null,mp=d((({className:e="",title:t,description:n,error:i,button:a,...l})=>c(g,{className:u("flex flex-col justify-center items-center",e),defaultPadding:u("p-6xl"),version:"transparent",...l,children:[o("div",{className:"flex justify-center",children:dp(i)}),o(k,{title:t,description:n,headlineVersion:"XL",isEmbedded:!0,className:"mb-2xl last:mb-0"}),a?.text?o(ve,{version:a?.version,text:a?.text,...a}):null]})));function up(e,t){for(const[n,i]of e.entries())null!=i?t.setItem(n,i):t.removeItem(n)}const hp={};function pp(e,t=hp){const n=s(null),o=function(){const[,e]=i(0);return l((()=>e((e=>(e+1)%65536))),[])}();return a((()=>e.bus.watch((e=>{n.current?.has(String(e.type))&&o()}))),[e,o]),r((()=>new Proxy(t,{get:(t,i)=>(n.current||=new Set,n.current.add(i),e.getItem(i)),has:(t,i)=>(n.current||=new Set,n.current.add(i),e.hasItem(i)),set:(t,n,i)=>(e.setItem(n,i),!0),deleteProperty:(t,n)=>(e.removeItem(n),!0)})),[e])}const gp=new class{bus;store=new Map;get size(){return this.store.size}constructor(e=new de){this.bus=e}hasItem(e){return this.store.has(e)}getItem(e){return this.store.get(e)}entries(){return this.store.entries()}setItem(e,t){this.store.set(e,t),this.bus.subject(e,t)}removeItem(e){this.store.delete(e),this.bus.subject(e,null)}};var fp,xp;function yp(e){return pp(gp,e)}fp=gp,xp=new class{storage;bus;get size(){return this.storage?.length??0}constructor(e,t=new de){this.storage=e,this.bus=t}hasItem(e){return Boolean(this.storage?.getItem(String(e)))}getItem(e){const t=this.storage?.getItem(String(e))??null;try{return JSON.parse(String(t))}catch(e){return null}}entries(){return Array.from({length:this.size},((e,t)=>{const n=String(this.storage?.key(t));return[n,this.getItem(n)]}))}setItem(e,t){null!==t?this.storage?.setItem(String(e),JSON.stringify(t)):this.storage?.removeItem(String(e)),this.bus?.subject(e,t)}removeItem(e){this.storage?.removeItem(String(e)),this.bus?.subject(e,null)}}(globalThis?.localStorage),up(fp,xp),up(xp,fp),fp.bus.watch((({type:e,event:t})=>{null!=t?xp.setItem(e,t):xp.removeItem(e)}));const bp="/api/v1/region";function vp(e="Москва"){return yp().location??{name:e}}function Np(e="Москва"){const t=yp(),n=l((async()=>{if(!t.location){const n=await Pt(bp);t.location=n??{name:e}}}),[t,e]);return ci(bp,n),t}var wp;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD",e.CNY="CNY"}(wp||(wp={}));const Sp=new Intl.NumberFormat("ru",{style:"currency",currency:wp.RUB}),Cp=e=>e?Sp.format(e):"",kp="text-m font-light text-secondary-text ",Ip=`${kp} text-left`,Tp=`${kp} pl-5xl text-center`,Bp=`${kp} pl-5xl text-right`,Pp={USD:"DollarIcon",EUR:"EuroIcon",CNY:"ChineseYuanRenminbiIcon"},Rp=d((({className:e,exchangeCurrencyItems:t})=>c("table",{className:u("h-fit w-full",e),children:[o("thead",{children:c("tr",{children:[o("th",{className:Ip,children:o(_e,{size:"text-m",children:"Валюта"})}),o("th",{className:Tp,children:o(_e,{size:"text-m",children:"Купить"})}),o("th",{className:Bp,children:o(_e,{size:"text-m",children:"Продать"})})]})}),o("tbody",{children:t.map(Dp)})]}))),Dp=e=>{const t=e?.currency?.currency;return c("tr",{className:"pb-2xs text-h6",children:[o("td",{className:"pt-m m-auto flex text-left",children:c("div",{className:"flex items-center gap-xs",children:[t?o(ne,{image:{icon:Pp[t]},width:"24",height:"24"}):null,o(_e,{size:"text-h6",children:t})]})}),o("td",{className:"pt-m pl-5xl text-center",children:o(_e,{size:"text-h6",children:Cp(e?.saleExchangeRate)})}),o("td",{className:"pt-m pl-5xl text-right",children:o(_e,{size:"text-h6",children:Cp(e?.buyExchangeRate)})})]},t)},Mp={icon:"GpsIcon"},_p=d((({className:e="",address:t})=>c("div",{className:u("flex gap-s w-full justify-between @sm:justify-center",e),children:[o(hd,{...Mp,iconBgVersion:"primary",className:"shrink-0"}),c("div",{className:"space-y-2xs whitespace-pre-wrap",children:[t?o(S,{size:"text-l",color:"text-primary-main",children:t}):null,o(S,{size:"text-m",color:"text-secondary-text",children:"Курс указан для заданного офиса"})]})]}))),Ap=(e,t,n)=>{const i=Number(Ep(e))*Math.pow(t,n?-1:1);return Number.isInteger(i)?i:((e,t=2)=>{const n=10**t;return Math.round(parseFloat(String(e))*n)/n})(i)},Ep=e=>e.replace(/[^\d.,]/g,"").replace(",",".");function zp(e){if(!e)throw new Error("Value should be fulfilled");return e}const Fp=e=>t=>{const[,n]=zp(e.find((([e])=>e(t))));return n(t)},Op=e=>Fp(e.map((([e,t])=>[e,()=>t])));Op.if=e=>new Vp(void 0,e);class Vp{parent;predicate;unit;get entry(){return[zp(this.predicate),zp(this.unit)]}constructor(e,t,n){this.parent=e,this.predicate=t,this.unit=n}if(e){return new Vp(this,e)}then(e){return new Vp(this.parent,this.predicate,e)}else(e){return Fp([...Lp(this),[()=>!0,e]])}}const Lp=e=>[...e?.parent?Lp(e.parent):[],e.entry],jp=e=>Op([[e=>e.value!==wp.RUB&&e.oppositeValue!==wp.RUB,()=>e.handleConvert(e.value,wp.RUB)],[e=>e.value===wp.RUB&&e.oppositeValue===wp.RUB,()=>e.handleConvert(e.value,wp.USD)],[e=>e.value===wp.RUB&&e.oppositeValue===wp.RUB,()=>e.handleConvert(e.value,wp.CNY)],[()=>!0,()=>e.handleConvert(e.value)]])(e)?.();function qp(e){const{placeholder:t,rates:n,selected:i,value:a,setValue:l,setSelected:r}=e,s=n.map((e=>({key:e?.currency?.currency??"",text:e?.currency?.currency??""}))),d={key:i,text:i};return c("div",{className:"relative flex",children:[o(un,{className:"shrink-0 text-l w-full appearance-none -mr-20",placeholder:t,type:"text",value:a,onChange:l}),s.length?o(Tn,{className:"absolute right-0",isBorder:!1,onChange:e=>r(e.key),options:s,value:d}):null]})}const $p=d((({className:e="",currencyRatesBuy:t,currencyRatesSell:n,button:a})=>{const[r,s]=i({inputSell:"",inputBuy:"",selectSell:t?.[0]?.currency?.currency||wp.RUB,selectBuy:n?.[0]?.currency?.currency||wp.USD}),d=l((e=>s((t=>({...t,...e})))),[]);return c("div",{className:`flex flex-col gap-m pt-2xl ${e}`,children:[t&&n?c("div",{className:"grid gap-m",children:[qp({placeholder:"Хочу продать",rates:n,selected:r.selectSell,setSelected:Up(r,d,n),value:r.inputSell,setValue:e=>Hp(d,n)(e,r.selectSell,r.selectBuy)}),qp({placeholder:"Получу",rates:t,selected:r.selectBuy,setSelected:Wp(r,d,t),value:r.inputBuy,setValue:e=>Yp(d,t)(e,r.selectBuy,r.selectSell)})]}):null,a?.text?o(ve,{text:a.text,version:a?.version,...a}):null]})})),Up=(e,t,n)=>i=>{t({selectSell:i}),jp({value:i,oppositeValue:e.selectBuy,handleConvert:(i=e.selectSell,a=e.selectBuy)=>{Hp(t,n)(e.inputSell,i,a)}})},Wp=(e,t,n)=>i=>{t({selectBuy:i}),jp({value:i,oppositeValue:e.selectSell,handleConvert:(i=e.selectBuy,a=e.selectSell)=>Yp(t,n)(e.inputBuy,i,a)})},Hp=(e,t)=>(n,i,a)=>{e({inputSell:Ep(n),selectBuy:a});const l=t.find((e=>e.currency?.currency===a))?.buyExchangeRate||t.find((e=>e.currency?.currency===i))?.buyExchangeRate;l&&e({inputBuy:String(Ap(n,l,i===wp.RUB)||"")})},Yp=(e,t)=>(n,i,a)=>{e({inputBuy:Ep(n),selectSell:a});const l=t.find((e=>e.currency?.currency===a))?.saleExchangeRate||t.find((e=>e.currency?.currency===i))?.saleExchangeRate;l&&e({inputSell:String(Ap(n,l,i===wp.RUB)||"")})};const Kp=d((({className:e="",title:t="Курсы обмена валют",button:n,...i})=>{const a=function(e){const t=e?.code||"000",{data:n}=ci(`/api/v1/exchangerates?regionCode=${t}`,Rt);return n||{}}(vp()),l=Gp(a?.exchangeRate?.currencies),r=l.filter((e=>e.buyExchangeRate));r.unshift({currency:{currency:wp.RUB}});const s=l.filter((e=>e.saleExchangeRate));return s.push({currency:{currency:wp.RUB}}),o(g,{className:u("box-border min-h-80",e),...i,children:o(Te,{className:"h-full",title:o(w,{headingType:"h4",title:t,className:"whitespace-pre-wrap"}),children:c("div",{className:"flex w-full gap-6xl flex-wrap @lg:flex-nowrap",children:[c("div",{className:"w-full @2xl:w-auto @5xl:w-1/2",children:[l?o(Rp,{className:"mb-xl",exchangeCurrencyItems:l}):null,o(_p,{address:a?.address})]}),o($p,{className:"grow w-1/2",currencyRatesBuy:r,currencyRatesSell:s,button:n})]})})})})),Gp=e=>e?.filter((e=>[1,2,3].includes(e?.currency?.id)))||[],Xp=d((({className:e="",items:t})=>{const n=he();return o("ul",{className:u("flex flex-col gap-s w-full",e),children:t?.map(Jp(n))})})),Jp=e=>({dataFooter:t,...n},i)=>{const{text:a,href:l,target:r,onClick:s}=e(n);return a?o("li",{className:"list-none",children:o("a",{className:"hover:text-primary-main font-light",role:"link",href:l,target:r||"_self",onClick:s,...ge(t),children:a||null})},String(i)):null},Zp=d((({label:e,labelIconBgVersion:t,icon:n,onToggle:i,labelIcon:a})=>o($c,{tag:"button",className:u("border-none bg-transparent items-center group/button",a?.icon?"py-xs":"py-lg"),onClick:i,textNode:c("div",{className:"flex items-center text-start group-hover/button:text-primary-main gap-s",children:[lp(a,t),e?o(_e,{size:"text-h6",font:"font-normal",children:e}):null]}),iconNode:n?o(W,{name:n,iconVersion:"color",width:"24",height:"24"}):null}))),Qp=(e=!1)=>e?"flex flex-wrap group-last:last:pb-0":"grid grid-cols-12 [&>*]:pb-m",eg=(e=!1)=>e?"MinusIcon":"PlusIcon",tg=(e=!1)=>e?"ArrowUpSolidIcon":"ArrowDownSolidIcon",ng=zt((({className:e="",isExpanded:t,isFoldButtonOnTop:n=!0,label:i="Развернуть",labelIcon:a,labelIconBgVersion:l,foldButtonVersion:r="default",version:s,role:c,...d})=>{const m=Ce();return o(g,{className:u("w-full border-0 border-b border-solid border-main-divider last:border-b-0",e),defaultPadding:"p-0",tag:"div",version:"transparent",role:c,...d,children:o(Xi,{isFoldButtonOnTop:n,unfoldedByDefault:t,renderFoldableSection:({isUnfolded:e})=>o(Ji,{className:u("gap-lg",Qp(m)),isUnfolded:e,children:D({...d,extraProps:{className:"w-full",padding:"p-0"}})}),renderFoldButton:({isUnfolded:e,onToggle:t})=>ig({foldButtonVersion:r,label:i,labelIcon:a,labelIconBgVersion:l,isUnfolded:e,onToggle:t,isMobile:m})})})}),{childrenTypes:{exclude:["RollupItem"]}}),ig=({foldButtonVersion:e,label:t,labelIcon:n,labelIconBgVersion:i,isUnfolded:a,onToggle:l,isMobile:r=!1})=>{const s=t||(a?"Скрыть":"Развернуть"),c=((e=!1,t=!1)=>t?tg(e):eg(e))(a,r);return"accordion"===e?o(Zp,{label:s,labelIcon:n,labelIconBgVersion:i,icon:c,onToggle:l}):o(Uc,{label:s,icon:a?"ArrowUpIcon":"ArrowDownIcon",onClick:l})},ag=d((({navigationItems:e})=>o("div",{className:"w-full",role:"menu",children:lg(e)}))),lg=e=>e?.filter((e=>e.icon?.icon)).map(((e,t)=>o(ng,{foldButtonVersion:"accordion",label:e?.text,labelIcon:e?.icon,role:"menuitem",children:e.items?o(Xp,{items:e.items}):null},String(t)))),rg=d((({className:e="",items:t=[]})=>t?.length?o("div",{className:u("space-y-m",e),children:t.map(sg)}):null)),sg=(e,t)=>c("div",{className:"space-y-m",children:[o("div",{children:o(_e,{size:"text-l",font:"font-medium",children:e?.title})}),o("div",{className:"space-y-m",children:e.items?.map(og)})]},String(t)),og=(e,t)=>c("div",{className:"space-y-2xs",children:[o("div",{children:cg(e.type,e.text)}),o(S,{size:"text-s",font:"font-light",color:"text-secondary-text",children:e.description})]},String(t)),cg=(e,t="")=>{switch(e){case"tel":return o("a",{className:"text-primary-text hover:text-primary-main no-underline",href:`tel:${dg(t)}`,children:o(_e,{size:"text-h6",children:t})});case"email":return o("a",{className:"no-underline",href:`mailto:${t}`,children:o(S,{size:"text-xl",font:"font-light",color:"text-primary-text",children:t})});default:return o("span",{children:t})}},dg=e=>e.replaceAll(/\D/g,""),mg=d((({className:e="",index:t,text:n,...i})=>{const a=he(),{href:l,target:r,onClick:s}=a(i);return o("a",{className:u("text-secondary-text",e),href:l,target:r,onClick:s,children:n||`Документ ${t}`})})),ug=d((({className:e="",title:t,links:n})=>o("div",{className:e,children:n?.length?c("div",{className:"flex justify-between lg:items-center flex-col lg:flex-row gap-lg py-lg border-y border-y-main-divider",children:[o("div",{className:"lg:hidden",children:o(_e,{size:"text-l",font:"font-normal",children:t})}),n.map(((e,t)=>o(mg,{index:t,className:"text-l font-light lg:max-w-[292px]",...e},String(t))))]}):null}))),hg=d((({className:e="",index:t,...n})=>{const i=he(),{href:a,target:l,text:r,onClick:s}=i(n);return o("a",{className:u("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:l,onClick:s,children:r||`Документ ${t}`})})),pg=d((({className:e="",links:t,license:n})=>c("div",{className:u("@container space-y-lg",e),children:[n?o("div",{children:o(_e,{size:"text-xs",font:"font-light",color:"text-secondary-text",children:`© 2000-${(new Date).getFullYear()} ${n}`})}):null,t?.length?o("div",{className:"flex flex-col @5xl:flex-row justify-start items-start gap-x-lg gap-y-xs",children:t.map(((e,t)=>o(hg,{index:t,...e},String(t))))}):null]}))),gg=zt((({className:e,footer:t,...n})=>{const{navigationItems:i}=n.options?.page?.navigation??{};n.options?.page?.common;const{documents:a,relatedEnterprises:l,contacts:r,mediaLinks:s=[],horizontalNavigationTitle:d,feedbackButton:m,license:h,otherLinks:p=[]}=t??{};return c(g,{tag:"footer",className:u("grid gap-y-xl p-4xl pb-24 lg:p-xl",e),...n,children:[null,c("div",{className:"flex flex-col lg:flex-row items-center @lg:items-stretch gap-lg lg:gap-6xl ",children:[o(ag,{navigationItems:i}),o("div",{className:"border-t border-main-divider lg:hidden w-full"}),c("div",{className:u("w-full lg:w-52","flex flex-col shrink-0 overflow-hidden space-y-xl"),children:[o(rg,{items:r}),m?o(ve,{className:"w-full",version:"primary",...m}):null,s.map(((e,t)=>o(hu,{media:e?.links??[],showButtonText:!1,stretched:!0,children:e?.title},String(t)))),p.map(((e,t)=>o(ve,{className:"!text-left text-s font-light",version:"link",...e,children:e?.text},String(t))))]})]}),o(ug,{title:d,links:l}),o(pg,{links:a,license:h})]})})),fg=zt((({className:e,title:t,button:n,regionSource:a,data:l,...r})=>{const[s,d]=i({key:""}),m=a?.regions??[],h=oe({className:"text-white",version:n?.version||"primary"}),p=m?.find((e=>e.name===s.key))?.href,f=n?.text?n.text:"Перейти";return o(g,{className:e,defaultPadding:"p-6xl",...r,children:c("div",{className:"container max-w-[978px] space-y-m",children:[t?o(w,{headingType:"h3",title:t,className:"@xl:text-center"}):null,m?o(Dn,{label:"Ваш регион",placeholder:"Выберите регион",isSearch:!0,options:m.map((({name:e=""})=>({key:e,text:e}))),value:s,onChange:d}):null,p?o("div",{className:"text-center",children:o(ve,{href:p,target:"_blank",className:u("p-m w-full @xl:w-auto",h),data:du(l,s?.key),children:f})}):null]})})})),xg={default:"bg-main-divider text-primary-main rounded hover:text-primary-main",transparent:"backdrop-opacity-30 bg-white/30 hover:text-primary-hover text-white"},yg=d((({version:e,text:t,mobileText:n,...i})=>{const a=Ce()?n:t;return a?o(ve,{className:u("py-s px-lg font-light whitespace-nowrap",xg["transparent"===e?"transparent":"default"]),...i,children:a}):null})),bg=d((({bgColor:e,logo:t,alwaysShowLogo:n,internetBankButton:i,version:a,backwardButton:r})=>{const s=M(),d="/"===s.pathname,{dataFooter:m,dataHeader:u,...h}=t??{},p=l((()=>{s.back()}),[s]);return c("div",{className:"flex items-center justify-between w-full",children:[n||d?o("div",{children:o(Bo,{className:"my-2xs",bgColor:e,logo:h,data:u,showTitle:!1})}):vg(p,r),o(yg,{version:a,...i})]})})),vg=(e,t)=>t?c("button",{className:"flex items-center text-l my-2xs",onClick:e,type:"button","aria-label":"Кнопка назад",children:[o(W,{name:"ChevronLeftIcon",iconVersion:"black",width:"24",height:"24"}),t]}):null,Ng={"bg-white":"primary",transparent:"transparent"},wg=zt((({bgColor:e="bg-white",alwaysShowLogo:t=!1,version:n=Ng[e],portal:i,logo:a={},...l})=>{const{backwardButton:r,logo:s={}}=l.options?.page?.common??{},{internetBankButton:c}=i||{},d=a.image?.icon||a.image?.src?a:s;return o(g,{tag:"header",defaultPadding:"",version:n,...l,children:o("div",{className:"container px-lg py-2xs box-border",children:o(bg,{bgColor:e,logo:d,alwaysShowLogo:t,internetBankButton:c,version:n,backwardButton:r,...l})})})})),Sg=(e=!1)=>e?{}:{padding:"p-0"},Cg={XXL:"gap-6xl",XL:"gap-5xl",L:"gap-3xl",M:"gap-m",S:"gap-xs",XS:"gap-2xs","":""},kg=zt((({className:e="",padding:t="p-0",gap:n="",isInnerPadding:i=!0,version:a="transparent",isTheme:l=!1,isCardBorder:r=!1,image:s,...c})=>{const d=M();return o(g,{className:u("relative flex flex-col",Cg[n],s?.src?"bg-right-bottom bg-no-repeat":"",e),...s?.src?{style:{backgroundImage:`url(${J(d)(s?.src)})`}}:{},padding:t,version:a,isTheme:l,...c,children:D({...c,extraProps:{className:u("w-full",mc(r)),...Sg(i)}})})}),{childrenTypes:[]}),Ig=zt((e=>o(kg,{...e})),{childrenTypes:[]}),Tg=d((e=>{const{className:t,align:n,image:i,...a}=e,l=n?u("flex",yd[n]):"";return o(g,{className:u(l,t),defaultPadding:"p-0",...a,children:o(ne,{image:i})})})),Bg=["байт","Кб","Мб","Гб","Тб","Пб"],Pg=d((({icon:e,text:t,href:n,target:i,fileFormat:a,data:l,fileSize:r})=>{const s=r&&a?",":"",d=r??"",m=a?String(a):"";return c("a",{className:"flex box-border gap-s group/item h-fit w-fit text-primary-text no-underline hover:text-primary-main",href:n,target:i,...ge(l),children:[e,t?c(_e,{size:"text-l",font:"font-light",children:[t," ",Rg(d,m),o(_e,{color:"text-secondary-text",children:n&&`${d+s+m}`})]}):null]})})),Rg=(e,t)=>e||t?o("span",{children:", "}):"",Dg=(e,t)=>(n,i)=>{const a=$(e)("Attachment"===n?.docType?n?.attachment?.src:n?.href),l="Attachment"===n?.docType?((e,t=2)=>{if(0===e)return"";const n=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/Math.pow(1024,n)).toFixed(t))} ${Bg[n]}`})(n?.attachment?.fileSize||0):n?.fileSize,r="Attachment"===n?.docType?_g(a):n?.fileFormat;return c("div",{role:"listitem",children:[o(Pg,{text:n?.text,target:n?.target,href:a,fileFormat:r,fileSize:l,icon:Mg(t),data:n?.data}),o(De,{__html:n?.__html})]},String(i))},Mg=e=>e?o(ne,{className:"min-w-11 min-h-11 h-fit p-2.5 bg-main-divider rounded-md",image:e,width:"24",height:"24"}):null,_g=e=>{if(!e)return"";const t=e.lastIndexOf("."),n=new RegExp(/\/(.*)/),i=-1!==t?e.substring(t+1):"";return i.includes("/")?i.replace(n,""):i},Ag=d((({href:e,__html:t,target:n})=>{const{close:i}=ue(),a=M(),r=$(a)(e),s=l((()=>{i()}),[]);return c(tr,{className:"my-6xl min-h-fit w-fit mx-auto",children:[t?o(De,{__html:t}):null,c("div",{className:"flex flex-row mx-auto w-fit gap-lg py-lg",children:[o(ve,{text:"Я согласен",version:"primary",target:n,href:r,onClick:s}),o(Ea,{type:"button",version:"secondary",onClick:s,children:"Я не согласен"})]}),o("div",{children:"Нажимая кнопку «Я СОГЛАСЕН» ниже Вы принимаете данные условия. Распространение или раскрытие любой части данного Заключения или любой информации, или рекомендации в нем запрещено.»"})]})})),Eg=d((({text:e,href:t,target:n,__html:i,icon:a})=>{if(!e&&!i)return null;const r=(e=>{const{open:t,close:n}=ue();return{open:(n={})=>t(o(Ag,{...e}),n),close:n}})({__html:i,href:t,target:n}),s=l((()=>r.open()),[r]);return c("button",{className:"flex gap-s text-primary-text no-underline hover:text-primary-main",onClick:s,children:[Mg(a),o(_e,{font:"font-light",children:e})]})})),zg={double:"sm:flex-wrap sm:flex-row",single:"sm:flex-col"},Fg=zt((({className:e="",title:t,description:n,align:i="text-center",documents:a,icon:l={icon:"DocIcon"},columnsMode:r="double",...s})=>{const d=M();return c(g,{className:u("space-y-lg",e),defaultPadding:"p-6xl",...s,children:[o(k,{title:t,description:n,align:i,headlineVersion:"M",as:"h2",isEmbedded:!0}),a?.length?o("div",{className:u("grid gap-xl","double"===r?"@md:grid-cols-2":"grid-cols-1",zg[r]),role:"list",children:a.map(Og(d,l))}):null]})})),Og=(e,t)=>(n,i)=>{const a=n?.docType;return""===a?null:"reportSource"in n&&n?.reportSource?.__html?Vg(t)(n,i):Dg(e,t)(n,i)},Vg=e=>(t,n)=>{const i={text:t.text,target:t.target,__html:t.reportSource?.__html};return t.reportSource?.__html&&t.text?c("div",{role:"listitem",children:[o(Eg,{...i,icon:e,href:Lg(t)?t?.href:t?.attachment?.src}),o(De,{__html:t?.__html})]},String(n)):null},Lg=e=>"href"in e,jg=zt((({className:e,padding:t,align:n="text-left",buttons:i=[],description:a,image:l,__html:r,headingType:s,qr:d,additionalDescription:m="",title:h="Мобильное приложение",version:p="primary",...f})=>{const x="secondary"===p?"p-m min-w-32":"min-w-24",y=l?.src?o(ne,{className:"hidden lg:block",image:l}):null;return o(g,{className:u("min-h-80",e),padding:"p-0",version:p,...f,children:c(Te,{className:"h-full",padding:t,defaultPadding:"p-6xl",title:o(w,{headingType:s,title:h,className:u("whitespace-pre-wrap",n)}),rightImage:y,buttons:je(i,{className:"flex-wrap"}),children:[a?o(_e,{size:"text-xl","font-weight":"font-light",children:a}):null,c("div",{className:u("gap-m","flex flex-1 flex-col","flex-col items-start @xl:flex-row @xl:items-center"),children:[r?o(De,{__html:r,itemSize:"list-m"}):null,o(_e,{size:"text-m","font-weight":"font-light",color:"text-secondary-text",children:m}),d?.src?o("div",{className:u("flex justify-center bg-white rounded-md @xl:-order-1",x),children:o(ne,{className:"w-fit",image:d})}):null,l?.src?o(ne,{className:"lg:hidden",image:l}):null]})]})})})),qg=(e=[],t={})=>e.filter((({content:e={}})=>ad(t,e))).length,$g=(e,t)=>e===t;const Ug=(e=>(t,n)=>t===n||Boolean(t&&n&&Object.keys(t).length===Object.keys(n).length&&Object.entries(t).every((([t,i])=>e(i,n[t])))))(function(...e){return(t,n)=>e.some((e=>e(t,n)))}($g,((e=$g)=>(t,n)=>t===n||Boolean(t&&n&&t.length===n.length&&t.every(((t,i)=>e(t,n[i])))))())),Wg=[],Hg={},Yg={primary:"bg-white/30",secondary:"bg-main-divider"},Kg={primary:{desktop:"text-white",mobile:"text-primary-text"},secondary:{desktop:"text-secondary-text",mobile:"text-secondary-text"}},Gg=d((({count:e,version:t="secondary"})=>{const n=Ce(),i=n?"bg-main-divider":Yg[t],a=Kg[t][n?"mobile":"desktop"];return o("div",{className:u("w-6 h-6 rounded-full flex items-center justify-center",i),role:"status","aria-label":`Количество ${e} доступных программ и сервисов`,children:o(_e,{size:"text-xs",color:a,children:e})})})),Xg=({text:e,description:t,icon:n,isActive:i,type:a})=>{const l=(e=>({btn:"w-96 "+(e?"p-m border-none bg-primary-main text-white":"p-s ease-in duration-300 bg-white"),text:e?"mb-xs text-xl":"mb-2xs text-l text-primary-text",desc:"font-light "+(e?"text-l text-white":"text-m text-secondary-text"),icon:e?"":"text-primary-main",iconVersion:e?"white":"normal",oldText:"text-m text-center",oldDesc:"text-m-light"}))(i);return c("div",{className:u("cursor-pointer text-left border-b-0 flex gap-2xs"),"aria-label":e,"aria-labelledby":`${e}-label`,children:[n?o(ne,{className:u("h-6 w-6 min-w-6 min-h-6",l.icon),image:{...n,iconVersion:n?.iconVersion??l.iconVersion},width:"24",height:"24",alt:e}):null,c("div",{className:"border-0",children:[o("div",{className:"animated"===a?l.text:l.oldText,children:e}),o("div",{className:"animated"===a?l.desc:l.oldDesc,children:t})]})]})},Jg={default:"px-xs",underlined:"px-m",animated:"px-m border border-gray cursor-pointer text-left border-b-0 mt-auto flex gap-2xs"},Zg={default:"text-black sm:text-white",underlined:"text-primary-main border-b-2",animated:"text-white sm:text-white"},Qg={default:"bg-white",underlined:"bg-white",animated:"p-1 ease-in duration-300 bg-white text-primary-text h-[70px] w-96"},ef={default:"bg-white sm:bg-primary-main",underlined:"bg-white",animated:"p-2 border-none bg-primary-main text-white h-20 w-96"},tf=d((({tag:e="div",item:t={},isActive:n=!1,type:i="default",onClick:a})=>{const l=e,{text:r,description:s,icon:d,count:m,tabName:h,...p}=t;return o(l,{className:u("h-12","block flex-1","cursor-pointer",Jg[i],n?ef[i]:Qg[i]),role:"tablist","aria-label":"Список табов",onClick:a,...p,children:c("div",{className:u("h-full","flex justify-center items-center","text-center whitespace-nowrap",n?Zg[i]:"text-secondary-text hover:text-primary-main"),role:"tab","aria-label":`Таб ${r}`,children:[Xg({text:r,description:s,icon:d,isActive:n,type:i}),Number.isInteger(m)?o("div",{className:"ml-xs",role:"status","aria-label":`Количество программ и сервисов ${m}`,children:o(Gg,{count:m,version:za(n,i)})}):null]})})})),nf=d((e=>o(e?.item?.href?af:lf,{...e}))),af=d((e=>{const t=he(),n=l((()=>{e.onClick&&e.onClick(e.item||{})}),[e.onClick,e.item]),{onClick:i,...a}=t({...e.item,onClick:n});return o(tf,{...e,tag:"a",item:a,onClick:i})})),lf=d((({item:e={},onClick:t,...n})=>{const i=l((()=>{t&&t(e)}),[t,e]);return o(tf,{item:e,onClick:i,...n})})),rf=(e,t,n)=>(i,a)=>o(nf,{isActive:i===e,onClick:t,type:n,item:i},String(a)),sf=d((({className:e,tabsType:t="default",items:n=[],activeItem:i,onChange:a})=>o("div",{className:u("flex gap-x-2xs overflow-x-auto no-scrollbar",e),role:"tabpanel","aria-label":"Панель управления табами",children:n.map(rf(i,a,t))}))),of={categories:[],extraOptions:[],propertyType:[],stage:[]},cf=zt((({className:e,hotFilters:t,filtrationSchema:n={},resetButton:i,...a})=>{const[s,{blocksToRender:d},{field:m,reset:h,update:p}]=rd(of,{block:a.block,page:a.options?.page}),f=l(((e=of)=>p(e)),[]),x=(({hotFilters:e=Wg,filtrationState:t=Hg,blocks:n=Wg,onFiltrationStateChange:i})=>{const a=r((()=>Math.max(0,e.findIndex((e=>Ug(e.filter,t))))),[e,t]),s=r((()=>e.map((t=>({text:t.text,count:qg(n,t.filter),version:za(t===e[a])})))),[e,n,a]),o=l((t=>{i(e[s.indexOf(t)].filter)}),[e,s]);return{activeItem:s[a],items:s,onChange:o}})({hotFilters:t,filtrationState:s,blocks:a.block?.blocks,onFiltrationStateChange:f});return c(g,{className:u("space-y-2xs",e),defaultPadding:"p-0",version:"transparent",...a,children:[o(sf,{...x}),o(Qc,{filtrationSchema:n,resetButton:i,field:m,reset:h}),o(Gc,{blocksToRender:d,...a})]})}),{childrenTypes:["ProductBlock"],childSchema:e=>e?.filtrationSchema||{}}),df=({location:e,address:t,billAcceptorType:n,terminalType:i,billAcceptorEnable:a,atmCode:l="",atmAccess:r="",workTime:s},d)=>{const m=[{label:"Устройство",value:hf(i)},{label:"Модуль приема наличных",value:a?"Да":"Нет"},{label:"Прием наличных пачкой",value:"банкомат принимает пачками"===n?"Да":"Нет"},{label:"Доступность",value:["внешняя установка","территория банка"].includes(r)?"Общедоступный":""},{label:"Регистрационный номер",value:l}];return c("div",{className:"bg-white col-span-12 p-3xl sm:border-green sm:border",children:[c("div",{className:"sm:flex sm:justify-between",children:[c("div",{children:[o(_e,{size:"text-h4",children:hf(e)}),t?c("div",{className:"flex pb-xl pt-xs gap-2xs",children:[o(W,{name:"GeolocationIcon",width:"24",height:"24"}),o(_e,{size:"text-l",children:t})]}):null]}),o("div",{className:"whitespace-nowrap",children:o(ha,{color:"green",children:hf(s)})})]}),o("div",{className:"hidden sm:block",children:o(na,{className:"flex-wrap",children:m?.map(uf)})}),o(Xi,{className:"block sm:hidden",renderFoldableSection:({isUnfolded:e})=>o(Ji,{isUnfolded:e,children:o(na,{className:"flex-wrap",children:m?.map(uf)})}),renderFoldButton:({isUnfolded:e,onToggle:t})=>va({isUnfolded:e,onToggle:t})})]},String(d))},mf=({address:e="",terminalType:t,atmCode:n=""})=>({header:`${hf(t)} №${n}`,body:e.toUpperCase()}),uf=(e,t)=>o(Zi,{...e},String(t)),hf=e=>e?`${e?.charAt(0)?.toUpperCase()}${e?.slice(1)}`:"",pf=[];const gf=async e=>{const t=await Pt(e,{method:"GET"});return Array.isArray(t)?t:pf},ff={terminalTypeAtms:!0,terminalTypeTerm:!1,workAllTime:!1,billAcceptorEnable:!1,locationDisabledPeople:!1,designDisabledPeople:!1},xf={terminalTypeAtms:e=>"банкомат"===e.terminalType?.toLowerCase(),terminalTypeTerm:e=>"терминал"===e.terminalType?.toLowerCase(),workAllTime:e=>"круглосуточно"===e.workTime?.toLowerCase(),billAcceptorEnable:e=>Boolean(e.billAcceptorEnable),locationDisabledPeople:e=>Boolean(e.locationDisabledPeople),designDisabledPeople:e=>Boolean(e.designDisabledPeople)},yf=d((({descriptionData:e,className:t})=>{const n=vp(),i=n?.code??"000",{data:a,isLoad:l}=function(e){const{data:t,error:n}=ci(`/api/v1/atms?regionCode=${e}`,gf);return{data:t||pf,isLoad:!t&&!n}}(i);return o(Ha,{className:t,filterItems:bf,data:a,isLoad:l,initFilterState:ff,renderCard:df,getBalloon:mf,title:`Банкоматы филиала ${n?.name}`,descriptionData:e})})),bf=(e,t)=>{const n=Object.keys(t).filter((e=>t[e])),i=n.filter((e=>e.startsWith("terminalType"))),a=n.filter((e=>!i.includes(e)));return e.filter((e=>{const t=a.every((t=>xf[t](e))),n=!i.length||i.some((t=>xf[t](e)));return t&&n}))},vf=({address:e,workScheduleDescription:t},n)=>t?c("div",{className:"bg-white col-span-12 p-3xl sm:border-yellow sm:border",children:[o("div",{className:"sm:flex sm:justify-between",children:c("div",{children:[o(_e,{size:"text-h4",children:"Удаленное рабочее место"}),e?c("div",{className:"flex pb-xl pt-xs gap-2xs",children:[o(W,{name:"GeolocationIcon",width:"24",height:"24"}),o(_e,{size:"text-l",children:e})]}):null]})}),o("div",{className:"hidden sm:block",children:Nf({workScheduleDescription:t})}),o(Xi,{className:"block sm:hidden",renderFoldableSection:({isUnfolded:e})=>o(Ji,{isUnfolded:e,children:Nf({workScheduleDescription:t})}),renderFoldButton:({isUnfolded:e,onToggle:t})=>va({isUnfolded:e,onToggle:t})})]},String(n)):null,Nf=({workScheduleDescription:e})=>c("div",{children:[c(na,{className:"flex",children:[o(Zi,{label:"Операции для физических лиц",children:o(_e,{children:"Оформление и обслуживание кредитов, счетов, вкладов"})}),o(Zi,{label:"Операции для физических лиц",children:o(_e,{children:"Оформление и обслуживание банковских карт"})}),o(Zi,{label:"Операции для физических лиц",children:o(_e,{children:"Инвестиционное и накопительное страхование"})}),o(Zi,{label:"Операции для физических лиц",children:o(_e,{children:"Безналичные операции в рублях, переводы без открытия счёта"})})]}),o("hr",{className:"text-main-divider pb-xl"}),o(Zi,{label:"Режим работы",className:"max-w-none",children:o(_e,{children:e})})]}),wf=({address:e="",workScheduleDescription:t})=>({header:"Удаленное рабочее место",body:`${e} ${t}`}),Sf={branches:[],remoteWorkplaces:[]};const Cf=async e=>await Pt(e,{method:"GET"})||Sf,kf=d((({className:e})=>{const t=vp(),n=t?.code??"000",{data:i,isLoad:a}=function(e="000"){const{data:t,error:n}=ci(`/api/v1/branchesAndRemoteWorkplaces?regionCode=${encodeURIComponent(e)}`,Cf);return{data:t||Sf,isLoad:!t&&!n}}(n);return o(Ha,{className:e,data:i?.branches,isLoad:a,remoteWorkplaces:i?.remoteWorkplaces,renderCard:Ca,renderRemoteWorkplaceCard:vf,getBalloon:Ia,getBalloonRemoteWorkplaces:wf,title:`Офисы филиала ${t?.name}`})})),If=d((({data:e,className:t,...n})=>{const i=e?.dataType??"offices";return o(g,{version:"transparent",className:u(t),defaultPadding:"p-0",...n,children:"offices"===i?o(kf,{}):o(yf,{descriptionData:e})})})),Tf=d((({className:e,title:t,description:n="Блок в разработке...",...i})=>c(g,{className:u("box-border",e),...i,children:[o(k,{className:"max-w-[600px]",title:t,description:n,headlineVersion:"L",align:"text-left",isEmbedded:!0}),o(f,{})]}))),Bf=d((({className:e,padding:t,slides:n=[],...i})=>o(g,{className:u("overflow-hidden relative",e),padding:t,...i,children:o(Lc,{gap:0,padding:0,children:n.map((e=>e.productBlock)).map(((e,t)=>o("div",{className:"box-border h-full",children:o(Je,{className:"px-5 h-full",headlineVersion:"L",...e,...i})},String(t))))})}))),Pf=d((({address:e,email:t,telephone:n,button:i,className:a="",__html:l,richVersion:r,icon:s,title:d,version:m="primary",...h})=>c(g,{className:u("box-border text-left space-y-s",a),version:m,...h,children:[c("div",{className:"w-full flex justify-between flex-row-reverse",children:[Le(s)?o("div",{className:"w-10 h-7 sm:w-24 sm:h-16",children:o(ne,{image:s})}):null,d?o(w,{headingType:"h3",as:"h3",title:d}):null]}),c("div",{className:"w-full space-y-m",children:[l?Rf({__html:l,richVersion:r}):null,Df({label:"Адрес",data:e,iconName:"GeolocationIcon"}),Df({label:"Телефон(факс)",data:n,iconName:"PhoneIcon"}),Df({label:"E-mail",data:t,iconName:"MailIcon",dataColor:"text-primary-main"}),i?.text?je([i]):null]})]}))),Rf=e=>o("div",{className:"border-b border-main-divider pb-lg",children:o(De,{...e,itemSize:"list-s"})}),Df=({label:e,data:t,iconName:n,dataColor:i=""})=>t?c("div",{className:"flex gap-s",children:[o(W,{iconVersion:"black",name:n,width:"24",height:"24"}),c("div",{className:"flex flex-col gap-2xs",children:[o(_e,{size:"text-m",font:"font-light",color:"text-secondary-text",children:e}),o(_e,{size:"text-xl",color:i,children:t})]})]}):null,Mf=d((e=>{const{__html:t,richVersion:n="",...i}=e;return o(g,{defaultPadding:"p-0",...i,children:o(De,{__html:t,richVersion:n})})})),_f=d((({name:e,text:t,value:n,checked:i,onChange:a,className:l})=>o("div",{className:l,children:c("label",{className:"font-sans flex gap-s items-center relative cursor-pointer",children:[o("input",{className:u(dn.split(" ").filter((e=>"rounded"!==e)),bi,"flex justify-center items-center after:block after:w-2.5 after:h-2.5 after:rounded-full rounded-full","checked:border-2 checked:!border-primary-main focus:checked:border-primary-main checked:after:bg-primary-main"),type:"radio",value:n,name:e,checked:i,onChange:e=>a?.(e.target.value),role:"radio"}),t?o(_e,{color:"text-primary-text",children:t}):null]})}))),Af=d((({className:e=""})=>{const[t,n]=i("option2"),a=l((e=>n(e)),[]);return c("div",{className:u("order-4",e),role:"radiogroup",children:[o(_f,{className:"mb-xs",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===t,onChange:a}),o(_f,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===t,onChange:a})]})})),Ef=d((({data:e,fieldLabel:t,fieldValue:n,selected:i,placeholder:a="",setSelected:l,label:r})=>{const s=e.filter(Boolean).map((e=>({key:e?.[n||t],text:e?.[t]}))),c=s.find((e=>e.key===i));return o(Tn,{options:s,label:r,placeholder:a||i,onChange:e=>l(e.key),value:c})})),zf=d((({regions:e=[],selectedRegion:t,onSelectedRegion:n,branches:i=[],selectedBranch:a,onSelectedBranch:l})=>c("div",{className:"flex flex-col @xl:flex-row gap-m order-1",children:[o("div",{className:"flex-1 min-w-0",children:o(Ef,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:n,label:"Регион"})}),o("div",{className:"flex-1 min-w-0",children:o(Ef,{data:i,fieldValue:"branchCode",fieldLabel:"address",selected:a,setSelected:l,label:"Отделение",placeholder:"Выберите отделение"})})]}))),Ff=["От 1 дня","До 365 дней"],Of=d((({days:e,setDays:t})=>c("div",{className:"order-1",children:[o(_e,{size:"text-m",font:"font-light",children:"Срок аренды"}),o(rl,{min:1,max:365,value:e,items:Ff,onChange:t})]}))),Vf=d((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:n,safeBoxCases:i=[],selectedBoxSize:a,onSelectedBoxSize:l})=>c("div",{className:"flex flex-col @xl:flex-row gap-m order-1",children:[o("div",{className:"flex-1 min-w-0",children:o(Ef,{data:e,fieldLabel:"volume",selected:t,setSelected:n,label:"Размер",placeholder:"Выберите размер"})}),o("div",{className:"flex-1 min-w-0",children:o(Ef,{data:i,fieldLabel:"safeBoxCasesSize",selected:a,setSelected:l,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),Lf=d((({regions:e,selectedRegion:t,branches:n,selectedBranch:i,days:a,selectedCaseVolume:l,selectedBoxSize:r,safeBoxCases:s,caseVolumes:d,onChange:m,onClick:u})=>c("div",{className:"contents @xl:block flex-1 space-y-xl",children:[o(zf,{regions:e,selectedRegion:t,onSelectedRegion:e=>m({selectedRegion:e}),branches:n,selectedBranch:i,onSelectedBranch:jf(m)}),o(Of,{days:a,setDays:e=>m({days:e})}),o(Vf,{caseVolumes:d,selectedCaseVolume:l,onSelectedCaseVolume:qf(m),safeBoxCases:s,selectedBoxSize:r,onSelectedBoxSize:e=>m({selectedBoxSize:e})}),o("div",{className:"order-4",children:o(_e,{size:"text-l",font:"font-light",color:"text-secondary-text",children:"Тип договора"})}),c("div",{className:"contents @md:flex justify-between items-center gap-m",children:[o(Af,{}),o(ve,{text:"Офисы на карте",version:"primary",onClick:u,className:"order-6"})]})]}))),jf=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},qf=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},$f=d((({days:e,tariffs:t=[]})=>{const n=Wf(e,t),i="На рисунке изображена пачка листов\nформата А4";return c("div",{className:"contents @xl:flex flex-col justify-between gap-xl order-2",children:[c("div",{className:"flex flex-col @xl:flex-row gap-x-6xl gap-y-2xl order-5 @xl:order-none py-2xl @xl:py-0 border-t border-main-divider @xl:border-none",children:[Uf("Аренда за",e),Uf("Цена",n+" ₽")]}),o("div",{className:"@xl:hidden order-3 mb-xs",children:o(S,{size:"text-s",font:"font-light",color:"text-secondary-text",children:i})}),c("div",{className:"flex flex-col items-center gap-s order-3 @xl:order-none mb-xl @xl:mb-0 bg-primary-main py-s @xl:p-3xl text-center",children:[o(ne,{image:{icon:"PackA4Icon"},className:"@xl:h-60"}),o("div",{className:"hidden @xl:inline opacity-80 whitespace-pre-line",children:o(S,{size:"text-s",font:"font-light",color:"text-white",children:i})})]})]})})),Uf=(e,t)=>c("div",{className:"flex justify-between items-center gap-y-xs @xl:flex-col @xl:items-start",children:[o(_e,{size:"text-l",font:"font-light",color:"text-secondary-text",children:e}),o("span",{className:"text-l @xl:text-h3 text-primary-text",children:t})]}),Wf=(e,t)=>{const n=Hf(e);return e*(t?.find((e=>e.tariffType===String(n)))?.tariffValue||0)},Hf=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},Yf=(e,t)=>e.find((e=>e.branchCode===t)),Kf=d((e=>{const{regions:t,data:n,branches:i,onChange:l,onClick:r}=e;a((()=>{l({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[n.selectedRegion,l]);const s=Yf(i,n.selectedBranch),d=Gf(s?.safeBoxCaseVolumes),m=Xf(s?.safeBoxCaseVolumes,n.selectedCaseVolume)?.safeBoxCases,u=Jf(m,n.selectedBoxSize);return c("div",{className:"flex flex-col @4xl:flex-row gap-4xl align-top",children:[o(Lf,{...n,regions:t,onClick:r,branches:i,caseVolumes:d,safeBoxCases:m,onChange:l}),o($f,{days:n.days,tariffs:u})]})})),Gf=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],Xf=(e,t)=>e?.find((e=>e.volume===t)),Jf=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs,Zf=[];const Qf=async e=>await Pt(e,{method:"GET"})||Zf,ex=d((({title:e,footnote:t,className:n="",...a})=>{const[r,s]=i(!1),d=l((()=>s((e=>!e))),[]),[m,u]=i({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26}),h=Ts(),p=tx(m.selectedRegion,h),f=function(e){const{data:t}=ci(e?`/api/v1/safeboxes?regionCode=${e}`:null,Qf);return t||Zf}(p),x=l((e=>u((t=>({...t,...e})))),[u]),y=(b=Yf(f,m.selectedBranch)||f,Array.isArray(b)?b.map((e=>({coords:[Number(e.gpsLatitude),Number(e.gpsLongitude)].filter(Boolean),content:void 0}))).filter((e=>e.coords&&2===e.coords.length)):b?.gpsLatitude&&b?.gpsLongitude?[{coords:[b.gpsLatitude,b.gpsLongitude]}]:[]);var b;return c(g,{className:n,defaultPadding:"",...a,children:[c("div",{className:"p-4xl space-y-xl",children:[e?o(w,{title:e,headingType:"h3",as:"h2",className:"text-primary-text mb-s text-center"}):null,o(Kf,{regions:h,branches:f,data:{...m,selectedRegion:p},onClick:d,onChange:x}),t?o(S,{size:"text-s",font:"font-light",children:t}):null]}),y.length&&r?o(qi,{points:y,className:"h-[640px]"}):null]})})),tx=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e,nx={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"},ix=(e,t,n)=>(i,a)=>{const{button:l}=i;return o("div",{className:"contents",children:c("div",{className:"flex items-center relative flex-row",children:[o("div",{className:"overflow-hidden flex flex-shrink-0 items-center",children:ax(e,n)(i,a)}),c("div",{className:u("flex flex-col justify-center h-fit w-full",{"min-h-6xl":e}),children:[lx(i),l?.text?o(ve,{className:"box-border py-s w-full max-w-60 mt-lg",version:t,...l,children:l?.text}):null]})]})},String(a))},ax=(e,t)=>(n,i)=>{const a="secondary"===t?"white":"color",l=Boolean(n?.icon?.src),r=rx(e,l),s=l?"transparent"===t:t;return o(g,{className:u("z-10 mr-s flex justify-center content-center rounded-md",r),defaultPadding:"",version:s,children:o("div",{className:"flex max-w-full max-h-full items-center justify-center",children:sx({step:n,iconVersion:a,i:i,stepVersion:t})})})},lx=e=>c("div",{children:[e?.label?o(S,{size:"text-l",align:"text-left",children:e.label}):null,e?.description?o("div",{className:u("text-s font-light text-left",nx.description),children:e.description}):null,o(De,{__html:e.__html})]}),rx=(e,t)=>e&&t?"h-14 w-14":"h-11 w-11",sx=({step:e,iconVersion:t,i:n,stepVersion:i})=>{return Le(e?.icon)?o(ne,{image:{...e.icon,iconVersion:e.icon?.iconVersion||t},imageClassName:"max-w-full max-h-full",width:"24",height:"24"}):o("span",{className:u("text-h4","transparent"===i?nx.iconText:(a=i,"secondary"===a?"group-data-primary:text-white":"text-secondary-text")),children:n+1});var a},ox=d((({className:e="",title:t,description:n,steps:i=[],buttons:a,stepVersion:l="gray",version:r="primary",...s})=>{const d=i.length>3;return c(g,{className:u("box-border flex flex-col gap-xl",e),defaultPadding:"p-6xl",version:r,...s,children:[o(k,{title:t,description:n,headlineVersion:"M",isEmbedded:!0,align:"text-left"}),i?.length?o("div",{className:"flex flex-col gap-6xl justify-between box-border",children:i.map(ix(d,r,l))}):null,je(a,{isVertical:!0})]})})),cx=d((({isActive:e,item:t,onClick:n})=>c("div",{className:u(e?"text-primary-main":"text-primary-text","w-10 m-4 flex justify-center items-center flex-col text-xs cursor-pointer"),title:t?.title||"",onClick:n,children:[o(W,{className:"w-6 h-6",name:t?.icon?.icon,iconVersion:e?"color":"black"}),t?.title||""]}))),dx=d((({className:e,head:t,children:n,onClose:i,onClick:a})=>{const{close:r}=ue(),s=l((()=>{r(),i&&i()}),[i]);return c("div",{onClick:a,className:u("relative min-h-full bg-white p-0 rounded-xl top-32",e),role:"dialog",children:[c("div",{className:"sticky py-xl top-0 rounded-xl bg-white z-10",children:[o(er,{className:"absolute top-1.5 right-0",onClose:s}),o("div",{className:"container",children:t})]}),o("div",{className:"container pb-6xl",children:n})]})})),mx=({menuRef:e,dialogRef:t,closeDialog:n,openDialog:i,leftItems:a,rightItems:l})=>[{openBottomMenuItemDialog:(r,s)=>{const c="left"===s?a:l,d=e?.current?.getBoundingClientRect();i(o(dx,{onClick:e=>e.stopPropagation(),onClose:n,className:"mt-[20%] border-t border-current",head:o("div",{className:"flex items-center justify-center px-xl",children:o(w,{as:"h4",title:c[r].description||c[r].title})}),children:o("div",{className:"bg-white pb-20 pt-1 text-l",ref:t,children:o("iframe",{id:"iframe-dialog",onLoad:()=>(()=>{const e=document.getElementsByTagName("iframe")["iframe-dialog"];e.style.height=String(e?.contentWindow?.document.body.offsetHeight)+"px"})(),src:c[r]?.src,width:d?.width||0})})}),{id:"left"===s?a[r].title:l[r].title})}}];function ux(e){throw new Error(e)}const hx=({onCloseAll:e,onClose:t}={})=>{const[n,{push:r,pop:s,clear:o}]=function(e=[]){const[t,n]=i(e),a=l((e=>n((t=>[...t,e]))),[]),r=l((()=>n((e=>e.slice(0,-1)))),[]),s=l((e=>n((t=>t.filter((t=>t!==e))))),[]),o=l((()=>n([])),[]);return[t,{setList:n,push:a,pop:r,remove:s,clear:o}]}(),c=l((()=>{e&&e(n),o()}),[n,e]),d=l((()=>{t&&t(n[n.length-1]),s()}),[n,t]);return a((()=>me.subscribe("dialog",(e=>{if(e)switch(e.type){case"open":r(e);break;case"close":e.all?c():d();break;default:ux(e)}}))),[c,d]),n},px=e=>t=>{if(e===t)return 1;if(!e||!t)return 0;const{m:n,s1Matches:i,s2Matches:a}=function(e,t){const n=Math.max(0,Math.floor(Math.max(e.length,t.length)/2)-1),i=Array.from({length:e.length}),a=Array.from({length:t.length});let l=0;for(let r=0;r<e.length;r++){const s=Math.max(0,r-n),o=Math.min(r+n,t.length-1);for(let n=s;n<=o;n++)i[r]||a[n]||e[r]!==t[n]||(l++,i[r]=!0,a[n]=!0)}return{m:l,s1Matches:i,s2Matches:a}}(e,t);if(0===n)return 0;const l=function(e,t,{s1Matches:n,s2Matches:i}){let a=0;for(let l=0,r=0;l<e.length;l++){if(!n[l])continue;let s=r;for(;s<t.length;s++)if(i[s]){r=s+1;break}e[l]!==t[s]&&a++}return a}(e,t,{s1Matches:i,s2Matches:a}),r=(n/e.length+n/t.length+(n-l/2)/n)/3,s=r>.7?.1*function(e,t){let n=0;for(;e[n]===t[n]&&n<4;)n++;return n}(e,t):0;return r+s*(1-r)};const gx=e=>e?.length?c("div",{className:"sm:border-t sm:border-main-divider mt-2xs pt-2xs",children:[o("div",{className:"mb-m",children:o(_e,{size:"text-m",font:"font-light",color:"text-secondary-text",children:"Представительства за рубежом:"})}),o("div",{className:"flex flex-col sm:flex-row gap-5xl",children:e.map(((e,t)=>o(fx,{...e},String(t))))})]}):null,fx=d((({icon:e,...t})=>{const n=he(),{text:i,target:a,href:l,onClick:r}=n(t);return c("div",{className:"flex gap-s items-center",children:[e?o(ne,{image:e}):null,i?o("a",{className:"hover:text-primary-hover",href:l,target:a,onClick:r,children:o(_e,{size:"text-l",font:"font-light",color:"text-primary-text",children:i})}):null]})})),xx=(e,t)=>n=>n.name?o(mu,{href:`/branches/${n.slug}`,className:"mb-xs sm:mb-2xs hover:text-primary-hover",onClick:()=>t?.(n),data:du(e,n.name),children:o(_e,{size:"text-l",font:"font-light",children:n.name})},String(n.id)):null,yx=d((({className:e,searchTerm:t,onSearch:n})=>c("form",{className:`font-sans relative ${e}`,children:[o("div",{className:"absolute rounded h-full flex items-center justify-center pl-m max-w-44 gap-s pointer-events-none",children:t?null:o("label",{htmlFor:"search-bar-input",className:"text-secondary-text ",children:"Поиск по филиалам"})}),o("input",{id:"search-bar-input",className:u(dn,"h-12 pl-m w-full peer text-l text-black rounded-md box-border"),value:t,onChange:e=>n(e.target.value.toLowerCase()),type:"text",name:"location-search-bar-input"})]}))),bx=d((({defaultLocation:e})=>{const t=vp(e),n=he(),{href:i}=n({href:`/branches/${t.slug}`});return t?o("div",{className:"mb-s",children:c(S,{size:"text-l",color:"text-primary-text",children:["Сейчас выбран:",o(mu,{href:i,className:"inline mx-2xs text-primary-main",children:t.name})]})}):null})),vx=d((({foreignOffices:e,branches:t})=>{const n=Np(t?.default),[a,s]=i(""),d=Ts(),m=r((()=>wx(d).sort(((e,t)=>e.name.localeCompare(t.name)))),[d]),u=r((()=>((e,t)=>{const n=new Map;for(const i of e){const e=t(i),a=n.get(e)||[];n.set(e,[...a,i])}return n})(m,Nx)),[m]),{close:h}=ue(),p=l((e=>{n.location=e,h()}),[n]);return c(tr,{className:"pb-20",head:c("div",{children:[o(_e,{size:"text-h4",color:"text-primary-text",children:"Выберите филиал"}),o(bx,{defaultLocation:t?.default}),o(yx,{onSearch:s,searchTerm:a})]}),children:[a&&a.length>=3?o("div",{children:m.filter((({name:e})=>e&&px(e.toLowerCase())(a.toLowerCase())>=.8)).map(xx(t?.dataSelect,p))}):o("div",{className:"columns-1 sm:columns-3 md:columns-4 lg:columns-5",children:Array.from(u.entries()).map((g=p,f=t?.dataSelect,([e,t])=>c("div",{className:"break-inside-avoid mb-2xl w-56",children:[o("div",{className:"mb-s",children:o(_e,{size:"text-h6",children:e})}),t.map(xx(f,g))]},e)))}),gx(e)]});var g,f})),Nx=e=>e.name?.charAt(0)??"",wx=e=>e.map((e=>({...e,name:e.name?.replace(/республика|область|край'/gi,"").trim()??""}))),Sx=d((({menuRef:e,menuItem:t,locationDialogProps:n,closeAll:i})=>{const l=(e=>{const{open:t,close:n}=ue();return{open:(n={})=>t(o(vx,{...e}),n),close:n}})(n||{}),{name:r}=vp(),s=e?.current?.getBoundingClientRect(),c=X(G.SITE_URL);return a((()=>{globalThis.frames["burger-menu-iframe"].postMessage({type:"currentLocation",data:r},"*")}),[r]),a((()=>{const e=e=>{if("location"===e.data.type&&l.open(),"reload"===e.data.type&&i(),"resize"===e.data.type){const t=document.getElementsByTagName("iframe")["iframe-dialog"];t&&t.style&&(t.style.height=String(e.data.data)+"px")}};return globalThis.addEventListener("message",e),()=>{globalThis.removeEventListener("message",e)}}),[]),o(dx,{onClick:e=>e.stopPropagation(),head:o("div",{className:"flex items-center justify-center px-xl",children:o(w,{as:"h4",title:t?.title,className:"font-medium"})}),children:o("div",{className:"bg-white pb-20 pt-1 text-l",children:o("iframe",{id:"iframe-dialog",name:"burger-menu-iframe",onLoad:()=>(()=>{const e=globalThis.frames["burger-menu-iframe"],t=document.getElementsByTagName("iframe")["iframe-dialog"];t.style.height=String(t?.contentWindow?.document.body.offsetHeight)+"px",e.postMessage({type:"currentTab",data:c?.slice(1)},"*"),e.postMessage({type:"currentLocation",data:r},"*")})(),src:t?.src,width:s?.width||0})})})})),Cx="burgerMenuDialog",kx=({menuRef:e,centralMenuItem:t,closeAll:n,openDialog:i,locationDialogProps:a})=>{const l=hx(),r=((e,t)=>Boolean(t.find((t=>t.id===e),e)))(Cx,l);return[r,{toggle:()=>{r?n():i(o(Sx,{locationDialogProps:a,menuRef:e,menuItem:t,closeAll:n}),{id:Cx})}}]},Ix=[],Tx=zt((({sticky:e,...t})=>{const{menuItems:n=Ix}=e??{},a=n.find((e=>"Меню"===e.title)),r=n.filter((e=>"Меню"!==e.title)),d=Math.floor(r.length/2),m=r.slice(0,d),u=r.slice(d),[h,p]=i(-1),[f,x]=i(""),{open:y,closeAll:b}=ue(),v=l((()=>{p(-1),x(""),b()}),[b]),N=sn(v),w=s(null),[S,{toggle:C}]=kx({menuRef:w,centralMenuItem:a,closeAll:b,openDialog:y,locationDialogProps:t.header}),[{openBottomMenuItemDialog:k}]=mx({menuRef:w,dialogRef:N,closeDialog:v,openDialog:y,leftItems:m,rightItems:u}),I=l((e=>{v(),e.stopPropagation(),C()}),[v,C]),T=l(((e,t)=>{x(t),p(e),b(),k(e,t)}),[b,k]);return o(g,{className:"h-[74px] z-[100] relative",defaultPadding:"p-0",...t,children:c("div",{ref:w,className:"ml-auto container bg-white flex justify-center shadow-blue-gray",children:[m.map(Bx(T,"left",{activeIndex:h,currentItemPosition:f})),o(cx,{item:a,isActive:S,onClick:e=>I(e)}),u.map(Bx(T,"right",{activeIndex:h,currentItemPosition:f}))]})})})),Bx=(e,t,n)=>(i,a,l)=>o(cx,{item:i,isActive:l[n.activeIndex]?.title===i?.title&&n.currentItemPosition===t,onClick:r=>{l[n.activeIndex]?.title===i?.title&&n.currentItemPosition===t||r.stopPropagation(),e(a,t)}},i.title||String(a)),Px="hidden sm:flex absolute z-40",Rx={default:{item:"flex-1",gap:0,buttonTop:"top-0"},animated:{item:"flex",gap:8,buttonTop:"top-5"},underlined:{item:"",gap:0,buttonTop:"top-0"}},Dx=d((({className:e,items:t=[],activeItem:n,onChange:i,tabsType:l="default"})=>{const[r,s]=Pc({itemCount:t?.length||0});return a((()=>Mx(r.current,t,n)),[]),c("div",{className:u("relative overflow-x-auto no-scrollbar",e),children:[o(fc,{containerRef:r,snapAlign:"snap-start",onVisibleIndicesChange:s.handleVisibleIndicesChange,itemClassName:Rx[l].item,gap:Rx[l].gap,children:t.map(rf(n,i,l))}),s.canScrollLeft?o(Ac,{className:u("left-6",Px,Rx[l].buttonTop),onClick:s.scrollLeft}):null,s.canScrollRight?o(Ec,{className:u("right-6",Px,Rx[l].buttonTop),onClick:s.scrollRight}):null]})})),Mx=(e,t,n)=>{const i=t.findIndex((e=>e===n));e&&i>0&&e.scrollTo({left:e?.children[i]?.offsetLeft,behavior:"smooth"})},_x={default:{wrapper:"",component:""},animated:{wrapper:"border-b-8 border-primary-main bg-white",component:"m-auto"},underlined:{wrapper:"flex",component:"m-auto"}},Ax=({className:e="",tabsType:t="animated",...n})=>t?o("div",{className:u(_x[t].wrapper,e),children:o(Dx,{className:_x[t].component,tabsType:t,...n})}):null,Ex=zt((({className:e="",tabs:t=[],block:n,tabsType:r,showCounter:s=!1,isSticky:d=!1,...m})=>{const h=zx(n??{}),p=M(),f=t.every((e=>"link"===e?.type)),x=s?t.map((e=>({...e,count:"group"===e?.type?n?.slots?.[e?.tabName??""]?.length??0:0}))):t,{isReady:y}=p,[b,v]=i(Vx(x,((e="")=>{const t=globalThis?.location?.href;return t?new URL(t).searchParams.get(e):null})(h))),N=x[b],w=x.findIndex((e=>Boolean(e.selected)));a((()=>{const e=p.query[h]?x.findIndex(((e,t)=>"group"===e.type&&(e?.tabName??String(t))===p.query[h])):w;v(-1===e?0:e)}),[y,w,h]);const S=Ox(x[b],b),C=l((e=>{const t=x.indexOf(e),n=x[t];v(t),"group"===n.type&&((e,t)=>{const n=new URLSearchParams(p.query);e.text?n.set(h,e?.tabName??String(t)):n.delete(h),p.replace(`${p.pathname}?${n}`,"",{scroll:!1})})(e,t)}),[x]);return c(g,{className:u({"sticky top-1 z-20":d&&f},e),defaultPadding:"p-0",block:n,...m,children:[Ax({className:u({"pb-1":n?.slots&&"default"===r,"sticky top-1 z-20":d&&!f}),items:Fx(t,x),activeItem:N,tabsType:r,onChange:C}),o("div",{className:"space-y-px @5xl:space-y-0 @5xl:grid @5xl:grid-cols-12 @5xl:gap-2xs",children:Object.entries(n?.slots??{}).map((([e,t])=>R(t,{...m?.options,slotName:S,parent:n,extraProps:{className:e===S?"":"hidden"}})))})]})}),{slots:({tabs:e})=>e?.map(Ox)?.filter(Boolean)||[]}),zx=({__id:e,anchor:t})=>t??e??"tabs",Fx=(e,t)=>t?.length?t:e,Ox=(e,t)=>"group"===e?.type?e?.tabName||`Слот №${t+1}`:"",Vx=(e,t)=>t?Number(t):e.reduce(((e,t,n)=>t.selected?n:e),0),Lx={comparison:"flex gap-m duration-1000",tariff:"flex gap-5xl flex-grow duration-1000"},jx=d((({children:e,activeIndex:t,columnWidth:n,version:i="comparison"})=>o("div",{className:"flex flex-1 overflow-hidden",children:o("div",{className:Lx[i],style:{transform:`translateX(-${t*n}px)`},children:e})}))),qx=d((({className:e="",isOpen:t,onClick:n})=>o(ve,{className:e,appendRight:o(ne,{image:{icon:t?"ArrowUpIcon":"ArrowDownIcon"},width:"24",height:"24"}),text:t?"Скрыть":"Показать",version:"gray",onClick:n}))),$x={Buttons:({buttons:e})=>je(e,{buttonClassName:"basis-0"}),Img:({image:e})=>e?.src?o(ne,{image:e}):null,RichText:({__html:e,isDotted:t=!0})=>o("div",{className:"flex flex-col justify-between items-start text-h6",children:o(De,{__html:e,isDotted:t,itemSize:"list-m"})}),LabelDescription:({label:e,description:t})=>c("div",{className:"space-y-2xs",children:[e?o("div",{children:o(_e,{size:"text-h6",children:e})}):null,t?o("div",{className:"lg:text-l font-light text-xs",children:o(_e,{color:"text-secondary-text",children:t})}):null]}),Table:({isVisible:e,displayTable:t,tableSource:n,pdfUrl:i,isOpen:a})=>e?o(qx,{className:"w-fit",isOpen:a,onClick:()=>{t({tableSource:n,pdfUrl:i})}}):null},Ux=d((({cell:e,fieldIdx:t,rowIdx:n,cellIdx:l,setTableInner:r,tableInner:s,openTableInnerIdx:o,setOpenTableInnerIdx:c})=>{const[d,m]=i(!0);a((()=>{l===o&&s||m(!0)}),[s,o]);return Wx({cell:e,cellProps:{rowIdx:n,cellIdx:l,fieldIdx:t,displayTable:e=>{m(!1),c(l),r(e)},isVisible:d}})})),Wx=({cell:e,cellProps:t})=>{if(!e)return null;const{tableCellType:n,...i}=e;if(!n||!(n in $x))return null;return o($x[n],{...t,...i})},Hx=d((({cells:e,rowIdx:t,cellIdx:n,setTableInner:i,tableInner:a,openTableInnerIdx:l,setOpenTableInnerIdx:r})=>o("div",{className:"w-80 flex-grow flex flex-col gap-m @4xl:gap-lg",role:"cell",children:e?.length?e.map(((e,s)=>o(Ux,{cell:e,fieldIdx:s,rowIdx:t,cellIdx:n,setTableInner:i,tableInner:a,openTableInnerIdx:l,setOpenTableInnerIdx:r},String(s)))):null}))),Yx=(e,t)=>140*((e=[])=>e.reduce(((e,t)=>e+t),0))(e.slice(0,t).map((e=>e?.cols?.length??1))),Kx=(e,t)=>e?.length>0?o("div",{className:u("flex",{"text-secondary-text":0===t}),children:e.map(((e,t)=>o("div",{className:"w-20 mx-lg",children:o(_e,{size:"text-h6",font:"font-light",children:e})},String(t))))}):null,Gx=d((({rows:e})=>{return o(fc,{visibleItemCount:0,snapAlign:"snap-start",children:o("div",{children:e?.map((t=0,(e,n)=>{if(!e?.length)return null;const[i,...a]=e,l=u("flex duration-1000 text-center",0!==n?"font-normal":"font-light");return c("div",{className:"flex border-main-divider border-b border-solid h-full",children:[i?.data?o("div",{className:"whitespace-pre-wrap sm:whitespace-normal w-48 sm:w-56 sm:min-w-56 py-lg pr-lg sm:pr-0",children:o(_e,{size:"text-xl",font:"font-light",children:i.data})}):null,o("div",{className:"flex flex-grow overflow-hidden",children:o("div",{className:l,style:{transform:`translateX(-${Yx(a,t)}px)`},children:a?.map(((e,n)=>c("div",{className:"flex flex-col flex-grow gap-s justify-center py-xl odd:bg-main-divider",children:[e?.data?o(_e,{size:"text-xl",children:e.data}):null,e?.cols?Kx(e.cols,t):null]},`row${n}`)))})})]},String(n))}))})});var t})),Xx=d((({activeTabIndex:e,items:t})=>o("div",{children:t.map(((t,n)=>{const i=`activeTabIdx:${e}-tableIdx:${n}`;return c("div",{className:"w-full @container",children:[o("div",{className:"flex py-m sm:px-m bg-white @4xl:bg-gray relative",children:o(_e,{size:"text-xl",align:"text-left",children:t.title})}),o("div",{className:"w-full sm:pl-xs overflow-hidden transition-height duration-500 ease-in-out",children:o("div",{className:"relative",children:o(Gx,{rows:t.rowsData})})})]},i)}))}))),Jx=(e=!1)=>""+(e?"text-white":"text-secondary-text"),Zx=d((({currencies:e,linkToPDF:t,activeTabIndex:n,setActiveTabIndex:i})=>c("div",{className:"flex justify-between items-center w-full py-lg",children:[e&&e.length>1?o("div",{className:"flex bg-secondary-light p-2xs rounded-md",children:e.map(((e,t)=>o("div",{className:u("rounded-md px-4 py-3 cursor-pointer",{"bg-primary-main":t===n}),onClick:()=>i(t),children:o(_e,{size:"text-xl",font:"font-light",color:Jx(t===n),children:e||t+1})},e)))}):null,t?o(ve,{className:"text-primary-main",href:t,version:"link",target:"_blank",appendLeft:o(W,{name:"DocDownloadIcon",iconVersion:"color",className:"mr-3xs",width:"20",height:"20"}),text:"Скачать в PDF"}):null]}))),Qx=zt((({tableSource:e,pdfUrl:t,onClick:n})=>{const a=e?.tableData,[r,s]=i(0),d=l((e=>s(e)),[]),m=a?.[r]?.items??[],u=a?.map((e=>e.currency??""));return c("div",a?{className:"bg-white z-10",children:[o(Zx,{currencies:u,activeTabIndex:r,setActiveTabIndex:d,linkToPDF:t}),o(Xx,{activeTabIndex:r,items:m}),o(qx,{className:"mt-xl",onClick:n,isOpen:!0})]}:{className:"my-lg space-y-m text-center",children:[o(_e,{size:"text-h6",children:"Данных нет"}),o(qx,{onClick:n,isOpen:!0})]})})),ey=d((({children:e,tableInner:t,onHideContentClick:n})=>c("div",{className:"self-start flex flex-col",role:"row",children:[o("div",{className:u("@4xl:border-main-divider @4xl:border-b","flex flex-col @4xl:flex-row gap-y-xs gap-x-5xl pb-lg @4xl:pt-lg"),children:e}),t?o("div",{className:"origin-top animate-expansion",children:o(Qx,{...t,onClick:n})}):null]}))),ty=d((({row:{header:e,data:t},activeIndex:n,rowIdx:a,...r})=>{const[s,d]=i(void 0),m=l((e=>d(e)),[]),[h,p]=i(void 0),g=l((e=>p(e)),[]);return c(ey,{onHideContentClick:()=>d(void 0),tableInner:s,...r,children:[o("div",{className:u("text-s","w-80 flex-shrink-0"),children:c("div",{className:"flex gap-m items-center",role:"cell",children:[e?.icon?o(ne,{className:"hidden @4xl:block max-w-6 shrink-0",image:e.icon,width:"24",height:"24"}):null,e?.title?o(_e,{size:"text-m",font:"font-light",color:"text-primary-text",children:e?.title}):null]})}),t?.length?o(jx,{activeIndex:n,columnWidth:360,version:"tariff",children:t.map(((e,t)=>o(Hx,{cells:e,rowIdx:a,cellIdx:t,setTableInner:m,tableInner:s,openTableInnerIdx:h,setOpenTableInnerIdx:g,...r},String(t))))}):null]})}));function ny({dec:e,inc:t,canDec:n,canInc:i,btnClass:a,className:l=""}){return n||i?c("div",{children:[n?o(_c,{className:u("absolute z-40",a[0],l),onClick:e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left",disabled:!n}):null,i?o(_c,{className:u("absolute z-40 rotate-180",a[1],l),onClick:t,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right",disabled:!i}):null]}):null}const iy=d((({children:e,controls:t})=>{const{isScrollAvailable:n}=t;return c("div",{role:"table",className:"overflow-x-auto w-auto grid md:block",children:[c("div",{className:"relative space-y-xs",children:[e,ny({...t,btnClass:["top-28","top-11"],className:"right-7"})]}),n?o("div",{className:"absolute top-0 right-0 bottom-0 w-20 bg-opacity-to-white"}):null]})})),ay=d((({className:e="",title:t,description:n,rowHeaders:a,tariffsColumns:r,hiddenRowsNum:s=0,...d})=>{const m=r?.map((({data:e})=>e))||[],h=a?.map(((e,t)=>({header:e,data:m.map((e=>e?.[t]||[]))}))),p=m.length,[f,x]=((e,t=0)=>{const{itemCount:n,visibleItemCount:a}=e,[r,s]=i(t),o=l((()=>s((e=>Math.min(e+1,n-1)))),[n]),c=l((()=>s((e=>Math.max(e-1,0)))),[n]),d=a?n>a&&r<n-a:r<n-1,m=r>0;return[r,{inc:o,dec:c,canInc:d,canDec:m,isScrollAvailable:m||d}]})({itemCount:p,visibleItemCount:2}),y=(h||[]).map(((e,t)=>o(ty,{row:e,activeIndex:f,rowIdx:t,...d},String(t)))),[b,v]=s>0?[y.slice(0,-s),y.slice(-s)]:[y,[]];return c(g,{className:u("relative space-y-6xl @4xl:space-y-xl",e),defaultPadding:"p-6xl",...d,children:[o(k,{title:t,description:n,headlineVersion:"M",isEmbedded:!0,align:"text-center"}),o("div",{className:"space-y-m overflow-hidden",children:s>0?o(Xi,{renderFoldableSection:({isUnfolded:e})=>c(iy,{controls:x,children:[b,o(Ji,{isUnfolded:e,children:v})]}),renderFoldButton:Wc}):o(iy,{controls:x,children:y})})]})})),ly=d((({className:e="",title:t,description:n,iconVersion:i,__html:a,richVersion:l,...r})=>c(g,{className:u("flex gap-s sm:gap-m bg-white group-data-secondary:bg-primary-main/10",e),...r,children:["small"===i?ry():null,c("div",{className:"flex flex-col w-fit gap-2xs sm:gap-xs",children:[t?o(_e,{size:"text-l",font:"font-normal",color:"text-primary-text group-data-secondary:text-white",children:t}):null,n?sy(n):null,a?o(De,{richVersion:l,__html:a}):null]})]}))),ry=()=>o("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"}),sy=e=>o(S,{size:"text-s",font:"font-light",color:"text-secondary-text group-data-secondary:text-white",children:e}),oy=d((({prefix:e,unit:t,suffix:n})=>c("div",{className:"w-full flex items-end",children:[e?o("div",{className:"gradient-color-text",children:o(_e,{size:"text-h2",children:e})}):null,t?o("div",{className:"-mb-6 @xl:-mb-4",children:o("span",{className:"font-mohave text-title-large sm:text-title-extra gradient-color-text",children:t})}):null,n?o("div",{className:"gradient-color-text",children:o(_e,{size:"text-h2",children:n})}):null]}))),cy=d((e=>{const{prefix:t,unit:n,suffix:i,...a}=e;return o(g,{defaultPadding:"p-0",...a,children:o(oy,{prefix:t,unit:n,suffix:i})})})),dy={AdTile:Ot,ApplicationForm:co,ApplicationLeadForm:cc,BankAccountFiltration:cd,BenefitsBlock:pd,BonusBenefitsBlock:xd,ButtonsBlock:bd,CalculatorBonus:Ad,CalculatorBusinessDeposit:Jd,CalculatorCredit:um,CalculatorDeposit:Rm,CalculatorRefinancing:Om,CardTransfer:Wm,Carousel:Qm,CarouselCard:iu,CarouselCatalogCard:lu,CarouselLinks:ou,CarouselRecommendationCard:fu,CarouselTariffsCard:bu,CreditCardForm:rh,CreditForm:jh,DepositFiltration:Hh,Depository:cp,ErrorBlock:mp,ExchangeRateTile:Kp,Footer:gg,GrantSupport:fg,Header:wg,Headline:k,HorizontalLayout:Ig,ImgBlock:Tg,LinkDocs:Fg,MobileAppTile:jg,MortgageFiltration:cf,OfficesAtmsMap:If,Placeholder:Tf,ProductBlock:Ft,ProductGallery:Bf,RepresentativeOfficeInfo:Pf,RichTextBlock:Mf,RollupItem:ng,SafeDepositRental:ex,StepsBlock:ox,StickyBottomMenu:Tx,TabsLayout:Ex,TariffsTable:ay,TextBlock:ly,UnitBlock:cy,VerticalLayout:kg},my=ce((()=>{a((()=>{Xt()}),[]);const e=Zt();rn(globalThis,"click",(e=>t=>{const n=t.target?.closest("[data-aspects]");try{const i=JSON.parse(n?.dataset?.aspects??"[]");Yt({aspectsAttributes:i,aspects:e,ev:t})}catch(e){}e.forwardQuery?.(t)})(e))}));const uy="cookie",hy=d((({__html:e})=>{const[t,{setTrue:n,setFalse:i}]=ln();!function(e,t,n=300){a((()=>{const t=globalThis.setTimeout(e,n);return()=>{globalThis.clearTimeout(t)}}),t)}((()=>{globalThis.localStorage?.getItem(uy)||n()}),[],3e3);const r=l((()=>{globalThis.localStorage?.setItem(uy,"true"),i()}),[]);return t&&e?o("div",{className:"container fixed left-0 right-0 bottom-0 z-50",role:"dialog",children:c("div",{className:"bg-white m-xl p-xl rounded-md flex sm:items-center shadow-main-black",children:[o("div",{className:"sm:flex-1",children:o(De,{__html:e})}),o("div",{className:"ml-s sm:ml-0 w-36 flex justify-end",children:o(er,{className:"bg-main-gray rounded-md w-11 h-11",onClose:r})})]})}):null})),py=d((()=>{const e=l((e=>{for(const t of e)t?.onClose&&t.onClose()}),[]),t=l((e=>{e?.onClose&&e.onClose()}),[]),n=hx({onCloseAll:e,onClose:t}),{close:i}=ue(),r=l((({key:e})=>{"Escape"===e&&i()}),[]);return rn(globalThis.document,"keydown",r),a((()=>{n.length?(globalThis.document?.body.classList.add("no-scrollbar"),globalThis.document?.body.classList.add("overflow-hidden")):(globalThis.document?.body.classList.remove("no-scrollbar"),globalThis.document?.body.classList.remove("overflow-hidden"))}),[n]),n.length?o("div",{className:"fixed inset-0 z-50",role:"dialog",children:n.map((({dialog:e,id:t},i)=>o("div",{className:u("absolute inset-0 overflow-x-hidden overflow-y-scroll no-scrollbar bg-black/50",{hidden:i!==n.length-1}),children:e},String(t||i))))}):null})),gy=d((()=>{const[e,t]=i(null),n=l((()=>{t(null)}),[]);a((()=>me.subscribe("popup",(e=>{if(e)switch(e.type){case"open":case"update":t(e);break;case"close":n();break;default:ux(e)}}))),[]);const r=l((({key:e})=>{"Escape"===e&&n()}),[n]);return rn(globalThis.document,"keydown",r),e?o("div",{className:u("z-50",e.fixed?"fixed":"absolute"),style:{left:`${e.left}px`,top:`${e.top}px`,...e.width?{width:`${e.width}px`}:{}},role:"dialog",children:e.popup}):null})),fy="header",xy="footer",yy="sticky-footer",by={},vy=d((({className:e,data:t=by,blocksRegistry:n,blockDecorator:i})=>{const{slots:a,blocks:l,fallback:r,...s}=t,d=Et(s,r);my(),Np();const m={key:"",page:{slots:a,blocks:l,fallback:r,...d},blocksRegistry:n,blockDecorator:i,parent:t};return c("div",{"data-theme":t.colorPalette||"pc",children:[c("section",{className:u("@container relative",t.style,e),children:[a?.header?.length?o("div",{className:"relative z-10 mb-lg shadow-[0_8px_32px_0px_#00000014]",children:R(a?.header,{...m,slotName:fy})}):null,c("div",{className:"container space-y-px @5xl:space-y-0 @5xl:grid @5xl:grid-cols-12 @5xl:gap-2xs",children:[D({block:t,options:m,extraProps:{className:"scroll-mt-12"}}),R(a?.footer,{...m,slotName:xy})]})]}),a?.["sticky-footer"]?.length?o("div",{className:"fixed w-full bottom-0 left-0 z-[100]",children:R(a?.["sticky-footer"],{...m,slotName:yy})}):null,o(py,{}),o(gy,{}),o(hy,{__html:d?.cookieContent?.__html})]})}));Object.assign(vy,{childrenTypes:[],slots:()=>[fy,xy,yy]});e.Blocks=dy,e.ContentPage=vy,e.handlerDecorator=ce,e.joinList=Jc,e.locationNavigator=Kt,e.packageVersion="0.14.680",e.projectSettings=A,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=L,e.useRouter=M,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).UniMobileBlocks={})}(this,(function(e){"use strict";let t;const n=e=>(...n)=>t[e](...n),i=n("useState"),a=n("useEffect"),l=n("useCallback"),r=n("useMemo"),s=n("useRef"),o=(...e)=>globalThis._uni._jsx(...e),c=(...e)=>globalThis._uni._jsxs(...e),d=e=>{const t=e;return t._tmpl||(t._tmpl=globalThis.__UNI_REACT__?e:m(e)),t._tmpl},m=e=>{function t(t,n){const{children:i,...a}=t||{},l=n?.slots?.default,r=i||l&&l();return e(Object.assign(a,r&&{children:r}),n)}return t.inheritAttrs=!1,t},u=(...e)=>e.map((e=>h(e)?Object.entries(e).filter((([,e])=>e)).map((([e])=>e)):e)).flatMap((e=>e)).filter(Boolean).join(" "),h=e=>Boolean(e&&"object"==typeof e&&!Array.isArray(e)),p={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","":""},g=d((({className:e,version:t="primary",isTheme:n=!0,defaultPadding:i="p-xl",padding:a,block:l,tag:r="section",role:s,children:c,style:d})=>{const m=t&&n;return o(r,{className:u("@container font-sans",{group:m},p[t],a||i,e),...m?{"data-ver":t}:{},...l?.anchor?{id:l.anchor}:{},role:s,style:d,children:c})})),f=d((({className:e,size:t})=>o("figure",{className:u("m-0 mt-xl min-w-[80%]",e),children:x(t)}))),x=(e=3)=>b(100,e).map((e=>Math.floor(e))).map(y),y=(e,t)=>o("div",{style:{width:`${e||100}%`},className:"h-4 mt-xs bg-secondary-dark relative overflow-hidden animate-pulse"},String(t)),b=(e,t)=>[e].concat(t>0?b(e/1.618,t-1):[]),v={h1:"h1",h2:"h1",h3:"h2",h4:"h2",h5:"h3",h6:"h3"},N={h0:"text-h0",h1:"text-h1",h2:"text-h2",h3:"text-h3",h4:"text-h4",h5:"text-h5",h6:"text-h6"},w=d((({className:e="",headingType:t="h3",as:n="h3",title:i,children:a})=>{const l=v[n]||"h3";return o(l,{role:"heading",className:u("font-sans m-0",N[t],e),children:i||a})})),C=d((({children:e,...t})=>o("p",{className:u("font-sans",Object.values(t)),children:e}))),S={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-m",descriptionWeight:"font-light",descriptionStyle:"mt-xs"}},k=d((({className:e,version:t="",headlineVersion:n="XL",title:i,description:a,align:l="text-center",as:r,isEmbedded:s=!1,isTheme:d=!1,...m})=>{const h=S[n],p={marginTop:h.descriptionStyle};return c(g,{className:u({"@container-normal":s},e),defaultPadding:s?"":"p-6xl",version:t,isTheme:d,...m,children:[i?o(w,{className:u("whitespace-pre-wrap",l),...h?.title,as:r||h?.title.as,title:i}):null,a?o(C,{size:h.descriptionSize,font:h.descriptionWeight,align:l,...p,children:a}):null]})})),I=({blockClassName:e,block:t,render:n})=>n({blockClassName:e,block:t}),T=[];function B(e,t,{className:n,...i}={}){const{key:a,blockDecorator:l=I,blocksRegistry:r={},ancestors:s=T}=t,{type:c}=e;c&&c in r||console.warn(`No block with "${c}" is registered`);const d=c&&r[c];return l({blockClassName:u(e.style?.length?e.style:"col-span-12",n),block:e,ancestors:s,render:({block:n,blockClassName:l})=>{const{content:r}=n;return d?o(d,{className:l,block:e,options:t,...r,...i},a):null}},a)}const P=[],R=(e,{key:t,ancestors:n=P,slotName:i=null,extraProps:a,renderProps:l=B,...r})=>{const s=a?(e,t)=>B(e,t,a):l;return(e||[]).map(((e,a)=>s(e,{...r,key:`${t||e.type}-${a}`,ancestors:r.parent?[...n||P,[r.parent,i]]:n},a)))};function D({block:e,options:t,children:n,extraProps:i,renderProps:a}){return n||(e&&t?R(e.blocks,{...t,parent:e,extraProps:i,renderProps:a}):null)}function M(){return M._impl()}M._impl=()=>({isReady:!1,href:globalThis.location?.href||"/",pathname:globalThis.location?.pathname||"/",query:{},push:()=>{},replace:()=>{},back:()=>{}}),M.setup=e=>{M._impl=e};const _=["CDN","BASE_PATH"],A=new Proxy({_:{},setup(e){this._=e}},{get(e,t){const n=e._[t]||e[t];return _.includes(t)?(e=>e&&!e.endsWith("/")?`${e}/`:e)(n):n}}),E=e=>Boolean(e?.includes(":")),z=(e,t)=>Boolean(e&&!E(e)&&(!t||"_self"===t)),F=e=>Boolean(e?.startsWith("#")),O=(...e)=>e.filter(Boolean).join("/").replace(/\/+/g,"/").replace(/^(.+):\//,"$1://").replace(/^file:/,"file:/").replace(/\/(\?|&|#[^!])/g,"$1").replace(/\?/g,"&").replace("&","?"),V=(e,t)=>!(!e||!t)&&(!!e.startsWith(t)&&["/"===t,e===t,"/"===e[t.length]].some(Boolean));var L=Object.freeze({__proto__:null,isURL:E,isLocalURL:z,isHash:F,withoutQuery:e=>(e||"").replace(/\?.*/,"").replace(/\/$/,""),joinPath:O,hasPrefix:V});const j="/api/",q=`${j}v1/storage`,$=e=>(t,n)=>{if([!t,E(t),F(t),[A.CDN,j].some((e=>V(t,e)))].some(Boolean))return t;if(((e="")=>/^[a-f0-9]{8}-[a-f0-9]{4}-4[a-f0-9]{3}-[89aAbB][a-f0-9]{3}-[a-f0-9]{12}(\/revs\/[0-9]{1,20})?$/.test(e))(t))return`${q}/${t}/attachment`;const i=t?.startsWith("/");return O(V(t,n)?"":n,i?"/":(a=e.pathname,a?.split("/").slice(0,-1).join("/")),t);var a},U={"":"",normal:"",color:"text-primary-main",black:"text-black",white:"text-black",gray:"text-gray"},W=d((({className:e="",imageClassName:t="",name:n="",alt:i=`Иконка ${n}`,title:a=i,iconVersion:l="color",width:r,height:s})=>{const d=M(),m="normal"===l?`${n}.svg`:`sprites.svg#${n}`,h=$(d)(O(A.CDN,"/icons/",m));return"normal"===l?o("img",{className:e,src:h,alt:i,title:a,"aria-hidden":"true",width:r,height:s,style:H(e,s)}):o(K,{className:e,children:c("svg",{className:u(Y(r),U[l],{invert:"white"===l},t),width:r,height:s,"aria-hidden":"true",children:[a?o("title",{children:a}):null,i?o("desc",{children:i}):null,o("use",{href:h,xlinkHref:h})]})})})),H=(e,t)=>{return e?.includes("h-")?{}:{height:(n=t,n&&!/\D/.test(n)?`${t}px`:t),width:"auto"};var n},Y=e=>e?"":"w-full h-full",K=d((({className:e,children:t})=>e?o("div",{role:"img",className:e,children:t}):t)),G=new Proxy({_:{},setup(e){this._=e}},{get:(e,t)=>e._[t]||e[t]});function X(e=""){try{return new URL(e).pathname}catch(e){return""}}const J=e=>t=>{const n=t?.startsWith("/wcms-resources")?"":X(G.SITE_URL);return t&&!E(t)?$(e)(t,n):t},Z=(e,t)=>e?.media&&t?.media?e.media-t.media:0,Q=d((({className:e="",image:t,imageClassName:n=""})=>{const i=M();return c("picture",{className:e,children:[t?.sources?.length?t.sources.filter((e=>e?.src)).sort(Z).map((({src:e,format:n,media:a},l)=>o("source",{srcSet:J(i)(e),type:te(n),media:a?`(max-width: ${a}px)`:"",width:t?.size?.width,height:t?.size?.height},`${l}_${e}`))):null,t?.src?ee({...t,src:J(i)(t.src)},n):null]})})),ee=(e,t="")=>o("img",{src:e.src,className:u("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"},width:e?.size?.width,height:e?.size?.height}),te=e=>e?`image/${String(e)}`:void 0,ne=d((({className:e="",image:t,imageClassName:n="",...i})=>t?.src||t?.icon?t.icon?o(W,{className:e,imageClassName:n,iconVersion:t?.iconVersion,name:t.icon,...i}):o(Q,{className:e,imageClassName:n,image:t}):null)),ie={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:"text-primary-main",transparent:"",gray:"text-primary-main bg-main-divider hover:text-white hover:bg-primary-hover active:bg-primary-active","":""},ae="bg-main-divider text-main-disabled",le={primary:ae,secondary:ae,white:ae,link:"",transparent:"",gray:ae,"":""},re="text-center font-sans select-none",se={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:"text-primary-main",transparent:"",gray:"group-hover/btn:brightness-0 group-hover/btn:invert","":""},oe=({className:e,rounded:t,version:n})=>[re,"border border-transparent inline-block cursor-pointer no-underline focus:border-primary-text focus:border h-fit",n?ie[n]:"",t?"rounded-full":"rounded-md",e].join(" "),ce=e=>ce._impl(e);ce._impl=e=>e,ce.setup=e=>{ce._impl=e};class de{watchers=new Set;subscribersMap={};subjectsStateMap={};emitter=this;observable=this;watch(e){return this.watchers.add(e),()=>{this.watchers.delete(e)}}subscribe(e,t){this.subscribersMap[e]||=new Set,this.subscribersMap[e]?.add(t);const n=this.subjectsStateMap[e];return n&&t(n),()=>{this.subscribersMap[e]?.delete(t)}}fire(e,t){e in this.subjectsStateMap?this.subject(e,t):this.fireSubscribers(e,t)}subject(e,t){return this.subjectsStateMap[e]!==t&&(this.subjectsStateMap[e]=t??void 0,this.fireSubscribers(e,t)),()=>{delete this.subjectsStateMap[e]}}fireSubscribers(e,t){for(const n of this.subscribersMap[e]??[])n(t??null);for(const n of this.watchers)n({type:e,event:t??null})}}const me=new de,ue=()=>({open:(e,t={})=>me.fire("dialog",{type:"open",dialog:e,...t}),close:()=>me.fire("dialog",{type:"close"}),closeAll:()=>me.fire("dialog",{type:"close",all:!0})});function he(){const e=X(G.SITE_URL),t=M(),{closeAll:n}=ue();return e=>{const n=$(t)(e.href);return{...e,href:n,"aria-label":e.text,onClick:ce(i({...e,href:n}))}};function i({href:i,target:a,onClick:l}){return r=>{l?.(r),pe(i,a,e)||(n(),r?.preventDefault(),t.push(((e,t="")=>e?.replace(t,"")||"/")(i,e)))}}}const pe=(e,t,n)=>{if(!z(e,t))return!0;const i=G.SUB_PORTALS?.split(",");return!!i?.some((t=>V(e,t)))||!V(e,n||"/")},ge=e=>{if(!Array.isArray(e)||!e.length)return{};try{return{"data-aspects":JSON.stringify(e)}}catch(e){return{}}},fe=d((e=>{const{text:t,aboveText:n,appendLeft:i,appendRight:a,version:l="primary"}=e,r=ye(e)&&"hidden lg:block";return c("div",{className:u(xe(e),"flex gap-xs"),children:[i?o("div",{className:u(r,se[l]),children:i}):null,ye(e)?c("div",{className:"whitespace-pre",children:[n?o("div",{className:"text-xs font-light text-left",children:n}):null,o("div",{className:"text-left "+(n?"text-s -mt-3xs":"text-l"),children:t})]}):null,a?o("div",{className:u(r,se[l]),children:a}):null]})})),xe=e=>{const{version:t,aboveText:n,rounded:i}=e;if("link"===t)return"";const a=""+(n?"py-2.5 px-9":"py-4 px-9");return u("group/btn items-center justify-center",ye(e)?a:"h-12 w-12 m-auto",{"rounded-full":i})},ye=({text:e,aboveText:t,appendLeft:n})=>Boolean(e||t||!n),be=({className:e,rounded:t,version:n})=>["inline-block",re,n?le[n]:"",t?"rounded-full":"rounded-md",e].join(" "),ve=d((({disabled:e,children:t,method:n="LINK",href:i,...a})=>{const r=(({method:e,href:t})=>l((n=>{if("POST"!==e||!t)return;n.preventDefault(),n.stopPropagation();const{origin:i,pathname:a,searchParams:l}=new URL(t||""),r=document.createElement("form");r.setAttribute("method","POST"),r.setAttribute("action",[i,a].join(""));for(const[e,t]of l.entries()){const n=document.createElement("input");n.setAttribute("type","hidden"),n.setAttribute("name",e),n.setAttribute("value",t),r.appendChild(n)}document.body.appendChild(r),r.submit()}),[]))({method:n,href:i}),s=he()({onClick:r,href:i,...a}),c=t??o(fe,{...s});return o(e?we:Ne,{...s,children:c})})),Ne=d((({className:e="",href:t,rel:n,target:i,ariaLabel:a,version:l,rounded:r,onClick:s,type:c,data:d,children:m,text:u})=>o("a",{className:oe({className:e,version:l,rounded:r}),href:t,rel:n,target:i,"aria-label":a||`Ссылка на ${u}`,role:t?"link":"button",onClick:s,type:c,...ge(d),children:m}))),we=d((({className:e,ariaLabel:t,version:n,rounded:i,children:a})=>o("button",{type:"button","aria-disabled":"true","aria-label":t,tabIndex:-1,className:be({className:e,rounded:i,version:n}),children:a})));function Ce({version:e,handleClick:t,text:n="Вернуться назад",alwaysVisible:i=!1}){if(!n)return null;const a="primary"===e?"white":"black",l="primary"===e?"bg-primary-main":"bg-white";return c("div",{className:u(i?"flex":"hidden sm:flex","items-center gap-s"),children:[o("div",{className:u(oe({className:"w-12 h-12 min-h-12 min-w-12 flex items-center justify-center",rounded:!0}),l),onClick:t,children:o(ne,{className:"w-4 h-4",image:{icon:"ArrowLeftIcon",iconVersion:a}})}),o(ve,{version:"link",className:"group-data-secondary:text-white",text:n,ariaLabel:n,onClick:t,type:"button"})]})}const Se=()=>{const[e,t]=i(true);return a((()=>{const e=globalThis.matchMedia?.("(max-width: 1024px)"),n=()=>{t(Boolean(e?.matches))};return e?.addEventListener("change",n),e?.matches&&t(Boolean(e.matches)),()=>{e?.removeEventListener("change",n)}}),[]),e},ke={start:"@xl:self-start",center:"@xl:self-center",end:"@xl:self-end"},Ie=(e,{className:t,imageAlign:n})=>e?o("div",{className:u("shrink-1/2 justify-self-center",n&&ke[n],t),children:e}):null,Te=d((({className:e,version:t="primary",defaultPadding:n,padding:i="",title:a,buttons:r,leftImage:s,rightImage:d,imageAlign:m,insetTitle:h,isImageAlwaysOnRight:p=!1,isImageSecondary:g=!1,backwardButton:f,children:x,...y})=>{const b=Se(),v=M(),N=l((()=>v.back()),[]),w=y.options?.page?.common?.backwardButton,C=f&&!b;return c("div",{className:u("relative flex flex-col gap-3xl overflow-hidden",i||n,e),children:[C&&Ce({version:t,handleClick:N,text:w}),a?o("div",{className:"relative h-full",children:a}):null,c("div",{className:u("grow relative flex flex-col @xl:flex-row gap-3xl w-full",{"self-start @xl:w-auto":s}),children:[Ie(s,{imageAlign:m,className:"mx-auto"}),c("div",{className:u("grid gap-3xl items-center md:items-stretch",{"@xl:grid-cols-2 auto-cols-fr":d,grow:!s},"h-full","auto-rows-[max-content_1fr]"),children:[c("div",{className:"grow space-y-lg min-w-fit",children:[h,x]}),Pe(D({...y,extraProps:{className:"@container-normal"}})),Ie(d,{className:u("@xl:justify-self-end @xl:col-start-2",{[Be(p)]:r,"col-start-2 self-center":p,"hidden @xl:block":g}),imageAlign:m}),r?o("div",{className:"self-end",children:r}):null]})]})]})})),Be=e=>u(e?"row-span-2":"@xl:row-span-2"),Pe=e=>e?.length?o("div",{className:"flex items-start justify-end",children:e}):null,Re=(e,t="normal")=>e?.icon||e?.src?o("div",{className:u("sm:w-12 sm:h-12 sm:min-w-12 w-11 h-11 min-w-11 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:o(ne,{className:"w-6 h-6",image:{...e,iconVersion:e.iconVersion||t}})}):null,De=d((e=>{const{__html:t="",richVersion:n="",itemSize:i="list-m",isDotted:a=!0}=e,l=a?"":"without-dots";return t&&"<p><br></p>"!==t.replace(/<\/?[^>]+\/?>/g,"").trim()?o("div",{"data-component":"rich-text-container",children:o("div",{className:u(n,i,"md-container group-data-secondary:text-white group-data-gray:text-secondary-text",l),dangerouslySetInnerHTML:{__html:t}})}):null})),Me=(e,t)=>e?o(C,{font:"font-light",size:"text-m",color:"text-secondary-text group-data-secondary:text-white",children:e},`description-${t}`):null,_e=d((({children:e,...t})=>o("span",{className:u("font-sans",Object.values(t)),children:e}))),Ae=(e,t)=>e?o(_e,{color:"text-primary-text group-data-secondary:text-white",size:"text-h6",children:e},`label-${t}`):null,Ee=(e,t)=>["label"in e?Ae(e.label,t):null,"description"in e?o("span",{className:e.descriptionClassName,children:Me(e.description,t)},String(t)):null,"__html"in e?o(De,{...e},`rte-${t}`):null],ze=d((({className:e,benefitsVersion:t,...n})=>c("div",{className:u("flex gap-m min-w-56 items-center",e),role:"listitem",children:["icon"in n?Re(n.icon,t):null,o("div",{children:Ee(n)})]}))),Fe=d((({className:e,benefitsVersion:t="normal",benefits:n})=>n?.length?o("div",{className:u("flex gap-x-m gap-y-s flex-col",e),role:"list",children:n.map(((e,n)=>o(ze,{benefitsVersion:t,...e},String(n))))}):null)),Oe=d((({className:e,benefits:t})=>t?.length?o("div",{className:u("grid grid-cols-[max-content_1fr] auto-rows-auto items-baseline gap-x-m gap-y-xs",e),role:"list",children:t.flatMap(Ee)}):null)),Ve=d((({isTabularBenefits:e,...t})=>o(e?Oe:Fe,{...t}))),Le=e=>Boolean(e?.src||e?.icon),je=(e,{className:t,buttonClassName:n,isVertical:i}={})=>e?.length&&e.some((e=>e?.text||e?.icon?.icon))?o("div",{className:u("flex",i?"flex-col gap-xs justify-items-stretch":"flex-wrap @xl:flex-nowrap gap-lg sm:gap-m w-full @lg:w-auto",t),role:"group",children:e.map(qe(n))}):null,qe=(e="")=>(t,n)=>{const{text:i,icon:a,iconRight:l,version:r,...s}=t||{},c=$e(a,r),d=$e(l,r);return i||a?.icon?o(ve,{className:u("basis-full @lg:basis-auto",e),appendLeft:Ue({...a,iconVersion:c}),appendRight:Ue({...l,iconVersion:d}),version:r,text:i,...s},n?String(n):""):null},$e=(e,t="secondary")=>{const n="secondary"===t?"color":"white";return e?.iconVersion||n},Ue=e=>Le(e)&&o(ne,{image:e,width:String(e?.size?.width||24),height:String(24)}),We=(e=0,{fixed:t}={})=>(n=0)=>new Intl.NumberFormat("ru-RU",{minimumFractionDigits:t?e:0,maximumFractionDigits:e}).format(Number(n)||0),He=d((({priceList:e})=>e?.length?o("div",{className:"flex flex-wrap xl:flex-nowrap xl:bg-main-divider xl:rounded-md p-xs gap-xl",role:"list",children:e.map(Ye)}):null)),Ye=({label:e,amount:t,unit:n},i)=>c("div",{className:"basis-full flex flex-col-reverse sm:flex-row sm:justify-between sm:bg-main-divider sm:py-m sm:px-lg sm:rounded-md items-baseline whitespace-pre",role:"listitem",children:[o(_e,{font:"font-light",size:"text-l",color:"text-secondary-text",children:e}),t?c("span",{className:"font-sans text-h6 sm:text-primary-main text-primary-text",children:[We(2)(t)," ",n||"₽"]}):null]},String(i)),Ke=d((({className:e,tags:t})=>t?.length?o("div",{className:u("flex flex-wrap gap-xs",e),role:"list",children:t.map(Ge)}):null)),Ge=(e,t)=>o("div",{className:"p-xs border-solid border rounded-md border-gray",role:"listitem",children:o(_e,{size:"text-m",font:"font-light",children:e})},String(t)),Xe={XXL:"list-l",XL:"list-l",L:"list-m",M:"list-m",S:"list-s",XS:"list-s"},Je=d((({className:e,padding:t,defaultPadding:n,title:i,description:a,headlineVersion:l="L",align:r="text-left",benefitsVersion:s,isTabularBenefits:d,isDotted:m=!0,benefits:u,__html:h,richVersion:p,isFullWidthTitle:g,priceList:f=[],tags:x=[],buttons:y,image:b,imageOptions:{imageAlign:v="center",directionRight:N=!0,isImageAlwaysOnRight:w,isImageSecondary:C=!1}={},backwardButton:S,children:I,...T})=>{const B=b?.src?o(ne,{image:b}):null,P=o(k,{title:i,description:a,headlineVersion:l,align:r,isEmbedded:!0}),R=u?.filter((e=>"__html"in e||"label"in e||"description"in e));return o(Te,{className:e,padding:t,defaultPadding:n,...g?{title:P}:{insetTitle:P},...Ze(B,N),isImageSecondary:C,imageAlign:v,isImageAlwaysOnRight:w,buttons:je(y),backwardButton:S,...T,children:c("div",{className:"flex flex-col sm:gap-xl gap-4xl",children:[R?.length?o(Ve,{benefitsVersion:s,isTabularBenefits:d,benefits:R}):null,h?o(De,{richVersion:p,__html:h,isDotted:m,itemSize:Xe[l]}):null,I,f?.length?o(He,{priceList:f}):null,Qe(x)]})})})),Ze=(e,t)=>t?{rightImage:e}:{leftImage:e},Qe=e=>e?.length?o(Ke,{tags:e}):null;class et{_;constructor(e){this._=e}of(e){return new this.constructor(e instanceof et?e._:e)}filter(e){return this.from(this.entries().filter(e))}map(e){return this.from(this.entries().map(e))}flatMap(e){return this.from(this.entries().flatMap(e))}reduce(e,t){return this.entries().reduce(e.bind(this),t)}}const tt=()=>!0,nt=(e,t)=>(...n)=>e(...n)&&t(...n),it=(...e)=>(...t)=>{const[,n]=function(e){if(!e)throw new Error("Value should be fulfilled");return e}(e.find((([e])=>e(...t))));return n(...t)};const at=e=>Boolean(e&&Array.isArray(e)),lt=e=>Boolean(e&&"object"==typeof e&&!at(e)),rt=e=>e;function st(e){return e instanceof et?e._:e}class ot extends et{from(e){return this.of(e.map(((e=rt)=>([,t])=>e(t))(st)))}entries(){return(this._??[]).map(((e,t)=>[t,this.of(e)]))}size(){return this._?.length??0}get(e){return this.of("number"==typeof e?this._?.[e]:void 0)}set(e,t){return this.of(at(this._)?Array.from({length:Math.max(this._.length,Number(e)+1)},((n,i)=>i===e?t:this._[i])):Array.from({length:Number(e)+1},((n,i)=>i===e?t:void 0)))}}class ct extends et{from(){return this}entries(){return[]}size(){return 0}get(e){return this.of(void 0!==e?void 0:this._)}set(e,t){return this.of(t)}}class dt extends et{from(e){return this.of(Object.fromEntries(e.map((([e,t])=>[e,st(t)]))))}entries(){return Object.entries(this._??{}).map((([e,t])=>[e,this.of(t)]))}size(){return Object.keys(this._??{}).length}get(e){return this.of("string"==typeof e?this._?.[e]:void 0)}set(e,t){return this.of({...this._,[e]:t})}}class mt extends et{proto=it([e=>at(this._)||"number"==typeof e,()=>ot.prototype],[e=>lt(this._)||"string"==typeof e,()=>dt.prototype],[tt,()=>ct.prototype]);from(e){return this.proto(void 0).from.call(this,e)}entries(){return this.proto(void 0).entries.call(this)}size(){return this.proto(void 0).size.call(this)}get(e){return this.proto(e).get.call(this,e)}set(e,t){return this.proto(e).set.call(this,e,t)}}const ut=e=>e instanceof et?e:new mt(e),ht=e=>{const t=(t,...n)=>st(e(ut(t),...n));return t.fn=e,t},pt=[],gt=e=>e instanceof Function?e:t=>e===t,ft=e=>(t,n,i=pt)=>ut(t).entries().reduce(((t,[n,a])=>ft(e)(a,t,i.concat(n))),e(n,[i,ut(t)])),xt=ht(((e,[t,n])=>{const[i,...a]=t;return e.set(i,a.length?xt(e.get(i),[a,n]):n)})),yt=ht(((e,t)=>t.reduce(xt.fn,e))),bt=e=>ft(((e,[t,n])=>vt(n)?[...e,[t,st(n)]]:e))(e,[]),vt=e=>0===e.size();ht(((e,t=pt)=>t.reduce(((e,t)=>e.get(t)),e)));const Nt=ht(((e,[t,...n])=>n.length?e.set(t,Nt(e.get(t),n)):e.filter((([e])=>e!==t)))),wt=(Ct=["$ref"]).map(((e,t)=>n=>gt(e)(n[t+n.length-Ct.length]))).reduceRight(nt,tt);var Ct;const St=(e,t)=>(e=>e.includes("#")?e.substring(e.indexOf("#")+1).split("/").filter(Boolean):[])(t).reduce(kt,e),kt=it([at,(e,t)=>e[parseInt(t,10)]],[lt,(e,t)=>e[t]],[tt,rt]),It=(e,t)=>((e,t={})=>n=>yt(t,bt(n).map((t=>e(t)))))((([e,n])=>{return wt(e)?[(i=e,i.slice(0,-1)),St(t(n),n)]:[e,n];var i}))(e),Tt=e=>bt(e).filter(((e=rt)=>([t])=>e(t))(wt)),Bt=e=>{return t=Tt(e).map((([,e])=>e)),[...new Set(t)];var t};async function Pt(e,t){try{return e?await Rt(e,t):null}catch(e){console.error(e)}return null}const Rt=async(e,t)=>(await fetch(e,{...t,headers:{...t?.headers,"Content-Type":"application/json"}})).json(),Dt=e=>[...new Set(e)],Mt={},_t=["/portal-resources"],At=(e,t)=>It(e,(e=>t?.[e])),Et=(e,t)=>{const n=Bt(e),[l,r]=i({});return a((()=>{n.length&&(async e=>Object.fromEntries((await Promise.allSettled(Dt(e).filter((e=>!_t.some((t=>e.startsWith(t))))).map((async e=>[e,Mt[e]||=await Rt(e)])))).filter((e=>"fulfilled"===e.status)).map((({value:e})=>e))))(n).then(r)}),[n.join()]),n.length?At(e,{...t,...l}):e};function zt(e,t={}){const n=d((t=>{const n=Et((({block:e,options:t,className:n,defaultPadding:i,padding:a,isTheme:l,version:r,children:s,...o})=>o)(t),t.options?.page?.fallback);return o(e,{...t,...n})}));return Object.assign(n,t),n}const Ft=zt((({className:e,padding:t,defaultPadding:n,...i})=>o(g,{className:u("overflow-hidden flex flex-col gap-3xl box-border",e),padding:"p-0",...i,children:o(Je,{defaultPadding:n||"p-6xl",padding:t,className:"grow h-full",...i})})),{childrenTypes:["UnitBlock"]}),Ot=d((e=>{const{items:t}=e.options?.page?.adSourceBook??{},n=r((()=>Vt(0,t?.length)),[t]),i=t?.[n];return i?o(Ft,{suppressHydrationWarning:!0,...i,...e}):o(g,{...e,children:o(f,{})})})),Vt=(e=0,t=0)=>Math.floor(Math.random()*(t-e)+e),Lt=(e,t=!1)=>{if("string"==typeof e)return e.split("-").reverse().join(".");{const n=String(e.getDate()).padStart(2,"0"),i=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getFullYear());return t?`${a}-${i}-${n}`:`${n}.${i}.${a}`}},jt=e=>e?.replace(/[^+\d]/g,""),qt="/api/v1";const $t=e=>e?{phone:jt(e)}:{},Ut=(e,t="birthday")=>e?{[t]:Lt(e)}:{},Wt=(e,t=!0)=>({[t?"regionBranch":"region"]:e}),Ht=(e,t=!0)=>({[t?"email":"mail"]:e}),Yt=(e="")=>e&&"+7 ("!==e?{secondaryPhoneNumber:jt(e)}:{},Kt=({aspectsAttributes:e,aspects:t,ev:n})=>{for(const{aspectName:i,params:a}of e)t[i??""]?.(n,a)};function Gt(){return Gt._impl()}Gt._impl=()=>({assign:(e,t)=>{globalThis.open(e,t||"_self")},get origin(){return globalThis.location.origin},get href(){return globalThis.location.href}}),Gt.setup=e=>{Gt._impl=e};const Xt="rshb-query-params";function Jt(){const e=globalThis.location?.search||globalThis.sessionStorage?.getItem(Xt)||"";return e&&globalThis.sessionStorage?.setItem(Xt,e),e}const Zt=e=>{const t=e.target?.closest("a"),n=Gt();if(E(t?.href)&&!t?.href?.startsWith(n.origin)){e.preventDefault(),e.stopPropagation();const i=(e=>{const t=Jt();if(!E(e)||!t)return e;const n=new URL(e);for(const[e,i]of new URLSearchParams(t))n.searchParams.set(e,i);return n.toString()})(t?.href)||t?.href;i&&n.assign(i,t?.target)}};function Qt(){return Qt._impl()}Qt._impl=()=>({forwardQuery:Zt}),Qt.setup=e=>{Qt._impl=e};const en=e=>e,tn=(e,{resetOnSubmit:t,onSubmit:n,normalize:r}={})=>{const[s,o]=i(e),c=l(r?e=>o(e instanceof Function?t=>{const n=r(e(t));return nn(t,n)?t:n}:r(e)):o,[r]);a((()=>{r&&o(r)}),[r]);const[d,m]=i(!1),[u,h]=i({}),p=l(((e,t)=>{const{parse:n=en,format:i=en}=t||{};return{value:i(s[e]),isDirty:d||u[e],onChange:t=>{c((i=>({...i,[e]:n(t)}))),h((t=>({...t,[e]:!0})))}}}),[c,d,u]),g=l((e=>{c(e),h(e)}),[]),f=l((()=>{c(e),m(!1),h({})}),[e]),x=l((e=>(e.preventDefault(),t?f():m(!0),n&&n(s,e),s)),[n,s]);return[s,{isDirty:d||Object.values(u).some(Boolean),field:p,update:g,reset:f,onSubmit:x}]},nn=(e,t)=>e&&t&&Object.keys({...e,...t}).every((n=>e[n]===t[n])),an=d((e=>{const{className:t,title:n,children:i,...a}=e;return o(g,{className:t,defaultPadding:"p-6xl",...a,children:c("div",{className:"container max-w-[978px] space-y-lg",children:[n?o(w,{headingType:"h3",title:n,className:"@xl:text-center"}):null,i]})})})),ln=`${qt}/outservice/outserviceregions`,rn=e=>"OUTSERVICE"===e?ln:void 0;function sn(e=!1){const[t,n]=i(e),a=l((()=>n(!0)),[]),r=l((()=>n(!1)),[]),s=l((()=>n((e=>!e))),[]);return[t,{setValue:n,setTrue:a,setFalse:r,toggle:s}]}function on(e,t,n,i){a((()=>{if(e&&n)return e.addEventListener(t,n,i),()=>{e.removeEventListener(t,n,i)}}),[e,t,n])}function cn(e){const t=s(null),n=l((n=>{t&&t.current&&n.target instanceof Node&&!t.current.contains(n.target)&&e()}),[e]);return on(globalThis.document,"click",n),t}const dn=({label:e,errors:t})=>e&&t?`${e}*`:e,mn=()=>{},un="border border-solid outline-none border-gray hover:border-primary-hover active:border-primary-text focus:border-primary-text rounded",hn=e=>e?o(_e,{size:"text-m",color:"text-primary-text",font:"font-light",children:e}):null,pn=d((({key:e,className:t="",id:n,name:i,type:r="text",label:d,placeholder:m,value:h="",valid:p=!0,children:g,onChange:f,onFocus:x,onBlur:y,pattern:b,autoFocus:v=!1,isTextarea:N=!1,disabled:w=!1})=>{const C=s(null),S=l((e=>{const t=(e.target?.value||"").trimStart();f&&f(t)}),[f]);a((()=>{v&&C.current?.focus()}),[v,C]);const k=g?"pr-3xl":"",I=gn(p);return c("div",{className:u("relative",t),children:[c("label",{className:"space-y-xs",children:[hn(d),N?o("textarea",{className:u("block resize-y min-h-24",fn,I),id:u("textarea",n),name:i||n,placeholder:m,value:h,onChange:S,onFocus:x,onBlur:y,disabled:w},e):o("input",{type:r,className:u("h-14",fn,k,I),ref:C,id:n,name:i||n,placeholder:m,value:h,onChange:S,onFocus:x,onBlur:y,pattern:b,disabled:w},e)]}),g]})})),gn=e=>e?un:"border-error",fn="w-full border rounded-md text-primary-text outline-none p-m",xn=e=>o("div",{className:"h-6",children:e?o(_e,{size:"text-xs",font:"font-light",color:"text-error",children:e}):null}),yn=e=>e?.value||"",bn={url:"suggest/address"},vn={name:{url:"suggest/fio",requestData:{parts:["NAME"],gender:"UNKNOWN"}},surname:{url:"suggest/fio",requestData:{parts:["SURNAME"],gender:"UNKNOWN"}},middleName:{url:"suggest/fio",requestData:{parts:["PATRONYMIC"],gender:"UNKNOWN"}},email:{url:"suggest/email"},dulSubdivisionCode:{url:"suggest/fms_unit",responseItemHandler:e=>e?.data?.code?.replace("-","")||""},dulIssuedBy:{url:"suggest/fms_unit"},organizationName:{url:"suggest/party"},inn:{url:"suggest/party",responseItemHandler:e=>e?.data?.inn||""},addressRegistration:bn,addressFact:bn,organizationAddress:bn,addressCourier:bn},Nn=()=>({open:(e,t)=>me.fire("popup",{type:"open",popup:e,...t}),update:(e,t)=>me.fire("popup",{type:"update",popup:e,...t}),close:()=>me.fire("popup",{type:"close"})}),wn=d((({options:e,onChange:t})=>o("div",{className:"bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-2xl",role:"list",children:e?.map(((e,n)=>o("div",{className:"flex px-m py-s cursor-pointer hover:bg-main-divider pr-5xl relative",role:"listitem",onMouseDown:()=>t(e),children:o("span",{className:"min-h-6",children:e.processedValue})},n.toString())))})));function Cn({isOpen:e,value:t,name:n,onChange:c,onDaDataChange:d,daDataQueryPrefix:m}){const u=s(t),h=s(t),[p,g]=i([]),f=Nn(),x=vn[n],y=l((()=>{h.current=t,f.close()}),[t]),b=l((e=>{y(),h.current=e.processedValue,c&&c(e.processedValue),d&&d(e)}),[y,c]),v=s(null),N=r((()=>async e=>{if(!x)return;const t=await(e=>{const{url:t,query:n,queryPrefix:i,requestData:a={},responseItemHandler:l=yn}=e,r=(s=l,e=>(e?.suggestions||[]).map((e=>{const t=s(e);return{...e,processedValue:t}})));var s;const o=`${i?`${i}, `:""}${n}`;return fetch(`${qt}/suggestions/${t}`,{method:"POST",mode:"cors",headers:{"Content-Type":"application/json"},body:JSON.stringify({count:10,...a,query:o})}).then((e=>e.json())).then(r)})({url:x.url,responseItemHandler:x.responseItemHandler,requestData:{...x?.requestData},query:e,queryPrefix:m});t?.length&&g(t)}),[m]),w=r((()=>((e,t=600)=>{let n;const i=(...a)=>{i.dispose(),n=setTimeout((()=>{e(...a)}),t)};return i.dispose=()=>{n&&clearTimeout(n)},i})(N,300)),[N]);return a((()=>{if(!e||!v.current||h.current===t)return void y();const n=v.current,{top:i,left:a,width:l,height:r}=n.getBoundingClientRect();t&&u.current!==t&&(w(t),u.current=t),f.update(o(wn,{options:p,value:t,onChange:b}),{top:i+globalThis.scrollY+r,left:a,width:l})}),[e,p,t,b]),v}const Sn=d((({className:e,label:t,value:n="",placeholder:i,error:r,errors:s,onChange:d=mn,onDaDataChange:m,onBlur:h,isTextarea:p,type:g,name:f="",daDataQueryPrefix:x,isInteger:y=!1,maxLength:b,dadata:v=!1,disabled:N=!1})=>{const[w,{setFalse:C,setTrue:S}]=sn(),k=cn(C),I=l((e=>{v&&!w&&S(),b?e.length<=b&&d(e):d(e)}),[v,w,d]);a((()=>{y&&n&&d(kn(n))}),[n]);const T=Cn({isOpen:w&&v,name:f,value:n,daDataQueryPrefix:x,onChange:d,onDaDataChange:m});return c("div",{className:u("shrink-0 w-full",e),ref:k,onBlur:C,onFocus:S,children:[o("div",{ref:T,children:o(pn,{disabled:N,type:g||"text","aria-label":t,label:dn({label:t,errors:s}),valid:Boolean(!r),value:n,onChange:I,onBlur:h,isTextarea:p,placeholder:In(i,s,t)})}),xn(r)]})})),kn=(e="")=>e.replace(/[^\d]+/g,""),In=(e,t,n)=>t&&!n?`${e}*`:e,Tn=e=>e?.text||e?.key||"",Bn=(e,t)=>e?.length&&t?.trim()?e.filter((e=>e.text?.toLocaleLowerCase().includes(t?.trim().toLocaleLowerCase()))):e,Pn=d((({popupRef:e,options:t,value:n,query:i,onChange:a,iconVersion:l})=>t?.length?o("div",{className:"bg-white text-l max-h-64 overflow-y-auto overflow-x-hidden rounded-md shadow-2xl",role:"list",ref:e,children:Bn(t,i).map((e=>c("div",{className:"flex px-m py-s cursor-pointer hover:bg-main-divider pr-5xl relative",role:"listitem","aria-selected":e.key===n?.key,onClick:t=>{t.stopPropagation(),a&&a(e)},children:[o("span",{className:"min-h-6",children:Tn(e)}),o(W,{name:"DoneSimpleIcon",width:"16",height:"16",iconVersion:l,className:u("absolute right-4 pt-3xs",{hidden:e.key!==n?.key})})]},e.key)))}):null));const Rn=d((({className:e,label:t,options:n=[],value:r,valid:d=!0,isBorder:m=!0,placeholder:h="",isSearch:p=!1,iconVersion:g="black",onChange:f,disabled:x=!1})=>{const[y,{setFalse:b,setTrue:v}]=sn(),[N,w]=i(""),C=_n(x,n.length),S=y&&!C,k=l((()=>{w(""),b()}),[]),I=function({isOpen:e,options:t,value:n,query:i,onChange:r,onClose:c,iconVersion:d}){const m=Nn(),u=l((()=>{m.close(),c&&c()}),[c]),h=l((e=>{u(),r&&r(e)}),[u,r]),p=s(null),g=cn(u);return a((()=>{if(!e||!p.current)return;const a=p.current,{top:l,left:r,width:s,height:c}=a.getBoundingClientRect();m.update(o(Pn,{popupRef:g,options:t,value:n,query:i,onChange:h,iconVersion:d}),{top:l+window.scrollY+c,left:r,width:s})}),[e,t,n,i,h]),p}({isOpen:y,options:n,value:r,query:N,onChange:f,onClose:k,iconVersion:g});return c("div",{className:u("space-y-xs",e),children:[hn(t),c("div",{className:u("relative",S?"z-20":"z-10"),ref:I,children:[c("div",{className:u("h-14 [&>*]:p-m pr-6 text-l flex items-center justify-between text-primary-text relative z-10 overflow-hidden",Mn(m,d,C)),onClick:S?k:v,children:[o("p",{className:"line-clamp-2 text-ellipsis",children:Tn(r)||h}),Dn(S,g)]}),p&&S?o("div",{className:u("absolute top-0 w-full z-20"),children:o(pn,{type:"text",autoFocus:!0,value:N,onChange:w})}):null]})]})})),Dn=(e,t)=>o(W,{className:u("absolute right-0 flex self-center",{"rotate-180":!e}),iconVersion:t,name:"ArrowUpIcon",width:"16",height:"16"}),Mn=(e,t,n)=>u(e?"border rounded-md ":"",e&&!n?"hover:border-primary-hover":"",n?"bg-main-divider":"cursor-pointer ",t?"border-gray":"border-error"),_n=(e,t)=>e||0===t,An=d((({className:e="",label:t,error:n,errors:i,...a})=>c("div",{className:e,children:[o(Rn,{...a,valid:!n,label:dn({label:t,errors:i})}),xn(n)]}))),En=e=>!e?.length,zn=e=>t=>n=>e(n)?[]:[t],Fn=zn((e=>null!=e&&""!==e)),On="Некорректно заполненное поле",Vn="Укажите регион, город/населенный пункт, улицу, дом",Ln=e=>Fn(e??On),jn=e=>zn((e=>e?.key&&""!==e?.key))(e??On),qn=e=>zn((e=>"string"==typeof e&&e.length>0&&e.length<=2))(e??On),$n=e=>zn((e=>"string"==typeof e&&e.length>1&&Zn(e)))(e??On),Un=(e,t)=>zn((t=>"string"==typeof t&&t.length>=1&&t.length<=e))(t??On),Wn=e=>zn((e=>"string"==typeof e&&6===e.length))(e),Hn=e=>{return(t=/^(\+7)?[\s-]?\(?[0-9]{3}\)?[\s-]?[0-9]{3}[\s-]?[0-9]{2}[\s-]?[0-9]{2}$/,zn((e=>"string"==typeof e&&t.test(e))))(e);var t},Yn=zn((e=>"boolean"==typeof e&&e))("Согласие обязательно"),Kn=e=>{const t=String(e).replace(/[^0-9]+/g,"");if(11===t.length){let e=0;for(let n=0;n<9;n++)e+=parseInt(t.charAt(n))*(9-n);return e>101&&(e%=101),100!==e&&101!==e||(e=0),e===parseInt(t.substr(9))}return!1},Gn=e=>Boolean(e.region&&e.city&&e.house),Xn=()=>zn(Gn)(Vn),Jn=/^[\u0400-\u04FF\d]+$/u,Zn=(e="")=>Jn.test(e),Qn=e=>{const t=new Date,n=new Date(t.getFullYear()-23,t.getMonth(),t.getDate()),i=new Date(t.getFullYear()-75,t.getMonth(),t.getDate());return!(!e||e>n||e<i)},ei={typeForm:Ln(),surname:$n("Укажите свою фамилию"),name:$n("Укажите своё имя"),middleName:$n("Укажите своё отчество"),region:jn(),addressBranch:jn(),phone:Hn("Укажите номер телефона"),secondaryPhone:Hn("Укажите номер телефона"),organizationPhone:Hn("Укажите номер телефона"),birthday:Ln("Укажите дату рождения"),limitedBirthday:zn(Qn)("Допустимый возраст заёмщика - от 23 до 75 лет"),birthPlace:Ln("Укажите место рождения"),education:Ln("Выберите ваше образование"),housing:Ln("Выберите тип жилья"),employment:Ln("Выберите информацию о трудоустройстве"),organization:Ln("Выберите тип организации"),amountWorkers:Ln("Выберите информацию о количестве сотрудников"),employerActivities:Ln("Выберите вид деятельности организации"),employerOrganization:Ln("Выберите вид организации"),positionOrganization:Ln("Выберите вашу должность"),dulSerie:(ti="Укажите серию паспорта",zn((e=>"string"==typeof e&&4===e.length))(ti)),dulNumber:Wn("Укажите номер паспорта"),dulIssueDateField:Ln("Укажите дату выдачи паспорта"),dulSubdivisionCode:Wn("Укажите код подразделения"),dulIssuedBy:Ln("Укажите организацию, выдавшую паспорт"),email:(e=>zn((e=>/^[^\s@]+@[^\s@]+\.[a-zA-Z]{2,4}$/.test(e)))(e))("Укажите электронную почту"),fullName:$n(),inn:(e=>zn((e=>"string"==typeof e&&(10===e.length||12===e.length)))(e))("Укажите ИНН"),legalForm:Ln("Укажите ОПФ"),organizationName:Ln("Укажите наименование организации"),generalSeniority:qn("Укажите количество лет стажа"),lastJobExperience:qn("Укажите стаж на последнем месте работы"),experience5Years:qn("Укажите общий стаж за последние 5 лет"),jobsNumber:qn("Укажите количество мест работы за последние 5 лет"),beginDate:Ln("Укажите дату заключения трудового договора"),addressFact:Xn(),partnerComments:Ln(),collectionCount:Ln(),comment:Ln(),acquiringType:jn(),feedbackMethod:jn(),serviceType:jn(),serviceDirection:jn(),regionRetail:jn("Выберите регион"),meetingDay:Ln(),product:Ln(),localities:Ln(),consentDataProcessing:Yn,annualRevenue:Ln(),consentToReceiveMaterials:Yn,processPersonalDataFlg:Yn,consentProviderFlg:Yn,consentPfrFlg:Yn,consentOthersFlg:Yn,consentInformFlg:Yn,familyStatus:Ln("Выберите семейное положение"),children:Un(2,"Укажите количество детей"),familyMembers:Un(2,"Укажите количество членов семьи"),dependents:Un(2,"Укажите количество иждивенцев"),totalIncome:Un(19,"Укажите среднемесячный доход от основной зарплаты"),expenses:Un(10,"Укажите сумму обязательных выплат"),snils:(e=>zn(Kn)(e))("Некорректный номер СНИЛС"),conscription:Ln(),armyIdFlg:Yn,sex:Ln("Укажите свой пол"),addressRegistration:Xn(),organizationAddress:zn((e=>Boolean(e.fiasCode&&e.city&&e.house)))(Vn),participantDateRegistration:Ln("Укажите дату регистрации"),retirementIncome:Ln(),otherIncome:Ln(),wages:Ln(),mandatoryPayments:Ln(),disablePeopleFlg:Ln(),bankruptcyFlg:Ln(),shareholderFlg:Ln(),legalEntityName:Ln(),bankEmployeeCode:Ln(),partInBusiness:Ln(),addressRetail:jn("Выберите адрес банка"),addressMatch:Ln(),codeWord:(e=>zn((e=>"string"==typeof e&&e.length>=3&&e.length<=21&&Zn(e)))(e??On))("Необходимо ввести кодовое слово"),confirmationIncome:Ln(),deliveryDate:Ln("Укажите дату доставки"),addressCourier:Xn()};var ti;const ni=e=>{const t=(e=>Object.values(e.filter((e=>e)))?.map((e=>e.name)))(e.filter((e=>Boolean(e?.required))));return Object.fromEntries(t.map((e=>[e,ei?.[e||""]])).filter((([,e])=>e)))},ii=(e,t)=>{const{value:n,isDirty:i}=e,a=i?t(n):[];return{...e,errors:a,error:a[0]}},ai=(e,t,n=!1)=>n&&t?ii(e,t):e,li=[{text:"Торговый эквайринг",key:"trade"},{text:"СБП-эквайринг",key:"sbp"},{text:"Интернет-эквайринг",key:"internet"},{text:"Все виды эквайринга",key:"all"}],ri=d((({field:e,input:t})=>o(An,{label:"Вид эквайринга",placeholder:"Выберите эквайринг",options:li,...ai(e("acquiringType"),ei.acquiringType,t?.required)}))),si=(e="")=>Boolean("trade"===e||"all"===e),oi=e=>null!=e,ci=new Map,di=(e,t=ci)=>n=>{const i=ui(n),a=t.get(i);if(i&&oi(a))return a;const l=e(...n);return i&&oi(l)&&t.set(i,Promise.resolve(l)),l},mi=e=>Boolean(e?.every((e=>Array.isArray(e)?mi(e):!e||"string"==typeof e))),ui=e=>mi(e)?e.toString():"",hi=e=>Boolean(e&&Array.isArray(e)&&1===e.length&&"string"==typeof e[0]);function pi(e,t,{fallback:n,cache:l}={}){const s=r((()=>gi(e)),[e]),[o,c]=i(void 0),[d,m]=i(void 0);a((()=>{if(!s.some(oi))return;let e=!1;const n=(t,n)=>{e||(c(t),m(n))};return(async()=>{try{n(await di(t,l)(s))}catch(e){n(void 0,e)}})(),()=>{e=!0}}),[t,l,s]);const u=n&&hi(s)&&n[s[0]];return{data:!o&&u?u:o,error:d,mutate:()=>Promise.resolve(void 0)}}function gi(e){return Array.isArray(e)?e:e instanceof Function?gi(e()):[e]}const fi=`${qt}/branches`,xi=[];const yi=async e=>await Pt(e,{method:"GET"})||xi;function bi(e=!1){const{data:t}=pi(`${qt}${e?"/premiumBranchesByRegions":"/branchesByRegions"}`,Rt);return Array.isArray(t)?t:[]}const vi=d((({field:e,input:t,isPremium:n=!1})=>{const i=e("region"),l=i?.value?.key,r=i?.value?.text,s=n?bi(n)?.find((e=>e?.region===r))?.branches:function(e){const{data:t}=pi(e?`${fi}?regionCode=${e}`:null,yi);return t||xi}(l)?.filter((e=>e?.address));return a((()=>{""!==i?.value?.key&&e?.("addressBranch")?.onChange?.("")}),[i?.value]),o(An,{label:"Отделение",placeholder:"Выберите отделение",options:(s||[]).map((({address:e=""})=>({key:e,text:e}))),...ai(e("addressBranch"),ei.addressBranch,t?.required),isSearch:!0})})),Ni=d((({field:e,input:t})=>{const n="addressFact",i=e(n).value,{value:r}=e("addressMatch");a((()=>{r&&e("addressFact")?.onChange?.(e("addressRegistration").value)}),[r,e("addressRegistration").value]);const s=l((t=>{e?.(n)?.onChange?.({apartment:t?.data?.flat,city:t?.data?.city,district:t?.data?.area_with_type,fullAddress:t?.value,fiasCode:t?.data?.fias_id,house:t?.data?.house,locality:t?.data?.settlement_with_type,okatoRegionCode:t?.data?.okato,postcode:t?.data?.postal_code,region:t?.data?.region,regionCode:t?.data?.region_kladr_id?t?.data?.region_kladr_id.substring(0,2):"",street:t?.data?.house,qc:t?.data?.qc,qcComplete:t?.data?.qc_complete,qcHouse:t?.data?.qc_house})}),[]),c=l((t=>{e?.(n)?.onChange?.({...e(n).value,fullAddress:t})}),[]);return o(Sn,{label:"Адрес",disabled:r,...ai(e(n),ei[n],t?.required),value:i.fullAddress,onChange:c,...t,onDaDataChange:s})})),wi=(e,t)=>Boolean(e("esiaAccountTypeCd")?.value?.key)&&e(t).value,Ci=d((({field:e,input:t})=>{const n=t?.name||"addressRegistration",i=e(n).value,a=l((t=>{e?.(n)?.onChange?.({apartment:t?.data?.flat,city:t?.data?.city,district:t?.data?.area_with_type,fullAddress:t?.value,fiasCode:t?.data?.fias_id,house:t?.data?.house,locality:t?.data?.settlement_with_type,okatoRegionCode:t?.data?.okato,postcode:t?.data?.postal_code,region:t?.data?.region,regionCode:t?.data?.region_kladr_id?t?.data?.region_kladr_id.substring(0,2):"",street:t?.data?.house,qc:t?.data?.qc,qcComplete:t?.data?.qc_complete,qcHouse:t?.data?.qc_house})}),[]),r=l((t=>{e?.(n)?.onChange?.({...e(n).value,fullAddress:t})}),[]);return o(Sn,{disabled:t?.filledByEsia&&wi(e,n),label:"Адрес",...ai(e(n),ei[n],t?.required),value:i.fullAddress,onChange:r,...t,onDaDataChange:a})})),Si=d((({className:e,viewBox:t,fill:n="none",width:i,height:a,paths:l,...r})=>o("svg",{xmlns:"http://www.w3.org/2000/svg",className:e,viewBox:t,fill:n,width:i,height:a,children:l.map((({d:e,fill:t,...n},i)=>{const a={...r,...n};return o("path",{d:e,fill:t||"currentColor",stroke:a.stroke,strokeLinecap:a.strokeLinecap,strokeLinejoin:a.strokeLinejoin,strokeWidth:a.strokeWidth,strokeMiterlimit:a.strokeMiterlimit},i)}))}))),ki="appearance-none w-5 h-5 border-solid flex-none",Ii=[{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"}],Ti=d((({className:e,value:t,text:n,disabled:i,isRadio:a,onChange:r})=>{const s=l((e=>{i||(e.preventDefault(),r&&r(!t))}),[r,i,t]),d=a?o("div",{className:"absolute left-1 w-3 h-3 rounded-full bg-primary-main"}):o(Si,{paths:Ii,className:"absolute left-1 ml-px block",width:"11",height:"9",fill:"white",viewBox:"0 0 11 9"});return o("div",{className:e,children:c("label",{className:u("flex items-center relative group/box",Pi(i)),onClick:s,children:[o("div",{className:u(ki,"m-0",a?"rounded-full border-2":Di(t),!i&&t?"border-primary-main":"border-gray",i?"bg-main-disabled":"group-hover/box:border-primary-hover"),role:Ri(a),"aria-checked":Boolean(t),"aria-disabled":Boolean(i),"aria-label":n}),t?d:null,Bi(n)]})})})),Bi=e=>e?o("div",{className:"ml-s",children:o(_e,{size:"text-l",font:"font-light",children:e})}):null,Pi=(e=!1)=>e?"cursor-not-allowed":"cursor-pointer",Ri=(e=!1)=>e?"radio":"checkbox",Di=(e=!1)=>u("rounded border",{"bg-primary-main":e}),Mi=d((({className:e,text:t,value:n,key:i,disabled:a,error:l,onChange:r})=>c("div",{className:u("shrink-0",e),children:[o(Ti,{text:t,value:n,disabled:a,onChange:r},i),xn(l)]}))),_i=d((({field:e,input:t})=>o(Mi,{text:"Адрес фактического места жительства совпадает с адресом регистрации",...ai(e("addressMatch"),ei.addressMatch,t?.required)}))),Ai=d((({color:e="text-primary-main",position:t="absolute",blur:n=!0})=>o("div",{className:u("flex justify-center items-center h-full w-full z-50",t,{"backdrop-blur":n}),children:o("div",{className:u("inline-block h-28 w-28","animate-spin rounded-full","border-8 border-solid border-current","border-r-transparent",e),role:"status"})}))),Ei="/icons/MapMarkerClusterIcon.svg",zi="/icons/MapMarkerClusterYellowIcon.svg";function Fi({yandexMaps:e,map:t,points:n,isLoad:i}){if(i||!n)return;if(t.geoObjects.removeAll(),!n.length)return;const a=e.templateLayoutFactory.createClass('<div style="margin-top: -3px;">{{properties.geoObjects.length}}</div>'),l=Oi("offices",e,a);if(n.length&&n.every((e=>"type"in e))){const i=Oi("workplaces",e,a),r=Vi(n.filter((e=>"workplaces"===e.type)),"workplaces",e),s=Vi(n.filter((e=>"offices"===e.type)),"offices",e);l.add(s),i.add(r),t.geoObjects.add(i),t.geoObjects.add(l)}else{const i=Vi(n,"offices",e);l.add(i),t.geoObjects.add(l)}t.setBounds(e.util.bounds.fromPoints(n.map((e=>e.coords)))).then((()=>{t.getZoom()>10&&t.setZoom(10)}))}const Oi=(e,t,n)=>new t.Clusterer({clusterIcons:[{href:"offices"===e?Ei:zi,size:[78,84],offset:[-35,-50]}],clusterIconContentLayout:n,clusterHideIconOnBalloonOpen:!1,geoObjectHideIconOnBalloonOpen:!1}),Vi=(e,t,n)=>e.map((({coords:e,content:i})=>new n.Placemark(e,{balloonContentHeader:i?.header,balloonContentBody:i?.body,balloonContentFooter:i?.footer,hintContent:i?.hint},{iconLayout:"default#image",iconImageHref:"offices"===t?Ei:zi,iconImageSize:[78,84],iconImageOffset:[-35,-50]}))),Li={focus:"focus:border-primary-text focus:border",hover:"hover:bg-primary-hover",active:"active:bg-primary-active",font:"text-center font-sans"},ji={...Li,border:"border border-transparent rounded-md",position:"absolute flex items-center justify-center"},qi=(e,t,n)=>o("div",{className:`select-none cursor-pointer py-m w-12 bg-white ${Object.values(ji).join(" ")} ${n}`,onClick:()=>{t.geolocation.get({provider:"yandex",autoReverseGeocode:!0,mapStateAutoApply:!0}).then((function(t){e.current.geoObjects.add(t.geoObjects)}))},children:o(W,{name:"UserGeoLocationIcon",width:"20",height:"16"})}),$i=e=>globalThis[e];function Ui(e,t,n=!0){const[l,r]=i(void 0);return a((()=>{let i=!0;return((e,t)=>{const n=document.getElementById(t);if(n){const t=$i(e);return t?Promise.resolve(t):new Promise((t=>{n.addEventListener("load",(()=>{t($i(e))}))}))}return new Promise(((n,i)=>{const a=document.createElement("script");a.src=t,a.async=!0,a.id=t,a.addEventListener("load",(()=>{n($i(e))})),a.addEventListener("error",(e=>{i(e)})),document.head.appendChild(a)}))})(e,t).then((e=>{i&&r(e)})).catch((e=>{console.error(`Failed to initialize external namespace: ${e}`)})),()=>{if(i=!1,n){const e=document.getElementById(t);e&&document.head.removeChild(e),r(void 0)}}}),[e,t,n]),l}const Wi={...Li,border:"border-b border-b-2 border-gray last:border-0",position:"relative flex items-center justify-center"},Hi=d((({yandexMaps:e,direction:t="in"})=>{const n="in"===t?"PlusIcon":"MinusIcon";return o("div",{onClick:()=>{const n=e.current.getZoom(),i="in"===t?n+1:n-1;e.current.setZoom(i,{checkZoomRange:!0})},className:`${Object.values(Wi).join(" ")} bg-white select-none cursor-pointer w-12 h-12`,children:o(W,{name:n,width:"20",height:"16"})})})),Yi=[55.753995,37.614069],Ki=d((({points:e,className:t="",zoom:n=5,isLoad:i,selectedAddress:l})=>{const r=s(null),d=s(null),m=Ui("ymaps",`https://api-maps.yandex.ru/2.1/?apikey=${A.YANDEX_MAP_API_KEY||""}&lang=ru_RU`,!1);if(a((()=>{r.current?Fi({yandexMaps:m,map:r.current,points:e,isLoad:i}):m?.ready((()=>{r.current||(r.current=new m.Map(d.current,{center:Gi(e),zoom:n,controls:[],suppressMapOpenBlock:!0})),Fi({yandexMaps:m,map:r.current,points:e,isLoad:i})})),r.current&&l&&m?.geocode(l).then((e=>{const t=e.geoObjects.get(0).geometry.getCoordinates();r.current.setCenter(t),r.current.setZoom(18)}))}),[m,e,n,i,l]),!m)return null;const h="z-10";return c("div",{ref:d,className:u("relative","w-full",t),children:[i?o(Ai,{}):null,c("div",{className:u("absolute right-2 top-52 z-10 w-12 overflow-hidden border border-transparent rounded-md",h),children:[o(Hi,{yandexMaps:r}),o(Hi,{yandexMaps:r,direction:"out"})]}),qi(r,m,u("right-2 top-80",h))]})})),Gi=e=>{const t=[Ji(Xi(e,0)),Ji(Xi(e,1))];return t.every((e=>e))?t:Yi},Xi=(e,t)=>e.map((e=>e.coords?.[t])),Ji=e=>e.length&&e.reduce(((e,t)=>e+t))/e.length,Zi=async(e,t,n)=>{try{return(await Qi(e,t,n)).json()}catch(e){return console.error(e),null}};async function Qi(e,t,n){return globalThis?.fetch?.(`${qt}${e}`,{method:t,headers:{"Content-Type":"application/json",...ea()},credentials:"include",body:n?JSON.stringify(n):null})}const ea=()=>{const e=sessionStorage.getItem("accessToken");return e?{Authorization:`Bearer ${e}`}:null},ta=e=>Number(e.toString().replace(",",".")),na=d((({className:e="",isFoldButtonOnTop:t=!1,unfoldedByDefault:n=!1,renderFoldableSection:a,renderFoldButton:r})=>{const[s,o]=i(n),d=l((()=>{o((e=>!e))}),[]),m=a({isUnfolded:s,onToggle:d}),u=r?r({isUnfolded:s,onToggle:d}):null;return c("div",t?{className:e,role:"group",children:[u,m]}:{className:e,role:"group",children:[m,u]})}));const ia=d((({className:e="",isUnfolded:t,children:n})=>{const i=s(null),l=function(e,t){const n=s(null);return a((()=>{const t=n?.current;if(!t)return;const i=new ResizeObserver((n=>{e(t,n[0])}));return i.observe(t),()=>{i.disconnect()}}),[e,...t]),n}((e=>{i.current&&(i.current.style.maxHeight=t?`${e.scrollHeight}px`:"")}),[t]);return o("div",{ref:i,className:`transition-max-h duration-300 overflow-hidden ${i.current||!t?"max-h-0":""} `,children:o("div",{className:e,ref:l,children:n})})})),aa=d((({value:e,subText:t,children:n,isPhone:i,...a})=>{const l=(Array.isArray(e)?e:e?.split(",")??[]).filter(Boolean);return[l.length,n,t].every((e=>!e))?null:la({textItems:l,subText:t,children:n,isPhone:i,...a})})),la=({label:e,labelSize:t="text-m",textItems:n,subColor:i,subText:a,className:l,children:r,isPhone:s=!1})=>c("div",{className:u("flex gap-2xs flex-col h-full max-w-[300px]",l),children:[e?o(_e,{color:"text-secondary-text",font:"font-light",size:t,children:e}):null,r||ra(n,s),a?o(_e,{color:i,size:"text-m",children:a}):null]}),ra=(e,t)=>e.filter(Boolean).map(((e,n)=>o(_e,{size:"text-l",children:t?o("a",{href:`tel:${sa(e)}`,children:e.trim()}):e.trim()},String(n)))),sa=e=>e.replace(/\D/g,""),oa=d((({className:e,children:t})=>o("div",{className:u("flex flex-col sm:flex-row sm:border-t sm:border-solid sm:border-main-divider py-xl gap-x-6xl gap-y-xl",e),children:t}))),ca=e=>{const t=ma(e);return o(aa,{label:"Режим работы",value:t,className:"max-w-none"})},da=({workTime:e="",lunchHour:t="",daysOff:n=""},i=!1)=>e?[`${i?"Суббота":"Будние дни"}: ${e}`,t?`перерыв: ${t}`:"",n?`не работает: ${n}`:""].filter(Boolean).join("; "):"",ma=e=>{const t=e.find((e=>"workingSaturday"!==e.key&&Boolean(e.status)&&Boolean(e.workTime))),n=e.find((e=>"workingSaturday"===e.key&&Boolean(e.status)&&Boolean(e.workTime))),i=e.filter((e=>!e.status)).map((e=>e.short?.toLowerCase())).join(", ");return[da({workTime:t?.workTime,lunchHour:t?.lunchHour,daysOff:n?"":i}),da({workTime:n?.workTime,lunchHour:n?.lunchHour,daysOff:i},!0)].filter(Boolean)},ua=[["workingMonday","Пн","Понедельник"],["workingTuesday","Вт","Вторник"],["workingWednesday","Ср","Среда"],["workingThursday","Чт","Четверг"],["workingFriday","Пт","Пятница"],["workingSaturday","Сб","Суббота"],["workingSunday","Вс","Воскресенье"]],ha=e=>ua.map((([t,n,i])=>({key:t,title:i,short:n,status:Boolean(e?.[t]),get workTime(){return"workingSaturday"===t?e?.workTimeSaturday:e?.workTime},get lunchHour(){return"workingSaturday"===t?e?.lunchHourSaturday:e?.lunchHour},get hasLunch(){return/\d+/.test(this.lunchHour??"")}}))),pa=e=>{if(!e)return null;const t=ga(e);return c(oa,{className:"border-none",children:[o(aa,{label:"Для юридических лиц",labelSize:"text-l",children:o("div",{className:"flex gap-1",children:t.map(fa)})}),o(aa,{label:"Режим работы",className:"max-w-none",children:o(_e,{children:e})})]})},ga=e=>{const t=ua.map((([,e])=>({short:e,status:!0}))),n=e.split("/")??[],i=n[n.length-1]?.toLowerCase();return i?.includes("выходной")?t.map((e=>({...e,status:!i?.includes(e.short.toLowerCase())}))):t},fa=({short:e,status:t},n)=>o("div",{className:u("w-9 h-9 rounded-md flex items-center justify-center",t?"bg-green-more-light text-green-dark":"bg-error/30 text-error"),children:o(_e,{size:"text-xs",children:e})},String(n)),xa=({currency:e,buyExchangeRate:t,saleExchangeRate:n},i)=>c("div",{className:"flex gap-lg h-full",children:[e?.currency?o(aa,{label:"Валюта",value:e.currency}):null,t?o(aa,{label:"Купить",value:String(t)}):null,n?o(aa,{label:"Продать",value:String(n)}):null]},String(i)),ya={yellow:{border:"border-yellow-light",text:"text-yellow"},green:{border:"border-green-more-light",text:"text-green-dark"},gray:{border:"border-gray",text:"text-secondary-text"},red:{border:"border-error/30",text:"text-error"}},ba=d((({className:e,children:t,color:n="gray"})=>c("div",{className:u("sm:p-s sm:border sm:border-green rounded-md flex items-center h-fit",ya[n].border,e),children:[o("div",{className:"block pr-m sm:pr-0 sm:hidden",children:o(ne,{image:{icon:"SmallClockIcon"},width:"24",height:"24"})}),o(_e,{size:"text-m",color:ya[n].text,children:t})]}))),va=(new Date).getDay(),Na=e=>{const[t]=e?.slice(va-1)??[];if(!t)return null;const{lunchHour:n,status:i,workTime:a,hasLunch:l}=t;return i?c("div",{className:"flex gap-s items-start whitespace-nowrap",children:[a?o(ba,{color:"green",children:a}):null,n&&l?o(ba,{color:"yellow",children:`перерыв: ${n}`}):null]}):o(ba,{color:"red",children:"Выходной"})},wa=({lunchHour:e,hasLunch:t=!1,status:n=!1})=>n?e&&t?`Перерыв ${e}`:e:"Не работает",Ca=({title:e,status:t,workTime:n,lunchHour:i,hasLunch:a},l)=>o(aa,{label:e,value:t&&n?n:"",subText:wa({lunchHour:i,hasLunch:a,status:t}),subColor:!t||a?"text-error":"text-green-dark"},String(l)),Sa=["ArrowDownIcon","ArrowUpIcon"],ka=["Подробнее","Скрыть"],Ia=({isUnfolded:e,onToggle:t})=>c("button",{className:"w-full py-2xl cursor-pointer text-primary-main flex items-center border-b border-solid border-main-divider",onClick:t,type:"button",children:[o("div",{className:"pr-m",children:ka[Number(e)]}),o(W,{className:"text-primary-text",name:Sa[Number(e)],width:"16",height:"16"})]}),Ta=e=>`<p><b>Режим обслуживания физ.лиц:<br/></b>${e}</p>`,Ba=e=>`<p><b>Режим обслуживания физ. и юр. лиц:<br/></b> ${e}</p>`,Pa=(e,t)=>`<p><b>Режим обслуживания физ.лиц:<br/></b>${e}</p> <p><b>Режим обслуживания юр.лиц:<br/></b>${t}</p>`,Ra=({name:e,address:t,phone:n,fax:i,phoneBusiness:a,phoneNatural:l,phoneCallCentre:r,phoneCurrencyControl:s,workSchedule:d,exchangeRate:m},u)=>{if(!d)return null;const h=ha(d);return c("div",{className:"bg-white col-span-12 p-3xl sm:border-green sm:border",children:[c("div",{className:"sm:flex sm:justify-between",children:[c("div",{children:[o(_e,{size:"text-h4",children:e}),t?c("div",{className:"flex pb-xl pt-xs gap-2xs",children:[o(W,{name:"GeolocationIcon",width:"24",height:"24"}),o(_e,{size:"text-l",children:t})]}):null]}),Na(h)]}),o("div",{className:"hidden sm:block",children:Da({phone:n,fax:i,phoneBusiness:a,phoneNatural:l,phoneCallCentre:r,phoneCurrencyControl:s,workSchedule:d,exchangeRate:m})}),o(na,{className:"block sm:hidden",renderFoldableSection:({isUnfolded:e})=>o(ia,{isUnfolded:e,children:Da({phone:n,fax:i,phoneBusiness:a,phoneNatural:l,phoneCallCentre:r,phoneCurrencyControl:s,workSchedule:d,exchangeRate:m})}),renderFoldButton:({isUnfolded:e,onToggle:t})=>Ia({isUnfolded:e,onToggle:t})})]},String(u))},Da=({phone:e,fax:t,phoneBusiness:n,phoneNatural:i,phoneCallCentre:a,phoneCurrencyControl:l,workSchedule:r,exchangeRate:s})=>{const d=ha(r),m=r?.businessScheduleVisibleTag?"Для физических лиц":"Для физических и юридических лиц";return c("div",{children:[c(oa,{className:"flex-wrap border-b border-solid border-main-divider",children:[o(aa,{label:"Факс",value:t,isPhone:!0}),o(aa,{label:"Телефон филиала",value:e,isPhone:!0}),o(aa,{label:"Для обращений юридических лиц",value:n,isPhone:!0}),o(aa,{label:"Обслуживание физических лиц",value:i,isPhone:!0}),o(aa,{label:"Для консультаций по валютному контролю",value:l,isPhone:!0}),o(aa,{label:"Контакт-центр",value:a,isPhone:!0})]}),r?.isMatchesPattern?o(oa,{children:o(aa,{label:m,labelSize:"text-l",className:"w-full max-w-none",children:o("div",{className:"flex flex-wrap gap-xs sm:justify-between pt-xs",children:d?.map(Ca)})})}):c(oa,{children:[o(aa,{label:m,labelSize:"text-l",children:o("div",{className:"flex gap-1",children:d?.map(fa)})}),ca(d)]}),r?.businessScheduleVisibleTag?pa(r?.businessScheduleDescription):null,s?.currencies?.length?o(oa,{className:"flex-wrap",children:s?.currencies?.map(xa)}):null]})},Ma=({name:e="",address:t="",workSchedule:n})=>{const i=(a=e)?`${a?.charAt(0)?.toUpperCase()}${a?.slice(1)}`:"";var a;const l=`${t} ${(e=>{const t=ha(e),n=e?ma(t):"",i=e?e.businessScheduleDescription:"";return e?e.businessScheduleVisibleTag?e.businessScheduleVisibleTag&&null===e.businessScheduleDescription?Ta(n):Pa(n,i):Ba(n):""})(n)}`;return{header:i,body:l}},_a=!Boolean("object"==typeof globalThis.process&&globalThis.process&&globalThis.process.version),Aa=d((({children:e})=>_a?e:null)),Ea={workingSaturday:!1,premiumService:!1,privateBanking:!1,remoteWorkplace:!1,serviceDisabledPeople:!1,sellingCoins:!1,buyingCoins:!1,bullionOperations:!1,preciousMetalsOperations:!1,transferringDataToBiometricSystem:!1},za={safeBoxCaseVolumes:"Аренда индивидуальных сейфовых ячеек",workingSaturday:"Открыты по субботам",terminalTypeAtms:"Банкоматы",terminalTypeTerm:"Терминалы",workAllTime:"Круглосуточно",billAcceptorEnable:"Прием наличных",premiumService:"Премиальное обслуживание",privateBanking:"Услуга Private banking",sellingCoins:"Продажа монет из драгоценных металлов",buyingCoins:"Покупка монет из драгоценных металлов",bullionOperations:"Операции со слитками",preciousMetalsOperations:"Операции с драгоценными металлами",transferringDataToBiometricSystem:"Передача фото и голоса в Единую биометрическую систему",locationDisabledPeople:"Для маломобильных",designDisabledPeople:"Для слабовидящих",remoteWorkplace:"Удаленное рабочее место",serviceDisabledPeople:"Для маломобильных граждан"},Fa={workingSaturday:e=>Boolean("workSchedule"in e&&e.workSchedule?.workingSaturday),premiumService:e=>Boolean("premiumService"in e&&e.premiumService),privateBanking:e=>Boolean("privateBanking"in e&&e.privateBanking),remoteWorkplace:e=>Boolean("workScheduleDescription"in e),serviceDisabledPeople:e=>Boolean("serviceDisabledPeople"in e&&e.serviceDisabledPeople),sellingCoins:e=>Boolean("sellingCoins"in e&&e.sellingCoins),buyingCoins:e=>Boolean("buyingCoins"in e&&e.buyingCoins),bullionOperations:e=>Boolean("bullionOperations"in e&&e.bullionOperations),preciousMetalsOperations:e=>Boolean("preciousMetalsOperations"in e&&e.preciousMetalsOperations),transferringDataToBiometricSystem:e=>Boolean("transferringDataToBiometricSystem"in e&&e.transferringDataToBiometricSystem)};function Oa({disabled:e,onClick:t}){return n=>{!e&&t&&t(n)}}const Va={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"},La={primary:u("group-data-secondary:text-primary-main group-data-secondary:bg-white","group-data-secondary:hover:text-white group-data-secondary:hover:bg-primary-hover","group-data-secondary:active:bg-primary-active"),secondary:u("group-data-secondary:text-white group-data-secondary:bg-white/20","group-data-secondary:hover:bg-primary-hover","group-data-secondary:active:bg-primary-active")},ja=d((({children:e,...t})=>{const n=e=>({...e,onClick:ce(Oa(e))}),{className:i,version:a="primary",active:l,disabled:r,type:s="button",rounded:c=!0,role:d,onClick:m}=n(t);return o("button",{className:u("font-sans px-9 py-4","flex justify-center items-center gap-xs",{"text-white bg-primary-active":l,"bg-main-gray text-main-disabled cursor-not-allowed":r,"rounded-md":c},l||r?"":u(Va[a],La[a]),i),type:s,role:d,onClick:m,children:e})})),qa=(e,t)=>e&&"underlined"!==t?"primary":"secondary",$a=(e,t,n)=>{const i=qa("all"===t),a=qa("business"===t),l=(e,t,i)=>{const a=e.currentTarget===e.target&&"business"===t?r(i):i;return n(t),a},r=e=>e.filter((e=>e.workSchedule&&e.workSchedule.businessScheduleVisibleTag&&!e.workSchedule.businessScheduleDescription));return c("div",{className:"flex gap-lg flex-col sm:flex-row pb-lg",children:[o(ja,{"data-id":"all",onClick:t=>l(t,"all",e),version:i,children:"Для физических лиц"}),o(ja,{"data-id":"business",onClick:t=>l(t,"business",e),version:a,children:"Для юридических лиц"})]})},Ua=({__html:e,list:t,richVersion:n})=>e||t?.length?c("div",{className:"mb-2xl border-b sm:border border-main-divider sm:rounded-md",children:[e?o("div",{className:"mb-2xl",children:o(De,{__html:e,richVersion:n})}):null,t?.length?o("div",{className:"flex flex-col sm:flex-row gap-2xl sm:flex-wrap pb-2xl sm:pb-xl",children:t.map(((e,t)=>c("div",{className:"flex gap-xs items-center",children:[e?.image?o(ne,{image:e.image}):null,e?.text?o(_e,{size:"text-m",font:"font-light",children:e.text}):null]},String(t))))}):null]}):null,Wa="flex flex-col sm:flex-row sm:flex-wrap gap-3xl pb-2xl",Ha=({filters:e,field:{field:t,reset:n},onlyOffice:i,labels:a})=>{const l=i?5:6,r=(e||[]).map((e=>o(Ti,{text:a[e],...t(e)},e))),[s,d]=l>0?[r.slice(0,l),r.slice(l)]:[r,[]];return o("div",{children:e?.length?o("div",{children:o(na,{renderFoldableSection:({isUnfolded:e})=>c("div",{children:[o("div",{className:Wa,children:s}),o(ia,{className:Wa,isUnfolded:e,children:d})]}),renderFoldButton:Ya(n,i)})}):null})},Ya=(e,t=!1)=>({isUnfolded:n,onToggle:i})=>c("div",{className:"flex space-x-lg",children:[t?o(ve,{version:"transparent",className:"text-secondary-text [&>*]:p-0",appendRight:o(W,{name:["ArrowDownIcon","ArrowUpIcon"][Number(n)],width:"16",height:"16"}),text:["Больше фильтров","Меньше фильтров"][Number(n)],onClick:i}):null,o(ve,{version:"transparent",className:"text-secondary-text [&>*]:p-0",onClick:e,children:Ka()})]}),Ka=()=>c("div",{className:"flex items-center",children:["Очистить фильтр",o(W,{name:"CloseIcon",width:"16",height:"16",className:"ml-2xs"})]}),Ga=(e,t)=>o("div",{className:"flex flex-col sm:flex-row gap-xs mb-2xl",children:c(w,{headingType:"h3",children:[o("span",{suppressHydrationWarning:!0,children:e}),t?o(_e,{size:"text-h2",color:"text-secondary-text",children:o("span",{suppressHydrationWarning:!0,children:` (${t})`})}):null]})}),Xa=()=>{},Ja=e=>"all"===e?"block":"hidden",Za=d((({className:e,data:t=[],isLoad:n,remoteWorkplaces:a=[],renderCard:l=Xa,renderRemoteWorkplaceCard:r=Xa,getBalloon:s=Xa,getBalloonRemoteWorkplaces:d=Xa,descriptionData:m,title:h})=>{const p=h?.includes("Офис"),[g,{field:f,reset:x}]=tn(Ea),{filteredItems:y,points:b,filteredRemoteWorkplaces:v,lengthItems:N}=nl({data:t,remoteWorkplaces:a,filtrationState:g,getBalloon:s,getBalloonRemoteWorkplaces:d}),[w,C]=i("all"),S={filters:el([...t,...a]),field:{field:f,reset:x},onlyOffice:p,labels:za};return c("div",{className:u("space-y-1",e),children:[c("div",{className:"bg-white",children:[c("div",{className:"p-3xl pb-0",children:[Ga(h,N),m?Ua(m):null,p&&$a(t,w,C),o("div",{className:u("pb-3xl",Ja(w)),children:Ha(S)})]}),o("div",{className:"h-[600px]",children:o(Aa,{children:o(Ki,{points:b,isLoad:n,className:"h-full"})})})]}),c(Aa,{children:[y.map(l),v.map(r)]})]})})),Qa=(e,t)=>{const n=Object.keys(t).filter((e=>t[e]));return e.filter((e=>n.every((t=>Fa[t](e)))))},el=e=>Object.keys(Ea).filter((t=>e.filter((e=>Fa[t](e))).length)),tl=()=>{},nl=({data:e,remoteWorkplaces:t=[],filtrationState:n={},getBalloon:i=tl,getBalloonRemoteWorkplaces:a=tl})=>{const[l,s,o,c]=r((()=>{const l=Qa(e,n),r=Qa(t,n),s=[...l.map((e=>({type:"offices",coords:[Number(e.gpsLatitude),Number(e.gpsLongitude)]?.filter(Boolean),content:i(e)}))),...r.map((e=>({type:"workplaces",coords:[Number(e.gpsLatitude),Number(e.gpsLongitude)]?.filter(Boolean),content:a({address:e.address,workScheduleDescription:e.workScheduleDescription})})))].filter((e=>e.coords&&2===e.coords.length));return[l,s,r,l.length+r?.length]}),[e,t,n,i,a]);return{filteredItems:l,points:s,filteredRemoteWorkplaces:o,lengthItems:c}},il=e=>{const{data:t,error:n}=pi(`/api/v1/dictionary?dictionaryType=${encodeURIComponent(e)}`,al);return t&&"errorMessage"in t?{error:n}:{data:t,error:n}},al=async e=>await Pt(e,{method:"POST"})||[],ll=d((({field:e,input:t})=>{const[n,l]=i([]),{data:r}=il("REGION_RF"),s=e("regionRetail")?.value||{},d=e("addressRetail");a((()=>{(async()=>{const e=await(async e=>{const t=await Zi("/public-data/regionOffices","POST",{regionRfCd:{key:e},cashCardFlg:!0});return t?.offices?.map((e=>({...e,gpsLatitude:ta(e.latitude??Yi[0]),gpsLongitude:ta(e.longitude??Yi[1])})))||[]})(s?.key??"");l(e)})(),s?.key&&e?.("addressRetail")?.onChange?.("")}),[s.key]);const{points:m}=nl({data:n,filtrationState:{},getBalloon:Ma}),u=Boolean(s?.key);return c("div",{children:[o(An,{label:"Адрес отделения",placeholder:"Выберите отделение",options:n.map((({id:e,address:t=""})=>({key:e?.toString()||"",text:t}))),...ai(e("addressRetail"),ei.addressRetail,t?.required&&u),isSearch:!0}),o("div",{className:"h-[600px]",children:o(Aa,{children:o(Ki,{points:m,isLoad:!r,className:"h-full",selectedAddress:d?.value?.text})})})]})})),rl=(e,{normalize:t,format:n})=>{const{value:a,onFocus:r,onBlur:s,onChange:o}=e,[c,d]=i(!1),m=l((e=>{d(!0),r&&r(e)}),[]),u=l((()=>{d(!1),o&&o(t(a)),s&&s()}),[o,a]);return{value:c||!n?a:n(a),onFocus:m,onBlur:u}},sl=(e,t,n)=>Math.max(t,Math.min(e,n));function ol(e){const t=(e||"").replace(/\D/g,""),n=parseInt(t,10);return Number.isNaN(n)?0:n}function cl({list:e=[],min:t,max:n,step:i,value:a=e[0]||t,disabled:l,onChange:r}){const s=e.length?e.indexOf(a):a,d={backgroundSize:`${(100*(s>t?s-t:0)/(n-t)).toFixed(2)}% 100%`};return c("div",{children:[e.length?o("div",{className:"absolute w-full flex justify-between -bottom-[3px] px-m",children:e.map(((e,t)=>o("div",{className:u("w-2 h-2 rounded-full",s<=t||l?"bg-gray":"bg-primary-main")},String(t))))}):null,o("div",{className:"absolute inset-x-0 -bottom-1 px-m leading-[18px]",children:o("input",{className:"box-border w-full m-0 cursor-pointer slider relative z-10",style:d,type:"range",min:t,max:n,step:i,value:s,disabled:l,onChange:t=>{const n=ol(t.target?.value),i=e.length?e[n]:n;r&&r(i||0)}})})]})}const dl=1,ml=100,ul=d((e=>{const{className:t,title:n,items:i=[],list:a=[],min:r=(a.length?0:dl),max:s=(a.length?a.length-1:ml),step:d=1,value:m=a[0]||r,disabled:h=!1,onChange:p}=e,g=rl(e,{normalize:(e=0)=>a.length?hl(a)(e):sl(e,r,s),format:We()}),f=l((e=>{p&&p(ol(e.target?.value))}),[p]);return c("div",{className:t,children:[c("label",{className:"block relative",children:[n?o(_e,{size:"text-m",font:"font-light",color:"text-primary-text",children:n}):null,o("input",{className:u("text-h3 w-full h-14","pl-m mt-xs box-border","text-primary-text",un,"disabled:border-gray disabled:bg-main-divider"),disabled:h,onChange:f,...g}),cl({list:a,min:r,max:s,step:d,disabled:h,value:m,onChange:p})]}),pl(i)]})})),hl=e=>t=>e.reduce(((e,n)=>Math.abs(n-t)<Math.abs(e-t)?n:e)),pl=e=>o("div",{className:"flex justify-between my-xs",children:e.map(((e,t)=>o(_e,{size:"text-s",font:"font-light",color:"text-secondary-text",children:e},String(t))))}),gl=["От 1 000 ₽","До 1 000 000 000 ₽"],fl=d((({field:e})=>o(ul,{title:"Сумма, ₽",items:gl,min:1e3,max:1e9,...e("amount")}))),xl=zt((({field:e,source:t,label:n,fieldName:i,input:a,placeholder:l="Выберите из списка",isSearch:r=!1})=>{const s=t&&t?.map((e=>({key:e.key||"",text:e.value})))||[];return o(An,{placeholder:l,label:n,options:s,isSearch:r,...ai(e(i),ei[i],a?.required)})})),yl=d((({field:e,input:t})=>{const{data:n}=il("EMPLOYEES_NUMBER");return o(xl,{field:e,source:n,label:"Количество работающих в организации",fieldName:"amountWorkers",input:t})})),bl=d((({field:e,input:t})=>o(Sn,{label:"Годовая выручка, ₽",...ai(e("annualRevenue"),ei.annualRevenue,t?.required)}))),vl=d((({field:e,input:t})=>o(Mi,{text:"Наличие военного билета",...ai(e("armyIdFlg"),ei.armyIdFlg,t?.required)}))),Nl=d((({field:e,input:t})=>o(Sn,{label:"Код представителя Банка",placeholder:"Введите код",isInteger:!0,...ai(e("bankEmployeeCode"),ei.bankEmployeeCode,t?.required),...t}))),wl=d((({field:e})=>o(Sn,{label:"ФИО или должность обслуживавшего Вас сотрудника Банка",...e("bankEmpolee")}))),Cl=d((({field:e,input:t})=>o(Mi,{text:"В отношении меня ведётся производство по делу о банкротстве",...ai(e("bankruptcyFlg"),ei.bankruptcyFlg,t?.required)}))),Sl=({today:e,firstDayOfWeek:t,totalDays:n,currentMonth:i,currentYear:a,min:l,max:r,onDateClick:s})=>{const c=[];let d=1;for(let m=0;m<6;m++){const u=[];for(let c=0;c<7;c++)if(0===m&&c<t)u.push(o("td",{},`empty-${c}`));else if(d>n)u.push(o("td",{},`empty-${c}`));else{const t=new Date(a,i,d),n=kl(t,e),c=Il(t,l,r);u.push(o("td",{children:o("div",{className:Tl(n,c),onClick:()=>!c&&s(t),children:d})},`day-${d}`)),d++}c.push(o("tr",{children:u},`row-${m}`))}return c},kl=(e,t)=>t&&e.toDateString()===t.toDateString(),Il=(e,t,n)=>t&&e.getTime()<t.getTime()||n&&e.getTime()>n.getTime(),Tl=(e=!1,t=!1)=>u("p-s text-center rounded-md border",{"border-transparent hover:bg-gray":!e},t?"text-gray hover:bg-transparent":"cursor-pointer"),Bl=["Пн","Вт","Ср","Чт","Пт","Сб","Вс"],Pl=d((({today:e,currentMonth:t,currentYear:n,min:i,max:a,onDateSelect:s=mn,setValue:d=mn})=>{const m=l((e=>{s(e),d(!1)}),[]),{firstDayOfWeek:u,totalDays:h}=r((()=>({firstDayOfWeek:new Date(n,t,1).getDay()-1,totalDays:new Date(n,t+1,0).getDate()})),[n,t]);return c("table",{className:"mx-auto",children:[o("thead",{className:"text-gray font-light",children:o("tr",{children:Bl.map(((e,t)=>o("th",{className:"p-s",children:e},String(t))))})}),o("tbody",{children:Sl({firstDayOfWeek:u,today:e,totalDays:h,currentYear:n,currentMonth:t,min:i,max:a,onDateClick:m})})]})})),Rl=["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"];function Dl(e,t){const n=e.replace(/\D/g,"");if(""===n||e?.length===t.length)return e;const i=[...t],a=i.findIndex(Ml),l=i.map(((e,t)=>Al(e)?i.slice(0,t).filter(Al).length:-1)),r=i.map(((e,t)=>_l(e)?e:n.charAt(l[t])||e)),s=l.indexOf(n.length-1)+1;return r.slice(0,Math.max(a,s)).join("")}const Ml=e=>"_"===e,_l=e=>/\d/.test(e),Al=e=>Ml(e)||_l(e),El=1940,zl={name:"CalendarIcon",iconVersion:"black",width:"24",height:"24"},Fl=d((({setSelectedMonth:e,setSelectedYear:t,className:n,value:l,disabled:r,onChange:d,onClick:m})=>{const h=s(null),[p,g]=i(l||"");return a((()=>{g(l||"")}),[l]),c("div",{onClick:()=>{null!==h.current&&h.current.focus(),m?.()},className:u("relative",n),children:[o("input",{ref:h,className:"h-full w-full px-m text-l text-black focus-visible:outline-none",value:p,type:"text",onChange:e=>{const t=e.target?.value;"string"==typeof t&&t?.length<11&&g(Dl(t,"__.__.____"))},onBlur:()=>{if(Ol(p)){const[n,i,a]=p.split(".");d?.(new Date(Number(a),Number(i)-1,Number(n))),e(Number(i)-1),t(Number(a))}else g(l||"")},disabled:r}),r?null:o(W,{className:"mr-s",...zl})]})})),Ol=e=>{const[t,n,i]=e.split(".");if((e=>Number(e)>=El&&Number(e)<=(new Date).getFullYear())(i)&&(e=>Number(e)>0&&Number(e)<13)(n)){const e=new Date(Number(i),Number(n)-1,1);let a=0;for(;e.getMonth()===Number(n)-1;)e.setDate(e.getDate()+1),a++;if(Number(t)>0&&Number(t)<=a)return!0}return!1},Vl=({handleChangeVisibleCalendar:e,value:t,valid:n,onChange:i,setSelectedMonth:a,setSelectedYear:l,disabled:r=!1})=>o(Fl,{onChange:i,disabled:r,onClick:e,value:t&&Lt(t),setSelectedMonth:a,setSelectedYear:l,className:u("flex justify-between items-center h-14 border rounded-md cursor-pointer hover:border-black active:border-black focus:border-black",n?"border-gray":"border-error")}),Ll=Rl.map((e=>({key:e}))),jl=Array.from({length:(new Date).getFullYear()-El+1},((e,t)=>El+t)).reverse().map((e=>({key:String(e)}))),ql=(e,t)=>{const n=new Date(e,t,1);let i=0;for(;n.getMonth()===t;)i++,n.setDate(n.getDate()+1);return i},$l=({maxDateOfMonth:e,selectedYear:t,selectedMonth:n,value:i,onChange:a})=>{i&&a?.(new Date(t,n,Math.min(e,i.getDate())))},Ul={name:"ArrowUpIcon",iconVersion:"black",width:"24",height:"24"},Wl={className:"min-w-32",iconVersion:"black",isBorder:!1},Hl=d((({className:e="",label:t="",value:n,valid:r=!0,minDate:s,maxDate:d,disabled:m,onChange:h})=>{const[p,{setValue:g}]=sn(!1),[f,x]=i(n?.getMonth()||(new Date).getMonth()),[y,b]=i(n?.getFullYear()||(new Date).getFullYear()),{handlePrevMonth:v,handleNextMonth:N,handleSelectMonth:w,handleSelectYear:C,monthsOptions:S,yearsOptions:k,handleChangeVisibleCalendar:I,ref:T}=(({onShowCalendar:e,showCalendar:t,selectedMonth:n,onMonthSelect:i,onYearSelect:a,selectedYear:r,onChange:s,value:o})=>{const c=cn(l((()=>t&&e(!1)),[t]));return{handleChangeVisibleCalendar:l((()=>e(!t)),[t]),handleNextMonth:l((()=>{n+1<=11?i(n+1):(i(0),a(r+1))}),[n]),handlePrevMonth:l((()=>{n-1>=0?i(n-1):(i(11),a(r-1))}),[n]),handleSelectMonth:l((({key:e})=>{i(Rl.indexOf(e));const t=ql(r,Rl.indexOf(e));$l({maxDateOfMonth:t,selectedYear:r,selectedMonth:Rl.indexOf(e),value:o,onChange:s})}),[o]),handleSelectYear:l((({key:e})=>{a(Number(e)),o&&s?.(new Date(Number(e),n,o?.getDate()))}),[o]),monthsOptions:Ll,yearsOptions:jl,ref:c}})({onYearSelect:b,onMonthSelect:x,onShowCalendar:g,selectedYear:y,selectedMonth:f,showCalendar:p,onChange:h,value:n}),B=((e,t)=>{const[n,l]=i(!1);return a((()=>{const n=()=>{if(e?.current){const{top:n}=e.current.getBoundingClientRect();l(n>t)}};return n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)}),[e]),n})(T,370);return c("div",{className:u("space-y-xs",e),ref:T,children:[hn(t),c("div",{className:"relative",children:[Vl({handleChangeVisibleCalendar:I,value:n,valid:r,onChange:h,disabled:m,setSelectedMonth:x,setSelectedYear:b}),p&&!m?c("div",{className:u("absolute bg-white z-20 select-none",{"bottom-full":B}),children:[c("div",{className:"flex gap-s",children:[o("div",{className:"my-auto",onClick:v,children:o(W,{...Ul,className:"-rotate-90 cursor-pointer"})}),o(Rn,{onChange:w,value:{key:Rl[f]},options:S,...Wl}),o(Rn,{onChange:C,value:{key:String(y)},options:k,...Wl}),o("div",{className:"my-auto",onClick:N,children:o(W,{...Ul,className:"rotate-90 cursor-pointer"})})]}),o(Pl,{today:n,currentMonth:f,currentYear:y,onDateSelect:h,min:s,max:d,setValue:g})]}):null]})]})})),Yl=d((({className:e,label:t,error:n,errors:i,...a})=>c("div",{className:u("shrink-0 w-full",e),children:[o(Hl,{label:dn({label:t,errors:i}),valid:Boolean(!n),...a}),xn(n)]}))),Kl=d((({field:e,input:t})=>o(Yl,{label:"Дата начала работы на текущем месте",...ai(e("beginDate"),ei.beginDate,t?.required),...t}))),Gl=d((({field:e,input:t})=>o(Yl,{label:"Дата рождения",...ai(e("birthday"),ei.birthday,t?.required)}))),Xl=d((({field:e,input:t})=>o(Sn,{label:"Место рождения",...ai(e("birthPlace"),ei.birthPlace,t?.required),...t,disabled:t?.filledByEsia&&wi(e,"birthPlace")}))),Jl=d((({field:e,input:t})=>{const[n,l]=i([]),r=e("paymentSystem").value;return a((()=>{(async()=>{const e=await(async e=>{const t=await Qi("/dictionaryFiltered","POST",{type:"CARD_TYPE",presets:{paymentSystemType:e,creditProgramId:13}});return await(t?.json())})(r);l(e)})()}),[r]),o(xl,{field:e,source:n,label:"Категория карты",fieldName:"cardCategory",input:t})})),Zl=d((({field:e,input:t})=>o(Sn,{label:"Количество детей до 18 лет",placeholder:"Введите значение",isInteger:!0,...ai(e("children"),ei.children,t?.required),...t}))),Ql=d((({field:e,input:t})=>o(Sn,{label:"Кодовое слово",...ai(e("codeWord"),ei.codeWord,t?.required),...t}))),er=d((({field:e,input:t})=>o(Sn,{label:"Количество объектов инкассации",isInteger:!0,...ai(e("collectionCount"),ei.collectionCount,t?.required)}))),tr=d((({field:e,input:t})=>o(Sn,{className:"col-span-2",...ai(e("comment"),ei.comment,t?.required),placeholder:"Ваше сообщение",isTextarea:!0}))),nr=d((({field:e,input:t})=>{const{data:n}=il("INCOME_CERT_UNITED");return o(xl,{field:e,source:n,label:"Способ подтверждения дохода",fieldName:"confirmationIncome",input:t})})),ir=d((({field:e,input:t})=>{const{data:n}=il("MILITARY_STATUS");return o(xl,{field:e,source:n,label:"Статус военнообязанного",fieldName:"conscription",input:t})})),ar={processPersonalDataFlg:{text:"Согласие на обработку персональных данных",docId:4},consentInformFlg:{text:"Согласие на информирование о продуктах и услугах Банка",docId:14},consentProviderFlg:{text:"Согласие об использовании простой электронной подписи",docId:5},consentOthersFlg:{text:"Прочие согласия",docId:1},consentPfrFlg:{text:"Согласие на запрос в ПФР",docId:3},consentToReceiveMaterials:{text:"Согласен на получение информационных и аналитических материалов по электронной почте"}},lr=async(e,t=!1)=>{const n=await(async(e,t=!1)=>{const n=await Qi(`/feedback/file?id=${encodeURIComponent(e)}&convertToPngFlg=${t}`,"GET");return n?await n.blob():new Blob})(e,t);return URL.createObjectURL(n)},rr=d((({className:e,onClose:t})=>o("button",{className:u("flex justify-center items-center w-12 h-12 p-2xs bg-transparent border-none",e),onClick:t,title:"Закрыть",type:"button",children:o(W,{name:"CloseIcon",width:"20",height:"20",iconVersion:"gray"})}))),sr=d((({className:e,head:t,children:n,onClose:i,onClick:a})=>{const{close:r}=ue(),s=l((()=>{r(),i&&i()}),[i]);return c("div",{onClick:a,className:u("relative min-h-full bg-white pt-0 p-lg",e),role:"dialog",children:[c("div",{className:"sticky py-xl top-0 bg-white z-10",children:[o(rr,{className:"absolute top-0 right-0",onClose:s}),o("div",{className:"container",children:t})]}),o("div",{className:"container pb-6xl",children:n})]})})),or=async({open:e,close:t,id:n,convertToPng:i=!1})=>{const a=await lr(n,i);e(c(sr,{className:"my-6xl max-w-4xl mx-auto px-0 min-h-0 pb-0",children:[i?o("img",{src:a}):o("iframe",{src:`${a}#toolbar=0`,className:"w-full h-[80vh]",id:"iframe-dialog"}),o(ja,{className:"mx-auto mt-m",type:"button",onClick:t,children:"Ознакомиться"})]}))},cr=d((({className:e,error:t,docId:n,...i})=>{const{open:a,close:l}=ue(),r=Se();return c("div",{className:e,children:[c("div",{className:"flex flex-wrap gap-x-m",children:[o(Ti,{...i}),n?o(ve,{className:"text-primary-main",onClick:()=>or({open:a,close:l,id:n,convertToPng:r}),children:o(_e,{children:"Ознакомиться"})}):null]}),xn(t)]})})),dr=d((({field:e,input:t})=>t&&t.name?o(cr,{text:ar[t.name]?.text,docId:ar[t.name]?.docId,...ai(e(t.name),ei[t.name],t?.required)}):null)),mr=d((({field:e,input:t})=>{const{data:n}=il("CREDIT_IN_RSHB");return o(xl,{field:e,source:n,label:"Имеет ли юридическое лицо, акционером / участником / членом / пайщиком / \n вкладчиком с долей участия более 20% уставного капитала руководителем, \n которого Вы являетесь, кредит в АО «Россельхозбанк»",fieldName:"creditInRshbCd",input:t})})),ur={horizontal:"@lg:flex-row",vertical:""},hr=d((({label:e,items:t,value:n,className:i,onChange:a,disabled:l=!1,orientation:r="horizontal"})=>c("div",{className:"grid gap-xs whitespace-nowrap",children:[e?o("div",{role:"radiogroup","aria-label":e,children:o(_e,{color:"text-secondary-text",font:"font-light",children:e})}):null,o("div",{className:u("flex flex-col gap-s",ur[r],i),role:"radiogroup","aria-label":"Группа кнопок",children:t?.map((({id:e,text:t})=>o(Ti,{isRadio:!0,text:t,value:n===e,onChange:()=>a&&a(e),disabled:l},String(e))))})]}))),pr=d((({className:e,label:t,onChange:n,error:i,...a})=>c("div",{className:u("shrink-0 w-full",e),children:[o(hr,{label:dn({label:t,errors:a?.errors}),onChange:e=>n&&n(e),...a}),xn(i)]}))),gr=[{id:"rub",text:"Рубль"}],fr=d((({field:e,input:t})=>{const{value:n,onChange:i}=e("currency");return o(pr,{label:"Валюта",orientation:"horizontal",items:gr,value:n,onChange:e=>i?.(e),...ai(e("currency"),ei.currency,t?.required)})})),xr=d((({field:e,input:t})=>o(Yl,{label:"Дата доставки",...ai(e("deliveryDate"),ei.deliveryDate,t?.required)}))),yr=d((({field:e,input:t})=>o(Sn,{label:"Количество иждивенцев",placeholder:"За исключение детей до 18 лет",isInteger:!0,maxLength:2,...ai(e("dependents"),ei.dependents,t?.required),...t}))),br=d((({field:e,input:t})=>o(Yl,{label:"Желаемая дата встречи",...ai(e("desiredMeetingDate"),ei.meetingDay,t?.required)}))),vr=d((({field:e,input:t})=>o(Mi,{text:"Являюсь инвалидом",...ai(e("disablePeopleFlg"),ei.disablePeopleFlg,t?.required)}))),Nr="dulIssueDateField",wr=d((({field:e,input:t})=>o(Yl,{label:"Дата выдачи",...ai(e(Nr),ei.dulIssueDateField,t?.required),disabled:t?.filledByEsia&&wi(e,Nr)}))),Cr="dulIssuedBy",Sr=d((({field:e,input:t})=>{const{value:n,onChange:i}=e("dulSubdivisionCode"),a=l((e=>{i?.(e?.data?.code?.replace("-",""))}),[]);return o(Sn,{disabled:t?.filledByEsia&&wi(e,Cr),label:"Кем выдан",...t,...ai(e(Cr),ei.dulIssuedBy,t?.required),onDaDataChange:a,daDataQueryPrefix:n})})),kr=d((({field:e,input:t})=>o(Sn,{disabled:t?.filledByEsia&&wi(e,"dulNumber"),label:"Номер документа",isInteger:!0,maxLength:6,...ai(e("dulNumber"),ei.dulNumber,t?.required)}))),Ir=d((({field:e,input:t})=>o(Sn,{disabled:t?.filledByEsia&&wi(e,"dulSerie"),label:"Серия документа",isInteger:!0,maxLength:4,...ai(e("dulSerie"),ei.dulSerie,t?.required)}))),Tr="dulSubdivisionCode",Br=d((({field:e,input:t})=>{const n=l((t=>{e?.("dulIssuedBy")?.onChange?.(t?.data?.name)}),[]);return o(Sn,{disabled:t?.filledByEsia&&wi(e,Tr),label:"Код подразделения",isInteger:!0,maxLength:6,...t,...ai(e(Tr),ei.dulSubdivisionCode,t?.required),onDaDataChange:n})})),Pr=d((({field:e,input:t})=>{const{data:n}=il("EDUCATION_LEVEL");return o(xl,{field:e,source:n,label:"Образование",fieldName:"education",input:t})})),Rr=d((({field:e,input:t})=>{const{required:n,...i}=t;return o(Sn,{label:"Электронная почта",...ai(e("email"),ei.email,n),...i})})),Dr=d((({field:e,input:t})=>{const{data:n}=il("ORGANIZATION_ACTIVITY_TYPE");return o(xl,{field:e,source:n,label:"Вид деятельности организации-работодателя",fieldName:"employerActivities",input:t})})),Mr=d((({field:e,input:t})=>{const{data:n}=il("ORGANIZATION_KIND");return o(xl,{field:e,source:n,label:"Вид организации работодателя",fieldName:"employerOrganization",input:t})})),_r=d((({field:e,input:t})=>{const{data:n}=il("EMPLOYMENT_INFO_UNITED");return o(xl,{field:e,source:n,label:"Информация о трудоустройстве",fieldName:"employment",input:t})})),Ar=d((({field:e,input:t})=>o(Sn,{label:"Обязательные расходы в месяц",placeholder:"Введите значение",isInteger:!0,...ai(e("expenses"),ei.expenses,t?.required),...t}))),Er=d((({field:e,input:t})=>o(Sn,{label:"Стаж",placeholder:"За последние 5 лет",type:"number",maxLength:2,...ai(e("experience5Years"),ei.experience5Years,t?.required),...t}))),zr=d((({field:e})=>{const{value:t,onChange:n}=e("familyMembers"),i=e("familyStatus")?.value?.key,l="MARRIED"===i?2:1,r=Number(e("children")?.value),s=Number(e("dependents")?.value),c=l+r+s;return a((()=>{e?.("familyMembers")?.onChange?.(c)}),[i,r,s]),o(Sn,{label:"Количество членов семьи",placeholder:"Введите значение",type:"number",disabled:!0,value:t,onChange:e=>n?.(e)})})),Fr=d((({field:e,input:t})=>{const{data:n}=il("MARITAL_STATUS");return o(xl,{field:e,source:n,label:"Семейное положение",fieldName:"familyStatus",input:t})})),Or=[{key:"ULTRASERVICE",text:"Ультра"},{key:"PREMIUMSERVICE",text:"Премиум"}],Vr=[{key:"Физическое лицо"},{key:"Юридическое лицо / ИП"}],Lr=[{key:"phone",text:"Телефонный звонок"},{key:"email",text:"Электронное сообщение"}],jr=d((({field:e,input:t})=>o(An,{label:"Способ получения ответа",options:Lr,...ai(e("feedbackMethod"),ei.feedbackMethod,t?.required)}))),qr=d((({field:e,input:t})=>o(Sn,{label:"ФИО",...ai(e("fullName"),ei.fullName,t?.required),...t}))),$r=d((({field:e,input:t})=>o(Sn,{label:"Общий стаж",type:"number",maxLength:2,placeholder:"Количество лет",...ai(e("generalSeniority"),ei.generalSeniority,t?.required),...t}))),Ur=d((({field:e,input:t})=>{const{data:n}=il("HOUSE_TYPE");return o(xl,{field:e,source:n,label:"Тип жилья",fieldName:"housing",input:t})})),Wr=d((({field:e,input:t})=>{const n=l((t=>{e?.("organizationName")?.onChange?.(t.data?.name?.short_with_opf),e?.("legalForm")?.onChange?.(t.data?.opf?.short)}),[]);return o(Sn,{label:"ИНН",isInteger:!0,maxLength:12,...t,...ai(e("inn"),ei.inn,t?.required),onDaDataChange:n})})),Hr=d((({field:e})=>o(Mi,{...e("isClient"),text:'Являюсь клиентом банка АО "Россельхозбанк"'}))),Yr=d((({field:e,input:t})=>o(Sn,{label:"Количество мест работы за последние 5 лет",placeholder:"Количество мест",isInteger:!0,maxLength:2,...ai(e("jobsNumber"),ei.jobsNumber,t?.required),...t}))),Kr=d((({field:e,input:t})=>o(Sn,{label:"Стаж на последнем рабочем месте",placeholder:"Количество лет",type:"number",maxLength:2,...ai(e("lastJobExperience"),ei.lastJobExperience,t?.required),...t}))),Gr=d((({field:e,input:t})=>o(Sn,{label:"Наименование юридического лица",...t,...ai(e("legalEntityName"),ei.legalEntityName,t?.required)}))),Xr=d((({field:e,input:t})=>o(Sn,{label:"ОПФ",placeholder:"ООО, ПАО и др.",...ai(e("legalForm"),ei.legalForm,t?.required),...t}))),Jr="limitedBirthday",Zr=d((({field:e,input:t})=>o(Yl,{label:"Дата рождения",...ai(e(Jr),ei.limitedBirthday,t?.required),disabled:t?.filledByEsia&&wi(e,Jr)}))),Qr=`${qt}/outservice`,es=[];async function ts(){const e=await Pt(`${Qr}/outserviceregions`);return e&&Array.isArray(e)?e:es}const ns=d((({field:e,input:t})=>{const n=e("region"),i=n?.value?.key,{data:l}=pi("outServiceRegions",ts),r=l?.find((e=>e.code===i))?.localities?.map((e=>({key:e,text:e})));return a((()=>{""!==i&&e?.("localities")?.onChange?.("")}),[i]),o(An,{label:"Населенный пункт",placeholder:"Выберите город, где доступен сервис",options:r,...ai(e("localities"),ei.localities,t?.required),isSearch:!0})})),is=d((({field:e,input:t})=>o(Sn,{label:"Обязательные выплаты",placeholder:"Введите значение",isInteger:!0,...ai(e("mandatoryPayments"),ei.mandatoryPayments,t?.required),...t}))),as=[{id:"office",text:"В отделении Банка"},{id:"courier",text:"Курьерская доставка"}],ls=d((({field:e,input:t})=>o(pr,{orientation:"horizontal",items:as,...ai(e("methodObtain"),ei.methodObtain,t?.required)}))),rs="middleName",ss=d((({field:e,input:t})=>{const n=l((t=>{const n=t?.data?.gender;n&&"UNKNOWN"!==n&&e("sex")?.onChange?.(n.toLowerCase())}),[]);return o(Sn,{label:"Отчество (Обязательно, при наличии)",maxLength:60,disabled:t?.filledByEsia&&wi(e,rs),...ai(e(rs),ei.middleName,t?.required),...t,onDaDataChange:n})})),os=d((({field:e,input:t})=>o(Sn,{label:"Имя",maxLength:60,disabled:t?.filledByEsia&&wi(e,t.name??""),...ai(e("name"),ei.name,t?.required),...t}))),cs=d((({value:e=!1,text:t,type:n="checkbox",onChange:i})=>c("div",{role:n,"aria-checked":e,className:"flex justify-start items-center w-full cursor-pointer mb-s",onClick:()=>i&&i(!e),children:[o("div",{className:u("relative flex-shrink-0 duration-300 w-9 h-5 mr-s rounded-2xl",e?"bg-primary-main":"bg-main-divider"),children:o("div",{className:u("absolute opacity-80 duration-500 top-0.5 w-4 h-4 bg-white rounded-full",e?"left-1/2":"left-[5%]")})}),t?o(_e,{size:"text-l",font:"font-light",color:"text-primary-text",children:t}):null]}))),ds=d((({field:e})=>si(e("acquiringType")?.value?.key)?o(cs,{type:"radio",text:"Хочу онлайн-кассу",...e("onlineCheckout")}):null)),ms=d((({field:e,input:t})=>{const{data:n}=il("ORGANIZATION_TYPE");return o(xl,{field:e,source:n,label:"Тип организации",fieldName:"organization",input:t})})),us=d((({field:e,input:t})=>{const n=l((t=>{e?.("inn")?.onChange?.(t.data?.inn),e?.("legalForm")?.onChange?.(t.data?.opf?.short)}),[]);return o(Sn,{label:"Наименование организации",...t,...ai(e("organizationName"),ei.organizationName,t?.required),onDaDataChange:n})})),hs=d((({field:e,input:t})=>o(Sn,{label:"Иные доходы",placeholder:"Введите значение",isInteger:!0,...ai(e("otherIncome"),ei.otherIncome,t?.required),...t}))),ps=d((({field:e,input:t})=>o(Yl,{label:"Дата регистрации по месту жительства",...ai(e("participantDateRegistration"),ei.participantDateRegistration,t?.required)}))),gs="partInBusiness",fs=d((({field:e,input:t})=>{const n=l((t=>{e(gs)?.onChange?.(String(Number(t)>100?100:Number(t)||""))}),[]);return o(Sn,{label:"Доля участия в бизнесе",placeholder:"в %",isInteger:!0,maxLength:3,...ai(e(gs),ei.partInBusiness,t?.required),...t,onChange:n})})),xs=d((({field:e,input:t})=>{const{required:n,...i}=t;return o(Sn,{...ai(e("partnerComments"),ei.partnerComments,n),placeholder:"Укажите интересующий вас вопрос",isTextarea:!0,...i})})),ys=d((({field:e,input:t})=>{const{value:n,onChange:l}=e("paymentSystem"),[r,s]=i([]);return a((()=>{(async()=>{const e=await(async()=>{const e=await Qi("/public-data/creditProgramConditions","POST",{creditProgramId:13}),t=await(e?.json());return t?.paymentSystems?.map((e=>({id:e.type,text:e.name})))??[]})();s(e||[])})()}),[]),o(pr,{label:"Платежная система",orientation:"horizontal",items:r,value:n,onChange:e=>l?.(e),...ai(e("paymentSystem"),ei.paymentSystem,t?.required)})})),bs=e=>"_"===e,vs=e=>/\d/.test(e),Ns=e=>bs(e)||vs(e),ws=[..."+7 (___) ___-__-__"],Cs=ws.findIndex(bs),Ss=ws.map(((e,t)=>Ns(e)?ws.slice(0,t).filter(Ns).length:-1));function ks(e){const t=e.replace(/\D/g,""),n=ws.map(((e,n)=>vs(e)?e:t.charAt(Ss[n])||e)),i=Ss.indexOf(t.length-1)+1;return(i?n.slice(0,Math.max(Cs,i)):n).join("")}const Is=d((({children:e,onChange:t,...n})=>{const i=l((e=>t&&t(ks(e))),[t]),a=l((e=>{"+7 ("===e&&t&&t("")}),[]);return o(pn,{...n,onChange:i,onFocus:e=>i(e?.target?.value||""),onBlur:e=>a(e?.target?.value||""),children:e})})),Ts=d((({className:e,label:t,error:n,...i})=>c("div",{className:u("shrink-0 w-full",e),children:[o(Is,{"aria-label":t,label:dn({label:t,errors:i?.errors}),valid:Boolean(!n),placeholder:"+7 (___) ___-__-__",...i}),xn(n)]}))),Bs=d((({field:e,input:t})=>{const n=t?.name||"phone";return o(Ts,{label:"Телефон",...ai(e(n),ei.phone,t?.required),disabled:t?.filledByEsia&&wi(e,n),...t})})),Ps=d((({field:e,input:t})=>{const{data:n}=il("POSITION");return o(xl,{field:e,source:n,label:"Должность в организации",fieldName:"positionOrganization",input:t})})),Rs=d((({field:e})=>si(e("acquiringType")?.value?.key)?o(cs,{type:"radio",text:"Хочу POS-терминал",...e("posTerminal")}):null)),Ds=d((({field:e,source:t})=>o(An,{placeholder:"Выберите продукт",label:"Продукт",options:Ms(t?.productList),...ii(e("product"),ei.product)}))),Ms=e=>(e??[]).map((e=>({key:e,value:e}))),_s=`${qt}/regions`,As=[];function Es(e=_s){const{data:t}=pi(e,Rt);return Array.isArray(t)?t:As}const zs=d((({field:e,input:t,url:n})=>{const i=Es(n);return o(An,{label:"Филиал",placeholder:"Выберите филиал",isSearch:!0,options:r((()=>i?.map((({code:e="",name:t=""})=>({key:e,text:t})))),[i]),...ai(e("region"),ei.region,t?.required)})})),Fs=d((({field:e,input:t})=>{const n=bi(!0),i=r((()=>n?.map((({region:e})=>({key:e,text:e})))),[n]);return o(An,{label:"Регион",placeholder:"Выберите регион",options:i,...ai(e("region"),ei.region,t?.required)})})),Os=d((({field:e,input:t})=>{const{data:n}=il("REGION_RF"),i=n?.map((({key:e,value:t})=>({key:e,text:t})));return o(An,{label:"Регион",placeholder:"Выберите регион",isSearch:!0,options:i,...ai(e("regionRetail"),ei.regionRetail,t?.required)})})),Vs=d((({field:e,input:t})=>{const n=e("wages")?.value,i=l((t=>{const i=Number(t)+Number(n||0);e("retirementIncome")?.onChange?.(t),e("incomeAverage")?.onChange?.(String(i))}),[n]);return o(Sn,{label:"Пенсионные доходы",placeholder:"Введите значение",isInteger:!0,...ai(e("retirementIncome"),ei.retirementIncome,t?.required),...t,onChange:i})})),Ls=d((({field:e})=>{const t=e("secondaryPhone");return o(Ts,{label:"Дополнительный телефон",...t.value&&"+7 ("!==t.value?ii(t,ei.secondaryPhone):t})})),js=d((({field:e,input:t})=>o(An,{label:"Направление обслуживания",placeholder:"Выберите направление",options:Vr,...ai(e("serviceDirection"),ei.serviceDirection,t?.required)}))),qs=[{id:"male",text:"Мужской"},{id:"female",text:"Женский"}],$s=d((({field:e,input:t})=>o(pr,{label:"Пол",orientation:"horizontal",items:qs,...ai(e("sex"),ei.sex,t?.required)}))),Us=d((({field:e,input:t})=>o(Mi,{text:"Я являюсь акционером / участником / членом / пайщиком / вкладчиком с долей участия более 20% уставного капитала юридического лица",...ai(e("shareholderFlg"),ei.shareholderFlg,t?.required)}))),Ws=d((({children:e,onChange:t,...n})=>{const i=l((e=>t&&t(Dl(e,"___-___-___ __"))),[t]),a=l((e=>{"___-___-___ __"===e&&t&&t("")}),[]);return o(pn,{...n,onChange:i,onFocus:e=>i(e?.target?.value||""),onBlur:e=>a(e?.target?.value||""),children:e})})),Hs=d((({className:e,label:t,value:n,error:i,onChange:a,onBlur:l,...r})=>c("div",{className:u("shrink-0 w-full",e),children:[o(Ws,{"aria-label":t,label:dn({label:t,errors:r?.errors}),valid:Boolean(!i),value:n,onChange:a,onBlur:l,placeholder:"___-___-___ __"}),xn(i)]}))),Ys=d((({field:e,input:t})=>{const n=e("consentPfrFlg")?.value;return o(Hs,{label:"СНИЛС",...ai(e("snils"),ei.snils,!!n&&t?.required),...t})})),Ks=d((({field:e,input:t})=>o(Sn,{label:"Фамилия",maxLength:60,disabled:t?.filledByEsia&&wi(e,"surname"),...ai(e("surname"),ei.surname,t?.required),...t}))),Gs=["От 1 мес","До 15 лет"],Xs=d((({field:e})=>o(ul,{title:"Срок, месяцев",items:Gs,min:1,max:180,...e("term")}))),Js=d((({field:e,input:t})=>o(Sn,{label:"Совокупный официальный доход в месяц после вычета налогов (зарплата, премии)",placeholder:"Введите значение",isInteger:!0,...ai(e("totalIncome"),ei.totalIncome,t?.required),...t}))),Zs=d((({field:e,input:t})=>o(An,{label:"Тип обслуживания",options:Or,...ai(e("serviceType"),ei.serviceType,t?.required)}))),Qs=[{id:"currencyControl",text:"Валютный контроль"},{id:"documentOperations",text:"Документарные операции"},{id:"conversionTransactions",text:"Конверсионные операции"},{id:"otherIssues",text:"Иные вопросы ВЭД"}],eo=d((({field:e})=>{const{value:t,onChange:n}=e("vedTypes");return a((()=>{"currencyControl"!==t&&(e?.("inn")?.onChange?.(""),e?.("region")?.onChange?.(""))}),[t]),o("div",{className:"py-m gap-m grid @xl:flex @xl:items-center",children:o(hr,{className:"whitespace-normal",orientation:"horizontal",items:Qs,value:t,onChange:e=>n&&n(e)})})})),to=d((({field:e,input:t})=>{const n=e("retirementIncome")?.value,i=l((t=>{const i=Number(t)+Number(n||0);e("wages")?.onChange?.(t),e("incomeAverage")?.onChange?.(String(i))}),[n]);return o(Sn,{label:"Совокупный доход в месяц после вычета налогов (зарплата, премии)",placeholder:"Введите значение",isInteger:!0,...ai(e("wages"),ei.wages,t?.required),...t,onChange:i})}));const no={$ref:"/wcms-resources/outservice-productlist.json"},io=(e,t="")=>(n,i)=>{const a="ULTRASERVICE"===t||"PREMIUMSERVICE"===t,l={surname:o(Ks,{field:e,input:n}),name:o(os,{field:e,input:n}),middleName:o(ss,{field:e,input:n}),phone:o(Bs,{field:e,input:n}),organizationPhone:o(Bs,{field:e,input:n}),email:o(Rr,{field:e,input:n}),fullName:o(qr,{field:e,input:n}),inn:o(Wr,{field:e,input:n}),legalForm:o(Xr,{field:e,input:n}),organizationName:o(us,{field:e,input:n}),generalSeniority:o($r,{field:e,input:n}),lastJobExperience:o(Kr,{field:e,input:n}),experience5Years:o(Er,{field:e,input:n}),jobsNumber:o(Yr,{field:e,input:n}),beginDate:o(Kl,{field:e,input:n}),addressFact:o(Ni,{field:e,input:n}),organizationAddress:o(Ci,{field:e,input:n}),comment:o(tr,{field:e,input:n}),addressBranch:o(vi,{field:e,input:n,isPremium:a}),sex:o($s,{field:e,input:n}),birthday:o(Gl,{field:e,input:n}),limitedBirthday:o(Zr,{field:e,input:n}),birthPlace:o(Xl,{field:e,input:n}),desiredMeetingDate:o(br,{field:e,input:n}),product:o(Ds,{field:e,source:no}),localities:o(ns,{field:e,input:n}),isClient:o(Hr,{field:e}),partnerComments:o(xs,{field:e,input:n}),collectionCount:o(er,{field:e,input:n}),acquiringType:o(ri,{field:e,input:n}),onlineCheckout:o(ds,{field:e}),posTerminal:o(Rs,{field:e}),serviceType:o(Zs,{field:e,input:n}),term:o(Xs,{field:e}),amount:o(fl,{field:e}),annualRevenue:o(bl,{field:e,input:n}),vedTypes:o(eo,{field:e}),feedbackMethod:o(jr,{field:e,input:n}),serviceDirection:o(js,{field:e,input:n}),bankEmpolee:o(wl,{field:e}),secondaryPhone:o(Ls,{field:e}),consentToReceiveMaterials:o(dr,{field:e,input:n}),processPersonalDataFlg:o(dr,{field:e,input:n}),consentProviderFlg:o(dr,{field:e,input:n}),consentOthersFlg:o(dr,{field:e,input:n}),consentInformFlg:o(dr,{field:e,input:n}),consentPfrFlg:o(dr,{field:e,input:n}),applicationDate:o(Sn,{label:"Дата и время обращения в Банк",...e("applicationDate")}),region:a?o(Fs,{field:e}):o(zs,{field:e,input:n,url:rn(t)}),education:o(Pr,{field:e,input:n}),housing:o(Ur,{field:e,input:n}),employment:o(_r,{field:e,input:n}),organization:o(ms,{field:e,input:n}),amountWorkers:o(yl,{field:e,input:n}),employerActivities:o(Dr,{field:e,input:n}),employerOrganization:o(Mr,{field:e,input:n}),positionOrganization:o(Ps,{field:e,input:n}),familyStatus:o(Fr,{field:e,input:n}),children:o(Zl,{field:e,input:n}),familyMembers:o(zr,{field:e,input:n}),dependents:o(yr,{field:e,input:n}),totalIncome:o(Js,{field:e,input:n}),expenses:o(Ar,{field:e,input:n}),snils:o(Ys,{field:e,input:n}),conscription:o(ir,{field:e,input:n}),armyIdFlg:o(vl,{field:e,input:n}),dulSerie:o(Ir,{field:e,input:n}),dulNumber:o(kr,{field:e,input:n}),dulIssueDateField:o(wr,{field:e,input:n}),dulSubdivisionCode:o(Br,{field:e,input:n}),dulIssuedBy:o(Sr,{field:e,input:n}),addressRegistration:o(Ci,{field:e,input:n}),addressCourier:o(Ci,{field:e,input:n}),participantDateRegistration:o(ps,{field:e,input:n}),retirementIncome:o(Vs,{field:e,input:n}),otherIncome:o(hs,{field:e,input:n}),wages:o(to,{field:e,input:n}),mandatoryPayments:o(is,{field:e,input:n}),disablePeopleFlg:o(vr,{field:e,input:n}),bankruptcyFlg:o(Cl,{field:e,input:n}),shareholderFlg:o(Us,{field:e,input:n}),legalEntityName:o(Gr,{field:e,input:n}),creditInRshbCd:o(mr,{field:e,input:n}),bankEmployeeCode:o(Nl,{field:e,input:n}),partInBusiness:o(fs,{field:e,input:n}),regionRetail:o(Os,{field:e,input:n}),addressRetail:o(ll,{field:e,input:n}),addressMatch:o(_i,{field:e,input:n}),paymentSystem:o(ys,{field:e,input:n}),currency:o(fr,{field:e,input:n}),cardCategory:o(Jl,{field:e,input:n}),codeWord:o(Ql,{field:e,input:n}),confirmationIncome:o(nr,{field:e,input:n}),methodObtain:o(ls,{field:e,input:n}),deliveryDate:o(xr,{field:e,input:n})};return function({input:e,field:t}){const{condition:n}=e,{value:i}=t(n?.name||"");return!n||n?.values?.find((e=>e===(i?.key??i)))}({input:n,field:e})?o("div",{children:l[n?.name||""]},String(i)):null},ao=e=>2===e?"@xl:grid-cols-2":"",lo=e=>e?o("div",{className:"@xl:text-center @xl:col-span-2 mb-m",children:o(_e,{size:"text-h6",children:e})}):null,ro=d((function({responseType:e,typeForm:t}){const n="OK"===e,i=n?"ResponseOKIcon":"ResponseFailIcon",{close:a}=ue(),r=l((()=>{a()}),[]),s="ANTIFRAUD"===t?"Сообщение отправлено. Для уточнения информации с Вами могут связаться работники Банка либо Вы\n можете самостоятельно позвонить по номеру контакт-центра +78001000100. Будьте внимательны, работники Банка\n не звонят с использованием мессенджеров.":"Совсем скоро мы с вами свяжемся";return o(sr,{className:"my-6xl max-w-lg w-full min-h-fit mx-auto ",children:c("div",{className:"flex flex-col gap-lg items-center rounded-md space-x-m",children:[o(ne,{image:{icon:i,iconVersion:"normal"},width:"136",height:"136"}),o(k,{className:"w-full",title:n?"Ваша заявка отправлена":"Не удалось отправить заявку",description:n?s:"Пожалуйста, повторите позднее",headlineVersion:"XS",isEmbedded:!0}),o(ja,{type:"button",onClick:r,children:"Хорошо"})]})})})),so=e=>{const{open:t,close:n}=ue();return{open:(n,i={})=>t(o(ro,{...e,...n}),i),close:n}},oo=e=>t=>t&&Object.entries(e).flatMap((([e,n])=>n(t[e])))||[],co=e=>{const{acquiringType:t,onlineCheckout:n,posTerminal:i,amount:a,term:l,annualRevenue:r,serviceType:s,vedTypes:o,region:c,...d}=e,m=t||r?(e=>{const{acquiringType:t,onlineCheckout:n=!1,posTerminal:i=!1,term:a,amount:l,annualRevenue:r}=e;return t?`Вид эквайринга=${t?.text||""}${si(t?.key)?`/Онлайн касса=${n}/POS-терминал=${i}`:"/Онлайн касса=false/POS-терминал=false"}`:`Сумма=${l}/Срок=${a}/Выручка=${r}`})(e):null,u={...d,...uo(o),...mo(c),...m?{partnerComments:m}:{},...s?{typeForm:s}:{}};return Object.fromEntries(Object.entries(u)?.map((([e,t])=>[e,t?.key||t])))},mo=e=>e?.key||e?.text?{region:e?.text||e?.key}:{},uo=e=>e?{vedTypes:Object.fromEntries(Qs.map((({id:t})=>[t,t===e])))}:{},ho={typeForm:"",region:{key:"",text:""},addressBranch:{key:"",text:""},surname:"",name:"",phone:"",secondaryPhone:"",comment:"",product:"",partnerComments:"",annualRevenue:"",term:12,amount:1e5,acquiringType:li[0],serviceType:Or[0],feedbackMethod:Lr[0],serviceDirection:Vr[0],vedTypes:Qs[0],birthday:void 0,isClient:!1,onlineCheckout:!1,posTerminal:!1,consentToReceiveMaterials:!1,consentDataProcessing:!1,addressRetail:{key:"",text:""}},po=d((({text:e,link:t})=>c(C,{size:"text-l",font:"font-light",color:"text-secondary-text",children:[e?o(_e,{children:e}):null,t?o(ve,{href:t.href,ariaLabel:"условия передачи данных",target:t.target||"",className:"!text-left text-primary-main",children:o(_e,{children:t.text})}):null]}))),go=(e,t)=>o(ja,{className:u("w-full @xl:w-auto",t),type:"submit",children:e?.text?e.text:"Отправить заявку"}),fo=(e,t,n)=>c("div",{className:"flex col-span-2 gap-xs flex-col w-full items-baseline",children:[e?c("div",{children:[c("div",{className:"flex gap-3 items-center",children:[o(Ti,{...e}),o(po,{link:t})]}),xn(ii(e,Yn).error)]}):o(po,{text:"Нажимая кнопку, вы подтверждаете согласие с ",link:t}),go(n)]}),xo={send:async function(e,t=!1){const{typeForm:n,region:i,phone:a="",email:l,birthday:r,desiredMeetingDate:s,inn:o,addressBranch:c,secondaryPhone:d="",bankEmpolee:m,applicationDate:u,serviceDirection:h,...p}=e,g=t&&"Юридическое лицо / ИП"!==h,f=`${qt}${g?"/lead":"/sendcorporatelead"}`,x={typeForm:n,...Wt(i,g),...Ht(l,g),...$t(a),...Ut(s,"desiredMeetingDate"),...g?Ut(r):{inn:o},..."FEEDBACK"===n?{}:{addressBranch:c,bankEmpolee:m,applicationDate:u,...Yt(d)},...p};try{const e=await fetch(f,{method:"POST",headers:{"Content-Type":"application/json"},mode:"cors",body:JSON.stringify(x)});return e?.ok?await e.json():null}catch(e){return null}}},yo=d((({className:e,title:t,typeForm:n="",sections:r=[],button:s,link:d,endpoint:m,additionalParams:h,isContacts:p,data:g,...f})=>{const x=r?.flatMap((e=>e?.inputs))||[],y=((e,t="")=>{const n=Object.fromEntries(e.map((e=>[e.name,"ved"===e.fieldType&&e?.defaultValue||ho[e.name||""]])));return n?.serviceType&&"PREMIUMSERVICE"===t&&(n.serviceType=Or[1]),{...n,typeForm:{key:t,text:""}}})(x,n),[b,v]=i(""),N=so({typeForm:n}),C=l((async(e,t)=>{const n=bo(x,e),i=oo(ni(n));if(!En(i(e)))return console.warn("validation fail");const a=co({...e,...h}),l=await xo.send(a,"lead"===m)?"OK":"Fail";if(v(l),l&&N.open({responseType:l}),"OK"===l&&g){const e=Qt();Kt({aspectsAttributes:g,aspects:e,ev:t})}return l}),[]),[,{field:S,onSubmit:k,reset:I}]=tn(y,{onSubmit:C}),T=(e=>e?.find((e=>"consentDataProcessing"===e?.name)))(x)?.name;return a((()=>{"OK"===b&&(v(""),I())}),[b]),c(an,{className:u("container space-y-m",e),title:t,...f,children:[c("form",{onSubmit:k,children:[r.map(((e,t)=>c("div",{className:u(ao(e.columns),"grid gap-x-m"),children:[lo(e.title),(e?.inputs||[])?.map(io(S,n))]},`section-${t}`))),fo(T?S("consentDataProcessing"):void 0,d,s)]}),p?c("div",{className:"space-y-m",children:[o(w,{headingType:"h6",title:"Или свяжитесь с нами удобным способом",className:"@xl:text-center"}),c("div",{className:"flex sm:justify-center gap-xl",children:[c("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:[o(ne,{image:{icon:"PhoneIcon"},width:"24",height:"24"}),o("span",{children:"8 (800) 200-78-70"})]}),c("a",{className:"flex gap-s items-center text-primary-text no-underline","aria-label":"почта ved@rshb.ru",href:"mailto:ved@rshb.ru",children:[o(ne,{image:{icon:"MailIcon"},width:"24",height:"24"}),o("span",{children:"ved@rshb.ru"})]})]})]}):null]})})),bo=(e,t)=>e.filter((e=>"secondaryPhone"===e?.name?Boolean(t.secondaryPhone):e)).filter((e=>!e?.condition||e?.condition.values.find((n=>{const i=t?.[e?.condition?.name??""];return n===(i?.key??i)}))));function vo(e){const[t,n]=i(JSON.parse(globalThis.localStorage?.getItem(e)||"null"));return[t,l((t=>{globalThis.localStorage?.setItem(e,JSON.stringify(t)),n(t)}),[e,globalThis.localStorage])]}const No=d((({inputs:e=[],typeForm:t="",field:n,key:i})=>{const a=e.every((e=>Boolean(n(e.name).value))),l=r((()=>e?.filter((e=>e.required))?.some((e=>Boolean(ii(n(e?.name),ei[e?.name]).error)))),[e]);return o("div",{className:"w-fit",children:o(na,{isFoldButtonOnTop:!0,unfoldedByDefault:!0,renderFoldableSection:({isUnfolded:i})=>o(ia,{isUnfolded:i,className:"flex flex-col pl-2xl",children:e.map(io(n,t))}),renderFoldButton:wo(c("div",{children:[o(Ti,{value:a,onChange:t=>{for(const i of e){const e=n(i.name);e?.onChange&&e.onChange(t)}},text:"Согласие на все документы"},i),xn(l?"Отметьте все обязательные соглашения":"")]}))})})})),wo=e=>t=>c("div",{className:"flex items-start",children:[e,o("button",{onClick:t.onToggle,className:"px-m py-2xs",type:"button",children:o(W,{className:"text-primary-text",name:t.isUnfolded?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16"})})]}),Co=({field:e,typeForm:t="",inputs:n})=>{const{consentInputs:i,restInputs:a}=So(n||[]);return i.length>2?c("div",{children:[a.map(io(e,t)),o(No,{inputs:i,field:e})]}):(n||[])?.map(io(e,t))},So=e=>({consentInputs:e?.filter((e=>Object.keys(ar).includes(e.name||"")))||[],restInputs:e?.filter((e=>!Object.keys(ar).includes(e.name||"")))||[]}),ko={typeForm:"",region:{key:"",text:""},addressBranch:{key:"",text:""},surname:"",name:"",phone:"",secondaryPhone:"",organizationPhone:"",comment:"",product:"",partnerComments:"",annualRevenue:"",term:12,amount:1e5,acquiringType:li[0],serviceType:Or[0],feedbackMethod:Lr[0],serviceDirection:Vr[0],vedTypes:Qs[0],birthday:void 0,limitedBirthday:void 0,isClient:!1,onlineCheckout:!1,posTerminal:!1,consentToReceiveMaterials:!1,consentDataProcessing:!1,processPersonalDataFlg:!1,consentProviderFlg:!1,consentOthersFlg:!1,consentInformFlg:!1,addressRegistration:"",participantDateRegistration:void 0,currency:"",paymentSystem:"",cardCategory:{key:"",text:""},codeWord:"",addressRetail:{key:"",text:""}},Io=(e,t,n="")=>{if(t){const e={...t};return e.limitedBirthday=new Date(e?.limitedBirthday||0),e}return{...Object.fromEntries(e.map((e=>[e.name,"ved"===e.fieldType&&e?.defaultValue||ko[e.name||""]]))),typeForm:{key:n,text:""}}},To=(e,t)=>o(ja,{className:u("w-full @xl:w-auto",t),type:"submit",children:e?.text?e.text:"Отправить заявку"}),Bo=e=>Zi("/user-data/updateUserProfile","PUT",e),Po=e=>Zi("/user-data/updateUserTask","PUT",e),Ro=(e,t)=>Boolean(e)&&"string"!=typeof e&&Boolean(e?.errorMessage.startsWith(`Too many request for phoneNumber [${t}]`)),Do={width:"103",height:"21"},Mo={"bg-white":"color",transparent:"white"},_o={"bg-white":"text-primary-main",transparent:"text-white"},Ao=(e,t,n)=>o(ne,{image:t?.src?t:{icon:t?.icon||"LogoIcon",iconVersion:Mo[e]},className:_o[e],width:n?.width,height:n?.height}),Eo={"bg-white":"text-primary-text",transparent:"text-white"},zo=d((({className:e,href:t="/",logo:n,children:i,targetBlank:a,bgColor:l="bg-white",showTitle:r=!0,data:s})=>c("a",{className:u("inline-flex items-center font-sans no-underline",e),href:n?.href??t,target:a?"_blank":"_self","aria-label":n?.title??"Россельхозбанк",...ge(s),children:[Ao(l,n?.image,Do),r?i??o("div",{className:"ml-s",children:o(_e,{font:"font-medium",color:Eo[l],size:"text-s",children:n?.title??"Россельхозбанк"})}):null]}))),Fo=d((({phoneNumber:e,close:t,sendCode:n,onClose:r})=>{const[s,d]=i(""),[m,u]=i(""),[h,p]=i(!1),g=l((async()=>{const e=await(i={captchaText:m},Qi("/sms/checkCaptcha","POST",i).then((e=>e.text())).then((e=>"ERROR"!==e)));var i;e?(n?.(),t?.()):p(e)}),[m]),f=l((()=>{(async()=>{d(URL.createObjectURL(await(e=>Qi(`/sms/createCaptcha?phoneNumber=${encodeURIComponent(e)}`,"GET").then((async e=>e?await e.blob():new Blob)))(e)))})()}),[]);return a(f,[]),o(sr,{head:o(zo,{}),onClose:r,className:"my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg",children:c("div",{className:"flex flex-col gap-lg items-center rounded-md",children:[c("div",{className:"flex h-36 w-72",children:[o("img",{className:"grow",src:s}),o("div",{onClick:f,className:"flex w-8 items-center justify-center cursor-pointer",children:o(W,{iconVersion:"normal",name:"RefreshIcon"})})]}),o(pn,{className:"w-[300px]",onChange:u,value:m,placeholder:"Введите код с картинки"}),h?o("div",{className:"text-error",children:"Неверный код"}):null,c("div",{className:"flex w-[310px] justify-between",children:[o(ja,{onClick:t,version:"secondary",children:"Вернуться"}),o(ja,{type:"submit",disabled:!m,onClick:g,version:"secondary",children:"Отправить"})]})]})})})),Oo=d((({time:e,setTime:t,className:n})=>(a((()=>{const n=setInterval((()=>{t(e-1)}),1e3);return 0===e&&clearInterval(n),()=>{clearInterval(n)}}),[e]),o("span",{className:n,children:Vo(e)})))),Vo=e=>`${`${Math.floor(e/60)}`.padStart(2,"0")}:${(""+e%60).padStart(2,"0")}`,Lo=d((({values:e,setValues:t,hasError:n,errorText:r})=>{const[d,m]=i(0),u=s([]);a((()=>{u.current?.[d]?.focus()}),[d]);const h=l((n=>i=>{const{value:a}=i.currentTarget,l=a.slice(0,1);t(e.map(((e,t)=>t===n?l:e))),m(n+1)}),[e]),p=l((n=>i=>{const{key:a}=i;if("Backspace"===a&&!e[n]){const i=n>0?n-1:e.length-1,a=e.map(((e,t)=>t===i?"":e));t(a),m(i)}}),[e]),g=l((n=>{n.preventDefault();const i=n.clipboardData.getData("text"),a=e.map(((e,t)=>t<i.length?i[t]:e));t(a),m(a.length-1)}),[e]);return c("div",{className:"flex flex-col gap-2 text-center",children:[o("div",{children:e.map(((t,i)=>o("input",{type:"number",maxLength:1,value:t,onChange:h(i),onPaste:g,ref:e=>{u.current||(u.current=[]),u.current[i]=e},onFocus:e=>e.target.select(),onKeyDown:p(i),className:jo(i,e,n)},i)))}),n?o("div",{className:"text-error",children:r}):null]})})),jo=(e,t,n=!1)=>{const i=!t[e];return`w-20 h-24 text-5xl text-center p-lg m-2 border ${n&&i?"border-error":"border-gray"} rounded-md caret-transparent outline-none`},qo=d((({isDisabled:e,onClick:t,text:n})=>o(ja,{type:"button",onClick:t,disabled:e,children:o(_e,{font:"font-normal",children:n})}))),$o=e=>{e&&(globalThis.sessionStorage.setItem("accessToken",e.access_token),globalThis.sessionStorage.setItem("refreshToken",e.refresh_token))},Uo=({close:e,values:t})=>{const[n,s]=i(!1),[o,c]=i(""),[d,m]=i(!1),[u,h]=i(0),[p,g]=i(!1),[f,x]=i(0),y=l((()=>{s(!1),c("")}),[]),b=r((()=>0===u&&p),[u,p]),v=r((()=>f>2||!t.every(Boolean)||b),[t]),N=l((async()=>{try{g(!1),h(0),x(f+1),m(!0),await(async e=>Zi("/sms/checkCode","POST",e).then($o))({smsText:t.join(""),smsCodesSetName:{key:"AUTHENTICATION"}}),y(),e&&e(t.join(""))}catch{m(!1),c(f>1?"Исчерпан лимит ввода смс-кода":"Неверный код"),s(!0)}}),[t,f]);return a((()=>{b?(s(!0),c("Код просрочен")):s(!1)}),[b]),{handleSubmit:N,hasError:n,errorText:o,isLoading:d,timeNextReq:u,isSubmitButtonDisabled:v,setTimeNextReq:h,setIsTimerStarted:g,setAttemps:x}},Wo=d((({close:e=mn,onClose:t=mn,title:n,description:r,__html:s,code:d=!0,codeLength:m=4,textButton:u="",phoneNumber:h="+79999999999"})=>{const[p,g]=i(Array(m).fill("")),{handleSubmit:f,hasError:x,errorText:y,isLoading:b,timeNextReq:v,isSubmitButtonDisabled:N,setTimeNextReq:w,setIsTimerStarted:C,setAttemps:S}=Uo({values:p,close:e}),I=l((async()=>{var e;await(e={phoneNumber:h,smsCodesSetName:{key:"AUTHENTICATION"}},Zi("/sms/sendCode","POST",e).then((t=>!Ro(t,e.phoneNumber))))?(S(0),w(180),C(!0)):T.open()}),[]),T=((e,t)=>{const{open:n,close:i,closeAll:a}=ue();return{open:()=>n(o(Fo,{close:i,onClose:t,...e})),close:i,closeAll:a}})({phoneNumber:h,sendCode:I},t);return a((()=>{I()}),[]),o(sr,{className:"my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-xl px-5xl py-0",children:c("div",{className:"flex flex-col gap-xl items-center rounded-md",children:[o(k,{className:"w-full",title:n,description:r,headlineVersion:"XS",isEmbedded:!0,as:"h6"}),d?o(Lo,{values:p,setValues:g,errorText:y,hasError:x}):null,Yo(v,w,I),o(De,{itemSize:"list-s",__html:s}),Ho(u,N,f),b?o(Ai,{blur:!1}):null]})})})),Ho=(e,t,n)=>e?o(qo,{isDisabled:t,onClick:n,text:e}):null,Yo=(e,t,n)=>e?c("div",{className:"flex flex-row text-l font-light text-base",children:["Получить новый код можно через",o(Oo,{className:"text-base ml-1",time:e,setTime:t})]}):o(ve,{onClick:n,className:"text-primary-main",children:"Получить новый код"}),Ko=()=>{const{open:e,close:t}=ue();return{open:(n,i)=>e(o(Wo,{onClose:t,close:n,...i})),close:t}},Go={title:"Подпишите согласие на запрос в БКИ",description:"Согласие на запрос в Бюро кредитных историй (БКИ) ускорит решение по кредиту"},Xo={title:"Вы уверены, что хотите отказаться от запроса в БКИ",description:"Согласие на запрос в Бюро кредитных историй (БКИ) повысит вероятность одобрения"},Jo=d((function({handleSubmit:e=mn,onClose:t=mn}){const[n,a]=i(""),[r,s]=i(!1),{open:d,close:m}=ue(),u=Se(),h=l((()=>{m(),e(n)}),[n]),p=l((e=>{a(e),"REFUSE"===e&&s(!0)}),[]),g=r?Xo:Go;return o(sr,{className:"my-6xl max-w-3xl w-full min-h-fit mx-auto rounded-lg py-0 px-5xl",onClose:t,children:c("div",{className:"flex flex-col gap-xl items-center",children:[o("div",{role:"button",onClick:()=>or({open:d,close:m,id:Qo,convertToPng:u}),children:o(w,{className:"text-center text-balance",headingType:"h2",title:g.title})}),o(C,{align:"text-center",children:g.description}),o(hr,{className:"whitespace-normal",orientation:"horizontal",items:Zo,value:n,onChange:p}),o(ja,{disabled:!n,type:"button",onClick:h,children:"Продолжить"})]})})})),Zo=[{id:"SIGNED",text:"Подписать"},{id:"REFUSE",text:"Отказаться"}],Qo=2,ec=e=>{const{open:t,close:n}=ue(),i=Ko(),a=(t,a)=>async l=>{n(),"SIGNED"===l&&t?i.open((t=>async n=>{t&&await Bo({profile:{id:t,consentBkiFlg:!0,smsConsentBki:n}}),e()})(a),tc(t)):e()};return{open:(n,i)=>t(o(Jo,{handleSubmit:a(n,i),onClose:e}))}},tc=e=>({title:"Подтвердите номер телефона",description:`Мы отправили код на ${e}`,phoneNumber:jt(e),textButton:"Отправить",__html:"<span>Вводя код, я подтверждаю, что ознакомлен и подписываю:</span>\n <ul><li>согласие на запрос информации в БКИ</li></ul>"}),nc=d((function({handleClose:e}){const t=Gt(),n=l((async()=>{const e=await(n={redirectUri:t.href},Zi("/esia/getLink","POST",n));var n;e&&t.assign(e.link)}),[]);return o(sr,{className:"my-6xl max-w-lg w-full min-h-fit mx-auto rounded-lg",onClose:e,children:c("div",{className:"flex flex-col gap-lg items-center rounded-md",children:[c("div",{className:"flex items-center justify-around w-full",children:[c("ul",{className:"list-disc",children:[o("li",{children:"Вероятность одобрения выше"}),o("li",{children:"Без справок о доходах и трудоустройстве"}),o("li",{children:"С защитой Ваших данных"})]}),o(ne,{image:{icon:"GosUslugiIcon",iconVersion:"normal"},height:"70"})]}),c("div",{className:"flex items-center justify-between w-full m-0",children:[o(ja,{type:"button",onClick:n,children:"Заполнить через Госуслуги"}),o(ja,{type:"button",version:"secondary",onClick:e,children:"Пропустить"})]})]})})})),ic={email:"EMAIL",phone:"MAIN_PHONE",organizationPhone:"ORGANIZATION_PHONE"},ac={addressRegistration:"REGISTRATION",addressFact:"RESIDENTAL",organizationAddress:"WORK"},lc={incomeAverage:"INCOME_AVERAGE",mandatoryPayments:"MANDATORY_PAYMENTS",additionalIncome:"ADDITIONAL_INCOME",otherIncome:"OTHER_INCOME",otherPayments:"OTHER_PAYMENTS",rentalIncome:"RENTAL_INCOME",wages:"WAGES",retirementIncome:"RETIREMENT_INCOME"},rc=e=>Object.entries(e).reduce(((e,[t,n])=>t in ic?[...e,{contactTypeCd:{key:ic[t]},value:n}]:e),[]),sc=e=>Object.entries(e).reduce(((e,[t,n])=>{if(t in ac){const i=Object.fromEntries(Object.entries(n??{}).filter((([e])=>!e.startsWith("qc"))).map((([e,t])=>[e,t??""])));return[...e,{addressType:{key:ac[t]},...i}]}return e}),[]),oc=e=>Object.entries(e).reduce(((e,[t,n])=>t in lc?[...e,{incomeTypeCd:{key:lc[t]},value:Number(n||0)}]:e),[]),cc=({inputs:e,programId:t,nextStepLink:n,saveForm:a})=>{const[r,s]=i(""),[,c]=vo("taskId"),[,d]=vo("profileId"),[,m]=vo("participantId"),u=(e=>{const{open:t,close:n}=ue(),i=Gt(),a=l((()=>{n(),i.assign(e)}),[]);return{open:(e={})=>t(o(nc,{handleClose:a}),e),close:n}})(n),h=ec(u.open),p=Ko(),g=l(((e,t,n)=>{m(e),c(t),d(n)}),[]);return{handleSubmit:l((async n=>{const i=oo(ni(e));if(!En(i(n)))return console.warn("validation fail");try{const e=await(l={profile:{phone:jt(n.phone)}},Zi("/public-data/createUserProfile","POST",l).then((e=>e?.profile?.id||null)));if(e&&n?.phone){const i=async()=>{try{await dc({programId:t,profileId:e,formData:n,saveUserData:g,saveForm:a}),p.close(),h.open(n.phone,e)}catch{s("Fail")}},l=Object.keys(ar).filter((e=>n[e])).map((e=>ar[e]?.text));p.open(i,mc(n?.phone,l))}}catch{s("Fail")}var l}),[]),responseStatus:r}},dc=async({programId:e,profileId:t,formData:n,saveUserData:i,saveForm:a})=>{const l=hc(n);await Bo(((e,t)=>{const{name:n="",surname:i="",middleName:a="",birthday:l="",phone:r="",email:s="",processPersonalDataFlg:o,consentProviderFlg:c,consentPfrFlg:d,consentPhotoFlg:m,consentAssignmentClaimsFlg:u,consentCollectionFlg:h,consentInformFlg:p}=t;return{profile:{id:e,name:n,surname:i,midname:a,birthDate:l&&Lt(l,!0),email:s,phone:jt(r),processPersonalDataFlg:Boolean(o),consentProviderFlg:Boolean(c),consentPfrFlg:Boolean(d),consentPhotoFlg:Boolean(m),consentAssignmentClaimsFlg:Boolean(u),consentCollectionFlg:Boolean(h),consentInformFlg:Boolean(p)}}})(t,l));const{taskId:r,participantId:s}=await(async e=>await Zi("/user-data/createDraftTask","POST",e)||{})({profileId:t,programId:e});await Po((({participantId:e,taskId:t,profileId:n,formData:i})=>{const{name:a,surname:l,middleName:r,limitedBirthday:s,phone:o,email:c}=i;return{sendToBank:!0,taskKind:"SHORT",task:{taskSource:Gt().origin,id:t,participants:[{birthDate:s&&Lt(s,!0),id:e,midname:r,name:a,surname:l,profile:{id:n},participantContacts:rc({phone:o&&jt(o),email:c}),roleCd:{key:"BORROWER",value:"Заемщик"}}]}}})({participantId:s,taskId:r,profileId:t,formData:l})),i(s,r,t),a(n)},mc=(e,t)=>({title:"Подтвердите номер телефона",description:`Мы отправили код на ${e}`,phoneNumber:jt(e),textButton:"Оформить",__html:`<span>Вводя код, я подтверждаю, что ознакомлен и подписываю:</span>${uc(t)}`}),uc=e=>`<ul>${e?.map((e=>"<li>"+e+"</li>")).join("")}</ul>`,hc=e=>{const{consentOthersFlg:t,...n}=e;return{...n,consentCollectionFlg:t,consentAssignmentClaimsFlg:t,consentPhotoFlg:t}},pc=e=>{const{profile:t,addInfo:n,document:i,addressRegistration:a,addressFact:l}=e;return{name:t?.name,surname:t?.surname,middleName:t?.midname,limitedBirthday:t?.birthDate,phone:ks(t?.phone),email:t?.email,dulIssueDateField:i?.dulIssueDate,dulIssuedBy:i?.dulIssuedBy,dulNumber:i?.dulNumber,dulSerie:i?.dulSerie,dulSubdivisionCode:i?.dulSubdivisionCode,snils:n?.snils,birthPlace:n?.birthPlace,addressRegistration:gc(a),addressFact:gc(l),esiaAccountTypeCd:t?.esiaAccountType}},gc=e=>{const{postcode:t,region:n,regionCode:i,locality:a,city:l,street:r,house:s,building:o,block:c,apartment:d}=e,m=[t,n,a||l,r?`ул ${r}`:void 0,s?`д ${s}`:void 0,c?`к ${c}`:void 0,o?`стр ${o}`:void 0,d?`кв ${d}`:void 0].reduce(((e,t)=>t?e?`${e}, ${t}`:t:e),"");return{...e,regionCode:i?.key,fullAddress:m}},fc=e=>{const t=Gt(),[n,r]=i(!1),[s]=vo("profileId"),[o,c]=vo("leadForm"),d=new URLSearchParams(decodeURIComponent(globalThis.location?.search)),m=d.get("code"),u=d.get("state"),h=l((async()=>{if(s&&m&&u){const i=await(n={profileId:s,code:m,state:u,redirectUri:t.href},Zi("/esia/updateProfileEsia","POST",n));i&&c({...o,...pc(i)}),t.assign(e)}var n}),[]);return a((()=>{m?(r(!0),h()):(sessionStorage.removeItem("accessToken"),sessionStorage.removeItem("refreshToken"))}),[]),{isLoading:n}},xc=d((({className:e,title:t,programId:n="",nextStepLink:l="/credit-lead",sections:r=[],button:s,...d})=>{const m=r?.flatMap((e=>e?.inputs))||[],[h,p]=i(""),{isLoading:g}=fc(l),[f,x]=vo("leadForm"),y=Io(m,f),{handleSubmit:b,responseStatus:v}=cc({inputs:m,programId:n,nextStepLink:l,saveForm:x});if(v){so({responseType:v}).open()}const[,{field:N,onSubmit:w,reset:C}]=tn(y,{onSubmit:b});return a((()=>{"OK"===h&&(p(""),C())}),[h]),o(an,{className:u("container space-y-m",e),title:t,...d,children:c("form",{onSubmit:w,className:"space-y-m relative",children:[g?o(Ai,{blur:!1}):null,r.map(((e,t)=>c("div",{className:u(ao(e.columns),"grid gap-x-m"),children:[lo(e.title),Co({field:N,inputs:e?.inputs})]},`section-${t}`))),To(s)]})})})),yc=d((({title:e,description:t})=>{const n=Se();return c("div",{className:"bg-white p-6xl py-20 flex gap-s flex-col @xl:items-center",children:[o(ne,{image:{icon:"MagnifierIcon",iconVersion:"normal"},width:"120",height:"120"}),o(k,{title:e,description:t,headlineVersion:n?"L":"S",isEmbedded:!0,className:"space-y-s"})]})})),bc=(e=!1)=>e?"border border-solid border-gray group-data-secondary:border-white/50 group-data-gray:border-main-divider":"",vc=e=>({height:"calc(100vh - 242px)",minHeight:`${e||866}px`}),Nc=10;function wc(e=0){const t=Math.round(e*Nc);return Array.from({length:t}).fill(0).map(((e,n)=>Math.min(n/t)),1).concat(1)}const Cc=d((({className:e,style:t,idx:n,activeIndex:i,observerOptions:c,children:d,onIntersection:m})=>{const h=function(e,{sensitivity:t,rootRef:n}={}){const i=s(null),l=r((()=>({threshold:wc(t),root:n?.current})),[t,n?.current]);return a((()=>{if(!i.current)return;const t=new IntersectionObserver(e,l);return t.observe(i.current),()=>{t.disconnect()}}),[e,l]),i}(l((e=>{e.length&&m&&m(n||0,e[e.length-1])}),[m,n]),c);return o("div",{className:u("inline-block snap-always box-border",e),style:t,"aria-current":Boolean(n===i),ref:h,role:"listitem",children:d})})),Sc=["min-w-full","lg:min-w-[50%]","lg:min-w-[33.3%]","lg:min-w-[25%]"],kc=d((({className:e,itemClassName:t,containerRef:n,activeIndex:i,visibleItemCount:a=0,gap:r=0,padding:c=0,listType:d="horizontal-list",snapAlign:m="snap-center",minHeight:h,children:p,onVisibleItemsChange:g,onVisibleIndicesChange:f})=>{const x={sensitivity:1,rootRef:n},y=s([]),b=l(((e,t)=>{const n=[...y.current||[]];n[e]=t,y.current=n,g&&g(n),f&&f(Tc(n))}),[g,f]),v=a>0?r*Number(a)-1:0,N="vertical-list"===d,w="horizontal-list"===d,C={...w?Ic(c,v):{},...N?vc(h):{},gap:`${r}px`};return o("div",{className:u("box-border overflow-auto no-scrollbar",d,e),style:C,ref:n,role:"list",children:(S=(e,n)=>o(Cc,{className:u(m,a?Sc[a-1]:"",{"h-full":N},t),style:w?Ic(c/4):{},activeIndex:i,idx:n,observerOptions:x,onIntersection:b,children:e},String(n)),e=>null==e?e:Array.isArray(e)?e.map(S):S(e,0))(p)});var S})),Ic=(e,t=0)=>({marginLeft:-e+"px",marginRight:-e+"px",paddingLeft:`${e}px`,paddingRight:`${e+t}px`}),Tc=e=>e.map(((e,t)=>[e,t])).filter((([e])=>e&&e.intersectionRatio>=.9)).map((([,e])=>e)),Bc={"horizontal-list":"w-6","vertical-list":"h-6"},Pc=({activeIndex:e,onClick:t,listType:n="horizontal-list"})=>(i,a)=>o("div",{className:u("cursor-pointer rounded-full transition-width duration-300 bg-primary-main group-data-secondary:bg-white",a===e?Bc[n]:"w-2 h-2 opacity-30"),role:"button","aria-hidden":!0,onClick:()=>t(a)},String(a)),Rc=({activeIndex:e,onClick:t})=>(n,i)=>{const a=i===e,l=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: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-l":"text-m group-data-secondary:text-white/80";return c("button",{type:"button",onClick:()=>t(i),"aria-label":n?.title,className:u("max-h-28 mt-xs ml-xs relative px-xl box-border overflow-hidden text-left grow basis-0 border border-gray group-data-secondary:border-white/50 whitespace-nowrap",l),children:[o("div",{className:r,children:n?.title}),o("div",{className:u("text-secondary-text font-light",s),children:n?.description})]},String(i))},Dc=e=>e,Mc=(e=Dc)=>t=>t.reduceRight(((t,n)=>e(t)>e(n)?t:n)),_c=Mc(),Ac=(e=Dc)=>Mc((t=>-e(t))),Ec=Ac(),zc=e=>t=>e.scrollWidth/t,Fc=e=>(t,n)=>{e.scrollBy({left:n*zc(e)(t),behavior:"smooth"})},Oc=({itemCount:e,onVisibleIndicesChange:t})=>{const n=s(null),[a,r]=i([]),o=l((e=>{r((t=>{return(n=t)===(i=e)||Boolean(n&&i&&n?.length===i?.length&&n.every(((e,t)=>e===i[t])))?t:e;var n,i})),t&&t(e)}),[t]),[c,d]=a.length?[Ac()(a),Mc()(a)]:[-1,-1],m=c>0,u=d<e-1,h=l((()=>{var t;n.current&&(m?Fc(n.current)(e,-1):(t=n.current).scrollTo({left:t.scrollWidth,behavior:"smooth"}))}),[e,m]),p=l((()=>{n.current&&(u?Fc(n.current)(e,1):n.current.scrollTo({left:0,behavior:"smooth"}))}),[e,u]),g=l(((e,t={behavior:"smooth",block:"nearest",inline:"center"})=>{n?.current&&n.current.children[e]?.scrollIntoView(t)}),[n]);return[n,{scrollLeft:h,scrollRight:p,scrollTo:g,canScrollLeft:m,canScrollRight:u,visibleIndicesRange:[c,d],handleVisibleIndicesChange:o}]},Vc={"horizontal-list":"mx-auto mt-lg w-fit","vertical-list":"absolute flex-col justify-center h-full top-0 left-4"},Lc=d((({className:e="",activeIndex:t=0,dotCount:n=0,listType:i="horizontal-list",version:r,navButtons:s=[],containerRef:c,containerScroll:d})=>{const m=Se(),[h,p]=Oc({itemCount:s.length}),g=jc(Boolean(s?.length));a((()=>{s?.length&&t>=0&&h?.current&&p.scrollTo(t,g)}),[t]);const f=l((e=>{e!==t&&c?.current&&d?.scrollTo(e,g)}),[c?.current]);return s?.length&&!m?o(kc,{containerRef:h,snapAlign:"snap-start",itemClassName:"h-36 flex items-stretch w-screen",gap:8,children:s.map(Rc({activeIndex:t,onClick:f}))}):n?o("div",{className:u("flex gap-xs",Vc[i],r?"group":"",e,{"pb-xl":s?.length&&m}),"data-ver":r,children:Array.from({length:n}).fill(null).map(Pc({activeIndex:t,onClick:f,listType:i}))}):null})),jc=(e=!1)=>({behavior:e?"auto":"smooth"}),qc=d((({className:e,disabled:t,...n})=>o(ve,{rounded:!0,className:u("group/btn w-12 h-12 min-h-12 max-h-12 flex items-center justify-center shadow-main-black",t?"bg-secondary-light text-secondary-text":"bg-white text-primary-text hover:text-primary-main",e),disabled:t,...n,children:o(ne,{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"})}))),$c=d((e=>o(qc,{...e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left"}))),Uc=d((e=>o(qc,{...e,className:`${e.className||""} rotate-180`,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right"}))),Wc="absolute top-0 bottom-0 z-40 hidden @lg:block w-20 pointer-events-none",Hc=d((({className:e,scroll:t,hasBlur:n,arrowsPadded:i,isBottom:a})=>{const{canScrollLeft:l,canScrollRight:r,scrollLeft:s,scrollRight:d}=t,m=i&&!a;return c("div",{className:e,children:[n?Yc(t):null,l?o($c,{className:u(Kc(a),m?"left-1":"left-0"),onClick:s}):null,r?o(Uc,{className:u(Kc(a),m?"right-1":"right-0"),onClick:d}):null]})})),Yc=e=>c("div",{children:[e.canScrollLeft?o("div",{className:u(Wc,"left-0 bg-opacity-from-white group-data-secondary:bg-none")}):null,e.canScrollRight?o("div",{className:u(Wc,"right-0 bg-opacity-to-white group-data-secondary:bg-none")}):null]}),Kc=(e=!1)=>u("absolute z-40",e?"bottom-[56px]":"top-[calc(50%-24px)]"),Gc=d((({className:e,version:t,gap:n=14,padding:i=16,visibleItemCount:a=1,listType:l="horizontal-list",snapAlign:r,minHeight:s,showArrows:d,hasBlur:m,arrowsPadded:h,showDots:p,children:g,onVisibleIndicesChange:f,navButtons:x})=>{const y=Array.isArray(g)?g.length:0,[b,v]=Oc({itemCount:y,onVisibleIndicesChange:f}),[N]=v.visibleIndicesRange;return c("div",{className:u(e,"vertical-list"===l?"relative h-full":""),children:[o(kc,{containerRef:b,activeIndex:N,visibleItemCount:a,gap:n,padding:i,listType:l,snapAlign:r,minHeight:s,onVisibleIndicesChange:v.handleVisibleIndicesChange,children:g}),o(Hc,{className:u(!d&&"hidden lg:block"),scroll:v,hasBlur:m,arrowsPadded:h,isBottom:Boolean(x?.length)}),o(Lc,{className:u(!p&&"lg:hidden"),activeIndex:N,dotCount:y,listType:l,version:t,navButtons:x,containerRef:b,containerScroll:v})]})})),Xc=({blocksToRender:e,...t})=>o(Gc,{visibleItemCount:0,gap:0,arrowsPadded:!0,children:R(e,{...t.options,parent:t.block,renderProps:(e,t,n)=>o("div",{className:u("relative min-w-80",bc(!0)),children:B(e,t)},String(n))})}),Jc=e=>e%2!=0,Zc=d((({textNode:e,iconNode:t,tag:n,onClick:i,justifyContent:a="between",className:l,role:r,...s})=>c(n,{tag:n,className:u("flex items-center w-full gap-1","between"===a?"justify-between":"justify-center",l),onClick:i,role:r,...s,children:[e?o("div",{children:e}):null,t?o("div",{children:t}):null]}))),Qc=d((({className:e="",label:t,icon:n,dataTheme:i="pc",disabled:a=!1,onClick:l})=>o(Zc,{tag:"button",onClick:l,disabled:a,"data-theme":i,justifyContent:"center",role:"button",className:u("py-4 border border-transparent outline-none focus:border-primary-text space-x-s",a?"bg-main-divider text-main-disabled hover:bg-main-divider":"bg-primary-main text-white hover:bg-primary-hove",e),textNode:o(_e,{size:"text-h4",children:t}),iconNode:n?o(ne,{image:{icon:n,iconVersion:"white"},className:"my-auto",width:"20",height:"20"}):null}))),ed=({isUnfolded:e,onToggle:t})=>o(Qc,{icon:["ArrowDownIcon","ArrowUpIcon"][Number(e)],label:["Развернуть","Скрыть"][Number(e)],onClick:t}),td=["ArrowDownIcon","ArrowUpIcon"],nd="space-y-px lg:space-y-0 lg:grid lg:grid-cols-12 gap-2xs",id=({topItemsCount:e=0,label:t="",block:n,blocksToRender:i=[],...a})=>{const[l,r]=e>0?[i.slice(0,e),i.slice(e)]:[i,[]];return c("div",{className:u("space-y-2xs",{hidden:!i.length}),children:[c("div",{className:u(nd),children:[R(l,{...a.options,parent:n}),Jc(l.length)?o(Ot,{className:"col-span-6",...a}):null]}),o(na,{renderFoldableSection:({isUnfolded:e})=>c(ia,{className:u(nd),isUnfolded:e,children:[R(r,{...a.options,parent:n}),Jc(r.length)?o(Ot,{className:"col-span-6",...a}):null]}),renderFoldButton:({isUnfolded:n,onToggle:i})=>o(Qc,{className:u({hidden:e<1}),disabled:!r?.length,label:t,icon:td[Number(n)],dataTheme:a.options?.page?.colorPalette,onClick:i})})]})},ad=d((({blocksSection:e,blocksToRender:t=[],notFound:n,...i})=>{switch(e?.view){case"grid":return c("div",{children:[ld(n,t),id({...e,...i,blocksToRender:t})]});case"carousel":return c("div",{className:"relative",children:[ld(n,t),Xc({...i,blocksToRender:t})]});default:return null}})),ld=(e,t)=>e&&!t.length?o(yc,{...e}):null,rd=e=>t=>t.reduce(((t,n,i)=>t.length?t.concat({...e,key:`sep-${i}`},n):[n]),[]),sd=d((({value:e,onChange:t,items:n=[],multiple:i})=>n.map((n=>o(cs,{text:n?.title,value:[e].flatMap((e=>e)).includes(n.value),onChange:()=>(n=>{if(!t)return;const a=e?.includes(n);t(i?a?(e||[]).filter((e=>e!==n)):[...e||[],n]:a?[]:[n])})(n.value),type:i?"checkbox":"radio"},n.value))))),od=d((({children:e,filtrationSchema:t,resetButton:n,field:i,reset:a})=>c("form",{className:"flex flex-col @4xl:flex-row justify-between bg-white p-4xl gap-s @4xl:gap-0",children:[c("div",{className:"flex flex-col @4xl:flex-row gap-xl",children:[e,rd(o("div",{className:"h-full w-px bg-gray hidden @4xl:block"}))(Object.entries(t).map(cd(i)).filter(Boolean))]}),n?o("div",{children:o(ja,{type:"reset",className:"w-full @4xl:w-56 @4xl:ml-s",onClick:a,children:n?.text})}):null]}))),cd=e=>([t,n])=>{const i=n?.type;return"array"===i?dd(t,e)(n):null},dd=(e,t)=>n=>{const i=n?.items?.enum?.map(((e,t)=>({value:e,title:n?.items?.enumNames?.[t]||""})))||[];return c("div",{className:"flex-1",children:[n?.title?o("div",{className:"mb-m",children:o(_e,{size:"text-m",font:"font-medium",color:"text-primary-text",children:n.title})}):null,o(sd,{items:i,multiple:!n?.single,...t(e)})]},e)};function md(e,...t){return e.map(((e,n)=>[e,...t.map((e=>e[n]))]))}const ud=e=>null==e||""===e||Array.isArray(e)&&0===e.length||"object"==typeof e&&0===Object.keys(e).length,hd=(e,t)=>Object.entries(e).map((([n,i])=>"number"==typeof i?Array.isArray(t[n])?((e,t)=>n=>ud(t[e])||ud(n[e])||n[e]?.includes(t[e]))(n,e):((e,t)=>n=>ud(t[e])||ud(n[e])||pd(t[e])<=pd(n[e]))(n,e):"object"==typeof i&&"min"in i&&"max"in i?((e,t)=>n=>ud(t[e])||ud(n[e])||pd(t[e]?.min)>=pd(n[e]?.min)&&pd(t[e]?.min)<=pd(n[e]?.max))(n,e):Array.isArray(i)?((e,t)=>n=>ud(t[e])||ud(n[e])||t[e]?.every((t=>n[e]?.includes(t))))(n,e):((e,t)=>n=>ud(t[e])||ud(n[e])||t[e]===n[e])(n,e))).every((e=>e(t))),pd=e=>Number(e||0),gd=(e,{block:t,page:n,normalize:i=en})=>{const a=t?.blocks||[],[l,{field:s,reset:o,update:c}]=tn(e),d=r((()=>md(a,a.map((e=>At(e.content,n?.fallback))))),[a,n?.fallback]),m=l===e?a:((e,t)=>(n=en)=>e?.filter((([,e])=>hd(t,n(e)||{}))).map((([e])=>e)))(d,l)(i);return[l,{blocksToRender:m,blocksWithProps:d},{field:s,reset:o,update:c}]},fd={},xd={},yd=zt((({className:e,filtrationSchema:t=fd,consumerField:n={},resetButton:i,...a})=>{const[,{blocksToRender:l},{field:r,reset:s}]=gd(xd,{block:a.block,page:a.options?.page}),d=o(Rn,{className:"w-64",label:n?.title,options:bd(n),...r("consumer",{parse:({key:e})=>[e],format:([e]=[])=>bd(n).find((t=>t.key===e))||{key:""}})});return c(g,{className:u(e),defaultPadding:"p-0",version:"transparent",...a,children:[o(od,{filtrationSchema:t,field:r,reset:s,children:c("div",{children:[d,o("div",{children:o(ja,{type:"reset",className:"mt-lg w-64",onClick:s,version:i?.version,children:i?.text})})]})}),o(ad,{blocksToRender:l,...a})]})}),{childrenTypes:["CarouselTariffsCard"],childSchema:e=>({...e?.filtrationSchema,...e?.consumerField?{consumer:e?.consumerField}:{}})}),bd=e=>md(e.items?.enum||[],e.items?.enumNames||[]).map((([e,t])=>({key:e,text:t}))),vd=(e=!1)=>e?"text-left":"text-center",Nd={"":"bg-main-divider group-data-secondary:bg-white/30",primary:"bg-main-divider",secondary:"bg-secondary-light",opacity:"bg-white/30"},wd=d((({className:e,defaultIconSize:t=44,iconBgVersion:n="primary",size:i,icon:a,...l})=>{const r=String(i?.width||t);return a?o("div",{style:{width:`${r}px`,height:`${r}px`},className:u("rounded-icon object-fit flex justify-center items-center",Nd[n],e),children:o(W,{...l,width:"54%",height:"54%",name:a})}):null})),Cd=d((({className:e="",title:t,benefitList:n,...i})=>{const a=Se();return c(g,{className:e,defaultPadding:"p-6xl",...i,children:[t?o(w,{headingType:"h3",as:"h2",className:vd(a),title:t}):null,n?.length?o("div",{className:"flex flex-col @md:flex-row flex-wrap w-full @md:justify-center mt-xl gap-5xl",role:"list",children:n.map(Sd)}):null]})})),Sd=({label:e,description:t,__html:n,icon:i,isDotted:a=!1,iconBgVersion:l},r)=>c("div",{className:"flex gap-m items-center @md:basis-1/2 @md:max-w-[500px]",role:"listitem",children:[i?.icon?o(wd,{className:"shrink-0",iconBgVersion:l,...i}):null,i?.src?o(ne,{className:"shrink-0",image:i}):null,e?c("div",{className:"@sm:h-full space-y-xs",children:[o(w,{headingType:"h6",children:e}),o(_e,{size:"text-l",color:"text-secondary-text group-data-secondary:text-white/80",font:"font-light",children:t}),n?o(De,{__html:n,isDotted:a,itemSize:"list-s"}):null]}):null]},String(r)),kd=(e,t,n)=>{return o(Gc,{children:e.map((i=n,({icon:e,title:t,description:n},a)=>c("div",{className:u("flex flex-col gap-1","justify-between p-m h-full border border-gray",{"justify-center":!n&&!t}),children:[t?o(_e,{size:"text-h6",font:"font-normal",align:i,children:t}):null,e?o(ne,{image:e,height:"180",className:"w-auto mx-auto"}):null,n?o(_e,{size:"text-h6",font:"font-normal",align:i,children:n}):null]},String(a))))});var i},Id=d((({bonusBenefits:e,cardTextAlign:t="text-center",className:n="",columnsCount:i="4",subtitle:a,title:l,...r})=>c(g,{className:u("space-y-3xl",n),defaultPadding:"p-6xl",...r,children:[o(k,{defaultPadding:"",title:l,description:a,headlineVersion:"M"}),e?.length?kd(e,0,t):null]}))),Td={start:"justify-start",center:"justify-center",end:"justify-end"},Bd=d((({buttons:e,className:t="",align:n,...i})=>{const a=n&&u("flex",Td[n]);return o(g,{className:u("!bg-transparent",a,t),defaultPadding:"p-0",...i,children:je(e)})})),Pd=d((({className:e,title:t,children:n,...i})=>c(g,{className:u("space-y-xl",e),defaultPadding:"p-4xl",...i,children:[t?o(w,{className:"text-center",title:t}):null,n]}))),Rd="flex flex-col justify-between lg:flex-row gap-x-4xl gap-y-7 lg:gap-y-4xl",Dd="flex flex-col lg:max-w-80 lg:w-1/2 gap-2xl",Md="flex flex-col gap-y-xl min-w-52",_d=d((({value:e,fractionDigits:t,fixed:n,prefix:i,postfix:a})=>o(_e,{size:"text-h3",children:"number"==typeof e?[i,We(t,{fixed:n})(e),a].filter(Boolean).join(" "):e}))),Ad=d((({className:e,title:t,value:n,color:i="text-secondary-text",...a})=>c("div",{className:u("flex justify-between @xl:flex-col",e),children:[t?o(_e,{size:"text-l",font:"font-light",color:i,children:t}):null,n?o(_d,{value:n,...a}):o(_e,{size:"text-h3",children:"-"})]}))),Ed=(e,t)=>e?o(C,{size:"text-xs",font:"font-light",color:"text-secondary-text",children:e},String(t)):null,zd=d((({rate:e=0,title:t="Ставка",unit:n,fractionDigits:i=2,depositeName:a,isShowDepositeName:l,color:r="text-secondary-text"})=>c("div",{children:[o(_e,{size:"text-l",font:"font-light",color:r,children:t}),c("div",{className:"relative",children:[c("div",{className:"flex @xl:justify-center gradient-color-text",children:[o("span",{className:"font-mohave text-title-huge -mt-m tracking-[-15px]",children:We(i,{fixed:!0})(e)}),n?o("span",{className:"text-7xl mt-5",children:n}):null]}),a&&l?o("div",{className:"absolute bottom-2 w-full text-left whitespace-nowrap",children:a}):null]})]}))),Fd=d((({title:e="Ставка"})=>c("div",{className:"space-y-s min-w-96",children:[o(_e,{size:"text-l",font:"font-light",color:"text-secondary-text",children:e}),o(W,{className:"w-10 h-auto lg:w-40",name:"PercentIcon"}),o("div",{className:"w-64",children:o(C,{size:"text-xl",font:"font-light",color:"text-primary-text",children:"Процентная ставка не найдена, выберите другие параметры"})})]}))),Od=({title:e="Ставка",rate:t=0,unit:n="%",fractionDigits:i=2,color:a="text-secondary-text",children:l,...r})=>t?c("div",{className:"flex flex-col",children:[o("div",{className:"hidden lg:block min-w-96",children:o(zd,{title:e,rate:t,unit:n,fractionDigits:i,color:a,...r})}),o(Ad,{className:"lg:hidden",title:e,value:t,postfix:n,fractionDigits:i,fixed:!0,color:a,...r}),l]}):o(Fd,{title:e,...r}),Vd=({isShowItems:e=!0,step:t=1e3,postfix:n="₽",...i})=>o(ul,{items:e?[`От ${We(1)(i.min||0)} ${n}`,`До ${We(1)(i.max||0)} ${n}`]:[],step:t,...i}),Ld={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},jd={minSumTravel:6e3,maxSumTravel:2e5,minSumOther:6e3,maxSumOther:2e5,maxBonus:5e3,prefMonthsNum:2,prefTravelBonusRate:.015,prefRestBonusRate:.01,travelBonusRate:.015,restBonusRate:.01},qd=(e,t)=>{const{travelExpenseValue:n,restExpenseValue:i}=e,[a,l]=((e,t,n)=>{const{maxBonus:i=5e3,prefMonthsNum:a=Ld.prefMonthsNum,prefTravelBonusRate:l=Ld.prefTravelBonusRate,prefRestBonusRate:r=.01,travelBonusRate:s=.015,restBonusRate:o=.01}=e,c=Math.min(Math.round(l*t)+Math.round(r*n),i);return[c,c*a+Math.min(Math.round(s*t)+Math.round(o*n),i)*(12-a)]})(t||jd,n,i);return{...t,...e,monthBonus:a,yearBonus:l}},$d=zt((({className:e="",title:t,calcSource:n,buttons:i,footnote:a,...l})=>{const[r,{field:s}]=tn({travelExpenseValue:6e3,restExpenseValue:6e3}),{minSumTravel:d,maxSumTravel:m,minSumOther:h,maxSumOther:p,monthBonus:g,yearBonus:f}=qd(r,n);return o(Pd,{className:e,title:t,...l,children:c("section",{className:u(Rd,e),children:[c("div",{className:Dd,children:[Vd({title:"Сумма покупок в категории путешествия, ₽",min:d,max:m,step:500,isShowItems:!1,...s("travelExpenseValue")}),Vd({title:"Сумма покупок в остальных категориях, ₽",min:h,max:p,step:500,isShowItems:!1,...s("restExpenseValue")})]}),o("div",{className:"mb-s",children:g>=0?Od({title:"Баллов за месяц",rate:g,fractionDigits:0,unit:"",color:"text-primary-text"}):null}),c("div",{className:Md,children:[f>=0?o(Ad,{title:"Баллов за год",value:f,color:"text-primary-text"}):null,je(i,{isVertical:!0}),Ed(a)]})]})})})),Ud=Math.round(29.5),Wd=(e,t=0)=>e?.sum?e.sum:t,Hd=(e,t=0)=>e?.period&&e.period>=1&&e.period<=60?e.period:t,Yd=e=>`${e} ${Number(e)%10==1?"дня":"дней"}`,Kd=({items:e,title:t,mobileTitle:n=t,orientation:i="horizontal",value:a,onChange:l,...r})=>c("div",{className:"grid gap-s whitespace-nowrap",children:[t?o("div",{className:"hidden @5xl:block",role:"radiogroup","aria-label":t,children:o(_e,{color:"text-secondary-text",font:"font-light",children:t})}):null,n?o("div",{className:"@5xl:hidden",role:"radiogroup","aria-label":n,children:o(_e,{color:"text-secondary-text",font:"font-light",children:n})}):null,o(hr,{orientation:i,items:e,value:e[a?0:1].id,onChange:t=>l&&l(t===e[0].id),...r})]}),Gd=e=>Kd({...e,items:[{id:"everyMonth",text:"Ежемесячно"},{id:"atEndTerm",text:"В конце срока"}]}),Xd=" (c капитализацией)",Jd=({income:e,finalSum:t,postfix:n="₽",buttons:i=[],footnotes:a=[],isCapitalization:l=!1})=>c("div",{className:Md,children:[o(Ad,{title:`Доход в конце срока${l?Xd:""}`,value:e,postfix:n,prefix:"+"}),o(Ad,{title:`Сумма в конце срока${l?Xd:""}`,value:t,postfix:n}),je(i,{isVertical:!0}),a?.map(Ed)]}),Zd=([e,t],n,i=[])=>n&&n[e]&&n[t]?{[e]:n[e],[t]:n[t]}:Qd([e,t],i),Qd=([e,t],n=[])=>({[e]:n.length?Ec(n.filter((t=>"number"==typeof t[e])).map((t=>t[e]))):0,[t]:n.length?_c(n.filter((t=>"number"==typeof t[e])).map((e=>e[t]))):0}),em=(e,[t,n],i)=>e>=i[t]&&e<=i[n],tm={UL:"businessdepositrates",IP:"selfemployeddepositrates"};const nm={minSum:1e3,maxSum:100000001,minDays:1,maxDays:1095,rate:0,isMonthlyInterestPayment:!0,isReplenished:!1,isPartialWithdrawal:!1,depositeName:"Депозит 'Стабильный'"},im=(e,t)=>{const{daysValue:n,moneyValue:i,isPartialWithdrawal:a,isReplenished:l,isMonthlyInterestPayment:r}=e,s=l||a,o=n<90||n>730,c=function(e){const t=e?.rateType?tm[e?.rateType]:"",{data:n}=pi(t?`${qt}/depositrates/${t}`:null,Rt);return Array.isArray(n)?n:[]}(t),d=c?.find((e=>r===e.isMonthlyInterestPayment&&am(s,e)&&em(i,["minSum","maxSum"],e)&&em(n,["minDays","maxDays"],e)))||nm,{rate:m}=d,u=lm(m,e),h=i+u,p=c||[nm];return{...d,...Qd(["minSum","maxSum"],p),...Qd(["minDays","maxDays"],p),...e,isDisabledOperatingDeposit:o,income:u,finalSum:h}},am=(e,t)=>e?t.isReplenished&&t.isPartialWithdrawal:!t.isReplenished&&!t.isPartialWithdrawal,lm=(e,t)=>{const{isMonthlyInterestPayment:n,moneyValue:i,daysValue:a}=t;return n?Math.round(i*Math.pow((1200+e)/1200,a/30)-i):Math.round(i*e*a/365/100)},rm=zt((({className:e="",title:t,buttons:n,footnote:i,bottomFootnote:a,isShowDepositeName:l,defaultParams:r,rateParams:s,...d})=>{const[m,{field:h}]=tn({moneyValue:Wd(r,1e5),daysValue:Hd(r,60),isReplenished:Boolean(r?.isReplenished),isPartialWithdrawal:Boolean(r?.isPartialWithdrawal),isMonthlyInterestPayment:Boolean(r?.isMonthlyInterestPayment)}),p=im(m,s),{income:g,finalSum:f,rate:x,depositeName:y}=p;return o(Pd,{className:e,title:t,...d,children:c("section",{className:u(Rd,e),children:[c("div",{className:Dd,children:[Vd({title:"Сумма, ₽",min:p.minSum,max:p.maxSum,...h("moneyValue"),value:p.moneyValue}),(b={title:"Срок, дней",min:p.minDays,max:p.maxDays,...h("daysValue"),value:p.daysValue},o(ul,{items:[`От ${Yd(b.min||0)}`,`До ${Yd(b.max||0)}`],step:1,...b})),c("div",{className:"flex flex-col sm:flex-row gap-y-m gap-x-5xl",children:[sm(p,h),Gd({title:"Выплата процентов",orientation:"vertical",...h("isMonthlyInterestPayment"),className:"sm:flex-col"})]})]}),Od({rate:x,depositeName:y,isShowDepositeName:l}),Jd({income:g,finalSum:f,buttons:n,footnotes:[i,a]})]})});var b})),sm=(e,t)=>c("div",{className:"space-y-s",children:[o(_e,{color:"text-secondary-text",font:"font-light",children:"Параметры"}),c("div",{className:"flex flex-col gap-y-lg sm:gap-y-s",children:[o(Ti,{text:"Пополнение",disabled:e.isDisabledOperatingDeposit,...t("isReplenished"),value:e.isReplenished}),o(Ti,{disabled:e.isDisabledOperatingDeposit,text:"Частичное снятие",...t("isPartialWithdrawal"),value:e.isPartialWithdrawal})]})]}),om=(e=[],t=!1)=>cm([(e,t)=>e>t,(e,t)=>e?.minSum<t?.minSum],e?.filter((e=>t===Boolean(e?.isNewClient)))),cm=(e,t)=>{if(!t?.length)return;const n=t?.reduce(((t,n)=>e[0](n.rate,t[0].rate)?[n]:n.rate===t[0].rate?[...t,n]:t),[t[0]]);return n.length>1?n.reduce(((t,n)=>e[1](n,t)?n:t),n[0]):n[0]},dm=({min:e=0,max:t=0,availableMonths:n,...i})=>o(ul,{items:[`От ${mm(e)}`,`До ${mm(t)}`],step:1,...n?.length?{list:n}:{min:e,max:t},...i}),mm=e=>`${e} ${Number(e)%10==1?"месяца":"месяцев"}`,um=e=>Kd({...e,className:"sm:flex-col",items:[{id:"annuity",text:"Аннуитетный"},{id:"differential",text:"Дифференцированный"}]}),hm=({field:e,defParams:t,calcParams:n,map:i,monthsValue:a="maxMonths"})=>{Object.entries(i).forEach((([n,i])=>{e?.(n)?.onChange?.(t?.[i])})),e?.("monthsValue")?.onChange?.(sl(t?.[a],n.minMonths,n.maxMonths))},pm=(e,t)=>{const{isAnnuity:n,moneyValue:i,monthsValue:a,moneyExtra:l}=t;if(0===e)return 0;if(n){const t=e/1200;return l?(i+l)*(t+t/(Math.pow(1+t,a)-1)):i*(t+t/(Math.pow(1+t,a)-1))}return Math.round(i/a)+i*(e/1200)},gm={minSum:1e4,maxSum:5e6,minMonths:1,maxMonths:60,rate:0,isSalaryClient:!1,isPensionClient:!1,isStateEmployee:!1,isInsurance:!0},fm=e=>xm({...e,fieldKey:"isSalaryClient",viewSettingFieldKey:"isShowSalaryClient"})&&xm({...e,fieldKey:"isStateEmployee",viewSettingFieldKey:"isShowStateEmployee"})&&xm({...e,fieldKey:"isPensionClient",viewSettingFieldKey:"isShowPensionClient"})&&xm({...e,fieldKey:"isInsurance",viewSettingFieldKey:"isShowInsurance"}),xm=({row:e,userInputParams:t,paramsViewSettings:n,fieldKey:i,viewSettingFieldKey:a})=>!!n&&!n[a]||t[i]===e[i],ym=(e,t,n)=>{const{moneyValue:i,monthsValue:a}=e,l=t?.rateRows||[gm],r=(({limitRows:e,userInputParams:t,paramsViewSettings:n})=>e?.find((e=>fm({row:e,userInputParams:t,paramsViewSettings:n}))))({limitRows:t?.limitRows||[],userInputParams:e,paramsViewSettings:n}),{minSum:s,maxSum:o}=Zd(["minSum","maxSum"],r,l),{minMonths:c,maxMonths:d}=Zd(["minMonths","maxMonths"],r,l),m=(({rateRows:e=[],userInputParams:t,paramsViewSettings:n,moneyValue:i,monthsValue:a})=>e?.find((e=>fm({row:e,userInputParams:t,paramsViewSettings:n})&&em(i,["minSum","maxSum"],e)&&em(a,["minMonths","maxMonths"],e)))||gm)({rateRows:l,userInputParams:e,paramsViewSettings:n,moneyValue:i,monthsValue:a}),{rate:u}=m,h=pm(u,e);return{...m,...e,minSum:s,maxSum:o,minMonths:c,maxMonths:d,moneyValue:i,monthsValue:a,monthlyPayment:h}},bm=(e={})=>Boolean(Object.values(e).filter((e=>e)).length),vm={isSalaryClient:"isSalaryClient",isStateEmployee:"isStateEmployee",isPensionClient:"isPensionClient",isInsurance:"isInsurance",moneyValue:"maxSum"},Nm=zt((({className:e,title:t,calcSource:n,buttons:i,footnote:l,paramsViewSettings:r,defaultParams:s,registerSubmit:d,...m})=>{const h=(p=n?.rateRows,cm([(e,t)=>e<t,(e,t)=>e?.maxSum>t?.maxSum],p));var p;const[g,{field:f,onSubmit:x}]=tn({moneyValue:Wd(s,2e5),monthsValue:Hd(s,Ud),isAnnuity:Boolean(s?.isAnnuity),isInsurance:Boolean(s?.isEnableInsurance),isSalaryClient:Boolean(s?.isEnableSalaryClient),isPensionClient:Boolean(s?.isEnablePensionClient),isStateEmployee:Boolean(s?.isEnableStateEmployee)});d?.(x);const y=ym(g,n,r),b=um({title:"Тип платежа",orientation:"vertical",...f("isAnnuity")}),{onChange:v}=f("moneyValue"),{onChange:N}=f("monthsValue");return a((()=>{v&&v(sl(g.moneyValue,y.minSum,y.maxSum))}),[y.minSum,y.maxSum]),a((()=>{N&&N(sl(g.monthsValue,y.minMonths,y.maxMonths))}),[y.minMonths,y.maxMonths]),a((()=>{!bm(s)&&h&&hm({field:f,defParams:h,calcParams:y,map:vm,monthsValue:"minMonths"})}),[n,s]),o(Pd,{className:e,title:t,...m,children:c("section",{className:u(Rd,e),children:[c("div",{className:Dd,children:[Vd({title:"Сумма кредита, ₽",step:500,min:y.minSum,max:y.maxSum,...f("moneyValue"),value:y.moneyValue}),dm({title:"Срок кредита, месяцев",min:y.minMonths,max:y.maxMonths,...f("monthsValue"),value:y.monthsValue}),wm({...y,...r},f),o("div",{className:"sm:hidden",children:b})]}),c("div",{className:u(Md,"@4xl:w-1/2"),children:[o(Ad,{title:"Полная стоимость кредита",value:n?.totalLoanCost}),o(Ad,{title:"Ставка",value:y?.rate,fractionDigits:2,postfix:"%"}),o(Ad,{title:"Ежемесячный платёж",value:y.monthlyPayment,postfix:"₽"}),o("div",{className:"hidden sm:block mb-lg",children:b}),je(i,{isVertical:!0}),Ed(l)]})]})})})),wm=(e,t)=>c("div",{className:"flex flex-col gap-y-2xl",children:[e.isShowSalaryClient?o(Ti,{text:"Получаю зарплату на счёт\nв Россельхозбанке",...t("isSalaryClient"),value:e.isSalaryClient,className:"whitespace-pre-line sm:whitespace-normal"}):null,e.isShowStateEmployee?o(Ti,{text:"Работаю в бюджетной организации",...t("isStateEmployee"),value:e.isStateEmployee}):null,e.isShowPensionClient?o(Ti,{text:"Получаю пенсию на карту Россельхозбанка",...t("isPensionClient"),value:e.isPensionClient}):null,e.isShowInsurance?o(Ti,{text:"Комплексная страховая защита",...t("isInsurance"),value:e.isInsurance}):null]}),Cm=e=>{const t=[...e];t.sort((([e],[t])=>e-t));let n=1;for(;n<t.length;){const[e,i]=t[n-1],[a,l]=t[n];i>=a?t.splice(n-1,2,[e,Math.max(i,l)]):n++}return t},Sm={minSum:5e4,maxSum:100000001,minMonths:2,maxMonths:10,rate:0,isMonthlyInterestPayment:!0,isRemoteRegistration:!0,isReplenish:!1,isWithdrawn:!1,type:""},km=(e,t,n)=>{const{moneyValue:i,monthsValue:a}=e,l=t?.[0]?Bm(t[0].minMonths,t[0].maxMonths):0,r=!n?.isShowMonthlyInterestPayment,s=!n?.isShowRemoteRegistration,o=!n?.isShowReplenish,c=!n?.isShowWithdrawn,d=!n?.isShowNewClient,m=t?.find((t=>[Tm({row:t,userInputParams:e,paramKey:"isReplenish",isExclude:o}),Tm({row:t,userInputParams:e,paramKey:"isWithdrawn",isExclude:c}),Tm({row:t,userInputParams:e,paramKey:"isMonthlyInterestPayment",isExclude:r}),Tm({row:t,userInputParams:e,paramKey:"isRemoteRegistration",isExclude:s}),d||e?.isNewClient===t?.isNewClient,em(i,["minSum","maxSum"],t),em(a||l,["minMonths","maxMonths"],t)].every(Boolean)))||Sm,{rate:u}=m,h=Im(u,e),p=i+h,g=t||[Sm];return{...m,...Qd(["minSum","maxSum"],g),...Qd(["minMonths","maxMonths"],g),availableMonths:Cm(g.map((e=>[e.minMonths,e.maxMonths]))).flatMap((([e,t])=>((e,t,n=1)=>Array.from({length:Math.abs(t-e)/n+1},((i,a)=>t>=e?e+a*n:e-a*n)))(e,t))),...e,defaultMonth:l,income:h,finalSum:p}},Im=(e,t)=>{const{isMonthlyInterestPayment:n,moneyValue:i,monthsValue:a}=t;return n?Math.round(i*Math.pow((1200+e)/1200,a)-i):Math.round(i*e*30*a/365/100)},Tm=({row:e,userInputParams:t,paramKey:n,isExclude:i})=>i||t[n]===e[n],Bm=(e,t)=>e+Math.round((t-e)/2),Pm=(e="rub")=>"rub"===e,Rm=(e,t)=>{const{minMonths:n,maxMonths:i}=Qd(["minMonths","maxMonths"],Am(t,e?.currency)),a=e.monthsValue||Math.round((n+i)/2);return{monthsValue:sl(a,n,i)}},Dm=(e,t)=>{const{minSum:n,maxSum:i}=Qd(["minSum","maxSum"],Am(t,e?.currency)),a=e.moneyValue||n;return{moneyValue:sl(a,n,i)}},Mm=(e,t)=>({currency:e?.currency??t?.map((e=>e.currency))?.[0]}),_m=e=>{const t=Pm(e?.currency?.key);return{isReplenish:t&&e?.isReplenish,isWithdrawn:t&&e?.isWithdrawn}},Am=(e,t)=>{const{rates:n}=e?.find((e=>e?.currency.key===t?.key))??{};return n??e?.[0]?.rates},Em=(e,t)=>{const n="rub"!==e?.currency?.key;return c("div",{className:"grid gap-lg",children:[c("div",{className:"flex gap-lg",children:[e.isShowReplenish?Kd({title:"Пополнение",...t("isReplenish"),value:e.isReplenish,orientation:"vertical",items:[{id:"withReplenish",text:"С пополнением"},{id:"withoutReplenish",text:"Без пополнения"}],disabled:n}):null,e.isShowWithdrawn?Kd({title:"Снятие",...t("isWithdrawn"),value:e.isWithdrawn,orientation:"vertical",items:[{id:"wthDrawn",text:"Со снятием"},{id:"noWithdrawn",text:"Без снятия"}],disabled:n}):null]}),zm(e.isShowReplenish||e.isShowWithdrawn),c("div",{className:"flex gap-lg",children:[e.isShowMonthlyInterestPayment?Gd({title:"Выплата процентов",...t("isMonthlyInterestPayment"),value:e.isMonthlyInterestPayment,orientation:"vertical"}):null,e.isShowRemoteRegistration?(i={title:"Оформление",...t("isRemoteRegistration"),value:e.isRemoteRegistration,orientation:"vertical"},Kd({...i,items:[{id:"remote",text:"Дистанционно"},{id:"office",text:"Офис Банка"}]})):null]}),zm(e.isShowNewClient),e.isShowNewClient?o(Ti,{text:"Новый вкладчик",...t("isNewClient")}):null]});var i},zm=(e=!1)=>e?o("div",{className:"border-b border-main-divider w-full"}):null,Fm={isMonthlyInterestPayment:"isMonthlyInterestPayment",isRemoteRegistration:"isRemoteRegistration",isReplenish:"isReplenish",isWithdrawn:"isWithdrawn",moneyValue:"minSum"},Om={text:"₽",key:"rub"},Vm=zt((({className:e,title:t,calcSource:n,buttons:i=[],footnote:r="",paramsViewSettings:s,defaultParams:d,...m})=>{const{rows:h}=n??{},p=h?.map((e=>e.currency))??[Om],g=l((e=>t=>e?{...t,..._m(t),...Dm(t,e),...Rm(t,e),...Mm(t,e)}:t)(h),[h]),[f,{field:x}]=tn({moneyValue:Wd(d,2e4),monthsValue:Hd(d,1),isMonthlyInterestPayment:Boolean(d?.isMonthlyInterestPayment),isRemoteRegistration:Boolean(d?.isRemoteRegistration),isReplenish:Boolean(d?.isReplenish),isWithdrawn:Boolean(d?.isWithdrawn),isNewClient:Boolean(d?.isNewClient),currency:Om},{normalize:g}),y=x?.("currency")?.value??Om,b=x?.("isNewClient")?.value,v=Am(h,y),N=km(f,v,s),{rate:w,income:C,finalSum:S,type:k=""}=N,I=l((()=>{hm({field:x,defParams:om(v,b),calcParams:N,monthsValue:"minMonths",map:Fm})}),[x,h]);a((()=>{!bm(d)&&v&&I()}),[d,h]);const T=w===om(v,b)?.rate;return o(Pd,{className:e,title:t,...m,children:c("section",{className:u(Rd,e),children:[c("div",{className:Dd,children:[c("div",{className:"flex gap-m",children:[Vd({className:"w-full",title:`Сумма, ${y?.text}`,min:N.minSum,max:N.maxSum,...x("moneyValue"),value:N.moneyValue,postfix:y?.text,step:Lm(y?.key)}),h&&h?.length>1?o(An,{label:"Валюта",options:p,...x("currency")}):null]}),dm({title:"Срок, месяцев",min:N.minMonths,max:N.maxMonths,availableMonths:N.availableMonths,...x("monthsValue"),value:N.monthsValue}),Em({...N,...s},x)]}),Od({rate:w,children:qm(I,T)}),Jd({income:C,finalSum:S,buttons:[...i,jm(n?.buttons,k)],footnotes:[r],postfix:y?.text,isCapitalization:x("isMonthlyInterestPayment").value})]})})})),Lm=(e="")=>Pm(e)?1e3:100,jm=(e=[],t="")=>{const{type:n,...i}=e.find((e=>e.type===t))??{};return i},qm=(e,t=!1)=>t?null:o(ja,{type:"button",version:"secondary",onClick:e,children:"Показать максимальную ставку"}),$m=e=>Um({...e,fieldKey:"isSalaryClient",viewSettingFieldKey:"isShowSalaryClient"})&&Um({...e,fieldKey:"isInsurance",viewSettingFieldKey:"isShowInsurance"}),Um=({row:e,userInputParams:t,paramsViewSettings:n,fieldKey:i,viewSettingFieldKey:a})=>!!n&&!n[a]||t[i]===e[i],Wm={minSum:1e4,maxSum:3e6,minSumOld:0,maxSumOld:25e5,minSumExtra:0,maxSumExtra:5e5,minMonths:13,maxMonths:60,rate:0,isExtraMoney:!1,isSalaryClient:!1,isInsurance:!0},Hm=(e,t,n)=>{const{moneyValue:i,monthsValue:a,oldMonthlyPayment:l,moneyExtra:r}=e,s=t?.rateRows||[Wm],o=(({limitRows:e,userInputParams:t,paramsViewSettings:n})=>e?.find((e=>$m({row:e,userInputParams:t,paramsViewSettings:n}))))({limitRows:t?.limitRows||[],userInputParams:e,paramsViewSettings:n}),{minSum:c,maxSum:d}=Zd(["minSum","maxSum"],o,s),{minMonths:m,maxMonths:u}=Zd(["minMonths","maxMonths"],o,s),h=(({rateRows:e=[],userInputParams:t,paramsViewSettings:n,moneyValue:i,monthsValue:a,oldMonthlyPayment:l,moneyExtra:r})=>e?.find((e=>$m({row:e,userInputParams:t,paramsViewSettings:n})&&em(i+r,["minSum","maxSum"],e)&&em(l,["minSumOld","maxSumOld"],e)&&em(r,["minSumExtra","maxSumExtra"],e)&&em(a,["minMonths","maxMonths"],e)))||Wm)({rateRows:s,userInputParams:e,paramsViewSettings:n,moneyValue:i,monthsValue:a,oldMonthlyPayment:l,moneyExtra:r}),{rate:p}=h,g=pm(p,e),f=e.oldMonthlyPayment-g;return{...h,...e,minSum:c,maxSum:d,minMonths:m,maxMonths:u,moneyValue:i,monthsValue:a,oldMonthlyPayment:l,moneyExtra:r,monthlyPayment:g,benefit:f}},Ym=zt((({className:e="",title:t,calcSource:n,buttons:i,footnote:a,paramsViewSettings:l,...r})=>{const[s,{field:d}]=tn({isAnnuity:!0,isInsurance:!0,isSalaryClient:!1,isExtraMoney:!1,moneyValue:7e5,oldMonthlyPayment:0,monthsValue:48,moneyExtra:0}),m=Hm(s,n,l),h=um({title:"",mobileTitle:"Тип платежа",orientation:"vertical",...d("isAnnuity")});return o(Pd,{className:e,title:t,...r,children:c("section",{className:u(Rd,e),children:[c("div",{className:Dd,children:[Vd({title:"Остаток долга в других банках, ₽ ",step:500,min:m.minSum,max:m.maxSum-m.maxSumExtra,...d("moneyValue"),value:m.moneyValue}),Vd({title:"Ежемесячный платёж в других банках, ₽",step:500,min:m.minSumOld,max:m.maxSumOld,...d("oldMonthlyPayment"),value:m.oldMonthlyPayment}),dm({title:"Новый срок кредита, месяцев",min:m.minMonths,max:m.maxMonths,...d("monthsValue"),value:m.monthsValue}),Km({...m,...l},d),m.isExtraMoney?Vd({title:"Дополнительная сумма, ₽ ",step:500,min:m.minSumExtra,max:m.maxSumExtra,...d("moneyExtra"),value:m.moneyExtra}):null,o("div",{className:"sm:hidden pt-1 pb-4 border-b border-main-divider",children:h})]}),c("div",{className:u(Md,"@4xl:w-1/2"),children:[o(Ad,{title:"Полная стоимость кредита",value:n?.totalLoanCost}),o(Ad,{title:"Ставка",value:m?.rate,fractionDigits:2,postfix:"%"}),o(Ad,{title:"Ежемесячный платёж",value:m.monthlyPayment,postfix:"₽"}),m.benefit>0?o(Ad,{title:"Выгода в месяц",value:m.benefit,postfix:"₽"}):null,o("div",{className:"hidden sm:block mb-lg",children:h}),je(i,{isVertical:!0}),Ed(a)]})]})})})),Km=(e,t)=>c("div",{className:"space-y-lg sm:space-y-s",children:[e.isShowSalaryClient?o(Ti,{text:"Получаю зарплату на счёт в Россельхозбанке",...t("isSalaryClient"),value:e.isSalaryClient}):null,e.isShowInsurance?o(Ti,{text:"Комплексная страховая защита",...t("isInsurance"),value:e.isInsurance}):null,o(Ti,{text:"Получить дополнительную сумму",...t("isExtraMoney"),value:e.isExtraMoney})]}),Gm=d((e=>{const{onChange:t,min:n,max:i,defaultValue:a="0",fractionDigits:r=0,...s}=e,c=rl(e,{normalize:(e=a)=>n&&i?String(sl(Number(Xm(e)),n,i)):Xm(e),format:We(r)}),d=l((e=>t&&t(Xm(e))),[t]);return o(pn,{onChange:d,...s,...c})})),Xm=(e="")=>e.replaceAll(",",".").replace(/[^\d.]/g,"").replace(/([^.]*\.[^.]*)\./,"$1"),Jm=d((e=>o(Gm,{...e,fractionDigits:2,children:o("div",{className:"absolute right-4 bottom-4",children:o(_e,{size:"text-xl",font:"font-light",children:"₽"})})}))),Zm={private:"https://old.rshb.ru/p2p/",business:"https://old.rshb.ru/smallbusiness/p2p/"},Qm={amount:1500},eu=d((({className:e="",title:t="Укажите сумму перевода",label:n="Сумма перевода",button:l,formType:r="private",...s})=>{const[{amount:d},{field:m}]=tn(Qm),[h,p]=i(!1);return a((()=>{p(d<=0)}),[d]),c(g,{className:u("flex flex-col items-center",e),defaultPadding:"p-6xl",...s,children:[t?o(w,{className:"pb-lg xl:pb-4xl self-start xl:self-center",headingType:"h3",title:t}):null,c("form",{className:"w-full xl:max-w-[468px]",method:"POST",action:Zm[r],children:[o(Jm,{valid:!h,label:n,max:3e5,min:1,...m("amount",{parse:Number,format:String})}),o("input",{type:"hidden",name:"amount",value:d}),l?.text?o(ja,{className:"w-full mt-lg",type:"submit",disabled:h,children:l.text}):null]})]})})),tu=({className:e,text:t="ХИТ"}={})=>c("div",{className:u("w-14 h-14 bg-white flex flex-col items-center justify-center rounded-md shadow-main-black",e),children:[o(W,{iconVersion:"black",name:"HeartIcon",width:"24",height:"24"}),o(C,{size:"text-s",font:"font-normal",align:"text-center",color:"text-primary-text",children:t})]}),nu="relative h-full",iu={small:"lg:min-w-64",normal:"lg:min-w-80 xl:min-w-96",big:"lg:min-w-[515px]"},au=({noCardBorder:e,cardSize:t="normal",isNavButtons:n=!1,...i})=>{const{blocks:a}=i.block||{},l=a?.some(su),r=n?{defaultPadding:"p-6xl pb-m"}:{};return D({...i,renderProps:(n,i,a)=>c("div",{className:lu(n,{someCardsHighlighted:l}),children:[B(n,i,{className:ru(n,{someCardsHighlighted:l,showBorder:!e,cardSize:t}),...r,blockIndex:a}),su(n)?tu({className:"absolute top-0 -right-4 z-40"}):null]},String(a))})},lu=(e,{someCardsHighlighted:t})=>u(nu,t&&(su(e)?"pt-3xl":"pt-3xl sm:pt-16")),ru=(e,{someCardsHighlighted:t,showBorder:n,cardSize:i="normal"})=>u(nu,"min-w-80",iu[i],t&&(su(e)?"pt-3xl sm:pt-16":"pt-3xl"),bc(n),n&&"h-full"),su=e=>e?.content&&"isHighlighting"in e.content&&e.content.isHighlighting,ou=zt((({className:e,visibleItemCount:t=0,noCardBorder:n,arrowsPadded:i=!0,isGap:a=!0,cardSize:l="normal",isNavButtons:r=!1,...s})=>o(g,{className:u(e),defaultPadding:"p-6xl",...s,children:o(Gc,{className:u("relative max-w-full"),visibleItemCount:t,snapAlign:"snap-start",gap:a?16:0,padding:0,arrowsPadded:i,navButtons:r?cu(s?.block?.blocks):[],hasBlur:!0,children:au({noCardBorder:n,cardSize:l,isNavButtons:r,...s})})})),{childrenTypes:["CarouselCard","CarouselCatalogCard","CarouselRecommendationCard","CarouselTariffsCard","RichTextBlock","ProductBlock"],childSchema:()=>({isHighlighting:{title:"Выделить карточку",type:"boolean"}})}),cu=e=>e?.map((e=>{const t=e?.content;return{title:t?.title,description:t?.additionalDescription||t?.description}}))??[],du="z-10 border border-solid w-full h-full",mu=u(du,"absolute hidden @xl:block border-transparent"),uu=d((({className:e,title:t,description:n,button:i,...a})=>o(g,{className:u("sm:pl-6xl sm:pb-4xl @container-normal",e),defaultPadding:"p-0",...a,children:c("div",{className:"relative h-full",children:[o("div",{className:u(mu,"top-9 right-12 bg-green-dark")}),o("div",{className:u(mu,"top-6 right-8 bg-green")}),o("div",{className:u(mu,"top-3 right-4 bg-green-light")}),c("div",{className:u(du,"relative p-xl sm:p-5xl bg-white border-transparent sm:border-green-more-light"),children:[o(k,{title:t,description:n,headlineVersion:"XS",align:"text-left",isEmbedded:!0}),je([i],{className:"mt-m sm:mt-6xl sm:justify-center",isVertical:!0})]})]})}))),hu={black:"bg-black",white:"bg-white"},pu=d((({className:e="",title:t,description:n,image:i,price:a,button:l,colors:r=[],align:s="text-left",padding:d,...m})=>o(g,{className:u("flex flex-col justify-left",e),defaultPadding:"p-2xl",...m,children:c(Te,{className:"h-full",padding:d,title:o(k,{title:t,description:n,headlineVersion:"XS",isEmbedded:!0,align:s}),rightImage:i?.src?o(ne,{className:"flex justify-center align-center mb-xl",image:i}):null,buttons:je([l],{buttonClassName:"w-full self-end"}),children:[r?.length?c("div",{className:"flex text-secondary-text mb-m",children:[o("div",{className:"mr-xs",children:o(_e,{size:"text-s",align:"text-left",font:"font-light",children:"Цвета:"})}),r.map(gu)]}):null,a?c(_e,{size:"text-h3",align:"text-left",children:[a," ₽"]}):null]})}))),gu=(e,t)=>o("figure",{className:`w-6 h-6 ml-s border border-solid border-main-divider rounded-full ${hu[e]}`},String(t)),fu=d((({icon:e,...t})=>{const n=he(),{text:i,href:a,target:l,onClick:r}=n(t);return i?o("div",{className:u("p-3 rounded-lg bg-white text-secondary-text flex justify-center"),children:o("a",{role:"link",href:a,target:l,onClick:r,children:c("div",{className:"flex flex-col items-center gap-3 break-words max-w-[150px]",children:[e?o(ne,{className:"w-7 h-7 md:w-12 md:h-12",image:{...e,iconVersion:e?.iconVersion},alt:i}):null,o("div",{className:"font-light md:font-normal text-primary-text text-center text-xs md:text-sm whitespace-wrap",children:i})]})})}):null})),xu=d((({className:e,additionalDescription:t,description:n,links:i,title:a,...l})=>o(g,{defaultPadding:"p-5xl",className:u("overflow-hidden",e),...l,children:c("div",{className:"flex flex-col lg:flex-row gap-5 justify-between",children:[c("div",{className:"flex-1",children:[o(k,{isEmbedded:!0,title:a,description:n,as:"h1",align:"text-left",headlineVersion:"XL"}),o(k,{className:"pt-m",description:t,align:"text-left",isEmbedded:!0})]}),i?.length?yu(i):null]})}))),yu=e=>o("div",{className:u("lg:grid-cols-9 lg:[&>*]:col-span-2 lg:[&>*:nth-child(14n+2)]:col-span-3 lg:[&>*:nth-child(7n+5)]:col-span-3","lg:[&>*:nth-child(7n+6)]:col-span-3 lg:[&>*:nth-child(7n+7)]:col-span-3 lg:[&>*:nth-child(14n+10)]:col-span-3 lg:w-3/6","grid-cols-3 max-lg:[&>*:not(:nth-child(-n+3)):nth-child(4n+3)]:col-span-2 max-lg:[&>*:not(:nth-child(-n+3)):nth-child(4n+4)]:col-span-2","grid gap-3 lg:gap-5"),children:e.map(((e,t)=>o(fu,{...e},String(t))))}),bu=(e,t)=>e?.map((({aspectName:e,params:n})=>({aspectName:e,params:"mindboxEvent"===e?{...n,eventJson:t}:n}))),vu=d((({className:e="",href:t,target:n,onClick:i,data:a,children:l})=>{const r=he()({href:t,target:n,onClick:i});return o(t?"a":"div",{className:u("block",e),...t?r:{},role:t?"link":"none",...ge(a),children:l})})),Nu=[{origins:["t.me","telegram.org"],iconMapped:{icon:"TelegramIcon"}},{origins:["vk.com"],iconMapped:{icon:"VKIcon"}},{origins:["ok.ru"],iconMapped:{icon:"OkIcon"}},{origins:["apps.apple.com"],iconMapped:{icon:"AppleIcon"}},{origins:["play.google.com"],iconMapped:{icon:"PlayMarketIcon"}},{origins:["appgallery.huawei.com"],iconMapped:{icon:"HuaweiIcon"}},{origins:["youtube.com"],iconMapped:{icon:"YoutubeIcon"}},{origins:["rutube.ru"],iconMapped:{icon:"RutubeIcon"}},{origins:["dzen.ru"],iconMapped:{icon:"DzenIcon"}},{origins:["rustore.ru"],iconMapped:{icon:"RustoreIcon"}}],wu=d((({className:e="",media:t,showButtonText:n,stretched:a,version:l="white",children:r})=>{if(!t?.length)return null;const[s,d]=i(),m=t?.map((e=>{const{href:t,icon:i,text:a}=e,{iconMapped:r}=(e=>Nu.find((({origins:t})=>t?.some((t=>e?.includes(t)))))||{})(t),o=Le(i)?i:r,c=n?{text:a}:{text:""},m=e?.icon?.iconVersion||"color";return!s&&a&&d(!0),{...e,...c,icon:{...o,iconVersion:m},version:e?.version??l}})),h=u("border border-solid hover:border-transparent border-main-divider","group-data-primary:border-main-divider group-data-gray:border-green group/media",{"basis-auto":!n&&!s},Cu(a));return c("div",{className:u("flex flex-col gap-m xl:gap-xs",e),"aria-label":"Социальные сети",children:[o("div",{className:"flex gap-xs",children:je(m,{className:Su(s??!1,a??!1,n),buttonClassName:h})}),r?o(_e,{size:"text-s",font:"font-light",color:"text-secondary-text",children:r}):null]})})),Cu=(e=!1)=>e?"flex-1 @lg:flex-initial justify-center":"",Su=(e,t,n=!1)=>u(e||t?"basis-full":"",t&&(!n||!e)?"flex-nowrap":""),ku=d((({className:e,padding:t,description:n,additionalDescription:i,href:a,icon:l,isDotted:r,__html:s,socialMedia:d=[],target:m,title:h,align:p="text-left",benefits:f,imageOptions:{directionRight:x=!0,isImageAlwaysOnRight:y=false,isImageSecondary:b=!1}={},data:v,...N})=>o(g,{className:u("relative min-h-28 group-data-gray:bg-main-divider/50",e),defaultPadding:"p-0",...N,children:o(vu,{href:a,target:m,className:"h-full",data:bu(v),children:c(Te,{className:"h-full",defaultPadding:"p-2xl",padding:t,insetTitle:o(k,{title:h,description:n,headlineVersion:"XS",isEmbedded:!0,align:p}),...Ze(Le(l)?o(ne,{image:l}):null,x),buttons:d.length?o(wu,{media:d,stretched:!0,showButtonText:!0,version:N?.version}):null,isImageAlwaysOnRight:y,isImageSecondary:b,imageAlign:"center",children:[o(Ve,{benefits:f}),s?o(De,{__html:s,isDotted:r,itemSize:"list-s"}):null,Iu(i,p)]})})}))),Iu=(e,t)=>e?o(C,{size:"text-m",font:"font-light",color:"text-secondary-text group-data-secondary:text-white/80",align:t,children:e}):null,Tu=(e,t)=>{const{title:n,description:i,buttons:a}=e;return c("div",{className:"py-lg border-b border-main-divider",children:[n?o("div",{className:"opacity-80",children:o(_e,{size:"text-m",color:"text-secondary-text",children:n})}):null,i?o("div",{className:"mt-2xs",children:o(_e,{size:"text-xl",color:"text-primary-text",children:i})}):null,a?.length?o("div",{className:"text-primary-main",children:je(a)}):null]},String(t))},Bu=d((({className:e="",title:t,align:n="text-center",icon:l,button:r,visibleCellsCount:s=1,cardCells:d=[],options:m,data:h,...p})=>{const f=d.map(Tu),[x,y]=s>0?[f.slice(0,s),f.slice(s)]:[f,[]],[b,v]=i(!1);return a((()=>me.subscribe("fold",(e=>{e&&void 0!==m?.parent&&e.parent===m?.parent&&v(e.isUnfolded)}))),[m?.parent]),c(g,{className:u("flex flex-col",e),defaultPadding:"p-2xl",...p,children:[Le(l)?o("div",{className:"self-center",children:o(ne,{image:l})}):null,t?o(w,{className:u("pt-xs",n),headingType:"h5",title:t}):null,r?.text?o(ve,{className:"w-full mt-m mb-lg",...r}):null,y.length?o(na,{renderFoldableSection:()=>c("div",{children:[x,o(ia,{isUnfolded:b,children:y})]}),renderFoldButton:d.length>=s?Pu(m?.parent,h,b):null}):o("div",{children:x})]})})),Pu=(e,t,n=!1)=>()=>c("button",{className:"w-full cursor-pointer text-primary-main pt-lg flex justify-between items-center",onClick:()=>{void 0!==e&&me.fire("fold",{type:"fold",isUnfolded:!n,parent:e})},type:"button",...n?ge(t):{},children:[o("div",{children:n?"Скрыть":"Подробнее о тарифе"}),o(W,{className:"text-primary-text",name:n?"ArrowUpIcon":"ArrowDownIcon",width:"16",height:"16"})]}),Ru=()=>{const e=globalThis.sessionStorage?.getItem("refreshToken"),t=globalThis.sessionStorage?.getItem("accessToken"),n=globalThis.localStorage.getItem("taskId"),i=Gt();if(!t||!e||!n)return i.assign("/"),()=>{};const a=async()=>{const n=await Qi("/auth/refresh","POST",{refresh_token:e,access_token:t});if(401==n?.status&&i.assign("/"),n?.ok){const e=await n.json();globalThis.sessionStorage.setItem("refreshToken",e.refresh_token),globalThis.sessionStorage.setItem("accessToken",e.access_token)}};a();const l=setInterval(a,24e4);return()=>clearInterval(l)},Du=d((({step:e=10,description:t,showPercentage:n=!0})=>c("div",{children:[o("div",{className:"h-4 w-full bg-gray relative",children:o("div",{className:"h-4 bg-green",style:{width:`${e}%`}})}),c("div",{className:"relative",children:[n?c("div",{className:"absolute left-2/4 text-green",children:[e,"%"]}):null,t?o("div",{className:"text-right mr-4 text-gray",children:t}):null]})]}))),Mu=d((({step:e=1,totalSteps:t=6,stepsTitles:n=[]})=>{const i=r((()=>(e+1)/t*100),[e,t]);return o("div",{className:"py-lg px-5xl bg-white col-span-12",children:c("div",{children:[c("span",{className:"font-bold mr-s",children:["Шаг ",e+1," из ",t,"."]}),n[e]||null,o(Du,{step:i,showPercentage:!1})]})})}));var _u;!function(e){e.process="IN_PROCESS",e.ok="APPROVED",e.fail="CANCELLED",e.rework="REVISION"}(_u||(_u={}));const Au=e=>Zi("/user-data/getTaskStatus","POST",e),Eu=e=>Qi("/user-data/sendSignalToProcess","POST",e),zu=d((({__html:e,icon:t="InfoCircleIcon",iconVersion:n="black",link:i})=>c("div",{className:"flex flex-row items-center w-full min-h-14 bg-main-gray rounded-lg gap-m p-m",children:[o("div",{className:"rounded-full bg-white p-xs",children:o(W,{name:t,width:"24",height:"24",iconVersion:n})}),c("div",{className:"",children:[o(De,{__html:e}),i?.text?o(ve,{className:"text-primary-main",children:i.text}):null]})]}))),Fu=d((({interval:e=0,intervalExpireAction:t=(()=>null),title:n,__html:a})=>{const[l,r]=i(e),s=100-(e-l)/e*100;return c("div",{children:[n?o(k,{title:n,headlineVersion:"S"}):null,c("div",{className:"flex justify-center items-center flex-col",children:[c("div",{className:u("relative flex items-center justify-center w-24 h-24 rounded-full bg-gray text-transparent mb-5"),children:[o("div",{className:"absolute inset-0 rounded-full",style:{background:`conic-gradient(rgb(66, 171, 68) ${s}%, rgb(125, 126, 127) 0deg)`}}),o("div",{className:"z-10 flex items-center justify-center px-4 py-2 rounded-full w-20 h-20 bg-white text-primary-text text-m",children:o(Oo,{interval:e,time:l,setTime:e=>{0===e&&t(),r(e)}})})]}),a?o(De,{__html:a}):null]})]})})),Ou=d((({title:e,description:t,infoCard:n,sectionInfoTitle:i,sectionInfo:a,sectionAdditionalTitle:l,sectionInfoAdditional:r,buttonText:s,interval:d,...m})=>c(g,{...m,children:[c("div",{className:"flex flex-col md:flex-row items-center",children:[o(k,{headlineVersion:"M",title:e,description:t,align:"text-left",padding:"p-xl",className:"w-full"}),d?o(Fu,{interval:d}):null]}),o(Vu,{title:i,items:a}),o(Vu,{title:l,items:r,countColumns:!0}),n?.__html?o(zu,{__html:n?.__html,icon:n?.icon,link:{text:n?.link?.text}}):null,s?o(ve,{href:"/natural",text:s,version:"primary",className:"w-full mt-lg"}):null]}))),Vu=({title:e,items:t,countColumns:n=!1})=>{const i=Se();return t?c("div",{children:[o("hr",{className:"w-full h-px bg-main-gray border-0"}),c("div",{className:"p-xl",children:[e?o(_e,{color:"text-primary-text",size:"text-h5",children:o("div",{className:u({"mb-m":Boolean(e)}),children:e})}):null,t?o("div",{className:u("grid grid-cols-1 gap-m",ao(n||i?1:2)),children:t.map(((e,t)=>o("div",{children:Lu(e)},t)))}):null]})]}):null},Lu=({label:e,description:t})=>c("div",{className:"flex flex-col",children:[o(_e,{color:"text-secondary-text",size:"text-l",children:e}),o(_e,{color:"text-primary-text",size:"text-xl",children:t})]}),ju=d((()=>o(Ou,{title:"Благодарим Вас за ожидание",description:"В настоящий момент Банк не может одобрить Вашу заявку на кредит. Попробуйте подать заявку позже. Спасибо за обращение в АО «Россельхозбанк».",buttonText:"Вернуться на главную"}))),qu=d((()=>{const[e]=vo("leadForm");return o(Ou,{interval:300,title:"Заявка успешно отправлена",description:"Не закрывайте окно, скоро сообщим результат",sectionInfoTitle:"Заявленные условия по кредиту",sectionInfo:[{label:"Название продукта",description:"Кредитная карта"},{label:"Категория",description:e?.cardCategory?.text}]})})),$u=d((()=>{const[e]=vo("leadForm");return o(Ou,{title:"Благодарим вас за ожидание, но нам требуется больше времени для принятия решения",description:"Посетите выбранное отделение банка с необходимыми документами и так завершите оформление кредита.",sectionAdditionalTitle:"В отделении Банка",sectionInfoAdditional:[{label:"Регион",description:e?.regionRetail?.text},{label:"Адрес",description:e?.addressRetail?.text}],sectionInfo:[{label:"Основные документы:",description:"- Паспорт РФ"}],buttonText:"Вернуться на главную"})})),Uu=d((()=>{const[e]=vo("leadForm");return o(Ou,{title:"Банк одобрил вам кредит",description:"Обратитесь в отделение банка, чтобы завершить оформление и получит ваш кредит",sectionInfo:[{label:"Название продукта",description:"Кредит на любые цели"},{label:"Ставка",description:"14,5%"},{label:"Ежемесячный платеж",description:"86 052 ₽"},{label:"Срок кредита",description:e?.monthsValue+" мес"},{label:"Тип платежа",description:e?.isAnnuity?"Аннуитетный":"Дифференцированный"}],buttonText:"Вернуться на главную"})})),Wu=["CREATE_APPLICATION_SHORT_SIGNAL","CREATE_APPLICATION_LOAN_V3_SIGNAL"],Hu=d((()=>{const[e,t]=i(_u.process),[n]=vo("taskId");return a((()=>{(async()=>{for(const e of Wu)await Eu({signalType:e,taskId:n})})();const e=l((async()=>{const e=await Au({taskId:n});e&&e?.statusCd!==_u.process&&(clearInterval(i),t(e.statusCd))}),[]),i=setInterval(e,3e4)}),[]),Yu(e)})),Yu=e=>({IN_PROCESS:o(qu,{}),CANCELLED:o(ju,{}),APPROVED:o(Uu,{}),REVISION:o($u,{})}[e]||null),Ku=[{paymentSystem:"",currency:"rub",codeWord:""},{surname:"",name:"",middleName:"",sex:"",limitedBirthday:void 0,birthPlace:"",phone:"",email:"",dulSerie:void 0,dulNumber:void 0,dulIssueDateField:void 0,dulSubdivisionCode:"",dulIssuedBy:"",addressRegistration:{fullAddress:"",fiasCode:""},participantDateRegistration:void 0,addressFact:{fullAddress:"",fiasCode:""},housing:void 0,methodObtain:"office",addressCourier:{fullAddress:"",fiasCode:""}},{amountWorkers:{key:"",text:""},beginDate:void 0,employerActivities:{key:"",text:""},employerOrganization:{key:"",text:""},employment:{key:"",text:""},experience5Years:void 0,inn:void 0,jobsNumber:void 0,lastJobExperience:void 0,legalForm:"",organization:{key:"",text:""},organizationAddress:{fullAddress:"",fiasCode:""},organizationName:"",organizationPhone:"",partInBusiness:void 0,positionOrganization:{key:"",text:""}},{familyStatus:{key:"",text:""},dependents:void 0,familyMembers:void 0,confirmationIncome:{key:"",text:""},wages:void 0,mandatoryPayments:void 0,snils:"",armyIdFlg:!1},{disablePeopleFlg:!1,bankruptcyFlg:!1,shareholderFlg:!1,legalEntityName:"",creditInRshbCd:void 0},{regionRetail:"",addressRetail:{key:"",text:""},bankEmployeeCode:void 0,addressCourier:{fullAddress:"",fiasCode:""},methodObtain:"office",deliveryDate:void 0}],Gu=e=>{if(e)try{return new Date(e)}catch(e){return}},Xu=e=>(t,n)=>t.filter((e=>e)).map((t=>[Ju(n,e),Zu(t,e),Qu(t,e),eh(t,e),th(t,e),nh(t,e)].some(Boolean)?{...t,required:!1}:t)),Ju=(e,t)=>2===e&&"RETIREE"===t("employment")?.key,Zu=({name:e},t)=>"partInBusiness"===e&&"BUSINESS_OWNER"!==t("positionOrganization")?.key,Qu=({name:e},t)=>"snils"===e&&!t("consentPfrFlg"),eh=({name:e,filledByEsia:t},n)=>e?.startsWith("address")&&n("esiaAccountTypeCd")?.key&&t,th=({name:e},t)=>"addressFact"===e&&t("addressMatch"),nh=({condition:e},t)=>e?.name&&e?.values?.some((n=>{const i=t(e?.name);return n!==(i?.key??i)})),ih=(e=[])=>{const t=e.filter((e=>"info"===e.fieldType));return t.length?t.map((({text:e,name:t},n)=>o(zu,{__html:e},`${t}_${n}`))):null},ah=({field:e,inputs:t})=>t.map(io(e,"")),lh=({sections:e,field:t,step:n})=>e?.map((({inputs:e=[],columns:i,title:a},l)=>{const r=Xu(rh(t))(e,n),s=r.filter((e=>!nh(e,rh(t))));return c("div",{className:u(ao(i),"grid gap-x-m"),children:[ih(s),lo(a),ah({field:t,inputs:r})]},`section-${l}`)})),rh=e=>t=>e(t)?.value,sh=d((({step:e,onPrevStep:t})=>{const n=6===e;return c("div",{className:"flex justify-between gap-m",children:[o(ja,{onClick:t,type:"button",version:"secondary",disabled:0===e,children:"Назад"}),o(ja,{type:"submit",children:n?"Отправить заявку":"Далее"})]})})),oh=e=>{const{methodObtain:t,deliveryDate:n=""}=e;return{courierDeliveryFlg:"courier"===t,deliveryDate:(i=n,i?new Date(i).toISOString().split(".")[0]:""),deliveryTimeCd:{value:"TIME_2"}};var i},ch=e=>{const{addressRetail:t}=e;return{office:t?.key?{id:t.key}:void 0}},dh=(e,t)=>{switch(e){case 0:return(e=>{const{currency:t,paymentSystem:n,cardCategory:i,codeWord:a}=e;return{currencyCode:t,paymentSystemTypeCd:n,classCard:i,codeWord:a}})(t);case 1:return(e=>{const{name:t,surname:n,middleName:i,limitedBirthday:a="",phone:l="",email:r,sex:s,birthPlace:o,dulIssueDateField:c="",dulIssuedBy:d,dulNumber:m,dulSerie:u,dulSubdivisionCode:h,education:p,participantDateRegistration:g="",housing:f,addressRegistration:x,addressFact:y}=e;return{birthDate:Lt(a,!0),midname:i,name:t,surname:n,birthPlace:o,dulIssueDate:Lt(c,!0),dulIssuedBy:d,dulNumber:m,dulSerie:u,dulSubdivisionCode:h,educationLevelCd:p,registrationDate:Lt(g,!0),houseTypeCd:f,participantContacts:rc({phone:jt(l),email:r}),participantAddresses:sc({addressRegistration:x,addressFact:y}),genderCd:s?{key:"male"===s?"MAN":"WOMAN"}:void 0}})(t);case 2:return(e=>{const{beginDate:t,employment:n,organizationName:i,inn:a,legalForm:l,organization:r,amountWorkers:s,employerActivities:o,employerOrganization:c,generalSeniority:d,lastJobExperience:m,experience5Years:u,jobsNumber:h,organizationPhone:p,organizationAddress:g,positionOrganization:f}=e;return{employmentContractDate:Lt(t||"",!0),employmentTypeCd:n,organizationName:i,organizationInn:a,organizationActivityTypeCd:o,organizationTypeCd:r,organizationKindCd:c,employeesNumberCd:s,opf:l,seniority:d,generalSeniority:u,jobsNumber:h,lastWorkDuration:m,payrollCardRshbFlg:!0,positionCd:f,participantContacts:rc({organizationPhone:p&&jt(p)}),participantAddresses:sc({organizationAddress:g})}})(t);case 3:return(e=>{const{familyStatus:t,dependents:n,familyMembers:i,children:a,wages:l,mandatoryPayments:r,incomeAverage:s,additionalIncome:o,otherIncome:c,otherPayments:d,rentalIncome:m,retirementIncome:u,snils:h,armyIdFlg:p,conscription:g}=e;return{maritalStatusCd:t,childrenDependents:a,totalDependents:i,otherDependents:n,militaryStatusCd:g,participantIncomes:oc({wages:l,mandatoryPayments:r,incomeAverage:s,additionalIncome:o,otherIncome:c,otherPayments:d,rentalIncome:m,retirementIncome:u}),snils:h?.replaceAll(" ",""),armyIdFlg:p}})(t);case 4:return(e=>{const{bankruptcyFlg:t,shareholderFlg:n,legalEntityName:i,creditInRshbCd:a}=e;return{bankruptcyFlg:t,shareholderFlg:n,nameLegalEntity:i,creditInRshbCd:a}})(t);case 5:return(e=>{const{addressCourier:t}=e;return{participantAddresses:sc({addressCourier:t})}})(t);default:return{}}},mh=({step:e,inputs:t,onNextStep:n,saveStep:i,finishForm:a})=>{const[r]=vo("taskId"),[s]=vo("profileId"),[o]=vo("participantId"),c=l((async l=>{const c=oo(ni(Xu(uh(l))(t,e)));if(!En(c(l)))return console.warn("validation fail");i(l);try{r&&s&&o&&await Po((({participantId:e,taskId:t,profileId:n,formData:i,step:a=0})=>({sendToBank:!0,taskKind:"UNITED",task:{taskSource:Gt().origin,id:t,...ch(i),authorizedAgentId:i?.bankEmployeeCode,participants:[{id:e,profile:{id:n},roleCd:{key:"BORROWER",value:"Заемщик"},...dh(a,i)}],...oh(i)}}))({participantId:o,taskId:r,profileId:s,step:e,formData:l}))}catch(e){return"Fail"}return n(),5===e&&a?.(!0),"OK"}),[]);return{handleSubmit:c}},uh=e=>t=>e[t],hh=d((({step:e,sections:t,onPrevStep:n,onNextStep:i,isFormFinished:a,finishForm:r})=>{const[d,m]=vo("leadForm"),u=((e,t)=>({...Ku[e],...t,limitedBirthday:Gu(t?.limitedBirthday),dulIssueDateField:Gu(t?.dulIssueDateField),participantDateRegistration:Gu(t?.participantDateRegistration),beginDate:Gu(t?.beginDate),deliveryDate:Gu(t?.deliveryDate)}))(e,d),h=s(void 0),p=t?.flatMap((e=>e?.inputs))||[],g=l((e=>{h.current=e}),[]),{handleSubmit:f}=mh({step:e,inputs:p,onNextStep:i,saveStep:m,finishForm:r}),[,{field:x,onSubmit:y}]=tn(u,{onSubmit:(e,t)=>{f({...e,...h.current?.(t)})}});return a?o(Hu,{}):c("form",{onSubmit:y,className:"space-y-m",children:[lh({sections:t,field:x,step:e,registerSubmit:g}),o(sh,{step:e,onPrevStep:n})]})})),ph=[[{title:"Параметры карты",inputs:[]},{inputs:[{fieldType:"common",name:"currency",required:!0},{fieldType:"common",name:"paymentSystem",required:!0},{fieldType:"common",name:"cardCategory",required:!0},{fieldType:"common",name:"codeWord",required:!0}]}],[{title:"Персональные данные",columns:2,inputs:[{fieldType:"common",name:"surname",required:!0,dadata:!0,filledByEsia:!0},{fieldType:"common",name:"name",required:!0,dadata:!0,filledByEsia:!0},{fieldType:"common",name:"middleName",dadata:!0,filledByEsia:!0},{fieldType:"common",name:"sex",required:!0},{fieldType:"common",name:"limitedBirthday",required:!0,filledByEsia:!0},{fieldType:"common",name:"birthPlace",required:!0},{fieldType:"common",name:"phone",required:!0},{fieldType:"common",name:"email",required:!0,dadata:!0}]},{title:"Паспортные данные",columns:2,inputs:[{fieldType:"common",name:"dulSerie",required:!0,filledByEsia:!0},{fieldType:"common",name:"dulNumber",required:!0,filledByEsia:!0},{fieldType:"common",name:"dulIssueDateField",required:!0,filledByEsia:!0},{fieldType:"common",name:"dulSubdivisionCode",required:!0,dadata:!0,filledByEsia:!0}]},{inputs:[{fieldType:"common",name:"dulIssuedBy",required:!0,dadata:!0,filledByEsia:!0},{fieldType:"common",name:"education",required:!0}]},{title:"Адрес регистрации по месту жительства",columns:1,inputs:[]},{inputs:[{fieldType:"common",name:"addressRegistration",required:!0,dadata:!0,filledByEsia:!0},{fieldType:"common",name:"addressMatch"}]},{columns:2,inputs:[{fieldType:"common",name:"participantDateRegistration",required:!0}]},{title:"Адрес фактического проживания (место пребывания РФ)",inputs:[]},{columns:2,inputs:[{fieldType:"common",name:"housing",required:!0}]},{inputs:[{fieldType:"common",name:"addressFact",required:!0,dadata:!0}]}],[{title:"Данные о трудоустройстве",inputs:[]},{inputs:[{fieldType:"info",text:"Клиент на момент оформления заявки на кредит должен быть: официально трудоустроен более 6 месяцев, если Клиент получает з/п на счет РСХБ, то трудоустроен более 3 месяцев, не должен находиться в декретном отпуске"}]},{inputs:[{fieldType:"common",name:"employment"},{fieldType:"common",name:"organizationName",required:!0,dadata:!0}]},{columns:2,inputs:[{fieldType:"common",name:"inn",required:!0,dadata:!0},{fieldType:"common",name:"legalForm",required:!0}]},{inputs:[{fieldType:"common",name:"organization",required:!1},{fieldType:"common",name:"amountWorkers",required:!1}]},{columns:2,inputs:[{fieldType:"common",name:"employerActivities",required:!1},{fieldType:"common",name:"employerOrganization",required:!1},{fieldType:"common",name:"generalSeniority",required:!0},{fieldType:"common",name:"lastJobExperience",required:!0},{fieldType:"common",name:"experience5Years",required:!0},{fieldType:"common",name:"jobsNumber",required:!0}]},{inputs:[{fieldType:"common",name:"organizationPhone",label:"Телефон работодателя",required:!0},{fieldType:"common",name:"beginDate",required:!0}]},{columns:2,inputs:[{fieldType:"common",name:"positionOrganization",required:!1},{fieldType:"common",name:"partInBusiness",required:!0,condition:{name:"positionOrganization",values:["BUSINESS_OWNER"]}}]},{title:"Адрес работодателя",inputs:[]},{inputs:[{fieldType:"common",name:"organizationAddress",required:!0,dadata:!0}]}],[{title:"Семейное положение"},{columns:1,inputs:[{fieldType:"common",name:"familyStatus",required:!0}]},{columns:1,inputs:[{fieldType:"common",name:"dependents",required:!0}]},{columns:2,inputs:[{fieldType:"common",name:"familyMembers"},{fieldType:"common",name:"children",required:!0}]},{title:"Совокупный доход"},{inputs:[{fieldType:"info",text:"Сумма основного и дополнительных доходов после вычета налога"}]},{columns:1,inputs:[{fieldType:"common",name:"wages",required:!0}]},{columns:1,inputs:[{fieldType:"common",name:"mandatoryPayments",required:!0}]},{columns:1,inputs:[{fieldType:"common",name:"snils",required:!0}]},{columns:1,inputs:[{fieldType:"common",name:"conscription",required:!0}]},{columns:2,inputs:[{fieldType:"common",name:"armyIdFlg"}]}],[{title:"Дополнительные сведения",columns:1,inputs:[]},{inputs:[{fieldType:"common",name:"disablePeopleFlg"}]},{inputs:[{fieldType:"common",name:"bankruptcyFlg"}]},{inputs:[{fieldType:"common",name:"shareholderFlg"}]},{inputs:[{fieldType:"common",name:"legalEntityName"}]},{inputs:[{fieldType:"common",name:"creditInRshbCd"}]}],[{title:"Способ получения",columns:1,inputs:[]},{inputs:[{fieldType:"common",name:"methodObtain"}]},{title:"Адрес",columns:1,inputs:[]},{inputs:[{fieldType:"common",name:"addressCourier",dadata:!0,condition:{name:"methodObtain",values:["courier"]},required:!0},{fieldType:"common",name:"deliveryDate",condition:{name:"methodObtain",values:["courier"]},required:!0},{fieldType:"common",name:"comment",condition:{name:"methodObtain",values:["courier"]}}]},{inputs:[{fieldType:"common",name:"regionRetail",required:!0,condition:{name:"methodObtain",values:["office"]}},{fieldType:"common",name:"addressRetail",required:!0,condition:{name:"methodObtain",values:["office"]}}]},{inputs:[{fieldType:"info",text:"Если представитель Банка помогал Вам в заведении заявки, введите здесь его код",condition:{name:"methodObtain",values:["office"]}},{fieldType:"common",name:"bankEmployeeCode",condition:{name:"methodObtain",values:["office"]}}]}]],gh=["Параметры карты","Персональные данные","Данные о трудоустройстве","Семейное положение и доход","Дополнительные сведения","Выбор способа получения"],fh=d((({className:e,...t})=>{const[n,d]=i(0),m=s(null),h=l((()=>m?.current?.scrollIntoView({behavior:"smooth"})),[m]);a(Ru,[]);const p=l((()=>{d((e=>Math.min(e+1,6))),h()}),[]),f=l((()=>{d((e=>Math.max(e-1,0))),h()}),[]),x=r((()=>ph[n]),[n]),[y,b]=i(!1);return o(g,{className:u("bg-transparent",e),defaultPadding:"p-0",...t,children:c("div",{ref:m,className:"container grid grid-cols-12",children:[y?null:o(Mu,{stepsTitles:gh,step:n,totalSteps:6}),o("div",{className:"py-lg px-5xl mt-2xs bg-white col-span-12",children:o(hh,{step:n,sections:x,onNextStep:p,onPrevStep:f,isFormFinished:y,finishForm:b},String(n))})]})})})),xh=d((({step:e=1,totalSteps:t=5,stepsTitles:n=[]})=>{const i=r((()=>e/t*100),[e,t]);return o("div",{className:"py-lg px-5xl bg-white col-span-12",children:c("div",{children:[c("span",{className:"font-bold mr-s",children:["Шаг ",e," из ",t,"."]}),n[e]||null,o(Du,{step:i,showPercentage:!1})]})})})),yh=d((({title:e,description:t,infoCard:n,sectionInfoTitle:i,sectionInfo:a,sectionAdditionalTitle:l,sectionInfoAdditional:r,buttonText:s,interval:d,intervalExpireAction:m=(()=>{}),...u})=>c(g,{...u,children:[c("div",{className:"flex flex-col md:flex-row items-center",children:[o(k,{headlineVersion:"M",title:e,description:t,align:"text-left",padding:"p-xl",className:"w-full"}),d?o(Fu,{interval:d,intervalExpireAction:m}):null]}),o(bh,{title:i,items:a}),o(bh,{title:l,items:r,countColumns:!0}),n?.__html?o(zu,{__html:n?.__html,icon:n?.icon,link:{text:n?.link?.text}}):null,s?o(ve,{href:"/natural",text:s,version:"primary",className:"w-full mt-lg"}):null]}))),bh=({title:e,items:t,countColumns:n=!1})=>{const i=Se();return t?c("div",{children:[o("hr",{className:"w-full h-px bg-main-gray border-0"}),c("div",{className:"p-xl",children:[e?o(_e,{color:"text-primary-text",size:"text-h5",children:o("div",{className:u({"mb-m":Boolean(e)}),children:e})}):null,t?o("div",{className:u("grid grid-cols-1 gap-m",ao(n||i?1:2)),children:t.map(((e,t)=>o("div",{children:vh(e)},t)))}):null]})]}):null},vh=({label:e,description:t})=>c("div",{className:"flex flex-col",children:[o(_e,{color:"text-secondary-text",size:"text-l",children:e}),o(_e,{color:"text-primary-text",size:"text-xl",children:t})]}),Nh=d((()=>o(yh,{title:"Благодарим Вас за ожидание",description:"В настоящий момент Банк не может одобрить Вашу заявку на кредит. Попробуйте подать заявку позже. Спасибо за обращение в АО «Россельхозбанк».",buttonText:"Вернуться на главную"}))),wh=d((({handleExpireTimer:e})=>{const[t]=vo("leadForm");return o(yh,{interval:300,intervalExpireAction:e,title:"Заявка успешно отправлена",description:"Не закрывайте окно, скоро сообщим результат",sectionInfoTitle:"Заявленные условия по кредиту",sectionInfo:[{label:"Название продукта",description:"Кредит на любые цели"},{label:"Цель кредита",description:"На любые цели"},{label:"Сумма",description:t?.moneyValue?.toLocaleString()+" ₽"},{label:"Срок кредита",description:t?.monthsValue+" мес"},{label:"Тип платежа",description:t?.isAnnuity?"Аннуитетный":"Дифференцированный"}]})})),Ch=d((()=>{const[e]=vo("leadForm");return o(yh,{title:"Благодарим вас за ожидание, но нам требуется больше времени для принятия решения",description:"Посетите выбранное отделение банка с необходимыми документами и так завершите оформление кредита.",sectionAdditionalTitle:"В отделении Банка",sectionInfoAdditional:[{label:"Регион",description:e?.regionRetail?.text},{label:"Адрес",description:e?.addressRetail?.text}],sectionInfo:[{label:"Основные документы:",description:"- Паспорт РФ"}],buttonText:"Вернуться на главную"})})),Sh=d((()=>{const[e]=vo("leadForm");return o(yh,{title:"Банк одобрил вам кредит",description:"Обратитесь в отделение банка, чтобы завершить оформление и получит ваш кредит",sectionInfo:[{label:"Название продукта",description:"Кредит на любые цели"},{label:"Ставка",description:"14,5%"},{label:"Ежемесячный платеж",description:"86 052 ₽"},{label:"Срок кредита",description:e?.monthsValue+" мес"},{label:"Тип платежа",description:e?.isAnnuity?"Аннуитетный":"Дифференцированный"}],buttonText:"Вернуться на главную"})})),kh=["CREATE_APPLICATION_SHORT_SIGNAL","CREATE_APPLICATION_LOAN_V3_SIGNAL"],Ih=d((()=>{const[e,t]=i(_u.process),[n]=vo("taskId");a((()=>{(async()=>{for(const e of kh)await Eu({signalType:e,taskId:n})})();const e=setInterval((()=>n&&Au({taskId:n}).then((n=>{n?.statusCd&&n.statusCd!==_u.process&&(clearInterval(e),t(n.statusCd))}))),3e4);return()=>clearInterval(e)}),[]);return Th(e,(()=>t(_u.rework)))})),Th=(e,t)=>({IN_PROCESS:o(wh,{handleExpireTimer:t}),CANCELLED:o(Nh,{}),APPROVED:o(Sh,{}),REVISION:o(Ch,{})}[e]||null),Bh=[{moneyValue:0,monthsValue:0,isAnnuity:!1,isInsurance:!1,isSalaryClient:!1,isPensionClient:!1,isStateEmployee:!1},{surname:"",name:"",middleName:"",sex:"",limitedBirthday:void 0,birthPlace:"",phone:"",email:"",dulSerie:void 0,dulNumber:void 0,dulIssueDateField:void 0,dulSubdivisionCode:"",dulIssuedBy:"",addressRegistration:{fullAddress:"",fiasCode:""},participantDateRegistration:void 0,addressFact:{fullAddress:"",fiasCode:""},housing:void 0},{amountWorkers:{key:"",text:""},beginDate:void 0,employerActivities:{key:"",text:""},employerOrganization:{key:"",text:""},employment:{key:"",text:""},experience5Years:void 0,inn:void 0,jobsNumber:void 0,lastJobExperience:void 0,legalForm:"",organization:{key:"",text:""},organizationAddress:{fullAddress:"",fiasCode:""},organizationName:"",organizationPhone:"",partInBusiness:void 0,positionOrganization:{key:"",text:""}},{familyStatus:{key:"",text:""},dependents:void 0,familyMembers:void 0,confirmationIncome:{key:"",text:""},wages:void 0,mandatoryPayments:void 0,snils:"",armyIdFlg:!1},{disablePeopleFlg:!1,bankruptcyFlg:!1,shareholderFlg:!1,legalEntityName:"",creditInRshbCd:void 0},{regionRetail:"",addressRetail:void 0,bankEmployeeCode:void 0}],Ph=e=>{if(e)try{return new Date(e)}catch(e){return}},Rh=e=>(t,n)=>t.filter((e=>e)).map((t=>[Dh(n,e),Mh(t,e),_h(t,e),Ah(t,e),Eh(t,e),zh(t,e)].some(Boolean)?{...t,required:!1}:t)),Dh=(e,t)=>2===e&&"RETIREE"===t("employment")?.key,Mh=({name:e},t)=>"partInBusiness"===e&&"BUSINESS_OWNER"!==t("positionOrganization")?.key,_h=({name:e},t)=>"snils"===e&&!t("consentPfrFlg"),Ah=({name:e,filledByEsia:t},n)=>e?.startsWith("address")&&n("esiaAccountTypeCd")?.key&&t,Eh=({name:e},t)=>"addressFact"===e&&t("addressMatch"),zh=({condition:e},t)=>e?.name&&e?.values?.some((n=>{const i=t(e?.name);return n!==(i?.key??i)})),Fh=(e=[])=>{const t=e.filter((e=>"info"===e.fieldType));return t.length?t.map((({text:e,name:t},n)=>o(zu,{__html:e},`${t}_${n}`))):null},Oh=({field:e,inputs:t})=>t.map(io(e,"")),Vh=({sections:e,field:t,step:n})=>e?.map((({inputs:e=[],columns:i,title:a},l)=>{const r=Rh(Lh(t))(e,n);return c("div",{className:u(ao(i),"grid gap-x-m"),children:[Fh(r),lo(a),Oh({field:t,inputs:r})]},`section-${l}`)})),Lh=e=>t=>e(t)?.value,jh=d((({step:e,onPrevStep:t})=>{const n=5===e;return c("div",{className:"flex justify-between gap-m",children:[o(ja,{onClick:t,type:"button",version:"secondary",disabled:0===e,children:"Назад"}),o(ja,{type:"submit",children:n?"Отправить заявку":"Далее"})]})})),qh=e=>{const{addressRetail:t}=e;return{office:t?.key?{id:t.key}:void 0}},$h={annuity:{key:"ANNUITY",value:"Аннуитетный"},differential:{key:"DIFFERENTIAL",value:"Дифференцированный "}},Uh=e=>{const{moneyValue:t,monthsValue:n,isAnnuity:i}=e;return{loanAmount:t,creditPeriod:n,paymentTypeCd:$h[i?"annuity":"differential"]}},Wh=(e,t)=>{switch(e){case 0:default:return{};case 1:return(e=>{const{name:t,surname:n,middleName:i,limitedBirthday:a="",phone:l="",email:r,sex:s,birthPlace:o,dulIssueDateField:c="",dulIssuedBy:d,dulNumber:m,dulSerie:u,dulSubdivisionCode:h,education:p,participantDateRegistration:g="",housing:f,addressRegistration:x,addressFact:y}=e;return{birthDate:Lt(a,!0),midname:i,name:t,surname:n,birthPlace:o,dulIssueDate:Lt(c,!0),dulIssuedBy:d,dulNumber:m,dulSerie:u,dulSubdivisionCode:h,educationLevelCd:p,registrationDate:Lt(g,!0),houseTypeCd:f,participantContacts:rc({phone:jt(l),email:r}),participantAddresses:sc({addressRegistration:x,addressFact:y}),genderCd:s?{key:"male"===s?"MAN":"WOMAN"}:void 0}})(t);case 2:return(e=>{const{beginDate:t,employment:n,organizationName:i,inn:a,legalForm:l,organization:r,amountWorkers:s,employerActivities:o,employerOrganization:c,generalSeniority:d,lastJobExperience:m,experience5Years:u,jobsNumber:h,organizationPhone:p,organizationAddress:g,positionOrganization:f}=e;return{employmentContractDate:Lt(t||"",!0),employmentTypeCd:n,organizationName:i,organizationInn:a,organizationActivityTypeCd:o,organizationTypeCd:r,organizationKindCd:c,employeesNumberCd:s,opf:l,seniority:d,generalSeniority:u,jobsNumber:h,lastWorkDuration:m,payrollCardRshbFlg:!0,positionCd:f,participantContacts:rc({organizationPhone:p&&jt(p)}),participantAddresses:sc({organizationAddress:g})}})(t);case 3:return(e=>{const{familyStatus:t,dependents:n,familyMembers:i,children:a,confirmationIncome:l,wages:r,mandatoryPayments:s,incomeAverage:o,additionalIncome:c,otherIncome:d,otherPayments:m,rentalIncome:u,retirementIncome:h,snils:p,armyIdFlg:g,conscription:f}=e;return{maritalStatusCd:t,totalDependents:i,incomeCertificateCd:l,otherDependents:n,childrenDependents:a,militaryStatusCd:f,participantIncomes:oc({wages:r,mandatoryPayments:s,incomeAverage:o,additionalIncome:c,otherIncome:d,otherPayments:m,rentalIncome:u,retirementIncome:h}),snils:p?.replaceAll(" ",""),armyIdFlg:g}})(t);case 4:return(e=>{const{bankruptcyFlg:t,shareholderFlg:n,legalEntityName:i,creditInRshbCd:a}=e;return{bankruptcyFlg:t,shareholderFlg:n,nameLegalEntity:i,creditInRshbCd:a}})(t)}},Hh=({step:e,inputs:t,onNextStep:n,saveStep:i,finishForm:a})=>{const[r]=vo("taskId"),[s]=vo("profileId"),[o]=vo("participantId"),c=l((async l=>{const c=oo(ni(Rh(Yh(l))(t,e)));if(!En(c(l)))return console.warn("validation fail");i(l);try{r&&s&&o&&await Po((({participantId:e,taskId:t,profileId:n,formData:i,step:a=0})=>({sendToBank:!0,taskKind:"UNITED",task:{taskSource:Gt().origin,id:t,authorizedAgentId:i?.bankEmployeeCode,participants:[{id:e,profile:{id:n},roleCd:{key:"BORROWER",value:"Заемщик"},...Wh(a,i)}],...Uh(i),...qh(i),esiaAccountTypeCd:{key:i?.esiaAccountTypeCd?.key}}}))({participantId:o,taskId:r,profileId:s,step:e,formData:l}))}catch(e){return"Fail"}return n(),5===e&&a?.(!0),"OK"}),[]);return{handleSubmit:c}},Yh=e=>t=>e[t],Kh=d((({step:e,sections:t,onPrevStep:n,onNextStep:i,renderStep:a=Vh,isFormFinished:r,finishForm:d})=>{const[m,u]=vo("leadForm"),h=((e,t)=>({...Bh[e],...t,limitedBirthday:Ph(t?.limitedBirthday),dulIssueDateField:Ph(t?.dulIssueDateField),participantDateRegistration:Ph(t?.participantDateRegistration),beginDate:Ph(t?.beginDate),deliveryDate:Ph(t?.deliveryDate)}))(e,m),p=s(void 0),g=t?.flatMap((e=>e?.inputs))||[],f=l((e=>{p.current=e}),[]),{handleSubmit:x}=Hh({step:e,inputs:g,onNextStep:i,saveStep:u,finishForm:d}),[,{field:y,onSubmit:b}]=tn(h,{onSubmit:(e,t)=>{x({...e,...p.current?.(t)})}});return r?o(Ih,{}):c("form",{onSubmit:b,className:"space-y-m",children:[a({sections:t,field:y,step:e,registerSubmit:f}),o(jh,{step:e,onPrevStep:n})]})})),Gh=[[],[{title:"Персональные данные",columns:2,inputs:[{fieldType:"common",name:"surname",required:!0,dadata:!0,filledByEsia:!0},{fieldType:"common",name:"name",required:!0,dadata:!0,filledByEsia:!0},{fieldType:"common",name:"middleName",dadata:!0,filledByEsia:!0},{fieldType:"common",name:"sex",required:!0},{fieldType:"common",name:"limitedBirthday",required:!0,filledByEsia:!0},{fieldType:"common",name:"birthPlace",required:!0,filledByEsia:!0},{fieldType:"common",name:"phone",required:!0,filledByEsia:!0},{fieldType:"common",name:"email",required:!0,dadata:!0}]},{title:"Паспортные данные",columns:2,inputs:[{fieldType:"common",name:"dulSerie",required:!0,filledByEsia:!0},{fieldType:"common",name:"dulNumber",required:!0,filledByEsia:!0},{fieldType:"common",name:"dulIssueDateField",required:!0,filledByEsia:!0},{fieldType:"common",name:"dulSubdivisionCode",required:!0,dadata:!0,filledByEsia:!0}]},{inputs:[{fieldType:"common",name:"dulIssuedBy",required:!0,dadata:!0,filledByEsia:!0},{fieldType:"common",name:"education",required:!0}]},{title:"Адрес регистрации по месту жительства",columns:1,inputs:[]},{inputs:[{fieldType:"common",name:"addressRegistration",required:!0,dadata:!0,filledByEsia:!0},{fieldType:"common",name:"addressMatch"}]},{columns:2,inputs:[{fieldType:"common",name:"participantDateRegistration",required:!0}]},{title:"Адрес фактического проживания (место пребывания РФ)",inputs:[]},{columns:2,inputs:[{fieldType:"common",name:"housing",required:!0}]},{inputs:[{fieldType:"common",name:"addressFact",required:!0,dadata:!0}]}],[{title:"Данные о трудоустройстве",inputs:[]},{inputs:[{fieldType:"info",text:"Клиент на момент оформления заявки на кредит должен быть: официально трудоустроен более 6 месяцев, если Клиент получает з/п на счет РСХБ, то трудоустроен более 3 месяцев, не должен находиться в декретном отпуске"}]},{inputs:[{fieldType:"common",name:"employment"},{fieldType:"common",name:"organizationName",required:!0,dadata:!0}]},{columns:2,inputs:[{fieldType:"common",name:"inn",required:!0,dadata:!0},{fieldType:"common",name:"legalForm",required:!0}]},{inputs:[{fieldType:"common",name:"organization",required:!1},{fieldType:"common",name:"amountWorkers",required:!1}]},{columns:2,inputs:[{fieldType:"common",name:"employerActivities",required:!1},{fieldType:"common",name:"employerOrganization",required:!1},{fieldType:"common",name:"generalSeniority",required:!0},{fieldType:"common",name:"lastJobExperience",required:!0},{fieldType:"common",name:"experience5Years",required:!0},{fieldType:"common",name:"jobsNumber",required:!0}]},{inputs:[{fieldType:"common",name:"organizationPhone",label:"Телефон работодателя",required:!0},{fieldType:"common",name:"beginDate",required:!0}]},{columns:2,inputs:[{fieldType:"common",name:"positionOrganization",required:!1},{fieldType:"common",name:"partInBusiness",required:!0,condition:{name:"positionOrganization",values:["BUSINESS_OWNER"]}}]},{title:"Адрес работодателя",inputs:[]},{inputs:[{fieldType:"common",name:"organizationAddress",required:!0,dadata:!0}]}],[{title:"Семейное положение"},{columns:1,inputs:[{fieldType:"common",name:"familyStatus",required:!0}]},{columns:1,inputs:[{fieldType:"common",name:"dependents",required:!0}]},{columns:2,inputs:[{fieldType:"common",name:"familyMembers"},{fieldType:"common",name:"children",required:!0}]},{title:"Совокупный доход"},{inputs:[{fieldType:"info",text:"Сумма основного и дополнительных доходов после вычета налога"}]},{columns:1,inputs:[{fieldType:"common",name:"confirmationIncome",required:!0}]},{columns:1,inputs:[{fieldType:"common",name:"wages",required:!0}]},{columns:1,inputs:[{fieldType:"common",name:"mandatoryPayments",required:!0}]},{columns:1,inputs:[{fieldType:"common",name:"snils",required:!0}]},{columns:1,inputs:[{fieldType:"common",name:"conscription",required:!0}]},{columns:2,inputs:[{fieldType:"common",name:"armyIdFlg"}]}],[{title:"Дополнительные сведения",columns:1,inputs:[]},{inputs:[{fieldType:"common",name:"disablePeopleFlg"}]},{inputs:[{fieldType:"common",name:"bankruptcyFlg"}]},{inputs:[{fieldType:"common",name:"shareholderFlg"}]},{inputs:[{fieldType:"common",name:"legalEntityName"}]},{inputs:[{fieldType:"common",name:"creditInRshbCd"}]}],[{title:"Отделение Банка",columns:1,inputs:[]},{inputs:[{fieldType:"common",name:"regionRetail",required:!0}]},{inputs:[{fieldType:"common",name:"addressRetail",required:!0}]},{title:"Код представителя Банка",columns:1,inputs:[]},{inputs:[{fieldType:"info",text:"Если представитель Банка помогал Вам в заведении заявки, введите здесь его код"}]},{inputs:[{fieldType:"common",name:"bankEmployeeCode"}]}]],Xh=["","Персональные данные","Данные о трудоустройстве","Семейное положение и доход","Дополнительные сведения","Отделение Банка"],Jh=d((({className:e,...t})=>{const[n,d]=i(0),m=s(null),h=l((()=>m?.current?.scrollIntoView({behavior:"smooth"})),[m]);a(Ru,[]);const p=l((()=>{d((e=>Math.min(e+1,5))),h()}),[]),f=l((()=>{d((e=>Math.max(e-1,0))),h()}),[]),x=r((()=>Gh[n]),[n]),y=0===n,[b,v]=i(!1);return o(g,{className:u("bg-transparent",e),defaultPadding:"p-0",...t,children:c("div",{ref:m,className:"container grid grid-cols-12",children:[y||b?null:o(xh,{stepsTitles:Xh,step:n,totalSteps:5}),o("div",{className:"py-lg px-5xl mt-2xs bg-white col-span-12",children:o(Kh,{step:n,sections:x,onNextStep:p,onPrevStep:f,isFormFinished:b,finishForm:v,renderStep:y?({registerSubmit:e,field:t})=>o(Nm,{defaultParams:{sum:t("moneyValue").value,period:t("monthsValue").value,isAnnuity:t("isAnnuity").value},title:"Калькулятор кредита",footnote:"Расчёт является предварительным. Точные условия будут предоставлены в отделении Банка.",calcSource:{$ref:"/wcms-resources/credit-calculator-data.json"},registerSubmit:e}):void 0},String(n))})]})})})),Zh=e=>"number"==typeof e?.minMonths&&"number"==typeof e?.maxMonths,Qh=(e,t)=>Array.from({length:t-e+1},((t,n)=>e+n)),ep=1e9,tp={sum:{min:1e4,max:ep},period:3},np=zt((({className:e,filtrationSchema:t={},resetButton:n,sumInput:i,periodInput:a,...l})=>{const[,{blocksToRender:r,blocksWithProps:s},{field:d,reset:m}]=gd(tp,{block:l.block,page:l.options?.page,normalize:e=>({...e,period:ip(e)})}),h=s.map((([,e])=>e?.paramsSource?.rows?.[0]?.rates)),p=ap(h);return c(g,{className:u("space-y-2xs",e),defaultPadding:"p-0",version:"transparent",...l,children:[o(od,{filtrationSchema:t,resetButton:n,field:d,reset:m,children:c("div",{className:"@4xl:max-w-xs space-y-lg",children:[o(Jm,{label:i?.title,min:500,max:ep,...d("sum",{parse:e=>({min:Number(e),max:ep}),format:({min:e})=>String(e)})}),o(ul,{title:a?.title,items:["От 3 мес","До 5 лет"],list:p,...d("period")})]})}),o(ad,{blocksToRender:r,...l})]})}),{childrenTypes:["ProductBlock"],childSchema:e=>({...e?.filtrationSchema||{},paramsSource:{type:"object",title:"Адрес справочника"}})}),ip=e=>Dt((e?.paramsSource?.rateRows||[]).filter(Zh).flatMap((e=>Qh(e.minMonths,e.maxMonths)))),ap=e=>Dt(e.flatMap((e=>e||[])).filter(Zh).flatMap((e=>Qh(e.minMonths,e.maxMonths)))).sort(((e,t)=>e-t))||[],lp=[{key:"10"},{key:"50"},{key:"100"}],rp=({itemCount:e,onItemCountChange:t})=>{const n=l((({key:e})=>t(Number(e))),[]);return c("div",{className:"mt-2 @lg:mt-0 items-center gap-s hidden @lg:flex",children:[o("span",{children:"Показать по"}),o(Rn,{className:"min-w-20",onChange:n,value:{key:String(e)},options:lp,iconVersion:"black"})]})},sp="py-m @lg:px-lg px-m rounded-md cursor-pointer text-center min-w-10 @lg:min-w-0 hover:bg-primary-hover hover:text-white",op=(e,t)=>{const{currentPage:n,onPageChange:i,totalPages:a}=e,l=t+1;return l===n?o("div",{"aria-current":"true",className:"py-m @lg:px-lg px-m bg-primary-main text-center min-w-10 @lg:min-w-0 text-white rounded-md",children:l},String(t)):1!==l&&l!==a&&((e,t,n)=>e<t&&e>=t-1||e<=t+1&&e>t||((e,t,n)=>t<=2&&e<=t+2||t>=n-1&&e>=n-3)(e,t,n))(l,n,a)?o("div",{onClick:()=>i(l),className:sp,"aria-label":`Страница ${l}`,children:l},String(t)):null},cp={width:"24",height:"24"},dp=({currentPage:e,onPageChange:t,totalPages:n})=>{const i=r((()=>Array.from({length:n}).fill({currentPage:e,onPageChange:t,totalPages:n})),[n,e]),a=l((()=>{e>1&&t(e-1)}),[e]),s=l((()=>{e<n&&t(e+1)}),[e,n]),d=l((()=>t(1)),[]),m=l((()=>t(n)),[n]);return c("div",{className:"flex gap-m items-center",children:[o("div",{onClick:a,children:o(W,{name:"ArrowLeftIcon",iconVersion:"black",imageClassName:mp(1===e),...cp})}),c("div",{className:"flex @lg:gap-2xs",children:[e>1?o("div",{onClick:d,className:sp,"aria-label":"Страница 1",children:"1"}):null,e>3?o("div",{className:"py-m @lg:px-s",children:"..."}):null,i.map(op),e<n-2?o("div",{className:"py-m @lg:px-s",children:"..."}):null,e<n?o("div",{onClick:m,className:sp,"aria-label":`Страница ${n}`,children:n}):null]}),o("div",{onClick:s,children:o(W,{className:"rotate-180",name:"ArrowLeftIcon",iconVersion:"black",imageClassName:mp(e===n),...cp})})]})},mp=e=>e?"opacity-20":"cursor-pointer hover:opacity-60",up=({currentPage:e,onPageChange:t,totalPages:n,itemCount:i,onItemCountChange:a})=>c("div",{className:"mt-3xl flex justify-between flex-col @lg:flex-row items-center select-none",role:"navigation","aria-label":"Пагинация",children:[o(dp,{currentPage:e,onPageChange:t,totalPages:n}),i&&a?o(rp,{itemCount:i,onItemCountChange:a}):null]}),hp=d((({className:e,value:t,autoFocus:n,onChange:i,onFocus:a,placeholder:r="Поиск по сайту"})=>{const s=l((e=>{i&&i(e.target?.value||"")}),[i]);return c("div",{className:u("relative",e),role:"form",children:[o("div",{className:"absolute h-full flex items-center pl-m pointer-events-none",children:o(ne,{image:{icon:"LoupeIcon",iconVersion:"black"},width:"24",height:"24"})}),o("input",{className:u("h-14 w-full px-10 text-l text-black box-border rounded-md",un),value:t,type:"text",name:"search-bar-input",placeholder:r,autoFocus:n,onChange:s,onFocus:a})]})})),pp=d((({field:e,onClearFilter:t,filtrationState:n})=>c("div",{className:"grid grid-cols-12 mb-3xl @lg:space-x-xl",children:[o(hp,{className:"col-span-12 @lg:col-span-4 mt-auto",placeholder:"Поиск",...e("query")}),o(Hl,{className:"col-span-12 @lg:col-span-3 mt-4 @lg:mt-0",label:"Период от",maxDate:n.endDate,...e("startDate")}),o(Hl,{className:"col-span-12 @lg:col-span-3 mt-4 @lg:mt-0",label:"Период до",minDate:n.startDate,...e("endDate")}),o("div",{className:"col-span-12 @lg:col-span-2 mt-8 @lg:mt-auto",children:o(ja,{type:"reset",className:"w-full",version:"secondary",onClick:t,children:"Очистить"})})]}))),gp=(e,t)=>o(wd,{...e,iconBgVersion:t,className:"shrink-0"}),fp=d((({title:e,timestamp:t,publicId:n})=>{const i=he(),{href:a}=i({href:`${qt}/depository/${n}/file`});return c("div",{className:"flex gap-3 items-center py-lg border-gray border-opacity-50 border-b",children:[gp({icon:"DocDownloadIcon",iconVersion:"black"}),c("div",{className:"flex flex-col gap-x-6xl lg:flex-row lg:items-center",children:[t?o(_e,{size:"text-m","font-weight":"font-light",children:Lt(t)}):null,o("a",{className:"text-h6 hover:text-primary-active",href:a,download:!0,"aria-label":"Скачать",children:e})]})]},n)})),xp=`${qt}/depository`,yp={startDate:void 0,endDate:void 0,query:""},bp=zt((({className:e,...t})=>{const[n,a]=i(0),[r,s]=i(10),[d,{field:m,reset:h}]=tn(yp),{totalPages:p=0,items:f=[]}=(({size:e,page:t,query:n,startDate:i,endDate:a})=>{const l=i?Lt(i,!0):"",r=a?Lt(a,!0):"",s=new URLSearchParams(xp);s.set("page",String(t)),s.set("size",String(e)),s.set("query",n),s.set("timestampStart",l),s.set("timestampEnd",r);const o=`?${s.toString()}`,{data:c}=pi(xp+o,Rt);return{items:c?.content,totalPages:c?.totalPages}})({size:r,page:n,...d}),x=l((e=>a(e-1)),[]),y=l((e=>{r!==e?(s(e),a(0)):s(e)}),[]);return c(g,{className:u(e,"container p-6xl"),...t,children:[o(pp,{filtrationState:d,field:m,onClearFilter:h}),c("div",{className:"flex flex-col",children:[c("div",{className:"grid grid-cols-12 pb-lg border-gray border-opacity-50 border-b",children:[o("div",{className:"col-span-4 @lg:col-span-2 hidden @lg:block",children:o(_e,{size:"text-m",color:"text-secondary-text",children:"Дата"})}),o("span",{className:"col-span-8 @lg:col-span-10 hidden @lg:block",children:o(_e,{size:"text-m",color:"text-secondary-text",children:"Тема"})})]}),f.length?f.map((e=>o(fp,{...e},String(e.publicId)))):o(yc,{title:"Ничего не найдено",description:"Попробуйте очистить фильтры"}),o(up,{currentPage:n+1,onPageChange:x,totalPages:p,itemCount:r,onItemCountChange:y})]})]})})),vp=e=>"Image"===e?.contentType&&e?.image?o(ne,{image:e.image}):"Code"===e?.contentType&&e.code?o("div",{className:"font-mohave text-title-large sm:text-title-extra gradient-color-text",children:e.code}):null,Np=d((({className:e="",title:t,description:n,error:i,button:a,...l})=>c(g,{className:u("flex flex-col justify-center items-center",e),defaultPadding:u("p-6xl"),version:"transparent",...l,children:[o("div",{className:"flex justify-center",children:vp(i)}),o(k,{title:t,description:n,headlineVersion:"XL",isEmbedded:!0,className:"mb-2xl last:mb-0"}),a?.text?o(ve,{version:a?.version,text:a?.text,...a}):null]})));function wp(e,t){for(const[n,i]of e.entries())null!=i?t.setItem(n,i):t.removeItem(n)}const Cp={};function Sp(e,t=Cp){const n=s(null),o=function(){const[,e]=i(0);return l((()=>e((e=>(e+1)%65536))),[])}();return a((()=>e.bus.watch((e=>{n.current?.has(String(e.type))&&o()}))),[e,o]),r((()=>new Proxy(t,{get:(t,i)=>(n.current||=new Set,n.current.add(i),e.getItem(i)),has:(t,i)=>(n.current||=new Set,n.current.add(i),e.hasItem(i)),set:(t,n,i)=>(e.setItem(n,i),!0),deleteProperty:(t,n)=>(e.removeItem(n),!0)})),[e])}const kp=new class{bus;store=new Map;get size(){return this.store.size}constructor(e=new de){this.bus=e}hasItem(e){return this.store.has(e)}getItem(e){return this.store.get(e)}entries(){return this.store.entries()}setItem(e,t){this.store.set(e,t),this.bus.subject(e,t)}removeItem(e){this.store.delete(e),this.bus.subject(e,null)}};var Ip,Tp;function Bp(e){return Sp(kp,e)}Ip=kp,Tp=new class{storage;bus;get size(){return this.storage?.length??0}constructor(e,t=new de){this.storage=e,this.bus=t}hasItem(e){return Boolean(this.storage?.getItem(String(e)))}getItem(e){const t=this.storage?.getItem(String(e))??null;try{return JSON.parse(String(t))}catch(e){return null}}entries(){return Array.from({length:this.size},((e,t)=>{const n=String(this.storage?.key(t));return[n,this.getItem(n)]}))}setItem(e,t){null!==t?this.storage?.setItem(String(e),JSON.stringify(t)):this.storage?.removeItem(String(e)),this.bus?.subject(e,t)}removeItem(e){this.storage?.removeItem(String(e)),this.bus?.subject(e,null)}}(globalThis?.localStorage),wp(Ip,Tp),wp(Tp,Ip),Ip.bus.watch((({type:e,event:t})=>{null!=t?Tp.setItem(e,t):Tp.removeItem(e)}));const Pp=`${qt}/region`;function Rp(e="Москва"){return Bp().location??{name:e}}function Dp(e="Москва"){const t=Bp(),n=l((async()=>{if(!t.location){const n=await Pt(Pp);t.location=n??{name:e}}}),[t,e]);return pi(Pp,n),t}var Mp;!function(e){e.RUB="RUB",e.EUR="EUR",e.USD="USD",e.CNY="CNY"}(Mp||(Mp={}));const _p=new Intl.NumberFormat("ru",{style:"currency",currency:Mp.RUB}),Ap=e=>e?_p.format(e):"",Ep="text-m font-light text-secondary-text ",zp=`${Ep} text-left`,Fp=`${Ep} pl-5xl text-center`,Op=`${Ep} pl-5xl text-right`,Vp={USD:"DollarIcon",EUR:"EuroIcon",CNY:"ChineseYuanRenminbiIcon"},Lp=d((({className:e,exchangeCurrencyItems:t})=>c("table",{className:u("h-fit w-full",e),children:[o("thead",{children:c("tr",{children:[o("th",{className:zp,children:o(_e,{size:"text-m",children:"Валюта"})}),o("th",{className:Fp,children:o(_e,{size:"text-m",children:"Купить"})}),o("th",{className:Op,children:o(_e,{size:"text-m",children:"Продать"})})]})}),o("tbody",{children:t.map(jp)})]}))),jp=e=>{const t=e?.currency?.currency;return c("tr",{className:"pb-2xs text-h6",children:[o("td",{className:"pt-m m-auto flex text-left",children:c("div",{className:"flex items-center gap-xs",children:[t?o(ne,{image:{icon:Vp[t]},width:"24",height:"24"}):null,o(_e,{size:"text-h6",children:t})]})}),o("td",{className:"pt-m pl-5xl text-center",children:o(_e,{size:"text-h6",children:Ap(e?.saleExchangeRate)})}),o("td",{className:"pt-m pl-5xl text-right",children:o(_e,{size:"text-h6",children:Ap(e?.buyExchangeRate)})})]},t)},qp={icon:"GpsIcon"},$p=d((({className:e="",address:t})=>c("div",{className:u("flex gap-s w-full justify-between @sm:justify-center",e),children:[o(wd,{...qp,iconBgVersion:"primary",className:"shrink-0"}),c("div",{className:"space-y-2xs whitespace-pre-wrap",children:[t?o(C,{size:"text-l",color:"text-primary-main",children:t}):null,o(C,{size:"text-m",color:"text-secondary-text",children:"Курс указан для заданного офиса"})]})]}))),Up=(e,t,n)=>{const i=Number(Wp(e))*Math.pow(t,n?-1:1);return Number.isInteger(i)?i:((e,t=2)=>{const n=10**t;return Math.round(parseFloat(String(e))*n)/n})(i)},Wp=e=>e.replace(/[^\d.,]/g,"").replace(",",".");function Hp(e){if(!e)throw new Error("Value should be fulfilled");return e}const Yp=e=>t=>{const[,n]=Hp(e.find((([e])=>e(t))));return n(t)},Kp=e=>Yp(e.map((([e,t])=>[e,()=>t])));Kp.if=e=>new Gp(void 0,e);class Gp{parent;predicate;unit;get entry(){return[Hp(this.predicate),Hp(this.unit)]}constructor(e,t,n){this.parent=e,this.predicate=t,this.unit=n}if(e){return new Gp(this,e)}then(e){return new Gp(this.parent,this.predicate,e)}else(e){return Yp([...Xp(this),[()=>!0,e]])}}const Xp=e=>[...e?.parent?Xp(e.parent):[],e.entry],Jp=e=>Kp([[e=>e.value!==Mp.RUB&&e.oppositeValue!==Mp.RUB,()=>e.handleConvert(e.value,Mp.RUB)],[e=>e.value===Mp.RUB&&e.oppositeValue===Mp.RUB,()=>e.handleConvert(e.value,Mp.USD)],[e=>e.value===Mp.RUB&&e.oppositeValue===Mp.RUB,()=>e.handleConvert(e.value,Mp.CNY)],[()=>!0,()=>e.handleConvert(e.value)]])(e)?.();function Zp(e){const{placeholder:t,rates:n,selected:i,value:a,setValue:l,setSelected:r}=e,s=n.map((e=>({key:e?.currency?.currency??"",text:e?.currency?.currency??""}))),d={key:i,text:i};return c("div",{className:"relative flex",children:[o(pn,{className:"shrink-0 text-l w-full appearance-none -mr-20",placeholder:t,type:"text",value:a,onChange:l}),s.length?o(Rn,{className:"absolute right-0",isBorder:!1,onChange:e=>r(e.key),options:s,value:d}):null]})}const Qp=d((({className:e="",currencyRatesBuy:t,currencyRatesSell:n,button:a})=>{const[r,s]=i({inputSell:"",inputBuy:"",selectSell:t?.[0]?.currency?.currency||Mp.RUB,selectBuy:n?.[0]?.currency?.currency||Mp.USD}),d=l((e=>s((t=>({...t,...e})))),[]);return c("div",{className:`flex flex-col gap-m pt-2xl ${e}`,children:[t&&n?c("div",{className:"grid gap-m",children:[Zp({placeholder:"Хочу продать",rates:n,selected:r.selectSell,setSelected:eg(r,d,n),value:r.inputSell,setValue:e=>ng(d,n)(e,r.selectSell,r.selectBuy)}),Zp({placeholder:"Получу",rates:t,selected:r.selectBuy,setSelected:tg(r,d,t),value:r.inputBuy,setValue:e=>ig(d,t)(e,r.selectBuy,r.selectSell)})]}):null,a?.text?o(ve,{text:a.text,version:a?.version,...a}):null]})})),eg=(e,t,n)=>i=>{t({selectSell:i}),Jp({value:i,oppositeValue:e.selectBuy,handleConvert:(i=e.selectSell,a=e.selectBuy)=>{ng(t,n)(e.inputSell,i,a)}})},tg=(e,t,n)=>i=>{t({selectBuy:i}),Jp({value:i,oppositeValue:e.selectSell,handleConvert:(i=e.selectBuy,a=e.selectSell)=>ig(t,n)(e.inputBuy,i,a)})},ng=(e,t)=>(n,i,a)=>{e({inputSell:Wp(n),selectBuy:a});const l=t.find((e=>e.currency?.currency===a))?.buyExchangeRate||t.find((e=>e.currency?.currency===i))?.buyExchangeRate;l&&e({inputBuy:String(Up(n,l,i===Mp.RUB)||"")})},ig=(e,t)=>(n,i,a)=>{e({inputBuy:Wp(n),selectSell:a});const l=t.find((e=>e.currency?.currency===a))?.saleExchangeRate||t.find((e=>e.currency?.currency===i))?.saleExchangeRate;l&&e({inputSell:String(Up(n,l,i===Mp.RUB)||"")})},ag=`${qt}/exchangerates`;const lg=d((({className:e="",title:t="Курсы обмена валют",button:n,...i})=>{const a=function(e){const t=e?.code||"000",{data:n}=pi(ag+`?regionCode=${t}`,Rt);return n||{}}(Rp()),l=rg(a?.exchangeRate?.currencies),r=l.filter((e=>e.buyExchangeRate));r.unshift({currency:{currency:Mp.RUB}});const s=l.filter((e=>e.saleExchangeRate));return s.push({currency:{currency:Mp.RUB}}),o(g,{className:u("box-border min-h-80",e),...i,children:o(Te,{className:"h-full",title:o(w,{headingType:"h4",title:t,className:"whitespace-pre-wrap"}),children:c("div",{className:"flex w-full gap-6xl flex-wrap @lg:flex-nowrap",children:[c("div",{className:"w-full @2xl:w-auto @5xl:w-1/2",children:[l?o(Lp,{className:"mb-xl",exchangeCurrencyItems:l}):null,o($p,{address:a?.address})]}),o(Qp,{className:"grow w-1/2",currencyRatesBuy:r,currencyRatesSell:s,button:n})]})})})})),rg=e=>e?.filter((e=>[1,2,3].includes(e?.currency?.id)))||[],sg=d((({className:e="",items:t})=>{const n=he();return o("ul",{className:u("flex flex-col gap-s w-full",e),children:t?.map(og(n))})})),og=e=>({dataFooter:t,...n},i)=>{const{text:a,href:l,target:r,onClick:s}=e(n);return a?o("li",{className:"list-none",children:o("a",{className:"hover:text-primary-main font-light",role:"link",href:l,target:r||"_self",onClick:s,...ge(t),children:a||null})},String(i)):null},cg=d((({label:e,labelIconBgVersion:t,icon:n,onToggle:i,labelIcon:a})=>o(Zc,{tag:"button",className:u("border-none bg-transparent items-center group/button",a?.icon?"py-xs":"py-lg"),onClick:i,textNode:c("div",{className:"flex items-center text-start group-hover/button:text-primary-main gap-s",children:[gp(a,t),e?o(_e,{size:"text-h6",font:"font-normal",children:e}):null]}),iconNode:n?o(W,{name:n,iconVersion:"color",width:"24",height:"24"}):null}))),dg=(e=!1)=>e?"flex flex-wrap group-last:last:pb-0":"grid grid-cols-12 [&>*]:pb-m",mg=(e=!1)=>e?"MinusIcon":"PlusIcon",ug=(e=!1)=>e?"ArrowUpSolidIcon":"ArrowDownSolidIcon",hg=zt((({className:e="",isExpanded:t,isFoldButtonOnTop:n=!0,label:i="Развернуть",labelIcon:a,labelIconBgVersion:l,foldButtonVersion:r="default",version:s,role:c,...d})=>{const m=Se();return o(g,{className:u("w-full border-0 border-b border-solid border-main-divider last:border-b-0",e),defaultPadding:"p-0",tag:"div",version:"transparent",role:c,...d,children:o(na,{isFoldButtonOnTop:n,unfoldedByDefault:t,renderFoldableSection:({isUnfolded:e})=>o(ia,{className:u("gap-lg",dg(m)),isUnfolded:e,children:D({...d,extraProps:{className:"w-full",padding:"p-0"}})}),renderFoldButton:({isUnfolded:e,onToggle:t})=>pg({foldButtonVersion:r,label:i,labelIcon:a,labelIconBgVersion:l,isUnfolded:e,onToggle:t,isMobile:m})})})}),{childrenTypes:{exclude:["RollupItem"]}}),pg=({foldButtonVersion:e,label:t,labelIcon:n,labelIconBgVersion:i,isUnfolded:a,onToggle:l,isMobile:r=!1})=>{const s=t||(a?"Скрыть":"Развернуть"),c=((e=!1,t=!1)=>t?ug(e):mg(e))(a,r);return"accordion"===e?o(cg,{label:s,labelIcon:n,labelIconBgVersion:i,icon:c,onToggle:l}):o(Qc,{label:s,icon:a?"ArrowUpIcon":"ArrowDownIcon",onClick:l})},gg=d((({navigationItems:e})=>o("div",{className:"w-full",role:"menu",children:fg(e)}))),fg=e=>e?.filter((e=>e.icon?.icon)).map(((e,t)=>o(hg,{foldButtonVersion:"accordion",label:e?.text,labelIcon:e?.icon,role:"menuitem",children:e.items?o(sg,{items:e.items}):null},String(t)))),xg=d((({className:e="",items:t=[]})=>t?.length?o("div",{className:u("space-y-m",e),children:t.map(yg)}):null)),yg=(e,t)=>c("div",{className:"space-y-m",children:[o("div",{children:o(_e,{size:"text-l",font:"font-medium",children:e?.title})}),o("div",{className:"space-y-m",children:e.items?.map(bg)})]},String(t)),bg=(e,t)=>c("div",{className:"space-y-2xs",children:[o("div",{children:vg(e.type,e.text)}),o(C,{size:"text-s",font:"font-light",color:"text-secondary-text",children:e.description})]},String(t)),vg=(e,t="")=>{switch(e){case"tel":return o("a",{className:"text-primary-text hover:text-primary-main no-underline",href:`tel:${Ng(t)}`,children:o(_e,{size:"text-h6",children:t})});case"email":return o("a",{className:"no-underline",href:`mailto:${t}`,children:o(C,{size:"text-xl",font:"font-light",color:"text-primary-text",children:t})});default:return o("span",{children:t})}},Ng=e=>e.replaceAll(/\D/g,""),wg=d((({className:e="",index:t,text:n,...i})=>{const a=he(),{href:l,target:r,onClick:s}=a(i);return o("a",{className:u("text-secondary-text",e),href:l,target:r,onClick:s,children:n||`Документ ${t}`})})),Cg=d((({className:e="",title:t,links:n})=>o("div",{className:e,children:n?.length?c("div",{className:"flex justify-between lg:items-center flex-col lg:flex-row gap-lg py-lg border-y border-y-main-divider",children:[o("div",{className:"lg:hidden",children:o(_e,{size:"text-l",font:"font-normal",children:t})}),n.map(((e,t)=>o(wg,{index:t,className:"text-l font-light lg:max-w-[292px]",...e},String(t))))]}):null}))),Sg=d((({className:e="",index:t,...n})=>{const i=he(),{href:a,target:l,text:r,onClick:s}=i(n);return o("a",{className:u("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:l,onClick:s,children:r||`Документ ${t}`})})),kg=d((({className:e="",links:t,license:n})=>c("div",{className:u("@container space-y-lg",e),children:[n?o("div",{children:o(_e,{size:"text-xs",font:"font-light",color:"text-secondary-text",children:`© 2000-${(new Date).getFullYear()} ${n}`})}):null,t?.length?o("div",{className:"flex flex-col @5xl:flex-row justify-start items-start gap-x-lg gap-y-xs",children:t.map(((e,t)=>o(Sg,{index:t,...e},String(t))))}):null]}))),Ig=zt((({className:e,footer:t,...n})=>{const{navigationItems:i}=n.options?.page?.navigation??{};n.options;const{documents:a,relatedEnterprises:l,contacts:r,mediaLinks:s=[],horizontalNavigationTitle:d,feedbackButton:m,license:h,otherLinks:p=[]}=t??{};return c(g,{tag:"footer",className:u("grid gap-y-xl p-4xl pb-24 lg:p-xl",e),...n,children:[null,c("div",{className:"flex flex-col lg:flex-row items-center @lg:items-stretch gap-lg lg:gap-6xl ",children:[o(gg,{navigationItems:i}),o("div",{className:"border-t border-main-divider lg:hidden w-full"}),c("div",{className:u("w-full lg:w-52","flex flex-col shrink-0 overflow-hidden space-y-xl"),children:[o(xg,{items:r}),m?o(ve,{className:"w-full",version:"primary",...m}):null,s.map(((e,t)=>o(wu,{media:e?.links??[],showButtonText:!1,stretched:!0,children:e?.title},String(t)))),p.map(((e,t)=>o(ve,{className:"!text-left text-s font-light",version:"link",...e,children:e?.text},String(t))))]})]}),o(Cg,{title:d,links:l}),o(kg,{links:a,license:h})]})})),Tg=zt((({className:e,title:t,button:n,regionSource:a,data:l,...r})=>{const[s,d]=i({key:""}),m=a?.regions??[],h=oe({className:"text-white",version:n?.version||"primary"}),p=m?.find((e=>e.name===s.key))?.href,f=n?.text?n.text:"Перейти";return o(g,{className:e,defaultPadding:"p-6xl",...r,children:c("div",{className:"container max-w-[978px] space-y-m",children:[t?o(w,{headingType:"h3",title:t,className:"@xl:text-center"}):null,m?o(An,{label:"Ваш регион",placeholder:"Выберите регион",isSearch:!0,options:m.map((({name:e=""})=>({key:e,text:e}))),value:s,onChange:d}):null,p?o("div",{className:"text-center",children:o(ve,{href:p,target:"_blank",className:u("p-m w-full @xl:w-auto",h),data:bu(l,s?.key),children:f})}):null]})})})),Bg={default:"bg-main-divider text-primary-main rounded hover:text-primary-main",transparent:"backdrop-opacity-30 bg-white/30 hover:text-primary-hover text-white"},Pg=d((({version:e,text:t,mobileText:n,...i})=>{const a=Se()?n:t;return a?o(ve,{className:u("py-s px-lg font-light whitespace-nowrap",Bg["transparent"===e?"transparent":"default"]),...i,children:a}):null})),Rg=d((({bgColor:e,logo:t,alwaysShowLogo:n,internetBankButton:i,version:a,backwardButton:r})=>{const s=M(),d="/"===s.pathname,{dataFooter:m,dataHeader:u,...h}=t??{},p=l((()=>{s.back()}),[s]);return c("div",{className:"flex items-center justify-between w-full",children:[n||d?o("div",{children:o(zo,{className:"my-2xs",bgColor:e,logo:h,data:u,showTitle:!1})}):Dg(p,r),o(Pg,{version:a,...i})]})})),Dg=(e,t)=>t?c("button",{className:"flex items-center text-l my-2xs",onClick:e,type:"button","aria-label":"Кнопка назад",children:[o(W,{name:"ChevronLeftIcon",iconVersion:"black",width:"24",height:"24"}),t]}):null,Mg={"bg-white":"primary",transparent:"transparent"},_g=zt((({bgColor:e="bg-white",alwaysShowLogo:t=!1,version:n=Mg[e],portal:i,logo:a={},...l})=>{const{backwardButton:r,logo:s={}}=l.options?.page?.common??{},{internetBankButton:c}=i||{},d=a.image?.icon||a.image?.src?a:s;return o(g,{tag:"header",defaultPadding:"",version:n,...l,children:o("div",{className:"container px-lg py-2xs box-border",children:o(Rg,{bgColor:e,logo:d,alwaysShowLogo:t,internetBankButton:c,version:n,backwardButton:r,...l})})})})),Ag=(e=!1)=>e?{}:{padding:"p-0"},Eg={XXL:"gap-6xl",XL:"gap-5xl",L:"gap-3xl",M:"gap-m",S:"gap-xs",XS:"gap-2xs","":""},zg=zt((({className:e="",padding:t="p-0",gap:n="",isInnerPadding:i=!0,version:a="transparent",isTheme:l=!1,isCardBorder:r=!1,image:s,...c})=>{const d=M();return o(g,{className:u("relative flex flex-col",Eg[n],s?.src?"bg-right-bottom bg-no-repeat":"",e),...s?.src?{style:{backgroundImage:`url(${J(d)(s?.src)})`}}:{},padding:t,version:a,isTheme:l,...c,children:D({...c,extraProps:{className:u("w-full",bc(r)),...Ag(i)}})})}),{childrenTypes:[]}),Fg=zt((e=>o(zg,{...e})),{childrenTypes:[]}),Og=d((e=>{const{className:t,align:n,image:i,...a}=e,l=n?u("flex",Td[n]):"";return o(g,{className:u(l,t),defaultPadding:"p-0",...a,children:o(ne,{image:i})})})),Vg=["байт","Кб","Мб","Гб","Тб","Пб"],Lg=d((({icon:e,text:t,href:n,target:i,fileFormat:a,data:l,fileSize:r})=>{const s=r&&a?",":"",d=r??"",m=a?String(a):"";return c("a",{className:"flex box-border gap-s group/item h-fit w-fit text-primary-text no-underline hover:text-primary-main",href:n,target:i,...ge(l),children:[e,t?c(_e,{size:"text-l",font:"font-light",children:[t," ",jg(d,m),o(_e,{color:"text-secondary-text",children:n&&`${d+s+m}`})]}):null]})})),jg=(e,t)=>e||t?o("span",{children:", "}):"",qg=(e,t)=>(n,i)=>{const a=$(e)("Attachment"===n?.docType?n?.attachment?.src:n?.href),l="Attachment"===n?.docType?((e,t=2)=>{if(0===e)return"";const n=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/Math.pow(1024,n)).toFixed(t))} ${Vg[n]}`})(n?.attachment?.fileSize||0):n?.fileSize,r="Attachment"===n?.docType?Ug(a):n?.fileFormat;return c("div",{role:"listitem",children:[o(Lg,{text:n?.text,target:n?.target,href:a,fileFormat:r,fileSize:l,icon:$g(t),data:n?.data}),o(De,{__html:n?.__html})]},String(i))},$g=e=>e?o(ne,{className:"min-w-11 min-h-11 h-fit p-2.5 bg-main-divider rounded-md",image:e,width:"24",height:"24"}):null,Ug=e=>{if(!e)return"";const t=e.lastIndexOf("."),n=new RegExp(/\/(.*)/),i=-1!==t?e.substring(t+1):"";return i.includes("/")?i.replace(n,""):i},Wg=d((({href:e,__html:t,target:n})=>{const{close:i}=ue(),a=M(),r=$(a)(e),s=l((()=>{i()}),[]);return c(sr,{className:"my-6xl min-h-fit w-fit mx-auto",children:[t?o(De,{__html:t}):null,c("div",{className:"flex flex-row mx-auto w-fit gap-lg py-lg",children:[o(ve,{text:"Я согласен",version:"primary",target:n,href:r,onClick:s}),o(ja,{type:"button",version:"secondary",onClick:s,children:"Я не согласен"})]}),o("div",{children:"Нажимая кнопку «Я СОГЛАСЕН» ниже Вы принимаете данные условия. Распространение или раскрытие любой части данного Заключения или любой информации, или рекомендации в нем запрещено.»"})]})})),Hg=d((({text:e,href:t,target:n,__html:i,icon:a})=>{if(!e&&!i)return null;const r=(e=>{const{open:t,close:n}=ue();return{open:(n={})=>t(o(Wg,{...e}),n),close:n}})({__html:i,href:t,target:n}),s=l((()=>r.open()),[r]);return c("button",{className:"flex gap-s text-primary-text no-underline hover:text-primary-main",onClick:s,children:[$g(a),o(_e,{font:"font-light",children:e})]})})),Yg={double:"sm:flex-wrap sm:flex-row",single:"sm:flex-col"},Kg=zt((({className:e="",title:t,description:n,align:i="text-center",documents:a,icon:l={icon:"DocIcon"},columnsMode:r="double",...s})=>{const d=M();return c(g,{className:u("space-y-lg",e),defaultPadding:"p-6xl",...s,children:[o(k,{title:t,description:n,align:i,headlineVersion:"M",as:"h2",isEmbedded:!0}),a?.length?o("div",{className:u("grid gap-xl","double"===r?"@md:grid-cols-2":"grid-cols-1",Yg[r]),role:"list",children:a.map(Gg(d,l))}):null]})})),Gg=(e,t)=>(n,i)=>{const a=n?.docType;return""===a?null:"reportSource"in n&&n?.reportSource?.__html?Xg(t)(n,i):qg(e,t)(n,i)},Xg=e=>(t,n)=>{const i={text:t.text,target:t.target,__html:t.reportSource?.__html};return t.reportSource?.__html&&t.text?c("div",{role:"listitem",children:[o(Hg,{...i,icon:e,href:Jg(t)?t?.href:t?.attachment?.src}),o(De,{__html:t?.__html})]},String(n)):null},Jg=e=>"href"in e,Zg=zt((({className:e,padding:t,align:n="text-left",buttons:i=[],description:a,image:l,__html:r,headingType:s,qr:d,additionalDescription:m="",title:h="Мобильное приложение",version:p="primary",...f})=>{const x="secondary"===p?"p-m min-w-32":"min-w-24",y=l?.src?o(ne,{className:"hidden lg:block",image:l}):null;return o(g,{className:u("min-h-80",e),padding:"p-0",version:p,...f,children:c(Te,{className:"h-full",padding:t,defaultPadding:"p-6xl",title:o(w,{headingType:s,title:h,className:u("whitespace-pre-wrap",n)}),rightImage:y,buttons:je(i,{className:"flex-wrap"}),children:[a?o(_e,{size:"text-xl","font-weight":"font-light",children:a}):null,c("div",{className:u("gap-m","flex flex-1 flex-col","flex-col items-start @xl:flex-row @xl:items-center"),children:[r?o(De,{__html:r,itemSize:"list-m"}):null,o(_e,{size:"text-m","font-weight":"font-light",color:"text-secondary-text",children:m}),d?.src?o("div",{className:u("flex justify-center bg-white rounded-md @xl:-order-1",x),children:o(ne,{className:"w-fit",image:d})}):null,l?.src?o(ne,{className:"lg:hidden",image:l}):null]})]})})})),Qg=(e=[],t={})=>e.filter((({content:e={}})=>hd(t,e))).length,ef=(e,t)=>e===t;const tf=(e=>(t,n)=>t===n||Boolean(t&&n&&Object.keys(t).length===Object.keys(n).length&&Object.entries(t).every((([t,i])=>e(i,n[t])))))(function(...e){return(t,n)=>e.some((e=>e(t,n)))}(ef,((e=ef)=>(t,n)=>t===n||Boolean(t&&n&&t.length===n.length&&t.every(((t,i)=>e(t,n[i])))))())),nf=[],af={},lf={primary:"bg-white/30",secondary:"bg-main-divider"},rf={primary:{desktop:"text-white",mobile:"text-primary-text"},secondary:{desktop:"text-secondary-text",mobile:"text-secondary-text"}},sf=d((({count:e,version:t="secondary"})=>{const n=Se(),i=n?"bg-main-divider":lf[t],a=rf[t][n?"mobile":"desktop"];return o("div",{className:u("w-6 h-6 rounded-full flex items-center justify-center",i),role:"status","aria-label":`Количество ${e} доступных программ и сервисов`,children:o(_e,{size:"text-xs",color:a,children:e})})})),of=({text:e,description:t,icon:n,isActive:i,type:a})=>{const l=(e=>({btn:"w-96 "+(e?"p-m border-none bg-primary-main text-white":"p-s ease-in duration-300 bg-white"),text:e?"mb-xs text-xl":"mb-2xs text-l text-primary-text",desc:"font-light "+(e?"text-l text-white":"text-m text-secondary-text"),icon:e?"":"text-primary-main",iconVersion:e?"white":"normal",oldText:"text-m text-center",oldDesc:"text-m-light"}))(i);return c("div",{className:u("cursor-pointer text-left border-b-0 flex gap-2xs"),"aria-label":e,"aria-labelledby":`${e}-label`,children:[n?o(ne,{className:u("h-6 w-6 min-w-6 min-h-6",l.icon),image:{...n,iconVersion:n?.iconVersion??l.iconVersion},width:"24",height:"24",alt:e}):null,c("div",{className:"border-0",children:[o("div",{className:"animated"===a?l.text:l.oldText,children:e}),o("div",{className:"animated"===a?l.desc:l.oldDesc,children:t})]})]})},cf={default:"px-xs",underlined:"px-m",animated:"px-m border border-gray cursor-pointer text-left border-b-0 mt-auto flex gap-2xs"},df={default:"text-black sm:text-white",underlined:"text-primary-main border-b-2",animated:"text-white sm:text-white"},mf={default:"bg-white",underlined:"bg-white",animated:"p-1 ease-in duration-300 bg-white text-primary-text h-[70px] w-96"},uf={default:"bg-white sm:bg-primary-main",underlined:"bg-white",animated:"p-2 border-none bg-primary-main text-white h-20 w-96"},hf=d((({tag:e="div",item:t={},isActive:n=!1,type:i="default",onClick:a})=>{const l=e,{text:r,description:s,icon:d,count:m,tabName:h,...p}=t;return o(l,{className:u("h-12","block flex-1","cursor-pointer",cf[i],n?uf[i]:mf[i]),role:"tablist","aria-label":"Список табов",onClick:a,...p,children:c("div",{className:u("h-full","flex justify-center items-center","text-center whitespace-nowrap",n?df[i]:"text-secondary-text hover:text-primary-main"),role:"tab","aria-label":`Таб ${r}`,children:[of({text:r,description:s,icon:d,isActive:n,type:i}),Number.isInteger(m)?o("div",{className:"ml-xs",role:"status","aria-label":`Количество программ и сервисов ${m}`,children:o(sf,{count:m,version:qa(n,i)})}):null]})})})),pf=d((e=>o(e?.item?.href?gf:ff,{...e}))),gf=d((e=>{const t=he(),n=l((()=>{e.onClick&&e.onClick(e.item||{})}),[e.onClick,e.item]),{onClick:i,...a}=t({...e.item,onClick:n});return o(hf,{...e,tag:"a",item:a,onClick:i})})),ff=d((({item:e={},onClick:t,...n})=>{const i=l((()=>{t&&t(e)}),[t,e]);return o(hf,{item:e,onClick:i,...n})})),xf=(e,t,n)=>(i,a)=>o(pf,{isActive:i===e,onClick:t,type:n,item:i},String(a)),yf=d((({className:e,tabsType:t="default",items:n=[],activeItem:i,onChange:a})=>o("div",{className:u("flex gap-x-2xs overflow-x-auto no-scrollbar",e),role:"tabpanel","aria-label":"Панель управления табами",children:n.map(xf(i,a,t))}))),bf={categories:[],extraOptions:[],propertyType:[],stage:[]},vf=zt((({className:e,hotFilters:t,filtrationSchema:n={},resetButton:i,...a})=>{const[s,{blocksToRender:d},{field:m,reset:h,update:p}]=gd(bf,{block:a.block,page:a.options?.page}),f=l(((e=bf)=>p(e)),[]),x=(({hotFilters:e=nf,filtrationState:t=af,blocks:n=nf,onFiltrationStateChange:i})=>{const a=r((()=>Math.max(0,e.findIndex((e=>tf(e.filter,t))))),[e,t]),s=r((()=>e.map((t=>({text:t.text,count:Qg(n,t.filter),version:qa(t===e[a])})))),[e,n,a]),o=l((t=>{i(e[s.indexOf(t)].filter)}),[e,s]);return{activeItem:s[a],items:s,onChange:o}})({hotFilters:t,filtrationState:s,blocks:a.block?.blocks,onFiltrationStateChange:f});return c(g,{className:u("space-y-2xs",e),defaultPadding:"p-0",version:"transparent",...a,children:[o(yf,{...x}),o(od,{filtrationSchema:n,resetButton:i,field:m,reset:h}),o(ad,{blocksToRender:d,...a})]})}),{childrenTypes:["ProductBlock"],childSchema:e=>e?.filtrationSchema||{}}),Nf=({location:e,address:t,billAcceptorType:n,terminalType:i,billAcceptorEnable:a,atmCode:l="",atmAccess:r="",workTime:s},d)=>{const m=[{label:"Устройство",value:Sf(i)},{label:"Модуль приема наличных",value:a?"Да":"Нет"},{label:"Прием наличных пачкой",value:"банкомат принимает пачками"===n?"Да":"Нет"},{label:"Доступность",value:["внешняя установка","территория банка"].includes(r)?"Общедоступный":""},{label:"Регистрационный номер",value:l}];return c("div",{className:"bg-white col-span-12 p-3xl sm:border-green sm:border",children:[c("div",{className:"sm:flex sm:justify-between",children:[c("div",{children:[o(_e,{size:"text-h4",children:Sf(e)}),t?c("div",{className:"flex pb-xl pt-xs gap-2xs",children:[o(W,{name:"GeolocationIcon",width:"24",height:"24"}),o(_e,{size:"text-l",children:t})]}):null]}),o("div",{className:"whitespace-nowrap",children:o(ba,{color:"green",children:Sf(s)})})]}),o("div",{className:"hidden sm:block",children:o(oa,{className:"flex-wrap",children:m?.map(Cf)})}),o(na,{className:"block sm:hidden",renderFoldableSection:({isUnfolded:e})=>o(ia,{isUnfolded:e,children:o(oa,{className:"flex-wrap",children:m?.map(Cf)})}),renderFoldButton:({isUnfolded:e,onToggle:t})=>Ia({isUnfolded:e,onToggle:t})})]},String(d))},wf=({address:e="",terminalType:t,atmCode:n=""})=>({header:`${Sf(t)} №${n}`,body:e.toUpperCase()}),Cf=(e,t)=>o(aa,{...e},String(t)),Sf=e=>e?`${e?.charAt(0)?.toUpperCase()}${e?.slice(1)}`:"",kf=[];const If=async e=>{const t=await Pt(e,{method:"GET"});return Array.isArray(t)?t:kf},Tf={terminalTypeAtms:!0,terminalTypeTerm:!1,workAllTime:!1,billAcceptorEnable:!1,locationDisabledPeople:!1,designDisabledPeople:!1},Bf={terminalTypeAtms:e=>"банкомат"===e.terminalType?.toLowerCase(),terminalTypeTerm:e=>"терминал"===e.terminalType?.toLowerCase(),workAllTime:e=>"круглосуточно"===e.workTime?.toLowerCase(),billAcceptorEnable:e=>Boolean(e.billAcceptorEnable),locationDisabledPeople:e=>Boolean(e.locationDisabledPeople),designDisabledPeople:e=>Boolean(e.designDisabledPeople)},Pf=d((({descriptionData:e,className:t})=>{const n=Rp(),i=n?.code??"000",{data:a,isLoad:l}=function(e){const{data:t,error:n}=pi(`${qt}/atms?regionCode=${e}`,If);return{data:t||kf,isLoad:!t&&!n}}(i);return o(Za,{className:t,filterItems:Rf,data:a,isLoad:l,initFilterState:Tf,renderCard:Nf,getBalloon:wf,title:`Банкоматы филиала ${n?.name}`,descriptionData:e})})),Rf=(e,t)=>{const n=Object.keys(t).filter((e=>t[e])),i=n.filter((e=>e.startsWith("terminalType"))),a=n.filter((e=>!i.includes(e)));return e.filter((e=>{const t=a.every((t=>Bf[t](e))),n=!i.length||i.some((t=>Bf[t](e)));return t&&n}))},Df=({address:e,workScheduleDescription:t},n)=>t?c("div",{className:"bg-white col-span-12 p-3xl sm:border-yellow sm:border",children:[o("div",{className:"sm:flex sm:justify-between",children:c("div",{children:[o(_e,{size:"text-h4",children:"Удаленное рабочее место"}),e?c("div",{className:"flex pb-xl pt-xs gap-2xs",children:[o(W,{name:"GeolocationIcon",width:"24",height:"24"}),o(_e,{size:"text-l",children:e})]}):null]})}),o("div",{className:"hidden sm:block",children:Mf({workScheduleDescription:t})}),o(na,{className:"block sm:hidden",renderFoldableSection:({isUnfolded:e})=>o(ia,{isUnfolded:e,children:Mf({workScheduleDescription:t})}),renderFoldButton:({isUnfolded:e,onToggle:t})=>Ia({isUnfolded:e,onToggle:t})})]},String(n)):null,Mf=({workScheduleDescription:e})=>c("div",{children:[c(oa,{className:"flex",children:[o(aa,{label:"Операции для физических лиц",children:o(_e,{children:"Оформление и обслуживание кредитов, счетов, вкладов"})}),o(aa,{label:"Операции для физических лиц",children:o(_e,{children:"Оформление и обслуживание банковских карт"})}),o(aa,{label:"Операции для физических лиц",children:o(_e,{children:"Инвестиционное и накопительное страхование"})}),o(aa,{label:"Операции для физических лиц",children:o(_e,{children:"Безналичные операции в рублях, переводы без открытия счёта"})})]}),o("hr",{className:"text-main-divider pb-xl"}),o(aa,{label:"Режим работы",className:"max-w-none",children:o(_e,{children:e})})]}),_f=({address:e="",workScheduleDescription:t})=>({header:"Удаленное рабочее место",body:`${e} ${t}`}),Af={branches:[],remoteWorkplaces:[]};const Ef=async e=>await Pt(e,{method:"GET"})||Af,zf=d((({className:e})=>{const t=Rp(),n=t?.code??"000",{data:i,isLoad:a}=function(e="000"){const{data:t,error:n}=pi(`${qt}/branchesAndRemoteWorkplaces?regionCode=${encodeURIComponent(e)}`,Ef);return{data:t||Af,isLoad:!t&&!n}}(n);return o(Za,{className:e,data:i?.branches,isLoad:a,remoteWorkplaces:i?.remoteWorkplaces,renderCard:Ra,renderRemoteWorkplaceCard:Df,getBalloon:Ma,getBalloonRemoteWorkplaces:_f,title:`Офисы филиала ${t?.name}`})})),Ff=d((({data:e,className:t,...n})=>{const i=e?.dataType??"offices";return o(g,{version:"transparent",className:u(t),defaultPadding:"p-0",...n,children:"offices"===i?o(zf,{}):o(Pf,{descriptionData:e})})})),Of=d((({className:e,title:t,description:n="Блок в разработке...",...i})=>c(g,{className:u("box-border",e),...i,children:[o(k,{className:"max-w-[600px]",title:t,description:n,headlineVersion:"L",align:"text-left",isEmbedded:!0}),o(f,{})]}))),Vf=d((({className:e,padding:t,slides:n=[],...i})=>o(g,{className:u("overflow-hidden relative",e),padding:t,...i,children:o(Gc,{gap:0,padding:0,children:n.map((e=>e.productBlock)).map(((e,t)=>o("div",{className:"box-border h-full",children:o(Je,{className:"px-5 h-full",headlineVersion:"L",...e,...i})},String(t))))})}))),Lf=d((({address:e,email:t,telephone:n,button:i,className:a="",__html:l,richVersion:r,icon:s,title:d,version:m="primary",...h})=>c(g,{className:u("box-border text-left space-y-s",a),version:m,...h,children:[c("div",{className:"w-full flex justify-between flex-row-reverse",children:[Le(s)?o("div",{className:"w-10 h-7 sm:w-24 sm:h-16",children:o(ne,{image:s})}):null,d?o(w,{headingType:"h3",as:"h3",title:d}):null]}),c("div",{className:"w-full space-y-m",children:[l?jf({__html:l,richVersion:r}):null,qf({label:"Адрес",data:e,iconName:"GeolocationIcon"}),qf({label:"Телефон(факс)",data:n,iconName:"PhoneIcon"}),qf({label:"E-mail",data:t,iconName:"MailIcon",dataColor:"text-primary-main"}),i?.text?je([i]):null]})]}))),jf=e=>o("div",{className:"border-b border-main-divider pb-lg",children:o(De,{...e,itemSize:"list-s"})}),qf=({label:e,data:t,iconName:n,dataColor:i=""})=>t?c("div",{className:"flex gap-s",children:[o(W,{iconVersion:"black",name:n,width:"24",height:"24"}),c("div",{className:"flex flex-col gap-2xs",children:[o(_e,{size:"text-m",font:"font-light",color:"text-secondary-text",children:e}),o(_e,{size:"text-xl",color:i,children:t})]})]}):null,$f=d((e=>{const{__html:t,richVersion:n="",...i}=e;return o(g,{defaultPadding:"p-0",...i,children:o(De,{__html:t,richVersion:n})})})),Uf=d((({name:e,text:t,value:n,checked:i,onChange:a,className:l})=>o("div",{className:l,children:c("label",{className:"font-sans flex gap-s items-center relative cursor-pointer",children:[o("input",{className:u(un.split(" ").filter((e=>"rounded"!==e)),ki,"flex justify-center items-center after:block after:w-2.5 after:h-2.5 after:rounded-full rounded-full","checked:border-2 checked:!border-primary-main focus:checked:border-primary-main checked:after:bg-primary-main"),type:"radio",value:n,name:e,checked:i,onChange:e=>a?.(e.target.value),role:"radio"}),t?o(_e,{color:"text-primary-text",children:t}):null]})}))),Wf=d((({className:e=""})=>{const[t,n]=i("option2"),a=l((e=>n(e)),[]);return c("div",{className:u("order-4",e),role:"radiogroup",children:[o(Uf,{className:"mb-xs",name:"contractType",text:"Простое хранение",value:"option1",checked:"option1"===t,onChange:a}),o(Uf,{name:"contractType",text:"Сделка с недвижимостью",value:"option2",checked:"option2"===t,onChange:a})]})})),Hf=d((({data:e,fieldLabel:t,fieldValue:n,selected:i,placeholder:a="",setSelected:l,label:r})=>{const s=e.filter(Boolean).map((e=>({key:e?.[n||t],text:e?.[t]}))),c=s.find((e=>e.key===i));return o(Rn,{options:s,label:r,placeholder:a||i,onChange:e=>l(e.key),value:c})})),Yf=d((({regions:e=[],selectedRegion:t,onSelectedRegion:n,branches:i=[],selectedBranch:a,onSelectedBranch:l})=>c("div",{className:"flex flex-col @xl:flex-row gap-m order-1",children:[o("div",{className:"flex-1 min-w-0",children:o(Hf,{data:e,fieldValue:"code",fieldLabel:"name",selected:t,setSelected:n,label:"Регион"})}),o("div",{className:"flex-1 min-w-0",children:o(Hf,{data:i,fieldValue:"branchCode",fieldLabel:"address",selected:a,setSelected:l,label:"Отделение",placeholder:"Выберите отделение"})})]}))),Kf=["От 1 дня","До 365 дней"],Gf=d((({days:e,setDays:t})=>c("div",{className:"order-1",children:[o(_e,{size:"text-m",font:"font-light",children:"Срок аренды"}),o(ul,{min:1,max:365,value:e,items:Kf,onChange:t})]}))),Xf=d((({caseVolumes:e=[],selectedCaseVolume:t,onSelectedCaseVolume:n,safeBoxCases:i=[],selectedBoxSize:a,onSelectedBoxSize:l})=>c("div",{className:"flex flex-col @xl:flex-row gap-m order-1",children:[o("div",{className:"flex-1 min-w-0",children:o(Hf,{data:e,fieldLabel:"volume",selected:t,setSelected:n,label:"Размер",placeholder:"Выберите размер"})}),o("div",{className:"flex-1 min-w-0",children:o(Hf,{data:i,fieldLabel:"safeBoxCasesSize",selected:a,setSelected:l,label:"Параметры ячейки, мм (ВхШхД)",placeholder:"Выберите параметр ячейки"})})]}))),Jf=d((({regions:e,selectedRegion:t,branches:n,selectedBranch:i,days:a,selectedCaseVolume:l,selectedBoxSize:r,safeBoxCases:s,caseVolumes:d,onChange:m,onClick:u})=>c("div",{className:"contents @xl:block flex-1 space-y-xl",children:[o(Yf,{regions:e,selectedRegion:t,onSelectedRegion:e=>m({selectedRegion:e}),branches:n,selectedBranch:i,onSelectedBranch:Zf(m)}),o(Gf,{days:a,setDays:e=>m({days:e})}),o(Xf,{caseVolumes:d,selectedCaseVolume:l,onSelectedCaseVolume:Qf(m),safeBoxCases:s,selectedBoxSize:r,onSelectedBoxSize:e=>m({selectedBoxSize:e})}),o("div",{className:"order-4",children:o(_e,{size:"text-l",font:"font-light",color:"text-secondary-text",children:"Тип договора"})}),c("div",{className:"contents @md:flex justify-between items-center gap-m",children:[o(Wf,{}),o(ve,{text:"Офисы на карте",version:"primary",onClick:u,className:"order-6"})]})]}))),Zf=e=>t=>{e({selectedBranch:t,selectedCaseVolume:"",selectedBoxSize:""})},Qf=e=>t=>{e({selectedCaseVolume:t,selectedBoxSize:""})},ex=d((({days:e,tariffs:t=[]})=>{const n=nx(e,t),i="На рисунке изображена пачка листов\nформата А4";return c("div",{className:"contents @xl:flex flex-col justify-between gap-xl order-2",children:[c("div",{className:"flex flex-col @xl:flex-row gap-x-6xl gap-y-2xl order-5 @xl:order-none py-2xl @xl:py-0 border-t border-main-divider @xl:border-none",children:[tx("Аренда за",e),tx("Цена",n+" ₽")]}),o("div",{className:"@xl:hidden order-3 mb-xs",children:o(C,{size:"text-s",font:"font-light",color:"text-secondary-text",children:i})}),c("div",{className:"flex flex-col items-center gap-s order-3 @xl:order-none mb-xl @xl:mb-0 bg-primary-main py-s @xl:p-3xl text-center",children:[o(ne,{image:{icon:"PackA4Icon"},className:"@xl:h-60"}),o("div",{className:"hidden @xl:inline opacity-80 whitespace-pre-line",children:o(C,{size:"text-s",font:"font-light",color:"text-white",children:i})})]})]})})),tx=(e,t)=>c("div",{className:"flex justify-between items-center gap-y-xs @xl:flex-col @xl:items-start",children:[o(_e,{size:"text-l",font:"font-light",color:"text-secondary-text",children:e}),o("span",{className:"text-l @xl:text-h3 text-primary-text",children:t})]}),nx=(e,t)=>{const n=ix(e);return e*(t?.find((e=>e.tariffType===String(n)))?.tariffValue||0)},ix=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},ax=(e,t)=>e.find((e=>e.branchCode===t)),lx=d((e=>{const{regions:t,data:n,branches:i,onChange:l,onClick:r}=e;a((()=>{l({selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:""})}),[n.selectedRegion,l]);const s=ax(i,n.selectedBranch),d=rx(s?.safeBoxCaseVolumes),m=sx(s?.safeBoxCaseVolumes,n.selectedCaseVolume)?.safeBoxCases,u=ox(m,n.selectedBoxSize);return c("div",{className:"flex flex-col @4xl:flex-row gap-4xl align-top",children:[o(Jf,{...n,regions:t,onClick:r,branches:i,caseVolumes:d,safeBoxCases:m,onChange:l}),o(ex,{days:n.days,tariffs:u})]})})),rx=e=>e?.length?e?.filter((e=>e?.safeBoxCases?.length)):[],sx=(e,t)=>e?.find((e=>e.volume===t)),ox=(e,t)=>e?.find((e=>e.safeBoxCasesSize===t))?.tariffs,cx=`${qt}/safeboxes`,dx=[];const mx=async e=>await Pt(e,{method:"GET"})||dx,ux=d((({title:e,footnote:t,className:n="",...a})=>{const[r,s]=i(!1),d=l((()=>s((e=>!e))),[]),[m,u]=i({selectedRegion:"",selectedBranch:"",selectedCaseVolume:"",selectedBoxSize:"",days:26}),h=Es(),p=hx(m.selectedRegion,h),f=function(e){const{data:t}=pi(e?`${cx}?regionCode=${e}`:null,mx);return t||dx}(p),x=l((e=>u((t=>({...t,...e})))),[u]),y=(b=ax(f,m.selectedBranch)||f,Array.isArray(b)?b.map((e=>({coords:[Number(e.gpsLatitude),Number(e.gpsLongitude)].filter(Boolean),content:void 0}))).filter((e=>e.coords&&2===e.coords.length)):b?.gpsLatitude&&b?.gpsLongitude?[{coords:[b.gpsLatitude,b.gpsLongitude]}]:[]);var b;return c(g,{className:n,defaultPadding:"",...a,children:[c("div",{className:"p-4xl space-y-xl",children:[e?o(w,{title:e,headingType:"h3",as:"h2",className:"text-primary-text mb-s text-center"}):null,o(lx,{regions:h,branches:f,data:{...m,selectedRegion:p},onClick:d,onChange:x}),t?o(C,{size:"text-s",font:"font-light",children:t}):null]}),y.length&&r?o(Ki,{points:y,className:"h-[640px]"}):null]})})),hx=(e,t)=>!e&&t?.length&&t[0]?.code?t[0].code:e,px={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"},gx=(e,t,n)=>(i,a)=>{const{button:l}=i;return o("div",{className:"contents",children:c("div",{className:"flex items-center relative flex-row",children:[o("div",{className:"overflow-hidden flex flex-shrink-0 items-center",children:fx(e,n)(i,a)}),c("div",{className:u("flex flex-col justify-center h-fit w-full",{"min-h-6xl":e}),children:[xx(i),l?.text?o(ve,{className:"box-border py-s w-full max-w-60 mt-lg",version:t,...l,children:l?.text}):null]})]})},String(a))},fx=(e,t)=>(n,i)=>{const a="secondary"===t?"white":"color",l=Boolean(n?.icon?.src),r=yx(e,l),s=l?"transparent"===t:t;return o(g,{className:u("z-10 mr-s flex justify-center content-center rounded-md",r),defaultPadding:"",version:s,children:o("div",{className:"flex max-w-full max-h-full items-center justify-center",children:bx({step:n,iconVersion:a,i:i,stepVersion:t})})})},xx=e=>c("div",{children:[e?.label?o(C,{size:"text-l",align:"text-left",children:e.label}):null,e?.description?o("div",{className:u("text-s font-light text-left",px.description),children:e.description}):null,o(De,{__html:e.__html})]}),yx=(e,t)=>e&&t?"h-14 w-14":"h-11 w-11",bx=({step:e,iconVersion:t,i:n,stepVersion:i})=>{return Le(e?.icon)?o(ne,{image:{...e.icon,iconVersion:e.icon?.iconVersion||t},imageClassName:"max-w-full max-h-full",width:"24",height:"24"}):o("span",{className:u("text-h4","transparent"===i?px.iconText:(a=i,"secondary"===a?"group-data-primary:text-white":"text-secondary-text")),children:n+1});var a},vx=d((({className:e="",title:t,description:n,steps:i=[],buttons:a,stepVersion:l="gray",version:r="primary",...s})=>{const d=i.length>3;return c(g,{className:u("box-border flex flex-col gap-xl",e),defaultPadding:"p-6xl",version:r,...s,children:[o(k,{title:t,description:n,headlineVersion:"M",isEmbedded:!0,align:"text-left"}),i?.length?o("div",{className:"flex flex-col gap-6xl justify-between box-border",children:i.map(gx(d,r,l))}):null,je(a,{isVertical:!0})]})})),Nx=d((({isActive:e,item:t,onClick:n})=>c("div",{className:u(e?"text-primary-main":"text-primary-text","w-10 m-4 flex justify-center items-center flex-col text-xs cursor-pointer"),title:t?.title||"",onClick:n,children:[o(W,{className:"w-6 h-6",name:t?.icon?.icon,iconVersion:e?"color":"black"}),t?.title||""]}))),wx=d((({className:e,head:t,children:n,onClose:i,onClick:a})=>{const{close:r}=ue(),s=l((()=>{r(),i&&i()}),[i]);return c("div",{onClick:a,className:u("relative min-h-full bg-white p-0 rounded-xl top-32",e),role:"dialog",children:[c("div",{className:"sticky py-xl top-0 rounded-xl bg-white z-10",children:[o(rr,{className:"absolute top-1.5 right-0",onClose:s}),o("div",{className:"container",children:t})]}),o("div",{className:"container pb-6xl",children:n})]})})),Cx=({menuRef:e,dialogRef:t,closeDialog:n,openDialog:i,leftItems:a,rightItems:l})=>[{openBottomMenuItemDialog:(r,s)=>{const c="left"===s?a:l,d=e?.current?.getBoundingClientRect();i(o(wx,{onClick:e=>e.stopPropagation(),onClose:n,className:"mt-[20%] border-t border-current",head:o("div",{className:"flex items-center justify-center px-xl",children:o(w,{as:"h4",title:c[r].description||c[r].title})}),children:o("div",{className:"bg-white pb-20 pt-1 text-l",ref:t,children:o("iframe",{id:"iframe-dialog",onLoad:()=>(()=>{const e=document.getElementsByTagName("iframe")["iframe-dialog"];e.style.height=String(e?.contentWindow?.document.body.offsetHeight)+"px"})(),src:c[r]?.src,width:d?.width||0})})}),{id:"left"===s?a[r].title:l[r].title})}}];function Sx(e){throw new Error(e)}const kx=({onCloseAll:e,onClose:t}={})=>{const[n,{push:r,pop:s,clear:o}]=function(e=[]){const[t,n]=i(e),a=l((e=>n((t=>[...t,e]))),[]),r=l((()=>n((e=>e.slice(0,-1)))),[]),s=l((e=>n((t=>t.filter((t=>t!==e))))),[]),o=l((()=>n([])),[]);return[t,{setList:n,push:a,pop:r,remove:s,clear:o}]}(),c=l((()=>{e&&e(n),o()}),[n,e]),d=l((()=>{t&&t(n[n.length-1]),s()}),[n,t]);return a((()=>me.subscribe("dialog",(e=>{if(e)switch(e.type){case"open":r(e);break;case"close":e.all?c():d();break;default:Sx(e)}}))),[c,d]),n},Ix=e=>t=>{if(e===t)return 1;if(!e||!t)return 0;const{m:n,s1Matches:i,s2Matches:a}=function(e,t){const n=Math.max(0,Math.floor(Math.max(e.length,t.length)/2)-1),i=Array.from({length:e.length}),a=Array.from({length:t.length});let l=0;for(let r=0;r<e.length;r++){const s=Math.max(0,r-n),o=Math.min(r+n,t.length-1);for(let n=s;n<=o;n++)i[r]||a[n]||e[r]!==t[n]||(l++,i[r]=!0,a[n]=!0)}return{m:l,s1Matches:i,s2Matches:a}}(e,t);if(0===n)return 0;const l=function(e,t,{s1Matches:n,s2Matches:i}){let a=0;for(let l=0,r=0;l<e.length;l++){if(!n[l])continue;let s=r;for(;s<t.length;s++)if(i[s]){r=s+1;break}e[l]!==t[s]&&a++}return a}(e,t,{s1Matches:i,s2Matches:a}),r=(n/e.length+n/t.length+(n-l/2)/n)/3,s=r>.7?.1*function(e,t){let n=0;for(;e[n]===t[n]&&n<4;)n++;return n}(e,t):0;return r+s*(1-r)};const Tx=e=>e?.length?c("div",{className:"sm:border-t sm:border-main-divider mt-2xs pt-2xs",children:[o("div",{className:"mb-m",children:o(_e,{size:"text-m",font:"font-light",color:"text-secondary-text",children:"Представительства за рубежом:"})}),o("div",{className:"flex flex-col sm:flex-row gap-5xl",children:e.map(((e,t)=>o(Bx,{...e},String(t))))})]}):null,Bx=d((({icon:e,...t})=>{const n=he(),{text:i,target:a,href:l,onClick:r}=n(t);return c("div",{className:"flex gap-s items-center",children:[e?o(ne,{image:e}):null,i?o("a",{className:"hover:text-primary-hover",href:l,target:a,onClick:r,children:o(_e,{size:"text-l",font:"font-light",color:"text-primary-text",children:i})}):null]})})),Px=(e,t)=>n=>n.name?o(vu,{href:`/branches/${n.slug}`,className:"mb-xs sm:mb-2xs hover:text-primary-hover",onClick:()=>t?.(n),data:bu(e,n.name),children:o(_e,{size:"text-l",font:"font-light",children:n.name})},String(n.id)):null,Rx=d((({className:e,searchTerm:t,onSearch:n})=>c("form",{className:`font-sans relative ${e}`,children:[o("div",{className:"absolute rounded h-full flex items-center justify-center pl-m max-w-44 gap-s pointer-events-none",children:t?null:o("label",{htmlFor:"search-bar-input",className:"text-secondary-text ",children:"Поиск по филиалам"})}),o("input",{id:"search-bar-input",className:u(un,"h-12 pl-m w-full peer text-l text-black rounded-md box-border"),value:t,onChange:e=>n(e.target.value.toLowerCase()),type:"text",name:"location-search-bar-input"})]}))),Dx=d((({defaultLocation:e})=>{const t=Rp(e),n=he(),{href:i}=n({href:`/branches/${t.slug}`});return t?o("div",{className:"mb-s",children:c(C,{size:"text-l",color:"text-primary-text",children:["Сейчас выбран:",o(vu,{href:i,className:"inline mx-2xs text-primary-main",children:t.name})]})}):null})),Mx=d((({foreignOffices:e,branches:t})=>{const n=Dp(t?.default),[a,s]=i(""),d=Es(),m=r((()=>Ax(d).sort(((e,t)=>e.name.localeCompare(t.name)))),[d]),u=r((()=>((e,t)=>{const n=new Map;for(const i of e){const e=t(i),a=n.get(e)||[];n.set(e,[...a,i])}return n})(m,_x)),[m]),{close:h}=ue(),p=l((e=>{n.location=e,h()}),[n]);return c(sr,{className:"pb-20",head:c("div",{children:[o(_e,{size:"text-h4",color:"text-primary-text",children:"Выберите филиал"}),o(Dx,{defaultLocation:t?.default}),o(Rx,{onSearch:s,searchTerm:a})]}),children:[a&&a.length>=3?o("div",{children:m.filter((({name:e})=>e&&Ix(e.toLowerCase())(a.toLowerCase())>=.8)).map(Px(t?.dataSelect,p))}):o("div",{className:"columns-1 sm:columns-3 md:columns-4 lg:columns-5",children:Array.from(u.entries()).map((g=p,f=t?.dataSelect,([e,t])=>c("div",{className:"break-inside-avoid mb-2xl w-56",children:[o("div",{className:"mb-s",children:o(_e,{size:"text-h6",children:e})}),t.map(Px(f,g))]},e)))}),Tx(e)]});var g,f})),_x=e=>e.name?.charAt(0)??"",Ax=e=>e.map((e=>({...e,name:e.name?.replace(/республика|область|край'/gi,"").trim()??""}))),Ex=d((({menuRef:e,menuItem:t,locationDialogProps:n,closeAll:i})=>{const l=(e=>{const{open:t,close:n}=ue();return{open:(n={})=>t(o(Mx,{...e}),n),close:n}})(n||{}),{name:r}=Rp(),s=e?.current?.getBoundingClientRect(),c=X(G.SITE_URL);return a((()=>{globalThis.frames["burger-menu-iframe"].postMessage({type:"currentLocation",data:r},"*")}),[r]),a((()=>{const e=e=>{if("location"===e.data.type&&l.open(),"reload"===e.data.type&&i(),"resize"===e.data.type){const t=document.getElementsByTagName("iframe")["iframe-dialog"];t&&t.style&&(t.style.height=String(e.data.data)+"px")}};return globalThis.addEventListener("message",e),()=>{globalThis.removeEventListener("message",e)}}),[]),o(wx,{onClick:e=>e.stopPropagation(),head:o("div",{className:"flex items-center justify-center px-xl",children:o(w,{as:"h4",title:t?.title,className:"font-medium"})}),children:o("div",{className:"bg-white pb-20 pt-1 text-l",children:o("iframe",{id:"iframe-dialog",name:"burger-menu-iframe",onLoad:()=>(()=>{const e=globalThis.frames["burger-menu-iframe"],t=document.getElementsByTagName("iframe")["iframe-dialog"];t.style.height=String(t?.contentWindow?.document.body.offsetHeight)+"px",e.postMessage({type:"currentTab",data:c?.slice(1)},"*"),e.postMessage({type:"currentLocation",data:r},"*")})(),src:t?.src,width:s?.width||0})})})})),zx="burgerMenuDialog",Fx=({menuRef:e,centralMenuItem:t,closeAll:n,openDialog:i,locationDialogProps:a})=>{const l=kx(),r=((e,t)=>Boolean(t.find((t=>t.id===e),e)))(zx,l);return[r,{toggle:()=>{r?n():i(o(Ex,{locationDialogProps:a,menuRef:e,menuItem:t,closeAll:n}),{id:zx})}}]},Ox=[],Vx=zt((({sticky:e,...t})=>{const{menuItems:n=Ox}=e??{},a=n.find((e=>"Меню"===e.title)),r=n.filter((e=>"Меню"!==e.title)),d=Math.floor(r.length/2),m=r.slice(0,d),u=r.slice(d),[h,p]=i(-1),[f,x]=i(""),{open:y,closeAll:b}=ue(),v=l((()=>{p(-1),x(""),b()}),[b]),N=cn(v),w=s(null),[C,{toggle:S}]=Fx({menuRef:w,centralMenuItem:a,closeAll:b,openDialog:y,locationDialogProps:t.header}),[{openBottomMenuItemDialog:k}]=Cx({menuRef:w,dialogRef:N,closeDialog:v,openDialog:y,leftItems:m,rightItems:u}),I=l((e=>{v(),e.stopPropagation(),S()}),[v,S]),T=l(((e,t)=>{x(t),p(e),b(),k(e,t)}),[b,k]);return o(g,{className:"h-[74px] z-[100] relative",defaultPadding:"p-0",...t,children:c("div",{ref:w,className:"ml-auto container bg-white flex justify-center shadow-blue-gray",children:[m.map(Lx(T,"left",{activeIndex:h,currentItemPosition:f})),o(Nx,{item:a,isActive:C,onClick:e=>I(e)}),u.map(Lx(T,"right",{activeIndex:h,currentItemPosition:f}))]})})})),Lx=(e,t,n)=>(i,a,l)=>o(Nx,{item:i,isActive:l[n.activeIndex]?.title===i?.title&&n.currentItemPosition===t,onClick:r=>{l[n.activeIndex]?.title===i?.title&&n.currentItemPosition===t||r.stopPropagation(),e(a,t)}},i.title||String(a)),jx="hidden sm:flex absolute z-40",qx={default:{item:"flex-1",gap:0,buttonTop:"top-0"},animated:{item:"flex",gap:8,buttonTop:"top-5"},underlined:{item:"",gap:0,buttonTop:"top-0"}},$x=d((({className:e,items:t=[],activeItem:n,onChange:i,tabsType:l="default"})=>{const[r,s]=Oc({itemCount:t?.length||0});return a((()=>Ux(r.current,t,n)),[]),c("div",{className:u("relative overflow-x-auto no-scrollbar",e),children:[o(kc,{containerRef:r,snapAlign:"snap-start",onVisibleIndicesChange:s.handleVisibleIndicesChange,itemClassName:qx[l].item,gap:qx[l].gap,children:t.map(xf(n,i,l))}),s.canScrollLeft?o($c,{className:u("left-6",jx,qx[l].buttonTop),onClick:s.scrollLeft}):null,s.canScrollRight?o(Uc,{className:u("right-6",jx,qx[l].buttonTop),onClick:s.scrollRight}):null]})})),Ux=(e,t,n)=>{const i=t.findIndex((e=>e===n));e&&i>0&&e.scrollTo({left:e?.children[i]?.offsetLeft,behavior:"smooth"})},Wx={default:{wrapper:"",component:""},animated:{wrapper:"border-b-8 border-primary-main bg-white",component:"m-auto"},underlined:{wrapper:"flex",component:"m-auto"}},Hx=({className:e="",tabsType:t="animated",...n})=>t?o("div",{className:u(Wx[t].wrapper,e),children:o($x,{className:Wx[t].component,tabsType:t,...n})}):null,Yx=zt((({className:e="",tabs:t=[],block:n,tabsType:r,showCounter:s=!1,isSticky:d=!1,...m})=>{const h=Kx(n??{}),p=M(),f=t.every((e=>"link"===e?.type)),x=s?t.map((e=>({...e,count:"group"===e?.type?n?.slots?.[e?.tabName??""]?.length??0:0}))):t,{isReady:y}=p,[b,v]=i(Jx(x,((e="")=>{const t=globalThis?.location?.href;return t?new URL(t).searchParams.get(e):null})(h))),N=x[b],w=x.findIndex((e=>Boolean(e.selected)));a((()=>{const e=p.query[h]?x.findIndex(((e,t)=>"group"===e.type&&(e?.tabName??String(t))===p.query[h])):w;v(-1===e?0:e)}),[y,w,h]);const C=Xx(x[b],b),S=l((e=>{const t=x.indexOf(e),n=x[t];v(t),"group"===n.type&&((e,t)=>{const n=new URLSearchParams(p.query);e.text?n.set(h,e?.tabName??String(t)):n.delete(h),p.replace(`${p.pathname}?${n}`,"",{scroll:!1})})(e,t)}),[x]);return c(g,{className:u({"sticky top-1 z-20":d&&f},e),defaultPadding:"p-0",block:n,...m,children:[Hx({className:u({"pb-1":n?.slots&&"default"===r,"sticky top-1 z-20":d&&!f}),items:Gx(t,x),activeItem:N,tabsType:r,onChange:S}),o("div",{className:"space-y-px @5xl:space-y-0 @5xl:grid @5xl:grid-cols-12 @5xl:gap-2xs",children:Object.entries(n?.slots??{}).map((([e,t])=>R(t,{...m?.options,slotName:C,parent:n,extraProps:{className:e===C?"":"hidden"}})))})]})}),{slots:({tabs:e})=>e?.map(Xx)?.filter(Boolean)||[]}),Kx=({__id:e,anchor:t})=>t??e??"tabs",Gx=(e,t)=>t?.length?t:e,Xx=(e,t)=>"group"===e?.type?e?.tabName||`Слот №${t+1}`:"",Jx=(e,t)=>t?Number(t):e.reduce(((e,t,n)=>t.selected?n:e),0),Zx={comparison:"flex gap-m duration-1000",tariff:"flex gap-5xl flex-grow duration-1000"},Qx=d((({children:e,activeIndex:t,columnWidth:n,version:i="comparison"})=>o("div",{className:"flex flex-1 overflow-hidden",children:o("div",{className:Zx[i],style:{transform:`translateX(-${t*n}px)`},children:e})}))),ey=d((({className:e="",isOpen:t,onClick:n})=>o(ve,{className:e,appendRight:o(ne,{image:{icon:t?"ArrowUpIcon":"ArrowDownIcon"},width:"24",height:"24"}),text:t?"Скрыть":"Показать",version:"gray",onClick:n}))),ty={Buttons:({buttons:e})=>je(e,{buttonClassName:"basis-0"}),Img:({image:e})=>e?.src?o(ne,{image:e}):null,RichText:({__html:e,isDotted:t=!0})=>o("div",{className:"flex flex-col justify-between items-start text-h6",children:o(De,{__html:e,isDotted:t,itemSize:"list-m"})}),LabelDescription:({label:e,description:t})=>c("div",{className:"space-y-2xs",children:[e?o("div",{children:o(_e,{size:"text-h6",children:e})}):null,t?o("div",{className:"lg:text-l font-light text-xs",children:o(_e,{color:"text-secondary-text",children:t})}):null]}),Table:({isVisible:e,displayTable:t,tableSource:n,pdfUrl:i,isOpen:a})=>e?o(ey,{className:"w-fit",isOpen:a,onClick:()=>{t({tableSource:n,pdfUrl:i})}}):null},ny=d((({cell:e,fieldIdx:t,rowIdx:n,cellIdx:l,setTableInner:r,tableInner:s,openTableInnerIdx:o,setOpenTableInnerIdx:c})=>{const[d,m]=i(!0);a((()=>{l===o&&s||m(!0)}),[s,o]);return iy({cell:e,cellProps:{rowIdx:n,cellIdx:l,fieldIdx:t,displayTable:e=>{m(!1),c(l),r(e)},isVisible:d}})})),iy=({cell:e,cellProps:t})=>{if(!e)return null;const{tableCellType:n,...i}=e;if(!n||!(n in ty))return null;return o(ty[n],{...t,...i})},ay=d((({cells:e,rowIdx:t,cellIdx:n,setTableInner:i,tableInner:a,openTableInnerIdx:l,setOpenTableInnerIdx:r})=>o("div",{className:"w-80 flex-grow flex flex-col gap-m @4xl:gap-lg",role:"cell",children:e?.length?e.map(((e,s)=>o(ny,{cell:e,fieldIdx:s,rowIdx:t,cellIdx:n,setTableInner:i,tableInner:a,openTableInnerIdx:l,setOpenTableInnerIdx:r},String(s)))):null}))),ly=(e,t)=>140*((e=[])=>e.reduce(((e,t)=>e+t),0))(e.slice(0,t).map((e=>e?.cols?.length??1))),ry=(e,t)=>e?.length>0?o("div",{className:u("flex",{"text-secondary-text":0===t}),children:e.map(((e,t)=>o("div",{className:"w-20 mx-lg",children:o(_e,{size:"text-h6",font:"font-light",children:e})},String(t))))}):null,sy=d((({rows:e})=>{return o(kc,{visibleItemCount:0,snapAlign:"snap-start",children:o("div",{children:e?.map((t=0,(e,n)=>{if(!e?.length)return null;const[i,...a]=e,l=u("flex duration-1000 text-center",0!==n?"font-normal":"font-light");return c("div",{className:"flex border-main-divider border-b border-solid h-full",children:[i?.data?o("div",{className:"whitespace-pre-wrap sm:whitespace-normal w-48 sm:w-56 sm:min-w-56 py-lg pr-lg sm:pr-0",children:o(_e,{size:"text-xl",font:"font-light",children:i.data})}):null,o("div",{className:"flex flex-grow overflow-hidden",children:o("div",{className:l,style:{transform:`translateX(-${ly(a,t)}px)`},children:a?.map(((e,n)=>c("div",{className:"flex flex-col flex-grow gap-s justify-center py-xl odd:bg-main-divider",children:[e?.data?o(_e,{size:"text-xl",children:e.data}):null,e?.cols?ry(e.cols,t):null]},`row${n}`)))})})]},String(n))}))})});var t})),oy=d((({activeTabIndex:e,items:t})=>o("div",{children:t.map(((t,n)=>{const i=`activeTabIdx:${e}-tableIdx:${n}`;return c("div",{className:"w-full @container",children:[o("div",{className:"flex py-m sm:px-m bg-white @4xl:bg-gray relative",children:o(_e,{size:"text-xl",align:"text-left",children:t.title})}),o("div",{className:"w-full sm:pl-xs overflow-hidden transition-height duration-500 ease-in-out",children:o("div",{className:"relative",children:o(sy,{rows:t.rowsData})})})]},i)}))}))),cy=(e=!1)=>""+(e?"text-white":"text-secondary-text"),dy=d((({currencies:e,linkToPDF:t,activeTabIndex:n,setActiveTabIndex:i})=>c("div",{className:"flex justify-between items-center w-full py-lg",children:[e&&e.length>1?o("div",{className:"flex bg-secondary-light p-2xs rounded-md",children:e.map(((e,t)=>o("div",{className:u("rounded-md px-4 py-3 cursor-pointer",{"bg-primary-main":t===n}),onClick:()=>i(t),children:o(_e,{size:"text-xl",font:"font-light",color:cy(t===n),children:e||t+1})},e)))}):null,t?o(ve,{className:"text-primary-main",href:t,version:"link",target:"_blank",appendLeft:o(W,{name:"DocDownloadIcon",iconVersion:"color",className:"mr-3xs",width:"20",height:"20"}),text:"Скачать в PDF"}):null]}))),my=zt((({tableSource:e,pdfUrl:t,onClick:n})=>{const a=e?.tableData,[r,s]=i(0),d=l((e=>s(e)),[]),m=a?.[r]?.items??[],u=a?.map((e=>e.currency??""));return c("div",a?{className:"bg-white z-10",children:[o(dy,{currencies:u,activeTabIndex:r,setActiveTabIndex:d,linkToPDF:t}),o(oy,{activeTabIndex:r,items:m}),o(ey,{className:"mt-xl",onClick:n,isOpen:!0})]}:{className:"my-lg space-y-m text-center",children:[o(_e,{size:"text-h6",children:"Данных нет"}),o(ey,{onClick:n,isOpen:!0})]})})),uy=d((({children:e,tableInner:t,onHideContentClick:n})=>c("div",{className:"self-start flex flex-col",role:"row",children:[o("div",{className:u("@4xl:border-main-divider @4xl:border-b","flex flex-col @4xl:flex-row gap-y-xs gap-x-5xl pb-lg @4xl:pt-lg"),children:e}),t?o("div",{className:"origin-top animate-expansion",children:o(my,{...t,onClick:n})}):null]}))),hy=d((({row:{header:e,data:t},activeIndex:n,rowIdx:a,...r})=>{const[s,d]=i(void 0),m=l((e=>d(e)),[]),[h,p]=i(void 0),g=l((e=>p(e)),[]);return c(uy,{onHideContentClick:()=>d(void 0),tableInner:s,...r,children:[o("div",{className:u("text-s","w-80 flex-shrink-0"),children:c("div",{className:"flex gap-m items-center",role:"cell",children:[e?.icon?o(ne,{className:"hidden @4xl:block max-w-6 shrink-0",image:e.icon,width:"24",height:"24"}):null,e?.title?o(_e,{size:"text-m",font:"font-light",color:"text-primary-text",children:e?.title}):null]})}),t?.length?o(Qx,{activeIndex:n,columnWidth:360,version:"tariff",children:t.map(((e,t)=>o(ay,{cells:e,rowIdx:a,cellIdx:t,setTableInner:m,tableInner:s,openTableInnerIdx:h,setOpenTableInnerIdx:g,...r},String(t))))}):null]})}));function py({dec:e,inc:t,canDec:n,canInc:i,btnClass:a,className:l=""}){return n||i?c("div",{children:[n?o(qc,{className:u("absolute z-40",a[0],l),onClick:e,ariaLabel:"Пролистать влево","data-block-control":"scroll-left",disabled:!n}):null,i?o(qc,{className:u("absolute z-40 rotate-180",a[1],l),onClick:t,ariaLabel:"Пролистать вправо","data-block-control":"scroll-right",disabled:!i}):null]}):null}const gy=d((({children:e,controls:t})=>{const{isScrollAvailable:n}=t;return c("div",{role:"table",className:"overflow-x-auto w-auto grid md:block",children:[c("div",{className:"relative space-y-xs",children:[e,py({...t,btnClass:["top-28","top-11"],className:"right-7"})]}),n?o("div",{className:"absolute top-0 right-0 bottom-0 w-20 bg-opacity-to-white"}):null]})})),fy=d((({className:e="",title:t,description:n,rowHeaders:a,tariffsColumns:r,hiddenRowsNum:s=0,...d})=>{const m=r?.map((({data:e})=>e))||[],h=a?.map(((e,t)=>({header:e,data:m.map((e=>e?.[t]||[]))}))),p=m.length,[f,x]=((e,t=0)=>{const{itemCount:n,visibleItemCount:a}=e,[r,s]=i(t),o=l((()=>s((e=>Math.min(e+1,n-1)))),[n]),c=l((()=>s((e=>Math.max(e-1,0)))),[n]),d=a?n>a&&r<n-a:r<n-1,m=r>0;return[r,{inc:o,dec:c,canInc:d,canDec:m,isScrollAvailable:m||d}]})({itemCount:p,visibleItemCount:2}),y=(h||[]).map(((e,t)=>o(hy,{row:e,activeIndex:f,rowIdx:t,...d},String(t)))),[b,v]=s>0?[y.slice(0,-s),y.slice(-s)]:[y,[]];return c(g,{className:u("relative space-y-6xl @4xl:space-y-xl",e),defaultPadding:"p-6xl",...d,children:[o(k,{title:t,description:n,headlineVersion:"M",isEmbedded:!0,align:"text-center"}),o("div",{className:"space-y-m overflow-hidden",children:s>0?o(na,{renderFoldableSection:({isUnfolded:e})=>c(gy,{controls:x,children:[b,o(ia,{isUnfolded:e,children:v})]}),renderFoldButton:ed}):o(gy,{controls:x,children:y})})]})})),xy=d((({className:e="",title:t,description:n,iconVersion:i,__html:a,richVersion:l,...r})=>c(g,{className:u("flex gap-s sm:gap-m bg-white group-data-secondary:bg-primary-main/10",e),...r,children:["small"===i?yy():null,c("div",{className:"flex flex-col w-fit gap-2xs sm:gap-xs",children:[t?o(_e,{size:"text-l",font:"font-normal",color:"text-primary-text group-data-secondary:text-white",children:t}):null,n?by(n):null,a?o(De,{richVersion:l,__html:a}):null]})]}))),yy=()=>o("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"}),by=e=>o(C,{size:"text-s",font:"font-light",color:"text-secondary-text group-data-secondary:text-white",children:e}),vy=d((({prefix:e,unit:t,suffix:n})=>c("div",{className:"w-full flex items-end",children:[e?o("div",{className:"gradient-color-text",children:o(_e,{size:"text-h2",children:e})}):null,t?o("div",{className:"-mb-6 @xl:-mb-4",children:o("span",{className:"font-mohave text-title-large sm:text-title-extra gradient-color-text",children:t})}):null,n?o("div",{className:"gradient-color-text",children:o(_e,{size:"text-h2",children:n})}):null]}))),Ny=d((e=>{const{prefix:t,unit:n,suffix:i,...a}=e;return o(g,{defaultPadding:"p-0",...a,children:o(vy,{prefix:t,unit:n,suffix:i})})})),wy={AdTile:Ot,ApplicationForm:yo,ApplicationLeadForm:xc,BankAccountFiltration:yd,BenefitsBlock:Cd,BonusBenefitsBlock:Id,ButtonsBlock:Bd,CalculatorBonus:$d,CalculatorBusinessDeposit:rm,CalculatorCredit:Nm,CalculatorDeposit:Vm,CalculatorRefinancing:Ym,CardTransfer:eu,Carousel:ou,CarouselCard:uu,CarouselCatalogCard:pu,CarouselLinks:xu,CarouselRecommendationCard:ku,CarouselTariffsCard:Bu,CreditCardForm:fh,CreditForm:Jh,DepositFiltration:np,Depository:bp,ErrorBlock:Np,ExchangeRateTile:lg,Footer:Ig,GrantSupport:Tg,Header:_g,Headline:k,HorizontalLayout:Fg,ImgBlock:Og,LinkDocs:Kg,MobileAppTile:Zg,MortgageFiltration:vf,OfficesAtmsMap:Ff,Placeholder:Of,ProductBlock:Ft,ProductGallery:Vf,RepresentativeOfficeInfo:Lf,RichTextBlock:$f,RollupItem:hg,SafeDepositRental:ux,StepsBlock:vx,StickyBottomMenu:Vx,TabsLayout:Yx,TariffsTable:fy,TextBlock:xy,UnitBlock:Ny,VerticalLayout:zg},Cy=ce((()=>{a((()=>{Jt()}),[]);const e=Qt();on(globalThis,"click",(e=>t=>{const n=t.target?.closest("[data-aspects]");try{const i=JSON.parse(n?.dataset?.aspects??"[]");Kt({aspectsAttributes:i,aspects:e,ev:t})}catch(e){}e.forwardQuery?.(t)})(e))}));const Sy="cookie",ky=d((({__html:e})=>{const[t,{setTrue:n,setFalse:i}]=sn();!function(e,t,n=300){a((()=>{const t=globalThis.setTimeout(e,n);return()=>{globalThis.clearTimeout(t)}}),t)}((()=>{globalThis.localStorage?.getItem(Sy)||n()}),[],3e3);const r=l((()=>{globalThis.localStorage?.setItem(Sy,"true"),i()}),[]);return t&&e?o("div",{className:"container fixed left-0 right-0 bottom-0 z-50",role:"dialog",children:c("div",{className:"bg-white m-xl p-xl rounded-md flex sm:items-center shadow-main-black",children:[o("div",{className:"sm:flex-1",children:o(De,{__html:e})}),o("div",{className:"ml-s sm:ml-0 w-36 flex justify-end",children:o(rr,{className:"bg-main-gray rounded-md w-11 h-11",onClose:r})})]})}):null})),Iy=d((()=>{const e=l((e=>{for(const t of e)t?.onClose&&t.onClose()}),[]),t=l((e=>{e?.onClose&&e.onClose()}),[]),n=kx({onCloseAll:e,onClose:t}),{close:i}=ue(),r=l((({key:e})=>{"Escape"===e&&i()}),[]);return on(globalThis.document,"keydown",r),a((()=>{n.length?(globalThis.document?.body.classList.add("no-scrollbar"),globalThis.document?.body.classList.add("overflow-hidden")):(globalThis.document?.body.classList.remove("no-scrollbar"),globalThis.document?.body.classList.remove("overflow-hidden"))}),[n]),n.length?o("div",{className:"fixed inset-0 z-50",role:"dialog",children:n.map((({dialog:e,id:t},i)=>o("div",{className:u("absolute inset-0 overflow-x-hidden overflow-y-scroll no-scrollbar bg-black/50",{hidden:i!==n.length-1}),children:e},String(t||i))))}):null})),Ty=d((()=>{const[e,t]=i(null),n=l((()=>{t(null)}),[]);a((()=>me.subscribe("popup",(e=>{if(e)switch(e.type){case"open":case"update":t(e);break;case"close":n();break;default:Sx(e)}}))),[]);const r=l((({key:e})=>{"Escape"===e&&n()}),[n]);return on(globalThis.document,"keydown",r),e?o("div",{className:u("z-50",e.fixed?"fixed":"absolute"),style:{left:`${e.left}px`,top:`${e.top}px`,...e.width?{width:`${e.width}px`}:{}},role:"dialog",children:e.popup}):null})),By="header",Py="footer",Ry="sticky-footer",Dy={},My=d((({className:e,data:t=Dy,blocksRegistry:n,blockDecorator:i})=>{const{slots:a,blocks:l,fallback:r,...s}=t,d=Et(s,r);Cy(),Dp();const m={key:"",page:{slots:a,blocks:l,fallback:r,...d},blocksRegistry:n,blockDecorator:i,parent:t};return c("div",{"data-theme":t.colorPalette||"pc",children:[c("section",{className:u("@container relative",t.style,e),children:[a?.[By]?.length?o("div",{className:"relative z-10 mb-lg shadow-[0_8px_32px_0px_#00000014]",children:R(a?.[By],{...m,slotName:By})}):null,c("div",{className:"container space-y-px @5xl:space-y-0 @5xl:grid @5xl:grid-cols-12 @5xl:gap-2xs",children:[D({block:t,options:m,extraProps:{className:"scroll-mt-12"}}),R(a?.[Py],{...m,slotName:Py})]})]}),a?.[Ry]?.length?o("div",{className:"fixed w-full bottom-0 left-0 z-[100]",children:R(a?.[Ry],{...m,slotName:Ry})}):null,o(Iy,{}),o(Ty,{}),o(ky,{__html:d?.cookieContent?.__html})]})}));Object.assign(My,{childrenTypes:[],slots:()=>[By,Py,Ry]});e.Blocks=wy,e.ContentPage=My,e.handlerDecorator=ce,e.joinList=rd,e.locationNavigator=Gt,e.packageVersion="0.14.682",e.projectSettings=A,e.setup=(e,t)=>{globalThis._uni={_jsx:e,_jsxs:t||e}},e.setupHooks=e=>{t=e},e.url=L,e.useRouter=M,Object.defineProperty(e,"__esModule",{value:!0})}));
|